@bytebrand/fe-ui-core-autobahn 1.0.86 → 1.0.88

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/cards/CarCard.tsx CHANGED
@@ -100,17 +100,16 @@ const CarCard: React.FunctionComponent<CarCardProps> = ({
100
100
  const [mode, setMode] = useState<PaymentMode>('financing');
101
101
  const [photoIndex, setPhotoIndex] = useState(0);
102
102
  const [viewerOpen, setViewerOpen] = useState(false);
103
- // as-good-as-new gate (mileage < 1,000 km AND first registration unknown or < 12 months) —
104
- // undefined (older AutobahnCar producer not yet updated) fails OPEN, keeping prior behaviour.
105
- const asGoodAsNew = car.asGoodAsNew !== false;
106
- const showDrop = asGoodAsNew && car.drop != null;
107
- const showSave = asGoodAsNew && !showDrop && car.savings != null && car.savings > 600;
108
- const showPct = asGoodAsNew && car.dropPct != null && car.dropPct > 0;
109
- const showOfferBadge = !!(car.isNew || showDrop || showSave || showPct || car.zeroDown);
103
+ const showSave = car.savings != null && car.savings > 600;
104
+ const showOfferBadge = !!(car.isNew || car.drop != null || showSave || car.dropPct != null || car.zeroDown);
110
105
  // PM call: the badge row only fits 3 pills — when Drop/Save + Percent + ZeroDown are all
111
106
  // active that's already 3, so NEU is dropped rather than causing a 4th to overflow.
112
- const activeDealChips = [showDrop || showSave, showPct, !!car.zeroDown].filter(Boolean).length;
113
- const showNeu = asGoodAsNew && car.isNew && activeDealChips < 3;
107
+ const activeDealChips = [
108
+ car.drop != null || showSave,
109
+ car.dropPct != null && car.dropPct > 0,
110
+ !!car.zeroDown,
111
+ ].filter(Boolean).length;
112
+ const showNeu = car.isNew && activeDealChips < 3;
114
113
  return (
115
114
  <article
116
115
  className="mcard mcard--interactive cc-card"
@@ -135,7 +134,7 @@ const CarCard: React.FunctionComponent<CarCardProps> = ({
135
134
  {/* top-left signal stack (heart is top-right): NEU badge + ONE deal signal + the
136
135
  "⚡ Angebot" badge (own line, Figma) below it. DropChip takes precedence over
137
136
  SaveChip; each only renders when its real data exists. */}
138
- {(showOfferBadge || showPct) && (
137
+ {(showOfferBadge || car.dropPct != null) && (
139
138
  <div
140
139
  className="cc-badges"
141
140
  style={{
@@ -151,8 +150,8 @@ const CarCard: React.FunctionComponent<CarCardProps> = ({
151
150
  }}
152
151
  >
153
152
  <div style={{ display: 'flex', flexWrap: 'nowrap', gap: 5, alignItems: 'center' }}>
154
- {showDrop ? <DropChip t={t} amount={car.drop} /> : showSave && <SaveChip t={t} amount={car.savings!} />}
155
- <PercentChip pct={showPct ? car.dropPct : undefined} />
153
+ {car.drop != null ? <DropChip t={t} amount={car.drop} /> : showSave && <SaveChip t={t} amount={car.savings!} />}
154
+ <PercentChip pct={car.dropPct} />
156
155
  <ZeroDownChip
157
156
  t={t}
158
157
  show={car.zeroDown}
@@ -206,7 +205,7 @@ const CarCard: React.FunctionComponent<CarCardProps> = ({
206
205
  <div className="cc-price" style={{ marginTop: 4, borderTop: '1px solid var(--md-outline-variant)' }}>
207
206
  <PriceTabs car={car} mode={mode} onModeChange={setMode} t={t} />
208
207
  <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 8, marginTop: 10 }}>
209
- <PriceHero car={car} mode={mode} t={t} alwaysShowUnit />
208
+ <PriceHero car={car} mode={mode} t={t} />
210
209
  <PriceEvalCol car={car} t={t} />
211
210
  </div>
212
211
  {/* same fallback CardCtaRow already uses below: pages that haven't wired a real
package/cards/CarRow.tsx CHANGED
@@ -81,16 +81,15 @@ const CarRow: React.FunctionComponent<CarRowProps> = ({
81
81
  }) => {
82
82
  const [mode, setMode] = useState<PaymentMode>('financing');
83
83
  const [photoIndex, setPhotoIndex] = useState(0);
84
- // as-good-as-new gate (mileage < 1,000 km AND first registration unknown or < 12 months) —
85
- // undefined (older AutobahnCar producer not yet updated) fails OPEN, keeping prior behaviour.
86
- const asGoodAsNew = car.asGoodAsNew !== false;
87
- const showDrop = asGoodAsNew && car.drop != null;
88
- const showSave = asGoodAsNew && !showDrop && car.savings != null && car.savings > 600;
89
- const showPct = asGoodAsNew && car.dropPct != null && car.dropPct > 0;
90
- const showOfferBadge = !!(car.isNew || showDrop || showSave || showPct || car.zeroDown);
84
+ const showSave = car.savings != null && car.savings > 600;
85
+ const showOfferBadge = !!(car.isNew || car.drop != null || showSave || car.dropPct != null || car.zeroDown);
91
86
  // same overflow rule as CarCard: the row only fits 3 pills, so NEU drops when the other 3 are all active.
92
- const activeDealChips = [showDrop || showSave, showPct, !!car.zeroDown].filter(Boolean).length;
93
- const showNeu = asGoodAsNew && car.isNew && activeDealChips < 3;
87
+ const activeDealChips = [
88
+ car.drop != null || showSave,
89
+ car.dropPct != null && car.dropPct > 0,
90
+ !!car.zeroDown,
91
+ ].filter(Boolean).length;
92
+ const showNeu = car.isNew && activeDealChips < 3;
94
93
  const facts: Array<[icon: string, value: string]> = [
95
94
  ['gauge', fmtKm(car.km)],
96
95
  ['calendar', t('autobahn:card.specs.firstRegistration', { reg: car.reg })],
@@ -113,10 +112,9 @@ const CarRow: React.FunctionComponent<CarRowProps> = ({
113
112
  {/* 'auto': desktop picks cover/contain per photo (crops only when it wouldn't lose too
114
113
  much of the shot); below 601px this is identical to 'contain', so mobile is unchanged. */}
115
114
  <CardCarousel images={car.gallery} height="100%" fit="auto" onChange={setPhotoIndex} />
116
- {/* deal badges — ONE compact line, Figma order: −€ (drop/save) · −% · 0 € Anz. · NEU
117
- (NEU always last, dropped first on overflow — see activeDealChips below), plus the
118
- "⚡ Angebot" badge (Figma) on its own line below. The price RATING ('Guter Preis') is
119
- NOT here — it lives in the price column (PriceMeter). */}
115
+ {/* deal badges — ONE compact line: NEU · −€ · 0 € Anz. · −%, plus the "⚡ Angebot" badge
116
+ (Figma) on its own line below. The price RATING ('Guter Preis') is NOT here — it
117
+ lives in the price column (PriceMeter). */}
120
118
  <div
121
119
  style={{
122
120
  position: 'absolute',
@@ -131,8 +129,8 @@ const CarRow: React.FunctionComponent<CarRowProps> = ({
131
129
  }}
132
130
  >
133
131
  <div style={{ display: 'flex', flexWrap: 'nowrap', alignItems: 'center', gap: 5 }}>
134
- {showDrop ? <DropChip t={t} amount={car.drop} /> : showSave && <SaveChip t={t} amount={car.savings!} />}
135
- <PercentChip pct={showPct ? car.dropPct : undefined} />
132
+ {showNeu && <span className="neu-badge">NEU</span>}
133
+ {car.drop != null ? <DropChip t={t} amount={car.drop} /> : showSave && <SaveChip t={t} amount={car.savings!} />}
136
134
  <ZeroDownChip t={t} show={car.zeroDown} compact className="show-mobile" />
137
135
  <ZeroDownChip
138
136
  t={t}
@@ -149,7 +147,7 @@ const CarRow: React.FunctionComponent<CarRowProps> = ({
149
147
  fontWeight: 700,
150
148
  }}
151
149
  />
152
- {showNeu && <span className="neu-badge">NEU</span>}
150
+ <PercentChip pct={car.dropPct} />
153
151
  </div>
154
152
  <OfferBadge show={showOfferBadge} t={t} />
155
153
  </div>
@@ -246,7 +244,7 @@ const CarRow: React.FunctionComponent<CarRowProps> = ({
246
244
  <PriceTabs car={car} mode={mode} onModeChange={setMode} t={t} className="show-mobile" />
247
245
  <div className="pp-purchase show-mobile">
248
246
  <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 8 }}>
249
- <PriceHero car={car} mode={mode} t={t} alwaysShowUnit />
247
+ <PriceHero car={car} mode={mode} t={t} />
250
248
  {car.rating && (
251
249
  <StatChip tone={ratingTone(car.rating)} icon={ratingTone(car.rating) === 'good' ? 'check' : 'minus'}>
252
250
  {t('autobahn:tier.' + car.rating)}
package/cards/types.ts CHANGED
@@ -118,13 +118,6 @@ export interface AutobahnCar {
118
118
  dropPct?: number;
119
119
  /** 0 € Anzahlung available (offer.showDownPayment) — drives the "0 € Anz." badge. */
120
120
  zeroDown?: boolean;
121
- /**
122
- * as-good-as-new gate (mileage < 1,000 km AND first registration unknown or < 12 months) —
123
- * product rule for the drop/percent/NEU deal signals AND the strike-price/UVP-Rate display
124
- * (see toAutobahnCar.ts's isStrikeShown). Independent of NEU's own showNewLabel (which also
125
- * requires a recent modificationDate). Does NOT gate zeroDown.
126
- */
127
- asGoodAsNew?: boolean;
128
121
 
129
122
  // --- NEEDS DATA: no real source yet (NEVER fabricate) ---
130
123
  /** original list price (for the struck-through reference price). */
@@ -28,13 +28,20 @@ const ManageCookieModal = ({ toggleModal, handleSentryInit } : IManageCookieModa
28
28
 
29
29
  useEffect(
30
30
  () => {
31
+ // switches represent "is allowed" (true = allowed). Default to off (nothing
32
+ // allowed) unless the visitor already saved a choice on a previous visit.
33
+ const savedConfigRaw = localStorage.getItem('cookieConfig');
34
+ const savedConfig = savedConfigRaw ? JSON.parse(savedConfigRaw) : null;
35
+ const savedDisabledAnalytics: string[] = savedConfig?.analytics || [];
36
+ const savedDisabledMarketing: string[] = savedConfig?.marketing || [];
37
+
31
38
  const newAnalyticsSwitches = Object.values(COOKIE_SCHEMA.analytics)
32
39
  .reduce((acc, val) => acc.concat(val), [])
33
- .reduce((acc, item) => ({ ...acc, [item]: true }), {});
40
+ .reduce((acc, item) => ({ ...acc, [item]: !!savedConfig && !savedDisabledAnalytics.includes(item) }), {});
34
41
 
35
42
  const newMarketingSwitches = Object.values(COOKIE_SCHEMA.marketing)
36
43
  .reduce((acc, val) => acc.concat(val), [])
37
- .reduce((acc, item) => ({ ...acc, [item]: true }), {});
44
+ .reduce((acc, item) => ({ ...acc, [item]: !!savedConfig && !savedDisabledMarketing.includes(item) }), {});
38
45
  setAnalyticsSwitches(newAnalyticsSwitches);
39
46
  setMarketingSwitches(newMarketingSwitches);
40
47
  },
@@ -42,11 +49,9 @@ const ManageCookieModal = ({ toggleModal, handleSentryInit } : IManageCookieModa
42
49
  );
43
50
 
44
51
  const onHandleAnalyticsSwitchValue = (value: boolean) => {
45
- // per-item state is stored inverted (false = this item is on — see isChecked below),
46
- // so turning the master ON (value=true) must store false on every item, not true.
47
52
  const newAnalyticsSwitches = Object.values(COOKIE_SCHEMA.analytics)
48
53
  .reduce((acc, val) => acc.concat(val), [])
49
- .reduce((acc, item) => ({ ...acc, [item]: !value }), {});
54
+ .reduce((acc, item) => ({ ...acc, [item]: value }), {});
50
55
 
51
56
  setAnalyticsSwitches(newAnalyticsSwitches);
52
57
  setAnalyticsMasterSwitch(value);
@@ -55,7 +60,7 @@ const ManageCookieModal = ({ toggleModal, handleSentryInit } : IManageCookieModa
55
60
  const onHandleMarketingSwitchValue = (value: boolean) => {
56
61
  const newMarketingSwitches = Object.values(COOKIE_SCHEMA.marketing)
57
62
  .reduce((acc, val) => acc.concat(val), [])
58
- .reduce((acc, item) => ({ ...acc, [item]: !value }), {});
63
+ .reduce((acc, item) => ({ ...acc, [item]: value }), {});
59
64
  setMarketingSwitches(newMarketingSwitches);
60
65
  setMarketingMasterSwitch(value);
61
66
  };
@@ -136,7 +141,7 @@ const ManageCookieModal = ({ toggleModal, handleSentryInit } : IManageCookieModa
136
141
  {Object.keys(COOKIE_SCHEMA.analytics).map(cookie => {
137
142
  const getItemsFromCategory = _get(COOKIE_SCHEMA, `analytics['${cookie}']`, null);
138
143
  const getLinkFromCategory = _get(COOKIE_SCHEMA_LINKS, [cookie], '');
139
- const isChecked = getItemsFromCategory.every((item: string) => analyticsSwitches[item] === false);
144
+ const isChecked = getItemsFromCategory.every((item: string) => analyticsSwitches[item] === true);
140
145
  return (
141
146
  <div className={styles.switchBlock} key={cookie} >
142
147
  <span className={styles.switchBlockTitle}>{cookie}</span>
@@ -144,7 +149,7 @@ const ManageCookieModal = ({ toggleModal, handleSentryInit } : IManageCookieModa
144
149
  <MaterialSwitch
145
150
  sx={{ marginLeft: 'auto' }}
146
151
  value={isChecked}
147
- onChange={() => onHandleChangeInnerSwitchAnalytics(getItemsFromCategory, isChecked)}
152
+ onChange={(newValue: boolean) => onHandleChangeInnerSwitchAnalytics(getItemsFromCategory, newValue)}
148
153
  />
149
154
  </div>
150
155
  );
@@ -160,7 +165,7 @@ const ManageCookieModal = ({ toggleModal, handleSentryInit } : IManageCookieModa
160
165
  {Object.keys(COOKIE_SCHEMA.marketing).map(cookie => {
161
166
  const getItemsFromCategory = _get(COOKIE_SCHEMA, `marketing['${cookie}']`, null);
162
167
  const getLinkFromCategory = _get(COOKIE_SCHEMA_LINKS, [cookie], '');
163
- const isChecked = getItemsFromCategory.every((item: string) => marketingSwitches[item] === false);
168
+ const isChecked = getItemsFromCategory.every((item: string) => marketingSwitches[item] === true);
164
169
  return (
165
170
  <div className={styles.switchBlock} key={cookie} >
166
171
  <span className={styles.switchBlockTitle}>{cookie}</span>
@@ -168,7 +173,7 @@ const ManageCookieModal = ({ toggleModal, handleSentryInit } : IManageCookieModa
168
173
  <MaterialSwitch
169
174
  sx={{ marginLeft: 'auto' }}
170
175
  value={isChecked}
171
- onChange={() => onHandleChangeInnerSwitchMarketing(getItemsFromCategory, isChecked)}
176
+ onChange={(newValue: boolean) => onHandleChangeInnerSwitchMarketing(getItemsFromCategory, newValue)}
172
177
  />
173
178
  </div>
174
179
  )
@@ -177,7 +182,7 @@ const ManageCookieModal = ({ toggleModal, handleSentryInit } : IManageCookieModa
177
182
  </div>
178
183
  <div className={styles.buttonsContainer}>
179
184
  <Button onClick={() => onAccept()} className={classNames(styles.modalBtn, styles.outlinedBtn)} >Auswahl speichern</Button>
180
- <Button onClick={() => onAccept({})} className={styles.modalBtn}>Alles akzeptieren</Button>
185
+ <Button onClick={() => onAccept({ marketing: [], analytics: [] })} className={styles.modalBtn}>Alles akzeptieren</Button>
181
186
  </div>
182
187
  </div>
183
188
  );
@@ -3,6 +3,7 @@ import IconSVG from '../../../../iconsvg/IconSVG';
3
3
  import Button from '../../../Button/Button';
4
4
  import styles from './PreviewCookieModal.styl';
5
5
  import { updateCookieList } from '../../../../utils/CommonUtils';
6
+ import { COOKIE_SCHEMA } from '../../../../constants/common';
6
7
 
7
8
  interface IPreviewCookieModal {
8
9
  toggleModal: () => void;
@@ -13,15 +14,15 @@ interface IPreviewCookieModal {
13
14
  const PreviewCookieModal = ({ toggleModal, setModal, handleSentryInit } : IPreviewCookieModal) => {
14
15
  const environment = window.location.origin;
15
16
  const onAcceptAll = () => {
16
- localStorage.setItem('cookieConfig', JSON.stringify({}));
17
+ localStorage.setItem('cookieConfig', JSON.stringify({ marketing: [], analytics: [] }));
17
18
  updateCookieList(handleSentryInit);
18
19
  toggleModal();
19
20
  };
20
21
 
21
22
  const onDisableAll = () => {
22
23
  localStorage.setItem('cookieConfig', JSON.stringify({
23
- 'marketing':['cf','cip','cnac','car','test_cookie','IDE', 'bid','youtube'],
24
- 'analytics':['sentry','callback','locale','uid','PugT','demdex','cto_bundle','tuuid','tuuid_lu','c','CMID','CMPS','CMPRO','uuid2','um','umeh','KRTBCOOKIE_97','IDSYNC','dpm','_kuid_','visitor-id','data-c-ts','data-c','CMTS','mv_tokens','A3','mv_tokens_eu-v1','am_tokens','am_tokens_eu-v1','iteo','_fbp','_clck','_clsk','_uetsid','_uetvid','analytics_storage','ad_storage','functionality_storage','personalization_storage','security_storage','hotjar']
24
+ marketing: Object.values(COOKIE_SCHEMA.marketing).reduce((acc: string[], val: string[]) => acc.concat(val), []),
25
+ analytics: Object.values(COOKIE_SCHEMA.analytics).reduce((acc: string[], val: string[]) => acc.concat(val), [])
25
26
  }));
26
27
  updateCookieList(handleSentryInit);
27
28
  toggleModal();
@@ -96,22 +96,6 @@ function num(v: any): number | undefined {
96
96
  return Number.isFinite(n) ? n : undefined;
97
97
  }
98
98
 
99
- // strike-price ("UVP-Rate"/list-price) eligibility — a separate product rule from the NEU
100
- // badge's own showNewLabel (which also requires a recent modificationDate; see fe-main's
101
- // DataTransformers.ts shouldShowNewLabel). Here: as-good-as-new only — mileage under 1,000 km
102
- // AND first registration either unknown or under 12 months old. Mirrors the identical gate
103
- // added to VehicleDetailedNextPage.tsx's getFinancing() (VDP "Dein Angebot" card).
104
- const STRIKE_MAX_MILEAGE_KM = 1000;
105
- const STRIKE_MAX_AGE_MONTHS = 12;
106
- const STRIKE_AVG_MS_PER_MONTH = 1000 * 60 * 60 * 24 * 30.44;
107
-
108
- /** unix-seconds first registration (info.regDate) — unknown can't disqualify what we can't check. */
109
- function isStrikeAgeEligible(firstRegistration?: number | null): boolean {
110
- if (firstRegistration == null || !Number.isFinite(firstRegistration) || firstRegistration <= 0) return true;
111
- const ageMonths = (Date.now() - firstRegistration * 1000) / STRIKE_AVG_MS_PER_MONTH;
112
- return ageMonths < STRIKE_MAX_AGE_MONTHS;
113
- }
114
-
115
99
  /**
116
100
  * Minimal de-DE fallback for the handful of cbd:* selector codes the cards show
117
101
  * (fuel + gearbox). Used only when no `t` is injected (e.g. in unit tests).
@@ -407,10 +391,7 @@ export function toAutobahnCar(storeCar: any, deps: ToAutobahnCarDeps = {}): Auto
407
391
  // purchase-price strike on the search payload today, so we leave listPrice /
408
392
  // savings UNDEFINED unless a real highestPrice strike exists above the sale
409
393
  // price. See fieldMapping.ts — flagged for backend confirmation.
410
- // asGoodAsNew — mileage (info.mileage, same source as `km` below) + regTs (info.regDate,
411
- // same raw timestamp as `reg` above) gate: see isStrikeAgeEligible.
412
- const asGoodAsNew = Number(num(info.mileage) ?? 0) < STRIKE_MAX_MILEAGE_KM && isStrikeAgeEligible(regTs);
413
- const isStrikeShown = !!price?.financing?.isStrikeShown && asGoodAsNew;
394
+ const isStrikeShown = !!price?.financing?.isStrikeShown;
414
395
  const highest = num(price?.financing?.highestPrice) ?? num(price?.highestPrice);
415
396
  let listPrice: number | undefined;
416
397
  let savings: number | undefined;
@@ -511,7 +492,6 @@ export function toAutobahnCar(storeCar: any, deps: ToAutobahnCarDeps = {}): Auto
511
492
  ...(dropPct != null ? { dropPct } : {}),
512
493
  ...(zeroDown ? { zeroDown } : {}),
513
494
  ...(isNew ? { isNew } : {}),
514
- asGoodAsNew,
515
495
  ...(availability ? { availability } : {}),
516
496
  ...(viewsCount != null ? { viewsCount } : {}),
517
497
  ...(favoritesCount != null ? { favoritesCount } : {}),
package/package.json CHANGED
@@ -1,30 +1,30 @@
1
- {
2
- "name": "@bytebrand/fe-ui-core-autobahn",
3
- "version": "1.0.86",
4
- "description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
5
- "main": "index.ts",
6
- "license": "UNLICENSED",
7
- "peerDependencies": {
8
- "react": "^18.0.0",
9
- "react-dom": "^18.0.0"
10
- },
11
- "dependencies": {
12
- "@bytebrand/car-schema-selectors": "^2.0.7",
13
- "@bytebrand/fe-financing": "^5.14.12",
14
- "classnames": "2.2.6",
15
- "clsx": "^2.1.1",
16
- "d3-format": "1.4.5",
17
- "js-cookie": "^2.2.0",
18
- "lodash": "^4.17.21",
19
- "lucide-react": "^0.288.0",
20
- "mobx-react": "^7.6.0",
21
- "moment": "^2.29.1",
22
- "qs": "^6.6.0",
23
- "react-device-detect": "^2.1.2",
24
- "react-grid-system": "^5.0.2",
25
- "react-lazyload": "^3.2.0",
26
- "react-scroll": "^1.9.3",
27
- "react-slick": "^0.29.0",
28
- "slick-carousel": "1.8.1"
29
- }
30
- }
1
+ {
2
+ "name": "@bytebrand/fe-ui-core-autobahn",
3
+ "version": "1.0.88",
4
+ "description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
5
+ "main": "index.ts",
6
+ "license": "UNLICENSED",
7
+ "peerDependencies": {
8
+ "react": "^18.0.0",
9
+ "react-dom": "^18.0.0"
10
+ },
11
+ "dependencies": {
12
+ "@bytebrand/car-schema-selectors": "^2.0.7",
13
+ "@bytebrand/fe-financing": "^5.14.12",
14
+ "classnames": "2.2.6",
15
+ "clsx": "^2.1.1",
16
+ "d3-format": "1.4.5",
17
+ "js-cookie": "^2.2.0",
18
+ "lodash": "^4.17.21",
19
+ "lucide-react": "^0.288.0",
20
+ "mobx-react": "^7.6.0",
21
+ "moment": "^2.29.1",
22
+ "qs": "^6.6.0",
23
+ "react-device-detect": "^2.1.2",
24
+ "react-grid-system": "^5.0.2",
25
+ "react-lazyload": "^3.2.0",
26
+ "react-scroll": "^1.9.3",
27
+ "react-slick": "^0.29.0",
28
+ "slick-carousel": "1.8.1"
29
+ }
30
+ }
package/theme/md3.css CHANGED
@@ -4471,7 +4471,7 @@ line-height: 31px;
4471
4471
  flex: none;
4472
4472
  }
4473
4473
  .md3 .cc-price .pp-hero-rate {
4474
- align-items: flex-end;
4474
+ align-items: center;
4475
4475
  flex-wrap: nowrap;
4476
4476
  }
4477
4477
  /* separator line between the financing block and the leasing row (legacy-design parity) */
@@ -757,12 +757,7 @@ const FinanceCalculator: React.FunctionComponent<FinanceCalculatorProps> = ({
757
757
  </s>
758
758
  </span>
759
759
  )}
760
- {/* no struck old rate above it (strike hidden) — nudge "/mtl." down so it
761
- sits level with the blue hero rate instead of centering high in the row. */}
762
- <span
763
- className="fin-rate-example-suffix"
764
- style={oldMonthly == null ? { paddingTop: 20 } : undefined}
765
- >
760
+ <span className="fin-rate-example-suffix">
766
761
  {t('autobahn:finance.perMonth')}
767
762
  </span>
768
763
  </span>
@@ -1655,8 +1655,6 @@ export const VdpBottomBar: React.FunctionComponent<VdpBottomBarProps> = ({
1655
1655
  </s>
1656
1656
  </span>
1657
1657
  )}
1658
- {/* no struck old rate above it (strike hidden) — nudge "/ mtl." down so it
1659
- sits level with the blue hero rate instead of centering high in the row. */}
1660
1658
  <span
1661
1659
  style={{
1662
1660
  fontFamily: 'Arial, Helvetica, sans-serif',
@@ -1664,7 +1662,6 @@ export const VdpBottomBar: React.FunctionComponent<VdpBottomBarProps> = ({
1664
1662
  fontSize: 18,
1665
1663
  lineHeight: '21px',
1666
1664
  color: '#5B6B7F',
1667
- ...(oldMonthly == null ? { paddingTop: 20 } : {}),
1668
1665
  }}
1669
1666
  >
1670
1667
  {t('autobahn:bottom.perMonth').replace(/^\/\s*/, '/ ')}