@mercurjs/admin 2.2.0-canary.15 → 2.2.0-canary.16
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-KOGSYV2W.js → add-campaign-promotions-RUUZFQVO.js} +3 -3
- package/dist/{adjust-inventory-3IQ657W2.js → adjust-inventory-INVLBRJB.js} +11 -11
- package/dist/{api-key-management-create-UD5V7TOU.js → api-key-management-create-JWXWNGWI.js} +3 -3
- package/dist/{api-key-management-detail-V22TYNOF.js → api-key-management-detail-ZRLG6YRB.js} +17 -16
- package/dist/{api-key-management-edit-4TLKJSAE.js → api-key-management-edit-C2LDCO4Q.js} +3 -3
- package/dist/{api-key-management-list-SZUSD6UI.js → api-key-management-list-FVOOICQR.js} +4 -4
- package/dist/{api-key-management-sales-channels-SKKS5BCC.js → api-key-management-sales-channels-E245THAC.js} +6 -5
- package/dist/{attribute-create-IKTP5XRS.js → attribute-create-UAFKYP5S.js} +12 -12
- package/dist/{attribute-detail-V4QI34FV.js → attribute-detail-AKA6OHN5.js} +11 -11
- package/dist/{attribute-list-EMPHZ32M.js → attribute-list-DRVOY6FY.js} +11 -11
- package/dist/breadcrumb-CO5DVI72.js +26 -0
- package/dist/breadcrumb-RYIHOYZE.js +27 -0
- package/dist/{campaign-detail-QY3AALUR.js → campaign-detail-A7ZM4Q7M.js} +15 -15
- package/dist/{categories-metadata-Z5JAWPAK.js → categories-metadata-CBWDAGCZ.js} +11 -11
- package/dist/{category-create-GMCJABRW.js → category-create-Q6IPW7UC.js} +3 -3
- package/dist/{category-detail-IP5EPIUR.js → category-detail-CIEHVR4M.js} +14 -14
- package/dist/{category-edit-GLE4NTFG.js → category-edit-TBMN4JAH.js} +2 -2
- package/dist/{category-list-SNVOQ64L.js → category-list-4YSI36HW.js} +4 -4
- package/dist/{category-organize-UY4M4N7S.js → category-organize-U6UO35Y3.js} +2 -2
- package/dist/{category-products-HWXJR7KR.js → category-products-U7CRTTJQ.js} +12 -12
- package/dist/{chunk-5UPOHLBD.js → chunk-22V5D3VA.js} +1 -1
- package/dist/{chunk-ABWW3JHS.js → chunk-3DMUKRIX.js} +4 -4
- package/dist/{chunk-M572YFDA.js → chunk-3EUF5GRT.js} +2 -2
- package/dist/{chunk-SUVFPJ4J.js → chunk-3KCXKGHX.js} +2 -2
- package/dist/{chunk-KWFKMS4M.js → chunk-3XSMZOVD.js} +4 -4
- package/dist/{chunk-O2XHQTBX.js → chunk-47W2JHOE.js} +3 -3
- package/dist/chunk-4FHHNYIV.js +280 -0
- package/dist/{chunk-NGDOLGBQ.js → chunk-4Q5JHL4V.js} +1 -1
- package/dist/{chunk-3HY4I76Q.js → chunk-5BF5JDWT.js} +2 -2
- package/dist/{chunk-ZXBCWDVM.js → chunk-5T45PYWI.js} +3 -3
- package/dist/{chunk-5FFZQPTT.js → chunk-6PTZK4CH.js} +1 -1
- package/dist/{chunk-HDOWEXDH.js → chunk-A2GVK4VZ.js} +2 -2
- package/dist/{chunk-ZO7A6VYP.js → chunk-AIG4MQL4.js} +3 -3
- package/dist/chunk-AWLDIHXR.js +204 -0
- package/dist/{chunk-D2VXOF46.js → chunk-B4K7H6DH.js} +2 -2
- package/dist/{chunk-EMQP2CNF.js → chunk-D77BYNTQ.js} +1 -1
- package/dist/{chunk-54RTJBYO.js → chunk-DGCPYCHU.js} +8 -63
- package/dist/{chunk-QLEGHL2Q.js → chunk-EB6ZFOTO.js} +2 -2
- package/dist/{chunk-W3FDZPPF.js → chunk-EOLSQKPV.js} +2 -2
- package/dist/{chunk-BPCU5QJE.js → chunk-FBD7WJPO.js} +1 -1
- package/dist/{chunk-NJP3DEE5.js → chunk-FJHAAROU.js} +1 -1
- package/dist/{chunk-N4GJRJF5.js → chunk-FJRNNDZS.js} +1 -1
- package/dist/{chunk-PASEZJC7.js → chunk-FYCIGKVG.js} +1 -1
- package/dist/{chunk-LGL4QSGB.js → chunk-GC5VN6RD.js} +1 -1
- package/dist/{chunk-4GFS57XI.js → chunk-HLJ24XVH.js} +1 -1
- package/dist/{chunk-72PLRAWM.js → chunk-IBX52HBP.js} +1 -1
- package/dist/{chunk-2OF7GB7J.js → chunk-IC3ZLUKY.js} +1 -1
- package/dist/{chunk-KK67WP4G.js → chunk-IEPH6A2W.js} +71 -247
- package/dist/{chunk-3XSC3NEG.js → chunk-J3AMUGGZ.js} +1 -1
- package/dist/{chunk-HQWN3A5L.js → chunk-JRLDKKCM.js} +2 -2
- package/dist/{chunk-R7ESTJHN.js → chunk-K2C42QAV.js} +2 -2
- package/dist/{chunk-DN2K5EAH.js → chunk-KYFWVLWO.js} +1 -1
- package/dist/{chunk-CKNQJPAG.js → chunk-LEHS6RED.js} +4 -2
- package/dist/{chunk-CYGCCNIC.js → chunk-LKW2KWJ4.js} +2 -2
- package/dist/{chunk-H3MAUKL7.js → chunk-M2E3PKA4.js} +183 -183
- package/dist/{chunk-SJGIQGEC.js → chunk-MHVZVF6O.js} +1 -1
- package/dist/{chunk-K4WU4PVL.js → chunk-NZOB3LPA.js} +1 -1
- package/dist/{chunk-QUPUWR42.js → chunk-OAQJNQYL.js} +1 -1
- package/dist/{chunk-6FHQCLHQ.js → chunk-OKWGPKVK.js} +1 -1
- package/dist/{chunk-3AO6X4CE.js → chunk-PE6JFXWU.js} +1 -1
- package/dist/{chunk-A62MTLPR.js → chunk-Q5WTOVZZ.js} +12 -2
- package/dist/{chunk-Z5T5EPLF.js → chunk-QKJGSZI2.js} +1 -1
- package/dist/{chunk-DJWOIRLV.js → chunk-RUSMGNQ6.js} +1 -1
- package/dist/{chunk-MVDPDVMI.js → chunk-RWRL4AXD.js} +4 -4
- package/dist/{chunk-JSH7JEKY.js → chunk-RZ5SFALB.js} +2 -2
- package/dist/chunk-S6A4FVM2.js +170 -0
- package/dist/{chunk-7KZ5X5SU.js → chunk-SEQJOCTT.js} +3 -3
- package/dist/{chunk-W6V2L2FX.js → chunk-SNCZQATG.js} +2 -2
- package/dist/{chunk-EBYWGIOR.js → chunk-T4GL73RP.js} +1 -1
- package/dist/{chunk-N7OVIX55.js → chunk-TH6W26RC.js} +1 -1
- package/dist/{chunk-4PU6GDCE.js → chunk-TWCYZF6X.js} +1 -1
- package/dist/chunk-UKLRBS4W.js +61 -0
- package/dist/{chunk-WTK4MLMF.js → chunk-UVYWKQJF.js} +1 -1
- package/dist/{chunk-PXKDYD3M.js → chunk-VZ7GNMGX.js} +1 -1
- package/dist/{chunk-VY7PT4SI.js → chunk-W6J4SJ3Y.js} +1 -1
- package/dist/{chunk-TE4IF3MM.js → chunk-WJGABDWC.js} +1 -1
- package/dist/{chunk-VT5E7OMM.js → chunk-WUGV75DM.js} +1 -1
- package/dist/{chunk-P5XVG4PY.js → chunk-XGUUM3S6.js} +1 -1
- package/dist/{chunk-7MMLCMV3.js → chunk-XVSJKCCQ.js} +1 -1
- package/dist/{chunk-BQ6ZDY6L.js → chunk-YM523XTD.js} +3 -3
- package/dist/{chunk-453BC56K.js → chunk-Z2UBJXTU.js} +1 -1
- package/dist/{chunk-EGTH3PUK.js → chunk-ZB4TESPP.js} +2 -2
- package/dist/{collection-add-products-ABWXUOFD.js → collection-add-products-G6BQPBXA.js} +12 -12
- package/dist/{collection-create-BRMP6SIZ.js → collection-create-O3RG3BFE.js} +2 -2
- package/dist/{collection-detail-AMGR2B5N.js → collection-detail-TR7TDQZG.js} +13 -13
- package/dist/{collection-edit-YLWUEU4C.js → collection-edit-EKPMNFCK.js} +2 -2
- package/dist/{collection-list-6HZE43AC.js → collection-list-FOWSOTS7.js} +14 -14
- package/dist/{collection-metadata-JS5QP3GD.js → collection-metadata-UEXKSJRF.js} +11 -11
- package/dist/{commission-rate-create-PSPSJZR5.js → commission-rate-create-UX3IFSPP.js} +14 -14
- package/dist/{commission-rate-detail-U72E4ZIO.js → commission-rate-detail-VGYTGWLH.js} +12 -12
- package/dist/{commission-rate-edit-7NJPABVA.js → commission-rate-edit-FTBBWE7F.js} +14 -14
- package/dist/{customer-detail-2RWBN6C4.js → customer-detail-5XGZ2K3H.js} +13 -13
- package/dist/{customer-group-detail-ED66F7JM.js → customer-group-detail-JX3BEYFG.js} +11 -11
- package/dist/{customer-group-list-6YUFKBHH.js → customer-group-list-F5TFLDVH.js} +11 -11
- package/dist/{customer-group-metadata-VQUOWR3P.js → customer-group-metadata-MVD7V6DA.js} +11 -11
- package/dist/{customer-metadata-47AVJXRI.js → customer-metadata-LW6GL25F.js} +11 -11
- package/dist/{customers-add-customer-group-HI7J7YKN.js → customers-add-customer-group-NGPLFWCL.js} +11 -11
- package/dist/{edit-inventory-item-MBPSBJL4.js → edit-inventory-item-6Q2TVHKC.js} +11 -11
- package/dist/{edit-inventory-item-attributes-RVYWOFAC.js → edit-inventory-item-attributes-SZZ65XJ5.js} +11 -11
- package/dist/{edit-reservation-7BLGYXCJ.js → edit-reservation-TUCZRTBN.js} +2 -2
- package/dist/{edit-rules-ZWDKM5M3.js → edit-rules-WJEEV2XB.js} +11 -11
- package/dist/index.js +211 -179
- package/dist/{inventory-create-Q4VBPXSG.js → inventory-create-ZJDSLZ5R.js} +12 -12
- package/dist/{inventory-detail-6CKO3A3Y.js → inventory-detail-LSAJ3ZB5.js} +12 -12
- package/dist/{inventory-list-2JGX6BRI.js → inventory-list-SCRYOBZV.js} +2 -2
- package/dist/{inventory-metadata-COGGE5ZR.js → inventory-metadata-HDLZ6SNH.js} +11 -11
- package/dist/{inventory-stock-2QIKS7LE.js → inventory-stock-EHZJMHOY.js} +11 -11
- package/dist/loader-S77URTQS.js +32 -0
- package/dist/loader-XPJWDZU3.js +32 -0
- package/dist/{location-detail-HOCNTQ7K.js → location-detail-PBCP7BBV.js} +12 -12
- package/dist/{location-fulfillment-providers-YQ2XFPAJ.js → location-fulfillment-providers-NVVLRKJT.js} +13 -13
- package/dist/{location-list-KQQRH4MT.js → location-list-DM4WU57J.js} +11 -11
- package/dist/{location-sales-channels-DRIS6AUX.js → location-sales-channels-T7ZUQ3PA.js} +5 -4
- package/dist/{location-service-zone-shipping-option-create-6GYLJHEC.js → location-service-zone-shipping-option-create-VVD2GMM3.js} +11 -11
- package/dist/{login-N7CVSQNG.js → login-LTASZXSR.js} +11 -11
- package/dist/{manage-locations-TKLOHP3D.js → manage-locations-WW35SVOX.js} +1 -1
- package/dist/{marketplace-detail-K52ALYGT.js → marketplace-detail-GSPPUVR7.js} +12 -12
- package/dist/{marketplace-metadata-ZSX3IQF4.js → marketplace-metadata-35DDUX2Z.js} +11 -11
- package/dist/offer-detail-page-2DG3W7VG.js +572 -0
- package/dist/offer-variant-detail-page-U4LDYFE3.js +143 -0
- package/dist/{offers-UBD6NICA.js → offers-D2QQQD2F.js} +284 -123
- package/dist/{order-create-edit-HEOYCYZO.js → order-create-edit-QBVSHRFO.js} +3 -3
- package/dist/{order-create-exchange-L56VKQBL.js → order-create-exchange-67R63776.js} +11 -11
- package/dist/{order-create-refund-UTJKJ3AJ.js → order-create-refund-4CDCQGXT.js} +11 -11
- package/dist/{order-detail-KAB4MV7X.js → order-detail-A2WC2OZU.js} +13 -13
- package/dist/{order-edit-billing-address-RUURVISC.js → order-edit-billing-address-WFUOLHWY.js} +12 -12
- package/dist/{order-edit-email-OO7AMRHC.js → order-edit-email-CPIRJACP.js} +11 -11
- package/dist/{order-edit-shipping-address-BRRXUE76.js → order-edit-shipping-address-FCEL2URJ.js} +11 -11
- package/dist/{order-list-S3AJC6L5.js → order-list-QR3ZVI4U.js} +3 -3
- package/dist/{order-metadata-OHK6TPAO.js → order-metadata-NFTVCHFD.js} +11 -11
- package/dist/{order-request-transfer-YLMXC7NL.js → order-request-transfer-I6VIJK4L.js} +11 -11
- package/dist/pages/index.d.ts +2 -1
- package/dist/pages/index.js +90 -88
- package/dist/{price-list-configuration-Q5H22ZE2.js → price-list-configuration-I45NPXOI.js} +2 -2
- package/dist/{price-list-create-OYAVGRM5.js → price-list-create-QAEE6CAK.js} +13 -13
- package/dist/{price-list-detail-Q4GFFUFG.js → price-list-detail-77FAEXXO.js} +14 -14
- package/dist/{price-list-edit-YY4SXEI3.js → price-list-edit-A3SLXCYW.js} +2 -2
- package/dist/{price-list-list-OIOY43TF.js → price-list-list-AX7ZW6LL.js} +4 -4
- package/dist/{price-list-prices-add-KONZVSVQ.js → price-list-prices-add-TCW6S4Z3.js} +13 -13
- package/dist/{price-list-prices-edit-SMUKU7Q6.js → price-list-prices-edit-IGHGQ7DO.js} +11 -11
- package/dist/{product-add-existing-attributes-KOPVWK5Q.js → product-add-existing-attributes-BWEKWIWW.js} +11 -11
- package/dist/{product-attributes-C3KHQF2I.js → product-attributes-3VQAHGYZ.js} +1 -1
- package/dist/{product-bulk-edit-J3CMBZN2.js → product-bulk-edit-PLNZZO3C.js} +1 -1
- package/dist/{product-create-KTIQ3UAQ.js → product-create-AGSEC63C.js} +15 -15
- package/dist/{product-create-attribute-XARMC6FJ.js → product-create-attribute-PFIEDJNX.js} +1 -1
- package/dist/{product-create-variant-6VUKYLWE.js → product-create-variant-PP6PQF4T.js} +2 -2
- package/dist/{product-detail-UB3EZRDE.js → product-detail-CNVETME5.js} +15 -13
- package/dist/{product-edit-F4CKOIUO.js → product-edit-LBKIDCQM.js} +1 -1
- package/dist/{product-edit-attribute-LG2ZM6HQ.js → product-edit-attribute-RVNIUPIO.js} +1 -1
- package/dist/{product-list-2BWYAATR.js → product-list-KM37QJ6F.js} +13 -13
- package/dist/{product-media-EUDMCJ75.js → product-media-UWEOWTJT.js} +3 -3
- package/dist/{product-metadata-5WVNFCRL.js → product-metadata-6E6AZTHQ.js} +11 -11
- package/dist/{product-organization-BFWDCHP4.js → product-organization-2ZNTDHWP.js} +3 -3
- package/dist/{product-sales-channels-2J5Q65JS.js → product-sales-channels-7QCAABL4.js} +5 -4
- package/dist/{product-shipping-profile-WDLKA2SN.js → product-shipping-profile-UOQWHIO2.js} +1 -1
- package/dist/{product-tag-create-KQSVCWMC.js → product-tag-create-RDJNNVKB.js} +11 -11
- package/dist/{product-tag-detail-CWDAY7F3.js → product-tag-detail-R6UFJDCW.js} +14 -14
- package/dist/{product-tag-edit-B4SIZCUK.js → product-tag-edit-NQPOV5FR.js} +11 -11
- package/dist/{product-tag-list-2OK3OCMZ.js → product-tag-list-NFPQVVMO.js} +13 -13
- package/dist/{product-tag-metadata-MASTMIKE.js → product-tag-metadata-MYCCUFNT.js} +11 -11
- package/dist/{product-type-detail-3X7ZTZJN.js → product-type-detail-XJPSQDL2.js} +13 -13
- package/dist/{product-type-metadata-6BKTQHQC.js → product-type-metadata-IMMCIWOD.js} +11 -11
- package/dist/{product-variant-detail-PQ4RKPZT.js → product-variant-detail-VCMC4BZP.js} +12 -12
- package/dist/{product-variant-edit-TLF475SH.js → product-variant-edit-OXNWRFST.js} +11 -11
- package/dist/{product-variant-metadata-3M72B3PM.js → product-variant-metadata-ZIJG2HNS.js} +11 -11
- package/dist/{promotion-create-OKZBUSJD.js → promotion-create-CBOD7FVH.js} +11 -11
- package/dist/{promotion-detail-MMNEDRXD.js → promotion-detail-NSOGXQAY.js} +14 -14
- package/dist/{promotion-list-DHWW7FTI.js → promotion-list-7C3SQCSO.js} +4 -4
- package/dist/{refund-reason-create-N4DZ4UHS.js → refund-reason-create-V52L4U5V.js} +11 -11
- package/dist/{refund-reason-edit-OAHRDKXW.js → refund-reason-edit-3U6REVYW.js} +11 -11
- package/dist/{refund-reason-list-3BTQCIYE.js → refund-reason-list-SWU4B2ED.js} +11 -11
- package/dist/{region-metadata-BJSTTZFL.js → region-metadata-5YVOM47I.js} +11 -11
- package/dist/{reservation-create-TXYAY3KF.js → reservation-create-TNZQP7XW.js} +2 -2
- package/dist/{reservation-detail-CEENG76D.js → reservation-detail-BLPISKPA.js} +12 -12
- package/dist/{reservation-list-SORWYHI4.js → reservation-list-3OKWSHWH.js} +3 -3
- package/dist/{reservation-metadata-G3QBZF4K.js → reservation-metadata-VXWNURF4.js} +11 -11
- package/dist/{reset-password-QGQ4GAHK.js → reset-password-6CAYNSJ6.js} +1 -1
- package/dist/{sales-channel-add-products-3VZ5SLLP.js → sales-channel-add-products-LUKSBD5K.js} +12 -12
- package/dist/{sales-channel-create-XBR3QESI.js → sales-channel-create-O5KGQ6DU.js} +2 -2
- package/dist/{sales-channel-detail-PHRSKCNM.js → sales-channel-detail-6JPHP4FZ.js} +13 -13
- package/dist/{sales-channel-edit-ILBZBQP4.js → sales-channel-edit-CG3YUSYW.js} +2 -2
- package/dist/{sales-channel-list-E647FXSZ.js → sales-channel-list-D673ONK2.js} +15 -14
- package/dist/{sales-channel-metadata-HVPGS756.js → sales-channel-metadata-CHYCJOLY.js} +11 -11
- package/dist/{shipping-option-type-create-3ZKT7WAC.js → shipping-option-type-create-P2BCCARC.js} +11 -11
- package/dist/{shipping-option-type-detail-IYXWAK7F.js → shipping-option-type-detail-NVSXILP4.js} +11 -11
- package/dist/{shipping-option-type-edit-QRXYNNRW.js → shipping-option-type-edit-Z4ZLUANO.js} +11 -11
- package/dist/{shipping-option-type-list-MLIDCA3L.js → shipping-option-type-list-OUKJZJ6R.js} +11 -11
- package/dist/{shipping-profile-metadata-T4HPNTLH.js → shipping-profile-metadata-HS7TYNEX.js} +13 -13
- package/dist/{store-create-KFLNOD73.js → store-create-PHLTX6J3.js} +11 -11
- package/dist/{store-details-E347PHAN.js → store-details-V3NMV665.js} +14 -14
- package/dist/{store-edit-Y6NLBIOP.js → store-edit-CUVQLEFL.js} +2 -2
- package/dist/{store-list-S2L44OLB.js → store-list-WV6XHGLU.js} +13 -13
- package/dist/{tax-region-create-MIDQXQS4.js → tax-region-create-7UCI2QDJ.js} +12 -12
- package/dist/{tax-region-detail-AC7B3G57.js → tax-region-detail-OKEK6WNJ.js} +13 -13
- package/dist/{tax-region-edit-5CORTHTC.js → tax-region-edit-7O33SWZQ.js} +11 -11
- package/dist/{tax-region-metadata-QQZIQPAD.js → tax-region-metadata-6LMVFCFW.js} +11 -11
- package/dist/{tax-region-province-detail-2MGX7LEO.js → tax-region-province-detail-WHO3RLUX.js} +13 -13
- package/dist/{tax-region-tax-override-create-IONGD4TG.js → tax-region-tax-override-create-3FBV7DND.js} +14 -14
- package/dist/{tax-region-tax-override-edit-RIT6YRVK.js → tax-region-tax-override-edit-RZPP66BY.js} +14 -14
- package/dist/{user-detail-MMVBN3AE.js → user-detail-6CCQQPFR.js} +1 -1
- package/dist/{user-metadata-OZLU3Y2X.js → user-metadata-OYX24QL7.js} +11 -11
- package/package.json +1 -1
- package/dist/[id]-BAPEFPAO.js +0 -505
- package/dist/chunk-PT5PLV3N.js +0 -78
- package/dist/loader-OU7SKXOD.js +0 -28
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CategoryDetailPage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3DMUKRIX.js";
|
|
4
4
|
import "./chunk-7AV5EJJ5.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-WJGABDWC.js";
|
|
6
6
|
import "./chunk-Y456KVIN.js";
|
|
7
7
|
import "./chunk-OMBP3YSV.js";
|
|
8
8
|
import "./chunk-WPVDACTL.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-RZ5SFALB.js";
|
|
10
10
|
import "./chunk-LYZDVZWA.js";
|
|
11
11
|
import "./chunk-FWPGOIFA.js";
|
|
12
12
|
import "./chunk-DB6ANJBO.js";
|
|
@@ -25,26 +25,26 @@ import "./chunk-THHRRYRS.js";
|
|
|
25
25
|
import "./chunk-UCYSCKZV.js";
|
|
26
26
|
import "./chunk-LJDGVBOQ.js";
|
|
27
27
|
import "./chunk-OH4AABUT.js";
|
|
28
|
+
import "./chunk-FJHAAROU.js";
|
|
28
29
|
import "./chunk-AEMDNTW5.js";
|
|
29
30
|
import "./chunk-LYD3C73Z.js";
|
|
30
|
-
import "./chunk-46M463BR.js";
|
|
31
|
-
import "./chunk-NJP3DEE5.js";
|
|
32
31
|
import "./chunk-533GMKEG.js";
|
|
32
|
+
import "./chunk-46M463BR.js";
|
|
33
33
|
import "./chunk-YFRC6GEN.js";
|
|
34
|
+
import "./chunk-N6SI4IIT.js";
|
|
35
|
+
import "./chunk-JPNPTILP.js";
|
|
34
36
|
import "./chunk-DAXXLQKB.js";
|
|
35
37
|
import "./chunk-OHOWEMHO.js";
|
|
36
|
-
import "./chunk-JPNPTILP.js";
|
|
37
|
-
import "./chunk-ESPLVOFC.js";
|
|
38
38
|
import "./chunk-GKGLVDDV.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-ESPLVOFC.js";
|
|
40
40
|
import "./chunk-WJJXUXSO.js";
|
|
41
41
|
import "./chunk-LAPEZATU.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-Z2UBJXTU.js";
|
|
43
|
+
import "./chunk-QKJGSZI2.js";
|
|
44
44
|
import "./chunk-FXWKGNRV.js";
|
|
45
45
|
import "./chunk-VDKOJ5WD.js";
|
|
46
46
|
import "./chunk-ZN7LWXVC.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-XGUUM3S6.js";
|
|
48
48
|
import "./chunk-VYMODH6P.js";
|
|
49
49
|
import "./chunk-LEG67A2R.js";
|
|
50
50
|
import "./chunk-PRBE5CM3.js";
|
|
@@ -52,15 +52,15 @@ import "./chunk-5TRY5IMZ.js";
|
|
|
52
52
|
import "./chunk-EPHVGD5Z.js";
|
|
53
53
|
import "./chunk-VT6QIVZW.js";
|
|
54
54
|
import "./chunk-BDGZ4EQO.js";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-OKWGPKVK.js";
|
|
56
56
|
import {
|
|
57
57
|
categoriesQueryKeys,
|
|
58
58
|
useProductCategory
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-KYFWVLWO.js";
|
|
60
60
|
import "./chunk-LAVHRER2.js";
|
|
61
61
|
import "./chunk-Y7QKP6QU.js";
|
|
62
62
|
import "./chunk-INNFZYX2.js";
|
|
63
|
-
import "./chunk-
|
|
63
|
+
import "./chunk-M2E3PKA4.js";
|
|
64
64
|
import {
|
|
65
65
|
queryClient
|
|
66
66
|
} from "./chunk-RHKRREUU.js";
|
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
useProductCategory,
|
|
17
17
|
useUpdateProductCategory
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-KYFWVLWO.js";
|
|
19
19
|
import {
|
|
20
20
|
useDocumentDirection
|
|
21
21
|
} from "./chunk-Y7QKP6QU.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-M2E3PKA4.js";
|
|
23
23
|
import "./chunk-RHKRREUU.js";
|
|
24
24
|
import "./chunk-ZA2KFUFR.js";
|
|
25
25
|
import "./chunk-ZBWL72TB.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CategoryListPage
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-LKW2KWJ4.js";
|
|
4
|
+
import "./chunk-WJGABDWC.js";
|
|
5
5
|
import "./chunk-JHIMVLB2.js";
|
|
6
6
|
import "./chunk-Y456KVIN.js";
|
|
7
7
|
import "./chunk-DB6ANJBO.js";
|
|
@@ -17,11 +17,11 @@ import "./chunk-UZWFZMOX.js";
|
|
|
17
17
|
import "./chunk-XQNVC4Q7.js";
|
|
18
18
|
import "./chunk-THHRRYRS.js";
|
|
19
19
|
import "./chunk-BDGZ4EQO.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-KYFWVLWO.js";
|
|
21
21
|
import "./chunk-LAVHRER2.js";
|
|
22
22
|
import "./chunk-Y7QKP6QU.js";
|
|
23
23
|
import "./chunk-INNFZYX2.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-M2E3PKA4.js";
|
|
25
25
|
import "./chunk-RHKRREUU.js";
|
|
26
26
|
import "./chunk-ZA2KFUFR.js";
|
|
27
27
|
import "./chunk-ZBWL72TB.js";
|
|
@@ -8,8 +8,8 @@ import "./chunk-3QSRE5LS.js";
|
|
|
8
8
|
import {
|
|
9
9
|
categoriesQueryKeys,
|
|
10
10
|
useProductCategories
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-KYFWVLWO.js";
|
|
12
|
+
import "./chunk-M2E3PKA4.js";
|
|
13
13
|
import {
|
|
14
14
|
queryClient
|
|
15
15
|
} from "./chunk-RHKRREUU.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import "./chunk-WPVDACTL.js";
|
|
5
5
|
import {
|
|
6
6
|
useProductTableFilters
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RZ5SFALB.js";
|
|
8
8
|
import {
|
|
9
9
|
useProductTableQuery
|
|
10
10
|
} from "./chunk-LYZDVZWA.js";
|
|
@@ -35,42 +35,42 @@ import "./chunk-THHRRYRS.js";
|
|
|
35
35
|
import "./chunk-UCYSCKZV.js";
|
|
36
36
|
import "./chunk-LJDGVBOQ.js";
|
|
37
37
|
import "./chunk-OH4AABUT.js";
|
|
38
|
+
import "./chunk-FJHAAROU.js";
|
|
38
39
|
import "./chunk-AEMDNTW5.js";
|
|
39
40
|
import "./chunk-LYD3C73Z.js";
|
|
40
|
-
import "./chunk-46M463BR.js";
|
|
41
|
-
import "./chunk-NJP3DEE5.js";
|
|
42
41
|
import "./chunk-533GMKEG.js";
|
|
42
|
+
import "./chunk-46M463BR.js";
|
|
43
43
|
import "./chunk-YFRC6GEN.js";
|
|
44
|
+
import "./chunk-N6SI4IIT.js";
|
|
45
|
+
import "./chunk-JPNPTILP.js";
|
|
44
46
|
import "./chunk-DAXXLQKB.js";
|
|
45
47
|
import "./chunk-OHOWEMHO.js";
|
|
46
|
-
import "./chunk-JPNPTILP.js";
|
|
47
|
-
import "./chunk-ESPLVOFC.js";
|
|
48
48
|
import "./chunk-GKGLVDDV.js";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-ESPLVOFC.js";
|
|
50
50
|
import "./chunk-WJJXUXSO.js";
|
|
51
51
|
import "./chunk-LAPEZATU.js";
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-Z2UBJXTU.js";
|
|
53
|
+
import "./chunk-QKJGSZI2.js";
|
|
54
54
|
import "./chunk-FXWKGNRV.js";
|
|
55
55
|
import "./chunk-VDKOJ5WD.js";
|
|
56
56
|
import "./chunk-ZN7LWXVC.js";
|
|
57
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-XGUUM3S6.js";
|
|
58
58
|
import "./chunk-VYMODH6P.js";
|
|
59
59
|
import "./chunk-LEG67A2R.js";
|
|
60
60
|
import "./chunk-PRBE5CM3.js";
|
|
61
61
|
import "./chunk-5TRY5IMZ.js";
|
|
62
62
|
import "./chunk-EPHVGD5Z.js";
|
|
63
63
|
import "./chunk-VT6QIVZW.js";
|
|
64
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-OKWGPKVK.js";
|
|
65
65
|
import {
|
|
66
66
|
useProductCategory,
|
|
67
67
|
useUpdateProductCategoryProducts
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-KYFWVLWO.js";
|
|
69
69
|
import "./chunk-Y7QKP6QU.js";
|
|
70
70
|
import "./chunk-INNFZYX2.js";
|
|
71
71
|
import {
|
|
72
72
|
useProducts
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-M2E3PKA4.js";
|
|
74
74
|
import "./chunk-RHKRREUU.js";
|
|
75
75
|
import "./chunk-ZA2KFUFR.js";
|
|
76
76
|
import "./chunk-ZBWL72TB.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-7AV5EJJ5.js";
|
|
4
4
|
import {
|
|
5
5
|
useDeleteProductCategoryAction
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WJGABDWC.js";
|
|
7
7
|
import {
|
|
8
8
|
getCategoryChildren,
|
|
9
9
|
getCategoryPath,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-OMBP3YSV.js";
|
|
16
16
|
import {
|
|
17
17
|
useProductTableFilters
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RZ5SFALB.js";
|
|
19
19
|
import {
|
|
20
20
|
useProductTableQuery
|
|
21
21
|
} from "./chunk-LYZDVZWA.js";
|
|
@@ -32,14 +32,14 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
useProductCategory,
|
|
34
34
|
useUpdateProductCategoryProducts
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-KYFWVLWO.js";
|
|
36
36
|
import {
|
|
37
37
|
Skeleton,
|
|
38
38
|
TwoColumnPageSkeleton
|
|
39
39
|
} from "./chunk-INNFZYX2.js";
|
|
40
40
|
import {
|
|
41
41
|
useProducts
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-M2E3PKA4.js";
|
|
43
43
|
|
|
44
44
|
// src/pages/categories/category-detail/category-detail.tsx
|
|
45
45
|
import { Children } from "react";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-E74OUNA3.js";
|
|
10
10
|
import {
|
|
11
11
|
useReservationItem
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XGUUM3S6.js";
|
|
13
13
|
import {
|
|
14
14
|
useStockLocation
|
|
15
15
|
} from "./chunk-EPHVGD5Z.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./chunk-INNFZYX2.js";
|
|
22
22
|
import {
|
|
23
23
|
useInventoryItem
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-M2E3PKA4.js";
|
|
25
25
|
|
|
26
26
|
// src/pages/reservations/reservation-detail/reservation-detail.tsx
|
|
27
27
|
import { Children } from "react";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
useDeleteReservationItem,
|
|
35
35
|
useReservationItems
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-XGUUM3S6.js";
|
|
37
37
|
import {
|
|
38
38
|
useStockLocations
|
|
39
39
|
} from "./chunk-EPHVGD5Z.js";
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
inventoryItemsQueryKeys,
|
|
49
49
|
useInventoryItem,
|
|
50
50
|
useInventoryItemLevels
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-M2E3PKA4.js";
|
|
52
52
|
import {
|
|
53
53
|
queryClient
|
|
54
54
|
} from "./chunk-RHKRREUU.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
decorateVariantsWithDefaultValues,
|
|
11
11
|
generateVariantsFromAttributes,
|
|
12
12
|
normalizeProductFormValues
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-T4GL73RP.js";
|
|
14
14
|
import {
|
|
15
15
|
HandleInput
|
|
16
16
|
} from "./chunk-HJ56YXBU.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-4YWKKCTT.js";
|
|
23
23
|
import {
|
|
24
24
|
SingleCategoryCombobox
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-OAQJNQYL.js";
|
|
26
26
|
import {
|
|
27
27
|
useComboboxData
|
|
28
28
|
} from "./chunk-5KGMGL4N.js";
|
|
@@ -73,10 +73,10 @@ import {
|
|
|
73
73
|
} from "./chunk-BDGZ4EQO.js";
|
|
74
74
|
import {
|
|
75
75
|
useSalesChannel
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-OKWGPKVK.js";
|
|
77
77
|
import {
|
|
78
78
|
useCreateProduct
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-M2E3PKA4.js";
|
|
80
80
|
import {
|
|
81
81
|
sdk
|
|
82
82
|
} from "./chunk-ZBWL72TB.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-OMBP3YSV.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTableFilters
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RZ5SFALB.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTableQuery
|
|
9
9
|
} from "./chunk-LYZDVZWA.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
useCollection,
|
|
19
19
|
useDeleteCollection,
|
|
20
20
|
useUpdateCollectionProducts
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QKJGSZI2.js";
|
|
22
22
|
import {
|
|
23
23
|
ActionMenu
|
|
24
24
|
} from "./chunk-BDGZ4EQO.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-INNFZYX2.js";
|
|
28
28
|
import {
|
|
29
29
|
useProducts
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-M2E3PKA4.js";
|
|
31
31
|
|
|
32
32
|
// src/pages/collections/collection-detail/collection-detail.tsx
|
|
33
33
|
import { Children } from "react";
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getLocaleAmount
|
|
3
|
+
} from "./chunk-PXYDR7WQ.js";
|
|
4
|
+
import {
|
|
5
|
+
PlaceholderCell
|
|
6
|
+
} from "./chunk-PHOCVOZ5.js";
|
|
7
|
+
import {
|
|
8
|
+
_DataTable,
|
|
9
|
+
useDataTable
|
|
10
|
+
} from "./chunk-NQEXDLYH.js";
|
|
11
|
+
import {
|
|
12
|
+
NoRecords
|
|
13
|
+
} from "./chunk-634XVU3D.js";
|
|
14
|
+
import {
|
|
15
|
+
ActionMenu
|
|
16
|
+
} from "./chunk-BDGZ4EQO.js";
|
|
17
|
+
|
|
18
|
+
// src/pages/offers/[id]/_components/offer-inventory-section.tsx
|
|
19
|
+
import { Buildings } from "@medusajs/icons";
|
|
20
|
+
import { Container, Heading, Text } from "@medusajs/ui";
|
|
21
|
+
import { createColumnHelper } from "@tanstack/react-table";
|
|
22
|
+
import { useMemo } from "react";
|
|
23
|
+
import { useTranslation } from "react-i18next";
|
|
24
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
25
|
+
var columnHelper = createColumnHelper();
|
|
26
|
+
var PAGE_SIZE = 20;
|
|
27
|
+
var computeAvailable = (row) => {
|
|
28
|
+
const levels = row.location_levels ?? [];
|
|
29
|
+
let quantity = 0;
|
|
30
|
+
let locations = 0;
|
|
31
|
+
for (const level of levels) {
|
|
32
|
+
if (level.available_quantity != null) {
|
|
33
|
+
quantity += level.available_quantity;
|
|
34
|
+
} else {
|
|
35
|
+
const stocked = level.stocked_quantity ?? 0;
|
|
36
|
+
const reserved = level.reserved_quantity ?? 0;
|
|
37
|
+
quantity += Math.max(0, stocked - reserved);
|
|
38
|
+
}
|
|
39
|
+
locations += 1;
|
|
40
|
+
}
|
|
41
|
+
return { quantity, locations };
|
|
42
|
+
};
|
|
43
|
+
var InventoryActions = ({ item }) => {
|
|
44
|
+
const { t } = useTranslation();
|
|
45
|
+
return /* @__PURE__ */ jsx(
|
|
46
|
+
ActionMenu,
|
|
47
|
+
{
|
|
48
|
+
groups: [
|
|
49
|
+
{
|
|
50
|
+
actions: [
|
|
51
|
+
{
|
|
52
|
+
icon: /* @__PURE__ */ jsx(Buildings, {}),
|
|
53
|
+
label: t("offers.detail.goToInventoryItem"),
|
|
54
|
+
to: `/inventory/${item.id}`
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
};
|
|
62
|
+
var OfferInventorySection = ({ offer }) => {
|
|
63
|
+
const { t } = useTranslation();
|
|
64
|
+
const inventoryItems = useMemo(() => {
|
|
65
|
+
const links = offer.inventory_item_link ?? [];
|
|
66
|
+
return links.map((link) => {
|
|
67
|
+
const item = link.inventory_item;
|
|
68
|
+
if (!item?.id) return null;
|
|
69
|
+
return {
|
|
70
|
+
id: item.id,
|
|
71
|
+
title: item.title,
|
|
72
|
+
sku: item.sku,
|
|
73
|
+
required_quantity: link.required_quantity,
|
|
74
|
+
location_levels: item.location_levels
|
|
75
|
+
};
|
|
76
|
+
}).filter((x) => x !== null);
|
|
77
|
+
}, [offer.inventory_item_link]);
|
|
78
|
+
const columns = useMemo(
|
|
79
|
+
() => [
|
|
80
|
+
columnHelper.accessor("title", {
|
|
81
|
+
header: t("fields.title"),
|
|
82
|
+
cell: ({ getValue }) => {
|
|
83
|
+
const title = getValue();
|
|
84
|
+
if (!title) return /* @__PURE__ */ jsx(PlaceholderCell, {});
|
|
85
|
+
return /* @__PURE__ */ jsx("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "truncate", children: title }) });
|
|
86
|
+
}
|
|
87
|
+
}),
|
|
88
|
+
columnHelper.accessor("sku", {
|
|
89
|
+
header: t("offers.fields.sku"),
|
|
90
|
+
cell: ({ getValue }) => {
|
|
91
|
+
const sku = getValue();
|
|
92
|
+
if (!sku) return /* @__PURE__ */ jsx(PlaceholderCell, {});
|
|
93
|
+
return /* @__PURE__ */ jsx("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "truncate", children: sku }) });
|
|
94
|
+
}
|
|
95
|
+
}),
|
|
96
|
+
columnHelper.accessor("required_quantity", {
|
|
97
|
+
header: t("offers.fields.requiredQuantity"),
|
|
98
|
+
cell: ({ getValue }) => {
|
|
99
|
+
const value = getValue();
|
|
100
|
+
if (value == null) return /* @__PURE__ */ jsx(PlaceholderCell, {});
|
|
101
|
+
return /* @__PURE__ */ jsx("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "truncate", children: value }) });
|
|
102
|
+
}
|
|
103
|
+
}),
|
|
104
|
+
columnHelper.display({
|
|
105
|
+
id: "inventory",
|
|
106
|
+
header: t("labels.available"),
|
|
107
|
+
cell: ({ row }) => {
|
|
108
|
+
const { quantity, locations } = computeAvailable(row.original);
|
|
109
|
+
if (locations === 0) return /* @__PURE__ */ jsx(PlaceholderCell, {});
|
|
110
|
+
const text = `${quantity} available at ${locations} ${locations === 1 ? "location" : "locations"}`;
|
|
111
|
+
return /* @__PURE__ */ jsx("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx(
|
|
112
|
+
Text,
|
|
113
|
+
{
|
|
114
|
+
size: "small",
|
|
115
|
+
className: quantity === 0 ? "text-ui-fg-error truncate" : "truncate",
|
|
116
|
+
children: text
|
|
117
|
+
}
|
|
118
|
+
) });
|
|
119
|
+
}
|
|
120
|
+
}),
|
|
121
|
+
columnHelper.display({
|
|
122
|
+
id: "actions",
|
|
123
|
+
cell: ({ row }) => /* @__PURE__ */ jsx(InventoryActions, { item: row.original })
|
|
124
|
+
})
|
|
125
|
+
],
|
|
126
|
+
[t]
|
|
127
|
+
);
|
|
128
|
+
const { table } = useDataTable({
|
|
129
|
+
data: inventoryItems,
|
|
130
|
+
columns,
|
|
131
|
+
count: inventoryItems.length,
|
|
132
|
+
enablePagination: true,
|
|
133
|
+
getRowId: (row) => row.id,
|
|
134
|
+
pageSize: PAGE_SIZE
|
|
135
|
+
});
|
|
136
|
+
return /* @__PURE__ */ jsxs(
|
|
137
|
+
Container,
|
|
138
|
+
{
|
|
139
|
+
className: "divide-y p-0",
|
|
140
|
+
"data-testid": "offer-detail-inventory-section",
|
|
141
|
+
children: [
|
|
142
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx(Heading, { level: "h2", children: t("offers.detail.inventoryItems") }) }),
|
|
143
|
+
inventoryItems.length === 0 ? /* @__PURE__ */ jsx("div", { className: "px-6 py-8", children: /* @__PURE__ */ jsx(Text, { size: "small", className: "text-ui-fg-subtle", children: t("offers.detail.noInventoryItems") }) }) : /* @__PURE__ */ jsx(
|
|
144
|
+
_DataTable,
|
|
145
|
+
{
|
|
146
|
+
table,
|
|
147
|
+
columns,
|
|
148
|
+
pageSize: PAGE_SIZE,
|
|
149
|
+
count: inventoryItems.length,
|
|
150
|
+
navigateTo: (row) => `/inventory/${row.id}`
|
|
151
|
+
}
|
|
152
|
+
)
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
// src/pages/offers/[id]/_components/offer-pricing-section.tsx
|
|
159
|
+
import { Button, Container as Container2, Heading as Heading2 } from "@medusajs/ui";
|
|
160
|
+
import { useState } from "react";
|
|
161
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
162
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
163
|
+
var PAGE_STEP = 3;
|
|
164
|
+
var isBaseRow = (price) => {
|
|
165
|
+
const rules = price.price_rules ?? [];
|
|
166
|
+
const extraRules = rules.filter((r) => r.attribute !== "offer_id");
|
|
167
|
+
return extraRules.length === 0;
|
|
168
|
+
};
|
|
169
|
+
var OfferPricingSection = ({ offer }) => {
|
|
170
|
+
const { t } = useTranslation2();
|
|
171
|
+
const prices = (offer.prices ?? []).filter(isBaseRow).sort(
|
|
172
|
+
(a, b) => (a.currency_code ?? "").localeCompare(b.currency_code ?? "")
|
|
173
|
+
);
|
|
174
|
+
const hasPrices = prices.length > 0;
|
|
175
|
+
const [pageSize, setPageSize] = useState(PAGE_STEP);
|
|
176
|
+
const displayPrices = prices.slice(0, pageSize);
|
|
177
|
+
return /* @__PURE__ */ jsxs2(
|
|
178
|
+
Container2,
|
|
179
|
+
{
|
|
180
|
+
className: "flex flex-col divide-y p-0",
|
|
181
|
+
"data-testid": "offer-detail-prices-section",
|
|
182
|
+
children: [
|
|
183
|
+
/* @__PURE__ */ jsx2("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx2(Heading2, { level: "h2", children: t("labels.prices") }) }),
|
|
184
|
+
!hasPrices && /* @__PURE__ */ jsx2(NoRecords, { className: "h-60" }),
|
|
185
|
+
displayPrices.map((price) => /* @__PURE__ */ jsxs2(
|
|
186
|
+
"div",
|
|
187
|
+
{
|
|
188
|
+
className: "txt-small text-ui-fg-subtle flex justify-between px-6 py-4",
|
|
189
|
+
children: [
|
|
190
|
+
/* @__PURE__ */ jsx2("span", { className: "font-medium", children: price.currency_code.toUpperCase() }),
|
|
191
|
+
/* @__PURE__ */ jsx2("span", { children: getLocaleAmount(price.amount, price.currency_code) })
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
price.id ?? `${price.currency_code}-${price.amount}`
|
|
195
|
+
)),
|
|
196
|
+
hasPrices && prices.length > PAGE_STEP && /* @__PURE__ */ jsx2("div", { className: "txt-small text-ui-fg-subtle flex items-center justify-end px-6 py-4", children: /* @__PURE__ */ jsx2(
|
|
197
|
+
Button,
|
|
198
|
+
{
|
|
199
|
+
onClick: () => setPageSize((p) => p + PAGE_STEP),
|
|
200
|
+
disabled: pageSize >= prices.length,
|
|
201
|
+
className: "-mr-3 text-blue-500",
|
|
202
|
+
variant: "transparent",
|
|
203
|
+
children: t("actions.showMore")
|
|
204
|
+
}
|
|
205
|
+
) })
|
|
206
|
+
]
|
|
207
|
+
}
|
|
208
|
+
);
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
// src/pages/offers/[id]/_components/offer-store-sidebar.tsx
|
|
212
|
+
import { TriangleRightMini } from "@medusajs/icons";
|
|
213
|
+
import { Avatar, Container as Container3, Heading as Heading3 } from "@medusajs/ui";
|
|
214
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
215
|
+
import { Link } from "react-router-dom";
|
|
216
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
217
|
+
var OfferStoreSidebar = ({ offer }) => {
|
|
218
|
+
const { t } = useTranslation3();
|
|
219
|
+
const seller = offer.seller;
|
|
220
|
+
if (!seller?.id) {
|
|
221
|
+
return null;
|
|
222
|
+
}
|
|
223
|
+
const name = seller.name ?? seller.id;
|
|
224
|
+
const handle = seller.handle ?? "";
|
|
225
|
+
const link = `/stores/${seller.id}`;
|
|
226
|
+
const Inner = /* @__PURE__ */ jsx3(
|
|
227
|
+
"div",
|
|
228
|
+
{
|
|
229
|
+
className: "shadow-elevation-card-rest bg-ui-bg-component rounded-md px-4 py-2 transition-colors",
|
|
230
|
+
"data-testid": "offer-detail-store-sidebar",
|
|
231
|
+
children: /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-3", children: [
|
|
232
|
+
/* @__PURE__ */ jsx3(
|
|
233
|
+
Avatar,
|
|
234
|
+
{
|
|
235
|
+
size: "small",
|
|
236
|
+
fallback: (name?.[0] ?? "?").toUpperCase(),
|
|
237
|
+
"data-testid": "offer-detail-store-avatar"
|
|
238
|
+
}
|
|
239
|
+
),
|
|
240
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex flex-1 flex-col", children: [
|
|
241
|
+
/* @__PURE__ */ jsx3(
|
|
242
|
+
"span",
|
|
243
|
+
{
|
|
244
|
+
className: "text-ui-fg-base font-medium",
|
|
245
|
+
"data-testid": "offer-detail-store-name",
|
|
246
|
+
children: name
|
|
247
|
+
}
|
|
248
|
+
),
|
|
249
|
+
handle && /* @__PURE__ */ jsx3(
|
|
250
|
+
"span",
|
|
251
|
+
{
|
|
252
|
+
className: "text-ui-fg-subtle",
|
|
253
|
+
"data-testid": "offer-detail-store-handle",
|
|
254
|
+
children: handle
|
|
255
|
+
}
|
|
256
|
+
)
|
|
257
|
+
] }),
|
|
258
|
+
/* @__PURE__ */ jsx3("div", { className: "size-7 flex items-center justify-center", children: /* @__PURE__ */ jsx3(TriangleRightMini, { className: "text-ui-fg-muted rtl:rotate-180" }) })
|
|
259
|
+
] })
|
|
260
|
+
}
|
|
261
|
+
);
|
|
262
|
+
return /* @__PURE__ */ jsxs3(Container3, { className: "p-0", children: [
|
|
263
|
+
/* @__PURE__ */ jsx3("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx3(Heading3, { level: "h2", children: t("offers.detail.store") }) }),
|
|
264
|
+
/* @__PURE__ */ jsx3("div", { className: "txt-small flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx3(
|
|
265
|
+
Link,
|
|
266
|
+
{
|
|
267
|
+
to: link,
|
|
268
|
+
className: "outline-none focus-within:shadow-borders-interactive-with-focus rounded-md [&:hover>div]:bg-ui-bg-component-hover",
|
|
269
|
+
"data-testid": "offer-detail-store-link",
|
|
270
|
+
children: Inner
|
|
271
|
+
}
|
|
272
|
+
) })
|
|
273
|
+
] });
|
|
274
|
+
};
|
|
275
|
+
|
|
276
|
+
export {
|
|
277
|
+
OfferInventorySection,
|
|
278
|
+
OfferPricingSection,
|
|
279
|
+
OfferStoreSidebar
|
|
280
|
+
};
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-DBYUB2YI.js";
|
|
7
7
|
import {
|
|
8
8
|
useOrderTableFilters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-J3AMUGGZ.js";
|
|
10
10
|
import {
|
|
11
11
|
useMemberTableQuery
|
|
12
12
|
} from "./chunk-MR3MLNWV.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
} from "./chunk-OMBP3YSV.js";
|
|
25
25
|
import {
|
|
26
26
|
useProductTableFilters
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-RZ5SFALB.js";
|
|
28
28
|
import {
|
|
29
29
|
useProductTableQuery
|
|
30
30
|
} from "./chunk-LYZDVZWA.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
useSalesChannelTableEmptyState,
|
|
12
12
|
useSalesChannelTableFilters,
|
|
13
13
|
useSalesChannelTableQuery
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-LEHS6RED.js";
|
|
15
15
|
import {
|
|
16
16
|
SingleColumnPage
|
|
17
17
|
} from "./chunk-H6MYB7GB.js";
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
useBatchRemoveSalesChannelsFromApiKey,
|
|
27
27
|
useDeleteApiKey,
|
|
28
28
|
useRevokeApiKey
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-FJHAAROU.js";
|
|
30
30
|
import {
|
|
31
31
|
useUser
|
|
32
32
|
} from "./chunk-GKGLVDDV.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "./chunk-BDGZ4EQO.js";
|
|
36
36
|
import {
|
|
37
37
|
useSalesChannels
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-OKWGPKVK.js";
|
|
39
39
|
import {
|
|
40
40
|
SingleColumnPageSkeleton,
|
|
41
41
|
Skeleton
|