@artaio/arta-browser 2.15.1 → 2.16.0

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 (64) hide show
  1. package/dist/ModalStatus.js +1 -1
  2. package/dist/bundle.js +1 -1
  3. package/dist/components/Date/SimpleDate.js +1 -12
  4. package/dist/components/Destination/index.js +3 -14
  5. package/dist/components/Disqualified/index.js +1 -12
  6. package/dist/components/DrawerFooter/index.js +1 -12
  7. package/dist/components/DrawerHeader/index.d.ts +6 -1
  8. package/dist/components/DrawerHeader/index.js +5 -13
  9. package/dist/components/DrawerInsurance/index.js +1 -12
  10. package/dist/components/Footer/index.d.ts +1 -1
  11. package/dist/components/Footer/index.js +1 -12
  12. package/dist/components/Header/index.js +1 -12
  13. package/dist/components/Modal/index.js +4 -4
  14. package/dist/components/Package/index.d.ts +2 -1
  15. package/dist/components/Package/index.js +28 -38
  16. package/dist/components/PackageEvents/index.js +13 -24
  17. package/dist/components/Pill/index.d.ts +3 -3
  18. package/dist/components/Pill/index.js +3 -13
  19. package/dist/components/Quotes/index.js +3 -14
  20. package/dist/components/SelectTrackingShipment/index.d.ts +9 -0
  21. package/dist/components/SelectTrackingShipment/index.js +42 -0
  22. package/dist/components/ShipToFrom/index.js +1 -12
  23. package/dist/components/ShipmentException/icons/HexagonAlertBase.js +1 -12
  24. package/dist/components/ShipmentException/icons/HexagonPauseBase.js +1 -12
  25. package/dist/components/ShipmentException/icons/HexagonStopBase.js +1 -12
  26. package/dist/components/ShipmentException/index.d.ts +4 -1
  27. package/dist/components/ShipmentException/index.js +4 -12
  28. package/dist/components/Summary/index.js +1 -12
  29. package/dist/components/Timeline/CheckedStep.js +1 -12
  30. package/dist/components/Timeline/CheckedSteps.js +1 -12
  31. package/dist/components/Timeline/EmptyStep.js +1 -12
  32. package/dist/components/Timeline/SecondaryStep.js +1 -12
  33. package/dist/components/Timeline/SecondarySteps.js +1 -12
  34. package/dist/components/Timeline/TimelineDefault.js +2 -13
  35. package/dist/components/Timeline/TimlineMinimal.js +1 -12
  36. package/dist/components/Timeline/defaultIcons/CancelledIcon.js +1 -12
  37. package/dist/components/Timeline/defaultIcons/CollectedIcon.js +1 -12
  38. package/dist/components/Timeline/defaultIcons/CompletedIcon.js +1 -12
  39. package/dist/components/Timeline/defaultIcons/ConfirmedIcon.js +1 -12
  40. package/dist/components/Timeline/defaultIcons/InTransitIcon.js +1 -12
  41. package/dist/components/Timeline/defaultIcons/PendingIcon.js +1 -12
  42. package/dist/components/Timeline/icons/CancelledIconBase.js +1 -12
  43. package/dist/components/Timeline/icons/CollectedIconBase.js +1 -12
  44. package/dist/components/Timeline/icons/CompletedIconBase.js +1 -12
  45. package/dist/components/Timeline/icons/ConfirmedIconBase.js +1 -12
  46. package/dist/components/Timeline/icons/InTransitIconBase.js +1 -12
  47. package/dist/components/Timeline/icons/PendingIconBase.js +1 -12
  48. package/dist/components/Timeline/index.js +1 -12
  49. package/dist/components/TrackingDrawer/index.css +115 -0
  50. package/dist/components/TrackingDrawer/index.d.ts +2 -2
  51. package/dist/components/TrackingDrawer/index.js +25 -39
  52. package/dist/components/TrackingShipment/index.d.ts +9 -0
  53. package/dist/components/TrackingShipment/index.js +73 -0
  54. package/dist/components/TrackingTop/index.d.ts +4 -0
  55. package/dist/components/TrackingTop/index.js +50 -62
  56. package/dist/estimate.js +2 -2
  57. package/dist/helper.d.ts +6 -0
  58. package/dist/helper.js +11 -5
  59. package/dist/requests.js +18 -5
  60. package/dist/tracking.d.ts +3 -2
  61. package/dist/tracking.js +53 -10
  62. package/dist/trackingConfig.d.ts +16 -0
  63. package/dist/trackingConfig.js +39 -1
  64. package/package.json +2 -2
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __importDefault = (this && this.__importDefault) || function (mod) {
14
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
15
4
  };
@@ -45,10 +34,10 @@ var Quotes = function (_a) {
45
34
  quoteRequest.destination.estimated_country;
46
35
  var parsedOrigin = (0, helper_1.parseEstimatedLocation)(quoteRequest.origin);
47
36
  var parsedDestination = (0, helper_1.parseEstimatedLocation)(quoteRequest.destination);
48
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__modal__quotes" }, { children: [(0, jsx_runtime_1.jsx)("p", __assign({ class: "artajs__modal__quotes__context" }, { children: textConfig.shipFromLabel })), (0, jsx_runtime_1.jsx)("p", __assign({ class: "artajs__modal__quotes__origin" }, { children: (0, jsx_runtime_1.jsxs)("span", { children: [(0, jsx_runtime_1.jsx)("strong", __assign({ class: "artajs__modal__capitalize" }, { children: parsedOrigin })), ' ', (0, jsx_runtime_1.jsx)("span", __assign({ class: "artajs__modal__quotes__light" }, { children: textConfig.detailOriginLabel }))] }) })), (0, jsx_runtime_1.jsxs)("p", __assign({ class: "artajs__modal__quotes__destination" }, { children: [(0, jsx_runtime_1.jsx)("span", __assign({ class: "artajs__modal__quotes__small" }, { children: textConfig.shipToLabel })), ' ', parsedDestination ? ((0, jsx_runtime_1.jsxs)("span", { children: [(0, jsx_runtime_1.jsx)("strong", __assign({ class: "artajs__modal__capitalize" }, { children: parsedDestination })), ' ', (0, jsx_runtime_1.jsx)("span", __assign({ class: "artajs__modal__quotes__light" }, { children: textConfig.detailDestinationLabel }))] })) : ((0, jsx_runtime_1.jsx)("span", { children: "..." }))] })), showCostRange && quotes.length > 1 ? ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__modal__quotes__box ".concat(!isInternational ? 'artajs__modal__quotes__box__padding__y' : '') }, { children: [(0, jsx_runtime_1.jsx)("p", __assign({ class: "artajs__modal__quotes__context" }, { children: textConfig.rangeLabel })), (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__modal__quotes__price" }, { children: [(0, jsx_runtime_1.jsxs)("strong", __assign({ class: "artajs__modal__quotes__price__amount" }, { children: [currencySymbol, Math.round(quotes[0].total), " - ", currencySymbol, Math.round(quotes[quotes.length - 1].total)] })), (0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__modal__quotes__price__currency_code" }, { children: quoteRequest.currency }))] })), isInternational && ((0, jsx_runtime_1.jsx)("p", __assign({ class: "artajs__modal__quotes__disclaimer" }, { children: hasInsurance
37
+ return ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__modal__quotes", children: [(0, jsx_runtime_1.jsx)("p", { class: "artajs__modal__quotes__context", children: textConfig.shipFromLabel }), (0, jsx_runtime_1.jsx)("p", { class: "artajs__modal__quotes__origin", children: (0, jsx_runtime_1.jsxs)("span", { children: [(0, jsx_runtime_1.jsx)("strong", { class: "artajs__modal__capitalize", children: parsedOrigin }), ' ', (0, jsx_runtime_1.jsx)("span", { class: "artajs__modal__quotes__light", children: textConfig.detailOriginLabel })] }) }), (0, jsx_runtime_1.jsxs)("p", { class: "artajs__modal__quotes__destination", children: [(0, jsx_runtime_1.jsx)("span", { class: "artajs__modal__quotes__small", children: textConfig.shipToLabel }), ' ', parsedDestination ? ((0, jsx_runtime_1.jsxs)("span", { children: [(0, jsx_runtime_1.jsx)("strong", { class: "artajs__modal__capitalize", children: parsedDestination }), ' ', (0, jsx_runtime_1.jsx)("span", { class: "artajs__modal__quotes__light", children: textConfig.detailDestinationLabel })] })) : ((0, jsx_runtime_1.jsx)("span", { children: "..." }))] }), showCostRange && quotes.length > 1 ? ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__modal__quotes__box ".concat(!isInternational ? 'artajs__modal__quotes__box__padding__y' : ''), children: [(0, jsx_runtime_1.jsx)("p", { class: "artajs__modal__quotes__context", children: textConfig.rangeLabel }), (0, jsx_runtime_1.jsxs)("div", { class: "artajs__modal__quotes__price", children: [(0, jsx_runtime_1.jsxs)("strong", { class: "artajs__modal__quotes__price__amount", children: [currencySymbol, Math.round(quotes[0].total), " - ", currencySymbol, Math.round(quotes[quotes.length - 1].total)] }), (0, jsx_runtime_1.jsx)("div", { class: "artajs__modal__quotes__price__currency_code", children: quoteRequest.currency })] }), isInternational && ((0, jsx_runtime_1.jsx)("p", { class: "artajs__modal__quotes__disclaimer", children: hasInsurance
49
38
  ? "".concat(textConfig.artaInsuranceLabel, " ").concat(textConfig.disclaimerLabel)
50
- : textConfig.disclaimerLabel })))] }))) : ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__modal__quotes__box ".concat(!isInternational ? 'artajs__modal__quotes__box__padding__y' : '') }, { children: [(0, jsx_runtime_1.jsx)("p", __assign({ class: "artajs__modal__quotes__context" }, { children: textConfig.startsAtLabel })), (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__modal__quotes__price" }, { children: [(0, jsx_runtime_1.jsxs)("strong", __assign({ class: "artajs__modal__quotes__price__amount" }, { children: [currencySymbol, Math.round(quotes[0].total)] })), (0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__modal__quotes__price__currency_code" }, { children: quoteRequest.currency }))] })), isInternational && ((0, jsx_runtime_1.jsx)("p", __assign({ class: "artajs__modal__quotes__disclaimer" }, { children: hasInsurance
39
+ : textConfig.disclaimerLabel }))] })) : ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__modal__quotes__box ".concat(!isInternational ? 'artajs__modal__quotes__box__padding__y' : ''), children: [(0, jsx_runtime_1.jsx)("p", { class: "artajs__modal__quotes__context", children: textConfig.startsAtLabel }), (0, jsx_runtime_1.jsxs)("div", { class: "artajs__modal__quotes__price", children: [(0, jsx_runtime_1.jsxs)("strong", { class: "artajs__modal__quotes__price__amount", children: [currencySymbol, Math.round(quotes[0].total)] }), (0, jsx_runtime_1.jsx)("div", { class: "artajs__modal__quotes__price__currency_code", children: quoteRequest.currency })] }), isInternational && ((0, jsx_runtime_1.jsx)("p", { class: "artajs__modal__quotes__disclaimer", children: hasInsurance
51
40
  ? "".concat(textConfig.artaInsuranceLabel, " ").concat(textConfig.disclaimerLabel)
