@saasquatch/mint-components 1.12.1-0 → 1.12.1-10
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-c3e91cee.js → ShadowViewAddon-63b78308.js} +48 -118
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-big-stat_39.cjs.entry.js +6 -11
- package/dist/cjs/sqm-checkbox-field-view-e0a31f2a.js +66 -0
- package/dist/cjs/sqm-portal-change-marketing.cjs.entry.js +221 -0
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +2 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +10 -9
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/sqm-checkbox-field/CheckboxField.stories.js +1 -1
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +6 -15
- package/dist/collection/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.js +13 -43
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.js +39 -0
- package/dist/collection/components/sqm-portal-change-marketing/sqm-portal-change-marketing.js +191 -0
- package/dist/collection/components/sqm-portal-change-marketing/usePortalChangeMarketing.js +112 -0
- package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +2 -0
- package/dist/esm/{ShadowViewAddon-e012b2aa.js → ShadowViewAddon-272f75a5.js} +53 -122
- package/dist/esm/{global-04c7d3b5.js → global-62554cef.js} +1 -1
- package/dist/esm/{index.module-def4aec5.js → index.module-48f73e70.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-12fd274a.js → re-render-cb4d43dc.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_39.entry.js +10 -15
- package/dist/esm/sqm-checkbox-field-view-0ef58cb3.js +64 -0
- 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-6e13a323.js → sqm-invoice-table-view-41a14ca6.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-60ef06cc.js → sqm-navigation-sidebar-item-view-af40eedb.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-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/sqm-portal-change-marketing.entry.js +217 -0
- package/dist/esm/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-460bac1b.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-ffe955c8.js → sqm-portal-profile-view-4caa9f28.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 +4 -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 +13 -12
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/{useChildElements-32e1bda1.js → useChildElements-a6b895dd.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-46b89952.js → useInstantAccessRegistration-46a98499.js} +2 -2
- package/dist/esm/{useReferralTable-f4de0650.js → useReferralTable-6e8350db.js} +3 -3
- package/dist/esm/{useRegistrationFormState-9fc1ac80.js → useRegistrationFormState-de6b208e.js} +1 -1
- package/dist/esm/{utilities-3f5bba22.js → utilities-e8022681.js} +1 -1
- package/dist/esm-es5/{ShadowViewAddon-e012b2aa.js → ShadowViewAddon-272f75a5.js} +1 -1
- package/dist/esm-es5/{global-04c7d3b5.js → global-62554cef.js} +1 -1
- package/dist/esm-es5/{index.module-def4aec5.js → index.module-48f73e70.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-12fd274a.js → re-render-cb4d43dc.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_39.entry.js +1 -1
- package/dist/esm-es5/sqm-checkbox-field-view-0ef58cb3.js +1 -0
- 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-6e13a323.js → sqm-invoice-table-view-41a14ca6.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-af40eedb.js +1 -0
- 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-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-change-marketing.entry.js +1 -0
- package/dist/esm-es5/{sqm-portal-email-verification-view-4307c992.js → sqm-portal-email-verification-view-460bac1b.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-ffe955c8.js → sqm-portal-profile-view-4caa9f28.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-32e1bda1.js → useChildElements-a6b895dd.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-46b89952.js → useInstantAccessRegistration-46a98499.js} +1 -1
- package/dist/esm-es5/{useReferralTable-f4de0650.js → useReferralTable-6e8350db.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-9fc1ac80.js → useRegistrationFormState-de6b208e.js} +1 -1
- package/dist/esm-es5/{utilities-3f5bba22.js → utilities-e8022681.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-ce5afa40.entry.js → p-0068067d.entry.js} +1 -1
- package/dist/mint-components/p-018088cc.entry.js +13 -0
- package/dist/mint-components/{p-7731f793.system.entry.js → p-099c59cc.system.entry.js} +1 -1
- package/dist/mint-components/{p-3d4656bb.system.js → p-0f010c01.system.js} +1 -1
- package/dist/mint-components/{p-a1dba9a1.system.entry.js → p-0f30148d.system.entry.js} +1 -1
- package/dist/mint-components/{p-b5861974.system.entry.js → p-115edc43.system.entry.js} +1 -1
- package/dist/mint-components/{p-5f1c4160.system.entry.js → p-13976be9.system.entry.js} +1 -1
- package/dist/mint-components/p-175075e7.system.js +1 -0
- package/dist/mint-components/{p-b6fc1227.system.entry.js → p-1bb2fd65.system.entry.js} +1 -1
- package/dist/mint-components/{p-137ea86e.entry.js → p-1bdacfcb.entry.js} +1 -1
- package/dist/mint-components/{p-ce621bcc.js → p-1d803c85.js} +1 -1
- package/dist/mint-components/{p-458b2894.entry.js → p-1e0f4667.entry.js} +2 -2
- package/dist/mint-components/{p-c84659a3.system.js → p-1eb21821.system.js} +1 -1
- package/dist/mint-components/{p-eba44835.system.entry.js → p-215d9dce.system.entry.js} +1 -1
- package/dist/mint-components/{p-3223ba7b.entry.js → p-23112de2.entry.js} +1 -1
- package/dist/mint-components/{p-a7c2ced2.system.entry.js → p-2364eb2d.system.entry.js} +1 -1
- package/dist/mint-components/{p-cf690d55.system.entry.js → p-275b2841.system.entry.js} +1 -1
- package/dist/mint-components/{p-5be235f9.entry.js → p-29023a9c.entry.js} +1 -1
- package/dist/mint-components/{p-0d8c53ac.system.js → p-2a2d4343.system.js} +1 -1
- package/dist/mint-components/{p-5b333fa8.system.entry.js → p-30797093.system.entry.js} +1 -1
- package/dist/mint-components/p-30f84f8b.system.js +1 -0
- package/dist/mint-components/p-32642d34.js +1 -0
- package/dist/mint-components/{p-86990110.entry.js → p-3b08cc52.entry.js} +1 -1
- package/dist/mint-components/{p-aee2304a.entry.js → p-3fefb1f4.entry.js} +11 -11
- package/dist/mint-components/{p-afd366ae.system.entry.js → p-44c3791a.system.entry.js} +1 -1
- package/dist/mint-components/{p-b370fca8.system.js → p-481dedf2.system.js} +1 -1
- package/dist/mint-components/p-48b07ec7.system.entry.js +1 -0
- package/dist/mint-components/{p-35d84041.system.entry.js → p-498c4ffd.system.entry.js} +1 -1
- package/dist/mint-components/{p-51f517a2.js → p-4dcdf9b6.js} +1 -1
- package/dist/mint-components/{p-61eab172.js → p-512089bb.js} +1 -1
- package/dist/mint-components/{p-3ec16698.entry.js → p-513f79fb.entry.js} +1 -1
- package/dist/mint-components/p-52553737.system.entry.js +1 -0
- package/dist/mint-components/{p-a9050eb0.entry.js → p-52acd113.entry.js} +1 -1
- package/dist/mint-components/{p-ed095674.system.js → p-57ea9c0b.system.js} +1 -1
- package/dist/mint-components/{p-4edde470.entry.js → p-59111d6c.entry.js} +1 -1
- package/dist/mint-components/p-5ab5131c.entry.js +1 -0
- package/dist/mint-components/{p-674a64fe.system.js → p-5da7c982.system.js} +1 -1
- package/dist/mint-components/{p-ec41d6a4.entry.js → p-5de3473d.entry.js} +1 -1
- package/dist/mint-components/{p-021a735d.entry.js → p-5f20200a.entry.js} +1 -1
- package/dist/mint-components/p-60bf4471.system.entry.js +1 -0
- package/dist/mint-components/{p-32d1d162.entry.js → p-64b25dd9.entry.js} +1 -1
- package/dist/mint-components/{p-dd7ee007.system.js → p-66d09e59.system.js} +1 -1
- package/dist/mint-components/{p-1dd69917.system.entry.js → p-670d441e.system.entry.js} +1 -1
- package/dist/mint-components/{p-5cac90e8.system.entry.js → p-68160d49.system.entry.js} +1 -1
- package/dist/mint-components/{p-eaada4da.js → p-6aed684b.js} +1 -1
- package/dist/mint-components/{p-59fe4ad1.system.js → p-6f980faf.system.js} +1 -1
- package/dist/mint-components/p-711bb8da.entry.js +1 -0
- package/dist/mint-components/{p-4df8f1d2.system.js → p-74609159.system.js} +1 -1
- package/dist/mint-components/{p-d8d2de11.entry.js → p-74d012fc.entry.js} +1 -1
- package/dist/mint-components/p-7624c91a.entry.js +18 -0
- package/dist/mint-components/{p-4502ed11.system.entry.js → p-7726e4ea.system.entry.js} +1 -1
- package/dist/mint-components/{p-7049e9b0.entry.js → p-778b55a5.entry.js} +1 -1
- package/dist/mint-components/p-7ab32670.entry.js +33 -0
- package/dist/mint-components/{p-0b9fa97f.js → p-7eabcffc.js} +1 -1
- package/dist/mint-components/p-804de0cf.system.entry.js +1 -0
- package/dist/mint-components/{p-9f0629ba.system.entry.js → p-83df7db2.system.entry.js} +1 -1
- package/dist/mint-components/{p-7f088154.entry.js → p-8e3390b6.entry.js} +1 -1
- package/dist/mint-components/{p-6cef104b.entry.js → p-902770d7.entry.js} +1 -1
- package/dist/mint-components/{p-01cfff8a.system.entry.js → p-92b08cb2.system.entry.js} +1 -1
- package/dist/mint-components/{p-fb20eb5e.system.entry.js → p-94324315.system.entry.js} +1 -1
- package/dist/mint-components/{p-bb00db59.js → p-98602fa9.js} +1 -1
- package/dist/mint-components/{p-2dd67762.entry.js → p-9982db11.entry.js} +1 -1
- package/dist/mint-components/{p-b4c52c5a.entry.js → p-9a520e94.entry.js} +2 -2
- package/dist/mint-components/{p-07f675ab.system.entry.js → p-9aa177d6.system.entry.js} +1 -1
- package/dist/mint-components/{p-a8f7cb95.js → p-9b4a99c4.js} +1 -1
- package/dist/mint-components/{p-02424350.system.js → p-9bb9a767.system.js} +1 -1
- package/dist/mint-components/p-a178a449.system.js +1 -0
- package/dist/mint-components/p-a6b36268.system.js +1 -0
- package/dist/mint-components/p-b07a88fd.js +1 -0
- package/dist/mint-components/{p-56f14840.entry.js → p-b169229a.entry.js} +1 -1
- package/dist/mint-components/{p-41a11a7f.js → p-b348d95c.js} +1 -1
- package/dist/mint-components/{p-10e89d0a.entry.js → p-b5b9f737.entry.js} +1 -1
- package/dist/mint-components/{p-4ea58025.system.entry.js → p-b7324c0e.system.entry.js} +1 -1
- package/dist/mint-components/{p-8b5b78ca.entry.js → p-b86003f6.entry.js} +1 -1
- package/dist/mint-components/{p-be4b748a.system.entry.js → p-baca1c93.system.entry.js} +1 -1
- package/dist/mint-components/{p-711ba77e.system.entry.js → p-bd6d9d54.system.entry.js} +1 -1
- package/dist/mint-components/{p-2ee2ebba.js → p-bda832b2.js} +2 -2
- package/dist/mint-components/{p-8704937c.js → p-c4719154.js} +1 -1
- package/dist/mint-components/{p-e3735866.entry.js → p-c89c890e.entry.js} +1 -1
- package/dist/mint-components/p-c98cd85a.system.entry.js +1 -0
- package/dist/mint-components/{p-44787d6e.system.js → p-ce5057f7.system.js} +1 -1
- package/dist/mint-components/p-cefffd56.system.entry.js +1 -0
- package/dist/mint-components/{p-58ef25d3.system.entry.js → p-d71ec46e.system.entry.js} +1 -1
- package/dist/mint-components/{p-4d233cd4.js → p-da1e21f2.js} +1 -1
- package/dist/mint-components/{p-10685090.js → p-de0a29b2.js} +2 -2
- package/dist/mint-components/{p-aad11a68.entry.js → p-df2ada74.entry.js} +1 -1
- package/dist/mint-components/{p-03494732.entry.js → p-e169497d.entry.js} +1 -1
- package/dist/mint-components/{p-8679ed9f.system.entry.js → p-f99765fe.system.entry.js} +1 -1
- package/dist/mint-components/{p-af062c8f.system.entry.js → p-fc58dc2f.system.entry.js} +1 -1
- package/dist/types/components/sqm-marketing-emails-checkbox/sqm-marketing-emails-checkbox.d.ts +4 -10
- package/dist/types/components/sqm-portal-change-marketing/sqm-portal-change-marketing-view.d.ts +27 -0
- package/dist/types/components/sqm-portal-change-marketing/sqm-portal-change-marketing.d.ts +35 -0
- package/dist/types/components/sqm-portal-change-marketing/usePortalChangeMarketing.d.ts +3 -0
- package/dist/types/components.d.ts +59 -15
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item-view-60ef06cc.js +0 -1
- package/dist/mint-components/p-1c857edb.entry.js +0 -33
- package/dist/mint-components/p-770368bc.system.js +0 -1
- package/dist/mint-components/p-79191f88.entry.js +0 -1
- package/dist/mint-components/p-8e907ac7.system.entry.js +0 -1
- package/dist/mint-components/p-91669312.entry.js +0 -1
- package/dist/mint-components/p-95771f79.system.js +0 -1
- package/dist/mint-components/p-96242551.system.entry.js +0 -1
- package/dist/mint-components/p-9c310991.system.entry.js +0 -1
- package/dist/mint-components/p-a6a7dcaa.js +0 -1
- package/dist/mint-components/p-d5de2646.system.entry.js +0 -1
- package/dist/mint-components/p-d8e68e16.entry.js +0 -13
- package/dist/mint-components/p-e6d74386.system.entry.js +0 -1
- package/dist/mint-components/p-ed17e637.system.js +0 -1
|
@@ -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-48f73e70.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import './mixins-f60a614c.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
|
-
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-
|
|
8
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-af40eedb.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-48f73e70.js';
|
|
4
4
|
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-0312e073.js';
|
|
5
5
|
|
|
6
6
|
const NavigationSidebar = class {
|
|
@@ -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-48f73e70.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import { E as ErrorStyles } from './mixins-f60a614c.js';
|
|
6
6
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
7
7
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
|
-
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-
|
|
8
|
+
import { R as REGISTRATION_FORM_STATE_CONTEXT } from './useRegistrationFormState-de6b208e.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-48f73e70.js';
|
|
4
4
|
import { g as getProps } from './utils-334c1e34.js';
|
|
5
5
|
|
|
6
6
|
const PopupContainerView = (props) => {
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { h, r as registerInstance } from './index-17b4da69.js';
|
|
2
|
+
import { k as useState, f as useEffect, n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
+
import './global-62554cef.js';
|
|
4
|
+
import { d as dist, Q, y as yn, e as $e, i as isDemo } from './index.module-48f73e70.js';
|
|
5
|
+
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
6
|
+
import { c as cjs } from './cjs-bdfb4486.js';
|
|
7
|
+
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
|
+
import { g as getProps } from './utils-334c1e34.js';
|
|
9
|
+
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
10
|
+
import { C as CheckboxFieldView } from './sqm-checkbox-field-view-0ef58cb3.js';
|
|
11
|
+
|
|
12
|
+
function PortalProfileView(props) {
|
|
13
|
+
const { states, callbacks } = props;
|
|
14
|
+
const { text, formState } = states;
|
|
15
|
+
const { error } = formState;
|
|
16
|
+
const style = {
|
|
17
|
+
Container: {
|
|
18
|
+
display: "flex",
|
|
19
|
+
flexDirection: "column",
|
|
20
|
+
gap: "var(--sl-spacing-xxx-large)",
|
|
21
|
+
padding: "var(--sl-spacing-xxx-large)",
|
|
22
|
+
},
|
|
23
|
+
Error: {
|
|
24
|
+
"&::part(erroralert-base)": {
|
|
25
|
+
"margin-bottom": "15px",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
const sheet = createStyleSheet(style);
|
|
30
|
+
const styleString = sheet.toString();
|
|
31
|
+
return (h("div", { class: sheet.classes.Container, part: "sqm-base" },
|
|
32
|
+
h("style", { type: "text/css" }, styleString),
|
|
33
|
+
h(TextSpanView, Object.assign({}, { type: "h2" }), text.emailPreferencesHeader),
|
|
34
|
+
h("sl-form", { "onSl-submit": callbacks.onSubmit },
|
|
35
|
+
h(CheckboxFieldView, { states: {
|
|
36
|
+
checked: states.formState.marketingEmailOptIn,
|
|
37
|
+
}, content: {
|
|
38
|
+
checkboxLabel: text.marketingCheckboxLabel,
|
|
39
|
+
checkboxName: "marketingEmailOptIn",
|
|
40
|
+
}, callbacks: {
|
|
41
|
+
setChecked: callbacks.setChecked,
|
|
42
|
+
} }),
|
|
43
|
+
h("sl-button", { type: "primary", submit: true, loading: states.loading, disabled: states.submitDisabled }, text.submitChangeButtonText),
|
|
44
|
+
error && (h("sqm-form-message", { class: sheet.classes.Error, type: "error", exportparts: "erroralert-icon" },
|
|
45
|
+
h("div", { part: "erroralert-text" }, error))))));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const GET_USER = dist.gql `
|
|
49
|
+
query {
|
|
50
|
+
viewer {
|
|
51
|
+
... on User {
|
|
52
|
+
id
|
|
53
|
+
accountId
|
|
54
|
+
marketingEmailOptIn
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
59
|
+
const UPSERT_USER = dist.gql `
|
|
60
|
+
mutation ($userInput: UserInput!) {
|
|
61
|
+
upsertUser(userInput: $userInput) {
|
|
62
|
+
id
|
|
63
|
+
marketingEmailOptIn
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
// view doesn't tolerate undefined, even when we're loading
|
|
68
|
+
const defaultFormState = {
|
|
69
|
+
marketingEmailOptIn: false,
|
|
70
|
+
errors: {},
|
|
71
|
+
error: "",
|
|
72
|
+
};
|
|
73
|
+
function usePortalProfile(props) {
|
|
74
|
+
const userIdent = Q();
|
|
75
|
+
const [success, setSuccess] = useState(false);
|
|
76
|
+
const [userData, setUserData] = useState(undefined);
|
|
77
|
+
const [formState, setFormState] = useState(defaultFormState);
|
|
78
|
+
const userDataResponse = yn(GET_USER, {}, !(userIdent === null || userIdent === void 0 ? void 0 : userIdent.jwt));
|
|
79
|
+
const [upsertUser, upsertUserResponse] = $e(UPSERT_USER);
|
|
80
|
+
useEffect(() => {
|
|
81
|
+
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading)
|
|
82
|
+
return;
|
|
83
|
+
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors) {
|
|
84
|
+
setFormState((state) => {
|
|
85
|
+
var _a, _b, _c;
|
|
86
|
+
return ({
|
|
87
|
+
...state,
|
|
88
|
+
error: (_c = (_b = (_a = upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors) === null || _a === void 0 ? void 0 : _a.response) === null || _b === void 0 ? void 0 : _b.errors) === null || _c === void 0 ? void 0 : _c[0].message,
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
setUserData((state) => {
|
|
94
|
+
var _a;
|
|
95
|
+
return ({
|
|
96
|
+
...state,
|
|
97
|
+
...(_a = upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.data) === null || _a === void 0 ? void 0 : _a.upsertUser,
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
if (upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.data)
|
|
101
|
+
setSuccess(true);
|
|
102
|
+
}
|
|
103
|
+
}, [upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.loading]);
|
|
104
|
+
useEffect(() => {
|
|
105
|
+
var _a, _b;
|
|
106
|
+
setUserData((data) => { var _a; return ({ ...data, ...(_a = userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.data) === null || _a === void 0 ? void 0 : _a.viewer }); });
|
|
107
|
+
setFormState({
|
|
108
|
+
...defaultFormState,
|
|
109
|
+
...(_a = userDataResponse.data) === null || _a === void 0 ? void 0 : _a.viewer,
|
|
110
|
+
...(_b = upsertUserResponse.data) === null || _b === void 0 ? void 0 : _b.upsertUser,
|
|
111
|
+
});
|
|
112
|
+
}, [userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.data]);
|
|
113
|
+
useEffect(() => {
|
|
114
|
+
var _a, _b;
|
|
115
|
+
if ((_a = upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors) === null || _a === void 0 ? void 0 : _a.message) {
|
|
116
|
+
setFormState({
|
|
117
|
+
...(_b = userDataResponse.data) === null || _b === void 0 ? void 0 : _b.viewer,
|
|
118
|
+
error: props.networkRequestMessage,
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
}, [upsertUserResponse === null || upsertUserResponse === void 0 ? void 0 : upsertUserResponse.errors]);
|
|
122
|
+
const onSubmit = (event) => {
|
|
123
|
+
var _a;
|
|
124
|
+
setSuccess(false);
|
|
125
|
+
const formData = (_a = event.detail) === null || _a === void 0 ? void 0 : _a.formData;
|
|
126
|
+
formData === null || formData === void 0 ? void 0 : formData.forEach((value, key) => {
|
|
127
|
+
jsonpointer.set(formData, key, value);
|
|
128
|
+
});
|
|
129
|
+
upsertUser({
|
|
130
|
+
id: userIdent === null || userIdent === void 0 ? void 0 : userIdent.id,
|
|
131
|
+
accountId: userIdent === null || userIdent === void 0 ? void 0 : userIdent.accountId,
|
|
132
|
+
marketingEmailOptIn: formData.marketingEmailOptIn,
|
|
133
|
+
});
|
|
134
|
+
setFormState((s) => ({ ...s, errors: {}, error: "" }));
|
|
135
|
+
return;
|
|
136
|
+
};
|
|
137
|
+
return {
|
|
138
|
+
states: {
|
|
139
|
+
success,
|
|
140
|
+
loading: (userDataResponse === null || userDataResponse === void 0 ? void 0 : userDataResponse.loading) || upsertUserResponse.loading,
|
|
141
|
+
submitDisabled: false,
|
|
142
|
+
formState,
|
|
143
|
+
user: userData,
|
|
144
|
+
text: {
|
|
145
|
+
emailPreferencesHeader: props.emailPreferencesHeader,
|
|
146
|
+
marketingCheckboxLabel: props.marketingCheckboxLabel,
|
|
147
|
+
submitChangeButtonText: props.submitChangeButtonText,
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
callbacks: {
|
|
151
|
+
onSubmit,
|
|
152
|
+
setChecked: (value) => setFormState({ ...formState, marketingEmailOptIn: value }),
|
|
153
|
+
},
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const PortalChangeMarketing = class {
|
|
158
|
+
constructor(hostRef) {
|
|
159
|
+
registerInstance(this, hostRef);
|
|
160
|
+
this.ignored = true;
|
|
161
|
+
/**
|
|
162
|
+
* @uiName Email preferences header
|
|
163
|
+
*/
|
|
164
|
+
this.emailPreferencesHeader = "Email preferences";
|
|
165
|
+
/**
|
|
166
|
+
* @uiName Marketing checkbox label
|
|
167
|
+
*/
|
|
168
|
+
this.marketingCheckboxLabel = "I want to receive marketing emails and promotions for this referral program from impact.com";
|
|
169
|
+
/**
|
|
170
|
+
* @uiName Submit changes button text
|
|
171
|
+
*/
|
|
172
|
+
this.submitChangeButtonText = "Save";
|
|
173
|
+
/**
|
|
174
|
+
* @uiName Network request error message
|
|
175
|
+
* Displayed when the page fails to load due to a network error. The participant can try refreshing the page.
|
|
176
|
+
*/
|
|
177
|
+
this.networkRequestMessage = "An error occurred while loading this page. Please refresh the page.";
|
|
178
|
+
h$1(this);
|
|
179
|
+
}
|
|
180
|
+
disconnectedCallback() { }
|
|
181
|
+
render() {
|
|
182
|
+
const props = isDemo()
|
|
183
|
+
? usePortalProfileDemo(getProps(this))
|
|
184
|
+
: usePortalProfile(getProps(this));
|
|
185
|
+
return h(PortalProfileView, Object.assign({}, props));
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
function usePortalProfileDemo(props) {
|
|
189
|
+
return cjs({
|
|
190
|
+
states: {
|
|
191
|
+
success: false,
|
|
192
|
+
loading: false,
|
|
193
|
+
submitDisabled: false,
|
|
194
|
+
user: {
|
|
195
|
+
id: "01",
|
|
196
|
+
accountId: "111100000",
|
|
197
|
+
marketingEmailOptIn: false,
|
|
198
|
+
},
|
|
199
|
+
text: {
|
|
200
|
+
emailPreferencesHeader: props.emailPreferencesHeader,
|
|
201
|
+
marketingCheckboxLabel: props.marketingCheckboxLabel,
|
|
202
|
+
submitChangeButtonText: props.submitChangeButtonText,
|
|
203
|
+
},
|
|
204
|
+
formState: {
|
|
205
|
+
marketingEmailOptIn: false,
|
|
206
|
+
errors: null,
|
|
207
|
+
error: "",
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
callbacks: {
|
|
211
|
+
onSubmit: (e) => console.log(e),
|
|
212
|
+
setChecked: () => { },
|
|
213
|
+
},
|
|
214
|
+
}, props.demoData || {}, { arrayMerge: (_, a) => a });
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export { PortalChangeMarketing as sqm_portal_change_marketing };
|
|
@@ -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-62554cef.js';
|
|
3
3
|
import { A as AuthWrapper, a as AuthColumn } from './mixins-f60a614c.js';
|
|
4
4
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
5
5
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, m as useRef, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import './global-
|
|
4
|
-
import { l as ln, n as nn, Q, $ as $n, u as useCallback, i as isDemo } from './index.module-
|
|
3
|
+
import './global-62554cef.js';
|
|
4
|
+
import { l as ln, n as nn, Q, $ as $n, u as useCallback, i as isDemo } from './index.module-48f73e70.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import './sqm-text-span-view-8d140661.js';
|
|
9
|
-
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-
|
|
9
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-460bac1b.js';
|
|
10
10
|
|
|
11
11
|
function usePortalEmailVerification(props) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import {
|
|
3
|
+
import { f as un, $ as $n, i as isDemo } from './index.module-48f73e70.js';
|
|
4
4
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { b as setUserIdentity, $ as $n, i as isDemo } from './index.module-
|
|
3
|
+
import { b as setUserIdentity, $ as $n, i as isDemo } from './index.module-48f73e70.js';
|
|
4
4
|
|
|
5
5
|
function usePortalLogout({ nextPage }) {
|
|
6
6
|
setUserIdentity(undefined);
|
package/dist/esm/{sqm-portal-profile-view-ffe955c8.js → sqm-portal-profile-view-4caa9f28.js}
RENAMED
|
@@ -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-62554cef.js';
|
|
3
3
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
4
4
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
5
5
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import './global-
|
|
4
|
-
import { d as dist, Q, y as yn,
|
|
3
|
+
import './global-62554cef.js';
|
|
4
|
+
import { d as dist, Q, y as yn, e as $e, i as isDemo } from './index.module-48f73e70.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
7
7
|
import { g as getProps } from './utils-334c1e34.js';
|
|
8
8
|
import './sqm-text-span-view-8d140661.js';
|
|
9
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
10
|
-
import { i as isEmpty } from './utilities-
|
|
9
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-4caa9f28.js';
|
|
10
|
+
import { i as isEmpty } from './utilities-e8022681.js';
|
|
11
11
|
|
|
12
12
|
const GET_USER = dist.gql `
|
|
13
13
|
query {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { Q, S as Sn, $ as $n, i as isDemo } from './index.module-
|
|
3
|
+
import { Q, S as Sn, $ as $n, i as isDemo } from './index.module-48f73e70.js';
|
|
4
4
|
|
|
5
5
|
function usePortalProtectedRoute({ requireEmailVerification, redirectTo, redirectToUnverified, }) {
|
|
6
6
|
var _a;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { m as useRef, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { d as dist, L, W as We, y as yn, $ as $n, u as useCallback, i as isDemo } from './index.module-
|
|
3
|
+
import { d as dist, L, W as We, y as yn, $ as $n, u as useCallback, i as isDemo } from './index.module-48f73e70.js';
|
|
4
4
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import './sqm-text-span-view-8d140661.js';
|
|
9
|
-
import { u as useRegistrationFormState } from './useRegistrationFormState-
|
|
9
|
+
import { u as useRegistrationFormState } from './useRegistrationFormState-de6b208e.js';
|
|
10
10
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-1d3066e1.js';
|
|
11
11
|
import { A as AsYouType } from './AsYouType-46f67d0d.js';
|
|
12
12
|
|
|
@@ -57,6 +57,7 @@ function usePortalRegistrationForm(props) {
|
|
|
57
57
|
const submit = async (event) => {
|
|
58
58
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
59
59
|
let formControls = event.target.getFormControls();
|
|
60
|
+
console.log("Test 123");
|
|
60
61
|
let formData = {};
|
|
61
62
|
let validationErrors = {};
|
|
62
63
|
formControls === null || formControls === void 0 ? void 0 : formControls.forEach((control) => {
|
|
@@ -102,6 +103,7 @@ function usePortalRegistrationForm(props) {
|
|
|
102
103
|
validationErrors: {},
|
|
103
104
|
});
|
|
104
105
|
const { email, password } = formData;
|
|
106
|
+
console.log("form data is ", formData);
|
|
105
107
|
delete formData.email;
|
|
106
108
|
delete formData.password;
|
|
107
109
|
delete formData.confirmPassword;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { h as Qe, T as Te, $ as $n, i as isDemo } from './index.module-
|
|
3
|
+
import { h as Qe, T as Te, $ as $n, i as isDemo } from './index.module-48f73e70.js';
|
|
4
4
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1 } from './index-17b4da69.js';
|
|
2
2
|
import { k as useState, f as useEffect, n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { Q, j as an, $ as $n, b as setUserIdentity, i as isDemo } from './index.module-
|
|
3
|
+
import { Q, j as an, $ as $n, b as setUserIdentity, i as isDemo } from './index.module-48f73e70.js';
|
|
4
4
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
5
5
|
import './mixins-f60a614c.js';
|
|
6
6
|
import './JSS-67b5cff8.js';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, g as getElement, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { n as h, j as useReducer, u as useMemo, f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { i as isDemo } from './index.module-
|
|
3
|
+
import { i as intl } from './global-62554cef.js';
|
|
4
|
+
import { i as isDemo } from './index.module-48f73e70.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import { G as GenericTableView } from './GenericTableView-d59d8ab4.js';
|
|
9
|
-
import { a as useRequestRerender, u as useRerenderListener } from './re-render-
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
9
|
+
import { a as useRequestRerender, u as useRerenderListener } from './re-render-cb4d43dc.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-a6b895dd.js';
|
|
11
11
|
import { l as luxon } from './luxon-7600be8d.js';
|
|
12
12
|
import { g as getPaypalMeta } from './mockRewardData-0eb6e778.js';
|
|
13
|
-
import { u as useReferralTable, t as tryMethod } from './useReferralTable-
|
|
13
|
+
import { u as useReferralTable, t as tryMethod } from './useReferralTable-6e8350db.js';
|
|
14
14
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
15
15
|
import { T as TextSpanView } from './sqm-text-span-view-8d140661.js';
|
|
16
16
|
|
|
@@ -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, b as setUserIdentity } from './index.module-
|
|
3
|
+
import { i as isDemo, b as setUserIdentity } from './index.module-48f73e70.js';
|
|
4
4
|
import './jsonpointer-388a7082.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import './JSS-67b5cff8.js';
|
|
8
8
|
import { E as EmailRegistrationView } from './email-registration-view-a89a88bf.js';
|
|
9
|
-
import './useRegistrationFormState-
|
|
10
|
-
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-
|
|
9
|
+
import './useRegistrationFormState-de6b208e.js';
|
|
10
|
+
import { u as useInstantAccessRegistration } from './useInstantAccessRegistration-46a98499.js';
|
|
11
11
|
|
|
12
12
|
const ReferredRegistration = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h as h$1, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { n as h } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import './index.module-
|
|
4
|
-
import { a as useRequestRerender } from './re-render-
|
|
3
|
+
import './index.module-48f73e70.js';
|
|
4
|
+
import { a as useRequestRerender } from './re-render-cb4d43dc.js';
|
|
5
5
|
|
|
6
6
|
const RewardTableCustomerNoteColumn = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { b as browser, j as useReducer, f as useEffect, n as h$1, u as useMemo } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { i as intl } from './global-
|
|
4
|
-
import { d as dist, Q, H, L, y as yn, k as kn, i as isDemo } from './index.module-
|
|
3
|
+
import { i as intl } from './global-62554cef.js';
|
|
4
|
+
import { d as dist, Q, H, L, y as yn, k as kn, i as isDemo } from './index.module-48f73e70.js';
|
|
5
5
|
import { c as cjs } from './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import { G as GenericTableView } from './GenericTableView-d59d8ab4.js';
|
|
9
|
-
import { u as useRerenderListener, a as useRequestRerender } from './re-render-
|
|
10
|
-
import { u as useChildElements } from './useChildElements-
|
|
9
|
+
import { u as useRerenderListener, a as useRequestRerender } from './re-render-cb4d43dc.js';
|
|
10
|
+
import { u as useChildElements } from './useChildElements-a6b895dd.js';
|
|
11
11
|
import { l as luxon } from './luxon-7600be8d.js';
|
|
12
12
|
import { m as mockRewardData } from './mockRewardData-0eb6e778.js';
|
|
13
|
-
import { g as generateUserError } from './useReferralTable-
|
|
13
|
+
import { g as generateUserError } from './useReferralTable-6e8350db.js';
|
|
14
14
|
import { l as luxonLocale } from './utils-334c1e34.js';
|
|
15
15
|
|
|
16
16
|
const debug = browser("sq:useRewardsTable");
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as Host } from './index-17b4da69.js';
|
|
2
2
|
import { a as commonjsGlobal, u as useMemo, k as useState, f as useEffect, c as createCommonjsModule, n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import './global-
|
|
4
|
-
import { $ as $n, S as Sn, b as setUserIdentity, d as dist, X as Xe, o as setProgramId } from './index.module-
|
|
3
|
+
import './global-62554cef.js';
|
|
4
|
+
import { $ as $n, S as Sn, b as setUserIdentity, d as dist, X as Xe, o as setProgramId } from './index.module-48f73e70.js';
|
|
5
5
|
import './cjs-bdfb4486.js';
|
|
6
6
|
import './mixins-f60a614c.js';
|
|
7
7
|
import { c as createStyleSheet } from './JSS-67b5cff8.js';
|
|
8
8
|
import { G as GenericTableView } from './GenericTableView-d59d8ab4.js';
|
|
9
|
-
import './useChildElements-
|
|
9
|
+
import './useChildElements-a6b895dd.js';
|
|
10
10
|
import { l as luxon } from './luxon-7600be8d.js';
|
|
11
11
|
import './utils-334c1e34.js';
|
|
12
12
|
import './sqm-text-span-view-8d140661.js';
|
|
@@ -17,17 +17,18 @@ import { E as EmailRegistrationView } from './email-registration-view-a89a88bf.j
|
|
|
17
17
|
import { L as LeaderboardRankView } from './sqm-leaderboard-rank-view-10657658.js';
|
|
18
18
|
import { L as LogoutCurrentUserView } from './sqm-logout-current-user-view-2c6122cd.js';
|
|
19
19
|
import { N as NavigationSidebarView } from './sqm-navigation-sidebar-view-0312e073.js';
|
|
20
|
-
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-
|
|
21
|
-
import {
|
|
20
|
+
import { N as NavigationSidebarItemView } from './sqm-navigation-sidebar-item-view-af40eedb.js';
|
|
21
|
+
import { C as CheckboxFieldView } from './sqm-checkbox-field-view-0ef58cb3.js';
|
|
22
|
+
import { P as PortalEmailVerificationView } from './sqm-portal-email-verification-view-460bac1b.js';
|
|
22
23
|
import { P as PortalForgotPasswordView } from './sqm-portal-forgot-password-view-c2ed8fed.js';
|
|
23
|
-
import { P as PortalProfileView } from './sqm-portal-profile-view-
|
|
24
|
-
import './utilities-
|
|
24
|
+
import { P as PortalProfileView } from './sqm-portal-profile-view-4caa9f28.js';
|
|
25
|
+
import './utilities-e8022681.js';
|
|
25
26
|
import { P as PortalRegistrationFormView } from './sqm-portal-registration-form-view-1d3066e1.js';
|
|
26
27
|
import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-79a85e02.js';
|
|
27
28
|
import { P as PortalVerifyEmailView } from './sqm-portal-verify-email-view-d7ea2c56.js';
|
|
28
|
-
import { S as ShareButtonView, L as LeaderboardView, C as CopyTextView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView,
|
|
29
|
+
import { S as ShareButtonView, L as LeaderboardView, C as CopyTextView, B as BigStatView, P as PortalFrameView, E as EditProfileView, u as useShareLink, a as useShareButton, b as useDemoBigStat, c as StatContainerView, d as PortalChangePasswordView, e as PortalLoginView, f as PortalRegisterView, T as TaskCardView, g as ProgressBarView, h as PoweredByImg$1, i as PortalFooterView, H as HeroView, R as ReferralIframeView, N as NameFieldsView, D as DropdownFieldView, I as InputFieldView, j as RewardExchangeView, r as rewardExchangeCustomErrorMsg, k as rewardExchangeLongText, l as rewardExchangeSelected, m as chooseAmountFixed, n as chooseAmountFixedNoDescription, o as chooseAmountVariable, p as chooseAmountVariableNoDescription, q as chooseAmountVariableDisabled, s as chooseAmountVariableUnavailable, t as confirmFixed, v as confirmVariable, w as redemptionError, x as queryError, y as success, z as successVariable, A as loading, F as empty$1, G as rewardExchange, J as CardFeedView, K as CouponCodeView, M as ProgressBar$2, O as autoColorScaleCss, Q as ShadowViewAddon } from './ShadowViewAddon-272f75a5.js';
|
|
29
30
|
import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-6c582684.js';
|
|
30
|
-
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-
|
|
31
|
+
import { O as OtherRegionSlotView, I as InvoiceTableView, T as TaxForm } from './sqm-invoice-table-view-41a14ca6.js';
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -10179,7 +10180,7 @@ const dashboardTemplate = "<sqm-portal-container direction=\"column\" padding=\"
|
|
|
10179
10180
|
|
|
10180
10181
|
const leadSubmitTemplate = "<sqm-referral-iframe></sqm-referral-iframe>\n";
|
|
10181
10182
|
|
|
10182
|
-
const editProfileTemplate = "<sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n></sqm-portal-protected-route>\n<sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n</sqm-portal-container>\n";
|
|
10183
|
+
const editProfileTemplate = "<sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n></sqm-portal-protected-route>\n<sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\n><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-password></sqm-portal-change-password>\n</sqm-portal-container>\n<sqm-portal-container direction=\"column\" gap=\"xxx-large\">\n <sqm-portal-change-marketing></sqm-portal-change-marketing>\n</sqm-portal-container>\n";
|
|
10183
10184
|
|
|
10184
10185
|
const activityTemplate = "<sqm-portal-protected-route\n require-email-verification=\"true\"\n redirect-to=\"/login\"\n redirect-to-unverified=\"/emailVerification\"\n></sqm-portal-protected-route>\n<sqm-portal-container direction=\"column\" padding=\"xxx-large\" gap=\"xxx-large\">\n <sqm-text> <h1>Activity</h1></sqm-text>\n <sqm-stat-container space=\"xxxx-large\"\n ><sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/referralsCount\"\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\n >\n <sqm-big-stat\n flex-reverse=\"true\"\n alignment=\"left\"\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\n >\n </sqm-stat-container>\n <sqm-referral-table>\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\n <sqm-referral-table-date-column\n column-title=\"Referred\"\n date-shown=\"dateReferralStarted\"\n ></sqm-referral-table-date-column> </sqm-referral-table\n></sqm-portal-container>\n";
|
|
10185
10186
|
|
|
@@ -10743,7 +10744,7 @@ const defaultProps$b = {
|
|
|
10743
10744
|
checked: false,
|
|
10744
10745
|
},
|
|
10745
10746
|
content: {
|
|
10746
|
-
checkboxName: "
|
|
10747
|
+
checkboxName: "terms",
|
|
10747
10748
|
checkboxLabel: "By signing up you agree to the {labelLink}",
|
|
10748
10749
|
checkboxLabelLink: "https://example.com",
|
|
10749
10750
|
checkboxLabelLinkText: "Terms and Conditions",
|
|
@@ -10841,7 +10842,7 @@ const CheckboxField = /*#__PURE__*/Object.freeze({
|
|
|
10841
10842
|
TermsAndConditionsLongCustomLabel: TermsAndConditionsLongCustomLabel
|
|
10842
10843
|
});
|
|
10843
10844
|
|
|
10844
|
-
const scenario$k = "@owner:zach\n@author:zach\nFeature: Marketing Emails Checkbox\n\n
|
|
10845
|
+
const scenario$k = "@owner:zach\n@author:zach\nFeature: Marketing Emails Checkbox\n\n A checkbox that is used to opt in for referral program marketing emails.\n\n Background: A user is on the portal registration page\n Given a user is viewing the \"/register\"\n And \"/register\" contains the registration form\n And the registration form has the following fields\n | fields |\n | first name |\n | last name |\n | email |\n | password |\n | Marketing Emails Checkbox |\n\n @motivating\n Scenario: Checkbox is optional by default\n Given the user is filling out the registration form\n And the name fields have valid input\n And the email field has valid input\n And the password field has valid input\n And the checkbox is not checked\n When they try to register\n Then the form is submitted\n And there is no error for the checkbox\n\n Scenario: The form field name is provided by default\n Given the customer has added a marketing emails checkbox to their registration form\n Then the field name is automatically set to \"marketingEmailOptIn\"\n And the name is not configurable";
|
|
10845
10846
|
|
|
10846
10847
|
const MarketingEmailsCheckbox_stories = {
|
|
10847
10848
|
title: "Components/Marketing Emails Checkbox",
|
|
@@ -1,7 +1,7 @@
|
|
|
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 './index.module-
|
|
4
|
-
import { a as useRequestRerender } from './re-render-
|
|
3
|
+
import './index.module-48f73e70.js';
|
|
4
|
+
import { a as useRequestRerender } from './re-render-cb4d43dc.js';
|
|
5
5
|
|
|
6
6
|
const TabView = ({}, children) => {
|
|
7
7
|
return h(Host, null, children);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h, c as Host, r as registerInstance } from './index-17b4da69.js';
|
|
2
2
|
import { u as useMemo, f as useEffect, n as h$1 } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { _ } from './index.module-
|
|
4
|
-
import { u as useRerenderListener } from './re-render-
|
|
5
|
-
import { u as useChildElements } from './useChildElements-
|
|
3
|
+
import { _ } from './index.module-48f73e70.js';
|
|
4
|
+
import { u as useRerenderListener } from './re-render-cb4d43dc.js';
|
|
5
|
+
import { u as useChildElements } from './useChildElements-a6b895dd.js';
|
|
6
6
|
import { g as getProps } from './utils-334c1e34.js';
|
|
7
7
|
|
|
8
8
|
const TabsView = ({ content, placement, }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { k as useState } from './stencil-hooks.module-ac12ca1c.js';
|
|
2
|
-
import { c as mn } from './index.module-
|
|
2
|
+
import { c as mn } from './index.module-48f73e70.js';
|
|
3
3
|
import { j as jsonpointer } from './jsonpointer-388a7082.js';
|
|
4
|
-
import { u as useRegistrationFormState } from './useRegistrationFormState-
|
|
4
|
+
import { u as useRegistrationFormState } from './useRegistrationFormState-de6b208e.js';
|
|
5
5
|
|
|
6
6
|
function useInstantAccessRegistration(props) {
|
|
7
7
|
const cookie = new URLSearchParams(window.location.search);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from './index-17b4da69.js';
|
|
2
2
|
import { b as browser, j as useReducer, f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
|
|
3
|
-
import { d as dist, Q, H, L, y as yn, k as kn } from './index.module-
|
|
4
|
-
import { u as useRerenderListener } from './re-render-
|
|
5
|
-
import { u as useChildElements } from './useChildElements-
|
|
3
|
+
import { d as dist, Q, H, L, y as yn, k as kn } from './index.module-48f73e70.js';
|
|
4
|
+
import { u as useRerenderListener } from './re-render-cb4d43dc.js';
|
|
5
|
+
import { u as useChildElements } from './useChildElements-a6b895dd.js';
|
|
6
6
|
|
|
7
7
|
const debug = browser("sq:useReferralTable");
|
|
8
8
|
const CSS_NAMESPACE = "sqm-referral-table";
|
package/dist/esm/{useRegistrationFormState-9fc1ac80.js → useRegistrationFormState-de6b208e.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { y } from './stencil-hooks.module-ac12ca1c.js';
|
|
2
|
-
import { _ } from './index.module-
|
|
2
|
+
import { _ } from './index.module-48f73e70.js';
|
|
3
3
|
|
|
4
4
|
const REGISTRATION_FORM_STATE_CONTEXT = "sq:registration-form-state";
|
|
5
5
|
function useRegistrationFormState(formState) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { k as useState, f as useEffect } from './stencil-hooks.module-ac12ca1c.js';
|
|
2
|
-
import { u as useCallback } from './index.module-
|
|
2
|
+
import { u as useCallback } from './index.module-48f73e70.js';
|
|
3
3
|
|
|
4
4
|
// import { IntlMessageFormat } from 'intl-messageformat';
|
|
5
5
|
function isMobile(breakPoint) {
|