@mercurjs/vendor 2.0.0 → 2.0.1
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]-S6EPH4OO.js → [id]-6WYSWXWC.js} +30 -28
- package/dist/{[id]-SJXBJLAT.js → [id]-CLZ7BUYL.js} +9 -8
- package/dist/{[id]-47FGVJYM.js → [id]-DCCF7277.js} +35 -33
- package/dist/{[id]-ARXBXGNZ.js → [id]-EJAHMOOE.js} +33 -31
- package/dist/{[id]-HD76VJ2P.js → [id]-ENTJSLN2.js} +16 -15
- package/dist/{[id]-XY3A3EMF.js → [id]-LZPT5Y55.js} +32 -31
- package/dist/{[id]-Z4P7XA4G.js → [id]-OGHRZ2VY.js} +232 -103
- package/dist/{[id]-FLIHBDAS.js → [id]-PHS2WYFX.js} +33 -31
- package/dist/{[id]-JF6CCBRE.js → [id]-T64V4G6T.js} +19 -18
- package/dist/{[id]-IWPWKLOH.js → [id]-TLZZ53G7.js} +13 -12
- package/dist/{[id]-6HM66I3E.js → [id]-UAOAQVEM.js} +48 -45
- package/dist/{[id]-Q6HILUAG.js → [id]-VKG2WEIR.js} +39 -37
- package/dist/{[id]-VTFOP3BF.js → [id]-WRA56ZMU.js} +5 -5
- package/dist/{[id]-MIV4U5UW.js → [id]-XRGNT7CY.js} +7 -7
- package/dist/{[location_id]-AWDD2VHW.js → [location_id]-7ZUB2TTU.js} +14 -14
- package/dist/{[province_id]-36QJ2FKC.js → [province_id]-XGA44S7P.js} +30 -29
- package/dist/add-7ZTE42IE.js +158 -0
- package/dist/{add-YUANWTIL.js → add-AKC7LTK3.js} +49 -46
- package/dist/{add-customer-groups-7SLONTS2.js → add-customer-groups-BRC3DKQ2.js} +29 -27
- package/dist/{add-products-ISR3DRPQ.js → add-products-ZSULNZVI.js} +31 -29
- package/dist/{add-promotions-FZRDYHYX.js → add-promotions-TNFVT5ST.js} +12 -11
- package/dist/{add-to-campaign-V6D7JKRS.js → add-to-campaign-HL6NGRR4.js} +6 -6
- package/dist/address-3DSJESKM.js +249 -0
- package/dist/{adjust-inventory-P7AB7VIB.js → adjust-inventory-H4EUP7J3.js} +4 -4
- package/dist/{allocate-items-QAS5PZLR.js → allocate-items-6OAKG25R.js} +8 -8
- package/dist/{areas-Y7VDWH7G.js → areas-JO6L3M7Y.js} +11 -10
- package/dist/{attributes-UEM2VJKV.js → attributes-WRZYJEYN.js} +5 -4
- package/dist/{breadcrumb-6NAAOPIY.js → breadcrumb-3Z7KZG62.js} +4 -4
- package/dist/{breadcrumb-5OTOCYNL.js → breadcrumb-5BXDYVRO.js} +4 -4
- package/dist/{breadcrumb-3QTVWXZB.js → breadcrumb-BS7Y5OKF.js} +5 -5
- package/dist/{breadcrumb-CIGKLKKS.js → breadcrumb-D3UDTWGE.js} +3 -3
- package/dist/breadcrumb-D6QNYOAO.js +45 -0
- package/dist/{breadcrumb-OVMEC5OZ.js → breadcrumb-F3BN5753.js} +3 -3
- package/dist/{breadcrumb-MOQ7GI3Z.js → breadcrumb-KQSFIXQ4.js} +3 -3
- package/dist/{breadcrumb-NCBGPQML.js → breadcrumb-M5Z5WA6I.js} +4 -4
- package/dist/{breadcrumb-EOYLR3IQ.js → breadcrumb-OIGGCB3L.js} +3 -3
- package/dist/{breadcrumb-LENACUAA.js → breadcrumb-UAUX7XCV.js} +3 -3
- package/dist/breadcrumb-UH7FAYU2.js +46 -0
- package/dist/{breadcrumb-ASB2YCNV.js → breadcrumb-Y5UW3I4C.js} +3 -3
- package/dist/{breadcrumb-WP34OXGQ.js → breadcrumb-YBBYFQYG.js} +3 -3
- package/dist/breadcrumb-ZMVHXCOX.js +32 -0
- package/dist/bulk-edit-C6WJKURW.js +244 -0
- package/dist/{campaigns-PMVKUFEA.js → campaigns-SF2YDBID.js} +9 -8
- package/dist/{categories-JARCKR7M.js → categories-WRDJAJ2Q.js} +9 -8
- package/dist/{chunk-HUZG6A3X.js → chunk-2POPPFAP.js} +3 -3
- package/dist/{chunk-S5GQ2SES.js → chunk-2SLAVXFY.js} +5 -5
- package/dist/{chunk-JVBLYMY2.js → chunk-32RYSB2V.js} +2 -2
- package/dist/{chunk-VHMGJUYN.js → chunk-3B34B2M2.js} +1 -1
- package/dist/{chunk-BI2WWFPS.js → chunk-3BZBEC3Y.js} +1 -1
- package/dist/{chunk-LMHJRE4A.js → chunk-3DXMZA7M.js} +2 -2
- package/dist/{chunk-Z2WPXJ6J.js → chunk-4DYUQ3G5.js} +2 -2
- package/dist/{chunk-HBQC3YQZ.js → chunk-573EQEW2.js} +1 -1
- package/dist/{chunk-FBZHM2QZ.js → chunk-5BONGICL.js} +5 -5
- package/dist/{chunk-ZZ7VKT2S.js → chunk-5IWBNPZX.js} +766 -204
- package/dist/{chunk-KHHY7EEM.js → chunk-6WY5X4PE.js} +5 -5
- package/dist/{chunk-CUO22GTM.js → chunk-7TIZP4YG.js} +1 -1
- package/dist/{chunk-52I65K53.js → chunk-7XC7ZRG7.js} +17 -129
- package/dist/{chunk-AONKZGWL.js → chunk-ASEVHHCT.js} +3 -3
- package/dist/{chunk-TG3TCIL6.js → chunk-AW4WN2EK.js} +6 -6
- package/dist/{chunk-DDEIH66R.js → chunk-B5326BWT.js} +4 -4
- package/dist/{chunk-O6PRBSFL.js → chunk-BI2AYXZQ.js} +50 -35
- package/dist/{chunk-HUNGNEPY.js → chunk-BOZJOOGW.js} +1 -1
- package/dist/{chunk-AIFLEWO2.js → chunk-BWGPN6XV.js} +1 -1
- package/dist/{chunk-5XOCUDS2.js → chunk-CUMY2VZ5.js} +1 -1
- package/dist/chunk-DLNNTQRY.js +217 -0
- package/dist/{chunk-B2RVONU7.js → chunk-DRAZNW7J.js} +4 -4
- package/dist/{chunk-CVVYQI5F.js → chunk-EBZ5VZEO.js} +1 -1
- package/dist/{chunk-ZPGWTLF2.js → chunk-EFIF2GCZ.js} +4 -4
- package/dist/{chunk-DHADGZJ5.js → chunk-F4OJN2F2.js} +40 -5
- package/dist/{chunk-PYQJ5N25.js → chunk-FEUCCLKR.js} +6 -6
- package/dist/{chunk-JKSPDM7I.js → chunk-FNG7ZA7N.js} +1 -1
- package/dist/{chunk-UXKKD4AD.js → chunk-FQTYHU6G.js} +5 -5
- package/dist/chunk-FX4V5JCF.js +37 -0
- package/dist/{chunk-ZFFA36DB.js → chunk-GCSQEJMD.js} +2 -2
- package/dist/{chunk-NANYVBFI.js → chunk-GJM5XI3E.js} +1 -1
- package/dist/{chunk-W6ZVQJYB.js → chunk-GYV6SKY7.js} +1 -1
- package/dist/chunk-I5K5USJM.js +330 -0
- package/dist/{chunk-J2XP7VRG.js → chunk-IBTTL6EJ.js} +4 -4
- package/dist/{chunk-3LPVUPZZ.js → chunk-IDYGSAHT.js} +1 -1
- package/dist/{chunk-DC2K6CFQ.js → chunk-IQWK723D.js} +1 -1
- package/dist/{chunk-PWZKFTJS.js → chunk-ITQW6CK2.js} +5 -5
- package/dist/{chunk-NWFWI4IE.js → chunk-JKKRKFCS.js} +55 -62
- package/dist/chunk-JQV7CXEC.js +37 -0
- package/dist/{chunk-RH2NI4BC.js → chunk-JRT2U4UI.js} +448 -101
- package/dist/{chunk-4FCZDRAE.js → chunk-JTCUWZ7D.js} +5 -5
- package/dist/chunk-LA6XSPQG.js +3723 -0
- package/dist/{chunk-JXP5YZ77.js → chunk-LHKHQAAY.js} +1 -1
- package/dist/{chunk-TTFCO5HU.js → chunk-LKA7QM6R.js} +7 -7
- package/dist/{chunk-FGCKXH45.js → chunk-LPOAVK6Y.js} +1 -0
- package/dist/{chunk-VGJTARSA.js → chunk-LRARA622.js} +2 -2
- package/dist/chunk-LRD242C7.js +40 -0
- package/dist/{chunk-PADOWAXM.js → chunk-LWJF63JW.js} +1 -1
- package/dist/{chunk-DYUTYBAQ.js → chunk-M6N4ISXL.js} +1 -1
- package/dist/{chunk-2F3H6ORE.js → chunk-MWQQVKRU.js} +1 -1
- package/dist/{chunk-JK5CK6SW.js → chunk-N2WKLVUX.js} +20 -3
- package/dist/{chunk-R65A4P4H.js → chunk-N335VHD3.js} +1 -1
- package/dist/chunk-NBMM2TZK.js +33 -0
- package/dist/{chunk-SI4ALL7W.js → chunk-NBPMNUKZ.js} +1 -1
- package/dist/{chunk-GDMNHL7E.js → chunk-NCABGI3E.js} +6 -6
- package/dist/chunk-NYRRRCJS.js +339 -0
- package/dist/{chunk-QJ7QW3SZ.js → chunk-O7E4KQAK.js} +6 -6
- package/dist/{chunk-NKB6WTBH.js → chunk-OWPZ3CIR.js} +5 -5
- package/dist/{chunk-RE7YXVFG.js → chunk-PCMNEUMV.js} +3 -3
- package/dist/{chunk-CFETU5BI.js → chunk-QHQWEERJ.js} +1 -36
- package/dist/{chunk-WHTS4G5K.js → chunk-QXUKJDZB.js} +1 -1
- package/dist/{chunk-Y224F4UU.js → chunk-RIN4CBRB.js} +0 -1
- package/dist/{chunk-LWVBKUUL.js → chunk-RL7SFZOF.js} +2 -2
- package/dist/{chunk-UYJ65N46.js → chunk-RLETOWCM.js} +5 -5
- package/dist/{chunk-DVPTD7LZ.js → chunk-RMBCBXWD.js} +1 -1
- package/dist/{chunk-A2BNIZ7D.js → chunk-RTAWYMQP.js} +1 -1
- package/dist/{chunk-VJTYMQVA.js → chunk-RUE5BPC2.js} +2 -2
- package/dist/{chunk-EOOK6473.js → chunk-RV5UTYBG.js} +15 -13
- package/dist/chunk-S2Q7PO7I.js +177 -0
- package/dist/{chunk-Y4VBOHAP.js → chunk-S7EKBD2C.js} +3 -3
- package/dist/{chunk-CELHWX5P.js → chunk-SDSEW72R.js} +5 -5
- package/dist/{chunk-4TBDDMFP.js → chunk-SGT6QYWH.js} +1 -1
- package/dist/chunk-STBCWNZQ.js +57 -0
- package/dist/{chunk-LZ7QV42C.js → chunk-SYNUA6LQ.js} +1 -1
- package/dist/{chunk-CTWSWZ4R.js → chunk-T7LEJIIM.js} +4 -4
- package/dist/{chunk-7EM7WET3.js → chunk-TZTKHOEK.js} +4 -4
- package/dist/chunk-UL4O5M4S.js +45 -0
- package/dist/{chunk-AW77UWCZ.js → chunk-VBRTC2VU.js} +13 -4
- package/dist/{chunk-VDWGP2U6.js → chunk-VV6IKGCN.js} +1 -1
- package/dist/{chunk-JKXAL7WR.js → chunk-VXMOPVRH.js} +2 -2
- package/dist/{chunk-RIILGKYR.js → chunk-VXWN37PT.js} +1 -1
- package/dist/{chunk-CDIZEXFJ.js → chunk-WQX4ASK4.js} +6 -4
- package/dist/{chunk-SOZMJA7V.js → chunk-X22KTLZ7.js} +1 -1
- package/dist/{chunk-SDA5NDMT.js → chunk-XZG2HZYW.js} +2 -2
- package/dist/{chunk-SECZTXSU.js → chunk-YQYRAD5C.js} +1 -1
- package/dist/{chunk-WPFTRRWV.js → chunk-ZEVYT6IX.js} +202 -6
- package/dist/chunk-ZWTCVOHQ.js +14 -0
- package/dist/{chunk-NX26QE2O.js → chunk-ZYOXKUKZ.js} +1 -1
- package/dist/chunk-ZZO3INVE.js +9631 -0
- package/dist/collections-2M4RFH4P.js +66 -0
- package/dist/{configuration-RNWBTRAH.js → configuration-O5GDANA7.js} +5 -5
- package/dist/{configuration-KWAL2QZ5.js → configuration-RHPIO2QT.js} +3 -3
- package/dist/{create-BEVGWF6U.js → create-2TUWGQ2D.js} +33 -32
- package/dist/{create-YPCVTXAK.js → create-33TRLASX.js} +4 -4
- package/dist/{create-BBFTIFI2.js → create-3WUTLUJO.js} +36 -33
- package/dist/create-6IRE6AMF.js +78 -0
- package/dist/{create-F5K53QPH.js → create-D4F457BD.js} +38 -36
- package/dist/{create-7UEEO5TM.js → create-D6EW3EWC.js} +3 -3
- package/dist/{create-EJM5C2XP.js → create-FFKQAZ5D.js} +6 -6
- package/dist/{create-ZU362U3B.js → create-GHM7OTCR.js} +3 -3
- package/dist/{create-VUKGQU4L.js → create-IFMEEHN4.js} +34 -32
- package/dist/{create-IE6MYOIY.js → create-IOUKWPE4.js} +11 -10
- package/dist/{create-XGF6DB5F.js → create-KGOMJUXR.js} +5 -4
- package/dist/{create-TFDUNJSI.js → create-KGYL7FBM.js} +3 -3
- package/dist/{create-UCU73IXX.js → create-OF2OZ7EI.js} +25 -23
- package/dist/{create-MKBBF2V3.js → create-Q6ITSYJM.js} +3 -3
- package/dist/{create-VEWS4QDP.js → create-QK2SSLZK.js} +48 -45
- package/dist/{create-NPSYO6PE.js → create-YITFTHMA.js} +37 -35
- package/dist/{customers-4QWR5UOL.js → customers-OXAD52MC.js} +10 -9
- package/dist/{edit-J3LD76JS.js → edit-4HZHLYI3.js} +6 -6
- package/dist/{edit-47I7VVNB.js → edit-5CJZRHAA.js} +3 -3
- package/dist/{edit-BYXHU3IG.js → edit-7GVP6SRA.js} +3 -3
- package/dist/{edit-J6WCPHDS.js → edit-7HTH2UJF.js} +5 -5
- package/dist/{edit-XU33IVZH.js → edit-ATXE6CM5.js} +3 -3
- package/dist/{edit-ZMINDMGM.js → edit-B5B3XKDM.js} +3 -3
- package/dist/{edit-DG3MY3ZH.js → edit-FC64DWB2.js} +5 -5
- package/dist/{edit-LOKLQGM2.js → edit-FNDDSSMT.js} +3 -3
- package/dist/{edit-S7B7VPM4.js → edit-J5SC7GHQ.js} +29 -28
- package/dist/{edit-7LQATDUD.js → edit-LRRJTHV2.js} +4 -4
- package/dist/{edit-BQLSTFTQ.js → edit-MYSWY6W4.js} +5 -5
- package/dist/edit-ONSN756P.js +237 -0
- package/dist/{edit-JZVEAKJU.js → edit-PIE7Y73J.js} +49 -46
- package/dist/{edit-CZVL3IVY.js → edit-QRJIWTU2.js} +30 -29
- package/dist/{edit-JAKXFAVP.js → edit-SGEECDCR.js} +25 -24
- package/dist/{edit-5BUGSOTL.js → edit-UAXMJAEI.js} +5 -4
- package/dist/edit-UQAQVEUI.js +353 -0
- package/dist/edit-Z7EZRPUP.js +362 -0
- package/dist/{edit-NHU3LJIH.js → edit-ZEIL7EQW.js} +23 -22
- package/dist/{edit-budget-Z5USV462.js → edit-budget-J27CSEZH.js} +3 -3
- package/dist/{edit-inventory-item-YFW2AFRD.js → edit-inventory-item-US77M2FF.js} +3 -3
- package/dist/{edit-inventory-item-attributes-IYAMJDTB.js → edit-inventory-item-attributes-QYNDTUHT.js} +5 -4
- package/dist/edit-stocks-and-prices-543AYFDJ.js +409 -0
- package/dist/{fulfillment-V3D4XU3R.js → fulfillment-5LNFBSBS.js} +26 -25
- package/dist/{fulfillment-providers-YYN3GVV7.js → fulfillment-providers-U7Z7QMOQ.js} +33 -31
- package/dist/{home-PP7YYCSB.js → home-I3OILW5Z.js} +2 -2
- package/dist/index.css +5127 -3
- package/dist/index.js +453 -215
- package/dist/{inventory-AIRQ2KNS.js → inventory-W6S2NIBI.js} +8 -7
- package/dist/invite-P6HTOEIV.js +301 -0
- package/dist/invite-SI2KIPWI.js +370 -0
- package/dist/{locations-SQKM7JWN.js → locations-7SQJ3O2F.js} +4 -4
- package/dist/login-QDS5UXKV.js +36 -0
- package/dist/{manage-locations-4PQS4QY7.js → manage-locations-R4T72DTA.js} +4 -4
- package/dist/{media-UR73M6X2.js → media-RDXCLPKQ.js} +7 -6
- package/dist/{metadata-REBVXJJF.js → metadata-7JKDCVYY.js} +26 -25
- package/dist/{metadata-DIJTVDF7.js → metadata-AWUKZ25V.js} +6 -6
- package/dist/{metadata-ZKG2TRYU.js → metadata-UKBRUFH2.js} +23 -22
- package/dist/{metadata-UBZXDIFG.js → metadata-W5XIPFVU.js} +26 -25
- package/dist/{metadata-OOM44E2U.js → metadata-X4UIPNL6.js} +26 -25
- package/dist/{metadata-OGVHZEKS.js → metadata-ZV5RYLKR.js} +23 -22
- package/dist/{no-match-BO2NNLCM.js → no-match-JLVLPCRH.js} +1 -1
- package/dist/onboarding-DLIBZRKE.js +873 -0
- package/dist/orders-IAL3JNPU.js +61 -0
- package/dist/organization-QCSXE52A.js +303 -0
- package/dist/{organize-5AIJPYS2.js → organize-5W5KNBM2.js} +5 -5
- package/dist/{organize-YXJVI74L.js → organize-U2LVYSOD.js} +5 -5
- package/dist/pages/index.d.ts +222 -49
- package/dist/pages/index.js +96 -93
- package/dist/payment-details-ATUYMVJX.js +234 -0
- package/dist/{payouts-3BY73LZ3.js → payouts-ZLX3KFQT.js} +9 -8
- package/dist/{price-lists-G256JJN7.js → price-lists-JX22K5EO.js} +10 -9
- package/dist/{prices-EW7KBY6R.js → prices-6NY4DELP.js} +14 -13
- package/dist/{pricing-SQNF3KGG.js → pricing-RBESFX5P.js} +33 -31
- package/dist/{product-tags-FR32HXFW.js → product-tags-W4BL6RWV.js} +43 -40
- package/dist/{product-types-WJPLJI7H.js → product-types-MBLFYJOA.js} +10 -9
- package/dist/{product-variant-detail-G5MBDTFL.js → product-variant-detail-KU5OCL7E.js} +270 -56
- package/dist/{product-variant-edit-PW7W5J5E.js → product-variant-edit-5FMMMH2W.js} +8 -7
- package/dist/{products-C4BF2X7D.js → products-3VVYJUH7.js} +31 -29
- package/dist/products-YYLVCOOY.js +93 -0
- package/dist/professional-details-6Y5K6GBL.js +167 -0
- package/dist/profile-Y4AATQES.js +171 -0
- package/dist/{promotions-INYBMACT.js → promotions-NBJTFP6N.js} +10 -9
- package/dist/register-ZLE6MNPF.js +223 -0
- package/dist/{reset-password-CPTU3KHW.js → reset-password-PLCDLFL4.js} +4 -4
- package/dist/{chunk-5NF4OTVV.js → return-reasons-64WZ5Z3Z.js} +46 -5
- package/dist/{sales-channels-6I3U4W4Z.js → sales-channels-UIDLFCX6.js} +10 -9
- package/dist/{sales-channels-SOACADV2.js → sales-channels-UWPEFKAO.js} +12 -11
- package/dist/{settings-MAXHH7EC.js → settings-5MNWE5CR.js} +53 -56
- package/dist/{shipping-profile-7FTHSPY2.js → shipping-profile-JJBIVZPM.js} +4 -4
- package/dist/shipping-profiles-O7XB2DTE.js +45 -0
- package/dist/{stock-LOO5SU5Q.js → stock-2CGEFBXO.js} +30 -30
- package/dist/{stock-4G4PELBV.js → stock-VJAAYYW5.js} +30 -31
- package/dist/store-ZBSMNWFT.js +568 -0
- package/dist/store-closure-43FK32AQ.js +172 -0
- package/dist/store-select-Q2HE572R.js +166 -0
- package/dist/{tax-regions-45JVTUP3.js → tax-regions-FPMGLITT.js} +8 -8
- package/dist/team-ZLZJJWIY.js +269 -0
- package/package.json +9 -6
- package/dist/additional-attributes-XUFDADGP.js +0 -219
- package/dist/breadcrumb-3RAESPC7.js +0 -31
- package/dist/breadcrumb-54IEJEAX.js +0 -45
- package/dist/breadcrumb-CFDJOGTA.js +0 -44
- package/dist/chunk-6EYGH3TB.js +0 -26
- package/dist/chunk-FPJLYWOU.js +0 -190
- package/dist/chunk-GTUR4HSV.js +0 -53
- package/dist/chunk-LODQAVDC.js +0 -179
- package/dist/chunk-NYK5PQIF.js +0 -2078
- package/dist/chunk-PKBMQBKP.js +0 -7
- package/dist/chunk-RNC4NFVK.js +0 -170
- package/dist/collections-2222I5MO.js +0 -63
- package/dist/create-R3SFYWAH.js +0 -69
- package/dist/edit-HBNCGMQO.js +0 -413
- package/dist/login-RDIRFQ7U.js +0 -35
- package/dist/orders-Q347PBOH.js +0 -59
- package/dist/organization-TDDI3HOH.js +0 -233
- package/dist/products-4WTWZIVH.js +0 -85
- package/dist/register-6WOPLDJK.js +0 -366
- package/dist/return-reasons-4V2KVSRI.js +0 -52
- package/dist/seller-44DTDU26.js +0 -36
- package/dist/shipping-profiles-3PYQLYFE.js +0 -43
- /package/dist/{chunk-XG4PTPRM.js → chunk-NXDFDEKP.js} +0 -0
- /package/dist/{chunk-S3PQKKNV.js → chunk-V74Y5NIV.js} +0 -0
|
@@ -3,20 +3,20 @@ import {
|
|
|
3
3
|
} from "./chunk-OVPAOBZB.js";
|
|
4
4
|
import {
|
|
5
5
|
Combobox
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VBRTC2VU.js";
|
|
7
7
|
import {
|
|
8
8
|
Form
|
|
9
9
|
} from "./chunk-3QSRE5LS.js";
|
|
10
10
|
import {
|
|
11
11
|
usePromotionRuleAttributes,
|
|
12
12
|
usePromotionRules
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-BOZJOOGW.js";
|
|
14
14
|
import {
|
|
15
15
|
useStore
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FX4V5JCF.js";
|
|
17
17
|
import {
|
|
18
18
|
sdk
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RIN4CBRB.js";
|
|
20
20
|
|
|
21
21
|
// src/pages/promotions/common/edit-rules/components/rules-form-field/rules-form-field.tsx
|
|
22
22
|
import { XMarkMini } from "@medusajs/icons";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sdk
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RIN4CBRB.js";
|
|
4
4
|
|
|
5
5
|
// src/hooks/api/auth.tsx
|
|
6
6
|
import { useMutation } from "@tanstack/react-query";
|
|
@@ -8,7 +8,7 @@ var useSignInWithEmailPass = (options) => {
|
|
|
8
8
|
return useMutation({
|
|
9
9
|
mutationFn: async (payload) => {
|
|
10
10
|
const data = await sdk.auth.$actorType.$authProvider.mutate({
|
|
11
|
-
$actorType: "
|
|
11
|
+
$actorType: "member",
|
|
12
12
|
$authProvider: "emailpass",
|
|
13
13
|
...payload
|
|
14
14
|
});
|
|
@@ -30,12 +30,45 @@ var useSignInWithEmailPass = (options) => {
|
|
|
30
30
|
var useSignUpWithEmailPass = (options) => {
|
|
31
31
|
return useMutation({
|
|
32
32
|
mutationFn: (payload) => sdk.auth.$actorType.$authProvider.register.mutate({
|
|
33
|
-
$actorType: "
|
|
33
|
+
$actorType: "member",
|
|
34
34
|
$authProvider: "emailpass",
|
|
35
35
|
...payload
|
|
36
36
|
}),
|
|
37
37
|
onSuccess: async (data, variables, context) => {
|
|
38
38
|
options?.onSuccess?.(data, variables, context);
|
|
39
|
+
await sdk.auth.session.mutate({
|
|
40
|
+
fetchOptions: {
|
|
41
|
+
headers: {
|
|
42
|
+
Authorization: `Bearer ${data.token}`
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
...options
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var useSignUpForInvite = (options) => {
|
|
51
|
+
return useMutation({
|
|
52
|
+
mutationFn: async (payload) => {
|
|
53
|
+
const result = await sdk.auth.$actorType.$authProvider.register.mutate({
|
|
54
|
+
$actorType: "member",
|
|
55
|
+
$authProvider: "emailpass",
|
|
56
|
+
...payload
|
|
57
|
+
});
|
|
58
|
+
return result;
|
|
59
|
+
},
|
|
60
|
+
...options
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
var useSignInForInvite = (options) => {
|
|
64
|
+
return useMutation({
|
|
65
|
+
mutationFn: async (payload) => {
|
|
66
|
+
const result = await sdk.auth.$actorType.$authProvider.mutate({
|
|
67
|
+
$actorType: "member",
|
|
68
|
+
$authProvider: "emailpass",
|
|
69
|
+
...payload
|
|
70
|
+
});
|
|
71
|
+
return result;
|
|
39
72
|
},
|
|
40
73
|
...options
|
|
41
74
|
});
|
|
@@ -43,7 +76,7 @@ var useSignUpWithEmailPass = (options) => {
|
|
|
43
76
|
var useResetPasswordForEmailPass = (options) => {
|
|
44
77
|
return useMutation({
|
|
45
78
|
mutationFn: (payload) => sdk.auth.$actorType.$authProvider.resetPassword.mutate({
|
|
46
|
-
$actorType: "
|
|
79
|
+
$actorType: "member",
|
|
47
80
|
$authProvider: "emailpass",
|
|
48
81
|
identifier: payload.email,
|
|
49
82
|
metadata: {}
|
|
@@ -63,7 +96,7 @@ var useLogout = (options) => {
|
|
|
63
96
|
var useUpdateProviderForEmailPass = (token, options) => {
|
|
64
97
|
return useMutation({
|
|
65
98
|
mutationFn: (payload) => sdk.auth.$actorType.$authProvider.update.mutate({
|
|
66
|
-
$actorType: "
|
|
99
|
+
$actorType: "member",
|
|
67
100
|
$authProvider: "emailpass",
|
|
68
101
|
...payload,
|
|
69
102
|
fetchOptions: {
|
|
@@ -82,6 +115,8 @@ var useUpdateProviderForEmailPass = (token, options) => {
|
|
|
82
115
|
export {
|
|
83
116
|
useSignInWithEmailPass,
|
|
84
117
|
useSignUpWithEmailPass,
|
|
118
|
+
useSignUpForInvite,
|
|
119
|
+
useSignInForInvite,
|
|
85
120
|
useResetPasswordForEmailPass,
|
|
86
121
|
useLogout,
|
|
87
122
|
useUpdateProviderForEmailPass
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDeleteProductTypeAction
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MWQQVKRU.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTypeTableColumns
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EBZ5VZEO.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTypeTableQuery
|
|
9
9
|
} from "./chunk-VOHEQ7B5.js";
|
|
@@ -13,16 +13,16 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
_DataTable,
|
|
15
15
|
useDataTable
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QXUKJDZB.js";
|
|
17
17
|
import {
|
|
18
18
|
SingleColumnPage
|
|
19
19
|
} from "./chunk-RM5RSDYP.js";
|
|
20
|
+
import {
|
|
21
|
+
useProductTypes
|
|
22
|
+
} from "./chunk-VV6IKGCN.js";
|
|
20
23
|
import {
|
|
21
24
|
ActionMenu
|
|
22
25
|
} from "./chunk-BDGZ4EQO.js";
|
|
23
|
-
import {
|
|
24
|
-
useProductTypes
|
|
25
|
-
} from "./chunk-VDWGP2U6.js";
|
|
26
26
|
|
|
27
27
|
// src/pages/settings/product-types/product-type-list-page.tsx
|
|
28
28
|
import { Children as Children3 } from "react";
|
|
@@ -4,23 +4,23 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
_DataTable,
|
|
6
6
|
useDataTable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QXUKJDZB.js";
|
|
8
8
|
import {
|
|
9
9
|
SingleColumnPage
|
|
10
10
|
} from "./chunk-RM5RSDYP.js";
|
|
11
11
|
import {
|
|
12
12
|
useQueryParams
|
|
13
13
|
} from "./chunk-THHRRYRS.js";
|
|
14
|
+
import {
|
|
15
|
+
useStockLocations
|
|
16
|
+
} from "./chunk-NBPMNUKZ.js";
|
|
14
17
|
import {
|
|
15
18
|
ActionMenu
|
|
16
19
|
} from "./chunk-BDGZ4EQO.js";
|
|
17
|
-
import {
|
|
18
|
-
useStockLocations
|
|
19
|
-
} from "./chunk-SI4ALL7W.js";
|
|
20
20
|
import {
|
|
21
21
|
useDeleteInventoryItem,
|
|
22
22
|
useInventoryItems
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZEVYT6IX.js";
|
|
24
24
|
|
|
25
25
|
// src/pages/inventory/inventory-list-page.tsx
|
|
26
26
|
import { Children as Children2 } from "react";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import {
|
|
2
|
+
queryKeysFactory
|
|
3
|
+
} from "./chunk-ZA2KFUFR.js";
|
|
4
|
+
import {
|
|
5
|
+
sdk
|
|
6
|
+
} from "./chunk-RIN4CBRB.js";
|
|
7
|
+
|
|
8
|
+
// src/hooks/api/store.tsx
|
|
9
|
+
import { useQuery } from "@tanstack/react-query";
|
|
10
|
+
import { ClientError } from "@mercurjs/client";
|
|
11
|
+
var STORE_QUERY_KEY = "store";
|
|
12
|
+
var storeQueryKeys = queryKeysFactory(STORE_QUERY_KEY);
|
|
13
|
+
async function retrieveActiveStore(query) {
|
|
14
|
+
const response = await sdk.vendor.stores.query({ ...query });
|
|
15
|
+
const activeStore = response.stores?.[0];
|
|
16
|
+
if (!activeStore) {
|
|
17
|
+
throw new ClientError("No active store found", "Not Found", 404);
|
|
18
|
+
}
|
|
19
|
+
return { store: activeStore };
|
|
20
|
+
}
|
|
21
|
+
var useStore = (query, options) => {
|
|
22
|
+
const { data, ...rest } = useQuery({
|
|
23
|
+
queryFn: () => retrieveActiveStore(query),
|
|
24
|
+
queryKey: storeQueryKeys.details(),
|
|
25
|
+
...options
|
|
26
|
+
});
|
|
27
|
+
return {
|
|
28
|
+
...data,
|
|
29
|
+
...rest
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
storeQueryKeys,
|
|
35
|
+
retrieveActiveStore,
|
|
36
|
+
useStore
|
|
37
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
inventoryItemLevelsQueryKeys,
|
|
3
3
|
inventoryItemsQueryKeys
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZEVYT6IX.js";
|
|
5
5
|
import {
|
|
6
6
|
queryClient
|
|
7
7
|
} from "./chunk-RHKRREUU.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
fetchQuery,
|
|
13
13
|
sdk
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RIN4CBRB.js";
|
|
15
15
|
|
|
16
16
|
// src/hooks/api/orders.tsx
|
|
17
17
|
import {
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NumericInput
|
|
3
|
+
} from "./chunk-DLNNTQRY.js";
|
|
4
|
+
import {
|
|
5
|
+
ChipInput
|
|
6
|
+
} from "./chunk-NCYTM57J.js";
|
|
7
|
+
import {
|
|
8
|
+
SwitchBox
|
|
9
|
+
} from "./chunk-YVCBMOJG.js";
|
|
10
|
+
import {
|
|
11
|
+
Combobox
|
|
12
|
+
} from "./chunk-VBRTC2VU.js";
|
|
13
|
+
import {
|
|
14
|
+
Form
|
|
15
|
+
} from "./chunk-3QSRE5LS.js";
|
|
16
|
+
|
|
17
|
+
// src/pages/products/create/product-create-attributes-form/user-created-options-list.tsx
|
|
18
|
+
import { XMarkMini } from "@medusajs/icons";
|
|
19
|
+
import { IconButton, Input, Select, Textarea } from "@medusajs/ui";
|
|
20
|
+
import { useTranslation } from "react-i18next";
|
|
21
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
+
var UserCreatedOptionsList = ({
|
|
23
|
+
form,
|
|
24
|
+
options,
|
|
25
|
+
allowRemove = true,
|
|
26
|
+
availableAttributes,
|
|
27
|
+
allNonRequiredAttributes,
|
|
28
|
+
isExistingProduct = false,
|
|
29
|
+
allowCreate = true
|
|
30
|
+
}) => {
|
|
31
|
+
const { t } = useTranslation();
|
|
32
|
+
if (options?.fields?.length === 0) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return /* @__PURE__ */ jsx("ul", { className: "flex flex-col gap-y-4", children: options.fields.map(({ id }, index) => {
|
|
36
|
+
const attributeLookup = allNonRequiredAttributes || availableAttributes;
|
|
37
|
+
const selectedAttribute = attributeLookup?.find(
|
|
38
|
+
(attribute) => attribute.id === form.watch(`options.${index}.attributeId`)
|
|
39
|
+
);
|
|
40
|
+
const uiComponent = selectedAttribute?.ui_component;
|
|
41
|
+
const possibleValueOptions = selectedAttribute?.possible_values.map(({ value }) => ({
|
|
42
|
+
label: value,
|
|
43
|
+
value
|
|
44
|
+
})) ?? [];
|
|
45
|
+
const showUseForVariants = !selectedAttribute || uiComponent === "multivalue";
|
|
46
|
+
return /* @__PURE__ */ jsxs(
|
|
47
|
+
"li",
|
|
48
|
+
{
|
|
49
|
+
className: "flex flex-col gap-y-2 rounded-xl border bg-ui-bg-component p-1.5",
|
|
50
|
+
children: [
|
|
51
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
52
|
+
/* @__PURE__ */ jsxs("div", { className: "flex grow flex-col gap-y-2", children: [
|
|
53
|
+
/* @__PURE__ */ jsx(
|
|
54
|
+
Form.Field,
|
|
55
|
+
{
|
|
56
|
+
control: form.control,
|
|
57
|
+
name: `options.${index}.title`,
|
|
58
|
+
render: ({
|
|
59
|
+
field: { onChange, ...field },
|
|
60
|
+
fieldState
|
|
61
|
+
}) => {
|
|
62
|
+
return /* @__PURE__ */ jsxs(Form.Item, { children: [
|
|
63
|
+
/* @__PURE__ */ jsx(Form.Label, { children: t(
|
|
64
|
+
"products.fields.attributes.add.title.label"
|
|
65
|
+
) }),
|
|
66
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-1.5", children: [
|
|
67
|
+
/* @__PURE__ */ jsx(
|
|
68
|
+
Combobox,
|
|
69
|
+
{
|
|
70
|
+
...field,
|
|
71
|
+
placeholder: t(
|
|
72
|
+
"products.fields.attributes.add.title.placeholder"
|
|
73
|
+
),
|
|
74
|
+
"aria-invalid": !!fieldState.error,
|
|
75
|
+
options: [
|
|
76
|
+
...(availableAttributes || []).map(
|
|
77
|
+
(attribute) => ({
|
|
78
|
+
label: attribute.name,
|
|
79
|
+
value: attribute.id
|
|
80
|
+
})
|
|
81
|
+
)
|
|
82
|
+
],
|
|
83
|
+
onChange: (v) => {
|
|
84
|
+
const foundAttribute = availableAttributes?.find(
|
|
85
|
+
(attribute) => attribute.id === v
|
|
86
|
+
);
|
|
87
|
+
if (foundAttribute) {
|
|
88
|
+
form.setValue(
|
|
89
|
+
`options.${index}.values`,
|
|
90
|
+
[]
|
|
91
|
+
);
|
|
92
|
+
form.setValue(
|
|
93
|
+
`options.${index}.attributeId`,
|
|
94
|
+
v
|
|
95
|
+
);
|
|
96
|
+
form.setValue(
|
|
97
|
+
`options.${index}.title`,
|
|
98
|
+
foundAttribute.name || ""
|
|
99
|
+
);
|
|
100
|
+
form.setValue(
|
|
101
|
+
`options.${index}.metadata`,
|
|
102
|
+
{ author: "admin" }
|
|
103
|
+
);
|
|
104
|
+
form.setValue(
|
|
105
|
+
`options.${index}.useForVariants`,
|
|
106
|
+
false
|
|
107
|
+
);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
form.setValue(
|
|
111
|
+
`options.${index}.values`,
|
|
112
|
+
[]
|
|
113
|
+
);
|
|
114
|
+
form.setValue(
|
|
115
|
+
`options.${index}.attributeId`,
|
|
116
|
+
""
|
|
117
|
+
);
|
|
118
|
+
form.setValue(
|
|
119
|
+
`options.${index}.metadata`,
|
|
120
|
+
{ author: "vendor" }
|
|
121
|
+
);
|
|
122
|
+
onChange(v);
|
|
123
|
+
},
|
|
124
|
+
onCreateOption: allowCreate ? (value) => {
|
|
125
|
+
form.setValue(
|
|
126
|
+
`options.${index}.title`,
|
|
127
|
+
value
|
|
128
|
+
);
|
|
129
|
+
form.setValue(
|
|
130
|
+
`options.${index}.attributeId`,
|
|
131
|
+
""
|
|
132
|
+
);
|
|
133
|
+
form.setValue(
|
|
134
|
+
`options.${index}.metadata`,
|
|
135
|
+
{ author: "vendor" }
|
|
136
|
+
);
|
|
137
|
+
form.setValue(
|
|
138
|
+
`options.${index}.values`,
|
|
139
|
+
[]
|
|
140
|
+
);
|
|
141
|
+
} : void 0,
|
|
142
|
+
className: "w-full bg-ui-bg-base hover:bg-ui-bg-base-hover",
|
|
143
|
+
multiple: false,
|
|
144
|
+
showCheck: false
|
|
145
|
+
}
|
|
146
|
+
),
|
|
147
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
|
148
|
+
] }) })
|
|
149
|
+
] });
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
),
|
|
153
|
+
/* @__PURE__ */ jsx(
|
|
154
|
+
Form.Field,
|
|
155
|
+
{
|
|
156
|
+
control: form.control,
|
|
157
|
+
name: `options.${index}.values`,
|
|
158
|
+
render: ({ field: { ...field }, fieldState }) => {
|
|
159
|
+
const renderInput = () => {
|
|
160
|
+
if (!selectedAttribute) {
|
|
161
|
+
return /* @__PURE__ */ jsx(
|
|
162
|
+
ChipInput,
|
|
163
|
+
{
|
|
164
|
+
...field,
|
|
165
|
+
variant: "contrast",
|
|
166
|
+
placeholder: t(
|
|
167
|
+
"products.fields.attributes.add.values.placeholder"
|
|
168
|
+
),
|
|
169
|
+
className: "w-full",
|
|
170
|
+
"aria-invalid": !!fieldState.error
|
|
171
|
+
}
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
if (uiComponent === "select") {
|
|
175
|
+
return /* @__PURE__ */ jsx(
|
|
176
|
+
Combobox,
|
|
177
|
+
{
|
|
178
|
+
value: field.value[0] ?? "",
|
|
179
|
+
onChange: (val) => field.onChange(
|
|
180
|
+
val ? [val] : []
|
|
181
|
+
),
|
|
182
|
+
options: possibleValueOptions,
|
|
183
|
+
multiple: false,
|
|
184
|
+
showCheck: false,
|
|
185
|
+
"aria-invalid": !!fieldState.error,
|
|
186
|
+
className: "w-full bg-ui-bg-base hover:bg-ui-bg-base-hover"
|
|
187
|
+
}
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
if (uiComponent === "text") {
|
|
191
|
+
return /* @__PURE__ */ jsx(
|
|
192
|
+
Input,
|
|
193
|
+
{
|
|
194
|
+
value: field.value[0] ?? "",
|
|
195
|
+
onChange: (e) => field.onChange([e.target.value]),
|
|
196
|
+
placeholder: t(
|
|
197
|
+
"products.fields.attributes.add.values.placeholder"
|
|
198
|
+
),
|
|
199
|
+
className: "w-full",
|
|
200
|
+
"aria-invalid": !!fieldState.error
|
|
201
|
+
}
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
if (uiComponent === "text_area") {
|
|
205
|
+
return /* @__PURE__ */ jsx(
|
|
206
|
+
Textarea,
|
|
207
|
+
{
|
|
208
|
+
value: field.value[0] ?? "",
|
|
209
|
+
onChange: (e) => field.onChange([e.target.value]),
|
|
210
|
+
placeholder: t(
|
|
211
|
+
"products.fields.attributes.add.values.placeholder"
|
|
212
|
+
),
|
|
213
|
+
className: "w-full",
|
|
214
|
+
"aria-invalid": !!fieldState.error
|
|
215
|
+
}
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
if (uiComponent === "toggle") {
|
|
219
|
+
return /* @__PURE__ */ jsxs(
|
|
220
|
+
Select,
|
|
221
|
+
{
|
|
222
|
+
value: field.value[0] ?? "",
|
|
223
|
+
onValueChange: (val) => field.onChange([val]),
|
|
224
|
+
children: [
|
|
225
|
+
/* @__PURE__ */ jsx(
|
|
226
|
+
Select.Trigger,
|
|
227
|
+
{
|
|
228
|
+
className: "w-full",
|
|
229
|
+
"aria-invalid": !!fieldState.error,
|
|
230
|
+
children: /* @__PURE__ */ jsx(
|
|
231
|
+
Select.Value,
|
|
232
|
+
{
|
|
233
|
+
placeholder: t(
|
|
234
|
+
"products.fields.attributes.selectValuePlaceholder"
|
|
235
|
+
)
|
|
236
|
+
}
|
|
237
|
+
)
|
|
238
|
+
}
|
|
239
|
+
),
|
|
240
|
+
/* @__PURE__ */ jsxs(Select.Content, { children: [
|
|
241
|
+
/* @__PURE__ */ jsx(Select.Item, { value: "true", children: t("general.true") }),
|
|
242
|
+
/* @__PURE__ */ jsx(Select.Item, { value: "false", children: t("general.false") })
|
|
243
|
+
] })
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
);
|
|
247
|
+
}
|
|
248
|
+
if (uiComponent === "unit") {
|
|
249
|
+
return /* @__PURE__ */ jsx(
|
|
250
|
+
NumericInput,
|
|
251
|
+
{
|
|
252
|
+
value: field.value[0] !== void 0 ? parseFloat(field.value[0]) : void 0,
|
|
253
|
+
onChange: (val) => field.onChange([
|
|
254
|
+
String(val ?? "")
|
|
255
|
+
]),
|
|
256
|
+
placeholder: t(
|
|
257
|
+
"products.fields.attributes.add.values.placeholder"
|
|
258
|
+
),
|
|
259
|
+
"aria-invalid": !!fieldState.error,
|
|
260
|
+
hideControls: true
|
|
261
|
+
}
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
return /* @__PURE__ */ jsx(
|
|
265
|
+
Combobox,
|
|
266
|
+
{
|
|
267
|
+
...field,
|
|
268
|
+
options: possibleValueOptions,
|
|
269
|
+
onCreateOption: allowCreate ? (value) => {
|
|
270
|
+
form.setValue(
|
|
271
|
+
`options.${index}.values`,
|
|
272
|
+
[...field.value, value]
|
|
273
|
+
);
|
|
274
|
+
} : void 0,
|
|
275
|
+
"aria-invalid": !!fieldState.error,
|
|
276
|
+
className: "w-full bg-ui-bg-base hover:bg-ui-bg-base-hover"
|
|
277
|
+
}
|
|
278
|
+
);
|
|
279
|
+
};
|
|
280
|
+
return /* @__PURE__ */ jsxs(Form.Item, { className: "flex flex-row items-start gap-x-1.5 space-y-0", children: [
|
|
281
|
+
/* @__PURE__ */ jsx(Form.Label, { className: "min-w-[60px] px-2 py-1.5", children: t(
|
|
282
|
+
"products.fields.attributes.add.values.label"
|
|
283
|
+
) }),
|
|
284
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs("div", { className: "flex w-full flex-col gap-y-1.5", children: [
|
|
285
|
+
renderInput(),
|
|
286
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
|
287
|
+
] }) })
|
|
288
|
+
] });
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
)
|
|
292
|
+
] }),
|
|
293
|
+
allowRemove && /* @__PURE__ */ jsx(
|
|
294
|
+
IconButton,
|
|
295
|
+
{
|
|
296
|
+
type: "button",
|
|
297
|
+
size: "small",
|
|
298
|
+
variant: "transparent",
|
|
299
|
+
className: "text-ui-fg-muted",
|
|
300
|
+
onClick: () => options.remove(index),
|
|
301
|
+
children: /* @__PURE__ */ jsx(XMarkMini, {})
|
|
302
|
+
}
|
|
303
|
+
)
|
|
304
|
+
] }),
|
|
305
|
+
showUseForVariants && /* @__PURE__ */ jsx(
|
|
306
|
+
SwitchBox,
|
|
307
|
+
{
|
|
308
|
+
control: form.control,
|
|
309
|
+
name: `options.${index}.useForVariants`,
|
|
310
|
+
label: t(
|
|
311
|
+
"products.fields.attributes.useForVariants.label"
|
|
312
|
+
),
|
|
313
|
+
description: isExistingProduct ? t(
|
|
314
|
+
"products.fields.attributes.useForVariants.editDescription"
|
|
315
|
+
) : t(
|
|
316
|
+
"products.fields.attributes.useForVariants.description"
|
|
317
|
+
),
|
|
318
|
+
className: "pl-14 [&>*]:shadow-none"
|
|
319
|
+
}
|
|
320
|
+
)
|
|
321
|
+
]
|
|
322
|
+
},
|
|
323
|
+
id
|
|
324
|
+
);
|
|
325
|
+
}) });
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
export {
|
|
329
|
+
UserCreatedOptionsList
|
|
330
|
+
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getLocaleAmount
|
|
3
3
|
} from "./chunk-PXYDR7WQ.js";
|
|
4
|
+
import {
|
|
5
|
+
castNumber
|
|
6
|
+
} from "./chunk-SMQT3ZNO.js";
|
|
4
7
|
import {
|
|
5
8
|
DataGrid,
|
|
6
9
|
DataGridCellContainer,
|
|
@@ -9,13 +12,10 @@ import {
|
|
|
9
12
|
useCombinedRefs,
|
|
10
13
|
useDataGridCell,
|
|
11
14
|
useDataGridCellError
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5IWBNPZX.js";
|
|
13
16
|
import {
|
|
14
17
|
currencies
|
|
15
18
|
} from "./chunk-IQPN4PZJ.js";
|
|
16
|
-
import {
|
|
17
|
-
castNumber
|
|
18
|
-
} from "./chunk-SMQT3ZNO.js";
|
|
19
19
|
import {
|
|
20
20
|
KeyboundForm
|
|
21
21
|
} from "./chunk-U2ZFCAPX.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PriceListUpdateProductsSchema,
|
|
3
3
|
usePriceListGridColumns
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LKA7QM6R.js";
|
|
5
5
|
import {
|
|
6
6
|
isProductRow
|
|
7
7
|
} from "./chunk-XRNDVICA.js";
|
|
8
|
-
import {
|
|
9
|
-
DataGrid
|
|
10
|
-
} from "./chunk-ZZ7VKT2S.js";
|
|
11
8
|
import {
|
|
12
9
|
castNumber
|
|
13
10
|
} from "./chunk-SMQT3ZNO.js";
|
|
11
|
+
import {
|
|
12
|
+
DataGrid
|
|
13
|
+
} from "./chunk-5IWBNPZX.js";
|
|
14
14
|
import {
|
|
15
15
|
KeyboundForm
|
|
16
16
|
} from "./chunk-U2ZFCAPX.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
} from "./chunk-3CK6OINO.js";
|
|
21
21
|
import {
|
|
22
22
|
useBatchPriceListPrices
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PCMNEUMV.js";
|
|
24
24
|
|
|
25
25
|
// src/pages/price-lists/[id]/products/[variant_id]/edit/price-list-prices-edit-form/price-list-prices-edit-form.tsx
|
|
26
26
|
import { zodResolver } from "@hookform/resolvers/zod";
|