@mercurjs/vendor 2.1.6 → 2.2.0-canary.11
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]-A55T2ORL.js +3066 -0
- package/dist/[id]-B4YZTANM.js +1571 -0
- package/dist/{[id]-UTKO3VG4.js → [id]-EKLRGVBA.js} +10 -10
- package/dist/{[id]-TO6KT3ZE.js → [id]-FE5GYYVZ.js} +28 -25
- package/dist/{[id]-4VCL3MMM.js → [id]-GBT6VB4S.js} +29 -23
- package/dist/{[id]-3G5G7ZFV.js → [id]-GC3ZYPK4.js} +25 -22
- package/dist/{[id]-6PXEWRG7.js → [id]-J6BZG5PU.js} +14 -14
- package/dist/{[id]-B3LHVQM5.js → [id]-QOEO3JOV.js} +29 -23
- package/dist/{[id]-H3C3ZSC6.js → [id]-QQU5HVFU.js} +29 -23
- package/dist/{[id]-PDGHF5J2.js → [id]-SHAJTJNZ.js} +43 -36
- package/dist/{[id]-X4DDKOMQ.js → [id]-T5ECVBPF.js} +30 -24
- package/dist/{[id]-T2ROPEGY.js → [id]-U5KZEQDR.js} +7 -7
- package/dist/{[id]-7RUAH3TI.js → [id]-YPCO3DJV.js} +5 -5
- package/dist/{[id]-Y7GAMNC5.js → [id]-ZCMSBEVM.js} +4 -4
- package/dist/{[location_id]-D55RQOXT.js → [location_id]-NUBXDDJC.js} +9 -9
- package/dist/{[province_id]-OFH2ZOFQ.js → [province_id]-6GUA4PV5.js} +23 -20
- package/dist/{add-C6OX5C54.js → add-NTRYWOJF.js} +42 -35
- package/dist/add-RU3WL4YB.js +428 -0
- package/dist/{add-customer-groups-PJRJUWS2.js → add-customer-groups-U5RZWW4B.js} +19 -16
- package/dist/{add-products-INOLNPO6.js → add-products-Q4MMDQKT.js} +26 -20
- package/dist/{add-promotions-AHDOP52Q.js → add-promotions-3AYXQXTP.js} +8 -8
- package/dist/{add-to-campaign-HL6NGRR4.js → add-to-campaign-QKYQCSR2.js} +4 -4
- package/dist/{address-KRENKSLP.js → address-77Y3AOQ3.js} +19 -16
- package/dist/{adjust-inventory-H4EUP7J3.js → adjust-inventory-AFJLWF5R.js} +2 -2
- package/dist/{allocate-items-SUCUZU4D.js → allocate-items-TCM5A55Y.js} +141 -126
- package/dist/{areas-UUMZDXLX.js → areas-XUC5V5UO.js} +8 -8
- package/dist/{attributes-CALEHJJG.js → attributes-SZP2MM5L.js} +3 -3
- package/dist/{breadcrumb-KQSFIXQ4.js → breadcrumb-2XA2WOK7.js} +1 -1
- package/dist/{breadcrumb-IG7VZGW2.js → breadcrumb-5NP23D6X.js} +15 -12
- package/dist/{breadcrumb-TW5JEOYS.js → breadcrumb-EVZIOB2G.js} +14 -11
- package/dist/{breadcrumb-OIGGCB3L.js → breadcrumb-FPWBT76A.js} +8 -2
- package/dist/{breadcrumb-BS7Y5OKF.js → breadcrumb-IK6XCQOQ.js} +2 -2
- package/dist/{breadcrumb-M5Z5WA6I.js → breadcrumb-KTARIL65.js} +2 -2
- package/dist/{breadcrumb-VNNZ3TTW.js → breadcrumb-PBR27GGX.js} +3 -3
- package/dist/breadcrumb-THJ2HPRB.js +26 -0
- package/dist/{breadcrumb-6W2VP3OZ.js → breadcrumb-TNJSGX4T.js} +15 -12
- package/dist/{campaigns-HS6MIO7X.js → campaigns-JAQTSA4Z.js} +6 -6
- package/dist/{categories-PKWR3FM3.js → categories-T4QJYX4R.js} +8 -8
- package/dist/{chunk-4URLUCTD.js → chunk-25E4KME5.js} +3 -3
- package/dist/chunk-27KRIXMQ.js +71 -0
- package/dist/{chunk-SFQKKIHA.js → chunk-27WLUOI2.js} +1 -1
- package/dist/{chunk-ZYOXKUKZ.js → chunk-2QTNCGKX.js} +1 -1
- package/dist/{chunk-5UD4P6YL.js → chunk-2USXZSTK.js} +4 -4
- package/dist/{chunk-PXYDR7WQ.js → chunk-3BXCPHN6.js} +3 -2
- package/dist/{chunk-VQ5EKDA3.js → chunk-3PMM6AMP.js} +3 -3
- package/dist/{chunk-J6BRLL3F.js → chunk-463CNCJC.js} +3 -3
- package/dist/{chunk-Y2QI7KWS.js → chunk-4LVP635F.js} +408 -664
- package/dist/{chunk-UL4O5M4S.js → chunk-4S6XGIC6.js} +1 -18
- package/dist/{chunk-RUE5BPC2.js → chunk-5QI3NDJG.js} +1 -1
- package/dist/{chunk-PPLC4IKI.js → chunk-5T6UWTRU.js} +10 -5
- package/dist/{chunk-WITQNQXN.js → chunk-6FUIK3PX.js} +4 -4
- package/dist/{chunk-HGQTL7NX.js → chunk-6K6EQOJF.js} +3 -3
- package/dist/{chunk-KAZ5BYTQ.js → chunk-6OUPJNYO.js} +5 -3
- package/dist/{chunk-PEKANQ3T.js → chunk-6UZERVBI.js} +2 -2
- package/dist/{chunk-RTAWYMQP.js → chunk-7CMRFP5Q.js} +2 -2
- package/dist/{chunk-I2IKYOZX.js → chunk-7IPCLQ5V.js} +19 -19
- package/dist/chunk-ADGVQVHP.js +101 -0
- package/dist/{chunk-IZ5RG5XI.js → chunk-AJLGY3LQ.js} +1 -21
- package/dist/chunk-BER45EYD.js +82 -0
- package/dist/{chunk-PCMNEUMV.js → chunk-BXRNZS5K.js} +1 -1
- package/dist/chunk-CFRWIQIZ.js +43 -0
- package/dist/{chunk-RL7SFZOF.js → chunk-DDJQRV6E.js} +1 -1
- package/dist/{chunk-D2MA5TAP.js → chunk-DO4F5FIO.js} +2 -2
- package/dist/{chunk-X4FLOQ45.js → chunk-DQKK43PR.js} +3 -3
- package/dist/{chunk-6WY5X4PE.js → chunk-E6W57UP3.js} +35 -125
- package/dist/chunk-FP6U6BPH.js +61 -0
- package/dist/chunk-FWPGOIFA.js +22 -0
- package/dist/{chunk-BLVJAKBA.js → chunk-FWS4YJ4B.js} +1 -1
- package/dist/chunk-GAE6TKOR.js +811 -0
- package/dist/{chunk-3CK6OINO.js → chunk-GDWBOQI5.js} +3 -5
- package/dist/{chunk-PDQSPKG5.js → chunk-GN6KB75Z.js} +1 -1
- package/dist/chunk-HDEOZN2Q.js +60 -0
- package/dist/chunk-IBEUR3J7.js +173 -0
- package/dist/chunk-J6XCRFBW.js +30 -0
- package/dist/{chunk-ZEVYT6IX.js → chunk-JAUZ73XE.js} +151 -266
- package/dist/{chunk-CNLP35S7.js → chunk-K6LOZ4S3.js} +54 -18
- package/dist/{chunk-JQP7MOFH.js → chunk-KIFSQOM2.js} +2 -2
- package/dist/{chunk-DARJTN4I.js → chunk-L4KBTV57.js} +9 -2
- package/dist/chunk-L57USMYC.js +39 -0
- package/dist/chunk-LARLBYU6.js +127 -0
- package/dist/chunk-LDZCCWJB.js +518 -0
- package/dist/chunk-LEWA4BPH.js +18 -0
- package/dist/chunk-LFX6WU4A.js +36 -0
- package/dist/{chunk-ITI54CII.js → chunk-LKUW5SV4.js} +6 -6
- package/dist/{chunk-LPOAVK6Y.js → chunk-LQD232FW.js} +47 -12
- package/dist/{chunk-4MFMCZEJ.js → chunk-MJCL3WID.js} +2 -2
- package/dist/{chunk-32RYSB2V.js → chunk-NBKWY6XN.js} +2 -2
- package/dist/{chunk-GYV6SKY7.js → chunk-O7VOGTLX.js} +4 -6
- package/dist/{chunk-KQGVSLUI.js → chunk-OYKUQXJX.js} +1926 -957
- package/dist/{chunk-CYTNBXWF.js → chunk-OZ44ATGE.js} +8 -8
- package/dist/{chunk-7Q5SDEK7.js → chunk-PAVZ6FPK.js} +7 -7
- package/dist/{chunk-2RHAI7WK.js → chunk-QLBIBLOY.js} +2 -2
- package/dist/chunk-RXV7INUV.js +426 -0
- package/dist/chunk-S23FD6FA.js +210 -0
- package/dist/{chunk-NYDJTWRL.js → chunk-SGR4DMCW.js} +4 -4
- package/dist/{chunk-OXXL4WQU.js → chunk-SPOHNK4X.js} +6 -6
- package/dist/{chunk-AIF2KTEE.js → chunk-SSUUT5LK.js} +12 -2
- package/dist/{chunk-QX45GVAL.js → chunk-SZBERGA4.js} +8 -8
- package/dist/{chunk-6SBMVLJ2.js → chunk-T5MJWWDX.js} +2 -2
- package/dist/chunk-T6LHVNWO.js +27 -0
- package/dist/chunk-TBYCZRZ7.js +248 -0
- package/dist/chunk-TF6V3TFG.js +438 -0
- package/dist/chunk-TW324MAT.js +185 -0
- package/dist/{chunk-4ZGFODSC.js → chunk-TYESCFYW.js} +1 -1
- package/dist/chunk-U5G3AVED.js +64 -0
- package/dist/chunk-U6PBLMXD.js +14 -0
- package/dist/{chunk-GZMXTNDN.js → chunk-UCYSCKZV.js} +1432 -1380
- package/dist/{chunk-P3ZTO6T2.js → chunk-UFFVRF4V.js} +2 -2
- package/dist/chunk-UM7ZR3VU.js +14 -0
- package/dist/chunk-UORPTGV2.js +114 -0
- package/dist/{chunk-5M3SL4UZ.js → chunk-VCOQ7WQ2.js} +30 -106
- package/dist/chunk-VCUUITW6.js +35 -0
- package/dist/{chunk-PTW7JNAP.js → chunk-VDHW6H5F.js} +5 -5
- package/dist/chunk-VZUA5SRD.js +62 -0
- package/dist/{chunk-DKQ4XMSN.js → chunk-X4GWB6AT.js} +6 -6
- package/dist/{chunk-6YA3C4NB.js → chunk-XCIMOIX6.js} +3 -12
- package/dist/chunk-XP23ZVQT.js +2183 -0
- package/dist/{chunk-WBI7FEGI.js → chunk-Y2MQ5EMD.js} +29 -24
- package/dist/chunk-YBF45CX5.js +23 -0
- package/dist/{chunk-N7OVXN72.js → chunk-YGJCJBPM.js} +1 -1
- package/dist/{chunk-WNVEMFIK.js → chunk-YHIJCI4U.js} +3 -3
- package/dist/{chunk-WFE6CT6M.js → chunk-YQZBAP3S.js} +22 -76
- package/dist/chunk-ZHFFTT3I.js +17 -0
- package/dist/{collections-DJZI2RM2.js → collections-URH2TCWJ.js} +28 -24
- package/dist/{configuration-GN3TO77H.js → configuration-7IYZ6GNP.js} +3 -3
- package/dist/{configuration-RHPIO2QT.js → configuration-C4IGBNXH.js} +1 -1
- package/dist/{create-7S7CZWEN.js → create-5PSOIHIT.js} +4 -4
- package/dist/create-7R6CZU53.js +215 -0
- package/dist/{create-3EK5CNNX.js → create-A7B3MLJX.js} +41 -34
- package/dist/create-F5R76QML.js +1178 -0
- package/dist/create-FKRYB7ZS.js +1784 -0
- package/dist/create-GGACODDN.js +1914 -0
- package/dist/{create-YO55Z3YD.js → create-HVZYJ3YC.js} +35 -38
- package/dist/{create-IDVCZHIX.js → create-JF2OUZQA.js} +16 -13
- package/dist/{create-3ZVXEPX5.js → create-JGYG5SBM.js} +29 -23
- package/dist/{create-G4T2PAJH.js → create-MS6KKFSV.js} +21 -18
- package/dist/{create-OCFPLNNY.js → create-MZYXMGKP.js} +6 -6
- package/dist/{create-HKJVSFB7.js → create-O35JRZEF.js} +25 -22
- package/dist/{create-OGLPDVOI.js → create-ODOFJF5N.js} +40 -37
- package/dist/{create-GHM7OTCR.js → create-R7K3ECN6.js} +1 -1
- package/dist/{create-D6EW3EWC.js → create-SFU3W3ZH.js} +1 -1
- package/dist/create-TKXH5KQY.js +239 -0
- package/dist/{create-33TRLASX.js → create-UPYB65PD.js} +1 -1
- package/dist/{create-KGYL7FBM.js → create-XVHOCZHJ.js} +1 -1
- package/dist/{create-4AE3VTWN.js → create-YBF4YGWG.js} +2 -2
- package/dist/{customers-6ZLE65UX.js → customers-SOLJ2KQQ.js} +5 -5
- package/dist/{edit-QBISX7D3.js → edit-2R5QCPTB.js} +16 -13
- package/dist/{edit-IR6V2IDN.js → edit-3E4ZO7HT.js} +21 -18
- package/dist/{edit-ZSOI56BQ.js → edit-4G5D7TES.js} +52 -40
- package/dist/{edit-B5B3XKDM.js → edit-522DG3BY.js} +1 -1
- package/dist/{edit-B75KK5ZX.js → edit-5CROKEJE.js} +41 -34
- package/dist/{edit-ATXE6CM5.js → edit-C4OCKQVU.js} +1 -1
- package/dist/{edit-7HTH2UJF.js → edit-FXNXTVIW.js} +3 -3
- package/dist/{edit-RNT555GP.js → edit-G2E5SNGU.js} +15 -12
- package/dist/{edit-4HZHLYI3.js → edit-GQNIINRR.js} +1 -1
- package/dist/{edit-2KRJIPRK.js → edit-HTLLYECP.js} +21 -18
- package/dist/{edit-LRRJTHV2.js → edit-KAKVPHZZ.js} +1 -1
- package/dist/{edit-GIJXLMC3.js → edit-O4JLGKQR.js} +2 -2
- package/dist/{edit-FNDDSSMT.js → edit-OKU6FMHJ.js} +60 -9
- package/dist/{edit-5CJZRHAA.js → edit-ORXS3A2Y.js} +1 -1
- package/dist/{edit-FC64DWB2.js → edit-Q3UQIOLS.js} +1 -1
- package/dist/edit-VVLITC2E.js +910 -0
- package/dist/edit-XSICGAVO.js +176 -0
- package/dist/{edit-7GVP6SRA.js → edit-ZAHCMF5U.js} +1 -1
- package/dist/{edit-MYSWY6W4.js → edit-ZMERG3L7.js} +1 -1
- package/dist/{edit-budget-J27CSEZH.js → edit-budget-L3CCEWNF.js} +1 -1
- package/dist/{edit-inventory-item-US77M2FF.js → edit-inventory-item-ZKXXL3QK.js} +2 -2
- package/dist/{edit-inventory-item-attributes-UGAE2NAZ.js → edit-inventory-item-attributes-GSKUMORD.js} +3 -3
- package/dist/{fulfillment-DCS67LTK.js → fulfillment-76IVZ266.js} +32 -22
- package/dist/{fulfillment-providers-GM5PO6N3.js → fulfillment-providers-G2L6LEVO.js} +24 -20
- package/dist/index.css +104 -65
- package/dist/index.d.ts +3 -10
- package/dist/index.js +549 -456
- package/dist/{inventory-OPZ2FSEE.js → inventory-WSFLTA6Z.js} +7 -7
- package/dist/{invite-KEJLNXEZ.js → invite-2673PU4I.js} +17 -13
- package/dist/{invite-CQCKEQW2.js → invite-HRXZ5YBP.js} +28 -24
- package/dist/loader-VDYPD3RI.js +31 -0
- package/dist/{locations-ZVPTQCQY.js → locations-INS6FTMJ.js} +4 -4
- package/dist/{login-OUHRNNXA.js → login-TWUBU6I6.js} +14 -11
- package/dist/{manage-locations-YUKEFCBJ.js → manage-locations-XHH5DVIR.js} +2 -2
- package/dist/{media-4KYFHB5V.js → media-Z4N5MKFG.js} +42 -9
- package/dist/{metadata-AWUKZ25V.js → metadata-5BPOBBU2.js} +3 -3
- package/dist/{metadata-OCE6A3JE.js → metadata-D6M66NQK.js} +17 -14
- package/dist/{metadata-PYY4IB7K.js → metadata-NIDIBXJT.js} +17 -14
- package/dist/{metadata-XP3ZYW2M.js → metadata-Q74OJWUD.js} +18 -15
- package/dist/{metadata-NYYL26MQ.js → metadata-REQIFWWH.js} +18 -15
- package/dist/{metadata-G7KZXVNE.js → metadata-YVHJPDLD.js} +17 -14
- package/dist/offer-create-page-E4FLSDJQ.js +743 -0
- package/dist/offer-detail-page-6SIBQTLP.js +492 -0
- package/dist/offer-edit-page-3MO566RP.js +151 -0
- package/dist/offer-inventory-batch-page-BD6PMDLW.js +290 -0
- package/dist/offer-pricing-edit-page-4TINK42V.js +199 -0
- package/dist/offers-GVN5LCK6.js +32 -0
- package/dist/{onboarding-WXZHW62K.js → onboarding-MK2RIFD4.js} +24 -21
- package/dist/{orders-LWJ472VM.js → orders-TVQDR4OJ.js} +30 -26
- package/dist/organization-XO3T2K2X.js +340 -0
- package/dist/{organize-RFOMQCBG.js → organize-5XRZWD5C.js} +4 -4
- package/dist/{organize-OVKJ3HZO.js → organize-Z7JTTDH4.js} +4 -4
- package/dist/pages/index.d.ts +439 -758
- package/dist/pages/index.js +85 -78
- package/dist/{payment-details-UVXYCTUK.js → payment-details-CFTX3QDL.js} +19 -16
- package/dist/{payouts-TR7K5I37.js → payouts-7Q7D4FET.js} +8 -8
- package/dist/{price-lists-S2WNELFZ.js → price-lists-6TFLA53G.js} +9 -9
- package/dist/{pricing-UF27DAXA.js → pricing-ECXV6K7G.js} +41 -37
- package/dist/{product-tags-2CKH2M6D.js → product-tags-5O7ZG6SA.js} +40 -33
- package/dist/{product-types-FX43JEO2.js → product-types-PKUEL7X5.js} +6 -6
- package/dist/product-variant-detail-PUWOMVHQ.js +210 -0
- package/dist/{product-variant-edit-P3DSIFE3.js → product-variant-edit-WZNO4CQX.js} +134 -66
- package/dist/{products-H5EMRJYS.js → products-BM3IIH5P.js} +27 -21
- package/dist/{products-2LHGS7X3.js → products-CPTRYL2Z.js} +44 -45
- package/dist/{professional-details-HYKTH44B.js → professional-details-ED4HNYXY.js} +18 -15
- package/dist/{profile-PB27WIRW.js → profile-6TGCNNUU.js} +21 -18
- package/dist/{promotions-5EYPGHJP.js → promotions-4336KI7E.js} +9 -9
- package/dist/receive-224KLULH.js +578 -0
- package/dist/refund-IGMSXQNX.js +268 -0
- package/dist/{register-X45K325N.js → register-OZ5CRANZ.js} +18 -15
- package/dist/{reset-password-GTWLBOFK.js → reset-password-5UHZU4D3.js} +1 -1
- package/dist/{return-reasons-LOKYRGMI.js → return-reasons-QJRA2ZX6.js} +21 -17
- package/dist/{sales-channels-Y4LRP7JC.js → sales-channels-CZDU7VTE.js} +7 -6
- package/dist/{sales-channels-7R2IY3KG.js → sales-channels-U55MUDQP.js} +7 -6
- package/dist/{settings-2XDLFYMS.js → settings-2GCQQTO6.js} +47 -40
- package/dist/shipment-HWQHMX2L.js +242 -0
- package/dist/{shipping-profile-R3NABPQF.js → shipping-profile-ZP7M6VSS.js} +2 -2
- package/dist/{shipping-profiles-QVKNFLCW.js → shipping-profiles-C5WBXWZ2.js} +21 -18
- package/dist/{stock-5RXNUPUT.js → stock-MQA7PRO6.js} +21 -18
- package/dist/{store-MPYOWMZT.js → store-5ZHZR4JI.js} +84 -149
- package/dist/{store-closure-DNMCHUXD.js → store-closure-H5WHV3LA.js} +24 -16
- package/dist/{store-select-UTPJ7DM7.js → store-select-PZS556FB.js} +19 -16
- package/dist/{tax-regions-UD6P5FVC.js → tax-regions-HDLBFZVG.js} +6 -6
- package/dist/{team-IMS66MVP.js → team-CLKJCZNH.js} +29 -26
- package/dist/types-CtCEtTE6.d.ts +16 -0
- package/package.json +5 -5
- package/dist/[id]-BYP37PU4.js +0 -1314
- package/dist/[id]-INOFZHL7.js +0 -1219
- package/dist/add-KRAGFFBJ.js +0 -158
- package/dist/bulk-edit-3SMBLIOA.js +0 -244
- package/dist/chunk-47SXTGLN.js +0 -397
- package/dist/chunk-4KX6CBJ4.js +0 -178
- package/dist/chunk-DLNNTQRY.js +0 -217
- package/dist/chunk-FX4V5JCF.js +0 -37
- package/dist/chunk-GC33DBKG.js +0 -143
- package/dist/chunk-LQYMBSRQ.js +0 -66
- package/dist/chunk-NK4NR6MN.js +0 -173
- package/dist/chunk-PFU6FSXY.js +0 -430
- package/dist/chunk-QJEOPT2P.js +0 -330
- package/dist/chunk-QSGR43JM.js +0 -30
- package/dist/chunk-STR3NGWE.js +0 -3736
- package/dist/create-3DOO3RNH.js +0 -716
- package/dist/create-I7HV3RM6.js +0 -150
- package/dist/edit-K2AD335I.js +0 -237
- package/dist/edit-VO5XLIEL.js +0 -362
- package/dist/edit-stocks-and-prices-MHHQFWFA.js +0 -408
- package/dist/organization-LPYQRTQC.js +0 -303
- package/dist/prices-3OXV5RGY.js +0 -270
- package/dist/product-variant-detail-WV4KXVXR.js +0 -590
- package/dist/shipment-4GW2JFWB.js +0 -174
- package/dist/stock-GPC3BCL6.js +0 -500
- package/dist/{chunk-SDSEW72R.js → chunk-E2HQPY32.js} +3 -3
- /package/dist/{chunk-CAS74NLJ.js → chunk-YV6MK4PZ.js} +0 -0
|
@@ -33,36 +33,36 @@ import {
|
|
|
33
33
|
} from "./chunk-CMHI2RPL.js";
|
|
34
34
|
import {
|
|
35
35
|
useProductTableColumns
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-BER45EYD.js";
|
|
37
37
|
import {
|
|
38
38
|
useProductTableQuery
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-MJCL3WID.js";
|
|
40
40
|
import {
|
|
41
41
|
useProductTableFilters
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-K6LOZ4S3.js";
|
|
43
43
|
import {
|
|
44
44
|
_DataTable,
|
|
45
45
|
useDataTable
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-SSUUT5LK.js";
|
|
47
47
|
import {
|
|
48
48
|
StackedDrawer,
|
|
49
49
|
StackedFocusModal
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-GDWBOQI5.js";
|
|
51
51
|
import {
|
|
52
52
|
useProductTags
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-TBYCZRZ7.js";
|
|
54
54
|
import {
|
|
55
55
|
useProductTypes
|
|
56
56
|
} from "./chunk-VV6IKGCN.js";
|
|
57
57
|
import {
|
|
58
58
|
useCollections
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-DDJQRV6E.js";
|
|
60
60
|
import {
|
|
61
61
|
useCustomerGroups
|
|
62
62
|
} from "./chunk-LWJF63JW.js";
|
|
63
63
|
import {
|
|
64
64
|
useProducts
|
|
65
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-JAUZ73XE.js";
|
|
66
66
|
|
|
67
67
|
// src/pages/settings/tax-regions/_common/components/target-form.tsx
|
|
68
68
|
import { Button, Checkbox } from "@medusajs/ui";
|
|
@@ -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-XCIMOIX6.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-SSUUT5LK.js";
|
|
14
14
|
import {
|
|
15
15
|
SingleColumnPage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YV6MK4PZ.js";
|
|
17
17
|
import {
|
|
18
18
|
useOrders
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Y2MQ5EMD.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,
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
_DataTable,
|
|
9
9
|
useDataTable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SSUUT5LK.js";
|
|
11
11
|
import {
|
|
12
12
|
SingleColumnPage
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YV6MK4PZ.js";
|
|
14
14
|
import {
|
|
15
15
|
useCampaigns,
|
|
16
16
|
useDeleteCampaign
|
|
@@ -0,0 +1,426 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useDeleteOfferAction
|
|
3
|
+
} from "./chunk-CFRWIQIZ.js";
|
|
4
|
+
import {
|
|
5
|
+
OFFERS_PAGE_SIZE,
|
|
6
|
+
OFFER_LIST_FIELDS
|
|
7
|
+
} from "./chunk-27KRIXMQ.js";
|
|
8
|
+
import {
|
|
9
|
+
CategoryCell,
|
|
10
|
+
CategoryHeader,
|
|
11
|
+
ProductStatusCell,
|
|
12
|
+
ProductStatusHeader
|
|
13
|
+
} from "./chunk-U5G3AVED.js";
|
|
14
|
+
import {
|
|
15
|
+
PlaceholderCell
|
|
16
|
+
} from "./chunk-PHOCVOZ5.js";
|
|
17
|
+
import {
|
|
18
|
+
_DataTable,
|
|
19
|
+
useDataTable
|
|
20
|
+
} from "./chunk-SSUUT5LK.js";
|
|
21
|
+
import {
|
|
22
|
+
SingleColumnPage
|
|
23
|
+
} from "./chunk-YV6MK4PZ.js";
|
|
24
|
+
import {
|
|
25
|
+
useQueryParams
|
|
26
|
+
} from "./chunk-THHRRYRS.js";
|
|
27
|
+
import {
|
|
28
|
+
Thumbnail
|
|
29
|
+
} from "./chunk-WIYFXWRI.js";
|
|
30
|
+
import {
|
|
31
|
+
useShippingProfiles
|
|
32
|
+
} from "./chunk-IQWK723D.js";
|
|
33
|
+
import {
|
|
34
|
+
useBulkDeleteOffers,
|
|
35
|
+
useOffers
|
|
36
|
+
} from "./chunk-UORPTGV2.js";
|
|
37
|
+
import {
|
|
38
|
+
ActionMenu
|
|
39
|
+
} from "./chunk-BDGZ4EQO.js";
|
|
40
|
+
|
|
41
|
+
// src/pages/offers/offer-list-page.tsx
|
|
42
|
+
import { Children as Children2 } from "react";
|
|
43
|
+
|
|
44
|
+
// src/pages/offers/_components/offer-list-table.tsx
|
|
45
|
+
import { Container } from "@medusajs/ui";
|
|
46
|
+
import { Children } from "react";
|
|
47
|
+
import { Outlet } from "react-router-dom";
|
|
48
|
+
|
|
49
|
+
// src/pages/offers/_components/offer-list-data-table.tsx
|
|
50
|
+
import { keepPreviousData } from "@tanstack/react-query";
|
|
51
|
+
import { useState } from "react";
|
|
52
|
+
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
53
|
+
import { toast, usePrompt } from "@medusajs/ui";
|
|
54
|
+
|
|
55
|
+
// src/pages/offers/_components/use-offer-table-columns.tsx
|
|
56
|
+
import { Checkbox, Text } from "@medusajs/ui";
|
|
57
|
+
import { createColumnHelper } from "@tanstack/react-table";
|
|
58
|
+
import { useMemo } from "react";
|
|
59
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
60
|
+
|
|
61
|
+
// src/pages/offers/_components/offer-actions.tsx
|
|
62
|
+
import { Buildings, CurrencyDollar, PencilSquare, Trash } from "@medusajs/icons";
|
|
63
|
+
import { useTranslation } from "react-i18next";
|
|
64
|
+
import { jsx } from "react/jsx-runtime";
|
|
65
|
+
var OfferActions = ({ offer }) => {
|
|
66
|
+
const { t } = useTranslation();
|
|
67
|
+
const handleDelete = useDeleteOfferAction({ id: offer.id, sku: offer.sku });
|
|
68
|
+
return /* @__PURE__ */ jsx(
|
|
69
|
+
ActionMenu,
|
|
70
|
+
{
|
|
71
|
+
groups: [
|
|
72
|
+
{
|
|
73
|
+
actions: [
|
|
74
|
+
{
|
|
75
|
+
icon: /* @__PURE__ */ jsx(PencilSquare, {}),
|
|
76
|
+
label: t("actions.edit"),
|
|
77
|
+
to: `${offer.id}/edit`
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
icon: /* @__PURE__ */ jsx(CurrencyDollar, {}),
|
|
81
|
+
label: t("offers.actions.manage_prices"),
|
|
82
|
+
to: `${offer.id}/pricing`
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
icon: /* @__PURE__ */ jsx(Buildings, {}),
|
|
86
|
+
label: t("offers.actions.manage_inventory"),
|
|
87
|
+
to: `${offer.id}/inventory`
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
actions: [
|
|
93
|
+
{
|
|
94
|
+
icon: /* @__PURE__ */ jsx(Trash, {}),
|
|
95
|
+
label: t("actions.delete"),
|
|
96
|
+
onClick: handleDelete
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
);
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
// src/pages/offers/_components/use-offer-table-columns.tsx
|
|
106
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
107
|
+
var columnHelper = createColumnHelper();
|
|
108
|
+
var useOfferTableColumns = () => {
|
|
109
|
+
const { t } = useTranslation2();
|
|
110
|
+
return useMemo(
|
|
111
|
+
() => [
|
|
112
|
+
columnHelper.display({
|
|
113
|
+
id: "select",
|
|
114
|
+
header: ({ table }) => /* @__PURE__ */ jsx2(
|
|
115
|
+
Checkbox,
|
|
116
|
+
{
|
|
117
|
+
checked: table.getIsSomePageRowsSelected() ? "indeterminate" : table.getIsAllPageRowsSelected(),
|
|
118
|
+
onCheckedChange: (value) => table.toggleAllPageRowsSelected(!!value)
|
|
119
|
+
}
|
|
120
|
+
),
|
|
121
|
+
cell: ({ row }) => /* @__PURE__ */ jsx2(
|
|
122
|
+
Checkbox,
|
|
123
|
+
{
|
|
124
|
+
checked: row.getIsSelected(),
|
|
125
|
+
onCheckedChange: (value) => row.toggleSelected(!!value),
|
|
126
|
+
onClick: (e) => e.stopPropagation()
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
}),
|
|
130
|
+
columnHelper.display({
|
|
131
|
+
id: "title",
|
|
132
|
+
header: t("fields.title"),
|
|
133
|
+
cell: ({ row }) => {
|
|
134
|
+
const variant = row.original.product_variant;
|
|
135
|
+
const title = variant?.title ?? "";
|
|
136
|
+
if (!title) {
|
|
137
|
+
return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
138
|
+
}
|
|
139
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full max-w-[250px] items-center gap-x-3 overflow-hidden", children: [
|
|
140
|
+
/* @__PURE__ */ jsx2("div", { className: "w-fit flex-shrink-0", children: /* @__PURE__ */ jsx2(Thumbnail, { src: variant?.product?.thumbnail }) }),
|
|
141
|
+
/* @__PURE__ */ jsx2("span", { title: variant?.product?.title, className: "truncate", children: variant?.title })
|
|
142
|
+
] });
|
|
143
|
+
}
|
|
144
|
+
}),
|
|
145
|
+
columnHelper.display({
|
|
146
|
+
id: "categories",
|
|
147
|
+
header: () => /* @__PURE__ */ jsx2(CategoryHeader, {}),
|
|
148
|
+
cell: ({ row }) => /* @__PURE__ */ jsx2(
|
|
149
|
+
CategoryCell,
|
|
150
|
+
{
|
|
151
|
+
categories: row.original.product_variant?.product?.categories
|
|
152
|
+
}
|
|
153
|
+
)
|
|
154
|
+
}),
|
|
155
|
+
columnHelper.accessor("sku", {
|
|
156
|
+
header: t("offers.fields.sku"),
|
|
157
|
+
cell: ({ getValue }) => {
|
|
158
|
+
const sku = getValue();
|
|
159
|
+
if (!sku) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
160
|
+
return /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", className: "truncate", children: sku });
|
|
161
|
+
}
|
|
162
|
+
}),
|
|
163
|
+
columnHelper.display({
|
|
164
|
+
id: "shipping_profile",
|
|
165
|
+
header: t("shippingProfile.domain"),
|
|
166
|
+
cell: ({ row }) => {
|
|
167
|
+
const name = row.original.shipping_profile?.name;
|
|
168
|
+
if (!name) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
169
|
+
return /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", className: "truncate", children: name });
|
|
170
|
+
}
|
|
171
|
+
}),
|
|
172
|
+
columnHelper.display({
|
|
173
|
+
id: "status",
|
|
174
|
+
header: () => /* @__PURE__ */ jsx2(ProductStatusHeader, {}),
|
|
175
|
+
cell: ({ row }) => {
|
|
176
|
+
const status = row.original.product_variant?.product?.status;
|
|
177
|
+
if (!status) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
178
|
+
return /* @__PURE__ */ jsx2(ProductStatusCell, { status });
|
|
179
|
+
}
|
|
180
|
+
}),
|
|
181
|
+
columnHelper.display({
|
|
182
|
+
id: "actions",
|
|
183
|
+
cell: ({ row }) => /* @__PURE__ */ jsx2(
|
|
184
|
+
OfferActions,
|
|
185
|
+
{
|
|
186
|
+
offer: {
|
|
187
|
+
id: row.original.id,
|
|
188
|
+
sku: row.original.sku ?? ""
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
)
|
|
192
|
+
})
|
|
193
|
+
],
|
|
194
|
+
[t]
|
|
195
|
+
);
|
|
196
|
+
};
|
|
197
|
+
|
|
198
|
+
// src/pages/offers/_components/use-offer-table-filters.tsx
|
|
199
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
200
|
+
var useOfferTableFilters = () => {
|
|
201
|
+
const { t } = useTranslation3();
|
|
202
|
+
const { shipping_profiles } = useShippingProfiles({ limit: 1e3 });
|
|
203
|
+
const filters = [];
|
|
204
|
+
if (shipping_profiles && shipping_profiles.length > 0) {
|
|
205
|
+
filters.push({
|
|
206
|
+
type: "select",
|
|
207
|
+
key: "shipping_profile_id",
|
|
208
|
+
label: t("shippingProfile.domain"),
|
|
209
|
+
multiple: true,
|
|
210
|
+
searchable: true,
|
|
211
|
+
options: shipping_profiles.map((p) => ({
|
|
212
|
+
label: p.name ?? p.id,
|
|
213
|
+
value: p.id
|
|
214
|
+
}))
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
filters.push({
|
|
218
|
+
type: "string",
|
|
219
|
+
key: "sku",
|
|
220
|
+
label: t("offers.fields.sku")
|
|
221
|
+
});
|
|
222
|
+
filters.push({
|
|
223
|
+
type: "date",
|
|
224
|
+
key: "created_at",
|
|
225
|
+
label: t("fields.createdAt")
|
|
226
|
+
});
|
|
227
|
+
filters.push({
|
|
228
|
+
type: "date",
|
|
229
|
+
key: "updated_at",
|
|
230
|
+
label: t("fields.updatedAt")
|
|
231
|
+
});
|
|
232
|
+
return filters;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
// src/pages/offers/_components/use-offer-table-query.tsx
|
|
236
|
+
var useOfferTableQuery = ({
|
|
237
|
+
pageSize = 20,
|
|
238
|
+
prefix
|
|
239
|
+
}) => {
|
|
240
|
+
const raw = useQueryParams(
|
|
241
|
+
[
|
|
242
|
+
"q",
|
|
243
|
+
"order",
|
|
244
|
+
"offset",
|
|
245
|
+
"sku",
|
|
246
|
+
"shipping_profile_id",
|
|
247
|
+
"variant_id",
|
|
248
|
+
"created_at",
|
|
249
|
+
"updated_at"
|
|
250
|
+
],
|
|
251
|
+
prefix
|
|
252
|
+
);
|
|
253
|
+
const { offset, created_at, updated_at, shipping_profile_id, variant_id, ...rest } = raw;
|
|
254
|
+
const searchParams = {
|
|
255
|
+
limit: pageSize,
|
|
256
|
+
offset: offset ? parseInt(offset, 10) : void 0,
|
|
257
|
+
order: rest.order ?? "-updated_at",
|
|
258
|
+
q: rest.q,
|
|
259
|
+
sku: rest.sku,
|
|
260
|
+
shipping_profile_id: shipping_profile_id ? shipping_profile_id.split(",") : void 0,
|
|
261
|
+
variant_id: variant_id ? variant_id.split(",") : void 0,
|
|
262
|
+
created_at: created_at ? JSON.parse(created_at) : void 0,
|
|
263
|
+
updated_at: updated_at ? JSON.parse(updated_at) : void 0
|
|
264
|
+
};
|
|
265
|
+
return {
|
|
266
|
+
searchParams,
|
|
267
|
+
raw
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
// src/pages/offers/_components/offer-list-data-table.tsx
|
|
272
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
273
|
+
var OfferListDataTable = () => {
|
|
274
|
+
const { t } = useTranslation4();
|
|
275
|
+
const prompt = usePrompt();
|
|
276
|
+
const [selection, setSelection] = useState({});
|
|
277
|
+
const { raw, searchParams } = useOfferTableQuery({
|
|
278
|
+
pageSize: OFFERS_PAGE_SIZE
|
|
279
|
+
});
|
|
280
|
+
const {
|
|
281
|
+
offers,
|
|
282
|
+
count,
|
|
283
|
+
isPending: isLoading,
|
|
284
|
+
isError,
|
|
285
|
+
error
|
|
286
|
+
} = useOffers(
|
|
287
|
+
{ ...searchParams, fields: OFFER_LIST_FIELDS },
|
|
288
|
+
{ placeholderData: keepPreviousData }
|
|
289
|
+
);
|
|
290
|
+
const rows = offers ?? [];
|
|
291
|
+
const filters = useOfferTableFilters();
|
|
292
|
+
const columns = useOfferTableColumns();
|
|
293
|
+
const { mutateAsync: bulkDelete } = useBulkDeleteOffers();
|
|
294
|
+
const { table } = useDataTable({
|
|
295
|
+
data: rows,
|
|
296
|
+
columns,
|
|
297
|
+
count,
|
|
298
|
+
enablePagination: true,
|
|
299
|
+
getRowId: (row) => row.id,
|
|
300
|
+
pageSize: OFFERS_PAGE_SIZE,
|
|
301
|
+
enableRowSelection: true,
|
|
302
|
+
rowSelection: {
|
|
303
|
+
state: selection,
|
|
304
|
+
updater: setSelection
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
if (isError) {
|
|
308
|
+
throw error;
|
|
309
|
+
}
|
|
310
|
+
return /* @__PURE__ */ jsx3(
|
|
311
|
+
_DataTable,
|
|
312
|
+
{
|
|
313
|
+
table,
|
|
314
|
+
columns,
|
|
315
|
+
pageSize: OFFERS_PAGE_SIZE,
|
|
316
|
+
count,
|
|
317
|
+
isLoading,
|
|
318
|
+
pagination: true,
|
|
319
|
+
search: true,
|
|
320
|
+
filters,
|
|
321
|
+
queryObject: raw,
|
|
322
|
+
orderBy: [
|
|
323
|
+
{ key: "title", label: t("fields.title") },
|
|
324
|
+
{ key: "created_at", label: t("fields.createdAt") },
|
|
325
|
+
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
326
|
+
],
|
|
327
|
+
navigateTo: (row) => `${row.id}`,
|
|
328
|
+
noRecords: {
|
|
329
|
+
title: t("offers.empty.heading"),
|
|
330
|
+
message: t("offers.empty.description"),
|
|
331
|
+
action: {
|
|
332
|
+
to: "create",
|
|
333
|
+
label: t("offers.actions.create")
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
commands: [
|
|
337
|
+
{
|
|
338
|
+
label: t("offers.actions.bulkDelete"),
|
|
339
|
+
shortcut: "d",
|
|
340
|
+
action: async (currentSelection) => {
|
|
341
|
+
const ids = Object.keys(currentSelection);
|
|
342
|
+
if (ids.length === 0) return;
|
|
343
|
+
const confirmed = await prompt({
|
|
344
|
+
title: t("general.areYouSure"),
|
|
345
|
+
description: t("offers.bulkDelete.description", {
|
|
346
|
+
count: ids.length
|
|
347
|
+
}),
|
|
348
|
+
confirmText: t("actions.delete"),
|
|
349
|
+
cancelText: t("actions.cancel"),
|
|
350
|
+
variant: "danger"
|
|
351
|
+
});
|
|
352
|
+
if (!confirmed) return;
|
|
353
|
+
const result = await bulkDelete(ids);
|
|
354
|
+
const succeededCount = result.succeeded.length;
|
|
355
|
+
const failedCount = result.failed.length;
|
|
356
|
+
if (failedCount === 0) {
|
|
357
|
+
toast.success(
|
|
358
|
+
t("offers.bulkDelete.successToast", { count: succeededCount })
|
|
359
|
+
);
|
|
360
|
+
setSelection({});
|
|
361
|
+
} else {
|
|
362
|
+
toast.warning(
|
|
363
|
+
t("offers.bulkDelete.partialToast", {
|
|
364
|
+
succeeded: succeededCount,
|
|
365
|
+
total: ids.length,
|
|
366
|
+
failed: failedCount
|
|
367
|
+
})
|
|
368
|
+
);
|
|
369
|
+
const failedIds = new Set(result.failed.map((f) => f.id));
|
|
370
|
+
setSelection((prev) => {
|
|
371
|
+
const next = {};
|
|
372
|
+
for (const id of Object.keys(prev)) {
|
|
373
|
+
if (failedIds.has(id)) next[id] = true;
|
|
374
|
+
}
|
|
375
|
+
return next;
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
]
|
|
381
|
+
}
|
|
382
|
+
);
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
// src/pages/offers/_components/offer-list-header.tsx
|
|
386
|
+
import { Button, Heading } from "@medusajs/ui";
|
|
387
|
+
import { useTranslation as useTranslation5 } from "react-i18next";
|
|
388
|
+
import { Link } from "react-router-dom";
|
|
389
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
390
|
+
var OfferListTitle = () => {
|
|
391
|
+
const { t } = useTranslation5();
|
|
392
|
+
return /* @__PURE__ */ jsx4(Heading, { children: t("offers.domain") });
|
|
393
|
+
};
|
|
394
|
+
var OfferListActions = () => {
|
|
395
|
+
const { t } = useTranslation5();
|
|
396
|
+
return /* @__PURE__ */ jsx4(Button, { size: "small", variant: "primary", asChild: true, children: /* @__PURE__ */ jsx4(Link, { to: "create", "data-testid": "offer-list-create-button", children: t("offers.actions.create") }) });
|
|
397
|
+
};
|
|
398
|
+
var OfferListHeader = () => /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
399
|
+
/* @__PURE__ */ jsx4(OfferListTitle, {}),
|
|
400
|
+
/* @__PURE__ */ jsx4(OfferListActions, {})
|
|
401
|
+
] });
|
|
402
|
+
|
|
403
|
+
// src/pages/offers/_components/offer-list-table.tsx
|
|
404
|
+
import { Fragment, jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
405
|
+
var OfferListTable = ({ children }) => /* @__PURE__ */ jsxs3(Container, { className: "divide-y p-0", "data-testid": "offer-list-table", children: [
|
|
406
|
+
Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(Fragment, { children: [
|
|
407
|
+
/* @__PURE__ */ jsx5(OfferListHeader, {}),
|
|
408
|
+
/* @__PURE__ */ jsx5(OfferListDataTable, {})
|
|
409
|
+
] }),
|
|
410
|
+
/* @__PURE__ */ jsx5(Outlet, {})
|
|
411
|
+
] });
|
|
412
|
+
|
|
413
|
+
// src/pages/offers/offer-list-page.tsx
|
|
414
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
415
|
+
var Root = ({ children }) => /* @__PURE__ */ jsx6(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx6(OfferListTable, {}) });
|
|
416
|
+
var OfferListPage = Object.assign(Root, {
|
|
417
|
+
Table: OfferListTable,
|
|
418
|
+
Header: OfferListHeader,
|
|
419
|
+
HeaderTitle: OfferListTitle,
|
|
420
|
+
HeaderActions: OfferListActions,
|
|
421
|
+
DataTable: OfferListDataTable
|
|
422
|
+
});
|
|
423
|
+
|
|
424
|
+
export {
|
|
425
|
+
OfferListPage
|
|
426
|
+
};
|