@mercurjs/admin 2.2.0-canary.1 → 2.2.0-canary.11
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]-BAPEFPAO.js} +10 -4
- package/dist/{add-campaign-promotions-OLNTDP26.js → add-campaign-promotions-KOGSYV2W.js} +3 -3
- package/dist/{adjust-inventory-CVWSBMHU.js → adjust-inventory-3IQ657W2.js} +12 -13
- package/dist/{api-key-management-create-7RWOCVAO.js → api-key-management-create-UD5V7TOU.js} +3 -3
- package/dist/{api-key-management-detail-ZIIDMHFI.js → api-key-management-detail-NBNHERF6.js} +14 -15
- package/dist/{api-key-management-edit-ACH6TJAX.js → api-key-management-edit-4TLKJSAE.js} +3 -3
- package/dist/{api-key-management-list-JHBBXGHH.js → api-key-management-list-SZUSD6UI.js} +4 -4
- package/dist/{api-key-management-sales-channels-XEBTUB5V.js → api-key-management-sales-channels-TK6XEGF3.js} +3 -3
- package/dist/{attribute-create-BYO7BDF5.js → attribute-create-IKTP5XRS.js} +57 -36
- package/dist/{attribute-detail-36XP35P6.js → attribute-detail-V4QI34FV.js} +15 -16
- package/dist/{attribute-edit-WMJWHT7Z.js → attribute-edit-LUY66TG3.js} +2 -2
- package/dist/{attribute-edit-possible-value-KTUZ7YLW.js → attribute-edit-possible-value-IOS3625C.js} +2 -2
- package/dist/{attribute-list-OHU2QMUG.js → attribute-list-EMPHZ32M.js} +12 -13
- package/dist/campaign-create-VFFIIRE4.js +1 -1
- package/dist/{campaign-detail-AZKBPDLC.js → campaign-detail-QY3AALUR.js} +16 -17
- package/dist/{categories-metadata-YZUP43OH.js → categories-metadata-Z5JAWPAK.js} +12 -13
- package/dist/{category-create-2MRYTSYM.js → category-create-GMCJABRW.js} +3 -3
- package/dist/{category-detail-KTFD3VVR.js → category-detail-IP5EPIUR.js} +19 -20
- package/dist/{category-edit-QLOS2LBA.js → category-edit-GLE4NTFG.js} +2 -2
- package/dist/{category-list-U7ZQBSZN.js → category-list-SNVOQ64L.js} +4 -4
- package/dist/{category-organize-TIKTYJFZ.js → category-organize-UY4M4N7S.js} +2 -2
- package/dist/{category-products-7P5DSQN4.js → category-products-HWXJR7KR.js} +16 -17
- package/dist/{chunk-YLKG7W4P.js → chunk-2OF7GB7J.js} +1 -1
- package/dist/{chunk-EJTB2SLE.js → chunk-3AO6X4CE.js} +1 -1
- package/dist/{chunk-PCLSODMO.js → chunk-3HY4I76Q.js} +115 -180
- package/dist/{chunk-CYGIJOA5.js → chunk-3VDLE5GA.js} +12 -4
- package/dist/{chunk-JQBSPUH2.js → chunk-3XSC3NEG.js} +14 -1
- package/dist/{chunk-OSEIN4Y2.js → chunk-453BC56K.js} +1 -1
- package/dist/{chunk-ALATTLBM.js → chunk-4GFS57XI.js} +1 -1
- package/dist/{chunk-BCVUMATY.js → chunk-4PU6GDCE.js} +3 -3
- package/dist/{chunk-ZSFJVRRS.js → chunk-5AZCIOS4.js} +1 -1
- package/dist/{chunk-2S6VXFBZ.js → chunk-5FFZQPTT.js} +4 -4
- package/dist/chunk-5UPOHLBD.js +213 -0
- package/dist/{chunk-LLOKYZMI.js → chunk-623TMW36.js} +1 -1
- package/dist/{chunk-S5BJ5CMF.js → chunk-6FHQCLHQ.js} +1 -1
- package/dist/{chunk-TITPJHIL.js → chunk-72PLRAWM.js} +1 -1
- package/dist/{chunk-H23AKDB2.js → chunk-7KZ5X5SU.js} +4 -4
- package/dist/chunk-7MMLCMV3.js +142 -0
- package/dist/{chunk-637OFDFC.js → chunk-A62MTLPR.js} +52 -76
- package/dist/{chunk-DOSKHIRH.js → chunk-ABWW3JHS.js} +8 -8
- package/dist/{chunk-UXD3VNBO.js → chunk-AJLGY3LQ.js} +1 -2
- package/dist/{chunk-TP7L6M7V.js → chunk-BPCU5QJE.js} +1 -1
- package/dist/{chunk-RKH3A4O3.js → chunk-BQ6ZDY6L.js} +6 -6
- package/dist/{chunk-LCGLQNOI.js → chunk-CVZA23ES.js} +3 -3
- package/dist/{chunk-UPNMDPFX.js → chunk-CYGCCNIC.js} +4 -4
- package/dist/{chunk-WS63IRBI.js → chunk-D2VXOF46.js} +6 -6
- package/dist/{chunk-GKW445WA.js → chunk-DELK6EWH.js} +13 -187
- package/dist/{chunk-AB2LHP3M.js → chunk-DJWOIRLV.js} +1 -1
- package/dist/{chunk-H5PYBIOZ.js → chunk-DN2K5EAH.js} +1 -1
- package/dist/{chunk-EREXPX6I.js → chunk-EBYWGIOR.js} +23 -37
- package/dist/{chunk-W7NN2EFL.js → chunk-EGTH3PUK.js} +4 -4
- package/dist/{chunk-XODRTI2W.js → chunk-EMQP2CNF.js} +4 -4
- package/dist/{chunk-PXTJJQKJ.js → chunk-ENFXIYIH.js} +1 -1
- package/dist/{chunk-BLYJZMNE.js → chunk-EYFWEKFJ.js} +2 -2
- package/dist/{chunk-LT3REHJG.js → chunk-F52JLHE3.js} +101 -405
- package/dist/{chunk-WKCYMDTV.js → chunk-FDD7TANX.js} +1 -1
- package/dist/{chunk-3EDQIZV6.js → chunk-G5DQCCPL.js} +2 -2
- package/dist/chunk-GVEF6UDT.js +8 -0
- package/dist/{chunk-2YYXP6XI.js → chunk-H3MAUKL7.js} +13 -29
- package/dist/{chunk-A4UQKKGC.js → chunk-HDOWEXDH.js} +3 -3
- package/dist/{chunk-Y3NVKGGI.js → chunk-HEGPAGJT.js} +2 -2
- package/dist/{chunk-3P4VTL4S.js → chunk-IQZ3T2Q4.js} +1 -1
- package/dist/{chunk-Y2M536WR.js → chunk-JHBNG7OD.js} +17 -0
- package/dist/{chunk-GLPS6QFG.js → chunk-JSH7JEKY.js} +4 -8
- package/dist/{chunk-57BHSFNA.js → chunk-JSMUFZZN.js} +1 -1
- package/dist/{chunk-QIU6DJY6.js → chunk-K4WU4PVL.js} +1 -1
- package/dist/{chunk-V6OGMYAI.js → chunk-KT7X72J4.js} +158 -169
- package/dist/{chunk-G4PROEJI.js → chunk-LGL4QSGB.js} +3 -3
- package/dist/{chunk-AXTQMIIK.js → chunk-LJDGVBOQ.js} +8 -27
- package/dist/{chunk-YGAX72XV.js → chunk-LO2ZWQGL.js} +0 -2
- package/dist/{chunk-NQBSSM5V.js → chunk-M572YFDA.js} +4 -4
- package/dist/{chunk-K4TGNN4P.js → chunk-MEXH366L.js} +2 -2
- package/dist/{chunk-NZ2LHIKD.js → chunk-MR3MLNWV.js} +3 -3
- package/dist/{chunk-TGFZ4UBK.js → chunk-MVDPDVMI.js} +5 -5
- package/dist/{chunk-P25PIADJ.js → chunk-N4GJRJF5.js} +1 -1
- package/dist/{chunk-BE6JLTMI.js → chunk-N6YOACEW.js} +1 -1
- package/dist/{chunk-ED7XNGZD.js → chunk-N7OVIX55.js} +1 -1
- package/dist/{chunk-2LQ5SCPB.js → chunk-NGDOLGBQ.js} +18 -6
- package/dist/{chunk-FTAR3BDS.js → chunk-NJP3DEE5.js} +1 -1
- package/dist/{chunk-MN3AEVR7.js → chunk-O2XHQTBX.js} +4 -4
- package/dist/{chunk-GNLPUGYK.js → chunk-OFOKVLV3.js} +2 -2
- package/dist/{chunk-CBG4E3M3.js → chunk-OMBP3YSV.js} +1 -1
- package/dist/{chunk-A772RAKB.js → chunk-P5XVG4PY.js} +1 -1
- package/dist/{chunk-CKACZXMP.js → chunk-PASEZJC7.js} +1 -1
- package/dist/chunk-PT5PLV3N.js +78 -0
- package/dist/{chunk-3IVTUFBM.js → chunk-PXKDYD3M.js} +1 -1
- package/dist/{chunk-HWBUIBJD.js → chunk-QLEGHL2Q.js} +6 -6
- package/dist/{chunk-3B6MTW5G.js → chunk-QUHSHIAC.js} +3 -0
- package/dist/{chunk-BHOZKBYY.js → chunk-QUPUWR42.js} +1 -1
- package/dist/{chunk-6AZKWCVL.js → chunk-R7ESTJHN.js} +5 -5
- package/dist/{chunk-6FIU2V6Y.js → chunk-SJGIQGEC.js} +1 -1
- package/dist/{chunk-SRDK3XX7.js → chunk-SUVFPJ4J.js} +5 -5
- package/dist/{chunk-WDH5C2NS.js → chunk-TE4IF3MM.js} +1 -1
- package/dist/{chunk-ELM74U2R.js → chunk-TZDRRTAX.js} +2 -2
- package/dist/{chunk-IRTI3AS3.js → chunk-UCX2T4BQ.js} +2 -2
- package/dist/{chunk-2MDGYHWN.js → chunk-UCYSCKZV.js} +1328 -1379
- package/dist/chunk-UIVWOKWT.js +63 -0
- package/dist/{chunk-ZHOI4QMK.js → chunk-UXGLM3B4.js} +1 -1
- package/dist/{chunk-D5T7QOVY.js → chunk-VT5E7OMM.js} +2 -2
- package/dist/{chunk-B3EEDC47.js → chunk-VT6QIVZW.js} +0 -93
- package/dist/{chunk-CBGXKU7Z.js → chunk-VY7PT4SI.js} +4 -4
- package/dist/{chunk-BGGUVHDG.js → chunk-W3FDZPPF.js} +82 -271
- package/dist/{chunk-77T2UI6L.js → chunk-W6CW4WHC.js} +293 -209
- package/dist/{chunk-Q6I2IKJB.js → chunk-W6V2L2FX.js} +2 -2
- package/dist/{chunk-SG76L7C7.js → chunk-WPVDACTL.js} +1 -2
- package/dist/{chunk-UXQAHUGZ.js → chunk-WTK4MLMF.js} +1 -1
- package/dist/{chunk-N2LH7A4X.js → chunk-X7H7TIOT.js} +9 -9
- package/dist/{chunk-S4SVK5DE.js → chunk-YVLANFBK.js} +29 -1
- package/dist/{chunk-XZZTC7E5.js → chunk-Z5T5EPLF.js} +1 -1
- package/dist/{chunk-WNYDGJ3E.js → chunk-ZO7A6VYP.js} +6 -6
- package/dist/{collection-add-products-XL2TAKQD.js → collection-add-products-ABWXUOFD.js} +16 -17
- package/dist/{collection-create-HUNYHKUJ.js → collection-create-BRMP6SIZ.js} +2 -2
- package/dist/{collection-detail-2DSZVOI7.js → collection-detail-AMGR2B5N.js} +17 -18
- package/dist/{collection-edit-OQGYTQDO.js → collection-edit-YLWUEU4C.js} +2 -2
- package/dist/{collection-list-NGCW7OTG.js → collection-list-6HZE43AC.js} +18 -19
- package/dist/{collection-metadata-47N7TUOH.js → collection-metadata-JS5QP3GD.js} +12 -13
- package/dist/{commission-rate-create-BQY3UGKV.js → commission-rate-create-PSPSJZR5.js} +23 -24
- package/dist/{commission-rate-detail-LAZZLZVX.js → commission-rate-detail-U72E4ZIO.js} +13 -14
- package/dist/{commission-rate-edit-DAFXNYYN.js → commission-rate-edit-7NJPABVA.js} +23 -24
- package/dist/{constants-26tEckuq.d.ts → constants-Bahlh59D.d.ts} +8 -4
- package/dist/{customer-detail-D5SSLNFT.js → customer-detail-2RWBN6C4.js} +16 -17
- package/dist/{customer-group-detail-KRT7E2JA.js → customer-group-detail-ED66F7JM.js} +12 -13
- package/dist/{customer-group-list-KKDIESQ6.js → customer-group-list-6YUFKBHH.js} +12 -13
- package/dist/{customer-group-metadata-J6JY7DZ3.js → customer-group-metadata-VQUOWR3P.js} +12 -13
- package/dist/{customer-metadata-AH2LBK4T.js → customer-metadata-47AVJXRI.js} +12 -13
- package/dist/{customers-add-customer-group-AHGAPEIS.js → customers-add-customer-group-HI7J7YKN.js} +12 -13
- package/dist/{edit-inventory-item-ADNLKLCN.js → edit-inventory-item-MBPSBJL4.js} +12 -13
- package/dist/{edit-inventory-item-attributes-XVR2WLDU.js → edit-inventory-item-attributes-RVYWOFAC.js} +12 -13
- package/dist/{edit-reservation-HQQL42QX.js → edit-reservation-7BLGYXCJ.js} +5 -5
- package/dist/{edit-rules-YMKM5JPI.js → edit-rules-ZWDKM5M3.js} +13 -14
- package/dist/index.d.ts +2 -2
- package/dist/index.js +500 -566
- package/dist/{inventory-create-IVESXFSV.js → inventory-create-Q4VBPXSG.js} +15 -16
- package/dist/{inventory-detail-TINIAFVB.js → inventory-detail-6CKO3A3Y.js} +13 -14
- package/dist/{inventory-list-YLIAKQXI.js → inventory-list-2JGX6BRI.js} +2 -2
- package/dist/{inventory-metadata-6INRH2JC.js → inventory-metadata-COGGE5ZR.js} +12 -13
- package/dist/{inventory-stock-6YGTATID.js → inventory-stock-2QIKS7LE.js} +196 -35
- package/dist/{loader-6KDBTRVR.js → loader-OU7SKXOD.js} +4 -2
- package/dist/{location-detail-EK2S7WOK.js → location-detail-HOCNTQ7K.js} +14 -15
- package/dist/{location-fulfillment-providers-KUUNC2KP.js → location-fulfillment-providers-YQ2XFPAJ.js} +15 -16
- package/dist/{location-list-IV323QW2.js → location-list-I2UMU25V.js} +12 -13
- package/dist/{location-sales-channels-EYUXMTW7.js → location-sales-channels-GKIWX6B2.js} +2 -2
- package/dist/{location-service-zone-shipping-option-create-36JZFRGY.js → location-service-zone-shipping-option-create-6GYLJHEC.js} +15 -16
- 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-N7CVSQNG.js} +12 -13
- package/dist/{manage-locations-CFTM6DNH.js → manage-locations-TKLOHP3D.js} +1 -1
- package/dist/{marketplace-detail-BAU2MEJT.js → marketplace-detail-K52ALYGT.js} +16 -17
- package/dist/{marketplace-metadata-KRCGKOCA.js → marketplace-metadata-ZSX3IQF4.js} +15 -16
- package/dist/{offers-IFKM6EQT.js → offers-UBD6NICA.js} +6 -4
- package/dist/{order-create-claim-RMDDCUZ6.js → order-create-claim-OVHMMR3J.js} +268 -243
- package/dist/{order-create-edit-PQ54JFZZ.js → order-create-edit-HEOYCYZO.js} +205 -110
- package/dist/{order-create-exchange-T6DBVS75.js → order-create-exchange-L56VKQBL.js} +269 -242
- package/dist/{order-create-refund-OW3MIXBY.js → order-create-refund-UTJKJ3AJ.js} +16 -17
- package/dist/{order-create-return-YCX6C3VP.js → order-create-return-FLGYGUTQ.js} +45 -18
- package/dist/{order-detail-2OAEGBQG.js → order-detail-KAB4MV7X.js} +20 -22
- package/dist/{order-edit-billing-address-VGZBQHF5.js → order-edit-billing-address-RUURVISC.js} +14 -15
- package/dist/{order-edit-email-OOCXVRET.js → order-edit-email-OO7AMRHC.js} +13 -14
- package/dist/{order-edit-shipping-address-B4F3E5RE.js → order-edit-shipping-address-BRRXUE76.js} +13 -14
- package/dist/{order-list-DQTMCEFD.js → order-list-S3AJC6L5.js} +7 -7
- package/dist/{order-metadata-AN6MPHHT.js → order-metadata-OHK6TPAO.js} +12 -13
- package/dist/{order-request-transfer-A2NJSQ4H.js → order-request-transfer-YLMXC7NL.js} +13 -14
- package/dist/pages/index.d.ts +36 -316
- package/dist/pages/index.js +103 -114
- package/dist/{price-list-configuration-XAHXLCXR.js → price-list-configuration-Q5H22ZE2.js} +2 -2
- package/dist/{price-list-create-37SCDSPN.js → price-list-create-OYAVGRM5.js} +19 -20
- package/dist/{price-list-detail-4Q2HBLAM.js → price-list-detail-Q4GFFUFG.js} +18 -19
- package/dist/{price-list-edit-ZVLD4M5T.js → price-list-edit-YY4SXEI3.js} +2 -2
- package/dist/{price-list-list-ER4TOZTY.js → price-list-list-OIOY43TF.js} +4 -4
- package/dist/{price-list-prices-add-UASPZXKT.js → price-list-prices-add-KONZVSVQ.js} +19 -20
- package/dist/{price-list-prices-edit-WHCIGSB2.js → price-list-prices-edit-SMUKU7Q6.js} +14 -15
- package/dist/{product-add-existing-attributes-7HEJUR6J.js → product-add-existing-attributes-GGRRNFDK.js} +57 -21
- package/dist/{product-attributes-MHRXZK5S.js → product-attributes-C3KHQF2I.js} +2 -2
- package/dist/{product-bulk-edit-J6ZP7GGM.js → product-bulk-edit-J3CMBZN2.js} +5 -7
- package/dist/{product-create-KHJWRSUB.js → product-create-UR5OFGUY.js} +20 -21
- package/dist/{product-create-attribute-ZT3VZDNZ.js → product-create-attribute-XARMC6FJ.js} +73 -45
- package/dist/product-create-variant-6VUKYLWE.js +20 -0
- package/dist/{product-detail-GLISGO65.js → product-detail-OLFVJZ7T.js} +15 -17
- package/dist/{product-edit-EKAZRIJ6.js → product-edit-F4CKOIUO.js} +2 -4
- package/dist/product-edit-attribute-LG2ZM6HQ.js +175 -0
- package/dist/{product-list-2CTGPDDT.js → product-list-2BWYAATR.js} +18 -19
- package/dist/{product-media-KREKRDOC.js → product-media-EUDMCJ75.js} +5 -5
- package/dist/{product-metadata-O3BAEUYB.js → product-metadata-5WVNFCRL.js} +13 -14
- package/dist/{product-organization-SBQY44IF.js → product-organization-BFWDCHP4.js} +4 -47
- package/dist/{product-sales-channels-TFOGXCMI.js → product-sales-channels-WKQSYOEX.js} +3 -3
- package/dist/{product-shipping-profile-E4HJ4EYW.js → product-shipping-profile-WDLKA2SN.js} +2 -2
- package/dist/{product-tag-create-7JBM6I3V.js → product-tag-create-KQSVCWMC.js} +12 -13
- package/dist/{product-tag-detail-MTFAPSG2.js → product-tag-detail-CWDAY7F3.js} +22 -23
- package/dist/{product-tag-edit-O2ADFDD6.js → product-tag-edit-B4SIZCUK.js} +12 -13
- package/dist/{product-tag-list-EOULJIYQ.js → product-tag-list-2OK3OCMZ.js} +22 -23
- package/dist/{product-tag-metadata-SBOUTUXY.js → product-tag-metadata-MASTMIKE.js} +12 -13
- package/dist/{product-type-detail-H4CZN27J.js → product-type-detail-3X7ZTZJN.js} +17 -18
- package/dist/{product-type-metadata-KN5OXR6J.js → product-type-metadata-6BKTQHQC.js} +12 -13
- package/dist/{product-variant-detail-H2YRFDAU.js → product-variant-detail-PQ4RKPZT.js} +17 -27
- package/dist/{product-variant-edit-6W7LKCEE.js → product-variant-edit-TLF475SH.js} +163 -254
- package/dist/{product-variant-metadata-QESZ7VS2.js → product-variant-metadata-3M72B3PM.js} +12 -13
- package/dist/{promotion-create-TGC6BVWF.js → promotion-create-OKZBUSJD.js} +14 -15
- package/dist/{promotion-detail-VYIXZMMD.js → promotion-detail-MMNEDRXD.js} +15 -16
- package/dist/{promotion-list-C3SKV5BJ.js → promotion-list-DHWW7FTI.js} +4 -4
- package/dist/{refund-reason-create-2KEQFOID.js → refund-reason-create-N4DZ4UHS.js} +12 -13
- package/dist/{refund-reason-edit-E7CB7SM3.js → refund-reason-edit-OAHRDKXW.js} +12 -13
- package/dist/{refund-reason-list-TAHJK4OX.js → refund-reason-list-YLH4LD4S.js} +19 -20
- package/dist/{region-metadata-723RQGHS.js → region-metadata-BJSTTZFL.js} +15 -16
- package/dist/{reservation-create-Y3HG4AZA.js → reservation-create-TXYAY3KF.js} +4 -4
- package/dist/{reservation-detail-HQMADZ56.js → reservation-detail-CEENG76D.js} +16 -17
- package/dist/{reservation-list-YKC3JJ6K.js → reservation-list-SORWYHI4.js} +3 -3
- package/dist/{reservation-metadata-UG4YTEMY.js → reservation-metadata-G3QBZF4K.js} +15 -16
- package/dist/{reset-password-2VNU52CE.js → reset-password-QGQ4GAHK.js} +1 -1
- package/dist/{return-reason-list-IHFO2LJK.js → return-reason-list-7HTIV7NK.js} +7 -7
- package/dist/{sales-channel-add-products-YZTQ2SDS.js → sales-channel-add-products-3VZ5SLLP.js} +16 -17
- package/dist/{sales-channel-create-BSNCLZWR.js → sales-channel-create-XBR3QESI.js} +2 -2
- package/dist/{sales-channel-detail-67G7K3IE.js → sales-channel-detail-PHRSKCNM.js} +17 -18
- package/dist/{sales-channel-edit-FUDXMZYV.js → sales-channel-edit-ILBZBQP4.js} +2 -2
- package/dist/{sales-channel-list-GYLGH4U7.js → sales-channel-list-3GCESYAM.js} +13 -14
- package/dist/{sales-channel-metadata-H6RSHKVP.js → sales-channel-metadata-HVPGS756.js} +12 -13
- package/dist/{shipping-option-type-create-QAOW7753.js → shipping-option-type-create-3ZKT7WAC.js} +12 -13
- package/dist/{shipping-option-type-detail-QGWVDTDU.js → shipping-option-type-detail-IYXWAK7F.js} +14 -15
- package/dist/{shipping-option-type-edit-WXYBDRNY.js → shipping-option-type-edit-QRXYNNRW.js} +12 -13
- package/dist/{shipping-option-type-list-YSWP6DSC.js → shipping-option-type-list-MLIDCA3L.js} +14 -15
- package/dist/{shipping-profile-metadata-UE53IA3J.js → shipping-profile-metadata-T4HPNTLH.js} +12 -13
- package/dist/{store-bulk-edit-UYNQ2CPG.js → store-bulk-edit-BNF3HH5K.js} +2 -2
- package/dist/{store-create-WNFRHXWR.js → store-create-KFLNOD73.js} +15 -16
- package/dist/{store-details-R2GQU7HE.js → store-details-E347PHAN.js} +21 -36
- package/dist/{store-edit-UW3QOFFX.js → store-edit-Y6NLBIOP.js} +6 -6
- package/dist/{store-list-5CV7VJLO.js → store-list-S2L44OLB.js} +18 -19
- package/dist/{store-member-invite-M4NVBUXM.js → store-member-invite-J5XSPWMW.js} +1 -1
- package/dist/{tax-region-create-3KVECMFN.js → tax-region-create-MIDQXQS4.js} +13 -14
- package/dist/{tax-region-detail-AOT4X4DZ.js → tax-region-detail-AC7B3G57.js} +14 -15
- package/dist/{tax-region-edit-5T7VHKIA.js → tax-region-edit-5CORTHTC.js} +12 -13
- package/dist/{tax-region-metadata-RSZCJGJT.js → tax-region-metadata-QQZIQPAD.js} +12 -13
- package/dist/{tax-region-province-detail-XEMIX5SQ.js → tax-region-province-detail-2MGX7LEO.js} +14 -15
- package/dist/{tax-region-tax-override-create-KVVY4AF2.js → tax-region-tax-override-create-IONGD4TG.js} +21 -22
- package/dist/{tax-region-tax-override-edit-TVX7SMJD.js → tax-region-tax-override-edit-RIT6YRVK.js} +21 -22
- package/dist/{user-detail-W7DGVXDZ.js → user-detail-MMVBN3AE.js} +1 -1
- package/dist/{user-metadata-3AFZX3DM.js → user-metadata-OZLU3Y2X.js} +12 -13
- package/package.json +5 -5
- package/dist/chunk-ABFL4ACD.js +0 -207
- package/dist/chunk-IEPNHH7Z.js +0 -170
- package/dist/chunk-J65IXAGI.js +0 -292
- package/dist/chunk-QSGR43JM.js +0 -30
- package/dist/chunk-RQ4NMLSS.js +0 -8
- package/dist/chunk-RXM4B6HR.js +0 -8
- package/dist/chunk-U7XILJH6.js +0 -423
- package/dist/chunk-UM7ZR3VU.js +0 -14
- package/dist/chunk-UR6HGBFE.js +0 -652
- package/dist/chunk-V5XHY5LP.js +0 -39
- package/dist/chunk-WV4SQ57G.js +0 -141
- package/dist/chunk-ZZ3XFIEM.js +0 -84
- package/dist/order-allocate-items-DJ2V4B7A.js +0 -563
- package/dist/order-create-fulfillment-SMSUJSBN.js +0 -644
- package/dist/order-create-shipment-5ZAWH5CZ.js +0 -215
- package/dist/order-receive-return-DZ4IUOHY.js +0 -563
- package/dist/product-brand-create-B3ZJGHUQ.js +0 -171
- package/dist/product-brand-detail-6MPQ3UFN.js +0 -100
- package/dist/product-brand-edit-3TQDHZNN.js +0 -179
- package/dist/product-brand-list-ZBPBSRQN.js +0 -30
- package/dist/product-brand-metadata-EAMW6PQJ.js +0 -87
- package/dist/product-create-option-NIAP75EE.js +0 -130
- package/dist/product-create-variant-LCE47YFO.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/{promotion-add-campaign-O3RTMS3W.js → promotion-add-campaign-S3JJSFHT.js} +2 -2
|
@@ -1,60 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ProductVariantDetailPage
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-PXYDR7WQ.js";
|
|
5
|
-
import "./chunk-7AV5EJJ5.js";
|
|
6
|
-
import "./chunk-PHOCVOZ5.js";
|
|
7
|
-
import "./chunk-FQERBIVS.js";
|
|
8
|
-
import "./chunk-NQEXDLYH.js";
|
|
9
|
-
import "./chunk-YN3FGNJM.js";
|
|
10
|
-
import "./chunk-KAZ5BYTQ.js";
|
|
11
|
-
import "./chunk-634XVU3D.js";
|
|
12
|
-
import "./chunk-IQPN4PZJ.js";
|
|
3
|
+
} from "./chunk-7MMLCMV3.js";
|
|
13
4
|
import "./chunk-FI474ADU.js";
|
|
14
5
|
import "./chunk-3XPXUIK3.js";
|
|
15
6
|
import "./chunk-E74OUNA3.js";
|
|
16
7
|
import "./chunk-H6MYB7GB.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-XQNVC4Q7.js";
|
|
19
|
-
import "./chunk-AXTQMIIK.js";
|
|
8
|
+
import "./chunk-LJDGVBOQ.js";
|
|
20
9
|
import "./chunk-OH4AABUT.js";
|
|
21
10
|
import "./chunk-AEMDNTW5.js";
|
|
22
11
|
import "./chunk-LYD3C73Z.js";
|
|
23
|
-
import "./chunk-FTAR3BDS.js";
|
|
24
12
|
import "./chunk-46M463BR.js";
|
|
25
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-NJP3DEE5.js";
|
|
26
14
|
import "./chunk-533GMKEG.js";
|
|
27
15
|
import "./chunk-YFRC6GEN.js";
|
|
28
16
|
import "./chunk-DAXXLQKB.js";
|
|
29
17
|
import "./chunk-OHOWEMHO.js";
|
|
30
18
|
import "./chunk-JPNPTILP.js";
|
|
19
|
+
import "./chunk-ESPLVOFC.js";
|
|
31
20
|
import "./chunk-GKGLVDDV.js";
|
|
32
21
|
import "./chunk-N6SI4IIT.js";
|
|
33
22
|
import "./chunk-WJJXUXSO.js";
|
|
34
23
|
import "./chunk-LAPEZATU.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-453BC56K.js";
|
|
25
|
+
import "./chunk-Z5T5EPLF.js";
|
|
26
|
+
import "./chunk-FXWKGNRV.js";
|
|
27
|
+
import "./chunk-VDKOJ5WD.js";
|
|
37
28
|
import "./chunk-ZN7LWXVC.js";
|
|
29
|
+
import "./chunk-P5XVG4PY.js";
|
|
38
30
|
import "./chunk-VYMODH6P.js";
|
|
39
31
|
import "./chunk-LEG67A2R.js";
|
|
40
32
|
import "./chunk-PRBE5CM3.js";
|
|
41
33
|
import "./chunk-5TRY5IMZ.js";
|
|
42
34
|
import "./chunk-EPHVGD5Z.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-A772RAKB.js";
|
|
45
|
-
import "./chunk-ESPLVOFC.js";
|
|
46
|
-
import "./chunk-FXWKGNRV.js";
|
|
47
|
-
import "./chunk-VDKOJ5WD.js";
|
|
35
|
+
import "./chunk-VT6QIVZW.js";
|
|
48
36
|
import "./chunk-BDGZ4EQO.js";
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-6FHQCLHQ.js";
|
|
38
|
+
import "./chunk-DN2K5EAH.js";
|
|
51
39
|
import "./chunk-LAVHRER2.js";
|
|
52
40
|
import "./chunk-Y7QKP6QU.js";
|
|
53
41
|
import "./chunk-INNFZYX2.js";
|
|
54
42
|
import {
|
|
55
43
|
useProductVariant,
|
|
56
44
|
variantsQueryKeys
|
|
57
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-H3MAUKL7.js";
|
|
58
46
|
import {
|
|
59
47
|
queryClient
|
|
60
48
|
} from "./chunk-RHKRREUU.js";
|
|
@@ -84,11 +72,13 @@ var ProductVariantDetailBreadcrumb = (props) => {
|
|
|
84
72
|
};
|
|
85
73
|
|
|
86
74
|
// src/pages/product-variants/product-variant-detail/loader.ts
|
|
75
|
+
var VARIANT_DETAIL_FIELDS = "*options,*options.option";
|
|
87
76
|
var variantDetailQuery = (productId, variantId) => ({
|
|
88
|
-
queryKey: variantsQueryKeys.detail(variantId),
|
|
77
|
+
queryKey: variantsQueryKeys.detail(variantId, { fields: VARIANT_DETAIL_FIELDS }),
|
|
89
78
|
queryFn: async () => sdk.admin.products.$id.variants.$variantId.query({
|
|
90
79
|
$id: productId,
|
|
91
|
-
$variantId: variantId
|
|
80
|
+
$variantId: variantId,
|
|
81
|
+
fields: VARIANT_DETAIL_FIELDS
|
|
92
82
|
})
|
|
93
83
|
});
|
|
94
84
|
var variantLoader = async ({ params }) => {
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
} from "./chunk-V74Y5NIV.js";
|
|
9
9
|
import {
|
|
10
10
|
AttributeValueInput
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JSMUFZZN.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,43 @@ import {
|
|
|
28
28
|
} from "./chunk-3QSRE5LS.js";
|
|
29
29
|
import {
|
|
30
30
|
require_dist
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-UCYSCKZV.js";
|
|
32
|
+
import "./chunk-LJDGVBOQ.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
36
|
import "./chunk-46M463BR.js";
|
|
38
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-NJP3DEE5.js";
|
|
39
38
|
import "./chunk-533GMKEG.js";
|
|
40
39
|
import "./chunk-YFRC6GEN.js";
|
|
41
40
|
import "./chunk-DAXXLQKB.js";
|
|
42
41
|
import "./chunk-OHOWEMHO.js";
|
|
43
42
|
import "./chunk-JPNPTILP.js";
|
|
43
|
+
import "./chunk-ESPLVOFC.js";
|
|
44
44
|
import "./chunk-GKGLVDDV.js";
|
|
45
45
|
import "./chunk-N6SI4IIT.js";
|
|
46
46
|
import "./chunk-WJJXUXSO.js";
|
|
47
47
|
import "./chunk-LAPEZATU.js";
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
import "./chunk-453BC56K.js";
|
|
49
|
+
import "./chunk-Z5T5EPLF.js";
|
|
50
|
+
import "./chunk-FXWKGNRV.js";
|
|
51
|
+
import "./chunk-VDKOJ5WD.js";
|
|
50
52
|
import "./chunk-ZN7LWXVC.js";
|
|
53
|
+
import "./chunk-P5XVG4PY.js";
|
|
51
54
|
import "./chunk-VYMODH6P.js";
|
|
52
55
|
import "./chunk-LEG67A2R.js";
|
|
53
56
|
import "./chunk-PRBE5CM3.js";
|
|
54
57
|
import "./chunk-5TRY5IMZ.js";
|
|
55
58
|
import "./chunk-EPHVGD5Z.js";
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-FXWKGNRV.js";
|
|
60
|
-
import "./chunk-VDKOJ5WD.js";
|
|
61
|
-
import "./chunk-S5BJ5CMF.js";
|
|
62
|
-
import "./chunk-H5PYBIOZ.js";
|
|
59
|
+
import "./chunk-VT6QIVZW.js";
|
|
60
|
+
import "./chunk-6FHQCLHQ.js";
|
|
61
|
+
import "./chunk-DN2K5EAH.js";
|
|
63
62
|
import {
|
|
64
63
|
useProduct,
|
|
65
64
|
useProductVariant,
|
|
66
65
|
useUpdateProductVariant,
|
|
67
66
|
variantsQueryKeys
|
|
68
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-H3MAUKL7.js";
|
|
69
68
|
import {
|
|
70
69
|
queryClient
|
|
71
70
|
} from "./chunk-RHKRREUU.js";
|
|
@@ -85,7 +84,7 @@ import { useLoaderData, useParams, useSearchParams } from "react-router-dom";
|
|
|
85
84
|
// src/pages/product-variants/product-variant-edit/components/product-edit-variant-form/product-edit-variant-form.tsx
|
|
86
85
|
var import_types = __toESM(require_dist(), 1);
|
|
87
86
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
88
|
-
import { Button, Divider, Heading, Input,
|
|
87
|
+
import { Button, Divider, Heading, Input, toast } from "@medusajs/ui";
|
|
89
88
|
import { useForm } from "react-hook-form";
|
|
90
89
|
import { useTranslation } from "react-i18next";
|
|
91
90
|
import { z } from "zod";
|
|
@@ -97,8 +96,6 @@ var ProductEditVariantSchema = z.object({
|
|
|
97
96
|
ean: z.string().optional(),
|
|
98
97
|
upc: z.string().optional(),
|
|
99
98
|
barcode: z.string().optional(),
|
|
100
|
-
manage_inventory: z.boolean(),
|
|
101
|
-
allow_backorder: z.boolean(),
|
|
102
99
|
weight: optionalInt,
|
|
103
100
|
height: optionalInt,
|
|
104
101
|
width: optionalInt,
|
|
@@ -106,7 +103,7 @@ var ProductEditVariantSchema = z.object({
|
|
|
106
103
|
mid_code: z.string().optional(),
|
|
107
104
|
hs_code: z.string().optional(),
|
|
108
105
|
origin_country: z.string().optional(),
|
|
109
|
-
|
|
106
|
+
options: z.record(z.string()).optional()
|
|
110
107
|
});
|
|
111
108
|
var ProductEditVariantForm = ({
|
|
112
109
|
variant,
|
|
@@ -115,15 +112,17 @@ var ProductEditVariantForm = ({
|
|
|
115
112
|
const { t } = useTranslation();
|
|
116
113
|
const { handleSuccess } = useRouteModal();
|
|
117
114
|
const variantAttributes = product.attributes?.filter((a) => a.is_variant_axis) ?? [];
|
|
118
|
-
const
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
115
|
+
const defaultOptions = variantAttributes.reduce(
|
|
116
|
+
(acc, attribute) => {
|
|
117
|
+
const key = attribute.handle ?? attribute.id;
|
|
118
|
+
const matched = variant.options?.find(
|
|
119
|
+
(o) => o.option?.title === attribute.name
|
|
120
|
+
);
|
|
121
|
+
acc[key] = matched?.value ?? "";
|
|
122
|
+
return acc;
|
|
123
|
+
},
|
|
124
|
+
{}
|
|
125
|
+
);
|
|
127
126
|
const form = useForm({
|
|
128
127
|
defaultValues: {
|
|
129
128
|
title: variant.title || "",
|
|
@@ -132,8 +131,6 @@ var ProductEditVariantForm = ({
|
|
|
132
131
|
ean: variant.ean || "",
|
|
133
132
|
upc: variant.upc || "",
|
|
134
133
|
barcode: variant.barcode || "",
|
|
135
|
-
manage_inventory: variant.manage_inventory || false,
|
|
136
|
-
allow_backorder: variant.allow_backorder || false,
|
|
137
134
|
weight: variant.weight || "",
|
|
138
135
|
height: variant.height || "",
|
|
139
136
|
width: variant.width || "",
|
|
@@ -141,7 +138,7 @@ var ProductEditVariantForm = ({
|
|
|
141
138
|
mid_code: variant.mid_code || "",
|
|
142
139
|
hs_code: variant.hs_code || "",
|
|
143
140
|
origin_country: variant.origin_country || "",
|
|
144
|
-
|
|
141
|
+
options: defaultOptions
|
|
145
142
|
},
|
|
146
143
|
resolver: zodResolver(ProductEditVariantSchema)
|
|
147
144
|
});
|
|
@@ -156,16 +153,18 @@ var ProductEditVariantForm = ({
|
|
|
156
153
|
height,
|
|
157
154
|
width,
|
|
158
155
|
length,
|
|
159
|
-
|
|
160
|
-
manage_inventory,
|
|
161
|
-
attribute_values,
|
|
156
|
+
options,
|
|
162
157
|
...optional
|
|
163
158
|
} = data;
|
|
164
159
|
const nullableData = transformNullableFormData(optional);
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
160
|
+
const cleanedOptions = variantAttributes.reduce(
|
|
161
|
+
(acc, attr) => {
|
|
162
|
+
const fieldKey = attr.handle ?? attr.id;
|
|
163
|
+
const v = options?.[fieldKey];
|
|
164
|
+
if (v && attr.name) acc[attr.name] = v;
|
|
165
|
+
return acc;
|
|
166
|
+
},
|
|
167
|
+
{}
|
|
169
168
|
);
|
|
170
169
|
await mutateAsync(
|
|
171
170
|
{
|
|
@@ -175,9 +174,7 @@ var ProductEditVariantForm = ({
|
|
|
175
174
|
width: transformNullableFormNumber(width),
|
|
176
175
|
length: transformNullableFormNumber(length),
|
|
177
176
|
title,
|
|
178
|
-
|
|
179
|
-
// manage_inventory,
|
|
180
|
-
attribute_values: Object.keys(cleanedAttributeValues).length ? cleanedAttributeValues : void 0,
|
|
177
|
+
options: Object.keys(cleanedOptions).length ? cleanedOptions : void 0,
|
|
181
178
|
...nullableData
|
|
182
179
|
},
|
|
183
180
|
{
|
|
@@ -263,7 +260,7 @@ var ProductEditVariantForm = ({
|
|
|
263
260
|
Form.Field,
|
|
264
261
|
{
|
|
265
262
|
control: form.control,
|
|
266
|
-
name: `
|
|
263
|
+
name: `options.${fieldKey}`,
|
|
267
264
|
render: ({ field: { value, onChange } }) => {
|
|
268
265
|
return /* @__PURE__ */ jsxs(
|
|
269
266
|
Form.Item,
|
|
@@ -315,224 +312,136 @@ var ProductEditVariantForm = ({
|
|
|
315
312
|
}
|
|
316
313
|
),
|
|
317
314
|
/* @__PURE__ */ jsx(Divider, { "data-testid": "product-variant-edit-form-divider-1" }),
|
|
318
|
-
/* @__PURE__ */
|
|
315
|
+
/* @__PURE__ */ jsx(
|
|
319
316
|
"div",
|
|
320
317
|
{
|
|
321
318
|
className: "flex flex-col gap-y-8",
|
|
322
319
|
"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
|
-
}
|
|
320
|
+
children: /* @__PURE__ */ jsxs(
|
|
321
|
+
"div",
|
|
322
|
+
{
|
|
323
|
+
className: "flex flex-col gap-y-4",
|
|
324
|
+
"data-testid": "product-variant-edit-form-inventory-fields",
|
|
325
|
+
children: [
|
|
326
|
+
/* @__PURE__ */ jsx(
|
|
327
|
+
Heading,
|
|
328
|
+
{
|
|
329
|
+
level: "h2",
|
|
330
|
+
"data-testid": "product-variant-edit-form-inventory-header",
|
|
331
|
+
children: t("products.variant.inventory.header")
|
|
332
|
+
}
|
|
333
|
+
),
|
|
334
|
+
/* @__PURE__ */ jsx(
|
|
335
|
+
Form.Field,
|
|
336
|
+
{
|
|
337
|
+
control: form.control,
|
|
338
|
+
name: "sku",
|
|
339
|
+
render: ({ field }) => {
|
|
340
|
+
return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "product-variant-edit-form-sku-item", children: [
|
|
341
|
+
/* @__PURE__ */ jsx(
|
|
342
|
+
Form.Label,
|
|
343
|
+
{
|
|
344
|
+
optional: true,
|
|
345
|
+
"data-testid": "product-variant-edit-form-sku-label",
|
|
346
|
+
children: t("fields.sku")
|
|
347
|
+
}
|
|
348
|
+
),
|
|
349
|
+
/* @__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(
|
|
350
|
+
Input,
|
|
351
|
+
{
|
|
352
|
+
...field,
|
|
353
|
+
"data-testid": "product-variant-edit-form-sku-input"
|
|
354
|
+
}
|
|
355
|
+
) }) }),
|
|
356
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "product-variant-edit-form-sku-error" })
|
|
357
|
+
] });
|
|
363
358
|
}
|
|
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
|
-
}
|
|
359
|
+
}
|
|
360
|
+
),
|
|
361
|
+
/* @__PURE__ */ jsx(
|
|
362
|
+
Form.Field,
|
|
363
|
+
{
|
|
364
|
+
control: form.control,
|
|
365
|
+
name: "ean",
|
|
366
|
+
render: ({ field }) => {
|
|
367
|
+
return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "product-variant-edit-form-ean-item", children: [
|
|
368
|
+
/* @__PURE__ */ jsx(
|
|
369
|
+
Form.Label,
|
|
370
|
+
{
|
|
371
|
+
optional: true,
|
|
372
|
+
"data-testid": "product-variant-edit-form-ean-label",
|
|
373
|
+
children: t("fields.ean")
|
|
374
|
+
}
|
|
375
|
+
),
|
|
376
|
+
/* @__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(
|
|
377
|
+
Input,
|
|
378
|
+
{
|
|
379
|
+
...field,
|
|
380
|
+
"data-testid": "product-variant-edit-form-ean-input"
|
|
381
|
+
}
|
|
382
|
+
) }) }),
|
|
383
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "product-variant-edit-form-ean-error" })
|
|
384
|
+
] });
|
|
390
385
|
}
|
|
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
|
-
}
|
|
386
|
+
}
|
|
387
|
+
),
|
|
388
|
+
/* @__PURE__ */ jsx(
|
|
389
|
+
Form.Field,
|
|
390
|
+
{
|
|
391
|
+
control: form.control,
|
|
392
|
+
name: "upc",
|
|
393
|
+
render: ({ field }) => {
|
|
394
|
+
return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "product-variant-edit-form-upc-item", children: [
|
|
395
|
+
/* @__PURE__ */ jsx(
|
|
396
|
+
Form.Label,
|
|
397
|
+
{
|
|
398
|
+
optional: true,
|
|
399
|
+
"data-testid": "product-variant-edit-form-upc-label",
|
|
400
|
+
children: t("fields.upc")
|
|
401
|
+
}
|
|
402
|
+
),
|
|
403
|
+
/* @__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(
|
|
404
|
+
Input,
|
|
405
|
+
{
|
|
406
|
+
...field,
|
|
407
|
+
"data-testid": "product-variant-edit-form-upc-input"
|
|
408
|
+
}
|
|
409
|
+
) }) }),
|
|
410
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "product-variant-edit-form-upc-error" })
|
|
411
|
+
] });
|
|
417
412
|
}
|
|
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
|
-
}
|
|
413
|
+
}
|
|
414
|
+
),
|
|
415
|
+
/* @__PURE__ */ jsx(
|
|
416
|
+
Form.Field,
|
|
417
|
+
{
|
|
418
|
+
control: form.control,
|
|
419
|
+
name: "barcode",
|
|
420
|
+
render: ({ field }) => {
|
|
421
|
+
return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "product-variant-edit-form-barcode-item", children: [
|
|
422
|
+
/* @__PURE__ */ jsx(
|
|
423
|
+
Form.Label,
|
|
424
|
+
{
|
|
425
|
+
optional: true,
|
|
426
|
+
"data-testid": "product-variant-edit-form-barcode-label",
|
|
427
|
+
children: t("fields.barcode")
|
|
428
|
+
}
|
|
429
|
+
),
|
|
430
|
+
/* @__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(
|
|
431
|
+
Input,
|
|
432
|
+
{
|
|
433
|
+
...field,
|
|
434
|
+
"data-testid": "product-variant-edit-form-barcode-input"
|
|
435
|
+
}
|
|
436
|
+
) }) }),
|
|
437
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "product-variant-edit-form-barcode-error" })
|
|
438
|
+
] });
|
|
444
439
|
}
|
|
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
|
-
]
|
|
440
|
+
}
|
|
441
|
+
)
|
|
442
|
+
]
|
|
443
|
+
}
|
|
444
|
+
)
|
|
536
445
|
}
|
|
537
446
|
),
|
|
538
447
|
/* @__PURE__ */ jsx(Divider, { "data-testid": "product-variant-edit-form-divider-2" }),
|
|
@@ -800,7 +709,7 @@ var ProductVariantEdit = () => {
|
|
|
800
709
|
const { variant, isPending, isError, error } = useProductVariant(
|
|
801
710
|
id,
|
|
802
711
|
variant_id || searchVariantId,
|
|
803
|
-
|
|
712
|
+
{ fields: "*options,*options.option" },
|
|
804
713
|
{
|
|
805
714
|
initialData
|
|
806
715
|
}
|