@saasquatch/mint-components 2.1.9-21 → 2.1.9-22
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-2b3f51be.js → ShadowViewAddon-cd349587.js} +410 -24
- package/dist/cjs/{data-6b5095f8.js → data-8c8a08f6.js} +91 -2
- package/dist/cjs/extractProps-e9c55ba8.js +35 -0
- package/dist/cjs/{global-0f8b1267.js → global-b7b1b8fe.js} +3126 -3177
- package/dist/cjs/{index.module-42d413d9.js → index.module-f8c8495f.js} +149 -154
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-69bde9ee.js → re-render-72a0ef45.js} +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +99 -484
- package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_45.cjs.entry.js} +230 -426
- package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqm-code-verification.cjs.entry.js +8 -7
- package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +418 -0
- package/dist/cjs/sqm-empty_4.cjs.entry.js +2 -2
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +1 -1
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-lead-checkbox-field-view-d90f8941.js → sqm-lead-checkbox-field-view-0af2a157.js} +1 -1
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-lead-input-field-view-818d9e9a.js → sqm-lead-input-field-view-0cd7ebdb.js} +1 -1
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-navigation-sidebar-item-view-20693e59.js → sqm-navigation-sidebar-item-view-49b152dd.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.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 +1 -1
- package/dist/cjs/{sqm-portal-email-verification-view-60f8e0a7.js → sqm-portal-email-verification-view-abb773a7.js} +2 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-2bfd7afd.js → sqm-portal-profile-view-3515e1e5.js} +2 -2
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-registration-form-view-fd48f1d3.js → sqm-portal-registration-form-view-a45f7a52.js} +1 -1
- package/dist/cjs/{sqm-portal-reset-password-view-d90d77f9.js → sqm-portal-reset-password-view-a767b044.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-verify-email-view-b31638f8.js → sqm-portal-verify-email-view-717d0633.js} +2 -2
- package/dist/cjs/sqm-qr-code.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +6 -6
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +208 -259
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-text-span-view-8a32dd8c.js → sqm-text-span-view-b9e10f5d.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-user-info-form-view-01bf2f41.js → sqm-user-info-form-view-53306f6e.js} +40 -33
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +214 -0
- package/dist/cjs/{useChildElements-89bc50a9.js → useChildElements-041127d7.js} +1 -1
- package/dist/cjs/{useInstantAccessRegistration-651aa95b.js → useInstantAccessRegistration-2398df36.js} +2 -2
- package/dist/cjs/{useLeadFormState-76d3b511.js → useLeadFormState-b4c2ab5b.js} +2 -2
- package/dist/cjs/{usePayoutStatus-cf050a03.js → usePayoutStatus-0192fccd.js} +6 -4
- package/dist/cjs/{usePortalRegistrationForm-31822dc4.js → usePortalRegistrationForm-23ee2d62.js} +2 -2
- package/dist/cjs/{useReferralCodes-89c2b972.js → useReferralCodes-0f7948af.js} +1 -1
- package/dist/cjs/{useReferralTable-d3ddfd05.js → useReferralTable-6e9de0d5.js} +3 -3
- package/dist/cjs/{useRegistrationFormState-a223f597.js → useRegistrationFormState-4fe5b770.js} +1 -1
- package/dist/cjs/{useVerificationEmail-994bc32f.js → useVerificationEmail-5d19aa99.js} +1 -1
- package/dist/cjs/{utilities-096934ea.js → utilities-fcdb9504.js} +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +1 -0
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +27 -1
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +132 -11
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +192 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +685 -27
- package/dist/collection/components/sqm-share-link/useShareLink.js +210 -14
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -4
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +4 -3
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +2 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +11 -510
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +5 -20
- package/dist/collection/components/tax-and-cash/data.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +37 -75
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +13 -688
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -95
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +11 -49
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +6 -6
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +0 -4
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +17 -9
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +16 -34
- package/dist/esm/{ShadowViewAddon-78b791d2.js → ShadowViewAddon-ec5f917e.js} +411 -26
- package/dist/esm/{data-33c16dff.js → data-12e6aae1.js} +85 -3
- package/dist/esm/extractProps-54064fb0.js +32 -0
- package/dist/esm/{global-39f55ec2.js → global-96c14d63.js} +3126 -3177
- package/dist/esm/{index.module-cede12c6.js → index.module-b23fdad8.js} +150 -153
- package/dist/esm/{keys-db1897ae.js → keys-406491dc.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-7a0c7976.js → re-render-f30aeb6b.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +89 -474
- package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_45.entry.js} +225 -420
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +9 -8
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +414 -0
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/{sqm-lead-checkbox-field-view-7cee2b4e.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-11a4f9a9.js → sqm-lead-input-field-view-d1b91650.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +4 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-48e7e0d3.js → sqm-navigation-sidebar-item-view-b3beac5a.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-33f5c108.js → sqm-portal-email-verification-view-04528277.js} +2 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +8 -8
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-88fd6a93.js → sqm-portal-profile-view-b5ea620f.js} +2 -2
- package/dist/esm/sqm-portal-profile.entry.js +5 -5
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
- package/dist/esm/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
- package/dist/esm/{sqm-portal-verify-email-view-0b70c1b1.js → sqm-portal-verify-email-view-c61536b7.js} +2 -2
- package/dist/esm/sqm-qr-code.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +6 -6
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
- package/dist/esm/sqm-stencilbook.entry.js +174 -225
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{sqm-user-info-form-view-365cef98.js → sqm-user-info-form-view-19d81a2b.js} +19 -12
- package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
- package/dist/esm/sqm-widget-verification.entry.js +210 -0
- package/dist/esm/{useChildElements-c26d7347.js → useChildElements-9bccfb72.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-e2392f42.js → useInstantAccessRegistration-69fefed0.js} +2 -2
- package/dist/esm/{useLeadFormState-9099c8d4.js → useLeadFormState-dd4e8b08.js} +2 -2
- package/dist/esm/{usePayoutStatus-fa504d49.js → usePayoutStatus-46c0c289.js} +4 -3
- package/dist/esm/{usePortalRegistrationForm-5844032a.js → usePortalRegistrationForm-62de6fb1.js} +2 -2
- package/dist/esm/{useReferralCodes-3cde72d4.js → useReferralCodes-52ca720f.js} +1 -1
- package/dist/esm/{useReferralTable-35e6d4c1.js → useReferralTable-92af4133.js} +3 -3
- package/dist/esm/{useRegistrationFormState-1813bdef.js → useRegistrationFormState-2c090c38.js} +1 -1
- package/dist/esm/{useVerificationEmail-cb3d51e3.js → useVerificationEmail-c13c3b51.js} +1 -1
- package/dist/esm/{utilities-c9e730ed.js → utilities-77b1e0cc.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-ec5f917e.js +1 -0
- package/dist/esm-es5/data-12e6aae1.js +1 -0
- package/dist/esm-es5/extractProps-54064fb0.js +1 -0
- package/dist/esm-es5/global-96c14d63.js +271 -0
- package/dist/esm-es5/index.module-b23fdad8.js +1 -0
- package/dist/esm-es5/{keys-db1897ae.js → keys-406491dc.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-7a0c7976.js → re-render-f30aeb6b.js} +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -0
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -0
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.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-lead-checkbox-field-view-7cee2b4e.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-11a4f9a9.js → sqm-lead-input-field-view-d1b91650.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-48e7e0d3.js → sqm-navigation-sidebar-item-view-b3beac5a.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.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-33f5c108.js → sqm-portal-email-verification-view-04528277.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-88fd6a93.js → sqm-portal-profile-view-b5ea620f.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-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-0b70c1b1.js → sqm-portal-verify-email-view-c61536b7.js} +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-19d81a2b.js +1 -0
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
- package/dist/esm-es5/{useChildElements-c26d7347.js → useChildElements-9bccfb72.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-e2392f42.js → useInstantAccessRegistration-69fefed0.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-9099c8d4.js → useLeadFormState-dd4e8b08.js} +1 -1
- package/dist/esm-es5/{usePayoutStatus-fa504d49.js → usePayoutStatus-46c0c289.js} +2 -2
- package/dist/esm-es5/{usePortalRegistrationForm-5844032a.js → usePortalRegistrationForm-62de6fb1.js} +1 -1
- package/dist/esm-es5/{useReferralCodes-3cde72d4.js → useReferralCodes-52ca720f.js} +1 -1
- package/dist/esm-es5/{useReferralTable-35e6d4c1.js → useReferralTable-92af4133.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-1813bdef.js → useRegistrationFormState-2c090c38.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-cb3d51e3.js → useVerificationEmail-c13c3b51.js} +1 -1
- package/dist/esm-es5/{utilities-c9e730ed.js → utilities-77b1e0cc.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-d01949f7.system.entry.js → p-00b235c5.system.entry.js} +1 -1
- package/dist/mint-components/{p-62212b9a.entry.js → p-013564b3.entry.js} +1 -1
- package/dist/mint-components/p-02499e08.entry.js +1 -0
- package/dist/mint-components/{p-998c989a.system.entry.js → p-027fc3be.system.entry.js} +1 -1
- package/dist/mint-components/{p-32d078a3.js → p-035d9b65.js} +1 -1
- package/dist/mint-components/{p-e4dbca9a.system.js → p-036a2617.system.js} +1 -1
- package/dist/mint-components/p-0382993f.system.entry.js +1 -0
- package/dist/mint-components/{p-886fb141.entry.js → p-058aefe1.entry.js} +1 -1
- package/dist/mint-components/p-0706cf9e.system.entry.js +1 -0
- package/dist/mint-components/p-0797a946.js +1 -0
- package/dist/mint-components/{p-f11d29fd.entry.js → p-09348341.entry.js} +1 -1
- package/dist/mint-components/{p-991f60fc.entry.js → p-09f7aacd.entry.js} +2 -2
- package/dist/mint-components/{p-8ecc8875.js → p-0c0d4065.js} +5 -6
- package/dist/mint-components/{p-8f9c1387.js → p-0d83907e.js} +1 -1
- package/dist/mint-components/p-1021a49f.system.entry.js +1 -0
- package/dist/mint-components/{p-2d3a12f2.entry.js → p-13292317.entry.js} +2 -2
- package/dist/mint-components/{p-731c4d33.entry.js → p-13d1b10d.entry.js} +1 -1
- package/dist/mint-components/{p-a86ce218.system.js → p-172675ca.system.js} +1 -1
- package/dist/mint-components/{p-d355336b.system.js → p-19c441b2.system.js} +1 -1
- package/dist/mint-components/{p-1d49dddc.entry.js → p-1d92c169.entry.js} +1 -1
- package/dist/mint-components/{p-86381dc7.system.js → p-205cfdcd.system.js} +1 -1
- package/dist/mint-components/{p-4723526d.js → p-2668335b.js} +1 -1
- package/dist/mint-components/{p-45475cf9.system.entry.js → p-2b4af8e8.system.entry.js} +1 -1
- package/dist/mint-components/{p-e9e05970.system.entry.js → p-2d5c2bd4.system.entry.js} +1 -1
- package/dist/mint-components/p-30c1ef36.system.js +1 -0
- package/dist/mint-components/{p-bcadd021.js → p-3286ef38.js} +1 -1
- package/dist/mint-components/{p-0d75a207.js → p-3366b81e.js} +2 -2
- package/dist/mint-components/p-38c7775a.js +1 -0
- package/dist/mint-components/p-39126430.system.entry.js +1 -0
- package/dist/mint-components/p-3adbfd0b.system.js +6 -0
- package/dist/mint-components/p-3af3e2c1.entry.js +25 -0
- package/dist/mint-components/{p-160828b4.entry.js → p-3bc62ca6.entry.js} +1 -1
- package/dist/mint-components/{p-9d6984e7.entry.js → p-40bad95a.entry.js} +2 -2
- package/dist/mint-components/{p-00463c83.system.js → p-43c31fd5.system.js} +1 -1
- package/dist/mint-components/p-468dd5dd.entry.js +273 -0
- package/dist/mint-components/p-4da5a3fe.system.entry.js +1 -0
- package/dist/mint-components/{p-608da224.entry.js → p-52674798.entry.js} +1 -1
- package/dist/mint-components/p-5492dd51.system.entry.js +1 -0
- package/dist/mint-components/p-57dd28bd.system.js +1 -0
- package/dist/mint-components/{p-c84a2512.system.js → p-5b1d2866.system.js} +1 -1
- package/dist/mint-components/p-5b66d206.system.js +1 -0
- package/dist/mint-components/{p-5c9d030a.system.entry.js → p-5b871e38.system.entry.js} +1 -1
- package/dist/mint-components/p-5bc5c61e.entry.js +1 -0
- package/dist/mint-components/{p-b5fed7c6.entry.js → p-5c4ba8a0.entry.js} +1 -1
- package/dist/mint-components/{p-fb4ab5ba.system.entry.js → p-5ce78407.system.entry.js} +1 -1
- package/dist/mint-components/{p-9c1b0c8b.entry.js → p-61897e72.entry.js} +1 -1
- package/dist/mint-components/{p-52748a87.system.entry.js → p-626b31cb.system.entry.js} +1 -1
- package/dist/mint-components/{p-092db51a.js → p-642f2c89.js} +1 -1
- package/dist/mint-components/{p-f4a57aed.entry.js → p-653db72e.entry.js} +1 -1
- package/dist/mint-components/{p-88c9cc1b.entry.js → p-6668f9f0.entry.js} +1 -1
- package/dist/mint-components/{p-f368f04a.system.js → p-686dd5eb.system.js} +1 -1
- package/dist/mint-components/p-6c4ad51a.js +1 -0
- package/dist/mint-components/p-7265bbcb.system.js +271 -0
- package/dist/mint-components/p-738dce27.system.entry.js +1 -0
- package/dist/mint-components/{p-379cb9f1.system.js → p-7562cd98.system.js} +1 -1
- package/dist/mint-components/{p-7547180f.system.js → p-77b9cde8.system.js} +1 -1
- package/dist/mint-components/{p-96e4e6a4.entry.js → p-77fa2383.entry.js} +1 -1
- package/dist/mint-components/{p-d5a1c979.system.entry.js → p-782af7ae.system.entry.js} +1 -1
- package/dist/mint-components/{p-55627a5c.entry.js → p-7939e4af.entry.js} +1 -1
- package/dist/mint-components/{p-9b33e2a7.system.js → p-7b59e13c.system.js} +1 -1
- package/dist/mint-components/p-7efb8782.system.js +1 -0
- package/dist/mint-components/{p-60085f20.system.entry.js → p-80e116ec.system.entry.js} +1 -1
- package/dist/mint-components/{p-370e0d75.js → p-832aea99.js} +1 -1
- package/dist/mint-components/{p-36395228.system.js → p-85721089.system.js} +1 -1
- package/dist/mint-components/{p-28e0062c.system.js → p-8583ce0c.system.js} +1 -1
- package/dist/mint-components/{p-71561bb2.system.entry.js → p-8899ff38.system.entry.js} +1 -1
- package/dist/mint-components/p-892797eb.system.entry.js +1 -0
- package/dist/mint-components/{p-567a5ded.js → p-8962e023.js} +1 -1
- package/dist/mint-components/{p-3461a8cb.entry.js → p-8f2d03c7.entry.js} +1 -1
- package/dist/mint-components/{p-357040e6.system.entry.js → p-90833864.system.entry.js} +1 -1
- package/dist/mint-components/p-91a96e98.entry.js +1 -0
- package/dist/mint-components/{p-7a08d288.system.entry.js → p-9390586b.system.entry.js} +1 -1
- package/dist/mint-components/{p-0c43b6ff.entry.js → p-95510f27.entry.js} +1 -1
- package/dist/mint-components/{p-9e43f1eb.entry.js → p-982d1f6f.entry.js} +2 -2
- package/dist/mint-components/{p-77117f6c.system.js → p-a0c5631b.system.js} +1 -1
- package/dist/mint-components/{p-df88dcaa.system.js → p-a4825ec2.system.js} +1 -1
- package/dist/mint-components/{p-095b7128.js → p-a4f8abad.js} +1 -1
- package/dist/mint-components/{p-21e7079a.system.entry.js → p-a96c9bbb.system.entry.js} +1 -1
- package/dist/mint-components/{p-dbdb2a46.system.entry.js → p-aefc6c4f.system.entry.js} +1 -1
- package/dist/mint-components/{p-86a70151.entry.js → p-b2b85238.entry.js} +1 -1
- package/dist/mint-components/p-b395470f.entry.js +16 -0
- package/dist/mint-components/{p-45e2a83a.js → p-b3ad957c.js} +1 -1
- package/dist/mint-components/{p-1b0cbbae.entry.js → p-b66f45d1.entry.js} +1 -1
- package/dist/mint-components/{p-691d34f1.system.entry.js → p-b96e90a2.system.entry.js} +1 -1
- package/dist/mint-components/{p-3c88d2ed.js → p-bab4929e.js} +2 -2
- package/dist/mint-components/p-bba16a46.system.entry.js +1 -0
- package/dist/mint-components/{p-3c555674.js → p-bc386a7b.js} +1 -1
- package/dist/mint-components/{p-a7f72a66.js → p-bee4af5d.js} +1 -1
- package/dist/mint-components/{p-16deb1a9.system.entry.js → p-c30d0049.system.entry.js} +1 -1
- package/dist/mint-components/p-c459bea0.js +499 -0
- package/dist/mint-components/{p-62e1c8b2.system.entry.js → p-c45a929a.system.entry.js} +1 -1
- package/dist/mint-components/{p-50d959bd.js → p-c813ec64.js} +1 -1
- package/dist/mint-components/{p-5dc9e95b.entry.js → p-c8a8d231.entry.js} +2 -2
- package/dist/mint-components/{p-9bd53e4d.system.entry.js → p-c8bcbf8b.system.entry.js} +1 -1
- package/dist/mint-components/p-ca098be1.system.js +1 -0
- package/dist/mint-components/p-ce394b99.entry.js +9 -0
- package/dist/mint-components/{p-95aaf35a.system.entry.js → p-d005df28.system.entry.js} +1 -1
- package/dist/mint-components/p-d0993bb9.js +1 -0
- package/dist/mint-components/{p-7e36a1ff.js → p-d18dedd4.js} +1 -1
- package/dist/mint-components/{p-e1292288.system.entry.js → p-d3b1ab20.system.entry.js} +1 -1
- package/dist/mint-components/p-d4f332a7.entry.js +106 -0
- package/dist/mint-components/{p-6b1a6b0c.system.js → p-d55c50af.system.js} +1 -1
- package/dist/mint-components/{p-b1b8e629.system.js → p-d6193876.system.js} +1 -1
- package/dist/mint-components/{p-37658fec.entry.js → p-db0a2afd.entry.js} +1 -1
- package/dist/mint-components/p-de0d6fd7.js +49 -0
- package/dist/mint-components/{p-ce11858c.js → p-e00ec007.js} +1 -1
- package/dist/mint-components/{p-b5c0bad5.system.entry.js → p-e12754f5.system.entry.js} +1 -1
- package/dist/mint-components/{p-3218bb1d.entry.js → p-e506bf7f.entry.js} +1 -1
- package/dist/mint-components/p-e55aafe9.system.js +1 -0
- package/dist/mint-components/{p-f972e5c9.entry.js → p-e5ea43b1.entry.js} +2 -2
- package/dist/mint-components/{p-8474aa63.js → p-e6240c72.js} +1 -1
- package/dist/mint-components/{p-857a2d77.js → p-e84b874c.js} +1 -1
- package/dist/mint-components/p-ea03e50e.system.js +1 -0
- package/dist/mint-components/{p-3181e54a.entry.js → p-ec0b649a.entry.js} +1 -1
- package/dist/mint-components/{p-2f4d8ab8.system.entry.js → p-f1374258.system.entry.js} +1 -1
- package/dist/mint-components/{p-6194855b.system.entry.js → p-f39cf252.system.entry.js} +1 -1
- package/dist/mint-components/{p-c8e45671.system.entry.js → p-f4e36adf.system.entry.js} +1 -1
- package/dist/mint-components/{p-140e6a15.system.js → p-f55ecf35.system.js} +1 -1
- package/dist/mint-components/{p-3c333076.js → p-f581aac7.js} +1 -1
- package/dist/mint-components/{p-19293c16.entry.js → p-f6528f8a.entry.js} +1 -1
- package/dist/mint-components/{p-247cfbdc.system.entry.js → p-f7ca4cc4.system.entry.js} +1 -1
- package/dist/mint-components/{p-0fec43e8.system.js → p-f8026ed6.system.js} +1 -1
- package/dist/mint-components/{p-438f6702.js → p-f8a09b0f.js} +152 -152
- package/dist/mint-components/{p-3756d0d1.system.entry.js → p-fc284f91.system.entry.js} +1 -1
- package/dist/mint-components/{p-6a4496b3.system.entry.js → p-fe1d3cf8.system.entry.js} +1 -1
- package/dist/mint-components/p-fe70e20c.entry.js +1 -0
- package/dist/mint-components/p-ff118a19.system.js +1 -0
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +9 -0
- package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +37 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +140 -2
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +27 -4
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -78
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +0 -2
- package/dist/types/components/tax-and-cash/data.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +0 -165
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +0 -7
- package/dist/types/components.d.ts +261 -616
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/docs/stats.json +122783 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/eventKeys-7af4df4d.js +0 -5
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +0 -894
- package/dist/cjs/sqm-partner-info-modal-view-464c52c9.js +0 -135
- package/dist/cjs/sqm-partner-info-modal.cjs.entry.js +0 -493
- package/dist/cjs/utils-a8e0bd9b.js +0 -93
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +0 -150
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +0 -129
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +0 -670
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +0 -286
- package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +0 -16
- package/dist/esm/eventKeys-f76b6a03.js +0 -3
- package/dist/esm/parseStates-ed75e224.js +0 -14
- package/dist/esm/sqm-email-verification_2.entry.js +0 -889
- package/dist/esm/sqm-partner-info-modal-view-a6324934.js +0 -132
- package/dist/esm/sqm-partner-info-modal.entry.js +0 -489
- package/dist/esm/utils-8267d3d8.js +0 -85
- package/dist/esm-es5/ShadowViewAddon-78b791d2.js +0 -1
- package/dist/esm-es5/data-33c16dff.js +0 -1
- package/dist/esm-es5/eventKeys-f76b6a03.js +0 -1
- package/dist/esm-es5/global-39f55ec2.js +0 -285
- package/dist/esm-es5/index.module-cede12c6.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-a6324934.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal.entry.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-365cef98.js +0 -1
- package/dist/esm-es5/utils-8267d3d8.js +0 -1
- package/dist/mint-components/p-037c1a4f.system.entry.js +0 -1
- package/dist/mint-components/p-038d0b8f.entry.js +0 -133
- package/dist/mint-components/p-0553e659.js +0 -463
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-1c413a06.system.js +0 -1
- package/dist/mint-components/p-1e35f151.system.js +0 -1
- package/dist/mint-components/p-28ed2ae9.js +0 -1
- package/dist/mint-components/p-28fe7357.system.entry.js +0 -1
- package/dist/mint-components/p-38dc2f60.entry.js +0 -1
- package/dist/mint-components/p-39840341.js +0 -1
- package/dist/mint-components/p-52eca331.js +0 -1
- package/dist/mint-components/p-5e26014d.system.js +0 -1
- package/dist/mint-components/p-63c299f1.system.js +0 -1
- package/dist/mint-components/p-64041ee1.entry.js +0 -291
- package/dist/mint-components/p-64f56cc9.system.js +0 -285
- package/dist/mint-components/p-6530c3f1.entry.js +0 -9
- package/dist/mint-components/p-6f8dde97.system.js +0 -1
- package/dist/mint-components/p-70e34ae1.system.js +0 -6
- package/dist/mint-components/p-7d5956ec.system.entry.js +0 -1
- package/dist/mint-components/p-8b258a3e.system.js +0 -1
- package/dist/mint-components/p-996eb820.entry.js +0 -1
- package/dist/mint-components/p-9b790948.system.entry.js +0 -1
- package/dist/mint-components/p-a0986077.system.entry.js +0 -1
- package/dist/mint-components/p-a1e1c42a.js +0 -1
- package/dist/mint-components/p-a2db4345.system.js +0 -1
- package/dist/mint-components/p-a8891ebd.js +0 -1
- package/dist/mint-components/p-a8ecdc44.system.js +0 -1
- package/dist/mint-components/p-b2a99637.system.js +0 -1
- package/dist/mint-components/p-b2bde2f5.entry.js +0 -1
- package/dist/mint-components/p-b451970a.system.entry.js +0 -1
- package/dist/mint-components/p-b6ac3080.system.entry.js +0 -1
- package/dist/mint-components/p-bc4b2728.entry.js +0 -122
- package/dist/mint-components/p-c7535e70.system.entry.js +0 -1
- package/dist/mint-components/p-d20188db.js +0 -1
- package/dist/mint-components/p-d6714617.entry.js +0 -1
- package/dist/mint-components/p-e95402dc.js +0 -49
- package/dist/mint-components/p-ee0f1cf1.system.js +0 -1
- package/dist/mint-components/sqm-partner-info-modal.entry.js +0 -489
- package/dist/mint-components/sqm-partner-info-modal.system.entry.js +0 -1
- package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +0 -12
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +0 -51
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +0 -122
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +0 -17
- package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +0 -8
- package/shoelace/assets/icons/twitter-x.svg +0 -4
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import{k as n,f as t}from"./p-a7fc1e02.js";import{d as o,J as e,$ as i,g as r,w as u}from"./p-d20188db.js";import{T as d}from"./p-28ed2ae9.js";var c=function(n){for(var t=Array(n.length),o=0;o<n.length;++o)t[o]=n[o];return t},a=function(n){return Array.isArray(n)?n:[n]},f=function(n,t){var o=n.tabIndex-t.tabIndex;if(o){if(!n.tabIndex)return 1;if(!t.tabIndex)return-1}return o||n.index-t.index},l=function(n,t,o){return c(n).map((function(n,t){return{node:n,index:t,tabIndex:o&&-1===n.tabIndex?(n.dataset||{}).focusGuard?0:-1:n.tabIndex}})).filter((function(n){return!t||n.tabIndex>=0})).sort(f)};const s=["button:enabled:not([readonly])","select:enabled:not([readonly])","textarea:enabled:not([readonly])","input:enabled:not([readonly])","a[href]","area[href]","iframe","object","embed","[tabindex]","[contenteditable]","[autofocus]"];var v=s.join(","),E=v+", [data-focus-guard]",m=function(n,t){return n.reduce((function(n,o){return n.concat(c(o.querySelectorAll(t?E:v)),o.parentNode?c(o.parentNode.querySelectorAll(s.join(","))).filter((function(n){return n===o})):[])}),[])},I=function n(t){return!t||t===document||t.nodeType===Node.DOCUMENT_NODE||!((o=window.getComputedStyle(t,null))&&o.getPropertyValue&&("none"===o.getPropertyValue("display")||"hidden"===o.getPropertyValue("visibility")))&&n(t.parentNode);var o},p=function n(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return o.push(t),t.parentNode&&n(t.parentNode,o),o},_=function(n,t){for(var o=p(n),e=p(t),i=0;i<o.length;i+=1){var r=o[i];if(e.indexOf(r)>=0)return r}return!1},w=function(n){return c(n).filter((function(n){return I(n)})).filter((function(n){return function(n){return!(("INPUT"===n.tagName||"BUTTON"===n.tagName)&&("hidden"===n.type||n.disabled))}(n)}))},R=function(n,t){return l(w(m(n,t)),!0,t)},h=function(n){return"INPUT"===n.tagName&&"radio"===n.type},A=function(n,t){return t.filter(h).filter((function(t){return t.name===n.name})).filter((function(n){return n.checked}))[0]||n},N=function(n,t){return n.length>1&&h(n[t])&&n[t].name?n.indexOf(A(n[t],n)):t},T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},b=function n(t){for(var o=t.length,e=0;e<o;e+=1)for(var i=function(o){if(e!==o&&t[e].contains(t[o]))return{v:n(t.filter((function(n){return n!==t[o]})))}},r=0;r<o;r+=1){var u=i(r);if("object"===(void 0===u?"undefined":T(u)))return u.v}return t},g=function n(t){return t.parentNode?n(t.parentNode):t},D=function(n){return a(n).filter(Boolean).reduce((function(n,t){var o=t.getAttribute("data-focus-lock");return n.push.apply(n,o?b(c(g(t).querySelectorAll('[data-focus-lock="'+o+'"]:not([data-focus-lock-disabled="disabled"])'))):[t]),n}),[])},y=function(n){return n&&n.dataset&&n.dataset.focusGuard},F=function(n){return!y(n)},S=function(n,t){var o=document&&document.activeElement,e=D(n).filter(F),i=function(n,t,o){var e=a(n),i=a(t),r=e[0],u=null;return i.filter(Boolean).forEach((function(n){u=_(u||n,n)||u,o.filter(Boolean).forEach((function(n){var t=_(r,n);t&&(u=!u||t.contains(u)?t:_(t,u))}))})),u}(o||n,n,e),r=R(e).filter((function(n){return F(n.node)}));if(r[0]||(r=(u=e,l(w(m(u)),!1)).filter((function(n){return F(n.node)})))[0]){var u,d,f,s,v,E=R([i]).map((function(n){return n.node})),I=(d=E,f=r,s=new Map,f.forEach((function(n){return s.set(n.node,n)})),d.map((function(n){return s.get(n)})).filter(Boolean)),p=I.map((function(n){return n.node})),T=function(n,t,o,e,i){var r,u=n.length,d=n[0],c=n[u-1],a=y(o);if(!(n.indexOf(o)>=0)){var f=t.indexOf(o),l=t.indexOf(e||f),s=n.indexOf(e),v=f-l,E=t.indexOf(d),m=t.indexOf(c),I=N(n,0),p=N(n,u-1);return-1===f||-1===s?n.indexOf((r=i&&i.length?i:n)[0]&&r.length>1&&h(r[0])&&r[0].name?A(r[0],r):r[0]):!v&&s>=0?s:f<=E&&a&&Math.abs(v)>1?p:f>=E&&a&&Math.abs(v)>1?I:v&&Math.abs(v)>1?s:f<=E?p:f>m?I:v?Math.abs(v)>1?s:(u+s+v)%u:void 0}}(p,E,o,t,p.filter((v=function(n){return n.reduce((function(n,t){return n.concat(function(n){return w((t=n.querySelectorAll("[data-autofocus-inside]"),c(t).map((function(n){return m([n])})).reduce((function(n,t){return n.concat(t)}),[])));var t}(t))}),[])}(e),function(n){return!!n.autofocus||n.dataset&&!!n.dataset.autofocus||v.indexOf(n)>=0})));return void 0===T?T:I[T]}},C=function(n){return n===document.activeElement},O=0,V=!1,M=0,L=null,H=function(){var n,t,o=!1;if(M){var e=M;document&&document.activeElement===document.body||document&&c(document.querySelectorAll("[data-no-focus-lock]")).some((function(n){return n.contains(document.activeElement)}))||(e&&(n=e,!(!(!(t=document&&document.activeElement)||t.dataset&&t.dataset.focusGuard)&&D(n).reduce((function(n,o){return n||o.contains(t)||function(n){return t=c(n.querySelectorAll("iframe")),o=C,!!t.filter((function(n){return n===o}))[0];var t,o}(o)}),!1)))&&(o=function(n){var t,o=S(n,L);if(!V&&o){if(O>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),V=!0,void setTimeout((function(){V=!1}),1);O++,(t=o.node).focus(),t.contentWindow&&t.contentWindow.focus(),O--}}(e)),L=document.activeElement)}return o},U=[],x=function(n){return t=U.filter((function(n){return n})).slice(-1)[0],M=t,!!void(t&&H())&&(n&&n.preventDefault(),!0);var t},k=function(n){0===U.length&&document.addEventListener("focusin",x),U.indexOf(n)<0&&(U.push(n),x())},P=function(){return"undefined"==typeof window},W=function(n){n=n||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(n);return{ios:!t&&/(iPhone\sOS)\s([\d_]+)/.test(n)||t,android:/(Android);?[\s/]+([\d.]+)?/.test(n)}},B=0,Y=0,j=0,K=null,q=!1,Q=[],$=function(n){if(P())return!1;if(!n)throw new Error("options must be provided");var t=!1,o={get passive(){t=!0}},e=function(){},i="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(i,e,o),window.removeEventListener(i,e,o);var r=n.capture;return t?n:void 0!==r&&r}({passive:!1}),G=!P()&&"scrollBehavior"in document.documentElement.style,z=function(n){n.cancelable&&n.preventDefault()},X=function(n){var t,o,e,i,r;P()||(W().ios?(n&&(Array.isArray(n)?n:[n]).forEach((function(n){n&&-1===Q.indexOf(n)&&(n.ontouchstart=function(n){Y=n.targetTouches[0].clientY,j=n.targetTouches[0].clientX},n.ontouchmove=function(t){1===t.targetTouches.length&&function(n,t){if(t){var o=t.scrollTop,e=t.scrollLeft,i=t.scrollWidth,r=t.scrollHeight,u=t.clientWidth,d=t.clientHeight,c=n.targetTouches[0].clientX-j,a=n.targetTouches[0].clientY-Y,f=Math.abs(a)>Math.abs(c);if(f&&(a>0&&0===o||a<0&&o+d+1>=r)||!f&&(c>0&&0===e||c<0&&e+u+1>=i))return z(n)}n.stopPropagation()}(t,n)},Q.push(n))})),q||(document.addEventListener("touchmove",z,$),q=!0)):B<=0&&(K=W().android?(t=document.documentElement,o=document.body,e=t.scrollTop||o.scrollTop,i=Object.assign({},t.style),r=Object.assign({},o.style),t.style.height="100%",t.style.overflow="hidden",o.style.top="-".concat(e,"px"),o.style.width="100%",o.style.height="auto",o.style.position="fixed",o.style.overflow="hidden",function(){t.style.height=i.height||"",t.style.overflow=i.overflow||"",["top","width","height","overflow","position"].forEach((function(n){o.style[n]=r[n]||""})),G?window.scrollTo({top:e,behavior:"instant"}):window.scrollTo(0,e)}):function(){var n=document.body,t=Object.assign({},n.style),o=window.innerWidth-n.clientWidth;return n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.paddingRight="".concat(o,"px"),function(){["overflow","boxSizing","paddingRight"].forEach((function(o){n.style[o]=t[o]||""}))}}()),B+=1)},J=function(n){P()||(B-=1)>0||(W().ios||"function"!=typeof K?(n&&(Array.isArray(n)?n:[n]).forEach((function(n){var t=Q.indexOf(n);-1!==t&&(n.ontouchmove=null,n.ontouchstart=null,Q.splice(t,1))})),q&&(document.removeEventListener("touchmove",z,$),q=!1)):K())};const Z="\n position: fixed !important;\n top: 0 !important;\n right: 0 !important;\n bottom: 0 !important;\n left: 0 !important;\n z-index: 9999999;\n display: block !important;\n width: 100vw;\n height: 100%;\n margin: 0 !important;\n padding: 0 !important;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n background: rgba(0, 0, 0, 0.6);\n",nn="\n position: absolute !important;\n top: 0 !important;\n right: 0 !important;\n bottom: 0 !important;\n left: 0 !important;\n width: 100vw;\n height: 100%;\n margin: 0 !important;\n padding: 0 !important;\n background: none;\n border: none\n";let tn=function(n){return n.VERIFF_HANDSHAKE="VERIFF_HANDSHAKE",n.VERIFF_RENDER="VERIFF_RENDER",n.VERIFF_STARTED="VERIFF_STARTED",n.VERIFF_SUBMITTED="VERIFF_SUBMITTED",n.VERIFF_FINISHED="VERIFF_FINISHED",n.VERIFF_CANCELED="VERIFF_CANCELED",n.VERIFF_FORCE_RELOAD="VERIFF_FORCE_RELOAD",n.VERIFF_RELOAD_REQUEST="VERIFF_RELOAD_REQUEST",n}({}),on=function(n){return n.STARTED="STARTED",n.SUBMITTED="SUBMITTED",n.FINISHED="FINISHED",n.CANCELED="CANCELED",n.RELOAD_REQUEST="RELOAD",n}({});function en(n){let{url:t,lang:o,onEvent:e=(()=>{}),embedded:i=!1,embeddedOptions:r,onReload:u}=n;if(!t)throw new Error("URL is not provided. Please provide a valid Veriff session url.");const d=function(n){if(n)try{return matchMedia("(max-width: 767px), (hover: none)").matches}catch(n){return console.error("Error while checking if iframe is mobile",n),!1}return!1}(i);function c(){const n=document.getElementById("veriffFrame");if(n&&n.parentNode){t=n,U=U.filter((function(n){return n!==t})),x(),0===U.length&&document.removeEventListener("focusin",x),J(n);let o=n.parentNode.parentNode,e=n.parentNode;i&&!d&&(o=n.parentNode,e=n),o&&o.removeChild(e)}else J();var t;window.removeEventListener("message",a)}function a(n){const t=document.getElementById("veriffFrame");n.data===tn.VERIFF_HANDSHAKE&&function(n,t){n.contentWindow?.postMessage({name:tn.VERIFF_RENDER,payload:t},"*")}(t,{version:"2.3.1",isReloadHandled:"function"==typeof u,isVeriffIframeMobile:d,embeddedConfigured:i,embedded:!d&&i}),n.data===tn.VERIFF_STARTED&&e(on.STARTED),n.data===tn.VERIFF_CANCELED&&(c(),e(on.CANCELED)),n.data===tn.VERIFF_SUBMITTED&&e(on.SUBMITTED),n.data===tn.VERIFF_FINISHED&&(c(),e(on.FINISHED)),n.data===tn.VERIFF_FORCE_RELOAD&&window.location.reload(),n.data===tn.VERIFF_RELOAD_REQUEST&&("function"==typeof u&&u(),e(on.RELOAD_REQUEST))}return function(n,t,o,e){const i=document.createElement("iframe");if(i.src=n,i.allow="autoplay; camera; microphone; fullscreen; accelerometer; magnetometer; gyroscope; picture-in-picture;",i.id="veriffFrame",t)!function(n){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const{rootElementID:e}=t;if(o){n.style.cssText=nn;const t=document.createElement("div");t.style.cssText=Z,t.appendChild(n),document.body.appendChild(t),k(n),X(n)}else{if(!e)throw new Error("rootElementID must be specified in embedded mode");if(!document.getElementById(e))throw new Error("rootElementID must point to an existing DOM element");n.style.cssText="\n position: static;\n width: 100%;\n height: 100%;\n",document.getElementById(e).appendChild(n)}}(i,o,e);else{i.style.cssText=nn;const n=function(){const n=document.createElement("div");return n.style.cssText=Z,n}();n.appendChild(i),document.body.appendChild(n),k(i),X(i)}}(o&&o.length>0?function(n,t,o){if(o){const t=new URL(n),e=t.searchParams;return e.set("lang",o),t.search=e.toString(),t.toString()}return n}(t,0,o):t,i,r,d),window.addEventListener("message",a),{close:c}}const rn=o.gql`
|
|
2
|
-
mutation createImpactVerificationSession($user: UserIdInput!) {
|
|
3
|
-
createImpactPublisherIdentityVerificationSession(user: $user) {
|
|
4
|
-
sessionUrl
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
`,un=o.gql`
|
|
8
|
-
mutation refreshImpactPublisherFinanceStatus($user: UserIdInput!) {
|
|
9
|
-
refreshImpactPublisherFinanceStatus(user: $user) {
|
|
10
|
-
id
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
`,dn="sqm:veriff-updated";function cn(){const{id:n,accountId:t}=e(),[o,{loading:r,errors:u}]=i(rn),[d,{loading:c,errors:a}]=i(un);return{render:async()=>{try{const e=await o({user:{id:n,accountId:t}});if(!e||e.message)throw new Error;en({url:e.createImpactPublisherIdentityVerificationSession.sessionUrl,onEvent:o=>{switch(o){case on.FINISHED:case on.CANCELED:(async()=>{try{const o=await d({user:{id:n,accountId:t}});if(!o||o.message)throw new Error;window.dispatchEvent(new Event("sqm:veriff-updated"))}catch(n){console.error("Failed to initialise Veriff:",n)}})()}}})}catch(n){console.error("Failed to initialise Veriff:",n)}},loading:r||c,errors:u||a}}const an=o.gql`
|
|
14
|
-
query getUserStatus {
|
|
15
|
-
user: viewer {
|
|
16
|
-
... on User {
|
|
17
|
-
id
|
|
18
|
-
impactConnection {
|
|
19
|
-
connected
|
|
20
|
-
publisher {
|
|
21
|
-
id
|
|
22
|
-
payoutsAccount {
|
|
23
|
-
hold
|
|
24
|
-
holdReasons
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
rewards(limit: 1000) {
|
|
29
|
-
data {
|
|
30
|
-
statuses
|
|
31
|
-
partnerFundsTransfer {
|
|
32
|
-
id
|
|
33
|
-
status
|
|
34
|
-
dateScheduled
|
|
35
|
-
dateCreated
|
|
36
|
-
dateTransferred
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
`,fn=o.gql`
|
|
44
|
-
query getTenantSettings {
|
|
45
|
-
tenantSettings {
|
|
46
|
-
enforceUsTaxCompliance
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
`;function ln(n){var t,o,e,i,r,u,d,c,a,f,l,s,v,E,m,I,p,_,w,R,h,A;const N=null===(o=null===(t=n.user.impactConnection)||void 0===t?void 0:t.publisher)||void 0===o?void 0:o.payoutsAccount,T=null===(r=null===(i=null===(e=null==n?void 0:n.user)||void 0===e?void 0:e.rewards)||void 0===i?void 0:i.data)||void 0===r?void 0:r.find((n=>{var t;return n.statuses.includes("REDEEMED")&&"TRANSFERRED"===(null===(t=n.partnerFundsTransfer)||void 0===t?void 0:t.status)}));if(!(null===(d=null===(u=n.user)||void 0===u?void 0:u.impactConnection)||void 0===d?void 0:d.connected)||!N)return"INFORMATION_REQUIRED";const b=null===(a=null===(c=n.user.impactConnection)||void 0===c?void 0:c.publisher)||void 0===a?void 0:a.currentTaxDocument;return(null===(f=N.holdReasons)||void 0===f?void 0:f.includes("NO_W9_DOCUMENT"))&&!b?"OVER_W9_THRESHOLD":(null===(l=N.holdReasons)||void 0===l?void 0:l.includes("IDV_CHECK_REQUIRED"))?"VERIFICATION:REQUIRED":(null===(s=N.holdReasons)||void 0===s?void 0:s.includes("IDV_CHECK_REQUIRED_INTERNAL"))?"VERIFICATION:INTERNAL":(null===(v=N.holdReasons)||void 0===v?void 0:v.includes("IDV_CHECK_REVIEW_INTERNAL"))?"VERIFICATION:REVIEW":(null===(E=N.holdReasons)||void 0===E?void 0:E.includes("IDV_CHECK_FAILED_INTERNAL"))?"VERIFICATION:FAILED":(null===(m=N.holdReasons)||void 0===m?void 0:m.includes("NEW_PAYEE_REVIEW"))&&T?"NEW_PAYEE_REVIEW":(null===(I=N.holdReasons)||void 0===I?void 0:I.includes("NEW_PAYEE_REVIEW"))?"DONE":(null===(p=N.holdReasons)||void 0===p?void 0:p.includes("PAYMENT_HOLD_ON_CHANGE"))?"PAYMENT_HOLD_ON_CHANGE":(null===(_=N.holdReasons)||void 0===_?void 0:_.includes("BENEFICIARY_NAME_INVALID"))?"BENEFICIARY_NAME_INVALID":(null===(w=N.holdReasons)||void 0===w?void 0:w.includes("BENEFICIARY_NAME_MISMATCH"))?"BENEFICIARY_NAME_MISMATCH":(null===(R=N.holdReasons)||void 0===R?void 0:R.includes("BANK_TAX_NAME_MISMATCH"))?"BANK_TAX_NAME_MISMATCH":(null===(h=N.holdReasons)||void 0===h?void 0:h.includes("WITHDRAWAL_SETTINGS_INVALID"))?"WITHDRAWAL_SETTINGS_INVALID":(null===(A=N.holdReasons)||void 0===A?void 0:A.includes("PAYMENT_RETURNED"))?"PAYMENT_RETURNED":N.hold?"HOLD":"DONE"}function sn(o){var e;const{type:i}=r(),{loading:c,data:a,errors:f,refetch:l}=u(an,{}),{data:s}=u(fn,{}),{render:v,loading:E}=cn(),[m,I]=n(void 0),p=null===(e=null==s?void 0:s.tenantSettings)||void 0===e?void 0:e.enforceUsTaxCompliance;return t((()=>{if(!a)return;const n=ln(a);I(n)}),[a]),t((()=>{const n=()=>l();return window.addEventListener(d,n),window.addEventListener("sqm:veriff-updated",n),()=>{window.removeEventListener(d,n),window.removeEventListener("sqm:veriff-updated",n)}}),[]),{states:{loading:c,veriffLoading:E,status:m,error:!!f,enforceUsTaxComplianceOption:p},data:{type:i},text:o.getTextProps(),callbacks:{onTermsClick:()=>{let n=o.cashPayoutsPageUrl;n.includes("#")&&(n=n.split("#")[0]),"INFORMATION_REQUIRED"===m?n+="#1":"OVER_W9_THRESHOLD"===m&&"CASH_ONLY_DEFER_W9"===p&&(n+="#3"),window.history.pushState(null,"",n)},onClick:v,onPaymentInfoClick:()=>{let n=o.cashPayoutsPageUrl;n+="#4",window.history.pushState(null,"",n)},onNewFormClick:()=>{let n=o.cashPayoutsPageUrl;n+="#3",window.history.pushState(null,"",n)}}}}export{dn as V,cn as a,ln as g,sn as u}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["./p-641f968d.system.js","./p-64f56cc9.system.js","./p-1a673057.system.js"],(function(e){"use strict";var t,n,s;return{setters:[function(e){t=e.h},function(e){n=e.i},function(e){s=e.c}],execute:function(){e({a:h,g:p,v:u});var i={Container:{display:"flex",flexDirection:"column",gap:"35px"},HeaderContainer:{display:"flex",flexDirection:"column",gap:"10px"}};var r=s(i);var o=r.toString();var a=e("L",(function(){return t("div",{class:r.classes.Container},t("style",{type:"text/css"},o),t("sqm-skeleton",{width:"45%",height:"40px !important"}),t("div",{class:r.classes.HeaderContainer},t("sqm-skeleton",{width:"15%"}),t("sqm-skeleton",{width:"25%",height:"30px !important"})),t("sqm-skeleton",{width:"75%",height:"35px"}),t("sqm-skeleton",{width:"75%",height:"35px"}),t("sqm-skeleton",{width:"75%",height:"35px"}),t("sqm-skeleton",{width:"75%",height:"35px"}),t("sqm-skeleton",{width:"75%",height:"35px"}),t("sqm-skeleton",{width:"75%",height:"35px"}),t("sqm-skeleton",{width:"75%",height:"35px"}),t("sqm-skeleton",{width:"75%",height:"35px"}),t("sqm-skeleton",{width:"75%",height:"35px"}),t("sqm-skeleton",{width:"75%",height:"35px"}),t("sqm-skeleton",{width:"75%",height:"35px"}),t("sqm-skeleton",{width:"15%"}),t("sqm-skeleton",{width:"80px",height:"30px !important"}))}));function h(e){var t=["W9","W8BENE","W8BEN"];if(t.includes(e))return true;return false}var l=e("o",(function(e){return!Object.keys(e).find((function(t){return e[t]==undefined}))}));var c=e("t",(function(e){switch(e){case"W9":return"W-9";case"W8BEN":case"W8BENE":return"W-8";default:return""}}));function u(e,t){var n=t.trim();var s=n.search(e);return s>-1}var d=e("f",(function(e,t){return n.formatMessage({id:e,defaultMessage:t},{fieldName:e})}));function p(e){var t=e.countryCode,n=e.locale;var s=new Intl.DisplayNames([n],{type:"region"}).of(t);return{countryCode:t,displayName:s}}}}}));
|
|
@@ -1,489 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-d9876cd5.js';
|
|
2
|
-
import './global-a70b85ca.js';
|
|
3
|
-
import { i as useState, m as useMemo, j as useEffect, o as h } from './dom-context-hooks.module-8411297a.js';
|
|
4
|
-
import { d as dist, L, r as En, w as wn, $ as $e, i as isDemo } from './index.module-76b0705d.js';
|
|
5
|
-
import './GoogleFonts-e3a7f82a.js';
|
|
6
|
-
import './jss-preset-default.esm-c36417f8.js';
|
|
7
|
-
import './JSS-8c381d8b.js';
|
|
8
|
-
import { g as getProps } from './utils-61821fb1.js';
|
|
9
|
-
import { c as cjs } from './cjs-e829b75b.js';
|
|
10
|
-
import { g as GET_FINANCE_NETWORK_SETTINGS } from './data-1f906245.js';
|
|
11
|
-
import { a as PartnerInfoModalContentView, P as PartnerInfoModalView } from './sqm-partner-info-modal-view-d61e1c5e.js';
|
|
12
|
-
import { V as VERIFICATION_PARENT_NAMESPACE } from './keys-db1897ae.js';
|
|
13
|
-
import { T as TAX_FORM_UPDATED_EVENT_KEY } from './eventKeys-f76b6a03.js';
|
|
14
|
-
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
15
|
-
|
|
16
|
-
// new field under impactConnection:{ resolvedByEmail: boolean } - determines if connection came from managed identity
|
|
17
|
-
const GET_USER_PARTNER_INFO = dist.gql `
|
|
18
|
-
query getUserPartnerInfo {
|
|
19
|
-
user: viewer {
|
|
20
|
-
... on User {
|
|
21
|
-
id
|
|
22
|
-
accountId
|
|
23
|
-
firstName
|
|
24
|
-
lastName
|
|
25
|
-
email
|
|
26
|
-
countryCode
|
|
27
|
-
customFields
|
|
28
|
-
impactConnection {
|
|
29
|
-
connected
|
|
30
|
-
connectionStatus
|
|
31
|
-
publisher {
|
|
32
|
-
id
|
|
33
|
-
countryCode
|
|
34
|
-
currency
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
`;
|
|
41
|
-
const GET_COUNTRIES = dist.gql `
|
|
42
|
-
query getCountries {
|
|
43
|
-
impactPayoutCountries(limit: 1000) {
|
|
44
|
-
data {
|
|
45
|
-
countryCode
|
|
46
|
-
displayName
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
`;
|
|
51
|
-
const GET_CURRENCIES = dist.gql `
|
|
52
|
-
query currencies($locale: RSLocale) {
|
|
53
|
-
currencies(limit: 300) {
|
|
54
|
-
data {
|
|
55
|
-
displayName(locale: $locale)
|
|
56
|
-
currencyCode
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
`;
|
|
61
|
-
const CONNECT_PARTNER = dist.gql `
|
|
62
|
-
mutation createImpactConnection($vars: ImpactConnectionInput!) {
|
|
63
|
-
createImpactConnection(impactConnectionInput: $vars) {
|
|
64
|
-
success
|
|
65
|
-
validationErrors {
|
|
66
|
-
field
|
|
67
|
-
message
|
|
68
|
-
}
|
|
69
|
-
user {
|
|
70
|
-
id
|
|
71
|
-
accountId
|
|
72
|
-
impactConnection {
|
|
73
|
-
connected
|
|
74
|
-
publisher {
|
|
75
|
-
brandedSignup
|
|
76
|
-
requiredTaxDocumentType
|
|
77
|
-
currentTaxDocument {
|
|
78
|
-
type
|
|
79
|
-
status
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
`;
|
|
87
|
-
const START_IMPACT_CONNECTION = dist.gql `
|
|
88
|
-
mutation startImpactConnection($vars: ImpactConnectionInput!) {
|
|
89
|
-
startImpactConnection(impactConnectionInput: $vars) {
|
|
90
|
-
success
|
|
91
|
-
validationErrors {
|
|
92
|
-
field
|
|
93
|
-
message
|
|
94
|
-
}
|
|
95
|
-
user {
|
|
96
|
-
id
|
|
97
|
-
accountId
|
|
98
|
-
impactConnection {
|
|
99
|
-
connected
|
|
100
|
-
publisher {
|
|
101
|
-
brandedSignup
|
|
102
|
-
requiredTaxDocumentType
|
|
103
|
-
currentTaxDocument {
|
|
104
|
-
type
|
|
105
|
-
status
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
`;
|
|
113
|
-
const GET_BRAND_NAME = dist.gql `
|
|
114
|
-
query getTenantSettings {
|
|
115
|
-
tenantSettings {
|
|
116
|
-
companyName
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
`;
|
|
120
|
-
function usePartnerInfoModal(props) {
|
|
121
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
122
|
-
const locale = L();
|
|
123
|
-
const setVerificationContext = En(VERIFICATION_PARENT_NAMESPACE);
|
|
124
|
-
const { data: userData, loading: userLoading, refetch, } = wn(GET_USER_PARTNER_INFO, {});
|
|
125
|
-
const user = userData === null || userData === void 0 ? void 0 : userData.user;
|
|
126
|
-
const { data: currenciesData, loading: currenciesLoading } = wn(GET_CURRENCIES, { variables: { locale } });
|
|
127
|
-
const { data: countriesData, loading: countriesLoading } = wn(GET_COUNTRIES, {});
|
|
128
|
-
const { data: tenantSettingsData } = wn(GET_BRAND_NAME, {});
|
|
129
|
-
const { data: financeNetworkData } = wn(GET_FINANCE_NETWORK_SETTINGS, {
|
|
130
|
-
variables: { filter: {} },
|
|
131
|
-
});
|
|
132
|
-
const [startImpactConnection, { loading: connectLoading, errors: connectErrors },] = $e(START_IMPACT_CONNECTION);
|
|
133
|
-
const [allowBankingCollection, setAllowBankingCollection] = useState(false);
|
|
134
|
-
const [checkboxError, setCheckboxError] = useState("");
|
|
135
|
-
// No pre-filled country, use locale to determine countryCode instead
|
|
136
|
-
const [countryCode, setCountryCode] = useState(((_b = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher) === null || _b === void 0 ? void 0 : _b.countryCode) ||
|
|
137
|
-
locale.replace(/^.*_/, ""));
|
|
138
|
-
const [currency, setCurrency] = useState(((_d = (_c = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _c === void 0 ? void 0 : _c.publisher) === null || _d === void 0 ? void 0 : _d.currency) || "");
|
|
139
|
-
const countries = ((_e = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _e === void 0 ? void 0 : _e.data) || [];
|
|
140
|
-
// copied from useTaxAndCash for displaying currencies based on country - could be in helper?
|
|
141
|
-
const currencies = useMemo(() => {
|
|
142
|
-
var _a, _b;
|
|
143
|
-
const allValidCurrencies = (_b = (_a = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.reduce((agg, settings) => {
|
|
144
|
-
var _a, _b;
|
|
145
|
-
const currency = (_b = (_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.find((c) => c.currencyCode === settings.currency);
|
|
146
|
-
if (!currency)
|
|
147
|
-
return agg;
|
|
148
|
-
if (agg.find((c) => c.currencyCode === settings.currency))
|
|
149
|
-
return agg;
|
|
150
|
-
if (countryCode && settings.countryCode !== countryCode)
|
|
151
|
-
return agg;
|
|
152
|
-
return [...agg, currency];
|
|
153
|
-
}, []);
|
|
154
|
-
return (allValidCurrencies || []).sort((a, b) => a.displayName.localeCompare(b.displayName));
|
|
155
|
-
}, [financeNetworkData, currenciesData, countryCode]);
|
|
156
|
-
const [countrySearch, setCountrySearch] = useState("");
|
|
157
|
-
const [currencySearch, setCurrencySearch] = useState("");
|
|
158
|
-
const [filteredCountries, setFilteredCountries] = useState(((_f = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _f === void 0 ? void 0 : _f.data) || []);
|
|
159
|
-
const [filteredCurrencies, setFilteredCurrencies] = useState(currencies || []);
|
|
160
|
-
console.log(userData, "userData partner info modal");
|
|
161
|
-
const [error, setError] = useState("");
|
|
162
|
-
const [success, setSuccess] = useState(false);
|
|
163
|
-
useEffect(() => {
|
|
164
|
-
var _a;
|
|
165
|
-
const publisher = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher;
|
|
166
|
-
if (!userData || !publisher)
|
|
167
|
-
return;
|
|
168
|
-
setCountryCode(publisher.countryCode);
|
|
169
|
-
setCurrency(publisher.currency);
|
|
170
|
-
}, [userData, user]);
|
|
171
|
-
useEffect(() => {
|
|
172
|
-
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
173
|
-
return;
|
|
174
|
-
if (countrySearch.trim() === "") {
|
|
175
|
-
setFilteredCountries(countries || []);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
setFilteredCountries(countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase())) || []);
|
|
179
|
-
}
|
|
180
|
-
}, [countrySearch, countries]);
|
|
181
|
-
useEffect(() => {
|
|
182
|
-
if (!(currencies === null || currencies === void 0 ? void 0 : currencies.length))
|
|
183
|
-
return;
|
|
184
|
-
if (currencySearch.trim() === "") {
|
|
185
|
-
setFilteredCurrencies(currencies || []);
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
setFilteredCurrencies(currencies.filter((c) => c.currencyCode.toLowerCase().includes(currencySearch.toLowerCase())) || []);
|
|
189
|
-
}
|
|
190
|
-
}, [currencySearch, currencies]);
|
|
191
|
-
const impactConnection = user === null || user === void 0 ? void 0 : user.impactConnection;
|
|
192
|
-
function onCountryChange(e) {
|
|
193
|
-
var _a, _b;
|
|
194
|
-
const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
195
|
-
if (!value)
|
|
196
|
-
return;
|
|
197
|
-
setCountryCode(value);
|
|
198
|
-
setCurrency("");
|
|
199
|
-
setError("");
|
|
200
|
-
}
|
|
201
|
-
function onCurrencyChange(e) {
|
|
202
|
-
var _a, _b;
|
|
203
|
-
const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
204
|
-
if (!value)
|
|
205
|
-
return;
|
|
206
|
-
setCurrency(value);
|
|
207
|
-
setError("");
|
|
208
|
-
}
|
|
209
|
-
function onCheckboxChange(e) {
|
|
210
|
-
const checked = e.target.checked;
|
|
211
|
-
setAllowBankingCollection(checked);
|
|
212
|
-
if (checked)
|
|
213
|
-
setCheckboxError("");
|
|
214
|
-
}
|
|
215
|
-
async function onSubmit() {
|
|
216
|
-
var _a, _b;
|
|
217
|
-
if (!allowBankingCollection) {
|
|
218
|
-
setCheckboxError(props.missingFieldsErrorText);
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
|
-
if (!countryCode || !currency) {
|
|
222
|
-
setError(props.missingFieldsErrorText);
|
|
223
|
-
return;
|
|
224
|
-
}
|
|
225
|
-
setError("");
|
|
226
|
-
setCheckboxError("");
|
|
227
|
-
try {
|
|
228
|
-
const vars = {
|
|
229
|
-
user: {
|
|
230
|
-
id: user.id,
|
|
231
|
-
accountId: user.accountId,
|
|
232
|
-
},
|
|
233
|
-
firstName: user.firstName,
|
|
234
|
-
lastName: user.lastName,
|
|
235
|
-
// phoneNumber: null,
|
|
236
|
-
// phoneNumberCountryCode: null,
|
|
237
|
-
countryCode,
|
|
238
|
-
currency,
|
|
239
|
-
};
|
|
240
|
-
const result = await startImpactConnection({ vars });
|
|
241
|
-
if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message)) {
|
|
242
|
-
setError(props.networkErrorText);
|
|
243
|
-
return;
|
|
244
|
-
}
|
|
245
|
-
const connectionResult = result
|
|
246
|
-
.startImpactConnection;
|
|
247
|
-
console.log(result, connectionResult, "result and connectionResult from creating partner from modal");
|
|
248
|
-
if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
|
|
249
|
-
const validationMsg = (_b = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors) === null || _b === void 0 ? void 0 : _b.map((e) => e.message).join(". ");
|
|
250
|
-
setError(validationMsg || props.networkErrorText);
|
|
251
|
-
console.error("Failed to create Impact connection:", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
|
|
252
|
-
return;
|
|
253
|
-
}
|
|
254
|
-
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
255
|
-
await refetch();
|
|
256
|
-
setSuccess(true);
|
|
257
|
-
setVerificationContext(true);
|
|
258
|
-
}
|
|
259
|
-
catch (e) {
|
|
260
|
-
console.error("Partner creation error:", e);
|
|
261
|
-
setError(props.networkErrorText);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
const showModal = !success &&
|
|
265
|
-
!userLoading &&
|
|
266
|
-
(impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.connectionStatus) === "NOT_STARTED";
|
|
267
|
-
return {
|
|
268
|
-
states: {
|
|
269
|
-
open: showModal,
|
|
270
|
-
loading: userLoading || countriesLoading || currenciesLoading,
|
|
271
|
-
submitting: connectLoading,
|
|
272
|
-
isExistingPartner: impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.publisher,
|
|
273
|
-
countryCode,
|
|
274
|
-
currency,
|
|
275
|
-
error,
|
|
276
|
-
success,
|
|
277
|
-
brandName: ((_g = tenantSettingsData === null || tenantSettingsData === void 0 ? void 0 : tenantSettingsData.tenantSettings) === null || _g === void 0 ? void 0 : _g.companyName) || "",
|
|
278
|
-
filteredCountries: filteredCountries || [],
|
|
279
|
-
filteredCurrencies: filteredCurrencies || [],
|
|
280
|
-
allowBankingCollection,
|
|
281
|
-
checkboxError,
|
|
282
|
-
disabled: userLoading || connectLoading,
|
|
283
|
-
},
|
|
284
|
-
callbacks: {
|
|
285
|
-
onCountryChange,
|
|
286
|
-
onCurrencyChange,
|
|
287
|
-
onCheckboxChange,
|
|
288
|
-
setCurrencySearch,
|
|
289
|
-
setCountrySearch,
|
|
290
|
-
onSubmit,
|
|
291
|
-
onClose: () => setSuccess(true),
|
|
292
|
-
},
|
|
293
|
-
text: props.getTextProps(),
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
const PartnerInfoModal = class {
|
|
298
|
-
constructor(hostRef) {
|
|
299
|
-
registerInstance(this, hostRef);
|
|
300
|
-
/**
|
|
301
|
-
* Brand name shown in the modal header
|
|
302
|
-
*
|
|
303
|
-
* @uiName Brand name
|
|
304
|
-
*/
|
|
305
|
-
this.brandName = "";
|
|
306
|
-
/**
|
|
307
|
-
* Header text when user has no existing partner
|
|
308
|
-
*
|
|
309
|
-
* @uiName New partner header
|
|
310
|
-
* @uiWidget textArea
|
|
311
|
-
*/
|
|
312
|
-
this.modalHeader = "Let's get you ready for rewards";
|
|
313
|
-
/**
|
|
314
|
-
* Header text when user has an existing partner
|
|
315
|
-
*
|
|
316
|
-
* @uiName Existing partner header
|
|
317
|
-
* @uiWidget textArea
|
|
318
|
-
*/
|
|
319
|
-
this.modalHeaderExistingPartner = "We found an existing account";
|
|
320
|
-
/**
|
|
321
|
-
* Description for new partner setup
|
|
322
|
-
*
|
|
323
|
-
* @uiName New partner description
|
|
324
|
-
* @uiWidget textArea
|
|
325
|
-
*/
|
|
326
|
-
this.descriptionNewPartner = "Confirm your country and currency now to get your future rewards faster.";
|
|
327
|
-
/**
|
|
328
|
-
* Description for existing partner confirmation
|
|
329
|
-
*
|
|
330
|
-
* @uiName Existing partner description
|
|
331
|
-
* @uiWidget textArea
|
|
332
|
-
*/
|
|
333
|
-
this.descriptionExistingPartner = "We found an account with this email on our referral program provider, impact.com. Please confirm your country and currency now to get your future rewards faster.";
|
|
334
|
-
/**
|
|
335
|
-
* Support description for existing partner confirmation
|
|
336
|
-
*
|
|
337
|
-
* @uiName Existing partner support description
|
|
338
|
-
* @uiWidget textArea
|
|
339
|
-
*/
|
|
340
|
-
this.supportDescriptionExistingPartner = "If this is a mistake, please contact Support or sign up for this referral program with a different email.";
|
|
341
|
-
/**
|
|
342
|
-
* Edit the property called terms and conditions text to change what's displayed for {termsAndConditionsLink}.
|
|
343
|
-
* @uiName Terms and conditions checkbox
|
|
344
|
-
*/
|
|
345
|
-
this.allowBankingCollection = "I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";
|
|
346
|
-
/**
|
|
347
|
-
* The link text that appears in the terms and conditions checkbox
|
|
348
|
-
* @uiName Terms and conditions text
|
|
349
|
-
* @uiWidget textArea
|
|
350
|
-
*/
|
|
351
|
-
this.termsAndConditionsLabel = "terms and conditions";
|
|
352
|
-
/**
|
|
353
|
-
* The link that appears in the terms and conditions checkbox
|
|
354
|
-
* @uiName Terms and conditions link
|
|
355
|
-
*/
|
|
356
|
-
this.termsAndConditionsLink = "https://terms.advocate.impact.com/PayoutTermsAndConditions.html";
|
|
357
|
-
/**
|
|
358
|
-
* @uiName Country label
|
|
359
|
-
*/
|
|
360
|
-
this.countryLabel = "Country";
|
|
361
|
-
/**
|
|
362
|
-
* @uiName Currency label
|
|
363
|
-
*/
|
|
364
|
-
this.currencyLabel = "Currency";
|
|
365
|
-
/**
|
|
366
|
-
* @uiName Submit button label
|
|
367
|
-
*/
|
|
368
|
-
this.submitButtonLabel = "Submit";
|
|
369
|
-
/**
|
|
370
|
-
* @uiName Confirm button label
|
|
371
|
-
*/
|
|
372
|
-
this.confirmButtonLabel = "Confirm";
|
|
373
|
-
/**
|
|
374
|
-
* @uiName Search country placeholder
|
|
375
|
-
*/
|
|
376
|
-
this.searchCountryPlaceholder = "Search for a country";
|
|
377
|
-
/**
|
|
378
|
-
* @uiName Search currency placeholder
|
|
379
|
-
*/
|
|
380
|
-
this.searchCurrencyPlaceholder = "Search for a currency";
|
|
381
|
-
/**
|
|
382
|
-
* @uiName Network error text
|
|
383
|
-
* @uiWidget textArea
|
|
384
|
-
*/
|
|
385
|
-
this.networkErrorText = "An error occurred. Please try again.";
|
|
386
|
-
/**
|
|
387
|
-
* @uiName Missing fields error text
|
|
388
|
-
* @uiWidget textArea
|
|
389
|
-
*/
|
|
390
|
-
this.missingFieldsErrorText = "Please select both a country and currency.";
|
|
391
|
-
/**
|
|
392
|
-
* Used to render in another modal.
|
|
393
|
-
* @undocumented
|
|
394
|
-
*/
|
|
395
|
-
this.inModal = false;
|
|
396
|
-
/**
|
|
397
|
-
* @undocumented
|
|
398
|
-
* @componentState { "title": "New partner", "props": { "states": { "open": true, "isExistingPartner": false } } }
|
|
399
|
-
* @componentState { "title": "Existing partner", "props": { "states": { "open": true, "isExistingPartner": true, "countryCode": "US", "currency": "USD" } } }
|
|
400
|
-
* @componentState { "title": "Connected (hidden)", "props": { "states": { "open": false } } }
|
|
401
|
-
*/
|
|
402
|
-
this.stateController = "{}";
|
|
403
|
-
h(this);
|
|
404
|
-
}
|
|
405
|
-
disconnectedCallback() { }
|
|
406
|
-
getTextProps() {
|
|
407
|
-
return getProps(this);
|
|
408
|
-
}
|
|
409
|
-
render() {
|
|
410
|
-
const props = isDemo()
|
|
411
|
-
? useDemoPartnerInfoModal(this)
|
|
412
|
-
: usePartnerInfoModal(this);
|
|
413
|
-
if (this.inModal) {
|
|
414
|
-
return h$1(PartnerInfoModalContentView, Object.assign({}, props));
|
|
415
|
-
}
|
|
416
|
-
return h$1(PartnerInfoModalView, Object.assign({}, props));
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
|
-
function useDemoPartnerInfoModal(props) {
|
|
420
|
-
const [countryCode, setCountryCode] = useState("US");
|
|
421
|
-
const [currency, setCurrency] = useState("");
|
|
422
|
-
const [error, setError] = useState("");
|
|
423
|
-
const [allowBankingCollection, setAllowBankingCollection] = useState(false);
|
|
424
|
-
const parsed = parseStates(props.stateController);
|
|
425
|
-
const stateOverride = (parsed === null || parsed === void 0 ? void 0 : parsed["sqm-partner-info-modal"]) || parsed || {};
|
|
426
|
-
// @ts-ignore
|
|
427
|
-
return cjs({
|
|
428
|
-
states: {
|
|
429
|
-
brandName: "Test Brand",
|
|
430
|
-
open: false,
|
|
431
|
-
loading: false,
|
|
432
|
-
submitting: false,
|
|
433
|
-
isExistingPartner: false,
|
|
434
|
-
countryCode,
|
|
435
|
-
currency,
|
|
436
|
-
error,
|
|
437
|
-
success: false,
|
|
438
|
-
filteredCountries: [],
|
|
439
|
-
filteredCurrencies: [],
|
|
440
|
-
allowBankingCollection,
|
|
441
|
-
checkboxError: "",
|
|
442
|
-
disabled: false,
|
|
443
|
-
},
|
|
444
|
-
callbacks: {
|
|
445
|
-
onCountryChange: (e) => {
|
|
446
|
-
var _a, _b;
|
|
447
|
-
const value = (_b = (_a = e === null || e === void 0 ? void 0 : e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
448
|
-
if (value) {
|
|
449
|
-
setCountryCode(value);
|
|
450
|
-
setCurrency("");
|
|
451
|
-
}
|
|
452
|
-
},
|
|
453
|
-
onCurrencyChange: (e) => {
|
|
454
|
-
var _a, _b;
|
|
455
|
-
const value = (_b = (_a = e === null || e === void 0 ? void 0 : e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
456
|
-
if (value)
|
|
457
|
-
setCurrency(value);
|
|
458
|
-
},
|
|
459
|
-
onCheckboxChange: (e) => {
|
|
460
|
-
setAllowBankingCollection(e.target.checked);
|
|
461
|
-
},
|
|
462
|
-
setCountrySearch: () => { },
|
|
463
|
-
setCurrencySearch: () => { },
|
|
464
|
-
onSubmit: () => {
|
|
465
|
-
if (!countryCode || !currency) {
|
|
466
|
-
setError(props.missingFieldsErrorText);
|
|
467
|
-
return;
|
|
468
|
-
}
|
|
469
|
-
setError("");
|
|
470
|
-
},
|
|
471
|
-
onClose: () => { },
|
|
472
|
-
},
|
|
473
|
-
text: {
|
|
474
|
-
modalHeader: props.modalHeader,
|
|
475
|
-
descriptionNewPartner: props.descriptionNewPartner,
|
|
476
|
-
descriptionExistingPartner: props.descriptionExistingPartner,
|
|
477
|
-
countryLabel: props.countryLabel,
|
|
478
|
-
currencyLabel: props.currencyLabel,
|
|
479
|
-
submitButtonLabel: props.submitButtonLabel,
|
|
480
|
-
confirmButtonLabel: props.confirmButtonLabel,
|
|
481
|
-
searchCountryPlaceholder: props.searchCountryPlaceholder,
|
|
482
|
-
searchCurrencyPlaceholder: props.searchCurrencyPlaceholder,
|
|
483
|
-
supportDescriptionExistingPartner: props.supportDescriptionExistingPartner,
|
|
484
|
-
modalHeaderExistingPartner: props.modalHeaderExistingPartner,
|
|
485
|
-
},
|
|
486
|
-
}, props.demoData || stateOverride, { arrayMerge: (_, a) => a });
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
export { PartnerInfoModal as sqm_partner_info_modal };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject=this&&this.__makeTemplateObject||function(n,e){if(Object.defineProperty){Object.defineProperty(n,"raw",{value:e})}else{n.raw=e}return n};var __awaiter=this&&this.__awaiter||function(n,e,t,r){function o(n){return n instanceof t?n:new t((function(e){e(n)}))}return new(t||(t=Promise))((function(t,i){function a(n){try{s(r.next(n))}catch(n){i(n)}}function c(n){try{s(r["throw"](n))}catch(n){i(n)}}function s(n){n.done?t(n.value):o(n.value).then(a,c)}s((r=r.apply(n,e||[])).next())}))};var __generator=this&&this.__generator||function(n,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(n){return function(e){return s([n,e])}}function s(a){if(r)throw new TypeError("Generator is already executing.");while(t)try{if(r=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;o=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){t.label=a[1];break}if(a[0]===6&&t.label<i[1]){t.label=i[1];i=a;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(a);break}if(i[2])t.ops.pop();t.trys.pop();continue}a=e.call(n,t)}catch(n){a=[6,n];o=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var r=Array(n),o=0,e=0;e<t;e++)for(var i=arguments[e],a=0,c=i.length;a<c;a++,o++)r[o]=i[a];return r};System.register(["./index-6582b378.system.js","./global-0a7aa77b.system.js","./dom-context-hooks.module-d6e89c16.system.js","./index.module-5e7007c8.system.js","./GoogleFonts-eea308bc.system.js","./jss-preset-default.esm-62a04d6d.system.js","./JSS-840a8fea.system.js","./utils-b405e671.system.js","./cjs-f0ef8d23.system.js","./data-593543bf.system.js","./sqm-partner-info-modal-view-9ef21b8d.system.js","./keys-4fe6dfb6.system.js","./eventKeys-8c222120.system.js","./parseStates-5fae0361.system.js"],(function(n){"use strict";var e,t,r,o,i,a,c,s,u,l,d,v,m,f,p,y,h,C,g,b;return{setters:[function(n){e=n.r;t=n.h},function(){},function(n){r=n.i;o=n.m;i=n.j;a=n.o},function(n){c=n.d;s=n.L;u=n.r;l=n.w;d=n.$;v=n.i},function(){},function(){},function(){},function(n){m=n.g},function(n){f=n.c},function(n){p=n.g},function(n){y=n.a;h=n.P},function(n){C=n.V},function(n){g=n.T},function(n){b=n.p}],execute:function(){var w=c.gql(__makeTemplateObject(["\n query getUserPartnerInfo {\n user: viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n customFields\n impactConnection {\n connected\n connectionStatus\n publisher {\n id\n countryCode\n currency\n }\n }\n }\n }\n }\n"],["\n query getUserPartnerInfo {\n user: viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n customFields\n impactConnection {\n connected\n connectionStatus\n publisher {\n id\n countryCode\n currency\n }\n }\n }\n }\n }\n"]));var _=c.gql(__makeTemplateObject(["\n query getCountries {\n impactPayoutCountries(limit: 1000) {\n data {\n countryCode\n displayName\n }\n }\n }\n"],["\n query getCountries {\n impactPayoutCountries(limit: 1000) {\n data {\n countryCode\n displayName\n }\n }\n }\n"]));var x=c.gql(__makeTemplateObject(["\n query currencies($locale: RSLocale) {\n currencies(limit: 300) {\n data {\n displayName(locale: $locale)\n currencyCode\n }\n }\n }\n"],["\n query currencies($locale: RSLocale) {\n currencies(limit: 300) {\n data {\n displayName(locale: $locale)\n currencyCode\n }\n }\n }\n"]));var T=c.gql(__makeTemplateObject(["\n mutation createImpactConnection($vars: ImpactConnectionInput!) {\n createImpactConnection(impactConnectionInput: $vars) {\n success\n validationErrors {\n field\n message\n }\n user {\n id\n accountId\n impactConnection {\n connected\n publisher {\n brandedSignup\n requiredTaxDocumentType\n currentTaxDocument {\n type\n status\n }\n }\n }\n }\n }\n }\n"],["\n mutation createImpactConnection($vars: ImpactConnectionInput!) {\n createImpactConnection(impactConnectionInput: $vars) {\n success\n validationErrors {\n field\n message\n }\n user {\n id\n accountId\n impactConnection {\n connected\n publisher {\n brandedSignup\n requiredTaxDocumentType\n currentTaxDocument {\n type\n status\n }\n }\n }\n }\n }\n }\n"]));var P=c.gql(__makeTemplateObject(["\n mutation startImpactConnection($vars: ImpactConnectionInput!) {\n startImpactConnection(impactConnectionInput: $vars) {\n success\n validationErrors {\n field\n message\n }\n user {\n id\n accountId\n impactConnection {\n connected\n publisher {\n brandedSignup\n requiredTaxDocumentType\n currentTaxDocument {\n type\n status\n }\n }\n }\n }\n }\n }\n"],["\n mutation startImpactConnection($vars: ImpactConnectionInput!) {\n startImpactConnection(impactConnectionInput: $vars) {\n success\n validationErrors {\n field\n message\n }\n user {\n id\n accountId\n impactConnection {\n connected\n publisher {\n brandedSignup\n requiredTaxDocumentType\n currentTaxDocument {\n type\n status\n }\n }\n }\n }\n }\n }\n"]));var k=c.gql(__makeTemplateObject(["\n query getTenantSettings {\n tenantSettings {\n companyName\n }\n }\n"],["\n query getTenantSettings {\n tenantSettings {\n companyName\n }\n }\n"]));function I(n){var e,t,a,c,v,m,f;var y=s();var h=u(C);var b=l(w,{}),T=b.data,I=b.loading,S=b.refetch;var E=T===null||T===void 0?void 0:T.user;var j=l(x,{variables:{locale:y}}),N=j.data,L=j.loading;var q=l(_,{}),D=q.data,O=q.loading;var $=l(k,{}).data;var A=l(p,{variables:{filter:{}}}).data;var B=d(P),F=B[0],H=B[1],U=H.loading,R=H.errors;var M=r(false),G=M[0],W=M[1];var J=r(""),K=J[0],V=J[1];var z=r(((t=(e=E===null||E===void 0?void 0:E.impactConnection)===null||e===void 0?void 0:e.publisher)===null||t===void 0?void 0:t.countryCode)||y.replace(/^.*_/,"")),Q=z[0],X=z[1];var Y=r(((c=(a=E===null||E===void 0?void 0:E.impactConnection)===null||a===void 0?void 0:a.publisher)===null||c===void 0?void 0:c.currency)||""),Z=Y[0],nn=Y[1];var en=((v=D===null||D===void 0?void 0:D.impactPayoutCountries)===null||v===void 0?void 0:v.data)||[];var tn=o((function(){var n,e;var t=(e=(n=A===null||A===void 0?void 0:A.impactFinanceNetworkSettings)===null||n===void 0?void 0:n.data)===null||e===void 0?void 0:e.reduce((function(n,e){var t,r;var o=(r=(t=N===null||N===void 0?void 0:N.currencies)===null||t===void 0?void 0:t.data)===null||r===void 0?void 0:r.find((function(n){return n.currencyCode===e.currency}));if(!o)return n;if(n.find((function(n){return n.currencyCode===e.currency})))return n;if(Q&&e.countryCode!==Q)return n;return __spreadArrays(n,[o])}),[]);return(t||[]).sort((function(n,e){return n.displayName.localeCompare(e.displayName)}))}),[A,N,Q]);var rn=r(""),on=rn[0],an=rn[1];var cn=r(""),sn=cn[0],un=cn[1];var ln=r(((m=D===null||D===void 0?void 0:D.impactPayoutCountries)===null||m===void 0?void 0:m.data)||[]),dn=ln[0],vn=ln[1];var mn=r(tn||[]),fn=mn[0],pn=mn[1];console.log(T,"userData partner info modal");var yn=r(""),hn=yn[0],Cn=yn[1];var gn=r(false),bn=gn[0],wn=gn[1];i((function(){var n;var e=(n=E===null||E===void 0?void 0:E.impactConnection)===null||n===void 0?void 0:n.publisher;if(!T||!e)return;X(e.countryCode);nn(e.currency)}),[T,E]);i((function(){if(!(en===null||en===void 0?void 0:en.length))return;if(on.trim()===""){vn(en||[])}else{vn(en.filter((function(n){return n.displayName.toLowerCase().includes(on.toLowerCase())}))||[])}}),[on,en]);i((function(){if(!(tn===null||tn===void 0?void 0:tn.length))return;if(sn.trim()===""){pn(tn||[])}else{pn(tn.filter((function(n){return n.currencyCode.toLowerCase().includes(sn.toLowerCase())}))||[])}}),[sn,tn]);var _n=E===null||E===void 0?void 0:E.impactConnection;function xn(n){var e,t;var r=(t=(e=n.detail)===null||e===void 0?void 0:e.item)===null||t===void 0?void 0:t.__value;if(!r)return;X(r);nn("");Cn("")}function Tn(n){var e,t;var r=(t=(e=n.detail)===null||e===void 0?void 0:e.item)===null||t===void 0?void 0:t.__value;if(!r)return;nn(r);Cn("")}function Pn(n){var e=n.target.checked;W(e);if(e)V("")}function kn(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,o,i,a,c;return __generator(this,(function(s){switch(s.label){case 0:if(!G){V(n.missingFieldsErrorText);return[2]}if(!Q||!Z){Cn(n.missingFieldsErrorText);return[2]}Cn("");V("");s.label=1;case 1:s.trys.push([1,4,,5]);r={user:{id:E.id,accountId:E.accountId},firstName:E.firstName,lastName:E.lastName,countryCode:Q,currency:Z};return[4,F({vars:r})];case 2:o=s.sent();if(!o||((e=o)===null||e===void 0?void 0:e.message)){Cn(n.networkErrorText);return[2]}i=o.startImpactConnection;console.log(o,i,"result and connectionResult from creating partner from modal");if(!(i===null||i===void 0?void 0:i.success)){a=(t=i===null||i===void 0?void 0:i.validationErrors)===null||t===void 0?void 0:t.map((function(n){return n.message})).join(". ");Cn(a||n.networkErrorText);console.error("Failed to create Impact connection:",i===null||i===void 0?void 0:i.validationErrors);return[2]}window.dispatchEvent(new Event(g));return[4,S()];case 3:s.sent();wn(true);h(true);return[3,5];case 4:c=s.sent();console.error("Partner creation error:",c);Cn(n.networkErrorText);return[3,5];case 5:return[2]}}))}))}var In=!bn&&!I&&(_n===null||_n===void 0?void 0:_n.connectionStatus)==="NOT_STARTED";return{states:{open:In,loading:I||O||L,submitting:U,isExistingPartner:_n===null||_n===void 0?void 0:_n.publisher,countryCode:Q,currency:Z,error:hn,success:bn,brandName:((f=$===null||$===void 0?void 0:$.tenantSettings)===null||f===void 0?void 0:f.companyName)||"",filteredCountries:dn||[],filteredCurrencies:fn||[],allowBankingCollection:G,checkboxError:K,disabled:I||U},callbacks:{onCountryChange:xn,onCurrencyChange:Tn,onCheckboxChange:Pn,setCurrencySearch:un,setCountrySearch:an,onSubmit:kn,onClose:function(){return wn(true)}},text:n.getTextProps()}}var S=n("sqm_partner_info_modal",function(){function n(n){e(this,n);this.brandName="";this.modalHeader="Let's get you ready for rewards";this.modalHeaderExistingPartner="We found an existing account";this.descriptionNewPartner="Confirm your country and currency now to get your future rewards faster.";this.descriptionExistingPartner="We found an account with this email on our referral program provider, impact.com. Please confirm your country and currency now to get your future rewards faster.";this.supportDescriptionExistingPartner="If this is a mistake, please contact Support or sign up for this referral program with a different email.";this.allowBankingCollection="I have read the {termsAndConditionsLink} and allow impact.com to collect my tax and banking information";this.termsAndConditionsLabel="terms and conditions";this.termsAndConditionsLink="https://terms.advocate.impact.com/PayoutTermsAndConditions.html";this.countryLabel="Country";this.currencyLabel="Currency";this.submitButtonLabel="Submit";this.confirmButtonLabel="Confirm";this.searchCountryPlaceholder="Search for a country";this.searchCurrencyPlaceholder="Search for a currency";this.networkErrorText="An error occurred. Please try again.";this.missingFieldsErrorText="Please select both a country and currency.";this.inModal=false;this.stateController="{}";a(this)}n.prototype.disconnectedCallback=function(){};n.prototype.getTextProps=function(){return m(this)};n.prototype.render=function(){var n=v()?E(this):I(this);if(this.inModal){return t(y,Object.assign({},n))}return t(h,Object.assign({},n))};return n}());function E(n){var e=r("US"),t=e[0],o=e[1];var i=r(""),a=i[0],c=i[1];var s=r(""),u=s[0],l=s[1];var d=r(false),v=d[0],m=d[1];var p=b(n.stateController);var y=(p===null||p===void 0?void 0:p["sqm-partner-info-modal"])||p||{};return f({states:{brandName:"Test Brand",open:false,loading:false,submitting:false,isExistingPartner:false,countryCode:t,currency:a,error:u,success:false,filteredCountries:[],filteredCurrencies:[],allowBankingCollection:v,checkboxError:"",disabled:false},callbacks:{onCountryChange:function(n){var e,t;var r=(t=(e=n===null||n===void 0?void 0:n.detail)===null||e===void 0?void 0:e.item)===null||t===void 0?void 0:t.__value;if(r){o(r);c("")}},onCurrencyChange:function(n){var e,t;var r=(t=(e=n===null||n===void 0?void 0:n.detail)===null||e===void 0?void 0:e.item)===null||t===void 0?void 0:t.__value;if(r)c(r)},onCheckboxChange:function(n){m(n.target.checked)},setCountrySearch:function(){},setCurrencySearch:function(){},onSubmit:function(){if(!t||!a){l(n.missingFieldsErrorText);return}l("")},onClose:function(){}},text:{modalHeader:n.modalHeader,descriptionNewPartner:n.descriptionNewPartner,descriptionExistingPartner:n.descriptionExistingPartner,countryLabel:n.countryLabel,currencyLabel:n.currencyLabel,submitButtonLabel:n.submitButtonLabel,confirmButtonLabel:n.confirmButtonLabel,searchCountryPlaceholder:n.searchCountryPlaceholder,searchCurrencyPlaceholder:n.searchCurrencyPlaceholder,supportDescriptionExistingPartner:n.supportDescriptionExistingPartner,modalHeaderExistingPartner:n.modalHeaderExistingPartner}},n.demoData||y,{arrayMerge:function(n,e){return e}})}}}}));
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
};
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const NewPartnerEmpty: () => any;
|
|
6
|
-
export declare const NewPartnerPrefilled: () => any;
|
|
7
|
-
export declare const NewPartnerFullySelected: () => any;
|
|
8
|
-
export declare const ExistingPartnerConfirm: () => any;
|
|
9
|
-
export declare const Submitting: () => any;
|
|
10
|
-
export declare const WithError: () => any;
|
|
11
|
-
export declare const ValidationError: () => any;
|
|
12
|
-
export declare const Closed: () => any;
|