@shipengine/elements 0.33.0 → 0.34.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.
package/index.cjs CHANGED
@@ -4519,10 +4519,10 @@ const useBlackboxDetection = ({
4519
4519
  }) => {
4520
4520
  React.useEffect(() => {
4521
4521
  // basic configurations must be on page before snare.js is loaded
4522
- global.window.io_install_stm = false; // do not install Active X
4523
- global.window.io_exclude_stm = 12; // do not run Active X
4524
- global.window.io_install_flash = false; // do not install Flash
4525
- global.window.io_enable_rip = true; // collect Real IP information
4522
+ window.io_install_stm = false; // do not install Active X
4523
+ window.io_exclude_stm = 12; // do not run Active X
4524
+ window.io_install_flash = false; // do not install Flash
4525
+ window.io_enable_rip = true; // collect Real IP information
4526
4526
  const pollBlackBox = () => {
4527
4527
  try {
4528
4528
  if (typeof ioGetBlackbox !== "function") {
@@ -4541,7 +4541,7 @@ const useBlackboxDetection = ({
4541
4541
  };
4542
4542
  const intervalId = setInterval(pollBlackBox, 500);
4543
4543
  // attach script to DOM
4544
- const script = global.document.createElement("script");
4544
+ const script = document.createElement("script");
4545
4545
  script.type = "text/javascript";
4546
4546
  script.async = true;
4547
4547
  script.src = "https://mpsnare.iesnare.com/snare.js";
@@ -4550,16 +4550,16 @@ const useBlackboxDetection = ({
4550
4550
  onError();
4551
4551
  }
4552
4552
  });
4553
- global.document.head.appendChild(script);
4553
+ document.head.appendChild(script);
4554
4554
  return () => {
4555
4555
  if (intervalId) {
4556
4556
  clearTimeout(intervalId);
4557
4557
  }
4558
- delete global.window.io_install_stm;
4559
- delete global.window.io_exclude_stm;
4560
- delete global.window.io_install_flash;
4561
- delete global.window.io_enable_rip;
4562
- global.document.head.removeChild(script);
4558
+ delete window.io_install_stm;
4559
+ delete window.io_exclude_stm;
4560
+ delete window.io_install_flash;
4561
+ delete window.io_enable_rip;
4562
+ document.head.removeChild(script);
4563
4563
  };
4564
4564
  }, [onSuccess, onError]);
4565
4565
  };
@@ -7455,6 +7455,7 @@ const getWrapperStyles = theme => /*#__PURE__*/css.css(process.env.NODE_ENV ===
7455
7455
 
7456
7456
  const DatePickerController = createFieldController();
7457
7457
  const DatePicker = fieldProps => {
7458
+ const alchemy$1 = React.useContext(alchemy.AlchemyContext);
7458
7459
  const theme = react.useTheme();
7459
7460
  const datePickerRef = React.useRef(null);
7460
7461
  return jsxRuntime.jsx(DatePickerController, Object.assign({}, fieldProps, {
@@ -7475,7 +7476,7 @@ const DatePicker = fieldProps => {
7475
7476
  css: getOverrideStyles(theme)
7476
7477
  }, {
7477
7478
  children: jsxRuntime.jsx(ReactDatePicker__default["default"], Object.assign({
7478
- locale: LOCALE
7479
+ locale: alchemy$1 === null || alchemy$1 === void 0 ? void 0 : alchemy$1.locale
7479
7480
  }, datePickerProps, {
7480
7481
  customInput: /*#__PURE__*/React.createElement( /*#__PURE__*/React.forwardRef(function InputWrapper(_a, forwardedRef) {
7481
7482
  var _b;
@@ -8846,16 +8847,8 @@ const AddFundsForm = ({
8846
8847
  }))]
8847
8848
  }))]
8848
8849
  })]
8849
- })), addFunds.error && jsxRuntime.jsxs(jsxRuntime.Fragment, {
8850
- children: [jsxRuntime.jsx(Spacer, {
8851
- multiplier: 1
8852
- }), jsxRuntime.jsx(giger.InlineNotification, Object.assign({
8853
- title: t("manage-funding:addFunds.error.title"),
8854
- type: giger.NotificationType.ERROR
8855
- }, {
8856
- children: addFunds.error[0].message
8857
- }))]
8858
- }), children === null || children === void 0 ? void 0 : children({
8850
+ })), children === null || children === void 0 ? void 0 : children({
8851
+ error: addFunds.error,
8859
8852
  isCustomAmount: selectedChip.value === "custom",
8860
8853
  isSubmitted,
8861
8854
  isSubmitting,
@@ -9197,6 +9190,12 @@ const AddressParser = ({
9197
9190
  const payload = values;
9198
9191
  onSubmit(payload);
9199
9192
  }));
9193
+ form.watch((data, {
9194
+ name
9195
+ }) => {
9196
+ var _a;
9197
+ if (name === "fullAddress" && ((_a = data.fullAddress) === null || _a === void 0 ? void 0 : _a.length) == null) reset === null || reset === void 0 ? void 0 : reset();
9198
+ });
9200
9199
  const errors = (parseErrors === null || parseErrors === void 0 ? void 0 : parseErrors.length) ? [t("errorMessages.parsingFailure")] : undefined;
9201
9200
  const formInterface = jsxRuntime.jsxs(jsxRuntime.Fragment, {
9202
9201
  children: [jsxRuntime.jsx(TextArea, {
@@ -9814,29 +9813,23 @@ const AddressPreferenceSelect = ({
9814
9813
  case "ERROR":
9815
9814
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
9816
9815
  children: [jsxRuntime.jsx(Spacer, {
9817
- multiplier: 1
9816
+ multiplier: 2
9818
9817
  }), jsxRuntime.jsx(giger.GridChild, Object.assign({
9819
- colSpan: 8,
9820
- css: theme => ({
9821
- paddingLeft: theme.spacing(1)
9822
- })
9818
+ colSpan: 8
9823
9819
  }, {
9824
9820
  children: jsxRuntime.jsx(giger.InlineNotification, Object.assign({
9821
+ title: t("address.preference.addressNotValidated"),
9825
9822
  type: giger.NotificationType.ALERT
9826
9823
  }, {
9827
9824
  children: t("address.preference.unableToValidate")
9828
9825
  }))
9829
9826
  })), jsxRuntime.jsx(Spacer, {
9830
- multiplier: 1
9831
- }), jsxRuntime.jsx(giger.GridChild, Object.assign({
9832
- css: theme => ({
9833
- paddingLeft: theme.spacing(1)
9834
- })
9835
- }, {
9827
+ multiplier: 2
9828
+ }), jsxRuntime.jsx(giger.GridChild, {
9836
9829
  children: jsxRuntime.jsx(AddressDisplay, {
9837
9830
  address: (_b = warehousePreference.validation) === null || _b === void 0 ? void 0 : _b.originalAddress
9838
9831
  })
9839
- }))]
9832
+ })]
9840
9833
  });
9841
9834
  default:
9842
9835
  // This code path should never be reached.
@@ -9859,7 +9852,7 @@ const AddressPreferenceSelect = ({
9859
9852
  children: t("common:address.preference.title")
9860
9853
  }))
9861
9854
  })), jsxRuntime.jsxs(giger.GridChild, Object.assign({
9862
- colSpan: 8
9855
+ colSpan: 12
9863
9856
  }, {
9864
9857
  children: [jsxRuntime.jsx(giger.Typography, Object.assign({
9865
9858
  css: {
@@ -10231,10 +10224,7 @@ const WalletForm = ({
10231
10224
  return [...(errors !== null && errors !== void 0 ? errors : []), blackBoxError];
10232
10225
  });
10233
10226
  },
10234
- onSuccess: bb => {
10235
- console.log("bb", bb);
10236
- form.setValue("iovationBlackbox", bb);
10237
- }
10227
+ onSuccess: bb => form.setValue("iovationBlackbox", bb)
10238
10228
  });
10239
10229
  const watchAddress = form.watch("address");
10240
10230
  const handleSubmit = form.handleSubmit(values => __awaiter(void 0, void 0, void 0, function* () {
@@ -10924,7 +10914,8 @@ const styles$e = createStyles({
10924
10914
  display: "flex",
10925
10915
  flexDirection: "column",
10926
10916
  paddingBottom: theme.spacing(8),
10927
- paddingTop: theme.spacing(2)
10917
+ paddingTop: theme.spacing(2),
10918
+ textAlign: "center"
10928
10919
  }),
10929
10920
  termsLink: theme => ({
10930
10921
  alignItems: "center",
@@ -11986,7 +11977,8 @@ const styles$a = createStyles({
11986
11977
  });
11987
11978
 
11988
11979
  const LandingPage = ({
11989
- onSubmit
11980
+ onSubmit,
11981
+ partnerName
11990
11982
  }) => {
11991
11983
  const {
11992
11984
  t
@@ -12028,7 +12020,9 @@ const LandingPage = ({
12028
12020
  css: styles$a.description,
12029
12021
  variant: "body1"
12030
12022
  }, {
12031
- children: t("onboarding:landing.messageLine1")
12023
+ children: partnerName ? t("onboarding:landing.partnerMessageLine1", {
12024
+ partnerName: partnerName
12025
+ }) : t("onboarding:landing.messageLine1")
12032
12026
  })), jsxRuntime.jsx(Spacer, {
12033
12027
  multiplier: 2
12034
12028
  }), jsxRuntime.jsx(giger.Typography, Object.assign({
@@ -12482,7 +12476,7 @@ const WarehouseForm = ({
12482
12476
  control: form.control,
12483
12477
  "data-testid": "warehouseFormSubmitButton",
12484
12478
  form: "warehouse-form",
12485
- requireDirty: true,
12479
+ requireDirty: !warehouse,
12486
12480
  variant: _isOnboarding ? giger.ButtonVariant.FILLED : giger.ButtonVariant.OUTLINED
12487
12481
  }, {
12488
12482
  children: submitButtonTitle
@@ -12699,11 +12693,21 @@ const styles$6 = createStyles({
12699
12693
  container: theme => ({
12700
12694
  padding: theme.spacing(2)
12701
12695
  }),
12696
+ iconTooltip: theme => ({
12697
+ color: theme.palette.secondary.main,
12698
+ display: "inline-block",
12699
+ marginLeft: theme.spacing(1),
12700
+ verticalAlign: "middle"
12701
+ }),
12702
12702
  step: {
12703
12703
  "& > span:last-child": {
12704
12704
  position: "static"
12705
12705
  }
12706
12706
  },
12707
+ tooltipContainer: () => ({
12708
+ maxWidth: "260px",
12709
+ textAlign: "left"
12710
+ }),
12707
12711
  walletFormHeader: theme => ({
12708
12712
  margin: theme.spacing(4)
12709
12713
  }),
@@ -12719,18 +12723,20 @@ const styles$6 = createStyles({
12719
12723
 
12720
12724
  const Onboarding = ({
12721
12725
  connectedCarriers,
12726
+ createFundingSource,
12727
+ createFundingSourceErrors,
12722
12728
  createWarehouse,
12723
12729
  features,
12724
12730
  fundingSources,
12725
12731
  isRegisteringCarriers,
12732
+ onboardingAddress,
12726
12733
  onCarrierCreated,
12727
12734
  onCompleteOnboarding,
12728
12735
  onFundingSourceCreated,
12729
12736
  onWarehouseCreated,
12737
+ partnerName,
12730
12738
  registerCarrier,
12731
12739
  registerCarrierErrors,
12732
- createFundingSource,
12733
- createFundingSourceErrors,
12734
12740
  warehouses
12735
12741
  }) => {
12736
12742
  var _a, _b, _c;
@@ -12764,6 +12770,7 @@ const Onboarding = ({
12764
12770
  const hasDhl = connectedCarriers === null || connectedCarriers === void 0 ? void 0 : connectedCarriers.some(c => c.carrierCode === "dhl_express_worldwide");
12765
12771
  const fundingSourceId = (fundingSources === null || fundingSources === void 0 ? void 0 : fundingSources.length) ? fundingSources[0].fundingSourceId : undefined;
12766
12772
  const hasCompletedOnboarding = onboardingComplete || warehouses.length && hasStampsWallet && (hasUps || !upsEnabled) && hasDhl;
12773
+ const containerRef = React.useRef(null);
12767
12774
  const currentStep = React.useMemo(() => {
12768
12775
  if (hasCompletedOnboarding) {
12769
12776
  return 5;
@@ -12876,7 +12883,8 @@ const Onboarding = ({
12876
12883
  }
12877
12884
  // Step 1: Landing Page
12878
12885
  if (!email) return jsxRuntime.jsx(LandingPage, {
12879
- onSubmit: e => setEmail(e)
12886
+ onSubmit: e => setEmail(e),
12887
+ partnerName: partnerName
12880
12888
  });
12881
12889
  // Step 2: Agree to Terms and Conditions
12882
12890
  if (!agreedToTerms) {
@@ -12925,7 +12933,8 @@ const Onboarding = ({
12925
12933
  onSubmit: payload => __awaiter(void 0, void 0, void 0, function* () {
12926
12934
  return handleCreateWarehouse(payload);
12927
12935
  }),
12928
- submitButtonTitle: t("actions.continue")
12936
+ submitButtonTitle: t("actions.continue"),
12937
+ warehouse: onboardingAddress
12929
12938
  })
12930
12939
  }));
12931
12940
  }
@@ -12948,21 +12957,39 @@ const Onboarding = ({
12948
12957
  variant: "subtitle1"
12949
12958
  }, {
12950
12959
  children: t("register-wallet:sections.billing.cardSubTitle")
12960
+ })), jsxRuntime.jsx(giger.IconTooltip, Object.assign({
12961
+ container: containerRef.current,
12962
+ css: styles$6.iconTooltip,
12963
+ icon: gigerTheme.IconNames.INFO_FILLED,
12964
+ placement: "auto",
12965
+ size: giger.IconSize.SIZE_MEDIUM
12966
+ }, {
12967
+ children: jsxRuntime.jsxs("div", Object.assign({
12968
+ css: styles$6.tooltipContainer
12969
+ }, {
12970
+ children: [jsxRuntime.jsx(giger.Typography, Object.assign({
12971
+ bold: true,
12972
+ variant: "small"
12973
+ }, {
12974
+ children: t("register-wallet:sections.notifications.info.title")
12975
+ })), jsxRuntime.jsx(Spacer, {
12976
+ multiplier: 1
12977
+ }), jsxRuntime.jsx(giger.Typography, Object.assign({
12978
+ variant: "small"
12979
+ }, {
12980
+ children: t("register-wallet:sections.notifications.info.description")
12981
+ }))]
12982
+ }))
12951
12983
  }))]
12952
12984
  })), jsxRuntime.jsx(Spacer, {
12953
12985
  multiplier: 1
12954
- }), (createFundingSourceErrors === null || createFundingSourceErrors === void 0 ? void 0 : createFundingSourceErrors.length) ? jsxRuntime.jsx(giger.InlineNotification, Object.assign({
12986
+ }), !!(createFundingSourceErrors === null || createFundingSourceErrors === void 0 ? void 0 : createFundingSourceErrors.length) && jsxRuntime.jsx(giger.InlineNotification, Object.assign({
12955
12987
  title: t("register-wallet:sections.notifications.error.title"),
12956
12988
  type: giger.NotificationType.ERROR
12957
12989
  }, {
12958
12990
  children: createFundingSourceErrors.map(({
12959
12991
  message
12960
12992
  }) => message).join(" ")
12961
- })) : jsxRuntime.jsx(giger.InlineNotification, Object.assign({
12962
- title: t("register-wallet:sections.notifications.info.title"),
12963
- type: giger.NotificationType.INFO
12964
- }, {
12965
- children: t("register-wallet:sections.notifications.info.description")
12966
12993
  }))]
12967
12994
  })),
12968
12995
  onSubmit: payload => __awaiter(void 0, void 0, void 0, function* () {
@@ -13020,14 +13047,15 @@ const Onboarding = ({
13020
13047
  });
13021
13048
  };
13022
13049
  return jsxRuntime.jsxs("div", Object.assign({
13023
- css: styles$6.container
13050
+ css: styles$6.container,
13051
+ ref: containerRef
13024
13052
  }, {
13025
13053
  children: [jsxRuntime.jsxs(giger.Stepper, Object.assign({
13026
13054
  currentStep: currentStep
13027
13055
  }, {
13028
13056
  children: [jsxRuntime.jsx(giger.Step, {
13029
13057
  css: styles$6.step,
13030
- label: t("onboarding:steps.login")
13058
+ label: t("onboarding:steps.register")
13031
13059
  }), jsxRuntime.jsx(giger.Step, {
13032
13060
  css: styles$6.step,
13033
13061
  label: t("onboarding:steps.carriers")
@@ -13036,7 +13064,7 @@ const Onboarding = ({
13036
13064
  label: t("onboarding:steps.addresses")
13037
13065
  }), jsxRuntime.jsx(giger.Step, {
13038
13066
  css: styles$6.step,
13039
- label: t("onboarding:steps.payment")
13067
+ label: t("onboarding:steps.billing")
13040
13068
  })]
13041
13069
  })), renderStep(), ((_c = features === null || features === void 0 ? void 0 : features.presentation) === null || _c === void 0 ? void 0 : _c.poweredByShipEngine) && jsxRuntime.jsxs(jsxRuntime.Fragment, {
13042
13070
  children: [jsxRuntime.jsx(Spacer, {}), jsxRuntime.jsx(PoweredByShipEngine, {})]
@@ -13110,29 +13138,6 @@ const Cube = _a => {
13110
13138
  };
13111
13139
 
13112
13140
  const styles$5 = createStyles({
13113
- balanceText: theme => ({
13114
- color: theme.palette.secondary.dark
13115
- }),
13116
- container: theme => ({
13117
- padding: `${theme.spacing(3)}px ${theme.spacing(4)}px`
13118
- }),
13119
- getFormExtension: isCustomAmount => theme => ({
13120
- backgroundColor: theme.palette.gray.ultraLight,
13121
- display: "flex",
13122
- flexDirection: "column",
13123
- gap: theme.spacing(1),
13124
- // Negative margin is to compensate for the padding on AddFundsForm, since we want this
13125
- // section to seemlessly extend the form's well.
13126
- marginTop: theme.spacing(isCustomAmount ? -1.5 : -1),
13127
- padding: theme.spacing(2),
13128
- paddingTop: 0
13129
- }),
13130
- saveRateButton: {
13131
- whiteSpace: "nowrap"
13132
- }
13133
- });
13134
-
13135
- const styles$4 = createStyles({
13136
13141
  icon: theme => ({
13137
13142
  color: theme.palette.primary.main,
13138
13143
  marginRight: theme.spacing(2)
@@ -13177,10 +13182,10 @@ const Section = _a => {
13177
13182
  rest = __rest(_a, ["bold", "title", "children", "rightContent"]);
13178
13183
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
13179
13184
  children: [title && jsxRuntime.jsx("summary", Object.assign({
13180
- css: styles$4.summary
13185
+ css: styles$5.summary
13181
13186
  }, {
13182
13187
  children: jsxRuntime.jsxs("div", Object.assign({
13183
- css: styles$4.summaryWrapper
13188
+ css: styles$5.summaryWrapper
13184
13189
  }, {
13185
13190
  children: [jsxRuntime.jsx(giger.Typography, Object.assign({
13186
13191
  bold: bold,
@@ -13188,19 +13193,42 @@ const Section = _a => {
13188
13193
  }, {
13189
13194
  children: title
13190
13195
  })), rightContent && jsxRuntime.jsx("div", Object.assign({
13191
- css: styles$4.rightContentWrapper
13196
+ css: styles$5.rightContentWrapper
13192
13197
  }, {
13193
13198
  children: rightContent
13194
13199
  }))]
13195
13200
  }))
13196
13201
  })), jsxRuntime.jsx("section", Object.assign({
13197
- css: styles$4.section
13202
+ css: styles$5.section
13198
13203
  }, rest, {
13199
13204
  children: children
13200
13205
  }))]
13201
13206
  });
13202
13207
  };
13203
13208
 
13209
+ const styles$4 = createStyles({
13210
+ balanceText: theme => ({
13211
+ color: theme.palette.secondary.dark
13212
+ }),
13213
+ container: theme => ({
13214
+ padding: `${theme.spacing(3)}px ${theme.spacing(4)}px`
13215
+ }),
13216
+ getFormExtension: isCustomAmount => theme => ({
13217
+ backgroundColor: theme.palette.gray.ultraLight,
13218
+ display: "flex",
13219
+ flexDirection: "column",
13220
+ gap: theme.spacing(1),
13221
+ // Negative margin is to compensate for the padding on AddFundsForm, since we want this
13222
+ // section to seemlessly extend the form's well.
13223
+ marginTop: theme.spacing(isCustomAmount ? -1.5 : -1),
13224
+ padding: theme.spacing(2),
13225
+ paddingTop: 0
13226
+ }),
13227
+ saveRateButton: {
13228
+ whiteSpace: "nowrap"
13229
+ }
13230
+ });
13231
+
13204
13232
  /**
13205
13233
  * Fund and Purchase handles the label purchase submission UX, ensuring that a user
13206
13234
  * has the necessary funds available and can add them if not. It allows a single button
@@ -13266,7 +13294,7 @@ const FundAndPurchase = ({
13266
13294
  }, {
13267
13295
  children: [jsxRuntime.jsx(giger.Button, Object.assign({
13268
13296
  bold: false,
13269
- css: styles$5.saveRateButton,
13297
+ css: styles$4.saveRateButton,
13270
13298
  disabled: disabled || !carrierId || addFundsForm.isSubmitting || isRateFormSubmitting,
13271
13299
  isLoading: isSavingRate,
13272
13300
  onClick: handleSaveRate,
@@ -13286,7 +13314,7 @@ const FundAndPurchase = ({
13286
13314
  // render when no rate has been selected yet
13287
13315
  if (!carrierId) return jsxRuntime.jsxs("div", Object.assign({
13288
13316
  className: className,
13289
- css: styles$5.container
13317
+ css: styles$4.container
13290
13318
  }, {
13291
13319
  children: [jsxRuntime.jsxs(Spread, {
13292
13320
  children: [jsxRuntime.jsx(CarrierBalance, {
@@ -13310,7 +13338,7 @@ const FundAndPurchase = ({
13310
13338
  // show balance, but not the funding form.
13311
13339
  if (!isFundingEnabled) return jsxRuntime.jsxs("div", Object.assign({
13312
13340
  className: className,
13313
- css: styles$5.container
13341
+ css: styles$4.container
13314
13342
  }, {
13315
13343
  children: [jsxRuntime.jsx(CarrierBalance, {
13316
13344
  carrierId: carrierId
@@ -13352,13 +13380,13 @@ const FundAndPurchase = ({
13352
13380
  var _a, _b;
13353
13381
  return jsxRuntime.jsxs(jsxRuntime.Fragment, {
13354
13382
  children: [jsxRuntime.jsxs("section", Object.assign({
13355
- css: styles$5.getFormExtension(addFundsForm.isCustomAmount)
13383
+ css: styles$4.getFormExtension(addFundsForm.isCustomAmount)
13356
13384
  }, {
13357
13385
  children: [jsxRuntime.jsx(InlineLabel, Object.assign({
13358
13386
  label: t("manage-funding:fundAndPurchase.newBalance")
13359
13387
  }, {
13360
13388
  children: jsxRuntime.jsx(giger.Typography, Object.assign({
13361
- css: styles$5.balanceText
13389
+ css: styles$4.balanceText
13362
13390
  }, {
13363
13391
  children: formatMoney({
13364
13392
  amount: balance + ((_a = addFundsForm.selectedAmount) !== null && _a !== void 0 ? _a : 0),
@@ -13369,7 +13397,7 @@ const FundAndPurchase = ({
13369
13397
  label: t("manage-funding:fundAndPurchase.finalBalance")
13370
13398
  }, {
13371
13399
  children: jsxRuntime.jsx(giger.Typography, Object.assign({
13372
- css: styles$5.balanceText
13400
+ css: styles$4.balanceText
13373
13401
  }, {
13374
13402
  children: formatMoney({
13375
13403
  amount: balance + ((_b = addFundsForm.selectedAmount) !== null && _b !== void 0 ? _b : 0) - purchaseAmount,
@@ -13389,6 +13417,15 @@ const FundAndPurchase = ({
13389
13417
  }))]
13390
13418
  })), jsxRuntime.jsx(Spacer, {
13391
13419
  multiplier: 2
13420
+ }), addFundsForm.error && jsxRuntime.jsxs(jsxRuntime.Fragment, {
13421
+ children: [jsxRuntime.jsx(giger.InlineNotification, Object.assign({
13422
+ title: t("manage-funding:addFunds.error.title"),
13423
+ type: giger.NotificationType.ERROR
13424
+ }, {
13425
+ children: addFundsForm.error[0].message
13426
+ })), jsxRuntime.jsx(Spacer, {
13427
+ multiplier: 2
13428
+ })]
13392
13429
  }), renderActionButtons(addFundsForm)]
13393
13430
  });
13394
13431
  }
@@ -15780,18 +15817,19 @@ var onboarding$1 = {
15780
15817
  title: "Onboarding",
15781
15818
  inlineTitle: "Why are we asking?",
15782
15819
  landing: {
15783
- action: "Login",
15820
+ action: "Register",
15784
15821
  title: "Register Your Account",
15785
15822
  subtitle: "Enter your email address to start shipping with discounted carrier rates",
15786
15823
  welcome: "Welcome",
15787
- messageLine1: "Simplify your shipping workflow – no subscription required.",
15788
- messageLine2: "You can compare carrier services, ship domestic and international orders, and manage your postage payments."
15824
+ messageLine1: "Simplify your shipping workflow.",
15825
+ partnerMessageLine1: "Simplify your shipping workflow inside {{partnerName}}.",
15826
+ messageLine2: "Let’s begin your account registration so that you can compare carrier services, ship domestic and international orders, and manage your postage payments."
15789
15827
  },
15790
15828
  steps: {
15791
- login: "Login",
15829
+ register: "Register",
15792
15830
  carriers: "Carriers",
15793
15831
  addresses: "Addresses",
15794
- payment: "Payment"
15832
+ billing: "Billing"
15795
15833
  },
15796
15834
  warehouse: {
15797
15835
  title: "Ship From Address",
@@ -15921,8 +15959,8 @@ var registerWallet = {
15921
15959
  "register-wallet": {
15922
15960
  sections: {
15923
15961
  setup: {
15924
- title: "Carriers Agreement",
15925
- subtitle: "Our service is including these carriers by default",
15962
+ title: "Activate Carriers",
15963
+ subtitle: "Activate the carriers in our service by agreeing to the carriers Terms of Service",
15926
15964
  descriptionTitle: "What is a wallet?",
15927
15965
  description: "Explaining the benefits of the wallet here"
15928
15966
  },
@@ -15942,7 +15980,7 @@ var registerWallet = {
15942
15980
  },
15943
15981
  info: {
15944
15982
  title: "Why we are asking?",
15945
- description: "Your account balance handles the cost of labels, insurance and carrier adjustments."
15983
+ description: "We are offering a secure account balance to handle the cost of labels, insurance and carrier adjustments."
15946
15984
  },
15947
15985
  poBox: {
15948
15986
  title: "PO Box cannot be used for Billing",
@@ -16078,7 +16116,9 @@ var accountSettings = /*#__PURE__*/Object.freeze({
16078
16116
 
16079
16117
  const Component$3 = ({
16080
16118
  features,
16081
- onCompleteOnboarding
16119
+ onboardingAddress,
16120
+ onCompleteOnboarding,
16121
+ partnerName
16082
16122
  }) => {
16083
16123
  const {
16084
16124
  t
@@ -16131,10 +16171,12 @@ const Component$3 = ({
16131
16171
  features: features,
16132
16172
  fundingSources: fundingSources,
16133
16173
  isRegisteringCarriers: registeringCarriers || creatingFundingSource,
16174
+ onboardingAddress: onboardingAddress,
16134
16175
  onCarrierCreated: onCarrierCreated,
16135
16176
  onCompleteOnboarding: onCompleteOnboarding,
16136
16177
  onFundingSourceCreated: onFundingSourceCreated,
16137
16178
  onWarehouseCreated: onWarehouseCreated,
16179
+ partnerName: partnerName,
16138
16180
  registerCarrier: registerCarrier,
16139
16181
  registerCarrierErrors: registerCarrierErrors,
16140
16182
  warehouses: warehouses
@@ -16145,6 +16187,8 @@ const Element$4 = alchemy__default["default"].createElement(Component$3, ErrorFa
16145
16187
  height: "100%",
16146
16188
  maxWidth: "800px",
16147
16189
  minWidth: "440px",
16190
+ overflow: "auto",
16191
+ scrollbarGutter: "stable both-edges",
16148
16192
  width: "100%"
16149
16193
  },
16150
16194
  resources: {