@mercurjs/vendor 2.2.0-canary.2 → 2.2.0-canary.21
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]-KRLGIVLR.js → [id]-3JICOSAI.js} +133 -41
- package/dist/[id]-CR76L5TG.js +3102 -0
- package/dist/{[id]-7BAKUHUO.js → [id]-DDGHFRSB.js} +5 -5
- package/dist/{[id]-KVWYLDN3.js → [id]-E7DYRMMO.js} +162 -71
- package/dist/{[id]-4OBGG7OH.js → [id]-FIP4UMQ4.js} +197 -105
- package/dist/{[id]-3EC6HYXL.js → [id]-FZRXOJWL.js} +22 -21
- package/dist/{[id]-ZWWMJAKI.js → [id]-PD3ISUL5.js} +7 -7
- package/dist/{[id]-UUUQK22M.js → [id]-Q5AXQ5XO.js} +460 -581
- package/dist/{[id]-KJIQTFGE.js → [id]-VSNA6SV5.js} +15 -15
- package/dist/{[id]-Y2ISCLUD.js → [id]-XUKQKCDN.js} +3 -3
- package/dist/{[id]-K2CT7BXQ.js → [id]-YPCO3DJV.js} +1 -1
- package/dist/{[id]-LUFRJLAU.js → [id]-ZEFQ7FQQ.js} +36 -33
- package/dist/{[id]-COLO4TQJ.js → [id]-ZW7TBWDU.js} +24 -23
- package/dist/{[province_id]-H2QAPKVH.js → [province_id]-CHOO7ERP.js} +14 -14
- package/dist/{add-FIWTANZX.js → add-GYXNRUAE.js} +40 -37
- package/dist/{add-PBZQCIZQ.js → add-IC5R27X3.js} +95 -32
- package/dist/{add-customer-groups-RAHCP67U.js → add-customer-groups-KIGBZT5G.js} +20 -23
- package/dist/{add-products-N3V2MVLD.js → add-products-ALJVIFXU.js} +23 -22
- package/dist/{add-promotions-CSCAJZHV.js → add-promotions-EQ5MMQKG.js} +8 -8
- package/dist/{add-to-campaign-DLP7PSQB.js → add-to-campaign-C6JDNB6F.js} +4 -4
- package/dist/{address-7F5SN7PV.js → address-UKLDTSTP.js} +13 -13
- package/dist/{adjust-inventory-SZF4W7LR.js → adjust-inventory-5XPGE44Y.js} +2 -2
- package/dist/allocate-items-URVRAFPS.js +685 -0
- package/dist/{areas-7Y6BVS5A.js → areas-64VXOFYS.js} +6 -6
- package/dist/{attributes-MBZ76HVZ.js → attributes-YQNW5JBY.js} +2 -2
- package/dist/{breadcrumb-HND5FFWC.js → breadcrumb-26G7BS3Q.js} +3 -3
- package/dist/{breadcrumb-7PURSRTT.js → breadcrumb-2AYN2SV7.js} +12 -12
- package/dist/{breadcrumb-ZCG2RHIU.js → breadcrumb-4KKLMVC3.js} +12 -12
- package/dist/{breadcrumb-WRG4SITG.js → breadcrumb-4XSHX5RV.js} +13 -13
- package/dist/{breadcrumb-QV2IAX7N.js → breadcrumb-E5OF4L2J.js} +2 -2
- package/dist/breadcrumb-JC5FUQYF.js +28 -0
- package/dist/{breadcrumb-YBBYFQYG.js → breadcrumb-LBO2I4OJ.js} +1 -1
- package/dist/breadcrumb-PIDJ23EZ.js +13 -0
- package/dist/{breadcrumb-65SAGUUL.js → breadcrumb-RWYEU5JK.js} +3 -3
- package/dist/{breadcrumb-VWELWDB2.js → breadcrumb-VXKAO6GP.js} +1 -1
- package/dist/{breadcrumb-FLDHJRVY.js → breadcrumb-WMNG4P6C.js} +9 -8
- package/dist/{breadcrumb-EDPMEN2P.js → breadcrumb-XPQETVMM.js} +2 -2
- package/dist/{campaigns-L6ULR6KR.js → campaigns-4I2T6EDZ.js} +5 -5
- package/dist/{categories-FUZQKBXV.js → categories-3P2DRH5V.js} +10 -8
- package/dist/{chunk-EZ3JOAUS.js → chunk-22CIYLKO.js} +1 -1
- package/dist/{chunk-RZLN2Q6G.js → chunk-247L47JD.js} +1 -1
- package/dist/{chunk-SFQKKIHA.js → chunk-27WLUOI2.js} +1 -1
- package/dist/{chunk-M7KSRYRI.js → chunk-2ECD67FO.js} +2 -2
- package/dist/{chunk-36L54SQQ.js → chunk-2H4FGZ4U.js} +1 -1
- package/dist/{chunk-X2FVFUET.js → chunk-2NUZTTBU.js} +27 -8
- package/dist/chunk-2OY4NW7L.js +185 -0
- package/dist/{chunk-K4X324QP.js → chunk-36WXPGD2.js} +6 -5
- package/dist/{chunk-PXYDR7WQ.js → chunk-3BXCPHN6.js} +3 -2
- package/dist/chunk-3EDZQSKG.js +33 -0
- package/dist/{chunk-2DXNJURE.js → chunk-3L2DVCOC.js} +1 -1
- package/dist/chunk-42R54Z2X.js +8 -0
- package/dist/{chunk-CNMY5HVP.js → chunk-4EQIJMQT.js} +3 -3
- package/dist/{chunk-UAF2S447.js → chunk-4OIOYUQE.js} +3 -3
- package/dist/{chunk-UORPTGV2.js → chunk-4R5GESED.js} +10 -14
- package/dist/{chunk-WUPJADSO.js → chunk-4RFPRO2W.js} +2 -2
- package/dist/chunk-4YWKKCTT.js +32 -0
- package/dist/{chunk-XFQJU6FA.js → chunk-5QG6P6EU.js} +1 -1
- package/dist/{chunk-N4MVIBFM.js → chunk-5Y6RDTW2.js} +3 -3
- package/dist/{chunk-DZIXC7OE.js → chunk-6FLSBL4Q.js} +30 -85
- package/dist/{chunk-DVEKYLPV.js → chunk-6QS6IZC6.js} +1 -1
- package/dist/chunk-6ZGQ3SOR.js +127 -0
- package/dist/{chunk-NXNJQZCP.js → chunk-7FIPNQM2.js} +1 -1
- package/dist/{chunk-NSZQERLE.js → chunk-7GGWRJJF.js} +2 -2
- package/dist/{chunk-QS6RWIBL.js → chunk-7RGUD6PI.js} +34 -20
- package/dist/{chunk-5L2DCA4W.js → chunk-7ZPJGL4C.js} +57 -6
- package/dist/{chunk-KD7RYE6R.js → chunk-AG6KIAUD.js} +2 -2
- package/dist/{chunk-UCQKXXLD.js → chunk-AKKIZD2P.js} +32 -34
- package/dist/chunk-CHBURL76.js +438 -0
- package/dist/{chunk-PBD36EZJ.js → chunk-CI4YXVQF.js} +2 -2
- package/dist/{chunk-7LBY5JLV.js → chunk-DAV7WS53.js} +1 -1
- package/dist/{chunk-6BS2AVGJ.js → chunk-DNXMONCL.js} +6 -6
- package/dist/{chunk-TNVYTMBL.js → chunk-E4O5PARZ.js} +4 -4
- package/dist/{chunk-L7QKFC5N.js → chunk-E6W57UP3.js} +32 -122
- package/dist/chunk-EEBJYXWA.js +15 -0
- package/dist/chunk-FP6U6BPH.js +61 -0
- package/dist/{chunk-SGR4DMCW.js → chunk-FRYZRBLA.js} +1 -1
- package/dist/chunk-FWPGOIFA.js +22 -0
- package/dist/chunk-GL7F6NDU.js +30 -0
- package/dist/chunk-H7BVANDX.js +407 -0
- package/dist/{chunk-FDR22JMM.js → chunk-HFRHHT36.js} +8 -63
- package/dist/{chunk-FJUUGFXL.js → chunk-HOUDNM5M.js} +1 -1
- package/dist/{chunk-6Y53VZ3C.js → chunk-HZCSJLGH.js} +11 -11
- package/dist/chunk-I75SROQZ.js +315 -0
- package/dist/{chunk-JQV7CXEC.js → chunk-II3ACSV2.js} +17 -2
- package/dist/{chunk-DARJTN4I.js → chunk-IMJ62GAP.js} +10 -5
- package/dist/{chunk-PPLC4IKI.js → chunk-IV57G2CB.js} +14 -1
- package/dist/{chunk-7SLWXX6L.js → chunk-J434WDD3.js} +5 -6
- package/dist/chunk-J6XCRFBW.js +30 -0
- package/dist/{chunk-KAZ5BYTQ.js → chunk-KCHYLLVG.js} +6 -4
- package/dist/{chunk-YGRTRAWX.js → chunk-KDE4HKH2.js} +1 -0
- package/dist/{chunk-GXIAIITP.js → chunk-KZYRC3WR.js} +36 -39
- package/dist/chunk-L57USMYC.js +39 -0
- package/dist/chunk-LFX6WU4A.js +36 -0
- package/dist/{chunk-EROX26D4.js → chunk-LRMWYKSF.js} +1 -1
- package/dist/{chunk-LWJF63JW.js → chunk-LTQQRVZG.js} +89 -14
- package/dist/chunk-LYYM7H7H.js +59 -0
- package/dist/{chunk-NHFEY3EI.js → chunk-M3YUT5AY.js} +2 -2
- package/dist/{chunk-H6LZ77GX.js → chunk-MJCL3WID.js} +1 -1
- package/dist/{chunk-X4INVIWL.js → chunk-MZRZVLWD.js} +3 -3
- package/dist/{chunk-DDH7ULIQ.js → chunk-N6MGVXXQ.js} +1 -1
- package/dist/{chunk-QXLRABYH.js → chunk-O7VOGTLX.js} +1 -1
- package/dist/{chunk-35G3SZRN.js → chunk-P3SOE76R.js} +1 -1
- package/dist/{chunk-PZ44R4AS.js → chunk-P7Q5ZSZD.js} +1 -1
- package/dist/{chunk-5ATEALH7.js → chunk-PFJFS3F4.js} +1 -5
- package/dist/chunk-POOTMH3K.js +62 -0
- package/dist/{chunk-GGWUWT55.js → chunk-QJI4OET7.js} +23 -36
- package/dist/{chunk-NJMNYS7G.js → chunk-QS35HWC5.js} +1 -1
- package/dist/{chunk-RTBNJQOV.js → chunk-R4JLYNUA.js} +419 -538
- package/dist/{chunk-DIW4GRTI.js → chunk-RT3G3GEK.js} +47 -31
- package/dist/{chunk-QT7YFHCA.js → chunk-S23FD6FA.js} +12 -0
- package/dist/{chunk-U2ZFCAPX.js → chunk-SITRHMZZ.js} +11 -8
- package/dist/chunk-SPFLYPY6.js +6 -0
- package/dist/{chunk-EIUYXS7E.js → chunk-SZBERGA4.js} +1 -1
- package/dist/chunk-T6DSYOY5.js +173 -0
- package/dist/{chunk-4LVP635F.js → chunk-TKSKCYM3.js} +128 -126
- package/dist/{chunk-QNNJN4H6.js → chunk-TSTUAL6N.js} +59 -0
- package/dist/{chunk-LNM2D2I4.js → chunk-TZMNEN7A.js} +7 -6
- package/dist/chunk-UM7ZR3VU.js +14 -0
- package/dist/{chunk-X22KTLZ7.js → chunk-UO6IX5Y7.js} +1 -1
- package/dist/chunk-VCUUITW6.js +35 -0
- package/dist/{chunk-LQD232FW.js → chunk-WJ5EU3KW.js} +1 -1
- package/dist/{chunk-AIF2KTEE.js → chunk-WKRW5OPL.js} +12 -2
- package/dist/{chunk-6YA3C4NB.js → chunk-XBKWFLJG.js} +4 -13
- package/dist/{chunk-WBHFU3MG.js → chunk-XJYQ4SW5.js} +2 -2
- package/dist/chunk-XQUF3WIS.js +159 -0
- package/dist/chunk-YBF45CX5.js +23 -0
- package/dist/{chunk-AVOIZO63.js → chunk-YQZBAP3S.js} +4 -2
- package/dist/chunk-ZHFFTT3I.js +17 -0
- package/dist/{chunk-TODJFRLH.js → chunk-ZHR77OQI.js} +2 -2
- package/dist/chunk-ZUHIKMQL.js +353 -0
- package/dist/{chunk-44RQ5PTN.js → chunk-ZZIJSTXN.js} +225 -90
- package/dist/{collections-YCAAFGSW.js → collections-7M7O23NO.js} +28 -26
- package/dist/{configuration-UOSNP45I.js → configuration-5IDQRYJQ.js} +4 -4
- package/dist/{configuration-C4IGBNXH.js → configuration-TXRAYMI4.js} +1 -1
- package/dist/{create-BJ4OO6LS.js → create-2N73Y6FO.js} +14 -14
- package/dist/{create-R7K3ECN6.js → create-3MUVY3UY.js} +1 -1
- package/dist/{create-SFU3W3ZH.js → create-6DRXGPYA.js} +1 -1
- package/dist/{create-XAD5NMSJ.js → create-6KM5AZCG.js} +20 -20
- package/dist/{create-YDDBH4VQ.js → create-A6CPQMMH.js} +27 -26
- package/dist/create-B4EWCX7X.js +1798 -0
- package/dist/{create-YBF4YGWG.js → create-BHSMHOFN.js} +1 -1
- package/dist/{create-XVHOCZHJ.js → create-BVUZWMET.js} +1 -1
- package/dist/create-CJEZCYN6.js +1179 -0
- package/dist/create-DAVMJNC2.js +1931 -0
- package/dist/{create-35MYQPVM.js → create-E4HTVPP7.js} +17 -17
- package/dist/{create-JDGM5KXE.js → create-G4TF2M7G.js} +88 -42
- package/dist/{create-UQNYMVBM.js → create-LOP7AF5N.js} +6 -6
- package/dist/{create-UPYB65PD.js → create-MKFDE32U.js} +1 -1
- package/dist/{create-B5ZXTK3K.js → create-NR7ULWQS.js} +37 -34
- package/dist/{create-HI5UI2EZ.js → create-SJSLOXOW.js} +31 -26
- package/dist/{create-GB3ZA4LH.js → create-SYI6DVKM.js} +4 -4
- package/dist/{create-ORXYT74H.js → create-ZAGMLDR4.js} +13 -13
- package/dist/create-ZP4LSJYQ.js +216 -0
- package/dist/customer-group-add-customers-GTM556QA.js +251 -0
- package/dist/customer-group-create-OYHAXX2T.js +140 -0
- package/dist/customer-group-detail-KW62TLWA.js +58 -0
- package/dist/customer-group-edit-WH7O4N4L.js +137 -0
- package/dist/customer-groups-UJFZBZ2B.js +276 -0
- package/dist/{customers-ETXVNM3G.js → customers-4WKIFPUU.js} +7 -7
- package/dist/{edit-UGEC27HP.js → edit-3EN2H52W.js} +39 -36
- package/dist/{edit-ZMERG3L7.js → edit-3VNT35DW.js} +1 -1
- package/dist/{edit-ORXS3A2Y.js → edit-6DUTTLEV.js} +1 -1
- package/dist/edit-6K3NSVI7.js +103 -0
- package/dist/{edit-REDDBLTA.js → edit-6Z6RIJRZ.js} +4 -4
- package/dist/{edit-2Q7TRUTL.js → edit-CVSO5CX7.js} +14 -14
- package/dist/{edit-ZAHCMF5U.js → edit-FQDSESVI.js} +1 -1
- package/dist/edit-GZXLWSTL.js +176 -0
- package/dist/edit-LLNKSZR4.js +871 -0
- package/dist/{edit-O4JLGKQR.js → edit-MKVDAUA5.js} +1 -1
- package/dist/{edit-ZCXUG42Q.js → edit-NDUSRTWY.js} +13 -13
- package/dist/{edit-522DG3BY.js → edit-RBREBAQQ.js} +1 -1
- package/dist/{edit-Q3UQIOLS.js → edit-RQHOHZR6.js} +1 -1
- package/dist/{edit-VKT62KHG.js → edit-SAB6F3ZG.js} +36 -15
- package/dist/{edit-C4OCKQVU.js → edit-SM2GHVKW.js} +1 -1
- package/dist/{edit-KAKVPHZZ.js → edit-UVY3TEHD.js} +1 -1
- package/dist/{edit-SGUY2CCK.js → edit-V7WLYLOQ.js} +16 -16
- package/dist/{edit-FKXIQ6ZI.js → edit-XMZSLH4O.js} +16 -16
- package/dist/{edit-L5ZZLMAY.js → edit-YTS77SJS.js} +43 -32
- package/dist/{edit-budget-L3CCEWNF.js → edit-budget-4JMGEPNF.js} +1 -1
- package/dist/{edit-inventory-item-6B7ITDGD.js → edit-inventory-item-G22KFCYY.js} +2 -2
- package/dist/{edit-inventory-item-attributes-Y7MQZLXI.js → edit-inventory-item-attributes-RJSM4MEI.js} +2 -2
- package/dist/edit-price-K6K2FTMF.js +196 -0
- package/dist/edit-stock-6TUSJD5R.js +229 -0
- package/dist/fulfillment-VEF6HG6D.js +641 -0
- package/dist/{fulfillment-providers-DQAU43JZ.js → fulfillment-providers-VKBWFH45.js} +24 -24
- package/dist/index.css +107 -10
- package/dist/index.js +302 -183
- package/dist/{inventory-KAUVPMPZ.js → inventory-OCIGVZ4V.js} +6 -6
- package/dist/{offer-inventory-batch-page-WKCWNDNK.js → inventory-T7BRSFKY.js} +16 -16
- package/dist/{invite-CI2P4GF6.js → invite-J6L3Q7MQ.js} +12 -12
- package/dist/{invite-Q6EYDZVQ.js → invite-VWNUFOFI.js} +21 -21
- package/dist/loader-2EQ4ROTD.js +34 -0
- package/dist/loader-HYUC2XZX.js +33 -0
- package/dist/{login-KY342RMK.js → login-WOZMCEFY.js} +12 -12
- package/dist/{manage-locations-WNHEBS3A.js → manage-locations-R3ASMF5B.js} +1 -1
- package/dist/{media-B6ME2WXY.js → media-KIIJ6WSZ.js} +18 -17
- package/dist/media-RJHUSBXL.js +315 -0
- package/dist/{metadata-WR4RFXO5.js → metadata-45S6CFKY.js} +14 -14
- package/dist/{metadata-2CMH4I6U.js → metadata-FCATUWIZ.js} +14 -14
- package/dist/{metadata-GWI6R4ES.js → metadata-L5GBBXC4.js} +14 -14
- package/dist/{metadata-TLDUF5KV.js → metadata-R4ZRMAO6.js} +14 -14
- package/dist/{metadata-NUXUC2JA.js → metadata-RM5VVAOS.js} +14 -14
- package/dist/{offer-create-page-4Z6L63BU.js → offer-create-page-DV4JCIL2.js} +190 -195
- package/dist/offer-detail-page-TIBYGQBS.js +590 -0
- package/dist/offer-variant-detail-page-ORH56HZI.js +421 -0
- package/dist/offers-VA63KV3C.js +54 -0
- package/dist/{onboarding-43LQQQGQ.js → onboarding-L5RRKT65.js} +12 -12
- package/dist/{orders-ZV4D6L2V.js → orders-KKJD6EWZ.js} +27 -27
- package/dist/{organization-ZTQGRJWS.js → organization-6YPU2RQP.js} +53 -89
- package/dist/{organize-K6QMAMEN.js → organize-LR7FWK2J.js} +3 -3
- package/dist/{organize-HNJUHEEG.js → organize-SUG4SGVR.js} +3 -3
- package/dist/pages/index.d.ts +40 -16
- package/dist/pages/index.js +73 -73
- package/dist/{payment-details-64US5XWD.js → payment-details-UVEIHQA5.js} +13 -13
- package/dist/{payouts-UXJDTXDL.js → payouts-D4A4CILI.js} +8 -8
- package/dist/{price-lists-KBPUVSZI.js → price-lists-WJFXFGEV.js} +10 -10
- package/dist/{pricing-DF6C5XK4.js → pricing-QEVR2Z4K.js} +19 -19
- package/dist/{offer-pricing-edit-page-4TYGGSOE.js → pricing-XJUUCYL5.js} +24 -18
- package/dist/{product-tags-6MZB4W5R.js → product-tags-MW2JMRFY.js} +36 -33
- package/dist/{product-types-UUHBV4IZ.js → product-types-XXU7X42K.js} +6 -6
- package/dist/product-variant-detail-XZWTSH3H.js +369 -0
- package/dist/{product-variant-edit-YYNPHE4L.js → product-variant-edit-A2KO3E7B.js} +41 -44
- package/dist/{products-MZBU5MEV.js → products-TZS2OPK3.js} +37 -37
- package/dist/{products-IWKTGZS6.js → products-XSXEUKIB.js} +23 -22
- package/dist/{professional-details-5T2VS6MM.js → professional-details-ELUEJPOH.js} +13 -13
- package/dist/{profile-6XGHAT7H.js → profile-EDVGIBW6.js} +16 -16
- package/dist/{promotions-O7U4BTK6.js → promotions-JYO23G6N.js} +8 -8
- package/dist/receive-47SMYKIJ.js +578 -0
- package/dist/refund-IU7B77FV.js +268 -0
- package/dist/{register-N6WOSMLA.js → register-SR2SYX4Q.js} +14 -14
- package/dist/{reset-password-EICPAY2N.js → reset-password-N22YRMR3.js} +1 -1
- package/dist/{return-reasons-IX3LIOCU.js → return-reasons-POR5YPTF.js} +18 -15
- package/dist/{sales-channels-JW3QUYR7.js → sales-channels-ETB6QRRY.js} +8 -8
- package/dist/{sales-channels-B6FULRWI.js → sales-channels-YXRRARDL.js} +7 -7
- package/dist/{settings-MV53ZZ53.js → settings-MHBYIZ2I.js} +38 -35
- package/dist/shipment-ZX6PQ32L.js +241 -0
- package/dist/shipping-W4SPR3JO.js +122 -0
- package/dist/{shipping-profile-Y4SNEPZX.js → shipping-profile-L5CFXVEE.js} +4 -8
- package/dist/{shipping-profiles-2NWKCEJK.js → shipping-profiles-QBJUWXVQ.js} +17 -17
- package/dist/{stock-7CSVEJJU.js → stock-FW4DOVFV.js} +14 -14
- package/dist/{store-X23G3JCJ.js → store-NWWBV2UO.js} +75 -144
- package/dist/{store-closure-P5PD2RSV.js → store-closure-O3CBSOJD.js} +19 -14
- package/dist/{store-select-TREPDS3G.js → store-select-C7GI5MKK.js} +13 -13
- package/dist/{tax-regions-YXZW7UVX.js → tax-regions-2JCIB4T7.js} +2 -2
- package/dist/{team-SPP5OY5W.js → team-MY24J5WO.js} +20 -20
- package/package.json +2 -2
- package/dist/[id]-LTNOHLGE.js +0 -1219
- package/dist/allocate-items-SDFS5GYN.js +0 -533
- package/dist/chunk-432S4FGR.js +0 -0
- package/dist/chunk-AIZM66CG.js +0 -66
- package/dist/chunk-BDZOSMAX.js +0 -23
- package/dist/chunk-CFRWIQIZ.js +0 -43
- package/dist/chunk-GKZHBXZK.js +0 -426
- package/dist/chunk-RXZFEFNV.js +0 -73
- package/dist/chunk-T6LHVNWO.js +0 -27
- package/dist/chunk-WLT7K7K7.js +0 -63
- package/dist/create-FCKGCZSM.js +0 -210
- package/dist/edit-GQNIINRR.js +0 -192
- package/dist/fulfillment-75Z4H23W.js +0 -559
- package/dist/loader-FBB5OQRT.js +0 -31
- package/dist/metadata-5BPOBBU2.js +0 -45
- package/dist/offer-detail-page-6MAHNNIO.js +0 -488
- package/dist/offer-edit-page-DYQFU6JU.js +0 -151
- package/dist/offers-ZG6OTDZ2.js +0 -32
- package/dist/product-variant-detail-RVWEYVPC.js +0 -220
- package/dist/shipment-Q33QBMXX.js +0 -176
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OFFER_VARIANT_DETAIL_FIELDS
|
|
3
|
+
} from "./chunk-XQUF3WIS.js";
|
|
4
|
+
import "./chunk-TKGWSUEI.js";
|
|
5
|
+
import {
|
|
6
|
+
KeyboundForm
|
|
7
|
+
} from "./chunk-SITRHMZZ.js";
|
|
8
|
+
import {
|
|
9
|
+
RouteDrawer,
|
|
10
|
+
useRouteModal
|
|
11
|
+
} from "./chunk-GDWBOQI5.js";
|
|
12
|
+
import {
|
|
13
|
+
Form
|
|
14
|
+
} from "./chunk-3QSRE5LS.js";
|
|
15
|
+
import {
|
|
16
|
+
useOffer,
|
|
17
|
+
useUpdateOffer
|
|
18
|
+
} from "./chunk-4R5GESED.js";
|
|
19
|
+
import "./chunk-TSTUAL6N.js";
|
|
20
|
+
import "./chunk-A5DJIOHN.js";
|
|
21
|
+
import "./chunk-RHKRREUU.js";
|
|
22
|
+
import "./chunk-ZA2KFUFR.js";
|
|
23
|
+
import "./chunk-RIN4CBRB.js";
|
|
24
|
+
import "./chunk-NBMM2TZK.js";
|
|
25
|
+
|
|
26
|
+
// src/pages/offers/[id]/variants/[offer_id]/edit/index.tsx
|
|
27
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
28
|
+
import { Button, Heading, Input, toast } from "@medusajs/ui";
|
|
29
|
+
import { useForm } from "react-hook-form";
|
|
30
|
+
import { useTranslation } from "react-i18next";
|
|
31
|
+
import { useParams } from "react-router-dom";
|
|
32
|
+
import { z } from "zod";
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
34
|
+
var Schema = z.object({ sku: z.string().max(64).optional() });
|
|
35
|
+
var EditOfferVariantForm = ({ offer }) => {
|
|
36
|
+
const { t } = useTranslation();
|
|
37
|
+
const { handleSuccess } = useRouteModal();
|
|
38
|
+
const form = useForm({
|
|
39
|
+
defaultValues: { sku: offer.sku ?? "" },
|
|
40
|
+
resolver: zodResolver(Schema)
|
|
41
|
+
});
|
|
42
|
+
const { mutateAsync, isPending } = useUpdateOffer(offer.id);
|
|
43
|
+
const handleSubmit = form.handleSubmit(async (values) => {
|
|
44
|
+
const sku = values.sku?.trim();
|
|
45
|
+
await mutateAsync(
|
|
46
|
+
sku ? { sku } : {},
|
|
47
|
+
{
|
|
48
|
+
onSuccess: () => {
|
|
49
|
+
toast.success(t("offers.variant.edit.successToast"));
|
|
50
|
+
handleSuccess();
|
|
51
|
+
},
|
|
52
|
+
onError: (error) => toast.error(error.message)
|
|
53
|
+
}
|
|
54
|
+
);
|
|
55
|
+
});
|
|
56
|
+
return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(
|
|
57
|
+
KeyboundForm,
|
|
58
|
+
{
|
|
59
|
+
onSubmit: handleSubmit,
|
|
60
|
+
className: "flex flex-1 flex-col overflow-hidden",
|
|
61
|
+
"data-testid": "offer-variant-edit-form",
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ jsx(RouteDrawer.Body, { className: "flex flex-1 flex-col gap-y-4 overflow-auto", children: /* @__PURE__ */ jsx(
|
|
64
|
+
Form.Field,
|
|
65
|
+
{
|
|
66
|
+
control: form.control,
|
|
67
|
+
name: "sku",
|
|
68
|
+
render: ({ field }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
|
|
69
|
+
/* @__PURE__ */ jsx(Form.Label, { optional: true, children: t("offers.fields.sku") }),
|
|
70
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(Input, { maxLength: 64, autoComplete: "off", ...field }) }),
|
|
71
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
|
72
|
+
] })
|
|
73
|
+
}
|
|
74
|
+
) }),
|
|
75
|
+
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2", children: [
|
|
76
|
+
/* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
|
|
77
|
+
/* @__PURE__ */ jsx(Button, { size: "small", type: "submit", isLoading: isPending, children: t("actions.save") })
|
|
78
|
+
] }) })
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
) });
|
|
82
|
+
};
|
|
83
|
+
var OfferVariantEditPage = () => {
|
|
84
|
+
const { offer_id } = useParams();
|
|
85
|
+
const { t } = useTranslation();
|
|
86
|
+
const { offer, isPending, isError, error } = useOffer(offer_id, {
|
|
87
|
+
fields: OFFER_VARIANT_DETAIL_FIELDS
|
|
88
|
+
});
|
|
89
|
+
if (isError) throw error;
|
|
90
|
+
const ready = !isPending && !!offer;
|
|
91
|
+
return /* @__PURE__ */ jsxs(RouteDrawer, { children: [
|
|
92
|
+
/* @__PURE__ */ jsxs(RouteDrawer.Header, { children: [
|
|
93
|
+
/* @__PURE__ */ jsx(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { children: `${t("actions.edit")} ${t("offers.detail.offerVariant")}` }) }),
|
|
94
|
+
/* @__PURE__ */ jsx(RouteDrawer.Description, { className: "sr-only", children: t("offers.edit.description") })
|
|
95
|
+
] }),
|
|
96
|
+
ready && /* @__PURE__ */ jsx(EditOfferVariantForm, { offer })
|
|
97
|
+
] });
|
|
98
|
+
};
|
|
99
|
+
var Component = OfferVariantEditPage;
|
|
100
|
+
export {
|
|
101
|
+
Component,
|
|
102
|
+
OfferVariantEditPage
|
|
103
|
+
};
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import "./chunk-TKGWSUEI.js";
|
|
6
6
|
import {
|
|
7
7
|
KeyboundForm
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SITRHMZZ.js";
|
|
9
9
|
import {
|
|
10
10
|
RouteDrawer,
|
|
11
11
|
useRouteModal
|
|
@@ -16,9 +16,9 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
usePriceList,
|
|
18
18
|
useUpdatePriceList
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-M3YUT5AY.js";
|
|
20
|
+
import "./chunk-LTQQRVZG.js";
|
|
21
|
+
import "./chunk-TSTUAL6N.js";
|
|
22
22
|
import "./chunk-A5DJIOHN.js";
|
|
23
23
|
import "./chunk-RHKRREUU.js";
|
|
24
24
|
import "./chunk-ZA2KFUFR.js";
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RulesFormField
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SZBERGA4.js";
|
|
4
4
|
import "./chunk-OVPAOBZB.js";
|
|
5
5
|
import "./chunk-VBRTC2VU.js";
|
|
6
6
|
import "./chunk-TKGWSUEI.js";
|
|
7
7
|
import {
|
|
8
8
|
KeyboundForm
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SITRHMZZ.js";
|
|
10
10
|
import {
|
|
11
11
|
RouteDrawer,
|
|
12
12
|
useRouteModal
|
|
13
13
|
} from "./chunk-GDWBOQI5.js";
|
|
14
14
|
import "./chunk-3QSRE5LS.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-KZYRC3WR.js";
|
|
16
16
|
import "./chunk-F4OJN2F2.js";
|
|
17
17
|
import "./chunk-LRARA622.js";
|
|
18
18
|
import "./chunk-M6N4ISXL.js";
|
|
19
19
|
import "./chunk-S7EKBD2C.js";
|
|
20
|
-
import "./chunk-VXMOPVRH.js";
|
|
21
20
|
import "./chunk-VV6IKGCN.js";
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-M3YUT5AY.js";
|
|
23
22
|
import {
|
|
24
23
|
usePromotion,
|
|
25
24
|
usePromotionAddRules,
|
|
@@ -27,19 +26,20 @@ import {
|
|
|
27
26
|
usePromotionUpdateRules,
|
|
28
27
|
useUpdatePromotion
|
|
29
28
|
} from "./chunk-BOZJOOGW.js";
|
|
30
|
-
import "./chunk-LWJF63JW.js";
|
|
31
|
-
import "./chunk-T6LHVNWO.js";
|
|
32
|
-
import "./chunk-4S6XGIC6.js";
|
|
33
|
-
import "./chunk-QT7YFHCA.js";
|
|
34
29
|
import "./chunk-IQWK723D.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-4S6XGIC6.js";
|
|
31
|
+
import "./chunk-S23FD6FA.js";
|
|
32
|
+
import "./chunk-7FIPNQM2.js";
|
|
33
|
+
import "./chunk-LTQQRVZG.js";
|
|
37
34
|
import "./chunk-VXWN37PT.js";
|
|
38
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-247L47JD.js";
|
|
36
|
+
import "./chunk-POOTMH3K.js";
|
|
37
|
+
import "./chunk-VXMOPVRH.js";
|
|
39
38
|
import "./chunk-NBPMNUKZ.js";
|
|
40
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-4R5GESED.js";
|
|
40
|
+
import "./chunk-7RGUD6PI.js";
|
|
41
41
|
import "./chunk-3B34B2M2.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-TSTUAL6N.js";
|
|
43
43
|
import "./chunk-A5DJIOHN.js";
|
|
44
44
|
import "./chunk-RHKRREUU.js";
|
|
45
45
|
import "./chunk-ZA2KFUFR.js";
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AttributeValueInput
|
|
3
|
+
} from "./chunk-P3SOE76R.js";
|
|
4
|
+
import "./chunk-VBRTC2VU.js";
|
|
5
|
+
import "./chunk-TKGWSUEI.js";
|
|
6
|
+
import {
|
|
7
|
+
KeyboundForm
|
|
8
|
+
} from "./chunk-SITRHMZZ.js";
|
|
9
|
+
import {
|
|
10
|
+
RouteDrawer,
|
|
11
|
+
useRouteModal
|
|
12
|
+
} from "./chunk-GDWBOQI5.js";
|
|
13
|
+
import {
|
|
14
|
+
Form
|
|
15
|
+
} from "./chunk-3QSRE5LS.js";
|
|
16
|
+
import {
|
|
17
|
+
require_dist
|
|
18
|
+
} from "./chunk-6FLSBL4Q.js";
|
|
19
|
+
import {
|
|
20
|
+
PRODUCT_DETAIL_QUERY
|
|
21
|
+
} from "./chunk-36WXPGD2.js";
|
|
22
|
+
import {
|
|
23
|
+
useProduct,
|
|
24
|
+
useUpdateProductAttribute
|
|
25
|
+
} from "./chunk-TSTUAL6N.js";
|
|
26
|
+
import "./chunk-A5DJIOHN.js";
|
|
27
|
+
import "./chunk-RHKRREUU.js";
|
|
28
|
+
import "./chunk-ZA2KFUFR.js";
|
|
29
|
+
import "./chunk-RIN4CBRB.js";
|
|
30
|
+
import {
|
|
31
|
+
__toESM
|
|
32
|
+
} from "./chunk-NBMM2TZK.js";
|
|
33
|
+
|
|
34
|
+
// src/pages/products/[id]/attributes/[attribute_id]/edit/index.tsx
|
|
35
|
+
import { Heading, Text } from "@medusajs/ui";
|
|
36
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
37
|
+
import { useParams } from "react-router-dom";
|
|
38
|
+
|
|
39
|
+
// src/pages/products/[id]/attributes/[attribute_id]/edit/components/edit-attribute-form/edit-attribute-form.tsx
|
|
40
|
+
var import_types = __toESM(require_dist(), 1);
|
|
41
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
42
|
+
import { Button, Input, Label, toast } from "@medusajs/ui";
|
|
43
|
+
import { useForm } from "react-hook-form";
|
|
44
|
+
import { useTranslation } from "react-i18next";
|
|
45
|
+
import * as zod from "zod";
|
|
46
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
47
|
+
var EditAttributeForm = ({
|
|
48
|
+
productId,
|
|
49
|
+
attribute
|
|
50
|
+
}) => {
|
|
51
|
+
const { t } = useTranslation();
|
|
52
|
+
const { handleSuccess } = useRouteModal();
|
|
53
|
+
const hasPresetValues = attribute.type === import_types.AttributeType.SINGLE_SELECT || attribute.type === import_types.AttributeType.MULTI_SELECT;
|
|
54
|
+
const initialValues = (() => {
|
|
55
|
+
const selected = attribute.values ?? [];
|
|
56
|
+
if (attribute.type === import_types.AttributeType.MULTI_SELECT) {
|
|
57
|
+
return selected.map((v) => v.name);
|
|
58
|
+
}
|
|
59
|
+
return selected[0]?.name ?? "";
|
|
60
|
+
})();
|
|
61
|
+
const schema = zod.object({
|
|
62
|
+
values: zod.union([zod.string(), zod.array(zod.string())]).refine(
|
|
63
|
+
(v) => Array.isArray(v) ? v.length > 0 : v.trim().length > 0,
|
|
64
|
+
{ message: t("products.create.attributes.errors.valuesRequired") }
|
|
65
|
+
)
|
|
66
|
+
});
|
|
67
|
+
const form = useForm({
|
|
68
|
+
defaultValues: { values: initialValues },
|
|
69
|
+
resolver: zodResolver(schema)
|
|
70
|
+
});
|
|
71
|
+
const { mutateAsync, isPending } = useUpdateProductAttribute(
|
|
72
|
+
productId,
|
|
73
|
+
attribute.id
|
|
74
|
+
);
|
|
75
|
+
const handleSubmit = form.handleSubmit(async (data) => {
|
|
76
|
+
const vals = Array.isArray(data.values) ? data.values : [data.values].filter((s) => s.trim().length > 0);
|
|
77
|
+
const payload = hasPresetValues ? {
|
|
78
|
+
attribute_value_ids: (attribute.all_values ?? []).filter((v) => vals.includes(v.name)).map((v) => v.id)
|
|
79
|
+
} : { values: vals };
|
|
80
|
+
await mutateAsync(payload, {
|
|
81
|
+
onSuccess: () => handleSuccess(),
|
|
82
|
+
onError: (error) => toast.error(error.message)
|
|
83
|
+
});
|
|
84
|
+
});
|
|
85
|
+
return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(KeyboundForm, { onSubmit: handleSubmit, className: "flex h-full flex-col", children: [
|
|
86
|
+
/* @__PURE__ */ jsx(RouteDrawer.Body, { children: /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-y-4", children: /* @__PURE__ */ jsx("div", { className: "bg-ui-bg-component shadow-elevation-card-rest rounded-xl p-1.5", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-[min-content,1fr] items-center gap-1.5", children: [
|
|
87
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center px-2 py-1.5", children: /* @__PURE__ */ jsx(
|
|
88
|
+
Label,
|
|
89
|
+
{
|
|
90
|
+
size: "xsmall",
|
|
91
|
+
weight: "plus",
|
|
92
|
+
className: "text-ui-fg-subtle",
|
|
93
|
+
children: t("fields.title")
|
|
94
|
+
}
|
|
95
|
+
) }),
|
|
96
|
+
/* @__PURE__ */ jsx(
|
|
97
|
+
Input,
|
|
98
|
+
{
|
|
99
|
+
className: "bg-ui-bg-field-component",
|
|
100
|
+
value: attribute.name,
|
|
101
|
+
disabled: true,
|
|
102
|
+
"data-testid": "edit-attribute-title-input"
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center px-2 py-1.5", children: /* @__PURE__ */ jsx(
|
|
106
|
+
Label,
|
|
107
|
+
{
|
|
108
|
+
size: "xsmall",
|
|
109
|
+
weight: "plus",
|
|
110
|
+
className: "text-ui-fg-subtle",
|
|
111
|
+
children: t("fields.values")
|
|
112
|
+
}
|
|
113
|
+
) }),
|
|
114
|
+
/* @__PURE__ */ jsx(
|
|
115
|
+
Form.Field,
|
|
116
|
+
{
|
|
117
|
+
control: form.control,
|
|
118
|
+
name: "values",
|
|
119
|
+
render: ({ field: { onChange, value } }) => /* @__PURE__ */ jsxs(Form.Item, { children: [
|
|
120
|
+
/* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
|
|
121
|
+
AttributeValueInput,
|
|
122
|
+
{
|
|
123
|
+
type: attribute.type,
|
|
124
|
+
value,
|
|
125
|
+
onChange,
|
|
126
|
+
availableValues: attribute.all_values ?? []
|
|
127
|
+
}
|
|
128
|
+
) }),
|
|
129
|
+
/* @__PURE__ */ jsx(Form.ErrorMessage, {})
|
|
130
|
+
] })
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
] }) }) }) }),
|
|
134
|
+
/* @__PURE__ */ jsx(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
|
|
135
|
+
/* @__PURE__ */ jsx(RouteDrawer.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
|
|
136
|
+
/* @__PURE__ */ jsx(
|
|
137
|
+
Button,
|
|
138
|
+
{
|
|
139
|
+
size: "small",
|
|
140
|
+
type: "submit",
|
|
141
|
+
isLoading: isPending,
|
|
142
|
+
"data-testid": "edit-attribute-submit-button",
|
|
143
|
+
children: t("actions.save")
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
] }) })
|
|
147
|
+
] }) });
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
// src/pages/products/[id]/attributes/[attribute_id]/edit/index.tsx
|
|
151
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
152
|
+
var Component = () => {
|
|
153
|
+
const { id, attribute_id } = useParams();
|
|
154
|
+
const { t } = useTranslation2();
|
|
155
|
+
const { product, isLoading, isError, error } = useProduct(
|
|
156
|
+
id,
|
|
157
|
+
PRODUCT_DETAIL_QUERY
|
|
158
|
+
);
|
|
159
|
+
if (isError) {
|
|
160
|
+
throw error;
|
|
161
|
+
}
|
|
162
|
+
const attribute = product?.attributes?.find(
|
|
163
|
+
(a) => a.id === attribute_id
|
|
164
|
+
);
|
|
165
|
+
const ready = !isLoading && !!product && !!attribute;
|
|
166
|
+
return /* @__PURE__ */ jsxs2(RouteDrawer, { children: [
|
|
167
|
+
/* @__PURE__ */ jsxs2(RouteDrawer.Header, { children: [
|
|
168
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Title, { asChild: true, children: /* @__PURE__ */ jsx2(Heading, { children: t("products.editAttribute") }) }),
|
|
169
|
+
/* @__PURE__ */ jsx2(RouteDrawer.Description, { asChild: true, children: /* @__PURE__ */ jsx2(Text, { size: "small", className: "text-ui-fg-subtle", children: t("products.editAttributeHint") }) })
|
|
170
|
+
] }),
|
|
171
|
+
ready && /* @__PURE__ */ jsx2(EditAttributeForm, { productId: id, attribute })
|
|
172
|
+
] });
|
|
173
|
+
};
|
|
174
|
+
export {
|
|
175
|
+
Component
|
|
176
|
+
};
|