@shipengine/elements 0.16.1 → 0.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/items-breakdown/items-breakdown.d.ts +1 -1
- package/components/templates/completion-page/completion-page.d.ts +4 -0
- package/components/templates/completion-page/index.d.ts +1 -0
- package/components/templates/index.d.ts +2 -1
- package/components/templates/list-carriers-row/list-carriers-row.styles.d.ts +1 -1
- package/components/templates/shipment-form/shipment-form.d.ts +1 -1
- package/components/templates/suspend-sales-order/index.d.ts +1 -0
- package/components/templates/suspend-sales-order/suspend-sales-order.d.ts +8 -0
- package/components/templates/suspend-shipment/index.d.ts +1 -0
- package/components/templates/suspend-shipment/suspend-shipment.d.ts +8 -0
- package/elements/components/configure-shipment/configure-shipment.d.ts +1 -1
- package/elements/components/configure-shipment/hooks/use-address.d.ts +1 -1
- package/elements/components/configure-shipment/hooks/use-shipment-form.d.ts +2 -2
- package/elements/components/index.d.ts +1 -1
- package/elements/components/{sales-order → purchase-label}/hooks/use-configure-shipment.d.ts +1 -1
- package/elements/components/purchase-label/hooks/use-load-shipment.d.ts +9 -0
- package/elements/components/purchase-label/index.d.ts +3 -0
- package/elements/components/{sales-order/sales-order.d.ts → purchase-label/purchase-label-by-sales-order.d.ts} +1 -1
- package/elements/components/purchase-label/purchase-label-by-shipment.d.ts +9 -0
- package/elements/components/purchase-label/purchase-label.d.ts +6 -0
- package/elements/purchase-label.d.ts +3 -1
- package/hooks/use-elements.d.ts +2 -1
- package/index.cjs +330 -198
- package/index.js +331 -200
- package/package.json +3 -3
- package/utilities/shipengine/sales-order.d.ts +10 -0
- package/components/templates/sales-order/index.d.ts +0 -1
- package/components/templates/sales-order/sales-order.d.ts +0 -8
- package/elements/components/sales-order/index.d.ts +0 -1
- /package/elements/components/{sales-order → purchase-label}/hooks/index.d.ts +0 -0
- /package/elements/components/{sales-order → purchase-label}/hooks/use-import-sales-order.d.ts +0 -0
- /package/elements/components/{sales-order → purchase-label}/hooks/use-pending-shipment.d.ts +0 -0
package/index.cjs
CHANGED
|
@@ -2532,6 +2532,25 @@ const getRequestedServices = salesOrder => {
|
|
|
2532
2532
|
var _a;
|
|
2533
2533
|
return Array.from(new Set((_a = salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.salesOrderItems) === null || _a === void 0 ? void 0 : _a.filter(item => !!item.requestedShippingOptions.shippingService).map(item => item.requestedShippingOptions.shippingService)));
|
|
2534
2534
|
};
|
|
2535
|
+
const getSalesOrderItemsFromSalesOrderOrShipment = ({
|
|
2536
|
+
salesOrder,
|
|
2537
|
+
shipment
|
|
2538
|
+
}) => {
|
|
2539
|
+
var _a, _b;
|
|
2540
|
+
return (_b = (_a = salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.salesOrderItems.map(item => ({
|
|
2541
|
+
detail: `SKU ${item.lineItemDetails.sku}`,
|
|
2542
|
+
name: item.lineItemDetails.name,
|
|
2543
|
+
quantity: item.quantity,
|
|
2544
|
+
subDetail: item.requestedShippingOptions.shippingService,
|
|
2545
|
+
subDetailValue: item.priceSummary.estimatedShipping,
|
|
2546
|
+
totalValue: item.priceSummary.total,
|
|
2547
|
+
value: item.priceSummary.unitPrice
|
|
2548
|
+
}))) !== null && _a !== void 0 ? _a : shipment === null || shipment === void 0 ? void 0 : shipment.items.map((item, i) => ({
|
|
2549
|
+
detail: `SKU ${item.sku}`,
|
|
2550
|
+
name: (item === null || item === void 0 ? void 0 : item.name) || `ITEM ${i}`,
|
|
2551
|
+
quantity: item.quantity
|
|
2552
|
+
}))) !== null && _b !== void 0 ? _b : [];
|
|
2553
|
+
};
|
|
2535
2554
|
|
|
2536
2555
|
var tryToString$3 = tryToString$5;
|
|
2537
2556
|
|
|
@@ -3328,8 +3347,8 @@ const FieldLabel = ({
|
|
|
3328
3347
|
}, {
|
|
3329
3348
|
children: [label && jsxRuntime.jsxs("div", Object.assign({
|
|
3330
3349
|
css: theme => ({
|
|
3331
|
-
|
|
3332
|
-
|
|
3350
|
+
paddingTop: _withInput ? theme.spacing(subLabel ? 1 : 2) : undefined,
|
|
3351
|
+
width: theme.spacing(12.5)
|
|
3333
3352
|
})
|
|
3334
3353
|
}, {
|
|
3335
3354
|
children: [jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
@@ -23154,7 +23173,7 @@ const AddressForm = ({
|
|
|
23154
23173
|
}));
|
|
23155
23174
|
};
|
|
23156
23175
|
|
|
23157
|
-
const styles$
|
|
23176
|
+
const styles$a = createStyles({
|
|
23158
23177
|
agreement: {
|
|
23159
23178
|
alignItems: "center",
|
|
23160
23179
|
display: "flex",
|
|
@@ -23224,10 +23243,10 @@ const DisplayCarrierTerms = c => {
|
|
|
23224
23243
|
const listCarrierLinks = () => {
|
|
23225
23244
|
return c.carrierTerms.links.map((term, index) => {
|
|
23226
23245
|
return jsxRuntime.jsx("li", Object.assign({
|
|
23227
|
-
css: styles$
|
|
23246
|
+
css: styles$a.listItems
|
|
23228
23247
|
}, {
|
|
23229
23248
|
children: jsxRuntime.jsx(giger.Link, Object.assign({
|
|
23230
|
-
css: styles$
|
|
23249
|
+
css: styles$a.link,
|
|
23231
23250
|
href: term.url,
|
|
23232
23251
|
isExternal: true,
|
|
23233
23252
|
target: "_blank"
|
|
@@ -23243,18 +23262,18 @@ const DisplayCarrierTerms = c => {
|
|
|
23243
23262
|
};
|
|
23244
23263
|
const listCarrierTerms = () => {
|
|
23245
23264
|
return jsxRuntime.jsxs("div", Object.assign({
|
|
23246
|
-
css: styles$
|
|
23265
|
+
css: styles$a.terms
|
|
23247
23266
|
}, {
|
|
23248
23267
|
children: [jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
23249
23268
|
variant: "subtitle1"
|
|
23250
23269
|
}, {
|
|
23251
23270
|
children: c.carrierTerms.title
|
|
23252
23271
|
})), jsxRuntime.jsx("div", Object.assign({
|
|
23253
|
-
css: styles$
|
|
23272
|
+
css: styles$a.terms
|
|
23254
23273
|
}, {
|
|
23255
23274
|
children: listCarrierContent()
|
|
23256
23275
|
})), jsxRuntime.jsx("ul", Object.assign({
|
|
23257
|
-
css: styles$
|
|
23276
|
+
css: styles$a.links
|
|
23258
23277
|
}, {
|
|
23259
23278
|
children: listCarrierLinks()
|
|
23260
23279
|
}))]
|
|
@@ -23484,7 +23503,7 @@ const AddressDisplay = ({
|
|
|
23484
23503
|
}));
|
|
23485
23504
|
};
|
|
23486
23505
|
|
|
23487
|
-
const styles$
|
|
23506
|
+
const styles$9 = createStyles({
|
|
23488
23507
|
container: theme => ({
|
|
23489
23508
|
display: "flex",
|
|
23490
23509
|
gap: theme.spacing()
|
|
@@ -23522,13 +23541,13 @@ const Disclosure = ({
|
|
|
23522
23541
|
}, [open]);
|
|
23523
23542
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
23524
23543
|
children: [jsxRuntime.jsxs("div", Object.assign({
|
|
23525
|
-
css: styles$
|
|
23544
|
+
css: styles$9.container
|
|
23526
23545
|
}, {
|
|
23527
23546
|
children: [jsxRuntime.jsx("div", {
|
|
23528
23547
|
children: label
|
|
23529
23548
|
}), _showToggle && jsxRuntime.jsx("button", Object.assign({
|
|
23530
23549
|
"aria-expanded": isOpen,
|
|
23531
|
-
css: styles$
|
|
23550
|
+
css: styles$9.toggle,
|
|
23532
23551
|
onClick: () => {
|
|
23533
23552
|
setIsOpen(!isOpen);
|
|
23534
23553
|
onToggle(!isOpen);
|
|
@@ -23536,12 +23555,12 @@ const Disclosure = ({
|
|
|
23536
23555
|
type: "button"
|
|
23537
23556
|
}, {
|
|
23538
23557
|
children: jsxRuntime.jsx(giger.Icon, {
|
|
23539
|
-
css: styles$
|
|
23558
|
+
css: styles$9.icon,
|
|
23540
23559
|
name: isOpen ? brands.IconNames.CHEVRON_TOP : brands.IconNames.CHEVRON_BOTTOM
|
|
23541
23560
|
})
|
|
23542
23561
|
}))]
|
|
23543
23562
|
})), isOpen && jsxRuntime.jsx("div", Object.assign({
|
|
23544
|
-
css: styles$
|
|
23563
|
+
css: styles$9.content
|
|
23545
23564
|
}, {
|
|
23546
23565
|
children: typeof children === "function" ? children(() => setIsOpen(!isOpen)) : children
|
|
23547
23566
|
}))]
|
|
@@ -23681,7 +23700,7 @@ const getCarrierRecoverySchema = requiresAddress => zod.z.object({
|
|
|
23681
23700
|
address: requiresAddress ? baseSchema : baseSchema.optional()
|
|
23682
23701
|
});
|
|
23683
23702
|
|
|
23684
|
-
const styles$
|
|
23703
|
+
const styles$8 = createStyles({
|
|
23685
23704
|
grid: theme => ({
|
|
23686
23705
|
margin: theme.spacing(4)
|
|
23687
23706
|
}),
|
|
@@ -23724,7 +23743,7 @@ const CarrierRecoveryForm = ({
|
|
|
23724
23743
|
onSubmit: formLogger.capture(handleSubmit)
|
|
23725
23744
|
}, {
|
|
23726
23745
|
children: jsxRuntime.jsxs(giger.Grid, Object.assign({
|
|
23727
|
-
css: styles$
|
|
23746
|
+
css: styles$8.grid,
|
|
23728
23747
|
noPadding: true
|
|
23729
23748
|
}, {
|
|
23730
23749
|
children: [jsxRuntime.jsx(giger.GridChild, Object.assign({
|
|
@@ -23745,14 +23764,14 @@ const CarrierRecoveryForm = ({
|
|
|
23745
23764
|
colSpan: 12
|
|
23746
23765
|
}, {
|
|
23747
23766
|
children: jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
23748
|
-
css: styles$
|
|
23767
|
+
css: styles$8.heading,
|
|
23749
23768
|
variant: "heading4"
|
|
23750
23769
|
}, {
|
|
23751
23770
|
children: t("register-wallet:sections.carriers.title")
|
|
23752
23771
|
}))
|
|
23753
23772
|
})), jsxRuntime.jsx(giger.GridChild, Object.assign({
|
|
23754
23773
|
colSpan: 12,
|
|
23755
|
-
css: styles$
|
|
23774
|
+
css: styles$8.subtitle
|
|
23756
23775
|
}, {
|
|
23757
23776
|
children: jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
23758
23777
|
variant: "subtitle1"
|
|
@@ -23832,7 +23851,7 @@ const CarrierTerms = ({
|
|
|
23832
23851
|
switch (carrierCode) {
|
|
23833
23852
|
case "ups":
|
|
23834
23853
|
return jsxRuntime.jsxs("div", Object.assign({
|
|
23835
|
-
css: styles$
|
|
23854
|
+
css: styles$a.terms
|
|
23836
23855
|
}, {
|
|
23837
23856
|
children: [jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
23838
23857
|
variant: "subtitle1"
|
|
@@ -23855,7 +23874,7 @@ const CarrierTerms = ({
|
|
|
23855
23874
|
text,
|
|
23856
23875
|
url
|
|
23857
23876
|
}, idx) => jsxRuntime.jsx("li", Object.assign({
|
|
23858
|
-
css: styles$
|
|
23877
|
+
css: styles$a.listItems
|
|
23859
23878
|
}, {
|
|
23860
23879
|
children: jsxRuntime.jsx(giger.Link, Object.assign({
|
|
23861
23880
|
href: url,
|
|
@@ -23903,7 +23922,7 @@ const CarrierTermsForm = ({
|
|
|
23903
23922
|
onSubmit(payload.agreement);
|
|
23904
23923
|
}));
|
|
23905
23924
|
return jsxRuntime.jsxs("div", Object.assign({
|
|
23906
|
-
css: styles$
|
|
23925
|
+
css: styles$a.termsForm,
|
|
23907
23926
|
"data-testid": "carrier-terms-form"
|
|
23908
23927
|
}, {
|
|
23909
23928
|
children: [jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
@@ -23919,7 +23938,7 @@ const CarrierTermsForm = ({
|
|
|
23919
23938
|
})), jsxRuntime.jsx(Spacer, {
|
|
23920
23939
|
multiplier: 1
|
|
23921
23940
|
}), jsxRuntime.jsx("div", Object.assign({
|
|
23922
|
-
css: styles$
|
|
23941
|
+
css: styles$a.carrierLogos
|
|
23923
23942
|
}, {
|
|
23924
23943
|
children: metadatas.map(({
|
|
23925
23944
|
name,
|
|
@@ -23935,7 +23954,7 @@ const CarrierTermsForm = ({
|
|
|
23935
23954
|
onSubmit: formLogger.capture(handleSubmit)
|
|
23936
23955
|
}, {
|
|
23937
23956
|
children: jsxRuntime.jsxs("div", Object.assign({
|
|
23938
|
-
css: styles$
|
|
23957
|
+
css: styles$a.agreement
|
|
23939
23958
|
}, {
|
|
23940
23959
|
children: [jsxRuntime.jsx("div", {
|
|
23941
23960
|
children: jsxRuntime.jsx(CheckboxInput, {
|
|
@@ -23962,10 +23981,10 @@ const CarrierTermsForm = ({
|
|
|
23962
23981
|
name: "agreement"
|
|
23963
23982
|
})
|
|
23964
23983
|
}), showTerms && jsxRuntime.jsxs("div", Object.assign({
|
|
23965
|
-
css: styles$
|
|
23984
|
+
css: styles$a.well
|
|
23966
23985
|
}, {
|
|
23967
23986
|
children: [jsxRuntime.jsxs("div", Object.assign({
|
|
23968
|
-
css: styles$
|
|
23987
|
+
css: styles$a.terms
|
|
23969
23988
|
}, {
|
|
23970
23989
|
children: [jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
23971
23990
|
variant: "heading5"
|
|
@@ -23977,7 +23996,7 @@ const CarrierTermsForm = ({
|
|
|
23977
23996
|
carrierCode: carrierCode
|
|
23978
23997
|
}, carrierCode))]
|
|
23979
23998
|
})), jsxRuntime.jsx("div", Object.assign({
|
|
23980
|
-
css: styles$
|
|
23999
|
+
css: styles$a.close
|
|
23981
24000
|
}, {
|
|
23982
24001
|
children: jsxRuntime.jsx(giger.Button, Object.assign({
|
|
23983
24002
|
onClick: () => setShowTerms(false),
|
|
@@ -24365,7 +24384,7 @@ const LandingPageForm = ({
|
|
|
24365
24384
|
}));
|
|
24366
24385
|
};
|
|
24367
24386
|
|
|
24368
|
-
const styles$
|
|
24387
|
+
const styles$7 = createStyles({
|
|
24369
24388
|
container: theme => ({
|
|
24370
24389
|
padding: theme.spacing(2)
|
|
24371
24390
|
}),
|
|
@@ -24386,11 +24405,11 @@ const LandingPage = ({
|
|
|
24386
24405
|
t
|
|
24387
24406
|
} = reactI18next.useTranslation();
|
|
24388
24407
|
return jsxRuntime.jsxs("div", Object.assign({
|
|
24389
|
-
css: styles$
|
|
24408
|
+
css: styles$7.container,
|
|
24390
24409
|
"data-testid": "landing-page"
|
|
24391
24410
|
}, {
|
|
24392
24411
|
children: [jsxRuntime.jsxs("div", Object.assign({
|
|
24393
|
-
css: styles$
|
|
24412
|
+
css: styles$7.header
|
|
24394
24413
|
}, {
|
|
24395
24414
|
children: [jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
24396
24415
|
variant: "heading4"
|
|
@@ -24408,7 +24427,7 @@ const LandingPage = ({
|
|
|
24408
24427
|
})), jsxRuntime.jsx(LandingPageForm, {
|
|
24409
24428
|
onSubmit: onSubmit
|
|
24410
24429
|
}), jsxRuntime.jsxs("div", Object.assign({
|
|
24411
|
-
css: styles$
|
|
24430
|
+
css: styles$7.header
|
|
24412
24431
|
}, {
|
|
24413
24432
|
children: [jsxRuntime.jsx(Spacer, {
|
|
24414
24433
|
multiplier: 6
|
|
@@ -24419,7 +24438,7 @@ const LandingPage = ({
|
|
|
24419
24438
|
})), jsxRuntime.jsx(Spacer, {
|
|
24420
24439
|
multiplier: 2
|
|
24421
24440
|
}), jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
24422
|
-
css: styles$
|
|
24441
|
+
css: styles$7.description,
|
|
24423
24442
|
variant: "body1"
|
|
24424
24443
|
}, {
|
|
24425
24444
|
children: t("onboarding:landing.description")
|
|
@@ -24500,18 +24519,17 @@ const Accordion = _a => {
|
|
|
24500
24519
|
});
|
|
24501
24520
|
};
|
|
24502
24521
|
|
|
24503
|
-
const
|
|
24504
|
-
|
|
24505
|
-
|
|
24506
|
-
}
|
|
24522
|
+
const getStyles$3 = (isConnected = false) => createStyles({
|
|
24523
|
+
connectButton: theme => [{
|
|
24524
|
+
padding: `0 ${theme.spacing(.5)}px`
|
|
24525
|
+
}, isConnected && {
|
|
24526
|
+
backgroundColor: theme.palette.success.main,
|
|
24527
|
+
color: theme.palette.white
|
|
24528
|
+
}],
|
|
24507
24529
|
container: {
|
|
24508
24530
|
display: "flex",
|
|
24509
24531
|
flexDirection: "column"
|
|
24510
24532
|
},
|
|
24511
|
-
loadingButtonContainer: {
|
|
24512
|
-
alignItems: "center",
|
|
24513
|
-
display: "flex"
|
|
24514
|
-
},
|
|
24515
24533
|
logoContainer: theme => ({
|
|
24516
24534
|
alignItems: "center",
|
|
24517
24535
|
columnGap: `${theme.spacing(1)}px`,
|
|
@@ -24522,31 +24540,6 @@ const styles$7 = createStyles({
|
|
|
24522
24540
|
display: "flex",
|
|
24523
24541
|
justifyContent: "space-between",
|
|
24524
24542
|
padding: `${theme.spacing(2)}px`
|
|
24525
|
-
}),
|
|
24526
|
-
statusChipConnected: theme => ({
|
|
24527
|
-
alignItems: 'center',
|
|
24528
|
-
background: theme.palette.success.main,
|
|
24529
|
-
borderRadius: theme.borderRadius.S,
|
|
24530
|
-
color: theme.palette.white,
|
|
24531
|
-
display: 'flex',
|
|
24532
|
-
flex: 'none',
|
|
24533
|
-
flexDirection: 'row',
|
|
24534
|
-
fontSize: theme.typography.fontSize.S,
|
|
24535
|
-
fontWeight: theme.typography.fontWeight.bold,
|
|
24536
|
-
gap: `${theme.spacing(1)}px}`,
|
|
24537
|
-
height: '20px',
|
|
24538
|
-
justifyContent: 'center',
|
|
24539
|
-
lineHeight: `${theme.spacing(2.5)} px`,
|
|
24540
|
-
order: '0',
|
|
24541
|
-
padding: `${theme.spacing(.5)} px`,
|
|
24542
|
-
width: '81px'
|
|
24543
|
-
}),
|
|
24544
|
-
statusChipNotConnected: theme => ({
|
|
24545
|
-
background: 'none',
|
|
24546
|
-
color: theme.palette.secondary.main,
|
|
24547
|
-
fontSize: theme.typography.fontSize.M,
|
|
24548
|
-
fontWeight: theme.typography.fontWeight.bold,
|
|
24549
|
-
lineHeight: `${theme.spacing(3)} px`
|
|
24550
24543
|
})
|
|
24551
24544
|
});
|
|
24552
24545
|
|
|
@@ -24557,7 +24550,7 @@ var _ref$1 = process.env.NODE_ENV === "production" ? {
|
|
|
24557
24550
|
} : {
|
|
24558
24551
|
name: "111ty02-css",
|
|
24559
24552
|
styles: "align-items:center;display:flex;label:css;",
|
|
24560
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
24553
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpc3QtY2FycmllcnMtcm93LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtQmllIiwiZmlsZSI6Imxpc3QtY2FycmllcnMtcm93LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IF9fYXdhaXRlciB9IGZyb20gXCJ0c2xpYlwiO1xyXG5pbXBvcnQgeyBqc3ggYXMgX2pzeCwganN4cyBhcyBfanN4cyB9IGZyb20gXCJAZW1vdGlvbi9yZWFjdC9qc3gtcnVudGltZVwiO1xyXG5pbXBvcnQgeyBjc3MgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcclxuaW1wb3J0IHsgdXNlU3RhdGUgfSBmcm9tIFwicmVhY3RcIjtcclxuaW1wb3J0IHsgdXNlVHJhbnNsYXRpb24gfSBmcm9tIFwicmVhY3QtaTE4bmV4dFwiO1xyXG5pbXBvcnQgeyBCdXR0b24sIEJ1dHRvbkNvbG9yLCBCdXR0b25WYXJpYW50LCBUeXBvZ3JhcGh5IH0gZnJvbSBcIkBwYWNrbGluay9naWdlclwiO1xyXG5pbXBvcnQgeyBUZW1wbGF0ZXMgfSBmcm9tIFwiLi4vLi4vLi4vY29tcG9uZW50c1wiO1xyXG5pbXBvcnQgeyBnZXRTdHlsZXMgfSBmcm9tIFwiLi9saXN0LWNhcnJpZXJzLXJvdy5zdHlsZXNcIjtcclxuZXhwb3J0IGNvbnN0IExpc3RDYXJyaWVyc1JvdyA9ICh7IGNvbm5lY3RlZENhcnJpZXI6IHsgY2FycmllciwgaXNDb25uZWN0ZWQgfSwgcmVnaXN0ZXJDYXJyaWVyLCByZWdpc3RlckNhcnJpZXJFcnJvcnMsIH0pID0+IHtcclxuICAgIGNvbnN0IHsgc2hvcnRuYW1lOiBuYW1lLCBsb2dvLCByZXF1aXJlZEZpZWxkcyB9ID0gY2FycmllcjtcclxuICAgIGNvbnN0IHsgdCB9ID0gdXNlVHJhbnNsYXRpb24oW1wibGlzdC1jYXJyaWVyc1wiXSk7XHJcbiAgICBjb25zdCBbc2hvd0Ryb3BEb3duLCBzZXRTaG93RHJvcERvd25dID0gdXNlU3RhdGUoZmFsc2UpO1xyXG4gICAgY29uc3QgW2lzU3VibWl0dGluZywgc2V0SXNTdWJtaXR0aW5nXSA9IHVzZVN0YXRlKGZhbHNlKTtcclxuICAgIGNvbnN0IGhhbmRsZVJlZ2lzdGVyID0gKHZhbHVlcykgPT4gX19hd2FpdGVyKHZvaWQgMCwgdm9pZCAwLCB2b2lkIDAsIGZ1bmN0aW9uKiAoKSB7XHJcbiAgICAgICAgc2V0SXNTdWJtaXR0aW5nKHRydWUpO1xyXG4gICAgICAgIHlpZWxkIHJlZ2lzdGVyQ2Fycmllcih2YWx1ZXMpO1xyXG4gICAgICAgIHNob3dEcm9wRG93biAmJiBzZXRTaG93RHJvcERvd24oZmFsc2UpO1xyXG4gICAgICAgIHNldElzU3VibWl0dGluZyhmYWxzZSk7XHJcbiAgICB9KTtcclxuICAgIHJldHVybiAoX2pzeHMoXCJkaXZcIiwgT2JqZWN0LmFzc2lnbih7IGNzczogZ2V0U3R5bGVzKCkuY29udGFpbmVyLCBcImRhdGEtdGVzdGlkXCI6IFwiY2Fycmllci1yb3dcIiB9LCB7IGNoaWxkcmVuOiBbX2pzeHMoXCJkaXZcIiwgT2JqZWN0LmFzc2lnbih7IGNzczogZ2V0U3R5bGVzKCkucm93Q29udGFpbmVyIH0sIHsgY2hpbGRyZW46IFtfanN4cyhcImRpdlwiLCBPYmplY3QuYXNzaWduKHsgY3NzOiBnZXRTdHlsZXMoKS5sb2dvQ29udGFpbmVyIH0sIHsgY2hpbGRyZW46IFtfanN4KFwiZGl2XCIsIHsgY2hpbGRyZW46IF9qc3goXCJpbWdcIiwgeyBhbHQ6IGAke25hbWV9LWxvZ29gLCBoZWlnaHQ6IDQwLCBzcmM6IGxvZ28sIHdpZHRoOiA0MCB9KSB9KSwgX2pzeChUeXBvZ3JhcGh5LCBPYmplY3QuYXNzaWduKHsgdmFyaWFudDogXCJzdWJ0aXRsZTFcIiB9LCB7IGNoaWxkcmVuOiBuYW1lIH0pKV0gfSkpLCBfanN4KFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBjc3M6IGNzcyh7IGFsaWduSXRlbXM6IFwiY2VudGVyXCIsIGRpc3BsYXk6IFwiZmxleFwiIH0pIH0sIHsgY2hpbGRyZW46IF9qc3goQnV0dG9uLCBPYmplY3QuYXNzaWduKHsgY29sb3I6IEJ1dHRvbkNvbG9yLlNFQ09OREFSWSwgY3NzOiBnZXRTdHlsZXMoaXNDb25uZWN0ZWQpLmNvbm5lY3RCdXR0b24sIGRpc2FibGVkOiBpc0Nvbm5lY3RlZCB8fCBzaG93RHJvcERvd24sIGlzTG9hZGluZzogaXNTdWJtaXR0aW5nLCBvbkNsaWNrOiAoKSA9PiBfX2F3YWl0ZXIodm9pZCAwLCB2b2lkIDAsIHZvaWQgMCwgZnVuY3Rpb24qICgpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAocmVxdWlyZWRGaWVsZHMgPT09IG51bGwgfHwgcmVxdWlyZWRGaWVsZHMgPT09IHZvaWQgMCA/IHZvaWQgMCA6IHJlcXVpcmVkRmllbGRzLmluY2x1ZGVzKFwiYWRkcmVzc1wiKSlcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2V0U2hvd0Ryb3BEb3duKHRydWUpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsc2VcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeWllbGQgaGFuZGxlUmVnaXN0ZXIoKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLCB2YXJpYW50OiBCdXR0b25WYXJpYW50LlRFWFQgfSwgeyBjaGlsZHJlbjogaXNDb25uZWN0ZWRcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA/IHQoXCJsaXN0LWNhcnJpZXJzOmFjdGlvbnMuc3RhdHVzLmNvbm5lY3RlZFwiKVxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogdChcImxpc3QtY2FycmllcnM6YWN0aW9ucy5zdGF0dXMubm90Q29ubmVjdGVkXCIpIH0pKSB9KSldIH0pKSwgc2hvd0Ryb3BEb3duICYmIChfanN4KFRlbXBsYXRlcy5BZGRDYXJyaWVyRm9ybSwgeyBjYXJyaWVyVGVybXM6IGNhcnJpZXIudGVybXMgJiYgY2Fycmllci50ZXJtcywgb25DYW5jZWw6ICgpID0+IHNldFNob3dEcm9wRG93bihmYWxzZSksIG9uU3VibWl0OiAodmFsdWVzKSA9PiBoYW5kbGVSZWdpc3Rlcih2YWx1ZXMpLCByZWdpc3RlckNhcnJpZXJFcnJvcnM6IHJlZ2lzdGVyQ2FycmllckVycm9ycyB9KSldIH0pKSk7XHJcbn07XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPWxpc3QtY2FycmllcnMtcm93LmpzLm1hcCJdfQ== */",
|
|
24561
24554
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
24562
24555
|
};
|
|
24563
24556
|
const ListCarriersRow = ({
|
|
@@ -24569,7 +24562,7 @@ const ListCarriersRow = ({
|
|
|
24569
24562
|
registerCarrierErrors
|
|
24570
24563
|
}) => {
|
|
24571
24564
|
const {
|
|
24572
|
-
name,
|
|
24565
|
+
shortname: name,
|
|
24573
24566
|
logo,
|
|
24574
24567
|
requiredFields
|
|
24575
24568
|
} = carrier;
|
|
@@ -24585,20 +24578,21 @@ const ListCarriersRow = ({
|
|
|
24585
24578
|
setIsSubmitting(false);
|
|
24586
24579
|
});
|
|
24587
24580
|
return jsxRuntime.jsxs("div", Object.assign({
|
|
24588
|
-
css:
|
|
24581
|
+
css: getStyles$3().container,
|
|
24582
|
+
"data-testid": "carrier-row"
|
|
24589
24583
|
}, {
|
|
24590
24584
|
children: [jsxRuntime.jsxs("div", Object.assign({
|
|
24591
|
-
css:
|
|
24585
|
+
css: getStyles$3().rowContainer
|
|
24592
24586
|
}, {
|
|
24593
24587
|
children: [jsxRuntime.jsxs("div", Object.assign({
|
|
24594
|
-
css:
|
|
24588
|
+
css: getStyles$3().logoContainer
|
|
24595
24589
|
}, {
|
|
24596
24590
|
children: [jsxRuntime.jsx("div", {
|
|
24597
24591
|
children: jsxRuntime.jsx("img", {
|
|
24598
24592
|
alt: `${name}-logo`,
|
|
24599
|
-
height:
|
|
24593
|
+
height: 40,
|
|
24600
24594
|
src: logo,
|
|
24601
|
-
width:
|
|
24595
|
+
width: 40
|
|
24602
24596
|
})
|
|
24603
24597
|
}), jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
24604
24598
|
variant: "subtitle1"
|
|
@@ -24609,6 +24603,8 @@ const ListCarriersRow = ({
|
|
|
24609
24603
|
css: _ref$1
|
|
24610
24604
|
}, {
|
|
24611
24605
|
children: jsxRuntime.jsx(giger.Button, Object.assign({
|
|
24606
|
+
color: giger.ButtonColor.SECONDARY,
|
|
24607
|
+
css: getStyles$3(isConnected).connectButton,
|
|
24612
24608
|
disabled: isConnected || showDropDown,
|
|
24613
24609
|
isLoading: isSubmitting,
|
|
24614
24610
|
onClick: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -26194,6 +26190,69 @@ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
|
26194
26190
|
}
|
|
26195
26191
|
});
|
|
26196
26192
|
|
|
26193
|
+
const CompletionPage = ({
|
|
26194
|
+
onContinue
|
|
26195
|
+
}) => {
|
|
26196
|
+
const {
|
|
26197
|
+
t
|
|
26198
|
+
} = reactI18next.useTranslation(["common", "onboarding"]);
|
|
26199
|
+
return jsxRuntime.jsxs("div", Object.assign({
|
|
26200
|
+
css: {
|
|
26201
|
+
alignItems: "center",
|
|
26202
|
+
display: "flex",
|
|
26203
|
+
flexDirection: "column"
|
|
26204
|
+
},
|
|
26205
|
+
"data-testid": "onboarding-complete"
|
|
26206
|
+
}, {
|
|
26207
|
+
children: [jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
26208
|
+
variant: "heading4"
|
|
26209
|
+
}, {
|
|
26210
|
+
children: t("onboarding:success.title")
|
|
26211
|
+
})), jsxRuntime.jsx(Spacer, {
|
|
26212
|
+
multiplier: 2
|
|
26213
|
+
}), jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
26214
|
+
variant: "subtitle1"
|
|
26215
|
+
}, {
|
|
26216
|
+
children: t("onboarding:success.subtitle")
|
|
26217
|
+
})), jsxRuntime.jsx(Spacer, {
|
|
26218
|
+
multiplier: 10
|
|
26219
|
+
}), jsxRuntime.jsxs("svg", Object.assign({
|
|
26220
|
+
fill: "none",
|
|
26221
|
+
height: "86",
|
|
26222
|
+
viewBox: "0 0 86 86",
|
|
26223
|
+
width: "86",
|
|
26224
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
26225
|
+
}, {
|
|
26226
|
+
children: [jsxRuntime.jsx("circle", {
|
|
26227
|
+
cx: "43",
|
|
26228
|
+
cy: "43.3379",
|
|
26229
|
+
fill: "#E8F6FF",
|
|
26230
|
+
r: "42.5"
|
|
26231
|
+
}), jsxRuntime.jsx("path", {
|
|
26232
|
+
d: "M56.6583 26.4724C57.2882 25.8425 58.3095 25.8425 58.9393 26.4724L64.1038 31.6369C64.7337 32.2668 64.7337 33.288 64.1038 33.9179L37.8303 60.1915L30.3848 52.746L56.6583 26.4724Z",
|
|
26233
|
+
fill: "#006FBB"
|
|
26234
|
+
}), jsxRuntime.jsx("path", {
|
|
26235
|
+
d: "M21.4724 43.8446C20.8425 43.2147 20.8425 42.1935 21.4724 41.5636L26.4689 36.5671C27.0988 35.9372 28.12 35.9372 28.7499 36.5671L45.1032 52.9204L37.8257 60.1979L21.4724 43.8446Z",
|
|
26236
|
+
fill: "#006FBB"
|
|
26237
|
+
})]
|
|
26238
|
+
})), jsxRuntime.jsx(Spacer, {
|
|
26239
|
+
multiplier: 10
|
|
26240
|
+
}), jsxRuntime.jsx(ButtonGroup, Object.assign({
|
|
26241
|
+
justify: "center"
|
|
26242
|
+
}, {
|
|
26243
|
+
children: jsxRuntime.jsx(giger.Button, Object.assign({
|
|
26244
|
+
bold: false,
|
|
26245
|
+
color: giger.ButtonColor.PRIMARY,
|
|
26246
|
+
onClick: onContinue,
|
|
26247
|
+
type: "button",
|
|
26248
|
+
variant: giger.ButtonVariant.FILLED
|
|
26249
|
+
}, {
|
|
26250
|
+
children: t("onboarding:success.action")
|
|
26251
|
+
}))
|
|
26252
|
+
}))]
|
|
26253
|
+
}));
|
|
26254
|
+
};
|
|
26255
|
+
|
|
26197
26256
|
const BillingFields = ({
|
|
26198
26257
|
form
|
|
26199
26258
|
}) => {
|
|
@@ -26635,40 +26694,9 @@ const Onboarding$1 = ({
|
|
|
26635
26694
|
var _a;
|
|
26636
26695
|
// Step 5: Onboarding Complete
|
|
26637
26696
|
if (hasCompletedOnboarding) {
|
|
26638
|
-
return jsxRuntime.
|
|
26639
|
-
|
|
26640
|
-
|
|
26641
|
-
display: "flex",
|
|
26642
|
-
flexDirection: "column"
|
|
26643
|
-
},
|
|
26644
|
-
"data-testid": "onboarding-complete"
|
|
26645
|
-
}, {
|
|
26646
|
-
children: [jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
26647
|
-
variant: "heading4"
|
|
26648
|
-
}, {
|
|
26649
|
-
children: t("onboarding:success.title")
|
|
26650
|
-
})), jsxRuntime.jsx(Spacer, {
|
|
26651
|
-
multiplier: 2
|
|
26652
|
-
}), jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
26653
|
-
variant: "subtitle1"
|
|
26654
|
-
}, {
|
|
26655
|
-
children: t("onboarding:success.subtitle")
|
|
26656
|
-
})), jsxRuntime.jsx(Spacer, {
|
|
26657
|
-
multiplier: 48
|
|
26658
|
-
}), jsxRuntime.jsx(ButtonGroup, Object.assign({
|
|
26659
|
-
justify: "center"
|
|
26660
|
-
}, {
|
|
26661
|
-
children: jsxRuntime.jsx(giger.Button, Object.assign({
|
|
26662
|
-
bold: false,
|
|
26663
|
-
color: giger.ButtonColor.PRIMARY,
|
|
26664
|
-
onClick: onCompleteOnboarding,
|
|
26665
|
-
type: "button",
|
|
26666
|
-
variant: giger.ButtonVariant.FILLED
|
|
26667
|
-
}, {
|
|
26668
|
-
children: t("onboarding:success.action")
|
|
26669
|
-
}))
|
|
26670
|
-
}))]
|
|
26671
|
-
}));
|
|
26697
|
+
return jsxRuntime.jsx(CompletionPage, {
|
|
26698
|
+
onContinue: onCompleteOnboarding
|
|
26699
|
+
});
|
|
26672
26700
|
}
|
|
26673
26701
|
// Step 1: Landing Page
|
|
26674
26702
|
if (!email) return jsxRuntime.jsx(LandingPage, {
|
|
@@ -27541,7 +27569,7 @@ const RateForm = ({
|
|
|
27541
27569
|
}));
|
|
27542
27570
|
};
|
|
27543
27571
|
|
|
27544
|
-
const
|
|
27572
|
+
const SuspendSalesOrder = ({
|
|
27545
27573
|
children,
|
|
27546
27574
|
errors,
|
|
27547
27575
|
isLoading,
|
|
@@ -27586,17 +27614,20 @@ const getTableWrapperStyles = theme => /*#__PURE__*/react$1.css({
|
|
|
27586
27614
|
}
|
|
27587
27615
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getTableWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIml0ZW1zLWJyZWFrZG93bi5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS2dEIiwiZmlsZSI6Iml0ZW1zLWJyZWFrZG93bi5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcclxuZXhwb3J0IGNvbnN0IGdldE51bWVyaWNDZWxsU3R5bGUgPSAodGhlbWUpID0+IGNzcyh7XHJcbiAgICB0ZXh0QWxpZ246IFwicmlnaHRcIixcclxuICAgIHdpZHRoOiBcIjEwMHB4XCIsXHJcbn0pO1xyXG5leHBvcnQgY29uc3QgZ2V0VGFibGVXcmFwcGVyU3R5bGVzID0gKHRoZW1lKSA9PiBjc3Moe1xyXG4gICAgXCImJiA+IGRpdlwiOiB7XHJcbiAgICAgICAgYm94U2hhZG93OiBcIm5vbmVcIixcclxuICAgIH0sXHJcbiAgICBcIiYmID4gZGl2IHRhYmxlIHRoZWFkIHRoXCI6IHtcclxuICAgICAgICBmb250U3R5bGU6IFwiaXRhbGljXCIsXHJcbiAgICAgICAgZm9udFdlaWdodDogdGhlbWUudHlwb2dyYXBoeS5mb250V2VpZ2h0Lm5vcm1hbCxcclxuICAgIH0sXHJcbn0pO1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1pdGVtcy1icmVha2Rvd24uc3R5bGVzLmpzLm1hcCJdfQ== */");
|
|
27588
27616
|
|
|
27589
|
-
const ItemsBreakdownTableHeader = (
|
|
27617
|
+
const ItemsBreakdownTableHeader = ({
|
|
27618
|
+
hasValue,
|
|
27619
|
+
hasTotal
|
|
27620
|
+
}) => jsxRuntime.jsx(giger.TableHeader, {
|
|
27590
27621
|
children: jsxRuntime.jsxs(giger.TableBaseRow, {
|
|
27591
27622
|
children: [jsxRuntime.jsx(giger.TableHeaderCell, {}), jsxRuntime.jsx(giger.TableHeaderCell, Object.assign({
|
|
27592
27623
|
css: getNumericCellStyle
|
|
27593
27624
|
}, {
|
|
27594
27625
|
children: "Qty"
|
|
27595
|
-
})), jsxRuntime.jsx(giger.TableHeaderCell, Object.assign({
|
|
27626
|
+
})), hasValue && jsxRuntime.jsx(giger.TableHeaderCell, Object.assign({
|
|
27596
27627
|
css: getNumericCellStyle
|
|
27597
27628
|
}, {
|
|
27598
27629
|
children: "$/ea"
|
|
27599
|
-
})), jsxRuntime.jsx(giger.TableHeaderCell, Object.assign({
|
|
27630
|
+
})), hasTotal && jsxRuntime.jsx(giger.TableHeaderCell, Object.assign({
|
|
27600
27631
|
css: getNumericCellStyle
|
|
27601
27632
|
}, {
|
|
27602
27633
|
children: "$ Total"
|
|
@@ -27606,11 +27637,16 @@ const ItemsBreakdownTableHeader = () => jsxRuntime.jsx(giger.TableHeader, {
|
|
|
27606
27637
|
const ItemsBreakdown = ({
|
|
27607
27638
|
items
|
|
27608
27639
|
}) => {
|
|
27640
|
+
const hasValue = items.some(item => item.value !== undefined);
|
|
27641
|
+
const hasTotal = items.some(item => item.totalValue !== undefined);
|
|
27609
27642
|
return jsxRuntime.jsx("div", Object.assign({
|
|
27610
27643
|
css: getTableWrapperStyles
|
|
27611
27644
|
}, {
|
|
27612
27645
|
children: jsxRuntime.jsx(giger.Table, Object.assign({
|
|
27613
|
-
header: jsxRuntime.jsx(ItemsBreakdownTableHeader, {
|
|
27646
|
+
header: jsxRuntime.jsx(ItemsBreakdownTableHeader, {
|
|
27647
|
+
hasTotal: hasTotal,
|
|
27648
|
+
hasValue: hasValue
|
|
27649
|
+
})
|
|
27614
27650
|
}, {
|
|
27615
27651
|
children: jsxRuntime.jsx(giger.TableBody, {
|
|
27616
27652
|
children: items.map(({
|
|
@@ -27630,11 +27666,11 @@ const ItemsBreakdown = ({
|
|
|
27630
27666
|
css: getNumericCellStyle
|
|
27631
27667
|
}, {
|
|
27632
27668
|
children: quantity
|
|
27633
|
-
})), jsxRuntime.jsx(giger.TableBodyCell, Object.assign({
|
|
27669
|
+
})), hasValue && jsxRuntime.jsx(giger.TableBodyCell, Object.assign({
|
|
27634
27670
|
css: getNumericCellStyle
|
|
27635
27671
|
}, {
|
|
27636
|
-
children: formatMoney(value)
|
|
27637
|
-
})), jsxRuntime.jsx(giger.TableBodyCell, Object.assign({
|
|
27672
|
+
children: value && formatMoney(value)
|
|
27673
|
+
})), hasTotal && jsxRuntime.jsx(giger.TableBodyCell, Object.assign({
|
|
27638
27674
|
css: getNumericCellStyle
|
|
27639
27675
|
}, {
|
|
27640
27676
|
children: totalValue && formatMoney(totalValue)
|
|
@@ -28047,7 +28083,7 @@ const ShipmentForm = ({
|
|
|
28047
28083
|
warehouseId,
|
|
28048
28084
|
warehouses
|
|
28049
28085
|
}) => {
|
|
28050
|
-
var _a, _b, _c, _d;
|
|
28086
|
+
var _a, _b, _c, _d, _e;
|
|
28051
28087
|
features = Object.assign({
|
|
28052
28088
|
browseRates: true,
|
|
28053
28089
|
includeShipsuranceInsurance: true,
|
|
@@ -28220,8 +28256,8 @@ const ShipmentForm = ({
|
|
|
28220
28256
|
}
|
|
28221
28257
|
}, [form]);
|
|
28222
28258
|
const handleSubmit = form.handleSubmit(values => __awaiter(void 0, void 0, void 0, function* () {
|
|
28223
|
-
const
|
|
28224
|
-
payload = __rest(
|
|
28259
|
+
const _f = values,
|
|
28260
|
+
payload = __rest(_f, ["__mode"]);
|
|
28225
28261
|
const updatedShipment = yield onSubmit(Object.assign(Object.assign({}, shipment || {}), payload));
|
|
28226
28262
|
// Defer shipment hydration to the task queue so that the submission promise resolves first, otherwise the
|
|
28227
28263
|
// submission count will increment after hydration resets the form, keeping it in revalidate mode
|
|
@@ -28335,6 +28371,10 @@ const ShipmentForm = ({
|
|
|
28335
28371
|
} = form.getValues();
|
|
28336
28372
|
form.setValue("__mode", (features === null || features === void 0 ? void 0 : features.selectService) ? __mode : "browse_rates");
|
|
28337
28373
|
}, [form, features === null || features === void 0 ? void 0 : features.selectService]);
|
|
28374
|
+
const salesOrderItems = React.useMemo(() => getSalesOrderItemsFromSalesOrderOrShipment({
|
|
28375
|
+
salesOrder,
|
|
28376
|
+
shipment
|
|
28377
|
+
}), [salesOrder, shipment]);
|
|
28338
28378
|
if (isLoading) return jsxRuntime.jsx(Loader, {
|
|
28339
28379
|
message: t("loading.shipment")
|
|
28340
28380
|
});
|
|
@@ -28397,7 +28437,7 @@ const ShipmentForm = ({
|
|
|
28397
28437
|
}), jsxRuntime.jsx(Spacer, {
|
|
28398
28438
|
displayOn: isEditShipFormToOpen ? "tablet" : undefined,
|
|
28399
28439
|
multiplier: 2
|
|
28400
|
-
}), editShipToForm, jsxRuntime.jsxs(FieldLabel, Object.assign({
|
|
28440
|
+
}), editShipToForm, (salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.orderDate) && jsxRuntime.jsxs(FieldLabel, Object.assign({
|
|
28401
28441
|
label: t("purchase-label:fields.orderDate")
|
|
28402
28442
|
}, {
|
|
28403
28443
|
children: [jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
@@ -28405,7 +28445,7 @@ const ShipmentForm = ({
|
|
|
28405
28445
|
}, {
|
|
28406
28446
|
children: formatDate(salesOrder.orderDate)
|
|
28407
28447
|
})), jsxRuntime.jsx(Spacer, {})]
|
|
28408
|
-
})), jsxRuntime.jsxs(FieldLabel, Object.assign({
|
|
28448
|
+
})), ((_b = salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.paymentDetails) === null || _b === void 0 ? void 0 : _b.grandTotal) && jsxRuntime.jsxs(FieldLabel, Object.assign({
|
|
28409
28449
|
label: t("purchase-label:fields.orderValue")
|
|
28410
28450
|
}, {
|
|
28411
28451
|
children: [jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
@@ -28421,7 +28461,7 @@ const ShipmentForm = ({
|
|
|
28421
28461
|
}, {
|
|
28422
28462
|
children: requestedServices.length > 1 ? t("purchase-label:multipleShippingServices") : requestedServices[0].toString()
|
|
28423
28463
|
})), jsxRuntime.jsx(Spacer, {})]
|
|
28424
|
-
})), salesOrder.paymentDetails.estimatedShipping.amount > 0 && jsxRuntime.jsxs(FieldLabel, Object.assign({
|
|
28464
|
+
})), salesOrder && salesOrder.paymentDetails.estimatedShipping.amount > 0 && jsxRuntime.jsxs(FieldLabel, Object.assign({
|
|
28425
28465
|
label: t("purchase-label:fields.estimatedShipping")
|
|
28426
28466
|
}, {
|
|
28427
28467
|
children: [jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
@@ -28429,7 +28469,7 @@ const ShipmentForm = ({
|
|
|
28429
28469
|
}, {
|
|
28430
28470
|
children: formatMoney(salesOrder.paymentDetails.estimatedShipping)
|
|
28431
28471
|
})), jsxRuntime.jsx(Spacer, {})]
|
|
28432
|
-
})),
|
|
28472
|
+
})), salesOrderItems.length > 0 && jsxRuntime.jsx(FieldLabel, Object.assign({
|
|
28433
28473
|
label: t("purchase-label:fields.items")
|
|
28434
28474
|
}, {
|
|
28435
28475
|
children: jsxRuntime.jsxs("div", Object.assign({
|
|
@@ -28441,7 +28481,7 @@ const ShipmentForm = ({
|
|
|
28441
28481
|
children: [jsxRuntime.jsx(giger.Typography, Object.assign({
|
|
28442
28482
|
variant: "body2"
|
|
28443
28483
|
}, {
|
|
28444
|
-
children:
|
|
28484
|
+
children: salesOrderItems.length.toString()
|
|
28445
28485
|
})), jsxRuntime.jsxs(giger.Link, Object.assign({
|
|
28446
28486
|
css: theme => ({
|
|
28447
28487
|
alignItems: "center",
|
|
@@ -28460,15 +28500,7 @@ const ShipmentForm = ({
|
|
|
28460
28500
|
}))]
|
|
28461
28501
|
}))
|
|
28462
28502
|
})), showItems && jsxRuntime.jsx(ItemsBreakdown, {
|
|
28463
|
-
items:
|
|
28464
|
-
detail: `SKU ${item.lineItemDetails.sku}`,
|
|
28465
|
-
name: item.lineItemDetails.name,
|
|
28466
|
-
quantity: item.quantity,
|
|
28467
|
-
subDetail: item.requestedShippingOptions.shippingService,
|
|
28468
|
-
subDetailValue: item.priceSummary.estimatedShipping,
|
|
28469
|
-
totalValue: item.priceSummary.total,
|
|
28470
|
-
value: item.priceSummary.unitPrice
|
|
28471
|
-
}))
|
|
28503
|
+
items: salesOrderItems
|
|
28472
28504
|
})]
|
|
28473
28505
|
})), jsxRuntime.jsx("div", {
|
|
28474
28506
|
ref: customsItemErrorScrollToRef
|
|
@@ -28492,7 +28524,7 @@ const ShipmentForm = ({
|
|
|
28492
28524
|
}), jsxRuntime.jsx(CustomsItemsDisplay, {
|
|
28493
28525
|
onUpdate: handleUpdateCustomsItems,
|
|
28494
28526
|
shipment: shipment
|
|
28495
|
-
}), ((
|
|
28527
|
+
}), ((_c = customsErrors === null || customsErrors === void 0 ? void 0 : customsErrors.customsItems) === null || _c === void 0 ? void 0 : _c.type) === "too_small" && jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
28496
28528
|
children: [jsxRuntime.jsx(Spacer, {}), jsxRuntime.jsx(giger.InlineNotification, {
|
|
28497
28529
|
title: t("purchase-label:errorMessages.customsItemsRequired"),
|
|
28498
28530
|
type: giger.NotificationType.ERROR
|
|
@@ -28652,7 +28684,7 @@ const ShipmentForm = ({
|
|
|
28652
28684
|
label: "purchase-label:fields.addOns"
|
|
28653
28685
|
}, {
|
|
28654
28686
|
children: [jsxRuntime.jsx(Switch, Object.assign({
|
|
28655
|
-
defaultChecked: ((
|
|
28687
|
+
defaultChecked: ((_d = shipment === null || shipment === void 0 ? void 0 : shipment.confirmation) !== null && _d !== void 0 ? _d : "none") !== "none",
|
|
28656
28688
|
label: t("purchase-label:fields.confirmation"),
|
|
28657
28689
|
name: "confirmationEnabled",
|
|
28658
28690
|
shouldUnmount: true,
|
|
@@ -28668,7 +28700,7 @@ const ShipmentForm = ({
|
|
|
28668
28700
|
shouldUnregister: true
|
|
28669
28701
|
})
|
|
28670
28702
|
})), jsxRuntime.jsxs(Switch, Object.assign({
|
|
28671
|
-
defaultChecked: ((
|
|
28703
|
+
defaultChecked: ((_e = shipment === null || shipment === void 0 ? void 0 : shipment.insuranceProvider) !== null && _e !== void 0 ? _e : "none") !== "none",
|
|
28672
28704
|
label: t("purchase-label:fields.insurance"),
|
|
28673
28705
|
name: "insuranceEnabled",
|
|
28674
28706
|
onChange: () => setInsuranceEnabled(true),
|
|
@@ -28957,6 +28989,30 @@ const Shipment$1 = ({
|
|
|
28957
28989
|
});
|
|
28958
28990
|
};
|
|
28959
28991
|
|
|
28992
|
+
const SuspendShipment = ({
|
|
28993
|
+
children,
|
|
28994
|
+
errors,
|
|
28995
|
+
isLoading,
|
|
28996
|
+
shipment
|
|
28997
|
+
}) => {
|
|
28998
|
+
const {
|
|
28999
|
+
t
|
|
29000
|
+
} = reactI18next.useTranslation(["common", "purchase-label"]);
|
|
29001
|
+
if (isLoading) return jsxRuntime.jsx(Loader, {
|
|
29002
|
+
message: t("loading.shipment")
|
|
29003
|
+
});
|
|
29004
|
+
if (errors) throw new Error(errors.map(e => e.message).join(", "));
|
|
29005
|
+
if (!shipment) throw new Error("errorMessages.unableToLoad.shipment");
|
|
29006
|
+
return jsxRuntime.jsx("div", Object.assign({
|
|
29007
|
+
css: {
|
|
29008
|
+
height: "100%",
|
|
29009
|
+
width: "100%"
|
|
29010
|
+
}
|
|
29011
|
+
}, {
|
|
29012
|
+
children: children
|
|
29013
|
+
}));
|
|
29014
|
+
};
|
|
29015
|
+
|
|
28960
29016
|
const VoidLabel$1 = ({
|
|
28961
29017
|
onComplete,
|
|
28962
29018
|
onSubmit,
|
|
@@ -29093,10 +29149,11 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
29093
29149
|
ManageWarehouses: ManageWarehouses$1,
|
|
29094
29150
|
Onboarding: Onboarding$1,
|
|
29095
29151
|
RateForm: RateForm,
|
|
29096
|
-
|
|
29152
|
+
SuspendSalesOrder: SuspendSalesOrder,
|
|
29097
29153
|
ShipmentForm: ShipmentForm,
|
|
29098
29154
|
schedulePickupForCarrier: schedulePickupForCarrier,
|
|
29099
29155
|
Shipment: Shipment$1,
|
|
29156
|
+
SuspendShipment: SuspendShipment,
|
|
29100
29157
|
WarehouseForm: WarehouseForm,
|
|
29101
29158
|
VoidLabel: VoidLabel$1,
|
|
29102
29159
|
WalletForm: WalletForm,
|
|
@@ -31257,7 +31314,7 @@ const useAddress = ({
|
|
|
31257
31314
|
}), [handleValidateAddress, onChange, shipment, updateShipment]);
|
|
31258
31315
|
React.useEffect(() => {
|
|
31259
31316
|
if (!addressPreference && (shipment === null || shipment === void 0 ? void 0 : shipment.shipTo)) {
|
|
31260
|
-
handleValidateAddress(shipment === null || shipment === void 0 ? void 0 : shipment.shipTo, salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.shipTo);
|
|
31317
|
+
void handleValidateAddress(shipment === null || shipment === void 0 ? void 0 : shipment.shipTo, salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.shipTo);
|
|
31261
31318
|
}
|
|
31262
31319
|
}, [addressPreference, handleValidateAddress, salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.shipTo, shipment === null || shipment === void 0 ? void 0 : shipment.shipTo]);
|
|
31263
31320
|
const charsetWarning = React.useMemo(() => Object.keys((addressPreference === null || addressPreference === void 0 ? void 0 : addressPreference.selection) || {}).reduce((warning, key) => {
|
|
@@ -31737,6 +31794,67 @@ const ConfigureShipment = _a => {
|
|
|
31737
31794
|
});
|
|
31738
31795
|
};
|
|
31739
31796
|
|
|
31797
|
+
const Onboarding = ({
|
|
31798
|
+
onCompleteOnboarding
|
|
31799
|
+
}) => {
|
|
31800
|
+
const {
|
|
31801
|
+
t
|
|
31802
|
+
} = reactI18next.useTranslation(["common", "register-wallet"]);
|
|
31803
|
+
const {
|
|
31804
|
+
data: warehouses,
|
|
31805
|
+
refetch: refetchWarehouses
|
|
31806
|
+
} = react.useListWarehouses();
|
|
31807
|
+
const {
|
|
31808
|
+
mutateAsync: createWarehouse
|
|
31809
|
+
} = react.useCreateWarehouse();
|
|
31810
|
+
const {
|
|
31811
|
+
data: carriers,
|
|
31812
|
+
refetch: refetchCarriers
|
|
31813
|
+
} = react.useListCarriers();
|
|
31814
|
+
const {
|
|
31815
|
+
error: registerStampsCarrierErrors,
|
|
31816
|
+
mutateAsync: registerStampsCarrier
|
|
31817
|
+
} = react.useConnectCarrier();
|
|
31818
|
+
const {
|
|
31819
|
+
error: registerUpsCarrierErrors,
|
|
31820
|
+
mutateAsync: registerUpsCarrier,
|
|
31821
|
+
isLoading: isLoadingUps
|
|
31822
|
+
} = react.useConnectCarrier();
|
|
31823
|
+
const {
|
|
31824
|
+
error: registerDhlCarrierErrors,
|
|
31825
|
+
mutateAsync: registerDhlCarrier,
|
|
31826
|
+
isLoading: isLoadingDhl
|
|
31827
|
+
} = react.useConnectCarrier();
|
|
31828
|
+
const onWarehouseCreated = React.useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
31829
|
+
yield refetchWarehouses();
|
|
31830
|
+
}), [refetchWarehouses]);
|
|
31831
|
+
const onCarrierCreated = React.useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
31832
|
+
yield refetchCarriers();
|
|
31833
|
+
}), [refetchCarriers]);
|
|
31834
|
+
if (!carriers) return jsxRuntime.jsx(Loader, {
|
|
31835
|
+
message: t("loading.carriers")
|
|
31836
|
+
});
|
|
31837
|
+
if (!warehouses) return jsxRuntime.jsx(Loader, {
|
|
31838
|
+
message: t("loading.warehouses")
|
|
31839
|
+
});
|
|
31840
|
+
return jsxRuntime.jsx(Onboarding$1, {
|
|
31841
|
+
carriers: carriers,
|
|
31842
|
+
createWarehouse: createWarehouse,
|
|
31843
|
+
isLoadingDhl: isLoadingDhl,
|
|
31844
|
+
isLoadingUps: isLoadingUps,
|
|
31845
|
+
onCarrierCreated: onCarrierCreated,
|
|
31846
|
+
onCompleteOnboarding: onCompleteOnboarding,
|
|
31847
|
+
onWarehouseCreated: onWarehouseCreated,
|
|
31848
|
+
registerDhlCarrier: registerDhlCarrier,
|
|
31849
|
+
registerDhlCarrierErrors: registerDhlCarrierErrors,
|
|
31850
|
+
registerStampsCarrier: registerStampsCarrier,
|
|
31851
|
+
registerStampsCarrierErrors: registerStampsCarrierErrors,
|
|
31852
|
+
registerUpsCarrier: registerUpsCarrier,
|
|
31853
|
+
registerUpsCarrierErrors: registerUpsCarrierErrors,
|
|
31854
|
+
warehouses: warehouses
|
|
31855
|
+
});
|
|
31856
|
+
};
|
|
31857
|
+
|
|
31740
31858
|
const usePendingShipment = ({
|
|
31741
31859
|
onLoad,
|
|
31742
31860
|
salesOrder,
|
|
@@ -31808,7 +31926,8 @@ const useConfigureShipment = ({
|
|
|
31808
31926
|
onLoad,
|
|
31809
31927
|
onShipmentUpdated,
|
|
31810
31928
|
salesOrder,
|
|
31811
|
-
warehouseId
|
|
31929
|
+
warehouseId,
|
|
31930
|
+
printLabelLayout
|
|
31812
31931
|
}) => {
|
|
31813
31932
|
var _a, _b;
|
|
31814
31933
|
const {
|
|
@@ -31825,12 +31944,12 @@ const useConfigureShipment = ({
|
|
|
31825
31944
|
yield reloadPendingShipment();
|
|
31826
31945
|
yield onShipmentUpdated === null || onShipmentUpdated === void 0 ? void 0 : onShipmentUpdated(shipment);
|
|
31827
31946
|
}), [onShipmentUpdated, reloadPendingShipment]);
|
|
31828
|
-
const
|
|
31947
|
+
const labelLayoutSetting = (_b = (_a = react.useGetAccountSettings().data) === null || _a === void 0 ? void 0 : _a.defaultLabelLayout) !== null && _b !== void 0 ? _b : "4x6";
|
|
31829
31948
|
return {
|
|
31830
31949
|
errors: pendingShipmentErrors,
|
|
31831
31950
|
isLoading: isPendingShipmentLoading,
|
|
31832
31951
|
onShipmentUpdated: handleShipmentUpdated,
|
|
31833
|
-
printLabelLayout,
|
|
31952
|
+
printLabelLayout: printLabelLayout ? printLabelLayout : labelLayoutSetting,
|
|
31834
31953
|
shipment: pendingShipment,
|
|
31835
31954
|
warehouseId
|
|
31836
31955
|
};
|
|
@@ -31889,7 +32008,7 @@ const useImportSalesOrder = ({
|
|
|
31889
32008
|
};
|
|
31890
32009
|
};
|
|
31891
32010
|
|
|
31892
|
-
const
|
|
32011
|
+
const PurchaseLabelBySalesOrder = _a => {
|
|
31893
32012
|
var {
|
|
31894
32013
|
features,
|
|
31895
32014
|
externalOrderId,
|
|
@@ -31919,7 +32038,7 @@ const SalesOrder = _a => {
|
|
|
31919
32038
|
salesOrder,
|
|
31920
32039
|
warehouseId
|
|
31921
32040
|
});
|
|
31922
|
-
return jsxRuntime.jsx(
|
|
32041
|
+
return jsxRuntime.jsx(SuspendSalesOrder, Object.assign({
|
|
31923
32042
|
salesOrder: salesOrder
|
|
31924
32043
|
}, salesOrderProps, {
|
|
31925
32044
|
children: salesOrder && jsxRuntime.jsx(ConfigureShipment, Object.assign({
|
|
@@ -31929,67 +32048,77 @@ const SalesOrder = _a => {
|
|
|
31929
32048
|
}));
|
|
31930
32049
|
};
|
|
31931
32050
|
|
|
31932
|
-
const
|
|
31933
|
-
|
|
31934
|
-
const Onboarding = ({
|
|
31935
|
-
onCompleteOnboarding
|
|
32051
|
+
const useLoadShipment = ({
|
|
32052
|
+
shipmentId
|
|
31936
32053
|
}) => {
|
|
31937
32054
|
const {
|
|
31938
|
-
|
|
31939
|
-
|
|
31940
|
-
|
|
31941
|
-
|
|
31942
|
-
|
|
31943
|
-
|
|
31944
|
-
|
|
31945
|
-
|
|
31946
|
-
|
|
31947
|
-
|
|
31948
|
-
|
|
31949
|
-
|
|
31950
|
-
|
|
31951
|
-
|
|
31952
|
-
|
|
31953
|
-
|
|
31954
|
-
|
|
31955
|
-
|
|
31956
|
-
|
|
31957
|
-
|
|
31958
|
-
|
|
31959
|
-
|
|
31960
|
-
const {
|
|
31961
|
-
|
|
31962
|
-
|
|
31963
|
-
|
|
31964
|
-
|
|
31965
|
-
|
|
31966
|
-
|
|
31967
|
-
|
|
31968
|
-
|
|
31969
|
-
|
|
31970
|
-
|
|
31971
|
-
|
|
31972
|
-
|
|
31973
|
-
|
|
31974
|
-
|
|
31975
|
-
|
|
31976
|
-
|
|
31977
|
-
|
|
31978
|
-
|
|
31979
|
-
|
|
31980
|
-
|
|
31981
|
-
|
|
31982
|
-
|
|
31983
|
-
|
|
31984
|
-
|
|
31985
|
-
|
|
31986
|
-
|
|
31987
|
-
|
|
31988
|
-
|
|
31989
|
-
|
|
31990
|
-
|
|
31991
|
-
|
|
31992
|
-
|
|
32055
|
+
data: shipment,
|
|
32056
|
+
error: loadShipmentErrors,
|
|
32057
|
+
refetch: refetchShipment,
|
|
32058
|
+
isLoading
|
|
32059
|
+
} = react.useGetShipment(shipmentId);
|
|
32060
|
+
const errors = [...(loadShipmentErrors !== null && loadShipmentErrors !== void 0 ? loadShipmentErrors : [])];
|
|
32061
|
+
return {
|
|
32062
|
+
errors: errors.length > 0 ? errors : undefined,
|
|
32063
|
+
isLoading: isLoading,
|
|
32064
|
+
refetchShipment,
|
|
32065
|
+
shipment
|
|
32066
|
+
};
|
|
32067
|
+
};
|
|
32068
|
+
|
|
32069
|
+
const PurchaseLabelByShipment = _a => {
|
|
32070
|
+
var {
|
|
32071
|
+
shipmentId,
|
|
32072
|
+
onLoad,
|
|
32073
|
+
onShipmentUpdated,
|
|
32074
|
+
features
|
|
32075
|
+
} = _a,
|
|
32076
|
+
props = __rest(_a, ["shipmentId", "onLoad", "onShipmentUpdated", "features"]);
|
|
32077
|
+
const _b = useLoadShipment({
|
|
32078
|
+
shipmentId
|
|
32079
|
+
}),
|
|
32080
|
+
{
|
|
32081
|
+
shipment
|
|
32082
|
+
} = _b,
|
|
32083
|
+
shipmentProps = __rest(_b, ["shipment"]);
|
|
32084
|
+
return jsxRuntime.jsx(SuspendShipment, Object.assign({
|
|
32085
|
+
shipment: shipment
|
|
32086
|
+
}, shipmentProps, {
|
|
32087
|
+
children: shipment && jsxRuntime.jsx(ConfigureShipment, Object.assign({
|
|
32088
|
+
errors: shipmentProps.errors,
|
|
32089
|
+
features: features,
|
|
32090
|
+
isLoading: shipmentProps.isLoading,
|
|
32091
|
+
onAddressValidation: props.onAddressValidation,
|
|
32092
|
+
onApplyPreset: props.onApplyPreset,
|
|
32093
|
+
onBeforeLabelCreate: props.onBeforeLabelCreate,
|
|
32094
|
+
onChangeAddress: props.onChangeAddress,
|
|
32095
|
+
onChangeShipmentFormMode: props.onChangeShipmentFormMode,
|
|
32096
|
+
onLabelCreateFailure: props.onLabelCreateFailure,
|
|
32097
|
+
onLabelCreateSuccess: props.onLabelCreateSuccess,
|
|
32098
|
+
onRateSaved: props.onRateSaved,
|
|
32099
|
+
onRatesCalculated: props.onRatesCalculated,
|
|
32100
|
+
onShipmentUpdated: onShipmentUpdated,
|
|
32101
|
+
onToggleAddressPreferenceDisclosure: props.onToggleAddressPreferenceDisclosure,
|
|
32102
|
+
printLabelLayout: props.printLabelLayout,
|
|
32103
|
+
shipment: shipment,
|
|
32104
|
+
shippingPresets: props.shippingPresets,
|
|
32105
|
+
warehouseId: props.warehouseId
|
|
32106
|
+
}, props))
|
|
32107
|
+
}));
|
|
32108
|
+
};
|
|
32109
|
+
|
|
32110
|
+
const PurchaseLabel = _a => {
|
|
32111
|
+
var {
|
|
32112
|
+
shipmentId
|
|
32113
|
+
} = _a,
|
|
32114
|
+
props = __rest(_a, ["shipmentId"]);
|
|
32115
|
+
if (shipmentId) {
|
|
32116
|
+
return jsxRuntime.jsx(PurchaseLabelByShipment, Object.assign({
|
|
32117
|
+
shipmentId: shipmentId
|
|
32118
|
+
}, props));
|
|
32119
|
+
} else {
|
|
32120
|
+
return jsxRuntime.jsx(PurchaseLabelBySalesOrder, Object.assign({}, props));
|
|
32121
|
+
}
|
|
31993
32122
|
};
|
|
31994
32123
|
|
|
31995
32124
|
const Shipment = ({
|
|
@@ -32060,6 +32189,8 @@ const VoidLabel = ({
|
|
|
32060
32189
|
});
|
|
32061
32190
|
};
|
|
32062
32191
|
|
|
32192
|
+
const Element$3 = registerElement("purchase-label", PurchaseLabel);
|
|
32193
|
+
|
|
32063
32194
|
const Element$2 = registerElement("onboarding", Onboarding);
|
|
32064
32195
|
|
|
32065
32196
|
const Element$1 = registerElement("view-shipment", Shipment);
|
|
@@ -32852,6 +32983,7 @@ exports.getIsInternationalShipment = getIsInternationalShipment;
|
|
|
32852
32983
|
exports.getPendingShipment = getPendingShipment;
|
|
32853
32984
|
exports.getRateRequiresAcknowledgement = getRateRequiresAcknowledgement;
|
|
32854
32985
|
exports.getRequestedServices = getRequestedServices;
|
|
32986
|
+
exports.getSalesOrderItemsFromSalesOrderOrShipment = getSalesOrderItemsFromSalesOrderOrShipment;
|
|
32855
32987
|
exports.getTotalRateAmount = getTotalRateAmount;
|
|
32856
32988
|
exports.isDomesticAddress = isDomesticAddress;
|
|
32857
32989
|
exports.isFlatRatePackageCode = isFlatRatePackageCode;
|