@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.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useController, get as get$1, set as set$2, useWatch, useFormState, useF
|
|
|
3
3
|
import { useTranslation, Trans, initReactI18next, I18nextProvider } from 'react-i18next';
|
|
4
4
|
import { Typography, FormField, FieldMessageType, Input, Checkbox, Icon, Divider, Link, Select as Select$1, Next, Option, Button, Switch as Switch$1, Textarea, ButtonVariant, InlineNotification, NotificationType, ButtonColor, Grid, GridChild, Tag, TagColor, Skeleton, SkeletonAnimation, SkeletonVariant, SkeletonBackgroundColor, IconSize, Stepper, Step, Spinner, SpinnerSize, ChipList, Chip, ButtonSize, Table, TableBody, TableBaseRow, TableBodyCell, TableHeader, TableHeaderCell, useToggle as useToggle$1, Popover, DropdownOptionList, BottomSheet, GigerConfigProvider, EmotionReset, FontsLoader } from '@packlink/giger';
|
|
5
5
|
import axios from 'axios';
|
|
6
|
-
import { logger, ShipEngineProvider, useAddFunds, useGetCarrierById, useUpdateAutoFunding, useGetAutoFundingConfiguration, useListCarriers, useConnectCarrier, useListWarehouses, useUpdateWarehouse, useCreateWarehouse, useDeleteWarehouse, useValidateAddresses, useUpdateSalesOrderShipment, useParseAddress, useListCustomPackageTypes, useCalculateRates, useCreateLabel, useListSalesOrderShipments, useCreateSalesOrderShipment, useGetAccountSettings, useListSalesOrders, useGetSalesOrder, useListOrderSources, useRefreshOrderSource, useGetSalesOrderShipment, useListLabels, useGetLabel, useVoidLabel } from '@shipengine/react';
|
|
6
|
+
import { logger, ShipEngineProvider, useAddFunds, useGetCarrierById, useUpdateAutoFunding, useGetAutoFundingConfiguration, useListCarriers, useConnectCarrier, useListWarehouses, useUpdateWarehouse, useCreateWarehouse, useDeleteWarehouse, useValidateAddresses, useUpdateSalesOrderShipment, useParseAddress, useListCustomPackageTypes, useCalculateRates, useCreateLabel, useListSalesOrderShipments, useCreateSalesOrderShipment, useGetAccountSettings, useListSalesOrders, useGetSalesOrder, useListOrderSources, useRefreshOrderSource, useGetShipment, useGetSalesOrderShipment, useListLabels, useGetLabel, useVoidLabel } from '@shipengine/react';
|
|
7
7
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import * as React from 'react';
|
|
@@ -2502,6 +2502,25 @@ const getRequestedServices = salesOrder => {
|
|
|
2502
2502
|
var _a;
|
|
2503
2503
|
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)));
|
|
2504
2504
|
};
|
|
2505
|
+
const getSalesOrderItemsFromSalesOrderOrShipment = ({
|
|
2506
|
+
salesOrder,
|
|
2507
|
+
shipment
|
|
2508
|
+
}) => {
|
|
2509
|
+
var _a, _b;
|
|
2510
|
+
return (_b = (_a = salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.salesOrderItems.map(item => ({
|
|
2511
|
+
detail: `SKU ${item.lineItemDetails.sku}`,
|
|
2512
|
+
name: item.lineItemDetails.name,
|
|
2513
|
+
quantity: item.quantity,
|
|
2514
|
+
subDetail: item.requestedShippingOptions.shippingService,
|
|
2515
|
+
subDetailValue: item.priceSummary.estimatedShipping,
|
|
2516
|
+
totalValue: item.priceSummary.total,
|
|
2517
|
+
value: item.priceSummary.unitPrice
|
|
2518
|
+
}))) !== null && _a !== void 0 ? _a : shipment === null || shipment === void 0 ? void 0 : shipment.items.map((item, i) => ({
|
|
2519
|
+
detail: `SKU ${item.sku}`,
|
|
2520
|
+
name: (item === null || item === void 0 ? void 0 : item.name) || `ITEM ${i}`,
|
|
2521
|
+
quantity: item.quantity
|
|
2522
|
+
}))) !== null && _b !== void 0 ? _b : [];
|
|
2523
|
+
};
|
|
2505
2524
|
|
|
2506
2525
|
var tryToString$3 = tryToString$5;
|
|
2507
2526
|
|
|
@@ -3298,8 +3317,8 @@ const FieldLabel = ({
|
|
|
3298
3317
|
}, {
|
|
3299
3318
|
children: [label && jsxs("div", Object.assign({
|
|
3300
3319
|
css: theme => ({
|
|
3301
|
-
|
|
3302
|
-
|
|
3320
|
+
paddingTop: _withInput ? theme.spacing(subLabel ? 1 : 2) : undefined,
|
|
3321
|
+
width: theme.spacing(12.5)
|
|
3303
3322
|
})
|
|
3304
3323
|
}, {
|
|
3305
3324
|
children: [jsx(Typography, Object.assign({
|
|
@@ -23124,7 +23143,7 @@ const AddressForm = ({
|
|
|
23124
23143
|
}));
|
|
23125
23144
|
};
|
|
23126
23145
|
|
|
23127
|
-
const styles$
|
|
23146
|
+
const styles$a = createStyles({
|
|
23128
23147
|
agreement: {
|
|
23129
23148
|
alignItems: "center",
|
|
23130
23149
|
display: "flex",
|
|
@@ -23194,10 +23213,10 @@ const DisplayCarrierTerms = c => {
|
|
|
23194
23213
|
const listCarrierLinks = () => {
|
|
23195
23214
|
return c.carrierTerms.links.map((term, index) => {
|
|
23196
23215
|
return jsx("li", Object.assign({
|
|
23197
|
-
css: styles$
|
|
23216
|
+
css: styles$a.listItems
|
|
23198
23217
|
}, {
|
|
23199
23218
|
children: jsx(Link, Object.assign({
|
|
23200
|
-
css: styles$
|
|
23219
|
+
css: styles$a.link,
|
|
23201
23220
|
href: term.url,
|
|
23202
23221
|
isExternal: true,
|
|
23203
23222
|
target: "_blank"
|
|
@@ -23213,18 +23232,18 @@ const DisplayCarrierTerms = c => {
|
|
|
23213
23232
|
};
|
|
23214
23233
|
const listCarrierTerms = () => {
|
|
23215
23234
|
return jsxs("div", Object.assign({
|
|
23216
|
-
css: styles$
|
|
23235
|
+
css: styles$a.terms
|
|
23217
23236
|
}, {
|
|
23218
23237
|
children: [jsx(Typography, Object.assign({
|
|
23219
23238
|
variant: "subtitle1"
|
|
23220
23239
|
}, {
|
|
23221
23240
|
children: c.carrierTerms.title
|
|
23222
23241
|
})), jsx("div", Object.assign({
|
|
23223
|
-
css: styles$
|
|
23242
|
+
css: styles$a.terms
|
|
23224
23243
|
}, {
|
|
23225
23244
|
children: listCarrierContent()
|
|
23226
23245
|
})), jsx("ul", Object.assign({
|
|
23227
|
-
css: styles$
|
|
23246
|
+
css: styles$a.links
|
|
23228
23247
|
}, {
|
|
23229
23248
|
children: listCarrierLinks()
|
|
23230
23249
|
}))]
|
|
@@ -23454,7 +23473,7 @@ const AddressDisplay = ({
|
|
|
23454
23473
|
}));
|
|
23455
23474
|
};
|
|
23456
23475
|
|
|
23457
|
-
const styles$
|
|
23476
|
+
const styles$9 = createStyles({
|
|
23458
23477
|
container: theme => ({
|
|
23459
23478
|
display: "flex",
|
|
23460
23479
|
gap: theme.spacing()
|
|
@@ -23492,13 +23511,13 @@ const Disclosure = ({
|
|
|
23492
23511
|
}, [open]);
|
|
23493
23512
|
return jsxs(Fragment, {
|
|
23494
23513
|
children: [jsxs("div", Object.assign({
|
|
23495
|
-
css: styles$
|
|
23514
|
+
css: styles$9.container
|
|
23496
23515
|
}, {
|
|
23497
23516
|
children: [jsx("div", {
|
|
23498
23517
|
children: label
|
|
23499
23518
|
}), _showToggle && jsx("button", Object.assign({
|
|
23500
23519
|
"aria-expanded": isOpen,
|
|
23501
|
-
css: styles$
|
|
23520
|
+
css: styles$9.toggle,
|
|
23502
23521
|
onClick: () => {
|
|
23503
23522
|
setIsOpen(!isOpen);
|
|
23504
23523
|
onToggle(!isOpen);
|
|
@@ -23506,12 +23525,12 @@ const Disclosure = ({
|
|
|
23506
23525
|
type: "button"
|
|
23507
23526
|
}, {
|
|
23508
23527
|
children: jsx(Icon, {
|
|
23509
|
-
css: styles$
|
|
23528
|
+
css: styles$9.icon,
|
|
23510
23529
|
name: isOpen ? IconNames.CHEVRON_TOP : IconNames.CHEVRON_BOTTOM
|
|
23511
23530
|
})
|
|
23512
23531
|
}))]
|
|
23513
23532
|
})), isOpen && jsx("div", Object.assign({
|
|
23514
|
-
css: styles$
|
|
23533
|
+
css: styles$9.content
|
|
23515
23534
|
}, {
|
|
23516
23535
|
children: typeof children === "function" ? children(() => setIsOpen(!isOpen)) : children
|
|
23517
23536
|
}))]
|
|
@@ -23651,7 +23670,7 @@ const getCarrierRecoverySchema = requiresAddress => z.object({
|
|
|
23651
23670
|
address: requiresAddress ? baseSchema : baseSchema.optional()
|
|
23652
23671
|
});
|
|
23653
23672
|
|
|
23654
|
-
const styles$
|
|
23673
|
+
const styles$8 = createStyles({
|
|
23655
23674
|
grid: theme => ({
|
|
23656
23675
|
margin: theme.spacing(4)
|
|
23657
23676
|
}),
|
|
@@ -23694,7 +23713,7 @@ const CarrierRecoveryForm = ({
|
|
|
23694
23713
|
onSubmit: formLogger.capture(handleSubmit)
|
|
23695
23714
|
}, {
|
|
23696
23715
|
children: jsxs(Grid, Object.assign({
|
|
23697
|
-
css: styles$
|
|
23716
|
+
css: styles$8.grid,
|
|
23698
23717
|
noPadding: true
|
|
23699
23718
|
}, {
|
|
23700
23719
|
children: [jsx(GridChild, Object.assign({
|
|
@@ -23715,14 +23734,14 @@ const CarrierRecoveryForm = ({
|
|
|
23715
23734
|
colSpan: 12
|
|
23716
23735
|
}, {
|
|
23717
23736
|
children: jsx(Typography, Object.assign({
|
|
23718
|
-
css: styles$
|
|
23737
|
+
css: styles$8.heading,
|
|
23719
23738
|
variant: "heading4"
|
|
23720
23739
|
}, {
|
|
23721
23740
|
children: t("register-wallet:sections.carriers.title")
|
|
23722
23741
|
}))
|
|
23723
23742
|
})), jsx(GridChild, Object.assign({
|
|
23724
23743
|
colSpan: 12,
|
|
23725
|
-
css: styles$
|
|
23744
|
+
css: styles$8.subtitle
|
|
23726
23745
|
}, {
|
|
23727
23746
|
children: jsx(Typography, Object.assign({
|
|
23728
23747
|
variant: "subtitle1"
|
|
@@ -23802,7 +23821,7 @@ const CarrierTerms = ({
|
|
|
23802
23821
|
switch (carrierCode) {
|
|
23803
23822
|
case "ups":
|
|
23804
23823
|
return jsxs("div", Object.assign({
|
|
23805
|
-
css: styles$
|
|
23824
|
+
css: styles$a.terms
|
|
23806
23825
|
}, {
|
|
23807
23826
|
children: [jsx(Typography, Object.assign({
|
|
23808
23827
|
variant: "subtitle1"
|
|
@@ -23825,7 +23844,7 @@ const CarrierTerms = ({
|
|
|
23825
23844
|
text,
|
|
23826
23845
|
url
|
|
23827
23846
|
}, idx) => jsx("li", Object.assign({
|
|
23828
|
-
css: styles$
|
|
23847
|
+
css: styles$a.listItems
|
|
23829
23848
|
}, {
|
|
23830
23849
|
children: jsx(Link, Object.assign({
|
|
23831
23850
|
href: url,
|
|
@@ -23873,7 +23892,7 @@ const CarrierTermsForm = ({
|
|
|
23873
23892
|
onSubmit(payload.agreement);
|
|
23874
23893
|
}));
|
|
23875
23894
|
return jsxs("div", Object.assign({
|
|
23876
|
-
css: styles$
|
|
23895
|
+
css: styles$a.termsForm,
|
|
23877
23896
|
"data-testid": "carrier-terms-form"
|
|
23878
23897
|
}, {
|
|
23879
23898
|
children: [jsx(Typography, Object.assign({
|
|
@@ -23889,7 +23908,7 @@ const CarrierTermsForm = ({
|
|
|
23889
23908
|
})), jsx(Spacer, {
|
|
23890
23909
|
multiplier: 1
|
|
23891
23910
|
}), jsx("div", Object.assign({
|
|
23892
|
-
css: styles$
|
|
23911
|
+
css: styles$a.carrierLogos
|
|
23893
23912
|
}, {
|
|
23894
23913
|
children: metadatas.map(({
|
|
23895
23914
|
name,
|
|
@@ -23905,7 +23924,7 @@ const CarrierTermsForm = ({
|
|
|
23905
23924
|
onSubmit: formLogger.capture(handleSubmit)
|
|
23906
23925
|
}, {
|
|
23907
23926
|
children: jsxs("div", Object.assign({
|
|
23908
|
-
css: styles$
|
|
23927
|
+
css: styles$a.agreement
|
|
23909
23928
|
}, {
|
|
23910
23929
|
children: [jsx("div", {
|
|
23911
23930
|
children: jsx(CheckboxInput, {
|
|
@@ -23932,10 +23951,10 @@ const CarrierTermsForm = ({
|
|
|
23932
23951
|
name: "agreement"
|
|
23933
23952
|
})
|
|
23934
23953
|
}), showTerms && jsxs("div", Object.assign({
|
|
23935
|
-
css: styles$
|
|
23954
|
+
css: styles$a.well
|
|
23936
23955
|
}, {
|
|
23937
23956
|
children: [jsxs("div", Object.assign({
|
|
23938
|
-
css: styles$
|
|
23957
|
+
css: styles$a.terms
|
|
23939
23958
|
}, {
|
|
23940
23959
|
children: [jsx(Typography, Object.assign({
|
|
23941
23960
|
variant: "heading5"
|
|
@@ -23947,7 +23966,7 @@ const CarrierTermsForm = ({
|
|
|
23947
23966
|
carrierCode: carrierCode
|
|
23948
23967
|
}, carrierCode))]
|
|
23949
23968
|
})), jsx("div", Object.assign({
|
|
23950
|
-
css: styles$
|
|
23969
|
+
css: styles$a.close
|
|
23951
23970
|
}, {
|
|
23952
23971
|
children: jsx(Button, Object.assign({
|
|
23953
23972
|
onClick: () => setShowTerms(false),
|
|
@@ -24335,7 +24354,7 @@ const LandingPageForm = ({
|
|
|
24335
24354
|
}));
|
|
24336
24355
|
};
|
|
24337
24356
|
|
|
24338
|
-
const styles$
|
|
24357
|
+
const styles$7 = createStyles({
|
|
24339
24358
|
container: theme => ({
|
|
24340
24359
|
padding: theme.spacing(2)
|
|
24341
24360
|
}),
|
|
@@ -24356,11 +24375,11 @@ const LandingPage = ({
|
|
|
24356
24375
|
t
|
|
24357
24376
|
} = useTranslation();
|
|
24358
24377
|
return jsxs("div", Object.assign({
|
|
24359
|
-
css: styles$
|
|
24378
|
+
css: styles$7.container,
|
|
24360
24379
|
"data-testid": "landing-page"
|
|
24361
24380
|
}, {
|
|
24362
24381
|
children: [jsxs("div", Object.assign({
|
|
24363
|
-
css: styles$
|
|
24382
|
+
css: styles$7.header
|
|
24364
24383
|
}, {
|
|
24365
24384
|
children: [jsx(Typography, Object.assign({
|
|
24366
24385
|
variant: "heading4"
|
|
@@ -24378,7 +24397,7 @@ const LandingPage = ({
|
|
|
24378
24397
|
})), jsx(LandingPageForm, {
|
|
24379
24398
|
onSubmit: onSubmit
|
|
24380
24399
|
}), jsxs("div", Object.assign({
|
|
24381
|
-
css: styles$
|
|
24400
|
+
css: styles$7.header
|
|
24382
24401
|
}, {
|
|
24383
24402
|
children: [jsx(Spacer, {
|
|
24384
24403
|
multiplier: 6
|
|
@@ -24389,7 +24408,7 @@ const LandingPage = ({
|
|
|
24389
24408
|
})), jsx(Spacer, {
|
|
24390
24409
|
multiplier: 2
|
|
24391
24410
|
}), jsx(Typography, Object.assign({
|
|
24392
|
-
css: styles$
|
|
24411
|
+
css: styles$7.description,
|
|
24393
24412
|
variant: "body1"
|
|
24394
24413
|
}, {
|
|
24395
24414
|
children: t("onboarding:landing.description")
|
|
@@ -24470,18 +24489,17 @@ const Accordion = _a => {
|
|
|
24470
24489
|
});
|
|
24471
24490
|
};
|
|
24472
24491
|
|
|
24473
|
-
const
|
|
24474
|
-
|
|
24475
|
-
|
|
24476
|
-
}
|
|
24492
|
+
const getStyles$3 = (isConnected = false) => createStyles({
|
|
24493
|
+
connectButton: theme => [{
|
|
24494
|
+
padding: `0 ${theme.spacing(.5)}px`
|
|
24495
|
+
}, isConnected && {
|
|
24496
|
+
backgroundColor: theme.palette.success.main,
|
|
24497
|
+
color: theme.palette.white
|
|
24498
|
+
}],
|
|
24477
24499
|
container: {
|
|
24478
24500
|
display: "flex",
|
|
24479
24501
|
flexDirection: "column"
|
|
24480
24502
|
},
|
|
24481
|
-
loadingButtonContainer: {
|
|
24482
|
-
alignItems: "center",
|
|
24483
|
-
display: "flex"
|
|
24484
|
-
},
|
|
24485
24503
|
logoContainer: theme => ({
|
|
24486
24504
|
alignItems: "center",
|
|
24487
24505
|
columnGap: `${theme.spacing(1)}px`,
|
|
@@ -24492,31 +24510,6 @@ const styles$7 = createStyles({
|
|
|
24492
24510
|
display: "flex",
|
|
24493
24511
|
justifyContent: "space-between",
|
|
24494
24512
|
padding: `${theme.spacing(2)}px`
|
|
24495
|
-
}),
|
|
24496
|
-
statusChipConnected: theme => ({
|
|
24497
|
-
alignItems: 'center',
|
|
24498
|
-
background: theme.palette.success.main,
|
|
24499
|
-
borderRadius: theme.borderRadius.S,
|
|
24500
|
-
color: theme.palette.white,
|
|
24501
|
-
display: 'flex',
|
|
24502
|
-
flex: 'none',
|
|
24503
|
-
flexDirection: 'row',
|
|
24504
|
-
fontSize: theme.typography.fontSize.S,
|
|
24505
|
-
fontWeight: theme.typography.fontWeight.bold,
|
|
24506
|
-
gap: `${theme.spacing(1)}px}`,
|
|
24507
|
-
height: '20px',
|
|
24508
|
-
justifyContent: 'center',
|
|
24509
|
-
lineHeight: `${theme.spacing(2.5)} px`,
|
|
24510
|
-
order: '0',
|
|
24511
|
-
padding: `${theme.spacing(.5)} px`,
|
|
24512
|
-
width: '81px'
|
|
24513
|
-
}),
|
|
24514
|
-
statusChipNotConnected: theme => ({
|
|
24515
|
-
background: 'none',
|
|
24516
|
-
color: theme.palette.secondary.main,
|
|
24517
|
-
fontSize: theme.typography.fontSize.M,
|
|
24518
|
-
fontWeight: theme.typography.fontWeight.bold,
|
|
24519
|
-
lineHeight: `${theme.spacing(3)} px`
|
|
24520
24513
|
})
|
|
24521
24514
|
});
|
|
24522
24515
|
|
|
@@ -24527,7 +24520,7 @@ var _ref$1 = process.env.NODE_ENV === "production" ? {
|
|
|
24527
24520
|
} : {
|
|
24528
24521
|
name: "111ty02-css",
|
|
24529
24522
|
styles: "align-items:center;display:flex;label:css;",
|
|
24530
|
-
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
24523
|
+
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpc3QtY2FycmllcnMtcm93LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFtQmllIiwiZmlsZSI6Imxpc3QtY2FycmllcnMtcm93LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IF9fYXdhaXRlciB9IGZyb20gXCJ0c2xpYlwiO1xyXG5pbXBvcnQgeyBqc3ggYXMgX2pzeCwganN4cyBhcyBfanN4cyB9IGZyb20gXCJAZW1vdGlvbi9yZWFjdC9qc3gtcnVudGltZVwiO1xyXG5pbXBvcnQgeyBjc3MgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcclxuaW1wb3J0IHsgdXNlU3RhdGUgfSBmcm9tIFwicmVhY3RcIjtcclxuaW1wb3J0IHsgdXNlVHJhbnNsYXRpb24gfSBmcm9tIFwicmVhY3QtaTE4bmV4dFwiO1xyXG5pbXBvcnQgeyBCdXR0b24sIEJ1dHRvbkNvbG9yLCBCdXR0b25WYXJpYW50LCBUeXBvZ3JhcGh5IH0gZnJvbSBcIkBwYWNrbGluay9naWdlclwiO1xyXG5pbXBvcnQgeyBUZW1wbGF0ZXMgfSBmcm9tIFwiLi4vLi4vLi4vY29tcG9uZW50c1wiO1xyXG5pbXBvcnQgeyBnZXRTdHlsZXMgfSBmcm9tIFwiLi9saXN0LWNhcnJpZXJzLXJvdy5zdHlsZXNcIjtcclxuZXhwb3J0IGNvbnN0IExpc3RDYXJyaWVyc1JvdyA9ICh7IGNvbm5lY3RlZENhcnJpZXI6IHsgY2FycmllciwgaXNDb25uZWN0ZWQgfSwgcmVnaXN0ZXJDYXJyaWVyLCByZWdpc3RlckNhcnJpZXJFcnJvcnMsIH0pID0+IHtcclxuICAgIGNvbnN0IHsgc2hvcnRuYW1lOiBuYW1lLCBsb2dvLCByZXF1aXJlZEZpZWxkcyB9ID0gY2FycmllcjtcclxuICAgIGNvbnN0IHsgdCB9ID0gdXNlVHJhbnNsYXRpb24oW1wibGlzdC1jYXJyaWVyc1wiXSk7XHJcbiAgICBjb25zdCBbc2hvd0Ryb3BEb3duLCBzZXRTaG93RHJvcERvd25dID0gdXNlU3RhdGUoZmFsc2UpO1xyXG4gICAgY29uc3QgW2lzU3VibWl0dGluZywgc2V0SXNTdWJtaXR0aW5nXSA9IHVzZVN0YXRlKGZhbHNlKTtcclxuICAgIGNvbnN0IGhhbmRsZVJlZ2lzdGVyID0gKHZhbHVlcykgPT4gX19hd2FpdGVyKHZvaWQgMCwgdm9pZCAwLCB2b2lkIDAsIGZ1bmN0aW9uKiAoKSB7XHJcbiAgICAgICAgc2V0SXNTdWJtaXR0aW5nKHRydWUpO1xyXG4gICAgICAgIHlpZWxkIHJlZ2lzdGVyQ2Fycmllcih2YWx1ZXMpO1xyXG4gICAgICAgIHNob3dEcm9wRG93biAmJiBzZXRTaG93RHJvcERvd24oZmFsc2UpO1xyXG4gICAgICAgIHNldElzU3VibWl0dGluZyhmYWxzZSk7XHJcbiAgICB9KTtcclxuICAgIHJldHVybiAoX2pzeHMoXCJkaXZcIiwgT2JqZWN0LmFzc2lnbih7IGNzczogZ2V0U3R5bGVzKCkuY29udGFpbmVyLCBcImRhdGEtdGVzdGlkXCI6IFwiY2Fycmllci1yb3dcIiB9LCB7IGNoaWxkcmVuOiBbX2pzeHMoXCJkaXZcIiwgT2JqZWN0LmFzc2lnbih7IGNzczogZ2V0U3R5bGVzKCkucm93Q29udGFpbmVyIH0sIHsgY2hpbGRyZW46IFtfanN4cyhcImRpdlwiLCBPYmplY3QuYXNzaWduKHsgY3NzOiBnZXRTdHlsZXMoKS5sb2dvQ29udGFpbmVyIH0sIHsgY2hpbGRyZW46IFtfanN4KFwiZGl2XCIsIHsgY2hpbGRyZW46IF9qc3goXCJpbWdcIiwgeyBhbHQ6IGAke25hbWV9LWxvZ29gLCBoZWlnaHQ6IDQwLCBzcmM6IGxvZ28sIHdpZHRoOiA0MCB9KSB9KSwgX2pzeChUeXBvZ3JhcGh5LCBPYmplY3QuYXNzaWduKHsgdmFyaWFudDogXCJzdWJ0aXRsZTFcIiB9LCB7IGNoaWxkcmVuOiBuYW1lIH0pKV0gfSkpLCBfanN4KFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBjc3M6IGNzcyh7IGFsaWduSXRlbXM6IFwiY2VudGVyXCIsIGRpc3BsYXk6IFwiZmxleFwiIH0pIH0sIHsgY2hpbGRyZW46IF9qc3goQnV0dG9uLCBPYmplY3QuYXNzaWduKHsgY29sb3I6IEJ1dHRvbkNvbG9yLlNFQ09OREFSWSwgY3NzOiBnZXRTdHlsZXMoaXNDb25uZWN0ZWQpLmNvbm5lY3RCdXR0b24sIGRpc2FibGVkOiBpc0Nvbm5lY3RlZCB8fCBzaG93RHJvcERvd24sIGlzTG9hZGluZzogaXNTdWJtaXR0aW5nLCBvbkNsaWNrOiAoKSA9PiBfX2F3YWl0ZXIodm9pZCAwLCB2b2lkIDAsIHZvaWQgMCwgZnVuY3Rpb24qICgpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAocmVxdWlyZWRGaWVsZHMgPT09IG51bGwgfHwgcmVxdWlyZWRGaWVsZHMgPT09IHZvaWQgMCA/IHZvaWQgMCA6IHJlcXVpcmVkRmllbGRzLmluY2x1ZGVzKFwiYWRkcmVzc1wiKSlcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2V0U2hvd0Ryb3BEb3duKHRydWUpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsc2VcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeWllbGQgaGFuZGxlUmVnaXN0ZXIoKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pLCB2YXJpYW50OiBCdXR0b25WYXJpYW50LlRFWFQgfSwgeyBjaGlsZHJlbjogaXNDb25uZWN0ZWRcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA/IHQoXCJsaXN0LWNhcnJpZXJzOmFjdGlvbnMuc3RhdHVzLmNvbm5lY3RlZFwiKVxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogdChcImxpc3QtY2FycmllcnM6YWN0aW9ucy5zdGF0dXMubm90Q29ubmVjdGVkXCIpIH0pKSB9KSldIH0pKSwgc2hvd0Ryb3BEb3duICYmIChfanN4KFRlbXBsYXRlcy5BZGRDYXJyaWVyRm9ybSwgeyBjYXJyaWVyVGVybXM6IGNhcnJpZXIudGVybXMgJiYgY2Fycmllci50ZXJtcywgb25DYW5jZWw6ICgpID0+IHNldFNob3dEcm9wRG93bihmYWxzZSksIG9uU3VibWl0OiAodmFsdWVzKSA9PiBoYW5kbGVSZWdpc3Rlcih2YWx1ZXMpLCByZWdpc3RlckNhcnJpZXJFcnJvcnM6IHJlZ2lzdGVyQ2FycmllckVycm9ycyB9KSldIH0pKSk7XHJcbn07XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPWxpc3QtY2FycmllcnMtcm93LmpzLm1hcCJdfQ== */",
|
|
24531
24524
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
24532
24525
|
};
|
|
24533
24526
|
const ListCarriersRow = ({
|
|
@@ -24539,7 +24532,7 @@ const ListCarriersRow = ({
|
|
|
24539
24532
|
registerCarrierErrors
|
|
24540
24533
|
}) => {
|
|
24541
24534
|
const {
|
|
24542
|
-
name,
|
|
24535
|
+
shortname: name,
|
|
24543
24536
|
logo,
|
|
24544
24537
|
requiredFields
|
|
24545
24538
|
} = carrier;
|
|
@@ -24555,20 +24548,21 @@ const ListCarriersRow = ({
|
|
|
24555
24548
|
setIsSubmitting(false);
|
|
24556
24549
|
});
|
|
24557
24550
|
return jsxs("div", Object.assign({
|
|
24558
|
-
css:
|
|
24551
|
+
css: getStyles$3().container,
|
|
24552
|
+
"data-testid": "carrier-row"
|
|
24559
24553
|
}, {
|
|
24560
24554
|
children: [jsxs("div", Object.assign({
|
|
24561
|
-
css:
|
|
24555
|
+
css: getStyles$3().rowContainer
|
|
24562
24556
|
}, {
|
|
24563
24557
|
children: [jsxs("div", Object.assign({
|
|
24564
|
-
css:
|
|
24558
|
+
css: getStyles$3().logoContainer
|
|
24565
24559
|
}, {
|
|
24566
24560
|
children: [jsx("div", {
|
|
24567
24561
|
children: jsx("img", {
|
|
24568
24562
|
alt: `${name}-logo`,
|
|
24569
|
-
height:
|
|
24563
|
+
height: 40,
|
|
24570
24564
|
src: logo,
|
|
24571
|
-
width:
|
|
24565
|
+
width: 40
|
|
24572
24566
|
})
|
|
24573
24567
|
}), jsx(Typography, Object.assign({
|
|
24574
24568
|
variant: "subtitle1"
|
|
@@ -24579,6 +24573,8 @@ const ListCarriersRow = ({
|
|
|
24579
24573
|
css: _ref$1
|
|
24580
24574
|
}, {
|
|
24581
24575
|
children: jsx(Button, Object.assign({
|
|
24576
|
+
color: ButtonColor.SECONDARY,
|
|
24577
|
+
css: getStyles$3(isConnected).connectButton,
|
|
24582
24578
|
disabled: isConnected || showDropDown,
|
|
24583
24579
|
isLoading: isSubmitting,
|
|
24584
24580
|
onClick: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -26164,6 +26160,69 @@ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
|
26164
26160
|
}
|
|
26165
26161
|
});
|
|
26166
26162
|
|
|
26163
|
+
const CompletionPage = ({
|
|
26164
|
+
onContinue
|
|
26165
|
+
}) => {
|
|
26166
|
+
const {
|
|
26167
|
+
t
|
|
26168
|
+
} = useTranslation(["common", "onboarding"]);
|
|
26169
|
+
return jsxs("div", Object.assign({
|
|
26170
|
+
css: {
|
|
26171
|
+
alignItems: "center",
|
|
26172
|
+
display: "flex",
|
|
26173
|
+
flexDirection: "column"
|
|
26174
|
+
},
|
|
26175
|
+
"data-testid": "onboarding-complete"
|
|
26176
|
+
}, {
|
|
26177
|
+
children: [jsx(Typography, Object.assign({
|
|
26178
|
+
variant: "heading4"
|
|
26179
|
+
}, {
|
|
26180
|
+
children: t("onboarding:success.title")
|
|
26181
|
+
})), jsx(Spacer, {
|
|
26182
|
+
multiplier: 2
|
|
26183
|
+
}), jsx(Typography, Object.assign({
|
|
26184
|
+
variant: "subtitle1"
|
|
26185
|
+
}, {
|
|
26186
|
+
children: t("onboarding:success.subtitle")
|
|
26187
|
+
})), jsx(Spacer, {
|
|
26188
|
+
multiplier: 10
|
|
26189
|
+
}), jsxs("svg", Object.assign({
|
|
26190
|
+
fill: "none",
|
|
26191
|
+
height: "86",
|
|
26192
|
+
viewBox: "0 0 86 86",
|
|
26193
|
+
width: "86",
|
|
26194
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
26195
|
+
}, {
|
|
26196
|
+
children: [jsx("circle", {
|
|
26197
|
+
cx: "43",
|
|
26198
|
+
cy: "43.3379",
|
|
26199
|
+
fill: "#E8F6FF",
|
|
26200
|
+
r: "42.5"
|
|
26201
|
+
}), jsx("path", {
|
|
26202
|
+
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",
|
|
26203
|
+
fill: "#006FBB"
|
|
26204
|
+
}), jsx("path", {
|
|
26205
|
+
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",
|
|
26206
|
+
fill: "#006FBB"
|
|
26207
|
+
})]
|
|
26208
|
+
})), jsx(Spacer, {
|
|
26209
|
+
multiplier: 10
|
|
26210
|
+
}), jsx(ButtonGroup, Object.assign({
|
|
26211
|
+
justify: "center"
|
|
26212
|
+
}, {
|
|
26213
|
+
children: jsx(Button, Object.assign({
|
|
26214
|
+
bold: false,
|
|
26215
|
+
color: ButtonColor.PRIMARY,
|
|
26216
|
+
onClick: onContinue,
|
|
26217
|
+
type: "button",
|
|
26218
|
+
variant: ButtonVariant.FILLED
|
|
26219
|
+
}, {
|
|
26220
|
+
children: t("onboarding:success.action")
|
|
26221
|
+
}))
|
|
26222
|
+
}))]
|
|
26223
|
+
}));
|
|
26224
|
+
};
|
|
26225
|
+
|
|
26167
26226
|
const BillingFields = ({
|
|
26168
26227
|
form
|
|
26169
26228
|
}) => {
|
|
@@ -26605,40 +26664,9 @@ const Onboarding$1 = ({
|
|
|
26605
26664
|
var _a;
|
|
26606
26665
|
// Step 5: Onboarding Complete
|
|
26607
26666
|
if (hasCompletedOnboarding) {
|
|
26608
|
-
return
|
|
26609
|
-
|
|
26610
|
-
|
|
26611
|
-
display: "flex",
|
|
26612
|
-
flexDirection: "column"
|
|
26613
|
-
},
|
|
26614
|
-
"data-testid": "onboarding-complete"
|
|
26615
|
-
}, {
|
|
26616
|
-
children: [jsx(Typography, Object.assign({
|
|
26617
|
-
variant: "heading4"
|
|
26618
|
-
}, {
|
|
26619
|
-
children: t("onboarding:success.title")
|
|
26620
|
-
})), jsx(Spacer, {
|
|
26621
|
-
multiplier: 2
|
|
26622
|
-
}), jsx(Typography, Object.assign({
|
|
26623
|
-
variant: "subtitle1"
|
|
26624
|
-
}, {
|
|
26625
|
-
children: t("onboarding:success.subtitle")
|
|
26626
|
-
})), jsx(Spacer, {
|
|
26627
|
-
multiplier: 48
|
|
26628
|
-
}), jsx(ButtonGroup, Object.assign({
|
|
26629
|
-
justify: "center"
|
|
26630
|
-
}, {
|
|
26631
|
-
children: jsx(Button, Object.assign({
|
|
26632
|
-
bold: false,
|
|
26633
|
-
color: ButtonColor.PRIMARY,
|
|
26634
|
-
onClick: onCompleteOnboarding,
|
|
26635
|
-
type: "button",
|
|
26636
|
-
variant: ButtonVariant.FILLED
|
|
26637
|
-
}, {
|
|
26638
|
-
children: t("onboarding:success.action")
|
|
26639
|
-
}))
|
|
26640
|
-
}))]
|
|
26641
|
-
}));
|
|
26667
|
+
return jsx(CompletionPage, {
|
|
26668
|
+
onContinue: onCompleteOnboarding
|
|
26669
|
+
});
|
|
26642
26670
|
}
|
|
26643
26671
|
// Step 1: Landing Page
|
|
26644
26672
|
if (!email) return jsx(LandingPage, {
|
|
@@ -27511,7 +27539,7 @@ const RateForm = ({
|
|
|
27511
27539
|
}));
|
|
27512
27540
|
};
|
|
27513
27541
|
|
|
27514
|
-
const
|
|
27542
|
+
const SuspendSalesOrder = ({
|
|
27515
27543
|
children,
|
|
27516
27544
|
errors,
|
|
27517
27545
|
isLoading,
|
|
@@ -27556,17 +27584,20 @@ const getTableWrapperStyles = theme => /*#__PURE__*/css$1({
|
|
|
27556
27584
|
}
|
|
27557
27585
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getTableWrapperStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIml0ZW1zLWJyZWFrZG93bi5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS2dEIiwiZmlsZSI6Iml0ZW1zLWJyZWFrZG93bi5zdHlsZXMudHMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjc3MgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcclxuZXhwb3J0IGNvbnN0IGdldE51bWVyaWNDZWxsU3R5bGUgPSAodGhlbWUpID0+IGNzcyh7XHJcbiAgICB0ZXh0QWxpZ246IFwicmlnaHRcIixcclxuICAgIHdpZHRoOiBcIjEwMHB4XCIsXHJcbn0pO1xyXG5leHBvcnQgY29uc3QgZ2V0VGFibGVXcmFwcGVyU3R5bGVzID0gKHRoZW1lKSA9PiBjc3Moe1xyXG4gICAgXCImJiA+IGRpdlwiOiB7XHJcbiAgICAgICAgYm94U2hhZG93OiBcIm5vbmVcIixcclxuICAgIH0sXHJcbiAgICBcIiYmID4gZGl2IHRhYmxlIHRoZWFkIHRoXCI6IHtcclxuICAgICAgICBmb250U3R5bGU6IFwiaXRhbGljXCIsXHJcbiAgICAgICAgZm9udFdlaWdodDogdGhlbWUudHlwb2dyYXBoeS5mb250V2VpZ2h0Lm5vcm1hbCxcclxuICAgIH0sXHJcbn0pO1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1pdGVtcy1icmVha2Rvd24uc3R5bGVzLmpzLm1hcCJdfQ== */");
|
|
27558
27586
|
|
|
27559
|
-
const ItemsBreakdownTableHeader = (
|
|
27587
|
+
const ItemsBreakdownTableHeader = ({
|
|
27588
|
+
hasValue,
|
|
27589
|
+
hasTotal
|
|
27590
|
+
}) => jsx(TableHeader, {
|
|
27560
27591
|
children: jsxs(TableBaseRow, {
|
|
27561
27592
|
children: [jsx(TableHeaderCell, {}), jsx(TableHeaderCell, Object.assign({
|
|
27562
27593
|
css: getNumericCellStyle
|
|
27563
27594
|
}, {
|
|
27564
27595
|
children: "Qty"
|
|
27565
|
-
})), jsx(TableHeaderCell, Object.assign({
|
|
27596
|
+
})), hasValue && jsx(TableHeaderCell, Object.assign({
|
|
27566
27597
|
css: getNumericCellStyle
|
|
27567
27598
|
}, {
|
|
27568
27599
|
children: "$/ea"
|
|
27569
|
-
})), jsx(TableHeaderCell, Object.assign({
|
|
27600
|
+
})), hasTotal && jsx(TableHeaderCell, Object.assign({
|
|
27570
27601
|
css: getNumericCellStyle
|
|
27571
27602
|
}, {
|
|
27572
27603
|
children: "$ Total"
|
|
@@ -27576,11 +27607,16 @@ const ItemsBreakdownTableHeader = () => jsx(TableHeader, {
|
|
|
27576
27607
|
const ItemsBreakdown = ({
|
|
27577
27608
|
items
|
|
27578
27609
|
}) => {
|
|
27610
|
+
const hasValue = items.some(item => item.value !== undefined);
|
|
27611
|
+
const hasTotal = items.some(item => item.totalValue !== undefined);
|
|
27579
27612
|
return jsx("div", Object.assign({
|
|
27580
27613
|
css: getTableWrapperStyles
|
|
27581
27614
|
}, {
|
|
27582
27615
|
children: jsx(Table, Object.assign({
|
|
27583
|
-
header: jsx(ItemsBreakdownTableHeader, {
|
|
27616
|
+
header: jsx(ItemsBreakdownTableHeader, {
|
|
27617
|
+
hasTotal: hasTotal,
|
|
27618
|
+
hasValue: hasValue
|
|
27619
|
+
})
|
|
27584
27620
|
}, {
|
|
27585
27621
|
children: jsx(TableBody, {
|
|
27586
27622
|
children: items.map(({
|
|
@@ -27600,11 +27636,11 @@ const ItemsBreakdown = ({
|
|
|
27600
27636
|
css: getNumericCellStyle
|
|
27601
27637
|
}, {
|
|
27602
27638
|
children: quantity
|
|
27603
|
-
})), jsx(TableBodyCell, Object.assign({
|
|
27639
|
+
})), hasValue && jsx(TableBodyCell, Object.assign({
|
|
27604
27640
|
css: getNumericCellStyle
|
|
27605
27641
|
}, {
|
|
27606
|
-
children: formatMoney(value)
|
|
27607
|
-
})), jsx(TableBodyCell, Object.assign({
|
|
27642
|
+
children: value && formatMoney(value)
|
|
27643
|
+
})), hasTotal && jsx(TableBodyCell, Object.assign({
|
|
27608
27644
|
css: getNumericCellStyle
|
|
27609
27645
|
}, {
|
|
27610
27646
|
children: totalValue && formatMoney(totalValue)
|
|
@@ -28017,7 +28053,7 @@ const ShipmentForm = ({
|
|
|
28017
28053
|
warehouseId,
|
|
28018
28054
|
warehouses
|
|
28019
28055
|
}) => {
|
|
28020
|
-
var _a, _b, _c, _d;
|
|
28056
|
+
var _a, _b, _c, _d, _e;
|
|
28021
28057
|
features = Object.assign({
|
|
28022
28058
|
browseRates: true,
|
|
28023
28059
|
includeShipsuranceInsurance: true,
|
|
@@ -28190,8 +28226,8 @@ const ShipmentForm = ({
|
|
|
28190
28226
|
}
|
|
28191
28227
|
}, [form]);
|
|
28192
28228
|
const handleSubmit = form.handleSubmit(values => __awaiter(void 0, void 0, void 0, function* () {
|
|
28193
|
-
const
|
|
28194
|
-
payload = __rest(
|
|
28229
|
+
const _f = values,
|
|
28230
|
+
payload = __rest(_f, ["__mode"]);
|
|
28195
28231
|
const updatedShipment = yield onSubmit(Object.assign(Object.assign({}, shipment || {}), payload));
|
|
28196
28232
|
// Defer shipment hydration to the task queue so that the submission promise resolves first, otherwise the
|
|
28197
28233
|
// submission count will increment after hydration resets the form, keeping it in revalidate mode
|
|
@@ -28305,6 +28341,10 @@ const ShipmentForm = ({
|
|
|
28305
28341
|
} = form.getValues();
|
|
28306
28342
|
form.setValue("__mode", (features === null || features === void 0 ? void 0 : features.selectService) ? __mode : "browse_rates");
|
|
28307
28343
|
}, [form, features === null || features === void 0 ? void 0 : features.selectService]);
|
|
28344
|
+
const salesOrderItems = useMemo(() => getSalesOrderItemsFromSalesOrderOrShipment({
|
|
28345
|
+
salesOrder,
|
|
28346
|
+
shipment
|
|
28347
|
+
}), [salesOrder, shipment]);
|
|
28308
28348
|
if (isLoading) return jsx(Loader, {
|
|
28309
28349
|
message: t("loading.shipment")
|
|
28310
28350
|
});
|
|
@@ -28367,7 +28407,7 @@ const ShipmentForm = ({
|
|
|
28367
28407
|
}), jsx(Spacer, {
|
|
28368
28408
|
displayOn: isEditShipFormToOpen ? "tablet" : undefined,
|
|
28369
28409
|
multiplier: 2
|
|
28370
|
-
}), editShipToForm, jsxs(FieldLabel, Object.assign({
|
|
28410
|
+
}), editShipToForm, (salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.orderDate) && jsxs(FieldLabel, Object.assign({
|
|
28371
28411
|
label: t("purchase-label:fields.orderDate")
|
|
28372
28412
|
}, {
|
|
28373
28413
|
children: [jsx(Typography, Object.assign({
|
|
@@ -28375,7 +28415,7 @@ const ShipmentForm = ({
|
|
|
28375
28415
|
}, {
|
|
28376
28416
|
children: formatDate(salesOrder.orderDate)
|
|
28377
28417
|
})), jsx(Spacer, {})]
|
|
28378
|
-
})), jsxs(FieldLabel, Object.assign({
|
|
28418
|
+
})), ((_b = salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.paymentDetails) === null || _b === void 0 ? void 0 : _b.grandTotal) && jsxs(FieldLabel, Object.assign({
|
|
28379
28419
|
label: t("purchase-label:fields.orderValue")
|
|
28380
28420
|
}, {
|
|
28381
28421
|
children: [jsx(Typography, Object.assign({
|
|
@@ -28391,7 +28431,7 @@ const ShipmentForm = ({
|
|
|
28391
28431
|
}, {
|
|
28392
28432
|
children: requestedServices.length > 1 ? t("purchase-label:multipleShippingServices") : requestedServices[0].toString()
|
|
28393
28433
|
})), jsx(Spacer, {})]
|
|
28394
|
-
})), salesOrder.paymentDetails.estimatedShipping.amount > 0 && jsxs(FieldLabel, Object.assign({
|
|
28434
|
+
})), salesOrder && salesOrder.paymentDetails.estimatedShipping.amount > 0 && jsxs(FieldLabel, Object.assign({
|
|
28395
28435
|
label: t("purchase-label:fields.estimatedShipping")
|
|
28396
28436
|
}, {
|
|
28397
28437
|
children: [jsx(Typography, Object.assign({
|
|
@@ -28399,7 +28439,7 @@ const ShipmentForm = ({
|
|
|
28399
28439
|
}, {
|
|
28400
28440
|
children: formatMoney(salesOrder.paymentDetails.estimatedShipping)
|
|
28401
28441
|
})), jsx(Spacer, {})]
|
|
28402
|
-
})),
|
|
28442
|
+
})), salesOrderItems.length > 0 && jsx(FieldLabel, Object.assign({
|
|
28403
28443
|
label: t("purchase-label:fields.items")
|
|
28404
28444
|
}, {
|
|
28405
28445
|
children: jsxs("div", Object.assign({
|
|
@@ -28411,7 +28451,7 @@ const ShipmentForm = ({
|
|
|
28411
28451
|
children: [jsx(Typography, Object.assign({
|
|
28412
28452
|
variant: "body2"
|
|
28413
28453
|
}, {
|
|
28414
|
-
children:
|
|
28454
|
+
children: salesOrderItems.length.toString()
|
|
28415
28455
|
})), jsxs(Link, Object.assign({
|
|
28416
28456
|
css: theme => ({
|
|
28417
28457
|
alignItems: "center",
|
|
@@ -28430,15 +28470,7 @@ const ShipmentForm = ({
|
|
|
28430
28470
|
}))]
|
|
28431
28471
|
}))
|
|
28432
28472
|
})), showItems && jsx(ItemsBreakdown, {
|
|
28433
|
-
items:
|
|
28434
|
-
detail: `SKU ${item.lineItemDetails.sku}`,
|
|
28435
|
-
name: item.lineItemDetails.name,
|
|
28436
|
-
quantity: item.quantity,
|
|
28437
|
-
subDetail: item.requestedShippingOptions.shippingService,
|
|
28438
|
-
subDetailValue: item.priceSummary.estimatedShipping,
|
|
28439
|
-
totalValue: item.priceSummary.total,
|
|
28440
|
-
value: item.priceSummary.unitPrice
|
|
28441
|
-
}))
|
|
28473
|
+
items: salesOrderItems
|
|
28442
28474
|
})]
|
|
28443
28475
|
})), jsx("div", {
|
|
28444
28476
|
ref: customsItemErrorScrollToRef
|
|
@@ -28462,7 +28494,7 @@ const ShipmentForm = ({
|
|
|
28462
28494
|
}), jsx(CustomsItemsDisplay, {
|
|
28463
28495
|
onUpdate: handleUpdateCustomsItems,
|
|
28464
28496
|
shipment: shipment
|
|
28465
|
-
}), ((
|
|
28497
|
+
}), ((_c = customsErrors === null || customsErrors === void 0 ? void 0 : customsErrors.customsItems) === null || _c === void 0 ? void 0 : _c.type) === "too_small" && jsxs(Fragment, {
|
|
28466
28498
|
children: [jsx(Spacer, {}), jsx(InlineNotification, {
|
|
28467
28499
|
title: t("purchase-label:errorMessages.customsItemsRequired"),
|
|
28468
28500
|
type: NotificationType.ERROR
|
|
@@ -28622,7 +28654,7 @@ const ShipmentForm = ({
|
|
|
28622
28654
|
label: "purchase-label:fields.addOns"
|
|
28623
28655
|
}, {
|
|
28624
28656
|
children: [jsx(Switch, Object.assign({
|
|
28625
|
-
defaultChecked: ((
|
|
28657
|
+
defaultChecked: ((_d = shipment === null || shipment === void 0 ? void 0 : shipment.confirmation) !== null && _d !== void 0 ? _d : "none") !== "none",
|
|
28626
28658
|
label: t("purchase-label:fields.confirmation"),
|
|
28627
28659
|
name: "confirmationEnabled",
|
|
28628
28660
|
shouldUnmount: true,
|
|
@@ -28638,7 +28670,7 @@ const ShipmentForm = ({
|
|
|
28638
28670
|
shouldUnregister: true
|
|
28639
28671
|
})
|
|
28640
28672
|
})), jsxs(Switch, Object.assign({
|
|
28641
|
-
defaultChecked: ((
|
|
28673
|
+
defaultChecked: ((_e = shipment === null || shipment === void 0 ? void 0 : shipment.insuranceProvider) !== null && _e !== void 0 ? _e : "none") !== "none",
|
|
28642
28674
|
label: t("purchase-label:fields.insurance"),
|
|
28643
28675
|
name: "insuranceEnabled",
|
|
28644
28676
|
onChange: () => setInsuranceEnabled(true),
|
|
@@ -28927,6 +28959,30 @@ const Shipment$1 = ({
|
|
|
28927
28959
|
});
|
|
28928
28960
|
};
|
|
28929
28961
|
|
|
28962
|
+
const SuspendShipment = ({
|
|
28963
|
+
children,
|
|
28964
|
+
errors,
|
|
28965
|
+
isLoading,
|
|
28966
|
+
shipment
|
|
28967
|
+
}) => {
|
|
28968
|
+
const {
|
|
28969
|
+
t
|
|
28970
|
+
} = useTranslation(["common", "purchase-label"]);
|
|
28971
|
+
if (isLoading) return jsx(Loader, {
|
|
28972
|
+
message: t("loading.shipment")
|
|
28973
|
+
});
|
|
28974
|
+
if (errors) throw new Error(errors.map(e => e.message).join(", "));
|
|
28975
|
+
if (!shipment) throw new Error("errorMessages.unableToLoad.shipment");
|
|
28976
|
+
return jsx("div", Object.assign({
|
|
28977
|
+
css: {
|
|
28978
|
+
height: "100%",
|
|
28979
|
+
width: "100%"
|
|
28980
|
+
}
|
|
28981
|
+
}, {
|
|
28982
|
+
children: children
|
|
28983
|
+
}));
|
|
28984
|
+
};
|
|
28985
|
+
|
|
28930
28986
|
const VoidLabel$1 = ({
|
|
28931
28987
|
onComplete,
|
|
28932
28988
|
onSubmit,
|
|
@@ -29063,10 +29119,11 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
29063
29119
|
ManageWarehouses: ManageWarehouses$1,
|
|
29064
29120
|
Onboarding: Onboarding$1,
|
|
29065
29121
|
RateForm: RateForm,
|
|
29066
|
-
|
|
29122
|
+
SuspendSalesOrder: SuspendSalesOrder,
|
|
29067
29123
|
ShipmentForm: ShipmentForm,
|
|
29068
29124
|
schedulePickupForCarrier: schedulePickupForCarrier,
|
|
29069
29125
|
Shipment: Shipment$1,
|
|
29126
|
+
SuspendShipment: SuspendShipment,
|
|
29070
29127
|
WarehouseForm: WarehouseForm,
|
|
29071
29128
|
VoidLabel: VoidLabel$1,
|
|
29072
29129
|
WalletForm: WalletForm,
|
|
@@ -31227,7 +31284,7 @@ const useAddress = ({
|
|
|
31227
31284
|
}), [handleValidateAddress, onChange, shipment, updateShipment]);
|
|
31228
31285
|
useEffect(() => {
|
|
31229
31286
|
if (!addressPreference && (shipment === null || shipment === void 0 ? void 0 : shipment.shipTo)) {
|
|
31230
|
-
handleValidateAddress(shipment === null || shipment === void 0 ? void 0 : shipment.shipTo, salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.shipTo);
|
|
31287
|
+
void handleValidateAddress(shipment === null || shipment === void 0 ? void 0 : shipment.shipTo, salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.shipTo);
|
|
31231
31288
|
}
|
|
31232
31289
|
}, [addressPreference, handleValidateAddress, salesOrder === null || salesOrder === void 0 ? void 0 : salesOrder.shipTo, shipment === null || shipment === void 0 ? void 0 : shipment.shipTo]);
|
|
31233
31290
|
const charsetWarning = useMemo(() => Object.keys((addressPreference === null || addressPreference === void 0 ? void 0 : addressPreference.selection) || {}).reduce((warning, key) => {
|
|
@@ -31707,6 +31764,67 @@ const ConfigureShipment = _a => {
|
|
|
31707
31764
|
});
|
|
31708
31765
|
};
|
|
31709
31766
|
|
|
31767
|
+
const Onboarding = ({
|
|
31768
|
+
onCompleteOnboarding
|
|
31769
|
+
}) => {
|
|
31770
|
+
const {
|
|
31771
|
+
t
|
|
31772
|
+
} = useTranslation(["common", "register-wallet"]);
|
|
31773
|
+
const {
|
|
31774
|
+
data: warehouses,
|
|
31775
|
+
refetch: refetchWarehouses
|
|
31776
|
+
} = useListWarehouses();
|
|
31777
|
+
const {
|
|
31778
|
+
mutateAsync: createWarehouse
|
|
31779
|
+
} = useCreateWarehouse();
|
|
31780
|
+
const {
|
|
31781
|
+
data: carriers,
|
|
31782
|
+
refetch: refetchCarriers
|
|
31783
|
+
} = useListCarriers();
|
|
31784
|
+
const {
|
|
31785
|
+
error: registerStampsCarrierErrors,
|
|
31786
|
+
mutateAsync: registerStampsCarrier
|
|
31787
|
+
} = useConnectCarrier();
|
|
31788
|
+
const {
|
|
31789
|
+
error: registerUpsCarrierErrors,
|
|
31790
|
+
mutateAsync: registerUpsCarrier,
|
|
31791
|
+
isLoading: isLoadingUps
|
|
31792
|
+
} = useConnectCarrier();
|
|
31793
|
+
const {
|
|
31794
|
+
error: registerDhlCarrierErrors,
|
|
31795
|
+
mutateAsync: registerDhlCarrier,
|
|
31796
|
+
isLoading: isLoadingDhl
|
|
31797
|
+
} = useConnectCarrier();
|
|
31798
|
+
const onWarehouseCreated = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
31799
|
+
yield refetchWarehouses();
|
|
31800
|
+
}), [refetchWarehouses]);
|
|
31801
|
+
const onCarrierCreated = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
31802
|
+
yield refetchCarriers();
|
|
31803
|
+
}), [refetchCarriers]);
|
|
31804
|
+
if (!carriers) return jsx(Loader, {
|
|
31805
|
+
message: t("loading.carriers")
|
|
31806
|
+
});
|
|
31807
|
+
if (!warehouses) return jsx(Loader, {
|
|
31808
|
+
message: t("loading.warehouses")
|
|
31809
|
+
});
|
|
31810
|
+
return jsx(Onboarding$1, {
|
|
31811
|
+
carriers: carriers,
|
|
31812
|
+
createWarehouse: createWarehouse,
|
|
31813
|
+
isLoadingDhl: isLoadingDhl,
|
|
31814
|
+
isLoadingUps: isLoadingUps,
|
|
31815
|
+
onCarrierCreated: onCarrierCreated,
|
|
31816
|
+
onCompleteOnboarding: onCompleteOnboarding,
|
|
31817
|
+
onWarehouseCreated: onWarehouseCreated,
|
|
31818
|
+
registerDhlCarrier: registerDhlCarrier,
|
|
31819
|
+
registerDhlCarrierErrors: registerDhlCarrierErrors,
|
|
31820
|
+
registerStampsCarrier: registerStampsCarrier,
|
|
31821
|
+
registerStampsCarrierErrors: registerStampsCarrierErrors,
|
|
31822
|
+
registerUpsCarrier: registerUpsCarrier,
|
|
31823
|
+
registerUpsCarrierErrors: registerUpsCarrierErrors,
|
|
31824
|
+
warehouses: warehouses
|
|
31825
|
+
});
|
|
31826
|
+
};
|
|
31827
|
+
|
|
31710
31828
|
const usePendingShipment = ({
|
|
31711
31829
|
onLoad,
|
|
31712
31830
|
salesOrder,
|
|
@@ -31778,7 +31896,8 @@ const useConfigureShipment = ({
|
|
|
31778
31896
|
onLoad,
|
|
31779
31897
|
onShipmentUpdated,
|
|
31780
31898
|
salesOrder,
|
|
31781
|
-
warehouseId
|
|
31899
|
+
warehouseId,
|
|
31900
|
+
printLabelLayout
|
|
31782
31901
|
}) => {
|
|
31783
31902
|
var _a, _b;
|
|
31784
31903
|
const {
|
|
@@ -31795,12 +31914,12 @@ const useConfigureShipment = ({
|
|
|
31795
31914
|
yield reloadPendingShipment();
|
|
31796
31915
|
yield onShipmentUpdated === null || onShipmentUpdated === void 0 ? void 0 : onShipmentUpdated(shipment);
|
|
31797
31916
|
}), [onShipmentUpdated, reloadPendingShipment]);
|
|
31798
|
-
const
|
|
31917
|
+
const labelLayoutSetting = (_b = (_a = useGetAccountSettings().data) === null || _a === void 0 ? void 0 : _a.defaultLabelLayout) !== null && _b !== void 0 ? _b : "4x6";
|
|
31799
31918
|
return {
|
|
31800
31919
|
errors: pendingShipmentErrors,
|
|
31801
31920
|
isLoading: isPendingShipmentLoading,
|
|
31802
31921
|
onShipmentUpdated: handleShipmentUpdated,
|
|
31803
|
-
printLabelLayout,
|
|
31922
|
+
printLabelLayout: printLabelLayout ? printLabelLayout : labelLayoutSetting,
|
|
31804
31923
|
shipment: pendingShipment,
|
|
31805
31924
|
warehouseId
|
|
31806
31925
|
};
|
|
@@ -31859,7 +31978,7 @@ const useImportSalesOrder = ({
|
|
|
31859
31978
|
};
|
|
31860
31979
|
};
|
|
31861
31980
|
|
|
31862
|
-
const
|
|
31981
|
+
const PurchaseLabelBySalesOrder = _a => {
|
|
31863
31982
|
var {
|
|
31864
31983
|
features,
|
|
31865
31984
|
externalOrderId,
|
|
@@ -31889,7 +32008,7 @@ const SalesOrder = _a => {
|
|
|
31889
32008
|
salesOrder,
|
|
31890
32009
|
warehouseId
|
|
31891
32010
|
});
|
|
31892
|
-
return jsx(
|
|
32011
|
+
return jsx(SuspendSalesOrder, Object.assign({
|
|
31893
32012
|
salesOrder: salesOrder
|
|
31894
32013
|
}, salesOrderProps, {
|
|
31895
32014
|
children: salesOrder && jsx(ConfigureShipment, Object.assign({
|
|
@@ -31899,67 +32018,77 @@ const SalesOrder = _a => {
|
|
|
31899
32018
|
}));
|
|
31900
32019
|
};
|
|
31901
32020
|
|
|
31902
|
-
const
|
|
31903
|
-
|
|
31904
|
-
const Onboarding = ({
|
|
31905
|
-
onCompleteOnboarding
|
|
32021
|
+
const useLoadShipment = ({
|
|
32022
|
+
shipmentId
|
|
31906
32023
|
}) => {
|
|
31907
32024
|
const {
|
|
31908
|
-
|
|
31909
|
-
|
|
31910
|
-
|
|
31911
|
-
|
|
31912
|
-
|
|
31913
|
-
|
|
31914
|
-
|
|
31915
|
-
|
|
31916
|
-
|
|
31917
|
-
|
|
31918
|
-
|
|
31919
|
-
|
|
31920
|
-
|
|
31921
|
-
|
|
31922
|
-
|
|
31923
|
-
|
|
31924
|
-
|
|
31925
|
-
|
|
31926
|
-
|
|
31927
|
-
|
|
31928
|
-
|
|
31929
|
-
|
|
31930
|
-
const {
|
|
31931
|
-
|
|
31932
|
-
|
|
31933
|
-
|
|
31934
|
-
|
|
31935
|
-
|
|
31936
|
-
|
|
31937
|
-
|
|
31938
|
-
|
|
31939
|
-
|
|
31940
|
-
|
|
31941
|
-
|
|
31942
|
-
|
|
31943
|
-
|
|
31944
|
-
|
|
31945
|
-
|
|
31946
|
-
|
|
31947
|
-
|
|
31948
|
-
|
|
31949
|
-
|
|
31950
|
-
|
|
31951
|
-
|
|
31952
|
-
|
|
31953
|
-
|
|
31954
|
-
|
|
31955
|
-
|
|
31956
|
-
|
|
31957
|
-
|
|
31958
|
-
|
|
31959
|
-
|
|
31960
|
-
|
|
31961
|
-
|
|
31962
|
-
|
|
32025
|
+
data: shipment,
|
|
32026
|
+
error: loadShipmentErrors,
|
|
32027
|
+
refetch: refetchShipment,
|
|
32028
|
+
isLoading
|
|
32029
|
+
} = useGetShipment(shipmentId);
|
|
32030
|
+
const errors = [...(loadShipmentErrors !== null && loadShipmentErrors !== void 0 ? loadShipmentErrors : [])];
|
|
32031
|
+
return {
|
|
32032
|
+
errors: errors.length > 0 ? errors : undefined,
|
|
32033
|
+
isLoading: isLoading,
|
|
32034
|
+
refetchShipment,
|
|
32035
|
+
shipment
|
|
32036
|
+
};
|
|
32037
|
+
};
|
|
32038
|
+
|
|
32039
|
+
const PurchaseLabelByShipment = _a => {
|
|
32040
|
+
var {
|
|
32041
|
+
shipmentId,
|
|
32042
|
+
onLoad,
|
|
32043
|
+
onShipmentUpdated,
|
|
32044
|
+
features
|
|
32045
|
+
} = _a,
|
|
32046
|
+
props = __rest(_a, ["shipmentId", "onLoad", "onShipmentUpdated", "features"]);
|
|
32047
|
+
const _b = useLoadShipment({
|
|
32048
|
+
shipmentId
|
|
32049
|
+
}),
|
|
32050
|
+
{
|
|
32051
|
+
shipment
|
|
32052
|
+
} = _b,
|
|
32053
|
+
shipmentProps = __rest(_b, ["shipment"]);
|
|
32054
|
+
return jsx(SuspendShipment, Object.assign({
|
|
32055
|
+
shipment: shipment
|
|
32056
|
+
}, shipmentProps, {
|
|
32057
|
+
children: shipment && jsx(ConfigureShipment, Object.assign({
|
|
32058
|
+
errors: shipmentProps.errors,
|
|
32059
|
+
features: features,
|
|
32060
|
+
isLoading: shipmentProps.isLoading,
|
|
32061
|
+
onAddressValidation: props.onAddressValidation,
|
|
32062
|
+
onApplyPreset: props.onApplyPreset,
|
|
32063
|
+
onBeforeLabelCreate: props.onBeforeLabelCreate,
|
|
32064
|
+
onChangeAddress: props.onChangeAddress,
|
|
32065
|
+
onChangeShipmentFormMode: props.onChangeShipmentFormMode,
|
|
32066
|
+
onLabelCreateFailure: props.onLabelCreateFailure,
|
|
32067
|
+
onLabelCreateSuccess: props.onLabelCreateSuccess,
|
|
32068
|
+
onRateSaved: props.onRateSaved,
|
|
32069
|
+
onRatesCalculated: props.onRatesCalculated,
|
|
32070
|
+
onShipmentUpdated: onShipmentUpdated,
|
|
32071
|
+
onToggleAddressPreferenceDisclosure: props.onToggleAddressPreferenceDisclosure,
|
|
32072
|
+
printLabelLayout: props.printLabelLayout,
|
|
32073
|
+
shipment: shipment,
|
|
32074
|
+
shippingPresets: props.shippingPresets,
|
|
32075
|
+
warehouseId: props.warehouseId
|
|
32076
|
+
}, props))
|
|
32077
|
+
}));
|
|
32078
|
+
};
|
|
32079
|
+
|
|
32080
|
+
const PurchaseLabel = _a => {
|
|
32081
|
+
var {
|
|
32082
|
+
shipmentId
|
|
32083
|
+
} = _a,
|
|
32084
|
+
props = __rest(_a, ["shipmentId"]);
|
|
32085
|
+
if (shipmentId) {
|
|
32086
|
+
return jsx(PurchaseLabelByShipment, Object.assign({
|
|
32087
|
+
shipmentId: shipmentId
|
|
32088
|
+
}, props));
|
|
32089
|
+
} else {
|
|
32090
|
+
return jsx(PurchaseLabelBySalesOrder, Object.assign({}, props));
|
|
32091
|
+
}
|
|
31963
32092
|
};
|
|
31964
32093
|
|
|
31965
32094
|
const Shipment = ({
|
|
@@ -32030,6 +32159,8 @@ const VoidLabel = ({
|
|
|
32030
32159
|
});
|
|
32031
32160
|
};
|
|
32032
32161
|
|
|
32162
|
+
const Element$3 = registerElement("purchase-label", PurchaseLabel);
|
|
32163
|
+
|
|
32033
32164
|
const Element$2 = registerElement("onboarding", Onboarding);
|
|
32034
32165
|
|
|
32035
32166
|
const Element$1 = registerElement("view-shipment", Shipment);
|
|
@@ -32749,4 +32880,4 @@ const renderWithAllProviders = component => {
|
|
|
32749
32880
|
});
|
|
32750
32881
|
};
|
|
32751
32882
|
|
|
32752
|
-
export { Accordion, AddFundsForm, AutoFundingForm, ButtonGroup, CarrierBalance, Country, Cube, ElementsContext, ElementsProvider, ErrorBoundary, ErrorFallback, fields as Field, FieldLabel, FormPortal, FundAndPurchase, GigerProvider, InlineLabel, ItemsBreakdown, LinkAction, Element$5 as ListCarriers, Loader, ManageFunding, Element$4 as ManageWarehouses, Element$2 as Onboarding, PageLayoutProvider, Portal, Element$3 as PurchaseLabel, RootPortalProvider, Spacer, Spread, StoryNotes, index$1 as Templates, UsState, UsaCity, Element$1 as ViewShipment, Element as VoidLabel, addressFactory, addressPreferenceFactory, addressValidationFactory, autoFundingSchema, calculateTotal, capitalizeFirstLetter, carrierFactory, carrierOptionFactory, convertDimensions, convertWeight, countries, countryCodes, createCodedErrors, createDictionary, createStyles, currencySymbol, customsItemFactory, daysAfter, downloadFactory, errorMap, euCountryCodes, extendZod, formLogger, formatCreditCardNumber, formatDate, formatFractionalWeight, formatMoney, fractionalWeightFactory, getAddFundsSchema, getCustomsFromSalesOrder, getExpirationYears, getIsCustomsRequiredForSalesOrder, getIsCustomsRequiredForShipment, getIsInternationalShipment, getPendingShipment, getRateRequiresAcknowledgement, getRequestedServices, getTotalRateAmount, isDomesticAddress, isFlatRatePackageCode, isMilitaryAddress, isNowOrInTheFuture, isPoBox, isPoBoxAddress, isString, isUnitedStatesTerritory, isUspsCarrier, labelFactory, linkedResourceFactory, moneyFactory, moneySchema, mostRecent, nextDayCutoff, omitTime, orderSourceFactory, orderSourceRefreshInfoFactory, packageFactory, phoneSchema, phoneSchemaUnvalidated, postalCodeRegex$3 as postalCodeRegex, randomDeliveryConfirmation, randomFulfillmentStatus, randomInsuranceProvider, randomOrderSourceCode, randomPaymentStatus, randomShipengineId, randomShipengineSlug, randomWeightUnit, registerElement, renderWithAllProviders, renderWithProviders, salesOrderFactory, salesOrderItemFactory, salesOrderShipmentFactory, serviceFactory, shipmentFactory, shipmentItemFactory, shipmentPackageFactory, sortByCreationDate, tristateValue, usCities, usStateCodes, usStates, useCarrierMetadata, useConfirmationOptions, useCountryCodeOptions, useCustomsContentsOptions, useCustomsNonDeliveryOptions, useElements, useExpirationMonthOptions, useInsuranceProviderOptions, useNestedForm, usePackageOptions, usePageLayout, useRateOptions, useRootPortal, useRunOnceOnTrue, useServiceCodeOptions, useShippingPresetsOptions, useStateCodeOptions, useToggle, useWarehouseOptions, validationResolver, warehouseFactory, weightFactory, weightWithUnitFactory };
|
|
32883
|
+
export { Accordion, AddFundsForm, AutoFundingForm, ButtonGroup, CarrierBalance, Country, Cube, ElementsContext, ElementsProvider, ErrorBoundary, ErrorFallback, fields as Field, FieldLabel, FormPortal, FundAndPurchase, GigerProvider, InlineLabel, ItemsBreakdown, LinkAction, Element$5 as ListCarriers, Loader, ManageFunding, Element$4 as ManageWarehouses, Element$2 as Onboarding, PageLayoutProvider, Portal, Element$3 as PurchaseLabel, RootPortalProvider, Spacer, Spread, StoryNotes, index$1 as Templates, UsState, UsaCity, Element$1 as ViewShipment, Element as VoidLabel, addressFactory, addressPreferenceFactory, addressValidationFactory, autoFundingSchema, calculateTotal, capitalizeFirstLetter, carrierFactory, carrierOptionFactory, convertDimensions, convertWeight, countries, countryCodes, createCodedErrors, createDictionary, createStyles, currencySymbol, customsItemFactory, daysAfter, downloadFactory, errorMap, euCountryCodes, extendZod, formLogger, formatCreditCardNumber, formatDate, formatFractionalWeight, formatMoney, fractionalWeightFactory, getAddFundsSchema, getCustomsFromSalesOrder, getExpirationYears, getIsCustomsRequiredForSalesOrder, getIsCustomsRequiredForShipment, getIsInternationalShipment, getPendingShipment, getRateRequiresAcknowledgement, getRequestedServices, getSalesOrderItemsFromSalesOrderOrShipment, getTotalRateAmount, isDomesticAddress, isFlatRatePackageCode, isMilitaryAddress, isNowOrInTheFuture, isPoBox, isPoBoxAddress, isString, isUnitedStatesTerritory, isUspsCarrier, labelFactory, linkedResourceFactory, moneyFactory, moneySchema, mostRecent, nextDayCutoff, omitTime, orderSourceFactory, orderSourceRefreshInfoFactory, packageFactory, phoneSchema, phoneSchemaUnvalidated, postalCodeRegex$3 as postalCodeRegex, randomDeliveryConfirmation, randomFulfillmentStatus, randomInsuranceProvider, randomOrderSourceCode, randomPaymentStatus, randomShipengineId, randomShipengineSlug, randomWeightUnit, registerElement, renderWithAllProviders, renderWithProviders, salesOrderFactory, salesOrderItemFactory, salesOrderShipmentFactory, serviceFactory, shipmentFactory, shipmentItemFactory, shipmentPackageFactory, sortByCreationDate, tristateValue, usCities, usStateCodes, usStates, useCarrierMetadata, useConfirmationOptions, useCountryCodeOptions, useCustomsContentsOptions, useCustomsNonDeliveryOptions, useElements, useExpirationMonthOptions, useInsuranceProviderOptions, useNestedForm, usePackageOptions, usePageLayout, useRateOptions, useRootPortal, useRunOnceOnTrue, useServiceCodeOptions, useShippingPresetsOptions, useStateCodeOptions, useToggle, useWarehouseOptions, validationResolver, warehouseFactory, weightFactory, weightWithUnitFactory };
|