@mercurjs/vendor 2.2.0-canary.2 → 2.2.0-canary.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{[id]-KRLGIVLR.js → [id]-3JICOSAI.js} +133 -41
- package/dist/[id]-CR76L5TG.js +3102 -0
- package/dist/{[id]-7BAKUHUO.js → [id]-DDGHFRSB.js} +5 -5
- package/dist/{[id]-KVWYLDN3.js → [id]-E7DYRMMO.js} +162 -71
- package/dist/{[id]-4OBGG7OH.js → [id]-FIP4UMQ4.js} +197 -105
- package/dist/{[id]-3EC6HYXL.js → [id]-FZRXOJWL.js} +22 -21
- package/dist/{[id]-ZWWMJAKI.js → [id]-PD3ISUL5.js} +7 -7
- package/dist/{[id]-UUUQK22M.js → [id]-Q5AXQ5XO.js} +460 -581
- package/dist/{[id]-KJIQTFGE.js → [id]-VSNA6SV5.js} +15 -15
- package/dist/{[id]-Y2ISCLUD.js → [id]-XUKQKCDN.js} +3 -3
- package/dist/{[id]-K2CT7BXQ.js → [id]-YPCO3DJV.js} +1 -1
- package/dist/{[id]-LUFRJLAU.js → [id]-ZEFQ7FQQ.js} +36 -33
- package/dist/{[id]-COLO4TQJ.js → [id]-ZW7TBWDU.js} +24 -23
- package/dist/{[province_id]-H2QAPKVH.js → [province_id]-CHOO7ERP.js} +14 -14
- package/dist/{add-FIWTANZX.js → add-GYXNRUAE.js} +40 -37
- package/dist/{add-PBZQCIZQ.js → add-IC5R27X3.js} +95 -32
- package/dist/{add-customer-groups-RAHCP67U.js → add-customer-groups-KIGBZT5G.js} +20 -23
- package/dist/{add-products-N3V2MVLD.js → add-products-ALJVIFXU.js} +23 -22
- package/dist/{add-promotions-CSCAJZHV.js → add-promotions-EQ5MMQKG.js} +8 -8
- package/dist/{add-to-campaign-DLP7PSQB.js → add-to-campaign-C6JDNB6F.js} +4 -4
- package/dist/{address-7F5SN7PV.js → address-UKLDTSTP.js} +13 -13
- package/dist/{adjust-inventory-SZF4W7LR.js → adjust-inventory-5XPGE44Y.js} +2 -2
- package/dist/allocate-items-URVRAFPS.js +685 -0
- package/dist/{areas-7Y6BVS5A.js → areas-64VXOFYS.js} +6 -6
- package/dist/{attributes-MBZ76HVZ.js → attributes-YQNW5JBY.js} +2 -2
- package/dist/{breadcrumb-HND5FFWC.js → breadcrumb-26G7BS3Q.js} +3 -3
- package/dist/{breadcrumb-7PURSRTT.js → breadcrumb-2AYN2SV7.js} +12 -12
- package/dist/{breadcrumb-ZCG2RHIU.js → breadcrumb-4KKLMVC3.js} +12 -12
- package/dist/{breadcrumb-WRG4SITG.js → breadcrumb-4XSHX5RV.js} +13 -13
- package/dist/{breadcrumb-QV2IAX7N.js → breadcrumb-E5OF4L2J.js} +2 -2
- package/dist/breadcrumb-JC5FUQYF.js +28 -0
- package/dist/{breadcrumb-YBBYFQYG.js → breadcrumb-LBO2I4OJ.js} +1 -1
- package/dist/breadcrumb-PIDJ23EZ.js +13 -0
- package/dist/{breadcrumb-65SAGUUL.js → breadcrumb-RWYEU5JK.js} +3 -3
- package/dist/{breadcrumb-VWELWDB2.js → breadcrumb-VXKAO6GP.js} +1 -1
- package/dist/{breadcrumb-FLDHJRVY.js → breadcrumb-WMNG4P6C.js} +9 -8
- package/dist/{breadcrumb-EDPMEN2P.js → breadcrumb-XPQETVMM.js} +2 -2
- package/dist/{campaigns-L6ULR6KR.js → campaigns-4I2T6EDZ.js} +5 -5
- package/dist/{categories-FUZQKBXV.js → categories-3P2DRH5V.js} +10 -8
- package/dist/{chunk-EZ3JOAUS.js → chunk-22CIYLKO.js} +1 -1
- package/dist/{chunk-RZLN2Q6G.js → chunk-247L47JD.js} +1 -1
- package/dist/{chunk-SFQKKIHA.js → chunk-27WLUOI2.js} +1 -1
- package/dist/{chunk-M7KSRYRI.js → chunk-2ECD67FO.js} +2 -2
- package/dist/{chunk-36L54SQQ.js → chunk-2H4FGZ4U.js} +1 -1
- package/dist/{chunk-X2FVFUET.js → chunk-2NUZTTBU.js} +27 -8
- package/dist/chunk-2OY4NW7L.js +185 -0
- package/dist/{chunk-K4X324QP.js → chunk-36WXPGD2.js} +6 -5
- package/dist/{chunk-PXYDR7WQ.js → chunk-3BXCPHN6.js} +3 -2
- package/dist/chunk-3EDZQSKG.js +33 -0
- package/dist/{chunk-2DXNJURE.js → chunk-3L2DVCOC.js} +1 -1
- package/dist/chunk-42R54Z2X.js +8 -0
- package/dist/{chunk-CNMY5HVP.js → chunk-4EQIJMQT.js} +3 -3
- package/dist/{chunk-UAF2S447.js → chunk-4OIOYUQE.js} +3 -3
- package/dist/{chunk-UORPTGV2.js → chunk-4R5GESED.js} +10 -14
- package/dist/{chunk-WUPJADSO.js → chunk-4RFPRO2W.js} +2 -2
- package/dist/chunk-4YWKKCTT.js +32 -0
- package/dist/{chunk-XFQJU6FA.js → chunk-5QG6P6EU.js} +1 -1
- package/dist/{chunk-N4MVIBFM.js → chunk-5Y6RDTW2.js} +3 -3
- package/dist/{chunk-DZIXC7OE.js → chunk-6FLSBL4Q.js} +30 -85
- package/dist/{chunk-DVEKYLPV.js → chunk-6QS6IZC6.js} +1 -1
- package/dist/chunk-6ZGQ3SOR.js +127 -0
- package/dist/{chunk-NXNJQZCP.js → chunk-7FIPNQM2.js} +1 -1
- package/dist/{chunk-NSZQERLE.js → chunk-7GGWRJJF.js} +2 -2
- package/dist/{chunk-QS6RWIBL.js → chunk-7RGUD6PI.js} +34 -20
- package/dist/{chunk-5L2DCA4W.js → chunk-7ZPJGL4C.js} +57 -6
- package/dist/{chunk-KD7RYE6R.js → chunk-AG6KIAUD.js} +2 -2
- package/dist/{chunk-UCQKXXLD.js → chunk-AKKIZD2P.js} +32 -34
- package/dist/chunk-CHBURL76.js +438 -0
- package/dist/{chunk-PBD36EZJ.js → chunk-CI4YXVQF.js} +2 -2
- package/dist/{chunk-7LBY5JLV.js → chunk-DAV7WS53.js} +1 -1
- package/dist/{chunk-6BS2AVGJ.js → chunk-DNXMONCL.js} +6 -6
- package/dist/{chunk-TNVYTMBL.js → chunk-E4O5PARZ.js} +4 -4
- package/dist/{chunk-L7QKFC5N.js → chunk-E6W57UP3.js} +32 -122
- package/dist/chunk-EEBJYXWA.js +15 -0
- package/dist/chunk-FP6U6BPH.js +61 -0
- package/dist/{chunk-SGR4DMCW.js → chunk-FRYZRBLA.js} +1 -1
- package/dist/chunk-FWPGOIFA.js +22 -0
- package/dist/chunk-GL7F6NDU.js +30 -0
- package/dist/chunk-H7BVANDX.js +407 -0
- package/dist/{chunk-FDR22JMM.js → chunk-HFRHHT36.js} +8 -63
- package/dist/{chunk-FJUUGFXL.js → chunk-HOUDNM5M.js} +1 -1
- package/dist/{chunk-6Y53VZ3C.js → chunk-HZCSJLGH.js} +11 -11
- package/dist/chunk-I75SROQZ.js +315 -0
- package/dist/{chunk-JQV7CXEC.js → chunk-II3ACSV2.js} +17 -2
- package/dist/{chunk-DARJTN4I.js → chunk-IMJ62GAP.js} +10 -5
- package/dist/{chunk-PPLC4IKI.js → chunk-IV57G2CB.js} +14 -1
- package/dist/{chunk-7SLWXX6L.js → chunk-J434WDD3.js} +5 -6
- package/dist/chunk-J6XCRFBW.js +30 -0
- package/dist/{chunk-KAZ5BYTQ.js → chunk-KCHYLLVG.js} +6 -4
- package/dist/{chunk-YGRTRAWX.js → chunk-KDE4HKH2.js} +1 -0
- package/dist/{chunk-GXIAIITP.js → chunk-KZYRC3WR.js} +36 -39
- package/dist/chunk-L57USMYC.js +39 -0
- package/dist/chunk-LFX6WU4A.js +36 -0
- package/dist/{chunk-EROX26D4.js → chunk-LRMWYKSF.js} +1 -1
- package/dist/{chunk-LWJF63JW.js → chunk-LTQQRVZG.js} +89 -14
- package/dist/chunk-LYYM7H7H.js +59 -0
- package/dist/{chunk-NHFEY3EI.js → chunk-M3YUT5AY.js} +2 -2
- package/dist/{chunk-H6LZ77GX.js → chunk-MJCL3WID.js} +1 -1
- package/dist/{chunk-X4INVIWL.js → chunk-MZRZVLWD.js} +3 -3
- package/dist/{chunk-DDH7ULIQ.js → chunk-N6MGVXXQ.js} +1 -1
- package/dist/{chunk-QXLRABYH.js → chunk-O7VOGTLX.js} +1 -1
- package/dist/{chunk-35G3SZRN.js → chunk-P3SOE76R.js} +1 -1
- package/dist/{chunk-PZ44R4AS.js → chunk-P7Q5ZSZD.js} +1 -1
- package/dist/{chunk-5ATEALH7.js → chunk-PFJFS3F4.js} +1 -5
- package/dist/chunk-POOTMH3K.js +62 -0
- package/dist/{chunk-GGWUWT55.js → chunk-QJI4OET7.js} +23 -36
- package/dist/{chunk-NJMNYS7G.js → chunk-QS35HWC5.js} +1 -1
- package/dist/{chunk-RTBNJQOV.js → chunk-R4JLYNUA.js} +419 -538
- package/dist/{chunk-DIW4GRTI.js → chunk-RT3G3GEK.js} +47 -31
- package/dist/{chunk-QT7YFHCA.js → chunk-S23FD6FA.js} +12 -0
- package/dist/{chunk-U2ZFCAPX.js → chunk-SITRHMZZ.js} +11 -8
- package/dist/chunk-SPFLYPY6.js +6 -0
- package/dist/{chunk-EIUYXS7E.js → chunk-SZBERGA4.js} +1 -1
- package/dist/chunk-T6DSYOY5.js +173 -0
- package/dist/{chunk-4LVP635F.js → chunk-TKSKCYM3.js} +128 -126
- package/dist/{chunk-QNNJN4H6.js → chunk-TSTUAL6N.js} +59 -0
- package/dist/{chunk-LNM2D2I4.js → chunk-TZMNEN7A.js} +7 -6
- package/dist/chunk-UM7ZR3VU.js +14 -0
- package/dist/{chunk-X22KTLZ7.js → chunk-UO6IX5Y7.js} +1 -1
- package/dist/chunk-VCUUITW6.js +35 -0
- package/dist/{chunk-LQD232FW.js → chunk-WJ5EU3KW.js} +1 -1
- package/dist/{chunk-AIF2KTEE.js → chunk-WKRW5OPL.js} +12 -2
- package/dist/{chunk-6YA3C4NB.js → chunk-XBKWFLJG.js} +4 -13
- package/dist/{chunk-WBHFU3MG.js → chunk-XJYQ4SW5.js} +2 -2
- package/dist/chunk-XQUF3WIS.js +159 -0
- package/dist/chunk-YBF45CX5.js +23 -0
- package/dist/{chunk-AVOIZO63.js → chunk-YQZBAP3S.js} +4 -2
- package/dist/chunk-ZHFFTT3I.js +17 -0
- package/dist/{chunk-TODJFRLH.js → chunk-ZHR77OQI.js} +2 -2
- package/dist/chunk-ZUHIKMQL.js +353 -0
- package/dist/{chunk-44RQ5PTN.js → chunk-ZZIJSTXN.js} +225 -90
- package/dist/{collections-YCAAFGSW.js → collections-7M7O23NO.js} +28 -26
- package/dist/{configuration-UOSNP45I.js → configuration-5IDQRYJQ.js} +4 -4
- package/dist/{configuration-C4IGBNXH.js → configuration-TXRAYMI4.js} +1 -1
- package/dist/{create-BJ4OO6LS.js → create-2N73Y6FO.js} +14 -14
- package/dist/{create-R7K3ECN6.js → create-3MUVY3UY.js} +1 -1
- package/dist/{create-SFU3W3ZH.js → create-6DRXGPYA.js} +1 -1
- package/dist/{create-XAD5NMSJ.js → create-6KM5AZCG.js} +20 -20
- package/dist/{create-YDDBH4VQ.js → create-A6CPQMMH.js} +27 -26
- package/dist/create-B4EWCX7X.js +1798 -0
- package/dist/{create-YBF4YGWG.js → create-BHSMHOFN.js} +1 -1
- package/dist/{create-XVHOCZHJ.js → create-BVUZWMET.js} +1 -1
- package/dist/create-CJEZCYN6.js +1179 -0
- package/dist/create-DAVMJNC2.js +1931 -0
- package/dist/{create-35MYQPVM.js → create-E4HTVPP7.js} +17 -17
- package/dist/{create-JDGM5KXE.js → create-G4TF2M7G.js} +88 -42
- package/dist/{create-UQNYMVBM.js → create-LOP7AF5N.js} +6 -6
- package/dist/{create-UPYB65PD.js → create-MKFDE32U.js} +1 -1
- package/dist/{create-B5ZXTK3K.js → create-NR7ULWQS.js} +37 -34
- package/dist/{create-HI5UI2EZ.js → create-SJSLOXOW.js} +31 -26
- package/dist/{create-GB3ZA4LH.js → create-SYI6DVKM.js} +4 -4
- package/dist/{create-ORXYT74H.js → create-ZAGMLDR4.js} +13 -13
- package/dist/create-ZP4LSJYQ.js +216 -0
- package/dist/customer-group-add-customers-GTM556QA.js +251 -0
- package/dist/customer-group-create-OYHAXX2T.js +140 -0
- package/dist/customer-group-detail-KW62TLWA.js +58 -0
- package/dist/customer-group-edit-WH7O4N4L.js +137 -0
- package/dist/customer-groups-UJFZBZ2B.js +276 -0
- package/dist/{customers-ETXVNM3G.js → customers-4WKIFPUU.js} +7 -7
- package/dist/{edit-UGEC27HP.js → edit-3EN2H52W.js} +39 -36
- package/dist/{edit-ZMERG3L7.js → edit-3VNT35DW.js} +1 -1
- package/dist/{edit-ORXS3A2Y.js → edit-6DUTTLEV.js} +1 -1
- package/dist/edit-6K3NSVI7.js +103 -0
- package/dist/{edit-REDDBLTA.js → edit-6Z6RIJRZ.js} +4 -4
- package/dist/{edit-2Q7TRUTL.js → edit-CVSO5CX7.js} +14 -14
- package/dist/{edit-ZAHCMF5U.js → edit-FQDSESVI.js} +1 -1
- package/dist/edit-GZXLWSTL.js +176 -0
- package/dist/edit-LLNKSZR4.js +871 -0
- package/dist/{edit-O4JLGKQR.js → edit-MKVDAUA5.js} +1 -1
- package/dist/{edit-ZCXUG42Q.js → edit-NDUSRTWY.js} +13 -13
- package/dist/{edit-522DG3BY.js → edit-RBREBAQQ.js} +1 -1
- package/dist/{edit-Q3UQIOLS.js → edit-RQHOHZR6.js} +1 -1
- package/dist/{edit-VKT62KHG.js → edit-SAB6F3ZG.js} +36 -15
- package/dist/{edit-C4OCKQVU.js → edit-SM2GHVKW.js} +1 -1
- package/dist/{edit-KAKVPHZZ.js → edit-UVY3TEHD.js} +1 -1
- package/dist/{edit-SGUY2CCK.js → edit-V7WLYLOQ.js} +16 -16
- package/dist/{edit-FKXIQ6ZI.js → edit-XMZSLH4O.js} +16 -16
- package/dist/{edit-L5ZZLMAY.js → edit-YTS77SJS.js} +43 -32
- package/dist/{edit-budget-L3CCEWNF.js → edit-budget-4JMGEPNF.js} +1 -1
- package/dist/{edit-inventory-item-6B7ITDGD.js → edit-inventory-item-G22KFCYY.js} +2 -2
- package/dist/{edit-inventory-item-attributes-Y7MQZLXI.js → edit-inventory-item-attributes-RJSM4MEI.js} +2 -2
- package/dist/edit-price-K6K2FTMF.js +196 -0
- package/dist/edit-stock-6TUSJD5R.js +229 -0
- package/dist/fulfillment-VEF6HG6D.js +641 -0
- package/dist/{fulfillment-providers-DQAU43JZ.js → fulfillment-providers-VKBWFH45.js} +24 -24
- package/dist/index.css +107 -10
- package/dist/index.js +302 -183
- package/dist/{inventory-KAUVPMPZ.js → inventory-OCIGVZ4V.js} +6 -6
- package/dist/{offer-inventory-batch-page-WKCWNDNK.js → inventory-T7BRSFKY.js} +16 -16
- package/dist/{invite-CI2P4GF6.js → invite-J6L3Q7MQ.js} +12 -12
- package/dist/{invite-Q6EYDZVQ.js → invite-VWNUFOFI.js} +21 -21
- package/dist/loader-2EQ4ROTD.js +34 -0
- package/dist/loader-HYUC2XZX.js +33 -0
- package/dist/{login-KY342RMK.js → login-WOZMCEFY.js} +12 -12
- package/dist/{manage-locations-WNHEBS3A.js → manage-locations-R3ASMF5B.js} +1 -1
- package/dist/{media-B6ME2WXY.js → media-KIIJ6WSZ.js} +18 -17
- package/dist/media-RJHUSBXL.js +315 -0
- package/dist/{metadata-WR4RFXO5.js → metadata-45S6CFKY.js} +14 -14
- package/dist/{metadata-2CMH4I6U.js → metadata-FCATUWIZ.js} +14 -14
- package/dist/{metadata-GWI6R4ES.js → metadata-L5GBBXC4.js} +14 -14
- package/dist/{metadata-TLDUF5KV.js → metadata-R4ZRMAO6.js} +14 -14
- package/dist/{metadata-NUXUC2JA.js → metadata-RM5VVAOS.js} +14 -14
- package/dist/{offer-create-page-4Z6L63BU.js → offer-create-page-DV4JCIL2.js} +190 -195
- package/dist/offer-detail-page-TIBYGQBS.js +590 -0
- package/dist/offer-variant-detail-page-ORH56HZI.js +421 -0
- package/dist/offers-VA63KV3C.js +54 -0
- package/dist/{onboarding-43LQQQGQ.js → onboarding-L5RRKT65.js} +12 -12
- package/dist/{orders-ZV4D6L2V.js → orders-KKJD6EWZ.js} +27 -27
- package/dist/{organization-ZTQGRJWS.js → organization-6YPU2RQP.js} +53 -89
- package/dist/{organize-K6QMAMEN.js → organize-LR7FWK2J.js} +3 -3
- package/dist/{organize-HNJUHEEG.js → organize-SUG4SGVR.js} +3 -3
- package/dist/pages/index.d.ts +40 -16
- package/dist/pages/index.js +73 -73
- package/dist/{payment-details-64US5XWD.js → payment-details-UVEIHQA5.js} +13 -13
- package/dist/{payouts-UXJDTXDL.js → payouts-D4A4CILI.js} +8 -8
- package/dist/{price-lists-KBPUVSZI.js → price-lists-WJFXFGEV.js} +10 -10
- package/dist/{pricing-DF6C5XK4.js → pricing-QEVR2Z4K.js} +19 -19
- package/dist/{offer-pricing-edit-page-4TYGGSOE.js → pricing-XJUUCYL5.js} +24 -18
- package/dist/{product-tags-6MZB4W5R.js → product-tags-MW2JMRFY.js} +36 -33
- package/dist/{product-types-UUHBV4IZ.js → product-types-XXU7X42K.js} +6 -6
- package/dist/product-variant-detail-XZWTSH3H.js +369 -0
- package/dist/{product-variant-edit-YYNPHE4L.js → product-variant-edit-A2KO3E7B.js} +41 -44
- package/dist/{products-MZBU5MEV.js → products-TZS2OPK3.js} +37 -37
- package/dist/{products-IWKTGZS6.js → products-XSXEUKIB.js} +23 -22
- package/dist/{professional-details-5T2VS6MM.js → professional-details-ELUEJPOH.js} +13 -13
- package/dist/{profile-6XGHAT7H.js → profile-EDVGIBW6.js} +16 -16
- package/dist/{promotions-O7U4BTK6.js → promotions-JYO23G6N.js} +8 -8
- package/dist/receive-47SMYKIJ.js +578 -0
- package/dist/refund-IU7B77FV.js +268 -0
- package/dist/{register-N6WOSMLA.js → register-SR2SYX4Q.js} +14 -14
- package/dist/{reset-password-EICPAY2N.js → reset-password-N22YRMR3.js} +1 -1
- package/dist/{return-reasons-IX3LIOCU.js → return-reasons-POR5YPTF.js} +18 -15
- package/dist/{sales-channels-JW3QUYR7.js → sales-channels-ETB6QRRY.js} +8 -8
- package/dist/{sales-channels-B6FULRWI.js → sales-channels-YXRRARDL.js} +7 -7
- package/dist/{settings-MV53ZZ53.js → settings-MHBYIZ2I.js} +38 -35
- package/dist/shipment-ZX6PQ32L.js +241 -0
- package/dist/shipping-W4SPR3JO.js +122 -0
- package/dist/{shipping-profile-Y4SNEPZX.js → shipping-profile-L5CFXVEE.js} +4 -8
- package/dist/{shipping-profiles-2NWKCEJK.js → shipping-profiles-QBJUWXVQ.js} +17 -17
- package/dist/{stock-7CSVEJJU.js → stock-FW4DOVFV.js} +14 -14
- package/dist/{store-X23G3JCJ.js → store-NWWBV2UO.js} +75 -144
- package/dist/{store-closure-P5PD2RSV.js → store-closure-O3CBSOJD.js} +19 -14
- package/dist/{store-select-TREPDS3G.js → store-select-C7GI5MKK.js} +13 -13
- package/dist/{tax-regions-YXZW7UVX.js → tax-regions-2JCIB4T7.js} +2 -2
- package/dist/{team-SPP5OY5W.js → team-MY24J5WO.js} +20 -20
- package/package.json +2 -2
- package/dist/[id]-LTNOHLGE.js +0 -1219
- package/dist/allocate-items-SDFS5GYN.js +0 -533
- package/dist/chunk-432S4FGR.js +0 -0
- package/dist/chunk-AIZM66CG.js +0 -66
- package/dist/chunk-BDZOSMAX.js +0 -23
- package/dist/chunk-CFRWIQIZ.js +0 -43
- package/dist/chunk-GKZHBXZK.js +0 -426
- package/dist/chunk-RXZFEFNV.js +0 -73
- package/dist/chunk-T6LHVNWO.js +0 -27
- package/dist/chunk-WLT7K7K7.js +0 -63
- package/dist/create-FCKGCZSM.js +0 -210
- package/dist/edit-GQNIINRR.js +0 -192
- package/dist/fulfillment-75Z4H23W.js +0 -559
- package/dist/loader-FBB5OQRT.js +0 -31
- package/dist/metadata-5BPOBBU2.js +0 -45
- package/dist/offer-detail-page-6MAHNNIO.js +0 -488
- package/dist/offer-edit-page-DYQFU6JU.js +0 -151
- package/dist/offers-ZG6OTDZ2.js +0 -32
- package/dist/product-variant-detail-RVWEYVPC.js +0 -220
- package/dist/shipment-Q33QBMXX.js +0 -176
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getStylizedAmount
|
|
3
|
+
} from "./chunk-3BXCPHN6.js";
|
|
4
|
+
import {
|
|
5
|
+
PlaceholderCell
|
|
6
|
+
} from "./chunk-PHOCVOZ5.js";
|
|
7
|
+
|
|
8
|
+
// src/components/table/table-cells/common/money-amount-cell/money-amount-cell.tsx
|
|
9
|
+
import { clx } from "@medusajs/ui";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
|
+
var MoneyAmountCell = ({
|
|
12
|
+
currencyCode,
|
|
13
|
+
amount,
|
|
14
|
+
align = "left",
|
|
15
|
+
className
|
|
16
|
+
}) => {
|
|
17
|
+
if (typeof amount === "undefined" || amount === null) {
|
|
18
|
+
return /* @__PURE__ */ jsx(PlaceholderCell, {});
|
|
19
|
+
}
|
|
20
|
+
const formatted = getStylizedAmount(amount, currencyCode);
|
|
21
|
+
return /* @__PURE__ */ jsx(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
className: clx(
|
|
25
|
+
"flex h-full w-full items-center overflow-hidden",
|
|
26
|
+
{
|
|
27
|
+
"justify-start text-left": align === "left",
|
|
28
|
+
"justify-end text-right": align === "right"
|
|
29
|
+
},
|
|
30
|
+
className
|
|
31
|
+
),
|
|
32
|
+
children: /* @__PURE__ */ jsx("span", { className: "truncate", children: formatted })
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
MoneyAmountCell
|
|
39
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// src/hooks/table/filters/use-order-table-filters.tsx
|
|
2
|
+
import { useTranslation } from "react-i18next";
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
var useOrderTableFilters = () => {
|
|
5
|
+
const { t } = useTranslation();
|
|
6
|
+
return useMemo(() => {
|
|
7
|
+
const filters = [];
|
|
8
|
+
const requestFilter = {
|
|
9
|
+
key: "request",
|
|
10
|
+
label: t("orders.filters.request.label"),
|
|
11
|
+
type: "select",
|
|
12
|
+
multiple: true,
|
|
13
|
+
options: [
|
|
14
|
+
{ label: t("orders.filters.request.edit"), value: "edit" },
|
|
15
|
+
{ label: t("orders.filters.request.return"), value: "return" },
|
|
16
|
+
{ label: t("orders.filters.request.exchange"), value: "exchange" },
|
|
17
|
+
{ label: t("orders.filters.request.claim"), value: "claim" }
|
|
18
|
+
]
|
|
19
|
+
};
|
|
20
|
+
filters.push(requestFilter);
|
|
21
|
+
const dateFilters = [
|
|
22
|
+
{ label: t("fields.createdAt"), key: "created_at" },
|
|
23
|
+
{ label: t("fields.updatedAt"), key: "updated_at" }
|
|
24
|
+
].map((f) => ({
|
|
25
|
+
key: f.key,
|
|
26
|
+
label: f.label,
|
|
27
|
+
type: "date"
|
|
28
|
+
}));
|
|
29
|
+
filters.push(...dateFilters);
|
|
30
|
+
return filters;
|
|
31
|
+
}, [t]);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
useOrderTableFilters
|
|
36
|
+
};
|
|
@@ -23,6 +23,14 @@ var CUSTOMER_GROUPS_QUERY_KEY = "customer_groups";
|
|
|
23
23
|
var customerGroupsQueryKeys = queryKeysFactory(
|
|
24
24
|
CUSTOMER_GROUPS_QUERY_KEY
|
|
25
25
|
);
|
|
26
|
+
var useCustomerGroup = (id, query, options) => {
|
|
27
|
+
const { data, ...rest } = useQuery({
|
|
28
|
+
queryKey: customerGroupsQueryKeys.detail(id, query),
|
|
29
|
+
queryFn: async () => sdk.vendor.customerGroups.$id.query({ $id: id, ...query }),
|
|
30
|
+
...options
|
|
31
|
+
});
|
|
32
|
+
return { ...data, ...rest };
|
|
33
|
+
};
|
|
26
34
|
var useCustomerGroups = (query, options) => {
|
|
27
35
|
const { data, ...rest } = useQuery({
|
|
28
36
|
queryFn: () => sdk.vendor.customerGroups.query({ ...query }),
|
|
@@ -31,6 +39,81 @@ var useCustomerGroups = (query, options) => {
|
|
|
31
39
|
});
|
|
32
40
|
return { ...data, ...rest };
|
|
33
41
|
};
|
|
42
|
+
var useCreateCustomerGroup = (options) => {
|
|
43
|
+
return useMutation({
|
|
44
|
+
mutationFn: (payload) => sdk.vendor.customerGroups.mutate(payload),
|
|
45
|
+
onSuccess: (data, variables, context) => {
|
|
46
|
+
queryClient.invalidateQueries({
|
|
47
|
+
queryKey: customerGroupsQueryKeys.lists()
|
|
48
|
+
});
|
|
49
|
+
options?.onSuccess?.(data, variables, context);
|
|
50
|
+
},
|
|
51
|
+
...options
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
var useUpdateCustomerGroup = (id, options) => {
|
|
55
|
+
return useMutation({
|
|
56
|
+
mutationFn: (payload) => sdk.vendor.customerGroups.$id.mutate({ $id: id, ...payload }),
|
|
57
|
+
onSuccess: (data, variables, context) => {
|
|
58
|
+
queryClient.invalidateQueries({
|
|
59
|
+
queryKey: customerGroupsQueryKeys.lists()
|
|
60
|
+
});
|
|
61
|
+
queryClient.invalidateQueries({
|
|
62
|
+
queryKey: customerGroupsQueryKeys.detail(id)
|
|
63
|
+
});
|
|
64
|
+
options?.onSuccess?.(data, variables, context);
|
|
65
|
+
},
|
|
66
|
+
...options
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
var useDeleteCustomerGroup = (id, options) => {
|
|
70
|
+
return useMutation({
|
|
71
|
+
mutationFn: () => sdk.vendor.customerGroups.$id.delete({ $id: id }),
|
|
72
|
+
onSuccess: (data, variables, context) => {
|
|
73
|
+
queryClient.invalidateQueries({
|
|
74
|
+
queryKey: customerGroupsQueryKeys.lists()
|
|
75
|
+
});
|
|
76
|
+
queryClient.invalidateQueries({
|
|
77
|
+
queryKey: customerGroupsQueryKeys.detail(id)
|
|
78
|
+
});
|
|
79
|
+
options?.onSuccess?.(data, variables, context);
|
|
80
|
+
},
|
|
81
|
+
...options
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
var useDeleteCustomerGroupLazy = (options) => {
|
|
85
|
+
return useMutation({
|
|
86
|
+
mutationFn: ({ id }) => sdk.vendor.customerGroups.$id.delete({ $id: id }),
|
|
87
|
+
onSuccess: (data, variables, context) => {
|
|
88
|
+
queryClient.invalidateQueries({
|
|
89
|
+
queryKey: customerGroupsQueryKeys.lists()
|
|
90
|
+
});
|
|
91
|
+
queryClient.invalidateQueries({
|
|
92
|
+
queryKey: customerGroupsQueryKeys.detail(variables.id)
|
|
93
|
+
});
|
|
94
|
+
options?.onSuccess?.(data, variables, context);
|
|
95
|
+
},
|
|
96
|
+
...options
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
var useAddCustomersToGroup = (id, options) => {
|
|
100
|
+
return useMutation({
|
|
101
|
+
mutationFn: (payload) => sdk.vendor.customerGroups.$id.customers.mutate({ $id: id, add: payload }),
|
|
102
|
+
onSuccess: (data, variables, context) => {
|
|
103
|
+
queryClient.invalidateQueries({
|
|
104
|
+
queryKey: customerGroupsQueryKeys.lists()
|
|
105
|
+
});
|
|
106
|
+
queryClient.invalidateQueries({
|
|
107
|
+
queryKey: customerGroupsQueryKeys.detail(id)
|
|
108
|
+
});
|
|
109
|
+
queryClient.invalidateQueries({
|
|
110
|
+
queryKey: customersQueryKeys.lists()
|
|
111
|
+
});
|
|
112
|
+
options?.onSuccess?.(data, variables, context);
|
|
113
|
+
},
|
|
114
|
+
...options
|
|
115
|
+
});
|
|
116
|
+
};
|
|
34
117
|
var useRemoveCustomersFromGroup = (id, options) => {
|
|
35
118
|
return useMutation({
|
|
36
119
|
mutationFn: (payload) => sdk.vendor.customerGroups.$id.customers.mutate({ $id: id, remove: payload }),
|
|
@@ -72,19 +155,6 @@ var useCustomers = (query, options) => {
|
|
|
72
155
|
});
|
|
73
156
|
return { ...data, ...rest };
|
|
74
157
|
};
|
|
75
|
-
var useUpdateCustomer = (id, options) => {
|
|
76
|
-
return useMutation2({
|
|
77
|
-
mutationFn: (payload) => sdk.vendor.customers.$id.mutate({ $id: id, ...payload }),
|
|
78
|
-
onSuccess: (data, variables, context) => {
|
|
79
|
-
queryClient.invalidateQueries({ queryKey: customersQueryKeys.lists() });
|
|
80
|
-
queryClient.invalidateQueries({
|
|
81
|
-
queryKey: customersQueryKeys.detail(id)
|
|
82
|
-
});
|
|
83
|
-
options?.onSuccess?.(data, variables, context);
|
|
84
|
-
},
|
|
85
|
-
...options
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
158
|
var useBatchCustomerCustomerGroups = (id, options) => {
|
|
89
159
|
return useMutation2({
|
|
90
160
|
mutationFn: (payload) => sdk.vendor.customers.$id.customerGroups.mutate({ $id: id, ...payload }),
|
|
@@ -110,9 +180,14 @@ var useBatchCustomerCustomerGroups = (id, options) => {
|
|
|
110
180
|
export {
|
|
111
181
|
useCustomer,
|
|
112
182
|
useCustomers,
|
|
113
|
-
useUpdateCustomer,
|
|
114
183
|
useBatchCustomerCustomerGroups,
|
|
115
184
|
customerGroupsQueryKeys,
|
|
185
|
+
useCustomerGroup,
|
|
116
186
|
useCustomerGroups,
|
|
187
|
+
useCreateCustomerGroup,
|
|
188
|
+
useUpdateCustomerGroup,
|
|
189
|
+
useDeleteCustomerGroup,
|
|
190
|
+
useDeleteCustomerGroupLazy,
|
|
191
|
+
useAddCustomersToGroup,
|
|
117
192
|
useRemoveCustomersFromGroup
|
|
118
193
|
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// src/pages/categories/common/components/category-image-fields/types.ts
|
|
2
|
+
var getCategoryGallery = (images) => (images ?? []).filter((image) => !image.type).sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0));
|
|
3
|
+
var getCategoryIcon = (images) => (images ?? []).find((image) => image.type === "icon") ?? null;
|
|
4
|
+
|
|
5
|
+
// src/pages/categories/common/utils.ts
|
|
6
|
+
function getIsActiveProps(isActive, t) {
|
|
7
|
+
switch (isActive) {
|
|
8
|
+
case true:
|
|
9
|
+
return {
|
|
10
|
+
label: t("categories.fields.status.active"),
|
|
11
|
+
color: "green"
|
|
12
|
+
};
|
|
13
|
+
case false:
|
|
14
|
+
return {
|
|
15
|
+
label: t("categories.fields.status.inactive"),
|
|
16
|
+
color: "red"
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function getIsInternalProps(isInternal, t) {
|
|
21
|
+
switch (isInternal) {
|
|
22
|
+
case true:
|
|
23
|
+
return {
|
|
24
|
+
label: t("categories.fields.visibility.internal"),
|
|
25
|
+
color: "blue"
|
|
26
|
+
};
|
|
27
|
+
case false:
|
|
28
|
+
return {
|
|
29
|
+
label: t("categories.fields.visibility.public"),
|
|
30
|
+
color: "green"
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
function getCategoryPath(category) {
|
|
35
|
+
if (!category) {
|
|
36
|
+
return [];
|
|
37
|
+
}
|
|
38
|
+
const path = category.parent_category ? getCategoryPath(category.parent_category) : [];
|
|
39
|
+
path.push({ id: category.id, name: category.name });
|
|
40
|
+
return path;
|
|
41
|
+
}
|
|
42
|
+
function getCategoryChildren(category) {
|
|
43
|
+
if (!category || !category.category_children) {
|
|
44
|
+
return [];
|
|
45
|
+
}
|
|
46
|
+
return category.category_children.map((child) => ({
|
|
47
|
+
id: child.id,
|
|
48
|
+
name: child.name
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
getCategoryGallery,
|
|
54
|
+
getCategoryIcon,
|
|
55
|
+
getIsActiveProps,
|
|
56
|
+
getIsInternalProps,
|
|
57
|
+
getCategoryPath,
|
|
58
|
+
getCategoryChildren
|
|
59
|
+
};
|
|
@@ -52,7 +52,7 @@ var useProductTableQuery = ({
|
|
|
52
52
|
category_id: category_id?.split(","),
|
|
53
53
|
collection_id: collection_id?.split(","),
|
|
54
54
|
is_giftcard: is_giftcard ? is_giftcard === "true" : void 0,
|
|
55
|
-
order: order || "
|
|
55
|
+
order: order || "title",
|
|
56
56
|
tag_id: tag_id ? tag_id.split(",") : void 0,
|
|
57
57
|
type_id: type_id?.split(","),
|
|
58
58
|
status: status?.split(","),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getLocaleAmount
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3BXCPHN6.js";
|
|
4
4
|
import {
|
|
5
5
|
DataGrid,
|
|
6
6
|
DataGridCellContainer,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
useCombinedRefs,
|
|
10
10
|
useDataGridCell,
|
|
11
11
|
useDataGridCellError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TKSKCYM3.js";
|
|
13
13
|
import {
|
|
14
14
|
currencies
|
|
15
15
|
} from "./chunk-IQPN4PZJ.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-SMQT3ZNO.js";
|
|
19
19
|
import {
|
|
20
20
|
KeyboundForm
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-SITRHMZZ.js";
|
|
22
22
|
import {
|
|
23
23
|
StackedFocusModal
|
|
24
24
|
} from "./chunk-GDWBOQI5.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-PHOCVOZ5.js";
|
|
7
7
|
import {
|
|
8
8
|
require_dist
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-6FLSBL4Q.js";
|
|
10
10
|
import {
|
|
11
11
|
__toESM
|
|
12
12
|
} from "./chunk-NBMM2TZK.js";
|
|
@@ -47,10 +47,6 @@ var ProductStatusCell = ({ status }) => {
|
|
|
47
47
|
[import_types.ProductStatus.DRAFT]: ["grey", t("products.productStatus.draft")],
|
|
48
48
|
[import_types.ProductStatus.PROPOSED]: ["orange", t("products.productStatus.proposed")],
|
|
49
49
|
[import_types.ProductStatus.PUBLISHED]: ["green", t("products.productStatus.published")],
|
|
50
|
-
[import_types.ProductStatus.REQUIRES_ACTION]: [
|
|
51
|
-
"blue",
|
|
52
|
-
t("products.productStatus.requires_action")
|
|
53
|
-
],
|
|
54
50
|
[import_types.ProductStatus.REJECTED]: ["red", t("products.productStatus.rejected")]
|
|
55
51
|
}[status];
|
|
56
52
|
return /* @__PURE__ */ jsx2(StatusCell, { color, children: text });
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ordersQueryKeys
|
|
3
|
+
} from "./chunk-7RGUD6PI.js";
|
|
4
|
+
import {
|
|
5
|
+
queryClient
|
|
6
|
+
} from "./chunk-RHKRREUU.js";
|
|
7
|
+
import {
|
|
8
|
+
queryKeysFactory
|
|
9
|
+
} from "./chunk-ZA2KFUFR.js";
|
|
10
|
+
import {
|
|
11
|
+
sdk
|
|
12
|
+
} from "./chunk-RIN4CBRB.js";
|
|
13
|
+
|
|
14
|
+
// src/hooks/api/payments.tsx
|
|
15
|
+
import {
|
|
16
|
+
useMutation,
|
|
17
|
+
useQuery
|
|
18
|
+
} from "@tanstack/react-query";
|
|
19
|
+
var PAYMENT_QUERY_KEY = "payment";
|
|
20
|
+
var paymentQueryKeys = queryKeysFactory(PAYMENT_QUERY_KEY);
|
|
21
|
+
var PAYMENT_PROVIDERS_QUERY_KEY = "payment_providers";
|
|
22
|
+
var paymentProvidersQueryKeys = queryKeysFactory(
|
|
23
|
+
PAYMENT_PROVIDERS_QUERY_KEY
|
|
24
|
+
);
|
|
25
|
+
var useRefundPayment = (orderId, paymentId, options) => {
|
|
26
|
+
return useMutation({
|
|
27
|
+
mutationFn: (payload) => sdk.vendor.payments.$id.refund.mutate({ $id: paymentId, ...payload }),
|
|
28
|
+
onSuccess: (data, variables, context) => {
|
|
29
|
+
queryClient.invalidateQueries({
|
|
30
|
+
queryKey: ordersQueryKeys.details()
|
|
31
|
+
});
|
|
32
|
+
queryClient.invalidateQueries({
|
|
33
|
+
queryKey: ordersQueryKeys.preview(orderId)
|
|
34
|
+
});
|
|
35
|
+
options?.onSuccess?.(data, variables, context);
|
|
36
|
+
},
|
|
37
|
+
...options
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// src/hooks/api/refund-reasons.tsx
|
|
42
|
+
import {
|
|
43
|
+
useMutation as useMutation2,
|
|
44
|
+
useQuery as useQuery2
|
|
45
|
+
} from "@tanstack/react-query";
|
|
46
|
+
var REFUND_REASONS_QUERY_KEY = "refund_reasons";
|
|
47
|
+
var refundReasonsQueryKeys = queryKeysFactory(
|
|
48
|
+
REFUND_REASONS_QUERY_KEY
|
|
49
|
+
);
|
|
50
|
+
var useRefundReasons = (query, options) => {
|
|
51
|
+
const { data, ...rest } = useQuery2({
|
|
52
|
+
queryFn: () => sdk.vendor.refundReasons.query({ ...query }),
|
|
53
|
+
queryKey: refundReasonsQueryKeys.list(query),
|
|
54
|
+
...options
|
|
55
|
+
});
|
|
56
|
+
return { ...data, ...rest };
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
useRefundPayment,
|
|
61
|
+
useRefundReasons
|
|
62
|
+
};
|
|
@@ -3,13 +3,14 @@ import {
|
|
|
3
3
|
CategoryHeader,
|
|
4
4
|
ProductStatusCell,
|
|
5
5
|
ProductStatusHeader
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PFJFS3F4.js";
|
|
7
|
+
import {
|
|
8
|
+
ProductCell,
|
|
9
|
+
ProductHeader
|
|
10
|
+
} from "./chunk-FWPGOIFA.js";
|
|
7
11
|
import {
|
|
8
12
|
PlaceholderCell
|
|
9
13
|
} from "./chunk-PHOCVOZ5.js";
|
|
10
|
-
import {
|
|
11
|
-
Thumbnail
|
|
12
|
-
} from "./chunk-WIYFXWRI.js";
|
|
13
14
|
|
|
14
15
|
// src/hooks/table/columns/use-product-table-columns.tsx
|
|
15
16
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
@@ -29,61 +30,47 @@ var CollectionHeader = () => {
|
|
|
29
30
|
return /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx("span", { children: t("fields.collection") }) });
|
|
30
31
|
};
|
|
31
32
|
|
|
32
|
-
// src/components/table/table-cells/product/product-cell/product-cell.tsx
|
|
33
|
-
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
34
|
-
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
35
|
-
var ProductCell = ({ product }) => {
|
|
36
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full max-w-[250px] items-center gap-x-3 overflow-hidden", children: [
|
|
37
|
-
/* @__PURE__ */ jsx2("div", { className: "w-fit flex-shrink-0", children: /* @__PURE__ */ jsx2(Thumbnail, { src: product.thumbnail }) }),
|
|
38
|
-
/* @__PURE__ */ jsx2("span", { title: product.title, className: "truncate", children: product.title })
|
|
39
|
-
] });
|
|
40
|
-
};
|
|
41
|
-
var ProductHeader = () => {
|
|
42
|
-
const { t } = useTranslation2();
|
|
43
|
-
return /* @__PURE__ */ jsx2("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx2("span", { children: t("fields.product") }) });
|
|
44
|
-
};
|
|
45
|
-
|
|
46
33
|
// src/components/table/table-cells/product/variant-cell/variant-cell.tsx
|
|
47
|
-
import { useTranslation as
|
|
48
|
-
import { jsx as
|
|
34
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
35
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
49
36
|
var VariantCell = ({ variants }) => {
|
|
50
|
-
const { t } =
|
|
37
|
+
const { t } = useTranslation2();
|
|
51
38
|
if (!variants || !variants.length) {
|
|
52
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
53
40
|
}
|
|
54
|
-
return /* @__PURE__ */
|
|
41
|
+
return /* @__PURE__ */ jsx2("div", { className: "flex h-full w-full items-center overflow-hidden", children: /* @__PURE__ */ jsx2("span", { className: "truncate", children: t("products.variantCount", { count: variants.length }) }) });
|
|
55
42
|
};
|
|
56
43
|
var VariantHeader = () => {
|
|
57
|
-
const { t } =
|
|
58
|
-
return /* @__PURE__ */
|
|
44
|
+
const { t } = useTranslation2();
|
|
45
|
+
return /* @__PURE__ */ jsx2("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx2("span", { children: t("fields.variants") }) });
|
|
59
46
|
};
|
|
60
47
|
|
|
61
48
|
// src/hooks/table/columns/use-product-table-columns.tsx
|
|
62
|
-
import { jsx as
|
|
49
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
63
50
|
var columnHelper = createColumnHelper();
|
|
64
51
|
var useProductTableColumns = () => {
|
|
65
52
|
return useMemo(
|
|
66
53
|
() => [
|
|
67
54
|
columnHelper.display({
|
|
68
55
|
id: "product",
|
|
69
|
-
header: () => /* @__PURE__ */
|
|
70
|
-
cell: ({ row }) => /* @__PURE__ */
|
|
56
|
+
header: () => /* @__PURE__ */ jsx3(ProductHeader, {}),
|
|
57
|
+
cell: ({ row }) => /* @__PURE__ */ jsx3(ProductCell, { product: row.original })
|
|
71
58
|
}),
|
|
72
59
|
columnHelper.accessor("categories", {
|
|
73
|
-
header: () => /* @__PURE__ */
|
|
74
|
-
cell: ({ row }) => /* @__PURE__ */
|
|
60
|
+
header: () => /* @__PURE__ */ jsx3(CategoryHeader, {}),
|
|
61
|
+
cell: ({ row }) => /* @__PURE__ */ jsx3(CategoryCell, { categories: row.original.categories })
|
|
75
62
|
}),
|
|
76
63
|
columnHelper.accessor("collection", {
|
|
77
|
-
header: () => /* @__PURE__ */
|
|
78
|
-
cell: ({ row }) => /* @__PURE__ */
|
|
64
|
+
header: () => /* @__PURE__ */ jsx3(CollectionHeader, {}),
|
|
65
|
+
cell: ({ row }) => /* @__PURE__ */ jsx3(CollectionCell, { collection: row.original.collection })
|
|
79
66
|
}),
|
|
80
67
|
columnHelper.accessor("variants", {
|
|
81
|
-
header: () => /* @__PURE__ */
|
|
82
|
-
cell: ({ row }) => /* @__PURE__ */
|
|
68
|
+
header: () => /* @__PURE__ */ jsx3(VariantHeader, {}),
|
|
69
|
+
cell: ({ row }) => /* @__PURE__ */ jsx3(VariantCell, { variants: row.original.variants })
|
|
83
70
|
}),
|
|
84
71
|
columnHelper.accessor("status", {
|
|
85
|
-
header: () => /* @__PURE__ */
|
|
86
|
-
cell: ({ row }) => /* @__PURE__ */
|
|
72
|
+
header: () => /* @__PURE__ */ jsx3(ProductStatusHeader, {}),
|
|
73
|
+
cell: ({ row }) => /* @__PURE__ */ jsx3(ProductStatusCell, { status: row.original.status })
|
|
87
74
|
})
|
|
88
75
|
],
|
|
89
76
|
[]
|