@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getPromotionStatus,
|
|
3
3
|
getPromotionType
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NP5TISFX.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
|
|
@@ -13561,7 +13561,11 @@ var en_default = {
|
|
|
13561
13561
|
requiresShipping: "Requires shipping",
|
|
13562
13562
|
requiresShippingHint: "Does the inventory item require shipping?",
|
|
13563
13563
|
descriptionPlaceholder: "The item description",
|
|
13564
|
-
successToast: "Inventory item was successfully created."
|
|
13564
|
+
successToast: "Inventory item was successfully created.",
|
|
13565
|
+
errors: {
|
|
13566
|
+
titleRequired: "Please enter a title"
|
|
13567
|
+
},
|
|
13568
|
+
attributesHint: "These are default values used to describe the item. They are not defined by Marketplace."
|
|
13565
13569
|
},
|
|
13566
13570
|
reservation: {
|
|
13567
13571
|
header: "Reservation of {{itemName}}",
|
|
@@ -13582,19 +13586,34 @@ var en_default = {
|
|
|
13582
13586
|
updateSuccessToast: "Reservation was successfully updated.",
|
|
13583
13587
|
deleteSuccessToast: "Reservation was successfully deleted.",
|
|
13584
13588
|
errors: {
|
|
13585
|
-
noAvaliableQuantity: "Stock location doesn't have available quantity
|
|
13586
|
-
quantityOutOfRange: "Minimum quantity is 1 and maximum quantity is {{max}}"
|
|
13587
|
-
|
|
13589
|
+
noAvaliableQuantity: "Stock location doesn't have available quantity",
|
|
13590
|
+
quantityOutOfRange: "Minimum quantity is 1 and maximum quantity is {{max}}",
|
|
13591
|
+
idRequired: "Inventory item is required",
|
|
13592
|
+
selectLocation: "Please select a location",
|
|
13593
|
+
enterQuantity: "Please enter a quantity",
|
|
13594
|
+
pleaseEnterQuantity: "Please enter quantity"
|
|
13595
|
+
},
|
|
13596
|
+
deleteTitle: "Delete reservation",
|
|
13597
|
+
deleteDescription: "You are about to delete a reservation. This action cannot be undone.",
|
|
13598
|
+
deleteBlockedDescription: "This reservation cannot be deleted because it's linked to an unfulfilled order.",
|
|
13599
|
+
gotIt: "Got it",
|
|
13600
|
+
locationPlaceholder: "Select location",
|
|
13601
|
+
itemId: "Item ID",
|
|
13602
|
+
goToInventoryItem: "Go to inventory item",
|
|
13603
|
+
reserved: "Reserved",
|
|
13604
|
+
itemPlaceholder: "Select item"
|
|
13588
13605
|
},
|
|
13589
13606
|
adjustInventory: {
|
|
13590
13607
|
errors: {
|
|
13591
|
-
stockedQuantity: "Stocked quantity cannot be updated to less than the reserved quantity of {{quantity}}."
|
|
13608
|
+
stockedQuantity: "Stocked quantity cannot be updated to less than the reserved quantity of {{quantity}}.",
|
|
13609
|
+
enterQuantity: "Please enter quantity"
|
|
13592
13610
|
}
|
|
13593
13611
|
},
|
|
13594
13612
|
toast: {
|
|
13595
13613
|
updateLocations: "Locations updated successfully.",
|
|
13596
13614
|
updateLevel: "Inventory level updated successfully.",
|
|
13597
|
-
updateItem: "Inventory item updated successfully."
|
|
13615
|
+
updateItem: "Inventory item updated successfully.",
|
|
13616
|
+
deleteItem: "Inventory item was successfully deleted."
|
|
13598
13617
|
},
|
|
13599
13618
|
stock: {
|
|
13600
13619
|
title: "Update inventory levels",
|
|
@@ -13605,6 +13624,30 @@ var en_default = {
|
|
|
13605
13624
|
disablePrompt_other: "You are about to disable {{count}} location levels. This action cannot be undone.",
|
|
13606
13625
|
disabledToggleTooltip: "Cannot disable: clear incoming and/or reserved quantity before disabling.",
|
|
13607
13626
|
successToast: "Inventory levels updated successfully."
|
|
13627
|
+
},
|
|
13628
|
+
associatedOffers: "Associated offers",
|
|
13629
|
+
attributes: {
|
|
13630
|
+
tip: "These are default values used to describe the item. They are not managed by Marketplace."
|
|
13631
|
+
},
|
|
13632
|
+
item: {
|
|
13633
|
+
deleteTitle: "Delete inventory item",
|
|
13634
|
+
deleteDescription: "You are about to delete an inventory item. This action cannot be undone."
|
|
13635
|
+
},
|
|
13636
|
+
level: {
|
|
13637
|
+
deleteTitle: "Delete inventory level",
|
|
13638
|
+
deleteDescription: "You're about to delete inventory level from {{location}}. This will delete stock and reservations for this location and cannot be undone."
|
|
13639
|
+
},
|
|
13640
|
+
list: {
|
|
13641
|
+
noRecordsTitle: "No inventory items yet",
|
|
13642
|
+
noRecordsMessage: "Create inventory items to manage inventory"
|
|
13643
|
+
},
|
|
13644
|
+
locations: {
|
|
13645
|
+
noRecordsTitle: "No locations yet",
|
|
13646
|
+
noRecordsMessage: "Add a location to start managing stock levels"
|
|
13647
|
+
},
|
|
13648
|
+
reservations: {
|
|
13649
|
+
noRecordsTitle: "No reservations yet",
|
|
13650
|
+
noRecordsMessage: "There are no reservations to show"
|
|
13608
13651
|
}
|
|
13609
13652
|
},
|
|
13610
13653
|
offers: {
|
|
@@ -13700,7 +13743,8 @@ var en_default = {
|
|
|
13700
13743
|
notEnabled: "Not enabled",
|
|
13701
13744
|
enabled: "Enabled",
|
|
13702
13745
|
variantsCount_one: "{{count}} variant",
|
|
13703
|
-
variantsCount_other: "{{count}} variants"
|
|
13746
|
+
variantsCount_other: "{{count}} variants",
|
|
13747
|
+
store: "Store"
|
|
13704
13748
|
},
|
|
13705
13749
|
status: {
|
|
13706
13750
|
published: "Published",
|
|
@@ -15227,21 +15271,22 @@ var en_default = {
|
|
|
15227
15271
|
scheduled: "Scheduled"
|
|
15228
15272
|
},
|
|
15229
15273
|
delete: {
|
|
15230
|
-
title: "
|
|
15231
|
-
description: "You are about to delete
|
|
15232
|
-
successToast: "Campaign
|
|
15274
|
+
title: "Delete campaign",
|
|
15275
|
+
description: "You are about to delete a campaign {{name}}. This action cannot be undone.",
|
|
15276
|
+
successToast: "Campaign was successfully deleted."
|
|
15233
15277
|
},
|
|
15234
15278
|
edit: {
|
|
15235
15279
|
header: "Edit Campaign",
|
|
15236
15280
|
description: "Edit the details of the campaign.",
|
|
15237
|
-
successToast: "Campaign
|
|
15281
|
+
successToast: "Campaign was successfully updated."
|
|
15238
15282
|
},
|
|
15239
15283
|
configuration: {
|
|
15240
15284
|
header: "Configuration",
|
|
15285
|
+
expiryWarning: "The promotion will expire when campaign expires.",
|
|
15241
15286
|
edit: {
|
|
15242
15287
|
header: "Edit Campaign Configuration",
|
|
15243
15288
|
description: "Edit the configuration of the campaign.",
|
|
15244
|
-
successToast: "Campaign
|
|
15289
|
+
successToast: "Campaign was successfully updated."
|
|
15245
15290
|
}
|
|
15246
15291
|
},
|
|
15247
15292
|
create: {
|
|
@@ -15249,11 +15294,18 @@ var en_default = {
|
|
|
15249
15294
|
description: "Create a promotional campaign.",
|
|
15250
15295
|
hint: "Create a promotional campaign.",
|
|
15251
15296
|
header: "Create Campaign",
|
|
15252
|
-
successToast: "Campaign
|
|
15297
|
+
successToast: "Campaign was successfully created."
|
|
15298
|
+
},
|
|
15299
|
+
validation: {
|
|
15300
|
+
name_required: "Please enter a name",
|
|
15301
|
+
identifier_required: "Please enter an identifier",
|
|
15302
|
+
currency_required: "Please select a currency"
|
|
15253
15303
|
},
|
|
15254
15304
|
fields: {
|
|
15255
15305
|
name: "Name",
|
|
15256
15306
|
identifier: "Identifier",
|
|
15307
|
+
identifier_tooltip: "The identifier is your business-friendly campaign code that you use for integrations, reporting, and easily recognizing the campaign \u2013 it is not the technical ID from the database.",
|
|
15308
|
+
type: "Type",
|
|
15257
15309
|
start_date: "Start date",
|
|
15258
15310
|
end_date: "End date",
|
|
15259
15311
|
total_spend: "Budget spent",
|
|
@@ -15267,16 +15319,19 @@ var en_default = {
|
|
|
15267
15319
|
budget: {
|
|
15268
15320
|
attribute: {
|
|
15269
15321
|
customer_id: "customer",
|
|
15270
|
-
customer_email: "email"
|
|
15322
|
+
customer_email: "email",
|
|
15323
|
+
promotion_code: "promotion code"
|
|
15271
15324
|
},
|
|
15272
15325
|
create: {
|
|
15273
15326
|
hint: "Create a budget for the campaign.",
|
|
15274
15327
|
header: "Campaign Budget"
|
|
15275
15328
|
},
|
|
15276
|
-
|
|
15329
|
+
noLimitHint: "If you don't set any limits, the campaign budget will have no limit.",
|
|
15330
|
+
details: "Budget",
|
|
15277
15331
|
fields: {
|
|
15278
15332
|
type: "Type",
|
|
15279
15333
|
currency: "Currency",
|
|
15334
|
+
selectCurrency: "Select currency",
|
|
15280
15335
|
limit: "Limit",
|
|
15281
15336
|
used: "Used",
|
|
15282
15337
|
budgetAttribute: "Limit usage per",
|
|
@@ -15294,6 +15349,10 @@ var en_default = {
|
|
|
15294
15349
|
title: "Usage",
|
|
15295
15350
|
description: "Set a limit on how many times the promotion can be used."
|
|
15296
15351
|
},
|
|
15352
|
+
use_by_attribute: {
|
|
15353
|
+
title: "Usage",
|
|
15354
|
+
description: "Set a limit on how many times the promotion can be used."
|
|
15355
|
+
},
|
|
15297
15356
|
useByAttribute: {
|
|
15298
15357
|
title: "Usage by attribute (customer id, email, etc.)",
|
|
15299
15358
|
titleCustomerId: "Usage per customer",
|
|
@@ -15307,22 +15366,27 @@ var en_default = {
|
|
|
15307
15366
|
},
|
|
15308
15367
|
promotions: {
|
|
15309
15368
|
remove: {
|
|
15310
|
-
title: "Remove
|
|
15369
|
+
title: "Remove promotions",
|
|
15311
15370
|
description: "You are about to remove {{count}} promotion(s) from the campaign. This action cannot be undone."
|
|
15312
15371
|
},
|
|
15313
15372
|
alreadyAdded: "This promotion has already been added to the campaign.",
|
|
15314
15373
|
alreadyAddedDiffCampaign: "This promotion has already been added to a different campaign ({{name}}).",
|
|
15315
15374
|
currencyMismatch: "Currency of the promotion and campaign doesn't match",
|
|
15316
15375
|
toast: {
|
|
15317
|
-
|
|
15376
|
+
added_one: "Promotion was successfully added to campaign.",
|
|
15377
|
+
added_other: "Promotions were successfully added to campaign.",
|
|
15378
|
+
removed_one: "Promotion was successfully removed from campaign.",
|
|
15379
|
+
removed_other: "Promotions were successfully removed from campaign."
|
|
15318
15380
|
},
|
|
15319
15381
|
add: {
|
|
15382
|
+
tip: "You can only add promotions that are not already in another campaign.",
|
|
15320
15383
|
list: {
|
|
15321
15384
|
noRecordsMessage: "Create a promotion first."
|
|
15322
15385
|
}
|
|
15323
15386
|
},
|
|
15324
15387
|
list: {
|
|
15325
|
-
|
|
15388
|
+
noRecordsTitle: "No promotions yet",
|
|
15389
|
+
noRecordsMessage: "This campaign doesn't have any promotions"
|
|
15326
15390
|
}
|
|
15327
15391
|
},
|
|
15328
15392
|
deleteCampaignWarning: "You are about to delete the campaign {{name}}. This action cannot be undone.",
|
|
@@ -15337,10 +15401,10 @@ var en_default = {
|
|
|
15337
15401
|
},
|
|
15338
15402
|
create: {
|
|
15339
15403
|
header: "Create Price List",
|
|
15340
|
-
subheader: "Create a new price list to manage the prices of your
|
|
15404
|
+
subheader: "Create a new price list to manage the prices of your offers.",
|
|
15341
15405
|
tabs: {
|
|
15342
15406
|
details: "Details",
|
|
15343
|
-
products: "
|
|
15407
|
+
products: "Offers",
|
|
15344
15408
|
prices: "Prices"
|
|
15345
15409
|
},
|
|
15346
15410
|
successToast: "Price list {{title}} was successfully created.",
|
|
@@ -15348,34 +15412,52 @@ var en_default = {
|
|
|
15348
15412
|
list: {
|
|
15349
15413
|
noRecordsMessage: "Create a product first."
|
|
15350
15414
|
}
|
|
15415
|
+
},
|
|
15416
|
+
validation: {
|
|
15417
|
+
title: "Please enter a title",
|
|
15418
|
+
description: "Please enter a description"
|
|
15351
15419
|
}
|
|
15352
15420
|
},
|
|
15353
15421
|
edit: {
|
|
15354
15422
|
header: "Edit Price List",
|
|
15355
|
-
successToast: "Price list
|
|
15423
|
+
successToast: "Price list was successfully updated."
|
|
15356
15424
|
},
|
|
15357
15425
|
configuration: {
|
|
15358
15426
|
header: "Configuration",
|
|
15359
15427
|
edit: {
|
|
15360
15428
|
header: "Edit Price List Configuration",
|
|
15361
15429
|
description: "Edit the configuration of the price list.",
|
|
15362
|
-
successToast: "Price list
|
|
15430
|
+
successToast: "Price list was successfully updated."
|
|
15431
|
+
}
|
|
15432
|
+
},
|
|
15433
|
+
customerAvailability: {
|
|
15434
|
+
header: "Customer availability",
|
|
15435
|
+
add: "Add customer groups",
|
|
15436
|
+
list: {
|
|
15437
|
+
noRecordsTitle: "No customer groups",
|
|
15438
|
+
noRecordsMessage: "Add customer groups to restrict which customers this price list applies to."
|
|
15439
|
+
},
|
|
15440
|
+
edit: {
|
|
15441
|
+
header: "Customer availability",
|
|
15442
|
+
description: "Choose which customer groups the price list should be applied to.",
|
|
15443
|
+
successToast: "Price list was successfully updated."
|
|
15363
15444
|
}
|
|
15364
15445
|
},
|
|
15365
15446
|
products: {
|
|
15366
|
-
header: "
|
|
15447
|
+
header: "Offers",
|
|
15367
15448
|
actions: {
|
|
15368
|
-
addProducts: "Add
|
|
15369
|
-
editPrices: "Edit prices"
|
|
15449
|
+
addProducts: "Add offers",
|
|
15450
|
+
editPrices: "Edit prices",
|
|
15451
|
+
editPricesDisabled: "Add offers before editing prices"
|
|
15370
15452
|
},
|
|
15371
15453
|
delete: {
|
|
15372
|
-
confirmation_one: "You are about to
|
|
15373
|
-
confirmation_other: "You are about to
|
|
15374
|
-
successToast_one: "Successfully
|
|
15375
|
-
successToast_other: "Successfully
|
|
15454
|
+
confirmation_one: "You are about to remove {{count}} offer from the price list. This action cannot be undone.",
|
|
15455
|
+
confirmation_other: "You are about to remove {{count}} offers from the price list. This action cannot be undone.",
|
|
15456
|
+
successToast_one: "Successfully removed {{count}} offer from the price list.",
|
|
15457
|
+
successToast_other: "Successfully removed {{count}} offers from the price list."
|
|
15376
15458
|
},
|
|
15377
15459
|
add: {
|
|
15378
|
-
successToast: "
|
|
15460
|
+
successToast: "Price list was successfully updated.",
|
|
15379
15461
|
atLeastOnePrice: "At least one price must be added.",
|
|
15380
15462
|
alreadyInPriceList: "This product is already in the price list",
|
|
15381
15463
|
noVariants: "This product has no variants",
|
|
@@ -15383,7 +15465,7 @@ var en_default = {
|
|
|
15383
15465
|
description: "Add products and set prices for the price list"
|
|
15384
15466
|
},
|
|
15385
15467
|
edit: {
|
|
15386
|
-
successToast: "
|
|
15468
|
+
successToast: "Price list was successfully updated.",
|
|
15387
15469
|
title: "Edit Prices for {{title}}",
|
|
15388
15470
|
description: "Update prices for products in the price list"
|
|
15389
15471
|
}
|
|
@@ -15400,6 +15482,10 @@ var en_default = {
|
|
|
15400
15482
|
draft: "Draft",
|
|
15401
15483
|
expired: "Expired",
|
|
15402
15484
|
scheduled: "Scheduled"
|
|
15485
|
+
},
|
|
15486
|
+
descriptions: {
|
|
15487
|
+
draft: "Customers will not be able to see the price list",
|
|
15488
|
+
active: "Customers will be able to see the price list"
|
|
15403
15489
|
}
|
|
15404
15490
|
},
|
|
15405
15491
|
type: {
|
|
@@ -15408,7 +15494,7 @@ var en_default = {
|
|
|
15408
15494
|
options: {
|
|
15409
15495
|
sale: {
|
|
15410
15496
|
label: "Sale",
|
|
15411
|
-
description: "Sale prices are temporary price changes for
|
|
15497
|
+
description: "Sale prices are temporary price changes for offers."
|
|
15412
15498
|
},
|
|
15413
15499
|
override: {
|
|
15414
15500
|
label: "Override",
|
|
@@ -15417,11 +15503,11 @@ var en_default = {
|
|
|
15417
15503
|
}
|
|
15418
15504
|
},
|
|
15419
15505
|
startsAt: {
|
|
15420
|
-
label: "
|
|
15506
|
+
label: "Start date",
|
|
15421
15507
|
hint: "Schedule the price list to activate in the future."
|
|
15422
15508
|
},
|
|
15423
15509
|
endsAt: {
|
|
15424
|
-
label: "
|
|
15510
|
+
label: "Expiry date",
|
|
15425
15511
|
hint: "Schedule the price list to deactivate in the future."
|
|
15426
15512
|
},
|
|
15427
15513
|
customerAvailability: {
|
|
@@ -15430,6 +15516,13 @@ var en_default = {
|
|
|
15430
15516
|
hint: "Choose which customer groups the price list should be applied to.",
|
|
15431
15517
|
placeholder: "Search for customer groups",
|
|
15432
15518
|
attribute: "Customer groups"
|
|
15519
|
+
},
|
|
15520
|
+
offerVariant: "Offer/Variant"
|
|
15521
|
+
},
|
|
15522
|
+
list: {
|
|
15523
|
+
noRecords: {
|
|
15524
|
+
title: "No price lists yet",
|
|
15525
|
+
message: "Create price lists for sales and price overrides"
|
|
15433
15526
|
}
|
|
15434
15527
|
}
|
|
15435
15528
|
},
|
|
@@ -15445,6 +15538,51 @@ var en_default = {
|
|
|
15445
15538
|
canceled: "Canceled"
|
|
15446
15539
|
}
|
|
15447
15540
|
},
|
|
15541
|
+
reviews: {
|
|
15542
|
+
domain: "Reviews",
|
|
15543
|
+
status: {
|
|
15544
|
+
pending: "Pending",
|
|
15545
|
+
published: "Published",
|
|
15546
|
+
rejected: "Rejected"
|
|
15547
|
+
},
|
|
15548
|
+
fields: {
|
|
15549
|
+
rating: "Rating",
|
|
15550
|
+
content: "Content",
|
|
15551
|
+
response: "Response"
|
|
15552
|
+
},
|
|
15553
|
+
filters: {
|
|
15554
|
+
stars_one: "{{count}} star",
|
|
15555
|
+
stars_other: "{{count}} stars"
|
|
15556
|
+
},
|
|
15557
|
+
list: {
|
|
15558
|
+
columns: {
|
|
15559
|
+
reviewId: "Review ID",
|
|
15560
|
+
rating: "Rating",
|
|
15561
|
+
content: "Content",
|
|
15562
|
+
customer: "Customer",
|
|
15563
|
+
date: "Date",
|
|
15564
|
+
status: "Status",
|
|
15565
|
+
response: "Response"
|
|
15566
|
+
},
|
|
15567
|
+
noRecordsTitle: "No reviews yet",
|
|
15568
|
+
noRecordsMessage: "Once customer submit reviews, they'll appear here",
|
|
15569
|
+
noResultsTitle: "No results",
|
|
15570
|
+
noResultsMessage: "Try changing the filters or search query"
|
|
15571
|
+
},
|
|
15572
|
+
detail: {
|
|
15573
|
+
customer: "Customer",
|
|
15574
|
+
order: "Order"
|
|
15575
|
+
},
|
|
15576
|
+
respond: {
|
|
15577
|
+
action: "Respond",
|
|
15578
|
+
header: "Respond to review",
|
|
15579
|
+
label: "Response",
|
|
15580
|
+
confirmTitle: "Respond to review",
|
|
15581
|
+
confirmDescription: "Your response will be published on the storefront and visible to customers. Once saved, it cannot be edited or deleted.",
|
|
15582
|
+
successToast: "Response was successfully sent.",
|
|
15583
|
+
validation: "Please write a response"
|
|
15584
|
+
}
|
|
15585
|
+
},
|
|
15448
15586
|
profile: {
|
|
15449
15587
|
domain: "Profile",
|
|
15450
15588
|
manageYourProfileDetails: "Manage your profile details.",
|
|
@@ -15854,7 +15992,21 @@ var en_default = {
|
|
|
15854
15992
|
reservations: {
|
|
15855
15993
|
domain: "Reservations",
|
|
15856
15994
|
subtitle: "Manage the reserved quantity of inventory items.",
|
|
15857
|
-
deleteWarning: "You are about to delete a reservation. This action cannot be undone."
|
|
15995
|
+
deleteWarning: "You are about to delete a reservation. This action cannot be undone.",
|
|
15996
|
+
list: {
|
|
15997
|
+
noRecordsTitle: "No reservations yet",
|
|
15998
|
+
noRecordsMessage: "Create reservations to manage the reserved quantity of inventory items"
|
|
15999
|
+
},
|
|
16000
|
+
delete: {
|
|
16001
|
+
title: "Delete reservation",
|
|
16002
|
+
description: "You are about to delete a reservation. This action cannot be undone.",
|
|
16003
|
+
lockedTitle: "Delete reservation",
|
|
16004
|
+
lockedDescription: "This reservation cannot be deleted because it's linked to an unfulfilled order."
|
|
16005
|
+
},
|
|
16006
|
+
edit: {
|
|
16007
|
+
lockedTitle: "Edit reservation",
|
|
16008
|
+
lockedDescription: "This reservation cannot be edited because it's linked to an unfulfilled order."
|
|
16009
|
+
}
|
|
15858
16010
|
},
|
|
15859
16011
|
salesChannels: {
|
|
15860
16012
|
domain: "Sales Channels",
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
TrianglesMini,
|
|
17
17
|
XMarkMini
|
|
18
18
|
} from "@medusajs/icons";
|
|
19
|
-
import { clx, Text } from "@medusajs/ui";
|
|
19
|
+
import { Badge, clx, Text } from "@medusajs/ui";
|
|
20
20
|
import { matchSorter } from "match-sorter";
|
|
21
21
|
import {
|
|
22
22
|
Fragment,
|
|
@@ -305,7 +305,7 @@ var ComboboxImpl = ({
|
|
|
305
305
|
},
|
|
306
306
|
"aria-busy": isPending,
|
|
307
307
|
children: [
|
|
308
|
-
results.map(({ value, label, disabled }) => /* @__PURE__ */ jsxs(
|
|
308
|
+
results.map(({ value, label, secondaryLabel, disabled }) => /* @__PURE__ */ jsxs(
|
|
309
309
|
PrimitiveComboboxItem,
|
|
310
310
|
{
|
|
311
311
|
value,
|
|
@@ -321,7 +321,8 @@ var ComboboxImpl = ({
|
|
|
321
321
|
),
|
|
322
322
|
children: [
|
|
323
323
|
/* @__PURE__ */ jsx(PrimitiveComboboxItemCheck, { className: "flex !size-5 shrink-0 items-center justify-center", children: isArrayValue ? /* @__PURE__ */ jsx(CheckMini, {}) : /* @__PURE__ */ jsx(EllipseMiniSolid, {}) }),
|
|
324
|
-
/* @__PURE__ */ jsx(PrimitiveComboboxItemValue, { className: "txt-compact-small
|
|
324
|
+
/* @__PURE__ */ jsx(PrimitiveComboboxItemValue, { className: "txt-compact-small flex-1 overflow-hidden text-ellipsis whitespace-nowrap", children: label }),
|
|
325
|
+
secondaryLabel && /* @__PURE__ */ jsx(Badge, { size: "2xsmall", className: "ml-auto shrink-0", children: secondaryLabel })
|
|
325
326
|
]
|
|
326
327
|
},
|
|
327
328
|
value
|
|
@@ -9877,6 +9877,48 @@ var require_promotion_cost = __commonJS({
|
|
|
9877
9877
|
}
|
|
9878
9878
|
});
|
|
9879
9879
|
|
|
9880
|
+
// ../types/dist/review/common.js
|
|
9881
|
+
var require_common42 = __commonJS({
|
|
9882
|
+
"../types/dist/review/common.js"(exports) {
|
|
9883
|
+
"use strict";
|
|
9884
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9885
|
+
}
|
|
9886
|
+
});
|
|
9887
|
+
|
|
9888
|
+
// ../types/dist/review/mutation.js
|
|
9889
|
+
var require_mutation3 = __commonJS({
|
|
9890
|
+
"../types/dist/review/mutation.js"(exports) {
|
|
9891
|
+
"use strict";
|
|
9892
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9893
|
+
}
|
|
9894
|
+
});
|
|
9895
|
+
|
|
9896
|
+
// ../types/dist/review/index.js
|
|
9897
|
+
var require_review = __commonJS({
|
|
9898
|
+
"../types/dist/review/index.js"(exports) {
|
|
9899
|
+
"use strict";
|
|
9900
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
9901
|
+
if (k2 === void 0) k2 = k;
|
|
9902
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9903
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9904
|
+
desc = { enumerable: true, get: function() {
|
|
9905
|
+
return m[k];
|
|
9906
|
+
} };
|
|
9907
|
+
}
|
|
9908
|
+
Object.defineProperty(o, k2, desc);
|
|
9909
|
+
}) : (function(o, m, k, k2) {
|
|
9910
|
+
if (k2 === void 0) k2 = k;
|
|
9911
|
+
o[k2] = m[k];
|
|
9912
|
+
}));
|
|
9913
|
+
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
9914
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
9915
|
+
};
|
|
9916
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9917
|
+
__exportStar(require_common42(), exports);
|
|
9918
|
+
__exportStar(require_mutation3(), exports);
|
|
9919
|
+
}
|
|
9920
|
+
});
|
|
9921
|
+
|
|
9880
9922
|
// ../types/dist/product/status.js
|
|
9881
9923
|
var require_status = __commonJS({
|
|
9882
9924
|
"../types/dist/product/status.js"(exports) {
|
|
@@ -9893,7 +9935,7 @@ var require_status = __commonJS({
|
|
|
9893
9935
|
});
|
|
9894
9936
|
|
|
9895
9937
|
// ../types/dist/product/common.js
|
|
9896
|
-
var
|
|
9938
|
+
var require_common43 = __commonJS({
|
|
9897
9939
|
"../types/dist/product/common.js"(exports) {
|
|
9898
9940
|
"use strict";
|
|
9899
9941
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -9959,7 +10001,7 @@ var require_product5 = __commonJS({
|
|
|
9959
10001
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
9960
10002
|
};
|
|
9961
10003
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9962
|
-
__exportStar(
|
|
10004
|
+
__exportStar(require_common43(), exports);
|
|
9963
10005
|
__exportStar(require_mutations26(), exports);
|
|
9964
10006
|
}
|
|
9965
10007
|
});
|
|
@@ -9984,6 +10026,7 @@ var require_modules = __commonJS({
|
|
|
9984
10026
|
MercurModules2["ADMIN_UI"] = "admin_ui";
|
|
9985
10027
|
MercurModules2["CODEGEN"] = "codegen";
|
|
9986
10028
|
MercurModules2["PROMOTION_COST"] = "promotion_cost";
|
|
10029
|
+
MercurModules2["REVIEW"] = "review";
|
|
9987
10030
|
})(MercurModules || (exports.MercurModules = MercurModules = {}));
|
|
9988
10031
|
}
|
|
9989
10032
|
});
|
|
@@ -10072,6 +10115,7 @@ var require_dist2 = __commonJS({
|
|
|
10072
10115
|
__exportStar(require_payout2(), exports);
|
|
10073
10116
|
__exportStar(require_offer2(), exports);
|
|
10074
10117
|
__exportStar(require_promotion_cost(), exports);
|
|
10118
|
+
__exportStar(require_review(), exports);
|
|
10075
10119
|
var status_1 = require_status();
|
|
10076
10120
|
Object.defineProperty(exports, "ProductStatus", { enumerable: true, get: function() {
|
|
10077
10121
|
return status_1.ProductStatus;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// src/pages/inventory/[id]/constants.ts
|
|
2
|
-
var INVENTORY_DETAIL_FIELDS = "*variants,*variants.product,*variants.options,+stocked_quantity,+reserved_quantity,*location_levels";
|
|
2
|
+
var INVENTORY_DETAIL_FIELDS = "*variants,*variants.product,*variants.options,+stocked_quantity,+reserved_quantity,*location_levels,+offers.id,+offers.sku,+offers.product_id,+offers.product_variant.title,+offers.product_variant.product.title,+offers.product_variant.product.thumbnail";
|
|
3
3
|
|
|
4
4
|
export {
|
|
5
5
|
INVENTORY_DETAIL_FIELDS
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// src/pages/campaigns/common/utils/campaign-status.ts
|
|
2
|
+
import { isAfter, isBefore } from "date-fns";
|
|
3
|
+
function campaignStatus(campaign) {
|
|
4
|
+
if (campaign.ends_at) {
|
|
5
|
+
if (isBefore(new Date(campaign.ends_at), /* @__PURE__ */ new Date())) {
|
|
6
|
+
return "expired";
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
if (campaign.starts_at) {
|
|
10
|
+
if (isAfter(new Date(campaign.starts_at), /* @__PURE__ */ new Date())) {
|
|
11
|
+
return "scheduled";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return "active";
|
|
15
|
+
}
|
|
16
|
+
var statusColor = (status) => {
|
|
17
|
+
switch (status) {
|
|
18
|
+
case "expired":
|
|
19
|
+
return "red";
|
|
20
|
+
case "scheduled":
|
|
21
|
+
return "orange";
|
|
22
|
+
case "active":
|
|
23
|
+
return "green";
|
|
24
|
+
default:
|
|
25
|
+
return "grey";
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
campaignStatus,
|
|
31
|
+
statusColor
|
|
32
|
+
};
|