52
- : textConfig.disclaimerLabel })))] }))), (0, jsx_runtime_1.jsx)("p", __assign({ class: "artajs__modal__quotes__change" }, { children: (0, jsx_runtime_1.jsxs)("a", __assign({ onClick: onChangeDestination, href: "#" }, { children: [(0, jsx_runtime_1.jsx)("svg", __assign({ height: "12", id: "chevron-left", viewBox: "0 0 32 32", width: "12", xmlns: "http://www.w3.org/2000/svg" }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M20 1 L24 5 L14 16 L24 27 L20 31 L6 16 z" }) })), textConfig.returnLinkLabel] })) }))] })));
41
+ : textConfig.disclaimerLabel }))] })), (0, jsx_runtime_1.jsx)("p", { class: "artajs__modal__quotes__change", children: (0, jsx_runtime_1.jsxs)("a", { onClick: onChangeDestination, href: "#", children: [(0, jsx_runtime_1.jsx)("svg", { height: "12", id: "chevron-left", viewBox: "0 0 32 32", width: "12", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M20 1 L24 5 L14 16 L24 27 L20 31 L6 16 z" }) }), textConfig.returnLinkLabel] }) })] }));
53
42
  };
54
43
  exports.Quotes = Quotes;
@@ -0,0 +1,9 @@
1
+ import { TrackingFullConfig } from '../../trackingConfig';
2
+ import { Shipment } from '../TrackingDrawer';
3
+ interface SelectTrackingShipmentProps {
4
+ shipments: Shipment[];
5
+ config: TrackingFullConfig;
6
+ setSelectedShipment: (shipment: Shipment) => void;
7
+ }
8
+ export declare const SelectTrackingShipment: ({ shipments, config, setSelectedShipment, }: SelectTrackingShipmentProps) => import("preact").JSX.Element;
9
+ export {};
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelectTrackingShipment = void 0;
4
+ var jsx_runtime_1 = require("preact/jsx-runtime");
5
+ var Package_1 = require("../Package");
6
+ var Pill_1 = require("../Pill");
7
+ var ShipmentException_1 = require("../ShipmentException");
8
+ var DrawerFooter_1 = require("../DrawerFooter");
9
+ var ShipToFrom_1 = require("../ShipToFrom");
10
+ var TrackingShipment_1 = require("../TrackingShipment");
11
+ var TrackingTop_1 = require("../TrackingTop");
12
+ var labelDates = function (dates, config) {
13
+ return dates
14
+ .map(function (d) {
15
+ return d.toLocaleDateString(config.text.dates.locale, config.text.dates.formatOptions);
16
+ })
17
+ .join(" ".concat(config.text.inTransitCTAAndLabel, " "));
18
+ };
19
+ var getShipmentStatus = function (shipment) {
20
+ var activeException = (0, TrackingShipment_1.hasActiveException)(shipment);
21
+ if (activeException) {
22
+ return 'exception';
23
+ }
24
+ return shipment.status;
25
+ };
26
+ var getShipmentExceptionMessage = function (shipment, config) {
27
+ var topPriorityExceptions = (0, ShipmentException_1.getTopPriorityExceptions)((0, ShipmentException_1.groupExceptions)(shipment));
28
+ return (0, ShipmentException_1.getExceptionMessage)(config, topPriorityExceptions, shipment);
29
+ };
30
+ var SelectTrackingShipment = function (_a) {
31
+ var shipments = _a.shipments, config = _a.config, setSelectedShipment = _a.setSelectedShipment;
32
+ var labelsAndDates = shipments.map(function (shipment) {
33
+ return (0, TrackingTop_1.getLabelAndDates)(shipment, config);
34
+ });
35
+ return ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__body", children: [shipments.map(function (shipment, idx) { return ((0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__select__shipment__card", children: (0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__select__shipment__content", children: [(0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__select__shipment__header", children: [(0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__select__shipment__header__item", children: [(0, jsx_runtime_1.jsxs)("div", { class: "artajs__packings__header__top", children: [(0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__header__text", children: shipment.shortcode }), (0, jsx_runtime_1.jsx)(Pill_1.Pill, { status: getShipmentStatus(shipment), config: config })] }), (0, TrackingShipment_1.hasActiveException)(shipment) ? ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__select__shipment__exception__content", children: [(0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__select__shipment__exception__title", children: getShipmentExceptionMessage(shipment, config) }), (0, jsx_runtime_1.jsx)("a", { href: "mailto:".concat(config.navigation.shipmentExceptionMailTo), class: "artajs__tracking__exception__cta", style: { textAlign: 'left' }, children: config.text.shipmentExceptionCTA })] })) : (labelsAndDates[idx].dates != null && ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__step__text__primary", children: labelsAndDates[idx].label }), (0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__title", children: labelDates(labelsAndDates[idx].dates, config) })] })))] }), (0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__header__line" }), (0, jsx_runtime_1.jsx)(ShipToFrom_1.ShipToFrom, { shipment: shipment, config: config })] }), shipment.packages
36
+ .filter(function (pkg) { var _a; return (_a = pkg === null || pkg === void 0 ? void 0 : pkg.objects) === null || _a === void 0 ? void 0 : _a.length; })
37
+ .map(function (pkg) { return ((0, jsx_runtime_1.jsx)("div", { class: "artajs__packings__item", children: pkg.objects.map(function (obj) { return ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__packings__item__content", children: [(0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__title", children: (0, Package_1.objectDetailTitle)(obj, config) }), (0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__subtype", children: obj.subtype_name })] })); }) })); }), shipment.packages.some(function (pkg) { var _a; return (_a = pkg === null || pkg === void 0 ? void 0 : pkg.objects) === null || _a === void 0 ? void 0 : _a.length; }) && ((0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__header__line" })), (0, jsx_runtime_1.jsx)("button", { class: "artajs__tracking__button", onClick: function (e) {
38
+ e.preventDefault();
39
+ setSelectedShipment(shipment);
40
+ }, children: config.text.viewShipmentDetailLabel })] }) }, "shipment-card-".concat(idx))); }), (0, jsx_runtime_1.jsx)(DrawerFooter_1.DrawerFooter, {})] }));
41
+ };
42
+ exports.SelectTrackingShipment = SelectTrackingShipment;
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.ShipToFrom = void 0;
15
4
  var jsx_runtime_1 = require("preact/jsx-runtime");
@@ -24,6 +13,6 @@ var ShipToFrom = function (_a) {
24
13
  ].filter(Boolean);
25
14
  return parts.join(', ');
26
15
  };
