@mercurjs/admin 2.2.0-canary.3 → 2.2.0-canary.5
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/{[id]-YI7UXOO2.js → [id]-272FUOXG.js} +7 -3
- package/dist/{add-campaign-promotions-OLNTDP26.js → add-campaign-promotions-FAG3FAOF.js} +3 -3
- package/dist/{adjust-inventory-CVWSBMHU.js → adjust-inventory-EAAPNIBZ.js} +17 -17
- package/dist/{api-key-management-create-7RWOCVAO.js → api-key-management-create-MRLR4WFZ.js} +3 -3
- package/dist/{api-key-management-detail-ZIIDMHFI.js → api-key-management-detail-PIN6NFQF.js} +18 -18
- package/dist/{api-key-management-edit-ACH6TJAX.js → api-key-management-edit-EZHFP3RR.js} +3 -3
- package/dist/{api-key-management-list-JHBBXGHH.js → api-key-management-list-OPANEDHB.js} +4 -4
- package/dist/{api-key-management-sales-channels-XEBTUB5V.js → api-key-management-sales-channels-PBL3V4IS.js} +3 -3
- package/dist/{attribute-create-HGNJXJBO.js → attribute-create-F55LOXRA.js} +19 -19
- package/dist/{attribute-detail-JF2RHBXC.js → attribute-detail-NRDJUPTJ.js} +17 -17
- package/dist/{attribute-edit-ADBGDZTL.js → attribute-edit-SB6GN67M.js} +2 -2
- package/dist/{attribute-edit-possible-value-OLHGHLA3.js → attribute-edit-possible-value-5CLQOLVR.js} +2 -2
- package/dist/{attribute-list-OHU2QMUG.js → attribute-list-URWKNTSJ.js} +16 -16
- package/dist/{campaign-create-VFFIIRE4.js → campaign-create-7BELREFT.js} +3 -3
- package/dist/{campaign-detail-AZKBPDLC.js → campaign-detail-QMLFWZ6K.js} +20 -20
- package/dist/{categories-metadata-YZUP43OH.js → categories-metadata-5GXBBHEH.js} +16 -16
- package/dist/{category-create-2MRYTSYM.js → category-create-QPQQGIEN.js} +4 -4
- package/dist/{category-detail-B2TSD5V4.js → category-detail-RIKOZMPK.js} +24 -24
- package/dist/{category-edit-QLOS2LBA.js → category-edit-DJP7TK4X.js} +2 -2
- package/dist/{category-list-U7ZQBSZN.js → category-list-T5SE63HU.js} +4 -4
- package/dist/{category-organize-TIKTYJFZ.js → category-organize-DQQGAAJY.js} +2 -2
- package/dist/{category-products-KIP4KAF2.js → category-products-255EJFTV.js} +21 -21
- package/dist/{chunk-YXSTDH2B.js → chunk-2MVNFKL6.js} +6 -6
- package/dist/{chunk-CIZUUV2Y.js → chunk-2XVH2IJL.js} +8 -8
- package/dist/{chunk-UPNMDPFX.js → chunk-2YN2OI3W.js} +4 -4
- package/dist/{chunk-XZZTC7E5.js → chunk-2ZRWLCYP.js} +1 -1
- package/dist/{chunk-M75FCGHK.js → chunk-34OFJ74B.js} +2 -2
- package/dist/{chunk-GKW445WA.js → chunk-3L7M4E7W.js} +1 -1
- package/dist/{chunk-XALYF4WJ.js → chunk-3OUWXGMT.js} +101 -405
- package/dist/{chunk-AXTQMIIK.js → chunk-46A3QXAL.js} +8 -27
- package/dist/{chunk-FTAR3BDS.js → chunk-4RT7P5ZQ.js} +1 -1
- package/dist/{chunk-IRTI3AS3.js → chunk-4XFFF2L5.js} +2 -2
- package/dist/{chunk-ZSFJVRRS.js → chunk-5AZCIOS4.js} +1 -1
- package/dist/{chunk-VOMVHF67.js → chunk-5J2HQOKK.js} +3 -3
- package/dist/{chunk-DQGGJSOO.js → chunk-6NDM5WGE.js} +1 -1
- package/dist/{chunk-K4TGNN4P.js → chunk-6RHAGO5O.js} +2 -2
- package/dist/{chunk-3O6YY3R5.js → chunk-6WBQDJIH.js} +217 -155
- package/dist/{chunk-EAC7NFA2.js → chunk-6XTHMAA2.js} +2 -2
- package/dist/{chunk-GNLPUGYK.js → chunk-7BD24KNM.js} +2 -2
- package/dist/{chunk-WV4SQ57G.js → chunk-7O6WJTBI.js} +8 -10
- package/dist/{chunk-2LQ5SCPB.js → chunk-ACDG3RAL.js} +4 -4
- package/dist/{chunk-UXD3VNBO.js → chunk-AJLGY3LQ.js} +1 -2
- package/dist/{chunk-EREXPX6I.js → chunk-AKC67AN5.js} +18 -35
- package/dist/{chunk-3EDQIZV6.js → chunk-B66CMFMH.js} +2 -2
- package/dist/{chunk-TP7L6M7V.js → chunk-BKNAX6QQ.js} +1 -1
- package/dist/{chunk-JRUUOZ5S.js → chunk-CKUIM5ZD.js} +5 -5
- package/dist/{chunk-PE4STCQ5.js → chunk-D2NBZVQC.js} +6 -6
- package/dist/{chunk-SNPNLTCO.js → chunk-DDANJIE7.js} +3 -3
- package/dist/{chunk-3P4VTL4S.js → chunk-DV7QV3X2.js} +7 -7
- package/dist/{chunk-UXQAHUGZ.js → chunk-DWCBB4QM.js} +1 -1
- package/dist/{chunk-OSEIN4Y2.js → chunk-E5WBU7ZR.js} +1 -1
- package/dist/{chunk-H5PYBIOZ.js → chunk-EB5QHYKL.js} +1 -1
- package/dist/{chunk-TITPJHIL.js → chunk-EBQUMS7H.js} +1 -1
- package/dist/{chunk-QIU6DJY6.js → chunk-EFZBEG7O.js} +1 -1
- package/dist/{chunk-SRDK3XX7.js → chunk-EZGIPTIF.js} +2 -2
- package/dist/{chunk-FMRP2CNF.js → chunk-F5H5JZQZ.js} +137 -179
- package/dist/{chunk-EJTB2SLE.js → chunk-F7O6IXPA.js} +1 -1
- package/dist/{chunk-S5BJ5CMF.js → chunk-FEC24V7X.js} +1 -1
- package/dist/{chunk-G4PROEJI.js → chunk-FPV32HVT.js} +3 -3
- package/dist/{chunk-6UQ5WDW6.js → chunk-G3GSRFTB.js} +4 -4
- package/dist/{chunk-SUHCZ33F.js → chunk-GPJ6KVY2.js} +2 -2
- package/dist/{chunk-CKACZXMP.js → chunk-GQLVERZW.js} +1 -1
- package/dist/chunk-GVEF6UDT.js +8 -0
- package/dist/{chunk-BHOZKBYY.js → chunk-HZQGZQTV.js} +1 -1
- package/dist/{chunk-WKCYMDTV.js → chunk-IWI34SYT.js} +1 -1
- package/dist/{chunk-JQBSPUH2.js → chunk-J4MAIN7L.js} +1 -1
- package/dist/{chunk-AB2LHP3M.js → chunk-K43FFKGD.js} +1 -1
- package/dist/{chunk-2S6VXFBZ.js → chunk-K6L5PHHQ.js} +4 -4
- package/dist/{chunk-BCVUMATY.js → chunk-KJSCFEXT.js} +4 -4
- package/dist/{chunk-CBGXKU7Z.js → chunk-KMZOBR5Q.js} +4 -4
- package/dist/{chunk-V6OGMYAI.js → chunk-KT7X72J4.js} +158 -169
- package/dist/{chunk-P25PIADJ.js → chunk-KTBL35I2.js} +1 -1
- package/dist/{chunk-WS63IRBI.js → chunk-L3E6LES5.js} +3 -3
- package/dist/chunk-LD7NVG2X.js +213 -0
- package/dist/{chunk-YGAX72XV.js → chunk-LO2ZWQGL.js} +0 -2
- package/dist/{chunk-BLYJZMNE.js → chunk-LO7NJYHZ.js} +2 -2
- package/dist/{chunk-QBVFUDNG.js → chunk-LXMGYWPO.js} +3 -3
- package/dist/{chunk-5DNAS3T4.js → chunk-M5AJSIRN.js} +1 -1
- package/dist/{chunk-YL3SCKWU.js → chunk-MFI5TG54.js} +6 -6
- package/dist/{chunk-YLKG7W4P.js → chunk-MKBCBAS2.js} +4 -4
- package/dist/{chunk-ALATTLBM.js → chunk-MSESXKMA.js} +1 -1
- package/dist/{chunk-BGGUVHDG.js → chunk-N3334MXP.js} +23 -23
- package/dist/{chunk-B3EEDC47.js → chunk-N3BYBEDV.js} +2 -2
- package/dist/{chunk-R2MI5GL4.js → chunk-NMFVQDVF.js} +4 -8
- package/dist/chunk-P42E3L6Z.js +142 -0
- package/dist/{chunk-6FIU2V6Y.js → chunk-PR7Y27BW.js} +1 -1
- package/dist/{chunk-NQBSSM5V.js → chunk-Q23KHB6V.js} +2 -2
- package/dist/{chunk-637OFDFC.js → chunk-QFE4AEQJ.js} +8 -16
- package/dist/{chunk-XODRTI2W.js → chunk-R5F52U3C.js} +1 -1
- package/dist/{chunk-3IVTUFBM.js → chunk-SA3MMYXT.js} +1 -1
- package/dist/{chunk-Q6I2IKJB.js → chunk-SONUZNDT.js} +2 -2
- package/dist/{chunk-X2IZZAII.js → chunk-SS7LB52P.js} +5 -5
- package/dist/{chunk-DTYQWWHT.js → chunk-SXGSYSW7.js} +1 -1
- package/dist/{chunk-AMOSVDPE.js → chunk-TE245WV3.js} +4 -4
- package/dist/{chunk-PXTJJQKJ.js → chunk-TNNQPNXY.js} +1 -1
- package/dist/{chunk-WDH5C2NS.js → chunk-TXNRS2JR.js} +1 -1
- package/dist/{chunk-BE6JLTMI.js → chunk-UFGVU7RF.js} +1 -1
- package/dist/{chunk-6RQR3B6T.js → chunk-UKDC2AQR.js} +1 -2
- package/dist/{chunk-RVBZV3BH.js → chunk-UNOG2S56.js} +115 -180
- package/dist/{chunk-ZHOI4QMK.js → chunk-UXGLM3B4.js} +1 -1
- package/dist/{chunk-2V4BOCYF.js → chunk-VERWLDVW.js} +3 -3
- package/dist/{chunk-YPESX7CE.js → chunk-WRVGLMRW.js} +1 -1
- package/dist/{chunk-ED7XNGZD.js → chunk-X3PXBMI3.js} +1 -1
- package/dist/{chunk-N2LH7A4X.js → chunk-X7H7TIOT.js} +9 -9
- package/dist/{chunk-XTSMGXL2.js → chunk-XAIID3PU.js} +4 -4
- package/dist/{chunk-A772RAKB.js → chunk-ZB4SO44T.js} +1 -1
- package/dist/{chunk-2YYXP6XI.js → chunk-ZRFWXNT3.js} +1 -37
- package/dist/{collection-add-products-5ULJZWE2.js → collection-add-products-4ZTBHENL.js} +21 -21
- package/dist/{collection-create-HUNYHKUJ.js → collection-create-GPBN7KO6.js} +2 -2
- package/dist/{collection-detail-2KCCLJMV.js → collection-detail-W7OC2ALM.js} +22 -22
- package/dist/{collection-edit-OQGYTQDO.js → collection-edit-NVRFKO46.js} +2 -2
- package/dist/{collection-list-QHZSZGPO.js → collection-list-B7LALPSA.js} +23 -23
- package/dist/{collection-metadata-47N7TUOH.js → collection-metadata-E4C54MTU.js} +16 -16
- package/dist/{commission-rate-create-7SH3LKQP.js → commission-rate-create-7MEIKAXK.js} +33 -33
- package/dist/{commission-rate-detail-LAZZLZVX.js → commission-rate-detail-XBMB3Y7S.js} +17 -17
- package/dist/{commission-rate-edit-ISER2E7G.js → commission-rate-edit-XXUAGK5Q.js} +33 -33
- package/dist/{constants-26tEckuq.d.ts → constants-Bahlh59D.d.ts} +8 -4
- package/dist/{customer-detail-D5SSLNFT.js → customer-detail-ONZGPCHW.js} +20 -20
- package/dist/{customer-group-detail-KRT7E2JA.js → customer-group-detail-XTCDJX7O.js} +16 -16
- package/dist/{customer-group-list-KKDIESQ6.js → customer-group-list-63ER7WQH.js} +16 -16
- package/dist/{customer-group-metadata-J6JY7DZ3.js → customer-group-metadata-N7HGHXNC.js} +16 -16
- package/dist/{customer-metadata-AH2LBK4T.js → customer-metadata-63OWV4KB.js} +16 -16
- package/dist/{customers-add-customer-group-AHGAPEIS.js → customers-add-customer-group-NUXPXNUC.js} +16 -16
- package/dist/{edit-inventory-item-ADNLKLCN.js → edit-inventory-item-YOJTYA7H.js} +16 -16
- package/dist/{edit-inventory-item-attributes-XVR2WLDU.js → edit-inventory-item-attributes-JGY633F2.js} +16 -16
- package/dist/{edit-reservation-HQQL42QX.js → edit-reservation-ACDUXG33.js} +2 -2
- package/dist/{edit-rules-YMKM5JPI.js → edit-rules-4VAD5Q3L.js} +17 -17
- package/dist/index.d.ts +2 -2
- package/dist/index.js +517 -517
- package/dist/{inventory-create-IVESXFSV.js → inventory-create-3NJZLSFO.js} +19 -19
- package/dist/{inventory-detail-TINIAFVB.js → inventory-detail-B3HU2OVR.js} +17 -17
- package/dist/{inventory-list-YLIAKQXI.js → inventory-list-AE44PEW7.js} +2 -2
- package/dist/{inventory-metadata-6INRH2JC.js → inventory-metadata-WCFTI7AH.js} +16 -16
- package/dist/{inventory-stock-6YGTATID.js → inventory-stock-M65W4GRN.js} +201 -39
- package/dist/{loader-6KDBTRVR.js → loader-O4EABIXE.js} +1 -1
- package/dist/{location-detail-EK2S7WOK.js → location-detail-2NCZD5MO.js} +19 -19
- package/dist/{location-fulfillment-providers-YQAUTEWK.js → location-fulfillment-providers-3XKOFATD.js} +21 -21
- package/dist/{location-list-IV323QW2.js → location-list-VS6V2FXE.js} +16 -16
- package/dist/{location-sales-channels-EYUXMTW7.js → location-sales-channels-TEUZYDTT.js} +2 -2
- package/dist/{location-service-zone-shipping-option-create-36JZFRGY.js → location-service-zone-shipping-option-create-LAM3OHBC.js} +19 -19
- package/dist/{location-service-zone-shipping-option-pricing-JLGCOZGS.js → location-service-zone-shipping-option-pricing-POBJOF3Z.js} +7 -7
- package/dist/{login-6L3RMREO.js → login-DJWU5X5L.js} +16 -16
- package/dist/{manage-locations-CFTM6DNH.js → manage-locations-E2XQPKKE.js} +1 -1
- package/dist/{marketplace-detail-BAU2MEJT.js → marketplace-detail-IQLU7R3J.js} +19 -19
- package/dist/{marketplace-metadata-KRCGKOCA.js → marketplace-metadata-7DNBHUDD.js} +18 -18
- package/dist/{offers-566UJ2JF.js → offers-UJCSO3RD.js} +3 -3
- package/dist/{order-allocate-items-DJ2V4B7A.js → order-allocate-items-TMVWJUV3.js} +3 -3
- package/dist/{order-create-claim-RMDDCUZ6.js → order-create-claim-MPSXY24H.js} +8 -8
- package/dist/{order-create-edit-PQ54JFZZ.js → order-create-edit-6JLXERBY.js} +4 -4
- package/dist/{order-create-exchange-T6DBVS75.js → order-create-exchange-O6COEAGJ.js} +22 -22
- package/dist/{order-create-fulfillment-SMSUJSBN.js → order-create-fulfillment-Y4HQ5YRS.js} +17 -17
- package/dist/{order-create-refund-OW3MIXBY.js → order-create-refund-TCNCSOMX.js} +20 -20
- package/dist/{order-create-return-YCX6C3VP.js → order-create-return-EVSD6GKE.js} +4 -4
- package/dist/{order-create-shipment-5ZAWH5CZ.js → order-create-shipment-EWOJJXEM.js} +17 -17
- package/dist/{order-detail-2OAEGBQG.js → order-detail-BOW62X75.js} +28 -28
- package/dist/{order-edit-billing-address-VGZBQHF5.js → order-edit-billing-address-5ZBOWDWQ.js} +18 -18
- package/dist/{order-edit-email-OOCXVRET.js → order-edit-email-DQJW2SAM.js} +17 -17
- package/dist/{order-edit-shipping-address-B4F3E5RE.js → order-edit-shipping-address-RIML4XFQ.js} +17 -17
- package/dist/{order-list-M6F7PKVN.js → order-list-U5DZYLJK.js} +7 -7
- package/dist/{order-metadata-AN6MPHHT.js → order-metadata-WGZUETFN.js} +17 -17
- package/dist/{order-receive-return-DZ4IUOHY.js → order-receive-return-MDUU4L4X.js} +18 -18
- package/dist/{order-request-transfer-A2NJSQ4H.js → order-request-transfer-QFUMEZPD.js} +17 -17
- package/dist/pages/index.d.ts +35 -288
- package/dist/pages/index.js +162 -162
- package/dist/{price-list-configuration-XAHXLCXR.js → price-list-configuration-O3MR5IUA.js} +2 -2
- package/dist/{price-list-create-CZAQLDSW.js → price-list-create-J4AJG42T.js} +25 -25
- package/dist/{price-list-detail-6VXW6O5I.js → price-list-detail-D2ETNZ5N.js} +23 -23
- package/dist/{price-list-edit-ZVLD4M5T.js → price-list-edit-OJAYEUYO.js} +2 -2
- package/dist/{price-list-list-ER4TOZTY.js → price-list-list-ARICU2NA.js} +4 -4
- package/dist/{price-list-prices-add-FQI7EF6V.js → price-list-prices-add-FQLQ5DPX.js} +24 -24
- package/dist/{price-list-prices-edit-WHCIGSB2.js → price-list-prices-edit-4HBSUC5W.js} +18 -18
- package/dist/{product-add-existing-attributes-QKIGOAE2.js → product-add-existing-attributes-IHCIKDIH.js} +18 -18
- package/dist/{product-attributes-MHRXZK5S.js → product-attributes-ZURXNZ3J.js} +2 -2
- package/dist/{product-brand-detail-WYALM342.js → product-brand-detail-O7UKYV4H.js} +22 -22
- package/dist/{product-brand-metadata-EAMW6PQJ.js → product-brand-metadata-N2CJ5K3Z.js} +16 -16
- package/dist/{product-bulk-edit-J6ZP7GGM.js → product-bulk-edit-LHCPVFUX.js} +5 -7
- package/dist/{product-create-ZVQOFCJA.js → product-create-BQXFDMEP.js} +24 -24
- package/dist/{product-create-attribute-ZT3VZDNZ.js → product-create-attribute-UBWABT2Q.js} +2 -2
- package/dist/product-create-variant-MVYZPDO7.js +20 -0
- package/dist/{product-detail-N6W4M6TC.js → product-detail-I57XSYLB.js} +19 -20
- package/dist/{product-edit-EKAZRIJ6.js → product-edit-EDW3D2KW.js} +2 -4
- package/dist/{product-list-VWBUTMXT.js → product-list-PR532XII.js} +23 -23
- package/dist/{product-media-KREKRDOC.js → product-media-J3VTWOU4.js} +5 -5
- package/dist/{product-metadata-O3BAEUYB.js → product-metadata-T2D4GEIP.js} +17 -17
- package/dist/{product-organization-SBQY44IF.js → product-organization-D6UMZAUE.js} +4 -4
- package/dist/{product-sales-channels-TFOGXCMI.js → product-sales-channels-NTT6KMSD.js} +3 -3
- package/dist/{product-shipping-profile-E4HJ4EYW.js → product-shipping-profile-WM7LORFB.js} +2 -2
- package/dist/{product-tag-create-7JBM6I3V.js → product-tag-create-47G425O2.js} +16 -16
- package/dist/{product-tag-detail-KSJ45MJU.js → product-tag-detail-VNGOBWYE.js} +32 -32
- package/dist/{product-tag-edit-O2ADFDD6.js → product-tag-edit-DN7IVL75.js} +16 -16
- package/dist/{product-tag-list-NQPPUWZG.js → product-tag-list-ZGRJZT2U.js} +32 -32
- package/dist/{product-tag-metadata-SBOUTUXY.js → product-tag-metadata-YLDBRJMI.js} +16 -16
- package/dist/{product-type-detail-L2ASZ4GW.js → product-type-detail-MPONGCVO.js} +23 -23
- package/dist/{product-type-metadata-KN5OXR6J.js → product-type-metadata-TDAER7JD.js} +17 -17
- package/dist/{product-variant-detail-H2YRFDAU.js → product-variant-detail-5BF6JTHV.js} +21 -30
- package/dist/{product-variant-edit-T267E4SW.js → product-variant-edit-2RHFG2CZ.js} +167 -257
- package/dist/{product-variant-metadata-QESZ7VS2.js → product-variant-metadata-G2LLH7YK.js} +16 -16
- package/dist/{promotion-create-TGC6BVWF.js → promotion-create-G3M4UJX2.js} +21 -21
- package/dist/{promotion-detail-VYIXZMMD.js → promotion-detail-4EHU6FKF.js} +19 -19
- package/dist/{promotion-list-C3SKV5BJ.js → promotion-list-AFBLWKTJ.js} +4 -4
- package/dist/{refund-reason-create-2KEQFOID.js → refund-reason-create-6RPQHIJI.js} +16 -16
- package/dist/{refund-reason-edit-E7CB7SM3.js → refund-reason-edit-W2TVZB3N.js} +16 -16
- package/dist/{refund-reason-list-PAWAU6KN.js → refund-reason-list-TS6JWYS4.js} +27 -27
- package/dist/{region-metadata-723RQGHS.js → region-metadata-TNSJDCBM.js} +19 -19
- package/dist/{reservation-create-Y3HG4AZA.js → reservation-create-2TDZAX5A.js} +2 -2
- package/dist/{reservation-detail-HQMADZ56.js → reservation-detail-KFOVTTFH.js} +18 -18
- package/dist/{reservation-list-YKC3JJ6K.js → reservation-list-K4RPXJTO.js} +3 -3
- package/dist/{reservation-metadata-UG4YTEMY.js → reservation-metadata-HBFAVVPW.js} +17 -17
- package/dist/{reset-password-2VNU52CE.js → reset-password-3NYZNQPK.js} +1 -1
- package/dist/{return-reason-list-YH3HHTLJ.js → return-reason-list-WBLPUYD4.js} +14 -14
- package/dist/{sales-channel-add-products-IOS5FT56.js → sales-channel-add-products-IHGDKRKH.js} +21 -21
- package/dist/{sales-channel-create-BSNCLZWR.js → sales-channel-create-MPZCRQBT.js} +2 -2
- package/dist/{sales-channel-detail-6T4M2IEH.js → sales-channel-detail-QCFO7VUA.js} +22 -22
- package/dist/{sales-channel-edit-FUDXMZYV.js → sales-channel-edit-GILK4QK3.js} +2 -2
- package/dist/{sales-channel-list-GYLGH4U7.js → sales-channel-list-YNHR5EHL.js} +17 -17
- package/dist/{sales-channel-metadata-H6RSHKVP.js → sales-channel-metadata-OEQVWJRQ.js} +16 -16
- package/dist/{shipping-option-type-create-QAOW7753.js → shipping-option-type-create-SMXDCF6I.js} +16 -16
- package/dist/{shipping-option-type-detail-QGWVDTDU.js → shipping-option-type-detail-MO3YRUVR.js} +18 -18
- package/dist/{shipping-option-type-edit-WXYBDRNY.js → shipping-option-type-edit-KO64TZS6.js} +16 -16
- package/dist/{shipping-option-type-list-YSWP6DSC.js → shipping-option-type-list-6C26GWDM.js} +18 -18
- package/dist/{shipping-profile-metadata-UE53IA3J.js → shipping-profile-metadata-FLTMLAZN.js} +16 -16
- package/dist/{store-bulk-edit-AMSI34AW.js → store-bulk-edit-LW6ABDJK.js} +2 -2
- package/dist/{store-create-WNFRHXWR.js → store-create-STR6YNFJ.js} +19 -19
- package/dist/{store-details-4KYA642K.js → store-details-3U4OEFWC.js} +27 -41
- package/dist/{store-edit-GWHK5PX5.js → store-edit-KRBR5MGV.js} +6 -6
- package/dist/{store-list-SUFT46IY.js → store-list-PJ3U254I.js} +23 -23
- package/dist/{store-member-invite-MUSU7EQ7.js → store-member-invite-AKH3KHMF.js} +1 -1
- package/dist/{tax-region-create-3KVECMFN.js → tax-region-create-NEKIT7TT.js} +17 -17
- package/dist/{tax-region-detail-AOT4X4DZ.js → tax-region-detail-LVN5XSN5.js} +18 -18
- package/dist/{tax-region-edit-5T7VHKIA.js → tax-region-edit-4PJV5F5X.js} +16 -16
- package/dist/{tax-region-metadata-RSZCJGJT.js → tax-region-metadata-EYRFMJLL.js} +16 -16
- package/dist/{tax-region-province-detail-XEMIX5SQ.js → tax-region-province-detail-MTHKW7LW.js} +18 -18
- package/dist/{tax-region-tax-override-create-74C24OCP.js → tax-region-tax-override-create-OGW3MPBD.js} +31 -31
- package/dist/{tax-region-tax-override-edit-KSQI4ITI.js → tax-region-tax-override-edit-LTZCYN4Y.js} +33 -33
- package/dist/{user-detail-W7DGVXDZ.js → user-detail-2OTVNTCL.js} +1 -1
- package/dist/{user-metadata-3AFZX3DM.js → user-metadata-GIR3A7WO.js} +16 -16
- package/package.json +2 -2
- package/dist/chunk-IEPNHH7Z.js +0 -170
- package/dist/chunk-QSGR43JM.js +0 -30
- package/dist/chunk-RAWXS763.js +0 -652
- package/dist/chunk-RQ4NMLSS.js +0 -8
- package/dist/chunk-U7XILJH6.js +0 -423
- package/dist/product-create-option-NIAP75EE.js +0 -130
- package/dist/product-create-variant-KKOMOEDX.js +0 -60
- package/dist/product-edit-option-OZUZGMIM.js +0 -166
- package/dist/product-prices-R5JOHVGS.js +0 -267
- package/dist/product-stock-EIP2XJUR.js +0 -545
- package/dist/product-variant-manage-inventory-items-Q5MJG3EJ.js +0 -337
- package/dist/{chunk-WVKVPGJW.js → chunk-FNKBJCNF.js} +3 -3
- package/dist/{chunk-RQPDD3RI.js → chunk-NUC27ELX.js} +3 -3
- package/dist/{promotion-add-campaign-O3RTMS3W.js → promotion-add-campaign-S3JJSFHT.js} +2 -2
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from "./chunk-V74Y5NIV.js";
|
|
9
9
|
import {
|
|
10
10
|
AttributeValueInput
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-M5AJSIRN.js";
|
|
12
12
|
import "./chunk-JRTZWK77.js";
|
|
13
13
|
import {
|
|
14
14
|
optionalInt
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AJLGY3LQ.js";
|
|
16
16
|
import "./chunk-SMQT3ZNO.js";
|
|
17
17
|
import "./chunk-AW77UWCZ.js";
|
|
18
18
|
import "./chunk-TKGWSUEI.js";
|
|
@@ -28,44 +28,44 @@ import {
|
|
|
28
28
|
} from "./chunk-3QSRE5LS.js";
|
|
29
29
|
import {
|
|
30
30
|
require_dist
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-F5H5JZQZ.js";
|
|
32
|
+
import "./chunk-46A3QXAL.js";
|
|
33
33
|
import "./chunk-OH4AABUT.js";
|
|
34
34
|
import "./chunk-AEMDNTW5.js";
|
|
35
35
|
import "./chunk-LYD3C73Z.js";
|
|
36
|
-
import "./chunk-FTAR3BDS.js";
|
|
37
|
-
import "./chunk-46M463BR.js";
|
|
38
36
|
import "./chunk-ZZ3XFIEM.js";
|
|
37
|
+
import "./chunk-4RT7P5ZQ.js";
|
|
39
38
|
import "./chunk-533GMKEG.js";
|
|
39
|
+
import "./chunk-46M463BR.js";
|
|
40
40
|
import "./chunk-YFRC6GEN.js";
|
|
41
|
+
import "./chunk-JPNPTILP.js";
|
|
41
42
|
import "./chunk-DAXXLQKB.js";
|
|
42
43
|
import "./chunk-OHOWEMHO.js";
|
|
43
|
-
import "./chunk-JPNPTILP.js";
|
|
44
44
|
import "./chunk-GKGLVDDV.js";
|
|
45
|
+
import "./chunk-ESPLVOFC.js";
|
|
45
46
|
import "./chunk-N6SI4IIT.js";
|
|
46
47
|
import "./chunk-WJJXUXSO.js";
|
|
47
48
|
import "./chunk-LAPEZATU.js";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-2ZRWLCYP.js";
|
|
50
|
+
import "./chunk-E5WBU7ZR.js";
|
|
51
|
+
import "./chunk-FXWKGNRV.js";
|
|
52
|
+
import "./chunk-VDKOJ5WD.js";
|
|
50
53
|
import "./chunk-ZN7LWXVC.js";
|
|
54
|
+
import "./chunk-5TRY5IMZ.js";
|
|
55
|
+
import "./chunk-EPHVGD5Z.js";
|
|
56
|
+
import "./chunk-N3BYBEDV.js";
|
|
57
|
+
import "./chunk-ZB4SO44T.js";
|
|
51
58
|
import "./chunk-VYMODH6P.js";
|
|
52
59
|
import "./chunk-LEG67A2R.js";
|
|
53
60
|
import "./chunk-PRBE5CM3.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-B3EEDC47.js";
|
|
57
|
-
import "./chunk-A772RAKB.js";
|
|
58
|
-
import "./chunk-ESPLVOFC.js";
|
|
59
|
-
import "./chunk-FXWKGNRV.js";
|
|
60
|
-
import "./chunk-VDKOJ5WD.js";
|
|
61
|
-
import "./chunk-S5BJ5CMF.js";
|
|
62
|
-
import "./chunk-H5PYBIOZ.js";
|
|
61
|
+
import "./chunk-FEC24V7X.js";
|
|
62
|
+
import "./chunk-EB5QHYKL.js";
|
|
63
63
|
import {
|
|
64
64
|
useProduct,
|
|
65
65
|
useProductVariant,
|
|
66
66
|
useUpdateProductVariant,
|
|
67
67
|
variantsQueryKeys
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-ZRFWXNT3.js";
|
|
69
69
|
import {
|
|
70
70
|
queryClient
|
|
71
71
|
} from "./chunk-RHKRREUU.js";
|
|
@@ -85,7 +85,7 @@ import { useLoaderData, useParams, useSearchParams } from "react-router-dom";
|
|
|
85
85
|
// src/pages/product-variants/product-variant-edit/components/product-edit-variant-form/product-edit-variant-form.tsx
|
|
86
86
|
var import_types = __toESM(require_dist(), 1);
|
|
87
87
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
88
|
-
import { Button, Divider, Heading, Input,
|
|
88
|
+
import { Button, Divider, Heading, Input, toast } from "@medusajs/ui";
|
|
89
89
|
import { useForm } from "react-hook-form";
|
|
90
90
|
import { useTranslation } from "react-i18next";
|
|
91
91
|
import { z } from "zod";
|
|
@@ -97,8 +97,6 @@ var ProductEditVariantSchema = z.object({
|
|
|
97
97
|
ean: z.string().optional(),
|
|
98
98
|
upc: z.string().optional(),
|
|
99
99
|
barcode: z.string().optional(),
|
|
100
|
-
manage_inventory: z.boolean(),
|
|
101
|
-
allow_backorder: z.boolean(),
|
|
102
100
|
weight: optionalInt,
|
|
103
101
|
height: optionalInt,
|
|
104
102
|
width: optionalInt,
|
|
@@ -106,7 +104,7 @@ var ProductEditVariantSchema = z.object({
|
|
|
106
104
|
mid_code: z.string().optional(),
|
|
107
105
|
hs_code: z.string().optional(),
|
|
108
106
|
origin_country: z.string().optional(),
|
|
109
|
-
|
|
107
|
+
options: z.record(z.string()).optional()
|
|
110
108
|
});
|
|
111
109
|
var ProductEditVariantForm = ({
|
|
112
110
|
variant,
|
|
@@ -115,15 +113,17 @@ var ProductEditVariantForm = ({
|
|
|
115
113
|
const { t } = useTranslation();
|
|
116
114
|
const { handleSuccess } = useRouteModal();
|
|
117
115
|
const variantAttributes = product.attributes?.filter((a) => a.is_variant_axis) ?? [];
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
116
|
+
const defaultOptions = variantAttributes.reduce(
|
|
117
|
+
(acc, attribute) => {
|
|
118
|
+
const key = attribute.handle ?? attribute.id;
|
|
119
|
+
const matched = variant.options?.find(
|
|
120
|
+
(o) => o.option?.title === attribute.name
|
|
121
|
+
);
|
|
122
|
+
acc[key] = matched?.value ?? "";
|
|
123
|
+
return acc;
|
|
124
|
+
},
|
|
125
|
+
{}
|
|
126
|
+
);
|
|
127
127
|
const form = useForm({
|
|
128
128
|
defaultValues: {
|
|
129
129
|
title: variant.title || "",
|
|
@@ -132,8 +132,6 @@ var ProductEditVariantForm = ({
|
|
|
132
132
|
ean: variant.ean || "",
|
|
133
133
|
upc: variant.upc || "",
|
|
134
134
|
barcode: variant.barcode || "",
|
|
135
|
-
manage_inventory: variant.manage_inventory || false,
|
|
136
|
-
allow_backorder: variant.allow_backorder || false,
|
|
137
135
|
weight: variant.weight || "",
|
|
138
136
|
height: variant.height || "",
|
|
139
137
|
width: variant.width || "",
|
|
@@ -141,7 +139,7 @@ var ProductEditVariantForm = ({
|
|
|
141
139
|
mid_code: variant.mid_code || "",
|
|
142
140
|
hs_code: variant.hs_code || "",
|
|
143
141
|
origin_country: variant.origin_country || "",
|
|
144
|
-
|
|
142
|
+
options: defaultOptions
|
|
145
143
|
},
|
|
146
144
|
resolver: zodResolver(ProductEditVariantSchema)
|
|
147
145
|
});
|
|
@@ -156,16 +154,18 @@ var ProductEditVariantForm = ({
|
|
|
156
154
|
height,
|
|
157
155
|
width,
|
|
158
156
|
length,
|
|
159
|
-
|
|
160
|
-
manage_inventory,
|
|
161
|
-
attribute_values,
|
|
157
|
+
options,
|
|
162
158
|
...optional
|
|
163
159
|
} = data;
|
|
164
160
|
const nullableData = transformNullableFormData(optional);
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
161
|
+
const cleanedOptions = variantAttributes.reduce(
|
|
162
|
+
(acc, attr) => {
|
|
163
|
+
const fieldKey = attr.handle ?? attr.id;
|
|
164
|
+
const v = options?.[fieldKey];
|
|
165
|
+
if (v && attr.name) acc[attr.name] = v;
|
|
166
|
+
return acc;
|
|
167
|
+
},
|
|
168
|
+
{}
|
|
169
169
|
);
|
|
170
170
|
await mutateAsync(
|
|
171
171
|
{
|
|
@@ -175,9 +175,7 @@ var ProductEditVariantForm = ({
|
|
|
175
175
|
width: transformNullableFormNumber(width),
|
|
176
176
|
length: transformNullableFormNumber(length),
|
|
177
177
|
title,
|
|
178
|
-
|
|
179
|
-
// manage_inventory,
|
|
180
|
-
attribute_values: Object.keys(cleanedAttributeValues).length ? cleanedAttributeValues : void 0,
|
|
178
|
+
options: Object.keys(cleanedOptions).length ? cleanedOptions : void 0,
|
|
181
179
|
...nullableData
|
|
182
180
|
},
|
|
183
181
|
{
|
|
@@ -263,7 +261,7 @@ var ProductEditVariantForm = ({
|
|
|
263
261
|
Form.Field,
|
|
264
262
|
{
|
|
265
263
|
control: form.control,
|
|
266
|
-
name: `
|
|
264
|
+
name: `options.${fieldKey}`,
|
|
267
265
|
render: ({ field: { value, onChange } }) => {
|
|
268
266
|
return /* @__PURE__ */ jsxs(
|
|
269
267
|
Form.Item,
|
|
@@ -315,224 +313,136 @@ var ProductEditVariantForm = ({
|
|
|
315
313
|
}
|
|
316
314
|
),
|
|
317
315
|
/* @__PURE__ */ jsx(Divider, { "data-testid": "product-variant-edit-form-divider-1" }),
|
|
318
|
-
/* @__PURE__ */
|
|
316
|
+
/* @__PURE__ */ jsx(
|
|
319
317
|
"div",
|
|
320
318
|
{
|
|
321
319
|
className: "flex flex-col gap-y-8",
|
|
322
320
|
"data-testid": "product-variant-edit-form-inventory-section",
|
|
323
|
-
children:
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
] });
|
|
362
|
-
}
|
|
321
|
+
children: /* @__PURE__ */ jsxs(
|
|
322
|
+
"div",
|
|
323
|
+
{
|
|
324
|
+
className: "flex flex-col gap-y-4",
|
|
325
|
+
"data-testid": "product-variant-edit-form-inventory-fields",
|
|
326
|
+
children: [
|
|
327
|
+
/* @__PURE__ */ jsx(
|
|
328
|
+
Heading,
|
|
329
|
+
{
|
|
330
|
+
level: "h2",
|
|
331
|
+
"data-testid": "product-variant-edit-form-inventory-header",
|
|
332
|
+
children: t("products.variant.inventory.header")
|
|
333
|
+
}
|
|
334
|
+
),
|
|
335
|
+
/* @__PURE__ */ jsx(
|
|
336
|
+
Form.Field,
|
|
337
|
+
{
|
|
338
|
+
control: form.control,
|
|
339
|
+
name: "sku",
|
|
340
|
+
render: ({ field }) => {
|
|
341
|
+
return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "product-variant-edit-form-sku-item", children: [
|
|
342
|
+
/* @__PURE__ */ jsx(
|
|
343
|
+
Form.Label,
|
|
344
|
+
{
|
|
345
|
+
optional: true,
|
|
346
|
+
"data-testid": "product-variant-edit-form-sku-label",
|
|
347
|
+
children: t("fields.sku")
|
|
348
|
+
}
|
|
349
|
+
),
|
|
350
|
+
/* @__PURE__ */ jsx(Form.Control, { "data-testid": "product-variant-edit-form-sku-control", children: /* @__PURE__ */ jsx("div", { "data-testid": "product-variant-edit-form-sku-input-wrapper", children: /* @__PURE__ */ jsx(
|
|
351
|
+
Input,
|
|
352
|
+
{
|
|
353
|
+
...field,
|
|
354
|
+
"data-testid": "product-variant-edit-form-sku-input"
|
|
355
|
+
}
|
|
356
|
+
) }) }),
|
|
357
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "product-variant-edit-form-sku-error" })
|
|
358
|
+
] });
|
|
363
359
|
}
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
}
|
|
360
|
+
}
|
|
361
|
+
),
|
|
362
|
+
/* @__PURE__ */ jsx(
|
|
363
|
+
Form.Field,
|
|
364
|
+
{
|
|
365
|
+
control: form.control,
|
|
366
|
+
name: "ean",
|
|
367
|
+
render: ({ field }) => {
|
|
368
|
+
return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "product-variant-edit-form-ean-item", children: [
|
|
369
|
+
/* @__PURE__ */ jsx(
|
|
370
|
+
Form.Label,
|
|
371
|
+
{
|
|
372
|
+
optional: true,
|
|
373
|
+
"data-testid": "product-variant-edit-form-ean-label",
|
|
374
|
+
children: t("fields.ean")
|
|
375
|
+
}
|
|
376
|
+
),
|
|
377
|
+
/* @__PURE__ */ jsx(Form.Control, { "data-testid": "product-variant-edit-form-ean-control", children: /* @__PURE__ */ jsx("div", { "data-testid": "product-variant-edit-form-ean-input-wrapper", children: /* @__PURE__ */ jsx(
|
|
378
|
+
Input,
|
|
379
|
+
{
|
|
380
|
+
...field,
|
|
381
|
+
"data-testid": "product-variant-edit-form-ean-input"
|
|
382
|
+
}
|
|
383
|
+
) }) }),
|
|
384
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "product-variant-edit-form-ean-error" })
|
|
385
|
+
] });
|
|
390
386
|
}
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
}
|
|
387
|
+
}
|
|
388
|
+
),
|
|
389
|
+
/* @__PURE__ */ jsx(
|
|
390
|
+
Form.Field,
|
|
391
|
+
{
|
|
392
|
+
control: form.control,
|
|
393
|
+
name: "upc",
|
|
394
|
+
render: ({ field }) => {
|
|
395
|
+
return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "product-variant-edit-form-upc-item", children: [
|
|
396
|
+
/* @__PURE__ */ jsx(
|
|
397
|
+
Form.Label,
|
|
398
|
+
{
|
|
399
|
+
optional: true,
|
|
400
|
+
"data-testid": "product-variant-edit-form-upc-label",
|
|
401
|
+
children: t("fields.upc")
|
|
402
|
+
}
|
|
403
|
+
),
|
|
404
|
+
/* @__PURE__ */ jsx(Form.Control, { "data-testid": "product-variant-edit-form-upc-control", children: /* @__PURE__ */ jsx("div", { "data-testid": "product-variant-edit-form-upc-input-wrapper", children: /* @__PURE__ */ jsx(
|
|
405
|
+
Input,
|
|
406
|
+
{
|
|
407
|
+
...field,
|
|
408
|
+
"data-testid": "product-variant-edit-form-upc-input"
|
|
409
|
+
}
|
|
410
|
+
) }) }),
|
|
411
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "product-variant-edit-form-upc-error" })
|
|
412
|
+
] });
|
|
417
413
|
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
}
|
|
414
|
+
}
|
|
415
|
+
),
|
|
416
|
+
/* @__PURE__ */ jsx(
|
|
417
|
+
Form.Field,
|
|
418
|
+
{
|
|
419
|
+
control: form.control,
|
|
420
|
+
name: "barcode",
|
|
421
|
+
render: ({ field }) => {
|
|
422
|
+
return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "product-variant-edit-form-barcode-item", children: [
|
|
423
|
+
/* @__PURE__ */ jsx(
|
|
424
|
+
Form.Label,
|
|
425
|
+
{
|
|
426
|
+
optional: true,
|
|
427
|
+
"data-testid": "product-variant-edit-form-barcode-label",
|
|
428
|
+
children: t("fields.barcode")
|
|
429
|
+
}
|
|
430
|
+
),
|
|
431
|
+
/* @__PURE__ */ jsx(Form.Control, { "data-testid": "product-variant-edit-form-barcode-control", children: /* @__PURE__ */ jsx("div", { "data-testid": "product-variant-edit-form-barcode-input-wrapper", children: /* @__PURE__ */ jsx(
|
|
432
|
+
Input,
|
|
433
|
+
{
|
|
434
|
+
...field,
|
|
435
|
+
"data-testid": "product-variant-edit-form-barcode-input"
|
|
436
|
+
}
|
|
437
|
+
) }) }),
|
|
438
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "product-variant-edit-form-barcode-error" })
|
|
439
|
+
] });
|
|
444
440
|
}
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
Form.Field,
|
|
451
|
-
{
|
|
452
|
-
control: form.control,
|
|
453
|
-
name: "manage_inventory",
|
|
454
|
-
render: ({ field: { value, onChange, ...field } }) => {
|
|
455
|
-
return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "product-variant-edit-form-manage-inventory-item", children: [
|
|
456
|
-
/* @__PURE__ */ jsxs(
|
|
457
|
-
"div",
|
|
458
|
-
{
|
|
459
|
-
className: "flex flex-col gap-y-1",
|
|
460
|
-
"data-testid": "product-variant-edit-form-manage-inventory-container",
|
|
461
|
-
children: [
|
|
462
|
-
/* @__PURE__ */ jsxs(
|
|
463
|
-
"div",
|
|
464
|
-
{
|
|
465
|
-
className: "flex items-center justify-between",
|
|
466
|
-
"data-testid": "product-variant-edit-form-manage-inventory-control-row",
|
|
467
|
-
children: [
|
|
468
|
-
/* @__PURE__ */ jsx(Form.Label, { "data-testid": "product-variant-edit-form-manage-inventory-label", children: t("products.variant.inventory.manageInventoryLabel") }),
|
|
469
|
-
/* @__PURE__ */ jsx(Form.Control, { "data-testid": "product-variant-edit-form-manage-inventory-control", children: /* @__PURE__ */ jsx("div", { "data-testid": "product-variant-edit-form-manage-inventory-switch-wrapper", children: /* @__PURE__ */ jsx(
|
|
470
|
-
Switch,
|
|
471
|
-
{
|
|
472
|
-
dir: "ltr",
|
|
473
|
-
checked: value,
|
|
474
|
-
className: "rtl:rotate-180",
|
|
475
|
-
onCheckedChange: (checked) => onChange(!!checked),
|
|
476
|
-
...field,
|
|
477
|
-
"data-testid": "product-variant-edit-form-manage-inventory-switch"
|
|
478
|
-
}
|
|
479
|
-
) }) })
|
|
480
|
-
]
|
|
481
|
-
}
|
|
482
|
-
),
|
|
483
|
-
/* @__PURE__ */ jsx(Form.Hint, { "data-testid": "product-variant-edit-form-manage-inventory-hint", children: t("products.variant.inventory.manageInventoryHint") })
|
|
484
|
-
]
|
|
485
|
-
}
|
|
486
|
-
),
|
|
487
|
-
/* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "product-variant-edit-form-manage-inventory-error" })
|
|
488
|
-
] });
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
),
|
|
492
|
-
/* @__PURE__ */ jsx(
|
|
493
|
-
Form.Field,
|
|
494
|
-
{
|
|
495
|
-
control: form.control,
|
|
496
|
-
name: "allow_backorder",
|
|
497
|
-
render: ({ field: { value, onChange, ...field } }) => {
|
|
498
|
-
return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "product-variant-edit-form-allow-backorder-item", children: [
|
|
499
|
-
/* @__PURE__ */ jsxs(
|
|
500
|
-
"div",
|
|
501
|
-
{
|
|
502
|
-
className: "flex flex-col gap-y-1",
|
|
503
|
-
"data-testid": "product-variant-edit-form-allow-backorder-container",
|
|
504
|
-
children: [
|
|
505
|
-
/* @__PURE__ */ jsxs(
|
|
506
|
-
"div",
|
|
507
|
-
{
|
|
508
|
-
className: "flex items-center justify-between",
|
|
509
|
-
"data-testid": "product-variant-edit-form-allow-backorder-control-row",
|
|
510
|
-
children: [
|
|
511
|
-
/* @__PURE__ */ jsx(Form.Label, { "data-testid": "product-variant-edit-form-allow-backorder-label", children: t("products.variant.inventory.allowBackordersLabel") }),
|
|
512
|
-
/* @__PURE__ */ jsx(Form.Control, { "data-testid": "product-variant-edit-form-allow-backorder-control", children: /* @__PURE__ */ jsx("div", { "data-testid": "product-variant-edit-form-allow-backorder-switch-wrapper", children: /* @__PURE__ */ jsx(
|
|
513
|
-
Switch,
|
|
514
|
-
{
|
|
515
|
-
dir: "ltr",
|
|
516
|
-
className: "rtl:rotate-180",
|
|
517
|
-
checked: value,
|
|
518
|
-
onCheckedChange: (checked) => onChange(!!checked),
|
|
519
|
-
...field,
|
|
520
|
-
"data-testid": "product-variant-edit-form-allow-backorder-switch"
|
|
521
|
-
}
|
|
522
|
-
) }) })
|
|
523
|
-
]
|
|
524
|
-
}
|
|
525
|
-
),
|
|
526
|
-
/* @__PURE__ */ jsx(Form.Hint, { "data-testid": "product-variant-edit-form-allow-backorder-hint", children: t("products.variant.inventory.allowBackordersHint") })
|
|
527
|
-
]
|
|
528
|
-
}
|
|
529
|
-
),
|
|
530
|
-
/* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "product-variant-edit-form-allow-backorder-error" })
|
|
531
|
-
] });
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
)
|
|
535
|
-
]
|
|
441
|
+
}
|
|
442
|
+
)
|
|
443
|
+
]
|
|
444
|
+
}
|
|
445
|
+
)
|
|
536
446
|
}
|
|
537
447
|
),
|
|
538
448
|
/* @__PURE__ */ jsx(Divider, { "data-testid": "product-variant-edit-form-divider-2" }),
|
|
@@ -800,7 +710,7 @@ var ProductVariantEdit = () => {
|
|
|
800
710
|
const { variant, isPending, isError, error } = useProductVariant(
|
|
801
711
|
id,
|
|
802
712
|
variant_id || searchVariantId,
|
|
803
|
-
|
|
713
|
+
{ fields: "*options,*options.option" },
|
|
804
714
|
{
|
|
805
715
|
initialData
|
|
806
716
|
}
|
|
@@ -5,44 +5,44 @@ import "./chunk-TKGWSUEI.js";
|
|
|
5
5
|
import "./chunk-U2ZFCAPX.js";
|
|
6
6
|
import "./chunk-FWJLS7XD.js";
|
|
7
7
|
import "./chunk-3QSRE5LS.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-46A3QXAL.js";
|
|
9
9
|
import "./chunk-OH4AABUT.js";
|
|
10
10
|
import "./chunk-AEMDNTW5.js";
|
|
11
11
|
import "./chunk-LYD3C73Z.js";
|
|
12
|
-
import "./chunk-FTAR3BDS.js";
|
|
13
|
-
import "./chunk-46M463BR.js";
|
|
14
12
|
import "./chunk-ZZ3XFIEM.js";
|
|
13
|
+
import "./chunk-4RT7P5ZQ.js";
|
|
15
14
|
import "./chunk-533GMKEG.js";
|
|
15
|
+
import "./chunk-46M463BR.js";
|
|
16
16
|
import "./chunk-YFRC6GEN.js";
|
|
17
|
+
import "./chunk-JPNPTILP.js";
|
|
17
18
|
import "./chunk-DAXXLQKB.js";
|
|
18
19
|
import "./chunk-OHOWEMHO.js";
|
|
19
|
-
import "./chunk-JPNPTILP.js";
|
|
20
20
|
import "./chunk-GKGLVDDV.js";
|
|
21
|
+
import "./chunk-ESPLVOFC.js";
|
|
21
22
|
import "./chunk-N6SI4IIT.js";
|
|
22
23
|
import "./chunk-WJJXUXSO.js";
|
|
23
24
|
import "./chunk-LAPEZATU.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-2ZRWLCYP.js";
|
|
26
|
+
import "./chunk-E5WBU7ZR.js";
|
|
27
|
+
import "./chunk-FXWKGNRV.js";
|
|
28
|
+
import "./chunk-VDKOJ5WD.js";
|
|
26
29
|
import "./chunk-ZN7LWXVC.js";
|
|
30
|
+
import "./chunk-5TRY5IMZ.js";
|
|
31
|
+
import "./chunk-EPHVGD5Z.js";
|
|
32
|
+
import "./chunk-N3BYBEDV.js";
|
|
33
|
+
import "./chunk-ZB4SO44T.js";
|
|
27
34
|
import "./chunk-VYMODH6P.js";
|
|
28
35
|
import "./chunk-LEG67A2R.js";
|
|
29
36
|
import "./chunk-PRBE5CM3.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-B3EEDC47.js";
|
|
33
|
-
import "./chunk-A772RAKB.js";
|
|
34
|
-
import "./chunk-ESPLVOFC.js";
|
|
35
|
-
import "./chunk-FXWKGNRV.js";
|
|
36
|
-
import "./chunk-VDKOJ5WD.js";
|
|
37
|
-
import "./chunk-S5BJ5CMF.js";
|
|
38
|
-
import "./chunk-H5PYBIOZ.js";
|
|
37
|
+
import "./chunk-FEC24V7X.js";
|
|
38
|
+
import "./chunk-EB5QHYKL.js";
|
|
39
39
|
import "./chunk-LAVHRER2.js";
|
|
40
40
|
import "./chunk-Y7QKP6QU.js";
|
|
41
41
|
import "./chunk-INNFZYX2.js";
|
|
42
42
|
import {
|
|
43
43
|
useProductVariant,
|
|
44
44
|
useUpdateProductVariant
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-ZRFWXNT3.js";
|
|
46
46
|
import "./chunk-RHKRREUU.js";
|
|
47
47
|
import "./chunk-ZA2KFUFR.js";
|
|
48
48
|
import "./chunk-ZBWL72TB.js";
|