@mercurjs/admin 2.1.1 → 2.1.2-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/{add-campaign-promotions-WILFAFL4.js → add-campaign-promotions-NBZZUJRI.js} +3 -3
  2. package/dist/{campaign-detail-S44LA6AX.js → campaign-detail-WIFJRZ5U.js} +4 -4
  3. package/dist/{chunk-OVB4R5U5.js → chunk-2MNDOYVE.js} +3 -2
  4. package/dist/{chunk-7IKRJNID.js → chunk-4JN4BMC7.js} +1 -1
  5. package/dist/{chunk-Z433IE4R.js → chunk-5AGYKTCN.js} +1 -1
  6. package/dist/{chunk-NYOSVNJ4.js → chunk-7AMAENN3.js} +1 -1
  7. package/dist/{chunk-TVL4IXSL.js → chunk-BURG4MO3.js} +8 -8
  8. package/dist/{chunk-JRFNFYXA.js → chunk-CQFXSD2L.js} +1 -1
  9. package/dist/{chunk-BAJODL3V.js → chunk-GIU72QEP.js} +1 -1
  10. package/dist/{chunk-FQFW3DUZ.js → chunk-HO7Z6MC3.js} +1 -1
  11. package/dist/{chunk-3TOCWPCQ.js → chunk-NNCIV74Y.js} +5 -5
  12. package/dist/{chunk-3U4C3UKN.js → chunk-OF4WDRBY.js} +1 -1
  13. package/dist/{chunk-5Q2DL7Z2.js → chunk-Q3JUPLQV.js} +1 -1
  14. package/dist/{chunk-WX6UWXY6.js → chunk-Q64H5G5C.js} +3 -3
  15. package/dist/{chunk-YJNCEGX4.js → chunk-QOQSXNEF.js} +3 -1
  16. package/dist/{chunk-LET54CD5.js → chunk-QZBAACYC.js} +3 -2
  17. package/dist/{chunk-LVLDW6FV.js → chunk-TDQEXNX5.js} +1 -1
  18. package/dist/{chunk-P5VTTPU2.js → chunk-UEFWVPQ7.js} +1 -1
  19. package/dist/{chunk-NEAMPCCU.js → chunk-VBJFCAKU.js} +20 -11
  20. package/dist/{chunk-H55UROTU.js → chunk-VC3WCDSC.js} +1 -1
  21. package/dist/{chunk-6KIROGNM.js → chunk-VTK4AZCW.js} +1 -1
  22. package/dist/{chunk-ZEBQKDHR.js → chunk-XII5XCYR.js} +1 -1
  23. package/dist/{chunk-IXHIM2HR.js → chunk-XILJNA3R.js} +1 -1
  24. package/dist/{chunk-DSIZONVE.js → chunk-XZYRXNWO.js} +3 -1
  25. package/dist/{chunk-SMPTZ2RM.js → chunk-Y3I3LXKW.js} +24 -15
  26. package/dist/{chunk-NSUWKSBC.js → chunk-YU7EUWRO.js} +1 -1
  27. package/dist/{chunk-3CU7XPUR.js → chunk-Z4CSKRJ4.js} +1 -1
  28. package/dist/{chunk-PJSWOWXT.js → chunk-ZQW43GJA.js} +545 -14
  29. package/dist/{collection-list-7L64AQM5.js → collection-list-OFZNSMTS.js} +2 -2
  30. package/dist/{commission-rate-create-CUSB36XK.js → commission-rate-create-US6HFJ5L.js} +22 -22
  31. package/dist/{commission-rate-detail-7I4M7GOE.js → commission-rate-detail-D5WUXKER.js} +1 -1
  32. package/dist/{commission-rate-edit-KPY5EXDK.js → commission-rate-edit-VA6VE2H4.js} +20 -18
  33. package/dist/{commission-rate-list-CFKHN2F5.js → commission-rate-list-TFMQC26F.js} +1 -1
  34. package/dist/index.js +48 -48
  35. package/dist/{login-T5DP5BZ3.js → login-EWHQY6G3.js} +1 -1
  36. package/dist/{order-detail-PSJFXQV7.js → order-detail-SFIBIQTI.js} +1 -1
  37. package/dist/{order-edit-billing-address-2WTUR5PX.js → order-edit-billing-address-3I2USVYP.js} +1 -1
  38. package/dist/{order-list-DEFD5MI5.js → order-list-IDKVSUYO.js} +2 -2
  39. package/dist/pages/index.js +25 -25
  40. package/dist/{payout-detail-C5WLFRRT.js → payout-detail-DZFTTDUR.js} +1 -1
  41. package/dist/{payout-list-WQIMALHI.js → payout-list-75YIMPCS.js} +1 -1
  42. package/dist/{product-create-WVC72ZZ2.js → product-create-5QGZGWVR.js} +3 -3
  43. package/dist/{product-detail-7T5PLGCJ.js → product-detail-XXA3V6V3.js} +2 -2
  44. package/dist/{product-export-773L2V63.js → product-export-IJBCSQ5H.js} +1 -1
  45. package/dist/{product-list-G23MTE7S.js → product-list-XXSHUGNI.js} +1 -1
  46. package/dist/{product-media-CBKZEHLD.js → product-media-ZU65PJHB.js} +2 -2
  47. package/dist/{product-tag-detail-U3TJRILA.js → product-tag-detail-2H7EJV5J.js} +1 -1
  48. package/dist/{product-tag-list-CT33WG55.js → product-tag-list-6LTEJAI7.js} +2 -2
  49. package/dist/{product-variant-detail-7UVACNQV.js → product-variant-detail-T2OM45NJ.js} +2 -2
  50. package/dist/{promotion-detail-6ZCWQYON.js → promotion-detail-C2Z7FGWU.js} +3 -3
  51. package/dist/{promotion-list-ZARTSDFP.js → promotion-list-M2EGW2DU.js} +4 -4
  52. package/dist/{refund-reason-list-VLARTCJF.js → refund-reason-list-7G23NIRL.js} +2 -2
  53. package/dist/{reset-password-J4XCWJXV.js → reset-password-IPDGIVOR.js} +1 -1
  54. package/dist/{return-reason-list-IGZ3HCXY.js → return-reason-list-J5S45BMZ.js} +2 -2
  55. package/dist/{store-details-NFUGBVH3.js → store-details-6NDWU65D.js} +2 -2
  56. package/dist/{store-edit-U2Q6LMXR.js → store-edit-UFA6UH4Q.js} +2 -2
  57. package/dist/{store-list-CWVEPRJM.js → store-list-TJXHXAPH.js} +2 -2
  58. package/dist/{tax-region-create-CQCW6ELU.js → tax-region-create-AIWG4DWV.js} +1 -1
  59. package/dist/{tax-region-tax-override-create-GLAYEGAP.js → tax-region-tax-override-create-2MNB5QSB.js} +2 -2
  60. package/dist/{tax-region-tax-override-edit-JZDKFEJC.js → tax-region-tax-override-edit-JCG5D2HY.js} +2 -2
  61. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CollectionListPage
