@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,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SidebarLink
|
|
3
3
|
} from "./chunk-4GPAS5GW.js";
|
|
4
|
-
import "./chunk-U2EI2ZLM.js";
|
|
5
4
|
import {
|
|
6
5
|
getFormattedCountry
|
|
7
6
|
} from "./chunk-W6Y3PPU5.js";
|
|
@@ -11,11 +10,9 @@ import {
|
|
|
11
10
|
import {
|
|
12
11
|
ProductSellerSection
|
|
13
12
|
} from "./chunk-VZEMURY7.js";
|
|
14
|
-
import "./chunk-FI474ADU.js";
|
|
15
13
|
import {
|
|
16
14
|
SectionRow
|
|
17
15
|
} from "./chunk-3XPXUIK3.js";
|
|
18
|
-
import "./chunk-JRTZWK77.js";
|
|
19
16
|
import {
|
|
20
17
|
TwoColumnPage
|
|
21
18
|
} from "./chunk-U2UCL2VG.js";
|
|
@@ -34,45 +31,13 @@ import {
|
|
|
34
31
|
import {
|
|
35
32
|
ActionMenu
|
|
36
33
|
} from "./chunk-BDGZ4EQO.js";
|
|
37
|
-
import "./chunk-LAVHRER2.js";
|
|
38
|
-
import "./chunk-Y7QKP6QU.js";
|
|
39
34
|
import {
|
|
40
35
|
useQueryParams
|
|
41
36
|
} from "./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
|
-
import "./chunk-5PB7KCTF.js";
|
|
62
|
-
import "./chunk-YOIARITB.js";
|
|
63
|
-
import "./chunk-W7G64ULL.js";
|
|
64
|
-
import "./chunk-6C7TCU42.js";
|
|
65
|
-
import "./chunk-4YF3GAKE.js";
|
|
66
|
-
import "./chunk-M3I52H3M.js";
|
|
67
37
|
import {
|
|
68
38
|
useSalesChannels
|
|
69
39
|
} from "./chunk-LORVU5II.js";
|
|
70
|
-
import "./chunk-36ORDF7W.js";
|
|
71
|
-
import "./chunk-QSM56ZOP.js";
|
|
72
|
-
import "./chunk-MIHEJ6Y6.js";
|
|
73
|
-
import "./chunk-3VZV6SJQ.js";
|
|
74
40
|
import {
|
|
75
|
-
productsQueryKeys,
|
|
76
41
|
useDeleteProduct,
|
|
77
42
|
useDeleteProductOption,
|
|
78
43
|
useDeleteVariantLazy,
|
|
@@ -80,56 +45,16 @@ import {
|
|
|
80
45
|
useProductVariants,
|
|
81
46
|
useUpdateProduct
|
|
82
47
|
} from "./chunk-K357FGGP.js";
|
|
83
|
-
import {
|
|
84
|
-
queryClient
|
|
85
|
-
} from "./chunk-RHKRREUU.js";
|
|
86
|
-
import "./chunk-ZA2KFUFR.js";
|
|
87
|
-
import {
|
|
88
|
-
sdk
|
|
89
|
-
} from "./chunk-ZYNBKBY3.js";
|
|
90
|
-
import "./chunk-NBMM2TZK.js";
|
|
91
|
-
|
|
92
|
-
// src/pages/products/product-detail/breadcrumb.tsx
|
|
93
|
-
import { jsx } from "react/jsx-runtime";
|
|
94
|
-
var ProductDetailBreadcrumb = (props) => {
|
|
95
|
-
const { id } = props.params || {};
|
|
96
|
-
const { product } = useProduct(
|
|
97
|
-
id,
|
|
98
|
-
{},
|
|
99
|
-
{
|
|
100
|
-
initialData: props.data,
|
|
101
|
-
enabled: Boolean(id)
|
|
102
|
-
}
|
|
103
|
-
);
|
|
104
|
-
if (!product) {
|
|
105
|
-
return null;
|
|
106
|
-
}
|
|
107
|
-
return /* @__PURE__ */ jsx("span", { children: product.title });
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
// src/pages/products/product-detail/loader.ts
|
|
111
|
-
var productDetailQuery = (id) => ({
|
|
112
|
-
queryKey: productsQueryKeys.detail(id),
|
|
113
|
-
queryFn: async () => sdk.admin.products.$id.query({ $id: id, fields: "*seller" })
|
|
114
|
-
});
|
|
115
|
-
var productLoader = async ({ params }) => {
|
|
116
|
-
const id = params.id;
|
|
117
|
-
const query = productDetailQuery(id);
|
|
118
|
-
const response = await queryClient.ensureQueryData({
|
|
119
|
-
...query,
|
|
120
|
-
staleTime: 9e4
|
|
121
|
-
});
|
|
122
|
-
return response;
|
|
123
|
-
};
|
|
124
48
|
|
|
125
49
|
// src/pages/products/product-detail/product-detail.tsx
|
|
50
|
+
import { Children } from "react";
|
|
126
51
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
127
52
|
|
|
128
53
|
// src/pages/products/product-detail/components/product-attribute-section/product-attribute-section.tsx
|
|
129
54
|
import { PencilSquare } from "@medusajs/icons";
|
|
130
55
|
import { Container, Heading } from "@medusajs/ui";
|
|
131
56
|
import { useTranslation } from "react-i18next";
|
|
132
|
-
import { jsx
|
|
57
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
133
58
|
var ProductAttributeSection = ({
|
|
134
59
|
product
|
|
135
60
|
}) => {
|
|
@@ -141,8 +66,8 @@ var ProductAttributeSection = ({
|
|
|
141
66
|
className: "flex items-center justify-between px-6 py-4",
|
|
142
67
|
"data-testid": "product-attribute-header",
|
|
143
68
|
children: [
|
|
144
|
-
/* @__PURE__ */
|
|
145
|
-
/* @__PURE__ */
|
|
69
|
+
/* @__PURE__ */ jsx(Heading, { level: "h2", "data-testid": "product-attribute-title", children: t("products.attributes") }),
|
|
70
|
+
/* @__PURE__ */ jsx(
|
|
146
71
|
ActionMenu,
|
|
147
72
|
{
|
|
148
73
|
groups: [
|
|
@@ -151,7 +76,7 @@ var ProductAttributeSection = ({
|
|
|
151
76
|
{
|
|
152
77
|
label: t("actions.edit"),
|
|
153
78
|
to: "attributes",
|
|
154
|
-
icon: /* @__PURE__ */
|
|
79
|
+
icon: /* @__PURE__ */ jsx(PencilSquare, {})
|
|
155
80
|
}
|
|
156
81
|
]
|
|
157
82
|
}
|
|
@@ -162,7 +87,7 @@ var ProductAttributeSection = ({
|
|
|
162
87
|
]
|
|
163
88
|
}
|
|
164
89
|
),
|
|
165
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ jsx(
|
|
166
91
|
SectionRow,
|
|
167
92
|
{
|
|
168
93
|
title: t("fields.height"),
|
|
@@ -170,7 +95,7 @@ var ProductAttributeSection = ({
|
|
|
170
95
|
"data-testid": "product-height-row"
|
|
171
96
|
}
|
|
172
97
|
),
|
|
173
|
-
/* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ jsx(
|
|
174
99
|
SectionRow,
|
|
175
100
|
{
|
|
176
101
|
title: t("fields.width"),
|
|
@@ -178,7 +103,7 @@ var ProductAttributeSection = ({
|
|
|
178
103
|
"data-testid": "product-width-row"
|
|
179
104
|
}
|
|
180
105
|
),
|
|
181
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ jsx(
|
|
182
107
|
SectionRow,
|
|
183
108
|
{
|
|
184
109
|
title: t("fields.length"),
|
|
@@ -186,7 +111,7 @@ var ProductAttributeSection = ({
|
|
|
186
111
|
"data-testid": "product-length-row"
|
|
187
112
|
}
|
|
188
113
|
),
|
|
189
|
-
/* @__PURE__ */
|
|
114
|
+
/* @__PURE__ */ jsx(
|
|
190
115
|
SectionRow,
|
|
191
116
|
{
|
|
192
117
|
title: t("fields.weight"),
|
|
@@ -194,7 +119,7 @@ var ProductAttributeSection = ({
|
|
|
194
119
|
"data-testid": "product-weight-row"
|
|
195
120
|
}
|
|
196
121
|
),
|
|
197
|
-
/* @__PURE__ */
|
|
122
|
+
/* @__PURE__ */ jsx(
|
|
198
123
|
SectionRow,
|
|
199
124
|
{
|
|
200
125
|
title: t("fields.midCode"),
|
|
@@ -202,7 +127,7 @@ var ProductAttributeSection = ({
|
|
|
202
127
|
"data-testid": "product-mid-code-row"
|
|
203
128
|
}
|
|
204
129
|
),
|
|
205
|
-
/* @__PURE__ */
|
|
130
|
+
/* @__PURE__ */ jsx(
|
|
206
131
|
SectionRow,
|
|
207
132
|
{
|
|
208
133
|
title: t("fields.hsCode"),
|
|
@@ -210,7 +135,7 @@ var ProductAttributeSection = ({
|
|
|
210
135
|
"data-testid": "product-hs-code-row"
|
|
211
136
|
}
|
|
212
137
|
),
|
|
213
|
-
/* @__PURE__ */
|
|
138
|
+
/* @__PURE__ */ jsx(
|
|
214
139
|
SectionRow,
|
|
215
140
|
{
|
|
216
141
|
title: t("fields.countryOfOrigin"),
|
|
@@ -226,7 +151,7 @@ import { PencilSquare as PencilSquare2, Trash } from "@medusajs/icons";
|
|
|
226
151
|
import { Container as Container2, Heading as Heading2, StatusBadge, usePrompt } from "@medusajs/ui";
|
|
227
152
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
228
153
|
import { useNavigate } from "react-router-dom";
|
|
229
|
-
import { jsx as
|
|
154
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
230
155
|
var productStatusColor = (status) => {
|
|
231
156
|
switch (status) {
|
|
232
157
|
case "draft":
|
|
@@ -273,14 +198,14 @@ var ProductGeneralSection = ({
|
|
|
273
198
|
className: "flex items-center justify-between px-6 py-4",
|
|
274
199
|
"data-testid": "product-general-header",
|
|
275
200
|
children: [
|
|
276
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ jsx2(Heading2, { "data-testid": "product-general-title", children: product.title }),
|
|
277
202
|
/* @__PURE__ */ jsxs2(
|
|
278
203
|
"div",
|
|
279
204
|
{
|
|
280
205
|
className: "flex items-center gap-x-4",
|
|
281
206
|
"data-testid": "product-general-actions",
|
|
282
207
|
children: [
|
|
283
|
-
/* @__PURE__ */
|
|
208
|
+
/* @__PURE__ */ jsx2(
|
|
284
209
|
StatusBadge,
|
|
285
210
|
{
|
|
286
211
|
color: productStatusColor(product.status),
|
|
@@ -288,7 +213,7 @@ var ProductGeneralSection = ({
|
|
|
288
213
|
children: t(`products.productStatus.${product.status}`)
|
|
289
214
|
}
|
|
290
215
|
),
|
|
291
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ jsx2(
|
|
292
217
|
ActionMenu,
|
|
293
218
|
{
|
|
294
219
|
groups: [
|
|
@@ -297,7 +222,7 @@ var ProductGeneralSection = ({
|
|
|
297
222
|
{
|
|
298
223
|
label: t("actions.edit"),
|
|
299
224
|
to: "edit",
|
|
300
|
-
icon: /* @__PURE__ */
|
|
225
|
+
icon: /* @__PURE__ */ jsx2(PencilSquare2, {})
|
|
301
226
|
}
|
|
302
227
|
]
|
|
303
228
|
},
|
|
@@ -306,7 +231,7 @@ var ProductGeneralSection = ({
|
|
|
306
231
|
{
|
|
307
232
|
label: t("actions.delete"),
|
|
308
233
|
onClick: handleDelete,
|
|
309
|
-
icon: /* @__PURE__ */
|
|
234
|
+
icon: /* @__PURE__ */ jsx2(Trash, {})
|
|
310
235
|
}
|
|
311
236
|
]
|
|
312
237
|
}
|
|
@@ -320,7 +245,7 @@ var ProductGeneralSection = ({
|
|
|
320
245
|
]
|
|
321
246
|
}
|
|
322
247
|
),
|
|
323
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ jsx2(
|
|
324
249
|
SectionRow,
|
|
325
250
|
{
|
|
326
251
|
title: t("fields.description"),
|
|
@@ -328,7 +253,7 @@ var ProductGeneralSection = ({
|
|
|
328
253
|
"data-testid": "product-description-row"
|
|
329
254
|
}
|
|
330
255
|
),
|
|
331
|
-
/* @__PURE__ */
|
|
256
|
+
/* @__PURE__ */ jsx2(
|
|
332
257
|
SectionRow,
|
|
333
258
|
{
|
|
334
259
|
title: t("fields.subtitle"),
|
|
@@ -336,7 +261,7 @@ var ProductGeneralSection = ({
|
|
|
336
261
|
"data-testid": "product-subtitle-row"
|
|
337
262
|
}
|
|
338
263
|
),
|
|
339
|
-
/* @__PURE__ */
|
|
264
|
+
/* @__PURE__ */ jsx2(
|
|
340
265
|
SectionRow,
|
|
341
266
|
{
|
|
342
267
|
title: t("fields.handle"),
|
|
@@ -344,7 +269,7 @@ var ProductGeneralSection = ({
|
|
|
344
269
|
"data-testid": "product-handle-row"
|
|
345
270
|
}
|
|
346
271
|
),
|
|
347
|
-
/* @__PURE__ */
|
|
272
|
+
/* @__PURE__ */ jsx2(
|
|
348
273
|
SectionRow,
|
|
349
274
|
{
|
|
350
275
|
title: t("fields.discountable"),
|
|
@@ -371,8 +296,10 @@ import {
|
|
|
371
296
|
import { useState } from "react";
|
|
372
297
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
373
298
|
import { Link } from "react-router-dom";
|
|
374
|
-
import { jsx as
|
|
375
|
-
var ProductMediaSection = ({
|
|
299
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
300
|
+
var ProductMediaSection = ({
|
|
301
|
+
product
|
|
302
|
+
}) => {
|
|
376
303
|
const { t } = useTranslation3();
|
|
377
304
|
const prompt = usePrompt2();
|
|
378
305
|
const [selection, setSelection] = useState({});
|
|
@@ -421,8 +348,8 @@ var ProductMediaSection = ({ product }) => {
|
|
|
421
348
|
};
|
|
422
349
|
return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", "data-testid": "product-media-section", children: [
|
|
423
350
|
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "product-media-header", children: [
|
|
424
|
-
/* @__PURE__ */
|
|
425
|
-
/* @__PURE__ */
|
|
351
|
+
/* @__PURE__ */ jsx3(Heading3, { level: "h2", "data-testid": "product-media-title", children: t("products.media.label") }),
|
|
352
|
+
/* @__PURE__ */ jsx3(
|
|
426
353
|
ActionMenu,
|
|
427
354
|
{
|
|
428
355
|
groups: [
|
|
@@ -431,7 +358,7 @@ var ProductMediaSection = ({ product }) => {
|
|
|
431
358
|
{
|
|
432
359
|
label: t("actions.edit"),
|
|
433
360
|
to: "media?view=edit",
|
|
434
|
-
icon: /* @__PURE__ */
|
|
361
|
+
icon: /* @__PURE__ */ jsx3(PencilSquare3, {})
|
|
435
362
|
}
|
|
436
363
|
]
|
|
437
364
|
}
|
|
@@ -440,7 +367,7 @@ var ProductMediaSection = ({ product }) => {
|
|
|
440
367
|
}
|
|
441
368
|
)
|
|
442
369
|
] }),
|
|
443
|
-
media.length > 0 ? /* @__PURE__ */
|
|
370
|
+
media.length > 0 ? /* @__PURE__ */ jsx3("div", { className: "grid grid-cols-[repeat(auto-fill,minmax(96px,1fr))] gap-4 px-6 py-4", "data-testid": "product-media-grid", children: media.map((i, index) => {
|
|
444
371
|
const isSelected = selection[i.id];
|
|
445
372
|
return /* @__PURE__ */ jsxs3(
|
|
446
373
|
"div",
|
|
@@ -448,7 +375,7 @@ var ProductMediaSection = ({ product }) => {
|
|
|
448
375
|
className: "shadow-elevation-card-rest hover:shadow-elevation-card-hover transition-fg group relative aspect-square size-full cursor-pointer overflow-hidden rounded-[8px]",
|
|
449
376
|
"data-testid": `product-media-item-${i.id}`,
|
|
450
377
|
children: [
|
|
451
|
-
/* @__PURE__ */
|
|
378
|
+
/* @__PURE__ */ jsx3(
|
|
452
379
|
"div",
|
|
453
380
|
{
|
|
454
381
|
className: clx(
|
|
@@ -458,7 +385,7 @@ var ProductMediaSection = ({ product }) => {
|
|
|
458
385
|
}
|
|
459
386
|
),
|
|
460
387
|
"data-testid": `product-media-checkbox-container-${i.id}`,
|
|
461
|
-
children: /* @__PURE__ */
|
|
388
|
+
children: /* @__PURE__ */ jsx3(
|
|
462
389
|
Checkbox,
|
|
463
390
|
{
|
|
464
391
|
checked: selection[i.id] || false,
|
|
@@ -468,8 +395,8 @@ var ProductMediaSection = ({ product }) => {
|
|
|
468
395
|
)
|
|
469
396
|
}
|
|
470
397
|
),
|
|
471
|
-
i.isThumbnail && /* @__PURE__ */
|
|
472
|
-
/* @__PURE__ */
|
|
398
|
+
i.isThumbnail && /* @__PURE__ */ jsx3("div", { className: "absolute left-2 top-2", "data-testid": `product-media-thumbnail-badge-${i.id}`, children: /* @__PURE__ */ jsx3(Tooltip, { content: t("fields.thumbnail"), children: /* @__PURE__ */ jsx3(ThumbnailBadge, {}) }) }),
|
|
399
|
+
/* @__PURE__ */ jsx3(Link, { to: `media`, state: { curr: index }, "data-testid": `product-media-link-${i.id}`, children: /* @__PURE__ */ jsx3(
|
|
473
400
|
"img",
|
|
474
401
|
{
|
|
475
402
|
src: i.url,
|
|
@@ -484,7 +411,7 @@ var ProductMediaSection = ({ product }) => {
|
|
|
484
411
|
);
|
|
485
412
|
}) }) : /* @__PURE__ */ jsxs3("div", { className: "flex flex-col items-center gap-y-4 pb-8 pt-6", "data-testid": "product-media-empty-state", children: [
|
|
486
413
|
/* @__PURE__ */ jsxs3("div", { className: "flex flex-col items-center", children: [
|
|
487
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ jsx3(
|
|
488
415
|
Text,
|
|
489
416
|
{
|
|
490
417
|
size: "small",
|
|
@@ -495,16 +422,16 @@ var ProductMediaSection = ({ product }) => {
|
|
|
495
422
|
children: t("products.media.emptyState.header")
|
|
496
423
|
}
|
|
497
424
|
),
|
|
498
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ jsx3(Text, { size: "small", className: "text-ui-fg-muted", "data-testid": "product-media-empty-state-description", children: t("products.media.emptyState.description") })
|
|
499
426
|
] }),
|
|
500
|
-
/* @__PURE__ */
|
|
427
|
+
/* @__PURE__ */ jsx3(Button, { size: "small", variant: "secondary", asChild: true, "data-testid": "product-media-empty-state-button", children: /* @__PURE__ */ jsx3(Link, { to: "media?view=edit", "data-testid": "product-media-empty-state-link", children: t("products.media.emptyState.action") }) })
|
|
501
428
|
] }),
|
|
502
|
-
/* @__PURE__ */
|
|
503
|
-
/* @__PURE__ */
|
|
429
|
+
/* @__PURE__ */ jsx3(CommandBar, { open: !!Object.keys(selection).length, "data-testid": "product-media-command-bar", children: /* @__PURE__ */ jsxs3(CommandBar.Bar, { "data-testid": "product-media-command-bar-bar", children: [
|
|
430
|
+
/* @__PURE__ */ jsx3(CommandBar.Value, { "data-testid": "product-media-command-bar-value", children: t("general.countSelected", {
|
|
504
431
|
count: Object.keys(selection).length
|
|
505
432
|
}) }),
|
|
506
|
-
/* @__PURE__ */
|
|
507
|
-
/* @__PURE__ */
|
|
433
|
+
/* @__PURE__ */ jsx3(CommandBar.Seperator, { "data-testid": "product-media-command-bar-separator" }),
|
|
434
|
+
/* @__PURE__ */ jsx3(
|
|
508
435
|
CommandBar.Command,
|
|
509
436
|
{
|
|
510
437
|
action: handleDelete,
|
|
@@ -537,13 +464,13 @@ var getMedia = (product) => {
|
|
|
537
464
|
import { PencilSquare as PencilSquare4, Plus, Trash as Trash2 } from "@medusajs/icons";
|
|
538
465
|
import { Badge, Container as Container4, Heading as Heading4, usePrompt as usePrompt3 } from "@medusajs/ui";
|
|
539
466
|
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
540
|
-
import { jsx as
|
|
467
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
541
468
|
var OptionActions = ({
|
|
542
|
-
|
|
469
|
+
productId,
|
|
543
470
|
option
|
|
544
471
|
}) => {
|
|
545
472
|
const { t } = useTranslation4();
|
|
546
|
-
const { mutateAsync } = useDeleteProductOption(
|
|
473
|
+
const { mutateAsync } = useDeleteProductOption(productId, option.id);
|
|
547
474
|
const prompt = usePrompt3();
|
|
548
475
|
const handleDelete = async () => {
|
|
549
476
|
const res = await prompt({
|
|
@@ -559,7 +486,7 @@ var OptionActions = ({
|
|
|
559
486
|
}
|
|
560
487
|
await mutateAsync();
|
|
561
488
|
};
|
|
562
|
-
return /* @__PURE__ */
|
|
489
|
+
return /* @__PURE__ */ jsx4(
|
|
563
490
|
ActionMenu,
|
|
564
491
|
{
|
|
565
492
|
groups: [
|
|
@@ -568,7 +495,7 @@ var OptionActions = ({
|
|
|
568
495
|
{
|
|
569
496
|
label: t("actions.edit"),
|
|
570
497
|
to: `options/${option.id}/edit`,
|
|
571
|
-
icon: /* @__PURE__ */
|
|
498
|
+
icon: /* @__PURE__ */ jsx4(PencilSquare4, {})
|
|
572
499
|
}
|
|
573
500
|
]
|
|
574
501
|
},
|
|
@@ -577,7 +504,7 @@ var OptionActions = ({
|
|
|
577
504
|
{
|
|
578
505
|
label: t("actions.delete"),
|
|
579
506
|
onClick: handleDelete,
|
|
580
|
-
icon: /* @__PURE__ */
|
|
507
|
+
icon: /* @__PURE__ */ jsx4(Trash2, {})
|
|
581
508
|
}
|
|
582
509
|
]
|
|
583
510
|
}
|
|
@@ -592,8 +519,8 @@ var ProductOptionSection = ({
|
|
|
592
519
|
const { t } = useTranslation4();
|
|
593
520
|
return /* @__PURE__ */ jsxs4(Container4, { className: "divide-y p-0", "data-testid": "product-option-section", children: [
|
|
594
521
|
/* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "product-option-header", children: [
|
|
595
|
-
/* @__PURE__ */
|
|
596
|
-
/* @__PURE__ */
|
|
522
|
+
/* @__PURE__ */ jsx4(Heading4, { level: "h2", "data-testid": "product-option-title", children: t("products.options.header") }),
|
|
523
|
+
/* @__PURE__ */ jsx4(
|
|
597
524
|
ActionMenu,
|
|
598
525
|
{
|
|
599
526
|
groups: [
|
|
@@ -602,7 +529,7 @@ var ProductOptionSection = ({
|
|
|
602
529
|
{
|
|
603
530
|
label: t("actions.create"),
|
|
604
531
|
to: "options/create",
|
|
605
|
-
icon: /* @__PURE__ */
|
|
532
|
+
icon: /* @__PURE__ */ jsx4(Plus, {})
|
|
606
533
|
}
|
|
607
534
|
]
|
|
608
535
|
}
|
|
@@ -612,12 +539,12 @@ var ProductOptionSection = ({
|
|
|
612
539
|
)
|
|
613
540
|
] }),
|
|
614
541
|
product.options?.map((option) => {
|
|
615
|
-
return /* @__PURE__ */
|
|
542
|
+
return /* @__PURE__ */ jsx4(
|
|
616
543
|
SectionRow,
|
|
617
544
|
{
|
|
618
545
|
title: option.title,
|
|
619
546
|
value: option.values?.map((val) => {
|
|
620
|
-
return /* @__PURE__ */
|
|
547
|
+
return /* @__PURE__ */ jsx4(
|
|
621
548
|
Badge,
|
|
622
549
|
{
|
|
623
550
|
size: "2xsmall",
|
|
@@ -628,7 +555,7 @@ var ProductOptionSection = ({
|
|
|
628
555
|
val.value
|
|
629
556
|
);
|
|
630
557
|
}),
|
|
631
|
-
actions: /* @__PURE__ */
|
|
558
|
+
actions: /* @__PURE__ */ jsx4(OptionActions, { productId: product.id, option }),
|
|
632
559
|
"data-testid": `product-option-row-${option.id}`
|
|
633
560
|
},
|
|
634
561
|
option.id
|
|
@@ -642,7 +569,7 @@ import { PencilSquare as PencilSquare5 } from "@medusajs/icons";
|
|
|
642
569
|
import { Badge as Badge2, Container as Container5, Heading as Heading5, Tooltip as Tooltip2 } from "@medusajs/ui";
|
|
643
570
|
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
644
571
|
import { Link as Link2 } from "react-router-dom";
|
|
645
|
-
import { jsx as
|
|
572
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
646
573
|
var ProductOrganizationSection = ({
|
|
647
574
|
product
|
|
648
575
|
}) => {
|
|
@@ -659,8 +586,8 @@ var ProductOrganizationSection = ({
|
|
|
659
586
|
className: "flex items-center justify-between px-6 py-4",
|
|
660
587
|
"data-testid": "product-organization-header",
|
|
661
588
|
children: [
|
|
662
|
-
/* @__PURE__ */
|
|
663
|
-
/* @__PURE__ */
|
|
589
|
+
/* @__PURE__ */ jsx5(Heading5, { level: "h2", "data-testid": "product-organization-title", children: t("products.organization.header") }),
|
|
590
|
+
/* @__PURE__ */ jsx5(
|
|
664
591
|
ActionMenu,
|
|
665
592
|
{
|
|
666
593
|
groups: [
|
|
@@ -669,7 +596,7 @@ var ProductOrganizationSection = ({
|
|
|
669
596
|
{
|
|
670
597
|
label: t("actions.edit"),
|
|
671
598
|
to: "organization",
|
|
672
|
-
icon: /* @__PURE__ */
|
|
599
|
+
icon: /* @__PURE__ */ jsx5(PencilSquare5, {})
|
|
673
600
|
}
|
|
674
601
|
]
|
|
675
602
|
}
|
|
@@ -680,11 +607,11 @@ var ProductOrganizationSection = ({
|
|
|
680
607
|
]
|
|
681
608
|
}
|
|
682
609
|
),
|
|
683
|
-
/* @__PURE__ */
|
|
610
|
+
/* @__PURE__ */ jsx5(
|
|
684
611
|
SectionRow,
|
|
685
612
|
{
|
|
686
613
|
title: t("fields.tags"),
|
|
687
|
-
value: product.tags?.length ? product.tags.map((tag) => /* @__PURE__ */
|
|
614
|
+
value: product.tags?.length ? product.tags.map((tag) => /* @__PURE__ */ jsx5(
|
|
688
615
|
OrganizationTag,
|
|
689
616
|
{
|
|
690
617
|
label: tag.value,
|
|
@@ -695,11 +622,11 @@ var ProductOrganizationSection = ({
|
|
|
695
622
|
"data-testid": "product-tags-row"
|
|
696
623
|
}
|
|
697
624
|
),
|
|
698
|
-
/* @__PURE__ */
|
|
625
|
+
/* @__PURE__ */ jsx5(
|
|
699
626
|
SectionRow,
|
|
700
627
|
{
|
|
701
628
|
title: t("fields.type"),
|
|
702
|
-
value: product.type ? /* @__PURE__ */
|
|
629
|
+
value: product.type ? /* @__PURE__ */ jsx5(
|
|
703
630
|
OrganizationTag,
|
|
704
631
|
{
|
|
705
632
|
label: product.type.value,
|
|
@@ -709,11 +636,11 @@ var ProductOrganizationSection = ({
|
|
|
709
636
|
"data-testid": "product-type-row"
|
|
710
637
|
}
|
|
711
638
|
),
|
|
712
|
-
/* @__PURE__ */
|
|
639
|
+
/* @__PURE__ */ jsx5(
|
|
713
640
|
SectionRow,
|
|
714
641
|
{
|
|
715
642
|
title: t("fields.collection"),
|
|
716
|
-
value: product.collection ? /* @__PURE__ */
|
|
643
|
+
value: product.collection ? /* @__PURE__ */ jsx5(
|
|
717
644
|
OrganizationTag,
|
|
718
645
|
{
|
|
719
646
|
label: product.collection.title,
|
|
@@ -723,11 +650,11 @@ var ProductOrganizationSection = ({
|
|
|
723
650
|
"data-testid": "product-collection-row"
|
|
724
651
|
}
|
|
725
652
|
),
|
|
726
|
-
/* @__PURE__ */
|
|
653
|
+
/* @__PURE__ */ jsx5(
|
|
727
654
|
SectionRow,
|
|
728
655
|
{
|
|
729
656
|
title: t("fields.categories"),
|
|
730
|
-
value: product.categories?.length ? product.categories.map((pcat) => /* @__PURE__ */
|
|
657
|
+
value: product.categories?.length ? product.categories.map((pcat) => /* @__PURE__ */ jsx5(
|
|
731
658
|
OrganizationTag,
|
|
732
659
|
{
|
|
733
660
|
label: pcat.name,
|
|
@@ -743,7 +670,7 @@ var ProductOrganizationSection = ({
|
|
|
743
670
|
);
|
|
744
671
|
};
|
|
745
672
|
var OrganizationTag = ({ label, to }) => {
|
|
746
|
-
return /* @__PURE__ */
|
|
673
|
+
return /* @__PURE__ */ jsx5(Tooltip2, { content: label, children: /* @__PURE__ */ jsx5(Badge2, { size: "2xsmall", className: "block w-fit truncate", asChild: true, children: /* @__PURE__ */ jsx5(
|
|
747
674
|
Link2,
|
|
748
675
|
{
|
|
749
676
|
to,
|
|
@@ -757,7 +684,7 @@ var OrganizationTag = ({ label, to }) => {
|
|
|
757
684
|
import { Channels, PencilSquare as PencilSquare6 } from "@medusajs/icons";
|
|
758
685
|
import { Container as Container6, Heading as Heading6, Text as Text2, Tooltip as Tooltip3 } from "@medusajs/ui";
|
|
759
686
|
import { Trans, useTranslation as useTranslation6 } from "react-i18next";
|
|
760
|
-
import { jsx as
|
|
687
|
+
import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
761
688
|
var ProductSalesChannelSection = ({
|
|
762
689
|
product
|
|
763
690
|
}) => {
|
|
@@ -771,8 +698,8 @@ var ProductSalesChannelSection = ({
|
|
|
771
698
|
const restChannels = availableInSalesChannels.slice(3);
|
|
772
699
|
return /* @__PURE__ */ jsxs6(Container6, { className: "flex flex-col gap-y-4 px-6 py-4", "data-testid": "product-sales-channel-section", children: [
|
|
773
700
|
/* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-between", "data-testid": "product-sales-channel-header", children: [
|
|
774
|
-
/* @__PURE__ */
|
|
775
|
-
/* @__PURE__ */
|
|
701
|
+
/* @__PURE__ */ jsx6(Heading6, { level: "h2", "data-testid": "product-sales-channel-title", children: t("fields.sales_channels") }),
|
|
702
|
+
/* @__PURE__ */ jsx6(
|
|
776
703
|
ActionMenu,
|
|
777
704
|
{
|
|
778
705
|
groups: [
|
|
@@ -781,7 +708,7 @@ var ProductSalesChannelSection = ({
|
|
|
781
708
|
{
|
|
782
709
|
label: t("actions.edit"),
|
|
783
710
|
to: "sales-channels",
|
|
784
|
-
icon: /* @__PURE__ */
|
|
711
|
+
icon: /* @__PURE__ */ jsx6(PencilSquare6, {})
|
|
785
712
|
}
|
|
786
713
|
]
|
|
787
714
|
}
|
|
@@ -791,15 +718,15 @@ var ProductSalesChannelSection = ({
|
|
|
791
718
|
)
|
|
792
719
|
] }),
|
|
793
720
|
/* @__PURE__ */ jsxs6("div", { className: "grid grid-cols-[28px_1fr] items-center gap-x-3", "data-testid": "product-sales-channels-content", children: [
|
|
794
|
-
/* @__PURE__ */
|
|
721
|
+
/* @__PURE__ */ jsx6("div", { className: "bg-ui-bg-base shadow-borders-base flex size-7 items-center justify-center rounded-md", "data-testid": "product-sales-channels-icon-container", children: /* @__PURE__ */ jsx6("div", { className: "bg-ui-bg-component flex size-6 items-center justify-center rounded-[4px]", children: /* @__PURE__ */ jsx6(Channels, { className: "text-ui-fg-subtle", "data-testid": "product-sales-channels-icon" }) }) }),
|
|
795
722
|
availableInSalesChannels.length > 0 ? /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-x-1", "data-testid": "product-sales-channels-list", children: [
|
|
796
|
-
/* @__PURE__ */
|
|
797
|
-
restChannels.length > 0 && /* @__PURE__ */
|
|
723
|
+
/* @__PURE__ */ jsx6(Text2, { size: "small", leading: "compact", "data-testid": "product-sales-channels-names", children: firstChannels.map((sc) => sc.name).join(", ") }),
|
|
724
|
+
restChannels.length > 0 && /* @__PURE__ */ jsx6(
|
|
798
725
|
Tooltip3,
|
|
799
726
|
{
|
|
800
|
-
content: /* @__PURE__ */
|
|
727
|
+
content: /* @__PURE__ */ jsx6("ul", { children: restChannels.map((sc) => /* @__PURE__ */ jsx6("li", { children: sc.name }, sc.id)) }),
|
|
801
728
|
"data-testid": "product-sales-channels-more-tooltip",
|
|
802
|
-
children: /* @__PURE__ */
|
|
729
|
+
children: /* @__PURE__ */ jsx6(
|
|
803
730
|
Text2,
|
|
804
731
|
{
|
|
805
732
|
size: "small",
|
|
@@ -811,9 +738,9 @@ var ProductSalesChannelSection = ({
|
|
|
811
738
|
)
|
|
812
739
|
}
|
|
813
740
|
)
|
|
814
|
-
] }) : /* @__PURE__ */
|
|
741
|
+
] }) : /* @__PURE__ */ jsx6(Text2, { size: "small", leading: "compact", className: "text-ui-fg-subtle", "data-testid": "product-sales-channels-empty", children: t("products.noSalesChannels") })
|
|
815
742
|
] }),
|
|
816
|
-
/* @__PURE__ */
|
|
743
|
+
/* @__PURE__ */ jsx6("div", { "data-testid": "product-sales-channels-stats", children: /* @__PURE__ */ jsx6(Text2, { className: "text-ui-fg-subtle", size: "small", leading: "compact", "data-testid": "product-sales-channels-stats-text", children: /* @__PURE__ */ jsx6(
|
|
817
744
|
Trans,
|
|
818
745
|
{
|
|
819
746
|
i18nKey: "sales_channels.availableIn",
|
|
@@ -822,7 +749,7 @@ var ProductSalesChannelSection = ({
|
|
|
822
749
|
y: count ?? 0
|
|
823
750
|
},
|
|
824
751
|
components: [
|
|
825
|
-
/* @__PURE__ */
|
|
752
|
+
/* @__PURE__ */ jsx6(
|
|
826
753
|
"span",
|
|
827
754
|
{
|
|
828
755
|
className: "text-ui-fg-base txt-compact-medium-plus",
|
|
@@ -830,7 +757,7 @@ var ProductSalesChannelSection = ({
|
|
|
830
757
|
},
|
|
831
758
|
"x"
|
|
832
759
|
),
|
|
833
|
-
/* @__PURE__ */
|
|
760
|
+
/* @__PURE__ */ jsx6(
|
|
834
761
|
"span",
|
|
835
762
|
{
|
|
836
763
|
className: "text-ui-fg-base txt-compact-medium-plus",
|
|
@@ -848,7 +775,7 @@ var ProductSalesChannelSection = ({
|
|
|
848
775
|
import { PencilSquare as PencilSquare7, ShoppingBag } from "@medusajs/icons";
|
|
849
776
|
import { Container as Container7, Heading as Heading7 } from "@medusajs/ui";
|
|
850
777
|
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
851
|
-
import { jsx as
|
|
778
|
+
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
852
779
|
var ProductShippingProfileSection = ({
|
|
853
780
|
product
|
|
854
781
|
}) => {
|
|
@@ -856,8 +783,8 @@ var ProductShippingProfileSection = ({
|
|
|
856
783
|
const shippingProfile = product.shipping_profile;
|
|
857
784
|
return /* @__PURE__ */ jsxs7(Container7, { className: "p-0", "data-testid": "product-shipping-profile-section", children: [
|
|
858
785
|
/* @__PURE__ */ jsxs7("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "product-shipping-profile-header", children: [
|
|
859
|
-
/* @__PURE__ */
|
|
860
|
-
/* @__PURE__ */
|
|
786
|
+
/* @__PURE__ */ jsx7(Heading7, { level: "h2", "data-testid": "product-shipping-profile-title", children: t("products.shippingProfile.header") }),
|
|
787
|
+
/* @__PURE__ */ jsx7(
|
|
861
788
|
ActionMenu,
|
|
862
789
|
{
|
|
863
790
|
groups: [
|
|
@@ -866,7 +793,7 @@ var ProductShippingProfileSection = ({
|
|
|
866
793
|
{
|
|
867
794
|
label: t("actions.edit"),
|
|
868
795
|
to: "shipping-profile",
|
|
869
|
-
icon: /* @__PURE__ */
|
|
796
|
+
icon: /* @__PURE__ */ jsx7(PencilSquare7, {})
|
|
870
797
|
}
|
|
871
798
|
]
|
|
872
799
|
}
|
|
@@ -875,13 +802,13 @@ var ProductShippingProfileSection = ({
|
|
|
875
802
|
}
|
|
876
803
|
)
|
|
877
804
|
] }),
|
|
878
|
-
shippingProfile && /* @__PURE__ */
|
|
805
|
+
shippingProfile && /* @__PURE__ */ jsx7("div", { "data-testid": "product-shipping-profile-link-container", children: /* @__PURE__ */ jsx7(
|
|
879
806
|
SidebarLink,
|
|
880
807
|
{
|
|
881
808
|
to: `/settings/locations/shipping-profiles/${shippingProfile.id}`,
|
|
882
809
|
labelKey: shippingProfile.name,
|
|
883
810
|
descriptionKey: shippingProfile.type,
|
|
884
|
-
icon: /* @__PURE__ */
|
|
811
|
+
icon: /* @__PURE__ */ jsx7(ShoppingBag, {}),
|
|
885
812
|
"data-testid": "product-shipping-profile-link"
|
|
886
813
|
}
|
|
887
814
|
) })
|
|
@@ -904,10 +831,12 @@ import {
|
|
|
904
831
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
905
832
|
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
906
833
|
import { useNavigate as useNavigate2, useSearchParams } from "react-router-dom";
|
|
907
|
-
import { jsx as
|
|
834
|
+
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
908
835
|
var PAGE_SIZE = 10;
|
|
909
836
|
var PREFIX = "pv";
|
|
910
|
-
var ProductVariantSection = ({
|
|
837
|
+
var ProductVariantSection = ({
|
|
838
|
+
product
|
|
839
|
+
}) => {
|
|
911
840
|
const { t } = useTranslation8();
|
|
912
841
|
const { q, order, offset, allow_backorder, manage_inventory, created_at, updated_at } = useQueryParams(
|
|
913
842
|
["q", "order", "offset", "manage_inventory", "allow_backorder", "created_at", "updated_at"],
|
|
@@ -936,12 +865,12 @@ var ProductVariantSection = ({ product }) => {
|
|
|
936
865
|
if (isError) {
|
|
937
866
|
throw error;
|
|
938
867
|
}
|
|
939
|
-
return /* @__PURE__ */
|
|
868
|
+
return /* @__PURE__ */ jsx8(
|
|
940
869
|
Container8,
|
|
941
870
|
{
|
|
942
871
|
className: "divide-y p-0",
|
|
943
872
|
"data-testid": "product-variant-section",
|
|
944
|
-
children: /* @__PURE__ */
|
|
873
|
+
children: /* @__PURE__ */ jsx8("div", { "data-testid": "product-variants-table-container", children: /* @__PURE__ */ jsx8(
|
|
945
874
|
DataTable,
|
|
946
875
|
{
|
|
947
876
|
data: variants,
|
|
@@ -974,12 +903,12 @@ var ProductVariantSection = ({ product }) => {
|
|
|
974
903
|
{
|
|
975
904
|
label: t("products.editPrices"),
|
|
976
905
|
to: `prices`,
|
|
977
|
-
icon: /* @__PURE__ */
|
|
906
|
+
icon: /* @__PURE__ */ jsx8(PencilSquare8, {})
|
|
978
907
|
},
|
|
979
908
|
{
|
|
980
909
|
label: t("inventory.stock.action"),
|
|
981
910
|
to: `stock`,
|
|
982
|
-
icon: /* @__PURE__ */
|
|
911
|
+
icon: /* @__PURE__ */ jsx8(Buildings, {})
|
|
983
912
|
}
|
|
984
913
|
]
|
|
985
914
|
}
|
|
@@ -1038,14 +967,14 @@ var useColumns = (product) => {
|
|
|
1038
967
|
cell: ({ row }) => {
|
|
1039
968
|
const variantOpt = row.original.options?.find((opt) => opt.option_id === option.id);
|
|
1040
969
|
if (!variantOpt) {
|
|
1041
|
-
return /* @__PURE__ */
|
|
970
|
+
return /* @__PURE__ */ jsx8("span", { className: "text-ui-fg-muted", children: "-" });
|
|
1042
971
|
}
|
|
1043
|
-
return /* @__PURE__ */
|
|
972
|
+
return /* @__PURE__ */ jsx8(
|
|
1044
973
|
"div",
|
|
1045
974
|
{
|
|
1046
975
|
className: "flex items-center",
|
|
1047
976
|
"data-testid": `product-variant-option-${option.id}-${row.original.id}`,
|
|
1048
|
-
children: /* @__PURE__ */
|
|
977
|
+
children: /* @__PURE__ */ jsx8(Tooltip4, { content: variantOpt.value, children: /* @__PURE__ */ jsx8(
|
|
1049
978
|
Badge3,
|
|
1050
979
|
{
|
|
1051
980
|
size: "2xsmall",
|
|
@@ -1066,7 +995,7 @@ var useColumns = (product) => {
|
|
|
1066
995
|
const variant = ctx.row.original;
|
|
1067
996
|
const mainActions = [
|
|
1068
997
|
{
|
|
1069
|
-
icon: /* @__PURE__ */
|
|
998
|
+
icon: /* @__PURE__ */ jsx8(PencilSquare8, {}),
|
|
1070
999
|
label: t("actions.edit"),
|
|
1071
1000
|
onClick: (row) => {
|
|
1072
1001
|
navigate(
|
|
@@ -1082,7 +1011,7 @@ var useColumns = (product) => {
|
|
|
1082
1011
|
];
|
|
1083
1012
|
const secondaryActions = [
|
|
1084
1013
|
{
|
|
1085
|
-
icon: /* @__PURE__ */
|
|
1014
|
+
icon: /* @__PURE__ */ jsx8(Trash3, {}),
|
|
1086
1015
|
label: t("actions.delete"),
|
|
1087
1016
|
onClick: () => handleDelete(variant.id, variant.title)
|
|
1088
1017
|
}
|
|
@@ -1098,7 +1027,7 @@ var useColumns = (product) => {
|
|
|
1098
1027
|
onClick: () => {
|
|
1099
1028
|
navigate(inventoryItemLink);
|
|
1100
1029
|
},
|
|
1101
|
-
icon: /* @__PURE__ */
|
|
1030
|
+
icon: /* @__PURE__ */ jsx8(Buildings, {})
|
|
1102
1031
|
});
|
|
1103
1032
|
break;
|
|
1104
1033
|
}
|
|
@@ -1115,7 +1044,7 @@ var useColumns = (product) => {
|
|
|
1115
1044
|
onClick: () => {
|
|
1116
1045
|
navigate(inventoryKitLink);
|
|
1117
1046
|
},
|
|
1118
|
-
icon: /* @__PURE__ */
|
|
1047
|
+
icon: /* @__PURE__ */ jsx8(Component, {})
|
|
1119
1048
|
});
|
|
1120
1049
|
}
|
|
1121
1050
|
}
|
|
@@ -1174,19 +1103,19 @@ var useColumns = (product) => {
|
|
|
1174
1103
|
header: t("fields.inventory"),
|
|
1175
1104
|
cell: ({ row }) => {
|
|
1176
1105
|
const { text, hasInventoryKit, quantity, notManaged } = getInventory(row.original);
|
|
1177
|
-
return /* @__PURE__ */
|
|
1106
|
+
return /* @__PURE__ */ jsx8(Tooltip4, { content: text, children: /* @__PURE__ */ jsxs8(
|
|
1178
1107
|
"div",
|
|
1179
1108
|
{
|
|
1180
1109
|
className: "flex h-full w-full items-center gap-2 overflow-hidden",
|
|
1181
1110
|
"data-testid": `product-variant-inventory-${row.original.id}`,
|
|
1182
1111
|
children: [
|
|
1183
|
-
hasInventoryKit && /* @__PURE__ */
|
|
1112
|
+
hasInventoryKit && /* @__PURE__ */ jsx8(
|
|
1184
1113
|
Component,
|
|
1185
1114
|
{
|
|
1186
1115
|
"data-testid": `product-variant-inventory-kit-icon-${row.original.id}`
|
|
1187
1116
|
}
|
|
1188
1117
|
),
|
|
1189
|
-
/* @__PURE__ */
|
|
1118
|
+
/* @__PURE__ */ jsx8(
|
|
1190
1119
|
"span",
|
|
1191
1120
|
{
|
|
1192
1121
|
className: clx2("truncate", {
|
|
@@ -1251,8 +1180,8 @@ var useCommands = () => {
|
|
|
1251
1180
|
};
|
|
1252
1181
|
|
|
1253
1182
|
// src/pages/products/product-detail/product-detail.tsx
|
|
1254
|
-
import { jsx as
|
|
1255
|
-
var
|
|
1183
|
+
import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1184
|
+
var Root = ({ children }) => {
|
|
1256
1185
|
const initialData = useLoaderData();
|
|
1257
1186
|
const { id } = useParams();
|
|
1258
1187
|
const { product, isLoading, isError, error } = useProduct(
|
|
@@ -1263,7 +1192,7 @@ var ProductDetail = () => {
|
|
|
1263
1192
|
}
|
|
1264
1193
|
);
|
|
1265
1194
|
if (isLoading || !product) {
|
|
1266
|
-
return /* @__PURE__ */
|
|
1195
|
+
return /* @__PURE__ */ jsx9(
|
|
1267
1196
|
TwoColumnPageSkeleton,
|
|
1268
1197
|
{
|
|
1269
1198
|
mainSections: 4,
|
|
@@ -1276,24 +1205,45 @@ var ProductDetail = () => {
|
|
|
1276
1205
|
if (isError) {
|
|
1277
1206
|
throw error;
|
|
1278
1207
|
}
|
|
1279
|
-
return /* @__PURE__ */
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1208
|
+
return Children.count(children) > 0 ? /* @__PURE__ */ jsx9(TwoColumnPage, { "data-testid": "product-detail-page", children }) : /* @__PURE__ */ jsxs9(
|
|
1209
|
+
TwoColumnPage,
|
|
1210
|
+
{
|
|
1211
|
+
data: product,
|
|
1212
|
+
showJSON: true,
|
|
1213
|
+
showMetadata: true,
|
|
1214
|
+
"data-testid": "product-detail-page",
|
|
1215
|
+
children: [
|
|
1216
|
+
/* @__PURE__ */ jsxs9(TwoColumnPage.Main, { "data-testid": "product-detail-main", children: [
|
|
1217
|
+
/* @__PURE__ */ jsx9(ProductGeneralSection, { product }),
|
|
1218
|
+
/* @__PURE__ */ jsx9(ProductMediaSection, { product }),
|
|
1219
|
+
/* @__PURE__ */ jsx9(ProductOptionSection, { product }),
|
|
1220
|
+
/* @__PURE__ */ jsx9(ProductVariantSection, { product })
|
|
1221
|
+
] }),
|
|
1222
|
+
/* @__PURE__ */ jsxs9(TwoColumnPage.Sidebar, { "data-testid": "product-detail-sidebar", children: [
|
|
1223
|
+
/* @__PURE__ */ jsx9(ProductSellerSection, { seller: product.seller }),
|
|
1224
|
+
/* @__PURE__ */ jsx9(ProductSalesChannelSection, { product }),
|
|
1225
|
+
/* @__PURE__ */ jsx9(ProductShippingProfileSection, { product }),
|
|
1226
|
+
/* @__PURE__ */ jsx9(ProductOrganizationSection, { product }),
|
|
1227
|
+
/* @__PURE__ */ jsx9(ProductAttributeSection, { product })
|
|
1228
|
+
] })
|
|
1229
|
+
]
|
|
1230
|
+
}
|
|
1231
|
+
);
|
|
1294
1232
|
};
|
|
1233
|
+
var ProductDetailPage = Object.assign(Root, {
|
|
1234
|
+
Main: TwoColumnPage.Main,
|
|
1235
|
+
Sidebar: TwoColumnPage.Sidebar,
|
|
1236
|
+
MainGeneralSection: ProductGeneralSection,
|
|
1237
|
+
MainMediaSection: ProductMediaSection,
|
|
1238
|
+
MainOptionSection: ProductOptionSection,
|
|
1239
|
+
MainVariantSection: ProductVariantSection,
|
|
1240
|
+
SidebarSellerSection: ProductSellerSection,
|
|
1241
|
+
SidebarSalesChannelSection: ProductSalesChannelSection,
|
|
1242
|
+
SidebarShippingProfileSection: ProductShippingProfileSection,
|
|
1243
|
+
SidebarOrganizationSection: ProductOrganizationSection,
|
|
1244
|
+
SidebarAttributeSection: ProductAttributeSection
|
|
1245
|
+
});
|
|
1246
|
+
|
|
1295
1247
|
export {
|
|
1296
|
-
|
|
1297
|
-
ProductDetail as Component,
|
|
1298
|
-
productLoader as loader
|
|
1248
|
+
ProductDetailPage
|
|
1299
1249
|
};
|