@mercurjs/admin 2.0.0-canary.34 → 2.0.0-canary.35
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-UVEH25GZ.js → add-campaign-promotions-ZUXBF5G3.js} +10 -10
- package/dist/{adjust-inventory-6Q53EEFB.js → adjust-inventory-HZCWL6SC.js} +10 -10
- package/dist/api-key-management-detail-SKJNAZ5L.js +87 -0
- package/dist/api-key-management-list-2D4WKI6Y.js +33 -0
- package/dist/{campaign-create-2IIU3WTS.js → campaign-create-B7XM2FZM.js} +4 -4
- package/dist/campaign-detail-7U4CQHU5.js +105 -0
- package/dist/campaign-list-SC7FLTRM.js +31 -0
- package/dist/{categories-metadata-G7JDGW6O.js → categories-metadata-LPSJNCME.js} +12 -12
- package/dist/category-detail-HGHR3R2R.js +105 -0
- package/dist/category-list-QBBFGHQM.js +32 -0
- package/dist/{category-products-FH4RIZKA.js → category-products-XLCG2JR7.js} +14 -14
- package/dist/{chunk-36WVODFU.js → chunk-23663A2W.js} +1 -1
- package/dist/chunk-2IGCU3KP.js +170 -0
- package/dist/chunk-33FUPXJL.js +102 -0
- package/dist/{chunk-O5HZRJPB.js → chunk-3B6MTW5G.js} +9 -0
- package/dist/{shipping-profiles-list-FUW4FXLC.js → chunk-3H74EI2D.js} +11 -19
- package/dist/{shipping-profile-detail-WHKHB2OQ.js → chunk-3IYIS5UZ.js} +15 -61
- package/dist/{return-reason-list-MRYG7ZK7.js → chunk-3SAH3NUS.js} +12 -80
- package/dist/chunk-4GVHNYZR.js +294 -0
- package/dist/chunk-4WYBW3HK.js +209 -0
- package/dist/chunk-5GG65TKV.js +335 -0
- package/dist/{customer-group-detail-CPONLZRF.js → chunk-5VEYNZSW.js} +33 -119
- package/dist/{customer-group-list-V2CGT3FT.js → chunk-62ZRA6BZ.js} +2 -37
- package/dist/{category-list-YPRENMVF.js → chunk-66IHH2HG.js} +105 -89
- package/dist/chunk-6L2LSIPR.js +223 -0
- package/dist/{region-list-PGWUOULN.js → chunk-6PNMR6XP.js} +18 -32
- package/dist/{product-type-list-T5KO5J3W.js → chunk-7COSFMM7.js} +17 -30
- package/dist/{api-key-management-detail-RQW5RC5F.js → chunk-7TLEUIAL.js} +22 -80
- package/dist/{product-tag-list-I6M6TAYM.js → chunk-A2KURGQO.js} +16 -131
- package/dist/{chunk-GFZ7GOEU.js → chunk-A6Z2Q7D5.js} +2 -2
- package/dist/{customer-detail-YS265DZS.js → chunk-AOVEX4EM.js} +74 -158
- package/dist/{inventory-detail-42GK24BA.js → chunk-AOVJTW7M.js} +130 -196
- package/dist/{payout-list-GE7E637R.js → chunk-BHID7W3U.js} +12 -22
- package/dist/{price-list-list-VFHHTBLR.js → chunk-CR4E2DCR.js} +98 -78
- package/dist/{chunk-UZVYM65V.js → chunk-D44T5KAE.js} +6 -6
- package/dist/{chunk-BFCAJKRG.js → chunk-DBYUB2YI.js} +28 -56
- package/dist/{user-detail-Q7ST2YKP.js → chunk-DK3U2SRA.js} +17 -62
- package/dist/{refund-reason-list-ECQKWA2M.js → chunk-DP5U3GQU.js} +54 -105
- package/dist/chunk-E2AAYIHS.js +250 -0
- package/dist/{commission-rate-detail-ANI37QHI.js → chunk-EDQBUWY7.js} +46 -106
- package/dist/{region-detail-DIEFHHOM.js → chunk-ENMRRG4N.js} +48 -94
- package/dist/{chunk-UZJ2NQSN.js → chunk-FRRQW7BG.js} +4 -4
- package/dist/{order-detail-V2O5C4CX.js → chunk-FXU7SL6M.js} +413 -423
- package/dist/{product-type-detail-JI4DF7WR.js → chunk-FYB5MS4F.js} +29 -110
- package/dist/{chunk-QNGHZSK3.js → chunk-G644AXKV.js} +1 -1
- package/dist/chunk-GJTIHFXG.js +115 -0
- package/dist/{sales-channel-list-2ZUNUM2T.js → chunk-HHNJNKCB.js} +16 -54
- package/dist/{campaign-list-EAGDQZO3.js → chunk-HZKW7HRU.js} +14 -32
- package/dist/chunk-IXGP2EEN.js +425 -0
- package/dist/{profile-detail-AWZ4EZ6R.js → chunk-J7SR4GW5.js} +10 -15
- package/dist/{product-variant-detail-DXTUM4R7.js → chunk-JA2XIIIZ.js} +96 -178
- package/dist/{price-list-detail-324FZRK5.js → chunk-JRWB7VWP.js} +59 -130
- package/dist/{category-detail-2U65E3CX.js → chunk-KUDLPUWR.js} +70 -146
- package/dist/{collection-detail-Y4GGSHXX.js → chunk-KXPCEVFB.js} +44 -121
- package/dist/{location-list-KVFFPEIV.js → chunk-KYUXTS2L.js} +61 -86
- package/dist/{chunk-M3I52H3M.js → chunk-LU72QEQC.js} +4 -4
- package/dist/{location-detail-XO4RRCAU.js → chunk-LYT3RI4O.js} +90 -155
- package/dist/chunk-NOWUEJ74.js +44 -0
- package/dist/{product-detail-3UWUMNHC.js → chunk-NQPAEBSZ.js} +145 -195
- package/dist/{api-key-management-list-VYQ4AVSX.js → chunk-O6O22BN4.js} +9 -29
- package/dist/{tax-region-province-detail-PB7RFWJ4.js → chunk-OFRQZHVQ.js} +15 -99
- package/dist/{reservation-detail-J4M2EXRY.js → chunk-OSHCUDYY.js} +27 -93
- package/dist/{campaign-detail-4DO3S5UZ.js → chunk-Q6XCCONH.js} +118 -193
- package/dist/{payout-detail-PRYOQSGQ.js → chunk-QBOXELB5.js} +7 -41
- package/dist/chunk-QD6KYDYH.js +169 -0
- package/dist/{commission-rate-list-FCQ3HXC7.js → chunk-QP6XXG6A.js} +11 -20
- package/dist/{promotion-list-SJYMXQXT.js → chunk-RIMR3ULR.js} +14 -51
- package/dist/{shipping-option-type-list-4A7FT4P5.js → chunk-SFG7JTBH.js} +14 -51
- package/dist/{sales-channel-detail-RMU5QW3N.js → chunk-T25UE7SS.js} +39 -120
- package/dist/{tax-region-detail-L3EB6JSF.js → chunk-TE5VQBCL.js} +19 -60
- package/dist/{reservation-list-X33SIPG3.js → chunk-TKGZBTOS.js} +11 -20
- package/dist/{chunk-LQSLDDPT.js → chunk-TZSOL34K.js} +40 -1
- package/dist/{chunk-F5PEK3DA.js → chunk-U3SFHLUA.js} +1 -1
- package/dist/{chunk-IZ5RG5XI.js → chunk-UXD3VNBO.js} +1 -20
- package/dist/{chunk-XE6KSRKQ.js → chunk-V2DXJ75C.js} +1 -1
- package/dist/{marketplace-detail-OVWHCK5W.js → chunk-VBAAYYCS.js} +114 -172
- package/dist/{chunk-5POS4GBN.js → chunk-WZADCDDE.js} +4 -4
- package/dist/{chunk-HOZHWCST.js → chunk-XDVS4B7W.js} +1 -1
- package/dist/{promotion-detail-IO7V5CXR.js → chunk-XVKRTPVM.js} +147 -162
- package/dist/{inventory-list-UJNDJFJS.js → chunk-YH4VQBAA.js} +11 -19
- package/dist/{collection-add-products-RLTEE27D.js → collection-add-products-IQ7M63BA.js} +13 -13
- package/dist/collection-detail-YJ3FV2C6.js +96 -0
- package/dist/collection-list-WDQOBHQN.js +78 -0
- package/dist/{collection-metadata-CQWEZ4EQ.js → collection-metadata-UZ3VN625.js} +10 -10
- package/dist/{commission-rate-create-YK6GCP2R.js → commission-rate-create-VC72GTV4.js} +34 -34
- package/dist/commission-rate-detail-UQDIIMIK.js +82 -0
- package/dist/{commission-rate-edit-5MPI53CE.js → commission-rate-edit-AXJKJNFY.js} +34 -34
- package/dist/commission-rate-list-WTDZLKUR.js +27 -0
- package/dist/customer-detail-N7CS4IJU.js +106 -0
- package/dist/{customer-group-add-customers-FTRCJHE7.js → customer-group-add-customers-LCNDTLXR.js} +6 -6
- package/dist/customer-group-detail-UCTY4FF7.js +105 -0
- package/dist/customer-group-list-XOQ64CVR.js +48 -0
- package/dist/{customer-group-metadata-BITZXXFX.js → customer-group-metadata-FMAZBXIK.js} +11 -11
- package/dist/customer-list-BUUO6OF7.js +32 -0
- package/dist/{customer-metadata-6DDHIGDD.js → customer-metadata-7GW4JRZR.js} +11 -11
- package/dist/{customers-add-customer-group-SD3KK6JE.js → customers-add-customer-group-BKEV24N2.js} +15 -15
- package/dist/{edit-inventory-item-5PZZ3IAH.js → edit-inventory-item-RECBP7OX.js} +7 -7
- package/dist/{edit-inventory-item-attributes-7PJQCUXL.js → edit-inventory-item-attributes-2P3BMQJ5.js} +8 -8
- package/dist/{edit-rules-E2564ZQB.js → edit-rules-DPHJ7PQQ.js} +9 -9
- package/dist/index.d.ts +5 -0
- package/dist/index.js +564 -757
- package/dist/{inventory-create-LYXHQR7Y.js → inventory-create-QLEIHESO.js} +20 -20
- package/dist/inventory-detail-BJT5WEV5.js +106 -0
- package/dist/inventory-list-3LWBPWVK.js +29 -0
- package/dist/{inventory-metadata-OLR5ZMMN.js → inventory-metadata-ZNHZQEMX.js} +11 -11
- package/dist/{inventory-stock-ZOM2ANKJ.js → inventory-stock-G3GP4FZX.js} +17 -17
- package/dist/location-detail-N7J6PEAP.js +99 -0
- package/dist/{location-fulfillment-providers-6T27UNF7.js → location-fulfillment-providers-BHCY2MYC.js} +18 -18
- package/dist/location-list-UG6B47NP.js +52 -0
- package/dist/{location-service-zone-create-IYKQNCNO.js → location-service-zone-create-AIVG7HTM.js} +8 -8
- package/dist/{location-service-zone-manage-areas-L7BQTR7S.js → location-service-zone-manage-areas-EZSV25CP.js} +10 -10
- package/dist/{location-service-zone-shipping-option-create-PSPX634E.js → location-service-zone-shipping-option-create-GYPW6SSN.js} +18 -18
- package/dist/{location-service-zone-shipping-option-pricing-HC7Z4BVU.js → location-service-zone-shipping-option-pricing-7VMPXDWX.js} +8 -8
- package/dist/{login-U5WERLJC.js → login-2HSCF4ZB.js} +16 -10
- package/dist/{marketplace-add-currencies-XQPZT237.js → marketplace-add-currencies-CIGOPBO6.js} +7 -7
- package/dist/marketplace-detail-7KJMXXAJ.js +74 -0
- package/dist/{marketplace-metadata-GIYATM54.js → marketplace-metadata-PHZ4PUWM.js} +11 -11
- package/dist/{order-create-claim-UWNZUBL7.js → order-create-claim-7WW6MXTT.js} +34 -34
- package/dist/{order-create-edit-JD4UZ5GW.js → order-create-edit-KAH6ZPLX.js} +20 -20
- package/dist/{order-create-exchange-OTIDP47E.js → order-create-exchange-ELLWF3IY.js} +31 -31
- package/dist/{order-create-fulfillment-7OP64TNJ.js → order-create-fulfillment-E3J7ILOJ.js} +13 -13
- package/dist/{order-create-refund-U4UK5IZB.js → order-create-refund-5QZBOSCA.js} +13 -13
- package/dist/{order-create-return-LH4LW5BZ.js → order-create-return-L6DEDPJK.js} +17 -17
- package/dist/{order-create-shipment-URYCUNU6.js → order-create-shipment-NBQ226NM.js} +7 -7
- package/dist/order-detail-C25NQSZN.js +122 -0
- package/dist/{order-edit-billing-address-XRUEKX33.js → order-edit-billing-address-NVRMPZEU.js} +14 -14
- package/dist/{order-edit-email-CJ3MEZB6.js → order-edit-email-5FA7X52X.js} +7 -7
- package/dist/{order-edit-shipping-address-SV4UVNBQ.js → order-edit-shipping-address-BPU7OL2N.js} +11 -11
- package/dist/order-list-7NH7LROU.js +48 -0
- package/dist/{order-metadata-HIOSALZT.js → order-metadata-47FUKENZ.js} +10 -10
- package/dist/{order-receive-return-4SRRRBW6.js → order-receive-return-FW5QZJBM.js} +8 -8
- package/dist/{order-request-transfer-5AGKGFVY.js → order-request-transfer-WD327YGL.js} +7 -7
- package/dist/pages/index.d.ts +638 -0
- package/dist/pages/index.js +359 -0
- package/dist/payout-detail-MDD5SRK5.js +51 -0
- package/dist/payout-list-XY2A5KYS.js +28 -0
- package/dist/{price-list-configuration-GK4MA3BE.js → price-list-configuration-XK3IZLLX.js} +8 -8
- package/dist/{price-list-create-3NNWUS6L.js → price-list-create-OK7YYLAB.js} +22 -22
- package/dist/price-list-detail-IGFSM77P.js +102 -0
- package/dist/price-list-list-TBXQ5DOS.js +35 -0
- package/dist/{price-list-prices-add-IBSLTMNK.js → price-list-prices-add-7PGUONDK.js} +18 -18
- package/dist/{price-list-prices-edit-AAVPX34P.js → price-list-prices-edit-QVGBT6AI.js} +14 -14
- package/dist/{product-create-C4GHUEM5.js → product-create-NVBKO426.js} +218 -383
- package/dist/{product-create-variant-5MVBT5ST.js → product-create-variant-CJPECBV4.js} +68 -230
- package/dist/product-detail-ZC37BGPC.js +100 -0
- package/dist/{product-export-XTS7P5AD.js → product-export-ULTY2SNJ.js} +14 -14
- package/dist/{product-import-ZEZE2JE6.js → product-import-Q2CPHVNJ.js} +10 -10
- package/dist/product-list-635ZXM2D.js +85 -0
- package/dist/{product-media-Z2DCRZSU.js → product-media-ZMDAVPGI.js} +4 -4
- package/dist/{product-metadata-NBB5SRDN.js → product-metadata-36JNWKCJ.js} +10 -10
- package/dist/{product-stock-ZXNZZBJI.js → product-stock-HF42WRSC.js} +18 -18
- package/dist/{product-tag-create-LL35OFZM.js → product-tag-create-VCRDLR27.js} +7 -7
- package/dist/product-tag-detail-OJLYO3Q5.js +135 -0
- package/dist/{product-tag-edit-6XBZCCED.js → product-tag-edit-BYE7UP54.js} +7 -7
- package/dist/product-tag-list-XFHGJBRF.js +129 -0
- package/dist/{product-tag-metadata-UGO4RUFU.js → product-tag-metadata-ADHNZA2H.js} +10 -10
- package/dist/product-type-detail-J4UA4AEM.js +97 -0
- package/dist/product-type-list-H5EQHCXS.js +34 -0
- package/dist/{product-type-metadata-ZKOZNZE3.js → product-type-metadata-UY22KDAN.js} +10 -10
- package/dist/product-variant-detail-5WKYURFA.js +111 -0
- package/dist/{product-variant-edit-KGLW5GXD.js → product-variant-edit-66ZUIIMP.js} +10 -10
- package/dist/{product-variant-metadata-H7J7SZNU.js → product-variant-metadata-7N5F7DM5.js} +10 -10
- package/dist/profile-detail-EYNXOHGZ.js +17 -0
- package/dist/{promotion-add-campaign-OEMV62HF.js → promotion-add-campaign-B5SF72KC.js} +4 -4
- package/dist/{promotion-create-P2WR5RPH.js → promotion-create-D77SANLX.js} +17 -17
- package/dist/promotion-detail-MVFOMS4E.js +87 -0
- package/dist/promotion-list-IN4VWEQN.js +57 -0
- package/dist/{refund-reason-create-PTHFUT2D.js → refund-reason-create-BHI5XXZC.js} +7 -7
- package/dist/{refund-reason-edit-WEEQQGYO.js → refund-reason-edit-UWWYC4OB.js} +7 -7
- package/dist/refund-reason-list-DJZZC7KK.js +101 -0
- package/dist/{region-add-countries-GVOTB5YX.js → region-add-countries-YOGU74UR.js} +9 -9
- package/dist/{region-create-3BCYTIDB.js → region-create-UMJK3VGL.js} +14 -14
- package/dist/region-detail-OFZHX57G.js +73 -0
- package/dist/region-list-L4FKHVJJ.js +34 -0
- package/dist/{region-metadata-IYIHJCTK.js → region-metadata-JLHWQGTC.js} +11 -11
- package/dist/reservation-detail-LZYEM5NW.js +82 -0
- package/dist/reservation-list-OGPDB7WG.js +30 -0
- package/dist/{reservation-metadata-MMHE4TPO.js → reservation-metadata-WB42HSMD.js} +11 -11
- package/dist/{reset-password-WNANNJDX.js → reset-password-Q7Y4FWRE.js} +2 -2
- package/dist/return-reason-list-6ICMSVKF.js +80 -0
- package/dist/{sales-channel-add-products-GP7TMMKB.js → sales-channel-add-products-EOWFSO35.js} +14 -14
- package/dist/sales-channel-detail-RRJG7U7R.js +97 -0
- package/dist/sales-channel-list-LUZ4ZXCY.js +50 -0
- package/dist/{sales-channel-metadata-QF5KEN7C.js → sales-channel-metadata-5CLXRNQF.js} +12 -12
- package/dist/{seller-details-EUCYPH4Z.js → seller-details-KROISMQC.js} +48 -48
- package/dist/seller-list-664H4SI5.js +79 -0
- package/dist/{shipping-option-type-create-KBQMPNIW.js → shipping-option-type-create-42URKECR.js} +7 -7
- package/dist/shipping-option-type-detail-2RY3NHRO.js +81 -0
- package/dist/{shipping-option-type-edit-S3R6JBFV.js → shipping-option-type-edit-VLFV2AR4.js} +7 -7
- package/dist/shipping-option-type-list-IOSOE33S.js +59 -0
- package/dist/shipping-profile-detail-RIIAX7VE.js +56 -0
- package/dist/{shipping-profile-metadata-BJFUYS5L.js → shipping-profile-metadata-7WDHFEEH.js} +10 -10
- package/dist/shipping-profiles-list-AL4EJSJY.js +26 -0
- package/dist/{tax-region-create-KTFZNQCZ.js → tax-region-create-UOTLTCOP.js} +14 -14
- package/dist/tax-region-detail-CA2W5W6A.js +67 -0
- package/dist/{tax-region-edit-H2ORQVEW.js → tax-region-edit-7O2Z3EYC.js} +7 -7
- package/dist/tax-region-list-JTZ7KZCX.js +26 -0
- package/dist/{tax-region-metadata-2PYZ5ECB.js → tax-region-metadata-VQ57FSEM.js} +11 -11
- package/dist/tax-region-province-detail-ZHLX4FF4.js +98 -0
- package/dist/{tax-region-tax-override-create-IDGG732M.js → tax-region-tax-override-create-WIWUNXW6.js} +31 -31
- package/dist/{tax-region-tax-override-edit-NSBZBBZA.js → tax-region-tax-override-edit-SWROFQTP.js} +31 -31
- package/dist/user-detail-YNPBC5MN.js +54 -0
- package/dist/{user-invite-ATAF42EH.js → user-invite-OT73USBI.js} +10 -10
- package/dist/user-list-LNTZNT3D.js +27 -0
- package/dist/{user-metadata-QFVK2VJX.js → user-metadata-ZGTN4FRU.js} +11 -11
- package/package.json +1 -1
- package/dist/chunk-RW35OPIA.js +0 -45
- package/dist/collection-list-WUPG6AU2.js +0 -233
- package/dist/customer-list-DYQHKNJV.js +0 -153
- package/dist/order-list-ASHM44MM.js +0 -317
- package/dist/product-list-7WK2AWI2.js +0 -323
- package/dist/product-tag-detail-E7VYBISE.js +0 -288
- package/dist/seller-list-W76S2T27.js +0 -237
- package/dist/shipping-option-type-detail-CFGKF7NV.js +0 -173
- package/dist/tax-region-list-D7HWEZUR.js +0 -92
- package/dist/user-list-S6BMNMKL.js +0 -342
- package/dist/{api-key-management-sales-channels-RDE5YSYK.js → api-key-management-sales-channels-C7EWPHC2.js} +9 -9
- package/dist/{campaign-budget-edit-722ECPRI.js → campaign-budget-edit-AIXCDGG3.js} +3 -3
- package/dist/{category-create-VSH7BLNC.js → category-create-UWBJGIED.js} +7 -7
- package/dist/{category-edit-CCHWEQER.js → category-edit-ZDTTOXKZ.js} +3 -3
- package/dist/{chunk-JISYRXUS.js → chunk-B44E3LJT.js} +7 -7
- package/dist/{chunk-L22DLGNI.js → chunk-DEKJJ7NG.js} +3 -3
- package/dist/{chunk-2PZGY332.js → chunk-LQAAVRET.js} +3 -3
- package/dist/{chunk-GEVYE225.js → chunk-RA4UMZRP.js} +3 -3
- package/dist/{chunk-NIRWGTM3.js → chunk-RV6NZTNP.js} +3 -3
- package/dist/{chunk-SXC5ZMLI.js → chunk-TKEAOWBZ.js} +24 -24
- package/dist/{chunk-FLCYR7E5.js → chunk-ULJ3OMWU.js} +3 -3
- package/dist/{chunk-XDEVXAGC.js → chunk-VBBBIEVH.js} +3 -3
- package/dist/{chunk-FMOQNZFZ.js → chunk-YMKZS2HK.js} +12 -12
- package/dist/{customer-create-address-2LLOW6NZ.js → customer-create-address-GKWNPTZS.js} +1 -1
- package/dist/{customer-edit-F5UBFJIZ.js → customer-edit-WDRZ6YUO.js} +3 -3
- package/dist/{edit-reservation-SAKSTZTE.js → edit-reservation-7UOWKFMF.js} +3 -3
- package/dist/{invite-CSXH7VAO.js → invite-AXGDIENO.js} +1 -1
- package/dist/{location-create-HHOJPTDK.js → location-create-FQT3BJGV.js} +1 -1
- package/dist/{location-edit-2NAOR4DV.js → location-edit-RTPPP4KP.js} +1 -1
- package/dist/{location-sales-channels-BJUJNBQQ.js → location-sales-channels-3IGHCJEN.js} +9 -9
- package/dist/{location-service-zone-shipping-option-edit-SSMGORBF.js → location-service-zone-shipping-option-edit-E3GN4ZF5.js} +3 -3
- package/dist/{marketplace-edit-WPOSY2WN.js → marketplace-edit-GH2GQF3O.js} +3 -3
- package/dist/{order-allocate-items-DLVOSAC2.js → order-allocate-items-VEEANPH7.js} +3 -3
- package/dist/{price-list-edit-UU2XBKT3.js → price-list-edit-KK7SHR7O.js} +3 -3
- package/dist/{product-attributes-HNF4J53T.js → product-attributes-NG4OSBIV.js} +1 -1
- package/dist/{product-edit-6EL6US22.js → product-edit-LQJDUUVX.js} +4 -4
- package/dist/{product-organization-NWS3NMD6.js → product-organization-AFCELJ62.js} +1 -1
- package/dist/{product-prices-V63CFHI3.js → product-prices-WMRIC7WM.js} +7 -7
- package/dist/{product-sales-channels-WU3MSCV5.js → product-sales-channels-LSN5DVWZ.js} +5 -5
- package/dist/{product-variant-manage-inventory-items-C77QHYRT.js → product-variant-manage-inventory-items-CV2CC2PV.js} +3 -3
- package/dist/{profile-edit-3GIVUYUM.js → profile-edit-4HXBRWJ5.js} +6 -6
- package/dist/{promotion-edit-details-7Y2A5PPJ.js → promotion-edit-details-YKS24GBD.js} +6 -6
- package/dist/{region-edit-7XER3THY.js → region-edit-ODVSNJHM.js} +5 -5
- package/dist/{tax-region-province-create-7BMYABJ6.js → tax-region-province-create-RFYCUDER.js} +3 -3
|
@@ -2,21 +2,13 @@ import {
|
|
|
2
2
|
useCurrenciesTableColumns,
|
|
3
3
|
useCurrenciesTableQuery
|
|
4
4
|
} from "./chunk-64XMEZ5A.js";
|
|
5
|
-
import "./chunk-JHIMVLB2.js";
|
|
6
5
|
import {
|
|
7
6
|
StatusCell
|
|
8
7
|
} from "./chunk-DB6ANJBO.js";
|
|
9
|
-
import "./chunk-FQERBIVS.js";
|
|
10
|
-
import "./chunk-PHOCVOZ5.js";
|
|
11
8
|
import {
|
|
12
9
|
_DataTable,
|
|
13
10
|
useDataTable
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-YBZWO4ZV.js";
|
|
16
|
-
import "./chunk-KAZ5BYTQ.js";
|
|
17
|
-
import "./chunk-3EF54XFY.js";
|
|
18
|
-
import "./chunk-KBYZLKI4.js";
|
|
19
|
-
import "./chunk-YWWUOGJA.js";
|
|
11
|
+
} from "./chunk-ULJ3OMWU.js";
|
|
20
12
|
import {
|
|
21
13
|
SingleColumnPage
|
|
22
14
|
} from "./chunk-U2UCL2VG.js";
|
|
@@ -26,164 +18,45 @@ import {
|
|
|
26
18
|
import {
|
|
27
19
|
ActionMenu
|
|
28
20
|
} from "./chunk-BDGZ4EQO.js";
|
|
29
|
-
import "./chunk-LAVHRER2.js";
|
|
30
|
-
import "./chunk-Y7QKP6QU.js";
|
|
31
|
-
import "./chunk-THHRRYRS.js";
|
|
32
|
-
import "./chunk-UZWFZMOX.js";
|
|
33
|
-
import "./chunk-XQNVC4Q7.js";
|
|
34
|
-
import "./chunk-XM6GCWNF.js";
|
|
35
|
-
import "./chunk-ODBDAABQ.js";
|
|
36
|
-
import "./chunk-CDQJKJMX.js";
|
|
37
|
-
import "./chunk-JLATVDLM.js";
|
|
38
|
-
import "./chunk-GPRBBA7S.js";
|
|
39
|
-
import "./chunk-E7ZBQO6E.js";
|
|
40
|
-
import "./chunk-XGHM75N2.js";
|
|
41
|
-
import "./chunk-U2GCSKW3.js";
|
|
42
|
-
import "./chunk-RTAIDSDS.js";
|
|
43
21
|
import {
|
|
44
22
|
useCurrencies
|
|
45
23
|
} from "./chunk-LW3UWYZU.js";
|
|
46
|
-
import "./chunk-A4X5VP3G.js";
|
|
47
|
-
import "./chunk-NNZP4PYP.js";
|
|
48
|
-
import "./chunk-GF4QHVX3.js";
|
|
49
|
-
import "./chunk-JOQ3RTF5.js";
|
|
50
|
-
import "./chunk-V534K7G4.js";
|
|
51
|
-
import "./chunk-A5XOYSDC.js";
|
|
52
|
-
import "./chunk-TQI3DOQ5.js";
|
|
53
|
-
import "./chunk-5PB7KCTF.js";
|
|
54
|
-
import "./chunk-YOIARITB.js";
|
|
55
|
-
import "./chunk-W7G64ULL.js";
|
|
56
|
-
import "./chunk-6C7TCU42.js";
|
|
57
24
|
import {
|
|
58
25
|
useStockLocation
|
|
59
26
|
} from "./chunk-4YF3GAKE.js";
|
|
60
|
-
import "./chunk-M3I52H3M.js";
|
|
61
|
-
import {
|
|
62
|
-
useSalesChannel
|
|
63
|
-
} from "./chunk-LORVU5II.js";
|
|
64
|
-
import "./chunk-36ORDF7W.js";
|
|
65
27
|
import {
|
|
66
28
|
useRegion
|
|
67
29
|
} from "./chunk-QSM56ZOP.js";
|
|
68
30
|
import {
|
|
69
|
-
retrieveActiveStore,
|
|
70
|
-
storeQueryKeys,
|
|
71
31
|
useStore,
|
|
72
32
|
useUpdateStore
|
|
73
33
|
} from "./chunk-MIHEJ6Y6.js";
|
|
74
34
|
import {
|
|
75
35
|
usePricePreferences
|
|
76
36
|
} from "./chunk-3VZV6SJQ.js";
|
|
77
|
-
import "./chunk-K357FGGP.js";
|
|
78
37
|
import {
|
|
79
|
-
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import "./chunk-ZA2KFUFR.js";
|
|
82
|
-
import "./chunk-ZYNBKBY3.js";
|
|
83
|
-
import "./chunk-NBMM2TZK.js";
|
|
84
|
-
|
|
85
|
-
// src/pages/marketplace/marketplace-detail/loader.ts
|
|
86
|
-
var storeDetailQuery = () => ({
|
|
87
|
-
queryKey: storeQueryKeys.details(),
|
|
88
|
-
queryFn: async () => retrieveActiveStore()
|
|
89
|
-
});
|
|
90
|
-
var storeLoader = async () => {
|
|
91
|
-
const query = storeDetailQuery();
|
|
92
|
-
return queryClient.getQueryData(query.queryKey) ?? await queryClient.fetchQuery(query);
|
|
93
|
-
};
|
|
38
|
+
useSalesChannel
|
|
39
|
+
} from "./chunk-LORVU5II.js";
|
|
94
40
|
|
|
95
41
|
// src/pages/marketplace/marketplace-detail/marketplace-detail.tsx
|
|
42
|
+
import { Children } from "react";
|
|
96
43
|
import { useLoaderData } from "react-router-dom";
|
|
97
44
|
|
|
98
|
-
// src/pages/marketplace/marketplace-detail/components/marketplace-general-section/marketplace-general-section.tsx
|
|
99
|
-
import { PencilSquare } from "@medusajs/icons";
|
|
100
|
-
import { Badge, Container, Heading, Text } from "@medusajs/ui";
|
|
101
|
-
import { useTranslation } from "react-i18next";
|
|
102
|
-
import { Link } from "react-router-dom";
|
|
103
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
104
|
-
var MarketplaceGeneralSection = ({ store }) => {
|
|
105
|
-
const { t } = useTranslation();
|
|
106
|
-
const { region } = useRegion(store.default_region_id, void 0, {
|
|
107
|
-
enabled: !!store.default_region_id
|
|
108
|
-
});
|
|
109
|
-
const defaultCurrency = store.supported_currencies?.find((c) => c.is_default);
|
|
110
|
-
const { sales_channel } = useSalesChannel(store.default_sales_channel_id, {
|
|
111
|
-
enabled: !!store.default_sales_channel_id
|
|
112
|
-
});
|
|
113
|
-
const { stock_location } = useStockLocation(
|
|
114
|
-
store.default_location_id,
|
|
115
|
-
{
|
|
116
|
-
fields: "id,name"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
enabled: !!store.default_location_id
|
|
120
|
-
}
|
|
121
|
-
);
|
|
122
|
-
return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", "data-testid": "store-general-section-container", children: [
|
|
123
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "store-general-section-header", children: [
|
|
124
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
125
|
-
/* @__PURE__ */ jsx(Heading, { "data-testid": "store-general-section-heading", children: t("marketplace.domain") }),
|
|
126
|
-
/* @__PURE__ */ jsx(Text, { className: "text-ui-fg-subtle", size: "small", "data-testid": "store-general-section-subtitle", children: t("marketplace.manageMarketplaceDetails") })
|
|
127
|
-
] }),
|
|
128
|
-
/* @__PURE__ */ jsx(
|
|
129
|
-
ActionMenu,
|
|
130
|
-
{
|
|
131
|
-
groups: [
|
|
132
|
-
{
|
|
133
|
-
actions: [
|
|
134
|
-
{
|
|
135
|
-
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
136
|
-
label: t("actions.edit"),
|
|
137
|
-
to: "edit"
|
|
138
|
-
}
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
],
|
|
142
|
-
"data-testid": "store-general-section-action-menu"
|
|
143
|
-
}
|
|
144
|
-
)
|
|
145
|
-
] }),
|
|
146
|
-
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", "data-testid": "store-general-section-name", children: [
|
|
147
|
-
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "store-general-section-name-label", children: t("fields.name") }),
|
|
148
|
-
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", "data-testid": "store-general-section-name-value", children: store.name })
|
|
149
|
-
] }),
|
|
150
|
-
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", "data-testid": "store-general-section-currency", children: [
|
|
151
|
-
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "store-general-section-currency-label", children: t("store.defaultCurrency") }),
|
|
152
|
-
defaultCurrency ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2", "data-testid": "store-general-section-currency-value", children: [
|
|
153
|
-
/* @__PURE__ */ jsx(Badge, { size: "2xsmall", "data-testid": "store-general-section-currency-badge", children: defaultCurrency.currency_code?.toUpperCase() }),
|
|
154
|
-
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", "data-testid": "store-general-section-currency-name", children: defaultCurrency.currency?.name })
|
|
155
|
-
] }) : /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", "data-testid": "store-general-section-currency-value", children: "-" })
|
|
156
|
-
] }),
|
|
157
|
-
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", "data-testid": "store-general-section-region", children: [
|
|
158
|
-
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "store-general-section-region-label", children: t("store.defaultRegion") }),
|
|
159
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-x-2", "data-testid": "store-general-section-region-value", children: region ? /* @__PURE__ */ jsx(Badge, { size: "2xsmall", asChild: true, children: /* @__PURE__ */ jsx(Link, { to: `/settings/regions/${region.id}`, "data-testid": "store-general-section-region-link", children: region.name }) }) : /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: "-" }) })
|
|
160
|
-
] }),
|
|
161
|
-
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", "data-testid": "store-general-section-sales-channel", children: [
|
|
162
|
-
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "store-general-section-sales-channel-label", children: t("store.defaultSalesChannel") }),
|
|
163
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-x-2", "data-testid": "store-general-section-sales-channel-value", children: sales_channel ? /* @__PURE__ */ jsx(Badge, { size: "2xsmall", asChild: true, children: /* @__PURE__ */ jsx(Link, { to: `/settings/sales-channels/${sales_channel.id}`, "data-testid": "store-general-section-sales-channel-link", children: sales_channel.name }) }) : /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: "-" }) })
|
|
164
|
-
] }),
|
|
165
|
-
/* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", "data-testid": "store-general-section-location", children: [
|
|
166
|
-
/* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "store-general-section-location-label", children: t("store.defaultLocation") }),
|
|
167
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-x-2", "data-testid": "store-general-section-location-value", children: stock_location ? /* @__PURE__ */ jsx(Badge, { size: "2xsmall", asChild: true, children: /* @__PURE__ */ jsx(Link, { to: `/settings/locations/${stock_location.id}`, "data-testid": "store-general-section-location-link", children: stock_location.name }) }) : /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: "-" }) })
|
|
168
|
-
] })
|
|
169
|
-
] });
|
|
170
|
-
};
|
|
171
|
-
|
|
172
45
|
// src/pages/marketplace/marketplace-detail/components/marketplace-currency-section/marketplace-currency-section.tsx
|
|
173
46
|
import { CheckCircle, Plus, Trash, XCircle } from "@medusajs/icons";
|
|
174
47
|
import {
|
|
175
48
|
Checkbox,
|
|
176
49
|
CommandBar,
|
|
177
|
-
Container
|
|
178
|
-
Heading
|
|
50
|
+
Container,
|
|
51
|
+
Heading,
|
|
179
52
|
toast,
|
|
180
53
|
usePrompt
|
|
181
54
|
} from "@medusajs/ui";
|
|
182
55
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
183
56
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
184
57
|
import { useMemo, useState } from "react";
|
|
185
|
-
import { useTranslation
|
|
186
|
-
import { jsx
|
|
58
|
+
import { useTranslation } from "react-i18next";
|
|
59
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
187
60
|
var PAGE_SIZE = 10;
|
|
188
61
|
var MarketplaceCurrencySection = ({ store }) => {
|
|
189
62
|
const [rowSelection, setRowSelection] = useState({});
|
|
@@ -246,7 +119,7 @@ var MarketplaceCurrencySection = ({ store }) => {
|
|
|
246
119
|
}
|
|
247
120
|
});
|
|
248
121
|
const { mutateAsync } = useUpdateStore(store.id);
|
|
249
|
-
const { t } =
|
|
122
|
+
const { t } = useTranslation();
|
|
250
123
|
const prompt = usePrompt();
|
|
251
124
|
const handleDeleteCurrencies = async () => {
|
|
252
125
|
const ids = Object.keys(rowSelection);
|
|
@@ -285,17 +158,17 @@ var MarketplaceCurrencySection = ({ store }) => {
|
|
|
285
158
|
throw pricePreferencesError;
|
|
286
159
|
}
|
|
287
160
|
const isLoading = isCurrenciesPending || isPricePreferencesPending;
|
|
288
|
-
return /* @__PURE__ */
|
|
289
|
-
/* @__PURE__ */
|
|
290
|
-
/* @__PURE__ */
|
|
291
|
-
/* @__PURE__ */
|
|
161
|
+
return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", "data-testid": "store-currency-section-container", children: [
|
|
162
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "store-currency-section-header", children: [
|
|
163
|
+
/* @__PURE__ */ jsx(Heading, { level: "h2", "data-testid": "store-currency-section-heading", children: t("store.currencies") }),
|
|
164
|
+
/* @__PURE__ */ jsx(
|
|
292
165
|
ActionMenu,
|
|
293
166
|
{
|
|
294
167
|
groups: [
|
|
295
168
|
{
|
|
296
169
|
actions: [
|
|
297
170
|
{
|
|
298
|
-
icon: /* @__PURE__ */
|
|
171
|
+
icon: /* @__PURE__ */ jsx(Plus, {}),
|
|
299
172
|
label: t("actions.add"),
|
|
300
173
|
to: "currencies"
|
|
301
174
|
}
|
|
@@ -306,7 +179,7 @@ var MarketplaceCurrencySection = ({ store }) => {
|
|
|
306
179
|
}
|
|
307
180
|
)
|
|
308
181
|
] }),
|
|
309
|
-
/* @__PURE__ */
|
|
182
|
+
/* @__PURE__ */ jsx(
|
|
310
183
|
_DataTable,
|
|
311
184
|
{
|
|
312
185
|
orderBy: [
|
|
@@ -324,12 +197,12 @@ var MarketplaceCurrencySection = ({ store }) => {
|
|
|
324
197
|
"data-testid": "store-currency-section-table"
|
|
325
198
|
}
|
|
326
199
|
),
|
|
327
|
-
/* @__PURE__ */
|
|
328
|
-
/* @__PURE__ */
|
|
200
|
+
/* @__PURE__ */ jsx(CommandBar, { open: !!Object.keys(rowSelection).length, "data-testid": "store-currency-section-command-bar", children: /* @__PURE__ */ jsxs(CommandBar.Bar, { "data-testid": "store-currency-section-command-bar-bar", children: [
|
|
201
|
+
/* @__PURE__ */ jsx(CommandBar.Value, { "data-testid": "store-currency-section-command-bar-value", children: t("general.countSelected", {
|
|
329
202
|
count: Object.keys(rowSelection).length
|
|
330
203
|
}) }),
|
|
331
|
-
/* @__PURE__ */
|
|
332
|
-
/* @__PURE__ */
|
|
204
|
+
/* @__PURE__ */ jsx(CommandBar.Seperator, {}),
|
|
205
|
+
/* @__PURE__ */ jsx(
|
|
333
206
|
CommandBar.Command,
|
|
334
207
|
{
|
|
335
208
|
action: handleDeleteCurrencies,
|
|
@@ -349,7 +222,7 @@ var CurrencyActions = ({
|
|
|
349
222
|
preferencesMap
|
|
350
223
|
}) => {
|
|
351
224
|
const { mutateAsync } = useUpdateStore(storeId);
|
|
352
|
-
const { t } =
|
|
225
|
+
const { t } = useTranslation();
|
|
353
226
|
const prompt = usePrompt();
|
|
354
227
|
const handleRemove = async () => {
|
|
355
228
|
const result = await prompt({
|
|
@@ -402,14 +275,14 @@ var CurrencyActions = ({
|
|
|
402
275
|
}
|
|
403
276
|
);
|
|
404
277
|
};
|
|
405
|
-
return /* @__PURE__ */
|
|
278
|
+
return /* @__PURE__ */ jsx(
|
|
406
279
|
ActionMenu,
|
|
407
280
|
{
|
|
408
281
|
groups: [
|
|
409
282
|
{
|
|
410
283
|
actions: [
|
|
411
284
|
{
|
|
412
|
-
icon: preferencesMap.get(currency.code)?.is_tax_inclusive ? /* @__PURE__ */
|
|
285
|
+
icon: preferencesMap.get(currency.code)?.is_tax_inclusive ? /* @__PURE__ */ jsx(XCircle, {}) : /* @__PURE__ */ jsx(CheckCircle, {}),
|
|
413
286
|
label: preferencesMap.get(currency.code)?.is_tax_inclusive ? t("store.disableTaxInclusivePricing") : t("store.enableTaxInclusivePricing"),
|
|
414
287
|
onClick: handleToggleTaxInclusivity
|
|
415
288
|
}
|
|
@@ -418,7 +291,7 @@ var CurrencyActions = ({
|
|
|
418
291
|
{
|
|
419
292
|
actions: [
|
|
420
293
|
{
|
|
421
|
-
icon: /* @__PURE__ */
|
|
294
|
+
icon: /* @__PURE__ */ jsx(Trash, {}),
|
|
422
295
|
label: t("actions.remove"),
|
|
423
296
|
onClick: handleRemove,
|
|
424
297
|
disabled: currency.code === defaultCurrencyCode
|
|
@@ -433,13 +306,13 @@ var CurrencyActions = ({
|
|
|
433
306
|
var columnHelper = createColumnHelper();
|
|
434
307
|
var useColumns = () => {
|
|
435
308
|
const base = useCurrenciesTableColumns();
|
|
436
|
-
const { t } =
|
|
309
|
+
const { t } = useTranslation();
|
|
437
310
|
return useMemo(
|
|
438
311
|
() => [
|
|
439
312
|
columnHelper.display({
|
|
440
313
|
id: "select",
|
|
441
314
|
header: ({ table }) => {
|
|
442
|
-
return /* @__PURE__ */
|
|
315
|
+
return /* @__PURE__ */ jsx(
|
|
443
316
|
Checkbox,
|
|
444
317
|
{
|
|
445
318
|
checked: table.getIsSomePageRowsSelected() ? "indeterminate" : table.getIsAllPageRowsSelected(),
|
|
@@ -449,7 +322,7 @@ var useColumns = () => {
|
|
|
449
322
|
);
|
|
450
323
|
},
|
|
451
324
|
cell: ({ row }) => {
|
|
452
|
-
return /* @__PURE__ */
|
|
325
|
+
return /* @__PURE__ */ jsx(
|
|
453
326
|
Checkbox,
|
|
454
327
|
{
|
|
455
328
|
checked: row.getIsSelected(),
|
|
@@ -467,7 +340,7 @@ var useColumns = () => {
|
|
|
467
340
|
header: t("fields.taxInclusivePricing"),
|
|
468
341
|
cell: ({ getValue }) => {
|
|
469
342
|
const isTaxInclusive = getValue();
|
|
470
|
-
return /* @__PURE__ */
|
|
343
|
+
return /* @__PURE__ */ jsx(StatusCell, { color: isTaxInclusive ? "green" : "grey", children: isTaxInclusive ? t("fields.true") : t("fields.false") });
|
|
471
344
|
}
|
|
472
345
|
}),
|
|
473
346
|
columnHelper.display({
|
|
@@ -479,7 +352,7 @@ var useColumns = () => {
|
|
|
479
352
|
defaultCurrencyCode,
|
|
480
353
|
preferencesMap
|
|
481
354
|
} = table.options.meta;
|
|
482
|
-
return /* @__PURE__ */
|
|
355
|
+
return /* @__PURE__ */ jsx(
|
|
483
356
|
CurrencyActions,
|
|
484
357
|
{
|
|
485
358
|
storeId,
|
|
@@ -496,9 +369,83 @@ var useColumns = () => {
|
|
|
496
369
|
);
|
|
497
370
|
};
|
|
498
371
|
|
|
372
|
+
// src/pages/marketplace/marketplace-detail/components/marketplace-general-section/marketplace-general-section.tsx
|
|
373
|
+
import { PencilSquare } from "@medusajs/icons";
|
|
374
|
+
import { Badge, Container as Container2, Heading as Heading2, Text } from "@medusajs/ui";
|
|
375
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
376
|
+
import { Link } from "react-router-dom";
|
|
377
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
378
|
+
var MarketplaceGeneralSection = ({ store }) => {
|
|
379
|
+
const { t } = useTranslation2();
|
|
380
|
+
const { region } = useRegion(store.default_region_id, void 0, {
|
|
381
|
+
enabled: !!store.default_region_id
|
|
382
|
+
});
|
|
383
|
+
const defaultCurrency = store.supported_currencies?.find((c) => c.is_default);
|
|
384
|
+
const { sales_channel } = useSalesChannel(store.default_sales_channel_id, {
|
|
385
|
+
enabled: !!store.default_sales_channel_id
|
|
386
|
+
});
|
|
387
|
+
const { stock_location } = useStockLocation(
|
|
388
|
+
store.default_location_id,
|
|
389
|
+
{
|
|
390
|
+
fields: "id,name"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
enabled: !!store.default_location_id
|
|
394
|
+
}
|
|
395
|
+
);
|
|
396
|
+
return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", "data-testid": "store-general-section-container", children: [
|
|
397
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "store-general-section-header", children: [
|
|
398
|
+
/* @__PURE__ */ jsxs2("div", { children: [
|
|
399
|
+
/* @__PURE__ */ jsx2(Heading2, { "data-testid": "store-general-section-heading", children: t("marketplace.domain") }),
|
|
400
|
+
/* @__PURE__ */ jsx2(Text, { className: "text-ui-fg-subtle", size: "small", "data-testid": "store-general-section-subtitle", children: t("marketplace.manageMarketplaceDetails") })
|
|
401
|
+
] }),
|
|
402
|
+
/* @__PURE__ */ jsx2(
|
|
403
|
+
ActionMenu,
|
|
404
|
+
{
|
|
405
|
+
groups: [
|
|
406
|
+
{
|
|
407
|
+
actions: [
|
|
408
|
+
{
|
|
409
|
+
icon: /* @__PURE__ */ jsx2(PencilSquare, {}),
|
|
410
|
+
label: t("actions.edit"),
|
|
411
|
+
to: "edit"
|
|
412
|
+
}
|
|
413
|
+
]
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"data-testid": "store-general-section-action-menu"
|
|
417
|
+
}
|
|
418
|
+
)
|
|
419
|
+
] }),
|
|
420
|
+
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", "data-testid": "store-general-section-name", children: [
|
|
421
|
+
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "store-general-section-name-label", children: t("fields.name") }),
|
|
422
|
+
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", "data-testid": "store-general-section-name-value", children: store.name })
|
|
423
|
+
] }),
|
|
424
|
+
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", "data-testid": "store-general-section-currency", children: [
|
|
425
|
+
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "store-general-section-currency-label", children: t("store.defaultCurrency") }),
|
|
426
|
+
defaultCurrency ? /* @__PURE__ */ jsxs2("div", { className: "flex items-center gap-x-2", "data-testid": "store-general-section-currency-value", children: [
|
|
427
|
+
/* @__PURE__ */ jsx2(Badge, { size: "2xsmall", "data-testid": "store-general-section-currency-badge", children: defaultCurrency.currency_code?.toUpperCase() }),
|
|
428
|
+
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", "data-testid": "store-general-section-currency-name", children: defaultCurrency.currency?.name })
|
|
429
|
+
] }) : /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", "data-testid": "store-general-section-currency-value", children: "-" })
|
|
430
|
+
] }),
|
|
431
|
+
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", "data-testid": "store-general-section-region", children: [
|
|
432
|
+
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "store-general-section-region-label", children: t("store.defaultRegion") }),
|
|
433
|
+
/* @__PURE__ */ jsx2("div", { className: "flex items-center gap-x-2", "data-testid": "store-general-section-region-value", children: region ? /* @__PURE__ */ jsx2(Badge, { size: "2xsmall", asChild: true, children: /* @__PURE__ */ jsx2(Link, { to: `/settings/regions/${region.id}`, "data-testid": "store-general-section-region-link", children: region.name }) }) : /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: "-" }) })
|
|
434
|
+
] }),
|
|
435
|
+
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", "data-testid": "store-general-section-sales-channel", children: [
|
|
436
|
+
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "store-general-section-sales-channel-label", children: t("store.defaultSalesChannel") }),
|
|
437
|
+
/* @__PURE__ */ jsx2("div", { className: "flex items-center gap-x-2", "data-testid": "store-general-section-sales-channel-value", children: sales_channel ? /* @__PURE__ */ jsx2(Badge, { size: "2xsmall", asChild: true, children: /* @__PURE__ */ jsx2(Link, { to: `/settings/sales-channels/${sales_channel.id}`, "data-testid": "store-general-section-sales-channel-link", children: sales_channel.name }) }) : /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: "-" }) })
|
|
438
|
+
] }),
|
|
439
|
+
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 px-6 py-4", "data-testid": "store-general-section-location", children: [
|
|
440
|
+
/* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", "data-testid": "store-general-section-location-label", children: t("store.defaultLocation") }),
|
|
441
|
+
/* @__PURE__ */ jsx2("div", { className: "flex items-center gap-x-2", "data-testid": "store-general-section-location-value", children: stock_location ? /* @__PURE__ */ jsx2(Badge, { size: "2xsmall", asChild: true, children: /* @__PURE__ */ jsx2(Link, { to: `/settings/locations/${stock_location.id}`, "data-testid": "store-general-section-location-link", children: stock_location.name }) }) : /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: "-" }) })
|
|
442
|
+
] })
|
|
443
|
+
] });
|
|
444
|
+
};
|
|
445
|
+
|
|
499
446
|
// src/pages/marketplace/marketplace-detail/marketplace-detail.tsx
|
|
500
|
-
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
501
|
-
var
|
|
447
|
+
import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
448
|
+
var Root = ({ children }) => {
|
|
502
449
|
const initialData = useLoaderData();
|
|
503
450
|
const { store, isPending, isError, error } = useStore(void 0, {
|
|
504
451
|
initialData
|
|
@@ -509,21 +456,16 @@ var MarketplaceDetail = () => {
|
|
|
509
456
|
if (isError) {
|
|
510
457
|
throw error;
|
|
511
458
|
}
|
|
512
|
-
return /* @__PURE__ */ jsxs3(
|
|
513
|
-
|
|
514
|
-
{
|
|
515
|
-
|
|
516
|
-
hasOutlet: true,
|
|
517
|
-
showMetadata: true,
|
|
518
|
-
showJSON: true,
|
|
519
|
-
children: [
|
|
520
|
-
/* @__PURE__ */ jsx3(MarketplaceGeneralSection, { store }),
|
|
521
|
-
/* @__PURE__ */ jsx3(MarketplaceCurrencySection, { store })
|
|
522
|
-
]
|
|
523
|
-
}
|
|
524
|
-
);
|
|
459
|
+
return /* @__PURE__ */ jsx3(SingleColumnPage, { data: store, hasOutlet: true, showMetadata: true, showJSON: true, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
460
|
+
/* @__PURE__ */ jsx3(MarketplaceGeneralSection, { store }),
|
|
461
|
+
/* @__PURE__ */ jsx3(MarketplaceCurrencySection, { store })
|
|
462
|
+
] }) });
|
|
525
463
|
};
|
|
464
|
+
var MarketplaceDetail = Object.assign(Root, {
|
|
465
|
+
GeneralSection: MarketplaceGeneralSection,
|
|
466
|
+
CurrencySection: MarketplaceCurrencySection
|
|
467
|
+
});
|
|
468
|
+
|
|
526
469
|
export {
|
|
527
|
-
MarketplaceDetail
|
|
528
|
-
storeLoader as loader
|
|
470
|
+
MarketplaceDetail
|
|
529
471
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CreateCampaignFormFields
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DEKJJ7NG.js";
|
|
4
4
|
import {
|
|
5
5
|
useComboboxData
|
|
6
6
|
} from "./chunk-AEFDAU3Y.js";
|
|
@@ -10,6 +10,9 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
KeyboundForm
|
|
12
12
|
} from "./chunk-U2ZFCAPX.js";
|
|
13
|
+
import {
|
|
14
|
+
useDocumentDirection
|
|
15
|
+
} from "./chunk-Y7QKP6QU.js";
|
|
13
16
|
import {
|
|
14
17
|
RouteDrawer,
|
|
15
18
|
useRouteModal
|
|
@@ -17,9 +20,6 @@ import {
|
|
|
17
20
|
import {
|
|
18
21
|
Form
|
|
19
22
|
} from "./chunk-3QSRE5LS.js";
|
|
20
|
-
import {
|
|
21
|
-
useDocumentDirection
|
|
22
|
-
} from "./chunk-Y7QKP6QU.js";
|
|
23
23
|
import {
|
|
24
24
|
useCampaign,
|
|
25
25
|
useUpdatePromotion
|