@mercurjs/vendor 2.2.1 → 2.3.0-canary.0
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]-47SUX5X3.js → [id]-3IFUEMOA.js} +12 -9
- package/dist/{[id]-PIB2DEVI.js → [id]-3NM7G2QP.js} +11 -8
- package/dist/[id]-3TCOLUQH.js +197 -0
- package/dist/{[id]-SKU5SFBG.js → [id]-4IWSF6TW.js} +137 -204
- package/dist/{[id]-BPQNQFVE.js → [id]-AMZFAAJ3.js} +75 -124
- package/dist/[id]-C3TB6V2O.js +286 -0
- package/dist/{[id]-NGRV5I2A.js → [id]-HEDNHQ5Z.js} +8 -6
- package/dist/[id]-KFACDZAI.js +949 -0
- package/dist/{[id]-BHU5BSQT.js → [id]-KFRGBNLH.js} +19 -16
- package/dist/{[id]-OE5TUWNF.js → [id]-OVWD6DNG.js} +8 -6
- package/dist/{[id]-RJRAZN3T.js → [id]-PJ2K4O3C.js} +7 -5
- package/dist/{[id]-ZD5HBP2R.js → [id]-ROMWNPJA.js} +13 -10
- package/dist/[id]-UPNI3OCU.js +697 -0
- package/dist/{[id]-YB3DBBXT.js → [id]-YFLQXZGC.js} +12 -9
- package/dist/{[province_id]-CUWKNPBW.js → [province_id]-IM22PLJP.js} +8 -6
- package/dist/{add-YEUSE5QA.js → add-AUSWWCA3.js} +9 -7
- package/dist/{add-MYV5IOGP.js → add-MBCWT6XT.js} +157 -227
- package/dist/{add-customer-groups-Q3F357F2.js → add-customer-groups-3FD754Z2.js} +7 -5
- package/dist/{add-products-WVNYODC6.js → add-products-IS22SHHN.js} +12 -9
- package/dist/{add-promotions-F62YE3BE.js → add-promotions-VDD5PKMN.js} +27 -9
- package/dist/{add-to-campaign-WBSCTSKW.js → add-to-campaign-B3PGGNFA.js} +3 -2
- package/dist/{address-ZMZ4ST5T.js → address-7HSQSXUS.js} +6 -4
- package/dist/{adjust-inventory-QUGKDXOC.js → adjust-inventory-2OKDFVLK.js} +2 -3
- package/dist/{allocate-items-7NSBGXSF.js → allocate-items-QAYROQMK.js} +4 -2
- package/dist/{areas-EJCZBY2E.js → areas-WQ44GWQO.js} +2 -2
- package/dist/{breadcrumb-M657ZCG6.js → breadcrumb-4I7MU2QY.js} +1 -1
- package/dist/{breadcrumb-KNBZ3JNR.js → breadcrumb-7ZFC43R4.js} +1 -1
- package/dist/{breadcrumb-C7M5PG2Q.js → breadcrumb-IDLCUHX3.js} +6 -4
- package/dist/{breadcrumb-MXYWEBK6.js → breadcrumb-OXRGEOVL.js} +6 -4
- package/dist/{breadcrumb-JWFTKHLE.js → breadcrumb-RQ52GELM.js} +2 -1
- package/dist/{breadcrumb-QPV566YX.js → breadcrumb-UDSK4EUS.js} +7 -5
- package/dist/breadcrumb-XCPUUZUO.js +26 -0
- package/dist/{campaigns-BPLAE6QQ.js → campaigns-LIPKZKI7.js} +5 -4
- package/dist/{categories-H2XAJCGC.js → categories-D2U6VLH5.js} +2 -2
- package/dist/{chunk-4RVWITM2.js → chunk-3JWHERV7.js} +76 -23
- package/dist/{chunk-BCXREBMV.js → chunk-4ATO577Q.js} +1 -1
- package/dist/{chunk-VHFKJLDH.js → chunk-4JVORTN4.js} +1 -1
- package/dist/{chunk-HHD2VUED.js → chunk-4UKAKFKL.js} +1 -1
- package/dist/{chunk-3L7WHWKB.js → chunk-5DRYAIOY.js} +3 -3
- package/dist/{chunk-7TIZP4YG.js → chunk-5RWK4U4V.js} +26 -0
- package/dist/{chunk-UEKRQS5Q.js → chunk-6ECHPZS3.js} +2 -2
- package/dist/{chunk-IWAL74YU.js → chunk-6GQLSWOO.js} +1 -1
- package/dist/{chunk-HCUIYIIY.js → chunk-6OZQTHCR.js} +1 -1
- package/dist/chunk-6XMUN2BZ.js +0 -0
- package/dist/{chunk-RLRWDHME.js → chunk-6YQR2AWM.js} +3 -20
- package/dist/{chunk-26OOAKQ6.js → chunk-7H6NMQ6U.js} +8 -1
- package/dist/{chunk-SVYBMLVN.js → chunk-7J2QRH4V.js} +1 -1
- package/dist/chunk-7LIENHWP.js +26 -0
- package/dist/{chunk-EPSRO7C5.js → chunk-7LIT4GXO.js} +2 -2
- package/dist/chunk-7POOMBIN.js +108 -0
- package/dist/{chunk-SDFZUBS3.js → chunk-CDZALZ5E.js} +1 -1
- package/dist/{chunk-72HQFLZI.js → chunk-CSEB2RNO.js} +1 -1
- package/dist/{chunk-X6ZQMFCT.js → chunk-DAOSTHVB.js} +44 -25
- package/dist/chunk-FKKI62AC.js +282 -0
- package/dist/{chunk-VBKW4GWP.js → chunk-FPBXQIFJ.js} +1 -1
- package/dist/{chunk-SI55QRZ4.js → chunk-G5NNOOHR.js} +59 -6
- package/dist/chunk-G6J5ZKM3.js +31 -0
- package/dist/{chunk-U5V6HNVW.js → chunk-GL3XVUAY.js} +1 -1
- package/dist/{chunk-RJE4MAYB.js → chunk-GYLRZXWS.js} +1 -1
- package/dist/{chunk-3XW55FZY.js → chunk-IYQHEISY.js} +6 -6
- package/dist/chunk-IZI2PKL7.js +27 -0
- package/dist/chunk-JN6MHI6V.js +334 -0
- package/dist/{chunk-YUQA6TUA.js → chunk-JOCO7JOB.js} +3 -3
- package/dist/{chunk-OGUTFP6B.js → chunk-JYUHDM23.js} +13 -51
- package/dist/{chunk-QB7BI4B7.js → chunk-K2DXXPNA.js} +153 -86
- package/dist/{chunk-XG76XXM2.js → chunk-KKMA6VPG.js} +1 -1
- package/dist/chunk-KVAD5JGS.js +11 -0
- package/dist/{chunk-YRZ53SAN.js → chunk-L26J5MO2.js} +2 -2
- package/dist/{chunk-FEVCBT24.js → chunk-LOSVZJXS.js} +2 -2
- package/dist/{chunk-63XYNXUL.js → chunk-LYP7XK5O.js} +1 -1
- package/dist/chunk-MVVFD2JT.js +51 -0
- package/dist/{chunk-RVFPWOR2.js → chunk-MY5H7C3A.js} +2 -2
- package/dist/{chunk-GTNCNKTC.js → chunk-NP5TISFX.js} +1 -1
- package/dist/{chunk-3GSR455R.js → chunk-NQMHP2LC.js} +1 -1
- package/dist/{chunk-2S2WK2OG.js → chunk-NV2RZAHW.js} +1 -10
- package/dist/{chunk-4IIATKG7.js → chunk-O7OWHKWA.js} +6 -6
- package/dist/{chunk-GIKVFOQL.js → chunk-OJCMHDZI.js} +2 -2
- package/dist/chunk-QLOJNFUE.js +53 -0
- package/dist/{chunk-OKJHUQBY.js → chunk-QSS7ATY3.js} +15 -27
- package/dist/{chunk-XVBONKRV.js → chunk-RCMKDW6O.js} +1 -1
- package/dist/{chunk-WJF24CGA.js → chunk-RDLVH6CM.js} +33 -5
- package/dist/chunk-SF5N2HX4.js +268 -0
- package/dist/{chunk-MQR26KYT.js → chunk-SYHA2RVL.js} +1 -1
- package/dist/{chunk-ZXDMPIXN.js → chunk-U3OEGBHH.js} +2 -2
- package/dist/{chunk-EJBOBB4B.js → chunk-V3N2Y4OL.js} +46 -46
- package/dist/{chunk-UUBGLS7U.js → chunk-V43BEBDT.js} +187 -35
- package/dist/{chunk-VBRTC2VU.js → chunk-VAFGNDAP.js} +4 -3
- package/dist/{chunk-4UQMRTSC.js → chunk-VH3TGSWE.js} +46 -2
- package/dist/{chunk-ZEKV7LGF.js → chunk-VV2K3EBF.js} +1 -1
- package/dist/{chunk-S2VYK3YC.js → chunk-WI2ZAFZF.js} +1 -1
- package/dist/chunk-WP3B4NEU.js +32 -0
- package/dist/{chunk-DY3XQPHC.js → chunk-WW2XYOHJ.js} +5 -3
- package/dist/{chunk-IVYIMGQC.js → chunk-X44P463Q.js} +45 -10
- package/dist/{chunk-R5KN6IFB.js → chunk-XHWBTV72.js} +2 -2
- package/dist/{chunk-OVHIUZ3K.js → chunk-XQ47NZJC.js} +1 -1
- package/dist/{chunk-LN7XHEPJ.js → chunk-YT4RAUWM.js} +2 -2
- package/dist/{chunk-6VKJM537.js → chunk-ZK4DIDXG.js} +1 -1
- package/dist/{collections-52DJLHWW.js → collections-3MEKABDT.js} +13 -12
- package/dist/{configuration-UMRBE5RQ.js → configuration-QK2FW2CV.js} +2 -2
- package/dist/{configuration-QEDVL2WF.js → configuration-RYH3VUBV.js} +15 -48
- package/dist/{create-ALUKAFJS.js → create-5M66YUYY.js} +2 -2
- package/dist/{create-ABRPUMHQ.js → create-75C65ZIS.js} +6 -5
- package/dist/{create-6IRD2CVC.js → create-A3CQXIRQ.js} +11 -9
- package/dist/{create-LYNWCP2N.js → create-GYNDVCY2.js} +5 -4
- package/dist/create-ICCAEOSA.js +343 -0
- package/dist/{create-5RQ32XPT.js → create-KBDT33O2.js} +287 -287
- package/dist/{create-GEYXN6SW.js → create-L5HMOVY5.js} +6 -4
- package/dist/{create-MFGMTZ5A.js → create-M2W5N6QV.js} +7 -5
- package/dist/{create-NTZH45DW.js → create-NSJGRO4L.js} +13 -11
- package/dist/{create-H77ZUZG5.js → create-O4K6TO4G.js} +9 -7
- package/dist/{create-S7VYYTUD.js → create-PW5L3MJI.js} +9 -7
- package/dist/{create-7SJ5DSQK.js → create-UQ26QTPQ.js} +19 -16
- package/dist/{create-2I3GAX4C.js → create-WIGBFSRH.js} +15 -6
- package/dist/{create-7FT7N2NH.js → create-WPN3OUJU.js} +3 -2
- package/dist/{create-G76MVCJU.js → create-ZVGYET6W.js} +5 -4
- package/dist/customer-availability-VAOKKCTK.js +164 -0
- package/dist/{customer-group-add-customers-T7OYWJCB.js → customer-group-add-customers-BSMUKWVO.js} +1 -1
- package/dist/{customer-group-detail-E7HRZ3LE.js → customer-group-detail-QCPC2YWK.js} +2 -2
- package/dist/{customer-groups-26HJ55MF.js → customer-groups-6WGUNFHG.js} +2 -2
- package/dist/{customers-EXFRZX5F.js → customers-7OGYQSGA.js} +2 -2
- package/dist/edit-2BKYNGYL.js +262 -0
- package/dist/{edit-M4AP65HO.js → edit-32ZGQUWZ.js} +7 -5
- package/dist/{edit-MPOTIGUY.js → edit-3OXHBHY4.js} +22 -38
- package/dist/{edit-2RN3OT27.js → edit-7T2JMZG3.js} +7 -56
- package/dist/{edit-6VJWRZHQ.js → edit-AFWQY3BZ.js} +6 -4
- package/dist/{edit-NB5VN2E4.js → edit-EDXF3T7F.js} +4 -3
- package/dist/edit-GJCXPD5A.js +81 -0
- package/dist/{edit-WHGYNDEB.js → edit-KOLDPZ4H.js} +19 -16
- package/dist/{edit-TIBQEQVV.js → edit-LZFD3RSY.js} +9 -7
- package/dist/{edit-QBUYHSE7.js → edit-QVK3BEPA.js} +7 -5
- package/dist/{edit-EGBVEWXS.js → edit-ZLZR7F33.js} +8 -6
- package/dist/{edit-H5FJ45ZT.js → edit-ZM7NJVRE.js} +1 -1
- package/dist/{edit-budget-PYPHUJPW.js → edit-budget-MOZETGZV.js} +1 -1
- package/dist/{edit-inventory-item-BCVECCLT.js → edit-inventory-item-HFGHS732.js} +17 -14
- package/dist/{edit-inventory-item-attributes-GWEMP67O.js → edit-inventory-item-attributes-5ORZJF4I.js} +18 -1
- package/dist/edit-reservation-LSYQUDYQ.js +294 -0
- package/dist/extension-targets.d.ts +6 -3
- package/dist/{fulfillment-HDU7GATG.js → fulfillment-TVRF5TID.js} +6 -4
- package/dist/{fulfillment-providers-6RZNNT7U.js → fulfillment-providers-TEV23LGB.js} +11 -10
- package/dist/index.css +14 -14
- package/dist/index.js +252 -146
- package/dist/{inventory-XJ2E6DPC.js → inventory-CMIRAJJY.js} +2 -2
- package/dist/{invite-755AJC3M.js → invite-K3R2GRYF.js} +6 -4
- package/dist/{invite-FD2TXZTW.js → invite-ZMIYLOWJ.js} +9 -7
- package/dist/{login-UGKYRKMD.js → login-LG3XH6B2.js} +8 -6
- package/dist/{manage-locations-PRQI5TI4.js → manage-locations-5B4HP6NQ.js} +24 -5
- package/dist/{media-TGFAHFBV.js → media-DY2XDZYT.js} +7 -5
- package/dist/{media-2KEHXPRU.js → media-OGO6M3CP.js} +10 -8
- package/dist/{metadata-BQQFHVKF.js → metadata-AW5Y72BI.js} +6 -4
- package/dist/metadata-HS6CLO4Z.js +69 -0
- package/dist/{metadata-5TVRCKWX.js → metadata-HXXVD3VP.js} +6 -4
- package/dist/{metadata-7JWZ4VFM.js → metadata-TXNUZBPX.js} +6 -4
- package/dist/{metadata-G73TILNE.js → metadata-UVOHT2VF.js} +6 -4
- package/dist/{metadata-4ZZ4ZIWJ.js → metadata-ZBSZL74N.js} +6 -4
- package/dist/{offer-create-page-PPXRYET4.js → offer-create-page-53P65U2V.js} +11 -8
- package/dist/{offer-detail-page-BFGKAS4L.js → offer-detail-page-BGFLDXO7.js} +1 -1
- package/dist/{offer-variant-detail-page-BLHRF4MK.js → offer-variant-detail-page-DCTRZUTM.js} +1 -1
- package/dist/{offers-7I67VSHI.js → offers-5776XUH5.js} +13 -9
- package/dist/{onboarding-7MURQYXX.js → onboarding-ROLIHG3L.js} +6 -4
- package/dist/{orders-D7NZNDUS.js → orders-VA3HNJAY.js} +12 -11
- package/dist/{organization-T6ZTYMMW.js → organization-UH4IUA62.js} +8 -6
- package/dist/pages/index.d.ts +9 -1
- package/dist/pages/index.js +53 -44
- package/dist/{payment-details-UQ65D5AY.js → payment-details-CD4GZEUL.js} +6 -4
- package/dist/{payouts-A336D2HG.js → payouts-26ZOYDRP.js} +2 -2
- package/dist/{price-lists-3WRT4TR2.js → price-lists-U5ASDHMI.js} +5 -8
- package/dist/{pricing-CPPIL627.js → pricing-SWUZSQL3.js} +8 -6
- package/dist/{product-tags-7DTA73YT.js → product-tags-4V65LOJJ.js} +19 -16
- package/dist/{product-types-OB26NF2D.js → product-types-CMI33S32.js} +3 -4
- package/dist/{product-variant-detail-4DDE6RJ5.js → product-variant-detail-NW3LQZE7.js} +6 -4
- package/dist/{product-variant-edit-SAZUI4E3.js → product-variant-edit-MNYFEZND.js} +9 -7
- package/dist/{products-RYXTZFGT.js → products-L2H6HOL2.js} +18 -15
- package/dist/{products-GJ2KTGBZ.js → products-YIF6FPBO.js} +12 -9
- package/dist/{professional-details-UN5B4YDJ.js → professional-details-QO5BWMRD.js} +6 -4
- package/dist/{profile-6MIDTK52.js → profile-2KKBVKAL.js} +6 -4
- package/dist/{promotions-SQ47TCZL.js → promotions-C5YWXVP5.js} +5 -5
- package/dist/{receive-ZG6FFN7H.js → receive-RRZK3FP2.js} +4 -3
- package/dist/{refund-KJX74N6T.js → refund-FLCZAMPR.js} +3 -2
- package/dist/{register-RDSK4E4D.js → register-SZ2T6QQA.js} +8 -6
- package/dist/reservations-C326XEVA.js +350 -0
- package/dist/{reset-password-C462PDN2.js → reset-password-H66R27K4.js} +1 -1
- package/dist/respond-IPRDCH57.js +132 -0
- package/dist/{return-reasons-MY63HNF6.js → return-reasons-2BUKIQBO.js} +9 -7
- package/dist/reviews-LBLCFBRQ.js +14 -0
- package/dist/{settings-TJ6HPHMK.js → settings-THSRJ5WS.js} +26 -23
- package/dist/{shipment-6CTA2GHU.js → shipment-X2WWJ3AE.js} +6 -4
- package/dist/{shipping-profile-CFISOMTE.js → shipping-profile-7P3RPEIJ.js} +1 -1
- package/dist/{shipping-profiles-5UAZNYKJ.js → shipping-profiles-JPBRRMPD.js} +8 -6
- package/dist/{stock-465GEUY3.js → stock-UMESDWV5.js} +21 -7
- package/dist/{store-2PQB2XWE.js → store-5YMOSKVT.js} +7 -5
- package/dist/{store-closure-DYW54VHB.js → store-closure-EPGDOV7U.js} +6 -4
- package/dist/{store-select-6A5YR7WH.js → store-select-JEEV4V57.js} +7 -5
- package/dist/{team-GXEBC57M.js → team-R6ARMF73.js} +9 -7
- package/package.json +12 -9
- package/dist/[id]-HEVGSOAV.js +0 -598
- package/dist/[id]-MU7A6SZO.js +0 -526
- package/dist/chunk-2ZFELO2L.js +0 -13
- package/dist/chunk-6IJMSVC6.js +0 -16
- package/dist/chunk-BNOKKKUU.js +0 -88
- package/dist/chunk-BX3JE7IE.js +0 -247
- package/dist/edit-4B364HGZ.js +0 -222
- package/dist/edit-SQU5UOGE.js +0 -105
- package/dist/{[location_id]-OXNC5E4F.js → [location_id]-IGPM7LDR.js} +1 -1
- package/dist/{chunk-CYE7HVAV.js → chunk-SCJBJQCL.js} +3 -3
|
@@ -106,14 +106,6 @@ var usePriceListLinkProducts = (id, options) => {
|
|
|
106
106
|
...options
|
|
107
107
|
});
|
|
108
108
|
};
|
|
109
|
-
var usePriceListProducts = (id, query, options) => {
|
|
110
|
-
const { data, ...rest } = useQuery({
|
|
111
|
-
queryFn: () => sdk.vendor.products.query({ price_list_id: [id], ...query }),
|
|
112
|
-
queryKey: [PRICE_LISTS_QUERY_KEY, id, "products"],
|
|
113
|
-
...options
|
|
114
|
-
});
|
|
115
|
-
return { ...data, ...rest };
|
|
116
|
-
};
|
|
117
109
|
|
|
118
110
|
export {
|
|
119
111
|
priceListsQueryKeys,
|
|
@@ -123,6 +115,5 @@ export {
|
|
|
123
115
|
useUpdatePriceList,
|
|
124
116
|
useDeletePriceList,
|
|
125
117
|
useBatchPriceListPrices,
|
|
126
|
-
usePriceListLinkProducts
|
|
127
|
-
usePriceListProducts
|
|
118
|
+
usePriceListLinkProducts
|
|
128
119
|
};
|
|
@@ -24,22 +24,22 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
useCollectionTableFilters,
|
|
26
26
|
useProductTagTableFilters
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-4UKAKFKL.js";
|
|
28
28
|
import {
|
|
29
29
|
useProductTypeTableFilters
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7H6NMQ6U.js";
|
|
31
31
|
import {
|
|
32
32
|
useCustomerGroupTableFilters
|
|
33
33
|
} from "./chunk-CMHI2RPL.js";
|
|
34
34
|
import {
|
|
35
35
|
useProductTableColumns
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-NQMHP2LC.js";
|
|
37
37
|
import {
|
|
38
38
|
useProductTableQuery
|
|
39
39
|
} from "./chunk-BEPAXQMU.js";
|
|
40
40
|
import {
|
|
41
41
|
useProductTableFilters
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-U3OEGBHH.js";
|
|
43
43
|
import {
|
|
44
44
|
StackedDrawer,
|
|
45
45
|
StackedFocusModal
|
|
@@ -47,10 +47,10 @@ import {
|
|
|
47
47
|
import {
|
|
48
48
|
_DataTable,
|
|
49
49
|
useDataTable
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-6GQLSWOO.js";
|
|
51
51
|
import {
|
|
52
52
|
useProductTags
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-6YQR2AWM.js";
|
|
54
54
|
import {
|
|
55
55
|
useProductTypes
|
|
56
56
|
} from "./chunk-L2NJPDUD.js";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
// src/components/common/badge-list-summary/badge-list-summary.tsx
|
|
2
|
+
import { Badge, Tooltip, clx } from "@medusajs/ui";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
var BadgeListSummary = ({
|
|
6
|
+
list,
|
|
7
|
+
className,
|
|
8
|
+
inline,
|
|
9
|
+
rounded = false,
|
|
10
|
+
n = 2
|
|
11
|
+
}) => {
|
|
12
|
+
const { t } = useTranslation();
|
|
13
|
+
const title = t("general.plusCount", {
|
|
14
|
+
count: list.length - n
|
|
15
|
+
});
|
|
16
|
+
return /* @__PURE__ */ jsxs(
|
|
17
|
+
"div",
|
|
18
|
+
{
|
|
19
|
+
className: clx(
|
|
20
|
+
"text-ui-fg-subtle txt-compact-small gap-x-2 overflow-hidden",
|
|
21
|
+
{
|
|
22
|
+
"inline-flex": inline,
|
|
23
|
+
flex: !inline
|
|
24
|
+
},
|
|
25
|
+
className
|
|
26
|
+
),
|
|
27
|
+
children: [
|
|
28
|
+
list.slice(0, n).map((item) => {
|
|
29
|
+
return /* @__PURE__ */ jsx(Badge, { rounded: rounded ? "full" : "base", size: "2xsmall", children: item }, item);
|
|
30
|
+
}),
|
|
31
|
+
list.length > n && /* @__PURE__ */ jsx("div", { className: "whitespace-nowrap", children: /* @__PURE__ */ jsx(
|
|
32
|
+
Tooltip,
|
|
33
|
+
{
|
|
34
|
+
content: /* @__PURE__ */ jsx("ul", { children: list.slice(n).map((c) => /* @__PURE__ */ jsx("li", { children: c }, c)) }),
|
|
35
|
+
children: /* @__PURE__ */ jsx(
|
|
36
|
+
Badge,
|
|
37
|
+
{
|
|
38
|
+
rounded: rounded ? "full" : "base",
|
|
39
|
+
size: "2xsmall",
|
|
40
|
+
className: "cursor-default whitespace-nowrap",
|
|
41
|
+
children: title
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
) })
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
BadgeListSummary
|
|
53
|
+
};
|
|
@@ -7,23 +7,20 @@ import {
|
|
|
7
7
|
CategoryHeader,
|
|
8
8
|
ProductStatusCell,
|
|
9
9
|
ProductStatusHeader
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WI2ZAFZF.js";
|
|
11
11
|
import {
|
|
12
12
|
ProductCell
|
|
13
13
|
} from "./chunk-FWPGOIFA.js";
|
|
14
14
|
import {
|
|
15
15
|
useProductTableFilters
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-U3OEGBHH.js";
|
|
17
17
|
import {
|
|
18
18
|
PlaceholderCell
|
|
19
19
|
} from "./chunk-PHOCVOZ5.js";
|
|
20
|
-
import {
|
|
21
|
-
SingleColumnPage
|
|
22
|
-
} from "./chunk-YV6MK4PZ.js";
|
|
23
20
|
import {
|
|
24
21
|
_DataTable,
|
|
25
22
|
useDataTable
|
|
26
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-6GQLSWOO.js";
|
|
27
24
|
import {
|
|
28
25
|
useQueryParams
|
|
29
26
|
} from "./chunk-THHRRYRS.js";
|
|
@@ -37,15 +34,6 @@ import {
|
|
|
37
34
|
useProducts
|
|
38
35
|
} from "./chunk-EMUCGKHP.js";
|
|
39
36
|
|
|
40
|
-
// src/pages/offers/offer-list-page.tsx
|
|
41
|
-
import { Children as Children2 } from "react";
|
|
42
|
-
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
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
37
|
// src/pages/offers/_components/offer-list-data-table.tsx
|
|
50
38
|
import { keepPreviousData } from "@tanstack/react-query";
|
|
51
39
|
import { useMemo as useMemo2 } from "react";
|
|
@@ -351,6 +339,9 @@ var OfferListHeader = () => /* @__PURE__ */ jsxs("div", { className: "flex items
|
|
|
351
339
|
] });
|
|
352
340
|
|
|
353
341
|
// src/pages/offers/_components/offer-list-table.tsx
|
|
342
|
+
import { Container } from "@medusajs/ui";
|
|
343
|
+
import { Children } from "react";
|
|
344
|
+
import { Outlet } from "react-router-dom";
|
|
354
345
|
import { Fragment, jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
355
346
|
var OfferListTable = ({ children }) => /* @__PURE__ */ jsxs2(Container, { className: "divide-y p-0", "data-testid": "offer-list-table", children: [
|
|
356
347
|
Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
@@ -360,17 +351,14 @@ var OfferListTable = ({ children }) => /* @__PURE__ */ jsxs2(Container, { classN
|
|
|
360
351
|
/* @__PURE__ */ jsx5(Outlet, {})
|
|
361
352
|
] });
|
|
362
353
|
|
|
363
|
-
// src/pages/offers/offer-list-page.tsx
|
|
364
|
-
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
365
|
-
var Root = ({ children }) => /* @__PURE__ */ jsx6(SingleColumnPage, { children: /* @__PURE__ */ jsx6(WidgetZone, { id: "offers.list", children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx6(OfferListTable, {}) }) });
|
|
366
|
-
var OfferListPage = Object.assign(Root, {
|
|
367
|
-
Table: OfferListTable,
|
|
368
|
-
Header: OfferListHeader,
|
|
369
|
-
HeaderTitle: OfferListTitle,
|
|
370
|
-
HeaderActions: OfferListActions,
|
|
371
|
-
DataTable: OfferListDataTable
|
|
372
|
-
});
|
|
373
|
-
|
|
374
354
|
export {
|
|
375
|
-
|
|
355
|
+
collectOfferIds,
|
|
356
|
+
useOfferTableColumns,
|
|
357
|
+
useOfferTableFilters,
|
|
358
|
+
useOfferTableQuery,
|
|
359
|
+
OfferListDataTable,
|
|
360
|
+
OfferListTitle,
|
|
361
|
+
OfferListActions,
|
|
362
|
+
OfferListHeader,
|
|
363
|
+
OfferListTable
|
|
376
364
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CreateCampaignFormFields
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-G5NNOOHR.js";
|
|
4
4
|
import {
|
|
5
5
|
VisuallyHidden
|
|
6
6
|
} from "./chunk-54TMLQH3.js";
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
// src/pages/campaigns/create/create-campaign-form/create-campaign-form.tsx
|
|
19
19
|
import { zodResolver } from "@hookform/resolvers/zod";
|
|
20
20
|
import { Button, toast } from "@medusajs/ui";
|
|
21
|
+
import { useMemo } from "react";
|
|
21
22
|
import { useForm } from "react-hook-form";
|
|
22
23
|
import { useTranslation } from "react-i18next";
|
|
23
24
|
import * as zod from "zod";
|
|
@@ -32,7 +33,8 @@ var DEFAULT_CAMPAIGN_VALUES = {
|
|
|
32
33
|
budget: {
|
|
33
34
|
type: "usage",
|
|
34
35
|
currency_code: null,
|
|
35
|
-
limit: null
|
|
36
|
+
limit: null,
|
|
37
|
+
attribute: null
|
|
36
38
|
}
|
|
37
39
|
};
|
|
38
40
|
|
|
@@ -45,8 +47,9 @@ var CreateCampaignSchema = zod.object({
|
|
|
45
47
|
starts_at: zod.date().nullable(),
|
|
46
48
|
ends_at: zod.date().nullable(),
|
|
47
49
|
budget: zod.object({
|
|
50
|
+
attribute: zod.string().nullish(),
|
|
48
51
|
limit: zod.number().min(0).nullish(),
|
|
49
|
-
type: zod.enum(["spend", "usage"]),
|
|
52
|
+
type: zod.enum(["spend", "usage", "use_by_attribute"]),
|
|
50
53
|
currency_code: zod.string().nullish()
|
|
51
54
|
})
|
|
52
55
|
});
|
|
@@ -54,11 +57,35 @@ var CreateCampaignForm = () => {
|
|
|
54
57
|
const { t } = useTranslation();
|
|
55
58
|
const { handleSuccess } = useRouteModal();
|
|
56
59
|
const { mutateAsync, isPending } = useCreateCampaign();
|
|
60
|
+
const schema = useMemo(
|
|
61
|
+
() => zod.object({
|
|
62
|
+
name: zod.string().min(1, t("campaigns.validation.name_required")),
|
|
63
|
+
description: zod.string().optional(),
|
|
64
|
+
campaign_identifier: zod.string().min(1, t("campaigns.validation.identifier_required")),
|
|
65
|
+
starts_at: zod.date().nullable(),
|
|
66
|
+
ends_at: zod.date().nullable(),
|
|
67
|
+
budget: zod.object({
|
|
68
|
+
attribute: zod.string().nullish(),
|
|
69
|
+
limit: zod.number().min(0).nullish(),
|
|
70
|
+
type: zod.enum(["spend", "usage", "use_by_attribute"]),
|
|
71
|
+
currency_code: zod.string().nullish()
|
|
72
|
+
})
|
|
73
|
+
}).refine(
|
|
74
|
+
(data) => data.budget.type !== "spend" || !!data.budget.currency_code,
|
|
75
|
+
{
|
|
76
|
+
message: t("campaigns.validation.currency_required"),
|
|
77
|
+
path: ["budget", "currency_code"]
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
[t]
|
|
81
|
+
);
|
|
57
82
|
const form = useForm({
|
|
58
83
|
defaultValues: DEFAULT_CAMPAIGN_VALUES,
|
|
59
|
-
resolver: zodResolver(
|
|
84
|
+
resolver: zodResolver(schema)
|
|
60
85
|
});
|
|
61
86
|
const handleSubmit = form.handleSubmit(async (data) => {
|
|
87
|
+
const attribute = data.budget.attribute || null;
|
|
88
|
+
const type = attribute ? "use_by_attribute" : data.budget.type;
|
|
62
89
|
await mutateAsync(
|
|
63
90
|
{
|
|
64
91
|
name: data.name,
|
|
@@ -67,7 +94,8 @@ var CreateCampaignForm = () => {
|
|
|
67
94
|
starts_at: data.starts_at,
|
|
68
95
|
ends_at: data.ends_at,
|
|
69
96
|
budget: {
|
|
70
|
-
type
|
|
97
|
+
type,
|
|
98
|
+
attribute,
|
|
71
99
|
limit: data.budget.limit ? data.budget.limit : void 0,
|
|
72
100
|
currency_code: data.budget.currency_code
|
|
73
101
|
}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import {
|
|
2
|
+
StarRating,
|
|
3
|
+
getReviewStatusProps
|
|
4
|
+
} from "./chunk-G6J5ZKM3.js";
|
|
5
|
+
import {
|
|
6
|
+
useReviews
|
|
7
|
+
} from "./chunk-MVVFD2JT.js";
|
|
8
|
+
import {
|
|
9
|
+
StatusCell
|
|
10
|
+
} from "./chunk-DB6ANJBO.js";
|
|
11
|
+
import {
|
|
12
|
+
useCustomers
|
|
13
|
+
} from "./chunk-II3CLUXA.js";
|
|
14
|
+
|
|
15
|
+
// src/pages/reviews/review-list-page.tsx
|
|
16
|
+
import { Children } from "react";
|
|
17
|
+
import { SingleColumnPage } from "@mercurjs/dashboard-shared";
|
|
18
|
+
|
|
19
|
+
// src/pages/reviews/_components/review-list-table/review-list-table.tsx
|
|
20
|
+
import { Container } from "@medusajs/ui";
|
|
21
|
+
|
|
22
|
+
// src/pages/reviews/_components/review-list-table/review-list-header.tsx
|
|
23
|
+
import { useTranslation } from "react-i18next";
|
|
24
|
+
import { Heading } from "@medusajs/ui";
|
|
25
|
+
import { jsx } from "react/jsx-runtime";
|
|
26
|
+
var ReviewListHeader = () => {
|
|
27
|
+
const { t } = useTranslation();
|
|
28
|
+
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(Heading, { children: t("reviews.domain") }) }) });
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// src/pages/reviews/_components/review-list-table/review-list-data-table.tsx
|
|
32
|
+
import { useTranslation as useTranslation4 } from "react-i18next";
|
|
33
|
+
import { keepPreviousData } from "@tanstack/react-query";
|
|
34
|
+
import { Star } from "@medusajs/icons";
|
|
35
|
+
import { _DataTable, useDataTable } from "@mercurjs/dashboard-shared";
|
|
36
|
+
|
|
37
|
+
// src/pages/reviews/_components/review-list-table/use-review-table-columns.tsx
|
|
38
|
+
import { createColumnHelper } from "@tanstack/react-table";
|
|
39
|
+
import { useMemo } from "react";
|
|
40
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
41
|
+
import { Text } from "@medusajs/ui";
|
|
42
|
+
import { DateCell } from "@mercurjs/dashboard-shared";
|
|
43
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
44
|
+
var columnHelper = createColumnHelper();
|
|
45
|
+
var customerName = (customer) => {
|
|
46
|
+
if (!customer) {
|
|
47
|
+
return "-";
|
|
48
|
+
}
|
|
49
|
+
const name = [customer.first_name, customer.last_name].filter(Boolean).join(" ");
|
|
50
|
+
return name || customer.email || "-";
|
|
51
|
+
};
|
|
52
|
+
var useReviewTableColumns = () => {
|
|
53
|
+
const { t } = useTranslation2();
|
|
54
|
+
return useMemo(
|
|
55
|
+
() => [
|
|
56
|
+
columnHelper.accessor("display_id", {
|
|
57
|
+
header: () => /* @__PURE__ */ jsx2("span", { children: t("reviews.list.columns.reviewId") }),
|
|
58
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsxs(Text, { size: "small", leading: "compact", className: "truncate", children: [
|
|
59
|
+
"#",
|
|
60
|
+
getValue()
|
|
61
|
+
] })
|
|
62
|
+
}),
|
|
63
|
+
columnHelper.accessor("rating", {
|
|
64
|
+
header: () => /* @__PURE__ */ jsx2("span", { children: t("reviews.list.columns.rating") }),
|
|
65
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx2(StarRating, { rating: getValue() })
|
|
66
|
+
}),
|
|
67
|
+
columnHelper.accessor("customer_note", {
|
|
68
|
+
header: () => /* @__PURE__ */ jsx2("span", { children: t("reviews.list.columns.content") }),
|
|
69
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx2("div", { className: "w-[240px]", children: /* @__PURE__ */ jsx2(
|
|
70
|
+
Text,
|
|
71
|
+
{
|
|
72
|
+
size: "small",
|
|
73
|
+
leading: "compact",
|
|
74
|
+
className: "text-ui-fg-subtle line-clamp-3",
|
|
75
|
+
children: getValue() || "-"
|
|
76
|
+
}
|
|
77
|
+
) })
|
|
78
|
+
}),
|
|
79
|
+
columnHelper.accessor("customer", {
|
|
80
|
+
header: () => /* @__PURE__ */ jsx2("span", { children: t("reviews.list.columns.customer") }),
|
|
81
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", className: "truncate", children: customerName(getValue()) })
|
|
82
|
+
}),
|
|
83
|
+
columnHelper.accessor("created_at", {
|
|
84
|
+
header: () => /* @__PURE__ */ jsx2("span", { children: t("reviews.list.columns.date") }),
|
|
85
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx2(DateCell, { date: new Date(getValue()) })
|
|
86
|
+
}),
|
|
87
|
+
columnHelper.accessor("status", {
|
|
88
|
+
header: () => /* @__PURE__ */ jsx2("span", { children: t("reviews.list.columns.status") }),
|
|
89
|
+
cell: ({ getValue }) => {
|
|
90
|
+
const { color, label } = getReviewStatusProps(getValue(), t);
|
|
91
|
+
return /* @__PURE__ */ jsx2(StatusCell, { color, children: label });
|
|
92
|
+
}
|
|
93
|
+
}),
|
|
94
|
+
columnHelper.accessor("seller_note", {
|
|
95
|
+
header: () => /* @__PURE__ */ jsx2("span", { children: t("reviews.list.columns.response") }),
|
|
96
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx2("div", { className: "w-[240px]", children: /* @__PURE__ */ jsx2(
|
|
97
|
+
Text,
|
|
98
|
+
{
|
|
99
|
+
size: "small",
|
|
100
|
+
leading: "compact",
|
|
101
|
+
className: "text-ui-fg-subtle line-clamp-3",
|
|
102
|
+
children: getValue() || "-"
|
|
103
|
+
}
|
|
104
|
+
) })
|
|
105
|
+
})
|
|
106
|
+
],
|
|
107
|
+
[t]
|
|
108
|
+
);
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
// src/pages/reviews/_components/review-list-table/use-review-table-query.tsx
|
|
112
|
+
import { useQueryParams } from "@mercurjs/dashboard-shared";
|
|
113
|
+
var useReviewTableQuery = ({
|
|
114
|
+
prefix,
|
|
115
|
+
pageSize = 20
|
|
116
|
+
}) => {
|
|
117
|
+
const queryObject = useQueryParams(
|
|
118
|
+
["offset", "q", "status", "rating", "customer_id", "created_at", "order"],
|
|
119
|
+
prefix
|
|
120
|
+
);
|
|
121
|
+
const { offset, status, rating, customer_id, created_at, q, order } = queryObject;
|
|
122
|
+
const searchParams = {
|
|
123
|
+
limit: pageSize,
|
|
124
|
+
offset: offset ? Number(offset) : 0,
|
|
125
|
+
status: status ? status.split(",") : void 0,
|
|
126
|
+
rating: rating ? rating.split(",").map(Number) : void 0,
|
|
127
|
+
customer_id: customer_id ? customer_id.split(",") : void 0,
|
|
128
|
+
created_at: created_at ? JSON.parse(created_at) : void 0,
|
|
129
|
+
order: order ? order : "-display_id",
|
|
130
|
+
q
|
|
131
|
+
};
|
|
132
|
+
return {
|
|
133
|
+
searchParams,
|
|
134
|
+
raw: queryObject
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
// src/pages/reviews/_components/review-list-table/use-review-table-filters.tsx
|
|
139
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
140
|
+
import { useMemo as useMemo2 } from "react";
|
|
141
|
+
var customerLabel = (customer) => {
|
|
142
|
+
const name = [customer.first_name, customer.last_name].filter(Boolean).join(" ");
|
|
143
|
+
return name || customer.email || "-";
|
|
144
|
+
};
|
|
145
|
+
var useReviewTableFilters = () => {
|
|
146
|
+
const { t } = useTranslation3();
|
|
147
|
+
const { customers } = useCustomers({ limit: 100 });
|
|
148
|
+
return useMemo2(() => {
|
|
149
|
+
const ratingFilter = {
|
|
150
|
+
key: "rating",
|
|
151
|
+
label: t("reviews.list.columns.rating"),
|
|
152
|
+
type: "select",
|
|
153
|
+
multiple: true,
|
|
154
|
+
options: [5, 4, 3, 2, 1].map((value) => ({
|
|
155
|
+
label: t("reviews.filters.stars", { count: value }),
|
|
156
|
+
value: `${value}`
|
|
157
|
+
}))
|
|
158
|
+
};
|
|
159
|
+
const customerFilter = {
|
|
160
|
+
key: "customer_id",
|
|
161
|
+
label: t("reviews.list.columns.customer"),
|
|
162
|
+
type: "select",
|
|
163
|
+
multiple: true,
|
|
164
|
+
options: (customers ?? []).map((customer) => ({
|
|
165
|
+
label: customerLabel(customer),
|
|
166
|
+
value: customer.id
|
|
167
|
+
}))
|
|
168
|
+
};
|
|
169
|
+
const createdFilter = {
|
|
170
|
+
key: "created_at",
|
|
171
|
+
label: t("fields.createdAt"),
|
|
172
|
+
type: "date"
|
|
173
|
+
};
|
|
174
|
+
const statusFilter = {
|
|
175
|
+
key: "status",
|
|
176
|
+
label: t("reviews.list.columns.status"),
|
|
177
|
+
type: "select",
|
|
178
|
+
multiple: true,
|
|
179
|
+
options: [
|
|
180
|
+
{ label: t("reviews.status.published"), value: "published" },
|
|
181
|
+
{ label: t("reviews.status.pending"), value: "pending" },
|
|
182
|
+
{ label: t("reviews.status.rejected"), value: "rejected" }
|
|
183
|
+
]
|
|
184
|
+
};
|
|
185
|
+
return [ratingFilter, customerFilter, createdFilter, statusFilter];
|
|
186
|
+
}, [t, customers]);
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
// src/pages/reviews/_components/review-list-table/review-list-data-table.tsx
|
|
190
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
191
|
+
var PAGE_SIZE = 20;
|
|
192
|
+
var ReviewListDataTable = () => {
|
|
193
|
+
const { t } = useTranslation4();
|
|
194
|
+
const { raw, searchParams } = useReviewTableQuery({ pageSize: PAGE_SIZE });
|
|
195
|
+
const { reviews, count, isPending: isLoading, isError, error } = useReviews(
|
|
196
|
+
searchParams,
|
|
197
|
+
{
|
|
198
|
+
placeholderData: keepPreviousData
|
|
199
|
+
}
|
|
200
|
+
);
|
|
201
|
+
const columns = useReviewTableColumns();
|
|
202
|
+
const filters = useReviewTableFilters();
|
|
203
|
+
const { table } = useDataTable({
|
|
204
|
+
data: reviews ?? [],
|
|
205
|
+
columns,
|
|
206
|
+
count,
|
|
207
|
+
enablePagination: true,
|
|
208
|
+
getRowId: (row) => row.id,
|
|
209
|
+
pageSize: PAGE_SIZE
|
|
210
|
+
});
|
|
211
|
+
if (isError) {
|
|
212
|
+
throw error;
|
|
213
|
+
}
|
|
214
|
+
return /* @__PURE__ */ jsx3(
|
|
215
|
+
_DataTable,
|
|
216
|
+
{
|
|
217
|
+
table,
|
|
218
|
+
columns,
|
|
219
|
+
count,
|
|
220
|
+
pageSize: PAGE_SIZE,
|
|
221
|
+
pagination: true,
|
|
222
|
+
search: true,
|
|
223
|
+
filters,
|
|
224
|
+
navigateTo: (row) => `/reviews/${row.original.id}`,
|
|
225
|
+
isLoading,
|
|
226
|
+
queryObject: raw,
|
|
227
|
+
orderBy: [
|
|
228
|
+
{ key: "display_id", label: t("reviews.list.columns.reviewId") },
|
|
229
|
+
{ key: "created_at", label: t("fields.createdAt") },
|
|
230
|
+
{ key: "updated_at", label: t("fields.updatedAt") }
|
|
231
|
+
],
|
|
232
|
+
noRecords: {
|
|
233
|
+
title: t("reviews.list.noRecordsTitle"),
|
|
234
|
+
message: t("reviews.list.noRecordsMessage"),
|
|
235
|
+
icon: /* @__PURE__ */ jsx3(Star, { className: "text-ui-fg-subtle" })
|
|
236
|
+
},
|
|
237
|
+
noResults: {
|
|
238
|
+
title: t("reviews.list.noResultsTitle"),
|
|
239
|
+
message: t("reviews.list.noResultsMessage"),
|
|
240
|
+
icon: /* @__PURE__ */ jsx3(Star, { className: "text-ui-fg-subtle" })
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
);
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
// src/pages/reviews/_components/review-list-table/review-list-table.tsx
|
|
247
|
+
import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
248
|
+
var ReviewListTable = () => {
|
|
249
|
+
return /* @__PURE__ */ jsxs2(Container, { className: "divide-y p-0", children: [
|
|
250
|
+
/* @__PURE__ */ jsx4(ReviewListHeader, {}),
|
|
251
|
+
/* @__PURE__ */ jsx4(ReviewListDataTable, {})
|
|
252
|
+
] });
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
// src/pages/reviews/review-list-page.tsx
|
|
256
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
257
|
+
var Root = ({ children }) => {
|
|
258
|
+
return /* @__PURE__ */ jsx5(SingleColumnPage, { hasOutlet: true, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx5(ReviewListTable, {}) });
|
|
259
|
+
};
|
|
260
|
+
var ReviewListPage = Object.assign(Root, {
|
|
261
|
+
Table: ReviewListTable,
|
|
262
|
+
Header: ReviewListHeader,
|
|
263
|
+
DataTable: ReviewListDataTable
|
|
264
|
+
});
|
|
265
|
+
|
|
266
|
+
export {
|
|
267
|
+
ReviewListPage
|
|
268
|
+
};
|