New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@artaio/arta-browser

Package Overview
Dependencies
Maintainers
0
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@artaio/arta-browser - npm Package Compare versions

Comparing version 2.12.2 to 2.13.0-shipping-protection8e13b0cce9765f48687a51299d818a1b4d60be93

2

dist/components/DrawerInsurance/index.js

@@ -17,4 +17,4 @@ "use strict";

var DrawerInsurance = function () {
return ((0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__insurance__wrapper" }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__insurance__content" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__insurance__title" }, { children: "Protected with" })), (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__insurance__body" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__insurance__body__icon" }, { children: (0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: "18", height: "20", viewBox: "0 0 18 20", fill: "none" }, { children: [(0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.4585 3.17259L12.4584 3.17258C12.0502 2.95409 11.5803 2.70261 11.0381 2.44955C10.1881 2.05287 9.45319 1.80278 9.00011 1.80278L9.00011 0.00291653C9.89693 0.00291653 10.9619 0.427777 11.7992 0.818545C12.3701 1.08495 12.9716 1.40556 13.4117 1.64019C13.6166 1.7494 13.7865 1.83998 13.9022 1.89779C14.003 1.9482 14.1124 2.00373 14.2286 2.06266L14.2288 2.06278C14.6645 2.28384 15.1945 2.55273 15.717 2.77861C16.0461 2.92087 16.3449 3.03378 16.5901 3.10205C16.7893 3.15752 16.8906 3.16514 16.9202 3.16737C16.932 3.16826 16.9324 3.16829 16.923 3.17016C17.1861 3.11754 17.459 3.18506 17.6672 3.35431C17.8754 3.52356 17.9972 3.77688 17.9994 4.04518C18.0188 6.39014 17.5547 9.79083 16.2436 12.6406C14.9324 15.4907 12.6555 18.0016 9.00007 18.0016L9.00007 16.2017C11.6443 16.2017 13.4356 14.4379 14.6085 11.8884C15.6437 9.63826 16.1048 6.94108 16.1866 4.85739C16.1595 4.8503 16.1331 4.84313 16.1073 4.83596C15.7495 4.73633 15.3661 4.58777 15.0028 4.43072C14.4231 4.18013 13.8253 3.8766 13.3886 3.6549L13.3885 3.65486C13.2807 3.60012 13.1827 3.55037 13.0973 3.50764C12.9029 3.41049 12.6907 3.29688 12.4585 3.17259ZM4.90275 3.5057C5.09706 3.40855 5.30934 3.29493 5.54157 3.17064C5.94979 2.95215 6.41965 2.70067 6.96192 2.44761C7.81192 2.05093 8.54681 1.80084 8.99989 1.80084L8.99989 0.000976169C8.10307 0.000976169 7.03812 0.425837 6.20077 0.816605C5.62991 1.08301 5.02844 1.40362 4.58827 1.63825C4.38339 1.74746 4.21346 1.83804 4.09782 1.89585C3.99694 1.94629 3.88742 2.00186 3.77119 2.06083C3.33549 2.2819 2.80554 2.55079 2.28302 2.77667C1.95394 2.91893 1.65506 3.03184 1.40987 3.10011C1.21066 3.15558 1.1094 3.1632 1.0798 3.16543C1.06797 3.16632 1.06759 3.16634 1.07697 3.16822C0.813873 3.1156 0.541015 3.18312 0.332817 3.35237C0.124618 3.52162 0.00279792 3.77494 0.000579657 4.04324C-0.0188067 6.3882 0.445274 9.78889 1.75635 12.6387C3.06757 15.4888 5.34455 17.9997 8.99993 17.9997L8.99993 16.1998C6.35574 16.1998 4.5644 14.436 3.39148 11.8865C2.35629 9.63632 1.8952 6.93914 1.81336 4.85545C1.84046 4.84836 1.86692 4.84119 1.89268 4.83402C2.25046 4.73439 2.63391 4.58583 2.99721 4.42878C3.57689 4.17819 4.17474 3.87466 4.61142 3.65296C4.71926 3.5982 4.81727 3.54844 4.90275 3.5057Z", fill: "currentColor" }), (0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.649 5.55151C13.0625 5.8272 13.1743 6.38595 12.8986 6.79949L9.29884 12.1991C9.03238 12.5988 8.49896 12.7187 8.08704 12.4716L5.8372 11.1217C5.41101 10.866 5.27281 10.3132 5.52853 9.88699C5.78424 9.4608 6.33704 9.3226 6.76323 9.57831L8.27725 10.4867L11.401 5.8011C11.6767 5.38756 12.2354 5.27581 12.649 5.55151Z", fill: "currentColor" })] })) })), (0, jsx_runtime_1.jsx)("a", __assign({ href: "https://www.arta.io/insurance", target: "_blank", class: "artajs__tracking__insurance__body__icon__text" }, { children: "Arta Transit Insurance" }))] }))] })) })));
return ((0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__insurance__wrapper" }, { children: (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__insurance__content" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__insurance__title" }, { children: "Covered by" })), (0, jsx_runtime_1.jsxs)("div", __assign({ class: "artajs__tracking__insurance__body" }, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ class: "artajs__tracking__insurance__body__icon" }, { children: (0, jsx_runtime_1.jsxs)("svg", __assign({ xmlns: "http://www.w3.org/2000/svg", width: "18", height: "20", viewBox: "0 0 18 20", fill: "none" }, { children: [(0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.4585 3.17259L12.4584 3.17258C12.0502 2.95409 11.5803 2.70261 11.0381 2.44955C10.1881 2.05287 9.45319 1.80278 9.00011 1.80278L9.00011 0.00291653C9.89693 0.00291653 10.9619 0.427777 11.7992 0.818545C12.3701 1.08495 12.9716 1.40556 13.4117 1.64019C13.6166 1.7494 13.7865 1.83998 13.9022 1.89779C14.003 1.9482 14.1124 2.00373 14.2286 2.06266L14.2288 2.06278C14.6645 2.28384 15.1945 2.55273 15.717 2.77861C16.0461 2.92087 16.3449 3.03378 16.5901 3.10205C16.7893 3.15752 16.8906 3.16514 16.9202 3.16737C16.932 3.16826 16.9324 3.16829 16.923 3.17016C17.1861 3.11754 17.459 3.18506 17.6672 3.35431C17.8754 3.52356 17.9972 3.77688 17.9994 4.04518C18.0188 6.39014 17.5547 9.79083 16.2436 12.6406C14.9324 15.4907 12.6555 18.0016 9.00007 18.0016L9.00007 16.2017C11.6443 16.2017 13.4356 14.4379 14.6085 11.8884C15.6437 9.63826 16.1048 6.94108 16.1866 4.85739C16.1595 4.8503 16.1331 4.84313 16.1073 4.83596C15.7495 4.73633 15.3661 4.58777 15.0028 4.43072C14.4231 4.18013 13.8253 3.8766 13.3886 3.6549L13.3885 3.65486C13.2807 3.60012 13.1827 3.55037 13.0973 3.50764C12.9029 3.41049 12.6907 3.29688 12.4585 3.17259ZM4.90275 3.5057C5.09706 3.40855 5.30934 3.29493 5.54157 3.17064C5.94979 2.95215 6.41965 2.70067 6.96192 2.44761C7.81192 2.05093 8.54681 1.80084 8.99989 1.80084L8.99989 0.000976169C8.10307 0.000976169 7.03812 0.425837 6.20077 0.816605C5.62991 1.08301 5.02844 1.40362 4.58827 1.63825C4.38339 1.74746 4.21346 1.83804 4.09782 1.89585C3.99694 1.94629 3.88742 2.00186 3.77119 2.06083C3.33549 2.2819 2.80554 2.55079 2.28302 2.77667C1.95394 2.91893 1.65506 3.03184 1.40987 3.10011C1.21066 3.15558 1.1094 3.1632 1.0798 3.16543C1.06797 3.16632 1.06759 3.16634 1.07697 3.16822C0.813873 3.1156 0.541015 3.18312 0.332817 3.35237C0.124618 3.52162 0.00279792 3.77494 0.000579657 4.04324C-0.0188067 6.3882 0.445274 9.78889 1.75635 12.6387C3.06757 15.4888 5.34455 17.9997 8.99993 17.9997L8.99993 16.1998C6.35574 16.1998 4.5644 14.436 3.39148 11.8865C2.35629 9.63632 1.8952 6.93914 1.81336 4.85545C1.84046 4.84836 1.86692 4.84119 1.89268 4.83402C2.25046 4.73439 2.63391 4.58583 2.99721 4.42878C3.57689 4.17819 4.17474 3.87466 4.61142 3.65296C4.71926 3.5982 4.81727 3.54844 4.90275 3.5057Z", fill: "currentColor" }), (0, jsx_runtime_1.jsx)("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M12.649 5.55151C13.0625 5.8272 13.1743 6.38595 12.8986 6.79949L9.29884 12.1991C9.03238 12.5988 8.49896 12.7187 8.08704 12.4716L5.8372 11.1217C5.41101 10.866 5.27281 10.3132 5.52853 9.88699C5.78424 9.4608 6.33704 9.3226 6.76323 9.57831L8.27725 10.4867L11.401 5.8011C11.6767 5.38756 12.2354 5.27581 12.649 5.55151Z", fill: "currentColor" })] })) })), (0, jsx_runtime_1.jsx)("a", __assign({ href: "https://www.arta.io/insurance", target: "_blank", class: "artajs__tracking__insurance__body__icon__text" }, { children: "Arta Shipping Protection" }))] }))] })) })));
};
exports.DrawerInsurance = DrawerInsurance;

@@ -28,3 +28,3 @@ "use strict";

startsAtLabel: 'Shipping Starts at',
artaInsuranceLabel: 'This estimate includes Arta Transit Insurance.',
artaInsuranceLabel: 'This estimate includes Arta Shipping Protection.',
};

@@ -31,0 +31,0 @@ var Quotes = function (_a) {

@@ -24,2 +24,33 @@ "use strict";

var SecondaryStep_1 = require("./SecondaryStep");
var InvisibleStep = function () {
return ((0, jsx_runtime_1.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", width: "8", height: "8", viewBox: "0 0 8 8", fill: "none" }));
};
var Step = function (_a) {
var config = _a.config, shipment = _a.shipment, idx = _a.idx;
var shouldRenderInvisibleStep = function () {
var status = shipment.status, quote_type = shipment.quote_type;
switch (status) {
case 'confirmed':
return quote_type === 'self_ship' ? idx < 3 || idx === 5 : idx < 3;
// Theoretically self_ship should never have a collected status
// But handle it just in case
case 'collected':
return quote_type === 'self_ship'
? idx < 2 || idx > 3
: idx < 2 || idx > 4;
case 'in_transit':
return quote_type === 'self_ship'
? idx < 2 || idx > 3
: idx < 1 || idx > 3;
case 'completed':
return quote_type === 'self_ship' ? idx > 2 || idx === 0 : idx > 2;
default:
return true;
}
};
if (shouldRenderInvisibleStep()) {
return (0, jsx_runtime_1.jsx)(InvisibleStep, {});
}
return (0, jsx_runtime_1.jsx)(SecondaryStep_1.SecondaryStep, { config: config });
};
var TimelineMinimal = function (_a) {

@@ -43,5 +74,4 @@ var config = _a.config, shipment = _a.shipment;

};
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: [shipment.status === 'confirmed' ? ((0, jsx_runtime_1.jsx)(ConfirmedIconBase_1.ConfirmedIconBase, { config: config })) : ((0, jsx_runtime_1.jsx)(SecondaryStep_1.SecondaryStep, { config: config })), shipment.quote_type !== 'self_ship' &&
(shipment.status === 'collected' ? ((0, jsx_runtime_1.jsx)(CollectedIconBase_1.CollectedIconBase, { config: config })) : ((0, jsx_runtime_1.jsx)(SecondaryStep_1.SecondaryStep, { config: config }))), shipment.status === 'in_transit' ? ((0, jsx_runtime_1.jsx)(InTransitIconBase_1.InTransitIconBase, { config: config })) : ((0, jsx_runtime_1.jsx)(SecondaryStep_1.SecondaryStep, { config: config })), shipment.status === 'completed' ? ((0, jsx_runtime_1.jsx)(CompletedIconBase_1.CompletedIconBase, { config: config })) : ((0, jsx_runtime_1.jsx)(SecondaryStep_1.SecondaryStep, { 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[labelMap[shipment.status]] })), (0, jsx_runtime_1.jsx)(SimpleDate_1.SimpleDate, { date: shipment[dateMap[shipment.status]], dateConfig: config.text.dates })] }))] }))) })));
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 })] }))] }))) })));
};
exports.TimelineMinimal = TimelineMinimal;
{
"name": "@artaio/arta-browser",
"version": "2.12.2",
"version": "2.13.0-shipping-protection8e13b0cce9765f48687a51299d818a1b4d60be93",
"description": "",

@@ -5,0 +5,0 @@ "source": "lib/index.ts",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc