@saasquatch/mint-components 2.0.0-66 → 2.0.0-68
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-23b04c91.js → ShadowViewAddon-1b38dcfc.js} +11 -7
- package/dist/cjs/{copy-text-view-51c8ee5d.js → copy-text-view-322436c2.js} +2 -8
- package/dist/cjs/{usePayoutStatus-fe32dd1a.js → data-16106637.js} +142 -0
- package/dist/cjs/{extractProps-fd93ba62.js → extractProps-e9c55ba8.js} +14 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +10 -14
- package/dist/cjs/{sqm-base-registration-form-view-7b95ae7a.js → sqm-base-registration-form-view-69a4b615.js} +9 -4
- package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_47.cjs.entry.js} +1317 -13
- package/dist/cjs/sqm-code-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-context-router.cjs.entry.js +1 -1
- package/dist/cjs/sqm-email-verification.cjs.entry.js +1 -1
- package/dist/cjs/sqm-empty_4.cjs.entry.js +1 -1
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +1 -1
- package/dist/cjs/sqm-lead-checkbox-field.cjs.entry.js +1 -1
- package/dist/cjs/sqm-lead-input-field.cjs.entry.js +1 -1
- package/dist/cjs/sqm-logout-current-user.cjs.entry.js +1 -1
- package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +1 -1
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
- package/dist/cjs/sqm-password-field.cjs.entry.js +1 -1
- package/dist/cjs/sqm-popup-container.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +2 -2
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +25 -18
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +1 -1
- package/dist/cjs/sqm-qr-code.cjs.entry.js +1 -1
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +2 -3
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +18 -17
- package/dist/cjs/sqm-tabs.cjs.entry.js +1 -4
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +3 -2
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +3 -4
- package/dist/cjs/{usePortalLogin-353f776a.js → usePortalLogin-1c022d8d.js} +1 -1
- package/dist/cjs/{utils-0d3ac0fb.js → utils-6847bc06.js} +0 -4
- package/dist/collection/components/sqm-base-registration/BaseRegistrationForm.stories.js +2 -2
- package/dist/collection/components/sqm-base-registration/sqm-base-registration-form-view.js +9 -4
- package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +0 -2
- package/dist/collection/components/sqm-big-stat/useBigStat.js +7 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +1 -1
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +1 -1
- package/dist/collection/components/sqm-input-field/sqm-input-field.js +1 -1
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +1 -1
- package/dist/collection/components/sqm-name-fields/NameFields.stories.js +2 -0
- package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -2
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +31 -1
- package/dist/collection/components/sqm-name-fields/useNameFields.js +1 -0
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +2 -2
- package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +1 -0
- package/dist/collection/components/sqm-portal-google-registration-form/PortalGoogleRegistrationForm.stories.js +1 -0
- package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +4 -4
- package/dist/collection/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.js +22 -15
- package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +2 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +2 -3
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +0 -1
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -1
- package/dist/collection/components/sqm-tabs/sqm-tabs-view.js +0 -3
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +2 -2
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +8 -4
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +6 -10
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +0 -1
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +1 -4
- package/dist/collection/components/views/copy-text-view.js +2 -8
- package/dist/collection/utils/utils.js +0 -1
- package/dist/esm/{ShadowViewAddon-c0bd62f7.js → ShadowViewAddon-1adaf077.js} +11 -7
- package/dist/esm/{copy-text-view-83b09456.js → copy-text-view-fac47254.js} +2 -8
- package/dist/esm/{usePayoutStatus-42cc6a2c.js → data-acdb790f.js} +128 -1
- package/dist/esm/{extractProps-ae1afbb3.js → extractProps-54064fb0.js} +14 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +3 -7
- package/dist/esm/{sqm-base-registration-form-view-1a6bb4b4.js → sqm-base-registration-form-view-9e97d8b4.js} +9 -4
- package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_47.entry.js} +1315 -12
- package/dist/esm/sqm-code-verification.entry.js +1 -1
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +1 -1
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +2 -2
- package/dist/esm/sqm-password-field.entry.js +1 -1
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/sqm-portal-google-login.entry.js +2 -2
- package/dist/esm/sqm-portal-google-registration-form.entry.js +25 -18
- package/dist/esm/sqm-portal-profile.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email.entry.js +1 -1
- package/dist/esm/sqm-qr-code.entry.js +1 -1
- package/dist/esm/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm/sqm-rewards-table_9.entry.js +2 -3
- package/dist/esm/sqm-stencilbook.entry.js +18 -17
- package/dist/esm/sqm-tabs.entry.js +1 -4
- package/dist/esm/sqm-widget-verification-controller.entry.js +3 -2
- package/dist/esm/sqm-widget-verification.entry.js +2 -3
- package/dist/esm/{usePortalLogin-95814943.js → usePortalLogin-f95bbc67.js} +1 -1
- package/dist/esm/{utils-84b4b092.js → utils-334c1e34.js} +0 -4
- package/dist/esm-es5/{ShadowViewAddon-c0bd62f7.js → ShadowViewAddon-1adaf077.js} +1 -1
- package/dist/esm-es5/data-acdb790f.js +6 -0
- package/dist/esm-es5/extractProps-54064fb0.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-base-registration-form-view-9e97d8b4.js +1 -0
- package/dist/esm-es5/sqm-big-stat_47.entry.js +1 -0
- 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 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.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-google-login.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.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_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{usePortalLogin-95814943.js → usePortalLogin-f95bbc67.js} +1 -1
- package/dist/esm-es5/utils-334c1e34.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-6b247deb.entry.js → p-010957a1.entry.js} +6 -6
- package/dist/mint-components/p-0797a946.js +1 -0
- package/dist/mint-components/{p-0ea4d6a1.system.entry.js → p-0b9b1b36.system.entry.js} +1 -1
- package/dist/mint-components/{p-7d735c9c.js → p-0e1a1b14.js} +4 -4
- package/dist/mint-components/{p-7bae9bb7.system.entry.js → p-14e813a7.system.entry.js} +1 -1
- package/dist/mint-components/{p-35081b0c.system.entry.js → p-18720462.system.entry.js} +1 -1
- package/dist/mint-components/{p-c6fa4cc5.system.js → p-20c40fdf.system.js} +1 -1
- package/dist/mint-components/{p-eba70d67.system.entry.js → p-2700136f.system.entry.js} +1 -1
- package/dist/mint-components/{p-67aa0b2d.entry.js → p-30278955.entry.js} +1 -1
- package/dist/mint-components/{p-622b4066.entry.js → p-31bba357.entry.js} +2 -2
- package/dist/mint-components/{p-2ff72acc.entry.js → p-3b46fae5.entry.js} +2 -2
- package/dist/mint-components/{p-e711d0e9.js → p-44fc6029.js} +1 -1
- package/dist/mint-components/p-469a6450.system.js +6 -0
- package/dist/mint-components/{p-7b8cd420.system.entry.js → p-4ce51b1c.system.entry.js} +1 -1
- package/dist/mint-components/p-51a6a779.js +1 -0
- package/dist/mint-components/{p-cb845a3a.system.entry.js → p-56009bf0.system.entry.js} +1 -1
- package/dist/mint-components/{p-c86f64ad.system.entry.js → p-5b7a896e.system.entry.js} +1 -1
- package/dist/mint-components/{p-0caad0db.entry.js → p-5d059c95.entry.js} +1 -1
- package/dist/mint-components/{p-f370bddc.entry.js → p-60c14cec.entry.js} +1 -1
- package/dist/mint-components/p-6333265f.system.js +1 -0
- package/dist/mint-components/{p-6b0f79d1.system.entry.js → p-6445e926.system.entry.js} +1 -1
- package/dist/mint-components/p-662ed116.system.entry.js +1 -0
- package/dist/mint-components/{p-a9ad7fb2.system.entry.js → p-674d9089.system.entry.js} +1 -1
- package/dist/mint-components/{p-29f0c87d.entry.js → p-6a0ddee0.entry.js} +1 -1
- package/dist/mint-components/p-6c006998.entry.js +33 -0
- package/dist/mint-components/{p-b1eafaae.entry.js → p-6d9ce4e5.entry.js} +1 -1
- package/dist/mint-components/{p-b703c89f.system.entry.js → p-717b6730.system.entry.js} +1 -1
- package/dist/mint-components/p-720341b1.entry.js +273 -0
- package/dist/mint-components/{p-b55002dc.system.entry.js → p-72b914b9.system.entry.js} +1 -1
- package/dist/mint-components/{p-433e7458.entry.js → p-7e323f2c.entry.js} +1 -1
- package/dist/mint-components/p-80569911.system.js +1 -0
- package/dist/mint-components/{p-c531cc75.entry.js → p-85029918.entry.js} +1 -1
- package/dist/mint-components/{p-ab018deb.entry.js → p-8931d05e.entry.js} +2 -2
- package/dist/mint-components/{p-b487cb00.system.entry.js → p-8afb47c5.system.entry.js} +1 -1
- package/dist/mint-components/{p-cf22cf56.entry.js → p-8b5b2acc.entry.js} +1 -1
- package/dist/mint-components/p-95b6e903.entry.js +1 -0
- package/dist/mint-components/p-967a9040.system.js +1 -1
- package/dist/mint-components/p-9ba07029.system.entry.js +1 -0
- package/dist/mint-components/{p-6dc742bc.js → p-9ec99ced.js} +1 -1
- package/dist/mint-components/{p-bb452830.system.js → p-9f8d34d1.system.js} +1 -1
- package/dist/mint-components/{p-4250b06d.entry.js → p-a217cc8d.entry.js} +1 -1
- package/dist/mint-components/{p-4c9d80e4.entry.js → p-a32afaaa.entry.js} +1 -1
- package/dist/mint-components/{p-61157c6a.entry.js → p-a5c63310.entry.js} +1 -1
- package/dist/mint-components/{p-1c6ef258.system.entry.js → p-ac86903a.system.entry.js} +1 -1
- package/dist/mint-components/{p-76d4ef41.entry.js → p-aefaec37.entry.js} +1 -1
- package/dist/mint-components/{p-bfd77a07.entry.js → p-b00e8365.entry.js} +1 -1
- package/dist/mint-components/{p-66cf70f7.system.entry.js → p-b3510ca0.system.entry.js} +1 -1
- package/dist/mint-components/{p-06f13966.system.entry.js → p-bec87ac9.system.entry.js} +1 -1
- package/dist/mint-components/{p-f7c0877d.entry.js → p-c95a437e.entry.js} +1 -1
- package/dist/mint-components/p-d2bb770d.system.entry.js +1 -0
- package/dist/mint-components/{p-d4edce6c.system.entry.js → p-d3120982.system.entry.js} +1 -1
- package/dist/mint-components/p-d69c0a32.system.entry.js +1 -0
- package/dist/mint-components/{p-cf4e1709.entry.js → p-d9780ae9.entry.js} +1 -1
- package/dist/mint-components/{p-978d06ab.entry.js → p-e1422b78.entry.js} +1 -1
- package/dist/mint-components/p-e1e7d01c.js +157 -0
- package/dist/mint-components/{p-84d1041d.system.entry.js → p-e3b4e06a.system.entry.js} +1 -1
- package/dist/mint-components/p-e55aafe9.system.js +1 -0
- package/dist/mint-components/{p-0d21194c.entry.js → p-ea0bc627.entry.js} +1 -1
- package/dist/mint-components/{p-dd30354a.system.entry.js → p-f3613921.system.entry.js} +1 -1
- package/dist/mint-components/{p-55eaba8e.system.entry.js → p-f3c2074b.system.entry.js} +1 -1
- package/dist/mint-components/{p-2623b232.system.entry.js → p-f401ef19.system.entry.js} +1 -1
- package/dist/mint-components/{p-c065057d.entry.js → p-f7e49c12.entry.js} +2 -2
- package/dist/mint-components/p-fedb9ab8.system.entry.js +1 -0
- package/dist/types/components/sqm-base-registration/sqm-base-registration-form-view.d.ts +2 -1
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +1 -1
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +1 -1
- package/dist/types/components/sqm-input-field/sqm-input-field.d.ts +1 -1
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +1 -1
- package/dist/types/components/sqm-name-fields/sqm-name-fields-view.d.ts +1 -0
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +5 -0
- package/dist/types/components/sqm-name-fields/useNameFields.d.ts +1 -0
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +1 -1
- package/dist/types/components/sqm-portal-google-registration-form/usePortalGoogleRegistrationForm.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -1
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +3 -2
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +1 -0
- package/dist/types/components.d.ts +16 -4
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/data-88adb95b.js +0 -146
- package/dist/cjs/parseStates-d1effc19.js +0 -16
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +0 -1313
- package/dist/esm/data-807686c2.js +0 -130
- package/dist/esm/parseStates-ed75e224.js +0 -14
- package/dist/esm/sqm-tax-and-cash.entry.js +0 -1309
- package/dist/esm-es5/data-807686c2.js +0 -1
- package/dist/esm-es5/extractProps-ae1afbb3.js +0 -1
- package/dist/esm-es5/parseStates-ed75e224.js +0 -1
- package/dist/esm-es5/sqm-base-registration-form-view-1a6bb4b4.js +0 -1
- package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +0 -1
- package/dist/esm-es5/usePayoutStatus-42cc6a2c.js +0 -6
- package/dist/esm-es5/utils-84b4b092.js +0 -1
- package/dist/mint-components/p-115dfc03.system.js +0 -1
- package/dist/mint-components/p-13f3a647.js +0 -1
- package/dist/mint-components/p-1522a7d1.js +0 -1
- package/dist/mint-components/p-26468242.js +0 -1
- package/dist/mint-components/p-4306a11d.entry.js +0 -33
- package/dist/mint-components/p-43a9fb8e.system.entry.js +0 -1
- package/dist/mint-components/p-454a6d05.system.entry.js +0 -1
- package/dist/mint-components/p-4b9976cc.system.js +0 -1
- package/dist/mint-components/p-60f1cca2.system.js +0 -1
- package/dist/mint-components/p-71a6e549.system.entry.js +0 -1
- package/dist/mint-components/p-75c569f7.entry.js +0 -1
- package/dist/mint-components/p-7837f69e.js +0 -46
- package/dist/mint-components/p-7b8232f8.system.js +0 -6
- package/dist/mint-components/p-8c3c4e92.js +0 -112
- package/dist/mint-components/p-a63a985a.system.entry.js +0 -1
- package/dist/mint-components/p-a8645c1b.system.js +0 -1
- package/dist/mint-components/p-b038b72a.system.entry.js +0 -1
- package/dist/mint-components/p-b21c5311.system.js +0 -1
- package/dist/mint-components/p-c2ac14b7.entry.js +0 -1
- package/dist/mint-components/p-c40ea48b.entry.js +0 -273
- package/dist/mint-components/p-ecc84140.system.entry.js +0 -1
- package/shoelace/assets/icons/twitter-x.svg +0 -4
- /package/dist/esm-es5/{copy-text-view-83b09456.js → copy-text-view-fac47254.js} +0 -0
- /package/dist/mint-components/{p-45c3ff6d.js → p-4a0a76a5.js} +0 -0
- /package/dist/mint-components/{p-c210374a.system.js → p-ce81839d.system.js} +0 -0
|
@@ -7,7 +7,7 @@ const global = require('./global-8bba5b3a.js');
|
|
|
7
7
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
8
8
|
const index_module = require('./index.module-4f54e412.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
|
-
const utils = require('./utils-
|
|
10
|
+
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
const mixins = require('./mixins-4761d472.js');
|
|
13
13
|
const sqmTextSpanView = require('./sqm-text-span-view-7a61ae4c.js');
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index$1 = require('./index-a43a63b4.js');
|
|
6
6
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
7
7
|
const index_module = require('./index.module-4f54e412.js');
|
|
8
|
-
const utils = require('./utils-
|
|
8
|
+
const utils = require('./utils-6847bc06.js');
|
|
9
9
|
const index = require('./index-8c6255f5.js');
|
|
10
10
|
|
|
11
11
|
const debug = domContextHooks_module.browser("sq:useRouter");
|
|
@@ -7,7 +7,7 @@ const global = require('./global-8bba5b3a.js');
|
|
|
7
7
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
8
8
|
const index_module = require('./index.module-4f54e412.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
|
-
const utils = require('./utils-
|
|
10
|
+
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
const sqmTextSpanView = require('./sqm-text-span-view-7a61ae4c.js');
|
|
13
13
|
const keys = require('./keys-cff24974.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-a43a63b4.js');
|
|
|
6
6
|
const global = require('./global-8bba5b3a.js');
|
|
7
7
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
8
8
|
require('./index.module-4f54e412.js');
|
|
9
|
-
const utils = require('./utils-
|
|
9
|
+
const utils = require('./utils-6847bc06.js');
|
|
10
10
|
require('./JSS-8503a151.js');
|
|
11
11
|
const sqmPortalContainerView = require('./sqm-portal-container-view-07e4343f.js');
|
|
12
12
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a43a63b4.js');
|
|
6
6
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
7
|
-
const utils = require('./utils-
|
|
7
|
+
const utils = require('./utils-6847bc06.js');
|
|
8
8
|
const luxon = require('./luxon-949beaf2.js');
|
|
9
9
|
|
|
10
10
|
const InvoiceTableDataCell = class {
|
|
@@ -7,7 +7,7 @@ require('./global-8bba5b3a.js');
|
|
|
7
7
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
8
8
|
const index_module = require('./index.module-4f54e412.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
|
-
const utils = require('./utils-
|
|
10
|
+
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
const useLeadFormState = require('./useLeadFormState-fd0445f9.js');
|
|
13
13
|
const sqmLeadCheckboxFieldView = require('./sqm-lead-checkbox-field-view-340acad0.js');
|
|
@@ -7,7 +7,7 @@ require('./global-8bba5b3a.js');
|
|
|
7
7
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
8
8
|
const index_module = require('./index.module-4f54e412.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
|
-
const utils = require('./utils-
|
|
10
|
+
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
require('./mixins-4761d472.js');
|
|
13
13
|
const useLeadFormState = require('./useLeadFormState-fd0445f9.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-a43a63b4.js');
|
|
|
6
6
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
7
7
|
const index_module = require('./index.module-4f54e412.js');
|
|
8
8
|
const cjs = require('./cjs-1066ec21.js');
|
|
9
|
-
const utils = require('./utils-
|
|
9
|
+
const utils = require('./utils-6847bc06.js');
|
|
10
10
|
require('./JSS-8503a151.js');
|
|
11
11
|
const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-b61c8bdf.js');
|
|
12
12
|
|
|
@@ -6,7 +6,7 @@ const index = require('./index-a43a63b4.js');
|
|
|
6
6
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
7
7
|
const index_module = require('./index.module-4f54e412.js');
|
|
8
8
|
const cjs = require('./cjs-1066ec21.js');
|
|
9
|
-
const utils = require('./utils-
|
|
9
|
+
const utils = require('./utils-6847bc06.js');
|
|
10
10
|
require('./JSS-8503a151.js');
|
|
11
11
|
require('./mixins-4761d472.js');
|
|
12
12
|
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-4e88f774.js');
|
|
@@ -7,11 +7,11 @@ const global = require('./global-8bba5b3a.js');
|
|
|
7
7
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
8
8
|
const index_module = require('./index.module-4f54e412.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
|
-
const utils = require('./utils-
|
|
10
|
+
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
const useReferralCodes = require('./useReferralCodes-11cdf43b.js');
|
|
13
13
|
require('./mixins-4761d472.js');
|
|
14
|
-
const copyTextView = require('./copy-text-view-
|
|
14
|
+
const copyTextView = require('./copy-text-view-322436c2.js');
|
|
15
15
|
|
|
16
16
|
const style = {
|
|
17
17
|
Container: {
|
|
@@ -6,7 +6,7 @@ const index = require('./index-a43a63b4.js');
|
|
|
6
6
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
7
7
|
const index_module = require('./index.module-4f54e412.js');
|
|
8
8
|
const cjs = require('./cjs-1066ec21.js');
|
|
9
|
-
const utils = require('./utils-
|
|
9
|
+
const utils = require('./utils-6847bc06.js');
|
|
10
10
|
const JSS = require('./JSS-8503a151.js');
|
|
11
11
|
const mixins = require('./mixins-4761d472.js');
|
|
12
12
|
const useRegistrationFormState = require('./useRegistrationFormState-bbee6e7b.js');
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-a43a63b4.js');
|
|
6
6
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
7
7
|
const index_module = require('./index.module-4f54e412.js');
|
|
8
|
-
const utils = require('./utils-
|
|
8
|
+
const utils = require('./utils-6847bc06.js');
|
|
9
9
|
|
|
10
10
|
const PopupContainerView = (props) => {
|
|
11
11
|
const { states, callbacks } = props;
|
|
@@ -7,12 +7,12 @@ const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js')
|
|
|
7
7
|
const index_module = require('./index.module-4f54e412.js');
|
|
8
8
|
require('./jsonpointer-11327262.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
|
-
require('./utils-
|
|
10
|
+
require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
require('./mixins-4761d472.js');
|
|
13
13
|
require('./sqm-text-span-view-7a61ae4c.js');
|
|
14
14
|
const sqmPortalLoginView = require('./sqm-portal-login-view-bb50304c.js');
|
|
15
|
-
const usePortalLogin = require('./usePortalLogin-
|
|
15
|
+
const usePortalLogin = require('./usePortalLogin-1c022d8d.js');
|
|
16
16
|
|
|
17
17
|
const PortalGoogleLogin = class {
|
|
18
18
|
constructor(hostRef) {
|
|
@@ -11,7 +11,7 @@ const JSS = require('./JSS-8503a151.js');
|
|
|
11
11
|
require('./mixins-4761d472.js');
|
|
12
12
|
require('./sqm-text-span-view-7a61ae4c.js');
|
|
13
13
|
const useRegistrationFormState = require('./useRegistrationFormState-bbee6e7b.js');
|
|
14
|
-
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-
|
|
14
|
+
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-69a4b615.js');
|
|
15
15
|
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5a96c2f5.js');
|
|
16
16
|
require('./AsYouType-6788393a.js');
|
|
17
17
|
const usePortalRegistrationForm = require('./usePortalRegistrationForm-75b647fe.js');
|
|
@@ -75,7 +75,6 @@ function jwtDecode(token, options) {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
function usePortalGoogleRegistrationForm(props) {
|
|
78
|
-
const [emailValidationError, setEmailValidationError] = domContextHooks_module.useState(null);
|
|
79
78
|
const [registrationFormState, setRegistrationFormState] = useRegistrationFormState.useRegistrationForm();
|
|
80
79
|
const [showRegistrationForm, setShowRegistrationForm] = domContextHooks_module.useState({
|
|
81
80
|
mode: "base",
|
|
@@ -83,33 +82,40 @@ function usePortalGoogleRegistrationForm(props) {
|
|
|
83
82
|
const handleEmailSubmit = async (event) => {
|
|
84
83
|
const formControls = event.target.getFormControls();
|
|
85
84
|
let formData = {};
|
|
86
|
-
let
|
|
85
|
+
let validationErrors = {};
|
|
87
86
|
formControls.forEach((control) => {
|
|
88
87
|
if (!control.name)
|
|
89
88
|
return;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
const key = control.name;
|
|
90
|
+
const value = control.value;
|
|
91
|
+
jsonpointer.jsonpointer.set(formData, key, value);
|
|
92
|
+
if (control.required && !value) {
|
|
93
|
+
jsonpointer.jsonpointer.set(validationErrors, key, props.requiredFieldErrorMessage);
|
|
94
|
+
}
|
|
96
95
|
if (typeof control.validationError === "function") {
|
|
97
96
|
const validate = control.validationError;
|
|
98
97
|
const validationError = validate({
|
|
99
98
|
control,
|
|
100
|
-
key
|
|
101
|
-
value
|
|
99
|
+
key,
|
|
100
|
+
value,
|
|
102
101
|
});
|
|
103
102
|
if (validationError)
|
|
104
|
-
|
|
103
|
+
jsonpointer.jsonpointer.set(validationErrors, key, validationError);
|
|
105
104
|
}
|
|
106
105
|
});
|
|
107
|
-
if (
|
|
108
|
-
|
|
106
|
+
if (Object.keys(validationErrors).length) {
|
|
107
|
+
// early return for validation errors
|
|
108
|
+
setRegistrationFormState({
|
|
109
|
+
...registrationFormState,
|
|
110
|
+
loading: false,
|
|
111
|
+
error: "",
|
|
112
|
+
validationErrors,
|
|
113
|
+
});
|
|
109
114
|
return;
|
|
110
115
|
}
|
|
111
116
|
setRegistrationFormState({
|
|
112
117
|
...registrationFormState,
|
|
118
|
+
validationErrors: {},
|
|
113
119
|
initialData: {
|
|
114
120
|
...registrationFormState === null || registrationFormState === void 0 ? void 0 : registrationFormState.initialData,
|
|
115
121
|
...formData,
|
|
@@ -139,8 +145,9 @@ function usePortalGoogleRegistrationForm(props) {
|
|
|
139
145
|
}
|
|
140
146
|
};
|
|
141
147
|
return {
|
|
148
|
+
registrationFormState,
|
|
142
149
|
showRegistrationForm,
|
|
143
|
-
|
|
150
|
+
validationErrors: registrationFormState.validationErrors,
|
|
144
151
|
handleGoogleInit,
|
|
145
152
|
handleEmailSubmit,
|
|
146
153
|
};
|
|
@@ -296,7 +303,7 @@ const PortalGoogleRegistrationForm = class {
|
|
|
296
303
|
};
|
|
297
304
|
const sheet = JSS.createStyleSheet(styles);
|
|
298
305
|
const styleString = sheet.toString();
|
|
299
|
-
const { handleGoogleInit, handleEmailSubmit, showRegistrationForm,
|
|
306
|
+
const { handleGoogleInit, handleEmailSubmit, showRegistrationForm, validationErrors, } = index_module.isDemo() ? useGoogleDemo(this) : usePortalGoogleRegistrationForm(this);
|
|
300
307
|
const content = {
|
|
301
308
|
formData: index.h("slot", { name: "formData" }),
|
|
302
309
|
googleButton: (index.h("sqm-google-sign-in", { text: this.googleButtonText, onInitComplete: handleGoogleInit })),
|
|
@@ -321,7 +328,7 @@ const PortalGoogleRegistrationForm = class {
|
|
|
321
328
|
};
|
|
322
329
|
if (showRegistrationForm.mode === "base") {
|
|
323
330
|
return (index.h(sqmBaseRegistrationFormView.BaseRegistrationFormView, { states: {
|
|
324
|
-
|
|
331
|
+
validationErrors,
|
|
325
332
|
}, callbacks: { handleEmailSubmit }, content: content }));
|
|
326
333
|
}
|
|
327
334
|
return (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, { states: {
|
|
@@ -364,7 +371,7 @@ function useGoogleDemo(props) {
|
|
|
364
371
|
mode: "base",
|
|
365
372
|
});
|
|
366
373
|
return cjs.cjs({
|
|
367
|
-
|
|
374
|
+
validationErrors: {},
|
|
368
375
|
handleEmailSubmit: () => setShowRegistrationForm({ mode: "manual" }),
|
|
369
376
|
showRegistrationForm,
|
|
370
377
|
handleGoogleInit: () => setShowRegistrationForm({ mode: "google" }),
|
|
@@ -7,7 +7,7 @@ require('./global-8bba5b3a.js');
|
|
|
7
7
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
8
8
|
const index_module = require('./index.module-4f54e412.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
|
-
const utils = require('./utils-
|
|
10
|
+
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
require('./sqm-text-span-view-7a61ae4c.js');
|
|
13
13
|
const sqmPortalProfileView = require('./sqm-portal-profile-view-615e6975.js');
|
|
@@ -7,7 +7,7 @@ const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js')
|
|
|
7
7
|
const index_module = require('./index.module-4f54e412.js');
|
|
8
8
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
|
-
const utils = require('./utils-
|
|
10
|
+
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
require('./JSS-8503a151.js');
|
|
12
12
|
require('./mixins-4761d472.js');
|
|
13
13
|
require('./sqm-text-span-view-7a61ae4c.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-a43a63b4.js');
|
|
|
6
6
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
7
7
|
const index_module = require('./index.module-4f54e412.js');
|
|
8
8
|
const cjs = require('./cjs-1066ec21.js');
|
|
9
|
-
const utils = require('./utils-
|
|
9
|
+
const utils = require('./utils-6847bc06.js');
|
|
10
10
|
require('./JSS-8503a151.js');
|
|
11
11
|
require('./mixins-4761d472.js');
|
|
12
12
|
require('./sqm-text-span-view-7a61ae4c.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-a43a63b4.js');
|
|
|
6
6
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
7
7
|
const index_module = require('./index.module-4f54e412.js');
|
|
8
8
|
const cjs = require('./cjs-1066ec21.js');
|
|
9
|
-
const utils = require('./utils-
|
|
9
|
+
const utils = require('./utils-6847bc06.js');
|
|
10
10
|
require('./JSS-8503a151.js');
|
|
11
11
|
const useReferralCodes = require('./useReferralCodes-11cdf43b.js');
|
|
12
12
|
require('./ErrorView-3f91e5ab.js');
|
|
@@ -7,7 +7,7 @@ const global = require('./global-8bba5b3a.js');
|
|
|
7
7
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
8
8
|
const index_module = require('./index.module-4f54e412.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
|
-
const utils = require('./utils-
|
|
10
|
+
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
require('./mixins-4761d472.js');
|
|
13
13
|
const GenericTableView = require('./GenericTableView-a9845e80.js');
|
|
@@ -7,7 +7,7 @@ const global = require('./global-8bba5b3a.js');
|
|
|
7
7
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
8
8
|
const index_module = require('./index.module-4f54e412.js');
|
|
9
9
|
const cjs = require('./cjs-1066ec21.js');
|
|
10
|
-
const utils = require('./utils-
|
|
10
|
+
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
require('./mixins-4761d472.js');
|
|
13
13
|
const GenericTableView = require('./GenericTableView-a9845e80.js');
|
|
@@ -983,8 +983,7 @@ const RewardTableStatusCell = class {
|
|
|
983
983
|
: rewardStatus === "DENIED"
|
|
984
984
|
? this.deniedText
|
|
985
985
|
: null;
|
|
986
|
-
|
|
987
|
-
const getBadgeCSSClass = (badgeType) => {
|
|
986
|
+
const getBadgeCSSClass = () => {
|
|
988
987
|
switch (rewardStatus) {
|
|
989
988
|
case "AVAILABLE":
|
|
990
989
|
return sheet$1.classes.SuccessBadge;
|
|
@@ -7,11 +7,11 @@ require('./global-8bba5b3a.js');
|
|
|
7
7
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
8
8
|
const index_module = require('./index.module-4f54e412.js');
|
|
9
9
|
require('./cjs-1066ec21.js');
|
|
10
|
-
require('./utils-
|
|
10
|
+
require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
12
|
require('./useReferralCodes-11cdf43b.js');
|
|
13
13
|
require('./mixins-4761d472.js');
|
|
14
|
-
const copyTextView = require('./copy-text-view-
|
|
14
|
+
const copyTextView = require('./copy-text-view-322436c2.js');
|
|
15
15
|
const GenericTableView = require('./GenericTableView-a9845e80.js');
|
|
16
16
|
require('./useChildElements-966c9041.js');
|
|
17
17
|
const luxon = require('./luxon-949beaf2.js');
|
|
@@ -26,7 +26,7 @@ const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-de90ef03
|
|
|
26
26
|
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-4e88f774.js');
|
|
27
27
|
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-5518eb0d.js');
|
|
28
28
|
const sqmPortalLoginView = require('./sqm-portal-login-view-bb50304c.js');
|
|
29
|
-
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-
|
|
29
|
+
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-69a4b615.js');
|
|
30
30
|
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-5a96c2f5.js');
|
|
31
31
|
const sqmPortalProfileView = require('./sqm-portal-profile-view-615e6975.js');
|
|
32
32
|
require('./utilities-9a0c5e91.js');
|
|
@@ -34,7 +34,7 @@ const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-25e
|
|
|
34
34
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-1c4e781f.js');
|
|
35
35
|
require('./ErrorView-3f91e5ab.js');
|
|
36
36
|
const sqmQrCodeView = require('./sqm-qr-code-view-4ccf89da.js');
|
|
37
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
37
|
+
const ShadowViewAddon = require('./ShadowViewAddon-1b38dcfc.js');
|
|
38
38
|
const sqmPortalContainerView = require('./sqm-portal-container-view-07e4343f.js');
|
|
39
39
|
const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-e5f70b8b.js');
|
|
40
40
|
const utils = require('./utils-83d125fa.js');
|
|
@@ -5044,7 +5044,7 @@ const BaseRegistrationForm_stories = {
|
|
|
5044
5044
|
};
|
|
5045
5045
|
const defaultProps = {
|
|
5046
5046
|
states: {
|
|
5047
|
-
|
|
5047
|
+
validationErrors: {},
|
|
5048
5048
|
},
|
|
5049
5049
|
callbacks: {
|
|
5050
5050
|
handleEmailSubmit: () => console.log("Submit!"),
|
|
@@ -5064,7 +5064,7 @@ const defaultProps = {
|
|
|
5064
5064
|
const errorProps = {
|
|
5065
5065
|
...defaultProps,
|
|
5066
5066
|
states: {
|
|
5067
|
-
error: "Something went wrong. Please try again.",
|
|
5067
|
+
validationErrors: { error: "Something went wrong. Please try again." },
|
|
5068
5068
|
},
|
|
5069
5069
|
};
|
|
5070
5070
|
const Default$1 = () => {
|
|
@@ -8250,6 +8250,7 @@ const NameFields_stories = {
|
|
|
8250
8250
|
};
|
|
8251
8251
|
const props = {
|
|
8252
8252
|
states: {
|
|
8253
|
+
optional: false,
|
|
8253
8254
|
registrationFormState: {
|
|
8254
8255
|
validationErrors: undefined,
|
|
8255
8256
|
},
|
|
@@ -8261,6 +8262,7 @@ const props = {
|
|
|
8261
8262
|
};
|
|
8262
8263
|
const errorProps$1 = {
|
|
8263
8264
|
states: {
|
|
8265
|
+
optional: false,
|
|
8264
8266
|
registrationFormState: {
|
|
8265
8267
|
validationErrors: {
|
|
8266
8268
|
firstName: "Cannot be empty",
|
|
@@ -9016,6 +9018,7 @@ const successProps$2 = {
|
|
|
9016
9018
|
content: {
|
|
9017
9019
|
loginText: "Login",
|
|
9018
9020
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
9021
|
+
successAlertText: "An email has been sent with instructions to reset your password.",
|
|
9019
9022
|
},
|
|
9020
9023
|
};
|
|
9021
9024
|
const Default$e = () => index.h(ShadowViewAddon.PortalForgotPasswordView, Object.assign({}, defaultProps$e));
|
|
@@ -9189,6 +9192,7 @@ const defaultProps$g = {
|
|
|
9189
9192
|
formData: (index.h("div", null,
|
|
9190
9193
|
" ",
|
|
9191
9194
|
index.h(ShadowViewAddon.NameFieldsView, { states: {
|
|
9195
|
+
optional: false,
|
|
9192
9196
|
registrationFormState: {
|
|
9193
9197
|
validationErrors: undefined,
|
|
9194
9198
|
disabled: true,
|
|
@@ -16868,16 +16872,12 @@ const TaxAndCashDashboardDisabled = () => {
|
|
|
16868
16872
|
},
|
|
16869
16873
|
} }));
|
|
16870
16874
|
};
|
|
16871
|
-
|
|
16872
|
-
|
|
16873
|
-
//
|
|
16874
|
-
|
|
16875
|
-
|
|
16876
|
-
|
|
16877
|
-
// }}
|
|
16878
|
-
// ></sqm-tax-and-cash>
|
|
16879
|
-
// );
|
|
16880
|
-
// };
|
|
16875
|
+
const TaxAndCashTextProps = () => {
|
|
16876
|
+
return (index.h("sqm-tax-and-cash", { demoData: {
|
|
16877
|
+
// @ts-ignore
|
|
16878
|
+
showTextProps: true,
|
|
16879
|
+
} }));
|
|
16880
|
+
};
|
|
16881
16881
|
|
|
16882
16882
|
const TaxForm = /*#__PURE__*/Object.freeze({
|
|
16883
16883
|
__proto__: null,
|
|
@@ -16947,7 +16947,8 @@ const TaxForm = /*#__PURE__*/Object.freeze({
|
|
|
16947
16947
|
TaxAndCashDashboardLoading: TaxAndCashDashboardLoading,
|
|
16948
16948
|
TaxAndCashDashboardWithLoadingError: TaxAndCashDashboardWithLoadingError,
|
|
16949
16949
|
TaxAndCashDashboardWithGeneralError: TaxAndCashDashboardWithGeneralError,
|
|
16950
|
-
TaxAndCashDashboardDisabled: TaxAndCashDashboardDisabled
|
|
16950
|
+
TaxAndCashDashboardDisabled: TaxAndCashDashboardDisabled,
|
|
16951
|
+
TaxAndCashTextProps: TaxAndCashTextProps
|
|
16951
16952
|
});
|
|
16952
16953
|
|
|
16953
16954
|
const PayoutDetailsCard_stories = {
|
|
@@ -5,13 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-a43a63b4.js');
|
|
6
6
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
7
7
|
const index_module = require('./index.module-4f54e412.js');
|
|
8
|
-
const utils = require('./utils-
|
|
8
|
+
const utils = require('./utils-6847bc06.js');
|
|
9
9
|
const reRender = require('./re-render-d516138a.js');
|
|
10
10
|
const useChildElements = require('./useChildElements-966c9041.js');
|
|
11
11
|
|
|
12
|
-
// sl-tab-group {
|
|
13
|
-
// --sl-color-primary-500: var(--sqm-accent-color-icon);
|
|
14
|
-
// }
|
|
15
12
|
const TabsView = ({ content, placement, textColor = "var(--sqm-text)", }) => {
|
|
16
13
|
// Vertical padding for top & bottom placement, horizontal for left & right.
|
|
17
14
|
const padding = !placement || placement === "top" || placement === "bottom"
|
|
@@ -38,8 +38,9 @@ const WidgetVerificationController = class {
|
|
|
38
38
|
constructor(hostRef) {
|
|
39
39
|
index.registerInstance(this, hostRef);
|
|
40
40
|
/**
|
|
41
|
-
* @
|
|
42
|
-
* @componentState { "title": "
|
|
41
|
+
* @undocumented
|
|
42
|
+
* @componentState { "title": "Verify email", "slot": "not-verified", "props": { "isAuth": false }, "disabled": "true" }
|
|
43
|
+
* @componentState { "title": "Tax and cash", "slot": "verified", "props": { "isAuth": true }, "disabled": "true" }
|
|
43
44
|
*/
|
|
44
45
|
this.stateController = "{}";
|
|
45
46
|
domContextHooks_module.h$1(this);
|
|
@@ -6,9 +6,8 @@ const index = require('./index-a43a63b4.js');
|
|
|
6
6
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
7
7
|
const index_module = require('./index.module-4f54e412.js');
|
|
8
8
|
const cjs = require('./cjs-1066ec21.js');
|
|
9
|
-
const utils = require('./utils-
|
|
10
|
-
const
|
|
11
|
-
const extractProps = require('./extractProps-fd93ba62.js');
|
|
9
|
+
const utils = require('./utils-6847bc06.js');
|
|
10
|
+
const extractProps = require('./extractProps-e9c55ba8.js');
|
|
12
11
|
const keys = require('./keys-cff24974.js');
|
|
13
12
|
|
|
14
13
|
const USER_LOOKUP = index_module.dist.gql `
|
|
@@ -202,7 +201,7 @@ function useDemoWidgetVerificationInternal(props) {
|
|
|
202
201
|
initialValue: undefined,
|
|
203
202
|
});
|
|
204
203
|
const setContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
205
|
-
const states =
|
|
204
|
+
const states = extractProps.parseStates(props.stateController);
|
|
206
205
|
const formatted = Object.keys(states).reduce((prev, key) => key === "sqm-widget-verification"
|
|
207
206
|
? { ...prev, ...states[key] }
|
|
208
207
|
: { ...prev, [`${key}_stateController`]: states[key] }, {});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const domContextHooks_module = require('./dom-context-hooks.module-7fa676ae.js');
|
|
4
4
|
const index_module = require('./index.module-4f54e412.js');
|
|
5
5
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
6
|
-
const utils = require('./utils-
|
|
6
|
+
const utils = require('./utils-6847bc06.js');
|
|
7
7
|
|
|
8
8
|
function usePortalLogin(props) {
|
|
9
9
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
@@ -39,10 +39,6 @@ function sanitizeUrlPath(path) {
|
|
|
39
39
|
cleanUrl.hash = url.hash;
|
|
40
40
|
return cleanUrl;
|
|
41
41
|
}
|
|
42
|
-
function capitalizeFirstLetter(word) {
|
|
43
|
-
return word[0].toUpperCase() + word.slice(1);
|
|
44
|
-
}
|
|
45
|
-
console.log(capitalizeFirstLetter("warning"));
|
|
46
42
|
|
|
47
43
|
exports.getMissingProps = getMissingProps;
|
|
48
44
|
exports.getProps = getProps;
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
};
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
states: {
|
|
8
|
-
|
|
8
|
+
validationErrors: {},
|
|
9
9
|
},
|
|
10
10
|
callbacks: {
|
|
11
11
|
handleEmailSubmit: () => console.log("Submit!"),
|
|
@@ -25,7 +25,7 @@ const defaultProps = {
|
|
|
25
25
|
const errorProps = {
|
|
26
26
|
...defaultProps,
|
|
27
27
|
states: {
|
|
28
|
-
error: "Something went wrong. Please try again.",
|
|
28
|
+
validationErrors: { error: "Something went wrong. Please try again." },
|
|
29
29
|
},
|
|
30
30
|
};
|
|
31
31
|
export const Default = () => {
|
|
@@ -37,6 +37,7 @@ sqm-portal-register {
|
|
|
37
37
|
const sheet = createStyleSheet(style);
|
|
38
38
|
const styleString = sheet.toString();
|
|
39
39
|
export function BaseRegistrationFormView(props) {
|
|
40
|
+
var _a, _b;
|
|
40
41
|
const { states, content, callbacks } = props;
|
|
41
42
|
return (h("div", { class: sheet.classes.Wrapper },
|
|
42
43
|
h("style", { type: "text/css" },
|
|
@@ -44,10 +45,8 @@ export function BaseRegistrationFormView(props) {
|
|
|
44
45
|
styleString),
|
|
45
46
|
h(TextSpanView, { type: "h3" }, content.pageLabel),
|
|
46
47
|
h("sl-form", { class: sheet.classes.Column, "onSl-submit": callbacks.handleEmailSubmit, novalidate: true },
|
|
47
|
-
states.error && (h("sqm-form-message", { type: "error", exportparts: "erroralert-icon" },
|
|
48
|
-
h("div", { part: "erroralert-text" }, props.states.error))),
|
|
49
48
|
content.formData,
|
|
50
|
-
h("sl-input", { exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
49
|
+
h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", type: "email", name: "/email", label: content.emailLabel || "Email", required: true, validationError: ({ value }) => {
|
|
51
50
|
if (!value) {
|
|
52
51
|
return content.requiredFieldErrorMessage;
|
|
53
52
|
}
|
|
@@ -55,7 +54,13 @@ export function BaseRegistrationFormView(props) {
|
|
|
55
54
|
if (!value.includes("@")) {
|
|
56
55
|
return content.invalidEmailErrorMessage;
|
|
57
56
|
}
|
|
58
|
-
} })
|
|
57
|
+
} }, (((_a = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _a === void 0 ? void 0 : _a.email) ? {
|
|
58
|
+
class: sheet.classes.ErrorStyle,
|
|
59
|
+
helpText: ((_b = states === null || states === void 0 ? void 0 : states.validationErrors) === null || _b === void 0 ? void 0 : _b.email) ||
|
|
60
|
+
content.requiredFieldErrorMessage,
|
|
61
|
+
}
|
|
62
|
+
: []))),
|
|
63
|
+
content.terms,
|
|
59
64
|
h("div", { class: sheet.classes.ButtonsContainer },
|
|
60
65
|
h("sl-button", { submit: true, exportparts: "base: primarybutton-base", type: "primary", style: { margin: "0" } }, content.submitLabel || "Register"),
|
|
61
66
|
h("sl-menu-divider", { style: { margin: "0" } }),
|
|
@@ -6,8 +6,6 @@ export function BigStatView(props) {
|
|
|
6
6
|
const style = {
|
|
7
7
|
Container: {
|
|
8
8
|
display: "flex",
|
|
9
|
-
// height: "inherit",
|
|
10
|
-
// "justify-content": "space-between",
|
|
11
9
|
"flex-direction": `${flexReverse ? "column-reverse" : "column"}`,
|
|
12
10
|
"align-items": `${alignment === "left"
|
|
13
11
|
? "flex-start"
|
|
@@ -120,12 +120,18 @@ const referralsMonthQuery = (programId, status) => {
|
|
|
120
120
|
});
|
|
121
121
|
});
|
|
122
122
|
};
|
|
123
|
-
const referralsWeekQuery = (programId) => {
|
|
123
|
+
const referralsWeekQuery = (programId, status) => {
|
|
124
124
|
const programFilter = programId === "classic"
|
|
125
125
|
? { programId_exists: false }
|
|
126
126
|
: { programId_eq: programId };
|
|
127
|
+
const convertedFilter = status && status == "converted"
|
|
128
|
+
? { dateConverted_exists: true }
|
|
129
|
+
: status && status == "started"
|
|
130
|
+
? { dateConverted_exists: false }
|
|
131
|
+
: {};
|
|
127
132
|
const filter = {
|
|
128
133
|
...programFilter,
|
|
134
|
+
...convertedFilter,
|
|
129
135
|
dateReferralStarted_timeframe: "this_week",
|
|
130
136
|
};
|
|
131
137
|
return debugQuery(gql `
|
|
@@ -8,7 +8,7 @@ import { CheckboxFieldView, } from "./sqm-checkbox-field-view";
|
|
|
8
8
|
import { useCheckboxField } from "./useCheckboxField";
|
|
9
9
|
/**
|
|
10
10
|
* @uiName Form Checkbox Field
|
|
11
|
-
* @validParents ["sqm-portal-register","sqm-portal-registration-form"]
|
|
11
|
+
* @validParents ["sqm-portal-register","sqm-portal-registration-form", "sqm-portal-google-registration-form"]
|
|
12
12
|
* @exampleGroup Microsite Components
|
|
13
13
|
* @example Form Checkbox Field - <sqm-checkbox-field checkbox-name="terms" checkbox-label="By signing up you agree to the {labelLink}" checkbox-label-link="https://example.com" checkbox-label-link-text="Terms and Conditions" error-message="Must be checked" ></sqm-checkbox-field>
|
|
14
14
|
*/
|
|
@@ -8,7 +8,7 @@ import { DropdownFieldView, } from "./sqm-dropdown-field-view";
|
|
|
8
8
|
import { useDropdownField } from "./useDropdownField";
|
|
9
9
|
/**
|
|
10
10
|
* @uiName Form Dropdown Field
|
|
11
|
-
* @validParents ["sqm-portal-register","sqm-portal-registration-form"]
|
|
11
|
+
* @validParents ["sqm-portal-register","sqm-portal-registration-form", "sqm-portal-google-registration-form"]
|
|
12
12
|
* @slots [{"name":"", "title":"Drop Down Option"}]
|
|
13
13
|
* @exampleGroup Microsite Components
|
|
14
14
|
* @example Form Dropdown Field - <sqm-dropdown-field dropdown-label="Select an option" error-message="Select an option"><sl-menu-item value="option-1">Option 1</sl-menu-item><sl-menu-item value="option-2">Option 2</sl-menu-item><sl-menu-item value="option-3">Option 3</sl-menu-item></sqm-dropdown-field>
|
|
@@ -8,7 +8,7 @@ import { InputFieldView } from "./sqm-input-field-view";
|
|
|
8
8
|
import { useInputField } from "./useInputField";
|
|
9
9
|
/**
|
|
10
10
|
* @uiName Form Input Field
|
|
11
|
-
* @validParents ["sqm-portal-register","sqm-portal-registration-form"]
|
|
11
|
+
* @validParents ["sqm-portal-register","sqm-portal-registration-form", "sqm-portal-google-registration-form"]
|
|
12
12
|
* @exampleGroup Microsite Components
|
|
13
13
|
* @example Form Input Field - <sqm-input-field input-label="Field Label" field-type="text" error-message="Cannot be empty"></sqm-input-field>
|
|
14
14
|
*/
|