@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
|
@@ -2815,75 +2815,6 @@ function NameFieldsView(props) {
|
|
|
2815
2815
|
}
|
|
2816
2816
|
|
|
2817
2817
|
const style$a = {
|
|
2818
|
-
ErrorStyle: {
|
|
2819
|
-
"&::part(control)": {
|
|
2820
|
-
background: "var(--sl-color-danger-10)",
|
|
2821
|
-
borderColor: "var(--sl-color-danger-500)",
|
|
2822
|
-
outline: "var(--sl-color-danger-500)",
|
|
2823
|
-
},
|
|
2824
|
-
"&:host": {
|
|
2825
|
-
"--focus-ring": "0 0 0 var(--sl-focus-ring-width) red !important",
|
|
2826
|
-
},
|
|
2827
|
-
},
|
|
2828
|
-
ErrorMessageStyle: {
|
|
2829
|
-
margin: 0,
|
|
2830
|
-
marginTop: "5px",
|
|
2831
|
-
color: "var(--sl-color-danger-500)",
|
|
2832
|
-
fontSize: "var(--sl-input-help-text-font-size-medium)",
|
|
2833
|
-
fontFamily: "var(--sl-font-sans)",
|
|
2834
|
-
fontWeight: "var(--sl-font-weight-normal)",
|
|
2835
|
-
},
|
|
2836
|
-
FieldContainer: {
|
|
2837
|
-
"margin-bottom": "var(--sl-spacing-large)",
|
|
2838
|
-
},
|
|
2839
|
-
};
|
|
2840
|
-
const vanillaStyle$6 = `
|
|
2841
|
-
:host {
|
|
2842
|
-
margin: 0 auto;
|
|
2843
|
-
width: 100%;
|
|
2844
|
-
display: block;
|
|
2845
|
-
}
|
|
2846
|
-
sl-checkbox::part(label){
|
|
2847
|
-
font-size: var(--sl-input-label-font-size-small);
|
|
2848
|
-
font-weight: var(--sl-font-weight-normal);
|
|
2849
|
-
line-height: 20px;
|
|
2850
|
-
}
|
|
2851
|
-
sl-checkbox::part(base){
|
|
2852
|
-
align-items: start;
|
|
2853
|
-
}
|
|
2854
|
-
`;
|
|
2855
|
-
JSS.jss.setup(JSS.create());
|
|
2856
|
-
const sheet$a = JSS.jss.createStyleSheet(style$a);
|
|
2857
|
-
const styleString$a = sheet$a.toString();
|
|
2858
|
-
function CheckboxFieldView(props) {
|
|
2859
|
-
var _a, _b, _c;
|
|
2860
|
-
const { states, content, callbacks } = props;
|
|
2861
|
-
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2862
|
-
return (index.h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
|
|
2863
|
-
index.h("style", { type: "text/css" },
|
|
2864
|
-
vanillaStyle$6,
|
|
2865
|
-
styleString$a),
|
|
2866
|
-
index.h("sl-checkbox", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.checkboxName}`, checked: states.checked, "onSl-change": (e) => {
|
|
2867
|
-
e.target.value = e.target.checked;
|
|
2868
|
-
callbacks.setChecked(e.target.value);
|
|
2869
|
-
} }, (!content.checkboxOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName])
|
|
2870
|
-
? {
|
|
2871
|
-
class: sheet$a.classes.ErrorStyle,
|
|
2872
|
-
}
|
|
2873
|
-
: [])),
|
|
2874
|
-
global.intl.formatMessage({
|
|
2875
|
-
id: content.checkboxName + "-message",
|
|
2876
|
-
defaultMessage: content.checkboxLabel,
|
|
2877
|
-
}, {
|
|
2878
|
-
labelLink: (index.h("a", { href: content.checkboxLabelLink, target: "_blank" }, content.checkboxLabelLinkText || content.checkboxLabelLink)),
|
|
2879
|
-
}),
|
|
2880
|
-
!states.checked && (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.checkboxName]) && (index.h("p", { class: sheet$a.classes.ErrorMessageStyle }, global.intl.formatMessage({
|
|
2881
|
-
id: `errorMessage-${content.checkboxName}`,
|
|
2882
|
-
defaultMessage: content.errorMessage,
|
|
2883
|
-
}))))));
|
|
2884
|
-
}
|
|
2885
|
-
|
|
2886
|
-
const style$b = {
|
|
2887
2818
|
ErrorStyle: {
|
|
2888
2819
|
"--sl-input-border-color": "var(--sl-color-danger-500)",
|
|
2889
2820
|
"--sl-input-background-color": "var(--sl-color-danger-10)",
|
|
@@ -2899,7 +2830,7 @@ const style$b = {
|
|
|
2899
2830
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2900
2831
|
},
|
|
2901
2832
|
};
|
|
2902
|
-
const vanillaStyle$
|
|
2833
|
+
const vanillaStyle$6 = `
|
|
2903
2834
|
:host {
|
|
2904
2835
|
margin: 0 auto;
|
|
2905
2836
|
width: 100%;
|
|
@@ -2911,36 +2842,36 @@ sl-select::part(label){
|
|
|
2911
2842
|
}
|
|
2912
2843
|
`;
|
|
2913
2844
|
JSS.jss.setup(JSS.create());
|
|
2914
|
-
const sheet$
|
|
2915
|
-
const styleString$
|
|
2845
|
+
const sheet$a = JSS.jss.createStyleSheet(style$a);
|
|
2846
|
+
const styleString$a = sheet$a.toString();
|
|
2916
2847
|
function DropdownFieldView(props) {
|
|
2917
2848
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2918
2849
|
const { states, content } = props;
|
|
2919
2850
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2920
|
-
return (index.h("div", { class: sheet$
|
|
2851
|
+
return (index.h("div", { class: sheet$a.classes.FieldContainer, part: "sqm-base" },
|
|
2921
2852
|
index.h("style", { type: "text/css" },
|
|
2922
|
-
vanillaStyle$
|
|
2923
|
-
styleString$
|
|
2853
|
+
vanillaStyle$6,
|
|
2854
|
+
styleString$a),
|
|
2924
2855
|
index.h("sl-select", Object.assign({ exportparts: "label: input-label, base: input-base", label: content.dropdownLabel, name: `/${content.dropdownName}` }, (!content.dropdownOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.dropdownName]) ? {
|
|
2925
2856
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.dropdownName],
|
|
2926
2857
|
}
|
|
2927
2858
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) ? {
|
|
2928
|
-
class: sheet$
|
|
2859
|
+
class: sheet$a.classes.ErrorStyle,
|
|
2929
2860
|
}
|
|
2930
2861
|
: [])), content.selectOptions),
|
|
2931
|
-
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$
|
|
2862
|
+
(validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.dropdownName]) && (index.h("p", { class: sheet$a.classes.ErrorMessageStyle }, global.intl.formatMessage({
|
|
2932
2863
|
id: `errorMessage-${content.dropdownName}`,
|
|
2933
2864
|
defaultMessage: content.errorMessage,
|
|
2934
2865
|
})))));
|
|
2935
2866
|
}
|
|
2936
2867
|
|
|
2937
|
-
const style$
|
|
2868
|
+
const style$b = {
|
|
2938
2869
|
ErrorStyle: mixins.ErrorStyles,
|
|
2939
2870
|
FieldContainer: {
|
|
2940
2871
|
"margin-bottom": "var(--sl-spacing-large)",
|
|
2941
2872
|
},
|
|
2942
2873
|
};
|
|
2943
|
-
const vanillaStyle$
|
|
2874
|
+
const vanillaStyle$7 = `
|
|
2944
2875
|
:host {
|
|
2945
2876
|
margin: 0 auto;
|
|
2946
2877
|
width: 100%;
|
|
@@ -2948,21 +2879,21 @@ const vanillaStyle$8 = `
|
|
|
2948
2879
|
}
|
|
2949
2880
|
`;
|
|
2950
2881
|
JSS.jss.setup(JSS.create());
|
|
2951
|
-
const sheet$
|
|
2952
|
-
const styleString$
|
|
2882
|
+
const sheet$b = JSS.jss.createStyleSheet(style$b);
|
|
2883
|
+
const styleString$b = sheet$b.toString();
|
|
2953
2884
|
function InputFieldView(props) {
|
|
2954
2885
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2955
2886
|
const { states, content } = props;
|
|
2956
2887
|
const validationErrors = (_a = states === null || states === void 0 ? void 0 : states.registrationFormState) === null || _a === void 0 ? void 0 : _a.validationErrors;
|
|
2957
|
-
return (index.h("div", { class: sheet$
|
|
2888
|
+
return (index.h("div", { class: sheet$b.classes.FieldContainer, part: "sqm-base" },
|
|
2958
2889
|
index.h("style", { type: "text/css" },
|
|
2959
|
-
vanillaStyle$
|
|
2960
|
-
styleString$
|
|
2890
|
+
vanillaStyle$7,
|
|
2891
|
+
styleString$b),
|
|
2961
2892
|
index.h("sl-input", Object.assign({ exportparts: "label: input-label, base: input-base", name: `/${content.fieldName}`, type: content.fieldType, label: content.fieldLabel }, (!content.fieldOptional ? { required: true } : []), { disabled: ((_b = states.registrationFormState) === null || _b === void 0 ? void 0 : _b.loading) || ((_c = states.registrationFormState) === null || _c === void 0 ? void 0 : _c.disabled) }, (((_e = (_d = states.registrationFormState) === null || _d === void 0 ? void 0 : _d.initialData) === null || _e === void 0 ? void 0 : _e[content.fieldName]) ? {
|
|
2962
2893
|
value: (_g = (_f = states.registrationFormState) === null || _f === void 0 ? void 0 : _f.initialData) === null || _g === void 0 ? void 0 : _g[content.fieldName],
|
|
2963
2894
|
}
|
|
2964
2895
|
: {}), ((validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]) ? {
|
|
2965
|
-
class: sheet$
|
|
2896
|
+
class: sheet$b.classes.ErrorStyle,
|
|
2966
2897
|
helpText: global.intl.formatMessage({
|
|
2967
2898
|
id: `errorMessage-${content.fieldName}`,
|
|
2968
2899
|
defaultMessage: content.errorMessage || (validationErrors === null || validationErrors === void 0 ? void 0 : validationErrors[content.fieldName]),
|
|
@@ -3057,7 +2988,7 @@ function ProgressBar({ stageCount, currentStage, }) {
|
|
|
3057
2988
|
return (index.h("div", { style: { display: "flex", columnGap: "-2px" } }, Array.from(Array(stageCount).keys()).map((stage) => (index.h(Progress, { active: currentStage === stage, completed: currentStage > stage, incomplete: currentStage < stage, stage: stage })))));
|
|
3058
2989
|
}
|
|
3059
2990
|
|
|
3060
|
-
const style$
|
|
2991
|
+
const style$c = {
|
|
3061
2992
|
HostBlock: mixins.HostBlock,
|
|
3062
2993
|
Container: {
|
|
3063
2994
|
minWidth: "300px",
|
|
@@ -3408,8 +3339,8 @@ const style$d = {
|
|
|
3408
3339
|
},
|
|
3409
3340
|
};
|
|
3410
3341
|
// JSS config
|
|
3411
|
-
const sheet$
|
|
3412
|
-
const styleString$
|
|
3342
|
+
const sheet$c = JSS.createStyleSheet(style$c);
|
|
3343
|
+
const styleString$c = sheet$c.toString();
|
|
3413
3344
|
const stageList = ["chooseReward", "chooseAmount", "confirmation", "success"];
|
|
3414
3345
|
function RewardExchangeView(props) {
|
|
3415
3346
|
const { states, data, callbacks, refs } = props;
|
|
@@ -3432,7 +3363,7 @@ function RewardExchangeView(props) {
|
|
|
3432
3363
|
sourceUnit: item.sourceUnit,
|
|
3433
3364
|
})));
|
|
3434
3365
|
}
|
|
3435
|
-
return (index.h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$
|
|
3366
|
+
return (index.h("sl-select", { style: { width: "auto" }, label: (_b = states === null || states === void 0 ? void 0 : states.content) === null || _b === void 0 ? void 0 : _b.text.selectText, class: sheet$c.classes.Select, value: states.selectedStep, "onSl-select": (e) => {
|
|
3436
3367
|
var _a, _b, _c, _d, _e;
|
|
3437
3368
|
return callbacks.setExchangeState({
|
|
3438
3369
|
amount: (_c = (_b = (_a = e.detail) === null || _a === void 0 ? void 0 : _a.item) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.sourceValue,
|
|
@@ -3440,7 +3371,7 @@ function RewardExchangeView(props) {
|
|
|
3440
3371
|
});
|
|
3441
3372
|
} }, (_c = item.steps) === null || _c === void 0 ? void 0 : _c.map((step) => {
|
|
3442
3373
|
var _a, _b;
|
|
3443
|
-
return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$
|
|
3374
|
+
return (index.h("sl-menu-item", { value: step, disabled: !step.available, class: sheet$c.classes.SelectItem },
|
|
3444
3375
|
step.prettyDestinationValue,
|
|
3445
3376
|
index.h("br", null),
|
|
3446
3377
|
index.h("div", { class: "step-cost", slot: "suffix" },
|
|
@@ -3459,8 +3390,8 @@ function RewardExchangeView(props) {
|
|
|
3459
3390
|
var _a;
|
|
3460
3391
|
return [
|
|
3461
3392
|
index.h("div", { part: "choose-reward-container" },
|
|
3462
|
-
index.h("div", { class: sheet$
|
|
3463
|
-
states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$
|
|
3393
|
+
index.h("div", { class: sheet$c.classes.Title }, states.content.text.rewardTitle),
|
|
3394
|
+
states.loading || states.queryError ? (loading()) : (index.h("div", { class: sheet$c.classes.Grid }, (_a = data.exchangeList) === null || _a === void 0 ? void 0 : _a.map((item) => {
|
|
3464
3395
|
var _a, _b, _c, _d, _e;
|
|
3465
3396
|
const style = {
|
|
3466
3397
|
boxShadow: item.key === (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key)
|
|
@@ -3469,7 +3400,7 @@ function RewardExchangeView(props) {
|
|
|
3469
3400
|
borderRadius: "4px",
|
|
3470
3401
|
};
|
|
3471
3402
|
return (index.h("div", { key: item.key, style: style },
|
|
3472
|
-
index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$
|
|
3403
|
+
index.h("sl-card", { exportparts: "base: exchange-card-container", class: sheet$c.classes.Card, style: {
|
|
3473
3404
|
cursor: item.unavailableReasonCode
|
|
3474
3405
|
? "not-allowed"
|
|
3475
3406
|
: "pointer",
|
|
@@ -3486,14 +3417,14 @@ function RewardExchangeView(props) {
|
|
|
3486
3417
|
? "rgba(0, 0, 0, 0.05)"
|
|
3487
3418
|
: "rgba(0, 0, 0, 0)",
|
|
3488
3419
|
} },
|
|
3489
|
-
index.h("div", { class: sheet$
|
|
3420
|
+
index.h("div", { class: sheet$c.classes.Image, style: {
|
|
3490
3421
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3491
3422
|
} },
|
|
3492
3423
|
index.h("img", { class: item.unavailableReasonCode
|
|
3493
3424
|
? "image subdued"
|
|
3494
3425
|
: "image", src: (item === null || item === void 0 ? void 0 : item.imageUrl) ||
|
|
3495
3426
|
index.getAssetPath("./assets/Reward-image.png") })),
|
|
3496
|
-
index.h("div", { class: sheet$
|
|
3427
|
+
index.h("div", { class: sheet$c.classes.TextArea, style: {
|
|
3497
3428
|
opacity: item.unavailableReasonCode ? "0.5" : "1",
|
|
3498
3429
|
} },
|
|
3499
3430
|
index.h("div", { class: "title", style: {
|
|
@@ -3526,7 +3457,7 @@ function RewardExchangeView(props) {
|
|
|
3526
3457
|
item.prettySourceMinValue,
|
|
3527
3458
|
}))))))));
|
|
3528
3459
|
}))),
|
|
3529
|
-
index.h("div", { class: sheet$
|
|
3460
|
+
index.h("div", { class: sheet$c.classes.Button },
|
|
3530
3461
|
index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue right", size: "large", onClick: () => callbacks.setStage("chooseAmount"), loading: states.loading, disabled: !states.selectedItem }, states.content.text.continueText))),
|
|
3531
3462
|
];
|
|
3532
3463
|
}
|
|
@@ -3537,7 +3468,7 @@ function RewardExchangeView(props) {
|
|
|
3537
3468
|
? false
|
|
3538
3469
|
: input && !states.amount;
|
|
3539
3470
|
return (index.h("div", null,
|
|
3540
|
-
index.h("div", { class: sheet$
|
|
3471
|
+
index.h("div", { class: sheet$c.classes.ChooseAmount, part: "choose-amount-container" },
|
|
3541
3472
|
index.h("div", { class: "wrapper" },
|
|
3542
3473
|
index.h("img", { class: "image", src: (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.imageUrl) ||
|
|
3543
3474
|
index.getAssetPath("./assets/Reward-image.png") }),
|
|
@@ -3546,7 +3477,7 @@ function RewardExchangeView(props) {
|
|
|
3546
3477
|
((_c = states.selectedItem) === null || _c === void 0 ? void 0 : _c.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "points" }, input)) : (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)),
|
|
3547
3478
|
((_d = states.selectedItem) === null || _d === void 0 ? void 0 : _d.ruleType) === "FIXED_GLOBAL_REWARD" ? (index.h("div", { class: "description" }, selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.description)) : (index.h("div", null, input)),
|
|
3548
3479
|
index.h("div", { class: "space" }))),
|
|
3549
|
-
index.h("div", { class: sheet$
|
|
3480
|
+
index.h("div", { class: sheet$c.classes.Button },
|
|
3550
3481
|
index.h("sl-button", { exportparts: "base: secondarybutton-base", class: "cancel", size: "large", type: "text", onClick: () => callbacks.resetState() }, states.content.text.cancelText),
|
|
3551
3482
|
index.h("sl-button", { exportparts: "base: primarybutton-base", class: "continue", size: "large", onClick: () => callbacks.setStage("confirmation"), disabled: isDisabled }, states.content.text.continueToConfirmationText)))));
|
|
3552
3483
|
}
|
|
@@ -3554,8 +3485,8 @@ function RewardExchangeView(props) {
|
|
|
3554
3485
|
const cost = (selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettySourceValue) || selectedItem.prettySourceValue;
|
|
3555
3486
|
const amount = selectedStep === null || selectedStep === void 0 ? void 0 : selectedStep.prettyDestinationValue;
|
|
3556
3487
|
return (index.h("div", null,
|
|
3557
|
-
index.h("div", { class: sheet$
|
|
3558
|
-
index.h("div", { class: sheet$
|
|
3488
|
+
index.h("div", { class: sheet$c.classes.Confirmation, part: "confirmation-container" },
|
|
3489
|
+
index.h("div", { class: sheet$c.classes.Title }, states.content.text.redeemTitle),
|
|
3559
3490
|
index.h("div", { class: "wrapper" },
|
|
3560
3491
|
index.h("div", { class: "field" }, states.content.text.rewardNameTitle),
|
|
3561
3492
|
index.h("div", { class: "reward-item-container" },
|
|
@@ -3570,13 +3501,13 @@ function RewardExchangeView(props) {
|
|
|
3570
3501
|
index.h("div", { class: "wrapper top-border padding" },
|
|
3571
3502
|
index.h("div", { class: "field" }, states.content.text.costTitle),
|
|
3572
3503
|
index.h("div", { class: "value" }, cost)),
|
|
3573
|
-
index.h("div", { class: sheet$
|
|
3504
|
+
index.h("div", { class: sheet$c.classes.Button },
|
|
3574
3505
|
index.h("sl-button", { class: "cancel", type: "text", size: "large", onClick: () => callbacks.setStage("chooseAmount") }, states.content.text.backText),
|
|
3575
3506
|
index.h("sl-button", { class: "continue", size: "large", loading: states.loading, onClick: callbacks.exchangeReward }, states.content.text.redeemText)))));
|
|
3576
3507
|
}
|
|
3577
3508
|
function success() {
|
|
3578
3509
|
var _a, _b, _c, _d, _e, _f;
|
|
3579
|
-
return (index.h("div", { class: sheet$
|
|
3510
|
+
return (index.h("div", { class: sheet$c.classes.Success, part: "success-container" },
|
|
3580
3511
|
index.h(Gift$1, null),
|
|
3581
3512
|
index.h(Confetti, null),
|
|
3582
3513
|
index.h("div", { class: "title" }, (_a = states.content.text) === null || _a === void 0 ? void 0 : _a.rewardRedeemedText),
|
|
@@ -3591,7 +3522,7 @@ function RewardExchangeView(props) {
|
|
|
3591
3522
|
(data === null || data === void 0 ? void 0 : data.fuelTankCode) && (index.h("div", { class: "promo" },
|
|
3592
3523
|
states.content.text.promoCode,
|
|
3593
3524
|
index.h(CopyTextView, { copyString: data.fuelTankCode, tooltiptext: (_f = states === null || states === void 0 ? void 0 : states.content) === null || _f === void 0 ? void 0 : _f.text.tooltipText, open: states.open, onClick: callbacks.copyFuelTankCode }))),
|
|
3594
|
-
index.h("div", { class: sheet$
|
|
3525
|
+
index.h("div", { class: sheet$c.classes.Button },
|
|
3595
3526
|
index.h("sl-button", { class: "continue center", type: "primary", size: "large", onClick: () => callbacks.resetState(true) }, states.content.text.doneText))));
|
|
3596
3527
|
}
|
|
3597
3528
|
const stages = {
|
|
@@ -3603,7 +3534,7 @@ function RewardExchangeView(props) {
|
|
|
3603
3534
|
const currentStage = stages[states.redeemStage];
|
|
3604
3535
|
function stageMap() {
|
|
3605
3536
|
const stageNumber = stageList.indexOf(states.redeemStage);
|
|
3606
|
-
return (index.h("div", { class: sheet$
|
|
3537
|
+
return (index.h("div", { class: sheet$c.classes.ProgressBar },
|
|
3607
3538
|
index.h("div", { class: "text-area" }, Object.keys(stageProgressList).map((stage) => {
|
|
3608
3539
|
if (stageList.indexOf(stage) <= stageNumber) {
|
|
3609
3540
|
return index.h("span", { class: "text" }, stageProgressList[stage]);
|
|
@@ -3615,10 +3546,10 @@ function RewardExchangeView(props) {
|
|
|
3615
3546
|
index.h(ProgressBar, { stageCount: 3, currentStage: stageNumber })));
|
|
3616
3547
|
}
|
|
3617
3548
|
function loading() {
|
|
3618
|
-
return (index.h("div", { class: sheet$
|
|
3549
|
+
return (index.h("div", { class: sheet$c.classes.Grid, part: "loading-container" }, [...Array(states.content.text.skeletonCardNum)].map(() => {
|
|
3619
3550
|
return (index.h("div", null,
|
|
3620
|
-
index.h("sl-card", { class: sheet$
|
|
3621
|
-
index.h("div", { class: sheet$
|
|
3551
|
+
index.h("sl-card", { class: sheet$c.classes.Card },
|
|
3552
|
+
index.h("div", { class: sheet$c.classes.CardLayout },
|
|
3622
3553
|
index.h("div", null,
|
|
3623
3554
|
index.h("sl-skeleton", { style: {
|
|
3624
3555
|
width: "100px",
|
|
@@ -3650,12 +3581,12 @@ function RewardExchangeView(props) {
|
|
|
3650
3581
|
if (!(refs === null || refs === void 0 ? void 0 : refs.canvasRef))
|
|
3651
3582
|
return;
|
|
3652
3583
|
refs.canvasRef.current = canvas;
|
|
3653
|
-
}, id: "my-canvas", class: sheet$
|
|
3584
|
+
}, id: "my-canvas", class: sheet$c.classes.Confetti }));
|
|
3654
3585
|
}
|
|
3655
3586
|
if (states.noExchangeOptions)
|
|
3656
3587
|
return states.content.text.empty;
|
|
3657
|
-
return (index.h("div", { class: sheet$
|
|
3658
|
-
index.h("style", { type: "text/css" }, styleString$
|
|
3588
|
+
return (index.h("div", { class: sheet$c.classes.Container, part: "sqm-base" },
|
|
3589
|
+
index.h("style", { type: "text/css" }, styleString$c),
|
|
3659
3590
|
index.h("div", null,
|
|
3660
3591
|
stageMap(),
|
|
3661
3592
|
states.exchangeError && errorMessage(),
|
|
@@ -4071,7 +4002,7 @@ function CardFeedView(props, children) {
|
|
|
4071
4002
|
index.h("div", { class: sheet.classes.Container, part: "sqm-base" }, children)));
|
|
4072
4003
|
}
|
|
4073
4004
|
|
|
4074
|
-
const style$
|
|
4005
|
+
const style$d = {
|
|
4075
4006
|
HostBlock: mixins.HostBlock,
|
|
4076
4007
|
couponCodeLabel: {
|
|
4077
4008
|
margin: "var(--sl-spacing-x-small) 0",
|
|
@@ -4079,21 +4010,21 @@ const style$e = {
|
|
|
4079
4010
|
fontSize: "var(--sl-font-size-small)",
|
|
4080
4011
|
},
|
|
4081
4012
|
};
|
|
4082
|
-
const vanillaStyle$
|
|
4013
|
+
const vanillaStyle$8 = `
|
|
4083
4014
|
:host{
|
|
4084
4015
|
display: block;
|
|
4085
4016
|
width: 100%;
|
|
4086
4017
|
}
|
|
4087
4018
|
`;
|
|
4088
|
-
const sheet$
|
|
4089
|
-
const styleString$
|
|
4019
|
+
const sheet$d = JSS.createStyleSheet(style$d);
|
|
4020
|
+
const styleString$d = sheet$d.toString();
|
|
4090
4021
|
function CouponCodeView(props) {
|
|
4091
4022
|
const error = !props.loading && props.error;
|
|
4092
4023
|
return (index.h("div", null,
|
|
4093
4024
|
index.h("style", { type: "text/css" },
|
|
4094
|
-
styleString$
|
|
4095
|
-
vanillaStyle$
|
|
4096
|
-
index.h("p", { class: sheet$
|
|
4025
|
+
styleString$d,
|
|
4026
|
+
vanillaStyle$8),
|
|
4027
|
+
index.h("p", { class: sheet$d.classes.couponCodeLabel, style: { textAlign: props.textAlign } }, props.couponCodeLabel),
|
|
4097
4028
|
error ? (index.h("sqm-form-message", { type: props.errorType, exportparts: "erroralert-icon" },
|
|
4098
4029
|
index.h("div", { part: "erroralert-text" }, props.errorText))) : (index.h(CopyTextView, Object.assign({}, props)))));
|
|
4099
4030
|
}
|
|
@@ -4185,7 +4116,6 @@ const ShadowViewAddon = ({ story }, children) => {
|
|
|
4185
4116
|
|
|
4186
4117
|
exports.BigStatView = BigStatView;
|
|
4187
4118
|
exports.CardFeedView = CardFeedView;
|
|
4188
|
-
exports.CheckboxFieldView = CheckboxFieldView;
|
|
4189
4119
|
exports.CopyTextView = CopyTextView;
|
|
4190
4120
|
exports.CouponCodeView = CouponCodeView;
|
|
4191
4121
|
exports.DropdownFieldView = DropdownFieldView;
|