@shipengine/elements 1.6.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/index.cjs +1286 -1130
  2. package/index.js +1283 -1130
  3. package/package.json +1 -1
  4. package/src/components/collapsible-panel/collapsible-panel.d.ts +6 -1
  5. package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +1 -1
  6. package/src/components/field/rate-card/cost-breakdown/cost-breakdown.d.ts +1 -1
  7. package/src/components/templates/address-form/address-schema.d.ts +2 -0
  8. package/src/components/templates/index.d.ts +1 -1
  9. package/src/components/templates/rate-form/rate-form.d.ts +2 -1
  10. package/src/components/templates/wallet-form/wallet-schema.d.ts +46 -2
  11. package/src/elements/external-carriers/external-carriers.d.ts +7 -5
  12. package/src/elements/index.d.ts +2 -1
  13. package/src/elements/label-layout/label-layout-element.d.ts +7 -1
  14. package/src/elements/labels-grid/labels-grid.d.ts +7 -1
  15. package/src/elements/manage-funding/manage-funding-element.d.ts +7 -1
  16. package/src/elements/manage-warehouses/manage-warehouses.d.ts +10 -44
  17. package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +7 -1
  18. package/src/elements/purchase-label/purchase-label.d.ts +11 -5
  19. package/src/elements/shipengine-carriers/index.d.ts +1 -0
  20. package/src/elements/{list-carriers/list-carriers.d.ts → shipengine-carriers/shipengine-carriers.d.ts} +46 -37
  21. package/src/elements/shipments-grid/shipments-grid.d.ts +7 -1
  22. package/src/elements/theme-creator/theme-creator.d.ts +7 -1
  23. package/src/elements/unit-settings/unit-settings-element.d.ts +7 -1
  24. package/src/elements/view-shipment/view-shipment.d.ts +17 -13
  25. package/src/elements/void-label/void-label.d.ts +16 -11
  26. package/src/elements/wallet-history/wallet-history-element.d.ts +7 -1
  27. package/src/features/index.d.ts +1 -1
  28. package/src/features/label-layout/label-layout.d.ts +6 -1
  29. package/src/features/label-layout/use-label-layout.d.ts +3 -3
  30. package/src/features/manage-warehouses/index.d.ts +1 -0
  31. package/src/features/manage-warehouses/manage-warehouses.d.ts +16 -1
  32. package/src/features/manage-warehouses/use-manage-warehouses.d.ts +15 -0
  33. package/src/features/shipengine-carriers/hooks/use-carrier-metadata.d.ts +13 -0
  34. package/src/features/shipengine-carriers/index.d.ts +1 -0
  35. package/src/features/shipengine-carriers/shipengine-carriers-row/index.d.ts +1 -0
  36. package/src/features/{list-carriers/list-carriers-row/list-carriers-row.d.ts → shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.d.ts} +2 -2
  37. package/src/features/shipengine-carriers/shipengine-carriers.d.ts +10 -0
  38. package/src/features/unit-settings/index.d.ts +1 -0
  39. package/src/features/unit-settings/unit-settings.d.ts +9 -1
  40. package/src/features/unit-settings/use-unit-settings.d.ts +10 -0
  41. package/src/locales/en/index.d.ts +7 -1
  42. package/src/types/carrier-metadata.d.ts +3 -0
  43. package/src/utilities/feature-flags.d.ts +5 -2
  44. package/src/workflows/account-settings/account-settings.d.ts +14 -11
  45. package/src/workflows/account-settings/use-get-panel-props.d.ts +7 -1
  46. package/src/workflows/connect-carrier/connect-carrier.d.ts +7 -1
  47. package/src/workflows/manage-wallet-workflow/index.d.ts +1 -0
  48. package/src/workflows/manage-wallet-workflow/manage-wallet-workflow.d.ts +828 -0
  49. package/src/workflows/manage-wallet-workflow/use-get-wallet-panel-props.d.ts +4 -0
  50. package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +2 -2
  51. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +2 -1
  52. package/src/workflows/onboarding/onboarding.d.ts +11 -6
  53. package/src/elements/list-carriers/index.d.ts +0 -1
  54. package/src/features/list-carriers/hooks/use-carrier-metadata.d.ts +0 -10
  55. package/src/features/list-carriers/index.d.ts +0 -1
  56. package/src/features/list-carriers/list-carriers-row/index.d.ts +0 -1
  57. package/src/features/list-carriers/list-carriers.d.ts +0 -9
  58. /package/src/features/{list-carriers → shipengine-carriers}/hooks/index.d.ts +0 -0
  59. /package/src/features/{list-carriers → shipengine-carriers}/hooks/use-list-connected-carriers.d.ts +0 -0
  60. /package/src/features/{list-carriers/list-carriers-row/list-carriers-row.styles.d.ts → shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.styles.d.ts} +0 -0
  61. /package/src/features/{list-carriers/list-carriers.styles.d.ts → shipengine-carriers/shipengine-carriers.styles.d.ts} +0 -0
package/index.js CHANGED
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { useEffect, useRef, useReducer, useMemo, useCallback, useState, createContext, useContext, createElement as createElement$2, memo, forwardRef, useLayoutEffect, Fragment as Fragment$1 } from 'react';
4
4
  import { useController, get as get$2, set as set$2, useWatch, useFormState, useForm } from 'react-hook-form';
5
5
  import { useTranslation, Trans } from 'react-i18next';
6
- import alchemy, { logger, SE, useAlchemy, useListServicePoints, useValidateAddresses, useAddFunds, useGetCarrierById, useUpdateAutoFunding, useGetAutoFundingConfiguration, useListCarriers, useConnectCarrier, useListLabels, useListFundingSources, useGetFundingSourceTransactions, useUpdateAccountSettings, useGetAccountSettings, useUpdateFundingSource, useListWarehouses, useUpdateWarehouse, useCreateWarehouse, useDeleteWarehouse, useCreateFundingSource, useRegisterCarrier, useGetFundingSourceMetadata, useConnectCarrierAccount, useGetCarrierConnectionForm, useListCarrierConnections, useListSalesOrderShipments, useCreateSalesOrderShipment, CodedError, useListSalesOrders, useGetSalesOrder, useListOrderSources, useRefreshOrderSource, useUpdateSalesOrderShipment, useParseAddress, useListCustomPackageTypes, useCalculateRates, useGetShipmentRates, useCreateLabel, useGetInsuranceAccount, useCreateShipment, useGetShipment, useListShipments, useGetSalesOrderShipment, useGetLabel, useVoidLabel } from '@shipengine/alchemy';
6
+ import alchemy, { logger, SE, useAlchemy, useListServicePoints, useValidateAddresses, useAddFunds, useGetCarrierById, useUpdateAutoFunding, useGetAutoFundingConfiguration, useListCarriers, useListFundingSources, useGetFundingSourceMetadata, useConnectCarrier, useListLabels, useGetFundingSourceTransactions, useUpdateAccountSettings, useGetAccountSettings, useUpdateFundingSource, useUpdateWarehouse, useCreateWarehouse, useDeleteWarehouse, useListWarehouses, useCreateFundingSource, useRegisterCarrier, useConnectCarrierAccount, useGetCarrierConnectionForm, useListCarrierConnections, useListSalesOrderShipments, useCreateSalesOrderShipment, CodedError, useListSalesOrders, useGetSalesOrder, useListOrderSources, useRefreshOrderSource, useUpdateSalesOrderShipment, useParseAddress, useCalculateRates, useGetShipmentRates, useCreateLabel, useListCustomPackageTypes, useGetInsuranceAccount, useCreateShipment, useGetShipment, useListShipments, useGetSalesOrderShipment, useGetLabel, useVoidLabel } from '@shipengine/alchemy';
7
7
  import { Typography, IconTooltip, IconSize, FormField, FieldMessageType, Checkbox, Input, DatePicker as DatePicker$1, InlineNotification, NotificationType, Icon, Tag, TagColor, TagVariant, Divider, Button, ButtonVariant, Skeleton, SkeletonAnimation, SkeletonBackgroundColor, SkeletonVariant, Link, SelectAutocomplete, Select as Select$1, OptionGroup, Option, Switch as Switch$1, Textarea, Spinner, SpinnerSize, ChipList, Chip, ButtonSize, Table, TableFooter, TableHeader, TableHeaderRow, TableHeaderCell, TableBody, TableRow, TableBodyCell, TableBaseRow, DropdownOptionList, Pagination, ButtonColor, Grid, GridChild, RadioGroup, Radio, Dialog, DialogHeader, ButtonIcon, DialogContent, Toast, Next, Stepper, Step, Popover, BottomSheet } from '@shipengine/giger';
8
8
  import { format, parse, isToday } from 'date-fns';
9
9
  import * as Locales from 'date-fns/locale';
@@ -26,7 +26,7 @@ import validator from '@rjsf/validator-ajv8';
26
26
 
27
27
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
28
28
 
