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.
- package/dist/src/component/CreditsTracker/CreditsTracker.css +1 -0
- package/dist/src/component/CreditsTracker/CreditsTracker.d.ts +18 -0
- package/dist/src/component/CreditsTracker/CreditsTracker.d.ts.map +1 -0
- package/dist/src/component/CreditsTracker/CreditsTracker.js +115 -0
- package/dist/src/component/FlyoutCart/FlyoutCart.css +1 -1
- package/dist/src/component/FlyoutCart/FlyoutCart.d.ts.map +1 -1
- package/dist/src/component/FlyoutCart/FlyoutCart.js +97 -94
- package/dist/src/component/FlyoutCart/FlyoutCart.stories.d.ts +69 -0
- package/dist/src/component/FlyoutCart/FlyoutCart.stories.d.ts.map +1 -1
- package/dist/src/component/FlyoutCartComponent/FlyoutCartComponent.css +1 -1
- package/dist/src/component/FlyoutCartComponent/FlyoutCartComponent.d.ts +8 -1
- package/dist/src/component/FlyoutCartComponent/FlyoutCartComponent.d.ts.map +1 -1
- package/dist/src/component/FlyoutCartComponent/FlyoutCartComponent.js +166 -103
- package/dist/src/component/ProductDetail/CustomCreditsTab/CustomCreditsTab.css +1 -0
- package/dist/src/component/ProductDetail/CustomCreditsTab/CustomCreditsTab.d.ts +27 -0
- package/dist/src/component/ProductDetail/CustomCreditsTab/CustomCreditsTab.d.ts.map +1 -0
- package/dist/src/component/ProductDetail/CustomCreditsTab/CustomCreditsTab.js +82 -0
- package/dist/src/component/ProductDetail/PricingCards/PricingCards.d.ts.map +1 -1
- package/dist/src/component/ProductDetail/PricingCards/PricingCards.js +23 -24
- package/dist/src/component/ProductDetail/ProductDetail.css +1 -1
- package/dist/src/component/ProductDetail/ProductDetail.d.ts +19 -0
- package/dist/src/component/ProductDetail/ProductDetail.d.ts.map +1 -1
- package/dist/src/component/ProductDetail/ProductDetail.js +236 -162
- package/dist/src/component/ProductDetail/ProductDetail.stories.d.ts +143 -0
- package/dist/src/component/ProductDetail/ProductDetail.stories.d.ts.map +1 -1
- package/dist/src/navigation/SiteNav/SiteNav.d.ts +2 -1
- package/dist/src/navigation/SiteNav/SiteNav.d.ts.map +1 -1
- package/dist/src/navigation/SiteNav/SiteNav.js +94 -90
- package/dist/src/navigation/SiteNav/SiteNavMobile.d.ts +2 -1
- package/dist/src/navigation/SiteNav/SiteNavMobile.d.ts.map +1 -1
- package/dist/src/navigation/SiteNav/SiteNavMobile.js +33 -31
- package/dist/src/navigation/SiteNav/UtilityNavComponents/CartNavMenu/CartNavMenu.d.ts +2 -1
- package/dist/src/navigation/SiteNav/UtilityNavComponents/CartNavMenu/CartNavMenu.d.ts.map +1 -1
- package/dist/src/navigation/SiteNav/UtilityNavComponents/CartNavMenu/CartNavMenu.js +37 -36
- package/dist/src/navigation/SiteNav/UtilityNavComponents/CartNavMenu/CartNavMenuMobile.d.ts +2 -1
- package/dist/src/navigation/SiteNav/UtilityNavComponents/CartNavMenu/CartNavMenuMobile.d.ts.map +1 -1
- package/dist/src/navigation/SiteNav/UtilityNavComponents/CartNavMenu/CartNavMenuMobile.js +52 -51
- package/dist/src/navigation/SiteNav/UtilityNavComponents/SiteNavUtilityNav.d.ts +2 -1
- package/dist/src/navigation/SiteNav/UtilityNavComponents/SiteNavUtilityNav.d.ts.map +1 -1
- package/dist/src/navigation/SiteNav/UtilityNavComponents/SiteNavUtilityNav.js +24 -22
- package/dist/src/navigation/SiteNavigation/SiteNavigation.d.ts +2 -1
- package/dist/src/navigation/SiteNavigation/SiteNavigation.d.ts.map +1 -1
- package/dist/src/navigation/SiteNavigation/SiteNavigation.js +85 -81
- package/dist/src/navigation/SiteNavigation/SiteNavigationMobile/SiteNavigationMobile.d.ts +2 -1
- package/dist/src/navigation/SiteNavigation/SiteNavigationMobile/SiteNavigationMobile.d.ts.map +1 -1
- package/dist/src/navigation/SiteNavigation/SiteNavigationMobile/SiteNavigationMobile.js +33 -31
- package/dist/src/navigation/SiteNavigation/UtilityNavComponents/CartNavMenu/CartNavMenu.d.ts +2 -1
- package/dist/src/navigation/SiteNavigation/UtilityNavComponents/CartNavMenu/CartNavMenu.d.ts.map +1 -1
- package/dist/src/navigation/SiteNavigation/UtilityNavComponents/CartNavMenu/CartNavMenu.js +37 -36
- package/dist/src/navigation/SiteNavigation/UtilityNavComponents/CartNavMenu/CartNavMenuMobile.d.ts +2 -1
- package/dist/src/navigation/SiteNavigation/UtilityNavComponents/CartNavMenu/CartNavMenuMobile.d.ts.map +1 -1
- package/dist/src/navigation/SiteNavigation/UtilityNavComponents/CartNavMenu/CartNavMenuMobile.js +58 -57
- package/dist/src/navigation/SiteNavigation/UtilityNavComponents/SiteNavigationUtilityNav.d.ts +2 -1
- package/dist/src/navigation/SiteNavigation/UtilityNavComponents/SiteNavigationUtilityNav.d.ts.map +1 -1
- package/dist/src/navigation/SiteNavigation/UtilityNavComponents/SiteNavigationUtilityNav.js +24 -22
- 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:
|
|
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":";
|
|
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
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import { TerraLink as
|
|
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
|
|
7
|
-
const [c, l] =
|
|
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
|
|
11
|
+
const i = setTimeout(() => {
|
|
12
12
|
l(!1), n(null);
|
|
13
13
|
}, 8e3);
|
|
14
|
-
n(
|
|
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
|
-
},
|
|
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,
|
|
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}-${
|
|
58
|
-
)),
|
|
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:
|
|
65
|
+
LinkComponent: i,
|
|
66
|
+
locale: d
|
|
66
67
|
}) => {
|
|
67
68
|
if (a?.lineItems?.length > 0) {
|
|
68
|
-
const { productsTitle:
|
|
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
|
-
|
|
72
|
+
m,
|
|
72
73
|
" (",
|
|
73
|
-
|
|
74
|
+
_,
|
|
74
75
|
")"
|
|
75
76
|
] }),
|
|
76
77
|
/* @__PURE__ */ t(
|
|
77
|
-
|
|
78
|
+
B,
|
|
78
79
|
{
|
|
79
80
|
items: a?.lineItems,
|
|
80
81
|
cartSettings: e,
|
|
81
82
|
onRemove: n,
|
|
82
83
|
onChangeQuantity: r,
|
|
83
|
-
LinkComponent:
|
|
84
|
+
LinkComponent: i
|
|
84
85
|
}
|
|
85
86
|
)
|
|
86
87
|
] });
|
|
87
88
|
} else {
|
|
88
89
|
const {
|
|
89
|
-
emptyCartTitle:
|
|
90
|
-
emptyCartMessage:
|
|
91
|
-
continueShoppingBtnLabel:
|
|
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:
|
|
95
|
-
/* @__PURE__ */ t("p", { className: "t2-cart-flyout__empty__msg", children:
|
|
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
|
-
|
|
98
|
+
p,
|
|
98
99
|
{
|
|
99
|
-
onClickHandler: (
|
|
100
|
-
|
|
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:
|
|
104
|
+
children: _
|
|
104
105
|
}
|
|
105
106
|
) })
|
|
106
107
|
] });
|
|
107
108
|
}
|
|
108
|
-
},
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
},
|
|
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:
|
|
159
|
-
LinkComponent:
|
|
159
|
+
onRemove: i,
|
|
160
|
+
LinkComponent: d,
|
|
161
|
+
locale: m
|
|
160
162
|
} = a, {
|
|
161
|
-
cartTitle:
|
|
162
|
-
subtotalLabel:
|
|
163
|
-
productsRelatedTitle:
|
|
164
|
-
addedToCartMessage:
|
|
165
|
-
removeFromCartMessage:
|
|
166
|
-
viewCartBtnLabel:
|
|
167
|
-
viewCartBtnUrl:
|
|
168
|
-
finePrint:
|
|
169
|
-
account:
|
|
170
|
-
isSwitchAccountActive:
|
|
171
|
-
switchAccountLabel:
|
|
172
|
-
onAccountClick:
|
|
173
|
-
} = c || {}, [
|
|
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 &&
|
|
176
|
-
message:
|
|
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,
|
|
184
|
-
const
|
|
185
|
+
}, [e?.itemAdded, f]);
|
|
186
|
+
const T = (u) => {
|
|
185
187
|
u.preventDefault(), r(!l);
|
|
186
|
-
},
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
message:
|
|
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
|
-
},
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
R &&
|
|
198
|
-
message:
|
|
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
|
-
},
|
|
203
|
-
u.preventDefault(),
|
|
204
|
-
},
|
|
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(
|
|
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:
|
|
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
|
-
|
|
245
|
+
s
|
|
244
246
|
] }),
|
|
245
|
-
|
|
246
|
-
/* @__PURE__ */ t("div", { className: "t2-cart-flyout__header__account__name", children:
|
|
247
|
-
|
|
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:
|
|
254
|
+
onClick: H,
|
|
253
255
|
children: [
|
|
254
|
-
|
|
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:
|
|
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
|
-
|
|
306
|
+
U,
|
|
305
307
|
{
|
|
306
|
-
message:
|
|
307
|
-
timeStamp:
|
|
308
|
+
message: M?.message,
|
|
309
|
+
timeStamp: M?.timeStamp
|
|
308
310
|
}
|
|
309
311
|
),
|
|
310
312
|
/* @__PURE__ */ t(
|
|
311
|
-
|
|
313
|
+
V,
|
|
312
314
|
{
|
|
313
315
|
cartData: e,
|
|
314
316
|
cartSettings: c,
|
|
315
317
|
isCartFlyoutActive: l,
|
|
316
318
|
setCartFlyoutActive: r,
|
|
317
|
-
onChangeQuantity:
|
|
318
|
-
onRemove:
|
|
319
|
-
LinkComponent:
|
|
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:
|
|
326
|
+
/* @__PURE__ */ t("h3", { className: "t2-cart-flyout__related-items__title", children: w }),
|
|
324
327
|
/* @__PURE__ */ t(
|
|
325
|
-
|
|
328
|
+
B,
|
|
326
329
|
{
|
|
327
330
|
items: e?.relatedItems,
|
|
328
331
|
cartSettings: c,
|
|
329
|
-
LinkComponent:
|
|
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:
|
|
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
|
-
|
|
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(
|
|
345
|
-
|
|
346
|
-
|
|
347
|
+
/* @__PURE__ */ t(Y, { ...a, LinkComponent: d }),
|
|
348
|
+
N && /* @__PURE__ */ t(
|
|
349
|
+
p,
|
|
347
350
|
{
|
|
348
|
-
label:
|
|
349
|
-
destination:
|
|
351
|
+
label: A,
|
|
352
|
+
destination: N,
|
|
350
353
|
internalLinkComponent: !0,
|
|
351
|
-
LinkComponent:
|
|
354
|
+
LinkComponent: d,
|
|
352
355
|
className: "t2-cart-flyout__buttons__button t2-cart-flyout__buttons__button--secondary"
|
|
353
356
|
}
|
|
354
357
|
)
|
|
355
358
|
] }),
|
|
356
|
-
|
|
359
|
+
k && /* @__PURE__ */ t(
|
|
357
360
|
"div",
|
|
358
361
|
{
|
|
359
362
|
className: "t2-cart-flyout__footer__footnote",
|
|
360
|
-
dangerouslySetInnerHTML: { __html:
|
|
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
|
-
|
|
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":";;;;;;;;;;
|
|
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)}
|