@shipengine/elements 0.20.2 → 0.21.1
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/index.cjs +1066 -1054
- package/index.js +936 -924
- package/package.json +3 -3
- package/src/components/add-funds-form/add-funds-schema.d.ts +7 -7
- package/src/components/address-preference-context/address-preference-context.d.ts +42 -0
- package/src/components/address-preference-context/index.d.ts +1 -0
- package/src/components/auto-funding-form/auto-funding-schema.d.ts +10 -10
- package/src/components/field/fields.d.ts +2 -1
- package/src/components/field/money-input/hooks/use-utils.d.ts +1 -1
- package/src/components/field/money-input/money-input.d.ts +1 -1
- package/src/components/field/rate-card/cost-breakdown/cost-breakdown.d.ts +1 -1
- package/src/components/field/select-auto-complete/index.d.ts +1 -0
- package/src/components/field/select-auto-complete/select-auto-complete.d.ts +7 -0
- package/src/components/history/history-card/history-card.d.ts +5 -0
- package/src/components/history/history-card/history-card.styles.d.ts +1 -0
- package/src/components/history/history-card/index.d.ts +1 -0
- package/src/components/history/index.d.ts +1 -4
- package/src/components/index.d.ts +1 -1
- package/src/components/inline-label/inline-label.d.ts +5 -1
- package/src/components/inline-label/inline-label.styles.d.ts +1 -0
- package/src/components/items-breakdown/items-breakdown.d.ts +1 -1
- package/src/components/label/index.d.ts +1 -0
- package/src/components/label/label.d.ts +10 -0
- package/src/components/label/label.styles.d.ts +2 -0
- package/src/components/label-layout/label-layout-purchase.d.ts +1 -1
- package/src/components/label-layout/label-layout-settings.d.ts +1 -1
- package/src/components/section/index.d.ts +1 -0
- package/src/components/section/section.d.ts +10 -0
- package/src/components/section/section.styles.d.ts +1 -0
- package/src/components/templates/add-carrier-form/add-carrier-form.d.ts +1 -1
- package/src/components/templates/address-display/address-display.d.ts +1 -1
- package/src/components/templates/address-form/address-form.d.ts +1 -1
- package/src/components/templates/address-preference-display/address-preference-display.d.ts +1 -1
- package/src/components/templates/address-preference-select/address-preference-select.d.ts +24 -0
- package/src/components/templates/address-preference-select/index.d.ts +1 -0
- package/src/components/templates/carrier-recovery-form/carrier-recovery-form.d.ts +1 -1
- package/src/components/templates/carrier-terms-form/carrier-terms-form.d.ts +1 -1
- package/src/components/templates/customs-item-form/customs-item-form-schema.d.ts +20 -20
- package/src/components/templates/customs-item-form/customs-item-form.d.ts +1 -1
- package/src/components/templates/customs-items-display/customs-items-display.d.ts +1 -1
- package/src/components/templates/edit-billing-form/edit-billing-form.styles.d.ts +1 -1
- package/src/components/templates/index.d.ts +2 -3
- package/src/components/templates/label/label.d.ts +1 -1
- package/src/components/templates/list-carriers/list-carriers.d.ts +1 -1
- package/src/components/templates/list-carriers-row/list-carriers-row.d.ts +1 -1
- package/src/components/templates/manage-wallet/manage-wallet.styles.d.ts +1 -1
- package/src/components/templates/manage-warehouses/manage-warehouses.d.ts +2 -6
- package/src/components/templates/onboarding/onboarding.d.ts +14 -8
- package/src/components/templates/onboarding/onboarding.styles.d.ts +1 -1
- package/src/components/templates/rate-form/rate-form.d.ts +1 -1
- package/src/components/templates/shipment/shipment.d.ts +1 -1
- package/src/components/templates/shipment-form/shipment-form.d.ts +1 -1
- package/src/components/templates/shipment-form/shipment-schema.d.ts +26 -2
- package/src/components/templates/suspend-sales-order/suspend-sales-order.d.ts +1 -1
- package/src/components/templates/suspend-shipment/suspend-shipment.d.ts +1 -1
- package/src/components/templates/void-label/void-label.d.ts +1 -1
- package/src/components/templates/wallet-form/edit-wallet-address-form.d.ts +1 -1
- package/src/components/templates/wallet-form/wallet-form.d.ts +7 -6
- package/src/components/templates/wallet-form/wallet-form.styles.d.ts +1 -1
- package/src/components/templates/wallet-form/wallet-schema.d.ts +1 -1
- package/src/components/templates/warehouse-display/warehouse-display.d.ts +1 -1
- package/src/components/templates/warehouse-form/warehouse-form.d.ts +1 -1
- package/src/elements/components/configure-shipment/configure-shipment.d.ts +1 -1
- package/src/elements/components/configure-shipment/hooks/use-address.d.ts +1 -1
- package/src/elements/components/configure-shipment/hooks/use-customs.d.ts +1 -1
- package/src/elements/components/configure-shipment/hooks/use-presets.d.ts +1 -1
- package/src/elements/components/configure-shipment/hooks/use-rates-form.d.ts +1 -1
- package/src/elements/components/configure-shipment/hooks/use-request-rates.d.ts +1 -1
- package/src/elements/components/configure-shipment/hooks/use-shipment-form.d.ts +1 -1
- package/src/elements/components/index.d.ts +0 -1
- package/src/elements/components/list-carriers/hooks/use-list-connected-carriers.d.ts +2 -2
- package/src/elements/components/purchase-label/hooks/use-configure-shipment.d.ts +1 -1
- package/src/elements/components/purchase-label/hooks/use-import-sales-order.d.ts +2 -2
- package/src/elements/components/purchase-label/hooks/use-load-shipment.d.ts +3 -3
- package/src/elements/components/purchase-label/hooks/use-pending-shipment.d.ts +1 -1
- package/src/elements/components/shipment/shipment.d.ts +1 -1
- package/src/elements/components/void-label/void-label.d.ts +1 -1
- package/src/elements/index.d.ts +0 -1
- package/src/factories/shipengine/address.d.ts +8 -1
- package/src/factories/shipengine/carrier.d.ts +1 -1
- package/src/factories/shipengine/label.d.ts +1 -1
- package/src/factories/shipengine/money.d.ts +1 -1
- package/src/factories/shipengine/order-source.d.ts +1 -1
- package/src/factories/shipengine/package.d.ts +1 -1
- package/src/factories/shipengine/resource.d.ts +1 -1
- package/src/factories/shipengine/sales-order.d.ts +1 -1
- package/src/factories/shipengine/service.d.ts +1 -1
- package/src/factories/shipengine/shipment.d.ts +1 -1
- package/src/factories/shipengine/wallet-history.d.ts +1 -1
- package/src/factories/shipengine/warehouse.d.ts +1 -3
- package/src/factories/shipengine/weight.d.ts +1 -1
- package/src/features/wallet-history/wallet-history.styles.d.ts +1 -0
- package/src/hooks/index.d.ts +1 -1
- package/src/hooks/options/use-confirmation-options.d.ts +1 -1
- package/src/hooks/options/use-customs-contents-options.d.ts +1 -1
- package/src/hooks/options/use-customs-non-delivery-options.d.ts +1 -1
- package/src/hooks/options/use-insurance-provider-options.d.ts +1 -1
- package/src/hooks/options/use-package-options.d.ts +1 -1
- package/src/hooks/options/use-rate-options.d.ts +1 -1
- package/src/hooks/options/use-service-code-options.d.ts +1 -1
- package/src/hooks/options/use-warehouse-options.d.ts +1 -1
- package/src/hooks/use-address-validation.d.ts +12 -0
- package/src/hooks/use-carrier-metadata.d.ts +1 -1
- package/src/hooks/use-elements.d.ts +2 -2
- package/src/hooks/use-scrub-errors.d.ts +1 -1
- package/src/locales/en/index.d.ts +13 -2
- package/src/mocks/carriers/handlers.d.ts +1 -1
- package/src/mocks/warehouses/handlers.d.ts +1 -1
- package/src/schemas/shipengine/money.d.ts +1 -1
- package/src/types/carrier-metadata.d.ts +1 -1
- package/src/types/shipping-preset/shipping-preset.d.ts +1 -1
- package/src/utilities/money.d.ts +1 -1
- package/src/utilities/rates.d.ts +2 -1
- package/src/utilities/shipengine/address.d.ts +1 -1
- package/src/utilities/shipengine/dimensions.d.ts +1 -1
- package/src/utilities/shipengine/sales-order.d.ts +1 -1
- package/src/utilities/shipengine/shipment.d.ts +1 -1
- package/src/utilities/shipengine/weight.d.ts +1 -1
- package/src/components/accordion/accordion.d.ts +0 -13
- package/src/components/accordion/accordion.styles.d.ts +0 -7
- package/src/components/accordion/index.d.ts +0 -1
- package/src/components/history/history-body/history-body.d.ts +0 -5
- package/src/components/history/history-body/history-body.styles.d.ts +0 -1
- package/src/components/history/history-body/index.d.ts +0 -1
- package/src/components/history/history-list/history-list.d.ts +0 -12
- package/src/components/history/history-list/index.d.ts +0 -1
- package/src/components/history/history-row/history-row.d.ts +0 -6
- package/src/components/history/history-row/index.d.ts +0 -1
- package/src/components/history/history.d.ts +0 -10
- package/src/components/templates/wallet-history/wallet-history.d.ts +0 -6
- package/src/components/templates/warehouse-preference-select/index.d.ts +0 -1
- package/src/components/templates/warehouse-preference-select/warehouse-preference-select.d.ts +0 -24
- package/src/components/templates/warehouse-preference-wizard/index.d.ts +0 -1
- package/src/components/templates/warehouse-preference-wizard/warehouse-preference-wizard.d.ts +0 -23
- package/src/elements/wallet-history.d.ts +0 -1
- package/src/hooks/use-warehouse-validation.d.ts +0 -14
- /package/src/{components/templates/wallet-history → features}/index.d.ts +0 -0
- /package/src/{elements/components → features}/wallet-history/index.d.ts +0 -0
- /package/src/{elements/components → features}/wallet-history/wallet-history.d.ts +0 -0
package/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from '@emotion/react/jsx-runtime';
|
|
2
2
|
import { useController, get as get$1, set as set$2, useWatch, useFormState, useForm } from 'react-hook-form';
|
|
3
3
|
import { useTranslation, Trans, initReactI18next, I18nextProvider } from 'react-i18next';
|
|
4
|
-
import { Typography, FormField, FieldMessageType,
|
|
4
|
+
import { Typography, FormField, FieldMessageType, Checkbox, Input, Icon, Divider, Link, SelectAutocomplete, Select as Select$1, OptionGroup, Option, Button, Switch as Switch$1, Textarea, ButtonVariant, InlineNotification, NotificationType, ButtonColor, Grid, GridChild, Tag, TagColor, Skeleton, SkeletonAnimation, SkeletonVariant, SkeletonBackgroundColor, RadioGroup, Radio, IconSize, Stepper, Step, Spinner, SpinnerSize, ChipList, Chip, ButtonSize, Table, TableBody, TableBaseRow, TableBodyCell, TableHeader, TableHeaderCell, Popover, DropdownOptionList, BottomSheet, DatePicker as DatePicker$1, GigerConfigProvider, EmotionReset, FontsLoader } from '@packlink/giger';
|
|
5
5
|
import axios from 'axios';
|
|
6
|
-
import { logger,
|
|
6
|
+
import { logger, ShipEngine, useValidateAddresses, useAddFunds, useGetCarrierById, useUpdateAutoFunding, useGetAutoFundingConfiguration, useListCarriers, useConnectCarrier, useListWarehouses, useUpdateWarehouse, useCreateWarehouse, useDeleteWarehouse, useUpdateSalesOrderShipment, useParseAddress, useListCustomPackageTypes, useCalculateRates, useCreateLabel, useListSalesOrderShipments, useCreateSalesOrderShipment, useGetAccountSettings, useListSalesOrders, useGetSalesOrder, useListOrderSources, useRefreshOrderSource, useGetShipment, useGetSalesOrderShipment, useListLabels, useGetLabel, useVoidLabel } from '@shipengine/react-api';
|
|
7
7
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
import * as React from 'react';
|
|
@@ -13,7 +13,7 @@ import { camelize } from 'humps';
|
|
|
13
13
|
import ReactDatePicker from 'react-datepicker';
|
|
14
14
|
import { IconNames, Theme } from '@packlink/giger-theme';
|
|
15
15
|
import { css } from '@emotion/css';
|
|
16
|
-
import { SE, Currency } from '@shipengine/api';
|
|
16
|
+
import { SE, Currency } from '@shipengine/js-api';
|
|
17
17
|
import _$2, { isEqual } from 'lodash';
|
|
18
18
|
import { createPortal } from 'react-dom';
|
|
19
19
|
import { isValidPhoneNumber } from 'libphonenumber-js/min';
|
|
@@ -2569,6 +2569,9 @@ const getRateRequiresAcknowledgement = serviceCode => {
|
|
|
2569
2569
|
}
|
|
2570
2570
|
};
|
|
2571
2571
|
const getTotalRateAmount = (rateCosts = {}) => calculateTotal(...Object.values(rateCosts));
|
|
2572
|
+
const overrideCarrierCodes$1 = (carrier, overrides) => {
|
|
2573
|
+
return overrides[carrier] || carrier;
|
|
2574
|
+
};
|
|
2572
2575
|
|
|
2573
2576
|
// Declaring these flags to allow shorthand object syntax, i.e. { flagName } instead of { flagName: true }
|
|
2574
2577
|
const hasEuCustomsRules = true,
|
|
@@ -3475,6 +3478,29 @@ const createFieldController = (options = {}) => function FieldController(_a) {
|
|
|
3475
3478
|
}));
|
|
3476
3479
|
};
|
|
3477
3480
|
|
|
3481
|
+
const CheckboxInputController = createFieldController();
|
|
3482
|
+
const CheckboxInput = _a => {
|
|
3483
|
+
var {
|
|
3484
|
+
checkboxLabel
|
|
3485
|
+
} = _a,
|
|
3486
|
+
fieldProps = __rest(_a, ["checkboxLabel"]);
|
|
3487
|
+
return jsx(CheckboxInputController, Object.assign({
|
|
3488
|
+
displayLabel: false
|
|
3489
|
+
}, fieldProps, {
|
|
3490
|
+
children: _a => {
|
|
3491
|
+
var {
|
|
3492
|
+
value
|
|
3493
|
+
} = _a,
|
|
3494
|
+
checkboxInputProps = __rest(_a, ["value"]);
|
|
3495
|
+
return jsx(Checkbox, Object.assign({
|
|
3496
|
+
checked: value
|
|
3497
|
+
}, checkboxInputProps, {
|
|
3498
|
+
label: checkboxLabel
|
|
3499
|
+
}));
|
|
3500
|
+
}
|
|
3501
|
+
}));
|
|
3502
|
+
};
|
|
3503
|
+
|
|
3478
3504
|
const getOverrideStyles = theme => ({
|
|
3479
3505
|
"&& input, && span[role='button']": {
|
|
3480
3506
|
cursor: "auto",
|
|
@@ -3517,30 +3543,7 @@ const CreditCardInput = fieldProps => jsx(CreditCardInputController, Object.assi
|
|
|
3517
3543
|
}
|
|
3518
3544
|
}));
|
|
3519
3545
|
|
|
3520
|
-
|
|
3521
|
-
const CheckboxInput = _a => {
|
|
3522
|
-
var {
|
|
3523
|
-
checkboxLabel
|
|
3524
|
-
} = _a,
|
|
3525
|
-
fieldProps = __rest(_a, ["checkboxLabel"]);
|
|
3526
|
-
return jsx(CheckboxInputController, Object.assign({
|
|
3527
|
-
displayLabel: false
|
|
3528
|
-
}, fieldProps, {
|
|
3529
|
-
children: _a => {
|
|
3530
|
-
var {
|
|
3531
|
-
value
|
|
3532
|
-
} = _a,
|
|
3533
|
-
checkboxInputProps = __rest(_a, ["value"]);
|
|
3534
|
-
return jsx(Checkbox, Object.assign({
|
|
3535
|
-
checked: value
|
|
3536
|
-
}, checkboxInputProps, {
|
|
3537
|
-
label: checkboxLabel
|
|
3538
|
-
}));
|
|
3539
|
-
}
|
|
3540
|
-
}));
|
|
3541
|
-
};
|
|
3542
|
-
|
|
3543
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$7() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
3546
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$6() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
3544
3547
|
const getPopperStyles = theme => /*#__PURE__*/css("padding-top:10px;z-index:10;.react-datepicker{background-color:", theme.palette.white, ";border-radius:0.25rem;border:1px solid ", theme.palette.gray.megaLight, ";box-shadow:", theme.getElevation("above").boxShadow, ";display:inline-block;font-size:1rem;position:relative;&__month-container{float:left;}&__header{border-top-left-radius:", theme.borderRadius.M, ";border-top-right-radius:", theme.borderRadius.M, ";padding:", theme.spacing(2), "px 0 ", theme.spacing(1), "px 0;position:relative;text-align:center;}&__current-month{color:", theme.palette.black, ";font-size:1rem;font-weight:600;line-height:1.25rem;margin-bottom:", theme.spacing(2), "px;}&__navigation{align-items:center;background:none;border:none;cursor:pointer;display:flex;height:32px;justify-content:center;overflow:hidden;position:absolute;text-align:center;text-indent:-999em;top:0.688rem;width:32px;z-index:1;&--previous{left:1rem;}&--next{right:1rem;}&:hover *::before{border-color:", theme.palette.gray.light, ";}&-icon{position:relative;top:-0.125rem;width:0;&::before{border-color:", theme.palette.gray.main, ";border-style:solid;border-width:2.5px 2.5px 0 0;content:\"\";display:block;height:6px;position:absolute;top:6px;width:6px;}&--previous{right:0rem;&::before{right:-0.438rem;transform:rotate(225deg);}}&--next{left:0rem;&::before{left:-0.438rem;transform:rotate(45deg);}}}} &__month{padding:0 1rem 1rem 1rem;text-align:center;}&__week{white-space:nowrap;} &__day{color:", theme.palette.black, ";cursor:pointer;display:inline-block;font-size:1rem;line-height:2rem;margin:0.25rem;text-align:center;width:2rem;&:hover[aria-selected=\"false\"]:not(&--disabled){background-color:", theme.palette.gray.ultraLight, ";border-radius:0.25rem;}&-name{color:", theme.palette.gray.main, ";display:inline-block;font-size:0.75rem;font-weight:600;line-height:1rem;margin:0 0.25rem;text-align:center;width:2rem;}&-names{white-space:nowrap;}&--disabled{color:", theme.palette.gray.main, ";cursor:default;&:hover{background-color:transparent;}}&--today[aria-selected=\"false\"]{position:relative;&::before{border-bottom:0.125rem solid ", theme.palette.primary.main, ";content:\"\";display:block;inset:0;position:absolute;}}&--highlighted{background-color:#3dcc4a;border-radius:0.25rem;color:#fff;&:hover{background-color:", theme.palette.secondary.main, ";}&-custom-1{color:magenta;}&-custom-2{color:green;}}&--selected,&--in-selecting-range,&--in-range{background-color:", theme.palette.primary.main, ";border-radius:0.25rem;color:#fff;&[aria-selected=\"true\"]{cursor:default;}&[aria-selected=\"false\"]:hover{background-color:", theme.palette.primary.dark, ";}}&--in-selecting-range:not(&--in-range){background-color:rgba(33, 107, 165, 0.5);}&--keyboard-selected{border-radius:0.25rem;outline:0.125rem solid ", theme.palette.primary.main, ";} &--selected:not(&--keyboard-selected):focus-visible{outline:0.125rem solid ", theme.palette.primary.main, ";}} &__input-container{display:inline-block;position:relative;width:100%;}}" + (process.env.NODE_ENV === "production" ? "" : ";label:getPopperStyles;"), process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRhdGUtcGlja2VyLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDOEMiLCJmaWxlIjoiZGF0ZS1waWNrZXIuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL2Nzc1wiO1xyXG5leHBvcnQgY29uc3QgZ2V0UG9wcGVyU3R5bGVzID0gKHRoZW1lKSA9PiBjc3MgYFxuICBwYWRkaW5nLXRvcDogMTBweDtcbiAgei1pbmRleDogMTA7XG4gIC5yZWFjdC1kYXRlcGlja2VyIHtcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke3RoZW1lLnBhbGV0dGUud2hpdGV9O1xuICAgIGJvcmRlci1yYWRpdXM6IDAuMjVyZW07XG4gICAgYm9yZGVyOiAxcHggc29saWQgJHt0aGVtZS5wYWxldHRlLmdyYXkubWVnYUxpZ2h0fTtcbiAgICBib3gtc2hhZG93OiAke3RoZW1lLmdldEVsZXZhdGlvbihcImFib3ZlXCIpLmJveFNoYWRvd307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0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICB0ZXh0LWluZGVudDogLTk5OWVtO1xuICAgICAgdG9wOiAwLjY4OHJlbTtcbiAgICAgIHdpZHRoOiAzMnB4O1xuICAgICAgei1pbmRleDogMTtcbiAgICAgICYtLXByZXZpb3VzIHtcbiAgICAgICAgbGVmdDogMXJlbTtcbiAgICAgIH1cbiAgICAgICYtLW5leHQge1xuICAgICAgICByaWdodDogMXJlbTtcbiAgICAgIH1cbiAgICAgICY6aG92ZXIgKjo6YmVmb3JlIHtcbiAgICAgICAgYm9yZGVyLWNvbG9yOiAke3RoZW1lLnBhbGV0dGUuZ3JheS5saWdodH07XG4gICAgICB9XG4gICAgICAmLWljb24ge1xuICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgICAgIHRvcDogLTAuMTI1cmVtO1xuICAgICAgICB3aWR0aDogMDtcbiAgICAgICAgJjo6YmVmb3JlIHtcbiAgICAgICAgICBib3JkZXItY29sb3I6ICR7dGhlbWUucGFsZXR0ZS5ncmF5Lm1haW59O1xuICAgICAgICAgIGJvcmRlci1zdHlsZTogc29saWQ7XG4gICAgICAgICAgYm9yZGVyLXdpZHRoOiAyLjVweCAyLjVweCAwIDA7XG4gICAgICAgICAgY29udGVudDogXCJcIjtcbiAgICAgICAgICBkaXNwbGF5OiBibG9jaztcbiAgICAgICAgICBoZWlnaHQ6IDZweDtcbiAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgICAgdG9wOiA2cHg7XG4gICAgICAgICAgd2lkdGg6IDZweDtcbiAgICAgICAgfVxuICAgICAgICAmLS1wcmV2aW91cyB7XG4gICAgICAgICAgcmlnaHQ6IDByZW07XG4gICAgICAgICAgJjo6YmVmb3JlIHtcbiAgICAgICAgICAgIHJpZ2h0OiAtMC40MzhyZW07XG4gICAgICAgICAgICB0cmFuc2Zvcm06IHJvdGF0ZSgyMjVkZWcpO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuIC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5tYWlufTtcbiAgICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgICAgICBmb250LXNpemU6IDAuNzVyZW07XG4gICAgICAgIGZvbnQtd2VpZ2h0OiA2MDA7XG4gICAgICAgIGxpbmUtaGVpZ2h0OiAxcmVtO1xuICAgICAgICBtYXJnaW46IDAgMC4yNXJlbTtcbiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgICB3aWR0aDogMnJlbTtcbiAgICAgIH1cbiAgICAgICYtbmFtZXMge1xuICAgICAgICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuICAgICAgfVxuICAgICAgJi0tZGlzYWJsZWQge1xuICAgICAgICBjb2xvcjogJHt0aGVtZS5wYWxldHRlLmdyYXkubWFpbn07XG4gICAgICAgIGN1cnNvcjogZGVmYXVsdDtcbiAgICAgICAgJjpob3ZlciB7XG4gICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICAgICYtLXRvZGF5W2FyaWEtc2VsZWN0ZWQ9XCJmYWxzZVwiXSB7XG4gICAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICAgICAgJjo6YmVmb3JlIHtcbiAgICAgICAgICBib3JkZXItYm90dG9tOiAwLjEyNXJlbSBzb2xpZCAke3RoZW1lLnBhbGV0dGUucHJpbWFyeS5tYWlufTtcbiAgICAgICAgICBjb250ZW50OiBcIlwiO1xuICAgICAgICAgIGRpc3BsYXk6IGJsb2NrO1xuICAgICAgICAgIGluc2V0OiAwO1xuICAgICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgICAgJi0taGlnaGxpZ2h0ZWQge1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjM2RjYzRhO1xuICAgICAgICBib3JkZXItcmFkaXVzOiAwLjI1cmVtO1xuICAgICAgICBjb2xvcjogI2ZmZjtcbiAgICAgICAgJjpob3ZlciB7XG4gICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHt0aGVtZS5wYWxldHRlLnNlY29uZGFyeS5tYWlufTtcbiAgICAgICAgfVxuICAgICAgICAmLWN1c3RvbS0xIHtcbiAgICAgICAgICBjb2xvcjogbWFnZW50YTtcbiAgICAgICAgfVxuICAgICAgICAmLWN1c3RvbS0yIHtcbiAgICAgICAgICBjb2xvcjogZ3JlZW47XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICAgICYtLXNlbGVjdGVkLFxuICAgICAgJi0taW4tc2VsZWN0aW5nLXJhbmdlLFxuICAgICAgJi0taW4tcmFuZ2Uge1xuICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAke3RoZW1lLnBhbGV0dGUucHJpbWFyeS5tYWlufTtcbiAgICAgICAgYm9yZGVyLXJhZGl1czogMC4yNXJlbTtcbiAgICAgICAgY29sb3I6ICNmZmY7XG4gICAgICAgICZbYXJpYS1zZWxlY3RlZD1cInRydWVcIl0ge1xuICAgICAgICAgIGN1cnNvcjogZGVmYXVsdDtcbiAgICAgICAgfVxuICAgICAgICAmW2FyaWEtc2VsZWN0ZWQ9XCJmYWxzZVwiXTpob3ZlciB7XG4gICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHt0aGVtZS5wYWxldHRlLnByaW1hcnkuZGFya307XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICAgICYtLWluLXNlbGVjdGluZy1yYW5nZTpub3QoJi0taW4tcmFuZ2UpIHtcbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogcmdiYSgzMywgMTA3LCAxNjUsIDAuNSk7XG4gICAgICB9XG4gICAgICAmLS1rZXlib2FyZC1zZWxlY3RlZCB7XG4gICAgICAgIGJvcmRlci1yYWRpdXM6IDAuMjVyZW07XG4gICAgICAgIG91dGxpbmU6IDAuMTI1cmVtIHNvbGlkICR7dGhlbWUucGFsZXR0ZS5wcmltYXJ5Lm1haW59O1xuICAgICAgfVxuICAgICAgJHtcclxuLyogUkRQIGRvZXNuJ3QgYXR0YWNoIHRoZSAtLWtleWJvYXJkLXNlbGVjdGVkIGNsYXNzIGlmIHlvdSBhcnJvdy1uYXZpZ2F0ZSB0byB0aGUgY3VycmVudGx5XHJcbiAgICAgc2VsZWN0ZWQgZGF0ZSwgd2hpY2ggd291bGQgcmVzdWx0IGluIGEgZGVmYXVsdCBicm93c2VyIGZvY3VzLXJpbmcgKi8gXCJcIn1cbiAgICAgICYtLXNlbGVjdGVkOm5vdCgmLS1rZXlib2FyZC1zZWxlY3RlZCk6Zm9jdXMtdmlzaWJsZSB7XG4gICAgICAgIG91dGxpbmU6IDAuMTI1cmVtIHNvbGlkICR7dGhlbWUucGFsZXR0ZS5wcmltYXJ5Lm1haW59O1xuICAgICAgfVxuICAgIH1cbiAgICAkeyAvKiAjZW5kcmVnaW9uICovXCJcIn1cbiAgICAmX19pbnB1dC1jb250YWluZXIge1xuICAgICAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICAgICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgICAgd2lkdGg6IDEwMCU7XG4gICAgfVxuICB9XG5gO1xyXG5leHBvcnQgY29uc3QgZ2V0V3JhcHBlclN0eWxlcyA9ICh0aGVtZSkgPT4gY3NzIGBcbiAgYm9yZGVyOiAwO1xuICBkaXNwbGF5OiBpbmxpbmUtYmxvY2s7XG4gIHBhZGRpbmc6IDA7XG4gIHdpZHRoOiAxMDAlO1xuICB6LWluZGV4OiAyMDA7XG5gO1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1kYXRlLXBpY2tlci5zdHlsZXMuanMubWFwIl19 */");
|
|
3545
3548
|
const getWrapperStyles = theme => /*#__PURE__*/css(process.env.NODE_ENV === "production" ? {
|
|
3546
3549
|
name: "lqik26",
|
|
@@ -3549,7 +3552,7 @@ const getWrapperStyles = theme => /*#__PURE__*/css(process.env.NODE_ENV === "pro
|
|
|
3549
3552
|
name: "19gz7a6-getWrapperStyles",
|
|
3550
3553
|
styles: "border:0;display:inline-block;padding:0;width:100%;z-index:200;label:getWrapperStyles;",
|
|
3551
3554
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRhdGUtcGlja2VyLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF5TCtDIiwiZmlsZSI6ImRhdGUtcGlja2VyLnN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGNzcyB9IGZyb20gXCJAZW1vdGlvbi9jc3NcIjtcclxuZXhwb3J0IGNvbnN0IGdldFBvcHBlclN0eWxlcyA9ICh0aGVtZSkgPT4gY3NzIGBcbiAgcGFkZGluZy10b3A6IDEwcHg7XG4gIHotaW5kZXg6IDEwO1xuICAucmVhY3QtZGF0ZXBpY2tlciB7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogJHt0aGVtZS5wYWxldHRlLndoaXRlfTtcbiAgICBib3JkZXItcmFkaXVzOiAwLjI1cmVtO1xuICAgIGJvcmRlcjogMXB4IHNvbGlkICR7dGhlbWUucGFsZXR0ZS5ncmF5Lm1lZ2FMaWdodH07XG4gICAgYm94LXNoYWRvdzogJHt0aGVtZS5nZXRFbGV2YXRpb24oXCJhYm92ZVwiKS5ib3hTaGFkb3d9O1xuICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgICBmb250LXNpemU6IDFyZW07XG4gICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgICZfX21vbnRoLWNvbnRhaW5lciB7XG4gICAgICBmbG9hdDogbGVmdDtcbiAgICB9XG4gICAgJl9faGVhZGVyIHtcbiAgICAgIGJvcmRlci10b3AtbGVmdC1yYWRpdXM6ICR7dGhlbWUuYm9yZGVyUmFkaXVzLk19O1xuICAgICAgYm9yZGVyLXRvcC1yaWdodC1yYWRpdXM6ICR7dGhlbWUuYm9yZGVyUmFkaXVzLk19O1xuICAgICAgcGFkZGluZzogJHt0aGVtZS5zcGFjaW5nKDIpfXB4IDAgJHt0aGVtZS5zcGFjaW5nKDEpfXB4IDA7XG4gICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgfVxuICAgICZfX2N1cnJlbnQtbW9udGgge1xuICAgICAgY29sb3I6ICR7dGhlbWUucGFsZXR0ZS5ibGFja307XG4gICAgICBmb250LXNpemU6IDFyZW07XG4gICAgICBmb250LXdlaWdodDogNjAwO1xuICAgICAgbGluZS1oZWlnaHQ6IDEuMjVyZW07XG4gICAgICBtYXJnaW4tYm90dG9tOiAke3RoZW1lLnNwYWNpbmcoMil9cHg7XG4gICAgfVxuICAgICZfX25hdmlnYXRpb24ge1xuICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgIGJhY2tncm91bmQ6IG5vbmU7XG4gICAgICBib3JkZXI6IG5vbmU7XG4gICAgICBjdXJzb3I6IHBvaW50ZXI7XG4gICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgaGVpZ2h0OiAzMnB4O1xuICAgICAganVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG4gICAgICBvdmVyZmxvdzogaGlkZGVuO1xuICAgICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgdGV4dC1pbmRlbnQ6IC05OTllbTtcbiAgICAgIHRvcDogMC42ODhyZW07XG4gICAgICB3aWR0aDogMzJweDtcbiAgICAgIHotaW5kZXg6IDE7XG4gICAgICAmLS1wcmV2aW91cyB7XG4gICAgICAgIGxlZnQ6IDFyZW07XG4gICAgICB9XG4gICAgICAmLS1uZXh0IHtcbiAgICAgICAgcmlnaHQ6IDFyZW07XG4gICAgICB9XG4gICAgICAmOmhvdmVyICo6OmJlZm9yZSB7XG4gICAgICAgIGJvcmRlci1jb2xvcjogJHt0aGVtZS5wYWxldHRlLmdyYXkubGlnaHR9O1xuICAgICAgfVxuICAgICAgJi1pY29uIHtcbiAgICAgICAgcG9zaXRpb246IHJlbGF0aXZlO1xuICAgICAgICB0b3A6IC0wLjEyNXJlbTtcbiAgICAgICAgd2lkdGg6IDA7XG4gICAgICAgICY6OmJlZm9yZSB7XG4gICAgICAgICAgYm9yZGVyLWNvbG9yOiAke3RoZW1lLnBhbGV0dGUuZ3JheS5tYWlufTtcbiAgICAgICAgICBib3JkZXItc3R5bGU6IHNvbGlkO1xuICAgICAgICAgIGJvcmRlci13aWR0aDogMi41cHggMi41cHggMCAwO1xuICAgICAgICAgIGNvbnRlbnQ6IFwiXCI7XG4gICAgICAgICAgZGlzcGxheTogYmxvY2s7XG4gICAgICAgICAgaGVpZ2h0OiA2cHg7XG4gICAgICAgICAgcG9zaXRpb246IGFic29sdXRlO1xuICAgICAgICAgIHRvcDogNnB4O1xuICAgICAgICAgIHdpZHRoOiA2cHg7XG4gICAgICAgIH1cbiAgICAgICAgJi0tcHJldmlvdXMge1xuICAgICAgICAgIHJpZ2h0OiAwcmVtO1xuICAgICAgICAgICY6OmJlZm9yZSB7XG4gICAgICAgICAgICByaWdodDogLTAuNDM4cmVtO1xuICAgICAgICAgICAgdHJhbnNmb3JtOiByb3RhdGUoMjI1ZGVnKTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgJi0tbmV4dCB7XG4gICAgICAgICAgbGVmdDogMHJlbTtcbiAgICAgICAgICAmOjpiZWZvcmUge1xuICAgICAgICAgICAgbGVmdDogLTAuNDM4cmVtO1xuICAgICAgICAgICAgdHJhbnNmb3JtOiByb3RhdGUoNDVkZWcpO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cbiAgICAkeyAvKiAjZW5kcmVnaW9uICovXCJcIn1cbiAgICAmX19tb250aCB7XG4gICAgICBwYWRkaW5nOiAwIDFyZW0gMXJlbSAxcmVtO1xuICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgIH1cbiAgICAmX193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R7dGhlbWUucGFsZXR0ZS5ncmF5Lm1haW59O1xuICAgICAgICBjdXJzb3I6IGRlZmF1bHQ7XG4gICAgICAgICY6aG92ZXIge1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICAgICAgICB9XG4gICAgICB9XG4gICAgICAmLS10b2RheVthcmlhLXNlbGVjdGVkPVwiZmFsc2VcIl0ge1xuICAgICAgICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gICAgICAgICY6OmJlZm9yZSB7XG4gICAgICAgICAgYm9yZGVyLWJvdHRvbTogMC4xMjVyZW0gc29saWQgJHt0aGVtZS5wYWxldHRlLnByaW1hcnkubWFpbn07XG4gICAgICAgICAgY29udGVudDogXCJcIjtcbiAgICAgICAgICBkaXNwbGF5OiBibG9jaztcbiAgICAgICAgICBpbnNldDogMDtcbiAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICAgICYtLWhpZ2hsaWdodGVkIHtcbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogIzNkY2M0YTtcbiAgICAgICAgYm9yZGVyLXJhZGl1czogMC4yNXJlbTtcbiAgICAgICAgY29sb3I6ICNmZmY7XG4gICAgICAgICY6aG92ZXIge1xuICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICR7dGhlbWUucGFsZXR0ZS5zZWNvbmRhcnkubWFpbn07XG4gICAgICAgIH1cbiAgICAgICAgJi1jdXN0b20tMSB7XG4gICAgICAgICAgY29sb3I6IG1hZ2VudGE7XG4gICAgICAgIH1cbiAgICAgICAgJi1jdXN0b20tMiB7XG4gICAgICAgICAgY29sb3I6IGdyZWVuO1xuICAgICAgICB9XG4gICAgICB9XG4gICAgICAmLS1zZWxlY3RlZCxcbiAgICAgICYtLWluLXNlbGVjdGluZy1yYW5nZSxcbiAgICAgICYtLWluLXJhbmdlIHtcbiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogJHt0aGVt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UucHJpbWFyeS5tYWlufTtcbiAgICAgIH1cbiAgICB9XG4gICAgJHsgLyogI2VuZHJlZ2lvbiAqL1wiXCJ9XG4gICAgJl9faW5wdXQtY29udGFpbmVyIHtcbiAgICAgIGRpc3BsYXk6IGlubGluZS1ibG9jaztcbiAgICAgIHBvc2l0aW9uOiByZWxhdGl2ZTtcbiAgICAgIHdpZHRoOiAxMDAlO1xuICAgIH1cbiAgfVxuYDtcclxuZXhwb3J0IGNvbnN0IGdldFdyYXBwZXJTdHlsZXMgPSAodGhlbWUpID0+IGNzcyBgXG4gIGJvcmRlcjogMDtcbiAgZGlzcGxheTogaW5saW5lLWJsb2NrO1xuICBwYWRkaW5nOiAwO1xuICB3aWR0aDogMTAwJTtcbiAgei1pbmRleDogMjAwO1xuYDtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9ZGF0ZS1waWNrZXIuc3R5bGVzLmpzLm1hcCJdfQ== */",
|
|
3552
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
3555
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$6
|
|
3553
3556
|
});
|
|
3554
3557
|
|
|
3555
3558
|
const DatePickerController = createFieldController();
|
|
@@ -4145,17 +4148,17 @@ const useUtils = () => {
|
|
|
4145
4148
|
};
|
|
4146
4149
|
};
|
|
4147
4150
|
|
|
4148
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
4149
|
-
var _ref$
|
|
4151
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$5() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
4152
|
+
var _ref$4 = process.env.NODE_ENV === "production" ? {
|
|
4150
4153
|
name: "1xe63ku",
|
|
4151
4154
|
styles: "line-height:1"
|
|
4152
4155
|
} : {
|
|
4153
4156
|
name: "j0w4uy-getLeftDecoratorStyles",
|
|
4154
4157
|
styles: "line-height:1;label:getLeftDecoratorStyles;",
|
|
4155
4158
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm1vbmV5LWlucHV0LXN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDNEMiLCJmaWxlIjoibW9uZXktaW5wdXQtc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XHJcbmV4cG9ydCBjb25zdCBnZXRMZWZ0RGVjb3JhdG9yU3R5bGVzID0gKCkgPT4gY3NzKHtcclxuICAgIGxpbmVIZWlnaHQ6IDEsXHJcbn0pO1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1tb25leS1pbnB1dC1zdHlsZXMuanMubWFwIl19 */",
|
|
4156
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
4159
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$5
|
|
4157
4160
|
};
|
|
4158
|
-
const getLeftDecoratorStyles = () => _ref$
|
|
4161
|
+
const getLeftDecoratorStyles = () => _ref$4;
|
|
4159
4162
|
|
|
4160
4163
|
const transform$3 = {
|
|
4161
4164
|
in: ({
|
|
@@ -4363,7 +4366,7 @@ if (NOT_GENERIC || INCORRECT_NAME) {
|
|
|
4363
4366
|
}, { unsafe: true });
|
|
4364
4367
|
}
|
|
4365
4368
|
|
|
4366
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
4369
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$4() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
4367
4370
|
const getRateCardFirstLineSize = theme => `${theme.spacing(3.25)}px`;
|
|
4368
4371
|
const getArticleStyles = theme => /*#__PURE__*/css$1({
|
|
4369
4372
|
border: `1px solid ${theme.palette.gray.light}`,
|
|
@@ -4386,13 +4389,13 @@ var _ref3$1 = process.env.NODE_ENV === "production" ? {
|
|
|
4386
4389
|
name: "16u4j7q-getArticleVoidedStyles",
|
|
4387
4390
|
styles: "opacity:0.6;text-decoration:line-through;label:getArticleVoidedStyles;",
|
|
4388
4391
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJhdGUtY2FyZC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0I0QyIsImZpbGUiOiJyYXRlLWNhcmQuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XHJcbmV4cG9ydCBjb25zdCBnZXRSYXRlQ2FyZEZpcnN0TGluZVNpemUgPSAodGhlbWUpID0+IGAke3RoZW1lLnNwYWNpbmcoMy4yNSl9cHhgO1xyXG5leHBvcnQgY29uc3QgZ2V0QXJ0aWNsZVN0eWxlcyA9ICh0aGVtZSkgPT4gY3NzKHtcclxuICAgIGJvcmRlcjogYDFweCBzb2xpZCAke3RoZW1lLnBhbGV0dGUuZ3JheS5saWdodH1gLFxyXG4gICAgYm9yZGVyUmFkaXVzOiB0aGVtZS5zcGFjaW5nKCksXHJcbn0pO1xyXG5leHBvcnQgY29uc3QgZ2V0QXJ0aWNsZU5vblNlbGVjdGVkU3R5bGVzID0gKHRoZW1lKSA9PiBjc3Moe1xyXG4gICAgXCI6aG92ZXJcIjoge1xyXG4gICAgICAgIGJvcmRlckNvbG9yOiB0aGVtZS5wYWxldHRlLnByaW1hcnkubWFpbixcclxuICAgIH0sXHJcbiAgICBjdXJzb3I6IFwicG9pbnRlclwiLFxyXG59KTtcclxuZXhwb3J0IGNvbnN0IGdldEFydGljbGVTZWxlY3RlZFN0eWxlcyA9ICh0aGVtZSkgPT4gY3NzKHtcclxuICAgIGJh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iAgICBkaXNwbGF5OiBcImZsZXhcIixcclxuICAgIHBhZGRpbmdUb3A6IHRoZW1lLnNwYWNpbmcoMS41KSxcclxufSk7XHJcbmV4cG9ydCBjb25zdCBnZXRDaGVja2JveFdyYXBwZXJTdHlsZXMgPSAoKSA9PiBjc3Moe1xyXG4gICAgb3ZlcmZsb3c6IFwiaGlkZGVuXCIsXHJcbiAgICBwb3NpdGlvbjogXCJyZWxhdGl2ZVwiLFxyXG59KTtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9cmF0ZS1jYXJkLnN0eWxlcy5qcy5tYXAiXX0= */",
|
|
4389
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
4392
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
|
|
4390
4393
|
};
|
|
4391
4394
|
const getArticleVoidedStyles = () => _ref3$1;
|
|
4392
4395
|
const getArticleRecommendedStyles = theme => /*#__PURE__*/css$1({
|
|
4393
4396
|
backgroundColor: theme.palette.secondary.ultraLight
|
|
4394
4397
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getArticleRecommendedStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJhdGUtY2FyZC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBb0JzRCIsImZpbGUiOiJyYXRlLWNhcmQuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XHJcbmV4cG9ydCBjb25zdCBnZXRSYXRlQ2FyZEZpcnN0TGluZVNpemUgPSAodGhlbWUpID0+IGAke3RoZW1lLnNwYWNpbmcoMy4yNSl9cHhgO1xyXG5leHBvcnQgY29uc3QgZ2V0QXJ0aWNsZVN0eWxlcyA9ICh0aGVtZSkgPT4gY3NzKHtcclxuICAgIGJvc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cImluaXRpYWxcIixcclxuICAgIHBhZGRpbmdMZWZ0OiB0aGVtZS5zcGFjaW5nKDIpLFxyXG59KTtcclxuZXhwb3J0IGNvbnN0IGdldEZvb3Rlckxpc3RJdGVtU3R5bGVzID0gKHRoZW1lKSA9PiBjc3Moe1xyXG4gICAgXCImOm5vdCg6bGFzdC1jaGlsZClcIjoge1xyXG4gICAgICAgIG1hcmdpbkJvdHRvbTogdGhlbWUuc3BhY2luZygpLFxyXG4gICAgfSxcclxufSk7XHJcbmV4cG9ydCBjb25zdCBnZXRBY2tub3dsZWRnbWVudFN0eWxlcyA9ICh0aGVtZSkgPT4gY3NzKHtcclxuICAgIGFsaWduSXRlbXM6IFwiY2VudGVyXCIsXHJcbiAgICBjb2xvcjogdGhlbWUucGFsZXR0ZS5ncmF5Lm1haW4sXHJcbiAgICBkaXNwbGF5OiBcImZsZXhcIixcclxuICAgIHBhZGRpbmdUb3A6IHRoZW1lLnNwYWNpbmcoMS41KSxcclxufSk7XHJcbmV4cG9ydCBjb25zdCBnZXRDaGVja2JveFdyYXBwZXJTdHlsZXMgPSAoKSA9PiBjc3Moe1xyXG4gICAgb3ZlcmZsb3c6IFwiaGlkZGVuXCIsXHJcbiAgICBwb3NpdGlvbjogXCJyZWxhdGl2ZVwiLFxyXG59KTtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9cmF0ZS1jYXJkLnN0eWxlcy5qcy5tYXAiXX0= */");
|
|
4395
|
-
const getSectionStyles
|
|
4398
|
+
const getSectionStyles = theme => /*#__PURE__*/css$1({
|
|
4396
4399
|
alignItems: "flex-start",
|
|
4397
4400
|
display: "flex",
|
|
4398
4401
|
flexDirection: "row",
|
|
@@ -4444,7 +4447,7 @@ var _ref2$1 = process.env.NODE_ENV === "production" ? {
|
|
|
4444
4447
|
name: "ueyggo-getFooterListStyles",
|
|
4445
4448
|
styles: "list-style:none;label:getFooterListStyles;",
|
|
4446
4449
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,e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wb3NpdGlvbjogXCJyZWxhdGl2ZVwiLFxyXG59KTtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9cmF0ZS1jYXJkLnN0eWxlcy5qcy5tYXAiXX0= */",
|
|
4447
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
4450
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
|
|
4448
4451
|
};
|
|
4449
4452
|
const getFooterListStyles = () => _ref2$1;
|
|
4450
4453
|
const getFooterListWithMultipleMessagesStyles = theme => /*#__PURE__*/css$1({
|
|
@@ -4462,28 +4465,28 @@ const getAcknowledgmentStyles = theme => /*#__PURE__*/css$1({
|
|
|
4462
4465
|
display: "flex",
|
|
4463
4466
|
paddingTop: theme.spacing(1.5)
|
|
4464
4467
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getAcknowledgmentStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJhdGUtY2FyZC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBZ0ZrRCIsImZpbGUiOiJyYXRlLWNhcmQuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XHJcbmV4cG9ydCBjb25zdCBnZXRSYXRlQ2FyZEZpcnN0TGluZVNpemUgPSAodGhlbWUpID0+IGAke3RoZW1lLnNwYWNpbmcoMy4yNSl9cHhgO1xyXG5leHBvcnQgY29uc3QgZ2V0QXJ0aWNsZVN0eWxlcyA9ICh0aGVtZSkgPT4gY3NzKHtcclxuICAgIGJvcmRlcjogYDFweCBzb2xpZCAke3RoZW1lLnBhbGV0dGUuZ3JheS5saWdodH1gLFxyXG4gICAgYm9yZGVyUmFkaXVzOiB0aGVtZS5zcGFjaW5nKCksXHJcbn0pO1xyXG5leHBvcnQg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RoZW1lKSA9PiBjc3Moe1xyXG4gICAgXCImOm5vdCg6bGFzdC1jaGlsZClcIjoge1xyXG4gICAgICAgIG1hcmdpbkJvdHRvbTogdGhlbWUuc3BhY2luZygpLFxyXG4gICAgfSxcclxufSk7XHJcbmV4cG9ydCBjb25zdCBnZXRBY2tub3dsZWRnbWVudFN0eWxlcyA9ICh0aGVtZSkgPT4gY3NzKHtcclxuICAgIGFsaWduSXRlbXM6IFwiY2VudGVyXCIsXHJcbiAgICBjb2xvcjogdGhlbWUucGFsZXR0ZS5ncmF5Lm1haW4sXHJcbiAgICBkaXNwbGF5OiBcImZsZXhcIixcclxuICAgIHBhZGRpbmdUb3A6IHRoZW1lLnNwYWNpbmcoMS41KSxcclxufSk7XHJcbmV4cG9ydCBjb25zdCBnZXRDaGVja2JveFdyYXBwZXJTdHlsZXMgPSAoKSA9PiBjc3Moe1xyXG4gICAgb3ZlcmZsb3c6IFwiaGlkZGVuXCIsXHJcbiAgICBwb3NpdGlvbjogXCJyZWxhdGl2ZVwiLFxyXG59KTtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9cmF0ZS1jYXJkLnN0eWxlcy5qcy5tYXAiXX0= */");
|
|
4465
|
-
var _ref$
|
|
4468
|
+
var _ref$3 = process.env.NODE_ENV === "production" ? {
|
|
4466
4469
|
name: "xiyqge",
|
|
4467
4470
|
styles: "overflow:hidden;position:relative"
|
|
4468
4471
|
} : {
|
|
4469
4472
|
name: "zie6jd-getCheckboxWrapperStyles",
|
|
4470
4473
|
styles: "overflow:hidden;position:relative;label:getCheckboxWrapperStyles;",
|
|
4471
4474
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJhdGUtY2FyZC5zdHlsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBc0Y4QyIsImZpbGUiOiJyYXRlLWNhcmQuc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsia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+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$4
|
|
4473
4476
|
};
|
|
4474
|
-
const getCheckboxWrapperStyles = () => _ref$
|
|
4477
|
+
const getCheckboxWrapperStyles = () => _ref$3;
|
|
4475
4478
|
|
|
4476
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
4477
|
-
var _ref$
|
|
4479
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__$3() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
4480
|
+
var _ref$2 = process.env.NODE_ENV === "production" ? {
|
|
4478
4481
|
name: "j2qxfd",
|
|
4479
4482
|
styles: "display:flex;flex-direction:column;text-align:right"
|
|
4480
4483
|
} : {
|
|
4481
4484
|
name: "15ei3fb-getAsideStyles",
|
|
4482
4485
|
styles: "display:flex;flex-direction:column;text-align:right;label:getAsideStyles;",
|
|
4483
4486
|
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvc3QtYnJlYWtkb3duLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFeUMiLCJmaWxlIjoiY29zdC1icmVha2Rvd24uc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XHJcbmltcG9ydCB7IGdldFJhdGVDYXJkRmlyc3RMaW5lU2l6ZSB9IGZyb20gXCIuLi9yYXRlLWNhcmQuc3R5bGVzXCI7XHJcbmV4cG9ydCBjb25zdCBnZXRBc2lkZVN0eWxlcyA9ICh0aGVtZSkgPT4gY3NzKHtcclxuICAgIGRpc3BsYXk6IFwiZmxleFwiLFxyXG4gICAgZmxleERpcmVjdGlvbjogXCJjb2x1bW5cIixcclxuICAgIHRleHRBbGlnbjogXCJyaWdodFwiLFxyXG59KTtcclxuZXhwb3J0IGNvbnN0IGdldFByaWNlU3R5bGVzID0gKHRoZW1lKSA9PiBjc3Moe1xyXG4gICAgbGluZUhlaWdodDogZ2V0UmF0ZUNhcmRGaXJzdExpbmVTaXplKHRoZW1lKSxcclxufSk7XHJcbmV4cG9ydCBjb25zdCBnZXRUYWJsZVN0eWxlcyA9ICh0aGVtZSkgPT4gY3NzKHtcclxuICAgIGJvcmRlclNwYWNpbmc6IGAwICR7dGhlbWUuc3BhY2luZygwLjUpfXB4YCxcclxuICAgIG1hcmdpblRvcDogdGhlbWUuc3BhY2luZygwLjUpLFxyXG59KTtcclxuZXhwb3J0IGNvbnN0IGdldFRhYmxlQ2VsbExhYmVsU3R5bGVzID0gKHRoZW1lKSA9PiBjc3Moe1xyXG4gICAgcGFkZGluZ1JpZ2h0OiB0aGVtZS5zcGFjaW5nKDQpLFxyXG59KTtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9Y29zdC1icmVha2Rvd24uc3R5bGVzLmpzLm1hcCJdfQ== */",
|
|
4484
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$
|
|
4487
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$3
|
|
4485
4488
|
};
|
|
4486
|
-
const getAsideStyles = theme => _ref$
|
|
4489
|
+
const getAsideStyles = theme => _ref$2;
|
|
4487
4490
|
const getPriceStyles = theme => /*#__PURE__*/css$1({
|
|
4488
4491
|
lineHeight: getRateCardFirstLineSize(theme)
|
|
4489
4492
|
}, process.env.NODE_ENV === "production" ? "" : ";label:getPriceStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvc3QtYnJlYWtkb3duLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPeUMiLCJmaWxlIjoiY29zdC1icmVha2Rvd24uc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XHJcbmltcG9ydCB7IGdldFJhdGVDYXJkRmlyc3RMaW5lU2l6ZSB9IGZyb20gXCIuLi9yYXRlLWNhcmQuc3R5bGVzXCI7XHJcbmV4cG9ydCBjb25zdCBnZXRBc2lkZVN0eWxlcyA9ICh0aGVtZSkgPT4gY3NzKHtcclxuICAgIGRpc3BsYXk6IFwiZmxleFwiLFxyXG4gICAgZmxleERpcmVjdGlvbjogXCJjb2x1bW5cIixcclxuICAgIHRleHRBbGlnbjogXCJyaWdodFwiLFxyXG59KTtcclxuZXhwb3J0IGNvbnN0IGdldFByaWNlU3R5bGVzID0gKHRoZW1lKSA9PiBjc3Moe1xyXG4gICAgbGluZUhlaWdodDogZ2V0UmF0ZUNhcmRGaXJzdExpbmVTaXplKHRoZW1lKSxcclxufSk7XHJcbmV4cG9ydCBjb25zdCBnZXRUYWJsZVN0eWxlcyA9ICh0aGVtZSkgPT4gY3NzKHtcclxuICAgIGJvcmRlclNwYWNpbmc6IGAwICR7dGhlbWUuc3BhY2luZygwLjUpfXB4YCxcclxuICAgIG1hcmdpblRvcDogdGhlbWUuc3BhY2luZygwLjUpLFxyXG59KTtcclxuZXhwb3J0IGNvbnN0IGdldFRhYmxlQ2VsbExhYmVsU3R5bGVzID0gKHRoZW1lKSA9PiBjc3Moe1xyXG4gICAgcGFkZGluZ1JpZ2h0OiB0aGVtZS5zcGFjaW5nKDQpLFxyXG59KTtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9Y29zdC1icmVha2Rvd24uc3R5bGVzLmpzLm1hcCJdfQ== */");
|
|
@@ -4648,7 +4651,7 @@ const RateCard = ({
|
|
|
4648
4651
|
role: "option"
|
|
4649
4652
|
}, {
|
|
4650
4653
|
children: [jsxs("section", Object.assign({
|
|
4651
|
-
css: getSectionStyles
|
|
4654
|
+
css: getSectionStyles
|
|
4652
4655
|
}, {
|
|
4653
4656
|
children: [carrierCode && jsx("img", {
|
|
4654
4657
|
alt: carrierFriendlyName,
|
|
@@ -4766,6 +4769,43 @@ const RateSelect = _a => {
|
|
|
4766
4769
|
}));
|
|
4767
4770
|
};
|
|
4768
4771
|
|
|
4772
|
+
const SelectAutoCompleteController = createFieldController();
|
|
4773
|
+
const SelectAutoComplete = _a => {
|
|
4774
|
+
var {
|
|
4775
|
+
onChange: customOnChange
|
|
4776
|
+
} = _a,
|
|
4777
|
+
fieldProps = __rest(_a, ["onChange"]);
|
|
4778
|
+
return jsx(SelectAutoCompleteController, Object.assign({}, fieldProps, {
|
|
4779
|
+
children: _a => {
|
|
4780
|
+
var {
|
|
4781
|
+
options,
|
|
4782
|
+
value,
|
|
4783
|
+
onChange
|
|
4784
|
+
} = _a,
|
|
4785
|
+
fieldProps = __rest(_a, ["options", "value", "onChange"]);
|
|
4786
|
+
const buildValue = val => {
|
|
4787
|
+
if (typeof val !== "string") return;
|
|
4788
|
+
const option = options.find(o => o.value === val);
|
|
4789
|
+
return option;
|
|
4790
|
+
};
|
|
4791
|
+
return jsx("div", Object.assign({
|
|
4792
|
+
css: getOverrideStyles
|
|
4793
|
+
}, {
|
|
4794
|
+
children: jsx(SelectAutocomplete, Object.assign({}, fieldProps, {
|
|
4795
|
+
onChange: (_name, nextValue) => {
|
|
4796
|
+
if (nextValue) {
|
|
4797
|
+
customOnChange === null || customOnChange === void 0 ? void 0 : customOnChange(nextValue.value);
|
|
4798
|
+
onChange(nextValue.value);
|
|
4799
|
+
}
|
|
4800
|
+
},
|
|
4801
|
+
options: options,
|
|
4802
|
+
value: buildValue(value)
|
|
4803
|
+
}))
|
|
4804
|
+
}));
|
|
4805
|
+
}
|
|
4806
|
+
}));
|
|
4807
|
+
};
|
|
4808
|
+
|
|
4769
4809
|
const SelectController = createFieldController();
|
|
4770
4810
|
const isCategory = option => option.options !== undefined;
|
|
4771
4811
|
const Select = _a => {
|
|
@@ -4951,8 +4991,8 @@ const TextInput = fieldProps => jsx(TextInputController, Object.assign({}, field
|
|
|
4951
4991
|
|
|
4952
4992
|
var fields = /*#__PURE__*/Object.freeze({
|
|
4953
4993
|
__proto__: null,
|
|
4954
|
-
CreditCardInput: CreditCardInput,
|
|
4955
4994
|
CheckboxInput: CheckboxInput,
|
|
4995
|
+
CreditCardInput: CreditCardInput,
|
|
4956
4996
|
DatePicker: DatePicker,
|
|
4957
4997
|
ExpirationInput: ExpirationInput,
|
|
4958
4998
|
InputGroup: InputGroup,
|
|
@@ -4960,6 +5000,7 @@ var fields = /*#__PURE__*/Object.freeze({
|
|
|
4960
5000
|
MoneyInput: MoneyInput,
|
|
4961
5001
|
NumberInput: NumberInput,
|
|
4962
5002
|
RateSelect: RateSelect,
|
|
5003
|
+
SelectAutoComplete: SelectAutoComplete,
|
|
4963
5004
|
Select: Select,
|
|
4964
5005
|
SubmitButton: SubmitButton,
|
|
4965
5006
|
Switch: Switch,
|
|
@@ -5431,7 +5472,7 @@ const ElementsProvider = ({
|
|
|
5431
5472
|
environment: _environment,
|
|
5432
5473
|
onError
|
|
5433
5474
|
}), [_environment, onError, brandName]);
|
|
5434
|
-
return jsx(
|
|
5475
|
+
return jsx(ShipEngine, Object.assign({
|
|
5435
5476
|
baseURL: baseURL,
|
|
5436
5477
|
getToken: getToken,
|
|
5437
5478
|
headers: {
|
|
@@ -5765,8 +5806,8 @@ $$a({ target: 'Object', stat: true }, {
|
|
|
5765
5806
|
}
|
|
5766
5807
|
});
|
|
5767
5808
|
|
|
5768
|
-
const
|
|
5769
|
-
const [
|
|
5809
|
+
const useAddressValidation = () => {
|
|
5810
|
+
const [validationPreference, setValidationPreference] = useState();
|
|
5770
5811
|
const {
|
|
5771
5812
|
error: validateAddressErrors,
|
|
5772
5813
|
mutateAsync: validateAddresses
|
|
@@ -5786,7 +5827,7 @@ const useWarehouseValidation = () => {
|
|
|
5786
5827
|
if (matched === original) return true;
|
|
5787
5828
|
return matched.includes(original);
|
|
5788
5829
|
}, []);
|
|
5789
|
-
const
|
|
5830
|
+
const buildAddressValidationPreference = useCallback(addressValidation => {
|
|
5790
5831
|
/**
|
|
5791
5832
|
* Address validation matching criteria
|
|
5792
5833
|
* 1. Case-insensitive string comparison
|
|
@@ -5826,28 +5867,23 @@ const useWarehouseValidation = () => {
|
|
|
5826
5867
|
validationType: "ERROR"
|
|
5827
5868
|
};
|
|
5828
5869
|
}, [caseInsensitiveCompare, postalCodeCompare]);
|
|
5829
|
-
const validate = useCallback(
|
|
5830
|
-
const
|
|
5831
|
-
const result = yield validateAddresses(warehouseAddresses);
|
|
5870
|
+
const validate = useCallback(addresses => __awaiter(void 0, void 0, void 0, function* () {
|
|
5871
|
+
const result = yield validateAddresses([addresses.originAddress, ...(addresses.returnAddress ? [addresses.returnAddress] : [])]);
|
|
5832
5872
|
const [originAddress, returnAddress] = result;
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
originAddress: buildWarehousePreference(originAddress),
|
|
5837
|
-
returnAddress: returnAddress && buildWarehousePreference(returnAddress)
|
|
5873
|
+
setValidationPreference({
|
|
5874
|
+
originAddress: buildAddressValidationPreference(originAddress),
|
|
5875
|
+
returnAddress: returnAddress && buildAddressValidationPreference(returnAddress)
|
|
5838
5876
|
});
|
|
5839
5877
|
return {
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
originAddress: buildWarehousePreference(originAddress),
|
|
5843
|
-
returnAddress: returnAddress && buildWarehousePreference(returnAddress)
|
|
5878
|
+
originAddress: buildAddressValidationPreference(originAddress),
|
|
5879
|
+
returnAddress: returnAddress && buildAddressValidationPreference(returnAddress)
|
|
5844
5880
|
};
|
|
5845
|
-
}), [
|
|
5881
|
+
}), [buildAddressValidationPreference, validateAddresses]);
|
|
5846
5882
|
return {
|
|
5847
5883
|
errors: validateAddressErrors,
|
|
5848
|
-
|
|
5884
|
+
setValidationPreference,
|
|
5849
5885
|
validate,
|
|
5850
|
-
|
|
5886
|
+
validationPreference
|
|
5851
5887
|
};
|
|
5852
5888
|
};
|
|
5853
5889
|
|
|
@@ -5911,7 +5947,7 @@ const AddressParser = ({
|
|
|
5911
5947
|
}));
|
|
5912
5948
|
};
|
|
5913
5949
|
|
|
5914
|
-
const styles$
|
|
5950
|
+
const styles$c = createStyles({
|
|
5915
5951
|
grow: {
|
|
5916
5952
|
flexGrow: 1
|
|
5917
5953
|
},
|
|
@@ -5994,15 +6030,16 @@ const AddressFields = ({
|
|
|
5994
6030
|
labelWeight: "normal",
|
|
5995
6031
|
name: _formatFieldName("cityLocality"),
|
|
5996
6032
|
nativeLabel: true
|
|
5997
|
-
}), jsx(
|
|
6033
|
+
}), jsx(SelectAutoComplete, {
|
|
5998
6034
|
control: form.control,
|
|
5999
6035
|
form: formId,
|
|
6000
6036
|
label: t("address.fields.countryCode"),
|
|
6001
6037
|
labelWeight: "normal",
|
|
6002
6038
|
name: _formatFieldName("countryCode"),
|
|
6003
6039
|
nativeLabel: true,
|
|
6004
|
-
|
|
6005
|
-
|
|
6040
|
+
noResultsLabel: t("address.noResults"),
|
|
6041
|
+
onChange: value => {
|
|
6042
|
+
if (value) {
|
|
6006
6043
|
form.setValue(_formatFieldName("stateProvince"), null, {
|
|
6007
6044
|
shouldValidate: isSubmitted
|
|
6008
6045
|
});
|
|
@@ -6010,23 +6047,24 @@ const AddressFields = ({
|
|
|
6010
6047
|
},
|
|
6011
6048
|
options: countryCodeOptions
|
|
6012
6049
|
}), jsxs("div", Object.assign({
|
|
6013
|
-
css: styles$
|
|
6050
|
+
css: styles$c.stateZipWrapper
|
|
6014
6051
|
}, {
|
|
6015
6052
|
children: [jsx("div", Object.assign({
|
|
6016
|
-
css: styles$
|
|
6053
|
+
css: styles$c.stateWrapper
|
|
6017
6054
|
}, {
|
|
6018
6055
|
children: jsx("div", Object.assign({
|
|
6019
|
-
css: styles$
|
|
6056
|
+
css: styles$c.grow
|
|
6020
6057
|
}, {
|
|
6021
6058
|
children: watchCountryCode === "US" ?
|
|
6022
6059
|
// Domestic States
|
|
6023
|
-
jsx(
|
|
6060
|
+
jsx(SelectAutoComplete, {
|
|
6024
6061
|
control: form.control,
|
|
6025
6062
|
form: formId,
|
|
6026
6063
|
label: t("address.fields.stateProvince"),
|
|
6027
6064
|
labelWeight: "normal",
|
|
6028
6065
|
name: _formatFieldName("stateProvince"),
|
|
6029
6066
|
nativeLabel: true,
|
|
6067
|
+
noResultsLabel: t("address.noResults"),
|
|
6030
6068
|
options: stateCodeOptions
|
|
6031
6069
|
}) :
|
|
6032
6070
|
// International Provinces
|
|
@@ -6040,10 +6078,10 @@ const AddressFields = ({
|
|
|
6040
6078
|
})
|
|
6041
6079
|
}))
|
|
6042
6080
|
})), jsx("div", Object.assign({
|
|
6043
|
-
css: styles$
|
|
6081
|
+
css: styles$c.zipWrapper
|
|
6044
6082
|
}, {
|
|
6045
6083
|
children: jsx("div", Object.assign({
|
|
6046
|
-
css: styles$
|
|
6084
|
+
css: styles$c.grow
|
|
6047
6085
|
}, {
|
|
6048
6086
|
children: jsx(TextInput, {
|
|
6049
6087
|
control: form.control,
|
|
@@ -6272,7 +6310,7 @@ const AddressForm = ({
|
|
|
6272
6310
|
}));
|
|
6273
6311
|
};
|
|
6274
6312
|
|
|
6275
|
-
const styles$
|
|
6313
|
+
const styles$b = createStyles({
|
|
6276
6314
|
agreement: {
|
|
6277
6315
|
alignItems: "center",
|
|
6278
6316
|
display: "flex",
|
|
@@ -6342,10 +6380,10 @@ const DisplayCarrierTerms = c => {
|
|
|
6342
6380
|
const listCarrierLinks = () => {
|
|
6343
6381
|
return c.carrierTerms.links.map((term, index) => {
|
|
6344
6382
|
return jsx("li", Object.assign({
|
|
6345
|
-
css: styles$
|
|
6383
|
+
css: styles$b.listItems
|
|
6346
6384
|
}, {
|
|
6347
6385
|
children: jsx(Link, Object.assign({
|
|
6348
|
-
css: styles$
|
|
6386
|
+
css: styles$b.link,
|
|
6349
6387
|
href: term.url,
|
|
6350
6388
|
isExternal: true,
|
|
6351
6389
|
target: "_blank"
|
|
@@ -6361,18 +6399,18 @@ const DisplayCarrierTerms = c => {
|
|
|
6361
6399
|
};
|
|
6362
6400
|
const listCarrierTerms = () => {
|
|
6363
6401
|
return jsxs("div", Object.assign({
|
|
6364
|
-
css: styles$
|
|
6402
|
+
css: styles$b.terms
|
|
6365
6403
|
}, {
|
|
6366
6404
|
children: [jsx(Typography, Object.assign({
|
|
6367
6405
|
variant: "subtitle1"
|
|
6368
6406
|
}, {
|
|
6369
6407
|
children: c.carrierTerms.title
|
|
6370
6408
|
})), jsx("div", Object.assign({
|
|
6371
|
-
css: styles$
|
|
6409
|
+
css: styles$b.terms
|
|
6372
6410
|
}, {
|
|
6373
6411
|
children: listCarrierContent()
|
|
6374
6412
|
})), jsx("ul", Object.assign({
|
|
6375
|
-
css: styles$
|
|
6413
|
+
css: styles$b.links
|
|
6376
6414
|
}, {
|
|
6377
6415
|
children: listCarrierLinks()
|
|
6378
6416
|
}))]
|
|
@@ -6602,7 +6640,7 @@ const AddressDisplay = ({
|
|
|
6602
6640
|
}));
|
|
6603
6641
|
};
|
|
6604
6642
|
|
|
6605
|
-
const styles$
|
|
6643
|
+
const styles$a = createStyles({
|
|
6606
6644
|
container: theme => ({
|
|
6607
6645
|
display: "flex",
|
|
6608
6646
|
gap: theme.spacing()
|
|
@@ -6640,13 +6678,13 @@ const Disclosure = ({
|
|
|
6640
6678
|
}, [open]);
|
|
6641
6679
|
return jsxs(Fragment, {
|
|
6642
6680
|
children: [jsxs("div", Object.assign({
|
|
6643
|
-
css: styles$
|
|
6681
|
+
css: styles$a.container
|
|
6644
6682
|
}, {
|
|
6645
6683
|
children: [jsx("div", {
|
|
6646
6684
|
children: label
|
|
6647
6685
|
}), _showToggle && jsx("button", Object.assign({
|
|
6648
6686
|
"aria-expanded": isOpen,
|
|
6649
|
-
css: styles$
|
|
6687
|
+
css: styles$a.toggle,
|
|
6650
6688
|
onClick: () => {
|
|
6651
6689
|
setIsOpen(!isOpen);
|
|
6652
6690
|
onToggle(!isOpen);
|
|
@@ -6654,12 +6692,12 @@ const Disclosure = ({
|
|
|
6654
6692
|
type: "button"
|
|
6655
6693
|
}, {
|
|
6656
6694
|
children: jsx(Icon, {
|
|
6657
|
-
css: styles$
|
|
6695
|
+
css: styles$a.icon,
|
|
6658
6696
|
name: isOpen ? IconNames.CHEVRON_TOP : IconNames.CHEVRON_BOTTOM
|
|
6659
6697
|
})
|
|
6660
6698
|
}))]
|
|
6661
6699
|
})), isOpen && jsx("div", Object.assign({
|
|
6662
|
-
css: styles$
|
|
6700
|
+
css: styles$a.content
|
|
6663
6701
|
}, {
|
|
6664
6702
|
children: typeof children === "function" ? children(() => setIsOpen(!isOpen)) : children
|
|
6665
6703
|
}))]
|
|
@@ -6799,7 +6837,7 @@ const getCarrierRecoverySchema = requiresAddress => z.object({
|
|
|
6799
6837
|
address: requiresAddress ? baseSchema : baseSchema.optional()
|
|
6800
6838
|
});
|
|
6801
6839
|
|
|
6802
|
-
const styles$
|
|
6840
|
+
const styles$9 = createStyles({
|
|
6803
6841
|
grid: theme => ({
|
|
6804
6842
|
margin: theme.spacing(4)
|
|
6805
6843
|
}),
|
|
@@ -6842,7 +6880,7 @@ const CarrierRecoveryForm = ({
|
|
|
6842
6880
|
onSubmit: formLogger.capture(handleSubmit)
|
|
6843
6881
|
}, {
|
|
6844
6882
|
children: jsxs(Grid, Object.assign({
|
|
6845
|
-
css: styles$
|
|
6883
|
+
css: styles$9.grid,
|
|
6846
6884
|
noPadding: true
|
|
6847
6885
|
}, {
|
|
6848
6886
|
children: [requiresAddress && jsxs(Fragment, {
|
|
@@ -6850,14 +6888,14 @@ const CarrierRecoveryForm = ({
|
|
|
6850
6888
|
colSpan: 12
|
|
6851
6889
|
}, {
|
|
6852
6890
|
children: jsx(Typography, Object.assign({
|
|
6853
|
-
css: styles$
|
|
6891
|
+
css: styles$9.heading,
|
|
6854
6892
|
variant: "heading4"
|
|
6855
6893
|
}, {
|
|
6856
6894
|
children: t("register-wallet:sections.carriers.title")
|
|
6857
6895
|
}))
|
|
6858
6896
|
})), jsx(GridChild, Object.assign({
|
|
6859
6897
|
colSpan: 12,
|
|
6860
|
-
css: styles$
|
|
6898
|
+
css: styles$9.subtitle
|
|
6861
6899
|
}, {
|
|
6862
6900
|
children: jsx(Typography, Object.assign({
|
|
6863
6901
|
variant: "subtitle1"
|
|
@@ -6943,7 +6981,7 @@ const CarrierTermsForm = ({
|
|
|
6943
6981
|
onSubmit(payload.agreement);
|
|
6944
6982
|
}));
|
|
6945
6983
|
return jsxs("div", Object.assign({
|
|
6946
|
-
css: styles$
|
|
6984
|
+
css: styles$b.termsForm,
|
|
6947
6985
|
"data-testid": "carrier-terms-form"
|
|
6948
6986
|
}, {
|
|
6949
6987
|
children: [jsx(Typography, Object.assign({
|
|
@@ -6959,7 +6997,7 @@ const CarrierTermsForm = ({
|
|
|
6959
6997
|
})), jsx(Spacer, {
|
|
6960
6998
|
multiplier: 1
|
|
6961
6999
|
}), jsx("div", Object.assign({
|
|
6962
|
-
css: styles$
|
|
7000
|
+
css: styles$b.carrierLogos
|
|
6963
7001
|
}, {
|
|
6964
7002
|
children: metadatas.map(({
|
|
6965
7003
|
name,
|
|
@@ -6975,7 +7013,7 @@ const CarrierTermsForm = ({
|
|
|
6975
7013
|
onSubmit: formLogger.capture(handleSubmit)
|
|
6976
7014
|
}, {
|
|
6977
7015
|
children: jsxs("div", Object.assign({
|
|
6978
|
-
css: styles$
|
|
7016
|
+
css: styles$b.agreement
|
|
6979
7017
|
}, {
|
|
6980
7018
|
children: [jsx("div", {
|
|
6981
7019
|
children: jsx(CheckboxInput, {
|
|
@@ -7002,12 +7040,12 @@ const CarrierTermsForm = ({
|
|
|
7002
7040
|
name: "agreement"
|
|
7003
7041
|
})
|
|
7004
7042
|
}), showTerms && jsxs("div", Object.assign({
|
|
7005
|
-
css: styles$
|
|
7043
|
+
css: styles$b.well
|
|
7006
7044
|
}, {
|
|
7007
|
-
children: [terms.map(
|
|
7045
|
+
children: [terms.map(t => jsx(DisplayCarrierTerms, {
|
|
7008
7046
|
carrierTerms: t
|
|
7009
|
-
},
|
|
7010
|
-
css: styles$
|
|
7047
|
+
}, t.title)), jsx("div", Object.assign({
|
|
7048
|
+
css: styles$b.close
|
|
7011
7049
|
}, {
|
|
7012
7050
|
children: jsx(Button, Object.assign({
|
|
7013
7051
|
onClick: () => setShowTerms(false),
|
|
@@ -7395,7 +7433,7 @@ const LandingPageForm = ({
|
|
|
7395
7433
|
}));
|
|
7396
7434
|
};
|
|
7397
7435
|
|
|
7398
|
-
const styles$
|
|
7436
|
+
const styles$8 = createStyles({
|
|
7399
7437
|
container: theme => ({
|
|
7400
7438
|
padding: theme.spacing(2)
|
|
7401
7439
|
}),
|
|
@@ -7417,11 +7455,11 @@ const LandingPage = ({
|
|
|
7417
7455
|
t
|
|
7418
7456
|
} = useTranslation();
|
|
7419
7457
|
return jsxs("div", Object.assign({
|
|
7420
|
-
css: styles$
|
|
7458
|
+
css: styles$8.container,
|
|
7421
7459
|
"data-testid": "landing-page"
|
|
7422
7460
|
}, {
|
|
7423
7461
|
children: [jsxs("div", Object.assign({
|
|
7424
|
-
css: styles$
|
|
7462
|
+
css: styles$8.header
|
|
7425
7463
|
}, {
|
|
7426
7464
|
children: [jsx(Typography, Object.assign({
|
|
7427
7465
|
variant: "heading4"
|
|
@@ -7439,21 +7477,28 @@ const LandingPage = ({
|
|
|
7439
7477
|
})), jsx(LandingPageForm, {
|
|
7440
7478
|
onSubmit: onSubmit
|
|
7441
7479
|
}), jsxs("div", Object.assign({
|
|
7442
|
-
css: styles$
|
|
7480
|
+
css: styles$8.header
|
|
7443
7481
|
}, {
|
|
7444
7482
|
children: [jsx(Spacer, {
|
|
7445
7483
|
multiplier: 6
|
|
7446
7484
|
}), jsx(Typography, Object.assign({
|
|
7447
7485
|
variant: "subtitle1"
|
|
7448
7486
|
}, {
|
|
7449
|
-
children: t("onboarding:landing.
|
|
7487
|
+
children: t("onboarding:landing.welcome")
|
|
7488
|
+
})), jsx(Spacer, {
|
|
7489
|
+
multiplier: 2
|
|
7490
|
+
}), jsx(Typography, Object.assign({
|
|
7491
|
+
css: styles$8.description,
|
|
7492
|
+
variant: "body1"
|
|
7493
|
+
}, {
|
|
7494
|
+
children: t("onboarding:landing.messageLine1")
|
|
7450
7495
|
})), jsx(Spacer, {
|
|
7451
7496
|
multiplier: 2
|
|
7452
7497
|
}), jsx(Typography, Object.assign({
|
|
7453
|
-
css: styles$
|
|
7498
|
+
css: styles$8.description,
|
|
7454
7499
|
variant: "body1"
|
|
7455
7500
|
}, {
|
|
7456
|
-
children: t("onboarding:landing.
|
|
7501
|
+
children: t("onboarding:landing.messageLine2")
|
|
7457
7502
|
})), jsx(Spacer, {
|
|
7458
7503
|
multiplier: 2
|
|
7459
7504
|
})]
|
|
@@ -7461,58 +7506,55 @@ const LandingPage = ({
|
|
|
7461
7506
|
}));
|
|
7462
7507
|
};
|
|
7463
7508
|
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
|
|
7467
|
-
|
|
7468
|
-
|
|
7469
|
-
|
|
7470
|
-
|
|
7471
|
-
content: '""'
|
|
7509
|
+
const styles$7 = createStyles({
|
|
7510
|
+
icon: theme => ({
|
|
7511
|
+
color: theme.palette.primary.main,
|
|
7512
|
+
marginRight: theme.spacing(2)
|
|
7513
|
+
}),
|
|
7514
|
+
rightContentWrapper: {
|
|
7515
|
+
marginLeft: "auto"
|
|
7472
7516
|
},
|
|
7473
|
-
|
|
7474
|
-
|
|
7475
|
-
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
};
|
|
7499
|
-
const getRightContentWrapperStyles = () => _ref$2;
|
|
7517
|
+
section: theme => ({
|
|
7518
|
+
boxSizing: "border-box",
|
|
7519
|
+
padding: `${theme.spacing(3)}px ${theme.spacing(4)}px`,
|
|
7520
|
+
width: "100%"
|
|
7521
|
+
}),
|
|
7522
|
+
summary: theme => ({
|
|
7523
|
+
// Needed to hide marker in safari
|
|
7524
|
+
"&::-webkit-details-marker": {
|
|
7525
|
+
display: "none"
|
|
7526
|
+
},
|
|
7527
|
+
"&::marker": {
|
|
7528
|
+
content: '""'
|
|
7529
|
+
},
|
|
7530
|
+
backgroundColor: theme.palette.gray.ultraLight,
|
|
7531
|
+
boxSizing: "border-box",
|
|
7532
|
+
listStyle: "none",
|
|
7533
|
+
padding: `${theme.spacing()}px ${theme.spacing(4)}px`,
|
|
7534
|
+
width: "100%"
|
|
7535
|
+
}),
|
|
7536
|
+
summaryWrapper: theme => ({
|
|
7537
|
+
alignItems: "center",
|
|
7538
|
+
color: theme.palette.black,
|
|
7539
|
+
display: "flex",
|
|
7540
|
+
width: "100%"
|
|
7541
|
+
})
|
|
7542
|
+
});
|
|
7500
7543
|
|
|
7501
|
-
const
|
|
7544
|
+
const Section = _a => {
|
|
7502
7545
|
var {
|
|
7503
7546
|
bold,
|
|
7504
|
-
initialExpanded,
|
|
7505
7547
|
title,
|
|
7506
7548
|
children,
|
|
7507
7549
|
rightContent
|
|
7508
7550
|
} = _a,
|
|
7509
|
-
rest = __rest(_a, ["bold", "
|
|
7551
|
+
rest = __rest(_a, ["bold", "title", "children", "rightContent"]);
|
|
7510
7552
|
return jsxs(Fragment, {
|
|
7511
7553
|
children: [title && jsx("summary", Object.assign({
|
|
7512
|
-
css:
|
|
7554
|
+
css: styles$7.summary
|
|
7513
7555
|
}, {
|
|
7514
7556
|
children: jsxs("div", Object.assign({
|
|
7515
|
-
css:
|
|
7557
|
+
css: styles$7.summaryWrapper
|
|
7516
7558
|
}, {
|
|
7517
7559
|
children: [jsx(Typography, Object.assign({
|
|
7518
7560
|
bold: bold,
|
|
@@ -7520,13 +7562,13 @@ const Accordion = _a => {
|
|
|
7520
7562
|
}, {
|
|
7521
7563
|
children: title
|
|
7522
7564
|
})), rightContent && jsx("div", Object.assign({
|
|
7523
|
-
css:
|
|
7565
|
+
css: styles$7.rightContentWrapper
|
|
7524
7566
|
}, {
|
|
7525
7567
|
children: rightContent
|
|
7526
7568
|
}))]
|
|
7527
7569
|
}))
|
|
7528
7570
|
})), jsx("section", Object.assign({
|
|
7529
|
-
css:
|
|
7571
|
+
css: styles$7.section
|
|
7530
7572
|
}, rest, {
|
|
7531
7573
|
children: children
|
|
7532
7574
|
}))]
|
|
@@ -7672,8 +7714,7 @@ const ListCarriers$1 = ({
|
|
|
7672
7714
|
const {
|
|
7673
7715
|
t
|
|
7674
7716
|
} = useTranslation();
|
|
7675
|
-
return jsxs(
|
|
7676
|
-
initialExpanded: true,
|
|
7717
|
+
return jsxs(Section, Object.assign({
|
|
7677
7718
|
title: t("list-carriers:headers.carriers")
|
|
7678
7719
|
}, {
|
|
7679
7720
|
children: [!isLoading && !!(errors === null || errors === void 0 ? void 0 : errors.length) && jsxs(Fragment, {
|
|
@@ -7740,345 +7781,11 @@ const LoadingSkeletonRow = () => {
|
|
|
7740
7781
|
}));
|
|
7741
7782
|
};
|
|
7742
7783
|
|
|
7743
|
-
const
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
marginRight: theme.spacing(2),
|
|
7749
|
-
padding: theme.spacing(2),
|
|
7750
|
-
textTransform: "uppercase",
|
|
7751
|
-
width: "100%"
|
|
7752
|
-
}),
|
|
7753
|
-
container: theme => ({
|
|
7754
|
-
border: `1px solid ${theme.palette.gray.light}`,
|
|
7755
|
-
borderRadius: theme.borderRadius.M,
|
|
7756
|
-
boxSizing: "border-box",
|
|
7757
|
-
width: "100%"
|
|
7758
|
-
}),
|
|
7759
|
-
header: theme => ({
|
|
7760
|
-
alignItems: "center",
|
|
7761
|
-
borderRadius: 2,
|
|
7762
|
-
color: theme.palette.black,
|
|
7763
|
-
display: "flex",
|
|
7764
|
-
justifyContent: "space-between",
|
|
7765
|
-
padding: theme.spacing(2),
|
|
7766
|
-
width: "100%"
|
|
7767
|
-
}),
|
|
7768
|
-
title: theme => ({
|
|
7769
|
-
alignItems: "center",
|
|
7770
|
-
display: "flex",
|
|
7771
|
-
gap: theme.spacing(),
|
|
7772
|
-
justifyContent: "space-between"
|
|
7773
|
-
}),
|
|
7774
|
-
verticalContainer: theme => ({
|
|
7775
|
-
alignItems: "center",
|
|
7776
|
-
border: `1px solid ${theme.palette.gray.light}`,
|
|
7777
|
-
borderRadius: theme.borderRadius.M,
|
|
7778
|
-
boxSizing: "border-box",
|
|
7779
|
-
display: "flex",
|
|
7780
|
-
height: "100%",
|
|
7781
|
-
width: "100%"
|
|
7782
|
-
})
|
|
7783
|
-
});
|
|
7784
|
-
|
|
7785
|
-
const SettingsCard = ({
|
|
7786
|
-
accessoryAction,
|
|
7787
|
-
cardAction,
|
|
7788
|
-
children,
|
|
7789
|
-
subtitle,
|
|
7790
|
-
title,
|
|
7791
|
-
verticallyAligned
|
|
7792
|
-
}) => {
|
|
7793
|
-
return jsxs("div", Object.assign({
|
|
7794
|
-
css: verticallyAligned ? styles$5.verticalContainer : styles$5.container,
|
|
7795
|
-
"data-testid": "settingsCard"
|
|
7796
|
-
}, {
|
|
7797
|
-
children: [jsxs("div", Object.assign({
|
|
7798
|
-
css: styles$5.header
|
|
7799
|
-
}, {
|
|
7800
|
-
children: [jsxs("div", Object.assign({
|
|
7801
|
-
css: styles$5.title
|
|
7802
|
-
}, {
|
|
7803
|
-
children: [typeof title === "string" ? jsx(Typography, Object.assign({
|
|
7804
|
-
variant: "subtitle2"
|
|
7805
|
-
}, {
|
|
7806
|
-
children: title
|
|
7807
|
-
})) : title, subtitle && jsx(Tag, Object.assign({
|
|
7808
|
-
color: TagColor.GRAY,
|
|
7809
|
-
css: {
|
|
7810
|
-
textTransform: "capitalize"
|
|
7811
|
-
}
|
|
7812
|
-
}, {
|
|
7813
|
-
children: subtitle
|
|
7814
|
-
}))]
|
|
7815
|
-
})), jsx("div", Object.assign({
|
|
7816
|
-
css: {
|
|
7817
|
-
flexShrink: 0
|
|
7818
|
-
}
|
|
7819
|
-
}, {
|
|
7820
|
-
children: jsx(Link, Object.assign({
|
|
7821
|
-
onClick: cardAction.action,
|
|
7822
|
-
role: "button"
|
|
7823
|
-
}, {
|
|
7824
|
-
children: jsx(Typography, Object.assign({
|
|
7825
|
-
css: theme => ({
|
|
7826
|
-
flexShrink: 0,
|
|
7827
|
-
fontWeight: theme.typography.fontWeight.bold
|
|
7828
|
-
}),
|
|
7829
|
-
variant: "body2"
|
|
7830
|
-
}, {
|
|
7831
|
-
children: cardAction.name
|
|
7832
|
-
}))
|
|
7833
|
-
}))
|
|
7834
|
-
}))]
|
|
7835
|
-
})), children && jsx("div", Object.assign({
|
|
7836
|
-
css: styles$5.body
|
|
7837
|
-
}, {
|
|
7838
|
-
children: jsxs("div", {
|
|
7839
|
-
children: [children, accessoryAction && jsx(ButtonGroup, Object.assign({
|
|
7840
|
-
justify: "center"
|
|
7841
|
-
}, {
|
|
7842
|
-
children: jsx(Button, Object.assign({
|
|
7843
|
-
bold: false,
|
|
7844
|
-
color: ButtonColor.SECONDARY,
|
|
7845
|
-
onClick: accessoryAction.action,
|
|
7846
|
-
type: "button",
|
|
7847
|
-
variant: ButtonVariant.TEXT
|
|
7848
|
-
}, {
|
|
7849
|
-
children: accessoryAction.name
|
|
7850
|
-
}))
|
|
7851
|
-
}))]
|
|
7852
|
-
})
|
|
7853
|
-
}))]
|
|
7854
|
-
}));
|
|
7855
|
-
};
|
|
7856
|
-
|
|
7857
|
-
const WarehouseDisplay = ({
|
|
7858
|
-
warehouse
|
|
7859
|
-
}) => {
|
|
7860
|
-
const {
|
|
7861
|
-
t
|
|
7862
|
-
} = useTranslation();
|
|
7863
|
-
const {
|
|
7864
|
-
originAddress,
|
|
7865
|
-
returnAddress
|
|
7866
|
-
} = warehouse;
|
|
7867
|
-
return jsxs(Grid, Object.assign({
|
|
7868
|
-
"data-testid": "warehouseDisplay",
|
|
7869
|
-
noPadding: true
|
|
7870
|
-
}, {
|
|
7871
|
-
children: [jsx(GridChild, Object.assign({
|
|
7872
|
-
colSpan: 3
|
|
7873
|
-
}, {
|
|
7874
|
-
children: jsx(Typography, Object.assign({
|
|
7875
|
-
css: {
|
|
7876
|
-
textTransform: "capitalize"
|
|
7877
|
-
},
|
|
7878
|
-
variant: "subtitle2"
|
|
7879
|
-
}, {
|
|
7880
|
-
children: t("manage-warehouses:shipFrom")
|
|
7881
|
-
}))
|
|
7882
|
-
})), jsx(GridChild, Object.assign({
|
|
7883
|
-
colSpan: 8
|
|
7884
|
-
}, {
|
|
7885
|
-
children: jsx(AddressDisplay, {
|
|
7886
|
-
address: originAddress,
|
|
7887
|
-
nickname: warehouse.name
|
|
7888
|
-
})
|
|
7889
|
-
})), jsx(GridChild, Object.assign({
|
|
7890
|
-
colSpan: 3
|
|
7891
|
-
}, {
|
|
7892
|
-
children: jsx(Typography, Object.assign({
|
|
7893
|
-
css: {
|
|
7894
|
-
textTransform: "capitalize"
|
|
7895
|
-
},
|
|
7896
|
-
variant: "subtitle2"
|
|
7897
|
-
}, {
|
|
7898
|
-
children: t("manage-warehouses:returnTo")
|
|
7899
|
-
}))
|
|
7900
|
-
})), jsx(GridChild, Object.assign({
|
|
7901
|
-
colSpan: 8
|
|
7902
|
-
}, {
|
|
7903
|
-
children: jsx(AddressDisplay, {
|
|
7904
|
-
address: returnAddress,
|
|
7905
|
-
nickname: warehouse.name
|
|
7906
|
-
})
|
|
7907
|
-
}))]
|
|
7908
|
-
}));
|
|
7909
|
-
};
|
|
7910
|
-
|
|
7911
|
-
const postalCodeRegex$1 = /(^\d{5}$)|(^\d{5}-\d{4}$)/;
|
|
7912
|
-
const warehouseAddressSchema = addressSchema.extend({
|
|
7913
|
-
addressResidentialIndicator: z.preprocess(v => v === "yes" ? true : false, z.boolean().default(false).transform(value => value ? "yes" : "no")),
|
|
7914
|
-
companyName: z.string().trim().min(1),
|
|
7915
|
-
phone: z.string().trim().min(1)
|
|
7916
|
-
}).refine(schema => !schema.phone || isValidPhoneNumber(schema.phone, schema.countryCode), {
|
|
7917
|
-
message: "schemaErrors.notAValidPhoneNumber",
|
|
7918
|
-
path: ["phone"]
|
|
7919
|
-
}).refine(schema => {
|
|
7920
|
-
if (schema.countryCode === "US") {
|
|
7921
|
-
return schema.stateProvince && usStateCodes.includes(schema.stateProvince);
|
|
7922
|
-
}
|
|
7923
|
-
return true;
|
|
7924
|
-
}, {
|
|
7925
|
-
message: "schemaErrors.invalidStateProvince",
|
|
7926
|
-
path: ["stateProvince"]
|
|
7927
|
-
}).refine(schema => {
|
|
7928
|
-
if (schema.countryCode === "US") {
|
|
7929
|
-
return postalCodeRegex$1.test(schema.postalCode);
|
|
7930
|
-
}
|
|
7931
|
-
return true;
|
|
7932
|
-
}, {
|
|
7933
|
-
message: "schemaErrors.invalidPostalCode",
|
|
7934
|
-
path: ["postalCode"]
|
|
7935
|
-
});
|
|
7936
|
-
const warehouseSchema = z.discriminatedUnion("returnToAddressIsDifferent", [z.object({
|
|
7937
|
-
isDefault: z.boolean(),
|
|
7938
|
-
name: z.string().trim().min(1),
|
|
7939
|
-
originAddress: warehouseAddressSchema,
|
|
7940
|
-
returnAddress: warehouseAddressSchema,
|
|
7941
|
-
returnToAddressIsDifferent: z.literal(true)
|
|
7942
|
-
}), z.object({
|
|
7943
|
-
isDefault: z.boolean(),
|
|
7944
|
-
name: z.string().trim().min(1),
|
|
7945
|
-
originAddress: warehouseAddressSchema,
|
|
7946
|
-
returnToAddressIsDifferent: z.literal(false)
|
|
7947
|
-
})]);
|
|
7948
|
-
|
|
7949
|
-
const WarehouseForm = ({
|
|
7950
|
-
isOnboarding: _isOnboarding = false,
|
|
7951
|
-
onCancel,
|
|
7952
|
-
onDelete,
|
|
7953
|
-
onSubmit,
|
|
7954
|
-
submitButtonTitle,
|
|
7955
|
-
warehouse
|
|
7956
|
-
}) => {
|
|
7957
|
-
const {
|
|
7958
|
-
t
|
|
7959
|
-
} = useTranslation(["common", "manage-warehouses"]);
|
|
7960
|
-
const form = useForm({
|
|
7961
|
-
defaultValues: warehouse ? Object.assign(Object.assign({}, warehouse), {
|
|
7962
|
-
isDefault: warehouse.isDefault,
|
|
7963
|
-
originAddress: Object.assign(Object.assign({}, warehouse.originAddress), {
|
|
7964
|
-
countryCode: warehouse.originAddress.countryCode
|
|
7965
|
-
}),
|
|
7966
|
-
returnAddress: Object.assign(Object.assign({}, warehouse.returnAddress), {
|
|
7967
|
-
countryCode: warehouse.returnAddress.countryCode
|
|
7968
|
-
}),
|
|
7969
|
-
returnToAddressIsDifferent: !isEqual(warehouse.originAddress, warehouse.returnAddress)
|
|
7970
|
-
}) : {
|
|
7971
|
-
isDefault: _isOnboarding ? true : false,
|
|
7972
|
-
originAddress: {
|
|
7973
|
-
addressResidentialIndicator: false
|
|
7974
|
-
},
|
|
7975
|
-
returnToAddressIsDifferent: false
|
|
7976
|
-
},
|
|
7977
|
-
resolver: validationResolver(warehouseSchema)
|
|
7978
|
-
});
|
|
7979
|
-
const handleSubmit = form.handleSubmit(values => __awaiter(void 0, void 0, void 0, function* () {
|
|
7980
|
-
const _a = values,
|
|
7981
|
-
payload = __rest(_a, ["returnToAddressIsDifferent"]);
|
|
7982
|
-
yield onSubmit(payload);
|
|
7983
|
-
}));
|
|
7984
|
-
return jsxs("form", Object.assign({
|
|
7985
|
-
id: "warehouse-form",
|
|
7986
|
-
onSubmit: formLogger.capture(handleSubmit)
|
|
7987
|
-
}, {
|
|
7988
|
-
children: [jsx(TextInput, {
|
|
7989
|
-
control: form.control,
|
|
7990
|
-
form: "warehouse-form",
|
|
7991
|
-
label: t("manage-warehouses:locationName"),
|
|
7992
|
-
name: "name",
|
|
7993
|
-
nativeLabel: true
|
|
7994
|
-
}), jsx(AddressFields, {
|
|
7995
|
-
form: form,
|
|
7996
|
-
formatFieldName: fieldName => `originAddress.${fieldName}`,
|
|
7997
|
-
optionalFields: ["addressLine2"]
|
|
7998
|
-
}), jsx(CheckboxInput, {
|
|
7999
|
-
checkboxLabel: t("manage-warehouses:residentialAddress"),
|
|
8000
|
-
control: form.control,
|
|
8001
|
-
form: "warehouse-form",
|
|
8002
|
-
label: "originAddress.addressResidentialIndicator",
|
|
8003
|
-
name: "originAddress.addressResidentialIndicator"
|
|
8004
|
-
}), !_isOnboarding && jsx(CheckboxInput, {
|
|
8005
|
-
checkboxLabel: t("manage-warehouses:isDefault"),
|
|
8006
|
-
control: form.control,
|
|
8007
|
-
form: "warehouse-form",
|
|
8008
|
-
label: "isDefault",
|
|
8009
|
-
name: "isDefault"
|
|
8010
|
-
}), jsx(CheckboxInput, {
|
|
8011
|
-
checkboxLabel: t("manage-warehouses:returnToAddressIsDifferent"),
|
|
8012
|
-
control: form.control,
|
|
8013
|
-
"data-testid": "returnToAddressIsDifferent",
|
|
8014
|
-
form: "warehouse-form",
|
|
8015
|
-
label: "returnToAddressIsDifferent",
|
|
8016
|
-
name: "returnToAddressIsDifferent",
|
|
8017
|
-
onClick: e => {
|
|
8018
|
-
if (e.currentTarget.checked) {
|
|
8019
|
-
form.reset(formValues => Object.assign(Object.assign({}, formValues), {
|
|
8020
|
-
returnAddress: Object.assign(Object.assign({}, {}), {
|
|
8021
|
-
addressResidentialIndicator: false,
|
|
8022
|
-
companyName: "",
|
|
8023
|
-
countryCode: "US"
|
|
8024
|
-
}),
|
|
8025
|
-
returnToAddressIsDifferent: true
|
|
8026
|
-
}), {
|
|
8027
|
-
keepErrors: true
|
|
8028
|
-
});
|
|
8029
|
-
}
|
|
8030
|
-
}
|
|
8031
|
-
}), form.watch("returnToAddressIsDifferent") && jsxs(Fragment, {
|
|
8032
|
-
children: [jsx(AddressFields, {
|
|
8033
|
-
form: form,
|
|
8034
|
-
formatFieldName: fieldName => `returnAddress.${fieldName}`,
|
|
8035
|
-
optionalFields: ["addressLine2"]
|
|
8036
|
-
}), jsx(CheckboxInput, {
|
|
8037
|
-
checkboxLabel: t("manage-warehouses:residentialAddress"),
|
|
8038
|
-
control: form.control,
|
|
8039
|
-
form: "warehouse-form",
|
|
8040
|
-
label: "returnAddress.addressResidentialIndicator",
|
|
8041
|
-
name: "returnAddress.addressResidentialIndicator"
|
|
8042
|
-
})]
|
|
8043
|
-
}), jsxs(ButtonGroup, Object.assign({
|
|
8044
|
-
justify: "center"
|
|
8045
|
-
}, {
|
|
8046
|
-
children: [onDelete && jsx(Button, Object.assign({
|
|
8047
|
-
bold: false,
|
|
8048
|
-
onClick: onDelete,
|
|
8049
|
-
type: "button",
|
|
8050
|
-
variant: ButtonVariant.TEXT
|
|
8051
|
-
}, {
|
|
8052
|
-
children: t("actions.remove")
|
|
8053
|
-
})), jsxs(ButtonGroup, Object.assign({
|
|
8054
|
-
justify: _isOnboarding ? "center" : "end"
|
|
8055
|
-
}, {
|
|
8056
|
-
children: [onCancel && jsx(Button, Object.assign({
|
|
8057
|
-
bold: false,
|
|
8058
|
-
onClick: onCancel,
|
|
8059
|
-
type: "button",
|
|
8060
|
-
variant: ButtonVariant.TEXT
|
|
8061
|
-
}, {
|
|
8062
|
-
children: t("actions.cancel")
|
|
8063
|
-
})), jsx(SubmitButton, Object.assign({
|
|
8064
|
-
control: form.control,
|
|
8065
|
-
"data-testid": "warehouseFormSubmitButton",
|
|
8066
|
-
form: "warehouse-form",
|
|
8067
|
-
requireDirty: true,
|
|
8068
|
-
variant: _isOnboarding ? ButtonVariant.FILLED : ButtonVariant.OUTLINED
|
|
8069
|
-
}, {
|
|
8070
|
-
children: submitButtonTitle
|
|
8071
|
-
}))]
|
|
8072
|
-
}))]
|
|
8073
|
-
}))]
|
|
8074
|
-
}));
|
|
8075
|
-
};
|
|
8076
|
-
|
|
8077
|
-
const WarehousePreferenceSelect = ({
|
|
8078
|
-
onCancel,
|
|
8079
|
-
onSubmit,
|
|
8080
|
-
originAddress,
|
|
8081
|
-
returnAddress
|
|
7784
|
+
const AddressPreferenceSelect = ({
|
|
7785
|
+
onCancel,
|
|
7786
|
+
onSubmit,
|
|
7787
|
+
originAddress,
|
|
7788
|
+
returnAddress
|
|
8082
7789
|
}) => {
|
|
8083
7790
|
const {
|
|
8084
7791
|
t
|
|
@@ -8272,72 +7979,437 @@ const WarehousePreferenceSelect = ({
|
|
|
8272
7979
|
children: t("common:address.preference.confirm")
|
|
8273
7980
|
}))]
|
|
8274
7981
|
}))]
|
|
8275
|
-
});
|
|
7982
|
+
});
|
|
7983
|
+
};
|
|
7984
|
+
|
|
7985
|
+
const AddressPreferenceContext = /*#__PURE__*/createContext(undefined);
|
|
7986
|
+
const AddressPreferenceProvider = props => {
|
|
7987
|
+
const {
|
|
7988
|
+
children,
|
|
7989
|
+
className,
|
|
7990
|
+
formHeader,
|
|
7991
|
+
onSubmit
|
|
7992
|
+
} = props;
|
|
7993
|
+
const [passengerData, setPassengerData] = useState();
|
|
7994
|
+
const {
|
|
7995
|
+
validate: validateAddress,
|
|
7996
|
+
validationPreference,
|
|
7997
|
+
setValidationPreference
|
|
7998
|
+
} = useAddressValidation();
|
|
7999
|
+
const internalValidateAddress = payload => __awaiter(void 0, void 0, void 0, function* () {
|
|
8000
|
+
const {
|
|
8001
|
+
addresses,
|
|
8002
|
+
onValid,
|
|
8003
|
+
data
|
|
8004
|
+
} = payload;
|
|
8005
|
+
const validationPreference = yield validateAddress(addresses);
|
|
8006
|
+
const {
|
|
8007
|
+
originAddress,
|
|
8008
|
+
returnAddress
|
|
8009
|
+
} = validationPreference;
|
|
8010
|
+
setPassengerData(data);
|
|
8011
|
+
if (_$2.isEqual(addresses.originAddress, _$2.omit(validationPreference.originAddress, ["addressLine3", "addressResidentialIndicator"]))) {
|
|
8012
|
+
yield onValid({
|
|
8013
|
+
originAddress: addresses.originAddress,
|
|
8014
|
+
returnAddress: addresses === null || addresses === void 0 ? void 0 : addresses.returnAddress
|
|
8015
|
+
});
|
|
8016
|
+
setValidationPreference(undefined);
|
|
8017
|
+
return;
|
|
8018
|
+
}
|
|
8019
|
+
if ((originAddress.validationType === "EXACT" || originAddress.validationType === "SOFT") && returnAddress && (returnAddress.validationType === "EXACT" || returnAddress.validationType === "SOFT")) {
|
|
8020
|
+
yield onValid({
|
|
8021
|
+
originAddress: originAddress.address,
|
|
8022
|
+
returnAddress: returnAddress.address
|
|
8023
|
+
});
|
|
8024
|
+
setValidationPreference(undefined);
|
|
8025
|
+
return;
|
|
8026
|
+
}
|
|
8027
|
+
if ((originAddress.validationType === "EXACT" || originAddress.validationType === "SOFT") && !returnAddress) {
|
|
8028
|
+
yield onValid({
|
|
8029
|
+
originAddress: originAddress.address
|
|
8030
|
+
});
|
|
8031
|
+
setValidationPreference(undefined);
|
|
8032
|
+
return;
|
|
8033
|
+
}
|
|
8034
|
+
});
|
|
8035
|
+
return jsx(AddressPreferenceContext.Provider, Object.assign({
|
|
8036
|
+
value: {
|
|
8037
|
+
data: passengerData,
|
|
8038
|
+
validateAddress: internalValidateAddress,
|
|
8039
|
+
validationPreference
|
|
8040
|
+
}
|
|
8041
|
+
}, {
|
|
8042
|
+
children: jsxs("div", Object.assign({
|
|
8043
|
+
className: className
|
|
8044
|
+
}, {
|
|
8045
|
+
children: [formHeader, !validationPreference ? children : jsx(AddressPreferenceSelect, {
|
|
8046
|
+
onCancel: () => setValidationPreference(undefined),
|
|
8047
|
+
onSubmit: payload => __awaiter(void 0, void 0, void 0, function* () {
|
|
8048
|
+
yield onSubmit(Object.assign(Object.assign({}, payload), {
|
|
8049
|
+
passengerData
|
|
8050
|
+
}));
|
|
8051
|
+
setValidationPreference(undefined);
|
|
8052
|
+
}),
|
|
8053
|
+
originAddress: validationPreference.originAddress,
|
|
8054
|
+
returnAddress: validationPreference.returnAddress
|
|
8055
|
+
})]
|
|
8056
|
+
}))
|
|
8057
|
+
}));
|
|
8058
|
+
};
|
|
8059
|
+
const useAddressPreference = () => {
|
|
8060
|
+
const context = useContext(AddressPreferenceContext);
|
|
8061
|
+
if (context === undefined) {
|
|
8062
|
+
throw new Error("useAddressPreference must be used within the AddressPreferenceProvider");
|
|
8063
|
+
}
|
|
8064
|
+
return context;
|
|
8065
|
+
};
|
|
8066
|
+
|
|
8067
|
+
const styles$5 = createStyles({
|
|
8068
|
+
body: theme => ({
|
|
8069
|
+
borderTop: `1px solid ${theme.palette.gray.light}`,
|
|
8070
|
+
color: theme.palette.black,
|
|
8071
|
+
lineHeight: theme.spacing(0.05),
|
|
8072
|
+
marginRight: theme.spacing(2),
|
|
8073
|
+
padding: theme.spacing(2),
|
|
8074
|
+
textTransform: "uppercase",
|
|
8075
|
+
width: "100%"
|
|
8076
|
+
}),
|
|
8077
|
+
container: theme => ({
|
|
8078
|
+
border: `1px solid ${theme.palette.gray.light}`,
|
|
8079
|
+
borderRadius: theme.borderRadius.M,
|
|
8080
|
+
boxSizing: "border-box",
|
|
8081
|
+
width: "100%"
|
|
8082
|
+
}),
|
|
8083
|
+
header: theme => ({
|
|
8084
|
+
alignItems: "center",
|
|
8085
|
+
borderRadius: 2,
|
|
8086
|
+
color: theme.palette.black,
|
|
8087
|
+
display: "flex",
|
|
8088
|
+
justifyContent: "space-between",
|
|
8089
|
+
padding: theme.spacing(2),
|
|
8090
|
+
width: "100%"
|
|
8091
|
+
}),
|
|
8092
|
+
title: theme => ({
|
|
8093
|
+
alignItems: "center",
|
|
8094
|
+
display: "flex",
|
|
8095
|
+
gap: theme.spacing(),
|
|
8096
|
+
justifyContent: "space-between"
|
|
8097
|
+
}),
|
|
8098
|
+
verticalContainer: theme => ({
|
|
8099
|
+
alignItems: "center",
|
|
8100
|
+
border: `1px solid ${theme.palette.gray.light}`,
|
|
8101
|
+
borderRadius: theme.borderRadius.M,
|
|
8102
|
+
boxSizing: "border-box",
|
|
8103
|
+
display: "flex",
|
|
8104
|
+
height: "100%",
|
|
8105
|
+
width: "100%"
|
|
8106
|
+
})
|
|
8107
|
+
});
|
|
8108
|
+
|
|
8109
|
+
const SettingsCard = ({
|
|
8110
|
+
accessoryAction,
|
|
8111
|
+
cardAction,
|
|
8112
|
+
children,
|
|
8113
|
+
subtitle,
|
|
8114
|
+
title,
|
|
8115
|
+
verticallyAligned
|
|
8116
|
+
}) => {
|
|
8117
|
+
return jsxs("div", Object.assign({
|
|
8118
|
+
css: verticallyAligned ? styles$5.verticalContainer : styles$5.container,
|
|
8119
|
+
"data-testid": "settingsCard"
|
|
8120
|
+
}, {
|
|
8121
|
+
children: [jsxs("div", Object.assign({
|
|
8122
|
+
css: styles$5.header
|
|
8123
|
+
}, {
|
|
8124
|
+
children: [jsxs("div", Object.assign({
|
|
8125
|
+
css: styles$5.title
|
|
8126
|
+
}, {
|
|
8127
|
+
children: [typeof title === "string" ? jsx(Typography, Object.assign({
|
|
8128
|
+
variant: "subtitle2"
|
|
8129
|
+
}, {
|
|
8130
|
+
children: title
|
|
8131
|
+
})) : title, subtitle && jsx(Tag, Object.assign({
|
|
8132
|
+
color: TagColor.GRAY,
|
|
8133
|
+
css: {
|
|
8134
|
+
textTransform: "capitalize"
|
|
8135
|
+
}
|
|
8136
|
+
}, {
|
|
8137
|
+
children: subtitle
|
|
8138
|
+
}))]
|
|
8139
|
+
})), jsx("div", Object.assign({
|
|
8140
|
+
css: {
|
|
8141
|
+
flexShrink: 0
|
|
8142
|
+
}
|
|
8143
|
+
}, {
|
|
8144
|
+
children: jsx(Link, Object.assign({
|
|
8145
|
+
onClick: cardAction.action,
|
|
8146
|
+
role: "button"
|
|
8147
|
+
}, {
|
|
8148
|
+
children: jsx(Typography, Object.assign({
|
|
8149
|
+
css: theme => ({
|
|
8150
|
+
flexShrink: 0,
|
|
8151
|
+
fontWeight: theme.typography.fontWeight.bold
|
|
8152
|
+
}),
|
|
8153
|
+
variant: "body2"
|
|
8154
|
+
}, {
|
|
8155
|
+
children: cardAction.name
|
|
8156
|
+
}))
|
|
8157
|
+
}))
|
|
8158
|
+
}))]
|
|
8159
|
+
})), children && jsx("div", Object.assign({
|
|
8160
|
+
css: styles$5.body
|
|
8161
|
+
}, {
|
|
8162
|
+
children: jsxs("div", {
|
|
8163
|
+
children: [children, accessoryAction && jsx(ButtonGroup, Object.assign({
|
|
8164
|
+
justify: "center"
|
|
8165
|
+
}, {
|
|
8166
|
+
children: jsx(Button, Object.assign({
|
|
8167
|
+
bold: false,
|
|
8168
|
+
color: ButtonColor.SECONDARY,
|
|
8169
|
+
onClick: accessoryAction.action,
|
|
8170
|
+
type: "button",
|
|
8171
|
+
variant: ButtonVariant.TEXT
|
|
8172
|
+
}, {
|
|
8173
|
+
children: accessoryAction.name
|
|
8174
|
+
}))
|
|
8175
|
+
}))]
|
|
8176
|
+
})
|
|
8177
|
+
}))]
|
|
8178
|
+
}));
|
|
8179
|
+
};
|
|
8180
|
+
|
|
8181
|
+
const WarehouseDisplay = ({
|
|
8182
|
+
warehouse
|
|
8183
|
+
}) => {
|
|
8184
|
+
const {
|
|
8185
|
+
t
|
|
8186
|
+
} = useTranslation();
|
|
8187
|
+
const {
|
|
8188
|
+
originAddress,
|
|
8189
|
+
returnAddress
|
|
8190
|
+
} = warehouse;
|
|
8191
|
+
return jsxs(Grid, Object.assign({
|
|
8192
|
+
"data-testid": "warehouseDisplay",
|
|
8193
|
+
noPadding: true
|
|
8194
|
+
}, {
|
|
8195
|
+
children: [jsx(GridChild, Object.assign({
|
|
8196
|
+
colSpan: 3
|
|
8197
|
+
}, {
|
|
8198
|
+
children: jsx(Typography, Object.assign({
|
|
8199
|
+
css: {
|
|
8200
|
+
textTransform: "capitalize"
|
|
8201
|
+
},
|
|
8202
|
+
variant: "subtitle2"
|
|
8203
|
+
}, {
|
|
8204
|
+
children: t("manage-warehouses:shipFrom")
|
|
8205
|
+
}))
|
|
8206
|
+
})), jsx(GridChild, Object.assign({
|
|
8207
|
+
colSpan: 8
|
|
8208
|
+
}, {
|
|
8209
|
+
children: jsx(AddressDisplay, {
|
|
8210
|
+
address: originAddress,
|
|
8211
|
+
nickname: warehouse.name
|
|
8212
|
+
})
|
|
8213
|
+
})), jsx(GridChild, Object.assign({
|
|
8214
|
+
colSpan: 3
|
|
8215
|
+
}, {
|
|
8216
|
+
children: jsx(Typography, Object.assign({
|
|
8217
|
+
css: {
|
|
8218
|
+
textTransform: "capitalize"
|
|
8219
|
+
},
|
|
8220
|
+
variant: "subtitle2"
|
|
8221
|
+
}, {
|
|
8222
|
+
children: t("manage-warehouses:returnTo")
|
|
8223
|
+
}))
|
|
8224
|
+
})), jsx(GridChild, Object.assign({
|
|
8225
|
+
colSpan: 8
|
|
8226
|
+
}, {
|
|
8227
|
+
children: jsx(AddressDisplay, {
|
|
8228
|
+
address: returnAddress,
|
|
8229
|
+
nickname: warehouse.name
|
|
8230
|
+
})
|
|
8231
|
+
}))]
|
|
8232
|
+
}));
|
|
8276
8233
|
};
|
|
8277
8234
|
|
|
8278
|
-
const
|
|
8279
|
-
|
|
8280
|
-
|
|
8235
|
+
const postalCodeRegex$1 = /(^\d{5}$)|(^\d{5}-\d{4}$)/;
|
|
8236
|
+
const warehouseAddressSchema = addressSchema.extend({
|
|
8237
|
+
addressResidentialIndicator: z.preprocess(v => v === "yes" ? true : false, z.boolean().default(false).transform(value => value ? "yes" : "no")),
|
|
8238
|
+
companyName: z.string().trim().min(1),
|
|
8239
|
+
phone: z.string().trim().min(1)
|
|
8240
|
+
}).refine(schema => !schema.phone || isValidPhoneNumber(schema.phone, schema.countryCode), {
|
|
8241
|
+
message: "schemaErrors.notAValidPhoneNumber",
|
|
8242
|
+
path: ["phone"]
|
|
8243
|
+
}).refine(schema => {
|
|
8244
|
+
if (schema.countryCode === "US") {
|
|
8245
|
+
return schema.stateProvince && usStateCodes.includes(schema.stateProvince);
|
|
8246
|
+
}
|
|
8247
|
+
return true;
|
|
8248
|
+
}, {
|
|
8249
|
+
message: "schemaErrors.invalidStateProvince",
|
|
8250
|
+
path: ["stateProvince"]
|
|
8251
|
+
}).refine(schema => {
|
|
8252
|
+
if (schema.countryCode === "US") {
|
|
8253
|
+
return postalCodeRegex$1.test(schema.postalCode);
|
|
8254
|
+
}
|
|
8255
|
+
return true;
|
|
8256
|
+
}, {
|
|
8257
|
+
message: "schemaErrors.invalidPostalCode",
|
|
8258
|
+
path: ["postalCode"]
|
|
8259
|
+
});
|
|
8260
|
+
const warehouseSchema = z.discriminatedUnion("returnToAddressIsDifferent", [z.object({
|
|
8261
|
+
isDefault: z.boolean(),
|
|
8262
|
+
name: z.string().trim().min(1),
|
|
8263
|
+
originAddress: warehouseAddressSchema,
|
|
8264
|
+
returnAddress: warehouseAddressSchema,
|
|
8265
|
+
returnToAddressIsDifferent: z.literal(true)
|
|
8266
|
+
}), z.object({
|
|
8267
|
+
isDefault: z.boolean(),
|
|
8268
|
+
name: z.string().trim().min(1),
|
|
8269
|
+
originAddress: warehouseAddressSchema,
|
|
8270
|
+
returnToAddressIsDifferent: z.literal(false)
|
|
8271
|
+
})]);
|
|
8272
|
+
|
|
8273
|
+
const WarehouseForm = ({
|
|
8281
8274
|
isOnboarding: _isOnboarding = false,
|
|
8275
|
+
onCancel,
|
|
8276
|
+
onDelete,
|
|
8282
8277
|
onSubmit,
|
|
8283
|
-
onValidate,
|
|
8284
|
-
onWarehouseDelete,
|
|
8285
|
-
onWarehouseFormCancel,
|
|
8286
8278
|
submitButtonTitle,
|
|
8287
|
-
warehouse
|
|
8288
|
-
warehousePreference
|
|
8279
|
+
warehouse
|
|
8289
8280
|
}) => {
|
|
8290
|
-
const
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
returnAddress: returnAddress.address
|
|
8302
|
-
});
|
|
8303
|
-
return;
|
|
8304
|
-
}
|
|
8305
|
-
if ((originAddress.validationType === "EXACT" || originAddress.validationType === "SOFT") && !returnAddress) {
|
|
8306
|
-
yield onSubmit({
|
|
8307
|
-
isDefault: !!warehousePreference.isDefault,
|
|
8308
|
-
name: warehousePreference.name,
|
|
8309
|
-
originAddress: originAddress.address
|
|
8310
|
-
});
|
|
8311
|
-
return;
|
|
8312
|
-
} else return;
|
|
8313
|
-
});
|
|
8314
|
-
return jsxs("div", Object.assign({
|
|
8315
|
-
className: className
|
|
8316
|
-
}, {
|
|
8317
|
-
children: [formHeader && formHeader, currentStep === 0 ? jsx(WarehouseForm, {
|
|
8318
|
-
isOnboarding: _isOnboarding,
|
|
8319
|
-
onCancel: onWarehouseFormCancel ? () => onWarehouseFormCancel() : undefined,
|
|
8320
|
-
onDelete: onWarehouseDelete ? () => onWarehouseDelete() : undefined,
|
|
8321
|
-
onSubmit: payload => __awaiter(void 0, void 0, void 0, function* () {
|
|
8322
|
-
const result = yield onValidate(payload);
|
|
8323
|
-
yield checkForExactOrSoft(result);
|
|
8324
|
-
setCurrentStep(1);
|
|
8281
|
+
const {
|
|
8282
|
+
t
|
|
8283
|
+
} = useTranslation(["common", "manage-warehouses"]);
|
|
8284
|
+
const {
|
|
8285
|
+
validateAddress
|
|
8286
|
+
} = useAddressPreference();
|
|
8287
|
+
const form = useForm({
|
|
8288
|
+
defaultValues: warehouse ? Object.assign(Object.assign({}, warehouse), {
|
|
8289
|
+
isDefault: warehouse.isDefault,
|
|
8290
|
+
originAddress: Object.assign(Object.assign({}, warehouse.originAddress), {
|
|
8291
|
+
countryCode: warehouse.originAddress.countryCode
|
|
8325
8292
|
}),
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8330
|
-
|
|
8331
|
-
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
originAddress: payload.originAddress,
|
|
8335
|
-
returnAddress: payload.returnAddress
|
|
8336
|
-
});
|
|
8293
|
+
returnAddress: Object.assign(Object.assign({}, warehouse.returnAddress), {
|
|
8294
|
+
countryCode: warehouse.returnAddress.countryCode
|
|
8295
|
+
}),
|
|
8296
|
+
returnToAddressIsDifferent: !isEqual(warehouse.originAddress, warehouse.returnAddress)
|
|
8297
|
+
}) : {
|
|
8298
|
+
isDefault: _isOnboarding ? true : false,
|
|
8299
|
+
originAddress: {
|
|
8300
|
+
addressResidentialIndicator: false
|
|
8337
8301
|
},
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8302
|
+
returnToAddressIsDifferent: false
|
|
8303
|
+
},
|
|
8304
|
+
resolver: validationResolver(warehouseSchema)
|
|
8305
|
+
});
|
|
8306
|
+
const handleSubmit = form.handleSubmit(values => __awaiter(void 0, void 0, void 0, function* () {
|
|
8307
|
+
const _a = values,
|
|
8308
|
+
payload = __rest(_a, ["returnToAddressIsDifferent"]);
|
|
8309
|
+
yield validateAddress({
|
|
8310
|
+
addresses: payload,
|
|
8311
|
+
data: {
|
|
8312
|
+
isDefault: payload.isDefault,
|
|
8313
|
+
name: payload.name
|
|
8314
|
+
},
|
|
8315
|
+
onValid: validatedAddressesPayload => {
|
|
8316
|
+
onSubmit(Object.assign(Object.assign({}, validatedAddressesPayload), {
|
|
8317
|
+
isDefault: payload.isDefault,
|
|
8318
|
+
name: payload.name
|
|
8319
|
+
}));
|
|
8320
|
+
}
|
|
8321
|
+
});
|
|
8322
|
+
}));
|
|
8323
|
+
return jsxs("form", Object.assign({
|
|
8324
|
+
id: "warehouse-form",
|
|
8325
|
+
onSubmit: formLogger.capture(handleSubmit)
|
|
8326
|
+
}, {
|
|
8327
|
+
children: [jsx(TextInput, {
|
|
8328
|
+
control: form.control,
|
|
8329
|
+
form: "warehouse-form",
|
|
8330
|
+
label: t("manage-warehouses:locationName"),
|
|
8331
|
+
name: "name",
|
|
8332
|
+
nativeLabel: true
|
|
8333
|
+
}), jsx(AddressFields, {
|
|
8334
|
+
form: form,
|
|
8335
|
+
formatFieldName: fieldName => `originAddress.${fieldName}`,
|
|
8336
|
+
optionalFields: ["addressLine2"]
|
|
8337
|
+
}), jsx(CheckboxInput, {
|
|
8338
|
+
checkboxLabel: t("manage-warehouses:residentialAddress"),
|
|
8339
|
+
control: form.control,
|
|
8340
|
+
form: "warehouse-form",
|
|
8341
|
+
label: "originAddress.addressResidentialIndicator",
|
|
8342
|
+
name: "originAddress.addressResidentialIndicator"
|
|
8343
|
+
}), !_isOnboarding && jsx(CheckboxInput, {
|
|
8344
|
+
checkboxLabel: t("manage-warehouses:isDefault"),
|
|
8345
|
+
control: form.control,
|
|
8346
|
+
form: "warehouse-form",
|
|
8347
|
+
label: "isDefault",
|
|
8348
|
+
name: "isDefault"
|
|
8349
|
+
}), jsx(CheckboxInput, {
|
|
8350
|
+
checkboxLabel: t("manage-warehouses:returnToAddressIsDifferent"),
|
|
8351
|
+
control: form.control,
|
|
8352
|
+
"data-testid": "returnToAddressIsDifferent",
|
|
8353
|
+
form: "warehouse-form",
|
|
8354
|
+
label: "returnToAddressIsDifferent",
|
|
8355
|
+
name: "returnToAddressIsDifferent",
|
|
8356
|
+
onClick: e => {
|
|
8357
|
+
if (e.currentTarget.checked) {
|
|
8358
|
+
form.reset(formValues => Object.assign(Object.assign({}, formValues), {
|
|
8359
|
+
returnAddress: Object.assign(Object.assign({}, {}), {
|
|
8360
|
+
addressResidentialIndicator: false,
|
|
8361
|
+
companyName: "",
|
|
8362
|
+
countryCode: "US"
|
|
8363
|
+
}),
|
|
8364
|
+
returnToAddressIsDifferent: true
|
|
8365
|
+
}), {
|
|
8366
|
+
keepErrors: true
|
|
8367
|
+
});
|
|
8368
|
+
}
|
|
8369
|
+
}
|
|
8370
|
+
}), form.watch("returnToAddressIsDifferent") && jsxs(Fragment, {
|
|
8371
|
+
children: [jsx(AddressFields, {
|
|
8372
|
+
form: form,
|
|
8373
|
+
formatFieldName: fieldName => `returnAddress.${fieldName}`,
|
|
8374
|
+
optionalFields: ["addressLine2"]
|
|
8375
|
+
}), jsx(CheckboxInput, {
|
|
8376
|
+
checkboxLabel: t("manage-warehouses:residentialAddress"),
|
|
8377
|
+
control: form.control,
|
|
8378
|
+
form: "warehouse-form",
|
|
8379
|
+
label: "returnAddress.addressResidentialIndicator",
|
|
8380
|
+
name: "returnAddress.addressResidentialIndicator"
|
|
8381
|
+
})]
|
|
8382
|
+
}), jsxs(ButtonGroup, Object.assign({
|
|
8383
|
+
justify: "center"
|
|
8384
|
+
}, {
|
|
8385
|
+
children: [onDelete && jsx(Button, Object.assign({
|
|
8386
|
+
bold: false,
|
|
8387
|
+
onClick: onDelete,
|
|
8388
|
+
type: "button",
|
|
8389
|
+
variant: ButtonVariant.TEXT
|
|
8390
|
+
}, {
|
|
8391
|
+
children: t("actions.remove")
|
|
8392
|
+
})), jsxs(ButtonGroup, Object.assign({
|
|
8393
|
+
justify: _isOnboarding ? "center" : "end"
|
|
8394
|
+
}, {
|
|
8395
|
+
children: [onCancel && jsx(Button, Object.assign({
|
|
8396
|
+
bold: false,
|
|
8397
|
+
onClick: onCancel,
|
|
8398
|
+
type: "button",
|
|
8399
|
+
variant: ButtonVariant.TEXT
|
|
8400
|
+
}, {
|
|
8401
|
+
children: t("actions.cancel")
|
|
8402
|
+
})), jsx(SubmitButton, Object.assign({
|
|
8403
|
+
control: form.control,
|
|
8404
|
+
"data-testid": "warehouseFormSubmitButton",
|
|
8405
|
+
form: "warehouse-form",
|
|
8406
|
+
requireDirty: true,
|
|
8407
|
+
variant: _isOnboarding ? ButtonVariant.FILLED : ButtonVariant.OUTLINED
|
|
8408
|
+
}, {
|
|
8409
|
+
children: submitButtonTitle
|
|
8410
|
+
}))]
|
|
8411
|
+
}))]
|
|
8412
|
+
}))]
|
|
8341
8413
|
}));
|
|
8342
8414
|
};
|
|
8343
8415
|
|
|
@@ -8362,9 +8434,6 @@ const ManageWarehouses$1 = ({
|
|
|
8362
8434
|
onDelete,
|
|
8363
8435
|
onEdit,
|
|
8364
8436
|
onSetDefault,
|
|
8365
|
-
onValidate,
|
|
8366
|
-
setWarehousePreference,
|
|
8367
|
-
warehousePreference,
|
|
8368
8437
|
warehouses
|
|
8369
8438
|
}) => {
|
|
8370
8439
|
const {
|
|
@@ -8373,7 +8442,7 @@ const ManageWarehouses$1 = ({
|
|
|
8373
8442
|
const [editWarehouseId, setEditWarehouseId] = useState();
|
|
8374
8443
|
const [showAddNewWarehouseForm, toggleShowAddNewWarehouseForm] = useToggle(false);
|
|
8375
8444
|
return jsxs(Fragment, {
|
|
8376
|
-
children: [showAddNewWarehouseForm ? jsx(
|
|
8445
|
+
children: [showAddNewWarehouseForm ? jsx(AddressPreferenceProvider, Object.assign({
|
|
8377
8446
|
css: styles$4.well,
|
|
8378
8447
|
formHeader: jsxs("div", Object.assign({
|
|
8379
8448
|
css: styles$4.header
|
|
@@ -8387,15 +8456,19 @@ const ManageWarehouses$1 = ({
|
|
|
8387
8456
|
})]
|
|
8388
8457
|
})),
|
|
8389
8458
|
onSubmit: payload => {
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8393
|
-
|
|
8394
|
-
|
|
8395
|
-
|
|
8396
|
-
|
|
8397
|
-
|
|
8398
|
-
|
|
8459
|
+
const {
|
|
8460
|
+
passengerData
|
|
8461
|
+
} = payload,
|
|
8462
|
+
rest = __rest(payload, ["passengerData"]);
|
|
8463
|
+
onAdd(Object.assign(Object.assign({}, rest), passengerData));
|
|
8464
|
+
}
|
|
8465
|
+
}, {
|
|
8466
|
+
children: jsx(WarehouseForm, {
|
|
8467
|
+
onCancel: () => toggleShowAddNewWarehouseForm(false),
|
|
8468
|
+
onSubmit: payload => onAdd(payload),
|
|
8469
|
+
submitButtonTitle: t("actions.save")
|
|
8470
|
+
})
|
|
8471
|
+
})) : jsx(ButtonGroup, Object.assign({
|
|
8399
8472
|
justify: "end"
|
|
8400
8473
|
}, {
|
|
8401
8474
|
children: jsxs(Button, Object.assign({
|
|
@@ -8420,7 +8493,7 @@ const ManageWarehouses$1 = ({
|
|
|
8420
8493
|
return sortByCreationDate(a, b, "desc");
|
|
8421
8494
|
}).map(warehouse => {
|
|
8422
8495
|
if (editWarehouseId && editWarehouseId === warehouse.warehouseId) {
|
|
8423
|
-
return jsx(
|
|
8496
|
+
return jsx(AddressPreferenceProvider, Object.assign({
|
|
8424
8497
|
css: styles$4.well,
|
|
8425
8498
|
formHeader: jsxs("div", Object.assign({
|
|
8426
8499
|
css: styles$4.header
|
|
@@ -8434,17 +8507,24 @@ const ManageWarehouses$1 = ({
|
|
|
8434
8507
|
})]
|
|
8435
8508
|
})),
|
|
8436
8509
|
onSubmit: payload => {
|
|
8437
|
-
|
|
8510
|
+
const {
|
|
8511
|
+
passengerData: warehouseData
|
|
8512
|
+
} = payload,
|
|
8513
|
+
rest = __rest(payload, ["passengerData"]);
|
|
8514
|
+
onEdit(Object.assign(Object.assign({}, rest), warehouseData), warehouse.warehouseId);
|
|
8438
8515
|
setEditWarehouseId(undefined);
|
|
8439
|
-
|
|
8440
|
-
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8516
|
+
}
|
|
8517
|
+
}, {
|
|
8518
|
+
children: jsx(WarehouseForm, {
|
|
8519
|
+
onCancel: () => setEditWarehouseId(undefined),
|
|
8520
|
+
onDelete: warehouse.isDefault ? undefined : () => onDelete(warehouse.warehouseId),
|
|
8521
|
+
onSubmit: payload => __awaiter(void 0, void 0, void 0, function* () {
|
|
8522
|
+
return onEdit(payload, warehouse.warehouseId);
|
|
8523
|
+
}),
|
|
8524
|
+
submitButtonTitle: t("actions.save"),
|
|
8525
|
+
warehouse: warehouse
|
|
8526
|
+
})
|
|
8527
|
+
}), warehouse.warehouseId);
|
|
8448
8528
|
} else {
|
|
8449
8529
|
return jsx(SettingsCard, Object.assign({
|
|
8450
8530
|
accessoryAction: warehouse.isDefault ? undefined : {
|
|
@@ -9424,7 +9504,8 @@ const BillingFields = ({
|
|
|
9424
9504
|
label: t("billing.fields.cardNumber"),
|
|
9425
9505
|
labelWeight: "normal",
|
|
9426
9506
|
name: "creditCard.number",
|
|
9427
|
-
nativeLabel: true
|
|
9507
|
+
nativeLabel: true,
|
|
9508
|
+
placeholder: t("billing.fields.cardNumberPlaceholder")
|
|
9428
9509
|
}), jsxs("div", Object.assign({
|
|
9429
9510
|
css: theme => ({
|
|
9430
9511
|
display: "flex",
|
|
@@ -9443,7 +9524,8 @@ const BillingFields = ({
|
|
|
9443
9524
|
labelWeight: "normal",
|
|
9444
9525
|
maxLength: 7,
|
|
9445
9526
|
name: "creditCard.expiration",
|
|
9446
|
-
nativeLabel: true
|
|
9527
|
+
nativeLabel: true,
|
|
9528
|
+
placeholder: t("billing.fields.expirationPlaceholder")
|
|
9447
9529
|
})
|
|
9448
9530
|
})), jsx("div", Object.assign({
|
|
9449
9531
|
css: {
|
|
@@ -9456,7 +9538,8 @@ const BillingFields = ({
|
|
|
9456
9538
|
labelWeight: "normal",
|
|
9457
9539
|
maxLength: 4,
|
|
9458
9540
|
name: "creditCard.cvv",
|
|
9459
|
-
nativeLabel: true
|
|
9541
|
+
nativeLabel: true,
|
|
9542
|
+
placeholder: t("billing.fields.cvvPlaceholder")
|
|
9460
9543
|
})
|
|
9461
9544
|
}))]
|
|
9462
9545
|
}))]
|
|
@@ -9497,7 +9580,7 @@ const creditCardSchema = z.object({
|
|
|
9497
9580
|
expiration: z.string().trim().refine(expiration => {
|
|
9498
9581
|
const [expirationMonth, expirationYear] = expiration.split("/");
|
|
9499
9582
|
return expirationMonths.includes(expirationMonth) && expirationYears.includes(expirationYear);
|
|
9500
|
-
}, "
|
|
9583
|
+
}, "schemaErrors.invalidExpirationDate"),
|
|
9501
9584
|
name: z.string().trim().min(1),
|
|
9502
9585
|
number: z.string().trim().refine(number => cardValidator.number(number).isValid, "Invalid card number").refine(number => {
|
|
9503
9586
|
var _a, _b;
|
|
@@ -9593,13 +9676,7 @@ const EditWalletAddressForm = ({
|
|
|
9593
9676
|
const styles$3 = createStyles({
|
|
9594
9677
|
grid: theme => ({
|
|
9595
9678
|
margin: theme.spacing(4)
|
|
9596
|
-
})
|
|
9597
|
-
heading: {
|
|
9598
|
-
textAlign: "center"
|
|
9599
|
-
},
|
|
9600
|
-
subtitle: {
|
|
9601
|
-
textAlign: "center"
|
|
9602
|
-
}
|
|
9679
|
+
})
|
|
9603
9680
|
});
|
|
9604
9681
|
|
|
9605
9682
|
const WalletForm = ({
|
|
@@ -9611,6 +9688,9 @@ const WalletForm = ({
|
|
|
9611
9688
|
t
|
|
9612
9689
|
} = useTranslation(["register-wallet", "common"]);
|
|
9613
9690
|
const defaultWarehouseIsPoBox = isPoBoxAddress(address);
|
|
9691
|
+
const {
|
|
9692
|
+
validateAddress
|
|
9693
|
+
} = useAddressPreference();
|
|
9614
9694
|
const form = useForm({
|
|
9615
9695
|
defaultValues:
|
|
9616
9696
|
// If the warehouse address is a PO Box they cannot use it as their billing address
|
|
@@ -9628,7 +9708,20 @@ const WalletForm = ({
|
|
|
9628
9708
|
const watchAddress = form.watch("address");
|
|
9629
9709
|
const handleSubmit = form.handleSubmit(values => __awaiter(void 0, void 0, void 0, function* () {
|
|
9630
9710
|
const payload = __rest(values, []);
|
|
9631
|
-
yield
|
|
9711
|
+
yield validateAddress({
|
|
9712
|
+
addresses: {
|
|
9713
|
+
originAddress: payload.address
|
|
9714
|
+
},
|
|
9715
|
+
data: {
|
|
9716
|
+
creditCard: payload.creditCard
|
|
9717
|
+
},
|
|
9718
|
+
onValid: validatedAddressesPayload => {
|
|
9719
|
+
onSubmit({
|
|
9720
|
+
address: validatedAddressesPayload.originAddress,
|
|
9721
|
+
creditCard: payload.creditCard
|
|
9722
|
+
});
|
|
9723
|
+
}
|
|
9724
|
+
});
|
|
9632
9725
|
}));
|
|
9633
9726
|
const [editWalletAddressForm, isEditWalletAddressFormOpen, toggleIsEditWalletAddressFormOpen] = useNestedForm(EditWalletAddressForm, {
|
|
9634
9727
|
address: watchAddress,
|
|
@@ -9648,36 +9741,13 @@ const WalletForm = ({
|
|
|
9648
9741
|
children: [jsx(GridChild, Object.assign({
|
|
9649
9742
|
colSpan: 12
|
|
9650
9743
|
}, {
|
|
9651
|
-
children: jsx(
|
|
9652
|
-
css: styles$3.heading,
|
|
9653
|
-
variant: "heading4"
|
|
9654
|
-
}, {
|
|
9655
|
-
children: t("register-wallet:sections.billing.title")
|
|
9656
|
-
}))
|
|
9657
|
-
})), jsx(GridChild, Object.assign({
|
|
9658
|
-
colSpan: 12,
|
|
9659
|
-
css: styles$3.subtitle
|
|
9660
|
-
}, {
|
|
9661
|
-
children: jsx(Typography, Object.assign({
|
|
9662
|
-
variant: "subtitle1"
|
|
9663
|
-
}, {
|
|
9664
|
-
children: t("register-wallet:sections.billing.cardSubTitle")
|
|
9665
|
-
}))
|
|
9666
|
-
})), jsx(GridChild, Object.assign({
|
|
9667
|
-
colSpan: 12
|
|
9668
|
-
}, {
|
|
9669
|
-
children: (errors === null || errors === void 0 ? void 0 : errors.length) ? jsx(InlineNotification, Object.assign({
|
|
9744
|
+
children: (errors === null || errors === void 0 ? void 0 : errors.length) && jsx(InlineNotification, Object.assign({
|
|
9670
9745
|
title: t("register-wallet:sections.notifications.error.title"),
|
|
9671
9746
|
type: NotificationType.ERROR
|
|
9672
9747
|
}, {
|
|
9673
9748
|
children: errors.map(({
|
|
9674
9749
|
message
|
|
9675
9750
|
}) => message).join(" ")
|
|
9676
|
-
})) : jsx(InlineNotification, Object.assign({
|
|
9677
|
-
title: t("register-wallet:sections.notifications.info.title"),
|
|
9678
|
-
type: NotificationType.INFO
|
|
9679
|
-
}, {
|
|
9680
|
-
children: t("register-wallet:sections.notifications.info.description")
|
|
9681
9751
|
}))
|
|
9682
9752
|
})), jsx(GridChild, Object.assign({
|
|
9683
9753
|
colSpan: 12
|
|
@@ -9689,7 +9759,9 @@ const WalletForm = ({
|
|
|
9689
9759
|
colSpan: 12
|
|
9690
9760
|
}, {
|
|
9691
9761
|
children: jsx(Typography, Object.assign({
|
|
9692
|
-
css:
|
|
9762
|
+
css: {
|
|
9763
|
+
textAlign: "center"
|
|
9764
|
+
},
|
|
9693
9765
|
variant: "subtitle1"
|
|
9694
9766
|
}, {
|
|
9695
9767
|
children: t("register-wallet:sections.billing.addressSubTitle")
|
|
@@ -9746,11 +9818,20 @@ const WalletForm = ({
|
|
|
9746
9818
|
};
|
|
9747
9819
|
|
|
9748
9820
|
const styles$2 = createStyles({
|
|
9821
|
+
container: theme => ({
|
|
9822
|
+
padding: theme.spacing(2)
|
|
9823
|
+
}),
|
|
9749
9824
|
step: {
|
|
9750
9825
|
"& > span:last-child": {
|
|
9751
9826
|
position: "static"
|
|
9752
9827
|
}
|
|
9753
9828
|
},
|
|
9829
|
+
walletFormHeader: theme => ({
|
|
9830
|
+
margin: theme.spacing(4)
|
|
9831
|
+
}),
|
|
9832
|
+
walletFormTitle: {
|
|
9833
|
+
textAlign: "center"
|
|
9834
|
+
},
|
|
9754
9835
|
wrapper: theme => ({
|
|
9755
9836
|
height: "100%",
|
|
9756
9837
|
padding: theme.spacing(2),
|
|
@@ -9762,19 +9843,15 @@ const Onboarding$1 = ({
|
|
|
9762
9843
|
carriers,
|
|
9763
9844
|
createWarehouse,
|
|
9764
9845
|
onCarrierCreated,
|
|
9765
|
-
onWarehouseCreated,
|
|
9766
|
-
onValidateWarehouse,
|
|
9767
|
-
warehousePreference,
|
|
9768
|
-
setWarehousePreference,
|
|
9769
9846
|
onCompleteOnboarding,
|
|
9847
|
+
onWarehouseCreated,
|
|
9770
9848
|
registerDhlCarrier,
|
|
9771
9849
|
registerDhlCarrierErrors,
|
|
9772
9850
|
registerStampsCarrier,
|
|
9773
9851
|
registerStampsCarrierErrors,
|
|
9774
9852
|
registerUpsCarrier,
|
|
9775
9853
|
registerUpsCarrierErrors,
|
|
9776
|
-
warehouses
|
|
9777
|
-
validationErrors
|
|
9854
|
+
warehouses
|
|
9778
9855
|
}) => {
|
|
9779
9856
|
const {
|
|
9780
9857
|
t
|
|
@@ -9784,6 +9861,7 @@ const Onboarding$1 = ({
|
|
|
9784
9861
|
const [onboardingComplete, setOnboardingComplete] = useState(false);
|
|
9785
9862
|
const [agreedToTerms, setAgreedToTerms] = useState(false);
|
|
9786
9863
|
const [hasValidAddress, setHasValidAddress] = useState(true);
|
|
9864
|
+
const [hasCompletedBilling, setHasCompletedBilling] = useState(false);
|
|
9787
9865
|
// Partner accounts come provisioned with a Free Stamps wallet for getting rates, etc
|
|
9788
9866
|
// Make sure their Stamps carrier is not the Free one
|
|
9789
9867
|
// Once an account adds a UPS carrier to their Stamps wallet, the carrierCode changes from "stamps_com" => "usps"
|
|
@@ -9834,7 +9912,7 @@ const Onboarding$1 = ({
|
|
|
9834
9912
|
creditCard
|
|
9835
9913
|
}) => __awaiter(void 0, void 0, void 0, function* () {
|
|
9836
9914
|
setAddress(address);
|
|
9837
|
-
|
|
9915
|
+
setHasCompletedBilling(true);
|
|
9838
9916
|
yield registerStampsCarrier({
|
|
9839
9917
|
address: address,
|
|
9840
9918
|
agreeToCarrierTerms: agreedToTerms,
|
|
@@ -9873,7 +9951,7 @@ const Onboarding$1 = ({
|
|
|
9873
9951
|
}
|
|
9874
9952
|
if (agreedToTerms && !warehouses.length && !hasValidAddress) {
|
|
9875
9953
|
// Step 3: Add Ship From (Warehouse) Address
|
|
9876
|
-
return jsx(
|
|
9954
|
+
return jsx(AddressPreferenceProvider, Object.assign({
|
|
9877
9955
|
formHeader: jsxs("div", Object.assign({
|
|
9878
9956
|
css: {
|
|
9879
9957
|
textAlign: "center"
|
|
@@ -9893,24 +9971,77 @@ const Onboarding$1 = ({
|
|
|
9893
9971
|
multiplier: 1
|
|
9894
9972
|
})]
|
|
9895
9973
|
})),
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
|
|
9901
|
-
|
|
9902
|
-
|
|
9903
|
-
|
|
9904
|
-
|
|
9974
|
+
onSubmit: payload => __awaiter(void 0, void 0, void 0, function* () {
|
|
9975
|
+
const {
|
|
9976
|
+
passengerData
|
|
9977
|
+
} = payload,
|
|
9978
|
+
rest = __rest(payload, ["passengerData"]);
|
|
9979
|
+
yield handleCreateWarehouse(Object.assign(Object.assign({}, rest), passengerData));
|
|
9980
|
+
})
|
|
9981
|
+
}, {
|
|
9982
|
+
children: jsx(WarehouseForm, {
|
|
9983
|
+
isOnboarding: true,
|
|
9984
|
+
onSubmit: payload => __awaiter(void 0, void 0, void 0, function* () {
|
|
9985
|
+
return handleCreateWarehouse(payload);
|
|
9986
|
+
}),
|
|
9987
|
+
submitButtonTitle: t("actions.continue")
|
|
9988
|
+
})
|
|
9989
|
+
}));
|
|
9905
9990
|
}
|
|
9906
9991
|
// Step 4: Register Stamps Wallet, UPS, DHL
|
|
9907
|
-
if (agreedToTerms && warehouses.length && hasValidAddress && !hasStampsWallet) {
|
|
9992
|
+
if (agreedToTerms && warehouses.length && hasValidAddress && !hasStampsWallet && !hasCompletedBilling) {
|
|
9908
9993
|
const defaultWarehouse = (_a = warehouses.find(w => w.isDefault)) !== null && _a !== void 0 ? _a : warehouses[0];
|
|
9909
|
-
return jsx(
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
|
|
9913
|
-
|
|
9994
|
+
return jsx(AddressPreferenceProvider, Object.assign({
|
|
9995
|
+
formHeader: jsxs("div", Object.assign({
|
|
9996
|
+
css: styles$2.walletFormHeader
|
|
9997
|
+
}, {
|
|
9998
|
+
children: [jsxs("div", Object.assign({
|
|
9999
|
+
css: styles$2.walletFormTitle
|
|
10000
|
+
}, {
|
|
10001
|
+
children: [jsx(Typography, Object.assign({
|
|
10002
|
+
variant: "heading4"
|
|
10003
|
+
}, {
|
|
10004
|
+
children: t("register-wallet:sections.billing.title")
|
|
10005
|
+
})), jsx(Spacer, {
|
|
10006
|
+
multiplier: 2
|
|
10007
|
+
}), jsx(Typography, Object.assign({
|
|
10008
|
+
variant: "subtitle1"
|
|
10009
|
+
}, {
|
|
10010
|
+
children: t("register-wallet:sections.billing.cardSubTitle")
|
|
10011
|
+
}))]
|
|
10012
|
+
})), jsx(Spacer, {
|
|
10013
|
+
multiplier: 1
|
|
10014
|
+
}), (registerStampsCarrierErrors === null || registerStampsCarrierErrors === void 0 ? void 0 : registerStampsCarrierErrors.length) ? jsx(InlineNotification, Object.assign({
|
|
10015
|
+
title: t("register-wallet:sections.notifications.error.title"),
|
|
10016
|
+
type: NotificationType.ERROR
|
|
10017
|
+
}, {
|
|
10018
|
+
children: registerStampsCarrierErrors.map(({
|
|
10019
|
+
message
|
|
10020
|
+
}) => message).join(" ")
|
|
10021
|
+
})) : jsx(InlineNotification, Object.assign({
|
|
10022
|
+
title: t("register-wallet:sections.notifications.info.title"),
|
|
10023
|
+
type: NotificationType.INFO
|
|
10024
|
+
}, {
|
|
10025
|
+
children: t("register-wallet:sections.notifications.info.description")
|
|
10026
|
+
}))]
|
|
10027
|
+
})),
|
|
10028
|
+
onSubmit: payload => __awaiter(void 0, void 0, void 0, function* () {
|
|
10029
|
+
const {
|
|
10030
|
+
passengerData
|
|
10031
|
+
} = payload,
|
|
10032
|
+
rest = __rest(payload, ["passengerData"]);
|
|
10033
|
+
yield handleWalletRegistration(Object.assign(Object.assign({}, passengerData), {
|
|
10034
|
+
address: rest.originAddress
|
|
10035
|
+
}));
|
|
10036
|
+
})
|
|
10037
|
+
}, {
|
|
10038
|
+
children: jsx(WalletForm, {
|
|
10039
|
+
address: defaultWarehouse.originAddress,
|
|
10040
|
+
onSubmit: payload => __awaiter(void 0, void 0, void 0, function* () {
|
|
10041
|
+
yield handleWalletRegistration(payload);
|
|
10042
|
+
})
|
|
10043
|
+
})
|
|
10044
|
+
}));
|
|
9914
10045
|
}
|
|
9915
10046
|
if (hasStampsWallet) {
|
|
9916
10047
|
// Step 4.1: Handle UPS Registration Errors
|
|
@@ -9937,10 +10068,12 @@ const Onboarding$1 = ({
|
|
|
9937
10068
|
});
|
|
9938
10069
|
}
|
|
9939
10070
|
}
|
|
9940
|
-
return jsx(Loader, {
|
|
10071
|
+
return jsx(Loader, {
|
|
10072
|
+
message: t("loading.onboarding")
|
|
10073
|
+
});
|
|
9941
10074
|
};
|
|
9942
10075
|
return jsxs("div", Object.assign({
|
|
9943
|
-
css: styles$2.
|
|
10076
|
+
css: styles$2.container
|
|
9944
10077
|
}, {
|
|
9945
10078
|
children: [jsxs(Stepper, Object.assign({
|
|
9946
10079
|
currentStep: currentStep
|
|
@@ -10285,19 +10418,26 @@ const AddFundsForm = ({
|
|
|
10285
10418
|
});
|
|
10286
10419
|
};
|
|
10287
10420
|
|
|
10288
|
-
const
|
|
10289
|
-
|
|
10290
|
-
label
|
|
10291
|
-
}) => jsxs("div", Object.assign({
|
|
10292
|
-
css: theme => ({
|
|
10421
|
+
const styles$1 = isLabelRight => createStyles({
|
|
10422
|
+
inlineContainer: theme => ({
|
|
10293
10423
|
alignItems: "center",
|
|
10294
10424
|
display: "flex",
|
|
10425
|
+
flexDirection: isLabelRight ? "row-reverse" : "row",
|
|
10295
10426
|
gap: theme.spacing(1)
|
|
10296
10427
|
})
|
|
10428
|
+
});
|
|
10429
|
+
|
|
10430
|
+
const InlineLabel = ({
|
|
10431
|
+
children,
|
|
10432
|
+
label,
|
|
10433
|
+
isLabelRight,
|
|
10434
|
+
labelProps: _labelProps = {}
|
|
10435
|
+
}) => jsxs("div", Object.assign({
|
|
10436
|
+
css: styles$1(isLabelRight).inlineContainer
|
|
10297
10437
|
}, {
|
|
10298
|
-
children: [jsx(Typography, {
|
|
10438
|
+
children: [jsx(Typography, Object.assign({}, _labelProps, {
|
|
10299
10439
|
children: label
|
|
10300
|
-
}), children]
|
|
10440
|
+
})), children]
|
|
10301
10441
|
}));
|
|
10302
10442
|
|
|
10303
10443
|
const getStyles$3 = balance => createStyles({
|
|
@@ -10575,7 +10715,7 @@ const FundAndPurchase = ({
|
|
|
10575
10715
|
}));
|
|
10576
10716
|
};
|
|
10577
10717
|
|
|
10578
|
-
const styles
|
|
10718
|
+
const styles = createStyles({
|
|
10579
10719
|
fundAndPurchase: theme => ({
|
|
10580
10720
|
borderTop: `1px solid ${theme.palette.gray.ultraLight}`
|
|
10581
10721
|
}),
|
|
@@ -10714,9 +10854,8 @@ const RateForm = ({
|
|
|
10714
10854
|
onSubmit: handleSubmit,
|
|
10715
10855
|
ref: rateFormScrollToRef
|
|
10716
10856
|
}, {
|
|
10717
|
-
children: [jsxs(
|
|
10857
|
+
children: [jsxs(Section, Object.assign({
|
|
10718
10858
|
"data-testid": "rates",
|
|
10719
|
-
initialExpanded: true,
|
|
10720
10859
|
title: t("purchase-label:sections.rate", {
|
|
10721
10860
|
count: rateOptions.length
|
|
10722
10861
|
})
|
|
@@ -10730,7 +10869,7 @@ const RateForm = ({
|
|
|
10730
10869
|
onClick: onSelectRate,
|
|
10731
10870
|
options: showHiddenRates ? rateOptions : filteredRateOptions
|
|
10732
10871
|
}), rateOptions.some(option => option.requiresAcknowledgement) && rateOptions.length > 5 && jsx(Link, Object.assign({
|
|
10733
|
-
css: styles
|
|
10872
|
+
css: styles.showMoreOrLessRatesButton,
|
|
10734
10873
|
onClick: () => {
|
|
10735
10874
|
var _a;
|
|
10736
10875
|
setShowHiddenRates(!showHiddenRates);
|
|
@@ -10751,7 +10890,7 @@ const RateForm = ({
|
|
|
10751
10890
|
}))
|
|
10752
10891
|
}))]
|
|
10753
10892
|
}) : !isLoading && !!allDisplayableErrors.length ? null : jsxs("article", Object.assign({
|
|
10754
|
-
css: styles
|
|
10893
|
+
css: styles.ratesInterstitial,
|
|
10755
10894
|
role: "presentation"
|
|
10756
10895
|
}, {
|
|
10757
10896
|
children: [jsx(Cube, {
|
|
@@ -10768,7 +10907,7 @@ const RateForm = ({
|
|
|
10768
10907
|
})), jsx(FundAndPurchase, {
|
|
10769
10908
|
carrierId: selectedRate === null || selectedRate === void 0 ? void 0 : selectedRate.carrierId,
|
|
10770
10909
|
control: form.control,
|
|
10771
|
-
css: styles
|
|
10910
|
+
css: styles.fundAndPurchase,
|
|
10772
10911
|
disabled: disabled,
|
|
10773
10912
|
isFundingEnabled: features === null || features === void 0 ? void 0 : features.enableFunding,
|
|
10774
10913
|
isFundingRequired: (selectedRate === null || selectedRate === void 0 ? void 0 : selectedRate.balance) !== undefined && !!selectedRate.requiresFundedAmount,
|
|
@@ -11148,6 +11287,7 @@ const getShipmentSchema = ({
|
|
|
11148
11287
|
allowInternationalShipFrom,
|
|
11149
11288
|
warehouses,
|
|
11150
11289
|
requireMeasurements: _requireMeasurements = false,
|
|
11290
|
+
isContentDescriptionRequired: _isContentDescriptionRequired = false,
|
|
11151
11291
|
isCustomsRequired: _isCustomsRequired = false
|
|
11152
11292
|
} = {}) => {
|
|
11153
11293
|
const baseSchema = z.object({
|
|
@@ -11167,6 +11307,7 @@ const getShipmentSchema = ({
|
|
|
11167
11307
|
}).nullish(),
|
|
11168
11308
|
insuranceProvider: z.nativeEnum(SE.InsuranceProviderType).default(SE.InsuranceProviderType.NONE),
|
|
11169
11309
|
packages: z.object({
|
|
11310
|
+
contentDescription: _isContentDescriptionRequired ? z.string().min(1).max(36, "Maximum 36 characters") : z.string().optional().nullable(),
|
|
11170
11311
|
dimensions: (_requireMeasurements ? z.object({
|
|
11171
11312
|
height: z.number().positive(),
|
|
11172
11313
|
length: z.number().positive(),
|
|
@@ -11305,11 +11446,16 @@ const ShipmentForm = ({
|
|
|
11305
11446
|
const isCustomsRequired = useMemo(() => {
|
|
11306
11447
|
return shipment ? getIsCustomsRequiredForShipment(shipment) : false;
|
|
11307
11448
|
}, [shipment]);
|
|
11449
|
+
const isContentDescriptionRequired = useMemo(() => {
|
|
11450
|
+
var _a;
|
|
11451
|
+
return shipment && ((_a = shipment.shipFrom) === null || _a === void 0 ? void 0 : _a.countryCode) === "MX" || (shipment === null || shipment === void 0 ? void 0 : shipment.shipTo.countryCode) === "MX";
|
|
11452
|
+
}, [shipment]);
|
|
11308
11453
|
const shipmentSchema = useMemo(() => getShipmentSchema({
|
|
11454
|
+
isContentDescriptionRequired,
|
|
11309
11455
|
isCustomsRequired,
|
|
11310
11456
|
requireMeasurements,
|
|
11311
11457
|
warehouses: warehouses !== null && warehouses !== void 0 ? warehouses : []
|
|
11312
|
-
}), [isCustomsRequired, requireMeasurements, warehouses]);
|
|
11458
|
+
}), [isCustomsRequired, requireMeasurements, warehouses, isContentDescriptionRequired]);
|
|
11313
11459
|
const requestedServices = useMemo(() => getRequestedServices(salesOrder), [salesOrder]);
|
|
11314
11460
|
const form = useForm({
|
|
11315
11461
|
defaultValues: {
|
|
@@ -11423,9 +11569,11 @@ const ShipmentForm = ({
|
|
|
11423
11569
|
insuranceProvider: updatedShipment.insuranceProvider === "none" ? undefined : updatedShipment.insuranceProvider,
|
|
11424
11570
|
packages: updatedShipment.packages.map(pkg => {
|
|
11425
11571
|
var _a;
|
|
11426
|
-
return Object.assign(Object.assign({
|
|
11572
|
+
return Object.assign(Object.assign(Object.assign({
|
|
11573
|
+
contentDescription: isContentDescriptionRequired ? pkg.contentDescription : null
|
|
11574
|
+
}, {
|
|
11427
11575
|
dimensions: pkg.dimensions && convertDimensions(pkg.dimensions)
|
|
11428
|
-
}, updatedShipment.insuranceProvider !== "none" && ((_a = pkg.insuredValue) === null || _a === void 0 ? void 0 : _a.amount) && {
|
|
11576
|
+
}), updatedShipment.insuranceProvider !== "none" && ((_a = pkg.insuredValue) === null || _a === void 0 ? void 0 : _a.amount) && {
|
|
11429
11577
|
insuredValue: {
|
|
11430
11578
|
amount: pkg.insuredValue.amount || null,
|
|
11431
11579
|
currency: pkg.insuredValue.currency
|
|
@@ -11448,7 +11596,7 @@ const ShipmentForm = ({
|
|
|
11448
11596
|
shipmentId: updatedShipment.shipmentId,
|
|
11449
11597
|
warehouseId: updatedShipment.warehouseId
|
|
11450
11598
|
}));
|
|
11451
|
-
}, [findCustomPackage, form, isCustomsRequired]);
|
|
11599
|
+
}, [findCustomPackage, form, isCustomsRequired, isContentDescriptionRequired]);
|
|
11452
11600
|
// Allow us to imperatively trigger hydrateShipment from parent component
|
|
11453
11601
|
hydrateRef.current = hydrateShipment;
|
|
11454
11602
|
// Hydrate only the customs items portion of the shipment form
|
|
@@ -11601,9 +11749,8 @@ const ShipmentForm = ({
|
|
|
11601
11749
|
id: "shipment-form",
|
|
11602
11750
|
onSubmit: formLogger.capture(handleSubmit)
|
|
11603
11751
|
}, {
|
|
11604
|
-
children: [jsxs(
|
|
11605
|
-
"data-testid": "orderDetail"
|
|
11606
|
-
initialExpanded: true
|
|
11752
|
+
children: [jsxs(Section, Object.assign({
|
|
11753
|
+
"data-testid": "orderDetail"
|
|
11607
11754
|
}, {
|
|
11608
11755
|
children: [jsx(DatePicker, {
|
|
11609
11756
|
control: form.control,
|
|
@@ -11721,9 +11868,8 @@ const ShipmentForm = ({
|
|
|
11721
11868
|
})]
|
|
11722
11869
|
})), jsx("div", {
|
|
11723
11870
|
ref: customsItemErrorScrollToRef
|
|
11724
|
-
}), shipment && isCustomsRequired && jsxs(
|
|
11871
|
+
}), shipment && isCustomsRequired && jsxs(Section, Object.assign({
|
|
11725
11872
|
"data-testid": "customsForms",
|
|
11726
|
-
initialExpanded: true,
|
|
11727
11873
|
title: t("purchase-label:sections.customsForm")
|
|
11728
11874
|
}, {
|
|
11729
11875
|
children: [jsx(Select, {
|
|
@@ -11747,9 +11893,8 @@ const ShipmentForm = ({
|
|
|
11747
11893
|
type: NotificationType.ERROR
|
|
11748
11894
|
}), jsx(Spacer, {})]
|
|
11749
11895
|
})]
|
|
11750
|
-
})), jsxs(
|
|
11896
|
+
})), jsxs(Section, Object.assign({
|
|
11751
11897
|
"data-testid": "packageDetail",
|
|
11752
|
-
initialExpanded: true,
|
|
11753
11898
|
rightContent: (features === null || features === void 0 ? void 0 : features.shippingPresets) && shippingPresetOptions.length > 0 ? jsxs(Fragment, {
|
|
11754
11899
|
children: [jsxs(Link, Object.assign({
|
|
11755
11900
|
css: theme => ({
|
|
@@ -11897,6 +12042,11 @@ const ShipmentForm = ({
|
|
|
11897
12042
|
placeholder: t("units.oz")
|
|
11898
12043
|
})]
|
|
11899
12044
|
}))]
|
|
12045
|
+
}), isContentDescriptionRequired && jsx(TextInput, {
|
|
12046
|
+
control: form.control,
|
|
12047
|
+
hint: t("purchase-label:hints.contentDescription"),
|
|
12048
|
+
label: t("purchase-label:fields.contentDescription"),
|
|
12049
|
+
name: "packages.0.contentDescription"
|
|
11900
12050
|
}), jsx(Divider, {}), jsx(Spacer, {}), jsxs(FieldLabel, Object.assign({
|
|
11901
12051
|
label: "purchase-label:fields.addOns"
|
|
11902
12052
|
}, {
|
|
@@ -12039,9 +12189,8 @@ const Shipment$1 = ({
|
|
|
12039
12189
|
const requestedServices = useMemo(() => getRequestedServices(salesOrder), [salesOrder]);
|
|
12040
12190
|
const activeLabel = useMemo(() => labels === null || labels === void 0 ? void 0 : labels.find(l => l.status === "completed"), [labels]);
|
|
12041
12191
|
return jsxs(Fragment, {
|
|
12042
|
-
children: [jsxs(
|
|
12043
|
-
"data-testid": "orderDetail"
|
|
12044
|
-
initialExpanded: true
|
|
12192
|
+
children: [jsxs(Section, Object.assign({
|
|
12193
|
+
"data-testid": "orderDetail"
|
|
12045
12194
|
}, {
|
|
12046
12195
|
children: [jsxs(FieldLabel, Object.assign({
|
|
12047
12196
|
"data-testid": "shipDate",
|
|
@@ -12135,8 +12284,7 @@ const Shipment$1 = ({
|
|
|
12135
12284
|
count: ounces
|
|
12136
12285
|
}) : ""].filter(unit => unit.length).join(" ")
|
|
12137
12286
|
}))]
|
|
12138
|
-
})), jsxs(
|
|
12139
|
-
initialExpanded: true,
|
|
12287
|
+
})), jsxs(Section, Object.assign({
|
|
12140
12288
|
rightContent: (features === null || features === void 0 ? void 0 : features.schedulePickup) && schedulePickupForCarrier(activeLabel === null || activeLabel === void 0 ? void 0 : activeLabel.carrierCode) ? jsx(Link, Object.assign({
|
|
12141
12289
|
css: theme => ({
|
|
12142
12290
|
fontWeight: theme.typography.fontWeight.normal
|
|
@@ -12179,8 +12327,7 @@ const Shipment$1 = ({
|
|
|
12179
12327
|
children: t("view-shipment:actions.buyAnotherLabel")
|
|
12180
12328
|
}))]
|
|
12181
12329
|
})]
|
|
12182
|
-
})), (labels === null || labels === void 0 ? void 0 : labels.some(l => !!l.formDownload)) && jsx(
|
|
12183
|
-
initialExpanded: true,
|
|
12330
|
+
})), (labels === null || labels === void 0 ? void 0 : labels.some(l => !!l.formDownload)) && jsx(Section, Object.assign({
|
|
12184
12331
|
title: "Forms"
|
|
12185
12332
|
}, {
|
|
12186
12333
|
children: isHighValueRequired(shipment, carriers) && jsx("div", Object.assign({
|
|
@@ -12230,213 +12377,6 @@ const SuspendShipment = ({
|
|
|
12230
12377
|
}));
|
|
12231
12378
|
};
|
|
12232
12379
|
|
|
12233
|
-
const getStyles$1 = fullWidth => createStyles({
|
|
12234
|
-
dateRangeSelect: theme => ({
|
|
12235
|
-
minWidth: theme.spacing(30),
|
|
12236
|
-
position: "relative",
|
|
12237
|
-
width: !fullWidth ? "auto" : theme.spacing(30)
|
|
12238
|
-
})
|
|
12239
|
-
});
|
|
12240
|
-
|
|
12241
|
-
const DateRangeSelect = ({
|
|
12242
|
-
fullWidth,
|
|
12243
|
-
onChange,
|
|
12244
|
-
options,
|
|
12245
|
-
value
|
|
12246
|
-
}) => {
|
|
12247
|
-
const {
|
|
12248
|
-
t
|
|
12249
|
-
} = useTranslation();
|
|
12250
|
-
const styles = getStyles$1(fullWidth);
|
|
12251
|
-
const handleChange = (_name, nextOption) => {
|
|
12252
|
-
if (!nextOption) throw new Error("DateRangeSelect requires non-null options");
|
|
12253
|
-
onChange(nextOption);
|
|
12254
|
-
};
|
|
12255
|
-
return jsx(Select$1, Object.assign({
|
|
12256
|
-
css: styles.dateRangeSelect,
|
|
12257
|
-
"data-testid": "date-range-select",
|
|
12258
|
-
label: t("wallet-history:dateRange"),
|
|
12259
|
-
leftContent: jsx(Icon, {
|
|
12260
|
-
name: IconNames$1.FILTER
|
|
12261
|
-
}),
|
|
12262
|
-
name: "date-range-select",
|
|
12263
|
-
onChange: handleChange,
|
|
12264
|
-
value: value
|
|
12265
|
-
}, {
|
|
12266
|
-
children: options.map(option => jsx(Option, Object.assign({
|
|
12267
|
-
selected: (value === null || value === void 0 ? void 0 : value.value) === option.value,
|
|
12268
|
-
value: option
|
|
12269
|
-
}, {
|
|
12270
|
-
children: option.label
|
|
12271
|
-
}), option.value))
|
|
12272
|
-
}));
|
|
12273
|
-
};
|
|
12274
|
-
|
|
12275
|
-
const DateRangeCombo = ({
|
|
12276
|
-
children: renderChildren,
|
|
12277
|
-
onChange,
|
|
12278
|
-
options,
|
|
12279
|
-
values: {
|
|
12280
|
-
customRange,
|
|
12281
|
-
selectedOption
|
|
12282
|
-
}
|
|
12283
|
-
}) => {
|
|
12284
|
-
const {
|
|
12285
|
-
t
|
|
12286
|
-
} = useTranslation();
|
|
12287
|
-
const handleChangeSelected = nextOption => {
|
|
12288
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(nextOption, customRange);
|
|
12289
|
-
};
|
|
12290
|
-
const handleChangeCustomRange = nextCustomRange => {
|
|
12291
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(selectedOption, nextCustomRange);
|
|
12292
|
-
};
|
|
12293
|
-
const dateRangeSelect = jsx(DateRangeSelect, {
|
|
12294
|
-
fullWidth: !!renderChildren,
|
|
12295
|
-
onChange: handleChangeSelected,
|
|
12296
|
-
options: options,
|
|
12297
|
-
value: selectedOption
|
|
12298
|
-
});
|
|
12299
|
-
return jsxs(Fragment, {
|
|
12300
|
-
children: [renderChildren ? renderChildren(dateRangeSelect) : dateRangeSelect, (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === "custom" && jsxs(Fragment, {
|
|
12301
|
-
children: [jsx(Spacer, {
|
|
12302
|
-
multiplier: 2
|
|
12303
|
-
}), jsx(DatePicker$1, {
|
|
12304
|
-
dateFormat: "MM/dd/yyyy",
|
|
12305
|
-
// TODO - [LMNT-666] the X displayed from isClearable doesn't fire any prop callbacks
|
|
12306
|
-
isClearable: true,
|
|
12307
|
-
label: t("wallet-history:actions.chooseDate"),
|
|
12308
|
-
onChange: dates => {
|
|
12309
|
-
if (Array.isArray(dates) && dates.length === 2 && dates[1] !== null) handleChangeCustomRange(dates);
|
|
12310
|
-
},
|
|
12311
|
-
selectsRange: true
|
|
12312
|
-
})]
|
|
12313
|
-
})]
|
|
12314
|
-
});
|
|
12315
|
-
};
|
|
12316
|
-
|
|
12317
|
-
const HistoryRow = ({
|
|
12318
|
-
key,
|
|
12319
|
-
rowItem
|
|
12320
|
-
}) => jsx("div", {
|
|
12321
|
-
children: "History Row Component"
|
|
12322
|
-
});
|
|
12323
|
-
|
|
12324
|
-
/**
|
|
12325
|
-
* This component is the list of events that represent the history of a
|
|
12326
|
-
* specific entity. The events are displayed in reverse chronological order.
|
|
12327
|
-
*
|
|
12328
|
-
* @param historyData The history data to display.
|
|
12329
|
-
*/
|
|
12330
|
-
const HistoryList = ({
|
|
12331
|
-
historyData
|
|
12332
|
-
}) => {
|
|
12333
|
-
console.table(historyData);
|
|
12334
|
-
return jsx(Fragment, {
|
|
12335
|
-
children: [1, 2, 3].map((item, idx) => {
|
|
12336
|
-
return jsx(HistoryRow, {
|
|
12337
|
-
rowItem: item
|
|
12338
|
-
}, idx);
|
|
12339
|
-
})
|
|
12340
|
-
});
|
|
12341
|
-
};
|
|
12342
|
-
|
|
12343
|
-
const styles = createStyles({
|
|
12344
|
-
action: theme => ({
|
|
12345
|
-
minWidth: theme.spacing(30),
|
|
12346
|
-
placeContent: "center",
|
|
12347
|
-
width: theme.spacing(30)
|
|
12348
|
-
}),
|
|
12349
|
-
gridContainer: theme => ({
|
|
12350
|
-
display: "grid",
|
|
12351
|
-
gap: theme.spacing(2),
|
|
12352
|
-
gridTemplateColumns: "1fr 1fr 1fr",
|
|
12353
|
-
gridTemplateRows: "1fr",
|
|
12354
|
-
placeItems: "center"
|
|
12355
|
-
}),
|
|
12356
|
-
linkAction: theme => ({
|
|
12357
|
-
minWidth: theme.spacing(30),
|
|
12358
|
-
placeContent: "center",
|
|
12359
|
-
width: theme.spacing(30)
|
|
12360
|
-
}),
|
|
12361
|
-
pagination: {
|
|
12362
|
-
display: "grid",
|
|
12363
|
-
placeItems: "center"
|
|
12364
|
-
}
|
|
12365
|
-
});
|
|
12366
|
-
|
|
12367
|
-
const HistoryBody = ({
|
|
12368
|
-
historyData
|
|
12369
|
-
}) => {
|
|
12370
|
-
const {
|
|
12371
|
-
t
|
|
12372
|
-
} = useTranslation();
|
|
12373
|
-
const [currentPage, setCurrentPage] = useState(1);
|
|
12374
|
-
const [dateRangeOptions, {
|
|
12375
|
-
last30days
|
|
12376
|
-
}] = useDateRangeOptions();
|
|
12377
|
-
const [selectedOption, setSelectedOption] = useState(last30days);
|
|
12378
|
-
const [customRange, setCustomRange] = useState();
|
|
12379
|
-
useMemo(() => (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === "custom" ? customRange : selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.range, [customRange, selectedOption]);
|
|
12380
|
-
// const { data: walletHistory } = useGetWalletHistory({
|
|
12381
|
-
// enabled: !!queryRange,
|
|
12382
|
-
// page: currentPage,
|
|
12383
|
-
// range: queryRange
|
|
12384
|
-
// })
|
|
12385
|
-
return jsxs(Fragment, {
|
|
12386
|
-
children: [jsx(DateRangeCombo, Object.assign({
|
|
12387
|
-
onChange: (nextOption, nextCustomRange) => {
|
|
12388
|
-
setCurrentPage(1);
|
|
12389
|
-
setSelectedOption(nextOption);
|
|
12390
|
-
setCustomRange(nextCustomRange);
|
|
12391
|
-
},
|
|
12392
|
-
options: dateRangeOptions,
|
|
12393
|
-
values: {
|
|
12394
|
-
customRange,
|
|
12395
|
-
selectedOption
|
|
12396
|
-
}
|
|
12397
|
-
}, {
|
|
12398
|
-
children: renderedSelect => jsxs(Grid, Object.assign({
|
|
12399
|
-
css: styles.gridContainer,
|
|
12400
|
-
noPadding: true
|
|
12401
|
-
}, {
|
|
12402
|
-
children: [jsx(GridChild, {
|
|
12403
|
-
children: renderedSelect
|
|
12404
|
-
}), jsx(GridChild, {}), jsx(GridChild, {
|
|
12405
|
-
children: jsx(LinkAction, {
|
|
12406
|
-
css: styles.linkAction,
|
|
12407
|
-
icon: "download",
|
|
12408
|
-
onClick: () => alert("Download a CSV from HistoryBody! - a link will go here once we have a data hook"),
|
|
12409
|
-
title: t("wallet-history:actions.downloadCsv")
|
|
12410
|
-
})
|
|
12411
|
-
})]
|
|
12412
|
-
}))
|
|
12413
|
-
})), jsx(Spacer, {
|
|
12414
|
-
multiplier: 2
|
|
12415
|
-
}), jsx(HistoryList, {
|
|
12416
|
-
historyData: historyData
|
|
12417
|
-
}), jsxs("p", {
|
|
12418
|
-
children: ["Page ", jsx("strong", {
|
|
12419
|
-
children: currentPage
|
|
12420
|
-
}), " selected."]
|
|
12421
|
-
}), jsx(Pagination, {
|
|
12422
|
-
boundaryPagesToShow: 7,
|
|
12423
|
-
css: styles.pagination,
|
|
12424
|
-
currentPage: currentPage,
|
|
12425
|
-
onPageChange: selectedPage => setCurrentPage(selectedPage),
|
|
12426
|
-
siblingCount: 2,
|
|
12427
|
-
totalPages: 20
|
|
12428
|
-
})]
|
|
12429
|
-
});
|
|
12430
|
-
};
|
|
12431
|
-
|
|
12432
|
-
const WalletHistory$1 = ({
|
|
12433
|
-
historyData
|
|
12434
|
-
}) => {
|
|
12435
|
-
return jsx(HistoryBody, {
|
|
12436
|
-
historyData: historyData
|
|
12437
|
-
});
|
|
12438
|
-
};
|
|
12439
|
-
|
|
12440
12380
|
const VoidLabel$1 = ({
|
|
12441
12381
|
onComplete,
|
|
12442
12382
|
onSubmit,
|
|
@@ -12454,9 +12394,7 @@ const VoidLabel$1 = ({
|
|
|
12454
12394
|
setIsSubmitting(false);
|
|
12455
12395
|
}), [onSubmit]);
|
|
12456
12396
|
return jsxs(Fragment, {
|
|
12457
|
-
children: [jsx(
|
|
12458
|
-
initialExpanded: true
|
|
12459
|
-
}, {
|
|
12397
|
+
children: [jsx(Section, {
|
|
12460
12398
|
children: voidRequest ? jsxs("section", Object.assign({
|
|
12461
12399
|
css: {
|
|
12462
12400
|
textAlign: "center",
|
|
@@ -12506,7 +12444,7 @@ const VoidLabel$1 = ({
|
|
|
12506
12444
|
children: t("void-label:refund_rules")
|
|
12507
12445
|
}))]
|
|
12508
12446
|
})
|
|
12509
|
-
})
|
|
12447
|
+
}), jsx(BottomSheet, Object.assign({
|
|
12510
12448
|
alwaysVisible: true,
|
|
12511
12449
|
css: theme => ({
|
|
12512
12450
|
borderTop: `1px solid ${theme.palette.gray.ultraLight}`,
|
|
@@ -12579,7 +12517,6 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
12579
12517
|
schedulePickupForCarrier: schedulePickupForCarrier,
|
|
12580
12518
|
Shipment: Shipment$1,
|
|
12581
12519
|
SuspendShipment: SuspendShipment,
|
|
12582
|
-
WalletHistory: WalletHistory$1,
|
|
12583
12520
|
WarehouseForm: WarehouseForm,
|
|
12584
12521
|
VoidLabel: VoidLabel$1,
|
|
12585
12522
|
WalletForm: WalletForm,
|
|
@@ -12587,11 +12524,13 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
12587
12524
|
billingAddressSchema: billingAddressSchema,
|
|
12588
12525
|
walletSchema: walletSchema,
|
|
12589
12526
|
BillingFields: BillingFields,
|
|
12590
|
-
|
|
12591
|
-
|
|
12527
|
+
AddressPreferenceContext: AddressPreferenceContext,
|
|
12528
|
+
AddressPreferenceProvider: AddressPreferenceProvider,
|
|
12529
|
+
useAddressPreference: useAddressPreference,
|
|
12530
|
+
AddressPreferenceSelect: AddressPreferenceSelect
|
|
12592
12531
|
});
|
|
12593
12532
|
|
|
12594
|
-
const getStyles = showForm => createStyles({
|
|
12533
|
+
const getStyles$1 = showForm => createStyles({
|
|
12595
12534
|
edit: theme => ({
|
|
12596
12535
|
color: theme.palette.primary.main,
|
|
12597
12536
|
padding: `0 ${theme.spacing(2)}`
|
|
@@ -12640,7 +12579,7 @@ const AutoFundingForm = ({
|
|
|
12640
12579
|
} = autoFundingConfiguration;
|
|
12641
12580
|
const [showForm, setShowForm] = useState(false);
|
|
12642
12581
|
const [isSwitchOn, setIsSwitchOn] = useState(false);
|
|
12643
|
-
const styles = getStyles(showForm);
|
|
12582
|
+
const styles = getStyles$1(showForm);
|
|
12644
12583
|
const form = useForm({
|
|
12645
12584
|
resolver: validationResolver(autoFundingSchema)
|
|
12646
12585
|
});
|
|
@@ -12794,6 +12733,90 @@ const AutoFundingForm = ({
|
|
|
12794
12733
|
});
|
|
12795
12734
|
};
|
|
12796
12735
|
|
|
12736
|
+
const getStyles = fullWidth => createStyles({
|
|
12737
|
+
dateRangeSelect: theme => ({
|
|
12738
|
+
minWidth: theme.spacing(30),
|
|
12739
|
+
position: "relative",
|
|
12740
|
+
width: !fullWidth ? "auto" : theme.spacing(30)
|
|
12741
|
+
})
|
|
12742
|
+
});
|
|
12743
|
+
|
|
12744
|
+
const DateRangeSelect = ({
|
|
12745
|
+
fullWidth,
|
|
12746
|
+
onChange,
|
|
12747
|
+
options,
|
|
12748
|
+
value
|
|
12749
|
+
}) => {
|
|
12750
|
+
const {
|
|
12751
|
+
t
|
|
12752
|
+
} = useTranslation();
|
|
12753
|
+
const styles = getStyles(fullWidth);
|
|
12754
|
+
const handleChange = (_name, nextOption) => {
|
|
12755
|
+
if (!nextOption) throw new Error("DateRangeSelect requires non-null options");
|
|
12756
|
+
onChange(nextOption);
|
|
12757
|
+
};
|
|
12758
|
+
return jsx(Select$1, Object.assign({
|
|
12759
|
+
css: styles.dateRangeSelect,
|
|
12760
|
+
"data-testid": "date-range-select",
|
|
12761
|
+
label: t("wallet-history:dateRange"),
|
|
12762
|
+
leftContent: jsx(Icon, {
|
|
12763
|
+
name: IconNames$1.FILTER
|
|
12764
|
+
}),
|
|
12765
|
+
name: "date-range-select",
|
|
12766
|
+
onChange: handleChange,
|
|
12767
|
+
value: value
|
|
12768
|
+
}, {
|
|
12769
|
+
children: options.map(option => jsx(Option, Object.assign({
|
|
12770
|
+
selected: (value === null || value === void 0 ? void 0 : value.value) === option.value,
|
|
12771
|
+
value: option
|
|
12772
|
+
}, {
|
|
12773
|
+
children: option.label
|
|
12774
|
+
}), option.value))
|
|
12775
|
+
}));
|
|
12776
|
+
};
|
|
12777
|
+
|
|
12778
|
+
const DateRangeCombo = ({
|
|
12779
|
+
children: renderChildren,
|
|
12780
|
+
onChange,
|
|
12781
|
+
options,
|
|
12782
|
+
values: {
|
|
12783
|
+
customRange,
|
|
12784
|
+
selectedOption
|
|
12785
|
+
}
|
|
12786
|
+
}) => {
|
|
12787
|
+
const {
|
|
12788
|
+
t
|
|
12789
|
+
} = useTranslation();
|
|
12790
|
+
const handleChangeSelected = nextOption => {
|
|
12791
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(nextOption, customRange);
|
|
12792
|
+
};
|
|
12793
|
+
const handleConfirmCustomRange = nextCustomRange => {
|
|
12794
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(selectedOption, nextCustomRange);
|
|
12795
|
+
};
|
|
12796
|
+
const dateRangeSelect = jsx(DateRangeSelect, {
|
|
12797
|
+
fullWidth: !!renderChildren,
|
|
12798
|
+
onChange: handleChangeSelected,
|
|
12799
|
+
options: options,
|
|
12800
|
+
value: selectedOption
|
|
12801
|
+
});
|
|
12802
|
+
return jsxs(Fragment, {
|
|
12803
|
+
children: [renderChildren ? renderChildren(dateRangeSelect) : dateRangeSelect, (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) === "custom" && jsxs(Fragment, {
|
|
12804
|
+
children: [jsx(Spacer, {
|
|
12805
|
+
multiplier: 2
|
|
12806
|
+
}), jsx(DatePicker$1, {
|
|
12807
|
+
dateFormat: "MM/dd/yyyy",
|
|
12808
|
+
isClearable: true,
|
|
12809
|
+
label: t("wallet-history:actions.chooseDate"),
|
|
12810
|
+
maxDate: new Date(),
|
|
12811
|
+
onClickConfirm: dates => {
|
|
12812
|
+
if (Array.isArray(dates) && dates.length === 2 && dates[1] !== null) handleConfirmCustomRange(dates);
|
|
12813
|
+
},
|
|
12814
|
+
selectsRange: true
|
|
12815
|
+
})]
|
|
12816
|
+
})]
|
|
12817
|
+
});
|
|
12818
|
+
};
|
|
12819
|
+
|
|
12797
12820
|
/**
|
|
12798
12821
|
* Captures errors thrown within an Element, logs them and displays a fallback component
|
|
12799
12822
|
*
|
|
@@ -13037,6 +13060,7 @@ var common = {
|
|
|
13037
13060
|
email: "Email",
|
|
13038
13061
|
addressResidentialIndicator: "Residential Address"
|
|
13039
13062
|
},
|
|
13063
|
+
noResults: "No results found",
|
|
13040
13064
|
subFields: {
|
|
13041
13065
|
optional: "optional"
|
|
13042
13066
|
},
|
|
@@ -13068,7 +13092,10 @@ var common = {
|
|
|
13068
13092
|
name: "Name on Card",
|
|
13069
13093
|
cardNumber: "Credit Card Number",
|
|
13070
13094
|
expiration: "Card Expiration",
|
|
13071
|
-
cvv: "CVV"
|
|
13095
|
+
cvv: "CVV",
|
|
13096
|
+
cvvPlaceholder: "---",
|
|
13097
|
+
expirationPlaceholder: "MM/YYYY",
|
|
13098
|
+
cardNumberPlaceholder: "**** **** **** ****"
|
|
13072
13099
|
}
|
|
13073
13100
|
},
|
|
13074
13101
|
carriers: {
|
|
@@ -13163,6 +13190,7 @@ var common = {
|
|
|
13163
13190
|
carriers: "Loading carriers...",
|
|
13164
13191
|
data: "Loading...",
|
|
13165
13192
|
importingSalesOrder: "Importing order...",
|
|
13193
|
+
onboarding: "Loading onboarding...",
|
|
13166
13194
|
salesOrder: "Loading order...",
|
|
13167
13195
|
shipment: "Loading shipment...",
|
|
13168
13196
|
warehouses: "Loading warehouses..."
|
|
@@ -13200,6 +13228,7 @@ var common = {
|
|
|
13200
13228
|
invalidAddressName: "Recipient Name must have two characters in First and Last Name.",
|
|
13201
13229
|
invalidAddressPoBox: "A physical address is required for wallet registration. You can add a PO Box as a Ship From address.",
|
|
13202
13230
|
invalidCreditCardType: "Card type must be Visa, Mastercard, American Express, or Discover",
|
|
13231
|
+
invalidExpiration: "Invalid Expiration Date",
|
|
13203
13232
|
invalidPostalCode: "Invalid Postal Code",
|
|
13204
13233
|
invalidStateProvince: "Invalid State",
|
|
13205
13234
|
invalidString: "{{fieldLabel}} is invalid",
|
|
@@ -13361,9 +13390,10 @@ var onboarding = {
|
|
|
13361
13390
|
landing: {
|
|
13362
13391
|
action: "Login",
|
|
13363
13392
|
title: "Register Your Account",
|
|
13364
|
-
subtitle: "Enter your email address to start
|
|
13365
|
-
|
|
13366
|
-
|
|
13393
|
+
subtitle: "Enter your email address to start shipping with discounted carrier rates",
|
|
13394
|
+
welcome: "Welcome",
|
|
13395
|
+
messageLine1: "Simplify your shipping workflow – no subscription required.",
|
|
13396
|
+
messageLine2: "You can compare carrier services, ship domestic and international orders, and manage your postage payments."
|
|
13367
13397
|
},
|
|
13368
13398
|
steps: {
|
|
13369
13399
|
login: "Login",
|
|
@@ -13418,6 +13448,7 @@ var purchaseLabel = {
|
|
|
13418
13448
|
},
|
|
13419
13449
|
fields: {
|
|
13420
13450
|
addOns: "Add-Ons",
|
|
13451
|
+
contentDescription: "Contents Description",
|
|
13421
13452
|
confirmation: "Confirmation",
|
|
13422
13453
|
dimensions: {
|
|
13423
13454
|
length: "Length",
|
|
@@ -13444,6 +13475,9 @@ var purchaseLabel = {
|
|
|
13444
13475
|
},
|
|
13445
13476
|
weightGroup: "Weight"
|
|
13446
13477
|
},
|
|
13478
|
+
hints: {
|
|
13479
|
+
contentDescription: "Required for all shipments to Mexico"
|
|
13480
|
+
},
|
|
13447
13481
|
loading: {
|
|
13448
13482
|
calculatingRates: "Calculating rates..."
|
|
13449
13483
|
},
|
|
@@ -13873,7 +13907,7 @@ const ListCarriers = () => {
|
|
|
13873
13907
|
});
|
|
13874
13908
|
};
|
|
13875
13909
|
|
|
13876
|
-
const Element$
|
|
13910
|
+
const Element$5 = registerElement("list-carriers", ListCarriers);
|
|
13877
13911
|
|
|
13878
13912
|
const ManageWarehouses = ({
|
|
13879
13913
|
onWarehouseAddressValidation
|
|
@@ -13899,12 +13933,6 @@ const ManageWarehouses = ({
|
|
|
13899
13933
|
error: deleteWarehouseErrors,
|
|
13900
13934
|
mutateAsync: deleteWarehouse
|
|
13901
13935
|
} = useDeleteWarehouse();
|
|
13902
|
-
const {
|
|
13903
|
-
errors: validateWarehouseErrors,
|
|
13904
|
-
validate: validateWarehouse,
|
|
13905
|
-
warehousePreference,
|
|
13906
|
-
setWarehousePreference
|
|
13907
|
-
} = useWarehouseValidation();
|
|
13908
13936
|
const handleDeleteWarehouse = warehouseId => __awaiter(void 0, void 0, void 0, function* () {
|
|
13909
13937
|
yield deleteWarehouse({
|
|
13910
13938
|
warehouseId
|
|
@@ -13938,21 +13966,18 @@ const ManageWarehouses = ({
|
|
|
13938
13966
|
if (listWarehouseErrors) throw new Error(listWarehouseErrors.map(e => e.message).join(", "));
|
|
13939
13967
|
throw new Error("errorMessages.unableToLoad.warehouses");
|
|
13940
13968
|
}
|
|
13941
|
-
const errors = [...(updateWarehouseErrors !== null && updateWarehouseErrors !== void 0 ? updateWarehouseErrors : []), ...(createWarehouseErrors !== null && createWarehouseErrors !== void 0 ? createWarehouseErrors : []), ...(deleteWarehouseErrors !== null && deleteWarehouseErrors !== void 0 ? deleteWarehouseErrors : [])
|
|
13969
|
+
const errors = [...(updateWarehouseErrors !== null && updateWarehouseErrors !== void 0 ? updateWarehouseErrors : []), ...(createWarehouseErrors !== null && createWarehouseErrors !== void 0 ? createWarehouseErrors : []), ...(deleteWarehouseErrors !== null && deleteWarehouseErrors !== void 0 ? deleteWarehouseErrors : [])];
|
|
13942
13970
|
return jsx(ManageWarehouses$1, {
|
|
13943
13971
|
errors: errors,
|
|
13944
13972
|
onAdd: handleSubmitAddNewWarehouse,
|
|
13945
13973
|
onDelete: handleDeleteWarehouse,
|
|
13946
13974
|
onEdit: handleSubmitEditWarehouse,
|
|
13947
13975
|
onSetDefault: handleSetDefault,
|
|
13948
|
-
onValidate: validateWarehouse,
|
|
13949
|
-
setWarehousePreference: setWarehousePreference,
|
|
13950
|
-
warehousePreference: warehousePreference,
|
|
13951
13976
|
warehouses: warehouses
|
|
13952
13977
|
});
|
|
13953
13978
|
};
|
|
13954
13979
|
|
|
13955
|
-
const Element$
|
|
13980
|
+
const Element$4 = registerElement("manage-warehouses", ManageWarehouses);
|
|
13956
13981
|
|
|
13957
13982
|
const useAddress = ({
|
|
13958
13983
|
compatibleCountryCodes,
|
|
@@ -14602,6 +14627,9 @@ const ConfigureShipment = _a => {
|
|
|
14602
14627
|
const Onboarding = ({
|
|
14603
14628
|
onCompleteOnboarding
|
|
14604
14629
|
}) => {
|
|
14630
|
+
const {
|
|
14631
|
+
t
|
|
14632
|
+
} = useTranslation();
|
|
14605
14633
|
const {
|
|
14606
14634
|
data: warehouses,
|
|
14607
14635
|
refetch: refetchWarehouses
|
|
@@ -14628,23 +14656,20 @@ const Onboarding = ({
|
|
|
14628
14656
|
const onWarehouseCreated = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
14629
14657
|
yield refetchWarehouses();
|
|
14630
14658
|
}), [refetchWarehouses]);
|
|
14631
|
-
const {
|
|
14632
|
-
errors: validateWarehouseErrors,
|
|
14633
|
-
validate: validateWarehouse,
|
|
14634
|
-
warehousePreference,
|
|
14635
|
-
setWarehousePreference
|
|
14636
|
-
} = useWarehouseValidation();
|
|
14637
14659
|
const onCarrierCreated = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
14638
14660
|
yield refetchCarriers();
|
|
14639
14661
|
}), [refetchCarriers]);
|
|
14640
|
-
if (!carriers) return jsx(Loader, {
|
|
14641
|
-
|
|
14662
|
+
if (!carriers) return jsx(Loader, {
|
|
14663
|
+
message: t("errorMessages.unableToLoad.carriers")
|
|
14664
|
+
});
|
|
14665
|
+
if (!warehouses) return jsx(Loader, {
|
|
14666
|
+
message: t("errorMessages.unableToLoad.warehouses")
|
|
14667
|
+
});
|
|
14642
14668
|
return jsx(Onboarding$1, {
|
|
14643
14669
|
carriers: carriers,
|
|
14644
14670
|
createWarehouse: createWarehouse,
|
|
14645
14671
|
onCarrierCreated: onCarrierCreated,
|
|
14646
14672
|
onCompleteOnboarding: onCompleteOnboarding,
|
|
14647
|
-
onValidateWarehouse: validateWarehouse,
|
|
14648
14673
|
onWarehouseCreated: onWarehouseCreated,
|
|
14649
14674
|
registerDhlCarrier: registerDhlCarrier,
|
|
14650
14675
|
registerDhlCarrierErrors: registerDhlCarrierErrors,
|
|
@@ -14652,9 +14677,6 @@ const Onboarding = ({
|
|
|
14652
14677
|
registerStampsCarrierErrors: registerStampsCarrierErrors,
|
|
14653
14678
|
registerUpsCarrier: registerUpsCarrier,
|
|
14654
14679
|
registerUpsCarrierErrors: registerUpsCarrierErrors,
|
|
14655
|
-
setWarehousePreference: setWarehousePreference,
|
|
14656
|
-
validationErrors: validateWarehouseErrors,
|
|
14657
|
-
warehousePreference: warehousePreference,
|
|
14658
14680
|
warehouses: warehouses
|
|
14659
14681
|
});
|
|
14660
14682
|
};
|
|
@@ -14685,8 +14707,12 @@ const usePendingShipment = ({
|
|
|
14685
14707
|
} = useCreateSalesOrderShipment();
|
|
14686
14708
|
const pendingShipment = getPendingShipment(shipments);
|
|
14687
14709
|
const defaultWarehouse = (_a = warehouses === null || warehouses === void 0 ? void 0 : warehouses.find(w => w.warehouseId === warehouseId)) !== null && _a !== void 0 ? _a : warehouses === null || warehouses === void 0 ? void 0 : warehouses[0];
|
|
14688
|
-
// On page load,
|
|
14710
|
+
// On page load, check for a shipment and either call the onLoad callback or create a new shipment
|
|
14689
14711
|
useEffect(() => {
|
|
14712
|
+
if (salesOrder && (shipments === null || shipments === void 0 ? void 0 : shipments.length)) {
|
|
14713
|
+
onLoad === null || onLoad === void 0 ? void 0 : onLoad(salesOrder, shipments, pendingShipment);
|
|
14714
|
+
return;
|
|
14715
|
+
}
|
|
14690
14716
|
if (!salesOrder || !defaultWarehouse || !shipments || pendingShipment) return;
|
|
14691
14717
|
if (isListShipmentsLoading || isListShipmentsValidating || isShipmentCreating) return;
|
|
14692
14718
|
createShipment(Object.assign(Object.assign({
|
|
@@ -14705,12 +14731,7 @@ const usePendingShipment = ({
|
|
|
14705
14731
|
}
|
|
14706
14732
|
}]
|
|
14707
14733
|
})).then(shipment => shipment && reloadShipments());
|
|
14708
|
-
}, [createShipment, defaultWarehouse, isListShipmentsLoading, isListShipmentsValidating, isShipmentCreating, pendingShipment, reloadShipments, salesOrder, shipments, warehouseId]);
|
|
14709
|
-
useEffect(() => {
|
|
14710
|
-
if (salesOrder && shipments) {
|
|
14711
|
-
onLoad === null || onLoad === void 0 ? void 0 : onLoad(salesOrder, shipments, pendingShipment);
|
|
14712
|
-
}
|
|
14713
|
-
}, [onLoad, pendingShipment, salesOrder, shipments]);
|
|
14734
|
+
}, [createShipment, defaultWarehouse, isListShipmentsLoading, isListShipmentsValidating, isShipmentCreating, onLoad, pendingShipment, reloadShipments, salesOrder, shipments, warehouseId]);
|
|
14714
14735
|
const reloadPendingShipment = useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
14715
14736
|
const {
|
|
14716
14737
|
data: shipments
|
|
@@ -14968,13 +14989,6 @@ const Shipment = ({
|
|
|
14968
14989
|
});
|
|
14969
14990
|
};
|
|
14970
14991
|
|
|
14971
|
-
const WalletHistory = () => {
|
|
14972
|
-
const walletHistory = useGetWalletTransactionHistory(); // Mock data for now. Real implementation coming in a subsequent PR [LMNT-842] https://auctane.atlassian.net/browse/LMNT-842
|
|
14973
|
-
return jsx(WalletHistory$1, {
|
|
14974
|
-
historyData: walletHistory
|
|
14975
|
-
});
|
|
14976
|
-
};
|
|
14977
|
-
|
|
14978
14992
|
const VoidLabel = ({
|
|
14979
14993
|
labelId,
|
|
14980
14994
|
onComplete,
|
|
@@ -15003,14 +15017,12 @@ const VoidLabel = ({
|
|
|
15003
15017
|
});
|
|
15004
15018
|
};
|
|
15005
15019
|
|
|
15006
|
-
const Element$
|
|
15007
|
-
|
|
15008
|
-
const Element$3 = registerElement("onboarding", Onboarding);
|
|
15020
|
+
const Element$3 = registerElement("purchase-label", PurchaseLabel);
|
|
15009
15021
|
|
|
15010
|
-
const Element$2 = registerElement("
|
|
15022
|
+
const Element$2 = registerElement("onboarding", Onboarding);
|
|
15011
15023
|
|
|
15012
15024
|
const Element$1 = registerElement("view-shipment", Shipment);
|
|
15013
15025
|
|
|
15014
15026
|
const Element = registerElement("void-label", VoidLabel);
|
|
15015
15027
|
|
|
15016
|
-
export {
|
|
15028
|
+
export { AddFundsForm, AutoFundingForm, ButtonGroup, CarrierBalance, Country, Cube, DateRangeCombo, DateRangeSelect, 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, Section, Spacer, Spread, StoryNotes, index$1 as Templates, UsState, UsaCity, Element$1 as ViewShipment, Element as VoidLabel, autoFundingSchema, calculateTotal, capitalizeFirstLetter, convertDimensions, convertWeight, countries, countryCodes, createCodedErrors, createDictionary, createStyles, currencySymbol, daysAfter, errorMap, euCountryCodes, extendZod, formLogger, formatCreditCardNumber, formatDate, formatExpiration, formatFractionalWeight, formatMoney, getAddFundsSchema, getCustomsFromSalesOrder, getExpirationYears, getIsCustomsRequiredForSalesOrder, getIsCustomsRequiredForShipment, getIsInternationalShipment, getPendingShipment, getRateRequiresAcknowledgement, getRelativeDates, getRequestedServices, getSalesOrderItemsFromSalesOrderOrShipment, getTotalRateAmount, isDomesticAddress, isFlatRatePackageCode, isMilitaryAddress, isNowOrInTheFuture, isPoBox, isPoBoxAddress, isString, isUnitedStatesTerritory, isUspsCarrier, moneySchema, mostRecent, nextDayCutoff, omitTime, overrideCarrierCodes$1 as overrideCarrierCodes, phoneSchema, phoneSchemaUnvalidated, postalCodeRegex$3 as postalCodeRegex, registerElement, sortByCreationDate, usCities, usStateCodes, usStates, useAddressValidation, useCarrierMetadata, useConfirmationOptions, useCountryCodeOptions, useCustomsContentsOptions, useCustomsNonDeliveryOptions, useDateRangeOptions, useElements, useExpirationMonthOptions, useInsuranceProviderOptions, useNestedForm, usePackageOptions, usePageLayout, useRateOptions, useRootPortal, useRunOnceOnTrue, useServiceCodeOptions, useShippingPresetsOptions, useStateCodeOptions, useToggle, useWarehouseOptions, validationResolver };
|