@saasquatch/mint-components 1.12.0-8 → 1.12.1-0
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-040cffad.js → ShadowViewAddon-c3e91cee.js} +22 -25
- package/dist/cjs/{global-c3637175.js → global-02e50f09.js} +2 -2
- package/dist/cjs/{index.module-b8d9d0ba.js → index.module-df530553.js} +18 -55
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-5bde3d2e.js → re-render-1976e05e.js} +4 -4
- package/dist/cjs/sqm-asset-card.cjs.entry.js +1 -1
- package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +139 -224
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +218 -386
- package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqm-context-router.cjs.entry.js +2 -2
- package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -5
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-invoice-table-view-5d3a2d35.js → sqm-invoice-table-view-e3b03a00.js} +1 -59
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +5 -5
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-navigation-sidebar-item-view-a2135064.js → sqm-navigation-sidebar-item-view-a125ec5f.js} +2 -2
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +3 -3
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-portal-email-verification-view-050dbe0f.js → sqm-portal-email-verification-view-292b5bf4.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-profile-view-d97086bc.js → sqm-portal-profile-view-fde54e35.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +7 -7
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-registration-form-view-621348a6.js +85 -0
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +13 -88
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +6 -6
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +6 -6
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +5 -5
- package/dist/cjs/sqm-referred-registration.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +10 -10
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +366 -377
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +4 -4
- package/dist/cjs/{useChildElements-410d2435.js → useChildElements-e0d44916.js} +2 -2
- package/dist/cjs/{useInstantAccessRegistration-ccf81eae.js → useInstantAccessRegistration-bbe746d1.js} +3 -3
- package/dist/cjs/{useReferralTable-824ac152.js → useReferralTable-a76adb0d.js} +9 -9
- package/dist/cjs/{useRegistrationFormState-f9ce55be.js → useRegistrationFormState-876ed65d.js} +2 -2
- package/dist/cjs/{utilities-f7de6c04.js → utilities-cec9dd36.js} +1 -1
- package/dist/collection/collection-manifest.json +1 -6
- package/dist/collection/components/sqm-big-stat/useBigStat.js +3 -6
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +5 -5
- package/dist/collection/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.js +11 -0
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +160 -0
- package/dist/collection/components/sqm-portal-registration-form/PortalRegistrationForm.stories.js +5 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -1
- package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +3 -2
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -8
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +0 -2
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -56
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +1 -5
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +38 -101
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/docusign-iframe/DocusignIframe.js +2 -15
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/data.js +0 -6
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +8 -8
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +0 -11
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +9 -10
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +1 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +11 -14
- package/dist/esm/{ShadowViewAddon-69b61037.js → ShadowViewAddon-e012b2aa.js} +22 -25
- package/dist/esm/{global-6306a9b8.js → global-04c7d3b5.js} +2 -2
- package/dist/esm/{index.module-6c840c4e.js → index.module-def4aec5.js} +3 -40
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-1bcfd0de.js → re-render-12fd274a.js} +4 -4
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-banking-info-form_16.entry.js +138 -223
- package/dist/esm/sqm-big-stat_39.entry.js +217 -385
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-context-router.entry.js +2 -2
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-graphql-client-provider.entry.js +5 -5
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/{sqm-invoice-table-view-e9075c0b.js → sqm-invoice-table-view-6e13a323.js} +1 -59
- package/dist/esm/sqm-leaderboard-rank.entry.js +5 -5
- package/dist/esm/sqm-logout-current-user.entry.js +3 -3
- package/dist/esm/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-60ef06cc.js} +2 -2
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
- package/dist/esm/sqm-navigation-sidebar.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +4 -4
- package/dist/esm/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-4307c992.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +8 -8
- package/dist/esm/sqm-portal-forgot-password.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +2 -2
- package/dist/esm/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-ffe955c8.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +7 -7
- package/dist/esm/sqm-portal-protected-route.entry.js +5 -5
- package/dist/esm/sqm-portal-registration-form-view-1d3066e1.js +83 -0
- package/dist/esm/sqm-portal-registration-form.entry.js +18 -93
- package/dist/esm/sqm-portal-reset-password.entry.js +6 -6
- package/dist/esm/sqm-portal-verify-email.entry.js +6 -6
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-referred-registration.entry.js +3 -3
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +10 -10
- package/dist/esm/sqm-stencilbook.entry.js +366 -377
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +4 -4
- package/dist/esm/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/esm/{useChildElements-fc84e640.js → useChildElements-32e1bda1.js} +2 -2
- package/dist/esm/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-46b89952.js} +3 -3
- package/dist/esm/{useReferralTable-f6ffa103.js → useReferralTable-f4de0650.js} +9 -9
- package/dist/esm/{useRegistrationFormState-849e27f7.js → useRegistrationFormState-9fc1ac80.js} +2 -2
- package/dist/esm/{utilities-443732be.js → utilities-3f5bba22.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-e012b2aa.js +1 -0
- package/dist/esm-es5/{global-6306a9b8.js → global-04c7d3b5.js} +2 -2
- package/dist/esm-es5/index.module-def4aec5.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-1bcfd0de.js → re-render-12fd274a.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_39.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-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-6e13a323.js +1 -0
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-60ef06cc.js +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-c6ac5430.js → sqm-portal-email-verification-view-4307c992.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-15ddbec8.js → sqm-portal-profile-view-ffe955c8.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-view-1d3066e1.js +1 -0
- 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-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/stencil-hooks.module-ac12ca1c.js +1 -1
- package/dist/esm-es5/{useChildElements-fc84e640.js → useChildElements-32e1bda1.js} +1 -1
- package/dist/esm-es5/useInstantAccessRegistration-46b89952.js +1 -0
- package/dist/esm-es5/{useReferralTable-f6ffa103.js → useReferralTable-f4de0650.js} +1 -1
- package/dist/esm-es5/useRegistrationFormState-9fc1ac80.js +1 -0
- package/dist/esm-es5/{utilities-443732be.js → utilities-3f5bba22.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-f450654b.system.entry.js → p-01cfff8a.system.entry.js} +1 -1
- package/dist/mint-components/{p-94454880.entry.js → p-021a735d.entry.js} +1 -1
- package/dist/mint-components/{p-ac51940e.system.js → p-02424350.system.js} +1 -1
- package/dist/mint-components/p-03494732.entry.js +1 -0
- package/dist/mint-components/{p-59818690.system.entry.js → p-07f675ab.system.entry.js} +1 -1
- package/dist/mint-components/{p-11d1b212.js → p-0b9fa97f.js} +1 -1
- package/dist/mint-components/{p-5becb2ff.system.js → p-0d8c53ac.system.js} +1 -1
- package/dist/mint-components/{p-9eae245f.js → p-10685090.js} +4 -7
- package/dist/mint-components/p-10e89d0a.entry.js +1 -0
- package/dist/mint-components/{p-012daf3c.entry.js → p-137ea86e.entry.js} +1 -1
- package/dist/mint-components/p-1c857edb.entry.js +33 -0
- package/dist/mint-components/{p-e12d3414.system.entry.js → p-1dd69917.system.entry.js} +1 -1
- package/dist/mint-components/p-2a414b2e.system.js +2 -2
- package/dist/mint-components/{p-d468925f.entry.js → p-2dd67762.entry.js} +1 -1
- package/dist/mint-components/{p-1d27da33.js → p-2ee2ebba.js} +2 -2
- package/dist/mint-components/{p-84b25a46.entry.js → p-3223ba7b.entry.js} +1 -1
- package/dist/mint-components/{p-f4cbbe47.entry.js → p-32d1d162.entry.js} +1 -1
- package/dist/mint-components/{p-cb433855.system.entry.js → p-35d84041.system.entry.js} +1 -1
- package/dist/mint-components/{p-4babe350.system.js → p-3d4656bb.system.js} +1 -1
- package/dist/mint-components/{p-f36e33ff.entry.js → p-3ec16698.entry.js} +2 -2
- package/dist/mint-components/p-40b1de58.js +1 -0
- package/dist/mint-components/p-4112e198.system.js +1 -0
- package/dist/mint-components/{p-04348a9b.js → p-41a11a7f.js} +1 -1
- package/dist/mint-components/p-44787d6e.system.js +1 -0
- package/dist/mint-components/{p-be1ae1ed.system.entry.js → p-4502ed11.system.entry.js} +1 -1
- package/dist/mint-components/p-458b2894.entry.js +9 -0
- package/dist/mint-components/{p-e0e7635a.js → p-4d233cd4.js} +1 -1
- package/dist/mint-components/{p-cd44de66.system.js → p-4df8f1d2.system.js} +1 -1
- package/dist/mint-components/{p-7dd1ff31.system.entry.js → p-4ea58025.system.entry.js} +1 -1
- package/dist/mint-components/{p-a45b03d2.entry.js → p-4edde470.entry.js} +1 -1
- package/dist/mint-components/p-51f517a2.js +1 -0
- package/dist/mint-components/{p-bee1e573.entry.js → p-56f14840.entry.js} +1 -1
- package/dist/mint-components/{p-0527d90b.system.entry.js → p-58ef25d3.system.entry.js} +1 -1
- package/dist/mint-components/{p-fc422446.system.js → p-59fe4ad1.system.js} +1 -1
- package/dist/mint-components/p-5b333fa8.system.entry.js +1 -0
- package/dist/mint-components/p-5be235f9.entry.js +1 -0
- package/dist/mint-components/{p-bc826117.system.entry.js → p-5cac90e8.system.entry.js} +1 -1
- package/dist/mint-components/{p-22425c71.system.entry.js → p-5f1c4160.system.entry.js} +1 -1
- package/dist/mint-components/{p-0121e044.js → p-61eab172.js} +1 -1
- package/dist/mint-components/{p-4eae91a9.system.js → p-674a64fe.system.js} +1 -1
- package/dist/mint-components/{p-76392386.entry.js → p-6cef104b.entry.js} +1 -1
- package/dist/mint-components/{p-0893073b.entry.js → p-7049e9b0.entry.js} +1 -1
- package/dist/mint-components/p-711ba77e.system.entry.js +1 -0
- package/dist/mint-components/p-770368bc.system.js +1 -0
- package/dist/mint-components/{p-c3babfa4.system.entry.js → p-7731f793.system.entry.js} +1 -1
- package/dist/mint-components/p-79191f88.entry.js +1 -0
- package/dist/mint-components/p-7f088154.entry.js +1 -0
- package/dist/mint-components/{p-3e7ec0f3.system.entry.js → p-8679ed9f.system.entry.js} +1 -1
- package/dist/mint-components/{p-6c928c7d.entry.js → p-86990110.entry.js} +1 -1
- package/dist/mint-components/{p-d83b0cf3.js → p-8704937c.js} +1 -1
- package/dist/mint-components/p-8b5b78ca.entry.js +1 -0
- package/dist/mint-components/p-8e907ac7.system.entry.js +1 -0
- package/dist/mint-components/p-91669312.entry.js +1 -0
- package/dist/mint-components/p-95771f79.system.js +1 -0
- package/dist/mint-components/p-96242551.system.entry.js +1 -0
- package/dist/mint-components/{p-f56348dc.system.entry.js → p-9c310991.system.entry.js} +1 -1
- package/dist/mint-components/{p-9ec008cb.system.entry.js → p-9f0629ba.system.entry.js} +1 -1
- package/dist/mint-components/{p-f531a5c9.system.entry.js → p-a1dba9a1.system.entry.js} +1 -1
- package/dist/mint-components/p-a6a7dcaa.js +1 -0
- package/dist/mint-components/{p-9cdbd1ac.system.entry.js → p-a7c2ced2.system.entry.js} +1 -1
- package/dist/mint-components/p-a8f7cb95.js +1 -0
- package/dist/mint-components/{p-03dbe2ce.entry.js → p-a9050eb0.entry.js} +1 -1
- package/dist/mint-components/{p-fd21ae8f.entry.js → p-aad11a68.entry.js} +1 -1
- package/dist/mint-components/p-aee2304a.entry.js +223 -0
- package/dist/mint-components/{p-04ced592.system.entry.js → p-af062c8f.system.entry.js} +1 -1
- package/dist/mint-components/{p-1f7d7524.system.entry.js → p-afd366ae.system.entry.js} +1 -1
- package/dist/mint-components/p-b370fca8.system.js +1 -0
- package/dist/mint-components/{p-5291891c.entry.js → p-b4c52c5a.entry.js} +2 -2
- package/dist/mint-components/{p-36e9296e.system.entry.js → p-b5861974.system.entry.js} +1 -1
- package/dist/mint-components/{p-83c9f37b.system.entry.js → p-b6fc1227.system.entry.js} +1 -1
- package/dist/mint-components/p-bb00db59.js +1 -0
- package/dist/mint-components/{p-5fba1a04.system.entry.js → p-be4b748a.system.entry.js} +1 -1
- package/dist/mint-components/{p-8d554a89.system.js → p-c84659a3.system.js} +1 -1
- package/dist/mint-components/{p-9e0230c3.entry.js → p-ce5afa40.entry.js} +1 -1
- package/dist/mint-components/{p-2816bf6a.js → p-ce621bcc.js} +1 -1
- package/dist/mint-components/{p-88bf51b7.system.entry.js → p-cf690d55.system.entry.js} +1 -1
- package/dist/mint-components/p-d5de2646.system.entry.js +1 -0
- package/dist/mint-components/{p-4671e644.entry.js → p-d8d2de11.entry.js} +1 -1
- package/dist/mint-components/p-d8e68e16.entry.js +13 -0
- package/dist/mint-components/{p-4e373c3d.system.js → p-dd7ee007.system.js} +1 -1
- package/dist/mint-components/{p-d35d8c06.entry.js → p-e3735866.entry.js} +2 -2
- package/dist/mint-components/p-e6d74386.system.entry.js +1 -0
- package/dist/mint-components/{p-68747d88.js → p-eaada4da.js} +1 -1
- package/dist/mint-components/{p-51d53165.system.entry.js → p-eba44835.system.entry.js} +1 -1
- package/dist/mint-components/p-ec41d6a4.entry.js +174 -0
- package/dist/mint-components/{p-43621f12.system.js → p-ed095674.system.js} +1 -1
- package/dist/mint-components/p-ed17e637.system.js +1 -0
- package/dist/mint-components/{p-c1f4fb6d.system.entry.js → p-fb20eb5e.system.entry.js} +1 -1
- package/dist/mint-components/p-fd2c5407.js +2 -2
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field-view.d.ts +1 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +4 -4
- package/dist/types/components/sqm-marketing-emails-checkbox/MarketingEmailsCheckbox.stories.d.ts +8 -0
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +34 -0
- package/dist/types/components/sqm-portal-registration-form/PortalRegistrationForm.stories.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -0
- package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form.d.ts +1 -1
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/data.d.ts +0 -5
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -5
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +2 -2
- package/dist/types/components.d.ts +108 -591
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/extractProps-fd93ba62.js +0 -21
- package/dist/cjs/keys-cff24974.js +0 -11
- package/dist/cjs/sqm-code-verification.cjs.entry.js +0 -345
- package/dist/cjs/sqm-email-verification.cjs.entry.js +0 -283
- package/dist/cjs/sqm-scroll.cjs.entry.js +0 -109
- package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +0 -103
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -210
- package/dist/cjs/useVerificationEmail-6aacdb71.js +0 -169
- package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +0 -8
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +0 -23
- package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +0 -118
- package/dist/collection/components/sqm-payout-button-scroll/usePayoutButton.js +0 -44
- package/dist/collection/components/sqm-widget-verification/keys.js +0 -4
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +0 -36
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +0 -128
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +0 -301
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +0 -156
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +0 -42
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -91
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +0 -226
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +0 -126
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-internal.js +0 -339
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +0 -557
- package/dist/collection/components/sqm-widget-verification/useVerificationEmail.js +0 -165
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.js +0 -22
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +0 -116
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +0 -354
- package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.js +0 -65
- package/dist/esm/extractProps-ae1afbb3.js +0 -19
- package/dist/esm/keys-db1897ae.js +0 -6
- package/dist/esm/sqm-code-verification.entry.js +0 -341
- package/dist/esm/sqm-email-verification.entry.js +0 -279
- package/dist/esm/sqm-scroll.entry.js +0 -105
- package/dist/esm/sqm-widget-verification-internal.entry.js +0 -99
- package/dist/esm/sqm-widget-verification.entry.js +0 -206
- package/dist/esm/useVerificationEmail-c32696ba.js +0 -167
- package/dist/esm-es5/ShadowViewAddon-69b61037.js +0 -1
- package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
- package/dist/esm-es5/index.module-6c840c4e.js +0 -1
- package/dist/esm-es5/keys-db1897ae.js +0 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-e9075c0b.js +0 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-f8e78810.js +0 -1
- package/dist/esm-es5/sqm-scroll.entry.js +0 -1
- package/dist/esm-es5/sqm-widget-verification-internal.entry.js +0 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-8b0a4556.js +0 -1
- package/dist/esm-es5/useRegistrationFormState-849e27f7.js +0 -1
- package/dist/esm-es5/useVerificationEmail-c32696ba.js +0 -1
- package/dist/mint-components/p-0c9ad5f3.system.entry.js +0 -1
- package/dist/mint-components/p-1649ee1e.entry.js +0 -240
- package/dist/mint-components/p-1712a9fd.entry.js +0 -11
- package/dist/mint-components/p-1b861be5.entry.js +0 -1
- package/dist/mint-components/p-1e616d45.system.js +0 -1
- package/dist/mint-components/p-26468242.js +0 -1
- package/dist/mint-components/p-2868f475.entry.js +0 -1
- package/dist/mint-components/p-3925bcd6.entry.js +0 -13
- package/dist/mint-components/p-39840341.js +0 -1
- package/dist/mint-components/p-39e412e8.system.entry.js +0 -1
- package/dist/mint-components/p-4364001c.entry.js +0 -12
- package/dist/mint-components/p-54ffae13.entry.js +0 -194
- package/dist/mint-components/p-5a23b560.system.entry.js +0 -1
- package/dist/mint-components/p-63ac51e1.system.entry.js +0 -1
- package/dist/mint-components/p-64491210.system.entry.js +0 -1
- package/dist/mint-components/p-8690f682.system.js +0 -1
- package/dist/mint-components/p-93576222.system.js +0 -1
- package/dist/mint-components/p-947fe79b.entry.js +0 -1
- package/dist/mint-components/p-9596e97c.system.entry.js +0 -1
- package/dist/mint-components/p-974070c4.system.entry.js +0 -1
- package/dist/mint-components/p-99c15c5e.entry.js +0 -1
- package/dist/mint-components/p-9d34f4f0.entry.js +0 -33
- package/dist/mint-components/p-a4282d02.system.entry.js +0 -1
- package/dist/mint-components/p-a85f57bb.entry.js +0 -1
- package/dist/mint-components/p-a8645c1b.system.js +0 -1
- package/dist/mint-components/p-b1e8a802.entry.js +0 -1
- package/dist/mint-components/p-b2a99637.system.js +0 -1
- package/dist/mint-components/p-bdd6bb13.js +0 -1
- package/dist/mint-components/p-c3b37bbf.js +0 -1
- package/dist/mint-components/p-c510fb88.entry.js +0 -1
- package/dist/mint-components/p-c92a743e.entry.js +0 -1
- package/dist/mint-components/p-c9fb6102.entry.js +0 -1
- package/dist/mint-components/p-ca809fdd.system.js +0 -1
- package/dist/mint-components/p-d238372a.system.entry.js +0 -1
- package/dist/mint-components/p-d7806f31.js +0 -48
- package/dist/mint-components/p-def516b8.system.js +0 -1
- package/dist/mint-components/p-e01ac27c.system.js +0 -1
- package/dist/mint-components/p-e45a8501.system.entry.js +0 -1
- package/dist/mint-components/p-ead27698.system.entry.js +0 -1
- package/dist/mint-components/p-f340214f.entry.js +0 -25
- package/dist/mint-components/p-f55060db.js +0 -1
- package/dist/mint-components/p-f655a7df.js +0 -1
- package/dist/mint-components/p-fffc3590.entry.js +0 -9
- package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -5
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.d.ts +0 -10
- package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +0 -26
- package/dist/types/components/sqm-payout-button-scroll/usePayoutButton.d.ts +0 -7
- package/dist/types/components/sqm-widget-verification/keys.d.ts +0 -4
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.d.ts +0 -9
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +0 -26
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +0 -54
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +0 -25
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +0 -10
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +0 -21
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +0 -40
- package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +0 -10
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-internal.d.ts +0 -20
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -87
- package/dist/types/components/sqm-widget-verification/useVerificationEmail.d.ts +0 -14
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/PayoutStatusAlert.stories.d.ts +0 -10
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.d.ts +0 -30
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +0 -62
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +0 -19
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host, g as getElement } from './index-17b4da69.js';
|
|
2
2
|
import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist,
|
|
3
|
+
import { i as intl } from './global-04c7d3b5.js';
|
|
4
|
+
import { d as dist, L, Q, t as bn, I as In, M as Mn, f as $e, i as isDemo, w as wn, u as useCallback, k as kn, v as Pn, _, C as Cn, F as Fn } from './index.module-def4aec5.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-f60a614c.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
9
|
import { G as GenericTableView } from './GenericTableView-d59d8ab4.js';
|
|
10
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
11
|
-
import { u as useChildElements } from './useChildElements-
|
|
10
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-12fd274a.js';
|
|
11
|
+
import { u as useChildElements } from './useChildElements-32e1bda1.js';
|
|
12
12
|
import { l as luxon } from './luxon-7600be8d.js';
|
|
13
|
-
import { g as generateUserError } from './useReferralTable-
|
|
13
|
+
import { g as generateUserError } from './useReferralTable-f4de0650.js';
|
|
14
14
|
import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
|
|
15
|
-
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-
|
|
16
|
-
import { b as VERIFICATION_EVENT_KEY } from './keys-db1897ae.js';
|
|
17
|
-
import { e as extractProps } from './extractProps-ae1afbb3.js';
|
|
15
|
+
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-6e13a323.js';
|
|
18
16
|
|
|
19
17
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
20
18
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -30,17 +28,11 @@ const GET_USER = dist.gql `
|
|
|
30
28
|
query getUserTaxInfo {
|
|
31
29
|
user: viewer {
|
|
32
30
|
... on User {
|
|
33
|
-
id
|
|
34
31
|
firstName
|
|
35
32
|
lastName
|
|
36
33
|
email
|
|
37
34
|
countryCode
|
|
38
35
|
customFields
|
|
39
|
-
managedIdentity {
|
|
40
|
-
uid
|
|
41
|
-
email
|
|
42
|
-
emailVerified
|
|
43
|
-
}
|
|
44
36
|
impactConnection {
|
|
45
37
|
connected
|
|
46
38
|
user {
|
|
@@ -947,21 +939,6 @@ const SAVE_WITHDRAWAL_SETTINGS = dist.gql `
|
|
|
947
939
|
}
|
|
948
940
|
}
|
|
949
941
|
`;
|
|
950
|
-
const UPDATE_WITHDRAWAL_SETTINGS = dist.gql `
|
|
951
|
-
mutation updateImpactPublisherWithdrawalSettings(
|
|
952
|
-
$updateImpactPublisherWithdrawalSettingsInput: UpdateImpactPublisherWithdrawalSettingsInput!
|
|
953
|
-
) {
|
|
954
|
-
updateImpactPublisherWithdrawalSettings(
|
|
955
|
-
updateImpactPublisherWithdrawalSettingsInput: $updateImpactPublisherWithdrawalSettingsInput
|
|
956
|
-
) {
|
|
957
|
-
success
|
|
958
|
-
validationErrors {
|
|
959
|
-
field
|
|
960
|
-
message
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
`;
|
|
965
942
|
function getPaymentMethod(paymentOption) {
|
|
966
943
|
if (paymentOption.defaultFinancePaymentMethodId === 3 ||
|
|
967
944
|
paymentOption.defaultFinancePaymentMethodId === 5)
|
|
@@ -979,19 +956,15 @@ function parseImpactThreshold(threshold) {
|
|
|
979
956
|
}
|
|
980
957
|
function useBankingInfoForm(props) {
|
|
981
958
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
982
|
-
const
|
|
983
|
-
const
|
|
984
|
-
const
|
|
985
|
-
const
|
|
986
|
-
const
|
|
987
|
-
const countries = Dn(SORTED_COUNTRIES_NAMESPACE);
|
|
959
|
+
const locale = L();
|
|
960
|
+
const user = Q();
|
|
961
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
962
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
963
|
+
const countries = In(SORTED_COUNTRIES_NAMESPACE);
|
|
988
964
|
const formRef = useRef(null);
|
|
989
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } =
|
|
990
|
-
const { data: userData, refetch, errors: userError, } =
|
|
991
|
-
const [saveWithdrawalSettings] =
|
|
992
|
-
const [updateWithdrawalSettings] = xe(UPDATE_WITHDRAWAL_SETTINGS);
|
|
993
|
-
const [showVerification, setShowVerification] = useState(false);
|
|
994
|
-
const [currentFormData, setCurrentFormData] = useState(null);
|
|
965
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = Mn(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
966
|
+
const { data: userData, refetch, errors: userError, } = Mn(USER_QUERY_NAMESPACE);
|
|
967
|
+
const [saveWithdrawalSettings] = $e(SAVE_WITHDRAWAL_SETTINGS);
|
|
995
968
|
const [formState, setFormState] = useState({});
|
|
996
969
|
const [currentPaymentOption, setCurrentPaymentOption] = useState(null);
|
|
997
970
|
const [loading, setLoading] = useState(false);
|
|
@@ -1001,9 +974,8 @@ function useBankingInfoForm(props) {
|
|
|
1001
974
|
const [countrySearch, setCountrySearch] = useState("");
|
|
1002
975
|
const [filteredCountries, setFilteredCountries] = useState(countries || []);
|
|
1003
976
|
const currency = ((_c = (_b = (_a = userData === null || userData === void 0 ? void 0 : userData.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.currency) || "";
|
|
1004
|
-
const isPartner = !!((_f = (_e = (_d = userData === null || userData === void 0 ? void 0 : userData.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher) === null || _f === void 0 ? void 0 : _f.withdrawalSettings);
|
|
1005
977
|
const feeCap = paypalFeeMap[currency] || "";
|
|
1006
|
-
const paymentOptions = (
|
|
978
|
+
const paymentOptions = (_d = paymentOptionsData === null || paymentOptionsData === void 0 ? void 0 : paymentOptionsData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
1007
979
|
const paymentMethodFeeMap = {
|
|
1008
980
|
[ACH_PAYMENT_METHOD]: props.eftWithdrawalLabel,
|
|
1009
981
|
[WIRE_PAYMENT_METHOD]: intl.formatMessage({
|
|
@@ -1082,50 +1054,49 @@ function useBankingInfoForm(props) {
|
|
|
1082
1054
|
setFormState((p) => ({ ...p, bankCountry }));
|
|
1083
1055
|
setCurrentPaymentOption(currentPaymentOption);
|
|
1084
1056
|
};
|
|
1085
|
-
const
|
|
1086
|
-
var _a, _b, _c, _d
|
|
1057
|
+
const onSubmit = async (event) => {
|
|
1058
|
+
var _a, _b, _c, _d;
|
|
1059
|
+
let formData = {};
|
|
1060
|
+
let validationErrors = {};
|
|
1061
|
+
const controls = event.target.getFormControls();
|
|
1062
|
+
controls.forEach((control) => {
|
|
1063
|
+
if (!control.name || !control.id)
|
|
1064
|
+
return;
|
|
1065
|
+
const key = control.name;
|
|
1066
|
+
const value = control.value;
|
|
1067
|
+
jsonpointer.set(formData, key, value);
|
|
1068
|
+
if (control.required && !value) {
|
|
1069
|
+
jsonpointer.set(validationErrors, key, { type: "required" });
|
|
1070
|
+
}
|
|
1071
|
+
});
|
|
1072
|
+
setErrors({ inputErrors: validationErrors });
|
|
1073
|
+
if (Object.keys(validationErrors).length) {
|
|
1074
|
+
return;
|
|
1075
|
+
}
|
|
1087
1076
|
setLoading(true);
|
|
1088
1077
|
try {
|
|
1089
1078
|
if (!currentPaymentOption)
|
|
1090
1079
|
throw new Error("No currentPaymentOption");
|
|
1091
|
-
const
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1080
|
+
const input = {
|
|
1081
|
+
setImpactPublisherWithdrawalSettingsInput: {
|
|
1082
|
+
user: {
|
|
1083
|
+
id: user.id,
|
|
1084
|
+
accountId: user.accountId,
|
|
1085
|
+
},
|
|
1086
|
+
...formData,
|
|
1087
|
+
paymentMethod: getPaymentMethod(currentPaymentOption),
|
|
1088
|
+
paymentSchedulingType: paymentScheduleChecked,
|
|
1095
1089
|
},
|
|
1096
|
-
...formData,
|
|
1097
|
-
paymentMethod: getPaymentMethod(currentPaymentOption),
|
|
1098
|
-
paymentSchedulingType: paymentScheduleChecked,
|
|
1099
1090
|
};
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
let validationErrors = null;
|
|
1103
|
-
// Call difference mutations based on whether the user is updating
|
|
1104
|
-
// the info for setting it for the first time
|
|
1105
|
-
if (isPartner) {
|
|
1106
|
-
response = await updateWithdrawalSettings({
|
|
1107
|
-
updateImpactPublisherWithdrawalSettingsInput: {
|
|
1108
|
-
...body,
|
|
1109
|
-
accessKey: token,
|
|
1110
|
-
},
|
|
1111
|
-
});
|
|
1112
|
-
success = (_b = (_a = response) === null || _a === void 0 ? void 0 : _a.updateImpactPublisherWithdrawalSettings) === null || _b === void 0 ? void 0 : _b.success;
|
|
1113
|
-
validationErrors = (_d = (_c = response) === null || _c === void 0 ? void 0 : _c.updateImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
|
|
1114
|
-
}
|
|
1115
|
-
else {
|
|
1116
|
-
response = await saveWithdrawalSettings({
|
|
1117
|
-
setImpactPublisherWithdrawalSettingsInput: {
|
|
1118
|
-
...body,
|
|
1119
|
-
},
|
|
1120
|
-
});
|
|
1121
|
-
success = (_f = (_e = response) === null || _e === void 0 ? void 0 : _e.setImpactPublisherWithdrawalSettings) === null || _f === void 0 ? void 0 : _f.success;
|
|
1122
|
-
validationErrors = (_h = (_g = response) === null || _g === void 0 ? void 0 : _g.setImpactPublisherWithdrawalSettings) === null || _h === void 0 ? void 0 : _h.validationErrors;
|
|
1123
|
-
}
|
|
1124
|
-
if (!response || ((_j = response) === null || _j === void 0 ? void 0 : _j.message)) {
|
|
1091
|
+
const response = await saveWithdrawalSettings(input);
|
|
1092
|
+
if (!response || ((_a = response) === null || _a === void 0 ? void 0 : _a.message)) {
|
|
1125
1093
|
throw new Error();
|
|
1126
1094
|
}
|
|
1127
|
-
else if (!
|
|
1128
|
-
|
|
1095
|
+
else if (!((_b = response
|
|
1096
|
+
.setImpactPublisherWithdrawalSettings) === null || _b === void 0 ? void 0 : _b.success)) {
|
|
1097
|
+
console.error("Validation failed: ", (_c = response
|
|
1098
|
+
.setImpactPublisherWithdrawalSettings) === null || _c === void 0 ? void 0 : _c.validationErrors);
|
|
1099
|
+
const validationErrors = (_d = response.setImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
|
|
1129
1100
|
const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
|
|
1130
1101
|
return {
|
|
1131
1102
|
...agg,
|
|
@@ -1151,45 +1122,6 @@ function useBankingInfoForm(props) {
|
|
|
1151
1122
|
setLoading(false);
|
|
1152
1123
|
}
|
|
1153
1124
|
};
|
|
1154
|
-
const onSubmit = async (event) => {
|
|
1155
|
-
let formData = {};
|
|
1156
|
-
let validationErrors = {};
|
|
1157
|
-
const controls = event.target.getFormControls();
|
|
1158
|
-
controls.forEach((control) => {
|
|
1159
|
-
if (!control.name || !control.id)
|
|
1160
|
-
return;
|
|
1161
|
-
const key = control.name;
|
|
1162
|
-
const value = control.value;
|
|
1163
|
-
jsonpointer.set(formData, key, value);
|
|
1164
|
-
if (control.required && !value) {
|
|
1165
|
-
jsonpointer.set(validationErrors, key, { type: "required" });
|
|
1166
|
-
}
|
|
1167
|
-
});
|
|
1168
|
-
setErrors({ inputErrors: validationErrors });
|
|
1169
|
-
if (Object.keys(validationErrors).length) {
|
|
1170
|
-
return;
|
|
1171
|
-
}
|
|
1172
|
-
let token = undefined;
|
|
1173
|
-
if (isPartner) {
|
|
1174
|
-
setShowVerification(true);
|
|
1175
|
-
token = await new Promise((res) => {
|
|
1176
|
-
const cb = (e) => {
|
|
1177
|
-
e.stopPropagation();
|
|
1178
|
-
host.removeEventListener(VERIFICATION_EVENT_KEY, cb);
|
|
1179
|
-
res(e.detail.token);
|
|
1180
|
-
};
|
|
1181
|
-
host.addEventListener(VERIFICATION_EVENT_KEY, cb);
|
|
1182
|
-
});
|
|
1183
|
-
setShowVerification(false);
|
|
1184
|
-
}
|
|
1185
|
-
await runMutation(formData, token);
|
|
1186
|
-
};
|
|
1187
|
-
const onVerification = async (token) => {
|
|
1188
|
-
host.dispatchEvent(new CustomEvent(VERIFICATION_EVENT_KEY, {
|
|
1189
|
-
detail: { token },
|
|
1190
|
-
bubbles: false,
|
|
1191
|
-
}));
|
|
1192
|
-
};
|
|
1193
1125
|
function setPaymentMethodChecked(paymentMethod) {
|
|
1194
1126
|
_setPaymentMethodChecked(paymentMethod);
|
|
1195
1127
|
if (paymentMethod === "toPayPalAccount") {
|
|
@@ -1214,15 +1146,13 @@ function useBankingInfoForm(props) {
|
|
|
1214
1146
|
setPaymentScheduleChecked,
|
|
1215
1147
|
onBack: () => setStep("/dashboard"),
|
|
1216
1148
|
setCountrySearch,
|
|
1217
|
-
onVerification,
|
|
1218
1149
|
},
|
|
1219
1150
|
states: {
|
|
1220
|
-
showVerification,
|
|
1221
1151
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
1222
1152
|
hideSteps: !!context.hideSteps,
|
|
1223
1153
|
saveDisabled: !paymentMethodChecked || !paymentScheduleChecked,
|
|
1224
1154
|
locale,
|
|
1225
|
-
isPartner,
|
|
1155
|
+
isPartner: !!((_g = (_f = (_e = userData === null || userData === void 0 ? void 0 : userData.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher) === null || _g === void 0 ? void 0 : _g.withdrawalSettings),
|
|
1226
1156
|
feeCap,
|
|
1227
1157
|
paymentMethodFeeLabel,
|
|
1228
1158
|
disabled: loading,
|
|
@@ -1553,9 +1483,6 @@ const BankingInfoForm = class {
|
|
|
1553
1483
|
padding: "var(--sl-spacing-x-small)",
|
|
1554
1484
|
},
|
|
1555
1485
|
};
|
|
1556
|
-
if (props.states.isPartner && props.states.showVerification) {
|
|
1557
|
-
return (h("sqm-code-verification", { onVerification: props.callbacks.onVerification }));
|
|
1558
|
-
}
|
|
1559
1486
|
return (h(Host, null, h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1560
1487
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1561
1488
|
countryInputSlot: (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) && {
|
|
@@ -1605,7 +1532,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1605
1532
|
const defaultPaymentScheduleChecked = (_f = (_e = (_d = props.demoData) === null || _d === void 0 ? void 0 : _d.states) === null || _e === void 0 ? void 0 : _e.formState) === null || _f === void 0 ? void 0 : _f.paymentScheduleChecked;
|
|
1606
1533
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1607
1534
|
const defaultCountry = (_l = (_k = (_j = props.demoData) === null || _j === void 0 ? void 0 : _j.states) === null || _k === void 0 ? void 0 : _k.formState) === null || _l === void 0 ? void 0 : _l.bankCountry;
|
|
1608
|
-
const setStep =
|
|
1535
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
1609
1536
|
const [paymentMethodChecked, setPaymentMethodChecked] = useState(undefined);
|
|
1610
1537
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = useState(undefined);
|
|
1611
1538
|
const [currency, setCurrency] = useState(defaultCurrency);
|
|
@@ -1688,7 +1615,6 @@ function useDemoBankingInfoForm(props) {
|
|
|
1688
1615
|
setPaymentScheduleChecked,
|
|
1689
1616
|
setCountrySearch: () => { },
|
|
1690
1617
|
onBack: async () => setStep("/dashboard"),
|
|
1691
|
-
onVerification: () => { },
|
|
1692
1618
|
},
|
|
1693
1619
|
text: props.getTextProps(),
|
|
1694
1620
|
refs: {
|
|
@@ -1724,13 +1650,13 @@ const DOCUSIGN_ERROR_STATES = [
|
|
|
1724
1650
|
const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
1725
1651
|
function useDocusignForm(props) {
|
|
1726
1652
|
var _a, _b, _c;
|
|
1727
|
-
const user =
|
|
1728
|
-
const context =
|
|
1729
|
-
const [step, setStep] =
|
|
1730
|
-
const { data, loading: userLoading, refetch, } =
|
|
1653
|
+
const user = Q();
|
|
1654
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1655
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
1656
|
+
const { data, loading: userLoading, refetch, } = Mn(USER_QUERY_NAMESPACE);
|
|
1731
1657
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
1732
|
-
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] =
|
|
1733
|
-
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] =
|
|
1658
|
+
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = $e(GET_TAX_DOCUMENT);
|
|
1659
|
+
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = $e(COMPLETE_TAX_DOCUMENT);
|
|
1734
1660
|
const [docusignStatus, setDocusignStatus] = useState(undefined);
|
|
1735
1661
|
const [participantType, setParticipantType] = useState(undefined);
|
|
1736
1662
|
const [errors, setErrors] = useState({});
|
|
@@ -1870,14 +1796,6 @@ const style$1 = {
|
|
|
1870
1796
|
MessageContainer: {
|
|
1871
1797
|
maxWidth: "400px",
|
|
1872
1798
|
},
|
|
1873
|
-
IFrameContainer: {
|
|
1874
|
-
"@media screen and (max-width: 440px)": {
|
|
1875
|
-
position: "absolute",
|
|
1876
|
-
width: "100vw",
|
|
1877
|
-
left: "-30px",
|
|
1878
|
-
zIndex: "9999",
|
|
1879
|
-
},
|
|
1880
|
-
},
|
|
1881
1799
|
};
|
|
1882
1800
|
const sheet$1 = createStyleSheet(style$1);
|
|
1883
1801
|
const styleString$1 = sheet$1.toString();
|
|
@@ -1919,7 +1837,6 @@ const DocusignLoadingView = () => {
|
|
|
1919
1837
|
h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1920
1838
|
};
|
|
1921
1839
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1922
|
-
const { classes } = sheet$1;
|
|
1923
1840
|
const [iFrameHeight, setiFrameHeight] = useState("100%");
|
|
1924
1841
|
const allowedDomains = [
|
|
1925
1842
|
"referralsaasquatch.com",
|
|
@@ -1942,7 +1859,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1942
1859
|
return () => {
|
|
1943
1860
|
window.removeEventListener("message", callback, false);
|
|
1944
1861
|
};
|
|
1945
|
-
}, [
|
|
1862
|
+
}, []);
|
|
1946
1863
|
if (states.urlLoading)
|
|
1947
1864
|
return h(DocusignLoadingView, null);
|
|
1948
1865
|
if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
|
|
@@ -1950,11 +1867,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1950
1867
|
}
|
|
1951
1868
|
if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
|
|
1952
1869
|
return h(DocusignExpiredView, { text: text });
|
|
1953
|
-
|
|
1954
|
-
return (h("div", { style: { height: iFrameHeight } },
|
|
1955
|
-
h("style", { type: "text/css" }, styleString$1),
|
|
1956
|
-
h("div", { class: classes.IFrameContainer },
|
|
1957
|
-
h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1870
|
+
return (h("iframe", { scrolling: "yes", frameBorder: "0", src: data.documentUrl, width: "100%", height: iFrameHeight }));
|
|
1958
1871
|
};
|
|
1959
1872
|
|
|
1960
1873
|
const style$2 = {
|
|
@@ -2278,7 +2191,7 @@ const DocusignForm = class {
|
|
|
2278
2191
|
get el() { return getElement(this); }
|
|
2279
2192
|
};
|
|
2280
2193
|
function useDocusignFormDemo(props) {
|
|
2281
|
-
const setStep =
|
|
2194
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
2282
2195
|
return cjs({
|
|
2283
2196
|
text: props.getTextProps(),
|
|
2284
2197
|
states: {
|
|
@@ -2548,15 +2461,15 @@ function getOption(countries, countryCode) {
|
|
|
2548
2461
|
}
|
|
2549
2462
|
function useIndirectTaxForm(props) {
|
|
2550
2463
|
var _a, _b, _c, _d, _e;
|
|
2551
|
-
const user =
|
|
2552
|
-
const locale =
|
|
2464
|
+
const user = Q();
|
|
2465
|
+
const locale = L();
|
|
2553
2466
|
const formRef = useRef(null);
|
|
2554
|
-
const context =
|
|
2555
|
-
const [step, setStep] =
|
|
2556
|
-
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] =
|
|
2557
|
-
const userForm =
|
|
2558
|
-
const { data: userData, refetch, errors: userError, } =
|
|
2559
|
-
const { data: _countriesRes, loading: countriesLoading } =
|
|
2467
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2468
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
2469
|
+
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = $e(CONNECT_PARTNER);
|
|
2470
|
+
const userForm = In(USER_FORM_CONTEXT_NAMESPACE);
|
|
2471
|
+
const { data: userData, refetch, errors: userError, } = Mn(USER_QUERY_NAMESPACE);
|
|
2472
|
+
const { data: _countriesRes, loading: countriesLoading } = Mn(COUNTRIES_QUERY_NAMESPACE);
|
|
2560
2473
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2561
2474
|
const _countries = useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2562
2475
|
const [loading, setLoading] = useState(false);
|
|
@@ -2945,7 +2858,7 @@ const IndirectTaxForm = class {
|
|
|
2945
2858
|
}
|
|
2946
2859
|
};
|
|
2947
2860
|
function useDemoIndirectTaxForm(props) {
|
|
2948
|
-
const setStep =
|
|
2861
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
2949
2862
|
const [option, setOption] = useState(null);
|
|
2950
2863
|
const [demoFormState, setDemoFormState] = useState({});
|
|
2951
2864
|
return cjs({
|
|
@@ -3055,8 +2968,8 @@ const GET_INVOICES = dist.gql `
|
|
|
3055
2968
|
`;
|
|
3056
2969
|
function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
3057
2970
|
var _a;
|
|
3058
|
-
const user =
|
|
3059
|
-
const locale =
|
|
2971
|
+
const user = Q();
|
|
2972
|
+
const locale = L();
|
|
3060
2973
|
const [content, setContent] = useReducer((state, next) => ({
|
|
3061
2974
|
...state,
|
|
3062
2975
|
...next,
|
|
@@ -3066,7 +2979,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3066
2979
|
loading: false,
|
|
3067
2980
|
page: 0,
|
|
3068
2981
|
});
|
|
3069
|
-
const { envelope: invoicesData, states, callbacks, } =
|
|
2982
|
+
const { envelope: invoicesData, states, callbacks, } = kn(GET_INVOICES, (data) => { var _a, _b, _c; return (_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.invoices; }, {
|
|
3070
2983
|
limit: props.perPage,
|
|
3071
2984
|
offset: 0,
|
|
3072
2985
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -3632,7 +3545,7 @@ function PayoutDetailsCardView(props) {
|
|
|
3632
3545
|
|
|
3633
3546
|
function usePayoutDetailsCard(props) {
|
|
3634
3547
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3635
|
-
const { data, loading } =
|
|
3548
|
+
const { data, loading } = Mn(USER_QUERY_NAMESPACE);
|
|
3636
3549
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
3637
3550
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3638
3551
|
var _a;
|
|
@@ -3788,9 +3701,27 @@ const TableRow = class {
|
|
|
3788
3701
|
}
|
|
3789
3702
|
};
|
|
3790
3703
|
|
|
3704
|
+
/**
|
|
3705
|
+
* Util function for getting just the props with a certain prefix.
|
|
3706
|
+
* @param props Text props on stencil component
|
|
3707
|
+
* @param prefix Prefix denoting which group the text prop belongs to
|
|
3708
|
+
* @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
|
|
3709
|
+
*/
|
|
3710
|
+
function extractProps(props, prefix) {
|
|
3711
|
+
const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
|
|
3712
|
+
const formattedProps = keys.reduce((prev, k) => {
|
|
3713
|
+
const key = k.replace(prefix, "");
|
|
3714
|
+
return {
|
|
3715
|
+
...prev,
|
|
3716
|
+
[key]: props[k],
|
|
3717
|
+
};
|
|
3718
|
+
}, {});
|
|
3719
|
+
return formattedProps;
|
|
3720
|
+
}
|
|
3721
|
+
|
|
3791
3722
|
function getCurrentStep(user) {
|
|
3792
|
-
var _a
|
|
3793
|
-
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected)
|
|
3723
|
+
var _a;
|
|
3724
|
+
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected)) {
|
|
3794
3725
|
return "/1";
|
|
3795
3726
|
}
|
|
3796
3727
|
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
|
|
@@ -3803,21 +3734,21 @@ function getCurrentStep(user) {
|
|
|
3803
3734
|
}
|
|
3804
3735
|
function useTaxAndCash() {
|
|
3805
3736
|
var _a, _b, _c, _d, _e;
|
|
3806
|
-
const host =
|
|
3807
|
-
const user =
|
|
3808
|
-
const locale =
|
|
3737
|
+
const host = _();
|
|
3738
|
+
const user = Q();
|
|
3739
|
+
const locale = L();
|
|
3809
3740
|
// State for current step of form
|
|
3810
|
-
const [step, setStep] =
|
|
3741
|
+
const [step, setStep] = Cn({
|
|
3811
3742
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
3812
3743
|
initialValue: "/loading",
|
|
3813
3744
|
});
|
|
3814
3745
|
// State for when to hide steps, or override certain actions
|
|
3815
|
-
const [context, _setContext] =
|
|
3746
|
+
const [context, _setContext] = Cn({
|
|
3816
3747
|
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
3817
3748
|
initialValue: {},
|
|
3818
3749
|
});
|
|
3819
3750
|
// State to carry user form information into step 2
|
|
3820
|
-
const [userFormContext, _setUserFormContext] =
|
|
3751
|
+
const [userFormContext, _setUserFormContext] = Cn({
|
|
3821
3752
|
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
3822
3753
|
initialValue: {
|
|
3823
3754
|
firstName: undefined,
|
|
@@ -3827,19 +3758,19 @@ function useTaxAndCash() {
|
|
|
3827
3758
|
currency: undefined,
|
|
3828
3759
|
},
|
|
3829
3760
|
});
|
|
3830
|
-
const [_currenciesContext, setCurrenciesContext] =
|
|
3761
|
+
const [_currenciesContext, setCurrenciesContext] = Cn({
|
|
3831
3762
|
namespace: CURRENCIES_NAMESPACE,
|
|
3832
3763
|
initialValue: [],
|
|
3833
3764
|
});
|
|
3834
|
-
const [_countriesContext, _setCountriesContext] =
|
|
3765
|
+
const [_countriesContext, _setCountriesContext] = Cn({
|
|
3835
3766
|
namespace: COUNTRIES_NAMESPACE,
|
|
3836
3767
|
initialValue: [],
|
|
3837
3768
|
});
|
|
3838
|
-
const [_sortedCountriesContext, setSortedCountriesContext] =
|
|
3769
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = Cn({
|
|
3839
3770
|
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
3840
3771
|
initialValue: [],
|
|
3841
3772
|
});
|
|
3842
|
-
const { data, errors } =
|
|
3773
|
+
const { data, errors } = Fn({
|
|
3843
3774
|
namespace: USER_QUERY_NAMESPACE,
|
|
3844
3775
|
query: GET_USER,
|
|
3845
3776
|
skip: !user,
|
|
@@ -3849,12 +3780,12 @@ function useTaxAndCash() {
|
|
|
3849
3780
|
});
|
|
3850
3781
|
const countryCode = ((_c = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) === null || _c === void 0 ? void 0 : _c.countryCode) ||
|
|
3851
3782
|
userFormContext.countryCode;
|
|
3852
|
-
|
|
3783
|
+
Fn({
|
|
3853
3784
|
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
3854
3785
|
query: GET_COUNTRIES,
|
|
3855
3786
|
skip: !user,
|
|
3856
3787
|
});
|
|
3857
|
-
const { data: financeNetworkData, refetch } =
|
|
3788
|
+
const { data: financeNetworkData, refetch } = Fn({
|
|
3858
3789
|
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
3859
3790
|
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
3860
3791
|
skip: !user,
|
|
@@ -3862,7 +3793,7 @@ function useTaxAndCash() {
|
|
|
3862
3793
|
filter: getFinanceNetworkFilter(),
|
|
3863
3794
|
},
|
|
3864
3795
|
});
|
|
3865
|
-
const { data: currenciesData } =
|
|
3796
|
+
const { data: currenciesData } = Fn({
|
|
3866
3797
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
3867
3798
|
query: GET_CURRENCIES,
|
|
3868
3799
|
skip: !user,
|
|
@@ -3943,7 +3874,7 @@ function useTaxAndCash() {
|
|
|
3943
3874
|
step,
|
|
3944
3875
|
setStep,
|
|
3945
3876
|
context,
|
|
3946
|
-
namespace:
|
|
3877
|
+
namespace: Pn(TAX_CONTEXT_NAMESPACE),
|
|
3947
3878
|
loading: step === "/loading",
|
|
3948
3879
|
};
|
|
3949
3880
|
}
|
|
@@ -4684,14 +4615,14 @@ const TaxAndCashMonolith = class {
|
|
|
4684
4615
|
* @uiGroup Dashboard Properties
|
|
4685
4616
|
* @uiWidget textArea
|
|
4686
4617
|
*/
|
|
4687
|
-
this.
|
|
4618
|
+
this.dashboard_errorTitleText = "Your payout is on hold ";
|
|
4688
4619
|
/**
|
|
4689
4620
|
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
4690
4621
|
* @uiName Payout error message description
|
|
4691
4622
|
* @uiGroup Dashboard Properties
|
|
4692
4623
|
* @uiWidget textArea
|
|
4693
4624
|
*/
|
|
4694
|
-
this.
|
|
4625
|
+
this.dashboard_errorDescriptionText = "If you’ve recently added your payout information, please wait while we verify your information. If it’s still on hold after a few days, please contact Support or check your inbox for an email from our referral program provider, impact.com.";
|
|
4695
4626
|
/**
|
|
4696
4627
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
4697
4628
|
* @uiName Payout missing information subtext
|
|
@@ -4889,7 +4820,7 @@ const TaxAndCashMonolith = class {
|
|
|
4889
4820
|
}
|
|
4890
4821
|
};
|
|
4891
4822
|
function useDemoTaxAndCash(props) {
|
|
4892
|
-
const [step, setStep] =
|
|
4823
|
+
const [step, setStep] = Cn({
|
|
4893
4824
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4894
4825
|
initialValue: "/1",
|
|
4895
4826
|
});
|
|
@@ -4906,12 +4837,6 @@ const style$5 = {
|
|
|
4906
4837
|
borderTop: "none",
|
|
4907
4838
|
},
|
|
4908
4839
|
},
|
|
4909
|
-
HoldAlertContainer: {
|
|
4910
|
-
"&::part(base)": {
|
|
4911
|
-
border: "none",
|
|
4912
|
-
backgroundColor: "transparent",
|
|
4913
|
-
},
|
|
4914
|
-
},
|
|
4915
4840
|
ExpiringSoonAlertContainer: {
|
|
4916
4841
|
"&::part(base)": {
|
|
4917
4842
|
backgroundColor: "var(--sl-color-yellow-100)",
|
|
@@ -5151,11 +5076,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5151
5076
|
h("strong", null, text.error.generalTitle),
|
|
5152
5077
|
h("br", null),
|
|
5153
5078
|
text.error.generalDescription)),
|
|
5154
|
-
states.hasHold && (h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.HoldAlertContainer },
|
|
5155
|
-
h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
5156
|
-
h("strong", null, text.payoutHoldAlertHeader),
|
|
5157
|
-
h("br", null),
|
|
5158
|
-
text.payoutHoldAlertDescription)),
|
|
5159
5079
|
h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5160
5080
|
h("p", null, text.replaceTaxFormModalBodyText),
|
|
5161
5081
|
h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
@@ -5261,16 +5181,16 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5261
5181
|
return "Indirect Tax";
|
|
5262
5182
|
}
|
|
5263
5183
|
const useTaxAndCashDashboard = (props) => {
|
|
5264
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l
|
|
5265
|
-
const setStep =
|
|
5266
|
-
const setContext =
|
|
5184
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5185
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
5186
|
+
const setContext = wn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5267
5187
|
const [showDialog, setShowDialog] = useState(false);
|
|
5268
|
-
const locale =
|
|
5188
|
+
const locale = L();
|
|
5269
5189
|
useEffect(() => {
|
|
5270
5190
|
// Clear override context once on submitted
|
|
5271
5191
|
setContext({});
|
|
5272
5192
|
}, []);
|
|
5273
|
-
const { data, loading, errors: userError, } =
|
|
5193
|
+
const { data, loading, errors: userError, } = Mn(USER_QUERY_NAMESPACE);
|
|
5274
5194
|
const publisher = (_b = (_a = data === null || data === void 0 ? void 0 : data.user) === null || _a === void 0 ? void 0 : _a.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher;
|
|
5275
5195
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5276
5196
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -5316,7 +5236,6 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5316
5236
|
loading,
|
|
5317
5237
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
5318
5238
|
showNewFormDialog: showDialog,
|
|
5319
|
-
hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
|
|
5320
5239
|
},
|
|
5321
5240
|
callbacks: {
|
|
5322
5241
|
onClick: () => setShowDialog(true),
|
|
@@ -5494,13 +5413,13 @@ const TaxAndCashDashboard = class {
|
|
|
5494
5413
|
* @uiName Payout error message title
|
|
5495
5414
|
* @uiWidget textArea
|
|
5496
5415
|
*/
|
|
5497
|
-
this.
|
|
5416
|
+
this.errorTitleText = "Your payout is on hold ";
|
|
5498
5417
|
/**
|
|
5499
5418
|
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5500
5419
|
* @uiName Payout error message description
|
|
5501
5420
|
* @uiWidget textArea
|
|
5502
5421
|
*/
|
|
5503
|
-
this.
|
|
5422
|
+
this.errorDescriptionText = "If you’ve recently added your payout information, please wait while we verify your information. If it’s still on hold after a few days, please contact Support or check your inbox for an email from our referral program provider, impact.com.";
|
|
5504
5423
|
/**
|
|
5505
5424
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
5506
5425
|
* @uiName Payout missing information subtext
|
|
@@ -5628,7 +5547,6 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
5628
5547
|
disabled: false,
|
|
5629
5548
|
loading: false,
|
|
5630
5549
|
showNewFormDialog: false,
|
|
5631
|
-
hasHold: false,
|
|
5632
5550
|
},
|
|
5633
5551
|
callbacks: {
|
|
5634
5552
|
onClick: () => console.debug("check step"),
|
|
@@ -6691,7 +6609,7 @@ const style$6 = {
|
|
|
6691
6609
|
},
|
|
6692
6610
|
PhoneInputsSection: {
|
|
6693
6611
|
display: "flex",
|
|
6694
|
-
alignItems: "flex-
|
|
6612
|
+
alignItems: "flex-start",
|
|
6695
6613
|
flexDirection: "column",
|
|
6696
6614
|
gap: "4px",
|
|
6697
6615
|
"& p": {
|
|
@@ -6702,7 +6620,7 @@ const style$6 = {
|
|
|
6702
6620
|
},
|
|
6703
6621
|
PhoneInputsContainer: {
|
|
6704
6622
|
display: "flex",
|
|
6705
|
-
alignItems: "flex-
|
|
6623
|
+
alignItems: "flex-start",
|
|
6706
6624
|
gap: "4px",
|
|
6707
6625
|
width: "100%",
|
|
6708
6626
|
"& #phoneNumber": {
|
|
@@ -6909,12 +6827,12 @@ function useUserInfoForm(props) {
|
|
|
6909
6827
|
const currencyRef = useRef(undefined);
|
|
6910
6828
|
const phoneCountryRef = useRef(undefined);
|
|
6911
6829
|
const formRef = useRef(null);
|
|
6912
|
-
const context =
|
|
6913
|
-
const countries =
|
|
6914
|
-
const [step, setStep] =
|
|
6915
|
-
const [userFormContext, setUserFormContext] =
|
|
6916
|
-
const { data, loading, errors: userError, } =
|
|
6917
|
-
const _currencies =
|
|
6830
|
+
const context = In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
6831
|
+
const countries = In(SORTED_COUNTRIES_NAMESPACE);
|
|
6832
|
+
const [step, setStep] = bn(TAX_CONTEXT_NAMESPACE);
|
|
6833
|
+
const [userFormContext, setUserFormContext] = bn(USER_FORM_CONTEXT_NAMESPACE);
|
|
6834
|
+
const { data, loading, errors: userError, } = Mn(USER_QUERY_NAMESPACE);
|
|
6835
|
+
const _currencies = In(CURRENCIES_NAMESPACE);
|
|
6918
6836
|
const currencies = useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6919
6837
|
const [countrySearch, setCountrySearch] = useState("");
|
|
6920
6838
|
const [phoneCountrySearch, setPhoneCountrySearch] = useState("");
|
|
@@ -6924,20 +6842,17 @@ function useUserInfoForm(props) {
|
|
|
6924
6842
|
const [filteredCurrencies, setFilteredCurrencies] = useState(currencies || []);
|
|
6925
6843
|
const [formErrors, setErrors] = useState({});
|
|
6926
6844
|
useEffect(() => {
|
|
6927
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
6845
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
6928
6846
|
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6929
6847
|
if (!user || step !== "/1")
|
|
6930
6848
|
return;
|
|
6931
6849
|
// If form already filled out, skip initialising it
|
|
6932
6850
|
if (objectIsFull(userFormContext))
|
|
6933
6851
|
return;
|
|
6934
|
-
|
|
6935
|
-
const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
|
|
6936
|
-
: user.email;
|
|
6937
|
-
if (((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) && ((_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user)) {
|
|
6852
|
+
if (((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) && ((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.user)) {
|
|
6938
6853
|
// Initialise with partner information
|
|
6939
6854
|
setUserFormContext({
|
|
6940
|
-
email,
|
|
6855
|
+
email: user.email,
|
|
6941
6856
|
firstName: user.impactConnection.user.firstName,
|
|
6942
6857
|
lastName: user.impactConnection.user.lastName,
|
|
6943
6858
|
countryCode: user.impactConnection.publisher.countryCode,
|
|
@@ -6953,17 +6868,17 @@ function useUserInfoForm(props) {
|
|
|
6953
6868
|
else if (!(userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.email)) {
|
|
6954
6869
|
// Initialise with user information
|
|
6955
6870
|
setUserFormContext({
|
|
6956
|
-
email,
|
|
6871
|
+
email: user.email,
|
|
6957
6872
|
firstName: user.firstName,
|
|
6958
6873
|
lastName: user.lastName,
|
|
6959
6874
|
countryCode: user.countryCode || "US",
|
|
6960
|
-
currency: (
|
|
6961
|
-
phoneNumberCountryCode: ((
|
|
6962
|
-
phoneNumber: (
|
|
6963
|
-
address: (
|
|
6964
|
-
city: (
|
|
6965
|
-
state: (
|
|
6966
|
-
postalCode: (
|
|
6875
|
+
currency: (_c = user.customFields) === null || _c === void 0 ? void 0 : _c.currency,
|
|
6876
|
+
phoneNumberCountryCode: ((_d = user.customFields) === null || _d === void 0 ? void 0 : _d.phoneNumberCountryCode) || "US",
|
|
6877
|
+
phoneNumber: (_e = user.customFields) === null || _e === void 0 ? void 0 : _e.phoneNumber,
|
|
6878
|
+
address: (_f = user.customFields) === null || _f === void 0 ? void 0 : _f.address,
|
|
6879
|
+
city: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.city,
|
|
6880
|
+
state: (_h = user.customFields) === null || _h === void 0 ? void 0 : _h.state,
|
|
6881
|
+
postalCode: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.postalCode,
|
|
6967
6882
|
});
|
|
6968
6883
|
}
|
|
6969
6884
|
}, [data, step, userFormContext]);
|
|
@@ -7278,7 +7193,7 @@ const TaxForm = class {
|
|
|
7278
7193
|
}
|
|
7279
7194
|
};
|
|
7280
7195
|
function useDemoUserInfoForm(props) {
|
|
7281
|
-
const setStep =
|
|
7196
|
+
const setStep = wn(TAX_CONTEXT_NAMESPACE);
|
|
7282
7197
|
return cjs({
|
|
7283
7198
|
setStep,
|
|
7284
7199
|
onSubmit: () => {
|