@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
|
@@ -13,10 +13,10 @@ const JSS = require('./JSS-8503a151.js');
|
|
|
13
13
|
require('./useReferralCodes-89c2b972.js');
|
|
14
14
|
require('./mixins-4761d472.js');
|
|
15
15
|
const copyTextView = require('./copy-text-view-bb2c0ea7.js');
|
|
16
|
-
require('./sqm-text-span-view-
|
|
16
|
+
require('./sqm-text-span-view-8a32dd8c.js');
|
|
17
17
|
const usePortalRegistrationForm = require('./usePortalRegistrationForm-31822dc4.js');
|
|
18
18
|
const useRegistrationFormState = require('./useRegistrationFormState-a223f597.js');
|
|
19
|
-
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-
|
|
19
|
+
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-fd48f1d3.js');
|
|
20
20
|
const reRender = require('./re-render-69bde9ee.js');
|
|
21
21
|
const useChildElements = require('./useChildElements-89bc50a9.js');
|
|
22
22
|
require('./luxon-c1ad356a.js');
|
|
@@ -27,12 +27,14 @@ const useInstantAccessRegistration = require('./useInstantAccessRegistration-651
|
|
|
27
27
|
const useLeadFormState = require('./useLeadFormState-76d3b511.js');
|
|
28
28
|
const utilities = require('./utilities-096934ea.js');
|
|
29
29
|
const ErrorView = require('./ErrorView-ee7b0f36.js');
|
|
30
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
30
|
+
const ShadowViewAddon = require('./ShadowViewAddon-2b3f51be.js');
|
|
31
31
|
require('./sqm-portal-container-view-70a47420.js');
|
|
32
|
-
const
|
|
33
|
-
const
|
|
32
|
+
const utils$1 = require('./utils-a8e0bd9b.js');
|
|
33
|
+
const data = require('./data-6b5095f8.js');
|
|
34
|
+
const keys = require('./keys-cff24974.js');
|
|
34
35
|
require('./eventKeys-7af4df4d.js');
|
|
35
36
|
const usePayoutStatus = require('./usePayoutStatus-cf050a03.js');
|
|
37
|
+
const parseStates = require('./parseStates-d1effc19.js');
|
|
36
38
|
|
|
37
39
|
/**
|
|
38
40
|
*
|
|
@@ -3392,7 +3394,7 @@ const PayoutStatusAlert = class {
|
|
|
3392
3394
|
}
|
|
3393
3395
|
};
|
|
3394
3396
|
function useDemoPayoutStatusAlert(props) {
|
|
3395
|
-
const states =
|
|
3397
|
+
const states = parseStates.parseStates(props.stateController);
|
|
3396
3398
|
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
|
|
3397
3399
|
? { ...prev, ...states[key] }
|
|
3398
3400
|
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
@@ -5771,7 +5773,7 @@ function EmptySlot$1() {
|
|
|
5771
5773
|
return (index.h("slot", { name: "empty" }, index.h("sqm-empty", { emptyStateImage: "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_exchange2.png", emptyStateHeader: "Redeem rewards", emptyStateText: "Use your points to redeem rewards once they become available" })));
|
|
5772
5774
|
}
|
|
5773
5775
|
function useRewardExchangeListDemo(props) {
|
|
5774
|
-
const states =
|
|
5776
|
+
const states = parseStates.parseStates(props.stateController);
|
|
5775
5777
|
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-reward-exchange-list"
|
|
5776
5778
|
? { ...prev, ...states[key] }
|
|
5777
5779
|
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
@@ -6393,19 +6395,32 @@ function useTaskCardDemo(props) {
|
|
|
6393
6395
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6394
6396
|
}
|
|
6395
6397
|
|
|
6398
|
+
/**
|
|
6399
|
+
* Util function for getting just the props with a certain prefix.
|
|
6400
|
+
* @param props Text props on stencil component
|
|
6401
|
+
* @param prefix Prefix denoting which group the text prop belongs to
|
|
6402
|
+
* @returns A new object with all keys with the prefix provided. The prefix is removed from each key.
|
|
6403
|
+
*/
|
|
6404
|
+
function extractProps(props, prefix) {
|
|
6405
|
+
const keys = Object.keys(props).filter((k) => k.startsWith(prefix));
|
|
6406
|
+
const formattedProps = keys.reduce((prev, k) => {
|
|
6407
|
+
const key = k.replace(prefix, "");
|
|
6408
|
+
return {
|
|
6409
|
+
...prev,
|
|
6410
|
+
[key]: props[k],
|
|
6411
|
+
};
|
|
6412
|
+
}, {});
|
|
6413
|
+
return formattedProps;
|
|
6414
|
+
}
|
|
6415
|
+
|
|
6396
6416
|
function getCurrentStep(user) {
|
|
6397
6417
|
var _a, _b;
|
|
6398
6418
|
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
6399
6419
|
return "/1";
|
|
6400
6420
|
}
|
|
6401
|
-
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount,
|
|
6402
|
-
console.log(
|
|
6403
|
-
|
|
6404
|
-
if (!billingAddress ||
|
|
6405
|
-
!billingCity ||
|
|
6406
|
-
!billingPostalCode ||
|
|
6407
|
-
!billingState ||
|
|
6408
|
-
!phoneNumber) {
|
|
6421
|
+
const { requiredTaxDocumentType, currentTaxDocument, withdrawalSettings, brandedSignup, payoutsAccount, } = user.impactConnection.publisher;
|
|
6422
|
+
console.log(user.impactConnection, "publisher data in useTaxAndCash to determine step new new");
|
|
6423
|
+
if (user.impactConnection.connectionStatus === "STARTED") {
|
|
6409
6424
|
return "/1";
|
|
6410
6425
|
}
|
|
6411
6426
|
// If they do have a required document, look at current document
|
|
@@ -6516,7 +6531,7 @@ function useTaxAndCash() {
|
|
|
6516
6531
|
const availableCountries = domContextHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
6517
6532
|
const _topCountries = ["CA", "GB", "US"];
|
|
6518
6533
|
const sortedCountries = domContextHooks_module.useMemo(() => Array.from(availableCountries)
|
|
6519
|
-
.map((countryCode) =>
|
|
6534
|
+
.map((countryCode) => utils$1.getCountryObj({ countryCode, locale: intlLocale }))
|
|
6520
6535
|
.sort(sortByName)
|
|
6521
6536
|
.reduce((prev, countryObj) => {
|
|
6522
6537
|
if (_topCountries.includes(countryObj.countryCode))
|
|
@@ -7677,7 +7692,7 @@ const TaxAndCashMonolith = class {
|
|
|
7677
7692
|
getGeneralStepTextProps(prefix) {
|
|
7678
7693
|
const props = utils.getProps(this);
|
|
7679
7694
|
return {
|
|
7680
|
-
...extractProps
|
|
7695
|
+
...extractProps(props, prefix),
|
|
7681
7696
|
generalErrorTitle: props.generalErrorTitle,
|
|
7682
7697
|
generalErrorDescription: props.generalErrorDescription,
|
|
7683
7698
|
fieldRequiredError: props.fieldRequiredError,
|
|
@@ -7727,7 +7742,7 @@ const TaxAndCashMonolith = class {
|
|
|
7727
7742
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, this.supportLink)),
|
|
7728
7743
|
}) }));
|
|
7729
7744
|
}
|
|
7730
|
-
return index.h(
|
|
7745
|
+
return index.h(utils$1.LoadingView, null);
|
|
7731
7746
|
}
|
|
7732
7747
|
};
|
|
7733
7748
|
function useDemoTaxAndCash(props) {
|
|
@@ -7735,7 +7750,7 @@ function useDemoTaxAndCash(props) {
|
|
|
7735
7750
|
namespace: data.TAX_CONTEXT_NAMESPACE,
|
|
7736
7751
|
initialValue: "/1",
|
|
7737
7752
|
});
|
|
7738
|
-
const states =
|
|
7753
|
+
const states = parseStates.parseStates(props.stateController);
|
|
7739
7754
|
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash"
|
|
7740
7755
|
? { ...prev, ...states[key] }
|
|
7741
7756
|
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
@@ -7940,6 +7955,359 @@ function useUserNameDemo(props) {
|
|
|
7940
7955
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
7941
7956
|
}
|
|
7942
7957
|
|
|
7958
|
+
const USER_LOOKUP = index_module.dist.gql `
|
|
7959
|
+
query checkUserVerification {
|
|
7960
|
+
viewer {
|
|
7961
|
+
... on User {
|
|
7962
|
+
id
|
|
7963
|
+
accountId
|
|
7964
|
+
email
|
|
7965
|
+
emailVerified
|
|
7966
|
+
managedIdentity {
|
|
7967
|
+
email
|
|
7968
|
+
emailVerified
|
|
7969
|
+
}
|
|
7970
|
+
impactConnection {
|
|
7971
|
+
connected
|
|
7972
|
+
}
|
|
7973
|
+
}
|
|
7974
|
+
}
|
|
7975
|
+
}
|
|
7976
|
+
`;
|
|
7977
|
+
function useWidgetVerification() {
|
|
7978
|
+
const userIdentity = index_module.J();
|
|
7979
|
+
const [showCode, setShowCode] = index_module.In({
|
|
7980
|
+
namespace: keys.SHOW_CODE_NAMESPACE,
|
|
7981
|
+
initialValue: false,
|
|
7982
|
+
});
|
|
7983
|
+
const [email, setEmail] = index_module.In({
|
|
7984
|
+
namespace: keys.VERIFICATION_EMAIL_NAMESPACE,
|
|
7985
|
+
initialValue: userIdentity === null || userIdentity === void 0 ? void 0 : userIdentity.email,
|
|
7986
|
+
});
|
|
7987
|
+
const setContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
7988
|
+
const [loading, setLoading] = domContextHooks_module.useState(true);
|
|
7989
|
+
const [showPartnerModal, setShowPartnerModal] = domContextHooks_module.useState(false);
|
|
7990
|
+
const [fetch] = index_module.Xe(USER_LOOKUP);
|
|
7991
|
+
domContextHooks_module.useEffect(() => {
|
|
7992
|
+
const checkUser = async () => {
|
|
7993
|
+
var _a, _b, _c, _d, _e;
|
|
7994
|
+
try {
|
|
7995
|
+
const res = await fetch({});
|
|
7996
|
+
if (!res || res instanceof Error)
|
|
7997
|
+
throw new Error();
|
|
7998
|
+
// Flow changed to send email -> verify code -> show early partner creation modal
|
|
7999
|
+
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);
|
|
8000
|
+
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;
|
|
8001
|
+
if (isConnected) {
|
|
8002
|
+
// Partner already created, show widget content
|
|
8003
|
+
setContext(true);
|
|
8004
|
+
}
|
|
8005
|
+
else if (emailVerified) {
|
|
8006
|
+
// Email verified but no partner yet, show partner modal
|
|
8007
|
+
setShowPartnerModal(true);
|
|
8008
|
+
}
|
|
8009
|
+
}
|
|
8010
|
+
catch (e) {
|
|
8011
|
+
console.error("Could not fetch user information:", e);
|
|
8012
|
+
}
|
|
8013
|
+
finally {
|
|
8014
|
+
setLoading(false);
|
|
8015
|
+
}
|
|
8016
|
+
};
|
|
8017
|
+
checkUser();
|
|
8018
|
+
}, []);
|
|
8019
|
+
const onVerification = () => {
|
|
8020
|
+
setShowPartnerModal(true);
|
|
8021
|
+
};
|
|
8022
|
+
const onPartnerModalComplete = () => {
|
|
8023
|
+
setShowPartnerModal(false);
|
|
8024
|
+
setContext(true);
|
|
8025
|
+
};
|
|
8026
|
+
return { showCode, showPartnerModal, onVerification, onPartnerModalComplete, loading };
|
|
8027
|
+
}
|
|
8028
|
+
|
|
8029
|
+
const style$3 = {
|
|
8030
|
+
Dialog: {
|
|
8031
|
+
"&::part(panel)": {
|
|
8032
|
+
maxWidth: "480px",
|
|
8033
|
+
},
|
|
8034
|
+
"&::part(body)": {
|
|
8035
|
+
padding: "0 var(--sl-spacing-x-large)",
|
|
8036
|
+
fontSize: "var(--sl-font-size-small)",
|
|
8037
|
+
overflow: "visible",
|
|
8038
|
+
},
|
|
8039
|
+
"&::part(footer)": {
|
|
8040
|
+
display: "flex",
|
|
8041
|
+
flexDirection: "column",
|
|
8042
|
+
gap: "var(--sl-spacing-small)",
|
|
8043
|
+
},
|
|
8044
|
+
"&::part(overlay)": {
|
|
8045
|
+
background: "rgba(0, 0, 0, 0.5)",
|
|
8046
|
+
},
|
|
8047
|
+
},
|
|
8048
|
+
DialogTitle: {
|
|
8049
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
8050
|
+
fontWeight: "600",
|
|
8051
|
+
padding: "var(--sl-spacing-x-large) 0 0 0",
|
|
8052
|
+
margin: "0",
|
|
8053
|
+
},
|
|
8054
|
+
};
|
|
8055
|
+
const sheet$3 = JSS.createStyleSheet(style$3);
|
|
8056
|
+
const styleString$3 = sheet$3.toString();
|
|
8057
|
+
const WidgetVerification = class {
|
|
8058
|
+
constructor(hostRef) {
|
|
8059
|
+
index.registerInstance(this, hostRef);
|
|
8060
|
+
// ! Any updated must be reflected in sqm-widget-verification-internal AND sqm-email-verification AND sqm-code-verification AND sqm-partner-info-modal
|
|
8061
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8062
|
+
GENERAL PROPS
|
|
8063
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8064
|
+
/**
|
|
8065
|
+
* @uiName General widget header text with partner creation
|
|
8066
|
+
* @uiGroup General Text
|
|
8067
|
+
*/
|
|
8068
|
+
this.general_widgetHeaderWithPartnerCreation = "Let's get you ready for rewards";
|
|
8069
|
+
/**
|
|
8070
|
+
* @uiName General verify widget header text
|
|
8071
|
+
* @uiGroup General Text
|
|
8072
|
+
*/
|
|
8073
|
+
this.general_verifyEmailHeader = "Verify your email";
|
|
8074
|
+
/**
|
|
8075
|
+
* @uiName General verify widget description text
|
|
8076
|
+
* @uiGroup General Text
|
|
8077
|
+
*/
|
|
8078
|
+
this.general_verifyEmailDescription = "To get your cash paid out directly to your bank account, please complete your account setup";
|
|
8079
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8080
|
+
EMAIL STEP PROPS
|
|
8081
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8082
|
+
/**
|
|
8083
|
+
* @uiName Verify email widget header text
|
|
8084
|
+
* @uiGroup Email Verification Step
|
|
8085
|
+
*/
|
|
8086
|
+
this.emailStep_verifyEmailHeaderText = "Start by verifying your email. We’ll send you a code through our referral provider, impact.com.";
|
|
8087
|
+
/**
|
|
8088
|
+
* @uiName Send code to email alert header
|
|
8089
|
+
* @uiGroup Email Verification Step
|
|
8090
|
+
*/
|
|
8091
|
+
this.emailStep_sendCodeErrorHeader = "There was an error sending your code.";
|
|
8092
|
+
/**
|
|
8093
|
+
* @uiName Send code to email alert description
|
|
8094
|
+
* @uiGroup Email Verification Step
|
|
8095
|
+
*/
|
|
8096
|
+
this.emailStep_sendCodeErrorDescription = "Please try again. If this problem continues, contact our program support team.";
|
|
8097
|
+
/**
|
|
8098
|
+
* @uiName Email input label
|
|
8099
|
+
* @uiGroup Email Verification Step
|
|
8100
|
+
*/
|
|
8101
|
+
this.emailStep_emailLabel = "Email";
|
|
8102
|
+
/**
|
|
8103
|
+
* @uiName Send code button text
|
|
8104
|
+
* @uiGroup Email Verification Step
|
|
8105
|
+
*/
|
|
8106
|
+
this.emailStep_sendCodeText = "Send code";
|
|
8107
|
+
/**
|
|
8108
|
+
* @uiName Send code button text
|
|
8109
|
+
* @uiGroup Email Verification Step
|
|
8110
|
+
*/
|
|
8111
|
+
this.emailStep_emailValidationErrorText = "Please enter a valid email";
|
|
8112
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8113
|
+
CODE STEP PROPS
|
|
8114
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8115
|
+
/**
|
|
8116
|
+
* @uiName Verify code widget header text
|
|
8117
|
+
* @uiGroup Code Verification Step
|
|
8118
|
+
*/
|
|
8119
|
+
this.codeStep_verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
8120
|
+
/**
|
|
8121
|
+
* @uiName Reverify code widget header text
|
|
8122
|
+
* @uiGroup Code Verification Step
|
|
8123
|
+
*/
|
|
8124
|
+
this.codeStep_reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
8125
|
+
/**
|
|
8126
|
+
* Text displayed under verify button
|
|
8127
|
+
* @uiName Resend code text
|
|
8128
|
+
* @uiGroup Code Verification Step
|
|
8129
|
+
*/
|
|
8130
|
+
this.codeStep_resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
8131
|
+
/**
|
|
8132
|
+
* The link that appears in the resend code link
|
|
8133
|
+
* @uiName Resend code label
|
|
8134
|
+
* @uiGroup Code Verification Step
|
|
8135
|
+
*/
|
|
8136
|
+
this.codeStep_resendCodeLabel = "Resend code";
|
|
8137
|
+
/**
|
|
8138
|
+
* Link text displayed under verify button
|
|
8139
|
+
* @uiName Resend code text
|
|
8140
|
+
* @uiGroup Code Verification Step
|
|
8141
|
+
*/
|
|
8142
|
+
this.codeStep_codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
8143
|
+
/**
|
|
8144
|
+
* Error text displayed under verification input
|
|
8145
|
+
* @uiName Invalid code text
|
|
8146
|
+
* @uiGroup Code Verification Step
|
|
8147
|
+
*/
|
|
8148
|
+
this.codeStep_invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
8149
|
+
/**
|
|
8150
|
+
* @uiName Verify code button text
|
|
8151
|
+
* @uiGroup Code Verification Step
|
|
8152
|
+
*/
|
|
8153
|
+
this.codeStep_verifyText = "Verify";
|
|
8154
|
+
/**
|
|
8155
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
8156
|
+
* @uiName Network error message
|
|
8157
|
+
* @uiGroup Code Verification Step
|
|
8158
|
+
*/
|
|
8159
|
+
this.codeStep_networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
8160
|
+
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
8161
|
+
PARTNER CREATION STEP PROPS
|
|
8162
|
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
|
8163
|
+
/**
|
|
8164
|
+
* @uiName New partner header
|
|
8165
|
+
* @uiGroup Partner Creation Step
|
|
8166
|
+
* @uiWidget textArea
|
|
8167
|
+
*/
|
|
8168
|
+
this.createPartnerStep_modalHeader = "Let's get you ready for rewards";
|
|
8169
|
+
/**
|
|
8170
|
+
* @uiName Existing partner header
|
|
8171
|
+
* @uiGroup Partner Creation Step
|
|
8172
|
+
* @uiWidget textArea
|
|
8173
|
+
*/
|
|
8174
|
+
this.createPartnerStep_modalHeaderExistingPartner = "We found an existing account";
|
|
8175
|
+
/**
|
|
8176
|
+
* @uiName New partner description
|
|
8177
|
+
* @uiGroup Partner Creation Step
|
|
8178
|
+
* @uiWidget textArea
|
|
8179
|
+
*/
|
|
8180
|
+
this.createPartnerStep_descriptionNewPartner = "Confirm your country and currency now to get your future rewards faster.";
|
|
8181
|
+
/**
|
|
8182
|
+
* @uiName Existing partner description
|
|
8183
|
+
* @uiGroup Partner Creation Step
|
|
8184
|
+
* @uiWidget textArea
|
|
8185
|
+
*/
|
|
8186
|
+
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.";
|
|
8187
|
+
/**
|
|
8188
|
+
* @uiName Existing partner support description
|
|
8189
|
+
* @uiGroup Partner Creation Step
|
|
8190
|
+
* @uiWidget textArea
|
|
8191
|
+
*/
|
|
8192
|
+
this.createPartnerStep_supportDescriptionExistingPartner = "If this is a mistake, please contact Support or sign up for this referral program with a different email.";
|
|
8193
|
+
/**
|
|
8194
|
+
* @uiName Country label
|
|
8195
|
+
* @uiGroup Partner Creation Step
|
|
8196
|
+
*/
|
|
8197
|
+
this.createPartnerStep_countryLabel = "Country";
|
|
8198
|
+
/**
|
|
8199
|
+
* @uiName Currency label
|
|
8200
|
+
* @uiGroup Partner Creation Step
|
|
8201
|
+
*/
|
|
8202
|
+
this.createPartnerStep_currencyLabel = "Currency";
|
|
8203
|
+
/**
|
|
8204
|
+
* @uiName Submit button label
|
|
8205
|
+
* @uiGroup Partner Creation Step
|
|
8206
|
+
*/
|
|
8207
|
+
this.createPartnerStep_submitButtonLabel = "Submit";
|
|
8208
|
+
/**
|
|
8209
|
+
* @uiName Confirm button label
|
|
8210
|
+
* @uiGroup Partner Creation Step
|
|
8211
|
+
*/
|
|
8212
|
+
this.createPartnerStep_confirmButtonLabel = "Confirm";
|
|
8213
|
+
/**
|
|
8214
|
+
* @uiName Search country placeholder
|
|
8215
|
+
* @uiGroup Partner Creation Step
|
|
8216
|
+
*/
|
|
8217
|
+
this.createPartnerStep_searchCountryPlaceholder = "Search for a country";
|
|
8218
|
+
/**
|
|
8219
|
+
* @uiName Search currency placeholder
|
|
8220
|
+
* @uiGroup Partner Creation Step
|
|
8221
|
+
*/
|
|
8222
|
+
this.createPartnerStep_searchCurrencyPlaceholder = "Search for a currency";
|
|
8223
|
+
/**
|
|
8224
|
+
* @uiName Network error text
|
|
8225
|
+
* @uiGroup Partner Creation Step
|
|
8226
|
+
* @uiWidget textArea
|
|
8227
|
+
*/
|
|
8228
|
+
this.createPartnerStep_networkErrorText = "An error occurred. Please try again.";
|
|
8229
|
+
/**
|
|
8230
|
+
* @uiName Missing fields error text
|
|
8231
|
+
* @uiGroup Partner Creation Step
|
|
8232
|
+
* @uiWidget textArea
|
|
8233
|
+
*/
|
|
8234
|
+
this.createPartnerStep_missingFieldsErrorText = "Please select both a country and currency.";
|
|
8235
|
+
/**
|
|
8236
|
+
* @undocumented
|
|
8237
|
+
* @componentState { "title": "Step 1: Enter email", "props": { "showCode": false }, "dependencies": ["sqm-email-verification"], "uiGroup": "Email Verification Step" }
|
|
8238
|
+
* @componentState { "title": "Step 2: Enter code", "props": { "showCode": true }, "dependencies": ["sqm-code-verification"], "uiGroup": "Code Verification Step" }
|
|
8239
|
+
* @componentState { "title": "Step 3: Create Partner", "props": { "showPartnerModal": true }, "dependencies": ["sqm-partner-info-modal"], "uiGroup": "Partner Creation Step" }
|
|
8240
|
+
*/
|
|
8241
|
+
this.stateController = "{}";
|
|
8242
|
+
domContextHooks_module.h$1(this);
|
|
8243
|
+
}
|
|
8244
|
+
disconnectedCallback() { }
|
|
8245
|
+
getStepTextProps(prefix) {
|
|
8246
|
+
const props = utils.getProps(this);
|
|
8247
|
+
return extractProps(props, prefix);
|
|
8248
|
+
}
|
|
8249
|
+
render() {
|
|
8250
|
+
var _a;
|
|
8251
|
+
const props = index_module.isDemo()
|
|
8252
|
+
? useDemoWidgetVerificationInternal(this)
|
|
8253
|
+
: useWidgetVerification();
|
|
8254
|
+
if (props.loading)
|
|
8255
|
+
return index.h("sl-spinner", null);
|
|
8256
|
+
// for handling state previews in content editor
|
|
8257
|
+
const partnerState = typeof props["sqm-partner-info-modal_stateController"] === "string"
|
|
8258
|
+
? parseStates.parseStates(props["sqm-partner-info-modal_stateController"])
|
|
8259
|
+
: props["sqm-partner-info-modal_stateController"];
|
|
8260
|
+
if (props.showPartnerModal && ((_a = partnerState === null || partnerState === void 0 ? void 0 : partnerState.states) === null || _a === void 0 ? void 0 : _a.open) === false) {
|
|
8261
|
+
return index.h("div", null);
|
|
8262
|
+
}
|
|
8263
|
+
// const generalText = this.getStepTextProps("general_");
|
|
8264
|
+
const partnerText = this.getStepTextProps("createPartnerStep_");
|
|
8265
|
+
const dialogLabel = this.general_widgetHeaderWithPartnerCreation;
|
|
8266
|
+
const renderStepContent = () => {
|
|
8267
|
+
if (props.showPartnerModal) {
|
|
8268
|
+
return (index.h("sqm-partner-info-modal", Object.assign({ inModal: true }, partnerText, { stateController: props["sqm-partner-info-modal_stateController"] || "{}" })));
|
|
8269
|
+
}
|
|
8270
|
+
if (props.showCode) {
|
|
8271
|
+
return (index.h("sqm-code-verification", Object.assign({ onVerification: props.onVerification }, this.getStepTextProps("codeStep_"), extractProps(props, "sqm-code-verification_"))));
|
|
8272
|
+
}
|
|
8273
|
+
return (index.h("sqm-email-verification", Object.assign({}, this.getStepTextProps("emailStep_"), extractProps(props, "sqm-email-verification_"))));
|
|
8274
|
+
};
|
|
8275
|
+
return (index.h("div", null, index.h("style", { type: "text/css" }, styleString$3), index.h("sl-dialog", { class: sheet$3.classes.Dialog, noHeader: true, open: true, label: dialogLabel, "onSl-request-close": (e) => {
|
|
8276
|
+
e.preventDefault();
|
|
8277
|
+
}, "onSl-hide": (e) => {
|
|
8278
|
+
var _a;
|
|
8279
|
+
if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === "SL-DIALOG") {
|
|
8280
|
+
e.preventDefault();
|
|
8281
|
+
}
|
|
8282
|
+
} }, index.h("h2", { class: sheet$3.classes.DialogTitle }, dialogLabel), renderStepContent())));
|
|
8283
|
+
}
|
|
8284
|
+
};
|
|
8285
|
+
function useDemoWidgetVerificationInternal(props) {
|
|
8286
|
+
const [showCode, setShowCode] = index_module.In({
|
|
8287
|
+
namespace: keys.SHOW_CODE_NAMESPACE,
|
|
8288
|
+
initialValue: false,
|
|
8289
|
+
});
|
|
8290
|
+
const [email, setEmail] = index_module.In({
|
|
8291
|
+
namespace: keys.VERIFICATION_EMAIL_NAMESPACE,
|
|
8292
|
+
initialValue: undefined,
|
|
8293
|
+
});
|
|
8294
|
+
const setContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
8295
|
+
const states = parseStates.parseStates(props.stateController);
|
|
8296
|
+
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-widget-verification"
|
|
8297
|
+
? { ...prev, ...states[key] }
|
|
8298
|
+
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
8299
|
+
const onVerification = () => {
|
|
8300
|
+
setContext(true);
|
|
8301
|
+
};
|
|
8302
|
+
return cjs.cjs({
|
|
8303
|
+
showCode,
|
|
8304
|
+
showPartnerModal: false,
|
|
8305
|
+
onVerification,
|
|
8306
|
+
onPartnerModalComplete: () => { },
|
|
8307
|
+
loading: false,
|
|
8308
|
+
}, formatted || {}, { arrayMerge: (_, a) => a });
|
|
8309
|
+
}
|
|
8310
|
+
|
|
7943
8311
|
exports.sqm_big_stat = BigStat;
|
|
7944
8312
|
exports.sqm_brand = BrandComponent;
|
|
7945
8313
|
exports.sqm_brand_selector = SqmBrandSelector;
|
|
@@ -7985,3 +8353,4 @@ exports.sqm_tax_and_cash = TaxAndCashMonolith;
|
|
|
7985
8353
|
exports.sqm_timeline = Timeline;
|
|
7986
8354
|
exports.sqm_timeline_entry = TimelineReward;
|
|
7987
8355
|
exports.sqm_user_name = UserName;
|
|
8356
|
+
exports.sqm_widget_verification = WidgetVerification;
|
|
@@ -10,7 +10,7 @@ const cjs = require('./cjs-1066ec21.js');
|
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
const mixins = require('./mixins-4761d472.js');
|
|
13
|
-
const sqmTextSpanView = require('./sqm-text-span-view-
|
|
13
|
+
const sqmTextSpanView = require('./sqm-text-span-view-8a32dd8c.js');
|
|
14
14
|
const keys = require('./keys-cff24974.js');
|
|
15
15
|
const useVerificationEmail = require('./useVerificationEmail-994bc32f.js');
|
|
16
16
|
|
|
@@ -65,7 +65,6 @@ const style = {
|
|
|
65
65
|
},
|
|
66
66
|
ContinueButton: {
|
|
67
67
|
width: "100%",
|
|
68
|
-
maxWidth: "100px",
|
|
69
68
|
},
|
|
70
69
|
FooterContainer: {
|
|
71
70
|
display: "flex",
|
|
@@ -143,9 +142,9 @@ function WidgetCodeVerificationView(props) {
|
|
|
143
142
|
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
144
143
|
index.h("sl-input", { class: inputClass, name: "code" })),
|
|
145
144
|
states.verifyFailed && (index.h("p", { class: sheet.classes.ErrorText }, text.invalidCodeText)),
|
|
146
|
-
index.h("
|
|
147
|
-
|
|
148
|
-
index.h(
|
|
145
|
+
index.h("div", { class: sheet.classes.FooterContainer },
|
|
146
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)),
|
|
147
|
+
index.h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)))));
|
|
149
148
|
}
|
|
150
149
|
|
|
151
150
|
const VerifyEmailWithCodeMutation = index_module.dist.gql `
|