@saasquatch/mint-components 2.1.9-2 → 2.1.9-20
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-d679ec76.js → ShadowViewAddon-2b3f51be.js} +1 -1
- package/dist/cjs/{data-e83f8a41.js → data-6b5095f8.js} +1 -90
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/parseStates-d1effc19.js +16 -0
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +85 -33
- package/dist/cjs/{sqm-big-stat_45.cjs.entry.js → sqm-big-stat_46.cjs.entry.js} +388 -19
- package/dist/cjs/sqm-code-verification.cjs.entry.js +4 -5
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +92 -37
- package/dist/cjs/{sqm-partner-info-modal-view-e3faede9.js → sqm-partner-info-modal-view-d5c997e6.js} +55 -46
- package/dist/cjs/{sqm-portal-email-verification-view-2b4b92da.js → sqm-portal-email-verification-view-60f8e0a7.js} +1 -1
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-profile-view-bfdbb98d.js → sqm-portal-profile-view-2bfd7afd.js} +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-registration-form-view-020f661c.js → sqm-portal-registration-form-view-fd48f1d3.js} +1 -1
- package/dist/cjs/{sqm-portal-reset-password-view-6b1acd90.js → sqm-portal-reset-password-view-d90d77f9.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +2 -2
- package/dist/cjs/{sqm-portal-verify-email-view-90cd89e3.js → sqm-portal-verify-email-view-b31638f8.js} +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +72 -49
- package/dist/cjs/{sqm-text-span-view-f274fdf2.js → sqm-text-span-view-8a32dd8c.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-user-info-form-view-e7260d61.js → sqm-user-info-form-view-db47a968.js} +27 -26
- package/dist/cjs/utils-a8e0bd9b.js +93 -0
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +0 -3
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +54 -46
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +77 -8
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +73 -33
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
- package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +16 -0
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +3 -4
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +0 -2
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +91 -13
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +14 -4
- package/dist/collection/components/tax-and-cash/data.js +1 -0
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +49 -11
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +3 -8
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +27 -14
- package/dist/esm/{ShadowViewAddon-d382a63e.js → ShadowViewAddon-78b791d2.js} +6 -6
- package/dist/{mint-components/p-9fa6606e.js → esm/data-33c16dff.js} +24 -5
- package/dist/esm/{global-b2ee3a12.js → global-39f55ec2.js} +1 -1
- package/dist/esm/{index.module-e266b4d7.js → index.module-cede12c6.js} +1 -1
- package/dist/esm/{keys-406491dc.js → keys-db1897ae.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/parseStates-ed75e224.js +14 -0
- package/dist/esm/{re-render-4f4bd4da.js → re-render-7a0c7976.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +85 -33
- package/dist/esm/{sqm-big-stat_45.entry.js → sqm-big-stat_46.entry.js} +393 -25
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +8 -9
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification_2.entry.js +97 -42
- 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-00d76ba1.js → sqm-lead-checkbox-field-view-7cee2b4e.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-d8f76a9d.js → sqm-lead-input-field-view-11a4f9a9.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-7f966119.js → sqm-navigation-sidebar-item-view-48e7e0d3.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-partner-info-modal-view-77c231af.js → sqm-partner-info-modal-view-08b7c5f6.js} +55 -47
- 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-13e25037.js → sqm-portal-email-verification-view-33f5c108.js} +2 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +6 -6
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-a172bdcc.js → sqm-portal-profile-view-88fd6a93.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-2f4936ef.js → sqm-portal-registration-form-view-9bf30b56.js} +1 -1
- package/dist/esm/{sqm-portal-reset-password-view-cfbc0eb0.js → sqm-portal-reset-password-view-f8d1689c.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
- package/dist/esm/{sqm-portal-verify-email-view-c1a72c4f.js → sqm-portal-verify-email-view-0b70c1b1.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 +46 -23
- 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-738acfb3.js → sqm-text-span-view-4db9e33f.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{sqm-user-info-form-view-a18d6b15.js → sqm-user-info-form-view-712cd51b.js} +6 -5
- package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
- package/dist/esm/{useChildElements-31ba3daf.js → useChildElements-c26d7347.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-1388dace.js → useInstantAccessRegistration-e2392f42.js} +2 -2
- package/dist/esm/{useLeadFormState-cec544ea.js → useLeadFormState-9099c8d4.js} +2 -2
- package/dist/esm/{usePayoutStatus-24145412.js → usePayoutStatus-fa504d49.js} +1 -1
- package/dist/esm/{usePortalRegistrationForm-6d562bf8.js → usePortalRegistrationForm-5844032a.js} +2 -2
- package/dist/esm/{useReferralCodes-1ca1fda0.js → useReferralCodes-3cde72d4.js} +1 -1
- package/dist/esm/{useReferralTable-456931fd.js → useReferralTable-35e6d4c1.js} +3 -3
- package/dist/esm/{useRegistrationFormState-0cee2d21.js → useRegistrationFormState-1813bdef.js} +1 -1
- package/dist/esm/{useVerificationEmail-5c6cd733.js → useVerificationEmail-cb3d51e3.js} +1 -1
- package/dist/esm/{utilities-f05633da.js → utilities-c9e730ed.js} +1 -1
- package/dist/esm/utils-8267d3d8.js +85 -0
- package/dist/esm-es5/{ShadowViewAddon-d382a63e.js → ShadowViewAddon-78b791d2.js} +1 -1
- package/dist/esm-es5/data-33c16dff.js +1 -0
- package/dist/esm-es5/{global-b2ee3a12.js → global-39f55ec2.js} +1 -1
- package/dist/esm-es5/{index.module-e266b4d7.js → index.module-cede12c6.js} +1 -1
- package/dist/esm-es5/{keys-406491dc.js → keys-db1897ae.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/parseStates-ed75e224.js +1 -0
- package/dist/esm-es5/{re-render-4f4bd4da.js → re-render-7a0c7976.js} +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_46.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_2.entry.js +1 -1
- 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-00d76ba1.js → sqm-lead-checkbox-field-view-7cee2b4e.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-d8f76a9d.js → sqm-lead-input-field-view-11a4f9a9.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-7f966119.js → sqm-navigation-sidebar-item-view-48e7e0d3.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-partner-info-modal-view-08b7c5f6.js +1 -0
- 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-13e25037.js → sqm-portal-email-verification-view-33f5c108.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-a172bdcc.js → sqm-portal-profile-view-88fd6a93.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-2f4936ef.js → sqm-portal-registration-form-view-9bf30b56.js} +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-cfbc0eb0.js → sqm-portal-reset-password-view-f8d1689c.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-c1a72c4f.js → sqm-portal-verify-email-view-0b70c1b1.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-738acfb3.js → sqm-text-span-view-4db9e33f.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-712cd51b.js +1 -0
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-31ba3daf.js → useChildElements-c26d7347.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-1388dace.js → useInstantAccessRegistration-e2392f42.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-cec544ea.js → useLeadFormState-9099c8d4.js} +1 -1
- package/dist/esm-es5/{usePayoutStatus-24145412.js → usePayoutStatus-fa504d49.js} +1 -1
- package/dist/esm-es5/{usePortalRegistrationForm-6d562bf8.js → usePortalRegistrationForm-5844032a.js} +1 -1
- package/dist/esm-es5/{useReferralCodes-1ca1fda0.js → useReferralCodes-3cde72d4.js} +1 -1
- package/dist/esm-es5/{useReferralTable-456931fd.js → useReferralTable-35e6d4c1.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-0cee2d21.js → useRegistrationFormState-1813bdef.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-5c6cd733.js → useVerificationEmail-cb3d51e3.js} +1 -1
- package/dist/esm-es5/{utilities-f05633da.js → utilities-c9e730ed.js} +1 -1
- package/dist/esm-es5/utils-8267d3d8.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-5d79c8a0.system.js → p-00463c83.system.js} +1 -1
- package/dist/mint-components/p-037c1a4f.system.entry.js +1 -0
- package/dist/mint-components/{p-97b8c481.js → p-0553e659.js} +1 -1
- package/dist/mint-components/{p-30967f75.js → p-092db51a.js} +1 -1
- package/dist/mint-components/{p-bd804f4c.js → p-095b7128.js} +1 -1
- package/dist/mint-components/p-0a126d1b.system.entry.js +1 -0
- package/dist/mint-components/{p-504ed1f2.entry.js → p-0c43b6ff.entry.js} +1 -1
- package/dist/mint-components/{p-ab678644.js → p-0d75a207.js} +1 -1
- package/dist/mint-components/p-0dc17c6a.entry.js +9 -0
- package/dist/mint-components/{p-5e106c95.system.js → p-0fec43e8.system.js} +1 -1
- package/dist/mint-components/p-115dfc03.system.js +1 -0
- package/dist/mint-components/p-13f3a647.js +1 -0
- package/dist/mint-components/{p-473562fc.system.js → p-140e6a15.system.js} +1 -1
- package/dist/mint-components/{p-b9652150.entry.js → p-160828b4.entry.js} +1 -1
- package/dist/mint-components/{p-878bb2cf.system.entry.js → p-16deb1a9.system.entry.js} +1 -1
- package/dist/mint-components/{p-5450693e.entry.js → p-19293c16.entry.js} +1 -1
- package/dist/mint-components/{p-1435edd4.entry.js → p-1b0cbbae.entry.js} +1 -1
- package/dist/mint-components/p-1b7dfd6f.system.entry.js +1 -0
- package/dist/mint-components/p-1c413a06.system.js +1 -0
- package/dist/mint-components/{p-c2c01ab5.entry.js → p-1d49dddc.entry.js} +1 -1
- package/dist/mint-components/{p-2774c704.system.entry.js → p-21e7079a.system.entry.js} +1 -1
- package/dist/mint-components/{p-fa32d8eb.system.entry.js → p-247cfbdc.system.entry.js} +1 -1
- package/dist/mint-components/{p-695ec086.system.js → p-28e0062c.system.js} +1 -1
- package/dist/mint-components/{p-bae7d6b5.system.entry.js → p-28fe7357.system.entry.js} +1 -1
- package/dist/mint-components/{p-7c0255ad.entry.js → p-2d3a12f2.entry.js} +2 -2
- package/dist/mint-components/{p-c8060ef5.system.entry.js → p-2f4d8ab8.system.entry.js} +1 -1
- package/dist/mint-components/{p-dfb50245.entry.js → p-3181e54a.entry.js} +1 -1
- package/dist/mint-components/{p-fb5c9802.entry.js → p-3218bb1d.entry.js} +1 -1
- package/dist/mint-components/{p-d863acaa.js → p-32d078a3.js} +1 -1
- package/dist/mint-components/{p-7528770e.entry.js → p-3461a8cb.entry.js} +1 -1
- package/dist/mint-components/{p-6e816a17.system.entry.js → p-357040e6.system.entry.js} +1 -1
- package/dist/mint-components/{p-452f644f.system.js → p-36395228.system.js} +1 -1
- package/dist/mint-components/{p-dece706f.js → p-370e0d75.js} +1 -1
- package/dist/mint-components/{p-5245e4ce.system.entry.js → p-3756d0d1.system.entry.js} +1 -1
- package/dist/mint-components/{p-5f6d617a.entry.js → p-37658fec.entry.js} +1 -1
- package/dist/mint-components/{p-7b909aa5.system.js → p-379cb9f1.system.js} +1 -1
- package/dist/mint-components/{p-47f594c3.entry.js → p-38dc2f60.entry.js} +1 -1
- package/dist/mint-components/p-39840341.js +1 -0
- package/dist/mint-components/{p-5126508b.js → p-3c333076.js} +1 -1
- package/dist/mint-components/{p-6684e9ad.js → p-3c555674.js} +1 -1
- package/dist/mint-components/{p-21851092.js → p-3c88d2ed.js} +2 -2
- package/dist/mint-components/{p-e7a9ce16.js → p-438f6702.js} +1 -1
- package/dist/mint-components/{p-fe0eceba.system.entry.js → p-45475cf9.system.entry.js} +1 -1
- package/dist/mint-components/{p-56ca7e3c.js → p-45e2a83a.js} +1 -1
- package/dist/mint-components/p-45e72bed.system.entry.js +1 -0
- package/dist/mint-components/{p-7a7ebf08.js → p-4723526d.js} +1 -1
- package/dist/mint-components/{p-cabf6326.js → p-50d959bd.js} +1 -1
- package/dist/mint-components/{p-f7948b16.system.entry.js → p-52748a87.system.entry.js} +1 -1
- package/dist/mint-components/{p-44afc747.entry.js → p-55627a5c.entry.js} +1 -1
- package/dist/mint-components/{p-ad017a39.js → p-567a5ded.js} +1 -1
- package/dist/mint-components/{p-96cbca52.system.entry.js → p-5c9d030a.system.entry.js} +1 -1
- package/dist/mint-components/{p-1b7b65ef.entry.js → p-5dc9e95b.entry.js} +2 -2
- package/dist/mint-components/p-5e26014d.system.js +1 -0
- package/dist/mint-components/{p-82be3d10.system.entry.js → p-60085f20.system.entry.js} +1 -1
- package/dist/mint-components/{p-cc0fe4a3.entry.js → p-608da224.entry.js} +1 -1
- package/dist/mint-components/{p-5825aee6.system.entry.js → p-6194855b.system.entry.js} +1 -1
- package/dist/mint-components/{p-b8766db9.entry.js → p-62212b9a.entry.js} +1 -1
- package/dist/mint-components/{p-f3ddbe2f.system.entry.js → p-62e1c8b2.system.entry.js} +1 -1
- package/dist/mint-components/p-63c299f1.system.js +1 -0
- package/dist/mint-components/p-64041ee1.entry.js +291 -0
- package/dist/mint-components/{p-1b9705fd.system.js → p-64f56cc9.system.js} +1 -1
- package/dist/mint-components/{p-20280398.system.entry.js → p-691d34f1.system.entry.js} +1 -1
- package/dist/mint-components/{p-2ad9470d.system.entry.js → p-6a4496b3.system.entry.js} +1 -1
- package/dist/mint-components/{p-79854479.system.js → p-6b1a6b0c.system.js} +1 -1
- package/dist/mint-components/{p-1775cb0c.system.js → p-70e34ae1.system.js} +2 -2
- package/dist/mint-components/{p-b9f57e84.system.entry.js → p-71561bb2.system.entry.js} +1 -1
- package/dist/mint-components/{p-d65991d0.entry.js → p-731c4d33.entry.js} +1 -1
- package/dist/mint-components/{p-59644ef8.system.js → p-7547180f.system.js} +1 -1
- package/dist/mint-components/{p-f84605ec.system.js → p-77117f6c.system.js} +1 -1
- package/dist/mint-components/{p-93cb9438.system.entry.js → p-7a08d288.system.entry.js} +1 -1
- package/dist/mint-components/p-7d5956ec.system.entry.js +1 -0
- package/dist/mint-components/{p-a03189bd.js → p-7e36a1ff.js} +1 -1
- package/dist/mint-components/p-842f45b9.js +1 -0
- package/dist/mint-components/{p-320b306b.js → p-8474aa63.js} +1 -1
- package/dist/mint-components/{p-33a6ab09.js → p-857a2d77.js} +1 -1
- package/dist/mint-components/{p-b179621d.system.js → p-86381dc7.system.js} +1 -1
- package/dist/mint-components/{p-e502fd80.entry.js → p-86a70151.entry.js} +1 -1
- package/dist/mint-components/{p-a30f0ffd.entry.js → p-886fb141.entry.js} +1 -1
- package/dist/mint-components/{p-b6fc53c9.entry.js → p-88c9cc1b.entry.js} +1 -1
- package/dist/mint-components/{p-6d444f3f.system.js → p-8b258a3e.system.js} +1 -1
- package/dist/mint-components/p-8e1acd9a.system.js +1 -0
- package/dist/mint-components/p-8ecc8875.js +116 -0
- package/dist/mint-components/{p-fca34d77.js → p-8f9c1387.js} +1 -1
- package/dist/mint-components/p-91a00693.entry.js +122 -0
- package/dist/mint-components/{p-9c381424.system.entry.js → p-95aaf35a.system.entry.js} +1 -1
- package/dist/mint-components/{p-f6fc7569.entry.js → p-96e4e6a4.entry.js} +1 -1
- package/dist/mint-components/{p-ed17e1b8.entry.js → p-991f60fc.entry.js} +1 -1
- package/dist/mint-components/{p-353ab6db.entry.js → p-996eb820.entry.js} +1 -1
- package/dist/mint-components/{p-b8288385.system.entry.js → p-998c989a.system.entry.js} +1 -1
- package/dist/mint-components/{p-82905fda.system.js → p-9b33e2a7.system.js} +1 -1
- package/dist/mint-components/{p-7767314d.system.entry.js → p-9bd53e4d.system.entry.js} +1 -1
- package/dist/mint-components/{p-89f8ab67.entry.js → p-9c1b0c8b.entry.js} +1 -1
- package/dist/mint-components/{p-2c0bb139.entry.js → p-9d6984e7.entry.js} +2 -2
- package/dist/mint-components/{p-07f3b868.entry.js → p-9e43f1eb.entry.js} +1 -1
- package/dist/mint-components/{p-669d52c4.js → p-a7f72a66.js} +1 -1
- package/dist/mint-components/{p-83277c69.system.js → p-a86ce218.system.js} +1 -1
- package/dist/mint-components/p-a8891ebd.js +1 -0
- package/dist/mint-components/{p-d6c1e876.system.js → p-a8ecdc44.system.js} +1 -1
- package/dist/mint-components/p-b077d478.js +1 -0
- package/dist/mint-components/{p-f3b21df2.system.js → p-b1b8e629.system.js} +1 -1
- package/dist/mint-components/p-b2a99637.system.js +1 -0
- package/dist/mint-components/p-b2bde2f5.entry.js +1 -0
- package/dist/mint-components/{p-d2448c85.system.entry.js → p-b451970a.system.entry.js} +1 -1
- package/dist/mint-components/{p-4da8028d.system.entry.js → p-b5c0bad5.system.entry.js} +1 -1
- package/dist/mint-components/{p-80174c14.entry.js → p-b5fed7c6.entry.js} +1 -1
- package/dist/mint-components/{p-d5375baf.js → p-bcadd021.js} +1 -1
- package/dist/mint-components/{p-07da0ddd.system.entry.js → p-c7535e70.system.entry.js} +1 -1
- package/dist/mint-components/{p-d42aba0e.system.js → p-c84a2512.system.js} +1 -1
- package/dist/mint-components/{p-55b1be64.system.entry.js → p-c8e45671.system.entry.js} +1 -1
- package/dist/mint-components/{p-e5e8e13e.js → p-ce11858c.js} +1 -1
- package/dist/mint-components/{p-f95952a0.system.entry.js → p-d01949f7.system.entry.js} +1 -1
- package/dist/mint-components/{p-1d450b85.js → p-d20188db.js} +1 -1
- package/dist/mint-components/{p-e4d3b7a9.system.js → p-d355336b.system.js} +1 -1
- package/dist/mint-components/{p-5822a43f.system.entry.js → p-d5a1c979.system.entry.js} +1 -1
- package/dist/mint-components/p-d6714617.entry.js +1 -0
- package/dist/mint-components/p-da6c5d98.system.js +1 -0
- package/dist/mint-components/{p-7333d103.system.entry.js → p-dbdb2a46.system.entry.js} +1 -1
- package/dist/mint-components/{p-3c46b4dd.system.js → p-df88dcaa.system.js} +1 -1
- package/dist/mint-components/{p-18133026.system.entry.js → p-e1292288.system.entry.js} +1 -1
- package/dist/mint-components/{p-c756bc32.system.js → p-e4dbca9a.system.js} +1 -1
- package/dist/mint-components/{p-8f5b316e.js → p-e95402dc.js} +1 -1
- package/dist/mint-components/{p-0a900fb1.system.entry.js → p-e9e05970.system.entry.js} +1 -1
- package/dist/mint-components/p-ee0f1cf1.system.js +1 -0
- package/dist/mint-components/{p-84866680.entry.js → p-f11d29fd.entry.js} +1 -1
- package/dist/mint-components/{p-dac20392.system.js → p-f368f04a.system.js} +1 -1
- package/dist/mint-components/{p-06ca4346.entry.js → p-f4a57aed.entry.js} +1 -1
- package/dist/mint-components/{p-2e2c5ec4.entry.js → p-f972e5c9.entry.js} +1 -1
- package/dist/mint-components/{p-91c4b8d5.system.entry.js → p-fb4ab5ba.system.entry.js} +1 -1
- package/dist/mint-components/{p-c7cac01e.entry.js → p-fc783749.entry.js} +32 -7
- package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +0 -1
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +1 -0
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +15 -3
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +1 -0
- package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +8 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +6 -1
- package/dist/types/components/tax-and-cash/data.d.ts +1 -0
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +7 -0
- package/dist/types/components.d.ts +39 -5
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/extractProps-e9c55ba8.js +0 -35
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -304
- package/dist/esm/data-a6752028.js +0 -216
- package/dist/esm/extractProps-54064fb0.js +0 -32
- package/dist/esm/sqm-widget-verification.entry.js +0 -300
- package/dist/esm-es5/data-a6752028.js +0 -1
- package/dist/esm-es5/extractProps-54064fb0.js +0 -1
- package/dist/esm-es5/sqm-big-stat_45.entry.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-77c231af.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-a18d6b15.js +0 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
- package/dist/mint-components/p-0797a946.js +0 -1
- package/dist/mint-components/p-094edc0b.entry.js +0 -9
- package/dist/mint-components/p-1a0b9f0f.entry.js +0 -16
- package/dist/mint-components/p-1b0d7020.js +0 -1
- package/dist/mint-components/p-237a21c1.system.entry.js +0 -1
- package/dist/mint-components/p-35724e1c.entry.js +0 -1
- package/dist/mint-components/p-38c7775a.js +0 -1
- package/dist/mint-components/p-4b365f1f.system.js +0 -1
- package/dist/mint-components/p-4ea9b7ec.system.entry.js +0 -1
- package/dist/mint-components/p-4fbfb954.system.entry.js +0 -1
- package/dist/mint-components/p-57dd28bd.system.js +0 -1
- package/dist/mint-components/p-614630a8.system.js +0 -1
- package/dist/mint-components/p-66c070e2.entry.js +0 -105
- package/dist/mint-components/p-6e6f19ea.system.entry.js +0 -1
- package/dist/mint-components/p-71c585b7.entry.js +0 -1
- package/dist/mint-components/p-725c542a.js +0 -1
- package/dist/mint-components/p-78909fc0.system.js +0 -1
- package/dist/mint-components/p-a9855b29.system.entry.js +0 -1
- package/dist/mint-components/p-debe7d04.system.js +0 -1
- package/dist/mint-components/p-e44c816e.system.js +0 -1
- package/dist/mint-components/p-e55aafe9.system.js +0 -1
- package/dist/mint-components/p-e6924adb.entry.js +0 -273
- package/dist/mint-components/p-e9a596d6.system.entry.js +0 -1
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host, g as getElement } from './index-38ad4957.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-39f55ec2.js';
|
|
3
3
|
import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './dom-context-hooks.module-50442785.js';
|
|
4
|
-
import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo,
|
|
4
|
+
import { d as dist, _, L, J, t as Pn, F as Fn, x as $n, $ as $e, i as isDemo, r as En, b as useCallback, R as Rn, w as wn } from './index.module-cede12c6.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
9
|
import './mixins-f750863a.js';
|
|
10
10
|
import { G as GenericTableView } from './GenericTableView-8c72ac30.js';
|
|
11
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
12
|
-
import { u as useChildElements } from './useChildElements-
|
|
11
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-7a0c7976.js';
|
|
12
|
+
import { u as useChildElements } from './useChildElements-c26d7347.js';
|
|
13
13
|
import { l as luxon } from './luxon-1be92a8e.js';
|
|
14
|
-
import { g as generateUserError } from './useReferralTable-
|
|
15
|
-
import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS, U as UserInfoFormView } from './sqm-user-info-form-view-
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
14
|
+
import { g as generateUserError } from './useReferralTable-35e6d4c1.js';
|
|
15
|
+
import { a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, I as InvoiceTableView, v as vatLabels, A as ADDRESS_REGIONS, U as UserInfoFormView } from './sqm-user-info-form-view-712cd51b.js';
|
|
16
|
+
import { t as taxTypeToName, a as validTaxDocument, g as getCountryObj, o as objectIsFull } from './utils-8267d3d8.js';
|
|
17
|
+
import { F as FORM_STEPS, a as TAX_FORM_CONTEXT_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, T as TAX_CONTEXT_NAMESPACE, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, d as COUNTRIES_QUERY_NAMESPACE, C as CURRENCIES_NAMESPACE } from './data-33c16dff.js';
|
|
18
|
+
import { b as VERIFICATION_EVENT_KEY } from './keys-db1897ae.js';
|
|
18
19
|
import { T as TAX_FORM_UPDATED_EVENT_KEY } from './eventKeys-f76b6a03.js';
|
|
19
|
-
import { a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-
|
|
20
|
+
import { a as useVeriffApp, g as getStatus, V as VERIFF_COMPLETE_EVENT_KEY } from './usePayoutStatus-fa504d49.js';
|
|
20
21
|
|
|
21
22
|
function getFormMap({ props, getValidationErrorMessage, bankCountry, }) {
|
|
22
23
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53, _54, _55, _56, _57, _58, _59, _60, _61, _62, _63, _64, _65, _66, _67, _68, _69, _70;
|
|
@@ -2867,6 +2868,32 @@ const CONNECT_PARTNER = dist.gql `
|
|
|
2867
2868
|
}
|
|
2868
2869
|
}
|
|
2869
2870
|
`;
|
|
2871
|
+
const COMPLETE_PARTNER = dist.gql `
|
|
2872
|
+
mutation completeImpactConnection($vars: ImpactConnectionInput!) {
|
|
2873
|
+
completeImpactConnection(impactConnectionInput: $vars) {
|
|
2874
|
+
success
|
|
2875
|
+
validationErrors {
|
|
2876
|
+
field
|
|
2877
|
+
message
|
|
2878
|
+
}
|
|
2879
|
+
user {
|
|
2880
|
+
id
|
|
2881
|
+
accountId
|
|
2882
|
+
impactConnection {
|
|
2883
|
+
connected
|
|
2884
|
+
publisher {
|
|
2885
|
+
brandedSignup
|
|
2886
|
+
requiredTaxDocumentType
|
|
2887
|
+
currentTaxDocument {
|
|
2888
|
+
type
|
|
2889
|
+
status
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2894
|
+
}
|
|
2895
|
+
}
|
|
2896
|
+
`;
|
|
2870
2897
|
function getOption(countries, countryCode) {
|
|
2871
2898
|
if (!countries)
|
|
2872
2899
|
return;
|
|
@@ -2885,6 +2912,7 @@ function useIndirectTaxForm(props) {
|
|
|
2885
2912
|
const context = Fn(TAX_FORM_CONTEXT_NAMESPACE);
|
|
2886
2913
|
const [step, setStep] = Pn(TAX_CONTEXT_NAMESPACE);
|
|
2887
2914
|
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = $e(CONNECT_PARTNER);
|
|
2915
|
+
const [completeImpactPartner, { loading: completeLoading, errors: completeErrors },] = $e(COMPLETE_PARTNER);
|
|
2888
2916
|
const userForm = Fn(USER_FORM_CONTEXT_NAMESPACE);
|
|
2889
2917
|
const { data: userData, refetch, errors: userError, } = $n(USER_QUERY_NAMESPACE);
|
|
2890
2918
|
const { data: _countriesRes, loading: countriesLoading } = $n(COUNTRIES_QUERY_NAMESPACE);
|
|
@@ -2947,7 +2975,7 @@ function useIndirectTaxForm(props) {
|
|
|
2947
2975
|
setFormState((p) => ({ ...p, [field]: value }));
|
|
2948
2976
|
};
|
|
2949
2977
|
async function connectPartner(formData) {
|
|
2950
|
-
var _a, _b, _c, _d, _e;
|
|
2978
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2951
2979
|
const vars = {
|
|
2952
2980
|
user: {
|
|
2953
2981
|
id: user.id,
|
|
@@ -2969,19 +2997,30 @@ function useIndirectTaxForm(props) {
|
|
|
2969
2997
|
additionalTaxId: formData.qstNumber,
|
|
2970
2998
|
withholdingTaxId: formData.subRegionTaxNumber,
|
|
2971
2999
|
};
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
if (
|
|
3000
|
+
//AL: TODO completePartnerMutation might change
|
|
3001
|
+
let result = null;
|
|
3002
|
+
let connectionResult;
|
|
3003
|
+
if ((_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.connected) {
|
|
3004
|
+
result = await completeImpactPartner({
|
|
3005
|
+
vars,
|
|
3006
|
+
});
|
|
3007
|
+
connectionResult = (_c = result) === null || _c === void 0 ? void 0 : _c.completeImpactConnection;
|
|
3008
|
+
}
|
|
3009
|
+
else {
|
|
3010
|
+
result = await connectImpactPartner({
|
|
3011
|
+
vars,
|
|
3012
|
+
});
|
|
3013
|
+
connectionResult = (_d = result) === null || _d === void 0 ? void 0 : _d.createImpactConnection;
|
|
3014
|
+
}
|
|
3015
|
+
if (!result || ((_e = result) === null || _e === void 0 ? void 0 : _e.message))
|
|
2976
3016
|
throw new Error();
|
|
2977
|
-
if (!(
|
|
3017
|
+
if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
|
|
2978
3018
|
// Output backend errors to console for now
|
|
2979
|
-
console.error("Failed to create Impact connection: ",
|
|
3019
|
+
console.error("Failed to create Impact connection: ", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
|
|
2980
3020
|
throw new Error();
|
|
2981
3021
|
}
|
|
2982
3022
|
await refetch();
|
|
2983
|
-
const resultPublisher = (
|
|
2984
|
-
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
3023
|
+
const resultPublisher = (_g = (_f = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher;
|
|
2985
3024
|
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
2986
3025
|
// Fire form change event
|
|
2987
3026
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
@@ -3047,8 +3086,8 @@ function useIndirectTaxForm(props) {
|
|
|
3047
3086
|
states: {
|
|
3048
3087
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
3049
3088
|
hideSteps: context.hideSteps,
|
|
3050
|
-
disabled: loading || countriesLoading || connectLoading,
|
|
3051
|
-
loading: loading || connectLoading || countriesLoading,
|
|
3089
|
+
disabled: loading || countriesLoading || connectLoading || completeLoading,
|
|
3090
|
+
loading: loading || connectLoading || countriesLoading || completeLoading,
|
|
3052
3091
|
isPartner: !!((_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),
|
|
3053
3092
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
3054
3093
|
formState: {
|
|
@@ -5361,6 +5400,7 @@ function useUserInfoForm(props) {
|
|
|
5361
5400
|
const [userFormContext, setUserFormContext] = Pn(USER_FORM_CONTEXT_NAMESPACE);
|
|
5362
5401
|
const user = J();
|
|
5363
5402
|
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = $e(CONNECT_PARTNER);
|
|
5403
|
+
const [completeImpactPartner, { loading: completeLoading, errors: completeErrors },] = $e(COMPLETE_PARTNER);
|
|
5364
5404
|
const { data: tenantData } = wn(GET_INDIRECT_TAX_COUNTRY_CODE, {});
|
|
5365
5405
|
const { data, loading, refetch, errors: userError, } = $n(USER_QUERY_NAMESPACE);
|
|
5366
5406
|
const _currencies = Fn(CURRENCIES_NAMESPACE);
|
|
@@ -5472,7 +5512,7 @@ function useUserInfoForm(props) {
|
|
|
5472
5512
|
}
|
|
5473
5513
|
}, [currencySearch, currencies]);
|
|
5474
5514
|
async function connectPartner(formData) {
|
|
5475
|
-
var _a, _b, _c, _d, _e;
|
|
5515
|
+
var _a, _b, _c, _d, _e, _f;
|
|
5476
5516
|
const vars = {
|
|
5477
5517
|
user: {
|
|
5478
5518
|
id: user.id,
|
|
@@ -5489,20 +5529,32 @@ function useUserInfoForm(props) {
|
|
|
5489
5529
|
phoneNumber: formData.phoneNumber,
|
|
5490
5530
|
phoneNumberCountryCode: formData.phoneNumberCountryCode,
|
|
5491
5531
|
};
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5532
|
+
//AL: TODO completePartnerMutation might change
|
|
5533
|
+
// if user already has an impact connection, call completeImpactPartner to update their information instead of connectPartner
|
|
5534
|
+
const userData = data === null || data === void 0 ? void 0 : data.user;
|
|
5535
|
+
let result = null;
|
|
5536
|
+
let connectionResult;
|
|
5537
|
+
if (((_a = userData === null || userData === void 0 ? void 0 : userData.impactConnection) === null || _a === void 0 ? void 0 : _a.connectionStatus) === "STARTED") {
|
|
5538
|
+
console.log(vars, "values for completeImpactPartner");
|
|
5539
|
+
result = await completeImpactPartner({
|
|
5540
|
+
vars,
|
|
5541
|
+
});
|
|
5542
|
+
connectionResult = (_b = result) === null || _b === void 0 ? void 0 : _b.completeImpactConnection;
|
|
5543
|
+
}
|
|
5544
|
+
else {
|
|
5545
|
+
result = await connectImpactPartner({
|
|
5546
|
+
vars,
|
|
5547
|
+
});
|
|
5548
|
+
connectionResult = (_c = result) === null || _c === void 0 ? void 0 : _c.createImpactConnection;
|
|
5549
|
+
}
|
|
5550
|
+
if (!result || ((_d = result) === null || _d === void 0 ? void 0 : _d.message))
|
|
5496
5551
|
throw new Error();
|
|
5497
|
-
if (!(
|
|
5498
|
-
|
|
5499
|
-
console.error("Failed to create Impact connection: ", result.createImpactConnection
|
|
5500
|
-
.validationErrors);
|
|
5552
|
+
if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
|
|
5553
|
+
console.error("Failed to create Impact connection: ", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
|
|
5501
5554
|
throw new Error();
|
|
5502
5555
|
}
|
|
5503
5556
|
await refetch();
|
|
5504
|
-
const resultPublisher = (
|
|
5505
|
-
.createImpactConnection) === null || _c === void 0 ? void 0 : _c.user) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.publisher;
|
|
5557
|
+
const resultPublisher = (_f = (_e = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.user) === null || _e === void 0 ? void 0 : _e.impactConnection) === null || _f === void 0 ? void 0 : _f.publisher;
|
|
5506
5558
|
const hasValidCurrentDocument = validTaxDocument(resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.requiredTaxDocumentType) && (resultPublisher === null || resultPublisher === void 0 ? void 0 : resultPublisher.currentTaxDocument);
|
|
5507
5559
|
// Fire form change event
|
|
5508
5560
|
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
@@ -5627,9 +5679,9 @@ function useUserInfoForm(props) {
|
|
|
5627
5679
|
step: step === null || step === void 0 ? void 0 : step.replace("/", ""),
|
|
5628
5680
|
hideState: !hasStates,
|
|
5629
5681
|
hideSteps: !!context.hideSteps,
|
|
5630
|
-
disabled: loading || connectLoading,
|
|
5682
|
+
disabled: loading || connectLoading || completeLoading,
|
|
5631
5683
|
loadingError: !!(userError === null || userError === void 0 ? void 0 : userError.message),
|
|
5632
|
-
loading: loading || connectLoading,
|
|
5684
|
+
loading: loading || connectLoading || completeLoading,
|
|
5633
5685
|
isPartner: !!((_g = (_f = data === null || data === void 0 ? void 0 : data.user) === null || _f === void 0 ? void 0 : _f.impactConnection) === null || _g === void 0 ? void 0 : _g.publisher),
|
|
5634
5686
|
isUser: !!((_j = (_h = data === null || data === void 0 ? void 0 : data.user) === null || _h === void 0 ? void 0 : _h.impactConnection) === null || _j === void 0 ? void 0 : _j.user),
|
|
5635
5687
|
formState: {
|
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-38ad4957.js';
|
|
2
|
-
import { b as buildFontsCssUrl, i as intl } from './global-
|
|
2
|
+
import { b as buildFontsCssUrl, i as intl } from './global-39f55ec2.js';
|
|
3
3
|
import { n as h, f as useEffect, i as d, k as useState, m as useRef, u as useMemo, b as browser, j as useReducer } from './dom-context-hooks.module-50442785.js';
|
|
4
|
-
import { i as isDemo, _ as _$1, d as dist, J, H, B, $ as $e, w as wn, b as useCallback, L, y as yn, j as jn,
|
|
4
|
+
import { i as isDemo, _ as _$1, d as dist, J, H, B, $ as $e, w as wn, b as useCallback, L, y as yn, j as jn, q as Ue, e as setUserIdentity, Q as Qe, k as kn, M as Mn, I as In, S as Sn, r as En, X as Xe } from './index.module-cede12c6.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import { g as getProps, a as getMissingProps } from './utils-334c1e34.js';
|
|
8
8
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
9
|
-
import './useReferralCodes-
|
|
9
|
+
import './useReferralCodes-3cde72d4.js';
|
|
10
10
|
import './mixins-f750863a.js';
|
|
11
11
|
import { C as CopyTextView } from './copy-text-view-87259b11.js';
|
|
12
|
-
import './sqm-text-span-view-
|
|
13
|
-
import { A as AsYouType, u as usePortalRegistrationForm } from './usePortalRegistrationForm-
|
|
14
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT, a as useRegistrationForm } from './useRegistrationFormState-
|
|
15
|
-
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-
|
|
16
|
-
import { a as useRequestRerender } from './re-render-
|
|
17
|
-
import { u as useChildElements } from './useChildElements-
|
|
12
|
+
import './sqm-text-span-view-4db9e33f.js';
|
|
13
|
+
import { A as AsYouType, u as usePortalRegistrationForm } from './usePortalRegistrationForm-5844032a.js';
|
|
14
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT, a as useRegistrationForm } from './useRegistrationFormState-1813bdef.js';
|
|
15
|
+
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-9bf30b56.js';
|
|
16
|
+
import { a as useRequestRerender } from './re-render-7a0c7976.js';
|
|
17
|
+
import { u as useChildElements } from './useChildElements-c26d7347.js';
|
|
18
18
|
import './luxon-1be92a8e.js';
|
|
19
19
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
20
20
|
import { o as optimizeCloudinaryUrl } from './imageUrl-4775f17b.js';
|
|
21
21
|
import { E as EmailRegistrationView } from './email-registration-view-4cdb4129.js';
|
|
22
|
-
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-
|
|
23
|
-
import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-
|
|
24
|
-
import { i as isEmpty } from './utilities-
|
|
22
|
+
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-e2392f42.js';
|
|
23
|
+
import { R as RequiredPropsError, L as LEAD_FORM_STATE_CONTEXT, u as useLeadFormState } from './useLeadFormState-9099c8d4.js';
|
|
24
|
+
import { i as isEmpty } from './utilities-c9e730ed.js';
|
|
25
25
|
import { E as ErrorView } from './ErrorView-74cb3af8.js';
|
|
26
|
-
import { u as useDemoBigStat, V as useBigStat, B as BigStatView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, Q as LeadDropdownFieldView, O as LeadFormView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, c as BaseRegistrationFormView, R as ReferralIframeView, i as RewardExchangeView, X as demoRewardExchange, G as useShareButton, a as ShareButtonView, J as useShareLink, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
26
|
+
import { u as useDemoBigStat, V as useBigStat, B as BigStatView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, Q as LeadDropdownFieldView, O as LeadFormView, W as withShadowView, L as LeaderboardView, N as NameFieldsView, f as ChangeMarktingView, P as PortalChangePasswordView, g as PortalFooterView, h as PortalFrameView, c as BaseRegistrationFormView, R as ReferralIframeView, i as RewardExchangeView, X as demoRewardExchange, G as useShareButton, a as ShareButtonView, J as useShareLink, S as StatContainerView, T as TaskCardView } from './ShadowViewAddon-78b791d2.js';
|
|
27
27
|
import './sqm-portal-container-view-a8c708cd.js';
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
28
|
+
import { g as getCountryObj, L as LoadingView } from './utils-8267d3d8.js';
|
|
29
|
+
import { T as TAX_CONTEXT_NAMESPACE, a as TAX_FORM_CONTEXT_NAMESPACE, U as USER_FORM_CONTEXT_NAMESPACE, C as CURRENCIES_NAMESPACE, b as COUNTRIES_NAMESPACE, S as SORTED_COUNTRIES_NAMESPACE, c as USER_QUERY_NAMESPACE, G as GET_USER$2, d as COUNTRIES_QUERY_NAMESPACE, e as GET_COUNTRIES, f as FINANCE_NETWORK_SETTINGS_NAMESPACE, g as GET_FINANCE_NETWORK_SETTINGS, h as CURRENCIES_QUERY_NAMESPACE, i as GET_CURRENCIES } from './data-33c16dff.js';
|
|
30
|
+
import { S as SHOW_CODE_NAMESPACE, a as VERIFICATION_EMAIL_NAMESPACE, V as VERIFICATION_PARENT_NAMESPACE } from './keys-db1897ae.js';
|
|
30
31
|
import './eventKeys-f76b6a03.js';
|
|
31
|
-
import { u as usePayoutStatus } from './usePayoutStatus-
|
|
32
|
+
import { u as usePayoutStatus } from './usePayoutStatus-fa504d49.js';
|
|
33
|
+
import { p as parseStates } from './parseStates-ed75e224.js';
|
|
32
34
|
|
|
33
35
|
/**
|
|
34
36
|
*
|
|
@@ -6389,19 +6391,32 @@ function useTaskCardDemo(props) {
|
|
|
6389
6391
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6390
6392
|
}
|
|
6391
6393
|
|
|
6394
|
+
/**
|
|
6395
|
+
* Util function for getting just the props with a certain prefix.
|
|
6396
|
+
* @param props Text props on stencil component
|
|
6397
|
+
* @param prefix Prefix denoting which group the text prop belongs to
|
|
6398
|
+
* @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
|
|
6399
|
+
*/
|
|
6400
|
+
function extractProps(props, prefix) {
|
|
6401
|
+
const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
|
|
6402
|
+
const formattedProps = keys.reduce((prev, k) => {
|
|
6403
|
+
const key = k.replace(prefix, "");
|
|
6404
|
+
return {
|
|
6405
|
+
...prev,
|
|
6406
|
+
[key]: props[k],
|
|
6407
|
+
};
|
|
6408
|
+
}, {});
|
|
6409
|
+
return formattedProps;
|
|
6410
|
+
}
|
|
6411
|
+
|
|
6392
6412
|
function getCurrentStep(user) {
|
|
6393
6413
|
var _a, _b;
|
|
6394
6414
|
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
6395
6415
|
return "/1";
|
|
6396
6416
|
}
|
|
6397
|
-
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount,
|
|
6398
|
-
console.log(
|
|
6399
|
-
|
|
6400
|
-
if (!billingAddress ||
|
|
6401
|
-
!billingCity ||
|
|
6402
|
-
!billingPostalCode ||
|
|
6403
|
-
!billingState ||
|
|
6404
|
-
!phoneNumber) {
|
|
6417
|
+
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
|
|
6418
|
+
console.log(user.impactConnection, "publisher data in useTaxAndCash to determine step new new");
|
|
6419
|
+
if (user.impactConnection.connectionStatus === "STARTED") {
|
|
6405
6420
|
return "/1";
|
|
6406
6421
|
}
|
|
6407
6422
|
// If they do have a required document, look at current document
|
|
@@ -7936,4 +7951,357 @@ function useUserNameDemo(props) {
|
|
|
7936
7951
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
7937
7952
|
}
|
|
7938
7953
|
|
|
7939
|
-
|
|
7954
|
+
const USER_LOOKUP = dist.gql `
|
|
7955
|
+
query checkUserVerification {
|
|
7956
|
+
viewer {
|
|
7957
|
+
... on User {
|
|
7958
|
+
id
|
|
7959
|
+
accountId
|
|
7960
|
+
email
|
|
7961
|
+
emailVerified
|
|
7962
|
+
managedIdentity {
|
|
7963
|
+
email
|
|
7964
|
+
emailVerified
|
|
7965
|
+
}
|
|
7966
|
+
impactConnection {
|
|
7967
|
+
connected
|
|
7968
|
+
}
|
|
7969
|
+
}
|
|
7970
|
+
}
|
|
7971
|
+
}
|
|
7972
|
+
`;
|
|
7973
|
+
function useWidgetVerification() {
|
|
7974
|
+
const userIdentity = J();
|
|
7975
|
+
const [showCode, setShowCode] = In({
|
|
7976
|
+
namespace: SHOW_CODE_NAMESPACE,
|
|
7977
|
+
initialValue: false,
|
|
7978
|
+
});
|
|
7979
|
+
const [email, setEmail] = In({
|
|
7980
|
+
namespace: VERIFICATION_EMAIL_NAMESPACE,
|
|
7981
|
+
initialValue: userIdentity === null || userIdentity === void 0 ? void 0 : userIdentity.email,
|
|
7982
|
+
});
|
|
7983
|
+
const setContext = En(VERIFICATION_PARENT_NAMESPACE);
|
|
7984
|
+
const [loading, setLoading] = useState(true);
|
|
7985
|
+
const [showPartnerModal, setShowPartnerModal] = useState(false);
|
|
7986
|
+
const [fetch] = Xe(USER_LOOKUP);
|
|
7987
|
+
useEffect(() => {
|
|
7988
|
+
const checkUser = async () => {
|
|
7989
|
+
var _a, _b, _c, _d, _e;
|
|
7990
|
+
try {
|
|
7991
|
+
const res = await fetch({});
|
|
7992
|
+
if (!res || res instanceof Error)
|
|
7993
|
+
throw new Error();
|
|
7994
|
+
// Flow changed to send email -> verify code -> show early partner creation modal
|
|
7995
|
+
const emailVerified = ((_a = res === null || res === void 0 ? void 0 : res.viewer) === null || _a === void 0 ? void 0 : _a.emailVerified) || ((_c = (_b = res === null || res === void 0 ? void 0 : res.viewer) === null || _b === void 0 ? void 0 : _b.managedIdentity) === null || _c === void 0 ? void 0 : _c.emailVerified);
|
|
7996
|
+
const isConnected = (_e = (_d = res === null || res === void 0 ? void 0 : res.viewer) === null || _d === void 0 ? void 0 : _d.impactConnection) === null || _e === void 0 ? void 0 : _e.connected;
|
|
7997
|
+
if (isConnected) {
|
|
7998
|
+
// Partner already created, show widget content
|
|
7999
|
+
setContext(true);
|
|
8000
|
+
}
|
|
8001
|
+
else if (emailVerified) {
|
|
8002
|
+
// Email verified but no partner yet, show partner modal
|
|
8003
|
+
setShowPartnerModal(true);
|
|
8004
|
+
}
|
|
8005
|
+
}
|
|
8006
|
+
catch (e) {
|
|
8007
|
+
console.error("Could not fetch user information:", e);
|
|
8008
|
+
}
|
|
8009
|
+
finally {
|
|
8010
|
+
setLoading(false);
|
|
8011
|
+
}
|
|
8012
|
+
};
|
|
8013
|
+
checkUser();
|
|
8014
|
+
}, []);
|
|
8015
|
+
const onVerification = () => {
|
|
8016
|
+
setShowPartnerModal(true);
|
|
8017
|
+
};
|
|
8018
|
+
const onPartnerModalComplete = () => {
|
|
8019
|
+
setShowPartnerModal(false);
|
|
8020
|
+
setContext(true);
|
|
8021
|
+
};
|
|
8022
|
+
return { showCode, showPartnerModal, onVerification, onPartnerModalComplete, loading };
|
|
8023
|
+
}
|
|
8024
|
+
|
|
8025
|
+
const style$3 = {
|
|
8026
|
+
Dialog: {
|
|
8027
|
+
"&::part(panel)": {
|
|
8028
|
+
maxWidth: "480px",
|
|
8029
|
+
},
|
|
8030
|
+
"&::part(body)": {
|
|
8031
|
+
padding: "0 var(--sl-spacing-x-large)",
|
|
8032
|
+
fontSize: "var(--sl-font-size-small)",
|
|
8033
|
+
overflow: "visible",
|
|
8034
|
+
},
|
|
8035
|
+
"&::part(footer)": {
|
|
8036
|
+
display: "flex",
|
|
8037
|
+
flexDirection: "column",
|
|
8038
|
+
gap: "var(--sl-spacing-small)",
|
|
8039
|
+
},
|
|
8040
|
+
"&::part(overlay)": {
|
|
8041
|
+
background: "rgba(0, 0, 0, 0.5)",
|
|
8042
|
+
},
|
|
8043
|
+
},
|
|
8044
|
+
DialogTitle: {
|
|
8045
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
8046
|
+
fontWeight: "600",
|
|
8047
|
+
padding: "var(--sl-spacing-x-large) 0 0 0",
|
|
8048
|
+
margin: "0",
|
|
8049
|
+
},
|
|
8050
|
+
};
|
|
8051
|
+
const sheet$3 = createStyleSheet(style$3);
|
|
8052
|
+
const styleString$3 = sheet$3.toString();
|
|
8053
|
+
const WidgetVerification = class {
|
|
8054
|
+
constructor(hostRef) {
|
|
8055
|
+
registerInstance(this, hostRef);
|
|
8056
|
+
// ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification AND sqm-partner-info-modal
|
|
8057
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8058
|
+
GENERAL PROPS
|
|
8059
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8060
|
+
/**
|
|
8061
|
+
* @uiName General widget header text with partner creation
|
|
8062
|
+
* @uiGroup General Text
|
|
8063
|
+
*/
|
|
8064
|
+
this.general_widgetHeaderWithPartnerCreation = "Let's get you ready for rewards";
|
|
8065
|
+
/**
|
|
8066
|
+
* @uiName General verify widget header text
|
|
8067
|
+
* @uiGroup General Text
|
|
8068
|
+
*/
|
|
8069
|
+
this.general_verifyEmailHeader = "Verify your email";
|
|
8070
|
+
/**
|
|
8071
|
+
* @uiName General verify widget description text
|
|
8072
|
+
* @uiGroup General Text
|
|
8073
|
+
*/
|
|
8074
|
+
this.general_verifyEmailDescription = "To get your cash paid out directly to your bank account, please complete your account setup";
|
|
8075
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8076
|
+
EMAIL STEP PROPS
|
|
8077
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8078
|
+
/**
|
|
8079
|
+
* @uiName Verify email widget header text
|
|
8080
|
+
* @uiGroup Email Verification Step
|
|
8081
|
+
*/
|
|
8082
|
+
this.emailStep_verifyEmailHeaderText = "Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";
|
|
8083
|
+
/**
|
|
8084
|
+
* @uiName Send code to email alert header
|
|
8085
|
+
* @uiGroup Email Verification Step
|
|
8086
|
+
*/
|
|
8087
|
+
this.emailStep_sendCodeErrorHeader = "There was an error sending your code.";
|
|
8088
|
+
/**
|
|
8089
|
+
* @uiName Send code to email alert description
|
|
8090
|
+
* @uiGroup Email Verification Step
|
|
8091
|
+
*/
|
|
8092
|
+
this.emailStep_sendCodeErrorDescription = "Please try again. If this problem continues, contact our program support team.";
|
|
8093
|
+
/**
|
|
8094
|
+
* @uiName Email input label
|
|
8095
|
+
* @uiGroup Email Verification Step
|
|
8096
|
+
*/
|
|
8097
|
+
this.emailStep_emailLabel = "Email";
|
|
8098
|
+
/**
|
|
8099
|
+
* @uiName Send code button text
|
|
8100
|
+
* @uiGroup Email Verification Step
|
|
8101
|
+
*/
|
|
8102
|
+
this.emailStep_sendCodeText = "Send code";
|
|
8103
|
+
/**
|
|
8104
|
+
* @uiName Send code button text
|
|
8105
|
+
* @uiGroup Email Verification Step
|
|
8106
|
+
*/
|
|
8107
|
+
this.emailStep_emailValidationErrorText = "Please enter a valid email";
|
|
8108
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8109
|
+
CODE STEP PROPS
|
|
8110
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8111
|
+
/**
|
|
8112
|
+
* @uiName Verify code widget header text
|
|
8113
|
+
* @uiGroup Code Verification Step
|
|
8114
|
+
*/
|
|
8115
|
+
this.codeStep_verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
8116
|
+
/**
|
|
8117
|
+
* @uiName Reverify code widget header text
|
|
8118
|
+
* @uiGroup Code Verification Step
|
|
8119
|
+
*/
|
|
8120
|
+
this.codeStep_reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
8121
|
+
/**
|
|
8122
|
+
* Text displayed under verify button
|
|
8123
|
+
* @uiName Resend code text
|
|
8124
|
+
* @uiGroup Code Verification Step
|
|
8125
|
+
*/
|
|
8126
|
+
this.codeStep_resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
8127
|
+
/**
|
|
8128
|
+
* The link that appears in the resend code link
|
|
8129
|
+
* @uiName Resend code label
|
|
8130
|
+
* @uiGroup Code Verification Step
|
|
8131
|
+
*/
|
|
8132
|
+
this.codeStep_resendCodeLabel = "Resend code";
|
|
8133
|
+
/**
|
|
8134
|
+
* Link text displayed under verify button
|
|
8135
|
+
* @uiName Resend code text
|
|
8136
|
+
* @uiGroup Code Verification Step
|
|
8137
|
+
*/
|
|
8138
|
+
this.codeStep_codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
8139
|
+
/**
|
|
8140
|
+
* Error text displayed under verification input
|
|
8141
|
+
* @uiName Invalid code text
|
|
8142
|
+
* @uiGroup Code Verification Step
|
|
8143
|
+
*/
|
|
8144
|
+
this.codeStep_invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
8145
|
+
/**
|
|
8146
|
+
* @uiName Verify code button text
|
|
8147
|
+
* @uiGroup Code Verification Step
|
|
8148
|
+
*/
|
|
8149
|
+
this.codeStep_verifyText = "Verify";
|
|
8150
|
+
/**
|
|
8151
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
8152
|
+
* @uiName Network error message
|
|
8153
|
+
* @uiGroup Code Verification Step
|
|
8154
|
+
*/
|
|
8155
|
+
this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
8156
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8157
|
+
PARTNER CREATION STEP PROPS
|
|
8158
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8159
|
+
/**
|
|
8160
|
+
* @uiName New partner header
|
|
8161
|
+
* @uiGroup Partner Creation Step
|
|
8162
|
+
* @uiWidget textArea
|
|
8163
|
+
*/
|
|
8164
|
+
this.createPartnerStep_modalHeader = "Let's get you ready for rewards";
|
|
8165
|
+
/**
|
|
8166
|
+
* @uiName Existing partner header
|
|
8167
|
+
* @uiGroup Partner Creation Step
|
|
8168
|
+
* @uiWidget textArea
|
|
8169
|
+
*/
|
|
8170
|
+
this.createPartnerStep_modalHeaderExistingPartner = "We found an existing account";
|
|
8171
|
+
/**
|
|
8172
|
+
* @uiName New partner description
|
|
8173
|
+
* @uiGroup Partner Creation Step
|
|
8174
|
+
* @uiWidget textArea
|
|
8175
|
+
*/
|
|
8176
|
+
this.createPartnerStep_descriptionNewPartner = "Confirm your country and currency now to get your future rewards faster.";
|
|
8177
|
+
/**
|
|
8178
|
+
* @uiName Existing partner description
|
|
8179
|
+
* @uiGroup Partner Creation Step
|
|
8180
|
+
* @uiWidget textArea
|
|
8181
|
+
*/
|
|
8182
|
+
this.createPartnerStep_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.";
|
|
8183
|
+
/**
|
|
8184
|
+
* @uiName Existing partner support description
|
|
8185
|
+
* @uiGroup Partner Creation Step
|
|
8186
|
+
* @uiWidget textArea
|
|
8187
|
+
*/
|
|
8188
|
+
this.createPartnerStep_supportDescriptionExistingPartner = "If this is a mistake, please contact Support or sign up for this referral program with a different email.";
|
|
8189
|
+
/**
|
|
8190
|
+
* @uiName Country label
|
|
8191
|
+
* @uiGroup Partner Creation Step
|
|
8192
|
+
*/
|
|
8193
|
+
this.createPartnerStep_countryLabel = "Country";
|
|
8194
|
+
/**
|
|
8195
|
+
* @uiName Currency label
|
|
8196
|
+
* @uiGroup Partner Creation Step
|
|
8197
|
+
*/
|
|
8198
|
+
this.createPartnerStep_currencyLabel = "Currency";
|
|
8199
|
+
/**
|
|
8200
|
+
* @uiName Submit button label
|
|
8201
|
+
* @uiGroup Partner Creation Step
|
|
8202
|
+
*/
|
|
8203
|
+
this.createPartnerStep_submitButtonLabel = "Submit";
|
|
8204
|
+
/**
|
|
8205
|
+
* @uiName Confirm button label
|
|
8206
|
+
* @uiGroup Partner Creation Step
|
|
8207
|
+
*/
|
|
8208
|
+
this.createPartnerStep_confirmButtonLabel = "Confirm";
|
|
8209
|
+
/**
|
|
8210
|
+
* @uiName Search country placeholder
|
|
8211
|
+
* @uiGroup Partner Creation Step
|
|
8212
|
+
*/
|
|
8213
|
+
this.createPartnerStep_searchCountryPlaceholder = "Search for a country";
|
|
8214
|
+
/**
|
|
8215
|
+
* @uiName Search currency placeholder
|
|
8216
|
+
* @uiGroup Partner Creation Step
|
|
8217
|
+
*/
|
|
8218
|
+
this.createPartnerStep_searchCurrencyPlaceholder = "Search for a currency";
|
|
8219
|
+
/**
|
|
8220
|
+
* @uiName Network error text
|
|
8221
|
+
* @uiGroup Partner Creation Step
|
|
8222
|
+
* @uiWidget textArea
|
|
8223
|
+
*/
|
|
8224
|
+
this.createPartnerStep_networkErrorText = "An error occurred. Please try again.";
|
|
8225
|
+
/**
|
|
8226
|
+
* @uiName Missing fields error text
|
|
8227
|
+
* @uiGroup Partner Creation Step
|
|
8228
|
+
* @uiWidget textArea
|
|
8229
|
+
*/
|
|
8230
|
+
this.createPartnerStep_missingFieldsErrorText = "Please select both a country and currency.";
|
|
8231
|
+
/**
|
|
8232
|
+
* @undocumented
|
|
8233
|
+
* @componentState { "title": "Step 1: Enter email", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"], "uiGroup": "Email Verification Step" }
|
|
8234
|
+
* @componentState { "title": "Step 2: Enter code", "props": { "showCode": true }, "dependencies": ["sqm-code-verification"], "uiGroup": "Code Verification Step" }
|
|
8235
|
+
* @componentState { "title": "Step 3: Create Partner", "props": { "showPartnerModal": true }, "dependencies": ["sqm-partner-info-modal"], "uiGroup": "Partner Creation Step" }
|
|
8236
|
+
*/
|
|
8237
|
+
this.stateController = "{}";
|
|
8238
|
+
h(this);
|
|
8239
|
+
}
|
|
8240
|
+
disconnectedCallback() { }
|
|
8241
|
+
getStepTextProps(prefix) {
|
|
8242
|
+
const props = getProps(this);
|
|
8243
|
+
return extractProps(props, prefix);
|
|
8244
|
+
}
|
|
8245
|
+
render() {
|
|
8246
|
+
var _a;
|
|
8247
|
+
const props = isDemo()
|
|
8248
|
+
? useDemoWidgetVerificationInternal(this)
|
|
8249
|
+
: useWidgetVerification();
|
|
8250
|
+
if (props.loading)
|
|
8251
|
+
return h$1("sl-spinner", null);
|
|
8252
|
+
// for handling state previews in content editor
|
|
8253
|
+
const partnerState = typeof props["sqm-partner-info-modal_stateController"] === "string"
|
|
8254
|
+
? parseStates(props["sqm-partner-info-modal_stateController"])
|
|
8255
|
+
: props["sqm-partner-info-modal_stateController"];
|
|
8256
|
+
if (props.showPartnerModal && ((_a = partnerState === null || partnerState === void 0 ? void 0 : partnerState.states) === null || _a === void 0 ? void 0 : _a.open) === false) {
|
|
8257
|
+
return h$1("div", null);
|
|
8258
|
+
}
|
|
8259
|
+
// const generalText = this.getStepTextProps("general_");
|
|
8260
|
+
const partnerText = this.getStepTextProps("createPartnerStep_");
|
|
8261
|
+
const dialogLabel = this.general_widgetHeaderWithPartnerCreation;
|
|
8262
|
+
const renderStepContent = () => {
|
|
8263
|
+
if (props.showPartnerModal) {
|
|
8264
|
+
return (h$1("sqm-partner-info-modal", Object.assign({ inModal: true }, partnerText, { stateController: props["sqm-partner-info-modal_stateController"] || "{}" })));
|
|
8265
|
+
}
|
|
8266
|
+
if (props.showCode) {
|
|
8267
|
+
return (h$1("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps(props, "sqm-code-verification_"))));
|
|
8268
|
+
}
|
|
8269
|
+
return (h$1("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps(props, "sqm-email-verification_"))));
|
|
8270
|
+
};
|
|
8271
|
+
return (h$1("div", null, h$1("style", { type: "text/css" }, styleString$3), h$1("sl-dialog", { class: sheet$3.classes.Dialog, noHeader: true, open: true, label: dialogLabel, "onSl-request-close": (e) => {
|
|
8272
|
+
e.preventDefault();
|
|
8273
|
+
}, "onSl-hide": (e) => {
|
|
8274
|
+
var _a;
|
|
8275
|
+
if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === "SL-DIALOG") {
|
|
8276
|
+
e.preventDefault();
|
|
8277
|
+
}
|
|
8278
|
+
} }, h$1("h2", { class: sheet$3.classes.DialogTitle }, dialogLabel), renderStepContent())));
|
|
8279
|
+
}
|
|
8280
|
+
};
|
|
8281
|
+
function useDemoWidgetVerificationInternal(props) {
|
|
8282
|
+
const [showCode, setShowCode] = In({
|
|
8283
|
+
namespace: SHOW_CODE_NAMESPACE,
|
|
8284
|
+
initialValue: false,
|
|
8285
|
+
});
|
|
8286
|
+
const [email, setEmail] = In({
|
|
8287
|
+
namespace: VERIFICATION_EMAIL_NAMESPACE,
|
|
8288
|
+
initialValue: undefined,
|
|
8289
|
+
});
|
|
8290
|
+
const setContext = En(VERIFICATION_PARENT_NAMESPACE);
|
|
8291
|
+
const states = parseStates(props.stateController);
|
|
8292
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-widget-verification"
|
|
8293
|
+
? { ...prev, ...states[key] }
|
|
8294
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
8295
|
+
const onVerification = () => {
|
|
8296
|
+
setContext(true);
|
|
8297
|
+
};
|
|
8298
|
+
return cjs({
|
|
8299
|
+
showCode,
|
|
8300
|
+
showPartnerModal: false,
|
|
8301
|
+
onVerification,
|
|
8302
|
+
onPartnerModalComplete: () => { },
|
|
8303
|
+
loading: false,
|
|
8304
|
+
}, formatted || {}, { arrayMerge: (_, a) => a });
|
|
8305
|
+
}
|
|
8306
|
+
|
|
8307
|
+
export { BigStat as sqm_big_stat, BrandComponent as sqm_brand, SqmBrandSelector as sqm_brand_selector, CardFeed as sqm_card_feed, CheckboxField as sqm_checkbox_field, CouponCode as sqm_coupon_code, DividedLayout as sqm_divided_layout, DropdownField as sqm_dropdown_field, EditProfile as sqm_edit_profile, Hero as sqm_hero, HeroImage as sqm_hero_image, SqmHookStoryContainer as sqm_hook_story_container, Image as sqm_image, InputField as sqm_input_field, LeadDropdownField as sqm_lead_dropdown_field, LeadForm as sqm_lead_form, Leaderboard as sqm_leaderboard, LinkButton as sqm_link_button, MarketingEmailsCheckbox as sqm_marketing_emails_checkbox, NameFields as sqm_name_fields, NavigationMenu as sqm_navigation_menu, PayoutButtonScroll as sqm_payout_button_scroll, PayoutStatusAlert as sqm_payout_status_alert, PortalChangeMarketing as sqm_portal_change_marketing, PortalChangePassword as sqm_portal_change_password, PortalFooter as sqm_portal_footer, PortalFrame as sqm_portal_frame, PortalGoogleRegistrationForm as sqm_portal_google_registration_form, ProgramExplainer as sqm_program_explainer, ProgramExplainerStep as sqm_program_explainer_step, ProgramMenu as sqm_program_menu, ReferralCard as sqm_referral_card, SqmReferralIframe as sqm_referral_iframe, ReferredRegistration as sqm_referred_registration, SqmRewardExchangeList as sqm_reward_exchange_list, SqmRouter as sqm_router, ShareButton as sqm_share_button, ShareCode as sqm_share_code, ShareLink as sqm_share_link, StatContainer as sqm_stat_container, TaskCard as sqm_task_card, TaxAndCashMonolith as sqm_tax_and_cash, Timeline as sqm_timeline, TimelineReward as sqm_timeline_entry, UserName as sqm_user_name, WidgetVerification as sqm_widget_verification };
|