@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
|
@@ -7,77 +7,82 @@ import {
|
|
|
7
7
|
} from "./chunk-JHIMVLB2.js";
|
|
8
8
|
import {
|
|
9
9
|
useOrderTableColumns
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-E6W57UP3.js";
|
|
11
11
|
import {
|
|
12
12
|
useOrderTableQuery
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-XBKWFLJG.js";
|
|
14
14
|
import {
|
|
15
15
|
useOrderTableFilters
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LFX6WU4A.js";
|
|
17
17
|
import {
|
|
18
18
|
useCustomerGroupTableFilters
|
|
19
19
|
} from "./chunk-CMHI2RPL.js";
|
|
20
20
|
import "./chunk-HB3BP55W.js";
|
|
21
21
|
import "./chunk-SYNUA6LQ.js";
|
|
22
|
+
import "./chunk-L57USMYC.js";
|
|
22
23
|
import "./chunk-LQSLDDPT.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import
|
|
24
|
+
import "./chunk-3BXCPHN6.js";
|
|
25
|
+
import {
|
|
26
|
+
getCountryByIso2
|
|
27
|
+
} from "./chunk-JRTZWK77.js";
|
|
25
28
|
import "./chunk-FQERBIVS.js";
|
|
26
29
|
import "./chunk-DB6ANJBO.js";
|
|
27
30
|
import "./chunk-PHOCVOZ5.js";
|
|
28
31
|
import {
|
|
29
32
|
_DataTable,
|
|
30
33
|
useDataTable
|
|
31
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-WKRW5OPL.js";
|
|
32
35
|
import "./chunk-YN3FGNJM.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import
|
|
36
|
+
import "./chunk-KCHYLLVG.js";
|
|
37
|
+
import {
|
|
38
|
+
NoRecords
|
|
39
|
+
} from "./chunk-3EF54XFY.js";
|
|
35
40
|
import "./chunk-IQPN4PZJ.js";
|
|
36
41
|
import {
|
|
37
|
-
|
|
42
|
+
TwoColumnPage
|
|
38
43
|
} from "./chunk-YV6MK4PZ.js";
|
|
39
|
-
import "./chunk-LRD242C7.js";
|
|
40
|
-
import "./chunk-QHQWEERJ.js";
|
|
41
44
|
import "./chunk-THHRRYRS.js";
|
|
45
|
+
import "./chunk-LRD242C7.js";
|
|
42
46
|
import {
|
|
43
|
-
|
|
47
|
+
TwoColumnPageSkeleton
|
|
44
48
|
} from "./chunk-INNFZYX2.js";
|
|
45
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-KZYRC3WR.js";
|
|
46
50
|
import "./chunk-F4OJN2F2.js";
|
|
47
51
|
import "./chunk-LRARA622.js";
|
|
48
52
|
import "./chunk-M6N4ISXL.js";
|
|
49
53
|
import "./chunk-S7EKBD2C.js";
|
|
50
|
-
import "./chunk-VXMOPVRH.js";
|
|
51
54
|
import "./chunk-VV6IKGCN.js";
|
|
52
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-M3YUT5AY.js";
|
|
53
56
|
import "./chunk-BOZJOOGW.js";
|
|
57
|
+
import "./chunk-IQWK723D.js";
|
|
58
|
+
import "./chunk-4S6XGIC6.js";
|
|
59
|
+
import "./chunk-S23FD6FA.js";
|
|
60
|
+
import "./chunk-7FIPNQM2.js";
|
|
54
61
|
import {
|
|
55
62
|
useBatchCustomerCustomerGroups,
|
|
56
63
|
useCustomer,
|
|
57
64
|
useCustomerGroups,
|
|
58
65
|
useRemoveCustomersFromGroup
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-T6LHVNWO.js";
|
|
61
|
-
import "./chunk-4S6XGIC6.js";
|
|
62
|
-
import "./chunk-QT7YFHCA.js";
|
|
63
|
-
import "./chunk-IQWK723D.js";
|
|
64
|
-
import "./chunk-UORPTGV2.js";
|
|
65
|
-
import "./chunk-NXNJQZCP.js";
|
|
66
|
+
} from "./chunk-LTQQRVZG.js";
|
|
66
67
|
import "./chunk-VXWN37PT.js";
|
|
67
|
-
import "./chunk-
|
|
68
|
+
import "./chunk-247L47JD.js";
|
|
69
|
+
import "./chunk-POOTMH3K.js";
|
|
70
|
+
import "./chunk-VXMOPVRH.js";
|
|
68
71
|
import "./chunk-NBPMNUKZ.js";
|
|
72
|
+
import "./chunk-4R5GESED.js";
|
|
69
73
|
import {
|
|
70
74
|
useOrders
|
|
71
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-7RGUD6PI.js";
|
|
72
76
|
import "./chunk-3B34B2M2.js";
|
|
73
77
|
import {
|
|
74
78
|
ActionMenu
|
|
75
79
|
} from "./chunk-BDGZ4EQO.js";
|
|
76
80
|
import "./chunk-LAVHRER2.js";
|
|
81
|
+
import "./chunk-QHQWEERJ.js";
|
|
77
82
|
import "./chunk-Y7QKP6QU.js";
|
|
78
83
|
import {
|
|
79
84
|
productsQueryKeys
|
|
80
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-TSTUAL6N.js";
|
|
81
86
|
import "./chunk-A5DJIOHN.js";
|
|
82
87
|
import {
|
|
83
88
|
queryClient
|
|
@@ -106,33 +111,120 @@ var loader = async ({ params }) => {
|
|
|
106
111
|
import { Children } from "react";
|
|
107
112
|
import { useLoaderData, useParams } from "react-router-dom";
|
|
108
113
|
|
|
109
|
-
// src/pages/customers/[id]/_components/customer-
|
|
110
|
-
import { Container, Heading,
|
|
114
|
+
// src/pages/customers/[id]/_components/customer-address-section/customer-address-section.tsx
|
|
115
|
+
import { Container, Heading, Text } from "@medusajs/ui";
|
|
111
116
|
import { useTranslation } from "react-i18next";
|
|
112
117
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
113
|
-
var
|
|
118
|
+
var getAddressLabel = (address) => {
|
|
119
|
+
if (address.address_name) {
|
|
120
|
+
return address.address_name;
|
|
121
|
+
}
|
|
122
|
+
const name = [address.first_name, address.last_name].filter(Boolean).join(" ");
|
|
123
|
+
return name || "Address";
|
|
124
|
+
};
|
|
125
|
+
var CustomerAddressSection = ({
|
|
114
126
|
customer
|
|
115
127
|
}) => {
|
|
116
128
|
const { t: t2 } = useTranslation();
|
|
129
|
+
const addresses = customer.addresses ?? [];
|
|
130
|
+
return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", "data-testid": "customer-address-section", children: [
|
|
131
|
+
/* @__PURE__ */ jsx(
|
|
132
|
+
"div",
|
|
133
|
+
{
|
|
134
|
+
className: "flex items-center justify-between px-6 py-4",
|
|
135
|
+
"data-testid": "customer-address-section-header",
|
|
136
|
+
children: /* @__PURE__ */ jsx(Heading, { level: "h2", "data-testid": "customer-address-section-heading", children: t2("customers.addresses.title") })
|
|
137
|
+
}
|
|
138
|
+
),
|
|
139
|
+
addresses.length === 0 ? /* @__PURE__ */ jsx("div", { "data-testid": "customer-address-section-empty", children: /* @__PURE__ */ jsx(
|
|
140
|
+
NoRecords,
|
|
141
|
+
{
|
|
142
|
+
className: "flex h-full flex-col overflow-hidden p-6",
|
|
143
|
+
icon: null,
|
|
144
|
+
title: t2("general.noRecordsTitle"),
|
|
145
|
+
message: t2("general.noRecordsMessage")
|
|
146
|
+
}
|
|
147
|
+
) }) : /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-y-2 p-3", children: addresses.map((address) => {
|
|
148
|
+
const country = getCountryByIso2(address.country_code)?.display_name ?? address.country_code?.toUpperCase();
|
|
149
|
+
const cityLine = [address.city, address.postal_code].filter(Boolean).join(", ");
|
|
150
|
+
return /* @__PURE__ */ jsxs(
|
|
151
|
+
"div",
|
|
152
|
+
{
|
|
153
|
+
className: "bg-ui-bg-subtle border-ui-border-base flex flex-col gap-y-1 rounded-lg border px-3 py-2",
|
|
154
|
+
"data-testid": `customer-address-section-address-${address.id}`,
|
|
155
|
+
children: [
|
|
156
|
+
/* @__PURE__ */ jsx(Text, { size: "small", weight: "plus", leading: "compact", children: getAddressLabel(address) }),
|
|
157
|
+
address.address_1 && /* @__PURE__ */ jsx(
|
|
158
|
+
Text,
|
|
159
|
+
{
|
|
160
|
+
size: "small",
|
|
161
|
+
leading: "compact",
|
|
162
|
+
className: "text-ui-fg-subtle",
|
|
163
|
+
children: address.address_1
|
|
164
|
+
}
|
|
165
|
+
),
|
|
166
|
+
address.address_2 && /* @__PURE__ */ jsx(
|
|
167
|
+
Text,
|
|
168
|
+
{
|
|
169
|
+
size: "small",
|
|
170
|
+
leading: "compact",
|
|
171
|
+
className: "text-ui-fg-subtle",
|
|
172
|
+
children: address.address_2
|
|
173
|
+
}
|
|
174
|
+
),
|
|
175
|
+
cityLine && /* @__PURE__ */ jsx(
|
|
176
|
+
Text,
|
|
177
|
+
{
|
|
178
|
+
size: "small",
|
|
179
|
+
leading: "compact",
|
|
180
|
+
className: "text-ui-fg-subtle",
|
|
181
|
+
children: cityLine
|
|
182
|
+
}
|
|
183
|
+
),
|
|
184
|
+
country && /* @__PURE__ */ jsx(
|
|
185
|
+
Text,
|
|
186
|
+
{
|
|
187
|
+
size: "small",
|
|
188
|
+
leading: "compact",
|
|
189
|
+
className: "text-ui-fg-subtle",
|
|
190
|
+
children: country
|
|
191
|
+
}
|
|
192
|
+
)
|
|
193
|
+
]
|
|
194
|
+
},
|
|
195
|
+
address.id
|
|
196
|
+
);
|
|
197
|
+
}) })
|
|
198
|
+
] });
|
|
199
|
+
};
|
|
200
|
+
|
|
201
|
+
// src/pages/customers/[id]/_components/customer-general-section/customer-general-section.tsx
|
|
202
|
+
import { Container as Container2, Heading as Heading2, StatusBadge, Text as Text2 } from "@medusajs/ui";
|
|
203
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
204
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
205
|
+
var CustomerGeneralSection = ({
|
|
206
|
+
customer
|
|
207
|
+
}) => {
|
|
208
|
+
const { t: t2 } = useTranslation2();
|
|
117
209
|
const name = [customer.first_name, customer.last_name].filter(Boolean).join(" ");
|
|
118
210
|
const statusColor = customer.has_account ? "green" : "orange";
|
|
119
211
|
const statusText = customer.has_account ? t2("customers.fields.registered") : t2("customers.fields.guest");
|
|
120
|
-
return /* @__PURE__ */
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
123
|
-
/* @__PURE__ */
|
|
212
|
+
return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", children: [
|
|
213
|
+
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
214
|
+
/* @__PURE__ */ jsx2(Heading2, { children: customer.email }),
|
|
215
|
+
/* @__PURE__ */ jsx2("div", { className: "flex items-center gap-x-2", children: /* @__PURE__ */ jsx2(StatusBadge, { color: statusColor, children: statusText }) })
|
|
124
216
|
] }),
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
/* @__PURE__ */
|
|
127
|
-
/* @__PURE__ */
|
|
217
|
+
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
218
|
+
/* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t2("fields.name") }),
|
|
219
|
+
/* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: name || "-" })
|
|
128
220
|
] }),
|
|
129
|
-
/* @__PURE__ */
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
/* @__PURE__ */
|
|
221
|
+
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
222
|
+
/* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t2("fields.company") }),
|
|
223
|
+
/* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: customer.company_name || "-" })
|
|
132
224
|
] }),
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
/* @__PURE__ */
|
|
225
|
+
/* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
|
|
226
|
+
/* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t2("fields.phone") }),
|
|
227
|
+
/* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: customer.phone || "-" })
|
|
136
228
|
] })
|
|
137
229
|
] });
|
|
138
230
|
};
|
|
@@ -141,8 +233,8 @@ var CustomerGeneralSection = ({
|
|
|
141
233
|
import {
|
|
142
234
|
Button,
|
|
143
235
|
Checkbox,
|
|
144
|
-
Container as
|
|
145
|
-
Heading as
|
|
236
|
+
Container as Container3,
|
|
237
|
+
Heading as Heading3,
|
|
146
238
|
toast,
|
|
147
239
|
usePrompt
|
|
148
240
|
} from "@medusajs/ui";
|
|
@@ -150,9 +242,9 @@ import { createColumnHelper } from "@tanstack/react-table";
|
|
|
150
242
|
import { t } from "i18next";
|
|
151
243
|
import { useMemo, useState } from "react";
|
|
152
244
|
import { PencilSquare, Trash } from "@medusajs/icons";
|
|
153
|
-
import { useTranslation as
|
|
245
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
154
246
|
import { Link } from "react-router-dom";
|
|
155
|
-
import { jsx as
|
|
247
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
156
248
|
var PAGE_SIZE = 10;
|
|
157
249
|
var PREFIX = "cusgr";
|
|
158
250
|
var CustomerGroupSection = ({
|
|
@@ -160,36 +252,23 @@ var CustomerGroupSection = ({
|
|
|
160
252
|
}) => {
|
|
161
253
|
const prompt = usePrompt();
|
|
162
254
|
const [rowSelection, setRowSelection] = useState({});
|
|
163
|
-
const { raw
|
|
255
|
+
const { raw } = useCustomerGroupTableQuery({
|
|
164
256
|
pageSize: PAGE_SIZE,
|
|
165
257
|
prefix: PREFIX
|
|
166
258
|
});
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
} = useCustomerGroups(
|
|
173
|
-
{
|
|
174
|
-
...searchParams,
|
|
175
|
-
fields: "+customers.id"
|
|
176
|
-
},
|
|
177
|
-
void 0,
|
|
178
|
-
{
|
|
179
|
-
created_at: searchParams.created_at,
|
|
180
|
-
updated_at: searchParams.updated_at,
|
|
181
|
-
sort: searchParams.order
|
|
182
|
-
}
|
|
183
|
-
);
|
|
184
|
-
const filteredCustomerGroups = customerGroups?.filter(
|
|
185
|
-
(cg) => customer.groups?.some((g) => g.id === cg.customer_group_id)
|
|
259
|
+
const flatCustomerGroups = customer.groups ?? [];
|
|
260
|
+
const groupIds = flatCustomerGroups.map((g) => g.id);
|
|
261
|
+
const { customer_groups: groupsWithCounts } = useCustomerGroups(
|
|
262
|
+
{ id: groupIds, fields: "id,customers.id", limit: groupIds.length || 1 },
|
|
263
|
+
{ enabled: groupIds.length > 0 }
|
|
186
264
|
);
|
|
187
|
-
const
|
|
188
|
-
|
|
189
|
-
|
|
265
|
+
const customerCountByGroup = {};
|
|
266
|
+
for (const g of groupsWithCounts ?? []) {
|
|
267
|
+
customerCountByGroup[g.id] = g.customers?.length ?? 0;
|
|
268
|
+
}
|
|
190
269
|
const { mutateAsync: batchCustomerCustomerGroups } = useBatchCustomerCustomerGroups(customer.id);
|
|
191
270
|
const filters = useCustomerGroupTableFilters();
|
|
192
|
-
const columns = useColumns(customer.id);
|
|
271
|
+
const columns = useColumns(customer.id, customerCountByGroup);
|
|
193
272
|
const { table } = useDataTable({
|
|
194
273
|
data: flatCustomerGroups ?? [],
|
|
195
274
|
columns,
|
|
@@ -228,27 +307,24 @@ var CustomerGroupSection = ({
|
|
|
228
307
|
})
|
|
229
308
|
);
|
|
230
309
|
},
|
|
231
|
-
onError: (
|
|
232
|
-
toast.error(
|
|
310
|
+
onError: (error) => {
|
|
311
|
+
toast.error(error.message);
|
|
233
312
|
}
|
|
234
313
|
}
|
|
235
314
|
);
|
|
236
315
|
};
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
/* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
242
|
-
/* @__PURE__ */ jsx2(Heading2, { level: "h2", children: t("customerGroups.domain") }),
|
|
243
|
-
/* @__PURE__ */ jsx2(Link, { to: `/customers/${customer.id}/add-customer-groups`, children: /* @__PURE__ */ jsx2(Button, { variant: "secondary", size: "small", children: t("general.add") }) })
|
|
316
|
+
return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", children: [
|
|
317
|
+
/* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
318
|
+
/* @__PURE__ */ jsx3(Heading3, { level: "h2", children: t("customerGroups.domain") }),
|
|
319
|
+
/* @__PURE__ */ jsx3(Link, { to: `/customers/${customer.id}/add-customer-groups`, children: /* @__PURE__ */ jsx3(Button, { variant: "secondary", size: "small", children: t("general.add") }) })
|
|
244
320
|
] }),
|
|
245
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ jsx3(
|
|
246
322
|
_DataTable,
|
|
247
323
|
{
|
|
248
324
|
table,
|
|
249
325
|
columns,
|
|
250
326
|
pageSize: PAGE_SIZE,
|
|
251
|
-
isLoading,
|
|
327
|
+
isLoading: false,
|
|
252
328
|
count: flatCustomerGroups?.length ?? 0,
|
|
253
329
|
prefix: PREFIX,
|
|
254
330
|
navigateTo: (row) => `/customer-groups/${row.original.id}`,
|
|
@@ -280,7 +356,7 @@ var CustomerGroupRowActions = ({
|
|
|
280
356
|
customerId
|
|
281
357
|
}) => {
|
|
282
358
|
const prompt = usePrompt();
|
|
283
|
-
const { t: t2 } =
|
|
359
|
+
const { t: t2 } = useTranslation3();
|
|
284
360
|
const { mutateAsync } = useRemoveCustomersFromGroup(group.id);
|
|
285
361
|
const onRemove = async () => {
|
|
286
362
|
const res = await prompt({
|
|
@@ -300,7 +376,7 @@ var CustomerGroupRowActions = ({
|
|
|
300
376
|
}
|
|
301
377
|
});
|
|
302
378
|
};
|
|
303
|
-
return /* @__PURE__ */
|
|
379
|
+
return /* @__PURE__ */ jsx3(
|
|
304
380
|
ActionMenu,
|
|
305
381
|
{
|
|
306
382
|
groups: [
|
|
@@ -308,13 +384,13 @@ var CustomerGroupRowActions = ({
|
|
|
308
384
|
actions: [
|
|
309
385
|
{
|
|
310
386
|
label: t2("actions.edit"),
|
|
311
|
-
icon: /* @__PURE__ */
|
|
387
|
+
icon: /* @__PURE__ */ jsx3(PencilSquare, {}),
|
|
312
388
|
to: `/customer-groups/${group.id}/edit`
|
|
313
389
|
},
|
|
314
390
|
{
|
|
315
391
|
label: t2("actions.remove"),
|
|
316
392
|
onClick: onRemove,
|
|
317
|
-
icon: /* @__PURE__ */
|
|
393
|
+
icon: /* @__PURE__ */ jsx3(Trash, {})
|
|
318
394
|
}
|
|
319
395
|
]
|
|
320
396
|
}
|
|
@@ -323,14 +399,14 @@ var CustomerGroupRowActions = ({
|
|
|
323
399
|
);
|
|
324
400
|
};
|
|
325
401
|
var columnHelper = createColumnHelper();
|
|
326
|
-
var useColumns = (customerId) => {
|
|
327
|
-
const { t: t2 } =
|
|
402
|
+
var useColumns = (customerId, customerCountByGroup = {}) => {
|
|
403
|
+
const { t: t2 } = useTranslation3();
|
|
328
404
|
return useMemo(
|
|
329
405
|
() => [
|
|
330
406
|
columnHelper.display({
|
|
331
407
|
id: "select",
|
|
332
408
|
header: ({ table }) => {
|
|
333
|
-
return /* @__PURE__ */
|
|
409
|
+
return /* @__PURE__ */ jsx3(
|
|
334
410
|
Checkbox,
|
|
335
411
|
{
|
|
336
412
|
checked: table.getIsSomePageRowsSelected() ? "indeterminate" : table.getIsAllPageRowsSelected(),
|
|
@@ -339,7 +415,7 @@ var useColumns = (customerId) => {
|
|
|
339
415
|
);
|
|
340
416
|
},
|
|
341
417
|
cell: ({ row }) => {
|
|
342
|
-
return /* @__PURE__ */
|
|
418
|
+
return /* @__PURE__ */ jsx3(
|
|
343
419
|
Checkbox,
|
|
344
420
|
{
|
|
345
421
|
checked: row.getIsSelected(),
|
|
@@ -352,14 +428,21 @@ var useColumns = (customerId) => {
|
|
|
352
428
|
}
|
|
353
429
|
}),
|
|
354
430
|
columnHelper.accessor("name", {
|
|
355
|
-
header: () => /* @__PURE__ */
|
|
431
|
+
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t2("fields.name") }),
|
|
356
432
|
cell: ({ row }) => {
|
|
357
|
-
return /* @__PURE__ */
|
|
433
|
+
return /* @__PURE__ */ jsx3(TextCell, { text: row.original?.name || "-" });
|
|
434
|
+
}
|
|
435
|
+
}),
|
|
436
|
+
columnHelper.display({
|
|
437
|
+
id: "customers",
|
|
438
|
+
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t2("customers.domain") }),
|
|
439
|
+
cell: ({ row }) => {
|
|
440
|
+
return /* @__PURE__ */ jsx3(TextCell, { text: `${customerCountByGroup[row.original.id] ?? 0}` });
|
|
358
441
|
}
|
|
359
442
|
}),
|
|
360
443
|
columnHelper.display({
|
|
361
444
|
id: "actions",
|
|
362
|
-
cell: ({ row }) => /* @__PURE__ */
|
|
445
|
+
cell: ({ row }) => /* @__PURE__ */ jsx3(
|
|
363
446
|
CustomerGroupRowActions,
|
|
364
447
|
{
|
|
365
448
|
group: row.original,
|
|
@@ -368,15 +451,15 @@ var useColumns = (customerId) => {
|
|
|
368
451
|
)
|
|
369
452
|
})
|
|
370
453
|
],
|
|
371
|
-
[customerId, t2]
|
|
454
|
+
[customerId, t2, customerCountByGroup]
|
|
372
455
|
);
|
|
373
456
|
};
|
|
374
457
|
|
|
375
458
|
// src/pages/customers/[id]/_components/customer-order-section/customer-order-section.tsx
|
|
376
|
-
import { Container as
|
|
459
|
+
import { Container as Container4, Heading as Heading4 } from "@medusajs/ui";
|
|
377
460
|
import { useMemo as useMemo2 } from "react";
|
|
378
|
-
import { useTranslation as
|
|
379
|
-
import { jsx as
|
|
461
|
+
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
462
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
380
463
|
var PREFIX2 = "cusord";
|
|
381
464
|
var PAGE_SIZE2 = 10;
|
|
382
465
|
var DEFAULT_RELATIONS = "*customer,*items,*sales_channel";
|
|
@@ -384,7 +467,7 @@ var DEFAULT_FIELDS = "id,status,display_id,created_at,updated_at,email,fulfillme
|
|
|
384
467
|
var CustomerOrderSection = ({
|
|
385
468
|
customer
|
|
386
469
|
}) => {
|
|
387
|
-
const { t: t2 } =
|
|
470
|
+
const { t: t2 } = useTranslation4();
|
|
388
471
|
const { searchParams, raw } = useOrderTableQuery({
|
|
389
472
|
pageSize: PAGE_SIZE2,
|
|
390
473
|
prefix: PREFIX2
|
|
@@ -412,9 +495,9 @@ var CustomerOrderSection = ({
|
|
|
412
495
|
if (isError) {
|
|
413
496
|
throw error;
|
|
414
497
|
}
|
|
415
|
-
return /* @__PURE__ */
|
|
416
|
-
/* @__PURE__ */
|
|
417
|
-
/* @__PURE__ */
|
|
498
|
+
return /* @__PURE__ */ jsxs4(Container4, { className: "divide-y p-0", children: [
|
|
499
|
+
/* @__PURE__ */ jsx4("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx4(Heading4, { level: "h2", children: t2("orders.domain") }) }),
|
|
500
|
+
/* @__PURE__ */ jsx4(
|
|
418
501
|
_DataTable,
|
|
419
502
|
{
|
|
420
503
|
columns,
|
|
@@ -453,7 +536,7 @@ var useColumns2 = () => {
|
|
|
453
536
|
};
|
|
454
537
|
|
|
455
538
|
// src/pages/customers/[id]/customer-detail-page.tsx
|
|
456
|
-
import { Fragment, jsx as
|
|
539
|
+
import { Fragment, jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
457
540
|
var Root = ({ children }) => {
|
|
458
541
|
const { id } = useParams();
|
|
459
542
|
const initialData = useLoaderData();
|
|
@@ -462,17 +545,26 @@ var Root = ({ children }) => {
|
|
|
462
545
|
{},
|
|
463
546
|
{ initialData }
|
|
464
547
|
);
|
|
465
|
-
if (isLoading || !customer)
|
|
548
|
+
if (isLoading || !customer) {
|
|
549
|
+
return /* @__PURE__ */ jsx5(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 1 });
|
|
550
|
+
}
|
|
466
551
|
if (isError) throw error;
|
|
467
|
-
return /* @__PURE__ */
|
|
468
|
-
/* @__PURE__ */
|
|
469
|
-
|
|
552
|
+
return /* @__PURE__ */ jsx5(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs5(TwoColumnPage, { data: customer, showJSON: true, hasOutlet: true, children: [
|
|
553
|
+
/* @__PURE__ */ jsxs5(TwoColumnPage.Main, { children: [
|
|
554
|
+
/* @__PURE__ */ jsx5(CustomerGeneralSection, { customer }),
|
|
555
|
+
/* @__PURE__ */ jsx5(CustomerOrderSection, { customer }),
|
|
556
|
+
/* @__PURE__ */ jsx5(CustomerGroupSection, { customer })
|
|
557
|
+
] }),
|
|
558
|
+
/* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx5(CustomerAddressSection, { customer }) })
|
|
470
559
|
] }) });
|
|
471
560
|
};
|
|
472
561
|
var CustomerDetailPage = Object.assign(Root, {
|
|
562
|
+
Main: TwoColumnPage.Main,
|
|
563
|
+
Sidebar: TwoColumnPage.Sidebar,
|
|
473
564
|
GeneralSection: CustomerGeneralSection,
|
|
474
565
|
OrderSection: CustomerOrderSection,
|
|
475
|
-
GroupSection: CustomerGroupSection
|
|
566
|
+
GroupSection: CustomerGroupSection,
|
|
567
|
+
AddressSection: CustomerAddressSection
|
|
476
568
|
});
|
|
477
569
|
export {
|
|
478
570
|
CustomerDetailPage,
|
|
@@ -3,67 +3,68 @@ import {
|
|
|
3
3
|
} from "./chunk-MWQQVKRU.js";
|
|
4
4
|
import {
|
|
5
5
|
useProductTableColumns
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-QJI4OET7.js";
|
|
7
|
+
import "./chunk-PFJFS3F4.js";
|
|
8
8
|
import {
|
|
9
9
|
useProductTableQuery
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MJCL3WID.js";
|
|
11
|
+
import "./chunk-FWPGOIFA.js";
|
|
11
12
|
import "./chunk-FQERBIVS.js";
|
|
12
13
|
import {
|
|
13
14
|
useProductTableFilters
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7ZPJGL4C.js";
|
|
15
16
|
import "./chunk-DB6ANJBO.js";
|
|
16
17
|
import "./chunk-PHOCVOZ5.js";
|
|
17
18
|
import {
|
|
18
19
|
_DataTable,
|
|
19
20
|
useDataTable
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WKRW5OPL.js";
|
|
21
22
|
import "./chunk-YN3FGNJM.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-KCHYLLVG.js";
|
|
23
24
|
import "./chunk-3EF54XFY.js";
|
|
24
25
|
import {
|
|
25
26
|
SingleColumnPage
|
|
26
27
|
} from "./chunk-YV6MK4PZ.js";
|
|
27
|
-
import "./chunk-LRD242C7.js";
|
|
28
|
-
import "./chunk-QHQWEERJ.js";
|
|
29
28
|
import "./chunk-THHRRYRS.js";
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-LRD242C7.js";
|
|
30
|
+
import "./chunk-6FLSBL4Q.js";
|
|
31
31
|
import "./chunk-WIYFXWRI.js";
|
|
32
32
|
import {
|
|
33
33
|
SingleColumnPageSkeleton
|
|
34
34
|
} from "./chunk-INNFZYX2.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-KZYRC3WR.js";
|
|
36
36
|
import "./chunk-F4OJN2F2.js";
|
|
37
37
|
import "./chunk-LRARA622.js";
|
|
38
38
|
import "./chunk-M6N4ISXL.js";
|
|
39
39
|
import "./chunk-S7EKBD2C.js";
|
|
40
|
-
import "./chunk-VXMOPVRH.js";
|
|
41
40
|
import {
|
|
42
41
|
productTypesQueryKeys,
|
|
43
42
|
useProductType
|
|
44
43
|
} from "./chunk-VV6IKGCN.js";
|
|
45
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-M3YUT5AY.js";
|
|
46
45
|
import "./chunk-BOZJOOGW.js";
|
|
47
|
-
import "./chunk-LWJF63JW.js";
|
|
48
|
-
import "./chunk-T6LHVNWO.js";
|
|
49
|
-
import "./chunk-4S6XGIC6.js";
|
|
50
|
-
import "./chunk-QT7YFHCA.js";
|
|
51
46
|
import "./chunk-IQWK723D.js";
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-4S6XGIC6.js";
|
|
48
|
+
import "./chunk-S23FD6FA.js";
|
|
49
|
+
import "./chunk-7FIPNQM2.js";
|
|
50
|
+
import "./chunk-LTQQRVZG.js";
|
|
54
51
|
import "./chunk-VXWN37PT.js";
|
|
55
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-247L47JD.js";
|
|
53
|
+
import "./chunk-POOTMH3K.js";
|
|
54
|
+
import "./chunk-VXMOPVRH.js";
|
|
56
55
|
import "./chunk-NBPMNUKZ.js";
|
|
57
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-4R5GESED.js";
|
|
57
|
+
import "./chunk-7RGUD6PI.js";
|
|
58
58
|
import "./chunk-3B34B2M2.js";
|
|
59
59
|
import {
|
|
60
60
|
ActionMenu
|
|
61
61
|
} from "./chunk-BDGZ4EQO.js";
|
|
62
62
|
import "./chunk-LAVHRER2.js";
|
|
63
|
+
import "./chunk-QHQWEERJ.js";
|
|
63
64
|
import "./chunk-Y7QKP6QU.js";
|
|
64
65
|
import {
|
|
65
66
|
useProducts
|
|
66
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-TSTUAL6N.js";
|
|
67
68
|
import "./chunk-A5DJIOHN.js";
|
|
68
69
|
import {
|
|
69
70
|
queryClient
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
usePromotionTableColumns,
|
|
9
9
|
usePromotionTableQuery
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-LRMWYKSF.js";
|
|
11
|
+
import "./chunk-N6MGVXXQ.js";
|
|
12
12
|
import "./chunk-JHIMVLB2.js";
|
|
13
13
|
import {
|
|
14
14
|
usePromotionTableFilters
|
|
@@ -20,20 +20,19 @@ import "./chunk-PHOCVOZ5.js";
|
|
|
20
20
|
import {
|
|
21
21
|
_DataTable,
|
|
22
22
|
useDataTable
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WKRW5OPL.js";
|
|
24
24
|
import "./chunk-YN3FGNJM.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-KCHYLLVG.js";
|
|
26
26
|
import "./chunk-3EF54XFY.js";
|
|
27
27
|
import {
|
|
28
28
|
currencies
|
|
29
29
|
} from "./chunk-IQPN4PZJ.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-ZZIJSTXN.js";
|
|
31
31
|
import {
|
|
32
32
|
TwoColumnPage
|
|
33
33
|
} from "./chunk-YV6MK4PZ.js";
|
|
34
|
-
import "./chunk-LRD242C7.js";
|
|
35
|
-
import "./chunk-QHQWEERJ.js";
|
|
36
34
|
import "./chunk-THHRRYRS.js";
|
|
35
|
+
import "./chunk-LRD242C7.js";
|
|
37
36
|
import {
|
|
38
37
|
TwoColumnPageSkeleton
|
|
39
38
|
} from "./chunk-INNFZYX2.js";
|
|
@@ -48,6 +47,7 @@ import {
|
|
|
48
47
|
ActionMenu
|
|
49
48
|
} from "./chunk-BDGZ4EQO.js";
|
|
50
49
|
import "./chunk-LAVHRER2.js";
|
|
50
|
+
import "./chunk-QHQWEERJ.js";
|
|
51
51
|
import "./chunk-Y7QKP6QU.js";
|
|
52
52
|
import {
|
|
53
53
|
queryClient
|