@medusajs/dashboard 2.10.2-snapshot-20250829084652 → 2.11.0-snapshot-20250829134337
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/{add-campaign-promotions-UQVBTTWK.mjs → add-campaign-promotions-U277KTL4.mjs} +3 -3
- package/dist/app.css +0 -6
- package/dist/app.js +227 -120
- package/dist/app.mjs +2 -2
- package/dist/{campaign-detail-FIO6336E.mjs → campaign-detail-6454LL3C.mjs} +3 -3
- package/dist/{chunk-RQYKGJZ4.mjs → chunk-3VDOFEA6.mjs} +1 -1
- package/dist/{chunk-H3JGGHAQ.mjs → chunk-6OHAQHB4.mjs} +1 -1
- package/dist/{chunk-D4T3GFML.mjs → chunk-F7LJJHQT.mjs} +7 -0
- package/dist/{chunk-G4ARHIQV.mjs → chunk-FLUC3I3N.mjs} +1 -1
- package/dist/{chunk-XDYQGXJ3.mjs → chunk-OQXWDAEB.mjs} +2 -1
- package/dist/{chunk-SJFXY376.mjs → chunk-TM44KN7J.mjs} +26 -26
- package/dist/{chunk-WLTKZNOI.mjs → chunk-YTDRSPOL.mjs} +1 -1
- package/dist/{order-create-claim-DBL2BU5Q.mjs → order-create-claim-ATLKY2SH.mjs} +1 -1
- package/dist/{order-create-edit-INKNOFBY.mjs → order-create-edit-5LOTLPD6.mjs} +1 -1
- package/dist/{order-create-exchange-6E2VLPU3.mjs → order-create-exchange-TOELYZPA.mjs} +1 -1
- package/dist/{order-create-refund-HJMKDY6S.mjs → order-create-refund-ZZNAUXIA.mjs} +1 -1
- package/dist/{order-create-return-IIEBZOZZ.mjs → order-create-return-2HT4V6UE.mjs} +1 -1
- package/dist/{order-detail-BDX6VUSZ.mjs → order-detail-KSLCQEHJ.mjs} +218 -119
- package/dist/{order-edit-billing-address-K2SUQK3S.mjs → order-edit-billing-address-5HQFWKN2.mjs} +1 -1
- package/dist/{order-edit-email-FSHV32T6.mjs → order-edit-email-2W33H5CV.mjs} +1 -1
- package/dist/{order-edit-shipping-address-RV2QZCR5.mjs → order-edit-shipping-address-VE2BJEHO.mjs} +1 -1
- package/dist/{order-request-transfer-NJ24WZ26.mjs → order-request-transfer-U52O2EVC.mjs} +1 -1
- package/dist/{product-attributes-HQ2HQQSE.mjs → product-attributes-3ILIUH55.mjs} +3 -3
- package/dist/{product-create-Q5ZIYMOR.mjs → product-create-3BFYAUDO.mjs} +3 -3
- package/dist/{product-detail-YMCONFSY.mjs → product-detail-Y72S2FF3.mjs} +3 -3
- package/dist/{product-edit-SRWVIV2Z.mjs → product-edit-SFN7PUQI.mjs} +3 -3
- package/dist/{product-media-F74IPY26.mjs → product-media-XWTASBCL.mjs} +2 -2
- package/dist/{product-organization-PKNCLB6W.mjs → product-organization-ATBB7J43.mjs} +3 -3
- package/dist/{product-shipping-profile-266AXOO6.mjs → product-shipping-profile-VCUZOITH.mjs} +3 -3
- package/dist/{promotion-detail-X5XWYLTC.mjs → promotion-detail-EDLXBH4V.mjs} +2 -2
- package/dist/{promotion-list-R7J2AWA3.mjs → promotion-list-QT6HW6VF.mjs} +3 -3
- package/dist/{reset-password-OIRVPF4I.mjs → reset-password-O3M4BVYH.mjs} +1 -1
- package/dist/{tax-region-create-VO65RBTI.mjs → tax-region-create-MXQGPOV2.mjs} +1 -1
- package/package.json +9 -9
- package/src/i18n/translations/$schema.json +5 -1
- package/src/i18n/translations/en.json +2 -1
- package/src/routes/orders/order-detail/components/order-summary-section/order-summary-section.tsx +247 -178
- package/src/routes/orders/order-detail/constants.ts +7 -0
@@ -39,7 +39,7 @@ import {
|
|
39
39
|
} from "./chunk-HUX22ZHT.mjs";
|
40
40
|
import {
|
41
41
|
DEFAULT_FIELDS
|
42
|
-
} from "./chunk-
|
42
|
+
} from "./chunk-F7LJJHQT.mjs";
|
43
43
|
import {
|
44
44
|
getCanceledOrderStatus,
|
45
45
|
getOrderFulfillmentStatus,
|
@@ -2630,7 +2630,7 @@ var OrderSummarySection = ({
|
|
2630
2630
|
/* @__PURE__ */ jsx18(Header3, { order, orderPreview }),
|
2631
2631
|
/* @__PURE__ */ jsx18(ItemBreakdown, { order, reservations }),
|
2632
2632
|
/* @__PURE__ */ jsx18(CostBreakdown, { order }),
|
2633
|
-
/* @__PURE__ */ jsx18(
|
2633
|
+
/* @__PURE__ */ jsx18(DiscountAndTotalBreakdown, { order, plugins }),
|
2634
2634
|
/* @__PURE__ */ jsx18(Total2, { order }),
|
2635
2635
|
(showAllocateButton || showReturns || showPayment || showRefund) && /* @__PURE__ */ jsxs19("div", { className: "bg-ui-bg-subtle flex items-center justify-end gap-x-2 rounded-b-xl px-4 py-4", children: [
|
2636
2636
|
showReturns && (receivableReturns.length === 1 ? /* @__PURE__ */ jsx18(Button9, { asChild: true, variant: "secondary", size: "small", children: /* @__PURE__ */ jsx18(
|
@@ -2870,40 +2870,29 @@ var CostBreakdown = ({
|
|
2870
2870
|
const { t } = useTranslation18();
|
2871
2871
|
const [isTaxOpen, setIsTaxOpen] = useState7(false);
|
2872
2872
|
const [isShippingOpen, setIsShippingOpen] = useState7(false);
|
2873
|
-
const
|
2874
|
-
const
|
2875
|
-
order.
|
2876
|
-
|
2877
|
-
|
2878
|
-
|
2879
|
-
);
|
2880
|
-
return Array.from(codes).sort();
|
2881
|
-
}, [order]);
|
2882
|
-
const taxCodes = useMemo3(() => {
|
2883
|
-
const taxCodeMap = {};
|
2884
|
-
order.items.forEach((item) => {
|
2885
|
-
item.tax_lines?.forEach((line) => {
|
2886
|
-
taxCodeMap[line.code] = (taxCodeMap[line.code] || 0) + line.total;
|
2873
|
+
const taxes = useMemo3(() => {
|
2874
|
+
const taxes2 = [];
|
2875
|
+
if (order.original_item_tax_total) {
|
2876
|
+
taxes2.push({
|
2877
|
+
type: "item",
|
2878
|
+
total: order.original_item_tax_total
|
2887
2879
|
});
|
2888
|
-
}
|
2889
|
-
order.
|
2890
|
-
|
2891
|
-
|
2880
|
+
}
|
2881
|
+
if (order.original_shipping_tax_total) {
|
2882
|
+
taxes2.push({
|
2883
|
+
type: "shipping",
|
2884
|
+
total: order.original_shipping_tax_total
|
2892
2885
|
});
|
2893
|
-
}
|
2894
|
-
return
|
2886
|
+
}
|
2887
|
+
return taxes2;
|
2895
2888
|
}, [order]);
|
2896
|
-
const
|
2897
|
-
const hasTaxLines = !!Object.keys(taxCodes).length;
|
2898
|
-
const discountTotal = automaticTaxesOn ? order.discount_total : order.discount_subtotal;
|
2889
|
+
const hasTaxes = !!Object.keys(taxes).length;
|
2899
2890
|
return /* @__PURE__ */ jsxs19("div", { className: "text-ui-fg-subtle flex flex-col gap-y-2 px-6 py-4", children: [
|
2900
2891
|
/* @__PURE__ */ jsx18(
|
2901
2892
|
Cost,
|
2902
2893
|
{
|
2903
|
-
label: t(
|
2904
|
-
|
2905
|
-
),
|
2906
|
-
value: getLocaleAmount(order.item_total, order.currency_code)
|
2894
|
+
label: t("orders.summary.itemSubtotal"),
|
2895
|
+
value: getLocaleAmount(order.item_subtotal, order.currency_code)
|
2907
2896
|
}
|
2908
2897
|
),
|
2909
2898
|
/* @__PURE__ */ jsx18(
|
@@ -2915,9 +2904,7 @@ var CostBreakdown = ({
|
|
2915
2904
|
onClick: () => setIsShippingOpen((o) => !o),
|
2916
2905
|
className: "flex cursor-pointer items-center gap-1",
|
2917
2906
|
children: [
|
2918
|
-
/* @__PURE__ */ jsx18("span", { children: t(
|
2919
|
-
automaticTaxesOn ? "orders.summary.shippingTotal" : "orders.summary.shippingSubtotal"
|
2920
|
-
) }),
|
2907
|
+
/* @__PURE__ */ jsx18("span", { children: t("orders.summary.shippingSubtotal") }),
|
2921
2908
|
/* @__PURE__ */ jsx18(
|
2922
2909
|
TriangleDownMini,
|
2923
2910
|
{
|
@@ -2929,10 +2916,7 @@ var CostBreakdown = ({
|
|
2929
2916
|
]
|
2930
2917
|
}
|
2931
2918
|
),
|
2932
|
-
value: getLocaleAmount(
|
2933
|
-
automaticTaxesOn ? order.shipping_total : order.shipping_subtotal,
|
2934
|
-
order.currency_code
|
2935
|
-
)
|
2919
|
+
value: getLocaleAmount(order.shipping_subtotal, order.currency_code)
|
2936
2920
|
}
|
2937
2921
|
),
|
2938
2922
|
isShippingOpen && /* @__PURE__ */ jsx18("div", { className: "flex flex-col gap-1 pl-5", children: (order.shipping_methods || []).sort(
|
@@ -2950,39 +2934,24 @@ var CostBreakdown = ({
|
|
2950
2934
|
/* @__PURE__ */ jsx18(shipping_info_popover_default, { shippingMethod: sm }, i)
|
2951
2935
|
] }) }),
|
2952
2936
|
/* @__PURE__ */ jsx18("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx18("div", { className: "bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" }) }),
|
2953
|
-
/* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-muted", children: getLocaleAmount(
|
2954
|
-
automaticTaxesOn ? sm.total : sm.subtotal,
|
2955
|
-
order.currency_code
|
2956
|
-
) })
|
2937
|
+
/* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-muted", children: getLocaleAmount(sm.subtotal, order.currency_code) })
|
2957
2938
|
]
|
2958
2939
|
},
|
2959
2940
|
sm.id
|
2960
2941
|
);
|
2961
2942
|
}) }),
|
2962
|
-
/* @__PURE__ */ jsx18(
|
2963
|
-
Cost,
|
2964
|
-
{
|
2965
|
-
label: t(
|
2966
|
-
automaticTaxesOn ? "orders.summary.discountTotal" : "orders.summary.discountSubtotal"
|
2967
|
-
),
|
2968
|
-
secondaryValue: discountCodes.join(", "),
|
2969
|
-
value: discountTotal > 0 ? `- ${getLocaleAmount(discountTotal, order.currency_code)}` : "-"
|
2970
|
-
}
|
2971
|
-
),
|
2972
2943
|
/* @__PURE__ */ jsxs19(Fragment3, { children: [
|
2973
2944
|
/* @__PURE__ */ jsxs19("div", { className: "flex justify-between", children: [
|
2974
2945
|
/* @__PURE__ */ jsxs19(
|
2975
2946
|
"div",
|
2976
2947
|
{
|
2977
|
-
onClick: () =>
|
2948
|
+
onClick: () => hasTaxes && setIsTaxOpen((o) => !o),
|
2978
2949
|
className: clx3("flex items-center gap-1", {
|
2979
|
-
"cursor-pointer":
|
2950
|
+
"cursor-pointer": hasTaxes
|
2980
2951
|
}),
|
2981
2952
|
children: [
|
2982
|
-
/* @__PURE__ */ jsx18("span", { className: "txt-small select-none", children: t(
|
2983
|
-
|
2984
|
-
) }),
|
2985
|
-
hasTaxLines && /* @__PURE__ */ jsx18(
|
2953
|
+
/* @__PURE__ */ jsx18("span", { className: "txt-small select-none", children: t("orders.summary.taxTotal") }),
|
2954
|
+
hasTaxes && /* @__PURE__ */ jsx18(
|
2986
2955
|
TriangleDownMini,
|
2987
2956
|
{
|
2988
2957
|
style: {
|
@@ -2993,98 +2962,232 @@ var CostBreakdown = ({
|
|
2993
2962
|
]
|
2994
2963
|
}
|
2995
2964
|
),
|
2996
|
-
/* @__PURE__ */ jsx18("div", { className: "text-right", children: /* @__PURE__ */ jsx18(Text12, { size: "small", leading: "compact", children: getLocaleAmount(order.
|
2965
|
+
/* @__PURE__ */ jsx18("div", { className: "text-right", children: /* @__PURE__ */ jsx18(Text12, { size: "small", leading: "compact", children: getLocaleAmount(order.original_tax_total, order.currency_code) }) })
|
2997
2966
|
] }),
|
2998
|
-
isTaxOpen && /* @__PURE__ */ jsx18("div", { className: "flex flex-col gap-1 pl-5", children:
|
2967
|
+
isTaxOpen && /* @__PURE__ */ jsx18("div", { className: "flex flex-col gap-1 pl-5", children: taxes.map(({ type, total }) => {
|
2999
2968
|
return /* @__PURE__ */ jsxs19(
|
3000
2969
|
"div",
|
3001
2970
|
{
|
3002
2971
|
className: "flex items-center justify-between gap-x-2",
|
3003
2972
|
children: [
|
3004
|
-
/* @__PURE__ */ jsx18("div", { children: /* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-subtle font-medium", children:
|
2973
|
+
/* @__PURE__ */ jsx18("div", { children: /* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-subtle font-medium", children: t(`fields.${type}`) }) }),
|
3005
2974
|
/* @__PURE__ */ jsx18("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx18("div", { className: "bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" }) }),
|
3006
2975
|
/* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-muted", children: getLocaleAmount(total, order.currency_code) })
|
3007
2976
|
]
|
3008
2977
|
},
|
3009
|
-
|
2978
|
+
type
|
3010
2979
|
);
|
3011
2980
|
}) })
|
2981
|
+
] }),
|
2982
|
+
/* @__PURE__ */ jsxs19("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
|
2983
|
+
/* @__PURE__ */ jsx18(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("fields.total") }),
|
2984
|
+
/* @__PURE__ */ jsx18(
|
2985
|
+
Text12,
|
2986
|
+
{
|
2987
|
+
className: "text-ui-fg-subtle text-bold",
|
2988
|
+
size: "small",
|
2989
|
+
leading: "compact",
|
2990
|
+
children: getLocaleAmount(order.original_total, order.currency_code)
|
2991
|
+
}
|
2992
|
+
)
|
3012
2993
|
] })
|
3013
2994
|
] });
|
3014
2995
|
};
|
3015
|
-
var
|
2996
|
+
var DiscountAndTotalBreakdown = ({
|
3016
2997
|
order,
|
3017
2998
|
plugins
|
3018
2999
|
}) => {
|
3019
3000
|
const { t } = useTranslation18();
|
3001
|
+
const [isDiscountOpen, setIsDiscountOpen] = useState7(false);
|
3020
3002
|
const [isCreditLinesOpen, setIsCreditLinesOpen] = useState7(false);
|
3021
3003
|
const creditLines = order.credit_lines ?? [];
|
3022
3004
|
const loyaltyPlugin = getLoyaltyPlugin(plugins);
|
3023
|
-
|
3024
|
-
|
3025
|
-
|
3026
|
-
|
3027
|
-
|
3028
|
-
|
3005
|
+
const discounts = useMemo3(() => {
|
3006
|
+
const discounts2 = [];
|
3007
|
+
if (order.item_discount_total) {
|
3008
|
+
discounts2.push({
|
3009
|
+
type: "item",
|
3010
|
+
total: order.item_discount_total,
|
3011
|
+
codes: Array.from(
|
3012
|
+
new Set(
|
3013
|
+
order.items.flatMap((item) => item.adjustments || []).map((adjustment) => adjustment.code)
|
3014
|
+
)
|
3015
|
+
).sort()
|
3016
|
+
});
|
3017
|
+
}
|
3018
|
+
if (order.shipping_discount_total) {
|
3019
|
+
discounts2.push({
|
3020
|
+
type: "shipping",
|
3021
|
+
total: order.shipping_discount_total,
|
3022
|
+
codes: Array.from(
|
3023
|
+
new Set(
|
3024
|
+
order.shipping_methods.flatMap((shippingMethod) => shippingMethod.adjustments || []).map((adjustment) => adjustment.code)
|
3025
|
+
)
|
3026
|
+
).sort()
|
3027
|
+
});
|
3028
|
+
}
|
3029
|
+
return discounts2;
|
3030
|
+
}, [order]);
|
3031
|
+
const hasDiscount = discounts.length > 0;
|
3032
|
+
const hasCreditLines = creditLines.length > 0;
|
3033
|
+
return /* @__PURE__ */ jsxs19("div", { className: "text-ui-fg-subtle flex flex-col gap-y-2 px-6 py-4", children: [
|
3034
|
+
/* @__PURE__ */ jsx18(
|
3035
|
+
Cost,
|
3029
3036
|
{
|
3030
|
-
|
3031
|
-
|
3032
|
-
|
3033
|
-
|
3034
|
-
|
3035
|
-
|
3036
|
-
|
3037
|
-
|
3038
|
-
|
3037
|
+
label: /* @__PURE__ */ jsxs19(
|
3038
|
+
"div",
|
3039
|
+
{
|
3040
|
+
onClick: () => hasDiscount && setIsDiscountOpen((o) => !o),
|
3041
|
+
className: clx3("flex items-center gap-1", {
|
3042
|
+
"cursor-pointer": hasDiscount
|
3043
|
+
}),
|
3044
|
+
children: [
|
3045
|
+
/* @__PURE__ */ jsx18("span", { children: t("orders.summary.discountTotal") }),
|
3046
|
+
hasDiscount && /* @__PURE__ */ jsx18(
|
3047
|
+
TriangleDownMini,
|
3048
|
+
{
|
3049
|
+
style: {
|
3050
|
+
transform: `rotate(${isDiscountOpen ? 0 : -90}deg)`
|
3051
|
+
}
|
3039
3052
|
}
|
3040
|
-
|
3041
|
-
|
3042
|
-
|
3043
|
-
|
3044
|
-
|
3045
|
-
]
|
3053
|
+
)
|
3054
|
+
]
|
3055
|
+
}
|
3056
|
+
),
|
3057
|
+
value: getLocaleAmount(order.discount_total, order.currency_code)
|
3046
3058
|
}
|
3047
3059
|
),
|
3048
|
-
|
3049
|
-
const prettyReference = creditLine.reference?.split("_").join(" ").split("-").join(" ");
|
3050
|
-
const prettyReferenceId = creditLine.reference_id ? /* @__PURE__ */ jsx18(display_id_default, { id: creditLine.reference_id }) : null;
|
3060
|
+
isDiscountOpen && /* @__PURE__ */ jsx18("div", { className: "flex flex-col gap-1 pl-5", children: discounts.map(({ type, total, codes }) => {
|
3051
3061
|
return /* @__PURE__ */ jsxs19(
|
3052
3062
|
"div",
|
3053
3063
|
{
|
3054
|
-
className: "
|
3064
|
+
className: "flex items-center justify-between gap-x-2",
|
3055
3065
|
children: [
|
3056
|
-
/* @__PURE__ */ jsxs19("div", { className: "
|
3057
|
-
/* @__PURE__ */ jsx18(
|
3058
|
-
|
3059
|
-
|
3060
|
-
|
3061
|
-
|
3062
|
-
|
3063
|
-
className: "truncate",
|
3064
|
-
children: /* @__PURE__ */ jsx18(display_id_default, { id: creditLine.id })
|
3065
|
-
}
|
3066
|
-
),
|
3067
|
-
/* @__PURE__ */ jsx18(Text12, { size: "small", leading: "compact", children: format3(
|
3068
|
-
new Date(creditLine.created_at),
|
3069
|
-
"dd MMM, yyyy, HH:mm:ss"
|
3070
|
-
) })
|
3066
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex gap-1", children: [
|
3067
|
+
/* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-subtle font-medium", children: t(`fields.${type}`) }),
|
3068
|
+
/* @__PURE__ */ jsxs19("span", { className: "txt-small text-ui-fg-subtle font-medium", children: [
|
3069
|
+
"(",
|
3070
|
+
codes.join(", "),
|
3071
|
+
")"
|
3072
|
+
] })
|
3071
3073
|
] }),
|
3072
|
-
/* @__PURE__ */ jsx18("div", { className: "
|
3073
|
-
|
3074
|
-
" (",
|
3075
|
-
prettyReferenceId,
|
3076
|
-
")"
|
3077
|
-
] }) }),
|
3078
|
-
/* @__PURE__ */ jsx18("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx18(Text12, { size: "small", leading: "compact", children: getLocaleAmount(
|
3079
|
-
creditLine.amount,
|
3080
|
-
order.currency_code
|
3081
|
-
) }) })
|
3074
|
+
/* @__PURE__ */ jsx18("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx18("div", { className: "bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" }) }),
|
3075
|
+
/* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-muted", children: getLocaleAmount(total, order.currency_code) })
|
3082
3076
|
]
|
3083
3077
|
},
|
3084
|
-
|
3078
|
+
type
|
3085
3079
|
);
|
3086
|
-
}) })
|
3087
|
-
|
3080
|
+
}) }),
|
3081
|
+
hasCreditLines && /* @__PURE__ */ jsxs19(Fragment3, { children: [
|
3082
|
+
/* @__PURE__ */ jsx18(
|
3083
|
+
Cost,
|
3084
|
+
{
|
3085
|
+
label: /* @__PURE__ */ jsxs19(
|
3086
|
+
"div",
|
3087
|
+
{
|
3088
|
+
onClick: () => setIsCreditLinesOpen((o) => !o),
|
3089
|
+
className: "flex cursor-pointer items-center gap-1",
|
3090
|
+
children: [
|
3091
|
+
/* @__PURE__ */ jsx18("span", { children: loyaltyPlugin ? t("orders.giftCardsStoreCreditLines") : t("orders.creditLines.title") }),
|
3092
|
+
/* @__PURE__ */ jsx18(
|
3093
|
+
TriangleDownMini,
|
3094
|
+
{
|
3095
|
+
style: {
|
3096
|
+
transform: `rotate(${isCreditLinesOpen ? 0 : -90}deg)`
|
3097
|
+
}
|
3098
|
+
}
|
3099
|
+
)
|
3100
|
+
]
|
3101
|
+
}
|
3102
|
+
),
|
3103
|
+
value: getLocaleAmount(
|
3104
|
+
order.credit_line_total,
|
3105
|
+
order.currency_code
|
3106
|
+
)
|
3107
|
+
}
|
3108
|
+
),
|
3109
|
+
isCreditLinesOpen && /* @__PURE__ */ jsx18("div", { className: "flex flex-col gap-1 pl-5", children: creditLines.map((creditLine) => {
|
3110
|
+
const prettyReference = creditLine.reference?.split("_").join(" ").split("-").join(" ");
|
3111
|
+
const prettyReferenceId = creditLine.reference_id ? /* @__PURE__ */ jsx18(display_id_default, { id: creditLine.reference_id }) : null;
|
3112
|
+
return /* @__PURE__ */ jsxs19(
|
3113
|
+
"div",
|
3114
|
+
{
|
3115
|
+
className: "flex items-center justify-between gap-x-2",
|
3116
|
+
children: [
|
3117
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex items-center", children: [
|
3118
|
+
/* @__PURE__ */ jsx18(
|
3119
|
+
Text12,
|
3120
|
+
{
|
3121
|
+
size: "small",
|
3122
|
+
leading: "compact",
|
3123
|
+
weight: "plus",
|
3124
|
+
className: "txt-small text-ui-fg-subtle font-medium",
|
3125
|
+
children: /* @__PURE__ */ jsx18(display_id_default, { id: creditLine.id })
|
3126
|
+
}
|
3127
|
+
),
|
3128
|
+
/* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-subtle mx-1", children: "-" }),
|
3129
|
+
/* @__PURE__ */ jsx18(
|
3130
|
+
Tooltip7,
|
3131
|
+
{
|
3132
|
+
content: format3(
|
3133
|
+
new Date(creditLine.created_at),
|
3134
|
+
"dd MMM, yyyy, HH:mm:ss"
|
3135
|
+
),
|
3136
|
+
children: /* @__PURE__ */ jsx18(
|
3137
|
+
Text12,
|
3138
|
+
{
|
3139
|
+
size: "small",
|
3140
|
+
leading: "compact",
|
3141
|
+
className: "txt-small text-ui-fg-subtle",
|
3142
|
+
children: format3(
|
3143
|
+
new Date(creditLine.created_at),
|
3144
|
+
"dd MMM, yyyy"
|
3145
|
+
)
|
3146
|
+
}
|
3147
|
+
)
|
3148
|
+
}
|
3149
|
+
),
|
3150
|
+
/* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-subtle mx-1", children: "-" }),
|
3151
|
+
/* @__PURE__ */ jsxs19(
|
3152
|
+
Text12,
|
3153
|
+
{
|
3154
|
+
size: "small",
|
3155
|
+
leading: "compact",
|
3156
|
+
className: "txt-small text-ui-fg-subtle capitalize",
|
3157
|
+
children: [
|
3158
|
+
"(",
|
3159
|
+
prettyReference,
|
3160
|
+
" ",
|
3161
|
+
prettyReferenceId,
|
3162
|
+
")"
|
3163
|
+
]
|
3164
|
+
}
|
3165
|
+
)
|
3166
|
+
] }),
|
3167
|
+
/* @__PURE__ */ jsx18("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx18("div", { className: "bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" }) }),
|
3168
|
+
/* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-muted", children: getLocaleAmount(
|
3169
|
+
creditLine.amount,
|
3170
|
+
order.currency_code
|
3171
|
+
) })
|
3172
|
+
]
|
3173
|
+
},
|
3174
|
+
creditLine.id
|
3175
|
+
);
|
3176
|
+
}) })
|
3177
|
+
] }),
|
3178
|
+
/* @__PURE__ */ jsxs19("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
|
3179
|
+
/* @__PURE__ */ jsx18(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("orders.summary.totalAfterDiscount") }),
|
3180
|
+
/* @__PURE__ */ jsx18(
|
3181
|
+
Text12,
|
3182
|
+
{
|
3183
|
+
className: "text-ui-fg-subtle text-bold",
|
3184
|
+
size: "small",
|
3185
|
+
leading: "compact",
|
3186
|
+
children: getLocaleAmount(order.total, order.currency_code)
|
3187
|
+
}
|
3188
|
+
)
|
3189
|
+
] })
|
3190
|
+
] });
|
3088
3191
|
};
|
3089
3192
|
var InventoryKitBreakdown = ({ item }) => {
|
3090
3193
|
const { t } = useTranslation18();
|
@@ -3293,10 +3396,6 @@ var ExchangeBreakdown = ({
|
|
3293
3396
|
var Total2 = ({ order }) => {
|
3294
3397
|
const { t } = useTranslation18();
|
3295
3398
|
return /* @__PURE__ */ jsxs19("div", { className: " flex flex-col gap-y-2 px-6 py-4", children: [
|
3296
|
-
/* @__PURE__ */ jsxs19("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
|
3297
|
-
/* @__PURE__ */ jsx18(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("fields.total") }),
|
3298
|
-
/* @__PURE__ */ jsx18(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: getStylizedAmount(order.original_total, order.currency_code) })
|
3299
|
-
] }),
|
3300
3399
|
/* @__PURE__ */ jsxs19("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
|
3301
3400
|
/* @__PURE__ */ jsx18(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("fields.paidTotal") }),
|
3302
3401
|
/* @__PURE__ */ jsx18(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: getStylizedAmount(
|
@@ -3304,7 +3403,7 @@ var Total2 = ({ order }) => {
|
|
3304
3403
|
order.currency_code
|
3305
3404
|
) })
|
3306
3405
|
] }),
|
3307
|
-
/* @__PURE__ */ jsxs19("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
|
3406
|
+
getTotalCreditLines(order.credit_lines ?? []) > 0 && /* @__PURE__ */ jsxs19("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
|
3308
3407
|
/* @__PURE__ */ jsx18(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("fields.creditTotal") }),
|
3309
3408
|
/* @__PURE__ */ jsx18(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: getStylizedAmount(
|
3310
3409
|
getTotalCreditLines(order.credit_lines ?? []),
|
@@ -11,11 +11,11 @@ import {
|
|
11
11
|
} from "./chunk-4TC5YS65.mjs";
|
12
12
|
import {
|
13
13
|
PRODUCT_DETAIL_FIELDS
|
14
|
-
} from "./chunk-
|
14
|
+
} from "./chunk-3VDOFEA6.mjs";
|
15
15
|
import {
|
16
16
|
FormExtensionZone,
|
17
17
|
useExtendableForm
|
18
|
-
} from "./chunk-
|
18
|
+
} from "./chunk-TM44KN7J.mjs";
|
19
19
|
import "./chunk-NQIC7ZFS.mjs";
|
20
20
|
import "./chunk-ONB3JEHR.mjs";
|
21
21
|
import "./chunk-4GQOUCX6.mjs";
|
@@ -23,7 +23,7 @@ import "./chunk-2VTICXJR.mjs";
|
|
23
23
|
import "./chunk-RM6NY572.mjs";
|
24
24
|
import "./chunk-D3YQN7HV.mjs";
|
25
25
|
import "./chunk-DG7J63J2.mjs";
|
26
|
-
import "./chunk-
|
26
|
+
import "./chunk-OQXWDAEB.mjs";
|
27
27
|
import "./chunk-MNXC6Q4F.mjs";
|
28
28
|
import {
|
29
29
|
useExtension
|
@@ -25,7 +25,7 @@ import {
|
|
25
25
|
UploadMediaFormItem,
|
26
26
|
decorateVariantsWithDefaultValues,
|
27
27
|
normalizeProductFormValues
|
28
|
-
} from "./chunk-
|
28
|
+
} from "./chunk-6OHAQHB4.mjs";
|
29
29
|
import "./chunk-ZQRKUG6J.mjs";
|
30
30
|
import {
|
31
31
|
DataGrid,
|
@@ -61,7 +61,7 @@ import {
|
|
61
61
|
import {
|
62
62
|
FormExtensionZone,
|
63
63
|
useExtendableForm
|
64
|
-
} from "./chunk-
|
64
|
+
} from "./chunk-TM44KN7J.mjs";
|
65
65
|
import "./chunk-NQIC7ZFS.mjs";
|
66
66
|
import "./chunk-ONB3JEHR.mjs";
|
67
67
|
import "./chunk-4GQOUCX6.mjs";
|
@@ -69,7 +69,7 @@ import "./chunk-2VTICXJR.mjs";
|
|
69
69
|
import "./chunk-RM6NY572.mjs";
|
70
70
|
import "./chunk-D3YQN7HV.mjs";
|
71
71
|
import "./chunk-DG7J63J2.mjs";
|
72
|
-
import "./chunk-
|
72
|
+
import "./chunk-OQXWDAEB.mjs";
|
73
73
|
import "./chunk-MNXC6Q4F.mjs";
|
74
74
|
import {
|
75
75
|
useExtension
|
@@ -30,8 +30,8 @@ import {
|
|
30
30
|
import "./chunk-PFKKVLZX.mjs";
|
31
31
|
import {
|
32
32
|
PRODUCT_DETAIL_FIELDS
|
33
|
-
} from "./chunk-
|
34
|
-
import "./chunk-
|
33
|
+
} from "./chunk-3VDOFEA6.mjs";
|
34
|
+
import "./chunk-TM44KN7J.mjs";
|
35
35
|
import "./chunk-NQIC7ZFS.mjs";
|
36
36
|
import "./chunk-ONB3JEHR.mjs";
|
37
37
|
import "./chunk-4GQOUCX6.mjs";
|
@@ -39,7 +39,7 @@ import "./chunk-2VTICXJR.mjs";
|
|
39
39
|
import "./chunk-RM6NY572.mjs";
|
40
40
|
import "./chunk-D3YQN7HV.mjs";
|
41
41
|
import "./chunk-DG7J63J2.mjs";
|
42
|
-
import "./chunk-
|
42
|
+
import "./chunk-OQXWDAEB.mjs";
|
43
43
|
import "./chunk-MNXC6Q4F.mjs";
|
44
44
|
import {
|
45
45
|
useExtension
|
@@ -15,11 +15,11 @@ import {
|
|
15
15
|
} from "./chunk-4TC5YS65.mjs";
|
16
16
|
import {
|
17
17
|
PRODUCT_DETAIL_FIELDS
|
18
|
-
} from "./chunk-
|
18
|
+
} from "./chunk-3VDOFEA6.mjs";
|
19
19
|
import {
|
20
20
|
FormExtensionZone,
|
21
21
|
useExtendableForm
|
22
|
-
} from "./chunk-
|
22
|
+
} from "./chunk-TM44KN7J.mjs";
|
23
23
|
import "./chunk-NQIC7ZFS.mjs";
|
24
24
|
import "./chunk-ONB3JEHR.mjs";
|
25
25
|
import "./chunk-4GQOUCX6.mjs";
|
@@ -27,7 +27,7 @@ import "./chunk-2VTICXJR.mjs";
|
|
27
27
|
import "./chunk-RM6NY572.mjs";
|
28
28
|
import "./chunk-D3YQN7HV.mjs";
|
29
29
|
import "./chunk-DG7J63J2.mjs";
|
30
|
-
import "./chunk-
|
30
|
+
import "./chunk-OQXWDAEB.mjs";
|
31
31
|
import "./chunk-MNXC6Q4F.mjs";
|
32
32
|
import {
|
33
33
|
useExtension
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
EditProductMediaSchema,
|
3
3
|
UploadMediaFormItem
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-6OHAQHB4.mjs";
|
5
5
|
import "./chunk-ZQRKUG6J.mjs";
|
6
6
|
import "./chunk-TYTNUPXB.mjs";
|
7
7
|
import "./chunk-6GU6IDUA.mjs";
|
@@ -13,7 +13,7 @@ import {
|
|
13
13
|
RouteFocusModal,
|
14
14
|
useRouteModal
|
15
15
|
} from "./chunk-4TC5YS65.mjs";
|
16
|
-
import "./chunk-
|
16
|
+
import "./chunk-OQXWDAEB.mjs";
|
17
17
|
import "./chunk-OBQI23QM.mjs";
|
18
18
|
import {
|
19
19
|
useProduct,
|
@@ -17,11 +17,11 @@ import {
|
|
17
17
|
} from "./chunk-4TC5YS65.mjs";
|
18
18
|
import {
|
19
19
|
PRODUCT_DETAIL_FIELDS
|
20
|
-
} from "./chunk-
|
20
|
+
} from "./chunk-3VDOFEA6.mjs";
|
21
21
|
import {
|
22
22
|
FormExtensionZone,
|
23
23
|
useExtendableForm
|
24
|
-
} from "./chunk-
|
24
|
+
} from "./chunk-TM44KN7J.mjs";
|
25
25
|
import "./chunk-NQIC7ZFS.mjs";
|
26
26
|
import "./chunk-ONB3JEHR.mjs";
|
27
27
|
import "./chunk-4GQOUCX6.mjs";
|
@@ -29,7 +29,7 @@ import "./chunk-2VTICXJR.mjs";
|
|
29
29
|
import "./chunk-RM6NY572.mjs";
|
30
30
|
import "./chunk-D3YQN7HV.mjs";
|
31
31
|
import "./chunk-DG7J63J2.mjs";
|
32
|
-
import "./chunk-
|
32
|
+
import "./chunk-OQXWDAEB.mjs";
|
33
33
|
import "./chunk-MNXC6Q4F.mjs";
|
34
34
|
import {
|
35
35
|
useExtension
|
package/dist/{product-shipping-profile-266AXOO6.mjs → product-shipping-profile-VCUZOITH.mjs}
RENAMED
@@ -14,8 +14,8 @@ import {
|
|
14
14
|
} from "./chunk-4TC5YS65.mjs";
|
15
15
|
import {
|
16
16
|
PRODUCT_DETAIL_FIELDS
|
17
|
-
} from "./chunk-
|
18
|
-
import "./chunk-
|
17
|
+
} from "./chunk-3VDOFEA6.mjs";
|
18
|
+
import "./chunk-TM44KN7J.mjs";
|
19
19
|
import "./chunk-NQIC7ZFS.mjs";
|
20
20
|
import "./chunk-ONB3JEHR.mjs";
|
21
21
|
import "./chunk-4GQOUCX6.mjs";
|
@@ -23,7 +23,7 @@ import "./chunk-2VTICXJR.mjs";
|
|
23
23
|
import "./chunk-RM6NY572.mjs";
|
24
24
|
import "./chunk-D3YQN7HV.mjs";
|
25
25
|
import "./chunk-DG7J63J2.mjs";
|
26
|
-
import "./chunk-
|
26
|
+
import "./chunk-OQXWDAEB.mjs";
|
27
27
|
import "./chunk-MNXC6Q4F.mjs";
|
28
28
|
import "./chunk-C5P5PL3E.mjs";
|
29
29
|
import "./chunk-LPEUYMRK.mjs";
|