@saasquatch/mint-components 1.13.5-0 → 1.14.0-0
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-14a02da4.js → AutoColor-3b59126f.js} +1137 -1137
- package/dist/cjs/ErrorView-b2fcf954.js +35 -0
- package/dist/cjs/IndirectTaxDetailsView-409dae6f.js +646 -0
- package/dist/cjs/data-6d96b89c.js +137 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/parseStates-d1effc19.js +16 -0
- package/dist/cjs/{sqm-banking-info-form_17.cjs.entry.js → sqm-banking-info-form_10.cjs.entry.js} +209 -1885
- package/dist/cjs/sqm-big-stat_41.cjs.entry.js +30 -30
- package/dist/cjs/sqm-code-verification.cjs.entry.js +349 -0
- package/dist/cjs/sqm-invoice-table-data-cell_5.cjs.entry.js +84 -0
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +12390 -11094
- package/dist/cjs/sqm-tax-and-cash.cjs.entry.js +1221 -0
- package/dist/cjs/sqm-widget-verification-controller.cjs.entry.js +11 -3
- package/dist/cjs/sqm-widget-verification.cjs.entry.js +17 -6
- package/dist/cjs/utils-8257e7ab.js +105 -0
- package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +78 -78
- package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +37 -3
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification-controller.js +39 -5
- package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +41 -6
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +12 -8
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form-view.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/sqm-indirect-tax-form.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-indirect-tax-form/useIndirectTaxForm.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.js +26 -1
- package/dist/collection/components/tax-and-cash/sqm-payout-details-card/usePayoutDetailsCard.js +2 -2
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +75 -41
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +62 -3
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/useTaxAndCashDashboard.js +3 -3
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form-view.js +5 -4
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.js +49 -11
- package/dist/collection/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.js +3 -3
- package/dist/collection/utils/parseStates.js +12 -0
- package/dist/esm/{ShadowViewAddon-23a6afab.js → AutoColor-d8d7f31d.js} +1141 -1141
- package/dist/esm/ErrorView-48e2b969.js +33 -0
- package/dist/esm/IndirectTaxDetailsView-c321099a.js +639 -0
- package/dist/esm/data-a05c78ae.js +121 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/parseStates-ed75e224.js +14 -0
- package/dist/esm/{sqm-banking-info-form_17.entry.js → sqm-banking-info-form_10.entry.js} +133 -1802
- package/dist/esm/sqm-big-stat_41.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +345 -0
- package/dist/esm/sqm-invoice-table-data-cell_5.entry.js +76 -0
- package/dist/esm/sqm-stencilbook.entry.js +10501 -9205
- package/dist/esm/sqm-tax-and-cash.entry.js +1217 -0
- package/dist/esm/sqm-widget-verification-controller.entry.js +12 -4
- package/dist/esm/sqm-widget-verification.entry.js +17 -6
- package/dist/esm/utils-7c96856c.js +97 -0
- package/dist/esm-es5/AutoColor-d8d7f31d.js +1 -0
- package/dist/esm-es5/ErrorView-48e2b969.js +1 -0
- package/dist/esm-es5/IndirectTaxDetailsView-c321099a.js +1 -0
- package/dist/esm-es5/data-a05c78ae.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/parseStates-ed75e224.js +1 -0
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -0
- package/dist/esm-es5/sqm-big-stat_41.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -0
- package/dist/esm-es5/sqm-invoice-table-data-cell_5.entry.js +1 -0
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tax-and-cash.entry.js +1 -0
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/utils-7c96856c.js +1 -0
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/p-0603a39f.js +1 -0
- package/dist/mint-components/p-0a37a288.system.entry.js +1 -0
- package/dist/mint-components/p-0b8f6a39.entry.js +11 -0
- package/dist/mint-components/p-115dfc03.system.js +1 -0
- package/dist/mint-components/p-13f3a647.js +1 -0
- package/dist/mint-components/p-1a7453c6.system.js +1 -0
- package/dist/mint-components/p-33d79be3.entry.js +93 -0
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/p-3a62a7e2.system.js +1 -0
- package/dist/mint-components/p-4a46897f.system.js +1 -0
- package/dist/mint-components/p-4d11920f.entry.js +1 -0
- package/dist/mint-components/p-5510be1e.system.entry.js +1 -0
- package/dist/mint-components/p-6ef506ba.entry.js +16 -0
- package/dist/mint-components/{p-33ed6f1c.system.entry.js → p-70adcf4f.system.entry.js} +1 -1
- package/dist/mint-components/p-70d3d873.system.entry.js +1 -0
- package/dist/mint-components/p-7e0bf3de.system.entry.js +1 -0
- package/dist/mint-components/p-83acd617.js +1 -0
- package/dist/mint-components/p-84a78d09.entry.js +1 -0
- package/dist/mint-components/{p-01010af0.entry.js → p-84ed9923.entry.js} +5 -5
- package/dist/mint-components/p-889ec1df.system.entry.js +1 -0
- package/dist/mint-components/p-8a784f2a.system.entry.js +1 -0
- package/dist/mint-components/p-93e4a3c3.system.js +1 -0
- package/dist/mint-components/p-98a48fc4.system.entry.js +1 -0
- package/dist/mint-components/p-9acb5038.js +1 -0
- package/dist/mint-components/p-a38ca165.entry.js +9 -0
- package/dist/mint-components/p-c75a3b4a.js +103 -0
- package/dist/mint-components/p-d75c462c.entry.js +1 -0
- package/dist/mint-components/p-ea7f379d.js +394 -0
- package/dist/mint-components/p-f8175201.system.js +1 -0
- package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +6 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification-controller.d.ts +5 -0
- package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +5 -0
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +2 -2
- package/dist/types/components/tax-and-cash/sqm-payout-details-card/sqm-payout-details-card.d.ts +4 -0
- package/dist/types/components/tax-and-cash/sqm-payout-status-alert/usePayoutStatus.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +11 -10
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/useTaxAndCash.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +10 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/small-views/IndirectTaxDetailsView.d.ts +1 -1
- package/dist/types/components/tax-and-cash/sqm-user-info-form/sqm-user-info-form.d.ts +7 -0
- package/dist/types/components/tax-and-cash/sqm-user-info-form/useUserInfoForm.d.ts +1 -1
- package/dist/types/components/tax-and-cash/utils.d.ts +1 -1
- package/dist/types/components.d.ts +96 -89
- package/dist/types/global/android.d.ts +7 -0
- package/dist/types/global/demo.d.ts +2 -0
- package/dist/types/stories/features.d.ts +4 -0
- package/dist/types/stories/templates.d.ts +4 -0
- package/dist/types/utils/parseStates.d.ts +1 -0
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +2 -1
- package/dist/cjs/sqm-invoice-table-view-baded4af.js +0 -2067
- package/dist/esm/sqm-invoice-table-view-af69cd33.js +0 -2050
- package/dist/esm-es5/ShadowViewAddon-23a6afab.js +0 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +0 -1
- package/dist/esm-es5/sqm-invoice-table-view-af69cd33.js +0 -1
- package/dist/mint-components/p-33c96e14.entry.js +0 -16
- package/dist/mint-components/p-38b5f028.system.entry.js +0 -1
- package/dist/mint-components/p-6427e963.entry.js +0 -1
- package/dist/mint-components/p-7e7cbccf.system.js +0 -1
- package/dist/mint-components/p-9320582e.system.js +0 -1
- package/dist/mint-components/p-962f3200.js +0 -1
- package/dist/mint-components/p-9cf80e85.system.entry.js +0 -1
- package/dist/mint-components/p-b93fd99c.system.entry.js +0 -1
- package/dist/mint-components/p-c36506f6.system.entry.js +0 -1
- package/dist/mint-components/p-d3d74266.js +0 -394
- package/dist/mint-components/p-f29eda2f.entry.js +0 -205
- package/dist/mint-components/p-f2cc6a6f.entry.js +0 -9
- /package/dist/collection/components/tax-and-cash/{sqm-tax-and-cash/data.js → data.js} +0 -0
- /package/dist/types/components/tax-and-cash/{sqm-tax-and-cash/data.d.ts → data.d.ts} +0 -0
|
@@ -22,7 +22,7 @@ const sqmPortalLoginView = require('./sqm-portal-login-view-761a4d8e.js');
|
|
|
22
22
|
const usePortalLogin = require('./usePortalLogin-63d896d1.js');
|
|
23
23
|
const AsYouType = require('./AsYouType-6788393a.js');
|
|
24
24
|
const utilities = require('./utilities-78f5e169.js');
|
|
25
|
-
const
|
|
25
|
+
const AutoColor = require('./AutoColor-3b59126f.js');
|
|
26
26
|
require('./sqm-portal-container-view-4f15143a.js');
|
|
27
27
|
const usePayoutStatus = require('./usePayoutStatus-4b5894ef.js');
|
|
28
28
|
|
|
@@ -42,11 +42,11 @@ const BigStat = class {
|
|
|
42
42
|
disconnectedCallback() { }
|
|
43
43
|
render() {
|
|
44
44
|
var _a;
|
|
45
|
-
const { props, label } = index_module.isDemo() ?
|
|
45
|
+
const { props, label } = index_module.isDemo() ? AutoColor.useDemoBigStat(this) : AutoColor.useBigStat(this);
|
|
46
46
|
const host = index_module._();
|
|
47
47
|
const hasLabel = !!((_a = host.innerHTML) === null || _a === void 0 ? void 0 : _a.trim());
|
|
48
48
|
const labelSlot = index.h("slot", { name: "label" }, hasLabel ? index.h("slot", null) : label);
|
|
49
|
-
return index.h(
|
|
49
|
+
return index.h(AutoColor.BigStatView, Object.assign({}, props, { labelSlot: labelSlot }));
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
|
|
@@ -74,7 +74,7 @@ const BrandComponent = class {
|
|
|
74
74
|
function getCss(brandColor) {
|
|
75
75
|
if (brandColor) {
|
|
76
76
|
try {
|
|
77
|
-
return
|
|
77
|
+
return AutoColor.autoColorScaleCss(brandColor);
|
|
78
78
|
}
|
|
79
79
|
catch { }
|
|
80
80
|
}
|
|
@@ -136,7 +136,7 @@ const CardFeed = class {
|
|
|
136
136
|
}
|
|
137
137
|
disconnectedCallback() { }
|
|
138
138
|
render() {
|
|
139
|
-
return (index.h(
|
|
139
|
+
return (index.h(AutoColor.CardFeedView, Object.assign({}, utils.getProps(this)), index.h("slot", null)));
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
|
|
@@ -259,7 +259,7 @@ const CheckboxField = class {
|
|
|
259
259
|
const { states, callbacks } = index_module.isDemo()
|
|
260
260
|
? useCheckboxFieldDemo(this)
|
|
261
261
|
: useCheckboxField(this);
|
|
262
|
-
return (index.h(
|
|
262
|
+
return (index.h(AutoColor.CheckboxFieldView, { states: states, content: content, callbacks: callbacks }));
|
|
263
263
|
}
|
|
264
264
|
};
|
|
265
265
|
function useCheckboxFieldDemo(props) {
|
|
@@ -500,7 +500,7 @@ const CouponCode = class {
|
|
|
500
500
|
const props = index_module.isDemo()
|
|
501
501
|
? useDemoCouponCode(thisProps)
|
|
502
502
|
: useCouponCode(thisProps);
|
|
503
|
-
return index.h(
|
|
503
|
+
return index.h(AutoColor.CouponCodeView, Object.assign({}, props));
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
function useDemoCouponCode(props) {
|
|
@@ -646,7 +646,7 @@ const DropdownField = class {
|
|
|
646
646
|
const { states } = index_module.isDemo()
|
|
647
647
|
? useDropdownFieldDemo(this)
|
|
648
648
|
: useDropdownField();
|
|
649
|
-
return (index.h(
|
|
649
|
+
return (index.h(AutoColor.DropdownFieldView, { states: states, content: content }));
|
|
650
650
|
}
|
|
651
651
|
};
|
|
652
652
|
function useDropdownFieldDemo(props) {
|
|
@@ -836,7 +836,7 @@ const EditProfile = class {
|
|
|
836
836
|
const props = index_module.isDemo()
|
|
837
837
|
? useEditProfileDemo(utils.getProps(this))
|
|
838
838
|
: useEditProfile(utils.getProps(this));
|
|
839
|
-
return index.h(
|
|
839
|
+
return index.h(AutoColor.EditProfileView, Object.assign({}, props));
|
|
840
840
|
}
|
|
841
841
|
};
|
|
842
842
|
function useEditProfileDemo(props) {
|
|
@@ -944,7 +944,7 @@ const Hero = class {
|
|
|
944
944
|
secondaryColumn: index.h("slot", { name: "secondary-column" }),
|
|
945
945
|
},
|
|
946
946
|
};
|
|
947
|
-
return index.h(
|
|
947
|
+
return index.h(AutoColor.HeroView, Object.assign({}, props));
|
|
948
948
|
}
|
|
949
949
|
};
|
|
950
950
|
|
|
@@ -1252,7 +1252,7 @@ const InputField = class {
|
|
|
1252
1252
|
return (index.h(RequiredPropsError, { missingProps: missingProps, heading: "An error occured while loading this form", subheading: "A technical problem prevented this input field from loading. Please contact us with the link to this page.", description: "Values for the following attributes are missing:" }));
|
|
1253
1253
|
}
|
|
1254
1254
|
const { states } = index_module.isDemo() ? useInputFieldDemo(this) : useInputField();
|
|
1255
|
-
return index.h(
|
|
1255
|
+
return index.h(AutoColor.InputFieldView, { states: states, content: content });
|
|
1256
1256
|
}
|
|
1257
1257
|
};
|
|
1258
1258
|
function useInputFieldDemo(props) {
|
|
@@ -1457,7 +1457,7 @@ const Leaderboard = class {
|
|
|
1457
1457
|
this.maxRows = 10;
|
|
1458
1458
|
this.ignored = true;
|
|
1459
1459
|
stencilHooks_module.h$1(this);
|
|
1460
|
-
|
|
1460
|
+
AutoColor.withShadowView(this);
|
|
1461
1461
|
}
|
|
1462
1462
|
disconnectedCallback() { }
|
|
1463
1463
|
render() {
|
|
@@ -1483,7 +1483,7 @@ const Leaderboard = class {
|
|
|
1483
1483
|
const viewprops = index_module.isDemo()
|
|
1484
1484
|
? useLeaderboardDemo(demoProps)
|
|
1485
1485
|
: useLeaderboard(props);
|
|
1486
|
-
return index.h(
|
|
1486
|
+
return index.h(AutoColor.LeaderboardView, Object.assign({}, viewprops));
|
|
1487
1487
|
}
|
|
1488
1488
|
};
|
|
1489
1489
|
function EmptySlot() {
|
|
@@ -1630,7 +1630,7 @@ const MarketingEmailsCheckbox = class {
|
|
|
1630
1630
|
const { states, callbacks } = index_module.isDemo()
|
|
1631
1631
|
? useCheckboxFieldDemo$1(this)
|
|
1632
1632
|
: useCheckboxField(this);
|
|
1633
|
-
return (index.h(
|
|
1633
|
+
return (index.h(AutoColor.CheckboxFieldView, { states: states, content: content, callbacks: callbacks }));
|
|
1634
1634
|
}
|
|
1635
1635
|
};
|
|
1636
1636
|
function useCheckboxFieldDemo$1(props) {
|
|
@@ -1675,7 +1675,7 @@ const NameFields = class {
|
|
|
1675
1675
|
disconnectedCallback() { }
|
|
1676
1676
|
render() {
|
|
1677
1677
|
const { states } = index_module.isDemo() ? useNameFieldsDemo(this) : useNameFields(this);
|
|
1678
|
-
return index.h(
|
|
1678
|
+
return index.h(AutoColor.NameFieldsView, { states: states });
|
|
1679
1679
|
}
|
|
1680
1680
|
};
|
|
1681
1681
|
function useNameFieldsDemo(props) {
|
|
@@ -2279,7 +2279,7 @@ const PortalChangeMarketing = class {
|
|
|
2279
2279
|
const props = index_module.isDemo()
|
|
2280
2280
|
? usePortalProfileDemo(utils.getProps(this))
|
|
2281
2281
|
: usePortalProfile(utils.getProps(this));
|
|
2282
|
-
return index.h(
|
|
2282
|
+
return index.h(AutoColor.ChangeMarktingView, Object.assign({}, props));
|
|
2283
2283
|
}
|
|
2284
2284
|
};
|
|
2285
2285
|
function usePortalProfileDemo(props) {
|
|
@@ -2462,7 +2462,7 @@ const PortalChangePassword = class {
|
|
|
2462
2462
|
const { states, callbacks } = index_module.isDemo()
|
|
2463
2463
|
? usePortalChangePasswordDemo(this)
|
|
2464
2464
|
: usePortalChangePassword(this);
|
|
2465
|
-
return index.h(
|
|
2465
|
+
return index.h(AutoColor.PortalChangePasswordView, { states: states, callbacks: callbacks });
|
|
2466
2466
|
}
|
|
2467
2467
|
};
|
|
2468
2468
|
function usePortalChangePasswordDemo(props) {
|
|
@@ -2554,7 +2554,7 @@ const PortalFooter = class {
|
|
|
2554
2554
|
}
|
|
2555
2555
|
disconnectedCallback() { }
|
|
2556
2556
|
render() {
|
|
2557
|
-
return index.h(
|
|
2557
|
+
return index.h(AutoColor.PortalFooterView, Object.assign({}, utils.getProps(this)));
|
|
2558
2558
|
}
|
|
2559
2559
|
static get assetsDirs() { return ["../../assets"]; }
|
|
2560
2560
|
};
|
|
@@ -2589,7 +2589,7 @@ const PortalFrame = class {
|
|
|
2589
2589
|
const props = index_module.isDemo()
|
|
2590
2590
|
? usePortalFrameDemo(footerContent, headerContent, this)
|
|
2591
2591
|
: usePortalFrame(footerContent, headerContent);
|
|
2592
|
-
return (index.h(
|
|
2592
|
+
return (index.h(AutoColor.PortalFrameView, Object.assign({}, props), index.h("slot", null)));
|
|
2593
2593
|
}
|
|
2594
2594
|
};
|
|
2595
2595
|
function usePortalFrameDemo(footerContent, headerContent, props) {
|
|
@@ -2983,7 +2983,7 @@ const PortalRegister = class {
|
|
|
2983
2983
|
lowercaseErrorText: this.lowercaseErrorText,
|
|
2984
2984
|
hasErrorText: this.hasErrorText,
|
|
2985
2985
|
};
|
|
2986
|
-
return (index.h(
|
|
2986
|
+
return (index.h(AutoColor.PortalRegisterView, { states: states, callbacks: callbacks, content: content, refs: refs }));
|
|
2987
2987
|
}
|
|
2988
2988
|
};
|
|
2989
2989
|
function useRegisterDemo(props) {
|
|
@@ -3363,7 +3363,7 @@ const SqmReferralIframe = class {
|
|
|
3363
3363
|
const { states, data } = index_module.isDemo()
|
|
3364
3364
|
? useReferralIframeDemo(utils.getProps(this))
|
|
3365
3365
|
: useReferralIframe(utils.getProps(this));
|
|
3366
|
-
return (index.h(index.Host, { style: { display: "contents" } }, index.h(
|
|
3366
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h(AutoColor.ReferralIframeView, { data: data, states: states })));
|
|
3367
3367
|
}
|
|
3368
3368
|
};
|
|
3369
3369
|
function useReferralIframeDemo(props) {
|
|
@@ -4327,7 +4327,7 @@ const SqmRewardExchangeList = class {
|
|
|
4327
4327
|
const { states, data, callbacks, refs } = index_module.isDemo()
|
|
4328
4328
|
? useRewardExchangeListDemo(props)
|
|
4329
4329
|
: useRewardExchangeList(props);
|
|
4330
|
-
return (index.h(index.Host, { style: { display: "contents" } }, index.h(
|
|
4330
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h(AutoColor.RewardExchangeView, { states: states, data: data, callbacks: callbacks, refs: refs })));
|
|
4331
4331
|
}
|
|
4332
4332
|
static get assetsDirs() { return ["assets"]; }
|
|
4333
4333
|
};
|
|
@@ -4353,7 +4353,7 @@ function useRewardExchangeListDemo(props) {
|
|
|
4353
4353
|
},
|
|
4354
4354
|
data: {
|
|
4355
4355
|
shareCode: "SHARECODE123",
|
|
4356
|
-
exchangeList:
|
|
4356
|
+
exchangeList: AutoColor.demoRewardExchange.data.exchangeList,
|
|
4357
4357
|
},
|
|
4358
4358
|
callbacks: {
|
|
4359
4359
|
exchangeReward: () => { },
|
|
@@ -4506,8 +4506,8 @@ const ShareButton = class {
|
|
|
4506
4506
|
const thisProps = utils.getProps(this);
|
|
4507
4507
|
const props = index_module.isDemo()
|
|
4508
4508
|
? useDemoShareButton(thisProps)
|
|
4509
|
-
:
|
|
4510
|
-
return (index.h(
|
|
4509
|
+
: AutoColor.useShareButton(thisProps);
|
|
4510
|
+
return (index.h(AutoColor.ShareButtonView, Object.assign({}, props), index.h("slot", null)));
|
|
4511
4511
|
}
|
|
4512
4512
|
};
|
|
4513
4513
|
function useDemoShareButton(props) {
|
|
@@ -4682,7 +4682,7 @@ const ShareLink = class {
|
|
|
4682
4682
|
const thisProps = utils.getProps(this);
|
|
4683
4683
|
const props = index_module.isDemo()
|
|
4684
4684
|
? useDemoShareLink(thisProps)
|
|
4685
|
-
:
|
|
4685
|
+
: AutoColor.useShareLink(thisProps);
|
|
4686
4686
|
return index.h(copyTextView.CopyTextView, Object.assign({}, props));
|
|
4687
4687
|
}
|
|
4688
4688
|
};
|
|
@@ -4729,7 +4729,7 @@ const StatContainer = class {
|
|
|
4729
4729
|
}
|
|
4730
4730
|
disconnectedCallback() { }
|
|
4731
4731
|
render() {
|
|
4732
|
-
return (index.h(
|
|
4732
|
+
return (index.h(AutoColor.StatContainerView, Object.assign({}, utils.getProps(this)), index.h("slot", null)));
|
|
4733
4733
|
}
|
|
4734
4734
|
};
|
|
4735
4735
|
|
|
@@ -4888,13 +4888,13 @@ const TaskCard = class {
|
|
|
4888
4888
|
disconnectedCallback() { }
|
|
4889
4889
|
render() {
|
|
4890
4890
|
const { props } = index_module.isDemo()
|
|
4891
|
-
?
|
|
4892
|
-
:
|
|
4891
|
+
? AutoColor.useDemoBigStat(this)
|
|
4892
|
+
: AutoColor.useBigStat({ ...utils.getProps(this), programId: this.programId });
|
|
4893
4893
|
const { value, loading } = props;
|
|
4894
4894
|
const { states, callbacks } = index_module.isDemo()
|
|
4895
4895
|
? useTaskCardDemo(this)
|
|
4896
4896
|
: useTaskCard(this);
|
|
4897
|
-
return (index.h(
|
|
4897
|
+
return (index.h(AutoColor.TaskCardView, { callbacks: callbacks, states: {
|
|
4898
4898
|
loading,
|
|
4899
4899
|
loadingEvent: states.loadingEvent,
|
|
4900
4900
|
progress: value,
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-a29c60ef.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
|
|
7
|
+
const global = require('./global-e31dc4f5.js');
|
|
8
|
+
const index_module = require('./index.module-ee84433d.js');
|
|
9
|
+
const cjs = require('./cjs-1066ec21.js');
|
|
10
|
+
const utils = require('./utils-6847bc06.js');
|
|
11
|
+
const JSS = require('./JSS-8503a151.js');
|
|
12
|
+
const mixins = require('./mixins-f7e0377a.js');
|
|
13
|
+
const sqmTextSpanView = require('./sqm-text-span-view-0aa82125.js');
|
|
14
|
+
const parseStates = require('./parseStates-d1effc19.js');
|
|
15
|
+
const keys = require('./keys-cff24974.js');
|
|
16
|
+
const useVerificationEmail = require('./useVerificationEmail-95a82767.js');
|
|
17
|
+
|
|
18
|
+
const style = {
|
|
19
|
+
Wrapper: {
|
|
20
|
+
display: "flex",
|
|
21
|
+
flexDirection: "column",
|
|
22
|
+
gap: "var(--sl-spacing-medium)",
|
|
23
|
+
maxWidth: "550px",
|
|
24
|
+
},
|
|
25
|
+
HeaderContainer: {
|
|
26
|
+
display: "flex",
|
|
27
|
+
flexDirection: "column",
|
|
28
|
+
},
|
|
29
|
+
InputsContainer: {
|
|
30
|
+
display: "flex",
|
|
31
|
+
gap: "var(--sl-spacing-medium)",
|
|
32
|
+
position: "relative",
|
|
33
|
+
flexDirection: "column",
|
|
34
|
+
},
|
|
35
|
+
CodeInputContainer: {
|
|
36
|
+
display: "flex",
|
|
37
|
+
gap: "var(--sl-spacing-medium)",
|
|
38
|
+
},
|
|
39
|
+
CodeInput: {
|
|
40
|
+
maxWidth: "40px",
|
|
41
|
+
"&::part(input)": {
|
|
42
|
+
margin: "0",
|
|
43
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
44
|
+
fontSize: "var(--sl-font-size-large)",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
CodeInputError: {
|
|
48
|
+
...mixins.ErrorStyles,
|
|
49
|
+
maxWidth: "40px",
|
|
50
|
+
"&::part(input)": {
|
|
51
|
+
margin: "0",
|
|
52
|
+
padding: "0 var(--sl-input-spacing-small)",
|
|
53
|
+
fontSize: "var(--sl-font-size-large)",
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
ErrorText: {
|
|
57
|
+
color: "var(--sl-color-danger-500)",
|
|
58
|
+
fontSize: "var(--sl-font-size-small)",
|
|
59
|
+
margin: "0",
|
|
60
|
+
},
|
|
61
|
+
ContinueButton: {
|
|
62
|
+
width: "100%",
|
|
63
|
+
maxWidth: "100px",
|
|
64
|
+
},
|
|
65
|
+
FooterContainer: {
|
|
66
|
+
display: "flex",
|
|
67
|
+
flexDirection: "column",
|
|
68
|
+
},
|
|
69
|
+
SkeletonOne: {
|
|
70
|
+
width: "50%",
|
|
71
|
+
height: "16px",
|
|
72
|
+
},
|
|
73
|
+
SkeletonTwo: {
|
|
74
|
+
width: "30%",
|
|
75
|
+
height: "34px",
|
|
76
|
+
},
|
|
77
|
+
SkeletonThree: {
|
|
78
|
+
width: "15%",
|
|
79
|
+
height: "24px",
|
|
80
|
+
},
|
|
81
|
+
};
|
|
82
|
+
const vanillaStyle = `
|
|
83
|
+
:host {
|
|
84
|
+
display: block;
|
|
85
|
+
}
|
|
86
|
+
:host([hidden]): {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
`;
|
|
92
|
+
const sheet = JSS.createStyleSheet(style);
|
|
93
|
+
const styleString = sheet.toString();
|
|
94
|
+
function WidgetCodeVerificationView(props) {
|
|
95
|
+
const { states, refs, callbacks, text } = props;
|
|
96
|
+
const resendCodeText = global.intl.formatMessage({
|
|
97
|
+
id: "resendCodeText",
|
|
98
|
+
defaultMessage: text.resendCodeText,
|
|
99
|
+
}, {
|
|
100
|
+
resendCodeLink: (index.h("a", { href: "", style: { textDecoration: "none" }, onClick: (e) => {
|
|
101
|
+
e.preventDefault();
|
|
102
|
+
callbacks.resendEmail();
|
|
103
|
+
} }, text.resendCodeLabel)),
|
|
104
|
+
});
|
|
105
|
+
const codeResentSuccessfully = global.intl.formatMessage({
|
|
106
|
+
id: "codeResentSuccessfully",
|
|
107
|
+
defaultMessage: text.codeResentSuccessfullyText,
|
|
108
|
+
}, {
|
|
109
|
+
email: states.email,
|
|
110
|
+
});
|
|
111
|
+
const inputClass = states.verifyFailed
|
|
112
|
+
? sheet.classes.CodeInputError
|
|
113
|
+
: sheet.classes.CodeInput;
|
|
114
|
+
return (index.h("div", { part: "sqm-base" },
|
|
115
|
+
index.h("style", { type: "text/css" },
|
|
116
|
+
vanillaStyle,
|
|
117
|
+
styleString),
|
|
118
|
+
index.h("div", { class: sheet.classes.Wrapper },
|
|
119
|
+
index.h("div", { class: sheet.classes.HeaderContainer },
|
|
120
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, global.intl.formatMessage({
|
|
121
|
+
id: `emailHeaderText`,
|
|
122
|
+
defaultMessage: states.verifyFailed
|
|
123
|
+
? text.reverifyCodeHeaderText
|
|
124
|
+
: text.verifyCodeHeaderText,
|
|
125
|
+
}, { email: states.email }))),
|
|
126
|
+
states.emailResent && (index.h("sqm-form-message", { type: "success", exportparts: "successalert-icon" },
|
|
127
|
+
index.h("b", null, codeResentSuccessfully))),
|
|
128
|
+
index.h("div", { class: sheet.classes.InputsContainer },
|
|
129
|
+
index.h("div", { ref: refs.codeWrapperRef, class: sheet.classes.CodeInputContainer },
|
|
130
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
131
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
132
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
133
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
134
|
+
index.h("sl-input", { class: inputClass, name: "code" }),
|
|
135
|
+
index.h("sl-input", { class: inputClass, name: "code" })),
|
|
136
|
+
states.verifyFailed && (index.h("p", { class: sheet.classes.ErrorText }, text.invalidCodeText)),
|
|
137
|
+
index.h("sl-button", { class: sheet.classes.ContinueButton, onClick: callbacks.submitCode, disabled: states.loading || states.initialiseLoading, loading: states.loading || states.initialiseLoading, exportparts: "base: primarybutton-base", type: "primary" }, text.verifyText)),
|
|
138
|
+
index.h("div", { class: sheet.classes.FooterContainer },
|
|
139
|
+
index.h(sqmTextSpanView.TextSpanView, { type: "p" }, resendCodeText)))));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const VerifyEmailWithCodeMutation = index_module.dist.gql `
|
|
143
|
+
mutation submitImpactPublisherEmail2FACode(
|
|
144
|
+
$user: UserIdInput!
|
|
145
|
+
$code: String!
|
|
146
|
+
) {
|
|
147
|
+
submitImpactPublisherEmail2FACode(user: $user, code: $code) {
|
|
148
|
+
verifiedEmail
|
|
149
|
+
accessKey
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
`;
|
|
153
|
+
function useWidgetCodeVerification(props) {
|
|
154
|
+
const host = stencilHooks_module.l();
|
|
155
|
+
const [_, setShowCode] = index_module.Pn(keys.SHOW_CODE_NAMESPACE);
|
|
156
|
+
const email = index_module.Fn(keys.VERIFICATION_EMAIL_NAMESPACE);
|
|
157
|
+
const [emailSent, setEmailSent] = stencilHooks_module.useState(false);
|
|
158
|
+
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
159
|
+
const [codeRef, setCodeRef] = stencilHooks_module.useState(null);
|
|
160
|
+
const [validationError, setValidationError] = stencilHooks_module.useState(false);
|
|
161
|
+
const [emailError, setEmailError] = stencilHooks_module.useState(false);
|
|
162
|
+
const { initialized, verificationEmail, send: [sendEmail, { loading: sendLoading, errors: sendErrors }], verify: [verifyEmail, { loading: verifyLoading, errors: verifyErrors }], } = useVerificationEmail.useVerificationEmail();
|
|
163
|
+
stencilHooks_module.useEffect(() => {
|
|
164
|
+
if (!codeRef)
|
|
165
|
+
return;
|
|
166
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
167
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
168
|
+
codeElements.forEach((element, idx) => {
|
|
169
|
+
element.addEventListener("focus", (e) => {
|
|
170
|
+
e.target.select();
|
|
171
|
+
});
|
|
172
|
+
element.addEventListener("keydown", (e) => {
|
|
173
|
+
if (e.key === "Backspace" && e.target.value === "") {
|
|
174
|
+
codeElements[Math.max(0, idx - 1)].focus();
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
element.addEventListener("input", (e) => {
|
|
178
|
+
const input = e.data;
|
|
179
|
+
if (!input)
|
|
180
|
+
return;
|
|
181
|
+
if (idx === codeElements.length - 1) {
|
|
182
|
+
e.target.value = input.slice(0, 1);
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
if (input.length > 1) {
|
|
186
|
+
const rest = input.slice(1);
|
|
187
|
+
e.target.value = input.slice(0, 1);
|
|
188
|
+
codeElements[idx + 1].dispatchEvent(new InputEvent("input", {
|
|
189
|
+
inputType: "insertFromPaste",
|
|
190
|
+
data: rest,
|
|
191
|
+
}));
|
|
192
|
+
}
|
|
193
|
+
codeElements[idx + 1].focus();
|
|
194
|
+
});
|
|
195
|
+
});
|
|
196
|
+
}, [codeRef]);
|
|
197
|
+
const reset = () => {
|
|
198
|
+
setShowCode(false);
|
|
199
|
+
setValidationError(false);
|
|
200
|
+
};
|
|
201
|
+
const resendEmail = async () => {
|
|
202
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
203
|
+
if (!initialized)
|
|
204
|
+
return;
|
|
205
|
+
const result = await sendEmail();
|
|
206
|
+
if (!result) {
|
|
207
|
+
setEmailError(true);
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
if (emailSent)
|
|
211
|
+
setEmailResent(true);
|
|
212
|
+
setEmailSent(true);
|
|
213
|
+
};
|
|
214
|
+
const submitCode = async () => {
|
|
215
|
+
const slInputs = codeRef.querySelectorAll("sl-input");
|
|
216
|
+
const codeElements = Array.from(slInputs).map((node) => node.shadowRoot.querySelector(`input[name="code"]`));
|
|
217
|
+
if (codeElements.find((el) => !el.value)) {
|
|
218
|
+
setValidationError(true);
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
let code = "";
|
|
222
|
+
codeElements.forEach((element) => {
|
|
223
|
+
code = `${code}${element.value}`;
|
|
224
|
+
});
|
|
225
|
+
// UI should only allow this to be called if initialized, but checking just in case
|
|
226
|
+
if (!initialized)
|
|
227
|
+
return;
|
|
228
|
+
setValidationError(false);
|
|
229
|
+
const res = await verifyEmail(code);
|
|
230
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
231
|
+
props.onVerification(res.accessKey);
|
|
232
|
+
reset();
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
setValidationError(true);
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
stencilHooks_module.useEffect(() => {
|
|
239
|
+
// Wait for mutations to be determined from user lookup
|
|
240
|
+
if (!initialized)
|
|
241
|
+
return;
|
|
242
|
+
// email should already exist if user has completed email-verification
|
|
243
|
+
if (!email)
|
|
244
|
+
resendEmail();
|
|
245
|
+
else
|
|
246
|
+
setEmailSent(true);
|
|
247
|
+
}, [initialized]);
|
|
248
|
+
return {
|
|
249
|
+
refs: {
|
|
250
|
+
codeWrapperRef: setCodeRef,
|
|
251
|
+
},
|
|
252
|
+
states: {
|
|
253
|
+
email: verificationEmail,
|
|
254
|
+
emailResent,
|
|
255
|
+
resendError: sendErrors || verifyErrors,
|
|
256
|
+
initialiseLoading: !initialized,
|
|
257
|
+
loading: sendLoading || verifyLoading,
|
|
258
|
+
verifyFailed: !!validationError,
|
|
259
|
+
},
|
|
260
|
+
callbacks: {
|
|
261
|
+
resendEmail,
|
|
262
|
+
submitCode,
|
|
263
|
+
},
|
|
264
|
+
text: props.getTextProps(),
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
const WidgetCodeVerification = class {
|
|
269
|
+
constructor(hostRef) {
|
|
270
|
+
index.registerInstance(this, hostRef);
|
|
271
|
+
/**
|
|
272
|
+
* @uiName Verify code widget header text
|
|
273
|
+
*/
|
|
274
|
+
this.verifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
275
|
+
/**
|
|
276
|
+
* @uiName Reverify code widget header text
|
|
277
|
+
*/
|
|
278
|
+
this.reverifyCodeHeaderText = "Enter the code sent to {email} from our referral provider, impact.com.";
|
|
279
|
+
/**
|
|
280
|
+
* Text displayed under verify button
|
|
281
|
+
* @uiName Resend code text
|
|
282
|
+
*/
|
|
283
|
+
this.resendCodeText = "Didn't receive your code? {resendCodeLink}";
|
|
284
|
+
/**
|
|
285
|
+
* The link that appears in the resend code link
|
|
286
|
+
* @uiName Resend code label
|
|
287
|
+
*/
|
|
288
|
+
this.resendCodeLabel = "Resend code";
|
|
289
|
+
/**
|
|
290
|
+
* Link text displayed under verify button
|
|
291
|
+
* @uiName Resend code text
|
|
292
|
+
*/
|
|
293
|
+
this.codeResentSuccessfullyText = "Another code has been sent to {email}";
|
|
294
|
+
/**
|
|
295
|
+
* Error text displayed under verification input
|
|
296
|
+
* @uiName Invalid code text
|
|
297
|
+
*/
|
|
298
|
+
this.invalidCodeText = "Please check your code and try again. If you’re still having trouble, try resending your code.";
|
|
299
|
+
/**
|
|
300
|
+
* @uiName Verify code button text
|
|
301
|
+
*/
|
|
302
|
+
this.verifyText = "Verify";
|
|
303
|
+
/**
|
|
304
|
+
* Displayed when the email verification fails due to a network error. The participant can try refreshing the page.
|
|
305
|
+
* @uiName Network error message
|
|
306
|
+
*/
|
|
307
|
+
this.networkErrorMessage = "An error occurred while verifying your email. Please refresh the page and try again.";
|
|
308
|
+
/**
|
|
309
|
+
* @parentState {"parent": "sqm-widget-verification", "title": "Code Step" }
|
|
310
|
+
* @componentState { "title": "Verification Failed", "props": { "states": { "verifyFailed": true } } }
|
|
311
|
+
* @componentState { "title": "Loading", "props": { "states": { "loading": true } } }
|
|
312
|
+
*/
|
|
313
|
+
this.stateController = "{}";
|
|
314
|
+
stencilHooks_module.h$1(this);
|
|
315
|
+
}
|
|
316
|
+
disconnectedCallback() { }
|
|
317
|
+
getTextProps() {
|
|
318
|
+
return utils.getProps(this);
|
|
319
|
+
}
|
|
320
|
+
render() {
|
|
321
|
+
const props = index_module.isDemo()
|
|
322
|
+
? useDemoWidgetCodeVerification(this)
|
|
323
|
+
: useWidgetCodeVerification(this);
|
|
324
|
+
return index.h(WidgetCodeVerificationView, Object.assign({}, props));
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
function useDemoWidgetCodeVerification(props) {
|
|
328
|
+
const [emailResent, setEmailResent] = stencilHooks_module.useState(false);
|
|
329
|
+
const setVerifiedContext = index_module.En(keys.VERIFICATION_PARENT_NAMESPACE);
|
|
330
|
+
return cjs.cjs({
|
|
331
|
+
states: {
|
|
332
|
+
initialiseLoading: false,
|
|
333
|
+
loading: false,
|
|
334
|
+
email: "test@example.com",
|
|
335
|
+
emailResent,
|
|
336
|
+
verifyFailed: false,
|
|
337
|
+
},
|
|
338
|
+
refs: {
|
|
339
|
+
codeWrapperRef: () => { },
|
|
340
|
+
},
|
|
341
|
+
callbacks: {
|
|
342
|
+
resendEmail: async () => setEmailResent(true),
|
|
343
|
+
submitCode: async () => setVerifiedContext(true),
|
|
344
|
+
},
|
|
345
|
+
text: props.getTextProps(),
|
|
346
|
+
}, props.demoData || parseStates.parseStates(props.stateController) || {}, { arrayMerge: (_, a) => a });
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
exports.sqm_code_verification = WidgetCodeVerification;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-a29c60ef.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-3a336b0f.js');
|
|
7
|
+
const utils = require('./utils-6847bc06.js');
|
|
8
|
+
const luxon = require('./luxon-2926d85f.js');
|
|
9
|
+
|
|
10
|
+
const InvoiceTableDataCell = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.ignored = true;
|
|
14
|
+
stencilHooks_module.h$1(this);
|
|
15
|
+
}
|
|
16
|
+
disconnectedCallback() { }
|
|
17
|
+
render() {
|
|
18
|
+
return this.data;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const RewardTableDateCell = class {
|
|
23
|
+
constructor(hostRef) {
|
|
24
|
+
index.registerInstance(this, hostRef);
|
|
25
|
+
this.ignored = true;
|
|
26
|
+
this.locale = "en";
|
|
27
|
+
stencilHooks_module.h$1(this);
|
|
28
|
+
}
|
|
29
|
+
disconnectedCallback() { }
|
|
30
|
+
render() {
|
|
31
|
+
var _a, _b;
|
|
32
|
+
const date = !this.date
|
|
33
|
+
? "-"
|
|
34
|
+
: (_b = (_a = luxon.luxon.DateTime.fromMillis(this.date)) === null || _a === void 0 ? void 0 : _a.setLocale(utils.luxonLocale(this.locale))) === null || _b === void 0 ? void 0 : _b.toLocaleString(luxon.luxon.DateTime.DATE_MED);
|
|
35
|
+
return date;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const InvoiceTableDownloadCell = class {
|
|
40
|
+
constructor(hostRef) {
|
|
41
|
+
index.registerInstance(this, hostRef);
|
|
42
|
+
this.ignored = true;
|
|
43
|
+
stencilHooks_module.h$1(this);
|
|
44
|
+
}
|
|
45
|
+
disconnectedCallback() { }
|
|
46
|
+
render() {
|
|
47
|
+
const vanillaStyle = `svg:hover, svg:hover * {
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
}`;
|
|
50
|
+
return (index.h(index.Host, null, index.h("style", null, vanillaStyle), !!this.downloadUrl && (index.h("a", { href: this.downloadUrl, target: "_blank" }, index.h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { d: "M0.625 12.4375C0.79076 12.4375 0.949732 12.5033 1.06694 12.6206C1.18415 12.7378 1.25 12.8967 1.25 13.0625V16.1875C1.25 16.519 1.3817 16.837 1.61612 17.0714C1.85054 17.3058 2.16848 17.4375 2.5 17.4375H17.5C17.8315 17.4375 18.1495 17.3058 18.3839 17.0714C18.6183 16.837 18.75 16.519 18.75 16.1875V13.0625C18.75 12.8967 18.8158 12.7378 18.9331 12.6206C19.0503 12.5033 19.2092 12.4375 19.375 12.4375C19.5408 12.4375 19.6997 12.5033 19.8169 12.6206C19.9342 12.7378 20 12.8967 20 13.0625V16.1875C20 16.8505 19.7366 17.4864 19.2678 17.9553C18.7989 18.4241 18.163 18.6875 17.5 18.6875H2.5C1.83696 18.6875 1.20107 18.4241 0.732233 17.9553C0.263392 17.4864 0 16.8505 0 16.1875V13.0625C0 12.8967 0.065848 12.7378 0.183058 12.6206C0.300269 12.5033 0.45924 12.4375 0.625 12.4375Z", fill: "#717179" }), index.h("path", { d: "M9.5575 14.88C9.61556 14.9382 9.68453 14.9844 9.76046 15.0159C9.83639 15.0474 9.91779 15.0636 10 15.0636C10.0822 15.0636 10.1636 15.0474 10.2395 15.0159C10.3155 14.9844 10.3844 14.9382 10.4425 14.88L14.1925 11.13C14.3099 11.0126 14.3758 10.8535 14.3758 10.6875C14.3758 10.5215 14.3099 10.3624 14.1925 10.245C14.0751 10.1276 13.916 10.0617 13.75 10.0617C13.584 10.0617 13.4249 10.1276 13.3075 10.245L10.625 12.9288V1.9375C10.625 1.77174 10.5592 1.61277 10.4419 1.49556C10.3247 1.37835 10.1658 1.3125 10 1.3125C9.83424 1.3125 9.67527 1.37835 9.55806 1.49556C9.44085 1.61277 9.375 1.77174 9.375 1.9375V12.9288L6.6925 10.245C6.57514 10.1276 6.41597 10.0617 6.25 10.0617C6.08403 10.0617 5.92486 10.1276 5.8075 10.245C5.69014 10.3624 5.62421 10.5215 5.62421 10.6875C5.62421 10.8535 5.69014 11.0126 5.8075 11.13L9.5575 14.88Z", fill: "#717179" }))))));
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const TableCell = class {
|
|
55
|
+
constructor(hostRef) {
|
|
56
|
+
index.registerInstance(this, hostRef);
|
|
57
|
+
/** @uiName Column span */
|
|
58
|
+
this.colspan = 1;
|
|
59
|
+
/** @uiName Padding */
|
|
60
|
+
this.padding = "15px 10px";
|
|
61
|
+
}
|
|
62
|
+
render() {
|
|
63
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h("td", { colSpan: this.colspan, style: { padding: this.padding } }, index.h("slot", null))));
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
const TableRow = class {
|
|
68
|
+
constructor(hostRef) {
|
|
69
|
+
index.registerInstance(this, hostRef);
|
|
70
|
+
/**
|
|
71
|
+
* @uiName Border
|
|
72
|
+
*/
|
|
73
|
+
this.border = "1px solid #EAEAEA";
|
|
74
|
+
}
|
|
75
|
+
render() {
|
|
76
|
+
return (index.h(index.Host, { style: { display: "contents" } }, index.h("tr", { style: { border: this.border } }, index.h("slot", null))));
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
exports.sqm_invoice_table_data_cell = InvoiceTableDataCell;
|
|
81
|
+
exports.sqm_invoice_table_date_cell = RewardTableDateCell;
|
|
82
|
+
exports.sqm_invoice_table_download_cell = InvoiceTableDownloadCell;
|
|
83
|
+
exports.sqm_table_cell = TableCell;
|
|
84
|
+
exports.sqm_table_row = TableRow;
|