27
- return ((0, jsx_runtime_1.jsx)("div", __assign({ class: "artajas__tracking__location__wrapper" }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__location" }, { children: [shipment.origin && ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__location__item" }, { children: [(0, jsx_runtime_1.jsx)("svg", __assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: (0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.6545 0.212093C10.0285 0.277632 8.45344 0.840471 7.14725 1.82269C6.64673 2.19908 6.16259 2.66223 5.75607 3.15359C4.57861 4.57675 3.91704 6.41416 3.91687 8.2617C3.9167 10.0106 5.03372 12.9106 7.32097 17.0994C8.29574 18.8846 9.50182 20.9201 10.7612 22.9056C11.0118 23.3007 11.0523 23.3575 11.15 23.4511C11.3223 23.6164 11.5418 23.73 11.7772 23.7758C11.8898 23.7977 12.1103 23.7977 12.2229 23.7758C12.4566 23.7303 12.6769 23.6168 12.8474 23.454C12.9467 23.3591 12.9798 23.3128 13.2295 22.9199C14.3764 21.1152 15.5885 19.0784 16.5143 17.4C18.6669 13.4975 19.8454 10.641 20.0492 8.83199C20.0967 8.4102 20.092 7.94252 20.0348 7.40639C19.8826 5.97867 19.338 4.59831 18.4715 3.44373C18.0817 2.92428 17.6025 2.42594 17.0929 2.00995C16.0322 1.14425 14.733 0.553364 13.3825 0.322455C12.8067 0.224016 12.2464 0.188227 11.6545 0.212093ZM11.5061 1.69517C10.4115 1.78027 9.37908 2.1223 8.45765 2.70509C7.668 3.20453 6.93875 3.93035 6.43475 4.71845C5.90998 5.53904 5.57394 6.45728 5.44803 7.41464C5.39709 7.80194 5.37736 8.33101 5.40392 8.59679C5.558 10.1383 6.64765 12.7918 8.58523 16.344C9.29046 17.6369 10.1355 19.0922 11.024 20.544C11.5111 21.3399 11.9875 22.0992 11.9998 22.0992C12.0163 22.0992 12.7806 20.871 13.3172 19.9824C16.3487 14.9624 18.2047 11.0422 18.5521 8.92546C18.5951 8.66375 18.6072 8.50937 18.6063 8.23199C18.6026 6.99368 18.242 5.77655 17.5654 4.71845C17.0616 3.93074 16.3331 3.20565 15.5425 2.70517C14.6148 2.11789 13.5841 1.77834 12.4753 1.69462C12.2406 1.67691 11.7373 1.6772 11.5061 1.69517ZM11.8273 4.61888C10.7362 4.66386 9.7063 5.21285 9.04803 6.10026C8.76152 6.4865 8.56236 6.90406 8.44338 7.36799C8.37607 7.63043 8.34933 7.80522 8.33226 8.09453C8.31509 8.38522 8.3379 8.70955 8.39626 9.00479C8.69014 10.4916 9.88912 11.6582 11.3809 11.9087C11.6099 11.9472 11.7333 11.9568 12.0001 11.9568C12.2668 11.9568 12.3902 11.9472 12.6193 11.9087C14.1102 11.6583 15.3121 10.4889 15.604 9.00476C15.7403 8.31169 15.6729 7.57052 15.4153 6.93119C15.0728 6.08074 14.4552 5.40961 13.6369 4.99847C13.19 4.77398 12.6706 4.63768 12.2017 4.62185C12.1198 4.61909 12.0399 4.61573 12.0241 4.61438C12.0082 4.61305 11.9197 4.61507 11.8273 4.61888ZM11.7605 6.09741C11.2731 6.14831 10.7989 6.37645 10.4451 6.73028C10.1157 7.05968 9.91081 7.4563 9.82556 7.92959C9.80344 8.05238 9.79536 8.38481 9.81106 8.52687C9.85798 8.95181 10.0364 9.37132 10.3082 9.69599C10.662 10.1185 11.1466 10.3882 11.6977 10.4694C11.8548 10.4925 12.1453 10.4925 12.3025 10.4694C12.9346 10.3763 13.4818 10.032 13.835 9.50516C13.9687 9.30577 14.0973 9.00469 14.1496 8.76893C14.1961 8.55936 14.2126 8.24868 14.1884 8.03999C14.0686 7.00877 13.2506 6.20012 12.2222 6.09641C12.1065 6.08475 11.8771 6.08525 11.7605 6.09741Z", fill: config.style.color.iconPrimary }) })), (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__location__text__wrapper" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__location__text__header" }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__top__date__day" }, { children: config.text.shipsFromLabel })) })), (0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__status__date__content" }, { children: formatAddress(shipment.origin) }))] }))] }))), shipment.destination && ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__location__item" }, { children: [(0, jsx_runtime_1.jsx)("svg", __assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: (0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.6545 0.212093C10.0285 0.277632 8.45344 0.840471 7.14725 1.82269C6.64673 2.19908 6.16259 2.66223 5.75607 3.15359C4.57861 4.57675 3.91704 6.41416 3.91687 8.2617C3.9167 10.0106 5.03372 12.9106 7.32097 17.0994C8.29574 18.8846 9.50182 20.9201 10.7612 22.9056C11.0118 23.3007 11.0523 23.3575 11.15 23.4511C11.3223 23.6164 11.5418 23.73 11.7772 23.7758C11.8898 23.7977 12.1103 23.7977 12.2229 23.7758C12.4566 23.7303 12.6769 23.6168 12.8474 23.454C12.9467 23.3591 12.9798 23.3128 13.2295 22.9199C14.3764 21.1152 15.5885 19.0784 16.5143 17.4C18.6669 13.4975 19.8454 10.641 20.0492 8.83199C20.0967 8.4102 20.092 7.94252 20.0348 7.40639C19.8826 5.97867 19.338 4.59831 18.4715 3.44373C18.0817 2.92428 17.6025 2.42594 17.0929 2.00995C16.0322 1.14425 14.733 0.553364 13.3825 0.322455C12.8067 0.224016 12.2464 0.188227 11.6545 0.212093ZM11.5061 1.69517C10.4115 1.78027 9.37908 2.1223 8.45765 2.70509C7.668 3.20453 6.93875 3.93035 6.43475 4.71845C5.90998 5.53904 5.57394 6.45728 5.44803 7.41464C5.39709 7.80194 5.37736 8.33101 5.40392 8.59679C5.558 10.1383 6.64765 12.7918 8.58523 16.344C9.29046 17.6369 10.1355 19.0922 11.024 20.544C11.5111 21.3399 11.9875 22.0992 11.9998 22.0992C12.0163 22.0992 12.7806 20.871 13.3172 19.9824C16.3487 14.9624 18.2047 11.0422 18.5521 8.92546C18.5951 8.66375 18.6072 8.50937 18.6063 8.23199C18.6026 6.99368 18.242 5.77655 17.5654 4.71845C17.0616 3.93074 16.3331 3.20565 15.5425 2.70517C14.6148 2.11789 13.5841 1.77834 12.4753 1.69462C12.2406 1.67691 11.7373 1.6772 11.5061 1.69517ZM11.8273 4.61888C10.7362 4.66386 9.7063 5.21285 9.04803 6.10026C8.76152 6.4865 8.56236 6.90406 8.44338 7.36799C8.37607 7.63043 8.34933 7.80522 8.33226 8.09453C8.31509 8.38522 8.3379 8.70955 8.39626 9.00479C8.69014 10.4916 9.88912 11.6582 11.3809 11.9087C11.6099 11.9472 11.7333 11.9568 12.0001 11.9568C12.2668 11.9568 12.3902 11.9472 12.6193 11.9087C14.1102 11.6583 15.3121 10.4889 15.604 9.00476C15.7403 8.31169 15.6729 7.57052 15.4153 6.93119C15.0728 6.08074 14.4552 5.40961 13.6369 4.99847C13.19 4.77398 12.6706 4.63768 12.2017 4.62185C12.1198 4.61909 12.0399 4.61573 12.0241 4.61438C12.0082 4.61305 11.9197 4.61507 11.8273 4.61888ZM11.7605 6.09741C11.2731 6.14831 10.7989 6.37645 10.4451 6.73028C10.1157 7.05968 9.91081 7.4563 9.82556 7.92959C9.80344 8.05238 9.79536 8.38481 9.81106 8.52687C9.85798 8.95181 10.0364 9.37132 10.3082 9.69599C10.662 10.1185 11.1466 10.3882 11.6977 10.4694C11.8548 10.4925 12.1453 10.4925 12.3025 10.4694C12.9346 10.3763 13.4818 10.032 13.835 9.50516C13.9687 9.30577 14.0973 9.00469 14.1496 8.76893C14.1961 8.55936 14.2126 8.24868 14.1884 8.03999C14.0686 7.00877 13.2506 6.20012 12.2222 6.09641C12.1065 6.08475 11.8771 6.08525 11.7605 6.09741Z", fill: config.style.color.iconPrimary }) })), (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__location__text__wrapper" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__location__text__header" }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__top__date__day" }, { children: config.text.shipsToLabel })) })), (0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__status__date__content" }, { children: formatAddress(shipment.destination) }))] }))] })))] })) })));
16
+ return ((0, jsx_runtime_1.jsx)("div", { class: "artajas__tracking__location__wrapper", children: (0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__location", children: [shipment.origin && ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__location__item", children: [(0, jsx_runtime_1.jsx)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.6545 0.212093C10.0285 0.277632 8.45344 0.840471 7.14725 1.82269C6.64673 2.19908 6.16259 2.66223 5.75607 3.15359C4.57861 4.57675 3.91704 6.41416 3.91687 8.2617C3.9167 10.0106 5.03372 12.9106 7.32097 17.0994C8.29574 18.8846 9.50182 20.9201 10.7612 22.9056C11.0118 23.3007 11.0523 23.3575 11.15 23.4511C11.3223 23.6164 11.5418 23.73 11.7772 23.7758C11.8898 23.7977 12.1103 23.7977 12.2229 23.7758C12.4566 23.7303 12.6769 23.6168 12.8474 23.454C12.9467 23.3591 12.9798 23.3128 13.2295 22.9199C14.3764 21.1152 15.5885 19.0784 16.5143 17.4C18.6669 13.4975 19.8454 10.641 20.0492 8.83199C20.0967 8.4102 20.092 7.94252 20.0348 7.40639C19.8826 5.97867 19.338 4.59831 18.4715 3.44373C18.0817 2.92428 17.6025 2.42594 17.0929 2.00995C16.0322 1.14425 14.733 0.553364 13.3825 0.322455C12.8067 0.224016 12.2464 0.188227 11.6545 0.212093ZM11.5061 1.69517C10.4115 1.78027 9.37908 2.1223 8.45765 2.70509C7.668 3.20453 6.93875 3.93035 6.43475 4.71845C5.90998 5.53904 5.57394 6.45728 5.44803 7.41464C5.39709 7.80194 5.37736 8.33101 5.40392 8.59679C5.558 10.1383 6.64765 12.7918 8.58523 16.344C9.29046 17.6369 10.1355 19.0922 11.024 20.544C11.5111 21.3399 11.9875 22.0992 11.9998 22.0992C12.0163 22.0992 12.7806 20.871 13.3172 19.9824C16.3487 14.9624 18.2047 11.0422 18.5521 8.92546C18.5951 8.66375 18.6072 8.50937 18.6063 8.23199C18.6026 6.99368 18.242 5.77655 17.5654 4.71845C17.0616 3.93074 16.3331 3.20565 15.5425 2.70517C14.6148 2.11789 13.5841 1.77834 12.4753 1.69462C12.2406 1.67691 11.7373 1.6772 11.5061 1.69517ZM11.8273 4.61888C10.7362 4.66386 9.7063 5.21285 9.04803 6.10026C8.76152 6.4865 8.56236 6.90406 8.44338 7.36799C8.37607 7.63043 8.34933 7.80522 8.33226 8.09453C8.31509 8.38522 8.3379 8.70955 8.39626 9.00479C8.69014 10.4916 9.88912 11.6582 11.3809 11.9087C11.6099 11.9472 11.7333 11.9568 12.0001 11.9568C12.2668 11.9568 12.3902 11.9472 12.6193 11.9087C14.1102 11.6583 15.3121 10.4889 15.604 9.00476C15.7403 8.31169 15.6729 7.57052 15.4153 6.93119C15.0728 6.08074 14.4552 5.40961 13.6369 4.99847C13.19 4.77398 12.6706 4.63768 12.2017 4.62185C12.1198 4.61909 12.0399 4.61573 12.0241 4.61438C12.0082 4.61305 11.9197 4.61507 11.8273 4.61888ZM11.7605 6.09741C11.2731 6.14831 10.7989 6.37645 10.4451 6.73028C10.1157 7.05968 9.91081 7.4563 9.82556 7.92959C9.80344 8.05238 9.79536 8.38481 9.81106 8.52687C9.85798 8.95181 10.0364 9.37132 10.3082 9.69599C10.662 10.1185 11.1466 10.3882 11.6977 10.4694C11.8548 10.4925 12.1453 10.4925 12.3025 10.4694C12.9346 10.3763 13.4818 10.032 13.835 9.50516C13.9687 9.30577 14.0973 9.00469 14.1496 8.76893C14.1961 8.55936 14.2126 8.24868 14.1884 8.03999C14.0686 7.00877 13.2506 6.20012 12.2222 6.09641C12.1065 6.08475 11.8771 6.08525 11.7605 6.09741Z", fill: config.style.color.iconPrimary }) }), (0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__location__text__wrapper", children: [(0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__location__text__header", children: (0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__location__text__header__label", children: config.text.shipsFromLabel }) }), (0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__location__text__content", children: formatAddress(shipment.origin) })] })] })), shipment.destination && ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__location__item", children: [(0, jsx_runtime_1.jsx)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.6545 0.212093C10.0285 0.277632 8.45344 0.840471 7.14725 1.82269C6.64673 2.19908 6.16259 2.66223 5.75607 3.15359C4.57861 4.57675 3.91704 6.41416 3.91687 8.2617C3.9167 10.0106 5.03372 12.9106 7.32097 17.0994C8.29574 18.8846 9.50182 20.9201 10.7612 22.9056C11.0118 23.3007 11.0523 23.3575 11.15 23.4511C11.3223 23.6164 11.5418 23.73 11.7772 23.7758C11.8898 23.7977 12.1103 23.7977 12.2229 23.7758C12.4566 23.7303 12.6769 23.6168 12.8474 23.454C12.9467 23.3591 12.9798 23.3128 13.2295 22.9199C14.3764 21.1152 15.5885 19.0784 16.5143 17.4C18.6669 13.4975 19.8454 10.641 20.0492 8.83199C20.0967 8.4102 20.092 7.94252 20.0348 7.40639C19.8826 5.97867 19.338 4.59831 18.4715 3.44373C18.0817 2.92428 17.6025 2.42594 17.0929 2.00995C16.0322 1.14425 14.733 0.553364 13.3825 0.322455C12.8067 0.224016 12.2464 0.188227 11.6545 0.212093ZM11.5061 1.69517C10.4115 1.78027 9.37908 2.1223 8.45765 2.70509C7.668 3.20453 6.93875 3.93035 6.43475 4.71845C5.90998 5.53904 5.57394 6.45728 5.44803 7.41464C5.39709 7.80194 5.37736 8.33101 5.40392 8.59679C5.558 10.1383 6.64765 12.7918 8.58523 16.344C9.29046 17.6369 10.1355 19.0922 11.024 20.544C11.5111 21.3399 11.9875 22.0992 11.9998 22.0992C12.0163 22.0992 12.7806 20.871 13.3172 19.9824C16.3487 14.9624 18.2047 11.0422 18.5521 8.92546C18.5951 8.66375 18.6072 8.50937 18.6063 8.23199C18.6026 6.99368 18.242 5.77655 17.5654 4.71845C17.0616 3.93074 16.3331 3.20565 15.5425 2.70517C14.6148 2.11789 13.5841 1.77834 12.4753 1.69462C12.2406 1.67691 11.7373 1.6772 11.5061 1.69517ZM11.8273 4.61888C10.7362 4.66386 9.7063 5.21285 9.04803 6.10026C8.76152 6.4865 8.56236 6.90406 8.44338 7.36799C8.37607 7.63043 8.34933 7.80522 8.33226 8.09453C8.31509 8.38522 8.3379 8.70955 8.39626 9.00479C8.69014 10.4916 9.88912 11.6582 11.3809 11.9087C11.6099 11.9472 11.7333 11.9568 12.0001 11.9568C12.2668 11.9568 12.3902 11.9472 12.6193 11.9087C14.1102 11.6583 15.3121 10.4889 15.604 9.00476C15.7403 8.31169 15.6729 7.57052 15.4153 6.93119C15.0728 6.08074 14.4552 5.40961 13.6369 4.99847C13.19 4.77398 12.6706 4.63768 12.2017 4.62185C12.1198 4.61909 12.0399 4.61573 12.0241 4.61438C12.0082 4.61305 11.9197 4.61507 11.8273 4.61888ZM11.7605 6.09741C11.2731 6.14831 10.7989 6.37645 10.4451 6.73028C10.1157 7.05968 9.91081 7.4563 9.82556 7.92959C9.80344 8.05238 9.79536 8.38481 9.81106 8.52687C9.85798 8.95181 10.0364 9.37132 10.3082 9.69599C10.662 10.1185 11.1466 10.3882 11.6977 10.4694C11.8548 10.4925 12.1453 10.4925 12.3025 10.4694C12.9346 10.3763 13.4818 10.032 13.835 9.50516C13.9687 9.30577 14.0973 9.00469 14.1496 8.76893C14.1961 8.55936 14.2126 8.24868 14.1884 8.03999C14.0686 7.00877 13.2506 6.20012 12.2222 6.09641C12.1065 6.08475 11.8771 6.08525 11.7605 6.09741Z", fill: config.style.color.iconPrimary }) }), (0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__location__text__wrapper", children: [(0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__location__text__header", children: (0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__location__text__header__label", children: config.text.shipsToLabel }) }), (0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__location__text__content", children: formatAddress(shipment.destination) })] })] }))] }) }));
28
17
  };
29
18
  exports.ShipToFrom = ShipToFrom;
@@ -1,20 +1,9 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.HexagonAlertBase = void 0;
15
4
  var jsx_runtime_1 = require("preact/jsx-runtime");
16
5
  var HexagonAlertBase = function (_a) {
17
6
  var config = _a.config;
18
- return ((0, jsx_runtime_1.jsxs)("svg", __assign({ width: "25", height: "24", viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [(0, jsx_runtime_1.jsx)("g", __assign({ "clip-path": "url(#clip0_771_16196)" }, { children: (0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.376 0.0381743C7.3232 0.0570143 7.22823 0.112862 7.16494 0.162278C7.07775 0.23039 2.42742 5.02439 0.832448 6.6904C0.652016 6.87887 0.58976 6.96203 0.550448 7.0671L0.5 7.20196V12.0002V16.7984L0.550448 16.9332C0.58976 17.0383 0.65204 17.1215 0.832448 17.31C2.41086 18.959 7.0777 23.7699 7.16494 23.8379C7.39042 24.0138 6.94273 24.0002 12.5 24.0002C18.0573 24.0002 17.6097 24.0138 17.835 23.8379C17.8982 23.7886 19.1553 22.5008 20.6284 20.9762C24.6688 16.7948 24.3914 17.0875 24.4408 16.9533C24.4645 16.8889 24.4929 16.8259 24.504 16.8134C24.5295 16.7843 24.5305 7.14529 24.505 7.16104C24.4946 7.16749 24.467 7.11894 24.4436 7.05313C24.3948 6.91571 24.6922 7.22982 20.6284 3.02416C19.1553 1.49956 17.8982 0.211766 17.835 0.162422C17.6096 -0.0135457 18.0592 -5.76989e-05 12.4897 0.0020543C8.20887 0.0036623 7.45791 0.0089663 7.376 0.0381743ZM4.97 4.57581L2.012 7.63698V12.0002V16.3633L4.97 19.4246L7.928 22.4858L12.5 22.4857L17.072 22.4857L20.03 19.4245L22.988 16.3633V12.0003V7.63725L20.03 4.57597L17.072 1.5147L12.5 1.51468L7.928 1.51465L4.97 4.57581ZM12.3079 4.36516C12.1147 4.42849 11.9121 4.59414 11.82 4.76416L11.768 4.86016L11.7617 9.18945L11.7555 13.5187L11.8122 13.6425C11.8935 13.8201 12.0023 13.9324 12.1757 14.0178C12.5594 14.2067 13.0052 14.0415 13.1878 13.6425L13.2445 13.5187L13.2383 9.18945C13.2323 5.04198 13.2302 4.85677 13.188 4.77942C13.1158 4.64718 12.9541 4.48801 12.825 4.42225C12.6958 4.35647 12.4254 4.32661 12.3079 4.36516ZM0.51176 12.0002C0.51176 14.66 0.514568 15.7481 0.518 14.4182C0.521432 13.0883 0.521432 10.9121 0.518 9.58216C0.514568 8.25227 0.51176 9.34036 0.51176 12.0002ZM12.1583 15.6468C11.7841 15.7664 11.4657 16.1168 11.3963 16.4854C11.3213 16.8838 11.431 17.2446 11.7119 17.5237C12.1498 17.959 12.8502 17.959 13.2881 17.5237C13.8085 17.0066 13.7181 16.1648 13.0997 15.7679C12.8413 15.6021 12.4539 15.5523 12.1583 15.6468Z", fill: config.style.color.exceptionIcon }) })), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", __assign({ id: "clip0_771_16196" }, { children: (0, jsx_runtime_1.jsx)("rect", { width: "24", height: "24", fill: config.style.color.background, transform: "translate(0.5)" }) })) })] })));
7
+ return ((0, jsx_runtime_1.jsxs)("svg", { width: "25", height: "24", viewBox: "0 0 25 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("g", { "clip-path": "url(#clip0_771_16196)", children: (0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.376 0.0381743C7.3232 0.0570143 7.22823 0.112862 7.16494 0.162278C7.07775 0.23039 2.42742 5.02439 0.832448 6.6904C0.652016 6.87887 0.58976 6.96203 0.550448 7.0671L0.5 7.20196V12.0002V16.7984L0.550448 16.9332C0.58976 17.0383 0.65204 17.1215 0.832448 17.31C2.41086 18.959 7.0777 23.7699 7.16494 23.8379C7.39042 24.0138 6.94273 24.0002 12.5 24.0002C18.0573 24.0002 17.6097 24.0138 17.835 23.8379C17.8982 23.7886 19.1553 22.5008 20.6284 20.9762C24.6688 16.7948 24.3914 17.0875 24.4408 16.9533C24.4645 16.8889 24.4929 16.8259 24.504 16.8134C24.5295 16.7843 24.5305 7.14529 24.505 7.16104C24.4946 7.16749 24.467 7.11894 24.4436 7.05313C24.3948 6.91571 24.6922 7.22982 20.6284 3.02416C19.1553 1.49956 17.8982 0.211766 17.835 0.162422C17.6096 -0.0135457 18.0592 -5.76989e-05 12.4897 0.0020543C8.20887 0.0036623 7.45791 0.0089663 7.376 0.0381743ZM4.97 4.57581L2.012 7.63698V12.0002V16.3633L4.97 19.4246L7.928 22.4858L12.5 22.4857L17.072 22.4857L20.03 19.4245L22.988 16.3633V12.0003V7.63725L20.03 4.57597L17.072 1.5147L12.5 1.51468L7.928 1.51465L4.97 4.57581ZM12.3079 4.36516C12.1147 4.42849 11.9121 4.59414 11.82 4.76416L11.768 4.86016L11.7617 9.18945L11.7555 13.5187L11.8122 13.6425C11.8935 13.8201 12.0023 13.9324 12.1757 14.0178C12.5594 14.2067 13.0052 14.0415 13.1878 13.6425L13.2445 13.5187L13.2383 9.18945C13.2323 5.04198 13.2302 4.85677 13.188 4.77942C13.1158 4.64718 12.9541 4.48801 12.825 4.42225C12.6958 4.35647 12.4254 4.32661 12.3079 4.36516ZM0.51176 12.0002C0.51176 14.66 0.514568 15.7481 0.518 14.4182C0.521432 13.0883 0.521432 10.9121 0.518 9.58216C0.514568 8.25227 0.51176 9.34036 0.51176 12.0002ZM12.1583 15.6468C11.7841 15.7664 11.4657 16.1168 11.3963 16.4854C11.3213 16.8838 11.431 17.2446 11.7119 17.5237C12.1498 17.959 12.8502 17.959 13.2881 17.5237C13.8085 17.0066 13.7181 16.1648 13.0997 15.7679C12.8413 15.6021 12.4539 15.5523 12.1583 15.6468Z", fill: config.style.color.exceptionIcon }) }), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", { id: "clip0_771_16196", children: (0, jsx_runtime_1.jsx)("rect", { width: "24", height: "24", fill: config.style.color.background, transform: "translate(0.5)" }) }) })] }));
19
8
  };
20
9
  exports.HexagonAlertBase = HexagonAlertBase;
@@ -1,20 +1,9 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.HexagonPauseBase = void 0;
15
4
  var jsx_runtime_1 = require("preact/jsx-runtime");
16
5
  var HexagonPauseBase = function (_a) {
17
6
  var config = _a.config;
18
- return ((0, jsx_runtime_1.jsxs)("svg", __assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", focusable: "false" }, { children: [(0, jsx_runtime_1.jsx)("g", __assign({ "clip-path": "url(#arta__clip0_3203_12005)" }, { children: (0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.98543 0.848012C7.08937 0.775388 7.19706 0.730258 7.31357 0.710511C7.33823 0.706325 9.46008 0.703493 12.0288 0.704213L16.6992 0.705519L16.7696 0.727359C16.8548 0.753826 16.9394 0.795452 17.0144 0.847916C17.0746 0.889964 23.081 7.09356 23.1485 7.18337C23.1999 7.25175 23.2467 7.34747 23.2727 7.43713L23.2944 7.51192V11.9999V16.4879L23.2727 16.5627C23.2467 16.6524 23.1999 16.7481 23.1484 16.8165C23.0808 16.9066 17.0749 23.1097 17.0146 23.1518C16.9361 23.2067 16.8521 23.2472 16.7645 23.2726L16.6896 23.2943H12H7.3104L7.23553 23.2726C7.14785 23.2472 7.06389 23.2067 6.98535 23.1518C6.92485 23.1095 0.919591 16.9071 0.851738 16.8168C0.800138 16.7481 0.753299 16.6525 0.727274 16.5627L0.705597 16.4879V11.9999V7.51192L0.727274 7.43713C0.753271 7.34744 0.800128 7.25175 0.851575 7.18329C0.919235 7.09325 6.9251 0.890165 6.98543 0.848012ZM2.208 7.9319L4.9752 5.07005L7.7424 2.20821L12 2.20823L16.2576 2.20825L19.0248 5.0701L21.792 7.93195V11.9999V16.0679L19.0248 18.9298L16.2576 21.7916L12 21.7916L7.7424 21.7916L4.9752 18.9298L2.208 16.068V12V7.9319ZM12.9231 7.30784C12.9231 6.79804 12.5098 6.38477 12 6.38477C11.4902 6.38477 11.0769 6.79804 11.0769 7.30784V11.9232C11.0769 12.433 11.4902 12.8463 12 12.8463C12.5098 12.8463 12.9231 12.433 12.9231 11.9232V7.30784ZM12 15.6925C11.4902 15.6925 11.0769 16.1057 11.0769 16.6155V16.6254C11.0769 17.1352 11.4902 17.5485 12 17.5485H12.0098C12.5196 17.5485 12.9329 17.1352 12.9329 16.6254V16.6155C12.9329 16.1057 12.5196 15.6925 12.0098 15.6925H12Z", fill: config.style.color.exceptionIcon }) })), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", __assign({ id: "arta__clip0_3203_12005" }, { children: (0, jsx_runtime_1.jsx)("rect", { width: "24", height: "24", fill: config.style.color.background }) })) })] })));
7
+ return ((0, jsx_runtime_1.jsxs)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", focusable: "false", children: [(0, jsx_runtime_1.jsx)("g", { "clip-path": "url(#arta__clip0_3203_12005)", children: (0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.98543 0.848012C7.08937 0.775388 7.19706 0.730258 7.31357 0.710511C7.33823 0.706325 9.46008 0.703493 12.0288 0.704213L16.6992 0.705519L16.7696 0.727359C16.8548 0.753826 16.9394 0.795452 17.0144 0.847916C17.0746 0.889964 23.081 7.09356 23.1485 7.18337C23.1999 7.25175 23.2467 7.34747 23.2727 7.43713L23.2944 7.51192V11.9999V16.4879L23.2727 16.5627C23.2467 16.6524 23.1999 16.7481 23.1484 16.8165C23.0808 16.9066 17.0749 23.1097 17.0146 23.1518C16.9361 23.2067 16.8521 23.2472 16.7645 23.2726L16.6896 23.2943H12H7.3104L7.23553 23.2726C7.14785 23.2472 7.06389 23.2067 6.98535 23.1518C6.92485 23.1095 0.919591 16.9071 0.851738 16.8168C0.800138 16.7481 0.753299 16.6525 0.727274 16.5627L0.705597 16.4879V11.9999V7.51192L0.727274 7.43713C0.753271 7.34744 0.800128 7.25175 0.851575 7.18329C0.919235 7.09325 6.9251 0.890165 6.98543 0.848012ZM2.208 7.9319L4.9752 5.07005L7.7424 2.20821L12 2.20823L16.2576 2.20825L19.0248 5.0701L21.792 7.93195V11.9999V16.0679L19.0248 18.9298L16.2576 21.7916L12 21.7916L7.7424 21.7916L4.9752 18.9298L2.208 16.068V12V7.9319ZM12.9231 7.30784C12.9231 6.79804 12.5098 6.38477 12 6.38477C11.4902 6.38477 11.0769 6.79804 11.0769 7.30784V11.9232C11.0769 12.433 11.4902 12.8463 12 12.8463C12.5098 12.8463 12.9231 12.433 12.9231 11.9232V7.30784ZM12 15.6925C11.4902 15.6925 11.0769 16.1057 11.0769 16.6155V16.6254C11.0769 17.1352 11.4902 17.5485 12 17.5485H12.0098C12.5196 17.5485 12.9329 17.1352 12.9329 16.6254V16.6155C12.9329 16.1057 12.5196 15.6925 12.0098 15.6925H12Z", fill: config.style.color.exceptionIcon }) }), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", { id: "arta__clip0_3203_12005", children: (0, jsx_runtime_1.jsx)("rect", { width: "24", height: "24", fill: config.style.color.background }) }) })] }));
19
8
  };
20
9
  exports.HexagonPauseBase = HexagonPauseBase;
@@ -1,20 +1,9 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.HexagonStopBase = void 0;
15
4
  var jsx_runtime_1 = require("preact/jsx-runtime");
16
5
  var HexagonStopBase = function (_a) {
17
6
  var config = _a.config;
18
- return ((0, jsx_runtime_1.jsxs)("svg", __assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", focusable: "false" }, { children: [(0, jsx_runtime_1.jsx)("g", __assign({ "clip-path": "url(#arta__clip0_3203_12006)" }, { children: (0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.98543 0.848012C7.08937 0.775388 7.19706 0.730258 7.31357 0.710511C7.33823 0.706325 9.46008 0.703493 12.0288 0.704213L16.6992 0.705519L16.7696 0.727359C16.8548 0.753826 16.9394 0.795452 17.0144 0.847916C17.0746 0.889964 23.081 7.09356 23.1485 7.18337C23.1999 7.25175 23.2467 7.34747 23.2727 7.43713L23.2944 7.51192V11.9999V16.4879L23.2727 16.5627C23.2467 16.6524 23.1999 16.7481 23.1484 16.8165C23.0808 16.9066 17.0749 23.1097 17.0146 23.1518C16.9361 23.2067 16.8521 23.2472 16.7645 23.2726L16.6896 23.2943H12H7.3104L7.23553 23.2726C7.14785 23.2472 7.06389 23.2067 6.98535 23.1518C6.92485 23.1095 0.919591 16.9071 0.851738 16.8168C0.800138 16.7481 0.753299 16.6525 0.727274 16.5627L0.705597 16.4879V11.9999V7.51192L0.727274 7.43713C0.753271 7.34744 0.800128 7.25175 0.851575 7.18329C0.919235 7.09325 6.9251 0.890165 6.98543 0.848012ZM2.208 7.9319L4.9752 5.07005L7.7424 2.20821L12 2.20823L16.2576 2.20825L19.0248 5.0701L21.792 7.93195V11.9999V16.0679L19.0248 18.9298L16.2576 21.7916L12 21.7916L7.7424 21.7916L4.9752 18.9298L2.208 16.068V12V7.9319ZM7 11C6.44772 11 6 11.4477 6 12C6 12.5523 6.44771 13 7 13H17C17.5523 13 18 12.5523 18 12C18 11.4477 17.5523 11 17 11H7Z", fill: config.style.color.exceptionIcon }) })), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", __assign({ id: "arta__clip0_3203_12006" }, { children: (0, jsx_runtime_1.jsx)("rect", { width: "24", height: "24", fill: config.style.color.background }) })) })] })));
7
+ return ((0, jsx_runtime_1.jsxs)("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", focusable: "false", children: [(0, jsx_runtime_1.jsx)("g", { "clip-path": "url(#arta__clip0_3203_12006)", children: (0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M6.98543 0.848012C7.08937 0.775388 7.19706 0.730258 7.31357 0.710511C7.33823 0.706325 9.46008 0.703493 12.0288 0.704213L16.6992 0.705519L16.7696 0.727359C16.8548 0.753826 16.9394 0.795452 17.0144 0.847916C17.0746 0.889964 23.081 7.09356 23.1485 7.18337C23.1999 7.25175 23.2467 7.34747 23.2727 7.43713L23.2944 7.51192V11.9999V16.4879L23.2727 16.5627C23.2467 16.6524 23.1999 16.7481 23.1484 16.8165C23.0808 16.9066 17.0749 23.1097 17.0146 23.1518C16.9361 23.2067 16.8521 23.2472 16.7645 23.2726L16.6896 23.2943H12H7.3104L7.23553 23.2726C7.14785 23.2472 7.06389 23.2067 6.98535 23.1518C6.92485 23.1095 0.919591 16.9071 0.851738 16.8168C0.800138 16.7481 0.753299 16.6525 0.727274 16.5627L0.705597 16.4879V11.9999V7.51192L0.727274 7.43713C0.753271 7.34744 0.800128 7.25175 0.851575 7.18329C0.919235 7.09325 6.9251 0.890165 6.98543 0.848012ZM2.208 7.9319L4.9752 5.07005L7.7424 2.20821L12 2.20823L16.2576 2.20825L19.0248 5.0701L21.792 7.93195V11.9999V16.0679L19.0248 18.9298L16.2576 21.7916L12 21.7916L7.7424 21.7916L4.9752 18.9298L2.208 16.068V12V7.9319ZM7 11C6.44772 11 6 11.4477 6 12C6 12.5523 6.44771 13 7 13H17C17.5523 13 18 12.5523 18 12C18 11.4477 17.5523 11 17 11H7Z", fill: config.style.color.exceptionIcon }) }), (0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsx)("clipPath", { id: "arta__clip0_3203_12006", children: (0, jsx_runtime_1.jsx)("rect", { width: "24", height: "24", fill: config.style.color.background }) }) })] }));
19
8
  };
20
9
  exports.HexagonStopBase = HexagonStopBase;
@@ -1,8 +1,11 @@
1
1
  import { TrackingConfig } from '../../trackingConfig';
2
- import { Shipment } from '../TrackingDrawer';
2
+ import { ArtaShipmentException, Shipment } from '../TrackingDrawer';
3
3
  interface ShipmentExceptionProps {
4
4
  config: TrackingConfig;
5
5
  shipment: Shipment;
6
6
  }
7
+ export declare function groupExceptions(shipment: Shipment): Record<string, ArtaShipmentException[]>;
8
+ export declare function getTopPriorityExceptions(groupedExceptions: Record<string, ArtaShipmentException[]> | null): ArtaShipmentException[];
9
+ export declare function getExceptionMessage(config: TrackingConfig, topPriorityExceptions: ArtaShipmentException[], shipment: Shipment): string | null;
7
10
  export declare const ShipmentException: ({ config, shipment, }: ShipmentExceptionProps) => import("preact").JSX.Element;
8
11
  export {};
@@ -1,17 +1,9 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.ShipmentException = void 0;
4
+ exports.groupExceptions = groupExceptions;
5
+ exports.getTopPriorityExceptions = getTopPriorityExceptions;
6
+ exports.getExceptionMessage = getExceptionMessage;
15
7
  var jsx_runtime_1 = require("preact/jsx-runtime");
16
8
  var ExceptionIcon_1 = require("./icons/ExceptionIcon");
17
9
  var exceptionPriorityList = [
@@ -92,6 +84,6 @@ var ShipmentException = function (_a) {
92
84
  if (!expcetionMessage) {
93
85
  return (0, jsx_runtime_1.jsx)("div", {});
94
86
  }
95
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__exception__wrapper" }, { children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ExceptionIcon_1.ExceptionIcon, { config: config, currentException: currentException }) }), (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__exception__content" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__exception__title" }, { children: expcetionMessage })), (0, jsx_runtime_1.jsx)("a", __assign({ href: "mailto:".concat(config.navigation.shipmentExceptionMailTo), class: "artajs__tracking__exception__cta" }, { children: config.text.shipmentExceptionCTA }))] }))] })));
87
+ return ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__exception__wrapper", children: [(0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ExceptionIcon_1.ExceptionIcon, { config: config, currentException: currentException }) }), (0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__exception__content", children: [(0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__exception__title", children: expcetionMessage }), (0, jsx_runtime_1.jsx)("a", { href: "mailto:".concat(config.navigation.shipmentExceptionMailTo), class: "artajs__tracking__exception__cta", children: config.text.shipmentExceptionCTA })] })] }));
96
88
  };
97
89
  exports.ShipmentException = ShipmentException;
@@ -1,20 +1,9 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.Summary = void 0;
15
4
  var jsx_runtime_1 = require("preact/jsx-runtime");
16
5
  var Summary = function (_a) {
17
6
  var config = _a.config, shipment = _a.shipment;
18
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__summary__wrapper" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__summary__content" }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__summary__title" }, { children: shipment.shortcode })) })), (0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__summary__date" }, { children: "".concat(config.text.bookedLabel).concat(new Date(shipment.created_at).toLocaleString()) }))] })));
7
+ return ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__summary__wrapper", children: [(0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__summary__content", children: (0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__summary__title", children: shipment.shortcode }) }), (0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__summary__date", children: "".concat(config.text.bookedLabel).concat(new Date(shipment.created_at).toLocaleString()) })] }));
19
8
  };
20
9
  exports.Summary = Summary;
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.CheckedStep = void 0;
15
4
  var jsx_runtime_1 = require("preact/jsx-runtime");
@@ -21,6 +10,6 @@ var CheckedStep = function (_a) {
21
10
  var finalDate = parsedDate
22
11
  ? "".concat(dateConfig.weekdays[parsedDate.weekday], ", ").concat(dateConfig.months[parsedDate.month], " ").concat(parsedDate.day)
23
12
  : '';
24
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__timeline__step" }, { children: [(0, jsx_runtime_1.jsx)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, { children: (0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "12", r: "6", fill: config.style.color.iconPrimary }) })), (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__timeline__status__text__wrapper" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__step__text__primary" }, { children: text })), (0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__status__date" }, { children: (0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__status__date__secondary" }, { children: finalDate })) }))] }))] })));
13
+ return ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__timeline__step", children: [(0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: (0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "12", r: "6", fill: config.style.color.iconPrimary }) }), (0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__timeline__status__text__wrapper", children: [(0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__step__text__primary", children: text }), (0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__status__date", children: (0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__status__date__secondary", children: finalDate }) })] })] }));
25
14
  };
26
15
  exports.CheckedStep = CheckedStep;
@@ -1,20 +1,9 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.CheckedSteps = void 0;
15
4
  var jsx_runtime_1 = require("preact/jsx-runtime");
16
5
  var CheckedSteps = function (_a) {
17
6
  var config = _a.config;
18
- return ((0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__triple__dots" }, { children: (0, jsx_runtime_1.jsxs)("svg", __assign({ width: "29", height: "26", viewBox: "0 0 29 26", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [(0, jsx_runtime_1.jsx)("circle", { cx: "2.33325", cy: "24", r: "2", fill: config.style.color.iconPrimary }), (0, jsx_runtime_1.jsx)("circle", { cx: "10.3333", cy: "24", r: "2", fill: config.style.color.iconPrimary }), (0, jsx_runtime_1.jsx)("circle", { cx: "18.3333", cy: "24", r: "2", fill: config.style.color.iconPrimary }), (0, jsx_runtime_1.jsx)("circle", { cx: "26.3333", cy: "24", r: "2", fill: config.style.color.iconPrimary })] })) })));
7
+ return ((0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__triple__dots", children: (0, jsx_runtime_1.jsxs)("svg", { width: "29", height: "26", viewBox: "0 0 29 26", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("circle", { cx: "2.33325", cy: "24", r: "2", fill: config.style.color.iconPrimary }), (0, jsx_runtime_1.jsx)("circle", { cx: "10.3333", cy: "24", r: "2", fill: config.style.color.iconPrimary }), (0, jsx_runtime_1.jsx)("circle", { cx: "18.3333", cy: "24", r: "2", fill: config.style.color.iconPrimary }), (0, jsx_runtime_1.jsx)("circle", { cx: "26.3333", cy: "24", r: "2", fill: config.style.color.iconPrimary })] }) }));
19
8
  };
20
9
  exports.CheckedSteps = CheckedSteps;
@@ -1,20 +1,9 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.EmptyStep = void 0;
15
4
  var jsx_runtime_1 = require("preact/jsx-runtime");
16
5
  var EmptyStep = function (_a) {
17
6
  var stroke = _a.stroke, text = _a.text;
18
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__timeline__step" }, { children: [(0, jsx_runtime_1.jsx)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, { children: (0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "12", r: "5.5", fill: "none", stroke: stroke, "stroke-width": "2" }) })), (0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__step__text__secondary" }, { children: text }))] })));
7
+ return ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__timeline__step", children: [(0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: (0, jsx_runtime_1.jsx)("circle", { cx: "12", cy: "12", r: "5.5", fill: "none", stroke: stroke, "stroke-width": "2" }) }), (0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__step__text__secondary", children: text })] }));
19
8
  };
20
9
  exports.EmptyStep = EmptyStep;
@@ -1,20 +1,9 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.SecondaryStep = void 0;
15
4
  var jsx_runtime_1 = require("preact/jsx-runtime");
16
5
  var SecondaryStep = function (_a) {
17
6
  var config = _a.config;
18
- return ((0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__minimal__secondary__step" }, { children: (0, jsx_runtime_1.jsx)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: "8", height: "8", viewBox: "0 0 8 8", fill: "none" }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M8 4C8 6.20914 6.20914 8 4 8C1.79086 8 0 6.20914 0 4C0 1.79086 1.79086 0 4 0C6.20914 0 8 1.79086 8 4Z", fill: config.style.color.iconTertiary }) })) })));
7
+ return ((0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__minimal__secondary__step", children: (0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", children: (0, jsx_runtime_1.jsx)("path", { d: "M8 4C8 6.20914 6.20914 8 4 8C1.79086 8 0 6.20914 0 4C0 1.79086 1.79086 0 4 0C6.20914 0 8 1.79086 8 4Z", fill: config.style.color.iconTertiary }) }) }));
19
8
  };