3
- } from "./chunk-IXHIM2HR.js";
3
+ } from "./chunk-XILJNA3R.js";
4
4
  import "./chunk-JQV7CXEC.js";
5
5
  import "./chunk-JHIMVLB2.js";
6
6
  import "./chunk-PHOCVOZ5.js";
@@ -24,7 +24,7 @@ import "./chunk-I5THQVYP.js";
24
24
  import "./chunk-VIGX66F7.js";
25
25
  import "./chunk-CMHI2RPL.js";
26
26
  import "./chunk-S2WEYEQR.js";
27
- import "./chunk-FQFW3DUZ.js";
27
+ import "./chunk-HO7Z6MC3.js";
28
28
  import "./chunk-MG4GKUJW.js";
29
29
  import "./chunk-AYVH6Q5O.js";
30
30
  import "./chunk-VOHEQ7B5.js";
@@ -2,7 +2,7 @@ import {
2
2
  TargetForm,
3
3
  TargetItem,
4
4
  TaxRateRuleReferenceSchema
5
- } from "./chunk-NYOSVNJ4.js";
5
+ } from "./chunk-7AMAENN3.js";
6
6
  import "./chunk-5A4JNOK3.js";
7
7
  import "./chunk-O5VKW5FL.js";
8
8
  import "./chunk-LTBX54CI.js";
@@ -58,7 +58,7 @@ import "./chunk-I5THQVYP.js";
58
58
  import "./chunk-VIGX66F7.js";
