@mercurjs/vendor 2.2.1 → 2.3.0-canary.1
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/[id]-3TCOLUQH.js +197 -0
- package/dist/{[id]-YB3DBBXT.js → [id]-4QVLDR3S.js} +13 -10
- package/dist/{[id]-RJRAZN3T.js → [id]-4VX7CTRZ.js} +8 -6
- package/dist/{[id]-OE5TUWNF.js → [id]-5FP6JZM3.js} +9 -7
- package/dist/[id]-6FEVCKQU.js +949 -0
- package/dist/{[id]-47SUX5X3.js → [id]-7QVJAIDU.js} +13 -10
- package/dist/{[id]-BHU5BSQT.js → [id]-CFVBH66J.js} +20 -17
- package/dist/{[id]-SKU5SFBG.js → [id]-HAJ3735Z.js} +137 -204
- package/dist/{[id]-NGRV5I2A.js → [id]-PBNGQSNY.js} +9 -7
- package/dist/[id]-QGZ26C6D.js +286 -0
- package/dist/{[id]-ZD5HBP2R.js → [id]-RAJUZUNH.js} +13 -10
- package/dist/[id]-RJ3MUR4M.js +697 -0
- package/dist/{[id]-PIB2DEVI.js → [id]-RRVYKA7U.js} +12 -9
- package/dist/{[id]-BPQNQFVE.js → [id]-Y4HRAAV2.js} +75 -124
- package/dist/{[province_id]-CUWKNPBW.js → [province_id]-VWN4OOGM.js} +9 -7
- package/dist/{add-MYV5IOGP.js → add-57LM6WKL.js} +157 -227
- package/dist/{add-YEUSE5QA.js → add-7HIVF77P.js} +10 -8
- package/dist/{add-customer-groups-Q3F357F2.js → add-customer-groups-VJYI5J5Z.js} +8 -6
- package/dist/{add-products-WVNYODC6.js → add-products-XWU5ZUTZ.js} +13 -10
- package/dist/{add-promotions-F62YE3BE.js → add-promotions-DOJS6CEE.js} +27 -9
- package/dist/{add-to-campaign-WBSCTSKW.js → add-to-campaign-B3PGGNFA.js} +3 -2
- package/dist/{address-ZMZ4ST5T.js → address-X4TXBPUG.js} +7 -5
- package/dist/{adjust-inventory-QUGKDXOC.js → adjust-inventory-2OKDFVLK.js} +2 -3
- package/dist/{allocate-items-7NSBGXSF.js → allocate-items-QAYROQMK.js} +4 -2
- package/dist/{areas-EJCZBY2E.js → areas-WQ44GWQO.js} +2 -2
- package/dist/{breadcrumb-M657ZCG6.js → breadcrumb-4I7MU2QY.js} +1 -1
- package/dist/{breadcrumb-KNBZ3JNR.js → breadcrumb-7ZFC43R4.js} +1 -1
- package/dist/{breadcrumb-C7M5PG2Q.js → breadcrumb-HMW2K4DW.js} +7 -5
- package/dist/{breadcrumb-KLNC72RI.js → breadcrumb-MH2L34OD.js} +2 -2
- package/dist/{breadcrumb-QPV566YX.js → breadcrumb-Q7FS3IDL.js} +8 -6
- package/dist/{breadcrumb-JWFTKHLE.js → breadcrumb-RQ52GELM.js} +2 -1
- package/dist/{breadcrumb-M6NW3DRQ.js → breadcrumb-WBUUK3AP.js} +1 -1
- package/dist/breadcrumb-XCPUUZUO.js +26 -0
- package/dist/{breadcrumb-MXYWEBK6.js → breadcrumb-Z2QUGZM3.js} +7 -5
- package/dist/{campaigns-BPLAE6QQ.js → campaigns-LIPKZKI7.js} +5 -4
- package/dist/{categories-H2XAJCGC.js → categories-D2U6VLH5.js} +2 -2
- package/dist/{chunk-4RVWITM2.js → chunk-3JWHERV7.js} +76 -23
- package/dist/{chunk-BCXREBMV.js → chunk-4ATO577Q.js} +1 -1
- package/dist/{chunk-VHFKJLDH.js → chunk-4JVORTN4.js} +1 -1
- package/dist/{chunk-HHD2VUED.js → chunk-4UKAKFKL.js} +1 -1
- package/dist/{chunk-3L7WHWKB.js → chunk-5DRYAIOY.js} +3 -3
- package/dist/{chunk-7TIZP4YG.js → chunk-5RWK4U4V.js} +26 -0
- package/dist/{chunk-XQUF3WIS.js → chunk-5ZHZVKNQ.js} +4 -0
- package/dist/{chunk-IWAL74YU.js → chunk-6GQLSWOO.js} +1 -1
- package/dist/{chunk-HCUIYIIY.js → chunk-6OZQTHCR.js} +1 -1
- package/dist/chunk-6XMUN2BZ.js +0 -0
- package/dist/{chunk-RLRWDHME.js → chunk-6YQR2AWM.js} +3 -20
- package/dist/{chunk-26OOAKQ6.js → chunk-7H6NMQ6U.js} +8 -1
- package/dist/{chunk-OKJHUQBY.js → chunk-7JVJIAWS.js} +17 -29
- package/dist/chunk-7LIENHWP.js +26 -0
- package/dist/{chunk-EPSRO7C5.js → chunk-7LIT4GXO.js} +2 -2
- package/dist/chunk-7POOMBIN.js +108 -0
- package/dist/{chunk-PF7R7LMW.js → chunk-AHR2FIMC.js} +22 -0
- package/dist/{chunk-EJBOBB4B.js → chunk-AQT2G6K2.js} +46 -46
- package/dist/{chunk-UEKRQS5Q.js → chunk-ATYOOL7K.js} +2 -2
- package/dist/chunk-BR6PEFXX.js +27 -0
- package/dist/{chunk-SDFZUBS3.js → chunk-CDZALZ5E.js} +1 -1
- package/dist/{chunk-3XW55FZY.js → chunk-CRVVPIFZ.js} +6 -6
- package/dist/{chunk-72HQFLZI.js → chunk-CSEB2RNO.js} +1 -1
- package/dist/{chunk-X6ZQMFCT.js → chunk-DAOSTHVB.js} +44 -25
- package/dist/{chunk-UUBGLS7U.js → chunk-EWJTXSKI.js} +211 -36
- package/dist/chunk-FKKI62AC.js +282 -0
- package/dist/{chunk-VBKW4GWP.js → chunk-FPBXQIFJ.js} +1 -1
- package/dist/{chunk-SI55QRZ4.js → chunk-G5NNOOHR.js} +59 -6
- package/dist/chunk-G6J5ZKM3.js +31 -0
- package/dist/{chunk-U5V6HNVW.js → chunk-GL3XVUAY.js} +1 -1
- package/dist/{chunk-RJE4MAYB.js → chunk-GYLRZXWS.js} +1 -1
- package/dist/{chunk-SVYBMLVN.js → chunk-HHCLMWXT.js} +1 -1
- package/dist/{chunk-YUQA6TUA.js → chunk-JOCO7JOB.js} +3 -3
- package/dist/{chunk-OGUTFP6B.js → chunk-JYUHDM23.js} +13 -51
- package/dist/{chunk-QB7BI4B7.js → chunk-K2DXXPNA.js} +153 -86
- package/dist/{chunk-XG76XXM2.js → chunk-KKMA6VPG.js} +1 -1
- package/dist/chunk-KVAD5JGS.js +11 -0
- package/dist/{chunk-YRZ53SAN.js → chunk-L26J5MO2.js} +2 -2
- package/dist/{chunk-63XYNXUL.js → chunk-LYP7XK5O.js} +1 -1
- package/dist/chunk-MVVFD2JT.js +51 -0
- package/dist/{chunk-RVFPWOR2.js → chunk-MY5H7C3A.js} +2 -2
- package/dist/{chunk-3GSR455R.js → chunk-NQMHP2LC.js} +1 -1
- package/dist/{chunk-2S2WK2OG.js → chunk-NV2RZAHW.js} +1 -10
- package/dist/{chunk-4IIATKG7.js → chunk-O7OWHKWA.js} +6 -6
- package/dist/{chunk-GIKVFOQL.js → chunk-OJCMHDZI.js} +2 -2
- package/dist/chunk-QLOJNFUE.js +53 -0
- package/dist/{chunk-GTNCNKTC.js → chunk-RBWIHKUF.js} +1 -1
- package/dist/{chunk-XVBONKRV.js → chunk-RCMKDW6O.js} +1 -1
- package/dist/{chunk-WJF24CGA.js → chunk-RDLVH6CM.js} +33 -5
- package/dist/chunk-SF5N2HX4.js +268 -0
- package/dist/{chunk-MQR26KYT.js → chunk-SYHA2RVL.js} +1 -1
- package/dist/{chunk-ZXDMPIXN.js → chunk-U3OEGBHH.js} +2 -2
- package/dist/chunk-UTGI6R2X.js +334 -0
- package/dist/{chunk-VBRTC2VU.js → chunk-VAFGNDAP.js} +4 -3
- package/dist/{chunk-4UQMRTSC.js → chunk-VH3TGSWE.js} +46 -2
- package/dist/{chunk-ZEKV7LGF.js → chunk-VV2K3EBF.js} +1 -1
- package/dist/{chunk-S2VYK3YC.js → chunk-WI2ZAFZF.js} +1 -1
- package/dist/chunk-WP3B4NEU.js +32 -0
- package/dist/{chunk-DY3XQPHC.js → chunk-WW2XYOHJ.js} +5 -3
- package/dist/{chunk-IVYIMGQC.js → chunk-X44P463Q.js} +45 -10
- package/dist/{chunk-FEVCBT24.js → chunk-X4G64W5Q.js} +2 -2
- package/dist/{chunk-R5KN6IFB.js → chunk-XHWBTV72.js} +2 -2
- package/dist/{chunk-OVHIUZ3K.js → chunk-XQ47NZJC.js} +1 -1
- package/dist/{chunk-LN7XHEPJ.js → chunk-YT4RAUWM.js} +2 -2
- package/dist/{chunk-6VKJM537.js → chunk-ZK4DIDXG.js} +1 -1
- package/dist/{collections-52DJLHWW.js → collections-5TH7H2QP.js} +14 -13
- package/dist/{configuration-UMRBE5RQ.js → configuration-QK2FW2CV.js} +2 -2
- package/dist/{configuration-QEDVL2WF.js → configuration-RYH3VUBV.js} +15 -48
- package/dist/{create-ALUKAFJS.js → create-5M66YUYY.js} +2 -2
- package/dist/{create-ABRPUMHQ.js → create-A6KZEZMH.js} +7 -6
- package/dist/{create-LYNWCP2N.js → create-BTODQ4T4.js} +6 -5
- package/dist/{create-2I3GAX4C.js → create-FI6H4AJE.js} +16 -7
- package/dist/{create-6IRD2CVC.js → create-GF76Z5I7.js} +15 -13
- package/dist/create-ICCAEOSA.js +343 -0
- package/dist/{create-NTZH45DW.js → create-JZLU44WB.js} +14 -12
- package/dist/{create-GEYXN6SW.js → create-ME43PNL6.js} +7 -5
- package/dist/{create-MFGMTZ5A.js → create-MIYJCLAJ.js} +8 -6
- package/dist/{create-7SJ5DSQK.js → create-PRDQJ5WI.js} +20 -17
- package/dist/{create-S7VYYTUD.js → create-Q6B6JR4K.js} +10 -8
- package/dist/{create-5RQ32XPT.js → create-SKQAJNDF.js} +287 -287
- package/dist/{create-7FT7N2NH.js → create-WPN3OUJU.js} +3 -2
- package/dist/{create-H77ZUZG5.js → create-XBGN6XEF.js} +10 -8
- package/dist/{create-G76MVCJU.js → create-ZVGYET6W.js} +5 -4
- package/dist/customer-availability-VAOKKCTK.js +164 -0
- package/dist/{customer-group-add-customers-T7OYWJCB.js → customer-group-add-customers-BSMUKWVO.js} +1 -1
- package/dist/{customer-group-detail-E7HRZ3LE.js → customer-group-detail-QCPC2YWK.js} +2 -2
- package/dist/{customer-groups-26HJ55MF.js → customer-groups-6WGUNFHG.js} +2 -2
- package/dist/{customers-EXFRZX5F.js → customers-7OGYQSGA.js} +2 -2
- package/dist/edit-2BKYNGYL.js +262 -0
- package/dist/{edit-WHGYNDEB.js → edit-3S3EH372.js} +20 -17
- package/dist/{edit-MPOTIGUY.js → edit-4WP5SGH6.js} +23 -39
- package/dist/{edit-QBUYHSE7.js → edit-7D2OZBJS.js} +8 -6
- package/dist/{edit-2RN3OT27.js → edit-7T2JMZG3.js} +7 -56
- package/dist/edit-AK4E63X6.js +179 -0
- package/dist/{edit-NB5VN2E4.js → edit-DRT6VOAA.js} +5 -4
- package/dist/{edit-EGBVEWXS.js → edit-GBDHDJK4.js} +9 -7
- package/dist/{edit-TIBQEQVV.js → edit-P7FNRVGB.js} +10 -8
- package/dist/{edit-6VJWRZHQ.js → edit-PZN7UAJI.js} +7 -5
- package/dist/{edit-M4AP65HO.js → edit-RNSXXJVU.js} +8 -6
- package/dist/edit-SKRFQ4WN.js +81 -0
- package/dist/{edit-H5FJ45ZT.js → edit-ZM7NJVRE.js} +1 -1
- package/dist/{edit-budget-PYPHUJPW.js → edit-budget-MOZETGZV.js} +1 -1
- package/dist/{edit-inventory-item-BCVECCLT.js → edit-inventory-item-HFGHS732.js} +17 -14
- package/dist/{edit-inventory-item-attributes-GWEMP67O.js → edit-inventory-item-attributes-5ORZJF4I.js} +18 -1
- package/dist/{edit-price-GLAEAO7R.js → edit-price-KY7LX5QA.js} +2 -2
- package/dist/edit-reservation-LSYQUDYQ.js +294 -0
- package/dist/{edit-stock-E3PM2YOP.js → edit-stock-77VKJR4Z.js} +2 -2
- package/dist/extension-targets.d.ts +6 -3
- package/dist/{fulfillment-HDU7GATG.js → fulfillment-DEGKZL42.js} +7 -5
- package/dist/{fulfillment-providers-6RZNNT7U.js → fulfillment-providers-LDFPZGNX.js} +12 -11
- package/dist/index.css +17 -14
- package/dist/index.js +265 -155
- package/dist/{inventory-XJ2E6DPC.js → inventory-CMIRAJJY.js} +2 -2
- package/dist/{inventory-CKA34HWM.js → inventory-RKAUTQAU.js} +2 -2
- package/dist/{invite-755AJC3M.js → invite-KAHF2MCE.js} +7 -5
- package/dist/{invite-FD2TXZTW.js → invite-S5O7LFEY.js} +10 -8
- package/dist/{loader-UUSAVCK6.js → loader-3BXYSKPT.js} +1 -1
- package/dist/{loader-B4T2VBGV.js → loader-CF54CDM6.js} +2 -2
- package/dist/{login-UGKYRKMD.js → login-CRSALS6Y.js} +9 -7
- package/dist/manage-items-63FPRK7Z.js +302 -0
- package/dist/{manage-locations-PRQI5TI4.js → manage-locations-5B4HP6NQ.js} +24 -5
- package/dist/{media-TGFAHFBV.js → media-74PEXOLV.js} +8 -6
- package/dist/{media-2KEHXPRU.js → media-NKCXFG6X.js} +11 -9
- package/dist/{metadata-7JWZ4VFM.js → metadata-22BCBKVE.js} +7 -5
- package/dist/{metadata-BQQFHVKF.js → metadata-E3BDAMIO.js} +7 -5
- package/dist/{metadata-5TVRCKWX.js → metadata-FRXIY35J.js} +7 -5
- package/dist/{metadata-4ZZ4ZIWJ.js → metadata-L6IA2Z26.js} +7 -5
- package/dist/metadata-WN6Y35RV.js +69 -0
- package/dist/{metadata-G73TILNE.js → metadata-ZZMJNWS3.js} +7 -5
- package/dist/{offer-create-page-PPXRYET4.js → offer-create-page-N5CKYGSS.js} +12 -9
- package/dist/{offer-detail-page-BFGKAS4L.js → offer-detail-page-AJG6TMJC.js} +3 -3
- package/dist/{offer-variant-detail-page-BLHRF4MK.js → offer-variant-detail-page-CEOS2MVM.js} +40 -8
- package/dist/{offers-7I67VSHI.js → offers-WFJ6UGVG.js} +15 -11
- package/dist/{onboarding-7MURQYXX.js → onboarding-2AZ2KEWJ.js} +7 -5
- package/dist/{orders-D7NZNDUS.js → orders-NWYLN6BE.js} +13 -12
- package/dist/{organization-T6ZTYMMW.js → organization-PAWIWKHV.js} +9 -7
- package/dist/pages/index.d.ts +9 -1
- package/dist/pages/index.js +57 -48
- package/dist/{payment-details-UQ65D5AY.js → payment-details-O57HNHWS.js} +7 -5
- package/dist/{payouts-A336D2HG.js → payouts-26ZOYDRP.js} +2 -2
- package/dist/{price-lists-3WRT4TR2.js → price-lists-U5ASDHMI.js} +5 -8
- package/dist/{pricing-3NLEJYRP.js → pricing-C425JTFQ.js} +2 -2
- package/dist/{pricing-CPPIL627.js → pricing-PDOCJEDS.js} +9 -7
- package/dist/{product-tags-7DTA73YT.js → product-tags-MMQ4ZR4W.js} +20 -17
- package/dist/{product-types-OB26NF2D.js → product-types-CMI33S32.js} +3 -4
- package/dist/{product-variant-detail-4DDE6RJ5.js → product-variant-detail-D73ILATK.js} +7 -5
- package/dist/{product-variant-edit-SAZUI4E3.js → product-variant-edit-XN6WGKI2.js} +10 -8
- package/dist/{products-RYXTZFGT.js → products-OZJHGW2K.js} +19 -16
- package/dist/{products-GJ2KTGBZ.js → products-VWH5TAFY.js} +13 -10
- package/dist/{professional-details-UN5B4YDJ.js → professional-details-ZJT6YKZB.js} +7 -5
- package/dist/{profile-6MIDTK52.js → profile-EU46MXFW.js} +7 -5
- package/dist/{promotions-SQ47TCZL.js → promotions-ALWQ7J7A.js} +5 -5
- package/dist/{receive-ZG6FFN7H.js → receive-RRZK3FP2.js} +4 -3
- package/dist/{refund-KJX74N6T.js → refund-FLCZAMPR.js} +3 -2
- package/dist/{register-RDSK4E4D.js → register-C6ON6OL2.js} +9 -7
- package/dist/reservations-C326XEVA.js +350 -0
- package/dist/{reset-password-C462PDN2.js → reset-password-ASLKY3GK.js} +1 -1
- package/dist/respond-IPRDCH57.js +132 -0
- package/dist/{return-reasons-MY63HNF6.js → return-reasons-2BUKIQBO.js} +9 -7
- package/dist/reviews-LBLCFBRQ.js +14 -0
- package/dist/{settings-TJ6HPHMK.js → settings-Q5GAL2LK.js} +28 -25
- package/dist/{shipment-6CTA2GHU.js → shipment-XOU6F7AS.js} +7 -5
- package/dist/{shipping-TKKMYQHJ.js → shipping-IMCP7UDV.js} +2 -2
- package/dist/{shipping-profile-CFISOMTE.js → shipping-profile-7P3RPEIJ.js} +1 -1
- package/dist/{shipping-profiles-5UAZNYKJ.js → shipping-profiles-647FLCNK.js} +9 -7
- package/dist/{stock-465GEUY3.js → stock-D3HCV5UR.js} +22 -8
- package/dist/{store-2PQB2XWE.js → store-XBNFP6O4.js} +8 -6
- package/dist/{store-closure-DYW54VHB.js → store-closure-55EUSKE4.js} +7 -5
- package/dist/{store-select-6A5YR7WH.js → store-select-DEOEGT2O.js} +8 -6
- package/dist/{team-GXEBC57M.js → team-7MJ3NJUT.js} +10 -8
- package/package.json +12 -9
- package/dist/[id]-HEVGSOAV.js +0 -598
- package/dist/[id]-MU7A6SZO.js +0 -526
- package/dist/chunk-2ZFELO2L.js +0 -13
- package/dist/chunk-6IJMSVC6.js +0 -16
- package/dist/chunk-BNOKKKUU.js +0 -88
- package/dist/chunk-BX3JE7IE.js +0 -247
- package/dist/edit-4B364HGZ.js +0 -222
- package/dist/edit-735HBYH2.js +0 -103
- package/dist/edit-SQU5UOGE.js +0 -105
- package/dist/{chunk-CYE7HVAV.js → chunk-SCJBJQCL.js} +3 -3
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SectionRow
|
|
3
|
+
} from "./chunk-4TLP3TAA.js";
|
|
4
|
+
import {
|
|
5
|
+
TwoColumnPage
|
|
6
|
+
} from "./chunk-YV6MK4PZ.js";
|
|
7
|
+
import {
|
|
8
|
+
TwoColumnPageSkeleton
|
|
9
|
+
} from "./chunk-INNFZYX2.js";
|
|
10
|
+
import {
|
|
11
|
+
ActionMenu
|
|
12
|
+
} from "./chunk-BDGZ4EQO.js";
|
|
13
|
+
import "./chunk-LAVHRER2.js";
|
|
14
|
+
import "./chunk-Y7QKP6QU.js";
|
|
15
|
+
import "./chunk-6YQR2AWM.js";
|
|
16
|
+
import "./chunk-K5324KIX.js";
|
|
17
|
+
import "./chunk-FV76G2D7.js";
|
|
18
|
+
import "./chunk-GHDLST2P.js";
|
|
19
|
+
import "./chunk-YVYYOBAE.js";
|
|
20
|
+
import "./chunk-L2NJPDUD.js";
|
|
21
|
+
import "./chunk-7LIENHWP.js";
|
|
22
|
+
import "./chunk-NV2RZAHW.js";
|
|
23
|
+
import "./chunk-MR6REQKT.js";
|
|
24
|
+
import "./chunk-EPSDO2MJ.js";
|
|
25
|
+
import "./chunk-BHEU34FL.js";
|
|
26
|
+
import "./chunk-W34KDYZA.js";
|
|
27
|
+
import "./chunk-II3CLUXA.js";
|
|
28
|
+
import "./chunk-OCYVN77Z.js";
|
|
29
|
+
import "./chunk-J2XUEO2E.js";
|
|
30
|
+
import "./chunk-DETQ6IBQ.js";
|
|
31
|
+
import "./chunk-VWPNMEOE.js";
|
|
32
|
+
import {
|
|
33
|
+
useStockLocation
|
|
34
|
+
} from "./chunk-O72AIZUN.js";
|
|
35
|
+
import "./chunk-GL3XVUAY.js";
|
|
36
|
+
import "./chunk-AHR2FIMC.js";
|
|
37
|
+
import "./chunk-JYUHDM23.js";
|
|
38
|
+
import {
|
|
39
|
+
useReservationItem
|
|
40
|
+
} from "./chunk-7POOMBIN.js";
|
|
41
|
+
import "./chunk-4U2BLH45.js";
|
|
42
|
+
import {
|
|
43
|
+
useInventoryItem
|
|
44
|
+
} from "./chunk-EMUCGKHP.js";
|
|
45
|
+
import "./chunk-A5DJIOHN.js";
|
|
46
|
+
import "./chunk-RHKRREUU.js";
|
|
47
|
+
import "./chunk-ZA2KFUFR.js";
|
|
48
|
+
import "./chunk-DTGEFKK4.js";
|
|
49
|
+
import "./chunk-NBMM2TZK.js";
|
|
50
|
+
|
|
51
|
+
// src/pages/reservations/[id]/index.tsx
|
|
52
|
+
import { useParams } from "react-router-dom";
|
|
53
|
+
import { useLinkQuery, WidgetZone } from "@mercurjs/dashboard-shared";
|
|
54
|
+
|
|
55
|
+
// src/pages/reservations/[id]/_components/reservation-general-section/reservation-general-section.tsx
|
|
56
|
+
import { Container, Heading, Text } from "@medusajs/ui";
|
|
57
|
+
import { DisplayExtensionZone, DisplayField } from "@mercurjs/dashboard-shared";
|
|
58
|
+
import { PencilSquare } from "@medusajs/icons";
|
|
59
|
+
import { useTranslation } from "react-i18next";
|
|
60
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
61
|
+
var ReservationGeneralSection = ({
|
|
62
|
+
reservation
|
|
63
|
+
}) => {
|
|
64
|
+
const { t } = useTranslation();
|
|
65
|
+
const { inventory_item: inventoryItem } = useInventoryItem(
|
|
66
|
+
reservation.inventory_item_id,
|
|
67
|
+
{
|
|
68
|
+
fields: "*location_levels"
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
const { stock_location: location } = useStockLocation(reservation.location_id);
|
|
72
|
+
const locationLevel = inventoryItem?.location_levels?.find(
|
|
73
|
+
(l) => l.location_id === reservation.location_id
|
|
74
|
+
);
|
|
75
|
+
return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", children: [
|
|
76
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
77
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "reservation", zone: "general", id: "title", data: reservation, children: /* @__PURE__ */ jsx(Heading, { children: t("inventory.reservation.header", {
|
|
78
|
+
itemName: inventoryItem?.title ?? inventoryItem?.sku
|
|
79
|
+
}) }) }),
|
|
80
|
+
/* @__PURE__ */ jsx(
|
|
81
|
+
ActionMenu,
|
|
82
|
+
{
|
|
83
|
+
groups: [
|
|
84
|
+
{
|
|
85
|
+
actions: [
|
|
86
|
+
{
|
|
87
|
+
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
88
|
+
label: t("actions.edit"),
|
|
89
|
+
to: `edit`
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
)
|
|
96
|
+
] }),
|
|
97
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "reservation", zone: "general", id: "item_id", data: reservation, children: /* @__PURE__ */ jsx(
|
|
98
|
+
SectionRow,
|
|
99
|
+
{
|
|
100
|
+
title: t("inventory.reservation.itemId"),
|
|
101
|
+
value: inventoryItem?.sku ?? inventoryItem?.id
|
|
102
|
+
}
|
|
103
|
+
) }),
|
|
104
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "reservation", zone: "general", id: "description", data: reservation, children: /* @__PURE__ */ jsx(
|
|
105
|
+
SectionRow,
|
|
106
|
+
{
|
|
107
|
+
title: t("inventory.reservation.description"),
|
|
108
|
+
value: reservation.description
|
|
109
|
+
}
|
|
110
|
+
) }),
|
|
111
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "reservation", zone: "general", id: "location", data: reservation, children: /* @__PURE__ */ jsx(
|
|
112
|
+
SectionRow,
|
|
113
|
+
{
|
|
114
|
+
title: t("inventory.reservation.location"),
|
|
115
|
+
value: location?.name
|
|
116
|
+
}
|
|
117
|
+
) }),
|
|
118
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "reservation", zone: "general", id: "stocked_quantity", data: reservation, children: /* @__PURE__ */ jsx(
|
|
119
|
+
SectionRow,
|
|
120
|
+
{
|
|
121
|
+
title: t("inventory.reservation.inStockAtLocation"),
|
|
122
|
+
value: /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: locationLevel?.stocked_quantity ?? "-" })
|
|
123
|
+
}
|
|
124
|
+
) }),
|
|
125
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "reservation", zone: "general", id: "available_quantity", data: reservation, children: /* @__PURE__ */ jsx(
|
|
126
|
+
SectionRow,
|
|
127
|
+
{
|
|
128
|
+
title: t("inventory.reservation.availableAtLocation"),
|
|
129
|
+
value: /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: locationLevel?.available_quantity ?? "-" })
|
|
130
|
+
}
|
|
131
|
+
) }),
|
|
132
|
+
/* @__PURE__ */ jsx(DisplayField, { model: "reservation", zone: "general", id: "reserved_quantity", data: reservation, children: /* @__PURE__ */ jsx(
|
|
133
|
+
SectionRow,
|
|
134
|
+
{
|
|
135
|
+
title: t("inventory.reservation.reservedAtLocation"),
|
|
136
|
+
value: /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: locationLevel?.reserved_quantity ?? "-" })
|
|
137
|
+
}
|
|
138
|
+
) }),
|
|
139
|
+
/* @__PURE__ */ jsx(
|
|
140
|
+
DisplayExtensionZone,
|
|
141
|
+
{
|
|
142
|
+
model: "reservation",
|
|
143
|
+
zone: "general",
|
|
144
|
+
data: reservation,
|
|
145
|
+
builtInFieldIds: [
|
|
146
|
+
"title",
|
|
147
|
+
"item_id",
|
|
148
|
+
"description",
|
|
149
|
+
"location",
|
|
150
|
+
"stocked_quantity",
|
|
151
|
+
"available_quantity",
|
|
152
|
+
"reserved_quantity"
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
)
|
|
156
|
+
] });
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
// src/pages/reservations/[id]/_components/reservation-inventory-section/reservation-inventory-section.tsx
|
|
160
|
+
import { Container as Container2, Heading as Heading2 } from "@medusajs/ui";
|
|
161
|
+
import { BuildingStorefront } from "@medusajs/icons";
|
|
162
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
163
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
164
|
+
var ReservationInventorySection = ({
|
|
165
|
+
inventoryItem
|
|
166
|
+
}) => {
|
|
167
|
+
const { t } = useTranslation2();
|
|
168
|
+
const stockedQuantity = inventoryItem.location_levels?.reduce(
|
|
169
|
+
(acc, level) => acc + level.stocked_quantity,
|
|
170
|
+
0
|
|
171
|
+
) ?? 0;
|
|
172
|
+
const reservedQuantity = inventoryItem.location_levels?.reduce(
|
|
173
|
+
(acc, level) => acc + level.reserved_quantity,
|
|
174
|
+
0
|
|
175
|
+
) ?? 0;
|
|
176
|
+
const availableQuantity = stockedQuantity - reservedQuantity;
|
|
177
|
+
const getQuantityFormat = (quantity) => t("inventory.quantityAcrossLocations", {
|
|
178
|
+
quantity,
|
|
179
|
+
locations: inventoryItem.location_levels?.length ?? 0
|
|
180
|
+
});
|
|
181
|
+
return /* @__PURE__ */ jsxs2(
|
|
182
|
+
Container2,
|
|
183
|
+
{
|
|
184
|
+
className: "divide-y p-0",
|
|
185
|
+
"data-testid": "reservation-inventory-section",
|
|
186
|
+
children: [
|
|
187
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
188
|
+
/* @__PURE__ */ jsx2(Heading2, { "data-testid": "reservation-inventory-title", children: inventoryItem.title ?? inventoryItem.sku }),
|
|
189
|
+
/* @__PURE__ */ jsx2(
|
|
190
|
+
ActionMenu,
|
|
191
|
+
{
|
|
192
|
+
groups: [
|
|
193
|
+
{
|
|
194
|
+
actions: [
|
|
195
|
+
{
|
|
196
|
+
icon: /* @__PURE__ */ jsx2(BuildingStorefront, {}),
|
|
197
|
+
label: t("inventory.reservation.goToInventoryItem"),
|
|
198
|
+
to: `/inventory/${inventoryItem.id}`
|
|
199
|
+
}
|
|
200
|
+
]
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"data-testid": "reservation-inventory-action-menu"
|
|
204
|
+
}
|
|
205
|
+
)
|
|
206
|
+
] }),
|
|
207
|
+
/* @__PURE__ */ jsx2(
|
|
208
|
+
SectionRow,
|
|
209
|
+
{
|
|
210
|
+
title: t("fields.sku"),
|
|
211
|
+
value: inventoryItem.sku ?? "-",
|
|
212
|
+
"data-testid": "reservation-inventory-sku-row"
|
|
213
|
+
}
|
|
214
|
+
),
|
|
215
|
+
/* @__PURE__ */ jsx2(
|
|
216
|
+
SectionRow,
|
|
217
|
+
{
|
|
218
|
+
title: t("fields.inStock"),
|
|
219
|
+
value: getQuantityFormat(stockedQuantity),
|
|
220
|
+
"data-testid": "reservation-inventory-in-stock-row"
|
|
221
|
+
}
|
|
222
|
+
),
|
|
223
|
+
/* @__PURE__ */ jsx2(
|
|
224
|
+
SectionRow,
|
|
225
|
+
{
|
|
226
|
+
title: t("inventory.reserved"),
|
|
227
|
+
value: getQuantityFormat(reservedQuantity),
|
|
228
|
+
"data-testid": "reservation-inventory-reserved-row"
|
|
229
|
+
}
|
|
230
|
+
),
|
|
231
|
+
/* @__PURE__ */ jsx2(
|
|
232
|
+
SectionRow,
|
|
233
|
+
{
|
|
234
|
+
title: t("inventory.available"),
|
|
235
|
+
value: getQuantityFormat(availableQuantity),
|
|
236
|
+
"data-testid": "reservation-inventory-available-row"
|
|
237
|
+
}
|
|
238
|
+
)
|
|
239
|
+
]
|
|
240
|
+
}
|
|
241
|
+
);
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
// src/pages/reservations/[id]/index.tsx
|
|
245
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
246
|
+
var Breadcrumb = (props) => {
|
|
247
|
+
const { id } = props.params || {};
|
|
248
|
+
const { reservation } = useReservationItem(id, void 0, {
|
|
249
|
+
enabled: Boolean(id)
|
|
250
|
+
});
|
|
251
|
+
if (!reservation) {
|
|
252
|
+
return null;
|
|
253
|
+
}
|
|
254
|
+
const display = reservation?.inventory_item?.title ?? reservation?.inventory_item?.sku ?? reservation.id;
|
|
255
|
+
return /* @__PURE__ */ jsx3("span", { children: display });
|
|
256
|
+
};
|
|
257
|
+
var Component = () => {
|
|
258
|
+
const { id } = useParams();
|
|
259
|
+
const { reservation, isLoading } = useReservationItem(
|
|
260
|
+
id,
|
|
261
|
+
useLinkQuery("reservation")
|
|
262
|
+
);
|
|
263
|
+
const { inventory_item } = useInventoryItem(
|
|
264
|
+
reservation?.inventory_item?.id,
|
|
265
|
+
useLinkQuery("inventory_item", "*location_levels")
|
|
266
|
+
);
|
|
267
|
+
if (isLoading || !reservation) {
|
|
268
|
+
return /* @__PURE__ */ jsx3(
|
|
269
|
+
TwoColumnPageSkeleton,
|
|
270
|
+
{
|
|
271
|
+
mainSections: 1,
|
|
272
|
+
sidebarSections: 1,
|
|
273
|
+
showJSON: true,
|
|
274
|
+
showMetadata: true
|
|
275
|
+
}
|
|
276
|
+
);
|
|
277
|
+
}
|
|
278
|
+
return /* @__PURE__ */ jsxs3(TwoColumnPage, { data: reservation, showJSON: true, showMetadata: true, children: [
|
|
279
|
+
/* @__PURE__ */ jsx3(TwoColumnPage.Main, { children: /* @__PURE__ */ jsx3(WidgetZone, { id: "reservations.detail.main", data: reservation, children: /* @__PURE__ */ jsx3(ReservationGeneralSection, { reservation }) }) }),
|
|
280
|
+
/* @__PURE__ */ jsx3(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx3(WidgetZone, { id: "reservations.detail.side", data: reservation, children: inventory_item && /* @__PURE__ */ jsx3(ReservationInventorySection, { inventoryItem: inventory_item }) }) })
|
|
281
|
+
] });
|
|
282
|
+
};
|
|
283
|
+
export {
|
|
284
|
+
Breadcrumb,
|
|
285
|
+
Component
|
|
286
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCancelExchangeBegin,
|
|
3
3
|
useExchanges
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CSEB2RNO.js";
|
|
5
5
|
import {
|
|
6
6
|
useCancelClaimBegin,
|
|
7
7
|
useClaims
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7LIT4GXO.js";
|
|
9
9
|
import {
|
|
10
10
|
getReturnableQuantity
|
|
11
11
|
} from "./chunk-UM7ZR3VU.js";
|
|
@@ -25,14 +25,14 @@ import {
|
|
|
25
25
|
useCancelReturn,
|
|
26
26
|
useCancelReturnRequest,
|
|
27
27
|
useReturns
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-RCMKDW6O.js";
|
|
29
29
|
import {
|
|
30
30
|
display_id_default
|
|
31
31
|
} from "./chunk-WQTWBXKO.js";
|
|
32
32
|
import {
|
|
33
33
|
useCancelOrderEdit,
|
|
34
34
|
useConfirmOrderEdit
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-ZK4DIDXG.js";
|
|
36
36
|
import {
|
|
37
37
|
formatProvider
|
|
38
38
|
} from "./chunk-VW56KWO2.js";
|
|
@@ -72,13 +72,14 @@ import {
|
|
|
72
72
|
import "./chunk-LAVHRER2.js";
|
|
73
73
|
import "./chunk-QHQWEERJ.js";
|
|
74
74
|
import "./chunk-Y7QKP6QU.js";
|
|
75
|
-
import "./chunk-
|
|
75
|
+
import "./chunk-6YQR2AWM.js";
|
|
76
76
|
import "./chunk-K5324KIX.js";
|
|
77
77
|
import "./chunk-FV76G2D7.js";
|
|
78
78
|
import "./chunk-GHDLST2P.js";
|
|
79
79
|
import "./chunk-YVYYOBAE.js";
|
|
80
80
|
import "./chunk-L2NJPDUD.js";
|
|
81
|
-
import "./chunk-
|
|
81
|
+
import "./chunk-7LIENHWP.js";
|
|
82
|
+
import "./chunk-NV2RZAHW.js";
|
|
82
83
|
import "./chunk-MR6REQKT.js";
|
|
83
84
|
import "./chunk-EPSDO2MJ.js";
|
|
84
85
|
import "./chunk-BHEU34FL.js";
|
|
@@ -95,8 +96,8 @@ import "./chunk-VWPNMEOE.js";
|
|
|
95
96
|
import {
|
|
96
97
|
useStockLocation
|
|
97
98
|
} from "./chunk-O72AIZUN.js";
|
|
98
|
-
import "./chunk-
|
|
99
|
-
import "./chunk-
|
|
99
|
+
import "./chunk-GL3XVUAY.js";
|
|
100
|
+
import "./chunk-AHR2FIMC.js";
|
|
100
101
|
import {
|
|
101
102
|
ordersQueryKeys,
|
|
102
103
|
useCancelOrder,
|
|
@@ -105,9 +106,11 @@ import {
|
|
|
105
106
|
useOrder,
|
|
106
107
|
useOrderChanges,
|
|
107
108
|
useOrderCommissionLines,
|
|
108
|
-
useOrderPreview
|
|
109
|
+
useOrderPreview
|
|
110
|
+
} from "./chunk-JYUHDM23.js";
|
|
111
|
+
import {
|
|
109
112
|
useReservationItems
|
|
110
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-7POOMBIN.js";
|
|
111
114
|
import "./chunk-4U2BLH45.js";
|
|
112
115
|
import "./chunk-EMUCGKHP.js";
|
|
113
116
|
import "./chunk-A5DJIOHN.js";
|