igloo-d2c-components 1.0.30 → 1.0.32
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/index.js +143 -149
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +143 -149
- package/dist/esm/index.js.map +1 -1
- package/dist/types/components/BenefitsSummary/styled.d.ts +3 -3
- package/dist/types/components/BillingToggle/styled.d.ts +6 -5
- package/dist/types/components/CheckoutFormButton/CheckoutFormButton.d.ts +2 -1
- package/dist/types/components/CheckoutHeader/styled.d.ts +2 -2
- package/dist/types/components/CheckoutProgress/styled.d.ts +1 -1
- package/dist/types/components/ChildInformationForm/ChildInformationForm.d.ts +7 -6
- package/dist/types/components/ContactDetailsForm/ContactDetailsForm.d.ts +7 -6
- package/dist/types/components/ContactDetailsForm/styled.d.ts +2 -2
- package/dist/types/components/CoverageAmountSlider/styled.d.ts +25 -24
- package/dist/types/components/DesktopHeaderMenuBar/styled.d.ts +1 -1
- package/dist/types/components/FAQAccordion/styled.d.ts +2 -2
- package/dist/types/components/Footer/styled.d.ts +2 -2
- package/dist/types/components/Header/Header.d.ts +1 -1
- package/dist/types/components/Header/styled.d.ts +7 -7
- package/dist/types/components/HealthInformationForm/HealthInformationForm.d.ts +6 -5
- package/dist/types/components/HealthQuestionGroup/HealthQuestionGroup.d.ts +2 -1
- package/dist/types/components/HealthQuestionGroup/styled.d.ts +2 -2
- package/dist/types/components/InfoCallout/styled.d.ts +8 -7
- package/dist/types/components/NewHeader/NewHeader.d.ts +1 -1
- package/dist/types/components/OptionButton/styled.d.ts +1 -1
- package/dist/types/components/PersonalInformationForm/PersonalInformationForm.d.ts +7 -6
- package/dist/types/components/PersonalInformationForm/styled.d.ts +1 -1
- package/dist/types/components/ProductCard/ProductCard.d.ts +2 -1
- package/dist/types/components/ProductCard/styled.d.ts +4 -4
- package/dist/types/components/ProductSelectionDrawer/styled.d.ts +4 -4
- package/dist/types/components/QuestionSection/QuestionSection.d.ts +1 -1
- package/dist/types/components/QuestionSection/styled.d.ts +2 -2
- package/dist/types/components/RecommendationsDrawer/styled.d.ts +2 -2
- package/dist/types/components/ToggleGroup/styled.d.ts +1 -1
- package/dist/types/themes/typography.d.ts +1 -1
- package/dist/types/types/tenant.d.ts +42 -20
- package/dist/types/utils/theme.d.ts +3 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -979,7 +979,7 @@ const MenuItemButton = styled(Button$1)(() => ({
|
|
|
979
979
|
fontSize: '18px',
|
|
980
980
|
lineHeight: '24px',
|
|
981
981
|
letterSpacing: '0px',
|
|
982
|
-
wordSpacing: '
|
|
982
|
+
wordSpacing: '0px',
|
|
983
983
|
borderRadius: 0,
|
|
984
984
|
'&:hover': {
|
|
985
985
|
backgroundColor: 'transparent',
|
|
@@ -996,7 +996,7 @@ const MenuItemText = styled(Typography)({
|
|
|
996
996
|
fontSize: '18px',
|
|
997
997
|
lineHeight: '24px',
|
|
998
998
|
letterSpacing: '0px',
|
|
999
|
-
wordSpacing: '
|
|
999
|
+
wordSpacing: '0px',
|
|
1000
1000
|
color: 'inherit',
|
|
1001
1001
|
});
|
|
1002
1002
|
/**
|
|
@@ -1037,7 +1037,7 @@ styled(Button$1)(() => ({
|
|
|
1037
1037
|
fontSize: '18px',
|
|
1038
1038
|
lineHeight: '24px',
|
|
1039
1039
|
letterSpacing: '0px',
|
|
1040
|
-
wordSpacing: '
|
|
1040
|
+
wordSpacing: '0px',
|
|
1041
1041
|
borderRadius: 0,
|
|
1042
1042
|
backgroundColor: 'transparent',
|
|
1043
1043
|
'&:hover': {
|
|
@@ -1066,7 +1066,7 @@ const PurchaseButton = styled(Button$1)(() => ({
|
|
|
1066
1066
|
fontSize: '16px',
|
|
1067
1067
|
lineHeight: '20px',
|
|
1068
1068
|
letterSpacing: '0px',
|
|
1069
|
-
wordSpacing: '
|
|
1069
|
+
wordSpacing: '0',
|
|
1070
1070
|
borderRadius: '24px',
|
|
1071
1071
|
whiteSpace: 'nowrap',
|
|
1072
1072
|
'&:hover': {
|
|
@@ -1099,7 +1099,7 @@ const StyledMenuItem$1 = styled(MenuItem)(() => ({
|
|
|
1099
1099
|
fontWeight: 500,
|
|
1100
1100
|
fontSize: '16px',
|
|
1101
1101
|
lineHeight: '24px',
|
|
1102
|
-
wordSpacing: '
|
|
1102
|
+
wordSpacing: '0px',
|
|
1103
1103
|
color: designColors.natural.dim100,
|
|
1104
1104
|
'&:hover': {
|
|
1105
1105
|
backgroundColor: 'rgba(0, 144, 218, 0.08)',
|
|
@@ -1239,7 +1239,7 @@ const StyledAppBar$1 = styled(AppBar)(({ theme, ispartnershippagemobileview, scr
|
|
|
1239
1239
|
},
|
|
1240
1240
|
},
|
|
1241
1241
|
[theme.breakpoints.up(1025)]: {
|
|
1242
|
-
boxShadow: scrolled
|
|
1242
|
+
boxShadow: scrolled ? '0px 2px 20px 4px rgba(0, 0, 0, 0.14) !important' : 'none',
|
|
1243
1243
|
},
|
|
1244
1244
|
});
|
|
1245
1245
|
});
|
|
@@ -1250,7 +1250,7 @@ const ResponsiveB2CLayout = styled('div')(({ theme }) => ({
|
|
|
1250
1250
|
margin: '0 auto',
|
|
1251
1251
|
},
|
|
1252
1252
|
}));
|
|
1253
|
-
const StyledContainer = styled(Container)(({ theme,
|
|
1253
|
+
const StyledContainer = styled(Container)(({ theme, scrolled }) => {
|
|
1254
1254
|
var _a;
|
|
1255
1255
|
return ({
|
|
1256
1256
|
boxShadow: 'none',
|
|
@@ -1286,7 +1286,7 @@ const ButtonDesktopMenu = styled(Button$1)(({ theme }) => {
|
|
|
1286
1286
|
alignSelf: 'stretch',
|
|
1287
1287
|
});
|
|
1288
1288
|
});
|
|
1289
|
-
const AnchorLinks = styled('a')((
|
|
1289
|
+
const AnchorLinks = styled('a')(() => ({
|
|
1290
1290
|
color: 'inherit',
|
|
1291
1291
|
'&:hover': {
|
|
1292
1292
|
color: 'inherit',
|
|
@@ -1328,7 +1328,7 @@ const ButtonAuth = styled(Button$1)(({ theme }) => ({
|
|
|
1328
1328
|
height: 40,
|
|
1329
1329
|
minWidth: 'max-content !important',
|
|
1330
1330
|
}));
|
|
1331
|
-
const TypographyAuth = styled(Typography)((
|
|
1331
|
+
const TypographyAuth = styled(Typography)(() => ({
|
|
1332
1332
|
textTransform: 'none',
|
|
1333
1333
|
}));
|
|
1334
1334
|
const StyledMenu = styled(Menu)(({ theme }) => {
|
|
@@ -1378,13 +1378,13 @@ const StyledMenuItem = styled(MenuItem)(({ theme }) => {
|
|
|
1378
1378
|
},
|
|
1379
1379
|
});
|
|
1380
1380
|
});
|
|
1381
|
-
const SpanImageWrapper = styled('span')((
|
|
1381
|
+
const SpanImageWrapper = styled('span')(() => ({
|
|
1382
1382
|
alignItems: 'center',
|
|
1383
1383
|
display: 'flex',
|
|
1384
1384
|
justifyContent: 'center',
|
|
1385
1385
|
margin: 'auto 0',
|
|
1386
1386
|
}));
|
|
1387
|
-
const ImageProductIcon = styled('img')((
|
|
1387
|
+
const ImageProductIcon = styled('img')(() => ({
|
|
1388
1388
|
aspectRatio: 1,
|
|
1389
1389
|
objectPosition: 'center',
|
|
1390
1390
|
width: 18,
|
|
@@ -1451,7 +1451,7 @@ const StyledDrawer$3 = styled(Drawer)(({ theme }) => {
|
|
|
1451
1451
|
},
|
|
1452
1452
|
});
|
|
1453
1453
|
});
|
|
1454
|
-
const DivLogoWrapper = styled('div')((
|
|
1454
|
+
const DivLogoWrapper = styled('div')(() => ({
|
|
1455
1455
|
justifyContent: 'space-between',
|
|
1456
1456
|
alignSelf: 'stretch',
|
|
1457
1457
|
backgroundColor: '',
|
|
@@ -1476,7 +1476,7 @@ const DivLogo = styled('div')(({ theme }) => {
|
|
|
1476
1476
|
},
|
|
1477
1477
|
});
|
|
1478
1478
|
});
|
|
1479
|
-
const DivCrossIconWrapper = styled('div')((
|
|
1479
|
+
const DivCrossIconWrapper = styled('div')(() => ({
|
|
1480
1480
|
display: 'flex',
|
|
1481
1481
|
alignItems: 'center',
|
|
1482
1482
|
justifyContent: 'center',
|
|
@@ -1489,14 +1489,14 @@ const StyledCloseIconBtn = styled(IconButton)(({ theme }) => {
|
|
|
1489
1489
|
padding: '0 !important',
|
|
1490
1490
|
});
|
|
1491
1491
|
});
|
|
1492
|
-
const DivLoginActionContainer = styled('div')((
|
|
1492
|
+
const DivLoginActionContainer = styled('div')(() => ({
|
|
1493
1493
|
justifyContent: 'center',
|
|
1494
1494
|
alignSelf: 'stretch',
|
|
1495
1495
|
display: 'flex',
|
|
1496
1496
|
flexDirection: 'column',
|
|
1497
1497
|
padding: ' 0 16px',
|
|
1498
1498
|
}));
|
|
1499
|
-
const DivCommonMenus = styled('div')((
|
|
1499
|
+
const DivCommonMenus = styled('div')(() => ({
|
|
1500
1500
|
padding: 16,
|
|
1501
1501
|
display: 'flex',
|
|
1502
1502
|
flexDirection: 'column',
|
|
@@ -1516,7 +1516,7 @@ const MenuItemOtherLinks = styled(MenuItem)(({ theme }) => ({
|
|
|
1516
1516
|
width: '100%',
|
|
1517
1517
|
gap: '50%',
|
|
1518
1518
|
}));
|
|
1519
|
-
const StyledFormControlLabel = styled(FormControlLabel)((
|
|
1519
|
+
const StyledFormControlLabel = styled(FormControlLabel)(() => ({
|
|
1520
1520
|
'& .MuiRadio-root': {
|
|
1521
1521
|
padding: '0 9px',
|
|
1522
1522
|
},
|
|
@@ -1538,10 +1538,10 @@ const ButtonLogout = styled(Button$1)(({ theme }) => {
|
|
|
1538
1538
|
color: `${((_b = theme.palette.secondary) === null || _b === void 0 ? void 0 : _b.main) || '#f00'} !important`,
|
|
1539
1539
|
});
|
|
1540
1540
|
});
|
|
1541
|
-
const DivLogoutBtnWrapper = styled('div')((
|
|
1541
|
+
const DivLogoutBtnWrapper = styled('div')(() => ({
|
|
1542
1542
|
margin: 16,
|
|
1543
1543
|
}));
|
|
1544
|
-
const AnchorLink$1 = styled('a')((
|
|
1544
|
+
const AnchorLink$1 = styled('a')(() => ({
|
|
1545
1545
|
color: 'inherit',
|
|
1546
1546
|
'&:hover': {
|
|
1547
1547
|
color: 'inherit',
|
|
@@ -1558,7 +1558,7 @@ const StyledButton$1 = styled(Button$1)(({ theme }) => {
|
|
|
1558
1558
|
padding: '10px 24px',
|
|
1559
1559
|
});
|
|
1560
1560
|
});
|
|
1561
|
-
const StyledButtonBanner = styled(Button$1)((
|
|
1561
|
+
const StyledButtonBanner = styled(Button$1)(() => ({
|
|
1562
1562
|
alignSelf: 'start',
|
|
1563
1563
|
height: '40px',
|
|
1564
1564
|
borderRadius: '100px',
|
|
@@ -1587,10 +1587,9 @@ const TypographyBtnText = styled(Typography)(({ theme }) => {
|
|
|
1587
1587
|
* />
|
|
1588
1588
|
* ```
|
|
1589
1589
|
*/
|
|
1590
|
-
function Header$1({ logo,
|
|
1590
|
+
function Header$1({ logo, navigationLinks, languages, currentLocale, userToken, userFirstName, isMobile: propIsMobile, scrolled = false, isPartnershipPageMobileView = false, isPartnershipPagePCView = false, isSeoPageView = false, bannerData, host = '', welcomeMessage, formatMessage = (descriptor) => descriptor.id, menuItems, userProfileComponent, onLogoClick, onProductMenuClick, onLanguageChange, onLoginClick, onSignupClick, onLogoutClick, onPartnershipClick, onAboutUsClick, onBlogClick, onMyProfileClick, onGetQuoteClick, onPartnershipCTAClick, useNewDesktopLayout = false, desktopMenuItems = [], showCtaButton = true, ctaButtonText = 'Purchase Now', onCtaClick, ctaScrollTargetId, onScrollToSection, }) {
|
|
1591
1591
|
var _a, _b, _c;
|
|
1592
|
-
|
|
1593
|
-
tenantTheme === null || tenantTheme === void 0 ? void 0 : tenantTheme.theme;
|
|
1592
|
+
useTenantTheme();
|
|
1594
1593
|
const muiTheme = useTheme();
|
|
1595
1594
|
const themeBreakpoint = useMediaQuery((_a = muiTheme === null || muiTheme === void 0 ? void 0 : muiTheme.breakpoints) === null || _a === void 0 ? void 0 : _a.down('md'));
|
|
1596
1595
|
const isMobile = propIsMobile !== undefined ? propIsMobile : themeBreakpoint;
|
|
@@ -1770,19 +1769,19 @@ const StyledToolbar = styled(Toolbar)(({ theme }) => ({
|
|
|
1770
1769
|
padding: '12px 16px',
|
|
1771
1770
|
},
|
|
1772
1771
|
}));
|
|
1773
|
-
const LogoContainer$1 = styled('div')((
|
|
1772
|
+
const LogoContainer$1 = styled('div')(() => ({
|
|
1774
1773
|
display: 'flex',
|
|
1775
1774
|
alignItems: 'center',
|
|
1776
1775
|
cursor: 'pointer',
|
|
1777
1776
|
height: '16px',
|
|
1778
1777
|
width: '116px',
|
|
1779
1778
|
}));
|
|
1780
|
-
const LogoImage = styled('img')((
|
|
1779
|
+
const LogoImage = styled('img')(() => ({
|
|
1781
1780
|
height: '16px',
|
|
1782
1781
|
width: '116px',
|
|
1783
1782
|
objectFit: 'contain',
|
|
1784
1783
|
}));
|
|
1785
|
-
const MenuIconButton = styled(IconButton)((
|
|
1784
|
+
const MenuIconButton = styled(IconButton)(() => ({
|
|
1786
1785
|
padding: '6px',
|
|
1787
1786
|
borderRadius: '25px',
|
|
1788
1787
|
width: '40px',
|
|
@@ -1792,26 +1791,26 @@ const MenuIconButton = styled(IconButton)(({ theme }) => ({
|
|
|
1792
1791
|
fontSize: '24px',
|
|
1793
1792
|
},
|
|
1794
1793
|
}));
|
|
1795
|
-
const StyledDrawer$2 = styled(Drawer)((
|
|
1794
|
+
const StyledDrawer$2 = styled(Drawer)(() => ({
|
|
1796
1795
|
'& .MuiDrawer-paper': {
|
|
1797
1796
|
backgroundColor: '#FFFFFF',
|
|
1798
1797
|
boxSizing: 'border-box',
|
|
1799
1798
|
},
|
|
1800
1799
|
}));
|
|
1801
|
-
const DrawerHeader$2 = styled(Box)((
|
|
1800
|
+
const DrawerHeader$2 = styled(Box)(() => ({
|
|
1802
1801
|
display: 'flex',
|
|
1803
1802
|
alignItems: 'center',
|
|
1804
1803
|
justifyContent: 'space-between',
|
|
1805
1804
|
padding: '12px 16px',
|
|
1806
1805
|
minHeight: '64px',
|
|
1807
1806
|
}));
|
|
1808
|
-
const DrawerLogoContainer = styled('div')((
|
|
1807
|
+
const DrawerLogoContainer = styled('div')(() => ({
|
|
1809
1808
|
display: 'flex',
|
|
1810
1809
|
alignItems: 'center',
|
|
1811
1810
|
cursor: 'pointer',
|
|
1812
1811
|
height: '32px',
|
|
1813
1812
|
}));
|
|
1814
|
-
const CloseIconButton = styled(IconButton)((
|
|
1813
|
+
const CloseIconButton = styled(IconButton)(() => ({
|
|
1815
1814
|
padding: '6px',
|
|
1816
1815
|
'& .MuiSvgIcon-root': {
|
|
1817
1816
|
color: '#000000',
|
|
@@ -1840,7 +1839,7 @@ styled(Box)(({ theme }) => ({
|
|
|
1840
1839
|
* />
|
|
1841
1840
|
* ```
|
|
1842
1841
|
*/
|
|
1843
|
-
function NewHeader({ logo: propLogo, navigationLinks = [],
|
|
1842
|
+
function NewHeader({ logo: propLogo, navigationLinks = [], isMobile: propIsMobile, onLogoClick, onMenuOpen, onMenuClose, customDrawerContent, formatMessage = (descriptor) => descriptor.id, }) {
|
|
1844
1843
|
var _a;
|
|
1845
1844
|
const tenantTheme = useTenantTheme();
|
|
1846
1845
|
const theme = tenantTheme === null || tenantTheme === void 0 ? void 0 : tenantTheme.theme;
|
|
@@ -1871,18 +1870,12 @@ function NewHeader({ logo: propLogo, navigationLinks = [], additionalMenuSection
|
|
|
1871
1870
|
return (jsxs(Fragment, { children: [jsx(StyledAppBar, Object.assign({ position: "fixed" }, { children: jsxs(StyledToolbar, Object.assign({ disableGutters: true }, { children: [jsx(LogoContainer$1, Object.assign({ onClick: handleLogoClick }, { children: jsx(LogoImage, { src: logo, alt: "Logo" }) })), jsx(MenuIconButton, Object.assign({ size: "large", edge: "end", "aria-label": "menu", onClick: handleDrawerOpen }, { children: jsx(MenuIcon, {}) }))] })) })), jsx(StyledDrawer$2, Object.assign({ anchor: "right", open: drawerOpen, onClose: handleDrawerClose }, { children: customDrawerContent ? (jsx(Box, Object.assign({ sx: { width: isMobile ? '100vw' : 350 } }, { children: customDrawerContent }))) : (jsxs(Box, Object.assign({ sx: { width: isMobile ? '100vw' : 350 } }, { children: [jsxs(DrawerHeader$2, { children: [jsx(DrawerLogoContainer, Object.assign({ onClick: handleLogoClick }, { children: jsx(LogoImage, { src: logo, alt: "Logo" }) })), jsx(CloseIconButton, Object.assign({ onClick: handleDrawerClose, "aria-label": "close" }, { children: jsx(CloseIcon, {}) }))] }), jsx(Divider, {}), jsx(DrawerContent$2, { children: navigationLinks.length > 0 && (jsx(List, { children: navigationLinks.map((item) => (jsx(ListItem, Object.assign({ disablePadding: true }, { children: jsx(ListItemButton, Object.assign({ onClick: () => handleMenuItemClick(item) }, { children: jsx(ListItemText, { primary: formatMessage({ id: item.label }) }) })) }), item.key))) })) })] }))) }))] }));
|
|
1872
1871
|
}
|
|
1873
1872
|
|
|
1874
|
-
const DivFooter = styled('div')((
|
|
1873
|
+
const DivFooter = styled('div')(() => ({
|
|
1875
1874
|
backgroundColor: '#424242',
|
|
1876
1875
|
padding: '20px 16px',
|
|
1877
1876
|
'@media (min-width: 769px)': {
|
|
1878
1877
|
padding: '70px 0px',
|
|
1879
1878
|
},
|
|
1880
|
-
anchorLinks: {
|
|
1881
|
-
color: 'inherit',
|
|
1882
|
-
'&:hover': {
|
|
1883
|
-
color: 'inherit',
|
|
1884
|
-
},
|
|
1885
|
-
},
|
|
1886
1879
|
}));
|
|
1887
1880
|
const DivFooterConterResponsiveLayout = styled('div')(({ theme }) => ({
|
|
1888
1881
|
color: '#fff',
|
|
@@ -1892,7 +1885,7 @@ const DivFooterConterResponsiveLayout = styled('div')(({ theme }) => ({
|
|
|
1892
1885
|
margin: '0 auto',
|
|
1893
1886
|
},
|
|
1894
1887
|
}));
|
|
1895
|
-
const FooterHiddenContent = styled('div')(({
|
|
1888
|
+
const FooterHiddenContent = styled('div')(({ simplifiedLayout }) => simplifiedLayout ? { display: 'none' } : { display: 'flex' });
|
|
1896
1889
|
const DivIglooIntro = styled('div')(({ theme }) => {
|
|
1897
1890
|
var _a;
|
|
1898
1891
|
return ({
|
|
@@ -1906,7 +1899,7 @@ const DivIglooIntro = styled('div')(({ theme }) => {
|
|
|
1906
1899
|
},
|
|
1907
1900
|
});
|
|
1908
1901
|
});
|
|
1909
|
-
const DivSocial = styled('div')((
|
|
1902
|
+
const DivSocial = styled('div')(() => ({
|
|
1910
1903
|
display: 'flex',
|
|
1911
1904
|
alignItems: 'center',
|
|
1912
1905
|
margin: '0 auto',
|
|
@@ -1924,14 +1917,14 @@ const ButtonIcon = styled(Button$1)(({ theme }) => {
|
|
|
1924
1917
|
minWidth: 'auto !important',
|
|
1925
1918
|
});
|
|
1926
1919
|
});
|
|
1927
|
-
const TypographyIntro = styled(Typography)((
|
|
1920
|
+
const TypographyIntro = styled(Typography)(() => ({
|
|
1928
1921
|
textAlign: 'center',
|
|
1929
1922
|
color: `#fff !important`,
|
|
1930
1923
|
'@media (min-width: 769px)': {
|
|
1931
1924
|
textAlign: 'left',
|
|
1932
1925
|
},
|
|
1933
1926
|
}));
|
|
1934
|
-
const TypographyAddressFooter = styled(Typography)((
|
|
1927
|
+
const TypographyAddressFooter = styled(Typography)(() => ({
|
|
1935
1928
|
marginTop: 16,
|
|
1936
1929
|
textAlign: 'center',
|
|
1937
1930
|
color: '#fff',
|
|
@@ -1939,7 +1932,7 @@ const TypographyAddressFooter = styled(Typography)(({ theme }) => ({
|
|
|
1939
1932
|
textAlign: 'left',
|
|
1940
1933
|
},
|
|
1941
1934
|
}));
|
|
1942
|
-
const DivLogos = styled('div')((
|
|
1935
|
+
const DivLogos = styled('div')(() => ({
|
|
1943
1936
|
display: 'flex',
|
|
1944
1937
|
flexDirection: 'column',
|
|
1945
1938
|
gap: 16,
|
|
@@ -1952,12 +1945,12 @@ const DivLogos = styled('div')(({ theme }) => ({
|
|
|
1952
1945
|
alignItems: 'baseline',
|
|
1953
1946
|
},
|
|
1954
1947
|
}));
|
|
1955
|
-
const DivFirstRow = styled('div')((
|
|
1948
|
+
const DivFirstRow = styled('div')(() => ({
|
|
1956
1949
|
display: 'flex',
|
|
1957
1950
|
flexDirection: 'row',
|
|
1958
1951
|
gap: 16,
|
|
1959
1952
|
}));
|
|
1960
|
-
const ButtonOjkLink = styled(Button$1)((
|
|
1953
|
+
const ButtonOjkLink = styled(Button$1)(() => ({
|
|
1961
1954
|
display: 'flex',
|
|
1962
1955
|
justifyContent: 'flex-start',
|
|
1963
1956
|
'@media (min-width: 769px)': {
|
|
@@ -1965,18 +1958,18 @@ const ButtonOjkLink = styled(Button$1)(({ theme }) => ({
|
|
|
1965
1958
|
justifyContent: 'flex-start !important ',
|
|
1966
1959
|
},
|
|
1967
1960
|
}));
|
|
1968
|
-
const ImageOjkLicense = styled('img')((
|
|
1961
|
+
const ImageOjkLicense = styled('img')(() => ({
|
|
1969
1962
|
alignSelf: 'flex-start',
|
|
1970
1963
|
height: 36,
|
|
1971
1964
|
}));
|
|
1972
|
-
const ButtonSolisoustamaLink = styled(Button$1)((
|
|
1965
|
+
const ButtonSolisoustamaLink = styled(Button$1)(() => ({
|
|
1973
1966
|
display: 'flex',
|
|
1974
1967
|
justifyContent: 'flex-start',
|
|
1975
1968
|
}));
|
|
1976
|
-
const ImageSolisoustama = styled('img')((
|
|
1969
|
+
const ImageSolisoustama = styled('img')(() => ({
|
|
1977
1970
|
height: 'auto',
|
|
1978
1971
|
}));
|
|
1979
|
-
const DivLinks = styled('div')((
|
|
1972
|
+
const DivLinks = styled('div')(() => ({
|
|
1980
1973
|
display: 'flex',
|
|
1981
1974
|
flex: 1,
|
|
1982
1975
|
alignItems: 'center',
|
|
@@ -1987,7 +1980,7 @@ const DivLinks = styled('div')(({ theme }) => ({
|
|
|
1987
1980
|
alignItems: 'normal',
|
|
1988
1981
|
},
|
|
1989
1982
|
}));
|
|
1990
|
-
const DivSection = styled('div')((
|
|
1983
|
+
const DivSection = styled('div')(() => ({
|
|
1991
1984
|
display: 'flex',
|
|
1992
1985
|
flexDirection: 'column',
|
|
1993
1986
|
gap: 16,
|
|
@@ -2000,7 +1993,7 @@ const DivSection = styled('div')(({ theme }) => ({
|
|
|
2000
1993
|
},
|
|
2001
1994
|
},
|
|
2002
1995
|
}));
|
|
2003
|
-
const ButtonBottomLink = styled(Button$1)((
|
|
1996
|
+
const ButtonBottomLink = styled(Button$1)(() => ({
|
|
2004
1997
|
color: '#fff !important',
|
|
2005
1998
|
textTransform: 'capitalize',
|
|
2006
1999
|
'@media (min-width: 769px)': {
|
|
@@ -2009,22 +2002,22 @@ const ButtonBottomLink = styled(Button$1)(({ theme }) => ({
|
|
|
2009
2002
|
minWidth: 'auto !important',
|
|
2010
2003
|
},
|
|
2011
2004
|
}));
|
|
2012
|
-
const StyledDivider = styled(Divider)((
|
|
2005
|
+
const StyledDivider = styled(Divider)(() => ({
|
|
2013
2006
|
margin: '24px 0 16px !important',
|
|
2014
2007
|
borderColor: '#5F5E62 !important',
|
|
2015
2008
|
}));
|
|
2016
|
-
const DivBottom = styled('div')((
|
|
2009
|
+
const DivBottom = styled('div')(() => ({
|
|
2017
2010
|
display: 'flex',
|
|
2018
2011
|
justifyContent: 'space-between',
|
|
2019
2012
|
alignItems: 'center',
|
|
2020
2013
|
}));
|
|
2021
|
-
const DivSep = styled('div')((
|
|
2014
|
+
const DivSep = styled('div')(() => ({
|
|
2022
2015
|
width: '1px',
|
|
2023
2016
|
height: 10,
|
|
2024
2017
|
borderRadius: '1px',
|
|
2025
2018
|
backgroundColor: '#fff',
|
|
2026
2019
|
}));
|
|
2027
|
-
const AnchorLink = styled('a')((
|
|
2020
|
+
const AnchorLink = styled('a')(() => ({
|
|
2028
2021
|
color: 'inherit',
|
|
2029
2022
|
'&:hover': {
|
|
2030
2023
|
color: 'inherit',
|
|
@@ -2047,8 +2040,7 @@ const AnchorLink = styled('a')(({ theme }) => ({
|
|
|
2047
2040
|
*/
|
|
2048
2041
|
function Footer({ simplifiedLayout = false, introText, addressText, socialLinks, licenseImages, poweredByImage, navigationLinks = [], currentLocale, host = '', isMobile: propIsMobile, onLinkClick, onSocialClick, onPrivacyPolicyClick, onTermsOfServiceClick, formatMessage = (descriptor) => descriptor.id, }) {
|
|
2049
2042
|
var _a;
|
|
2050
|
-
|
|
2051
|
-
tenantTheme === null || tenantTheme === void 0 ? void 0 : tenantTheme.theme;
|
|
2043
|
+
useTenantTheme();
|
|
2052
2044
|
const muiTheme = useTheme();
|
|
2053
2045
|
const themeBreakpoint = useMediaQuery((_a = muiTheme === null || muiTheme === void 0 ? void 0 : muiTheme.breakpoints) === null || _a === void 0 ? void 0 : _a.down('md'));
|
|
2054
2046
|
const isMobile = propIsMobile !== undefined ? propIsMobile : themeBreakpoint;
|
|
@@ -2065,7 +2057,7 @@ function Footer({ simplifiedLayout = false, introText, addressText, socialLinks,
|
|
|
2065
2057
|
}), index === navigationLinks.length - 1 && (jsxs(Fragment, { children: [jsx(ButtonBottomLink, Object.assign({ onClick: onPrivacyPolicyClick }, { children: jsx(Typography, Object.assign({ variant: "body1" }, { children: jsx(AnchorLink, Object.assign({ href: `${host}/${currentLocale}/terms/privacypolicy`, onClick: (e) => e === null || e === void 0 ? void 0 : e.preventDefault() }, { children: formatMessage({ id: 'Privacy Policy' }) })) })) })), jsx(ButtonBottomLink, Object.assign({ onClick: onTermsOfServiceClick }, { children: jsx(Typography, Object.assign({ variant: "body1" }, { children: jsx(AnchorLink, Object.assign({ href: `${host}/${currentLocale}/terms/termsofservice`, onClick: (e) => e === null || e === void 0 ? void 0 : e.preventDefault() }, { children: formatMessage({ id: 'Terms of Service' }) })) })) })), jsx(DivSocial, { children: socialLinks.map((social) => (jsx(ButtonIcon, Object.assign({ onClick: () => onSocialClick === null || onSocialClick === void 0 ? void 0 : onSocialClick(social.platform, social.url), "aria-label": social.ariaLabel || social.platform }, { children: jsx(AnchorLink, Object.assign({ href: social.url, onClick: (e) => e === null || e === void 0 ? void 0 : e.preventDefault() }, { children: jsx("img", { src: social.icon, alt: social.platform, height: isMobile ? '24' : '28', width: isMobile ? '24' : '28', loading: "lazy" }) })) }), social.platform))) })] }))] }, index))) }))] })), isMobile && jsx(StyledDivider, {}), isMobile && (jsx(DivBottom, { children: jsxs(DivLinks, { children: [jsx("div", Object.assign({ onClick: onPrivacyPolicyClick, style: { cursor: 'pointer' } }, { children: jsx(Typography, Object.assign({ variant: "body2" }, { children: jsx(AnchorLink, Object.assign({ href: `${host}/${currentLocale}/terms/privacypolicy`, onClick: (e) => e === null || e === void 0 ? void 0 : e.preventDefault() }, { children: formatMessage({ id: 'Privacy Policy' }) })) })) })), jsx(DivSep, {}), jsx("div", Object.assign({ onClick: onTermsOfServiceClick, style: { cursor: 'pointer' } }, { children: jsx(Typography, Object.assign({ variant: "body2" }, { children: jsx(AnchorLink, Object.assign({ href: `${host}/${currentLocale}/terms/termsofservice`, onClick: (e) => e === null || e === void 0 ? void 0 : e.preventDefault() }, { children: formatMessage({ id: 'Terms of Service' }) })) })) }))] }) }))] }) }));
|
|
2066
2058
|
}
|
|
2067
2059
|
|
|
2068
|
-
const StyledDrawer$1 = styled(Drawer)((
|
|
2060
|
+
const StyledDrawer$1 = styled(Drawer)(() => ({
|
|
2069
2061
|
zIndex: '1300 !important',
|
|
2070
2062
|
'& .MuiDrawer-root': {
|
|
2071
2063
|
zIndex: 1300,
|
|
@@ -2080,36 +2072,36 @@ const StyledDrawer$1 = styled(Drawer)(({ theme }) => ({
|
|
|
2080
2072
|
zIndex: 1299,
|
|
2081
2073
|
},
|
|
2082
2074
|
}));
|
|
2083
|
-
const DrawerHeader$1 = styled(Box)((
|
|
2075
|
+
const DrawerHeader$1 = styled(Box)(() => ({
|
|
2084
2076
|
display: 'flex',
|
|
2085
2077
|
alignItems: 'center',
|
|
2086
2078
|
justifyContent: 'flex-end',
|
|
2087
2079
|
padding: '16px',
|
|
2088
2080
|
minHeight: '56px',
|
|
2089
2081
|
}));
|
|
2090
|
-
const DrawerContent$1 = styled(Box)((
|
|
2082
|
+
const DrawerContent$1 = styled(Box)(() => ({
|
|
2091
2083
|
flex: 1,
|
|
2092
2084
|
overflowY: 'auto',
|
|
2093
2085
|
padding: '16px 0',
|
|
2094
2086
|
}));
|
|
2095
|
-
const DrawerFooter = styled(Box)((
|
|
2087
|
+
const DrawerFooter = styled(Box)(() => ({
|
|
2096
2088
|
padding: '16px',
|
|
2097
2089
|
backgroundColor: '#FFFFFF',
|
|
2098
2090
|
borderTop: 'none',
|
|
2099
2091
|
boxShadow: '0px -2px 8px rgba(0, 0, 0, 0.08)',
|
|
2100
2092
|
}));
|
|
2101
|
-
styled(Button$1)((
|
|
2093
|
+
styled(Button$1)(() => ({
|
|
2102
2094
|
minWidth: 'auto',
|
|
2103
2095
|
padding: 0,
|
|
2104
2096
|
}));
|
|
2105
|
-
const HeaderSection = styled(Box)((
|
|
2097
|
+
const HeaderSection = styled(Box)(() => ({
|
|
2106
2098
|
backgroundColor: '#FFFFFF',
|
|
2107
2099
|
padding: '16px',
|
|
2108
2100
|
display: 'flex',
|
|
2109
2101
|
flexDirection: 'column',
|
|
2110
2102
|
gap: '12px',
|
|
2111
2103
|
}));
|
|
2112
|
-
const CategoryIcon = styled(Box)((
|
|
2104
|
+
const CategoryIcon = styled(Box)(() => ({
|
|
2113
2105
|
width: '32px',
|
|
2114
2106
|
height: '32px',
|
|
2115
2107
|
display: 'flex',
|
|
@@ -2127,21 +2119,21 @@ const TitleText = styled(Typography)(({ theme }) => ({
|
|
|
2127
2119
|
lineHeight: '24px',
|
|
2128
2120
|
},
|
|
2129
2121
|
}));
|
|
2130
|
-
const SubtitleText = styled(Typography)((
|
|
2122
|
+
const SubtitleText = styled(Typography)(() => ({
|
|
2131
2123
|
fontWeight: 400,
|
|
2132
2124
|
fontSize: '14px',
|
|
2133
2125
|
lineHeight: '18px',
|
|
2134
2126
|
wordSpacing: '-5px',
|
|
2135
2127
|
color: '#5F5E62',
|
|
2136
2128
|
}));
|
|
2137
|
-
const FooterButtons = styled(Box)((
|
|
2129
|
+
const FooterButtons = styled(Box)(() => ({
|
|
2138
2130
|
display: 'flex',
|
|
2139
2131
|
flexDirection: 'column',
|
|
2140
2132
|
gap: '16px',
|
|
2141
2133
|
width: '100%',
|
|
2142
2134
|
}));
|
|
2143
2135
|
// Base button styles - colors will be injected via sx prop from component
|
|
2144
|
-
const PrimaryButton = styled(Button$1)((
|
|
2136
|
+
const PrimaryButton = styled(Button$1)(() => ({
|
|
2145
2137
|
color: '#FFFFFF',
|
|
2146
2138
|
borderRadius: '24px',
|
|
2147
2139
|
height: '48px',
|
|
@@ -2155,7 +2147,7 @@ const PrimaryButton = styled(Button$1)(({ theme }) => ({
|
|
|
2155
2147
|
color: '#FFFFFF',
|
|
2156
2148
|
},
|
|
2157
2149
|
}));
|
|
2158
|
-
const SecondaryButton = styled(Button$1)((
|
|
2150
|
+
const SecondaryButton = styled(Button$1)(() => ({
|
|
2159
2151
|
borderRadius: '8px',
|
|
2160
2152
|
height: '40px',
|
|
2161
2153
|
textTransform: 'none',
|
|
@@ -2183,13 +2175,11 @@ const SecondaryButton = styled(Button$1)(({ theme }) => ({
|
|
|
2183
2175
|
* ```
|
|
2184
2176
|
*/
|
|
2185
2177
|
function RecommendationsDrawer({ open, onClose, children, headerIcon, title, subtitle, showBackButton = false, onBack, primaryButtonText, onPrimaryAction, primaryButtonDisabled = false, secondaryButtonText, onSecondaryAction, showFooter = true, customFooter, formatMessage = (descriptor) => descriptor.id, }) {
|
|
2186
|
-
var _a, _b, _c
|
|
2187
|
-
|
|
2188
|
-
useMediaQuery((_a = muiTheme === null || muiTheme === void 0 ? void 0 : muiTheme.breakpoints) === null || _a === void 0 ? void 0 : _a.down('md'));
|
|
2178
|
+
var _a, _b, _c;
|
|
2179
|
+
useTheme();
|
|
2189
2180
|
const tenantTheme = useTenantTheme();
|
|
2190
2181
|
// Get primary color from tenant theme, fallback to default
|
|
2191
|
-
const primaryColor = ((
|
|
2192
|
-
((_g = (_f = (_e = tenantTheme === null || tenantTheme === void 0 ? void 0 : tenantTheme.theme) === null || _e === void 0 ? void 0 : _e.palette) === null || _f === void 0 ? void 0 : _f.primary) === null || _g === void 0 ? void 0 : _g.dark) || '#2869a8';
|
|
2182
|
+
const primaryColor = ((_c = (_b = (_a = tenantTheme === null || tenantTheme === void 0 ? void 0 : tenantTheme.theme) === null || _a === void 0 ? void 0 : _a.palette) === null || _b === void 0 ? void 0 : _b.primary) === null || _c === void 0 ? void 0 : _c.main) || '#0090DA';
|
|
2193
2183
|
// Helper to convert hex to rgba
|
|
2194
2184
|
const hexToRgba = (hex, alpha) => {
|
|
2195
2185
|
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
@@ -2234,7 +2224,7 @@ function RecommendationsDrawer({ open, onClose, children, headerIcon, title, sub
|
|
|
2234
2224
|
} }, { children: formatMessage({ id: secondaryButtonText }) })))] })) }))] })) })));
|
|
2235
2225
|
}
|
|
2236
2226
|
|
|
2237
|
-
const StyledDrawer = styled$1(Drawer)((
|
|
2227
|
+
const StyledDrawer = styled$1(Drawer)(() => ({
|
|
2238
2228
|
zIndex: 1300,
|
|
2239
2229
|
'& .MuiDrawer-paper': {
|
|
2240
2230
|
borderTopLeftRadius: '8px',
|
|
@@ -2368,7 +2358,7 @@ function ProductSelectionDrawer({ open, onClose, products, onProductSelect, titl
|
|
|
2368
2358
|
} }, { children: viewPlansButtonText }))] }, product.id))) }) })] }) })));
|
|
2369
2359
|
}
|
|
2370
2360
|
|
|
2371
|
-
const QuestionContainer$1 = styled(Box)((
|
|
2361
|
+
const QuestionContainer$1 = styled(Box)(() => ({
|
|
2372
2362
|
backgroundColor: '#FFFFFF',
|
|
2373
2363
|
padding: '12px 16px',
|
|
2374
2364
|
display: 'flex',
|
|
@@ -2376,7 +2366,7 @@ const QuestionContainer$1 = styled(Box)(({ theme }) => ({
|
|
|
2376
2366
|
gap: '16px',
|
|
2377
2367
|
width: '100%',
|
|
2378
2368
|
}));
|
|
2379
|
-
const QuestionHeader = styled(Box)((
|
|
2369
|
+
const QuestionHeader = styled(Box)(() => ({
|
|
2380
2370
|
display: 'flex',
|
|
2381
2371
|
flexDirection: 'column',
|
|
2382
2372
|
gap: '6px',
|
|
@@ -2430,7 +2420,7 @@ const OptionsContainer$1 = styled(Box)(({ theme }) => ({
|
|
|
2430
2420
|
* />
|
|
2431
2421
|
* ```
|
|
2432
2422
|
*/
|
|
2433
|
-
function QuestionSection({ questionNumber, question, helperText, options, selectedValue,
|
|
2423
|
+
function QuestionSection({ questionNumber, question, helperText, options, selectedValue, multiple = false, selectedValues = [], renderOption, formatMessage = (descriptor) => descriptor.id, }) {
|
|
2434
2424
|
const isSelected = (optionValue) => {
|
|
2435
2425
|
if (multiple) {
|
|
2436
2426
|
return selectedValues.includes(optionValue);
|
|
@@ -2568,7 +2558,7 @@ function OptionButton({ value, label, icon, selected = false, disabled = false,
|
|
|
2568
2558
|
return (jsx(StyledOptionButton, Object.assign({ selected: selected, disabled: disabled, onClick: handleClick, size: size, fullWidth: fullWidth, colorVariant: variant }, { children: jsxs(OptionContent, { children: [icon && jsx(OptionIcon, { children: icon }), jsx(OptionLabel, Object.assign({ selected: selected, disabled: disabled, colorVariant: variant }, { children: formatMessage({ id: label }) }))] }) })));
|
|
2569
2559
|
}
|
|
2570
2560
|
|
|
2571
|
-
const ToggleContainer$1 = styled(Box)((
|
|
2561
|
+
const ToggleContainer$1 = styled(Box)(() => ({
|
|
2572
2562
|
backgroundColor: '#F9F9F9',
|
|
2573
2563
|
borderRadius: '40px',
|
|
2574
2564
|
display: 'flex',
|
|
@@ -2577,7 +2567,7 @@ const ToggleContainer$1 = styled(Box)(({ theme }) => ({
|
|
|
2577
2567
|
padding: '0',
|
|
2578
2568
|
width: '100%',
|
|
2579
2569
|
}));
|
|
2580
|
-
const ToggleButton$1 = styled(ButtonBase)(({
|
|
2570
|
+
const ToggleButton$1 = styled(ButtonBase)(({ selected }) => ({
|
|
2581
2571
|
flex: 1,
|
|
2582
2572
|
display: 'flex',
|
|
2583
2573
|
alignItems: 'center',
|
|
@@ -2591,7 +2581,7 @@ const ToggleButton$1 = styled(ButtonBase)(({ theme, selected }) => ({
|
|
|
2591
2581
|
backgroundColor: selected ? '#00D080' : 'rgba(0, 0, 0, 0.04)',
|
|
2592
2582
|
},
|
|
2593
2583
|
}));
|
|
2594
|
-
const ToggleIcon = styled(Box)((
|
|
2584
|
+
const ToggleIcon = styled(Box)(() => ({
|
|
2595
2585
|
backgroundColor: '#FFFFFF',
|
|
2596
2586
|
borderRadius: '50px',
|
|
2597
2587
|
width: '32px',
|
|
@@ -2601,7 +2591,7 @@ const ToggleIcon = styled(Box)(({ theme }) => ({
|
|
|
2601
2591
|
justifyContent: 'center',
|
|
2602
2592
|
padding: '6px',
|
|
2603
2593
|
}));
|
|
2604
|
-
const ToggleLabel = styled(Typography)(({
|
|
2594
|
+
const ToggleLabel = styled(Typography)(({ selected }) => ({
|
|
2605
2595
|
fontFamily: '"Montserrat", sans-serif',
|
|
2606
2596
|
fontWeight: 600,
|
|
2607
2597
|
fontSize: '14px',
|
|
@@ -2748,12 +2738,12 @@ const ToggleButton = styled(Box)(({ theme, active }) => {
|
|
|
2748
2738
|
});
|
|
2749
2739
|
});
|
|
2750
2740
|
const ToggleText = styled(Typography)(({ theme }) => {
|
|
2751
|
-
var _a, _b, _c, _d, _e
|
|
2741
|
+
var _a, _b, _c, _d, _e;
|
|
2752
2742
|
return ({
|
|
2753
|
-
fontFamily:
|
|
2754
|
-
fontSize: ((
|
|
2755
|
-
fontWeight: ((
|
|
2756
|
-
lineHeight: ((
|
|
2743
|
+
fontFamily: theme.typography.fontFamily,
|
|
2744
|
+
fontSize: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _a === void 0 ? void 0 : _a.bodyMedium) === null || _b === void 0 ? void 0 : _b.fontSize) || '14px',
|
|
2745
|
+
fontWeight: ((_c = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _c === void 0 ? void 0 : _c.fontWeightSemiBold) || 600,
|
|
2746
|
+
lineHeight: ((_e = (_d = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _d === void 0 ? void 0 : _d.bodyMedium) === null || _e === void 0 ? void 0 : _e.lineHeight) || '20px',
|
|
2757
2747
|
whiteSpace: 'nowrap',
|
|
2758
2748
|
wordSpacing: '-5px',
|
|
2759
2749
|
});
|
|
@@ -2814,7 +2804,7 @@ const CalloutContainer = styled(Box)(({ theme }) => {
|
|
|
2814
2804
|
width: '100%',
|
|
2815
2805
|
});
|
|
2816
2806
|
});
|
|
2817
|
-
const CalloutHeader = styled(Box)((
|
|
2807
|
+
const CalloutHeader = styled(Box)(() => ({
|
|
2818
2808
|
display: 'flex',
|
|
2819
2809
|
gap: '4px',
|
|
2820
2810
|
alignItems: 'center',
|
|
@@ -2828,14 +2818,14 @@ const CalloutIcon = styled(InfoIcon)(({ theme }) => {
|
|
|
2828
2818
|
});
|
|
2829
2819
|
});
|
|
2830
2820
|
const CalloutTitle = styled(Typography)(({ theme }) => {
|
|
2831
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
2821
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
2832
2822
|
return ({
|
|
2833
|
-
fontFamily:
|
|
2834
|
-
fontSize: ((
|
|
2835
|
-
fontWeight: ((
|
|
2836
|
-
lineHeight: ((
|
|
2823
|
+
fontFamily: theme.typography.fontFamily,
|
|
2824
|
+
fontSize: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _a === void 0 ? void 0 : _a.bodyMedium) === null || _b === void 0 ? void 0 : _b.fontSize) || '16px',
|
|
2825
|
+
fontWeight: ((_c = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _c === void 0 ? void 0 : _c.fontWeightSemiBold) || 700,
|
|
2826
|
+
lineHeight: ((_e = (_d = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _d === void 0 ? void 0 : _d.bodyMedium) === null || _e === void 0 ? void 0 : _e.lineHeight) || '20px',
|
|
2837
2827
|
wordSpacing: '-5px',
|
|
2838
|
-
color: ((
|
|
2828
|
+
color: ((_g = (_f = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _f === void 0 ? void 0 : _f.natural) === null || _g === void 0 ? void 0 : _g.dim) || '#13131b',
|
|
2839
2829
|
[theme.breakpoints.down('md')]: {
|
|
2840
2830
|
fontSize: '14px',
|
|
2841
2831
|
lineHeight: '20px',
|
|
@@ -2843,15 +2833,14 @@ const CalloutTitle = styled(Typography)(({ theme }) => {
|
|
|
2843
2833
|
});
|
|
2844
2834
|
});
|
|
2845
2835
|
const CalloutText = styled(Typography)(({ theme }) => {
|
|
2846
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
2836
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2847
2837
|
return ({
|
|
2848
|
-
fontFamily:
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
lineHeight: ((_g = (_f = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _f === void 0 ? void 0 : _f.bodySmall) === null || _g === void 0 ? void 0 : _g.lineHeight) || '16px',
|
|
2838
|
+
fontFamily: theme.typography.fontFamily || '',
|
|
2839
|
+
fontSize: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _a === void 0 ? void 0 : _a.bodySmall) === null || _b === void 0 ? void 0 : _b.fontSize) || '14px',
|
|
2840
|
+
fontWeight: ((_d = (_c = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _c === void 0 ? void 0 : _c.bodySmall) === null || _d === void 0 ? void 0 : _d.fontWeight) || 400,
|
|
2841
|
+
lineHeight: ((_f = (_e = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _e === void 0 ? void 0 : _e.bodySmall) === null || _f === void 0 ? void 0 : _f.lineHeight) || '16px',
|
|
2853
2842
|
wordSpacing: '-5px',
|
|
2854
|
-
color: ((
|
|
2843
|
+
color: ((_h = (_g = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _g === void 0 ? void 0 : _g.natural) === null || _h === void 0 ? void 0 : _h.dark) || '#5f5e62',
|
|
2855
2844
|
[theme.breakpoints.down('md')]: {
|
|
2856
2845
|
fontSize: '12px',
|
|
2857
2846
|
lineHeight: '14px',
|
|
@@ -2899,22 +2888,21 @@ const SliderContainer = styled(Box)(({ theme }) => {
|
|
|
2899
2888
|
width: '100%',
|
|
2900
2889
|
});
|
|
2901
2890
|
});
|
|
2902
|
-
const InputSection = styled(Box)((
|
|
2891
|
+
const InputSection = styled(Box)(() => ({
|
|
2903
2892
|
display: 'flex',
|
|
2904
2893
|
flexDirection: 'column',
|
|
2905
2894
|
gap: '8px',
|
|
2906
2895
|
width: '100%',
|
|
2907
2896
|
}));
|
|
2908
2897
|
const InputLabel = styled(Typography)(({ theme }) => {
|
|
2909
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
2898
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2910
2899
|
return ({
|
|
2911
|
-
fontFamily:
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
lineHeight: ((_g = (_f = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _f === void 0 ? void 0 : _f.bodySmall) === null || _g === void 0 ? void 0 : _g.lineHeight) || '16px',
|
|
2900
|
+
fontFamily: theme.typography.fontFamily || '',
|
|
2901
|
+
fontSize: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _a === void 0 ? void 0 : _a.bodySmall) === null || _b === void 0 ? void 0 : _b.fontSize) || '12px',
|
|
2902
|
+
fontWeight: ((_d = (_c = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _c === void 0 ? void 0 : _c.bodySmall) === null || _d === void 0 ? void 0 : _d.fontWeight) || 400,
|
|
2903
|
+
lineHeight: ((_f = (_e = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _e === void 0 ? void 0 : _e.bodySmall) === null || _f === void 0 ? void 0 : _f.lineHeight) || '16px',
|
|
2916
2904
|
wordSpacing: '-5px',
|
|
2917
|
-
color: ((
|
|
2905
|
+
color: ((_h = (_g = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _g === void 0 ? void 0 : _g.natural) === null || _h === void 0 ? void 0 : _h.dim) || '#13131b',
|
|
2918
2906
|
});
|
|
2919
2907
|
});
|
|
2920
2908
|
const InputContainer = styled(Box)(({ theme }) => {
|
|
@@ -2930,24 +2918,23 @@ const InputContainer = styled(Box)(({ theme }) => {
|
|
|
2930
2918
|
border: `1px solid ${((_d = (_c = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _c === void 0 ? void 0 : _c.ui) === null || _d === void 0 ? void 0 : _d.inputBorder) || '#eeeeee'}`,
|
|
2931
2919
|
borderRadius: '8px',
|
|
2932
2920
|
width: '100%',
|
|
2933
|
-
maxWidth: 'initial',
|
|
2921
|
+
maxWidth: 'initial',
|
|
2934
2922
|
});
|
|
2935
2923
|
});
|
|
2936
2924
|
const InputValue = styled(Typography)(({ theme }) => {
|
|
2937
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
2925
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2938
2926
|
return ({
|
|
2939
|
-
fontFamily:
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
lineHeight: ((_g = (_f = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _f === void 0 ? void 0 : _f.bodyMedium) === null || _g === void 0 ? void 0 : _g.lineHeight) || '18px',
|
|
2927
|
+
fontFamily: theme.typography.fontFamily || '',
|
|
2928
|
+
fontSize: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _a === void 0 ? void 0 : _a.bodyMedium) === null || _b === void 0 ? void 0 : _b.fontSize) || '14px',
|
|
2929
|
+
fontWeight: ((_d = (_c = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _c === void 0 ? void 0 : _c.bodyMedium) === null || _d === void 0 ? void 0 : _d.fontWeight) || 400,
|
|
2930
|
+
lineHeight: ((_f = (_e = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _e === void 0 ? void 0 : _e.bodyMedium) === null || _f === void 0 ? void 0 : _f.lineHeight) || '18px',
|
|
2944
2931
|
wordSpacing: '-5px',
|
|
2945
|
-
color: ((
|
|
2932
|
+
color: ((_h = (_g = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _g === void 0 ? void 0 : _g.natural) === null || _h === void 0 ? void 0 : _h.dim) || '#13131b',
|
|
2946
2933
|
textAlign: 'center',
|
|
2947
2934
|
flex: 1,
|
|
2948
2935
|
});
|
|
2949
2936
|
});
|
|
2950
|
-
styled(Box)((
|
|
2937
|
+
styled(Box)(() => ({
|
|
2951
2938
|
display: 'flex',
|
|
2952
2939
|
alignItems: 'center',
|
|
2953
2940
|
position: 'relative',
|
|
@@ -2987,7 +2974,7 @@ styled(Box)(({ theme, active }) => {
|
|
|
2987
2974
|
},
|
|
2988
2975
|
});
|
|
2989
2976
|
});
|
|
2990
|
-
styled(Box)((
|
|
2977
|
+
styled(Box)(() => ({
|
|
2991
2978
|
position: 'absolute',
|
|
2992
2979
|
width: '18px',
|
|
2993
2980
|
height: '18px',
|
|
@@ -3016,22 +3003,21 @@ styled(Box)(({ theme }) => {
|
|
|
3016
3003
|
color: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _a === void 0 ? void 0 : _a.ui) === null || _b === void 0 ? void 0 : _b.sliderActive) || '#317abc',
|
|
3017
3004
|
});
|
|
3018
3005
|
});
|
|
3019
|
-
styled(Box)((
|
|
3006
|
+
styled(Box)(() => ({
|
|
3020
3007
|
display: 'flex',
|
|
3021
3008
|
justifyContent: 'space-between',
|
|
3022
3009
|
width: '100%',
|
|
3023
|
-
maxWidth: 'initial',
|
|
3010
|
+
maxWidth: 'initial',
|
|
3024
3011
|
}));
|
|
3025
3012
|
const RangeLabel = styled(Typography)(({ theme }) => {
|
|
3026
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
3013
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3027
3014
|
return ({
|
|
3028
|
-
fontFamily:
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
lineHeight: ((_g = (_f = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _f === void 0 ? void 0 : _f.smallText) === null || _g === void 0 ? void 0 : _g.lineHeight) || '16px',
|
|
3015
|
+
fontFamily: theme.typography.fontFamily || '',
|
|
3016
|
+
fontSize: ((_b = (_a = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _a === void 0 ? void 0 : _a.smallText) === null || _b === void 0 ? void 0 : _b.fontSize) || '8px',
|
|
3017
|
+
fontWeight: ((_d = (_c = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _c === void 0 ? void 0 : _c.smallText) === null || _d === void 0 ? void 0 : _d.fontWeight) || 500,
|
|
3018
|
+
lineHeight: ((_f = (_e = theme === null || theme === void 0 ? void 0 : theme.typography) === null || _e === void 0 ? void 0 : _e.smallText) === null || _f === void 0 ? void 0 : _f.lineHeight) || '16px',
|
|
3033
3019
|
wordSpacing: '-5px',
|
|
3034
|
-
color: ((
|
|
3020
|
+
color: ((_h = (_g = theme === null || theme === void 0 ? void 0 : theme.palette) === null || _g === void 0 ? void 0 : _g.natural) === null || _h === void 0 ? void 0 : _h.main) || '#929094',
|
|
3035
3021
|
});
|
|
3036
3022
|
});
|
|
3037
3023
|
const StyledMuiSlider = styled(Slider)(({ theme, sliderActiveColor, sliderInactiveColor }) => {
|
|
@@ -3094,7 +3080,7 @@ const StyledMuiSlider = styled(Slider)(({ theme, sliderActiveColor, sliderInacti
|
|
|
3094
3080
|
},
|
|
3095
3081
|
});
|
|
3096
3082
|
});
|
|
3097
|
-
const SliderLabelsContainer = styled(Box)((
|
|
3083
|
+
const SliderLabelsContainer = styled(Box)(() => ({
|
|
3098
3084
|
display: 'flex',
|
|
3099
3085
|
justifyContent: 'space-between',
|
|
3100
3086
|
width: '100%',
|
|
@@ -3272,7 +3258,6 @@ const ProductCardContainer = styled(Box)(({ theme, showIndicator }) => {
|
|
|
3272
3258
|
const LogoContainer = styled(Box)({
|
|
3273
3259
|
width: '45px',
|
|
3274
3260
|
height: '40px',
|
|
3275
|
-
border: '1.25px solid rgba(0, 0, 0, 0.1)',
|
|
3276
3261
|
borderRadius: '10px',
|
|
3277
3262
|
display: 'flex',
|
|
3278
3263
|
alignItems: 'center',
|
|
@@ -3455,6 +3440,7 @@ const HealthQuestionGroup = ({ question, questionNumber, value, onChange, error,
|
|
|
3455
3440
|
color: 'error.main',
|
|
3456
3441
|
fontSize: '12px',
|
|
3457
3442
|
mt: 0.5,
|
|
3443
|
+
wordSpacing: '-5px',
|
|
3458
3444
|
} }, { children: error })))] })));
|
|
3459
3445
|
};
|
|
3460
3446
|
|
|
@@ -3528,18 +3514,21 @@ const PersonalInformationForm = ({ renderField, fields, consents, onSubmit, form
|
|
|
3528
3514
|
ml: 2,
|
|
3529
3515
|
color: '#5F5E62',
|
|
3530
3516
|
fontSize: '12px',
|
|
3517
|
+
wordSpacing: '-5px',
|
|
3531
3518
|
} }, { children: fields.full_name.helperText })))] }), renderField(fields.nric), renderField(fields.date_of_birth), renderField(fields.gender), renderField(fields.salutation), renderField(fields.nationality), renderField(fields.occupation), renderField(fields.industry), renderField(fields.crediting_bank_name), renderField(fields.crediting_bank_account_number), desktopGridLayout ? (jsx(FullWidthField$1, { children: jsxs(CheckboxContainer$1, { children: [jsx(FormControlLabel, { control: jsx(Checkbox, { checked: consents.bank_account_confirmation.checked, onChange: (e) => consents.bank_account_confirmation.onChange(e.target.checked), name: "bank_account_confirmation" }), label: jsx(CheckboxLabel$1, { children: consents.bank_account_confirmation.label ||
|
|
3532
3519
|
defaultBankConfirmationLabel }) }), consents.bank_account_confirmation.error && (jsx(Typography, Object.assign({ sx: {
|
|
3533
3520
|
color: 'error.main',
|
|
3534
3521
|
fontSize: '12px',
|
|
3535
3522
|
mt: 0.5,
|
|
3536
3523
|
ml: 4,
|
|
3524
|
+
wordSpacing: '-5px',
|
|
3537
3525
|
} }, { children: consents.bank_account_confirmation.error })))] }) })) : (jsxs(CheckboxContainer$1, { children: [jsx(FormControlLabel, { control: jsx(Checkbox, { checked: consents.bank_account_confirmation.checked, onChange: (e) => consents.bank_account_confirmation.onChange(e.target.checked), name: "bank_account_confirmation" }), label: jsx(CheckboxLabel$1, { children: consents.bank_account_confirmation.label ||
|
|
3538
3526
|
defaultBankConfirmationLabel }) }), consents.bank_account_confirmation.error && (jsx(Typography, Object.assign({ sx: {
|
|
3539
3527
|
color: 'error.main',
|
|
3540
3528
|
fontSize: '12px',
|
|
3541
3529
|
mt: 0.5,
|
|
3542
3530
|
ml: 4,
|
|
3531
|
+
wordSpacing: '-5px',
|
|
3543
3532
|
} }, { children: consents.bank_account_confirmation.error })))] })), desktopGridLayout ? (jsx(FullWidthField$1, { children: jsx(CheckboxContainer$1, { children: jsx(FormControlLabel, { control: jsx(Checkbox, { checked: consents.marketing_consent.checked, onChange: (e) => consents.marketing_consent.onChange(e.target.checked), name: "marketing_consent" }), label: jsx(CheckboxLabel$1, { children: consents.marketing_consent.label || defaultMarketingLabel }) }) }) })) : (jsx(CheckboxContainer$1, { children: jsx(FormControlLabel, { control: jsx(Checkbox, { checked: consents.marketing_consent.checked, onChange: (e) => consents.marketing_consent.onChange(e.target.checked), name: "marketing_consent" }), label: jsx(CheckboxLabel$1, { children: consents.marketing_consent.label || defaultMarketingLabel }) }) }))] })) })));
|
|
3544
3533
|
};
|
|
3545
3534
|
|
|
@@ -3753,6 +3742,7 @@ const ChildInformationForm = ({ renderField, fields, onSubmit, formRef, sx, desk
|
|
|
3753
3742
|
ml: 2,
|
|
3754
3743
|
color: '#5F5E62',
|
|
3755
3744
|
fontSize: '12px',
|
|
3745
|
+
wordSpacing: '-5px',
|
|
3756
3746
|
} }, { children: fields.full_name.helperText })))] }), fields.nric ? renderField(fields.nric) : renderField(fields.date_of_birth), fields.nric && renderField(fields.date_of_birth), renderField(fields.gender), renderField(fields.nationality)] }) })));
|
|
3757
3747
|
}
|
|
3758
3748
|
// Mobile layout - single column
|
|
@@ -3762,6 +3752,7 @@ const ChildInformationForm = ({ renderField, fields, onSubmit, formRef, sx, desk
|
|
|
3762
3752
|
ml: 2,
|
|
3763
3753
|
color: '#5F5E62',
|
|
3764
3754
|
fontSize: '12px',
|
|
3755
|
+
wordSpacing: '-5px',
|
|
3765
3756
|
} }, { children: fields.full_name.helperText })))] }), fields.nric && renderField(fields.nric), renderField(fields.date_of_birth), renderField(fields.gender), renderField(fields.nationality)] })) })));
|
|
3766
3757
|
};
|
|
3767
3758
|
|
|
@@ -3780,23 +3771,23 @@ const FAQContainer = styled$1(Box)(({ theme }) => ({
|
|
|
3780
3771
|
backgroundColor: '#ffffff',
|
|
3781
3772
|
[theme.breakpoints.up('md')]: {
|
|
3782
3773
|
padding: '70px 0',
|
|
3783
|
-
gap: '
|
|
3774
|
+
gap: '40px',
|
|
3784
3775
|
},
|
|
3785
3776
|
}));
|
|
3786
3777
|
const FAQTitle = styled$1(Typography)(({ theme }) => ({
|
|
3787
3778
|
fontWeight: 700,
|
|
3788
3779
|
fontSize: '20px',
|
|
3789
3780
|
lineHeight: '28px',
|
|
3790
|
-
wordSpacing: '
|
|
3781
|
+
wordSpacing: '0px',
|
|
3791
3782
|
textAlign: 'center',
|
|
3792
3783
|
width: '100%',
|
|
3793
3784
|
margin: 0,
|
|
3794
3785
|
[theme.breakpoints.up('md')]: {
|
|
3795
3786
|
fontSize: '28px',
|
|
3796
|
-
lineHeight: '
|
|
3787
|
+
lineHeight: '38px',
|
|
3797
3788
|
},
|
|
3798
3789
|
}));
|
|
3799
|
-
const StyledAccordion = styled$1(Accordion)((
|
|
3790
|
+
const StyledAccordion = styled$1(Accordion)(() => ({
|
|
3800
3791
|
backgroundColor: 'transparent',
|
|
3801
3792
|
boxShadow: 'none',
|
|
3802
3793
|
borderRadius: 0,
|
|
@@ -3809,16 +3800,8 @@ const StyledAccordion = styled$1(Accordion)(({ theme }) => ({
|
|
|
3809
3800
|
'&.Mui-expanded': {
|
|
3810
3801
|
margin: 0,
|
|
3811
3802
|
},
|
|
3812
|
-
[theme.breakpoints.up('md')]: {
|
|
3813
|
-
marginTop: '12px',
|
|
3814
|
-
marginBottom: '12px',
|
|
3815
|
-
'&.Mui-expanded': {
|
|
3816
|
-
marginTop: '12px',
|
|
3817
|
-
marginBottom: '12px',
|
|
3818
|
-
},
|
|
3819
|
-
},
|
|
3820
3803
|
}));
|
|
3821
|
-
const StyledAccordionSummary = styled$1(AccordionSummary)((
|
|
3804
|
+
const StyledAccordionSummary = styled$1(AccordionSummary)(() => ({
|
|
3822
3805
|
minHeight: '48px',
|
|
3823
3806
|
padding: '12px 0',
|
|
3824
3807
|
gap: '6px',
|
|
@@ -3833,34 +3816,45 @@ const StyledAccordionSummary = styled$1(AccordionSummary)(({ theme }) => ({
|
|
|
3833
3816
|
},
|
|
3834
3817
|
'& .MuiAccordionSummary-expandIconWrapper': {
|
|
3835
3818
|
transition: 'transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms',
|
|
3819
|
+
width: '48px',
|
|
3820
|
+
height: '48px',
|
|
3821
|
+
display: 'flex',
|
|
3822
|
+
alignItems: 'center',
|
|
3823
|
+
justifyContent: 'center',
|
|
3836
3824
|
},
|
|
3837
3825
|
}));
|
|
3838
3826
|
const FAQQuestion = styled$1(Typography)(({ theme }) => ({
|
|
3839
3827
|
fontWeight: 700,
|
|
3840
3828
|
fontSize: '14px',
|
|
3841
3829
|
lineHeight: '20px',
|
|
3842
|
-
wordSpacing: '
|
|
3830
|
+
wordSpacing: '0px',
|
|
3843
3831
|
flex: 1,
|
|
3844
3832
|
[theme.breakpoints.up('md')]: {
|
|
3845
|
-
fontSize: '
|
|
3846
|
-
lineHeight: '
|
|
3833
|
+
fontSize: '18px',
|
|
3834
|
+
lineHeight: '24px',
|
|
3847
3835
|
},
|
|
3848
3836
|
}));
|
|
3849
3837
|
const StyledAccordionDetails = styled$1(AccordionDetails)(({ theme }) => ({
|
|
3850
3838
|
fontWeight: 400,
|
|
3851
3839
|
fontSize: '14px',
|
|
3852
3840
|
lineHeight: '20px',
|
|
3853
|
-
wordSpacing: '
|
|
3841
|
+
wordSpacing: '0px',
|
|
3854
3842
|
padding: '0 0 16px 0',
|
|
3855
3843
|
[theme.breakpoints.up('md')]: {
|
|
3856
|
-
fontSize: '
|
|
3857
|
-
lineHeight: '
|
|
3844
|
+
fontSize: '16px',
|
|
3845
|
+
lineHeight: '20px',
|
|
3858
3846
|
padding: '0 0 20px 0',
|
|
3859
3847
|
},
|
|
3860
3848
|
}));
|
|
3861
|
-
const FAQContentWrapper = styled$1(Box)({
|
|
3849
|
+
const FAQContentWrapper = styled$1(Box)(({ theme }) => ({
|
|
3862
3850
|
width: '100%',
|
|
3863
|
-
|
|
3851
|
+
display: 'flex',
|
|
3852
|
+
flexDirection: 'column',
|
|
3853
|
+
borderRadius: '12px',
|
|
3854
|
+
[theme.breakpoints.up('md')]: {
|
|
3855
|
+
// gap: '12px',
|
|
3856
|
+
},
|
|
3857
|
+
}));
|
|
3864
3858
|
|
|
3865
3859
|
/**
|
|
3866
3860
|
* FAQAccordion - Displays a list of frequently asked questions in an accordion format
|