@saasquatch/mint-components 1.10.1-1 → 1.10.2-3
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-721bb748.js → ShadowViewAddon-a982f064.js} +40 -36
- package/dist/cjs/{global-02e50f09.js → global-975908ec.js} +161 -10
- package/dist/cjs/index-56d1fa5b.js +2227 -0
- package/dist/cjs/{index.module-df530553.js → index.module-b1f9bdb8.js} +1398 -227
- 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-95d86b86.js} +2 -2
- package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +411 -410
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +111 -64
- package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
- package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
- 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 +3 -3
- 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-28b14d28.js → sqm-invoice-table-view-c3a5024d.js} +1 -1
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +9 -8
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +8 -7
- package/dist/cjs/{sqm-navigation-sidebar-item-view-a125ec5f.js → sqm-navigation-sidebar-item-view-d8a21014.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-popup-container.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-email-verification-view-292b5bf4.js → sqm-portal-email-verification-view-72dca980.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-fde54e35.js → sqm-portal-profile-view-c3754c1c.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +12 -11
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +7 -6
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
- 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 +62 -61
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +46 -14
- package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
- package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
- 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-91b9f4ff.js} +2 -2
- package/dist/cjs/{useInstantAccessRegistration-bbe746d1.js → useInstantAccessRegistration-610f4be8.js} +3 -3
- package/dist/cjs/{useReferralTable-a76adb0d.js → useReferralTable-4756d4fc.js} +14 -13
- package/dist/cjs/{useRegistrationFormState-876ed65d.js → useRegistrationFormState-49251027.js} +2 -2
- package/dist/cjs/{utilities-cec9dd36.js → utilities-42a1810d.js} +2 -2
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +30 -0
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +7 -4
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +35 -3
- package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +40 -2
- package/dist/esm/{ShadowViewAddon-31eb5b16.js → ShadowViewAddon-6c6e73dc.js} +14 -10
- package/dist/esm/{global-04c7d3b5.js → global-8a95a0d3.js} +161 -10
- package/dist/esm/index-0c7b14c5.js +2225 -0
- package/dist/esm/{index.module-def4aec5.js → index.module-f9338fc3.js} +1396 -222
- 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-f023c070.js} +2 -2
- package/dist/esm/sqm-asset-card.entry.js +2 -2
- package/dist/esm/sqm-banking-info-form_16.entry.js +10 -9
- package/dist/esm/sqm-big-stat_38.entry.js +60 -13
- package/dist/esm/sqm-close-button.entry.js +2 -2
- package/dist/esm/sqm-context-router.entry.js +2 -2
- 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 +2 -2
- 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-34ac7513.js → sqm-invoice-table-view-4ee8e011.js} +1 -1
- package/dist/esm/sqm-leaderboard-rank.entry.js +4 -3
- package/dist/esm/sqm-logout-current-user.entry.js +3 -2
- package/dist/esm/{sqm-navigation-sidebar-item-view-60ef06cc.js → sqm-navigation-sidebar-item-view-05fa5ccd.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
- package/dist/esm/sqm-password-field.entry.js +3 -3
- package/dist/esm/sqm-popup-container.entry.js +2 -2
- package/dist/esm/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-de203924.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-0a31702e.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +6 -5
- package/dist/esm/sqm-portal-protected-route.entry.js +2 -2
- package/dist/esm/sqm-portal-registration-form.entry.js +5 -4
- package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
- package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
- 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 +9 -8
- package/dist/esm/sqm-stencilbook.entry.js +44 -12
- package/dist/esm/sqm-tab.entry.js +3 -3
- package/dist/esm/sqm-tabs.entry.js +4 -4
- 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-e32fe084.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-46b89952.js → useInstantAccessRegistration-59d8b278.js} +3 -3
- package/dist/esm/{useReferralTable-f4de0650.js → useReferralTable-34d7f6ee.js} +5 -4
- package/dist/esm/{useRegistrationFormState-9fc1ac80.js → useRegistrationFormState-a140a962.js} +2 -2
- package/dist/esm/{utilities-3f5bba22.js → utilities-c197ef25.js} +2 -2
- package/dist/esm-es5/ShadowViewAddon-6c6e73dc.js +1 -0
- package/dist/esm-es5/global-8a95a0d3.js +285 -0
- package/dist/esm-es5/index-0c7b14c5.js +1 -0
- package/dist/esm-es5/index.module-f9338fc3.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-f023c070.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-34ac7513.js → sqm-invoice-table-view-4ee8e011.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-05fa5ccd.js +1 -0
- 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-4307c992.js → sqm-portal-email-verification-view-de203924.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-ffe955c8.js → sqm-portal-profile-view-0a31702e.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-e32fe084.js +1 -0
- package/dist/esm-es5/useInstantAccessRegistration-59d8b278.js +1 -0
- package/dist/esm-es5/useReferralTable-34d7f6ee.js +1 -0
- package/dist/esm-es5/useRegistrationFormState-a140a962.js +1 -0
- package/dist/esm-es5/{utilities-3f5bba22.js → utilities-c197ef25.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-0043bc3c.js +1 -0
- package/dist/mint-components/{p-6cef104b.entry.js → p-00d12178.entry.js} +1 -1
- package/dist/mint-components/{p-be4b748a.system.entry.js → p-022d8077.system.entry.js} +1 -1
- package/dist/mint-components/{p-ed095674.system.js → p-02acb970.system.js} +1 -1
- package/dist/mint-components/{p-dd7ee007.system.js → p-07957c5a.system.js} +1 -1
- package/dist/mint-components/p-08bf5051.system.entry.js +1 -0
- package/dist/mint-components/{p-2a414b2e.system.js → p-0979f82e.system.js} +2 -2
- package/dist/mint-components/p-098b5cef.system.entry.js +1 -0
- package/dist/mint-components/{p-3d4656bb.system.js → p-0ad02032.system.js} +1 -1
- package/dist/mint-components/{p-2ee2ebba.js → p-0d77f228.js} +4 -4
- package/dist/mint-components/{p-bc51264d.system.js → p-105d3cea.system.js} +1 -1
- package/dist/mint-components/p-118c20e6.system.entry.js +1 -0
- package/dist/mint-components/{p-b23d5520.js → p-1426f887.js} +1 -1
- package/dist/mint-components/{p-88aac6a9.system.entry.js → p-14beec1b.system.entry.js} +1 -1
- package/dist/mint-components/{p-41f15489.entry.js → p-15399c43.entry.js} +1 -1
- package/dist/mint-components/p-17554cca.system.entry.js +1 -0
- package/dist/mint-components/{p-58ef25d3.system.entry.js → p-183c8ecc.system.entry.js} +1 -1
- package/dist/mint-components/{p-86990110.entry.js → p-1948d476.entry.js} +1 -1
- package/dist/mint-components/p-1975adfc.entry.js +1 -0
- package/dist/mint-components/{p-fd2c5407.js → p-1b24bb52.js} +1 -1
- package/dist/mint-components/{p-34fd1229.system.entry.js → p-1b5eeaa4.system.entry.js} +1 -1
- package/dist/mint-components/{p-137ea86e.entry.js → p-1e0a0f60.entry.js} +1 -1
- package/dist/mint-components/{p-eba44835.system.entry.js → p-208cf52b.system.entry.js} +1 -1
- package/dist/mint-components/{p-4d233cd4.js → p-21b00d45.js} +1 -1
- package/dist/mint-components/p-269fbf0d.entry.js +1 -0
- package/dist/mint-components/{p-0b9fa97f.js → p-2755b7e6.js} +1 -1
- package/dist/mint-components/{p-ed17e637.system.js → p-2932de37.system.js} +1 -1
- package/dist/mint-components/{p-b45ba369.entry.js → p-2b4fbcf7.entry.js} +9 -9
- package/dist/mint-components/{p-56f14840.entry.js → p-2cc82672.entry.js} +1 -1
- package/dist/mint-components/p-2db204e7.entry.js +1 -0
- package/dist/mint-components/{p-02424350.system.js → p-2e6e8fc0.system.js} +1 -1
- package/dist/mint-components/p-2fc1c343.system.entry.js +1 -0
- package/dist/mint-components/p-3030c6ba.system.js +1 -0
- package/dist/mint-components/{p-ce621bcc.js → p-350f61cd.js} +1 -1
- package/dist/mint-components/{p-7731f793.system.entry.js → p-37f67540.system.entry.js} +1 -1
- package/dist/mint-components/p-38211322.system.entry.js +1 -0
- package/dist/mint-components/p-3bd60021.system.js +53 -0
- package/dist/mint-components/{p-af062c8f.system.entry.js → p-3c9b7cf5.system.entry.js} +1 -1
- package/dist/mint-components/{p-fb20eb5e.system.entry.js → p-43701d0d.system.entry.js} +1 -1
- package/dist/mint-components/p-4414e194.system.entry.js +1 -0
- package/dist/mint-components/{p-b12f7281.system.entry.js → p-4519b7a5.system.entry.js} +1 -1
- package/dist/mint-components/{p-fe5675b3.entry.js → p-45e6592d.entry.js} +1 -1
- package/dist/mint-components/p-48409171.entry.js +33 -0
- package/dist/mint-components/{p-f3053c61.js → p-48704504.js} +1 -1
- package/dist/mint-components/{p-1fe65a36.entry.js → p-4e792e17.entry.js} +1 -1
- package/dist/mint-components/{p-7f088154.entry.js → p-545402ff.entry.js} +1 -1
- package/dist/mint-components/p-55d7380c.entry.js +13 -0
- package/dist/mint-components/p-5873fc01.js +1 -0
- package/dist/mint-components/{p-dd0d79bf.entry.js → p-5c602e84.entry.js} +1 -1
- package/dist/mint-components/p-6fbfd683.js +1 -0
- package/dist/mint-components/{p-8704937c.js → p-70890ada.js} +153 -153
- package/dist/mint-components/p-755073e7.entry.js +1 -0
- package/dist/mint-components/{p-4edde470.entry.js → p-76b4892f.entry.js} +1 -1
- package/dist/mint-components/{p-61eab172.js → p-773cead3.js} +1 -1
- package/dist/mint-components/{p-fbdf0738.entry.js → p-79097c07.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-ce5afa40.entry.js → p-7c4879fd.entry.js} +1 -1
- package/dist/mint-components/{p-b6fc1227.system.entry.js → p-8369d5c3.system.entry.js} +1 -1
- package/dist/mint-components/p-858a87ce.entry.js +1 -0
- package/dist/mint-components/p-85c56a32.system.entry.js +1 -0
- package/dist/mint-components/{p-eaada4da.js → p-86ba3785.js} +1 -1
- package/dist/mint-components/{p-59fe4ad1.system.js → p-87165876.system.js} +22 -22
- package/dist/mint-components/p-89669879.system.js +1 -0
- package/dist/mint-components/{p-4df8f1d2.system.js → p-8dd1b127.system.js} +1 -1
- package/dist/mint-components/{p-251e7567.js → p-9223640e.js} +1 -1
- package/dist/mint-components/p-924ac2d2.entry.js +223 -0
- package/dist/mint-components/{p-5f1c4160.system.entry.js → p-9396fa35.system.entry.js} +1 -1
- package/dist/mint-components/{p-6afb4f48.system.entry.js → p-95af445c.system.entry.js} +1 -1
- package/dist/mint-components/p-9a8180f3.entry.js +1 -0
- package/dist/mint-components/p-a06ac84d.entry.js +1 -0
- package/dist/mint-components/p-a252acc8.system.entry.js +1 -0
- package/dist/mint-components/p-a2f24cea.system.js +1 -0
- package/dist/mint-components/p-a3e853b9.entry.js +1 -0
- package/dist/mint-components/p-a716994f.entry.js +13 -0
- package/dist/mint-components/p-af4357ee.system.js +1 -0
- package/dist/mint-components/{p-4502ed11.system.entry.js → p-af870849.system.entry.js} +1 -1
- package/dist/mint-components/{p-5cac90e8.system.entry.js → p-b30636fc.system.entry.js} +1 -1
- package/dist/mint-components/{p-8679ed9f.system.entry.js → p-b5db456f.system.entry.js} +1 -1
- package/dist/mint-components/p-bc9b2c8b.entry.js +1 -0
- package/dist/mint-components/p-bd124285.system.entry.js +1 -0
- package/dist/mint-components/{p-a9050eb0.entry.js → p-bd229b60.entry.js} +1 -1
- package/dist/mint-components/{p-3223ba7b.entry.js → p-bd25d190.entry.js} +1 -1
- package/dist/mint-components/p-c176d02b.js +42 -0
- package/dist/mint-components/{p-d6474614.js → p-c30f7385.js} +24 -24
- package/dist/mint-components/p-c5cf5623.system.entry.js +1 -0
- package/dist/mint-components/p-c7572e7e.system.entry.js +1 -0
- package/dist/mint-components/{p-b4c52c5a.entry.js → p-c96b66e0.entry.js} +3 -3
- 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-e3735866.entry.js → p-cb550bef.entry.js} +2 -2
- package/dist/mint-components/{p-178d2d2e.entry.js → p-cdd04337.entry.js} +1 -1
- package/dist/mint-components/p-d6dd11db.system.entry.js +1 -0
- package/dist/mint-components/{p-41a11a7f.js → p-d7bc0a83.js} +1 -1
- package/dist/mint-components/p-db39e02a.entry.js +1 -0
- package/dist/mint-components/{p-cf690d55.system.entry.js → p-dd18c75b.system.entry.js} +1 -1
- package/dist/mint-components/{p-07f675ab.system.entry.js → p-de1ab7b7.system.entry.js} +1 -1
- package/dist/mint-components/{p-bf723ae9.entry.js → p-e493aa4f.entry.js} +2 -2
- package/dist/mint-components/{p-ce9e7c98.system.js → p-e5299352.system.js} +1 -1
- package/dist/mint-components/{p-afd366ae.system.entry.js → p-e6024536.system.entry.js} +1 -1
- package/dist/mint-components/{p-674a64fe.system.js → p-f9780efd.system.js} +1 -1
- package/dist/mint-components/{p-0d8c53ac.system.js → p-fc5fa9b1.system.js} +1 -1
- package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +1 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +8 -1
- package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +1 -0
- package/dist/types/components.d.ts +14 -2
- 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/esm-es5/ShadowViewAddon-31eb5b16.js +0 -1
- package/dist/esm-es5/global-04c7d3b5.js +0 -285
- package/dist/esm-es5/index.module-def4aec5.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-60ef06cc.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-01cfff8a.system.entry.js +0 -1
- package/dist/mint-components/p-0d39c815.system.entry.js +0 -1
- package/dist/mint-components/p-10e89d0a.entry.js +0 -1
- package/dist/mint-components/p-1c857edb.entry.js +0 -33
- package/dist/mint-components/p-1dd69917.system.entry.js +0 -1
- package/dist/mint-components/p-27bd5535.entry.js +0 -187
- package/dist/mint-components/p-2dd67762.entry.js +0 -1
- package/dist/mint-components/p-32d1d162.entry.js +0 -1
- package/dist/mint-components/p-35d84041.system.entry.js +0 -1
- package/dist/mint-components/p-3ec16698.entry.js +0 -13
- package/dist/mint-components/p-4ea58025.system.entry.js +0 -1
- package/dist/mint-components/p-51f517a2.js +0 -1
- package/dist/mint-components/p-5be235f9.entry.js +0 -1
- package/dist/mint-components/p-7049e9b0.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-8e907ac7.system.entry.js +0 -1
- package/dist/mint-components/p-91669312.entry.js +0 -1
- package/dist/mint-components/p-9c310991.system.entry.js +0 -1
- package/dist/mint-components/p-a1dba9a1.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-b370fca8.system.js +0 -1
- package/dist/mint-components/p-b3b5b4b7.system.entry.js +0 -1
- package/dist/mint-components/p-b567780d.system.js +0 -1
- package/dist/mint-components/p-b5861974.system.entry.js +0 -1
- package/dist/mint-components/p-c34a507e.system.entry.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-cfb48ad2.system.entry.js +0 -1
- package/dist/mint-components/p-e5a0c50e.entry.js +0 -13
- package/dist/mint-components/p-f1a1e7f3.system.entry.js +0 -1
|
@@ -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-975908ec.js');
|
|
8
|
+
const index_module = require('./index.module-b1f9bdb8.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-95d86b86.js');
|
|
14
|
+
const useChildElements = require('./useChildElements-91b9f4ff.js');
|
|
15
|
+
const luxon = require('./luxon-20eafbd9.js');
|
|
16
|
+
const index = require('./index-56d1fa5b.js');
|
|
17
|
+
const useReferralTable = require('./useReferralTable-4756d4fc.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-c3a5024d.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 {
|
|
@@ -88,7 +89,7 @@ const GET_USER = index_module.dist.gql `
|
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
91
|
`;
|
|
91
|
-
const GET_COUNTRIES =
|
|
92
|
+
const GET_COUNTRIES = index.dist.gql `
|
|
92
93
|
query getCountries {
|
|
93
94
|
impactPayoutCountries(limit: 1000) {
|
|
94
95
|
data {
|
|
@@ -98,7 +99,7 @@ const GET_COUNTRIES = index_module.dist.gql `
|
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
`;
|
|
101
|
-
const GET_CURRENCIES =
|
|
102
|
+
const GET_CURRENCIES = index.dist.gql `
|
|
102
103
|
query currencies($locale: RSLocale) {
|
|
103
104
|
currencies(limit: 300) {
|
|
104
105
|
data {
|
|
@@ -108,7 +109,7 @@ const GET_CURRENCIES = index_module.dist.gql `
|
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
111
|
`;
|
|
111
|
-
const GET_FINANCE_NETWORK_SETTINGS =
|
|
112
|
+
const GET_FINANCE_NETWORK_SETTINGS = index.dist.gql `
|
|
112
113
|
query impactFinanceNetworkSettings(
|
|
113
114
|
$filter: ImpactFinanceNetworkSettingsFilterInput
|
|
114
115
|
) {
|
|
@@ -134,7 +135,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
134
135
|
const { errors, ...formState } = props.states.formState;
|
|
135
136
|
return {
|
|
136
137
|
0: {
|
|
137
|
-
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) && {
|
|
138
139
|
class: "error-input",
|
|
139
140
|
helpText: getValidationErrorMessage({
|
|
140
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,
|
|
@@ -143,18 +144,18 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
143
144
|
})))),
|
|
144
145
|
},
|
|
145
146
|
1: {
|
|
146
|
-
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) && {
|
|
147
148
|
class: "error-input",
|
|
148
149
|
helpText: getValidationErrorMessage({
|
|
149
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,
|
|
150
151
|
label: props.text.bankAccountTypeLabel,
|
|
151
152
|
}),
|
|
152
153
|
})),
|
|
153
|
-
index.h("sl-menu-item", { value: "CHECKING" }, props.text.checkingSelectItemLabel),
|
|
154
|
-
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))),
|
|
155
156
|
},
|
|
156
157
|
2: {
|
|
157
|
-
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) && {
|
|
158
159
|
class: "error-input",
|
|
159
160
|
helpText: getValidationErrorMessage({
|
|
160
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,
|
|
@@ -163,7 +164,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
163
164
|
})))),
|
|
164
165
|
},
|
|
165
166
|
3: {
|
|
166
|
-
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) && {
|
|
167
168
|
class: "error-input",
|
|
168
169
|
helpText: getValidationErrorMessage({
|
|
169
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,
|
|
@@ -172,7 +173,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
172
173
|
})))),
|
|
173
174
|
},
|
|
174
175
|
4: {
|
|
175
|
-
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) && {
|
|
176
177
|
class: "error-input",
|
|
177
178
|
helpText: getValidationErrorMessage({
|
|
178
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,
|
|
@@ -181,7 +182,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
181
182
|
})))),
|
|
182
183
|
},
|
|
183
184
|
5: {
|
|
184
|
-
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({
|
|
185
186
|
id: "routingCodeText",
|
|
186
187
|
defaultMessage: props.text.routingCodeLabel,
|
|
187
188
|
}, {
|
|
@@ -200,7 +201,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
200
201
|
})))),
|
|
201
202
|
},
|
|
202
203
|
6: {
|
|
203
|
-
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) && {
|
|
204
205
|
class: "error-input",
|
|
205
206
|
helpText: getValidationErrorMessage({
|
|
206
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,
|
|
@@ -210,17 +211,17 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
210
211
|
},
|
|
211
212
|
7: {
|
|
212
213
|
input: [
|
|
213
|
-
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) && {
|
|
214
215
|
class: "error-input",
|
|
215
216
|
helpText: getValidationErrorMessage({
|
|
216
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,
|
|
217
218
|
label: props.text.classificationLabel,
|
|
218
219
|
}),
|
|
219
220
|
})),
|
|
220
|
-
index.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
221
|
-
index.h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
222
|
-
index.h("sl-menu-item", { value: "FOREIGN" }, props.text.foreignSelectItemLabel)),
|
|
223
|
-
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({
|
|
224
225
|
id: "fxWireText",
|
|
225
226
|
defaultMessage: props.text.taxPayerIdLabel,
|
|
226
227
|
}, {
|
|
@@ -235,18 +236,18 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
235
236
|
],
|
|
236
237
|
},
|
|
237
238
|
8: {
|
|
238
|
-
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) && {
|
|
239
240
|
class: "error-input",
|
|
240
241
|
helpText: getValidationErrorMessage({
|
|
241
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,
|
|
242
243
|
label: props.text.classificationCPFLabel,
|
|
243
244
|
}),
|
|
244
245
|
})),
|
|
245
|
-
index.h("sl-menu-item", { value: "CPF" }, "CPF"),
|
|
246
|
-
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"))),
|
|
247
248
|
},
|
|
248
249
|
9: {
|
|
249
|
-
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) && {
|
|
250
251
|
class: "error-input",
|
|
251
252
|
helpText: getValidationErrorMessage({
|
|
252
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,
|
|
@@ -255,7 +256,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
255
256
|
})))),
|
|
256
257
|
},
|
|
257
258
|
10: {
|
|
258
|
-
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) && {
|
|
259
260
|
class: "error-input",
|
|
260
261
|
helpText: getValidationErrorMessage({
|
|
261
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,
|
|
@@ -264,7 +265,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
264
265
|
})))),
|
|
265
266
|
},
|
|
266
267
|
11: {
|
|
267
|
-
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) && {
|
|
268
269
|
class: "error-input",
|
|
269
270
|
helpText: getValidationErrorMessage({
|
|
270
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,
|
|
@@ -274,28 +275,28 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
274
275
|
},
|
|
275
276
|
12: {
|
|
276
277
|
input: [
|
|
277
|
-
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) && {
|
|
278
279
|
class: "error-input",
|
|
279
280
|
helpText: getValidationErrorMessage({
|
|
280
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,
|
|
281
282
|
label: props.text.bankAddressLabel,
|
|
282
283
|
}),
|
|
283
284
|
}))),
|
|
284
|
-
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) && {
|
|
285
286
|
class: "error-input",
|
|
286
287
|
helpText: getValidationErrorMessage({
|
|
287
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,
|
|
288
289
|
label: props.text.bankCityLabel,
|
|
289
290
|
}),
|
|
290
291
|
}))),
|
|
291
|
-
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) && {
|
|
292
293
|
class: "error-input",
|
|
293
294
|
helpText: getValidationErrorMessage({
|
|
294
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,
|
|
295
296
|
label: props.text.bankStateLabel,
|
|
296
297
|
}),
|
|
297
298
|
}))),
|
|
298
|
-
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) && {
|
|
299
300
|
class: "error-input",
|
|
300
301
|
helpText: getValidationErrorMessage({
|
|
301
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,
|
|
@@ -305,7 +306,7 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
305
306
|
],
|
|
306
307
|
},
|
|
307
308
|
13: {
|
|
308
|
-
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) && {
|
|
309
310
|
class: "error-input",
|
|
310
311
|
helpText: getValidationErrorMessage({
|
|
311
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,
|
|
@@ -314,16 +315,16 @@ function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
|
314
315
|
})))),
|
|
315
316
|
},
|
|
316
317
|
14: {
|
|
317
|
-
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) && {
|
|
318
319
|
class: "error-input",
|
|
319
320
|
helpText: getValidationErrorMessage({
|
|
320
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,
|
|
321
322
|
label: props.text.classificationLabel,
|
|
322
323
|
}),
|
|
323
324
|
})),
|
|
324
|
-
index.h("sl-menu-item", { value: "BUSINESS" }, props.text.businessSelectItemLabel),
|
|
325
|
-
index.h("sl-menu-item", { value: "INDIVIDUAL" }, props.text.individualSelectItemLabel),
|
|
326
|
-
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))),
|
|
327
328
|
},
|
|
328
329
|
};
|
|
329
330
|
}
|
|
@@ -821,80 +822,80 @@ const BankingInfoFormView = (props) => {
|
|
|
821
822
|
gap: "8px",
|
|
822
823
|
};
|
|
823
824
|
if (checkedValue === undefined) {
|
|
824
|
-
return (index.h("div", { style: { ...flexBoxStyle, flexDirection: "column", gap: "16px" } },
|
|
825
|
-
index.h("div", { class: classes.SmallSkeleton }),
|
|
826
|
-
index.h("div", { style: { ...flexBoxStyle, flexDirection: "row" } },
|
|
827
|
-
index.h("div", { class: classes.CheckboxSkeleton }),
|
|
828
|
-
index.h("div", { class: classes.SmallSkeleton })),
|
|
829
|
-
index.h("div", { style: { ...flexBoxStyle, flexDirection: "row" } },
|
|
830
|
-
index.h("div", { class: classes.CheckboxSkeleton }),
|
|
831
|
-
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 }))));
|
|
832
833
|
}
|
|
833
834
|
if (checkedValue === "toPayPalAccount") {
|
|
834
|
-
return (index.h("div", { style: { ...flexBoxStyle, flexDirection: "column" } },
|
|
835
|
-
index.h("div", { class: classes.SmallSkeleton }),
|
|
836
|
-
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 })));
|
|
837
838
|
}
|
|
838
|
-
const skeletons = inputNumArray.map((_, idx) => (index.h("div", { style: { ...flexBoxStyle, flexDirection: "column" }, key: idx },
|
|
839
|
-
index.h("div", { class: classes.SmallSkeleton }),
|
|
840
|
-
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 }))));
|
|
841
842
|
return skeletons;
|
|
842
843
|
};
|
|
843
|
-
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
844
|
-
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" },
|
|
845
846
|
styleString,
|
|
846
847
|
vanillaStyle),
|
|
847
|
-
index.h("div", { class: classes.TextContainer },
|
|
848
|
-
index.h("div", null,
|
|
849
|
-
!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({
|
|
850
851
|
id: "formStep",
|
|
851
852
|
defaultMessage: text.formStep,
|
|
852
853
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
853
|
-
index.h("h3", { style: { fontSize: "24px" } }, text.taxAndPayouts),
|
|
854
|
-
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription)),
|
|
855
|
-
((_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 },
|
|
856
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
857
|
-
index.h("strong", null, text.error.generalTitle),
|
|
858
|
-
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),
|
|
859
860
|
text.error.generalDescription)),
|
|
860
|
-
states.isPartner && !states.hideSteps && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: sheet.classes.PartnerAlertContainer },
|
|
861
|
-
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
862
|
-
index.h("strong", null, text.isPartnerAlertHeader),
|
|
863
|
-
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),
|
|
864
865
|
text.isPartnerAlertDescription)),
|
|
865
|
-
index.h("div", null,
|
|
866
|
-
index.h("h4", null, text.paymentMethod),
|
|
867
|
-
index.h("p", { class: classes.DescriptionText }, text.paymentMethodSubtext))),
|
|
868
|
-
index.h("div", null,
|
|
869
|
-
index.h("div", { class: classes.CheckboxContainer }, states.loading && formState.paymentMethodChecked === undefined ? (getLoadingSkeleton(undefined)) : (index.h("div", { class: classes.RadioContainer },
|
|
870
|
-
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)),
|
|
871
|
-
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
|
|
872
873
|
? getLoadingSkeleton("toBankAccount", slots.formInputsSlot.length + 3)
|
|
873
874
|
: [
|
|
874
875
|
slots.countryInputSlot,
|
|
875
876
|
slots.paymentMethodSlot,
|
|
876
877
|
slots.formInputsSlot,
|
|
877
878
|
])),
|
|
878
|
-
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({
|
|
879
880
|
id: "paypal-input-label",
|
|
880
881
|
defaultMessage: text.toPayPalAccount,
|
|
881
882
|
}, { feeCap: states.feeCap }))),
|
|
882
|
-
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
|
|
883
884
|
? getLoadingSkeleton("toPayPalAccount")
|
|
884
885
|
: slots.paypalInputSlot)),
|
|
885
|
-
index.h("div", { style: { paddingTop: "24px", paddingBottom: "12px" } },
|
|
886
|
-
index.h("h4", null, text.paymentSchedule)),
|
|
887
|
-
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),
|
|
888
|
-
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
|
|
889
890
|
? getLoadingSkeleton("toPayPalAccount")
|
|
890
891
|
: slots.paymentThresholdSelectSlot)),
|
|
891
|
-
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),
|
|
892
|
-
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
|
|
893
894
|
? getLoadingSkeleton("toPayPalAccount")
|
|
894
895
|
: slots.paymentFixedDaySelectSlot))))),
|
|
895
|
-
index.h("div", { class: classes.BtnContainer },
|
|
896
|
-
index.h("sl-button", { type: "primary", disabled: states.disabled || states.saveDisabled, loading: states.saveLoading, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
897
|
-
!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))))));
|
|
898
899
|
};
|
|
899
900
|
|
|
900
901
|
// Hardcoded in Impact backend
|
|
@@ -928,7 +929,7 @@ function getFormInputs({ bitset, formMap }) {
|
|
|
928
929
|
}, []);
|
|
929
930
|
return inputFields;
|
|
930
931
|
}
|
|
931
|
-
const SAVE_WITHDRAWAL_SETTINGS =
|
|
932
|
+
const SAVE_WITHDRAWAL_SETTINGS = index.dist.gql `
|
|
932
933
|
mutation setImpactPublisherWithdrawalSettings(
|
|
933
934
|
$setImpactPublisherWithdrawalSettingsInput: SetImpactPublisherWithdrawalSettingsInput!
|
|
934
935
|
) {
|
|
@@ -1190,7 +1191,7 @@ function useBankingInfoForm(props) {
|
|
|
1190
1191
|
|
|
1191
1192
|
const BankingInfoForm = class {
|
|
1192
1193
|
constructor(hostRef) {
|
|
1193
|
-
index.registerInstance(this, hostRef);
|
|
1194
|
+
index$1.registerInstance(this, hostRef);
|
|
1194
1195
|
this.ignored = true;
|
|
1195
1196
|
/**
|
|
1196
1197
|
* @uiName Setup progress
|
|
@@ -1431,7 +1432,7 @@ const BankingInfoForm = class {
|
|
|
1431
1432
|
* @uiWidget textArea
|
|
1432
1433
|
*/
|
|
1433
1434
|
this.loadingErrorAlertDescription = "Please refresh the page and try again. If this problem continues, contact Support.";
|
|
1434
|
-
stencilHooks_module.h
|
|
1435
|
+
stencilHooks_module.h(this);
|
|
1435
1436
|
}
|
|
1436
1437
|
disconnectedCallback() { }
|
|
1437
1438
|
getTextProps() {
|
|
@@ -1487,40 +1488,40 @@ const BankingInfoForm = class {
|
|
|
1487
1488
|
padding: "var(--sl-spacing-x-small)",
|
|
1488
1489
|
},
|
|
1489
1490
|
};
|
|
1490
|
-
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: {
|
|
1491
1492
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1492
|
-
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) && {
|
|
1493
1494
|
class: "error-input",
|
|
1494
1495
|
helpText: getValidationErrorMessage({
|
|
1495
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,
|
|
1496
1497
|
label: props.text.bankLocationLabel,
|
|
1497
1498
|
}),
|
|
1498
|
-
})), 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) => {
|
|
1499
1500
|
// Stop shoelace intercepting key presses
|
|
1500
1501
|
e.stopPropagation();
|
|
1501
1502
|
}, "onSl-input": (e) => {
|
|
1502
1503
|
props.callbacks.setCountrySearch(e.target.value);
|
|
1503
1504
|
} }), (_d = props.states.countries) === null || _d === void 0 ? void 0 :
|
|
1504
1505
|
_d.map((country) => {
|
|
1505
|
-
return (index.h("sl-menu-item", { value: country.countryCode }, country.displayName));
|
|
1506
|
+
return (index$1.h("sl-menu-item", { value: country.countryCode }, country.displayName));
|
|
1506
1507
|
}), (_f = (_e = props.states) === null || _e === void 0 ? void 0 : _e.allCountries) === null || _f === void 0 ? void 0 :
|
|
1507
|
-
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName))))),
|
|
1508
|
-
paymentMethodSlot: (index.h("sl-input", { key: "paymentMethod", label: props.text.paymentMethod, placeholder: props.states.paymentMethodFeeLabel, disabled: true })),
|
|
1509
|
-
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) && {
|
|
1510
1511
|
class: "error-input",
|
|
1511
1512
|
helpText: getValidationErrorMessage({
|
|
1512
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,
|
|
1513
1514
|
label: props.text.paymentThresholdSelectLabel,
|
|
1514
1515
|
}),
|
|
1515
|
-
})), props.states.thresholds.map((t) => (index.h("sl-menu-item", { value: t }, `${props.states.currency}${t}`))))),
|
|
1516
|
-
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) && {
|
|
1517
1518
|
class: "error-input",
|
|
1518
1519
|
helpText: getValidationErrorMessage({
|
|
1519
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,
|
|
1520
1521
|
label: props.text.paymentDaySelectLabel,
|
|
1521
1522
|
}),
|
|
1522
|
-
})), index.h("sl-menu-item", { value: "1" }, props.text.paymentDayFirstOfMonthLabelText), index.h("sl-menu-item", { value: "15" }, props.text.paymentDayFifteenthOfMonthLabelText))),
|
|
1523
|
-
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) && {
|
|
1524
1525
|
class: "error-input",
|
|
1525
1526
|
helpText: getValidationErrorMessage({
|
|
1526
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,
|
|
@@ -1627,7 +1628,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1627
1628
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
1628
1629
|
}
|
|
1629
1630
|
|
|
1630
|
-
const GET_TAX_DOCUMENT =
|
|
1631
|
+
const GET_TAX_DOCUMENT = index.dist.gql `
|
|
1631
1632
|
mutation createImpactPublisherTaxDocument(
|
|
1632
1633
|
$vars: CreateImpactPublisherTaxDocumentInput!
|
|
1633
1634
|
) {
|
|
@@ -1794,43 +1795,43 @@ const styleString$1 = sheet$1.toString();
|
|
|
1794
1795
|
const DocusignExpiredView = (props) => {
|
|
1795
1796
|
const { classes } = sheet$1;
|
|
1796
1797
|
const { text } = props;
|
|
1797
|
-
return (index.h("div", null,
|
|
1798
|
-
index.h("style", { type: "text/css" }, styleString$1),
|
|
1799
|
-
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1800
|
-
index.h("sl-icon", { style: {
|
|
1798
|
+
return (index$1.h("div", null,
|
|
1799
|
+
index$1.h("style", { type: "text/css" }, styleString$1),
|
|
1800
|
+
index$1.h("div", { class: classes.DocusignStatusContainer },
|
|
1801
|
+
index$1.h("sl-icon", { style: {
|
|
1801
1802
|
width: "50px",
|
|
1802
1803
|
height: "50px",
|
|
1803
1804
|
color: "var(--sl-color-neutral-500)",
|
|
1804
1805
|
}, name: "clock" }),
|
|
1805
|
-
index.h("div", { class: classes.MessageContainer },
|
|
1806
|
-
index.h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
1807
|
-
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1806
|
+
index$1.h("div", { class: classes.MessageContainer },
|
|
1807
|
+
index$1.h("p", { style: { margin: "0" } }, text.docusignExpired)),
|
|
1808
|
+
index$1.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1808
1809
|
};
|
|
1809
1810
|
const DocusignErrorView = (props) => {
|
|
1810
1811
|
const { classes } = sheet$1;
|
|
1811
1812
|
const { text } = props;
|
|
1812
|
-
return (index.h("div", null,
|
|
1813
|
-
index.h("style", { type: "text/css" }, styleString$1),
|
|
1814
|
-
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1815
|
-
index.h("sl-icon", { style: {
|
|
1813
|
+
return (index$1.h("div", null,
|
|
1814
|
+
index$1.h("style", { type: "text/css" }, styleString$1),
|
|
1815
|
+
index$1.h("div", { class: classes.DocusignStatusContainer },
|
|
1816
|
+
index$1.h("sl-icon", { style: {
|
|
1816
1817
|
width: "50px",
|
|
1817
1818
|
height: "50px",
|
|
1818
1819
|
color: "var(--sl-color-gray-500)",
|
|
1819
1820
|
}, name: "exclamation-octagon" }),
|
|
1820
|
-
index.h("div", { class: classes.MessageContainer },
|
|
1821
|
-
index.h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
1822
|
-
index.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1821
|
+
index$1.h("div", { class: classes.MessageContainer },
|
|
1822
|
+
index$1.h("p", { style: { margin: "0" } }, text.docusignError)),
|
|
1823
|
+
index$1.h("sl-button", { type: "primary", onClick: () => window.location.reload() }, text.refreshButton))));
|
|
1823
1824
|
};
|
|
1824
1825
|
const DocusignLoadingView = () => {
|
|
1825
1826
|
const { classes } = sheet$1;
|
|
1826
|
-
return (index.h("div", null,
|
|
1827
|
-
index.h("style", { type: "text/css" }, styleString$1),
|
|
1828
|
-
index.h("div", { class: classes.DocusignStatusContainer },
|
|
1829
|
-
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1827
|
+
return (index$1.h("div", null,
|
|
1828
|
+
index$1.h("style", { type: "text/css" }, styleString$1),
|
|
1829
|
+
index$1.h("div", { class: classes.DocusignStatusContainer },
|
|
1830
|
+
index$1.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1830
1831
|
};
|
|
1831
1832
|
const DocusignIframe = ({ states, callbacks, text, }) => {
|
|
1832
1833
|
if (states.urlLoading)
|
|
1833
|
-
return index.h(DocusignLoadingView, null);
|
|
1834
|
+
return index$1.h(DocusignLoadingView, null);
|
|
1834
1835
|
const callback = index_module.useCallback((e) => {
|
|
1835
1836
|
var _a;
|
|
1836
1837
|
if (!((_a = e.origin) === null || _a === void 0 ? void 0 : _a.includes("referralsaasquatch.com")))
|
|
@@ -1846,11 +1847,11 @@ const DocusignIframe = ({ states, callbacks, text, }) => {
|
|
|
1846
1847
|
};
|
|
1847
1848
|
}, []);
|
|
1848
1849
|
if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
|
|
1849
|
-
return index.h(DocusignErrorView, { text: text });
|
|
1850
|
+
return index$1.h(DocusignErrorView, { text: text });
|
|
1850
1851
|
}
|
|
1851
1852
|
if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
|
|
1852
|
-
return index.h(DocusignExpiredView, { text: text });
|
|
1853
|
-
return (index.h("iframe", { frameBorder: "0", src: states.url, width: "100%", height: "600px" }));
|
|
1853
|
+
return index$1.h(DocusignExpiredView, { text: text });
|
|
1854
|
+
return (index$1.h("iframe", { frameBorder: "0", src: states.url, width: "100%", height: "600px" }));
|
|
1854
1855
|
};
|
|
1855
1856
|
|
|
1856
1857
|
const style$2 = {
|
|
@@ -1994,49 +1995,49 @@ const DocusignFormView = (props) => {
|
|
|
1994
1995
|
var _a, _b;
|
|
1995
1996
|
const { states, states: { formState, documentTypeString }, callbacks, text, slots, } = props;
|
|
1996
1997
|
const { classes } = sheet$2;
|
|
1997
|
-
return (index.h("div", { class: classes.Container },
|
|
1998
|
-
index.h("style", { type: "text/css" },
|
|
1998
|
+
return (index$1.h("div", { class: classes.Container },
|
|
1999
|
+
index$1.h("style", { type: "text/css" },
|
|
1999
2000
|
styleString$2,
|
|
2000
2001
|
vanillaStyle$1),
|
|
2001
|
-
index.h("div", { class: classes.TextContainer },
|
|
2002
|
-
index.h("div", null,
|
|
2003
|
-
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
2002
|
+
index$1.h("div", { class: classes.TextContainer },
|
|
2003
|
+
index$1.h("div", null,
|
|
2004
|
+
!states.hideSteps && (index$1.h("p", null, global.intl.formatMessage({
|
|
2004
2005
|
id: "formStep",
|
|
2005
2006
|
defaultMessage: text.formStep,
|
|
2006
2007
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
2007
|
-
index.h("h3", null, text.taxForm),
|
|
2008
|
-
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2009
|
-
states.loadingError && (index.h("div", null,
|
|
2010
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2011
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2012
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2013
|
-
index.h("br", null),
|
|
2008
|
+
index$1.h("h3", null, text.taxForm),
|
|
2009
|
+
index$1.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
2010
|
+
states.loadingError && (index$1.h("div", null,
|
|
2011
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$2.classes.ErrorAlertContainer },
|
|
2012
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2013
|
+
index$1.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2014
|
+
index$1.h("br", null),
|
|
2014
2015
|
text.error.loadingErrorAlertDescription))),
|
|
2015
|
-
((_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 },
|
|
2016
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2017
|
-
index.h("strong", null, text.error.generalTitle),
|
|
2018
|
-
index.h("br", null),
|
|
2016
|
+
((_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 },
|
|
2017
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2018
|
+
index$1.h("strong", null, text.error.generalTitle),
|
|
2019
|
+
index$1.h("br", null),
|
|
2019
2020
|
text.error.generalDescription)),
|
|
2020
|
-
states.documentType !== "W9" && (index.h("div", { class: classes.CheckboxWrapper },
|
|
2021
|
-
index.h("p", { class: classes.BoldText }, text.participantType),
|
|
2022
|
-
states.loading ? (index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index.h("div", { style: { display: "flex", flexDirection: "column" } },
|
|
2023
|
-
index.h("sl-radio", { exportparts: "base: radio-base", value: "individualParticipant", name: "/participantType", checked: formState.participantType === "individualParticipant", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
|
|
2021
|
+
states.documentType !== "W9" && (index$1.h("div", { class: classes.CheckboxWrapper },
|
|
2022
|
+
index$1.h("p", { class: classes.BoldText }, text.participantType),
|
|
2023
|
+
states.loading ? (index$1.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index$1.h("div", { style: { display: "flex", flexDirection: "column" } },
|
|
2024
|
+
index$1.h("sl-radio", { exportparts: "base: radio-base", value: "individualParticipant", name: "/participantType", checked: formState.participantType === "individualParticipant", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
|
|
2024
2025
|
if (states.disabled || states.participantTypeDisabled)
|
|
2025
2026
|
return;
|
|
2026
2027
|
callbacks.setParticipantType("individualParticipant");
|
|
2027
2028
|
} },
|
|
2028
|
-
index.h("span", { class: classes.RadioText }, text.individualParticipant)),
|
|
2029
|
-
index.h("sl-radio", { exportparts: "base: radio-base", value: "businessEntity", name: "/participantType", checked: formState.participantType === "businessEntity", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
|
|
2029
|
+
index$1.h("span", { class: classes.RadioText }, text.individualParticipant)),
|
|
2030
|
+
index$1.h("sl-radio", { exportparts: "base: radio-base", value: "businessEntity", name: "/participantType", checked: formState.participantType === "businessEntity", disabled: states.disabled || states.participantTypeDisabled, onClick: () => {
|
|
2030
2031
|
if (states.disabled || states.participantTypeDisabled)
|
|
2031
2032
|
return;
|
|
2032
2033
|
callbacks.setParticipantType("businessEntity");
|
|
2033
2034
|
} },
|
|
2034
|
-
index.h("span", { class: classes.RadioText }, text.businessEntity)))),
|
|
2035
|
-
((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.participantType) && (index.h("p", { class: classes.ErrorText }, text.error.participantType)))),
|
|
2036
|
-
(states.documentType === "W9" || formState.participantType) && (index.h("div", null,
|
|
2037
|
-
index.h("div", null,
|
|
2038
|
-
index.h("h5", { class: classes.BoldText }, global.intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
|
|
2039
|
-
index.h("p", null, global.intl.formatMessage({
|
|
2035
|
+
index$1.h("span", { class: classes.RadioText }, text.businessEntity)))),
|
|
2036
|
+
((_b = formState.errors) === null || _b === void 0 ? void 0 : _b.participantType) && (index$1.h("p", { class: classes.ErrorText }, text.error.participantType)))),
|
|
2037
|
+
(states.documentType === "W9" || formState.participantType) && (index$1.h("div", null,
|
|
2038
|
+
index$1.h("div", null,
|
|
2039
|
+
index$1.h("h5", { class: classes.BoldText }, global.intl.formatMessage({ id: "tax-form-label", defaultMessage: text.taxFormLabel }, { documentType: documentTypeString })),
|
|
2040
|
+
index$1.h("p", null, global.intl.formatMessage({
|
|
2040
2041
|
id: "tax-form-description",
|
|
2041
2042
|
defaultMessage: states.documentType === "W9"
|
|
2042
2043
|
? text.taxFormDescription
|
|
@@ -2044,16 +2045,16 @@ const DocusignFormView = (props) => {
|
|
|
2044
2045
|
? text.taxFormDescriptionIndividualParticipant
|
|
2045
2046
|
: text.taxFormDescriptionBusinessEntity,
|
|
2046
2047
|
}, { documentType: documentTypeString }))),
|
|
2047
|
-
index.h("div", null,
|
|
2048
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2049
|
-
index.h("sl-icon", { class: classes.InfoIcon, slot: "icon", name: "info-circle" }),
|
|
2048
|
+
index$1.h("div", null,
|
|
2049
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2050
|
+
index$1.h("sl-icon", { class: classes.InfoIcon, slot: "icon", name: "info-circle" }),
|
|
2050
2051
|
text.docusignSessionWarning),
|
|
2051
2052
|
slots.docusignIframeSlot)))));
|
|
2052
2053
|
};
|
|
2053
2054
|
|
|
2054
2055
|
const DocusignForm = class {
|
|
2055
2056
|
constructor(hostRef) {
|
|
2056
|
-
index.registerInstance(this, hostRef);
|
|
2057
|
+
index$1.registerInstance(this, hostRef);
|
|
2057
2058
|
this.ignored = true;
|
|
2058
2059
|
/**
|
|
2059
2060
|
* @uiName Setup progress
|
|
@@ -2151,7 +2152,7 @@ const DocusignForm = class {
|
|
|
2151
2152
|
* @uiName Page description
|
|
2152
2153
|
*/
|
|
2153
2154
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
2154
|
-
stencilHooks_module.h
|
|
2155
|
+
stencilHooks_module.h(this);
|
|
2155
2156
|
}
|
|
2156
2157
|
disconnectedCallback() { }
|
|
2157
2158
|
getTextProps() {
|
|
@@ -2170,7 +2171,7 @@ const DocusignForm = class {
|
|
|
2170
2171
|
render() {
|
|
2171
2172
|
const _isDemo = index_module.isDemo();
|
|
2172
2173
|
const props = _isDemo ? useDocusignFormDemo(this) : useDocusignForm(this);
|
|
2173
|
-
const docusignIframeSlot = (index.h(DocusignIframe, { states: {
|
|
2174
|
+
const docusignIframeSlot = (index$1.h(DocusignIframe, { states: {
|
|
2174
2175
|
url: props.data.documentUrl,
|
|
2175
2176
|
status: props.states.docusignStatus,
|
|
2176
2177
|
loading: props.states.loading,
|
|
@@ -2178,13 +2179,13 @@ const DocusignForm = class {
|
|
|
2178
2179
|
}, callbacks: {
|
|
2179
2180
|
onStatusChange: props.callbacks.setDocusignStatus,
|
|
2180
2181
|
}, text: props.text }));
|
|
2181
|
-
return (index.h(index.Host, null, index.h(DocusignFormView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
2182
|
+
return (index$1.h(index$1.Host, null, index$1.h(DocusignFormView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
2182
2183
|
docusignIframeSlot: _isDemo
|
|
2183
2184
|
? DemoDocusignIframe({ callbacks: props.callbacks })
|
|
2184
2185
|
: docusignIframeSlot,
|
|
2185
2186
|
} })));
|
|
2186
2187
|
}
|
|
2187
|
-
get el() { return index.getElement(this); }
|
|
2188
|
+
get el() { return index$1.getElement(this); }
|
|
2188
2189
|
};
|
|
2189
2190
|
function useDocusignFormDemo(props) {
|
|
2190
2191
|
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
@@ -2221,19 +2222,19 @@ function useDocusignFormDemo(props) {
|
|
|
2221
2222
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
2222
2223
|
}
|
|
2223
2224
|
const DemoDocusignIframe = ({ callbacks }) => {
|
|
2224
|
-
return (index.h("div", { style: {
|
|
2225
|
+
return (index$1.h("div", { style: {
|
|
2225
2226
|
width: "100%",
|
|
2226
2227
|
height: "600px",
|
|
2227
2228
|
background: "#fafafa",
|
|
2228
2229
|
display: "flex",
|
|
2229
2230
|
justifyContent: "center",
|
|
2230
2231
|
alignItems: "center",
|
|
2231
|
-
} }, index.h("div", { style: {
|
|
2232
|
+
} }, index$1.h("div", { style: {
|
|
2232
2233
|
display: "flex",
|
|
2233
2234
|
flexDirection: "column",
|
|
2234
2235
|
gap: "12px",
|
|
2235
2236
|
alignItems: "center",
|
|
2236
|
-
} }, 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")))));
|
|
2237
|
+
} }, 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")))));
|
|
2237
2238
|
};
|
|
2238
2239
|
|
|
2239
2240
|
const style$3 = {
|
|
@@ -2368,61 +2369,61 @@ const IndirectTaxFormView = (props) => {
|
|
|
2368
2369
|
var _a;
|
|
2369
2370
|
const { states, states: { formState }, callbacks, text, refs, slots, } = props;
|
|
2370
2371
|
const { classes } = sheet$3;
|
|
2371
|
-
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2372
|
-
index.h("style", { type: "text/css" },
|
|
2372
|
+
return (index$1.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
2373
|
+
index$1.h("style", { type: "text/css" },
|
|
2373
2374
|
styleString$3,
|
|
2374
2375
|
vanillaStyle$2),
|
|
2375
|
-
index.h("div", { class: classes.TextContainer },
|
|
2376
|
-
index.h("div", null,
|
|
2377
|
-
!states.hideSteps && (index.h("p", null,
|
|
2376
|
+
index$1.h("div", { class: classes.TextContainer },
|
|
2377
|
+
index$1.h("div", null,
|
|
2378
|
+
!states.hideSteps && (index$1.h("p", null,
|
|
2378
2379
|
" ",
|
|
2379
2380
|
global.intl.formatMessage({
|
|
2380
2381
|
id: "formStep",
|
|
2381
2382
|
defaultMessage: text.formStep,
|
|
2382
2383
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
2383
|
-
index.h("h3", null, text.indirectTax),
|
|
2384
|
-
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2385
|
-
index.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2386
|
-
states.loadingError && (index.h("div", null,
|
|
2387
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
|
|
2388
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2389
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2390
|
-
index.h("br", null),
|
|
2384
|
+
index$1.h("h3", null, text.indirectTax),
|
|
2385
|
+
index$1.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
2386
|
+
index$1.h("p", { class: classes.DescriptionText }, text.indirectTaxDescription)),
|
|
2387
|
+
states.loadingError && (index$1.h("div", null,
|
|
2388
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$3.classes.AlertContainer },
|
|
2389
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2390
|
+
index$1.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
2391
|
+
index$1.h("br", null),
|
|
2391
2392
|
text.error.loadingErrorAlertDescription))),
|
|
2392
|
-
((_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 },
|
|
2393
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2394
|
-
index.h("strong", null, text.error.generalTitle),
|
|
2395
|
-
index.h("br", null),
|
|
2393
|
+
((_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 },
|
|
2394
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
2395
|
+
index$1.h("strong", null, text.error.generalTitle),
|
|
2396
|
+
index$1.h("br", null),
|
|
2396
2397
|
text.error.generalDescription)),
|
|
2397
|
-
states.isPartner && (index.h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2398
|
-
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2399
|
-
index.h("strong", null, text.isPartnerAlertHeader),
|
|
2400
|
-
index.h("br", null),
|
|
2398
|
+
states.isPartner && (index$1.h("sl-alert", { type: "primary", open: true, class: sheet$3.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
2399
|
+
index$1.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
2400
|
+
index$1.h("strong", null, text.isPartnerAlertHeader),
|
|
2401
|
+
index$1.h("br", null),
|
|
2401
2402
|
text.isPartnerAlertDescription)),
|
|
2402
|
-
index.h("div", null,
|
|
2403
|
-
index.h("h4", null, text.indirectTaxDetails))),
|
|
2404
|
-
states.loading ? (index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index.h("div", null,
|
|
2405
|
-
index.h("div", { class: classes.RadioContainer },
|
|
2406
|
-
index.h("div", { class: classes.InnerRadioContainer },
|
|
2407
|
-
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 },
|
|
2408
|
-
index.h("div", { class: classes.RadioContent },
|
|
2403
|
+
index$1.h("div", null,
|
|
2404
|
+
index$1.h("h4", null, text.indirectTaxDetails))),
|
|
2405
|
+
states.loading ? (index$1.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } })) : (index$1.h("div", null,
|
|
2406
|
+
index$1.h("div", { class: classes.RadioContainer },
|
|
2407
|
+
index$1.h("div", { class: classes.InnerRadioContainer },
|
|
2408
|
+
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 },
|
|
2409
|
+
index$1.h("div", { class: classes.RadioContent },
|
|
2409
2410
|
text.notRegistered,
|
|
2410
|
-
index.h("p", { class: classes.DescriptionText }, text.notRegisteredSubtext))),
|
|
2411
|
-
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 },
|
|
2412
|
-
index.h("div", { class: classes.RadioContent },
|
|
2411
|
+
index$1.h("p", { class: classes.DescriptionText }, text.notRegisteredSubtext))),
|
|
2412
|
+
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 },
|
|
2413
|
+
index$1.h("div", { class: classes.RadioContent },
|
|
2413
2414
|
text.otherRegion,
|
|
2414
|
-
index.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2415
|
+
index$1.h("p", { class: classes.DescriptionText }, text.otherRegionSubtext))),
|
|
2415
2416
|
slots.registeredInDifferentCountryDetailsSlot)),
|
|
2416
|
-
index.h("div", { class: classes.CannotChangeAlertContainer },
|
|
2417
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2418
|
-
index.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
2417
|
+
index$1.h("div", { class: classes.CannotChangeAlertContainer },
|
|
2418
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "primary", open: true, class: classes.InfoAlert },
|
|
2419
|
+
index$1.h("sl-icon", { class: classes.InfoWarningIcon, slot: "icon", name: "exclamation-triangle" }),
|
|
2419
2420
|
text.cannotChangeInfoAlert)),
|
|
2420
|
-
index.h("div", { class: classes.BtnContainer },
|
|
2421
|
-
index.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2422
|
-
index.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2421
|
+
index$1.h("div", { class: classes.BtnContainer },
|
|
2422
|
+
index$1.h("sl-button", { type: "primary", disabled: states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton),
|
|
2423
|
+
index$1.h("sl-button", { class: classes.SecondaryBtn, type: "text", disabled: states.disabled, onClick: callbacks.onBack, exportparts: "base: secondarybutton-base" }, text.backButton))))));
|
|
2423
2424
|
};
|
|
2424
2425
|
|
|
2425
|
-
const CONNECT_PARTNER =
|
|
2426
|
+
const CONNECT_PARTNER = index.dist.gql `
|
|
2426
2427
|
mutation createImpactConnection($vars: ImpactConnectionInput!) {
|
|
2427
2428
|
createImpactConnection(impactConnectionInput: $vars) {
|
|
2428
2429
|
success
|
|
@@ -2658,7 +2659,7 @@ function useIndirectTaxForm(props) {
|
|
|
2658
2659
|
|
|
2659
2660
|
const IndirectTaxForm = class {
|
|
2660
2661
|
constructor(hostRef) {
|
|
2661
|
-
index.registerInstance(this, hostRef);
|
|
2662
|
+
index$1.registerInstance(this, hostRef);
|
|
2662
2663
|
/**
|
|
2663
2664
|
* @uiName Setup progress
|
|
2664
2665
|
*/
|
|
@@ -2804,7 +2805,7 @@ const IndirectTaxForm = class {
|
|
|
2804
2805
|
* @uiName Page description
|
|
2805
2806
|
*/
|
|
2806
2807
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
2807
|
-
stencilHooks_module.h
|
|
2808
|
+
stencilHooks_module.h(this);
|
|
2808
2809
|
}
|
|
2809
2810
|
disconnectedCallback() { }
|
|
2810
2811
|
getTextProps() {
|
|
@@ -2839,7 +2840,7 @@ const IndirectTaxForm = class {
|
|
|
2839
2840
|
const props = index_module.isDemo()
|
|
2840
2841
|
? useDemoIndirectTaxForm(this)
|
|
2841
2842
|
: useIndirectTaxForm(this);
|
|
2842
|
-
const registeredInDifferentCountryDetailsSlot = (index.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
|
|
2843
|
+
const registeredInDifferentCountryDetailsSlot = (index$1.h(sqmInvoiceTableView.OtherRegionSlotView, { states: {
|
|
2843
2844
|
hide: props.states.formState.checked !== "otherRegion",
|
|
2844
2845
|
disabled: props.states.disabled || props.states.isPartner,
|
|
2845
2846
|
formState: props.slotProps.formState,
|
|
@@ -2851,7 +2852,7 @@ const IndirectTaxForm = class {
|
|
|
2851
2852
|
provinces: props.data.provinces,
|
|
2852
2853
|
allCountries: props.data.allCountries,
|
|
2853
2854
|
}, text: props.text.slotText }));
|
|
2854
|
-
return (index.h(index.Host, null, index.h(IndirectTaxFormView, { callbacks: props.callbacks, states: props.states, refs: props.refs, text: props.text, slots: {
|
|
2855
|
+
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: {
|
|
2855
2856
|
registeredInDifferentCountryDetailsSlot,
|
|
2856
2857
|
} })));
|
|
2857
2858
|
}
|
|
@@ -2941,7 +2942,7 @@ function useDemoIndirectTaxForm(props) {
|
|
|
2941
2942
|
|
|
2942
2943
|
const debug = stencilHooks_module.browser("sq:useInvoiceTable");
|
|
2943
2944
|
const CSS_NAMESPACE = "sqm-invoice-table";
|
|
2944
|
-
const GET_INVOICES =
|
|
2945
|
+
const GET_INVOICES = index.dist.gql `
|
|
2945
2946
|
query getUserTaxInfo($limit: Int!, $offset: Int!) {
|
|
2946
2947
|
user: viewer {
|
|
2947
2948
|
... on User {
|
|
@@ -3002,7 +3003,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3002
3003
|
netEarnings: `${invoice.currency}${((_c = (invoice.totalAmount - invoice.totalVatAmount)) === null || _c === void 0 ? void 0 : _c.toFixed(2)) || "0.00"}`,
|
|
3003
3004
|
downloadUrl: invoice.downloadUrl,
|
|
3004
3005
|
};
|
|
3005
|
-
const cellPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderCell(invoiceData, { locale }, index.h)));
|
|
3006
|
+
const cellPromise = columnComponents === null || columnComponents === void 0 ? void 0 : columnComponents.map(async (c) => tryMethod(c, () => c.renderCell(invoiceData, { locale }, index$1.h)));
|
|
3006
3007
|
const cells = (await Promise.all(cellPromise));
|
|
3007
3008
|
return cells;
|
|
3008
3009
|
});
|
|
@@ -3071,7 +3072,7 @@ async function tryMethod(c, callback) {
|
|
|
3071
3072
|
// renderLabel did not return a promise, so this method probably doesn't exist
|
|
3072
3073
|
// therefore, we IGNORE the label
|
|
3073
3074
|
debug("label promise failed", e);
|
|
3074
|
-
return index.h("span", null);
|
|
3075
|
+
return index$1.h("span", null);
|
|
3075
3076
|
}
|
|
3076
3077
|
try {
|
|
3077
3078
|
return await labelPromise;
|
|
@@ -3081,8 +3082,8 @@ async function tryMethod(c, callback) {
|
|
|
3081
3082
|
// This should not happen so we fail fast
|
|
3082
3083
|
debug("Error rendering label", e);
|
|
3083
3084
|
const userError = useReferralTable.generateUserError(e);
|
|
3084
|
-
return (index.h("details", null,
|
|
3085
|
-
index.h("summary", null, "Error"),
|
|
3085
|
+
return (index$1.h("details", null,
|
|
3086
|
+
index$1.h("summary", null, "Error"),
|
|
3086
3087
|
userError));
|
|
3087
3088
|
}
|
|
3088
3089
|
}
|
|
@@ -3109,7 +3110,7 @@ const getMockData = () => {
|
|
|
3109
3110
|
|
|
3110
3111
|
const InvoiceTable = class {
|
|
3111
3112
|
constructor(hostRef) {
|
|
3112
|
-
index.registerInstance(this, hostRef);
|
|
3113
|
+
index$1.registerInstance(this, hostRef);
|
|
3113
3114
|
/**
|
|
3114
3115
|
* Number of invoices displayed per page
|
|
3115
3116
|
*
|
|
@@ -3140,27 +3141,27 @@ const InvoiceTable = class {
|
|
|
3140
3141
|
this.emptyStateHeader = "View your invoice details";
|
|
3141
3142
|
/** @uiName Empty invoice table description */
|
|
3142
3143
|
this.emptyStateText = "Refer a friend to view the status of your invoices and rewards earned";
|
|
3143
|
-
stencilHooks_module.h
|
|
3144
|
+
stencilHooks_module.h(this);
|
|
3144
3145
|
}
|
|
3145
3146
|
disconnectedCallback() { }
|
|
3146
3147
|
render() {
|
|
3147
|
-
const empty = (index.h(EmptySlot, { emptyStateHeader: this.emptyStateHeader, emptyStateText: this.emptyStateText }));
|
|
3148
|
-
const loading = index.h(LoadingSlot, null);
|
|
3148
|
+
const empty = (index$1.h(EmptySlot, { emptyStateHeader: this.emptyStateHeader, emptyStateText: this.emptyStateText }));
|
|
3149
|
+
const loading = index$1.h(LoadingSlot, null);
|
|
3149
3150
|
const { states, data, callbacks, elements } = index_module.isDemo()
|
|
3150
3151
|
? useInvoiceTableDemo(this, empty, loading)
|
|
3151
3152
|
: useInvoiceTable(this, empty, loading);
|
|
3152
3153
|
reRender.useRequestRerender([this.perPage]);
|
|
3153
|
-
return (index.h(sqmInvoiceTableView.InvoiceTableView, { header: this.header, description: this.description }, index.h(GenericTableView.GenericTableView, { states: states, data: data, callbacks: callbacks, elements: elements })));
|
|
3154
|
+
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 })));
|
|
3154
3155
|
}
|
|
3155
3156
|
};
|
|
3156
3157
|
function EmptySlot(props) {
|
|
3157
|
-
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 })));
|
|
3158
|
+
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 })));
|
|
3158
3159
|
}
|
|
3159
3160
|
function LoadingSlot() {
|
|
3160
|
-
return (index.h("slot", { name: "loading" }, index.h(LoadingRow, null), index.h(LoadingRow, null), index.h(LoadingRow, null), index.h(LoadingRow, null)));
|
|
3161
|
+
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)));
|
|
3161
3162
|
}
|
|
3162
3163
|
function LoadingRow() {
|
|
3163
|
-
return (index.h("sqm-table-row", null, index.h("sqm-table-cell", { colspan: 6 }, index.h("sl-skeleton", null))));
|
|
3164
|
+
return (index$1.h("sqm-table-row", null, index$1.h("sqm-table-cell", { colspan: 6 }, index$1.h("sl-skeleton", null))));
|
|
3164
3165
|
}
|
|
3165
3166
|
function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
3166
3167
|
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
@@ -3254,9 +3255,9 @@ function useInvoiceTableDemo(props, emptyElement, loadingElement) {
|
|
|
3254
3255
|
|
|
3255
3256
|
const InvoiceTableDataCell = class {
|
|
3256
3257
|
constructor(hostRef) {
|
|
3257
|
-
index.registerInstance(this, hostRef);
|
|
3258
|
+
index$1.registerInstance(this, hostRef);
|
|
3258
3259
|
this.ignored = true;
|
|
3259
|
-
stencilHooks_module.h
|
|
3260
|
+
stencilHooks_module.h(this);
|
|
3260
3261
|
}
|
|
3261
3262
|
disconnectedCallback() { }
|
|
3262
3263
|
render() {
|
|
@@ -3266,28 +3267,28 @@ const InvoiceTableDataCell = class {
|
|
|
3266
3267
|
|
|
3267
3268
|
const InvoiceTableDataColumn = class {
|
|
3268
3269
|
constructor(hostRef) {
|
|
3269
|
-
index.registerInstance(this, hostRef);
|
|
3270
|
-
stencilHooks_module.h
|
|
3270
|
+
index$1.registerInstance(this, hostRef);
|
|
3271
|
+
stencilHooks_module.h(this);
|
|
3271
3272
|
}
|
|
3272
3273
|
disconnectedCallback() { }
|
|
3273
3274
|
async renderCell(data) {
|
|
3274
|
-
return (index.h("sqm-invoice-table-data-cell", { data: data[this.property] }));
|
|
3275
|
+
return (index$1.h("sqm-invoice-table-data-cell", { data: data[this.property] }));
|
|
3275
3276
|
}
|
|
3276
3277
|
async renderLabel() {
|
|
3277
3278
|
return Promise.resolve(this.columnTitle);
|
|
3278
3279
|
}
|
|
3279
3280
|
render() {
|
|
3280
3281
|
reRender.useRequestRerender([this.columnTitle, this.property]);
|
|
3281
|
-
return (index.h(index.Host, { style: { display: "none" } }, index.h("slot", null)));
|
|
3282
|
+
return (index$1.h(index$1.Host, { style: { display: "none" } }, index$1.h("slot", null)));
|
|
3282
3283
|
}
|
|
3283
3284
|
};
|
|
3284
3285
|
|
|
3285
3286
|
const RewardTableDateCell = class {
|
|
3286
3287
|
constructor(hostRef) {
|
|
3287
|
-
index.registerInstance(this, hostRef);
|
|
3288
|
+
index$1.registerInstance(this, hostRef);
|
|
3288
3289
|
this.ignored = true;
|
|
3289
3290
|
this.locale = "en";
|
|
3290
|
-
stencilHooks_module.h
|
|
3291
|
+
stencilHooks_module.h(this);
|
|
3291
3292
|
}
|
|
3292
3293
|
disconnectedCallback() { }
|
|
3293
3294
|
render() {
|
|
@@ -3301,58 +3302,58 @@ const RewardTableDateCell = class {
|
|
|
3301
3302
|
|
|
3302
3303
|
const InvoiceTableDateColumn = class {
|
|
3303
3304
|
constructor(hostRef) {
|
|
3304
|
-
index.registerInstance(this, hostRef);
|
|
3305
|
-
stencilHooks_module.h
|
|
3305
|
+
index$1.registerInstance(this, hostRef);
|
|
3306
|
+
stencilHooks_module.h(this);
|
|
3306
3307
|
}
|
|
3307
3308
|
disconnectedCallback() { }
|
|
3308
3309
|
async renderCell(data, options) {
|
|
3309
|
-
return (index.h("sqm-invoice-table-date-cell", { date: data.dateCreated, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
3310
|
+
return (index$1.h("sqm-invoice-table-date-cell", { date: data.dateCreated, locale: options === null || options === void 0 ? void 0 : options.locale }));
|
|
3310
3311
|
}
|
|
3311
3312
|
async renderLabel() {
|
|
3312
3313
|
return this.columnTitle;
|
|
3313
3314
|
}
|
|
3314
3315
|
render() {
|
|
3315
3316
|
reRender.useRequestRerender([this.columnTitle]);
|
|
3316
|
-
return (index.h(index.Host, { style: { display: "none" } }, index.h("slot", null)));
|
|
3317
|
+
return (index$1.h(index$1.Host, { style: { display: "none" } }, index$1.h("slot", null)));
|
|
3317
3318
|
}
|
|
3318
3319
|
};
|
|
3319
3320
|
|
|
3320
3321
|
const InvoiceTableDownloadCell = class {
|
|
3321
3322
|
constructor(hostRef) {
|
|
3322
|
-
index.registerInstance(this, hostRef);
|
|
3323
|
+
index$1.registerInstance(this, hostRef);
|
|
3323
3324
|
this.ignored = true;
|
|
3324
|
-
stencilHooks_module.h
|
|
3325
|
+
stencilHooks_module.h(this);
|
|
3325
3326
|
}
|
|
3326
3327
|
disconnectedCallback() { }
|
|
3327
3328
|
render() {
|
|
3328
3329
|
const vanillaStyle = `svg:hover, svg:hover * {
|
|
3329
3330
|
cursor: pointer;
|
|
3330
3331
|
}`;
|
|
3331
|
-
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" }))))));
|
|
3332
|
+
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" }))))));
|
|
3332
3333
|
}
|
|
3333
3334
|
};
|
|
3334
3335
|
|
|
3335
3336
|
const InvoiceTableGenericColumn = class {
|
|
3336
3337
|
constructor(hostRef) {
|
|
3337
|
-
index.registerInstance(this, hostRef);
|
|
3338
|
-
stencilHooks_module.h
|
|
3338
|
+
index$1.registerInstance(this, hostRef);
|
|
3339
|
+
stencilHooks_module.h(this);
|
|
3339
3340
|
}
|
|
3340
3341
|
disconnectedCallback() { }
|
|
3341
3342
|
async renderCell(data) {
|
|
3342
|
-
return (index.h("sqm-invoice-table-download-cell", { downloadUrl: data.downloadUrl }));
|
|
3343
|
+
return (index$1.h("sqm-invoice-table-download-cell", { downloadUrl: data.downloadUrl }));
|
|
3343
3344
|
}
|
|
3344
3345
|
async renderLabel() {
|
|
3345
|
-
return index.h("span", null);
|
|
3346
|
+
return index$1.h("span", null);
|
|
3346
3347
|
}
|
|
3347
3348
|
render() {
|
|
3348
|
-
return (index.h(index.Host, { style: { display: "none" } }, index.h("slot", null)));
|
|
3349
|
+
return (index$1.h(index$1.Host, { style: { display: "none" } }, index$1.h("slot", null)));
|
|
3349
3350
|
}
|
|
3350
3351
|
};
|
|
3351
3352
|
|
|
3352
|
-
const PayPalIcon = () => (index.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "20", viewBox: "0 0 17 20", fill: "none" },
|
|
3353
|
-
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" }),
|
|
3354
|
-
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" }),
|
|
3355
|
-
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" })));
|
|
3353
|
+
const PayPalIcon = () => (index$1.h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "17", height: "20", viewBox: "0 0 17 20", fill: "none" },
|
|
3354
|
+
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" }),
|
|
3355
|
+
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" }),
|
|
3356
|
+
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" })));
|
|
3356
3357
|
|
|
3357
3358
|
const style$4 = {
|
|
3358
3359
|
CardContainer: {
|
|
@@ -3493,12 +3494,12 @@ function PayoutDetailsCardView(props) {
|
|
|
3493
3494
|
const { classes } = sheet;
|
|
3494
3495
|
const { states, text } = props;
|
|
3495
3496
|
const renderLoadingSkeleton = () => {
|
|
3496
|
-
return (index.h("div", { class: classes.CardContainer },
|
|
3497
|
-
index.h("div", { class: classes.StatusContainer },
|
|
3498
|
-
index.h("sl-skeleton", { class: classes.SkeletonOne }),
|
|
3499
|
-
index.h("sl-skeleton", { class: classes.SkeletonTwo })),
|
|
3500
|
-
index.h("sl-skeleton", { class: classes.SkeletonThree }),
|
|
3501
|
-
index.h("sl-skeleton", { class: classes.SkeletonOne })));
|
|
3497
|
+
return (index$1.h("div", { class: classes.CardContainer },
|
|
3498
|
+
index$1.h("div", { class: classes.StatusContainer },
|
|
3499
|
+
index$1.h("sl-skeleton", { class: classes.SkeletonOne }),
|
|
3500
|
+
index$1.h("sl-skeleton", { class: classes.SkeletonTwo })),
|
|
3501
|
+
index$1.h("sl-skeleton", { class: classes.SkeletonThree }),
|
|
3502
|
+
index$1.h("sl-skeleton", { class: classes.SkeletonOne })));
|
|
3502
3503
|
};
|
|
3503
3504
|
const renderStatusBadge = (status, statusBadgeText) => {
|
|
3504
3505
|
const badgeType = status === "nextPayout" ? "success" : "primary";
|
|
@@ -3508,7 +3509,7 @@ function PayoutDetailsCardView(props) {
|
|
|
3508
3509
|
}, {
|
|
3509
3510
|
badgeText: status,
|
|
3510
3511
|
});
|
|
3511
|
-
return (index.h("sl-badge", { pill: true, type: badgeType }, statusText));
|
|
3512
|
+
return (index$1.h("sl-badge", { pill: true, type: badgeType }, statusText));
|
|
3512
3513
|
};
|
|
3513
3514
|
const thresholdText = global.intl.formatMessage({
|
|
3514
3515
|
id: "thresholdText",
|
|
@@ -3516,16 +3517,16 @@ function PayoutDetailsCardView(props) {
|
|
|
3516
3517
|
}, {
|
|
3517
3518
|
thresholdBalance: states.thresholdBalance,
|
|
3518
3519
|
});
|
|
3519
|
-
return (index.h("div", { class: classes.Container },
|
|
3520
|
-
index.h("style", { type: "text/css" }, styleString),
|
|
3521
|
-
states.error && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
|
|
3522
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
3523
|
-
index.h("div", { class: classes.AlertContent },
|
|
3524
|
-
index.h("b", null, text.error.errorTitleText),
|
|
3520
|
+
return (index$1.h("div", { class: classes.Container },
|
|
3521
|
+
index$1.h("style", { type: "text/css" }, styleString),
|
|
3522
|
+
states.error && (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", class: classes.Alert, type: "warning", open: true },
|
|
3523
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
3524
|
+
index$1.h("div", { class: classes.AlertContent },
|
|
3525
|
+
index$1.h("b", null, text.error.errorTitleText),
|
|
3525
3526
|
text.error.errorDescriptionText))),
|
|
3526
|
-
states.loading ? (renderLoadingSkeleton()) : (index.h("div", { class: classes.CardContainer },
|
|
3527
|
-
index.h("div", { class: classes.StatusContainer },
|
|
3528
|
-
index.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
3527
|
+
states.loading ? (renderLoadingSkeleton()) : (index$1.h("div", { class: classes.CardContainer },
|
|
3528
|
+
index$1.h("div", { class: classes.StatusContainer },
|
|
3529
|
+
index$1.h("p", { class: classes.SubduedRegularText }, states.badgeStatus === "thresholdPayout"
|
|
3529
3530
|
? states.thresholdBalance
|
|
3530
3531
|
? thresholdText
|
|
3531
3532
|
: ""
|
|
@@ -3533,11 +3534,11 @@ function PayoutDetailsCardView(props) {
|
|
|
3533
3534
|
states.badgeStatus === "thresholdPayout"
|
|
3534
3535
|
? null
|
|
3535
3536
|
: renderStatusBadge(states.badgeStatus, text.statusBadgeText)),
|
|
3536
|
-
index.h("h1", { class: classes.MainCurrency }, states.balance),
|
|
3537
|
-
states.payoutType === "PAYPAL" ? (index.h("div", { class: classes.PaypalDetailsContainer },
|
|
3538
|
-
index.h("span", { class: classes.PaypalEmail }, states.paypalEmailAddress),
|
|
3539
|
-
index.h(PayPalIcon, null))) : (index.h("div", { class: classes.AccountDetailsContainer },
|
|
3540
|
-
index.h("span", null, states.cardNumberPreview
|
|
3537
|
+
index$1.h("h1", { class: classes.MainCurrency }, states.balance),
|
|
3538
|
+
states.payoutType === "PAYPAL" ? (index$1.h("div", { class: classes.PaypalDetailsContainer },
|
|
3539
|
+
index$1.h("span", { class: classes.PaypalEmail }, states.paypalEmailAddress),
|
|
3540
|
+
index$1.h(PayPalIcon, null))) : (index$1.h("div", { class: classes.AccountDetailsContainer },
|
|
3541
|
+
index$1.h("span", null, states.cardNumberPreview
|
|
3541
3542
|
? `${text.accountText} ${states.cardNumberPreview}`
|
|
3542
3543
|
: text.payoutMissingInformationText)))))));
|
|
3543
3544
|
}
|
|
@@ -3602,7 +3603,7 @@ function usePayoutDetailsCard(props) {
|
|
|
3602
3603
|
|
|
3603
3604
|
const PayoutDetailsCard = class {
|
|
3604
3605
|
constructor(hostRef) {
|
|
3605
|
-
index.registerInstance(this, hostRef);
|
|
3606
|
+
index$1.registerInstance(this, hostRef);
|
|
3606
3607
|
/**
|
|
3607
3608
|
* Badge text indicating payout status
|
|
3608
3609
|
* @uiName Payout badge status text
|
|
@@ -3633,7 +3634,7 @@ const PayoutDetailsCard = class {
|
|
|
3633
3634
|
* @uiName Payout missing information subtext
|
|
3634
3635
|
*/
|
|
3635
3636
|
this.payoutMissingInformationText = "Missing banking information, go to Impact.com to resolve.";
|
|
3636
|
-
stencilHooks_module.h
|
|
3637
|
+
stencilHooks_module.h(this);
|
|
3637
3638
|
}
|
|
3638
3639
|
disconnectedCallback() { }
|
|
3639
3640
|
getTextProps() {
|
|
@@ -3650,7 +3651,7 @@ const PayoutDetailsCard = class {
|
|
|
3650
3651
|
const props = index_module.isDemo()
|
|
3651
3652
|
? useDemoPayoutDetailsCard(this)
|
|
3652
3653
|
: usePayoutDetailsCard(this);
|
|
3653
|
-
return (index.h(index.Host, null, index.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
3654
|
+
return (index$1.h(index$1.Host, null, index$1.h(PayoutDetailsCardView, { text: props.text, states: props.states })));
|
|
3654
3655
|
}
|
|
3655
3656
|
};
|
|
3656
3657
|
function useDemoPayoutDetailsCard(props) {
|
|
@@ -3676,27 +3677,27 @@ function useDemoPayoutDetailsCard(props) {
|
|
|
3676
3677
|
|
|
3677
3678
|
const TableCell = class {
|
|
3678
3679
|
constructor(hostRef) {
|
|
3679
|
-
index.registerInstance(this, hostRef);
|
|
3680
|
+
index$1.registerInstance(this, hostRef);
|
|
3680
3681
|
/** @uiName Column span */
|
|
3681
3682
|
this.colspan = 1;
|
|
3682
3683
|
/** @uiName Padding */
|
|
3683
3684
|
this.padding = "15px 10px";
|
|
3684
3685
|
}
|
|
3685
3686
|
render() {
|
|
3686
|
-
return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
|
|
3687
|
+
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))));
|
|
3687
3688
|
}
|
|
3688
3689
|
};
|
|
3689
3690
|
|
|
3690
3691
|
const TableRow = class {
|
|
3691
3692
|
constructor(hostRef) {
|
|
3692
|
-
index.registerInstance(this, hostRef);
|
|
3693
|
+
index$1.registerInstance(this, hostRef);
|
|
3693
3694
|
/**
|
|
3694
3695
|
* @uiName Border
|
|
3695
3696
|
*/
|
|
3696
3697
|
this.border = "1px solid #EAEAEA";
|
|
3697
3698
|
}
|
|
3698
3699
|
render() {
|
|
3699
|
-
return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
|
|
3700
|
+
return (index$1.h(index$1.Host, { style: { display: "contents" } }, index$1.h("tr", { style: { border: this.border } }, index$1.h("slot", null))));
|
|
3700
3701
|
}
|
|
3701
3702
|
};
|
|
3702
3703
|
|
|
@@ -3878,7 +3879,7 @@ function useTaxAndCash() {
|
|
|
3878
3879
|
|
|
3879
3880
|
const TaxAndCashMonolith = class {
|
|
3880
3881
|
constructor(hostRef) {
|
|
3881
|
-
index.registerInstance(this, hostRef);
|
|
3882
|
+
index$1.registerInstance(this, hostRef);
|
|
3882
3883
|
/*---------------------------------------------------------------------------------
|
|
3883
3884
|
!IMPORTANT!: Make sure to also change the prop names in the respective component
|
|
3884
3885
|
-----------------------------------------------------------------------------------*/
|
|
@@ -4757,7 +4758,7 @@ const TaxAndCashMonolith = class {
|
|
|
4757
4758
|
* @uiGroup General Form Properties
|
|
4758
4759
|
*/
|
|
4759
4760
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
4760
|
-
stencilHooks_module.h
|
|
4761
|
+
stencilHooks_module.h(this);
|
|
4761
4762
|
}
|
|
4762
4763
|
disconnectedCallback() { }
|
|
4763
4764
|
// this field is required prop
|
|
@@ -4788,27 +4789,27 @@ const TaxAndCashMonolith = class {
|
|
|
4788
4789
|
// @ts-ignore
|
|
4789
4790
|
if ((_a = this.demoData) === null || _a === void 0 ? void 0 : _a.showTextProps) {
|
|
4790
4791
|
const textProps = utils.getProps(this);
|
|
4791
|
-
return (index.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
4792
|
+
return (index$1.h("div", null, (_b = Object.keys(textProps)) === null || _b === void 0 ? void 0 : _b.map((prop) => {
|
|
4792
4793
|
if (prop === "demoData")
|
|
4793
4794
|
return;
|
|
4794
|
-
return (index.h("div", null, index.h("b", null, prop, ":"), " ", this[prop], index.h("hr", null)));
|
|
4795
|
+
return (index$1.h("div", null, index$1.h("b", null, prop, ":"), " ", this[prop], index$1.h("hr", null)));
|
|
4795
4796
|
})));
|
|
4796
4797
|
}
|
|
4797
4798
|
switch (props.step) {
|
|
4798
4799
|
case "/1":
|
|
4799
|
-
return (index.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
4800
|
+
return (index$1.h("sqm-user-info-form", Object.assign({}, this.getGeneralStepTextProps("step1_"))));
|
|
4800
4801
|
case "/2":
|
|
4801
|
-
return (index.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
4802
|
+
return (index$1.h("sqm-indirect-tax-form", Object.assign({}, this.getGeneralStepTextProps("step2_"))));
|
|
4802
4803
|
case "/3":
|
|
4803
|
-
return (index.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
4804
|
+
return (index$1.h("sqm-docusign-form", Object.assign({}, this.getGeneralStepTextProps("step3_"))));
|
|
4804
4805
|
case "/4":
|
|
4805
|
-
return (index.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
4806
|
+
return (index$1.h("sqm-banking-info-form", Object.assign({}, this.getGeneralStepTextProps("step4_"))));
|
|
4806
4807
|
case "/dashboard":
|
|
4807
|
-
return (index.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
4808
|
+
return (index$1.h("sqm-tax-and-cash-dashboard", Object.assign({}, this.getGeneralStepTextProps("dashboard_"))));
|
|
4808
4809
|
case "/error":
|
|
4809
|
-
return (index.h(sqmInvoiceTableView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
4810
|
+
return (index$1.h(sqmInvoiceTableView.ErrorView, { loadingErrorAlertHeader: this.loadingErrorAlertHeader, loadingErrorAlertDescription: this.loadingErrorAlertDescription }));
|
|
4810
4811
|
}
|
|
4811
|
-
return index.h(sqmInvoiceTableView.LoadingView, null);
|
|
4812
|
+
return index$1.h(sqmInvoiceTableView.LoadingView, null);
|
|
4812
4813
|
}
|
|
4813
4814
|
};
|
|
4814
4815
|
function useDemoTaxAndCash(props) {
|
|
@@ -4983,17 +4984,17 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
4983
4984
|
var _a;
|
|
4984
4985
|
const { states, text, callbacks, slots } = props;
|
|
4985
4986
|
const statusMap = {
|
|
4986
|
-
NOT_VERIFIED: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4987
|
-
index.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
4988
|
-
index.h("p", null, global.intl.formatMessage({
|
|
4987
|
+
NOT_VERIFIED: (index$1.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4988
|
+
index$1.h("sl-badge", { type: "warning", pill: true }, text.statusTextNotVerified),
|
|
4989
|
+
index$1.h("p", null, global.intl.formatMessage({
|
|
4989
4990
|
id: `badgeTextAwaitingReview`,
|
|
4990
4991
|
defaultMessage: text.badgeTextAwaitingReview,
|
|
4991
4992
|
}, {
|
|
4992
4993
|
dateSubmitted: states.dateSubmitted,
|
|
4993
4994
|
})))),
|
|
4994
|
-
ACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4995
|
-
index.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
4996
|
-
index.h("p", null, global.intl.formatMessage({
|
|
4995
|
+
ACTIVE: (index$1.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
4996
|
+
index$1.h("sl-badge", { type: "success", pill: true }, text.statusTextActive),
|
|
4997
|
+
index$1.h("p", null, global.intl.formatMessage({
|
|
4997
4998
|
id: `badgeTextSubmittedOn`,
|
|
4998
4999
|
defaultMessage: states.documentType === "W9"
|
|
4999
5000
|
? text.badgeTextSubmittedOn
|
|
@@ -5001,14 +5002,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5001
5002
|
}, {
|
|
5002
5003
|
dateSubmitted: states.dateSubmitted,
|
|
5003
5004
|
})))),
|
|
5004
|
-
INACTIVE: (index.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5005
|
-
index.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5006
|
-
index.h("p", null, text.invalidForm))),
|
|
5005
|
+
INACTIVE: (index$1.h("div", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5006
|
+
index$1.h("sl-badge", { type: "danger", pill: true }, text.statusTextNotActive),
|
|
5007
|
+
index$1.h("p", null, text.invalidForm))),
|
|
5007
5008
|
};
|
|
5008
5009
|
const alertMap = {
|
|
5009
|
-
INACTIVE: (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5010
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5011
|
-
index.h("strong", null, global.intl.formatMessage({
|
|
5010
|
+
INACTIVE: (index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5011
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5012
|
+
index$1.h("strong", null, global.intl.formatMessage({
|
|
5012
5013
|
id: `taxAlertHeaderNotActive`,
|
|
5013
5014
|
defaultMessage: states.documentType === "W9"
|
|
5014
5015
|
? text.taxAlertHeaderNotActiveW9
|
|
@@ -5016,7 +5017,7 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5016
5017
|
}, {
|
|
5017
5018
|
documentType: states.documentTypeString,
|
|
5018
5019
|
})),
|
|
5019
|
-
index.h("br", null),
|
|
5020
|
+
index$1.h("br", null),
|
|
5020
5021
|
global.intl.formatMessage({
|
|
5021
5022
|
id: `taxAlertMessage`,
|
|
5022
5023
|
defaultMessage: states.documentType === "W9"
|
|
@@ -5054,66 +5055,66 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5054
5055
|
});
|
|
5055
5056
|
}
|
|
5056
5057
|
};
|
|
5057
|
-
return (index.h("div", null,
|
|
5058
|
-
index.h("div", null,
|
|
5059
|
-
index.h("style", { type: "text/css" }, styleString$4),
|
|
5060
|
-
states.loadingError && (index.h("div", null,
|
|
5061
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5062
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5063
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5064
|
-
index.h("br", null),
|
|
5058
|
+
return (index$1.h("div", null,
|
|
5059
|
+
index$1.h("div", null,
|
|
5060
|
+
index$1.h("style", { type: "text/css" }, styleString$4),
|
|
5061
|
+
states.loadingError && (index$1.h("div", null,
|
|
5062
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$4.classes.WarningAlertContainer },
|
|
5063
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5064
|
+
index$1.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
5065
|
+
index$1.h("br", null),
|
|
5065
5066
|
text.error.loadingErrorAlertDescription))),
|
|
5066
|
-
((_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 },
|
|
5067
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5068
|
-
index.h("strong", null, text.error.generalTitle),
|
|
5069
|
-
index.h("br", null),
|
|
5067
|
+
((_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 },
|
|
5068
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
5069
|
+
index$1.h("strong", null, text.error.generalTitle),
|
|
5070
|
+
index$1.h("br", null),
|
|
5070
5071
|
text.error.generalDescription)),
|
|
5071
|
-
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5072
|
-
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
5073
|
-
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5074
|
-
index.h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5072
|
+
index$1.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5073
|
+
index$1.h("p", null, text.replaceTaxFormModalBodyText),
|
|
5074
|
+
index$1.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
5075
|
+
index$1.h("sl-button", { slot: "footer", type: "default", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormCancel }, text.cancelButton)),
|
|
5075
5076
|
states.status === "INACTIVE" && alertMap[states.status],
|
|
5076
|
-
index.h("div", null,
|
|
5077
|
-
index.h("h3", null, text.bankingInformationSectionHeader),
|
|
5078
|
-
index.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5079
|
-
index.h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
5077
|
+
index$1.h("div", null,
|
|
5078
|
+
index$1.h("h3", null, text.bankingInformationSectionHeader),
|
|
5079
|
+
index$1.h("p", { class: sheet$4.classes.PageDescriptionText }, text.taxAndPayoutsDescription),
|
|
5080
|
+
index$1.h("div", { class: sheet$4.classes.BankingInformationContainer },
|
|
5080
5081
|
slots.payoutDetailsCardSlot,
|
|
5081
|
-
!states.loading && (index.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5082
|
-
states.canEditPayoutInfo && (index.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5083
|
-
index.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
5084
|
-
index.h("div", null, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
5085
|
-
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
5086
|
-
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null, states.noFormNeeded ? (index.h("div", null,
|
|
5087
|
-
index.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
5088
|
-
index.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index.h("div", null,
|
|
5089
|
-
index.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5090
|
-
index.h("div", { class: sheet$4.classes.StatusContainer },
|
|
5091
|
-
index.h("h3", null, global.intl.formatMessage({
|
|
5082
|
+
!states.loading && (index$1.h("p", { class: sheet$4.classes.DescriptionText }, text.payoutFromImpact)),
|
|
5083
|
+
states.canEditPayoutInfo && (index$1.h("sl-button", { disabled: states.disabled || states.loading, type: "default", class: sheet$4.classes.EditBankDetailsButton, onClick: callbacks.onEditPayoutInfo }, text.editPaymentInformationButton)))),
|
|
5084
|
+
index$1.h("div", { class: sheet$4.classes.TaxDocumentsContainer },
|
|
5085
|
+
index$1.h("div", null, states.loading ? (index$1.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
5086
|
+
index$1.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
5087
|
+
index$1.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index$1.h("div", null, states.noFormNeeded ? (index$1.h("div", null,
|
|
5088
|
+
index$1.h("h3", { class: sheet$4.classes.TaxDocumentsSectionHeaderContainer }, text.taxDocumentSectionHeader),
|
|
5089
|
+
index$1.h("p", { class: sheet$4.classes.TaxDocSubtext }, text.noFormNeededSubtext))) : (index$1.h("div", null,
|
|
5090
|
+
index$1.h("span", { class: sheet$4.classes.TaxFormDetailsContainer },
|
|
5091
|
+
index$1.h("div", { class: sheet$4.classes.StatusContainer },
|
|
5092
|
+
index$1.h("h3", null, global.intl.formatMessage({
|
|
5092
5093
|
id: "section-subheader",
|
|
5093
5094
|
defaultMessage: text.taxDocumentSectionSubHeader,
|
|
5094
5095
|
}, {
|
|
5095
5096
|
documentType: states.documentTypeString,
|
|
5096
5097
|
})),
|
|
5097
|
-
index.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
|
|
5098
|
-
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))))))),
|
|
5099
|
-
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
5100
|
-
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
5101
|
-
index.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index.h("div", null,
|
|
5102
|
-
index.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
5098
|
+
index$1.h("span", { class: sheet$4.classes.StatusAlert }, statusMap[states.status]))),
|
|
5099
|
+
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))))))),
|
|
5100
|
+
index$1.h("div", { class: sheet$4.classes.IndirectTaxPreviewContainer }, states.loading ? (index$1.h("div", { class: sheet$4.classes.TaxSectionSkeletonContainer },
|
|
5101
|
+
index$1.h("sl-skeleton", { class: sheet$4.classes.SkeletonOne }),
|
|
5102
|
+
index$1.h("sl-skeleton", { class: sheet$4.classes.SkeletonTwo }))) : (index$1.h("div", null,
|
|
5103
|
+
index$1.h("h3", { class: sheet$4.classes.IndirectTaxPreviewHeaderContainer },
|
|
5103
5104
|
text.indirectTaxInfoSectionHeader,
|
|
5104
|
-
index.h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
|
|
5105
|
-
index.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
|
|
5106
|
-
index.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
5107
|
-
index.h("span", null, states.notRegistered ? (index.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, text.notRegisteredForTax)) : (getIndirectTaxRegisteredIn())),
|
|
5108
|
-
!states.notRegistered && (index.h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
5109
|
-
index.h("span", null, global.intl.formatMessage({
|
|
5105
|
+
index$1.h("sl-tooltip", { trigger: "hover", placement: "top", content: text.indirectTaxTooltipSupport, class: sheet$4.classes.TooltipContainer },
|
|
5106
|
+
index$1.h("sl-icon", { name: "info-circle", class: sheet$4.classes.ToolTip }))),
|
|
5107
|
+
index$1.h("div", { class: sheet$4.classes.IndirectTaxPreviewDetails },
|
|
5108
|
+
index$1.h("span", null, states.notRegistered ? (index$1.h("span", { class: sheet$4.classes.NotRegisteredIndirectTaxText }, text.notRegisteredForTax)) : (getIndirectTaxRegisteredIn())),
|
|
5109
|
+
!states.notRegistered && (index$1.h("div", { class: sheet$4.classes.TaxNumberContainer },
|
|
5110
|
+
index$1.h("span", null, global.intl.formatMessage({
|
|
5110
5111
|
id: `indirectTaxDetails`,
|
|
5111
5112
|
defaultMessage: text.indirectTaxDetails,
|
|
5112
5113
|
}, {
|
|
5113
5114
|
indirectTaxType: states.indirectTaxType,
|
|
5114
5115
|
indirectTaxNumber: states.indirectTaxNumber,
|
|
5115
5116
|
})),
|
|
5116
|
-
index.h("span", null,
|
|
5117
|
+
index$1.h("span", null,
|
|
5117
5118
|
states.qstNumber &&
|
|
5118
5119
|
global.intl.formatMessage({
|
|
5119
5120
|
id: `qstNumber`,
|
|
@@ -5128,14 +5129,14 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5128
5129
|
}, {
|
|
5129
5130
|
subRegionTaxNumber: states.subRegionTaxNumber,
|
|
5130
5131
|
})))),
|
|
5131
|
-
!states.notRegistered && (index.h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
5132
|
-
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 },
|
|
5133
|
-
index.h("sqm-invoice-table-download-column", null),
|
|
5134
|
-
index.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
5135
|
-
index.h("sqm-invoice-table-data-column", { "column-title": text.invoiceColumnTitle, property: "invoiceId" }),
|
|
5136
|
-
index.h("sqm-invoice-table-data-column", { "column-title": text.earningsColumnTitle, property: "earnings" }),
|
|
5137
|
-
index.h("sqm-invoice-table-data-column", { "column-title": text.indirectTaxColumnTitle, property: "indirectTax" }),
|
|
5138
|
-
index.h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
|
|
5132
|
+
!states.notRegistered && (index$1.h("div", { class: sheet$4.classes.InvoiceTableContainer },
|
|
5133
|
+
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 },
|
|
5134
|
+
index$1.h("sqm-invoice-table-download-column", null),
|
|
5135
|
+
index$1.h("sqm-invoice-table-date-column", { "column-title": text.dateColumnTitle }),
|
|
5136
|
+
index$1.h("sqm-invoice-table-data-column", { "column-title": text.invoiceColumnTitle, property: "invoiceId" }),
|
|
5137
|
+
index$1.h("sqm-invoice-table-data-column", { "column-title": text.earningsColumnTitle, property: "earnings" }),
|
|
5138
|
+
index$1.h("sqm-invoice-table-data-column", { "column-title": text.indirectTaxColumnTitle, property: "indirectTax" }),
|
|
5139
|
+
index$1.h("sqm-invoice-table-data-column", { "column-title": text.earningsAfterTaxColumnTitle, property: "netEarnings" })))))))))));
|
|
5139
5140
|
};
|
|
5140
5141
|
|
|
5141
5142
|
function getCountryName(countryCode, locale) {
|
|
@@ -5241,7 +5242,7 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5241
5242
|
|
|
5242
5243
|
const TaxAndCashDashboard = class {
|
|
5243
5244
|
constructor(hostRef) {
|
|
5244
|
-
index.registerInstance(this, hostRef);
|
|
5245
|
+
index$1.registerInstance(this, hostRef);
|
|
5245
5246
|
/**
|
|
5246
5247
|
* @uiName Active tax form badge label
|
|
5247
5248
|
*/
|
|
@@ -5501,7 +5502,7 @@ const TaxAndCashDashboard = class {
|
|
|
5501
5502
|
* @uiName Cancel button label
|
|
5502
5503
|
*/
|
|
5503
5504
|
this.cancelButton = "Cancel";
|
|
5504
|
-
stencilHooks_module.h
|
|
5505
|
+
stencilHooks_module.h(this);
|
|
5505
5506
|
}
|
|
5506
5507
|
disconnectedCallback() { }
|
|
5507
5508
|
getTextProps() {
|
|
@@ -5520,8 +5521,8 @@ const TaxAndCashDashboard = class {
|
|
|
5520
5521
|
const props = index_module.isDemo()
|
|
5521
5522
|
? useDemoTaxAndCashDashboard(this)
|
|
5522
5523
|
: useTaxAndCashDashboard(this);
|
|
5523
|
-
return (index.h(index.Host, null, index.h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
5524
|
-
payoutDetailsCardSlot: (index.h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
5524
|
+
return (index$1.h(index$1.Host, null, index$1.h(TaxAndCashDashboardView, { callbacks: props.callbacks, states: props.states, text: props.text, slots: {
|
|
5525
|
+
payoutDetailsCardSlot: (index$1.h("sqm-payout-details-card", Object.assign({}, this.getTextProps()))),
|
|
5525
5526
|
} })));
|
|
5526
5527
|
}
|
|
5527
5528
|
};
|
|
@@ -6635,7 +6636,7 @@ const UserInfoFormView = (props) => {
|
|
|
6635
6636
|
id: "bankingCollectionText",
|
|
6636
6637
|
defaultMessage: text.allowBankingCollection,
|
|
6637
6638
|
}, {
|
|
6638
|
-
termsAndConditionsLink: (index.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
6639
|
+
termsAndConditionsLink: (index$1.h("a", { href: text.termsAndConditionsLink, target: "_blank" }, text.termsAndConditionsLabel)),
|
|
6639
6640
|
});
|
|
6640
6641
|
let regionLabel = undefined;
|
|
6641
6642
|
switch (data.regionLabelEnum) {
|
|
@@ -6651,68 +6652,68 @@ const UserInfoFormView = (props) => {
|
|
|
6651
6652
|
default:
|
|
6652
6653
|
regionLabel = text.state;
|
|
6653
6654
|
}
|
|
6654
|
-
return (index.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
6655
|
-
index.h("style", { type: "text/css" },
|
|
6655
|
+
return (index$1.h("sl-form", { class: classes.FormWrapper, "onSl-submit": callbacks.onSubmit, ref: (el) => (refs.formRef.current = el), novalidate: true },
|
|
6656
|
+
index$1.h("style", { type: "text/css" },
|
|
6656
6657
|
styleString$5,
|
|
6657
6658
|
vanillaStyle$3),
|
|
6658
|
-
states.loadingError && (index.h("div", null,
|
|
6659
|
-
index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
|
|
6660
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6661
|
-
index.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
6662
|
-
index.h("br", null),
|
|
6659
|
+
states.loadingError && (index$1.h("div", null,
|
|
6660
|
+
index$1.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "danger", open: true, class: sheet$5.classes.AlertContainer },
|
|
6661
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6662
|
+
index$1.h("strong", null, text.error.loadingErrorAlertHeader),
|
|
6663
|
+
index$1.h("br", null),
|
|
6663
6664
|
text.error.loadingErrorAlertDescription),
|
|
6664
|
-
index.h("br", null))),
|
|
6665
|
-
states.loading ? (index.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index.h("div", null,
|
|
6666
|
-
index.h("div", { class: classes.TextContainer },
|
|
6667
|
-
index.h("div", null,
|
|
6668
|
-
!states.hideSteps && (index.h("p", null, global.intl.formatMessage({
|
|
6665
|
+
index$1.h("br", null))),
|
|
6666
|
+
states.loading ? (index$1.h(sqmInvoiceTableView.GeneralLoadingView, null)) : (index$1.h("div", null,
|
|
6667
|
+
index$1.h("div", { class: classes.TextContainer },
|
|
6668
|
+
index$1.h("div", null,
|
|
6669
|
+
!states.hideSteps && (index$1.h("p", null, global.intl.formatMessage({
|
|
6669
6670
|
id: "formStep",
|
|
6670
6671
|
defaultMessage: text.formStep,
|
|
6671
6672
|
}, { step: states.step, count: FORM_STEPS }))),
|
|
6672
|
-
index.h("h3", null, text.personalInformation),
|
|
6673
|
-
index.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
6674
|
-
((_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 },
|
|
6675
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6676
|
-
index.h("strong", null, text.error.generalTitle),
|
|
6677
|
-
index.h("br", null),
|
|
6673
|
+
index$1.h("h3", null, text.personalInformation),
|
|
6674
|
+
index$1.h("p", { class: classes.PageDescriptionText }, text.taxAndPayoutsDescription))),
|
|
6675
|
+
((_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 },
|
|
6676
|
+
index$1.h("sl-icon", { slot: "icon", name: "exclamation-octagon" }),
|
|
6677
|
+
index$1.h("strong", null, text.error.generalTitle),
|
|
6678
|
+
index$1.h("br", null),
|
|
6678
6679
|
text.error.generalDescription)),
|
|
6679
|
-
(states.isPartner || states.isUser) && (index.h("sl-alert", { type: "primary", open: true, class: sheet$5.classes.PartnerAlertContainer, exportparts: "base: alert-base, icon:alert-icon" },
|
|
6680
|
-
index.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
6681
|
-
index.h("strong", null, text.isPartnerAlertHeader),
|
|
6682
|
-
index.h("br", null),
|
|
6680
|
+
(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" },
|
|
6681
|
+
index$1.h("sl-icon", { slot: "icon", name: "info-circle" }),
|
|
6682
|
+
index$1.h("strong", null, text.isPartnerAlertHeader),
|
|
6683
|
+
index$1.h("br", null),
|
|
6683
6684
|
text.isPartnerAlertDescription)),
|
|
6684
|
-
index.h("div", null,
|
|
6685
|
-
index.h("div", { class: classes.InputContainer },
|
|
6686
|
-
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) ? {
|
|
6685
|
+
index$1.h("div", null,
|
|
6686
|
+
index$1.h("div", { class: classes.InputContainer },
|
|
6687
|
+
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) ? {
|
|
6687
6688
|
class: classes.ErrorInput,
|
|
6688
6689
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.firstName, formState.errors.firstName),
|
|
6689
6690
|
}
|
|
6690
6691
|
: {}), { id: "firstName", name: "/firstName", required: true })),
|
|
6691
|
-
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) ? {
|
|
6692
|
+
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) ? {
|
|
6692
6693
|
class: classes.ErrorInput,
|
|
6693
6694
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.lastName, formState.errors.lastName),
|
|
6694
6695
|
}
|
|
6695
6696
|
: {}), { id: "lastName", name: "/lastName", required: true })),
|
|
6696
|
-
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 }),
|
|
6697
|
-
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) ? {
|
|
6697
|
+
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 }),
|
|
6698
|
+
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) ? {
|
|
6698
6699
|
class: classes.ErrorInput,
|
|
6699
6700
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.country, formState.errors.countryCode),
|
|
6700
6701
|
}
|
|
6701
6702
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("countryCode", e) }),
|
|
6702
|
-
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6703
|
+
index$1.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6703
6704
|
// Stop shoelace intercepting key presses
|
|
6704
6705
|
e.stopPropagation();
|
|
6705
6706
|
}, "onSl-input": (e) => {
|
|
6706
6707
|
callbacks.setCountrySearch(e.target.value);
|
|
6707
6708
|
} }), (_e = data === null || data === void 0 ? void 0 : data.countries) === null || _e === void 0 ? void 0 :
|
|
6708
|
-
_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 :
|
|
6709
|
-
_f.map((c) => (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
6710
|
-
index.h("div", { style: { display: "flex", gap: "4px" } },
|
|
6711
|
-
index.h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label, base: input-base", name: "/phoneNumberCountryCode", label: text.phoneNumber, style: { minWidth: "140px" }, 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) ? {
|
|
6709
|
+
_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 :
|
|
6710
|
+
_f.map((c) => (index$1.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } }, c.displayName)))),
|
|
6711
|
+
index$1.h("div", { style: { display: "flex", gap: "4px" } },
|
|
6712
|
+
index$1.h("sl-select", Object.assign({ id: "phoneNumberCountryCode", exportparts: "label: input-label, base: input-base", name: "/phoneNumberCountryCode", label: text.phoneNumber, style: { minWidth: "140px" }, 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) ? {
|
|
6712
6713
|
class: classes.ErrorInput,
|
|
6713
6714
|
}
|
|
6714
6715
|
: {}), { required: true, "onSl-select": (e) => callbacks.onFormChange("phoneCountry", e) }),
|
|
6715
|
-
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6716
|
+
index$1.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCountryText, onKeyDown: (e) => {
|
|
6716
6717
|
// Stop shoelace intercepting key presses
|
|
6717
6718
|
e.stopPropagation();
|
|
6718
6719
|
}, "onSl-input": (e) => {
|
|
@@ -6720,17 +6721,17 @@ const UserInfoFormView = (props) => {
|
|
|
6720
6721
|
} }), (_h = data === null || data === void 0 ? void 0 : data.phoneCountries) === null || _h === void 0 ? void 0 :
|
|
6721
6722
|
_h.map((c) => {
|
|
6722
6723
|
var _a, _b;
|
|
6723
|
-
return (index.h("sl-menu-item", { style: { width: "500px" }, value: c.countryCode },
|
|
6724
|
-
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 :
|
|
6724
|
+
return (index$1.h("sl-menu-item", { style: { width: "500px" }, value: c.countryCode },
|
|
6725
|
+
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 :
|
|
6725
6726
|
_b.dial_code));
|
|
6726
6727
|
}), (_j = data === null || data === void 0 ? void 0 : data.allCountries) === null || _j === void 0 ? void 0 :
|
|
6727
6728
|
_j.map((c) => {
|
|
6728
6729
|
var _a, _b;
|
|
6729
|
-
return (index.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
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 :
|
|
6730
|
+
return (index$1.h("sl-menu-item", { value: c.countryCode, style: { display: "none" } },
|
|
6731
|
+
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
6732
|
_b.dial_code));
|
|
6732
6733
|
})),
|
|
6733
|
-
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 }) =>
|
|
6734
|
+
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 }) =>
|
|
6734
6735
|
// Naive phone number validation
|
|
6735
6736
|
sqmInvoiceTableView.validateBillingField(/[a-zA-Z]+/, value) &&
|
|
6736
6737
|
sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, text.error.fieldInvalidError), disabled: states.disabled || states.isPartner }, (((_k = formState.errors) === null || _k === void 0 ? void 0 : _k.phoneNumber) ? {
|
|
@@ -6738,7 +6739,7 @@ const UserInfoFormView = (props) => {
|
|
|
6738
6739
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.phoneNumber, formState.errors.phoneNumber),
|
|
6739
6740
|
}
|
|
6740
6741
|
: {}), { required: true }))),
|
|
6741
|
-
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 }) =>
|
|
6742
|
+
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 }) =>
|
|
6742
6743
|
// Checks for non-ASCII characters
|
|
6743
6744
|
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6744
6745
|
sqmInvoiceTableView.formatErrorMessage(text.address, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_l = formState.errors) === null || _l === void 0 ? void 0 : _l.address) ? {
|
|
@@ -6746,7 +6747,7 @@ const UserInfoFormView = (props) => {
|
|
|
6746
6747
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.address, formState.errors.address),
|
|
6747
6748
|
}
|
|
6748
6749
|
: {}), { required: true })),
|
|
6749
|
-
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 }) =>
|
|
6750
|
+
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 }) =>
|
|
6750
6751
|
// Checks for non-ASCII characters
|
|
6751
6752
|
!sqmInvoiceTableView.validateBillingField(/^[\x20-\xFF]+$/, value) &&
|
|
6752
6753
|
sqmInvoiceTableView.formatErrorMessage(text.city, text.error.invalidCharacterError), disabled: states.disabled || states.isPartner }, (((_m = formState.errors) === null || _m === void 0 ? void 0 : _m.city) ? {
|
|
@@ -6754,41 +6755,41 @@ const UserInfoFormView = (props) => {
|
|
|
6754
6755
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.city, formState.errors.city),
|
|
6755
6756
|
}
|
|
6756
6757
|
: {}), { required: true })),
|
|
6757
|
-
!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) ? {
|
|
6758
|
+
!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) ? {
|
|
6758
6759
|
class: classes.ErrorInput,
|
|
6759
6760
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.state, formState.errors.state),
|
|
6760
6761
|
}
|
|
6761
|
-
: {}), { required: true }), (_p = data.regions) === null || _p === void 0 ? void 0 : _p.map((r) => (index.h("sl-menu-item", { value: r.value }, r.label))))),
|
|
6762
|
-
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) ? {
|
|
6762
|
+
: {}), { 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))))),
|
|
6763
|
+
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) ? {
|
|
6763
6764
|
class: classes.ErrorInput,
|
|
6764
6765
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.postalCode, formState.errors.postalCode),
|
|
6765
6766
|
}
|
|
6766
6767
|
: {}), { required: true })),
|
|
6767
|
-
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) ? {
|
|
6768
|
+
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) ? {
|
|
6768
6769
|
class: classes.ErrorInput,
|
|
6769
6770
|
helpText: sqmInvoiceTableView.formatErrorMessage(text.currency, formState.errors.currency),
|
|
6770
6771
|
}
|
|
6771
6772
|
: {}), { required: true, ref: (el) => (refs.currencyRef.current = el) }),
|
|
6772
|
-
index.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
6773
|
+
index$1.h("sl-input", { class: classes.SearchInput, placeholder: text.searchForCurrencyText, onKeyDown: (e) => {
|
|
6773
6774
|
// Stop shoelace intercepting key presses
|
|
6774
6775
|
e.stopPropagation();
|
|
6775
6776
|
}, "onSl-input": (e) => {
|
|
6776
6777
|
callbacks.setCurrencySearch(e.target.value);
|
|
6777
6778
|
} }), (_s = data === null || data === void 0 ? void 0 : data.currencies) === null || _s === void 0 ? void 0 :
|
|
6778
|
-
_s.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
6779
|
+
_s.map((c) => (index$1.h("sl-menu-item", { value: c.currencyCode },
|
|
6779
6780
|
c.currencyCode,
|
|
6780
6781
|
" - ",
|
|
6781
6782
|
c.displayName))), (_t = data === null || data === void 0 ? void 0 : data.allCurrencies) === null || _t === void 0 ? void 0 :
|
|
6782
|
-
_t.map((c) => (index.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
6783
|
+
_t.map((c) => (index$1.h("sl-menu-item", { value: c.currencyCode, style: { display: "none" } },
|
|
6783
6784
|
c.currencyCode,
|
|
6784
6785
|
" - ",
|
|
6785
6786
|
c.displayName)))),
|
|
6786
|
-
index.h("div", { class: classes.CheckboxWrapper },
|
|
6787
|
-
index.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
6787
|
+
index$1.h("div", { class: classes.CheckboxWrapper },
|
|
6788
|
+
index$1.h("sl-checkbox", { exportparts: "label: input-label, base: input-base", checked: formState.allowBankingCollection === true, "onSl-change": (e) => {
|
|
6788
6789
|
e.target.value = e.target.checked;
|
|
6789
6790
|
}, disabled: states.isPartner ? false : states.disabled, required: true, value: formState.allowBankingCollection, id: "allowBankingCollection", name: "/allowBankingCollection" }, bankingCollectionText),
|
|
6790
|
-
((_u = formState.errors) === null || _u === void 0 ? void 0 : _u.allowBankingCollection) && (index.h("p", { class: classes.ErrorText }, sqmInvoiceTableView.formatErrorMessage(text.termsAndConditionsLabel, formState.errors.allowBankingCollection))))),
|
|
6791
|
-
index.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
6791
|
+
((_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))))),
|
|
6792
|
+
index$1.h("sl-button", { type: "primary", disabled: states.isPartner ? false : states.disabled, submit: true, exportparts: "base: primarybutton-base" }, text.continueButton))))));
|
|
6792
6793
|
};
|
|
6793
6794
|
|
|
6794
6795
|
function useUserInfoForm(props) {
|
|
@@ -6985,7 +6986,7 @@ function useUserInfoForm(props) {
|
|
|
6985
6986
|
|
|
6986
6987
|
const TaxForm = class {
|
|
6987
6988
|
constructor(hostRef) {
|
|
6988
|
-
index.registerInstance(this, hostRef);
|
|
6989
|
+
index$1.registerInstance(this, hostRef);
|
|
6989
6990
|
this.ignored = true;
|
|
6990
6991
|
/**
|
|
6991
6992
|
* @uiName First name field label
|
|
@@ -7133,7 +7134,7 @@ const TaxForm = class {
|
|
|
7133
7134
|
* @uiName Page description
|
|
7134
7135
|
*/
|
|
7135
7136
|
this.taxAndPayoutsDescription = "Submit your tax documents and add your banking information to receive your rewards.";
|
|
7136
|
-
stencilHooks_module.h
|
|
7137
|
+
stencilHooks_module.h(this);
|
|
7137
7138
|
}
|
|
7138
7139
|
disconnectedCallback() { }
|
|
7139
7140
|
getTextProps() {
|
|
@@ -7153,7 +7154,7 @@ const TaxForm = class {
|
|
|
7153
7154
|
}
|
|
7154
7155
|
render() {
|
|
7155
7156
|
const props = index_module.isDemo() ? useDemoUserInfoForm(this) : useUserInfoForm(this);
|
|
7156
|
-
return (index.h(index.Host, null, index.h(UserInfoFormView, { data: props.data,
|
|
7157
|
+
return (index$1.h(index$1.Host, null, index$1.h(UserInfoFormView, { data: props.data,
|
|
7157
7158
|
// @ts-ignore
|
|
7158
7159
|
states: props.states, callbacks: {
|
|
7159
7160
|
...props.callbacks,
|