@mercurjs/admin 2.2.0-canary.15 → 2.2.0-canary.17
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-4QP4LF7G.js} +4 -4
- package/dist/{adjust-inventory-3IQ657W2.js → adjust-inventory-AHIKDW7M.js} +12 -12
- package/dist/{api-key-management-create-UD5V7TOU.js → api-key-management-create-7SIKAXEH.js} +4 -4
- 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-C4FYJZGH.js} +4 -4
- 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-JLSDZRG6.js} +7 -6
- package/dist/{attribute-create-IKTP5XRS.js → attribute-create-NIYUQEHQ.js} +14 -14
- package/dist/{attribute-detail-V4QI34FV.js → attribute-detail-GA4FDSAG.js} +15 -12
- package/dist/{attribute-edit-LUY66TG3.js → attribute-edit-KJL36HQ4.js} +1 -1
- package/dist/{attribute-edit-possible-value-IOS3625C.js → attribute-edit-possible-value-LGOD3ZKQ.js} +1 -1
- package/dist/{attribute-list-EMPHZ32M.js → attribute-list-A3RFO32Z.js} +12 -12
- package/dist/breadcrumb-CO5DVI72.js +26 -0
- package/dist/breadcrumb-RYIHOYZE.js +27 -0
- package/dist/{campaign-budget-edit-WKSYXTBX.js → campaign-budget-edit-N2WWGO2G.js} +1 -1
- package/dist/{campaign-configuration-ZTK46EB5.js → campaign-configuration-MFFZXUEN.js} +1 -1
- package/dist/{campaign-create-VFFIIRE4.js → campaign-create-NMIOUGXQ.js} +2 -2
- package/dist/{campaign-detail-QY3AALUR.js → campaign-detail-A7ZM4Q7M.js} +15 -15
- package/dist/{campaign-edit-ZGLDY4X4.js → campaign-edit-PA7FGIY3.js} +1 -1
- package/dist/{categories-metadata-Z5JAWPAK.js → categories-metadata-FCV4YK74.js} +13 -13
- package/dist/{category-create-GMCJABRW.js → category-create-S3K54WKP.js} +5 -5
- package/dist/{category-detail-IP5EPIUR.js → category-detail-CIEHVR4M.js} +14 -14
- package/dist/{category-edit-GLE4NTFG.js → category-edit-XKANIIH5.js} +3 -3
- 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-AB3YAGSW.js} +13 -13
- package/dist/{chunk-3JSAS7QP.js → chunk-22EOFXNK.js} +16 -0
- package/dist/{chunk-5UPOHLBD.js → chunk-2LKMOTLX.js} +2 -2
- package/dist/{chunk-ZO7A6VYP.js → chunk-2PUBUYFG.js} +6 -6
- package/dist/{chunk-26UTIAAZ.js → chunk-32URSQ4F.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-O2XHQTBX.js → chunk-47W2JHOE.js} +3 -3
- package/dist/chunk-4FHHNYIV.js +280 -0
- package/dist/{chunk-IQZ3T2Q4.js → chunk-4IKESXD3.js} +3 -3
- package/dist/{chunk-UXGLM3B4.js → chunk-4OEYCLBE.js} +1 -1
- 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-KWFKMS4M.js → chunk-7Y6A7XK6.js} +10 -10
- package/dist/{chunk-LGL4QSGB.js → chunk-7ZL46D3W.js} +3 -3
- package/dist/{chunk-HDOWEXDH.js → chunk-A2GVK4VZ.js} +2 -2
- package/dist/{chunk-WYA62MUL.js → chunk-AROCMF45.js} +1 -1
- package/dist/chunk-AWLDIHXR.js +204 -0
- package/dist/{chunk-D2VXOF46.js → chunk-B4K7H6DH.js} +2 -2
- package/dist/{chunk-QUPUWR42.js → chunk-B5OMHYJ5.js} +6 -4
- 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-2OF7GB7J.js → chunk-ESZN3ELN.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-4LXBQTFN.js → chunk-FREUYHMS.js} +1 -1
- package/dist/{chunk-PASEZJC7.js → chunk-FYCIGKVG.js} +1 -1
- package/dist/{chunk-5AZCIOS4.js → chunk-GQUGCSJV.js} +2 -2
- package/dist/{chunk-KT7X72J4.js → chunk-HHW4PPNH.js} +1 -0
- package/dist/{chunk-4GFS57XI.js → chunk-HLJ24XVH.js} +1 -1
- package/dist/{chunk-72PLRAWM.js → chunk-IBX52HBP.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-X7H7TIOT.js → chunk-JR4T4OQU.js} +3 -3
- package/dist/{chunk-HQWN3A5L.js → chunk-JRLDKKCM.js} +2 -2
- package/dist/{chunk-R7ESTJHN.js → chunk-K2C42QAV.js} +2 -2
- package/dist/{chunk-YGRTRAWX.js → chunk-KDE4HKH2.js} +1 -0
- package/dist/{chunk-DN2K5EAH.js → chunk-KYFWVLWO.js} +1 -1
- package/dist/{chunk-CKNQJPAG.js → chunk-LEHS6RED.js} +4 -2
- package/dist/{chunk-FB7DDNCA.js → chunk-LHVXXHPO.js} +1 -1
- 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-BQ6ZDY6L.js → chunk-OCRKS4Z7.js} +6 -6
- 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-U2ZFCAPX.js → chunk-SITRHMZZ.js} +11 -8
- package/dist/{chunk-RQPDD3RI.js → chunk-SKKF3CU6.js} +1 -1
- 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-4KX6CBJ4.js → chunk-VSLHL2AZ.js} +2 -0
- 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-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-KTUW23TD.js} +13 -13
- package/dist/{collection-create-BRMP6SIZ.js → collection-create-7G3MHBVQ.js} +3 -3
- package/dist/{collection-detail-AMGR2B5N.js → collection-detail-TR7TDQZG.js} +13 -13
- package/dist/{collection-edit-YLWUEU4C.js → collection-edit-LQEQ6YGD.js} +3 -3
- package/dist/{collection-list-6HZE43AC.js → collection-list-FOWSOTS7.js} +14 -14
- package/dist/{collection-metadata-JS5QP3GD.js → collection-metadata-DS32TGOK.js} +13 -13
- package/dist/{commission-rate-create-PSPSJZR5.js → commission-rate-create-G42ZUJPH.js} +15 -15
- package/dist/{commission-rate-detail-U72E4ZIO.js → commission-rate-detail-VGYTGWLH.js} +12 -12
- package/dist/{commission-rate-edit-7NJPABVA.js → commission-rate-edit-3CYWYOMS.js} +15 -15
- package/dist/{customer-create-QHA4KM6N.js → customer-create-RW63XPQ6.js} +1 -1
- package/dist/{customer-create-address-TYWVWNUE.js → customer-create-address-SZCOIGDP.js} +1 -1
- package/dist/{customer-detail-2RWBN6C4.js → customer-detail-5XGZ2K3H.js} +13 -13
- package/dist/{customer-edit-JZ4PQTIN.js → customer-edit-ZBIZ4FKT.js} +1 -1
- package/dist/{customer-group-add-customers-VJUBEN7M.js → customer-group-add-customers-SG7EU4D7.js} +1 -1
- package/dist/{customer-group-create-NA2UKCF6.js → customer-group-create-LFGY5HR6.js} +1 -1
- package/dist/{customer-group-detail-ED66F7JM.js → customer-group-detail-JX3BEYFG.js} +11 -11
- package/dist/{customer-group-edit-3O6HAYYN.js → customer-group-edit-CXWQSMDZ.js} +1 -1
- package/dist/{customer-group-list-6YUFKBHH.js → customer-group-list-F5TFLDVH.js} +11 -11
- package/dist/{customer-group-metadata-VQUOWR3P.js → customer-group-metadata-CHOTUAS2.js} +13 -13
- package/dist/{customer-metadata-47AVJXRI.js → customer-metadata-LG6HA56I.js} +13 -13
- package/dist/{customers-add-customer-group-HI7J7YKN.js → customers-add-customer-group-3YKZEZKJ.js} +12 -12
- package/dist/{edit-inventory-item-MBPSBJL4.js → edit-inventory-item-5EYVQ6CM.js} +12 -12
- package/dist/{edit-inventory-item-attributes-RVYWOFAC.js → edit-inventory-item-attributes-7QM4YHAQ.js} +12 -12
- package/dist/{edit-reservation-7BLGYXCJ.js → edit-reservation-C3NXAKSE.js} +3 -3
- package/dist/{edit-rules-ZWDKM5M3.js → edit-rules-2S5H7MC2.js} +12 -12
- package/dist/index.js +262 -230
- package/dist/{inventory-create-Q4VBPXSG.js → inventory-create-RBMMOSC3.js} +15 -15
- 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-OZAKLWNY.js} +13 -13
- package/dist/{inventory-stock-2QIKS7LE.js → inventory-stock-WUAIUFQS.js} +13 -13
- package/dist/loader-S77URTQS.js +32 -0
- package/dist/loader-XPJWDZU3.js +32 -0
- package/dist/{location-create-ZMNB7YKR.js → location-create-SO2CURZL.js} +1 -1
- package/dist/{location-detail-HOCNTQ7K.js → location-detail-PBCP7BBV.js} +12 -12
- package/dist/{location-edit-DMBF3CYZ.js → location-edit-XA53657R.js} +1 -1
- package/dist/{location-fulfillment-providers-YQ2XFPAJ.js → location-fulfillment-providers-D4EFIF3Z.js} +14 -14
- package/dist/{location-list-KQQRH4MT.js → location-list-DM4WU57J.js} +11 -11
- package/dist/{location-sales-channels-DRIS6AUX.js → location-sales-channels-46SPET7R.js} +6 -5
- package/dist/{location-service-zone-create-ZS3UWJAA.js → location-service-zone-create-IOB7DWBR.js} +1 -1
- package/dist/{location-service-zone-edit-MTGU2O4C.js → location-service-zone-edit-X37BNDRP.js} +1 -1
- package/dist/{location-service-zone-manage-areas-S7QZTIFT.js → location-service-zone-manage-areas-CWWABV5M.js} +1 -1
- package/dist/{location-service-zone-shipping-option-create-6GYLJHEC.js → location-service-zone-shipping-option-create-T4LT4E6M.js} +16 -16
- package/dist/{location-service-zone-shipping-option-edit-3PGSNKYT.js → location-service-zone-shipping-option-edit-O3B3H5OC.js} +1 -1
- package/dist/{location-service-zone-shipping-option-pricing-POBJOF3Z.js → location-service-zone-shipping-option-pricing-FZNCTVT6.js} +3 -3
- 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-add-currencies-6ANNBGZM.js → marketplace-add-currencies-YVJA6G6V.js} +1 -1
- package/dist/{marketplace-detail-K52ALYGT.js → marketplace-detail-GSPPUVR7.js} +12 -12
- package/dist/{marketplace-edit-6Q3G2OY5.js → marketplace-edit-QNFCTDUC.js} +1 -1
- package/dist/{marketplace-metadata-ZSX3IQF4.js → marketplace-metadata-PB7JEK2K.js} +13 -13
- 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-claim-OVHMMR3J.js → order-create-claim-HND7RODU.js} +1 -1
- package/dist/{order-create-edit-HEOYCYZO.js → order-create-edit-LIQGALQ2.js} +4 -4
- package/dist/{order-create-exchange-L56VKQBL.js → order-create-exchange-QE2TJ36U.js} +12 -12
- package/dist/{order-create-refund-UTJKJ3AJ.js → order-create-refund-37JJA6MM.js} +12 -12
- package/dist/{order-create-return-FLGYGUTQ.js → order-create-return-AVVT3OUO.js} +1 -1
- package/dist/{order-detail-KAB4MV7X.js → order-detail-A2WC2OZU.js} +13 -13
- package/dist/{order-edit-billing-address-RUURVISC.js → order-edit-billing-address-IPWVSYR2.js} +13 -13
- package/dist/{order-edit-email-OO7AMRHC.js → order-edit-email-ZQZNTV4P.js} +12 -12
- package/dist/{order-edit-shipping-address-BRRXUE76.js → order-edit-shipping-address-YPYWT3YN.js} +12 -12
- package/dist/{order-list-S3AJC6L5.js → order-list-QR3ZVI4U.js} +3 -3
- package/dist/{order-metadata-OHK6TPAO.js → order-metadata-E25YHGCC.js} +13 -13
- package/dist/{order-request-transfer-YLMXC7NL.js → order-request-transfer-XDNXRB66.js} +12 -12
- package/dist/pages/index.d.ts +2 -1
- package/dist/pages/index.js +103 -101
- package/dist/{price-list-configuration-Q5H22ZE2.js → price-list-configuration-SNL2LNV2.js} +3 -3
- package/dist/{price-list-create-OYAVGRM5.js → price-list-create-GBUUE3NP.js} +17 -17
- package/dist/{price-list-detail-Q4GFFUFG.js → price-list-detail-77FAEXXO.js} +14 -14
- package/dist/{price-list-edit-YY4SXEI3.js → price-list-edit-BOEBNVGM.js} +3 -3
- 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-2XS5TX5X.js} +17 -17
- package/dist/{price-list-prices-edit-SMUKU7Q6.js → price-list-prices-edit-C2C3I64A.js} +14 -14
- package/dist/{product-add-existing-attributes-KOPVWK5Q.js → product-add-existing-attributes-NFXKW6SW.js} +12 -12
- package/dist/{product-attributes-C3KHQF2I.js → product-attributes-2LAKXXX6.js} +2 -2
- package/dist/{product-bulk-edit-J3CMBZN2.js → product-bulk-edit-G7QTYQHG.js} +3 -3
- package/dist/{product-create-KTIQ3UAQ.js → product-create-AG4AYDM3.js} +21 -21
- package/dist/{product-create-attribute-XARMC6FJ.js → product-create-attribute-ELMLVRUB.js} +3 -3
- package/dist/{product-create-variant-6VUKYLWE.js → product-create-variant-7DVYYUDX.js} +4 -4
- package/dist/{product-detail-UB3EZRDE.js → product-detail-CNVETME5.js} +15 -13
- package/dist/{product-edit-F4CKOIUO.js → product-edit-3Q5E5E5L.js} +2 -2
- package/dist/{product-edit-attribute-LG2ZM6HQ.js → product-edit-attribute-GXFMVPCQ.js} +2 -2
- package/dist/{product-list-2BWYAATR.js → product-list-KM37QJ6F.js} +13 -13
- package/dist/{product-media-EUDMCJ75.js → product-media-H5DAWUYR.js} +7 -6
- package/dist/{product-metadata-5WVNFCRL.js → product-metadata-4ZLL42UF.js} +13 -13
- package/dist/{product-organization-BFWDCHP4.js → product-organization-ILQCXL7B.js} +4 -4
- package/dist/{product-sales-channels-2J5Q65JS.js → product-sales-channels-7QCAABL4.js} +5 -4
- package/dist/{product-shipping-profile-WDLKA2SN.js → product-shipping-profile-4K7LTJ5K.js} +2 -2
- package/dist/{product-tag-create-KQSVCWMC.js → product-tag-create-KKRQQT3A.js} +12 -12
- package/dist/{product-tag-detail-CWDAY7F3.js → product-tag-detail-R6UFJDCW.js} +14 -14
- package/dist/{product-tag-edit-B4SIZCUK.js → product-tag-edit-TISDF4FQ.js} +12 -12
- package/dist/{product-tag-list-2OK3OCMZ.js → product-tag-list-NFPQVVMO.js} +13 -13
- package/dist/{product-tag-metadata-MASTMIKE.js → product-tag-metadata-GJFYX5HU.js} +13 -13
- package/dist/{product-type-create-RHG4KEAV.js → product-type-create-A7SUR2OX.js} +1 -1
- package/dist/{product-type-detail-3X7ZTZJN.js → product-type-detail-XJPSQDL2.js} +13 -13
- package/dist/{product-type-edit-CABB7R7Y.js → product-type-edit-DM4U2VB4.js} +1 -1
- package/dist/{product-type-metadata-6BKTQHQC.js → product-type-metadata-GKVLFBF6.js} +13 -13
- package/dist/{product-variant-detail-PQ4RKPZT.js → product-variant-detail-VCMC4BZP.js} +12 -12
- package/dist/{product-variant-edit-TLF475SH.js → product-variant-edit-QLDFN6LI.js} +12 -12
- package/dist/{product-variant-metadata-3M72B3PM.js → product-variant-metadata-VZZMPRRG.js} +13 -13
- package/dist/{profile-edit-HQTWYWZ7.js → profile-edit-H5QZ66PF.js} +1 -1
- package/dist/{promotion-add-campaign-S3JJSFHT.js → promotion-add-campaign-V3RJ634F.js} +2 -2
- package/dist/{promotion-create-OKZBUSJD.js → promotion-create-POBB7B23.js} +16 -16
- package/dist/{promotion-detail-MMNEDRXD.js → promotion-detail-NSOGXQAY.js} +14 -14
- package/dist/{promotion-edit-details-TKRC5HES.js → promotion-edit-details-NWOBD3YD.js} +1 -1
- package/dist/{promotion-list-DHWW7FTI.js → promotion-list-7C3SQCSO.js} +4 -4
- package/dist/{refund-reason-create-N4DZ4UHS.js → refund-reason-create-HPLJOL6S.js} +12 -12
- package/dist/{refund-reason-edit-OAHRDKXW.js → refund-reason-edit-JI4U4RWO.js} +12 -12
- package/dist/{refund-reason-list-3BTQCIYE.js → refund-reason-list-SWU4B2ED.js} +11 -11
- package/dist/{region-add-countries-COXN4LP3.js → region-add-countries-5I2UDAJU.js} +1 -1
- package/dist/{region-create-P66Q65XY.js → region-create-SIB6WZPV.js} +1 -1
- package/dist/{region-edit-XFE54SAO.js → region-edit-YQZCZIX3.js} +1 -1
- package/dist/{region-metadata-BJSTTZFL.js → region-metadata-LDWMTB7G.js} +13 -13
- package/dist/{reservation-create-TXYAY3KF.js → reservation-create-NPR2FMPA.js} +3 -3
- 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-AZ265HZI.js} +13 -13
- package/dist/{reset-password-QGQ4GAHK.js → reset-password-6CAYNSJ6.js} +1 -1
- package/dist/{return-reason-create-KED7446I.js → return-reason-create-G7ON7U3A.js} +1 -1
- package/dist/{return-reason-edit-57EU3XSE.js → return-reason-edit-77RVRFF6.js} +1 -1
- package/dist/{sales-channel-add-products-3VZ5SLLP.js → sales-channel-add-products-S47CQCJF.js} +13 -13
- package/dist/{sales-channel-create-XBR3QESI.js → sales-channel-create-TAKKGGK3.js} +3 -3
- package/dist/{sales-channel-detail-PHRSKCNM.js → sales-channel-detail-6JPHP4FZ.js} +13 -13
- package/dist/{sales-channel-edit-ILBZBQP4.js → sales-channel-edit-HEESIKZH.js} +3 -3
- package/dist/{sales-channel-list-E647FXSZ.js → sales-channel-list-D673ONK2.js} +15 -14
- package/dist/{sales-channel-metadata-HVPGS756.js → sales-channel-metadata-OY47MCFI.js} +13 -13
- package/dist/{shipping-option-type-create-3ZKT7WAC.js → shipping-option-type-create-H2YRDETZ.js} +12 -12
- 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-KBPDYAUJ.js} +12 -12
- package/dist/{shipping-option-type-list-MLIDCA3L.js → shipping-option-type-list-OUKJZJ6R.js} +11 -11
- package/dist/{shipping-profile-create-UJNCCKKK.js → shipping-profile-create-JYRXTOBF.js} +1 -1
- package/dist/{shipping-profile-metadata-T4HPNTLH.js → shipping-profile-metadata-CQCDC45M.js} +15 -15
- package/dist/{store-address-edit-PKIBRFH4.js → store-address-edit-SWLACMPC.js} +1 -1
- package/dist/{store-bulk-edit-BNF3HH5K.js → store-bulk-edit-DXWHZMGL.js} +2 -2
- package/dist/{store-closure-edit-OK7MTUHY.js → store-closure-edit-Y3FOCDRX.js} +1 -1
- package/dist/{store-create-KFLNOD73.js → store-create-MVHUY3I3.js} +13 -13
- package/dist/{store-details-E347PHAN.js → store-details-V3NMV665.js} +14 -14
- package/dist/{store-edit-Y6NLBIOP.js → store-edit-6CC2GBFY.js} +4 -4
- package/dist/{store-list-S2L44OLB.js → store-list-WV6XHGLU.js} +13 -13
- package/dist/{store-member-invite-J5XSPWMW.js → store-member-invite-7YIXFC56.js} +1 -1
- package/dist/{store-payment-details-edit-HOGHZMZC.js → store-payment-details-edit-DF2WURRI.js} +1 -1
- package/dist/{store-professional-details-edit-DPJ4ZFDR.js → store-professional-details-edit-FPOLORSE.js} +1 -1
- package/dist/{tax-region-create-MIDQXQS4.js → tax-region-create-RGE5ZIBR.js} +13 -13
- package/dist/{tax-region-detail-AC7B3G57.js → tax-region-detail-OKEK6WNJ.js} +13 -13
- package/dist/{tax-region-edit-5CORTHTC.js → tax-region-edit-QQ3LB74P.js} +12 -12
- package/dist/{tax-region-metadata-QQZIQPAD.js → tax-region-metadata-GPTD6KZB.js} +13 -13
- package/dist/{tax-region-province-create-OVLIZPNP.js → tax-region-province-create-SEPY4OAZ.js} +1 -1
- 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-223MPYUG.js} +15 -15
- package/dist/{tax-region-tax-override-edit-RIT6YRVK.js → tax-region-tax-override-edit-WFOXP6A7.js} +15 -15
- package/dist/{tax-region-tax-rate-create-KDN6G52Y.js → tax-region-tax-rate-create-ZITIAU3K.js} +1 -1
- package/dist/{tax-region-tax-rate-edit-D4BFDDJ7.js → tax-region-tax-rate-edit-RQLUPHD4.js} +1 -1
- package/dist/{user-detail-MMVBN3AE.js → user-detail-6CCQQPFR.js} +1 -1
- package/dist/{user-edit-MXS2DV37.js → user-edit-DVIMNODF.js} +1 -1
- package/dist/{user-invite-HLZJ7FST.js → user-invite-NJZWT4M5.js} +1 -1
- package/dist/{user-metadata-OZLU3Y2X.js → user-metadata-A3JS6O4K.js} +13 -13
- 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
package/dist/[id]-BAPEFPAO.js
DELETED
|
@@ -1,505 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
OFFER_DETAIL_FIELDS
|
|
3
|
-
} from "./chunk-PT5PLV3N.js";
|
|
4
|
-
import {
|
|
5
|
-
useOffer
|
|
6
|
-
} from "./chunk-UIVWOKWT.js";
|
|
7
|
-
import {
|
|
8
|
-
getLocaleAmount
|
|
9
|
-
} from "./chunk-PXYDR7WQ.js";
|
|
10
|
-
import {
|
|
11
|
-
PlaceholderCell
|
|
12
|
-
} from "./chunk-PHOCVOZ5.js";
|
|
13
|
-
import "./chunk-FQERBIVS.js";
|
|
14
|
-
import {
|
|
15
|
-
_DataTable,
|
|
16
|
-
useDataTable
|
|
17
|
-
} from "./chunk-NQEXDLYH.js";
|
|
18
|
-
import "./chunk-YN3FGNJM.js";
|
|
19
|
-
import "./chunk-KAZ5BYTQ.js";
|
|
20
|
-
import {
|
|
21
|
-
NoRecords
|
|
22
|
-
} from "./chunk-634XVU3D.js";
|
|
23
|
-
import "./chunk-IQPN4PZJ.js";
|
|
24
|
-
import "./chunk-FI474ADU.js";
|
|
25
|
-
import {
|
|
26
|
-
SectionRow
|
|
27
|
-
} from "./chunk-3XPXUIK3.js";
|
|
28
|
-
import {
|
|
29
|
-
TwoColumnPage
|
|
30
|
-
} from "./chunk-E74OUNA3.js";
|
|
31
|
-
import {
|
|
32
|
-
Thumbnail
|
|
33
|
-
} from "./chunk-WIYFXWRI.js";
|
|
34
|
-
import "./chunk-H6MYB7GB.js";
|
|
35
|
-
import "./chunk-UZWFZMOX.js";
|
|
36
|
-
import "./chunk-XQNVC4Q7.js";
|
|
37
|
-
import {
|
|
38
|
-
ActionMenu
|
|
39
|
-
} from "./chunk-BDGZ4EQO.js";
|
|
40
|
-
import "./chunk-LAVHRER2.js";
|
|
41
|
-
import "./chunk-Y7QKP6QU.js";
|
|
42
|
-
import {
|
|
43
|
-
TwoColumnPageSkeleton
|
|
44
|
-
} from "./chunk-INNFZYX2.js";
|
|
45
|
-
import "./chunk-RHKRREUU.js";
|
|
46
|
-
import "./chunk-ZA2KFUFR.js";
|
|
47
|
-
import "./chunk-ZBWL72TB.js";
|
|
48
|
-
import "./chunk-NBMM2TZK.js";
|
|
49
|
-
|
|
50
|
-
// src/pages/offers/[id]/offer-detail-page.tsx
|
|
51
|
-
import { Children } from "react";
|
|
52
|
-
import { useLoaderData, useParams } from "react-router-dom";
|
|
53
|
-
|
|
54
|
-
// src/pages/offers/[id]/_components/offer-general-section.tsx
|
|
55
|
-
import { Component } from "@medusajs/icons";
|
|
56
|
-
import { Container, Heading } from "@medusajs/ui";
|
|
57
|
-
import { useTranslation } from "react-i18next";
|
|
58
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
59
|
-
var formatDate = (value) => {
|
|
60
|
-
if (!value) return "-";
|
|
61
|
-
try {
|
|
62
|
-
return new Intl.DateTimeFormat(void 0, {
|
|
63
|
-
dateStyle: "medium",
|
|
64
|
-
timeStyle: "short"
|
|
65
|
-
}).format(new Date(value));
|
|
66
|
-
} catch {
|
|
67
|
-
return "-";
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
var OfferGeneralSection = ({ offer }) => {
|
|
71
|
-
const { t } = useTranslation();
|
|
72
|
-
const hasKit = (offer.inventory_item_link?.length ?? 0) > 1;
|
|
73
|
-
const variantTitle = offer.product_variant?.title ?? "";
|
|
74
|
-
return /* @__PURE__ */ jsxs(
|
|
75
|
-
Container,
|
|
76
|
-
{
|
|
77
|
-
className: "divide-y p-0",
|
|
78
|
-
"data-testid": "offer-detail-general-section",
|
|
79
|
-
children: [
|
|
80
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
81
|
-
/* @__PURE__ */ jsx(Heading, { title: variantTitle, children: variantTitle }),
|
|
82
|
-
hasKit && /* @__PURE__ */ jsx("span", { className: "text-ui-fg-muted font-normal", children: /* @__PURE__ */ jsx(Component, {}) })
|
|
83
|
-
] }) }),
|
|
84
|
-
/* @__PURE__ */ jsx(SectionRow, { title: t("offers.fields.sku"), value: offer.sku ?? "-" }),
|
|
85
|
-
/* @__PURE__ */ jsx(SectionRow, { title: t("offers.fields.ean"), value: offer.ean ?? "-" }),
|
|
86
|
-
/* @__PURE__ */ jsx(SectionRow, { title: t("offers.fields.upc"), value: offer.upc ?? "-" }),
|
|
87
|
-
/* @__PURE__ */ jsx(
|
|
88
|
-
SectionRow,
|
|
89
|
-
{
|
|
90
|
-
title: t("shippingProfile.domain"),
|
|
91
|
-
value: offer.shipping_profile?.name ?? "-"
|
|
92
|
-
}
|
|
93
|
-
),
|
|
94
|
-
/* @__PURE__ */ jsx(
|
|
95
|
-
SectionRow,
|
|
96
|
-
{
|
|
97
|
-
title: t("fields.createdAt"),
|
|
98
|
-
value: formatDate(offer.created_at)
|
|
99
|
-
}
|
|
100
|
-
),
|
|
101
|
-
/* @__PURE__ */ jsx(
|
|
102
|
-
SectionRow,
|
|
103
|
-
{
|
|
104
|
-
title: t("fields.updatedAt"),
|
|
105
|
-
value: formatDate(offer.updated_at)
|
|
106
|
-
}
|
|
107
|
-
)
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
);
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
// src/pages/offers/[id]/_components/offer-inventory-section.tsx
|
|
114
|
-
import { Buildings } from "@medusajs/icons";
|
|
115
|
-
import { Container as Container2, Heading as Heading2, Text } from "@medusajs/ui";
|
|
116
|
-
import { createColumnHelper } from "@tanstack/react-table";
|
|
117
|
-
import { useMemo } from "react";
|
|
118
|
-
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
119
|
-
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
120
|
-
var columnHelper = createColumnHelper();
|
|
121
|
-
var PAGE_SIZE = 20;
|
|
122
|
-
var computeAvailable = (row) => {
|
|
123
|
-
const levels = row.location_levels ?? [];
|
|
124
|
-
let quantity = 0;
|
|
125
|
-
let locations = 0;
|
|
126
|
-
for (const level of levels) {
|
|
127
|
-
if (level.available_quantity != null) {
|
|
128
|
-
quantity += level.available_quantity;
|
|
129
|
-
} else {
|
|
130
|
-
const stocked = level.stocked_quantity ?? 0;
|
|
131
|
-
const reserved = level.reserved_quantity ?? 0;
|
|
132
|
-
quantity += Math.max(0, stocked - reserved);
|
|
133
|
-
}
|
|
134
|
-
locations += 1;
|
|
135
|
-
}
|
|
136
|
-
return { quantity, locations };
|
|
137
|
-
};
|
|
138
|
-
var InventoryActions = ({ item }) => {
|
|
139
|
-
const { t } = useTranslation2();
|
|
140
|
-
return /* @__PURE__ */ jsx2(
|
|
141
|
-
ActionMenu,
|
|
142
|
-
{
|
|
143
|
-
groups: [
|
|
144
|
-
{
|
|
145
|
-
actions: [
|
|
146
|
-
{
|
|
147
|
-
icon: /* @__PURE__ */ jsx2(Buildings, {}),
|
|
148
|
-
label: t("offers.detail.goToInventoryItem"),
|
|
149
|
-
to: `/inventory/${item.id}`
|
|
150
|
-
}
|
|
151
|
-
]
|
|
152
|
-
}
|
|
153
|
-
]
|
|
154
|
-
}
|
|
155
|
-
);
|
|
156
|
-
};
|
|
157
|
-
var OfferInventorySection = ({ offer }) => {
|
|
158
|
-
const { t } = useTranslation2();
|
|
159
|
-
const inventoryItems = useMemo(() => {
|
|
160
|
-
const links = offer.inventory_item_link ?? [];
|
|
161
|
-
return links.map((link) => {
|
|
162
|
-
const item = link.inventory_item;
|
|
163
|
-
if (!item?.id) return null;
|
|
164
|
-
return {
|
|
165
|
-
id: item.id,
|
|
166
|
-
title: item.title,
|
|
167
|
-
sku: item.sku,
|
|
168
|
-
required_quantity: link.required_quantity,
|
|
169
|
-
location_levels: item.location_levels
|
|
170
|
-
};
|
|
171
|
-
}).filter((x) => x !== null);
|
|
172
|
-
}, [offer.inventory_item_link]);
|
|
173
|
-
const columns = useMemo(
|
|
174
|
-
() => [
|
|
175
|
-
columnHelper.accessor("title", {
|
|
176
|
-
header: t("fields.title"),
|
|
177
|
-
cell: ({ getValue }) => {
|
|
178
|
-
const title = getValue();
|
|
179
|
-
if (!title) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
180
|
-
return /* @__PURE__ */ jsx2("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx2("span", { className: "truncate", children: title }) });
|
|
181
|
-
}
|
|
182
|
-
}),
|
|
183
|
-
columnHelper.accessor("sku", {
|
|
184
|
-
header: t("offers.fields.sku"),
|
|
185
|
-
cell: ({ getValue }) => {
|
|
186
|
-
const sku = getValue();
|
|
187
|
-
if (!sku) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
188
|
-
return /* @__PURE__ */ jsx2("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx2("span", { className: "truncate", children: sku }) });
|
|
189
|
-
}
|
|
190
|
-
}),
|
|
191
|
-
columnHelper.accessor("required_quantity", {
|
|
192
|
-
header: t("offers.fields.requiredQuantity"),
|
|
193
|
-
cell: ({ getValue }) => {
|
|
194
|
-
const value = getValue();
|
|
195
|
-
if (value == null) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
196
|
-
return /* @__PURE__ */ jsx2("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx2("span", { className: "truncate", children: value }) });
|
|
197
|
-
}
|
|
198
|
-
}),
|
|
199
|
-
columnHelper.display({
|
|
200
|
-
id: "inventory",
|
|
201
|
-
header: t("labels.available"),
|
|
202
|
-
cell: ({ row }) => {
|
|
203
|
-
const { quantity, locations } = computeAvailable(row.original);
|
|
204
|
-
if (locations === 0) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
205
|
-
const text = `${quantity} available at ${locations} ${locations === 1 ? "location" : "locations"}`;
|
|
206
|
-
return /* @__PURE__ */ jsx2("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx2(
|
|
207
|
-
Text,
|
|
208
|
-
{
|
|
209
|
-
size: "small",
|
|
210
|
-
className: quantity === 0 ? "text-ui-fg-error truncate" : "truncate",
|
|
211
|
-
children: text
|
|
212
|
-
}
|
|
213
|
-
) });
|
|
214
|
-
}
|
|
215
|
-
}),
|
|
216
|
-
columnHelper.display({
|
|
217
|
-
id: "actions",
|
|
218
|
-
cell: ({ row }) => /* @__PURE__ */ jsx2(InventoryActions, { item: row.original })
|
|
219
|
-
})
|
|
220
|
-
],
|
|
221
|
-
[t]
|
|
222
|
-
);
|
|
223
|
-
const { table } = useDataTable({
|
|
224
|
-
data: inventoryItems,
|
|
225
|
-
columns,
|
|
226
|
-
count: inventoryItems.length,
|
|
227
|
-
enablePagination: true,
|
|
228
|
-
getRowId: (row) => row.id,
|
|
229
|
-
pageSize: PAGE_SIZE
|
|
230
|
-
});
|
|
231
|
-
return /* @__PURE__ */ jsxs2(
|
|
232
|
-
Container2,
|
|
233
|
-
{
|
|
234
|
-
className: "divide-y p-0",
|
|
235
|
-
"data-testid": "offer-detail-inventory-section",
|
|
236
|
-
children: [
|
|
237
|
-
/* @__PURE__ */ jsx2("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx2(Heading2, { level: "h2", children: t("offers.detail.inventoryItems") }) }),
|
|
238
|
-
inventoryItems.length === 0 ? /* @__PURE__ */ jsx2("div", { className: "px-6 py-8", children: /* @__PURE__ */ jsx2(Text, { size: "small", className: "text-ui-fg-subtle", children: t("offers.detail.noInventoryItems") }) }) : /* @__PURE__ */ jsx2(
|
|
239
|
-
_DataTable,
|
|
240
|
-
{
|
|
241
|
-
table,
|
|
242
|
-
columns,
|
|
243
|
-
pageSize: PAGE_SIZE,
|
|
244
|
-
count: inventoryItems.length,
|
|
245
|
-
navigateTo: (row) => `/inventory/${row.id}`
|
|
246
|
-
}
|
|
247
|
-
)
|
|
248
|
-
]
|
|
249
|
-
}
|
|
250
|
-
);
|
|
251
|
-
};
|
|
252
|
-
|
|
253
|
-
// src/pages/offers/[id]/_components/offer-variant-section.tsx
|
|
254
|
-
import { TriangleRightMini } from "@medusajs/icons";
|
|
255
|
-
import { Container as Container3, Heading as Heading3 } from "@medusajs/ui";
|
|
256
|
-
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
257
|
-
import { Link } from "react-router-dom";
|
|
258
|
-
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
259
|
-
var OfferVariantSection = ({ offer }) => {
|
|
260
|
-
const { t } = useTranslation3();
|
|
261
|
-
const variant = offer.product_variant;
|
|
262
|
-
if (!variant?.id) {
|
|
263
|
-
return null;
|
|
264
|
-
}
|
|
265
|
-
const productId = variant.product_id ?? variant.product?.id;
|
|
266
|
-
const link = productId ? `/products/${productId}/variants/${variant.id}` : null;
|
|
267
|
-
const title = variant.product?.title ?? variant.title ?? variant.id;
|
|
268
|
-
const subtitle = variant.title ?? "";
|
|
269
|
-
const Inner = /* @__PURE__ */ jsx3(
|
|
270
|
-
"div",
|
|
271
|
-
{
|
|
272
|
-
className: "shadow-elevation-card-rest bg-ui-bg-component rounded-md px-4 py-2 transition-colors",
|
|
273
|
-
"data-testid": "offer-detail-master-variant",
|
|
274
|
-
children: /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-3", children: [
|
|
275
|
-
/* @__PURE__ */ jsx3(
|
|
276
|
-
"div",
|
|
277
|
-
{
|
|
278
|
-
className: "shadow-elevation-card-rest rounded-md",
|
|
279
|
-
"data-testid": "offer-detail-master-variant-thumbnail",
|
|
280
|
-
children: /* @__PURE__ */ jsx3(Thumbnail, { src: variant.product?.thumbnail ?? null })
|
|
281
|
-
}
|
|
282
|
-
),
|
|
283
|
-
/* @__PURE__ */ jsxs3("div", { className: "flex flex-1 flex-col", children: [
|
|
284
|
-
/* @__PURE__ */ jsx3(
|
|
285
|
-
"span",
|
|
286
|
-
{
|
|
287
|
-
className: "text-ui-fg-base font-medium",
|
|
288
|
-
"data-testid": "offer-detail-master-variant-title",
|
|
289
|
-
children: title
|
|
290
|
-
}
|
|
291
|
-
),
|
|
292
|
-
/* @__PURE__ */ jsx3(
|
|
293
|
-
"span",
|
|
294
|
-
{
|
|
295
|
-
className: "text-ui-fg-subtle",
|
|
296
|
-
"data-testid": "offer-detail-master-variant-options",
|
|
297
|
-
children: subtitle
|
|
298
|
-
}
|
|
299
|
-
)
|
|
300
|
-
] }),
|
|
301
|
-
/* @__PURE__ */ jsx3("div", { className: "size-7 flex items-center justify-center", children: /* @__PURE__ */ jsx3(TriangleRightMini, { className: "text-ui-fg-muted rtl:rotate-180" }) })
|
|
302
|
-
] })
|
|
303
|
-
}
|
|
304
|
-
);
|
|
305
|
-
return /* @__PURE__ */ jsxs3(
|
|
306
|
-
Container3,
|
|
307
|
-
{
|
|
308
|
-
className: "p-0",
|
|
309
|
-
"data-testid": "offer-detail-master-variant-section",
|
|
310
|
-
children: [
|
|
311
|
-
/* @__PURE__ */ jsx3("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx3(Heading3, { level: "h2", children: t("offers.detail.productVariant") }) }),
|
|
312
|
-
/* @__PURE__ */ jsx3("div", { className: "txt-small flex flex-col gap-2 px-2 pb-2", children: link ? /* @__PURE__ */ jsx3(
|
|
313
|
-
Link,
|
|
314
|
-
{
|
|
315
|
-
to: link,
|
|
316
|
-
className: "outline-none focus-within:shadow-borders-interactive-with-focus rounded-md [&:hover>div]:bg-ui-bg-component-hover",
|
|
317
|
-
"data-testid": "offer-detail-master-variant-link",
|
|
318
|
-
children: Inner
|
|
319
|
-
}
|
|
320
|
-
) : /* @__PURE__ */ jsx3("div", { children: Inner }) })
|
|
321
|
-
]
|
|
322
|
-
}
|
|
323
|
-
);
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
// src/pages/offers/[id]/_components/offer-store-sidebar.tsx
|
|
327
|
-
import { TriangleRightMini as TriangleRightMini2 } from "@medusajs/icons";
|
|
328
|
-
import { Avatar, Container as Container4, Heading as Heading4 } from "@medusajs/ui";
|
|
329
|
-
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
330
|
-
import { Link as Link2 } from "react-router-dom";
|
|
331
|
-
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
332
|
-
var OfferStoreSidebar = ({ offer }) => {
|
|
333
|
-
const { t } = useTranslation4();
|
|
334
|
-
const seller = offer.seller;
|
|
335
|
-
if (!seller?.id) {
|
|
336
|
-
return null;
|
|
337
|
-
}
|
|
338
|
-
const name = seller.name ?? seller.id;
|
|
339
|
-
const handle = seller.handle ?? "";
|
|
340
|
-
const link = `/stores/${seller.id}`;
|
|
341
|
-
const Inner = /* @__PURE__ */ jsx4(
|
|
342
|
-
"div",
|
|
343
|
-
{
|
|
344
|
-
className: "shadow-elevation-card-rest bg-ui-bg-component rounded-md px-4 py-2 transition-colors",
|
|
345
|
-
"data-testid": "offer-detail-store-sidebar",
|
|
346
|
-
children: /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-3", children: [
|
|
347
|
-
/* @__PURE__ */ jsx4(
|
|
348
|
-
Avatar,
|
|
349
|
-
{
|
|
350
|
-
size: "small",
|
|
351
|
-
fallback: (name?.[0] ?? "?").toUpperCase(),
|
|
352
|
-
"data-testid": "offer-detail-store-avatar"
|
|
353
|
-
}
|
|
354
|
-
),
|
|
355
|
-
/* @__PURE__ */ jsxs4("div", { className: "flex flex-1 flex-col", children: [
|
|
356
|
-
/* @__PURE__ */ jsx4(
|
|
357
|
-
"span",
|
|
358
|
-
{
|
|
359
|
-
className: "text-ui-fg-base font-medium",
|
|
360
|
-
"data-testid": "offer-detail-store-name",
|
|
361
|
-
children: name
|
|
362
|
-
}
|
|
363
|
-
),
|
|
364
|
-
handle && /* @__PURE__ */ jsx4(
|
|
365
|
-
"span",
|
|
366
|
-
{
|
|
367
|
-
className: "text-ui-fg-subtle",
|
|
368
|
-
"data-testid": "offer-detail-store-handle",
|
|
369
|
-
children: handle
|
|
370
|
-
}
|
|
371
|
-
)
|
|
372
|
-
] }),
|
|
373
|
-
/* @__PURE__ */ jsx4("div", { className: "size-7 flex items-center justify-center", children: /* @__PURE__ */ jsx4(TriangleRightMini2, { className: "text-ui-fg-muted rtl:rotate-180" }) })
|
|
374
|
-
] })
|
|
375
|
-
}
|
|
376
|
-
);
|
|
377
|
-
return /* @__PURE__ */ jsxs4(Container4, { className: "p-0", children: [
|
|
378
|
-
/* @__PURE__ */ jsx4("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx4(Heading4, { level: "h2", children: t("offers.detail.store") }) }),
|
|
379
|
-
/* @__PURE__ */ jsx4("div", { className: "txt-small flex flex-col gap-2 px-2 pb-2", children: /* @__PURE__ */ jsx4(
|
|
380
|
-
Link2,
|
|
381
|
-
{
|
|
382
|
-
to: link,
|
|
383
|
-
className: "outline-none focus-within:shadow-borders-interactive-with-focus rounded-md [&:hover>div]:bg-ui-bg-component-hover",
|
|
384
|
-
"data-testid": "offer-detail-store-link",
|
|
385
|
-
children: Inner
|
|
386
|
-
}
|
|
387
|
-
) })
|
|
388
|
-
] });
|
|
389
|
-
};
|
|
390
|
-
|
|
391
|
-
// src/pages/offers/[id]/_components/offer-pricing-section.tsx
|
|
392
|
-
import { Button, Container as Container5, Heading as Heading5 } from "@medusajs/ui";
|
|
393
|
-
import { useState } from "react";
|
|
394
|
-
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
395
|
-
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
396
|
-
var PAGE_STEP = 3;
|
|
397
|
-
var isBaseRow = (price) => {
|
|
398
|
-
const rules = price.price_rules ?? [];
|
|
399
|
-
const extraRules = rules.filter((r) => r.attribute !== "offer_id");
|
|
400
|
-
return extraRules.length === 0;
|
|
401
|
-
};
|
|
402
|
-
var OfferPricingSection = ({ offer }) => {
|
|
403
|
-
const { t } = useTranslation5();
|
|
404
|
-
const prices = (offer.prices ?? []).filter(isBaseRow).sort(
|
|
405
|
-
(a, b) => (a.currency_code ?? "").localeCompare(b.currency_code ?? "")
|
|
406
|
-
);
|
|
407
|
-
const hasPrices = prices.length > 0;
|
|
408
|
-
const [pageSize, setPageSize] = useState(PAGE_STEP);
|
|
409
|
-
const displayPrices = prices.slice(0, pageSize);
|
|
410
|
-
return /* @__PURE__ */ jsxs5(
|
|
411
|
-
Container5,
|
|
412
|
-
{
|
|
413
|
-
className: "flex flex-col divide-y p-0",
|
|
414
|
-
"data-testid": "offer-detail-prices-section",
|
|
415
|
-
children: [
|
|
416
|
-
/* @__PURE__ */ jsx5("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx5(Heading5, { level: "h2", children: t("labels.prices") }) }),
|
|
417
|
-
!hasPrices && /* @__PURE__ */ jsx5(NoRecords, { className: "h-60" }),
|
|
418
|
-
displayPrices.map((price) => /* @__PURE__ */ jsxs5(
|
|
419
|
-
"div",
|
|
420
|
-
{
|
|
421
|
-
className: "txt-small text-ui-fg-subtle flex justify-between px-6 py-4",
|
|
422
|
-
children: [
|
|
423
|
-
/* @__PURE__ */ jsx5("span", { className: "font-medium", children: price.currency_code.toUpperCase() }),
|
|
424
|
-
/* @__PURE__ */ jsx5("span", { children: getLocaleAmount(price.amount, price.currency_code) })
|
|
425
|
-
]
|
|
426
|
-
},
|
|
427
|
-
price.id ?? `${price.currency_code}-${price.amount}`
|
|
428
|
-
)),
|
|
429
|
-
hasPrices && prices.length > PAGE_STEP && /* @__PURE__ */ jsx5("div", { className: "txt-small text-ui-fg-subtle flex items-center justify-end px-6 py-4", children: /* @__PURE__ */ jsx5(
|
|
430
|
-
Button,
|
|
431
|
-
{
|
|
432
|
-
onClick: () => setPageSize((p) => p + PAGE_STEP),
|
|
433
|
-
disabled: pageSize >= prices.length,
|
|
434
|
-
className: "-mr-3 text-blue-500",
|
|
435
|
-
variant: "transparent",
|
|
436
|
-
children: t("actions.showMore")
|
|
437
|
-
}
|
|
438
|
-
) })
|
|
439
|
-
]
|
|
440
|
-
}
|
|
441
|
-
);
|
|
442
|
-
};
|
|
443
|
-
|
|
444
|
-
// src/pages/offers/[id]/offer-detail-page.tsx
|
|
445
|
-
import { Fragment, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
446
|
-
var Root = ({ children }) => {
|
|
447
|
-
const { id } = useParams();
|
|
448
|
-
const initialData = useLoaderData();
|
|
449
|
-
const {
|
|
450
|
-
offer,
|
|
451
|
-
isPending: isLoading,
|
|
452
|
-
isError,
|
|
453
|
-
error
|
|
454
|
-
} = useOffer(
|
|
455
|
-
id,
|
|
456
|
-
{ fields: OFFER_DETAIL_FIELDS },
|
|
457
|
-
{ initialData }
|
|
458
|
-
);
|
|
459
|
-
if (isError) {
|
|
460
|
-
throw error;
|
|
461
|
-
}
|
|
462
|
-
if (isLoading || !offer) {
|
|
463
|
-
return /* @__PURE__ */ jsx6(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 3 });
|
|
464
|
-
}
|
|
465
|
-
const typedOffer = offer;
|
|
466
|
-
return /* @__PURE__ */ jsx6(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs6(TwoColumnPage, { data: typedOffer, hasOutlet: true, children: [
|
|
467
|
-
/* @__PURE__ */ jsxs6(TwoColumnPage.Main, { children: [
|
|
468
|
-
/* @__PURE__ */ jsx6(OfferGeneralSection, { offer: typedOffer }),
|
|
469
|
-
/* @__PURE__ */ jsx6(OfferInventorySection, { offer: typedOffer })
|
|
470
|
-
] }),
|
|
471
|
-
/* @__PURE__ */ jsxs6(TwoColumnPage.Sidebar, { children: [
|
|
472
|
-
/* @__PURE__ */ jsx6(OfferVariantSection, { offer: typedOffer }),
|
|
473
|
-
/* @__PURE__ */ jsx6(OfferStoreSidebar, { offer: typedOffer }),
|
|
474
|
-
/* @__PURE__ */ jsx6(OfferPricingSection, { offer: typedOffer })
|
|
475
|
-
] })
|
|
476
|
-
] }) });
|
|
477
|
-
};
|
|
478
|
-
var OfferDetailPage = Object.assign(Root, {
|
|
479
|
-
Main: TwoColumnPage.Main,
|
|
480
|
-
Sidebar: TwoColumnPage.Sidebar,
|
|
481
|
-
General: OfferGeneralSection,
|
|
482
|
-
Inventory: OfferInventorySection,
|
|
483
|
-
Variant: OfferVariantSection,
|
|
484
|
-
StoreSidebar: OfferStoreSidebar,
|
|
485
|
-
Pricing: OfferPricingSection
|
|
486
|
-
});
|
|
487
|
-
var Component2 = Root;
|
|
488
|
-
|
|
489
|
-
// src/pages/offers/[id]/breadcrumb.tsx
|
|
490
|
-
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
491
|
-
var Breadcrumb = (props) => {
|
|
492
|
-
const { id } = props.params || {};
|
|
493
|
-
const { offer } = useOffer(
|
|
494
|
-
id,
|
|
495
|
-
{ fields: OFFER_DETAIL_FIELDS },
|
|
496
|
-
{ initialData: props.data, enabled: Boolean(id) }
|
|
497
|
-
);
|
|
498
|
-
if (!offer) return null;
|
|
499
|
-
return /* @__PURE__ */ jsx7("span", { children: offer.sku ?? id });
|
|
500
|
-
};
|
|
501
|
-
export {
|
|
502
|
-
Breadcrumb,
|
|
503
|
-
Component2 as Component,
|
|
504
|
-
OfferDetailPage
|
|
505
|
-
};
|
package/dist/chunk-PT5PLV3N.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
// src/pages/offers/common/constants.ts
|
|
2
|
-
var OFFERS_PAGE_SIZE = 10;
|
|
3
|
-
var OFFER_DETAIL_FIELDS = [
|
|
4
|
-
"id",
|
|
5
|
-
"sku",
|
|
6
|
-
"ean",
|
|
7
|
-
"upc",
|
|
8
|
-
"variant_id",
|
|
9
|
-
"seller_id",
|
|
10
|
-
"shipping_profile_id",
|
|
11
|
-
"metadata",
|
|
12
|
-
"created_at",
|
|
13
|
-
"updated_at",
|
|
14
|
-
"deleted_at",
|
|
15
|
-
"product_variant.id",
|
|
16
|
-
"product_variant.title",
|
|
17
|
-
"product_variant.sku",
|
|
18
|
-
"product_variant.product_id",
|
|
19
|
-
"product_variant.product.id",
|
|
20
|
-
"product_variant.product.title",
|
|
21
|
-
"product_variant.product.thumbnail",
|
|
22
|
-
"shipping_profile.id",
|
|
23
|
-
"shipping_profile.name",
|
|
24
|
-
"shipping_profile.type",
|
|
25
|
-
"prices.id",
|
|
26
|
-
"prices.amount",
|
|
27
|
-
"prices.currency_code",
|
|
28
|
-
"prices.min_quantity",
|
|
29
|
-
"prices.max_quantity",
|
|
30
|
-
"prices.rules_count",
|
|
31
|
-
"prices.price_rules.attribute",
|
|
32
|
-
"prices.price_rules.value",
|
|
33
|
-
"inventory_item_link.id",
|
|
34
|
-
"inventory_item_link.required_quantity",
|
|
35
|
-
"inventory_item_link.inventory_item_id",
|
|
36
|
-
"inventory_item_link.inventory_item.id",
|
|
37
|
-
"inventory_item_link.inventory_item.sku",
|
|
38
|
-
"inventory_item_link.inventory_item.title",
|
|
39
|
-
"inventory_item_link.inventory_item.location_levels.id",
|
|
40
|
-
"inventory_item_link.inventory_item.location_levels.location_id",
|
|
41
|
-
"inventory_item_link.inventory_item.location_levels.stocked_quantity",
|
|
42
|
-
"inventory_item_link.inventory_item.location_levels.reserved_quantity",
|
|
43
|
-
"inventory_item_link.inventory_item.location_levels.incoming_quantity",
|
|
44
|
-
"inventory_item_link.inventory_item.location_levels.available_quantity",
|
|
45
|
-
"seller.id",
|
|
46
|
-
"seller.name",
|
|
47
|
-
"seller.handle",
|
|
48
|
-
"seller.email"
|
|
49
|
-
].join(",");
|
|
50
|
-
var OFFER_LIST_FIELDS = [
|
|
51
|
-
"id",
|
|
52
|
-
"sku",
|
|
53
|
-
"variant_id",
|
|
54
|
-
"seller_id",
|
|
55
|
-
"created_at",
|
|
56
|
-
"updated_at",
|
|
57
|
-
"deleted_at",
|
|
58
|
-
"product_variant.id",
|
|
59
|
-
"product_variant.title",
|
|
60
|
-
"product_variant.product_id",
|
|
61
|
-
"product_variant.product.id",
|
|
62
|
-
"product_variant.product.title",
|
|
63
|
-
"product_variant.product.status",
|
|
64
|
-
"product_variant.product.thumbnail",
|
|
65
|
-
"product_variant.product.categories.id",
|
|
66
|
-
"product_variant.product.categories.name",
|
|
67
|
-
"shipping_profile.id",
|
|
68
|
-
"shipping_profile.name",
|
|
69
|
-
"seller.id",
|
|
70
|
-
"seller.name",
|
|
71
|
-
"seller.handle"
|
|
72
|
-
].join(",");
|
|
73
|
-
|
|
74
|
-
export {
|
|
75
|
-
OFFERS_PAGE_SIZE,
|
|
76
|
-
OFFER_DETAIL_FIELDS,
|
|
77
|
-
OFFER_LIST_FIELDS
|
|
78
|
-
};
|
package/dist/loader-OU7SKXOD.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
OFFER_DETAIL_FIELDS
|
|
3
|
-
} from "./chunk-PT5PLV3N.js";
|
|
4
|
-
import {
|
|
5
|
-
offerQueryKeys
|
|
6
|
-
} from "./chunk-UIVWOKWT.js";
|
|
7
|
-
import {
|
|
8
|
-
queryClient
|
|
9
|
-
} from "./chunk-RHKRREUU.js";
|
|
10
|
-
import "./chunk-ZA2KFUFR.js";
|
|
11
|
-
import {
|
|
12
|
-
sdk
|
|
13
|
-
} from "./chunk-ZBWL72TB.js";
|
|
14
|
-
import "./chunk-NBMM2TZK.js";
|
|
15
|
-
|
|
16
|
-
// src/pages/offers/[id]/loader.ts
|
|
17
|
-
var offerDetailQuery = (id) => ({
|
|
18
|
-
queryKey: offerQueryKeys.detail(id, { fields: OFFER_DETAIL_FIELDS }),
|
|
19
|
-
queryFn: async () => sdk.admin.offers.$id.query({ $id: id, fields: OFFER_DETAIL_FIELDS })
|
|
20
|
-
});
|
|
21
|
-
var loader = async ({ params }) => {
|
|
22
|
-
const id = params.id;
|
|
23
|
-
const query = offerDetailQuery(id);
|
|
24
|
-
return queryClient.ensureQueryData(query);
|
|
25
|
-
};
|
|
26
|
-
export {
|
|
27
|
-
loader
|
|
28
|
-
};
|