@medusajs/dashboard 2.10.0-snapshot-20250828141936 → 2.11.0-snapshot-20250828185926
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 +211 -120
- package/dist/app.mjs +2 -2
- package/dist/{campaign-detail-FIO6336E.mjs → campaign-detail-6454LL3C.mjs} +3 -3
- package/dist/{chunk-H3JGGHAQ.mjs → chunk-6OHAQHB4.mjs} +1 -1
- package/dist/{chunk-RQYKGJZ4.mjs → chunk-BZIE4MY6.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-SJFXY376.mjs → chunk-MFN6KGYE.mjs} +26 -26
- package/dist/{chunk-XDYQGXJ3.mjs → chunk-OQXWDAEB.mjs} +2 -1
- 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-M27ZGXL3.mjs} +202 -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-FNQQW6CA.mjs} +3 -3
- package/dist/{product-create-Q5ZIYMOR.mjs → product-create-GCG6XFQ4.mjs} +3 -3
- package/dist/{product-detail-YMCONFSY.mjs → product-detail-YQGIWWU4.mjs} +3 -3
- package/dist/{product-edit-SRWVIV2Z.mjs → product-edit-BDWF7CKD.mjs} +3 -3
- package/dist/{product-media-F74IPY26.mjs → product-media-XWTASBCL.mjs} +2 -2
- package/dist/{product-organization-PKNCLB6W.mjs → product-organization-U3LA5VZE.mjs} +3 -3
- package/dist/{product-shipping-profile-266AXOO6.mjs → product-shipping-profile-7V5PNI7H.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 +238 -177
- 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,216 @@ 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(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: getStylizedAmount(order.original_total, order.currency_code) })
|
3012
2985
|
] })
|
3013
2986
|
] });
|
3014
2987
|
};
|
3015
|
-
var
|
2988
|
+
var DiscountAndTotalBreakdown = ({
|
3016
2989
|
order,
|
3017
2990
|
plugins
|
3018
2991
|
}) => {
|
3019
2992
|
const { t } = useTranslation18();
|
2993
|
+
const [isDiscountOpen, setIsDiscountOpen] = useState7(false);
|
3020
2994
|
const [isCreditLinesOpen, setIsCreditLinesOpen] = useState7(false);
|
3021
2995
|
const creditLines = order.credit_lines ?? [];
|
3022
2996
|
const loyaltyPlugin = getLoyaltyPlugin(plugins);
|
3023
|
-
|
3024
|
-
|
3025
|
-
|
3026
|
-
|
3027
|
-
|
3028
|
-
|
2997
|
+
const discounts = useMemo3(() => {
|
2998
|
+
const discounts2 = [];
|
2999
|
+
if (order.item_discount_total) {
|
3000
|
+
discounts2.push({
|
3001
|
+
type: "item",
|
3002
|
+
total: order.item_discount_total,
|
3003
|
+
codes: Array.from(
|
3004
|
+
new Set(
|
3005
|
+
order.items.flatMap((item) => item.adjustments || []).map((adjustment) => adjustment.code)
|
3006
|
+
)
|
3007
|
+
).sort()
|
3008
|
+
});
|
3009
|
+
}
|
3010
|
+
if (order.shipping_discount_total) {
|
3011
|
+
discounts2.push({
|
3012
|
+
type: "shipping",
|
3013
|
+
total: order.shipping_discount_total,
|
3014
|
+
codes: Array.from(
|
3015
|
+
new Set(
|
3016
|
+
order.shipping_methods.flatMap((shippingMethod) => shippingMethod.adjustments || []).map((adjustment) => adjustment.code)
|
3017
|
+
)
|
3018
|
+
).sort()
|
3019
|
+
});
|
3020
|
+
}
|
3021
|
+
return discounts2;
|
3022
|
+
}, [order]);
|
3023
|
+
const hasDiscount = discounts.length > 0;
|
3024
|
+
const hasCreditLines = creditLines.length > 0;
|
3025
|
+
return /* @__PURE__ */ jsxs19("div", { className: "text-ui-fg-subtle flex flex-col gap-y-2 px-6 py-4", children: [
|
3026
|
+
/* @__PURE__ */ jsx18(
|
3027
|
+
Cost,
|
3029
3028
|
{
|
3030
|
-
|
3031
|
-
|
3032
|
-
|
3033
|
-
|
3034
|
-
|
3035
|
-
|
3036
|
-
|
3037
|
-
|
3038
|
-
|
3029
|
+
label: /* @__PURE__ */ jsxs19(
|
3030
|
+
"div",
|
3031
|
+
{
|
3032
|
+
onClick: () => hasDiscount && setIsDiscountOpen((o) => !o),
|
3033
|
+
className: clx3("flex items-center gap-1", {
|
3034
|
+
"cursor-pointer": hasDiscount
|
3035
|
+
}),
|
3036
|
+
children: [
|
3037
|
+
/* @__PURE__ */ jsx18("span", { children: t("orders.summary.discountTotal") }),
|
3038
|
+
hasDiscount && /* @__PURE__ */ jsx18(
|
3039
|
+
TriangleDownMini,
|
3040
|
+
{
|
3041
|
+
style: {
|
3042
|
+
transform: `rotate(${isDiscountOpen ? 0 : -90}deg)`
|
3043
|
+
}
|
3039
3044
|
}
|
3040
|
-
|
3041
|
-
|
3042
|
-
|
3043
|
-
|
3044
|
-
|
3045
|
-
]
|
3045
|
+
)
|
3046
|
+
]
|
3047
|
+
}
|
3048
|
+
),
|
3049
|
+
value: getLocaleAmount(order.discount_total, order.currency_code)
|
3046
3050
|
}
|
3047
3051
|
),
|
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;
|
3052
|
+
isDiscountOpen && /* @__PURE__ */ jsx18("div", { className: "flex flex-col gap-1 pl-5", children: discounts.map(({ type, total, codes }) => {
|
3051
3053
|
return /* @__PURE__ */ jsxs19(
|
3052
3054
|
"div",
|
3053
3055
|
{
|
3054
|
-
className: "
|
3056
|
+
className: "flex items-center justify-between gap-x-2",
|
3055
3057
|
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
|
-
) })
|
3058
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex gap-1", children: [
|
3059
|
+
/* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-subtle font-medium", children: t(`fields.${type}`) }),
|
3060
|
+
/* @__PURE__ */ jsxs19("span", { className: "txt-small text-ui-fg-subtle font-medium", children: [
|
3061
|
+
"(",
|
3062
|
+
codes.join(", "),
|
3063
|
+
")"
|
3064
|
+
] })
|
3071
3065
|
] }),
|
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
|
-
) }) })
|
3066
|
+
/* @__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" }) }),
|
3067
|
+
/* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-muted", children: getLocaleAmount(total, order.currency_code) })
|
3082
3068
|
]
|
3083
3069
|
},
|
3084
|
-
|
3070
|
+
type
|
3085
3071
|
);
|
3086
|
-
}) })
|
3087
|
-
|
3072
|
+
}) }),
|
3073
|
+
hasCreditLines && /* @__PURE__ */ jsxs19(Fragment3, { children: [
|
3074
|
+
/* @__PURE__ */ jsx18(
|
3075
|
+
Cost,
|
3076
|
+
{
|
3077
|
+
label: /* @__PURE__ */ jsxs19(
|
3078
|
+
"div",
|
3079
|
+
{
|
3080
|
+
onClick: () => setIsCreditLinesOpen((o) => !o),
|
3081
|
+
className: "flex cursor-pointer items-center gap-1",
|
3082
|
+
children: [
|
3083
|
+
/* @__PURE__ */ jsx18("span", { children: loyaltyPlugin ? t("orders.giftCardsStoreCreditLines") : t("orders.creditLines.title") }),
|
3084
|
+
/* @__PURE__ */ jsx18(
|
3085
|
+
TriangleDownMini,
|
3086
|
+
{
|
3087
|
+
style: {
|
3088
|
+
transform: `rotate(${isCreditLinesOpen ? 0 : -90}deg)`
|
3089
|
+
}
|
3090
|
+
}
|
3091
|
+
)
|
3092
|
+
]
|
3093
|
+
}
|
3094
|
+
),
|
3095
|
+
value: getLocaleAmount(
|
3096
|
+
order.credit_line_total,
|
3097
|
+
order.currency_code
|
3098
|
+
)
|
3099
|
+
}
|
3100
|
+
),
|
3101
|
+
isCreditLinesOpen && /* @__PURE__ */ jsx18("div", { className: "flex flex-col gap-1 pl-5", children: creditLines.map((creditLine) => {
|
3102
|
+
const prettyReference = creditLine.reference?.split("_").join(" ").split("-").join(" ");
|
3103
|
+
const prettyReferenceId = creditLine.reference_id ? /* @__PURE__ */ jsx18(display_id_default, { id: creditLine.reference_id }) : null;
|
3104
|
+
return /* @__PURE__ */ jsxs19(
|
3105
|
+
"div",
|
3106
|
+
{
|
3107
|
+
className: "flex items-center justify-between gap-x-2",
|
3108
|
+
children: [
|
3109
|
+
/* @__PURE__ */ jsxs19("div", { className: "flex items-center", children: [
|
3110
|
+
/* @__PURE__ */ jsx18(
|
3111
|
+
Text12,
|
3112
|
+
{
|
3113
|
+
size: "small",
|
3114
|
+
leading: "compact",
|
3115
|
+
weight: "plus",
|
3116
|
+
className: "txt-small text-ui-fg-subtle font-medium",
|
3117
|
+
children: /* @__PURE__ */ jsx18(display_id_default, { id: creditLine.id })
|
3118
|
+
}
|
3119
|
+
),
|
3120
|
+
/* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-subtle mx-1", children: "-" }),
|
3121
|
+
/* @__PURE__ */ jsx18(
|
3122
|
+
Tooltip7,
|
3123
|
+
{
|
3124
|
+
content: format3(
|
3125
|
+
new Date(creditLine.created_at),
|
3126
|
+
"dd MMM, yyyy, HH:mm:ss"
|
3127
|
+
),
|
3128
|
+
children: /* @__PURE__ */ jsx18(
|
3129
|
+
Text12,
|
3130
|
+
{
|
3131
|
+
size: "small",
|
3132
|
+
leading: "compact",
|
3133
|
+
className: "txt-small text-ui-fg-subtle",
|
3134
|
+
children: format3(
|
3135
|
+
new Date(creditLine.created_at),
|
3136
|
+
"dd MMM, yyyy"
|
3137
|
+
)
|
3138
|
+
}
|
3139
|
+
)
|
3140
|
+
}
|
3141
|
+
),
|
3142
|
+
/* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-subtle mx-1", children: "-" }),
|
3143
|
+
/* @__PURE__ */ jsxs19(
|
3144
|
+
Text12,
|
3145
|
+
{
|
3146
|
+
size: "small",
|
3147
|
+
leading: "compact",
|
3148
|
+
className: "txt-small text-ui-fg-subtle capitalize",
|
3149
|
+
children: [
|
3150
|
+
"(",
|
3151
|
+
prettyReference,
|
3152
|
+
" ",
|
3153
|
+
prettyReferenceId,
|
3154
|
+
")"
|
3155
|
+
]
|
3156
|
+
}
|
3157
|
+
)
|
3158
|
+
] }),
|
3159
|
+
/* @__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" }) }),
|
3160
|
+
/* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-muted", children: getLocaleAmount(
|
3161
|
+
creditLine.amount,
|
3162
|
+
order.currency_code
|
3163
|
+
) })
|
3164
|
+
]
|
3165
|
+
},
|
3166
|
+
creditLine.id
|
3167
|
+
);
|
3168
|
+
}) })
|
3169
|
+
] }),
|
3170
|
+
/* @__PURE__ */ jsxs19("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
|
3171
|
+
/* @__PURE__ */ jsx18(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("orders.summary.totalAfterDiscount") }),
|
3172
|
+
/* @__PURE__ */ jsx18(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: getStylizedAmount(order.total, order.currency_code) })
|
3173
|
+
] })
|
3174
|
+
] });
|
3088
3175
|
};
|
3089
3176
|
var InventoryKitBreakdown = ({ item }) => {
|
3090
3177
|
const { t } = useTranslation18();
|
@@ -3293,10 +3380,6 @@ var ExchangeBreakdown = ({
|
|
3293
3380
|
var Total2 = ({ order }) => {
|
3294
3381
|
const { t } = useTranslation18();
|
3295
3382
|
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
3383
|
/* @__PURE__ */ jsxs19("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
|
3301
3384
|
/* @__PURE__ */ jsx18(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("fields.paidTotal") }),
|
3302
3385
|
/* @__PURE__ */ jsx18(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: getStylizedAmount(
|
@@ -3304,7 +3387,7 @@ var Total2 = ({ order }) => {
|
|
3304
3387
|
order.currency_code
|
3305
3388
|
) })
|
3306
3389
|
] }),
|
3307
|
-
/* @__PURE__ */ jsxs19("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
|
3390
|
+
getTotalCreditLines(order.credit_lines ?? []) > 0 && /* @__PURE__ */ jsxs19("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
|
3308
3391
|
/* @__PURE__ */ jsx18(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("fields.creditTotal") }),
|
3309
3392
|
/* @__PURE__ */ jsx18(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: getStylizedAmount(
|
3310
3393
|
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-BZIE4MY6.mjs";
|
15
15
|
import {
|
16
16
|
FormExtensionZone,
|
17
17
|
useExtendableForm
|
18
|
-
} from "./chunk-
|
18
|
+
} from "./chunk-MFN6KGYE.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-MFN6KGYE.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-BZIE4MY6.mjs";
|
34
|
+
import "./chunk-MFN6KGYE.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-BZIE4MY6.mjs";
|
19
19
|
import {
|
20
20
|
FormExtensionZone,
|
21
21
|
useExtendableForm
|
22
|
-
} from "./chunk-
|
22
|
+
} from "./chunk-MFN6KGYE.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-BZIE4MY6.mjs";
|
21
21
|
import {
|
22
22
|
FormExtensionZone,
|
23
23
|
useExtendableForm
|
24
|
-
} from "./chunk-
|
24
|
+
} from "./chunk-MFN6KGYE.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-7V5PNI7H.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-BZIE4MY6.mjs";
|
18
|
+
import "./chunk-MFN6KGYE.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";
|
@@ -9,7 +9,7 @@ import {
|
|
9
9
|
} from "./chunk-VAIHVNV6.mjs";
|
10
10
|
import {
|
11
11
|
getPromotionStatus
|
12
|
-
} from "./chunk-
|
12
|
+
} from "./chunk-FLUC3I3N.mjs";
|
13
13
|
import {
|
14
14
|
formatCurrency
|
15
15
|
} from "./chunk-WATKBUHQ.mjs";
|
@@ -21,7 +21,7 @@ import {
|
|
21
21
|
} from "./chunk-2RQLKDBF.mjs";
|
22
22
|
import "./chunk-PFKKVLZX.mjs";
|
23
23
|
import "./chunk-4GQOUCX6.mjs";
|
24
|
-
import "./chunk-
|
24
|
+
import "./chunk-OQXWDAEB.mjs";
|
25
25
|
import {
|
26
26
|
useExtension
|
27
27
|
} from "./chunk-C5P5PL3E.mjs";
|