@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
|
@@ -4,21 +4,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b0129cd6.js');
|
|
6
6
|
const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
7
|
-
const global = require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
7
|
+
const global = require('./global-02e50f09.js');
|
|
8
|
+
const index_module = require('./index.module-df530553.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
require('./mixins-fe9d4112.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
13
|
const GenericTableView = require('./GenericTableView-80d7642e.js');
|
|
14
|
-
const reRender = require('./re-render-
|
|
15
|
-
const useChildElements = require('./useChildElements-
|
|
14
|
+
const reRender = require('./re-render-1976e05e.js');
|
|
15
|
+
const useChildElements = require('./useChildElements-e0d44916.js');
|
|
16
16
|
const luxon = require('./luxon-05098e19.js');
|
|
17
|
-
const useReferralTable = require('./useReferralTable-
|
|
17
|
+
const useReferralTable = require('./useReferralTable-a76adb0d.js');
|
|
18
18
|
const utils = require('./utils-6847bc06.js');
|
|
19
|
-
const sqmInvoiceTableView = require('./sqm-invoice-table-view-
|
|
20
|
-
const keys = require('./keys-cff24974.js');
|
|
21
|
-
const extractProps = require('./extractProps-fd93ba62.js');
|
|
19
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-e3b03a00.js');
|
|
22
20
|
|
|
23
21
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
24
22
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -34,17 +32,11 @@ const GET_USER = index_module.dist.gql `
|
|
|
34
32
|
query getUserTaxInfo {
|
|
35
33
|
user: viewer {
|
|
36
34
|
... on User {
|
|
37
|
-
id
|
|
38
35
|
firstName
|
|
39
36
|
lastName
|
|
40
37
|
email
|
|
41
38
|
countryCode
|
|
42
39
|
customFields
|
|
43
|
-
managedIdentity {
|
|
44
|
-
uid
|
|
45
|
-
email
|
|
46
|
-
emailVerified
|
|
47
|
-
}
|
|
48
40
|
impactConnection {
|
|
49
41
|
connected
|
|
50
42
|
user {
|
|
@@ -951,21 +943,6 @@ const SAVE_WITHDRAWAL_SETTINGS = index_module.dist.gql `
|
|
|
951
943
|
}
|
|
952
944
|
}
|
|
953
945
|
`;
|
|
954
|
-
const UPDATE_WITHDRAWAL_SETTINGS = index_module.dist.gql `
|
|
955
|
-
mutation updateImpactPublisherWithdrawalSettings(
|
|
956
|
-
$updateImpactPublisherWithdrawalSettingsInput: UpdateImpactPublisherWithdrawalSettingsInput!
|
|
957
|
-
) {
|
|
958
|
-
updateImpactPublisherWithdrawalSettings(
|
|
959
|
-
updateImpactPublisherWithdrawalSettingsInput: $updateImpactPublisherWithdrawalSettingsInput
|
|
960
|
-
) {
|
|
961
|
-
success
|
|
962
|
-
validationErrors {
|
|
963
|
-
field
|
|
964
|
-
message
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
}
|
|
968
|
-
`;
|
|
969
946
|
function getPaymentMethod(paymentOption) {
|
|
970
947
|
if (paymentOption.defaultFinancePaymentMethodId === 3 ||
|
|
971
948
|
paymentOption.defaultFinancePaymentMethodId === 5)
|
|
@@ -983,19 +960,15 @@ function parseImpactThreshold(threshold) {
|
|
|
983
960
|
}
|
|
984
961
|
function useBankingInfoForm(props) {
|
|
985
962
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
986
|
-
const
|
|
987
|
-
const
|
|
988
|
-
const
|
|
989
|
-
const
|
|
990
|
-
const
|
|
991
|
-
const countries = index_module.Dn(SORTED_COUNTRIES_NAMESPACE);
|
|
963
|
+
const locale = index_module.L();
|
|
964
|
+
const user = index_module.Q();
|
|
965
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
966
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
967
|
+
const countries = index_module.In(SORTED_COUNTRIES_NAMESPACE);
|
|
992
968
|
const formRef = stencilHooks_module.useRef(null);
|
|
993
|
-
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.
|
|
994
|
-
const { data: userData, refetch, errors: userError, } = index_module.
|
|
995
|
-
const [saveWithdrawalSettings] = index_module
|
|
996
|
-
const [updateWithdrawalSettings] = index_module.xe(UPDATE_WITHDRAWAL_SETTINGS);
|
|
997
|
-
const [showVerification, setShowVerification] = stencilHooks_module.useState(false);
|
|
998
|
-
const [currentFormData, setCurrentFormData] = stencilHooks_module.useState(null);
|
|
969
|
+
const { data: paymentOptionsData, loading: paymentOptionsLoading, errors: paymentOptionsError, } = index_module.Mn(FINANCE_NETWORK_SETTINGS_NAMESPACE);
|
|
970
|
+
const { data: userData, refetch, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
971
|
+
const [saveWithdrawalSettings] = index_module.$e(SAVE_WITHDRAWAL_SETTINGS);
|
|
999
972
|
const [formState, setFormState] = stencilHooks_module.useState({});
|
|
1000
973
|
const [currentPaymentOption, setCurrentPaymentOption] = stencilHooks_module.useState(null);
|
|
1001
974
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
@@ -1005,9 +978,8 @@ function useBankingInfoForm(props) {
|
|
|
1005
978
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
1006
979
|
const [filteredCountries, setFilteredCountries] = stencilHooks_module.useState(countries || []);
|
|
1007
980
|
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) || "";
|
|
1008
|
-
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);
|
|
1009
981
|
const feeCap = paypalFeeMap[currency] || "";
|
|
1010
|
-
const paymentOptions = (
|
|
982
|
+
const paymentOptions = (_d = paymentOptionsData === null || paymentOptionsData === void 0 ? void 0 : paymentOptionsData.impactFinanceNetworkSettings) === null || _d === void 0 ? void 0 : _d.data;
|
|
1011
983
|
const paymentMethodFeeMap = {
|
|
1012
984
|
[ACH_PAYMENT_METHOD]: props.eftWithdrawalLabel,
|
|
1013
985
|
[WIRE_PAYMENT_METHOD]: global.intl.formatMessage({
|
|
@@ -1086,50 +1058,49 @@ function useBankingInfoForm(props) {
|
|
|
1086
1058
|
setFormState((p) => ({ ...p, bankCountry }));
|
|
1087
1059
|
setCurrentPaymentOption(currentPaymentOption);
|
|
1088
1060
|
};
|
|
1089
|
-
const
|
|
1090
|
-
var _a, _b, _c, _d
|
|
1061
|
+
const onSubmit = async (event) => {
|
|
1062
|
+
var _a, _b, _c, _d;
|
|
1063
|
+
let formData = {};
|
|
1064
|
+
let validationErrors = {};
|
|
1065
|
+
const controls = event.target.getFormControls();
|
|
1066
|
+
controls.forEach((control) => {
|
|
1067
|
+
if (!control.name || !control.id)
|
|
1068
|
+
return;
|
|
1069
|
+
const key = control.name;
|
|
1070
|
+
const value = control.value;
|
|
1071
|
+
jsonpointer.jsonpointer.set(formData, key, value);
|
|
1072
|
+
if (control.required && !value) {
|
|
1073
|
+
jsonpointer.jsonpointer.set(validationErrors, key, { type: "required" });
|
|
1074
|
+
}
|
|
1075
|
+
});
|
|
1076
|
+
setErrors({ inputErrors: validationErrors });
|
|
1077
|
+
if (Object.keys(validationErrors).length) {
|
|
1078
|
+
return;
|
|
1079
|
+
}
|
|
1091
1080
|
setLoading(true);
|
|
1092
1081
|
try {
|
|
1093
1082
|
if (!currentPaymentOption)
|
|
1094
1083
|
throw new Error("No currentPaymentOption");
|
|
1095
|
-
const
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1084
|
+
const input = {
|
|
1085
|
+
setImpactPublisherWithdrawalSettingsInput: {
|
|
1086
|
+
user: {
|
|
1087
|
+
id: user.id,
|
|
1088
|
+
accountId: user.accountId,
|
|
1089
|
+
},
|
|
1090
|
+
...formData,
|
|
1091
|
+
paymentMethod: getPaymentMethod(currentPaymentOption),
|
|
1092
|
+
paymentSchedulingType: paymentScheduleChecked,
|
|
1099
1093
|
},
|
|
1100
|
-
...formData,
|
|
1101
|
-
paymentMethod: getPaymentMethod(currentPaymentOption),
|
|
1102
|
-
paymentSchedulingType: paymentScheduleChecked,
|
|
1103
1094
|
};
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
let validationErrors = null;
|
|
1107
|
-
// Call difference mutations based on whether the user is updating
|
|
1108
|
-
// the info for setting it for the first time
|
|
1109
|
-
if (isPartner) {
|
|
1110
|
-
response = await updateWithdrawalSettings({
|
|
1111
|
-
updateImpactPublisherWithdrawalSettingsInput: {
|
|
1112
|
-
...body,
|
|
1113
|
-
accessKey: token,
|
|
1114
|
-
},
|
|
1115
|
-
});
|
|
1116
|
-
success = (_b = (_a = response) === null || _a === void 0 ? void 0 : _a.updateImpactPublisherWithdrawalSettings) === null || _b === void 0 ? void 0 : _b.success;
|
|
1117
|
-
validationErrors = (_d = (_c = response) === null || _c === void 0 ? void 0 : _c.updateImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
|
|
1118
|
-
}
|
|
1119
|
-
else {
|
|
1120
|
-
response = await saveWithdrawalSettings({
|
|
1121
|
-
setImpactPublisherWithdrawalSettingsInput: {
|
|
1122
|
-
...body,
|
|
1123
|
-
},
|
|
1124
|
-
});
|
|
1125
|
-
success = (_f = (_e = response) === null || _e === void 0 ? void 0 : _e.setImpactPublisherWithdrawalSettings) === null || _f === void 0 ? void 0 : _f.success;
|
|
1126
|
-
validationErrors = (_h = (_g = response) === null || _g === void 0 ? void 0 : _g.setImpactPublisherWithdrawalSettings) === null || _h === void 0 ? void 0 : _h.validationErrors;
|
|
1127
|
-
}
|
|
1128
|
-
if (!response || ((_j = response) === null || _j === void 0 ? void 0 : _j.message)) {
|
|
1095
|
+
const response = await saveWithdrawalSettings(input);
|
|
1096
|
+
if (!response || ((_a = response) === null || _a === void 0 ? void 0 : _a.message)) {
|
|
1129
1097
|
throw new Error();
|
|
1130
1098
|
}
|
|
1131
|
-
else if (!
|
|
1132
|
-
|
|
1099
|
+
else if (!((_b = response
|
|
1100
|
+
.setImpactPublisherWithdrawalSettings) === null || _b === void 0 ? void 0 : _b.success)) {
|
|
1101
|
+
console.error("Validation failed: ", (_c = response
|
|
1102
|
+
.setImpactPublisherWithdrawalSettings) === null || _c === void 0 ? void 0 : _c.validationErrors);
|
|
1103
|
+
const validationErrors = (_d = response.setImpactPublisherWithdrawalSettings) === null || _d === void 0 ? void 0 : _d.validationErrors;
|
|
1133
1104
|
const mappedValidationErrors = validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors.reduce((agg, error) => {
|
|
1134
1105
|
return {
|
|
1135
1106
|
...agg,
|
|
@@ -1155,45 +1126,6 @@ function useBankingInfoForm(props) {
|
|
|
1155
1126
|
setLoading(false);
|
|
1156
1127
|
}
|
|
1157
1128
|
};
|
|
1158
|
-
const onSubmit = async (event) => {
|
|
1159
|
-
let formData = {};
|
|
1160
|
-
let validationErrors = {};
|
|
1161
|
-
const controls = event.target.getFormControls();
|
|
1162
|
-
controls.forEach((control) => {
|
|
1163
|
-
if (!control.name || !control.id)
|
|
1164
|
-
return;
|
|
1165
|
-
const key = control.name;
|
|
1166
|
-
const value = control.value;
|
|
1167
|
-
jsonpointer.jsonpointer.set(formData, key, value);
|
|
1168
|
-
if (control.required && !value) {
|
|
1169
|
-
jsonpointer.jsonpointer.set(validationErrors, key, { type: "required" });
|
|
1170
|
-
}
|
|
1171
|
-
});
|
|
1172
|
-
setErrors({ inputErrors: validationErrors });
|
|
1173
|
-
if (Object.keys(validationErrors).length) {
|
|
1174
|
-
return;
|
|
1175
|
-
}
|
|
1176
|
-
let token = undefined;
|
|
1177
|
-
if (isPartner) {
|
|
1178
|
-
setShowVerification(true);
|
|
1179
|
-
token = await new Promise((res) => {
|
|
1180
|
-
const cb = (e) => {
|
|
1181
|
-
e.stopPropagation();
|
|
1182
|
-
host.removeEventListener(keys.VERIFICATION_EVENT_KEY, cb);
|
|
1183
|
-
res(e.detail.token);
|
|
1184
|
-
};
|
|
1185
|
-
host.addEventListener(keys.VERIFICATION_EVENT_KEY, cb);
|
|
1186
|
-
});
|
|
1187
|
-
setShowVerification(false);
|
|
1188
|
-
}
|
|
1189
|
-
await runMutation(formData, token);
|
|
1190
|
-
};
|
|
1191
|
-
const onVerification = async (token) => {
|
|
1192
|
-
host.dispatchEvent(new CustomEvent(keys.VERIFICATION_EVENT_KEY, {
|
|
1193
|
-
detail: { token },
|
|
1194
|
-
bubbles: false,
|
|
1195
|
-
}));
|
|
1196
|
-
};
|
|
1197
1129
|
function setPaymentMethodChecked(paymentMethod) {
|
|
1198
1130
|
_setPaymentMethodChecked(paymentMethod);
|
|
1199
1131
|
if (paymentMethod === "toPayPalAccount") {
|
|
@@ -1218,15 +1150,13 @@ function useBankingInfoForm(props) {
|
|
|
1218
1150
|
setPaymentScheduleChecked,
|
|
1219
1151
|
onBack: () => setStep("/dashboard"),
|
|
1220
1152
|
setCountrySearch,
|
|
1221
|
-
onVerification,
|
|
1222
1153
|
},
|
|
1223
1154
|
states: {
|
|
1224
|
-
showVerification,
|
|
1225
1155
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
1226
1156
|
hideSteps: !!context.hideSteps,
|
|
1227
1157
|
saveDisabled: !paymentMethodChecked || !paymentScheduleChecked,
|
|
1228
1158
|
locale,
|
|
1229
|
-
isPartner,
|
|
1159
|
+
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),
|
|
1230
1160
|
feeCap,
|
|
1231
1161
|
paymentMethodFeeLabel,
|
|
1232
1162
|
disabled: loading,
|
|
@@ -1557,9 +1487,6 @@ const BankingInfoForm = class {
|
|
|
1557
1487
|
padding: "var(--sl-spacing-x-small)",
|
|
1558
1488
|
},
|
|
1559
1489
|
};
|
|
1560
|
-
if (props.states.isPartner && props.states.showVerification) {
|
|
1561
|
-
return (index.h("sqm-code-verification", { onVerification: props.callbacks.onVerification }));
|
|
1562
|
-
}
|
|
1563
1490
|
return (index.h(index.Host, null, index.h(BankingInfoFormView, { callbacks: props.callbacks, text: props.text, states: props.states, refs: props.refs, slots: {
|
|
1564
1491
|
formInputsSlot: inputFields === null || inputFields === void 0 ? void 0 : inputFields.map(({ input }) => input),
|
|
1565
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) && {
|
|
@@ -1609,7 +1536,7 @@ function useDemoBankingInfoForm(props) {
|
|
|
1609
1536
|
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;
|
|
1610
1537
|
const defaultCurrency = (_h = (_g = props.demoData) === null || _g === void 0 ? void 0 : _g.states) === null || _h === void 0 ? void 0 : _h.currency;
|
|
1611
1538
|
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;
|
|
1612
|
-
const setStep = index_module.
|
|
1539
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
1613
1540
|
const [paymentMethodChecked, setPaymentMethodChecked] = stencilHooks_module.useState(undefined);
|
|
1614
1541
|
const [paymentScheduleChecked, setPaymentScheduleChecked] = stencilHooks_module.useState(undefined);
|
|
1615
1542
|
const [currency, setCurrency] = stencilHooks_module.useState(defaultCurrency);
|
|
@@ -1692,7 +1619,6 @@ function useDemoBankingInfoForm(props) {
|
|
|
1692
1619
|
setPaymentScheduleChecked,
|
|
1693
1620
|
setCountrySearch: () => { },
|
|
1694
1621
|
onBack: async () => setStep("/dashboard"),
|
|
1695
|
-
onVerification: () => { },
|
|
1696
1622
|
},
|
|
1697
1623
|
text: props.getTextProps(),
|
|
1698
1624
|
refs: {
|
|
@@ -1728,13 +1654,13 @@ const DOCUSIGN_ERROR_STATES = [
|
|
|
1728
1654
|
const DOCUSIGN_EXPIRED_STATES = ["ttl_expired", "session_timeout"];
|
|
1729
1655
|
function useDocusignForm(props) {
|
|
1730
1656
|
var _a, _b, _c;
|
|
1731
|
-
const user = index_module.
|
|
1732
|
-
const context = index_module.
|
|
1733
|
-
const [step, setStep] = index_module.
|
|
1734
|
-
const { data, loading: userLoading, refetch, } = index_module.
|
|
1657
|
+
const user = index_module.Q();
|
|
1658
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
1659
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
1660
|
+
const { data, loading: userLoading, refetch, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
1735
1661
|
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;
|
|
1736
|
-
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module
|
|
1737
|
-
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module
|
|
1662
|
+
const [createTaxDocument, { loading: documentLoading, data: document, errors: documentErrors },] = index_module.$e(GET_TAX_DOCUMENT);
|
|
1663
|
+
const [completeTaxDocument, { loading: completeDocumentLoading, data: completeData, errors: completeErrors, },] = index_module.$e(COMPLETE_TAX_DOCUMENT);
|
|
1738
1664
|
const [docusignStatus, setDocusignStatus] = stencilHooks_module.useState(undefined);
|
|
1739
1665
|
const [participantType, setParticipantType] = stencilHooks_module.useState(undefined);
|
|
1740
1666
|
const [errors, setErrors] = stencilHooks_module.useState({});
|
|
@@ -1874,14 +1800,6 @@ const style$1 = {
|
|
|
1874
1800
|
MessageContainer: {
|
|
1875
1801
|
maxWidth: "400px",
|
|
1876
1802
|
},
|
|
1877
|
-
IFrameContainer: {
|
|
1878
|
-
"@media screen and (max-width: 440px)": {
|
|
1879
|
-
position: "absolute",
|
|
1880
|
-
width: "100vw",
|
|
1881
|
-
left: "-30px",
|
|
1882
|
-
zIndex: "9999",
|
|
1883
|
-
},
|
|
1884
|
-
},
|
|
1885
1803
|
};
|
|
1886
1804
|
const sheet$1 = JSS.createStyleSheet(style$1);
|
|
1887
1805
|
const styleString$1 = sheet$1.toString();
|
|
@@ -1923,7 +1841,6 @@ const DocusignLoadingView = () => {
|
|
|
1923
1841
|
index.h("sl-spinner", { style: { fontSize: "50px", margin: "40px" } }))));
|
|
1924
1842
|
};
|
|
1925
1843
|
const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
1926
|
-
const { classes } = sheet$1;
|
|
1927
1844
|
const [iFrameHeight, setiFrameHeight] = stencilHooks_module.useState("100%");
|
|
1928
1845
|
const allowedDomains = [
|
|
1929
1846
|
"referralsaasquatch.com",
|
|
@@ -1946,7 +1863,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1946
1863
|
return () => {
|
|
1947
1864
|
window.removeEventListener("message", callback, false);
|
|
1948
1865
|
};
|
|
1949
|
-
}, [
|
|
1866
|
+
}, []);
|
|
1950
1867
|
if (states.urlLoading)
|
|
1951
1868
|
return index.h(DocusignLoadingView, null);
|
|
1952
1869
|
if (DOCUSIGN_ERROR_STATES.includes(states.status)) {
|
|
@@ -1954,11 +1871,7 @@ const DocusignIframe = ({ states, data, callbacks, text, }) => {
|
|
|
1954
1871
|
}
|
|
1955
1872
|
if (DOCUSIGN_EXPIRED_STATES.includes(states.status))
|
|
1956
1873
|
return index.h(DocusignExpiredView, { text: text });
|
|
1957
|
-
|
|
1958
|
-
return (index.h("div", { style: { height: iFrameHeight } },
|
|
1959
|
-
index.h("style", { type: "text/css" }, styleString$1),
|
|
1960
|
-
index.h("div", { class: classes.IFrameContainer },
|
|
1961
|
-
index.h("iframe", { scrolling: "yes", frameBorder: "0", width: "100%", src: data.documentUrl, height: iFrameHeight }))));
|
|
1874
|
+
return (index.h("iframe", { scrolling: "yes", frameBorder: "0", src: data.documentUrl, width: "100%", height: iFrameHeight }));
|
|
1962
1875
|
};
|
|
1963
1876
|
|
|
1964
1877
|
const style$2 = {
|
|
@@ -2282,7 +2195,7 @@ const DocusignForm = class {
|
|
|
2282
2195
|
get el() { return index.getElement(this); }
|
|
2283
2196
|
};
|
|
2284
2197
|
function useDocusignFormDemo(props) {
|
|
2285
|
-
const setStep = index_module.
|
|
2198
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
2286
2199
|
return cjs.cjs({
|
|
2287
2200
|
text: props.getTextProps(),
|
|
2288
2201
|
states: {
|
|
@@ -2552,15 +2465,15 @@ function getOption(countries, countryCode) {
|
|
|
2552
2465
|
}
|
|
2553
2466
|
function useIndirectTaxForm(props) {
|
|
2554
2467
|
var _a, _b, _c, _d, _e;
|
|
2555
|
-
const user = index_module.
|
|
2556
|
-
const locale = index_module.
|
|
2468
|
+
const user = index_module.Q();
|
|
2469
|
+
const locale = index_module.L();
|
|
2557
2470
|
const formRef = stencilHooks_module.useRef(null);
|
|
2558
|
-
const context = index_module.
|
|
2559
|
-
const [step, setStep] = index_module.
|
|
2560
|
-
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module
|
|
2561
|
-
const userForm = index_module.
|
|
2562
|
-
const { data: userData, refetch, errors: userError, } = index_module.
|
|
2563
|
-
const { data: _countriesRes, loading: countriesLoading } = index_module.
|
|
2471
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2472
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
2473
|
+
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = index_module.$e(CONNECT_PARTNER);
|
|
2474
|
+
const userForm = index_module.In(USER_FORM_CONTEXT_NAMESPACE);
|
|
2475
|
+
const { data: userData, refetch, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
2476
|
+
const { data: _countriesRes, loading: countriesLoading } = index_module.Mn(COUNTRIES_QUERY_NAMESPACE);
|
|
2564
2477
|
const intlLocale = (locale === null || locale === void 0 ? void 0 : locale.replace("_", "-")) || "en";
|
|
2565
2478
|
const _countries = stencilHooks_module.useMemo(() => { var _a, _b; return (_b = (_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.map((country) => sqmInvoiceTableView.getCountryObj({ countryCode: country.countryCode, locale: intlLocale })); }, [(_a = _countriesRes === null || _countriesRes === void 0 ? void 0 : _countriesRes.impactPayoutCountries) === null || _a === void 0 ? void 0 : _a.data]);
|
|
2566
2479
|
const [loading, setLoading] = stencilHooks_module.useState(false);
|
|
@@ -2949,7 +2862,7 @@ const IndirectTaxForm = class {
|
|
|
2949
2862
|
}
|
|
2950
2863
|
};
|
|
2951
2864
|
function useDemoIndirectTaxForm(props) {
|
|
2952
|
-
const setStep = index_module.
|
|
2865
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
2953
2866
|
const [option, setOption] = stencilHooks_module.useState(null);
|
|
2954
2867
|
const [demoFormState, setDemoFormState] = stencilHooks_module.useState({});
|
|
2955
2868
|
return cjs.cjs({
|
|
@@ -3059,8 +2972,8 @@ const GET_INVOICES = index_module.dist.gql `
|
|
|
3059
2972
|
`;
|
|
3060
2973
|
function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
3061
2974
|
var _a;
|
|
3062
|
-
const user = index_module.
|
|
3063
|
-
const locale = index_module.
|
|
2975
|
+
const user = index_module.Q();
|
|
2976
|
+
const locale = index_module.L();
|
|
3064
2977
|
const [content, setContent] = stencilHooks_module.useReducer((state, next) => ({
|
|
3065
2978
|
...state,
|
|
3066
2979
|
...next,
|
|
@@ -3070,7 +2983,7 @@ function useInvoiceTable(props, emptyElement, loadingElement) {
|
|
|
3070
2983
|
loading: false,
|
|
3071
2984
|
page: 0,
|
|
3072
2985
|
});
|
|
3073
|
-
const { envelope: invoicesData, states, callbacks, } = index_module.
|
|
2986
|
+
const { envelope: invoicesData, states, callbacks, } = index_module.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; }, {
|
|
3074
2987
|
limit: props.perPage,
|
|
3075
2988
|
offset: 0,
|
|
3076
2989
|
}, {}, !(user === null || user === void 0 ? void 0 : user.jwt));
|
|
@@ -3636,7 +3549,7 @@ function PayoutDetailsCardView(props) {
|
|
|
3636
3549
|
|
|
3637
3550
|
function usePayoutDetailsCard(props) {
|
|
3638
3551
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
3639
|
-
const { data, loading } = index_module.
|
|
3552
|
+
const { data, loading } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
3640
3553
|
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;
|
|
3641
3554
|
function getPayoutDetailedStatusText(paymentDay) {
|
|
3642
3555
|
var _a;
|
|
@@ -3792,9 +3705,27 @@ const TableRow = class {
|
|
|
3792
3705
|
}
|
|
3793
3706
|
};
|
|
3794
3707
|
|
|
3708
|
+
/**
|
|
3709
|
+
* Util function for getting just the props with a certain prefix.
|
|
3710
|
+
* @param props Text props on stencil component
|
|
3711
|
+
* @param prefix Prefix denoting which group the text prop belongs to
|
|
3712
|
+
* @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
|
|
3713
|
+
*/
|
|
3714
|
+
function extractProps(props, prefix) {
|
|
3715
|
+
const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
|
|
3716
|
+
const formattedProps = keys.reduce((prev, k) => {
|
|
3717
|
+
const key = k.replace(prefix, "");
|
|
3718
|
+
return {
|
|
3719
|
+
...prev,
|
|
3720
|
+
[key]: props[k],
|
|
3721
|
+
};
|
|
3722
|
+
}, {});
|
|
3723
|
+
return formattedProps;
|
|
3724
|
+
}
|
|
3725
|
+
|
|
3795
3726
|
function getCurrentStep(user) {
|
|
3796
|
-
var _a
|
|
3797
|
-
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected)
|
|
3727
|
+
var _a;
|
|
3728
|
+
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected)) {
|
|
3798
3729
|
return "/1";
|
|
3799
3730
|
}
|
|
3800
3731
|
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, } = user.impactConnection.publisher;
|
|
@@ -3807,21 +3738,21 @@ function getCurrentStep(user) {
|
|
|
3807
3738
|
}
|
|
3808
3739
|
function useTaxAndCash() {
|
|
3809
3740
|
var _a, _b, _c, _d, _e;
|
|
3810
|
-
const host = index_module.
|
|
3811
|
-
const user = index_module.
|
|
3812
|
-
const locale = index_module.
|
|
3741
|
+
const host = index_module._();
|
|
3742
|
+
const user = index_module.Q();
|
|
3743
|
+
const locale = index_module.L();
|
|
3813
3744
|
// State for current step of form
|
|
3814
|
-
const [step, setStep] = index_module.
|
|
3745
|
+
const [step, setStep] = index_module.Cn({
|
|
3815
3746
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
3816
3747
|
initialValue: "/loading",
|
|
3817
3748
|
});
|
|
3818
3749
|
// State for when to hide steps, or override certain actions
|
|
3819
|
-
const [context, _setContext] = index_module.
|
|
3750
|
+
const [context, _setContext] = index_module.Cn({
|
|
3820
3751
|
namespace: TAX_FORM_CONTEXT_NAMESPACE,
|
|
3821
3752
|
initialValue: {},
|
|
3822
3753
|
});
|
|
3823
3754
|
// State to carry user form information into step 2
|
|
3824
|
-
const [userFormContext, _setUserFormContext] = index_module.
|
|
3755
|
+
const [userFormContext, _setUserFormContext] = index_module.Cn({
|
|
3825
3756
|
namespace: USER_FORM_CONTEXT_NAMESPACE,
|
|
3826
3757
|
initialValue: {
|
|
3827
3758
|
firstName: undefined,
|
|
@@ -3831,19 +3762,19 @@ function useTaxAndCash() {
|
|
|
3831
3762
|
currency: undefined,
|
|
3832
3763
|
},
|
|
3833
3764
|
});
|
|
3834
|
-
const [_currenciesContext, setCurrenciesContext] = index_module.
|
|
3765
|
+
const [_currenciesContext, setCurrenciesContext] = index_module.Cn({
|
|
3835
3766
|
namespace: CURRENCIES_NAMESPACE,
|
|
3836
3767
|
initialValue: [],
|
|
3837
3768
|
});
|
|
3838
|
-
const [_countriesContext, _setCountriesContext] = index_module.
|
|
3769
|
+
const [_countriesContext, _setCountriesContext] = index_module.Cn({
|
|
3839
3770
|
namespace: COUNTRIES_NAMESPACE,
|
|
3840
3771
|
initialValue: [],
|
|
3841
3772
|
});
|
|
3842
|
-
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.
|
|
3773
|
+
const [_sortedCountriesContext, setSortedCountriesContext] = index_module.Cn({
|
|
3843
3774
|
namespace: SORTED_COUNTRIES_NAMESPACE,
|
|
3844
3775
|
initialValue: [],
|
|
3845
3776
|
});
|
|
3846
|
-
const { data, errors } = index_module.
|
|
3777
|
+
const { data, errors } = index_module.Fn({
|
|
3847
3778
|
namespace: USER_QUERY_NAMESPACE,
|
|
3848
3779
|
query: GET_USER,
|
|
3849
3780
|
skip: !user,
|
|
@@ -3853,12 +3784,12 @@ function useTaxAndCash() {
|
|
|
3853
3784
|
});
|
|
3854
3785
|
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) ||
|
|
3855
3786
|
userFormContext.countryCode;
|
|
3856
|
-
index_module.
|
|
3787
|
+
index_module.Fn({
|
|
3857
3788
|
namespace: COUNTRIES_QUERY_NAMESPACE,
|
|
3858
3789
|
query: GET_COUNTRIES,
|
|
3859
3790
|
skip: !user,
|
|
3860
3791
|
});
|
|
3861
|
-
const { data: financeNetworkData, refetch } = index_module.
|
|
3792
|
+
const { data: financeNetworkData, refetch } = index_module.Fn({
|
|
3862
3793
|
namespace: FINANCE_NETWORK_SETTINGS_NAMESPACE,
|
|
3863
3794
|
query: GET_FINANCE_NETWORK_SETTINGS,
|
|
3864
3795
|
skip: !user,
|
|
@@ -3866,7 +3797,7 @@ function useTaxAndCash() {
|
|
|
3866
3797
|
filter: getFinanceNetworkFilter(),
|
|
3867
3798
|
},
|
|
3868
3799
|
});
|
|
3869
|
-
const { data: currenciesData } = index_module.
|
|
3800
|
+
const { data: currenciesData } = index_module.Fn({
|
|
3870
3801
|
namespace: CURRENCIES_QUERY_NAMESPACE,
|
|
3871
3802
|
query: GET_CURRENCIES,
|
|
3872
3803
|
skip: !user,
|
|
@@ -3947,7 +3878,7 @@ function useTaxAndCash() {
|
|
|
3947
3878
|
step,
|
|
3948
3879
|
setStep,
|
|
3949
3880
|
context,
|
|
3950
|
-
namespace: index_module
|
|
3881
|
+
namespace: index_module.Pn(TAX_CONTEXT_NAMESPACE),
|
|
3951
3882
|
loading: step === "/loading",
|
|
3952
3883
|
};
|
|
3953
3884
|
}
|
|
@@ -4688,14 +4619,14 @@ const TaxAndCashMonolith = class {
|
|
|
4688
4619
|
* @uiGroup Dashboard Properties
|
|
4689
4620
|
* @uiWidget textArea
|
|
4690
4621
|
*/
|
|
4691
|
-
this.
|
|
4622
|
+
this.dashboard_errorTitleText = "Your payout is on hold ";
|
|
4692
4623
|
/**
|
|
4693
4624
|
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
4694
4625
|
* @uiName Payout error message description
|
|
4695
4626
|
* @uiGroup Dashboard Properties
|
|
4696
4627
|
* @uiWidget textArea
|
|
4697
4628
|
*/
|
|
4698
|
-
this.
|
|
4629
|
+
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.";
|
|
4699
4630
|
/**
|
|
4700
4631
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
4701
4632
|
* @uiName Payout missing information subtext
|
|
@@ -4845,7 +4776,7 @@ const TaxAndCashMonolith = class {
|
|
|
4845
4776
|
getGeneralStepTextProps(prefix) {
|
|
4846
4777
|
const props = utils.getProps(this);
|
|
4847
4778
|
return {
|
|
4848
|
-
...extractProps
|
|
4779
|
+
...extractProps(props, prefix),
|
|
4849
4780
|
generalErrorTitle: props.generalErrorTitle,
|
|
4850
4781
|
generalErrorDescription: props.generalErrorDescription,
|
|
4851
4782
|
fieldRequiredError: props.fieldRequiredError,
|
|
@@ -4893,7 +4824,7 @@ const TaxAndCashMonolith = class {
|
|
|
4893
4824
|
}
|
|
4894
4825
|
};
|
|
4895
4826
|
function useDemoTaxAndCash(props) {
|
|
4896
|
-
const [step, setStep] = index_module.
|
|
4827
|
+
const [step, setStep] = index_module.Cn({
|
|
4897
4828
|
namespace: TAX_CONTEXT_NAMESPACE,
|
|
4898
4829
|
initialValue: "/1",
|
|
4899
4830
|
});
|
|
@@ -4910,12 +4841,6 @@ const style$5 = {
|
|
|
4910
4841
|
borderTop: "none",
|
|
4911
4842
|
},
|
|
4912
4843
|
},
|
|
4913
|
-
HoldAlertContainer: {
|
|
4914
|
-
"&::part(base)": {
|
|
4915
|
-
border: "none",
|
|
4916
|
-
backgroundColor: "transparent",
|
|
4917
|
-
},
|
|
4918
|
-
},
|
|
4919
4844
|
ExpiringSoonAlertContainer: {
|
|
4920
4845
|
"&::part(base)": {
|
|
4921
4846
|
backgroundColor: "var(--sl-color-yellow-100)",
|
|
@@ -5155,11 +5080,6 @@ const TaxAndCashDashboardView = (props) => {
|
|
|
5155
5080
|
index.h("strong", null, text.error.generalTitle),
|
|
5156
5081
|
index.h("br", null),
|
|
5157
5082
|
text.error.generalDescription)),
|
|
5158
|
-
states.hasHold && (index.h("sl-alert", { exportparts: "base: alert-base, icon:alert-icon", type: "warning", open: true, class: sheet$4.classes.HoldAlertContainer },
|
|
5159
|
-
index.h("sl-icon", { slot: "icon", name: "exclamation-triangle" }),
|
|
5160
|
-
index.h("strong", null, text.payoutHoldAlertHeader),
|
|
5161
|
-
index.h("br", null),
|
|
5162
|
-
text.payoutHoldAlertDescription)),
|
|
5163
5083
|
index.h("sl-dialog", { label: text.replaceTaxFormModalHeader, class: sheet$4.classes.Dialog, open: states.showNewFormDialog, "onSl-hide": callbacks.onNewFormCancel },
|
|
5164
5084
|
index.h("p", null, text.replaceTaxFormModalBodyText),
|
|
5165
5085
|
index.h("sl-button", { slot: "footer", type: "primary", class: sheet$4.classes.DialogButton, onClick: callbacks.onNewFormClick }, text.newFormButton),
|
|
@@ -5265,16 +5185,16 @@ function getIndirectTaxType(taxInformation) {
|
|
|
5265
5185
|
return "Indirect Tax";
|
|
5266
5186
|
}
|
|
5267
5187
|
const useTaxAndCashDashboard = (props) => {
|
|
5268
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l
|
|
5269
|
-
const setStep = index_module.
|
|
5270
|
-
const setContext = index_module.
|
|
5188
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
5189
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
5190
|
+
const setContext = index_module.wn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
5271
5191
|
const [showDialog, setShowDialog] = stencilHooks_module.useState(false);
|
|
5272
|
-
const locale = index_module.
|
|
5192
|
+
const locale = index_module.L();
|
|
5273
5193
|
stencilHooks_module.useEffect(() => {
|
|
5274
5194
|
// Clear override context once on submitted
|
|
5275
5195
|
setContext({});
|
|
5276
5196
|
}, []);
|
|
5277
|
-
const { data, loading, errors: userError, } = index_module.
|
|
5197
|
+
const { data, loading, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
5278
5198
|
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;
|
|
5279
5199
|
const documentType = publisher === null || publisher === void 0 ? void 0 : publisher.requiredTaxDocumentType;
|
|
5280
5200
|
const submissionDate = (_c = publisher === null || publisher === void 0 ? void 0 : publisher.currentTaxDocument) === null || _c === void 0 ? void 0 : _c.dateCreated;
|
|
@@ -5320,7 +5240,6 @@ const useTaxAndCashDashboard = (props) => {
|
|
|
5320
5240
|
loading,
|
|
5321
5241
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
5322
5242
|
showNewFormDialog: showDialog,
|
|
5323
|
-
hasHold: !!((_m = publisher === null || publisher === void 0 ? void 0 : publisher.payoutsAccount) === null || _m === void 0 ? void 0 : _m.hold),
|
|
5324
5243
|
},
|
|
5325
5244
|
callbacks: {
|
|
5326
5245
|
onClick: () => setShowDialog(true),
|
|
@@ -5498,13 +5417,13 @@ const TaxAndCashDashboard = class {
|
|
|
5498
5417
|
* @uiName Payout error message title
|
|
5499
5418
|
* @uiWidget textArea
|
|
5500
5419
|
*/
|
|
5501
|
-
this.
|
|
5420
|
+
this.errorTitleText = "Your payout is on hold ";
|
|
5502
5421
|
/**
|
|
5503
5422
|
* Part of the alert displayed at the top of the page when there’s been an issue preventing payouts.
|
|
5504
5423
|
* @uiName Payout error message description
|
|
5505
5424
|
* @uiWidget textArea
|
|
5506
5425
|
*/
|
|
5507
|
-
this.
|
|
5426
|
+
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.";
|
|
5508
5427
|
/**
|
|
5509
5428
|
* Text displayed for existing publishers that do not have saved banking information.
|
|
5510
5429
|
* @uiName Payout missing information subtext
|
|
@@ -5632,7 +5551,6 @@ function useDemoTaxAndCashDashboard(props) {
|
|
|
5632
5551
|
disabled: false,
|
|
5633
5552
|
loading: false,
|
|
5634
5553
|
showNewFormDialog: false,
|
|
5635
|
-
hasHold: false,
|
|
5636
5554
|
},
|
|
5637
5555
|
callbacks: {
|
|
5638
5556
|
onClick: () => console.debug("check step"),
|
|
@@ -6695,7 +6613,7 @@ const style$6 = {
|
|
|
6695
6613
|
},
|
|
6696
6614
|
PhoneInputsSection: {
|
|
6697
6615
|
display: "flex",
|
|
6698
|
-
alignItems: "flex-
|
|
6616
|
+
alignItems: "flex-start",
|
|
6699
6617
|
flexDirection: "column",
|
|
6700
6618
|
gap: "4px",
|
|
6701
6619
|
"& p": {
|
|
@@ -6706,7 +6624,7 @@ const style$6 = {
|
|
|
6706
6624
|
},
|
|
6707
6625
|
PhoneInputsContainer: {
|
|
6708
6626
|
display: "flex",
|
|
6709
|
-
alignItems: "flex-
|
|
6627
|
+
alignItems: "flex-start",
|
|
6710
6628
|
gap: "4px",
|
|
6711
6629
|
width: "100%",
|
|
6712
6630
|
"& #phoneNumber": {
|
|
@@ -6913,12 +6831,12 @@ function useUserInfoForm(props) {
|
|
|
6913
6831
|
const currencyRef = stencilHooks_module.useRef(undefined);
|
|
6914
6832
|
const phoneCountryRef = stencilHooks_module.useRef(undefined);
|
|
6915
6833
|
const formRef = stencilHooks_module.useRef(null);
|
|
6916
|
-
const context = index_module.
|
|
6917
|
-
const countries = index_module.
|
|
6918
|
-
const [step, setStep] = index_module.
|
|
6919
|
-
const [userFormContext, setUserFormContext] = index_module.
|
|
6920
|
-
const { data, loading, errors: userError, } = index_module.
|
|
6921
|
-
const _currencies = index_module.
|
|
6834
|
+
const context = index_module.In(TAX_FORM_CONTEXT_NAMESPACE);
|
|
6835
|
+
const countries = index_module.In(SORTED_COUNTRIES_NAMESPACE);
|
|
6836
|
+
const [step, setStep] = index_module.bn(TAX_CONTEXT_NAMESPACE);
|
|
6837
|
+
const [userFormContext, setUserFormContext] = index_module.bn(USER_FORM_CONTEXT_NAMESPACE);
|
|
6838
|
+
const { data, loading, errors: userError, } = index_module.Mn(USER_QUERY_NAMESPACE);
|
|
6839
|
+
const _currencies = index_module.In(CURRENCIES_NAMESPACE);
|
|
6922
6840
|
const currencies = stencilHooks_module.useMemo(() => [...(_currencies || [])].sort((a, b) => a.displayName.localeCompare(b.displayName)), [_currencies]);
|
|
6923
6841
|
const [countrySearch, setCountrySearch] = stencilHooks_module.useState("");
|
|
6924
6842
|
const [phoneCountrySearch, setPhoneCountrySearch] = stencilHooks_module.useState("");
|
|
@@ -6928,20 +6846,17 @@ function useUserInfoForm(props) {
|
|
|
6928
6846
|
const [filteredCurrencies, setFilteredCurrencies] = stencilHooks_module.useState(currencies || []);
|
|
6929
6847
|
const [formErrors, setErrors] = stencilHooks_module.useState({});
|
|
6930
6848
|
stencilHooks_module.useEffect(() => {
|
|
6931
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j
|
|
6849
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
6932
6850
|
const user = data === null || data === void 0 ? void 0 : data.user;
|
|
6933
6851
|
if (!user || step !== "/1")
|
|
6934
6852
|
return;
|
|
6935
6853
|
// If form already filled out, skip initialising it
|
|
6936
6854
|
if (sqmInvoiceTableView.objectIsFull(userFormContext))
|
|
6937
6855
|
return;
|
|
6938
|
-
|
|
6939
|
-
const email = ((_a = user.managedIdentity) === null || _a === void 0 ? void 0 : _a.emailVerified) ? user.managedIdentity.email
|
|
6940
|
-
: user.email;
|
|
6941
|
-
if (((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher) && ((_c = user.impactConnection) === null || _c === void 0 ? void 0 : _c.user)) {
|
|
6856
|
+
if (((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) && ((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.user)) {
|
|
6942
6857
|
// Initialise with partner information
|
|
6943
6858
|
setUserFormContext({
|
|
6944
|
-
email,
|
|
6859
|
+
email: user.email,
|
|
6945
6860
|
firstName: user.impactConnection.user.firstName,
|
|
6946
6861
|
lastName: user.impactConnection.user.lastName,
|
|
6947
6862
|
countryCode: user.impactConnection.publisher.countryCode,
|
|
@@ -6957,17 +6872,17 @@ function useUserInfoForm(props) {
|
|
|
6957
6872
|
else if (!(userFormContext === null || userFormContext === void 0 ? void 0 : userFormContext.email)) {
|
|
6958
6873
|
// Initialise with user information
|
|
6959
6874
|
setUserFormContext({
|
|
6960
|
-
email,
|
|
6875
|
+
email: user.email,
|
|
6961
6876
|
firstName: user.firstName,
|
|
6962
6877
|
lastName: user.lastName,
|
|
6963
6878
|
countryCode: user.countryCode || "US",
|
|
6964
|
-
currency: (
|
|
6965
|
-
phoneNumberCountryCode: ((
|
|
6966
|
-
phoneNumber: (
|
|
6967
|
-
address: (
|
|
6968
|
-
city: (
|
|
6969
|
-
state: (
|
|
6970
|
-
postalCode: (
|
|
6879
|
+
currency: (_c = user.customFields) === null || _c === void 0 ? void 0 : _c.currency,
|
|
6880
|
+
phoneNumberCountryCode: ((_d = user.customFields) === null || _d === void 0 ? void 0 : _d.phoneNumberCountryCode) || "US",
|
|
6881
|
+
phoneNumber: (_e = user.customFields) === null || _e === void 0 ? void 0 : _e.phoneNumber,
|
|
6882
|
+
address: (_f = user.customFields) === null || _f === void 0 ? void 0 : _f.address,
|
|
6883
|
+
city: (_g = user.customFields) === null || _g === void 0 ? void 0 : _g.city,
|
|
6884
|
+
state: (_h = user.customFields) === null || _h === void 0 ? void 0 : _h.state,
|
|
6885
|
+
postalCode: (_j = user.customFields) === null || _j === void 0 ? void 0 : _j.postalCode,
|
|
6971
6886
|
});
|
|
6972
6887
|
}
|
|
6973
6888
|
}, [data, step, userFormContext]);
|
|
@@ -7282,7 +7197,7 @@ const TaxForm = class {
|
|
|
7282
7197
|
}
|
|
7283
7198
|
};
|
|
7284
7199
|
function useDemoUserInfoForm(props) {
|
|
7285
|
-
const setStep = index_module.
|
|
7200
|
+
const setStep = index_module.wn(TAX_CONTEXT_NAMESPACE);
|
|
7286
7201
|
return cjs.cjs({
|
|
7287
7202
|
setStep,
|
|
7288
7203
|
onSubmit: () => {
|