29
- var fails$s = function (exec) {
29
+ var fails$r = function (exec) {
30
30
  try {
31
31
  return !!exec();
32
32
  } catch (error) {
@@ -34,9 +34,9 @@ var fails$s = function (exec) {
34
34
  }
35
35
  };
36
36
 
37
- var fails$r = fails$s;
37
+ var fails$q = fails$r;
38
38
 
39
- var functionBindNative = !fails$r(function () {
39
+ var functionBindNative = !fails$q(function () {
40
40
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
41
41
  var test = (function () { /* empty */ }).bind();
42
42
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -55,24 +55,24 @@ var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
55
55
  };
56
56
  };
57
57
 
58
- var uncurryThis$v = functionUncurryThis;
58
+ var uncurryThis$u = functionUncurryThis;
59
59
 
60
- var toString$g = uncurryThis$v({}.toString);
61
- var stringSlice$a = uncurryThis$v(''.slice);
60
+ var toString$f = uncurryThis$u({}.toString);
61
+ var stringSlice$9 = uncurryThis$u(''.slice);
62
62
 
63
63
  var classofRaw$2 = function (it) {
64
- return stringSlice$a(toString$g(it), 8, -1);
64
+ return stringSlice$9(toString$f(it), 8, -1);
65
65
  };
66
66
 
67
- var uncurryThis$u = functionUncurryThis;
68
- var fails$q = fails$s;
67
+ var uncurryThis$t = functionUncurryThis;
68
+ var fails$p = fails$r;
69
69
  var classof$9 = classofRaw$2;
70
70
 
71
71
  var $Object$4 = Object;
72
- var split$3 = uncurryThis$u(''.split);
72
+ var split$3 = uncurryThis$t(''.split);
73
73
 
74
74
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
75
- var indexedObject = fails$q(function () {
75
+ var indexedObject = fails$p(function () {
76
76
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
77
77
  // eslint-disable-next-line no-prototype-builtins -- safe
78
78
  return !$Object$4('z').propertyIsEnumerable(0);
@@ -110,7 +110,7 @@ var check = function (it) {
110
110
  };
111
111
 
112
112
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
113
- var global$s =
113
+ var global$r =
114
114
  // eslint-disable-next-line es/no-global-this -- safe
115
115
  check(typeof globalThis == 'object' && globalThis) ||
116
116
  check(typeof window == 'object' && window) ||
@@ -124,24 +124,24 @@ var shared$4 = {exports: {}};
124
124
 
125
125
  var isPure = false;
126
126
 
127
- var global$r = global$s;
127
+ var global$q = global$r;
128
128
 
129
129
  // eslint-disable-next-line es/no-object-defineproperty -- safe
130
- var defineProperty$8 = Object.defineProperty;
130
+ var defineProperty$7 = Object.defineProperty;
131
131
 
132
132
  var defineGlobalProperty$3 = function (key, value) {
133
133
  try {
134
- defineProperty$8(global$r, key, { value: value, configurable: true, writable: true });
134
+ defineProperty$7(global$q, key, { value: value, configurable: true, writable: true });
135
135
  } catch (error) {
136
- global$r[key] = value;
136
+ global$q[key] = value;
137
137
  } return value;
138
138
  };
139
139
 
140
- var global$q = global$s;
140
+ var global$p = global$r;
141
141
  var defineGlobalProperty$2 = defineGlobalProperty$3;
142
142
 
143
143
  var SHARED = '__core-js_shared__';
144
- var store$3 = global$q[SHARED] || defineGlobalProperty$2(SHARED, {});
144
+ var store$3 = global$p[SHARED] || defineGlobalProperty$2(SHARED, {});
145
145
 
146
146
  var sharedStore = store$3;
147
147
 
@@ -167,10 +167,10 @@ var toObject$8 = function (argument) {
167
167
  return $Object$3(requireObjectCoercible$7(argument));
168
168
  };
169
169
 
170
- var uncurryThis$t = functionUncurryThis;
170
+ var uncurryThis$s = functionUncurryThis;
171
171
  var toObject$7 = toObject$8;
172
172
 
173
- var hasOwnProperty = uncurryThis$t({}.hasOwnProperty);
173
+ var hasOwnProperty = uncurryThis$s({}.hasOwnProperty);
174
174
 
175
175
  // `HasOwnProperty` abstract operation
176
176
  // https://tc39.es/ecma262/#sec-hasownproperty
@@ -179,14 +179,14 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
179
179
  return hasOwnProperty(toObject$7(it), key);
180
180
  };
181
181
 
182
- var uncurryThis$s = functionUncurryThis;
182
+ var uncurryThis$r = functionUncurryThis;
183
183
 
184
184
  var id = 0;
185
185
  var postfix = Math.random();
186
- var toString$f = uncurryThis$s(1.0.toString);
186
+ var toString$e = uncurryThis$r(1.0.toString);
187
187
 
188
188
  var uid$2 = function (key) {
189
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$f(++id + postfix, 36);
189
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$e(++id + postfix, 36);
190
190
  };
191
191
 
192
192
  var documentAll$2 = typeof document == 'object' && document.all;
@@ -205,32 +205,32 @@ var documentAll$1 = $documentAll$1.all;
205
205
 
206
206
  // `IsCallable` abstract operation
207
207
  // https://tc39.es/ecma262/#sec-iscallable
208
- var isCallable$q = $documentAll$1.IS_HTMLDDA ? function (argument) {
208
+ var isCallable$p = $documentAll$1.IS_HTMLDDA ? function (argument) {
209
209
  return typeof argument == 'function' || argument === documentAll$1;
210
210
  } : function (argument) {
211
211
  return typeof argument == 'function';
212
212
  };
213
213
 
214
- var global$p = global$s;
215
- var isCallable$p = isCallable$q;
214
+ var global$o = global$r;
215
+ var isCallable$o = isCallable$p;
216
216
 
217
217
  var aFunction = function (argument) {
218
- return isCallable$p(argument) ? argument : undefined;
218
+ return isCallable$o(argument) ? argument : undefined;
219
219
  };
220
220
 
221
221
  var getBuiltIn$8 = function (namespace, method) {
222
- return arguments.length < 2 ? aFunction(global$p[namespace]) : global$p[namespace] && global$p[namespace][method];
222
+ return arguments.length < 2 ? aFunction(global$o[namespace]) : global$o[namespace] && global$o[namespace][method];
223
223
  };
224
224
 
225
225
  var getBuiltIn$7 = getBuiltIn$8;
226
226
 
227
227
  var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
228
228
 
229
- var global$o = global$s;
229
+ var global$n = global$r;
230
230
  var userAgent$5 = engineUserAgent;
231
231
 
232
- var process$4 = global$o.process;
233
- var Deno$1 = global$o.Deno;
232
+ var process$4 = global$n.process;
233
+ var Deno$1 = global$n.Deno;
234
234
  var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
235
235
  var v8 = versions && versions.v8;
236
236
  var match, version;
@@ -257,10 +257,10 @@ var engineV8Version = version;
257
257
  /* eslint-disable es/no-symbol -- required for testing */
258
258
 
259
259
  var V8_VERSION$1 = engineV8Version;
260
- var fails$p = fails$s;
260
+ var fails$o = fails$r;
261
261
 
262
262
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
263
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$p(function () {
263
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$o(function () {
264
264
  var symbol = Symbol();
265
265
  // Chrome 38 Symbol has incorrect toString conversion
266
266
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -277,22 +277,22 @@ var useSymbolAsUid = NATIVE_SYMBOL$2
277
277
  && !Symbol.sham
278
278
  && typeof Symbol.iterator == 'symbol';
279
279
 
280
- var global$n = global$s;
280
+ var global$m = global$r;
281
281
  var shared$3 = shared$4.exports;
282
- var hasOwn$e = hasOwnProperty_1;
282
+ var hasOwn$d = hasOwnProperty_1;
283
283
  var uid$1 = uid$2;
284
284
  var NATIVE_SYMBOL$1 = symbolConstructorDetection;
285
285
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
286
286
 
287
287
  var WellKnownSymbolsStore = shared$3('wks');
288
- var Symbol$3 = global$n.Symbol;
288
+ var Symbol$3 = global$m.Symbol;
289
289
  var symbolFor = Symbol$3 && Symbol$3['for'];
290
290
  var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$3 : Symbol$3 && Symbol$3.withoutSetter || uid$1;
291
291
 
292
- var wellKnownSymbol$n = function (name) {
293
- if (!hasOwn$e(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL$1 || typeof WellKnownSymbolsStore[name] == 'string')) {
292
+ var wellKnownSymbol$m = function (name) {
293
+ if (!hasOwn$d(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL$1 || typeof WellKnownSymbolsStore[name] == 'string')) {
294
294
  var description = 'Symbol.' + name;
295
- if (NATIVE_SYMBOL$1 && hasOwn$e(Symbol$3, name)) {
295
+ if (NATIVE_SYMBOL$1 && hasOwn$d(Symbol$3, name)) {
296
296
  WellKnownSymbolsStore[name] = Symbol$3[name];
297
297
  } else if (USE_SYMBOL_AS_UID$1 && symbolFor) {
298
298
  WellKnownSymbolsStore[name] = symbolFor(description);
@@ -302,15 +302,15 @@ var wellKnownSymbol$n = function (name) {
302
302
  } return WellKnownSymbolsStore[name];
303
303
  };
304
304
 
305
- var isCallable$o = isCallable$q;
305
+ var isCallable$n = isCallable$p;
306
306
  var $documentAll = documentAll_1;
307
307
 
308
308
  var documentAll = $documentAll.all;
309
309
 
310
310
  var isObject$c = $documentAll.IS_HTMLDDA ? function (it) {
311
- return typeof it == 'object' ? it !== null : isCallable$o(it) || it === documentAll;
311
+ return typeof it == 'object' ? it !== null : isCallable$n(it) || it === documentAll;
312
312
  } : function (it) {
313
- return typeof it == 'object' ? it !== null : isCallable$o(it);
313
+ return typeof it == 'object' ? it !== null : isCallable$n(it);
314
314
  };
315
315
 
316
316
  var isObject$b = isObject$c;
@@ -326,20 +326,20 @@ var anObject$h = function (argument) {
326
326
 
327
327
  var objectDefineProperties = {};
328
328
 
329
- var fails$o = fails$s;
329
+ var fails$n = fails$r;
330
330
 
331
331
  // Detect IE8's incomplete defineProperty implementation
332
- var descriptors = !fails$o(function () {
332
+ var descriptors = !fails$n(function () {
333
333
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
334
334
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
335
335
  });
336
336
 
337
- var DESCRIPTORS$e = descriptors;
338
- var fails$n = fails$s;
337
+ var DESCRIPTORS$d = descriptors;
338
+ var fails$m = fails$r;
339
339
 
340
340
  // V8 ~ Chrome 36-
341
341
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
342
- var v8PrototypeDefineBug = DESCRIPTORS$e && fails$n(function () {
342
+ var v8PrototypeDefineBug = DESCRIPTORS$d && fails$m(function () {
343
343
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
344
344
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
345
345
  value: 42,
@@ -349,10 +349,10 @@ var v8PrototypeDefineBug = DESCRIPTORS$e && fails$n(function () {
349
349
 
350
350
  var objectDefineProperty = {};
351
351
 
352
- var global$m = global$s;
352
+ var global$l = global$r;
353
353
  var isObject$a = isObject$c;
354
354
 
355
- var document$3 = global$m.document;
355
+ var document$3 = global$l.document;
356
356
  // typeof document.createElement is 'object' in old IE
357
357
  var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
358
358
 
@@ -360,12 +360,12 @@ var documentCreateElement$2 = function (it) {
360
360
  return EXISTS$1 ? document$3.createElement(it) : {};
361
361
  };
362
362
 
363
- var DESCRIPTORS$d = descriptors;
364
- var fails$m = fails$s;
363
+ var DESCRIPTORS$c = descriptors;
364
+ var fails$l = fails$r;
365
365
  var createElement$1 = documentCreateElement$2;
366
366
 
367
367
  // Thanks to IE8 for its funny defineProperty
368
- var ie8DomDefine = !DESCRIPTORS$d && !fails$m(function () {
368
+ var ie8DomDefine = !DESCRIPTORS$c && !fails$l(function () {
369
369
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
370
370
  return Object.defineProperty(createElement$1('div'), 'a', {
371
371
  get: function () { return 7; }
@@ -380,13 +380,13 @@ var functionCall = NATIVE_BIND$2 ? call$l.bind(call$l) : function () {
380
380
  return call$l.apply(call$l, arguments);
381
381
  };
382
382
 
383
- var uncurryThis$r = functionUncurryThis;
383
+ var uncurryThis$q = functionUncurryThis;
384
384
 
385
- var objectIsPrototypeOf = uncurryThis$r({}.isPrototypeOf);
385
+ var objectIsPrototypeOf = uncurryThis$q({}.isPrototypeOf);
386
386
 
387
387
  var getBuiltIn$6 = getBuiltIn$8;
388
- var isCallable$n = isCallable$q;
389
- var isPrototypeOf$5 = objectIsPrototypeOf;
388
+ var isCallable$m = isCallable$p;
389
+ var isPrototypeOf$4 = objectIsPrototypeOf;
390
390
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
391
391
 
392
392
  var $Object$2 = Object;
@@ -395,7 +395,7 @@ var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
395
395
  return typeof it == 'symbol';
396
396
  } : function (it) {
397
397
  var $Symbol = getBuiltIn$6('Symbol');
398
- return isCallable$n($Symbol) && isPrototypeOf$5($Symbol.prototype, $Object$2(it));
398
+ return isCallable$m($Symbol) && isPrototypeOf$4($Symbol.prototype, $Object$2(it));
399
399
  };
400
400
 
401
401
  var $String$3 = String;
@@ -408,14 +408,14 @@ var tryToString$5 = function (argument) {
408
408
  }
409
409
  };
410
410
 
411
- var isCallable$m = isCallable$q;
411
+ var isCallable$l = isCallable$p;
412
412
  var tryToString$4 = tryToString$5;
413
413
 
414
414
  var $TypeError$g = TypeError;
415
415
 
416
416
  // `Assert: IsCallable(argument) is true`
417
417
  var aCallable$a = function (argument) {
418
- if (isCallable$m(argument)) return argument;
418
+ if (isCallable$l(argument)) return argument;
419
419
  throw $TypeError$g(tryToString$4(argument) + ' is not a function');
420
420
  };
421
421
 
@@ -430,7 +430,7 @@ var getMethod$6 = function (V, P) {
430
430
  };
431
431
 
432
432
  var call$k = functionCall;
433
- var isCallable$l = isCallable$q;
433
+ var isCallable$k = isCallable$p;
434
434
  var isObject$9 = isObject$c;
435
435
 
436
436
  var $TypeError$f = TypeError;
@@ -439,9 +439,9 @@ var $TypeError$f = TypeError;
439
439
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
440
440
  var ordinaryToPrimitive$1 = function (input, pref) {
441
441
  var fn, val;
442
- if (pref === 'string' && isCallable$l(fn = input.toString) && !isObject$9(val = call$k(fn, input))) return val;
443
- if (isCallable$l(fn = input.valueOf) && !isObject$9(val = call$k(fn, input))) return val;
444
- if (pref !== 'string' && isCallable$l(fn = input.toString) && !isObject$9(val = call$k(fn, input))) return val;
442
+ if (pref === 'string' && isCallable$k(fn = input.toString) && !isObject$9(val = call$k(fn, input))) return val;
443
+ if (isCallable$k(fn = input.valueOf) && !isObject$9(val = call$k(fn, input))) return val;
444
+ if (pref !== 'string' && isCallable$k(fn = input.toString) && !isObject$9(val = call$k(fn, input))) return val;
445
445
  throw $TypeError$f("Can't convert object to primitive value");
446
446
  };
447
447
 
@@ -450,10 +450,10 @@ var isObject$8 = isObject$c;
450
450
  var isSymbol$1 = isSymbol$2;
451
451
  var getMethod$5 = getMethod$6;
452
452
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
453
- var wellKnownSymbol$m = wellKnownSymbol$n;
453
+ var wellKnownSymbol$l = wellKnownSymbol$m;
454
454
 
455
455
  var $TypeError$e = TypeError;
456
- var TO_PRIMITIVE = wellKnownSymbol$m('toPrimitive');
456
+ var TO_PRIMITIVE = wellKnownSymbol$l('toPrimitive');
457
457
 
458
458
  // `ToPrimitive` abstract operation
459
459
  // https://tc39.es/ecma262/#sec-toprimitive
@@ -481,7 +481,7 @@ var toPropertyKey$3 = function (argument) {
481
481
  return isSymbol(key) ? key : key + '';
482
482
  };
483
483
 
484
- var DESCRIPTORS$c = descriptors;
484
+ var DESCRIPTORS$b = descriptors;
485
485
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
486
486
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
487
487
  var anObject$g = anObject$h;
@@ -498,7 +498,7 @@ var WRITABLE = 'writable';
498
498
 
499
499
  // `Object.defineProperty` method
500
500
  // https://tc39.es/ecma262/#sec-object.defineproperty
501
- objectDefineProperty.f = DESCRIPTORS$c ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
501
+ objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
502
502
  anObject$g(O);
503
503
  P = toPropertyKey$2(P);
504
504
  anObject$g(Attributes);
@@ -612,22 +612,22 @@ var arrayIncludes = {
612
612
 
613
613
  var hiddenKeys$4 = {};
614
614
 
615
- var uncurryThis$q = functionUncurryThis;
616
- var hasOwn$d = hasOwnProperty_1;
615
+ var uncurryThis$p = functionUncurryThis;
616
+ var hasOwn$c = hasOwnProperty_1;
617
617
  var toIndexedObject$3 = toIndexedObject$5;
618
618
  var indexOf$2 = arrayIncludes.indexOf;
619
619
  var hiddenKeys$3 = hiddenKeys$4;
620
620
 
621
- var push$5 = uncurryThis$q([].push);
621
+ var push$5 = uncurryThis$p([].push);
622
622
 
623
623
  var objectKeysInternal = function (object, names) {
624
624
  var O = toIndexedObject$3(object);
625
625
  var i = 0;
626
626
  var result = [];
627
627
  var key;
628
- for (key in O) !hasOwn$d(hiddenKeys$3, key) && hasOwn$d(O, key) && push$5(result, key);
628
+ for (key in O) !hasOwn$c(hiddenKeys$3, key) && hasOwn$c(O, key) && push$5(result, key);
629
629
  // Don't enum bug & hidden keys
630
- while (names.length > i) if (hasOwn$d(O, key = names[i++])) {
630
+ while (names.length > i) if (hasOwn$c(O, key = names[i++])) {
631
631
  ~indexOf$2(result, key) || push$5(result, key);
632
632
  }
633
633
  return result;
@@ -654,7 +654,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
654
654
  return internalObjectKeys$1(O, enumBugKeys$2);
655
655
  };
656
656
 
657
- var DESCRIPTORS$b = descriptors;
657
+ var DESCRIPTORS$a = descriptors;
658
658
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
659
659
  var definePropertyModule$5 = objectDefineProperty;
660
660
  var anObject$f = anObject$h;
@@ -664,7 +664,7 @@ var objectKeys$1 = objectKeys$2;
664
664
  // `Object.defineProperties` method
665
665
  // https://tc39.es/ecma262/#sec-object.defineproperties
666
666
  // eslint-disable-next-line es/no-object-defineproperties -- safe
667
- objectDefineProperties.f = DESCRIPTORS$b && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
667
+ objectDefineProperties.f = DESCRIPTORS$a && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
668
668
  anObject$f(O);
669
669
  var props = toIndexedObject$2(Properties);
670
670
  var keys = objectKeys$1(Properties);
@@ -682,10 +682,10 @@ var html$2 = getBuiltIn$5('document', 'documentElement');
682
682
  var shared$2 = shared$4.exports;
683
683
  var uid = uid$2;
684
684
 
685
- var keys$1 = shared$2('keys');
685
+ var keys = shared$2('keys');
686
686
 
687
687
  var sharedKey$3 = function (key) {
688
- return keys$1[key] || (keys$1[key] = uid(key));
688
+ return keys[key] || (keys[key] = uid(key));
689
689
  };
690
690
 
691
691
  /* global ActiveXObject -- old IE, WSH */
@@ -773,17 +773,17 @@ var objectCreate = Object.create || function create(O, Properties) {
773
773
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
774
774
  };
775
775
 
776
- var wellKnownSymbol$l = wellKnownSymbol$n;
776
+ var wellKnownSymbol$k = wellKnownSymbol$m;
777
777
  var create$3 = objectCreate;
778
- var defineProperty$7 = objectDefineProperty.f;
778
+ var defineProperty$6 = objectDefineProperty.f;
779
779
 
780
- var UNSCOPABLES = wellKnownSymbol$l('unscopables');
780
+ var UNSCOPABLES = wellKnownSymbol$k('unscopables');
781
781
  var ArrayPrototype$1 = Array.prototype;
782
782
 
783
783
  // Array.prototype[@@unscopables]
784
784
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
785
785
  if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
786
- defineProperty$7(ArrayPrototype$1, UNSCOPABLES, {
786
+ defineProperty$6(ArrayPrototype$1, UNSCOPABLES, {
787
787
  configurable: true,
788
788
  value: create$3(null)
789
789
  });
@@ -796,12 +796,12 @@ var addToUnscopables$3 = function (key) {
796
796
 
797
797
  var iterators = {};
798
798
 
799
- var global$l = global$s;
800
- var isCallable$k = isCallable$q;
799
+ var global$k = global$r;
800
+ var isCallable$j = isCallable$p;
801
801
 
802
- var WeakMap$1 = global$l.WeakMap;
802
+ var WeakMap$1 = global$k.WeakMap;
803
803
 
804
- var weakMapBasicDetection = isCallable$k(WeakMap$1) && /native code/.test(String(WeakMap$1));
804
+ var weakMapBasicDetection = isCallable$j(WeakMap$1) && /native code/.test(String(WeakMap$1));
805
805
 
806
806
  var createPropertyDescriptor$5 = function (bitmap, value) {
807
807
  return {
@@ -812,11 +812,11 @@ var createPropertyDescriptor$5 = function (bitmap, value) {
812
812
  };
813
813
  };
814
814
 
815
- var DESCRIPTORS$a = descriptors;
815
+ var DESCRIPTORS$9 = descriptors;
816
816
  var definePropertyModule$4 = objectDefineProperty;
817
817
  var createPropertyDescriptor$4 = createPropertyDescriptor$5;
818
818
 
819
- var createNonEnumerableProperty$6 = DESCRIPTORS$a ? function (object, key, value) {
819
+ var createNonEnumerableProperty$5 = DESCRIPTORS$9 ? function (object, key, value) {
820
820
  return definePropertyModule$4.f(object, key, createPropertyDescriptor$4(1, value));
821
821
  } : function (object, key, value) {
822
822
  object[key] = value;
@@ -824,17 +824,17 @@ var createNonEnumerableProperty$6 = DESCRIPTORS$a ? function (object, key, value
824
824
  };
825
825
 
826
826
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
827
- var global$k = global$s;
827
+ var global$j = global$r;
828
828
  var isObject$7 = isObject$c;
829
- var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
830
- var hasOwn$c = hasOwnProperty_1;
829
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
830
+ var hasOwn$b = hasOwnProperty_1;
831
831
  var shared$1 = sharedStore;
832
832
  var sharedKey$1 = sharedKey$3;
833
833
  var hiddenKeys$1 = hiddenKeys$4;
834
834
 
835
835
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
836
- var TypeError$4 = global$k.TypeError;
837
- var WeakMap = global$k.WeakMap;
836
+ var TypeError$4 = global$j.TypeError;
837
+ var WeakMap = global$j.WeakMap;
838
838
  var set$1, get, has;
839
839
 
840
840
  var enforce = function (it) {
@@ -873,16 +873,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
873
873
  var STATE = sharedKey$1('state');
874
874
  hiddenKeys$1[STATE] = true;
875
875
  set$1 = function (it, metadata) {
876
- if (hasOwn$c(it, STATE)) throw TypeError$4(OBJECT_ALREADY_INITIALIZED);
876
+ if (hasOwn$b(it, STATE)) throw TypeError$4(OBJECT_ALREADY_INITIALIZED);
877
877
  metadata.facade = it;
878
- createNonEnumerableProperty$5(it, STATE, metadata);
878
+ createNonEnumerableProperty$4(it, STATE, metadata);
879
879
  return metadata;
880
880
  };
881
881
  get = function (it) {
882
- return hasOwn$c(it, STATE) ? it[STATE] : {};
882
+ return hasOwn$b(it, STATE) ? it[STATE] : {};
883
883
  };
884
884
  has = function (it) {
885
- return hasOwn$c(it, STATE);
885
+ return hasOwn$b(it, STATE);
886
886
  };
887
887
  }
888
888
 
@@ -912,13 +912,13 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
912
912
  return !!descriptor && descriptor.enumerable;
913
913
  } : $propertyIsEnumerable;
914
914
 
915
- var DESCRIPTORS$9 = descriptors;
915
+ var DESCRIPTORS$8 = descriptors;
916
916
  var call$i = functionCall;
917
917
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
918
918
  var createPropertyDescriptor$3 = createPropertyDescriptor$5;
919
919
  var toIndexedObject$1 = toIndexedObject$5;
920
920
  var toPropertyKey$1 = toPropertyKey$3;
921
- var hasOwn$b = hasOwnProperty_1;
921
+ var hasOwn$a = hasOwnProperty_1;
922
922
  var IE8_DOM_DEFINE = ie8DomDefine;
923
923
 
924
924
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -926,28 +926,28 @@ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
926
926
 
927
927
  // `Object.getOwnPropertyDescriptor` method
928
928
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
929
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
929
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
930
930
  O = toIndexedObject$1(O);
931
931
  P = toPropertyKey$1(P);
932
932
  if (IE8_DOM_DEFINE) try {
933
933
  return $getOwnPropertyDescriptor(O, P);
934
934
  } catch (error) { /* empty */ }
935
- if (hasOwn$b(O, P)) return createPropertyDescriptor$3(!call$i(propertyIsEnumerableModule$1.f, O, P), O[P]);
935
+ if (hasOwn$a(O, P)) return createPropertyDescriptor$3(!call$i(propertyIsEnumerableModule$1.f, O, P), O[P]);
936
936
  };
937
937
 
938
938
  var makeBuiltIn$3 = {exports: {}};
939
939
 
940
- var DESCRIPTORS$8 = descriptors;
941
- var hasOwn$a = hasOwnProperty_1;
940
+ var DESCRIPTORS$7 = descriptors;
941
+ var hasOwn$9 = hasOwnProperty_1;
942
942
 
943
943
  var FunctionPrototype$1 = Function.prototype;
944
944
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
945
- var getDescriptor = DESCRIPTORS$8 && Object.getOwnPropertyDescriptor;
945
+ var getDescriptor = DESCRIPTORS$7 && Object.getOwnPropertyDescriptor;
946
946
 
947
- var EXISTS = hasOwn$a(FunctionPrototype$1, 'name');
947
+ var EXISTS = hasOwn$9(FunctionPrototype$1, 'name');
948
948
  // additional protection from minified / mangled / dropped function names
949
949
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
950
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$8 || (DESCRIPTORS$8 && getDescriptor(FunctionPrototype$1, 'name').configurable));
950
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$7 || (DESCRIPTORS$7 && getDescriptor(FunctionPrototype$1, 'name').configurable));
951
951
 
952
952
  var functionName = {
953
953
  EXISTS: EXISTS,
@@ -955,14 +955,14 @@ var functionName = {
955
955
  CONFIGURABLE: CONFIGURABLE
956
956
  };
957
957
 
958
- var uncurryThis$p = functionUncurryThis;
959
- var isCallable$j = isCallable$q;
958
+ var uncurryThis$o = functionUncurryThis;
959
+ var isCallable$i = isCallable$p;
960
960
  var store = sharedStore;
961
961
 
962
- var functionToString = uncurryThis$p(Function.toString);
962
+ var functionToString = uncurryThis$o(Function.toString);
963
963
 
964
964
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
965
- if (!isCallable$j(store.inspectSource)) {
965
+ if (!isCallable$i(store.inspectSource)) {
966
966
  store.inspectSource = function (it) {
967
967
  return functionToString(it);
968
968
  };
@@ -970,21 +970,21 @@ if (!isCallable$j(store.inspectSource)) {
970
970
 
971
971
  var inspectSource$3 = store.inspectSource;
972
972
 
973
- var fails$l = fails$s;
974
- var isCallable$i = isCallable$q;
975
- var hasOwn$9 = hasOwnProperty_1;
976
- var DESCRIPTORS$7 = descriptors;
973
+ var fails$k = fails$r;
974
+ var isCallable$h = isCallable$p;
975
+ var hasOwn$8 = hasOwnProperty_1;
976
+ var DESCRIPTORS$6 = descriptors;
977
977
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
978
978
  var inspectSource$2 = inspectSource$3;
979
979
  var InternalStateModule$5 = internalState;
980
980
 
981
- var enforceInternalState$1 = InternalStateModule$5.enforce;
981
+ var enforceInternalState = InternalStateModule$5.enforce;
982
982
  var getInternalState$3 = InternalStateModule$5.get;
983
983
  // eslint-disable-next-line es/no-object-defineproperty -- safe
984
- var defineProperty$6 = Object.defineProperty;
984
+ var defineProperty$5 = Object.defineProperty;
985
985
 
986
- var CONFIGURABLE_LENGTH = DESCRIPTORS$7 && !fails$l(function () {
987
- return defineProperty$6(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
986
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$6 && !fails$k(function () {
987
+ return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
988
988
  });
989
989
 
990
990
  var TEMPLATE = String(String).split('String');
@@ -995,21 +995,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
995
995
  }
996
996
  if (options && options.getter) name = 'get ' + name;
997
997
  if (options && options.setter) name = 'set ' + name;
998
- if (!hasOwn$9(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
999
- if (DESCRIPTORS$7) defineProperty$6(value, 'name', { value: name, configurable: true });
998
+ if (!hasOwn$8(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
999
+ if (DESCRIPTORS$6) defineProperty$5(value, 'name', { value: name, configurable: true });
1000
1000
  else value.name = name;
1001
1001
  }
1002
- if (CONFIGURABLE_LENGTH && options && hasOwn$9(options, 'arity') && value.length !== options.arity) {
1003
- defineProperty$6(value, 'length', { value: options.arity });
1002
+ if (CONFIGURABLE_LENGTH && options && hasOwn$8(options, 'arity') && value.length !== options.arity) {
1003
+ defineProperty$5(value, 'length', { value: options.arity });
1004
1004
  }
1005
1005
  try {
1006
- if (options && hasOwn$9(options, 'constructor') && options.constructor) {
1007
- if (DESCRIPTORS$7) defineProperty$6(value, 'prototype', { writable: false });
1006
+ if (options && hasOwn$8(options, 'constructor') && options.constructor) {
1007
+ if (DESCRIPTORS$6) defineProperty$5(value, 'prototype', { writable: false });
1008
1008
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
1009
1009
  } else if (value.prototype) value.prototype = undefined;
1010
1010
  } catch (error) { /* empty */ }
1011
- var state = enforceInternalState$1(value);
1012
- if (!hasOwn$9(state, 'source')) {
1011
+ var state = enforceInternalState(value);
1012
+ if (!hasOwn$8(state, 'source')) {
1013
1013
  state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
1014
1014
  } return value;
1015
1015
  };
@@ -1017,19 +1017,19 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
1017
1017
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1018
1018
  // eslint-disable-next-line no-extend-native -- required
1019
1019
  Function.prototype.toString = makeBuiltIn$2(function toString() {
1020
- return isCallable$i(this) && getInternalState$3(this).source || inspectSource$2(this);
1020
+ return isCallable$h(this) && getInternalState$3(this).source || inspectSource$2(this);
1021
1021
  }, 'toString');
1022
1022
 
1023
- var isCallable$h = isCallable$q;
1023
+ var isCallable$g = isCallable$p;
1024
1024
  var definePropertyModule$3 = objectDefineProperty;
1025
1025
  var makeBuiltIn$1 = makeBuiltIn$3.exports;
1026
1026
  var defineGlobalProperty$1 = defineGlobalProperty$3;
1027
1027
 
1028
- var defineBuiltIn$b = function (O, key, value, options) {
1028
+ var defineBuiltIn$a = function (O, key, value, options) {
1029
1029
  if (!options) options = {};
1030
1030
  var simple = options.enumerable;
1031
1031
  var name = options.name !== undefined ? options.name : key;
1032
- if (isCallable$h(value)) makeBuiltIn$1(value, name, options);
1032
+ if (isCallable$g(value)) makeBuiltIn$1(value, name, options);
1033
1033
  if (options.global) {
1034
1034
  if (simple) O[key] = value;
1035
1035
  else defineGlobalProperty$1(key, value);
@@ -1068,12 +1068,12 @@ var objectGetOwnPropertySymbols = {};
1068
1068
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1069
1069
 
1070
1070
  var getBuiltIn$4 = getBuiltIn$8;
1071
- var uncurryThis$o = functionUncurryThis;
1071
+ var uncurryThis$n = functionUncurryThis;
1072
1072
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1073
1073
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1074
1074
  var anObject$d = anObject$h;
1075
1075
 
1076
- var concat$2 = uncurryThis$o([].concat);
1076
+ var concat$2 = uncurryThis$n([].concat);
1077
1077
 
1078
1078
  // all object keys, includes non-enumerable and symbols
1079
1079
  var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
@@ -1082,7 +1082,7 @@ var ownKeys$1 = getBuiltIn$4('Reflect', 'ownKeys') || function ownKeys(it) {
1082
1082
  return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
1083
1083
  };
1084
1084
 
1085
- var hasOwn$8 = hasOwnProperty_1;
1085
+ var hasOwn$7 = hasOwnProperty_1;
1086
1086
  var ownKeys = ownKeys$1;
1087
1087
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1088
1088
  var definePropertyModule$2 = objectDefineProperty;
@@ -1093,42 +1093,42 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
1093
1093
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1094
1094
  for (var i = 0; i < keys.length; i++) {
1095
1095
  var key = keys[i];
1096
- if (!hasOwn$8(target, key) && !(exceptions && hasOwn$8(exceptions, key))) {
1096
+ if (!hasOwn$7(target, key) && !(exceptions && hasOwn$7(exceptions, key))) {
1097
1097
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1098
1098
  }
1099
1099
  }
1100
1100
  };
1101
1101
 
1102
- var fails$k = fails$s;
1103
- var isCallable$g = isCallable$q;
1102
+ var fails$j = fails$r;
1103
+ var isCallable$f = isCallable$p;
1104
1104
 
1105
1105
  var replacement = /#|\.prototype\./;
1106
1106
 
1107
- var isForced$3 = function (feature, detection) {
1107
+ var isForced$2 = function (feature, detection) {
1108
1108
  var value = data[normalize(feature)];
1109
1109
  return value == POLYFILL ? true
1110
1110
  : value == NATIVE ? false
1111
- : isCallable$g(detection) ? fails$k(detection)
1111
+ : isCallable$f(detection) ? fails$j(detection)
1112
1112
  : !!detection;
1113
1113
  };
1114
1114
 
1115
- var normalize = isForced$3.normalize = function (string) {
1115
+ var normalize = isForced$2.normalize = function (string) {
1116
1116
  return String(string).replace(replacement, '.').toLowerCase();
1117
1117
  };
1118
1118
 
1119
- var data = isForced$3.data = {};
1120
- var NATIVE = isForced$3.NATIVE = 'N';
1121
- var POLYFILL = isForced$3.POLYFILL = 'P';
1119
+ var data = isForced$2.data = {};
1120
+ var NATIVE = isForced$2.NATIVE = 'N';
1121
+ var POLYFILL = isForced$2.POLYFILL = 'P';
1122
1122
 
1123
- var isForced_1 = isForced$3;
1123
+ var isForced_1 = isForced$2;
1124
1124
 
1125
- var global$j = global$s;
1125
+ var global$i = global$r;
1126
1126
  var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
1127
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
1128
- var defineBuiltIn$a = defineBuiltIn$b;
1127
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
1128
+ var defineBuiltIn$9 = defineBuiltIn$a;
1129
1129
  var defineGlobalProperty = defineGlobalProperty$3;
1130
1130
  var copyConstructorProperties$1 = copyConstructorProperties$2;
1131
- var isForced$2 = isForced_1;
1131
+ var isForced$1 = isForced_1;
1132
1132
 
1133
1133
  /*
1134
1134
  options.target - name of the target object
@@ -1151,11 +1151,11 @@ var _export = function (options, source) {
1151
1151
  var STATIC = options.stat;
1152
1152
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1153
1153
  if (GLOBAL) {
1154
- target = global$j;
1154
+ target = global$i;
1155
1155
  } else if (STATIC) {
1156
- target = global$j[TARGET] || defineGlobalProperty(TARGET, {});
1156
+ target = global$i[TARGET] || defineGlobalProperty(TARGET, {});
1157
1157
  } else {
1158
- target = (global$j[TARGET] || {}).prototype;
1158
+ target = (global$i[TARGET] || {}).prototype;
1159
1159
  }
1160
1160
  if (target) for (key in source) {
1161
1161
  sourceProperty = source[key];
@@ -1163,7 +1163,7 @@ var _export = function (options, source) {
1163
1163
  descriptor = getOwnPropertyDescriptor$2(target, key);
1164
1164
  targetProperty = descriptor && descriptor.value;
1165
1165
  } else targetProperty = target[key];
1166
- FORCED = isForced$2(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1166
+ FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1167
1167
  // contained in target
1168
1168
  if (!FORCED && targetProperty !== undefined) {
1169
1169
  if (typeof sourceProperty == typeof targetProperty) continue;
@@ -1171,23 +1171,23 @@ var _export = function (options, source) {
1171
1171
  }
1172
1172
  // add a flag to not completely full polyfills
1173
1173
  if (options.sham || (targetProperty && targetProperty.sham)) {
1174
- createNonEnumerableProperty$4(sourceProperty, 'sham', true);
1174
+ createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1175
1175
  }
1176
- defineBuiltIn$a(target, key, sourceProperty, options);
1176
+ defineBuiltIn$9(target, key, sourceProperty, options);
1177
1177
  }
1178
1178
  };
1179
1179
 
1180
- var fails$j = fails$s;
1180
+ var fails$i = fails$r;
1181
1181
 
1182
- var correctPrototypeGetter = !fails$j(function () {
1182
+ var correctPrototypeGetter = !fails$i(function () {
1183
1183
  function F() { /* empty */ }
1184
1184
  F.prototype.constructor = null;
1185
1185
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1186
1186
  return Object.getPrototypeOf(new F()) !== F.prototype;
1187
1187
  });
1188
1188
 
1189
- var hasOwn$7 = hasOwnProperty_1;
1190
- var isCallable$f = isCallable$q;
1189
+ var hasOwn$6 = hasOwnProperty_1;
1190
+ var isCallable$e = isCallable$p;
1191
1191
  var toObject$6 = toObject$8;
1192
1192
  var sharedKey = sharedKey$3;
1193
1193
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
@@ -1201,21 +1201,21 @@ var ObjectPrototype = $Object$1.prototype;
1201
1201
  // eslint-disable-next-line es/no-object-getprototypeof -- safe
1202
1202
  var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1203
1203
  var object = toObject$6(O);
1204
- if (hasOwn$7(object, IE_PROTO)) return object[IE_PROTO];
1204
+ if (hasOwn$6(object, IE_PROTO)) return object[IE_PROTO];
1205
1205
  var constructor = object.constructor;
1206
- if (isCallable$f(constructor) && object instanceof constructor) {
1206
+ if (isCallable$e(constructor) && object instanceof constructor) {
1207
1207
  return constructor.prototype;
1208
1208
  } return object instanceof $Object$1 ? ObjectPrototype : null;
1209
1209
  };
1210
1210
 
1211
- var fails$i = fails$s;
1212
- var isCallable$e = isCallable$q;
1211
+ var fails$h = fails$r;
1212
+ var isCallable$d = isCallable$p;
1213
1213
  var isObject$6 = isObject$c;
1214
1214
  var getPrototypeOf$1 = objectGetPrototypeOf;
1215
- var defineBuiltIn$9 = defineBuiltIn$b;
1216
- var wellKnownSymbol$k = wellKnownSymbol$n;
1215
+ var defineBuiltIn$8 = defineBuiltIn$a;
1216
+ var wellKnownSymbol$j = wellKnownSymbol$m;
1217
1217
 
1218
- var ITERATOR$9 = wellKnownSymbol$k('iterator');
1218
+ var ITERATOR$9 = wellKnownSymbol$j('iterator');
1219
1219
  var BUGGY_SAFARI_ITERATORS$1 = false;
1220
1220
 
1221
1221
  // `%IteratorPrototype%` object
@@ -1233,7 +1233,7 @@ if ([].keys) {
1233
1233
  }
1234
1234
  }
1235
1235
 
1236
- var NEW_ITERATOR_PROTOTYPE = !isObject$6(IteratorPrototype$2) || fails$i(function () {
1236
+ var NEW_ITERATOR_PROTOTYPE = !isObject$6(IteratorPrototype$2) || fails$h(function () {
1237
1237
  var test = {};
1238
1238
  // FF44- legacy iterators case
1239
1239
  return IteratorPrototype$2[ITERATOR$9].call(test) !== test;
@@ -1243,8 +1243,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1243
1243
 
1244
1244
  // `%IteratorPrototype%[@@iterator]()` method
1245
1245
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1246
- if (!isCallable$e(IteratorPrototype$2[ITERATOR$9])) {
1247
- defineBuiltIn$9(IteratorPrototype$2, ITERATOR$9, function () {
1246
+ if (!isCallable$d(IteratorPrototype$2[ITERATOR$9])) {
1247
+ defineBuiltIn$8(IteratorPrototype$2, ITERATOR$9, function () {
1248
1248
  return this;
1249
1249
  });
1250
1250
  }
@@ -1254,16 +1254,16 @@ var iteratorsCore = {
1254
1254
  BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1255
1255
  };
1256
1256
 
1257
- var defineProperty$5 = objectDefineProperty.f;
1258
- var hasOwn$6 = hasOwnProperty_1;
1259
- var wellKnownSymbol$j = wellKnownSymbol$n;
1257
+ var defineProperty$4 = objectDefineProperty.f;
1258
+ var hasOwn$5 = hasOwnProperty_1;
1259
+ var wellKnownSymbol$i = wellKnownSymbol$m;
1260
1260
 
1261
- var TO_STRING_TAG$3 = wellKnownSymbol$j('toStringTag');
1261
+ var TO_STRING_TAG$3 = wellKnownSymbol$i('toStringTag');
1262
1262
 
1263
1263
  var setToStringTag$5 = function (target, TAG, STATIC) {
1264
1264
  if (target && !STATIC) target = target.prototype;
1265
- if (target && !hasOwn$6(target, TO_STRING_TAG$3)) {
1266
- defineProperty$5(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1265
+ if (target && !hasOwn$5(target, TO_STRING_TAG$3)) {
1266
+ defineProperty$4(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1267
1267
  }
1268
1268
  };
1269
1269
 
@@ -1283,19 +1283,19 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
1283
1283
  return IteratorConstructor;
1284
1284
  };
1285
1285
 
1286
- var isCallable$d = isCallable$q;
1286
+ var isCallable$c = isCallable$p;
1287
1287
 
1288
1288
  var $String$2 = String;
1289
1289
  var $TypeError$c = TypeError;
1290
1290
 
1291
1291
  var aPossiblePrototype$1 = function (argument) {
1292
- if (typeof argument == 'object' || isCallable$d(argument)) return argument;
1292
+ if (typeof argument == 'object' || isCallable$c(argument)) return argument;
1293
1293
  throw $TypeError$c("Can't set " + $String$2(argument) + ' as a prototype');
1294
1294
  };
1295
1295
 
1296
1296
  /* eslint-disable no-proto -- safe */
1297
1297
 
1298
- var uncurryThis$n = functionUncurryThis;
1298
+ var uncurryThis$m = functionUncurryThis;
1299
1299
  var anObject$c = anObject$h;
1300
1300
  var aPossiblePrototype = aPossiblePrototype$1;
1301
1301
 
@@ -1309,7 +1309,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1309
1309
  var setter;
1310
1310
  try {
1311
1311
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1312
- setter = uncurryThis$n(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1312
+ setter = uncurryThis$m(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1313
1313
  setter(test, []);
1314
1314
  CORRECT_SETTER = test instanceof Array;
1315
1315
  } catch (error) { /* empty */ }
@@ -1325,14 +1325,14 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1325
1325
  var $$m = _export;
1326
1326
  var call$h = functionCall;
1327
1327
  var FunctionName = functionName;
1328
- var isCallable$c = isCallable$q;
1328
+ var isCallable$b = isCallable$p;
1329
1329
  var createIteratorConstructor$1 = iteratorCreateConstructor;
1330
1330
  var getPrototypeOf = objectGetPrototypeOf;
1331
- var setPrototypeOf$2 = objectSetPrototypeOf;
1331
+ var setPrototypeOf$1 = objectSetPrototypeOf;
1332
1332
  var setToStringTag$3 = setToStringTag$5;
1333
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$6;
1334
- var defineBuiltIn$8 = defineBuiltIn$b;
1335
- var wellKnownSymbol$i = wellKnownSymbol$n;
1333
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1334
+ var defineBuiltIn$7 = defineBuiltIn$a;
1335
+ var wellKnownSymbol$h = wellKnownSymbol$m;
1336
1336
  var Iterators$3 = iterators;
1337
1337
  var IteratorsCore = iteratorsCore;
1338
1338
 
@@ -1340,7 +1340,7 @@ var PROPER_FUNCTION_NAME$2 = FunctionName.PROPER;
1340
1340
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1341
1341
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
1342
1342
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1343
- var ITERATOR$8 = wellKnownSymbol$i('iterator');
1343
+ var ITERATOR$8 = wellKnownSymbol$h('iterator');
1344
1344
  var KEYS = 'keys';
1345
1345
  var VALUES = 'values';
1346
1346
  var ENTRIES = 'entries';
@@ -1375,10 +1375,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1375
1375
  CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1376
1376
  if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1377
1377
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1378
- if (setPrototypeOf$2) {
1379
- setPrototypeOf$2(CurrentIteratorPrototype, IteratorPrototype);
1380
- } else if (!isCallable$c(CurrentIteratorPrototype[ITERATOR$8])) {
1381
- defineBuiltIn$8(CurrentIteratorPrototype, ITERATOR$8, returnThis);
1378
+ if (setPrototypeOf$1) {
1379
+ setPrototypeOf$1(CurrentIteratorPrototype, IteratorPrototype);
1380
+ } else if (!isCallable$b(CurrentIteratorPrototype[ITERATOR$8])) {
1381
+ defineBuiltIn$7(CurrentIteratorPrototype, ITERATOR$8, returnThis);
1382
1382
  }
1383
1383
  }
1384
1384
  // Set @@toStringTag to native iterators
@@ -1389,7 +1389,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1389
1389
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1390
1390
  if (PROPER_FUNCTION_NAME$2 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1391
1391
  if (CONFIGURABLE_FUNCTION_NAME) {
1392
- createNonEnumerableProperty$3(IterablePrototype, 'name', VALUES);
1392
+ createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
1393
1393
  } else {
1394
1394
  INCORRECT_VALUES_NAME = true;
1395
1395
  defaultIterator = function values() { return call$h(nativeIterator, this); };
@@ -1405,14 +1405,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
1405
1405
  };
1406
1406
  if (FORCED) for (KEY in methods) {
1407
1407
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1408
- defineBuiltIn$8(IterablePrototype, KEY, methods[KEY]);
1408
+ defineBuiltIn$7(IterablePrototype, KEY, methods[KEY]);
1409
1409
  }
1410
1410
  } else $$m({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1411
1411
  }
1412
1412
 
1413
1413
  // define iterator
1414
1414
  if (IterablePrototype[ITERATOR$8] !== defaultIterator) {
1415
- defineBuiltIn$8(IterablePrototype, ITERATOR$8, defaultIterator, { name: DEFAULT });
1415
+ defineBuiltIn$7(IterablePrototype, ITERATOR$8, defaultIterator, { name: DEFAULT });
1416
1416
  }
1417
1417
  Iterators$3[NAME] = defaultIterator;
1418
1418
 
@@ -1429,10 +1429,10 @@ var toIndexedObject = toIndexedObject$5;
1429
1429
  var addToUnscopables$2 = addToUnscopables$3;
1430
1430
  var Iterators$2 = iterators;
1431
1431
  var InternalStateModule$4 = internalState;
1432
- var defineProperty$4 = objectDefineProperty.f;
1432
+ var defineProperty$3 = objectDefineProperty.f;
1433
1433
  var defineIterator$1 = iteratorDefine;
1434
1434
  var createIterResultObject$1 = createIterResultObject$2;
1435
- var DESCRIPTORS$6 = descriptors;
1435
+ var DESCRIPTORS$5 = descriptors;
1436
1436
 
1437
1437
  var ARRAY_ITERATOR = 'Array Iterator';
1438
1438
  var setInternalState$4 = InternalStateModule$4.set;
@@ -1482,8 +1482,8 @@ addToUnscopables$2('values');
1482
1482
  addToUnscopables$2('entries');
1483
1483
 
1484
1484
  // V8 ~ Chrome 45- bug
1485
- if (DESCRIPTORS$6 && values.name !== 'values') try {
1486
- defineProperty$4(values, 'name', { value: 'values' });
1485
+ if (DESCRIPTORS$5 && values.name !== 'values') try {
1486
+ defineProperty$3(values, 'name', { value: 'values' });
1487
1487
  } catch (error) { /* empty */ }
1488
1488
 
1489
1489
  // iterable DOM collections
@@ -1530,32 +1530,32 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1530
1530
 
1531
1531
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1532
1532
 
1533
- var global$i = global$s;
1533
+ var global$h = global$r;
1534
1534
  var DOMIterables = domIterables;
1535
1535
  var DOMTokenListPrototype = domTokenListPrototype;
1536
1536
  var ArrayIteratorMethods = es_array_iterator;
1537
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$6;
1538
- var wellKnownSymbol$h = wellKnownSymbol$n;
1537
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1538
+ var wellKnownSymbol$g = wellKnownSymbol$m;
1539
1539
 
1540
- var ITERATOR$7 = wellKnownSymbol$h('iterator');
1541
- var TO_STRING_TAG$2 = wellKnownSymbol$h('toStringTag');
1540
+ var ITERATOR$7 = wellKnownSymbol$g('iterator');
1541
+ var TO_STRING_TAG$2 = wellKnownSymbol$g('toStringTag');
1542
1542
  var ArrayValues = ArrayIteratorMethods.values;
1543
1543
 
1544
1544
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1545
1545
  if (CollectionPrototype) {
1546
1546
  // some Chrome versions have non-configurable methods on DOMTokenList
1547
1547
  if (CollectionPrototype[ITERATOR$7] !== ArrayValues) try {
1548
- createNonEnumerableProperty$2(CollectionPrototype, ITERATOR$7, ArrayValues);
1548
+ createNonEnumerableProperty$1(CollectionPrototype, ITERATOR$7, ArrayValues);
1549
1549
  } catch (error) {
1550
1550
  CollectionPrototype[ITERATOR$7] = ArrayValues;
1551
1551
  }
1552
1552
  if (!CollectionPrototype[TO_STRING_TAG$2]) {
1553
- createNonEnumerableProperty$2(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
1553
+ createNonEnumerableProperty$1(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
1554
1554
  }
1555
1555
  if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1556
1556
  // some Chrome versions have non-configurable methods on DOMTokenList
1557
1557
  if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1558
- createNonEnumerableProperty$2(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1558
+ createNonEnumerableProperty$1(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1559
1559
  } catch (error) {
1560
1560
  CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1561
1561
  }
@@ -1564,15 +1564,15 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1564
1564
  };
1565
1565
 
1566
1566
  for (var COLLECTION_NAME in DOMIterables) {
1567
- handlePrototype(global$i[COLLECTION_NAME] && global$i[COLLECTION_NAME].prototype, COLLECTION_NAME);
1567
+ handlePrototype(global$h[COLLECTION_NAME] && global$h[COLLECTION_NAME].prototype, COLLECTION_NAME);
1568
1568
  }
1569
1569
 
1570
1570
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1571
1571
 
1572
- var DESCRIPTORS$5 = descriptors;
1573
- var uncurryThis$m = functionUncurryThis;
1572
+ var DESCRIPTORS$4 = descriptors;
1573
+ var uncurryThis$l = functionUncurryThis;
1574
1574
  var call$g = functionCall;
1575
- var fails$h = fails$s;
1575
+ var fails$g = fails$r;
1576
1576
  var objectKeys = objectKeys$2;
1577
1577
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1578
1578
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -1582,17 +1582,17 @@ var IndexedObject$1 = indexedObject;
1582
1582
  // eslint-disable-next-line es/no-object-assign -- safe
1583
1583
  var $assign = Object.assign;
1584
1584
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1585
- var defineProperty$3 = Object.defineProperty;
1586
- var concat$1 = uncurryThis$m([].concat);
1585
+ var defineProperty$2 = Object.defineProperty;
1586
+ var concat$1 = uncurryThis$l([].concat);
1587
1587
 
1588
1588
  // `Object.assign` method
1589
1589
  // https://tc39.es/ecma262/#sec-object.assign
1590
- var objectAssign = !$assign || fails$h(function () {
1590
+ var objectAssign = !$assign || fails$g(function () {
1591
1591
  // should have correct order of operations (Edge bug)
1592
- if (DESCRIPTORS$5 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1592
+ if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
1593
1593
  enumerable: true,
1594
1594
  get: function () {
1595
- defineProperty$3(this, 'b', {
1595
+ defineProperty$2(this, 'b', {
1596
1596
  value: 3,
1597
1597
  enumerable: false
1598
1598
  });
@@ -1621,7 +1621,7 @@ var objectAssign = !$assign || fails$h(function () {
1621
1621
  var key;
1622
1622
  while (length > j) {
1623
1623
  key = keys[j++];
1624
- if (!DESCRIPTORS$5 || call$g(propertyIsEnumerable, S, key)) T[key] = S[key];
1624
+ if (!DESCRIPTORS$4 || call$g(propertyIsEnumerable, S, key)) T[key] = S[key];
1625
1625
  }
1626
1626
  } return T;
1627
1627
  } : $assign;
@@ -1723,20 +1723,20 @@ var arrayReduce = {
1723
1723
  right: createMethod$2(true)
1724
1724
  };
1725
1725
 
1726
- var fails$g = fails$s;
1726
+ var fails$f = fails$r;
1727
1727
 
1728
1728
  var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
1729
1729
  var method = [][METHOD_NAME];
1730
- return !!method && fails$g(function () {
1730
+ return !!method && fails$f(function () {
1731
1731
  // eslint-disable-next-line no-useless-call -- required for testing
1732
1732
  method.call(null, argument || function () { return 1; }, 1);
1733
1733
  });
1734
1734
  };
1735
1735
 
1736
1736
  var classof$8 = classofRaw$2;
1737
- var global$h = global$s;
1737
+ var global$g = global$r;
1738
1738
 
1739
- var engineIsNode = classof$8(global$h.process) == 'process';
1739
+ var engineIsNode = classof$8(global$g.process) == 'process';
1740
1740
 
1741
1741
  var $$k = _export;
1742
1742
  var $reduce = arrayReduce.left;
@@ -1770,9 +1770,9 @@ const createDictionary = (items, getEntry) => {
1770
1770
  return (_a = items === null || items === void 0 ? void 0 : items.reduce((results, item) => Object.assign(Object.assign({}, results), getEntry(item, results)), {})) !== null && _a !== void 0 ? _a : {};
1771
1771
  };
1772
1772
 
1773
- var wellKnownSymbol$g = wellKnownSymbol$n;
1773
+ var wellKnownSymbol$f = wellKnownSymbol$m;
1774
1774
 
1775
- var TO_STRING_TAG$1 = wellKnownSymbol$g('toStringTag');
1775
+ var TO_STRING_TAG$1 = wellKnownSymbol$f('toStringTag');
1776
1776
  var test$1 = {};
1777
1777
 
1778
1778
  test$1[TO_STRING_TAG$1] = 'z';
@@ -1780,11 +1780,11 @@ test$1[TO_STRING_TAG$1] = 'z';
1780
1780
  var toStringTagSupport = String(test$1) === '[object z]';
1781
1781
 
1782
1782
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1783
- var isCallable$b = isCallable$q;
1783
+ var isCallable$a = isCallable$p;
1784
1784
  var classofRaw$1 = classofRaw$2;
1785
- var wellKnownSymbol$f = wellKnownSymbol$n;
1785
+ var wellKnownSymbol$e = wellKnownSymbol$m;
1786
1786
 
1787
- var TO_STRING_TAG = wellKnownSymbol$f('toStringTag');
1787
+ var TO_STRING_TAG = wellKnownSymbol$e('toStringTag');
1788
1788
  var $Object = Object;
1789
1789
 
1790
1790
  // ES3 wrong here
@@ -1806,14 +1806,14 @@ var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1806
1806
  // builtinTag case
1807
1807
  : CORRECT_ARGUMENTS ? classofRaw$1(O)
1808
1808
  // ES3 arguments fallback
1809
- : (result = classofRaw$1(O)) == 'Object' && isCallable$b(O.callee) ? 'Arguments' : result;
1809
+ : (result = classofRaw$1(O)) == 'Object' && isCallable$a(O.callee) ? 'Arguments' : result;
1810
1810
  };
1811
1811
 
1812
1812
  var classof$6 = classof$7;
1813
1813
 
1814
1814
  var $String$1 = String;
1815
1815
 
1816
- var toString$e = function (argument) {
1816
+ var toString$d = function (argument) {
1817
1817
  if (classof$6(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1818
1818
  return $String$1(argument);
1819
1819
  };
@@ -1836,13 +1836,13 @@ var regexpFlags$1 = function () {
1836
1836
  return result;
1837
1837
  };
1838
1838
 
1839
- var fails$f = fails$s;
1840
- var global$g = global$s;
1839
+ var fails$e = fails$r;
1840
+ var global$f = global$r;
1841
1841
 
1842
1842
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1843
- var $RegExp$2 = global$g.RegExp;
1843
+ var $RegExp$2 = global$f.RegExp;
1844
1844
 
1845
- var UNSUPPORTED_Y$2 = fails$f(function () {
1845
+ var UNSUPPORTED_Y$1 = fails$e(function () {
1846
1846
  var re = $RegExp$2('a', 'y');
1847
1847
  re.lastIndex = 2;
1848
1848
  return re.exec('abcd') != null;
@@ -1850,11 +1850,11 @@ var UNSUPPORTED_Y$2 = fails$f(function () {
1850
1850
 
1851
1851
  // UC Browser bug
1852
1852
  // https://github.com/zloirock/core-js/issues/1008
1853
- var MISSED_STICKY$1 = UNSUPPORTED_Y$2 || fails$f(function () {
1853
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$e(function () {
1854
1854
  return !$RegExp$2('a', 'y').sticky;
1855
1855
  });
1856
1856
 
1857
- var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$f(function () {
1857
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$e(function () {
1858
1858
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1859
1859
  var re = $RegExp$2('^r', 'gy');
1860
1860
  re.lastIndex = 2;
@@ -1863,28 +1863,28 @@ var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$f(function () {
1863
1863
 
1864
1864
  var regexpStickyHelpers = {
1865
1865
  BROKEN_CARET: BROKEN_CARET,
1866
- MISSED_STICKY: MISSED_STICKY$1,
1867
- UNSUPPORTED_Y: UNSUPPORTED_Y$2
1866
+ MISSED_STICKY: MISSED_STICKY,
1867
+ UNSUPPORTED_Y: UNSUPPORTED_Y$1
1868
1868
  };
1869
1869
 
1870
- var fails$e = fails$s;
1871
- var global$f = global$s;
1870
+ var fails$d = fails$r;
1871
+ var global$e = global$r;
1872
1872
 
1873
1873
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1874
- var $RegExp$1 = global$f.RegExp;
1874
+ var $RegExp$1 = global$e.RegExp;
1875
1875
 
1876
- var regexpUnsupportedDotAll = fails$e(function () {
1876
+ var regexpUnsupportedDotAll = fails$d(function () {
1877
1877
  var re = $RegExp$1('.', 's');
1878
1878
  return !(re.dotAll && re.exec('\n') && re.flags === 's');
1879
1879
  });
1880
1880
 
1881
- var fails$d = fails$s;
1882
- var global$e = global$s;
1881
+ var fails$c = fails$r;
1882
+ var global$d = global$r;
1883
1883
 
1884
1884
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1885
- var $RegExp = global$e.RegExp;
1885
+ var $RegExp = global$d.RegExp;
1886
1886
 
1887
- var regexpUnsupportedNcg = fails$d(function () {
1887
+ var regexpUnsupportedNcg = fails$c(function () {
1888
1888
  var re = $RegExp('(?<a>b)', 'g');
1889
1889
  return re.exec('b').groups.a !== 'b' ||
1890
1890
  'b'.replace(re, '$<a>c') !== 'bc';
@@ -1893,23 +1893,23 @@ var regexpUnsupportedNcg = fails$d(function () {
1893
1893
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1894
1894
  /* eslint-disable regexp/no-useless-quantifier -- testing */
1895
1895
  var call$f = functionCall;
1896
- var uncurryThis$l = functionUncurryThis;
1897
- var toString$d = toString$e;
1896
+ var uncurryThis$k = functionUncurryThis;
1897
+ var toString$c = toString$d;
1898
1898
  var regexpFlags = regexpFlags$1;
1899
- var stickyHelpers$1 = regexpStickyHelpers;
1899
+ var stickyHelpers = regexpStickyHelpers;
1900
1900
  var shared = shared$4.exports;
1901
1901
  var create$1 = objectCreate;
1902
1902
  var getInternalState$1 = internalState.get;
1903
- var UNSUPPORTED_DOT_ALL$1 = regexpUnsupportedDotAll;
1904
- var UNSUPPORTED_NCG$1 = regexpUnsupportedNcg;
1903
+ var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
1904
+ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1905
1905
 
1906
1906
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
1907
1907
  var nativeExec = RegExp.prototype.exec;
1908
1908
  var patchedExec = nativeExec;
1909
- var charAt$8 = uncurryThis$l(''.charAt);
1910
- var indexOf$1 = uncurryThis$l(''.indexOf);
1911
- var replace$7 = uncurryThis$l(''.replace);
1912
- var stringSlice$9 = uncurryThis$l(''.slice);
1909
+ var charAt$7 = uncurryThis$k(''.charAt);
1910
+ var indexOf$1 = uncurryThis$k(''.indexOf);
1911
+ var replace$6 = uncurryThis$k(''.replace);
1912
+ var stringSlice$8 = uncurryThis$k(''.slice);
1913
1913
 
1914
1914
  var UPDATES_LAST_INDEX_WRONG = (function () {
1915
1915
  var re1 = /a/;
@@ -1919,18 +1919,18 @@ var UPDATES_LAST_INDEX_WRONG = (function () {
1919
1919
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1920
1920
  })();
1921
1921
 
1922
- var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET;
1922
+ var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
1923
1923
 
1924
1924
  // nonparticipating capturing group, copied from es5-shim's String#split patch.
1925
1925
  var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1926
1926
 
1927
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL$1 || UNSUPPORTED_NCG$1;
1927
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
1928
1928
 
1929
1929
  if (PATCH) {
1930
1930
  patchedExec = function exec(string) {
1931
1931
  var re = this;
1932
1932
  var state = getInternalState$1(re);
1933
- var str = toString$d(string);
1933
+ var str = toString$c(string);
1934
1934
  var raw = state.raw;
1935
1935
  var result, reCopy, lastIndex, match, i, object, group;
1936
1936
 
@@ -1942,21 +1942,21 @@ if (PATCH) {
1942
1942
  }
1943
1943
 
1944
1944
  var groups = state.groups;
1945
- var sticky = UNSUPPORTED_Y$1 && re.sticky;
1945
+ var sticky = UNSUPPORTED_Y && re.sticky;
1946
1946
  var flags = call$f(regexpFlags, re);
1947
1947
  var source = re.source;
1948
1948
  var charsAdded = 0;
1949
1949
  var strCopy = str;
1950
1950
 
1951
1951
  if (sticky) {
1952
- flags = replace$7(flags, 'y', '');
1952
+ flags = replace$6(flags, 'y', '');
1953
1953
  if (indexOf$1(flags, 'g') === -1) {
1954
1954
  flags += 'g';
1955
1955
  }
1956
1956
 
1957
- strCopy = stringSlice$9(str, re.lastIndex);
1957
+ strCopy = stringSlice$8(str, re.lastIndex);
1958
1958
  // Support anchored sticky behavior.
1959
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$8(str, re.lastIndex - 1) !== '\n')) {
1959
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$7(str, re.lastIndex - 1) !== '\n')) {
1960
1960
  source = '(?: ' + source + ')';
1961
1961
  strCopy = ' ' + strCopy;
1962
1962
  charsAdded++;
@@ -1975,8 +1975,8 @@ if (PATCH) {
1975
1975
 
1976
1976
  if (sticky) {
1977
1977
  if (match) {
1978
- match.input = stringSlice$9(match.input, charsAdded);
1979
- match[0] = stringSlice$9(match[0], charsAdded);
1978
+ match.input = stringSlice$8(match.input, charsAdded);
1979
+ match[0] = stringSlice$8(match[0], charsAdded);
1980
1980
  match.index = re.lastIndex;
1981
1981
  re.lastIndex += match[0].length;
1982
1982
  } else re.lastIndex = 0;
@@ -2008,12 +2008,12 @@ if (PATCH) {
2008
2008
  var regexpExec$2 = patchedExec;
2009
2009
 
2010
2010
  var $$j = _export;
2011
- var exec$5 = regexpExec$2;
2011
+ var exec$4 = regexpExec$2;
2012
2012
 
2013
2013
  // `RegExp.prototype.exec` method
2014
2014
  // https://tc39.es/ecma262/#sec-regexp.prototype.exec
2015
- $$j({ target: 'RegExp', proto: true, forced: /./.exec !== exec$5 }, {
2016
- exec: exec$5
2015
+ $$j({ target: 'RegExp', proto: true, forced: /./.exec !== exec$4 }, {
2016
+ exec: exec$4
2017
2017
  });
2018
2018
 
2019
2019
  var NATIVE_BIND$1 = functionBindNative;
@@ -2028,38 +2028,38 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$
2028
2028
  });
2029
2029
 
2030
2030
  var classofRaw = classofRaw$2;
2031
- var uncurryThis$k = functionUncurryThis;
2031
+ var uncurryThis$j = functionUncurryThis;
2032
2032
 
2033
2033
  var functionUncurryThisClause = function (fn) {
2034
2034
  // Nashorn bug:
2035
2035
  // https://github.com/zloirock/core-js/issues/1128
2036
2036
  // https://github.com/zloirock/core-js/issues/1130
2037
- if (classofRaw(fn) === 'Function') return uncurryThis$k(fn);
2037
+ if (classofRaw(fn) === 'Function') return uncurryThis$j(fn);
2038
2038
  };
2039
2039
 
2040
2040
  // TODO: Remove from `core-js@4` since it's moved to entry points
2041
2041
 
2042
- var uncurryThis$j = functionUncurryThisClause;
2043
- var defineBuiltIn$7 = defineBuiltIn$b;
2042
+ var uncurryThis$i = functionUncurryThisClause;
2043
+ var defineBuiltIn$6 = defineBuiltIn$a;
2044
2044
  var regexpExec$1 = regexpExec$2;
2045
- var fails$c = fails$s;
2046
- var wellKnownSymbol$e = wellKnownSymbol$n;
2047
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
2045
+ var fails$b = fails$r;
2046
+ var wellKnownSymbol$d = wellKnownSymbol$m;
2047
+ var createNonEnumerableProperty = createNonEnumerableProperty$5;
2048
2048
 
2049
- var SPECIES$4 = wellKnownSymbol$e('species');
2050
- var RegExpPrototype$3 = RegExp.prototype;
2049
+ var SPECIES$4 = wellKnownSymbol$d('species');
2050
+ var RegExpPrototype$2 = RegExp.prototype;
2051
2051
 
2052
2052
  var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2053
- var SYMBOL = wellKnownSymbol$e(KEY);
2053
+ var SYMBOL = wellKnownSymbol$d(KEY);
2054
2054
 
2055
- var DELEGATES_TO_SYMBOL = !fails$c(function () {
2055
+ var DELEGATES_TO_SYMBOL = !fails$b(function () {
2056
2056
  // String methods call symbol-named RegEp methods
2057
2057
  var O = {};
2058
2058
  O[SYMBOL] = function () { return 7; };
2059
2059
  return ''[KEY](O) != 7;
2060
2060
  });
2061
2061
 
2062
- var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$c(function () {
2062
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$b(function () {
2063
2063
  // Symbol-named RegExp methods call .exec
2064
2064
  var execCalled = false;
2065
2065
  var re = /a/;
@@ -2088,11 +2088,11 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2088
2088
  !DELEGATES_TO_EXEC ||
2089
2089
  FORCED
2090
2090
  ) {
2091
- var uncurriedNativeRegExpMethod = uncurryThis$j(/./[SYMBOL]);
2091
+ var uncurriedNativeRegExpMethod = uncurryThis$i(/./[SYMBOL]);
2092
2092
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
2093
- var uncurriedNativeMethod = uncurryThis$j(nativeMethod);
2093
+ var uncurriedNativeMethod = uncurryThis$i(nativeMethod);
2094
2094
  var $exec = regexp.exec;
2095
- if ($exec === regexpExec$1 || $exec === RegExpPrototype$3.exec) {
2095
+ if ($exec === regexpExec$1 || $exec === RegExpPrototype$2.exec) {
2096
2096
  if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
2097
2097
  // The native String method already delegates to @@method (this
2098
2098
  // polyfilled function), leasing to infinite recursion.
@@ -2104,25 +2104,25 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2104
2104
  return { done: false };
2105
2105
  });
2106
2106
 
2107
- defineBuiltIn$7(String.prototype, KEY, methods[0]);
2108
- defineBuiltIn$7(RegExpPrototype$3, SYMBOL, methods[1]);
2107
+ defineBuiltIn$6(String.prototype, KEY, methods[0]);
2108
+ defineBuiltIn$6(RegExpPrototype$2, SYMBOL, methods[1]);
2109
2109
  }
2110
2110
 
2111
- if (SHAM) createNonEnumerableProperty$1(RegExpPrototype$3[SYMBOL], 'sham', true);
2111
+ if (SHAM) createNonEnumerableProperty(RegExpPrototype$2[SYMBOL], 'sham', true);
2112
2112
  };
2113
2113
 
2114
- var uncurryThis$i = functionUncurryThis;
2114
+ var uncurryThis$h = functionUncurryThis;
2115
2115
  var toIntegerOrInfinity$3 = toIntegerOrInfinity$6;
2116
- var toString$c = toString$e;
2116
+ var toString$b = toString$d;
2117
2117
  var requireObjectCoercible$6 = requireObjectCoercible$9;
2118
2118
 
2119
- var charAt$7 = uncurryThis$i(''.charAt);
2120
- var charCodeAt$1 = uncurryThis$i(''.charCodeAt);
2121
- var stringSlice$8 = uncurryThis$i(''.slice);
2119
+ var charAt$6 = uncurryThis$h(''.charAt);
2120
+ var charCodeAt$1 = uncurryThis$h(''.charCodeAt);
2121
+ var stringSlice$7 = uncurryThis$h(''.slice);
2122
2122
 
2123
2123
  var createMethod$1 = function (CONVERT_TO_STRING) {
2124
2124
  return function ($this, pos) {
2125
- var S = toString$c(requireObjectCoercible$6($this));
2125
+ var S = toString$b(requireObjectCoercible$6($this));
2126
2126
  var position = toIntegerOrInfinity$3(pos);
2127
2127
  var size = S.length;
2128
2128
  var first, second;
@@ -2131,10 +2131,10 @@ var createMethod$1 = function (CONVERT_TO_STRING) {
2131
2131
  return first < 0xD800 || first > 0xDBFF || position + 1 === size
2132
2132
  || (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF
2133
2133
  ? CONVERT_TO_STRING
2134
- ? charAt$7(S, position)
2134
+ ? charAt$6(S, position)
2135
2135
  : first
2136
2136
  : CONVERT_TO_STRING
2137
- ? stringSlice$8(S, position, position + 2)
2137
+ ? stringSlice$7(S, position, position + 2)
2138
2138
  : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2139
2139
  };
2140
2140
  };
@@ -2148,21 +2148,21 @@ var stringMultibyte = {
2148
2148
  charAt: createMethod$1(true)
2149
2149
  };
2150
2150
 
2151
- var charAt$6 = stringMultibyte.charAt;
2151
+ var charAt$5 = stringMultibyte.charAt;
2152
2152
 
2153
2153
  // `AdvanceStringIndex` abstract operation
2154
2154
  // https://tc39.es/ecma262/#sec-advancestringindex
2155
2155
  var advanceStringIndex$2 = function (S, index, unicode) {
2156
- return index + (unicode ? charAt$6(S, index).length : 1);
2156
+ return index + (unicode ? charAt$5(S, index).length : 1);
2157
2157
  };
2158
2158
 
2159
- var uncurryThis$h = functionUncurryThis;
2159
+ var uncurryThis$g = functionUncurryThis;
2160
2160
  var toObject$3 = toObject$8;
2161
2161
 
2162
2162
  var floor$4 = Math.floor;
2163
- var charAt$5 = uncurryThis$h(''.charAt);
2164
- var replace$6 = uncurryThis$h(''.replace);
2165
- var stringSlice$7 = uncurryThis$h(''.slice);
2163
+ var charAt$4 = uncurryThis$g(''.charAt);
2164
+ var replace$5 = uncurryThis$g(''.replace);
2165
+ var stringSlice$6 = uncurryThis$g(''.slice);
2166
2166
  var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
2167
2167
  var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
2168
2168
 
@@ -2176,15 +2176,15 @@ var getSubstitution$2 = function (matched, str, position, captures, namedCapture
2176
2176
  namedCaptures = toObject$3(namedCaptures);
2177
2177
  symbols = SUBSTITUTION_SYMBOLS;
2178
2178
  }
2179
- return replace$6(replacement, symbols, function (match, ch) {
2179
+ return replace$5(replacement, symbols, function (match, ch) {
2180
2180
  var capture;
2181
- switch (charAt$5(ch, 0)) {
2181
+ switch (charAt$4(ch, 0)) {
2182
2182
  case '$': return '$';
2183
2183
  case '&': return matched;
2184
- case '`': return stringSlice$7(str, 0, position);
2185
- case "'": return stringSlice$7(str, tailPos);
2184
+ case '`': return stringSlice$6(str, 0, position);
2185
+ case "'": return stringSlice$6(str, tailPos);
2186
2186
  case '<':
2187
- capture = namedCaptures[stringSlice$7(ch, 1, -1)];
2187
+ capture = namedCaptures[stringSlice$6(ch, 1, -1)];
2188
2188
  break;
2189
2189
  default: // \d\d?
2190
2190
  var n = +ch;
@@ -2192,7 +2192,7 @@ var getSubstitution$2 = function (matched, str, position, captures, namedCapture
2192
2192
  if (n > m) {
2193
2193
  var f = floor$4(n / 10);
2194
2194
  if (f === 0) return match;
2195
- if (f <= m) return captures[f - 1] === undefined ? charAt$5(ch, 1) : captures[f - 1] + charAt$5(ch, 1);
2195
+ if (f <= m) return captures[f - 1] === undefined ? charAt$4(ch, 1) : captures[f - 1] + charAt$4(ch, 1);
2196
2196
  return match;
2197
2197
  }
2198
2198
  capture = captures[n - 1];
@@ -2203,7 +2203,7 @@ var getSubstitution$2 = function (matched, str, position, captures, namedCapture
2203
2203
 
2204
2204
  var call$d = functionCall;
2205
2205
  var anObject$a = anObject$h;
2206
- var isCallable$a = isCallable$q;
2206
+ var isCallable$9 = isCallable$p;
2207
2207
  var classof$5 = classofRaw$2;
2208
2208
  var regexpExec = regexpExec$2;
2209
2209
 
@@ -2213,7 +2213,7 @@ var $TypeError$a = TypeError;
2213
2213
  // https://tc39.es/ecma262/#sec-regexpexec
2214
2214
  var regexpExecAbstract = function (R, S) {
2215
2215
  var exec = R.exec;
2216
- if (isCallable$a(exec)) {
2216
+ if (isCallable$9(exec)) {
2217
2217
  var result = call$d(exec, R, S);
2218
2218
  if (result !== null) anObject$a(result);
2219
2219
  return result;
@@ -2224,29 +2224,29 @@ var regexpExecAbstract = function (R, S) {
2224
2224
 
2225
2225
  var apply$1 = functionApply;
2226
2226
  var call$c = functionCall;
2227
- var uncurryThis$g = functionUncurryThis;
2227
+ var uncurryThis$f = functionUncurryThis;
2228
2228
  var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
2229
- var fails$b = fails$s;
2229
+ var fails$a = fails$r;
2230
2230
  var anObject$9 = anObject$h;
2231
- var isCallable$9 = isCallable$q;
2231
+ var isCallable$8 = isCallable$p;
2232
2232
  var isNullOrUndefined$4 = isNullOrUndefined$7;
2233
2233
  var toIntegerOrInfinity$2 = toIntegerOrInfinity$6;
2234
2234
  var toLength$1 = toLength$3;
2235
- var toString$b = toString$e;
2235
+ var toString$a = toString$d;
2236
2236
  var requireObjectCoercible$5 = requireObjectCoercible$9;
2237
2237
  var advanceStringIndex$1 = advanceStringIndex$2;
2238
2238
  var getMethod$4 = getMethod$6;
2239
2239
  var getSubstitution$1 = getSubstitution$2;
2240
2240
  var regExpExec$1 = regexpExecAbstract;
2241
- var wellKnownSymbol$d = wellKnownSymbol$n;
2241
+ var wellKnownSymbol$c = wellKnownSymbol$m;
2242
2242
 
2243
- var REPLACE$1 = wellKnownSymbol$d('replace');
2243
+ var REPLACE$1 = wellKnownSymbol$c('replace');
2244
2244
  var max$2 = Math.max;
2245
2245
  var min = Math.min;
2246
- var concat = uncurryThis$g([].concat);
2247
- var push$4 = uncurryThis$g([].push);
2248
- var stringIndexOf$3 = uncurryThis$g(''.indexOf);
2249
- var stringSlice$6 = uncurryThis$g(''.slice);
2246
+ var concat = uncurryThis$f([].concat);
2247
+ var push$4 = uncurryThis$f([].push);
2248
+ var stringIndexOf$2 = uncurryThis$f(''.indexOf);
2249
+ var stringSlice$5 = uncurryThis$f(''.slice);
2250
2250
 
2251
2251
  var maybeToString = function (it) {
2252
2252
  return it === undefined ? it : String(it);
@@ -2267,7 +2267,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2267
2267
  return false;
2268
2268
  })();
2269
2269
 
2270
- var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$b(function () {
2270
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$a(function () {
2271
2271
  var re = /./;
2272
2272
  re.exec = function () {
2273
2273
  var result = [];
@@ -2290,25 +2290,25 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2290
2290
  var replacer = isNullOrUndefined$4(searchValue) ? undefined : getMethod$4(searchValue, REPLACE$1);
2291
2291
  return replacer
2292
2292
  ? call$c(replacer, searchValue, O, replaceValue)
2293
- : call$c(nativeReplace, toString$b(O), searchValue, replaceValue);
2293
+ : call$c(nativeReplace, toString$a(O), searchValue, replaceValue);
2294
2294
  },
2295
2295
  // `RegExp.prototype[@@replace]` method
2296
2296
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
2297
2297
  function (string, replaceValue) {
2298
2298
  var rx = anObject$9(this);
2299
- var S = toString$b(string);
2299
+ var S = toString$a(string);
2300
2300
 
2301
2301
  if (
2302
2302
  typeof replaceValue == 'string' &&
2303
- stringIndexOf$3(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
2304
- stringIndexOf$3(replaceValue, '$<') === -1
2303
+ stringIndexOf$2(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
2304
+ stringIndexOf$2(replaceValue, '$<') === -1
2305
2305
  ) {
2306
2306
  var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
2307
2307
  if (res.done) return res.value;
2308
2308
  }
2309
2309
 
2310
- var functionalReplace = isCallable$9(replaceValue);
2311
- if (!functionalReplace) replaceValue = toString$b(replaceValue);
2310
+ var functionalReplace = isCallable$8(replaceValue);
2311
+ if (!functionalReplace) replaceValue = toString$a(replaceValue);
2312
2312
 
2313
2313
  var global = rx.global;
2314
2314
  if (global) {
@@ -2323,7 +2323,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2323
2323
  push$4(results, result);
2324
2324
  if (!global) break;
2325
2325
 
2326
- var matchStr = toString$b(result[0]);
2326
+ var matchStr = toString$a(result[0]);
2327
2327
  if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$1(rx.lastIndex), fullUnicode);
2328
2328
  }
2329
2329
 
@@ -2332,7 +2332,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2332
2332
  for (var i = 0; i < results.length; i++) {
2333
2333
  result = results[i];
2334
2334
 
2335
- var matched = toString$b(result[0]);
2335
+ var matched = toString$a(result[0]);
2336
2336
  var position = max$2(min(toIntegerOrInfinity$2(result.index), S.length), 0);
2337
2337
  var captures = [];
2338
2338
  // NOTE: This is equivalent to
@@ -2345,67 +2345,67 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
2345
2345
  if (functionalReplace) {
2346
2346
  var replacerArgs = concat([matched], captures, position, S);
2347
2347
  if (namedCaptures !== undefined) push$4(replacerArgs, namedCaptures);
2348
- var replacement = toString$b(apply$1(replaceValue, undefined, replacerArgs));
2348
+ var replacement = toString$a(apply$1(replaceValue, undefined, replacerArgs));
2349
2349
  } else {
2350
2350
  replacement = getSubstitution$1(matched, S, position, captures, namedCaptures, replaceValue);
2351
2351
  }
2352
2352
  if (position >= nextSourcePosition) {
2353
- accumulatedResult += stringSlice$6(S, nextSourcePosition, position) + replacement;
2353
+ accumulatedResult += stringSlice$5(S, nextSourcePosition, position) + replacement;
2354
2354
  nextSourcePosition = position + matched.length;
2355
2355
  }
2356
2356
  }
2357
- return accumulatedResult + stringSlice$6(S, nextSourcePosition);
2357
+ return accumulatedResult + stringSlice$5(S, nextSourcePosition);
2358
2358
  }
2359
2359
  ];
2360
2360
  }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
2361
2361
 
2362
2362
  var isObject$5 = isObject$c;
2363
2363
  var classof$4 = classofRaw$2;
2364
- var wellKnownSymbol$c = wellKnownSymbol$n;
2364
+ var wellKnownSymbol$b = wellKnownSymbol$m;
2365
2365
 
2366
- var MATCH$2 = wellKnownSymbol$c('match');
2366
+ var MATCH$1 = wellKnownSymbol$b('match');
2367
2367
 
2368
2368
  // `IsRegExp` abstract operation
2369
2369
  // https://tc39.es/ecma262/#sec-isregexp
2370
2370
  var isRegexp = function (it) {
2371
2371
  var isRegExp;
2372
- return isObject$5(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$4(it) == 'RegExp');
2372
+ return isObject$5(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$4(it) == 'RegExp');
2373
2373
  };
2374
2374
 
2375
2375
  var call$b = functionCall;
2376
- var hasOwn$5 = hasOwnProperty_1;
2377
- var isPrototypeOf$4 = objectIsPrototypeOf;
2376
+ var hasOwn$4 = hasOwnProperty_1;
2377
+ var isPrototypeOf$3 = objectIsPrototypeOf;
2378
2378
  var regExpFlags = regexpFlags$1;
2379
2379
 
2380
- var RegExpPrototype$2 = RegExp.prototype;
2380
+ var RegExpPrototype$1 = RegExp.prototype;
2381
2381
 
2382
2382
  var regexpGetFlags = function (R) {
2383
2383
  var flags = R.flags;
2384
- return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$5(R, 'flags') && isPrototypeOf$4(RegExpPrototype$2, R)
2384
+ return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$4(R, 'flags') && isPrototypeOf$3(RegExpPrototype$1, R)
2385
2385
  ? call$b(regExpFlags, R) : flags;
2386
2386
  };
2387
2387
 
2388
2388
  var $$i = _export;
2389
2389
  var call$a = functionCall;
2390
- var uncurryThis$f = functionUncurryThis;
2390
+ var uncurryThis$e = functionUncurryThis;
2391
2391
  var requireObjectCoercible$4 = requireObjectCoercible$9;
2392
- var isCallable$8 = isCallable$q;
2392
+ var isCallable$7 = isCallable$p;
2393
2393
  var isNullOrUndefined$3 = isNullOrUndefined$7;
2394
- var isRegExp$2 = isRegexp;
2395
- var toString$a = toString$e;
2394
+ var isRegExp$1 = isRegexp;
2395
+ var toString$9 = toString$d;
2396
2396
  var getMethod$3 = getMethod$6;
2397
- var getRegExpFlags$2 = regexpGetFlags;
2397
+ var getRegExpFlags$1 = regexpGetFlags;
2398
2398
  var getSubstitution = getSubstitution$2;
2399
- var wellKnownSymbol$b = wellKnownSymbol$n;
2399
+ var wellKnownSymbol$a = wellKnownSymbol$m;
2400
2400
 
2401
- var REPLACE = wellKnownSymbol$b('replace');
2401
+ var REPLACE = wellKnownSymbol$a('replace');
2402
2402
  var $TypeError$9 = TypeError;
2403
- var indexOf = uncurryThis$f(''.indexOf);
2404
- uncurryThis$f(''.replace);
2405
- var stringSlice$5 = uncurryThis$f(''.slice);
2403
+ var indexOf = uncurryThis$e(''.indexOf);
2404
+ uncurryThis$e(''.replace);
2405
+ var stringSlice$4 = uncurryThis$e(''.slice);
2406
2406
  var max$1 = Math.max;
2407
2407
 
2408
- var stringIndexOf$2 = function (string, searchValue, fromIndex) {
2408
+ var stringIndexOf$1 = function (string, searchValue, fromIndex) {
2409
2409
  if (fromIndex > string.length) return -1;
2410
2410
  if (searchValue === '') return fromIndex;
2411
2411
  return indexOf(string, searchValue, fromIndex);
@@ -2421,9 +2421,9 @@ $$i({ target: 'String', proto: true }, {
2421
2421
  var endOfLastMatch = 0;
2422
2422
  var result = '';
2423
2423
  if (!isNullOrUndefined$3(searchValue)) {
2424
- IS_REG_EXP = isRegExp$2(searchValue);
2424
+ IS_REG_EXP = isRegExp$1(searchValue);
2425
2425
  if (IS_REG_EXP) {
2426
- flags = toString$a(requireObjectCoercible$4(getRegExpFlags$2(searchValue)));
2426
+ flags = toString$9(requireObjectCoercible$4(getRegExpFlags$1(searchValue)));
2427
2427
  if (!~indexOf(flags, 'g')) throw $TypeError$9('`.replaceAll` does not allow non-global regexes');
2428
2428
  }
2429
2429
  replacer = getMethod$3(searchValue, REPLACE);
@@ -2431,23 +2431,23 @@ $$i({ target: 'String', proto: true }, {
2431
2431
  return call$a(replacer, searchValue, O, replaceValue);
2432
2432
  }
2433
2433
  }
2434
- string = toString$a(O);
2435
- searchString = toString$a(searchValue);
2436
- functionalReplace = isCallable$8(replaceValue);
2437
- if (!functionalReplace) replaceValue = toString$a(replaceValue);
2434
+ string = toString$9(O);
2435
+ searchString = toString$9(searchValue);
2436
+ functionalReplace = isCallable$7(replaceValue);
2437
+ if (!functionalReplace) replaceValue = toString$9(replaceValue);
2438
2438
  searchLength = searchString.length;
2439
2439
  advanceBy = max$1(1, searchLength);
2440
- position = stringIndexOf$2(string, searchString, 0);
2440
+ position = stringIndexOf$1(string, searchString, 0);
2441
2441
  while (position !== -1) {
2442
2442
  replacement = functionalReplace
2443
- ? toString$a(replaceValue(searchString, position, string))
2443
+ ? toString$9(replaceValue(searchString, position, string))
2444
2444
  : getSubstitution(searchString, string, position, [], undefined, replaceValue);
2445
- result += stringSlice$5(string, endOfLastMatch, position) + replacement;
2445
+ result += stringSlice$4(string, endOfLastMatch, position) + replacement;
2446
2446
  endOfLastMatch = position + searchLength;
2447
- position = stringIndexOf$2(string, searchString, position + advanceBy);
2447
+ position = stringIndexOf$1(string, searchString, position + advanceBy);
2448
2448
  }
2449
2449
  if (endOfLastMatch < string.length) {
2450
- result += stringSlice$5(string, endOfLastMatch);
2450
+ result += stringSlice$4(string, endOfLastMatch);
2451
2451
  }
2452
2452
  return result;
2453
2453
  }
@@ -2766,7 +2766,7 @@ const featureFlags = {
2766
2766
  /**
2767
2767
  * `enableFunding` enables the `funding` section of the rate form.
2768
2768
  */
2769
- enableFunding: false,
2769
+ enableFunding: true,
2770
2770
  /**
2771
2771
  * `enableGlobalPostFiltering` enables the `global post filtering` on all rates fetched
2772
2772
  * in the rates form.
@@ -2845,7 +2845,7 @@ const featureFlags = {
2845
2845
  * `enabledCarriers` is a list of all `carriers` that are enabled for use in ShipEngine
2846
2846
  * Elements.
2847
2847
  */
2848
- enabledCarriers: ["stamps_com", "ups_walleted", "dhl_express_walleted", "ups", "hermes", "yodel_walleted", "dpdwallet", "globalpost"]
2848
+ enabledCarriers: ["aramex_au_walleted", "canada_post_walleted", "canpar_walleted", "couriersplease_walleted", "dhl_express_walleted", "dpd_germany_walleted", "dpdwallet", "globalpost", "hermes", "purolator_walleted", "sendle_walleted", "stamps_com", "ups_walleted", "ups", "yodel_walleted"]
2849
2849
  },
2850
2850
  /**
2851
2851
  * All global `presentation` related feature flags.
@@ -2914,6 +2914,25 @@ const getFeatures = (...element) => {
2914
2914
  const useFeatures = (...element) => {
2915
2915
  return getFeatures(...element);
2916
2916
  };
2917
+ const isObject$4 = item => item !== null && typeof item === "object" && !Array.isArray(item);
2918
+ function deepMergeFeatures(defaults, custom) {
2919
+ const features = Object.assign({}, defaults);
2920
+ if (isObject$4(defaults) && isObject$4(custom)) {
2921
+ Object.keys(custom).forEach(key => {
2922
+ if (isObject$4(custom[key])) {
2923
+ if (!features[key]) Object.assign(features, {
2924
+ [key]: {}
2925
+ });
2926
+ features[key] = deepMergeFeatures(features[key], custom[key]);
2927
+ } else {
2928
+ Object.assign(features, {
2929
+ [key]: custom[key]
2930
+ });
2931
+ }
2932
+ });
2933
+ }
2934
+ return features;
2935
+ }
2917
2936
 
2918
2937
  /**
2919
2938
  * @internal
@@ -2959,12 +2978,12 @@ const formLogger = {
2959
2978
  var whitespaces$4 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
2960
2979
  '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
2961
2980
 
2962
- var uncurryThis$e = functionUncurryThis;
2981
+ var uncurryThis$d = functionUncurryThis;
2963
2982
  var requireObjectCoercible$3 = requireObjectCoercible$9;
2964
- var toString$9 = toString$e;
2983
+ var toString$8 = toString$d;
2965
2984
  var whitespaces$3 = whitespaces$4;
2966
2985
 
2967
- var replace$5 = uncurryThis$e(''.replace);
2986
+ var replace$4 = uncurryThis$d(''.replace);
2968
2987
  var whitespace = '[' + whitespaces$3 + ']';
2969
2988
  var ltrim = RegExp('^' + whitespace + whitespace + '*');
2970
2989
  var rtrim = RegExp(whitespace + whitespace + '*$');
@@ -2972,9 +2991,9 @@ var rtrim = RegExp(whitespace + whitespace + '*$');
2972
2991
  // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
2973
2992
  var createMethod = function (TYPE) {
2974
2993
  return function ($this) {
2975
- var string = toString$9(requireObjectCoercible$3($this));
2976
- if (TYPE & 1) string = replace$5(string, ltrim, '');
2977
- if (TYPE & 2) string = replace$5(string, rtrim, '');
2994
+ var string = toString$8(requireObjectCoercible$3($this));
2995
+ if (TYPE & 1) string = replace$4(string, ltrim, '');
2996
+ if (TYPE & 2) string = replace$4(string, rtrim, '');
2978
2997
  return string;
2979
2998
  };
2980
2999
  };
@@ -2992,7 +3011,7 @@ var stringTrim = {
2992
3011
  };
2993
3012
 
2994
3013
  var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
2995
- var fails$a = fails$s;
3014
+ var fails$9 = fails$r;
2996
3015
  var whitespaces$2 = whitespaces$4;
2997
3016
 
2998
3017
  var non = '\u200B\u0085\u180E';
@@ -3000,7 +3019,7 @@ var non = '\u200B\u0085\u180E';
3000
3019
  // check that a method works with the correct list
3001
3020
  // of whitespaces and has a correct name
3002
3021
  var stringTrimForced = function (METHOD_NAME) {
3003
- return fails$a(function () {
3022
+ return fails$9(function () {
3004
3023
  return !!whitespaces$2[METHOD_NAME]()
3005
3024
  || non[METHOD_NAME]() !== non
3006
3025
  || (PROPER_FUNCTION_NAME$1 && whitespaces$2[METHOD_NAME].name !== METHOD_NAME);
@@ -3192,11 +3211,11 @@ const isCollectionService = (carrier, serviceCode) => {
3192
3211
 
3193
3212
  var $$g = _export;
3194
3213
  var $includes = arrayIncludes.includes;
3195
- var fails$9 = fails$s;
3214
+ var fails$8 = fails$r;
3196
3215
  var addToUnscopables$1 = addToUnscopables$3;
3197
3216
 
3198
3217
  // FF99+ bug
3199
- var BROKEN_ON_SPARSE = fails$9(function () {
3218
+ var BROKEN_ON_SPARSE = fails$8(function () {
3200
3219
  return !Array(1).includes();
3201
3220
  });
3202
3221
 
@@ -3389,7 +3408,7 @@ const euCountryCodes = countries.filter(c => c.hasEuCustomsRules).map(c => c.cod
3389
3408
  *
3390
3409
  * # Address Utils - Postal Code Regex
3391
3410
  */
3392
- const postalCodeRegex$3 = /(^\d{5}$)|(^\d{5}-\d{4}$)/;
3411
+ const postalCodeRegex$1 = /(^\d{5}$)|(^\d{5}-\d{4}$)/;
3393
3412
  /**
3394
3413
  * @internal
3395
3414
  *
@@ -3782,13 +3801,13 @@ var webkit = userAgent$3.match(/AppleWebKit\/(\d+)\./);
3782
3801
  var engineWebkitVersion = !!webkit && +webkit[1];
3783
3802
 
3784
3803
  var $$f = _export;
3785
- var uncurryThis$d = functionUncurryThis;
3804
+ var uncurryThis$c = functionUncurryThis;
3786
3805
  var aCallable$7 = aCallable$a;
3787
3806
  var toObject$2 = toObject$8;
3788
3807
  var lengthOfArrayLike$4 = lengthOfArrayLike$8;
3789
3808
  var deletePropertyOrThrow = deletePropertyOrThrow$1;
3790
- var toString$8 = toString$e;
3791
- var fails$8 = fails$s;
3809
+ var toString$7 = toString$d;
3810
+ var fails$7 = fails$r;
3792
3811
  var internalSort = arraySort$1;
3793
3812
  var arrayMethodIsStrict = arrayMethodIsStrict$2;
3794
3813
  var FF = engineFfVersion;
@@ -3797,21 +3816,21 @@ var V8 = engineV8Version;
3797
3816
  var WEBKIT = engineWebkitVersion;
3798
3817
 
3799
3818
  var test = [];
3800
- var nativeSort = uncurryThis$d(test.sort);
3801
- var push$3 = uncurryThis$d(test.push);
3819
+ var nativeSort = uncurryThis$c(test.sort);
3820
+ var push$3 = uncurryThis$c(test.push);
3802
3821
 
3803
3822
  // IE8-
3804
- var FAILS_ON_UNDEFINED = fails$8(function () {
3823
+ var FAILS_ON_UNDEFINED = fails$7(function () {
3805
3824
  test.sort(undefined);
3806
3825
  });
3807
3826
  // V8 bug
3808
- var FAILS_ON_NULL = fails$8(function () {
3827
+ var FAILS_ON_NULL = fails$7(function () {
3809
3828
  test.sort(null);
3810
3829
  });
3811
3830
  // Old WebKit
3812
3831
  var STRICT_METHOD = arrayMethodIsStrict('sort');
3813
3832
 
3814
- var STABLE_SORT = !fails$8(function () {
3833
+ var STABLE_SORT = !fails$7(function () {
3815
3834
  // feature detection can be too slow, so check engines versions
3816
3835
  if (V8) return V8 < 70;
3817
3836
  if (FF && FF > 3) return;
@@ -3853,7 +3872,7 @@ var getSortCompare = function (comparefn) {
3853
3872
  if (y === undefined) return -1;
3854
3873
  if (x === undefined) return 1;
3855
3874
  if (comparefn !== undefined) return +comparefn(x, y) || 0;
3856
- return toString$8(x) > toString$8(y) ? 1 : -1;
3875
+ return toString$7(x) > toString$7(y) ? 1 : -1;
3857
3876
  };
3858
3877
  };
3859
3878
 
@@ -3936,14 +3955,14 @@ const getShipmentByStatus = (status, shipments) => shipments === null || shipmen
3936
3955
  shipmentStatus
3937
3956
  }) => shipmentStatus === status).sort(sortByCreationDate)[0];
3938
3957
 
3939
- var uncurryThis$c = functionUncurryThis;
3958
+ var uncurryThis$b = functionUncurryThis;
3940
3959
 
3941
3960
  // `thisNumberValue` abstract operation
3942
3961
  // https://tc39.es/ecma262/#sec-thisnumbervalue
3943
- var thisNumberValue$1 = uncurryThis$c(1.0.valueOf);
3962
+ var thisNumberValue$1 = uncurryThis$b(1.0.valueOf);
3944
3963
 
3945
3964
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$6;
3946
- var toString$7 = toString$e;
3965
+ var toString$6 = toString$d;
3947
3966
  var requireObjectCoercible$2 = requireObjectCoercible$9;
3948
3967
 
3949
3968
  var $RangeError$2 = RangeError;
@@ -3951,7 +3970,7 @@ var $RangeError$2 = RangeError;
3951
3970
  // `String.prototype.repeat` method implementation
3952
3971
  // https://tc39.es/ecma262/#sec-string.prototype.repeat
3953
3972
  var stringRepeat = function repeat(count) {
3954
- var str = toString$7(requireObjectCoercible$2(this));
3973
+ var str = toString$6(requireObjectCoercible$2(this));
3955
3974
  var result = '';
3956
3975
  var n = toIntegerOrInfinity$1(count);
3957
3976
  if (n < 0 || n == Infinity) throw $RangeError$2('Wrong number of repetitions');
@@ -3960,18 +3979,18 @@ var stringRepeat = function repeat(count) {
3960
3979
  };
3961
3980
 
3962
3981
  var $$e = _export;
3963
- var uncurryThis$b = functionUncurryThis;
3982
+ var uncurryThis$a = functionUncurryThis;
3964
3983
  var toIntegerOrInfinity = toIntegerOrInfinity$6;
3965
3984
  var thisNumberValue = thisNumberValue$1;
3966
3985
  var $repeat = stringRepeat;
3967
- var fails$7 = fails$s;
3986
+ var fails$6 = fails$r;
3968
3987
 
3969
3988
  var $RangeError$1 = RangeError;
3970
3989
  var $String = String;
3971
3990
  var floor$2 = Math.floor;
3972
- var repeat = uncurryThis$b($repeat);
3973
- var stringSlice$4 = uncurryThis$b(''.slice);
3974
- var nativeToFixed = uncurryThis$b(1.0.toFixed);
3991
+ var repeat = uncurryThis$a($repeat);
3992
+ var stringSlice$3 = uncurryThis$a(''.slice);
3993
+ var nativeToFixed = uncurryThis$a(1.0.toFixed);
3975
3994
 
3976
3995
  var pow$1 = function (x, n, acc) {
3977
3996
  return n === 0 ? acc : n % 2 === 1 ? pow$1(x, n - 1, acc * x) : pow$1(x * x, n / 2, acc);
@@ -4021,12 +4040,12 @@ var dataToString = function (data) {
4021
4040
  } return s;
4022
4041
  };
4023
4042
 
4024
- var FORCED$2 = fails$7(function () {
4043
+ var FORCED$2 = fails$6(function () {
4025
4044
  return nativeToFixed(0.00008, 3) !== '0.000' ||
4026
4045
  nativeToFixed(0.9, 0) !== '1' ||
4027
4046
  nativeToFixed(1.255, 2) !== '1.25' ||
4028
4047
  nativeToFixed(1000000000000000128.0, 0) !== '1000000000000000128';
4029
- }) || !fails$7(function () {
4048
+ }) || !fails$6(function () {
4030
4049
  // V8 ~ Android 4.3-
4031
4050
  nativeToFixed({});
4032
4051
  });
@@ -4083,7 +4102,7 @@ $$e({ target: 'Number', proto: true, forced: FORCED$2 }, {
4083
4102
  k = result.length;
4084
4103
  result = sign + (k <= fractDigits
4085
4104
  ? '0.' + repeat('0', fractDigits - k) + result
4086
- : stringSlice$4(result, 0, k - fractDigits) + '.' + stringSlice$4(result, k - fractDigits));
4105
+ : stringSlice$3(result, 0, k - fractDigits) + '.' + stringSlice$3(result, k - fractDigits));
4087
4106
  } else {
4088
4107
  result = sign + result;
4089
4108
  } return result;
@@ -4221,19 +4240,19 @@ function formatFractionalWeight(weight, unit) {
4221
4240
  };
4222
4241
  }
4223
4242
 
4224
- var isRegExp$1 = isRegexp;
4243
+ var isRegExp = isRegexp;
4225
4244
 
4226
4245
  var $TypeError$7 = TypeError;
4227
4246
 
4228
4247
  var notARegexp = function (it) {
4229
- if (isRegExp$1(it)) {
4248
+ if (isRegExp(it)) {
4230
4249
  throw $TypeError$7("The method doesn't accept regular expressions");
4231
4250
  } return it;
4232
4251
  };
4233
4252
 
4234
- var wellKnownSymbol$a = wellKnownSymbol$n;
4253
+ var wellKnownSymbol$9 = wellKnownSymbol$m;
4235
4254
 
4236
- var MATCH$1 = wellKnownSymbol$a('match');
4255
+ var MATCH = wellKnownSymbol$9('match');
4237
4256
 
4238
4257
  var correctIsRegexpLogic = function (METHOD_NAME) {
4239
4258
  var regexp = /./;
@@ -4241,28 +4260,28 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
4241
4260
  '/./'[METHOD_NAME](regexp);
4242
4261
  } catch (error1) {
4243
4262
  try {
4244
- regexp[MATCH$1] = false;
4263
+ regexp[MATCH] = false;
4245
4264
  return '/./'[METHOD_NAME](regexp);
4246
4265
  } catch (error2) { /* empty */ }
4247
4266
  } return false;
4248
4267
  };
4249
4268
 
4250
4269
  var $$d = _export;
4251
- var uncurryThis$a = functionUncurryThis;
4270
+ var uncurryThis$9 = functionUncurryThis;
4252
4271
  var notARegExp = notARegexp;
4253
4272
  var requireObjectCoercible$1 = requireObjectCoercible$9;
4254
- var toString$6 = toString$e;
4273
+ var toString$5 = toString$d;
4255
4274
  var correctIsRegExpLogic = correctIsRegexpLogic;
4256
4275
 
4257
- var stringIndexOf$1 = uncurryThis$a(''.indexOf);
4276
+ var stringIndexOf = uncurryThis$9(''.indexOf);
4258
4277
 
4259
4278
  // `String.prototype.includes` method
4260
4279
  // https://tc39.es/ecma262/#sec-string.prototype.includes
4261
4280
  $$d({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
4262
4281
  includes: function includes(searchString /* , position = 0 */) {
4263
- return !!~stringIndexOf$1(
4264
- toString$6(requireObjectCoercible$1(this)),
4265
- toString$6(notARegExp(searchString)),
4282
+ return !!~stringIndexOf(
4283
+ toString$5(requireObjectCoercible$1(this)),
4284
+ toString$5(notARegExp(searchString)),
4266
4285
  arguments.length > 1 ? arguments[1] : undefined
4267
4286
  );
4268
4287
  }
@@ -4801,11 +4820,11 @@ var doesNotExceedSafeInteger$1 = function (it) {
4801
4820
  return it;
4802
4821
  };
4803
4822
 
4804
- var uncurryThis$9 = functionUncurryThisClause;
4823
+ var uncurryThis$8 = functionUncurryThisClause;
4805
4824
  var aCallable$6 = aCallable$a;
4806
4825
  var NATIVE_BIND = functionBindNative;
4807
4826
 
4808
- var bind$8 = uncurryThis$9(uncurryThis$9.bind);
4827
+ var bind$8 = uncurryThis$8(uncurryThis$8.bind);
4809
4828
 
4810
4829
  // optional / simple context binding
4811
4830
  var functionBindContext = function (fn, that) {
@@ -4849,9 +4868,9 @@ var flattenIntoArray$1 = function (target, original, source, sourceLen, start, d
4849
4868
 
4850
4869
  var flattenIntoArray_1 = flattenIntoArray$1;
4851
4870
 
4852
- var uncurryThis$8 = functionUncurryThis;
4853
- var fails$6 = fails$s;
4854
- var isCallable$7 = isCallable$q;
4871
+ var uncurryThis$7 = functionUncurryThis;
4872
+ var fails$5 = fails$r;
4873
+ var isCallable$6 = isCallable$p;
4855
4874
  var classof$2 = classof$7;
4856
4875
  var getBuiltIn$3 = getBuiltIn$8;
4857
4876
  var inspectSource$1 = inspectSource$3;
@@ -4860,11 +4879,11 @@ var noop = function () { /* empty */ };
4860
4879
  var empty = [];
4861
4880
  var construct = getBuiltIn$3('Reflect', 'construct');
4862
4881
  var constructorRegExp = /^\s*(?:class|function)\b/;
4863
- var exec$4 = uncurryThis$8(constructorRegExp.exec);
4882
+ var exec$3 = uncurryThis$7(constructorRegExp.exec);
4864
4883
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
4865
4884
 
4866
4885
  var isConstructorModern = function isConstructor(argument) {
4867
- if (!isCallable$7(argument)) return false;
4886
+ if (!isCallable$6(argument)) return false;
4868
4887
  try {
4869
4888
  construct(noop, empty, argument);
4870
4889
  return true;
@@ -4874,7 +4893,7 @@ var isConstructorModern = function isConstructor(argument) {
4874
4893
  };
4875
4894
 
4876
4895
  var isConstructorLegacy = function isConstructor(argument) {
4877
- if (!isCallable$7(argument)) return false;
4896
+ if (!isCallable$6(argument)) return false;
4878
4897
  switch (classof$2(argument)) {
4879
4898
  case 'AsyncFunction':
4880
4899
  case 'GeneratorFunction':
@@ -4884,7 +4903,7 @@ var isConstructorLegacy = function isConstructor(argument) {
4884
4903
  // we can't check .prototype since constructors produced by .bind haven't it
4885
4904
  // `Function#toString` throws on some built-it function in some legacy engines
4886
4905
  // (for example, `DOMQuad` and similar in FF41-)
4887
- return INCORRECT_TO_STRING || !!exec$4(constructorRegExp, inspectSource$1(argument));
4906
+ return INCORRECT_TO_STRING || !!exec$3(constructorRegExp, inspectSource$1(argument));
4888
4907
  } catch (error) {
4889
4908
  return true;
4890
4909
  }
@@ -4894,7 +4913,7 @@ isConstructorLegacy.sham = true;
4894
4913
 
4895
4914
  // `IsConstructor` abstract operation
4896
4915
  // https://tc39.es/ecma262/#sec-isconstructor
4897
- var isConstructor$3 = !construct || fails$6(function () {
4916
+ var isConstructor$3 = !construct || fails$5(function () {
4898
4917
  var called;
4899
4918
  return isConstructorModern(isConstructorModern.call)
4900
4919
  || !isConstructorModern(Object)
@@ -4904,10 +4923,10 @@ var isConstructor$3 = !construct || fails$6(function () {
4904
4923
 
4905
4924
  var isArray = isArray$2;
4906
4925
  var isConstructor$2 = isConstructor$3;
4907
- var isObject$4 = isObject$c;
4908
- var wellKnownSymbol$9 = wellKnownSymbol$n;
4926
+ var isObject$3 = isObject$c;
4927
+ var wellKnownSymbol$8 = wellKnownSymbol$m;
4909
4928
 
4910
- var SPECIES$3 = wellKnownSymbol$9('species');
4929
+ var SPECIES$3 = wellKnownSymbol$8('species');
4911
4930
  var $Array$1 = Array;
4912
4931
 
4913
4932
  // a part of `ArraySpeciesCreate` abstract operation
@@ -4918,7 +4937,7 @@ var arraySpeciesConstructor$1 = function (originalArray) {
4918
4937
  C = originalArray.constructor;
4919
4938
  // cross-realm fallback
4920
4939
  if (isConstructor$2(C) && (C === $Array$1 || isArray(C.prototype))) C = undefined;
4921
- else if (isObject$4(C)) {
4940
+ else if (isObject$3(C)) {
4922
4941
  C = C[SPECIES$3];
4923
4942
  if (C === null) C = undefined;
4924
4943
  }
@@ -5101,27 +5120,27 @@ const InputGroup = _a => {
5101
5120
  }));
5102
5121
  };
5103
5122
 
5104
- var global$d = global$s;
5105
- var fails$5 = fails$s;
5106
- var uncurryThis$7 = functionUncurryThis;
5107
- var toString$5 = toString$e;
5123
+ var global$c = global$r;
5124
+ var fails$4 = fails$r;
5125
+ var uncurryThis$6 = functionUncurryThis;
5126
+ var toString$4 = toString$d;
5108
5127
  var trim$1 = stringTrim.trim;
5109
5128
  var whitespaces$1 = whitespaces$4;
5110
5129
 
5111
- var charAt$4 = uncurryThis$7(''.charAt);
5112
- var $parseFloat$1 = global$d.parseFloat;
5113
- var Symbol$2 = global$d.Symbol;
5130
+ var charAt$3 = uncurryThis$6(''.charAt);
5131
+ var $parseFloat$1 = global$c.parseFloat;
5132
+ var Symbol$2 = global$c.Symbol;
5114
5133
  var ITERATOR$6 = Symbol$2 && Symbol$2.iterator;
5115
5134
  var FORCED$1 = 1 / $parseFloat$1(whitespaces$1 + '-0') !== -Infinity
5116
5135
  // MS Edge 18- broken with boxed symbols
5117
- || (ITERATOR$6 && !fails$5(function () { $parseFloat$1(Object(ITERATOR$6)); }));
5136
+ || (ITERATOR$6 && !fails$4(function () { $parseFloat$1(Object(ITERATOR$6)); }));
5118
5137
 
5119
5138
  // `parseFloat` method
5120
5139
  // https://tc39.es/ecma262/#sec-parsefloat-string
5121
5140
  var numberParseFloat = FORCED$1 ? function parseFloat(string) {
5122
- var trimmedString = trim$1(toString$5(string));
5141
+ var trimmedString = trim$1(toString$4(string));
5123
5142
  var result = $parseFloat$1(trimmedString);
5124
- return result === 0 && charAt$4(trimmedString, 0) == '-' ? -0 : result;
5143
+ return result === 0 && charAt$3(trimmedString, 0) == '-' ? -0 : result;
5125
5144
  } : $parseFloat$1;
5126
5145
 
5127
5146
  var $$b = _export;
@@ -5234,27 +5253,27 @@ const MoneyInput = _a => {
5234
5253
  }));
5235
5254
  };
5236
5255
 
5237
- var global$c = global$s;
5238
- var fails$4 = fails$s;
5239
- var uncurryThis$6 = functionUncurryThis;
5240
- var toString$4 = toString$e;
5256
+ var global$b = global$r;
5257
+ var fails$3 = fails$r;
5258
+ var uncurryThis$5 = functionUncurryThis;
5259
+ var toString$3 = toString$d;
5241
5260
  var trim = stringTrim.trim;
5242
5261
  var whitespaces = whitespaces$4;
5243
5262
 
5244
- var $parseInt$1 = global$c.parseInt;
5245
- var Symbol$1 = global$c.Symbol;
5263
+ var $parseInt$1 = global$b.parseInt;
5264
+ var Symbol$1 = global$b.Symbol;
5246
5265
  var ITERATOR$5 = Symbol$1 && Symbol$1.iterator;
5247
5266
  var hex = /^[+-]?0x/i;
5248
- var exec$3 = uncurryThis$6(hex.exec);
5267
+ var exec$2 = uncurryThis$5(hex.exec);
5249
5268
  var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
5250
5269
  // MS Edge 18- broken with boxed symbols
5251
- || (ITERATOR$5 && !fails$4(function () { $parseInt$1(Object(ITERATOR$5)); }));
5270
+ || (ITERATOR$5 && !fails$3(function () { $parseInt$1(Object(ITERATOR$5)); }));
5252
5271
 
5253
5272
  // `parseInt` method
5254
5273
  // https://tc39.es/ecma262/#sec-parseint-string-radix
5255
5274
  var numberParseInt = FORCED ? function parseInt(string, radix) {
5256
- var S = trim(toString$4(string));
5257
- return $parseInt$1(S, (radix >>> 0) || (exec$3(hex, S) ? 16 : 10));
5275
+ var S = trim(toString$3(string));
5276
+ return $parseInt$1(S, (radix >>> 0) || (exec$2(hex, S) ? 16 : 10));
5258
5277
  } : $parseInt$1;
5259
5278
 
5260
5279
  var $$a = _export;
@@ -5311,27 +5330,27 @@ const NumberInput = _a => {
5311
5330
  };
5312
5331
 
5313
5332
  var PROPER_FUNCTION_NAME = functionName.PROPER;
5314
- var defineBuiltIn$6 = defineBuiltIn$b;
5333
+ var defineBuiltIn$5 = defineBuiltIn$a;
5315
5334
  var anObject$8 = anObject$h;
5316
- var $toString$2 = toString$e;
5317
- var fails$3 = fails$s;
5318
- var getRegExpFlags$1 = regexpGetFlags;
5335
+ var $toString$2 = toString$d;
5336
+ var fails$2 = fails$r;
5337
+ var getRegExpFlags = regexpGetFlags;
5319
5338
 
5320
5339
  var TO_STRING = 'toString';
5321
- var RegExpPrototype$1 = RegExp.prototype;
5322
- var nativeToString = RegExpPrototype$1[TO_STRING];
5340
+ var RegExpPrototype = RegExp.prototype;
5341
+ var nativeToString = RegExpPrototype[TO_STRING];
5323
5342
 
5324
- var NOT_GENERIC = fails$3(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
5343
+ var NOT_GENERIC = fails$2(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
5325
5344
  // FF44- RegExp#toString has a wrong name
5326
5345
  var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
5327
5346
 
5328
5347
  // `RegExp.prototype.toString` method
5329
5348
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
5330
5349
  if (NOT_GENERIC || INCORRECT_NAME) {
5331
- defineBuiltIn$6(RegExp.prototype, TO_STRING, function toString() {
5350
+ defineBuiltIn$5(RegExp.prototype, TO_STRING, function toString() {
5332
5351
  var R = anObject$8(this);
5333
5352
  var pattern = $toString$2(R.source);
5334
- var flags = $toString$2(getRegExpFlags$1(R));
5353
+ var flags = $toString$2(getRegExpFlags(R));
5335
5354
  return '/' + pattern + '/' + flags;
5336
5355
  }, { unsafe: true });
5337
5356
  }
@@ -5582,26 +5601,32 @@ const usePackageOptions = (carriers, customPackageTypes, shipment) => {
5582
5601
  [c.carrierCode]: partialResults[c.carrierCode] === undefined
5583
5602
  }));
5584
5603
  const genericPackage = findGenericPackageFromCarriers(carriers);
5585
- const customPackageOptions = [...(genericPackage || (customPackageTypes === null || customPackageTypes === void 0 ? void 0 : customPackageTypes.length) ? [{
5586
- label: t(_t$2 || (_t$2 = _$2`packageCategories.customPackages`)),
5587
- options: [...(genericPackage ? [{
5588
- label: t("packageCodes.package"),
5589
- value: {
5590
- code: "package"
5591
- }
5592
- }] : []), ...((customPackageTypes === null || customPackageTypes === void 0 ? void 0 : customPackageTypes.length) ? customPackageTypes.sort((a, b) => a.name.localeCompare(b.name)).map(({
5604
+ const genericPackageOption = genericPackage ? [{
5605
+ label: t("packageCodes.package"),
5606
+ value: {
5607
+ code: "package"
5608
+ }
5609
+ }] : [];
5610
+ const getCustomPackageOptions = () => {
5611
+ if (!customPackageTypes) return [];
5612
+ return customPackageTypes.sort((a, b) => a.name.localeCompare(b.name)).map(({
5593
5613
  dimensions,
5594
5614
  name,
5595
5615
  packageId
5596
5616
  }) => {
5617
+ const dimensionLabel = dimensions ? ` - ${formatDimensions(dimensions)}` : "";
5597
5618
  return {
5598
- label: `${name}${dimensions ? ` - ${dimensions.length} x ${dimensions.width} x ${dimensions.height}` : ""}`,
5619
+ label: `${name}${dimensionLabel}`,
5599
5620
  value: {
5600
5621
  code: packageId
5601
5622
  }
5602
5623
  };
5603
- }) : [])]
5604
- }] : [])];
5624
+ });
5625
+ };
5626
+ const customPackageOptions = [{
5627
+ label: t(_t$2 || (_t$2 = _$2`packageCategories.customPackages`)),
5628
+ options: [...genericPackageOption, ...getCustomPackageOptions()]
5629
+ }];
5605
5630
  return carriers.reduce((options, carrier) => {
5606
5631
  if (carrier.packages.length === 0) return options;
5607
5632
  // Filter out non-USPS packages for PO Box shipments
@@ -5679,7 +5704,7 @@ const useRateOptions = (rates, preferredRates, carriers, shipment, servicePoints
5679
5704
  const requiresFundedAmount = (_b = carriersById[r.carrierId]) === null || _b === void 0 ? void 0 : _b.requiresFundedAmount;
5680
5705
  const baseRateOption = Object.assign(Object.assign({}, r), {
5681
5706
  balance,
5682
- messages: r.warningMessages,
5707
+ messages: [...r.warningMessages, r.shippingAmount.amount === 0 ? "Rate and services will be billed based on carrier." : ""],
5683
5708
  requiresAcknowledgement: getRateRequiresAcknowledgement(r.serviceCode, r.packageType, !!requireDhlTermsAcknowledgement),
5684
5709
  requiresFundedAmount
5685
5710
  });
@@ -5697,7 +5722,12 @@ const useRateOptions = (rates, preferredRates, carriers, shipment, servicePoints
5697
5722
  });
5698
5723
  }, [carriersById, enableGlobalPostFiltering, isInternational, rates, requireDhlTermsAcknowledgement, rateOptionsFilters, servicePoints]);
5699
5724
  const rateOptions = useMemo(() => {
5700
- return [...preferredRateOptions, ...standardRateOptions].sort((a, b) => getTotalRateAmount(a) - getTotalRateAmount(b));
5725
+ return [...preferredRateOptions, ...standardRateOptions].sort((a, b) => {
5726
+ // both services have no rate, so compare deliveryDays
5727
+ if (a.shippingAmount.amount === 0 && b.shippingAmount.amount === 0) return a.deliveryDays - b.deliveryDays;else if (a.shippingAmount.amount === 0) return 1; // will move 'a' to end
5728
+ else if (b.shippingAmount.amount === 0) return -1; // will move 'b' to end
5729
+ else return getTotalRateAmount(a) - getTotalRateAmount(b); // cheaper price first
5730
+ });
5701
5731
  }, [preferredRateOptions, standardRateOptions]);
5702
5732
  return rateOptions;
5703
5733
  };
@@ -6154,10 +6184,10 @@ const useRunOnceOnTrue = conditionalEffect => {
6154
6184
  */
6155
6185
  const useToggle = (initialValue = false) => useReducer((prev, next) => next !== undefined && typeof next !== "object" ? next : !prev, initialValue);
6156
6186
 
6157
- var wellKnownSymbol$8 = wellKnownSymbol$n;
6187
+ var wellKnownSymbol$7 = wellKnownSymbol$m;
6158
6188
  var Iterators$1 = iterators;
6159
6189
 
6160
- var ITERATOR$4 = wellKnownSymbol$8('iterator');
6190
+ var ITERATOR$4 = wellKnownSymbol$7('iterator');
6161
6191
  var ArrayPrototype = Array.prototype;
6162
6192
 
6163
6193
  // check on default Array iterator
@@ -6169,9 +6199,9 @@ var classof$1 = classof$7;
6169
6199
  var getMethod$2 = getMethod$6;
6170
6200
  var isNullOrUndefined$2 = isNullOrUndefined$7;
6171
6201
  var Iterators = iterators;
6172
- var wellKnownSymbol$7 = wellKnownSymbol$n;
6202
+ var wellKnownSymbol$6 = wellKnownSymbol$m;
6173
6203
 
6174
- var ITERATOR$3 = wellKnownSymbol$7('iterator');
6204
+ var ITERATOR$3 = wellKnownSymbol$6('iterator');
6175
6205
 
6176
6206
  var getIteratorMethod$4 = function (it) {
6177
6207
  if (!isNullOrUndefined$2(it)) return getMethod$2(it, ITERATOR$3)
@@ -6223,7 +6253,7 @@ var anObject$5 = anObject$h;
6223
6253
  var tryToString$1 = tryToString$5;
6224
6254
  var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
6225
6255
  var lengthOfArrayLike$1 = lengthOfArrayLike$8;
6226
- var isPrototypeOf$3 = objectIsPrototypeOf;
6256
+ var isPrototypeOf$2 = objectIsPrototypeOf;
6227
6257
  var getIterator$2 = getIterator$3;
6228
6258
  var getIteratorMethod$2 = getIteratorMethod$4;
6229
6259
  var iteratorClose$1 = iteratorClose$2;
@@ -6269,7 +6299,7 @@ var iterate$3 = function (iterable, unboundFunction, options) {
6269
6299
  if (isArrayIteratorMethod$1(iterFn)) {
6270
6300
  for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
6271
6301
  result = callFn(iterable[index]);
6272
- if (result && isPrototypeOf$3(ResultPrototype, result)) return result;
6302
+ if (result && isPrototypeOf$2(ResultPrototype, result)) return result;
6273
6303
  } return new Result(false);
6274
6304
  }
6275
6305
  iterator = getIterator$2(iterable, iterFn);
@@ -6282,7 +6312,7 @@ var iterate$3 = function (iterable, unboundFunction, options) {
6282
6312
  } catch (error) {
6283
6313
  iteratorClose$1(iterator, 'throw', error);
6284
6314
  }
6285
- if (typeof result == 'object' && result && isPrototypeOf$3(ResultPrototype, result)) return result;
6315
+ if (typeof result == 'object' && result && isPrototypeOf$2(ResultPrototype, result)) return result;
6286
6316
  } return new Result(false);
6287
6317
  };
6288
6318
 
@@ -6487,7 +6517,7 @@ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
6487
6517
  var anObject$4 = anObject$h;
6488
6518
  var isNullOrUndefined$1 = isNullOrUndefined$7;
6489
6519
  var toLength = toLength$3;
6490
- var toString$3 = toString$e;
6520
+ var toString$2 = toString$d;
6491
6521
  var requireObjectCoercible = requireObjectCoercible$9;
6492
6522
  var getMethod = getMethod$6;
6493
6523
  var advanceStringIndex = advanceStringIndex$2;
@@ -6501,13 +6531,13 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
6501
6531
  function match(regexp) {
6502
6532
  var O = requireObjectCoercible(this);
6503
6533
  var matcher = isNullOrUndefined$1(regexp) ? undefined : getMethod(regexp, MATCH);
6504
- return matcher ? call$6(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$3(O));
6534
+ return matcher ? call$6(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$2(O));
6505
6535
  },
6506
6536
  // `RegExp.prototype[@@match]` method
6507
6537
  // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
6508
6538
  function (string) {
6509
6539
  var rx = anObject$4(this);
6510
- var S = toString$3(string);
6540
+ var S = toString$2(string);
6511
6541
  var res = maybeCallNative(nativeMatch, rx, S);
6512
6542
 
6513
6543
  if (res.done) return res.value;
@@ -6520,7 +6550,7 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
6520
6550
  var n = 0;
6521
6551
  var result;
6522
6552
  while ((result = regExpExec(rx, S)) !== null) {
6523
- var matchStr = toString$3(result[0]);
6553
+ var matchStr = toString$2(result[0]);
6524
6554
  A[n] = matchStr;
6525
6555
  if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
6526
6556
  n++;
@@ -7042,7 +7072,7 @@ const getTableCellLabelStyles = theme => /*#__PURE__*/css({
7042
7072
  }, process.env.NODE_ENV === "production" ? "" : ";label:getTableCellLabelStyles;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvc3QtYnJlYWtkb3duLnN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFja0QiLCJmaWxlIjoiY29zdC1icmVha2Rvd24uc3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgY3NzIH0gZnJvbSBcIkBlbW90aW9uL3JlYWN0XCI7XHJcbmltcG9ydCB7IGdldFJhdGVDYXJkRmlyc3RMaW5lU2l6ZSB9IGZyb20gXCIuLi9yYXRlLWNhcmQuc3R5bGVzXCI7XHJcbmV4cG9ydCBjb25zdCBnZXRBc2lkZVN0eWxlcyA9ICh0aGVtZSkgPT4gY3NzKHtcclxuICAgIGRpc3BsYXk6IFwiZmxleFwiLFxyXG4gICAgZmxleERpcmVjdGlvbjogXCJjb2x1bW5cIixcclxuICAgIHRleHRBbGlnbjogXCJyaWdodFwiLFxyXG59KTtcclxuZXhwb3J0IGNvbnN0IGdldFByaWNlU3R5bGVzID0gKHRoZW1lKSA9PiBjc3Moe1xyXG4gICAgbGluZUhlaWdodDogZ2V0UmF0ZUNhcmRGaXJzdExpbmVTaXplKHRoZW1lKSxcclxufSk7XHJcbmV4cG9ydCBjb25zdCBnZXRUYWJsZVN0eWxlcyA9ICh0aGVtZSkgPT4gY3NzKHtcclxuICAgIGJvcmRlclNwYWNpbmc6IGAwICR7dGhlbWUuc3BhY2luZygwLjUpfXB4YCxcclxuICAgIG1hcmdpblRvcDogdGhlbWUuc3BhY2luZygwLjUpLFxyXG59KTtcclxuZXhwb3J0IGNvbnN0IGdldFRhYmxlQ2VsbExhYmVsU3R5bGVzID0gKHRoZW1lKSA9PiBjc3Moe1xyXG4gICAgcGFkZGluZ1JpZ2h0OiB0aGVtZS5zcGFjaW5nKDQpLFxyXG59KTtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9Y29zdC1icmVha2Rvd24uc3R5bGVzLmpzLm1hcCJdfQ== */");
7043
7073
 
7044
7074
  const CostBreakdown = ({
7045
- showExtendedData,
7075
+ showExtendedData: _showExtendedData = false,
7046
7076
  shippingAmount,
7047
7077
  insuranceAmount,
7048
7078
  confirmationAmount,
@@ -7097,12 +7127,13 @@ const CostBreakdown = ({
7097
7127
  component: "span",
7098
7128
  css: getPriceStyles
7099
7129
  }, {
7100
- children: formatMoney({
7130
+ children: (shippingAmount === null || shippingAmount === void 0 ? void 0 : shippingAmount.amount) && shippingAmount.amount > 0 ? formatMoney({
7101
7131
  amount: totalAmount,
7102
7132
  currency: (shippingAmount === null || shippingAmount === void 0 ? void 0 : shippingAmount.currency) || SE.Currency.USD
7103
- })
7104
- })), showExtendedData && !!(priceItems === null || priceItems === void 0 ? void 0 : priceItems.length) && jsx("table", Object.assign({
7105
- css: getTableStyles
7133
+ }) : "--.--"
7134
+ })), _showExtendedData && !!(priceItems === null || priceItems === void 0 ? void 0 : priceItems.length) && jsx("table", Object.assign({
7135
+ css: getTableStyles,
7136
+ "data-testid": "cost-breakdown-extended-details"
7106
7137
  }, {
7107
7138
  children: jsx("tbody", {
7108
7139
  children: priceItems.map((priceItem, index) => jsxs("tr", {
@@ -7119,7 +7150,7 @@ const CostBreakdown = ({
7119
7150
  children: formatMoney(priceItem.value)
7120
7151
  })
7121
7152
  }))]
7122
- }, index + priceItem.value.amount))
7153
+ }, index + priceItem.label + priceItem.value.amount))
7123
7154
  })
7124
7155
  }))]
7125
7156
  }));
@@ -8293,6 +8324,7 @@ const AutoFundingForm = ({
8293
8324
  carrierId,
8294
8325
  currency
8295
8326
  }) => {
8327
+ var _a;
8296
8328
  const {
8297
8329
  t
8298
8330
  } = useTranslation();
@@ -8301,13 +8333,21 @@ const AutoFundingForm = ({
8301
8333
  isLoading: updateAutoFundingIsLoading
8302
8334
  } = useUpdateAutoFunding();
8303
8335
  const {
8336
+ // TODO: fix this datatype in alchemy the enabled field is outdated
8304
8337
  data: autoFundingConfig,
8305
8338
  refetch: autoFundingConfigRefetch,
8306
8339
  isInitialLoading: isLoadingAutoFundingConfig,
8307
8340
  error: autoFundingConfigErrors
8308
8341
  } = useGetAutoFundingConfiguration(carrierId);
8342
+ // TODO: Remove this cast when fixed in alchemy
8343
+ const castedAutoFundingConfig = autoFundingConfig;
8309
8344
  const [showForm, setShowForm] = useState(false);
8310
- const [isSwitchOn, setIsSwitchOn] = useState(false);
8345
+ const [isSwitchOn, setIsSwitchOn] = useState((_a = castedAutoFundingConfig === null || castedAutoFundingConfig === void 0 ? void 0 : castedAutoFundingConfig.isEnabled) !== null && _a !== void 0 ? _a : false);
8346
+ useEffect(() => {
8347
+ if (castedAutoFundingConfig !== undefined) {
8348
+ setIsSwitchOn(castedAutoFundingConfig.isEnabled);
8349
+ }
8350
+ }, [castedAutoFundingConfig]);
8311
8351
  const form = useForm({
8312
8352
  resolver: validationResolver(autoFundingSchema)
8313
8353
  });
@@ -8327,6 +8367,12 @@ const AutoFundingForm = ({
8327
8367
  onSuccess: () => autoFundingConfigRefetch()
8328
8368
  });
8329
8369
  }));
8370
+ const handleCancel = () => {
8371
+ setShowForm(false);
8372
+ // The default is if a user cancels out of the form it should not disable auto funding - in case the user tried to edit an already established rule
8373
+ // this handles the scenario where you cancel with no rule having been established - in which case we want to disable auto-funding.
8374
+ !(castedAutoFundingConfig === null || castedAutoFundingConfig === void 0 ? void 0 : castedAutoFundingConfig.isEnabled) && setIsSwitchOn(false);
8375
+ };
8330
8376
  /**
8331
8377
  * This function toggles the form visibility and conditionally disables auto-funding
8332
8378
  * when falsy. This is because when someone toggles the enable auto-funding switch
@@ -8367,13 +8413,17 @@ const AutoFundingForm = ({
8367
8413
  onChange: e => handleToggle(e.target.checked),
8368
8414
  value: isSwitchOn
8369
8415
  })]
8370
- }), jsx(Spacer, {
8371
- multiplier: 1
8372
- }), !!(autoFundingConfig === null || autoFundingConfig === void 0 ? void 0 : autoFundingConfig.isAutoPurchaseEnabled) && !showForm && jsxs(Spread, {
8416
+ }), !!(castedAutoFundingConfig === null || castedAutoFundingConfig === void 0 ? void 0 : castedAutoFundingConfig.isEnabled) && !showForm && jsxs(Spread, {
8373
8417
  children: [jsx(Typography, Object.assign({
8374
8418
  variant: "body1"
8375
8419
  }, {
8376
- children: t("manage-funding:autoFunding.readSettings", Object.assign({}, autoFundingConfig))
8420
+ children: t("manage-funding:autoFunding.readSettings", {
8421
+ // TODO: look into plural feature of translate and use count (couldn't get it to work at the time of this work)
8422
+ autoPurchaseAmount: transform$3.in(castedAutoFundingConfig === null || castedAutoFundingConfig === void 0 ? void 0 : castedAutoFundingConfig.purchaseAmount).amount,
8423
+ autoPurchaseCutoff: castedAutoFundingConfig === null || castedAutoFundingConfig === void 0 ? void 0 : castedAutoFundingConfig.maximumPurchasesPerDay,
8424
+ autoPurchaseThreshold: transform$3.in(castedAutoFundingConfig === null || castedAutoFundingConfig === void 0 ? void 0 : castedAutoFundingConfig.lowBalancePurchaseThreshold).amount,
8425
+ pluralTimes: (castedAutoFundingConfig === null || castedAutoFundingConfig === void 0 ? void 0 : castedAutoFundingConfig.maximumPurchasesPerDay) === 1 ? "" : "s"
8426
+ })
8377
8427
  })), jsx(LinkAction, {
8378
8428
  css: styles$J.edit,
8379
8429
  onClick: () => handleToggle(true),
@@ -8399,7 +8449,7 @@ const AutoFundingForm = ({
8399
8449
  control: form.control,
8400
8450
  "data-testid": "auto-funding-threshold-input",
8401
8451
  defaultValue: {
8402
- amount: autoFundingConfig === null || autoFundingConfig === void 0 ? void 0 : autoFundingConfig.autoPurchaseThreshold,
8452
+ amount: 10,
8403
8453
  currency
8404
8454
  },
8405
8455
  disabled: !watchIsEnabled,
@@ -8416,7 +8466,7 @@ const AutoFundingForm = ({
8416
8466
  control: form.control,
8417
8467
  "data-testid": "auto-funding-purchase-amount-input",
8418
8468
  defaultValue: {
8419
- amount: autoFundingConfig === null || autoFundingConfig === void 0 ? void 0 : autoFundingConfig.autoPurchaseAmount,
8469
+ amount: 10,
8420
8470
  currency
8421
8471
  },
8422
8472
  disabled: !watchIsEnabled,
@@ -8444,7 +8494,7 @@ const AutoFundingForm = ({
8444
8494
  justify: "end"
8445
8495
  }, {
8446
8496
  children: [jsx(Button, Object.assign({
8447
- onClick: () => handleToggle(false),
8497
+ onClick: handleCancel,
8448
8498
  variant: ButtonVariant.TEXT
8449
8499
  }, {
8450
8500
  children: t("actions.cancel")
@@ -8604,10 +8654,30 @@ const sizes = {
8604
8654
  /* eslint-enable sort-keys-fix/sort-keys-fix */
8605
8655
  // TODO - Can we do this programmatically?
8606
8656
  const logoDataByCarrierCode = {
8657
+ aramex_au_walleted: {
8658
+ logo: "https://logos.shipstation.com/ipaas/carriers/aramex_au_walleted/logo.svg",
8659
+ name: "Aramex Australia"
8660
+ },
8661
+ canada_post_walleted: {
8662
+ logo: "https://logos.shipstation.com/ipaas/carriers/canada_post_walleted/logo.svg",
8663
+ name: "Canada Post"
8664
+ },
8665
+ canpar_walleted: {
8666
+ logo: "https://logos.shipstation.com/ipaas/carriers/canpar_walleted/logo.svg",
8667
+ name: "Canpar"
8668
+ },
8669
+ couriersplease_walleted: {
8670
+ logo: "https://logos.shipstation.com/ipaas/carriers/couriersplease_walleted/logo.svg",
8671
+ name: "CouriersPlease"
8672
+ },
8607
8673
  dhl_express_worldwide: {
8608
8674
  logo: "https://logos.shipstation.com/ipaas/carriers/dhl_express/logo.svg",
8609
8675
  name: "DHL Express"
8610
8676
  },
8677
+ dpd_germany_walleted: {
8678
+ logo: "https://logos.shipstation.com/ipaas/carriers/dpd_germany_walleted/logo.svg",
8679
+ name: "DPD Germany"
8680
+ },
8611
8681
  dpdwallet: {
8612
8682
  logo: "https://logos.shipstation.com/ipaas/carriers/dpdwallet/logo.svg",
8613
8683
  name: "DPD"
@@ -8620,6 +8690,14 @@ const logoDataByCarrierCode = {
8620
8690
  logo: "https://logos.shipstation.com/ipaas/carriers/hermes/logo.svg",
8621
8691
  name: "Evri"
8622
8692
  },
8693
+ purolator_walleted: {
8694
+ logo: "https://logos.shipstation.com/ipaas/carriers/purolator_walleted/logo.svg",
8695
+ name: "Purolator"
8696
+ },
8697
+ sendle_walleted: {
8698
+ logo: "https://logos.shipstation.com/ipaas/carriers/sendle_walleted/logo.svg",
8699
+ name: "Sendle"
8700
+ },
8623
8701
  stamps_com: {
8624
8702
  // TODO - a White Label reference in the path? stamps_com_wl?
8625
8703
  logo: "https://logos.shipstation.com/ipaas/carriers/stamps_com_wl/logo.svg",
@@ -8785,11 +8863,11 @@ const styles$F = createStyles({
8785
8863
  content: theme => ({
8786
8864
  padding: `${theme.spacing(3)}px ${theme.spacing(4)}px`
8787
8865
  }),
8788
- header: theme => ({
8789
- backgroundColor: theme.palette.gray.ultraLight,
8866
+ getHeaderStyles: nested => theme => ({
8867
+ backgroundColor: nested ? "transparent" : theme.palette.gray.ultraLight,
8790
8868
  display: "flex",
8791
8869
  height: theme.spacing(5.5),
8792
- padding: `0 ${theme.spacing(4)}px`
8870
+ padding: nested ? `0 ${theme.spacing(0)}px` : `0 ${theme.spacing(4)}px`
8793
8871
  }),
8794
8872
  icon: theme => ({
8795
8873
  color: theme.palette.secondary.main
@@ -8823,13 +8901,14 @@ const CollapsiblePanel = ({
8823
8901
  errors,
8824
8902
  initialExpanded,
8825
8903
  isSaving,
8904
+ nested,
8826
8905
  children,
8827
8906
  title
8828
8907
  }) => {
8829
8908
  const [isExpanded, toggleIsExpanded] = useToggle(initialExpanded);
8830
8909
  return jsxs(Fragment, {
8831
8910
  children: [jsx("div", Object.assign({
8832
- css: styles$F.header
8911
+ css: styles$F.getHeaderStyles(nested)
8833
8912
  }, {
8834
8913
  children: jsxs(Link, Object.assign({
8835
8914
  css: styles$F.link,
@@ -8840,7 +8919,7 @@ const CollapsiblePanel = ({
8840
8919
  role: "button"
8841
8920
  }, {
8842
8921
  children: [jsx(Typography, Object.assign({
8843
- variant: "heading4"
8922
+ variant: nested ? "heading5" : "heading4"
8844
8923
  }, {
8845
8924
  children: title
8846
8925
  })), jsxs("div", Object.assign({
@@ -10964,6 +11043,8 @@ const extendZod = () => {
10964
11043
  };
10965
11044
 
10966
11045
  extendZod();
11046
+ const postalCodeRegex = /(^\d{5}$)|(^\d{5}-\d{4}$)/;
11047
+ const addressNameRegex = /^[a-zA-Z']{2,} [a-zA-Z']{2,}/;
10967
11048
  const addressLine1Schema = z.string().trim().min(1);
10968
11049
  const addressLine2Schema = z.string().trim().nullishDefault(undefined);
10969
11050
  const companyNameSchema = z.string().trim().min(2).max(40).nullishDefault(undefined).or(z.literal("")).transform(companyName => companyName || undefined);
@@ -10981,9 +11062,8 @@ const addressSchema = z.object({
10981
11062
  });
10982
11063
 
10983
11064
  extendZod();
10984
- const postalCodeRegex$2 = /(^\d{5}$)|(^\d{5}-\d{4}$)/;
10985
11065
  const refineName = n => n.match(/^[a-zA-Z']/);
10986
- const refineNameStrict = n => n.match(/^[a-zA-Z']{2,} [a-zA-Z']{2,}/);
11066
+ const refineNameStrict = n => n.match(addressNameRegex);
10987
11067
  const shipToAddressSchema = addressSchema.refine(schema => {
10988
11068
  return refineName(schema.name);
10989
11069
  }, {
@@ -11002,7 +11082,7 @@ const shipToAddressSchema = addressSchema.refine(schema => {
11002
11082
  path: ["stateProvince"]
11003
11083
  }).refine(schema => {
11004
11084
  if (schema.countryCode === "US") {
11005
- return postalCodeRegex$2.test(schema.postalCode);
11085
+ return postalCodeRegex.test(schema.postalCode);
11006
11086
  }
11007
11087
  return true;
11008
11088
  }, {
@@ -11135,247 +11215,6 @@ const AddressForm = ({
11135
11215
  }));
11136
11216
  };
11137
11217
 
11138
- var isCallable$6 = isCallable$q;
11139
- var isObject$3 = isObject$c;
11140
- var setPrototypeOf$1 = objectSetPrototypeOf;
11141
-
11142
- // makes subclassing work correct for wrapped built-ins
11143
- var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
11144
- var NewTarget, NewTargetPrototype;
11145
- if (
11146
- // it can work only with native `setPrototypeOf`
11147
- setPrototypeOf$1 &&
11148
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
11149
- isCallable$6(NewTarget = dummy.constructor) &&
11150
- NewTarget !== Wrapper &&
11151
- isObject$3(NewTargetPrototype = NewTarget.prototype) &&
11152
- NewTargetPrototype !== Wrapper.prototype
11153
- ) setPrototypeOf$1($this, NewTargetPrototype);
11154
- return $this;
11155
- };
11156
-
11157
- var defineProperty$2 = objectDefineProperty.f;
11158
-
11159
- var proxyAccessor$1 = function (Target, Source, key) {
11160
- key in Target || defineProperty$2(Target, key, {
11161
- configurable: true,
11162
- get: function () { return Source[key]; },
11163
- set: function (it) { Source[key] = it; }
11164
- });
11165
- };
11166
-
11167
- var getBuiltIn$2 = getBuiltIn$8;
11168
- var definePropertyModule = objectDefineProperty;
11169
- var wellKnownSymbol$6 = wellKnownSymbol$n;
11170
- var DESCRIPTORS$4 = descriptors;
11171
-
11172
- var SPECIES$2 = wellKnownSymbol$6('species');
11173
-
11174
- var setSpecies$2 = function (CONSTRUCTOR_NAME) {
11175
- var Constructor = getBuiltIn$2(CONSTRUCTOR_NAME);
11176
- var defineProperty = definePropertyModule.f;
11177
-
11178
- if (DESCRIPTORS$4 && Constructor && !Constructor[SPECIES$2]) {
11179
- defineProperty(Constructor, SPECIES$2, {
11180
- configurable: true,
11181
- get: function () { return this; }
11182
- });
11183
- }
11184
- };
11185
-
11186
- var DESCRIPTORS$3 = descriptors;
11187
- var global$b = global$s;
11188
- var uncurryThis$5 = functionUncurryThis;
11189
- var isForced$1 = isForced_1;
11190
- var inheritIfRequired = inheritIfRequired$1;
11191
- var createNonEnumerableProperty = createNonEnumerableProperty$6;
11192
- var getOwnPropertyNames = objectGetOwnPropertyNames.f;
11193
- var isPrototypeOf$2 = objectIsPrototypeOf;
11194
- var isRegExp = isRegexp;
11195
- var toString$2 = toString$e;
11196
- var getRegExpFlags = regexpGetFlags;
11197
- var stickyHelpers = regexpStickyHelpers;
11198
- var proxyAccessor = proxyAccessor$1;
11199
- var defineBuiltIn$5 = defineBuiltIn$b;
11200
- var fails$2 = fails$s;
11201
- var hasOwn$4 = hasOwnProperty_1;
11202
- var enforceInternalState = internalState.enforce;
11203
- var setSpecies$1 = setSpecies$2;
11204
- var wellKnownSymbol$5 = wellKnownSymbol$n;
11205
- var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
11206
- var UNSUPPORTED_NCG = regexpUnsupportedNcg;
11207
-
11208
- var MATCH = wellKnownSymbol$5('match');
11209
- var NativeRegExp = global$b.RegExp;
11210
- var RegExpPrototype = NativeRegExp.prototype;
11211
- var SyntaxError = global$b.SyntaxError;
11212
- var exec$2 = uncurryThis$5(RegExpPrototype.exec);
11213
- var charAt$3 = uncurryThis$5(''.charAt);
11214
- var replace$4 = uncurryThis$5(''.replace);
11215
- var stringIndexOf = uncurryThis$5(''.indexOf);
11216
- var stringSlice$3 = uncurryThis$5(''.slice);
11217
- // TODO: Use only proper RegExpIdentifierName
11218
- var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
11219
- var re1 = /a/g;
11220
- var re2 = /a/g;
11221
-
11222
- // "new" should create a new object, old webkit bug
11223
- var CORRECT_NEW = new NativeRegExp(re1) !== re1;
11224
-
11225
- var MISSED_STICKY = stickyHelpers.MISSED_STICKY;
11226
- var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
11227
-
11228
- var BASE_FORCED = DESCRIPTORS$3 &&
11229
- (!CORRECT_NEW || MISSED_STICKY || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG || fails$2(function () {
11230
- re2[MATCH] = false;
11231
- // RegExp constructor can alter flags and IsRegExp works correct with @@match
11232
- return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
11233
- }));
11234
-
11235
- var handleDotAll = function (string) {
11236
- var length = string.length;
11237
- var index = 0;
11238
- var result = '';
11239
- var brackets = false;
11240
- var chr;
11241
- for (; index <= length; index++) {
11242
- chr = charAt$3(string, index);
11243
- if (chr === '\\') {
11244
- result += chr + charAt$3(string, ++index);
11245
- continue;
11246
- }
11247
- if (!brackets && chr === '.') {
11248
- result += '[\\s\\S]';
11249
- } else {
11250
- if (chr === '[') {
11251
- brackets = true;
11252
- } else if (chr === ']') {
11253
- brackets = false;
11254
- } result += chr;
11255
- }
11256
- } return result;
11257
- };
11258
-
11259
- var handleNCG = function (string) {
11260
- var length = string.length;
11261
- var index = 0;
11262
- var result = '';
11263
- var named = [];
11264
- var names = {};
11265
- var brackets = false;
11266
- var ncg = false;
11267
- var groupid = 0;
11268
- var groupname = '';
11269
- var chr;
11270
- for (; index <= length; index++) {
11271
- chr = charAt$3(string, index);
11272
- if (chr === '\\') {
11273
- chr = chr + charAt$3(string, ++index);
11274
- } else if (chr === ']') {
11275
- brackets = false;
11276
- } else if (!brackets) switch (true) {
11277
- case chr === '[':
11278
- brackets = true;
11279
- break;
11280
- case chr === '(':
11281
- if (exec$2(IS_NCG, stringSlice$3(string, index + 1))) {
11282
- index += 2;
11283
- ncg = true;
11284
- }
11285
- result += chr;
11286
- groupid++;
11287
- continue;
11288
- case chr === '>' && ncg:
11289
- if (groupname === '' || hasOwn$4(names, groupname)) {
11290
- throw new SyntaxError('Invalid capture group name');
11291
- }
11292
- names[groupname] = true;
11293
- named[named.length] = [groupname, groupid];
11294
- ncg = false;
11295
- groupname = '';
11296
- continue;
11297
- }
11298
- if (ncg) groupname += chr;
11299
- else result += chr;
11300
- } return [result, named];
11301
- };
11302
-
11303
- // `RegExp` constructor
11304
- // https://tc39.es/ecma262/#sec-regexp-constructor
11305
- if (isForced$1('RegExp', BASE_FORCED)) {
11306
- var RegExpWrapper = function RegExp(pattern, flags) {
11307
- var thisIsRegExp = isPrototypeOf$2(RegExpPrototype, this);
11308
- var patternIsRegExp = isRegExp(pattern);
11309
- var flagsAreUndefined = flags === undefined;
11310
- var groups = [];
11311
- var rawPattern = pattern;
11312
- var rawFlags, dotAll, sticky, handled, result, state;
11313
-
11314
- if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) {
11315
- return pattern;
11316
- }
11317
-
11318
- if (patternIsRegExp || isPrototypeOf$2(RegExpPrototype, pattern)) {
11319
- pattern = pattern.source;
11320
- if (flagsAreUndefined) flags = getRegExpFlags(rawPattern);
11321
- }
11322
-
11323
- pattern = pattern === undefined ? '' : toString$2(pattern);
11324
- flags = flags === undefined ? '' : toString$2(flags);
11325
- rawPattern = pattern;
11326
-
11327
- if (UNSUPPORTED_DOT_ALL && 'dotAll' in re1) {
11328
- dotAll = !!flags && stringIndexOf(flags, 's') > -1;
11329
- if (dotAll) flags = replace$4(flags, /s/g, '');
11330
- }
11331
-
11332
- rawFlags = flags;
11333
-
11334
- if (MISSED_STICKY && 'sticky' in re1) {
11335
- sticky = !!flags && stringIndexOf(flags, 'y') > -1;
11336
- if (sticky && UNSUPPORTED_Y) flags = replace$4(flags, /y/g, '');
11337
- }
11338
-
11339
- if (UNSUPPORTED_NCG) {
11340
- handled = handleNCG(pattern);
11341
- pattern = handled[0];
11342
- groups = handled[1];
11343
- }
11344
-
11345
- result = inheritIfRequired(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype, RegExpWrapper);
11346
-
11347
- if (dotAll || sticky || groups.length) {
11348
- state = enforceInternalState(result);
11349
- if (dotAll) {
11350
- state.dotAll = true;
11351
- state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags);
11352
- }
11353
- if (sticky) state.sticky = true;
11354
- if (groups.length) state.groups = groups;
11355
- }
11356
-
11357
- if (pattern !== rawPattern) try {
11358
- // fails in old engines, but we have no alternatives for unsupported regex syntax
11359
- createNonEnumerableProperty(result, 'source', rawPattern === '' ? '(?:)' : rawPattern);
11360
- } catch (error) { /* empty */ }
11361
-
11362
- return result;
11363
- };
11364
-
11365
- for (var keys = getOwnPropertyNames(NativeRegExp), index = 0; keys.length > index;) {
11366
- proxyAccessor(RegExpWrapper, NativeRegExp, keys[index++]);
11367
- }
11368
-
11369
- RegExpPrototype.constructor = RegExpWrapper;
11370
- RegExpWrapper.prototype = RegExpPrototype;
11371
- defineBuiltIn$5(global$b, 'RegExp', RegExpWrapper, { constructor: true });
11372
- }
11373
-
11374
- // https://tc39.es/ecma262/#sec-get-regexp-@@species
11375
- setSpecies$1('RegExp');
11376
-
11377
- const postalCodeRegex$1 = /(^\d{5}$)|(^\d{5}-\d{4}$)/;
11378
- const addressNameRegex = new RegExp(/^[a-zA-Z']{1,} [a-zA-Z']{1,}/);
11379
11218
  const getWarehouseSchema = useStrict => {
11380
11219
  const warehouseAddressSchema = addressSchema.extend({
11381
11220
  addressResidentialIndicator: z.preprocess(v => v === "yes" ? true : false, z.boolean().default(false).transform(value => value ? "yes" : "no")),
@@ -11395,7 +11234,7 @@ const getWarehouseSchema = useStrict => {
11395
11234
  path: ["stateProvince"]
11396
11235
  }).refine(schema => {
11397
11236
  if (schema.countryCode === "US") {
11398
- return postalCodeRegex$1.test(schema.postalCode);
11237
+ return postalCodeRegex.test(schema.postalCode);
11399
11238
  }
11400
11239
  return true;
11401
11240
  }, {
@@ -11620,7 +11459,6 @@ const BillingFields = ({
11620
11459
  };
11621
11460
 
11622
11461
  const expirationYears = getExpirationYears(15);
11623
- const postalCodeRegex = /(^\d{5}$)|(^\d{5}-\d{4}$)/;
11624
11462
  const creditCardTypes = ["visa", "mastercard", "american-express", "discover"];
11625
11463
  const expirationMonths = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"];
11626
11464
  const walletEmailSchemas = {
@@ -11634,6 +11472,9 @@ const getBillingAddressSchema = emailRequirement => {
11634
11472
  companyName: z.string().trim().min(1),
11635
11473
  email: walletEmailSchemas[emailRequirement],
11636
11474
  phone: z.string().trim().min(1)
11475
+ }).refine(schema => schema.name.match(addressNameRegex), {
11476
+ message: "schemaErrors.invalidAddressOnboarding",
11477
+ path: ["name"]
11637
11478
  }).refine(schema => !schema.phone || isValidPhoneNumber(schema.phone, schema.countryCode), {
11638
11479
  message: "schemaErrors.notAValidPhoneNumber",
11639
11480
  path: ["phone"]
@@ -12022,20 +11863,20 @@ const EditBillingForm = ({
12022
11863
  };
12023
11864
 
12024
11865
  var $$8 = _export;
12025
- var DESCRIPTORS$2 = descriptors;
12026
- var global$a = global$s;
11866
+ var DESCRIPTORS$3 = descriptors;
11867
+ var global$a = global$r;
12027
11868
  var uncurryThis$4 = functionUncurryThis;
12028
11869
  var hasOwn$3 = hasOwnProperty_1;
12029
- var isCallable$5 = isCallable$q;
11870
+ var isCallable$5 = isCallable$p;
12030
11871
  var isPrototypeOf$1 = objectIsPrototypeOf;
12031
- var toString$1 = toString$e;
11872
+ var toString$1 = toString$d;
12032
11873
  var defineProperty$1 = objectDefineProperty.f;
12033
11874
  var copyConstructorProperties = copyConstructorProperties$2;
12034
11875
 
12035
11876
  var NativeSymbol = global$a.Symbol;
12036
11877
  var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
12037
11878
 
12038
- if (DESCRIPTORS$2 && isCallable$5(NativeSymbol) && (!('description' in SymbolPrototype) ||
11879
+ if (DESCRIPTORS$3 && isCallable$5(NativeSymbol) && (!('description' in SymbolPrototype) ||
12039
11880
  // Safari 12 bug
12040
11881
  NativeSymbol().description !== undefined
12041
11882
  )) {
@@ -12467,29 +12308,101 @@ const HistoryCard = ({
12467
12308
  );
12468
12309
  };
12469
12310
 
12470
- var _carrierMetadata = [
12471
- {
12472
- carrierCode: "dhl_express_walleted",
12473
- logo: "https://logos.shipstation.com/ipaas/carriers/dhl_express/icon.svg",
12474
- name: "DHL Express",
12475
- optionalFields: [
12476
- "fundingSource"
12477
- ],
12478
- requiredFields: [
12479
- ],
12480
- shortname: "DHL",
12481
- terms: {
12482
- title: "DHL Express Agreement",
12483
- content: [
12484
- ],
12485
- links: [
12486
- {
12487
- description: "DHL Express Terms and Conditions",
12488
- name: "DHL Express Terms and Conditions",
12489
- termType: "stamps_dhl_express_terms",
12490
- url: "https://mydhl.express.dhl/us/en/legal/terms-and-conditions.html",
12491
- version: "1.0"
12492
- }
12311
+ /**
12312
+ * @namespace ManageFunding
12313
+ *
12314
+ * # Manage Funding Component
12315
+ *
12316
+ * - The `<ManageFunding />` component is used to manage funding rules and add funds to a carrier
12317
+ * account, and is composed in the `<AccountSettings />` component.
12318
+ *
12319
+ * @param ManageFundingProps The base props that will be passed into the `<ManageFunding />` component.
12320
+ *
12321
+ * @returns Element A React element that renders the `<ManageFunding />` component allowing users
12322
+ * manage funding rules and add funds to their carrier accounts.
12323
+ *
12324
+ * @see {@link ManageFundingProps | The props that are passed into the `<ManageFunding />` component}
12325
+ */
12326
+ const ManageFunding = () => {
12327
+ var _a;
12328
+ const {
12329
+ t
12330
+ } = useTranslation();
12331
+ const queryClient = useQueryClient();
12332
+ const {
12333
+ data: carriers
12334
+ } = useListCarriers();
12335
+ const {
12336
+ data: fundingSource
12337
+ } = useListFundingSources();
12338
+ const carrierId = carriers ? carriers[0].carrierId : "";
12339
+ const currency = getCurrencyFromString((_a = fundingSource === null || fundingSource === void 0 ? void 0 : fundingSource[0]) === null || _a === void 0 ? void 0 : _a.currencyCode);
12340
+ const {
12341
+ isInitialLoading: isLoadingCarrier
12342
+ } = useGetCarrierById(carrierId);
12343
+ const [isAddFundsFormOpen, setIsAddFundsFormOpen] = useState(false);
12344
+ if (isLoadingCarrier) return jsx(Loader, {
12345
+ message: t("loading.carrier")
12346
+ });
12347
+ return jsxs("section", {
12348
+ children: [jsxs(Spread, {
12349
+ children: [jsx(CarrierBalance, {
12350
+ carrierId: carrierId,
12351
+ currency: currency
12352
+ }), jsx(LinkAction, {
12353
+ icon: "add",
12354
+ isDisabled: isAddFundsFormOpen,
12355
+ onClick: () => setIsAddFundsFormOpen(true),
12356
+ title: t("manage-funding:actions.addFunds")
12357
+ })]
12358
+ }), isAddFundsFormOpen && jsxs(Fragment, {
12359
+ children: [jsx(Spacer, {
12360
+ multiplier: 2
12361
+ }), jsx(AddFundsForm, {
12362
+ carrierId: carrierId,
12363
+ currency: currency,
12364
+ onCancel: () => setIsAddFundsFormOpen(false),
12365
+ onSuccess: () => {
12366
+ void queryClient.invalidateQueries(["useGetCarrierById", carrierId], {
12367
+ exact: true
12368
+ });
12369
+ void queryClient.invalidateQueries(["useListCarriers"], {
12370
+ exact: true
12371
+ });
12372
+ }
12373
+ })]
12374
+ }), jsx(Spacer, {
12375
+ multiplier: 2
12376
+ }), jsx(AutoFundingForm, {
12377
+ carrierId: carrierId,
12378
+ currency: currency
12379
+ })]
12380
+ });
12381
+ };
12382
+
12383
+ var US = [
12384
+ {
12385
+ carrierCode: "dhl_express_walleted",
12386
+ logo: "https://logos.shipstation.com/ipaas/carriers/dhl_express/icon.svg",
12387
+ name: "DHL Express",
12388
+ optionalFields: [
12389
+ "fundingSource"
12390
+ ],
12391
+ requiredFields: [
12392
+ ],
12393
+ shortname: "DHL",
12394
+ terms: {
12395
+ title: "DHL Express Agreement",
12396
+ content: [
12397
+ ],
12398
+ links: [
12399
+ {
12400
+ description: "DHL Express Terms and Conditions",
12401
+ name: "DHL Express Terms and Conditions",
12402
+ termType: "stamps_dhl_express_terms",
12403
+ url: "https://mydhl.express.dhl/us/en/legal/terms-and-conditions.html",
12404
+ version: "1.0"
12405
+ }
12493
12406
  ]
12494
12407
  }
12495
12408
  },
@@ -12579,7 +12492,92 @@ var _carrierMetadata = [
12579
12492
  }
12580
12493
  }
12581
12494
  ];
12495
+ var GB = [
12496
+ {
12497
+ carrierCode: "hermes",
12498
+ logo: "https://logos.shipstation.com/ipaas/carriers/hermes/icon.svg",
12499
+ name: "Evri",
12500
+ shortname: "Evri"
12501
+ },
12502
+ {
12503
+ carrierCode: "yodel_walleted",
12504
+ logo: "https://logos.shipstation.com/ipaas/carriers/yodel_walleted/icon.svg",
12505
+ name: "Yodel",
12506
+ shortname: "Yodel"
12507
+ },
12508
+ {
12509
+ carrierCode: "dpdwallet",
12510
+ logo: "https://logos.shipstation.com/ipaas/carriers/dpdwallet/icon.svg",
12511
+ name: "DPD",
12512
+ shortname: "DPD"
12513
+ }
12514
+ ];
12515
+ var CA = [
12516
+ {
12517
+ carrierCode: "canada_post_walleted",
12518
+ logo: "https://logos.shipstation.com/ipaas/carriers/canada_post_walleted/logo.svg",
12519
+ name: "Canada Post",
12520
+ shortname: "Canada Post"
12521
+ },
12522
+ {
12523
+ carrierCode: "canpar_walleted",
12524
+ logo: "https://logos.shipstation.com/ipaas/carriers/canpar_walleted/logo.svg",
12525
+ name: "Canpar",
12526
+ shortname: "Canpar"
12527
+ },
12528
+ {
12529
+ carrierCode: "globalpost",
12530
+ logo: "https://logos.shipstation.com/ipaas/carriers/globalpost/logo.svg",
12531
+ name: "GlobalPost",
12532
+ shortname: "GlobalPost"
12533
+ },
12534
+ {
12535
+ carrierCode: "purolator_walleted",
12536
+ logo: "https://logos.shipstation.com/ipaas/carriers/purolator_walleted/logo.svg",
12537
+ name: "Purolator",
12538
+ shortname: "Purolator"
12539
+ }
12540
+ ];
12541
+ var DE = [
12542
+ {
12543
+ carrierCode: "dpd_germany_walleted",
12544
+ logo: "https://logos.shipstation.com/ipaas/carriers/dpdwallet/logo.svg",
12545
+ name: "DPD Germany",
12546
+ shortname: "DPD Germany"
12547
+ }
12548
+ ];
12549
+ var AU = [
12550
+ {
12551
+ carrierCode: "aramex_au_walleted",
12552
+ logo: "https://logos.shipstation.com/ipaas/carriers/aramex_au_walleted/logo.svg",
12553
+ name: "Aramex Australia",
12554
+ shortname: "Aramex Australia"
12555
+ },
12556
+ {
12557
+ carrierCode: "couriersplease_walleted",
12558
+ logo: "https://logos.shipstation.com/ipaas/carriers/couriersplease_walleted/logo.svg",
12559
+ name: "CouriersPlease",
12560
+ shortname: "CouriersPlease"
12561
+ },
12562
+ {
12563
+ carrierCode: "sendle_walleted",
12564
+ logo: "https://logos.shipstation.com/ipaas/carriers/sendle_walleted/logo.svg",
12565
+ name: "Sendle",
12566
+ shortname: "Sendle"
12567
+ }
12568
+ ];
12569
+ var _carrierMetadata = {
12570
+ US: US,
12571
+ GB: GB,
12572
+ CA: CA,
12573
+ DE: DE,
12574
+ AU: AU
12575
+ };
12582
12576
 
12577
+ // TODO: fix locale return value from alchemy, it does not return undefined - provide a default until then
12578
+ const getCountryFromLocale = (locale = "en-US") => {
12579
+ return locale.split("-")[1];
12580
+ };
12583
12581
  /**
12584
12582
  * @internal
12585
12583
  *
@@ -12587,12 +12585,19 @@ var _carrierMetadata = [
12587
12585
  *
12588
12586
  * @category Hooks
12589
12587
  */
12590
- const useCarrierMetadata = carrierCodes => {
12591
- const carrierMetadatas = _carrierMetadata;
12592
- return carrierCodes ? carrierCodes.flatMap(code => {
12588
+ const useCarrierMetadata = ({
12589
+ carrierCodes,
12590
+ countryCode
12591
+ }) => {
12592
+ const {
12593
+ locale: defaultLocale
12594
+ } = useAlchemy();
12595
+ const carrierMetadataMapping = _carrierMetadata;
12596
+ const regionCarriers = carrierMetadataMapping[countryCode !== null && countryCode !== void 0 ? countryCode : getCountryFromLocale(defaultLocale)];
12597
+ return carrierCodes && !!carrierCodes.length ? carrierCodes.flatMap(code => {
12593
12598
  var _a;
12594
- return (_a = carrierMetadatas.find(carrier => carrier.carrierCode === code)) !== null && _a !== void 0 ? _a : [];
12595
- }) : carrierMetadatas;
12599
+ return (_a = regionCarriers.find(carrier => carrier.carrierCode === code)) !== null && _a !== void 0 ? _a : [];
12600
+ }) : regionCarriers;
12596
12601
  };
12597
12602
 
12598
12603
  const useListConnectedCarriers = () => {
@@ -12602,7 +12607,13 @@ const useListConnectedCarriers = () => {
12602
12607
  isInitialLoading,
12603
12608
  refetch
12604
12609
  } = useListCarriers();
12605
- const carrierMetadatas = useCarrierMetadata();
12610
+ const {
12611
+ data: fundingSourceMetadata,
12612
+ isLoading: isFundingSourceMetadataLoading
12613
+ } = useGetFundingSourceMetadata();
12614
+ const carrierMetadatas = useCarrierMetadata({
12615
+ countryCode: fundingSourceMetadata === null || fundingSourceMetadata === void 0 ? void 0 : fundingSourceMetadata.defaultRegionProfile.countryCode
12616
+ });
12606
12617
  const normalizedCarrierCodes = new Set(carriers === null || carriers === void 0 ? void 0 : carriers.map(c => c.carrierCode === "usps" ? "stamps_com" : c.carrierCode.includes("dhl") ? "dhl_express_walleted" : c.nickname.includes("free") ? "stamps_com" : c.carrierCode));
12607
12618
  return {
12608
12619
  data: carrierMetadatas.map(m => ({
@@ -12610,7 +12621,7 @@ const useListConnectedCarriers = () => {
12610
12621
  isConnected: normalizedCarrierCodes.has(m.carrierCode)
12611
12622
  })),
12612
12623
  error: error,
12613
- isLoading: isInitialLoading,
12624
+ isLoading: isInitialLoading || isFundingSourceMetadataLoading,
12614
12625
  refetch
12615
12626
  };
12616
12627
  };
@@ -12716,7 +12727,7 @@ const addCarrierSchema = z.object({
12716
12727
  path: ["stateProvince"]
12717
12728
  }).refine(schema => {
12718
12729
  if (schema.countryCode === "US") {
12719
- return postalCodeRegex$3.test(schema.postalCode);
12730
+ return postalCodeRegex$1.test(schema.postalCode);
12720
12731
  }
12721
12732
  return true;
12722
12733
  }, {
@@ -12862,10 +12873,10 @@ var _ref$1 = process.env.NODE_ENV === "production" ? {
12862
12873
  } : {
12863
12874
  name: "111ty02-css",
12864
12875
  styles: "align-items:center;display:flex;label:css;",
12865
- map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpc3QtY2FycmllcnMtcm93LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFvQmtkIiwiZmlsZSI6Imxpc3QtY2FycmllcnMtcm93LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IF9fYXdhaXRlciB9IGZyb20gXCJ0c2xpYlwiO1xyXG5pbXBvcnQgeyBqc3ggYXMgX2pzeCwganN4cyBhcyBfanN4cyB9IGZyb20gXCJAZW1vdGlvbi9yZWFjdC9qc3gtcnVudGltZVwiO1xyXG5pbXBvcnQgeyBjc3MgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcclxuaW1wb3J0IHsgdXNlU3RhdGUgfSBmcm9tIFwicmVhY3RcIjtcclxuaW1wb3J0IHsgdXNlVHJhbnNsYXRpb24gfSBmcm9tIFwicmVhY3QtaTE4bmV4dFwiO1xyXG5pbXBvcnQgeyBUeXBvZ3JhcGh5IH0gZnJvbSBcIkBzaGlwZW5naW5lL2dpZ2VyXCI7XHJcbmltcG9ydCB7IExpbmtBY3Rpb24gfSBmcm9tIFwiLi4vLi4vLi4vY29tcG9uZW50cy9saW5rLWFjdGlvblwiO1xyXG5pbXBvcnQgeyBBZGRDYXJyaWVyRm9ybSwgfSBmcm9tIFwiLi4vLi4vLi4vY29tcG9uZW50cy90ZW1wbGF0ZXMvYWRkLWNhcnJpZXItZm9ybVwiO1xyXG5pbXBvcnQgeyBzdHlsZXMgfSBmcm9tIFwiLi9saXN0LWNhcnJpZXJzLXJvdy5zdHlsZXNcIjtcclxuZXhwb3J0IGNvbnN0IExpc3RDYXJyaWVyc1JvdyA9ICh7IGNvbm5lY3RlZENhcnJpZXI6IHsgY2FycmllciwgaXNDb25uZWN0ZWQgfSwgcmVnaXN0ZXJDYXJyaWVyLCByZWdpc3RlckNhcnJpZXJFcnJvcnMsIH0pID0+IHtcclxuICAgIGNvbnN0IHsgc2hvcnRuYW1lOiBuYW1lLCBsb2dvLCByZXF1aXJlZEZpZWxkcyB9ID0gY2FycmllcjtcclxuICAgIGNvbnN0IHsgdCB9ID0gdXNlVHJhbnNsYXRpb24oW1wibGlzdC1jYXJyaWVyc1wiXSk7XHJcbiAgICBjb25zdCBbc2hvd0Ryb3BEb3duLCBzZXRTaG93RHJvcERvd25dID0gdXNlU3RhdGUoZmFsc2UpO1xyXG4gICAgY29uc3QgW2lzU3VibWl0dGluZywgc2V0SXNTdWJtaXR0aW5nXSA9IHVzZVN0YXRlKGZhbHNlKTtcclxuICAgIGNvbnN0IGhhbmRsZVJlZ2lzdGVyID0gKHZhbHVlcykgPT4gX19hd2FpdGVyKHZvaWQgMCwgdm9pZCAwLCB2b2lkIDAsIGZ1bmN0aW9uKiAoKSB7XHJcbiAgICAgICAgc2V0SXNTdWJtaXR0aW5nKHRydWUpO1xyXG4gICAgICAgIHlpZWxkIHJlZ2lzdGVyQ2Fycmllcih2YWx1ZXMpO1xyXG4gICAgICAgIHNob3dEcm9wRG93biAmJiBzZXRTaG93RHJvcERvd24oZmFsc2UpO1xyXG4gICAgICAgIHNldElzU3VibWl0dGluZyhmYWxzZSk7XHJcbiAgICB9KTtcclxuICAgIHJldHVybiAoX2pzeHMoXCJkaXZcIiwgT2JqZWN0LmFzc2lnbih7IGNzczogc3R5bGVzLmNvbnRhaW5lciwgXCJkYXRhLXRlc3RpZFwiOiBcImNhcnJpZXItcm93XCIgfSwgeyBjaGlsZHJlbjogW19qc3hzKFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBjc3M6IHN0eWxlcy5yb3dDb250YWluZXIgfSwgeyBjaGlsZHJlbjogW19qc3hzKFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBjc3M6IHN0eWxlcy5sb2dvQ29udGFpbmVyIH0sIHsgY2hpbGRyZW46IFtfanN4KFwiZGl2XCIsIHsgY2hpbGRyZW46IF9qc3goXCJpbWdcIiwgeyBhbHQ6IGAke25hbWV9LWxvZ29gLCBoZWlnaHQ6IDQwLCBzcmM6IGxvZ28sIHdpZHRoOiA0MCB9KSB9KSwgX2pzeChUeXBvZ3JhcGh5LCBPYmplY3QuYXNzaWduKHsgdmFyaWFudDogXCJzdWJ0aXRsZTFcIiB9LCB7IGNoaWxkcmVuOiBuYW1lIH0pKV0gfSkpLCBfanN4KFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBjc3M6IGNzcyh7IGFsaWduSXRlbXM6IFwiY2VudGVyXCIsIGRpc3BsYXk6IFwiZmxleFwiIH0pIH0sIHsgY2hpbGRyZW46IF9qc3goTGlua0FjdGlvbiwgeyBjc3M6IHN0eWxlcy5nZXRDb25uZWN0QnV0dG9uKGlzQ29ubmVjdGVkKSwgaXNEaXNhYmxlZDogaXNDb25uZWN0ZWQgfHwgc2hvd0Ryb3BEb3duLCBpc0xvYWRpbmc6IGlzU3VibWl0dGluZywgb25DbGljazogKCkgPT4gX19hd2FpdGVyKHZvaWQgMCwgdm9pZCAwLCB2b2lkIDAsIGZ1bmN0aW9uKiAoKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHJlcXVpcmVkRmllbGRzID09PSBudWxsIHx8IHJlcXVpcmVkRmllbGRzID09PSB2b2lkIDAgPyB2b2lkIDAgOiByZXF1aXJlZEZpZWxkcy5pbmNsdWRlcyhcImFkZHJlc3NcIikpXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNldFNob3dEcm9wRG93bih0cnVlKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNlXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHlpZWxkIGhhbmRsZVJlZ2lzdGVyKCk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSwgdGl0bGU6IGlzQ29ubmVjdGVkXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPyB0KFwibGlzdC1jYXJyaWVyczphY3Rpb25zLnN0YXR1cy5jb25uZWN0ZWRcIilcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA6IHQoXCJsaXN0LWNhcnJpZXJzOmFjdGlvbnMuc3RhdHVzLm5vdENvbm5lY3RlZFwiKSB9KSB9KSldIH0pKSwgc2hvd0Ryb3BEb3duICYmIChfanN4KEFkZENhcnJpZXJGb3JtLCB7IGNhcnJpZXJUZXJtczogY2Fycmllci50ZXJtcyAmJiBjYXJyaWVyLnRlcm1zLCBvbkNhbmNlbDogKCkgPT4gc2V0U2hvd0Ryb3BEb3duKGZhbHNlKSwgb25TdWJtaXQ6ICh2YWx1ZXMpID0+IGhhbmRsZVJlZ2lzdGVyKHZhbHVlcyksIHJlZ2lzdGVyQ2FycmllckVycm9yczogcmVnaXN0ZXJDYXJyaWVyRXJyb3JzIH0pKV0gfSkpKTtcclxufTtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9bGlzdC1jYXJyaWVycy1yb3cuanMubWFwIl19 */",
12876
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNoaXBlbmdpbmUtY2FycmllcnMtcm93LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFvQmtkIiwiZmlsZSI6InNoaXBlbmdpbmUtY2FycmllcnMtcm93LnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IF9fYXdhaXRlciB9IGZyb20gXCJ0c2xpYlwiO1xyXG5pbXBvcnQgeyBqc3ggYXMgX2pzeCwganN4cyBhcyBfanN4cyB9IGZyb20gXCJAZW1vdGlvbi9yZWFjdC9qc3gtcnVudGltZVwiO1xyXG5pbXBvcnQgeyBjc3MgfSBmcm9tIFwiQGVtb3Rpb24vcmVhY3RcIjtcclxuaW1wb3J0IHsgdXNlU3RhdGUgfSBmcm9tIFwicmVhY3RcIjtcclxuaW1wb3J0IHsgdXNlVHJhbnNsYXRpb24gfSBmcm9tIFwicmVhY3QtaTE4bmV4dFwiO1xyXG5pbXBvcnQgeyBUeXBvZ3JhcGh5IH0gZnJvbSBcIkBzaGlwZW5naW5lL2dpZ2VyXCI7XHJcbmltcG9ydCB7IExpbmtBY3Rpb24gfSBmcm9tIFwiLi4vLi4vLi4vY29tcG9uZW50cy9saW5rLWFjdGlvblwiO1xyXG5pbXBvcnQgeyBBZGRDYXJyaWVyRm9ybSwgfSBmcm9tIFwiLi4vLi4vLi4vY29tcG9uZW50cy90ZW1wbGF0ZXMvYWRkLWNhcnJpZXItZm9ybVwiO1xyXG5pbXBvcnQgeyBzdHlsZXMgfSBmcm9tIFwiLi9zaGlwZW5naW5lLWNhcnJpZXJzLXJvdy5zdHlsZXNcIjtcclxuZXhwb3J0IGNvbnN0IFNoaXBFbmdpbmVDYXJyaWVyc1JvdyA9ICh7IGNvbm5lY3RlZENhcnJpZXI6IHsgY2FycmllciwgaXNDb25uZWN0ZWQgfSwgcmVnaXN0ZXJDYXJyaWVyLCByZWdpc3RlckNhcnJpZXJFcnJvcnMsIH0pID0+IHtcclxuICAgIGNvbnN0IHsgc2hvcnRuYW1lOiBuYW1lLCBsb2dvLCByZXF1aXJlZEZpZWxkcyB9ID0gY2FycmllcjtcclxuICAgIGNvbnN0IHsgdCB9ID0gdXNlVHJhbnNsYXRpb24oW1wic2hpcGVuZ2luZS1jYXJyaWVyc1wiXSk7XHJcbiAgICBjb25zdCBbc2hvd0Ryb3BEb3duLCBzZXRTaG93RHJvcERvd25dID0gdXNlU3RhdGUoZmFsc2UpO1xyXG4gICAgY29uc3QgW2lzU3VibWl0dGluZywgc2V0SXNTdWJtaXR0aW5nXSA9IHVzZVN0YXRlKGZhbHNlKTtcclxuICAgIGNvbnN0IGhhbmRsZVJlZ2lzdGVyID0gKHZhbHVlcykgPT4gX19hd2FpdGVyKHZvaWQgMCwgdm9pZCAwLCB2b2lkIDAsIGZ1bmN0aW9uKiAoKSB7XHJcbiAgICAgICAgc2V0SXNTdWJtaXR0aW5nKHRydWUpO1xyXG4gICAgICAgIHlpZWxkIHJlZ2lzdGVyQ2Fycmllcih2YWx1ZXMpO1xyXG4gICAgICAgIHNob3dEcm9wRG93biAmJiBzZXRTaG93RHJvcERvd24oZmFsc2UpO1xyXG4gICAgICAgIHNldElzU3VibWl0dGluZyhmYWxzZSk7XHJcbiAgICB9KTtcclxuICAgIHJldHVybiAoX2pzeHMoXCJkaXZcIiwgT2JqZWN0LmFzc2lnbih7IGNzczogc3R5bGVzLmNvbnRhaW5lciwgXCJkYXRhLXRlc3RpZFwiOiBcImNhcnJpZXItcm93XCIgfSwgeyBjaGlsZHJlbjogW19qc3hzKFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBjc3M6IHN0eWxlcy5yb3dDb250YWluZXIgfSwgeyBjaGlsZHJlbjogW19qc3hzKFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBjc3M6IHN0eWxlcy5sb2dvQ29udGFpbmVyIH0sIHsgY2hpbGRyZW46IFtfanN4KFwiZGl2XCIsIHsgY2hpbGRyZW46IF9qc3goXCJpbWdcIiwgeyBhbHQ6IGAke25hbWV9LWxvZ29gLCBoZWlnaHQ6IDQwLCBzcmM6IGxvZ28sIHdpZHRoOiA0MCB9KSB9KSwgX2pzeChUeXBvZ3JhcGh5LCBPYmplY3QuYXNzaWduKHsgdmFyaWFudDogXCJzdWJ0aXRsZTFcIiB9LCB7IGNoaWxkcmVuOiBuYW1lIH0pKV0gfSkpLCBfanN4KFwiZGl2XCIsIE9iamVjdC5hc3NpZ24oeyBjc3M6IGNzcyh7IGFsaWduSXRlbXM6IFwiY2VudGVyXCIsIGRpc3BsYXk6IFwiZmxleFwiIH0pIH0sIHsgY2hpbGRyZW46IF9qc3goTGlua0FjdGlvbiwgeyBjc3M6IHN0eWxlcy5nZXRDb25uZWN0QnV0dG9uKGlzQ29ubmVjdGVkKSwgaXNEaXNhYmxlZDogaXNDb25uZWN0ZWQgfHwgc2hvd0Ryb3BEb3duLCBpc0xvYWRpbmc6IGlzU3VibWl0dGluZywgb25DbGljazogKCkgPT4gX19hd2FpdGVyKHZvaWQgMCwgdm9pZCAwLCB2b2lkIDAsIGZ1bmN0aW9uKiAoKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHJlcXVpcmVkRmllbGRzID09PSBudWxsIHx8IHJlcXVpcmVkRmllbGRzID09PSB2b2lkIDAgPyB2b2lkIDAgOiByZXF1aXJlZEZpZWxkcy5pbmNsdWRlcyhcImFkZHJlc3NcIikpXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNldFNob3dEcm9wRG93bih0cnVlKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNlXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHlpZWxkIGhhbmRsZVJlZ2lzdGVyKCk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KSwgdGl0bGU6IGlzQ29ubmVjdGVkXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPyB0KFwic2hpcGVuZ2luZS1jYXJyaWVyczphY3Rpb25zLnN0YXR1cy5jb25uZWN0ZWRcIilcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA6IHQoXCJzaGlwZW5naW5lLWNhcnJpZXJzOmFjdGlvbnMuc3RhdHVzLm5vdENvbm5lY3RlZFwiKSB9KSB9KSldIH0pKSwgc2hvd0Ryb3BEb3duICYmIChfanN4KEFkZENhcnJpZXJGb3JtLCB7IGNhcnJpZXJUZXJtczogY2Fycmllci50ZXJtcyAmJiBjYXJyaWVyLnRlcm1zLCBvbkNhbmNlbDogKCkgPT4gc2V0U2hvd0Ryb3BEb3duKGZhbHNlKSwgb25TdWJtaXQ6ICh2YWx1ZXMpID0+IGhhbmRsZVJlZ2lzdGVyKHZhbHVlcyksIHJlZ2lzdGVyQ2FycmllckVycm9yczogcmVnaXN0ZXJDYXJyaWVyRXJyb3JzIH0pKV0gfSkpKTtcclxufTtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9c2hpcGVuZ2luZS1jYXJyaWVycy1yb3cuanMubWFwIl19 */",
12866
12877
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__$1
12867
12878
  };
12868
- const ListCarriersRow = ({
12879
+ const ShipEngineCarriersRow = ({
12869
12880
  connectedCarrier: {
12870
12881
  carrier,
12871
12882
  isConnected
@@ -12880,7 +12891,7 @@ const ListCarriersRow = ({
12880
12891
  } = carrier;
12881
12892
  const {
12882
12893
  t
12883
- } = useTranslation(["list-carriers"]);
12894
+ } = useTranslation(["shipengine-carriers"]);
12884
12895
  const [showDropDown, setShowDropDown] = useState(false);
12885
12896
  const [isSubmitting, setIsSubmitting] = useState(false);
12886
12897
  const handleRegister = values => __awaiter(void 0, void 0, void 0, function* () {
@@ -12921,7 +12932,7 @@ const ListCarriersRow = ({
12921
12932
  onClick: () => __awaiter(void 0, void 0, void 0, function* () {
12922
12933
  if (requiredFields === null || requiredFields === void 0 ? void 0 : requiredFields.includes("address")) setShowDropDown(true);else yield handleRegister();
12923
12934
  }),
12924
- title: isConnected ? t("list-carriers:actions.status.connected") : t("list-carriers:actions.status.notConnected")
12935
+ title: isConnected ? t("shipengine-carriers:actions.status.connected") : t("shipengine-carriers:actions.status.notConnected")
12925
12936
  })
12926
12937
  }))]
12927
12938
  })), showDropDown && jsx(AddCarrierForm, {
@@ -12944,12 +12955,13 @@ const styles$k = createStyles({
12944
12955
  })
12945
12956
  });
12946
12957
 
12947
- const ListCarriers = ({
12958
+ const ShipEngineCarriers = ({
12948
12959
  features: _features = {
12949
12960
  carriers: {
12950
12961
  enabledCarriers: ["dhl_express_walleted", "ups", "ups_walleted"]
12951
12962
  }
12952
- }
12963
+ },
12964
+ showFunds
12953
12965
  }) => {
12954
12966
  const {
12955
12967
  t
@@ -12960,6 +12972,9 @@ const ListCarriers = ({
12960
12972
  isLoading,
12961
12973
  refetch: refetchCarriers
12962
12974
  } = useListConnectedCarriers();
12975
+ const {
12976
+ data: connectedCarriers
12977
+ } = useListCarriers();
12963
12978
  const {
12964
12979
  error: registerCarrierErrors,
12965
12980
  mutateAsync: carrierConnectAction
@@ -12997,18 +13012,28 @@ const ListCarriers = ({
12997
13012
  }, {
12998
13013
  children: isLoading ? jsxs(Fragment, {
12999
13014
  children: [jsx(SkeletonCarrierRow, {}), jsx(SkeletonCarrierRow, {}), jsx(SkeletonCarrierRow, {})]
13000
- }) : enabledCarriers.map(carrier => jsx("li", {
13001
- children: jsx(ListCarriersRow, {
13002
- connectedCarrier: carrier,
13003
- registerCarrier: values => __awaiter(void 0, void 0, void 0, function* () {
13004
- yield handleRegistration(Object.assign(Object.assign({}, values), {
13005
- carrierCode: carrier.carrier.carrierCode,
13006
- nickname: carrier.carrier.carrierCode
13007
- }));
13008
- }),
13009
- registerCarrierErrors: registerCarrierErrors
13010
- })
13011
- }, carrier.carrier.carrierCode))
13015
+ }) : jsxs(Fragment, {
13016
+ children: [showFunds && !!(connectedCarriers === null || connectedCarriers === void 0 ? void 0 : connectedCarriers.length) && jsx("li", {
13017
+ children: jsx("div", Object.assign({
13018
+ css: {
13019
+ padding: "16px"
13020
+ }
13021
+ }, {
13022
+ children: jsx(ManageFunding, {})
13023
+ }))
13024
+ }), enabledCarriers.map(carrier => jsx("li", {
13025
+ children: jsx(ShipEngineCarriersRow, {
13026
+ connectedCarrier: carrier,
13027
+ registerCarrier: values => __awaiter(void 0, void 0, void 0, function* () {
13028
+ yield handleRegistration(Object.assign(Object.assign({}, values), {
13029
+ carrierCode: carrier.carrier.carrierCode,
13030
+ nickname: carrier.carrier.carrierCode
13031
+ }));
13032
+ }),
13033
+ registerCarrierErrors: registerCarrierErrors
13034
+ })
13035
+ }, carrier.carrier.carrierCode))]
13036
+ })
13012
13037
  }))]
13013
13038
  });
13014
13039
  };
@@ -13353,23 +13378,6 @@ var connectCarriers = {
13353
13378
  }
13354
13379
  };
13355
13380
 
13356
- var listCarriers$1 = {
13357
- "list-carriers": {
13358
- title: "List Carriers",
13359
- headers: {
13360
- accountCarriers: "ShipEngine Carrier Accounts",
13361
- carriers: "Carriers",
13362
- settings: "Account Settings"
13363
- },
13364
- actions: {
13365
- status: {
13366
- connected: "Connected",
13367
- notConnected: "Connect"
13368
- }
13369
- }
13370
- }
13371
- };
13372
-
13373
13381
  var listLabels = {
13374
13382
  "list-labels": {
13375
13383
  title: "List Labels",
@@ -13466,7 +13474,7 @@ var manageFunding = {
13466
13474
  lowBalancePurchaseThreshold: "When balance falls below",
13467
13475
  maximumPurchasesPerDay: "Maximum times per day",
13468
13476
  purchaseAmount: "Add the following amount",
13469
- readSettings: "When balance falls below ${{autoPurchaseThreshold}}, add ${{autoPurchaseAmount}} (maximum {{autoPurchaseCutoff}} times per day)."
13477
+ readSettings: "When balance falls below ${{autoPurchaseThreshold}}, add ${{autoPurchaseAmount}} (maximum {{autoPurchaseCutoff}} time{{pluralTimes}} per day)."
13470
13478
  },
13471
13479
  addFunds: {
13472
13480
  custom: "Custom...",
@@ -13557,14 +13565,18 @@ var onboarding$1 = {
13557
13565
  "aHR0cHM6Ly93d3cueW9kZWxkaXJlY3QuY28udWsvY29udGVudC9hYm91dC10ZXJtcw==": "Yodel Terms and Conditions",
13558
13566
  aHR0cHM6Ly93d3cuc2hpcHN0YXRpb24uY29tL3Rlcm1zLXNlcnZpY2UtdW5pdGVkLWtpbmdkb20v: "United Kingdom Terms of Service",
13559
13567
  "aHR0cHM6Ly93d3cuZHBkLmNvLnVrL3N0YW5kYXJkX3Rlcm1zX2FuZF9jb25kaXRpb25zLmpzcA==": "DPD Standard Terms and Conditions",
13560
- aHR0cHM6Ly93d3cuZ29nbG9iYWxwb3N0LmNvbS9jb25kaXRpb25z: "GlobalPost Terms and Conditions"
13568
+ aHR0cHM6Ly93d3cuZ29nbG9iYWxwb3N0LmNvbS9jb25kaXRpb25z: "GlobalPost Terms and Conditions",
13569
+ aHR0cHM6Ly93d3cucHVyb2xhdG9yLmNvbS9mci9tb2RhbGl0ZXMtZXQtY29uZGl0aW9ucy1kZS1zZXJ2aWNl: "Purolator Modalités et conditions de service",
13570
+ aHR0cHM6Ly93d3cucHVyb2xhdG9yLmNvbS9lbi90ZXJtcy1hbmQtY29uZGl0aW9ucy1zZXJ2aWNl: "Purolator Terms and Conditions of Service"
13561
13571
  },
13562
13572
  termsAndAgreementTitles: {
13563
13573
  "WW9kZWwgRGlyZWN0IC0gVGVybXMgYW5kIENvbmRpdGlvbnMgKOKAnFRlcm1z4oCdKQ==": "Yodel Terms and Conditions",
13564
13574
  "RXZyaSBTZW5kIFRlcm1zICYgQ29uZGl0aW9ucw==": "Evri Terms & Conditions",
13565
13575
  "VGVybXMgb2YgU2VydmljZSBVbml0ZWQgS2luZ2RvbQ==": "United Kingdom Terms of Service",
13566
13576
  RFBEIFN0YW5kYXJkIFRlcm1zIGFuZCBDb25kaXRpb25z: "DPD Terms and Conditions",
13567
- "R2xvYmFsUG9zdCBUZXJtcyBhbmQgQ29uZGl0aW9ucw==": "GlobalPost Terms and Conditions"
13577
+ "R2xvYmFsUG9zdCBUZXJtcyBhbmQgQ29uZGl0aW9ucw==": "GlobalPost Terms and Conditions",
13578
+ "UHVyb2xhdG9yIFRlcm1zIGFuZCBDb25kaXRpb25zIG9mIFNlcnZpY2U=": "Purolator Terms and Conditions of Service",
13579
+ UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: "Purolator Modalités et conditions de service"
13568
13580
  }
13569
13581
  };
13570
13582
  var onboarding$2 = {
@@ -13621,7 +13633,7 @@ var purchaseLabel$1 = {
13621
13633
  height: "Height"
13622
13634
  },
13623
13635
  dimensionsGroup: "Dimensions",
13624
- estimatedShipping: "Estimated Shipping",
13636
+ estimatedShipping: "Shipping Paid",
13625
13637
  insurance: "Insurance",
13626
13638
  insuranceProvider: "Insurance Provider",
13627
13639
  insuredValue: "Insured Value",
@@ -13659,6 +13671,7 @@ var purchaseLabel$1 = {
13659
13671
  needToAcknowledge: "Need to accept Rate Compliance Agreement"
13660
13672
  },
13661
13673
  rates: {
13674
+ requestedShippingNotification: "Customer selected <0>{{service}}</0> and paid <1>{{amount}}</1>",
13662
13675
  uspsMediaMailAcknowledgement: "I confirm that this package is compliant with <1>USPS guidelines for Media Mail®</1>",
13663
13676
  uspsFirstClassMailAcknowledgement_leof: "I understand the limitations and confirm that this package is compliant with USPS guidelines for First Class Mail Large Envelopes or Flats.",
13664
13677
  rateSavings: "Save ${{amount}}",
@@ -13712,7 +13725,8 @@ var registerWallet = {
13712
13725
  sections: {
13713
13726
  setup: {
13714
13727
  title: "Activate Carriers",
13715
- subtitle: "Activate the carriers in our service by agreeing to the carriers’ Terms of Service",
13728
+ subtitle: "Agree to the carrier's terms of service to access their services",
13729
+ hiddenTermsSubtitle: "Services from the following carriers available by default",
13716
13730
  descriptionTitle: "What is a wallet?",
13717
13731
  description: "Explaining the benefits of the wallet here"
13718
13732
  },
@@ -13759,6 +13773,23 @@ var registerWallet = {
13759
13773
  }
13760
13774
  };
13761
13775
 
13776
+ var shipengineCarriers$1 = {
13777
+ "shipengine-carriers": {
13778
+ title: "ShipEngine Carriers",
13779
+ headers: {
13780
+ accountCarriers: "ShipEngine Carrier Accounts",
13781
+ carriers: "Carriers",
13782
+ settings: "Account Settings"
13783
+ },
13784
+ actions: {
13785
+ status: {
13786
+ connected: "Connected",
13787
+ notConnected: "Connect"
13788
+ }
13789
+ }
13790
+ }
13791
+ };
13792
+
13762
13793
  var viewShipment$1 = {
13763
13794
  "view-shipment": {
13764
13795
  title: "View Shipment",
@@ -13773,7 +13804,7 @@ var viewShipment$1 = {
13773
13804
  },
13774
13805
  fields: {
13775
13806
  dimensions: "Dimensions",
13776
- estimatedShipping: "Estimated Shipping",
13807
+ estimatedShipping: "Shipping Paid",
13777
13808
  items: "Items",
13778
13809
  orderDate: "Order Date",
13779
13810
  orderValue: "Order Value",
@@ -13842,14 +13873,14 @@ var walletHistory = {
13842
13873
  }
13843
13874
  };
13844
13875
 
13845
- var en = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, accoutSettings), connectCarriers), common$1), listCarriers$1), listLabels), listShipments), manageDefaults), manageFunding), manageWarehouses$1), manageDefaults), onboarding$2), paymentMethod), purchaseLabel$1), registerCarrier), registerWallet), viewShipment$1), voidLabel$1), walletHistory);
13876
+ var en = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, accoutSettings), connectCarriers), common$1), shipengineCarriers$1), listLabels), listShipments), manageDefaults), manageFunding), manageWarehouses$1), manageDefaults), onboarding$2), paymentMethod), purchaseLabel$1), registerCarrier), registerWallet), viewShipment$1), voidLabel$1), walletHistory);
13846
13877
 
13847
13878
  /**
13848
- * # List-Carriers Component
13879
+ * # ShipEngine-Carriers Element
13849
13880
  *
13850
- * @param ComponentProps The base props that will be passed into the `<List-Carriers />` component.
13881
+ * @param ComponentProps The base props that will be passed into the `<ShipEngine-Carriers />` component.
13851
13882
  *
13852
- * @returns Element A React element that renders the `<List-Carriers />` component allowing users
13883
+ * @returns Element A React element that renders the `<ShipEngine-Carriers />` component allowing users
13853
13884
  * to view a list of carriers that are connected to their ShipEngine account. This component is
13854
13885
  * composed in the `<AccountSettings />` Element.
13855
13886
  *
@@ -13858,21 +13889,21 @@ var en = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(O
13858
13889
  * (() => {
13859
13890
  * const features = useFeatures("Global");
13860
13891
  *
13861
- * return <ListCarriers.Component features={features} />;
13892
+ * return <ShipEngineCarriers.Element features={features} />;
13862
13893
  * })();
13863
13894
  * ```
13864
13895
  *
13865
13896
  * <br />
13866
13897
  *
13867
- * @see {@link ListCarriers.ComponentProps | The props that are passed into the `<List-Carriers />` component}
13868
- * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<List-Carriers />` component}
13898
+ * @see {@link ShipEngineCarriers.ComponentProps | The props that are passed into the `<ShipEngine-Carriers />` component}
13899
+ * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<ShipEngine-Carriers />` component}
13869
13900
  */
13870
- const Component$f = ({
13901
+ const Component$g = ({
13871
13902
  features
13872
- }) => jsx(ListCarriers, {
13903
+ }) => jsx(ShipEngineCarriers, {
13873
13904
  features: features
13874
13905
  });
13875
- const Element$g = alchemy.createElement(Component$f, ErrorFallback, {
13906
+ const Element$h = alchemy.createElement(Component$g, ErrorFallback, {
13876
13907
  css: {
13877
13908
  height: "100%",
13878
13909
  maxWidth: "800px",
@@ -13884,10 +13915,10 @@ const Element$g = alchemy.createElement(Component$f, ErrorFallback, {
13884
13915
  }
13885
13916
  });
13886
13917
 
13887
- var listCarriers = /*#__PURE__*/Object.freeze({
13918
+ var shipengineCarriers = /*#__PURE__*/Object.freeze({
13888
13919
  __proto__: null,
13889
- Component: Component$f,
13890
- Element: Element$g
13920
+ Component: Component$g,
13921
+ Element: Element$h
13891
13922
  });
13892
13923
 
13893
13924
  const styles$j = createStyles({
@@ -14404,19 +14435,17 @@ const styles$i = createStyles({
14404
14435
 
14405
14436
  const useLabelLayout = () => {
14406
14437
  const {
14407
- error: updateAccountSettingsErrors,
14408
- isLoading: updatingAccountSettings,
14438
+ error: updateLabelLayoutErrors,
14439
+ isLoading: isUpdatingLabelLayout,
14409
14440
  mutateAsync: updateAccountSettings
14410
14441
  } = useUpdateAccountSettings();
14411
14442
  const {
14412
14443
  refetch: refreshAccountSettings,
14413
14444
  data: accountSettings
14414
14445
  } = useGetAccountSettings();
14415
- const handleSubmitUpdateAccountSettings = newLabelLayout => __awaiter(void 0, void 0, void 0, function* () {
14446
+ const handleSubmitUpdateAccountSettings = newAccountSetting => __awaiter(void 0, void 0, void 0, function* () {
14416
14447
  try {
14417
- yield updateAccountSettings({
14418
- defaultLabelLayout: newLabelLayout
14419
- });
14448
+ yield updateAccountSettings(newAccountSetting);
14420
14449
  } catch (error) {
14421
14450
  console.error(error);
14422
14451
  }
@@ -14424,21 +14453,20 @@ const useLabelLayout = () => {
14424
14453
  });
14425
14454
  return {
14426
14455
  accountSettings,
14427
- errors: updateAccountSettingsErrors,
14428
- loading: updatingAccountSettings,
14429
- updateAccountSettings: handleSubmitUpdateAccountSettings
14456
+ isUpdatingLabelLayout,
14457
+ updateAccountSettings: handleSubmitUpdateAccountSettings,
14458
+ updateLabelLayoutErrors
14430
14459
  };
14431
14460
  };
14432
14461
 
14433
- const Settings = () => {
14462
+ const Settings = ({
14463
+ accountSettings,
14464
+ updateAccountSettings
14465
+ }) => {
14434
14466
  var _a;
14435
14467
  const {
14436
14468
  t
14437
14469
  } = useTranslation(["common", "manage-defaults"]);
14438
- const {
14439
- accountSettings,
14440
- updateAccountSettings
14441
- } = useLabelLayout();
14442
14470
  const labelLayout = (_a = accountSettings === null || accountSettings === void 0 ? void 0 : accountSettings.defaultLabelLayout) === null || _a === void 0 ? void 0 : _a.toLowerCase();
14443
14471
  return jsxs("div", Object.assign({
14444
14472
  css: styles$i.buttonContainer
@@ -14447,7 +14475,9 @@ const Settings = () => {
14447
14475
  css: styles$i.button,
14448
14476
  id: "letter",
14449
14477
  onClick: () => __awaiter(void 0, void 0, void 0, function* () {
14450
- yield updateAccountSettings("Letter");
14478
+ yield updateAccountSettings({
14479
+ defaultLabelLayout: "Letter"
14480
+ });
14451
14481
  }),
14452
14482
  value: "letter"
14453
14483
  }, {
@@ -14477,7 +14507,9 @@ const Settings = () => {
14477
14507
  css: styles$i.button,
14478
14508
  id: "4x6",
14479
14509
  onClick: e => __awaiter(void 0, void 0, void 0, function* () {
14480
- yield updateAccountSettings(e.currentTarget.value);
14510
+ yield updateAccountSettings({
14511
+ defaultLabelLayout: e.currentTarget.value
14512
+ });
14481
14513
  }),
14482
14514
  value: "4x6"
14483
14515
  }, {
@@ -14526,7 +14558,9 @@ const Purchase = () => {
14526
14558
  name: "labelLayout",
14527
14559
  onChange: e => __awaiter(void 0, void 0, void 0, function* () {
14528
14560
  setLayout(e.target.value);
14529
- yield updateAccountSettings(e.target.value);
14561
+ yield updateAccountSettings({
14562
+ defaultLabelLayout: e.target.value
14563
+ });
14530
14564
  }),
14531
14565
  value: layout
14532
14566
  }, {
@@ -14553,91 +14587,16 @@ const Purchase = () => {
14553
14587
  });
14554
14588
  };
14555
14589
 
14556
- /**
14557
- * @namespace ManageFunding
14558
- *
14559
- * # Manage Funding Component
14560
- *
14561
- * - The `<ManageFunding />` component is used to manage funding rules and add funds to a carrier
14562
- * account, and is composed in the `<AccountSettings />` component.
14563
- *
14564
- * @param ManageFundingProps The base props that will be passed into the `<ManageFunding />` component.
14565
- *
14566
- * @returns Element A React element that renders the `<ManageFunding />` component allowing users
14567
- * manage funding rules and add funds to their carrier accounts.
14568
- *
14569
- * @see {@link ManageFundingProps | The props that are passed into the `<ManageFunding />` component}
14570
- */
14571
- const ManageFunding = () => {
14572
- var _a;
14573
- const {
14574
- t
14575
- } = useTranslation();
14576
- const queryClient = useQueryClient();
14577
- const {
14578
- data: carriers
14579
- } = useListCarriers();
14580
- const {
14581
- data: fundingSource
14582
- } = useListFundingSources();
14583
- const carrierId = carriers ? carriers[0].carrierId : "";
14584
- const currency = getCurrencyFromString((_a = fundingSource === null || fundingSource === void 0 ? void 0 : fundingSource[0]) === null || _a === void 0 ? void 0 : _a.currencyCode);
14585
- const {
14586
- isInitialLoading: isLoadingCarrier
14587
- } = useGetCarrierById(carrierId);
14588
- const [isAddFundsFormOpen, setIsAddFundsFormOpen] = useState(false);
14589
- if (isLoadingCarrier) return jsx(Loader, {
14590
- message: t("loading.carrier")
14591
- });
14592
- return jsxs("section", {
14593
- children: [jsxs(Spread, {
14594
- children: [jsx(CarrierBalance, {
14595
- carrierId: carrierId,
14596
- currency: currency
14597
- }), jsx(LinkAction, {
14598
- icon: "add",
14599
- isDisabled: isAddFundsFormOpen,
14600
- onClick: () => setIsAddFundsFormOpen(true),
14601
- title: t("manage-funding:actions.addFunds")
14602
- })]
14603
- }), isAddFundsFormOpen && jsxs(Fragment, {
14604
- children: [jsx(Spacer, {
14605
- multiplier: 2
14606
- }), jsx(AddFundsForm, {
14607
- carrierId: carrierId,
14608
- currency: currency,
14609
- onCancel: () => setIsAddFundsFormOpen(false),
14610
- onSuccess: () => {
14611
- void queryClient.invalidateQueries(["useGetCarrierById", carrierId], {
14612
- exact: true
14613
- });
14614
- void queryClient.invalidateQueries(["useListCarriers"], {
14615
- exact: true
14616
- });
14617
- }
14618
- })]
14619
- }), jsx(Spacer, {
14620
- multiplier: 2
14621
- }), jsx(AutoFundingForm, {
14622
- carrierId: carrierId,
14623
- currency: currency
14624
- })]
14625
- });
14626
- };
14627
-
14628
- const UnitSettings = () => {
14590
+ const UnitSettings = ({
14591
+ accountSettings,
14592
+ getAccountSettingsErrors: errors,
14593
+ isLoading,
14594
+ refreshAccountSettings,
14595
+ updateAccountSettings
14596
+ }) => {
14629
14597
  const {
14630
14598
  t
14631
14599
  } = useTranslation(["common", "manage-defaults"]);
14632
- const {
14633
- data: accountSettings,
14634
- error: getAccountSettingsErrors,
14635
- isInitialLoading: isLoadingAccountSettings,
14636
- refetch: refreshAccountSettings
14637
- } = useGetAccountSettings();
14638
- const {
14639
- mutateAsync: updateAccountSettings
14640
- } = useUpdateAccountSettings();
14641
14600
  const handleSubmitUpdateAccountSettings = payload => __awaiter(void 0, void 0, void 0, function* () {
14642
14601
  yield updateAccountSettings({
14643
14602
  dimensionsUnit: payload.dimensionsUnit,
@@ -14645,8 +14604,8 @@ const UnitSettings = () => {
14645
14604
  });
14646
14605
  yield refreshAccountSettings();
14647
14606
  });
14648
- if (getAccountSettingsErrors) throw new Error(getAccountSettingsErrors.map(e => e.message).join(", "));
14649
- if (isLoadingAccountSettings) return jsx(Loader, {
14607
+ if (errors) throw new Error(errors.map(e => e.message).join(", "));
14608
+ if (isLoading) return jsx(Loader, {
14650
14609
  message: t("loading.accountSettings")
14651
14610
  });
14652
14611
  return jsxs(Fragment, {
@@ -14732,6 +14691,37 @@ const UnitSettings = () => {
14732
14691
  });
14733
14692
  };
14734
14693
 
14694
+ const useUnitSettings = () => {
14695
+ const {
14696
+ error: updateUnitSettingsErrors,
14697
+ isLoading: isUpdatingUnitSettings,
14698
+ mutateAsync: updateAccountSettings
14699
+ } = useUpdateAccountSettings();
14700
+ const {
14701
+ isInitialLoading: isLoading,
14702
+ error: getAccountSettingsErrors,
14703
+ refetch: refreshAccountSettings,
14704
+ data: accountSettings
14705
+ } = useGetAccountSettings();
14706
+ const handleSubmitUpdateAccountSettings = newAccountSetting => __awaiter(void 0, void 0, void 0, function* () {
14707
+ try {
14708
+ yield updateAccountSettings(newAccountSetting);
14709
+ } catch (error) {
14710
+ console.error(error);
14711
+ }
14712
+ yield refreshAccountSettings();
14713
+ });
14714
+ return {
14715
+ accountSettings,
14716
+ getAccountSettingsErrors,
14717
+ isLoading,
14718
+ isUpdatingUnitSettings,
14719
+ refreshAccountSettings,
14720
+ updateAccountSettings: handleSubmitUpdateAccountSettings,
14721
+ updateUnitSettingsErrors
14722
+ };
14723
+ };
14724
+
14735
14725
  /**
14736
14726
  * # Payment Method Settings Component
14737
14727
  *
@@ -14855,27 +14845,20 @@ const WarehouseDisplay = ({
14855
14845
  }));
14856
14846
  };
14857
14847
 
14858
- const ManageWarehouses = () => {
14848
+ const ManageWarehouses = ({
14849
+ createWarehouse,
14850
+ deleteWarehouse,
14851
+ isLoadingWarehouses,
14852
+ listWarehouseErrors,
14853
+ refreshListWarehouses,
14854
+ updateWarehouse,
14855
+ warehouses
14856
+ }) => {
14859
14857
  const {
14860
14858
  t
14861
14859
  } = useTranslation();
14862
14860
  const [editWarehouseId, setEditWarehouseId] = useState();
14863
14861
  const [showAddNewWarehouseForm, toggleShowAddNewWarehouseForm] = useToggle(false);
14864
- const {
14865
- data: warehouses,
14866
- error: listWarehouseErrors,
14867
- isInitialLoading: isLoadingWarehouses,
14868
- refetch: refreshListWarehouses
14869
- } = useListWarehouses();
14870
- const {
14871
- mutateAsync: updateWarehouse
14872
- } = useUpdateWarehouse();
14873
- const {
14874
- mutateAsync: createWarehouse
14875
- } = useCreateWarehouse();
14876
- const {
14877
- mutateAsync: deleteWarehouse
14878
- } = useDeleteWarehouse();
14879
14862
  const handleDeleteWarehouse = warehouseId => __awaiter(void 0, void 0, void 0, function* () {
14880
14863
  yield deleteWarehouse({
14881
14864
  warehouseId
@@ -15023,6 +15006,45 @@ const ManageWarehouses = () => {
15023
15006
  });
15024
15007
  };
15025
15008
 
15009
+ const useManageWarehouses = () => {
15010
+ const {
15011
+ error: updateWarehouseErrors,
15012
+ isLoading: isUpdatingWarehouse,
15013
+ mutateAsync: updateWarehouse
15014
+ } = useUpdateWarehouse();
15015
+ const {
15016
+ error: createWarehouseErrors,
15017
+ isLoading: isCreatingWarehouse,
15018
+ mutateAsync: createWarehouse
15019
+ } = useCreateWarehouse();
15020
+ const {
15021
+ error: deleteWarehouseErrors,
15022
+ isLoading: isDeletingWarehouse,
15023
+ mutateAsync: deleteWarehouse
15024
+ } = useDeleteWarehouse();
15025
+ const {
15026
+ data: warehouses,
15027
+ error: listWarehouseErrors,
15028
+ isInitialLoading: isLoadingWarehouses,
15029
+ refetch: refreshListWarehouses
15030
+ } = useListWarehouses();
15031
+ return {
15032
+ createWarehouse,
15033
+ createWarehouseErrors,
15034
+ deleteWarehouse,
15035
+ deleteWarehouseErrors,
15036
+ isCreatingWarehouse,
15037
+ isDeletingWarehouse,
15038
+ isLoadingWarehouses,
15039
+ isUpdatingWarehouse,
15040
+ listWarehouseErrors,
15041
+ refreshListWarehouses,
15042
+ updateWarehouse,
15043
+ updateWarehouseErrors,
15044
+ warehouses
15045
+ };
15046
+ };
15047
+
15026
15048
  const ModalContainer = ({
15027
15049
  children
15028
15050
  }) => {
@@ -15958,6 +15980,7 @@ const styles$b = createStyles({
15958
15980
  const TermsAgreementForm = ({
15959
15981
  carrierTerms,
15960
15982
  fundingSourceTerms,
15983
+ hideTerms,
15961
15984
  onSubmit
15962
15985
  }) => {
15963
15986
  const {
@@ -15966,7 +15989,7 @@ const TermsAgreementForm = ({
15966
15989
  const [showTerms, setShowTerms] = useState(false);
15967
15990
  const form = useForm({
15968
15991
  defaultValues: {
15969
- agreement: false
15992
+ agreement: hideTerms
15970
15993
  },
15971
15994
  resolver: validationResolver(termsAgreementFormSchema)
15972
15995
  });
@@ -15978,7 +16001,7 @@ const TermsAgreementForm = ({
15978
16001
  css: styles$b.container,
15979
16002
  onSubmit: formLogger.capture(handleSubmit)
15980
16003
  }, {
15981
- children: [jsx("div", {
16004
+ children: [!hideTerms && jsx("div", {
15982
16005
  children: jsx(CheckboxInput, {
15983
16006
  checkboxLabel: jsx(Trans, {
15984
16007
  components: {
@@ -16007,16 +16030,18 @@ const TermsAgreementForm = ({
16007
16030
  }), showTerms && jsxs("div", Object.assign({
16008
16031
  css: styles$b.termsWell
16009
16032
  }, {
16010
- children: [jsxs("div", {
16011
- children: [jsx(Typography, Object.assign({
16012
- variant: "heading4"
16013
- }, {
16014
- children: t("terms.fundingSourceTitle")
16015
- })), fundingSourceTerms.map(term => jsx(DisplayTerm, {
16016
- term: term
16017
- }, term.termType))]
16018
- }), jsx(Divider, {
16019
- css: styles$b.termTypeDivider
16033
+ children: [!!fundingSourceTerms.length && jsxs(Fragment, {
16034
+ children: [jsxs("div", {
16035
+ children: [jsx(Typography, Object.assign({
16036
+ variant: "heading4"
16037
+ }, {
16038
+ children: t("terms.fundingSourceTitle")
16039
+ })), fundingSourceTerms.map(term => jsx(DisplayTerm, {
16040
+ term: term
16041
+ }, term.termType))]
16042
+ }), jsx(Divider, {
16043
+ css: styles$b.termTypeDivider
16044
+ })]
16020
16045
  }), jsxs("div", {
16021
16046
  children: [jsx(Typography, Object.assign({
16022
16047
  variant: "heading4"
@@ -16078,12 +16103,15 @@ const TermsAgreementStep = ({
16078
16103
  const {
16079
16104
  t
16080
16105
  } = useTranslation();
16106
+ // Australian wallet does not have carrier nor wallet terms so they wont see this form.
16107
+ // So if no terms we wont show the form
16108
+ const hideTerms = [...carrierTerms, ...fundingSourceTerms].length === 0;
16081
16109
  return jsxs("div", Object.assign({
16082
16110
  css: styles$a.container,
16083
16111
  "data-testid": "terms-agreement-step"
16084
16112
  }, {
16085
16113
  children: [jsx(StepHeader, {
16086
- subtitle: t("register-wallet:sections.setup.subtitle"),
16114
+ subtitle: hideTerms ? t("register-wallet:sections.setup.hiddenTermsSubtitle") : t("register-wallet:sections.setup.subtitle"),
16087
16115
  title: t("register-wallet:sections.setup.title")
16088
16116
  }), jsx("div", Object.assign({
16089
16117
  css: styles$a.carrierLogos
@@ -16096,6 +16124,7 @@ const TermsAgreementStep = ({
16096
16124
  children: jsx(TermsAgreementForm, {
16097
16125
  carrierTerms: carrierTerms,
16098
16126
  fundingSourceTerms: fundingSourceTerms,
16127
+ hideTerms: hideTerms,
16099
16128
  onSubmit: onSubmit
16100
16129
  })
16101
16130
  })]
@@ -16315,7 +16344,7 @@ const OnboardingWizard = ({
16315
16344
  *
16316
16345
  * @see {@link Onboarding.Element | The **Element** created to render `<Onboarding />`}
16317
16346
  */
16318
- const Component$e = ({
16347
+ const Component$f = ({
16319
16348
  defaultShipFromAddress,
16320
16349
  features,
16321
16350
  onComplete,
@@ -16342,7 +16371,7 @@ const Component$e = ({
16342
16371
  * Element directly. Here is a brief example of how you would use it within your application.
16343
16372
  * ```tsx
16344
16373
  * <Onboarding.Element
16345
- * onCompleteOnboarding={() => console.log('Onboarding Complete!')}
16374
+ * onComplete={() => console.log('Onboarding Complete!')}
16346
16375
  * />
16347
16376
  * ```
16348
16377
  *
@@ -16350,7 +16379,7 @@ const Component$e = ({
16350
16379
  *
16351
16380
  * @see {@link Onboarding.ComponentProps | The **props** that can be passed into the `<Onboarding.Element />` component}
16352
16381
  */
16353
- const Element$f = alchemy.createElement(Component$e, ErrorFallback, {
16382
+ const Element$g = alchemy.createElement(Component$f, ErrorFallback, {
16354
16383
  css: {
16355
16384
  height: "100%",
16356
16385
  maxWidth: "800px",
@@ -16366,8 +16395,8 @@ const Element$f = alchemy.createElement(Component$e, ErrorFallback, {
16366
16395
 
16367
16396
  var onboarding = /*#__PURE__*/Object.freeze({
16368
16397
  __proto__: null,
16369
- Component: Component$e,
16370
- Element: Element$f
16398
+ Component: Component$f,
16399
+ Element: Element$g
16371
16400
  });
16372
16401
 
16373
16402
  /**
@@ -16447,7 +16476,7 @@ const usePurchaseLabelWorkflow = ({
16447
16476
  * @see {@link PurchaseLabelWorkflowProps | The props that are passed into the `<PurchaseLabelWorkflow />` component}
16448
16477
  * @see {@link PurchaseLabelWorkflow.usePurchaseLabelWorkflow | The `hook` that is used to manage the state of the `<PurchaseLabelWorkflow />` component}
16449
16478
  */
16450
- const Element$e = (
16479
+ const Element$f = (
16451
16480
  /*
16452
16481
  The passed props are underscore prefixed as they will be stashed, then from them stateful versions will be made
16453
16482
  */
@@ -16517,76 +16546,29 @@ The passed props are underscore prefixed as they will be stashed, then from them
16517
16546
  var purchaseLabelWorkflow = /*#__PURE__*/Object.freeze({
16518
16547
  __proto__: null,
16519
16548
  usePurchaseLabelWorkflow: usePurchaseLabelWorkflow,
16520
- Element: Element$e
16549
+ Element: Element$f
16521
16550
  });
16522
16551
 
16523
- const useGetPanelProps = () => {
16552
+ const useGetWalletPanelProps = () => {
16524
16553
  const {
16525
16554
  t
16526
16555
  } = useTranslation();
16527
- const {
16528
- error: updateWarehouseErrors,
16529
- isLoading: updatingWarehouse
16530
- } = useUpdateWarehouse();
16531
- const {
16532
- error: createWarehouseErrors,
16533
- isLoading: creatingWarehouse
16534
- } = useCreateWarehouse();
16535
- const {
16536
- error: deleteWarehouseErrors,
16537
- isLoading: deletingWarehouse
16538
- } = useDeleteWarehouse();
16539
16556
  const {
16540
16557
  error: updateBillingErrors,
16541
16558
  isLoading: updatingBilling
16542
16559
  } = useUpdateFundingSource();
16543
- const {
16544
- errors: labelLayoutErrors,
16545
- loading: labelLayoutLoading
16546
- } = useLabelLayout();
16547
- const {
16548
- error: updateSettingsErrors,
16549
- isLoading: updatingSettings
16550
- } = useUpdateAccountSettings();
16551
- const warehouseErrors = [...(updateWarehouseErrors !== null && updateWarehouseErrors !== void 0 ? updateWarehouseErrors : []), ...(createWarehouseErrors !== null && createWarehouseErrors !== void 0 ? createWarehouseErrors : []), ...(deleteWarehouseErrors !== null && deleteWarehouseErrors !== void 0 ? deleteWarehouseErrors : [])];
16552
- const getSettingPanelProps = setting => {
16560
+ const getWalletPanelProps = setting => {
16553
16561
  switch (setting) {
16554
- case "ExternalCarriers":
16555
- return {
16556
- title: t("account-settings:sections.externalCarriers")
16557
- };
16558
- case "ManageWarehouses":
16559
- return {
16560
- errors: warehouseErrors,
16561
- isSaving: creatingWarehouse || deletingWarehouse || updatingWarehouse,
16562
- title: t("account-settings:sections.warehouses")
16563
- };
16564
16562
  case "ManageFunding":
16565
16563
  return {
16566
16564
  title: t("account-settings:sections.accountBalance")
16567
16565
  };
16568
- case "ListCarriers":
16569
- return {
16570
- title: t("account-settings:sections.carriers")
16571
- };
16572
- case "LabelLayout":
16573
- return {
16574
- errors: labelLayoutErrors,
16575
- isSaving: labelLayoutLoading,
16576
- title: t("account-settings:sections.labelLayout")
16577
- };
16578
16566
  case "PaymentMethodSettings":
16579
16567
  return {
16580
16568
  errors: updateBillingErrors,
16581
16569
  isSaving: updatingBilling,
16582
16570
  title: t("account-settings:sections.paymentMethod")
16583
16571
  };
16584
- case "UnitSettings":
16585
- return {
16586
- errors: updateSettingsErrors,
16587
- isSaving: updatingSettings,
16588
- title: t("account-settings:sections.unitSettings")
16589
- };
16590
16572
  case "WalletHistory":
16591
16573
  return {
16592
16574
  title: t("account-settings:sections.transactionHistory")
@@ -16595,13 +16577,144 @@ const useGetPanelProps = () => {
16595
16577
  return {};
16596
16578
  }
16597
16579
  };
16580
+ return {
16581
+ getWalletPanelProps
16582
+ };
16583
+ };
16584
+
16585
+ /**
16586
+ * # Manage-Wallet-Workflow Component
16587
+ *
16588
+ * @param ComponentProps The base props that will be passed into the `<Manage-Wallet-Workflow />` component.
16589
+ *
16590
+ * @returns Element A React element that renders the `<Manage-Wallet-Workflow />` component allowing users
16591
+ * to view a list of carriers that are connected to their ShipEngine account, add funds to their wallet, view transaction history, and manage their payment method. This component is
16592
+ * composed in the `<AccountSettings />` Element.
16593
+ *
16594
+ * @example
16595
+ * ```tsx
16596
+ * (() => {
16597
+ * const features = useFeatures("Global");
16598
+ *
16599
+ * return <ManageWallet.Element features={features} />;
16600
+ * })();
16601
+ * ```
16602
+ *
16603
+ * <br />
16604
+ *
16605
+ * @see {@link ManageWalletWorkflow.ComponentProps | The props that are passed into the `<Manage-Wallet-Workflow />` component}
16606
+ * @see {@link AccountSettings.Element | The `<AccountSettings />` component renders the `<Manage-Wallet-Workflow />` component}
16607
+ */
16608
+ const Component$e = ({
16609
+ features
16610
+ }) => {
16611
+ /* eslint-disable sort-keys-fix/sort-keys-fix */
16612
+ const settings = {
16613
+ PaymentMethodSettings,
16614
+ WalletHistory
16615
+ };
16616
+ const {
16617
+ getWalletPanelProps
16618
+ } = useGetWalletPanelProps();
16619
+ return jsxs(Fragment, {
16620
+ children: [jsx(ShipEngineCarriers, {
16621
+ features: features,
16622
+ showFunds: true
16623
+ }), jsx(Spacer, {
16624
+ multiplier: 1
16625
+ }), Object.keys(settings).map((setting, index) => {
16626
+ const panelProps = getWalletPanelProps(setting);
16627
+ const Setting = settings[setting];
16628
+ return createElement$3(CollapsiblePanel, Object.assign({}, panelProps, {
16629
+ key: index,
16630
+ nested: true
16631
+ }), jsx(Setting, {}));
16632
+ })]
16633
+ });
16634
+ };
16635
+ const Element$e = alchemy.createElement(Component$e, ErrorFallback, {
16636
+ css: {
16637
+ height: "100%",
16638
+ maxWidth: "800px",
16639
+ minWidth: "440px",
16640
+ width: "100%"
16641
+ },
16642
+ resources: {
16643
+ en
16644
+ }
16645
+ });
16646
+
16647
+ var manageWalletWorkflow = /*#__PURE__*/Object.freeze({
16648
+ __proto__: null,
16649
+ Component: Component$e,
16650
+ Element: Element$e
16651
+ });
16652
+
16653
+ const useGetPanelProps = () => {
16654
+ const {
16655
+ t
16656
+ } = useTranslation();
16657
+ const _a = useManageWarehouses(),
16658
+ {
16659
+ updateWarehouseErrors,
16660
+ createWarehouseErrors,
16661
+ deleteWarehouseErrors,
16662
+ isCreatingWarehouse,
16663
+ isDeletingWarehouse,
16664
+ isUpdatingWarehouse
16665
+ } = _a,
16666
+ manageWarehousesProps = __rest(_a, ["updateWarehouseErrors", "createWarehouseErrors", "deleteWarehouseErrors", "isCreatingWarehouse", "isDeletingWarehouse", "isUpdatingWarehouse"]);
16667
+ const _b = useLabelLayout(),
16668
+ {
16669
+ updateLabelLayoutErrors,
16670
+ isUpdatingLabelLayout
16671
+ } = _b,
16672
+ labelLayoutProps = __rest(_b, ["updateLabelLayoutErrors", "isUpdatingLabelLayout"]);
16673
+ const _c = useUnitSettings(),
16674
+ {
16675
+ isUpdatingUnitSettings,
16676
+ updateUnitSettingsErrors
16677
+ } = _c,
16678
+ unitSettingsProps = __rest(_c, ["isUpdatingUnitSettings", "updateUnitSettingsErrors"]);
16679
+ const warehouseErrors = [...(updateWarehouseErrors !== null && updateWarehouseErrors !== void 0 ? updateWarehouseErrors : []), ...(createWarehouseErrors !== null && createWarehouseErrors !== void 0 ? createWarehouseErrors : []), ...(deleteWarehouseErrors !== null && deleteWarehouseErrors !== void 0 ? deleteWarehouseErrors : [])];
16680
+ const getSettingPanelProps = setting => {
16681
+ switch (setting) {
16682
+ case "ManageWalletWorkflow":
16683
+ return [{
16684
+ title: t("account-settings:sections.carriers")
16685
+ }];
16686
+ case "ExternalCarriers":
16687
+ return [{
16688
+ title: t("account-settings:sections.externalCarriers")
16689
+ }];
16690
+ case "ManageWarehouses":
16691
+ return [{
16692
+ errors: warehouseErrors,
16693
+ isSaving: isCreatingWarehouse || isDeletingWarehouse || isUpdatingWarehouse,
16694
+ title: t("account-settings:sections.warehouses")
16695
+ }, Object.assign({}, manageWarehousesProps)];
16696
+ case "LabelLayout":
16697
+ return [{
16698
+ errors: updateLabelLayoutErrors,
16699
+ isSaving: isUpdatingLabelLayout,
16700
+ title: t("account-settings:sections.labelLayout")
16701
+ }, Object.assign({}, labelLayoutProps)];
16702
+ case "UnitSettings":
16703
+ return [{
16704
+ errors: updateUnitSettingsErrors,
16705
+ isSaving: isUpdatingUnitSettings,
16706
+ title: t("account-settings:sections.unitSettings")
16707
+ }, Object.assign({}, unitSettingsProps)];
16708
+ default:
16709
+ return [];
16710
+ }
16711
+ };
16598
16712
  return {
16599
16713
  getSettingPanelProps
16600
16714
  };
16601
16715
  };
16602
16716
 
16603
16717
  const Component$d = ({
16604
- onSaveSettings,
16605
16718
  features
16606
16719
  }) => {
16607
16720
  const {
@@ -16612,14 +16725,11 @@ const Component$d = ({
16612
16725
  } = useGetPanelProps();
16613
16726
  /* eslint-disable sort-keys-fix/sort-keys-fix */
16614
16727
  const settings = {
16615
- ListCarriers,
16728
+ ManageWalletWorkflow: Element$e,
16616
16729
  ExternalCarriers,
16617
- WalletHistory,
16618
16730
  ManageWarehouses,
16619
16731
  LabelLayout: Settings,
16620
- UnitSettings,
16621
- ManageFunding,
16622
- PaymentMethodSettings
16732
+ UnitSettings
16623
16733
  };
16624
16734
  return jsxs(ModalContainer, {
16625
16735
  children: [jsx(Typography, Object.assign({
@@ -16635,13 +16745,13 @@ const Component$d = ({
16635
16745
  })), jsx(Spacer, {
16636
16746
  multiplier: 1
16637
16747
  }), Object.keys(settings).map((setting, index) => {
16638
- const panelProps = getSettingPanelProps(setting);
16748
+ const [panelProps, settingProps] = getSettingPanelProps(setting);
16639
16749
  const Setting = settings[setting];
16640
16750
  return createElement$3(CollapsiblePanel, Object.assign({}, panelProps, {
16641
16751
  key: index
16642
- }), jsx(Setting, {
16752
+ }), jsx(Setting, Object.assign({
16643
16753
  features: features
16644
- }));
16754
+ }, settingProps)));
16645
16755
  }), jsx("div", Object.assign({
16646
16756
  css: theme => ({
16647
16757
  padding: `${theme.spacing(1)}px 0`
@@ -16670,7 +16780,7 @@ const Component$d = ({
16670
16780
  * <br />
16671
16781
  *
16672
16782
  * @see {@link AccountSettings.ComponentProps | The **props** that can be passed into the `<AccountSettings.Element />` component}
16673
- * @see {@link ListCarriers.Component | The `<List-Carriers />` component used to view connected carriers}
16783
+ * @see {@link ManageWalletWorkflow.Element | The `<Manage-Wallet-Workflow />` component used to view connected carriers and manage funding}
16674
16784
  * @see {@link ManageWarehouses.Component | The `<ManageWarehouses />` component used to add, update, or remove warehouses}
16675
16785
  * @see {@link PaymentMethodSettings | The `<PaymentMethodSettings />` component used to manage payment methods}
16676
16786
  * @see {@link ManageFunding | The `<ManageFunding />` component used to manage funding rules and add funds to a carrier account}
@@ -16731,7 +16841,7 @@ const AvailableCarriersList = ({
16731
16841
  };
16732
16842
 
16733
16843
  var charAt$2 = stringMultibyte.charAt;
16734
- var toString = toString$e;
16844
+ var toString = toString$d;
16735
16845
  var InternalStateModule$3 = internalState;
16736
16846
  var defineIterator = iteratorDefine;
16737
16847
  var createIterResultObject = createIterResultObject$2;
@@ -16761,11 +16871,11 @@ defineIterator(String, 'String', function (iterated) {
16761
16871
  return createIterResultObject(point, false);
16762
16872
  });
16763
16873
 
16764
- var fails$1 = fails$s;
16765
- var wellKnownSymbol$4 = wellKnownSymbol$n;
16874
+ var fails$1 = fails$r;
16875
+ var wellKnownSymbol$5 = wellKnownSymbol$m;
16766
16876
  var IS_PURE = isPure;
16767
16877
 
16768
- var ITERATOR$2 = wellKnownSymbol$4('iterator');
16878
+ var ITERATOR$2 = wellKnownSymbol$5('iterator');
16769
16879
 
16770
16880
  var urlConstructorDetection = !fails$1(function () {
16771
16881
  // eslint-disable-next-line unicorn/relative-url-style -- required for testing
@@ -17060,7 +17170,7 @@ var validateArgumentsLength$3 = function (passed, required) {
17060
17170
  return passed;
17061
17171
  };
17062
17172
 
17063
- var defineBuiltIn$4 = defineBuiltIn$b;
17173
+ var defineBuiltIn$4 = defineBuiltIn$a;
17064
17174
 
17065
17175
  var defineBuiltIns$1 = function (target, src, options) {
17066
17176
  for (var key in src) defineBuiltIn$4(target, key, src[key], options);
@@ -17070,33 +17180,33 @@ var defineBuiltIns$1 = function (target, src, options) {
17070
17180
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
17071
17181
 
17072
17182
  var $$7 = _export;
17073
- var global$9 = global$s;
17183
+ var global$9 = global$r;
17074
17184
  var call$4 = functionCall;
17075
17185
  var uncurryThis$2 = functionUncurryThis;
17076
- var DESCRIPTORS$1 = descriptors;
17186
+ var DESCRIPTORS$2 = descriptors;
17077
17187
  var USE_NATIVE_URL$1 = urlConstructorDetection;
17078
- var defineBuiltIn$3 = defineBuiltIn$b;
17188
+ var defineBuiltIn$3 = defineBuiltIn$a;
17079
17189
  var defineBuiltIns = defineBuiltIns$1;
17080
17190
  var setToStringTag$2 = setToStringTag$5;
17081
17191
  var createIteratorConstructor = iteratorCreateConstructor;
17082
17192
  var InternalStateModule$2 = internalState;
17083
17193
  var anInstance$2 = anInstance$3;
17084
- var isCallable$4 = isCallable$q;
17194
+ var isCallable$4 = isCallable$p;
17085
17195
  var hasOwn$2 = hasOwnProperty_1;
17086
17196
  var bind$4 = functionBindContext;
17087
17197
  var classof = classof$7;
17088
17198
  var anObject$2 = anObject$h;
17089
17199
  var isObject$2 = isObject$c;
17090
- var $toString$1 = toString$e;
17200
+ var $toString$1 = toString$d;
17091
17201
  var create = objectCreate;
17092
17202
  var createPropertyDescriptor = createPropertyDescriptor$5;
17093
17203
  var getIterator = getIterator$3;
17094
17204
  var getIteratorMethod = getIteratorMethod$4;
17095
17205
  var validateArgumentsLength$2 = validateArgumentsLength$3;
17096
- var wellKnownSymbol$3 = wellKnownSymbol$n;
17206
+ var wellKnownSymbol$4 = wellKnownSymbol$m;
17097
17207
  var arraySort = arraySort$1;
17098
17208
 
17099
- var ITERATOR$1 = wellKnownSymbol$3('iterator');
17209
+ var ITERATOR$1 = wellKnownSymbol$4('iterator');
17100
17210
  var URL_SEARCH_PARAMS = 'URLSearchParams';
17101
17211
  var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
17102
17212
  var setInternalState$2 = InternalStateModule$2.set;
@@ -17107,7 +17217,7 @@ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
17107
17217
 
17108
17218
  // Avoid NodeJS experimental warning
17109
17219
  var safeGetBuiltIn = function (name) {
17110
- if (!DESCRIPTORS$1) return global$9[name];
17220
+ if (!DESCRIPTORS$2) return global$9[name];
17111
17221
  var descriptor = getOwnPropertyDescriptor$1(global$9, name);
17112
17222
  return descriptor && descriptor.value;
17113
17223
  };
@@ -17462,12 +17572,12 @@ var web_urlSearchParams_constructor = {
17462
17572
  // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
17463
17573
 
17464
17574
  var $$6 = _export;
17465
- var DESCRIPTORS = descriptors;
17575
+ var DESCRIPTORS$1 = descriptors;
17466
17576
  var USE_NATIVE_URL = urlConstructorDetection;
17467
- var global$8 = global$s;
17577
+ var global$8 = global$r;
17468
17578
  var bind$3 = functionBindContext;
17469
17579
  var uncurryThis$1 = functionUncurryThis;
17470
- var defineBuiltIn$2 = defineBuiltIn$b;
17580
+ var defineBuiltIn$2 = defineBuiltIn$a;
17471
17581
  var defineBuiltInAccessor = defineBuiltInAccessor$1;
17472
17582
  var anInstance$1 = anInstance$3;
17473
17583
  var hasOwn$1 = hasOwnProperty_1;
@@ -17476,7 +17586,7 @@ var arrayFrom = arrayFrom$1;
17476
17586
  var arraySlice$2 = arraySliceSimple;
17477
17587
  var codeAt = stringMultibyte.codeAt;
17478
17588
  var toASCII = stringPunycodeToAscii;
17479
- var $toString = toString$e;
17589
+ var $toString = toString$d;
17480
17590
  var setToStringTag$1 = setToStringTag$5;
17481
17591
  var validateArgumentsLength$1 = validateArgumentsLength$3;
17482
17592
  var URLSearchParamsModule = web_urlSearchParams_constructor;
@@ -18402,7 +18512,7 @@ var URLConstructor = function URL(url /* , base */) {
18402
18512
  var that = anInstance$1(this, URLPrototype);
18403
18513
  var base = validateArgumentsLength$1(arguments.length, 1) > 1 ? arguments[1] : undefined;
18404
18514
  var state = setInternalState$1(that, new URLState(url, false, base));
18405
- if (!DESCRIPTORS) {
18515
+ if (!DESCRIPTORS$1) {
18406
18516
  that.href = state.serialize();
18407
18517
  that.origin = state.getOrigin();
18408
18518
  that.protocol = state.getProtocol();
@@ -18433,7 +18543,7 @@ var accessorDescriptor = function (getter, setter) {
18433
18543
  };
18434
18544
  };
18435
18545
 
18436
- if (DESCRIPTORS) {
18546
+ if (DESCRIPTORS$1) {
18437
18547
  // `URL.prototype.href` accessors pair
18438
18548
  // https://url.spec.whatwg.org/#dom-url-href
18439
18549
  defineBuiltInAccessor(URLPrototype, 'href', accessorDescriptor('serialize', 'setHref'));
@@ -18497,7 +18607,7 @@ if (NativeURL) {
18497
18607
 
18498
18608
  setToStringTag$1(URLConstructor, 'URL');
18499
18609
 
18500
- $$6({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
18610
+ $$6({ global: true, constructor: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$1 }, {
18501
18611
  URL: URLConstructor
18502
18612
  });
18503
18613
 
@@ -18947,9 +19057,6 @@ const ExternalCarriers = ({
18947
19057
  * # Manage Warehouses Component
18948
19058
  *
18949
19059
  * - The `<ManageWarehouses />` component is used to manage warehouses on a user's ShipEngine account. Users can add, update, or make warehouses inactive.
18950
- * `<AccountSettings />` Element.
18951
- *
18952
- * @param ComponentProps The base props that will be passed into the `<ManageWarehouses />` component.
18953
19060
  *
18954
19061
  * @returns Element A React element that renders the `<ManageWarehouses />` component allowing users
18955
19062
  * to manage warehouses on their ShipEngine account.
@@ -18963,12 +19070,10 @@ const ExternalCarriers = ({
18963
19070
  *
18964
19071
  * <br />
18965
19072
  *
18966
- * @see {@link ManageWarehouses.ComponentProps | The props that are passed into the `<ManageWarehouses />` component}
18967
19073
  */
18968
- const Component$b = ({
18969
- onWarehouseAddressValidation: _ARE_WE_ACTUALLY_GOING_TO_USE_THIS
18970
- }) => {
18971
- return jsx(ManageWarehouses, {});
19074
+ const Component$b = () => {
19075
+ const props = __rest(useManageWarehouses(), []);
19076
+ return jsx(ManageWarehouses, Object.assign({}, props));
18972
19077
  };
18973
19078
  const Element$b = alchemy.createElement(Component$b, ErrorFallback, {
18974
19079
  css: {
@@ -19168,6 +19273,7 @@ const RateForm = ({
19168
19273
  preferredRates,
19169
19274
  preferredServiceCodes,
19170
19275
  rates,
19276
+ salesOrder,
19171
19277
  shipment,
19172
19278
  onSave,
19173
19279
  onSelectRate,
@@ -19318,6 +19424,8 @@ const RateForm = ({
19318
19424
  }
19319
19425
  return undefined;
19320
19426
  }, [displayableRateErrors, displayableShipmentErrors, rateOptions.length, displayableSaveRateErrors, labelErrors]);
19427
+ const requestedServices = useMemo(() => getRequestedServices(salesOrder), [salesOrder]);
19428
+ const formatRequestedService = () => requestedServices.length > 1 ? t("purchase-label:multipleShippingServices") : requestedServices[0];
19321
19429
  return jsxs("form", Object.assign({
19322
19430
  id: "rate-form",
19323
19431
  onSubmit: handleSubmit,
@@ -19329,65 +19437,82 @@ const RateForm = ({
19329
19437
  count: rateOptions.length
19330
19438
  })
19331
19439
  }, {
19332
- children: [!isLoading && !!rateOptions.length ? !!((_c = features.rateForm) === null || _c === void 0 ? void 0 : _c.enablePudoUI) && pudoRateOptions && pudoRateOptions.length ? jsx(PudoRateTabs, {
19333
- form: form,
19334
- getFilteredRateOptions: getFilteredRateOptions,
19335
- nicknameFeature:
19336
- // if feature flag is on, and if account has duplicate carrierCodes, then show nickname
19337
- ((_d = features === null || features === void 0 ? void 0 : features.rateForm) === null || _d === void 0 ? void 0 : _d.nicknameRate) && carriers && hasDuplicateCarrierCode(carriers),
19338
- onSearch: fetchServicePointsByPostalCode,
19339
- onSelectRate: onSelectRate,
19340
- onSelectServicePoint: setSelectedServicePoint,
19341
- preferredServiceCodes: preferredServiceCodes,
19342
- pudoRateOptions: pudoRateOptions,
19343
- rateFormScrollToRef: rateFormScrollToRef,
19344
- rates: rates,
19345
- servicePointsLoading: servicePointsFetching,
19346
- setShowHiddenRates: setShowHiddenRates,
19347
- shipment: shipment,
19348
- showHiddenRates: showHiddenRates
19349
- }) : jsxs(Fragment, {
19350
- children: [!!(pudoRateOptions === null || pudoRateOptions === void 0 ? void 0 : pudoRateOptions.length) && jsxs(Fragment, {
19351
- children: [jsx(ServicePointsSearchBar, {
19352
- onSearch: value => {
19353
- fetchServicePointsByPostalCode(value);
19354
- },
19355
- postalCode: (_e = shipment === null || shipment === void 0 ? void 0 : shipment.shipFrom) === null || _e === void 0 ? void 0 : _e.postalCode
19356
- }), jsx(Spacer, {})]
19357
- }), jsx(RateSelect, {
19358
- control: form.control,
19359
- displayErrors: false,
19360
- isLoading: servicePointsFetching,
19361
- label: "Rate",
19362
- name: "rate",
19440
+ children: [!isLoading && !!rateOptions.length ? jsxs(Fragment, {
19441
+ children: [salesOrder && !!requestedServices.length && jsxs(Fragment, {
19442
+ children: [jsx(InlineNotification, Object.assign({
19443
+ type: NotificationType.INFO
19444
+ }, {
19445
+ children: jsx(Trans, {
19446
+ components: [jsx("strong", {}), jsx("strong", {})],
19447
+ i18nKey: "purchase-label:rates.requestedShippingNotification",
19448
+ values: {
19449
+ amount: formatMoney(salesOrder.paymentDetails.estimatedShipping),
19450
+ service: formatRequestedService()
19451
+ }
19452
+ })
19453
+ })), jsx(Spacer, {
19454
+ multiplier: 3
19455
+ })]
19456
+ }), !!((_c = features.rateForm) === null || _c === void 0 ? void 0 : _c.enablePudoUI) && pudoRateOptions && pudoRateOptions.length ? jsx(PudoRateTabs, {
19457
+ form: form,
19458
+ getFilteredRateOptions: getFilteredRateOptions,
19363
19459
  nicknameFeature:
19364
19460
  // if feature flag is on, and if account has duplicate carrierCodes, then show nickname
19365
- ((_f = features === null || features === void 0 ? void 0 : features.rateForm) === null || _f === void 0 ? void 0 : _f.nicknameRate) && carriers && hasDuplicateCarrierCode(carriers),
19366
- onClick: onSelectRate,
19367
- onSelectServicePoint: servicePoint => setSelectedServicePoint(servicePoint),
19368
- options: showHiddenRates ? rateOptions : getFilteredRateOptions(rateOptions),
19369
- preferredServiceCodes: preferredServiceCodes
19370
- }), rateOptions.length > 5 && jsx(Link, Object.assign({
19371
- css: styles$7.showMoreOrLessRatesButton,
19372
- onClick: () => {
19373
- var _a;
19374
- setShowHiddenRates(!showHiddenRates);
19375
- if (!showHiddenRates) {
19376
- // scroll to top of Rates if we are showing hidden rates
19377
- (_a = rateFormScrollToRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
19378
- behavior: "smooth",
19379
- block: "start"
19380
- });
19381
- }
19382
- },
19383
- role: "button"
19384
- }, {
19385
- children: jsx(Typography, Object.assign({
19386
- variant: "body1"
19461
+ ((_d = features === null || features === void 0 ? void 0 : features.rateForm) === null || _d === void 0 ? void 0 : _d.nicknameRate) && carriers && hasDuplicateCarrierCode(carriers),
19462
+ onSearch: fetchServicePointsByPostalCode,
19463
+ onSelectRate: onSelectRate,
19464
+ onSelectServicePoint: setSelectedServicePoint,
19465
+ preferredServiceCodes: preferredServiceCodes,
19466
+ pudoRateOptions: pudoRateOptions,
19467
+ rateFormScrollToRef: rateFormScrollToRef,
19468
+ rates: rates,
19469
+ servicePointsLoading: servicePointsFetching,
19470
+ setShowHiddenRates: setShowHiddenRates,
19471
+ shipment: shipment,
19472
+ showHiddenRates: showHiddenRates
19473
+ }) : jsxs(Fragment, {
19474
+ children: [!!(pudoRateOptions === null || pudoRateOptions === void 0 ? void 0 : pudoRateOptions.length) && jsxs(Fragment, {
19475
+ children: [jsx(ServicePointsSearchBar, {
19476
+ onSearch: value => {
19477
+ fetchServicePointsByPostalCode(value);
19478
+ },
19479
+ postalCode: (_e = shipment === null || shipment === void 0 ? void 0 : shipment.shipFrom) === null || _e === void 0 ? void 0 : _e.postalCode
19480
+ }), jsx(Spacer, {})]
19481
+ }), jsx(RateSelect, {
19482
+ control: form.control,
19483
+ displayErrors: false,
19484
+ isLoading: servicePointsFetching,
19485
+ label: "Rate",
19486
+ name: "rate",
19487
+ nicknameFeature:
19488
+ // if feature flag is on, and if account has duplicate carrierCodes, then show nickname
19489
+ ((_f = features === null || features === void 0 ? void 0 : features.rateForm) === null || _f === void 0 ? void 0 : _f.nicknameRate) && carriers && hasDuplicateCarrierCode(carriers),
19490
+ onClick: onSelectRate,
19491
+ onSelectServicePoint: servicePoint => setSelectedServicePoint(servicePoint),
19492
+ options: showHiddenRates ? rateOptions : getFilteredRateOptions(rateOptions),
19493
+ preferredServiceCodes: preferredServiceCodes
19494
+ }), rateOptions.length > 5 && jsx(Link, Object.assign({
19495
+ css: styles$7.showMoreOrLessRatesButton,
19496
+ onClick: () => {
19497
+ var _a;
19498
+ setShowHiddenRates(!showHiddenRates);
19499
+ if (!showHiddenRates) {
19500
+ // scroll to top of Rates if we are showing hidden rates
19501
+ (_a = rateFormScrollToRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView({
19502
+ behavior: "smooth",
19503
+ block: "start"
19504
+ });
19505
+ }
19506
+ },
19507
+ role: "button"
19387
19508
  }, {
19388
- children: showHiddenRates ? t("purchase-label:actions.showFewerRates") : t("purchase-label:actions.showMoreRates")
19389
- }))
19390
- }))]
19509
+ children: jsx(Typography, Object.assign({
19510
+ variant: "body1"
19511
+ }, {
19512
+ children: showHiddenRates ? t("purchase-label:actions.showFewerRates") : t("purchase-label:actions.showMoreRates")
19513
+ }))
19514
+ }))]
19515
+ })]
19391
19516
  }) : !isLoading && !!displayableErrors ? null : jsxs("article", Object.assign({
19392
19517
  css: styles$7.ratesInterstitial,
19393
19518
  role: "presentation"
@@ -19627,14 +19752,20 @@ const styles$5 = createStyles({
19627
19752
  });
19628
19753
 
19629
19754
  const CustomsCurrencies = [{
19630
- label: "$",
19755
+ label: "USD $",
19631
19756
  value: SE.Currency.USD
19632
19757
  }, {
19633
- label: "£",
19758
+ label: "GBP £",
19634
19759
  value: SE.Currency.GBP
19635
19760
  }, {
19636
- label: "€",
19761
+ label: "EUR €",
19637
19762
  value: SE.Currency.EUR
19763
+ }, {
19764
+ label: "CAD $",
19765
+ value: SE.Currency.CAD
19766
+ }, {
19767
+ label: "AUD $",
19768
+ value: SE.Currency.AUD
19638
19769
  }];
19639
19770
  const ProductForm = ({
19640
19771
  product,
@@ -19718,7 +19849,7 @@ const ProductForm = ({
19718
19849
  type: FieldMessageType.INFO
19719
19850
  } : undefined,
19720
19851
  name: "valueQuantity",
19721
- sizes: [82],
19852
+ sizes: [116],
19722
19853
  trigger: form.trigger
19723
19854
  }, {
19724
19855
  children: [jsx(Select, {
@@ -20510,7 +20641,9 @@ const ShipmentForm = ({
20510
20641
  }
20511
20642
  const updatedShipment = yield onSubmit(
20512
20643
  // using mergeWith to get a deep merge and also respect undefined values
20513
- _$3.mergeWith(shipment, payload, (objValue, srcValue, key, obj) => {
20644
+ _$3.mergeWith(shipment, Object.assign({
20645
+ shipDate
20646
+ }, payload), (objValue, srcValue, key, obj) => {
20514
20647
  if (objValue !== srcValue && typeof srcValue === "undefined") {
20515
20648
  obj[key] = srcValue;
20516
20649
  }
@@ -21220,6 +21353,25 @@ const useConfigureShipment = ({
21220
21353
  };
21221
21354
  };
21222
21355
 
21356
+ var getBuiltIn$2 = getBuiltIn$8;
21357
+ var definePropertyModule = objectDefineProperty;
21358
+ var wellKnownSymbol$3 = wellKnownSymbol$m;
21359
+ var DESCRIPTORS = descriptors;
21360
+
21361
+ var SPECIES$2 = wellKnownSymbol$3('species');
21362
+
21363
+ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
21364
+ var Constructor = getBuiltIn$2(CONSTRUCTOR_NAME);
21365
+ var defineProperty = definePropertyModule.f;
21366
+
21367
+ if (DESCRIPTORS && Constructor && !Constructor[SPECIES$2]) {
21368
+ defineProperty(Constructor, SPECIES$2, {
21369
+ configurable: true,
21370
+ get: function () { return this; }
21371
+ });
21372
+ }
21373
+ };
21374
+
21223
21375
  var isConstructor = isConstructor$3;
21224
21376
  var tryToString = tryToString$5;
21225
21377
 
@@ -21234,7 +21386,7 @@ var aConstructor$1 = function (argument) {
21234
21386
  var anObject$1 = anObject$h;
21235
21387
  var aConstructor = aConstructor$1;
21236
21388
  var isNullOrUndefined = isNullOrUndefined$7;
21237
- var wellKnownSymbol$2 = wellKnownSymbol$n;
21389
+ var wellKnownSymbol$2 = wellKnownSymbol$m;
21238
21390
 
21239
21391
  var SPECIES$1 = wellKnownSymbol$2('species');
21240
21392
 
@@ -21254,12 +21406,12 @@ var userAgent$2 = engineUserAgent;
21254
21406
 
21255
21407
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
21256
21408
 
21257
- var global$7 = global$s;
21409
+ var global$7 = global$r;
21258
21410
  var apply = functionApply;
21259
21411
  var bind$2 = functionBindContext;
21260
- var isCallable$3 = isCallable$q;
21412
+ var isCallable$3 = isCallable$p;
21261
21413
  var hasOwn = hasOwnProperty_1;
21262
- var fails = fails$s;
21414
+ var fails = fails$r;
21263
21415
  var html = html$2;
21264
21416
  var arraySlice = arraySlice$1;
21265
21417
  var createElement = documentCreateElement$2;
@@ -21372,7 +21524,7 @@ var task$1 = {
21372
21524
  };
21373
21525
 
21374
21526
  var userAgent$1 = engineUserAgent;
21375
- var global$6 = global$s;
21527
+ var global$6 = global$r;
21376
21528
 
21377
21529
  var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$6.Pebble !== undefined;
21378
21530
 
@@ -21380,7 +21532,7 @@ var userAgent = engineUserAgent;
21380
21532
 
21381
21533
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
21382
21534
 
21383
- var global$5 = global$s;
21535
+ var global$5 = global$r;
21384
21536
  var bind$1 = functionBindContext;
21385
21537
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
21386
21538
  var macrotask = task$1.set;
@@ -21466,7 +21618,7 @@ var microtask$1 = queueMicrotask || function (fn) {
21466
21618
  } last = task;
21467
21619
  };
21468
21620
 
21469
- var global$4 = global$s;
21621
+ var global$4 = global$r;
21470
21622
 
21471
21623
  var hostReportErrors$1 = function (a, b) {
21472
21624
  var console = global$4.console;
@@ -21507,7 +21659,7 @@ Queue$1.prototype = {
21507
21659
 
21508
21660
  var queue = Queue$1;
21509
21661
 
21510
- var global$3 = global$s;
21662
+ var global$3 = global$r;
21511
21663
 
21512
21664
  var promiseNativeConstructor = global$3.Promise;
21513
21665
 
@@ -21522,12 +21674,12 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
21522
21674
  && typeof window == 'object'
21523
21675
  && typeof document == 'object';
21524
21676
 
21525
- var global$2 = global$s;
21677
+ var global$2 = global$r;
21526
21678
  var NativePromiseConstructor$3 = promiseNativeConstructor;
21527
- var isCallable$2 = isCallable$q;
21679
+ var isCallable$2 = isCallable$p;
21528
21680
  var isForced = isForced_1;
21529
21681
  var inspectSource = inspectSource$3;
21530
- var wellKnownSymbol$1 = wellKnownSymbol$n;
21682
+ var wellKnownSymbol$1 = wellKnownSymbol$m;
21531
21683
  var IS_BROWSER = engineIsBrowser;
21532
21684
  var IS_DENO = engineIsDeno;
21533
21685
  var V8_VERSION = engineV8Version;
@@ -21592,14 +21744,14 @@ newPromiseCapability$2.f = function (C) {
21592
21744
 
21593
21745
  var $$5 = _export;
21594
21746
  var IS_NODE = engineIsNode;
21595
- var global$1 = global$s;
21747
+ var global$1 = global$r;
21596
21748
  var call$3 = functionCall;
21597
- var defineBuiltIn$1 = defineBuiltIn$b;
21749
+ var defineBuiltIn$1 = defineBuiltIn$a;
21598
21750
  var setPrototypeOf = objectSetPrototypeOf;
21599
21751
  var setToStringTag = setToStringTag$5;
21600
- var setSpecies = setSpecies$2;
21752
+ var setSpecies = setSpecies$1;
21601
21753
  var aCallable$2 = aCallable$a;
21602
- var isCallable$1 = isCallable$q;
21754
+ var isCallable$1 = isCallable$p;
21603
21755
  var isObject$1 = isObject$c;
21604
21756
  var anInstance = anInstance$3;
21605
21757
  var speciesConstructor = speciesConstructor$1;
@@ -21877,7 +22029,7 @@ $$5({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTR
21877
22029
  setToStringTag(PromiseConstructor, PROMISE, false);
21878
22030
  setSpecies(PROMISE);
21879
22031
 
21880
- var wellKnownSymbol = wellKnownSymbol$n;
22032
+ var wellKnownSymbol = wellKnownSymbol$m;
21881
22033
 
21882
22034
  var ITERATOR = wellKnownSymbol('iterator');
21883
22035
  var SAFE_CLOSING = false;
@@ -21967,8 +22119,8 @@ var $$3 = _export;
21967
22119
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
21968
22120
  var NativePromiseConstructor = promiseNativeConstructor;
21969
22121
  var getBuiltIn$1 = getBuiltIn$8;
21970
- var isCallable = isCallable$q;
21971
- var defineBuiltIn = defineBuiltIn$b;
22122
+ var isCallable = isCallable$p;
22123
+ var defineBuiltIn = defineBuiltIn$a;
21972
22124
 
21973
22125
  var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
21974
22126
 
@@ -22457,9 +22609,6 @@ const useRequestRates = ({
22457
22609
  const {
22458
22610
  data: carriers
22459
22611
  } = useListCarriers();
22460
- const {
22461
- data: customPackageTypes
22462
- } = useListCustomPackageTypes();
22463
22612
  const {
22464
22613
  data: ratedShipment,
22465
22614
  error: ratesErrors,
@@ -22479,11 +22628,12 @@ const useRequestRates = ({
22479
22628
  var _a;
22480
22629
  // filter out DHL for domestic shipments
22481
22630
  const carrierIds = (_a = carriers === null || carriers === void 0 ? void 0 : carriers.filter(c => isInternational || !c.carrierCode.includes("dhl")).map(c => c.carrierId)) !== null && _a !== void 0 ? _a : [];
22631
+ // ignore package type if there is only one package with packageType "package", SEAPI will nullify the packageType for services that do not support packageType = "package" or custom packageTypes
22632
+ const packageTypes = shipment.packages.length === 1 && shipment.packages[0].packageCode === "package" ? [] : shipment.packages.map(p => p.packageCode);
22482
22633
  const standardRatesResponse = yield calculateRates({
22483
22634
  rateOptions: {
22484
22635
  carrierIds: shipment.carrierId ? [shipment.carrierId] : carrierIds,
22485
- packageTypes: (customPackageTypes === null || customPackageTypes === void 0 ? void 0 : customPackageTypes.find(p => p.packageId === shipment.packages[0].packageId)) ? ["package"] // Only specify package types for non-custom packages
22486
- : shipment.packages.map(pkg => pkg.packageCode),
22636
+ packageTypes: packageTypes,
22487
22637
  serviceCodes: shipment.serviceCode ? [shipment.serviceCode] : undefined
22488
22638
  },
22489
22639
  shipmentId: shipment.shipmentId
@@ -22495,7 +22645,7 @@ const useRequestRates = ({
22495
22645
  } catch (e) {}
22496
22646
  }
22497
22647
  if (standardRatesResponse) yield onRatesCalculated === null || onRatesCalculated === void 0 ? void 0 : onRatesCalculated(standardRatesResponse.rateResponse.rates, shipment);
22498
- }), [requestPreferredRates, calculateRates, carriers, customPackageTypes, getPreferredRates, onRatesCalculated]);
22648
+ }), [requestPreferredRates, calculateRates, carriers, getPreferredRates, onRatesCalculated]);
22499
22649
  const resetRates = useCallback(() => {
22500
22650
  resetPreferredRates();
22501
22651
  resetStandardRates();
@@ -23080,7 +23230,8 @@ const ConfigureShipment = _a => {
23080
23230
  features: features,
23081
23231
  onSelectRate: resetLabel,
23082
23232
  preferredRates: preferredRates,
23083
- preferredServiceCodes: mergedPreferredServiceCodes
23233
+ preferredServiceCodes: mergedPreferredServiceCodes,
23234
+ salesOrder: salesOrder
23084
23235
  }))]
23085
23236
  });
23086
23237
  };
@@ -24896,7 +25047,8 @@ var voidLabel = /*#__PURE__*/Object.freeze({
24896
25047
  });
24897
25048
 
24898
25049
  const Component$3 = () => {
24899
- return jsx(UnitSettings, {});
25050
+ const props = __rest(useUnitSettings(), []);
25051
+ return jsx(UnitSettings, Object.assign({}, props));
24900
25052
  };
24901
25053
  const Element$3 = alchemy.createElement(Component$3, ErrorFallback, {
24902
25054
  css: {
@@ -24938,7 +25090,8 @@ var manageFundingElement = /*#__PURE__*/Object.freeze({
24938
25090
  });
24939
25091
 
24940
25092
  const Component$1 = () => {
24941
- return jsx(Settings, {});
25093
+ const props = __rest(useLabelLayout(), []);
25094
+ return jsx(Settings, Object.assign({}, props));
24942
25095
  };
24943
25096
  const Element$1 = alchemy.createElement(Component$1, ErrorFallback, {
24944
25097
  css: {
@@ -24979,4 +25132,4 @@ var paymentMethodSettingsElement = /*#__PURE__*/Object.freeze({
24979
25132
  Element: Element
24980
25133
  });
24981
25134
 
24982
- export { accountSettings as AccountSettings, AddFundsForm, AutoFundingForm, ButtonGroup, CarrierBalance, CarrierConnectionCard, CarrierIcon, CarrierLogo, CellFormattedDate, CollapsiblePanel, connectCarrier as ConnectCarrier, CopyButton, Country, Cube, DateRangeCombo, DateRangeSelect, DisplayTerm, Drawer, EditBillingForm, ErrorFallback, externalCarriers as ExternalCarriers, fields as Field, FieldLabel, FormPortal, FundAndPurchase, GridController, HistoryCard, HistoryCardExtension, InlineLabel, ItemsBreakdown, labelLayoutElement as LabelLayout, labelsGrid as LabelsGrid, LinkAction, listCarriers as ListCarriers, Loader, manageFundingElement as ManageFunding, manageWarehouses as ManageWarehouses, onboarding as Onboarding, PageLayoutProvider, Pager, paymentMethodSettingsElement as PaymentMethodSettings, Portal, PoweredByShipEngine, PudoType, purchaseLabel as PurchaseLabel, purchaseLabelWorkflow as PurchaseLabelWorkflow, RootPortalProvider, Section, SettingsCard, shipmentsGrid as ShipmentsGrid, SkeletonCarrierRow, Spacer, Spread, StoryNotes, SuspendText, Tabs, themeCreator as ThemeCreator, ThemeCreatorProvider, unitSettingsElement as UnitSettings, UsState, UsaCity, viewShipment as ViewShipment, voidLabel as VoidLabel, WalletCard, WarehouseForm, addEmailToValidation, addSpaceBetweenWords, assert, autoFundingSchema, calculateTotal, capitalizeFirstLetter, convertDecimalWeightToFractionalWeight, convertDimensions, convertFractionalWeightToDecimalWeight, convertPoundsAndOuncesToOunces, convertWeight, countries, countryCodes, createCodedErrors, createDictionary, createStyles, currencySymbol, daysAfter, errorMap, euCountryCodes, extendZod, featureFlagComponentNameLookup, featureFlags, findDateLocale, formLogger, formatByDateAndLocale, formatCreditCardNumber, formatDate, formatDateDDMMYY, formatDateDDMMYYYY, formatDimensions, formatExpiration, formatFractionalWeight, formatMoney, getAddFundsSchema, getCancelledShipment, getCarrierIdByCarrierCode, getCurrencyFromString, getCurrencySymbolFromString, getCustomsFromSalesOrder, getExpirationYears, getFeatures, getIsCustomsRequiredForSalesOrder, getIsCustomsRequiredForShipment, getIsInternationalShipment, getPendingShipment, getRateRequiresAcknowledgement, getRelativeDates, getRequestedServices, getSalesOrderItemsFromSalesOrderOrShipment, getShipmentByStatus, getTotalRateAmount, getlocaleDateStringFormat, isCollectionService, isDecimalWeight, isDomesticAddress, isEmptyAddress, isFlatRatePackageCode, isMetricWeightUnit, isMilitaryAddress, isNowOrInTheFuture, isPoBox, isPoBoxAddress, isPudoEligibleRate, isString, isUnitedStatesTerritory, isUnsupportedByUps, isUpsCarrier, isUspsCarrier, moneySchema, mostRecent, nextDayCutoff, omitTime, overrideCarrierCodes$1 as overrideCarrierCodes, parseLocaleDate, pascalize, phoneSchema, phoneSchemaUnvalidated, postalCodeRegex$3 as postalCodeRegex, raise, sortByCreationDate, throwAny, throwJoinedMessages, trackingStatusFormatter, usCities, usStateCodes, usStates, useAddressValidation, useBlackboxDetection, useConfirmationOptions, useCountryCodeOptions, useCustomsContentsOptions, useCustomsNonDeliveryOptions, useDateRangeOptions, useExpirationMonthOptions, useFeatures, useInsuranceProviderOptions, useNestedForm, usePackageOptions, usePageLayout, usePager, useRateOptions, useRootPortal, useRunOnceOnTrue, useScrubErrors, useServiceCodeOptions, useServicePoints, useShipmentMetadata, useShippingPresetsOptions, useStateCodeOptions, useThemeCreator, useToggle, useWarehouseOptions, validationResolver };
25135
+ export { accountSettings as AccountSettings, AddFundsForm, AutoFundingForm, ButtonGroup, CarrierBalance, CarrierConnectionCard, CarrierIcon, CarrierLogo, CellFormattedDate, CollapsiblePanel, connectCarrier as ConnectCarrier, CopyButton, Country, Cube, DateRangeCombo, DateRangeSelect, DisplayTerm, Drawer, EditBillingForm, ErrorFallback, externalCarriers as ExternalCarriers, fields as Field, FieldLabel, FormPortal, FundAndPurchase, GridController, HistoryCard, HistoryCardExtension, InlineLabel, ItemsBreakdown, labelLayoutElement as LabelLayout, labelsGrid as LabelsGrid, LinkAction, Loader, manageFundingElement as ManageFunding, manageWalletWorkflow as ManageWalletWorkflow, manageWarehouses as ManageWarehouses, onboarding as Onboarding, PageLayoutProvider, Pager, paymentMethodSettingsElement as PaymentMethodSettings, Portal, PoweredByShipEngine, PudoType, purchaseLabel as PurchaseLabel, purchaseLabelWorkflow as PurchaseLabelWorkflow, RootPortalProvider, Section, SettingsCard, shipengineCarriers as ShipEngineCarriers, shipmentsGrid as ShipmentsGrid, SkeletonCarrierRow, Spacer, Spread, StoryNotes, SuspendText, Tabs, themeCreator as ThemeCreator, ThemeCreatorProvider, unitSettingsElement as UnitSettings, UsState, UsaCity, viewShipment as ViewShipment, voidLabel as VoidLabel, WalletCard, WarehouseForm, addEmailToValidation, addSpaceBetweenWords, assert, autoFundingSchema, calculateTotal, capitalizeFirstLetter, convertDecimalWeightToFractionalWeight, convertDimensions, convertFractionalWeightToDecimalWeight, convertPoundsAndOuncesToOunces, convertWeight, countries, countryCodes, createCodedErrors, createDictionary, createStyles, currencySymbol, daysAfter, deepMergeFeatures, errorMap, euCountryCodes, extendZod, featureFlagComponentNameLookup, featureFlags, findDateLocale, formLogger, formatByDateAndLocale, formatCreditCardNumber, formatDate, formatDateDDMMYY, formatDateDDMMYYYY, formatDimensions, formatExpiration, formatFractionalWeight, formatMoney, getAddFundsSchema, getCancelledShipment, getCarrierIdByCarrierCode, getCurrencyFromString, getCurrencySymbolFromString, getCustomsFromSalesOrder, getExpirationYears, getFeatures, getIsCustomsRequiredForSalesOrder, getIsCustomsRequiredForShipment, getIsInternationalShipment, getPendingShipment, getRateRequiresAcknowledgement, getRelativeDates, getRequestedServices, getSalesOrderItemsFromSalesOrderOrShipment, getShipmentByStatus, getTotalRateAmount, getlocaleDateStringFormat, isCollectionService, isDecimalWeight, isDomesticAddress, isEmptyAddress, isFlatRatePackageCode, isMetricWeightUnit, isMilitaryAddress, isNowOrInTheFuture, isObject$4 as isObject, isPoBox, isPoBoxAddress, isPudoEligibleRate, isString, isUnitedStatesTerritory, isUnsupportedByUps, isUpsCarrier, isUspsCarrier, moneySchema, mostRecent, nextDayCutoff, omitTime, overrideCarrierCodes$1 as overrideCarrierCodes, parseLocaleDate, pascalize, phoneSchema, phoneSchemaUnvalidated, postalCodeRegex$1 as postalCodeRegex, raise, sortByCreationDate, throwAny, throwJoinedMessages, trackingStatusFormatter, usCities, usStateCodes, usStates, useAddressValidation, useBlackboxDetection, useConfirmationOptions, useCountryCodeOptions, useCustomsContentsOptions, useCustomsNonDeliveryOptions, useDateRangeOptions, useExpirationMonthOptions, useFeatures, useInsuranceProviderOptions, useNestedForm, usePackageOptions, usePageLayout, usePager, useRateOptions, useRootPortal, useRunOnceOnTrue, useScrubErrors, useServiceCodeOptions, useServicePoints, useShipmentMetadata, useShippingPresetsOptions, useStateCodeOptions, useThemeCreator, useToggle, useWarehouseOptions, validationResolver };