@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
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-AJLGY3LQ.js";
|
|
4
4
|
import {
|
|
5
5
|
i18n
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZZIJSTXN.js";
|
|
7
7
|
|
|
8
8
|
// src/pages/products/create/constants.ts
|
|
9
9
|
import { z } from "zod";
|
|
@@ -45,11 +45,11 @@ var normalizeProductFormValues = (values) => {
|
|
|
45
45
|
};
|
|
46
46
|
var normalizeVariants = (variants) => {
|
|
47
47
|
return variants.map((variant) => {
|
|
48
|
-
const
|
|
49
|
-
const
|
|
48
|
+
const opts = variant.options;
|
|
49
|
+
const hasOpts = opts && Object.keys(opts).length > 0;
|
|
50
50
|
return {
|
|
51
|
-
title: variant.title || (
|
|
52
|
-
|
|
51
|
+
title: variant.title || (hasOpts ? Object.values(opts).join(" / ") : "Default variant"),
|
|
52
|
+
options: hasOpts ? opts : void 0,
|
|
53
53
|
sku: variant.sku || void 0,
|
|
54
54
|
variant_rank: variant.variant_rank
|
|
55
55
|
};
|
|
@@ -67,15 +67,18 @@ var normalizeFormAttributes = (attributes) => {
|
|
|
67
67
|
(attr.available_values ?? []).map((v) => [v.name, v.id])
|
|
68
68
|
);
|
|
69
69
|
const valueIds = valueNames.map((name) => nameToId.get(name)).filter(Boolean);
|
|
70
|
+
if (!valueIds.length) continue;
|
|
70
71
|
variantAttributes.push({
|
|
71
72
|
attribute_id: attr.attribute_id,
|
|
72
|
-
value_ids: valueIds
|
|
73
|
+
value_ids: valueIds
|
|
73
74
|
});
|
|
74
75
|
} else if (attr.is_custom && attr.title) {
|
|
76
|
+
const vals = Array.isArray(attr.values) ? attr.values : attr.values ? [attr.values] : [];
|
|
77
|
+
if (!vals.length) continue;
|
|
75
78
|
variantAttributes.push({
|
|
76
79
|
name: attr.title,
|
|
77
80
|
type: attr.type ?? "multi_select",
|
|
78
|
-
values:
|
|
81
|
+
values: vals,
|
|
79
82
|
is_variant_axis: true
|
|
80
83
|
});
|
|
81
84
|
}
|
|
@@ -151,36 +154,36 @@ var generateVariantsFromAttributes = (attributes, currentVariants) => {
|
|
|
151
154
|
title: "Default variant",
|
|
152
155
|
should_create: true,
|
|
153
156
|
variant_rank: 0,
|
|
154
|
-
|
|
157
|
+
options: {},
|
|
155
158
|
is_default: true
|
|
156
159
|
}
|
|
157
160
|
]);
|
|
158
161
|
}
|
|
159
162
|
const permutations = getPermutations(variantAxes);
|
|
160
163
|
const newVariants = currentVariants.reduce((acc, variant) => {
|
|
161
|
-
const
|
|
162
|
-
if (!
|
|
164
|
+
const opts = variant.options;
|
|
165
|
+
if (!opts || Object.keys(opts).length === 0) return acc;
|
|
163
166
|
const match = permutations.find(
|
|
164
|
-
(perm) => Object.keys(
|
|
167
|
+
(perm) => Object.keys(opts).every((key) => opts[key] === perm[key])
|
|
165
168
|
);
|
|
166
169
|
if (match) {
|
|
167
170
|
acc.push({
|
|
168
171
|
...variant,
|
|
169
172
|
title: Object.values(match).join(" / "),
|
|
170
|
-
|
|
173
|
+
options: match,
|
|
171
174
|
is_default: false
|
|
172
175
|
});
|
|
173
176
|
}
|
|
174
177
|
return acc;
|
|
175
178
|
}, []);
|
|
176
179
|
const usedSet = new Set(
|
|
177
|
-
newVariants.map((v) => JSON.stringify(v.
|
|
180
|
+
newVariants.map((v) => JSON.stringify(v.options))
|
|
178
181
|
);
|
|
179
182
|
for (const perm of permutations) {
|
|
180
183
|
if (!usedSet.has(JSON.stringify(perm))) {
|
|
181
184
|
newVariants.push({
|
|
182
185
|
title: Object.values(perm).join(" / "),
|
|
183
|
-
|
|
186
|
+
options: perm,
|
|
184
187
|
should_create: true,
|
|
185
188
|
variant_rank: newVariants.length
|
|
186
189
|
});
|
|
@@ -213,18 +216,22 @@ var ProductCreateVariantSchema = z.object({
|
|
|
213
216
|
material: z.string().optional(),
|
|
214
217
|
origin_country: z.string().optional(),
|
|
215
218
|
sku: z.string().optional(),
|
|
216
|
-
|
|
219
|
+
options: z.record(z.string(), z.string()).optional(),
|
|
217
220
|
variant_rank: z.number()
|
|
218
221
|
});
|
|
219
222
|
var ProductCreateSchema = z.object({
|
|
220
|
-
title: z.string().min(1
|
|
223
|
+
title: z.string().min(1, {
|
|
224
|
+
message: i18n.t("products.fields.title.required")
|
|
225
|
+
}),
|
|
221
226
|
subtitle: z.string().optional(),
|
|
222
227
|
handle: z.string().optional(),
|
|
223
228
|
description: z.string().optional(),
|
|
224
229
|
discountable: z.boolean(),
|
|
225
230
|
type_id: z.string().optional(),
|
|
226
231
|
collection_id: z.string().optional(),
|
|
227
|
-
category_id: z.string().min(1
|
|
232
|
+
category_id: z.string().min(1, {
|
|
233
|
+
message: i18n.t("products.create.errors.categoryRequired")
|
|
234
|
+
}),
|
|
228
235
|
tags: z.array(z.string()).optional(),
|
|
229
236
|
origin_country: z.string().optional(),
|
|
230
237
|
material: z.string().optional(),
|
|
@@ -246,21 +253,29 @@ var ProductCreateSchema = z.object({
|
|
|
246
253
|
id: z.string(),
|
|
247
254
|
name: z.string()
|
|
248
255
|
})).optional()
|
|
249
|
-
})).optional(),
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
256
|
+
})).optional().superRefine((attributes, ctx) => {
|
|
257
|
+
attributes?.forEach((attr, index) => {
|
|
258
|
+
if (!attr.is_required) return;
|
|
259
|
+
const isEmpty = attr.values === void 0 || attr.values === "" || Array.isArray(attr.values) && attr.values.length === 0;
|
|
260
|
+
if (!isEmpty) return;
|
|
261
|
+
let messageKey = "products.create.errors.requiredAttribute";
|
|
262
|
+
if (attr.type === "single_select" || attr.type === "toggle") {
|
|
263
|
+
messageKey = "products.create.errors.requiredAttributeSelect";
|
|
264
|
+
} else if (attr.type === "multi_select") {
|
|
265
|
+
messageKey = "products.create.errors.requiredAttributeMultiSelect";
|
|
266
|
+
} else if (attr.type === "text" || attr.type === "unit") {
|
|
267
|
+
messageKey = "products.create.errors.requiredAttributeEnter";
|
|
268
|
+
}
|
|
257
269
|
ctx.addIssue({
|
|
258
270
|
code: z.ZodIssueCode.custom,
|
|
259
|
-
path: [
|
|
260
|
-
message: i18n.t(
|
|
271
|
+
path: [index, "values"],
|
|
272
|
+
message: i18n.t(messageKey)
|
|
261
273
|
});
|
|
262
|
-
}
|
|
263
|
-
})
|
|
274
|
+
});
|
|
275
|
+
}),
|
|
276
|
+
variants: z.array(ProductCreateVariantSchema).min(1),
|
|
277
|
+
media: z.array(MediaSchema).optional()
|
|
278
|
+
}).superRefine((data, ctx) => {
|
|
264
279
|
if (data.variants.every((v) => !v.should_create)) {
|
|
265
280
|
return ctx.addIssue({
|
|
266
281
|
code: z.ZodIssueCode.custom,
|
|
@@ -293,7 +308,7 @@ var PRODUCT_CREATE_FORM_DEFAULTS = {
|
|
|
293
308
|
title: i18n.t("products.create.defaults.variantTitle"),
|
|
294
309
|
should_create: true,
|
|
295
310
|
variant_rank: 0,
|
|
296
|
-
|
|
311
|
+
options: {},
|
|
297
312
|
is_default: true
|
|
298
313
|
}
|
|
299
314
|
]),
|
|
@@ -430,6 +445,7 @@ var FileUpload = ({
|
|
|
430
445
|
"input",
|
|
431
446
|
{
|
|
432
447
|
hidden: true,
|
|
448
|
+
"aria-label": "File upload",
|
|
433
449
|
ref: inputRef,
|
|
434
450
|
onChange: handleFileChange,
|
|
435
451
|
type: "file",
|
|
@@ -480,6 +496,7 @@ var FileUpload = ({
|
|
|
480
496
|
"input",
|
|
481
497
|
{
|
|
482
498
|
hidden: true,
|
|
499
|
+
"aria-label": "File upload",
|
|
483
500
|
ref: inputRef,
|
|
484
501
|
onChange: handleFileChange,
|
|
485
502
|
type: "file",
|
|
@@ -492,7 +509,6 @@ var FileUpload = ({
|
|
|
492
509
|
|
|
493
510
|
export {
|
|
494
511
|
normalizeProductFormValues,
|
|
495
|
-
decorateVariantsWithDefaultValues,
|
|
496
512
|
generateVariantsFromAttributes,
|
|
497
513
|
MediaSchema,
|
|
498
514
|
ProductCreateSchema,
|
|
@@ -50,6 +50,17 @@ var useSellerMembers = (sellerId, query, options) => {
|
|
|
50
50
|
...rest
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
|
+
var useMember = (id) => {
|
|
54
|
+
const meResult = useMe();
|
|
55
|
+
const sellerId = meResult.member?.seller?.id ?? "";
|
|
56
|
+
const membersResult = useSellerMembers(
|
|
57
|
+
sellerId,
|
|
58
|
+
{},
|
|
59
|
+
{ enabled: !!sellerId && !!id }
|
|
60
|
+
);
|
|
61
|
+
const user = (membersResult.members ?? []).find((m) => m.id === id);
|
|
62
|
+
return { user };
|
|
63
|
+
};
|
|
53
64
|
var useRemoveSellerMember = (sellerId, memberId, options) => {
|
|
54
65
|
return useMutation({
|
|
55
66
|
mutationFn: () => sdk.vendor.sellers.$id.members.$memberId.delete({
|
|
@@ -186,6 +197,7 @@ export {
|
|
|
186
197
|
useMe,
|
|
187
198
|
useUpdateMe,
|
|
188
199
|
useSellerMembers,
|
|
200
|
+
useMember,
|
|
189
201
|
useRemoveSellerMember,
|
|
190
202
|
useCurrentSeller,
|
|
191
203
|
useSellers,
|
|
@@ -17,14 +17,17 @@ var KeyboundForm = React.forwardRef(({ onSubmit, onKeyDown, ...rest }, ref) => {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
return (
|
|
21
|
+
// oxlint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
22
|
+
/* @__PURE__ */ jsx(
|
|
23
|
+
"form",
|
|
24
|
+
{
|
|
25
|
+
...rest,
|
|
26
|
+
onSubmit: handleSubmit,
|
|
27
|
+
onKeyDown: onKeyDown ?? handleKeyDown,
|
|
28
|
+
ref
|
|
29
|
+
}
|
|
30
|
+
)
|
|
28
31
|
);
|
|
29
32
|
});
|
|
30
33
|
KeyboundForm.displayName = "KeyboundForm";
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import {
|
|
2
|
+
returnsQueryKeys
|
|
3
|
+
} from "./chunk-CHBURL76.js";
|
|
4
|
+
import {
|
|
5
|
+
ordersQueryKeys
|
|
6
|
+
} from "./chunk-7RGUD6PI.js";
|
|
7
|
+
import {
|
|
8
|
+
queryClient
|
|
9
|
+
} from "./chunk-RHKRREUU.js";
|
|
10
|
+
import {
|
|
11
|
+
queryKeysFactory
|
|
12
|
+
} from "./chunk-ZA2KFUFR.js";
|
|
13
|
+
import {
|
|
14
|
+
sdk
|
|
15
|
+
} from "./chunk-RIN4CBRB.js";
|
|
16
|
+
|
|
17
|
+
// src/hooks/api/claims.tsx
|
|
18
|
+
import {
|
|
19
|
+
useMutation,
|
|
20
|
+
useQuery
|
|
21
|
+
} from "@tanstack/react-query";
|
|
22
|
+
var CLAIMS_QUERY_KEY = "claims";
|
|
23
|
+
var claimsQueryKeys = queryKeysFactory(CLAIMS_QUERY_KEY);
|
|
24
|
+
var invalidateOrder = (orderId) => {
|
|
25
|
+
queryClient.invalidateQueries({ queryKey: ordersQueryKeys.details() });
|
|
26
|
+
queryClient.invalidateQueries({ queryKey: ordersQueryKeys.preview(orderId) });
|
|
27
|
+
queryClient.invalidateQueries({ queryKey: ordersQueryKeys.changes(orderId) });
|
|
28
|
+
queryClient.invalidateQueries({ queryKey: claimsQueryKeys.lists() });
|
|
29
|
+
};
|
|
30
|
+
var useClaim = (id, query, options) => {
|
|
31
|
+
const { data, ...rest } = useQuery({
|
|
32
|
+
queryFn: async () => sdk.vendor.claims.$id.query({ $id: id, ...query }),
|
|
33
|
+
queryKey: claimsQueryKeys.detail(id, query),
|
|
34
|
+
...options
|
|
35
|
+
});
|
|
36
|
+
return { ...data, ...rest };
|
|
37
|
+
};
|
|
38
|
+
var useClaims = (query, options) => {
|
|
39
|
+
const { data, ...rest } = useQuery({
|
|
40
|
+
queryFn: async () => sdk.vendor.claims.query({ ...query }),
|
|
41
|
+
queryKey: claimsQueryKeys.list(query),
|
|
42
|
+
...options
|
|
43
|
+
});
|
|
44
|
+
return { ...data, ...rest };
|
|
45
|
+
};
|
|
46
|
+
var useCreateClaim = (orderId, options) => {
|
|
47
|
+
return useMutation({
|
|
48
|
+
mutationFn: (payload) => sdk.vendor.claims.mutate(payload),
|
|
49
|
+
onSuccess: (data, variables, context) => {
|
|
50
|
+
invalidateOrder(orderId);
|
|
51
|
+
options?.onSuccess?.(data, variables, context);
|
|
52
|
+
},
|
|
53
|
+
...options
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
var useCancelClaimBegin = (claimId, orderId, options) => {
|
|
57
|
+
return useMutation({
|
|
58
|
+
mutationFn: () => sdk.vendor.claims.$id.request.delete({ $id: claimId }),
|
|
59
|
+
onSuccess: (data, variables, context) => {
|
|
60
|
+
invalidateOrder(orderId);
|
|
61
|
+
options?.onSuccess?.(data, variables, context);
|
|
62
|
+
},
|
|
63
|
+
...options
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
var useRequestClaim = (claimId, orderId, options) => {
|
|
67
|
+
return useMutation({
|
|
68
|
+
mutationFn: () => sdk.vendor.claims.$id.request.mutate({ $id: claimId }),
|
|
69
|
+
onSuccess: (data, variables, context) => {
|
|
70
|
+
invalidateOrder(orderId);
|
|
71
|
+
options?.onSuccess?.(data, variables, context);
|
|
72
|
+
},
|
|
73
|
+
...options
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
var useAddClaimInboundItems = (claimId, orderId, options) => {
|
|
77
|
+
return useMutation({
|
|
78
|
+
mutationFn: (payload) => sdk.vendor.claims.$id.inbound.items.mutate({
|
|
79
|
+
$id: claimId,
|
|
80
|
+
...payload
|
|
81
|
+
}),
|
|
82
|
+
onSuccess: (data, variables, context) => {
|
|
83
|
+
invalidateOrder(orderId);
|
|
84
|
+
options?.onSuccess?.(data, variables, context);
|
|
85
|
+
},
|
|
86
|
+
...options
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
var useAddClaimInboundShipping = (claimId, orderId, options) => {
|
|
90
|
+
return useMutation({
|
|
91
|
+
mutationFn: (payload) => sdk.vendor.claims.$id.inbound.shippingMethod.mutate({
|
|
92
|
+
$id: claimId,
|
|
93
|
+
...payload
|
|
94
|
+
}),
|
|
95
|
+
onSuccess: (data, variables, context) => {
|
|
96
|
+
invalidateOrder(orderId);
|
|
97
|
+
options?.onSuccess?.(data, variables, context);
|
|
98
|
+
},
|
|
99
|
+
...options
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
var useUpdateClaimInboundItem = (claimId, orderId, options) => {
|
|
103
|
+
return useMutation({
|
|
104
|
+
mutationFn: ({ actionId, $actionId: _ignored, ...payload }) => sdk.vendor.claims.$id.inbound.items.$actionId.mutate({
|
|
105
|
+
$id: claimId,
|
|
106
|
+
$actionId: actionId,
|
|
107
|
+
...payload
|
|
108
|
+
}),
|
|
109
|
+
onSuccess: (data, variables, context) => {
|
|
110
|
+
invalidateOrder(orderId);
|
|
111
|
+
options?.onSuccess?.(data, variables, context);
|
|
112
|
+
},
|
|
113
|
+
...options
|
|
114
|
+
});
|
|
115
|
+
};
|
|
116
|
+
var useRemoveClaimInboundItem = (claimId, orderId, options) => {
|
|
117
|
+
return useMutation({
|
|
118
|
+
mutationFn: (actionId) => sdk.vendor.claims.$id.inbound.items.$actionId.delete({
|
|
119
|
+
$id: claimId,
|
|
120
|
+
$actionId: actionId
|
|
121
|
+
}),
|
|
122
|
+
onSuccess: (data, variables, context) => {
|
|
123
|
+
invalidateOrder(orderId);
|
|
124
|
+
queryClient.invalidateQueries({ queryKey: returnsQueryKeys.details() });
|
|
125
|
+
options?.onSuccess?.(data, variables, context);
|
|
126
|
+
},
|
|
127
|
+
...options
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
var useUpdateClaimInboundShipping = (claimId, orderId, options) => {
|
|
131
|
+
return useMutation({
|
|
132
|
+
mutationFn: ({ actionId, $actionId: _ignored, ...payload }) => sdk.vendor.claims.$id.inbound.shippingMethod.$actionId.mutate({
|
|
133
|
+
$id: claimId,
|
|
134
|
+
$actionId: actionId,
|
|
135
|
+
...payload
|
|
136
|
+
}),
|
|
137
|
+
onSuccess: (data, variables, context) => {
|
|
138
|
+
invalidateOrder(orderId);
|
|
139
|
+
options?.onSuccess?.(data, variables, context);
|
|
140
|
+
},
|
|
141
|
+
...options
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
var useDeleteClaimInboundShipping = (claimId, orderId, options) => {
|
|
145
|
+
return useMutation({
|
|
146
|
+
mutationFn: (actionId) => sdk.vendor.claims.$id.inbound.shippingMethod.$actionId.delete({
|
|
147
|
+
$id: claimId,
|
|
148
|
+
$actionId: actionId
|
|
149
|
+
}),
|
|
150
|
+
onSuccess: (data, variables, context) => {
|
|
151
|
+
invalidateOrder(orderId);
|
|
152
|
+
options?.onSuccess?.(data, variables, context);
|
|
153
|
+
},
|
|
154
|
+
...options
|
|
155
|
+
});
|
|
156
|
+
};
|
|
157
|
+
var useClaimConfirmRequest = useRequestClaim;
|
|
158
|
+
var useCancelClaimRequest = useCancelClaimBegin;
|
|
159
|
+
|
|
160
|
+
export {
|
|
161
|
+
useClaim,
|
|
162
|
+
useClaims,
|
|
163
|
+
useCreateClaim,
|
|
164
|
+
useCancelClaimBegin,
|
|
165
|
+
useAddClaimInboundItems,
|
|
166
|
+
useAddClaimInboundShipping,
|
|
167
|
+
useUpdateClaimInboundItem,
|
|
168
|
+
useRemoveClaimInboundItem,
|
|
169
|
+
useUpdateClaimInboundShipping,
|
|
170
|
+
useDeleteClaimInboundShipping,
|
|
171
|
+
useClaimConfirmRequest,
|
|
172
|
+
useCancelClaimRequest
|
|
173
|
+
};
|