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