@saasquatch/mint-components 1.11.1-16 → 1.11.1-18
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-1a623a07.js → ShadowViewAddon-2742c017.js} +3 -3
- package/dist/cjs/{copy-text-view-c1e79e2c.js → copy-text-view-acd7cf5a.js} +3 -2
- package/dist/cjs/sqm-big-stat_38.cjs.entry.js +2 -2
- package/dist/cjs/sqm-pagination_3.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +2 -2
- package/dist/collection/components/sqm-referral-code/useReferralCode.js +1 -1
- package/dist/collection/components/sqm-referral-codes/useReferralCodes.js +4 -3
- package/dist/collection/components/sqm-share-button/useShareButton.js +1 -1
- package/dist/collection/components/sqm-share-link/useShareLink.js +1 -1
- package/dist/esm/{ShadowViewAddon-78a4a290.js → ShadowViewAddon-62f50be9.js} +7 -7
- package/dist/esm/{copy-text-view-b30c4966.js → copy-text-view-377f6cdb.js} +4 -3
- package/dist/esm/{global-b89b6edc.js → global-ad7f5faf.js} +1 -1
- package/dist/esm/{index.module-f122af7b.js → index.module-9957c169.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/mint-components.js +2 -2
- package/dist/esm/{re-render-c64289f3.js → re-render-09fdd305.js} +1 -1
- package/dist/esm/sqm-asset-card.entry.js +1 -1
- package/dist/esm/sqm-banking-info-form_16.entry.js +6 -6
- package/dist/esm/sqm-big-stat_38.entry.js +8 -8
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- 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-invoice-table-view-09cc28d6.js → sqm-invoice-table-view-7f3b33ef.js} +1 -1
- 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-14114804.js → sqm-navigation-sidebar-item-view-247fe302.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-email-verification-view-ced567c9.js → sqm-portal-email-verification-view-d4fc1853.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-d72dd5ac.js → sqm-portal-profile-view-4f724ecb.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +4 -4
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-registration-form.entry.js +2 -2
- 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-referral-table_11.entry.js +5 -5
- package/dist/esm/sqm-referred-registration.entry.js +3 -3
- 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 +10 -10
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{useChildElements-37daf533.js → useChildElements-d04f3a93.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-9d4cb797.js → useInstantAccessRegistration-d277acd9.js} +2 -2
- package/dist/esm/{useReferralTable-42f99ea2.js → useReferralTable-a36c90a6.js} +3 -3
- package/dist/esm/{useRegistrationFormState-53c71782.js → useRegistrationFormState-bdbb0d6b.js} +1 -1
- package/dist/esm/{utilities-18d10876.js → utilities-9c8585fb.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-62f50be9.js +1 -0
- package/dist/esm-es5/copy-text-view-377f6cdb.js +1 -0
- package/dist/esm-es5/{global-b89b6edc.js → global-ad7f5faf.js} +1 -1
- package/dist/esm-es5/{index.module-f122af7b.js → index.module-9957c169.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-c64289f3.js → re-render-09fdd305.js} +1 -1
- package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.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-invoice-table-view-09cc28d6.js → sqm-invoice-table-view-7f3b33ef.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-14114804.js → sqm-navigation-sidebar-item-view-247fe302.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-email-verification-view-ced567c9.js → sqm-portal-email-verification-view-d4fc1853.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-d72dd5ac.js → sqm-portal-profile-view-4f724ecb.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.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-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-referred-registration.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/{useChildElements-37daf533.js → useChildElements-d04f3a93.js} +1 -1
- package/dist/esm-es5/useInstantAccessRegistration-d277acd9.js +1 -0
- package/dist/esm-es5/{useReferralTable-42f99ea2.js → useReferralTable-a36c90a6.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-53c71782.js → useRegistrationFormState-bdbb0d6b.js} +1 -1
- package/dist/esm-es5/{utilities-18d10876.js → utilities-9c8585fb.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-53ff8bd0.system.entry.js → p-0133615b.system.entry.js} +1 -1
- package/dist/mint-components/{p-a49c7625.system.entry.js → p-02fd3a35.system.entry.js} +1 -1
- package/dist/mint-components/{p-b334bde8.entry.js → p-03ed0c82.entry.js} +1 -1
- package/dist/mint-components/{p-3373d84e.js → p-063b7d3e.js} +1 -1
- package/dist/mint-components/{p-00be5090.js → p-08db5ea4.js} +1 -1
- package/dist/mint-components/{p-41499327.entry.js → p-0aebe5c1.entry.js} +1 -1
- package/dist/mint-components/{p-bf834367.system.js → p-0d954851.system.js} +1 -1
- package/dist/mint-components/{p-82e09b8d.system.entry.js → p-0df4558b.system.entry.js} +1 -1
- package/dist/mint-components/{p-46ca288c.system.js → p-0e675523.system.js} +1 -1
- package/dist/mint-components/p-0e6b1643.entry.js +1 -0
- package/dist/mint-components/{p-6e7e8af6.system.js → p-10326b4e.system.js} +1 -1
- package/dist/mint-components/{p-cfbe2f86.entry.js → p-12953865.entry.js} +1 -1
- package/dist/mint-components/{p-67846dce.system.entry.js → p-170e62f9.system.entry.js} +1 -1
- package/dist/mint-components/p-19cfec00.entry.js +1 -0
- package/dist/mint-components/{p-ecefeaa9.system.entry.js → p-1af06e7a.system.entry.js} +1 -1
- package/dist/mint-components/{p-1099290c.system.js → p-20648235.system.js} +1 -1
- package/dist/mint-components/{p-dc41ff27.entry.js → p-215947cf.entry.js} +1 -1
- package/dist/mint-components/{p-ff41c804.system.entry.js → p-226e60b3.system.entry.js} +1 -1
- package/dist/mint-components/{p-5c845bc2.system.entry.js → p-2851ccdf.system.entry.js} +1 -1
- package/dist/mint-components/{p-8c97bfb1.system.entry.js → p-28b166ba.system.entry.js} +1 -1
- package/dist/mint-components/p-2f39c08f.js +1 -0
- package/dist/mint-components/{p-daba8cd2.system.entry.js → p-3016bf46.system.entry.js} +1 -1
- package/dist/mint-components/p-376250ed.js +1 -0
- package/dist/mint-components/{p-a7d1352f.system.entry.js → p-38e26b09.system.entry.js} +1 -1
- package/dist/mint-components/p-3b7e4f6f.system.js +1 -0
- package/dist/mint-components/p-3d155833.system.js +1 -0
- package/dist/mint-components/p-3e90e41f.entry.js +1 -0
- package/dist/mint-components/{p-e2bb72eb.system.entry.js → p-45dea9ac.system.entry.js} +1 -1
- package/dist/mint-components/{p-5fc8d87c.system.js → p-47df4ecb.system.js} +1 -1
- package/dist/mint-components/{p-246a2827.entry.js → p-505fceca.entry.js} +2 -2
- package/dist/mint-components/{p-1ce4fa30.system.entry.js → p-5158b92c.system.entry.js} +1 -1
- package/dist/mint-components/{p-a474b0ec.system.entry.js → p-55ba2249.system.entry.js} +1 -1
- package/dist/mint-components/{p-991c9787.js → p-57fa569b.js} +2 -2
- package/dist/mint-components/{p-d3d281ff.entry.js → p-5fb5cd4a.entry.js} +1 -1
- package/dist/mint-components/{p-acc93caa.system.entry.js → p-60509ed2.system.entry.js} +1 -1
- package/dist/mint-components/p-60aceb0e.entry.js +1 -0
- package/dist/mint-components/{p-9c3d78e9.js → p-61be67eb.js} +1 -1
- package/dist/mint-components/{p-1c710e16.entry.js → p-62b448ae.entry.js} +1 -1
- package/dist/mint-components/{p-c7ce2c1e.system.js → p-64d0c218.system.js} +1 -1
- package/dist/mint-components/{p-5499a24d.entry.js → p-6541dc8c.entry.js} +1 -1
- package/dist/mint-components/p-6672637c.system.entry.js +1 -0
- package/dist/mint-components/{p-9288cca6.system.entry.js → p-6d6c902e.system.entry.js} +1 -1
- package/dist/mint-components/{p-d68ed4a6.system.entry.js → p-6ec4df4d.system.entry.js} +1 -1
- package/dist/mint-components/{p-1b1d10e5.entry.js → p-6f1ceb8d.entry.js} +1 -1
- package/dist/mint-components/p-6f6a1be3.entry.js +13 -0
- package/dist/mint-components/p-77f229d5.entry.js +1 -0
- package/dist/mint-components/{p-a1150633.system.entry.js → p-7ca7e42a.system.entry.js} +1 -1
- package/dist/mint-components/{p-43a990b6.system.js → p-7f9f2547.system.js} +1 -1
- package/dist/mint-components/{p-12c56ba6.entry.js → p-8200de44.entry.js} +1 -1
- package/dist/mint-components/{p-21d4f6ce.system.js → p-830f4e20.system.js} +1 -1
- package/dist/mint-components/{p-f52c3aec.system.entry.js → p-8497f263.system.entry.js} +1 -1
- package/dist/mint-components/{p-6a8e187d.system.entry.js → p-859466c3.system.entry.js} +1 -1
- package/dist/mint-components/{p-0f028514.system.js → p-9215b7f4.system.js} +1 -1
- package/dist/mint-components/p-94bf7eba.entry.js +1 -0
- package/dist/mint-components/{p-c39f9dc1.system.entry.js → p-9754bfed.system.entry.js} +1 -1
- package/dist/mint-components/{p-798ed3a2.entry.js → p-9a859f5a.entry.js} +1 -1
- package/dist/mint-components/{p-01434e4a.entry.js → p-9c404006.entry.js} +1 -1
- package/dist/mint-components/{p-14dac608.system.entry.js → p-9ca99e19.system.entry.js} +1 -1
- package/dist/mint-components/{p-3d016dc3.system.entry.js → p-a06c4f74.system.entry.js} +1 -1
- package/dist/mint-components/{p-22de9f73.system.entry.js → p-a090fe2e.system.entry.js} +1 -1
- package/dist/mint-components/{p-e41cb11f.js → p-a5358309.js} +1 -1
- package/dist/mint-components/{p-942d1c22.entry.js → p-a6ad4cb5.entry.js} +1 -1
- package/dist/mint-components/{p-b62153fa.entry.js → p-a83c594b.entry.js} +1 -1
- package/dist/mint-components/{p-986076c7.js → p-a89c2d2e.js} +3 -3
- package/dist/mint-components/{p-ef2b89c9.entry.js → p-b3a19072.entry.js} +1 -1
- package/dist/mint-components/{p-fb2c0ce4.system.entry.js → p-bfc0f9c2.system.entry.js} +1 -1
- package/dist/mint-components/{p-55588b46.system.js → p-c17c5e78.system.js} +1 -1
- package/dist/mint-components/{p-7962ab58.system.entry.js → p-c772f0df.system.entry.js} +1 -1
- package/dist/mint-components/{p-fae82751.entry.js → p-cb316aff.entry.js} +1 -1
- package/dist/mint-components/{p-b5ae976f.entry.js → p-cbe3764b.entry.js} +2 -2
- package/dist/mint-components/{p-bd4e9c2b.js → p-ce829db4.js} +1 -1
- package/dist/mint-components/{p-96cb9c17.entry.js → p-d32619a8.entry.js} +1 -1
- package/dist/mint-components/{p-3cc5474d.entry.js → p-d8d933b3.entry.js} +1 -1
- package/dist/mint-components/{p-018cc95e.js → p-db0fe328.js} +3 -3
- package/dist/mint-components/{p-ea88142c.js → p-dbea699b.js} +1 -1
- package/dist/mint-components/{p-48b7d703.entry.js → p-def9f677.entry.js} +1 -1
- package/dist/mint-components/{p-c1ba2ad0.system.entry.js → p-df9a6fe6.system.entry.js} +1 -1
- package/dist/mint-components/{p-9deac406.system.js → p-e73bea6d.system.js} +1 -1
- package/dist/mint-components/p-e78b0745.js +1 -0
- package/dist/mint-components/{p-2e16db11.entry.js → p-e7ee4239.entry.js} +1 -1
- package/dist/mint-components/{p-18a7f543.system.entry.js → p-ebeb6d4c.system.entry.js} +1 -1
- package/dist/mint-components/{p-f44d88fa.system.js → p-ef6d279a.system.js} +1 -1
- package/dist/mint-components/{p-ec8a9e91.system.entry.js → p-f1655cb3.system.entry.js} +1 -1
- package/dist/mint-components/{p-b4eb9c46.entry.js → p-f1e4a704.entry.js} +2 -2
- package/dist/mint-components/{p-73decce7.system.js → p-f1f8386e.system.js} +1 -1
- package/dist/mint-components/{p-6e62f207.entry.js → p-f44840e4.entry.js} +1 -1
- package/dist/mint-components/{p-8077e9c6.js → p-f45d3a59.js} +1 -1
- package/dist/mint-components/{p-de2a8fae.system.entry.js → p-f591629c.system.entry.js} +1 -1
- package/dist/mint-components/{p-1df19ea2.js → p-fce051cd.js} +1 -1
- package/dist/types/components/sqm-pagination/usePagination.d.ts +1 -1
- package/dist/types/components/sqm-referral-codes/useReferralCodes.d.ts +2 -4
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/esm-es5/ShadowViewAddon-78a4a290.js +0 -1
- package/dist/esm-es5/copy-text-view-b30c4966.js +0 -1
- package/dist/esm-es5/useInstantAccessRegistration-9d4cb797.js +0 -1
- package/dist/mint-components/p-007c4401.system.js +0 -1
- package/dist/mint-components/p-1c6e4a5f.entry.js +0 -13
- package/dist/mint-components/p-26306ac4.system.entry.js +0 -1
- package/dist/mint-components/p-494e407e.entry.js +0 -1
- package/dist/mint-components/p-5b7e2d53.entry.js +0 -1
- package/dist/mint-components/p-5d37482d.entry.js +0 -1
- package/dist/mint-components/p-6b0e6a6c.js +0 -1
- package/dist/mint-components/p-89a760ea.js +0 -1
- package/dist/mint-components/p-b5176703.entry.js +0 -1
- package/dist/mint-components/p-ca17d998.entry.js +0 -1
- package/dist/mint-components/p-d666b326.js +0 -1
- package/dist/mint-components/p-f1ec1180.entry.js +0 -1
- package/dist/mint-components/p-fbb0f8a5.system.js +0 -1
|
@@ -6,7 +6,7 @@ const global = require('./global-02e50f09.js');
|
|
|
6
6
|
const index_module = require('./index.module-df530553.js');
|
|
7
7
|
const utils = require('./utils-6847bc06.js');
|
|
8
8
|
const JSS = require('./JSS-8503a151.js');
|
|
9
|
-
const copyTextView = require('./copy-text-view-
|
|
9
|
+
const copyTextView = require('./copy-text-view-acd7cf5a.js');
|
|
10
10
|
const cjs = require('./cjs-1066ec21.js');
|
|
11
11
|
const mixins = require('./mixins-fe9d4112.js');
|
|
12
12
|
const useChildElements = require('./useChildElements-e0d44916.js');
|
|
@@ -389,7 +389,7 @@ function useShareLink(props) {
|
|
|
389
389
|
async function onClick() {
|
|
390
390
|
if (contextData) {
|
|
391
391
|
await setCopied({ referralCode: contextData.referralCode });
|
|
392
|
-
|
|
392
|
+
contextData.refresh();
|
|
393
393
|
}
|
|
394
394
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
395
395
|
// Only if called from a user-initiated event
|
|
@@ -488,7 +488,7 @@ function useShareButton(props) {
|
|
|
488
488
|
var _a, _b, _c, _d;
|
|
489
489
|
if (overrideData) {
|
|
490
490
|
await setCopied({ referralCode: overrideData.referralCode });
|
|
491
|
-
|
|
491
|
+
overrideData.refresh();
|
|
492
492
|
}
|
|
493
493
|
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
494
494
|
environment.type === "SquatchAndroid") {
|
|
@@ -67,6 +67,7 @@ function useReferralCodes(props) {
|
|
|
67
67
|
const user = index_module.Q();
|
|
68
68
|
const engagementMedium = index_module.B();
|
|
69
69
|
console.log({ props });
|
|
70
|
+
const { refresh } = index_module.ze();
|
|
70
71
|
const { envelope: referralData, states, callbacks, } = index_module.kn(GET_REFERRAL_CODES, (data) => {
|
|
71
72
|
var _a;
|
|
72
73
|
console.log({ queryData: data });
|
|
@@ -82,7 +83,7 @@ function useReferralCodes(props) {
|
|
|
82
83
|
const [referralCodesContext, setReferralCodesContext] = index_module.Cn({
|
|
83
84
|
namespace: REFERRAL_CODES_NAMESPACE,
|
|
84
85
|
initialValue: {
|
|
85
|
-
|
|
86
|
+
refresh,
|
|
86
87
|
loading: true,
|
|
87
88
|
referralCode: "",
|
|
88
89
|
shareLink: "",
|
|
@@ -103,7 +104,7 @@ function useReferralCodes(props) {
|
|
|
103
104
|
if ((_a = referralData === null || referralData === void 0 ? void 0 : referralData.data) === null || _a === void 0 ? void 0 : _a.length) {
|
|
104
105
|
const data = referralData.data[0];
|
|
105
106
|
setReferralCodesContext({
|
|
106
|
-
|
|
107
|
+
refresh,
|
|
107
108
|
referralCode: data.code,
|
|
108
109
|
isCopied: !!data.dateCopied,
|
|
109
110
|
isUsed: !!data.dateUsed,
|
|
@@ -9,7 +9,7 @@ const index_module = require('./index.module-df530553.js');
|
|
|
9
9
|
const jsonpointer = require('./jsonpointer-11327262.js');
|
|
10
10
|
const utils = require('./utils-6847bc06.js');
|
|
11
11
|
const JSS = require('./JSS-8503a151.js');
|
|
12
|
-
const copyTextView = require('./copy-text-view-
|
|
12
|
+
const copyTextView = require('./copy-text-view-acd7cf5a.js');
|
|
13
13
|
const cjs = require('./cjs-1066ec21.js');
|
|
14
14
|
require('./mixins-fe9d4112.js');
|
|
15
15
|
const reRender = require('./re-render-1976e05e.js');
|
|
@@ -20,7 +20,7 @@ const index$1 = require('./index-8c6255f5.js');
|
|
|
20
20
|
const useRegistrationFormState = require('./useRegistrationFormState-876ed65d.js');
|
|
21
21
|
const utilities = require('./utilities-cec9dd36.js');
|
|
22
22
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
23
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
23
|
+
const ShadowViewAddon = require('./ShadowViewAddon-2742c017.js');
|
|
24
24
|
require('./sqm-portal-container-view-990a85a3.js');
|
|
25
25
|
|
|
26
26
|
const BigStat = class {
|
|
@@ -7,7 +7,7 @@ const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
|
|
|
7
7
|
const index_module = require('./index.module-df530553.js');
|
|
8
8
|
const utils = require('./utils-6847bc06.js');
|
|
9
9
|
const JSS = require('./JSS-8503a151.js');
|
|
10
|
-
const copyTextView = require('./copy-text-view-
|
|
10
|
+
const copyTextView = require('./copy-text-view-acd7cf5a.js');
|
|
11
11
|
const cjs = require('./cjs-1066ec21.js');
|
|
12
12
|
require('./mixins-fe9d4112.js');
|
|
13
13
|
|
|
@@ -119,7 +119,7 @@ function useReferralCode(props) {
|
|
|
119
119
|
async function onClick() {
|
|
120
120
|
if (contextData) {
|
|
121
121
|
await setCopied({ referralCode: contextData.referralCode });
|
|
122
|
-
|
|
122
|
+
contextData.refresh();
|
|
123
123
|
}
|
|
124
124
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
125
125
|
// Only if called from a user-initiated event
|
|
@@ -8,7 +8,7 @@ require('./global-02e50f09.js');
|
|
|
8
8
|
const index_module = require('./index.module-df530553.js');
|
|
9
9
|
require('./utils-6847bc06.js');
|
|
10
10
|
const JSS = require('./JSS-8503a151.js');
|
|
11
|
-
const copyTextView = require('./copy-text-view-
|
|
11
|
+
const copyTextView = require('./copy-text-view-acd7cf5a.js');
|
|
12
12
|
require('./cjs-1066ec21.js');
|
|
13
13
|
require('./mixins-fe9d4112.js');
|
|
14
14
|
const GenericTableView = require('./GenericTableView-a3f48e15.js');
|
|
@@ -29,7 +29,7 @@ const sqmPortalProfileView = require('./sqm-portal-profile-view-fde54e35.js');
|
|
|
29
29
|
require('./utilities-cec9dd36.js');
|
|
30
30
|
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-34771d2c.js');
|
|
31
31
|
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-c8f91506.js');
|
|
32
|
-
const ShadowViewAddon = require('./ShadowViewAddon-
|
|
32
|
+
const ShadowViewAddon = require('./ShadowViewAddon-2742c017.js');
|
|
33
33
|
const sqmPortalContainerView = require('./sqm-portal-container-view-990a85a3.js');
|
|
34
34
|
const sqmInvoiceTableView = require('./sqm-invoice-table-view-e3b03a00.js');
|
|
35
35
|
|
|
@@ -32,7 +32,7 @@ export function useReferralCode(props) {
|
|
|
32
32
|
async function onClick() {
|
|
33
33
|
if (contextData) {
|
|
34
34
|
await setCopied({ referralCode: contextData.referralCode });
|
|
35
|
-
|
|
35
|
+
contextData.refresh();
|
|
36
36
|
}
|
|
37
37
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
38
38
|
// Only if called from a user-initiated event
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useEngagementMedium, usePaginatedQuery, useParentState, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
1
|
+
import { useEngagementMedium, usePaginatedQuery, useParentState, useRefreshDispatcher, useUserIdentity, } from "@saasquatch/component-boilerplate";
|
|
2
2
|
import { useEffect } from "@saasquatch/universal-hooks";
|
|
3
3
|
import { gql } from "graphql-request";
|
|
4
4
|
const GET_REFERRAL_CODES = gql `
|
|
@@ -62,6 +62,7 @@ export function useReferralCodes(props) {
|
|
|
62
62
|
const user = useUserIdentity();
|
|
63
63
|
const engagementMedium = useEngagementMedium();
|
|
64
64
|
console.log({ props });
|
|
65
|
+
const { refresh } = useRefreshDispatcher();
|
|
65
66
|
const { envelope: referralData, states, callbacks, } = usePaginatedQuery(GET_REFERRAL_CODES, (data) => {
|
|
66
67
|
var _a;
|
|
67
68
|
console.log({ queryData: data });
|
|
@@ -77,7 +78,7 @@ export function useReferralCodes(props) {
|
|
|
77
78
|
const [referralCodesContext, setReferralCodesContext] = useParentState({
|
|
78
79
|
namespace: REFERRAL_CODES_NAMESPACE,
|
|
79
80
|
initialValue: {
|
|
80
|
-
|
|
81
|
+
refresh,
|
|
81
82
|
loading: true,
|
|
82
83
|
referralCode: "",
|
|
83
84
|
shareLink: "",
|
|
@@ -98,7 +99,7 @@ export function useReferralCodes(props) {
|
|
|
98
99
|
if ((_a = referralData === null || referralData === void 0 ? void 0 : referralData.data) === null || _a === void 0 ? void 0 : _a.length) {
|
|
99
100
|
const data = referralData.data[0];
|
|
100
101
|
setReferralCodesContext({
|
|
101
|
-
|
|
102
|
+
refresh,
|
|
102
103
|
referralCode: data.code,
|
|
103
104
|
isCopied: !!data.dateCopied,
|
|
104
105
|
isUsed: !!data.dateUsed,
|
|
@@ -78,7 +78,7 @@ export function useShareButton(props) {
|
|
|
78
78
|
var _a, _b, _c, _d;
|
|
79
79
|
if (overrideData) {
|
|
80
80
|
await setCopied({ referralCode: overrideData.referralCode });
|
|
81
|
-
|
|
81
|
+
overrideData.refresh();
|
|
82
82
|
}
|
|
83
83
|
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
84
84
|
environment.type === "SquatchAndroid") {
|
|
@@ -36,7 +36,7 @@ export function useShareLink(props) {
|
|
|
36
36
|
async function onClick() {
|
|
37
37
|
if (contextData) {
|
|
38
38
|
await setCopied({ referralCode: contextData.referralCode });
|
|
39
|
-
|
|
39
|
+
contextData.refresh();
|
|
40
40
|
}
|
|
41
41
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
42
42
|
// Only if called from a user-initiated event
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { h, c as Host, d as getAssetPath, g as getElement } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, b as browser, u as useMemo } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist, H, Q, I as In, y as yn, $ as $e, B, a as getEnvironmentSDK, L } from './index.module-
|
|
3
|
+
import { i as intl } from './global-ad7f5faf.js';
|
|
4
|
+
import { d as dist, H, Q, I as In, y as yn, $ as $e, B, a as getEnvironmentSDK, L } from './index.module-9957c169.js';
|
|
5
5
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
6
6
|
import { c as createStyleSheet, j as jss, a as create } from './JSS-67b5cff8.js';
|
|
7
|
-
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView } from './copy-text-view-
|
|
7
|
+
import { a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView } from './copy-text-view-377f6cdb.js';
|
|
8
8
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
9
9
|
import { H as HostBlock, A as AuthWrapper, a as AuthColumn, b as AuthButtonsContainer, E as ErrorStyles } from './mixins-f60a614c.js';
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
10
|
+
import { u as useChildElements } from './useChildElements-d04f3a93.js';
|
|
11
11
|
import { l as luxon } from './luxon-7600be8d.js';
|
|
12
12
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
13
13
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
14
|
-
import { a as isValidColor, b as isMobile } from './utilities-
|
|
14
|
+
import { a as isValidColor, b as isMobile } from './utilities-9c8585fb.js';
|
|
15
15
|
import { a as PortalSectionView, P as PortalContainerView } from './sqm-portal-container-view-6c582684.js';
|
|
16
16
|
|
|
17
17
|
const medium = {
|
|
@@ -387,7 +387,7 @@ function useShareLink(props) {
|
|
|
387
387
|
async function onClick() {
|
|
388
388
|
if (contextData) {
|
|
389
389
|
await setCopied({ referralCode: contextData.referralCode });
|
|
390
|
-
|
|
390
|
+
contextData.refresh();
|
|
391
391
|
}
|
|
392
392
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
393
393
|
// Only if called from a user-initiated event
|
|
@@ -486,7 +486,7 @@ function useShareButton(props) {
|
|
|
486
486
|
var _a, _b, _c, _d;
|
|
487
487
|
if (overrideData) {
|
|
488
488
|
await setCopied({ referralCode: overrideData.referralCode });
|
|
489
|
-
|
|
489
|
+
overrideData.refresh();
|
|
490
490
|
}
|
|
491
491
|
if (medium.toLocaleUpperCase() === "FACEBOOK" &&
|
|
492
492
|
environment.type === "SquatchAndroid") {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
2
|
import { f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { d as dist, Q, k as kn, C as Cn, B } from './index.module-
|
|
3
|
+
import { d as dist, Q, z as ze, k as kn, C as Cn, B } from './index.module-9957c169.js';
|
|
4
4
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
5
5
|
import { H as HostBlock } from './mixins-f60a614c.js';
|
|
6
6
|
|
|
@@ -65,6 +65,7 @@ function useReferralCodes(props) {
|
|
|
65
65
|
const user = Q();
|
|
66
66
|
const engagementMedium = B();
|
|
67
67
|
console.log({ props });
|
|
68
|
+
const { refresh } = ze();
|
|
68
69
|
const { envelope: referralData, states, callbacks, } = kn(GET_REFERRAL_CODES, (data) => {
|
|
69
70
|
var _a;
|
|
70
71
|
console.log({ queryData: data });
|
|
@@ -80,7 +81,7 @@ function useReferralCodes(props) {
|
|
|
80
81
|
const [referralCodesContext, setReferralCodesContext] = Cn({
|
|
81
82
|
namespace: REFERRAL_CODES_NAMESPACE,
|
|
82
83
|
initialValue: {
|
|
83
|
-
|
|
84
|
+
refresh,
|
|
84
85
|
loading: true,
|
|
85
86
|
referralCode: "",
|
|
86
87
|
shareLink: "",
|
|
@@ -101,7 +102,7 @@ function useReferralCodes(props) {
|
|
|
101
102
|
if ((_a = referralData === null || referralData === void 0 ? void 0 : referralData.data) === null || _a === void 0 ? void 0 : _a.length) {
|
|
102
103
|
const data = referralData.data[0];
|
|
103
104
|
setReferralCodesContext({
|
|
104
|
-
|
|
105
|
+
refresh,
|
|
105
106
|
referralCode: data.code,
|
|
106
107
|
isCopied: !!data.dateCopied,
|
|
107
108
|
isUsed: !!data.dateUsed,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as getAugmentedNamespace, c as createCommonjsModule, a as commonjsGlobal, b as browser, l as l$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
2
|
-
import { s as src, m as memoize, U } from './index.module-
|
|
2
|
+
import { s as src, m as memoize, U } from './index.module-9957c169.js';
|
|
3
3
|
|
|
4
4
|
var __assign = (undefined && undefined.__assign) || function () {
|
|
5
5
|
__assign = Object.assign || function(t) {
|
|
@@ -8759,4 +8759,4 @@ var umd = createCommonjsModule(function (module, exports) {
|
|
|
8759
8759
|
|
|
8760
8760
|
var N={current:void 0};function _(){if(void 0===N.current)throw new Error("no implementation of useHost provided");return N.current()}function U(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");N.current=e;}function L(){lazilyStartLocaleContext();var t=_();return h(t,LOCALE_CONTEXT_NAME)}function H(){lazilyStartProgramContext();var e=_();return h(e,PROGRAM_CONTEXT_NAME)}function J(){var e;return null==(e=Q())?void 0:e.jwt}function Q(){lazilyStartUserContext();var e=_(),n=h(e,USER_CONTEXT_NAME),t=userIdentityFromJwt(null==n?void 0:n.jwt);if(isDemo()||!n||t)return n;setUserIdentity(void 0);}var z=getTenantAlias,G=getAppDomain,B=getEngagementMedium;function K(){return (K=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}return e}).apply(this,arguments)}function Z(e,n){return (Z=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function X(e,n){return n||(n=e.slice(0)),e.raw=n,e}function Y(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ee(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return Y(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return "Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Y(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return (t=e[Symbol.iterator]()).next.bind(t)}var ne=function(){return (ne=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},te=new Map,re=new Map,ae=!0,oe=!1;function ie(e){return e.replace(/[\s,]+/g," ").trim()}function se(e){var n,t,r,a=ie(e);if(!te.has(a)){var o=parse(e,{experimentalFragmentVariables:oe});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");te.set(a,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&n.add(r);});});var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}((n=o,t=new Set,r=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,a=ie((i=e.loc).source.body.substring(i.start,i.end)),o=re.get(n);o&&!o.has(a)?ae&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||re.set(n,o=new Set),o.add(a),t.has(a)||(t.add(a),r.push(e));}else r.push(e);var i;}),ne(ne({},n),{definitions:r}))));}return te.get(a)}function ue(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach(function(n,t){r+=n&&"Document"===n.kind?n.loc.source.body:n,r+=e[t+1];}),se(r)}var ce,de=ue;(ce=ue||(ue={})).gql=de,ce.resetCaches=function(){te.clear(),re.clear();},ce.disableFragmentWarnings=function(){ae=!1;},ce.enableExperimentalFragmentVariables=function(){oe=!0;},ce.disableExperimentalFragmentVariables=function(){oe=!1;},ue.default=ue;var le=ue;function fe(e,n){try{var t=e();}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}var me=function(e){var n,t;function r(n,t){var r;(r=e.call(this,n,t)||this).subject=new Subject;var a=new Subject;return r.subject.pipe(bufferTime(200,void 0,10)).subscribe(function(e){try{if(!e.length)return Promise.resolve();for(var n,t=he(e),o=t.mergedQuery,i=t.mergedVariables,s=t.mergedQueryAddedEvents,u=ee(t.unmergedQueryAddedEvents);!(n=u()).done;)a.next(n.value);return s.length?Promise.resolve(fe(function(){return Promise.resolve(r.superRequest(o,i)).then(function(e){be(e,s);})},function(e){if(e instanceof types.ClientError){var n=function(){var n=e.response,t=n.data,r=n.errors;if(!t)return {v:Ie(s,e)};for(var a,o=Object.keys(t),i=[].concat(s),u=function(){var n=a.value,t=void 0;n.path.find(function(r,a,s){if(o.includes(r)){var u=pe(r),c=i.findIndex(function(e){return e.id===u});if(-1===c)return !1;o.splice(a,1),t=i.splice(c,1)[0];var d=ye(e.response.data,t);s[a]=ge(s[a],u);var l=t.query,f=t.variables,m=K({},e.response,{errors:[n],data:d,path:s}),v=new types.ClientError(m,{query:"string"!=typeof l?print(l):l,variables:f});return we(t,v),!0}return !1});},c=ee(r);!(a=c()).done;)u();be(t,i);}();if("object"==typeof n)return n.v}else Ie(s,e);})):Promise.resolve()}catch(e){return Promise.reject(e)}}),a.subscribe(function(e){try{var n=fe(function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then(function(n){Ce(n,e);})},function(n){we(e,n);});return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),r}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,Z(n,t);var a=r.prototype;return a.superRequest=function(n,t){return e.prototype.request.call(this,n,t)},a.request=function(e,n,t){var r=this;return new Promise(function(a,o){var i={query:e,variables:n,id:ve(),options:t,resolve:a,reject:o};r.subject.next(i);})},r}(dist$1.GraphQLClient),ve=function(){return nanoid().replace(/[-_]/g,"")},ge=function(e,n){return e.replace("_"+n,"")},pe=function(e){var n=e.split("_");return n[n.length-1]},he=function(e){var n=[],t=[],r=e.reduce(function(e,r){var a=r.query,o=r.variables,i=r.id,s=r.options;if(null==s||!s.batch)return t.push(r),e;try{var u="string"==typeof a?parse(a):a,c=u.definitions.find(function(e){return "FragmentDefinition"===e.kind}),d="string"==typeof a?a:print(a),l=/@/.test(d);if(c||l)return t.push(r),e;var f=function(e){return function(e,n){return e+"_"+n}(e,i)};return e=e.addN(u,[o],f,f),n.push(r),e}catch(n){return t.push(r),e}},M("BatchedQuery")),a=r.document,o=r.variables;return {mergedQuery:a&&print(a),mergedVariables:o,mergedQueryAddedEvents:n,unmergedQueryAddedEvents:t}},ye=function(e,n){if(!e)return e;var t=Object.keys(e),r=n.id;return t.reduce(function(n,t){var a;return t.endsWith(r)&&(n=K({},n,((a={})[ge(t,r)]=e[t],a))),n},{})},Ce=function(e,n){(0, n.resolve)(e);},be=function(e,n){for(var t,r=ee(n);!(t=r()).done;){var a=t.value,o=ye(e,a);a.resolve(o);}},we=function(e,n){(0, e.reject)(n);},Ie=function(e,n){for(var t,r=ee(e);!(t=r()).done;)(0, t.value.reject)(n);},Pe="sq:graphql-client",Ee=src(function(e,n,t){return new me(e+"/api/v1/"+n+"/graphql",{headers:{Authorization:"Bearer "+(t||"")}})});function Fe(e,n){switch(n.type){case"loading":return {data:void 0,errors:void 0,loading:!0};case"data":return {data:n.payload,errors:void 0,loading:!1};case"errors":return {data:void 0,errors:n.payload,loading:!1}}}function Me(e,n,t){void 0===t&&(t={batch:!0});var r,a,o,i,s,u,c=(r=J(),a=G(),o=z(),i=Ee(a,o,r),s=_(),null!=(u=h(s,"sq:graphql-client",{attempts:0}))?u:i),d=useReducer(Fe,n),l=d[1];return [d[0],useCallback(function(n,r){void 0===r&&(r=!1);try{if(!c){var a=new Error("No GraphQL client found");return l({type:"errors",payload:a}),Promise.resolve(a)}return Promise.resolve(function(a,o){try{var i=(r||l({type:"loading"}),Promise.resolve(c.request(e,n,t)).then(function(e){return l({type:"data",payload:e}),e}));}catch(e){return o(e)}return i&&i.then?i.then(void 0,o):i}(0,function(e){return l({type:"errors",payload:e}),e}))}catch(e){return Promise.reject(e)}},[c,e,l])]}var Se,De={loading:!1,data:void 0,errors:void 0};function $e(e){var n=Me(e,De);return [n[1],n[0]]}var Ae,ke=le(Se||(Se=X(["\n mutation AuthenticateWithEmailAndPassword(\n $email: String!\n $password: String!\n ) {\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function qe(){var e=$e(ke),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithEmailAndPassword){var n=e.authenticateManagedIdentityWithEmailAndPassword.token,t=o(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:e.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.authenticateManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var je,Re=le(Ae||(Ae=X(["\n mutation RegisterWithEmailAndPassword(\n $email: String!\n $password: String!\n $formData: RSJsonNode\n $redirectPath: String\n ) {\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n formData: $formData\n redirectPath: $redirectPath\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function xe(){var e=$e(Re),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.registerManagedIdentityWithEmailAndPassword){var n=e.registerManagedIdentityWithEmailAndPassword.token,t=o(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.registerManagedIdentityWithEmailAndPassword.email,emailVerified:e.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.registerManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Ve,Oe=le(je||(je=X(["\n mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {\n submitForm(formSubmissionInput: { key: $key, formData: $formData }) {\n results {\n ... on FormHandlerSubmissionResult {\n result\n formHandler {\n namespace\n }\n }\n ... on FormHandlerError {\n errorCode\n error\n errorType\n formHandler {\n name\n endpointUrl\n }\n }\n }\n }\n }\n"])));function We(){var e=$e(Oe),n=e[0],t=e[1],r=t.loading,a=t.data,o$1=t.errors,i=useState(null),s=i[1];return [function(e){try{return s(null),Promise.resolve(n(e)).then(function(e){var n,t,r,a;if(e instanceof Error)return e;var o$1=null==(n=e.submitForm)||null==(t=n.results)?void 0:t.find(function(e){var n;return "identity"===(null==e||null==(n=e.formHandler)?void 0:n.namespace)});if(o$1&&null!=(r=o$1.result)&&null!=(a=r.results)&&a.length){var i=o$1.result.results[0];if(i.success){var c=i.data.token,d=o(c).user;setUserIdentity({jwt:c,id:d.id,accountId:d.accountId,managedIdentity:{email:i.data.email,emailVerified:i.data.emailVerified,sessionData:i.data.sessionData}});}else s(i.message);}return e})}catch(e){return Promise.reject(e)}},{loading:r,data:a,errors:o$1,formError:i[0]}]}var Ne,_e=le(Ve||(Ve=X(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function Ue(){var e=$e(_e),n=e[1];return [e[0],{loading:n.loading,data:n.data,errors:n.errors}]}var Le,He=le(Ne||(Ne=X(["\n mutation ResetPassword($oobCode: String!, $password: String!) {\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: {\n password: $password\n oobCode: $oobCode\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Te(){var e=$e(He),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.resetManagedIdentityPassword){var n=e.resetManagedIdentityPassword.token,t=o(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.resetManagedIdentityPassword.email,emailVerified:e.resetManagedIdentityPassword.emailVerified,sessionData:e.resetManagedIdentityPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Je=le(Le||(Le=X(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Qe(){return $e(Je)}function ze(){var e=_();return {refresh:useCallback(function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}));},[e])}}function Ge(e){var n=e.skip,t=void 0!==n&&n,r=e.update,a=e.variables;useEffect(function(){var e=function(e){!t&&r(a,!0);};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}},function(e){var n=useRef(e),t=useRef(0);return equal(e,n.current)||(n.current=e,t.current+=1),useMemo(function(){return n.current},[t.current])}([a,r,t]));}var Be,Ke={loading:!1,data:void 0,errors:void 0},Ze=Symbol();function Xe(e){var n=Me(e,Ke),t=n[0],r=n[1],a=useRef(Ze);Ge({skip:a.current===Ze,update:r,variables:a.current});var o=useCallback(function(e){return a.current=e,r(e)},[r]);return [r,K({},t,{refetch:o})]}var Ye,en=le(Be||(Be=X(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function nn(){var e=Q(),n=Xe(en),t=n[0],r=n[1],a=r.refetch,o=function(n){n instanceof Error||!n.managedIdentitySession||setUserIdentity(K({},e,{managedIdentity:n.managedIdentitySession}));};return [function(){try{return Promise.resolve(t({})).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors,refetch:function(){try{return Promise.resolve(a()).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}}}]}var tn,rn=le(Ye||(Ye=X(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function an(){var e=nn()[0],n=$e(rn),t=n[0],r=n[1];return [function(n){try{return Promise.resolve(t(n)).then(function(n){var t=function(){if(!(n instanceof Error)&&n.verifyManagedIdentityEmail.success)return Promise.resolve(e()).then(function(){})}();return t&&t.then?t.then(function(){return n}):n})}catch(n){return Promise.reject(n)}},{loading:r.loading,data:r.data,errors:r.errors}]}var on,sn=le(tn||(tn=X(["\n mutation RequestPasswordResetEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function un(){return $e(sn)}var cn,dn=le(on||(on=X(["\n mutation RequestVerificationEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function ln(){return $e(dn)}var fn=le(cn||(cn=X(["\n mutation authenticateManagedIdentityWithInstantAccess(\n $email: String!\n $firstName: String\n $lastName: String\n $locale: RSLocale\n $countryCode: RSCountryCode\n $cookies: String\n ) {\n authenticateManagedIdentityWithInstantAccess(\n authenticateManagedIdentityWithInstantAccessInput: {\n email: $email\n firstName: $firstName\n lastName: $lastName\n locale: $locale\n countryCode: $countryCode\n cookies: $cookies\n }\n ) {\n email\n emailVerified\n sessionData\n token\n }\n }\n"])));function mn(){var e=H(),n=getEnvironment(),t=$e(fn),r=t[0],a=t[1];return [function(t){try{return Promise.resolve(r(t)).then(function(t){var r=function(){if(!(t instanceof Error)&&t.authenticateManagedIdentityWithInstantAccess)return Promise.resolve(function(e,n){try{return Promise.resolve(function(t,r){try{var a=Promise.resolve(fetch(getAppDomain()+"/api/v1/"+getTenantAlias()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+n},body:JSON.stringify({query:"\n query checkReferralFraudStatus($programId: ID) {\n viewer {\n ... on User {\n id\n instantAccessRewards(filter: { programId_eq: $programId }) {\n data {\n id\n pendingReasons\n cancelledReason\n }\n }\n }\n }\n }\n",variables:{programId:e}})})).then(function(e){if(!e.ok)throw new Error("Failed to fetch locale");return Promise.resolve(e.json()).then(function(e){var n;if(e.errors)throw new Error(JSON.stringify(e.errors,null,2));var t=(null==(n=e.data.viewer.instantAccessRewards)?void 0:n.data)||[];return t.some(function(e){return "SUSPECTED_FRAUD"===e.cancelledReason})?"DENIED":t.some(function(e){var n;return null==(n=e.pendingReasons)?void 0:n.includes("SUSPECTED_FRAUD")})?"PENDING_REVIEW":"APPROVED"})});}catch(e){return r(e)}return a&&a.then?a.then(void 0,r):a}(0,function(e){console.error(e);}))}catch(e){return Promise.reject(e)}}(e,t.authenticateManagedIdentityWithInstantAccess.token)).then(function(e){if("APPROVED"!==e)throw {name:"fraud_error",message:"Referral flagged as fraud."};var r=t.authenticateManagedIdentityWithInstantAccess.email;if(setUserIdentity({jwt:t.authenticateManagedIdentityWithInstantAccess.token,id:r,accountId:r}),"SquatchJS2"===n){var a=new CustomEvent("sq:user-registration",{bubbles:!0,detail:{userId:r,accountId:r}});document.dispatchEvent(a);}})}();return r&&r.then?r.then(function(e){return t}):t})}catch(e){return Promise.reject(e)}},{loading:a.loading,data:a.data,errors:a.errors}]}function vn(e,n){var t=useRef();return t.current&&equal(n,t.current.key)||(t.current={key:n,value:e()}),t.current.value}function gn(){return useReducer(function(e){return e+1},0)}function pn(e){for(var n,t=ee(Object.getOwnPropertyNames(e));!(n=t()).done;){var r=e[n.value];r&&"object"==typeof r&&pn(r);}return Object.freeze(e)}var hn={loading:!0,data:void 0,errors:void 0};function yn(e,n,t,r){var a=Me(e,hn,K({batch:!0},r||{})),o=a[0],i=a[1],s=gn(),u=s[1];return vn(function(){!t&&i(n);},[e,n,i,s[0],t]),Ge({skip:t,update:i,variables:n}),pn(K({},o,{refetch:u}))}function Cn(e){var n=_(),t=y(n,Pn(e.namespace),e.initialValue),r=t[0],a=t[1];return y(n,En(e.namespace),[r,a]),[r,a]}function bn(e){var n=d(En(e)),t=d(Pn(e));return n?[t,n[1]]:[void 0,void 0]}function wn(e){var n=d(En(e));if(n)return n[1]}function In(e){return d(Pn(e))}function Pn(e){return e+"-value"}function En(e){return e+"-state"}function Fn(e){var n=_(),t=yn(e.query,e.variables||{},e.skip,K({batch:!0},e.options||{})),r=y(n,Pn(e.namespace),t),a=r[0],o=r[1];return useEffect(function(){umd.deepEqual(t,a)||o(t);},[t,a]),t}function Mn(e){return d(Pn(e))||{data:null,loading:!0,refetch:function(){return console.warn("component still loading")}}}function Sn(){var e=gn()[1];return useEffect(function(){return history_default.listen(function(){e();})},[]),history_default.location}var Dn,$n=history_default;function An(e){var n=useState({limit:e.limit,offset:e.offset}),t=n[0],r=n[1],a=t.offset,o=t.limit,i=function(e,n){return e*n},s=function(e,n){return Math.ceil(e/n)||0};return {limit:o,setLimit:function(e){var n=s(a,e),o=i(e,n);r(K({},t,{limit:e,offset:o}));},offset:a,setCurrentPage:function(e){var n=i(e,o);r(function(e){return K({},e,{offset:n})});},calculatePagination:function(e,n){var t=s(a,o),r=function(e,n){return Math.ceil(e/n)||0}(n,o),i=0===e?"0":e>1?a+1+"-"+(a+e):""+(a+1);return {currentPage:t,pageCount:r,rangeOnPage:i,pageProgress:i+" of "+n}}}}function kn(e,n,t,r,a){var o;void 0===r&&(r={}),void 0===a&&(a=!1);var i=An(t),s=i.limit,u=i.setLimit,c=i.setCurrentPage,d=i.calculatePagination,l=yn(e,K({limit:s,offset:i.offset},r),a),f=l.loading,m=l.errors,v=l.refetch,g=n(l.data),p=d((null==g||null==(o=g.data)?void 0:o.length)||0,(null==g?void 0:g.totalCount)||0);return {envelope:g,states:{errors:m,loading:f,limit:s,currentPage:p.currentPage,pageCount:p.pageCount,pageProgress:p.pageProgress},callbacks:{refetch:v,setLimit:u,setCurrentPage:c}}}var xn=dist$1.gql(Dn||(Dn=X(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var On=1e3,Wn=60*On,Nn=60*Wn,_n=24*Nn,Un=function(e,n){n=n||{};var t=typeof e;if("string"===t&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(n){var t=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"weeks":case"week":case"w":return 6048e5*t;case"days":case"day":case"d":return t*_n;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Nn;case"minutes":case"minute":case"mins":case"min":case"m":return t*Wn;case"seconds":case"second":case"secs":case"sec":case"s":return t*On;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}(e);if("number"===t&&isFinite(e))return n.long?function(e){var n=Math.abs(e);return n>=_n?Ln(e,n,_n,"day"):n>=Nn?Ln(e,n,Nn,"hour"):n>=Wn?Ln(e,n,Wn,"minute"):n>=On?Ln(e,n,On,"second"):e+" ms"}(e):function(e){var n=Math.abs(e);return n>=_n?Math.round(e/_n)+"d":n>=Nn?Math.round(e/Nn)+"h":n>=Wn?Math.round(e/Wn)+"m":n>=On?Math.round(e/On)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Ln(e,n,t,r){var a=n>=1.5*t;return Math.round(e/t)+" "+r+(a?"s":"")}var Hn,Tn,Jn,Qn,zn,Gn=(function(e,n){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let r=0,a=0;n[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r));}),n.splice(a,0,t);},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug");}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=function(e){function n(e){let r,a=null;function o(...e){if(!o.enabled)return;const t=o,a=Number(new Date);t.diff=a-(r||a),t.prev=r,t.curr=a,r=a,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,a)=>{if("%%"===r)return "%";i++;const o=n.formatters[a];return "function"==typeof o&&(r=o.call(t,e[i]),e.splice(i,1),i--),r}),n.formatArgs.call(t,e),(t.log||n.log).apply(t,e);}return o.namespace=e,o.useColors=n.useColors(),o.color=n.selectColor(e),o.extend=t,o.destroy=n.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?n.enabled(e):a,set:e=>{a=e;}}),"function"==typeof n.init&&n.init(o),o}function t(e,t){const r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){const e=[...n.names.map(r),...n.skips.map(r).map(e=>"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.names=[],n.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(t=0;t<a;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")));},n.enabled=function(e){if("*"===e[e.length-1])return !0;let t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return !1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return !0;return !1},n.humanize=Un,n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(e).forEach(t=>{n[t]=e[t];}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}(n);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(Hn={exports:{}},Hn.exports),Hn.exports),Bn=Gn("sq:load-event"),Kn=dist$1.gql(Tn||(Tn=X(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Xn=Gn("sq:useForm"),Yn=dist$1.gql(Jn||(Jn=X(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),et=dist$1.gql(Qn||(Qn=X(["\n mutation ($formSubmissionInput: FormSubmissionInput!) {\n submitForm(formSubmissionInput: $formSubmissionInput) {\n success\n results {\n ... on FormHandlerSubmissionResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"]))),nt=dist$1.gql(zn||(zn=X(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])));
|
|
8761
8761
|
|
|
8762
|
-
export { $e as $, B, Cn as C, Ee as E, Fn as F, H, In as I, J, L, Mn as M, Pe as P, Q, Sn as S, Te as T, U, We as W, Xe as X, _, getEnvironmentSDK as a,
|
|
8762
|
+
export { $e as $, B, Cn as C, Ee as E, Fn as F, H, In as I, J, L, Mn as M, Pe as P, Q, Sn as S, Te as T, U, We as W, Xe as X, _, getEnvironmentSDK as a, z as b, setUserIdentity as c, dist$1 as d, mn as e, $n as f, gn as g, un as h, isDemo as i, Qe as j, kn as k, ln as l, memoize$1 as m, nn as n, an as o, setProgramId as p, Ue as q, qe as r, src as s, bn as t, useCallback as u, Pn as v, wn as w, xe as x, yn as y, ze as z };
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as promiseResolve, b as bootstrapLazy } from './index-17b4da69.js';
|
|
2
2
|
import './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import './global-
|
|
4
|
-
import './index.module-
|
|
3
|
+
import './global-ad7f5faf.js';
|
|
4
|
+
import './index.module-9957c169.js';
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
Stencil Client Patch Esm v2.4.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as promiseResolve, H, b as bootstrapLazy } from './index-17b4da69.js';
|
|
2
2
|
import './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import './global-
|
|
4
|
-
import './index.module-
|
|
3
|
+
import './global-ad7f5faf.js';
|
|
4
|
+
import './index.module-9957c169.js';
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
Stencil Client Patch Browser v2.4.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as isDemo } from './index.module-
|
|
3
|
+
import { i as isDemo } from './index.module-9957c169.js';
|
|
4
4
|
import './JSS-67b5cff8.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { A as AssetCardView } from './sqm-asset-card-view-9d93fbdd.js';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host, g as getElement } from './index-17b4da69.js';
|
|
2
2
|
import { m as useRef, k as useState, f as useEffect, n as h$1, u as useMemo, b as browser, j as useReducer } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist, L, Q, t as bn, I as In, M as Mn, $ as $e, i as isDemo, w as wn, u as useCallback, k as kn, v as Pn, _, C as Cn, F as Fn } from './index.module-
|
|
3
|
+
import { i as intl } from './global-ad7f5faf.js';
|
|
4
|
+
import { d as dist, L, Q, t as bn, I as In, M as Mn, $ as $e, i as isDemo, w as wn, u as useCallback, k as kn, v as Pn, _, C as Cn, F as Fn } from './index.module-9957c169.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { g as getProps, l as luxonLocale } from './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
9
9
|
import './mixins-f60a614c.js';
|
|
10
10
|
import { G as GenericTableView } from './GenericTableView-bf154727.js';
|
|
11
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
12
|
-
import { u as useChildElements } from './useChildElements-
|
|
11
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-09fdd305.js';
|
|
12
|
+
import { u as useChildElements } from './useChildElements-d04f3a93.js';
|
|
13
13
|
import { l as luxon } from './luxon-7600be8d.js';
|
|
14
|
-
import { g as generateUserError } from './useReferralTable-
|
|
15
|
-
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-
|
|
14
|
+
import { g as generateUserError } from './useReferralTable-a36c90a6.js';
|
|
15
|
+
import { t as taxTypeToName, v as validTaxDocument, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, g as getCountryObj, O as OtherRegionSlotView, I as InvoiceTableView, E as ErrorView, L as LoadingView, c as vatLabels, G as GeneralLoadingView, f as formatErrorMessage, d as validateBillingField, o as objectIsFull, A as ADDRESS_REGIONS } from './sqm-invoice-table-view-7f3b33ef.js';
|
|
16
16
|
|
|
17
17
|
const TAX_CONTEXT_NAMESPACE = "sq:tax-and-cash";
|
|
18
18
|
const TAX_FORM_CONTEXT_NAMESPACE = "sq:tax-form-context";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { n as h, f as useEffect, k as useState, i as d, u as useMemo, m as useRef, b as browser, j as useReducer } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { i as isDemo, _, d as dist, Q, H, $ as $e, y as yn, B, L, g as gn,
|
|
3
|
+
import { i as intl } from './global-ad7f5faf.js';
|
|
4
|
+
import { i as isDemo, _, d as dist, Q, H, $ as $e, y as yn, B, L, g as gn, f as $n, q as Ue, r as qe, x as xe, u as useCallback, z as ze, S as Sn } from './index.module-9957c169.js';
|
|
5
5
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
6
|
import { g as getProps, a as getMissingProps, s as sanitizeUrlPath } from './utils-334c1e34.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
|
-
import { C as CopyTextView } from './copy-text-view-
|
|
8
|
+
import { C as CopyTextView } from './copy-text-view-377f6cdb.js';
|
|
9
9
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
10
10
|
import './mixins-f60a614c.js';
|
|
11
|
-
import { a as useRequestRerender } from './re-render-
|
|
12
|
-
import { u as useChildElements } from './useChildElements-
|
|
11
|
+
import { a as useRequestRerender } from './re-render-09fdd305.js';
|
|
12
|
+
import { u as useChildElements } from './useChildElements-d04f3a93.js';
|
|
13
13
|
import './luxon-7600be8d.js';
|
|
14
14
|
import './sqm-text-span-view-8d140661.js';
|
|
15
15
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
16
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-
|
|
17
|
-
import { i as isEmpty } from './utilities-
|
|
16
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT, u as useRegistrationFormState } from './useRegistrationFormState-bdbb0d6b.js';
|
|
17
|
+
import { i as isEmpty } from './utilities-9c8585fb.js';
|
|
18
18
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
19
|
-
import { b as useDemoBigStat, U as useBigStat, B as BigStatView, O as autoColorScaleCss, J as CardFeedView, C as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, V as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, W as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-
|
|
19
|
+
import { b as useDemoBigStat, U as useBigStat, B as BigStatView, O as autoColorScaleCss, J as CardFeedView, C as CheckboxFieldView, K as CouponCodeView, D as DropdownFieldView, E as EditProfileView, H as HeroView, I as InputFieldView, V as withShadowView, L as LeaderboardView, N as NameFieldsView, d as PortalChangePasswordView, i as PortalFooterView, P as PortalFrameView, e as PortalLoginView, f as PortalRegisterView, R as ReferralIframeView, W as demoRewardExchange, j as RewardExchangeView, a as useShareButton, S as ShareButtonView, u as useShareLink, c as StatContainerView, T as TaskCardView } from './ShadowViewAddon-62f50be9.js';
|
|
20
20
|
import './sqm-portal-container-view-6c582684.js';
|
|
21
21
|
|
|
22
22
|
const BigStat = class {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { a as getEnvironmentSDK } from './index.module-
|
|
3
|
+
import { a as getEnvironmentSDK } from './index.module-9957c169.js';
|
|
4
4
|
import './JSS-67b5cff8.js';
|
|
5
5
|
import './mixins-f60a614c.js';
|
|
6
6
|
import { C as CloseButtonView } from './sqm-close-button-view-b24c708b.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { b as browser, k as useState, i as d, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { _ } from './index.module-
|
|
3
|
+
import { _ } from './index.module-9957c169.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
import { p as pathToRegexp } from './index-ffa26b43.js';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import './index.module-
|
|
3
|
+
import { i as intl } from './global-ad7f5faf.js';
|
|
4
|
+
import './index.module-9957c169.js';
|
|
5
5
|
import { g as getProps } from './utils-334c1e34.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-6c582684.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { o as m, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { J, E as Ee, z, P as Pe } from './index.module-
|
|
3
|
+
import { J, E as Ee, b as z, P as Pe } from './index.module-9957c169.js';
|
|
4
4
|
|
|
5
5
|
async function useGraphQLClientProvider({ domain }) {
|
|
6
6
|
const token = J();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as isDemo,
|
|
3
|
+
import { i as isDemo, c as setUserIdentity } from './index.module-9957c169.js';
|
|
4
4
|
import './jsonpointer-388a7082.js';
|
|
5
5
|
import './JSS-67b5cff8.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-f60a614c.js';
|
|
8
8
|
import { E as EmailRegistrationView } from './email-registration-view-12793040.js';
|
|
9
|
-
import './useRegistrationFormState-
|
|
10
|
-
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-
|
|
9
|
+
import './useRegistrationFormState-bdbb0d6b.js';
|
|
10
|
+
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-d277acd9.js';
|
|
11
11
|
|
|
12
12
|
const InstantAccessRegistration = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist, H, Q, y as yn, i as isDemo } from './index.module-
|
|
3
|
+
import { i as intl } from './global-ad7f5faf.js';
|
|
4
|
+
import { d as dist, H, Q, y as yn, i as isDemo } from './index.module-9957c169.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-10657658.js';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { d as dist, Q, y as yn,
|
|
3
|
+
import { d as dist, Q, y as yn, c as setUserIdentity, i as isDemo } from './index.module-9957c169.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
import './JSS-67b5cff8.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { S as Sn, i as isDemo } from './index.module-
|
|
3
|
+
import { S as Sn, i as isDemo } from './index.module-9957c169.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
import './JSS-67b5cff8.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import './mixins-f60a614c.js';
|
|
8
|
-
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-
|
|
8
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-247fe302.js';
|
|
9
9
|
|
|
10
10
|
function useNavigationSidebarItem(props) {
|
|
11
11
|
const currentPage = Sn();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { n as h, k as useState, f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { S as Sn, H } from './index.module-
|
|
3
|
+
import { S as Sn, H } from './index.module-9957c169.js';
|
|
4
4
|
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-0312e073.js';
|
|
5
5
|
|
|
6
6
|
const NavigationSidebar = class {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { h, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { n as h$1, k as useState } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { I as In, i as isDemo, d as dist, H, Q, y as yn, $ as $e, B } from './index.module-
|
|
3
|
+
import { I as In, i as isDemo, d as dist, H, Q, y as yn, $ as $e, B } from './index.module-9957c169.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
6
|
-
import { R as REFERRAL_CODES_PAGINATION_CONTEXT, a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView, u as useReferralCodes } from './copy-text-view-
|
|
6
|
+
import { R as REFERRAL_CODES_PAGINATION_CONTEXT, a as REFERRAL_CODES_NAMESPACE, S as SET_CODE_COPIED, C as CopyTextView, u as useReferralCodes } from './copy-text-view-377f6cdb.js';
|
|
7
7
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
8
8
|
import './mixins-f60a614c.js';
|
|
9
9
|
|
|
@@ -115,7 +115,7 @@ function useReferralCode(props) {
|
|
|
115
115
|
async function onClick() {
|
|
116
116
|
if (contextData) {
|
|
117
117
|
await setCopied({ referralCode: contextData.referralCode });
|
|
118
|
-
|
|
118
|
+
contextData.refresh();
|
|
119
119
|
}
|
|
120
120
|
// Should well supported: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard#browser_compatibility
|
|
121
121
|
// Only if called from a user-initiated event
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { i as d, k as useState, n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as isDemo } from './index.module-
|
|
3
|
+
import { i as isDemo } from './index.module-9957c169.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
6
6
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
7
|
import { E as ErrorStyles } from './mixins-f60a614c.js';
|
|
8
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-
|
|
8
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-bdbb0d6b.js';
|
|
9
9
|
|
|
10
10
|
var constants = {
|
|
11
11
|
error: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, c as Host, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { B } from './index.module-
|
|
3
|
+
import { B } from './index.module-9957c169.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
|
|
6
6
|
const PopupContainerView = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
|
-
import { i as intl } from './global-
|
|
2
|
+
import { i as intl } from './global-ad7f5faf.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
import { A as AuthWrapper, a as AuthColumn } from './mixins-f60a614c.js';
|
|
5
5
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|