59
59
  import "./chunk-CMHI2RPL.js";
60
60
  import "./chunk-S2WEYEQR.js";
61
- import "./chunk-FQFW3DUZ.js";
61
+ import "./chunk-HO7Z6MC3.js";
62
62
  import "./chunk-MG4GKUJW.js";
63
63
  import "./chunk-AYVH6Q5O.js";
64
64
  import "./chunk-VOHEQ7B5.js";
@@ -242,7 +242,7 @@ var CreateCommissionRateForm = ({
242
242
  },
243
243
  {
244
244
  onSuccess: ({ commission_rate }) => {
245
- toast.success("Commission rate created successfully");
245
+ toast.success(t("commissionRates.create.successToast"));
246
246
  handleSuccess(`../${commission_rate.id}`);
247
247
  },
248
248
  onError: (e) => {
@@ -374,8 +374,8 @@ var CreateCommissionRateForm = ({
374
374
  ),
375
375
  children: /* @__PURE__ */ jsxs("div", { className: "flex w-full max-w-[720px] flex-col gap-y-8", children: [
376
376
  /* @__PURE__ */ jsxs("div", { children: [
377
- /* @__PURE__ */ jsx(Heading, { children: "Create Commission Rate" }),
378
- /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: "Configure a new commission rate for your marketplace." })
377
+ /* @__PURE__ */ jsx(Heading, { children: t("commissionRates.create.header") }),
378
+ /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: t("commissionRates.create.description") })
379
379
  ] }),
380
380
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-4", children: [
381
381
  /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-2", children: [
@@ -385,7 +385,7 @@ var CreateCommissionRateForm = ({
385
385
  control: form.control,
386
386
  name: "name",
387
387
  render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
388
- /* @__PURE__ */ jsx(Form.Label, { children: "Name" }),
388
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.name") }),
389
389
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { ...field }) }),
390
390
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
391
391
  ] })
@@ -397,7 +397,7 @@ var CreateCommissionRateForm = ({
397
397
  control: form.control,
398
398
  name: "code",
399
399
  render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
400
- /* @__PURE__ */ jsx(Form.Label, { children: "Code" }),
400
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.code") }),
401
401
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { ...field }) }),
402
402
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
403
403
  ] })
