@saasquatch/mint-components 2.1.11-0 → 2.1.11-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-2b3f51be.js → ShadowViewAddon-c97e80de.js} +428 -25
- package/dist/cjs/{data-6b5095f8.js → data-8c8a08f6.js} +91 -2
- package/dist/cjs/extractProps-e9c55ba8.js +35 -0
- package/dist/cjs/{global-0f8b1267.js → global-b7b1b8fe.js} +3126 -3177
- package/dist/cjs/{index.module-42d413d9.js → index.module-f8c8495f.js} +149 -154
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/mint-components.cjs.js +3 -3
- package/dist/cjs/{re-render-69bde9ee.js → re-render-72a0ef45.js} +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +99 -484
- package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_45.cjs.entry.js} +291 -427
- package/dist/cjs/sqm-close-button.cjs.entry.js +1 -1
- package/dist/cjs/sqm-code-verification.cjs.entry.js +8 -7
- package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +418 -0
- package/dist/cjs/sqm-empty_4.cjs.entry.js +3 -3
- package/dist/cjs/sqm-google-sign-in.cjs.entry.js +1 -1
- package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +1 -1
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-lead-checkbox-field-view-d90f8941.js → sqm-lead-checkbox-field-view-0af2a157.js} +1 -1
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +4 -4
- package/dist/cjs/{sqm-lead-input-field-view-818d9e9a.js → sqm-lead-input-field-view-0cd7ebdb.js} +1 -1
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +4 -4
- package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +2 -2
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-navigation-sidebar-item-view-20693e59.js → sqm-navigation-sidebar-item-view-49b152dd.js} +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +2 -2
- package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +3 -3
- package/dist/cjs/sqm-password-field.cjs.entry.js +2 -2
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-container-view-70a47420.js → sqm-portal-container-view-757f921b.js} +5 -6
- package/dist/cjs/{sqm-portal-email-verification-view-60f8e0a7.js → sqm-portal-email-verification-view-abb773a7.js} +2 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +8 -8
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-profile-view-2bfd7afd.js → sqm-portal-profile-view-3515e1e5.js} +2 -2
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +5 -5
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-portal-registration-form-view-fd48f1d3.js → sqm-portal-registration-form-view-a45f7a52.js} +1 -1
- package/dist/cjs/{sqm-portal-reset-password-view-d90d77f9.js → sqm-portal-reset-password-view-a767b044.js} +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-portal-verify-email-view-b31638f8.js → sqm-portal-verify-email-view-717d0633.js} +2 -2
- package/dist/cjs/sqm-qr-code.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +6 -6
- package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -2
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +5 -5
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +219 -291
- package/dist/cjs/sqm-tab.cjs.entry.js +2 -2
- package/dist/cjs/sqm-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{sqm-text-span-view-8a32dd8c.js → sqm-text-span-view-b9e10f5d.js} +1 -1
- package/dist/cjs/sqm-text-span.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-user-info-form-view-01bf2f41.js → sqm-user-info-form-view-53306f6e.js} +40 -33
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +1 -1
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +214 -0
- package/dist/cjs/{useChildElements-89bc50a9.js → useChildElements-041127d7.js} +1 -1
- package/dist/cjs/{useInstantAccessRegistration-651aa95b.js → useInstantAccessRegistration-2398df36.js} +2 -2
- package/dist/cjs/{useLeadFormState-76d3b511.js → useLeadFormState-b4c2ab5b.js} +2 -2
- package/dist/cjs/{usePayoutStatus-cf050a03.js → usePayoutStatus-0192fccd.js} +6 -4
- package/dist/cjs/{usePortalRegistrationForm-31822dc4.js → usePortalRegistrationForm-23ee2d62.js} +2 -2
- package/dist/cjs/{useReferralCodes-89c2b972.js → useReferralCodes-0f7948af.js} +1 -1
- package/dist/cjs/{useReferralTable-d3ddfd05.js → useReferralTable-6e9de0d5.js} +3 -3
- package/dist/cjs/{useRegistrationFormState-a223f597.js → useRegistrationFormState-4fe5b770.js} +1 -1
- package/dist/cjs/{useVerificationEmail-994bc32f.js → useVerificationEmail-5d19aa99.js} +1 -1
- package/dist/cjs/{utilities-096934ea.js → utilities-fcdb9504.js} +1 -1
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +6 -7
- package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +1 -1
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/ReferralIframe.stories.js +1 -0
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +1 -1
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +27 -1
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTable.stories.js +2 -2
- package/dist/collection/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.js +1 -13
- package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTable.stories.js +2 -2
- package/dist/collection/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.js +1 -12
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
- package/dist/collection/components/sqm-share-link/ShareLink.stories.js +136 -11
- package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
- package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +192 -0
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +935 -48
- package/dist/collection/components/sqm-share-link/useShareLink.js +227 -14
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -4
- package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +4 -3
- package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +2 -0
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +11 -510
- package/dist/collection/components/sqm-widget-verification/useWidgetVerification.js +5 -20
- package/dist/collection/components/tax-and-cash/data.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +37 -75
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +13 -688
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -95
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +4 -4
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +11 -49
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +6 -6
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +0 -4
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +17 -9
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +16 -34
- package/dist/esm/{ShadowViewAddon-78b791d2.js → ShadowViewAddon-33f1a8f7.js} +429 -27
- package/dist/esm/{data-33c16dff.js → data-12e6aae1.js} +85 -3
- package/dist/esm/extractProps-54064fb0.js +32 -0
- package/dist/esm/{global-39f55ec2.js → global-96c14d63.js} +3126 -3177
- package/dist/esm/{index.module-cede12c6.js → index.module-b23fdad8.js} +150 -153
- package/dist/esm/{keys-db1897ae.js → keys-406491dc.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-7a0c7976.js → re-render-f30aeb6b.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +89 -474
- package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_45.entry.js} +286 -421
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +9 -8
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +414 -0
- package/dist/esm/sqm-empty_4.entry.js +3 -3
- package/dist/esm/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/{sqm-lead-checkbox-field-view-7cee2b4e.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-11a4f9a9.js → sqm-lead-input-field-view-d1b91650.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +4 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-48e7e0d3.js → sqm-navigation-sidebar-item-view-b3beac5a.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-container-view-a8c708cd.js → sqm-portal-container-view-200c9df8.js} +6 -7
- package/dist/esm/{sqm-portal-email-verification-view-33f5c108.js → sqm-portal-email-verification-view-04528277.js} +2 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +8 -8
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-88fd6a93.js → sqm-portal-profile-view-b5ea620f.js} +2 -2
- package/dist/esm/sqm-portal-profile.entry.js +5 -5
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
- package/dist/esm/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
- package/dist/esm/{sqm-portal-verify-email-view-0b70c1b1.js → sqm-portal-verify-email-view-c61536b7.js} +2 -2
- package/dist/esm/sqm-qr-code.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +6 -6
- package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
- package/dist/esm/sqm-stencilbook.entry.js +185 -257
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
- package/dist/esm/sqm-text-span.entry.js +1 -1
- package/dist/esm/{sqm-user-info-form-view-365cef98.js → sqm-user-info-form-view-19d81a2b.js} +19 -12
- package/dist/esm/sqm-widget-verification-controller.entry.js +2 -2
- package/dist/esm/sqm-widget-verification.entry.js +210 -0
- package/dist/esm/{useChildElements-c26d7347.js → useChildElements-9bccfb72.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-e2392f42.js → useInstantAccessRegistration-69fefed0.js} +2 -2
- package/dist/esm/{useLeadFormState-9099c8d4.js → useLeadFormState-dd4e8b08.js} +2 -2
- package/dist/esm/{usePayoutStatus-fa504d49.js → usePayoutStatus-46c0c289.js} +4 -3
- package/dist/esm/{usePortalRegistrationForm-5844032a.js → usePortalRegistrationForm-62de6fb1.js} +2 -2
- package/dist/esm/{useReferralCodes-3cde72d4.js → useReferralCodes-52ca720f.js} +1 -1
- package/dist/esm/{useReferralTable-35e6d4c1.js → useReferralTable-92af4133.js} +3 -3
- package/dist/esm/{useRegistrationFormState-1813bdef.js → useRegistrationFormState-2c090c38.js} +1 -1
- package/dist/esm/{useVerificationEmail-cb3d51e3.js → useVerificationEmail-c13c3b51.js} +1 -1
- package/dist/esm/{utilities-c9e730ed.js → utilities-77b1e0cc.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-33f1a8f7.js +1 -0
- package/dist/esm-es5/data-12e6aae1.js +1 -0
- package/dist/esm-es5/extractProps-54064fb0.js +1 -0
- package/dist/esm-es5/global-96c14d63.js +271 -0
- package/dist/esm-es5/index.module-b23fdad8.js +1 -0
- package/dist/esm-es5/{keys-db1897ae.js → keys-406491dc.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-7a0c7976.js → re-render-f30aeb6b.js} +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -0
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -0
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-7cee2b4e.js → sqm-lead-checkbox-field-view-7928db07.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-11a4f9a9.js → sqm-lead-input-field-view-d1b91650.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-48e7e0d3.js → sqm-navigation-sidebar-item-view-b3beac5a.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-container-view-200c9df8.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-33f5c108.js → sqm-portal-email-verification-view-04528277.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-88fd6a93.js → sqm-portal-profile-view-b5ea620f.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-registration-form-view-9bf30b56.js → sqm-portal-registration-form-view-79265df5.js} +1 -1
- package/dist/esm-es5/{sqm-portal-reset-password-view-f8d1689c.js → sqm-portal-reset-password-view-f84c04cf.js} +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-verify-email-view-0b70c1b1.js → sqm-portal-verify-email-view-c61536b7.js} +1 -1
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/{sqm-text-span-view-4db9e33f.js → sqm-text-span-view-72f43dff.js} +1 -1
- package/dist/esm-es5/sqm-text-span.entry.js +1 -1
- package/dist/esm-es5/sqm-user-info-form-view-19d81a2b.js +1 -0
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -0
- package/dist/esm-es5/{useChildElements-c26d7347.js → useChildElements-9bccfb72.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-e2392f42.js → useInstantAccessRegistration-69fefed0.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-9099c8d4.js → useLeadFormState-dd4e8b08.js} +1 -1
- package/dist/esm-es5/{usePayoutStatus-fa504d49.js → usePayoutStatus-46c0c289.js} +2 -2
- package/dist/esm-es5/{usePortalRegistrationForm-5844032a.js → usePortalRegistrationForm-62de6fb1.js} +1 -1
- package/dist/esm-es5/{useReferralCodes-3cde72d4.js → useReferralCodes-52ca720f.js} +1 -1
- package/dist/esm-es5/{useReferralTable-35e6d4c1.js → useReferralTable-92af4133.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-1813bdef.js → useRegistrationFormState-2c090c38.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-cb3d51e3.js → useVerificationEmail-c13c3b51.js} +1 -1
- package/dist/esm-es5/{utilities-c9e730ed.js → utilities-77b1e0cc.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/{p-d01949f7.system.entry.js → p-00b235c5.system.entry.js} +1 -1
- package/dist/mint-components/{p-62212b9a.entry.js → p-013564b3.entry.js} +1 -1
- package/dist/mint-components/p-02499e08.entry.js +1 -0
- package/dist/mint-components/{p-998c989a.system.entry.js → p-027fc3be.system.entry.js} +1 -1
- package/dist/mint-components/{p-32d078a3.js → p-035d9b65.js} +1 -1
- package/dist/mint-components/{p-e4dbca9a.system.js → p-036a2617.system.js} +1 -1
- package/dist/mint-components/p-0706cf9e.system.entry.js +1 -0
- package/dist/mint-components/p-0797a946.js +1 -0
- package/dist/mint-components/p-08930b83.js +499 -0
- package/dist/mint-components/{p-f11d29fd.entry.js → p-09348341.entry.js} +1 -1
- package/dist/mint-components/{p-991f60fc.entry.js → p-09f7aacd.entry.js} +2 -2
- package/dist/mint-components/p-0b1e90fe.system.js +1 -0
- package/dist/mint-components/{p-8ecc8875.js → p-0c0d4065.js} +5 -6
- package/dist/mint-components/{p-8f9c1387.js → p-0d83907e.js} +1 -1
- package/dist/mint-components/p-1021a49f.system.entry.js +1 -0
- package/dist/mint-components/{p-2d3a12f2.entry.js → p-13292317.entry.js} +2 -2
- package/dist/mint-components/{p-731c4d33.entry.js → p-13d1b10d.entry.js} +1 -1
- package/dist/mint-components/{p-a86ce218.system.js → p-172675ca.system.js} +1 -1
- package/dist/mint-components/{p-d355336b.system.js → p-19c441b2.system.js} +1 -1
- package/dist/mint-components/{p-1d49dddc.entry.js → p-1d92c169.entry.js} +1 -1
- package/dist/mint-components/{p-86381dc7.system.js → p-205cfdcd.system.js} +1 -1
- package/dist/mint-components/{p-4723526d.js → p-2668335b.js} +1 -1
- package/dist/mint-components/{p-45475cf9.system.entry.js → p-2b4af8e8.system.entry.js} +1 -1
- package/dist/mint-components/{p-e9e05970.system.entry.js → p-2d5c2bd4.system.entry.js} +1 -1
- package/dist/mint-components/p-30c1ef36.system.js +1 -0
- package/dist/mint-components/{p-bcadd021.js → p-3286ef38.js} +1 -1
- package/dist/mint-components/{p-0d75a207.js → p-3366b81e.js} +2 -2
- package/dist/mint-components/p-38c7775a.js +1 -0
- package/dist/mint-components/p-3adbfd0b.system.js +6 -0
- package/dist/mint-components/p-3af3e2c1.entry.js +25 -0
- package/dist/mint-components/{p-160828b4.entry.js → p-3bc62ca6.entry.js} +1 -1
- package/dist/mint-components/{p-9d6984e7.entry.js → p-40bad95a.entry.js} +2 -2
- package/dist/mint-components/{p-00463c83.system.js → p-43c31fd5.system.js} +1 -1
- package/dist/mint-components/p-4da5a3fe.system.entry.js +1 -0
- package/dist/mint-components/{p-608da224.entry.js → p-52674798.entry.js} +1 -1
- package/dist/mint-components/p-5492dd51.system.entry.js +1 -0
- package/dist/mint-components/p-57dd28bd.system.js +1 -0
- package/dist/mint-components/{p-c84a2512.system.js → p-5b1d2866.system.js} +1 -1
- package/dist/mint-components/{p-5c9d030a.system.entry.js → p-5b871e38.system.entry.js} +1 -1
- package/dist/mint-components/p-5bc5c61e.entry.js +1 -0
- package/dist/mint-components/{p-b5fed7c6.entry.js → p-5c4ba8a0.entry.js} +1 -1
- package/dist/mint-components/{p-fb4ab5ba.system.entry.js → p-5ce78407.system.entry.js} +1 -1
- package/dist/mint-components/{p-9c1b0c8b.entry.js → p-61897e72.entry.js} +1 -1
- package/dist/mint-components/{p-52748a87.system.entry.js → p-626b31cb.system.entry.js} +1 -1
- package/dist/mint-components/{p-092db51a.js → p-642f2c89.js} +1 -1
- package/dist/mint-components/{p-f4a57aed.entry.js → p-653db72e.entry.js} +1 -1
- package/dist/mint-components/{p-88c9cc1b.entry.js → p-6668f9f0.entry.js} +1 -1
- package/dist/mint-components/{p-f368f04a.system.js → p-686dd5eb.system.js} +1 -1
- package/dist/mint-components/p-6c4ad51a.js +1 -0
- package/dist/mint-components/p-7265bbcb.system.js +271 -0
- package/dist/mint-components/p-738dce27.system.entry.js +1 -0
- package/dist/mint-components/{p-379cb9f1.system.js → p-7562cd98.system.js} +1 -1
- package/dist/mint-components/p-76271ec4.entry.js +9 -0
- package/dist/mint-components/{p-7547180f.system.js → p-77b9cde8.system.js} +1 -1
- package/dist/mint-components/{p-96e4e6a4.entry.js → p-77fa2383.entry.js} +1 -1
- package/dist/mint-components/{p-d5a1c979.system.entry.js → p-782af7ae.system.entry.js} +1 -1
- package/dist/mint-components/p-78b40f71.system.js +1 -0
- package/dist/mint-components/{p-55627a5c.entry.js → p-7939e4af.entry.js} +1 -1
- package/dist/mint-components/{p-9b33e2a7.system.js → p-7b59e13c.system.js} +1 -1
- package/dist/mint-components/p-7efb8782.system.js +1 -0
- package/dist/mint-components/{p-60085f20.system.entry.js → p-80e116ec.system.entry.js} +1 -1
- package/dist/mint-components/{p-370e0d75.js → p-832aea99.js} +1 -1
- package/dist/mint-components/{p-36395228.system.js → p-85721089.system.js} +1 -1
- package/dist/mint-components/{p-28e0062c.system.js → p-8583ce0c.system.js} +1 -1
- package/dist/mint-components/p-8784539d.entry.js +273 -0
- package/dist/mint-components/{p-71561bb2.system.entry.js → p-8899ff38.system.entry.js} +1 -1
- package/dist/mint-components/p-892797eb.system.entry.js +1 -0
- package/dist/mint-components/{p-567a5ded.js → p-8962e023.js} +1 -1
- package/dist/mint-components/{p-3461a8cb.entry.js → p-8f2d03c7.entry.js} +1 -1
- package/dist/mint-components/{p-357040e6.system.entry.js → p-90833864.system.entry.js} +1 -1
- package/dist/mint-components/p-91a96e98.entry.js +1 -0
- package/dist/mint-components/{p-7a08d288.system.entry.js → p-9390586b.system.entry.js} +1 -1
- package/dist/mint-components/{p-0c43b6ff.entry.js → p-95510f27.entry.js} +1 -1
- package/dist/mint-components/{p-9e43f1eb.entry.js → p-982d1f6f.entry.js} +2 -2
- package/dist/mint-components/{p-77117f6c.system.js → p-a0c5631b.system.js} +1 -1
- package/dist/mint-components/{p-df88dcaa.system.js → p-a4825ec2.system.js} +1 -1
- package/dist/mint-components/{p-095b7128.js → p-a4f8abad.js} +1 -1
- package/dist/mint-components/{p-21e7079a.system.entry.js → p-a96c9bbb.system.entry.js} +1 -1
- package/dist/mint-components/{p-886fb141.entry.js → p-af407cce.entry.js} +1 -1
- package/dist/mint-components/{p-86a70151.entry.js → p-b2b85238.entry.js} +1 -1
- package/dist/mint-components/p-b395470f.entry.js +16 -0
- package/dist/mint-components/{p-45e2a83a.js → p-b3ad957c.js} +1 -1
- package/dist/mint-components/{p-1b0cbbae.entry.js → p-b66f45d1.entry.js} +1 -1
- package/dist/mint-components/{p-691d34f1.system.entry.js → p-b96e90a2.system.entry.js} +1 -1
- package/dist/mint-components/{p-3c88d2ed.js → p-bab4929e.js} +2 -2
- package/dist/mint-components/p-bba16a46.system.entry.js +1 -0
- package/dist/mint-components/{p-3c555674.js → p-bc386a7b.js} +1 -1
- package/dist/mint-components/{p-a7f72a66.js → p-bee4af5d.js} +1 -1
- package/dist/mint-components/{p-16deb1a9.system.entry.js → p-c30d0049.system.entry.js} +1 -1
- package/dist/mint-components/p-c3c8d4ee.system.entry.js +1 -0
- package/dist/mint-components/{p-62e1c8b2.system.entry.js → p-c45a929a.system.entry.js} +1 -1
- package/dist/mint-components/{p-50d959bd.js → p-c813ec64.js} +1 -1
- package/dist/mint-components/{p-5dc9e95b.entry.js → p-c8a8d231.entry.js} +2 -2
- package/dist/mint-components/{p-9bd53e4d.system.entry.js → p-c8bcbf8b.system.entry.js} +1 -1
- package/dist/mint-components/p-ca098be1.system.js +1 -0
- package/dist/mint-components/{p-95aaf35a.system.entry.js → p-d005df28.system.entry.js} +1 -1
- package/dist/mint-components/p-d0993bb9.js +1 -0
- package/dist/mint-components/{p-7e36a1ff.js → p-d18dedd4.js} +1 -1
- package/dist/mint-components/{p-e1292288.system.entry.js → p-d3b1ab20.system.entry.js} +1 -1
- package/dist/mint-components/p-d4f332a7.entry.js +106 -0
- package/dist/mint-components/{p-6b1a6b0c.system.js → p-d55c50af.system.js} +1 -1
- package/dist/mint-components/{p-b1b8e629.system.js → p-d6193876.system.js} +1 -1
- package/dist/mint-components/{p-37658fec.entry.js → p-db0a2afd.entry.js} +1 -1
- package/dist/mint-components/p-dd12c32a.system.entry.js +1 -0
- package/dist/mint-components/p-de0d6fd7.js +49 -0
- package/dist/mint-components/{p-ce11858c.js → p-e00ec007.js} +1 -1
- package/dist/mint-components/{p-b5c0bad5.system.entry.js → p-e12754f5.system.entry.js} +1 -1
- package/dist/mint-components/p-e30abc44.js +1 -0
- package/dist/mint-components/{p-3218bb1d.entry.js → p-e506bf7f.entry.js} +1 -1
- package/dist/mint-components/p-e55aafe9.system.js +1 -0
- package/dist/mint-components/{p-f972e5c9.entry.js → p-e5ea43b1.entry.js} +2 -2
- package/dist/mint-components/{p-8474aa63.js → p-e6240c72.js} +1 -1
- package/dist/mint-components/{p-857a2d77.js → p-e84b874c.js} +1 -1
- package/dist/mint-components/{p-dbdb2a46.system.entry.js → p-e9485160.system.entry.js} +1 -1
- package/dist/mint-components/p-ea03e50e.system.js +1 -0
- package/dist/mint-components/{p-3181e54a.entry.js → p-ec0b649a.entry.js} +1 -1
- package/dist/mint-components/{p-2f4d8ab8.system.entry.js → p-f1374258.system.entry.js} +1 -1
- package/dist/mint-components/{p-6194855b.system.entry.js → p-f39cf252.system.entry.js} +1 -1
- package/dist/mint-components/{p-c8e45671.system.entry.js → p-f4e36adf.system.entry.js} +1 -1
- package/dist/mint-components/{p-140e6a15.system.js → p-f55ecf35.system.js} +1 -1
- package/dist/mint-components/{p-3c333076.js → p-f581aac7.js} +1 -1
- package/dist/mint-components/{p-19293c16.entry.js → p-f6528f8a.entry.js} +1 -1
- package/dist/mint-components/{p-247cfbdc.system.entry.js → p-f7ca4cc4.system.entry.js} +1 -1
- package/dist/mint-components/{p-0fec43e8.system.js → p-f8026ed6.system.js} +1 -1
- package/dist/mint-components/{p-438f6702.js → p-f8a09b0f.js} +152 -152
- package/dist/mint-components/{p-3756d0d1.system.entry.js → p-fc284f91.system.entry.js} +1 -1
- package/dist/mint-components/{p-6a4496b3.system.entry.js → p-fe1d3cf8.system.entry.js} +1 -1
- package/dist/mint-components/p-fe70e20c.entry.js +1 -0
- package/dist/mint-components/p-ff118a19.system.js +1 -0
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe-view.d.ts +1 -0
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +5 -0
- package/dist/types/components/sqm-referral-table/TaxAndCashReferralTableRewardsCell.stories.d.ts +1 -2
- package/dist/types/components/sqm-rewards-table/TaxAndCashRewardsTableCell.stories.d.ts +1 -2
- package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +9 -0
- package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
- package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +41 -0
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +195 -2
- package/dist/types/components/sqm-share-link/useShareLink.d.ts +33 -4
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +0 -78
- package/dist/types/components/sqm-widget-verification/useWidgetVerification.d.ts +0 -2
- package/dist/types/components/tax-and-cash/data.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +0 -2
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -4
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +0 -165
- package/dist/types/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.d.ts +0 -7
- package/dist/types/components.d.ts +359 -616
- package/dist/types/saasquatch.d.ts +0 -1
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/docs/stats.json +122783 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/eventKeys-7af4df4d.js +0 -5
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- package/dist/cjs/sqm-email-verification_2.cjs.entry.js +0 -892
- package/dist/cjs/sqm-partner-info-modal-view-464c52c9.js +0 -135
- package/dist/cjs/utils-a8e0bd9b.js +0 -93
- package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +0 -150
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +0 -129
- package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +0 -670
- package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +0 -284
- package/dist/collection/components/sqm-widget-verification/WidgetVerification.stories.js +0 -16
- package/dist/esm/eventKeys-f76b6a03.js +0 -3
- package/dist/esm/parseStates-ed75e224.js +0 -14
- package/dist/esm/sqm-email-verification_2.entry.js +0 -887
- package/dist/esm/sqm-partner-info-modal-view-a6324934.js +0 -132
- package/dist/esm/utils-8267d3d8.js +0 -85
- package/dist/esm-es5/ShadowViewAddon-78b791d2.js +0 -1
- package/dist/esm-es5/data-33c16dff.js +0 -1
- package/dist/esm-es5/eventKeys-f76b6a03.js +0 -1
- package/dist/esm-es5/global-39f55ec2.js +0 -285
- package/dist/esm-es5/index.module-cede12c6.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
- package/dist/esm-es5/sqm-email-verification_2.entry.js +0 -1
- package/dist/esm-es5/sqm-partner-info-modal-view-a6324934.js +0 -1
- package/dist/esm-es5/sqm-portal-container-view-a8c708cd.js +0 -1
- package/dist/esm-es5/sqm-user-info-form-view-365cef98.js +0 -1
- package/dist/esm-es5/utils-8267d3d8.js +0 -1
- package/dist/mint-components/p-037c1a4f.system.entry.js +0 -1
- package/dist/mint-components/p-038d0b8f.entry.js +0 -133
- package/dist/mint-components/p-0553e659.js +0 -463
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-1c413a06.system.js +0 -1
- package/dist/mint-components/p-1e35f151.system.js +0 -1
- package/dist/mint-components/p-28ed2ae9.js +0 -1
- package/dist/mint-components/p-28fe7357.system.entry.js +0 -1
- package/dist/mint-components/p-38dc2f60.entry.js +0 -1
- package/dist/mint-components/p-39840341.js +0 -1
- package/dist/mint-components/p-52eca331.js +0 -1
- package/dist/mint-components/p-5e26014d.system.js +0 -1
- package/dist/mint-components/p-63c299f1.system.js +0 -1
- package/dist/mint-components/p-64041ee1.entry.js +0 -291
- package/dist/mint-components/p-647933ac.entry.js +0 -122
- package/dist/mint-components/p-64f56cc9.system.js +0 -285
- package/dist/mint-components/p-6562cbec.system.entry.js +0 -1
- package/dist/mint-components/p-6f8dde97.system.js +0 -1
- package/dist/mint-components/p-70e34ae1.system.js +0 -6
- package/dist/mint-components/p-7d5956ec.system.entry.js +0 -1
- package/dist/mint-components/p-8b258a3e.system.js +0 -1
- package/dist/mint-components/p-996eb820.entry.js +0 -1
- package/dist/mint-components/p-a0986077.system.entry.js +0 -1
- package/dist/mint-components/p-a1e1c42a.js +0 -1
- package/dist/mint-components/p-a2db4345.system.js +0 -1
- package/dist/mint-components/p-a8891ebd.js +0 -1
- package/dist/mint-components/p-a8ecdc44.system.js +0 -1
- package/dist/mint-components/p-aa319fbe.entry.js +0 -9
- package/dist/mint-components/p-b2a99637.system.js +0 -1
- package/dist/mint-components/p-b2bde2f5.entry.js +0 -1
- package/dist/mint-components/p-b451970a.system.entry.js +0 -1
- package/dist/mint-components/p-b699f76e.system.js +0 -1
- package/dist/mint-components/p-b6a1e2ac.js +0 -1
- package/dist/mint-components/p-c7535e70.system.entry.js +0 -1
- package/dist/mint-components/p-d20188db.js +0 -1
- package/dist/mint-components/p-d6714617.entry.js +0 -1
- package/dist/mint-components/p-e95402dc.js +0 -49
- package/dist/mint-components/p-ee0f1cf1.system.js +0 -1
- package/dist/mint-components/p-f9671d6a.system.entry.js +0 -1
- package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +0 -12
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +0 -51
- package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +0 -122
- package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +0 -17
- package/dist/types/components/sqm-widget-verification/WidgetVerification.stories.d.ts +0 -8
- package/shoelace/assets/icons/twitter-x.svg +0 -4
|
@@ -3,38 +3,35 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-8277cbb3.js');
|
|
6
|
-
const global = require('./global-
|
|
6
|
+
const global = require('./global-b7b1b8fe.js');
|
|
7
7
|
const domContextHooks_module = require('./dom-context-hooks.module-e7b6727c.js');
|
|
8
|
-
const index_module = require('./index.module-
|
|
8
|
+
const index_module = require('./index.module-f8c8495f.js');
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
const utils = require('./utils-6847bc06.js');
|
|
12
12
|
const JSS = require('./JSS-8503a151.js');
|
|
13
|
-
require('./useReferralCodes-
|
|
13
|
+
require('./useReferralCodes-0f7948af.js');
|
|
14
14
|
require('./mixins-4761d472.js');
|
|
15
15
|
const copyTextView = require('./copy-text-view-bb2c0ea7.js');
|
|
16
|
-
require('./sqm-text-span-view-
|
|
17
|
-
const usePortalRegistrationForm = require('./usePortalRegistrationForm-
|
|
18
|
-
const useRegistrationFormState = require('./useRegistrationFormState-
|
|
19
|
-
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-
|
|
20
|
-
const reRender = require('./re-render-
|
|
21
|
-
const useChildElements = require('./useChildElements-
|
|
16
|
+
require('./sqm-text-span-view-b9e10f5d.js');
|
|
17
|
+
const usePortalRegistrationForm = require('./usePortalRegistrationForm-23ee2d62.js');
|
|
18
|
+
const useRegistrationFormState = require('./useRegistrationFormState-4fe5b770.js');
|
|
19
|
+
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-a45f7a52.js');
|
|
20
|
+
const reRender = require('./re-render-72a0ef45.js');
|
|
21
|
+
const useChildElements = require('./useChildElements-041127d7.js');
|
|
22
22
|
require('./luxon-c1ad356a.js');
|
|
23
23
|
const index$1 = require('./index-8c6255f5.js');
|
|
24
24
|
const imageUrl = require('./imageUrl-a7880cab.js');
|
|
25
25
|
const emailRegistrationView = require('./email-registration-view-306c8878.js');
|
|
26
|
-
const useInstantAccessRegistration = require('./useInstantAccessRegistration-
|
|
27
|
-
const useLeadFormState = require('./useLeadFormState-
|
|
28
|
-
const utilities = require('./utilities-
|
|
26
|
+
const useInstantAccessRegistration = require('./useInstantAccessRegistration-2398df36.js');
|
|
27
|
+
const useLeadFormState = require('./useLeadFormState-b4c2ab5b.js');
|
|
28
|
+
const utilities = require('./utilities-fcdb9504.js');
|
|
29
29
|
const ErrorView = require('./ErrorView-ee7b0f36.js');
|
|
30
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
31
|
-
require('./sqm-portal-container-view-
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
require('./eventKeys-7af4df4d.js');
|
|
36
|
-
const usePayoutStatus = require('./usePayoutStatus-cf050a03.js');
|
|
37
|
-
const parseStates = require('./parseStates-d1effc19.js');
|
|
30
|
+
const ShadowViewAddon = require('./ShadowViewAddon-c97e80de.js');
|
|
31
|
+
require('./sqm-portal-container-view-757f921b.js');
|
|
32
|
+
const data = require('./data-8c8a08f6.js');
|
|
33
|
+
const extractProps = require('./extractProps-e9c55ba8.js');
|
|
34
|
+
const usePayoutStatus = require('./usePayoutStatus-0192fccd.js');
|
|
38
35
|
|
|
39
36
|
/**
|
|
40
37
|
*
|
|
@@ -3394,7 +3391,7 @@ const PayoutStatusAlert = class {
|
|
|
3394
3391
|
}
|
|
3395
3392
|
};
|
|
3396
3393
|
function useDemoPayoutStatusAlert(props) {
|
|
3397
|
-
const states =
|
|
3394
|
+
const states = extractProps.parseStates(props.stateController);
|
|
3398
3395
|
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-payout-status-alert"
|
|
3399
3396
|
? { ...prev, ...states[key] }
|
|
3400
3397
|
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
@@ -4623,6 +4620,11 @@ const SqmReferralIframe = class {
|
|
|
4623
4620
|
* @uiName IFrame width
|
|
4624
4621
|
*/
|
|
4625
4622
|
this.iframeWidth = "100%";
|
|
4623
|
+
/**
|
|
4624
|
+
* Override the default parameter name used in the iframe
|
|
4625
|
+
* @uiName Referral code parameter name
|
|
4626
|
+
*/
|
|
4627
|
+
this.codeParam = "rsCode";
|
|
4626
4628
|
domContextHooks_module.h$1(this);
|
|
4627
4629
|
}
|
|
4628
4630
|
disconnectedCallback() { }
|
|
@@ -5773,7 +5775,7 @@ function EmptySlot$1() {
|
|
|
5773
5775
|
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" })));
|
|
5774
5776
|
}
|
|
5775
5777
|
function useRewardExchangeListDemo(props) {
|
|
5776
|
-
const states =
|
|
5778
|
+
const states = extractProps.parseStates(props.stateController);
|
|
5777
5779
|
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-reward-exchange-list"
|
|
5778
5780
|
? { ...prev, ...states[key] }
|
|
5779
5781
|
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
@@ -6057,7 +6059,6 @@ function useDemoShareCode(props) {
|
|
|
6057
6059
|
borderRadius: props.borderRadius,
|
|
6058
6060
|
borderColor: props.borderColor,
|
|
6059
6061
|
buttonType: props.buttonType,
|
|
6060
|
-
rewardStatus: "AVAILABLE",
|
|
6061
6062
|
open,
|
|
6062
6063
|
onClick: () => {
|
|
6063
6064
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
@@ -6117,6 +6118,199 @@ const ShareLink = class {
|
|
|
6117
6118
|
* @uiGroup Style
|
|
6118
6119
|
*/
|
|
6119
6120
|
this.buttonStyle = "icon";
|
|
6121
|
+
/**
|
|
6122
|
+
* Let advocates customize their share links up to 5 times.
|
|
6123
|
+
*
|
|
6124
|
+
* @uiName Allow customization
|
|
6125
|
+
* @uiType boolean
|
|
6126
|
+
* @uiGroup Customizable Vanity Link
|
|
6127
|
+
* @uiWidget CustomLinkSwitch
|
|
6128
|
+
* @requiredFlavor impact
|
|
6129
|
+
*/
|
|
6130
|
+
this.allowCustomization = false;
|
|
6131
|
+
/**
|
|
6132
|
+
* Text for the cancel button in editing mode
|
|
6133
|
+
*
|
|
6134
|
+
* @uiName Cancel button label
|
|
6135
|
+
* @uiType string
|
|
6136
|
+
* @uiGroup Customizable Vanity Link
|
|
6137
|
+
* @requiredFlavor impact
|
|
6138
|
+
*/
|
|
6139
|
+
this.cancelLabelText = "Cancel";
|
|
6140
|
+
/**
|
|
6141
|
+
* Tooltip text shown when link customization is disabled
|
|
6142
|
+
*
|
|
6143
|
+
* @uiName Customize disabled tooltip
|
|
6144
|
+
* @uiType string
|
|
6145
|
+
* @uiGroup Customizable Vanity Link
|
|
6146
|
+
* @requiredFlavor impact
|
|
6147
|
+
*/
|
|
6148
|
+
this.customizeDisabledTooltip = "Link customization is not available.";
|
|
6149
|
+
/**
|
|
6150
|
+
* Displayed below the share link.
|
|
6151
|
+
*
|
|
6152
|
+
* @uiName Customize link button label
|
|
6153
|
+
* @uiType string
|
|
6154
|
+
* @uiGroup Customizable Vanity Link
|
|
6155
|
+
* @requiredFlavor impact
|
|
6156
|
+
*/
|
|
6157
|
+
this.customizeLinkButtonLabel = "Customize Link";
|
|
6158
|
+
/**
|
|
6159
|
+
* Message shown when the URL has been edited 5 times. To display a clickable link, use {supportLink} as a placeholder.
|
|
6160
|
+
*
|
|
6161
|
+
* @uiName Edit limit reached text
|
|
6162
|
+
* @uiType string
|
|
6163
|
+
* @uiWidget textarea
|
|
6164
|
+
* @uiGroup Customizable Vanity Link
|
|
6165
|
+
* @requiredFlavor impact
|
|
6166
|
+
*/
|
|
6167
|
+
this.editLimitReachedText = "5 edit limit reached. To make more changes, please contact {supportLink}.";
|
|
6168
|
+
/**
|
|
6169
|
+
* Subtext shown while the user is customizing their URL.
|
|
6170
|
+
*
|
|
6171
|
+
* @uiName Edit limit text
|
|
6172
|
+
* @uiType string
|
|
6173
|
+
* @uiGroup Customizable Vanity Link
|
|
6174
|
+
* @requiredFlavor impact
|
|
6175
|
+
*/
|
|
6176
|
+
this.editLimitText = "You can edit your link up to {editsRemaining} more time(s).";
|
|
6177
|
+
/**
|
|
6178
|
+
* Description text shown when the link contains invalid special characters.
|
|
6179
|
+
*
|
|
6180
|
+
* @uiName Invalid characters error description
|
|
6181
|
+
* @uiType string
|
|
6182
|
+
* @uiWidget textarea
|
|
6183
|
+
* @uiGroup Customizable Vanity Link
|
|
6184
|
+
* @requiredFlavor impact
|
|
6185
|
+
*/
|
|
6186
|
+
this.invalidCharactersErrorDescription = "Special characters can break the link when sharing.";
|
|
6187
|
+
/**
|
|
6188
|
+
* Title of the error message shown when the link contains invalid special characters.
|
|
6189
|
+
*
|
|
6190
|
+
* @uiName Invalid characters error title
|
|
6191
|
+
* @uiType string
|
|
6192
|
+
* @uiGroup Customizable Vanity Link
|
|
6193
|
+
* @requiredFlavor impact
|
|
6194
|
+
*/
|
|
6195
|
+
this.invalidCharactersErrorTitle = "Please use only letters, numbers, dashes and underscores";
|
|
6196
|
+
/**
|
|
6197
|
+
* Description text shown when the link has already been taken
|
|
6198
|
+
*
|
|
6199
|
+
* @uiName Link taken error message
|
|
6200
|
+
* @uiType string
|
|
6201
|
+
* @uiWidget textarea
|
|
6202
|
+
* @uiGroup Customizable Vanity Link
|
|
6203
|
+
* @requiredFlavor impact
|
|
6204
|
+
*/
|
|
6205
|
+
this.linkTakenErrorDescription = "Try adding numbers, a dash or underscore to create a unique link.";
|
|
6206
|
+
/**
|
|
6207
|
+
* Title of the error message shown when the link has already been taken
|
|
6208
|
+
*
|
|
6209
|
+
* @uiName Link taken error title
|
|
6210
|
+
* @uiType string
|
|
6211
|
+
* @uiGroup Customizable Vanity Link
|
|
6212
|
+
* @requiredFlavor impact
|
|
6213
|
+
*/
|
|
6214
|
+
this.linkTakenErrorTitle = "This link is already taken";
|
|
6215
|
+
/**
|
|
6216
|
+
* Description text shown when the link contains profanity or brand names.
|
|
6217
|
+
*
|
|
6218
|
+
* @uiName Restricted words error description
|
|
6219
|
+
* @uiType string
|
|
6220
|
+
* @uiWidget textarea
|
|
6221
|
+
* @uiGroup Customizable Vanity Link
|
|
6222
|
+
* @requiredFlavor impact
|
|
6223
|
+
*/
|
|
6224
|
+
this.restrictedWordsErrorDescription = "This link contains a restricted word.";
|
|
6225
|
+
/**
|
|
6226
|
+
* Title of the error message shown when the link contains profanity or brand names.
|
|
6227
|
+
*
|
|
6228
|
+
* @uiName Restricted words error title
|
|
6229
|
+
* @uiType string
|
|
6230
|
+
* @uiGroup Customizable Vanity Link
|
|
6231
|
+
* @requiredFlavor impact
|
|
6232
|
+
*/
|
|
6233
|
+
this.restrictedWordsErrorTitle = "Please try a different link";
|
|
6234
|
+
/**
|
|
6235
|
+
* Text for the save button in editing mode
|
|
6236
|
+
*
|
|
6237
|
+
* @uiName Save button label
|
|
6238
|
+
* @uiType string
|
|
6239
|
+
* @uiGroup Customizable Vanity Link
|
|
6240
|
+
* @requiredFlavor impact
|
|
6241
|
+
*/
|
|
6242
|
+
this.saveLabelText = "Save";
|
|
6243
|
+
/**
|
|
6244
|
+
* Text for the save button while saving is in progress
|
|
6245
|
+
*
|
|
6246
|
+
* @uiName Saving button label
|
|
6247
|
+
* @uiType string
|
|
6248
|
+
* @uiGroup Customizable Vanity Link
|
|
6249
|
+
* @requiredFlavor impact
|
|
6250
|
+
*/
|
|
6251
|
+
this.savingLabelText = "Saving...";
|
|
6252
|
+
/**
|
|
6253
|
+
* Label shown above the link input while editing
|
|
6254
|
+
*
|
|
6255
|
+
* @uiName Edit input label
|
|
6256
|
+
* @uiType string
|
|
6257
|
+
* @uiGroup Customizable Vanity Link
|
|
6258
|
+
* @requiredFlavor impact
|
|
6259
|
+
*/
|
|
6260
|
+
this.editLabelText = "Enter your link";
|
|
6261
|
+
/**
|
|
6262
|
+
* Text shown when nearing the character limit. Use {charactersRemaining} as a placeholder for the count.
|
|
6263
|
+
*
|
|
6264
|
+
* @uiName Characters remaining text
|
|
6265
|
+
* @uiType string
|
|
6266
|
+
* @uiGroup Customizable Vanity Link
|
|
6267
|
+
* @requiredFlavor impact
|
|
6268
|
+
*/
|
|
6269
|
+
this.charactersRemainingText = "Characters remaining: {charactersRemaining}";
|
|
6270
|
+
/**
|
|
6271
|
+
* Text shown while the link is being validated
|
|
6272
|
+
*
|
|
6273
|
+
* @uiName Validating label
|
|
6274
|
+
* @uiType string
|
|
6275
|
+
* @uiGroup Customizable Vanity Link
|
|
6276
|
+
* @requiredFlavor impact
|
|
6277
|
+
*/
|
|
6278
|
+
this.validatingLabelText = "Validating...";
|
|
6279
|
+
/**
|
|
6280
|
+
* @uiName Min characters text
|
|
6281
|
+
* @uiType string
|
|
6282
|
+
* @uiGroup Customizable Vanity Link
|
|
6283
|
+
* @requiredFlavor impact
|
|
6284
|
+
*/
|
|
6285
|
+
this.minCharactersText = "Minimum 3 characters.";
|
|
6286
|
+
/**
|
|
6287
|
+
* Display text for the support link in the edit limit reached message
|
|
6288
|
+
*
|
|
6289
|
+
* @uiName Support link text
|
|
6290
|
+
* @uiType string
|
|
6291
|
+
* @uiGroup Customizable Vanity Link
|
|
6292
|
+
* @requiredFlavor impact
|
|
6293
|
+
*/
|
|
6294
|
+
this.supportLinkText = "Support";
|
|
6295
|
+
/**
|
|
6296
|
+
* Title shown when saving fails with an unknown error
|
|
6297
|
+
*
|
|
6298
|
+
* @uiName Save error title
|
|
6299
|
+
* @uiType string
|
|
6300
|
+
* @uiGroup Customizable Vanity Link
|
|
6301
|
+
* @requiredFlavor impact
|
|
6302
|
+
*/
|
|
6303
|
+
this.saveErrorTitle = "Error";
|
|
6304
|
+
/**
|
|
6305
|
+
* Description shown when saving fails with an unknown error
|
|
6306
|
+
*
|
|
6307
|
+
* @uiName Save error description
|
|
6308
|
+
* @uiType string
|
|
6309
|
+
* @uiWidget textarea
|
|
6310
|
+
* @uiGroup Customizable Vanity Link
|
|
6311
|
+
* @requiredFlavor impact
|
|
6312
|
+
*/
|
|
6313
|
+
this.saveErrorDescription = "Failed to save custom link. Please try again.";
|
|
6120
6314
|
domContextHooks_module.h$1(this);
|
|
6121
6315
|
}
|
|
6122
6316
|
disconnectedCallback() { }
|
|
@@ -6125,33 +6319,79 @@ const ShareLink = class {
|
|
|
6125
6319
|
const props = index_module.isDemo()
|
|
6126
6320
|
? useDemoShareLink(thisProps)
|
|
6127
6321
|
: ShadowViewAddon.useShareLink(thisProps);
|
|
6128
|
-
return index.h(
|
|
6322
|
+
return index.h(ShadowViewAddon.ShareLinkView, Object.assign({}, props));
|
|
6129
6323
|
}
|
|
6130
6324
|
};
|
|
6131
6325
|
function useDemoShareLink(props) {
|
|
6326
|
+
var _a;
|
|
6132
6327
|
const [open, setOpen] = domContextHooks_module.useState(false);
|
|
6328
|
+
const [isEditing, setIsEditing] = domContextHooks_module.useState(false);
|
|
6329
|
+
const [editValue, setEditValue] = domContextHooks_module.useState("");
|
|
6133
6330
|
const copyString = "https://www.example.com/sharelink/abc";
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6331
|
+
const domainPrefix = "https://www.example.com/";
|
|
6332
|
+
const baseProps = {
|
|
6333
|
+
copyTextViewProps: {
|
|
6334
|
+
copyString,
|
|
6335
|
+
tooltiptext: props.tooltiptext,
|
|
6336
|
+
textAlign: props.textAlign,
|
|
6337
|
+
buttonStyle: props.buttonStyle,
|
|
6338
|
+
backgroundColor: props.backgroundColor,
|
|
6339
|
+
textColor: props.textColor,
|
|
6340
|
+
borderRadius: props.borderRadius,
|
|
6341
|
+
buttonType: props.buttonType,
|
|
6342
|
+
copyButtonLabel: props.copyButtonLabel,
|
|
6343
|
+
borderColor: props.borderColor,
|
|
6344
|
+
open,
|
|
6345
|
+
onClick: () => {
|
|
6346
|
+
navigator.clipboard.writeText(copyString);
|
|
6347
|
+
setOpen(true);
|
|
6348
|
+
setTimeout(() => setOpen(false), props.tooltiplifespan);
|
|
6349
|
+
},
|
|
6153
6350
|
},
|
|
6154
|
-
|
|
6351
|
+
allowCustomization: props.allowCustomization,
|
|
6352
|
+
customizeLinkLabel: props.customizeLinkButtonLabel,
|
|
6353
|
+
saveLabelText: props.saveLabelText,
|
|
6354
|
+
savingLabelText: props.savingLabelText,
|
|
6355
|
+
cancelLabelText: props.cancelLabelText,
|
|
6356
|
+
editLabelText: props.editLabelText,
|
|
6357
|
+
charactersRemainingText: props.charactersRemainingText,
|
|
6358
|
+
validatingLabelText: props.validatingLabelText,
|
|
6359
|
+
isEditing,
|
|
6360
|
+
editValue,
|
|
6361
|
+
domainPrefix,
|
|
6362
|
+
editsRemaining: 5,
|
|
6363
|
+
maxEdits: 5,
|
|
6364
|
+
limitReached: false,
|
|
6365
|
+
validationError: null,
|
|
6366
|
+
isValidating: false,
|
|
6367
|
+
isSaving: false,
|
|
6368
|
+
characterLimit: 15,
|
|
6369
|
+
minCharacters: 3,
|
|
6370
|
+
charactersRemaining: 15 - editValue.length,
|
|
6371
|
+
editLimitText: props.editLimitText,
|
|
6372
|
+
editLimitReachedText: props.editLimitReachedText,
|
|
6373
|
+
supportLinkText: props.supportLinkText,
|
|
6374
|
+
minCharactersText: props.minCharactersText,
|
|
6375
|
+
customizeDisabled: false,
|
|
6376
|
+
customizeDisabledTooltip: (_a = props.customizeDisabledTooltip) !== null && _a !== void 0 ? _a : "Link customization is not available.",
|
|
6377
|
+
onCustomizeClick: () => {
|
|
6378
|
+
setIsEditing(true);
|
|
6379
|
+
setEditValue("");
|
|
6380
|
+
},
|
|
6381
|
+
onEditValueChange: (value) => {
|
|
6382
|
+
setEditValue(value);
|
|
6383
|
+
},
|
|
6384
|
+
onSave: () => {
|
|
6385
|
+
setIsEditing(false);
|
|
6386
|
+
},
|
|
6387
|
+
onCancel: () => {
|
|
6388
|
+
setIsEditing(false);
|
|
6389
|
+
setEditValue("");
|
|
6390
|
+
},
|
|
6391
|
+
};
|
|
6392
|
+
return cjs.cjs(baseProps, props.demoData || {}, {
|
|
6393
|
+
arrayMerge: (_, a) => a,
|
|
6394
|
+
});
|
|
6155
6395
|
}
|
|
6156
6396
|
|
|
6157
6397
|
const StatContainer = class {
|
|
@@ -6395,34 +6635,12 @@ function useTaskCardDemo(props) {
|
|
|
6395
6635
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
6396
6636
|
}
|
|
6397
6637
|
|
|
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
|
-
|
|
6416
6638
|
function getCurrentStep(user) {
|
|
6417
6639
|
var _a, _b;
|
|
6418
6640
|
if (!((_a = user.impactConnection) === null || _a === void 0 ? void 0 : _a.connected) || !((_b = user.impactConnection) === null || _b === void 0 ? void 0 : _b.publisher)) {
|
|
6419
6641
|
return "/1";
|
|
6420
6642
|
}
|
|
6421
6643
|
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") {
|
|
6424
|
-
return "/1";
|
|
6425
|
-
}
|
|
6426
6644
|
// If they do have a required document, look at current document
|
|
6427
6645
|
if (requiredTaxDocumentType && !currentTaxDocument) {
|
|
6428
6646
|
// Specific to custom CASH setting,
|
|
@@ -6531,7 +6749,7 @@ function useTaxAndCash() {
|
|
|
6531
6749
|
const availableCountries = domContextHooks_module.useMemo(() => new Set(paymentOptions === null || paymentOptions === void 0 ? void 0 : paymentOptions.map((option) => option.countryCode).filter((value) => value)), [paymentOptions]);
|
|
6532
6750
|
const _topCountries = ["CA", "GB", "US"];
|
|
6533
6751
|
const sortedCountries = domContextHooks_module.useMemo(() => Array.from(availableCountries)
|
|
6534
|
-
.map((countryCode) =>
|
|
6752
|
+
.map((countryCode) => data.getCountryObj({ countryCode, locale: intlLocale }))
|
|
6535
6753
|
.sort(sortByName)
|
|
6536
6754
|
.reduce((prev, countryObj) => {
|
|
6537
6755
|
if (_topCountries.includes(countryObj.countryCode))
|
|
@@ -6743,7 +6961,7 @@ const TaxAndCashMonolith = class {
|
|
|
6743
6961
|
* @uiName Indirect tax number field label
|
|
6744
6962
|
* @uiGroup Step 2 Properties
|
|
6745
6963
|
*/
|
|
6746
|
-
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}}";
|
|
6964
|
+
this.step2_indirectTaxNumber = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}}";
|
|
6747
6965
|
/**
|
|
6748
6966
|
* @uiName Province field label
|
|
6749
6967
|
* @uiGroup Step 2 Properties
|
|
@@ -6753,7 +6971,7 @@ const TaxAndCashMonolith = class {
|
|
|
6753
6971
|
* @uiName Missing indirect tax number error message
|
|
6754
6972
|
* @uiGroup Step 2 Properties
|
|
6755
6973
|
*/
|
|
6756
|
-
this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number}} is required";
|
|
6974
|
+
this.step2_indirectTaxNumberError = "{taxType, select, GST {GST number} HST {HST number} VAT {VAT number} CT {CT number} SST {SST number} GENERAL {Indirect tax number} other {Tax number}} is required";
|
|
6757
6975
|
/**
|
|
6758
6976
|
* Displayed to participants registered for QST.
|
|
6759
6977
|
* @uiName QST number field label
|
|
@@ -7321,7 +7539,7 @@ const TaxAndCashMonolith = class {
|
|
|
7321
7539
|
* @uiName Payout status badge
|
|
7322
7540
|
* @uiGroup Dashboard Properties
|
|
7323
7541
|
*/
|
|
7324
|
-
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} }";
|
|
7542
|
+
this.dashboard_statusBadgeText = "{badgeText, select, payoutToday {Payout Today} nextPayout {Next Payout} other {Failed} }";
|
|
7325
7543
|
/**
|
|
7326
7544
|
* Display participants' payout preference on the payout information card, indicating the balance at which they want to get paid.
|
|
7327
7545
|
* @uiName Payout schedule by threshold text
|
|
@@ -7692,7 +7910,7 @@ const TaxAndCashMonolith = class {
|
|
|
7692
7910
|
getGeneralStepTextProps(prefix) {
|
|
7693
7911
|
const props = utils.getProps(this);
|
|
7694
7912
|
return {
|
|
7695
|
-
...extractProps(props, prefix),
|
|
7913
|
+
...extractProps.extractProps(props, prefix),
|
|
7696
7914
|
generalErrorTitle: props.generalErrorTitle,
|
|
7697
7915
|
generalErrorDescription: props.generalErrorDescription,
|
|
7698
7916
|
fieldRequiredError: props.fieldRequiredError,
|
|
@@ -7742,7 +7960,7 @@ const TaxAndCashMonolith = class {
|
|
|
7742
7960
|
supportLink: (index.h("a", { target: "_blank", href: `mailto:advocate-support@impact.com` }, this.supportLink)),
|
|
7743
7961
|
}) }));
|
|
7744
7962
|
}
|
|
7745
|
-
return index.h(
|
|
7963
|
+
return index.h(data.LoadingView, null);
|
|
7746
7964
|
}
|
|
7747
7965
|
};
|
|
7748
7966
|
function useDemoTaxAndCash(props) {
|
|
@@ -7750,7 +7968,7 @@ function useDemoTaxAndCash(props) {
|
|
|
7750
7968
|
namespace: data.TAX_CONTEXT_NAMESPACE,
|
|
7751
7969
|
initialValue: "/1",
|
|
7752
7970
|
});
|
|
7753
|
-
const states =
|
|
7971
|
+
const states = extractProps.parseStates(props.stateController);
|
|
7754
7972
|
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-tax-and-cash"
|
|
7755
7973
|
? { ...prev, ...states[key] }
|
|
7756
7974
|
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
@@ -7955,359 +8173,6 @@ function useUserNameDemo(props) {
|
|
|
7955
8173
|
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
7956
8174
|
}
|
|
7957
8175
|
|
|
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
|
-
|
|
8311
8176
|
exports.sqm_big_stat = BigStat;
|
|
8312
8177
|
exports.sqm_brand = BrandComponent;
|
|
8313
8178
|
exports.sqm_brand_selector = SqmBrandSelector;
|
|
@@ -8353,4 +8218,3 @@ exports.sqm_tax_and_cash = TaxAndCashMonolith;
|
|
|
8353
8218
|
exports.sqm_timeline = Timeline;
|
|
8354
8219
|
exports.sqm_timeline_entry = TimelineReward;
|
|
8355
8220
|
exports.sqm_user_name = UserName;
|
|
8356
|
-
exports.sqm_widget_verification = WidgetVerification;
|