@medusajs/dashboard 2.21.2 → 2.22.0-preview-20261002101246
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/dist/app.js +48 -16
- package/dist/app.mjs +1 -1
- package/dist/{chunk-HUTZEPPT.mjs → chunk-6FNQ7PPY.mjs} +41 -36
- package/dist/{chunk-RQ6OWU3K.mjs → chunk-BIKW7MCI.mjs} +1 -1
- package/dist/{chunk-5O5AS65I.mjs → chunk-MMJJ4M4V.mjs} +1 -1
- package/dist/{order-create-refund-6B3R74WS.mjs → order-create-refund-YHPBRF4F.mjs} +29 -2
- package/dist/{product-attributes-5RX3IK4I.mjs → product-attributes-WJWUWWIK.mjs} +1 -1
- package/dist/{product-create-UTSVUUSK.mjs → product-create-3K53FEW2.mjs} +1 -1
- package/dist/{product-detail-KCLKWLJK.mjs → product-detail-VB3OJYLC.mjs} +2 -2
- package/dist/{product-edit-32DFHXCZ.mjs → product-edit-IQQWEGYW.mjs} +1 -1
- package/dist/{product-option-detail-B65DOO6M.mjs → product-option-detail-EGP4RKW7.mjs} +1 -1
- package/dist/{product-options-manage-VKOXMTH5.mjs → product-options-manage-MX34QWRE.mjs} +2 -2
- package/dist/{product-organization-NHDQR7MX.mjs → product-organization-JVAC4ERH.mjs} +1 -1
- package/dist/{product-tag-detail-MRX6R665.mjs → product-tag-detail-6KGEBJUM.mjs} +1 -1
- package/dist/{product-tag-list-UG5EB3FA.mjs → product-tag-list-IA4JMWBI.mjs} +1 -1
- package/dist/{property-labels-HJGY357Q.mjs → property-labels-TJPAGEKV.mjs} +1 -1
- package/dist/{refund-reason-list-XWAHZGYQ.mjs → refund-reason-list-OEF6YDBK.mjs} +1 -1
- package/dist/{region-list-IYKDVPH7.mjs → region-list-UQD6RIOZ.mjs} +1 -1
- package/dist/{return-reason-list-UCY4AGYF.mjs → return-reason-list-TBJ2HSQO.mjs} +1 -1
- package/dist/{tax-region-detail-TVTB3E4K.mjs → tax-region-detail-5XH53AQ2.mjs} +1 -1
- package/dist/{tax-region-province-detail-VVE3XJM2.mjs → tax-region-province-detail-3TMWCHHH.mjs} +1 -1
- package/dist/{tax-region-tax-override-create-PIFL3S2P.mjs → tax-region-tax-override-create-NW456UKF.mjs} +1 -1
- package/dist/{tax-region-tax-override-edit-SJ6Z3VHH.mjs → tax-region-tax-override-edit-WSOAAI66.mjs} +1 -1
- package/package.json +10 -10
- package/src/components/table/table-cells/region/countries-cell/countries-cell.tsx +1 -0
- package/src/i18n/translations/cs.json +9 -9
- package/src/i18n/translations/th.json +9 -4
- package/src/routes/orders/order-balance-settlement/components/order-balance-settlement-form/order-balance-settlement-form.tsx +37 -0
- package/src/routes/products/product-options-manage/components/product-options-manage-form/product-options-manage-form.tsx +2 -2
package/dist/app.js
CHANGED
|
@@ -58512,7 +58512,8 @@ var init_th = __esm({
|
|
|
58512
58512
|
noMoreData: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",
|
|
58513
58513
|
quantityPrice: "\u0E23\u0E32\u0E04\u0E32\u0E15\u0E32\u0E21\u0E08\u0E33\u0E19\u0E27\u0E19",
|
|
58514
58514
|
exclusive: "\u0E40\u0E09\u0E1E\u0E32\u0E30\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32",
|
|
58515
|
-
global: "\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01"
|
|
58515
|
+
global: "\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01",
|
|
58516
|
+
values_one: "{{count}} \u0E04\u0E48\u0E32"
|
|
58516
58517
|
},
|
|
58517
58518
|
json: {
|
|
58518
58519
|
header: "JSON",
|
|
@@ -60015,7 +60016,8 @@ var init_th = __esm({
|
|
|
60015
60016
|
wrongQuantity_other: "\u0E08\u0E33\u0E19\u0E27\u0E19\u0E15\u0E49\u0E2D\u0E07\u0E2D\u0E22\u0E39\u0E48\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07 1 \u0E16\u0E36\u0E07 {{number}}",
|
|
60016
60017
|
noItems: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E43\u0E2B\u0E49\u0E08\u0E31\u0E14\u0E2A\u0E48\u0E07",
|
|
60017
60018
|
noShippingOption: "\u0E15\u0E49\u0E2D\u0E07\u0E23\u0E30\u0E1A\u0E38\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E2A\u0E48\u0E07",
|
|
60018
|
-
noLocation: "\u0E15\u0E49\u0E2D\u0E07\u0E23\u0E30\u0E1A\u0E38\u0E2A\u0E16\u0E32\u0E19\u0E17\u0E35\u0E48"
|
|
60019
|
+
noLocation: "\u0E15\u0E49\u0E2D\u0E07\u0E23\u0E30\u0E1A\u0E38\u0E2A\u0E16\u0E32\u0E19\u0E17\u0E35\u0E48",
|
|
60020
|
+
wrongQuantity_one: "\u0E21\u0E35\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E40\u0E1E\u0E35\u0E22\u0E07\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E17\u0E35\u0E48\u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E2A\u0E48\u0E07"
|
|
60019
60021
|
},
|
|
60020
60022
|
status: {
|
|
60021
60023
|
notFulfilled: "\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E40\u0E15\u0E23\u0E35\u0E22\u0E21\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32",
|
|
@@ -61286,11 +61288,14 @@ var init_th = __esm({
|
|
|
61286
61288
|
successToast_other: "\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E43\u0E19\u0E1A\u0E17\u0E1A\u0E32\u0E17\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",
|
|
61287
61289
|
list: {
|
|
61288
61290
|
noRecordsMessage: "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E01\u0E48\u0E2D\u0E19"
|
|
61289
|
-
}
|
|
61291
|
+
},
|
|
61292
|
+
successToast_one: "\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E43\u0E19\u0E1A\u0E17\u0E1A\u0E32\u0E17\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08"
|
|
61290
61293
|
},
|
|
61291
61294
|
remove: {
|
|
61292
61295
|
title_other: "\u0E25\u0E1A\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49",
|
|
61293
|
-
description_other: "\u0E04\u0E38\u0E13\u0E01\u0E33\u0E25\u0E31\u0E07\u0E08\u0E30\u0E25\u0E1A {{count}} \u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E1A\u0E17\u0E1A\u0E32\u0E17 \u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01\u0E44\u0E14\u0E49"
|
|
61296
|
+
description_other: "\u0E04\u0E38\u0E13\u0E01\u0E33\u0E25\u0E31\u0E07\u0E08\u0E30\u0E25\u0E1A {{count}} \u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E1A\u0E17\u0E1A\u0E32\u0E17 \u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01\u0E44\u0E14\u0E49",
|
|
61297
|
+
description_one: "\u0E04\u0E38\u0E13\u0E01\u0E33\u0E25\u0E31\u0E07\u0E08\u0E30\u0E19\u0E33\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49 {{count}} \u0E04\u0E19\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E1A\u0E17\u0E1A\u0E32\u0E17 \u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E22\u0E49\u0E2D\u0E19\u0E01\u0E25\u0E31\u0E1A\u0E44\u0E14\u0E49",
|
|
61298
|
+
title_one: "\u0E19\u0E33\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E2D\u0E2D\u0E01"
|
|
61294
61299
|
},
|
|
61295
61300
|
list: {
|
|
61296
61301
|
noRecordsMessage: "\u0E1A\u0E17\u0E1A\u0E32\u0E17\u0E19\u0E35\u0E49\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49"
|
|
@@ -99127,7 +99132,7 @@ var init_cs = __esm({
|
|
|
99127
99132
|
shipping_one: "{{count}} mo\u017Enost dopravy",
|
|
99128
99133
|
shipping_few: "{{count}} mo\u017Enosti dopravy",
|
|
99129
99134
|
shipping_many: "{{count}} mo\u017Enost\xED dopravy",
|
|
99130
|
-
shipping_other: "{{count}} mo\
|
|
99135
|
+
shipping_other: "{{count}} mo\u017Enost\xED dopravy",
|
|
99131
99136
|
pickup_one: "{{count}} mo\u017Enost vyzvednut\xED",
|
|
99132
99137
|
pickup_few: "{{count}} mo\u017Enosti vyzvednut\xED",
|
|
99133
99138
|
pickup_many: "{{count}} mo\u017Enost\xED vyzvednut\xED",
|
|
@@ -99135,7 +99140,7 @@ var init_cs = __esm({
|
|
|
99135
99140
|
returns_one: "{{count}} mo\u017Enost vr\xE1cen\xED",
|
|
99136
99141
|
returns_few: "{{count}} mo\u017Enosti vr\xE1cen\xED",
|
|
99137
99142
|
returns_many: "{{count}} mo\u017Enost\xED vr\xE1cen\xED",
|
|
99138
|
-
returns_other: "{{count}} mo\
|
|
99143
|
+
returns_other: "{{count}} mo\u017Enost\xED vr\xE1cen\xED"
|
|
99139
99144
|
},
|
|
99140
99145
|
priceType: {
|
|
99141
99146
|
label: "Typ ceny",
|
|
@@ -100900,31 +100905,31 @@ var init_cs = __esm({
|
|
|
100900
100905
|
years_one: "Rok",
|
|
100901
100906
|
years_few: "Roky",
|
|
100902
100907
|
years_many: "Rok\u016F",
|
|
100903
|
-
years_other: "
|
|
100908
|
+
years_other: "Rok\u016F",
|
|
100904
100909
|
months_one: "M\u011Bs\xEDc",
|
|
100905
100910
|
months_few: "M\u011Bs\xEDce",
|
|
100906
100911
|
months_many: "M\u011Bs\xEDc\u016F",
|
|
100907
|
-
months_other: "M\u011Bs\
|
|
100912
|
+
months_other: "M\u011Bs\xEDc\u016F",
|
|
100908
100913
|
weeks_one: "T\xFDden",
|
|
100909
100914
|
weeks_few: "T\xFDdny",
|
|
100910
100915
|
weeks_many: "T\xFDdn\u016F",
|
|
100911
|
-
weeks_other: "T\
|
|
100916
|
+
weeks_other: "T\xFDdn\u016F",
|
|
100912
100917
|
days_one: "Den",
|
|
100913
100918
|
days_few: "Dny",
|
|
100914
100919
|
days_many: "Dn\u016F",
|
|
100915
|
-
days_other: "
|
|
100920
|
+
days_other: "Dn\u016F",
|
|
100916
100921
|
hours_one: "Hodina",
|
|
100917
100922
|
hours_few: "Hodiny",
|
|
100918
100923
|
hours_many: "Hodin",
|
|
100919
|
-
hours_other: "
|
|
100924
|
+
hours_other: "Hodin",
|
|
100920
100925
|
minutes_one: "Minuta",
|
|
100921
100926
|
minutes_few: "Minuty",
|
|
100922
100927
|
minutes_many: "Minut",
|
|
100923
|
-
minutes_other: "
|
|
100928
|
+
minutes_other: "Minut",
|
|
100924
100929
|
seconds_one: "Sekunda",
|
|
100925
100930
|
seconds_few: "Sekundy",
|
|
100926
100931
|
seconds_many: "Sekund",
|
|
100927
|
-
seconds_other: "
|
|
100932
|
+
seconds_other: "Sekund"
|
|
100928
100933
|
},
|
|
100929
100934
|
translations: {
|
|
100930
100935
|
domain: "P\u0159eklady",
|
|
@@ -175668,7 +175673,7 @@ var init_countries_cell = __esm({
|
|
|
175668
175673
|
return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(PlaceholderCell, {});
|
|
175669
175674
|
}
|
|
175670
175675
|
const list = countries2.map(
|
|
175671
|
-
(country) => countries.find((c) => c.iso_2 === country.iso_2)?.display_name
|
|
175676
|
+
(country) => country.display_name || countries.find((c) => c.iso_2 === country.iso_2)?.display_name
|
|
175672
175677
|
).filter(Boolean);
|
|
175673
175678
|
return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(ListSummary, { list }) });
|
|
175674
175679
|
};
|
|
@@ -194610,7 +194615,8 @@ var init_order_balance_settlement_form = __esm({
|
|
|
194610
194615
|
value: zod11.string().or(zod11.number()).optional(),
|
|
194611
194616
|
float: zod11.number().or(zod11.null())
|
|
194612
194617
|
}),
|
|
194613
|
-
note: zod11.string().optional()
|
|
194618
|
+
note: zod11.string().optional(),
|
|
194619
|
+
refund_reason_id: zod11.string().optional()
|
|
194614
194620
|
}).optional(),
|
|
194615
194621
|
credit_line: zod11.object({
|
|
194616
194622
|
amount: zod11.object({
|
|
@@ -194624,6 +194630,7 @@ var init_order_balance_settlement_form = __esm({
|
|
|
194624
194630
|
order
|
|
194625
194631
|
}) => {
|
|
194626
194632
|
const { t: t5 } = (0, import_react_i18next259.useTranslation)();
|
|
194633
|
+
const { refund_reasons } = useRefundReasons();
|
|
194627
194634
|
const [searchParams] = (0, import_react_router_dom102.useSearchParams)();
|
|
194628
194635
|
const { handleSuccess } = useRouteModal();
|
|
194629
194636
|
const paymentId = searchParams.get("paymentId");
|
|
@@ -194685,7 +194692,8 @@ var init_order_balance_settlement_form = __esm({
|
|
|
194685
194692
|
await createRefund(
|
|
194686
194693
|
{
|
|
194687
194694
|
amount: data.refund.amount.float,
|
|
194688
|
-
note: data.refund.note
|
|
194695
|
+
note: data.refund.note,
|
|
194696
|
+
refund_reason_id: data.refund.refund_reason_id
|
|
194689
194697
|
},
|
|
194690
194698
|
{
|
|
194691
194699
|
onSuccess: () => {
|
|
@@ -194864,6 +194872,30 @@ var init_order_balance_settlement_form = __esm({
|
|
|
194864
194872
|
}
|
|
194865
194873
|
}
|
|
194866
194874
|
),
|
|
194875
|
+
/* @__PURE__ */ (0, import_jsx_runtime351.jsx)(
|
|
194876
|
+
Form.Field,
|
|
194877
|
+
{
|
|
194878
|
+
control: form.control,
|
|
194879
|
+
name: "refund.refund_reason_id",
|
|
194880
|
+
render: ({ field }) => {
|
|
194881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime351.jsxs)(Form.Item, { children: [
|
|
194882
|
+
/* @__PURE__ */ (0, import_jsx_runtime351.jsx)(Form.Label, { children: t5("fields.refundReason") }),
|
|
194883
|
+
/* @__PURE__ */ (0, import_jsx_runtime351.jsx)(Form.Control, { children: /* @__PURE__ */ (0, import_jsx_runtime351.jsxs)(
|
|
194884
|
+
import_ui238.Select,
|
|
194885
|
+
{
|
|
194886
|
+
value: field.value,
|
|
194887
|
+
onValueChange: field.onChange,
|
|
194888
|
+
children: [
|
|
194889
|
+
/* @__PURE__ */ (0, import_jsx_runtime351.jsx)(import_ui238.Select.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(import_ui238.Select.Value, {}) }),
|
|
194890
|
+
/* @__PURE__ */ (0, import_jsx_runtime351.jsx)(import_ui238.Select.Content, { children: refund_reasons?.map((reason) => /* @__PURE__ */ (0, import_jsx_runtime351.jsx)(import_ui238.Select.Item, { value: reason.id, children: reason.label }, reason.id)) })
|
|
194891
|
+
]
|
|
194892
|
+
}
|
|
194893
|
+
) }),
|
|
194894
|
+
/* @__PURE__ */ (0, import_jsx_runtime351.jsx)(Form.ErrorMessage, {})
|
|
194895
|
+
] });
|
|
194896
|
+
}
|
|
194897
|
+
}
|
|
194898
|
+
),
|
|
194867
194899
|
/* @__PURE__ */ (0, import_jsx_runtime351.jsx)(
|
|
194868
194900
|
Form.Field,
|
|
194869
194901
|
{
|
package/dist/app.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import "./chunk-P3UUX2T6.mjs";
|
|
|
14
14
|
import "./chunk-DG7J63J2.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DashboardApp
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6FNQ7PPY.mjs";
|
|
18
18
|
import "./chunk-ONB3JEHR.mjs";
|
|
19
19
|
import "./chunk-JAW6ZD7F.mjs";
|
|
20
20
|
import "./chunk-TO7QJZLE.mjs";
|
|
@@ -58010,7 +58010,8 @@ var th_default = {
|
|
|
58010
58010
|
noMoreData: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E40\u0E15\u0E34\u0E21",
|
|
58011
58011
|
quantityPrice: "\u0E23\u0E32\u0E04\u0E32\u0E15\u0E32\u0E21\u0E08\u0E33\u0E19\u0E27\u0E19",
|
|
58012
58012
|
exclusive: "\u0E40\u0E09\u0E1E\u0E32\u0E30\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32",
|
|
58013
|
-
global: "\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01"
|
|
58013
|
+
global: "\u0E17\u0E31\u0E48\u0E27\u0E42\u0E25\u0E01",
|
|
58014
|
+
values_one: "{{count}} \u0E04\u0E48\u0E32"
|
|
58014
58015
|
},
|
|
58015
58016
|
json: {
|
|
58016
58017
|
header: "JSON",
|
|
@@ -59513,7 +59514,8 @@ var th_default = {
|
|
|
59513
59514
|
wrongQuantity_other: "\u0E08\u0E33\u0E19\u0E27\u0E19\u0E15\u0E49\u0E2D\u0E07\u0E2D\u0E22\u0E39\u0E48\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07 1 \u0E16\u0E36\u0E07 {{number}}",
|
|
59514
59515
|
noItems: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E43\u0E2B\u0E49\u0E08\u0E31\u0E14\u0E2A\u0E48\u0E07",
|
|
59515
59516
|
noShippingOption: "\u0E15\u0E49\u0E2D\u0E07\u0E23\u0E30\u0E1A\u0E38\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E2A\u0E48\u0E07",
|
|
59516
|
-
noLocation: "\u0E15\u0E49\u0E2D\u0E07\u0E23\u0E30\u0E1A\u0E38\u0E2A\u0E16\u0E32\u0E19\u0E17\u0E35\u0E48"
|
|
59517
|
+
noLocation: "\u0E15\u0E49\u0E2D\u0E07\u0E23\u0E30\u0E1A\u0E38\u0E2A\u0E16\u0E32\u0E19\u0E17\u0E35\u0E48",
|
|
59518
|
+
wrongQuantity_one: "\u0E21\u0E35\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E40\u0E1E\u0E35\u0E22\u0E07\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E17\u0E35\u0E48\u0E1E\u0E23\u0E49\u0E2D\u0E21\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E08\u0E31\u0E14\u0E2A\u0E48\u0E07"
|
|
59517
59519
|
},
|
|
59518
59520
|
status: {
|
|
59519
59521
|
notFulfilled: "\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E44\u0E14\u0E49\u0E40\u0E15\u0E23\u0E35\u0E22\u0E21\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32",
|
|
@@ -60784,11 +60786,14 @@ var th_default = {
|
|
|
60784
60786
|
successToast_other: "\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E43\u0E19\u0E1A\u0E17\u0E1A\u0E32\u0E17\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",
|
|
60785
60787
|
list: {
|
|
60786
60788
|
noRecordsMessage: "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E01\u0E48\u0E2D\u0E19"
|
|
60787
|
-
}
|
|
60789
|
+
},
|
|
60790
|
+
successToast_one: "\u0E40\u0E1E\u0E34\u0E48\u0E21\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E43\u0E19\u0E1A\u0E17\u0E1A\u0E32\u0E17\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08"
|
|
60788
60791
|
},
|
|
60789
60792
|
remove: {
|
|
60790
60793
|
title_other: "\u0E25\u0E1A\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49",
|
|
60791
|
-
description_other: "\u0E04\u0E38\u0E13\u0E01\u0E33\u0E25\u0E31\u0E07\u0E08\u0E30\u0E25\u0E1A {{count}} \u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E1A\u0E17\u0E1A\u0E32\u0E17 \u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01\u0E44\u0E14\u0E49"
|
|
60794
|
+
description_other: "\u0E04\u0E38\u0E13\u0E01\u0E33\u0E25\u0E31\u0E07\u0E08\u0E30\u0E25\u0E1A {{count}} \u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E1A\u0E17\u0E1A\u0E32\u0E17 \u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01\u0E44\u0E14\u0E49",
|
|
60795
|
+
description_one: "\u0E04\u0E38\u0E13\u0E01\u0E33\u0E25\u0E31\u0E07\u0E08\u0E30\u0E19\u0E33\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49 {{count}} \u0E04\u0E19\u0E2D\u0E2D\u0E01\u0E08\u0E32\u0E01\u0E1A\u0E17\u0E1A\u0E32\u0E17 \u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E19\u0E35\u0E49\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E22\u0E49\u0E2D\u0E19\u0E01\u0E25\u0E31\u0E1A\u0E44\u0E14\u0E49",
|
|
60796
|
+
title_one: "\u0E19\u0E33\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49\u0E2D\u0E2D\u0E01"
|
|
60792
60797
|
},
|
|
60793
60798
|
list: {
|
|
60794
60799
|
noRecordsMessage: "\u0E1A\u0E17\u0E1A\u0E32\u0E17\u0E19\u0E35\u0E49\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E39\u0E49\u0E43\u0E0A\u0E49"
|
|
@@ -98575,7 +98580,7 @@ var cs_default = {
|
|
|
98575
98580
|
shipping_one: "{{count}} mo\u017Enost dopravy",
|
|
98576
98581
|
shipping_few: "{{count}} mo\u017Enosti dopravy",
|
|
98577
98582
|
shipping_many: "{{count}} mo\u017Enost\xED dopravy",
|
|
98578
|
-
shipping_other: "{{count}} mo\
|
|
98583
|
+
shipping_other: "{{count}} mo\u017Enost\xED dopravy",
|
|
98579
98584
|
pickup_one: "{{count}} mo\u017Enost vyzvednut\xED",
|
|
98580
98585
|
pickup_few: "{{count}} mo\u017Enosti vyzvednut\xED",
|
|
98581
98586
|
pickup_many: "{{count}} mo\u017Enost\xED vyzvednut\xED",
|
|
@@ -98583,7 +98588,7 @@ var cs_default = {
|
|
|
98583
98588
|
returns_one: "{{count}} mo\u017Enost vr\xE1cen\xED",
|
|
98584
98589
|
returns_few: "{{count}} mo\u017Enosti vr\xE1cen\xED",
|
|
98585
98590
|
returns_many: "{{count}} mo\u017Enost\xED vr\xE1cen\xED",
|
|
98586
|
-
returns_other: "{{count}} mo\
|
|
98591
|
+
returns_other: "{{count}} mo\u017Enost\xED vr\xE1cen\xED"
|
|
98587
98592
|
},
|
|
98588
98593
|
priceType: {
|
|
98589
98594
|
label: "Typ ceny",
|
|
@@ -100348,31 +100353,31 @@ var cs_default = {
|
|
|
100348
100353
|
years_one: "Rok",
|
|
100349
100354
|
years_few: "Roky",
|
|
100350
100355
|
years_many: "Rok\u016F",
|
|
100351
|
-
years_other: "
|
|
100356
|
+
years_other: "Rok\u016F",
|
|
100352
100357
|
months_one: "M\u011Bs\xEDc",
|
|
100353
100358
|
months_few: "M\u011Bs\xEDce",
|
|
100354
100359
|
months_many: "M\u011Bs\xEDc\u016F",
|
|
100355
|
-
months_other: "M\u011Bs\
|
|
100360
|
+
months_other: "M\u011Bs\xEDc\u016F",
|
|
100356
100361
|
weeks_one: "T\xFDden",
|
|
100357
100362
|
weeks_few: "T\xFDdny",
|
|
100358
100363
|
weeks_many: "T\xFDdn\u016F",
|
|
100359
|
-
weeks_other: "T\
|
|
100364
|
+
weeks_other: "T\xFDdn\u016F",
|
|
100360
100365
|
days_one: "Den",
|
|
100361
100366
|
days_few: "Dny",
|
|
100362
100367
|
days_many: "Dn\u016F",
|
|
100363
|
-
days_other: "
|
|
100368
|
+
days_other: "Dn\u016F",
|
|
100364
100369
|
hours_one: "Hodina",
|
|
100365
100370
|
hours_few: "Hodiny",
|
|
100366
100371
|
hours_many: "Hodin",
|
|
100367
|
-
hours_other: "
|
|
100372
|
+
hours_other: "Hodin",
|
|
100368
100373
|
minutes_one: "Minuta",
|
|
100369
100374
|
minutes_few: "Minuty",
|
|
100370
100375
|
minutes_many: "Minut",
|
|
100371
|
-
minutes_other: "
|
|
100376
|
+
minutes_other: "Minut",
|
|
100372
100377
|
seconds_one: "Sekunda",
|
|
100373
100378
|
seconds_few: "Sekundy",
|
|
100374
100379
|
seconds_many: "Sekund",
|
|
100375
|
-
seconds_other: "
|
|
100380
|
+
seconds_other: "Sekund"
|
|
100376
100381
|
},
|
|
100377
100382
|
translations: {
|
|
100378
100383
|
domain: "P\u0159eklady",
|
|
@@ -138170,7 +138175,7 @@ function getRouteMap({
|
|
|
138170
138175
|
children: [
|
|
138171
138176
|
{
|
|
138172
138177
|
path: "create",
|
|
138173
|
-
lazy: () => import("./product-create-
|
|
138178
|
+
lazy: () => import("./product-create-3K53FEW2.mjs")
|
|
138174
138179
|
},
|
|
138175
138180
|
{
|
|
138176
138181
|
path: "import",
|
|
@@ -138186,7 +138191,7 @@ function getRouteMap({
|
|
|
138186
138191
|
path: ":id",
|
|
138187
138192
|
errorElement: /* @__PURE__ */ jsx21(ErrorBoundary, {}),
|
|
138188
138193
|
lazy: async () => {
|
|
138189
|
-
const { Breadcrumb, loader, seo } = await import("./product-detail-
|
|
138194
|
+
const { Breadcrumb, loader, seo } = await import("./product-detail-VB3OJYLC.mjs");
|
|
138190
138195
|
return {
|
|
138191
138196
|
Component: Outlet5,
|
|
138192
138197
|
loader,
|
|
@@ -138199,11 +138204,11 @@ function getRouteMap({
|
|
|
138199
138204
|
children: [
|
|
138200
138205
|
{
|
|
138201
138206
|
path: "",
|
|
138202
|
-
lazy: () => import("./product-detail-
|
|
138207
|
+
lazy: () => import("./product-detail-VB3OJYLC.mjs"),
|
|
138203
138208
|
children: [
|
|
138204
138209
|
{
|
|
138205
138210
|
path: "edit",
|
|
138206
|
-
lazy: () => import("./product-edit-
|
|
138211
|
+
lazy: () => import("./product-edit-IQQWEGYW.mjs")
|
|
138207
138212
|
},
|
|
138208
138213
|
{
|
|
138209
138214
|
path: "edit-variant",
|
|
@@ -138215,11 +138220,11 @@ function getRouteMap({
|
|
|
138215
138220
|
},
|
|
138216
138221
|
{
|
|
138217
138222
|
path: "attributes",
|
|
138218
|
-
lazy: () => import("./product-attributes-
|
|
138223
|
+
lazy: () => import("./product-attributes-WJWUWWIK.mjs")
|
|
138219
138224
|
},
|
|
138220
138225
|
{
|
|
138221
138226
|
path: "organization",
|
|
138222
|
-
lazy: () => import("./product-organization-
|
|
138227
|
+
lazy: () => import("./product-organization-JVAC4ERH.mjs")
|
|
138223
138228
|
},
|
|
138224
138229
|
{
|
|
138225
138230
|
path: "shipping-profile",
|
|
@@ -138251,7 +138256,7 @@ function getRouteMap({
|
|
|
138251
138256
|
},
|
|
138252
138257
|
{
|
|
138253
138258
|
path: "options/manage",
|
|
138254
|
-
lazy: () => import("./product-options-manage-
|
|
138259
|
+
lazy: () => import("./product-options-manage-MX34QWRE.mjs")
|
|
138255
138260
|
}
|
|
138256
138261
|
]
|
|
138257
138262
|
},
|
|
@@ -138316,7 +138321,7 @@ function getRouteMap({
|
|
|
138316
138321
|
path: ":id",
|
|
138317
138322
|
errorElement: /* @__PURE__ */ jsx21(ErrorBoundary, {}),
|
|
138318
138323
|
lazy: async () => {
|
|
138319
|
-
const { Breadcrumb, loader } = await import("./product-option-detail-
|
|
138324
|
+
const { Breadcrumb, loader } = await import("./product-option-detail-EGP4RKW7.mjs");
|
|
138320
138325
|
return {
|
|
138321
138326
|
Component: Outlet5,
|
|
138322
138327
|
loader,
|
|
@@ -138328,7 +138333,7 @@ function getRouteMap({
|
|
|
138328
138333
|
children: [
|
|
138329
138334
|
{
|
|
138330
138335
|
path: "",
|
|
138331
|
-
lazy: () => import("./product-option-detail-
|
|
138336
|
+
lazy: () => import("./product-option-detail-EGP4RKW7.mjs"),
|
|
138332
138337
|
children: [
|
|
138333
138338
|
{
|
|
138334
138339
|
path: "edit",
|
|
@@ -138483,7 +138488,7 @@ function getRouteMap({
|
|
|
138483
138488
|
},
|
|
138484
138489
|
{
|
|
138485
138490
|
path: "refund",
|
|
138486
|
-
lazy: () => import("./order-create-refund-
|
|
138491
|
+
lazy: () => import("./order-create-refund-YHPBRF4F.mjs")
|
|
138487
138492
|
},
|
|
138488
138493
|
{
|
|
138489
138494
|
path: "transfer",
|
|
@@ -138999,7 +139004,7 @@ function getRouteMap({
|
|
|
138999
139004
|
children: [
|
|
139000
139005
|
{
|
|
139001
139006
|
path: "",
|
|
139002
|
-
lazy: () => import("./region-list-
|
|
139007
|
+
lazy: () => import("./region-list-UQD6RIOZ.mjs"),
|
|
139003
139008
|
children: [
|
|
139004
139009
|
{
|
|
139005
139010
|
path: "create",
|
|
@@ -139047,7 +139052,7 @@ function getRouteMap({
|
|
|
139047
139052
|
children: [
|
|
139048
139053
|
{
|
|
139049
139054
|
path: "",
|
|
139050
|
-
lazy: () => import("./property-labels-
|
|
139055
|
+
lazy: () => import("./property-labels-TJPAGEKV.mjs"),
|
|
139051
139056
|
children: [
|
|
139052
139057
|
{
|
|
139053
139058
|
path: ":entity/edit",
|
|
@@ -139505,7 +139510,7 @@ function getRouteMap({
|
|
|
139505
139510
|
children: [
|
|
139506
139511
|
{
|
|
139507
139512
|
path: "",
|
|
139508
|
-
lazy: () => import("./product-tag-list-
|
|
139513
|
+
lazy: () => import("./product-tag-list-IA4JMWBI.mjs"),
|
|
139509
139514
|
children: [
|
|
139510
139515
|
{
|
|
139511
139516
|
path: "create",
|
|
@@ -139516,7 +139521,7 @@ function getRouteMap({
|
|
|
139516
139521
|
{
|
|
139517
139522
|
path: ":id",
|
|
139518
139523
|
lazy: async () => {
|
|
139519
|
-
const { Component, Breadcrumb, loader, seo } = await import("./product-tag-detail-
|
|
139524
|
+
const { Component, Breadcrumb, loader, seo } = await import("./product-tag-detail-6KGEBJUM.mjs");
|
|
139520
139525
|
return {
|
|
139521
139526
|
Component,
|
|
139522
139527
|
loader,
|
|
@@ -139734,7 +139739,7 @@ function getRouteMap({
|
|
|
139734
139739
|
path: ":id",
|
|
139735
139740
|
errorElement: /* @__PURE__ */ jsx21(ErrorBoundary, {}),
|
|
139736
139741
|
lazy: async () => {
|
|
139737
|
-
const { Breadcrumb, loader, seo } = await import("./tax-region-detail-
|
|
139742
|
+
const { Breadcrumb, loader, seo } = await import("./tax-region-detail-5XH53AQ2.mjs");
|
|
139738
139743
|
return {
|
|
139739
139744
|
Component: Outlet5,
|
|
139740
139745
|
loader,
|
|
@@ -139748,7 +139753,7 @@ function getRouteMap({
|
|
|
139748
139753
|
{
|
|
139749
139754
|
path: "",
|
|
139750
139755
|
lazy: async () => {
|
|
139751
|
-
const { Component } = await import("./tax-region-detail-
|
|
139756
|
+
const { Component } = await import("./tax-region-detail-5XH53AQ2.mjs");
|
|
139752
139757
|
return {
|
|
139753
139758
|
Component
|
|
139754
139759
|
};
|
|
@@ -139764,11 +139769,11 @@ function getRouteMap({
|
|
|
139764
139769
|
},
|
|
139765
139770
|
{
|
|
139766
139771
|
path: "overrides/create",
|
|
139767
|
-
lazy: () => import("./tax-region-tax-override-create-
|
|
139772
|
+
lazy: () => import("./tax-region-tax-override-create-NW456UKF.mjs")
|
|
139768
139773
|
},
|
|
139769
139774
|
{
|
|
139770
139775
|
path: "overrides/:tax_rate_id/edit",
|
|
139771
|
-
lazy: () => import("./tax-region-tax-override-edit-
|
|
139776
|
+
lazy: () => import("./tax-region-tax-override-edit-WSOAAI66.mjs")
|
|
139772
139777
|
},
|
|
139773
139778
|
{
|
|
139774
139779
|
path: "tax-rates/create",
|
|
@@ -139783,7 +139788,7 @@ function getRouteMap({
|
|
|
139783
139788
|
{
|
|
139784
139789
|
path: "provinces/:province_id",
|
|
139785
139790
|
lazy: async () => {
|
|
139786
|
-
const { Component, Breadcrumb, loader, seo } = await import("./tax-region-province-detail-
|
|
139791
|
+
const { Component, Breadcrumb, loader, seo } = await import("./tax-region-province-detail-3TMWCHHH.mjs");
|
|
139787
139792
|
return {
|
|
139788
139793
|
Component,
|
|
139789
139794
|
loader,
|
|
@@ -139804,11 +139809,11 @@ function getRouteMap({
|
|
|
139804
139809
|
},
|
|
139805
139810
|
{
|
|
139806
139811
|
path: "overrides/create",
|
|
139807
|
-
lazy: () => import("./tax-region-tax-override-create-
|
|
139812
|
+
lazy: () => import("./tax-region-tax-override-create-NW456UKF.mjs")
|
|
139808
139813
|
},
|
|
139809
139814
|
{
|
|
139810
139815
|
path: "overrides/:tax_rate_id/edit",
|
|
139811
|
-
lazy: () => import("./tax-region-tax-override-edit-
|
|
139816
|
+
lazy: () => import("./tax-region-tax-override-edit-WSOAAI66.mjs")
|
|
139812
139817
|
}
|
|
139813
139818
|
]
|
|
139814
139819
|
}
|
|
@@ -139825,7 +139830,7 @@ function getRouteMap({
|
|
|
139825
139830
|
children: [
|
|
139826
139831
|
{
|
|
139827
139832
|
path: "",
|
|
139828
|
-
lazy: () => import("./return-reason-list-
|
|
139833
|
+
lazy: () => import("./return-reason-list-TBJ2HSQO.mjs"),
|
|
139829
139834
|
children: [
|
|
139830
139835
|
{
|
|
139831
139836
|
path: "create",
|
|
@@ -139853,7 +139858,7 @@ function getRouteMap({
|
|
|
139853
139858
|
children: [
|
|
139854
139859
|
{
|
|
139855
139860
|
path: "",
|
|
139856
|
-
lazy: () => import("./refund-reason-list-
|
|
139861
|
+
lazy: () => import("./refund-reason-list-OEF6YDBK.mjs"),
|
|
139857
139862
|
children: [
|
|
139858
139863
|
{
|
|
139859
139864
|
path: "create",
|
|
@@ -23,7 +23,7 @@ var CountriesCell = ({ countries: countries2 }) => {
|
|
|
23
23
|
return /* @__PURE__ */ jsx(PlaceholderCell, {});
|
|
24
24
|
}
|
|
25
25
|
const list = countries2.map(
|
|
26
|
-
(country) => countries.find((c) => c.iso_2 === country.iso_2)?.display_name
|
|
26
|
+
(country) => country.display_name || countries.find((c) => c.iso_2 === country.iso_2)?.display_name
|
|
27
27
|
).filter(Boolean);
|
|
28
28
|
return /* @__PURE__ */ jsx("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx(ListSummary, { list }) });
|
|
29
29
|
};
|
|
@@ -112,7 +112,8 @@ var OrderBalanceSettlementSchema = zod.object({
|
|
|
112
112
|
value: zod.string().or(zod.number()).optional(),
|
|
113
113
|
float: zod.number().or(zod.null())
|
|
114
114
|
}),
|
|
115
|
-
note: zod.string().optional()
|
|
115
|
+
note: zod.string().optional(),
|
|
116
|
+
refund_reason_id: zod.string().optional()
|
|
116
117
|
}).optional(),
|
|
117
118
|
credit_line: zod.object({
|
|
118
119
|
amount: zod.object({
|
|
@@ -126,6 +127,7 @@ var OrderBalanceSettlementForm = ({
|
|
|
126
127
|
order
|
|
127
128
|
}) => {
|
|
128
129
|
const { t } = useTranslation();
|
|
130
|
+
const { refund_reasons } = useRefundReasons();
|
|
129
131
|
const [searchParams] = useSearchParams();
|
|
130
132
|
const { handleSuccess } = useRouteModal();
|
|
131
133
|
const paymentId = searchParams.get("paymentId");
|
|
@@ -187,7 +189,8 @@ var OrderBalanceSettlementForm = ({
|
|
|
187
189
|
await createRefund(
|
|
188
190
|
{
|
|
189
191
|
amount: data.refund.amount.float,
|
|
190
|
-
note: data.refund.note
|
|
192
|
+
note: data.refund.note,
|
|
193
|
+
refund_reason_id: data.refund.refund_reason_id
|
|
191
194
|
},
|
|
192
195
|
{
|
|
193
196
|
onSuccess: () => {
|
|
@@ -366,6 +369,30 @@ var OrderBalanceSettlementForm = ({
|
|
|
366
369
|
}
|
|
367
370
|
}
|
|
368
371
|
),
|
|
372
|
+
/* @__PURE__ */ jsx(
|
|
373
|
+
Form.Field,
|
|
374
|
+
{
|
|
375
|
+
control: form.control,
|
|
376
|
+
name: "refund.refund_reason_id",
|
|
377
|
+
render: ({ field }) => {
|
|
378
|
+
return /* @__PURE__ */ jsxs(Form.Item, { children: [
|
|
379
|
+
/* @__PURE__ */ jsx(Form.Label, { children: t("fields.refundReason") }),
|
|
380
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
|
|
381
|
+
Select,
|
|
382
|
+
{
|
|
383
|
+
value: field.value,
|
|
384
|
+
onValueChange: field.onChange,
|
|
385
|
+
children: [
|
|
386
|
+
/* @__PURE__ */ jsx(Select.Trigger, { children: /* @__PURE__ */ jsx(Select.Value, {}) }),
|
|
387
|
+
/* @__PURE__ */ jsx(Select.Content, { children: refund_reasons?.map((reason) => /* @__PURE__ */ jsx(Select.Item, { value: reason.id, children: reason.label }, reason.id)) })
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
) }),
|
|
391
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
|
392
|
+
] });
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
),
|
|
369
396
|
/* @__PURE__ */ jsx(
|
|
370
397
|
Form.Field,
|
|
371
398
|
{
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-AM2BU2RH.mjs";
|
|
7
7
|
import {
|
|
8
8
|
PRODUCT_DETAIL_FIELDS
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BIKW7MCI.mjs";
|
|
10
10
|
import {
|
|
11
11
|
SidebarLink
|
|
12
12
|
} from "./chunk-U726TGCM.mjs";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
getFormattedCountry
|
|
20
20
|
} from "./chunk-B6ZOPCPA.mjs";
|
|
21
21
|
import "./chunk-DG7J63J2.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-6FNQ7PPY.mjs";
|
|
23
23
|
import "./chunk-ONB3JEHR.mjs";
|
|
24
24
|
import "./chunk-JAW6ZD7F.mjs";
|
|
25
25
|
import "./chunk-TO7QJZLE.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PRODUCT_DETAIL_FIELDS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BIKW7MCI.mjs";
|
|
4
4
|
import {
|
|
5
5
|
useExtendableForm
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6FNQ7PPY.mjs";
|
|
7
7
|
import "./chunk-ONB3JEHR.mjs";
|
|
8
8
|
import "./chunk-JAW6ZD7F.mjs";
|
|
9
9
|
import "./chunk-TO7QJZLE.mjs";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-KMS7EW7I.mjs";
|
|
4
4
|
import "./chunk-O35G64XS.mjs";
|
|
5
5
|
import "./chunk-R6TSI7GJ.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-MMJJ4M4V.mjs";
|
|
7
7
|
import "./chunk-IHVAPHYF.mjs";
|
|
8
8
|
import "./chunk-KFT4EHYM.mjs";
|
|
9
9
|
import "./chunk-K44PQXQY.mjs";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
useProductTagTableColumns
|
|
6
6
|
} from "./chunk-O35G64XS.mjs";
|
|
7
7
|
import "./chunk-R6TSI7GJ.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-MMJJ4M4V.mjs";
|
|
9
9
|
import "./chunk-IHVAPHYF.mjs";
|
|
10
10
|
import "./chunk-KFT4EHYM.mjs";
|
|
11
11
|
import "./chunk-K44PQXQY.mjs";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
usePropertyLabelsTableColumns
|
|
3
3
|
} from "./chunk-O35G64XS.mjs";
|
|
4
4
|
import "./chunk-R6TSI7GJ.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-MMJJ4M4V.mjs";
|
|
6
6
|
import "./chunk-IHVAPHYF.mjs";
|
|
7
7
|
import "./chunk-KFT4EHYM.mjs";
|
|
8
8
|
import "./chunk-K44PQXQY.mjs";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
useRefundReasonTableColumns
|
|
3
3
|
} from "./chunk-O35G64XS.mjs";
|
|
4
4
|
import "./chunk-R6TSI7GJ.mjs";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-MMJJ4M4V.mjs";
|
|
6
6
|
import "./chunk-IHVAPHYF.mjs";
|
|
7
7
|
import "./chunk-KFT4EHYM.mjs";
|
|
8
8
|
import "./chunk-K44PQXQY.mjs";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
useReturnReasonTableColumns
|
|
8
8
|
} from "./chunk-O35G64XS.mjs";
|
|
9
9
|
import "./chunk-R6TSI7GJ.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-MMJJ4M4V.mjs";
|
|
11
11
|
import "./chunk-IHVAPHYF.mjs";
|
|
12
12
|
import "./chunk-KFT4EHYM.mjs";
|
|
13
13
|
import "./chunk-K44PQXQY.mjs";
|
|
@@ -21,7 +21,7 @@ import "./chunk-4FM6S5CX.mjs";
|
|
|
21
21
|
import "./chunk-UQQD6PHX.mjs";
|
|
22
22
|
import "./chunk-O35G64XS.mjs";
|
|
23
23
|
import "./chunk-R6TSI7GJ.mjs";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-MMJJ4M4V.mjs";
|
|
25
25
|
import "./chunk-IHVAPHYF.mjs";
|
|
26
26
|
import "./chunk-KFT4EHYM.mjs";
|
|
27
27
|
import "./chunk-K44PQXQY.mjs";
|
package/dist/{tax-region-province-detail-VVE3XJM2.mjs → tax-region-province-detail-3TMWCHHH.mjs}
RENAMED
|
@@ -18,7 +18,7 @@ import "./chunk-4FM6S5CX.mjs";
|
|
|
18
18
|
import "./chunk-UQQD6PHX.mjs";
|
|
19
19
|
import "./chunk-O35G64XS.mjs";
|
|
20
20
|
import "./chunk-R6TSI7GJ.mjs";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-MMJJ4M4V.mjs";
|
|
22
22
|
import "./chunk-IHVAPHYF.mjs";
|
|
23
23
|
import "./chunk-KFT4EHYM.mjs";
|
|
24
24
|
import "./chunk-K44PQXQY.mjs";
|
|
@@ -11,7 +11,7 @@ import "./chunk-UC26CCHZ.mjs";
|
|
|
11
11
|
import "./chunk-UQQD6PHX.mjs";
|
|
12
12
|
import "./chunk-O35G64XS.mjs";
|
|
13
13
|
import "./chunk-R6TSI7GJ.mjs";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-MMJJ4M4V.mjs";
|
|
15
15
|
import "./chunk-IHVAPHYF.mjs";
|
|
16
16
|
import "./chunk-KFT4EHYM.mjs";
|
|
17
17
|
import "./chunk-K44PQXQY.mjs";
|
package/dist/{tax-region-tax-override-edit-SJ6Z3VHH.mjs → tax-region-tax-override-edit-WSOAAI66.mjs}
RENAMED
|
@@ -8,7 +8,7 @@ import "./chunk-UC26CCHZ.mjs";
|
|
|
8
8
|
import "./chunk-UQQD6PHX.mjs";
|
|
9
9
|
import "./chunk-O35G64XS.mjs";
|
|
10
10
|
import "./chunk-R6TSI7GJ.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-MMJJ4M4V.mjs";
|
|
12
12
|
import "./chunk-IHVAPHYF.mjs";
|
|
13
13
|
import "./chunk-KFT4EHYM.mjs";
|
|
14
14
|
import "./chunk-K44PQXQY.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medusajs/dashboard",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.0-preview-20261002101246",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"typecheck": "tsgo --noEmit -p tsconfig.typecheck.json",
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
"@dnd-kit/utilities": "^3.2.2",
|
|
69
69
|
"@hookform/error-message": "^2.0.1",
|
|
70
70
|
"@hookform/resolvers": "5.5.7",
|
|
71
|
-
"@medusajs/admin-shared": "2.
|
|
72
|
-
"@medusajs/icons": "2.
|
|
73
|
-
"@medusajs/js-sdk": "2.
|
|
74
|
-
"@medusajs/ui": "4.2.
|
|
71
|
+
"@medusajs/admin-shared": "2.22.0-preview-20261002101246",
|
|
72
|
+
"@medusajs/icons": "2.22.0-preview-20261002101246",
|
|
73
|
+
"@medusajs/js-sdk": "2.22.0-preview-20261002101246",
|
|
74
|
+
"@medusajs/ui": "4.2.7-preview-20261002101246",
|
|
75
75
|
"@radix-ui/react-dialog": "1.1.4",
|
|
76
76
|
"@radix-ui/react-dismissable-layer": "1.1.4",
|
|
77
77
|
"@tanstack/react-query": "5.64.2",
|
|
@@ -103,10 +103,10 @@
|
|
|
103
103
|
"zod": "4.2.0"
|
|
104
104
|
},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@medusajs/admin-shared": "2.
|
|
107
|
-
"@medusajs/admin-vite-plugin": "2.
|
|
108
|
-
"@medusajs/types": "2.
|
|
109
|
-
"@medusajs/ui-preset": "2.
|
|
106
|
+
"@medusajs/admin-shared": "2.22.0-preview-20261002101246",
|
|
107
|
+
"@medusajs/admin-vite-plugin": "2.22.0-preview-20261002101246",
|
|
108
|
+
"@medusajs/types": "2.22.0-preview-20261002101246",
|
|
109
|
+
"@medusajs/ui-preset": "2.22.0-preview-20261002101246",
|
|
110
110
|
"@types/qrcode": "^1.5.5",
|
|
111
111
|
"@typescript/native-preview": "^7.0.0-dev.20260423.1",
|
|
112
112
|
"eslint": "8",
|
|
@@ -114,6 +114,6 @@
|
|
|
114
114
|
},
|
|
115
115
|
"packageManager": "yarn@3.2.1",
|
|
116
116
|
"engines": {
|
|
117
|
-
"node": "
|
|
117
|
+
"node": ">=22.15.0"
|
|
118
118
|
}
|
|
119
119
|
}
|
|
@@ -1952,7 +1952,7 @@
|
|
|
1952
1952
|
"shipping_one": "{{count}} možnost dopravy",
|
|
1953
1953
|
"shipping_few": "{{count}} možnosti dopravy",
|
|
1954
1954
|
"shipping_many": "{{count}} možností dopravy",
|
|
1955
|
-
"shipping_other": "{{count}}
|
|
1955
|
+
"shipping_other": "{{count}} možností dopravy",
|
|
1956
1956
|
"pickup_one": "{{count}} možnost vyzvednutí",
|
|
1957
1957
|
"pickup_few": "{{count}} možnosti vyzvednutí",
|
|
1958
1958
|
"pickup_many": "{{count}} možností vyzvednutí",
|
|
@@ -1960,7 +1960,7 @@
|
|
|
1960
1960
|
"returns_one": "{{count}} možnost vrácení",
|
|
1961
1961
|
"returns_few": "{{count}} možnosti vrácení",
|
|
1962
1962
|
"returns_many": "{{count}} možností vrácení",
|
|
1963
|
-
"returns_other": "{{count}}
|
|
1963
|
+
"returns_other": "{{count}} možností vrácení"
|
|
1964
1964
|
},
|
|
1965
1965
|
"priceType": {
|
|
1966
1966
|
"label": "Typ ceny",
|
|
@@ -3725,31 +3725,31 @@
|
|
|
3725
3725
|
"years_one": "Rok",
|
|
3726
3726
|
"years_few": "Roky",
|
|
3727
3727
|
"years_many": "Roků",
|
|
3728
|
-
"years_other": "
|
|
3728
|
+
"years_other": "Roků",
|
|
3729
3729
|
"months_one": "Měsíc",
|
|
3730
3730
|
"months_few": "Měsíce",
|
|
3731
3731
|
"months_many": "Měsíců",
|
|
3732
|
-
"months_other": "
|
|
3732
|
+
"months_other": "Měsíců",
|
|
3733
3733
|
"weeks_one": "Týden",
|
|
3734
3734
|
"weeks_few": "Týdny",
|
|
3735
3735
|
"weeks_many": "Týdnů",
|
|
3736
|
-
"weeks_other": "
|
|
3736
|
+
"weeks_other": "Týdnů",
|
|
3737
3737
|
"days_one": "Den",
|
|
3738
3738
|
"days_few": "Dny",
|
|
3739
3739
|
"days_many": "Dnů",
|
|
3740
|
-
"days_other": "
|
|
3740
|
+
"days_other": "Dnů",
|
|
3741
3741
|
"hours_one": "Hodina",
|
|
3742
3742
|
"hours_few": "Hodiny",
|
|
3743
3743
|
"hours_many": "Hodin",
|
|
3744
|
-
"hours_other": "
|
|
3744
|
+
"hours_other": "Hodin",
|
|
3745
3745
|
"minutes_one": "Minuta",
|
|
3746
3746
|
"minutes_few": "Minuty",
|
|
3747
3747
|
"minutes_many": "Minut",
|
|
3748
|
-
"minutes_other": "
|
|
3748
|
+
"minutes_other": "Minut",
|
|
3749
3749
|
"seconds_one": "Sekunda",
|
|
3750
3750
|
"seconds_few": "Sekundy",
|
|
3751
3751
|
"seconds_many": "Sekund",
|
|
3752
|
-
"seconds_other": "
|
|
3752
|
+
"seconds_other": "Sekund"
|
|
3753
3753
|
},
|
|
3754
3754
|
"translations": {
|
|
3755
3755
|
"domain": "Překlady",
|
|
@@ -67,7 +67,8 @@
|
|
|
67
67
|
"noMoreData": "ไม่มีข้อมูลเพิ่มเติม",
|
|
68
68
|
"quantityPrice": "ราคาตามจำนวน",
|
|
69
69
|
"exclusive": "เฉพาะสินค้า",
|
|
70
|
-
"global": "ทั่วโลก"
|
|
70
|
+
"global": "ทั่วโลก",
|
|
71
|
+
"values_one": "{{count}} ค่า"
|
|
71
72
|
},
|
|
72
73
|
"json": {
|
|
73
74
|
"header": "JSON",
|
|
@@ -1570,7 +1571,8 @@
|
|
|
1570
1571
|
"wrongQuantity_other": "จำนวนต้องอยู่ระหว่าง 1 ถึง {{number}}",
|
|
1571
1572
|
"noItems": "ไม่มีรายการให้จัดส่ง",
|
|
1572
1573
|
"noShippingOption": "ต้องระบุตัวเลือกการจัดส่ง",
|
|
1573
|
-
"noLocation": "ต้องระบุสถานที่"
|
|
1574
|
+
"noLocation": "ต้องระบุสถานที่",
|
|
1575
|
+
"wrongQuantity_one": "มีสินค้าเพียงหนึ่งรายการที่พร้อมสำหรับการจัดส่ง"
|
|
1574
1576
|
},
|
|
1575
1577
|
"status": {
|
|
1576
1578
|
"notFulfilled": "ยังไม่ได้เตรียมสินค้า",
|
|
@@ -2841,11 +2843,14 @@
|
|
|
2841
2843
|
"successToast_other": "เพิ่มผู้ใช้ในบทบาทสำเร็จ",
|
|
2842
2844
|
"list": {
|
|
2843
2845
|
"noRecordsMessage": "กรุณาสร้างผู้ใช้ก่อน"
|
|
2844
|
-
}
|
|
2846
|
+
},
|
|
2847
|
+
"successToast_one": "เพิ่มผู้ใช้ในบทบาทสำเร็จ"
|
|
2845
2848
|
},
|
|
2846
2849
|
"remove": {
|
|
2847
2850
|
"title_other": "ลบผู้ใช้",
|
|
2848
|
-
"description_other": "คุณกำลังจะลบ {{count}} ผู้ใช้ออกจากบทบาท การดำเนินการนี้ไม่สามารถยกเลิกได้"
|
|
2851
|
+
"description_other": "คุณกำลังจะลบ {{count}} ผู้ใช้ออกจากบทบาท การดำเนินการนี้ไม่สามารถยกเลิกได้",
|
|
2852
|
+
"description_one": "คุณกำลังจะนำผู้ใช้ {{count}} คนออกจากบทบาท การดำเนินการนี้ไม่สามารถย้อนกลับได้",
|
|
2853
|
+
"title_one": "นำผู้ใช้ออก"
|
|
2849
2854
|
},
|
|
2850
2855
|
"list": {
|
|
2851
2856
|
"noRecordsMessage": "บทบาทนี้ยังไม่มีผู้ใช้"
|
|
@@ -24,6 +24,7 @@ import { KeyboundForm } from "../../../../../components/utilities/keybound-form"
|
|
|
24
24
|
import {
|
|
25
25
|
useCreateOrderCreditLine,
|
|
26
26
|
useRefundPayment,
|
|
27
|
+
useRefundReasons,
|
|
27
28
|
} from "../../../../../hooks/api"
|
|
28
29
|
import { currencies } from "../../../../../lib/data/currencies"
|
|
29
30
|
import { formatCurrency } from "../../../../../lib/format-currency"
|
|
@@ -39,6 +40,7 @@ const OrderBalanceSettlementSchema = zod.object({
|
|
|
39
40
|
float: zod.number().or(zod.null()),
|
|
40
41
|
}),
|
|
41
42
|
note: zod.string().optional(),
|
|
43
|
+
refund_reason_id: zod.string().optional(),
|
|
42
44
|
})
|
|
43
45
|
.optional(),
|
|
44
46
|
credit_line: zod
|
|
@@ -58,6 +60,7 @@ export const OrderBalanceSettlementForm = ({
|
|
|
58
60
|
order: AdminOrder
|
|
59
61
|
}) => {
|
|
60
62
|
const { t } = useTranslation()
|
|
63
|
+
const { refund_reasons } = useRefundReasons()
|
|
61
64
|
const [searchParams] = useSearchParams()
|
|
62
65
|
const { handleSuccess } = useRouteModal()
|
|
63
66
|
const paymentId = searchParams.get("paymentId")
|
|
@@ -130,6 +133,7 @@ export const OrderBalanceSettlementForm = ({
|
|
|
130
133
|
{
|
|
131
134
|
amount: data.refund!.amount!.float!,
|
|
132
135
|
note: data.refund!.note,
|
|
136
|
+
refund_reason_id: data.refund!.refund_reason_id,
|
|
133
137
|
},
|
|
134
138
|
{
|
|
135
139
|
onSuccess: () => {
|
|
@@ -329,6 +333,39 @@ export const OrderBalanceSettlementForm = ({
|
|
|
329
333
|
}}
|
|
330
334
|
/>
|
|
331
335
|
|
|
336
|
+
<Form.Field
|
|
337
|
+
control={form.control}
|
|
338
|
+
name="refund.refund_reason_id"
|
|
339
|
+
render={({ field }) => {
|
|
340
|
+
return (
|
|
341
|
+
<Form.Item>
|
|
342
|
+
<Form.Label>{t("fields.refundReason")}</Form.Label>
|
|
343
|
+
|
|
344
|
+
<Form.Control>
|
|
345
|
+
<Select
|
|
346
|
+
value={field.value}
|
|
347
|
+
onValueChange={field.onChange}
|
|
348
|
+
>
|
|
349
|
+
<Select.Trigger>
|
|
350
|
+
<Select.Value />
|
|
351
|
+
</Select.Trigger>
|
|
352
|
+
|
|
353
|
+
<Select.Content>
|
|
354
|
+
{refund_reasons?.map((reason) => (
|
|
355
|
+
<Select.Item key={reason.id} value={reason.id}>
|
|
356
|
+
{reason.label}
|
|
357
|
+
</Select.Item>
|
|
358
|
+
))}
|
|
359
|
+
</Select.Content>
|
|
360
|
+
</Select>
|
|
361
|
+
</Form.Control>
|
|
362
|
+
|
|
363
|
+
<Form.ErrorMessage />
|
|
364
|
+
</Form.Item>
|
|
365
|
+
)
|
|
366
|
+
}}
|
|
367
|
+
/>
|
|
368
|
+
|
|
332
369
|
<Form.Field
|
|
333
370
|
control={form.control}
|
|
334
371
|
name={`refund.note`}
|
|
@@ -248,8 +248,8 @@ export const ProductOptionsManageForm = ({
|
|
|
248
248
|
|
|
249
249
|
// Deselecting every value is the user's way of saying "remove this option
|
|
250
250
|
// from the product". Drop the row so the submit pipeline routes it through
|
|
251
|
-
// optionsToRemove
|
|
252
|
-
//
|
|
251
|
+
// optionsToRemove; the backend detaches the option from the product's
|
|
252
|
+
// variants, or rejects it if that would collide two variants.
|
|
253
253
|
if (!valueIds.length) {
|
|
254
254
|
const currentOptions = form.getValues("options") || []
|
|
255
255
|
form.setValue(
|