@medusajs/dashboard 2.10.4-snapshot-20250923121159 → 2.10.4-snapshot-20250925180256
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-JOVLXLS4.mjs → add-campaign-promotions-3BB3BLFD.mjs} +7 -6
- package/dist/{adjust-inventory-WBEBMJN7.mjs → adjust-inventory-OIJTAKHP.mjs} +1 -1
- package/dist/{api-key-management-create-VXPZX2Q5.mjs → api-key-management-create-XDQHUNWK.mjs} +3 -3
- package/dist/{api-key-management-detail-I7T67TXF.mjs → api-key-management-detail-ZQLQKGYF.mjs} +15 -14
- package/dist/{api-key-management-edit-7CGMSHAY.mjs → api-key-management-edit-2SUSKI7T.mjs} +3 -3
- package/dist/{api-key-management-list-5DI3L4DV.mjs → api-key-management-list-C2WM4PHC.mjs} +8 -7
- package/dist/{api-key-management-sales-channels-6GN6RVZ2.mjs → api-key-management-sales-channels-MVHVMPF6.mjs} +6 -5
- package/dist/app.css +89 -31
- package/dist/app.js +7166 -6079
- package/dist/app.mjs +17 -15
- package/dist/{campaign-budget-edit-OXNTSPGE.mjs → campaign-budget-edit-UWGCET5Z.mjs} +1 -1
- package/dist/{campaign-configuration-Z5HA2DG3.mjs → campaign-configuration-WWCCFNYQ.mjs} +1 -1
- package/dist/{campaign-create-AVBNHFC2.mjs → campaign-create-CQ3XBHSY.mjs} +4 -3
- package/dist/{campaign-detail-NRZHGINV.mjs → campaign-detail-LASOFZ2O.mjs} +22 -21
- package/dist/{campaign-edit-3TDW52BO.mjs → campaign-edit-R43GXNET.mjs} +1 -1
- package/dist/{campaign-list-G4MD3RPU.mjs → campaign-list-CDO5PRTL.mjs} +7 -6
- package/dist/{categories-metadata-GXWJ3HOG.mjs → categories-metadata-HUIY6V4F.mjs} +13 -12
- package/dist/{category-create-FOVB5MJ4.mjs → category-create-GMFWRFT7.mjs} +38 -16
- package/dist/{category-detail-ENUI5EFL.mjs → category-detail-ZJJBYVFX.mjs} +19 -18
- package/dist/{category-edit-O4ZSANE5.mjs → category-edit-HCHER73V.mjs} +36 -16
- package/dist/{category-list-UI6W5KF5.mjs → category-list-IXW2NWWJ.mjs} +8 -7
- package/dist/{category-organize-BW3YOPUS.mjs → category-organize-LRQKM4LA.mjs} +2 -2
- package/dist/{category-products-ZG5QDWSW.mjs → category-products-7N4TITQ4.mjs} +15 -14
- package/dist/{chunk-2HKRIUW4.mjs → chunk-2PGNKUXS.mjs} +1 -1
- package/dist/{chunk-X4X5KUGQ.mjs → chunk-4QUHWHBD.mjs} +3 -0
- package/dist/chunk-5U3FFMC7.mjs +84 -0
- package/dist/{chunk-Y4YXZY7R.mjs → chunk-5WMJLYEP.mjs} +2 -2
- package/dist/{chunk-RVOPC44F.mjs → chunk-7DFTLGA5.mjs} +623 -682
- package/dist/{chunk-YM4QJC6Y.mjs → chunk-7GBCLBMX.mjs} +1 -1
- package/dist/{chunk-JHXKKOHO.mjs → chunk-7JJTWGHU.mjs} +49 -15
- package/dist/{chunk-2YP2ZNKR.mjs → chunk-AN5IILM2.mjs} +1 -1
- package/dist/{chunk-YWNHMIEQ.mjs → chunk-AXXGAOQL.mjs} +2 -2
- package/dist/{chunk-5WKYR6PY.mjs → chunk-CXTAH75K.mjs} +1 -1
- package/dist/{chunk-J5E7MQSS.mjs → chunk-CY33DS7K.mjs} +6 -0
- package/dist/{chunk-ZJA7VBUR.mjs → chunk-DKOCYXB5.mjs} +34 -1
- package/dist/{chunk-7VJK6HNE.mjs → chunk-EYL2JACT.mjs} +4 -4
- package/dist/{chunk-BFNH5UWD.mjs → chunk-EYTETK3W.mjs} +1 -1
- package/dist/{chunk-74K7HGNI.mjs → chunk-FXG2Z3QT.mjs} +3 -2
- package/dist/{chunk-2RQLKDBF.mjs → chunk-GIZFNLKK.mjs} +103 -96
- package/dist/{chunk-AOFGTNG6.mjs → chunk-HQKGZADC.mjs} +6 -1
- package/dist/{chunk-LBIOZZPA.mjs → chunk-HWKLNKOY.mjs} +1 -1
- package/dist/{chunk-S2UEWRDA.mjs → chunk-IL5IMREK.mjs} +59 -49
- package/dist/{chunk-JIQQKKLO.mjs → chunk-IP2QPPWC.mjs} +1 -1
- package/dist/{chunk-SCBXRJPV.mjs → chunk-IRO6DO7J.mjs} +1 -1
- package/dist/{chunk-YI4CZGTU.mjs → chunk-ITJEYJNB.mjs} +1 -1
- package/dist/{chunk-T7G2CURS.mjs → chunk-IVZ6BMDB.mjs} +1 -0
- package/dist/{chunk-XGJ5DXXG.mjs → chunk-K2HM7KXJ.mjs} +12 -12
- package/dist/{chunk-OKMF4YI7.mjs → chunk-K3OMOMRB.mjs} +25 -0
- package/dist/{chunk-2LPGQWPV.mjs → chunk-KTL6E2WT.mjs} +1 -1
- package/dist/{chunk-OHSRRFGN.mjs → chunk-LKVQ5YC6.mjs} +1 -1
- package/dist/{chunk-QGCKTVQX.mjs → chunk-LMRZMI7O.mjs} +1 -1
- package/dist/{chunk-Q5DI5VYN.mjs → chunk-MLNUGLGT.mjs} +1 -1
- package/dist/{chunk-5M5ZVAWU.mjs → chunk-MSOFJHH3.mjs} +2 -2
- package/dist/{chunk-JMQ6V54O.mjs → chunk-NFQXNOP7.mjs} +1 -1
- package/dist/{chunk-UWJBDOQD.mjs → chunk-NKVMOKZA.mjs} +41 -29
- package/dist/{chunk-NCR5UWRI.mjs → chunk-NY6I2FYO.mjs} +1 -1
- package/dist/{chunk-2PMSBTXI.mjs → chunk-OFN7DIZA.mjs} +17 -13
- package/dist/{chunk-3NJTXRIY.mjs → chunk-OZPB6JBL.mjs} +5 -1
- package/dist/{chunk-FPJBF7VS.mjs → chunk-P2O6XTD4.mjs} +1 -1
- package/dist/{chunk-OGHQ6VJI.mjs → chunk-PAG2HG6I.mjs} +44 -5
- package/dist/{chunk-EFA7S5L3.mjs → chunk-PGTXMCSV.mjs} +1 -1
- package/dist/{chunk-D7H6ZNK4.mjs → chunk-PRLQLEEQ.mjs} +2 -0
- package/dist/{chunk-OLUNPPBR.mjs → chunk-QPLPGRYF.mjs} +1 -1
- package/dist/{chunk-ZODJNBAV.mjs → chunk-R2G2B47Y.mjs} +1 -0
- package/dist/{chunk-SMHXCFRS.mjs → chunk-RBDAWRFF.mjs} +54 -41
- package/dist/{chunk-HUX22ZHT.mjs → chunk-RF75BZNF.mjs} +3 -3
- package/dist/{chunk-4RG7UJCT.mjs → chunk-RGP3IXX4.mjs} +1 -1
- package/dist/chunk-S4DMV3ZT.mjs +35 -0
- package/dist/{chunk-5NQ3X2JI.mjs → chunk-SNDSWB6B.mjs} +1 -1
- package/dist/{chunk-EE7SOCEQ.mjs → chunk-SQFZWNYA.mjs} +4 -4
- package/dist/{chunk-O74UDEWT.mjs → chunk-TKZK3YPU.mjs} +1 -1
- package/dist/{chunk-KSRI5LOF.mjs → chunk-U25RCIX2.mjs} +2 -2
- package/dist/{chunk-BHZAQZYP.mjs → chunk-U4R5MBF2.mjs} +1 -1
- package/dist/{chunk-CK3VFTZM.mjs → chunk-UKX2FFFV.mjs} +2 -2
- package/dist/{chunk-37UXEJF2.mjs → chunk-V6JXTITD.mjs} +1 -1
- package/dist/{chunk-R2NWOCML.mjs → chunk-VI7MI3US.mjs} +8 -2
- package/dist/chunk-VLOA5XAC.mjs +113 -0
- package/dist/{chunk-NRBOPOMS.mjs → chunk-VWQYN2RW.mjs} +1 -1
- package/dist/{chunk-4Q4LIFFO.mjs → chunk-XP3BY6G6.mjs} +1 -1
- package/dist/{chunk-6AGMMT5H.mjs → chunk-XR7I5HGZ.mjs} +4 -4
- package/dist/{chunk-6IZUCU7K.mjs → chunk-YSFTQA6Y.mjs} +2 -2
- package/dist/{chunk-XKXNQ2KV.mjs → chunk-ZCARHA6C.mjs} +1 -1
- package/dist/{chunk-RMEITCLS.mjs → chunk-ZSDEVTFT.mjs} +1 -1
- package/dist/{collection-add-products-2ISNNIHD.mjs → collection-add-products-WKMNYPLS.mjs} +15 -14
- package/dist/{collection-create-75ZI5NDG.mjs → collection-create-PTOF33H2.mjs} +2 -2
- package/dist/{collection-detail-OSX6NHNQ.mjs → collection-detail-NONKXELG.mjs} +17 -16
- package/dist/{collection-edit-RD6BDDDI.mjs → collection-edit-WM57WXJ2.mjs} +2 -2
- package/dist/{collection-list-MPIYSHQJ.mjs → collection-list-3ZHLS2LP.mjs} +19 -18
- package/dist/{collection-metadata-EOFYXEQI.mjs → collection-metadata-J6P3K7U6.mjs} +13 -12
- package/dist/{customer-create-address-TPSDYZBN.mjs → customer-create-address-JOYBIPPN.mjs} +1 -1
- package/dist/{customer-detail-FCNRRZSW.mjs → customer-detail-5Y7ICDMA.mjs} +17 -16
- package/dist/{customer-group-add-customers-ULPWTALS.mjs → customer-group-add-customers-YF2T323Z.mjs} +3 -2
- package/dist/{customer-group-detail-QI3QLJJL.mjs → customer-group-detail-PXP73BFA.mjs} +16 -15
- package/dist/{customer-group-list-D26UKQMR.mjs → customer-group-list-3DB643XQ.mjs} +15 -14
- package/dist/{customer-group-metadata-UPAPULMF.mjs → customer-group-metadata-YQCOIVQG.mjs} +2 -1
- package/dist/{customer-list-SINCBCOZ.mjs → customer-list-5IWEXYSW.mjs} +5 -4
- package/dist/{customer-metadata-5NPUMPZ2.mjs → customer-metadata-JZEJBH4V.mjs} +2 -1
- package/dist/{customers-add-customer-group-5TFTVDB6.mjs → customers-add-customer-group-BVUVU46N.mjs} +14 -13
- package/dist/{edit-inventory-item-ZPE4MMC4.mjs → edit-inventory-item-UV2Z7SYL.mjs} +1 -1
- package/dist/{edit-inventory-item-attributes-KT7BSPZ7.mjs → edit-inventory-item-attributes-BRC3KBYT.mjs} +2 -2
- package/dist/{edit-reservation-EKH4RIAX.mjs → edit-reservation-NYGQBFBO.mjs} +7 -2
- package/dist/{edit-rules-63NG4QVR.mjs → edit-rules-3MSTPCE5.mjs} +14 -13
- package/dist/{inventory-create-RIVJFJJQ.mjs → inventory-create-NEYX7PZJ.mjs} +19 -14
- package/dist/{inventory-detail-QHL7TJFZ.mjs → inventory-detail-66HDQL3W.mjs} +25 -18
- package/dist/{inventory-list-YMYF7QVP.mjs → inventory-list-J5VZGQ2M.mjs} +6 -5
- package/dist/{inventory-metadata-FH4CHJBA.mjs → inventory-metadata-OSTUWM23.mjs} +13 -12
- package/dist/{inventory-stock-D6E4LQRK.mjs → inventory-stock-XY2OCAY3.mjs} +14 -13
- package/dist/{location-create-LUP363ZB.mjs → location-create-22H74MFP.mjs} +1 -1
- package/dist/{location-detail-Z6ZDX6RY.mjs → location-detail-UZHD3IKW.mjs} +14 -13
- package/dist/{location-edit-26K26G23.mjs → location-edit-X6JBEWIF.mjs} +2 -2
- package/dist/{location-fulfillment-providers-45VXZMZI.mjs → location-fulfillment-providers-D4RMKQXU.mjs} +16 -15
- package/dist/{location-list-62KBWY4T.mjs → location-list-VNEYHAKV.mjs} +15 -8
- package/dist/{location-sales-channels-O5XLIPAR.mjs → location-sales-channels-66ZE3ZMI.mjs} +5 -4
- package/dist/{location-service-zone-create-RPFLBVV4.mjs → location-service-zone-create-D5QSFS3M.mjs} +4 -3
- package/dist/{location-service-zone-manage-areas-VEUUGPKF.mjs → location-service-zone-manage-areas-HKCALG4Q.mjs} +4 -3
- package/dist/{location-service-zone-shipping-option-create-NO3665DC.mjs → location-service-zone-shipping-option-create-OASLL2K7.mjs} +23 -15
- package/dist/{location-service-zone-shipping-option-edit-TMXNX4VX.mjs → location-service-zone-shipping-option-edit-DOCLZOO7.mjs} +40 -28
- package/dist/{location-service-zone-shipping-option-pricing-U2SDK5DE.mjs → location-service-zone-shipping-option-pricing-FLB63UKY.mjs} +3 -2
- package/dist/{login-DSPNELTI.mjs → login-LQRL2ZDY.mjs} +11 -11
- package/dist/manage-locations-RPHTPGRE.mjs +247 -0
- package/dist/{order-allocate-items-J3ZHGC22.mjs → order-allocate-items-2RYXQRVK.mjs} +26 -14
- package/dist/{order-create-claim-V63BWLB5.mjs → order-create-claim-7UF734QH.mjs} +20 -18
- package/dist/{order-create-edit-NPF4UZ4D.mjs → order-create-edit-MZHUVTGE.mjs} +18 -16
- package/dist/{order-create-exchange-RHIPPSKU.mjs → order-create-exchange-2UGEF65S.mjs} +20 -18
- package/dist/{order-create-fulfillment-4SSUHQ75.mjs → order-create-fulfillment-HGJ2YPUB.mjs} +19 -12
- package/dist/{order-create-refund-QVQC5ZP5.mjs → order-create-refund-CJDKVBSE.mjs} +52 -17
- package/dist/{order-create-return-GVA6M2RY.mjs → order-create-return-5IPRHHLJ.mjs} +11 -9
- package/dist/{order-create-shipment-TJAARKWA.mjs → order-create-shipment-3FDVQ6WT.mjs} +13 -11
- package/dist/{order-detail-2MIN6B2I.mjs → order-detail-SEPCRJW5.mjs} +50 -42
- package/dist/{order-edit-billing-address-QP2I5F3E.mjs → order-edit-billing-address-J75NQFRY.mjs} +12 -12
- package/dist/{order-edit-email-7WT7XTHB.mjs → order-edit-email-ABFQKE6A.mjs} +11 -11
- package/dist/{order-edit-shipping-address-3QFMQP4I.mjs → order-edit-shipping-address-OXW7TAJD.mjs} +12 -12
- package/dist/{order-list-73DBATIK.mjs → order-list-VDUUHTSU.mjs} +11 -10
- package/dist/{order-metadata-YJS26DHK.mjs → order-metadata-5NF3ICQL.mjs} +13 -12
- package/dist/{order-receive-return-PZMMMUB2.mjs → order-receive-return-IM65P7XQ.mjs} +14 -13
- package/dist/{order-request-transfer-QBIZD36E.mjs → order-request-transfer-LZ25KEDA.mjs} +12 -12
- package/dist/{price-list-configuration-435QDWB2.mjs → price-list-configuration-VACKCKJF.mjs} +6 -5
- package/dist/{price-list-create-RXDH5CXF.mjs → price-list-create-EC5VGCMW.mjs} +39 -24
- package/dist/{price-list-detail-PKIKOJ4H.mjs → price-list-detail-CRTJA5O4.mjs} +18 -17
- package/dist/{price-list-edit-ZGBOZYSC.mjs → price-list-edit-G73ZIU2Y.mjs} +51 -31
- package/dist/{price-list-list-C6NEB2R4.mjs → price-list-list-QYZSJNF5.mjs} +8 -7
- package/dist/{price-list-prices-add-2CDPUSYA.mjs → price-list-prices-add-HYCM4QDY.mjs} +28 -20
- package/dist/{price-list-prices-edit-ENB4GJZT.mjs → price-list-prices-edit-R53ITSDD.mjs} +5 -4
- package/dist/{product-attributes-FQDJCNUB.mjs → product-attributes-WVQRK3GQ.mjs} +19 -17
- package/dist/{product-create-W37RQLON.mjs → product-create-PWSPOVUS.mjs} +27 -21
- package/dist/{product-create-option-3JR35UZ5.mjs → product-create-option-OW2LMVST.mjs} +1 -1
- package/dist/{product-create-variant-KJKQ6ROY.mjs → product-create-variant-V2QGXFEF.mjs} +31 -18
- package/dist/{product-detail-TANIKAEK.mjs → product-detail-EBPCCBI4.mjs} +21 -19
- package/dist/{product-edit-DO76GHBI.mjs → product-edit-5E6D43KE.mjs} +41 -28
- package/dist/{product-edit-option-VNDGZ37A.mjs → product-edit-option-OM56DLU6.mjs} +1 -1
- package/dist/{product-export-XERWEI5H.mjs → product-export-VFC3I5DK.mjs} +13 -13
- package/dist/{product-import-AGFJMSVK.mjs → product-import-V7EZJ2TU.mjs} +14 -13
- package/dist/{product-list-KJ3HXPLB.mjs → product-list-FFZO57JG.mjs} +19 -18
- package/dist/{product-media-VG4YM2W6.mjs → product-media-TRKQTA4G.mjs} +5 -5
- package/dist/{product-metadata-NZ3HKO67.mjs → product-metadata-VYQ65KYI.mjs} +13 -12
- package/dist/{product-organization-OOVUGXNP.mjs → product-organization-OCVSTKEK.mjs} +20 -18
- package/dist/{product-prices-PCBMYYGV.mjs → product-prices-XLY5TUSJ.mjs} +3 -2
- package/dist/{product-sales-channels-QEJRSCAU.mjs → product-sales-channels-KSIHPDJG.mjs} +5 -4
- package/dist/{product-shipping-profile-FFMKOF6B.mjs → product-shipping-profile-SG6NDHF4.mjs} +19 -17
- package/dist/{product-stock-SUVEQZML.mjs → product-stock-LJRYRSKN.mjs} +16 -14
- package/dist/{product-tag-create-T6HVAQKN.mjs → product-tag-create-EB5CVUOP.mjs} +11 -11
- package/dist/{product-tag-detail-HOWUZC3P.mjs → product-tag-detail-V5CZY4R4.mjs} +22 -21
- package/dist/{product-tag-edit-WWQDNDRC.mjs → product-tag-edit-YATSW5OK.mjs} +11 -11
- package/dist/{product-tag-list-FAKSLONF.mjs → product-tag-list-2LFGEFGL.mjs} +22 -21
- package/dist/{product-tag-metadata-6B56VEZU.mjs → product-tag-metadata-R5P5FWAZ.mjs} +13 -12
- package/dist/{product-type-detail-KN64HYUV.mjs → product-type-detail-BZNI5GJ5.mjs} +17 -16
- package/dist/{product-type-list-6ZIWPIUH.mjs → product-type-list-MJLAGQYC.mjs} +5 -4
- package/dist/{product-type-metadata-F3FTI6OG.mjs → product-type-metadata-SUQHWLWA.mjs} +13 -12
- package/dist/{product-variant-detail-OUHBUY4J.mjs → product-variant-detail-W2JHQQQJ.mjs} +16 -15
- package/dist/{product-variant-edit-NBYHDUJ5.mjs → product-variant-edit-DSY77FF4.mjs} +17 -13
- package/dist/{product-variant-manage-inventory-items-TM3VAHBJ.mjs → product-variant-manage-inventory-items-JH65NAD4.mjs} +2 -2
- package/dist/{product-variant-metadata-XDVLJYGQ.mjs → product-variant-metadata-HE3MRTJB.mjs} +13 -12
- package/dist/{profile-detail-ROG22HHL.mjs → profile-detail-XYAQ2G36.mjs} +3 -2
- package/dist/{profile-edit-HSUQIQQH.mjs → profile-edit-7WD4FTRH.mjs} +31 -19
- package/dist/{promotion-add-campaign-7R26KU2U.mjs → promotion-add-campaign-YOUUM6RB.mjs} +9 -21
- package/dist/{promotion-create-UUOG52D5.mjs → promotion-create-NBFV4XQV.mjs} +29 -17
- package/dist/{promotion-detail-GONXLJZ2.mjs → promotion-detail-247QD6DA.mjs} +16 -15
- package/dist/{promotion-edit-details-HQLYX4X4.mjs → promotion-edit-details-A2UUSAZA.mjs} +10 -2
- package/dist/{promotion-list-NNEMVJ6I.mjs → promotion-list-WDHOSD55.mjs} +9 -8
- package/dist/refund-reason-create-45ZZOX7F.mjs +157 -0
- package/dist/refund-reason-edit-E2HDAQZI.mjs +144 -0
- package/dist/refund-reason-list-WI7NHRDS.mjs +245 -0
- package/dist/{region-add-countries-Y4YAHDUZ.mjs → region-add-countries-6GSF4CKJ.mjs} +3 -2
- package/dist/{region-create-5Y3GIQBV.mjs → region-create-AV2NJNNJ.mjs} +49 -39
- package/dist/{region-detail-CWRFM6P3.mjs → region-detail-PB7EUSTD.mjs} +5 -4
- package/dist/region-edit-X7CSUICV.mjs +308 -0
- package/dist/{region-list-FQNI7F37.mjs → region-list-52LF5S4S.mjs} +5 -4
- package/dist/{region-metadata-IQVB4ERU.mjs → region-metadata-3JIGHAUI.mjs} +13 -12
- package/dist/{reservation-create-7RFXWDXB.mjs → reservation-create-FKBCGQA7.mjs} +3 -3
- package/dist/{reservation-detail-RTGHD35L.mjs → reservation-detail-FENCNQDA.mjs} +15 -14
- package/dist/{reservation-list-UOC7RNRZ.mjs → reservation-list-NOWJUMXV.mjs} +7 -6
- package/dist/{reservation-metadata-WKJXBRLQ.mjs → reservation-metadata-DQ3A7MHU.mjs} +13 -12
- package/dist/{reset-password-ANJHGYUE.mjs → reset-password-LCVV4NOA.mjs} +1 -1
- package/dist/{return-reason-list-MOP7YWMZ.mjs → return-reason-list-FW7OYUOW.mjs} +8 -7
- package/dist/{sales-channel-add-products-OKVZJ6FI.mjs → sales-channel-add-products-G4EUOCWY.mjs} +15 -14
- package/dist/{sales-channel-create-3MPOMVPD.mjs → sales-channel-create-NODWGJDD.mjs} +4 -2
- package/dist/{sales-channel-detail-WESBK6Q7.mjs → sales-channel-detail-NT7PEVVH.mjs} +17 -16
- package/dist/{sales-channel-edit-LSLAM7A4.mjs → sales-channel-edit-ALIRERVH.mjs} +4 -2
- package/dist/{sales-channel-list-LKVHXUXW.mjs → sales-channel-list-REV2RETE.mjs} +15 -14
- package/dist/{sales-channel-metadata-2OQAHYB4.mjs → sales-channel-metadata-O5O6ADG5.mjs} +13 -12
- package/dist/{shipping-option-type-create-3CGPGDYJ.mjs → shipping-option-type-create-7FSJNHHA.mjs} +11 -11
- package/dist/{shipping-option-type-detail-S23H2OGW.mjs → shipping-option-type-detail-6UQST7RY.mjs} +15 -14
- package/dist/{shipping-option-type-edit-IHE7XM6M.mjs → shipping-option-type-edit-B475WRRR.mjs} +11 -11
- package/dist/{shipping-option-type-list-47GRJ6EC.mjs → shipping-option-type-list-DTETSFSA.mjs} +17 -16
- package/dist/{shipping-profile-detail-FDUPDSH4.mjs → shipping-profile-detail-FS46IJZP.mjs} +3 -2
- package/dist/{shipping-profile-metadata-OXWOXAAR.mjs → shipping-profile-metadata-PRINFNSY.mjs} +13 -12
- package/dist/{shipping-profiles-list-ZHJEUIKJ.mjs → shipping-profiles-list-QFOG5IDH.mjs} +5 -4
- package/dist/{store-add-currencies-R26SVHT5.mjs → store-add-currencies-W4MWOALR.mjs} +5 -2
- package/dist/{store-detail-4K7TW2TP.mjs → store-detail-QKF2TVNW.mjs} +16 -15
- package/dist/{store-edit-EU55TNFU.mjs → store-edit-ZPGTNZGL.mjs} +24 -12
- package/dist/{store-metadata-JP2CI7EF.mjs → store-metadata-M6GIKI5P.mjs} +13 -12
- package/dist/{tax-region-create-IWM4755I.mjs → tax-region-create-4DTM3RTZ.mjs} +14 -14
- package/dist/{tax-region-detail-V2F2DONN.mjs → tax-region-detail-SLCI3JYL.mjs} +18 -17
- package/dist/{tax-region-edit-CJPMYTBF.mjs → tax-region-edit-CJ63JXFQ.mjs} +12 -12
- package/dist/{tax-region-list-NMM3LBPN.mjs → tax-region-list-SQQE2GUU.mjs} +6 -5
- package/dist/{tax-region-province-create-GIIU2G7K.mjs → tax-region-province-create-SBRFGWN3.mjs} +2 -2
- package/dist/{tax-region-province-detail-4PUQ5ADW.mjs → tax-region-province-detail-BGL2USQF.mjs} +17 -16
- package/dist/{tax-region-tax-override-create-3SCIOK4P.mjs → tax-region-tax-override-create-L4WOTSBO.mjs} +25 -20
- package/dist/{tax-region-tax-override-edit-P3QJKET3.mjs → tax-region-tax-override-edit-2JAVNE37.mjs} +25 -20
- package/dist/{tax-region-tax-rate-create-Z43M3JTQ.mjs → tax-region-tax-rate-create-JIV5FXUD.mjs} +1 -1
- package/dist/{tax-region-tax-rate-edit-RBF5D2MK.mjs → tax-region-tax-rate-edit-WU2ZQLZQ.mjs} +1 -1
- package/dist/{user-detail-VIVFFLOW.mjs → user-detail-ZFW3YF3M.mjs} +4 -3
- package/dist/{user-invite-W26LOOW7.mjs → user-invite-KUH4AI2L.mjs} +4 -3
- package/dist/{user-list-MKJLB5CQ.mjs → user-list-G4H2RSDX.mjs} +4 -3
- package/dist/{user-metadata-ZURLDLGC.mjs → user-metadata-DFTGB46F.mjs} +13 -12
- package/dist/{workflow-execution-detail-4R6AFFHV.mjs → workflow-execution-detail-YNT2RKIP.mjs} +17 -13
- package/dist/{workflow-execution-list-5J3DQQRD.mjs → workflow-execution-list-5WL4L464.mjs} +4 -3
- package/package.json +9 -9
- package/src/components/common/action-menu/action-menu.tsx +3 -1
- package/src/components/common/customer-info/customer-info.tsx +1 -1
- package/src/components/common/json-view-section/json-view-section.tsx +4 -1
- package/src/components/common/sidebar-link/sidebar-link.tsx +1 -1
- package/src/components/common/switch-box/switch-box.tsx +2 -0
- package/src/components/data-grid/components/data-grid-root.tsx +9 -3
- package/src/components/data-grid/components/data-grid-toggleable-number-cell.tsx +2 -1
- package/src/components/filtering/filter-group/filter-group.tsx +5 -1
- package/src/components/filtering/order-by/order-by.tsx +4 -1
- package/src/components/forms/address-form/address-form.tsx +7 -2
- package/src/components/forms/metadata-form/metadata-form.tsx +6 -3
- package/src/components/inputs/combobox/combobox.tsx +20 -13
- package/src/components/inputs/country-select/country-select.tsx +1 -1
- package/src/components/inputs/province-select/province-select.tsx +1 -1
- package/src/components/layout/main-layout/main-layout.tsx +7 -5
- package/src/components/layout/settings-layout/settings-layout.tsx +4 -0
- package/src/components/layout/shell/shell.tsx +6 -6
- package/src/components/layout/user-menu/user-menu.tsx +12 -10
- package/src/components/search/search.tsx +5 -3
- package/src/components/table/data-table/data-table-order-by/data-table-order-by.tsx +4 -1
- package/src/components/table/data-table/data-table-root/data-table-root.tsx +3 -3
- package/src/dashboard-app/forms/form-extension-zone/form-extension-zone.tsx +1 -1
- package/src/dashboard-app/routes/get-route.map.tsx +36 -0
- package/src/hooks/api/campaigns.tsx +1 -0
- package/src/hooks/api/inventory.tsx +3 -0
- package/src/hooks/api/payments.tsx +6 -1
- package/src/hooks/api/refund-reasons.tsx +105 -10
- package/src/hooks/table/columns/index.ts +1 -0
- package/src/hooks/table/columns/use-refund-reason-table-columns.tsx +32 -0
- package/src/hooks/table/query/index.ts +1 -0
- package/src/hooks/table/query/use-refund-reason-table-query.tsx +32 -0
- package/src/hooks/use-document-direction.tsx +54 -0
- package/src/i18n/translations/$schema.json +118 -0
- package/src/i18n/translations/en.json +34 -1
- package/src/providers/i18n-provider/i18n-provider.tsx +9 -4
- package/src/routes/campaigns/campaign-detail/components/campaign-budget/campaign-budget.tsx +3 -3
- package/src/routes/campaigns/common/components/create-campaign-form-fields/create-campaign-form-fields.tsx +4 -1
- package/src/routes/categories/category-create/components/create-category-form/create-category-details.tsx +12 -3
- package/src/routes/categories/category-create/components/create-category-form/create-category-form.tsx +4 -3
- package/src/routes/categories/category-detail/components/category-organize-section/category-organize-section.tsx +1 -1
- package/src/routes/categories/category-edit/components/edit-category-form/edit-category-form.tsx +12 -3
- package/src/routes/inventory/inventory-create/components/inventory-create-form/inventory-create-form.tsx +3 -1
- package/src/routes/inventory/inventory-detail/components/inventory-item-variants/variants-section.tsx +1 -1
- package/src/routes/inventory/inventory-detail/components/location-levels-table/use-location-list-table-columns.tsx +7 -0
- package/src/routes/inventory/inventory-detail/components/manage-locations/components/location-item.tsx +2 -2
- package/src/routes/inventory/inventory-detail/components/manage-locations/components/location-search-input.tsx +34 -0
- package/src/routes/inventory/inventory-detail/components/manage-locations/components/manage-locations-form.tsx +127 -140
- package/src/routes/locations/location-edit/components/edit-location-form/edit-location-form.tsx +1 -1
- package/src/routes/locations/location-list/location-list.tsx +10 -4
- package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-option-details-form.tsx +4 -1
- package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-options-form.tsx +3 -1
- package/src/routes/locations/location-service-zone-shipping-option-edit/components/edit-region-form/edit-shipping-option-form.tsx +7 -2
- package/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-form.tsx +7 -2
- package/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx +2 -1
- package/src/routes/orders/order-create-edit/components/order-edit-create-form/order-edit-create-form.tsx +2 -1
- package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-create-form.tsx +2 -1
- package/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-form.tsx +5 -1
- package/src/routes/orders/order-create-refund/components/create-refund-form/create-refund-form.tsx +42 -1
- package/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx +2 -1
- package/src/routes/orders/order-create-shipment/components/order-create-shipment-form/order-create-shipment-form.tsx +2 -0
- package/src/routes/orders/order-detail/components/order-activity-section/order-timeline.tsx +13 -5
- package/src/routes/orders/order-receive-return/components/order-receive-return-form/order-receive-return-form.tsx +2 -1
- package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-create-form.tsx +3 -1
- package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-details-form.tsx +8 -2
- package/src/routes/price-lists/price-list-edit/components/price-list-edit-form/edit-price-list-form.tsx +12 -3
- package/src/routes/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-form.tsx +10 -5
- package/src/routes/product-variants/product-variant-edit/components/product-edit-variant-form/product-edit-variant-form.tsx +4 -0
- package/src/routes/products/common/components/category-combobox/category-combobox.tsx +11 -11
- package/src/routes/products/product-create/components/product-create-form/product-create-form.tsx +3 -1
- package/src/routes/products/product-create-variant/components/create-product-variant-form/create-product-variant-form.tsx +10 -5
- package/src/routes/products/product-create-variant/components/create-product-variant-form/details-tab.tsx +6 -1
- package/src/routes/products/product-edit/components/edit-product-form/edit-product-form.tsx +7 -2
- package/src/routes/products/product-media/components/product-media-gallery/product-media-gallery.tsx +2 -2
- package/src/routes/products/product-stock/hooks/use-product-stock-columns.tsx +2 -1
- package/src/routes/profile/profile-edit/components/edit-profile-form/edit-profile-form.tsx +9 -3
- package/src/routes/promotions/common/edit-rules/components/rules-form-field/rules-form-field.tsx +4 -0
- package/src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/add-campaign-promotion-form.tsx +48 -49
- package/src/routes/promotions/promotion-add-campaign/promotion-add-campaign.tsx +4 -21
- package/src/routes/promotions/promotion-create/components/create-promotion-form/create-promotion-form.tsx +12 -3
- package/src/routes/promotions/promotion-edit-details/components/edit-promotion-form/edit-promotion-details-form.tsx +6 -1
- package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/index.ts +1 -0
- package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/refund-reason-create-form.tsx +131 -0
- package/src/routes/refund-reasons/refund-reason-create/index.ts +1 -0
- package/src/routes/refund-reasons/refund-reason-create/refund-reason-create.tsx +10 -0
- package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/index.ts +1 -0
- package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/refund-reason-edit-form.tsx +119 -0
- package/src/routes/refund-reasons/refund-reason-edit/index.ts +1 -0
- package/src/routes/refund-reasons/refund-reason-edit/refund-reason-edit.tsx +33 -0
- package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/index.ts +1 -0
- package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/refund-reason-list-table.tsx +138 -0
- package/src/routes/refund-reasons/refund-reason-list/index.ts +2 -0
- package/src/routes/refund-reasons/refund-reason-list/loader.ts +16 -0
- package/src/routes/refund-reasons/refund-reason-list/refund-reason-list.tsx +21 -0
- package/src/routes/regions/region-create/components/create-region-form/create-region-form.tsx +29 -12
- package/src/routes/regions/region-create/region-create.tsx +1 -10
- package/src/routes/regions/region-edit/components/edit-region-form/edit-region-form.tsx +32 -10
- package/src/routes/regions/region-edit/region-edit.tsx +0 -5
- package/src/routes/reservations/reservation-detail/components/edit-reservation/components/edit-reservation-form.tsx +3 -1
- package/src/routes/sales-channels/sales-channel-create/components/create-sales-channel-form/create-sales-channel-form.tsx +2 -0
- package/src/routes/sales-channels/sales-channel-edit/components/edit-sales-channel-form/edit-sales-channel-form.tsx +2 -0
- package/src/routes/store/store-add-currencies/components/add-currencies-form/add-currencies-form.tsx +2 -0
- package/src/routes/store/store-edit/components/edit-store-form/edit-store-form.tsx +7 -2
- package/src/routes/tax-regions/tax-region-tax-override-create/components/tax-region-override-create-form/tax-region-tax-override-create.tsx +3 -1
- package/src/routes/tax-regions/tax-region-tax-override-edit/components/tax-region-tax-override-edit-form/tax-region-tax-override-edit-form.tsx +3 -1
- package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-timeline-section/workflow-execution-timeline-section.tsx +3 -2
- package/dist/chunk-ZCZL3STK.mjs +0 -64
- package/dist/manage-locations-3TBIUSHP.mjs +0 -236
- package/dist/region-edit-JWQWCLM3.mjs +0 -285
@@ -5,6 +5,9 @@ import {
|
|
5
5
|
import {
|
6
6
|
isFetchError
|
7
7
|
} from "./chunk-ONB3JEHR.mjs";
|
8
|
+
import {
|
9
|
+
InfiniteList
|
10
|
+
} from "./chunk-VLOA5XAC.mjs";
|
8
11
|
import {
|
9
12
|
useReturnReasons
|
10
13
|
} from "./chunk-2VTICXJR.mjs";
|
@@ -13,7 +16,7 @@ import {
|
|
13
16
|
} from "./chunk-D3YQN7HV.mjs";
|
14
17
|
import {
|
15
18
|
I18n
|
16
|
-
} from "./chunk-
|
19
|
+
} from "./chunk-DKOCYXB5.mjs";
|
17
20
|
import {
|
18
21
|
Thumbnail
|
19
22
|
} from "./chunk-MNXC6Q4F.mjs";
|
@@ -29,10 +32,13 @@ import {
|
|
29
32
|
} from "./chunk-LPEUYMRK.mjs";
|
30
33
|
import {
|
31
34
|
FilePreview
|
32
|
-
} from "./chunk-
|
35
|
+
} from "./chunk-ZCARHA6C.mjs";
|
33
36
|
import {
|
34
37
|
ConditionalTooltip
|
35
38
|
} from "./chunk-OC7BQLYI.mjs";
|
39
|
+
import {
|
40
|
+
useDocumentDirection
|
41
|
+
} from "./chunk-S4DMV3ZT.mjs";
|
36
42
|
import {
|
37
43
|
languages
|
38
44
|
} from "./chunk-67ORSRVT.mjs";
|
@@ -44,7 +50,7 @@ import {
|
|
44
50
|
useNotifications,
|
45
51
|
useProductTags,
|
46
52
|
useVariants
|
47
|
-
} from "./chunk-
|
53
|
+
} from "./chunk-PAG2HG6I.mjs";
|
48
54
|
import {
|
49
55
|
useLogout
|
50
56
|
} from "./chunk-KOSCMAIC.mjs";
|
@@ -53,7 +59,7 @@ import {
|
|
53
59
|
} from "./chunk-I6E6CALJ.mjs";
|
54
60
|
import {
|
55
61
|
useApiKeys
|
56
|
-
} from "./chunk-
|
62
|
+
} from "./chunk-RGP3IXX4.mjs";
|
57
63
|
import {
|
58
64
|
useProductTypes
|
59
65
|
} from "./chunk-B4GODIOW.mjs";
|
@@ -66,30 +72,30 @@ import {
|
|
66
72
|
} from "./chunk-2ZKVRTBW.mjs";
|
67
73
|
import {
|
68
74
|
usePriceLists
|
69
|
-
} from "./chunk-
|
75
|
+
} from "./chunk-LKVQ5YC6.mjs";
|
70
76
|
import {
|
71
77
|
useCustomerGroups,
|
72
78
|
useCustomers
|
73
79
|
} from "./chunk-F6PXCY3N.mjs";
|
74
80
|
import {
|
75
81
|
useCollections
|
76
|
-
} from "./chunk-
|
82
|
+
} from "./chunk-NY6I2FYO.mjs";
|
77
83
|
import {
|
78
84
|
useCampaigns,
|
79
85
|
usePromotions
|
80
|
-
} from "./chunk-
|
86
|
+
} from "./chunk-R2G2B47Y.mjs";
|
81
87
|
import {
|
82
88
|
useStockLocations
|
83
89
|
} from "./chunk-32IQRUVY.mjs";
|
84
90
|
import {
|
85
91
|
useOrders
|
86
|
-
} from "./chunk-
|
92
|
+
} from "./chunk-U25RCIX2.mjs";
|
87
93
|
import {
|
88
94
|
useProductCategories
|
89
|
-
} from "./chunk-
|
95
|
+
} from "./chunk-EYTETK3W.mjs";
|
90
96
|
import {
|
91
97
|
useSalesChannels
|
92
|
-
} from "./chunk-
|
98
|
+
} from "./chunk-XP3BY6G6.mjs";
|
93
99
|
import {
|
94
100
|
useStore
|
95
101
|
} from "./chunk-V2LANK5S.mjs";
|
@@ -99,7 +105,7 @@ import {
|
|
99
105
|
import {
|
100
106
|
useInventoryItems,
|
101
107
|
useProducts
|
102
|
-
} from "./chunk-
|
108
|
+
} from "./chunk-4QUHWHBD.mjs";
|
103
109
|
import {
|
104
110
|
queryClient
|
105
111
|
} from "./chunk-FXYH54JP.mjs";
|
@@ -126,6 +132,7 @@ import { HelmetProvider } from "react-helmet-async";
|
|
126
132
|
|
127
133
|
// src/providers/i18n-provider/i18n-provider.tsx
|
128
134
|
import { I18nProvider as Provider } from "@medusajs/ui";
|
135
|
+
import { useEffect } from "react";
|
129
136
|
import { useTranslation } from "react-i18next";
|
130
137
|
import { jsx } from "react/jsx-runtime";
|
131
138
|
var formatLocaleCode = (code) => {
|
@@ -133,12 +140,17 @@ var formatLocaleCode = (code) => {
|
|
133
140
|
};
|
134
141
|
var I18nProvider = ({ children }) => {
|
135
142
|
const { i18n } = useTranslation();
|
136
|
-
const
|
143
|
+
const currentLanguage = languages.find((lan) => lan.code === i18n.language) || languages[0];
|
144
|
+
const locale = currentLanguage.code;
|
145
|
+
const direction = currentLanguage.ltr ? "ltr" : "rtl";
|
146
|
+
useEffect(() => {
|
147
|
+
document.documentElement.setAttribute("dir", direction);
|
148
|
+
}, [direction]);
|
137
149
|
return /* @__PURE__ */ jsx(Provider, { locale: formatLocaleCode(locale), children });
|
138
150
|
};
|
139
151
|
|
140
152
|
// src/providers/theme-provider/theme-provider.tsx
|
141
|
-
import { useEffect, useState } from "react";
|
153
|
+
import { useEffect as useEffect2, useState } from "react";
|
142
154
|
|
143
155
|
// src/providers/theme-provider/theme-context.tsx
|
144
156
|
import { createContext } from "react";
|
@@ -172,7 +184,7 @@ var ThemeProvider = ({ children }) => {
|
|
172
184
|
setState(theme);
|
173
185
|
setValue(themeValue);
|
174
186
|
};
|
175
|
-
|
187
|
+
useEffect2(() => {
|
176
188
|
const html = document.querySelector("html");
|
177
189
|
if (html) {
|
178
190
|
const css = document.createElement("style");
|
@@ -227,7 +239,7 @@ import { Spinner as Spinner2 } from "@medusajs/icons";
|
|
227
239
|
import { Navigate, Outlet, useLocation as useLocation3 } from "react-router-dom";
|
228
240
|
|
229
241
|
// src/providers/search-provider/search-provider.tsx
|
230
|
-
import { useEffect as
|
242
|
+
import { useEffect as useEffect7, useState as useState6 } from "react";
|
231
243
|
|
232
244
|
// src/components/search/search.tsx
|
233
245
|
import {
|
@@ -246,7 +258,7 @@ import {
|
|
246
258
|
forwardRef,
|
247
259
|
Fragment,
|
248
260
|
useCallback as useCallback3,
|
249
|
-
useEffect as
|
261
|
+
useEffect as useEffect5,
|
250
262
|
useImperativeHandle,
|
251
263
|
useMemo as useMemo2,
|
252
264
|
useRef,
|
@@ -296,12 +308,12 @@ var SEARCH_LIMIT_INCREMENT = 20;
|
|
296
308
|
|
297
309
|
// src/components/search/use-search-results.tsx
|
298
310
|
import { keepPreviousData } from "@tanstack/react-query";
|
299
|
-
import { useCallback as useCallback2, useEffect as
|
311
|
+
import { useCallback as useCallback2, useEffect as useEffect4, useMemo, useState as useState3 } from "react";
|
300
312
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
301
313
|
|
302
314
|
// src/providers/keybind-provider/hooks.tsx
|
303
315
|
import debounceFn from "lodash/debounce";
|
304
|
-
import { useCallback, useContext as useContext2, useEffect as
|
316
|
+
import { useCallback, useContext as useContext2, useEffect as useEffect3, useState as useState2 } from "react";
|
305
317
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
306
318
|
import { useNavigate } from "react-router-dom";
|
307
319
|
|
@@ -396,14 +408,14 @@ var useShortcuts = ({
|
|
396
408
|
}, debounce / 2),
|
397
409
|
[]
|
398
410
|
);
|
399
|
-
|
411
|
+
useEffect3(() => {
|
400
412
|
if (keys.length > 0 && shortcuts.length > 0) {
|
401
413
|
const shortcut = findShortcut(shortcuts, keys);
|
402
414
|
invokeShortcut(shortcut);
|
403
415
|
}
|
404
416
|
return () => invokeShortcut.cancel();
|
405
417
|
}, [keys, shortcuts, invokeShortcut]);
|
406
|
-
|
418
|
+
useEffect3(() => {
|
407
419
|
const listener = (event) => {
|
408
420
|
const target = event.target;
|
409
421
|
if (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || target.contentEditable === "true") {
|
@@ -1020,7 +1032,7 @@ var useDynamicSearchResults = (currentArea, limit, q) => {
|
|
1020
1032
|
};
|
1021
1033
|
var useDebouncedSearch = (value, delay) => {
|
1022
1034
|
const [debouncedValue, setDebouncedValue] = useState3(value);
|
1023
|
-
|
1035
|
+
useEffect4(() => {
|
1024
1036
|
const handler = setTimeout(() => {
|
1025
1037
|
setDebouncedValue(value);
|
1026
1038
|
}, delay);
|
@@ -1305,7 +1317,7 @@ var Search = () => {
|
|
1305
1317
|
},
|
1306
1318
|
[onOpenChange, handleReset]
|
1307
1319
|
);
|
1308
|
-
|
1320
|
+
useEffect5(() => {
|
1309
1321
|
handleOpenChange(false);
|
1310
1322
|
}, [location.pathname, handleOpenChange]);
|
1311
1323
|
const handleSelect = (item) => {
|
@@ -1531,12 +1543,13 @@ var CommandInput = forwardRef(
|
|
1531
1543
|
}, ref) => {
|
1532
1544
|
const { t: t2 } = useTranslation4();
|
1533
1545
|
const innerRef = useRef(null);
|
1546
|
+
const direction = useDocumentDirection();
|
1534
1547
|
useImperativeHandle(
|
1535
1548
|
ref,
|
1536
1549
|
() => innerRef.current
|
1537
1550
|
);
|
1538
1551
|
return /* @__PURE__ */ jsxs2("div", { className: "flex flex-col border-b", children: [
|
1539
|
-
/* @__PURE__ */ jsx4("div", { className: "px-4 pt-4", children: /* @__PURE__ */ jsxs2(DropdownMenu, { children: [
|
1552
|
+
/* @__PURE__ */ jsx4("div", { className: "px-4 pt-4", children: /* @__PURE__ */ jsxs2(DropdownMenu, { dir: direction, children: [
|
1540
1553
|
/* @__PURE__ */ jsx4(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs2(
|
1541
1554
|
Badge,
|
1542
1555
|
{
|
@@ -1596,7 +1609,7 @@ var CommandInput = forwardRef(
|
|
1596
1609
|
...props
|
1597
1610
|
}
|
1598
1611
|
),
|
1599
|
-
/* @__PURE__ */ jsxs2("div", { className: "absolute
|
1612
|
+
/* @__PURE__ */ jsxs2("div", { className: "absolute end-4 top-1/2 flex -translate-y-1/2 items-center justify-end gap-x-2", children: [
|
1600
1613
|
isFetching && /* @__PURE__ */ jsx4(Spinner, { className: "text-ui-fg-muted animate-spin" }),
|
1601
1614
|
value && /* @__PURE__ */ jsx4(
|
1602
1615
|
Button,
|
@@ -1691,7 +1704,7 @@ var CommandItem = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ j
|
|
1691
1704
|
CommandItem.displayName = Command.Item.displayName;
|
1692
1705
|
|
1693
1706
|
// src/providers/sidebar-provider/sidebar-provider.tsx
|
1694
|
-
import { useEffect as
|
1707
|
+
import { useEffect as useEffect6, useState as useState5 } from "react";
|
1695
1708
|
import { useLocation as useLocation2 } from "react-router-dom";
|
1696
1709
|
|
1697
1710
|
// src/providers/sidebar-provider/sidebar-context.tsx
|
@@ -1711,7 +1724,7 @@ var SidebarProvider = ({ children }) => {
|
|
1711
1724
|
setMobile(!mobile);
|
1712
1725
|
}
|
1713
1726
|
};
|
1714
|
-
|
1727
|
+
useEffect6(() => {
|
1715
1728
|
setMobile(false);
|
1716
1729
|
}, [pathname]);
|
1717
1730
|
return /* @__PURE__ */ jsx5(SidebarContext.Provider, { value: { desktop, mobile, toggle }, children });
|
@@ -1743,7 +1756,7 @@ var SearchProvider = ({ children }) => {
|
|
1743
1756
|
}
|
1744
1757
|
setOpen(update);
|
1745
1758
|
};
|
1746
|
-
|
1759
|
+
useEffect7(() => {
|
1747
1760
|
const onKeyDown = (e) => {
|
1748
1761
|
if (e.key === "k" && (e.metaKey || e.ctrlKey)) {
|
1749
1762
|
setOpen((prev) => !prev);
|
@@ -1820,7 +1833,7 @@ import { Kbd as Kbd2, Text as Text2, clx as clx2 } from "@medusajs/ui";
|
|
1820
1833
|
import { Collapsible as RadixCollapsible } from "radix-ui";
|
1821
1834
|
import {
|
1822
1835
|
useCallback as useCallback4,
|
1823
|
-
useEffect as
|
1836
|
+
useEffect as useEffect8,
|
1824
1837
|
useState as useState7
|
1825
1838
|
} from "react";
|
1826
1839
|
import { useTranslation as useTranslation5 } from "react-i18next";
|
@@ -1870,7 +1883,7 @@ var NavItem = ({
|
|
1870
1883
|
}) => {
|
1871
1884
|
const { pathname } = useLocation4();
|
1872
1885
|
const [open, setOpen] = useState7(getIsOpen(to, items, pathname));
|
1873
|
-
|
1886
|
+
useEffect8(() => {
|
1874
1887
|
setOpen(getIsOpen(to, items, pathname));
|
1875
1888
|
}, [pathname, to, items]);
|
1876
1889
|
const navLinkClassNames = useCallback4(
|
@@ -2040,119 +2053,7 @@ import { clx as clx3, Drawer, Heading, IconButton as IconButton2, Text as Text3
|
|
2040
2053
|
import { formatDistance } from "date-fns";
|
2041
2054
|
import { useEffect as useEffect9, useState as useState9 } from "react";
|
2042
2055
|
import { useTranslation as useTranslation6 } from "react-i18next";
|
2043
|
-
|
2044
|
-
// src/components/common/infinite-list/infinite-list.tsx
|
2045
|
-
import { useInfiniteQuery } from "@tanstack/react-query";
|
2046
|
-
import { useEffect as useEffect8, useMemo as useMemo4, useRef as useRef2 } from "react";
|
2047
|
-
import { toast } from "@medusajs/ui";
|
2048
|
-
import { Spinner as Spinner3 } from "@medusajs/icons";
|
2049
|
-
import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
2050
|
-
var InfiniteList = ({
|
2051
|
-
queryKey,
|
2052
|
-
queryFn,
|
2053
|
-
queryOptions,
|
2054
|
-
renderItem,
|
2055
|
-
renderEmpty,
|
2056
|
-
responseKey,
|
2057
|
-
pageSize = 20
|
2058
|
-
}) => {
|
2059
|
-
const {
|
2060
|
-
data,
|
2061
|
-
error,
|
2062
|
-
fetchNextPage,
|
2063
|
-
fetchPreviousPage,
|
2064
|
-
hasPreviousPage,
|
2065
|
-
hasNextPage,
|
2066
|
-
isFetching,
|
2067
|
-
isPending
|
2068
|
-
} = useInfiniteQuery({
|
2069
|
-
queryKey,
|
2070
|
-
queryFn: async ({ pageParam = 0 }) => {
|
2071
|
-
return await queryFn({
|
2072
|
-
limit: pageSize,
|
2073
|
-
offset: pageParam
|
2074
|
-
});
|
2075
|
-
},
|
2076
|
-
initialPageParam: 0,
|
2077
|
-
maxPages: 5,
|
2078
|
-
getNextPageParam: (lastPage) => {
|
2079
|
-
const moreItemsExist = lastPage.count > lastPage.offset + lastPage.limit;
|
2080
|
-
return moreItemsExist ? lastPage.offset + lastPage.limit : void 0;
|
2081
|
-
},
|
2082
|
-
getPreviousPageParam: (firstPage) => {
|
2083
|
-
const moreItemsExist = firstPage.offset !== 0;
|
2084
|
-
return moreItemsExist ? Math.max(firstPage.offset - firstPage.limit, 0) : void 0;
|
2085
|
-
},
|
2086
|
-
...queryOptions
|
2087
|
-
});
|
2088
|
-
const items = useMemo4(() => {
|
2089
|
-
return data?.pages.flatMap((p) => p[responseKey]) ?? [];
|
2090
|
-
}, [data, responseKey]);
|
2091
|
-
const parentRef = useRef2(null);
|
2092
|
-
const startObserver = useRef2();
|
2093
|
-
const endObserver = useRef2();
|
2094
|
-
useEffect8(() => {
|
2095
|
-
if (isPending) {
|
2096
|
-
return;
|
2097
|
-
}
|
2098
|
-
if (!isFetching) {
|
2099
|
-
startObserver.current = new IntersectionObserver(
|
2100
|
-
(entries) => {
|
2101
|
-
if (entries[0].isIntersecting && hasPreviousPage) {
|
2102
|
-
startObserver.current?.disconnect();
|
2103
|
-
fetchPreviousPage();
|
2104
|
-
}
|
2105
|
-
},
|
2106
|
-
{
|
2107
|
-
threshold: 0.5
|
2108
|
-
}
|
2109
|
-
);
|
2110
|
-
endObserver.current = new IntersectionObserver(
|
2111
|
-
(entries) => {
|
2112
|
-
if (entries[0].isIntersecting && hasNextPage) {
|
2113
|
-
endObserver.current?.disconnect();
|
2114
|
-
fetchNextPage();
|
2115
|
-
}
|
2116
|
-
},
|
2117
|
-
{
|
2118
|
-
threshold: 0.5
|
2119
|
-
}
|
2120
|
-
);
|
2121
|
-
if (parentRef.current?.firstChild) {
|
2122
|
-
startObserver.current?.observe(parentRef.current.firstChild);
|
2123
|
-
}
|
2124
|
-
if (parentRef.current?.lastChild) {
|
2125
|
-
endObserver.current?.observe(parentRef.current.lastChild);
|
2126
|
-
}
|
2127
|
-
}
|
2128
|
-
return () => {
|
2129
|
-
startObserver.current?.disconnect();
|
2130
|
-
endObserver.current?.disconnect();
|
2131
|
-
};
|
2132
|
-
}, [
|
2133
|
-
fetchNextPage,
|
2134
|
-
fetchPreviousPage,
|
2135
|
-
hasNextPage,
|
2136
|
-
hasPreviousPage,
|
2137
|
-
isFetching,
|
2138
|
-
isPending
|
2139
|
-
]);
|
2140
|
-
useEffect8(() => {
|
2141
|
-
if (error) {
|
2142
|
-
toast.error(error.message);
|
2143
|
-
}
|
2144
|
-
}, [error]);
|
2145
|
-
if (isPending) {
|
2146
|
-
return /* @__PURE__ */ jsx10("div", { className: "flex h-full flex-col items-center justify-center", children: /* @__PURE__ */ jsx10(Spinner3, { className: "animate-spin" }) });
|
2147
|
-
}
|
2148
|
-
return /* @__PURE__ */ jsxs5("div", { ref: parentRef, className: "h-full", children: [
|
2149
|
-
items?.length ? items.map((item) => /* @__PURE__ */ jsx10("div", { children: renderItem(item) }, item.id)) : renderEmpty(),
|
2150
|
-
isFetching && /* @__PURE__ */ jsx10("div", { className: "flex flex-col items-center justify-center py-4", children: /* @__PURE__ */ jsx10(Spinner3, { className: "animate-spin" }) })
|
2151
|
-
] });
|
2152
|
-
};
|
2153
|
-
|
2154
|
-
// src/components/layout/notifications/notifications.tsx
|
2155
|
-
import { Fragment as Fragment2, jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
2056
|
+
import { Fragment as Fragment2, jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
2156
2057
|
var LAST_READ_NOTIFICATION_KEY = "notificationsLastReadAt";
|
2157
2058
|
var Notifications = () => {
|
2158
2059
|
const { t: t2 } = useTranslation6();
|
@@ -2182,31 +2083,31 @@ var Notifications = () => {
|
|
2182
2083
|
setLastReadAt(localStorage.getItem(LAST_READ_NOTIFICATION_KEY));
|
2183
2084
|
}
|
2184
2085
|
};
|
2185
|
-
return /* @__PURE__ */
|
2186
|
-
/* @__PURE__ */
|
2086
|
+
return /* @__PURE__ */ jsxs5(Drawer, { open, onOpenChange: handleOnOpen, children: [
|
2087
|
+
/* @__PURE__ */ jsx10(Drawer.Trigger, { asChild: true, children: /* @__PURE__ */ jsx10(
|
2187
2088
|
IconButton2,
|
2188
2089
|
{
|
2189
2090
|
variant: "transparent",
|
2190
2091
|
size: "small",
|
2191
2092
|
className: "text-ui-fg-muted hover:text-ui-fg-subtle",
|
2192
|
-
children: hasUnread ? /* @__PURE__ */
|
2093
|
+
children: hasUnread ? /* @__PURE__ */ jsx10(BellAlertDone, {}) : /* @__PURE__ */ jsx10(BellAlert, {})
|
2193
2094
|
}
|
2194
2095
|
) }),
|
2195
|
-
/* @__PURE__ */
|
2196
|
-
/* @__PURE__ */
|
2197
|
-
/* @__PURE__ */
|
2198
|
-
/* @__PURE__ */
|
2096
|
+
/* @__PURE__ */ jsxs5(Drawer.Content, { children: [
|
2097
|
+
/* @__PURE__ */ jsxs5(Drawer.Header, { children: [
|
2098
|
+
/* @__PURE__ */ jsx10(Drawer.Title, { asChild: true, children: /* @__PURE__ */ jsx10(Heading, { children: t2("notifications.domain") }) }),
|
2099
|
+
/* @__PURE__ */ jsx10(Drawer.Description, { className: "sr-only", children: t2("notifications.accessibility.description") })
|
2199
2100
|
] }),
|
2200
|
-
/* @__PURE__ */
|
2101
|
+
/* @__PURE__ */ jsx10(Drawer.Body, { className: "overflow-y-auto px-0", children: /* @__PURE__ */ jsx10(
|
2201
2102
|
InfiniteList,
|
2202
2103
|
{
|
2203
2104
|
responseKey: "notifications",
|
2204
2105
|
queryKey: notificationQueryKeys.all,
|
2205
2106
|
queryFn: (params) => sdk.admin.notification.list(params),
|
2206
2107
|
queryOptions: { enabled: open },
|
2207
|
-
renderEmpty: () => /* @__PURE__ */
|
2108
|
+
renderEmpty: () => /* @__PURE__ */ jsx10(NotificationsEmptyState, { t: t2 }),
|
2208
2109
|
renderItem: (notification) => {
|
2209
|
-
return /* @__PURE__ */
|
2110
|
+
return /* @__PURE__ */ jsx10(
|
2210
2111
|
Notification,
|
2211
2112
|
{
|
2212
2113
|
notification,
|
@@ -2228,14 +2129,14 @@ var Notification = ({
|
|
2228
2129
|
if (!data?.title) {
|
2229
2130
|
return null;
|
2230
2131
|
}
|
2231
|
-
return /* @__PURE__ */
|
2232
|
-
/* @__PURE__ */
|
2233
|
-
/* @__PURE__ */
|
2234
|
-
/* @__PURE__ */
|
2235
|
-
/* @__PURE__ */
|
2236
|
-
/* @__PURE__ */
|
2237
|
-
/* @__PURE__ */
|
2238
|
-
/* @__PURE__ */
|
2132
|
+
return /* @__PURE__ */ jsx10(Fragment2, { children: /* @__PURE__ */ jsxs5("div", { className: "relative flex items-start justify-center gap-3 border-b p-6", children: [
|
2133
|
+
/* @__PURE__ */ jsx10("div", { className: "text-ui-fg-muted flex size-5 items-center justify-center", children: /* @__PURE__ */ jsx10(InformationCircleSolid, {}) }),
|
2134
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex w-full flex-col gap-y-3", children: [
|
2135
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex flex-col", children: [
|
2136
|
+
/* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between", children: [
|
2137
|
+
/* @__PURE__ */ jsx10(Text3, { size: "small", leading: "compact", weight: "plus", children: data.title }),
|
2138
|
+
/* @__PURE__ */ jsxs5("div", { className: "align-center flex items-center justify-center gap-2", children: [
|
2139
|
+
/* @__PURE__ */ jsx10(
|
2239
2140
|
Text3,
|
2240
2141
|
{
|
2241
2142
|
as: "span",
|
@@ -2250,7 +2151,7 @@ var Notification = ({
|
|
2250
2151
|
})
|
2251
2152
|
}
|
2252
2153
|
),
|
2253
|
-
unread && /* @__PURE__ */
|
2154
|
+
unread && /* @__PURE__ */ jsx10(
|
2254
2155
|
"div",
|
2255
2156
|
{
|
2256
2157
|
className: "bg-ui-bg-interactive h-2 w-2 rounded",
|
@@ -2259,7 +2160,7 @@ var Notification = ({
|
|
2259
2160
|
)
|
2260
2161
|
] })
|
2261
2162
|
] }),
|
2262
|
-
!!data.description && /* @__PURE__ */
|
2163
|
+
!!data.description && /* @__PURE__ */ jsx10(
|
2263
2164
|
Text3,
|
2264
2165
|
{
|
2265
2166
|
className: "text-ui-fg-subtle whitespace-pre-line",
|
@@ -2268,7 +2169,7 @@ var Notification = ({
|
|
2268
2169
|
}
|
2269
2170
|
)
|
2270
2171
|
] }),
|
2271
|
-
!!data?.file?.url && /* @__PURE__ */
|
2172
|
+
!!data?.file?.url && /* @__PURE__ */ jsx10(
|
2272
2173
|
FilePreview,
|
2273
2174
|
{
|
2274
2175
|
filename: data.file.filename ?? "",
|
@@ -2280,10 +2181,10 @@ var Notification = ({
|
|
2280
2181
|
] }) });
|
2281
2182
|
};
|
2282
2183
|
var NotificationsEmptyState = ({ t: t2 }) => {
|
2283
|
-
return /* @__PURE__ */
|
2284
|
-
/* @__PURE__ */
|
2285
|
-
/* @__PURE__ */
|
2286
|
-
/* @__PURE__ */
|
2184
|
+
return /* @__PURE__ */ jsxs5("div", { className: "flex h-full flex-col items-center justify-center", children: [
|
2185
|
+
/* @__PURE__ */ jsx10(BellAlertDone, {}),
|
2186
|
+
/* @__PURE__ */ jsx10(Text3, { size: "small", leading: "compact", weight: "plus", className: "mt-3", children: t2("notifications.emptyState.title") }),
|
2187
|
+
/* @__PURE__ */ jsx10(
|
2287
2188
|
Text3,
|
2288
2189
|
{
|
2289
2190
|
size: "small",
|
@@ -2315,20 +2216,20 @@ var useUnreadNotifications = () => {
|
|
2315
2216
|
};
|
2316
2217
|
|
2317
2218
|
// src/components/layout/shell/shell.tsx
|
2318
|
-
import { jsx as
|
2219
|
+
import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
|
2319
2220
|
var Shell = ({ children }) => {
|
2320
2221
|
const globalShortcuts = useGlobalShortcuts();
|
2321
2222
|
const navigation = useNavigation();
|
2322
2223
|
const loading = navigation.state === "loading";
|
2323
|
-
return /* @__PURE__ */
|
2324
|
-
/* @__PURE__ */
|
2325
|
-
/* @__PURE__ */
|
2326
|
-
/* @__PURE__ */
|
2327
|
-
/* @__PURE__ */
|
2224
|
+
return /* @__PURE__ */ jsx11(KeybindProvider, { shortcuts: globalShortcuts, children: /* @__PURE__ */ jsxs6("div", { className: "relative flex h-screen flex-col items-start overflow-hidden lg:flex-row", children: [
|
2225
|
+
/* @__PURE__ */ jsx11(NavigationBar, { loading }),
|
2226
|
+
/* @__PURE__ */ jsxs6("div", { children: [
|
2227
|
+
/* @__PURE__ */ jsx11(MobileSidebarContainer, { children }),
|
2228
|
+
/* @__PURE__ */ jsx11(DesktopSidebarContainer, { children })
|
2328
2229
|
] }),
|
2329
|
-
/* @__PURE__ */
|
2330
|
-
/* @__PURE__ */
|
2331
|
-
/* @__PURE__ */
|
2230
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex h-screen w-full flex-col overflow-auto", children: [
|
2231
|
+
/* @__PURE__ */ jsx11(Topbar, {}),
|
2232
|
+
/* @__PURE__ */ jsx11(
|
2332
2233
|
"main",
|
2333
2234
|
{
|
2334
2235
|
className: clx4(
|
@@ -2337,7 +2238,7 @@ var Shell = ({ children }) => {
|
|
2337
2238
|
"opacity-25": loading
|
2338
2239
|
}
|
2339
2240
|
),
|
2340
|
-
children: /* @__PURE__ */
|
2241
|
+
children: /* @__PURE__ */ jsx11(Gutter, { children: /* @__PURE__ */ jsx11(Outlet2, {}) })
|
2341
2242
|
}
|
2342
2243
|
)
|
2343
2244
|
] })
|
@@ -2358,10 +2259,10 @@ var NavigationBar = ({ loading }) => {
|
|
2358
2259
|
clearTimeout(timeout);
|
2359
2260
|
};
|
2360
2261
|
}, [loading]);
|
2361
|
-
return /* @__PURE__ */
|
2262
|
+
return /* @__PURE__ */ jsx11("div", { className: "fixed inset-x-0 top-0 z-50 h-1", children: /* @__PURE__ */ jsx11(AnimatePresence, { children: showBar ? /* @__PURE__ */ jsx11(ProgressBar, {}) : null }) });
|
2362
2263
|
};
|
2363
2264
|
var Gutter = ({ children }) => {
|
2364
|
-
return /* @__PURE__ */
|
2265
|
+
return /* @__PURE__ */ jsx11("div", { className: "flex w-full max-w-[1600px] flex-col gap-y-2 p-3", children });
|
2365
2266
|
};
|
2366
2267
|
var Breadcrumbs = () => {
|
2367
2268
|
const matches = useMatches();
|
@@ -2380,7 +2281,7 @@ var Breadcrumbs = () => {
|
|
2380
2281
|
path: match.pathname
|
2381
2282
|
};
|
2382
2283
|
}).filter(Boolean);
|
2383
|
-
return /* @__PURE__ */
|
2284
|
+
return /* @__PURE__ */ jsx11(
|
2384
2285
|
"ol",
|
2385
2286
|
{
|
2386
2287
|
className: clx4(
|
@@ -2389,17 +2290,17 @@ var Breadcrumbs = () => {
|
|
2389
2290
|
children: crumbs.map((crumb, index) => {
|
2390
2291
|
const isLast = index === crumbs.length - 1;
|
2391
2292
|
const isSingle = crumbs.length === 1;
|
2392
|
-
return /* @__PURE__ */
|
2393
|
-
!isLast ? /* @__PURE__ */
|
2293
|
+
return /* @__PURE__ */ jsxs6("li", { className: clx4("flex items-center"), children: [
|
2294
|
+
!isLast ? /* @__PURE__ */ jsx11(
|
2394
2295
|
Link,
|
2395
2296
|
{
|
2396
2297
|
className: "transition-fg hover:text-ui-fg-subtle",
|
2397
2298
|
to: crumb.path,
|
2398
2299
|
children: crumb.label
|
2399
2300
|
}
|
2400
|
-
) : /* @__PURE__ */
|
2401
|
-
!isSingle && /* @__PURE__ */
|
2402
|
-
/* @__PURE__ */
|
2301
|
+
) : /* @__PURE__ */ jsxs6("div", { children: [
|
2302
|
+
!isSingle && /* @__PURE__ */ jsx11("span", { className: "block lg:hidden", children: "..." }),
|
2303
|
+
/* @__PURE__ */ jsx11(
|
2403
2304
|
"span",
|
2404
2305
|
{
|
2405
2306
|
className: clx4({
|
@@ -2410,7 +2311,7 @@ var Breadcrumbs = () => {
|
|
2410
2311
|
index
|
2411
2312
|
)
|
2412
2313
|
] }),
|
2413
|
-
!isLast && /* @__PURE__ */
|
2314
|
+
!isLast && /* @__PURE__ */ jsx11("span", { className: "mx-2", children: /* @__PURE__ */ jsx11(TriangleRightMini, { className: "rtl:rotate-180" }) })
|
2414
2315
|
] }, index);
|
2415
2316
|
})
|
2416
2317
|
}
|
@@ -2418,44 +2319,44 @@ var Breadcrumbs = () => {
|
|
2418
2319
|
};
|
2419
2320
|
var ToggleSidebar = () => {
|
2420
2321
|
const { toggle } = useSidebar();
|
2421
|
-
return /* @__PURE__ */
|
2422
|
-
/* @__PURE__ */
|
2322
|
+
return /* @__PURE__ */ jsxs6("div", { children: [
|
2323
|
+
/* @__PURE__ */ jsx11(
|
2423
2324
|
IconButton3,
|
2424
2325
|
{
|
2425
2326
|
className: "hidden lg:flex",
|
2426
2327
|
variant: "transparent",
|
2427
2328
|
onClick: () => toggle("desktop"),
|
2428
2329
|
size: "small",
|
2429
|
-
children: /* @__PURE__ */
|
2330
|
+
children: /* @__PURE__ */ jsx11(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
|
2430
2331
|
}
|
2431
2332
|
),
|
2432
|
-
/* @__PURE__ */
|
2333
|
+
/* @__PURE__ */ jsx11(
|
2433
2334
|
IconButton3,
|
2434
2335
|
{
|
2435
2336
|
className: "hidden max-lg:flex",
|
2436
2337
|
variant: "transparent",
|
2437
2338
|
onClick: () => toggle("mobile"),
|
2438
2339
|
size: "small",
|
2439
|
-
children: /* @__PURE__ */
|
2340
|
+
children: /* @__PURE__ */ jsx11(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
|
2440
2341
|
}
|
2441
2342
|
)
|
2442
2343
|
] });
|
2443
2344
|
};
|
2444
2345
|
var Topbar = () => {
|
2445
|
-
return /* @__PURE__ */
|
2446
|
-
/* @__PURE__ */
|
2447
|
-
/* @__PURE__ */
|
2448
|
-
/* @__PURE__ */
|
2346
|
+
return /* @__PURE__ */ jsxs6("div", { className: "grid w-full grid-cols-2 border-b p-3", children: [
|
2347
|
+
/* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-x-1.5", children: [
|
2348
|
+
/* @__PURE__ */ jsx11(ToggleSidebar, {}),
|
2349
|
+
/* @__PURE__ */ jsx11(Breadcrumbs, {})
|
2449
2350
|
] }),
|
2450
|
-
/* @__PURE__ */
|
2351
|
+
/* @__PURE__ */ jsx11("div", { className: "flex items-center justify-end gap-x-3", children: /* @__PURE__ */ jsx11(Notifications, {}) })
|
2451
2352
|
] });
|
2452
2353
|
};
|
2453
2354
|
var DesktopSidebarContainer = ({ children }) => {
|
2454
2355
|
const { desktop } = useSidebar();
|
2455
|
-
return /* @__PURE__ */
|
2356
|
+
return /* @__PURE__ */ jsx11(
|
2456
2357
|
"div",
|
2457
2358
|
{
|
2458
|
-
className: clx4("hidden h-screen w-[220px] border-
|
2359
|
+
className: clx4("hidden h-screen w-[220px] border-e", {
|
2459
2360
|
"lg:flex": desktop
|
2460
2361
|
}),
|
2461
2362
|
children
|
@@ -2465,8 +2366,8 @@ var DesktopSidebarContainer = ({ children }) => {
|
|
2465
2366
|
var MobileSidebarContainer = ({ children }) => {
|
2466
2367
|
const { t: t2 } = useTranslation7();
|
2467
2368
|
const { mobile, toggle } = useSidebar();
|
2468
|
-
return /* @__PURE__ */
|
2469
|
-
/* @__PURE__ */
|
2369
|
+
return /* @__PURE__ */ jsx11(RadixDialog2.Root, { open: mobile, onOpenChange: () => toggle("mobile"), children: /* @__PURE__ */ jsxs6(RadixDialog2.Portal, { children: [
|
2370
|
+
/* @__PURE__ */ jsx11(
|
2470
2371
|
RadixDialog2.Overlay,
|
2471
2372
|
{
|
2472
2373
|
className: clx4(
|
@@ -2475,26 +2376,26 @@ var MobileSidebarContainer = ({ children }) => {
|
|
2475
2376
|
)
|
2476
2377
|
}
|
2477
2378
|
),
|
2478
|
-
/* @__PURE__ */
|
2379
|
+
/* @__PURE__ */ jsxs6(
|
2479
2380
|
RadixDialog2.Content,
|
2480
2381
|
{
|
2481
2382
|
className: clx4(
|
2482
|
-
"bg-ui-bg-subtle shadow-elevation-modal fixed inset-y-2
|
2483
|
-
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:slide-out-to-
|
2383
|
+
"bg-ui-bg-subtle shadow-elevation-modal fixed inset-y-2 start-2 flex w-full max-w-[304px] flex-col overflow-hidden rounded-lg border-r",
|
2384
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:slide-out-to-start-1/2 data-[state=open]:slide-in-from-start-1/2 duration-200"
|
2484
2385
|
),
|
2485
2386
|
children: [
|
2486
|
-
/* @__PURE__ */
|
2487
|
-
/* @__PURE__ */
|
2387
|
+
/* @__PURE__ */ jsxs6("div", { className: "p-3", children: [
|
2388
|
+
/* @__PURE__ */ jsx11(RadixDialog2.Close, { asChild: true, children: /* @__PURE__ */ jsx11(
|
2488
2389
|
IconButton3,
|
2489
2390
|
{
|
2490
2391
|
size: "small",
|
2491
2392
|
variant: "transparent",
|
2492
2393
|
className: "text-ui-fg-subtle",
|
2493
|
-
children: /* @__PURE__ */
|
2394
|
+
children: /* @__PURE__ */ jsx11(XMark, {})
|
2494
2395
|
}
|
2495
2396
|
) }),
|
2496
|
-
/* @__PURE__ */
|
2497
|
-
/* @__PURE__ */
|
2397
|
+
/* @__PURE__ */ jsx11(RadixDialog2.Title, { className: "sr-only", children: t2("app.nav.accessibility.title") }),
|
2398
|
+
/* @__PURE__ */ jsx11(RadixDialog2.Description, { className: "sr-only", children: t2("app.nav.accessibility.description") })
|
2498
2399
|
] }),
|
2499
2400
|
children
|
2500
2401
|
]
|
@@ -2531,46 +2432,47 @@ import { Dialog as RadixDialog3 } from "radix-ui";
|
|
2531
2432
|
import { useTranslation as useTranslation8 } from "react-i18next";
|
2532
2433
|
import { useState as useState11 } from "react";
|
2533
2434
|
import { Link as Link2, useLocation as useLocation5, useNavigate as useNavigate3 } from "react-router-dom";
|
2534
|
-
import { jsx as
|
2435
|
+
import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
|
2535
2436
|
var UserMenu = () => {
|
2536
2437
|
const { t: t2 } = useTranslation8();
|
2537
2438
|
const location = useLocation5();
|
2439
|
+
const direction = useDocumentDirection();
|
2538
2440
|
const [openMenu, setOpenMenu] = useState11(false);
|
2539
2441
|
const [openModal, setOpenModal] = useState11(false);
|
2540
2442
|
const toggleModal = () => {
|
2541
2443
|
setOpenMenu(false);
|
2542
2444
|
setOpenModal(!openModal);
|
2543
2445
|
};
|
2544
|
-
return /* @__PURE__ */
|
2545
|
-
/* @__PURE__ */
|
2546
|
-
/* @__PURE__ */
|
2547
|
-
/* @__PURE__ */
|
2548
|
-
/* @__PURE__ */
|
2549
|
-
/* @__PURE__ */
|
2550
|
-
/* @__PURE__ */
|
2551
|
-
/* @__PURE__ */
|
2446
|
+
return /* @__PURE__ */ jsxs7("div", { children: [
|
2447
|
+
/* @__PURE__ */ jsxs7(DropdownMenu2, { dir: direction, open: openMenu, onOpenChange: setOpenMenu, children: [
|
2448
|
+
/* @__PURE__ */ jsx12(UserBadge, {}),
|
2449
|
+
/* @__PURE__ */ jsxs7(DropdownMenu2.Content, { className: "min-w-[var(--radix-dropdown-menu-trigger-width)] max-w-[var(--radix-dropdown-menu-trigger-width)]", children: [
|
2450
|
+
/* @__PURE__ */ jsx12(UserItem, {}),
|
2451
|
+
/* @__PURE__ */ jsx12(DropdownMenu2.Separator, {}),
|
2452
|
+
/* @__PURE__ */ jsx12(DropdownMenu2.Item, { asChild: true, children: /* @__PURE__ */ jsxs7(Link2, { to: "/settings/profile", state: { from: location.pathname }, children: [
|
2453
|
+
/* @__PURE__ */ jsx12(UserIcon, { className: "text-ui-fg-subtle me-2" }),
|
2552
2454
|
t2("app.menus.user.profileSettings")
|
2553
2455
|
] }) }),
|
2554
|
-
/* @__PURE__ */
|
2555
|
-
/* @__PURE__ */
|
2556
|
-
/* @__PURE__ */
|
2456
|
+
/* @__PURE__ */ jsx12(DropdownMenu2.Separator, {}),
|
2457
|
+
/* @__PURE__ */ jsx12(DropdownMenu2.Item, { asChild: true, children: /* @__PURE__ */ jsxs7(Link2, { to: "https://docs.medusajs.com", target: "_blank", children: [
|
2458
|
+
/* @__PURE__ */ jsx12(BookOpen, { className: "text-ui-fg-subtle me-2" }),
|
2557
2459
|
t2("app.menus.user.documentation")
|
2558
2460
|
] }) }),
|
2559
|
-
/* @__PURE__ */
|
2560
|
-
/* @__PURE__ */
|
2461
|
+
/* @__PURE__ */ jsx12(DropdownMenu2.Item, { asChild: true, children: /* @__PURE__ */ jsxs7(Link2, { to: "https://medusajs.com/changelog/", target: "_blank", children: [
|
2462
|
+
/* @__PURE__ */ jsx12(TimelineVertical, { className: "text-ui-fg-subtle me-2" }),
|
2561
2463
|
t2("app.menus.user.changelog")
|
2562
2464
|
] }) }),
|
2563
|
-
/* @__PURE__ */
|
2564
|
-
/* @__PURE__ */
|
2565
|
-
/* @__PURE__ */
|
2465
|
+
/* @__PURE__ */ jsx12(DropdownMenu2.Separator, {}),
|
2466
|
+
/* @__PURE__ */ jsxs7(DropdownMenu2.Item, { onClick: toggleModal, children: [
|
2467
|
+
/* @__PURE__ */ jsx12(Keyboard, { className: "text-ui-fg-subtle me-2" }),
|
2566
2468
|
t2("app.menus.user.shortcuts")
|
2567
2469
|
] }),
|
2568
|
-
/* @__PURE__ */
|
2569
|
-
/* @__PURE__ */
|
2570
|
-
/* @__PURE__ */
|
2470
|
+
/* @__PURE__ */ jsx12(ThemeToggle, {}),
|
2471
|
+
/* @__PURE__ */ jsx12(DropdownMenu2.Separator, {}),
|
2472
|
+
/* @__PURE__ */ jsx12(Logout, {})
|
2571
2473
|
] })
|
2572
2474
|
] }),
|
2573
|
-
/* @__PURE__ */
|
2475
|
+
/* @__PURE__ */ jsx12(GlobalKeybindsModal, { open: openModal, onOpenChange: setOpenModal })
|
2574
2476
|
] });
|
2575
2477
|
};
|
2576
2478
|
var UserBadge = () => {
|
@@ -2579,27 +2481,27 @@ var UserBadge = () => {
|
|
2579
2481
|
const displayName = name || user?.email;
|
2580
2482
|
const fallback = displayName ? displayName[0].toUpperCase() : null;
|
2581
2483
|
if (isPending) {
|
2582
|
-
return /* @__PURE__ */
|
2583
|
-
/* @__PURE__ */
|
2584
|
-
/* @__PURE__ */
|
2484
|
+
return /* @__PURE__ */ jsxs7("button", { className: "shadow-borders-base flex max-w-[192px] select-none items-center gap-x-2 overflow-hidden text-ellipsis whitespace-nowrap rounded-full py-1 ps-1 pe-2.5", children: [
|
2485
|
+
/* @__PURE__ */ jsx12(Skeleton, { className: "h-5 w-5 rounded-full" }),
|
2486
|
+
/* @__PURE__ */ jsx12(Skeleton, { className: "h-[9px] w-[70px]" })
|
2585
2487
|
] });
|
2586
2488
|
}
|
2587
2489
|
if (isError) {
|
2588
2490
|
throw error;
|
2589
2491
|
}
|
2590
|
-
return /* @__PURE__ */
|
2492
|
+
return /* @__PURE__ */ jsx12("div", { className: "p-3", children: /* @__PURE__ */ jsxs7(
|
2591
2493
|
DropdownMenu2.Trigger,
|
2592
2494
|
{
|
2593
2495
|
disabled: !user,
|
2594
2496
|
className: clx5(
|
2595
|
-
"bg-ui-bg-subtle grid w-full cursor-pointer grid-cols-[24px_1fr_15px] items-center gap-2 rounded-md py-1
|
2497
|
+
"bg-ui-bg-subtle grid w-full cursor-pointer grid-cols-[24px_1fr_15px] items-center gap-2 rounded-md py-1 ps-0.5 pe-2 outline-none",
|
2596
2498
|
"hover:bg-ui-bg-subtle-hover",
|
2597
2499
|
"data-[state=open]:bg-ui-bg-subtle-hover",
|
2598
2500
|
"focus-visible:shadow-borders-focus"
|
2599
2501
|
),
|
2600
2502
|
children: [
|
2601
|
-
/* @__PURE__ */
|
2602
|
-
/* @__PURE__ */
|
2503
|
+
/* @__PURE__ */ jsx12("div", { className: "flex size-6 items-center justify-center", children: fallback ? /* @__PURE__ */ jsx12(Avatar, { size: "xsmall", fallback }) : /* @__PURE__ */ jsx12(Skeleton, { className: "h-6 w-6 rounded-full" }) }),
|
2504
|
+
/* @__PURE__ */ jsx12("div", { className: "flex items-center overflow-hidden", children: displayName ? /* @__PURE__ */ jsx12(
|
2603
2505
|
Text4,
|
2604
2506
|
{
|
2605
2507
|
size: "xsmall",
|
@@ -2608,8 +2510,8 @@ var UserBadge = () => {
|
|
2608
2510
|
className: "truncate",
|
2609
2511
|
children: displayName
|
2610
2512
|
}
|
2611
|
-
) : /* @__PURE__ */
|
2612
|
-
/* @__PURE__ */
|
2513
|
+
) : /* @__PURE__ */ jsx12(Skeleton, { className: "h-[9px] w-[70px]" }) }),
|
2514
|
+
/* @__PURE__ */ jsx12(EllipsisHorizontal, { className: "text-ui-fg-muted" })
|
2613
2515
|
]
|
2614
2516
|
}
|
2615
2517
|
) });
|
@@ -2617,13 +2519,13 @@ var UserBadge = () => {
|
|
2617
2519
|
var ThemeToggle = () => {
|
2618
2520
|
const { t: t2 } = useTranslation8();
|
2619
2521
|
const { theme, setTheme } = useTheme();
|
2620
|
-
return /* @__PURE__ */
|
2621
|
-
/* @__PURE__ */
|
2622
|
-
/* @__PURE__ */
|
2623
|
-
t2("app.menus.user.theme.label")
|
2522
|
+
return /* @__PURE__ */ jsxs7(DropdownMenu2.SubMenu, { children: [
|
2523
|
+
/* @__PURE__ */ jsxs7(DropdownMenu2.SubMenuTrigger, { dir: "ltr", className: "rounded-md rtl:rotate-180", children: [
|
2524
|
+
/* @__PURE__ */ jsx12(CircleHalfSolid, { className: "text-ui-fg-subtle me-2" }),
|
2525
|
+
/* @__PURE__ */ jsx12("span", { className: "rtl:rotate-180", children: t2("app.menus.user.theme.label") })
|
2624
2526
|
] }),
|
2625
|
-
/* @__PURE__ */
|
2626
|
-
/* @__PURE__ */
|
2527
|
+
/* @__PURE__ */ jsx12(DropdownMenu2.SubMenuContent, { children: /* @__PURE__ */ jsxs7(DropdownMenu2.RadioGroup, { value: theme, children: [
|
2528
|
+
/* @__PURE__ */ jsx12(
|
2627
2529
|
DropdownMenu2.RadioItem,
|
2628
2530
|
{
|
2629
2531
|
value: "system",
|
@@ -2634,7 +2536,7 @@ var ThemeToggle = () => {
|
|
2634
2536
|
children: t2("app.menus.user.theme.system")
|
2635
2537
|
}
|
2636
2538
|
),
|
2637
|
-
/* @__PURE__ */
|
2539
|
+
/* @__PURE__ */ jsx12(
|
2638
2540
|
DropdownMenu2.RadioItem,
|
2639
2541
|
{
|
2640
2542
|
value: "light",
|
@@ -2645,7 +2547,7 @@ var ThemeToggle = () => {
|
|
2645
2547
|
children: t2("app.menus.user.theme.light")
|
2646
2548
|
}
|
2647
2549
|
),
|
2648
|
-
/* @__PURE__ */
|
2550
|
+
/* @__PURE__ */ jsx12(
|
2649
2551
|
DropdownMenu2.RadioItem,
|
2650
2552
|
{
|
2651
2553
|
value: "dark",
|
@@ -2671,9 +2573,9 @@ var Logout = () => {
|
|
2671
2573
|
}
|
2672
2574
|
});
|
2673
2575
|
};
|
2674
|
-
return /* @__PURE__ */
|
2675
|
-
/* @__PURE__ */
|
2676
|
-
/* @__PURE__ */
|
2576
|
+
return /* @__PURE__ */ jsx12(DropdownMenu2.Item, { onClick: handleLogout, children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-2", children: [
|
2577
|
+
/* @__PURE__ */ jsx12(OpenRectArrowOut, { className: "text-ui-fg-subtle" }),
|
2578
|
+
/* @__PURE__ */ jsx12("span", { children: t2("app.menus.actions.logout") })
|
2677
2579
|
] }) });
|
2678
2580
|
};
|
2679
2581
|
var GlobalKeybindsModal = (props) => {
|
@@ -2683,21 +2585,21 @@ var GlobalKeybindsModal = (props) => {
|
|
2683
2585
|
const searchResults = searchValue ? globalShortcuts.filter((shortcut) => {
|
2684
2586
|
return shortcut.label.toLowerCase().includes(searchValue?.toLowerCase());
|
2685
2587
|
}) : globalShortcuts;
|
2686
|
-
return /* @__PURE__ */
|
2687
|
-
/* @__PURE__ */
|
2688
|
-
/* @__PURE__ */
|
2689
|
-
/* @__PURE__ */
|
2690
|
-
/* @__PURE__ */
|
2691
|
-
/* @__PURE__ */
|
2692
|
-
/* @__PURE__ */
|
2693
|
-
/* @__PURE__ */
|
2588
|
+
return /* @__PURE__ */ jsx12(RadixDialog3.Root, { ...props, children: /* @__PURE__ */ jsxs7(RadixDialog3.Portal, { children: [
|
2589
|
+
/* @__PURE__ */ jsx12(RadixDialog3.Overlay, { className: "bg-ui-bg-overlay fixed inset-0" }),
|
2590
|
+
/* @__PURE__ */ jsxs7(RadixDialog3.Content, { className: "bg-ui-bg-subtle shadow-elevation-modal fixed left-[50%] top-[50%] flex h-full max-h-[612px] w-full max-w-[560px] translate-x-[-50%] translate-y-[-50%] flex-col divide-y overflow-hidden rounded-lg", children: [
|
2591
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-y-3 px-6 py-4", children: [
|
2592
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex items-center justify-between", children: [
|
2593
|
+
/* @__PURE__ */ jsxs7("div", { children: [
|
2594
|
+
/* @__PURE__ */ jsx12(RadixDialog3.Title, { asChild: true, children: /* @__PURE__ */ jsx12(Heading2, { children: t2("app.menus.user.shortcuts") }) }),
|
2595
|
+
/* @__PURE__ */ jsx12(RadixDialog3.Description, { className: "sr-only" })
|
2694
2596
|
] }),
|
2695
|
-
/* @__PURE__ */
|
2696
|
-
/* @__PURE__ */
|
2697
|
-
/* @__PURE__ */
|
2597
|
+
/* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-2", children: [
|
2598
|
+
/* @__PURE__ */ jsx12(Kbd3, { children: "esc" }),
|
2599
|
+
/* @__PURE__ */ jsx12(RadixDialog3.Close, { asChild: true, children: /* @__PURE__ */ jsx12(IconButton4, { variant: "transparent", size: "small", children: /* @__PURE__ */ jsx12(XMark2, {}) }) })
|
2698
2600
|
] })
|
2699
2601
|
] }),
|
2700
|
-
/* @__PURE__ */
|
2602
|
+
/* @__PURE__ */ jsx12("div", { children: /* @__PURE__ */ jsx12(
|
2701
2603
|
Input,
|
2702
2604
|
{
|
2703
2605
|
type: "search",
|
@@ -2706,17 +2608,17 @@ var GlobalKeybindsModal = (props) => {
|
|
2706
2608
|
}
|
2707
2609
|
) })
|
2708
2610
|
] }),
|
2709
|
-
/* @__PURE__ */
|
2710
|
-
return /* @__PURE__ */
|
2611
|
+
/* @__PURE__ */ jsx12("div", { className: "flex flex-col divide-y overflow-y-auto", children: searchResults.map((shortcut, index) => {
|
2612
|
+
return /* @__PURE__ */ jsxs7(
|
2711
2613
|
"div",
|
2712
2614
|
{
|
2713
2615
|
className: "text-ui-fg-subtle flex items-center justify-between px-6 py-3",
|
2714
2616
|
children: [
|
2715
|
-
/* @__PURE__ */
|
2716
|
-
/* @__PURE__ */
|
2717
|
-
return /* @__PURE__ */
|
2718
|
-
/* @__PURE__ */
|
2719
|
-
index2 < (shortcut.keys.Mac?.length || 0) - 1 && /* @__PURE__ */
|
2617
|
+
/* @__PURE__ */ jsx12(Text4, { size: "small", children: shortcut.label }),
|
2618
|
+
/* @__PURE__ */ jsx12("div", { className: "flex items-center gap-x-1", children: shortcut.keys.Mac?.map((key, index2) => {
|
2619
|
+
return /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-1", children: [
|
2620
|
+
/* @__PURE__ */ jsx12(Kbd3, { children: key }),
|
2621
|
+
index2 < (shortcut.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx12("span", { className: "txt-compact-xsmall text-ui-fg-subtle", children: t2("app.keyboardShortcuts.then") })
|
2720
2622
|
] }, index2);
|
2721
2623
|
}) })
|
2722
2624
|
]
|
@@ -2731,7 +2633,7 @@ var UserItem = () => {
|
|
2731
2633
|
const { user, isPending, isError, error } = useMe();
|
2732
2634
|
const loaded = !isPending && !!user;
|
2733
2635
|
if (!loaded) {
|
2734
|
-
return /* @__PURE__ */
|
2636
|
+
return /* @__PURE__ */ jsx12("div", {});
|
2735
2637
|
}
|
2736
2638
|
const name = [user.first_name, user.last_name].filter(Boolean).join(" ");
|
2737
2639
|
const email = user.email;
|
@@ -2740,8 +2642,8 @@ var UserItem = () => {
|
|
2740
2642
|
if (isError) {
|
2741
2643
|
throw error;
|
2742
2644
|
}
|
2743
|
-
return /* @__PURE__ */
|
2744
|
-
/* @__PURE__ */
|
2645
|
+
return /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-3 overflow-hidden px-2 py-1", children: [
|
2646
|
+
/* @__PURE__ */ jsx12(
|
2745
2647
|
Avatar,
|
2746
2648
|
{
|
2747
2649
|
size: "small",
|
@@ -2750,8 +2652,8 @@ var UserItem = () => {
|
|
2750
2652
|
fallback
|
2751
2653
|
}
|
2752
2654
|
),
|
2753
|
-
/* @__PURE__ */
|
2754
|
-
/* @__PURE__ */
|
2655
|
+
/* @__PURE__ */ jsxs7("div", { className: "block w-full min-w-0 max-w-[187px] overflow-hidden whitespace-nowrap", children: [
|
2656
|
+
/* @__PURE__ */ jsx12(
|
2755
2657
|
Text4,
|
2756
2658
|
{
|
2757
2659
|
size: "small",
|
@@ -2761,7 +2663,7 @@ var UserItem = () => {
|
|
2761
2663
|
children: name || email
|
2762
2664
|
}
|
2763
2665
|
),
|
2764
|
-
!!name && /* @__PURE__ */
|
2666
|
+
!!name && /* @__PURE__ */ jsx12(
|
2765
2667
|
Text4,
|
2766
2668
|
{
|
2767
2669
|
size: "xsmall",
|
@@ -2775,24 +2677,24 @@ var UserItem = () => {
|
|
2775
2677
|
};
|
2776
2678
|
|
2777
2679
|
// src/components/layout/main-layout/main-layout.tsx
|
2778
|
-
import { jsx as
|
2680
|
+
import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
|
2779
2681
|
var MainLayout = () => {
|
2780
|
-
return /* @__PURE__ */
|
2682
|
+
return /* @__PURE__ */ jsx13(Shell, { children: /* @__PURE__ */ jsx13(MainSidebar, {}) });
|
2781
2683
|
};
|
2782
2684
|
var MainSidebar = () => {
|
2783
|
-
return /* @__PURE__ */
|
2784
|
-
/* @__PURE__ */
|
2785
|
-
/* @__PURE__ */
|
2786
|
-
/* @__PURE__ */
|
2685
|
+
return /* @__PURE__ */ jsx13("aside", { className: "flex flex-1 flex-col justify-between overflow-y-auto", children: /* @__PURE__ */ jsxs8("div", { className: "flex flex-1 flex-col", children: [
|
2686
|
+
/* @__PURE__ */ jsxs8("div", { className: "bg-ui-bg-subtle sticky top-0", children: [
|
2687
|
+
/* @__PURE__ */ jsx13(Header, {}),
|
2688
|
+
/* @__PURE__ */ jsx13("div", { className: "px-3", children: /* @__PURE__ */ jsx13(Divider, { variant: "dashed" }) })
|
2787
2689
|
] }),
|
2788
|
-
/* @__PURE__ */
|
2789
|
-
/* @__PURE__ */
|
2790
|
-
/* @__PURE__ */
|
2791
|
-
/* @__PURE__ */
|
2690
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex flex-1 flex-col justify-between", children: [
|
2691
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex flex-1 flex-col", children: [
|
2692
|
+
/* @__PURE__ */ jsx13(CoreRouteSection, {}),
|
2693
|
+
/* @__PURE__ */ jsx13(ExtensionRouteSection, {})
|
2792
2694
|
] }),
|
2793
|
-
/* @__PURE__ */
|
2695
|
+
/* @__PURE__ */ jsx13(UtilitySection, {})
|
2794
2696
|
] }),
|
2795
|
-
/* @__PURE__ */
|
2697
|
+
/* @__PURE__ */ jsx13("div", { className: "bg-ui-bg-subtle sticky bottom-0", children: /* @__PURE__ */ jsx13(UserSection, {}) })
|
2796
2698
|
] }) });
|
2797
2699
|
};
|
2798
2700
|
var Logout2 = () => {
|
@@ -2807,87 +2709,94 @@ var Logout2 = () => {
|
|
2807
2709
|
}
|
2808
2710
|
});
|
2809
2711
|
};
|
2810
|
-
return /* @__PURE__ */
|
2811
|
-
/* @__PURE__ */
|
2812
|
-
/* @__PURE__ */
|
2712
|
+
return /* @__PURE__ */ jsx13(DropdownMenu3.Item, { onClick: handleLogout, children: /* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-x-2", children: [
|
2713
|
+
/* @__PURE__ */ jsx13(OpenRectArrowOut2, { className: "text-ui-fg-subtle" }),
|
2714
|
+
/* @__PURE__ */ jsx13("span", { children: t2("app.menus.actions.logout") })
|
2813
2715
|
] }) });
|
2814
2716
|
};
|
2815
2717
|
var Header = () => {
|
2816
2718
|
const { t: t2 } = useTranslation9();
|
2817
2719
|
const { store, isPending, isError, error } = useStore();
|
2720
|
+
const direction = useDocumentDirection();
|
2818
2721
|
const name = store?.name;
|
2819
2722
|
const fallback = store?.name?.slice(0, 1).toUpperCase();
|
2820
2723
|
const isLoaded = !isPending && !!store && !!name && !!fallback;
|
2821
2724
|
if (isError) {
|
2822
2725
|
throw error;
|
2823
2726
|
}
|
2824
|
-
return /* @__PURE__ */
|
2825
|
-
|
2826
|
-
|
2827
|
-
|
2828
|
-
|
2829
|
-
|
2830
|
-
|
2831
|
-
|
2832
|
-
|
2833
|
-
|
2727
|
+
return /* @__PURE__ */ jsx13("div", { className: "w-full p-3", children: /* @__PURE__ */ jsxs8(
|
2728
|
+
DropdownMenu3,
|
2729
|
+
{
|
2730
|
+
dir: direction,
|
2731
|
+
children: [
|
2732
|
+
/* @__PURE__ */ jsxs8(
|
2733
|
+
DropdownMenu3.Trigger,
|
2734
|
+
{
|
2735
|
+
disabled: !isLoaded,
|
2736
|
+
className: clx6(
|
2737
|
+
"bg-ui-bg-subtle transition-fg grid w-full grid-cols-[24px_1fr_15px] items-center gap-x-3 rounded-md p-0.5 pe-2 outline-none",
|
2738
|
+
"hover:bg-ui-bg-subtle-hover",
|
2739
|
+
"data-[state=open]:bg-ui-bg-subtle-hover",
|
2740
|
+
"focus-visible:shadow-borders-focus"
|
2741
|
+
),
|
2742
|
+
children: [
|
2743
|
+
fallback ? /* @__PURE__ */ jsx13(Avatar2, { variant: "squared", size: "xsmall", fallback }) : /* @__PURE__ */ jsx13(Skeleton, { className: "h-6 w-6 rounded-md" }),
|
2744
|
+
/* @__PURE__ */ jsx13("div", { className: "block overflow-hidden text-start", children: name ? /* @__PURE__ */ jsx13(
|
2745
|
+
Text5,
|
2746
|
+
{
|
2747
|
+
size: "small",
|
2748
|
+
weight: "plus",
|
2749
|
+
leading: "compact",
|
2750
|
+
className: "truncate",
|
2751
|
+
children: store.name
|
2752
|
+
}
|
2753
|
+
) : /* @__PURE__ */ jsx13(Skeleton, { className: "h-[9px] w-[120px]" }) }),
|
2754
|
+
/* @__PURE__ */ jsx13(EllipsisHorizontal2, { className: "text-ui-fg-muted" })
|
2755
|
+
]
|
2756
|
+
}
|
2834
2757
|
),
|
2835
|
-
children: [
|
2836
|
-
|
2837
|
-
|
2838
|
-
|
2839
|
-
|
2840
|
-
|
2841
|
-
|
2842
|
-
|
2843
|
-
|
2844
|
-
|
2845
|
-
|
2846
|
-
|
2847
|
-
|
2848
|
-
|
2849
|
-
|
2850
|
-
|
2851
|
-
|
2852
|
-
|
2853
|
-
|
2854
|
-
|
2855
|
-
|
2856
|
-
|
2857
|
-
|
2858
|
-
|
2859
|
-
|
2860
|
-
|
2861
|
-
|
2862
|
-
|
2863
|
-
|
2864
|
-
),
|
2865
|
-
/* @__PURE__ */
|
2866
|
-
|
2867
|
-
{
|
2868
|
-
size: "xsmall",
|
2869
|
-
leading: "compact",
|
2870
|
-
className: "text-ui-fg-subtle",
|
2871
|
-
children: t2("app.nav.main.store")
|
2872
|
-
}
|
2873
|
-
)
|
2758
|
+
isLoaded && /* @__PURE__ */ jsxs8(DropdownMenu3.Content, { className: "w-[var(--radix-dropdown-menu-trigger-width)] min-w-0", children: [
|
2759
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-x-3 px-2 py-1", children: [
|
2760
|
+
/* @__PURE__ */ jsx13(Avatar2, { variant: "squared", size: "small", fallback }),
|
2761
|
+
/* @__PURE__ */ jsxs8("div", { className: "flex flex-col overflow-hidden", children: [
|
2762
|
+
/* @__PURE__ */ jsx13(
|
2763
|
+
Text5,
|
2764
|
+
{
|
2765
|
+
size: "small",
|
2766
|
+
weight: "plus",
|
2767
|
+
leading: "compact",
|
2768
|
+
className: "truncate",
|
2769
|
+
children: name
|
2770
|
+
}
|
2771
|
+
),
|
2772
|
+
/* @__PURE__ */ jsx13(
|
2773
|
+
Text5,
|
2774
|
+
{
|
2775
|
+
size: "xsmall",
|
2776
|
+
leading: "compact",
|
2777
|
+
className: "text-ui-fg-subtle",
|
2778
|
+
children: t2("app.nav.main.store")
|
2779
|
+
}
|
2780
|
+
)
|
2781
|
+
] })
|
2782
|
+
] }),
|
2783
|
+
/* @__PURE__ */ jsx13(DropdownMenu3.Separator, {}),
|
2784
|
+
/* @__PURE__ */ jsx13(DropdownMenu3.Item, { className: "gap-x-2", asChild: true, children: /* @__PURE__ */ jsxs8(Link3, { to: "/settings/store", children: [
|
2785
|
+
/* @__PURE__ */ jsx13(BuildingStorefront, { className: "text-ui-fg-subtle" }),
|
2786
|
+
t2("app.nav.main.storeSettings")
|
2787
|
+
] }) }),
|
2788
|
+
/* @__PURE__ */ jsx13(DropdownMenu3.Separator, {}),
|
2789
|
+
/* @__PURE__ */ jsx13(Logout2, {})
|
2874
2790
|
] })
|
2875
|
-
]
|
2876
|
-
|
2877
|
-
|
2878
|
-
/* @__PURE__ */ jsx14(BuildingStorefront, { className: "text-ui-fg-subtle" }),
|
2879
|
-
t2("app.nav.main.storeSettings")
|
2880
|
-
] }) }),
|
2881
|
-
/* @__PURE__ */ jsx14(DropdownMenu3.Separator, {}),
|
2882
|
-
/* @__PURE__ */ jsx14(Logout2, {})
|
2883
|
-
] })
|
2884
|
-
] }) });
|
2791
|
+
]
|
2792
|
+
}
|
2793
|
+
) });
|
2885
2794
|
};
|
2886
2795
|
var useCoreRoutes = () => {
|
2887
2796
|
const { t: t2 } = useTranslation9();
|
2888
2797
|
return [
|
2889
2798
|
{
|
2890
|
-
icon: /* @__PURE__ */
|
2799
|
+
icon: /* @__PURE__ */ jsx13(ShoppingCart, {}),
|
2891
2800
|
label: t2("orders.domain"),
|
2892
2801
|
to: "/orders",
|
2893
2802
|
items: [
|
@@ -2899,7 +2808,7 @@ var useCoreRoutes = () => {
|
|
2899
2808
|
]
|
2900
2809
|
},
|
2901
2810
|
{
|
2902
|
-
icon: /* @__PURE__ */
|
2811
|
+
icon: /* @__PURE__ */ jsx13(Tag, {}),
|
2903
2812
|
label: t2("products.domain"),
|
2904
2813
|
to: "/products",
|
2905
2814
|
items: [
|
@@ -2919,7 +2828,7 @@ var useCoreRoutes = () => {
|
|
2919
2828
|
]
|
2920
2829
|
},
|
2921
2830
|
{
|
2922
|
-
icon: /* @__PURE__ */
|
2831
|
+
icon: /* @__PURE__ */ jsx13(Buildings, {}),
|
2923
2832
|
label: t2("inventory.domain"),
|
2924
2833
|
to: "/inventory",
|
2925
2834
|
items: [
|
@@ -2930,7 +2839,7 @@ var useCoreRoutes = () => {
|
|
2930
2839
|
]
|
2931
2840
|
},
|
2932
2841
|
{
|
2933
|
-
icon: /* @__PURE__ */
|
2842
|
+
icon: /* @__PURE__ */ jsx13(Users, {}),
|
2934
2843
|
label: t2("customers.domain"),
|
2935
2844
|
to: "/customers",
|
2936
2845
|
items: [
|
@@ -2941,7 +2850,7 @@ var useCoreRoutes = () => {
|
|
2941
2850
|
]
|
2942
2851
|
},
|
2943
2852
|
{
|
2944
|
-
icon: /* @__PURE__ */
|
2853
|
+
icon: /* @__PURE__ */ jsx13(ReceiptPercent, {}),
|
2945
2854
|
label: t2("promotions.domain"),
|
2946
2855
|
to: "/promotions",
|
2947
2856
|
items: [
|
@@ -2952,7 +2861,7 @@ var useCoreRoutes = () => {
|
|
2952
2861
|
]
|
2953
2862
|
},
|
2954
2863
|
{
|
2955
|
-
icon: /* @__PURE__ */
|
2864
|
+
icon: /* @__PURE__ */ jsx13(CurrencyDollar, {}),
|
2956
2865
|
label: t2("priceLists.domain"),
|
2957
2866
|
to: "/price-lists"
|
2958
2867
|
}
|
@@ -2961,7 +2870,7 @@ var useCoreRoutes = () => {
|
|
2961
2870
|
var Searchbar = () => {
|
2962
2871
|
const { t: t2 } = useTranslation9();
|
2963
2872
|
const { toggleSearch } = useSearch();
|
2964
|
-
return /* @__PURE__ */
|
2873
|
+
return /* @__PURE__ */ jsx13("div", { className: "px-3", children: /* @__PURE__ */ jsxs8(
|
2965
2874
|
"button",
|
2966
2875
|
{
|
2967
2876
|
onClick: toggleSearch,
|
@@ -2971,9 +2880,9 @@ var Searchbar = () => {
|
|
2971
2880
|
"focus-visible:shadow-borders-focus"
|
2972
2881
|
),
|
2973
2882
|
children: [
|
2974
|
-
/* @__PURE__ */
|
2975
|
-
/* @__PURE__ */
|
2976
|
-
/* @__PURE__ */
|
2883
|
+
/* @__PURE__ */ jsx13(MagnifyingGlass2, {}),
|
2884
|
+
/* @__PURE__ */ jsx13("div", { className: "flex-1 text-start", children: /* @__PURE__ */ jsx13(Text5, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.label") }) }),
|
2885
|
+
/* @__PURE__ */ jsx13(Text5, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: "\u2318K" })
|
2977
2886
|
]
|
2978
2887
|
}
|
2979
2888
|
) });
|
@@ -2990,10 +2899,10 @@ var CoreRouteSection = () => {
|
|
2990
2899
|
}
|
2991
2900
|
}
|
2992
2901
|
});
|
2993
|
-
return /* @__PURE__ */
|
2994
|
-
/* @__PURE__ */
|
2902
|
+
return /* @__PURE__ */ jsxs8("nav", { className: "flex flex-col gap-y-1 py-3", children: [
|
2903
|
+
/* @__PURE__ */ jsx13(Searchbar, {}),
|
2995
2904
|
coreRoutes.map((route) => {
|
2996
|
-
return /* @__PURE__ */
|
2905
|
+
return /* @__PURE__ */ jsx13(NavItem, { ...route }, route.to);
|
2997
2906
|
})
|
2998
2907
|
] });
|
2999
2908
|
};
|
@@ -3004,23 +2913,23 @@ var ExtensionRouteSection = () => {
|
|
3004
2913
|
if (!menuItems.length) {
|
3005
2914
|
return null;
|
3006
2915
|
}
|
3007
|
-
return /* @__PURE__ */
|
3008
|
-
/* @__PURE__ */
|
3009
|
-
/* @__PURE__ */
|
3010
|
-
/* @__PURE__ */
|
3011
|
-
/* @__PURE__ */
|
3012
|
-
/* @__PURE__ */
|
3013
|
-
/* @__PURE__ */
|
3014
|
-
/* @__PURE__ */
|
2916
|
+
return /* @__PURE__ */ jsxs8("div", { children: [
|
2917
|
+
/* @__PURE__ */ jsx13("div", { className: "px-3", children: /* @__PURE__ */ jsx13(Divider, { variant: "dashed" }) }),
|
2918
|
+
/* @__PURE__ */ jsx13("div", { className: "flex flex-col gap-y-1 py-3", children: /* @__PURE__ */ jsxs8(RadixCollapsible2.Root, { defaultOpen: true, children: [
|
2919
|
+
/* @__PURE__ */ jsx13("div", { className: "px-4", children: /* @__PURE__ */ jsx13(RadixCollapsible2.Trigger, { asChild: true, className: "group/trigger", children: /* @__PURE__ */ jsxs8("button", { className: "text-ui-fg-subtle flex w-full items-center justify-between px-2", children: [
|
2920
|
+
/* @__PURE__ */ jsx13(Text5, { size: "xsmall", weight: "plus", leading: "compact", children: t2("app.nav.common.extensions") }),
|
2921
|
+
/* @__PURE__ */ jsxs8("div", { className: "text-ui-fg-muted", children: [
|
2922
|
+
/* @__PURE__ */ jsx13(ChevronDownMini, { className: "group-data-[state=open]/trigger:hidden" }),
|
2923
|
+
/* @__PURE__ */ jsx13(MinusMini, { className: "group-data-[state=closed]/trigger:hidden" })
|
3015
2924
|
] })
|
3016
2925
|
] }) }) }),
|
3017
|
-
/* @__PURE__ */
|
3018
|
-
return /* @__PURE__ */
|
2926
|
+
/* @__PURE__ */ jsx13(RadixCollapsible2.Content, { children: /* @__PURE__ */ jsx13("nav", { className: "flex flex-col gap-y-0.5 py-1 pb-4", children: menuItems.map((item, i) => {
|
2927
|
+
return /* @__PURE__ */ jsx13(
|
3019
2928
|
NavItem,
|
3020
2929
|
{
|
3021
2930
|
to: item.to,
|
3022
2931
|
label: item.label,
|
3023
|
-
icon: item.icon ? item.icon : /* @__PURE__ */
|
2932
|
+
icon: item.icon ? item.icon : /* @__PURE__ */ jsx13(SquaresPlus, {}),
|
3024
2933
|
items: item.items,
|
3025
2934
|
type: "extension"
|
3026
2935
|
},
|
@@ -3033,44 +2942,44 @@ var ExtensionRouteSection = () => {
|
|
3033
2942
|
var UtilitySection = () => {
|
3034
2943
|
const location = useLocation6();
|
3035
2944
|
const { t: t2 } = useTranslation9();
|
3036
|
-
return /* @__PURE__ */
|
2945
|
+
return /* @__PURE__ */ jsx13("div", { className: "flex flex-col gap-y-0.5 py-3", children: /* @__PURE__ */ jsx13(
|
3037
2946
|
NavItem,
|
3038
2947
|
{
|
3039
2948
|
label: t2("app.nav.settings.header"),
|
3040
2949
|
to: "/settings",
|
3041
2950
|
from: location.pathname,
|
3042
|
-
icon: /* @__PURE__ */
|
2951
|
+
icon: /* @__PURE__ */ jsx13(CogSixTooth, {})
|
3043
2952
|
}
|
3044
2953
|
) });
|
3045
2954
|
};
|
3046
2955
|
var UserSection = () => {
|
3047
|
-
return /* @__PURE__ */
|
3048
|
-
/* @__PURE__ */
|
3049
|
-
/* @__PURE__ */
|
2956
|
+
return /* @__PURE__ */ jsxs8("div", { children: [
|
2957
|
+
/* @__PURE__ */ jsx13("div", { className: "px-3", children: /* @__PURE__ */ jsx13(Divider, { variant: "dashed" }) }),
|
2958
|
+
/* @__PURE__ */ jsx13(UserMenu, {})
|
3050
2959
|
] });
|
3051
2960
|
};
|
3052
2961
|
|
3053
2962
|
// src/components/layout/public-layout/public-layout.tsx
|
3054
2963
|
import { Outlet as Outlet3 } from "react-router-dom";
|
3055
|
-
import { jsx as
|
2964
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
3056
2965
|
var PublicLayout = () => {
|
3057
|
-
return /* @__PURE__ */
|
2966
|
+
return /* @__PURE__ */ jsx14(Outlet3, {});
|
3058
2967
|
};
|
3059
2968
|
|
3060
2969
|
// src/components/layout/settings-layout/settings-layout.tsx
|
3061
2970
|
import { ArrowUturnLeft as ArrowUturnLeft2, MinusMini as MinusMini2 } from "@medusajs/icons";
|
3062
2971
|
import { clx as clx7, Divider as Divider2, IconButton as IconButton5, Text as Text6 } from "@medusajs/ui";
|
3063
2972
|
import { Collapsible as RadixCollapsible3 } from "radix-ui";
|
3064
|
-
import { Fragment as Fragment3, useEffect as useEffect11, useMemo as
|
2973
|
+
import { Fragment as Fragment3, useEffect as useEffect11, useMemo as useMemo4, useState as useState12 } from "react";
|
3065
2974
|
import { useTranslation as useTranslation10 } from "react-i18next";
|
3066
2975
|
import { Link as Link4, useLocation as useLocation7 } from "react-router-dom";
|
3067
|
-
import { jsx as
|
2976
|
+
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
3068
2977
|
var SettingsLayout = () => {
|
3069
|
-
return /* @__PURE__ */
|
2978
|
+
return /* @__PURE__ */ jsx15(Shell, { children: /* @__PURE__ */ jsx15(SettingsSidebar, {}) });
|
3070
2979
|
};
|
3071
2980
|
var useSettingRoutes = () => {
|
3072
2981
|
const { t: t2 } = useTranslation10();
|
3073
|
-
return
|
2982
|
+
return useMemo4(
|
3074
2983
|
() => [
|
3075
2984
|
{
|
3076
2985
|
label: t2("store.domain"),
|
@@ -3092,6 +3001,10 @@ var useSettingRoutes = () => {
|
|
3092
3001
|
label: t2("returnReasons.domain"),
|
3093
3002
|
to: "/settings/return-reasons"
|
3094
3003
|
},
|
3004
|
+
{
|
3005
|
+
label: t2("refundReasons.domain"),
|
3006
|
+
to: "/settings/refund-reasons"
|
3007
|
+
},
|
3095
3008
|
{
|
3096
3009
|
label: t2("salesChannels.domain"),
|
3097
3010
|
to: "/settings/sales-channels"
|
@@ -3114,7 +3027,7 @@ var useSettingRoutes = () => {
|
|
3114
3027
|
};
|
3115
3028
|
var useDeveloperRoutes = () => {
|
3116
3029
|
const { t: t2 } = useTranslation10();
|
3117
|
-
return
|
3030
|
+
return useMemo4(
|
3118
3031
|
() => [
|
3119
3032
|
{
|
3120
3033
|
label: t2("apiKeyManagement.domain.publishable"),
|
@@ -3134,7 +3047,7 @@ var useDeveloperRoutes = () => {
|
|
3134
3047
|
};
|
3135
3048
|
var useMyAccountRoutes = () => {
|
3136
3049
|
const { t: t2 } = useTranslation10();
|
3137
|
-
return
|
3050
|
+
return useMemo4(
|
3138
3051
|
() => [
|
3139
3052
|
{
|
3140
3053
|
label: t2("profile.domain"),
|
@@ -3157,39 +3070,39 @@ var SettingsSidebar = () => {
|
|
3157
3070
|
const myAccountRoutes = useMyAccountRoutes();
|
3158
3071
|
const extensionRoutes = getMenu("settingsExtensions");
|
3159
3072
|
const { t: t2 } = useTranslation10();
|
3160
|
-
return /* @__PURE__ */
|
3161
|
-
/* @__PURE__ */
|
3162
|
-
/* @__PURE__ */
|
3163
|
-
/* @__PURE__ */
|
3073
|
+
return /* @__PURE__ */ jsxs9("aside", { className: "relative flex flex-1 flex-col justify-between overflow-y-auto", children: [
|
3074
|
+
/* @__PURE__ */ jsxs9("div", { className: "bg-ui-bg-subtle sticky top-0", children: [
|
3075
|
+
/* @__PURE__ */ jsx15(Header2, {}),
|
3076
|
+
/* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx15(Divider2, { variant: "dashed" }) })
|
3164
3077
|
] }),
|
3165
|
-
/* @__PURE__ */
|
3166
|
-
/* @__PURE__ */
|
3167
|
-
/* @__PURE__ */
|
3078
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex flex-1 flex-col", children: [
|
3079
|
+
/* @__PURE__ */ jsxs9("div", { className: "flex flex-1 flex-col overflow-y-auto", children: [
|
3080
|
+
/* @__PURE__ */ jsx15(
|
3168
3081
|
RadixCollapsibleSection,
|
3169
3082
|
{
|
3170
3083
|
label: t2("app.nav.settings.general"),
|
3171
3084
|
items: routes
|
3172
3085
|
}
|
3173
3086
|
),
|
3174
|
-
/* @__PURE__ */
|
3175
|
-
/* @__PURE__ */
|
3087
|
+
/* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx15(Divider2, { variant: "dashed" }) }),
|
3088
|
+
/* @__PURE__ */ jsx15(
|
3176
3089
|
RadixCollapsibleSection,
|
3177
3090
|
{
|
3178
3091
|
label: t2("app.nav.settings.developer"),
|
3179
3092
|
items: developerRoutes
|
3180
3093
|
}
|
3181
3094
|
),
|
3182
|
-
/* @__PURE__ */
|
3183
|
-
/* @__PURE__ */
|
3095
|
+
/* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx15(Divider2, { variant: "dashed" }) }),
|
3096
|
+
/* @__PURE__ */ jsx15(
|
3184
3097
|
RadixCollapsibleSection,
|
3185
3098
|
{
|
3186
3099
|
label: t2("app.nav.settings.myAccount"),
|
3187
3100
|
items: myAccountRoutes
|
3188
3101
|
}
|
3189
3102
|
),
|
3190
|
-
extensionRoutes.length > 0 && /* @__PURE__ */
|
3191
|
-
/* @__PURE__ */
|
3192
|
-
/* @__PURE__ */
|
3103
|
+
extensionRoutes.length > 0 && /* @__PURE__ */ jsxs9(Fragment3, { children: [
|
3104
|
+
/* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx15(Divider2, { variant: "dashed" }) }),
|
3105
|
+
/* @__PURE__ */ jsx15(
|
3193
3106
|
RadixCollapsibleSection,
|
3194
3107
|
{
|
3195
3108
|
label: t2("app.nav.common.extensions"),
|
@@ -3198,7 +3111,7 @@ var SettingsSidebar = () => {
|
|
3198
3111
|
)
|
3199
3112
|
] })
|
3200
3113
|
] }),
|
3201
|
-
/* @__PURE__ */
|
3114
|
+
/* @__PURE__ */ jsx15("div", { className: "bg-ui-bg-subtle sticky bottom-0", children: /* @__PURE__ */ jsx15(UserSection2, {}) })
|
3202
3115
|
] })
|
3203
3116
|
] });
|
3204
3117
|
};
|
@@ -3211,7 +3124,7 @@ var Header2 = () => {
|
|
3211
3124
|
setFrom(getSafeFromValue(location.state.from));
|
3212
3125
|
}
|
3213
3126
|
}, [location]);
|
3214
|
-
return /* @__PURE__ */
|
3127
|
+
return /* @__PURE__ */ jsx15("div", { className: "bg-ui-bg-subtle p-3", children: /* @__PURE__ */ jsx15(
|
3215
3128
|
Link4,
|
3216
3129
|
{
|
3217
3130
|
to: from,
|
@@ -3221,9 +3134,9 @@ var Header2 = () => {
|
|
3221
3134
|
"hover:bg-ui-bg-subtle-hover",
|
3222
3135
|
"focus-visible:shadow-borders-focus"
|
3223
3136
|
),
|
3224
|
-
children: /* @__PURE__ */
|
3225
|
-
/* @__PURE__ */
|
3226
|
-
/* @__PURE__ */
|
3137
|
+
children: /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-x-2.5 px-2 py-1", children: [
|
3138
|
+
/* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx15(ArrowUturnLeft2, { className: "text-ui-fg-subtle" }) }),
|
3139
|
+
/* @__PURE__ */ jsx15(Text6, { leading: "compact", weight: "plus", size: "small", children: t2("app.nav.settings.header") })
|
3227
3140
|
] })
|
3228
3141
|
}
|
3229
3142
|
) });
|
@@ -3232,18 +3145,18 @@ var RadixCollapsibleSection = ({
|
|
3232
3145
|
label,
|
3233
3146
|
items
|
3234
3147
|
}) => {
|
3235
|
-
return /* @__PURE__ */
|
3236
|
-
/* @__PURE__ */
|
3237
|
-
/* @__PURE__ */
|
3238
|
-
/* @__PURE__ */
|
3148
|
+
return /* @__PURE__ */ jsxs9(RadixCollapsible3.Root, { defaultOpen: true, className: "py-3", children: [
|
3149
|
+
/* @__PURE__ */ jsx15("div", { className: "px-3", children: /* @__PURE__ */ jsxs9("div", { className: "text-ui-fg-muted flex h-7 items-center justify-between px-2", children: [
|
3150
|
+
/* @__PURE__ */ jsx15(Text6, { size: "small", leading: "compact", children: label }),
|
3151
|
+
/* @__PURE__ */ jsx15(RadixCollapsible3.Trigger, { asChild: true, children: /* @__PURE__ */ jsx15(IconButton5, { size: "2xsmall", variant: "transparent", className: "static", children: /* @__PURE__ */ jsx15(MinusMini2, { className: "text-ui-fg-muted" }) }) })
|
3239
3152
|
] }) }),
|
3240
|
-
/* @__PURE__ */
|
3153
|
+
/* @__PURE__ */ jsx15(RadixCollapsible3.Content, { children: /* @__PURE__ */ jsx15("div", { className: "pt-0.5", children: /* @__PURE__ */ jsx15("nav", { className: "flex flex-col gap-y-0.5", children: items.map((setting) => /* @__PURE__ */ jsx15(NavItem, { type: "setting", ...setting }, setting.to)) }) }) })
|
3241
3154
|
] });
|
3242
3155
|
};
|
3243
3156
|
var UserSection2 = () => {
|
3244
|
-
return /* @__PURE__ */
|
3245
|
-
/* @__PURE__ */
|
3246
|
-
/* @__PURE__ */
|
3157
|
+
return /* @__PURE__ */ jsxs9("div", { children: [
|
3158
|
+
/* @__PURE__ */ jsx15("div", { className: "px-3", children: /* @__PURE__ */ jsx15(Divider2, { variant: "dashed" }) }),
|
3159
|
+
/* @__PURE__ */ jsx15(UserMenu, {})
|
3247
3160
|
] });
|
3248
3161
|
};
|
3249
3162
|
|
@@ -3252,7 +3165,7 @@ import { ExclamationCircle } from "@medusajs/icons";
|
|
3252
3165
|
import { Text as Text7 } from "@medusajs/ui";
|
3253
3166
|
import { useTranslation as useTranslation11 } from "react-i18next";
|
3254
3167
|
import { Navigate as Navigate2, useLocation as useLocation8, useRouteError } from "react-router-dom";
|
3255
|
-
import { jsx as
|
3168
|
+
import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
|
3256
3169
|
var ErrorBoundary = () => {
|
3257
3170
|
const error = useRouteError();
|
3258
3171
|
const location = useLocation8();
|
@@ -3260,7 +3173,7 @@ var ErrorBoundary = () => {
|
|
3260
3173
|
let code = null;
|
3261
3174
|
if (isFetchError(error)) {
|
3262
3175
|
if (error.status === 401) {
|
3263
|
-
return /* @__PURE__ */
|
3176
|
+
return /* @__PURE__ */ jsx16(Navigate2, { to: "/login", state: { from: location }, replace: true });
|
3264
3177
|
}
|
3265
3178
|
code = error.status ?? null;
|
3266
3179
|
}
|
@@ -3287,11 +3200,11 @@ var ErrorBoundary = () => {
|
|
3287
3200
|
message = t2("errorBoundary.defaultMessage");
|
3288
3201
|
break;
|
3289
3202
|
}
|
3290
|
-
return /* @__PURE__ */
|
3291
|
-
/* @__PURE__ */
|
3292
|
-
/* @__PURE__ */
|
3293
|
-
/* @__PURE__ */
|
3294
|
-
/* @__PURE__ */
|
3203
|
+
return /* @__PURE__ */ jsx16("div", { className: "flex size-full min-h-[calc(100vh-57px-24px)] items-center justify-center", children: /* @__PURE__ */ jsx16("div", { className: "flex flex-col gap-y-6", children: /* @__PURE__ */ jsxs10("div", { className: "text-ui-fg-subtle flex flex-col items-center gap-y-3", children: [
|
3204
|
+
/* @__PURE__ */ jsx16(ExclamationCircle, {}),
|
3205
|
+
/* @__PURE__ */ jsxs10("div", { className: "flex flex-col items-center justify-center gap-y-1", children: [
|
3206
|
+
/* @__PURE__ */ jsx16(Text7, { size: "small", leading: "compact", weight: "plus", children: title }),
|
3207
|
+
/* @__PURE__ */ jsx16(
|
3295
3208
|
Text7,
|
3296
3209
|
{
|
3297
3210
|
size: "small",
|
@@ -3304,149 +3217,149 @@ var ErrorBoundary = () => {
|
|
3304
3217
|
};
|
3305
3218
|
|
3306
3219
|
// src/dashboard-app/routes/get-route.map.tsx
|
3307
|
-
import { jsx as
|
3220
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
3308
3221
|
function getRouteMap({
|
3309
3222
|
settingsRoutes,
|
3310
3223
|
coreRoutes
|
3311
3224
|
}) {
|
3312
3225
|
return [
|
3313
3226
|
{
|
3314
|
-
element: /* @__PURE__ */
|
3315
|
-
errorElement: /* @__PURE__ */
|
3227
|
+
element: /* @__PURE__ */ jsx17(ProtectedRoute, {}),
|
3228
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3316
3229
|
children: [
|
3317
3230
|
{
|
3318
|
-
element: /* @__PURE__ */
|
3231
|
+
element: /* @__PURE__ */ jsx17(MainLayout, {}),
|
3319
3232
|
children: [
|
3320
3233
|
{
|
3321
3234
|
path: "/",
|
3322
|
-
errorElement: /* @__PURE__ */
|
3235
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3323
3236
|
lazy: () => import("./home-TYWIGAKJ.mjs")
|
3324
3237
|
},
|
3325
3238
|
{
|
3326
3239
|
path: "/products",
|
3327
|
-
errorElement: /* @__PURE__ */
|
3240
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3328
3241
|
handle: {
|
3329
3242
|
breadcrumb: () => t("products.domain")
|
3330
3243
|
},
|
3331
3244
|
children: [
|
3332
3245
|
{
|
3333
3246
|
path: "",
|
3334
|
-
lazy: () => import("./product-list-
|
3247
|
+
lazy: () => import("./product-list-FFZO57JG.mjs"),
|
3335
3248
|
children: [
|
3336
3249
|
{
|
3337
3250
|
path: "create",
|
3338
|
-
lazy: () => import("./product-create-
|
3251
|
+
lazy: () => import("./product-create-PWSPOVUS.mjs")
|
3339
3252
|
},
|
3340
3253
|
{
|
3341
3254
|
path: "import",
|
3342
|
-
lazy: () => import("./product-import-
|
3255
|
+
lazy: () => import("./product-import-V7EZJ2TU.mjs")
|
3343
3256
|
},
|
3344
3257
|
{
|
3345
3258
|
path: "export",
|
3346
|
-
lazy: () => import("./product-export-
|
3259
|
+
lazy: () => import("./product-export-VFC3I5DK.mjs")
|
3347
3260
|
}
|
3348
3261
|
]
|
3349
3262
|
},
|
3350
3263
|
{
|
3351
3264
|
path: ":id",
|
3352
|
-
errorElement: /* @__PURE__ */
|
3265
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3353
3266
|
lazy: async () => {
|
3354
|
-
const { Breadcrumb, loader } = await import("./product-detail-
|
3267
|
+
const { Breadcrumb, loader } = await import("./product-detail-EBPCCBI4.mjs");
|
3355
3268
|
return {
|
3356
3269
|
Component: Outlet4,
|
3357
3270
|
loader,
|
3358
3271
|
handle: {
|
3359
|
-
breadcrumb: (match) => /* @__PURE__ */
|
3272
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
3360
3273
|
}
|
3361
3274
|
};
|
3362
3275
|
},
|
3363
3276
|
children: [
|
3364
3277
|
{
|
3365
3278
|
path: "",
|
3366
|
-
lazy: () => import("./product-detail-
|
3279
|
+
lazy: () => import("./product-detail-EBPCCBI4.mjs"),
|
3367
3280
|
children: [
|
3368
3281
|
{
|
3369
3282
|
path: "edit",
|
3370
|
-
lazy: () => import("./product-edit-
|
3283
|
+
lazy: () => import("./product-edit-5E6D43KE.mjs")
|
3371
3284
|
},
|
3372
3285
|
{
|
3373
3286
|
path: "edit-variant",
|
3374
|
-
lazy: () => import("./product-variant-edit-
|
3287
|
+
lazy: () => import("./product-variant-edit-DSY77FF4.mjs")
|
3375
3288
|
},
|
3376
3289
|
{
|
3377
3290
|
path: "sales-channels",
|
3378
|
-
lazy: () => import("./product-sales-channels-
|
3291
|
+
lazy: () => import("./product-sales-channels-KSIHPDJG.mjs")
|
3379
3292
|
},
|
3380
3293
|
{
|
3381
3294
|
path: "attributes",
|
3382
|
-
lazy: () => import("./product-attributes-
|
3295
|
+
lazy: () => import("./product-attributes-WVQRK3GQ.mjs")
|
3383
3296
|
},
|
3384
3297
|
{
|
3385
3298
|
path: "organization",
|
3386
|
-
lazy: () => import("./product-organization-
|
3299
|
+
lazy: () => import("./product-organization-OCVSTKEK.mjs")
|
3387
3300
|
},
|
3388
3301
|
{
|
3389
3302
|
path: "shipping-profile",
|
3390
|
-
lazy: () => import("./product-shipping-profile-
|
3303
|
+
lazy: () => import("./product-shipping-profile-SG6NDHF4.mjs")
|
3391
3304
|
},
|
3392
3305
|
{
|
3393
3306
|
path: "media",
|
3394
|
-
lazy: () => import("./product-media-
|
3307
|
+
lazy: () => import("./product-media-TRKQTA4G.mjs")
|
3395
3308
|
},
|
3396
3309
|
{
|
3397
3310
|
path: "prices",
|
3398
|
-
lazy: () => import("./product-prices-
|
3311
|
+
lazy: () => import("./product-prices-XLY5TUSJ.mjs")
|
3399
3312
|
},
|
3400
3313
|
{
|
3401
3314
|
path: "options/create",
|
3402
|
-
lazy: () => import("./product-create-option-
|
3315
|
+
lazy: () => import("./product-create-option-OW2LMVST.mjs")
|
3403
3316
|
},
|
3404
3317
|
{
|
3405
3318
|
path: "options/:option_id/edit",
|
3406
|
-
lazy: () => import("./product-edit-option-
|
3319
|
+
lazy: () => import("./product-edit-option-OM56DLU6.mjs")
|
3407
3320
|
},
|
3408
3321
|
{
|
3409
3322
|
path: "variants/create",
|
3410
|
-
lazy: () => import("./product-create-variant-
|
3323
|
+
lazy: () => import("./product-create-variant-V2QGXFEF.mjs")
|
3411
3324
|
},
|
3412
3325
|
{
|
3413
3326
|
path: "stock",
|
3414
|
-
lazy: () => import("./product-stock-
|
3327
|
+
lazy: () => import("./product-stock-LJRYRSKN.mjs")
|
3415
3328
|
},
|
3416
3329
|
{
|
3417
3330
|
path: "metadata/edit",
|
3418
|
-
lazy: () => import("./product-metadata-
|
3331
|
+
lazy: () => import("./product-metadata-VYQ65KYI.mjs")
|
3419
3332
|
}
|
3420
3333
|
]
|
3421
3334
|
},
|
3422
3335
|
{
|
3423
3336
|
path: "variants/:variant_id",
|
3424
3337
|
lazy: async () => {
|
3425
|
-
const { Component, Breadcrumb, loader } = await import("./product-variant-detail-
|
3338
|
+
const { Component, Breadcrumb, loader } = await import("./product-variant-detail-W2JHQQQJ.mjs");
|
3426
3339
|
return {
|
3427
3340
|
Component,
|
3428
3341
|
loader,
|
3429
3342
|
handle: {
|
3430
|
-
breadcrumb: (match) => /* @__PURE__ */
|
3343
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
3431
3344
|
}
|
3432
3345
|
};
|
3433
3346
|
},
|
3434
3347
|
children: [
|
3435
3348
|
{
|
3436
3349
|
path: "edit",
|
3437
|
-
lazy: () => import("./product-variant-edit-
|
3350
|
+
lazy: () => import("./product-variant-edit-DSY77FF4.mjs")
|
3438
3351
|
},
|
3439
3352
|
{
|
3440
3353
|
path: "prices",
|
3441
|
-
lazy: () => import("./product-prices-
|
3354
|
+
lazy: () => import("./product-prices-XLY5TUSJ.mjs")
|
3442
3355
|
},
|
3443
3356
|
{
|
3444
3357
|
path: "manage-items",
|
3445
|
-
lazy: () => import("./product-variant-manage-inventory-items-
|
3358
|
+
lazy: () => import("./product-variant-manage-inventory-items-JH65NAD4.mjs")
|
3446
3359
|
},
|
3447
3360
|
{
|
3448
3361
|
path: "metadata/edit",
|
3449
|
-
lazy: () => import("./product-variant-metadata-
|
3362
|
+
lazy: () => import("./product-variant-metadata-HE3MRTJB.mjs")
|
3450
3363
|
}
|
3451
3364
|
]
|
3452
3365
|
}
|
@@ -3456,53 +3369,53 @@ function getRouteMap({
|
|
3456
3369
|
},
|
3457
3370
|
{
|
3458
3371
|
path: "/categories",
|
3459
|
-
errorElement: /* @__PURE__ */
|
3372
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3460
3373
|
handle: {
|
3461
3374
|
breadcrumb: () => t("categories.domain")
|
3462
3375
|
},
|
3463
3376
|
children: [
|
3464
3377
|
{
|
3465
3378
|
path: "",
|
3466
|
-
lazy: () => import("./category-list-
|
3379
|
+
lazy: () => import("./category-list-IXW2NWWJ.mjs"),
|
3467
3380
|
children: [
|
3468
3381
|
{
|
3469
3382
|
path: "create",
|
3470
|
-
lazy: () => import("./category-create-
|
3383
|
+
lazy: () => import("./category-create-GMFWRFT7.mjs")
|
3471
3384
|
},
|
3472
3385
|
{
|
3473
3386
|
path: "organize",
|
3474
|
-
lazy: () => import("./category-organize-
|
3387
|
+
lazy: () => import("./category-organize-LRQKM4LA.mjs")
|
3475
3388
|
}
|
3476
3389
|
]
|
3477
3390
|
},
|
3478
3391
|
{
|
3479
3392
|
path: ":id",
|
3480
3393
|
lazy: async () => {
|
3481
|
-
const { Component, Breadcrumb, loader } = await import("./category-detail-
|
3394
|
+
const { Component, Breadcrumb, loader } = await import("./category-detail-ZJJBYVFX.mjs");
|
3482
3395
|
return {
|
3483
3396
|
Component,
|
3484
3397
|
loader,
|
3485
3398
|
handle: {
|
3486
|
-
breadcrumb: (match) => /* @__PURE__ */
|
3399
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
3487
3400
|
}
|
3488
3401
|
};
|
3489
3402
|
},
|
3490
3403
|
children: [
|
3491
3404
|
{
|
3492
3405
|
path: "edit",
|
3493
|
-
lazy: () => import("./category-edit-
|
3406
|
+
lazy: () => import("./category-edit-HCHER73V.mjs")
|
3494
3407
|
},
|
3495
3408
|
{
|
3496
3409
|
path: "products",
|
3497
|
-
lazy: () => import("./category-products-
|
3410
|
+
lazy: () => import("./category-products-7N4TITQ4.mjs")
|
3498
3411
|
},
|
3499
3412
|
{
|
3500
3413
|
path: "organize",
|
3501
|
-
lazy: () => import("./category-organize-
|
3414
|
+
lazy: () => import("./category-organize-LRQKM4LA.mjs")
|
3502
3415
|
},
|
3503
3416
|
{
|
3504
3417
|
path: "metadata/edit",
|
3505
|
-
lazy: () => import("./categories-metadata-
|
3418
|
+
lazy: () => import("./categories-metadata-HUIY6V4F.mjs")
|
3506
3419
|
}
|
3507
3420
|
]
|
3508
3421
|
}
|
@@ -3510,83 +3423,83 @@ function getRouteMap({
|
|
3510
3423
|
},
|
3511
3424
|
{
|
3512
3425
|
path: "/orders",
|
3513
|
-
errorElement: /* @__PURE__ */
|
3426
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3514
3427
|
handle: {
|
3515
3428
|
breadcrumb: () => t("orders.domain")
|
3516
3429
|
},
|
3517
3430
|
children: [
|
3518
3431
|
{
|
3519
3432
|
path: "",
|
3520
|
-
lazy: () => import("./order-list-
|
3433
|
+
lazy: () => import("./order-list-VDUUHTSU.mjs")
|
3521
3434
|
},
|
3522
3435
|
{
|
3523
3436
|
path: ":id",
|
3524
3437
|
lazy: async () => {
|
3525
|
-
const { Component, Breadcrumb, loader } = await import("./order-detail-
|
3438
|
+
const { Component, Breadcrumb, loader } = await import("./order-detail-SEPCRJW5.mjs");
|
3526
3439
|
return {
|
3527
3440
|
Component,
|
3528
3441
|
loader,
|
3529
3442
|
handle: {
|
3530
|
-
breadcrumb: (match) => /* @__PURE__ */
|
3443
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
3531
3444
|
}
|
3532
3445
|
};
|
3533
3446
|
},
|
3534
3447
|
children: [
|
3535
3448
|
{
|
3536
3449
|
path: "fulfillment",
|
3537
|
-
lazy: () => import("./order-create-fulfillment-
|
3450
|
+
lazy: () => import("./order-create-fulfillment-HGJ2YPUB.mjs")
|
3538
3451
|
},
|
3539
3452
|
{
|
3540
3453
|
path: "returns/:return_id/receive",
|
3541
|
-
lazy: () => import("./order-receive-return-
|
3454
|
+
lazy: () => import("./order-receive-return-IM65P7XQ.mjs")
|
3542
3455
|
},
|
3543
3456
|
{
|
3544
3457
|
path: "allocate-items",
|
3545
|
-
lazy: () => import("./order-allocate-items-
|
3458
|
+
lazy: () => import("./order-allocate-items-2RYXQRVK.mjs")
|
3546
3459
|
},
|
3547
3460
|
{
|
3548
3461
|
path: ":f_id/create-shipment",
|
3549
|
-
lazy: () => import("./order-create-shipment-
|
3462
|
+
lazy: () => import("./order-create-shipment-3FDVQ6WT.mjs")
|
3550
3463
|
},
|
3551
3464
|
{
|
3552
3465
|
path: "returns",
|
3553
|
-
lazy: () => import("./order-create-return-
|
3466
|
+
lazy: () => import("./order-create-return-5IPRHHLJ.mjs")
|
3554
3467
|
},
|
3555
3468
|
{
|
3556
3469
|
path: "claims",
|
3557
|
-
lazy: () => import("./order-create-claim-
|
3470
|
+
lazy: () => import("./order-create-claim-7UF734QH.mjs")
|
3558
3471
|
},
|
3559
3472
|
{
|
3560
3473
|
path: "exchanges",
|
3561
|
-
lazy: () => import("./order-create-exchange-
|
3474
|
+
lazy: () => import("./order-create-exchange-2UGEF65S.mjs")
|
3562
3475
|
},
|
3563
3476
|
{
|
3564
3477
|
path: "edits",
|
3565
|
-
lazy: () => import("./order-create-edit-
|
3478
|
+
lazy: () => import("./order-create-edit-MZHUVTGE.mjs")
|
3566
3479
|
},
|
3567
3480
|
{
|
3568
3481
|
path: "refund",
|
3569
|
-
lazy: () => import("./order-create-refund-
|
3482
|
+
lazy: () => import("./order-create-refund-CJDKVBSE.mjs")
|
3570
3483
|
},
|
3571
3484
|
{
|
3572
3485
|
path: "transfer",
|
3573
|
-
lazy: () => import("./order-request-transfer-
|
3486
|
+
lazy: () => import("./order-request-transfer-LZ25KEDA.mjs")
|
3574
3487
|
},
|
3575
3488
|
{
|
3576
3489
|
path: "email",
|
3577
|
-
lazy: () => import("./order-edit-email-
|
3490
|
+
lazy: () => import("./order-edit-email-ABFQKE6A.mjs")
|
3578
3491
|
},
|
3579
3492
|
{
|
3580
3493
|
path: "shipping-address",
|
3581
|
-
lazy: () => import("./order-edit-shipping-address-
|
3494
|
+
lazy: () => import("./order-edit-shipping-address-OXW7TAJD.mjs")
|
3582
3495
|
},
|
3583
3496
|
{
|
3584
3497
|
path: "billing-address",
|
3585
|
-
lazy: () => import("./order-edit-billing-address-
|
3498
|
+
lazy: () => import("./order-edit-billing-address-J75NQFRY.mjs")
|
3586
3499
|
},
|
3587
3500
|
{
|
3588
3501
|
path: "metadata/edit",
|
3589
|
-
lazy: () => import("./order-metadata-
|
3502
|
+
lazy: () => import("./order-metadata-5NF3ICQL.mjs")
|
3590
3503
|
}
|
3591
3504
|
]
|
3592
3505
|
}
|
@@ -3594,43 +3507,43 @@ function getRouteMap({
|
|
3594
3507
|
},
|
3595
3508
|
{
|
3596
3509
|
path: "/promotions",
|
3597
|
-
errorElement: /* @__PURE__ */
|
3510
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3598
3511
|
handle: {
|
3599
3512
|
breadcrumb: () => t("promotions.domain")
|
3600
3513
|
},
|
3601
3514
|
children: [
|
3602
3515
|
{
|
3603
3516
|
path: "",
|
3604
|
-
lazy: () => import("./promotion-list-
|
3517
|
+
lazy: () => import("./promotion-list-WDHOSD55.mjs")
|
3605
3518
|
},
|
3606
3519
|
{
|
3607
3520
|
path: "create",
|
3608
|
-
lazy: () => import("./promotion-create-
|
3521
|
+
lazy: () => import("./promotion-create-NBFV4XQV.mjs")
|
3609
3522
|
},
|
3610
3523
|
{
|
3611
3524
|
path: ":id",
|
3612
3525
|
lazy: async () => {
|
3613
|
-
const { Component, Breadcrumb, loader } = await import("./promotion-detail-
|
3526
|
+
const { Component, Breadcrumb, loader } = await import("./promotion-detail-247QD6DA.mjs");
|
3614
3527
|
return {
|
3615
3528
|
Component,
|
3616
3529
|
loader,
|
3617
3530
|
handle: {
|
3618
|
-
breadcrumb: (match) => /* @__PURE__ */
|
3531
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
3619
3532
|
}
|
3620
3533
|
};
|
3621
3534
|
},
|
3622
3535
|
children: [
|
3623
3536
|
{
|
3624
3537
|
path: "edit",
|
3625
|
-
lazy: () => import("./promotion-edit-details-
|
3538
|
+
lazy: () => import("./promotion-edit-details-A2UUSAZA.mjs")
|
3626
3539
|
},
|
3627
3540
|
{
|
3628
3541
|
path: "add-to-campaign",
|
3629
|
-
lazy: () => import("./promotion-add-campaign-
|
3542
|
+
lazy: () => import("./promotion-add-campaign-YOUUM6RB.mjs")
|
3630
3543
|
},
|
3631
3544
|
{
|
3632
3545
|
path: ":ruleType/edit",
|
3633
|
-
lazy: () => import("./edit-rules-
|
3546
|
+
lazy: () => import("./edit-rules-3MSTPCE5.mjs")
|
3634
3547
|
}
|
3635
3548
|
]
|
3636
3549
|
}
|
@@ -3638,48 +3551,48 @@ function getRouteMap({
|
|
3638
3551
|
},
|
3639
3552
|
{
|
3640
3553
|
path: "/campaigns",
|
3641
|
-
errorElement: /* @__PURE__ */
|
3554
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3642
3555
|
handle: {
|
3643
3556
|
breadcrumb: () => t("campaigns.domain")
|
3644
3557
|
},
|
3645
3558
|
children: [
|
3646
3559
|
{
|
3647
3560
|
path: "",
|
3648
|
-
lazy: () => import("./campaign-list-
|
3561
|
+
lazy: () => import("./campaign-list-CDO5PRTL.mjs"),
|
3649
3562
|
children: []
|
3650
3563
|
},
|
3651
3564
|
{
|
3652
3565
|
path: "create",
|
3653
|
-
lazy: () => import("./campaign-create-
|
3566
|
+
lazy: () => import("./campaign-create-CQ3XBHSY.mjs")
|
3654
3567
|
},
|
3655
3568
|
{
|
3656
3569
|
path: ":id",
|
3657
3570
|
lazy: async () => {
|
3658
|
-
const { Component, Breadcrumb, loader } = await import("./campaign-detail-
|
3571
|
+
const { Component, Breadcrumb, loader } = await import("./campaign-detail-LASOFZ2O.mjs");
|
3659
3572
|
return {
|
3660
3573
|
Component,
|
3661
3574
|
loader,
|
3662
3575
|
handle: {
|
3663
|
-
breadcrumb: (match) => /* @__PURE__ */
|
3576
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
3664
3577
|
}
|
3665
3578
|
};
|
3666
3579
|
},
|
3667
3580
|
children: [
|
3668
3581
|
{
|
3669
3582
|
path: "edit",
|
3670
|
-
lazy: () => import("./campaign-edit-
|
3583
|
+
lazy: () => import("./campaign-edit-R43GXNET.mjs")
|
3671
3584
|
},
|
3672
3585
|
{
|
3673
3586
|
path: "configuration",
|
3674
|
-
lazy: () => import("./campaign-configuration-
|
3587
|
+
lazy: () => import("./campaign-configuration-WWCCFNYQ.mjs")
|
3675
3588
|
},
|
3676
3589
|
{
|
3677
3590
|
path: "edit-budget",
|
3678
|
-
lazy: () => import("./campaign-budget-edit-
|
3591
|
+
lazy: () => import("./campaign-budget-edit-UWGCET5Z.mjs")
|
3679
3592
|
},
|
3680
3593
|
{
|
3681
3594
|
path: "add-promotions",
|
3682
|
-
lazy: () => import("./add-campaign-promotions-
|
3595
|
+
lazy: () => import("./add-campaign-promotions-3BB3BLFD.mjs")
|
3683
3596
|
}
|
3684
3597
|
]
|
3685
3598
|
}
|
@@ -3687,45 +3600,45 @@ function getRouteMap({
|
|
3687
3600
|
},
|
3688
3601
|
{
|
3689
3602
|
path: "/collections",
|
3690
|
-
errorElement: /* @__PURE__ */
|
3603
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3691
3604
|
handle: {
|
3692
3605
|
breadcrumb: () => t("collections.domain")
|
3693
3606
|
},
|
3694
3607
|
children: [
|
3695
3608
|
{
|
3696
3609
|
path: "",
|
3697
|
-
lazy: () => import("./collection-list-
|
3610
|
+
lazy: () => import("./collection-list-3ZHLS2LP.mjs"),
|
3698
3611
|
children: [
|
3699
3612
|
{
|
3700
3613
|
path: "create",
|
3701
|
-
lazy: () => import("./collection-create-
|
3614
|
+
lazy: () => import("./collection-create-PTOF33H2.mjs")
|
3702
3615
|
}
|
3703
3616
|
]
|
3704
3617
|
},
|
3705
3618
|
{
|
3706
3619
|
path: ":id",
|
3707
3620
|
lazy: async () => {
|
3708
|
-
const { Component, Breadcrumb, loader } = await import("./collection-detail-
|
3621
|
+
const { Component, Breadcrumb, loader } = await import("./collection-detail-NONKXELG.mjs");
|
3709
3622
|
return {
|
3710
3623
|
Component,
|
3711
3624
|
loader,
|
3712
3625
|
handle: {
|
3713
|
-
breadcrumb: (match) => /* @__PURE__ */
|
3626
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
3714
3627
|
}
|
3715
3628
|
};
|
3716
3629
|
},
|
3717
3630
|
children: [
|
3718
3631
|
{
|
3719
3632
|
path: "edit",
|
3720
|
-
lazy: () => import("./collection-edit-
|
3633
|
+
lazy: () => import("./collection-edit-WM57WXJ2.mjs")
|
3721
3634
|
},
|
3722
3635
|
{
|
3723
3636
|
path: "products",
|
3724
|
-
lazy: () => import("./collection-add-products-
|
3637
|
+
lazy: () => import("./collection-add-products-WKMNYPLS.mjs")
|
3725
3638
|
},
|
3726
3639
|
{
|
3727
3640
|
path: "metadata/edit",
|
3728
|
-
lazy: () => import("./collection-metadata-
|
3641
|
+
lazy: () => import("./collection-metadata-J6P3K7U6.mjs")
|
3729
3642
|
}
|
3730
3643
|
]
|
3731
3644
|
}
|
@@ -3733,49 +3646,49 @@ function getRouteMap({
|
|
3733
3646
|
},
|
3734
3647
|
{
|
3735
3648
|
path: "/price-lists",
|
3736
|
-
errorElement: /* @__PURE__ */
|
3649
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3737
3650
|
handle: {
|
3738
3651
|
breadcrumb: () => t("priceLists.domain")
|
3739
3652
|
},
|
3740
3653
|
children: [
|
3741
3654
|
{
|
3742
3655
|
path: "",
|
3743
|
-
lazy: () => import("./price-list-list-
|
3656
|
+
lazy: () => import("./price-list-list-QYZSJNF5.mjs"),
|
3744
3657
|
children: [
|
3745
3658
|
{
|
3746
3659
|
path: "create",
|
3747
|
-
lazy: () => import("./price-list-create-
|
3660
|
+
lazy: () => import("./price-list-create-EC5VGCMW.mjs")
|
3748
3661
|
}
|
3749
3662
|
]
|
3750
3663
|
},
|
3751
3664
|
{
|
3752
3665
|
path: ":id",
|
3753
3666
|
lazy: async () => {
|
3754
|
-
const { Component, Breadcrumb, loader } = await import("./price-list-detail-
|
3667
|
+
const { Component, Breadcrumb, loader } = await import("./price-list-detail-CRTJA5O4.mjs");
|
3755
3668
|
return {
|
3756
3669
|
Component,
|
3757
3670
|
loader,
|
3758
3671
|
handle: {
|
3759
|
-
breadcrumb: (match) => /* @__PURE__ */
|
3672
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
3760
3673
|
}
|
3761
3674
|
};
|
3762
3675
|
},
|
3763
3676
|
children: [
|
3764
3677
|
{
|
3765
3678
|
path: "edit",
|
3766
|
-
lazy: () => import("./price-list-edit-
|
3679
|
+
lazy: () => import("./price-list-edit-G73ZIU2Y.mjs")
|
3767
3680
|
},
|
3768
3681
|
{
|
3769
3682
|
path: "configuration",
|
3770
|
-
lazy: () => import("./price-list-configuration-
|
3683
|
+
lazy: () => import("./price-list-configuration-VACKCKJF.mjs")
|
3771
3684
|
},
|
3772
3685
|
{
|
3773
3686
|
path: "products/add",
|
3774
|
-
lazy: () => import("./price-list-prices-add-
|
3687
|
+
lazy: () => import("./price-list-prices-add-HYCM4QDY.mjs")
|
3775
3688
|
},
|
3776
3689
|
{
|
3777
3690
|
path: "products/edit",
|
3778
|
-
lazy: () => import("./price-list-prices-edit-
|
3691
|
+
lazy: () => import("./price-list-prices-edit-R53ITSDD.mjs")
|
3779
3692
|
}
|
3780
3693
|
]
|
3781
3694
|
}
|
@@ -3783,14 +3696,14 @@ function getRouteMap({
|
|
3783
3696
|
},
|
3784
3697
|
{
|
3785
3698
|
path: "/customers",
|
3786
|
-
errorElement: /* @__PURE__ */
|
3699
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3787
3700
|
handle: {
|
3788
3701
|
breadcrumb: () => t("customers.domain")
|
3789
3702
|
},
|
3790
3703
|
children: [
|
3791
3704
|
{
|
3792
3705
|
path: "",
|
3793
|
-
lazy: () => import("./customer-list-
|
3706
|
+
lazy: () => import("./customer-list-5IWEXYSW.mjs"),
|
3794
3707
|
children: [
|
3795
3708
|
{
|
3796
3709
|
path: "create",
|
@@ -3801,12 +3714,12 @@ function getRouteMap({
|
|
3801
3714
|
{
|
3802
3715
|
path: ":id",
|
3803
3716
|
lazy: async () => {
|
3804
|
-
const { Component, Breadcrumb, loader } = await import("./customer-detail-
|
3717
|
+
const { Component, Breadcrumb, loader } = await import("./customer-detail-5Y7ICDMA.mjs");
|
3805
3718
|
return {
|
3806
3719
|
Component,
|
3807
3720
|
loader,
|
3808
3721
|
handle: {
|
3809
|
-
breadcrumb: (match) => /* @__PURE__ */
|
3722
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
3810
3723
|
}
|
3811
3724
|
};
|
3812
3725
|
},
|
@@ -3817,19 +3730,19 @@ function getRouteMap({
|
|
3817
3730
|
},
|
3818
3731
|
{
|
3819
3732
|
path: "create-address",
|
3820
|
-
lazy: () => import("./customer-create-address-
|
3733
|
+
lazy: () => import("./customer-create-address-JOYBIPPN.mjs")
|
3821
3734
|
},
|
3822
3735
|
{
|
3823
3736
|
path: "add-customer-groups",
|
3824
|
-
lazy: () => import("./customers-add-customer-group-
|
3737
|
+
lazy: () => import("./customers-add-customer-group-BVUVU46N.mjs")
|
3825
3738
|
},
|
3826
3739
|
{
|
3827
3740
|
path: ":order_id/transfer",
|
3828
|
-
lazy: () => import("./order-request-transfer-
|
3741
|
+
lazy: () => import("./order-request-transfer-LZ25KEDA.mjs")
|
3829
3742
|
},
|
3830
3743
|
{
|
3831
3744
|
path: "metadata/edit",
|
3832
|
-
lazy: () => import("./customer-metadata-
|
3745
|
+
lazy: () => import("./customer-metadata-JZEJBH4V.mjs")
|
3833
3746
|
}
|
3834
3747
|
]
|
3835
3748
|
}
|
@@ -3837,14 +3750,14 @@ function getRouteMap({
|
|
3837
3750
|
},
|
3838
3751
|
{
|
3839
3752
|
path: "/customer-groups",
|
3840
|
-
errorElement: /* @__PURE__ */
|
3753
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3841
3754
|
handle: {
|
3842
3755
|
breadcrumb: () => t("customerGroups.domain")
|
3843
3756
|
},
|
3844
3757
|
children: [
|
3845
3758
|
{
|
3846
3759
|
path: "",
|
3847
|
-
lazy: () => import("./customer-group-list-
|
3760
|
+
lazy: () => import("./customer-group-list-3DB643XQ.mjs"),
|
3848
3761
|
children: [
|
3849
3762
|
{
|
3850
3763
|
path: "create",
|
@@ -3855,12 +3768,12 @@ function getRouteMap({
|
|
3855
3768
|
{
|
3856
3769
|
path: ":id",
|
3857
3770
|
lazy: async () => {
|
3858
|
-
const { Component, Breadcrumb, loader } = await import("./customer-group-detail-
|
3771
|
+
const { Component, Breadcrumb, loader } = await import("./customer-group-detail-PXP73BFA.mjs");
|
3859
3772
|
return {
|
3860
3773
|
Component,
|
3861
3774
|
loader,
|
3862
3775
|
handle: {
|
3863
|
-
breadcrumb: (match) => /* @__PURE__ */
|
3776
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
3864
3777
|
}
|
3865
3778
|
};
|
3866
3779
|
},
|
@@ -3871,11 +3784,11 @@ function getRouteMap({
|
|
3871
3784
|
},
|
3872
3785
|
{
|
3873
3786
|
path: "add-customers",
|
3874
|
-
lazy: () => import("./customer-group-add-customers-
|
3787
|
+
lazy: () => import("./customer-group-add-customers-YF2T323Z.mjs")
|
3875
3788
|
},
|
3876
3789
|
{
|
3877
3790
|
path: "metadata/edit",
|
3878
|
-
lazy: () => import("./customer-group-metadata-
|
3791
|
+
lazy: () => import("./customer-group-metadata-YQCOIVQG.mjs")
|
3879
3792
|
}
|
3880
3793
|
]
|
3881
3794
|
}
|
@@ -3883,41 +3796,41 @@ function getRouteMap({
|
|
3883
3796
|
},
|
3884
3797
|
{
|
3885
3798
|
path: "/reservations",
|
3886
|
-
errorElement: /* @__PURE__ */
|
3799
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3887
3800
|
handle: {
|
3888
3801
|
breadcrumb: () => t("reservations.domain")
|
3889
3802
|
},
|
3890
3803
|
children: [
|
3891
3804
|
{
|
3892
3805
|
path: "",
|
3893
|
-
lazy: () => import("./reservation-list-
|
3806
|
+
lazy: () => import("./reservation-list-NOWJUMXV.mjs"),
|
3894
3807
|
children: [
|
3895
3808
|
{
|
3896
3809
|
path: "create",
|
3897
|
-
lazy: () => import("./reservation-create-
|
3810
|
+
lazy: () => import("./reservation-create-FKBCGQA7.mjs")
|
3898
3811
|
}
|
3899
3812
|
]
|
3900
3813
|
},
|
3901
3814
|
{
|
3902
3815
|
path: ":id",
|
3903
3816
|
lazy: async () => {
|
3904
|
-
const { Component, Breadcrumb, loader } = await import("./reservation-detail-
|
3817
|
+
const { Component, Breadcrumb, loader } = await import("./reservation-detail-FENCNQDA.mjs");
|
3905
3818
|
return {
|
3906
3819
|
Component,
|
3907
3820
|
loader,
|
3908
3821
|
handle: {
|
3909
|
-
breadcrumb: (match) => /* @__PURE__ */
|
3822
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
3910
3823
|
}
|
3911
3824
|
};
|
3912
3825
|
},
|
3913
3826
|
children: [
|
3914
3827
|
{
|
3915
3828
|
path: "edit",
|
3916
|
-
lazy: () => import("./edit-reservation-
|
3829
|
+
lazy: () => import("./edit-reservation-NYGQBFBO.mjs")
|
3917
3830
|
},
|
3918
3831
|
{
|
3919
3832
|
path: "metadata/edit",
|
3920
|
-
lazy: () => import("./reservation-metadata-
|
3833
|
+
lazy: () => import("./reservation-metadata-DQ3A7MHU.mjs")
|
3921
3834
|
}
|
3922
3835
|
]
|
3923
3836
|
}
|
@@ -3925,57 +3838,57 @@ function getRouteMap({
|
|
3925
3838
|
},
|
3926
3839
|
{
|
3927
3840
|
path: "/inventory",
|
3928
|
-
errorElement: /* @__PURE__ */
|
3841
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3929
3842
|
handle: {
|
3930
3843
|
breadcrumb: () => t("inventory.domain")
|
3931
3844
|
},
|
3932
3845
|
children: [
|
3933
3846
|
{
|
3934
3847
|
path: "",
|
3935
|
-
lazy: () => import("./inventory-list-
|
3848
|
+
lazy: () => import("./inventory-list-J5VZGQ2M.mjs"),
|
3936
3849
|
children: [
|
3937
3850
|
{
|
3938
3851
|
path: "create",
|
3939
|
-
lazy: () => import("./inventory-create-
|
3852
|
+
lazy: () => import("./inventory-create-NEYX7PZJ.mjs")
|
3940
3853
|
},
|
3941
3854
|
{
|
3942
3855
|
path: "stock",
|
3943
|
-
lazy: () => import("./inventory-stock-
|
3856
|
+
lazy: () => import("./inventory-stock-XY2OCAY3.mjs")
|
3944
3857
|
}
|
3945
3858
|
]
|
3946
3859
|
},
|
3947
3860
|
{
|
3948
3861
|
path: ":id",
|
3949
3862
|
lazy: async () => {
|
3950
|
-
const { Component, Breadcrumb, loader } = await import("./inventory-detail-
|
3863
|
+
const { Component, Breadcrumb, loader } = await import("./inventory-detail-66HDQL3W.mjs");
|
3951
3864
|
return {
|
3952
3865
|
Component,
|
3953
3866
|
loader,
|
3954
3867
|
handle: {
|
3955
|
-
breadcrumb: (match) => /* @__PURE__ */
|
3868
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
3956
3869
|
}
|
3957
3870
|
};
|
3958
3871
|
},
|
3959
3872
|
children: [
|
3960
3873
|
{
|
3961
3874
|
path: "edit",
|
3962
|
-
lazy: () => import("./edit-inventory-item-
|
3875
|
+
lazy: () => import("./edit-inventory-item-UV2Z7SYL.mjs")
|
3963
3876
|
},
|
3964
3877
|
{
|
3965
3878
|
path: "attributes",
|
3966
|
-
lazy: () => import("./edit-inventory-item-attributes-
|
3879
|
+
lazy: () => import("./edit-inventory-item-attributes-BRC3KBYT.mjs")
|
3967
3880
|
},
|
3968
3881
|
{
|
3969
3882
|
path: "metadata/edit",
|
3970
|
-
lazy: () => import("./inventory-metadata-
|
3883
|
+
lazy: () => import("./inventory-metadata-OSTUWM23.mjs")
|
3971
3884
|
},
|
3972
3885
|
{
|
3973
3886
|
path: "locations",
|
3974
|
-
lazy: () => import("./manage-locations-
|
3887
|
+
lazy: () => import("./manage-locations-RPHTPGRE.mjs")
|
3975
3888
|
},
|
3976
3889
|
{
|
3977
3890
|
path: "locations/:location_id",
|
3978
|
-
lazy: () => import("./adjust-inventory-
|
3891
|
+
lazy: () => import("./adjust-inventory-OIJTAKHP.mjs")
|
3979
3892
|
}
|
3980
3893
|
]
|
3981
3894
|
}
|
@@ -3987,77 +3900,77 @@ function getRouteMap({
|
|
3987
3900
|
]
|
3988
3901
|
},
|
3989
3902
|
{
|
3990
|
-
element: /* @__PURE__ */
|
3991
|
-
errorElement: /* @__PURE__ */
|
3903
|
+
element: /* @__PURE__ */ jsx17(ProtectedRoute, {}),
|
3904
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3992
3905
|
children: [
|
3993
3906
|
{
|
3994
3907
|
path: "/settings",
|
3995
3908
|
handle: {
|
3996
3909
|
breadcrumb: () => t("app.nav.settings.header")
|
3997
3910
|
},
|
3998
|
-
element: /* @__PURE__ */
|
3911
|
+
element: /* @__PURE__ */ jsx17(SettingsLayout, {}),
|
3999
3912
|
children: [
|
4000
3913
|
{
|
4001
3914
|
index: true,
|
4002
|
-
errorElement: /* @__PURE__ */
|
3915
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
4003
3916
|
lazy: () => import("./settings-2VXIGDVD.mjs")
|
4004
3917
|
},
|
4005
3918
|
{
|
4006
3919
|
path: "profile",
|
4007
|
-
errorElement: /* @__PURE__ */
|
4008
|
-
lazy: () => import("./profile-detail-
|
3920
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3921
|
+
lazy: () => import("./profile-detail-XYAQ2G36.mjs"),
|
4009
3922
|
handle: {
|
4010
3923
|
breadcrumb: () => t("profile.domain")
|
4011
3924
|
},
|
4012
3925
|
children: [
|
4013
3926
|
{
|
4014
3927
|
path: "edit",
|
4015
|
-
lazy: () => import("./profile-edit-
|
3928
|
+
lazy: () => import("./profile-edit-7WD4FTRH.mjs")
|
4016
3929
|
}
|
4017
3930
|
]
|
4018
3931
|
},
|
4019
3932
|
{
|
4020
3933
|
path: "regions",
|
4021
|
-
errorElement: /* @__PURE__ */
|
4022
|
-
element: /* @__PURE__ */
|
3934
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3935
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4023
3936
|
handle: {
|
4024
3937
|
breadcrumb: () => t("regions.domain")
|
4025
3938
|
},
|
4026
3939
|
children: [
|
4027
3940
|
{
|
4028
3941
|
path: "",
|
4029
|
-
lazy: () => import("./region-list-
|
3942
|
+
lazy: () => import("./region-list-52LF5S4S.mjs"),
|
4030
3943
|
children: [
|
4031
3944
|
{
|
4032
3945
|
path: "create",
|
4033
|
-
lazy: () => import("./region-create-
|
3946
|
+
lazy: () => import("./region-create-AV2NJNNJ.mjs")
|
4034
3947
|
}
|
4035
3948
|
]
|
4036
3949
|
},
|
4037
3950
|
{
|
4038
3951
|
path: ":id",
|
4039
3952
|
lazy: async () => {
|
4040
|
-
const { Component, Breadcrumb, loader } = await import("./region-detail-
|
3953
|
+
const { Component, Breadcrumb, loader } = await import("./region-detail-PB7EUSTD.mjs");
|
4041
3954
|
return {
|
4042
3955
|
Component,
|
4043
3956
|
loader,
|
4044
3957
|
handle: {
|
4045
|
-
breadcrumb: (match) => /* @__PURE__ */
|
3958
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
4046
3959
|
}
|
4047
3960
|
};
|
4048
3961
|
},
|
4049
3962
|
children: [
|
4050
3963
|
{
|
4051
3964
|
path: "edit",
|
4052
|
-
lazy: () => import("./region-edit-
|
3965
|
+
lazy: () => import("./region-edit-X7CSUICV.mjs")
|
4053
3966
|
},
|
4054
3967
|
{
|
4055
3968
|
path: "countries/add",
|
4056
|
-
lazy: () => import("./region-add-countries-
|
3969
|
+
lazy: () => import("./region-add-countries-6GSF4CKJ.mjs")
|
4057
3970
|
},
|
4058
3971
|
{
|
4059
3972
|
path: "metadata/edit",
|
4060
|
-
lazy: () => import("./region-metadata-
|
3973
|
+
lazy: () => import("./region-metadata-3JIGHAUI.mjs")
|
4061
3974
|
}
|
4062
3975
|
]
|
4063
3976
|
}
|
@@ -4065,53 +3978,53 @@ function getRouteMap({
|
|
4065
3978
|
},
|
4066
3979
|
{
|
4067
3980
|
path: "store",
|
4068
|
-
errorElement: /* @__PURE__ */
|
4069
|
-
lazy: () => import("./store-detail-
|
3981
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
3982
|
+
lazy: () => import("./store-detail-QKF2TVNW.mjs"),
|
4070
3983
|
handle: {
|
4071
3984
|
breadcrumb: () => t("store.domain")
|
4072
3985
|
},
|
4073
3986
|
children: [
|
4074
3987
|
{
|
4075
3988
|
path: "edit",
|
4076
|
-
lazy: () => import("./store-edit-
|
3989
|
+
lazy: () => import("./store-edit-ZPGTNZGL.mjs")
|
4077
3990
|
},
|
4078
3991
|
{
|
4079
3992
|
path: "currencies",
|
4080
|
-
lazy: () => import("./store-add-currencies-
|
3993
|
+
lazy: () => import("./store-add-currencies-W4MWOALR.mjs")
|
4081
3994
|
},
|
4082
3995
|
{
|
4083
3996
|
path: "metadata/edit",
|
4084
|
-
lazy: () => import("./store-metadata-
|
3997
|
+
lazy: () => import("./store-metadata-M6GIKI5P.mjs")
|
4085
3998
|
}
|
4086
3999
|
]
|
4087
4000
|
},
|
4088
4001
|
{
|
4089
4002
|
path: "users",
|
4090
|
-
errorElement: /* @__PURE__ */
|
4091
|
-
element: /* @__PURE__ */
|
4003
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
4004
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4092
4005
|
handle: {
|
4093
4006
|
breadcrumb: () => t("users.domain")
|
4094
4007
|
},
|
4095
4008
|
children: [
|
4096
4009
|
{
|
4097
4010
|
path: "",
|
4098
|
-
lazy: () => import("./user-list-
|
4011
|
+
lazy: () => import("./user-list-G4H2RSDX.mjs"),
|
4099
4012
|
children: [
|
4100
4013
|
{
|
4101
4014
|
path: "invite",
|
4102
|
-
lazy: () => import("./user-invite-
|
4015
|
+
lazy: () => import("./user-invite-KUH4AI2L.mjs")
|
4103
4016
|
}
|
4104
4017
|
]
|
4105
4018
|
},
|
4106
4019
|
{
|
4107
4020
|
path: ":id",
|
4108
4021
|
lazy: async () => {
|
4109
|
-
const { Component, Breadcrumb, loader } = await import("./user-detail-
|
4022
|
+
const { Component, Breadcrumb, loader } = await import("./user-detail-ZFW3YF3M.mjs");
|
4110
4023
|
return {
|
4111
4024
|
Component,
|
4112
4025
|
loader,
|
4113
4026
|
handle: {
|
4114
|
-
breadcrumb: (match) => /* @__PURE__ */
|
4027
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
4115
4028
|
}
|
4116
4029
|
};
|
4117
4030
|
},
|
@@ -4122,7 +4035,7 @@ function getRouteMap({
|
|
4122
4035
|
},
|
4123
4036
|
{
|
4124
4037
|
path: "metadata/edit",
|
4125
|
-
lazy: () => import("./user-metadata-
|
4038
|
+
lazy: () => import("./user-metadata-DFTGB46F.mjs")
|
4126
4039
|
}
|
4127
4040
|
]
|
4128
4041
|
}
|
@@ -4130,46 +4043,46 @@ function getRouteMap({
|
|
4130
4043
|
},
|
4131
4044
|
{
|
4132
4045
|
path: "sales-channels",
|
4133
|
-
errorElement: /* @__PURE__ */
|
4134
|
-
element: /* @__PURE__ */
|
4046
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
4047
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4135
4048
|
handle: {
|
4136
4049
|
breadcrumb: () => t("salesChannels.domain")
|
4137
4050
|
},
|
4138
4051
|
children: [
|
4139
4052
|
{
|
4140
4053
|
path: "",
|
4141
|
-
lazy: () => import("./sales-channel-list-
|
4054
|
+
lazy: () => import("./sales-channel-list-REV2RETE.mjs"),
|
4142
4055
|
children: [
|
4143
4056
|
{
|
4144
4057
|
path: "create",
|
4145
|
-
lazy: () => import("./sales-channel-create-
|
4058
|
+
lazy: () => import("./sales-channel-create-NODWGJDD.mjs")
|
4146
4059
|
}
|
4147
4060
|
]
|
4148
4061
|
},
|
4149
4062
|
{
|
4150
4063
|
path: ":id",
|
4151
4064
|
lazy: async () => {
|
4152
|
-
const { Component, Breadcrumb, loader } = await import("./sales-channel-detail-
|
4065
|
+
const { Component, Breadcrumb, loader } = await import("./sales-channel-detail-NT7PEVVH.mjs");
|
4153
4066
|
return {
|
4154
4067
|
Component,
|
4155
4068
|
loader,
|
4156
4069
|
handle: {
|
4157
|
-
breadcrumb: (match) => /* @__PURE__ */
|
4070
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
4158
4071
|
}
|
4159
4072
|
};
|
4160
4073
|
},
|
4161
4074
|
children: [
|
4162
4075
|
{
|
4163
4076
|
path: "edit",
|
4164
|
-
lazy: () => import("./sales-channel-edit-
|
4077
|
+
lazy: () => import("./sales-channel-edit-ALIRERVH.mjs")
|
4165
4078
|
},
|
4166
4079
|
{
|
4167
4080
|
path: "add-products",
|
4168
|
-
lazy: () => import("./sales-channel-add-products-
|
4081
|
+
lazy: () => import("./sales-channel-add-products-G4EUOCWY.mjs")
|
4169
4082
|
},
|
4170
4083
|
{
|
4171
4084
|
path: "metadata/edit",
|
4172
|
-
lazy: () => import("./sales-channel-metadata-
|
4085
|
+
lazy: () => import("./sales-channel-metadata-O5O6ADG5.mjs")
|
4173
4086
|
}
|
4174
4087
|
]
|
4175
4088
|
}
|
@@ -4177,30 +4090,30 @@ function getRouteMap({
|
|
4177
4090
|
},
|
4178
4091
|
{
|
4179
4092
|
path: "locations",
|
4180
|
-
errorElement: /* @__PURE__ */
|
4181
|
-
element: /* @__PURE__ */
|
4093
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
4094
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4182
4095
|
handle: {
|
4183
4096
|
breadcrumb: () => t("locations.domain")
|
4184
4097
|
},
|
4185
4098
|
children: [
|
4186
4099
|
{
|
4187
4100
|
path: "",
|
4188
|
-
lazy: () => import("./location-list-
|
4101
|
+
lazy: () => import("./location-list-VNEYHAKV.mjs")
|
4189
4102
|
},
|
4190
4103
|
{
|
4191
4104
|
path: "create",
|
4192
|
-
lazy: () => import("./location-create-
|
4105
|
+
lazy: () => import("./location-create-22H74MFP.mjs")
|
4193
4106
|
},
|
4194
4107
|
{
|
4195
4108
|
path: "shipping-profiles",
|
4196
|
-
element: /* @__PURE__ */
|
4109
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4197
4110
|
handle: {
|
4198
4111
|
breadcrumb: () => t("shippingProfile.domain")
|
4199
4112
|
},
|
4200
4113
|
children: [
|
4201
4114
|
{
|
4202
4115
|
path: "",
|
4203
|
-
lazy: () => import("./shipping-profiles-list-
|
4116
|
+
lazy: () => import("./shipping-profiles-list-QFOG5IDH.mjs"),
|
4204
4117
|
children: [
|
4205
4118
|
{
|
4206
4119
|
path: "create",
|
@@ -4211,19 +4124,19 @@ function getRouteMap({
|
|
4211
4124
|
{
|
4212
4125
|
path: ":shipping_profile_id",
|
4213
4126
|
lazy: async () => {
|
4214
|
-
const { Component, Breadcrumb, loader } = await import("./shipping-profile-detail-
|
4127
|
+
const { Component, Breadcrumb, loader } = await import("./shipping-profile-detail-FS46IJZP.mjs");
|
4215
4128
|
return {
|
4216
4129
|
Component,
|
4217
4130
|
loader,
|
4218
4131
|
handle: {
|
4219
|
-
breadcrumb: (match) => /* @__PURE__ */
|
4132
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
4220
4133
|
}
|
4221
4134
|
};
|
4222
4135
|
},
|
4223
4136
|
children: [
|
4224
4137
|
{
|
4225
4138
|
path: "metadata/edit",
|
4226
|
-
lazy: () => import("./shipping-profile-metadata-
|
4139
|
+
lazy: () => import("./shipping-profile-metadata-PRINFNSY.mjs")
|
4227
4140
|
}
|
4228
4141
|
]
|
4229
4142
|
}
|
@@ -4231,38 +4144,38 @@ function getRouteMap({
|
|
4231
4144
|
},
|
4232
4145
|
{
|
4233
4146
|
path: "shipping-option-types",
|
4234
|
-
errorElement: /* @__PURE__ */
|
4235
|
-
element: /* @__PURE__ */
|
4147
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
4148
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4236
4149
|
handle: {
|
4237
4150
|
breadcrumb: () => t("shippingOptionTypes.domain")
|
4238
4151
|
},
|
4239
4152
|
children: [
|
4240
4153
|
{
|
4241
4154
|
path: "",
|
4242
|
-
lazy: () => import("./shipping-option-type-list-
|
4155
|
+
lazy: () => import("./shipping-option-type-list-DTETSFSA.mjs"),
|
4243
4156
|
children: [
|
4244
4157
|
{
|
4245
4158
|
path: "create",
|
4246
|
-
lazy: () => import("./shipping-option-type-create-
|
4159
|
+
lazy: () => import("./shipping-option-type-create-7FSJNHHA.mjs")
|
4247
4160
|
}
|
4248
4161
|
]
|
4249
4162
|
},
|
4250
4163
|
{
|
4251
4164
|
path: ":id",
|
4252
4165
|
lazy: async () => {
|
4253
|
-
const { Component, Breadcrumb, loader } = await import("./shipping-option-type-detail-
|
4166
|
+
const { Component, Breadcrumb, loader } = await import("./shipping-option-type-detail-6UQST7RY.mjs");
|
4254
4167
|
return {
|
4255
4168
|
Component,
|
4256
4169
|
loader,
|
4257
4170
|
handle: {
|
4258
|
-
breadcrumb: (match) => /* @__PURE__ */
|
4171
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
4259
4172
|
}
|
4260
4173
|
};
|
4261
4174
|
},
|
4262
4175
|
children: [
|
4263
4176
|
{
|
4264
4177
|
path: "edit",
|
4265
|
-
lazy: () => import("./shipping-option-type-edit-
|
4178
|
+
lazy: () => import("./shipping-option-type-edit-B475WRRR.mjs")
|
4266
4179
|
}
|
4267
4180
|
]
|
4268
4181
|
}
|
@@ -4271,34 +4184,34 @@ function getRouteMap({
|
|
4271
4184
|
{
|
4272
4185
|
path: ":location_id",
|
4273
4186
|
lazy: async () => {
|
4274
|
-
const { Component, Breadcrumb, loader } = await import("./location-detail-
|
4187
|
+
const { Component, Breadcrumb, loader } = await import("./location-detail-UZHD3IKW.mjs");
|
4275
4188
|
return {
|
4276
4189
|
Component,
|
4277
4190
|
loader,
|
4278
4191
|
handle: {
|
4279
|
-
breadcrumb: (match) => /* @__PURE__ */
|
4192
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
4280
4193
|
}
|
4281
4194
|
};
|
4282
4195
|
},
|
4283
4196
|
children: [
|
4284
4197
|
{
|
4285
4198
|
path: "edit",
|
4286
|
-
lazy: () => import("./location-edit-
|
4199
|
+
lazy: () => import("./location-edit-X6JBEWIF.mjs")
|
4287
4200
|
},
|
4288
4201
|
{
|
4289
4202
|
path: "sales-channels",
|
4290
|
-
lazy: () => import("./location-sales-channels-
|
4203
|
+
lazy: () => import("./location-sales-channels-66ZE3ZMI.mjs")
|
4291
4204
|
},
|
4292
4205
|
{
|
4293
4206
|
path: "fulfillment-providers",
|
4294
|
-
lazy: () => import("./location-fulfillment-providers-
|
4207
|
+
lazy: () => import("./location-fulfillment-providers-D4RMKQXU.mjs")
|
4295
4208
|
},
|
4296
4209
|
{
|
4297
4210
|
path: "fulfillment-set/:fset_id",
|
4298
4211
|
children: [
|
4299
4212
|
{
|
4300
4213
|
path: "service-zones/create",
|
4301
|
-
lazy: () => import("./location-service-zone-create-
|
4214
|
+
lazy: () => import("./location-service-zone-create-D5QSFS3M.mjs")
|
4302
4215
|
},
|
4303
4216
|
{
|
4304
4217
|
path: "service-zone/:zone_id",
|
@@ -4309,25 +4222,25 @@ function getRouteMap({
|
|
4309
4222
|
},
|
4310
4223
|
{
|
4311
4224
|
path: "areas",
|
4312
|
-
lazy: () => import("./location-service-zone-manage-areas-
|
4225
|
+
lazy: () => import("./location-service-zone-manage-areas-HKCALG4Q.mjs")
|
4313
4226
|
},
|
4314
4227
|
{
|
4315
4228
|
path: "shipping-option",
|
4316
4229
|
children: [
|
4317
4230
|
{
|
4318
4231
|
path: "create",
|
4319
|
-
lazy: () => import("./location-service-zone-shipping-option-create-
|
4232
|
+
lazy: () => import("./location-service-zone-shipping-option-create-OASLL2K7.mjs")
|
4320
4233
|
},
|
4321
4234
|
{
|
4322
4235
|
path: ":so_id",
|
4323
4236
|
children: [
|
4324
4237
|
{
|
4325
4238
|
path: "edit",
|
4326
|
-
lazy: () => import("./location-service-zone-shipping-option-edit-
|
4239
|
+
lazy: () => import("./location-service-zone-shipping-option-edit-DOCLZOO7.mjs")
|
4327
4240
|
},
|
4328
4241
|
{
|
4329
4242
|
path: "pricing",
|
4330
|
-
lazy: () => import("./location-service-zone-shipping-option-pricing-
|
4243
|
+
lazy: () => import("./location-service-zone-shipping-option-pricing-FLB63UKY.mjs")
|
4331
4244
|
}
|
4332
4245
|
]
|
4333
4246
|
}
|
@@ -4343,42 +4256,42 @@ function getRouteMap({
|
|
4343
4256
|
},
|
4344
4257
|
{
|
4345
4258
|
path: "product-tags",
|
4346
|
-
errorElement: /* @__PURE__ */
|
4347
|
-
element: /* @__PURE__ */
|
4259
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
4260
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4348
4261
|
handle: {
|
4349
4262
|
breadcrumb: () => t("productTags.domain")
|
4350
4263
|
},
|
4351
4264
|
children: [
|
4352
4265
|
{
|
4353
4266
|
path: "",
|
4354
|
-
lazy: () => import("./product-tag-list-
|
4267
|
+
lazy: () => import("./product-tag-list-2LFGEFGL.mjs"),
|
4355
4268
|
children: [
|
4356
4269
|
{
|
4357
4270
|
path: "create",
|
4358
|
-
lazy: () => import("./product-tag-create-
|
4271
|
+
lazy: () => import("./product-tag-create-EB5CVUOP.mjs")
|
4359
4272
|
}
|
4360
4273
|
]
|
4361
4274
|
},
|
4362
4275
|
{
|
4363
4276
|
path: ":id",
|
4364
4277
|
lazy: async () => {
|
4365
|
-
const { Component, Breadcrumb, loader } = await import("./product-tag-detail-
|
4278
|
+
const { Component, Breadcrumb, loader } = await import("./product-tag-detail-V5CZY4R4.mjs");
|
4366
4279
|
return {
|
4367
4280
|
Component,
|
4368
4281
|
loader,
|
4369
4282
|
handle: {
|
4370
|
-
breadcrumb: (match) => /* @__PURE__ */
|
4283
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
4371
4284
|
}
|
4372
4285
|
};
|
4373
4286
|
},
|
4374
4287
|
children: [
|
4375
4288
|
{
|
4376
4289
|
path: "edit",
|
4377
|
-
lazy: () => import("./product-tag-edit-
|
4290
|
+
lazy: () => import("./product-tag-edit-YATSW5OK.mjs")
|
4378
4291
|
},
|
4379
4292
|
{
|
4380
4293
|
path: "metadata/edit",
|
4381
|
-
lazy: () => import("./product-tag-metadata-
|
4294
|
+
lazy: () => import("./product-tag-metadata-R5P5FWAZ.mjs")
|
4382
4295
|
}
|
4383
4296
|
]
|
4384
4297
|
}
|
@@ -4386,25 +4299,25 @@ function getRouteMap({
|
|
4386
4299
|
},
|
4387
4300
|
{
|
4388
4301
|
path: "workflows",
|
4389
|
-
errorElement: /* @__PURE__ */
|
4390
|
-
element: /* @__PURE__ */
|
4302
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
4303
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4391
4304
|
handle: {
|
4392
4305
|
breadcrumb: () => t("workflowExecutions.domain")
|
4393
4306
|
},
|
4394
4307
|
children: [
|
4395
4308
|
{
|
4396
4309
|
path: "",
|
4397
|
-
lazy: () => import("./workflow-execution-list-
|
4310
|
+
lazy: () => import("./workflow-execution-list-5WL4L464.mjs")
|
4398
4311
|
},
|
4399
4312
|
{
|
4400
4313
|
path: ":id",
|
4401
4314
|
lazy: async () => {
|
4402
|
-
const { Component, Breadcrumb, loader } = await import("./workflow-execution-detail-
|
4315
|
+
const { Component, Breadcrumb, loader } = await import("./workflow-execution-detail-YNT2RKIP.mjs");
|
4403
4316
|
return {
|
4404
4317
|
Component,
|
4405
4318
|
loader,
|
4406
4319
|
handle: {
|
4407
|
-
breadcrumb: (match) => /* @__PURE__ */
|
4320
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
4408
4321
|
}
|
4409
4322
|
};
|
4410
4323
|
}
|
@@ -4413,15 +4326,15 @@ function getRouteMap({
|
|
4413
4326
|
},
|
4414
4327
|
{
|
4415
4328
|
path: "product-types",
|
4416
|
-
errorElement: /* @__PURE__ */
|
4417
|
-
element: /* @__PURE__ */
|
4329
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
4330
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4418
4331
|
handle: {
|
4419
4332
|
breadcrumb: () => t("productTypes.domain")
|
4420
4333
|
},
|
4421
4334
|
children: [
|
4422
4335
|
{
|
4423
4336
|
path: "",
|
4424
|
-
lazy: () => import("./product-type-list-
|
4337
|
+
lazy: () => import("./product-type-list-MJLAGQYC.mjs"),
|
4425
4338
|
children: [
|
4426
4339
|
{
|
4427
4340
|
path: "create",
|
@@ -4432,12 +4345,12 @@ function getRouteMap({
|
|
4432
4345
|
{
|
4433
4346
|
path: ":id",
|
4434
4347
|
lazy: async () => {
|
4435
|
-
const { Component, Breadcrumb, loader } = await import("./product-type-detail-
|
4348
|
+
const { Component, Breadcrumb, loader } = await import("./product-type-detail-BZNI5GJ5.mjs");
|
4436
4349
|
return {
|
4437
4350
|
Component,
|
4438
4351
|
loader,
|
4439
4352
|
handle: {
|
4440
|
-
breadcrumb: (match) => /* @__PURE__ */
|
4353
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
4441
4354
|
}
|
4442
4355
|
};
|
4443
4356
|
},
|
@@ -4448,7 +4361,7 @@ function getRouteMap({
|
|
4448
4361
|
},
|
4449
4362
|
{
|
4450
4363
|
path: "metadata/edit",
|
4451
|
-
lazy: () => import("./product-type-metadata-
|
4364
|
+
lazy: () => import("./product-type-metadata-SUQHWLWA.mjs")
|
4452
4365
|
}
|
4453
4366
|
]
|
4454
4367
|
}
|
@@ -4456,22 +4369,22 @@ function getRouteMap({
|
|
4456
4369
|
},
|
4457
4370
|
{
|
4458
4371
|
path: "publishable-api-keys",
|
4459
|
-
element: /* @__PURE__ */
|
4372
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4460
4373
|
handle: {
|
4461
4374
|
breadcrumb: () => t("apiKeyManagement.domain.publishable")
|
4462
4375
|
},
|
4463
4376
|
children: [
|
4464
4377
|
{
|
4465
4378
|
path: "",
|
4466
|
-
element: /* @__PURE__ */
|
4379
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4467
4380
|
children: [
|
4468
4381
|
{
|
4469
4382
|
path: "",
|
4470
|
-
lazy: () => import("./api-key-management-list-
|
4383
|
+
lazy: () => import("./api-key-management-list-C2WM4PHC.mjs"),
|
4471
4384
|
children: [
|
4472
4385
|
{
|
4473
4386
|
path: "create",
|
4474
|
-
lazy: () => import("./api-key-management-create-
|
4387
|
+
lazy: () => import("./api-key-management-create-XDQHUNWK.mjs")
|
4475
4388
|
}
|
4476
4389
|
]
|
4477
4390
|
}
|
@@ -4480,23 +4393,23 @@ function getRouteMap({
|
|
4480
4393
|
{
|
4481
4394
|
path: ":id",
|
4482
4395
|
lazy: async () => {
|
4483
|
-
const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-
|
4396
|
+
const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-ZQLQKGYF.mjs");
|
4484
4397
|
return {
|
4485
4398
|
Component,
|
4486
4399
|
loader,
|
4487
4400
|
handle: {
|
4488
|
-
breadcrumb: (match) => /* @__PURE__ */
|
4401
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
4489
4402
|
}
|
4490
4403
|
};
|
4491
4404
|
},
|
4492
4405
|
children: [
|
4493
4406
|
{
|
4494
4407
|
path: "edit",
|
4495
|
-
lazy: () => import("./api-key-management-edit-
|
4408
|
+
lazy: () => import("./api-key-management-edit-2SUSKI7T.mjs")
|
4496
4409
|
},
|
4497
4410
|
{
|
4498
4411
|
path: "sales-channels",
|
4499
|
-
lazy: () => import("./api-key-management-sales-channels-
|
4412
|
+
lazy: () => import("./api-key-management-sales-channels-MVHVMPF6.mjs")
|
4500
4413
|
}
|
4501
4414
|
]
|
4502
4415
|
}
|
@@ -4504,22 +4417,22 @@ function getRouteMap({
|
|
4504
4417
|
},
|
4505
4418
|
{
|
4506
4419
|
path: "secret-api-keys",
|
4507
|
-
element: /* @__PURE__ */
|
4420
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4508
4421
|
handle: {
|
4509
4422
|
breadcrumb: () => t("apiKeyManagement.domain.secret")
|
4510
4423
|
},
|
4511
4424
|
children: [
|
4512
4425
|
{
|
4513
4426
|
path: "",
|
4514
|
-
element: /* @__PURE__ */
|
4427
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4515
4428
|
children: [
|
4516
4429
|
{
|
4517
4430
|
path: "",
|
4518
|
-
lazy: () => import("./api-key-management-list-
|
4431
|
+
lazy: () => import("./api-key-management-list-C2WM4PHC.mjs"),
|
4519
4432
|
children: [
|
4520
4433
|
{
|
4521
4434
|
path: "create",
|
4522
|
-
lazy: () => import("./api-key-management-create-
|
4435
|
+
lazy: () => import("./api-key-management-create-XDQHUNWK.mjs")
|
4523
4436
|
}
|
4524
4437
|
]
|
4525
4438
|
}
|
@@ -4528,19 +4441,19 @@ function getRouteMap({
|
|
4528
4441
|
{
|
4529
4442
|
path: ":id",
|
4530
4443
|
lazy: async () => {
|
4531
|
-
const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-
|
4444
|
+
const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-ZQLQKGYF.mjs");
|
4532
4445
|
return {
|
4533
4446
|
Component,
|
4534
4447
|
loader,
|
4535
4448
|
handle: {
|
4536
|
-
breadcrumb: (match) => /* @__PURE__ */
|
4449
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
4537
4450
|
}
|
4538
4451
|
};
|
4539
4452
|
},
|
4540
4453
|
children: [
|
4541
4454
|
{
|
4542
4455
|
path: "edit",
|
4543
|
-
lazy: () => import("./api-key-management-edit-
|
4456
|
+
lazy: () => import("./api-key-management-edit-2SUSKI7T.mjs")
|
4544
4457
|
}
|
4545
4458
|
]
|
4546
4459
|
}
|
@@ -4548,18 +4461,18 @@ function getRouteMap({
|
|
4548
4461
|
},
|
4549
4462
|
{
|
4550
4463
|
path: "tax-regions",
|
4551
|
-
element: /* @__PURE__ */
|
4464
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4552
4465
|
handle: {
|
4553
4466
|
breadcrumb: () => t("taxRegions.domain")
|
4554
4467
|
},
|
4555
4468
|
children: [
|
4556
4469
|
{
|
4557
4470
|
path: "",
|
4558
|
-
lazy: () => import("./tax-region-list-
|
4471
|
+
lazy: () => import("./tax-region-list-SQQE2GUU.mjs"),
|
4559
4472
|
children: [
|
4560
4473
|
{
|
4561
4474
|
path: "create",
|
4562
|
-
lazy: () => import("./tax-region-create-
|
4475
|
+
lazy: () => import("./tax-region-create-4DTM3RTZ.mjs")
|
4563
4476
|
}
|
4564
4477
|
]
|
4565
4478
|
},
|
@@ -4568,13 +4481,13 @@ function getRouteMap({
|
|
4568
4481
|
Component: Outlet4,
|
4569
4482
|
loader: taxRegionLoader,
|
4570
4483
|
handle: {
|
4571
|
-
breadcrumb: (match) => /* @__PURE__ */
|
4484
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(TaxRegionDetailBreadcrumb, { ...match })
|
4572
4485
|
},
|
4573
4486
|
children: [
|
4574
4487
|
{
|
4575
4488
|
path: "",
|
4576
4489
|
lazy: async () => {
|
4577
|
-
const { Component } = await import("./tax-region-detail-
|
4490
|
+
const { Component } = await import("./tax-region-detail-SLCI3JYL.mjs");
|
4578
4491
|
return {
|
4579
4492
|
Component
|
4580
4493
|
};
|
@@ -4582,58 +4495,58 @@ function getRouteMap({
|
|
4582
4495
|
children: [
|
4583
4496
|
{
|
4584
4497
|
path: "edit",
|
4585
|
-
lazy: () => import("./tax-region-edit-
|
4498
|
+
lazy: () => import("./tax-region-edit-CJ63JXFQ.mjs")
|
4586
4499
|
},
|
4587
4500
|
{
|
4588
4501
|
path: "provinces/create",
|
4589
|
-
lazy: () => import("./tax-region-province-create-
|
4502
|
+
lazy: () => import("./tax-region-province-create-SBRFGWN3.mjs")
|
4590
4503
|
},
|
4591
4504
|
{
|
4592
4505
|
path: "overrides/create",
|
4593
|
-
lazy: () => import("./tax-region-tax-override-create-
|
4506
|
+
lazy: () => import("./tax-region-tax-override-create-L4WOTSBO.mjs")
|
4594
4507
|
},
|
4595
4508
|
{
|
4596
4509
|
path: "overrides/:tax_rate_id/edit",
|
4597
|
-
lazy: () => import("./tax-region-tax-override-edit-
|
4510
|
+
lazy: () => import("./tax-region-tax-override-edit-2JAVNE37.mjs")
|
4598
4511
|
},
|
4599
4512
|
{
|
4600
4513
|
path: "tax-rates/create",
|
4601
|
-
lazy: () => import("./tax-region-tax-rate-create-
|
4514
|
+
lazy: () => import("./tax-region-tax-rate-create-JIV5FXUD.mjs")
|
4602
4515
|
},
|
4603
4516
|
{
|
4604
4517
|
path: "tax-rates/:tax_rate_id/edit",
|
4605
|
-
lazy: () => import("./tax-region-tax-rate-edit-
|
4518
|
+
lazy: () => import("./tax-region-tax-rate-edit-WU2ZQLZQ.mjs")
|
4606
4519
|
}
|
4607
4520
|
]
|
4608
4521
|
},
|
4609
4522
|
{
|
4610
4523
|
path: "provinces/:province_id",
|
4611
4524
|
lazy: async () => {
|
4612
|
-
const { Component, Breadcrumb, loader } = await import("./tax-region-province-detail-
|
4525
|
+
const { Component, Breadcrumb, loader } = await import("./tax-region-province-detail-BGL2USQF.mjs");
|
4613
4526
|
return {
|
4614
4527
|
Component,
|
4615
4528
|
loader,
|
4616
4529
|
handle: {
|
4617
|
-
breadcrumb: (match) => /* @__PURE__ */
|
4530
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
|
4618
4531
|
}
|
4619
4532
|
};
|
4620
4533
|
},
|
4621
4534
|
children: [
|
4622
4535
|
{
|
4623
4536
|
path: "tax-rates/create",
|
4624
|
-
lazy: () => import("./tax-region-tax-rate-create-
|
4537
|
+
lazy: () => import("./tax-region-tax-rate-create-JIV5FXUD.mjs")
|
4625
4538
|
},
|
4626
4539
|
{
|
4627
4540
|
path: "tax-rates/:tax_rate_id/edit",
|
4628
|
-
lazy: () => import("./tax-region-tax-rate-edit-
|
4541
|
+
lazy: () => import("./tax-region-tax-rate-edit-WU2ZQLZQ.mjs")
|
4629
4542
|
},
|
4630
4543
|
{
|
4631
4544
|
path: "overrides/create",
|
4632
|
-
lazy: () => import("./tax-region-tax-override-create-
|
4545
|
+
lazy: () => import("./tax-region-tax-override-create-L4WOTSBO.mjs")
|
4633
4546
|
},
|
4634
4547
|
{
|
4635
4548
|
path: "overrides/:tax_rate_id/edit",
|
4636
|
-
lazy: () => import("./tax-region-tax-override-edit-
|
4549
|
+
lazy: () => import("./tax-region-tax-override-edit-2JAVNE37.mjs")
|
4637
4550
|
}
|
4638
4551
|
]
|
4639
4552
|
}
|
@@ -4643,14 +4556,14 @@ function getRouteMap({
|
|
4643
4556
|
},
|
4644
4557
|
{
|
4645
4558
|
path: "return-reasons",
|
4646
|
-
element: /* @__PURE__ */
|
4559
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4647
4560
|
handle: {
|
4648
4561
|
breadcrumb: () => t("returnReasons.domain")
|
4649
4562
|
},
|
4650
4563
|
children: [
|
4651
4564
|
{
|
4652
4565
|
path: "",
|
4653
|
-
lazy: () => import("./return-reason-list-
|
4566
|
+
lazy: () => import("./return-reason-list-FW7OYUOW.mjs"),
|
4654
4567
|
children: [
|
4655
4568
|
{
|
4656
4569
|
path: "create",
|
@@ -4669,24 +4582,52 @@ function getRouteMap({
|
|
4669
4582
|
}
|
4670
4583
|
]
|
4671
4584
|
},
|
4585
|
+
{
|
4586
|
+
path: "refund-reasons",
|
4587
|
+
element: /* @__PURE__ */ jsx17(Outlet4, {}),
|
4588
|
+
handle: {
|
4589
|
+
breadcrumb: () => t("refundReasons.domain")
|
4590
|
+
},
|
4591
|
+
children: [
|
4592
|
+
{
|
4593
|
+
path: "",
|
4594
|
+
lazy: () => import("./refund-reason-list-WI7NHRDS.mjs"),
|
4595
|
+
children: [
|
4596
|
+
{
|
4597
|
+
path: "create",
|
4598
|
+
lazy: () => import("./refund-reason-create-45ZZOX7F.mjs")
|
4599
|
+
},
|
4600
|
+
{
|
4601
|
+
path: ":id",
|
4602
|
+
children: [
|
4603
|
+
{
|
4604
|
+
path: "edit",
|
4605
|
+
lazy: () => import("./refund-reason-edit-E2HDAQZI.mjs")
|
4606
|
+
}
|
4607
|
+
]
|
4608
|
+
}
|
4609
|
+
]
|
4610
|
+
}
|
4611
|
+
]
|
4612
|
+
},
|
4672
4613
|
...settingsRoutes?.[0]?.children || []
|
4673
4614
|
]
|
4674
4615
|
}
|
4675
4616
|
]
|
4676
4617
|
},
|
4677
4618
|
{
|
4678
|
-
element: /* @__PURE__ */
|
4619
|
+
element: /* @__PURE__ */ jsx17(PublicLayout, {}),
|
4679
4620
|
children: [
|
4680
4621
|
{
|
4681
|
-
errorElement: /* @__PURE__ */
|
4622
|
+
errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
|
4682
4623
|
children: [
|
4683
4624
|
{
|
4684
4625
|
path: "/login",
|
4685
|
-
lazy: () => import("./login-
|
4626
|
+
lazy: () => import("./login-LQRL2ZDY.mjs")
|
4686
4627
|
},
|
4687
4628
|
{
|
4688
4629
|
path: "/reset-password",
|
4689
|
-
lazy: () => import("./reset-password-
|
4630
|
+
lazy: () => import("./reset-password-LCVV4NOA.mjs")
|
4690
4631
|
},
|
4691
4632
|
{
|
4692
4633
|
path: "/invite",
|
@@ -4821,7 +4762,7 @@ var createRouteMap = (routes, ignore) => {
|
|
4821
4762
|
};
|
4822
4763
|
|
4823
4764
|
// src/dashboard-app/dashboard-app.tsx
|
4824
|
-
import { jsx as
|
4765
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
4825
4766
|
var DashboardApp = class {
|
4826
4767
|
constructor({ plugins }) {
|
4827
4768
|
__publicField(this, "widgets");
|
@@ -4923,7 +4864,7 @@ var DashboardApp = class {
|
|
4923
4864
|
const navItem = {
|
4924
4865
|
label: item.label,
|
4925
4866
|
to: item.path,
|
4926
|
-
icon: item.icon ? /* @__PURE__ */
|
4867
|
+
icon: item.icon ? /* @__PURE__ */ jsx18(item.icon, {}) : void 0,
|
4927
4868
|
items: [],
|
4928
4869
|
nested: item.nested
|
4929
4870
|
};
|
@@ -5116,7 +5057,7 @@ var DashboardApp = class {
|
|
5116
5057
|
const router = createBrowserRouter(routes, {
|
5117
5058
|
basename: __BASE__ || "/"
|
5118
5059
|
});
|
5119
|
-
return /* @__PURE__ */
|
5060
|
+
return /* @__PURE__ */ jsx18(Providers, { api: this.api, children: /* @__PURE__ */ jsx18(RouterProvider, { router }) });
|
5120
5061
|
}
|
5121
5062
|
};
|
5122
5063
|
|
@@ -5161,9 +5102,9 @@ function getFieldType(type) {
|
|
5161
5102
|
}
|
5162
5103
|
|
5163
5104
|
// src/dashboard-app/forms/form-extension-zone/form-extension-zone.tsx
|
5164
|
-
import { jsx as
|
5105
|
+
import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
|
5165
5106
|
var FormExtensionZone = ({ fields, form }) => {
|
5166
|
-
return /* @__PURE__ */
|
5107
|
+
return /* @__PURE__ */ jsx19("div", { children: fields.map((field, index) => /* @__PURE__ */ jsx19(FormExtensionField, { field, form }, index)) });
|
5167
5108
|
};
|
5168
5109
|
function getFieldLabel(field) {
|
5169
5110
|
if (field.label) {
|
@@ -5178,16 +5119,16 @@ var FormExtensionField = ({ field, form }) => {
|
|
5178
5119
|
const Component = field.Component;
|
5179
5120
|
const type = getFieldType(field.validation);
|
5180
5121
|
const { control } = form;
|
5181
|
-
return /* @__PURE__ */
|
5122
|
+
return /* @__PURE__ */ jsx19(
|
5182
5123
|
Form.Field,
|
5183
5124
|
{
|
5184
5125
|
control,
|
5185
5126
|
name: `additional_data.${field.name}`,
|
5186
5127
|
render: ({ field: field2 }) => {
|
5187
|
-
return /* @__PURE__ */
|
5188
|
-
/* @__PURE__ */
|
5189
|
-
description && /* @__PURE__ */
|
5190
|
-
/* @__PURE__ */
|
5128
|
+
return /* @__PURE__ */ jsxs11(Form.Item, { children: [
|
5129
|
+
/* @__PURE__ */ jsx19(Form.Label, { children: label }),
|
5130
|
+
description && /* @__PURE__ */ jsx19(Form.Hint, { children: description }),
|
5131
|
+
/* @__PURE__ */ jsx19(Form.Control, { children: /* @__PURE__ */ jsx19(
|
5191
5132
|
FormExtensionFieldComponent,
|
5192
5133
|
{
|
5193
5134
|
field: field2,
|
@@ -5196,7 +5137,7 @@ var FormExtensionField = ({ field, form }) => {
|
|
5196
5137
|
placeholder
|
5197
5138
|
}
|
5198
5139
|
) }),
|
5199
|
-
/* @__PURE__ */
|
5140
|
+
/* @__PURE__ */ jsx19(Form.ErrorMessage, {})
|
5200
5141
|
] });
|
5201
5142
|
}
|
5202
5143
|
}
|
@@ -5211,20 +5152,20 @@ var FormExtensionFieldComponent = ({
|
|
5211
5152
|
const { t: t2 } = useTranslation12();
|
5212
5153
|
if (component) {
|
5213
5154
|
const Component = component;
|
5214
|
-
return /* @__PURE__ */
|
5155
|
+
return /* @__PURE__ */ jsx19(Component, { ...field, placeholder });
|
5215
5156
|
}
|
5216
5157
|
switch (type) {
|
5217
5158
|
case "text": {
|
5218
|
-
return /* @__PURE__ */
|
5159
|
+
return /* @__PURE__ */ jsx19(Input2, { ...field, placeholder });
|
5219
5160
|
}
|
5220
5161
|
case "number": {
|
5221
|
-
return /* @__PURE__ */
|
5162
|
+
return /* @__PURE__ */ jsx19(Input2, { ...field, placeholder, type: "number" });
|
5222
5163
|
}
|
5223
5164
|
case "boolean": {
|
5224
|
-
return /* @__PURE__ */
|
5165
|
+
return /* @__PURE__ */ jsx19(Switch, { className: "rtl:rotate-180", dir: "ltr", ...field });
|
5225
5166
|
}
|
5226
5167
|
default: {
|
5227
|
-
return /* @__PURE__ */
|
5168
|
+
return /* @__PURE__ */ jsx19(InlineTip, { variant: "warning", label: t2("general.warning"), children: "The field type does not support rendering a fallback component. Please provide a component prop." });
|
5228
5169
|
}
|
5229
5170
|
}
|
5230
5171
|
};
|