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