@mercurjs/admin 2.3.6-canary.6 → 2.3.6-canary.8
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-6OB7BUPK.js → add-campaign-promotions-LGCLOFOD.js} +13 -8
- package/dist/{adjust-inventory-32UZ4BZC.js → adjust-inventory-H46YCNLT.js} +7 -2
- package/dist/{api-key-management-detail-ULNXV7YJ.js → api-key-management-detail-Z4KSJHUC.js} +5 -7
- package/dist/{api-key-management-list-KPWCB7NX.js → api-key-management-list-QZIRPINF.js} +5 -5
- package/dist/{api-key-management-sales-channels-RBK66ZGC.js → api-key-management-sales-channels-RGZ3QITG.js} +9 -7
- package/dist/{attribute-create-UWLP2DZY.js → attribute-create-OFTZRQCO.js} +3 -2
- package/dist/{attribute-detail-7PIMBKEE.js → attribute-detail-WVN5KOH2.js} +13 -7
- package/dist/{attribute-list-FLTRNSFI.js → attribute-list-ZC3CG5LS.js} +6 -6
- package/dist/{campaign-detail-WBWGUSMW.js → campaign-detail-MGDL2TQC.js} +10 -10
- package/dist/{campaign-list-M24QK43I.js → campaign-list-XCO4FJDZ.js} +5 -5
- package/dist/{categories-metadata-6F6EFZRQ.js → categories-metadata-QYH5U77W.js} +2 -2
- package/dist/{category-detail-3YY7FVY4.js → category-detail-FAP76OQB.js} +6 -7
- package/dist/{category-list-AT66O7HI.js → category-list-XDOYTQ4X.js} +5 -5
- package/dist/{category-products-RTOFMB25.js → category-products-35ZZYVWJ.js} +12 -5
- package/dist/{chunk-PH7TEL5B.js → chunk-23CSVCQK.js} +26 -15
- package/dist/{chunk-G4L2EPKT.js → chunk-25TWJMWE.js} +2 -2
- package/dist/{chunk-YJJ6YXFA.js → chunk-26REB3B6.js} +2 -1
- package/dist/{chunk-36C3CNJC.js → chunk-2IOADJUM.js} +27 -9
- package/dist/{chunk-ZH6TIKKW.js → chunk-2MOTQNEG.js} +1 -0
- package/dist/{chunk-4RKWEFNY.js → chunk-2XBNM6TM.js} +2 -2
- package/dist/{chunk-5KTSSLBG.js → chunk-3BKRMIWA.js} +21 -10
- package/dist/chunk-3UOYBH5O.js +8 -0
- package/dist/{chunk-T3AKFW7T.js → chunk-473QGQSA.js} +6 -3
- package/dist/{chunk-FV7B2OWJ.js → chunk-4AOVNA5G.js} +29 -18
- package/dist/{chunk-5LK5NAGN.js → chunk-4J4JAXXQ.js} +5 -3
- package/dist/{chunk-IKAUNMRC.js → chunk-4J74G7N2.js} +15 -3
- package/dist/{chunk-WIDHYDJQ.js → chunk-4JQDYQSX.js} +20 -10
- package/dist/{chunk-QPHY3XXC.js → chunk-4W77EUYY.js} +4 -2
- package/dist/{chunk-VKDZAXLK.js → chunk-5K4WEF2N.js} +19 -8
- package/dist/{chunk-AGO4ROOR.js → chunk-5OIFUF7R.js} +1 -1
- package/dist/{chunk-4CYHJ72Y.js → chunk-5QW3GY37.js} +25 -12
- package/dist/{chunk-BVKPOXLT.js → chunk-72DFLNNI.js} +9 -3
- package/dist/{chunk-X22JPPG6.js → chunk-7GCMYYFL.js} +5 -2
- package/dist/{chunk-AYKMFPKF.js → chunk-7LUKMT5J.js} +4 -2
- package/dist/{chunk-L3GVDREC.js → chunk-7OTRTHLL.js} +4 -2
- package/dist/{chunk-IZ77JV46.js → chunk-AUCCE46Q.js} +6 -3
- package/dist/{chunk-545HIUP3.js → chunk-AW4RL2SA.js} +58 -31
- package/dist/{chunk-62YRQVR7.js → chunk-AZV22U4V.js} +20 -5
- package/dist/{chunk-ZSXF4PEE.js → chunk-CX5XB56X.js} +4 -3
- package/dist/{chunk-J4SYK3RT.js → chunk-DGRHDZQO.js} +15 -5
- package/dist/{chunk-7UHN2CW7.js → chunk-DM52HEOD.js} +1 -1
- package/dist/{chunk-LMBIFEA5.js → chunk-DUKOOIQD.js} +3 -2
- package/dist/{chunk-VM35P6LF.js → chunk-DVFILGNQ.js} +7 -5
- package/dist/{chunk-5H4KS6M3.js → chunk-DWPBJEEM.js} +18 -5
- package/dist/{chunk-B4MSCLHO.js → chunk-E43YJQ2B.js} +42 -18
- package/dist/{chunk-NUMVOUQQ.js → chunk-EHLCUND7.js} +8 -6
- package/dist/{chunk-DBCNRZZE.js → chunk-EIPTLSNT.js} +3 -1
- package/dist/{chunk-7SHPS72O.js → chunk-EVYQCNVT.js} +4 -2
- package/dist/{chunk-VWK3K2CI.js → chunk-FCAJQFYT.js} +30 -10
- package/dist/{chunk-MKVEDGJ2.js → chunk-G63BL5AB.js} +5 -2
- package/dist/{chunk-BZPOERWW.js → chunk-GIV6KSQX.js} +18 -9
- package/dist/{chunk-QOMIRTO4.js → chunk-GQGCXLVP.js} +30 -11
- package/dist/{chunk-GWOZSV7A.js → chunk-GQYB3OOC.js} +105 -62
- package/dist/{chunk-IFG5ONPV.js → chunk-GZUXEIEB.js} +2 -2
- package/dist/{chunk-VOXWLJHA.js → chunk-H3TOETGJ.js} +11 -6
- package/dist/{chunk-B6XGTGMP.js → chunk-H4TJZB26.js} +24 -16
- package/dist/{chunk-AUTG5JEE.js → chunk-HHAM76HD.js} +41 -23
- package/dist/{chunk-XAQLGDAI.js → chunk-HPMMGA5B.js} +1 -1
- package/dist/{chunk-2IPSJDRD.js → chunk-I3RGMOTM.js} +18 -10
- package/dist/{chunk-4OCANHUL.js → chunk-IQRFJO4N.js} +3 -1
- package/dist/{chunk-WJPWYQYV.js → chunk-JFRYC6GK.js} +15 -8
- package/dist/{chunk-FOWWGEP7.js → chunk-JS2DAWKO.js} +9 -6
- package/dist/{chunk-ESVFENTS.js → chunk-K6OBX6ZR.js} +5 -4
- package/dist/{chunk-TN3HCAJ2.js → chunk-KB3BTLIB.js} +4 -2
- package/dist/{chunk-VIHLAFDA.js → chunk-KYOZ4CCY.js} +61 -29
- package/dist/{chunk-UFFLSUK4.js → chunk-LCUAIH7P.js} +4 -2
- package/dist/{chunk-3CLWBE4O.js → chunk-M7VHCFCW.js} +7 -5
- package/dist/{chunk-EVCAR6GP.js → chunk-MAEUKXZ4.js} +8 -5
- package/dist/{chunk-RU5IUJC2.js → chunk-MFGLOUTZ.js} +32 -10
- package/dist/{chunk-HFCJJJKP.js → chunk-MKKOAF2W.js} +26 -12
- package/dist/{chunk-AJCCPN5R.js → chunk-MNKJHZZT.js} +8 -4
- package/dist/{chunk-XV4YW4GE.js → chunk-NDS246VB.js} +20 -12
- package/dist/{chunk-ZPNRNL4X.js → chunk-NHZU2M7Z.js} +6 -4
- package/dist/{chunk-3JXOVOJI.js → chunk-NJ2NRKAJ.js} +55 -12
- package/dist/{chunk-CFQX7HAW.js → chunk-OCDZIJBM.js} +11 -5
- package/dist/{chunk-HBQ7EHHM.js → chunk-OGTWBHJC.js} +1 -1
- package/dist/{chunk-CBLCX5UK.js → chunk-Q2XWHI6K.js} +4 -1
- package/dist/{chunk-YWZQKODL.js → chunk-R55XYG6Y.js} +28 -15
- package/dist/{chunk-UZ2FWDJO.js → chunk-RAD3UMQ3.js} +4 -2
- package/dist/{chunk-WA3UZTKD.js → chunk-RUGB47D3.js} +1 -1
- package/dist/{chunk-ZOU25JF6.js → chunk-SU36MZXC.js} +11 -3
- package/dist/{chunk-SJEMUTO2.js → chunk-SW46WBFA.js} +29 -14
- package/dist/{chunk-NOK2356Y.js → chunk-SZSAJHN7.js} +4 -3
- package/dist/{chunk-QFYTIG3H.js → chunk-TPWSE5HE.js} +14 -9
- package/dist/{chunk-7ECQXPOG.js → chunk-TVCHVG2A.js} +3 -3
- package/dist/{chunk-ZPHVFD4N.js → chunk-TXZWIFWX.js} +1 -0
- package/dist/{chunk-HJACC6KV.js → chunk-UKQ6FES4.js} +6 -3
- package/dist/{chunk-7Y7YN7KG.js → chunk-USEE6QNQ.js} +65 -25
- package/dist/{chunk-JL3NKSLJ.js → chunk-USO2SWZV.js} +9 -4
- package/dist/{chunk-7C7YLUYT.js → chunk-V3UQOU5W.js} +4 -2
- package/dist/{chunk-HUJIVGX3.js → chunk-VD2CKAYG.js} +19 -8
- package/dist/{chunk-D3KEKNYN.js → chunk-VHO6ZXW2.js} +9 -5
- package/dist/{chunk-C4XKPQ6T.js → chunk-VLNTJXXO.js} +16 -3
- package/dist/{chunk-D3RDR3D3.js → chunk-W3LCOK3O.js} +153 -124
- package/dist/{chunk-IAMX7JMM.js → chunk-WD5XBWAN.js} +118 -53
- package/dist/chunk-WSK532ZA.js +236 -0
- package/dist/{chunk-RX7RU7VV.js → chunk-XI4SB5YZ.js} +120 -81
- package/dist/{chunk-KMLQ2ENL.js → chunk-XNGTE2VC.js} +1 -1
- package/dist/{chunk-TXEOM3WC.js → chunk-XUOGIKEE.js} +3 -3
- package/dist/{chunk-R22UAHRF.js → chunk-YDESULL7.js} +3 -1
- package/dist/{chunk-JODADMJ6.js → chunk-YN4KTMRA.js} +7 -5
- package/dist/{chunk-IVWSTXBV.js → chunk-YUKJJHI7.js} +8 -5
- package/dist/{chunk-4EQSS3YZ.js → chunk-Z2FX5GG4.js} +22 -10
- package/dist/{chunk-JQEAWWRP.js → chunk-ZPJOSHV7.js} +23 -12
- package/dist/{chunk-FX7HVGV5.js → chunk-ZQZFY3UY.js} +6 -4
- package/dist/{chunk-U2RBSUMY.js → chunk-ZU76OTV3.js} +2 -2
- package/dist/{collection-add-products-O5ILXKFY.js → collection-add-products-IIBLH7XQ.js} +12 -5
- package/dist/{collection-detail-N7VZKBIJ.js → collection-detail-IYZKDR4L.js} +6 -7
- package/dist/{collection-list-QQJAESFN.js → collection-list-EIDV4DEH.js} +11 -11
- package/dist/{collection-metadata-QUMWZABV.js → collection-metadata-IKYBHHEU.js} +2 -2
- package/dist/{commission-rule-create-CDLLQIY4.js → commission-rule-create-QDNXXBTV.js} +64 -30
- package/dist/{commission-rule-detail-CIE6TPXW.js → commission-rule-detail-QYJIK375.js} +3 -5
- package/dist/{commission-rule-edit-5CFKPI7U.js → commission-rule-edit-HICDPDLK.js} +58 -24
- package/dist/{commissions-list-US6OMDVL.js → commissions-list-AQUW636T.js} +6 -6
- package/dist/{customer-detail-CGKGZE2N.js → customer-detail-TBGKTNQQ.js} +8 -8
- package/dist/{customer-group-add-customers-XYWJSXKS.js → customer-group-add-customers-RWJOA2NJ.js} +3 -3
- package/dist/{customer-group-detail-JMBR3D72.js → customer-group-detail-47IPD337.js} +6 -7
- package/dist/{customer-group-list-GYEQ2GTL.js → customer-group-list-Q2AYIVO4.js} +6 -7
- package/dist/{customer-group-metadata-UQ2SCLOK.js → customer-group-metadata-T3WFBL7U.js} +2 -2
- package/dist/{customer-list-6X6RQDLK.js → customer-list-JOPTF4QB.js} +5 -6
- package/dist/{customer-metadata-UEQSIGLT.js → customer-metadata-YSMWL4L3.js} +2 -2
- package/dist/{customers-add-customer-group-AZYAIQ7E.js → customers-add-customer-group-AVRYBS6Q.js} +13 -6
- package/dist/{edit-inventory-item-ENA2OFSQ.js → edit-inventory-item-7M7Q6HL4.js} +1 -1
- package/dist/{edit-inventory-item-attributes-Z26UDTSH.js → edit-inventory-item-attributes-E7J2WFPF.js} +1 -1
- package/dist/{edit-reservation-W3THLKKK.js → edit-reservation-S3QTQRPY.js} +11 -3
- package/dist/{edit-rules-3DCWA5UF.js → edit-rules-NRF7U4AT.js} +1 -1
- package/dist/{home-RT4EIJFM.js → home-KKOF4FWS.js} +3 -3
- package/dist/index.css +3 -0
- package/dist/index.d.ts +10 -28
- package/dist/index.js +431 -545
- package/dist/{inventory-detail-PMJN4E2D.js → inventory-detail-U6TRGZRY.js} +6 -6
- package/dist/{inventory-list-XS3OFHLW.js → inventory-list-JWA7U2LB.js} +4 -5
- package/dist/{inventory-metadata-OGS7JMZ5.js → inventory-metadata-KO622YEI.js} +2 -2
- package/dist/{inventory-stock-LDBJQCJF.js → inventory-stock-WWXYVFK2.js} +20 -10
- package/dist/{location-detail-DKBNATDD.js → location-detail-27FBZML7.js} +4 -6
- package/dist/{location-fulfillment-providers-JGJOTGMZ.js → location-fulfillment-providers-XTYJWAVP.js} +19 -11
- package/dist/{location-list-JJN42JSH.js → location-list-RMHT36AO.js} +4 -6
- package/dist/{location-sales-channels-FT6TFVXJ.js → location-sales-channels-JB5OIMXE.js} +13 -6
- package/dist/{location-service-zone-create-KPM4RSCF.js → location-service-zone-create-JKAKZCZ2.js} +3 -3
- package/dist/{location-service-zone-manage-areas-NW5JUTCH.js → location-service-zone-manage-areas-K2BMFI5Y.js} +3 -3
- package/dist/{location-service-zone-shipping-option-create-RYAIECRU.js → location-service-zone-shipping-option-create-WJOLO6A3.js} +3 -3
- package/dist/{location-service-zone-shipping-option-edit-UUIR7B5S.js → location-service-zone-shipping-option-edit-I7BJGH76.js} +23 -10
- package/dist/{location-service-zone-shipping-option-pricing-Z5HCXRHG.js → location-service-zone-shipping-option-pricing-47Y3CP4U.js} +36 -12
- package/dist/{login-72TAMW53.js → login-ISNIWXU2.js} +1 -1
- package/dist/{manage-locations-TCMY6A4J.js → manage-locations-5FKFNJQN.js} +13 -2
- package/dist/{marketplace-add-currencies-Z6FUIAU5.js → marketplace-add-currencies-34XKWMI7.js} +33 -9
- package/dist/{marketplace-detail-UYBZIFQW.js → marketplace-detail-A76FTENH.js} +6 -6
- package/dist/{marketplace-edit-G7YNGABC.js → marketplace-edit-KXKUECZQ.js} +61 -30
- package/dist/{marketplace-metadata-2TZTRDRJ.js → marketplace-metadata-364KJG43.js} +2 -2
- package/dist/{offer-detail-page-XU6XK6YR.js → offer-detail-page-BDDDZSPL.js} +19 -8
- package/dist/{offer-variant-detail-page-FVJE5WLV.js → offer-variant-detail-page-HQU4HMZH.js} +4 -5
- package/dist/{offers-RS4UORI3.js → offers-OVX5AAQL.js} +6 -7
- package/dist/{order-create-claim-PPUQXVYH.js → order-create-claim-4ERPSGPD.js} +103 -59
- package/dist/{order-create-edit-QH25BOIU.js → order-create-edit-BGLNMKKI.js} +15 -8
- package/dist/{order-create-exchange-5PCJ25LK.js → order-create-exchange-TOPPZZGS.js} +104 -60
- package/dist/{order-create-refund-ZWMXQGUA.js → order-create-refund-M3K5MZDM.js} +38 -23
- package/dist/{order-create-return-ECGHPLEZ.js → order-create-return-64GZ2LCL.js} +107 -68
- package/dist/{order-detail-XYHRY25Y.js → order-detail-DIUKR6ZJ.js} +7 -7
- package/dist/{order-edit-billing-address-V6QS5DYF.js → order-edit-billing-address-CCRTK5E2.js} +2 -2
- package/dist/{order-edit-email-AGJU7YHU.js → order-edit-email-V45SEUCO.js} +1 -1
- package/dist/{order-edit-shipping-address-TKLEEHOE.js → order-edit-shipping-address-45Z6TNHL.js} +1 -1
- package/dist/{order-list-L2WZX5ED.js → order-list-C7PHMQ64.js} +5 -5
- package/dist/{order-metadata-NVC3A3A5.js → order-metadata-7245QRUQ.js} +2 -2
- package/dist/{order-request-transfer-7EZX5UOQ.js → order-request-transfer-JYPDXCY2.js} +27 -13
- package/dist/pages/index.d.ts +2 -2
- package/dist/pages/index.js +88 -88
- package/dist/{payout-list-WZ6QMJJY.js → payout-list-KILGQ4XP.js} +3 -3
- package/dist/{price-list-create-DRKZIV2D.js → price-list-create-UZRCHVU7.js} +9 -9
- package/dist/{price-list-customer-availability-WU2OGO37.js → price-list-customer-availability-CQY55U4O.js} +31 -14
- package/dist/{price-list-detail-AML5XNDJ.js → price-list-detail-IL7VSABK.js} +6 -7
- package/dist/{price-list-list-FPCLLS33.js → price-list-list-TD5JIO7L.js} +5 -5
- package/dist/{price-list-prices-add-HAYZV2XV.js → price-list-prices-add-DSRYUJUT.js} +8 -8
- package/dist/{price-list-prices-edit-S4V5ACN3.js → price-list-prices-edit-WELHT4O4.js} +18 -9
- package/dist/{product-add-existing-attributes-VWM3LNIO.js → product-add-existing-attributes-RPIHTSCE.js} +7 -5
- package/dist/{product-create-73WXVANY.js → product-create-PMV3LO62.js} +9 -9
- package/dist/{product-detail-ZKQXB7PH.js → product-detail-KVLZYO76.js} +6 -7
- package/dist/{product-edit-attribute-W3AS47FM.js → product-edit-attribute-URHTZ2EQ.js} +9 -3
- package/dist/{product-list-SYMPZR6W.js → product-list-M6B42KCG.js} +6 -7
- package/dist/{product-media-6XS74AU3.js → product-media-R2FIBFR5.js} +2 -2
- package/dist/{product-metadata-GKQUURAL.js → product-metadata-SC5BXN66.js} +2 -2
- package/dist/{product-organization-3PIQ4IY2.js → product-organization-BSPYZYZR.js} +87 -43
- package/dist/{product-sales-channels-PJNEIY4J.js → product-sales-channels-MNAFJKAI.js} +10 -5
- package/dist/{product-shipping-profile-SWB5FK7S.js → product-shipping-profile-G4NCDKSR.js} +25 -11
- package/dist/{product-tag-create-SYOFR5EK.js → product-tag-create-PX7Q2AXU.js} +1 -1
- package/dist/{product-tag-detail-Q3CKJBVX.js → product-tag-detail-LXO43RMB.js} +11 -11
- package/dist/{product-tag-edit-FJPBCFBH.js → product-tag-edit-PXSZMCCT.js} +1 -1
- package/dist/{product-tag-list-BNNJS67H.js → product-tag-list-XWTZGQTT.js} +11 -11
- package/dist/{product-tag-metadata-WQEGISQ5.js → product-tag-metadata-2SO7ICOZ.js} +2 -2
- package/dist/{product-type-detail-WZLA27WI.js → product-type-detail-NO4PKFYQ.js} +6 -7
- package/dist/{product-type-list-PAAE6ZSR.js → product-type-list-JXU3446J.js} +5 -5
- package/dist/{product-type-metadata-WCGB3U4N.js → product-type-metadata-7D3J3NSO.js} +2 -2
- package/dist/{product-variant-detail-7B26FRNG.js → product-variant-detail-VQ55W7PD.js} +3 -5
- package/dist/{product-variant-edit-UC34WTO7.js → product-variant-edit-3WSHMGDI.js} +1 -1
- package/dist/{product-variant-metadata-CTKNNNLM.js → product-variant-metadata-KFLIOCU2.js} +2 -2
- package/dist/{profile-detail-GDQQJUWF.js → profile-detail-SQZ6JFAN.js} +3 -5
- package/dist/{profile-edit-ZBD6N5SC.js → profile-edit-IVU3SBQA.js} +3 -3
- package/dist/{promotion-add-campaign-VAF3HTLK.js → promotion-add-campaign-SWTS4TM5.js} +2 -1
- package/dist/{promotion-create-FKRGXGI4.js → promotion-create-6TMK6PEP.js} +4 -3
- package/dist/{promotion-detail-HOXUK5VG.js → promotion-detail-WBTMSCTX.js} +6 -8
- package/dist/{promotion-list-LJKKLZNU.js → promotion-list-FPOTDLHX.js} +9 -9
- package/dist/{refund-reason-create-TOH2D225.js → refund-reason-create-HZOBFOPB.js} +1 -1
- package/dist/{refund-reason-edit-B32E4WHH.js → refund-reason-edit-KS6NMC22.js} +1 -1
- package/dist/{refund-reason-list-3YLXKHJX.js → refund-reason-list-4T7DIRZV.js} +5 -6
- package/dist/{region-add-countries-4CTAVHYW.js → region-add-countries-47QLUMX7.js} +2 -2
- package/dist/{region-create-S2WUJ4RA.js → region-create-7DI3QEPU.js} +25 -11
- package/dist/{region-detail-YTB7OEQU.js → region-detail-S5OT2PGL.js} +4 -5
- package/dist/{region-edit-NUMG2V5L.js → region-edit-IXCS3MRH.js} +32 -14
- package/dist/{region-list-JP3CZISQ.js → region-list-2MWAGD2D.js} +4 -5
- package/dist/{region-metadata-NAHNXAHQ.js → region-metadata-ADPG7OLJ.js} +2 -2
- package/dist/{reservation-create-H3T3AHTK.js → reservation-create-YEICXID2.js} +67 -44
- package/dist/{reservation-detail-M42OB6BC.js → reservation-detail-EBIDXEVF.js} +3 -5
- package/dist/{reservation-list-FQAWE7S5.js → reservation-list-5QNXC2WU.js} +4 -5
- package/dist/{reservation-metadata-AKR6FRG5.js → reservation-metadata-TWJE777O.js} +2 -2
- package/dist/{reset-password-RJ5VSBQV.js → reset-password-3YLCNWLP.js} +1 -1
- package/dist/{return-reason-list-PKAJDA6A.js → return-reason-list-BDR7VUEV.js} +5 -5
- package/dist/{review-detail-K555FECH.js → review-detail-NPB3OKCE.js} +2 -4
- package/dist/{review-list-5NGJJH23.js → review-list-NXBVRP5T.js} +4 -5
- package/dist/{sales-channel-add-products-RRTMXVAT.js → sales-channel-add-products-VAHBFZP3.js} +15 -6
- package/dist/{sales-channel-detail-7GAGHWEP.js → sales-channel-detail-A7HHMQVX.js} +6 -7
- package/dist/{sales-channel-list-BCL62DTX.js → sales-channel-list-246V7NV3.js} +4 -6
- package/dist/{sales-channel-metadata-BKNILVQ2.js → sales-channel-metadata-PMLMQIKU.js} +2 -2
- package/dist/settings-UYGKDTNO.js +63 -0
- package/dist/{shipping-option-type-create-ZVOMA222.js → shipping-option-type-create-NOFP2DOM.js} +1 -1
- package/dist/{shipping-option-type-detail-2VDQWYDS.js → shipping-option-type-detail-47AZVCFP.js} +3 -5
- package/dist/{shipping-option-type-edit-CZFRAZPJ.js → shipping-option-type-edit-42JILKHX.js} +1 -1
- package/dist/{shipping-option-type-list-2XUYXURQ.js → shipping-option-type-list-TTAA63ZN.js} +6 -6
- package/dist/{shipping-profile-detail-7SE5GLQZ.js → shipping-profile-detail-RGB67K3C.js} +2 -4
- package/dist/{shipping-profile-metadata-UEZYRBZQ.js → shipping-profile-metadata-GXMY5E57.js} +2 -2
- package/dist/{shipping-profiles-list-GC6AK77V.js → shipping-profiles-list-DD3G2THE.js} +4 -5
- package/dist/{store-create-JBY2MAIT.js → store-create-UQ333C5F.js} +36 -14
- package/dist/{store-details-MPTCI4VG.js → store-details-OAONJZHB.js} +8 -9
- package/dist/{store-edit-BXWV5H4Z.js → store-edit-6Q3GLLJE.js} +2 -2
- package/dist/{store-list-LPKSZF2E.js → store-list-PANSKKVA.js} +10 -11
- package/dist/{store-member-invite-A2WAB5GK.js → store-member-invite-235YGK55.js} +14 -5
- package/dist/{tax-region-create-OGVIIVMO.js → tax-region-create-ECRRD74Z.js} +2 -2
- package/dist/{tax-region-detail-3CMIPIKA.js → tax-region-detail-PU4Q42KO.js} +7 -8
- package/dist/{tax-region-edit-DUBTSOQ4.js → tax-region-edit-P4L2CUFV.js} +1 -1
- package/dist/{tax-region-list-U5JRCQZI.js → tax-region-list-PUNXDH34.js} +5 -6
- package/dist/{tax-region-metadata-KHODQCDW.js → tax-region-metadata-EDZ7YGYR.js} +2 -2
- package/dist/{tax-region-province-detail-XTPJ6DZZ.js → tax-region-province-detail-3ZQOCKZ2.js} +6 -7
- package/dist/{tax-region-tax-override-create-NMLHLS7J.js → tax-region-tax-override-create-CPWWLRMI.js} +10 -10
- package/dist/{tax-region-tax-override-edit-4SJ3DRAF.js → tax-region-tax-override-edit-TQCB5GSO.js} +41 -21
- package/dist/{user-detail-RD3T5WQT.js → user-detail-4H37KBIP.js} +3 -5
- package/dist/{user-edit-Y5VP6CKB.js → user-edit-42A2VX5E.js} +1 -1
- package/dist/{user-invite-4JFF3NRW.js → user-invite-5EJ3CIQZ.js} +5 -4
- package/dist/{user-list-X6UZ6UZM.js → user-list-EZ56HFI3.js} +5 -6
- package/dist/{user-metadata-XNM2JNNO.js → user-metadata-3GENWLUS.js} +2 -2
- package/package.json +6 -6
- package/dist/chunk-BDGZ4EQO.js +0 -86
- package/dist/settings-AVE3VCCM.js +0 -19
- package/dist/{customer-edit-5EH2AUGN.js → customer-edit-LDKAXHZ6.js} +3 -3
- package/dist/{store-bulk-edit-FQPQQR46.js → store-bulk-edit-XWDZQPFO.js} +1 -1
package/dist/index.js
CHANGED
|
@@ -3,24 +3,20 @@ import {
|
|
|
3
3
|
taxRegionLoader
|
|
4
4
|
} from "./chunk-ASFCRSBA.js";
|
|
5
5
|
import "./chunk-QR3GYYX6.js";
|
|
6
|
+
import {
|
|
7
|
+
SettingsLayout
|
|
8
|
+
} from "./chunk-WSK532ZA.js";
|
|
6
9
|
import "./chunk-FMFVTERD.js";
|
|
7
10
|
import "./chunk-JRTZWK77.js";
|
|
8
11
|
import {
|
|
9
12
|
ErrorBoundary,
|
|
10
13
|
MainLayout,
|
|
11
|
-
NavItem,
|
|
12
14
|
SearchProvider,
|
|
13
|
-
Shell,
|
|
14
15
|
SidebarProvider,
|
|
15
16
|
ThemeProvider,
|
|
16
|
-
UserMenu,
|
|
17
17
|
createRouteMap,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
getRoutePermission,
|
|
21
|
-
getRoutesByType,
|
|
22
|
-
useExpandedSidebar
|
|
23
|
-
} from "./chunk-RX7RU7VV.js";
|
|
18
|
+
getRoutesByType
|
|
19
|
+
} from "./chunk-XI4SB5YZ.js";
|
|
24
20
|
import "./chunk-C6SUTRP2.js";
|
|
25
21
|
import {
|
|
26
22
|
TabbedForm,
|
|
@@ -35,7 +31,7 @@ import {
|
|
|
35
31
|
} from "./chunk-KDE4HKH2.js";
|
|
36
32
|
import {
|
|
37
33
|
I18n
|
|
38
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-TXZWIFWX.js";
|
|
39
35
|
import {
|
|
40
36
|
SwitchBox
|
|
41
37
|
} from "./chunk-2EME4AWX.js";
|
|
@@ -45,6 +41,7 @@ import "./chunk-FWJLS7XD.js";
|
|
|
45
41
|
import {
|
|
46
42
|
Form
|
|
47
43
|
} from "./chunk-3QSRE5LS.js";
|
|
44
|
+
import "./chunk-LAVHRER2.js";
|
|
48
45
|
import {
|
|
49
46
|
PRODUCT_DETAIL_FIELDS,
|
|
50
47
|
PRODUCT_DETAIL_QUERY
|
|
@@ -57,15 +54,15 @@ import "./chunk-FQERBIVS.js";
|
|
|
57
54
|
import {
|
|
58
55
|
_DataTable,
|
|
59
56
|
useDataTable
|
|
60
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-SU36MZXC.js";
|
|
61
58
|
import "./chunk-YN3FGNJM.js";
|
|
62
59
|
import "./chunk-ZAOEFQ6K.js";
|
|
63
|
-
import "./chunk-
|
|
60
|
+
import "./chunk-4J74G7N2.js";
|
|
64
61
|
import "./chunk-EIWPJWKF.js";
|
|
65
62
|
import "./chunk-46WEBDVJ.js";
|
|
66
63
|
import {
|
|
67
64
|
ActionMenu
|
|
68
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-3UOYBH5O.js";
|
|
69
66
|
import "./chunk-W5U6NPSN.js";
|
|
70
67
|
import "./chunk-DSQRFZCO.js";
|
|
71
68
|
import "./chunk-LHE6LM6S.js";
|
|
@@ -78,8 +75,9 @@ import "./chunk-JW5SGRFC.js";
|
|
|
78
75
|
import "./chunk-AEBQQ2EG.js";
|
|
79
76
|
import "./chunk-CMVQ5SAG.js";
|
|
80
77
|
import {
|
|
78
|
+
meQueryOptions,
|
|
81
79
|
useMe
|
|
82
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-AZV22U4V.js";
|
|
83
81
|
import "./chunk-2SCR7R3C.js";
|
|
84
82
|
import "./chunk-YMMREB3P.js";
|
|
85
83
|
import "./chunk-UNS2F7DK.js";
|
|
@@ -98,7 +96,6 @@ import "./chunk-HRMANL53.js";
|
|
|
98
96
|
import "./chunk-JC2FFAMW.js";
|
|
99
97
|
import "./chunk-OFW63WXL.js";
|
|
100
98
|
import "./chunk-SQ7J4KTS.js";
|
|
101
|
-
import "./chunk-LAVHRER2.js";
|
|
102
99
|
import "./chunk-Y7QKP6QU.js";
|
|
103
100
|
import "./chunk-INNFZYX2.js";
|
|
104
101
|
import "./chunk-Z476HUMI.js";
|
|
@@ -197,223 +194,19 @@ var PublicLayout = () => {
|
|
|
197
194
|
return /* @__PURE__ */ jsx3(Outlet2, {});
|
|
198
195
|
};
|
|
199
196
|
|
|
200
|
-
// src/components/layout/settings-layout/settings-layout.tsx
|
|
201
|
-
import { useEffect, useMemo as useMemo2, useState } from "react";
|
|
202
|
-
import { ArrowUturnLeft, MinusMini } from "@medusajs/icons";
|
|
203
|
-
import { Divider, IconButton, Text, clx } from "@medusajs/ui";
|
|
204
|
-
import { Collapsible as RadixCollapsible } from "radix-ui";
|
|
205
|
-
import { useTranslation } from "react-i18next";
|
|
206
|
-
import { Link, useLocation as useLocation2 } from "react-router-dom";
|
|
207
|
-
import menuItemsModule from "virtual:mercur/menu-items";
|
|
208
|
-
import { usePermissions } from "@mercurjs/dashboard-shared";
|
|
209
|
-
import { jsx as jsx4, jsxs } from "react/jsx-runtime";
|
|
210
|
-
var SettingsLayout = () => {
|
|
211
|
-
useExpandedSidebar();
|
|
212
|
-
return /* @__PURE__ */ jsx4(Shell, { rail: false, children: /* @__PURE__ */ jsx4(SettingsSidebar, {}) });
|
|
213
|
-
};
|
|
214
|
-
var allMenuItems = menuItemsModule.menuItems ?? [];
|
|
215
|
-
var useExtensionNavItems = () => {
|
|
216
|
-
const { hasAnyPermission, hasAllPermissions } = usePermissions();
|
|
217
|
-
return useMemo2(
|
|
218
|
-
() => getMenuItemsByType(
|
|
219
|
-
filterMenuItemsByPermissions(allMenuItems, {
|
|
220
|
-
hasAnyPermission,
|
|
221
|
-
hasAllPermissions
|
|
222
|
-
}),
|
|
223
|
-
"settings"
|
|
224
|
-
).sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0)).map((item) => ({
|
|
225
|
-
label: item.label,
|
|
226
|
-
to: item.path,
|
|
227
|
-
translationNs: item.translationNs
|
|
228
|
-
})),
|
|
229
|
-
[hasAnyPermission, hasAllPermissions]
|
|
230
|
-
);
|
|
231
|
-
};
|
|
232
|
-
var useSettingRoutes = () => {
|
|
233
|
-
const { t: t2 } = useTranslation();
|
|
234
|
-
const extensionNavItems = useExtensionNavItems();
|
|
235
|
-
return useMemo2(
|
|
236
|
-
() => [
|
|
237
|
-
{
|
|
238
|
-
label: t2("marketplace.domain"),
|
|
239
|
-
to: "/settings/marketplace"
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
label: t2("users.domain"),
|
|
243
|
-
to: "/settings/users"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
label: t2("regions.domain"),
|
|
247
|
-
to: "/settings/regions"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
label: t2("taxRegions.domain"),
|
|
251
|
-
to: "/settings/tax-regions"
|
|
252
|
-
},
|
|
253
|
-
{
|
|
254
|
-
label: t2("returnReasons.domain"),
|
|
255
|
-
to: "/settings/return-reasons"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
label: t2("refundReasons.domain"),
|
|
259
|
-
to: "/settings/refund-reasons"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
label: t2("salesChannels.domain"),
|
|
263
|
-
to: "/settings/sales-channels"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
label: t2("productTypes.domain"),
|
|
267
|
-
to: "/settings/product-types"
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
label: t2("productTags.domain"),
|
|
271
|
-
to: "/settings/product-tags"
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
label: t2("attributes.domain"),
|
|
275
|
-
to: "/settings/attributes"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
label: t2("stockLocations.domain"),
|
|
279
|
-
to: "/settings/locations"
|
|
280
|
-
},
|
|
281
|
-
{
|
|
282
|
-
label: t2("commissions.domain"),
|
|
283
|
-
to: "/settings/commissions"
|
|
284
|
-
},
|
|
285
|
-
...extensionNavItems
|
|
286
|
-
],
|
|
287
|
-
[t2, extensionNavItems]
|
|
288
|
-
);
|
|
289
|
-
};
|
|
290
|
-
var useDeveloperRoutes = () => {
|
|
291
|
-
const { t: t2 } = useTranslation();
|
|
292
|
-
return useMemo2(
|
|
293
|
-
() => [
|
|
294
|
-
{
|
|
295
|
-
label: t2("apiKeyManagement.domain.publishable"),
|
|
296
|
-
to: "/settings/publishable-api-keys"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
label: t2("apiKeyManagement.domain.secret"),
|
|
300
|
-
to: "/settings/secret-api-keys"
|
|
301
|
-
}
|
|
302
|
-
],
|
|
303
|
-
[t2]
|
|
304
|
-
);
|
|
305
|
-
};
|
|
306
|
-
var useMyAccountRoutes = () => {
|
|
307
|
-
const { t: t2 } = useTranslation();
|
|
308
|
-
return useMemo2(
|
|
309
|
-
() => [
|
|
310
|
-
{
|
|
311
|
-
label: t2("profile.domain"),
|
|
312
|
-
to: "/settings/profile"
|
|
313
|
-
}
|
|
314
|
-
],
|
|
315
|
-
[t2]
|
|
316
|
-
);
|
|
317
|
-
};
|
|
318
|
-
var getSafeFromValue = (from) => {
|
|
319
|
-
if (from.startsWith("/settings")) {
|
|
320
|
-
return "/orders";
|
|
321
|
-
}
|
|
322
|
-
return from;
|
|
323
|
-
};
|
|
324
|
-
var SettingsSidebar = () => {
|
|
325
|
-
const { hasPermission } = usePermissions();
|
|
326
|
-
const canReach = ({ to }) => {
|
|
327
|
-
const permission = getRoutePermission(to);
|
|
328
|
-
return !permission || hasPermission(permission);
|
|
329
|
-
};
|
|
330
|
-
const routes = useSettingRoutes().filter(canReach);
|
|
331
|
-
const developerRoutes = useDeveloperRoutes().filter(canReach);
|
|
332
|
-
const myAccountRoutes = useMyAccountRoutes();
|
|
333
|
-
const { t: t2 } = useTranslation();
|
|
334
|
-
return /* @__PURE__ */ jsxs("aside", { className: "relative flex flex-1 flex-col justify-between overflow-y-auto", children: [
|
|
335
|
-
/* @__PURE__ */ jsxs("div", { className: "sticky top-0 bg-ui-bg-subtle", children: [
|
|
336
|
-
/* @__PURE__ */ jsx4(Header, {}),
|
|
337
|
-
/* @__PURE__ */ jsx4("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx4(Divider, { variant: "dashed" }) })
|
|
338
|
-
] }),
|
|
339
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col", children: [
|
|
340
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col overflow-y-auto", children: [
|
|
341
|
-
/* @__PURE__ */ jsx4(
|
|
342
|
-
RadixCollapsibleSection,
|
|
343
|
-
{
|
|
344
|
-
label: t2("app.nav.settings.general"),
|
|
345
|
-
items: routes
|
|
346
|
-
}
|
|
347
|
-
),
|
|
348
|
-
/* @__PURE__ */ jsx4("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx4(Divider, { variant: "dashed" }) }),
|
|
349
|
-
/* @__PURE__ */ jsx4(
|
|
350
|
-
RadixCollapsibleSection,
|
|
351
|
-
{
|
|
352
|
-
label: t2("app.nav.settings.developer"),
|
|
353
|
-
items: developerRoutes
|
|
354
|
-
}
|
|
355
|
-
),
|
|
356
|
-
/* @__PURE__ */ jsx4("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx4(Divider, { variant: "dashed" }) }),
|
|
357
|
-
/* @__PURE__ */ jsx4(
|
|
358
|
-
RadixCollapsibleSection,
|
|
359
|
-
{
|
|
360
|
-
label: t2("app.nav.settings.myAccount"),
|
|
361
|
-
items: myAccountRoutes
|
|
362
|
-
}
|
|
363
|
-
)
|
|
364
|
-
] }),
|
|
365
|
-
/* @__PURE__ */ jsx4("div", { className: "sticky bottom-0 bg-ui-bg-subtle", children: /* @__PURE__ */ jsx4(UserSection, {}) })
|
|
366
|
-
] })
|
|
367
|
-
] });
|
|
368
|
-
};
|
|
369
|
-
var Header = () => {
|
|
370
|
-
const [from, setFrom] = useState("/orders");
|
|
371
|
-
const { t: t2 } = useTranslation();
|
|
372
|
-
const location = useLocation2();
|
|
373
|
-
useEffect(() => {
|
|
374
|
-
if (location.state?.from) {
|
|
375
|
-
setFrom(getSafeFromValue(location.state.from));
|
|
376
|
-
}
|
|
377
|
-
}, [location]);
|
|
378
|
-
return /* @__PURE__ */ jsx4("div", { className: "bg-ui-bg-subtle p-3", children: /* @__PURE__ */ jsx4(
|
|
379
|
-
Link,
|
|
380
|
-
{
|
|
381
|
-
to: from,
|
|
382
|
-
replace: true,
|
|
383
|
-
className: clx(
|
|
384
|
-
"flex items-center rounded-md bg-ui-bg-subtle outline-none transition-fg",
|
|
385
|
-
"hover:bg-ui-bg-subtle-hover",
|
|
386
|
-
"focus-visible:shadow-borders-focus"
|
|
387
|
-
),
|
|
388
|
-
children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2.5 px-2 py-1", children: [
|
|
389
|
-
/* @__PURE__ */ jsx4("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx4(ArrowUturnLeft, { className: "text-ui-fg-subtle" }) }),
|
|
390
|
-
/* @__PURE__ */ jsx4(Text, { leading: "compact", weight: "plus", size: "small", children: t2("app.nav.settings.header") })
|
|
391
|
-
] })
|
|
392
|
-
}
|
|
393
|
-
) });
|
|
394
|
-
};
|
|
395
|
-
var RadixCollapsibleSection = ({
|
|
396
|
-
label,
|
|
397
|
-
items
|
|
398
|
-
}) => {
|
|
399
|
-
return /* @__PURE__ */ jsxs(RadixCollapsible.Root, { defaultOpen: true, className: "py-3", children: [
|
|
400
|
-
/* @__PURE__ */ jsx4("div", { className: "px-3", children: /* @__PURE__ */ jsxs("div", { className: "flex h-7 items-center justify-between px-2 text-ui-fg-muted", children: [
|
|
401
|
-
/* @__PURE__ */ jsx4(Text, { size: "small", leading: "compact", children: label }),
|
|
402
|
-
/* @__PURE__ */ jsx4(RadixCollapsible.Trigger, { asChild: true, children: /* @__PURE__ */ jsx4(IconButton, { size: "2xsmall", variant: "transparent", className: "static", children: /* @__PURE__ */ jsx4(MinusMini, { className: "text-ui-fg-muted" }) }) })
|
|
403
|
-
] }) }),
|
|
404
|
-
/* @__PURE__ */ jsx4(RadixCollapsible.Content, { children: /* @__PURE__ */ jsx4("div", { className: "pt-0.5", children: /* @__PURE__ */ jsx4("nav", { className: "flex flex-col gap-y-0.5", children: items.map((setting) => /* @__PURE__ */ jsx4(NavItem, { type: "setting", ...setting }, setting.to)) }) }) })
|
|
405
|
-
] });
|
|
406
|
-
};
|
|
407
|
-
var UserSection = () => {
|
|
408
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
409
|
-
/* @__PURE__ */ jsx4("div", { className: "px-3", children: /* @__PURE__ */ jsx4(Divider, { variant: "dashed" }) }),
|
|
410
|
-
/* @__PURE__ */ jsx4(UserMenu, {})
|
|
411
|
-
] });
|
|
412
|
-
};
|
|
413
|
-
|
|
414
197
|
// src/get-route-map.tsx
|
|
415
198
|
import { RoutePermissionGuard } from "@mercurjs/dashboard-shared";
|
|
416
|
-
|
|
199
|
+
|
|
200
|
+
// src/lib/permissions/with-permission.ts
|
|
201
|
+
import { createWithPermission } from "@mercurjs/dashboard-shared";
|
|
202
|
+
var withPermission = createWithPermission(async () => {
|
|
203
|
+
const { user } = await queryClient.ensureQueryData(meQueryOptions());
|
|
204
|
+
return user?.permissions ?? null;
|
|
205
|
+
});
|
|
206
|
+
var withLoaderPermission = (permission) => (module) => module.loader ? { ...module, loader: withPermission(module.loader, permission) } : module;
|
|
207
|
+
|
|
208
|
+
// src/get-route-map.tsx
|
|
209
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
417
210
|
function mergeRoutes(baseRoutes, customRoutes2) {
|
|
418
211
|
const result = baseRoutes.map((route) => ({ ...route }));
|
|
419
212
|
for (const customRoute of customRoutes2) {
|
|
@@ -447,27 +240,27 @@ function getRouteMap({
|
|
|
447
240
|
}) {
|
|
448
241
|
return [
|
|
449
242
|
{
|
|
450
|
-
element: /* @__PURE__ */
|
|
451
|
-
errorElement: /* @__PURE__ */
|
|
243
|
+
element: /* @__PURE__ */ jsx4(ProtectedRoute, {}),
|
|
244
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
452
245
|
children: [
|
|
453
246
|
{
|
|
454
|
-
element: /* @__PURE__ */
|
|
247
|
+
element: /* @__PURE__ */ jsx4(MainLayout, {}),
|
|
455
248
|
children: [
|
|
456
249
|
{
|
|
457
250
|
// Pathless wrapper so every route below — including extension
|
|
458
251
|
// routes merged in from virtual:mercur/routes — is enforced
|
|
459
252
|
// without each one wiring its own guard element.
|
|
460
|
-
element: /* @__PURE__ */
|
|
253
|
+
element: /* @__PURE__ */ jsx4(RoutePermissionGuard, {}),
|
|
461
254
|
children: mergeRoutes(
|
|
462
255
|
[
|
|
463
256
|
{
|
|
464
257
|
path: "/",
|
|
465
|
-
errorElement: /* @__PURE__ */
|
|
466
|
-
lazy: () => import("./home-
|
|
258
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
259
|
+
lazy: () => import("./home-KKOF4FWS.js")
|
|
467
260
|
},
|
|
468
261
|
{
|
|
469
262
|
path: "/products",
|
|
470
|
-
errorElement: /* @__PURE__ */
|
|
263
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
471
264
|
handle: {
|
|
472
265
|
breadcrumb: () => t("products.domain"),
|
|
473
266
|
permissions: "products:view"
|
|
@@ -475,36 +268,37 @@ function getRouteMap({
|
|
|
475
268
|
children: [
|
|
476
269
|
{
|
|
477
270
|
path: "",
|
|
478
|
-
lazy: () => import("./product-list-
|
|
271
|
+
lazy: () => import("./product-list-M6B42KCG.js"),
|
|
479
272
|
children: [
|
|
480
273
|
{
|
|
481
274
|
path: "create",
|
|
482
275
|
handle: { permissions: "products:edit" },
|
|
483
|
-
lazy: () => import("./product-create-
|
|
276
|
+
lazy: () => import("./product-create-PMV3LO62.js")
|
|
484
277
|
},
|
|
485
278
|
{
|
|
486
279
|
path: "bulk-edit",
|
|
280
|
+
handle: { permissions: "products:edit" },
|
|
487
281
|
lazy: () => import("./product-bulk-edit-AVQWRUJ4.js")
|
|
488
282
|
}
|
|
489
283
|
]
|
|
490
284
|
},
|
|
491
285
|
{
|
|
492
286
|
path: ":id",
|
|
493
|
-
errorElement: /* @__PURE__ */
|
|
287
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
494
288
|
lazy: async () => {
|
|
495
|
-
const { Breadcrumb, loader } = await import("./product-detail-
|
|
289
|
+
const { Breadcrumb, loader } = await import("./product-detail-KVLZYO76.js");
|
|
496
290
|
return {
|
|
497
291
|
Component: Outlet3,
|
|
498
|
-
loader,
|
|
292
|
+
loader: withPermission(loader, "products:view"),
|
|
499
293
|
handle: {
|
|
500
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
294
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
501
295
|
}
|
|
502
296
|
};
|
|
503
297
|
},
|
|
504
298
|
children: [
|
|
505
299
|
{
|
|
506
300
|
path: "",
|
|
507
|
-
lazy: () => import("./product-detail-
|
|
301
|
+
lazy: () => import("./product-detail-KVLZYO76.js").then(withLoaderPermission("products:view")),
|
|
508
302
|
children: [
|
|
509
303
|
{
|
|
510
304
|
path: "edit",
|
|
@@ -513,75 +307,87 @@ function getRouteMap({
|
|
|
513
307
|
},
|
|
514
308
|
{
|
|
515
309
|
path: "edit-variant",
|
|
516
|
-
|
|
310
|
+
handle: { permissions: "products:edit" },
|
|
311
|
+
lazy: () => import("./product-variant-edit-3WSHMGDI.js").then(withLoaderPermission("products:edit"))
|
|
517
312
|
},
|
|
518
313
|
{
|
|
519
314
|
path: "sales-channels",
|
|
520
|
-
|
|
315
|
+
handle: { permissions: ["products:edit", "sales_channels:view"] },
|
|
316
|
+
lazy: () => import("./product-sales-channels-MNAFJKAI.js")
|
|
521
317
|
},
|
|
522
318
|
{
|
|
523
319
|
path: "attributes",
|
|
320
|
+
handle: { permissions: "products:edit" },
|
|
524
321
|
lazy: () => import("./product-attributes-PCOM3JRX.js")
|
|
525
322
|
},
|
|
526
323
|
{
|
|
527
324
|
path: "attributes/create",
|
|
325
|
+
handle: { permissions: "products:edit" },
|
|
528
326
|
lazy: () => import("./product-create-attribute-KAICRW2S.js")
|
|
529
327
|
},
|
|
530
328
|
{
|
|
531
329
|
path: "attributes/add",
|
|
532
|
-
|
|
330
|
+
handle: { permissions: ["products:edit", "product_attributes:view"] },
|
|
331
|
+
lazy: () => import("./product-add-existing-attributes-RPIHTSCE.js")
|
|
533
332
|
},
|
|
534
333
|
{
|
|
535
334
|
path: "attributes/:attribute_id/edit",
|
|
536
|
-
|
|
335
|
+
handle: { permissions: "products:edit" },
|
|
336
|
+
lazy: () => import("./product-edit-attribute-URHTZ2EQ.js")
|
|
537
337
|
},
|
|
538
338
|
{
|
|
539
339
|
path: "organization",
|
|
540
|
-
|
|
340
|
+
handle: { permissions: "products:edit" },
|
|
341
|
+
lazy: () => import("./product-organization-BSPYZYZR.js")
|
|
541
342
|
},
|
|
542
343
|
{
|
|
543
344
|
path: "shipping-profile",
|
|
544
|
-
|
|
345
|
+
handle: { permissions: "products:edit" },
|
|
346
|
+
lazy: () => import("./product-shipping-profile-G4NCDKSR.js")
|
|
545
347
|
},
|
|
546
348
|
{
|
|
547
349
|
path: "media",
|
|
548
|
-
|
|
350
|
+
handle: { permissions: "products:edit" },
|
|
351
|
+
lazy: () => import("./product-media-R2FIBFR5.js")
|
|
549
352
|
},
|
|
550
353
|
{
|
|
551
354
|
path: "variants/create",
|
|
355
|
+
handle: { permissions: "products:edit" },
|
|
552
356
|
lazy: () => import("./product-create-variant-AKTPH6F7.js")
|
|
553
357
|
},
|
|
554
358
|
{
|
|
555
359
|
path: "metadata/edit",
|
|
556
|
-
|
|
360
|
+
handle: { permissions: "products:edit" },
|
|
361
|
+
lazy: () => import("./product-metadata-SC5BXN66.js")
|
|
557
362
|
}
|
|
558
363
|
]
|
|
559
364
|
},
|
|
560
365
|
{
|
|
561
366
|
path: "variants/:variant_id",
|
|
562
367
|
lazy: async () => {
|
|
563
|
-
const { Breadcrumb, loader } = await import("./product-variant-detail-
|
|
368
|
+
const { Breadcrumb, loader } = await import("./product-variant-detail-VQ55W7PD.js");
|
|
564
369
|
return {
|
|
565
370
|
Component: Outlet3,
|
|
566
|
-
loader,
|
|
371
|
+
loader: withPermission(loader, "products:view"),
|
|
567
372
|
handle: {
|
|
568
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
373
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
569
374
|
}
|
|
570
375
|
};
|
|
571
376
|
},
|
|
572
377
|
children: [
|
|
573
378
|
{
|
|
574
379
|
path: "",
|
|
575
|
-
lazy: () => import("./product-variant-detail-
|
|
380
|
+
lazy: () => import("./product-variant-detail-VQ55W7PD.js").then(withLoaderPermission("products:view")),
|
|
576
381
|
children: [
|
|
577
382
|
{
|
|
578
383
|
path: "edit",
|
|
579
384
|
handle: { permissions: "products:edit" },
|
|
580
|
-
lazy: () => import("./product-variant-edit-
|
|
385
|
+
lazy: () => import("./product-variant-edit-3WSHMGDI.js").then(withLoaderPermission("products:edit"))
|
|
581
386
|
},
|
|
582
387
|
{
|
|
583
388
|
path: "metadata/edit",
|
|
584
|
-
|
|
389
|
+
handle: { permissions: "products:edit" },
|
|
390
|
+
lazy: () => import("./product-variant-metadata-KFLIOCU2.js")
|
|
585
391
|
}
|
|
586
392
|
]
|
|
587
393
|
}
|
|
@@ -593,7 +399,7 @@ function getRouteMap({
|
|
|
593
399
|
},
|
|
594
400
|
{
|
|
595
401
|
path: "/categories",
|
|
596
|
-
errorElement: /* @__PURE__ */
|
|
402
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
597
403
|
handle: {
|
|
598
404
|
breadcrumb: () => t("categories.domain"),
|
|
599
405
|
permissions: "product_categories:view"
|
|
@@ -601,7 +407,7 @@ function getRouteMap({
|
|
|
601
407
|
children: [
|
|
602
408
|
{
|
|
603
409
|
path: "",
|
|
604
|
-
lazy: () => import("./category-list-
|
|
410
|
+
lazy: () => import("./category-list-XDOYTQ4X.js"),
|
|
605
411
|
children: [
|
|
606
412
|
{
|
|
607
413
|
path: "create",
|
|
@@ -610,6 +416,7 @@ function getRouteMap({
|
|
|
610
416
|
},
|
|
611
417
|
{
|
|
612
418
|
path: "organize",
|
|
419
|
+
handle: { permissions: "product_categories:edit" },
|
|
613
420
|
lazy: () => import("./category-organize-KQ7UWVAJ.js")
|
|
614
421
|
}
|
|
615
422
|
]
|
|
@@ -617,19 +424,19 @@ function getRouteMap({
|
|
|
617
424
|
{
|
|
618
425
|
path: ":id",
|
|
619
426
|
lazy: async () => {
|
|
620
|
-
const { Breadcrumb, loader } = await import("./category-detail-
|
|
427
|
+
const { Breadcrumb, loader } = await import("./category-detail-FAP76OQB.js");
|
|
621
428
|
return {
|
|
622
429
|
Component: Outlet3,
|
|
623
|
-
loader,
|
|
430
|
+
loader: withPermission(loader, "product_categories:view"),
|
|
624
431
|
handle: {
|
|
625
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
432
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
626
433
|
}
|
|
627
434
|
};
|
|
628
435
|
},
|
|
629
436
|
children: [
|
|
630
437
|
{
|
|
631
438
|
path: "",
|
|
632
|
-
lazy: () => import("./category-detail-
|
|
439
|
+
lazy: () => import("./category-detail-FAP76OQB.js").then(withLoaderPermission("product_categories:view")),
|
|
633
440
|
children: [
|
|
634
441
|
{
|
|
635
442
|
path: "edit",
|
|
@@ -638,23 +445,28 @@ function getRouteMap({
|
|
|
638
445
|
},
|
|
639
446
|
{
|
|
640
447
|
path: "media",
|
|
448
|
+
handle: { permissions: "product_categories:edit" },
|
|
641
449
|
lazy: () => import("./category-media-IOA2VNMI.js")
|
|
642
450
|
},
|
|
643
451
|
{
|
|
644
452
|
path: "icon/edit",
|
|
453
|
+
handle: { permissions: "product_categories:edit" },
|
|
645
454
|
lazy: () => import("./category-icon-edit-KUCL7KEJ.js")
|
|
646
455
|
},
|
|
647
456
|
{
|
|
648
457
|
path: "products",
|
|
649
|
-
|
|
458
|
+
handle: { permissions: ["product_categories:edit", "products:view"] },
|
|
459
|
+
lazy: () => import("./category-products-35ZZYVWJ.js")
|
|
650
460
|
},
|
|
651
461
|
{
|
|
652
462
|
path: "organize",
|
|
463
|
+
handle: { permissions: "product_categories:edit" },
|
|
653
464
|
lazy: () => import("./category-organize-KQ7UWVAJ.js")
|
|
654
465
|
},
|
|
655
466
|
{
|
|
656
467
|
path: "metadata/edit",
|
|
657
|
-
|
|
468
|
+
handle: { permissions: "product_categories:edit" },
|
|
469
|
+
lazy: () => import("./categories-metadata-QYH5U77W.js")
|
|
658
470
|
}
|
|
659
471
|
]
|
|
660
472
|
}
|
|
@@ -664,7 +476,7 @@ function getRouteMap({
|
|
|
664
476
|
},
|
|
665
477
|
{
|
|
666
478
|
path: "/orders",
|
|
667
|
-
errorElement: /* @__PURE__ */
|
|
479
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
668
480
|
handle: {
|
|
669
481
|
breadcrumb: () => t("orders.domain"),
|
|
670
482
|
permissions: "orders:view"
|
|
@@ -672,64 +484,74 @@ function getRouteMap({
|
|
|
672
484
|
children: [
|
|
673
485
|
{
|
|
674
486
|
path: "",
|
|
675
|
-
lazy: () => import("./order-list-
|
|
487
|
+
lazy: () => import("./order-list-C7PHMQ64.js")
|
|
676
488
|
},
|
|
677
489
|
{
|
|
678
490
|
path: ":id",
|
|
679
491
|
lazy: async () => {
|
|
680
|
-
const { Breadcrumb, loader } = await import("./order-detail-
|
|
492
|
+
const { Breadcrumb, loader } = await import("./order-detail-DIUKR6ZJ.js");
|
|
681
493
|
return {
|
|
682
494
|
Component: Outlet3,
|
|
683
|
-
loader,
|
|
495
|
+
loader: withPermission(loader, "orders:view"),
|
|
684
496
|
handle: {
|
|
685
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
497
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
686
498
|
}
|
|
687
499
|
};
|
|
688
500
|
},
|
|
689
501
|
children: [
|
|
690
502
|
{
|
|
691
503
|
path: "",
|
|
692
|
-
lazy: () => import("./order-detail-
|
|
504
|
+
lazy: () => import("./order-detail-DIUKR6ZJ.js").then(withLoaderPermission("orders:view")),
|
|
693
505
|
children: [
|
|
694
506
|
{
|
|
695
507
|
path: "returns",
|
|
696
|
-
|
|
508
|
+
handle: { permissions: "orders.returns:edit" },
|
|
509
|
+
lazy: () => import("./order-create-return-64GZ2LCL.js")
|
|
697
510
|
},
|
|
698
511
|
{
|
|
699
512
|
path: "claims",
|
|
700
|
-
|
|
513
|
+
handle: { permissions: "orders.returns:edit" },
|
|
514
|
+
lazy: () => import("./order-create-claim-4ERPSGPD.js")
|
|
701
515
|
},
|
|
702
516
|
{
|
|
703
517
|
path: "exchanges",
|
|
704
|
-
|
|
518
|
+
handle: { permissions: "orders.returns:edit" },
|
|
519
|
+
lazy: () => import("./order-create-exchange-TOPPZZGS.js")
|
|
705
520
|
},
|
|
706
521
|
{
|
|
707
522
|
path: "edits",
|
|
708
|
-
|
|
523
|
+
handle: { permissions: "orders.edits:edit" },
|
|
524
|
+
lazy: () => import("./order-create-edit-BGLNMKKI.js")
|
|
709
525
|
},
|
|
710
526
|
{
|
|
711
527
|
path: "refund",
|
|
712
|
-
|
|
528
|
+
handle: { permissions: "orders.refunds:edit" },
|
|
529
|
+
lazy: () => import("./order-create-refund-M3K5MZDM.js")
|
|
713
530
|
},
|
|
714
531
|
{
|
|
715
532
|
path: "transfer",
|
|
716
|
-
|
|
533
|
+
handle: { permissions: "orders:edit" },
|
|
534
|
+
lazy: () => import("./order-request-transfer-JYPDXCY2.js")
|
|
717
535
|
},
|
|
718
536
|
{
|
|
719
537
|
path: "email",
|
|
720
|
-
|
|
538
|
+
handle: { permissions: "orders:edit" },
|
|
539
|
+
lazy: () => import("./order-edit-email-V45SEUCO.js")
|
|
721
540
|
},
|
|
722
541
|
{
|
|
723
542
|
path: "shipping-address",
|
|
724
|
-
|
|
543
|
+
handle: { permissions: "orders:edit" },
|
|
544
|
+
lazy: () => import("./order-edit-shipping-address-45Z6TNHL.js")
|
|
725
545
|
},
|
|
726
546
|
{
|
|
727
547
|
path: "billing-address",
|
|
728
|
-
|
|
548
|
+
handle: { permissions: "orders:edit" },
|
|
549
|
+
lazy: () => import("./order-edit-billing-address-CCRTK5E2.js")
|
|
729
550
|
},
|
|
730
551
|
{
|
|
731
552
|
path: "metadata/edit",
|
|
732
|
-
|
|
553
|
+
handle: { permissions: "orders:edit" },
|
|
554
|
+
lazy: () => import("./order-metadata-7245QRUQ.js")
|
|
733
555
|
}
|
|
734
556
|
]
|
|
735
557
|
}
|
|
@@ -739,7 +561,7 @@ function getRouteMap({
|
|
|
739
561
|
},
|
|
740
562
|
{
|
|
741
563
|
path: "/promotions",
|
|
742
|
-
errorElement: /* @__PURE__ */
|
|
564
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
743
565
|
handle: {
|
|
744
566
|
breadcrumb: () => t("promotions.domain"),
|
|
745
567
|
permissions: "promotions:view"
|
|
@@ -747,29 +569,29 @@ function getRouteMap({
|
|
|
747
569
|
children: [
|
|
748
570
|
{
|
|
749
571
|
path: "",
|
|
750
|
-
lazy: () => import("./promotion-list-
|
|
572
|
+
lazy: () => import("./promotion-list-FPOTDLHX.js")
|
|
751
573
|
},
|
|
752
574
|
{
|
|
753
575
|
path: "create",
|
|
754
576
|
handle: { permissions: "promotions:edit" },
|
|
755
|
-
lazy: () => import("./promotion-create-
|
|
577
|
+
lazy: () => import("./promotion-create-6TMK6PEP.js")
|
|
756
578
|
},
|
|
757
579
|
{
|
|
758
580
|
path: ":id",
|
|
759
581
|
lazy: async () => {
|
|
760
|
-
const { Breadcrumb, loader } = await import("./promotion-detail-
|
|
582
|
+
const { Breadcrumb, loader } = await import("./promotion-detail-WBTMSCTX.js");
|
|
761
583
|
return {
|
|
762
584
|
Component: Outlet3,
|
|
763
|
-
loader,
|
|
585
|
+
loader: withPermission(loader, "promotions:view"),
|
|
764
586
|
handle: {
|
|
765
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
587
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
766
588
|
}
|
|
767
589
|
};
|
|
768
590
|
},
|
|
769
591
|
children: [
|
|
770
592
|
{
|
|
771
593
|
path: "",
|
|
772
|
-
lazy: () => import("./promotion-detail-
|
|
594
|
+
lazy: () => import("./promotion-detail-WBTMSCTX.js").then(withLoaderPermission("promotions:view")),
|
|
773
595
|
children: [
|
|
774
596
|
{
|
|
775
597
|
path: "edit",
|
|
@@ -778,11 +600,13 @@ function getRouteMap({
|
|
|
778
600
|
},
|
|
779
601
|
{
|
|
780
602
|
path: "add-to-campaign",
|
|
781
|
-
|
|
603
|
+
handle: { permissions: ["promotions:edit", "campaigns:view"] },
|
|
604
|
+
lazy: () => import("./promotion-add-campaign-SWTS4TM5.js")
|
|
782
605
|
},
|
|
783
606
|
{
|
|
784
607
|
path: ":ruleType/edit",
|
|
785
|
-
|
|
608
|
+
handle: { permissions: "promotions:edit" },
|
|
609
|
+
lazy: () => import("./edit-rules-NRF7U4AT.js")
|
|
786
610
|
}
|
|
787
611
|
]
|
|
788
612
|
}
|
|
@@ -792,7 +616,7 @@ function getRouteMap({
|
|
|
792
616
|
},
|
|
793
617
|
{
|
|
794
618
|
path: "/campaigns",
|
|
795
|
-
errorElement: /* @__PURE__ */
|
|
619
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
796
620
|
handle: {
|
|
797
621
|
breadcrumb: () => t("campaigns.domain"),
|
|
798
622
|
permissions: "campaigns:view"
|
|
@@ -800,7 +624,7 @@ function getRouteMap({
|
|
|
800
624
|
children: [
|
|
801
625
|
{
|
|
802
626
|
path: "",
|
|
803
|
-
lazy: () => import("./campaign-list-
|
|
627
|
+
lazy: () => import("./campaign-list-XCO4FJDZ.js"),
|
|
804
628
|
children: []
|
|
805
629
|
},
|
|
806
630
|
{
|
|
@@ -811,19 +635,19 @@ function getRouteMap({
|
|
|
811
635
|
{
|
|
812
636
|
path: ":id",
|
|
813
637
|
lazy: async () => {
|
|
814
|
-
const { Breadcrumb, loader } = await import("./campaign-detail-
|
|
638
|
+
const { Breadcrumb, loader } = await import("./campaign-detail-MGDL2TQC.js");
|
|
815
639
|
return {
|
|
816
640
|
Component: Outlet3,
|
|
817
|
-
loader,
|
|
641
|
+
loader: withPermission(loader, "campaigns:view"),
|
|
818
642
|
handle: {
|
|
819
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
643
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
820
644
|
}
|
|
821
645
|
};
|
|
822
646
|
},
|
|
823
647
|
children: [
|
|
824
648
|
{
|
|
825
649
|
path: "",
|
|
826
|
-
lazy: () => import("./campaign-detail-
|
|
650
|
+
lazy: () => import("./campaign-detail-MGDL2TQC.js").then(withLoaderPermission("campaigns:view")),
|
|
827
651
|
children: [
|
|
828
652
|
{
|
|
829
653
|
path: "edit",
|
|
@@ -832,15 +656,18 @@ function getRouteMap({
|
|
|
832
656
|
},
|
|
833
657
|
{
|
|
834
658
|
path: "configuration",
|
|
659
|
+
handle: { permissions: "campaigns:edit" },
|
|
835
660
|
lazy: () => import("./campaign-configuration-H6SKZFDS.js")
|
|
836
661
|
},
|
|
837
662
|
{
|
|
838
663
|
path: "edit-budget",
|
|
664
|
+
handle: { permissions: "campaigns:edit" },
|
|
839
665
|
lazy: () => import("./campaign-budget-edit-EBFDQ6OX.js")
|
|
840
666
|
},
|
|
841
667
|
{
|
|
842
668
|
path: "add-promotions",
|
|
843
|
-
|
|
669
|
+
handle: { permissions: ["campaigns:edit", "promotions:view"] },
|
|
670
|
+
lazy: () => import("./add-campaign-promotions-LGCLOFOD.js")
|
|
844
671
|
}
|
|
845
672
|
]
|
|
846
673
|
}
|
|
@@ -850,7 +677,7 @@ function getRouteMap({
|
|
|
850
677
|
},
|
|
851
678
|
{
|
|
852
679
|
path: "/reviews",
|
|
853
|
-
errorElement: /* @__PURE__ */
|
|
680
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
854
681
|
handle: {
|
|
855
682
|
breadcrumb: () => t("reviews.domain"),
|
|
856
683
|
permissions: "reviews:view"
|
|
@@ -858,25 +685,25 @@ function getRouteMap({
|
|
|
858
685
|
children: [
|
|
859
686
|
{
|
|
860
687
|
path: "",
|
|
861
|
-
lazy: () => import("./review-list-
|
|
688
|
+
lazy: () => import("./review-list-NXBVRP5T.js"),
|
|
862
689
|
children: []
|
|
863
690
|
},
|
|
864
691
|
{
|
|
865
692
|
path: ":id",
|
|
866
693
|
lazy: async () => {
|
|
867
|
-
const { Breadcrumb, loader } = await import("./review-detail-
|
|
694
|
+
const { Breadcrumb, loader } = await import("./review-detail-NPB3OKCE.js");
|
|
868
695
|
return {
|
|
869
696
|
Component: Outlet3,
|
|
870
|
-
loader,
|
|
697
|
+
loader: withPermission(loader, "reviews:view"),
|
|
871
698
|
handle: {
|
|
872
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
699
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
873
700
|
}
|
|
874
701
|
};
|
|
875
702
|
},
|
|
876
703
|
children: [
|
|
877
704
|
{
|
|
878
705
|
path: "",
|
|
879
|
-
lazy: () => import("./review-detail-
|
|
706
|
+
lazy: () => import("./review-detail-NPB3OKCE.js").then(withLoaderPermission("reviews:view")),
|
|
880
707
|
children: [
|
|
881
708
|
{
|
|
882
709
|
path: "edit",
|
|
@@ -885,6 +712,7 @@ function getRouteMap({
|
|
|
885
712
|
},
|
|
886
713
|
{
|
|
887
714
|
path: "respond",
|
|
715
|
+
handle: { permissions: "reviews:edit" },
|
|
888
716
|
lazy: () => import("./review-respond-N6JNU5HF.js")
|
|
889
717
|
}
|
|
890
718
|
]
|
|
@@ -895,7 +723,7 @@ function getRouteMap({
|
|
|
895
723
|
},
|
|
896
724
|
{
|
|
897
725
|
path: "/collections",
|
|
898
|
-
errorElement: /* @__PURE__ */
|
|
726
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
899
727
|
handle: {
|
|
900
728
|
breadcrumb: () => t("collections.domain"),
|
|
901
729
|
permissions: "product_collections:view"
|
|
@@ -903,7 +731,7 @@ function getRouteMap({
|
|
|
903
731
|
children: [
|
|
904
732
|
{
|
|
905
733
|
path: "",
|
|
906
|
-
lazy: () => import("./collection-list-
|
|
734
|
+
lazy: () => import("./collection-list-EIDV4DEH.js"),
|
|
907
735
|
children: [
|
|
908
736
|
{
|
|
909
737
|
path: "create",
|
|
@@ -915,19 +743,19 @@ function getRouteMap({
|
|
|
915
743
|
{
|
|
916
744
|
path: ":id",
|
|
917
745
|
lazy: async () => {
|
|
918
|
-
const { Breadcrumb, loader } = await import("./collection-detail-
|
|
746
|
+
const { Breadcrumb, loader } = await import("./collection-detail-IYZKDR4L.js");
|
|
919
747
|
return {
|
|
920
748
|
Component: Outlet3,
|
|
921
|
-
loader,
|
|
749
|
+
loader: withPermission(loader, "product_collections:view"),
|
|
922
750
|
handle: {
|
|
923
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
751
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
924
752
|
}
|
|
925
753
|
};
|
|
926
754
|
},
|
|
927
755
|
children: [
|
|
928
756
|
{
|
|
929
757
|
path: "",
|
|
930
|
-
lazy: () => import("./collection-detail-
|
|
758
|
+
lazy: () => import("./collection-detail-IYZKDR4L.js").then(withLoaderPermission("product_collections:view")),
|
|
931
759
|
children: [
|
|
932
760
|
{
|
|
933
761
|
path: "edit",
|
|
@@ -936,19 +764,23 @@ function getRouteMap({
|
|
|
936
764
|
},
|
|
937
765
|
{
|
|
938
766
|
path: "media",
|
|
767
|
+
handle: { permissions: "product_collections:edit" },
|
|
939
768
|
lazy: () => import("./collection-media-PKTR7VDY.js")
|
|
940
769
|
},
|
|
941
770
|
{
|
|
942
771
|
path: "icon/edit",
|
|
772
|
+
handle: { permissions: "product_collections:edit" },
|
|
943
773
|
lazy: () => import("./collection-icon-edit-L6VSK4DB.js")
|
|
944
774
|
},
|
|
945
775
|
{
|
|
946
776
|
path: "products",
|
|
947
|
-
|
|
777
|
+
handle: { permissions: ["product_collections:edit", "products:view"] },
|
|
778
|
+
lazy: () => import("./collection-add-products-IIBLH7XQ.js")
|
|
948
779
|
},
|
|
949
780
|
{
|
|
950
781
|
path: "metadata/edit",
|
|
951
|
-
|
|
782
|
+
handle: { permissions: "product_collections:edit" },
|
|
783
|
+
lazy: () => import("./collection-metadata-IKYBHHEU.js")
|
|
952
784
|
}
|
|
953
785
|
]
|
|
954
786
|
}
|
|
@@ -958,7 +790,7 @@ function getRouteMap({
|
|
|
958
790
|
},
|
|
959
791
|
{
|
|
960
792
|
path: "/price-lists",
|
|
961
|
-
errorElement: /* @__PURE__ */
|
|
793
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
962
794
|
handle: {
|
|
963
795
|
breadcrumb: () => t("priceLists.domain"),
|
|
964
796
|
permissions: "price_lists:view"
|
|
@@ -966,31 +798,31 @@ function getRouteMap({
|
|
|
966
798
|
children: [
|
|
967
799
|
{
|
|
968
800
|
path: "",
|
|
969
|
-
lazy: () => import("./price-list-list-
|
|
801
|
+
lazy: () => import("./price-list-list-TD5JIO7L.js"),
|
|
970
802
|
children: [
|
|
971
803
|
{
|
|
972
804
|
path: "create",
|
|
973
805
|
handle: { permissions: "price_lists:edit" },
|
|
974
|
-
lazy: () => import("./price-list-create-
|
|
806
|
+
lazy: () => import("./price-list-create-UZRCHVU7.js")
|
|
975
807
|
}
|
|
976
808
|
]
|
|
977
809
|
},
|
|
978
810
|
{
|
|
979
811
|
path: ":id",
|
|
980
812
|
lazy: async () => {
|
|
981
|
-
const { Breadcrumb, loader } = await import("./price-list-detail-
|
|
813
|
+
const { Breadcrumb, loader } = await import("./price-list-detail-IL7VSABK.js");
|
|
982
814
|
return {
|
|
983
815
|
Component: Outlet3,
|
|
984
|
-
loader,
|
|
816
|
+
loader: withPermission(loader, "price_lists:view"),
|
|
985
817
|
handle: {
|
|
986
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
818
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
987
819
|
}
|
|
988
820
|
};
|
|
989
821
|
},
|
|
990
822
|
children: [
|
|
991
823
|
{
|
|
992
824
|
path: "",
|
|
993
|
-
lazy: () => import("./price-list-detail-
|
|
825
|
+
lazy: () => import("./price-list-detail-IL7VSABK.js").then(withLoaderPermission("price_lists:view")),
|
|
994
826
|
children: [
|
|
995
827
|
{
|
|
996
828
|
path: "edit",
|
|
@@ -999,19 +831,23 @@ function getRouteMap({
|
|
|
999
831
|
},
|
|
1000
832
|
{
|
|
1001
833
|
path: "configuration",
|
|
834
|
+
handle: { permissions: "price_lists:edit" },
|
|
1002
835
|
lazy: () => import("./price-list-configuration-4OTKSK5N.js")
|
|
1003
836
|
},
|
|
1004
837
|
{
|
|
1005
838
|
path: "customer-availability",
|
|
1006
|
-
|
|
839
|
+
handle: { permissions: "price_lists:edit" },
|
|
840
|
+
lazy: () => import("./price-list-customer-availability-CQY55U4O.js")
|
|
1007
841
|
},
|
|
1008
842
|
{
|
|
1009
843
|
path: "products/add",
|
|
1010
|
-
|
|
844
|
+
handle: { permissions: "price_lists:edit" },
|
|
845
|
+
lazy: () => import("./price-list-prices-add-DSRYUJUT.js")
|
|
1011
846
|
},
|
|
1012
847
|
{
|
|
1013
848
|
path: "products/edit",
|
|
1014
|
-
|
|
849
|
+
handle: { permissions: "price_lists:edit" },
|
|
850
|
+
lazy: () => import("./price-list-prices-edit-WELHT4O4.js")
|
|
1015
851
|
}
|
|
1016
852
|
]
|
|
1017
853
|
}
|
|
@@ -1021,7 +857,7 @@ function getRouteMap({
|
|
|
1021
857
|
},
|
|
1022
858
|
{
|
|
1023
859
|
path: "/customers",
|
|
1024
|
-
errorElement: /* @__PURE__ */
|
|
860
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1025
861
|
handle: {
|
|
1026
862
|
breadcrumb: () => t("customers.domain"),
|
|
1027
863
|
permissions: "customers:view"
|
|
@@ -1029,7 +865,7 @@ function getRouteMap({
|
|
|
1029
865
|
children: [
|
|
1030
866
|
{
|
|
1031
867
|
path: "",
|
|
1032
|
-
lazy: () => import("./customer-list-
|
|
868
|
+
lazy: () => import("./customer-list-JOPTF4QB.js"),
|
|
1033
869
|
children: [
|
|
1034
870
|
{
|
|
1035
871
|
path: "create",
|
|
@@ -1041,44 +877,49 @@ function getRouteMap({
|
|
|
1041
877
|
{
|
|
1042
878
|
path: ":id",
|
|
1043
879
|
lazy: async () => {
|
|
1044
|
-
const { Breadcrumb, loader } = await import("./customer-detail-
|
|
880
|
+
const { Breadcrumb, loader } = await import("./customer-detail-TBGKTNQQ.js");
|
|
1045
881
|
return {
|
|
1046
882
|
Component: Outlet3,
|
|
1047
|
-
loader,
|
|
883
|
+
loader: withPermission(loader, "customers:view"),
|
|
1048
884
|
handle: {
|
|
1049
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
885
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1050
886
|
}
|
|
1051
887
|
};
|
|
1052
888
|
},
|
|
1053
889
|
children: [
|
|
1054
890
|
{
|
|
1055
891
|
path: "",
|
|
1056
|
-
lazy: () => import("./customer-detail-
|
|
892
|
+
lazy: () => import("./customer-detail-TBGKTNQQ.js").then(withLoaderPermission("customers:view")),
|
|
1057
893
|
children: [
|
|
1058
894
|
{
|
|
1059
895
|
path: "edit",
|
|
1060
896
|
handle: { permissions: "customers:edit" },
|
|
1061
|
-
lazy: () => import("./customer-edit-
|
|
897
|
+
lazy: () => import("./customer-edit-LDKAXHZ6.js")
|
|
1062
898
|
},
|
|
1063
899
|
{
|
|
1064
900
|
path: "create-address",
|
|
901
|
+
handle: { permissions: "customers:edit" },
|
|
1065
902
|
lazy: () => import("./customer-create-address-OGWYC7BZ.js")
|
|
1066
903
|
},
|
|
1067
904
|
{
|
|
1068
905
|
path: "edit-address/:address_id",
|
|
906
|
+
handle: { permissions: "customers:edit" },
|
|
1069
907
|
lazy: () => import("./customer-edit-address-PGWY42QU.js")
|
|
1070
908
|
},
|
|
1071
909
|
{
|
|
1072
910
|
path: "add-customer-groups",
|
|
1073
|
-
|
|
911
|
+
handle: { permissions: ["customers:edit", "customer_groups:view"] },
|
|
912
|
+
lazy: () => import("./customers-add-customer-group-AVRYBS6Q.js")
|
|
1074
913
|
},
|
|
1075
914
|
{
|
|
1076
915
|
path: ":order_id/transfer",
|
|
1077
|
-
|
|
916
|
+
handle: { permissions: "orders:edit" },
|
|
917
|
+
lazy: () => import("./order-request-transfer-JYPDXCY2.js")
|
|
1078
918
|
},
|
|
1079
919
|
{
|
|
1080
920
|
path: "metadata/edit",
|
|
1081
|
-
|
|
921
|
+
handle: { permissions: "customers:edit" },
|
|
922
|
+
lazy: () => import("./customer-metadata-YSMWL4L3.js")
|
|
1082
923
|
}
|
|
1083
924
|
]
|
|
1084
925
|
}
|
|
@@ -1088,7 +929,7 @@ function getRouteMap({
|
|
|
1088
929
|
},
|
|
1089
930
|
{
|
|
1090
931
|
path: "/customer-groups",
|
|
1091
|
-
errorElement: /* @__PURE__ */
|
|
932
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1092
933
|
handle: {
|
|
1093
934
|
breadcrumb: () => t("customerGroups.domain"),
|
|
1094
935
|
permissions: "customer_groups:view"
|
|
@@ -1096,7 +937,7 @@ function getRouteMap({
|
|
|
1096
937
|
children: [
|
|
1097
938
|
{
|
|
1098
939
|
path: "",
|
|
1099
|
-
lazy: () => import("./customer-group-list-
|
|
940
|
+
lazy: () => import("./customer-group-list-Q2AYIVO4.js"),
|
|
1100
941
|
children: [
|
|
1101
942
|
{
|
|
1102
943
|
path: "create",
|
|
@@ -1108,19 +949,19 @@ function getRouteMap({
|
|
|
1108
949
|
{
|
|
1109
950
|
path: ":id",
|
|
1110
951
|
lazy: async () => {
|
|
1111
|
-
const { Breadcrumb, loader } = await import("./customer-group-detail-
|
|
952
|
+
const { Breadcrumb, loader } = await import("./customer-group-detail-47IPD337.js");
|
|
1112
953
|
return {
|
|
1113
954
|
Component: Outlet3,
|
|
1114
|
-
loader,
|
|
955
|
+
loader: withPermission(loader, "customer_groups:view"),
|
|
1115
956
|
handle: {
|
|
1116
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
957
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1117
958
|
}
|
|
1118
959
|
};
|
|
1119
960
|
},
|
|
1120
961
|
children: [
|
|
1121
962
|
{
|
|
1122
963
|
path: "",
|
|
1123
|
-
lazy: () => import("./customer-group-detail-
|
|
964
|
+
lazy: () => import("./customer-group-detail-47IPD337.js").then(withLoaderPermission("customer_groups:view")),
|
|
1124
965
|
children: [
|
|
1125
966
|
{
|
|
1126
967
|
path: "edit",
|
|
@@ -1129,11 +970,13 @@ function getRouteMap({
|
|
|
1129
970
|
},
|
|
1130
971
|
{
|
|
1131
972
|
path: "add-customers",
|
|
1132
|
-
|
|
973
|
+
handle: { permissions: ["customer_groups:edit", "customers:view"] },
|
|
974
|
+
lazy: () => import("./customer-group-add-customers-RWJOA2NJ.js")
|
|
1133
975
|
},
|
|
1134
976
|
{
|
|
1135
977
|
path: "metadata/edit",
|
|
1136
|
-
|
|
978
|
+
handle: { permissions: "customer_groups:edit" },
|
|
979
|
+
lazy: () => import("./customer-group-metadata-T3WFBL7U.js")
|
|
1137
980
|
}
|
|
1138
981
|
]
|
|
1139
982
|
}
|
|
@@ -1143,7 +986,7 @@ function getRouteMap({
|
|
|
1143
986
|
},
|
|
1144
987
|
{
|
|
1145
988
|
path: "/stores",
|
|
1146
|
-
errorElement: /* @__PURE__ */
|
|
989
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1147
990
|
handle: {
|
|
1148
991
|
breadcrumb: () => t("stores.domain"),
|
|
1149
992
|
permissions: "sellers:view"
|
|
@@ -1151,59 +994,65 @@ function getRouteMap({
|
|
|
1151
994
|
children: [
|
|
1152
995
|
{
|
|
1153
996
|
path: "",
|
|
1154
|
-
lazy: () => import("./store-list-
|
|
997
|
+
lazy: () => import("./store-list-PANSKKVA.js"),
|
|
1155
998
|
children: [
|
|
1156
999
|
{
|
|
1157
1000
|
path: "create",
|
|
1158
1001
|
handle: { permissions: "sellers:edit" },
|
|
1159
|
-
lazy: () => import("./store-create-
|
|
1002
|
+
lazy: () => import("./store-create-UQ333C5F.js")
|
|
1160
1003
|
},
|
|
1161
1004
|
{
|
|
1162
1005
|
path: "bulk-edit",
|
|
1163
|
-
|
|
1006
|
+
handle: { permissions: "sellers:edit" },
|
|
1007
|
+
lazy: () => import("./store-bulk-edit-XWDZQPFO.js")
|
|
1164
1008
|
}
|
|
1165
1009
|
]
|
|
1166
1010
|
},
|
|
1167
1011
|
{
|
|
1168
1012
|
path: ":id",
|
|
1169
1013
|
lazy: async () => {
|
|
1170
|
-
const { Breadcrumb } = await import("./store-details-
|
|
1014
|
+
const { Breadcrumb } = await import("./store-details-OAONJZHB.js");
|
|
1171
1015
|
return {
|
|
1172
1016
|
Component: Outlet3,
|
|
1173
1017
|
handle: {
|
|
1174
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1018
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1175
1019
|
}
|
|
1176
1020
|
};
|
|
1177
1021
|
},
|
|
1178
1022
|
children: [
|
|
1179
1023
|
{
|
|
1180
1024
|
path: "",
|
|
1181
|
-
lazy: () => import("./store-details-
|
|
1025
|
+
lazy: () => import("./store-details-OAONJZHB.js").then(withLoaderPermission("sellers:view")),
|
|
1182
1026
|
children: [
|
|
1183
1027
|
{
|
|
1184
1028
|
path: "edit",
|
|
1185
1029
|
handle: { permissions: "sellers:edit" },
|
|
1186
|
-
lazy: () => import("./store-edit-
|
|
1030
|
+
lazy: () => import("./store-edit-6Q3GLLJE.js")
|
|
1187
1031
|
},
|
|
1188
1032
|
{
|
|
1189
1033
|
path: "edit-address",
|
|
1034
|
+
handle: { permissions: "sellers:edit" },
|
|
1190
1035
|
lazy: () => import("./store-address-edit-VLYDLTHQ.js")
|
|
1191
1036
|
},
|
|
1192
1037
|
{
|
|
1193
1038
|
path: "professional-details",
|
|
1039
|
+
handle: { permissions: "sellers:edit" },
|
|
1194
1040
|
lazy: () => import("./store-professional-details-edit-MXW6WBQF.js")
|
|
1195
1041
|
},
|
|
1196
1042
|
{
|
|
1197
1043
|
path: "payment-details",
|
|
1044
|
+
handle: { permissions: "sellers:edit" },
|
|
1198
1045
|
lazy: () => import("./store-payment-details-edit-VCCSUXIV.js")
|
|
1199
1046
|
},
|
|
1200
1047
|
{
|
|
1201
1048
|
path: "store-closure",
|
|
1049
|
+
handle: { permissions: "sellers:edit" },
|
|
1202
1050
|
lazy: () => import("./store-closure-edit-AT4DMZRF.js")
|
|
1203
1051
|
},
|
|
1204
1052
|
{
|
|
1205
1053
|
path: "invite",
|
|
1206
|
-
|
|
1054
|
+
handle: { permissions: "members.invites:edit" },
|
|
1055
|
+
lazy: () => import("./store-member-invite-235YGK55.js")
|
|
1207
1056
|
}
|
|
1208
1057
|
]
|
|
1209
1058
|
}
|
|
@@ -1213,7 +1062,7 @@ function getRouteMap({
|
|
|
1213
1062
|
},
|
|
1214
1063
|
{
|
|
1215
1064
|
path: "/payouts",
|
|
1216
|
-
errorElement: /* @__PURE__ */
|
|
1065
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1217
1066
|
handle: {
|
|
1218
1067
|
breadcrumb: () => "Payouts",
|
|
1219
1068
|
permissions: "payouts:view"
|
|
@@ -1221,7 +1070,7 @@ function getRouteMap({
|
|
|
1221
1070
|
children: [
|
|
1222
1071
|
{
|
|
1223
1072
|
path: "",
|
|
1224
|
-
lazy: () => import("./payout-list-
|
|
1073
|
+
lazy: () => import("./payout-list-KILGQ4XP.js")
|
|
1225
1074
|
},
|
|
1226
1075
|
{
|
|
1227
1076
|
path: ":id",
|
|
@@ -1229,16 +1078,16 @@ function getRouteMap({
|
|
|
1229
1078
|
const { Breadcrumb, loader } = await import("./payout-detail-UTFO6U4H.js");
|
|
1230
1079
|
return {
|
|
1231
1080
|
Component: Outlet3,
|
|
1232
|
-
loader,
|
|
1081
|
+
loader: withPermission(loader, "payouts:view"),
|
|
1233
1082
|
handle: {
|
|
1234
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1083
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1235
1084
|
}
|
|
1236
1085
|
};
|
|
1237
1086
|
},
|
|
1238
1087
|
children: [
|
|
1239
1088
|
{
|
|
1240
1089
|
path: "",
|
|
1241
|
-
lazy: () => import("./payout-detail-UTFO6U4H.js")
|
|
1090
|
+
lazy: () => import("./payout-detail-UTFO6U4H.js").then(withLoaderPermission("payouts:view"))
|
|
1242
1091
|
}
|
|
1243
1092
|
]
|
|
1244
1093
|
}
|
|
@@ -1246,7 +1095,7 @@ function getRouteMap({
|
|
|
1246
1095
|
},
|
|
1247
1096
|
{
|
|
1248
1097
|
path: "/reservations",
|
|
1249
|
-
errorElement: /* @__PURE__ */
|
|
1098
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1250
1099
|
handle: {
|
|
1251
1100
|
breadcrumb: () => t("reservations.domain"),
|
|
1252
1101
|
permissions: "reservations:view"
|
|
@@ -1254,40 +1103,41 @@ function getRouteMap({
|
|
|
1254
1103
|
children: [
|
|
1255
1104
|
{
|
|
1256
1105
|
path: "",
|
|
1257
|
-
lazy: () => import("./reservation-list-
|
|
1106
|
+
lazy: () => import("./reservation-list-5QNXC2WU.js"),
|
|
1258
1107
|
children: [
|
|
1259
1108
|
{
|
|
1260
1109
|
path: "create",
|
|
1261
1110
|
handle: { permissions: "reservations:edit" },
|
|
1262
|
-
lazy: () => import("./reservation-create-
|
|
1111
|
+
lazy: () => import("./reservation-create-YEICXID2.js")
|
|
1263
1112
|
}
|
|
1264
1113
|
]
|
|
1265
1114
|
},
|
|
1266
1115
|
{
|
|
1267
1116
|
path: ":id",
|
|
1268
1117
|
lazy: async () => {
|
|
1269
|
-
const { Breadcrumb, loader } = await import("./reservation-detail-
|
|
1118
|
+
const { Breadcrumb, loader } = await import("./reservation-detail-EBIDXEVF.js");
|
|
1270
1119
|
return {
|
|
1271
1120
|
Component: Outlet3,
|
|
1272
|
-
loader,
|
|
1121
|
+
loader: withPermission(loader, "reservations:view"),
|
|
1273
1122
|
handle: {
|
|
1274
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1123
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1275
1124
|
}
|
|
1276
1125
|
};
|
|
1277
1126
|
},
|
|
1278
1127
|
children: [
|
|
1279
1128
|
{
|
|
1280
1129
|
path: "",
|
|
1281
|
-
lazy: () => import("./reservation-detail-
|
|
1130
|
+
lazy: () => import("./reservation-detail-EBIDXEVF.js").then(withLoaderPermission("reservations:view")),
|
|
1282
1131
|
children: [
|
|
1283
1132
|
{
|
|
1284
1133
|
path: "edit",
|
|
1285
1134
|
handle: { permissions: "reservations:edit" },
|
|
1286
|
-
lazy: () => import("./edit-reservation-
|
|
1135
|
+
lazy: () => import("./edit-reservation-S3QTQRPY.js")
|
|
1287
1136
|
},
|
|
1288
1137
|
{
|
|
1289
1138
|
path: "metadata/edit",
|
|
1290
|
-
|
|
1139
|
+
handle: { permissions: "reservations:edit" },
|
|
1140
|
+
lazy: () => import("./reservation-metadata-TWJE777O.js")
|
|
1291
1141
|
}
|
|
1292
1142
|
]
|
|
1293
1143
|
}
|
|
@@ -1297,16 +1147,16 @@ function getRouteMap({
|
|
|
1297
1147
|
},
|
|
1298
1148
|
{
|
|
1299
1149
|
path: "/offers",
|
|
1300
|
-
errorElement: /* @__PURE__ */
|
|
1150
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1301
1151
|
handle: {
|
|
1302
1152
|
breadcrumb: () => t("offers.domain"),
|
|
1303
|
-
permissions: "offers:view"
|
|
1153
|
+
permissions: ["offers:view", "products:view"]
|
|
1304
1154
|
},
|
|
1305
1155
|
children: [
|
|
1306
1156
|
{
|
|
1307
1157
|
path: "",
|
|
1308
1158
|
lazy: async () => {
|
|
1309
|
-
const { OfferListPage } = await import("./offers-
|
|
1159
|
+
const { OfferListPage } = await import("./offers-OVX5AAQL.js");
|
|
1310
1160
|
return { Component: OfferListPage };
|
|
1311
1161
|
}
|
|
1312
1162
|
},
|
|
@@ -1317,9 +1167,9 @@ function getRouteMap({
|
|
|
1317
1167
|
const { Breadcrumb } = await import("./breadcrumb-KOE4ZWGU.js");
|
|
1318
1168
|
return {
|
|
1319
1169
|
Component: Outlet3,
|
|
1320
|
-
loader,
|
|
1170
|
+
loader: withPermission(loader, ["offers:view", "products:view"]),
|
|
1321
1171
|
handle: {
|
|
1322
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1172
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1323
1173
|
}
|
|
1324
1174
|
};
|
|
1325
1175
|
},
|
|
@@ -1327,7 +1177,7 @@ function getRouteMap({
|
|
|
1327
1177
|
{
|
|
1328
1178
|
path: "",
|
|
1329
1179
|
lazy: async () => {
|
|
1330
|
-
const { OfferDetailPage } = await import("./offer-detail-page-
|
|
1180
|
+
const { OfferDetailPage } = await import("./offer-detail-page-BDDDZSPL.js");
|
|
1331
1181
|
return { Component: OfferDetailPage };
|
|
1332
1182
|
}
|
|
1333
1183
|
},
|
|
@@ -1338,9 +1188,9 @@ function getRouteMap({
|
|
|
1338
1188
|
const { Breadcrumb } = await import("./breadcrumb-TCQDZXGC.js");
|
|
1339
1189
|
return {
|
|
1340
1190
|
Component: Outlet3,
|
|
1341
|
-
loader,
|
|
1191
|
+
loader: withPermission(loader, ["offers:view", "products:view"]),
|
|
1342
1192
|
handle: {
|
|
1343
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1193
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1344
1194
|
}
|
|
1345
1195
|
};
|
|
1346
1196
|
},
|
|
@@ -1348,7 +1198,7 @@ function getRouteMap({
|
|
|
1348
1198
|
{
|
|
1349
1199
|
path: "",
|
|
1350
1200
|
lazy: async () => {
|
|
1351
|
-
const { OfferVariantDetailPage } = await import("./offer-variant-detail-page-
|
|
1201
|
+
const { OfferVariantDetailPage } = await import("./offer-variant-detail-page-HQU4HMZH.js");
|
|
1352
1202
|
return { Component: OfferVariantDetailPage };
|
|
1353
1203
|
}
|
|
1354
1204
|
}
|
|
@@ -1360,7 +1210,7 @@ function getRouteMap({
|
|
|
1360
1210
|
},
|
|
1361
1211
|
{
|
|
1362
1212
|
path: "/inventory",
|
|
1363
|
-
errorElement: /* @__PURE__ */
|
|
1213
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1364
1214
|
handle: {
|
|
1365
1215
|
breadcrumb: () => t("inventory.domain"),
|
|
1366
1216
|
permissions: "inventory_items:view"
|
|
@@ -1368,51 +1218,56 @@ function getRouteMap({
|
|
|
1368
1218
|
children: [
|
|
1369
1219
|
{
|
|
1370
1220
|
path: "",
|
|
1371
|
-
lazy: () => import("./inventory-list-
|
|
1221
|
+
lazy: () => import("./inventory-list-JWA7U2LB.js"),
|
|
1372
1222
|
children: [
|
|
1373
1223
|
{
|
|
1374
1224
|
path: "stock",
|
|
1375
|
-
|
|
1225
|
+
handle: { permissions: ["inventory_items:edit", "stock_locations:view"] },
|
|
1226
|
+
lazy: () => import("./inventory-stock-WWXYVFK2.js")
|
|
1376
1227
|
}
|
|
1377
1228
|
]
|
|
1378
1229
|
},
|
|
1379
1230
|
{
|
|
1380
1231
|
path: ":id",
|
|
1381
1232
|
lazy: async () => {
|
|
1382
|
-
const { Breadcrumb, loader } = await import("./inventory-detail-
|
|
1233
|
+
const { Breadcrumb, loader } = await import("./inventory-detail-U6TRGZRY.js");
|
|
1383
1234
|
return {
|
|
1384
1235
|
Component: Outlet3,
|
|
1385
|
-
loader,
|
|
1236
|
+
loader: withPermission(loader, "inventory_items:view"),
|
|
1386
1237
|
handle: {
|
|
1387
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1238
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1388
1239
|
}
|
|
1389
1240
|
};
|
|
1390
1241
|
},
|
|
1391
1242
|
children: [
|
|
1392
1243
|
{
|
|
1393
1244
|
path: "",
|
|
1394
|
-
lazy: () => import("./inventory-detail-
|
|
1245
|
+
lazy: () => import("./inventory-detail-U6TRGZRY.js").then(withLoaderPermission("inventory_items:view")),
|
|
1395
1246
|
children: [
|
|
1396
1247
|
{
|
|
1397
1248
|
path: "edit",
|
|
1398
1249
|
handle: { permissions: "inventory_items:edit" },
|
|
1399
|
-
lazy: () => import("./edit-inventory-item-
|
|
1250
|
+
lazy: () => import("./edit-inventory-item-7M7Q6HL4.js")
|
|
1400
1251
|
},
|
|
1401
1252
|
{
|
|
1402
1253
|
path: "attributes",
|
|
1403
|
-
|
|
1254
|
+
handle: { permissions: "inventory_items:edit" },
|
|
1255
|
+
lazy: () => import("./edit-inventory-item-attributes-E7J2WFPF.js")
|
|
1404
1256
|
},
|
|
1405
1257
|
{
|
|
1406
1258
|
path: "metadata/edit",
|
|
1407
|
-
|
|
1259
|
+
handle: { permissions: "inventory_items:edit" },
|
|
1260
|
+
lazy: () => import("./inventory-metadata-KO622YEI.js")
|
|
1408
1261
|
},
|
|
1409
1262
|
{
|
|
1410
1263
|
path: "locations",
|
|
1411
|
-
|
|
1264
|
+
handle: { permissions: ["inventory_items:edit", "stock_locations:view"] },
|
|
1265
|
+
lazy: () => import("./manage-locations-5FKFNJQN.js")
|
|
1412
1266
|
},
|
|
1413
1267
|
{
|
|
1414
1268
|
path: "locations/:location_id",
|
|
1415
|
-
|
|
1269
|
+
handle: { permissions: "inventory_items:edit" },
|
|
1270
|
+
lazy: () => import("./adjust-inventory-H46YCNLT.js")
|
|
1416
1271
|
}
|
|
1417
1272
|
]
|
|
1418
1273
|
}
|
|
@@ -1429,40 +1284,40 @@ function getRouteMap({
|
|
|
1429
1284
|
]
|
|
1430
1285
|
},
|
|
1431
1286
|
{
|
|
1432
|
-
element: /* @__PURE__ */
|
|
1433
|
-
errorElement: /* @__PURE__ */
|
|
1287
|
+
element: /* @__PURE__ */ jsx4(ProtectedRoute, {}),
|
|
1288
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1434
1289
|
children: [
|
|
1435
1290
|
{
|
|
1436
1291
|
path: "/settings",
|
|
1437
1292
|
handle: {
|
|
1438
1293
|
breadcrumb: () => t("app.nav.settings.header")
|
|
1439
1294
|
},
|
|
1440
|
-
element: /* @__PURE__ */
|
|
1295
|
+
element: /* @__PURE__ */ jsx4(SettingsLayout, {}),
|
|
1441
1296
|
children: [
|
|
1442
1297
|
{
|
|
1443
|
-
element: /* @__PURE__ */
|
|
1298
|
+
element: /* @__PURE__ */ jsx4(RoutePermissionGuard, {}),
|
|
1444
1299
|
children: mergeRoutes(
|
|
1445
1300
|
[
|
|
1446
1301
|
{
|
|
1447
1302
|
index: true,
|
|
1448
|
-
errorElement: /* @__PURE__ */
|
|
1449
|
-
lazy: () => import("./settings-
|
|
1303
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1304
|
+
lazy: () => import("./settings-UYGKDTNO.js")
|
|
1450
1305
|
},
|
|
1451
1306
|
{
|
|
1452
1307
|
path: "profile",
|
|
1453
|
-
errorElement: /* @__PURE__ */
|
|
1454
|
-
element: /* @__PURE__ */
|
|
1308
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1309
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
1455
1310
|
handle: {
|
|
1456
1311
|
breadcrumb: () => t("profile.domain")
|
|
1457
1312
|
},
|
|
1458
1313
|
children: [
|
|
1459
1314
|
{
|
|
1460
1315
|
path: "",
|
|
1461
|
-
lazy: () => import("./profile-detail-
|
|
1316
|
+
lazy: () => import("./profile-detail-SQZ6JFAN.js"),
|
|
1462
1317
|
children: [
|
|
1463
1318
|
{
|
|
1464
1319
|
path: "edit",
|
|
1465
|
-
lazy: () => import("./profile-edit-
|
|
1320
|
+
lazy: () => import("./profile-edit-IVU3SBQA.js")
|
|
1466
1321
|
}
|
|
1467
1322
|
]
|
|
1468
1323
|
}
|
|
@@ -1470,8 +1325,8 @@ function getRouteMap({
|
|
|
1470
1325
|
},
|
|
1471
1326
|
{
|
|
1472
1327
|
path: "regions",
|
|
1473
|
-
errorElement: /* @__PURE__ */
|
|
1474
|
-
element: /* @__PURE__ */
|
|
1328
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1329
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
1475
1330
|
handle: {
|
|
1476
1331
|
breadcrumb: () => t("regions.domain"),
|
|
1477
1332
|
permissions: "regions:view"
|
|
@@ -1479,44 +1334,46 @@ function getRouteMap({
|
|
|
1479
1334
|
children: [
|
|
1480
1335
|
{
|
|
1481
1336
|
path: "",
|
|
1482
|
-
lazy: () => import("./region-list-
|
|
1337
|
+
lazy: () => import("./region-list-2MWAGD2D.js"),
|
|
1483
1338
|
children: [
|
|
1484
1339
|
{
|
|
1485
1340
|
path: "create",
|
|
1486
1341
|
handle: { permissions: "regions:edit" },
|
|
1487
|
-
lazy: () => import("./region-create-
|
|
1342
|
+
lazy: () => import("./region-create-7DI3QEPU.js")
|
|
1488
1343
|
}
|
|
1489
1344
|
]
|
|
1490
1345
|
},
|
|
1491
1346
|
{
|
|
1492
1347
|
path: ":id",
|
|
1493
1348
|
lazy: async () => {
|
|
1494
|
-
const { Breadcrumb, loader } = await import("./region-detail-
|
|
1349
|
+
const { Breadcrumb, loader } = await import("./region-detail-S5OT2PGL.js");
|
|
1495
1350
|
return {
|
|
1496
1351
|
Component: Outlet3,
|
|
1497
|
-
loader,
|
|
1352
|
+
loader: withPermission(loader, "regions:view"),
|
|
1498
1353
|
handle: {
|
|
1499
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1354
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1500
1355
|
}
|
|
1501
1356
|
};
|
|
1502
1357
|
},
|
|
1503
1358
|
children: [
|
|
1504
1359
|
{
|
|
1505
1360
|
path: "",
|
|
1506
|
-
lazy: () => import("./region-detail-
|
|
1361
|
+
lazy: () => import("./region-detail-S5OT2PGL.js").then(withLoaderPermission("regions:view")),
|
|
1507
1362
|
children: [
|
|
1508
1363
|
{
|
|
1509
1364
|
path: "edit",
|
|
1510
1365
|
handle: { permissions: "regions:edit" },
|
|
1511
|
-
lazy: () => import("./region-edit-
|
|
1366
|
+
lazy: () => import("./region-edit-IXCS3MRH.js")
|
|
1512
1367
|
},
|
|
1513
1368
|
{
|
|
1514
1369
|
path: "countries/add",
|
|
1515
|
-
|
|
1370
|
+
handle: { permissions: "regions:edit" },
|
|
1371
|
+
lazy: () => import("./region-add-countries-47QLUMX7.js")
|
|
1516
1372
|
},
|
|
1517
1373
|
{
|
|
1518
1374
|
path: "metadata/edit",
|
|
1519
|
-
|
|
1375
|
+
handle: { permissions: "regions:edit" },
|
|
1376
|
+
lazy: () => import("./region-metadata-ADPG7OLJ.js")
|
|
1520
1377
|
}
|
|
1521
1378
|
]
|
|
1522
1379
|
}
|
|
@@ -1526,8 +1383,8 @@ function getRouteMap({
|
|
|
1526
1383
|
},
|
|
1527
1384
|
{
|
|
1528
1385
|
path: "marketplace",
|
|
1529
|
-
errorElement: /* @__PURE__ */
|
|
1530
|
-
element: /* @__PURE__ */
|
|
1386
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1387
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
1531
1388
|
handle: {
|
|
1532
1389
|
breadcrumb: () => t("marketplace.domain"),
|
|
1533
1390
|
permissions: "store:view"
|
|
@@ -1535,20 +1392,22 @@ function getRouteMap({
|
|
|
1535
1392
|
children: [
|
|
1536
1393
|
{
|
|
1537
1394
|
path: "",
|
|
1538
|
-
lazy: () => import("./marketplace-detail-
|
|
1395
|
+
lazy: () => import("./marketplace-detail-A76FTENH.js").then(withLoaderPermission("store:view")),
|
|
1539
1396
|
children: [
|
|
1540
1397
|
{
|
|
1541
1398
|
path: "edit",
|
|
1542
1399
|
handle: { permissions: "store:edit" },
|
|
1543
|
-
lazy: () => import("./marketplace-edit-
|
|
1400
|
+
lazy: () => import("./marketplace-edit-KXKUECZQ.js")
|
|
1544
1401
|
},
|
|
1545
1402
|
{
|
|
1546
1403
|
path: "currencies",
|
|
1547
|
-
|
|
1404
|
+
handle: { permissions: ["store:edit", "regions:view", "price_preferences:view"] },
|
|
1405
|
+
lazy: () => import("./marketplace-add-currencies-34XKWMI7.js")
|
|
1548
1406
|
},
|
|
1549
1407
|
{
|
|
1550
1408
|
path: "metadata/edit",
|
|
1551
|
-
|
|
1409
|
+
handle: { permissions: "store:edit" },
|
|
1410
|
+
lazy: () => import("./marketplace-metadata-364KJG43.js")
|
|
1552
1411
|
}
|
|
1553
1412
|
]
|
|
1554
1413
|
}
|
|
@@ -1556,8 +1415,8 @@ function getRouteMap({
|
|
|
1556
1415
|
},
|
|
1557
1416
|
{
|
|
1558
1417
|
path: "commissions",
|
|
1559
|
-
errorElement: /* @__PURE__ */
|
|
1560
|
-
element: /* @__PURE__ */
|
|
1418
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1419
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
1561
1420
|
handle: {
|
|
1562
1421
|
breadcrumb: () => t("commissions.domain"),
|
|
1563
1422
|
permissions: "commission_rates:view"
|
|
@@ -1565,15 +1424,16 @@ function getRouteMap({
|
|
|
1565
1424
|
children: [
|
|
1566
1425
|
{
|
|
1567
1426
|
path: "",
|
|
1568
|
-
lazy: () => import("./commissions-list-
|
|
1427
|
+
lazy: () => import("./commissions-list-AQUW636T.js"),
|
|
1569
1428
|
children: [
|
|
1570
1429
|
{
|
|
1571
1430
|
path: "create",
|
|
1572
1431
|
handle: { permissions: "commission_rates:edit" },
|
|
1573
|
-
lazy: () => import("./commission-rule-create-
|
|
1432
|
+
lazy: () => import("./commission-rule-create-QDNXXBTV.js")
|
|
1574
1433
|
},
|
|
1575
1434
|
{
|
|
1576
1435
|
path: "edit-global",
|
|
1436
|
+
handle: { permissions: "commission_rates:edit" },
|
|
1577
1437
|
lazy: () => import("./global-commission-edit-JEBLF6CT.js")
|
|
1578
1438
|
}
|
|
1579
1439
|
]
|
|
@@ -1581,26 +1441,27 @@ function getRouteMap({
|
|
|
1581
1441
|
{
|
|
1582
1442
|
path: ":id",
|
|
1583
1443
|
lazy: async () => {
|
|
1584
|
-
const { Breadcrumb } = await import("./commission-rule-detail-
|
|
1444
|
+
const { Breadcrumb } = await import("./commission-rule-detail-QYJIK375.js");
|
|
1585
1445
|
return {
|
|
1586
1446
|
Component: Outlet3,
|
|
1587
1447
|
handle: {
|
|
1588
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1448
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1589
1449
|
}
|
|
1590
1450
|
};
|
|
1591
1451
|
},
|
|
1592
1452
|
children: [
|
|
1593
1453
|
{
|
|
1594
1454
|
path: "",
|
|
1595
|
-
lazy: () => import("./commission-rule-detail-
|
|
1455
|
+
lazy: () => import("./commission-rule-detail-QYJIK375.js"),
|
|
1596
1456
|
children: [
|
|
1597
1457
|
{
|
|
1598
1458
|
path: "edit",
|
|
1599
1459
|
handle: { permissions: "commission_rates:edit" },
|
|
1600
|
-
lazy: () => import("./commission-rule-edit-
|
|
1460
|
+
lazy: () => import("./commission-rule-edit-HICDPDLK.js")
|
|
1601
1461
|
},
|
|
1602
1462
|
{
|
|
1603
1463
|
path: "edit-commission",
|
|
1464
|
+
handle: { permissions: "commission_rates:edit" },
|
|
1604
1465
|
lazy: () => import("./commission-rule-commission-edit-KLGYDUOC.js")
|
|
1605
1466
|
}
|
|
1606
1467
|
]
|
|
@@ -1611,8 +1472,8 @@ function getRouteMap({
|
|
|
1611
1472
|
},
|
|
1612
1473
|
{
|
|
1613
1474
|
path: "users",
|
|
1614
|
-
errorElement: /* @__PURE__ */
|
|
1615
|
-
element: /* @__PURE__ */
|
|
1475
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1476
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
1616
1477
|
handle: {
|
|
1617
1478
|
breadcrumb: () => t("users.domain"),
|
|
1618
1479
|
permissions: "users:view"
|
|
@@ -1620,40 +1481,41 @@ function getRouteMap({
|
|
|
1620
1481
|
children: [
|
|
1621
1482
|
{
|
|
1622
1483
|
path: "",
|
|
1623
|
-
lazy: () => import("./user-list-
|
|
1484
|
+
lazy: () => import("./user-list-EZ56HFI3.js"),
|
|
1624
1485
|
children: [
|
|
1625
1486
|
{
|
|
1626
1487
|
path: "invite",
|
|
1627
1488
|
handle: { permissions: "users:edit" },
|
|
1628
|
-
lazy: () => import("./user-invite-
|
|
1489
|
+
lazy: () => import("./user-invite-5EJ3CIQZ.js")
|
|
1629
1490
|
}
|
|
1630
1491
|
]
|
|
1631
1492
|
},
|
|
1632
1493
|
{
|
|
1633
1494
|
path: ":id",
|
|
1634
1495
|
lazy: async () => {
|
|
1635
|
-
const { Breadcrumb, loader } = await import("./user-detail-
|
|
1496
|
+
const { Breadcrumb, loader } = await import("./user-detail-4H37KBIP.js");
|
|
1636
1497
|
return {
|
|
1637
1498
|
Component: Outlet3,
|
|
1638
|
-
loader,
|
|
1499
|
+
loader: withPermission(loader, "users:view"),
|
|
1639
1500
|
handle: {
|
|
1640
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1501
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1641
1502
|
}
|
|
1642
1503
|
};
|
|
1643
1504
|
},
|
|
1644
1505
|
children: [
|
|
1645
1506
|
{
|
|
1646
1507
|
path: "",
|
|
1647
|
-
lazy: () => import("./user-detail-
|
|
1508
|
+
lazy: () => import("./user-detail-4H37KBIP.js").then(withLoaderPermission("users:view")),
|
|
1648
1509
|
children: [
|
|
1649
1510
|
{
|
|
1650
1511
|
path: "edit",
|
|
1651
1512
|
handle: { permissions: "users:edit" },
|
|
1652
|
-
lazy: () => import("./user-edit-
|
|
1513
|
+
lazy: () => import("./user-edit-42A2VX5E.js")
|
|
1653
1514
|
},
|
|
1654
1515
|
{
|
|
1655
1516
|
path: "metadata/edit",
|
|
1656
|
-
|
|
1517
|
+
handle: { permissions: "users:edit" },
|
|
1518
|
+
lazy: () => import("./user-metadata-3GENWLUS.js")
|
|
1657
1519
|
}
|
|
1658
1520
|
]
|
|
1659
1521
|
}
|
|
@@ -1663,8 +1525,8 @@ function getRouteMap({
|
|
|
1663
1525
|
},
|
|
1664
1526
|
{
|
|
1665
1527
|
path: "sales-channels",
|
|
1666
|
-
errorElement: /* @__PURE__ */
|
|
1667
|
-
element: /* @__PURE__ */
|
|
1528
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1529
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
1668
1530
|
handle: {
|
|
1669
1531
|
breadcrumb: () => t("salesChannels.domain"),
|
|
1670
1532
|
permissions: "sales_channels:view"
|
|
@@ -1672,7 +1534,7 @@ function getRouteMap({
|
|
|
1672
1534
|
children: [
|
|
1673
1535
|
{
|
|
1674
1536
|
path: "",
|
|
1675
|
-
lazy: () => import("./sales-channel-list-
|
|
1537
|
+
lazy: () => import("./sales-channel-list-246V7NV3.js"),
|
|
1676
1538
|
children: [
|
|
1677
1539
|
{
|
|
1678
1540
|
path: "create",
|
|
@@ -1684,19 +1546,19 @@ function getRouteMap({
|
|
|
1684
1546
|
{
|
|
1685
1547
|
path: ":id",
|
|
1686
1548
|
lazy: async () => {
|
|
1687
|
-
const { Breadcrumb, loader } = await import("./sales-channel-detail-
|
|
1549
|
+
const { Breadcrumb, loader } = await import("./sales-channel-detail-A7HHMQVX.js");
|
|
1688
1550
|
return {
|
|
1689
1551
|
Component: Outlet3,
|
|
1690
|
-
loader,
|
|
1552
|
+
loader: withPermission(loader, "sales_channels:view"),
|
|
1691
1553
|
handle: {
|
|
1692
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1554
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1693
1555
|
}
|
|
1694
1556
|
};
|
|
1695
1557
|
},
|
|
1696
1558
|
children: [
|
|
1697
1559
|
{
|
|
1698
1560
|
path: "",
|
|
1699
|
-
lazy: () => import("./sales-channel-detail-
|
|
1561
|
+
lazy: () => import("./sales-channel-detail-A7HHMQVX.js").then(withLoaderPermission("sales_channels:view")),
|
|
1700
1562
|
children: [
|
|
1701
1563
|
{
|
|
1702
1564
|
path: "edit",
|
|
@@ -1705,11 +1567,13 @@ function getRouteMap({
|
|
|
1705
1567
|
},
|
|
1706
1568
|
{
|
|
1707
1569
|
path: "add-products",
|
|
1708
|
-
|
|
1570
|
+
handle: { permissions: ["sales_channels:edit", "products:view"] },
|
|
1571
|
+
lazy: () => import("./sales-channel-add-products-VAHBFZP3.js")
|
|
1709
1572
|
},
|
|
1710
1573
|
{
|
|
1711
1574
|
path: "metadata/edit",
|
|
1712
|
-
|
|
1575
|
+
handle: { permissions: "sales_channels:edit" },
|
|
1576
|
+
lazy: () => import("./sales-channel-metadata-PMLMQIKU.js")
|
|
1713
1577
|
}
|
|
1714
1578
|
]
|
|
1715
1579
|
}
|
|
@@ -1719,8 +1583,8 @@ function getRouteMap({
|
|
|
1719
1583
|
},
|
|
1720
1584
|
{
|
|
1721
1585
|
path: "locations",
|
|
1722
|
-
errorElement: /* @__PURE__ */
|
|
1723
|
-
element: /* @__PURE__ */
|
|
1586
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1587
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
1724
1588
|
handle: {
|
|
1725
1589
|
breadcrumb: () => t("locations.domain"),
|
|
1726
1590
|
permissions: "stock_locations:view"
|
|
@@ -1728,7 +1592,7 @@ function getRouteMap({
|
|
|
1728
1592
|
children: [
|
|
1729
1593
|
{
|
|
1730
1594
|
path: "",
|
|
1731
|
-
lazy: () => import("./location-list-
|
|
1595
|
+
lazy: () => import("./location-list-RMHT36AO.js")
|
|
1732
1596
|
},
|
|
1733
1597
|
{
|
|
1734
1598
|
path: "create",
|
|
@@ -1737,7 +1601,7 @@ function getRouteMap({
|
|
|
1737
1601
|
},
|
|
1738
1602
|
{
|
|
1739
1603
|
path: "shipping-profiles",
|
|
1740
|
-
element: /* @__PURE__ */
|
|
1604
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
1741
1605
|
handle: {
|
|
1742
1606
|
breadcrumb: () => t("shippingProfile.domain"),
|
|
1743
1607
|
permissions: "shipping_profiles:view"
|
|
@@ -1745,7 +1609,7 @@ function getRouteMap({
|
|
|
1745
1609
|
children: [
|
|
1746
1610
|
{
|
|
1747
1611
|
path: "",
|
|
1748
|
-
lazy: () => import("./shipping-profiles-list-
|
|
1612
|
+
lazy: () => import("./shipping-profiles-list-DD3G2THE.js"),
|
|
1749
1613
|
children: [
|
|
1750
1614
|
{
|
|
1751
1615
|
path: "create",
|
|
@@ -1757,23 +1621,24 @@ function getRouteMap({
|
|
|
1757
1621
|
{
|
|
1758
1622
|
path: ":shipping_profile_id",
|
|
1759
1623
|
lazy: async () => {
|
|
1760
|
-
const { Breadcrumb, loader } = await import("./shipping-profile-detail-
|
|
1624
|
+
const { Breadcrumb, loader } = await import("./shipping-profile-detail-RGB67K3C.js");
|
|
1761
1625
|
return {
|
|
1762
1626
|
Component: Outlet3,
|
|
1763
|
-
loader,
|
|
1627
|
+
loader: withPermission(loader, "shipping_profiles:view"),
|
|
1764
1628
|
handle: {
|
|
1765
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1629
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1766
1630
|
}
|
|
1767
1631
|
};
|
|
1768
1632
|
},
|
|
1769
1633
|
children: [
|
|
1770
1634
|
{
|
|
1771
1635
|
path: "",
|
|
1772
|
-
lazy: () => import("./shipping-profile-detail-
|
|
1636
|
+
lazy: () => import("./shipping-profile-detail-RGB67K3C.js").then(withLoaderPermission("shipping_profiles:view")),
|
|
1773
1637
|
children: [
|
|
1774
1638
|
{
|
|
1775
1639
|
path: "metadata/edit",
|
|
1776
|
-
|
|
1640
|
+
handle: { permissions: "shipping_profiles:edit" },
|
|
1641
|
+
lazy: () => import("./shipping-profile-metadata-GXMY5E57.js")
|
|
1777
1642
|
}
|
|
1778
1643
|
]
|
|
1779
1644
|
}
|
|
@@ -1783,8 +1648,8 @@ function getRouteMap({
|
|
|
1783
1648
|
},
|
|
1784
1649
|
{
|
|
1785
1650
|
path: "shipping-option-types",
|
|
1786
|
-
errorElement: /* @__PURE__ */
|
|
1787
|
-
element: /* @__PURE__ */
|
|
1651
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1652
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
1788
1653
|
handle: {
|
|
1789
1654
|
breadcrumb: () => t("shippingOptionTypes.domain"),
|
|
1790
1655
|
permissions: "shipping_options:view"
|
|
@@ -1792,36 +1657,36 @@ function getRouteMap({
|
|
|
1792
1657
|
children: [
|
|
1793
1658
|
{
|
|
1794
1659
|
path: "",
|
|
1795
|
-
lazy: () => import("./shipping-option-type-list-
|
|
1660
|
+
lazy: () => import("./shipping-option-type-list-TTAA63ZN.js"),
|
|
1796
1661
|
children: [
|
|
1797
1662
|
{
|
|
1798
1663
|
path: "create",
|
|
1799
1664
|
handle: { permissions: "shipping_options:edit" },
|
|
1800
|
-
lazy: () => import("./shipping-option-type-create-
|
|
1665
|
+
lazy: () => import("./shipping-option-type-create-NOFP2DOM.js")
|
|
1801
1666
|
}
|
|
1802
1667
|
]
|
|
1803
1668
|
},
|
|
1804
1669
|
{
|
|
1805
1670
|
path: ":id",
|
|
1806
1671
|
lazy: async () => {
|
|
1807
|
-
const { Breadcrumb, loader } = await import("./shipping-option-type-detail-
|
|
1672
|
+
const { Breadcrumb, loader } = await import("./shipping-option-type-detail-47AZVCFP.js");
|
|
1808
1673
|
return {
|
|
1809
1674
|
Component: Outlet3,
|
|
1810
|
-
loader,
|
|
1675
|
+
loader: withPermission(loader, "shipping_options:view"),
|
|
1811
1676
|
handle: {
|
|
1812
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1677
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1813
1678
|
}
|
|
1814
1679
|
};
|
|
1815
1680
|
},
|
|
1816
1681
|
children: [
|
|
1817
1682
|
{
|
|
1818
1683
|
path: "",
|
|
1819
|
-
lazy: () => import("./shipping-option-type-detail-
|
|
1684
|
+
lazy: () => import("./shipping-option-type-detail-47AZVCFP.js").then(withLoaderPermission("shipping_options:view")),
|
|
1820
1685
|
children: [
|
|
1821
1686
|
{
|
|
1822
1687
|
path: "edit",
|
|
1823
1688
|
handle: { permissions: "shipping_options:edit" },
|
|
1824
|
-
lazy: () => import("./shipping-option-type-edit-
|
|
1689
|
+
lazy: () => import("./shipping-option-type-edit-42JILKHX.js")
|
|
1825
1690
|
}
|
|
1826
1691
|
]
|
|
1827
1692
|
}
|
|
@@ -1832,19 +1697,19 @@ function getRouteMap({
|
|
|
1832
1697
|
{
|
|
1833
1698
|
path: ":location_id",
|
|
1834
1699
|
lazy: async () => {
|
|
1835
|
-
const { Breadcrumb, loader } = await import("./location-detail-
|
|
1700
|
+
const { Breadcrumb, loader } = await import("./location-detail-27FBZML7.js");
|
|
1836
1701
|
return {
|
|
1837
1702
|
Component: Outlet3,
|
|
1838
|
-
loader,
|
|
1703
|
+
loader: withPermission(loader, "stock_locations:view"),
|
|
1839
1704
|
handle: {
|
|
1840
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1705
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1841
1706
|
}
|
|
1842
1707
|
};
|
|
1843
1708
|
},
|
|
1844
1709
|
children: [
|
|
1845
1710
|
{
|
|
1846
1711
|
path: "",
|
|
1847
|
-
lazy: () => import("./location-detail-
|
|
1712
|
+
lazy: () => import("./location-detail-27FBZML7.js").then(withLoaderPermission("stock_locations:view")),
|
|
1848
1713
|
children: [
|
|
1849
1714
|
{
|
|
1850
1715
|
path: "edit",
|
|
@@ -1853,30 +1718,34 @@ function getRouteMap({
|
|
|
1853
1718
|
},
|
|
1854
1719
|
{
|
|
1855
1720
|
path: "sales-channels",
|
|
1856
|
-
|
|
1721
|
+
handle: { permissions: ["stock_locations:edit", "sales_channels:view"] },
|
|
1722
|
+
lazy: () => import("./location-sales-channels-JB5OIMXE.js")
|
|
1857
1723
|
},
|
|
1858
1724
|
{
|
|
1859
1725
|
path: "fulfillment-providers",
|
|
1860
|
-
|
|
1726
|
+
handle: { permissions: ["stock_locations:edit", "fulfillment_sets:view"] },
|
|
1727
|
+
lazy: () => import("./location-fulfillment-providers-XTYJWAVP.js")
|
|
1861
1728
|
},
|
|
1862
1729
|
{
|
|
1863
1730
|
path: "fulfillment-set/:fset_id",
|
|
1864
1731
|
children: [
|
|
1865
1732
|
{
|
|
1866
1733
|
path: "service-zones/create",
|
|
1867
|
-
|
|
1734
|
+
handle: { permissions: "fulfillment_sets:edit" },
|
|
1735
|
+
lazy: () => import("./location-service-zone-create-JKAKZCZ2.js")
|
|
1868
1736
|
},
|
|
1869
1737
|
{
|
|
1870
1738
|
path: "service-zone/:zone_id",
|
|
1871
1739
|
children: [
|
|
1872
1740
|
{
|
|
1873
1741
|
path: "edit",
|
|
1874
|
-
handle: { permissions: "
|
|
1742
|
+
handle: { permissions: "fulfillment_sets:edit" },
|
|
1875
1743
|
lazy: () => import("./location-service-zone-edit-KFG52K4W.js")
|
|
1876
1744
|
},
|
|
1877
1745
|
{
|
|
1878
1746
|
path: "areas",
|
|
1879
|
-
|
|
1747
|
+
handle: { permissions: "fulfillment_sets:edit" },
|
|
1748
|
+
lazy: () => import("./location-service-zone-manage-areas-K2BMFI5Y.js")
|
|
1880
1749
|
},
|
|
1881
1750
|
{
|
|
1882
1751
|
path: "shipping-option",
|
|
@@ -1884,7 +1753,7 @@ function getRouteMap({
|
|
|
1884
1753
|
{
|
|
1885
1754
|
path: "create",
|
|
1886
1755
|
handle: { permissions: "shipping_options:edit" },
|
|
1887
|
-
lazy: () => import("./location-service-zone-shipping-option-create-
|
|
1756
|
+
lazy: () => import("./location-service-zone-shipping-option-create-WJOLO6A3.js")
|
|
1888
1757
|
},
|
|
1889
1758
|
{
|
|
1890
1759
|
path: ":so_id",
|
|
@@ -1892,11 +1761,12 @@ function getRouteMap({
|
|
|
1892
1761
|
{
|
|
1893
1762
|
path: "edit",
|
|
1894
1763
|
handle: { permissions: "shipping_options:edit" },
|
|
1895
|
-
lazy: () => import("./location-service-zone-shipping-option-edit-
|
|
1764
|
+
lazy: () => import("./location-service-zone-shipping-option-edit-I7BJGH76.js")
|
|
1896
1765
|
},
|
|
1897
1766
|
{
|
|
1898
1767
|
path: "pricing",
|
|
1899
|
-
|
|
1768
|
+
handle: { permissions: "shipping_options:edit" },
|
|
1769
|
+
lazy: () => import("./location-service-zone-shipping-option-pricing-47Y3CP4U.js")
|
|
1900
1770
|
}
|
|
1901
1771
|
]
|
|
1902
1772
|
}
|
|
@@ -1914,8 +1784,8 @@ function getRouteMap({
|
|
|
1914
1784
|
},
|
|
1915
1785
|
{
|
|
1916
1786
|
path: "product-tags",
|
|
1917
|
-
errorElement: /* @__PURE__ */
|
|
1918
|
-
element: /* @__PURE__ */
|
|
1787
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1788
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
1919
1789
|
handle: {
|
|
1920
1790
|
breadcrumb: () => t("productTags.domain"),
|
|
1921
1791
|
permissions: "product_tags:view"
|
|
@@ -1923,40 +1793,41 @@ function getRouteMap({
|
|
|
1923
1793
|
children: [
|
|
1924
1794
|
{
|
|
1925
1795
|
path: "",
|
|
1926
|
-
lazy: () => import("./product-tag-list-
|
|
1796
|
+
lazy: () => import("./product-tag-list-XWTZGQTT.js").then(withLoaderPermission("product_tags:view")),
|
|
1927
1797
|
children: [
|
|
1928
1798
|
{
|
|
1929
1799
|
path: "create",
|
|
1930
1800
|
handle: { permissions: "product_tags:edit" },
|
|
1931
|
-
lazy: () => import("./product-tag-create-
|
|
1801
|
+
lazy: () => import("./product-tag-create-PX7Q2AXU.js")
|
|
1932
1802
|
}
|
|
1933
1803
|
]
|
|
1934
1804
|
},
|
|
1935
1805
|
{
|
|
1936
1806
|
path: ":id",
|
|
1937
1807
|
lazy: async () => {
|
|
1938
|
-
const { Breadcrumb, loader } = await import("./product-tag-detail-
|
|
1808
|
+
const { Breadcrumb, loader } = await import("./product-tag-detail-LXO43RMB.js");
|
|
1939
1809
|
return {
|
|
1940
1810
|
Component: Outlet3,
|
|
1941
|
-
loader,
|
|
1811
|
+
loader: withPermission(loader, "product_tags:view"),
|
|
1942
1812
|
handle: {
|
|
1943
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1813
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1944
1814
|
}
|
|
1945
1815
|
};
|
|
1946
1816
|
},
|
|
1947
1817
|
children: [
|
|
1948
1818
|
{
|
|
1949
1819
|
path: "",
|
|
1950
|
-
lazy: () => import("./product-tag-detail-
|
|
1820
|
+
lazy: () => import("./product-tag-detail-LXO43RMB.js").then(withLoaderPermission("product_tags:view")),
|
|
1951
1821
|
children: [
|
|
1952
1822
|
{
|
|
1953
1823
|
path: "edit",
|
|
1954
1824
|
handle: { permissions: "product_tags:edit" },
|
|
1955
|
-
lazy: () => import("./product-tag-edit-
|
|
1825
|
+
lazy: () => import("./product-tag-edit-PXSZMCCT.js")
|
|
1956
1826
|
},
|
|
1957
1827
|
{
|
|
1958
1828
|
path: "metadata/edit",
|
|
1959
|
-
|
|
1829
|
+
handle: { permissions: "product_tags:edit" },
|
|
1830
|
+
lazy: () => import("./product-tag-metadata-2SO7ICOZ.js")
|
|
1960
1831
|
}
|
|
1961
1832
|
]
|
|
1962
1833
|
}
|
|
@@ -1966,8 +1837,8 @@ function getRouteMap({
|
|
|
1966
1837
|
},
|
|
1967
1838
|
{
|
|
1968
1839
|
path: "attributes",
|
|
1969
|
-
errorElement: /* @__PURE__ */
|
|
1970
|
-
element: /* @__PURE__ */
|
|
1840
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1841
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
1971
1842
|
handle: {
|
|
1972
1843
|
breadcrumb: () => t("attributes.domain"),
|
|
1973
1844
|
permissions: "product_attributes:view"
|
|
@@ -1975,31 +1846,31 @@ function getRouteMap({
|
|
|
1975
1846
|
children: [
|
|
1976
1847
|
{
|
|
1977
1848
|
path: "",
|
|
1978
|
-
lazy: () => import("./attribute-list-
|
|
1849
|
+
lazy: () => import("./attribute-list-ZC3CG5LS.js").then(withLoaderPermission("product_attributes:view")),
|
|
1979
1850
|
children: [
|
|
1980
1851
|
{
|
|
1981
1852
|
path: "create",
|
|
1982
1853
|
handle: { permissions: "product_attributes:edit" },
|
|
1983
|
-
lazy: () => import("./attribute-create-
|
|
1854
|
+
lazy: () => import("./attribute-create-OFTZRQCO.js")
|
|
1984
1855
|
}
|
|
1985
1856
|
]
|
|
1986
1857
|
},
|
|
1987
1858
|
{
|
|
1988
1859
|
path: ":id",
|
|
1989
1860
|
lazy: async () => {
|
|
1990
|
-
const { Breadcrumb, loader } = await import("./attribute-detail-
|
|
1861
|
+
const { Breadcrumb, loader } = await import("./attribute-detail-WVN5KOH2.js");
|
|
1991
1862
|
return {
|
|
1992
1863
|
Component: Outlet3,
|
|
1993
|
-
loader,
|
|
1864
|
+
loader: withPermission(loader, "product_attributes:view"),
|
|
1994
1865
|
handle: {
|
|
1995
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1866
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
1996
1867
|
}
|
|
1997
1868
|
};
|
|
1998
1869
|
},
|
|
1999
1870
|
children: [
|
|
2000
1871
|
{
|
|
2001
1872
|
path: "",
|
|
2002
|
-
lazy: () => import("./attribute-detail-
|
|
1873
|
+
lazy: () => import("./attribute-detail-WVN5KOH2.js").then(withLoaderPermission("product_attributes:view")),
|
|
2003
1874
|
children: [
|
|
2004
1875
|
{
|
|
2005
1876
|
path: "edit",
|
|
@@ -2008,14 +1879,17 @@ function getRouteMap({
|
|
|
2008
1879
|
},
|
|
2009
1880
|
{
|
|
2010
1881
|
path: "edit-possible-value",
|
|
1882
|
+
handle: { permissions: "product_attributes:edit" },
|
|
2011
1883
|
lazy: () => import("./attribute-edit-possible-value-OOHDX7XL.js")
|
|
2012
1884
|
},
|
|
2013
1885
|
{
|
|
2014
1886
|
path: "create-possible-value",
|
|
1887
|
+
handle: { permissions: "product_attributes:edit" },
|
|
2015
1888
|
lazy: () => import("./attribute-create-possible-value-OKGWRSNJ.js")
|
|
2016
1889
|
},
|
|
2017
1890
|
{
|
|
2018
1891
|
path: "edit-ranking",
|
|
1892
|
+
handle: { permissions: "product_attributes:edit" },
|
|
2019
1893
|
lazy: () => import("./attribute-edit-ranking-SF7XSICV.js")
|
|
2020
1894
|
}
|
|
2021
1895
|
]
|
|
@@ -2026,8 +1900,8 @@ function getRouteMap({
|
|
|
2026
1900
|
},
|
|
2027
1901
|
{
|
|
2028
1902
|
path: "product-types",
|
|
2029
|
-
errorElement: /* @__PURE__ */
|
|
2030
|
-
element: /* @__PURE__ */
|
|
1903
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
1904
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
2031
1905
|
handle: {
|
|
2032
1906
|
breadcrumb: () => t("productTypes.domain"),
|
|
2033
1907
|
permissions: "product_types:view"
|
|
@@ -2035,7 +1909,7 @@ function getRouteMap({
|
|
|
2035
1909
|
children: [
|
|
2036
1910
|
{
|
|
2037
1911
|
path: "",
|
|
2038
|
-
lazy: () => import("./product-type-list-
|
|
1912
|
+
lazy: () => import("./product-type-list-JXU3446J.js"),
|
|
2039
1913
|
children: [
|
|
2040
1914
|
{
|
|
2041
1915
|
path: "create",
|
|
@@ -2047,19 +1921,19 @@ function getRouteMap({
|
|
|
2047
1921
|
{
|
|
2048
1922
|
path: ":id",
|
|
2049
1923
|
lazy: async () => {
|
|
2050
|
-
const { Breadcrumb, loader } = await import("./product-type-detail-
|
|
1924
|
+
const { Breadcrumb, loader } = await import("./product-type-detail-NO4PKFYQ.js");
|
|
2051
1925
|
return {
|
|
2052
1926
|
Component: Outlet3,
|
|
2053
|
-
loader,
|
|
1927
|
+
loader: withPermission(loader, "product_types:view"),
|
|
2054
1928
|
handle: {
|
|
2055
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1929
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
2056
1930
|
}
|
|
2057
1931
|
};
|
|
2058
1932
|
},
|
|
2059
1933
|
children: [
|
|
2060
1934
|
{
|
|
2061
1935
|
path: "",
|
|
2062
|
-
lazy: () => import("./product-type-detail-
|
|
1936
|
+
lazy: () => import("./product-type-detail-NO4PKFYQ.js").then(withLoaderPermission("product_types:view")),
|
|
2063
1937
|
children: [
|
|
2064
1938
|
{
|
|
2065
1939
|
path: "edit",
|
|
@@ -2068,7 +1942,8 @@ function getRouteMap({
|
|
|
2068
1942
|
},
|
|
2069
1943
|
{
|
|
2070
1944
|
path: "metadata/edit",
|
|
2071
|
-
|
|
1945
|
+
handle: { permissions: "product_types:edit" },
|
|
1946
|
+
lazy: () => import("./product-type-metadata-7D3J3NSO.js")
|
|
2072
1947
|
}
|
|
2073
1948
|
]
|
|
2074
1949
|
}
|
|
@@ -2078,7 +1953,7 @@ function getRouteMap({
|
|
|
2078
1953
|
},
|
|
2079
1954
|
{
|
|
2080
1955
|
path: "publishable-api-keys",
|
|
2081
|
-
element: /* @__PURE__ */
|
|
1956
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
2082
1957
|
handle: {
|
|
2083
1958
|
breadcrumb: () => t("apiKeyManagement.domain.publishable"),
|
|
2084
1959
|
permissions: "api_keys:view"
|
|
@@ -2086,11 +1961,11 @@ function getRouteMap({
|
|
|
2086
1961
|
children: [
|
|
2087
1962
|
{
|
|
2088
1963
|
path: "",
|
|
2089
|
-
element: /* @__PURE__ */
|
|
1964
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
2090
1965
|
children: [
|
|
2091
1966
|
{
|
|
2092
1967
|
path: "",
|
|
2093
|
-
lazy: () => import("./api-key-management-list-
|
|
1968
|
+
lazy: () => import("./api-key-management-list-QZIRPINF.js"),
|
|
2094
1969
|
children: [
|
|
2095
1970
|
{
|
|
2096
1971
|
path: "create",
|
|
@@ -2104,19 +1979,19 @@ function getRouteMap({
|
|
|
2104
1979
|
{
|
|
2105
1980
|
path: ":id",
|
|
2106
1981
|
lazy: async () => {
|
|
2107
|
-
const { Breadcrumb, loader } = await import("./api-key-management-detail-
|
|
1982
|
+
const { Breadcrumb, loader } = await import("./api-key-management-detail-Z4KSJHUC.js");
|
|
2108
1983
|
return {
|
|
2109
1984
|
Component: Outlet3,
|
|
2110
|
-
loader,
|
|
1985
|
+
loader: withPermission(loader, "api_keys:view"),
|
|
2111
1986
|
handle: {
|
|
2112
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
1987
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
2113
1988
|
}
|
|
2114
1989
|
};
|
|
2115
1990
|
},
|
|
2116
1991
|
children: [
|
|
2117
1992
|
{
|
|
2118
1993
|
path: "",
|
|
2119
|
-
lazy: () => import("./api-key-management-detail-
|
|
1994
|
+
lazy: () => import("./api-key-management-detail-Z4KSJHUC.js").then(withLoaderPermission("api_keys:view")),
|
|
2120
1995
|
children: [
|
|
2121
1996
|
{
|
|
2122
1997
|
path: "edit",
|
|
@@ -2125,7 +2000,8 @@ function getRouteMap({
|
|
|
2125
2000
|
},
|
|
2126
2001
|
{
|
|
2127
2002
|
path: "sales-channels",
|
|
2128
|
-
|
|
2003
|
+
handle: { permissions: ["api_keys:edit", "sales_channels:view"] },
|
|
2004
|
+
lazy: () => import("./api-key-management-sales-channels-RGZ3QITG.js")
|
|
2129
2005
|
}
|
|
2130
2006
|
]
|
|
2131
2007
|
}
|
|
@@ -2135,7 +2011,7 @@ function getRouteMap({
|
|
|
2135
2011
|
},
|
|
2136
2012
|
{
|
|
2137
2013
|
path: "secret-api-keys",
|
|
2138
|
-
element: /* @__PURE__ */
|
|
2014
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
2139
2015
|
handle: {
|
|
2140
2016
|
breadcrumb: () => t("apiKeyManagement.domain.secret"),
|
|
2141
2017
|
permissions: "api_keys:view"
|
|
@@ -2143,11 +2019,11 @@ function getRouteMap({
|
|
|
2143
2019
|
children: [
|
|
2144
2020
|
{
|
|
2145
2021
|
path: "",
|
|
2146
|
-
element: /* @__PURE__ */
|
|
2022
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
2147
2023
|
children: [
|
|
2148
2024
|
{
|
|
2149
2025
|
path: "",
|
|
2150
|
-
lazy: () => import("./api-key-management-list-
|
|
2026
|
+
lazy: () => import("./api-key-management-list-QZIRPINF.js"),
|
|
2151
2027
|
children: [
|
|
2152
2028
|
{
|
|
2153
2029
|
path: "create",
|
|
@@ -2161,19 +2037,19 @@ function getRouteMap({
|
|
|
2161
2037
|
{
|
|
2162
2038
|
path: ":id",
|
|
2163
2039
|
lazy: async () => {
|
|
2164
|
-
const { Breadcrumb, loader } = await import("./api-key-management-detail-
|
|
2040
|
+
const { Breadcrumb, loader } = await import("./api-key-management-detail-Z4KSJHUC.js");
|
|
2165
2041
|
return {
|
|
2166
2042
|
Component: Outlet3,
|
|
2167
|
-
loader,
|
|
2043
|
+
loader: withPermission(loader, "api_keys:view"),
|
|
2168
2044
|
handle: {
|
|
2169
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
2045
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
2170
2046
|
}
|
|
2171
2047
|
};
|
|
2172
2048
|
},
|
|
2173
2049
|
children: [
|
|
2174
2050
|
{
|
|
2175
2051
|
path: "",
|
|
2176
|
-
lazy: () => import("./api-key-management-detail-
|
|
2052
|
+
lazy: () => import("./api-key-management-detail-Z4KSJHUC.js").then(withLoaderPermission("api_keys:view")),
|
|
2177
2053
|
children: [
|
|
2178
2054
|
{
|
|
2179
2055
|
path: "edit",
|
|
@@ -2188,7 +2064,7 @@ function getRouteMap({
|
|
|
2188
2064
|
},
|
|
2189
2065
|
{
|
|
2190
2066
|
path: "tax-regions",
|
|
2191
|
-
element: /* @__PURE__ */
|
|
2067
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
2192
2068
|
handle: {
|
|
2193
2069
|
breadcrumb: () => t("taxRegions.domain"),
|
|
2194
2070
|
permissions: "tax_regions:view"
|
|
@@ -2196,27 +2072,27 @@ function getRouteMap({
|
|
|
2196
2072
|
children: [
|
|
2197
2073
|
{
|
|
2198
2074
|
path: "",
|
|
2199
|
-
lazy: () => import("./tax-region-list-
|
|
2075
|
+
lazy: () => import("./tax-region-list-PUNXDH34.js"),
|
|
2200
2076
|
children: [
|
|
2201
2077
|
{
|
|
2202
2078
|
path: "create",
|
|
2203
2079
|
handle: { permissions: "tax_regions:edit" },
|
|
2204
|
-
lazy: () => import("./tax-region-create-
|
|
2080
|
+
lazy: () => import("./tax-region-create-ECRRD74Z.js")
|
|
2205
2081
|
}
|
|
2206
2082
|
]
|
|
2207
2083
|
},
|
|
2208
2084
|
{
|
|
2209
2085
|
path: ":id",
|
|
2210
2086
|
Component: Outlet3,
|
|
2211
|
-
loader: taxRegionLoader,
|
|
2087
|
+
loader: withPermission(taxRegionLoader, "tax_regions:view"),
|
|
2212
2088
|
handle: {
|
|
2213
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
2089
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(TaxRegionDetailBreadcrumb, { ...match })
|
|
2214
2090
|
},
|
|
2215
2091
|
children: [
|
|
2216
2092
|
{
|
|
2217
2093
|
path: "",
|
|
2218
2094
|
lazy: async () => {
|
|
2219
|
-
const { Component } = await import("./tax-region-detail-
|
|
2095
|
+
const { Component } = await import("./tax-region-detail-PU4Q42KO.js");
|
|
2220
2096
|
return {
|
|
2221
2097
|
Component
|
|
2222
2098
|
};
|
|
@@ -2225,66 +2101,76 @@ function getRouteMap({
|
|
|
2225
2101
|
{
|
|
2226
2102
|
path: "edit",
|
|
2227
2103
|
handle: { permissions: "tax_regions:edit" },
|
|
2228
|
-
lazy: () => import("./tax-region-edit-
|
|
2104
|
+
lazy: () => import("./tax-region-edit-P4L2CUFV.js")
|
|
2229
2105
|
},
|
|
2230
2106
|
{
|
|
2231
2107
|
path: "provinces/create",
|
|
2108
|
+
handle: { permissions: "tax_regions:edit" },
|
|
2232
2109
|
lazy: () => import("./tax-region-province-create-RYNRPGY5.js")
|
|
2233
2110
|
},
|
|
2234
2111
|
{
|
|
2235
2112
|
path: "overrides/create",
|
|
2236
|
-
|
|
2113
|
+
handle: { permissions: "tax_regions:edit" },
|
|
2114
|
+
lazy: () => import("./tax-region-tax-override-create-CPWWLRMI.js")
|
|
2237
2115
|
},
|
|
2238
2116
|
{
|
|
2239
2117
|
path: "overrides/:tax_rate_id/edit",
|
|
2240
|
-
|
|
2118
|
+
handle: { permissions: "tax_regions:edit" },
|
|
2119
|
+
lazy: () => import("./tax-region-tax-override-edit-TQCB5GSO.js")
|
|
2241
2120
|
},
|
|
2242
2121
|
{
|
|
2243
2122
|
path: "tax-rates/create",
|
|
2123
|
+
handle: { permissions: "tax_regions:edit" },
|
|
2244
2124
|
lazy: () => import("./tax-region-tax-rate-create-DLLXVZPG.js")
|
|
2245
2125
|
},
|
|
2246
2126
|
{
|
|
2247
2127
|
path: "tax-rates/:tax_rate_id/edit",
|
|
2128
|
+
handle: { permissions: "tax_regions:edit" },
|
|
2248
2129
|
lazy: () => import("./tax-region-tax-rate-edit-HN5VDJAZ.js")
|
|
2249
2130
|
},
|
|
2250
2131
|
{
|
|
2251
2132
|
path: "metadata/edit",
|
|
2252
|
-
|
|
2133
|
+
handle: { permissions: "tax_regions:edit" },
|
|
2134
|
+
lazy: () => import("./tax-region-metadata-EDZ7YGYR.js")
|
|
2253
2135
|
}
|
|
2254
2136
|
]
|
|
2255
2137
|
},
|
|
2256
2138
|
{
|
|
2257
2139
|
path: "provinces/:province_id",
|
|
2258
2140
|
lazy: async () => {
|
|
2259
|
-
const { Breadcrumb, loader } = await import("./tax-region-province-detail-
|
|
2141
|
+
const { Breadcrumb, loader } = await import("./tax-region-province-detail-3ZQOCKZ2.js");
|
|
2260
2142
|
return {
|
|
2261
2143
|
Component: Outlet3,
|
|
2262
|
-
loader,
|
|
2144
|
+
loader: withPermission(loader, "tax_regions:view"),
|
|
2263
2145
|
handle: {
|
|
2264
|
-
breadcrumb: (match) => /* @__PURE__ */
|
|
2146
|
+
breadcrumb: (match) => /* @__PURE__ */ jsx4(Breadcrumb, { ...match })
|
|
2265
2147
|
}
|
|
2266
2148
|
};
|
|
2267
2149
|
},
|
|
2268
2150
|
children: [
|
|
2269
2151
|
{
|
|
2270
2152
|
path: "",
|
|
2271
|
-
lazy: () => import("./tax-region-province-detail-
|
|
2153
|
+
lazy: () => import("./tax-region-province-detail-3ZQOCKZ2.js").then(withLoaderPermission("tax_regions:view")),
|
|
2272
2154
|
children: [
|
|
2273
2155
|
{
|
|
2274
2156
|
path: "tax-rates/create",
|
|
2157
|
+
handle: { permissions: "tax_regions:edit" },
|
|
2275
2158
|
lazy: () => import("./tax-region-tax-rate-create-DLLXVZPG.js")
|
|
2276
2159
|
},
|
|
2277
2160
|
{
|
|
2278
2161
|
path: "tax-rates/:tax_rate_id/edit",
|
|
2162
|
+
handle: { permissions: "tax_regions:edit" },
|
|
2279
2163
|
lazy: () => import("./tax-region-tax-rate-edit-HN5VDJAZ.js")
|
|
2280
2164
|
},
|
|
2281
2165
|
{
|
|
2282
2166
|
path: "overrides/create",
|
|
2283
|
-
|
|
2167
|
+
handle: { permissions: "tax_regions:edit" },
|
|
2168
|
+
lazy: () => import("./tax-region-tax-override-create-CPWWLRMI.js")
|
|
2284
2169
|
},
|
|
2285
2170
|
{
|
|
2286
2171
|
path: "overrides/:tax_rate_id/edit",
|
|
2287
|
-
|
|
2172
|
+
handle: { permissions: "tax_regions:edit" },
|
|
2173
|
+
lazy: () => import("./tax-region-tax-override-edit-TQCB5GSO.js")
|
|
2288
2174
|
}
|
|
2289
2175
|
]
|
|
2290
2176
|
}
|
|
@@ -2296,7 +2182,7 @@ function getRouteMap({
|
|
|
2296
2182
|
},
|
|
2297
2183
|
{
|
|
2298
2184
|
path: "return-reasons",
|
|
2299
|
-
element: /* @__PURE__ */
|
|
2185
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
2300
2186
|
handle: {
|
|
2301
2187
|
breadcrumb: () => t("returnReasons.domain"),
|
|
2302
2188
|
permissions: "return_reasons:view"
|
|
@@ -2304,7 +2190,7 @@ function getRouteMap({
|
|
|
2304
2190
|
children: [
|
|
2305
2191
|
{
|
|
2306
2192
|
path: "",
|
|
2307
|
-
lazy: () => import("./return-reason-list-
|
|
2193
|
+
lazy: () => import("./return-reason-list-BDR7VUEV.js").then(withLoaderPermission("return_reasons:view")),
|
|
2308
2194
|
children: [
|
|
2309
2195
|
{
|
|
2310
2196
|
path: "create",
|
|
@@ -2327,7 +2213,7 @@ function getRouteMap({
|
|
|
2327
2213
|
},
|
|
2328
2214
|
{
|
|
2329
2215
|
path: "refund-reasons",
|
|
2330
|
-
element: /* @__PURE__ */
|
|
2216
|
+
element: /* @__PURE__ */ jsx4(Outlet3, {}),
|
|
2331
2217
|
handle: {
|
|
2332
2218
|
breadcrumb: () => t("refundReasons.domain"),
|
|
2333
2219
|
permissions: "refund_reasons:view"
|
|
@@ -2335,12 +2221,12 @@ function getRouteMap({
|
|
|
2335
2221
|
children: [
|
|
2336
2222
|
{
|
|
2337
2223
|
path: "",
|
|
2338
|
-
lazy: () => import("./refund-reason-list-
|
|
2224
|
+
lazy: () => import("./refund-reason-list-4T7DIRZV.js").then(withLoaderPermission("refund_reasons:view")),
|
|
2339
2225
|
children: [
|
|
2340
2226
|
{
|
|
2341
2227
|
path: "create",
|
|
2342
2228
|
handle: { permissions: "refund_reasons:edit" },
|
|
2343
|
-
lazy: () => import("./refund-reason-create-
|
|
2229
|
+
lazy: () => import("./refund-reason-create-HZOBFOPB.js")
|
|
2344
2230
|
},
|
|
2345
2231
|
{
|
|
2346
2232
|
path: ":id",
|
|
@@ -2348,7 +2234,7 @@ function getRouteMap({
|
|
|
2348
2234
|
{
|
|
2349
2235
|
path: "edit",
|
|
2350
2236
|
handle: { permissions: "refund_reasons:edit" },
|
|
2351
|
-
lazy: () => import("./refund-reason-edit-
|
|
2237
|
+
lazy: () => import("./refund-reason-edit-KS6NMC22.js")
|
|
2352
2238
|
}
|
|
2353
2239
|
]
|
|
2354
2240
|
}
|
|
@@ -2365,18 +2251,18 @@ function getRouteMap({
|
|
|
2365
2251
|
]
|
|
2366
2252
|
},
|
|
2367
2253
|
{
|
|
2368
|
-
element: /* @__PURE__ */
|
|
2254
|
+
element: /* @__PURE__ */ jsx4(PublicLayout, {}),
|
|
2369
2255
|
children: [
|
|
2370
2256
|
{
|
|
2371
|
-
errorElement: /* @__PURE__ */
|
|
2257
|
+
errorElement: /* @__PURE__ */ jsx4(ErrorBoundary, {}),
|
|
2372
2258
|
children: [
|
|
2373
2259
|
{
|
|
2374
2260
|
path: "/login",
|
|
2375
|
-
lazy: () => import("./login-
|
|
2261
|
+
lazy: () => import("./login-ISNIWXU2.js")
|
|
2376
2262
|
},
|
|
2377
2263
|
{
|
|
2378
2264
|
path: "/reset-password",
|
|
2379
|
-
lazy: () => import("./reset-password-
|
|
2265
|
+
lazy: () => import("./reset-password-3YLCNWLP.js")
|
|
2380
2266
|
},
|
|
2381
2267
|
{
|
|
2382
2268
|
path: "/invite",
|
|
@@ -2395,25 +2281,25 @@ function getRouteMap({
|
|
|
2395
2281
|
}
|
|
2396
2282
|
|
|
2397
2283
|
// src/app.tsx
|
|
2398
|
-
import { useMemo as
|
|
2399
|
-
import { jsx as
|
|
2284
|
+
import { useMemo as useMemo2 } from "react";
|
|
2285
|
+
import { jsx as jsx5, jsxs } from "react/jsx-runtime";
|
|
2400
2286
|
function App() {
|
|
2401
|
-
const routes =
|
|
2287
|
+
const routes = useMemo2(() => {
|
|
2402
2288
|
return {
|
|
2403
2289
|
settingsRoutes: createRouteMap(getRoutesByType(customRoutes, "settings")),
|
|
2404
2290
|
mainRoutes: createRouteMap(getRoutesByType(customRoutes, "main")),
|
|
2405
2291
|
publicRoutes: createRouteMap(getRoutesByType(customRoutes, "public"))
|
|
2406
2292
|
};
|
|
2407
2293
|
}, []);
|
|
2408
|
-
return /* @__PURE__ */
|
|
2294
|
+
return /* @__PURE__ */ jsx5(TooltipProvider, { children: /* @__PURE__ */ jsx5(HelmetProvider, { children: /* @__PURE__ */ jsx5(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx5(ThemeProvider, { children: /* @__PURE__ */ jsx5(FeatureFlagProvider, { children: /* @__PURE__ */ jsxs(
|
|
2409
2295
|
ExtensionProvider,
|
|
2410
2296
|
{
|
|
2411
2297
|
widgets,
|
|
2412
2298
|
navigation,
|
|
2413
2299
|
customFields,
|
|
2414
2300
|
children: [
|
|
2415
|
-
/* @__PURE__ */
|
|
2416
|
-
/* @__PURE__ */
|
|
2301
|
+
/* @__PURE__ */ jsx5(I18n, {}),
|
|
2302
|
+
/* @__PURE__ */ jsx5(I18nProvider, { children: /* @__PURE__ */ jsx5(
|
|
2417
2303
|
RouterProvider,
|
|
2418
2304
|
{
|
|
2419
2305
|
router: createBrowserRouter(getRouteMap(routes), {
|
|
@@ -2421,7 +2307,7 @@ function App() {
|
|
|
2421
2307
|
})
|
|
2422
2308
|
}
|
|
2423
2309
|
) }),
|
|
2424
|
-
/* @__PURE__ */
|
|
2310
|
+
/* @__PURE__ */ jsx5(Toaster, {})
|
|
2425
2311
|
]
|
|
2426
2312
|
}
|
|
2427
2313
|
) }) }) }) }) });
|
|
@@ -2432,7 +2318,7 @@ import {
|
|
|
2432
2318
|
PermissionGuard,
|
|
2433
2319
|
PermissionsProvider as PermissionsProvider2,
|
|
2434
2320
|
RoutePermissionGuard as RoutePermissionGuard2,
|
|
2435
|
-
usePermissions
|
|
2321
|
+
usePermissions,
|
|
2436
2322
|
useResourcePermissions
|
|
2437
2323
|
} from "@mercurjs/dashboard-shared";
|
|
2438
2324
|
export {
|
|
@@ -2452,7 +2338,7 @@ export {
|
|
|
2452
2338
|
App as default,
|
|
2453
2339
|
defineTabMeta,
|
|
2454
2340
|
useDataTable,
|
|
2455
|
-
|
|
2341
|
+
usePermissions,
|
|
2456
2342
|
useResourcePermissions,
|
|
2457
2343
|
useTabbedForm
|
|
2458
2344
|
};
|