20
9
  exports.SecondaryStep = SecondaryStep;
@@ -1,20 +1,9 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.SecondarySteps = void 0;
15
4
  var jsx_runtime_1 = require("preact/jsx-runtime");
16
5
  var SecondarySteps = function (_a) {
17
6
  var config = _a.config;
18
- return ((0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__triple__dots" }, { children: (0, jsx_runtime_1.jsxs)("svg", __assign({ width: "29", height: "26", viewBox: "0 0 29 26", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [(0, jsx_runtime_1.jsx)("circle", { cx: "2.33325", cy: "24", r: "2", fill: config.style.color.iconTertiary }), (0, jsx_runtime_1.jsx)("circle", { cx: "10.3333", cy: "24", r: "2", fill: config.style.color.iconTertiary }), (0, jsx_runtime_1.jsx)("circle", { cx: "18.3333", cy: "24", r: "2", fill: config.style.color.iconTertiary }), (0, jsx_runtime_1.jsx)("circle", { cx: "26.3333", cy: "24", r: "2", fill: config.style.color.iconTertiary })] })) })));
7
+ return ((0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__triple__dots", children: (0, jsx_runtime_1.jsxs)("svg", { width: "29", height: "26", viewBox: "0 0 29 26", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [(0, jsx_runtime_1.jsx)("circle", { cx: "2.33325", cy: "24", r: "2", fill: config.style.color.iconTertiary }), (0, jsx_runtime_1.jsx)("circle", { cx: "10.3333", cy: "24", r: "2", fill: config.style.color.iconTertiary }), (0, jsx_runtime_1.jsx)("circle", { cx: "18.3333", cy: "24", r: "2", fill: config.style.color.iconTertiary }), (0, jsx_runtime_1.jsx)("circle", { cx: "26.3333", cy: "24", r: "2", fill: config.style.color.iconTertiary })] }) }));
19
8
  };
20
9
  exports.SecondarySteps = SecondarySteps;
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.TimelineDefault = void 0;
15
4
  var jsx_runtime_1 = require("preact/jsx-runtime");
@@ -35,10 +24,10 @@ var isSmaller = function (a, b) {
35
24
  };
36
25
  var TimelineDefault = function (_a) {
37
26
  var config = _a.config, shipment = _a.shipment;
38
- return ((0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__default__wrapper" }, { children: shipment.status === 'cancelled' || shipment.status === 'pending' ? (shipment.status === 'pending' ? ((0, jsx_runtime_1.jsx)(PendingIcon_1.PendingIcon, { config: config })) : ((0, jsx_runtime_1.jsx)(CancelledIcon_1.CancelledIcon, { config: config }))) : ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__timeline__default__steps" }, { children: [shipment.status === 'confirmed' ? ((0, jsx_runtime_1.jsx)(ConfirmedIcon_1.ConfirmedIcon, { config: config, shipment: shipment })) : ((0, jsx_runtime_1.jsx)(CheckedStep_1.CheckedStep, { text: config.text.confirmedLabel, date: shipment.confirmed_at, config: config })), shipment.status === 'confirmed' ? ((0, jsx_runtime_1.jsx)(SecondarySteps_1.SecondarySteps, { config: config })) : ((0, jsx_runtime_1.jsx)(CheckedSteps_1.CheckedSteps, { config: config })), shipment.quote_type !== 'self_ship' &&
27
+ return ((0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__default__wrapper", children: shipment.status === 'cancelled' || shipment.status === 'pending' ? (shipment.status === 'pending' ? ((0, jsx_runtime_1.jsx)(PendingIcon_1.PendingIcon, { config: config })) : ((0, jsx_runtime_1.jsx)(CancelledIcon_1.CancelledIcon, { config: config }))) : ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__timeline__default__steps", children: [shipment.status === 'confirmed' ? ((0, jsx_runtime_1.jsx)(ConfirmedIcon_1.ConfirmedIcon, { config: config, shipment: shipment })) : ((0, jsx_runtime_1.jsx)(CheckedStep_1.CheckedStep, { text: config.text.confirmedLabel, date: shipment.confirmed_at, config: config })), shipment.status === 'confirmed' ? ((0, jsx_runtime_1.jsx)(SecondarySteps_1.SecondarySteps, { config: config })) : ((0, jsx_runtime_1.jsx)(CheckedSteps_1.CheckedSteps, { config: config })), shipment.quote_type !== 'self_ship' &&
39
28
  (shipment.status === 'collected' ? ((0, jsx_runtime_1.jsx)(CollectedIcon_1.CollectedIcon, { config: config, shipment: shipment })) : isSmaller(shipment.status, 'collected') ? ((0, jsx_runtime_1.jsx)(EmptyStep_1.EmptyStep, { text: config.text.collectedLabel, stroke: config.style.color.iconTertiary })) : ((0, jsx_runtime_1.jsx)(CheckedStep_1.CheckedStep, { text: config.text.collectedLabel, date: shipment.collected_at, config: config }))), shipment.quote_type !== 'self_ship' &&
40
29
  (shipment.status === 'collected' ||
41
30
  isSmaller(shipment.status, 'collected') ? ((0, jsx_runtime_1.jsx)(SecondarySteps_1.SecondarySteps, { config: config })) : ((0, jsx_runtime_1.jsx)(CheckedSteps_1.CheckedSteps, { config: config }))), shipment.status === 'in_transit' ? ((0, jsx_runtime_1.jsx)(InTransitIcon_1.InTransitIcon, { config: config, shipment: shipment })) : isSmaller(shipment.status, 'in_transit') ? ((0, jsx_runtime_1.jsx)(EmptyStep_1.EmptyStep, { text: config.text.inTransitLabel, stroke: config.style.color.iconTertiary })) : ((0, jsx_runtime_1.jsx)(CheckedStep_1.CheckedStep, { text: config.text.inTransitLabel, date: shipment.in_transit_at, config: config })), shipment.status === 'in_transit' ||
42
- isSmaller(shipment.status, 'in_transit') ? ((0, jsx_runtime_1.jsx)(SecondarySteps_1.SecondarySteps, { config: config })) : ((0, jsx_runtime_1.jsx)(CheckedSteps_1.CheckedSteps, { config: config })), shipment.status === 'completed' ? ((0, jsx_runtime_1.jsx)(CompletedIcon_1.CompletedIcon, { config: config, shipment: shipment })) : isSmaller(shipment.status, 'completed') ? ((0, jsx_runtime_1.jsx)(EmptyStep_1.EmptyStep, { text: config.text.completedLabel, stroke: config.style.color.iconTertiary })) : ((0, jsx_runtime_1.jsx)(CheckedStep_1.CheckedStep, { text: config.text.completedLabel, date: shipment.completed_at, config: config }))] }))) })));
31
+ isSmaller(shipment.status, 'in_transit') ? ((0, jsx_runtime_1.jsx)(SecondarySteps_1.SecondarySteps, { config: config })) : ((0, jsx_runtime_1.jsx)(CheckedSteps_1.CheckedSteps, { config: config })), shipment.status === 'completed' ? ((0, jsx_runtime_1.jsx)(CompletedIcon_1.CompletedIcon, { config: config, shipment: shipment })) : isSmaller(shipment.status, 'completed') ? ((0, jsx_runtime_1.jsx)(EmptyStep_1.EmptyStep, { text: config.text.completedLabel, stroke: config.style.color.iconTertiary })) : ((0, jsx_runtime_1.jsx)(CheckedStep_1.CheckedStep, { text: config.text.completedLabel, date: shipment.completed_at, config: config }))] })) }));
43
32
  };
