@mercurjs/admin 2.0.0-canary.34 → 2.0.0-canary.36
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 +3 -3
- 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
|
@@ -1,128 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DateRangeDisplay
|
|
3
|
-
} from "./chunk-RK5N3XIX.js";
|
|
4
1
|
import {
|
|
5
2
|
usePromotionTableColumns,
|
|
6
3
|
usePromotionTableQuery
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
import "./chunk-DB6ANJBO.js";
|
|
12
|
-
import "./chunk-FQERBIVS.js";
|
|
13
|
-
import "./chunk-PHOCVOZ5.js";
|
|
4
|
+
} from "./chunk-V2DXJ75C.js";
|
|
5
|
+
import {
|
|
6
|
+
DateRangeDisplay
|
|
7
|
+
} from "./chunk-RK5N3XIX.js";
|
|
14
8
|
import {
|
|
15
9
|
_DataTable,
|
|
16
10
|
useDataTable
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-YBZWO4ZV.js";
|
|
19
|
-
import "./chunk-KAZ5BYTQ.js";
|
|
20
|
-
import "./chunk-3EF54XFY.js";
|
|
21
|
-
import {
|
|
22
|
-
currencies
|
|
23
|
-
} from "./chunk-IQPN4PZJ.js";
|
|
24
|
-
import "./chunk-F5PEK3DA.js";
|
|
25
|
-
import {
|
|
26
|
-
usePromotionTableFilters
|
|
27
|
-
} from "./chunk-S2WEYEQR.js";
|
|
28
|
-
import "./chunk-KBYZLKI4.js";
|
|
29
|
-
import "./chunk-YWWUOGJA.js";
|
|
11
|
+
} from "./chunk-ULJ3OMWU.js";
|
|
30
12
|
import {
|
|
31
13
|
TwoColumnPage
|
|
32
14
|
} from "./chunk-U2UCL2VG.js";
|
|
15
|
+
import {
|
|
16
|
+
currencies
|
|
17
|
+
} from "./chunk-IQPN4PZJ.js";
|
|
33
18
|
import {
|
|
34
19
|
TwoColumnPageSkeleton
|
|
35
20
|
} from "./chunk-INNFZYX2.js";
|
|
36
21
|
import {
|
|
37
22
|
ActionMenu
|
|
38
23
|
} from "./chunk-BDGZ4EQO.js";
|
|
39
|
-
import "./chunk-LAVHRER2.js";
|
|
40
|
-
import "./chunk-Y7QKP6QU.js";
|
|
41
|
-
import "./chunk-THHRRYRS.js";
|
|
42
|
-
import "./chunk-UZWFZMOX.js";
|
|
43
|
-
import "./chunk-XQNVC4Q7.js";
|
|
44
|
-
import "./chunk-XM6GCWNF.js";
|
|
45
|
-
import "./chunk-ODBDAABQ.js";
|
|
46
|
-
import "./chunk-CDQJKJMX.js";
|
|
47
|
-
import "./chunk-JLATVDLM.js";
|
|
48
|
-
import "./chunk-GPRBBA7S.js";
|
|
49
|
-
import "./chunk-E7ZBQO6E.js";
|
|
50
|
-
import "./chunk-XGHM75N2.js";
|
|
51
|
-
import "./chunk-U2GCSKW3.js";
|
|
52
|
-
import "./chunk-RTAIDSDS.js";
|
|
53
|
-
import "./chunk-LW3UWYZU.js";
|
|
54
|
-
import "./chunk-A4X5VP3G.js";
|
|
55
|
-
import "./chunk-NNZP4PYP.js";
|
|
56
|
-
import "./chunk-GF4QHVX3.js";
|
|
57
|
-
import "./chunk-JOQ3RTF5.js";
|
|
58
|
-
import "./chunk-V534K7G4.js";
|
|
59
|
-
import "./chunk-A5XOYSDC.js";
|
|
60
|
-
import "./chunk-TQI3DOQ5.js";
|
|
61
24
|
import {
|
|
62
|
-
|
|
25
|
+
usePromotionTableFilters
|
|
26
|
+
} from "./chunk-S2WEYEQR.js";
|
|
27
|
+
import {
|
|
63
28
|
useAddOrRemoveCampaignPromotions,
|
|
64
29
|
useCampaign,
|
|
65
30
|
useDeleteCampaign,
|
|
66
31
|
usePromotions
|
|
67
32
|
} from "./chunk-5PB7KCTF.js";
|
|
68
|
-
import "./chunk-YOIARITB.js";
|
|
69
|
-
import "./chunk-W7G64ULL.js";
|
|
70
|
-
import "./chunk-6C7TCU42.js";
|
|
71
|
-
import "./chunk-4YF3GAKE.js";
|
|
72
|
-
import "./chunk-M3I52H3M.js";
|
|
73
|
-
import "./chunk-LORVU5II.js";
|
|
74
|
-
import "./chunk-36ORDF7W.js";
|
|
75
|
-
import "./chunk-QSM56ZOP.js";
|
|
76
|
-
import "./chunk-MIHEJ6Y6.js";
|
|
77
|
-
import "./chunk-3VZV6SJQ.js";
|
|
78
|
-
import "./chunk-K357FGGP.js";
|
|
79
|
-
import {
|
|
80
|
-
queryClient
|
|
81
|
-
} from "./chunk-RHKRREUU.js";
|
|
82
|
-
import "./chunk-ZA2KFUFR.js";
|
|
83
|
-
import {
|
|
84
|
-
sdk
|
|
85
|
-
} from "./chunk-ZYNBKBY3.js";
|
|
86
|
-
import "./chunk-NBMM2TZK.js";
|
|
87
|
-
|
|
88
|
-
// src/pages/campaigns/campaign-detail/constants.ts
|
|
89
|
-
var CAMPAIGN_DETAIL_FIELDS = "+promotions.id";
|
|
90
|
-
|
|
91
|
-
// src/pages/campaigns/campaign-detail/breadcrumb.tsx
|
|
92
|
-
import { jsx } from "react/jsx-runtime";
|
|
93
|
-
var CampaignDetailBreadcrumb = (props) => {
|
|
94
|
-
const { id } = props.params || {};
|
|
95
|
-
const { campaign } = useCampaign(
|
|
96
|
-
id,
|
|
97
|
-
{
|
|
98
|
-
fields: CAMPAIGN_DETAIL_FIELDS
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
initialData: props.data,
|
|
102
|
-
enabled: Boolean(id)
|
|
103
|
-
}
|
|
104
|
-
);
|
|
105
|
-
if (!campaign) {
|
|
106
|
-
return null;
|
|
107
|
-
}
|
|
108
|
-
return /* @__PURE__ */ jsx("span", { children: campaign.name });
|
|
109
|
-
};
|
|
110
33
|
|
|
111
34
|
// src/pages/campaigns/campaign-detail/campaign-detail.tsx
|
|
35
|
+
import { Children } from "react";
|
|
112
36
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
113
37
|
|
|
114
38
|
// src/pages/campaigns/campaign-detail/components/campaign-budget/campaign-budget.tsx
|
|
115
39
|
import { ChartPie, PencilSquare } from "@medusajs/icons";
|
|
116
40
|
import { Container, Heading, Text } from "@medusajs/ui";
|
|
117
41
|
import { Trans, useTranslation } from "react-i18next";
|
|
118
|
-
import { jsx
|
|
42
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
119
43
|
var CampaignBudget = ({ campaign }) => {
|
|
120
44
|
const { t } = useTranslation();
|
|
121
45
|
return /* @__PURE__ */ jsxs(Container, { className: "flex flex-col gap-y-4 px-6 py-4", "data-testid": "campaign-budget-container", children: [
|
|
122
46
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between", "data-testid": "campaign-budget-header", children: [
|
|
123
47
|
/* @__PURE__ */ jsxs("div", { className: "flex-grow", children: [
|
|
124
|
-
/* @__PURE__ */
|
|
125
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ jsx("div", { className: "bg-ui-bg-base shadow-borders-base float-start flex size-7 items-center justify-center rounded-md", "data-testid": "campaign-budget-icon-container", children: /* @__PURE__ */ jsx("div", { className: "bg-ui-bg-component flex size-6 items-center justify-center rounded-[4px]", children: /* @__PURE__ */ jsx(ChartPie, { className: "text-ui-fg-subtle" }) }) }),
|
|
49
|
+
/* @__PURE__ */ jsx(
|
|
126
50
|
Heading,
|
|
127
51
|
{
|
|
128
52
|
className: "text-ui-fg-subtle ms-10 mt-[1.5px] font-normal",
|
|
@@ -134,14 +58,14 @@ var CampaignBudget = ({ campaign }) => {
|
|
|
134
58
|
}
|
|
135
59
|
)
|
|
136
60
|
] }),
|
|
137
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ jsx(
|
|
138
62
|
ActionMenu,
|
|
139
63
|
{
|
|
140
64
|
groups: [
|
|
141
65
|
{
|
|
142
66
|
actions: [
|
|
143
67
|
{
|
|
144
|
-
icon: /* @__PURE__ */
|
|
68
|
+
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
145
69
|
label: t("actions.edit"),
|
|
146
70
|
to: `edit-budget`
|
|
147
71
|
}
|
|
@@ -152,14 +76,14 @@ var CampaignBudget = ({ campaign }) => {
|
|
|
152
76
|
}
|
|
153
77
|
)
|
|
154
78
|
] }),
|
|
155
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ jsx("div", { "data-testid": "campaign-budget-limit", children: /* @__PURE__ */ jsx(
|
|
156
80
|
Text,
|
|
157
81
|
{
|
|
158
82
|
className: "text-ui-fg-subtle border-ui-border-strong border-l-4 ps-3",
|
|
159
83
|
size: "small",
|
|
160
84
|
leading: "compact",
|
|
161
85
|
"data-testid": "campaign-budget-limit-text",
|
|
162
|
-
children: /* @__PURE__ */
|
|
86
|
+
children: /* @__PURE__ */ jsx(
|
|
163
87
|
Trans,
|
|
164
88
|
{
|
|
165
89
|
i18nKey: "campaigns.totalSpend",
|
|
@@ -168,7 +92,7 @@ var CampaignBudget = ({ campaign }) => {
|
|
|
168
92
|
currency: campaign?.budget?.type === "spend" && campaign?.budget.limit ? campaign.budget?.currency_code : ""
|
|
169
93
|
},
|
|
170
94
|
components: [
|
|
171
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ jsx(
|
|
172
96
|
"span",
|
|
173
97
|
{
|
|
174
98
|
className: "text-ui-fg-base txt-compact-medium-plus text-lg",
|
|
@@ -176,7 +100,7 @@ var CampaignBudget = ({ campaign }) => {
|
|
|
176
100
|
},
|
|
177
101
|
"amount"
|
|
178
102
|
),
|
|
179
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ jsx(
|
|
180
104
|
"span",
|
|
181
105
|
{
|
|
182
106
|
className: "text-ui-fg-base txt-compact-medium-plus text-lg",
|
|
@@ -192,18 +116,60 @@ var CampaignBudget = ({ campaign }) => {
|
|
|
192
116
|
] });
|
|
193
117
|
};
|
|
194
118
|
|
|
119
|
+
// src/pages/campaigns/campaign-detail/components/campaign-configuration-section/campaign-configuration-section.tsx
|
|
120
|
+
import { Container as Container2, Heading as Heading2 } from "@medusajs/ui";
|
|
121
|
+
import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
|
|
122
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
123
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
124
|
+
var CampaignConfigurationSection = ({
|
|
125
|
+
campaign
|
|
126
|
+
}) => {
|
|
127
|
+
const { t } = useTranslation2();
|
|
128
|
+
return /* @__PURE__ */ jsxs2(Container2, { className: "flex flex-col gap-y-4", "data-testid": "campaign-configuration-section-container", children: [
|
|
129
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between", "data-testid": "campaign-configuration-section-header", children: [
|
|
130
|
+
/* @__PURE__ */ jsx2(Heading2, { level: "h2", "data-testid": "campaign-configuration-section-heading", children: t("campaigns.configuration.header") }),
|
|
131
|
+
/* @__PURE__ */ jsx2(
|
|
132
|
+
ActionMenu,
|
|
133
|
+
{
|
|
134
|
+
groups: [
|
|
135
|
+
{
|
|
136
|
+
actions: [
|
|
137
|
+
{
|
|
138
|
+
label: t("actions.edit"),
|
|
139
|
+
icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
|
|
140
|
+
to: "configuration"
|
|
141
|
+
}
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"data-testid": "campaign-configuration-section-action-menu"
|
|
146
|
+
}
|
|
147
|
+
)
|
|
148
|
+
] }),
|
|
149
|
+
/* @__PURE__ */ jsx2(
|
|
150
|
+
DateRangeDisplay,
|
|
151
|
+
{
|
|
152
|
+
startsAt: campaign.starts_at,
|
|
153
|
+
endsAt: campaign.ends_at,
|
|
154
|
+
showTime: true,
|
|
155
|
+
"data-testid": "campaign-configuration-section-date-range"
|
|
156
|
+
}
|
|
157
|
+
)
|
|
158
|
+
] });
|
|
159
|
+
};
|
|
160
|
+
|
|
195
161
|
// src/pages/campaigns/campaign-detail/components/campaign-general-section/campaign-general-section.tsx
|
|
196
|
-
import { PencilSquare as
|
|
162
|
+
import { PencilSquare as PencilSquare3, Trash } from "@medusajs/icons";
|
|
197
163
|
import {
|
|
198
164
|
Badge,
|
|
199
|
-
Container as
|
|
200
|
-
Heading as
|
|
165
|
+
Container as Container3,
|
|
166
|
+
Heading as Heading3,
|
|
201
167
|
StatusBadge,
|
|
202
168
|
Text as Text2,
|
|
203
169
|
toast,
|
|
204
170
|
usePrompt
|
|
205
171
|
} from "@medusajs/ui";
|
|
206
|
-
import { useTranslation as
|
|
172
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
207
173
|
import { useNavigate } from "react-router-dom";
|
|
208
174
|
|
|
209
175
|
// src/pages/campaigns/common/utils/campaign-status.ts
|
|
@@ -235,11 +201,11 @@ var statusColor = (status) => {
|
|
|
235
201
|
};
|
|
236
202
|
|
|
237
203
|
// src/pages/campaigns/campaign-detail/components/campaign-general-section/campaign-general-section.tsx
|
|
238
|
-
import { jsx as jsx3, jsxs as
|
|
204
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
239
205
|
var CampaignGeneralSection = ({
|
|
240
206
|
campaign
|
|
241
207
|
}) => {
|
|
242
|
-
const { t } =
|
|
208
|
+
const { t } = useTranslation3();
|
|
243
209
|
const prompt = usePrompt();
|
|
244
210
|
const navigate = useNavigate();
|
|
245
211
|
const { mutateAsync } = useDeleteCampaign(campaign.id);
|
|
@@ -270,10 +236,10 @@ var CampaignGeneralSection = ({
|
|
|
270
236
|
});
|
|
271
237
|
};
|
|
272
238
|
const status = campaignStatus(campaign);
|
|
273
|
-
return /* @__PURE__ */
|
|
274
|
-
/* @__PURE__ */
|
|
275
|
-
/* @__PURE__ */ jsx3(
|
|
276
|
-
/* @__PURE__ */
|
|
239
|
+
return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", "data-testid": "campaign-general-section-container", children: [
|
|
240
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "campaign-general-section-header", children: [
|
|
241
|
+
/* @__PURE__ */ jsx3(Heading3, { "data-testid": "campaign-general-section-name", children: campaign.name }),
|
|
242
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-4", children: [
|
|
277
243
|
/* @__PURE__ */ jsx3(StatusBadge, { color: statusColor(status), "data-testid": "campaign-general-section-status", children: t(`campaigns.status.${status}`) }),
|
|
278
244
|
/* @__PURE__ */ jsx3(
|
|
279
245
|
ActionMenu,
|
|
@@ -282,7 +248,7 @@ var CampaignGeneralSection = ({
|
|
|
282
248
|
{
|
|
283
249
|
actions: [
|
|
284
250
|
{
|
|
285
|
-
icon: /* @__PURE__ */ jsx3(
|
|
251
|
+
icon: /* @__PURE__ */ jsx3(PencilSquare3, {}),
|
|
286
252
|
label: t("actions.edit"),
|
|
287
253
|
to: `/campaigns/${campaign.id}/edit`
|
|
288
254
|
}
|
|
@@ -303,17 +269,17 @@ var CampaignGeneralSection = ({
|
|
|
303
269
|
)
|
|
304
270
|
] })
|
|
305
271
|
] }),
|
|
306
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "campaign-general-section-identifier", children: [
|
|
307
273
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", "data-testid": "campaign-general-section-identifier-label", children: t("campaigns.fields.identifier") }),
|
|
308
274
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", "data-testid": "campaign-general-section-identifier-value", children: campaign.campaign_identifier })
|
|
309
275
|
] }),
|
|
310
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "campaign-general-section-description", children: [
|
|
311
277
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", "data-testid": "campaign-general-section-description-label", children: t("fields.description") }),
|
|
312
278
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", "data-testid": "campaign-general-section-description-value", children: campaign.description || "-" })
|
|
313
279
|
] }),
|
|
314
|
-
campaign?.budget && campaign.budget.type === "spend" && /* @__PURE__ */
|
|
280
|
+
campaign?.budget && campaign.budget.type === "spend" && /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", "data-testid": "campaign-general-section-currency", children: [
|
|
315
281
|
/* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", "data-testid": "campaign-general-section-currency-label", children: t("fields.currency") }),
|
|
316
|
-
/* @__PURE__ */
|
|
282
|
+
/* @__PURE__ */ jsxs3("div", { "data-testid": "campaign-general-section-currency-value", children: [
|
|
317
283
|
/* @__PURE__ */ jsx3(Badge, { size: "xsmall", "data-testid": "campaign-general-section-currency-badge", children: campaign?.budget.currency_code }),
|
|
318
284
|
/* @__PURE__ */ jsx3(Text2, { className: "inline pl-3", size: "small", leading: "compact", "data-testid": "campaign-general-section-currency-name", children: currencies[campaign?.budget.currency_code?.toUpperCase()]?.name })
|
|
319
285
|
] })
|
|
@@ -322,19 +288,19 @@ var CampaignGeneralSection = ({
|
|
|
322
288
|
};
|
|
323
289
|
|
|
324
290
|
// src/pages/campaigns/campaign-detail/components/campaign-promotion-section/campaign-promotion-section.tsx
|
|
325
|
-
import { PencilSquare as
|
|
326
|
-
import { Button, Checkbox, Container as
|
|
291
|
+
import { PencilSquare as PencilSquare4, Trash as Trash2 } from "@medusajs/icons";
|
|
292
|
+
import { Button, Checkbox, Container as Container4, Heading as Heading4, usePrompt as usePrompt2 } from "@medusajs/ui";
|
|
327
293
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
328
294
|
import { useMemo, useState } from "react";
|
|
329
|
-
import { useTranslation as
|
|
295
|
+
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
330
296
|
import { Link } from "react-router-dom";
|
|
331
|
-
import { jsx as jsx4, jsxs as
|
|
297
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
332
298
|
var PAGE_SIZE = 10;
|
|
333
299
|
var CampaignPromotionSection = ({
|
|
334
300
|
campaign
|
|
335
301
|
}) => {
|
|
336
302
|
const [rowSelection, setRowSelection] = useState({});
|
|
337
|
-
const { t } =
|
|
303
|
+
const { t } = useTranslation4();
|
|
338
304
|
const prompt = usePrompt2();
|
|
339
305
|
const columns = useColumns();
|
|
340
306
|
const filters = usePromotionTableFilters();
|
|
@@ -379,9 +345,9 @@ var CampaignPromotionSection = ({
|
|
|
379
345
|
{ onSuccess: () => setRowSelection({}) }
|
|
380
346
|
);
|
|
381
347
|
};
|
|
382
|
-
return /* @__PURE__ */
|
|
383
|
-
/* @__PURE__ */
|
|
384
|
-
/* @__PURE__ */ jsx4(
|
|
348
|
+
return /* @__PURE__ */ jsxs4(Container4, { className: "divide-y p-0", "data-testid": "campaign-promotion-section-container", children: [
|
|
349
|
+
/* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "campaign-promotion-section-header", children: [
|
|
350
|
+
/* @__PURE__ */ jsx4(Heading4, { level: "h2", "data-testid": "campaign-promotion-section-heading", children: t("promotions.domain") }),
|
|
385
351
|
/* @__PURE__ */ jsx4(Link, { to: `/campaigns/${campaign.id}/add-promotions`, children: /* @__PURE__ */ jsx4(Button, { variant: "secondary", size: "small", "data-testid": "campaign-promotion-section-add-button", children: t("general.add") }) })
|
|
386
352
|
] }),
|
|
387
353
|
/* @__PURE__ */ jsx4(
|
|
@@ -422,7 +388,7 @@ var PromotionActions = ({
|
|
|
422
388
|
promotion,
|
|
423
389
|
campaignId
|
|
424
390
|
}) => {
|
|
425
|
-
const { t } =
|
|
391
|
+
const { t } = useTranslation4();
|
|
426
392
|
const { mutateAsync } = useAddOrRemoveCampaignPromotions(campaignId);
|
|
427
393
|
const prompt = usePrompt2();
|
|
428
394
|
const handleRemove = async () => {
|
|
@@ -450,7 +416,7 @@ var PromotionActions = ({
|
|
|
450
416
|
{
|
|
451
417
|
actions: [
|
|
452
418
|
{
|
|
453
|
-
icon: /* @__PURE__ */ jsx4(
|
|
419
|
+
icon: /* @__PURE__ */ jsx4(PencilSquare4, {}),
|
|
454
420
|
label: t("actions.edit"),
|
|
455
421
|
to: `/promotions/${promotion.id}/edit`
|
|
456
422
|
}
|
|
@@ -522,15 +488,15 @@ var useColumns = () => {
|
|
|
522
488
|
|
|
523
489
|
// src/pages/campaigns/campaign-detail/components/campaign-spend/campaign-spend.tsx
|
|
524
490
|
import { CurrencyDollar } from "@medusajs/icons";
|
|
525
|
-
import { Container as
|
|
526
|
-
import { Trans as Trans2, useTranslation as
|
|
527
|
-
import { jsx as jsx5, jsxs as
|
|
491
|
+
import { Container as Container5, Heading as Heading5, Text as Text3 } from "@medusajs/ui";
|
|
492
|
+
import { Trans as Trans2, useTranslation as useTranslation5 } from "react-i18next";
|
|
493
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
528
494
|
var CampaignSpend = ({ campaign }) => {
|
|
529
|
-
const { t } =
|
|
530
|
-
return /* @__PURE__ */
|
|
531
|
-
/* @__PURE__ */
|
|
495
|
+
const { t } = useTranslation5();
|
|
496
|
+
return /* @__PURE__ */ jsxs5(Container5, { className: "flex flex-col gap-y-4 px-6 py-4", "data-testid": "campaign-spend-container", children: [
|
|
497
|
+
/* @__PURE__ */ jsxs5("div", { className: "mb-2 grid grid-cols-[28px_1fr] items-center gap-x-3", "data-testid": "campaign-spend-header", children: [
|
|
532
498
|
/* @__PURE__ */ jsx5("div", { className: "bg-ui-bg-base shadow-borders-base flex size-7 items-center justify-center rounded-md", "data-testid": "campaign-spend-icon-container", children: /* @__PURE__ */ jsx5("div", { className: "bg-ui-bg-component flex size-6 items-center justify-center rounded-[4px]", children: /* @__PURE__ */ jsx5(CurrencyDollar, { className: "text-ui-fg-subtle" }) }) }),
|
|
533
|
-
/* @__PURE__ */ jsx5(
|
|
499
|
+
/* @__PURE__ */ jsx5(Heading5, { level: "h3", className: "text-ui-fg-subtle font-normal", "data-testid": "campaign-spend-heading", children: campaign.budget?.type === "use_by_attribute" ? t("campaigns.fields.totalUsedByAttribute") : campaign.budget?.type === "spend" ? t("campaigns.fields.total_spend") : t("campaigns.fields.total_used") })
|
|
534
500
|
] }),
|
|
535
501
|
/* @__PURE__ */ jsx5("div", { "data-testid": "campaign-spend-value", children: /* @__PURE__ */ jsx5(
|
|
536
502
|
Text3,
|
|
@@ -572,51 +538,12 @@ var CampaignSpend = ({ campaign }) => {
|
|
|
572
538
|
] });
|
|
573
539
|
};
|
|
574
540
|
|
|
575
|
-
// src/pages/campaigns/campaign-detail/
|
|
576
|
-
|
|
577
|
-
import { PencilSquare as PencilSquare4 } from "@medusajs/icons";
|
|
578
|
-
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
579
|
-
import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
580
|
-
var CampaignConfigurationSection = ({
|
|
581
|
-
campaign
|
|
582
|
-
}) => {
|
|
583
|
-
const { t } = useTranslation5();
|
|
584
|
-
return /* @__PURE__ */ jsxs5(Container5, { className: "flex flex-col gap-y-4", "data-testid": "campaign-configuration-section-container", children: [
|
|
585
|
-
/* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between", "data-testid": "campaign-configuration-section-header", children: [
|
|
586
|
-
/* @__PURE__ */ jsx6(Heading5, { level: "h2", "data-testid": "campaign-configuration-section-heading", children: t("campaigns.configuration.header") }),
|
|
587
|
-
/* @__PURE__ */ jsx6(
|
|
588
|
-
ActionMenu,
|
|
589
|
-
{
|
|
590
|
-
groups: [
|
|
591
|
-
{
|
|
592
|
-
actions: [
|
|
593
|
-
{
|
|
594
|
-
label: t("actions.edit"),
|
|
595
|
-
icon: /* @__PURE__ */ jsx6(PencilSquare4, {}),
|
|
596
|
-
to: "configuration"
|
|
597
|
-
}
|
|
598
|
-
]
|
|
599
|
-
}
|
|
600
|
-
],
|
|
601
|
-
"data-testid": "campaign-configuration-section-action-menu"
|
|
602
|
-
}
|
|
603
|
-
)
|
|
604
|
-
] }),
|
|
605
|
-
/* @__PURE__ */ jsx6(
|
|
606
|
-
DateRangeDisplay,
|
|
607
|
-
{
|
|
608
|
-
startsAt: campaign.starts_at,
|
|
609
|
-
endsAt: campaign.ends_at,
|
|
610
|
-
showTime: true,
|
|
611
|
-
"data-testid": "campaign-configuration-section-date-range"
|
|
612
|
-
}
|
|
613
|
-
)
|
|
614
|
-
] });
|
|
615
|
-
};
|
|
541
|
+
// src/pages/campaigns/campaign-detail/constants.ts
|
|
542
|
+
var CAMPAIGN_DETAIL_FIELDS = "+promotions.id";
|
|
616
543
|
|
|
617
544
|
// src/pages/campaigns/campaign-detail/campaign-detail.tsx
|
|
618
|
-
import { jsx as
|
|
619
|
-
var
|
|
545
|
+
import { Fragment, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
546
|
+
var Root = ({ children }) => {
|
|
620
547
|
const initialData = useLoaderData();
|
|
621
548
|
const { id } = useParams();
|
|
622
549
|
const { campaign, isLoading, isError, error } = useCampaign(
|
|
@@ -625,7 +552,7 @@ var CampaignDetail = () => {
|
|
|
625
552
|
{ initialData }
|
|
626
553
|
);
|
|
627
554
|
if (isLoading || !campaign) {
|
|
628
|
-
return /* @__PURE__ */
|
|
555
|
+
return /* @__PURE__ */ jsx6(
|
|
629
556
|
TwoColumnPageSkeleton,
|
|
630
557
|
{
|
|
631
558
|
mainSections: 2,
|
|
@@ -638,31 +565,29 @@ var CampaignDetail = () => {
|
|
|
638
565
|
if (isError) {
|
|
639
566
|
throw error;
|
|
640
567
|
}
|
|
641
|
-
return /* @__PURE__ */ jsxs6(TwoColumnPage, { hasOutlet: true, showJSON: true, showMetadata: true, data: campaign, children: [
|
|
568
|
+
return /* @__PURE__ */ jsx6(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs6(TwoColumnPage, { hasOutlet: true, showJSON: true, showMetadata: true, data: campaign, children: [
|
|
642
569
|
/* @__PURE__ */ jsxs6(TwoColumnPage.Main, { children: [
|
|
643
|
-
/* @__PURE__ */
|
|
644
|
-
/* @__PURE__ */
|
|
570
|
+
/* @__PURE__ */ jsx6(CampaignGeneralSection, { campaign }),
|
|
571
|
+
/* @__PURE__ */ jsx6(CampaignPromotionSection, { campaign })
|
|
645
572
|
] }),
|
|
646
573
|
/* @__PURE__ */ jsxs6(TwoColumnPage.Sidebar, { children: [
|
|
647
|
-
/* @__PURE__ */
|
|
648
|
-
/* @__PURE__ */
|
|
649
|
-
/* @__PURE__ */
|
|
574
|
+
/* @__PURE__ */ jsx6(CampaignConfigurationSection, { campaign }),
|
|
575
|
+
/* @__PURE__ */ jsx6(CampaignSpend, { campaign }),
|
|
576
|
+
/* @__PURE__ */ jsx6(CampaignBudget, { campaign })
|
|
650
577
|
] })
|
|
651
|
-
] });
|
|
578
|
+
] }) });
|
|
652
579
|
};
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
580
|
+
var CampaignDetail = Object.assign(Root, {
|
|
581
|
+
Main: TwoColumnPage.Main,
|
|
582
|
+
Sidebar: TwoColumnPage.Sidebar,
|
|
583
|
+
MainGeneralSection: CampaignGeneralSection,
|
|
584
|
+
MainPromotionSection: CampaignPromotionSection,
|
|
585
|
+
SidebarConfigurationSection: CampaignConfigurationSection,
|
|
586
|
+
SidebarSpendSection: CampaignSpend,
|
|
587
|
+
SidebarBudgetSection: CampaignBudget
|
|
658
588
|
});
|
|
659
|
-
|
|
660
|
-
const id = params.id;
|
|
661
|
-
const query = campaignDetailQuery(id);
|
|
662
|
-
return queryClient.ensureQueryData(query);
|
|
663
|
-
};
|
|
589
|
+
|
|
664
590
|
export {
|
|
665
|
-
|
|
666
|
-
CampaignDetail
|
|
667
|
-
campaignLoader as loader
|
|
591
|
+
CAMPAIGN_DETAIL_FIELDS,
|
|
592
|
+
CampaignDetail
|
|
668
593
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getStylizedAmount
|
|
3
3
|
} from "./chunk-PXYDR7WQ.js";
|
|
4
|
-
import "./chunk-IQPN4PZJ.js";
|
|
5
4
|
import {
|
|
6
5
|
SingleColumnPage
|
|
7
6
|
} from "./chunk-U2UCL2VG.js";
|
|
@@ -9,19 +8,11 @@ import {
|
|
|
9
8
|
SingleColumnPageSkeleton
|
|
10
9
|
} from "./chunk-INNFZYX2.js";
|
|
11
10
|
import {
|
|
12
|
-
payoutsQueryKeys,
|
|
13
11
|
usePayout
|
|
14
12
|
} from "./chunk-JOQ3RTF5.js";
|
|
15
|
-
import {
|
|
16
|
-
queryClient
|
|
17
|
-
} from "./chunk-RHKRREUU.js";
|
|
18
|
-
import "./chunk-ZA2KFUFR.js";
|
|
19
|
-
import {
|
|
20
|
-
sdk
|
|
21
|
-
} from "./chunk-ZYNBKBY3.js";
|
|
22
|
-
import "./chunk-NBMM2TZK.js";
|
|
23
13
|
|
|
24
14
|
// src/pages/payouts/payout-detail/payout-detail.tsx
|
|
15
|
+
import { Children } from "react";
|
|
25
16
|
import { useParams } from "react-router-dom";
|
|
26
17
|
|
|
27
18
|
// src/pages/payouts/payout-detail/components/payout-general-section.tsx
|
|
@@ -83,7 +74,7 @@ var PayoutGeneralSection = ({ payout }) => {
|
|
|
83
74
|
|
|
84
75
|
// src/pages/payouts/payout-detail/payout-detail.tsx
|
|
85
76
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
86
|
-
var
|
|
77
|
+
var Root = ({ children }) => {
|
|
87
78
|
const { id } = useParams();
|
|
88
79
|
const { payout, isLoading, isError, error } = usePayout(id);
|
|
89
80
|
if (isLoading || !payout) {
|
|
@@ -92,37 +83,12 @@ var PayoutDetail = () => {
|
|
|
92
83
|
if (isError) {
|
|
93
84
|
throw error;
|
|
94
85
|
}
|
|
95
|
-
return /* @__PURE__ */ jsx2(SingleColumnPage, { data: payout, showJSON: true, showMetadata: true, children: /* @__PURE__ */ jsx2(PayoutGeneralSection, { payout }) });
|
|
86
|
+
return /* @__PURE__ */ jsx2(SingleColumnPage, { data: payout, showJSON: true, showMetadata: true, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(PayoutGeneralSection, { payout }) });
|
|
96
87
|
};
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
import { jsxs as jsxs2 } from "react/jsx-runtime";
|
|
100
|
-
var PayoutDetailBreadcrumb = (props) => {
|
|
101
|
-
const { id } = props.params || {};
|
|
102
|
-
const { payout } = usePayout(id, void 0, {
|
|
103
|
-
enabled: Boolean(id)
|
|
104
|
-
});
|
|
105
|
-
if (!payout) {
|
|
106
|
-
return null;
|
|
107
|
-
}
|
|
108
|
-
return /* @__PURE__ */ jsxs2("span", { children: [
|
|
109
|
-
"#",
|
|
110
|
-
payout.display_id
|
|
111
|
-
] });
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
// src/pages/payouts/payout-detail/loader.ts
|
|
115
|
-
var payoutDetailQuery = (id) => ({
|
|
116
|
-
queryKey: payoutsQueryKeys.detail(id),
|
|
117
|
-
queryFn: async () => sdk.admin.payouts.$id.query({ $id: id })
|
|
88
|
+
var PayoutDetail = Object.assign(Root, {
|
|
89
|
+
GeneralSection: PayoutGeneralSection
|
|
118
90
|
});
|
|
119
|
-
|
|
120
|
-
const id = params.id;
|
|
121
|
-
const query = payoutDetailQuery(id);
|
|
122
|
-
return queryClient.ensureQueryData(query);
|
|
123
|
-
};
|
|
91
|
+
|
|
124
92
|
export {
|
|
125
|
-
|
|
126
|
-
PayoutDetail as Component,
|
|
127
|
-
payoutLoader as loader
|
|
93
|
+
PayoutDetail
|
|
128
94
|
};
|