@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
|
@@ -9,10 +9,12 @@ const index_module = require('./index.module-42d413d9.js');
|
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
|
-
const sqmTextSpanView = require('./sqm-text-span-view-
|
|
13
|
-
const
|
|
12
|
+
const sqmTextSpanView = require('./sqm-text-span-view-8a32dd8c.js');
|
|
13
|
+
const data = require('./data-6b5095f8.js');
|
|
14
|
+
const sqmPartnerInfoModalView = require('./sqm-partner-info-modal-view-d5c997e6.js');
|
|
14
15
|
const keys = require('./keys-cff24974.js');
|
|
15
16
|
const eventKeys = require('./eventKeys-7af4df4d.js');
|
|
17
|
+
const parseStates = require('./parseStates-d1effc19.js');
|
|
16
18
|
const useVerificationEmail = require('./useVerificationEmail-994bc32f.js');
|
|
17
19
|
|
|
18
20
|
const UpsertUserEmailMutation = index_module.dist.gql `
|
|
@@ -149,11 +151,9 @@ const style = {
|
|
|
149
151
|
gap: "var(--sl-spacing-medium)",
|
|
150
152
|
position: "relative",
|
|
151
153
|
flexDirection: "column",
|
|
152
|
-
maxWidth: "320px",
|
|
153
154
|
},
|
|
154
155
|
ContinueButton: {
|
|
155
156
|
width: "100%",
|
|
156
|
-
maxWidth: "100px",
|
|
157
157
|
},
|
|
158
158
|
SkeletonOne: {
|
|
159
159
|
width: "50%",
|
|
@@ -431,19 +431,11 @@ const GET_USER_PARTNER_INFO = index_module.dist.gql `
|
|
|
431
431
|
customFields
|
|
432
432
|
impactConnection {
|
|
433
433
|
connected
|
|
434
|
+
connectionStatus
|
|
434
435
|
publisher {
|
|
435
|
-
|
|
436
|
-
phoneNumberCountryCode
|
|
436
|
+
id
|
|
437
437
|
countryCode
|
|
438
438
|
currency
|
|
439
|
-
requiredTaxDocumentType
|
|
440
|
-
currentTaxDocument {
|
|
441
|
-
type
|
|
442
|
-
status
|
|
443
|
-
}
|
|
444
|
-
withdrawalSettings {
|
|
445
|
-
paymentMethod
|
|
446
|
-
}
|
|
447
439
|
}
|
|
448
440
|
}
|
|
449
441
|
}
|
|
@@ -496,6 +488,32 @@ const CONNECT_PARTNER = index_module.dist.gql `
|
|
|
496
488
|
}
|
|
497
489
|
}
|
|
498
490
|
`;
|
|
491
|
+
const START_IMPACT_CONNECTION = index_module.dist.gql `
|
|
492
|
+
mutation startImpactConnection($vars: ImpactConnectionInput!) {
|
|
493
|
+
startImpactConnection(impactConnectionInput: $vars) {
|
|
494
|
+
success
|
|
495
|
+
validationErrors {
|
|
496
|
+
field
|
|
497
|
+
message
|
|
498
|
+
}
|
|
499
|
+
user {
|
|
500
|
+
id
|
|
501
|
+
accountId
|
|
502
|
+
impactConnection {
|
|
503
|
+
connected
|
|
504
|
+
publisher {
|
|
505
|
+
brandedSignup
|
|
506
|
+
requiredTaxDocumentType
|
|
507
|
+
currentTaxDocument {
|
|
508
|
+
type
|
|
509
|
+
status
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
`;
|
|
499
517
|
const GET_BRAND_NAME = index_module.dist.gql `
|
|
500
518
|
query getTenantSettings {
|
|
501
519
|
tenantSettings {
|
|
@@ -504,33 +522,54 @@ const GET_BRAND_NAME = index_module.dist.gql `
|
|
|
504
522
|
}
|
|
505
523
|
`;
|
|
506
524
|
function usePartnerInfoModal(props) {
|
|
507
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
525
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
508
526
|
const locale = index_module.L();
|
|
527
|
+
const setVerificationContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
509
528
|
const { data: userData, loading: userLoading, refetch, } = index_module.wn(GET_USER_PARTNER_INFO, {});
|
|
510
529
|
const user = userData === null || userData === void 0 ? void 0 : userData.user;
|
|
511
530
|
const { data: currenciesData, loading: currenciesLoading } = index_module.wn(GET_CURRENCIES, { variables: { locale } });
|
|
512
531
|
const { data: countriesData, loading: countriesLoading } = index_module.wn(GET_COUNTRIES, {});
|
|
513
532
|
const { data: tenantSettingsData } = index_module.wn(GET_BRAND_NAME, {});
|
|
514
|
-
const
|
|
515
|
-
|
|
533
|
+
const { data: financeNetworkData } = index_module.wn(data.GET_FINANCE_NETWORK_SETTINGS, {
|
|
534
|
+
variables: { filter: {} },
|
|
535
|
+
});
|
|
536
|
+
const [startImpactConnection, { loading: connectLoading, errors: connectErrors },] = index_module.$e(START_IMPACT_CONNECTION);
|
|
537
|
+
// No pre-filled country, use locale to determine countryCode instead
|
|
538
|
+
const [countryCode, setCountryCode] = domContextHooks_module.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) ||
|
|
539
|
+
locale.replace(/^.*_/, ""));
|
|
516
540
|
const [currency, setCurrency] = domContextHooks_module.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) || "");
|
|
517
|
-
|
|
541
|
+
const countries = ((_e = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _e === void 0 ? void 0 : _e.data) || [];
|
|
542
|
+
// copied from useTaxAndCash for displaying currencies based on country - could be in helper?
|
|
543
|
+
const currencies = domContextHooks_module.useMemo(() => {
|
|
544
|
+
var _a, _b;
|
|
545
|
+
const allValidCurrencies = (_b = (_a = financeNetworkData === null || financeNetworkData === void 0 ? void 0 : financeNetworkData.impactFinanceNetworkSettings) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.reduce((agg, settings) => {
|
|
546
|
+
var _a, _b;
|
|
547
|
+
const currency = (_b = (_a = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.find((c) => c.currencyCode === settings.currency);
|
|
548
|
+
if (!currency)
|
|
549
|
+
return agg;
|
|
550
|
+
if (agg.find((c) => c.currencyCode === settings.currency))
|
|
551
|
+
return agg;
|
|
552
|
+
if (countryCode && settings.countryCode !== countryCode)
|
|
553
|
+
return agg;
|
|
554
|
+
return [...agg, currency];
|
|
555
|
+
}, []);
|
|
556
|
+
return (allValidCurrencies || []).sort((a, b) => a.displayName.localeCompare(b.displayName));
|
|
557
|
+
}, [financeNetworkData, currenciesData, countryCode]);
|
|
518
558
|
const [countrySearch, setCountrySearch] = domContextHooks_module.useState("");
|
|
519
559
|
const [currencySearch, setCurrencySearch] = domContextHooks_module.useState("");
|
|
520
|
-
const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(((
|
|
521
|
-
const [filteredCurrencies, setFilteredCurrencies] = domContextHooks_module.useState(
|
|
560
|
+
const [filteredCountries, setFilteredCountries] = domContextHooks_module.useState(((_f = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _f === void 0 ? void 0 : _f.data) || []);
|
|
561
|
+
const [filteredCurrencies, setFilteredCurrencies] = domContextHooks_module.useState(currencies || []);
|
|
562
|
+
console.log(userData, "userData partner info modal");
|
|
522
563
|
const [error, setError] = domContextHooks_module.useState("");
|
|
523
564
|
const [success, setSuccess] = domContextHooks_module.useState(false);
|
|
524
|
-
const countries = ((_g = countriesData === null || countriesData === void 0 ? void 0 : countriesData.impactPayoutCountries) === null || _g === void 0 ? void 0 : _g.data) || [];
|
|
525
|
-
const currencies = ((_h = currenciesData === null || currenciesData === void 0 ? void 0 : currenciesData.currencies) === null || _h === void 0 ? void 0 : _h.data) || [];
|
|
526
|
-
console.log(user, "user data from partner info query"); // TEMP
|
|
527
565
|
domContextHooks_module.useEffect(() => {
|
|
528
566
|
var _a;
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
567
|
+
const publisher = (_a = user === null || user === void 0 ? void 0 : user.impactConnection) === null || _a === void 0 ? void 0 : _a.publisher;
|
|
568
|
+
if (!userData || !publisher)
|
|
569
|
+
return;
|
|
570
|
+
setCountryCode(publisher.countryCode);
|
|
571
|
+
setCurrency(publisher.currency);
|
|
572
|
+
}, [userData, user]);
|
|
534
573
|
domContextHooks_module.useEffect(() => {
|
|
535
574
|
if (!(countries === null || countries === void 0 ? void 0 : countries.length))
|
|
536
575
|
return;
|
|
@@ -589,13 +628,13 @@ function usePartnerInfoModal(props) {
|
|
|
589
628
|
countryCode,
|
|
590
629
|
currency,
|
|
591
630
|
};
|
|
592
|
-
const result = await
|
|
631
|
+
const result = await startImpactConnection({ vars });
|
|
593
632
|
if (!result || ((_a = result) === null || _a === void 0 ? void 0 : _a.message)) {
|
|
594
633
|
setError(props.networkErrorText);
|
|
595
634
|
return;
|
|
596
635
|
}
|
|
597
636
|
const connectionResult = result
|
|
598
|
-
.
|
|
637
|
+
.startImpactConnection;
|
|
599
638
|
console.log(result, connectionResult, "result and connectionResult from creating partner from modal");
|
|
600
639
|
if (!(connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.success)) {
|
|
601
640
|
const validationMsg = (_b = connectionResult === null || connectionResult === void 0 ? void 0 : connectionResult.validationErrors) === null || _b === void 0 ? void 0 : _b.map((e) => e.message).join(". ");
|
|
@@ -606,28 +645,27 @@ function usePartnerInfoModal(props) {
|
|
|
606
645
|
window.dispatchEvent(new Event(eventKeys.TAX_FORM_UPDATED_EVENT_KEY));
|
|
607
646
|
await refetch();
|
|
608
647
|
setSuccess(true);
|
|
648
|
+
setVerificationContext(true);
|
|
609
649
|
}
|
|
610
650
|
catch (e) {
|
|
611
651
|
console.error("Partner creation error:", e);
|
|
612
652
|
setError(props.networkErrorText);
|
|
613
653
|
}
|
|
614
654
|
}
|
|
615
|
-
console.log(success, "success state in partner info modal");
|
|
616
655
|
const showModal = !success &&
|
|
617
656
|
!userLoading &&
|
|
618
|
-
(
|
|
619
|
-
console.log(showModal, "showModal condition in partner info modal"); // TEMP
|
|
657
|
+
(impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.connectionStatus) === "NOT_STARTED";
|
|
620
658
|
return {
|
|
621
659
|
states: {
|
|
622
660
|
open: showModal,
|
|
623
661
|
loading: userLoading || countriesLoading || currenciesLoading,
|
|
624
662
|
submitting: connectLoading,
|
|
625
|
-
isExistingPartner:
|
|
663
|
+
isExistingPartner: impactConnection === null || impactConnection === void 0 ? void 0 : impactConnection.publisher,
|
|
626
664
|
countryCode,
|
|
627
665
|
currency,
|
|
628
666
|
error,
|
|
629
667
|
success,
|
|
630
|
-
brandName: ((
|
|
668
|
+
brandName: ((_g = tenantSettingsData === null || tenantSettingsData === void 0 ? void 0 : tenantSettingsData.tenantSettings) === null || _g === void 0 ? void 0 : _g.companyName) || "",
|
|
631
669
|
filteredCountries: filteredCountries || [],
|
|
632
670
|
filteredCurrencies: filteredCurrencies || [],
|
|
633
671
|
},
|
|
@@ -721,6 +759,18 @@ const PartnerInfoModal = class {
|
|
|
721
759
|
* @uiWidget textArea
|
|
722
760
|
*/
|
|
723
761
|
this.missingFieldsErrorText = "Please select both a country and currency.";
|
|
762
|
+
/**
|
|
763
|
+
* Used to render in another modal.
|
|
764
|
+
* @undocumented
|
|
765
|
+
*/
|
|
766
|
+
this.inModal = false;
|
|
767
|
+
/**
|
|
768
|
+
* @undocumented
|
|
769
|
+
* @componentState { "title": "New partner", "props": { "states": { "open": true, "isExistingPartner": false } } }
|
|
770
|
+
* @componentState { "title": "Existing partner", "props": { "states": { "open": true, "isExistingPartner": true, "countryCode": "US", "currency": "USD" } } }
|
|
771
|
+
* @componentState { "title": "Connected (hidden)", "props": { "states": { "open": false } } }
|
|
772
|
+
*/
|
|
773
|
+
this.stateController = "{}";
|
|
724
774
|
domContextHooks_module.h$1(this);
|
|
725
775
|
}
|
|
726
776
|
disconnectedCallback() { }
|
|
@@ -728,10 +778,12 @@ const PartnerInfoModal = class {
|
|
|
728
778
|
return utils.getProps(this);
|
|
729
779
|
}
|
|
730
780
|
render() {
|
|
731
|
-
// AL: TODO add usePartnerInfoModal
|
|
732
781
|
const props = index_module.isDemo()
|
|
733
782
|
? useDemoPartnerInfoModal(this)
|
|
734
783
|
: usePartnerInfoModal(this);
|
|
784
|
+
if (this.inModal) {
|
|
785
|
+
return index.h(sqmPartnerInfoModalView.PartnerInfoModalContentView, Object.assign({}, props));
|
|
786
|
+
}
|
|
735
787
|
return index.h(sqmPartnerInfoModalView.PartnerInfoModalView, Object.assign({}, props));
|
|
736
788
|
}
|
|
737
789
|
};
|
|
@@ -739,6 +791,9 @@ function useDemoPartnerInfoModal(props) {
|
|
|
739
791
|
const [countryCode, setCountryCode] = domContextHooks_module.useState("US");
|
|
740
792
|
const [currency, setCurrency] = domContextHooks_module.useState("");
|
|
741
793
|
const [error, setError] = domContextHooks_module.useState("");
|
|
794
|
+
const parsed = parseStates.parseStates(props.stateController);
|
|
795
|
+
const stateOverride = (parsed === null || parsed === void 0 ? void 0 : parsed["sqm-partner-info-modal"]) || parsed || {};
|
|
796
|
+
// @ts-ignore
|
|
742
797
|
return cjs.cjs({
|
|
743
798
|
states: {
|
|
744
799
|
brandName: "Test Brand",
|
|
@@ -792,7 +847,7 @@ function useDemoPartnerInfoModal(props) {
|
|
|
792
847
|
supportDescriptionExistingPartner: props.supportDescriptionExistingPartner,
|
|
793
848
|
modalHeaderExistingPartner: props.modalHeaderExistingPartner,
|
|
794
849
|
},
|
|
795
|
-
}, props.demoData ||
|
|
850
|
+
}, props.demoData || stateOverride, { arrayMerge: (_, a) => a });
|
|
796
851
|
}
|
|
797
852
|
|
|
798
853
|
exports.sqm_email_verification = WidgetEmailVerification;
|
package/dist/cjs/{sqm-partner-info-modal-view-e3faede9.js → sqm-partner-info-modal-view-d5c997e6.js}
RENAMED
|
@@ -8,37 +8,26 @@ const style = {
|
|
|
8
8
|
"&::part(panel)": {
|
|
9
9
|
maxWidth: "480px",
|
|
10
10
|
},
|
|
11
|
-
"&::part(title)": {
|
|
12
|
-
fontSize: "var(--sl-font-size-x-large)",
|
|
13
|
-
fontWeight: "600",
|
|
14
|
-
padding: "var(--sl-spacing-x-large) var(--sl-spacing-x-large) 0 var(--sl-spacing-x-large)",
|
|
15
|
-
},
|
|
16
11
|
"&::part(body)": {
|
|
17
|
-
padding: "
|
|
12
|
+
padding: "0 var(--sl-spacing-x-large)",
|
|
18
13
|
fontSize: "var(--sl-font-size-small)",
|
|
19
14
|
overflow: "visible",
|
|
20
15
|
},
|
|
21
|
-
"&::part(footer)": {
|
|
22
|
-
display: "flex",
|
|
23
|
-
flexDirection: "column",
|
|
24
|
-
gap: "var(--sl-spacing-small)",
|
|
25
|
-
padding: "var(--sl-spacing-small) var(--sl-spacing-x-large) var(--sl-spacing-x-large)",
|
|
26
|
-
},
|
|
27
16
|
"&::part(overlay)": {
|
|
28
|
-
background: "
|
|
29
|
-
},
|
|
30
|
-
"&::part(close-button)": {
|
|
31
|
-
display: "none",
|
|
17
|
+
background: "var(--sl-overlay-background-color)",
|
|
32
18
|
},
|
|
33
19
|
},
|
|
20
|
+
DialogTitle: {
|
|
21
|
+
fontSize: "var(--sl-font-size-x-large)",
|
|
22
|
+
fontWeight: "600",
|
|
23
|
+
padding: "var(--sl-spacing-large) 0 0 0",
|
|
24
|
+
margin: "0",
|
|
25
|
+
},
|
|
34
26
|
FormFields: {
|
|
35
27
|
display: "flex",
|
|
36
28
|
flexDirection: "column",
|
|
37
29
|
gap: "var(--sl-spacing-medium)",
|
|
38
|
-
marginTop: "var(--sl-spacing-
|
|
39
|
-
"& > *": {
|
|
40
|
-
flex: 1,
|
|
41
|
-
},
|
|
30
|
+
marginTop: "var(--sl-spacing-large)",
|
|
42
31
|
},
|
|
43
32
|
ErrorMessage: {
|
|
44
33
|
color: "var(--sqm-danger-color-text, #d32f2f)",
|
|
@@ -56,53 +45,73 @@ const style = {
|
|
|
56
45
|
display: "flex",
|
|
57
46
|
flexDirection: "column",
|
|
58
47
|
gap: "var(--sl-spacing-medium)",
|
|
59
|
-
|
|
48
|
+
margin: "0",
|
|
60
49
|
"& > p": {
|
|
61
50
|
margin: "0",
|
|
62
51
|
},
|
|
63
52
|
},
|
|
53
|
+
SubmitButton: {
|
|
54
|
+
width: "100%",
|
|
55
|
+
marginTop: "var(--sl-spacing-large)",
|
|
56
|
+
},
|
|
64
57
|
};
|
|
65
|
-
function
|
|
58
|
+
function PartnerInfoModalContentView(props) {
|
|
66
59
|
var _a, _b;
|
|
67
60
|
const { states, callbacks, text } = props;
|
|
68
61
|
const sheet = JSS.createStyleSheet(style);
|
|
69
62
|
const styleString = sheet.toString();
|
|
70
|
-
|
|
71
|
-
if (!states.open)
|
|
72
|
-
return index.h("div", null);
|
|
73
|
-
const description = states.isExistingPartner ? (index.h("div", { class: sheet.classes.DescriptionContainer },
|
|
63
|
+
const description = states.isExistingPartner ? (index.h("span", { class: sheet.classes.DescriptionContainer },
|
|
74
64
|
index.h("p", null, text.descriptionExistingPartner),
|
|
75
|
-
index.h("p", null, text.supportDescriptionExistingPartner))) : (index.h("p",
|
|
76
|
-
" ",
|
|
77
|
-
text.descriptionNewPartner));
|
|
65
|
+
index.h("p", null, text.supportDescriptionExistingPartner))) : (index.h("p", { class: sheet.classes.DescriptionContainer }, text.descriptionNewPartner));
|
|
78
66
|
const buttonLabel = states.isExistingPartner
|
|
79
67
|
? text.confirmButtonLabel
|
|
80
68
|
: text.submitButtonLabel;
|
|
81
|
-
return (index.h("
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
}, "onSl-hide": (e) => {
|
|
86
|
-
var _a;
|
|
87
|
-
// Prevent closing when clicking outside the dialog but not dropdowns
|
|
88
|
-
if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === "SL-DIALOG") {
|
|
89
|
-
e.preventDefault();
|
|
90
|
-
}
|
|
91
|
-
} },
|
|
92
|
-
index.h("style", { type: "text/css" }, styleString),
|
|
93
|
-
description,
|
|
69
|
+
return (index.h("div", null,
|
|
70
|
+
index.h("style", { type: "text/css" },
|
|
71
|
+
" ",
|
|
72
|
+
styleString),
|
|
94
73
|
index.h("div", { class: sheet.classes.FormFields },
|
|
95
|
-
|
|
74
|
+
description,
|
|
75
|
+
index.h("sl-select", { exportparts: "label: input-label, base: input-base", label: text.countryLabel, value: states.countryCode, disabled: states.submitting || !!states.isExistingPartner, required: true, hoist: true, "onSl-select": callbacks.onCountryChange },
|
|
96
76
|
index.h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCountryPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => {
|
|
97
77
|
var _a;
|
|
98
78
|
callbacks.setCountrySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value);
|
|
99
79
|
} }), (_a = states.filteredCountries) === null || _a === void 0 ? void 0 :
|
|
100
80
|
_a.map((c) => (index.h("sl-menu-item", { value: c.countryCode }, c.displayName)))),
|
|
101
|
-
index.h("sl-select", {
|
|
81
|
+
index.h("sl-select", { exportparts: "label: input-label, base: input-base", label: text.currencyLabel, value: states.currency, disabled: states.submitting || !!states.isExistingPartner, required: true, hoist: true, "onSl-select": callbacks.onCurrencyChange },
|
|
102
82
|
index.h("sl-input", { class: sheet.classes.SearchInput, placeholder: text.searchCurrencyPlaceholder, onKeyDown: (e) => e.stopPropagation(), "onSl-input": (e) => { var _a; return callbacks.setCurrencySearch((_a = e.target) === null || _a === void 0 ? void 0 : _a.value); } }), (_b = states.filteredCurrencies) === null || _b === void 0 ? void 0 :
|
|
103
|
-
_b.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
83
|
+
_b.map((c) => (index.h("sl-menu-item", { value: c.currencyCode },
|
|
84
|
+
c.currencyCode,
|
|
85
|
+
" - ",
|
|
86
|
+
c.displayName))))),
|
|
104
87
|
states.error && index.h("p", { class: sheet.classes.ErrorMessage }, states.error),
|
|
105
|
-
index.h("sl-button", { slot: "footer", type: "primary", loading: states.submitting, disabled: states.submitting || !states.countryCode || !states.currency, onClick: callbacks.onSubmit,
|
|
88
|
+
index.h("sl-button", { slot: "footer", type: "primary", loading: states.submitting, disabled: states.submitting || !states.countryCode || !states.currency, onClick: callbacks.onSubmit, class: sheet.classes.SubmitButton, exportparts: "base: primarybutton-base" }, buttonLabel)));
|
|
89
|
+
}
|
|
90
|
+
function PartnerInfoModalView(props) {
|
|
91
|
+
const { states, text, callbacks } = props;
|
|
92
|
+
const sheet = JSS.createStyleSheet(style);
|
|
93
|
+
const styleString = sheet.toString();
|
|
94
|
+
if (!states.open)
|
|
95
|
+
return index.h("div", null);
|
|
96
|
+
return (index.h("div", null,
|
|
97
|
+
index.h("style", { type: "text/css" },
|
|
98
|
+
" ",
|
|
99
|
+
styleString),
|
|
100
|
+
index.h("sl-dialog", { class: sheet.classes.Dialog, open: states.open, noHeader: true, label: states.isExistingPartner
|
|
101
|
+
? text.modalHeaderExistingPartner
|
|
102
|
+
: text.modalHeader, "onSl-request-close": (e) => {
|
|
103
|
+
e.preventDefault();
|
|
104
|
+
}, "onSl-hide": (e) => {
|
|
105
|
+
var _a;
|
|
106
|
+
if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === "SL-DIALOG") {
|
|
107
|
+
e.preventDefault();
|
|
108
|
+
}
|
|
109
|
+
} },
|
|
110
|
+
index.h("h2", { class: sheet.classes.DialogTitle }, states.isExistingPartner
|
|
111
|
+
? text.modalHeaderExistingPartner
|
|
112
|
+
: text.modalHeader),
|
|
113
|
+
index.h(PartnerInfoModalContentView, Object.assign({}, props)))));
|
|
106
114
|
}
|
|
107
115
|
|
|
116
|
+
exports.PartnerInfoModalContentView = PartnerInfoModalContentView;
|
|
108
117
|
exports.PartnerInfoModalView = PartnerInfoModalView;
|
|
@@ -4,7 +4,7 @@ const index = require('./index-8277cbb3.js');
|
|
|
4
4
|
const global = require('./global-0f8b1267.js');
|
|
5
5
|
const JSS = require('./JSS-8503a151.js');
|
|
6
6
|
const mixins = require('./mixins-4761d472.js');
|
|
7
|
-
const sqmTextSpanView = require('./sqm-text-span-view-
|
|
7
|
+
const sqmTextSpanView = require('./sqm-text-span-view-8a32dd8c.js');
|
|
8
8
|
|
|
9
9
|
const style = {
|
|
10
10
|
Wrapper: mixins.AuthWrapper,
|
|
@@ -9,8 +9,8 @@ const index_module = require('./index.module-42d413d9.js');
|
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
require('./JSS-8503a151.js');
|
|
11
11
|
require('./mixins-4761d472.js');
|
|
12
|
-
require('./sqm-text-span-view-
|
|
13
|
-
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-
|
|
12
|
+
require('./sqm-text-span-view-8a32dd8c.js');
|
|
13
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-60f8e0a7.js');
|
|
14
14
|
|
|
15
15
|
function usePortalEmailVerification(props) {
|
|
16
16
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
@@ -10,11 +10,11 @@ const cjs = require('./cjs-1066ec21.js');
|
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
require('./mixins-4761d472.js');
|
|
13
|
-
require('./sqm-text-span-view-
|
|
14
|
-
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-
|
|
13
|
+
require('./sqm-text-span-view-8a32dd8c.js');
|
|
14
|
+
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-b31638f8.js');
|
|
15
15
|
const usePortalRegistrationForm = require('./usePortalRegistrationForm-31822dc4.js');
|
|
16
16
|
const useRegistrationFormState = require('./useRegistrationFormState-a223f597.js');
|
|
17
|
-
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-
|
|
17
|
+
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-fd48f1d3.js');
|
|
18
18
|
|
|
19
19
|
function usePortalForgotPassword(props) {
|
|
20
20
|
var _a, _b, _c, _d, _e, _f, _g;
|
package/dist/cjs/{sqm-portal-profile-view-bfdbb98d.js → sqm-portal-profile-view-2bfd7afd.js}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const index = require('./index-8277cbb3.js');
|
|
4
4
|
const global = require('./global-0f8b1267.js');
|
|
5
5
|
const JSS = require('./JSS-8503a151.js');
|
|
6
|
-
const sqmTextSpanView = require('./sqm-text-span-view-
|
|
6
|
+
const sqmTextSpanView = require('./sqm-text-span-view-8a32dd8c.js');
|
|
7
7
|
|
|
8
8
|
function PortalProfileView(props) {
|
|
9
9
|
var _a, _b, _c, _d, _e;
|
|
@@ -9,8 +9,8 @@ const index_module = require('./index.module-42d413d9.js');
|
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
|
-
require('./sqm-text-span-view-
|
|
13
|
-
const sqmPortalProfileView = require('./sqm-portal-profile-view-
|
|
12
|
+
require('./sqm-text-span-view-8a32dd8c.js');
|
|
13
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-2bfd7afd.js');
|
|
14
14
|
const utilities = require('./utilities-096934ea.js');
|
|
15
15
|
|
|
16
16
|
const GET_USER = index_module.dist.gql `
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const index = require('./index-8277cbb3.js');
|
|
4
4
|
const JSS = require('./JSS-8503a151.js');
|
|
5
5
|
const mixins = require('./mixins-4761d472.js');
|
|
6
|
-
const sqmTextSpanView = require('./sqm-text-span-view-
|
|
6
|
+
const sqmTextSpanView = require('./sqm-text-span-view-8a32dd8c.js');
|
|
7
7
|
|
|
8
8
|
const style = {
|
|
9
9
|
Wrapper: mixins.AuthWrapper,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const index = require('./index-8277cbb3.js');
|
|
4
4
|
const JSS = require('./JSS-8503a151.js');
|
|
5
5
|
const mixins = require('./mixins-4761d472.js');
|
|
6
|
-
const sqmTextSpanView = require('./sqm-text-span-view-
|
|
6
|
+
const sqmTextSpanView = require('./sqm-text-span-view-8a32dd8c.js');
|
|
7
7
|
|
|
8
8
|
const style = {
|
|
9
9
|
Wrapper: mixins.AuthWrapper,
|
|
@@ -10,8 +10,8 @@ const cjs = require('./cjs-1066ec21.js');
|
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
require('./mixins-4761d472.js');
|
|
13
|
-
require('./sqm-text-span-view-
|
|
14
|
-
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-
|
|
13
|
+
require('./sqm-text-span-view-8a32dd8c.js');
|
|
14
|
+
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-d90d77f9.js');
|
|
15
15
|
|
|
16
16
|
function usePortalResetPassword(props) {
|
|
17
17
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -4,7 +4,7 @@ const index = require('./index-8277cbb3.js');
|
|
|
4
4
|
const index_module = require('./index.module-42d413d9.js');
|
|
5
5
|
const JSS = require('./JSS-8503a151.js');
|
|
6
6
|
const mixins = require('./mixins-4761d472.js');
|
|
7
|
-
const sqmTextSpanView = require('./sqm-text-span-view-
|
|
7
|
+
const sqmTextSpanView = require('./sqm-text-span-view-8a32dd8c.js');
|
|
8
8
|
|
|
9
9
|
const vanillaStyle = `
|
|
10
10
|
:host {
|
|
@@ -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
|
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 GenericTableView = require('./GenericTableView-be5648e4.js');
|
|
15
15
|
const reRender = require('./re-render-69bde9ee.js');
|
|
16
16
|
const useChildElements = require('./useChildElements-89bc50a9.js');
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-8277cbb3.js');
|
|
6
6
|
const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
|
|
7
7
|
require('./JSS-8503a151.js');
|
|
8
|
-
const sqmTextSpanView = require('./sqm-text-span-view-
|
|
8
|
+
const sqmTextSpanView = require('./sqm-text-span-view-8a32dd8c.js');
|
|
9
9
|
|
|
10
10
|
const RewardTableCustomerNoteCell = class {
|
|
11
11
|
constructor(hostRef) {
|