44
33
  exports.TimelineDefault = TimelineDefault;
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.TimelineMinimal = void 0;
15
4
  var jsx_runtime_1 = require("preact/jsx-runtime");
@@ -70,6 +59,6 @@ var TimelineMinimal = function (_a) {
70
59
  completed: 'completed_at',
71
60
  cancelled: 'cancelled_at',
72
61
  };
73
- return ((0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__minimal__wrapper" }, { children: shipment.status === 'cancelled' || shipment.status === 'pending' ? (shipment.status === 'pending' ? ((0, jsx_runtime_1.jsx)(PendingIcon_1.PendingIcon, { config: config })) : ((0, jsx_runtime_1.jsx)(CancelledIcon_1.CancelledIcon, { config: config }))) : ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__timeline__minimal__divider" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__minimal__step" }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__timeline__minimal__spacing" }, { children: [(0, jsx_runtime_1.jsx)(Step, { config: config, shipment: shipment, idx: 0 }), (0, jsx_runtime_1.jsx)(Step, { config: config, shipment: shipment, idx: 1 }), (0, jsx_runtime_1.jsx)(Step, { config: config, shipment: shipment, idx: 2 }), shipment.status === 'confirmed' && ((0, jsx_runtime_1.jsx)(ConfirmedIconBase_1.ConfirmedIconBase, { config: config })), shipment.status === 'collected' && ((0, jsx_runtime_1.jsx)(CollectedIconBase_1.CollectedIconBase, { config: config })), shipment.status === 'in_transit' && ((0, jsx_runtime_1.jsx)(InTransitIconBase_1.InTransitIconBase, { config: config })), shipment.status === 'completed' && ((0, jsx_runtime_1.jsx)(CompletedIconBase_1.CompletedIconBase, { config: config })), (0, jsx_runtime_1.jsx)(Step, { config: config, shipment: shipment, idx: 3 }), (0, jsx_runtime_1.jsx)(Step, { config: config, shipment: shipment, idx: 4 }), (0, jsx_runtime_1.jsx)(Step, { config: config, shipment: shipment, idx: 5 })] })) })), (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__timeline__status__text__wrapper" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__status__text__large" }, { children: config.text[labelMap[shipment.status]] })), (0, jsx_runtime_1.jsx)(SimpleDate_1.SimpleDate, { date: shipment[dateMap[shipment.status]], dateConfig: config.text.dates })] }))] }))) })));
62
+ return ((0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__minimal__wrapper", children: shipment.status === 'cancelled' || shipment.status === 'pending' ? (shipment.status === 'pending' ? ((0, jsx_runtime_1.jsx)(PendingIcon_1.PendingIcon, { config: config })) : ((0, jsx_runtime_1.jsx)(CancelledIcon_1.CancelledIcon, { config: config }))) : ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__timeline__minimal__divider", children: [(0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__minimal__step", children: (0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__timeline__minimal__spacing", children: [(0, jsx_runtime_1.jsx)(Step, { config: config, shipment: shipment, idx: 0 }), (0, jsx_runtime_1.jsx)(Step, { config: config, shipment: shipment, idx: 1 }), (0, jsx_runtime_1.jsx)(Step, { config: config, shipment: shipment, idx: 2 }), shipment.status === 'confirmed' && ((0, jsx_runtime_1.jsx)(ConfirmedIconBase_1.ConfirmedIconBase, { config: config })), shipment.status === 'collected' && ((0, jsx_runtime_1.jsx)(CollectedIconBase_1.CollectedIconBase, { config: config })), shipment.status === 'in_transit' && ((0, jsx_runtime_1.jsx)(InTransitIconBase_1.InTransitIconBase, { config: config })), shipment.status === 'completed' && ((0, jsx_runtime_1.jsx)(CompletedIconBase_1.CompletedIconBase, { config: config })), (0, jsx_runtime_1.jsx)(Step, { config: config, shipment: shipment, idx: 3 }), (0, jsx_runtime_1.jsx)(Step, { config: config, shipment: shipment, idx: 4 }), (0, jsx_runtime_1.jsx)(Step, { config: config, shipment: shipment, idx: 5 })] }) }), (0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__timeline__status__text__wrapper", children: [(0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__status__text__large", children: config.text[labelMap[shipment.status]] }), (0, jsx_runtime_1.jsx)(SimpleDate_1.SimpleDate, { date: shipment[dateMap[shipment.status]], dateConfig: config.text.dates })] })] })) }));
74
63
  };
