@mercurjs/admin 2.0.0-canary.39 → 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 +3 -3
- 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
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-D2XBJTUO.js";
|
|
9
9
|
import {
|
|
10
10
|
SingleColumnPage
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XIZLPYEE.js";
|
|
12
12
|
import {
|
|
13
13
|
SingleColumnPageSkeleton
|
|
14
14
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -104,7 +104,7 @@ var TaxRegionProvinceOverrideSection = ({
|
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
// src/pages/tax-regions/tax-region-province-detail/tax-region-detail.tsx
|
|
107
|
-
import {
|
|
107
|
+
import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
108
108
|
var Root = ({ children }) => {
|
|
109
109
|
const { province_id } = useParams();
|
|
110
110
|
const initialData = useLoaderData();
|
|
@@ -120,16 +120,16 @@ var Root = ({ children }) => {
|
|
|
120
120
|
if (isError) {
|
|
121
121
|
throw error;
|
|
122
122
|
}
|
|
123
|
-
return /* @__PURE__ */ jsx3(SingleColumnPage, { data: taxRegion, showJSON: true, children
|
|
123
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { data: taxRegion, showJSON: true, children }) : /* @__PURE__ */ jsxs2(SingleColumnPage, { data: taxRegion, showJSON: true, children: [
|
|
124
124
|
/* @__PURE__ */ jsx3(TaxRegionProvinceDetailSection, { taxRegion }),
|
|
125
125
|
/* @__PURE__ */ jsx3(TaxRegionProvinceOverrideSection, { taxRegion })
|
|
126
|
-
] })
|
|
126
|
+
] });
|
|
127
127
|
};
|
|
128
|
-
var
|
|
128
|
+
var TaxRegionProvinceDetailPage = Object.assign(Root, {
|
|
129
129
|
DetailSection: TaxRegionProvinceDetailSection,
|
|
130
130
|
OverrideSection: TaxRegionProvinceOverrideSection
|
|
131
131
|
});
|
|
132
132
|
|
|
133
133
|
export {
|
|
134
|
-
|
|
134
|
+
TaxRegionProvinceDetailPage
|
|
135
135
|
};
|
|
@@ -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";
|
|
@@ -30,7 +30,7 @@ import { PencilSquare, Trash } from "@medusajs/icons";
|
|
|
30
30
|
import { Button, Container, Heading, toast, usePrompt } from "@medusajs/ui";
|
|
31
31
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
32
32
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
33
|
-
import {
|
|
33
|
+
import { useMemo, Children } from "react";
|
|
34
34
|
import { useTranslation } from "react-i18next";
|
|
35
35
|
import { Link, Outlet, useLoaderData, useLocation } from "react-router-dom";
|
|
36
36
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -254,116 +254,8 @@ var SingleColumnPage = ({
|
|
|
254
254
|
] });
|
|
255
255
|
};
|
|
256
256
|
|
|
257
|
-
// src/components/layout/pages/two-column-page/two-column-page.tsx
|
|
258
|
-
import { clx } from "@medusajs/ui";
|
|
259
|
-
import { Children } from "react";
|
|
260
|
-
import { Outlet as Outlet2 } from "react-router-dom";
|
|
261
|
-
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
262
|
-
var Root = ({
|
|
263
|
-
children,
|
|
264
|
-
/**
|
|
265
|
-
* Widgets to be rendered in the main content area and sidebar.
|
|
266
|
-
*/
|
|
267
|
-
/**
|
|
268
|
-
* Data to be passed to widgets, JSON view, and Metadata view.
|
|
269
|
-
*/
|
|
270
|
-
data,
|
|
271
|
-
/**
|
|
272
|
-
* Whether to show JSON view of the data. Defaults to false.
|
|
273
|
-
*/
|
|
274
|
-
showJSON = false,
|
|
275
|
-
/**
|
|
276
|
-
* Whether to show metadata view of the data. Defaults to false.
|
|
277
|
-
*/
|
|
278
|
-
showMetadata = false,
|
|
279
|
-
/**
|
|
280
|
-
* Whether to render an outlet for children routes. Defaults to true.
|
|
281
|
-
*/
|
|
282
|
-
hasOutlet = true
|
|
283
|
-
}) => {
|
|
284
|
-
if (showJSON && !data) {
|
|
285
|
-
if (process.env.NODE_ENV === "development") {
|
|
286
|
-
console.warn(
|
|
287
|
-
"`showJSON` is true but no data is provided. To display JSON, provide data prop."
|
|
288
|
-
);
|
|
289
|
-
}
|
|
290
|
-
showJSON = false;
|
|
291
|
-
}
|
|
292
|
-
if (showMetadata && !data) {
|
|
293
|
-
if (process.env.NODE_ENV === "development") {
|
|
294
|
-
console.warn(
|
|
295
|
-
"`showMetadata` is true but no data is provided. To display metadata, provide data prop."
|
|
296
|
-
);
|
|
297
|
-
}
|
|
298
|
-
showMetadata = false;
|
|
299
|
-
}
|
|
300
|
-
const childrenArray = Children.toArray(children);
|
|
301
|
-
if (childrenArray.length !== 2) {
|
|
302
|
-
throw new Error("TwoColumnPage expects exactly two children");
|
|
303
|
-
}
|
|
304
|
-
const [main, sidebar] = childrenArray;
|
|
305
|
-
const showExtraData = showJSON || showMetadata;
|
|
306
|
-
return /* @__PURE__ */ jsxs4("div", { className: "flex w-full flex-col gap-y-3", children: [
|
|
307
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex w-full flex-col items-start gap-x-4 gap-y-3 xl:grid xl:grid-cols-[minmax(0,_1fr)_440px]", children: [
|
|
308
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex w-full min-w-0 flex-col gap-y-3", children: [
|
|
309
|
-
main,
|
|
310
|
-
showExtraData && /* @__PURE__ */ jsxs4(
|
|
311
|
-
"div",
|
|
312
|
-
{
|
|
313
|
-
className: "hidden flex-col gap-y-3 xl:flex",
|
|
314
|
-
"data-testid": "product-extra-data-desktop",
|
|
315
|
-
children: [
|
|
316
|
-
showMetadata && /* @__PURE__ */ jsx4(MetadataSection, { data }),
|
|
317
|
-
showJSON && /* @__PURE__ */ jsx4(JsonViewSection, { data })
|
|
318
|
-
]
|
|
319
|
-
}
|
|
320
|
-
)
|
|
321
|
-
] }),
|
|
322
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex w-full flex-col gap-y-3 xl:mt-0", children: [
|
|
323
|
-
sidebar,
|
|
324
|
-
showExtraData && /* @__PURE__ */ jsxs4(
|
|
325
|
-
"div",
|
|
326
|
-
{
|
|
327
|
-
className: "flex flex-col gap-y-3 xl:hidden",
|
|
328
|
-
"data-testid": "product-extra-data-mobile",
|
|
329
|
-
children: [
|
|
330
|
-
showMetadata && /* @__PURE__ */ jsx4(MetadataSection, { data }),
|
|
331
|
-
showJSON && /* @__PURE__ */ jsx4(JsonViewSection, { data })
|
|
332
|
-
]
|
|
333
|
-
}
|
|
334
|
-
)
|
|
335
|
-
] })
|
|
336
|
-
] }),
|
|
337
|
-
hasOutlet && /* @__PURE__ */ jsx4(Outlet2, {})
|
|
338
|
-
] });
|
|
339
|
-
};
|
|
340
|
-
var Main = ({
|
|
341
|
-
children,
|
|
342
|
-
className,
|
|
343
|
-
...props
|
|
344
|
-
}) => {
|
|
345
|
-
return /* @__PURE__ */ jsx4("div", { className: clx("flex w-full flex-col gap-y-3", className), ...props, children });
|
|
346
|
-
};
|
|
347
|
-
var Sidebar = ({
|
|
348
|
-
children,
|
|
349
|
-
className,
|
|
350
|
-
...props
|
|
351
|
-
}) => {
|
|
352
|
-
return /* @__PURE__ */ jsx4(
|
|
353
|
-
"div",
|
|
354
|
-
{
|
|
355
|
-
className: clx(
|
|
356
|
-
"flex w-full max-w-[100%] flex-col gap-y-3 xl:mt-0 xl:max-w-[440px]",
|
|
357
|
-
className
|
|
358
|
-
),
|
|
359
|
-
...props,
|
|
360
|
-
children
|
|
361
|
-
}
|
|
362
|
-
);
|
|
363
|
-
};
|
|
364
|
-
var TwoColumnPage = Object.assign(Root, { Main, Sidebar });
|
|
365
|
-
|
|
366
257
|
export {
|
|
367
|
-
|
|
368
|
-
|
|
258
|
+
JsonViewSection,
|
|
259
|
+
MetadataSection,
|
|
260
|
+
SingleColumnPage
|
|
369
261
|
};
|
|
@@ -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
|
SingleColumnPageSkeleton
|
|
13
13
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -339,7 +339,7 @@ var useColumns = () => {
|
|
|
339
339
|
};
|
|
340
340
|
|
|
341
341
|
// src/pages/collections/collection-detail/collection-detail.tsx
|
|
342
|
-
import {
|
|
342
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
343
343
|
var Root = ({ children }) => {
|
|
344
344
|
const initialData = useLoaderData();
|
|
345
345
|
const { id } = useParams();
|
|
@@ -356,16 +356,16 @@ var Root = ({ children }) => {
|
|
|
356
356
|
if (isError) {
|
|
357
357
|
throw error;
|
|
358
358
|
}
|
|
359
|
-
return /* @__PURE__ */ jsx3(
|
|
359
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: collection, children }) : /* @__PURE__ */ jsxs3(SingleColumnPage, { showJSON: true, showMetadata: true, data: collection, children: [
|
|
360
360
|
/* @__PURE__ */ jsx3(CollectionGeneralSection, { collection }),
|
|
361
361
|
/* @__PURE__ */ jsx3(CollectionProductSection, { collection })
|
|
362
|
-
] })
|
|
362
|
+
] });
|
|
363
363
|
};
|
|
364
|
-
var
|
|
364
|
+
var CollectionDetailPage = Object.assign(Root, {
|
|
365
365
|
GeneralSection: CollectionGeneralSection,
|
|
366
366
|
ProductSection: CollectionProductSection
|
|
367
367
|
});
|
|
368
368
|
|
|
369
369
|
export {
|
|
370
|
-
|
|
370
|
+
CollectionDetailPage
|
|
371
371
|
};
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
} from "./chunk-RK5N3XIX.js";
|
|
4
4
|
import {
|
|
5
5
|
getPromotionStatus
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BAV6Y7RC.js";
|
|
7
7
|
import {
|
|
8
8
|
formatPercentage
|
|
9
9
|
} from "./chunk-QDPLZDMX.js";
|
|
10
10
|
import {
|
|
11
11
|
formatCurrency
|
|
12
12
|
} from "./chunk-XSX255FK.js";
|
|
13
|
+
import {
|
|
14
|
+
TwoColumnPage
|
|
15
|
+
} from "./chunk-V5J73NPW.js";
|
|
13
16
|
import {
|
|
14
17
|
NoRecords
|
|
15
18
|
} from "./chunk-3EF54XFY.js";
|
|
16
|
-
import {
|
|
17
|
-
TwoColumnPage
|
|
18
|
-
} from "./chunk-U2UCL2VG.js";
|
|
19
19
|
import {
|
|
20
20
|
TwoColumnPageSkeleton
|
|
21
21
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
|
|
31
31
|
// src/pages/promotions/promotion-detail/promotion-detail.tsx
|
|
32
32
|
import { Children } from "react";
|
|
33
|
-
import { useLoaderData, useParams as
|
|
33
|
+
import { useLoaderData, useParams as useParams4 } from "react-router-dom";
|
|
34
34
|
|
|
35
35
|
// src/pages/promotions/promotion-detail/components/campaign-section/campaign-section.tsx
|
|
36
36
|
import { ArrowUpRightOnBox, PencilSquare } from "@medusajs/icons";
|
|
@@ -58,10 +58,14 @@ var CampaignDetailSection = ({
|
|
|
58
58
|
] });
|
|
59
59
|
};
|
|
60
60
|
var CampaignSection = ({
|
|
61
|
-
campaign
|
|
61
|
+
campaign: campaignProp
|
|
62
62
|
}) => {
|
|
63
63
|
const { t } = useTranslation();
|
|
64
64
|
const { id } = useParams();
|
|
65
|
+
const { promotion } = usePromotion(id, {
|
|
66
|
+
enabled: campaignProp === void 0
|
|
67
|
+
});
|
|
68
|
+
const campaign = campaignProp !== void 0 ? campaignProp : promotion?.campaign ?? null;
|
|
65
69
|
const actions = [
|
|
66
70
|
{
|
|
67
71
|
label: t("actions.edit"),
|
|
@@ -112,6 +116,7 @@ var CampaignSection = ({
|
|
|
112
116
|
import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
|
|
113
117
|
import { Badge as Badge2, Container as Container2, Heading as Heading2 } from "@medusajs/ui";
|
|
114
118
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
119
|
+
import { useParams as useParams2 } from "react-router-dom";
|
|
115
120
|
|
|
116
121
|
// src/components/common/badge-list-summary/badge-list-summary.tsx
|
|
117
122
|
import { Badge, Tooltip, clx } from "@medusajs/ui";
|
|
@@ -188,11 +193,23 @@ function RuleBlock({ rule }) {
|
|
|
188
193
|
] }) });
|
|
189
194
|
}
|
|
190
195
|
var PromotionConditionsSection = ({
|
|
191
|
-
rules,
|
|
196
|
+
rules: rulesProp,
|
|
192
197
|
ruleType,
|
|
193
198
|
applicationMethodTargetType
|
|
194
199
|
}) => {
|
|
195
200
|
const { t } = useTranslation3();
|
|
201
|
+
const { id } = useParams2();
|
|
202
|
+
const { promotion } = usePromotion(id, {
|
|
203
|
+
enabled: rulesProp === void 0
|
|
204
|
+
});
|
|
205
|
+
const query = {};
|
|
206
|
+
if (promotion?.type === "buyget") {
|
|
207
|
+
query.promotion_type = promotion.type;
|
|
208
|
+
}
|
|
209
|
+
const { rules: fetchedRules } = usePromotionRules(id, ruleType, query, {
|
|
210
|
+
enabled: rulesProp === void 0
|
|
211
|
+
});
|
|
212
|
+
const rules = rulesProp ?? fetchedRules ?? [];
|
|
196
213
|
return /* @__PURE__ */ jsxs3(
|
|
197
214
|
Container2,
|
|
198
215
|
{
|
|
@@ -289,6 +306,7 @@ import {
|
|
|
289
306
|
} from "@medusajs/ui";
|
|
290
307
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
291
308
|
import { useNavigate } from "react-router-dom";
|
|
309
|
+
import { useParams as useParams3 } from "react-router-dom";
|
|
292
310
|
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
293
311
|
function getDisplayValue(promotion) {
|
|
294
312
|
const value = promotion.application_method?.value;
|
|
@@ -307,12 +325,20 @@ function getDisplayValue(promotion) {
|
|
|
307
325
|
return null;
|
|
308
326
|
}
|
|
309
327
|
var PromotionGeneralSection = ({
|
|
310
|
-
promotion
|
|
328
|
+
promotion: promotionProp
|
|
311
329
|
}) => {
|
|
312
330
|
const { t } = useTranslation4();
|
|
313
331
|
const prompt = usePrompt();
|
|
314
332
|
const navigate = useNavigate();
|
|
315
|
-
const {
|
|
333
|
+
const { id } = useParams3();
|
|
334
|
+
const { promotion: fetched } = usePromotion(id, {
|
|
335
|
+
enabled: !promotionProp
|
|
336
|
+
});
|
|
337
|
+
const promotion = promotionProp ?? fetched;
|
|
338
|
+
const { mutateAsync } = useDeletePromotion(promotion?.id);
|
|
339
|
+
if (!promotion) {
|
|
340
|
+
return null;
|
|
341
|
+
}
|
|
316
342
|
const handleDelete = async () => {
|
|
317
343
|
const confirm = await prompt({
|
|
318
344
|
title: t("general.areYouSure"),
|
|
@@ -417,10 +443,10 @@ var PromotionGeneralSection = ({
|
|
|
417
443
|
};
|
|
418
444
|
|
|
419
445
|
// src/pages/promotions/promotion-detail/promotion-detail.tsx
|
|
420
|
-
import {
|
|
446
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
421
447
|
var Root = ({ children }) => {
|
|
422
448
|
const initialData = useLoaderData();
|
|
423
|
-
const { id } =
|
|
449
|
+
const { id } = useParams4();
|
|
424
450
|
const { promotion, isLoading } = usePromotion(id, { initialData });
|
|
425
451
|
const query = {};
|
|
426
452
|
if (promotion?.type === "buyget") {
|
|
@@ -432,7 +458,7 @@ var Root = ({ children }) => {
|
|
|
432
458
|
if (isLoading || !promotion) {
|
|
433
459
|
return /* @__PURE__ */ jsx5(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 1, showJSON: true });
|
|
434
460
|
}
|
|
435
|
-
return /* @__PURE__ */ jsx5(
|
|
461
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx5(TwoColumnPage, { data: promotion, hasOutlet: true, showJSON: true, "data-testid": "promotion-detail-page", children }) : /* @__PURE__ */ jsxs5(TwoColumnPage, { data: promotion, hasOutlet: true, showJSON: true, "data-testid": "promotion-detail-page", children: [
|
|
436
462
|
/* @__PURE__ */ jsxs5(TwoColumnPage.Main, { children: [
|
|
437
463
|
/* @__PURE__ */ jsx5(PromotionGeneralSection, { promotion }),
|
|
438
464
|
/* @__PURE__ */ jsx5(
|
|
@@ -460,9 +486,9 @@ var Root = ({ children }) => {
|
|
|
460
486
|
)
|
|
461
487
|
] }),
|
|
462
488
|
/* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx5(CampaignSection, { campaign: promotion.campaign }) })
|
|
463
|
-
] })
|
|
489
|
+
] });
|
|
464
490
|
};
|
|
465
|
-
var
|
|
491
|
+
var PromotionDetailPage = Object.assign(Root, {
|
|
466
492
|
Main: TwoColumnPage.Main,
|
|
467
493
|
Sidebar: TwoColumnPage.Sidebar,
|
|
468
494
|
MainGeneralSection: PromotionGeneralSection,
|
|
@@ -471,5 +497,5 @@ var PromotionDetail = Object.assign(Root, {
|
|
|
471
497
|
});
|
|
472
498
|
|
|
473
499
|
export {
|
|
474
|
-
|
|
500
|
+
PromotionDetailPage
|
|
475
501
|
};
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-SMQT3ZNO.js";
|
|
8
8
|
import {
|
|
9
9
|
i18n
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-53IISBJZ.js";
|
|
11
11
|
import {
|
|
12
12
|
FileUpload
|
|
13
13
|
} from "./chunk-TN4TIT7O.js";
|
|
@@ -15,6 +15,9 @@ import {
|
|
|
15
15
|
Form
|
|
16
16
|
} from "./chunk-3QSRE5LS.js";
|
|
17
17
|
|
|
18
|
+
// src/pages/products/product-create/constants.ts
|
|
19
|
+
import { z } from "zod";
|
|
20
|
+
|
|
18
21
|
// src/pages/products/product-create/utils.ts
|
|
19
22
|
var normalizeProductFormValues = (values) => {
|
|
20
23
|
const thumbnail = values.media?.find((media) => media.isThumbnail)?.url;
|
|
@@ -103,7 +106,6 @@ var decorateVariantsWithDefaultValues = (variants) => {
|
|
|
103
106
|
};
|
|
104
107
|
|
|
105
108
|
// src/pages/products/product-create/constants.ts
|
|
106
|
-
import { z } from "zod";
|
|
107
109
|
var MediaSchema = z.object({
|
|
108
110
|
id: z.string().optional(),
|
|
109
111
|
url: z.string(),
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-ULJ3OMWU.js";
|
|
11
11
|
import {
|
|
12
12
|
SingleColumnPage
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XIZLPYEE.js";
|
|
14
14
|
import {
|
|
15
15
|
ActionMenu
|
|
16
16
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -26,10 +26,11 @@ import {
|
|
|
26
26
|
} from "./chunk-4YF3GAKE.js";
|
|
27
27
|
|
|
28
28
|
// src/pages/reservations/reservation-list/reservation-list.tsx
|
|
29
|
-
import { Children } from "react";
|
|
29
|
+
import { Children as Children2 } from "react";
|
|
30
30
|
|
|
31
31
|
// src/pages/reservations/reservation-list/components/reservation-list-table/reservation-list-table.tsx
|
|
32
32
|
import { Button, Container, Heading, Text } from "@medusajs/ui";
|
|
33
|
+
import { Children } from "react";
|
|
33
34
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
34
35
|
import { Link } from "react-router-dom";
|
|
35
36
|
|
|
@@ -227,10 +228,29 @@ var useReservationTableQuery = ({
|
|
|
227
228
|
};
|
|
228
229
|
|
|
229
230
|
// src/pages/reservations/reservation-list/components/reservation-list-table/reservation-list-table.tsx
|
|
230
|
-
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
231
|
+
import { Fragment, jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
231
232
|
var PAGE_SIZE = 20;
|
|
232
|
-
var
|
|
233
|
+
var ReservationListTitle = () => {
|
|
233
234
|
const { t } = useTranslation4();
|
|
235
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
236
|
+
/* @__PURE__ */ jsx3(Heading, { children: t("reservations.domain") }),
|
|
237
|
+
/* @__PURE__ */ jsx3(Text, { className: "text-ui-fg-subtle", size: "small", children: t("reservations.subtitle") })
|
|
238
|
+
] });
|
|
239
|
+
};
|
|
240
|
+
var ReservationListCreateButton = () => {
|
|
241
|
+
const { t } = useTranslation4();
|
|
242
|
+
return /* @__PURE__ */ jsx3(Button, { variant: "secondary", size: "small", asChild: true, children: /* @__PURE__ */ jsx3(Link, { to: "create", children: t("actions.create") }) });
|
|
243
|
+
};
|
|
244
|
+
var ReservationListActions = ({ children }) => {
|
|
245
|
+
return /* @__PURE__ */ jsx3("div", { className: "flex items-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx3(ReservationListCreateButton, {}) });
|
|
246
|
+
};
|
|
247
|
+
var ReservationListHeader = ({ children }) => {
|
|
248
|
+
return /* @__PURE__ */ jsx3("div", { className: "flex items-center justify-between px-6 py-4", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
249
|
+
/* @__PURE__ */ jsx3(ReservationListTitle, {}),
|
|
250
|
+
/* @__PURE__ */ jsx3(ReservationListActions, {})
|
|
251
|
+
] }) });
|
|
252
|
+
};
|
|
253
|
+
var ReservationListDataTable = () => {
|
|
234
254
|
const { searchParams, raw } = useReservationTableQuery({
|
|
235
255
|
pageSize: PAGE_SIZE
|
|
236
256
|
});
|
|
@@ -250,41 +270,43 @@ var ReservationListTable = () => {
|
|
|
250
270
|
if (isError) {
|
|
251
271
|
throw error;
|
|
252
272
|
}
|
|
253
|
-
return /* @__PURE__ */
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
}
|
|
275
|
-
)
|
|
276
|
-
] });
|
|
273
|
+
return /* @__PURE__ */ jsx3(
|
|
274
|
+
_DataTable,
|
|
275
|
+
{
|
|
276
|
+
table,
|
|
277
|
+
columns,
|
|
278
|
+
pageSize: PAGE_SIZE,
|
|
279
|
+
count,
|
|
280
|
+
isLoading: isPending,
|
|
281
|
+
filters,
|
|
282
|
+
queryObject: raw,
|
|
283
|
+
pagination: true,
|
|
284
|
+
navigateTo: (row) => row.id,
|
|
285
|
+
search: false
|
|
286
|
+
}
|
|
287
|
+
);
|
|
288
|
+
};
|
|
289
|
+
var ReservationListTable = ({ children }) => {
|
|
290
|
+
return /* @__PURE__ */ jsx3(Container, { className: "divide-y p-0", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
291
|
+
/* @__PURE__ */ jsx3(ReservationListHeader, {}),
|
|
292
|
+
/* @__PURE__ */ jsx3(ReservationListDataTable, {})
|
|
293
|
+
] }) });
|
|
277
294
|
};
|
|
278
295
|
|
|
279
296
|
// src/pages/reservations/reservation-list/reservation-list.tsx
|
|
280
297
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
281
298
|
var Root = ({ children }) => {
|
|
282
|
-
return /* @__PURE__ */ jsx4(SingleColumnPage, { children:
|
|
299
|
+
return /* @__PURE__ */ jsx4(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx4(ReservationListTable, {}) });
|
|
283
300
|
};
|
|
284
|
-
var
|
|
285
|
-
Table: ReservationListTable
|
|
301
|
+
var ReservationListPage = Object.assign(Root, {
|
|
302
|
+
Table: ReservationListTable,
|
|
303
|
+
Header: ReservationListHeader,
|
|
304
|
+
HeaderTitle: ReservationListTitle,
|
|
305
|
+
HeaderActions: ReservationListActions,
|
|
306
|
+
HeaderCreateButton: ReservationListCreateButton,
|
|
307
|
+
DataTable: ReservationListDataTable
|
|
286
308
|
});
|
|
287
309
|
|
|
288
310
|
export {
|
|
289
|
-
|
|
311
|
+
ReservationListPage
|
|
290
312
|
};
|
|
@@ -12,16 +12,16 @@ import {
|
|
|
12
12
|
useCombinedRefs,
|
|
13
13
|
useDataGridCell,
|
|
14
14
|
useDataGridCellError
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import {
|
|
17
|
-
KeyboundForm
|
|
18
|
-
} from "./chunk-U2ZFCAPX.js";
|
|
15
|
+
} from "./chunk-U3OWJE7V.js";
|
|
19
16
|
import {
|
|
20
17
|
currencies
|
|
21
18
|
} from "./chunk-IQPN4PZJ.js";
|
|
22
19
|
import {
|
|
23
20
|
castNumber
|
|
24
21
|
} from "./chunk-SMQT3ZNO.js";
|
|
22
|
+
import {
|
|
23
|
+
KeyboundForm
|
|
24
|
+
} from "./chunk-U2ZFCAPX.js";
|
|
25
25
|
import {
|
|
26
26
|
StackedFocusModal
|
|
27
27
|
} from "./chunk-MWOKFNRO.js";
|
|
@@ -29,29 +29,6 @@ import {
|
|
|
29
29
|
Form
|
|
30
30
|
} from "./chunk-3QSRE5LS.js";
|
|
31
31
|
|
|
32
|
-
// src/pages/locations/common/utils/price-rule-helpers.ts
|
|
33
|
-
var createPriceRule = (attribute, operator, value) => {
|
|
34
|
-
const rule = {
|
|
35
|
-
attribute,
|
|
36
|
-
operator,
|
|
37
|
-
value: castNumber(value)
|
|
38
|
-
};
|
|
39
|
-
return rule;
|
|
40
|
-
};
|
|
41
|
-
var buildShippingOptionPriceRules = (rule) => {
|
|
42
|
-
const conditions = [
|
|
43
|
-
{ value: rule.gte, operator: "gte" },
|
|
44
|
-
{ value: rule.lte, operator: "lte" },
|
|
45
|
-
{ value: rule.gt, operator: "gt" },
|
|
46
|
-
{ value: rule.lt, operator: "lt" },
|
|
47
|
-
{ value: rule.eq, operator: "eq" }
|
|
48
|
-
];
|
|
49
|
-
const conditionsWithValues = conditions.filter(({ value }) => value);
|
|
50
|
-
return conditionsWithValues.map(
|
|
51
|
-
({ operator, value }) => createPriceRule(ITEM_TOTAL_ATTRIBUTE, operator, value)
|
|
52
|
-
);
|
|
53
|
-
};
|
|
54
|
-
|
|
55
32
|
// src/pages/locations/common/schema.ts
|
|
56
33
|
import { t } from "i18next";
|
|
57
34
|
import { z } from "zod";
|
|
@@ -177,6 +154,29 @@ var addOverlappingConditionError = (ctx, index, type) => {
|
|
|
177
154
|
});
|
|
178
155
|
};
|
|
179
156
|
|
|
157
|
+
// src/pages/locations/common/utils/price-rule-helpers.ts
|
|
158
|
+
var createPriceRule = (attribute, operator, value) => {
|
|
159
|
+
const rule = {
|
|
160
|
+
attribute,
|
|
161
|
+
operator,
|
|
162
|
+
value: castNumber(value)
|
|
163
|
+
};
|
|
164
|
+
return rule;
|
|
165
|
+
};
|
|
166
|
+
var buildShippingOptionPriceRules = (rule) => {
|
|
167
|
+
const conditions = [
|
|
168
|
+
{ value: rule.gte, operator: "gte" },
|
|
169
|
+
{ value: rule.lte, operator: "lte" },
|
|
170
|
+
{ value: rule.gt, operator: "gt" },
|
|
171
|
+
{ value: rule.lt, operator: "lt" },
|
|
172
|
+
{ value: rule.eq, operator: "eq" }
|
|
173
|
+
];
|
|
174
|
+
const conditionsWithValues = conditions.filter(({ value }) => value);
|
|
175
|
+
return conditionsWithValues.map(
|
|
176
|
+
({ operator, value }) => createPriceRule(ITEM_TOTAL_ATTRIBUTE, operator, value)
|
|
177
|
+
);
|
|
178
|
+
};
|
|
179
|
+
|
|
180
180
|
// src/pages/locations/common/components/shipping-option-price-provider/shipping-option-price-context.tsx
|
|
181
181
|
import { createContext } from "react";
|
|
182
182
|
var ShippingOptionPriceContext = createContext(null);
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
CollectionDetailPage
|
|
3
|
+
} from "./chunk-XOKRMMVP.js";
|
|
4
4
|
import "./chunk-3CKTAFTR.js";
|
|
5
5
|
import "./chunk-G5OVX555.js";
|
|
6
6
|
import "./chunk-FWPGOIFA.js";
|
|
7
7
|
import "./chunk-DB6ANJBO.js";
|
|
8
|
-
import "./chunk-FQERBIVS.js";
|
|
9
8
|
import "./chunk-PHOCVOZ5.js";
|
|
9
|
+
import "./chunk-V5J73NPW.js";
|
|
10
|
+
import "./chunk-WIYFXWRI.js";
|
|
11
|
+
import "./chunk-FQERBIVS.js";
|
|
10
12
|
import "./chunk-ULJ3OMWU.js";
|
|
11
13
|
import "./chunk-YBZWO4ZV.js";
|
|
12
14
|
import "./chunk-KAZ5BYTQ.js";
|
|
13
15
|
import "./chunk-3EF54XFY.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-WIYFXWRI.js";
|
|
16
|
+
import "./chunk-XIZLPYEE.js";
|
|
16
17
|
import "./chunk-INNFZYX2.js";
|
|
17
18
|
import "./chunk-BDGZ4EQO.js";
|
|
18
19
|
import "./chunk-LAVHRER2.js";
|
|
@@ -91,6 +92,6 @@ var collectionLoader = async ({ params }) => {
|
|
|
91
92
|
};
|
|
92
93
|
export {
|
|
93
94
|
CollectionDetailBreadcrumb as Breadcrumb,
|
|
94
|
-
|
|
95
|
+
CollectionDetailPage as Component,
|
|
95
96
|
collectionLoader as loader
|
|
96
97
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
CollectionListPage
|
|
3
|
+
} from "./chunk-BCAT7P6B.js";
|
|
4
4
|
import "./chunk-JQV7CXEC.js";
|
|
5
5
|
import "./chunk-JHIMVLB2.js";
|
|
6
|
-
import "./chunk-FQERBIVS.js";
|
|
7
6
|
import "./chunk-PHOCVOZ5.js";
|
|
7
|
+
import "./chunk-V5J73NPW.js";
|
|
8
|
+
import "./chunk-FQERBIVS.js";
|
|
8
9
|
import "./chunk-ULJ3OMWU.js";
|
|
9
10
|
import "./chunk-YBZWO4ZV.js";
|
|
10
11
|
import "./chunk-KAZ5BYTQ.js";
|
|
11
12
|
import "./chunk-3EF54XFY.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-XIZLPYEE.js";
|
|
13
14
|
import "./chunk-INNFZYX2.js";
|
|
14
15
|
import "./chunk-BDGZ4EQO.js";
|
|
15
16
|
import "./chunk-LAVHRER2.js";
|
|
@@ -74,5 +75,5 @@ import "./chunk-ZA2KFUFR.js";
|
|
|
74
75
|
import "./chunk-ZYNBKBY3.js";
|
|
75
76
|
import "./chunk-NBMM2TZK.js";
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
+
CollectionListPage as Component
|
|
78
79
|
};
|