trimble-terra 1.1.8 → 1.1.9-beta.2

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.
Files changed (56) hide show
  1. package/dist/src/component/CreditsTracker/CreditsTracker.css +1 -0
  2. package/dist/src/component/CreditsTracker/CreditsTracker.d.ts +18 -0
  3. package/dist/src/component/CreditsTracker/CreditsTracker.d.ts.map +1 -0
  4. package/dist/src/component/CreditsTracker/CreditsTracker.js +115 -0
  5. package/dist/src/component/FlyoutCart/FlyoutCart.css +1 -1
  6. package/dist/src/component/FlyoutCart/FlyoutCart.d.ts.map +1 -1
  7. package/dist/src/component/FlyoutCart/FlyoutCart.js +97 -94
  8. package/dist/src/component/FlyoutCart/FlyoutCart.stories.d.ts +69 -0
  9. package/dist/src/component/FlyoutCart/FlyoutCart.stories.d.ts.map +1 -1
  10. package/dist/src/component/FlyoutCartComponent/FlyoutCartComponent.css +1 -1
  11. package/dist/src/component/FlyoutCartComponent/FlyoutCartComponent.d.ts +8 -1
  12. package/dist/src/component/FlyoutCartComponent/FlyoutCartComponent.d.ts.map +1 -1
  13. package/dist/src/component/FlyoutCartComponent/FlyoutCartComponent.js +166 -103
  14. package/dist/src/component/ProductDetail/CustomCreditsTab/CustomCreditsTab.css +1 -0
  15. package/dist/src/component/ProductDetail/CustomCreditsTab/CustomCreditsTab.d.ts +27 -0
  16. package/dist/src/component/ProductDetail/CustomCreditsTab/CustomCreditsTab.d.ts.map +1 -0
  17. package/dist/src/component/ProductDetail/CustomCreditsTab/CustomCreditsTab.js +82 -0
  18. package/dist/src/component/ProductDetail/PricingCards/PricingCards.d.ts.map +1 -1
  19. package/dist/src/component/ProductDetail/PricingCards/PricingCards.js +23 -24
  20. package/dist/src/component/ProductDetail/ProductDetail.css +1 -1
  21. package/dist/src/component/ProductDetail/ProductDetail.d.ts +19 -0
  22. package/dist/src/component/ProductDetail/ProductDetail.d.ts.map +1 -1
  23. package/dist/src/component/ProductDetail/ProductDetail.js +236 -162
  24. package/dist/src/component/ProductDetail/ProductDetail.stories.d.ts +143 -0
  25. package/dist/src/component/ProductDetail/ProductDetail.stories.d.ts.map +1 -1
  26. package/dist/src/navigation/SiteNav/SiteNav.d.ts +2 -1
  27. package/dist/src/navigation/SiteNav/SiteNav.d.ts.map +1 -1
  28. package/dist/src/navigation/SiteNav/SiteNav.js +94 -90
  29. package/dist/src/navigation/SiteNav/SiteNavMobile.d.ts +2 -1
  30. package/dist/src/navigation/SiteNav/SiteNavMobile.d.ts.map +1 -1
  31. package/dist/src/navigation/SiteNav/SiteNavMobile.js +33 -31
  32. package/dist/src/navigation/SiteNav/UtilityNavComponents/CartNavMenu/CartNavMenu.d.ts +2 -1
  33. package/dist/src/navigation/SiteNav/UtilityNavComponents/CartNavMenu/CartNavMenu.d.ts.map +1 -1
  34. package/dist/src/navigation/SiteNav/UtilityNavComponents/CartNavMenu/CartNavMenu.js +37 -36
  35. package/dist/src/navigation/SiteNav/UtilityNavComponents/CartNavMenu/CartNavMenuMobile.d.ts +2 -1
  36. package/dist/src/navigation/SiteNav/UtilityNavComponents/CartNavMenu/CartNavMenuMobile.d.ts.map +1 -1
  37. package/dist/src/navigation/SiteNav/UtilityNavComponents/CartNavMenu/CartNavMenuMobile.js +52 -51
  38. package/dist/src/navigation/SiteNav/UtilityNavComponents/SiteNavUtilityNav.d.ts +2 -1
  39. package/dist/src/navigation/SiteNav/UtilityNavComponents/SiteNavUtilityNav.d.ts.map +1 -1
  40. package/dist/src/navigation/SiteNav/UtilityNavComponents/SiteNavUtilityNav.js +24 -22
  41. package/dist/src/navigation/SiteNavigation/SiteNavigation.d.ts +2 -1
  42. package/dist/src/navigation/SiteNavigation/SiteNavigation.d.ts.map +1 -1
  43. package/dist/src/navigation/SiteNavigation/SiteNavigation.js +85 -81
  44. package/dist/src/navigation/SiteNavigation/SiteNavigationMobile/SiteNavigationMobile.d.ts +2 -1
  45. package/dist/src/navigation/SiteNavigation/SiteNavigationMobile/SiteNavigationMobile.d.ts.map +1 -1
  46. package/dist/src/navigation/SiteNavigation/SiteNavigationMobile/SiteNavigationMobile.js +33 -31
  47. package/dist/src/navigation/SiteNavigation/UtilityNavComponents/CartNavMenu/CartNavMenu.d.ts +2 -1
  48. package/dist/src/navigation/SiteNavigation/UtilityNavComponents/CartNavMenu/CartNavMenu.d.ts.map +1 -1
  49. package/dist/src/navigation/SiteNavigation/UtilityNavComponents/CartNavMenu/CartNavMenu.js +37 -36
  50. package/dist/src/navigation/SiteNavigation/UtilityNavComponents/CartNavMenu/CartNavMenuMobile.d.ts +2 -1
  51. package/dist/src/navigation/SiteNavigation/UtilityNavComponents/CartNavMenu/CartNavMenuMobile.d.ts.map +1 -1
  52. package/dist/src/navigation/SiteNavigation/UtilityNavComponents/CartNavMenu/CartNavMenuMobile.js +58 -57
  53. package/dist/src/navigation/SiteNavigation/UtilityNavComponents/SiteNavigationUtilityNav.d.ts +2 -1
  54. package/dist/src/navigation/SiteNavigation/UtilityNavComponents/SiteNavigationUtilityNav.d.ts.map +1 -1
  55. package/dist/src/navigation/SiteNavigation/UtilityNavComponents/SiteNavigationUtilityNav.js +24 -22
  56. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ .t2-credits-tracker{position:relative;display:flex;align-items:center;height:48px;max-width:240px;border:1px solid #585c65;border-radius:10px}.t2-credits-tracker--invalid{border-color:#ac151d}.t2-credits-tracker__error{font-size:12px;line-height:16px;margin:0 0 24px;color:#ac151d;max-width:240px}.t2-credits-tracker__error strong{font-weight:700!important}.t2-credits-tracker__input{flex:1;width:100%;height:100%;border:none;outline:none;text-align:center;font-size:16px;font-weight:600;color:#252a2e;background:transparent;padding:0 40px}.t2-credits-tracker__input::-webkit-outer-spin-button,.t2-credits-tracker__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.t2-credits-tracker__input:disabled{cursor:not-allowed;color:#a3a6b1}.t2-credits-tracker__button{position:absolute;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:32px;height:100%;padding:0;background:transparent;border:none;color:#252a2e;cursor:pointer}.t2-credits-tracker__button--decrease{left:8px}.t2-credits-tracker__button--increase{right:8px}.t2-credits-tracker__button[disabled]{color:#a3a6b1;cursor:not-allowed}
@@ -0,0 +1,18 @@
1
+ export interface CreditsTrackerProps {
2
+ minimumQuantity: number;
3
+ maximumQuantity: number;
4
+ incrementRate: number;
5
+ credits?: number;
6
+ onCreditsChange?: (credits: number) => void;
7
+ locale?: string | string[];
8
+ inputId?: string;
9
+ ariaLabel?: string;
10
+ disabled?: boolean;
11
+ className?: string;
12
+ invalidNumberLabel?: string;
13
+ belowMinimumLabel?: string;
14
+ aboveMaximumLabel?: string;
15
+ }
16
+ declare const CreditsTracker: ({ minimumQuantity, maximumQuantity, incrementRate, credits, onCreditsChange, locale, inputId, ariaLabel, disabled, className, invalidNumberLabel, belowMinimumLabel, aboveMaximumLabel, }: CreditsTrackerProps) => import("react/jsx-runtime").JSX.Element;
17
+ export default CreditsTracker;
18
+ //# sourceMappingURL=CreditsTracker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreditsTracker.d.ts","sourceRoot":"","sources":["../../../../src/component/CreditsTracker/CreditsTracker.tsx"],"names":[],"mappings":"AACA,OAAO,uBAAuB,CAAA;AAE9B,MAAM,WAAW,mBAAmB;IAClC,eAAe,EAAE,MAAM,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAA;CAC3B;AAED,QAAA,MAAM,cAAc,GAAI,2LAcrB,mBAAmB,4CAwKrB,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,115 @@
1
+ import { jsxs as b, Fragment as E, jsx as t } from "react/jsx-runtime";
2
+ import F, { useState as K } from "react";
3
+ import './CreditsTracker.css';/* empty css */
4
+ const z = ({
5
+ minimumQuantity: s,
6
+ maximumQuantity: c,
7
+ incrementRate: e,
8
+ credits: k,
9
+ onCreditsChange: u,
10
+ locale: C,
11
+ inputId: N,
12
+ ariaLabel: _,
13
+ disabled: p = !1,
14
+ className: v,
15
+ invalidNumberLabel: H,
16
+ belowMinimumLabel: M,
17
+ aboveMaximumLabel: V
18
+ }) => {
19
+ const l = k ?? s, [o, g] = K(null), D = () => {
20
+ u?.(Math.max(s, l - e));
21
+ }, I = () => {
22
+ u?.(Math.min(c, l + e));
23
+ }, x = (r) => {
24
+ const n = r.currentTarget.value.replace(/[^0-9]/g, "");
25
+ g(n);
26
+ }, B = () => {
27
+ if (o === null) return;
28
+ const r = parseInt(o, 10), n = Number.isNaN(r) ? 0 : r, f = e > 0 ? Math.round(n / e) * e : n, d = Math.min(
29
+ c,
30
+ Math.max(s, f)
31
+ );
32
+ g(null), d !== l && u?.(d);
33
+ }, j = (r) => {
34
+ r.key === "Enter" && (r.preventDefault(), r.currentTarget.blur());
35
+ }, L = l.toLocaleString(C), S = o ?? L, h = (r, n) => {
36
+ if (!r) return null;
37
+ const f = n.toLocaleString(C);
38
+ return r.split(/(\{[^}]+\})/g).map((d, w) => /^\{[^}]+\}$/.test(d) ? /* @__PURE__ */ t("span", { children: f }, w) : /* @__PURE__ */ t(F.Fragment, { children: d }, w));
39
+ };
40
+ let i = !1, a = null;
41
+ if (o !== null && o !== "") {
42
+ const r = parseInt(o, 10);
43
+ Number.isNaN(r) || (r < s ? (i = !0, a = h(M, s)) : r > c ? (i = !0, a = h(V, c)) : e > 0 && r % e !== 0 && (i = !0, a = h(H, e)));
44
+ }
45
+ const T = [
46
+ "t2-credits-tracker",
47
+ i && "t2-credits-tracker--invalid",
48
+ v
49
+ ].filter(Boolean).join(" ");
50
+ return /* @__PURE__ */ b(E, { children: [
51
+ /* @__PURE__ */ b("div", { className: T, children: [
52
+ /* @__PURE__ */ t(
53
+ "button",
54
+ {
55
+ type: "button",
56
+ className: "t2-credits-tracker__button t2-credits-tracker__button--decrease",
57
+ onClick: D,
58
+ disabled: p || l <= s,
59
+ "aria-label": "Decrease credits",
60
+ children: /* @__PURE__ */ t(
61
+ "svg",
62
+ {
63
+ width: "14",
64
+ height: "2",
65
+ viewBox: "0 0 14 2",
66
+ fill: "currentColor",
67
+ xmlns: "http://www.w3.org/2000/svg",
68
+ children: /* @__PURE__ */ t("path", { d: "M14 2H0V0H14V2Z", fill: "currentColor" })
69
+ }
70
+ )
71
+ }
72
+ ),
73
+ /* @__PURE__ */ t(
74
+ "input",
75
+ {
76
+ id: N,
77
+ type: "text",
78
+ inputMode: "numeric",
79
+ className: "t2-credits-tracker__input",
80
+ value: S,
81
+ onChange: x,
82
+ onBlur: B,
83
+ onKeyDown: j,
84
+ disabled: p,
85
+ "aria-label": _
86
+ }
87
+ ),
88
+ /* @__PURE__ */ t(
89
+ "button",
90
+ {
91
+ type: "button",
92
+ className: "t2-credits-tracker__button t2-credits-tracker__button--increase",
93
+ onClick: I,
94
+ disabled: p || l >= c,
95
+ "aria-label": "Increase credits",
96
+ children: /* @__PURE__ */ t(
97
+ "svg",
98
+ {
99
+ width: "14",
100
+ height: "14",
101
+ viewBox: "0 0 14 14",
102
+ fill: "currentColor",
103
+ xmlns: "http://www.w3.org/2000/svg",
104
+ children: /* @__PURE__ */ t("path", { d: "M14 8H8V14H6V8H0V6H6V0H8V6H14V8Z", fill: "currentColor" })
105
+ }
106
+ )
107
+ }
108
+ )
109
+ ] }),
110
+ a && /* @__PURE__ */ t("p", { className: "t2-credits-tracker__error", role: "alert", children: a })
111
+ ] });
112
+ };
113
+ export {
114
+ z as default
115
+ };
@@ -1 +1 @@
1
- .t2-cart-flyout{background-color:#fff;height:100%;position:fixed;top:0;right:0;width:407px;z-index:600;transform:translate(100%);transition-property:transform;transition-duration:.5s;transition-delay:0ms;transition-timing-function:ease-in;box-shadow:0 0 8px #3635454d}@media screen and (max-width:600px){.t2-cart-flyout{width:100%;max-width:407px}}.t2-cart-flyout--deployed{transform:translate(0);transition-property:transform;transition-duration:.5s;transition-delay:0ms;transition-timing-function:ease-in}.t2-cart-flyout__modal{position:fixed;inset:0;z-index:5;background-color:#000;opacity:.3;display:none}.t2-cart-flyout__modal--deployed{display:block}@media screen and (max-width:600px){.t2-cart-flyout__modal--deployed{display:none}}.t2-cart-flyout__header{background-color:#0063a3;padding:24px}.t2-cart-flyout__header__title{font-weight:600;font-size:1rem;line-height:1.5rem;display:flex;gap:10px;color:#fff;font-weight:700}.t2-cart-flyout__header__account{font-weight:600;font-size:1rem;line-height:1.5rem;font-weight:700;padding-left:32px;margin-top:8px;color:#fff}.t2-cart-flyout__header__account__link{font-size:.875rem;font-weight:600;color:#fff;display:flex;align-items:center}.t2-cart-flyout__header__account__link:active{font-weight:600}.t2-cart-flyout__header__close-btn{position:absolute;top:0;right:0;color:#fff;background:transparent;border:none;padding:24px}.t2-cart-flyout__header__close-btn:hover{cursor:pointer}.t2-cart-flyout__panel{background-color:#f1f1f6;height:100%;display:flex;flex-direction:column}.t2-cart-flyout__body{padding:16px 32px;background-color:#fff;flex-grow:1;overflow:auto}.t2-cart-flyout__notification{font-weight:600;font-size:1rem;line-height:1.5rem;font-weight:700;display:flex;align-items:center;gap:8px;margin-bottom:16px}.t2-cart-flyout__notification__message{text-wrap:pretty}.t2-cart-flyout__notification--fadeout{opacity:0;transition:opacity .7s ease-out}.t2-cart-flyout__items__title{font-size:1.5rem;line-height:2.25rem;font-weight:700}.t2-cart-flyout__related-items{padding:56px 0}.t2-cart-flyout__related-items__title{font-size:1.5rem;line-height:2.25rem;font-weight:700}.t2-cart-flyout__empty{padding:0 0 8px;text-align:center;display:flex;flex-direction:column}.t2-cart-flyout__empty__title{font-size:1.5rem;line-height:2.25rem;font-weight:700}.t2-cart-flyout__empty__msg{font-weight:600;font-size:1rem;line-height:1.5rem;letter-spacing:.021px;padding:0 8px;text-wrap:balance}.t2-cart-flyout__empty__btn{justify-content:center}.t2-cart-flyout__footer{padding:24px}.t2-cart-flyout__footer__subtotal{display:flex;justify-content:space-between;align-items:center}.t2-cart-flyout__footer__subtotal__label{font-size:1rem;line-height:1.75rem;font-weight:700}.t2-cart-flyout__footer__subtotal__value{font-size:1.5rem;line-height:2.25rem;font-weight:700}.t2-cart-flyout__footer__footnote{font-size:.875rem;line-height:1.125rem}.t2-cart-flyout__buttons{display:flex;flex-direction:column;gap:24px;text-align:center;padding:24px 0}.t2-cart-flyout__buttons__button{max-width:100%!important;justify-content:center!important;max-width:none;transition:background-color .2s ease-in-out,border-color .2s ease-in-out}.t2-cart-flyout__buttons__button--primary{border:2px solid #0063a3;background-color:#0063a3;color:#fff}.t2-cart-flyout__buttons__button--primary:hover{border:2px solid #0063a3;background-color:#0e416c;border-color:#0e416c}.t2-cart-flyout__buttons__button--secondary{border:2px solid #0063a3;color:#0063a3;box-shadow:none}.t2-cart-flyout__buttons__button--secondary:hover{background-color:#0063a3;color:#fff;border:2px solid #0063a3}.t2-cart-flyout__close-btn{display:inline-block;color:#fff;padding:12px 20px}.t2-cart-flyout__close-btn:hover{cursor:pointer}
1
+ .t2-cart-flyout{background-color:#fff;height:100%;position:fixed;top:0;right:0;width:407px;z-index:600;transform:translate(100%);transition-property:transform;transition-duration:.5s;transition-delay:0ms;transition-timing-function:ease-in;box-shadow:0 0 8px #3635454d}@media screen and (max-width:600px){.t2-cart-flyout{width:100%;max-width:407px}}.t2-cart-flyout--deployed{transform:translate(0);transition-property:transform;transition-duration:.5s;transition-delay:0ms;transition-timing-function:ease-in}.t2-cart-flyout__modal{position:fixed;inset:0;z-index:10;background-color:#000;opacity:.3;display:none}.t2-cart-flyout__modal--deployed{display:block}@media screen and (max-width:600px){.t2-cart-flyout__modal--deployed{display:none}}.t2-cart-flyout__header{background-color:#0063a3;padding:24px}.t2-cart-flyout__header__title{font-weight:600;font-size:1rem;line-height:1.5rem;display:flex;gap:10px;color:#fff;font-weight:700}.t2-cart-flyout__header__account{font-weight:600;font-size:1rem;line-height:1.5rem;font-weight:700;padding-left:32px;margin-top:8px;color:#fff}.t2-cart-flyout__header__account__link{font-size:.875rem;font-weight:600;color:#fff;display:flex;align-items:center}.t2-cart-flyout__header__account__link:active{font-weight:600}.t2-cart-flyout__header__close-btn{position:absolute;top:0;right:0;color:#fff;background:transparent;border:none;padding:24px}.t2-cart-flyout__header__close-btn:hover{cursor:pointer}.t2-cart-flyout__panel{background-color:#f1f1f6;height:100%;display:flex;flex-direction:column}.t2-cart-flyout__body{padding:16px 32px;background-color:#fff;flex-grow:1;overflow:auto}.t2-cart-flyout__notification{font-weight:600;font-size:1rem;line-height:1.5rem;font-weight:700;display:flex;align-items:center;gap:8px;margin-bottom:16px}.t2-cart-flyout__notification__message{text-wrap:pretty}.t2-cart-flyout__notification--fadeout{opacity:0;transition:opacity .7s ease-out}.t2-cart-flyout__items__title{font-size:1.5rem;line-height:2.25rem;font-weight:700}.t2-cart-flyout__related-items{padding:56px 0}.t2-cart-flyout__related-items__title{font-size:1.5rem;line-height:2.25rem;font-weight:700}.t2-cart-flyout__empty{padding:0 0 8px;text-align:center;display:flex;flex-direction:column}.t2-cart-flyout__empty__title{font-size:1.5rem;line-height:2.25rem;font-weight:700}.t2-cart-flyout__empty__msg{font-weight:600;font-size:1rem;line-height:1.5rem;letter-spacing:.021px;padding:0 8px;text-wrap:balance}.t2-cart-flyout__empty__btn{justify-content:center}.t2-cart-flyout__footer{padding:24px}.t2-cart-flyout__footer__subtotal{display:flex;justify-content:space-between;align-items:center}.t2-cart-flyout__footer__subtotal__label{font-size:1rem;line-height:1.75rem;font-weight:700}.t2-cart-flyout__footer__subtotal__value{font-size:1.5rem;line-height:2.25rem;font-weight:700}.t2-cart-flyout__footer__footnote{font-size:.875rem;line-height:1.125rem}.t2-cart-flyout__buttons{display:flex;flex-direction:column;gap:24px;text-align:center;padding:24px 0}.t2-cart-flyout__buttons__button{max-width:100%!important;justify-content:center!important;max-width:none;transition:background-color .2s ease-in-out,border-color .2s ease-in-out}.t2-cart-flyout__buttons__button--primary{border:2px solid #0063a3;background-color:#0063a3;color:#fff}.t2-cart-flyout__buttons__button--primary:hover{border:2px solid #0063a3;background-color:#0e416c;border-color:#0e416c}.t2-cart-flyout__buttons__button--secondary{border:2px solid #0063a3;color:#0063a3;box-shadow:none}.t2-cart-flyout__buttons__button--secondary:hover{background-color:#0063a3;color:#fff;border:2px solid #0063a3}.t2-cart-flyout__close-btn{display:inline-block;color:#fff;padding:12px 20px}.t2-cart-flyout__close-btn:hover{cursor:pointer}
@@ -1 +1 @@
1
- {"version":3,"file":"FlyoutCart.d.ts","sourceRoot":"","sources":["../../../../src/component/FlyoutCart/FlyoutCart.jsx"],"names":[],"mappings":";AAiKA,iFA8OC"}
1
+ {"version":3,"file":"FlyoutCart.d.ts","sourceRoot":"","sources":["../../../../src/component/FlyoutCart/FlyoutCart.jsx"],"names":[],"mappings":";AAyKA,iFAgPC"}
@@ -1,17 +1,17 @@
1
- import { jsxs as o, Fragment as Q, jsx as t } from "react/jsx-runtime";
2
- import { useState as v, useEffect as x } from "react";
3
- import $ from "../FlyoutCartComponent/FlyoutCartComponent.js";
4
- import { TerraLink as h } from "../TerraLink/TerraLink.js";
1
+ import { jsxs as o, Fragment as $, jsx as t } from "react/jsx-runtime";
2
+ import { useState as b, useEffect as x } from "react";
3
+ import E from "../FlyoutCartComponent/FlyoutCartComponent.js";
4
+ import { TerraLink as p } from "../TerraLink/TerraLink.js";
5
5
  import './FlyoutCart.css';/* empty css */
6
- const E = ({ message: a, timeStamp: e }) => {
7
- const [c, l] = v(!1), [r, n] = v(null);
6
+ const U = ({ message: a, timeStamp: e }) => {
7
+ const [c, l] = b(!1), [r, n] = b(null);
8
8
  return x(() => {
9
9
  if (typeof a == "string" && a.length > 0) {
10
10
  l(!0), r && clearTimeout(r);
11
- const s = setTimeout(() => {
11
+ const i = setTimeout(() => {
12
12
  l(!1), n(null);
13
13
  }, 8e3);
14
- n(s);
14
+ n(i);
15
15
  }
16
16
  }, [a, e]), /* @__PURE__ */ o(
17
17
  "div",
@@ -39,14 +39,14 @@ const E = ({ message: a, timeStamp: e }) => {
39
39
  ]
40
40
  }
41
41
  );
42
- }, T = ({
42
+ }, B = ({
43
43
  items: a,
44
44
  onRemove: e,
45
45
  onChangeQuantity: c,
46
46
  cartSettings: l,
47
47
  LinkComponent: r
48
- }) => a?.map((n, s) => /* @__PURE__ */ t(
49
- $,
48
+ }) => a?.map((n, i) => /* @__PURE__ */ t(
49
+ E,
50
50
  {
51
51
  ...n,
52
52
  settings: l,
@@ -54,58 +54,59 @@ const E = ({ message: a, timeStamp: e }) => {
54
54
  onChangeQuantity: c,
55
55
  LinkComponent: r
56
56
  },
57
- `${n.id}-${n.name}-${s}`
58
- )), U = ({
57
+ `${n.id}-${n.name}-${i}`
58
+ )), V = ({
59
59
  cartData: a,
60
60
  cartSettings: e,
61
61
  isCartFlyoutActive: c,
62
62
  setCartFlyoutActive: l,
63
63
  onChangeQuantity: r,
64
64
  onRemove: n,
65
- LinkComponent: s
65
+ LinkComponent: i,
66
+ locale: d
66
67
  }) => {
67
68
  if (a?.lineItems?.length > 0) {
68
- const { productsTitle: i = "Your items" } = e;
69
+ const { productsTitle: m = "Your items" } = e, s = a?.totalLineItemQuantity, _ = typeof s == "number" ? s.toLocaleString(d) : s;
69
70
  return /* @__PURE__ */ o("section", { className: "t2-cart-flyout__items", children: [
70
71
  /* @__PURE__ */ o("h3", { className: "t2-cart-flyout__items__title", children: [
71
- i,
72
+ m,
72
73
  " (",
73
- a?.totalLineItemQuantity,
74
+ _,
74
75
  ")"
75
76
  ] }),
76
77
  /* @__PURE__ */ t(
77
- T,
78
+ B,
78
79
  {
79
80
  items: a?.lineItems,
80
81
  cartSettings: e,
81
82
  onRemove: n,
82
83
  onChangeQuantity: r,
83
- LinkComponent: s
84
+ LinkComponent: i
84
85
  }
85
86
  )
86
87
  ] });
87
88
  } else {
88
89
  const {
89
- emptyCartTitle: i = "Your cart is empty",
90
- emptyCartMessage: f = "There is nothing in your cart. Let's add some products.",
91
- continueShoppingBtnLabel: y = "Continue Shopping"
90
+ emptyCartTitle: m = "Your cart is empty",
91
+ emptyCartMessage: s = "There is nothing in your cart. Let's add some products.",
92
+ continueShoppingBtnLabel: _ = "Continue Shopping"
92
93
  } = e;
93
94
  return /* @__PURE__ */ o("section", { className: "t2-cart-flyout__empty", children: [
94
- /* @__PURE__ */ t("p", { className: "t2-cart-flyout__empty__title", children: i }),
95
- /* @__PURE__ */ t("p", { className: "t2-cart-flyout__empty__msg", children: f }),
95
+ /* @__PURE__ */ t("p", { className: "t2-cart-flyout__empty__title", children: m }),
96
+ /* @__PURE__ */ t("p", { className: "t2-cart-flyout__empty__msg", children: s }),
96
97
  /* @__PURE__ */ t("div", { className: "t2-cart-flyout__buttons", children: /* @__PURE__ */ t(
97
- h,
98
+ p,
98
99
  {
99
- onClickHandler: (m) => {
100
- m.preventDefault(), l(!c);
100
+ onClickHandler: (f) => {
101
+ f.preventDefault(), l(!c);
101
102
  },
102
103
  className: "t2-cart-flyout__buttons__button t2-cart-flyout__buttons__button--secondary",
103
- children: y
104
+ children: _
104
105
  }
105
106
  ) })
106
107
  ] });
107
108
  }
108
- }, V = ({
109
+ }, Y = ({
109
110
  cartData: a,
110
111
  cartSettings: e,
111
112
  isAuthenticated: c,
@@ -118,7 +119,7 @@ const E = ({ message: a, timeStamp: e }) => {
118
119
  checkoutBtnUrl: n = "https://www.trimble.com"
119
120
  } = e;
120
121
  return /* @__PURE__ */ t(
121
- h,
122
+ p,
122
123
  {
123
124
  label: r,
124
125
  destination: n,
@@ -136,7 +137,7 @@ const E = ({ message: a, timeStamp: e }) => {
136
137
  }
137
138
  } = e;
138
139
  return /* @__PURE__ */ t(
139
- h,
140
+ p,
140
141
  {
141
142
  label: r,
142
143
  className: "t2-cart-flyout__buttons__button t2-cart-flyout__buttons__button--primary",
@@ -148,70 +149,71 @@ const E = ({ message: a, timeStamp: e }) => {
148
149
  );
149
150
  }
150
151
  return null;
151
- }, K = (a) => {
152
+ }, O = (a) => {
152
153
  const {
153
154
  cartData: e,
154
155
  cartSettings: c,
155
156
  isCartFlyoutActive: l,
156
157
  setCartFlyoutActive: r,
157
158
  onChangeQuantity: n,
158
- onRemove: s,
159
- LinkComponent: i
159
+ onRemove: i,
160
+ LinkComponent: d,
161
+ locale: m
160
162
  } = a, {
161
- cartTitle: f = "My Cart",
162
- subtotalLabel: y = "Subtotal",
163
- productsRelatedTitle: b = "You may also like",
164
- addedToCartMessage: m = "{Product Name} was added to cart",
165
- removeFromCartMessage: w = "{Product Name} was removed from the cart",
166
- viewCartBtnLabel: B = "View Cart",
167
- viewCartBtnUrl: g = "https://www.trimble.com",
168
- finePrint: N,
169
- account: k,
170
- isSwitchAccountActive: A = !0,
171
- switchAccountLabel: F = "Switch Account",
172
- onAccountClick: I
173
- } = c || {}, [S, p] = v(null);
163
+ cartTitle: s = "My Cart",
164
+ subtotalLabel: _ = "Subtotal",
165
+ productsRelatedTitle: w = "You may also like",
166
+ addedToCartMessage: f = "{Product Name} was added to cart",
167
+ removeFromCartMessage: g = "{Product Name} was removed from the cart",
168
+ viewCartBtnLabel: A = "View Cart",
169
+ viewCartBtnUrl: N = "https://www.trimble.com",
170
+ finePrint: k,
171
+ account: I,
172
+ isSwitchAccountActive: F = !0,
173
+ switchAccountLabel: D = "Switch Account",
174
+ onAccountClick: S
175
+ } = c || {}, [M, L] = b(null);
174
176
  x(() => {
175
- e?.itemAdded && p({
176
- message: m.replace(
177
+ e?.itemAdded && L({
178
+ message: f.replace(
177
179
  "{Product Name}",
178
180
  e?.itemAdded?.name
179
181
  ),
180
182
  // Timestamp ensures the notification re-renders when the same item is added again
181
183
  timeStamp: Date.now()
182
184
  });
183
- }, [e?.itemAdded, m]);
184
- const M = (u) => {
185
+ }, [e?.itemAdded, f]);
186
+ const T = (u) => {
185
187
  u.preventDefault(), r(!l);
186
- }, D = (u, L, d) => {
187
- const _ = s(u, L, d);
188
- _ && _.then((C) => {
189
- C && p({
190
- message: w.replace("{Product Name}", d),
188
+ }, Z = (u, v, C) => {
189
+ const h = i(u, v, C);
190
+ h && h.then((y) => {
191
+ y && L({
192
+ message: g.replace("{Product Name}", C),
191
193
  timeStamp: Date.now()
192
194
  });
193
195
  });
194
- }, Z = (u, L, d, _) => {
195
- const C = n(u, L, d, _);
196
- C && C.then((R) => {
197
- R && _ === 0 && p({
198
- message: w.replace("{Product Name}", d),
196
+ }, P = (u, v, C, h) => {
197
+ const y = n(u, v, C, h);
198
+ y && y.then((R) => {
199
+ R && h === 0 && L({
200
+ message: g.replace("{Product Name}", C),
199
201
  timeStamp: Date.now()
200
202
  });
201
203
  });
202
- }, P = (u) => {
203
- u.preventDefault(), I && I();
204
- }, H = new Intl.NumberFormat(void 0, {
204
+ }, H = (u) => {
205
+ u.preventDefault(), S && S();
206
+ }, Q = new Intl.NumberFormat(void 0, {
205
207
  style: "currency",
206
208
  currency: e?.totalNet?.currencyCode || "USD",
207
209
  currencyDisplay: "narrowSymbol"
208
210
  });
209
- return /* @__PURE__ */ o(Q, { children: [
211
+ return /* @__PURE__ */ o($, { children: [
210
212
  /* @__PURE__ */ t(
211
213
  "div",
212
214
  {
213
215
  className: l ? "t2-cart-flyout__modal t2-cart-flyout__modal--deployed" : "t2-cart-flyout__modal",
214
- onClick: M
216
+ onClick: T
215
217
  }
216
218
  ),
217
219
  /* @__PURE__ */ t(
@@ -240,18 +242,18 @@ const E = ({ message: a, timeStamp: e }) => {
240
242
  )
241
243
  }
242
244
  ),
243
- f
245
+ s
244
246
  ] }),
245
- k && /* @__PURE__ */ o("div", { className: "t2-cart-flyout__header__account", children: [
246
- /* @__PURE__ */ t("div", { className: "t2-cart-flyout__header__account__name", children: k?.name }),
247
- A && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ o(
247
+ I && /* @__PURE__ */ o("div", { className: "t2-cart-flyout__header__account", children: [
248
+ /* @__PURE__ */ t("div", { className: "t2-cart-flyout__header__account__name", children: I?.name }),
249
+ F && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ o(
248
250
  "a",
249
251
  {
250
252
  href: "",
251
253
  className: "t2-cart-flyout__header__account__link",
252
- onClick: P,
254
+ onClick: H,
253
255
  children: [
254
- F,
256
+ D,
255
257
  /* @__PURE__ */ t(
256
258
  "svg",
257
259
  {
@@ -278,7 +280,7 @@ const E = ({ message: a, timeStamp: e }) => {
278
280
  "button",
279
281
  {
280
282
  className: "t2-cart-flyout__header__close-btn",
281
- onClick: M,
283
+ onClick: T,
282
284
  children: /* @__PURE__ */ t(
283
285
  "svg",
284
286
  {
@@ -301,63 +303,64 @@ const E = ({ message: a, timeStamp: e }) => {
301
303
  ] }),
302
304
  /* @__PURE__ */ o("div", { className: "t2-cart-flyout__body", children: [
303
305
  /* @__PURE__ */ t(
304
- E,
306
+ U,
305
307
  {
306
- message: S?.message,
307
- timeStamp: S?.timeStamp
308
+ message: M?.message,
309
+ timeStamp: M?.timeStamp
308
310
  }
309
311
  ),
310
312
  /* @__PURE__ */ t(
311
- U,
313
+ V,
312
314
  {
313
315
  cartData: e,
314
316
  cartSettings: c,
315
317
  isCartFlyoutActive: l,
316
318
  setCartFlyoutActive: r,
317
- onChangeQuantity: Z,
318
- onRemove: D,
319
- LinkComponent: i
319
+ onChangeQuantity: P,
320
+ onRemove: Z,
321
+ LinkComponent: d,
322
+ locale: m
320
323
  }
321
324
  ),
322
325
  e?.relatedItems?.length > 0 && /* @__PURE__ */ o("section", { className: "t2-cart-flyout__related-items", children: [
323
- /* @__PURE__ */ t("h3", { className: "t2-cart-flyout__related-items__title", children: b }),
326
+ /* @__PURE__ */ t("h3", { className: "t2-cart-flyout__related-items__title", children: w }),
324
327
  /* @__PURE__ */ t(
325
- T,
328
+ B,
326
329
  {
327
330
  items: e?.relatedItems,
328
331
  cartSettings: c,
329
- LinkComponent: i
332
+ LinkComponent: d
330
333
  }
331
334
  )
332
335
  ] })
333
336
  ] }),
334
337
  e?.lineItems?.length > 0 && /* @__PURE__ */ o("div", { className: "t2-cart-flyout__footer", children: [
335
338
  /* @__PURE__ */ o("div", { className: "t2-cart-flyout__footer__subtotal", children: [
336
- /* @__PURE__ */ t("span", { className: "t2-cart-flyout__footer__subtotal__label", children: y }),
339
+ /* @__PURE__ */ t("span", { className: "t2-cart-flyout__footer__subtotal__label", children: _ }),
337
340
  /* @__PURE__ */ o("span", { className: "t2-cart-flyout__footer__subtotal__value", children: [
338
- H.format(e?.totalNet?.amount),
341
+ Q.format(e?.totalNet?.amount),
339
342
  " ",
340
343
  e?.totalNet?.currencyCode
341
344
  ] })
342
345
  ] }),
343
346
  /* @__PURE__ */ o("div", { className: "t2-cart-flyout__buttons", children: [
344
- /* @__PURE__ */ t(V, { ...a, LinkComponent: i }),
345
- g && /* @__PURE__ */ t(
346
- h,
347
+ /* @__PURE__ */ t(Y, { ...a, LinkComponent: d }),
348
+ N && /* @__PURE__ */ t(
349
+ p,
347
350
  {
348
- label: B,
349
- destination: g,
351
+ label: A,
352
+ destination: N,
350
353
  internalLinkComponent: !0,
351
- LinkComponent: i,
354
+ LinkComponent: d,
352
355
  className: "t2-cart-flyout__buttons__button t2-cart-flyout__buttons__button--secondary"
353
356
  }
354
357
  )
355
358
  ] }),
356
- N && /* @__PURE__ */ t(
359
+ k && /* @__PURE__ */ t(
357
360
  "div",
358
361
  {
359
362
  className: "t2-cart-flyout__footer__footnote",
360
- dangerouslySetInnerHTML: { __html: N }
363
+ dangerouslySetInnerHTML: { __html: k }
361
364
  }
362
365
  )
363
366
  ] })
@@ -367,5 +370,5 @@ const E = ({ message: a, timeStamp: e }) => {
367
370
  ] });
368
371
  };
369
372
  export {
370
- K as default
373
+ O as default
371
374
  };
@@ -29,6 +29,15 @@ export namespace EmptyCart {
29
29
  export function render_2(args: any): import("react/jsx-runtime").JSX.Element;
30
30
  export { render_2 as render };
31
31
  }
32
+ export namespace TrimbleCreditsCart {
33
+ export namespace args_3 {
34
+ export { cartData2 as cartData };
35
+ export { cartSettings };
36
+ }
37
+ export { args_3 as args };
38
+ export function render_3(args: any): import("react/jsx-runtime").JSX.Element;
39
+ export { render_3 as render };
40
+ }
32
41
  declare namespace cartData {
33
42
  export namespace itemAdded {
34
43
  let id: string;
@@ -87,6 +96,11 @@ declare namespace cartSettings {
87
96
  let isSwitchAccountActive: boolean;
88
97
  let switchAccountLabel: string;
89
98
  function onAccountClick(): void;
99
+ let creditExpirationNoticeLabel: string;
100
+ let minimumMaximumLabel: string;
101
+ let invalidNumberLabel: string;
102
+ let belowMinimumLabel: string;
103
+ let aboveMaximumLabel: string;
90
104
  }
91
105
  declare namespace promoCartData {
92
106
  let itemAdded_1: {
@@ -149,6 +163,45 @@ declare namespace cartEmptyData {
149
163
  let totalLineItemQuantity_2: number;
150
164
  export { totalLineItemQuantity_2 as totalLineItemQuantity };
151
165
  }
166
+ declare namespace cartData2 {
167
+ export namespace itemAdded_2 {
168
+ let id_2: string;
169
+ export { id_2 as id };
170
+ let image_1: string;
171
+ export { image_1 as image };
172
+ let name_2: string;
173
+ export { name_2 as name };
174
+ let sku_1: string;
175
+ export { sku_1 as sku };
176
+ let quantity_1: number;
177
+ export { quantity_1 as quantity };
178
+ let max_1: number;
179
+ export { max_1 as max };
180
+ export let min: number;
181
+ export let increment: number;
182
+ export namespace price_1 {
183
+ let currencyCode_4: string;
184
+ export { currencyCode_4 as currencyCode };
185
+ let amount_4: number;
186
+ export { amount_4 as amount };
187
+ }
188
+ export { price_1 as price };
189
+ let isLoading_1: boolean;
190
+ export { isLoading_1 as isLoading };
191
+ export let creditProduct: boolean;
192
+ }
193
+ export { itemAdded_2 as itemAdded };
194
+ export { trimbleCreditsLineItems as lineItems };
195
+ export namespace totalNet_3 {
196
+ let currencyCode_5: string;
197
+ export { currencyCode_5 as currencyCode };
198
+ let amount_5: number;
199
+ export { amount_5 as amount };
200
+ }
201
+ export { totalNet_3 as totalNet };
202
+ let totalLineItemQuantity_3: number;
203
+ export { totalLineItemQuantity_3 as totalLineItemQuantity };
204
+ }
152
205
  declare const lineItems: {
153
206
  id: string;
154
207
  image: string;
@@ -211,4 +264,20 @@ declare const promoLineItems: ({
211
264
  discount?: undefined;
212
265
  discountCode?: undefined;
213
266
  })[];
267
+ declare const trimbleCreditsLineItems: {
268
+ id: string;
269
+ image: string;
270
+ name: string;
271
+ sku: string;
272
+ quantity: number;
273
+ max: number;
274
+ min: number;
275
+ increment: number;
276
+ price: {
277
+ currencyCode: string;
278
+ amount: number;
279
+ };
280
+ isLoading: boolean;
281
+ creditProduct: boolean;
282
+ }[];
214
283
  //# sourceMappingURL=FlyoutCart.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlyoutCart.stories.d.ts","sourceRoot":"","sources":["../../../../src/component/FlyoutCart/FlyoutCart.stories.jsx"],"names":[],"mappings":";;;;;;;;;;IA8IU,oEA0EP;;;;;;;;IAqDO,6EA8DP;;;;;;;;;IAQO,6EAWP;;;uBA5VoB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqHlB,sCAAY;;;;;;;;;;;;;;IAab,gCAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvHH;;;;;;;;;;;;;IA6BE;AAEF;;;;;;;;;;;;;;IA+BE;AA8IF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgCC"}
1
+ {"version":3,"file":"FlyoutCart.stories.d.ts","sourceRoot":"","sources":["../../../../src/component/FlyoutCart/FlyoutCart.stories.jsx"],"names":[],"mappings":";;;;;;;;;;IAmJU,oEA0EP;;;;;;;;IAqDO,6EA8DP;;;;;;;;;IAQO,6EAWP;;;;;;;;;IAqCO,6EAwEP;;;uBA9coB,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAqHlB,sCAAY;;;;;;;;;;;;;;IAab,gCAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAvHH;;;;;;;;;;;;;IA6BE;AAEF;;;;;;;;;;;;;;IA+BE;AAmJF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgCC;AAqGD;;;;;;;;;;;;;;;IAkBC"}
@@ -1 +1 @@
1
- .ter-cart-item+.ter-cart-item{border-top:1px solid #e0e1e9}.ter-cart-item{display:flex;justify-content:flex-start;gap:16px;padding:32px 0}.ter-cart-item .ter-quantity-tracker__input-wrapper{width:110px}.ter-cart-item__figure{all:unset;outline:1px solid #f1f1f6;min-width:115px;width:115px;height:115px}.ter-cart-item__figure__img{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.ter-cart-item__details{flex-grow:1}.ter-cart-item__product-name{font-size:1.25rem;line-height:1.75rem;font-weight:700;margin-bottom:4px;margin-top:0}.ter-cart-item__sku{font-size:.875rem;line-height:1.125rem;margin-bottom:4px;line-height:24px}.ter-cart-item__price-wrapper{margin:4px 0}.ter-cart-item__price{font-size:1rem;line-height:1.75rem;font-weight:800}.ter-cart-item__price--strike{display:block;font-size:16px;font-weight:600;color:#90939f;text-decoration:line-through;line-height:28px}.ter-cart-item__duration{font-size:.875rem;line-height:1.125rem}.ter-cart-item__discount{margin:4px 0}.ter-cart-item__qty{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:16px}.ter-cart-item__qty__label{font-weight:600;font-size:.875rem;line-height:1.25rem;font-weight:700}.ter-cart-item__remove{all:unset;font-weight:600;font-size:.875rem;line-height:1.25rem;color:#252a2e;font-weight:700;-webkit-text-decoration:underline solid 2px #fbad26;text-decoration:underline solid 2px #fbad26;text-underline-offset:4px;cursor:pointer;display:flex;align-items:center;margin-top:16px}.ter-cart-item__remove:focus,.ter-cart-item__remove:active{font-weight:700}.ter-cart-item__remove svg{color:#252a2e}.ter-cart-item__link{font-weight:600;font-size:.875rem;line-height:1.25rem;font-weight:700}
1
+ .ter-cart-item+.ter-cart-item{border-top:1px solid #e0e1e9}.ter-cart-item{display:flex;justify-content:flex-start;gap:16px;padding:32px 0}.ter-cart-item .ter-quantity-tracker__input-wrapper{width:110px}.ter-cart-item__figure{all:unset;outline:1px solid #f1f1f6;min-width:115px;width:115px;height:115px}.ter-cart-item__figure__img{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.ter-cart-item__details{flex-grow:1}.ter-cart-item__product-name{font-size:1.25rem;line-height:1.75rem;font-weight:700;margin-bottom:4px;margin-top:0}.ter-cart-item__sku{font-size:.875rem;line-height:1.125rem;margin-bottom:4px;line-height:24px}.ter-cart-item__price-wrapper{margin:4px 0}.ter-cart-item__price{font-size:1rem;line-height:1.75rem;font-weight:800}.ter-cart-item__price--strike{display:block;font-size:16px;font-weight:600;color:#90939f;text-decoration:line-through;line-height:28px}.ter-cart-item__duration{font-size:.875rem;line-height:1.125rem}.ter-cart-item__discount{margin:4px 0}.ter-cart-item__qty{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:16px}.ter-cart-item__qty__label{font-weight:600;font-size:.875rem;line-height:1.25rem;font-weight:700}.ter-cart-item__credit-notice{margin-top:16px;display:flex;flex-direction:column;gap:16px}.ter-cart-item__credit-notice__line{font-size:.875rem;line-height:1.125rem;margin:0;color:#353a40}.ter-cart-item__credit-notice__line strong{font-weight:700!important}.ter-cart-item__remove{all:unset;font-weight:600;font-size:.875rem;line-height:1.25rem;color:#252a2e;font-weight:700;-webkit-text-decoration:underline solid 2px #fbad26;text-decoration:underline solid 2px #fbad26;text-underline-offset:4px;cursor:pointer;display:flex;align-items:center;margin-top:16px}.ter-cart-item__remove:focus,.ter-cart-item__remove:active{font-weight:700}.ter-cart-item__remove svg{color:#252a2e}.ter-cart-item__link{font-weight:600;font-size:.875rem;line-height:1.25rem;font-weight:700}.ter-cart-item .t2-credits-tracker__error{margin-bottom:0}.ter-cart-item__credits-tracker.t2-credits-tracker{width:140px!important;max-width:140px!important;height:32px!important}.ter-cart-item__credits-tracker.t2-credits-tracker .t2-credits-tracker__input{padding:0 34px!important;font-size:14px!important}.ter-cart-item__credits-tracker.t2-credits-tracker .t2-credits-tracker__button{width:24px!important}.ter-cart-item__credits-tracker.t2-credits-tracker .t2-credits-tracker__button.t2-credits-tracker__button--decrease{left:10px!important}.ter-cart-item__credits-tracker.t2-credits-tracker .t2-credits-tracker__button.t2-credits-tracker__button--increase{right:10px!important}.ter-cart-item__credits-tracker.t2-credits-tracker .t2-credits-tracker__button svg{transform:scale(.7)}