@mercurjs/admin 2.0.0-canary.40 → 2.0.0-canary.41
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-ZUXBF5G3.js → add-campaign-promotions-7TPECJOT.js} +4 -4
- package/dist/{api-key-management-detail-SKJNAZ5L.js → api-key-management-detail-2EFDWJSF.js} +7 -7
- package/dist/{api-key-management-list-2D4WKI6Y.js → api-key-management-list-UZLHSM2R.js} +6 -5
- package/dist/{api-key-management-sales-channels-C7EWPHC2.js → api-key-management-sales-channels-ER5ZINL7.js} +6 -7
- package/dist/{campaign-create-B7XM2FZM.js → campaign-create-AFR3V7P4.js} +3 -3
- package/dist/{campaign-detail-7U4CQHU5.js → campaign-detail-UUNEZUY7.js} +9 -8
- package/dist/{campaign-list-SC7FLTRM.js → campaign-list-2AAGWYEG.js} +6 -5
- package/dist/category-create-LY45Z7YB.js +23 -0
- package/dist/{category-detail-HGHR3R2R.js → category-detail-AGTIMI6P.js} +7 -6
- package/dist/{category-list-QBBFGHQM.js → category-list-ROM7UTA4.js} +6 -5
- package/dist/{chunk-ENMRRG4N.js → chunk-2AWQ4FPA.js} +6 -6
- package/dist/{chunk-VBAAYYCS.js → chunk-2HPZJCAF.js} +6 -6
- package/dist/{chunk-SFG7JTBH.js → chunk-2LAANNMF.js} +111 -48
- package/dist/{chunk-KYUXTS2L.js → chunk-2UN7CNBG.js} +7 -7
- package/dist/chunk-3LTXCGNM.js +204 -0
- package/dist/{chunk-EDQBUWY7.js → chunk-3NIWL75F.js} +6 -6
- package/dist/{product-create-variant-CJPECBV4.js → chunk-4UTK7DZN.js} +63 -69
- package/dist/{chunk-5VEYNZSW.js → chunk-5322X23U.js} +9 -4
- package/dist/{chunk-U3SFHLUA.js → chunk-53IISBJZ.js} +1 -0
- package/dist/{chunk-DGCPYCHU.js → chunk-54RTJBYO.js} +63 -8
- package/dist/{chunk-E2AAYIHS.js → chunk-5EFOVNK2.js} +3 -3
- package/dist/{chunk-NQPAEBSZ.js → chunk-6E3T6CGY.js} +15 -7
- package/dist/{chunk-V2DXJ75C.js → chunk-6OA7JZ5E.js} +1 -1
- package/dist/chunk-72IQIAGX.js +245 -0
- package/dist/{chunk-3IYIS5UZ.js → chunk-7DOPC5GY.js} +4 -4
- package/dist/{chunk-Q6XCCONH.js → chunk-AI6RJGRQ.js} +9 -9
- package/dist/{price-list-create-OK7YYLAB.js → chunk-AJZQBGE4.js} +193 -428
- package/dist/{chunk-XDVS4B7W.js → chunk-BAV6Y7RC.js} +8 -7
- package/dist/{chunk-4WYBW3HK.js → chunk-BCAT7P6B.js} +3 -3
- package/dist/{chunk-LYT3RI4O.js → chunk-BHYDGWZ6.js} +18 -9
- package/dist/{chunk-DK3U2SRA.js → chunk-BIEYPCHL.js} +5 -5
- package/dist/{product-create-NVBKO426.js → chunk-BLG726FI.js} +36 -68
- package/dist/chunk-BVRI7YAR.js +100 -0
- package/dist/{chunk-2IGCU3KP.js → chunk-DOMRLXOI.js} +2 -2
- package/dist/{chunk-K6FXWZ2M.js → chunk-F55UXYYA.js} +10 -0
- package/dist/{chunk-AOVEX4EM.js → chunk-FNXSMFGL.js} +5 -5
- package/dist/{chunk-IXGP2EEN.js → chunk-FYAYHOCN.js} +2 -3
- package/dist/{chunk-QBOXELB5.js → chunk-GJHAVFXL.js} +4 -4
- package/dist/{price-list-prices-add-7PGUONDK.js → chunk-GOVOSXUU.js} +90 -290
- package/dist/{chunk-66IHH2HG.js → chunk-H6W6Q6YE.js} +3 -3
- package/dist/{seller-details-KROISMQC.js → chunk-HVLQFQGD.js} +74 -146
- package/dist/{chunk-QD6KYDYH.js → chunk-I6R4I7EF.js} +6 -6
- package/dist/{chunk-RIMR3ULR.js → chunk-ISYWL6RZ.js} +64 -33
- package/dist/{chunk-HHNJNKCB.js → chunk-KMUEJ3IE.js} +59 -20
- package/dist/{chunk-GJTIHFXG.js → chunk-KOILMFJX.js} +29 -31
- package/dist/{chunk-3SAH3NUS.js → chunk-LIXRNUG5.js} +1 -1
- package/dist/chunk-LOJD5572.js +433 -0
- package/dist/{chunk-T25UE7SS.js → chunk-MD56QRKC.js} +6 -6
- package/dist/{chunk-S4QUEQQK.js → chunk-MSFNMGFD.js} +48 -48
- package/dist/{chunk-YH4VQBAA.js → chunk-MX52GGQO.js} +81 -52
- package/dist/{chunk-O6O22BN4.js → chunk-N7BCAAJC.js} +113 -48
- package/dist/{chunk-JA2XIIIZ.js → chunk-NXKCVD5F.js} +6 -5
- package/dist/{chunk-G4QMLQF2.js → chunk-NZN7PFPB.js} +2 -4
- package/dist/{chunk-KUDLPUWR.js → chunk-OFWYMU6K.js} +8 -8
- package/dist/chunk-OOAY7PAK.js +1155 -0
- package/dist/chunk-PAQH5QQH.js +685 -0
- package/dist/{chunk-3H74EI2D.js → chunk-POCHIWE2.js} +100 -40
- package/dist/chunk-PXBCTPQO.js +248 -0
- package/dist/chunk-QSZ2FIM2.js +223 -0
- package/dist/{chunk-23663A2W.js → chunk-R5VKVG6S.js} +1 -1
- package/dist/{chunk-DP5U3GQU.js → chunk-RXUUBJSZ.js} +1 -1
- package/dist/{chunk-FYB5MS4F.js → chunk-S2GARTQU.js} +6 -6
- package/dist/{chunk-7TLEUIAL.js → chunk-SO6PXIPV.js} +21 -16
- package/dist/{category-create-UWBJGIED.js → chunk-ST74PSEZ.js} +78 -149
- package/dist/{chunk-33FUPXJL.js → chunk-T3OYE2MH.js} +4 -4
- package/dist/{chunk-JRWB7VWP.js → chunk-U4RMXPGI.js} +8 -8
- package/dist/{chunk-YGSM5PVN.js → chunk-UI2BJVP5.js} +1 -1
- package/dist/{chunk-FXU7SL6M.js → chunk-UOIUQC3P.js} +25 -15
- package/dist/{chunk-ZU2RNSCP.js → chunk-UONTDHRH.js} +4 -2
- package/dist/{chunk-J7SR4GW5.js → chunk-V3SHSLK4.js} +4 -4
- package/dist/{chunk-TE5VQBCL.js → chunk-V42ZR4XW.js} +8 -9
- package/dist/chunk-V5J73NPW.js +117 -0
- package/dist/{chunk-QP6XXG6A.js → chunk-VOFAM7HJ.js} +74 -42
- package/dist/{chunk-CR4E2DCR.js → chunk-VT3RBTYK.js} +3 -3
- package/dist/{chunk-AOVJTW7M.js → chunk-VWQYMOBM.js} +9 -9
- package/dist/{chunk-6L2LSIPR.js → chunk-VXAQZ2ZZ.js} +4 -4
- package/dist/{chunk-OSHCUDYY.js → chunk-X3KBQBGW.js} +6 -6
- package/dist/{chunk-WZADCDDE.js → chunk-X56THFPA.js} +2 -1
- package/dist/{chunk-HZKW7HRU.js → chunk-X7NWBH7T.js} +64 -35
- package/dist/{chunk-OFRQZHVQ.js → chunk-XE5ZMNUN.js} +6 -6
- package/dist/{chunk-4GVHNYZR.js → chunk-XHVYNMTA.js} +2 -2
- package/dist/{chunk-U2UCL2VG.js → chunk-XIZLPYEE.js} +3 -111
- package/dist/{chunk-KXPCEVFB.js → chunk-XOKRMMVP.js} +6 -6
- package/dist/{chunk-XVKRTPVM.js → chunk-Y5N26ZC3.js} +41 -15
- package/dist/{chunk-A6Z2Q7D5.js → chunk-Z2MDPTF2.js} +4 -2
- package/dist/{chunk-TKGZBTOS.js → chunk-ZFSZTRZ6.js} +54 -32
- package/dist/{chunk-RV6NZTNP.js → chunk-ZZEAWVFX.js} +27 -27
- package/dist/{collection-detail-YJ3FV2C6.js → collection-detail-SRR3HSIV.js} +7 -6
- package/dist/{collection-list-WDQOBHQN.js → collection-list-MKISW5S4.js} +6 -5
- package/dist/{commission-rate-detail-UQDIIMIK.js → commission-rate-detail-GLB733F3.js} +5 -4
- package/dist/{commission-rate-list-WTDZLKUR.js → commission-rate-list-5V3FQROA.js} +6 -5
- package/dist/{customer-detail-N7CS4IJU.js → customer-detail-SBQF232S.js} +4 -3
- package/dist/customer-group-add-customers-LCNDTLXR.js +1 -1
- package/dist/{customer-group-detail-UCTY4FF7.js → customer-group-detail-QQSNRM2K.js} +6 -5
- package/dist/{customer-group-list-XOQ64CVR.js → customer-group-list-IO7SVK3F.js} +15 -6
- package/dist/{customer-list-BUUO6OF7.js → customer-list-TXBAME4V.js} +4 -3
- package/dist/customers-add-customer-group-BKEV24N2.js +1 -1
- package/dist/index.d.ts +225 -16
- package/dist/index.js +581 -387
- package/dist/inventory-create-Q4JIXZTT.js +56 -0
- package/dist/{inventory-detail-BJT5WEV5.js → inventory-detail-3D37JWQT.js} +7 -6
- package/dist/{inventory-list-3LWBPWVK.js → inventory-list-WH42ADNB.js} +6 -5
- package/dist/{inventory-stock-G3GP4FZX.js → inventory-stock-DTKOGYT7.js} +6 -6
- package/dist/{location-detail-N7J6PEAP.js → location-detail-2SSHXSKL.js} +5 -4
- package/dist/location-fulfillment-providers-BHCY2MYC.js +1 -1
- package/dist/{location-list-UG6B47NP.js → location-list-LPISOSQI.js} +5 -4
- package/dist/{location-sales-channels-3IGHCJEN.js → location-sales-channels-PPH53OHD.js} +6 -7
- package/dist/location-service-zone-shipping-option-create-GSXLVEGO.js +57 -0
- package/dist/{location-service-zone-shipping-option-pricing-7VMPXDWX.js → location-service-zone-shipping-option-pricing-4CTGXBP3.js} +6 -6
- package/dist/marketplace-add-currencies-CIGOPBO6.js +1 -1
- package/dist/{marketplace-detail-7KJMXXAJ.js → marketplace-detail-3CBLIYVK.js} +6 -5
- package/dist/{order-detail-C25NQSZN.js → order-detail-AJV2PE7J.js} +7 -6
- package/dist/{order-edit-billing-address-NVRMPZEU.js → order-edit-billing-address-QQUPIC2H.js} +6 -6
- package/dist/{order-list-7NH7LROU.js → order-list-VPQOG5WE.js} +6 -5
- package/dist/pages/index.d.ts +2608 -82
- package/dist/pages/index.js +238 -156
- package/dist/{payout-detail-MDD5SRK5.js → payout-detail-PMR26YQI.js} +5 -4
- package/dist/{payout-list-XY2A5KYS.js → payout-list-DMG7MQM7.js} +6 -4
- package/dist/price-list-configuration-XK3IZLLX.js +1 -1
- package/dist/price-list-create-QS6CVEWS.js +76 -0
- package/dist/{price-list-detail-IGFSM77P.js → price-list-detail-IO5ZURVW.js} +7 -6
- package/dist/{price-list-list-TBXQ5DOS.js → price-list-list-B3FKB46L.js} +6 -5
- package/dist/price-list-prices-add-NSAQWBT6.js +71 -0
- package/dist/{price-list-prices-edit-QVGBT6AI.js → price-list-prices-edit-UOAIOS5X.js} +6 -6
- package/dist/product-create-UVKMOKRF.js +68 -0
- package/dist/product-create-variant-TCXDJ425.js +53 -0
- package/dist/{product-detail-ZC37BGPC.js → product-detail-273ME23P.js} +4 -4
- package/dist/{product-list-635ZXM2D.js → product-list-2ZHLFSBI.js} +5 -4
- package/dist/{product-media-ZMDAVPGI.js → product-media-YMFP6Q6A.js} +3 -3
- package/dist/{product-prices-WMRIC7WM.js → product-prices-X6JO3Y5A.js} +5 -5
- package/dist/{product-sales-channels-LSN5DVWZ.js → product-sales-channels-2PVBPK6W.js} +2 -3
- package/dist/{product-stock-HF42WRSC.js → product-stock-ARRFHDSU.js} +6 -6
- package/dist/{product-tag-detail-OJLYO3Q5.js → product-tag-detail-545AVFGA.js} +7 -6
- package/dist/{product-tag-list-XFHGJBRF.js → product-tag-list-2Y2Q7K3A.js} +7 -6
- package/dist/{product-type-detail-J4UA4AEM.js → product-type-detail-PBP572AM.js} +7 -6
- package/dist/{product-type-list-H5EQHCXS.js → product-type-list-XWNUKETZ.js} +6 -5
- package/dist/{product-variant-detail-5WKYURFA.js → product-variant-detail-RJUQWBYH.js} +4 -3
- package/dist/{profile-detail-EYNXOHGZ.js → profile-detail-H22ZBNOB.js} +5 -4
- package/dist/{promotion-add-campaign-B5SF72KC.js → promotion-add-campaign-5LCKEU6H.js} +3 -3
- package/dist/promotion-create-KXBEHXPK.js +54 -0
- package/dist/{promotion-detail-MVFOMS4E.js → promotion-detail-NZZ2HII7.js} +7 -6
- package/dist/{promotion-list-IN4VWEQN.js → promotion-list-KARWNOAQ.js} +9 -8
- package/dist/{refund-reason-list-DJZZC7KK.js → refund-reason-list-GTZQBZ7R.js} +3 -2
- package/dist/{region-detail-OFZHX57G.js → region-detail-3OPMLS4V.js} +5 -4
- package/dist/{region-list-L4FKHVJJ.js → region-list-542EMW5C.js} +6 -5
- package/dist/{reservation-detail-LZYEM5NW.js → reservation-detail-IPGIBQW4.js} +5 -4
- package/dist/{reservation-list-OGPDB7WG.js → reservation-list-CEFKMB2G.js} +6 -5
- package/dist/{reset-password-Q7Y4FWRE.js → reset-password-R5ULRWEM.js} +1 -1
- package/dist/{return-reason-list-6ICMSVKF.js → return-reason-list-S7LU655M.js} +5 -4
- package/dist/{sales-channel-detail-RRJG7U7R.js → sales-channel-detail-QCJ6OC3H.js} +7 -6
- package/dist/{sales-channel-list-LUZ4ZXCY.js → sales-channel-list-KYNBWXUD.js} +7 -7
- package/dist/seller-details-A7TYGP67.js +104 -0
- package/dist/{seller-list-664H4SI5.js → seller-list-5KPNNC2B.js} +7 -6
- package/dist/{shipping-option-type-detail-2RY3NHRO.js → shipping-option-type-detail-OBYOZZWS.js} +5 -4
- package/dist/{shipping-option-type-list-IOSOE33S.js → shipping-option-type-list-UGVMQ3DC.js} +6 -5
- package/dist/{shipping-profile-detail-RIIAX7VE.js → shipping-profile-detail-RYOFRMLH.js} +5 -4
- package/dist/{shipping-profiles-list-AL4EJSJY.js → shipping-profiles-list-XJGQ7AVX.js} +5 -4
- package/dist/{tax-region-create-UOTLTCOP.js → tax-region-create-AR2LNF2G.js} +6 -6
- package/dist/{tax-region-detail-CA2W5W6A.js → tax-region-detail-PIGY5JQ7.js} +7 -6
- package/dist/{tax-region-list-JTZ7KZCX.js → tax-region-list-AMGZWUAI.js} +6 -5
- package/dist/{tax-region-province-detail-ZHLX4FF4.js → tax-region-province-detail-D3R4FJT4.js} +6 -5
- package/dist/types-DUhfb5tH.d.ts +30 -0
- package/dist/{user-detail-YNPBC5MN.js → user-detail-H66ZAR7W.js} +5 -4
- package/dist/{user-list-LNTZNT3D.js → user-list-HIUXLIJV.js} +5 -4
- package/package.json +1 -1
- package/dist/chunk-62ZRA6BZ.js +0 -216
- package/dist/chunk-6PNMR6XP.js +0 -192
- package/dist/chunk-7COSFMM7.js +0 -163
- package/dist/chunk-A2KURGQO.js +0 -151
- package/dist/chunk-BHID7W3U.js +0 -78
- package/dist/chunk-UKLRBS4W.js +0 -61
- package/dist/inventory-create-QLEIHESO.js +0 -620
- package/dist/location-service-zone-shipping-option-create-GYPW6SSN.js +0 -811
- package/dist/promotion-create-D77SANLX.js +0 -1262
- package/dist/{adjust-inventory-HZCWL6SC.js → adjust-inventory-WL7D7TQR.js} +3 -3
- package/dist/{campaign-budget-edit-AIXCDGG3.js → campaign-budget-edit-722ECPRI.js} +3 -3
- package/dist/{category-products-XLCG2JR7.js → category-products-H3VFYGOU.js} +2 -2
- package/dist/{chunk-DEKJJ7NG.js → chunk-OFCUTNGV.js} +3 -3
- package/dist/{chunk-KUWNYCGL.js → chunk-U3OWJE7V.js} +0 -0
- package/dist/{collection-add-products-IQ7M63BA.js → collection-add-products-BQ2FZKR4.js} +1 -1
- package/dist/{commission-rate-create-VC72GTV4.js → commission-rate-create-GFQNADQS.js} +9 -9
- package/dist/{commission-rate-edit-AXJKJNFY.js → commission-rate-edit-A2BFZUEI.js} +9 -9
- package/dist/{location-service-zone-shipping-option-edit-E3GN4ZF5.js → location-service-zone-shipping-option-edit-KPECMUYB.js} +3 -3
- package/dist/{order-create-claim-7WW6MXTT.js → order-create-claim-IWTV2HKL.js} +6 -6
- package/dist/{order-create-edit-KAH6ZPLX.js → order-create-edit-H2MHZFIW.js} +5 -5
- package/dist/{order-create-exchange-ELLWF3IY.js → order-create-exchange-PPMRSGLD.js} +6 -6
- package/dist/{order-create-refund-5QZBOSCA.js → order-create-refund-LZOHRL7T.js} +3 -3
- package/dist/{order-create-return-L6DEDPJK.js → order-create-return-WY6R4QMN.js} +6 -6
- package/dist/{order-edit-shipping-address-BPU7OL2N.js → order-edit-shipping-address-XQCSN4YO.js} +3 -3
- package/dist/{order-receive-return-FW5QZJBM.js → order-receive-return-GKMHYD4G.js} +1 -1
- package/dist/{product-edit-LQJDUUVX.js → product-edit-QGRKGJ3H.js} +1 -1
- package/dist/{product-variant-edit-66ZUIIMP.js → product-variant-edit-IQLBIHDE.js} +1 -1
- package/dist/{product-variant-manage-inventory-items-CV2CC2PV.js → product-variant-manage-inventory-items-C77QHYRT.js} +3 -3
- package/dist/{promotion-edit-details-YKS24GBD.js → promotion-edit-details-BFXPUEE6.js} +4 -4
- package/dist/{region-create-UMJK3VGL.js → region-create-ZPY6V77Q.js} +3 -3
- package/dist/{region-edit-ODVSNJHM.js → region-edit-Q2CBVPR2.js} +3 -3
- package/dist/{sales-channel-add-products-EOWFSO35.js → sales-channel-add-products-PIY4PUIW.js} +2 -2
- package/dist/{tax-region-province-create-RFYCUDER.js → tax-region-province-create-7BMYABJ6.js} +3 -3
- package/dist/{tax-region-tax-override-create-WIWUNXW6.js → tax-region-tax-override-create-EBDKSAXG.js} +6 -6
- package/dist/{tax-region-tax-override-edit-SWROFQTP.js → tax-region-tax-override-edit-55ODL7KC.js} +6 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
i18n
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-53IISBJZ.js";
|
|
4
4
|
|
|
5
5
|
// src/lib/promotions.ts
|
|
6
|
-
var
|
|
6
|
+
var getPromotionStatusMap = () => ({
|
|
7
7
|
["ACTIVE" /* ACTIVE */]: ["green", i18n.t("statuses.active")],
|
|
8
8
|
["INACTIVE" /* INACTIVE */]: ["red", i18n.t("statuses.inactive")],
|
|
9
9
|
["DRAFT" /* DRAFT */]: ["grey", i18n.t("statuses.draft")],
|
|
@@ -15,22 +15,23 @@ var promotionStatusMap = {
|
|
|
15
15
|
"red",
|
|
16
16
|
`${i18n.t("promotions.fields.campaign")} ${i18n.t("statuses.expired")?.toLowerCase()}`
|
|
17
17
|
]
|
|
18
|
-
};
|
|
18
|
+
});
|
|
19
19
|
var getPromotionStatus = (promotion) => {
|
|
20
20
|
const date = /* @__PURE__ */ new Date();
|
|
21
21
|
const campaign = promotion.campaign;
|
|
22
|
+
const statusMap = getPromotionStatusMap();
|
|
22
23
|
if (!campaign) {
|
|
23
|
-
return
|
|
24
|
+
return statusMap[promotion.status.toUpperCase()];
|
|
24
25
|
}
|
|
25
26
|
if (campaign.starts_at && new Date(campaign.starts_at) > date) {
|
|
26
|
-
return
|
|
27
|
+
return statusMap["SCHEDULED" /* SCHEDULED */];
|
|
27
28
|
}
|
|
28
29
|
const campaignBudget = campaign.budget;
|
|
29
30
|
const overBudget = campaignBudget && campaignBudget.limit && campaignBudget.used > campaignBudget.limit;
|
|
30
31
|
if (campaign.ends_at && new Date(campaign.ends_at) < date || overBudget) {
|
|
31
|
-
return
|
|
32
|
+
return statusMap["EXPIRED" /* EXPIRED */];
|
|
32
33
|
}
|
|
33
|
-
return
|
|
34
|
+
return statusMap[promotion.status.toUpperCase()];
|
|
34
35
|
};
|
|
35
36
|
|
|
36
37
|
export {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-ULJ3OMWU.js";
|
|
8
8
|
import {
|
|
9
9
|
SingleColumnPage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XIZLPYEE.js";
|
|
11
11
|
import {
|
|
12
12
|
ActionMenu
|
|
13
13
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -196,7 +196,7 @@ import { jsx as jsx5 } from "react/jsx-runtime";
|
|
|
196
196
|
var Root = ({ children }) => {
|
|
197
197
|
return /* @__PURE__ */ jsx5(SingleColumnPage, { children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx5(CollectionListTable, {}) });
|
|
198
198
|
};
|
|
199
|
-
var
|
|
199
|
+
var CollectionListPage = Object.assign(Root, {
|
|
200
200
|
Table: CollectionListTable,
|
|
201
201
|
Header: CollectionListHeader,
|
|
202
202
|
HeaderTitle: CollectionListTitle,
|
|
@@ -205,5 +205,5 @@ var CollectionList = Object.assign(Root, {
|
|
|
205
205
|
});
|
|
206
206
|
|
|
207
207
|
export {
|
|
208
|
-
|
|
208
|
+
CollectionListPage
|
|
209
209
|
};
|
|
@@ -20,12 +20,12 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
countries
|
|
22
22
|
} from "./chunk-JRTZWK77.js";
|
|
23
|
+
import {
|
|
24
|
+
TwoColumnPage
|
|
25
|
+
} from "./chunk-V5J73NPW.js";
|
|
23
26
|
import {
|
|
24
27
|
NoRecords
|
|
25
28
|
} from "./chunk-3EF54XFY.js";
|
|
26
|
-
import {
|
|
27
|
-
TwoColumnPage
|
|
28
|
-
} from "./chunk-U2UCL2VG.js";
|
|
29
29
|
import {
|
|
30
30
|
TwoColumnPageSkeleton
|
|
31
31
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -712,7 +712,7 @@ var location_fulfillment_providers_section_default = LocationsFulfillmentProvide
|
|
|
712
712
|
var LOCATION_DETAILS_FIELD = "name,*sales_channels,*address,fulfillment_sets.type,fulfillment_sets.name,*fulfillment_sets.service_zones.geo_zones,*fulfillment_sets.service_zones,*fulfillment_sets.service_zones.shipping_options,*fulfillment_sets.service_zones.shipping_options.rules,*fulfillment_sets.service_zones.shipping_options.shipping_profile,*fulfillment_providers";
|
|
713
713
|
|
|
714
714
|
// src/pages/locations/location-detail/location-detail.tsx
|
|
715
|
-
import {
|
|
715
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
716
716
|
var Root = ({ children }) => {
|
|
717
717
|
const initialData = useLoaderData();
|
|
718
718
|
const { location_id } = useParams();
|
|
@@ -732,24 +732,33 @@ var Root = ({ children }) => {
|
|
|
732
732
|
if (isError) {
|
|
733
733
|
throw error;
|
|
734
734
|
}
|
|
735
|
-
return /* @__PURE__ */ jsx4(
|
|
735
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx4(
|
|
736
736
|
TwoColumnPage,
|
|
737
737
|
{
|
|
738
738
|
data: location,
|
|
739
739
|
showJSON: true,
|
|
740
740
|
hasOutlet: true,
|
|
741
741
|
"data-testid": "location-detail-page",
|
|
742
|
-
children
|
|
742
|
+
children
|
|
743
|
+
}
|
|
744
|
+
) : /* @__PURE__ */ jsxs4(
|
|
745
|
+
TwoColumnPage,
|
|
746
|
+
{
|
|
747
|
+
data: location,
|
|
748
|
+
showJSON: true,
|
|
749
|
+
hasOutlet: true,
|
|
750
|
+
"data-testid": "location-detail-page",
|
|
751
|
+
children: [
|
|
743
752
|
/* @__PURE__ */ jsx4(TwoColumnPage.Main, { "data-testid": "location-detail-main", children: /* @__PURE__ */ jsx4(LocationGeneralSection, { location }) }),
|
|
744
753
|
/* @__PURE__ */ jsxs4(TwoColumnPage.Sidebar, { "data-testid": "location-detail-sidebar", children: [
|
|
745
754
|
/* @__PURE__ */ jsx4(locations_sales_channels_section_default, { location }),
|
|
746
755
|
/* @__PURE__ */ jsx4(location_fulfillment_providers_section_default, { location })
|
|
747
756
|
] })
|
|
748
|
-
]
|
|
757
|
+
]
|
|
749
758
|
}
|
|
750
759
|
);
|
|
751
760
|
};
|
|
752
|
-
var
|
|
761
|
+
var LocationDetailPage = Object.assign(Root, {
|
|
753
762
|
Main: TwoColumnPage.Main,
|
|
754
763
|
Sidebar: TwoColumnPage.Sidebar,
|
|
755
764
|
MainGeneralSection: LocationGeneralSection,
|
|
@@ -759,5 +768,5 @@ var LocationDetail = Object.assign(Root, {
|
|
|
759
768
|
|
|
760
769
|
export {
|
|
761
770
|
LOCATION_DETAILS_FIELD,
|
|
762
|
-
|
|
771
|
+
LocationDetailPage
|
|
763
772
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SingleColumnPage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XIZLPYEE.js";
|
|
4
4
|
import {
|
|
5
5
|
SingleColumnPageSkeleton
|
|
6
6
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -90,7 +90,7 @@ var UserGeneralSection = ({ user }) => {
|
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
// src/pages/users/user-detail/user-detail.tsx
|
|
93
|
-
import {
|
|
93
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
94
94
|
var Root = ({ children }) => {
|
|
95
95
|
const initialData = useLoaderData();
|
|
96
96
|
const { id } = useParams();
|
|
@@ -108,12 +108,12 @@ var Root = ({ children }) => {
|
|
|
108
108
|
if (isError) {
|
|
109
109
|
throw error;
|
|
110
110
|
}
|
|
111
|
-
return /* @__PURE__ */ jsx2(
|
|
111
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx2(SingleColumnPage, { data: user, showJSON: true, showMetadata: true, children }) : /* @__PURE__ */ jsx2(SingleColumnPage, { data: user, showJSON: true, showMetadata: true, children: /* @__PURE__ */ jsx2(UserGeneralSection, { user }) });
|
|
112
112
|
};
|
|
113
|
-
var
|
|
113
|
+
var UserDetailPage = Object.assign(Root, {
|
|
114
114
|
GeneralSection: UserGeneralSection
|
|
115
115
|
});
|
|
116
116
|
|
|
117
117
|
export {
|
|
118
|
-
|
|
118
|
+
UserDetailPage
|
|
119
119
|
};
|
|
@@ -4,17 +4,20 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
HandleInput
|
|
6
6
|
} from "./chunk-TLE6YHGH.js";
|
|
7
|
-
import {
|
|
8
|
-
ChipInput
|
|
9
|
-
} from "./chunk-NCYTM57J.js";
|
|
10
7
|
import {
|
|
11
8
|
DataGrid,
|
|
12
9
|
createDataGridHelper,
|
|
13
10
|
createDataGridPriceColumns
|
|
14
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-U3OWJE7V.js";
|
|
15
12
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
useSalesChannelTableColumns,
|
|
14
|
+
useSalesChannelTableEmptyState,
|
|
15
|
+
useSalesChannelTableFilters,
|
|
16
|
+
useSalesChannelTableQuery
|
|
17
|
+
} from "./chunk-NZN7PFPB.js";
|
|
18
|
+
import {
|
|
19
|
+
DataTable
|
|
20
|
+
} from "./chunk-UQITHKTH.js";
|
|
18
21
|
import {
|
|
19
22
|
CategoryCombobox
|
|
20
23
|
} from "./chunk-P7G4RY2J.js";
|
|
@@ -30,39 +33,21 @@ import {
|
|
|
30
33
|
UploadMediaFormItem,
|
|
31
34
|
decorateVariantsWithDefaultValues,
|
|
32
35
|
normalizeProductFormValues
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import
|
|
36
|
+
} from "./chunk-Z2MDPTF2.js";
|
|
37
|
+
import {
|
|
38
|
+
ChipInput
|
|
39
|
+
} from "./chunk-NCYTM57J.js";
|
|
35
40
|
import {
|
|
36
41
|
TabbedForm,
|
|
37
42
|
defineTabMeta,
|
|
38
43
|
useTabbedForm
|
|
39
44
|
} from "./chunk-5GG65TKV.js";
|
|
40
|
-
import "./chunk-TKGWSUEI.js";
|
|
41
|
-
import "./chunk-U2ZFCAPX.js";
|
|
42
|
-
import "./chunk-IQPN4PZJ.js";
|
|
43
45
|
import {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
useSalesChannelTableFilters,
|
|
47
|
-
useSalesChannelTableQuery
|
|
48
|
-
} from "./chunk-G4QMLQF2.js";
|
|
49
|
-
import "./chunk-UKLRBS4W.js";
|
|
50
|
-
import "./chunk-DGCPYCHU.js";
|
|
51
|
-
import {
|
|
52
|
-
DataTable
|
|
53
|
-
} from "./chunk-UQITHKTH.js";
|
|
54
|
-
import "./chunk-SMQT3ZNO.js";
|
|
55
|
-
import "./chunk-U3SFHLUA.js";
|
|
56
|
-
import "./chunk-INNFZYX2.js";
|
|
57
|
-
import "./chunk-TN4TIT7O.js";
|
|
46
|
+
SwitchBox
|
|
47
|
+
} from "./chunk-YVCBMOJG.js";
|
|
58
48
|
import {
|
|
59
49
|
ActionMenu
|
|
60
50
|
} from "./chunk-BDGZ4EQO.js";
|
|
61
|
-
import "./chunk-LAVHRER2.js";
|
|
62
|
-
import "./chunk-Y7QKP6QU.js";
|
|
63
|
-
import "./chunk-THHRRYRS.js";
|
|
64
|
-
import "./chunk-UZWFZMOX.js";
|
|
65
|
-
import "./chunk-XQNVC4Q7.js";
|
|
66
51
|
import {
|
|
67
52
|
RouteFocusModal,
|
|
68
53
|
StackedFocusModal,
|
|
@@ -72,29 +57,6 @@ import {
|
|
|
72
57
|
import {
|
|
73
58
|
Form
|
|
74
59
|
} from "./chunk-3QSRE5LS.js";
|
|
75
|
-
import "./chunk-XM6GCWNF.js";
|
|
76
|
-
import "./chunk-ODBDAABQ.js";
|
|
77
|
-
import "./chunk-CDQJKJMX.js";
|
|
78
|
-
import "./chunk-JLATVDLM.js";
|
|
79
|
-
import "./chunk-E7ZBQO6E.js";
|
|
80
|
-
import "./chunk-GPRBBA7S.js";
|
|
81
|
-
import "./chunk-XGHM75N2.js";
|
|
82
|
-
import "./chunk-U2GCSKW3.js";
|
|
83
|
-
import "./chunk-A4X5VP3G.js";
|
|
84
|
-
import "./chunk-RTAIDSDS.js";
|
|
85
|
-
import "./chunk-LW3UWYZU.js";
|
|
86
|
-
import "./chunk-NNZP4PYP.js";
|
|
87
|
-
import "./chunk-JOQ3RTF5.js";
|
|
88
|
-
import "./chunk-V534K7G4.js";
|
|
89
|
-
import "./chunk-TQI3DOQ5.js";
|
|
90
|
-
import "./chunk-5PB7KCTF.js";
|
|
91
|
-
import "./chunk-LU72QEQC.js";
|
|
92
|
-
import "./chunk-GF4QHVX3.js";
|
|
93
|
-
import "./chunk-A5XOYSDC.js";
|
|
94
|
-
import "./chunk-YOIARITB.js";
|
|
95
|
-
import "./chunk-W7G64ULL.js";
|
|
96
|
-
import "./chunk-6C7TCU42.js";
|
|
97
|
-
import "./chunk-4YF3GAKE.js";
|
|
98
60
|
import {
|
|
99
61
|
useRegions
|
|
100
62
|
} from "./chunk-QSM56ZOP.js";
|
|
@@ -108,23 +70,20 @@ import {
|
|
|
108
70
|
useSalesChannel,
|
|
109
71
|
useSalesChannels
|
|
110
72
|
} from "./chunk-LORVU5II.js";
|
|
111
|
-
import "./chunk-36ORDF7W.js";
|
|
112
73
|
import {
|
|
113
74
|
useCreateProduct
|
|
114
75
|
} from "./chunk-K357FGGP.js";
|
|
115
|
-
import "./chunk-RHKRREUU.js";
|
|
116
|
-
import "./chunk-ZA2KFUFR.js";
|
|
117
76
|
import {
|
|
118
77
|
sdk
|
|
119
78
|
} from "./chunk-ZYNBKBY3.js";
|
|
120
|
-
import "./chunk-NBMM2TZK.js";
|
|
121
79
|
|
|
122
80
|
// src/pages/products/product-create/product-create.tsx
|
|
81
|
+
import { Children as Children2 } from "react";
|
|
123
82
|
import { useTranslation as useTranslation10 } from "react-i18next";
|
|
124
83
|
|
|
125
84
|
// src/pages/products/product-create/components/product-create-form/product-create-form.tsx
|
|
126
85
|
import { Button as Button5, toast } from "@medusajs/ui";
|
|
127
|
-
import {
|
|
86
|
+
import { useCallback, useMemo as useMemo4, Children } from "react";
|
|
128
87
|
import { useForm, useWatch as useWatch4 } from "react-hook-form";
|
|
129
88
|
import { useTranslation as useTranslation9 } from "react-i18next";
|
|
130
89
|
|
|
@@ -1945,16 +1904,19 @@ import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
|
1945
1904
|
var SAVE_DRAFT_BUTTON = "save-draft-button";
|
|
1946
1905
|
var ProductCreateForm = ({
|
|
1947
1906
|
defaultChannel,
|
|
1948
|
-
children
|
|
1907
|
+
children,
|
|
1908
|
+
schema,
|
|
1909
|
+
defaultValues: extraDefaults
|
|
1949
1910
|
}) => {
|
|
1950
1911
|
const { t } = useTranslation9();
|
|
1951
1912
|
const { handleSuccess } = useRouteModal();
|
|
1952
1913
|
const form = useForm({
|
|
1953
1914
|
defaultValues: {
|
|
1954
1915
|
...PRODUCT_CREATE_FORM_DEFAULTS,
|
|
1916
|
+
...extraDefaults,
|
|
1955
1917
|
sales_channels: defaultChannel ? [{ id: defaultChannel.id, name: defaultChannel.name }] : []
|
|
1956
1918
|
},
|
|
1957
|
-
resolver: zodResolver(ProductCreateSchema)
|
|
1919
|
+
resolver: zodResolver(schema ?? ProductCreateSchema)
|
|
1958
1920
|
});
|
|
1959
1921
|
const { mutateAsync, isPending } = useCreateProduct();
|
|
1960
1922
|
const {
|
|
@@ -2135,7 +2097,7 @@ var ProductCreateForm = ({
|
|
|
2135
2097
|
|
|
2136
2098
|
// src/pages/products/product-create/product-create.tsx
|
|
2137
2099
|
import { jsx as jsx13, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2138
|
-
var
|
|
2100
|
+
var Root5 = ({ children }) => {
|
|
2139
2101
|
const { t } = useTranslation10();
|
|
2140
2102
|
const {
|
|
2141
2103
|
store,
|
|
@@ -2163,14 +2125,20 @@ var ProductCreate = () => {
|
|
|
2163
2125
|
return /* @__PURE__ */ jsxs11(RouteFocusModal, { children: [
|
|
2164
2126
|
/* @__PURE__ */ jsx13(RouteFocusModal.Title, { asChild: true, children: /* @__PURE__ */ jsx13("span", { className: "sr-only", children: t("products.create.title") }) }),
|
|
2165
2127
|
/* @__PURE__ */ jsx13(RouteFocusModal.Description, { asChild: true, children: /* @__PURE__ */ jsx13("span", { className: "sr-only", children: t("products.create.description") }) }),
|
|
2166
|
-
ready && /* @__PURE__ */ jsx13(
|
|
2167
|
-
ProductCreateForm,
|
|
2168
|
-
{
|
|
2169
|
-
defaultChannel: sales_channel
|
|
2170
|
-
}
|
|
2171
|
-
)
|
|
2128
|
+
ready && (Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx13(ProductCreateForm, { defaultChannel: sales_channel }))
|
|
2172
2129
|
] });
|
|
2173
2130
|
};
|
|
2131
|
+
var ProductCreate = Root5;
|
|
2132
|
+
var ProductCreatePage = Object.assign(Root5, {
|
|
2133
|
+
Form: ProductCreateForm,
|
|
2134
|
+
DetailsTab: ProductCreateDetailsForm,
|
|
2135
|
+
OrganizeTab: ProductCreateOrganizeForm,
|
|
2136
|
+
VariantsTab: ProductCreateVariantsForm,
|
|
2137
|
+
InventoryTab: ProductCreateInventoryKitForm,
|
|
2138
|
+
Tab: TabbedForm.Tab
|
|
2139
|
+
});
|
|
2140
|
+
|
|
2174
2141
|
export {
|
|
2175
|
-
ProductCreate
|
|
2142
|
+
ProductCreate,
|
|
2143
|
+
ProductCreatePage
|
|
2176
2144
|
};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import {
|
|
2
|
+
usePayoutTableColumns
|
|
3
|
+
} from "./chunk-AFQS6E4N.js";
|
|
4
|
+
import {
|
|
5
|
+
_DataTable,
|
|
6
|
+
useDataTable
|
|
7
|
+
} from "./chunk-ULJ3OMWU.js";
|
|
8
|
+
import {
|
|
9
|
+
SingleColumnPage
|
|
10
|
+
} from "./chunk-XIZLPYEE.js";
|
|
11
|
+
import {
|
|
12
|
+
usePayoutTableQuery
|
|
13
|
+
} from "./chunk-GR6JUIRU.js";
|
|
14
|
+
import {
|
|
15
|
+
usePayouts
|
|
16
|
+
} from "./chunk-JOQ3RTF5.js";
|
|
17
|
+
|
|
18
|
+
// src/pages/payouts/payout-list/payout-list.tsx
|
|
19
|
+
import { Children } from "react";
|
|
20
|
+
import { Container, Heading } from "@medusajs/ui";
|
|
21
|
+
import { keepPreviousData } from "@tanstack/react-query";
|
|
22
|
+
import { useTranslation } from "react-i18next";
|
|
23
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
24
|
+
var PAGE_SIZE = 10;
|
|
25
|
+
var PayoutListTitle = () => {
|
|
26
|
+
return /* @__PURE__ */ jsx(Heading, { level: "h2", children: "Payouts" });
|
|
27
|
+
};
|
|
28
|
+
var PayoutListActions = ({ children }) => {
|
|
29
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center gap-x-2", children: Children.count(children) > 0 ? children : null });
|
|
30
|
+
};
|
|
31
|
+
var PayoutListHeader = ({ children }) => {
|
|
32
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-between px-6 py-4", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
33
|
+
/* @__PURE__ */ jsx(PayoutListTitle, {}),
|
|
34
|
+
/* @__PURE__ */ jsx(PayoutListActions, {})
|
|
35
|
+
] }) });
|
|
36
|
+
};
|
|
37
|
+
var PayoutListDataTable = () => {
|
|
38
|
+
const { t } = useTranslation();
|
|
39
|
+
const { searchParams, raw } = usePayoutTableQuery({
|
|
40
|
+
pageSize: PAGE_SIZE
|
|
41
|
+
});
|
|
42
|
+
const { payouts, count, isError, error, isLoading } = usePayouts(
|
|
43
|
+
searchParams,
|
|
44
|
+
{
|
|
45
|
+
placeholderData: keepPreviousData
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
const columns = usePayoutTableColumns();
|
|
49
|
+
const { table } = useDataTable({
|
|
50
|
+
data: payouts ?? [],
|
|
51
|
+
columns,
|
|
52
|
+
enablePagination: true,
|
|
53
|
+
count: count ?? 0,
|
|
54
|
+
pageSize: PAGE_SIZE
|
|
55
|
+
});
|
|
56
|
+
if (isError) {
|
|
57
|
+
throw error;
|
|
58
|
+
}
|
|
59
|
+
return /* @__PURE__ */ jsx(
|
|
60
|
+
_DataTable,
|
|
61
|
+
{
|
|
62
|
+
columns,
|
|
63
|
+
table,
|
|
64
|
+
pagination: true,
|
|
65
|
+
navigateTo: (row) => `/payouts/${row.original.id}`,
|
|
66
|
+
count: count ?? 0,
|
|
67
|
+
search: true,
|
|
68
|
+
isLoading,
|
|
69
|
+
pageSize: PAGE_SIZE,
|
|
70
|
+
orderBy: [
|
|
71
|
+
{ key: "created_at", label: t("fields.createdAt") },
|
|
72
|
+
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
73
|
+
],
|
|
74
|
+
queryObject: raw,
|
|
75
|
+
noRecords: {
|
|
76
|
+
message: "No payouts found"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
};
|
|
81
|
+
var PayoutListTable = ({ children }) => {
|
|
82
|
+
return /* @__PURE__ */ jsx(Container, { className: "divide-y p-0", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
83
|
+
/* @__PURE__ */ jsx(PayoutListHeader, {}),
|
|
84
|
+
/* @__PURE__ */ jsx(PayoutListDataTable, {})
|
|
85
|
+
] }) });
|
|
86
|
+
};
|
|
87
|
+
var Root = ({ children }) => {
|
|
88
|
+
return /* @__PURE__ */ jsx(SingleColumnPage, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx(PayoutListTable, {}) });
|
|
89
|
+
};
|
|
90
|
+
var PayoutListPage = Object.assign(Root, {
|
|
91
|
+
Table: PayoutListTable,
|
|
92
|
+
Header: PayoutListHeader,
|
|
93
|
+
HeaderTitle: PayoutListTitle,
|
|
94
|
+
HeaderActions: PayoutListActions,
|
|
95
|
+
DataTable: PayoutListDataTable
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
export {
|
|
99
|
+
PayoutListPage
|
|
100
|
+
};
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-ULJ3OMWU.js";
|
|
8
8
|
import {
|
|
9
9
|
SingleColumnPage
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XIZLPYEE.js";
|
|
11
11
|
import {
|
|
12
12
|
ActionMenu
|
|
13
13
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -29,7 +29,7 @@ import { PencilSquare } from "@medusajs/icons";
|
|
|
29
29
|
import { Button, Container, Heading } from "@medusajs/ui";
|
|
30
30
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
31
31
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
32
|
-
import {
|
|
32
|
+
import { useMemo, Children } from "react";
|
|
33
33
|
import { useTranslation } from "react-i18next";
|
|
34
34
|
import { Link } from "react-router-dom";
|
|
35
35
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -9396,10 +9396,19 @@ var require_modules = __commonJS({
|
|
|
9396
9396
|
MercurModules2["SELLER"] = "seller";
|
|
9397
9397
|
MercurModules2["COMMISSION"] = "commission";
|
|
9398
9398
|
MercurModules2["PAYOUT"] = "payout";
|
|
9399
|
+
MercurModules2["CUSTOM_FIELDS"] = "custom_fields";
|
|
9399
9400
|
})(MercurModules || (exports.MercurModules = MercurModules = {}));
|
|
9400
9401
|
}
|
|
9401
9402
|
});
|
|
9402
9403
|
|
|
9404
|
+
// ../types/dist/custom-fields/index.js
|
|
9405
|
+
var require_custom_fields = __commonJS({
|
|
9406
|
+
"../types/dist/custom-fields/index.js"(exports) {
|
|
9407
|
+
"use strict";
|
|
9408
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9409
|
+
}
|
|
9410
|
+
});
|
|
9411
|
+
|
|
9403
9412
|
// ../types/dist/index.js
|
|
9404
9413
|
var require_dist2 = __commonJS({
|
|
9405
9414
|
"../types/dist/index.js"(exports) {
|
|
@@ -9453,6 +9462,7 @@ var require_dist2 = __commonJS({
|
|
|
9453
9462
|
exports.HttpTypes = __importStar(require_http3());
|
|
9454
9463
|
__exportStar(require_payout2(), exports);
|
|
9455
9464
|
__exportStar(require_modules(), exports);
|
|
9465
|
+
__exportStar(require_custom_fields(), exports);
|
|
9456
9466
|
}
|
|
9457
9467
|
});
|
|
9458
9468
|
|
|
@@ -4,6 +4,9 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
useCustomerGroupTableColumns
|
|
6
6
|
} from "./chunk-54EPH67T.js";
|
|
7
|
+
import {
|
|
8
|
+
TwoColumnPage
|
|
9
|
+
} from "./chunk-V5J73NPW.js";
|
|
7
10
|
import {
|
|
8
11
|
_DataTable,
|
|
9
12
|
useDataTable
|
|
@@ -11,9 +14,6 @@ import {
|
|
|
11
14
|
import {
|
|
12
15
|
NoRecords
|
|
13
16
|
} from "./chunk-3EF54XFY.js";
|
|
14
|
-
import {
|
|
15
|
-
TwoColumnPage
|
|
16
|
-
} from "./chunk-U2UCL2VG.js";
|
|
17
17
|
import {
|
|
18
18
|
SingleColumnPageSkeleton
|
|
19
19
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -576,7 +576,7 @@ var useColumns2 = () => {
|
|
|
576
576
|
};
|
|
577
577
|
|
|
578
578
|
// src/pages/customers/customer-detail/customer-detail.tsx
|
|
579
|
-
import {
|
|
579
|
+
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
580
580
|
var Root = ({ children }) => {
|
|
581
581
|
const { id } = useParams();
|
|
582
582
|
const initialData = useLoaderData();
|
|
@@ -591,7 +591,7 @@ var Root = ({ children }) => {
|
|
|
591
591
|
if (isError) {
|
|
592
592
|
throw error;
|
|
593
593
|
}
|
|
594
|
-
return Children.count(children) > 0 ? /* @__PURE__ */ jsx6(
|
|
594
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx6(TwoColumnPage, { data: customer, hasOutlet: true, showJSON: true, showMetadata: true, children }) : /* @__PURE__ */ jsxs6(TwoColumnPage, { data: customer, hasOutlet: true, showJSON: true, showMetadata: true, children: [
|
|
595
595
|
/* @__PURE__ */ jsxs6(TwoColumnPage.Main, { children: [
|
|
596
596
|
/* @__PURE__ */ jsx6(CustomerGeneralSection, { customer }),
|
|
597
597
|
/* @__PURE__ */ jsx6(CustomerOrderSection, { customer }),
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-ULJ3OMWU.js";
|
|
22
22
|
import {
|
|
23
23
|
SingleColumnPage
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XIZLPYEE.js";
|
|
25
25
|
import {
|
|
26
26
|
useOrderTableQuery
|
|
27
27
|
} from "./chunk-3B6MTW5G.js";
|
|
@@ -411,7 +411,6 @@ import { jsx as jsx4 } from "react/jsx-runtime";
|
|
|
411
411
|
var Root = ({ children }) => {
|
|
412
412
|
return /* @__PURE__ */ jsx4(SingleColumnPage, { hasOutlet: false, "data-testid": "orders-list-page", children: Children3.count(children) > 0 ? children : /* @__PURE__ */ jsx4(OrderListTable, {}) });
|
|
413
413
|
};
|
|
414
|
-
var OrderList = Root;
|
|
415
414
|
var OrderListPage = Object.assign(Root, {
|
|
416
415
|
Table: OrderListTable,
|
|
417
416
|
Header: OrderListHeader,
|
|
@@ -421,5 +420,5 @@ var OrderListPage = Object.assign(Root, {
|
|
|
421
420
|
});
|
|
422
421
|
|
|
423
422
|
export {
|
|
424
|
-
|
|
423
|
+
OrderListPage
|
|
425
424
|
};
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-PXYDR7WQ.js";
|
|
4
4
|
import {
|
|
5
5
|
SingleColumnPage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XIZLPYEE.js";
|
|
7
7
|
import {
|
|
8
8
|
SingleColumnPageSkeleton
|
|
9
9
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -83,12 +83,12 @@ var Root = ({ children }) => {
|
|
|
83
83
|
if (isError) {
|
|
84
84
|
throw error;
|
|
85
85
|
}
|
|
86
|
-
return /* @__PURE__ */ jsx2(SingleColumnPage, { data: payout, showJSON: true, showMetadata: true, children:
|
|
86
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx2(SingleColumnPage, { data: payout, showJSON: true, showMetadata: true, children }) : /* @__PURE__ */ jsx2(SingleColumnPage, { data: payout, showJSON: true, showMetadata: true, children: /* @__PURE__ */ jsx2(PayoutGeneralSection, { payout }) });
|
|
87
87
|
};
|
|
88
|
-
var
|
|
88
|
+
var PayoutDetailPage = Object.assign(Root, {
|
|
89
89
|
GeneralSection: PayoutGeneralSection
|
|
90
90
|
});
|
|
91
91
|
|
|
92
92
|
export {
|
|
93
|
-
|
|
93
|
+
PayoutDetailPage
|
|
94
94
|
};
|