@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
|
@@ -3391,8 +3391,8 @@ var DataGridHeader = ({
|
|
|
3391
3391
|
}
|
|
3392
3392
|
)
|
|
3393
3393
|
] }),
|
|
3394
|
-
headerContent,
|
|
3395
3394
|
/* @__PURE__ */ jsxs9("div", { className: "ml-auto flex items-center gap-x-2", children: [
|
|
3395
|
+
headerContent,
|
|
3396
3396
|
errorCount > 0 && /* @__PURE__ */ jsxs9(
|
|
3397
3397
|
Button2,
|
|
3398
3398
|
{
|
|
@@ -3598,6 +3598,7 @@ var DataGridRowSkeleton = ({
|
|
|
3598
3598
|
"div",
|
|
3599
3599
|
{
|
|
3600
3600
|
role: "gridcell",
|
|
3601
|
+
"aria-label": "Cell input",
|
|
3601
3602
|
style: { width: vc.size },
|
|
3602
3603
|
className: "relative flex items-center border-b border-r p-0 outline-none",
|
|
3603
3604
|
children: /* @__PURE__ */ jsx12("div", { className: "flex h-full w-full items-center px-4", children: /* @__PURE__ */ jsx12("div", { className: "bg-ui-bg-component h-4 w-3/4 animate-pulse rounded" }) })
|
|
@@ -4081,121 +4082,13 @@ function createDataGridHelper() {
|
|
|
4081
4082
|
};
|
|
4082
4083
|
}
|
|
4083
4084
|
|
|
4084
|
-
// src/components/common/tax-badge/tax-badge.tsx
|
|
4085
|
-
import { TaxExclusive, TaxInclusive } from "@medusajs/icons";
|
|
4086
|
-
import { Tooltip as Tooltip3 } from "@medusajs/ui";
|
|
4087
|
-
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
4088
|
-
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
4089
|
-
var IncludesTaxTooltip = ({
|
|
4090
|
-
includesTax
|
|
4091
|
-
}) => {
|
|
4092
|
-
const { t } = useTranslation5();
|
|
4093
|
-
return /* @__PURE__ */ jsx18(
|
|
4094
|
-
Tooltip3,
|
|
4095
|
-
{
|
|
4096
|
-
maxWidth: 999,
|
|
4097
|
-
content: includesTax ? t("general.includesTaxTooltip") : t("general.excludesTaxTooltip"),
|
|
4098
|
-
children: includesTax ? /* @__PURE__ */ jsx18(TaxInclusive, { className: "text-ui-fg-muted shrink-0" }) : /* @__PURE__ */ jsx18(TaxExclusive, { className: "text-ui-fg-muted shrink-0" })
|
|
4099
|
-
}
|
|
4100
|
-
);
|
|
4101
|
-
};
|
|
4102
|
-
|
|
4103
|
-
// src/components/data-grid/helpers/create-data-grid-price-columns.tsx
|
|
4104
|
-
import { jsx as jsx19, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
4105
|
-
var createDataGridPriceColumns = ({
|
|
4106
|
-
currencies: currencies2,
|
|
4107
|
-
regions,
|
|
4108
|
-
pricePreferences,
|
|
4109
|
-
isReadyOnly,
|
|
4110
|
-
getFieldName,
|
|
4111
|
-
t
|
|
4112
|
-
}) => {
|
|
4113
|
-
const columnHelper = createDataGridHelper();
|
|
4114
|
-
return [
|
|
4115
|
-
...currencies2?.map((currency) => {
|
|
4116
|
-
const preference = pricePreferences?.find(
|
|
4117
|
-
(p) => p.attribute === "currency_code" && p.value === currency
|
|
4118
|
-
);
|
|
4119
|
-
const translatedCurrencyName = t("fields.priceTemplate", {
|
|
4120
|
-
regionOrCurrency: currency.toUpperCase()
|
|
4121
|
-
});
|
|
4122
|
-
return columnHelper.column({
|
|
4123
|
-
id: `currency_prices.${currency}`,
|
|
4124
|
-
name: t("fields.priceTemplate", {
|
|
4125
|
-
regionOrCurrency: currency.toUpperCase()
|
|
4126
|
-
}),
|
|
4127
|
-
field: (context) => {
|
|
4128
|
-
const isReadyOnlyValue = isReadyOnly?.(context);
|
|
4129
|
-
if (isReadyOnlyValue) {
|
|
4130
|
-
return null;
|
|
4131
|
-
}
|
|
4132
|
-
return getFieldName(context, currency);
|
|
4133
|
-
},
|
|
4134
|
-
type: "number",
|
|
4135
|
-
header: () => /* @__PURE__ */ jsxs13("div", { className: "flex w-full items-center justify-between gap-3", children: [
|
|
4136
|
-
/* @__PURE__ */ jsx19("span", { className: "truncate", title: translatedCurrencyName, children: translatedCurrencyName }),
|
|
4137
|
-
/* @__PURE__ */ jsx19(IncludesTaxTooltip, { includesTax: preference?.is_tax_inclusive })
|
|
4138
|
-
] }),
|
|
4139
|
-
cell: (context) => {
|
|
4140
|
-
if (isReadyOnly?.(context)) {
|
|
4141
|
-
return /* @__PURE__ */ jsx19(DataGridReadonlyCell, { context });
|
|
4142
|
-
}
|
|
4143
|
-
return /* @__PURE__ */ jsx19(DataGridCurrencyCell, { code: currency, context });
|
|
4144
|
-
}
|
|
4145
|
-
});
|
|
4146
|
-
}) ?? [],
|
|
4147
|
-
...regions?.map((region) => {
|
|
4148
|
-
const preference = pricePreferences?.find(
|
|
4149
|
-
(p) => p.attribute === "region_id" && p.value === region.id
|
|
4150
|
-
);
|
|
4151
|
-
const translatedRegionName = t("fields.priceTemplate", {
|
|
4152
|
-
regionOrCurrency: region.name
|
|
4153
|
-
});
|
|
4154
|
-
return columnHelper.column({
|
|
4155
|
-
id: `region_prices.${region.id}`,
|
|
4156
|
-
name: t("fields.priceTemplate", {
|
|
4157
|
-
regionOrCurrency: region.name
|
|
4158
|
-
}),
|
|
4159
|
-
field: (context) => {
|
|
4160
|
-
const isReadyOnlyValue = isReadyOnly?.(context);
|
|
4161
|
-
if (isReadyOnlyValue) {
|
|
4162
|
-
return null;
|
|
4163
|
-
}
|
|
4164
|
-
return getFieldName(context, region.id);
|
|
4165
|
-
},
|
|
4166
|
-
type: "number",
|
|
4167
|
-
header: () => /* @__PURE__ */ jsxs13("div", { className: "flex w-full items-center justify-between gap-3", children: [
|
|
4168
|
-
/* @__PURE__ */ jsx19("span", { className: "truncate", title: translatedRegionName, children: translatedRegionName }),
|
|
4169
|
-
/* @__PURE__ */ jsx19(IncludesTaxTooltip, { includesTax: preference?.is_tax_inclusive })
|
|
4170
|
-
] }),
|
|
4171
|
-
cell: (context) => {
|
|
4172
|
-
if (isReadyOnly?.(context)) {
|
|
4173
|
-
return /* @__PURE__ */ jsx19(DataGridReadonlyCell, { context });
|
|
4174
|
-
}
|
|
4175
|
-
const currency = currencies2?.find((c) => c === region.currency_code);
|
|
4176
|
-
if (!currency) {
|
|
4177
|
-
return null;
|
|
4178
|
-
}
|
|
4179
|
-
return /* @__PURE__ */ jsx19(
|
|
4180
|
-
DataGridCurrencyCell,
|
|
4181
|
-
{
|
|
4182
|
-
code: region.currency_code,
|
|
4183
|
-
context
|
|
4184
|
-
}
|
|
4185
|
-
);
|
|
4186
|
-
}
|
|
4187
|
-
});
|
|
4188
|
-
}) ?? []
|
|
4189
|
-
];
|
|
4190
|
-
};
|
|
4191
|
-
|
|
4192
4085
|
// src/components/data-grid/components/data-grid-toggleable-number-cell.tsx
|
|
4193
4086
|
import { Switch as Switch2 } from "@medusajs/ui";
|
|
4194
4087
|
import { useEffect as useEffect10, useRef as useRef8, useState as useState13 } from "react";
|
|
4195
4088
|
import CurrencyInput2 from "react-currency-input-field";
|
|
4196
4089
|
import { Controller as Controller11 } from "react-hook-form";
|
|
4197
|
-
import { useTranslation as
|
|
4198
|
-
import { jsx as
|
|
4090
|
+
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
4091
|
+
import { jsx as jsx18, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
4199
4092
|
var DataGridTogglableNumberCell = ({
|
|
4200
4093
|
context,
|
|
4201
4094
|
disabledToggleTooltip,
|
|
@@ -4207,18 +4100,18 @@ var DataGridTogglableNumberCell = ({
|
|
|
4207
4100
|
});
|
|
4208
4101
|
const errorProps = useDataGridCellError({ context });
|
|
4209
4102
|
const { container, input } = renderProps;
|
|
4210
|
-
return /* @__PURE__ */
|
|
4103
|
+
return /* @__PURE__ */ jsx18(
|
|
4211
4104
|
Controller11,
|
|
4212
4105
|
{
|
|
4213
4106
|
control,
|
|
4214
4107
|
name: field,
|
|
4215
4108
|
render: ({ field: field2 }) => {
|
|
4216
|
-
return /* @__PURE__ */
|
|
4109
|
+
return /* @__PURE__ */ jsx18(
|
|
4217
4110
|
DataGridCellContainer,
|
|
4218
4111
|
{
|
|
4219
4112
|
...container,
|
|
4220
4113
|
...errorProps,
|
|
4221
|
-
outerComponent: /* @__PURE__ */
|
|
4114
|
+
outerComponent: /* @__PURE__ */ jsx18(
|
|
4222
4115
|
OuterComponent,
|
|
4223
4116
|
{
|
|
4224
4117
|
field: field2,
|
|
@@ -4227,7 +4120,7 @@ var DataGridTogglableNumberCell = ({
|
|
|
4227
4120
|
tooltip: disabledToggleTooltip
|
|
4228
4121
|
}
|
|
4229
4122
|
),
|
|
4230
|
-
children: /* @__PURE__ */
|
|
4123
|
+
children: /* @__PURE__ */ jsx18(Inner8, { field: field2, inputProps: input, hideInput, ...rest })
|
|
4231
4124
|
}
|
|
4232
4125
|
);
|
|
4233
4126
|
}
|
|
@@ -4268,12 +4161,12 @@ var OuterComponent = ({
|
|
|
4268
4161
|
document.addEventListener("keydown", handleKeyDown);
|
|
4269
4162
|
return () => document.removeEventListener("keydown", handleKeyDown);
|
|
4270
4163
|
}, [isAnchor]);
|
|
4271
|
-
return /* @__PURE__ */
|
|
4164
|
+
return /* @__PURE__ */ jsx18(
|
|
4272
4165
|
ConditionalTooltip,
|
|
4273
4166
|
{
|
|
4274
4167
|
showTooltip: localValue.disabledToggle && tooltip,
|
|
4275
4168
|
content: tooltip,
|
|
4276
|
-
children: /* @__PURE__ */
|
|
4169
|
+
children: /* @__PURE__ */ jsx18("div", { className: "absolute inset-y-0 left-4 z-[3] flex w-fit items-center justify-center", children: /* @__PURE__ */ jsx18(
|
|
4277
4170
|
Switch2,
|
|
4278
4171
|
{
|
|
4279
4172
|
dir: "ltr",
|
|
@@ -4295,7 +4188,7 @@ var Inner8 = ({
|
|
|
4295
4188
|
hideInput,
|
|
4296
4189
|
...props
|
|
4297
4190
|
}) => {
|
|
4298
|
-
const { t } =
|
|
4191
|
+
const { t } = useTranslation5();
|
|
4299
4192
|
const { ref, value, onChange: _, onBlur, ...fieldProps } = field;
|
|
4300
4193
|
const {
|
|
4301
4194
|
ref: inputRef,
|
|
@@ -4324,10 +4217,11 @@ var Inner8 = ({
|
|
|
4324
4217
|
onChange(localValue, value);
|
|
4325
4218
|
};
|
|
4326
4219
|
if (hideInput) {
|
|
4327
|
-
return /* @__PURE__ */
|
|
4328
|
-
/* @__PURE__ */
|
|
4220
|
+
return /* @__PURE__ */ jsxs13("div", { className: "flex size-full items-center gap-x-2 pl-8", children: [
|
|
4221
|
+
/* @__PURE__ */ jsx18(
|
|
4329
4222
|
"input",
|
|
4330
4223
|
{
|
|
4224
|
+
"aria-label": "Toggle",
|
|
4331
4225
|
ref: combinedRefs,
|
|
4332
4226
|
className: "sr-only",
|
|
4333
4227
|
onFocus,
|
|
@@ -4339,10 +4233,10 @@ var Inner8 = ({
|
|
|
4339
4233
|
readOnly: true
|
|
4340
4234
|
}
|
|
4341
4235
|
),
|
|
4342
|
-
/* @__PURE__ */
|
|
4236
|
+
/* @__PURE__ */ jsx18("span", { className: "txt-compact-small text-ui-fg-subtle", children: localValue?.checked ? t("dataGrid.toggle.enabled") : t("dataGrid.toggle.notEnabled") })
|
|
4343
4237
|
] });
|
|
4344
4238
|
}
|
|
4345
|
-
return /* @__PURE__ */
|
|
4239
|
+
return /* @__PURE__ */ jsx18("div", { className: "flex size-full items-center gap-x-2", children: /* @__PURE__ */ jsx18(
|
|
4346
4240
|
CurrencyInput2,
|
|
4347
4241
|
{
|
|
4348
4242
|
...fieldProps,
|
|
@@ -4368,7 +4262,7 @@ var Inner8 = ({
|
|
|
4368
4262
|
};
|
|
4369
4263
|
|
|
4370
4264
|
// src/components/data-grid/helpers/create-data-grid-location-stock-columns.tsx
|
|
4371
|
-
import { jsx as
|
|
4265
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
4372
4266
|
var createDataGridLocationStockColumns = ({
|
|
4373
4267
|
stockLocations,
|
|
4374
4268
|
isReadyOnly,
|
|
@@ -4389,12 +4283,12 @@ var createDataGridLocationStockColumns = ({
|
|
|
4389
4283
|
return getFieldName(context, index);
|
|
4390
4284
|
},
|
|
4391
4285
|
type: "togglable-number",
|
|
4392
|
-
header: () => /* @__PURE__ */
|
|
4286
|
+
header: () => /* @__PURE__ */ jsx19("div", { className: "flex w-full items-center justify-between gap-3", children: /* @__PURE__ */ jsx19("span", { className: "truncate", title: stockLocation.name, children: stockLocation.name }) }),
|
|
4393
4287
|
cell: (context) => {
|
|
4394
4288
|
if (isReadyOnly?.(context)) {
|
|
4395
|
-
return /* @__PURE__ */
|
|
4289
|
+
return /* @__PURE__ */ jsx19(DataGridReadonlyCell, { context });
|
|
4396
4290
|
}
|
|
4397
|
-
return /* @__PURE__ */
|
|
4291
|
+
return /* @__PURE__ */ jsx19(
|
|
4398
4292
|
DataGridTogglableNumberCell,
|
|
4399
4293
|
{
|
|
4400
4294
|
context,
|
|
@@ -4407,6 +4301,114 @@ var createDataGridLocationStockColumns = ({
|
|
|
4407
4301
|
];
|
|
4408
4302
|
};
|
|
4409
4303
|
|
|
4304
|
+
// src/components/common/tax-badge/tax-badge.tsx
|
|
4305
|
+
import { TaxExclusive, TaxInclusive } from "@medusajs/icons";
|
|
4306
|
+
import { Tooltip as Tooltip3 } from "@medusajs/ui";
|
|
4307
|
+
import { useTranslation as useTranslation6 } from "react-i18next";
|
|
4308
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
4309
|
+
var IncludesTaxTooltip = ({
|
|
4310
|
+
includesTax
|
|
4311
|
+
}) => {
|
|
4312
|
+
const { t } = useTranslation6();
|
|
4313
|
+
return /* @__PURE__ */ jsx20(
|
|
4314
|
+
Tooltip3,
|
|
4315
|
+
{
|
|
4316
|
+
maxWidth: 999,
|
|
4317
|
+
content: includesTax ? t("general.includesTaxTooltip") : t("general.excludesTaxTooltip"),
|
|
4318
|
+
children: includesTax ? /* @__PURE__ */ jsx20(TaxInclusive, { className: "text-ui-fg-muted shrink-0" }) : /* @__PURE__ */ jsx20(TaxExclusive, { className: "text-ui-fg-muted shrink-0" })
|
|
4319
|
+
}
|
|
4320
|
+
);
|
|
4321
|
+
};
|
|
4322
|
+
|
|
4323
|
+
// src/components/data-grid/helpers/create-data-grid-price-columns.tsx
|
|
4324
|
+
import { jsx as jsx21, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
4325
|
+
var createDataGridPriceColumns = ({
|
|
4326
|
+
currencies: currencies2,
|
|
4327
|
+
regions,
|
|
4328
|
+
pricePreferences,
|
|
4329
|
+
isReadyOnly,
|
|
4330
|
+
getFieldName,
|
|
4331
|
+
t
|
|
4332
|
+
}) => {
|
|
4333
|
+
const columnHelper = createDataGridHelper();
|
|
4334
|
+
return [
|
|
4335
|
+
...currencies2?.map((currency) => {
|
|
4336
|
+
const preference = pricePreferences?.find(
|
|
4337
|
+
(p) => p.attribute === "currency_code" && p.value === currency
|
|
4338
|
+
);
|
|
4339
|
+
const translatedCurrencyName = t("fields.priceTemplate", {
|
|
4340
|
+
regionOrCurrency: currency.toUpperCase()
|
|
4341
|
+
});
|
|
4342
|
+
return columnHelper.column({
|
|
4343
|
+
id: `currency_prices.${currency}`,
|
|
4344
|
+
name: t("fields.priceTemplate", {
|
|
4345
|
+
regionOrCurrency: currency.toUpperCase()
|
|
4346
|
+
}),
|
|
4347
|
+
field: (context) => {
|
|
4348
|
+
const isReadyOnlyValue = isReadyOnly?.(context);
|
|
4349
|
+
if (isReadyOnlyValue) {
|
|
4350
|
+
return null;
|
|
4351
|
+
}
|
|
4352
|
+
return getFieldName(context, currency);
|
|
4353
|
+
},
|
|
4354
|
+
type: "number",
|
|
4355
|
+
header: () => /* @__PURE__ */ jsxs14("div", { className: "flex w-full items-center justify-between gap-3", children: [
|
|
4356
|
+
/* @__PURE__ */ jsx21("span", { className: "truncate", title: translatedCurrencyName, children: translatedCurrencyName }),
|
|
4357
|
+
/* @__PURE__ */ jsx21(IncludesTaxTooltip, { includesTax: preference?.is_tax_inclusive })
|
|
4358
|
+
] }),
|
|
4359
|
+
cell: (context) => {
|
|
4360
|
+
if (isReadyOnly?.(context)) {
|
|
4361
|
+
return /* @__PURE__ */ jsx21(DataGridReadonlyCell, { context });
|
|
4362
|
+
}
|
|
4363
|
+
return /* @__PURE__ */ jsx21(DataGridCurrencyCell, { code: currency, context });
|
|
4364
|
+
}
|
|
4365
|
+
});
|
|
4366
|
+
}) ?? [],
|
|
4367
|
+
...regions?.map((region) => {
|
|
4368
|
+
const preference = pricePreferences?.find(
|
|
4369
|
+
(p) => p.attribute === "region_id" && p.value === region.id
|
|
4370
|
+
);
|
|
4371
|
+
const translatedRegionName = t("fields.priceTemplate", {
|
|
4372
|
+
regionOrCurrency: region.name
|
|
4373
|
+
});
|
|
4374
|
+
return columnHelper.column({
|
|
4375
|
+
id: `region_prices.${region.id}`,
|
|
4376
|
+
name: t("fields.priceTemplate", {
|
|
4377
|
+
regionOrCurrency: region.name
|
|
4378
|
+
}),
|
|
4379
|
+
field: (context) => {
|
|
4380
|
+
const isReadyOnlyValue = isReadyOnly?.(context);
|
|
4381
|
+
if (isReadyOnlyValue) {
|
|
4382
|
+
return null;
|
|
4383
|
+
}
|
|
4384
|
+
return getFieldName(context, region.id);
|
|
4385
|
+
},
|
|
4386
|
+
type: "number",
|
|
4387
|
+
header: () => /* @__PURE__ */ jsxs14("div", { className: "flex w-full items-center justify-between gap-3", children: [
|
|
4388
|
+
/* @__PURE__ */ jsx21("span", { className: "truncate", title: translatedRegionName, children: translatedRegionName }),
|
|
4389
|
+
/* @__PURE__ */ jsx21(IncludesTaxTooltip, { includesTax: preference?.is_tax_inclusive })
|
|
4390
|
+
] }),
|
|
4391
|
+
cell: (context) => {
|
|
4392
|
+
if (isReadyOnly?.(context)) {
|
|
4393
|
+
return /* @__PURE__ */ jsx21(DataGridReadonlyCell, { context });
|
|
4394
|
+
}
|
|
4395
|
+
const currency = currencies2?.find((c) => c === region.currency_code);
|
|
4396
|
+
if (!currency) {
|
|
4397
|
+
return null;
|
|
4398
|
+
}
|
|
4399
|
+
return /* @__PURE__ */ jsx21(
|
|
4400
|
+
DataGridCurrencyCell,
|
|
4401
|
+
{
|
|
4402
|
+
code: region.currency_code,
|
|
4403
|
+
context
|
|
4404
|
+
}
|
|
4405
|
+
);
|
|
4406
|
+
}
|
|
4407
|
+
});
|
|
4408
|
+
}) ?? []
|
|
4409
|
+
];
|
|
4410
|
+
};
|
|
4411
|
+
|
|
4410
4412
|
export {
|
|
4411
4413
|
useCombinedRefs,
|
|
4412
4414
|
useDataGridCell,
|
|
@@ -27,6 +27,14 @@ var PRODUCT_ATTRIBUTES_QUERY_KEY = "product_attributes";
|
|
|
27
27
|
var productAttributesQueryKeys = queryKeysFactory(
|
|
28
28
|
PRODUCT_ATTRIBUTES_QUERY_KEY
|
|
29
29
|
);
|
|
30
|
+
var useProductAttribute = (id, query, options) => {
|
|
31
|
+
const { data, ...rest } = useQuery({
|
|
32
|
+
queryKey: productAttributesQueryKeys.detail(id, query),
|
|
33
|
+
queryFn: async () => sdk.vendor.productAttributes.$id.query({ $id: id, ...query }),
|
|
34
|
+
...options
|
|
35
|
+
});
|
|
36
|
+
return { ...data, ...rest };
|
|
37
|
+
};
|
|
30
38
|
var useProductAttributes = (query, options) => {
|
|
31
39
|
const { data, ...rest } = useQuery({
|
|
32
40
|
queryKey: productAttributesQueryKeys.list(query),
|
|
@@ -108,6 +116,7 @@ var useDeleteProduct = (id, options) => {
|
|
|
108
116
|
queryKey: productChangeQueryKeys.detail(id)
|
|
109
117
|
});
|
|
110
118
|
queryClient.invalidateQueries({ queryKey: productsQueryKeys.detail(id) });
|
|
119
|
+
queryClient.invalidateQueries({ queryKey: productsQueryKeys.lists() });
|
|
111
120
|
options?.onSuccess?.(data, variables, context);
|
|
112
121
|
},
|
|
113
122
|
...options
|
|
@@ -184,6 +193,9 @@ var useUpdateProductVariant = (productId, variantId, options) => {
|
|
|
184
193
|
queryClient.invalidateQueries({
|
|
185
194
|
queryKey: productsQueryKeys.detail(productId)
|
|
186
195
|
});
|
|
196
|
+
queryClient.invalidateQueries({
|
|
197
|
+
queryKey: variantsQueryKeys.detail(variantId)
|
|
198
|
+
});
|
|
187
199
|
options?.onSuccess?.(data, variables, context);
|
|
188
200
|
},
|
|
189
201
|
...options
|
|
@@ -249,6 +261,49 @@ var useAddProductAttribute = (productId, options) => {
|
|
|
249
261
|
...options
|
|
250
262
|
});
|
|
251
263
|
};
|
|
264
|
+
var useUpdateProductAttribute = (productId, attributeId, options) => {
|
|
265
|
+
return useMutation({
|
|
266
|
+
mutationFn: (payload) => sdk.vendor.products.$id.attributes.$attributeId.mutate({
|
|
267
|
+
$id: productId,
|
|
268
|
+
$attributeId: attributeId,
|
|
269
|
+
...payload
|
|
270
|
+
}),
|
|
271
|
+
onSuccess: (data, variables, context) => {
|
|
272
|
+
queryClient.invalidateQueries({
|
|
273
|
+
queryKey: productChangeQueryKeys.detail(productId)
|
|
274
|
+
});
|
|
275
|
+
queryClient.invalidateQueries({
|
|
276
|
+
queryKey: productAttributesQueryKeys.lists()
|
|
277
|
+
});
|
|
278
|
+
queryClient.invalidateQueries({
|
|
279
|
+
queryKey: productsQueryKeys.detail(productId)
|
|
280
|
+
});
|
|
281
|
+
options?.onSuccess?.(data, variables, context);
|
|
282
|
+
},
|
|
283
|
+
...options
|
|
284
|
+
});
|
|
285
|
+
};
|
|
286
|
+
var useBatchProductAttributes = (productId, options) => {
|
|
287
|
+
return useMutation({
|
|
288
|
+
mutationFn: (payload) => sdk.vendor.products.$id.attributes.batch.mutate({
|
|
289
|
+
$id: productId,
|
|
290
|
+
...payload
|
|
291
|
+
}),
|
|
292
|
+
onSuccess: (data, variables, context) => {
|
|
293
|
+
queryClient.invalidateQueries({
|
|
294
|
+
queryKey: productChangeQueryKeys.detail(productId)
|
|
295
|
+
});
|
|
296
|
+
queryClient.invalidateQueries({
|
|
297
|
+
queryKey: productAttributesQueryKeys.lists()
|
|
298
|
+
});
|
|
299
|
+
queryClient.invalidateQueries({
|
|
300
|
+
queryKey: productsQueryKeys.detail(productId)
|
|
301
|
+
});
|
|
302
|
+
options?.onSuccess?.(data, variables, context);
|
|
303
|
+
},
|
|
304
|
+
...options
|
|
305
|
+
});
|
|
306
|
+
};
|
|
252
307
|
var useRemoveProductAttribute = (productId, attributeId, options) => {
|
|
253
308
|
return useMutation({
|
|
254
309
|
mutationFn: () => sdk.vendor.products.$id.attributes.$attributeId.delete({
|
|
@@ -460,6 +515,8 @@ export {
|
|
|
460
515
|
useUpdateInventoryLevel,
|
|
461
516
|
useBatchInventoryItemLocationLevels,
|
|
462
517
|
useBatchInventoryItemsLocationLevels,
|
|
518
|
+
productAttributesQueryKeys,
|
|
519
|
+
useProductAttribute,
|
|
463
520
|
useProductAttributes,
|
|
464
521
|
productsQueryKeys,
|
|
465
522
|
variantsQueryKeys,
|
|
@@ -477,5 +534,7 @@ export {
|
|
|
477
534
|
useDeleteVariant,
|
|
478
535
|
useDeleteVariantLazy,
|
|
479
536
|
useAddProductAttribute,
|
|
537
|
+
useUpdateProductAttribute,
|
|
538
|
+
useBatchProductAttributes,
|
|
480
539
|
useRemoveProductAttribute
|
|
481
540
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useOrderTableColumns
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-E6W57UP3.js";
|
|
4
4
|
import {
|
|
5
5
|
useOrderTableQuery
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XBKWFLJG.js";
|
|
7
7
|
import {
|
|
8
8
|
useOrderTableFilters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LFX6WU4A.js";
|
|
10
10
|
import {
|
|
11
11
|
_DataTable,
|
|
12
12
|
useDataTable
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WKRW5OPL.js";
|
|
14
14
|
import {
|
|
15
15
|
SingleColumnPage
|
|
16
16
|
} from "./chunk-YV6MK4PZ.js";
|
|
17
17
|
import {
|
|
18
18
|
useOrders
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7RGUD6PI.js";
|
|
20
20
|
|
|
21
21
|
// src/pages/orders/order-list-page.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
@@ -67,7 +67,6 @@ var OrderListDataTable = () => {
|
|
|
67
67
|
"total",
|
|
68
68
|
"currency_code",
|
|
69
69
|
"*customer",
|
|
70
|
-
"*sales_channel",
|
|
71
70
|
"*payment_collections"
|
|
72
71
|
].join(","),
|
|
73
72
|
...searchParams
|
|
@@ -90,6 +89,7 @@ var OrderListDataTable = () => {
|
|
|
90
89
|
columns,
|
|
91
90
|
table,
|
|
92
91
|
pagination: true,
|
|
92
|
+
search: true,
|
|
93
93
|
filters,
|
|
94
94
|
navigateTo: (row) => `/orders/${row.original.id}`,
|
|
95
95
|
count,
|
|
@@ -109,6 +109,7 @@ var OrderListDataTable = () => {
|
|
|
109
109
|
label: t("fields.updatedAt")
|
|
110
110
|
}
|
|
111
111
|
],
|
|
112
|
+
defaultOrderBy: "-display_id",
|
|
112
113
|
queryObject: raw,
|
|
113
114
|
noRecords: {
|
|
114
115
|
message: t("orders.list.noRecordsMessage")
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/lib/rma.ts
|
|
2
|
+
function getReturnableQuantity(item) {
|
|
3
|
+
const {
|
|
4
|
+
delivered_quantity,
|
|
5
|
+
return_received_quantity,
|
|
6
|
+
return_dismissed_quantity,
|
|
7
|
+
return_requested_quantity
|
|
8
|
+
} = item.detail;
|
|
9
|
+
return delivered_quantity - (return_received_quantity + return_requested_quantity + return_dismissed_quantity);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
getReturnableQuantity
|
|
14
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// src/lib/policy.ts
|
|
2
|
+
var RETURN_POLICY_DAYS = 30;
|
|
3
|
+
var EXCHANGE_POLICY_DAYS = 30;
|
|
4
|
+
var CLAIM_POLICY_DAYS = 30;
|
|
5
|
+
var MS_PER_DAY = 1e3 * 60 * 60 * 24;
|
|
6
|
+
var getOrderDeliveredAt = (order) => {
|
|
7
|
+
if (!order?.fulfillments?.length) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
let latest = null;
|
|
11
|
+
for (const f of order.fulfillments) {
|
|
12
|
+
const delivered = f.delivered_at;
|
|
13
|
+
if (!delivered) continue;
|
|
14
|
+
const d = new Date(delivered);
|
|
15
|
+
if (!latest || d > latest) {
|
|
16
|
+
latest = d;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return latest;
|
|
20
|
+
};
|
|
21
|
+
var isOutsidePolicyWindow = (order, days) => {
|
|
22
|
+
const deliveredAt = getOrderDeliveredAt(order);
|
|
23
|
+
if (!deliveredAt) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
const elapsedMs = Date.now() - deliveredAt.getTime();
|
|
27
|
+
return elapsedMs > days * MS_PER_DAY;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export {
|
|
31
|
+
RETURN_POLICY_DAYS,
|
|
32
|
+
EXCHANGE_POLICY_DAYS,
|
|
33
|
+
CLAIM_POLICY_DAYS,
|
|
34
|
+
isOutsidePolicyWindow
|
|
35
|
+
};
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-YN3FGNJM.js";
|
|
5
5
|
import {
|
|
6
6
|
DataTableOrderBy
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KCHYLLVG.js";
|
|
8
8
|
import {
|
|
9
9
|
NoRecords,
|
|
10
10
|
NoResults
|
|
@@ -1111,6 +1111,7 @@ import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
|
1111
1111
|
var DataTableQuery = ({
|
|
1112
1112
|
search,
|
|
1113
1113
|
orderBy,
|
|
1114
|
+
defaultOrderBy,
|
|
1114
1115
|
filters,
|
|
1115
1116
|
prefix
|
|
1116
1117
|
}) => {
|
|
@@ -1124,7 +1125,14 @@ var DataTableQuery = ({
|
|
|
1124
1125
|
autofocus: search === "autofocus"
|
|
1125
1126
|
}
|
|
1126
1127
|
),
|
|
1127
|
-
orderBy && /* @__PURE__ */ jsx7(
|
|
1128
|
+
orderBy && /* @__PURE__ */ jsx7(
|
|
1129
|
+
DataTableOrderBy,
|
|
1130
|
+
{
|
|
1131
|
+
keys: orderBy,
|
|
1132
|
+
prefix,
|
|
1133
|
+
defaultKey: defaultOrderBy
|
|
1134
|
+
}
|
|
1135
|
+
)
|
|
1128
1136
|
] })
|
|
1129
1137
|
] });
|
|
1130
1138
|
};
|
|
@@ -1386,6 +1394,7 @@ var _DataTable = ({
|
|
|
1386
1394
|
count = 0,
|
|
1387
1395
|
search = false,
|
|
1388
1396
|
orderBy,
|
|
1397
|
+
defaultOrderBy,
|
|
1389
1398
|
filters,
|
|
1390
1399
|
prefix,
|
|
1391
1400
|
queryObject = {},
|
|
@@ -1434,6 +1443,7 @@ var _DataTable = ({
|
|
|
1434
1443
|
{
|
|
1435
1444
|
search,
|
|
1436
1445
|
orderBy,
|
|
1446
|
+
defaultOrderBy,
|
|
1437
1447
|
filters,
|
|
1438
1448
|
prefix
|
|
1439
1449
|
}
|
|
@@ -13,35 +13,26 @@ var useOrderTableQuery = ({
|
|
|
13
13
|
"q",
|
|
14
14
|
"created_at",
|
|
15
15
|
"updated_at",
|
|
16
|
-
"
|
|
17
|
-
"sales_channel_id",
|
|
18
|
-
"payment_status",
|
|
19
|
-
"fulfillment_status",
|
|
16
|
+
"request",
|
|
20
17
|
"order"
|
|
21
18
|
],
|
|
22
19
|
prefix
|
|
23
20
|
);
|
|
24
21
|
const {
|
|
25
22
|
offset,
|
|
26
|
-
sales_channel_id,
|
|
27
23
|
created_at,
|
|
28
24
|
updated_at,
|
|
29
|
-
|
|
30
|
-
payment_status,
|
|
31
|
-
region_id,
|
|
25
|
+
request,
|
|
32
26
|
q,
|
|
33
27
|
order
|
|
34
28
|
} = queryObject;
|
|
35
29
|
const searchParams = {
|
|
36
30
|
limit: pageSize,
|
|
37
31
|
offset: offset ? Number(offset) : 0,
|
|
38
|
-
|
|
39
|
-
fulfillment_status: fulfillment_status?.split(","),
|
|
40
|
-
payment_status: payment_status?.split(","),
|
|
32
|
+
request: request?.split(","),
|
|
41
33
|
created_at: created_at ? JSON.parse(created_at) : void 0,
|
|
42
34
|
updated_at: updated_at ? JSON.parse(updated_at) : void 0,
|
|
43
|
-
|
|
44
|
-
order: order ? order : "-created_at",
|
|
35
|
+
order: order ? order : "-display_id",
|
|
45
36
|
q
|
|
46
37
|
};
|
|
47
38
|
return {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
_DataTable,
|
|
6
6
|
useDataTable
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WKRW5OPL.js";
|
|
8
8
|
import {
|
|
9
9
|
SingleColumnPage
|
|
10
10
|
} from "./chunk-YV6MK4PZ.js";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
import {
|
|
21
21
|
useDeleteInventoryItem,
|
|
22
22
|
useInventoryItems
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-TSTUAL6N.js";
|
|
24
24
|
|
|
25
25
|
// src/pages/inventory/inventory-list-page.tsx
|
|
26
26
|
import { Children as Children2 } from "react";
|