@@ -411,12 +411,12 @@ var CreateCommissionRateForm = ({
411
411
  control: form.control,
412
412
  name: "type",
413
413
  render: ({ field: { onChange, ref, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
414
- /* @__PURE__ */ jsx(Form.Label, { children: "Type" }),
414
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.type.label") }),
415
415
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(Select, { ...field, onValueChange: onChange, children: [
416
416
  /* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, {}) }),
417
417
  /* @__PURE__ */ jsxs(Select.Content, { children: [
418
- /* @__PURE__ */ jsx(Select.Item, { value: "percentage", children: "Percentage" }),
419
- /* @__PURE__ */ jsx(Select.Item, { value: "fixed", children: "Fixed" })
418
+ /* @__PURE__ */ jsx(Select.Item, { value: "percentage", children: t("commissionRates.fields.type.percentage") }),
419
+ /* @__PURE__ */ jsx(Select.Item, { value: "fixed", children: t("commissionRates.fields.type.fixed") })
420
420
  ] })
421
421
  ] }) }),
422
422
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
@@ -429,12 +429,12 @@ var CreateCommissionRateForm = ({
429
429
  control: form.control,
430
430
  name: "target",
431
431
  render: ({ field: { onChange, ref, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
432
- /* @__PURE__ */ jsx(Form.Label, { children: "Target" }),
432
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.target.label") }),
433
433
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(Select, { ...field, onValueChange: onChange, children: [
434
434
  /* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, {}) }),
435
435
  /* @__PURE__ */ jsxs(Select.Content, { children: [
436
- /* @__PURE__ */ jsx(Select.Item, { value: "item", children: "Item" }),
437
- /* @__PURE__ */ jsx(Select.Item, { value: "shipping", children: "Shipping" })
436
+ /* @__PURE__ */ jsx(Select.Item, { value: "item", children: t("commissionRates.fields.target.item") }),
437
+ /* @__PURE__ */ jsx(Select.Item, { value: "shipping", children: t("commissionRates.fields.target.shipping") })
438
438
  ] })
439
439
  ] }) }),
440
440
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
@@ -449,9 +449,9 @@ var CreateCommissionRateForm = ({
449
449
  control: form.control,
450
450
  name: "currency_code",
451
451
  render: ({ field: { onChange, ref, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
452
- /* @__PURE__ */ jsx(Form.Label, { children: "Currency Code" }),
452
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.currencyCode") }),
453
453
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(Select, { ...field, onValueChange: onChange, children: [
454
- /* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, { placeholder: "Select currency" }) }),
454
+ /* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, { placeholder: t("commissionRates.fields.currencyPlaceholder") }) }),
455
455
  /* @__PURE__ */ jsx(Select.Content, { children: storeCurrencies.map((currency) => /* @__PURE__ */ jsx(
456
456
  Select.Item,
457
457
  {
@@ -471,7 +471,7 @@ var CreateCommissionRateForm = ({
471
471
  control: form.control,
472
472
  name: "value",
473
473
  render: ({ field: { value, onChange, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
474
- /* @__PURE__ */ jsx(Form.Label, { children: "Rate" }),
474
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.rate") }),
475
475
  /* @__PURE__ */ jsx(Form.Control, { children: watchType === "percentage" ? /* @__PURE__ */ jsx(
476
476
  PercentageInput,
477
477
  {
@@ -503,7 +503,7 @@ var CreateCommissionRateForm = ({
503
503
  control: form.control,
504
504
  name: "min_amount",
505
505
  render: ({ field: { value, onChange, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
506
- /* @__PURE__ */ jsx(Form.Label, { children: "Minimum Amount" }),
506
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.minAmount") }),
507
507
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
508
508
  CurrencyInput,
509
509
  {
@@ -525,7 +525,7 @@ var CreateCommissionRateForm = ({
525
525
  control: form.control,
526
526
  name: "priority",
527
527
  render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
528
- /* @__PURE__ */ jsx(Form.Label, { children: "Priority" }),
528
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.priority") }),
529
529
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { type: "number", ...field }) }),
530
530
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
531
531
  ] })
@@ -540,7 +540,7 @@ var CreateCommissionRateForm = ({
540
540
  name: "is_enabled",
541
541
  render: ({ field: { value, onChange, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
542
542
  /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between", children: [
543
- /* @__PURE__ */ jsx(Form.Label, { children: "Enabled" }),
543
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.enabled") }),
544
544
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
545
545
  Switch,
546
546
  {
@@ -550,7 +550,7 @@ var CreateCommissionRateForm = ({
550
550
  }
551
551
  ) })
552
552
  ] }),
553
- /* @__PURE__ */ jsx(Form.Hint, { children: "Enable or disable this commission rate." }),
553
+ /* @__PURE__ */ jsx(Form.Hint, { children: t("commissionRates.fields.enabledHint") }),
554
554
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
555
555
  ] })
556
556
  }
@@ -562,7 +562,7 @@ var CreateCommissionRateForm = ({
562
562
  name: "include_tax",
563
563
  render: ({ field: { value, onChange, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
564
564
  /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between", children: [
565
- /* @__PURE__ */ jsx(Form.Label, { children: "Include Tax" }),
565
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.includeTax") }),
566
566
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
567
567
  Switch,
568
568
  {
@@ -572,7 +572,7 @@ var CreateCommissionRateForm = ({
572
572
  }
573
573
  ) })
574
574
  ] }),
575
- /* @__PURE__ */ jsx(Form.Hint, { children: "Include tax in the commission calculation." }),
575
+ /* @__PURE__ */ jsx(Form.Hint, { children: t("commissionRates.fields.includeTaxHint") }),
576
576
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
577
577
  ] })
578
578
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CommissionRateDetailPage
3
- } from "./chunk-SMPTZ2RM.js";
3
+ } from "./chunk-Y3I3LXKW.js";
4
4
  import "./chunk-LTBX54CI.js";
5
5
  import "./chunk-3XPXUIK3.js";
6
6
  import "./chunk-V5J73NPW.js";
@@ -2,7 +2,7 @@ import {
2
2
  TargetForm,
3
3
  TargetItem,
4
4
  TaxRateRuleReferenceSchema
5
- } from "./chunk-NYOSVNJ4.js";
5
+ } from "./chunk-7AMAENN3.js";
6
6
  import "./chunk-5A4JNOK3.js";
7
7
  import "./chunk-O5VKW5FL.js";
8
8
  import "./chunk-LTBX54CI.js";
@@ -58,7 +58,7 @@ import "./chunk-I5THQVYP.js";
58
58
  import "./chunk-VIGX66F7.js";
59
59
  import "./chunk-CMHI2RPL.js";
60
60
  import "./chunk-S2WEYEQR.js";
61
- import "./chunk-FQFW3DUZ.js";
61
+ import "./chunk-HO7Z6MC3.js";
62
62
  import "./chunk-MG4GKUJW.js";
63
63
  import "./chunk-AYVH6Q5O.js";
64
64
  import "./chunk-VOHEQ7B5.js";
@@ -131,6 +131,7 @@ import "./chunk-NBMM2TZK.js";
131
131
 
132
132
  // src/pages/commission-rates/commission-rate-edit/commission-rate-edit.tsx
133
133
  import { Heading as Heading2 } from "@medusajs/ui";
134
+ import { useTranslation as useTranslation2 } from "react-i18next";
134
135
  import { useParams } from "react-router-dom";
135
136
 
136
137
  // src/pages/commission-rates/commission-rate-edit/components/edit-commission-rate-form/edit-commission-rate-form.tsx
@@ -269,7 +270,7 @@ var EditCommissionRateForm = ({
269
270
  ...toDelete.length > 0 ? { delete: toDelete } : {}
270
271
  });
271
272
  }
272
- toast.success("Commission rate updated successfully");
273
+ toast.success(t("commissionRates.edit.successToast"));
273
274
  handleSuccess();
274
275
  } catch (e) {
275
276
  toast.error(e.message);
@@ -404,7 +405,7 @@ var EditCommissionRateForm = ({
404
405
  control: form.control,
405
406
  name: "name",
406
407
  render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
407
- /* @__PURE__ */ jsx(Form.Label, { children: "Name" }),
408
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.name") }),
408
409
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { ...field }) }),
409
410
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
410
411
  ] })
@@ -416,7 +417,7 @@ var EditCommissionRateForm = ({
416
417
  control: form.control,
417
418
  name: "code",
418
419
  render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
419
- /* @__PURE__ */ jsx(Form.Label, { children: "Code" }),
420
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.code") }),
420
421
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { ...field }) }),
421
422
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
422
423
  ] })
@@ -428,12 +429,12 @@ var EditCommissionRateForm = ({
428
429
  control: form.control,
429
430
  name: "type",
430
431
  render: ({ field: { onChange, ref, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
431
- /* @__PURE__ */ jsx(Form.Label, { children: "Type" }),
432
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.type.label") }),
432
433
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(Select, { ...field, onValueChange: onChange, children: [
433
434
  /* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, {}) }),
434
435
  /* @__PURE__ */ jsxs(Select.Content, { children: [
435
- /* @__PURE__ */ jsx(Select.Item, { value: "percentage", children: "Percentage" }),
436
- /* @__PURE__ */ jsx(Select.Item, { value: "fixed", children: "Fixed" })
436
+ /* @__PURE__ */ jsx(Select.Item, { value: "percentage", children: t("commissionRates.fields.type.percentage") }),
437
+ /* @__PURE__ */ jsx(Select.Item, { value: "fixed", children: t("commissionRates.fields.type.fixed") })
437
438
  ] })
438
439
  ] }) }),
439
440
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
@@ -446,12 +447,12 @@ var EditCommissionRateForm = ({
446
447
  control: form.control,
447
448
  name: "target",
448
449
  render: ({ field: { onChange, ref, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
449
- /* @__PURE__ */ jsx(Form.Label, { children: "Target" }),
450
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.target.label") }),
450
451
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(Select, { ...field, onValueChange: onChange, children: [
451
452
  /* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, {}) }),
452
453
  /* @__PURE__ */ jsxs(Select.Content, { children: [
453
- /* @__PURE__ */ jsx(Select.Item, { value: "item", children: "Item" }),
454
- /* @__PURE__ */ jsx(Select.Item, { value: "shipping", children: "Shipping" })
454
+ /* @__PURE__ */ jsx(Select.Item, { value: "item", children: t("commissionRates.fields.target.item") }),
455
+ /* @__PURE__ */ jsx(Select.Item, { value: "shipping", children: t("commissionRates.fields.target.shipping") })
455
456
  ] })
456
457
  ] }) }),
457
458
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
@@ -464,9 +465,9 @@ var EditCommissionRateForm = ({
464
465
  control: form.control,
465
466
  name: "currency_code",
466
467
  render: ({ field: { onChange, ref, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
467
- /* @__PURE__ */ jsx(Form.Label, { children: "Currency Code" }),
468
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.currencyCode") }),
468
469
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(Select, { ...field, onValueChange: onChange, children: [
469
- /* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, { placeholder: "Select currency" }) }),
470
+ /* @__PURE__ */ jsx(Select.Trigger, { ref, children: /* @__PURE__ */ jsx(Select.Value, { placeholder: t("commissionRates.fields.currencyPlaceholder") }) }),
470
471
  /* @__PURE__ */ jsx(Select.Content, { children: storeCurrencies.map((currency) => /* @__PURE__ */ jsx(
471
472
  Select.Item,
472
473
  {
@@ -486,7 +487,7 @@ var EditCommissionRateForm = ({
486
487
  control: form.control,
487
488
  name: "value",
488
489
  render: ({ field: { value, onChange, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
489
- /* @__PURE__ */ jsx(Form.Label, { children: "Rate" }),
490
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.rate") }),
490
491
  /* @__PURE__ */ jsx(Form.Control, { children: watchType === "percentage" ? /* @__PURE__ */ jsx(
491
492
  PercentageInput,
492
493
  {
@@ -516,7 +517,7 @@ var EditCommissionRateForm = ({
516
517
  control: form.control,
517
518
  name: "min_amount",
518
519
  render: ({ field: { value, onChange, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
519
- /* @__PURE__ */ jsx(Form.Label, { children: "Minimum Amount" }),
520
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.minAmount") }),
520
521
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
521
522
  CurrencyInput,
522
523
  {
@@ -538,7 +539,7 @@ var EditCommissionRateForm = ({
538
539
  control: form.control,
539
540
  name: "priority",
540
541
  render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
541
- /* @__PURE__ */ jsx(Form.Label, { children: "Priority" }),
542
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.priority") }),
542
543
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { type: "number", ...field }) }),
543
544
  /* @__PURE__ */ jsx(Form.ErrorMessage, {})
544
545
  ] })
@@ -551,7 +552,7 @@ var EditCommissionRateForm = ({
551
552
  name: "include_tax",
552
553
  render: ({ field: { value, onChange, ...field } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
553
554
  /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between", children: [
554
- /* @__PURE__ */ jsx(Form.Label, { children: "Include Tax" }),
555
+ /* @__PURE__ */ jsx(Form.Label, { children: t("commissionRates.fields.includeTax") }),
555
556
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
556
557
  Switch,
557
558
  {
@@ -746,6 +747,7 @@ var EditCommissionRateForm = ({
746
747
  // src/pages/commission-rates/commission-rate-edit/commission-rate-edit.tsx
747
748
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
748
749
  var CommissionRateEdit = () => {
750
+ const { t } = useTranslation2();
749
751
  const { id } = useParams();
750
752
  const {
751
753
  commission_rate,
@@ -757,7 +759,7 @@ var CommissionRateEdit = () => {
757
759
  throw error;
758
760
  }
759
761
  return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
760
- /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading2, { children: "Edit Commission Rate" }) }),
762
+ /* @__PURE__ */ jsx2(RouteDrawer.Header, { children: /* @__PURE__ */ jsx2(Heading2, { children: t("commissionRates.edit.header") }) }),
761
763
  !isLoading && commission_rate && /* @__PURE__ */ jsx2(EditCommissionRateForm, { commissionRate: commission_rate })
762
764
  ] });
763
765
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CommissionRateListPage
3
- } from "./chunk-NEAMPCCU.js";
3
+ } from "./chunk-VBJFCAKU.js";
4
4
  import "./chunk-JHIMVLB2.js";
5
5
  import "./chunk-PHOCVOZ5.js";
6
6
  import "./chunk-V5J73NPW.js";