75
64
  exports.TimelineMinimal = TimelineMinimal;
@@ -1,21 +1,10 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.CancelledIcon = void 0;
15
4
  var jsx_runtime_1 = require("preact/jsx-runtime");
16
5
  var CancelledIconBase_1 = require("../icons/CancelledIconBase");
17
6
  var CancelledIcon = function (_a) {
18
7
  var config = _a.config;
19
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__timeline__default__step__icon" }, { children: [(0, jsx_runtime_1.jsx)(CancelledIconBase_1.CancelledIconBase, { config: config }), (0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__status__text__large" }, { children: config.text.cancelledLabel }))] })));
8
+ return ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__timeline__default__step__icon", children: [(0, jsx_runtime_1.jsx)(CancelledIconBase_1.CancelledIconBase, { config: config }), (0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__status__text__large", children: config.text.cancelledLabel })] }));
20
9
  };
21
10
  exports.CancelledIcon = CancelledIcon;
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.CollectedIcon = void 0;
15
4
  var jsx_runtime_1 = require("preact/jsx-runtime");
@@ -17,6 +6,6 @@ var SimpleDate_1 = require("../../Date/SimpleDate");
17
6
  var CollectedIconBase_1 = require("../icons/CollectedIconBase");
18
7
  var CollectedIcon = function (_a) {
19
8
  var config = _a.config, shipment = _a.shipment;
20
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__timeline__default__step__icon" }, { children: [(0, jsx_runtime_1.jsx)(CollectedIconBase_1.CollectedIconBase, { config: config }), (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__timeline__status__text__wrapper" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__status__text__large" }, { children: config.text.collectedLabel })), (0, jsx_runtime_1.jsx)(SimpleDate_1.SimpleDate, { date: shipment.collected_at, dateConfig: config.text.dates })] }))] })));
9
+ return ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__timeline__default__step__icon", children: [(0, jsx_runtime_1.jsx)(CollectedIconBase_1.CollectedIconBase, { config: config }), (0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__timeline__status__text__wrapper", children: [(0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__status__text__large", children: config.text.collectedLabel }), (0, jsx_runtime_1.jsx)(SimpleDate_1.SimpleDate, { date: shipment.collected_at, dateConfig: config.text.dates })] })] }));
21
10
  };
22
11
  exports.CollectedIcon = CollectedIcon;
@@ -1,15 +1,4 @@
1
1
  "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  Object.defineProperty(exports, "__esModule", { value: true });
14
3
  exports.CompletedIcon = void 0;
15
4
  var jsx_runtime_1 = require("preact/jsx-runtime");
@@ -17,6 +6,6 @@ var SimpleDate_1 = require("../../Date/SimpleDate");
17
6
  var CompletedIconBase_1 = require("../icons/CompletedIconBase");
18
7
  var CompletedIcon = function (_a) {
19
8
  var config = _a.config, shipment = _a.shipment;
20
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__timeline__default__step__icon" }, { children: [(0, jsx_runtime_1.jsx)(CompletedIconBase_1.CompletedIconBase, { config: config }), (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__timeline__status__text__wrapper" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__timeline__status__text__large" }, { children: config.text.completedLabel })), (0, jsx_runtime_1.jsx)(SimpleDate_1.SimpleDate, { date: shipment.completed_at, dateConfig: config.text.dates })] }))] })));
9
+ return ((0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__timeline__default__step__icon", children: [(0, jsx_runtime_1.jsx)(CompletedIconBase_1.CompletedIconBase, { config: config }), (0, jsx_runtime_1.jsxs)("div", { class: "artajs__tracking__timeline__status__text__wrapper", children: [(0, jsx_runtime_1.jsx)("div", { class: "artajs__tracking__timeline__status__text__large", children: config.text.completedLabel }), (0, jsx_runtime_1.jsx)(SimpleDate_1.SimpleDate, { date: shipment.completed_at, dateConfig: config.text.dates })] })] }));
21
10
  };
22
11
  exports.CompletedIcon = CompletedIcon;