@mercurjs/vendor 2.2.1 → 2.3.0-canary.1
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]-3TCOLUQH.js +197 -0
- package/dist/{[id]-YB3DBBXT.js → [id]-4QVLDR3S.js} +13 -10
- package/dist/{[id]-RJRAZN3T.js → [id]-4VX7CTRZ.js} +8 -6
- package/dist/{[id]-OE5TUWNF.js → [id]-5FP6JZM3.js} +9 -7
- package/dist/[id]-6FEVCKQU.js +949 -0
- package/dist/{[id]-47SUX5X3.js → [id]-7QVJAIDU.js} +13 -10
- package/dist/{[id]-BHU5BSQT.js → [id]-CFVBH66J.js} +20 -17
- package/dist/{[id]-SKU5SFBG.js → [id]-HAJ3735Z.js} +137 -204
- package/dist/{[id]-NGRV5I2A.js → [id]-PBNGQSNY.js} +9 -7
- package/dist/[id]-QGZ26C6D.js +286 -0
- package/dist/{[id]-ZD5HBP2R.js → [id]-RAJUZUNH.js} +13 -10
- package/dist/[id]-RJ3MUR4M.js +697 -0
- package/dist/{[id]-PIB2DEVI.js → [id]-RRVYKA7U.js} +12 -9
- package/dist/{[id]-BPQNQFVE.js → [id]-Y4HRAAV2.js} +75 -124
- package/dist/{[province_id]-CUWKNPBW.js → [province_id]-VWN4OOGM.js} +9 -7
- package/dist/{add-MYV5IOGP.js → add-57LM6WKL.js} +157 -227
- package/dist/{add-YEUSE5QA.js → add-7HIVF77P.js} +10 -8
- package/dist/{add-customer-groups-Q3F357F2.js → add-customer-groups-VJYI5J5Z.js} +8 -6
- package/dist/{add-products-WVNYODC6.js → add-products-XWU5ZUTZ.js} +13 -10
- package/dist/{add-promotions-F62YE3BE.js → add-promotions-DOJS6CEE.js} +27 -9
- package/dist/{add-to-campaign-WBSCTSKW.js → add-to-campaign-B3PGGNFA.js} +3 -2
- package/dist/{address-ZMZ4ST5T.js → address-X4TXBPUG.js} +7 -5
- 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-HMW2K4DW.js} +7 -5
- package/dist/{breadcrumb-KLNC72RI.js → breadcrumb-MH2L34OD.js} +2 -2
- package/dist/{breadcrumb-QPV566YX.js → breadcrumb-Q7FS3IDL.js} +8 -6
- package/dist/{breadcrumb-JWFTKHLE.js → breadcrumb-RQ52GELM.js} +2 -1
- package/dist/{breadcrumb-M6NW3DRQ.js → breadcrumb-WBUUK3AP.js} +1 -1
- package/dist/breadcrumb-XCPUUZUO.js +26 -0
- package/dist/{breadcrumb-MXYWEBK6.js → breadcrumb-Z2QUGZM3.js} +7 -5
- 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-XQUF3WIS.js → chunk-5ZHZVKNQ.js} +4 -0
- 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-OKJHUQBY.js → chunk-7JVJIAWS.js} +17 -29
- 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-PF7R7LMW.js → chunk-AHR2FIMC.js} +22 -0
- package/dist/{chunk-EJBOBB4B.js → chunk-AQT2G6K2.js} +46 -46
- package/dist/{chunk-UEKRQS5Q.js → chunk-ATYOOL7K.js} +2 -2
- package/dist/chunk-BR6PEFXX.js +27 -0
- package/dist/{chunk-SDFZUBS3.js → chunk-CDZALZ5E.js} +1 -1
- package/dist/{chunk-3XW55FZY.js → chunk-CRVVPIFZ.js} +6 -6
- package/dist/{chunk-72HQFLZI.js → chunk-CSEB2RNO.js} +1 -1
- package/dist/{chunk-X6ZQMFCT.js → chunk-DAOSTHVB.js} +44 -25
- package/dist/{chunk-UUBGLS7U.js → chunk-EWJTXSKI.js} +211 -36
- 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-SVYBMLVN.js → chunk-HHCLMWXT.js} +1 -1
- 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-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-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-GTNCNKTC.js → chunk-RBWIHKUF.js} +1 -1
- 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-UTGI6R2X.js +334 -0
- 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-FEVCBT24.js → chunk-X4G64W5Q.js} +2 -2
- 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-5TH7H2QP.js} +14 -13
- 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-A6KZEZMH.js} +7 -6
- package/dist/{create-LYNWCP2N.js → create-BTODQ4T4.js} +6 -5
- package/dist/{create-2I3GAX4C.js → create-FI6H4AJE.js} +16 -7
- package/dist/{create-6IRD2CVC.js → create-GF76Z5I7.js} +15 -13
- package/dist/create-ICCAEOSA.js +343 -0
- package/dist/{create-NTZH45DW.js → create-JZLU44WB.js} +14 -12
- package/dist/{create-GEYXN6SW.js → create-ME43PNL6.js} +7 -5
- package/dist/{create-MFGMTZ5A.js → create-MIYJCLAJ.js} +8 -6
- package/dist/{create-7SJ5DSQK.js → create-PRDQJ5WI.js} +20 -17
- package/dist/{create-S7VYYTUD.js → create-Q6B6JR4K.js} +10 -8
- package/dist/{create-5RQ32XPT.js → create-SKQAJNDF.js} +287 -287
- package/dist/{create-7FT7N2NH.js → create-WPN3OUJU.js} +3 -2
- package/dist/{create-H77ZUZG5.js → create-XBGN6XEF.js} +10 -8
- 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-WHGYNDEB.js → edit-3S3EH372.js} +20 -17
- package/dist/{edit-MPOTIGUY.js → edit-4WP5SGH6.js} +23 -39
- package/dist/{edit-QBUYHSE7.js → edit-7D2OZBJS.js} +8 -6
- package/dist/{edit-2RN3OT27.js → edit-7T2JMZG3.js} +7 -56
- package/dist/edit-AK4E63X6.js +179 -0
- package/dist/{edit-NB5VN2E4.js → edit-DRT6VOAA.js} +5 -4
- package/dist/{edit-EGBVEWXS.js → edit-GBDHDJK4.js} +9 -7
- package/dist/{edit-TIBQEQVV.js → edit-P7FNRVGB.js} +10 -8
- package/dist/{edit-6VJWRZHQ.js → edit-PZN7UAJI.js} +7 -5
- package/dist/{edit-M4AP65HO.js → edit-RNSXXJVU.js} +8 -6
- package/dist/edit-SKRFQ4WN.js +81 -0
- 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-price-GLAEAO7R.js → edit-price-KY7LX5QA.js} +2 -2
- package/dist/edit-reservation-LSYQUDYQ.js +294 -0
- package/dist/{edit-stock-E3PM2YOP.js → edit-stock-77VKJR4Z.js} +2 -2
- package/dist/extension-targets.d.ts +6 -3
- package/dist/{fulfillment-HDU7GATG.js → fulfillment-DEGKZL42.js} +7 -5
- package/dist/{fulfillment-providers-6RZNNT7U.js → fulfillment-providers-LDFPZGNX.js} +12 -11
- package/dist/index.css +17 -14
- package/dist/index.js +265 -155
- package/dist/{inventory-XJ2E6DPC.js → inventory-CMIRAJJY.js} +2 -2
- package/dist/{inventory-CKA34HWM.js → inventory-RKAUTQAU.js} +2 -2
- package/dist/{invite-755AJC3M.js → invite-KAHF2MCE.js} +7 -5
- package/dist/{invite-FD2TXZTW.js → invite-S5O7LFEY.js} +10 -8
- package/dist/{loader-UUSAVCK6.js → loader-3BXYSKPT.js} +1 -1
- package/dist/{loader-B4T2VBGV.js → loader-CF54CDM6.js} +2 -2
- package/dist/{login-UGKYRKMD.js → login-CRSALS6Y.js} +9 -7
- package/dist/manage-items-63FPRK7Z.js +302 -0
- package/dist/{manage-locations-PRQI5TI4.js → manage-locations-5B4HP6NQ.js} +24 -5
- package/dist/{media-TGFAHFBV.js → media-74PEXOLV.js} +8 -6
- package/dist/{media-2KEHXPRU.js → media-NKCXFG6X.js} +11 -9
- package/dist/{metadata-7JWZ4VFM.js → metadata-22BCBKVE.js} +7 -5
- package/dist/{metadata-BQQFHVKF.js → metadata-E3BDAMIO.js} +7 -5
- package/dist/{metadata-5TVRCKWX.js → metadata-FRXIY35J.js} +7 -5
- package/dist/{metadata-4ZZ4ZIWJ.js → metadata-L6IA2Z26.js} +7 -5
- package/dist/metadata-WN6Y35RV.js +69 -0
- package/dist/{metadata-G73TILNE.js → metadata-ZZMJNWS3.js} +7 -5
- package/dist/{offer-create-page-PPXRYET4.js → offer-create-page-N5CKYGSS.js} +12 -9
- package/dist/{offer-detail-page-BFGKAS4L.js → offer-detail-page-AJG6TMJC.js} +3 -3
- package/dist/{offer-variant-detail-page-BLHRF4MK.js → offer-variant-detail-page-CEOS2MVM.js} +40 -8
- package/dist/{offers-7I67VSHI.js → offers-WFJ6UGVG.js} +15 -11
- package/dist/{onboarding-7MURQYXX.js → onboarding-2AZ2KEWJ.js} +7 -5
- package/dist/{orders-D7NZNDUS.js → orders-NWYLN6BE.js} +13 -12
- package/dist/{organization-T6ZTYMMW.js → organization-PAWIWKHV.js} +9 -7
- package/dist/pages/index.d.ts +9 -1
- package/dist/pages/index.js +57 -48
- package/dist/{payment-details-UQ65D5AY.js → payment-details-O57HNHWS.js} +7 -5
- 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-3NLEJYRP.js → pricing-C425JTFQ.js} +2 -2
- package/dist/{pricing-CPPIL627.js → pricing-PDOCJEDS.js} +9 -7
- package/dist/{product-tags-7DTA73YT.js → product-tags-MMQ4ZR4W.js} +20 -17
- package/dist/{product-types-OB26NF2D.js → product-types-CMI33S32.js} +3 -4
- package/dist/{product-variant-detail-4DDE6RJ5.js → product-variant-detail-D73ILATK.js} +7 -5
- package/dist/{product-variant-edit-SAZUI4E3.js → product-variant-edit-XN6WGKI2.js} +10 -8
- package/dist/{products-RYXTZFGT.js → products-OZJHGW2K.js} +19 -16
- package/dist/{products-GJ2KTGBZ.js → products-VWH5TAFY.js} +13 -10
- package/dist/{professional-details-UN5B4YDJ.js → professional-details-ZJT6YKZB.js} +7 -5
- package/dist/{profile-6MIDTK52.js → profile-EU46MXFW.js} +7 -5
- package/dist/{promotions-SQ47TCZL.js → promotions-ALWQ7J7A.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-C6ON6OL2.js} +9 -7
- package/dist/reservations-C326XEVA.js +350 -0
- package/dist/{reset-password-C462PDN2.js → reset-password-ASLKY3GK.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-Q5GAL2LK.js} +28 -25
- package/dist/{shipment-6CTA2GHU.js → shipment-XOU6F7AS.js} +7 -5
- package/dist/{shipping-TKKMYQHJ.js → shipping-IMCP7UDV.js} +2 -2
- package/dist/{shipping-profile-CFISOMTE.js → shipping-profile-7P3RPEIJ.js} +1 -1
- package/dist/{shipping-profiles-5UAZNYKJ.js → shipping-profiles-647FLCNK.js} +9 -7
- package/dist/{stock-465GEUY3.js → stock-D3HCV5UR.js} +22 -8
- package/dist/{store-2PQB2XWE.js → store-XBNFP6O4.js} +8 -6
- package/dist/{store-closure-DYW54VHB.js → store-closure-55EUSKE4.js} +7 -5
- package/dist/{store-select-6A5YR7WH.js → store-select-DEOEGT2O.js} +8 -6
- package/dist/{team-GXEBC57M.js → team-7MJ3NJUT.js} +10 -8
- 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-735HBYH2.js +0 -103
- package/dist/edit-SQU5UOGE.js +0 -105
- package/dist/{chunk-CYE7HVAV.js → chunk-SCJBJQCL.js} +3 -3
|
@@ -6,17 +6,17 @@ import {
|
|
|
6
6
|
} from "./chunk-BI2AYXZQ.js";
|
|
7
7
|
import {
|
|
8
8
|
useProductTagTableFilters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4UKAKFKL.js";
|
|
10
10
|
import {
|
|
11
11
|
SingleColumnPage
|
|
12
12
|
} from "./chunk-YV6MK4PZ.js";
|
|
13
13
|
import {
|
|
14
14
|
_DataTable,
|
|
15
15
|
useDataTable
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6GQLSWOO.js";
|
|
17
17
|
import {
|
|
18
18
|
useProductTags
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6YQR2AWM.js";
|
|
20
20
|
|
|
21
21
|
// src/pages/settings/product-tags/product-tag-list-page.tsx
|
|
22
22
|
import { Children as Children3 } from "react";
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
campaignStatus,
|
|
3
|
+
statusColor
|
|
4
|
+
} from "./chunk-WP3B4NEU.js";
|
|
1
5
|
import {
|
|
2
6
|
TextCell,
|
|
3
7
|
TextHeader
|
|
@@ -11,6 +15,7 @@ import {
|
|
|
11
15
|
|
|
12
16
|
// src/hooks/table/columns/use-campaign-table-columns.tsx
|
|
13
17
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
18
|
+
import { StatusBadge } from "@medusajs/ui";
|
|
14
19
|
import { useMemo } from "react";
|
|
15
20
|
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
16
21
|
|
|
@@ -64,6 +69,19 @@ var useCampaignTableColumns = () => {
|
|
|
64
69
|
return /* @__PURE__ */ jsx3(TextCell, { text: value });
|
|
65
70
|
}
|
|
66
71
|
}),
|
|
72
|
+
columnHelper.display({
|
|
73
|
+
id: "type",
|
|
74
|
+
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t("campaigns.fields.type") }),
|
|
75
|
+
cell: ({ row }) => {
|
|
76
|
+
const type = row.original.budget?.type;
|
|
77
|
+
return /* @__PURE__ */ jsx3(
|
|
78
|
+
TextCell,
|
|
79
|
+
{
|
|
80
|
+
text: type ? t(`campaigns.budget.type.${type}.title`) : "-"
|
|
81
|
+
}
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
}),
|
|
67
85
|
columnHelper.accessor("starts_at", {
|
|
68
86
|
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t("campaigns.fields.start_date") }),
|
|
69
87
|
cell: ({ getValue }) => {
|
|
@@ -85,6 +103,14 @@ var useCampaignTableColumns = () => {
|
|
|
85
103
|
const date = new Date(value);
|
|
86
104
|
return /* @__PURE__ */ jsx3(DateCell, { date });
|
|
87
105
|
}
|
|
106
|
+
}),
|
|
107
|
+
columnHelper.display({
|
|
108
|
+
id: "status",
|
|
109
|
+
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t("fields.status") }),
|
|
110
|
+
cell: ({ row }) => {
|
|
111
|
+
const status = campaignStatus(row.original);
|
|
112
|
+
return /* @__PURE__ */ jsx3(StatusBadge, { color: statusColor(status), children: t(`campaigns.status.${status}`) });
|
|
113
|
+
}
|
|
88
114
|
})
|
|
89
115
|
],
|
|
90
116
|
[t]
|
|
@@ -8,6 +8,8 @@ var OFFER_DETAIL_FIELDS = [
|
|
|
8
8
|
"variant_id",
|
|
9
9
|
"seller_id",
|
|
10
10
|
"shipping_profile_id",
|
|
11
|
+
"manage_inventory",
|
|
12
|
+
"allow_backorder",
|
|
11
13
|
"metadata",
|
|
12
14
|
"created_at",
|
|
13
15
|
"updated_at",
|
|
@@ -51,6 +53,8 @@ var OFFER_VARIANT_DETAIL_FIELDS = [
|
|
|
51
53
|
"variant_id",
|
|
52
54
|
"seller_id",
|
|
53
55
|
"shipping_profile_id",
|
|
56
|
+
"manage_inventory",
|
|
57
|
+
"allow_backorder",
|
|
54
58
|
"metadata",
|
|
55
59
|
"created_at",
|
|
56
60
|
"updated_at",
|
|
@@ -758,7 +758,7 @@ var SelectFilter = ({
|
|
|
758
758
|
return /* @__PURE__ */ jsxs4(
|
|
759
759
|
Command.Item,
|
|
760
760
|
{
|
|
761
|
-
className: "bg-ui-bg-base hover:bg-ui-bg-base-hover aria-selected:bg-ui-bg-base-pressed focus-visible:bg-ui-bg-base-pressed text-ui-fg-base data-[disabled]:text-ui-fg-disabled txt-compact-small relative flex cursor-pointer select-none items-center gap-x-2 rounded-md px-2 py-1.5 outline-none transition-colors data-[disabled]:pointer-events-none",
|
|
761
|
+
className: "bg-ui-bg-base hover:bg-ui-bg-base-hover aria-selected:bg-ui-bg-base-pressed focus-visible:bg-ui-bg-base-pressed text-ui-fg-base data-[disabled=true]:text-ui-fg-disabled txt-compact-small relative flex cursor-pointer select-none items-center gap-x-2 rounded-md px-2 py-1.5 outline-none transition-colors data-[disabled=true]:pointer-events-none",
|
|
762
762
|
value: option.label,
|
|
763
763
|
onSelect: () => {
|
|
764
764
|
handleSelect(option.value);
|
|
File without changes
|
|
@@ -155,34 +155,18 @@ var productVariantQueryKeys = queryKeysFactory(
|
|
|
155
155
|
PRODUCT_VARIANT_QUERY_KEY
|
|
156
156
|
);
|
|
157
157
|
|
|
158
|
-
// src/hooks/api/
|
|
158
|
+
// src/hooks/api/shipping-option-types.tsx
|
|
159
159
|
import {
|
|
160
160
|
useMutation as useMutation4,
|
|
161
161
|
useQuery as useQuery7
|
|
162
162
|
} from "@tanstack/react-query";
|
|
163
|
-
var REGIONS_QUERY_KEY = "regions";
|
|
164
|
-
var regionsQueryKeys = queryKeysFactory(REGIONS_QUERY_KEY);
|
|
165
|
-
var useRegions = (query, options) => {
|
|
166
|
-
const { data, ...rest } = useQuery7({
|
|
167
|
-
queryFn: () => sdk.vendor.regions.query({ ...query }),
|
|
168
|
-
queryKey: regionsQueryKeys.list(query),
|
|
169
|
-
...options
|
|
170
|
-
});
|
|
171
|
-
return { ...data, ...rest };
|
|
172
|
-
};
|
|
173
|
-
|
|
174
|
-
// src/hooks/api/shipping-option-types.tsx
|
|
175
|
-
import {
|
|
176
|
-
useMutation as useMutation5,
|
|
177
|
-
useQuery as useQuery8
|
|
178
|
-
} from "@tanstack/react-query";
|
|
179
163
|
var SHIPPING_OPTION_TYPES_QUERY_KEY = "shipping_option_types";
|
|
180
164
|
var shippingOptionTypesQueryKeys = queryKeysFactory(
|
|
181
165
|
SHIPPING_OPTION_TYPES_QUERY_KEY
|
|
182
166
|
);
|
|
183
167
|
|
|
184
168
|
// src/hooks/api/store.tsx
|
|
185
|
-
import { useQuery as
|
|
169
|
+
import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
186
170
|
import { ClientError } from "@mercurjs/client";
|
|
187
171
|
var STORE_QUERY_KEY = "store";
|
|
188
172
|
var storeQueryKeys = queryKeysFactory(STORE_QUERY_KEY);
|
|
@@ -195,7 +179,7 @@ async function retrieveActiveStore(query) {
|
|
|
195
179
|
return { store: activeStore };
|
|
196
180
|
}
|
|
197
181
|
var useStore = (query, options) => {
|
|
198
|
-
const { data, ...rest } =
|
|
182
|
+
const { data, ...rest } = useQuery8({
|
|
199
183
|
queryFn: () => retrieveActiveStore(query),
|
|
200
184
|
queryKey: storeQueryKeys.details(),
|
|
201
185
|
...options
|
|
@@ -213,7 +197,6 @@ export {
|
|
|
213
197
|
useCreateInvite,
|
|
214
198
|
notificationQueryKeys,
|
|
215
199
|
useNotifications,
|
|
216
|
-
useRegions,
|
|
217
200
|
storeQueryKeys,
|
|
218
201
|
retrieveActiveStore,
|
|
219
202
|
useStore,
|
|
@@ -13,6 +13,13 @@ var useDateTableFilters = () => {
|
|
|
13
13
|
return dateFilters;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
+
// src/hooks/table/filters/use-product-type-table-filters.tsx
|
|
17
|
+
var useProductTypeTableFilters = () => {
|
|
18
|
+
const dateFilters = useDateTableFilters();
|
|
19
|
+
return dateFilters;
|
|
20
|
+
};
|
|
21
|
+
|
|
16
22
|
export {
|
|
17
|
-
useDateTableFilters
|
|
23
|
+
useDateTableFilters,
|
|
24
|
+
useProductTypeTableFilters
|
|
18
25
|
};
|
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OFFERS_PAGE_SIZE,
|
|
3
3
|
OFFER_PRODUCT_LIST_FIELDS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5ZHZVKNQ.js";
|
|
5
5
|
import {
|
|
6
6
|
CategoryCell,
|
|
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";
|
|
@@ -32,20 +29,11 @@ import {
|
|
|
32
29
|
} from "./chunk-BDGZ4EQO.js";
|
|
33
30
|
import {
|
|
34
31
|
useBulkDeleteOffers
|
|
35
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-AHR2FIMC.js";
|
|
36
33
|
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
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
queryKeysFactory
|
|
3
|
+
} from "./chunk-ZA2KFUFR.js";
|
|
4
|
+
import {
|
|
5
|
+
sdk
|
|
6
|
+
} from "./chunk-DTGEFKK4.js";
|
|
7
|
+
|
|
8
|
+
// src/hooks/api/regions.tsx
|
|
9
|
+
import {
|
|
10
|
+
useMutation,
|
|
11
|
+
useQuery
|
|
12
|
+
} from "@tanstack/react-query";
|
|
13
|
+
var REGIONS_QUERY_KEY = "regions";
|
|
14
|
+
var regionsQueryKeys = queryKeysFactory(REGIONS_QUERY_KEY);
|
|
15
|
+
var useRegions = (query, options) => {
|
|
16
|
+
const { data, ...rest } = useQuery({
|
|
17
|
+
queryFn: () => sdk.vendor.regions.query({ ...query }),
|
|
18
|
+
queryKey: regionsQueryKeys.list(query),
|
|
19
|
+
...options
|
|
20
|
+
});
|
|
21
|
+
return { ...data, ...rest };
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
useRegions
|
|
26
|
+
};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import {
|
|
2
|
+
inventoryItemLevelsQueryKeys,
|
|
3
|
+
inventoryItemsQueryKeys
|
|
4
|
+
} from "./chunk-EMUCGKHP.js";
|
|
5
|
+
import {
|
|
6
|
+
queryClient
|
|
7
|
+
} from "./chunk-RHKRREUU.js";
|
|
8
|
+
import {
|
|
9
|
+
queryKeysFactory
|
|
10
|
+
} from "./chunk-ZA2KFUFR.js";
|
|
11
|
+
import {
|
|
12
|
+
sdk
|
|
13
|
+
} from "./chunk-DTGEFKK4.js";
|
|
14
|
+
|
|
15
|
+
// src/hooks/api/reservations.tsx
|
|
16
|
+
import {
|
|
17
|
+
useMutation,
|
|
18
|
+
useQuery
|
|
19
|
+
} from "@tanstack/react-query";
|
|
20
|
+
var RESERVATION_ITEMS_QUERY_KEY = "reservation_items";
|
|
21
|
+
var reservationItemsQueryKeys = queryKeysFactory(
|
|
22
|
+
RESERVATION_ITEMS_QUERY_KEY
|
|
23
|
+
);
|
|
24
|
+
var useReservationItem = (id, query, options) => {
|
|
25
|
+
const { data, ...rest } = useQuery({
|
|
26
|
+
queryKey: reservationItemsQueryKeys.detail(id, query),
|
|
27
|
+
queryFn: async () => sdk.vendor.reservations.$id.query({ $id: id, ...query }),
|
|
28
|
+
...options
|
|
29
|
+
});
|
|
30
|
+
return { ...data, ...rest };
|
|
31
|
+
};
|
|
32
|
+
var useReservationItems = (query, options) => {
|
|
33
|
+
const { data, ...rest } = useQuery({
|
|
34
|
+
queryFn: () => sdk.vendor.reservations.query({ ...query }),
|
|
35
|
+
queryKey: reservationItemsQueryKeys.list(query),
|
|
36
|
+
...options
|
|
37
|
+
});
|
|
38
|
+
return { ...data, ...rest };
|
|
39
|
+
};
|
|
40
|
+
var useUpdateReservationItem = (id, options) => {
|
|
41
|
+
return useMutation({
|
|
42
|
+
mutationFn: (payload) => sdk.vendor.reservations.$id.mutate({ $id: id, ...payload }),
|
|
43
|
+
onSuccess: (data, variables, context) => {
|
|
44
|
+
queryClient.invalidateQueries({
|
|
45
|
+
queryKey: reservationItemsQueryKeys.detail(id)
|
|
46
|
+
});
|
|
47
|
+
queryClient.invalidateQueries({
|
|
48
|
+
queryKey: reservationItemsQueryKeys.lists()
|
|
49
|
+
});
|
|
50
|
+
queryClient.invalidateQueries({
|
|
51
|
+
queryKey: inventoryItemsQueryKeys.details()
|
|
52
|
+
});
|
|
53
|
+
queryClient.invalidateQueries({
|
|
54
|
+
queryKey: inventoryItemLevelsQueryKeys.details()
|
|
55
|
+
});
|
|
56
|
+
options?.onSuccess?.(data, variables, context);
|
|
57
|
+
},
|
|
58
|
+
...options
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
var useCreateReservationItem = (options) => {
|
|
62
|
+
return useMutation({
|
|
63
|
+
mutationFn: (payload) => sdk.vendor.reservations.mutate(payload),
|
|
64
|
+
onSuccess: (data, variables, context) => {
|
|
65
|
+
queryClient.invalidateQueries({
|
|
66
|
+
queryKey: reservationItemsQueryKeys.lists()
|
|
67
|
+
});
|
|
68
|
+
queryClient.invalidateQueries({
|
|
69
|
+
queryKey: inventoryItemsQueryKeys.details()
|
|
70
|
+
});
|
|
71
|
+
queryClient.invalidateQueries({
|
|
72
|
+
queryKey: inventoryItemLevelsQueryKeys.details()
|
|
73
|
+
});
|
|
74
|
+
options?.onSuccess?.(data, variables, context);
|
|
75
|
+
},
|
|
76
|
+
...options
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
var useDeleteReservationItem = (id, options) => {
|
|
80
|
+
return useMutation({
|
|
81
|
+
mutationFn: () => sdk.vendor.reservations.$id.delete({ $id: id }),
|
|
82
|
+
onSuccess: (data, variables, context) => {
|
|
83
|
+
queryClient.invalidateQueries({
|
|
84
|
+
queryKey: reservationItemsQueryKeys.lists()
|
|
85
|
+
});
|
|
86
|
+
queryClient.invalidateQueries({
|
|
87
|
+
queryKey: reservationItemsQueryKeys.detail(id)
|
|
88
|
+
});
|
|
89
|
+
queryClient.invalidateQueries({
|
|
90
|
+
queryKey: inventoryItemsQueryKeys.details()
|
|
91
|
+
});
|
|
92
|
+
queryClient.invalidateQueries({
|
|
93
|
+
queryKey: inventoryItemLevelsQueryKeys.details()
|
|
94
|
+
});
|
|
95
|
+
options?.onSuccess?.(data, variables, context);
|
|
96
|
+
},
|
|
97
|
+
...options
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export {
|
|
102
|
+
reservationItemsQueryKeys,
|
|
103
|
+
useReservationItem,
|
|
104
|
+
useReservationItems,
|
|
105
|
+
useUpdateReservationItem,
|
|
106
|
+
useCreateReservationItem,
|
|
107
|
+
useDeleteReservationItem
|
|
108
|
+
};
|
|
@@ -68,6 +68,27 @@ var useUpdateOffer = (id, options) => {
|
|
|
68
68
|
...options
|
|
69
69
|
});
|
|
70
70
|
};
|
|
71
|
+
var useBatchOfferInventoryItems = (id, options) => {
|
|
72
|
+
return useMutation({
|
|
73
|
+
mutationFn: (payload) => sdk.vendor.offers.$id.inventoryItems.batch.mutate({
|
|
74
|
+
$id: id,
|
|
75
|
+
...payload
|
|
76
|
+
}),
|
|
77
|
+
onSuccess: (data, variables, context) => {
|
|
78
|
+
queryClient.invalidateQueries({
|
|
79
|
+
queryKey: offerQueryKeys.lists()
|
|
80
|
+
});
|
|
81
|
+
queryClient.invalidateQueries({
|
|
82
|
+
queryKey: productsQueryKeys.all
|
|
83
|
+
});
|
|
84
|
+
queryClient.invalidateQueries({
|
|
85
|
+
queryKey: offerQueryKeys.detail(id)
|
|
86
|
+
});
|
|
87
|
+
options?.onSuccess?.(data, variables, context);
|
|
88
|
+
},
|
|
89
|
+
...options
|
|
90
|
+
});
|
|
91
|
+
};
|
|
71
92
|
var useBulkDeleteOffers = (options) => {
|
|
72
93
|
return useMutation({
|
|
73
94
|
mutationFn: async (ids) => {
|
|
@@ -106,5 +127,6 @@ export {
|
|
|
106
127
|
useOffer,
|
|
107
128
|
useBulkCreateOffers,
|
|
108
129
|
useUpdateOffer,
|
|
130
|
+
useBatchOfferInventoryItems,
|
|
109
131
|
useBulkDeleteOffers
|
|
110
132
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPromotionStatus,
|
|
3
3
|
getPromotionType
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-RBWIHKUF.js";
|
|
5
5
|
import {
|
|
6
6
|
TextCell,
|
|
7
7
|
TextHeader
|
|
@@ -13,51 +13,6 @@ import {
|
|
|
13
13
|
useQueryParams
|
|
14
14
|
} from "./chunk-THHRRYRS.js";
|
|
15
15
|
|
|
16
|
-
// src/hooks/table/query/use-promotion-table-query.tsx
|
|
17
|
-
var usePromotionTableQuery = ({
|
|
18
|
-
prefix,
|
|
19
|
-
pageSize = 20
|
|
20
|
-
}) => {
|
|
21
|
-
const queryObject = useQueryParams(
|
|
22
|
-
[
|
|
23
|
-
"offset",
|
|
24
|
-
"q",
|
|
25
|
-
"order",
|
|
26
|
-
"created_at",
|
|
27
|
-
"updated_at",
|
|
28
|
-
"campaign_id",
|
|
29
|
-
"is_automatic",
|
|
30
|
-
"application_method_type"
|
|
31
|
-
],
|
|
32
|
-
prefix
|
|
33
|
-
);
|
|
34
|
-
const {
|
|
35
|
-
offset,
|
|
36
|
-
q,
|
|
37
|
-
order,
|
|
38
|
-
created_at,
|
|
39
|
-
updated_at,
|
|
40
|
-
campaign_id,
|
|
41
|
-
is_automatic,
|
|
42
|
-
application_method_type
|
|
43
|
-
} = queryObject;
|
|
44
|
-
const searchParams = {
|
|
45
|
-
limit: pageSize,
|
|
46
|
-
created_at: created_at ? JSON.parse(created_at) : void 0,
|
|
47
|
-
updated_at: updated_at ? JSON.parse(updated_at) : void 0,
|
|
48
|
-
campaign_id: campaign_id || void 0,
|
|
49
|
-
is_automatic: is_automatic ? is_automatic === "true" : void 0,
|
|
50
|
-
application_method: application_method_type ? { type: application_method_type } : void 0,
|
|
51
|
-
offset: offset ? Number(offset) : 0,
|
|
52
|
-
order: order || "-created_at",
|
|
53
|
-
q
|
|
54
|
-
};
|
|
55
|
-
return {
|
|
56
|
-
searchParams,
|
|
57
|
-
raw: queryObject
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
|
|
61
16
|
// src/hooks/table/columns/use-promotion-table-columns.tsx
|
|
62
17
|
import { createColumnHelper } from "@tanstack/react-table";
|
|
63
18
|
import { useMemo } from "react";
|
|
@@ -120,6 +75,51 @@ var usePromotionTableColumns = () => {
|
|
|
120
75
|
);
|
|
121
76
|
};
|
|
122
77
|
|
|
78
|
+
// src/hooks/table/query/use-promotion-table-query.tsx
|
|
79
|
+
var usePromotionTableQuery = ({
|
|
80
|
+
prefix,
|
|
81
|
+
pageSize = 20
|
|
82
|
+
}) => {
|
|
83
|
+
const queryObject = useQueryParams(
|
|
84
|
+
[
|
|
85
|
+
"offset",
|
|
86
|
+
"q",
|
|
87
|
+
"order",
|
|
88
|
+
"created_at",
|
|
89
|
+
"updated_at",
|
|
90
|
+
"campaign_id",
|
|
91
|
+
"is_automatic",
|
|
92
|
+
"application_method_type"
|
|
93
|
+
],
|
|
94
|
+
prefix
|
|
95
|
+
);
|
|
96
|
+
const {
|
|
97
|
+
offset,
|
|
98
|
+
q,
|
|
99
|
+
order,
|
|
100
|
+
created_at,
|
|
101
|
+
updated_at,
|
|
102
|
+
campaign_id,
|
|
103
|
+
is_automatic,
|
|
104
|
+
application_method_type
|
|
105
|
+
} = queryObject;
|
|
106
|
+
const searchParams = {
|
|
107
|
+
limit: pageSize,
|
|
108
|
+
created_at: created_at ? JSON.parse(created_at) : void 0,
|
|
109
|
+
updated_at: updated_at ? JSON.parse(updated_at) : void 0,
|
|
110
|
+
campaign_id: campaign_id || void 0,
|
|
111
|
+
is_automatic: is_automatic ? is_automatic === "true" : void 0,
|
|
112
|
+
application_method: application_method_type ? { type: application_method_type } : void 0,
|
|
113
|
+
offset: offset ? Number(offset) : 0,
|
|
114
|
+
order: order || "-created_at",
|
|
115
|
+
q
|
|
116
|
+
};
|
|
117
|
+
return {
|
|
118
|
+
searchParams,
|
|
119
|
+
raw: queryObject
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
|
|
123
123
|
export {
|
|
124
124
|
usePromotionTableColumns,
|
|
125
125
|
usePromotionTableQuery
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-AJLGY3LQ.js";
|
|
4
4
|
import {
|
|
5
5
|
i18n
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-EWJTXSKI.js";
|
|
7
7
|
import {
|
|
8
8
|
require_dist
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VH3TGSWE.js";
|
|
10
10
|
import {
|
|
11
11
|
__toESM
|
|
12
12
|
} from "./chunk-NBMM2TZK.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OfferListActions,
|
|
3
|
+
OfferListDataTable,
|
|
4
|
+
OfferListHeader,
|
|
5
|
+
OfferListTable,
|
|
6
|
+
OfferListTitle
|
|
7
|
+
} from "./chunk-7JVJIAWS.js";
|
|
8
|
+
import {
|
|
9
|
+
SingleColumnPage
|
|
10
|
+
} from "./chunk-YV6MK4PZ.js";
|
|
11
|
+
|
|
12
|
+
// src/pages/offers/offer-list-page.tsx
|
|
13
|
+
import { Children } from "react";
|
|
14
|
+
import { WidgetZone } from "@mercurjs/dashboard-shared";
|
|
15
|
+
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
var Root = ({ children }) => /* @__PURE__ */ jsx(SingleColumnPage, { children: /* @__PURE__ */ jsx(WidgetZone, { id: "offers.list", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx(OfferListTable, {}) }) });
|
|
17
|
+
var OfferListPage = Object.assign(Root, {
|
|
18
|
+
Table: OfferListTable,
|
|
19
|
+
Header: OfferListHeader,
|
|
20
|
+
HeaderTitle: OfferListTitle,
|
|
21
|
+
HeaderActions: OfferListActions,
|
|
22
|
+
DataTable: OfferListDataTable
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
OfferListPage
|
|
27
|
+
};
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
} from "./chunk-OVPAOBZB.js";
|
|
20
20
|
import {
|
|
21
21
|
UploadMediaFormItem
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-HHCLMWXT.js";
|
|
23
23
|
import {
|
|
24
24
|
PRODUCT_CREATE_FORM_DEFAULTS,
|
|
25
25
|
ProductCreateSchema,
|
|
26
26
|
generateVariantsFromAttributes,
|
|
27
27
|
normalizeProductFormValues
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ATYOOL7K.js";
|
|
29
29
|
import {
|
|
30
30
|
ChipInput
|
|
31
31
|
} from "./chunk-KDE4HKH2.js";
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
} from "./chunk-4OQLPIUZ.js";
|
|
36
36
|
import {
|
|
37
37
|
Combobox
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-VAFGNDAP.js";
|
|
39
39
|
import {
|
|
40
40
|
TabbedForm,
|
|
41
41
|
useTabbedForm
|
|
@@ -52,16 +52,16 @@ import {
|
|
|
52
52
|
import {
|
|
53
53
|
_DataTable,
|
|
54
54
|
useDataTable
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-6GQLSWOO.js";
|
|
56
56
|
import {
|
|
57
57
|
require_dist
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-VH3TGSWE.js";
|
|
59
59
|
import {
|
|
60
60
|
ActionMenu
|
|
61
61
|
} from "./chunk-BDGZ4EQO.js";
|
|
62
62
|
import {
|
|
63
63
|
useFeatureFlags
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-6YQR2AWM.js";
|
|
65
65
|
import {
|
|
66
66
|
useCreateProduct,
|
|
67
67
|
useProductAttributes
|