@saasquatch/mint-components 2.1.9-0 → 2.1.9-10
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/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 +1 -1
- package/dist/cjs/{sqm-big-stat_45.cjs.entry.js → sqm-big-stat_46.cjs.entry.js} +371 -5
- package/dist/cjs/sqm-code-verification.cjs.entry.js +3 -4
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +17 -9
- package/dist/cjs/{sqm-partner-info-modal-view-e3faede9.js → sqm-partner-info-modal-view-cd758f12.js} +1 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +28 -2
- package/dist/cjs/{sqm-user-info-form-view-efa08934.js → sqm-user-info-form-view-923ff8d9.js} +3 -11
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +1 -2
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +46 -5
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +6 -6
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +2 -0
- 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 +473 -6
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +14 -13
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +3 -11
- package/dist/esm/{ShadowViewAddon-d382a63e.js → ShadowViewAddon-657d18f0.js} +5 -5
- package/dist/esm/{data-a6752028.js → data-2b0feb3f.js} +2 -2
- 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 +9 -9
- package/dist/esm/{sqm-big-stat_45.entry.js → sqm-big-stat_46.entry.js} +380 -15
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +7 -8
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification_2.entry.js +21 -13
- 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-dbedda28.js} +1 -2
- 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-80736644.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-a172bdcc.js → sqm-portal-profile-view-a6be8558.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +4 -4
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/{sqm-portal-verify-email-view-c1a72c4f.js → sqm-portal-verify-email-view-92297506.js} +1 -1
- package/dist/esm/sqm-qr-code.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +5 -5
- 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 +41 -15
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{sqm-user-info-form-view-b2dd8aa1.js → sqm-user-info-form-view-f9026468.js} +5 -13
- 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-es5/{ShadowViewAddon-d382a63e.js → ShadowViewAddon-657d18f0.js} +1 -1
- package/dist/esm-es5/{data-a6752028.js → data-2b0feb3f.js} +1 -1
- 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-dbedda28.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-80736644.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-a6be8558.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-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-c1a72c4f.js → sqm-portal-verify-email-view-92297506.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-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-user-info-form-view-b2dd8aa1.js → sqm-user-info-form-view-f9026468.js} +1 -1
- 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/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-9f21ea69.js → p-014977d7.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-bae7d6b5.system.entry.js → p-098d134a.system.entry.js} +1 -1
- 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-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-fa32d8eb.system.entry.js → p-15a703c7.system.entry.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-1435edd4.entry.js → p-1b0cbbae.entry.js} +1 -1
- package/dist/mint-components/{p-aa0b0cd6.entry.js → p-1b2fcd7f.entry.js} +1 -1
- package/dist/mint-components/p-1c413a06.system.js +1 -0
- package/dist/mint-components/{p-2774c704.system.entry.js → p-21e7079a.system.entry.js} +1 -1
- package/dist/mint-components/{p-695ec086.system.js → p-28e0062c.system.js} +1 -1
- 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-5d79c8a0.system.js → p-31dde9fc.system.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-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-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-f7948b16.system.entry.js → p-52748a87.system.entry.js} +1 -1
- package/dist/mint-components/{p-614630a8.system.js → p-54bf015a.system.js} +1 -1
- package/dist/mint-components/{p-2085bb01.system.entry.js → p-59f69bdc.system.entry.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-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-9be145c6.system.entry.js → p-64b56141.system.entry.js} +1 -1
- package/dist/mint-components/{p-1b9705fd.system.js → p-64f56cc9.system.js} +1 -1
- package/dist/mint-components/p-6638c7c6.system.js +1 -0
- package/dist/mint-components/{p-f95952a0.system.entry.js → p-66c0100c.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-1775cb0c.system.js → p-70e34ae1.system.js} +2 -2
- package/dist/mint-components/p-7144ac40.js +1 -0
- package/dist/mint-components/{p-20280398.system.entry.js → p-71545bfd.system.entry.js} +1 -1
- package/dist/mint-components/{p-6d444f3f.system.js → p-74aac245.system.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-7a5814ef.system.entry.js +1 -0
- package/dist/mint-components/p-7de884a0.system.entry.js +1 -0
- package/dist/mint-components/{p-a03189bd.js → p-7e36a1ff.js} +1 -1
- package/dist/mint-components/{p-5450693e.entry.js → p-8139fdec.entry.js} +1 -1
- 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-97b8c481.js → p-896390f9.js} +1 -1
- package/dist/mint-components/{p-fca34d77.js → p-8f9c1387.js} +1 -1
- package/dist/mint-components/{p-44afc747.entry.js → p-93c5c8ec.entry.js} +1 -1
- 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-07f3b868.entry.js → p-9e43f1eb.entry.js} +1 -1
- package/dist/mint-components/{p-9fa6606e.js → p-a5912b2f.js} +1 -1
- package/dist/mint-components/{p-7a7ebf08.js → p-a7ee6531.js} +1 -1
- package/dist/mint-components/{p-83277c69.system.js → p-a86ce218.system.js} +1 -1
- package/dist/mint-components/{p-d6c1e876.system.js → p-a8ecdc44.system.js} +1 -1
- package/dist/mint-components/p-adcc37f3.entry.js +105 -0
- package/dist/mint-components/{p-f3b21df2.system.js → p-b1b8e629.system.js} +1 -1
- package/dist/mint-components/{p-93cb9438.system.entry.js → p-b297016f.system.entry.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-ad017a39.js → p-b5f57914.js} +1 -1
- package/dist/mint-components/{p-80174c14.entry.js → p-b5fed7c6.entry.js} +1 -1
- package/dist/mint-components/{p-c2c01ab5.entry.js → p-ba953c21.entry.js} +1 -1
- package/dist/mint-components/{p-47f594c3.entry.js → p-bba694e4.entry.js} +1 -1
- package/dist/mint-components/{p-d5375baf.js → p-bcadd021.js} +1 -1
- package/dist/mint-components/{p-79854479.system.js → p-be63f29b.system.js} +1 -1
- package/dist/mint-components/p-bfbfde38.entry.js +33 -0
- 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-d1a2d813.entry.js +291 -0
- package/dist/mint-components/{p-1d450b85.js → p-d20188db.js} +1 -1
- package/dist/mint-components/{p-6596f0de.entry.js → p-d2927531.entry.js} +2 -2
- 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-5e106c95.system.js → p-d798004f.system.js} +1 -1
- package/dist/mint-components/p-dac1f2cb.system.entry.js +1 -0
- package/dist/mint-components/{p-7333d103.system.entry.js → p-dbdb2a46.system.entry.js} +1 -1
- package/dist/mint-components/{p-c756bc32.system.js → p-e4dbca9a.system.js} +1 -1
- package/dist/mint-components/{p-7c0255ad.entry.js → p-e5ee6cf5.entry.js} +2 -2
- 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-3dc1e209.system.js → p-eaf5d0af.system.js} +1 -1
- package/dist/mint-components/{p-84866680.entry.js → p-f11d29fd.entry.js} +1 -1
- package/dist/mint-components/{p-dece706f.js → p-f18a6658.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/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +9 -2
- 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 +73 -0
- package/dist/types/components.d.ts +163 -3
- 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-partner-info-modal.cjs.entry.js +0 -396
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +0 -231
- package/dist/esm/extractProps-54064fb0.js +0 -32
- package/dist/esm/sqm-partner-info-modal.entry.js +0 -392
- package/dist/esm/sqm-widget-verification.entry.js +0 -227
- 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-partner-info-modal.entry.js +0 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +0 -1
- package/dist/mint-components/mint-components.system.js +0 -1
- package/dist/mint-components/p-0797a946.js +0 -1
- package/dist/mint-components/p-1b0d7020.js +0 -1
- package/dist/mint-components/p-2c0bb139.entry.js +0 -33
- package/dist/mint-components/p-35724e1c.entry.js +0 -1
- package/dist/mint-components/p-38c7775a.js +0 -1
- package/dist/mint-components/p-3b2ae7b9.entry.js +0 -105
- package/dist/mint-components/p-4b365f1f.system.js +0 -1
- package/dist/mint-components/p-57dd28bd.system.js +0 -1
- package/dist/mint-components/p-71c585b7.entry.js +0 -1
- package/dist/mint-components/p-78909fc0.system.js +0 -1
- package/dist/mint-components/p-a0667674.system.entry.js +0 -1
- package/dist/mint-components/p-a9855b29.system.entry.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
- package/dist/mint-components/p-ef64e6f0.entry.js +0 -16
- package/dist/mint-components/p-fd214860.system.entry.js +0 -1
- package/dist/mint-components/sqm-partner-info-modal.entry.js +0 -392
- package/dist/mint-components/sqm-partner-info-modal.system.entry.js +0 -1
- package/dist/mint-components/sqm-widget-verification.entry.js +0 -228
- package/dist/mint-components/sqm-widget-verification.system.entry.js +0 -1
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{r as e,h as i}from"./p-083180bf.js";import{k as r,f as o,n as t}from"./p-a7fc1e02.js";import{d as a,J as n,I as s,q as c,X as l,i as d}from"./p-1d450b85.js";import{c as m}from"./p-c1086930.js";import{g as u}from"./p-9ec99ced.js";import{e as f,p as h}from"./p-0797a946.js";import{S as p,V as y,a as v}from"./p-38c7775a.js";import{T as g}from"./p-28ed2ae9.js";const w=a.gql`
|
|
2
|
-
query checkUserVerification {
|
|
3
|
-
viewer {
|
|
4
|
-
... on User {
|
|
5
|
-
id
|
|
6
|
-
accountId
|
|
7
|
-
email
|
|
8
|
-
emailVerified
|
|
9
|
-
managedIdentity {
|
|
10
|
-
email
|
|
11
|
-
emailVerified
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
`,V=class{constructor(i){e(this,i),this.general_verifyEmailHeader="Verify your email",this.general_verifyEmailDescription="To get your cash paid out directly to your bank account, please complete your account setup",this.emailStep_verifyEmailHeaderText="Start by verifying your email. We’ll send you a code through our referral provider, impact.com.",this.emailStep_sendCodeErrorHeader="There was an error sending your code.",this.emailStep_sendCodeErrorDescription="Please try again. If this problem continues, contact our program support team.",this.emailStep_emailLabel="Email",this.emailStep_sendCodeText="Send code",this.emailStep_emailValidationErrorText="Please enter a valid email",this.codeStep_verifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.",this.codeStep_reverifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.",this.codeStep_resendCodeText="Didn't receive your code? {resendCodeLink}",this.codeStep_resendCodeLabel="Resend code",this.codeStep_codeResentSuccessfullyText="Another code has been sent to {email}",this.codeStep_invalidCodeText="Please check your code and try again. If you’re still having trouble, try resending your code.",this.codeStep_verifyText="Verify",this.codeStep_networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.",this.stateController="{}",t(this)}disconnectedCallback(){}getStepTextProps(e){const i=u(this);return f(i,e)}render(){const e=d()?function(e){const[i,r]=s({namespace:p,initialValue:!1}),[o,t]=s({namespace:y,initialValue:void 0}),a=c(v),n=h(e.stateController),l=Object.keys(n).reduce(((e,i)=>"sqm-widget-verification"===i?{...e,...n[i]}:{...e,[`${i}_stateController`]:n[i]}),{});return m({showCode:i,showPartnerModal:!1,onVerification:()=>{a(!0)},onPartnerModalComplete:()=>{},loading:!1},l||{},{arrayMerge:(e,i)=>i})}(this):function(){const e=n(),[i,t]=s({namespace:p,initialValue:!1}),[a,d]=s({namespace:y,initialValue:null==e?void 0:e.email}),m=c(v),[u,f]=r(!0),[h,V]=r(!1),[b]=l(w);o((()=>{(async()=>{var e,i,r;try{const o=await b({});if(!o||o instanceof Error)throw new Error;((null===(e=null==o?void 0:o.viewer)||void 0===e?void 0:e.emailVerified)||(null===(r=null===(i=null==o?void 0:o.viewer)||void 0===i?void 0:i.managedIdentity)||void 0===r?void 0:r.emailVerified))&&m(!0)}catch(e){console.error("Could not fetch user information:",e)}finally{f(!1)}})()}),[]);const j=()=>{V(!1),m(!0)};return o((()=>{if(!h)return;const e=()=>j();return window.addEventListener(g,e),()=>window.removeEventListener(g,e)}),[h]),{showCode:i,showPartnerModal:h,onVerification:()=>{V(!0)},onPartnerModalComplete:j,loading:u}}();if(e.loading)return i("sl-spinner",null);if(e.showPartnerModal)return i("sqm-partner-info-modal",null);const t=this.getStepTextProps("general_");return i("div",null,i("h3",{style:{fontSize:"24px",margin:"0"}},t.verifyEmailHeader),i("p",{style:{color:"var(--sl-color-neutral-500)",fontSize:"var(--sl-font-size-medium)",margin:"0"}},t.verifyEmailDescription),e.showCode?i("sqm-code-verification",Object.assign({onVerification:e.onVerification},this.getStepTextProps("codeStep_"),f(e,"sqm-code-verification_"))):i("sqm-email-verification",Object.assign({},this.getStepTextProps("emailStep_"),f(e,"sqm-email-verification_"))))}};export{V as sqm_widget_verification}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n["throw"](e))}catch(e){a(e)}}function l(e){e.done?r(e.value):i(e.value).then(o,s)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;i=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){r.label=o[1];break}if(o[0]===6&&r.label<a[1]){r.label=a[1];a=o;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(o);break}if(a[2])r.ops.pop();r.trys.pop();continue}o=t.call(e,r)}catch(e){o=[6,e];i=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-641f968d.system.js","./p-b6504987.system.js","./p-d6c1e876.system.js","./p-4bd679a7.system.js","./p-6333265f.system.js","./p-e55aafe9.system.js","./p-57dd28bd.system.js","./p-6f8dde97.system.js"],(function(e){"use strict";var t,r,n,i,a,o,s,l,c,u,d,f,p,m,v,h,y,_,g;return{setters:[function(e){t=e.r;r=e.h},function(e){n=e.k;i=e.f;a=e.n},function(e){o=e.d;s=e.J;l=e.I;c=e.q;u=e.X;d=e.i},function(e){f=e.c},function(e){p=e.g},function(e){m=e.e;v=e.p},function(e){h=e.S;y=e.V;_=e.a},function(e){g=e.T}],execute:function(){var w=o.gql(__makeTemplateObject(["\n query checkUserVerification {\n viewer {\n ... on User {\n id\n accountId\n email\n emailVerified\n managedIdentity {\n email\n emailVerified\n }\n }\n }\n }\n"],["\n query checkUserVerification {\n viewer {\n ... on User {\n id\n accountId\n email\n emailVerified\n managedIdentity {\n email\n emailVerified\n }\n }\n }\n }\n"]));function b(){var e=this;var t=s();var r=l({namespace:h,initialValue:false}),a=r[0],o=r[1];var d=l({namespace:y,initialValue:t===null||t===void 0?void 0:t.email}),f=d[0],p=d[1];var m=c(_);var v=n(true),b=v[0],S=v[1];var x=n(false),T=x[0],V=x[1];var C=u(w)[0];i((function(){var t=function(){return __awaiter(e,void 0,void 0,(function(){var e,t,r,n,i;return __generator(this,(function(a){switch(a.label){case 0:a.trys.push([0,2,3,4]);return[4,C({})];case 1:n=a.sent();if(!n||n instanceof Error)throw new Error;if((e=n===null||n===void 0?void 0:n.viewer)===null||e===void 0?void 0:e.emailVerified)m(true);else if((r=(t=n===null||n===void 0?void 0:n.viewer)===null||t===void 0?void 0:t.managedIdentity)===null||r===void 0?void 0:r.emailVerified)m(true);return[3,4];case 2:i=a.sent();console.error("Could not fetch user information:",i);return[3,4];case 3:S(false);return[7];case 4:return[2]}}))}))};t()}),[]);var j=function(){V(true)};var E=function(){V(false);m(true)};i((function(){if(!T)return;var e=function(){return E()};window.addEventListener(g,e);return function(){return window.removeEventListener(g,e)}}),[T]);return{showCode:a,showPartnerModal:T,onVerification:j,onPartnerModalComplete:E,loading:b}}var S=e("sqm_widget_verification",function(){function e(e){t(this,e);this.general_verifyEmailHeader="Verify your email";this.general_verifyEmailDescription="To get your cash paid out directly to your bank account, please complete your account setup";this.emailStep_verifyEmailHeaderText="Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";this.emailStep_sendCodeErrorHeader="There was an error sending your code.";this.emailStep_sendCodeErrorDescription="Please try again. If this problem continues, contact our program support team.";this.emailStep_emailLabel="Email";this.emailStep_sendCodeText="Send code";this.emailStep_emailValidationErrorText="Please enter a valid email";this.codeStep_verifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.";this.codeStep_reverifyCodeHeaderText="Enter the code sent to {email} from our referral provider, impact.com.";this.codeStep_resendCodeText="Didn't receive your code? {resendCodeLink}";this.codeStep_resendCodeLabel="Resend code";this.codeStep_codeResentSuccessfullyText="Another code has been sent to {email}";this.codeStep_invalidCodeText="Please check your code and try again. If you’re still having trouble, try resending your code.";this.codeStep_verifyText="Verify";this.codeStep_networkErrorMessage="An error occurred while verifying your email. Please refresh the page and try again.";this.stateController="{}";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.getStepTextProps=function(e){var t=p(this);return m(t,e)};e.prototype.render=function(){var e=d()?x(this):b();if(e.loading)return r("sl-spinner",null);if(e.showPartnerModal){return r("sqm-partner-info-modal",null)}var t=this.getStepTextProps("general_");return r("div",null,r("h3",{style:{fontSize:"24px",margin:"0"}},t.verifyEmailHeader),r("p",{style:{color:"var(--sl-color-neutral-500)",fontSize:"var(--sl-font-size-medium)",margin:"0"}},t.verifyEmailDescription),e.showCode?r("sqm-code-verification",Object.assign({onVerification:e.onVerification},this.getStepTextProps("codeStep_"),m(e,"sqm-code-verification_"))):r("sqm-email-verification",Object.assign({},this.getStepTextProps("emailStep_"),m(e,"sqm-email-verification_"))))};return e}());function x(e){var t=l({namespace:h,initialValue:false}),r=t[0],n=t[1];var i=l({namespace:y,initialValue:undefined}),a=i[0],o=i[1];var s=c(_);var u=v(e.stateController);var d=Object.keys(u).reduce((function(e,t){var r;return t==="sqm-widget-verification"?__assign(__assign({},e),u[t]):__assign(__assign({},e),(r={},r[t+"_stateController"]=u[t],r))}),{});var p=function(){s(true)};return f({showCode:r,showPartnerModal:false,onVerification:p,onPartnerModalComplete:function(){},loading:false},d||{},{arrayMerge:function(e,t){return t}})}}}}));
|
|
@@ -1,392 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h as h$1 } from './index-d9876cd5.js';
|
|
2
|
-
import { i as useState, j as useEffect, o as h } from './dom-context-hooks.module-8411297a.js';
|
|
3
|
-
import { d as dist, L, w as wn, $ as $e, i as isDemo } from './index.module-5db56a7a.js';
|
|
4
|
-
import './jss-preset-default.esm-c36417f8.js';
|
|
5
|
-
import './JSS-8c381d8b.js';
|
|
6
|
-
import { g as getProps } from './utils-61821fb1.js';
|
|
7
|
-
import { c as cjs } from './cjs-e829b75b.js';
|
|
8
|
-
import { P as PartnerInfoModalView } from './sqm-partner-info-modal-view-eb3493ec.js';
|
|
9
|
-
import { T as TAX_FORM_UPDATED_EVENT_KEY } from './eventKeys-f76b6a03.js';
|
|
10
|
-
|
|
11
|
-
// new field under impactConnection:{ resolvedByEmail: boolean } - determines if connection came from managed identity
|
|
12
|
-
const GET_USER_PARTNER_INFO = dist.gql `
|
|
13
|
-
query getUserPartnerInfo {
|
|
14
|
-
user: viewer {
|
|
15
|
-
... on User {
|
|
16
|
-
id
|
|
17
|
-
accountId
|
|
18
|
-
firstName
|
|
19
|
-
lastName
|
|
20
|
-
email
|
|
21
|
-
countryCode
|
|
22
|
-
customFields
|
|
23
|
-
impactConnection {
|
|
24
|
-
connected
|
|
25
|
-
publisher {
|
|
26
|
-
phoneNumber
|
|
27
|
-
phoneNumberCountryCode
|
|
28
|
-
countryCode
|
|
29
|
-
currency
|
|
30
|
-
requiredTaxDocumentType
|
|
31
|
-
currentTaxDocument {
|
|
32
|
-
type
|
|
33
|
-
status
|
|
34
|
-
}
|
|
35
|
-
withdrawalSettings {
|
|
36
|
-
paymentMethod
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
`;
|
|
44
|
-
const GET_COUNTRIES = dist.gql `
|
|
45
|
-
query getCountries {
|
|
46
|
-
impactPayoutCountries(limit: 1000) {
|
|
47
|
-
data {
|
|
48
|
-
countryCode
|
|
49
|
-
displayName
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
`;
|
|
54
|
-
const GET_CURRENCIES = dist.gql `
|
|
55
|
-
query currencies($locale: RSLocale) {
|
|
56
|
-
currencies(limit: 300) {
|
|
57
|
-
data {
|
|
58
|
-
displayName(locale: $locale)
|
|
59
|
-
currencyCode
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
`;
|
|
64
|
-
const CONNECT_PARTNER = dist.gql `
|
|
65
|
-
mutation createImpactConnection($vars: ImpactConnectionInput!) {
|
|
66
|
-
createImpactConnection(impactConnectionInput: $vars) {
|
|
67
|
-
success
|
|
68
|
-
validationErrors {
|
|
69
|
-
field
|
|
70
|
-
message
|
|
71
|
-
}
|
|
72
|
-
user {
|
|
73
|
-
id
|
|
74
|
-
accountId
|
|
75
|
-
impactConnection {
|
|
76
|
-
connected
|
|
77
|
-
publisher {
|
|
78
|
-
brandedSignup
|
|
79
|
-
requiredTaxDocumentType
|
|
80
|
-
currentTaxDocument {
|
|
81
|
-
type
|
|
82
|
-
status
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
`;
|
|
90
|
-
const GET_BRAND_NAME = dist.gql `
|
|
91
|
-
query getTenantSettings {
|
|
92
|
-
tenantSettings {
|
|
93
|
-
companyName
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
`;
|
|
97
|
-
function usePartnerInfoModal(props) {
|
|
98
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
99
|
-
const locale = L();
|
|
100
|
-
const { data: userData, loading: userLoading, refetch, } = wn(GET_USER_PARTNER_INFO, {});
|
|
101
|
-
const user = userData === null || userData === void 0 ? void 0 : userData.user;
|
|
102
|
-
const { data: currenciesData, loading: currenciesLoading } = wn(GET_CURRENCIES, { variables: { locale } });
|
|
103
|
-
const { data: countriesData, loading: countriesLoading } = wn(GET_COUNTRIES, {});
|
|
104
|
-
const { data: tenantSettingsData } = wn(GET_BRAND_NAME, {});
|
|
105
|
-
const [connectImpactPartner, { loading: connectLoading, errors: connectErrors },] = $e(CONNECT_PARTNER);
|
|
106
|
-
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) || "");
|
|
107
|
-
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) || "");
|
|
108
|
-
console.log(countryCode, currency, "initial country and currency state"); // TEMP
|
|
109
|
-
const [countrySearch, setCountrySearch] = useState("");
|
|
110
|
-
const [currencySearch, setCurrencySearch] = useState("");
|
|
111
|
-
const [filteredCountries, setFilteredCountries] = useState(((_e = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _e === void 0 ? void 0 : _e.data) || []);
|
|
112
|
-
const [filteredCurrencies, setFilteredCurrencies] = useState(((_f = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _f === void 0 ? void 0 : _f.data) || []);
|
|
113
|
-
const [error, setError] = useState("");
|
|
114
|
-
const [success, setSuccess] = useState(false);
|
|
115
|
-
const countries = ((_g = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _g === void 0 ? void 0 : _g.data) || [];
|
|
116
|
-
const currencies = ((_h = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _h === void 0 ? void 0 : _h.data) || [];
|
|
117
|
-
console.log(user, "user data from partner info query"); // TEMP
|
|
118
|
-
useEffect(() => {
|
|
119
|
-
var _a;
|
|
120
|
-
if (userData && ((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher)) {
|
|
121
|
-
setCountryCode(user.impactConnection.publisher.countryCode);
|
|
122
|
-
setCurrency(user.impactConnection.publisher.currency);
|
|
123
|
-
}
|
|
124
|
-
}, [userData]);
|
|
125
|
-
useEffect(() => {
|
|
126
|
-
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
127
|
-
return;
|
|
128
|
-
if (countrySearch.trim() === "") {
|
|
129
|
-
setFilteredCountries(countries || []);
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
setFilteredCountries(countries.filter((c) => c.displayName.toLowerCase().includes(countrySearch.toLowerCase())) || []);
|
|
133
|
-
}
|
|
134
|
-
}, [countrySearch, countries]);
|
|
135
|
-
useEffect(() => {
|
|
136
|
-
if (!(currencies === null || currencies === void 0 ? void 0 : currencies.length))
|
|
137
|
-
return;
|
|
138
|
-
if (currencySearch.trim() === "") {
|
|
139
|
-
setFilteredCurrencies(currencies || []);
|
|
140
|
-
}
|
|
141
|
-
else {
|
|
142
|
-
setFilteredCurrencies(currencies.filter((c) => c.currencyCode.toLowerCase().includes(currencySearch.toLowerCase())) || []);
|
|
143
|
-
}
|
|
144
|
-
}, [currencySearch, currencies]);
|
|
145
|
-
const impactConnection = user === null || user === void 0 ? void 0 : user.impactConnection;
|
|
146
|
-
function onCountryChange(e) {
|
|
147
|
-
var _a, _b;
|
|
148
|
-
const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
149
|
-
if (!value)
|
|
150
|
-
return;
|
|
151
|
-
setCountryCode(value);
|
|
152
|
-
setCurrency("");
|
|
153
|
-
setError("");
|
|
154
|
-
}
|
|
155
|
-
function onCurrencyChange(e) {
|
|
156
|
-
var _a, _b;
|
|
157
|
-
const value = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.__value;
|
|
158
|
-
if (!value)
|
|
159
|
-
return;
|
|
160
|
-
setCurrency(value);
|
|
161
|
-
setError("");
|
|
162
|
-
}
|
|
163
|
-
async function onSubmit() {
|
|
164
|
-
var _a, _b;
|
|
165
|
-
if (!countryCode || !currency) {
|
|
166
|
-
setError(props.missingFieldsErrorText);
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
setError("");
|
|
170
|
-
try {
|
|
171
|
-
const vars = {
|
|
172
|
-
user: {
|
|
173
|
-
id: user.id,
|
|
174
|
-
accountId: user.accountId,
|
|
175
|
-
},
|
|
176
|
-
firstName: user.firstName,
|
|
177
|
-
lastName: user.lastName,
|
|
178
|
-
// phoneNumber: null,
|
|
179
|
-
// phoneNumberCountryCode: null,
|
|
180
|
-
countryCode,
|
|
181
|
-
currency,
|
|
182
|
-
};
|
|
183
|
-
const result = await connectImpactPartner({ vars });
|
|
184
|
-
if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message)) {
|
|
185
|
-
setError(props.networkErrorText);
|
|
186
|
-
return;
|
|
187
|
-
}
|
|
188
|
-
const connectionResult = result
|
|
189
|
-
.createImpactConnection;
|
|
190
|
-
console.log(result, connectionResult, "result and connectionResult from creating partner from modal");
|
|
191
|
-
if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
|
|
192
|
-
const validationMsg = (_b = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors) === null || _b === void 0 ? void 0 : _b.map((e) => e.message).join(". ");
|
|
193
|
-
setError(validationMsg || props.networkErrorText);
|
|
194
|
-
console.error("Failed to create Impact connection:", connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors);
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
198
|
-
await refetch();
|
|
199
|
-
setSuccess(true);
|
|
200
|
-
}
|
|
201
|
-
catch (e) {
|
|
202
|
-
console.error("Partner creation error:", e);
|
|
203
|
-
setError(props.networkErrorText);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
console.log(success, "success state in partner info modal");
|
|
207
|
-
const showModal = !success &&
|
|
208
|
-
!userLoading &&
|
|
209
|
-
(!(impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.connected) || !(impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.publisher));
|
|
210
|
-
console.log(showModal, "showModal condition in partner info modal"); // TEMP
|
|
211
|
-
return {
|
|
212
|
-
states: {
|
|
213
|
-
open: showModal,
|
|
214
|
-
loading: userLoading || countriesLoading || currenciesLoading,
|
|
215
|
-
submitting: connectLoading,
|
|
216
|
-
isExistingPartner: (impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.connected) || (impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.publisher),
|
|
217
|
-
countryCode,
|
|
218
|
-
currency,
|
|
219
|
-
error,
|
|
220
|
-
success,
|
|
221
|
-
brandName: ((_j = tenantSettingsData === null || tenantSettingsData === void 0 ? void 0 : tenantSettingsData.tenantSettings) === null || _j === void 0 ? void 0 : _j.companyName) || "",
|
|
222
|
-
filteredCountries: filteredCountries || [],
|
|
223
|
-
filteredCurrencies: filteredCurrencies || [],
|
|
224
|
-
},
|
|
225
|
-
callbacks: {
|
|
226
|
-
onCountryChange,
|
|
227
|
-
onCurrencyChange,
|
|
228
|
-
setCurrencySearch,
|
|
229
|
-
setCountrySearch,
|
|
230
|
-
onSubmit,
|
|
231
|
-
onClose: () => {
|
|
232
|
-
window.dispatchEvent(new Event(TAX_FORM_UPDATED_EVENT_KEY));
|
|
233
|
-
setSuccess(true);
|
|
234
|
-
},
|
|
235
|
-
},
|
|
236
|
-
text: props.getTextProps(),
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
const PartnerInfoModal = class {
|
|
241
|
-
constructor(hostRef) {
|
|
242
|
-
registerInstance(this, hostRef);
|
|
243
|
-
/**
|
|
244
|
-
* Brand name shown in the modal header
|
|
245
|
-
*
|
|
246
|
-
* @uiName Brand name
|
|
247
|
-
*/
|
|
248
|
-
this.brandName = "";
|
|
249
|
-
/**
|
|
250
|
-
* Header text when user has no existing partner
|
|
251
|
-
*
|
|
252
|
-
* @uiName New partner header
|
|
253
|
-
* @uiWidget textArea
|
|
254
|
-
*/
|
|
255
|
-
this.modalHeader = "Let's get you ready for rewards";
|
|
256
|
-
/**
|
|
257
|
-
* Header text when user has an existing partner
|
|
258
|
-
*
|
|
259
|
-
* @uiName Existing partner header
|
|
260
|
-
* @uiWidget textArea
|
|
261
|
-
*/
|
|
262
|
-
this.modalHeaderExistingPartner = "We found an existing account";
|
|
263
|
-
/**
|
|
264
|
-
* Description for new partner setup
|
|
265
|
-
*
|
|
266
|
-
* @uiName New partner description
|
|
267
|
-
* @uiWidget textArea
|
|
268
|
-
*/
|
|
269
|
-
this.descriptionNewPartner = "Confirm your country and currency now to get your future rewards faster.";
|
|
270
|
-
/**
|
|
271
|
-
* Description for existing partner confirmation
|
|
272
|
-
*
|
|
273
|
-
* @uiName Existing partner description
|
|
274
|
-
* @uiWidget textArea
|
|
275
|
-
*/
|
|
276
|
-
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.";
|
|
277
|
-
/**
|
|
278
|
-
* Support description for existing partner confirmation
|
|
279
|
-
*
|
|
280
|
-
* @uiName Existing partner support description
|
|
281
|
-
* @uiWidget textArea
|
|
282
|
-
*/
|
|
283
|
-
this.supportDescriptionExistingPartner = "If this is a mistake, please contact Support or sign up for this referral program with a different email.";
|
|
284
|
-
/**
|
|
285
|
-
* @uiName Country label
|
|
286
|
-
*/
|
|
287
|
-
this.countryLabel = "Country";
|
|
288
|
-
/**
|
|
289
|
-
* @uiName Currency label
|
|
290
|
-
*/
|
|
291
|
-
this.currencyLabel = "Currency";
|
|
292
|
-
/**
|
|
293
|
-
* @uiName Submit button label
|
|
294
|
-
*/
|
|
295
|
-
this.submitButtonLabel = "Submit";
|
|
296
|
-
/**
|
|
297
|
-
* @uiName Confirm button label
|
|
298
|
-
*/
|
|
299
|
-
this.confirmButtonLabel = "Confirm";
|
|
300
|
-
/**
|
|
301
|
-
* @uiName Search country placeholder
|
|
302
|
-
*/
|
|
303
|
-
this.searchCountryPlaceholder = "Search for a country";
|
|
304
|
-
/**
|
|
305
|
-
* @uiName Search currency placeholder
|
|
306
|
-
*/
|
|
307
|
-
this.searchCurrencyPlaceholder = "Search for a currency";
|
|
308
|
-
/**
|
|
309
|
-
* @uiName Network error text
|
|
310
|
-
* @uiWidget textArea
|
|
311
|
-
*/
|
|
312
|
-
this.networkErrorText = "An error occurred. Please try again.";
|
|
313
|
-
/**
|
|
314
|
-
* @uiName Missing fields error text
|
|
315
|
-
* @uiWidget textArea
|
|
316
|
-
*/
|
|
317
|
-
this.missingFieldsErrorText = "Please select both a country and currency.";
|
|
318
|
-
h(this);
|
|
319
|
-
}
|
|
320
|
-
disconnectedCallback() { }
|
|
321
|
-
getTextProps() {
|
|
322
|
-
return getProps(this);
|
|
323
|
-
}
|
|
324
|
-
render() {
|
|
325
|
-
// AL: TODO add usePartnerInfoModal
|
|
326
|
-
const props = isDemo()
|
|
327
|
-
? useDemoPartnerInfoModal(this)
|
|
328
|
-
: usePartnerInfoModal(this);
|
|
329
|
-
return h$1(PartnerInfoModalView, Object.assign({}, props));
|
|
330
|
-
}
|
|
331
|
-
};
|
|
332
|
-
function useDemoPartnerInfoModal(props) {
|
|
333
|
-
const [countryCode, setCountryCode] = useState("US");
|
|
334
|
-
const [currency, setCurrency] = useState("");
|
|
335
|
-
const [error, setError] = useState("");
|
|
336
|
-
return cjs({
|
|
337
|
-
states: {
|
|
338
|
-
brandName: "Test Brand",
|
|
339
|
-
open: true,
|
|
340
|
-
loading: false,
|
|
341
|
-
submitting: false,
|
|
342
|
-
isExistingPartner: false,
|
|
343
|
-
countryCode,
|
|
344
|
-
currency,
|
|
345
|
-
error,
|
|
346
|
-
success: false,
|
|
347
|
-
filteredCountries: [],
|
|
348
|
-
filteredCurrencies: [],
|
|
349
|
-
},
|
|
350
|
-
callbacks: {
|
|
351
|
-
onCountryChange: (e) => {
|
|
352
|
-
var _a, _b;
|
|
353
|
-
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;
|
|
354
|
-
if (value) {
|
|
355
|
-
setCountryCode(value);
|
|
356
|
-
setCurrency("");
|
|
357
|
-
}
|
|
358
|
-
},
|
|
359
|
-
onCurrencyChange: (e) => {
|
|
360
|
-
var _a, _b;
|
|
361
|
-
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;
|
|
362
|
-
if (value)
|
|
363
|
-
setCurrency(value);
|
|
364
|
-
},
|
|
365
|
-
setCountrySearch: () => { },
|
|
366
|
-
setCurrencySearch: () => { },
|
|
367
|
-
onSubmit: () => {
|
|
368
|
-
if (!countryCode || !currency) {
|
|
369
|
-
setError(props.missingFieldsErrorText);
|
|
370
|
-
return;
|
|
371
|
-
}
|
|
372
|
-
setError("");
|
|
373
|
-
},
|
|
374
|
-
onClose: () => { },
|
|
375
|
-
},
|
|
376
|
-
text: {
|
|
377
|
-
modalHeader: props.modalHeader,
|
|
378
|
-
descriptionNewPartner: props.descriptionNewPartner,
|
|
379
|
-
descriptionExistingPartner: props.descriptionExistingPartner,
|
|
380
|
-
countryLabel: props.countryLabel,
|
|
381
|
-
currencyLabel: props.currencyLabel,
|
|
382
|
-
submitButtonLabel: props.submitButtonLabel,
|
|
383
|
-
confirmButtonLabel: props.confirmButtonLabel,
|
|
384
|
-
searchCountryPlaceholder: props.searchCountryPlaceholder,
|
|
385
|
-
searchCurrencyPlaceholder: props.searchCurrencyPlaceholder,
|
|
386
|
-
supportDescriptionExistingPartner: props.supportDescriptionExistingPartner,
|
|
387
|
-
modalHeaderExistingPartner: props.modalHeaderExistingPartner,
|
|
388
|
-
},
|
|
389
|
-
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
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{u(r.next(n))}catch(n){i(n)}}function c(n){try{u(r["throw"](n))}catch(n){i(n)}}function u(n){n.done?t(n.value):o(n.value).then(a,c)}u((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 u([n,e])}}function u(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}}};System.register(["./index-6582b378.system.js","./dom-context-hooks.module-d6e89c16.system.js","./index.module-3103d9ae.system.js","./jss-preset-default.esm-62a04d6d.system.js","./JSS-840a8fea.system.js","./utils-b405e671.system.js","./cjs-f0ef8d23.system.js","./sqm-partner-info-modal-view-929517ca.system.js","./eventKeys-8c222120.system.js"],(function(n){"use strict";var e,t,r,o,i,a,c,u,s,l,d,v,m,f;return{setters:[function(n){e=n.r;t=n.h},function(n){r=n.i;o=n.j;i=n.o},function(n){a=n.d;c=n.L;u=n.w;s=n.$;l=n.i},function(){},function(){},function(n){d=n.g},function(n){v=n.c},function(n){m=n.P},function(n){f=n.T}],execute:function(){var p=a.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 publisher {\n phoneNumber\n phoneNumberCountryCode\n countryCode\n currency\n requiredTaxDocumentType\n currentTaxDocument {\n type\n status\n }\n withdrawalSettings {\n paymentMethod\n }\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 publisher {\n phoneNumber\n phoneNumberCountryCode\n countryCode\n currency\n requiredTaxDocumentType\n currentTaxDocument {\n type\n status\n }\n withdrawalSettings {\n paymentMethod\n }\n }\n }\n }\n }\n }\n"]));var y=a.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 h=a.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 g=a.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 C=a.gql(__makeTemplateObject(["\n query getTenantSettings {\n tenantSettings {\n companyName\n }\n }\n"],["\n query getTenantSettings {\n tenantSettings {\n companyName\n }\n }\n"]));function b(n){var e,t,i,a,l,d,v,m,b;var w=c();var x=u(p,{}),_=x.data,P=x.loading,T=x.refetch;var E=_===null||_===void 0?void 0:_.user;var S=u(h,{variables:{locale:w}}),N=S.data,j=S.loading;var I=u(y,{}),k=I.data,q=I.loading;var L=u(C,{}).data;var D=s(g),O=D[0],$=D[1],B=$.loading,F=$.errors;var H=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)||""),U=H[0],M=H[1];var R=r(((a=(i=E===null||E===void 0?void 0:E.impactConnection)===null||i===void 0?void 0:i.publisher)===null||a===void 0?void 0:a.currency)||""),W=R[0],A=R[1];console.log(U,W,"initial country and currency state");var G=r(""),J=G[0],K=G[1];var z=r(""),Q=z[0],V=z[1];var X=r(((l=k===null||k===void 0?void 0:k.impactPayoutCountries)===null||l===void 0?void 0:l.data)||[]),Y=X[0],Z=X[1];var nn=r(((d=N===null||N===void 0?void 0:N.currencies)===null||d===void 0?void 0:d.data)||[]),en=nn[0],tn=nn[1];var rn=r(""),on=rn[0],an=rn[1];var cn=r(false),un=cn[0],sn=cn[1];var ln=((v=k===null||k===void 0?void 0:k.impactPayoutCountries)===null||v===void 0?void 0:v.data)||[];var dn=((m=N===null||N===void 0?void 0:N.currencies)===null||m===void 0?void 0:m.data)||[];console.log(E,"user data from partner info query");o((function(){var n;if(_&&((n=E.impactConnection)===null||n===void 0?void 0:n.publisher)){M(E.impactConnection.publisher.countryCode);A(E.impactConnection.publisher.currency)}}),[_]);o((function(){if(!(ln===null||ln===void 0?void 0:ln.length))return;if(J.trim()===""){Z(ln||[])}else{Z(ln.filter((function(n){return n.displayName.toLowerCase().includes(J.toLowerCase())}))||[])}}),[J,ln]);o((function(){if(!(dn===null||dn===void 0?void 0:dn.length))return;if(Q.trim()===""){tn(dn||[])}else{tn(dn.filter((function(n){return n.currencyCode.toLowerCase().includes(Q.toLowerCase())}))||[])}}),[Q,dn]);var vn=E===null||E===void 0?void 0:E.impactConnection;function mn(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;M(r);A("");an("")}function fn(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;A(r);an("")}function pn(){return __awaiter(this,void 0,void 0,(function(){var e,t,r,o,i,a,c;return __generator(this,(function(u){switch(u.label){case 0:if(!U||!W){an(n.missingFieldsErrorText);return[2]}an("");u.label=1;case 1:u.trys.push([1,4,,5]);r={user:{id:E.id,accountId:E.accountId},firstName:E.firstName,lastName:E.lastName,countryCode:U,currency:W};return[4,O({vars:r})];case 2:o=u.sent();if(!o||((e=o)===null||e===void 0?void 0:e.message)){an(n.networkErrorText);return[2]}i=o.createImpactConnection;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(". ");an(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(f));return[4,T()];case 3:u.sent();sn(true);return[3,5];case 4:c=u.sent();console.error("Partner creation error:",c);an(n.networkErrorText);return[3,5];case 5:return[2]}}))}))}console.log(un,"success state in partner info modal");var yn=!un&&!P&&(!(vn===null||vn===void 0?void 0:vn.connected)||!(vn===null||vn===void 0?void 0:vn.publisher));console.log(yn,"showModal condition in partner info modal");return{states:{open:yn,loading:P||q||j,submitting:B,isExistingPartner:(vn===null||vn===void 0?void 0:vn.connected)||(vn===null||vn===void 0?void 0:vn.publisher),countryCode:U,currency:W,error:on,success:un,brandName:((b=L===null||L===void 0?void 0:L.tenantSettings)===null||b===void 0?void 0:b.companyName)||"",filteredCountries:Y||[],filteredCurrencies:en||[]},callbacks:{onCountryChange:mn,onCurrencyChange:fn,setCurrencySearch:V,setCountrySearch:K,onSubmit:pn,onClose:function(){window.dispatchEvent(new Event(f));sn(true)}},text:n.getTextProps()}}var w=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.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.";i(this)}n.prototype.disconnectedCallback=function(){};n.prototype.getTextProps=function(){return d(this)};n.prototype.render=function(){var n=l()?x(this):b(this);return t(m,Object.assign({},n))};return n}());function x(n){var e=r("US"),t=e[0],o=e[1];var i=r(""),a=i[0],c=i[1];var u=r(""),s=u[0],l=u[1];return v({states:{brandName:"Test Brand",open:true,loading:false,submitting:false,isExistingPartner:false,countryCode:t,currency:a,error:s,success:false,filteredCountries:[],filteredCurrencies:[]},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)},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||{},{arrayMerge:function(n,e){return e}})}}}}));
|