@mercurjs/admin 2.2.0-canary.1 → 2.2.0-canary.12
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-77T2UI6L.js → chunk-H4EHUOWL.js} +308 -209
- 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-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-5IEJPONZ.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,9 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SortableList
|
|
3
3
|
} from "./chunk-IIFQ7KYL.js";
|
|
4
|
-
import {
|
|
5
|
-
HandleInput
|
|
6
|
-
} from "./chunk-HJ56YXBU.js";
|
|
7
4
|
import {
|
|
8
5
|
UploadMediaFormItem
|
|
9
6
|
} from "./chunk-26UTIAAZ.js";
|
|
@@ -13,7 +10,10 @@ import {
|
|
|
13
10
|
decorateVariantsWithDefaultValues,
|
|
14
11
|
generateVariantsFromAttributes,
|
|
15
12
|
normalizeProductFormValues
|
|
16
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-EBYWGIOR.js";
|
|
14
|
+
import {
|
|
15
|
+
HandleInput
|
|
16
|
+
} from "./chunk-HJ56YXBU.js";
|
|
17
17
|
import {
|
|
18
18
|
useAttributeTableFilters
|
|
19
19
|
} from "./chunk-RT6L7JXU.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-4YWKKCTT.js";
|
|
23
23
|
import {
|
|
24
24
|
SingleCategoryCombobox
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QUPUWR42.js";
|
|
26
26
|
import {
|
|
27
27
|
useComboboxData
|
|
28
28
|
} from "./chunk-5KGMGL4N.js";
|
|
@@ -42,9 +42,8 @@ import {
|
|
|
42
42
|
} from "./chunk-YGRTRAWX.js";
|
|
43
43
|
import {
|
|
44
44
|
DataGrid,
|
|
45
|
-
createDataGridHelper
|
|
46
|
-
|
|
47
|
-
} from "./chunk-V6OGMYAI.js";
|
|
45
|
+
createDataGridHelper
|
|
46
|
+
} from "./chunk-KT7X72J4.js";
|
|
48
47
|
import {
|
|
49
48
|
RouteFocusModal,
|
|
50
49
|
StackedFocusModal,
|
|
@@ -59,7 +58,7 @@ import {
|
|
|
59
58
|
} from "./chunk-LYZT5REU.js";
|
|
60
59
|
import {
|
|
61
60
|
require_dist
|
|
62
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-UCYSCKZV.js";
|
|
63
62
|
import {
|
|
64
63
|
useProductAttributes
|
|
65
64
|
} from "./chunk-533GMKEG.js";
|
|
@@ -69,18 +68,15 @@ import {
|
|
|
69
68
|
import {
|
|
70
69
|
useStore
|
|
71
70
|
} from "./chunk-FXWKGNRV.js";
|
|
72
|
-
import {
|
|
73
|
-
usePricePreferences
|
|
74
|
-
} from "./chunk-VDKOJ5WD.js";
|
|
75
71
|
import {
|
|
76
72
|
ActionMenu
|
|
77
73
|
} from "./chunk-BDGZ4EQO.js";
|
|
78
74
|
import {
|
|
79
75
|
useSalesChannel
|
|
80
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-6FHQCLHQ.js";
|
|
81
77
|
import {
|
|
82
78
|
useCreateProduct
|
|
83
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-H3MAUKL7.js";
|
|
84
80
|
import {
|
|
85
81
|
sdk
|
|
86
82
|
} from "./chunk-ZBWL72TB.js";
|
|
@@ -90,13 +86,13 @@ import {
|
|
|
90
86
|
|
|
91
87
|
// src/pages/products/product-create/product-create.tsx
|
|
92
88
|
import { Children as Children2 } from "react";
|
|
93
|
-
import { useTranslation as
|
|
89
|
+
import { useTranslation as useTranslation10 } from "react-i18next";
|
|
94
90
|
|
|
95
91
|
// src/pages/products/product-create/components/product-create-form/product-create-form.tsx
|
|
96
|
-
import { Button as
|
|
97
|
-
import {
|
|
98
|
-
import { useForm, useWatch as
|
|
99
|
-
import { useTranslation as
|
|
92
|
+
import { Button as Button3, toast } from "@medusajs/ui";
|
|
93
|
+
import { useEffect as useEffect3, useMemo as useMemo4, Children } from "react";
|
|
94
|
+
import { useForm, useWatch as useWatch3 } from "react-hook-form";
|
|
95
|
+
import { useTranslation as useTranslation9 } from "react-i18next";
|
|
100
96
|
|
|
101
97
|
// src/pages/products/product-create/components/product-create-attributes-form/product-create-attributes-form.tsx
|
|
102
98
|
var import_types = __toESM(require_dist(), 1);
|
|
@@ -1437,7 +1433,7 @@ var ProductCreateVariantsSection = () => {
|
|
|
1437
1433
|
}
|
|
1438
1434
|
),
|
|
1439
1435
|
/* @__PURE__ */ jsx5(SortableList.DragHandle, {}),
|
|
1440
|
-
variantAxes.map((axis, i) => /* @__PURE__ */ jsx5(Text3, { size: "small", leading: "compact", children: item.
|
|
1436
|
+
variantAxes.map((axis, i) => /* @__PURE__ */ jsx5(Text3, { size: "small", leading: "compact", children: item.options?.[axis.title] ?? "-" }, i))
|
|
1441
1437
|
]
|
|
1442
1438
|
}
|
|
1443
1439
|
)
|
|
@@ -1505,226 +1501,13 @@ var Header = () => {
|
|
|
1505
1501
|
);
|
|
1506
1502
|
};
|
|
1507
1503
|
|
|
1508
|
-
// src/pages/products/product-create/components/product-create-
|
|
1509
|
-
import {
|
|
1510
|
-
import { useFieldArray as useFieldArray4, useWatch as useWatch2 } from "react-hook-form";
|
|
1511
|
-
import { XMarkMini as XMarkMini2 } from "@medusajs/icons";
|
|
1504
|
+
// src/pages/products/product-create/components/product-create-organize-form/components/product-create-organize-section/product-create-details-organize-section.tsx
|
|
1505
|
+
import { Heading as Heading4 } from "@medusajs/ui";
|
|
1512
1506
|
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
1513
1507
|
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1514
|
-
function InventoryItemRow({
|
|
1515
|
-
variantIndex,
|
|
1516
|
-
inventoryIndex,
|
|
1517
|
-
inventoryItem,
|
|
1518
|
-
isItemOptionDisabled,
|
|
1519
|
-
onRemove
|
|
1520
|
-
}) {
|
|
1521
|
-
const form = useTabbedForm();
|
|
1522
|
-
const { t } = useTranslation7();
|
|
1523
|
-
const selectedInventoryItemId = useWatch2({
|
|
1524
|
-
control: form.control,
|
|
1525
|
-
name: `variants.${variantIndex}.inventory.${inventoryIndex}.inventory_item_id`
|
|
1526
|
-
});
|
|
1527
|
-
const items = useComboboxData({
|
|
1528
|
-
queryKey: ["inventory_items"],
|
|
1529
|
-
defaultValueKey: "id",
|
|
1530
|
-
selectedValue: selectedInventoryItemId,
|
|
1531
|
-
queryFn: (params) => sdk.admin.inventoryItems.query(params),
|
|
1532
|
-
getOptions: (data) => data.inventory_items.map((item) => ({
|
|
1533
|
-
label: `${item.title} ${item.sku ? `(${item.sku})` : ""}`,
|
|
1534
|
-
value: item.id
|
|
1535
|
-
}))
|
|
1536
|
-
});
|
|
1537
|
-
return /* @__PURE__ */ jsxs7(
|
|
1538
|
-
"li",
|
|
1539
|
-
{
|
|
1540
|
-
className: "bg-ui-bg-component shadow-elevation-card-rest grid grid-cols-[1fr_28px] items-center gap-1.5 rounded-xl p-1.5",
|
|
1541
|
-
children: [
|
|
1542
|
-
/* @__PURE__ */ jsxs7("div", { className: "grid grid-cols-[min-content,1fr] items-center gap-1.5", children: [
|
|
1543
|
-
/* @__PURE__ */ jsx7("div", { className: "flex items-center px-2 py-1.5", children: /* @__PURE__ */ jsx7(
|
|
1544
|
-
Label3,
|
|
1545
|
-
{
|
|
1546
|
-
size: "xsmall",
|
|
1547
|
-
weight: "plus",
|
|
1548
|
-
className: "text-ui-fg-subtle",
|
|
1549
|
-
htmlFor: `variants.${variantIndex}.inventory.${inventoryIndex}.inventory_item_id`,
|
|
1550
|
-
children: t("fields.item")
|
|
1551
|
-
}
|
|
1552
|
-
) }),
|
|
1553
|
-
/* @__PURE__ */ jsx7(
|
|
1554
|
-
Form.Field,
|
|
1555
|
-
{
|
|
1556
|
-
control: form.control,
|
|
1557
|
-
name: `variants.${variantIndex}.inventory.${inventoryIndex}.inventory_item_id`,
|
|
1558
|
-
render: ({ field }) => {
|
|
1559
|
-
return /* @__PURE__ */ jsx7(Form.Item, { children: /* @__PURE__ */ jsx7(Form.Control, { children: /* @__PURE__ */ jsx7(
|
|
1560
|
-
Combobox,
|
|
1561
|
-
{
|
|
1562
|
-
...field,
|
|
1563
|
-
options: items.options.map((o) => ({
|
|
1564
|
-
...o,
|
|
1565
|
-
disabled: isItemOptionDisabled(o, inventoryIndex)
|
|
1566
|
-
})),
|
|
1567
|
-
searchValue: items.searchValue,
|
|
1568
|
-
onBlur: () => items.onSearchValueChange(""),
|
|
1569
|
-
onSearchValueChange: items.onSearchValueChange,
|
|
1570
|
-
fetchNextPage: items.fetchNextPage,
|
|
1571
|
-
className: "bg-ui-bg-field-component hover:bg-ui-bg-field-component-hover",
|
|
1572
|
-
placeholder: t("products.create.inventory.itemPlaceholder")
|
|
1573
|
-
}
|
|
1574
|
-
) }) });
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
),
|
|
1578
|
-
/* @__PURE__ */ jsx7("div", { className: "flex items-center px-2 py-1.5", children: /* @__PURE__ */ jsx7(
|
|
1579
|
-
Label3,
|
|
1580
|
-
{
|
|
1581
|
-
size: "xsmall",
|
|
1582
|
-
weight: "plus",
|
|
1583
|
-
className: "text-ui-fg-subtle",
|
|
1584
|
-
htmlFor: `variants.${variantIndex}.inventory.${inventoryIndex}.required_quantity`,
|
|
1585
|
-
children: t("fields.quantity")
|
|
1586
|
-
}
|
|
1587
|
-
) }),
|
|
1588
|
-
/* @__PURE__ */ jsx7(
|
|
1589
|
-
Form.Field,
|
|
1590
|
-
{
|
|
1591
|
-
control: form.control,
|
|
1592
|
-
name: `variants.${variantIndex}.inventory.${inventoryIndex}.required_quantity`,
|
|
1593
|
-
render: ({ field: { onChange, value, ...field } }) => {
|
|
1594
|
-
return /* @__PURE__ */ jsxs7(Form.Item, { children: [
|
|
1595
|
-
/* @__PURE__ */ jsx7(Form.Control, { children: /* @__PURE__ */ jsx7(
|
|
1596
|
-
Input3,
|
|
1597
|
-
{
|
|
1598
|
-
type: "number",
|
|
1599
|
-
className: "bg-ui-bg-field-component",
|
|
1600
|
-
min: 0,
|
|
1601
|
-
value,
|
|
1602
|
-
onChange: (e) => {
|
|
1603
|
-
const value2 = e.target.value;
|
|
1604
|
-
if (value2 === "") {
|
|
1605
|
-
onChange(null);
|
|
1606
|
-
} else {
|
|
1607
|
-
onChange(Number(value2));
|
|
1608
|
-
}
|
|
1609
|
-
},
|
|
1610
|
-
...field,
|
|
1611
|
-
placeholder: t(
|
|
1612
|
-
"products.create.inventory.quantityPlaceholder"
|
|
1613
|
-
)
|
|
1614
|
-
}
|
|
1615
|
-
) }),
|
|
1616
|
-
/* @__PURE__ */ jsx7(Form.ErrorMessage, {})
|
|
1617
|
-
] });
|
|
1618
|
-
}
|
|
1619
|
-
}
|
|
1620
|
-
)
|
|
1621
|
-
] }),
|
|
1622
|
-
/* @__PURE__ */ jsx7(
|
|
1623
|
-
IconButton3,
|
|
1624
|
-
{
|
|
1625
|
-
type: "button",
|
|
1626
|
-
size: "small",
|
|
1627
|
-
variant: "transparent",
|
|
1628
|
-
className: "text-ui-fg-muted",
|
|
1629
|
-
onClick: onRemove,
|
|
1630
|
-
children: /* @__PURE__ */ jsx7(XMarkMini2, {})
|
|
1631
|
-
}
|
|
1632
|
-
)
|
|
1633
|
-
]
|
|
1634
|
-
},
|
|
1635
|
-
inventoryItem.id
|
|
1636
|
-
);
|
|
1637
|
-
}
|
|
1638
|
-
function VariantSection({ variant, index }) {
|
|
1639
|
-
const form = useTabbedForm();
|
|
1640
|
-
const { t } = useTranslation7();
|
|
1641
|
-
const inventory = useFieldArray4({
|
|
1642
|
-
control: form.control,
|
|
1643
|
-
name: `variants.${index}.inventory`
|
|
1644
|
-
});
|
|
1645
|
-
const inventoryFormData = useWatch2({
|
|
1646
|
-
control: form.control,
|
|
1647
|
-
name: `variants.${index}.inventory`
|
|
1648
|
-
});
|
|
1649
|
-
const isItemOptionDisabled = (option, inventoryIndex) => {
|
|
1650
|
-
return !!inventoryFormData?.some(
|
|
1651
|
-
(i, index2) => index2 != inventoryIndex && i.inventory_item_id === option.value
|
|
1652
|
-
);
|
|
1653
|
-
};
|
|
1654
|
-
return /* @__PURE__ */ jsxs7("div", { className: "grid gap-y-4", children: [
|
|
1655
|
-
/* @__PURE__ */ jsxs7("div", { className: "flex items-start justify-between gap-x-4", children: [
|
|
1656
|
-
/* @__PURE__ */ jsxs7("div", { className: "flex flex-col", children: [
|
|
1657
|
-
/* @__PURE__ */ jsx7(Form.Label, { children: variant.title }),
|
|
1658
|
-
/* @__PURE__ */ jsx7(Form.Hint, { children: t("products.create.inventory.label") })
|
|
1659
|
-
] }),
|
|
1660
|
-
/* @__PURE__ */ jsx7(
|
|
1661
|
-
Button3,
|
|
1662
|
-
{
|
|
1663
|
-
size: "small",
|
|
1664
|
-
variant: "secondary",
|
|
1665
|
-
type: "button",
|
|
1666
|
-
onClick: () => {
|
|
1667
|
-
inventory.append({
|
|
1668
|
-
inventory_item_id: "",
|
|
1669
|
-
required_quantity: ""
|
|
1670
|
-
});
|
|
1671
|
-
},
|
|
1672
|
-
children: t("actions.add")
|
|
1673
|
-
}
|
|
1674
|
-
)
|
|
1675
|
-
] }),
|
|
1676
|
-
inventory.fields.map((inventoryItem, inventoryIndex) => /* @__PURE__ */ jsx7(
|
|
1677
|
-
InventoryItemRow,
|
|
1678
|
-
{
|
|
1679
|
-
variantIndex: index,
|
|
1680
|
-
inventoryIndex,
|
|
1681
|
-
inventoryItem,
|
|
1682
|
-
isItemOptionDisabled,
|
|
1683
|
-
onRemove: () => inventory.remove(inventoryIndex)
|
|
1684
|
-
},
|
|
1685
|
-
inventoryItem.id
|
|
1686
|
-
))
|
|
1687
|
-
] });
|
|
1688
|
-
}
|
|
1689
|
-
var ProductCreateInventoryKitSection = () => {
|
|
1690
|
-
const form = useTabbedForm();
|
|
1691
|
-
const { t } = useTranslation7();
|
|
1692
|
-
const variants = useFieldArray4({
|
|
1693
|
-
control: form.control,
|
|
1694
|
-
name: "variants"
|
|
1695
|
-
});
|
|
1696
|
-
return /* @__PURE__ */ jsxs7("div", { id: "organize", className: "flex flex-col gap-y-8", children: [
|
|
1697
|
-
/* @__PURE__ */ jsx7(Heading4, { children: t("products.create.inventory.heading") }),
|
|
1698
|
-
variants.fields.filter((v) => v.inventory_kit).map((variant, variantIndex) => /* @__PURE__ */ jsx7(
|
|
1699
|
-
VariantSection,
|
|
1700
|
-
{
|
|
1701
|
-
variant,
|
|
1702
|
-
index: variantIndex
|
|
1703
|
-
},
|
|
1704
|
-
variant.id
|
|
1705
|
-
))
|
|
1706
|
-
] });
|
|
1707
|
-
};
|
|
1708
|
-
|
|
1709
|
-
// src/pages/products/product-create/components/product-create-inventory-kit-form/product-create-inventory-kit-form.tsx
|
|
1710
|
-
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
1711
|
-
var Root3 = () => {
|
|
1712
|
-
return /* @__PURE__ */ jsx8("div", { className: "flex flex-col items-center p-16", "data-testid": "product-create-inventory-kit-form", children: /* @__PURE__ */ jsx8("div", { className: "flex w-full max-w-[720px] flex-col gap-y-8", "data-testid": "product-create-inventory-kit-form-content", children: /* @__PURE__ */ jsx8(ProductCreateInventoryKitSection, {}) }) });
|
|
1713
|
-
};
|
|
1714
|
-
Root3._tabMeta = defineTabMeta({
|
|
1715
|
-
id: "inventory",
|
|
1716
|
-
labelKey: "products.create.tabs.inventory",
|
|
1717
|
-
validationFields: ["variants"]
|
|
1718
|
-
});
|
|
1719
|
-
var ProductCreateInventoryKitForm = Root3;
|
|
1720
|
-
|
|
1721
|
-
// src/pages/products/product-create/components/product-create-organize-form/components/product-create-organize-section/product-create-details-organize-section.tsx
|
|
1722
|
-
import { Heading as Heading5 } from "@medusajs/ui";
|
|
1723
|
-
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
1724
|
-
import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1725
1508
|
var ProductCreateOrganizationSection = () => {
|
|
1726
1509
|
const form = useTabbedForm();
|
|
1727
|
-
const { t } =
|
|
1510
|
+
const { t } = useTranslation7();
|
|
1728
1511
|
const collections = useComboboxData({
|
|
1729
1512
|
queryKey: ["product_collections"],
|
|
1730
1513
|
queryFn: (params) => sdk.admin.collections.query(params),
|
|
@@ -1757,9 +1540,9 @@ var ProductCreateOrganizationSection = () => {
|
|
|
1757
1540
|
value: seller.id
|
|
1758
1541
|
}))
|
|
1759
1542
|
});
|
|
1760
|
-
return /* @__PURE__ */
|
|
1761
|
-
/* @__PURE__ */
|
|
1762
|
-
/* @__PURE__ */
|
|
1543
|
+
return /* @__PURE__ */ jsxs7("div", { id: "organize", className: "flex flex-col gap-y-8", "data-testid": "product-create-organize-section", children: [
|
|
1544
|
+
/* @__PURE__ */ jsx7(Heading4, { "data-testid": "product-create-organize-section-heading", children: t("products.organization.header") }),
|
|
1545
|
+
/* @__PURE__ */ jsx7(
|
|
1763
1546
|
SwitchBox,
|
|
1764
1547
|
{
|
|
1765
1548
|
control: form.control,
|
|
@@ -1770,36 +1553,36 @@ var ProductCreateOrganizationSection = () => {
|
|
|
1770
1553
|
"data-testid": "product-create-organize-section-discountable-switch"
|
|
1771
1554
|
}
|
|
1772
1555
|
),
|
|
1773
|
-
/* @__PURE__ */
|
|
1774
|
-
/* @__PURE__ */
|
|
1556
|
+
/* @__PURE__ */ jsxs7("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-2", "data-testid": "product-create-organize-section-category-collection", children: [
|
|
1557
|
+
/* @__PURE__ */ jsx7(
|
|
1775
1558
|
Form.Field,
|
|
1776
1559
|
{
|
|
1777
1560
|
control: form.control,
|
|
1778
1561
|
name: "category_id",
|
|
1779
1562
|
render: ({ field }) => {
|
|
1780
|
-
return /* @__PURE__ */
|
|
1781
|
-
/* @__PURE__ */
|
|
1782
|
-
/* @__PURE__ */
|
|
1563
|
+
return /* @__PURE__ */ jsxs7(Form.Item, { "data-testid": "product-create-organize-section-category-item", children: [
|
|
1564
|
+
/* @__PURE__ */ jsx7(Form.Label, { "data-testid": "product-create-organize-section-category-label", children: t("fields.category") }),
|
|
1565
|
+
/* @__PURE__ */ jsx7(Form.Control, { "data-testid": "product-create-organize-section-category-control", children: /* @__PURE__ */ jsx7(
|
|
1783
1566
|
SingleCategoryCombobox,
|
|
1784
1567
|
{
|
|
1785
1568
|
...field,
|
|
1786
1569
|
"data-testid": "product-create-organize-section-category-input"
|
|
1787
1570
|
}
|
|
1788
1571
|
) }),
|
|
1789
|
-
/* @__PURE__ */
|
|
1572
|
+
/* @__PURE__ */ jsx7(Form.ErrorMessage, {})
|
|
1790
1573
|
] });
|
|
1791
1574
|
}
|
|
1792
1575
|
}
|
|
1793
1576
|
),
|
|
1794
|
-
/* @__PURE__ */
|
|
1577
|
+
/* @__PURE__ */ jsx7(
|
|
1795
1578
|
Form.Field,
|
|
1796
1579
|
{
|
|
1797
1580
|
control: form.control,
|
|
1798
1581
|
name: "collection_id",
|
|
1799
1582
|
render: ({ field }) => {
|
|
1800
|
-
return /* @__PURE__ */
|
|
1801
|
-
/* @__PURE__ */
|
|
1802
|
-
/* @__PURE__ */
|
|
1583
|
+
return /* @__PURE__ */ jsxs7(Form.Item, { "data-testid": "product-create-organize-section-collection-item", children: [
|
|
1584
|
+
/* @__PURE__ */ jsx7(Form.Label, { optional: true, "data-testid": "product-create-organize-section-collection-label", children: t("products.fields.collection.label") }),
|
|
1585
|
+
/* @__PURE__ */ jsx7(Form.Control, { "data-testid": "product-create-organize-section-collection-control", children: /* @__PURE__ */ jsx7(
|
|
1803
1586
|
Combobox,
|
|
1804
1587
|
{
|
|
1805
1588
|
...field,
|
|
@@ -1810,22 +1593,22 @@ var ProductCreateOrganizationSection = () => {
|
|
|
1810
1593
|
"data-testid": "product-create-organize-section-collection-input"
|
|
1811
1594
|
}
|
|
1812
1595
|
) }),
|
|
1813
|
-
/* @__PURE__ */
|
|
1596
|
+
/* @__PURE__ */ jsx7(Form.ErrorMessage, {})
|
|
1814
1597
|
] });
|
|
1815
1598
|
}
|
|
1816
1599
|
}
|
|
1817
1600
|
)
|
|
1818
1601
|
] }),
|
|
1819
|
-
/* @__PURE__ */
|
|
1820
|
-
/* @__PURE__ */
|
|
1602
|
+
/* @__PURE__ */ jsxs7("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-2", "data-testid": "product-create-organize-section-type-tags", children: [
|
|
1603
|
+
/* @__PURE__ */ jsx7(
|
|
1821
1604
|
Form.Field,
|
|
1822
1605
|
{
|
|
1823
1606
|
control: form.control,
|
|
1824
1607
|
name: "type_id",
|
|
1825
1608
|
render: ({ field }) => {
|
|
1826
|
-
return /* @__PURE__ */
|
|
1827
|
-
/* @__PURE__ */
|
|
1828
|
-
/* @__PURE__ */
|
|
1609
|
+
return /* @__PURE__ */ jsxs7(Form.Item, { "data-testid": "product-create-organize-section-type-item", children: [
|
|
1610
|
+
/* @__PURE__ */ jsx7(Form.Label, { optional: true, "data-testid": "product-create-organize-section-type-label", children: t("products.fields.type.label") }),
|
|
1611
|
+
/* @__PURE__ */ jsx7(Form.Control, { "data-testid": "product-create-organize-section-type-control", children: /* @__PURE__ */ jsx7(
|
|
1829
1612
|
Combobox,
|
|
1830
1613
|
{
|
|
1831
1614
|
...field,
|
|
@@ -1836,20 +1619,20 @@ var ProductCreateOrganizationSection = () => {
|
|
|
1836
1619
|
"data-testid": "product-create-organize-section-type-input"
|
|
1837
1620
|
}
|
|
1838
1621
|
) }),
|
|
1839
|
-
/* @__PURE__ */
|
|
1622
|
+
/* @__PURE__ */ jsx7(Form.ErrorMessage, {})
|
|
1840
1623
|
] });
|
|
1841
1624
|
}
|
|
1842
1625
|
}
|
|
1843
1626
|
),
|
|
1844
|
-
/* @__PURE__ */
|
|
1627
|
+
/* @__PURE__ */ jsx7(
|
|
1845
1628
|
Form.Field,
|
|
1846
1629
|
{
|
|
1847
1630
|
control: form.control,
|
|
1848
1631
|
name: "tags",
|
|
1849
1632
|
render: ({ field }) => {
|
|
1850
|
-
return /* @__PURE__ */
|
|
1851
|
-
/* @__PURE__ */
|
|
1852
|
-
/* @__PURE__ */
|
|
1633
|
+
return /* @__PURE__ */ jsxs7(Form.Item, { "data-testid": "product-create-organize-section-tags-item", children: [
|
|
1634
|
+
/* @__PURE__ */ jsx7(Form.Label, { optional: true, "data-testid": "product-create-organize-section-tags-label", children: t("products.fields.tags.label") }),
|
|
1635
|
+
/* @__PURE__ */ jsx7(Form.Control, { "data-testid": "product-create-organize-section-tags-control", children: /* @__PURE__ */ jsx7(
|
|
1853
1636
|
Combobox,
|
|
1854
1637
|
{
|
|
1855
1638
|
...field,
|
|
@@ -1860,21 +1643,21 @@ var ProductCreateOrganizationSection = () => {
|
|
|
1860
1643
|
"data-testid": "product-create-organize-section-tags-input"
|
|
1861
1644
|
}
|
|
1862
1645
|
) }),
|
|
1863
|
-
/* @__PURE__ */
|
|
1646
|
+
/* @__PURE__ */ jsx7(Form.ErrorMessage, {})
|
|
1864
1647
|
] });
|
|
1865
1648
|
}
|
|
1866
1649
|
}
|
|
1867
1650
|
)
|
|
1868
1651
|
] }),
|
|
1869
|
-
/* @__PURE__ */
|
|
1652
|
+
/* @__PURE__ */ jsx7("div", { className: "grid grid-cols-1 gap-4 md:grid-cols-2", "data-testid": "product-create-organize-section-stores", children: /* @__PURE__ */ jsx7(
|
|
1870
1653
|
Form.Field,
|
|
1871
1654
|
{
|
|
1872
1655
|
control: form.control,
|
|
1873
1656
|
name: "seller_ids",
|
|
1874
1657
|
render: ({ field }) => {
|
|
1875
|
-
return /* @__PURE__ */
|
|
1876
|
-
/* @__PURE__ */
|
|
1877
|
-
/* @__PURE__ */
|
|
1658
|
+
return /* @__PURE__ */ jsxs7(Form.Item, { "data-testid": "product-create-organize-section-stores-item", children: [
|
|
1659
|
+
/* @__PURE__ */ jsx7(Form.Label, { optional: true, "data-testid": "product-create-organize-section-stores-label", children: t("products.fields.stores.label") }),
|
|
1660
|
+
/* @__PURE__ */ jsx7(Form.Control, { "data-testid": "product-create-organize-section-stores-control", children: /* @__PURE__ */ jsx7(
|
|
1878
1661
|
Combobox,
|
|
1879
1662
|
{
|
|
1880
1663
|
...field,
|
|
@@ -1886,7 +1669,7 @@ var ProductCreateOrganizationSection = () => {
|
|
|
1886
1669
|
"data-testid": "product-create-organize-section-stores-input"
|
|
1887
1670
|
}
|
|
1888
1671
|
) }),
|
|
1889
|
-
/* @__PURE__ */
|
|
1672
|
+
/* @__PURE__ */ jsx7(Form.ErrorMessage, {})
|
|
1890
1673
|
] });
|
|
1891
1674
|
}
|
|
1892
1675
|
}
|
|
@@ -1895,25 +1678,25 @@ var ProductCreateOrganizationSection = () => {
|
|
|
1895
1678
|
};
|
|
1896
1679
|
|
|
1897
1680
|
// src/pages/products/product-create/components/product-create-organize-form/product-create-organize-form.tsx
|
|
1898
|
-
import { jsx as
|
|
1899
|
-
var
|
|
1900
|
-
return /* @__PURE__ */
|
|
1681
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
1682
|
+
var Root3 = () => {
|
|
1683
|
+
return /* @__PURE__ */ jsx8(
|
|
1901
1684
|
"div",
|
|
1902
1685
|
{
|
|
1903
1686
|
className: "flex flex-col items-center p-16",
|
|
1904
1687
|
"data-testid": "product-create-organize-form",
|
|
1905
|
-
children: /* @__PURE__ */
|
|
1688
|
+
children: /* @__PURE__ */ jsx8(
|
|
1906
1689
|
"div",
|
|
1907
1690
|
{
|
|
1908
1691
|
className: "flex w-full max-w-[720px] flex-col gap-y-8",
|
|
1909
1692
|
"data-testid": "product-create-organize-form-content",
|
|
1910
|
-
children: /* @__PURE__ */
|
|
1693
|
+
children: /* @__PURE__ */ jsx8(ProductCreateOrganizationSection, {})
|
|
1911
1694
|
}
|
|
1912
1695
|
)
|
|
1913
1696
|
}
|
|
1914
1697
|
);
|
|
1915
1698
|
};
|
|
1916
|
-
|
|
1699
|
+
Root3._tabMeta = defineTabMeta({
|
|
1917
1700
|
id: "organize",
|
|
1918
1701
|
labelKey: "products.create.tabs.organize",
|
|
1919
1702
|
validationFields: [
|
|
@@ -1932,33 +1715,22 @@ Root4._tabMeta = defineTabMeta({
|
|
|
1932
1715
|
"hs_code"
|
|
1933
1716
|
]
|
|
1934
1717
|
});
|
|
1935
|
-
var ProductCreateOrganizeForm =
|
|
1718
|
+
var ProductCreateOrganizeForm = Root3;
|
|
1936
1719
|
|
|
1937
1720
|
// src/pages/products/product-create/components/product-create-variants-form/product-create-variants-form.tsx
|
|
1938
1721
|
import { useMemo as useMemo3 } from "react";
|
|
1939
|
-
import { useWatch as
|
|
1940
|
-
import { useTranslation as
|
|
1941
|
-
import { jsx as
|
|
1942
|
-
var
|
|
1722
|
+
import { useWatch as useWatch2 } from "react-hook-form";
|
|
1723
|
+
import { useTranslation as useTranslation8 } from "react-i18next";
|
|
1724
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1725
|
+
var Root4 = () => {
|
|
1943
1726
|
const form = useTabbedForm();
|
|
1944
1727
|
const { setCloseOnEscape } = useRouteModal();
|
|
1945
|
-
const
|
|
1946
|
-
fields: "+default_sales_channel"
|
|
1947
|
-
});
|
|
1948
|
-
const { regions } = useRegions({ limit: 9999 });
|
|
1949
|
-
const { price_preferences: pricePreferences } = usePricePreferences({
|
|
1950
|
-
limit: 9999
|
|
1951
|
-
});
|
|
1952
|
-
const currencyCodes = useMemo3(
|
|
1953
|
-
() => store?.supported_currencies?.map((c) => c.currency_code) || [],
|
|
1954
|
-
[store]
|
|
1955
|
-
);
|
|
1956
|
-
const variants = useWatch3({
|
|
1728
|
+
const variants = useWatch2({
|
|
1957
1729
|
control: form.control,
|
|
1958
1730
|
name: "variants",
|
|
1959
1731
|
defaultValue: []
|
|
1960
1732
|
});
|
|
1961
|
-
const watchedAttributes =
|
|
1733
|
+
const watchedAttributes = useWatch2({
|
|
1962
1734
|
control: form.control,
|
|
1963
1735
|
name: "attributes",
|
|
1964
1736
|
defaultValue: []
|
|
@@ -1969,10 +1741,7 @@ var Root5 = () => {
|
|
|
1969
1741
|
}));
|
|
1970
1742
|
}, [watchedAttributes]);
|
|
1971
1743
|
const columns = useColumns2({
|
|
1972
|
-
variantAxes
|
|
1973
|
-
currencies: currencyCodes,
|
|
1974
|
-
regions: regions ?? [],
|
|
1975
|
-
pricePreferences: pricePreferences ?? []
|
|
1744
|
+
variantAxes
|
|
1976
1745
|
});
|
|
1977
1746
|
const variantData = useMemo3(() => {
|
|
1978
1747
|
const ret = [];
|
|
@@ -1983,12 +1752,12 @@ var Root5 = () => {
|
|
|
1983
1752
|
});
|
|
1984
1753
|
return ret;
|
|
1985
1754
|
}, [variants]);
|
|
1986
|
-
return /* @__PURE__ */
|
|
1755
|
+
return /* @__PURE__ */ jsx9(
|
|
1987
1756
|
"div",
|
|
1988
1757
|
{
|
|
1989
1758
|
className: "flex size-full flex-col divide-y overflow-hidden",
|
|
1990
1759
|
"data-testid": "product-create-variants-form",
|
|
1991
|
-
children: /* @__PURE__ */
|
|
1760
|
+
children: /* @__PURE__ */ jsx9("div", { "data-testid": "product-create-variants-form-datagrid", children: /* @__PURE__ */ jsx9(
|
|
1992
1761
|
DataGrid,
|
|
1993
1762
|
{
|
|
1994
1763
|
columns,
|
|
@@ -2000,27 +1769,24 @@ var Root5 = () => {
|
|
|
2000
1769
|
}
|
|
2001
1770
|
);
|
|
2002
1771
|
};
|
|
2003
|
-
|
|
1772
|
+
Root4._tabMeta = defineTabMeta({
|
|
2004
1773
|
id: "variants",
|
|
2005
1774
|
labelKey: "products.create.tabs.variants",
|
|
2006
1775
|
validationFields: ["variants"]
|
|
2007
1776
|
});
|
|
2008
|
-
var ProductCreateVariantsForm =
|
|
1777
|
+
var ProductCreateVariantsForm = Root4;
|
|
2009
1778
|
var columnHelper2 = createDataGridHelper();
|
|
2010
1779
|
var useColumns2 = ({
|
|
2011
|
-
variantAxes
|
|
2012
|
-
currencies = [],
|
|
2013
|
-
regions = [],
|
|
2014
|
-
pricePreferences = []
|
|
1780
|
+
variantAxes
|
|
2015
1781
|
}) => {
|
|
2016
|
-
const { t } =
|
|
1782
|
+
const { t } = useTranslation8();
|
|
2017
1783
|
return useMemo3(
|
|
2018
1784
|
() => [
|
|
2019
1785
|
columnHelper2.column({
|
|
2020
1786
|
id: "attributes",
|
|
2021
|
-
header: () => /* @__PURE__ */
|
|
1787
|
+
header: () => /* @__PURE__ */ jsx9("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx9("span", { className: "truncate", children: variantAxes.map((a) => a.title).join(" / ") }) }),
|
|
2022
1788
|
cell: (context) => {
|
|
2023
|
-
return /* @__PURE__ */
|
|
1789
|
+
return /* @__PURE__ */ jsx9(DataGrid.ReadonlyCell, { context, children: variantAxes.map((a) => context.row.original.options?.[a.title]).join(" / ") });
|
|
2024
1790
|
},
|
|
2025
1791
|
disableHiding: true
|
|
2026
1792
|
}),
|
|
@@ -2031,7 +1797,7 @@ var useColumns2 = ({
|
|
|
2031
1797
|
field: (context) => `variants.${context.row.original.originalIndex}.title`,
|
|
2032
1798
|
type: "text",
|
|
2033
1799
|
cell: (context) => {
|
|
2034
|
-
return /* @__PURE__ */
|
|
1800
|
+
return /* @__PURE__ */ jsx9(DataGrid.TextCell, { context });
|
|
2035
1801
|
}
|
|
2036
1802
|
}),
|
|
2037
1803
|
columnHelper2.column({
|
|
@@ -2041,72 +1807,24 @@ var useColumns2 = ({
|
|
|
2041
1807
|
field: (context) => `variants.${context.row.original.originalIndex}.sku`,
|
|
2042
1808
|
type: "text",
|
|
2043
1809
|
cell: (context) => {
|
|
2044
|
-
return /* @__PURE__ */
|
|
2045
|
-
}
|
|
2046
|
-
}),
|
|
2047
|
-
columnHelper2.column({
|
|
2048
|
-
id: "manage_inventory",
|
|
2049
|
-
name: t("fields.managedInventory"),
|
|
2050
|
-
header: t("fields.managedInventory"),
|
|
2051
|
-
field: (context) => `variants.${context.row.original.originalIndex}.manage_inventory`,
|
|
2052
|
-
type: "boolean",
|
|
2053
|
-
cell: (context) => {
|
|
2054
|
-
return /* @__PURE__ */ jsx11(DataGrid.BooleanCell, { context });
|
|
2055
|
-
}
|
|
2056
|
-
}),
|
|
2057
|
-
columnHelper2.column({
|
|
2058
|
-
id: "allow_backorder",
|
|
2059
|
-
name: t("fields.allowBackorder"),
|
|
2060
|
-
header: t("fields.allowBackorder"),
|
|
2061
|
-
field: (context) => `variants.${context.row.original.originalIndex}.allow_backorder`,
|
|
2062
|
-
type: "boolean",
|
|
2063
|
-
cell: (context) => {
|
|
2064
|
-
return /* @__PURE__ */ jsx11(DataGrid.BooleanCell, { context });
|
|
2065
|
-
}
|
|
2066
|
-
}),
|
|
2067
|
-
columnHelper2.column({
|
|
2068
|
-
id: "inventory_kit",
|
|
2069
|
-
name: t("fields.inventoryKit"),
|
|
2070
|
-
header: t("fields.inventoryKit"),
|
|
2071
|
-
field: (context) => `variants.${context.row.original.originalIndex}.inventory_kit`,
|
|
2072
|
-
type: "boolean",
|
|
2073
|
-
cell: (context) => {
|
|
2074
|
-
return /* @__PURE__ */ jsx11(
|
|
2075
|
-
DataGrid.BooleanCell,
|
|
2076
|
-
{
|
|
2077
|
-
context,
|
|
2078
|
-
disabled: !context.row.original.manage_inventory
|
|
2079
|
-
}
|
|
2080
|
-
);
|
|
1810
|
+
return /* @__PURE__ */ jsx9(DataGrid.TextCell, { context });
|
|
2081
1811
|
}
|
|
2082
|
-
}),
|
|
2083
|
-
...createDataGridPriceColumns({
|
|
2084
|
-
currencies,
|
|
2085
|
-
regions,
|
|
2086
|
-
pricePreferences,
|
|
2087
|
-
getFieldName: (context, value) => {
|
|
2088
|
-
if (context.column.id?.startsWith("currency_prices")) {
|
|
2089
|
-
return `variants.${context.row.original.originalIndex}.prices.${value}`;
|
|
2090
|
-
}
|
|
2091
|
-
return `variants.${context.row.original.originalIndex}.prices.${value}`;
|
|
2092
|
-
},
|
|
2093
|
-
t
|
|
2094
1812
|
})
|
|
2095
1813
|
],
|
|
2096
|
-
[
|
|
1814
|
+
[variantAxes, t]
|
|
2097
1815
|
);
|
|
2098
1816
|
};
|
|
2099
1817
|
|
|
2100
1818
|
// src/pages/products/product-create/components/product-create-form/product-create-form.tsx
|
|
2101
1819
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
2102
|
-
import { jsx as
|
|
1820
|
+
import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2103
1821
|
var SAVE_DRAFT_BUTTON = "save-draft-button";
|
|
2104
1822
|
var ProductCreateForm = ({
|
|
2105
1823
|
children,
|
|
2106
1824
|
schema,
|
|
2107
1825
|
defaultValues: extraDefaults
|
|
2108
1826
|
}) => {
|
|
2109
|
-
const { t } =
|
|
1827
|
+
const { t } = useTranslation9();
|
|
2110
1828
|
const { handleSuccess } = useRouteModal();
|
|
2111
1829
|
const form = useForm({
|
|
2112
1830
|
defaultValues: {
|
|
@@ -2137,11 +1855,7 @@ var ProductCreateForm = ({
|
|
|
2137
1855
|
{}
|
|
2138
1856
|
);
|
|
2139
1857
|
}, [regions]);
|
|
2140
|
-
const
|
|
2141
|
-
control: form.control,
|
|
2142
|
-
name: "variants"
|
|
2143
|
-
});
|
|
2144
|
-
const watchedAttributes = useWatch4({
|
|
1858
|
+
const watchedAttributes = useWatch3({
|
|
2145
1859
|
control: form.control,
|
|
2146
1860
|
name: "attributes"
|
|
2147
1861
|
});
|
|
@@ -2151,7 +1865,7 @@ var ProductCreateForm = ({
|
|
|
2151
1865
|
watchedAttributes ?? [],
|
|
2152
1866
|
currentVariants
|
|
2153
1867
|
);
|
|
2154
|
-
if (JSON.stringify(newVariants.map((v) => v.
|
|
1868
|
+
if (JSON.stringify(newVariants.map((v) => v.options)) !== JSON.stringify(currentVariants.map((v) => v.options))) {
|
|
2155
1869
|
form.setValue("variants", newVariants);
|
|
2156
1870
|
}
|
|
2157
1871
|
}, [watchedAttributes]);
|
|
@@ -2213,47 +1927,30 @@ var ProductCreateForm = ({
|
|
|
2213
1927
|
}
|
|
2214
1928
|
);
|
|
2215
1929
|
});
|
|
2216
|
-
const transformTabs = useCallback(
|
|
2217
|
-
(tabs) => {
|
|
2218
|
-
const showInventoryTab = watchedVariants?.some((v) => v.manage_inventory && v.inventory_kit) ?? false;
|
|
2219
|
-
return tabs.map((tab) => {
|
|
2220
|
-
if (tab.id === "inventory") {
|
|
2221
|
-
return {
|
|
2222
|
-
...tab,
|
|
2223
|
-
isVisible: () => showInventoryTab
|
|
2224
|
-
};
|
|
2225
|
-
}
|
|
2226
|
-
return tab;
|
|
2227
|
-
});
|
|
2228
|
-
},
|
|
2229
|
-
[watchedVariants]
|
|
2230
|
-
);
|
|
2231
1930
|
const defaultTabs = useMemo4(
|
|
2232
1931
|
() => [
|
|
2233
|
-
/* @__PURE__ */
|
|
2234
|
-
/* @__PURE__ */
|
|
2235
|
-
/* @__PURE__ */
|
|
2236
|
-
/* @__PURE__ */
|
|
2237
|
-
/* @__PURE__ */ jsx12(ProductCreateInventoryKitForm, {}, "inventory")
|
|
1932
|
+
/* @__PURE__ */ jsx10(ProductCreateDetailsForm, {}, "details"),
|
|
1933
|
+
/* @__PURE__ */ jsx10(ProductCreateOrganizeForm, {}, "organize"),
|
|
1934
|
+
/* @__PURE__ */ jsx10(ProductCreateAttributesForm, {}, "attributes"),
|
|
1935
|
+
/* @__PURE__ */ jsx10(ProductCreateVariantsForm, {}, "variants")
|
|
2238
1936
|
],
|
|
2239
1937
|
[]
|
|
2240
1938
|
);
|
|
2241
1939
|
const hasCustomChildren = Children.count(children) > 0;
|
|
2242
|
-
return /* @__PURE__ */
|
|
1940
|
+
return /* @__PURE__ */ jsx10(
|
|
2243
1941
|
TabbedForm,
|
|
2244
1942
|
{
|
|
2245
1943
|
form,
|
|
2246
1944
|
onSubmit: handleSubmit,
|
|
2247
1945
|
isLoading: isPending || isRegionsPending,
|
|
2248
|
-
|
|
2249
|
-
footer: ({ isLastTab, onNext, isLoading }) => /* @__PURE__ */ jsxs9(
|
|
1946
|
+
footer: ({ isLastTab, onNext, isLoading }) => /* @__PURE__ */ jsxs8(
|
|
2250
1947
|
"div",
|
|
2251
1948
|
{
|
|
2252
1949
|
className: "flex items-center justify-end gap-x-2",
|
|
2253
1950
|
"data-testid": "product-create-form-footer-actions",
|
|
2254
1951
|
children: [
|
|
2255
|
-
/* @__PURE__ */
|
|
2256
|
-
|
|
1952
|
+
/* @__PURE__ */ jsx10(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx10(
|
|
1953
|
+
Button3,
|
|
2257
1954
|
{
|
|
2258
1955
|
variant: "secondary",
|
|
2259
1956
|
size: "small",
|
|
@@ -2261,8 +1958,8 @@ var ProductCreateForm = ({
|
|
|
2261
1958
|
children: t("actions.cancel")
|
|
2262
1959
|
}
|
|
2263
1960
|
) }),
|
|
2264
|
-
/* @__PURE__ */
|
|
2265
|
-
|
|
1961
|
+
/* @__PURE__ */ jsx10(
|
|
1962
|
+
Button3,
|
|
2266
1963
|
{
|
|
2267
1964
|
"data-name": SAVE_DRAFT_BUTTON,
|
|
2268
1965
|
size: "small",
|
|
@@ -2273,8 +1970,8 @@ var ProductCreateForm = ({
|
|
|
2273
1970
|
children: t("actions.saveAsDraft")
|
|
2274
1971
|
}
|
|
2275
1972
|
),
|
|
2276
|
-
isLastTab ? /* @__PURE__ */
|
|
2277
|
-
|
|
1973
|
+
isLastTab ? /* @__PURE__ */ jsx10(
|
|
1974
|
+
Button3,
|
|
2278
1975
|
{
|
|
2279
1976
|
"data-name": "publish-button",
|
|
2280
1977
|
type: "submit",
|
|
@@ -2285,8 +1982,8 @@ var ProductCreateForm = ({
|
|
|
2285
1982
|
children: t("actions.publish")
|
|
2286
1983
|
},
|
|
2287
1984
|
"submit-button"
|
|
2288
|
-
) : /* @__PURE__ */
|
|
2289
|
-
|
|
1985
|
+
) : /* @__PURE__ */ jsx10(
|
|
1986
|
+
Button3,
|
|
2290
1987
|
{
|
|
2291
1988
|
type: "button",
|
|
2292
1989
|
variant: "primary",
|
|
@@ -2306,9 +2003,9 @@ var ProductCreateForm = ({
|
|
|
2306
2003
|
};
|
|
2307
2004
|
|
|
2308
2005
|
// src/pages/products/product-create/product-create.tsx
|
|
2309
|
-
import { jsx as
|
|
2310
|
-
var
|
|
2311
|
-
const { t } =
|
|
2006
|
+
import { jsx as jsx11, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2007
|
+
var Root5 = ({ children }) => {
|
|
2008
|
+
const { t } = useTranslation10();
|
|
2312
2009
|
const {
|
|
2313
2010
|
store,
|
|
2314
2011
|
isPending: isStorePending,
|
|
@@ -2332,20 +2029,19 @@ var Root6 = ({ children }) => {
|
|
|
2332
2029
|
if (isSalesChannelError) {
|
|
2333
2030
|
throw salesChannelError;
|
|
2334
2031
|
}
|
|
2335
|
-
return /* @__PURE__ */
|
|
2336
|
-
/* @__PURE__ */
|
|
2337
|
-
/* @__PURE__ */
|
|
2338
|
-
ready && (Children2.count(children) > 0 ? children : /* @__PURE__ */
|
|
2032
|
+
return /* @__PURE__ */ jsxs9(RouteFocusModal, { children: [
|
|
2033
|
+
/* @__PURE__ */ jsx11(RouteFocusModal.Title, { asChild: true, children: /* @__PURE__ */ jsx11("span", { className: "sr-only", children: t("products.create.title") }) }),
|
|
2034
|
+
/* @__PURE__ */ jsx11(RouteFocusModal.Description, { asChild: true, children: /* @__PURE__ */ jsx11("span", { className: "sr-only", children: t("products.create.description") }) }),
|
|
2035
|
+
ready && (Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx11(ProductCreateForm, {}))
|
|
2339
2036
|
] });
|
|
2340
2037
|
};
|
|
2341
|
-
var ProductCreate =
|
|
2342
|
-
var ProductCreatePage = Object.assign(
|
|
2038
|
+
var ProductCreate = Root5;
|
|
2039
|
+
var ProductCreatePage = Object.assign(Root5, {
|
|
2343
2040
|
Form: ProductCreateForm,
|
|
2344
2041
|
DetailsTab: ProductCreateDetailsForm,
|
|
2345
2042
|
OrganizeTab: ProductCreateOrganizeForm,
|
|
2346
2043
|
AttributesTab: ProductCreateAttributesForm,
|
|
2347
2044
|
VariantsTab: ProductCreateVariantsForm,
|
|
2348
|
-
InventoryTab: ProductCreateInventoryKitForm,
|
|
2349
2045
|
Tab: TabbedForm.Tab
|
|
2350
2046
|
});
|
|
2351
2047
|
|