@mercurjs/vendor 2.0.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]-23D3HY3G.js +444 -0
- package/dist/[id]-2VBOAZM4.js +1215 -0
- package/dist/[id]-A4FSDRER.js +325 -0
- package/dist/[id]-E45G2SDA.js +213 -0
- package/dist/[id]-FXKSI52D.js +477 -0
- package/dist/[id]-HHZ3BSXV.js +1166 -0
- package/dist/[id]-MIV4U5UW.js +137 -0
- package/dist/[id]-QSRIPPIP.js +612 -0
- package/dist/[id]-RGDXOC7T.js +499 -0
- package/dist/[id]-TI2MOR2C.js +377 -0
- package/dist/[id]-U5DT2ZLS.js +301 -0
- package/dist/[id]-UMFGLDM2.js +354 -0
- package/dist/[id]-VTFOP3BF.js +97 -0
- package/dist/[id]-ZYF75L6G.js +479 -0
- package/dist/[location_id]-4UIEW5KM.js +685 -0
- package/dist/[province_id]-ZCHPXXQN.js +205 -0
- package/dist/add-KNDQL6YN.js +660 -0
- package/dist/add-customer-groups-JA346MTF.js +275 -0
- package/dist/add-products-2VB57KXV.js +273 -0
- package/dist/add-promotions-KVKEP6EO.js +260 -0
- package/dist/add-to-campaign-V6D7JKRS.js +44 -0
- package/dist/additional-attributes-E36EZX4V.js +219 -0
- package/dist/adjust-inventory-P7AB7VIB.js +228 -0
- package/dist/allocate-items-QAS5PZLR.js +529 -0
- package/dist/areas-Y7VDWH7G.js +151 -0
- package/dist/attributes-UEM2VJKV.js +277 -0
- package/dist/breadcrumb-3QTVWXZB.js +27 -0
- package/dist/breadcrumb-5OTOCYNL.js +38 -0
- package/dist/breadcrumb-6NAAOPIY.js +11 -0
- package/dist/breadcrumb-ASB2YCNV.js +25 -0
- package/dist/breadcrumb-CIGKLKKS.js +28 -0
- package/dist/breadcrumb-EOYLR3IQ.js +22 -0
- package/dist/breadcrumb-LENACUAA.js +22 -0
- package/dist/breadcrumb-LIXGWUQF.js +44 -0
- package/dist/breadcrumb-MOQ7GI3Z.js +27 -0
- package/dist/breadcrumb-NCBGPQML.js +23 -0
- package/dist/breadcrumb-OVMEC5OZ.js +33 -0
- package/dist/breadcrumb-RIXJ5QSX.js +45 -0
- package/dist/breadcrumb-TZB6EWNC.js +31 -0
- package/dist/breadcrumb-WP34OXGQ.js +23 -0
- package/dist/campaigns-PMVKUFEA.js +28 -0
- package/dist/categories-CKKIUMYG.js +27 -0
- package/dist/chunk-26OOAKQ6.js +18 -0
- package/dist/chunk-2C3HUJ3Z.js +222 -0
- package/dist/chunk-2F3H6ORE.js +36 -0
- package/dist/chunk-2ZFELO2L.js +13 -0
- package/dist/chunk-3CK6OINO.js +448 -0
- package/dist/chunk-3EF54XFY.js +64 -0
- package/dist/chunk-3LPVUPZZ.js +74 -0
- package/dist/chunk-3QSRE5LS.js +161 -0
- package/dist/chunk-3SIDRPKT.js +185 -0
- package/dist/chunk-4F5GP7J7.js +45 -0
- package/dist/chunk-4GPAS5GW.js +36 -0
- package/dist/chunk-4MFMCZEJ.js +70 -0
- package/dist/chunk-4TBDDMFP.js +425 -0
- package/dist/chunk-4TLP3TAA.js +34 -0
- package/dist/chunk-54TMLQH3.js +9 -0
- package/dist/chunk-5NF4OTVV.js +169 -0
- package/dist/chunk-66V3GFSW.js +138 -0
- package/dist/chunk-6EYGH3TB.js +26 -0
- package/dist/chunk-6IJMSVC6.js +16 -0
- package/dist/chunk-6YA3C4NB.js +55 -0
- package/dist/chunk-7AV5EJJ5.js +29 -0
- package/dist/chunk-7RPRNVBS.js +45 -0
- package/dist/chunk-A2SY5L5G.js +183 -0
- package/dist/chunk-A5DJIOHN.js +4 -0
- package/dist/chunk-AIFLEWO2.js +56 -0
- package/dist/chunk-ASVMGV2B.js +80 -0
- package/dist/chunk-AW77UWCZ.js +363 -0
- package/dist/chunk-AYUG34XF.js +84 -0
- package/dist/chunk-AYVH6Q5O.js +31 -0
- package/dist/chunk-B2RVONU7.js +160 -0
- package/dist/chunk-BCU3FKP2.js +18 -0
- package/dist/chunk-BDGZ4EQO.js +86 -0
- package/dist/chunk-BDZOSMAX.js +23 -0
- package/dist/chunk-C6SUTRP2.js +13 -0
- package/dist/chunk-CDIZEXFJ.js +145 -0
- package/dist/chunk-CFETU5BI.js +261 -0
- package/dist/chunk-CMHI2RPL.js +20 -0
- package/dist/chunk-CP5IL4P6.js +98 -0
- package/dist/chunk-CUO22GTM.js +96 -0
- package/dist/chunk-CVVYQI5F.js +41 -0
- package/dist/chunk-DARJTN4I.js +60 -0
- package/dist/chunk-DB6ANJBO.js +35 -0
- package/dist/chunk-DC2K6CFQ.js +86 -0
- package/dist/chunk-DDEIH66R.js +123 -0
- package/dist/chunk-DY3XQPHC.js +31 -0
- package/dist/chunk-DYUTYBAQ.js +67 -0
- package/dist/chunk-E3MNEQID.js +24 -0
- package/dist/chunk-FBZHM2QZ.js +247 -0
- package/dist/chunk-FDZC3TFZ.js +717 -0
- package/dist/chunk-FGCKXH45.js +263 -0
- package/dist/chunk-FMFVTERD.js +0 -0
- package/dist/chunk-FOMEBUX6.js +89 -0
- package/dist/chunk-FQERBIVS.js +0 -0
- package/dist/chunk-GC33DBKG.js +143 -0
- package/dist/chunk-GDMNHL7E.js +144 -0
- package/dist/chunk-GTUR4HSV.js +53 -0
- package/dist/chunk-H35HHFTB.js +225 -0
- package/dist/chunk-HB3BP55W.js +25 -0
- package/dist/chunk-HHD2VUED.js +29 -0
- package/dist/chunk-HUNGNEPY.js +312 -0
- package/dist/chunk-HUZG6A3X.js +127 -0
- package/dist/chunk-INNFZYX2.js +183 -0
- package/dist/chunk-IQPN4PZJ.js +749 -0
- package/dist/chunk-IZ5RG5XI.js +72 -0
- package/dist/chunk-J2XP7VRG.js +1080 -0
- package/dist/chunk-JHIMVLB2.js +42 -0
- package/dist/chunk-JKXAL7WR.js +92 -0
- package/dist/chunk-JRTZWK77.js +1764 -0
- package/dist/chunk-JVBLYMY2.js +268 -0
- package/dist/chunk-JXP5YZ77.js +86 -0
- package/dist/chunk-KAZ5BYTQ.js +132 -0
- package/dist/chunk-KHHY7EEM.js +267 -0
- package/dist/chunk-LAVHRER2.js +17 -0
- package/dist/chunk-LQSLDDPT.js +67 -0
- package/dist/chunk-LWVBKUUL.js +77 -0
- package/dist/chunk-LYUCDASZ.js +115 -0
- package/dist/chunk-LZ7QV42C.js +37 -0
- package/dist/chunk-MAEP2UCK.js +110 -0
- package/dist/chunk-MG4GKUJW.js +31 -0
- package/dist/chunk-N2TQXB44.js +1280 -0
- package/dist/chunk-N3T24SEK.js +32 -0
- package/dist/chunk-NANYVBFI.js +106 -0
- package/dist/chunk-NCMUZ6BQ.js +0 -0
- package/dist/chunk-NCYTM57J.js +160 -0
- package/dist/chunk-NX26QE2O.js +47 -0
- package/dist/chunk-NYDJTWRL.js +389 -0
- package/dist/chunk-O5LRZEG6.js +253 -0
- package/dist/chunk-O6PRBSFL.js +115 -0
- package/dist/chunk-OJCDB3N5.js +539 -0
- package/dist/chunk-OSFOX7MG.js +176 -0
- package/dist/chunk-OVPAOBZB.js +110 -0
- package/dist/chunk-PADOWAXM.js +118 -0
- package/dist/chunk-PHOCVOZ5.js +9 -0
- package/dist/chunk-PKBMQBKP.js +7 -0
- package/dist/chunk-PLSJ74T2.js +298 -0
- package/dist/chunk-PVZBDWLK.js +41 -0
- package/dist/chunk-PWZKFTJS.js +247 -0
- package/dist/chunk-PXYDR7WQ.js +48 -0
- package/dist/chunk-PYQJ5N25.js +191 -0
- package/dist/chunk-Q4UVXS46.js +14 -0
- package/dist/chunk-QDPLZDMX.js +17 -0
- package/dist/chunk-QSGR43JM.js +30 -0
- package/dist/chunk-QUNDGPF7.js +92801 -0
- package/dist/chunk-R65A4P4H.js +136 -0
- package/dist/chunk-RE7YXVFG.js +128 -0
- package/dist/chunk-RETT6WME.js +37 -0
- package/dist/chunk-RHKRREUU.js +15 -0
- package/dist/chunk-RIILGKYR.js +32 -0
- package/dist/chunk-RM5RSDYP.js +353 -0
- package/dist/chunk-RNC4NFVK.js +170 -0
- package/dist/chunk-RSMZHZI2.js +2078 -0
- package/dist/chunk-RXM4B6HR.js +8 -0
- package/dist/chunk-S2WEYEQR.js +14 -0
- package/dist/chunk-S3PQKKNV.js +49 -0
- package/dist/chunk-S5GQ2SES.js +276 -0
- package/dist/chunk-SECZTXSU.js +31 -0
- package/dist/chunk-SI4ALL7W.js +180 -0
- package/dist/chunk-SID3COTK.js +21 -0
- package/dist/chunk-SMQT3ZNO.js +8 -0
- package/dist/chunk-SOZMJA7V.js +61 -0
- package/dist/chunk-TG3TCIL6.js +207 -0
- package/dist/chunk-THHRRYRS.js +16 -0
- package/dist/chunk-TKGWSUEI.js +0 -0
- package/dist/chunk-TTFCO5HU.js +173 -0
- package/dist/chunk-TXEPCJEQ.js +430 -0
- package/dist/chunk-U2EI2ZLM.js +32 -0
- package/dist/chunk-U2ZFCAPX.js +34 -0
- package/dist/chunk-U3X4DNV6.js +179 -0
- package/dist/chunk-UXKKD4AD.js +437 -0
- package/dist/chunk-UYJ65N46.js +261 -0
- package/dist/chunk-VDWGP2U6.js +71 -0
- package/dist/chunk-VGJTARSA.js +89 -0
- package/dist/chunk-VHMGJUYN.js +28 -0
- package/dist/chunk-VKC3XKFF.js +283 -0
- package/dist/chunk-VKOE5J66.js +31 -0
- package/dist/chunk-VOHEQ7B5.js +31 -0
- package/dist/chunk-VW56KWO2.js +9 -0
- package/dist/chunk-W4KHJ4D6.js +74 -0
- package/dist/chunk-W6Y3PPU5.js +73 -0
- package/dist/chunk-W6ZVQJYB.js +311 -0
- package/dist/chunk-WA3IVAUC.js +123 -0
- package/dist/chunk-WHTS4G5K.js +1551 -0
- package/dist/chunk-WIYFXWRI.js +30 -0
- package/dist/chunk-WPFTRRWV.js +455 -0
- package/dist/chunk-WQZ4ONQV.js +6 -0
- package/dist/chunk-WS652CCV.js +893 -0
- package/dist/chunk-XG4PTPRM.js +0 -0
- package/dist/chunk-XRNDVICA.js +85 -0
- package/dist/chunk-XXZJISPX.js +48 -0
- package/dist/chunk-Y224F4UU.js +81 -0
- package/dist/chunk-Y3FR5JC7.js +437 -0
- package/dist/chunk-Y4VBOHAP.js +111 -0
- package/dist/chunk-Y7QKP6QU.js +35 -0
- package/dist/chunk-YVCBMOJG.js +50 -0
- package/dist/chunk-Z2WPXJ6J.js +146 -0
- package/dist/chunk-ZA2KFUFR.js +19 -0
- package/dist/chunk-ZEKV7LGF.js +6 -0
- package/dist/chunk-ZFFA36DB.js +186 -0
- package/dist/chunk-ZPGWTLF2.js +499 -0
- package/dist/chunk-ZVT2QSWR.js +263 -0
- package/dist/chunk-ZZ7VKT2S.js +4113 -0
- package/dist/collections-TREF67TO.js +63 -0
- package/dist/configuration-KWAL2QZ5.js +152 -0
- package/dist/configuration-RNWBTRAH.js +205 -0
- package/dist/create-7UEEO5TM.js +125 -0
- package/dist/create-DTCDJMIT.js +634 -0
- package/dist/create-DYDRAY6V.js +622 -0
- package/dist/create-EJM5C2XP.js +27 -0
- package/dist/create-F7OMPGZV.js +853 -0
- package/dist/create-G4UJOJJ6.js +69 -0
- package/dist/create-IE6MYOIY.js +170 -0
- package/dist/create-L23TGTBH.js +225 -0
- package/dist/create-LOBCFTCT.js +583 -0
- package/dist/create-MKBBF2V3.js +150 -0
- package/dist/create-TFDUNJSI.js +163 -0
- package/dist/create-TMTZDKII.js +711 -0
- package/dist/create-XGF6DB5F.js +239 -0
- package/dist/create-YAAK7JQ3.js +1052 -0
- package/dist/create-YPCVTXAK.js +194 -0
- package/dist/create-ZU362U3B.js +310 -0
- package/dist/customers-4QWR5UOL.js +27 -0
- package/dist/edit-2QA5BVOY.js +735 -0
- package/dist/edit-47I7VVNB.js +167 -0
- package/dist/edit-5BUGSOTL.js +255 -0
- package/dist/edit-7LQATDUD.js +193 -0
- package/dist/edit-AQAPYMDY.js +260 -0
- package/dist/edit-BQLSTFTQ.js +138 -0
- package/dist/edit-BYXHU3IG.js +308 -0
- package/dist/edit-DG3MY3ZH.js +244 -0
- package/dist/edit-J3LD76JS.js +192 -0
- package/dist/edit-J6WCPHDS.js +205 -0
- package/dist/edit-KCZVZLSZ.js +131 -0
- package/dist/edit-LOKLQGM2.js +181 -0
- package/dist/edit-MDTTTB33.js +104 -0
- package/dist/edit-NFSU2K3O.js +413 -0
- package/dist/edit-RHNZWNXD.js +89 -0
- package/dist/edit-XU33IVZH.js +204 -0
- package/dist/edit-ZMINDMGM.js +116 -0
- package/dist/edit-budget-Z5USV462.js +145 -0
- package/dist/edit-inventory-item-YFW2AFRD.js +128 -0
- package/dist/edit-inventory-item-attributes-IYAMJDTB.js +278 -0
- package/dist/fulfillment-SKXAF3BZ.js +545 -0
- package/dist/fulfillment-providers-ACERVITQ.js +279 -0
- package/dist/home-PP7YYCSB.js +16 -0
- package/dist/index.css +6 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +3656 -0
- package/dist/inventory-AIRQ2KNS.js +26 -0
- package/dist/locations-SQKM7JWN.js +23 -0
- package/dist/login-LKFCRHXN.js +35 -0
- package/dist/manage-locations-4PQS4QY7.js +195 -0
- package/dist/media-PL477QJO.js +703 -0
- package/dist/metadata-42MU3H7T.js +60 -0
- package/dist/metadata-DIJTVDF7.js +45 -0
- package/dist/metadata-NX3LEEB3.js +64 -0
- package/dist/metadata-RBDSM567.js +65 -0
- package/dist/metadata-VZTWNZPG.js +66 -0
- package/dist/metadata-X3XGQ563.js +67 -0
- package/dist/no-match-BO2NNLCM.js +33 -0
- package/dist/orders-2KHCHNO5.js +59 -0
- package/dist/organization-VQXCKHCN.js +233 -0
- package/dist/organize-3F5ZUIGB.js +23 -0
- package/dist/organize-WPWEPCF7.js +23 -0
- package/dist/pages/index.d.ts +1153 -0
- package/dist/pages/index.js +198 -0
- package/dist/payouts-3BY73LZ3.js +27 -0
- package/dist/price-lists-G256JJN7.js +34 -0
- package/dist/prices-EW7KBY6R.js +269 -0
- package/dist/pricing-3PUJDOZN.js +313 -0
- package/dist/product-tags-PI3RENEX.js +80 -0
- package/dist/product-types-WJPLJI7H.js +32 -0
- package/dist/product-variant-detail-EYTE7PHL.js +377 -0
- package/dist/product-variant-edit-PW7W5J5E.js +402 -0
- package/dist/products-GSN4I7BT.js +272 -0
- package/dist/products-RFYNEY57.js +85 -0
- package/dist/promotions-CIZIDQ64.js +31 -0
- package/dist/reset-password-OFUSH363.js +299 -0
- package/dist/return-reasons-4V2KVSRI.js +52 -0
- package/dist/sales-channels-MBWVM3X2.js +184 -0
- package/dist/sales-channels-ZKA62EAW.js +156 -0
- package/dist/seller-ZFDLKF5Y.js +36 -0
- package/dist/settings-NP2IAID5.js +111 -0
- package/dist/shipping-profile-7FTHSPY2.js +145 -0
- package/dist/shipping-profiles-7R6L65WG.js +43 -0
- package/dist/stock-ENMBCZRY.js +502 -0
- package/dist/stock-VYDJY46S.js +278 -0
- package/dist/tax-regions-V6G6244H.js +87 -0
- package/package.json +87 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TextCell,
|
|
3
|
+
TextHeader
|
|
4
|
+
} from "./chunk-JHIMVLB2.js";
|
|
5
|
+
import {
|
|
6
|
+
DateCell
|
|
7
|
+
} from "./chunk-LZ7QV42C.js";
|
|
8
|
+
import {
|
|
9
|
+
PlaceholderCell
|
|
10
|
+
} from "./chunk-PHOCVOZ5.js";
|
|
11
|
+
|
|
12
|
+
// src/hooks/table/columns/use-campaign-table-columns.tsx
|
|
13
|
+
import { createColumnHelper } from "@tanstack/react-table";
|
|
14
|
+
import { useMemo } from "react";
|
|
15
|
+
import { useTranslation as useTranslation3 } from "react-i18next";
|
|
16
|
+
|
|
17
|
+
// src/components/table/table-cells/sales-channel/description-cell/description-cell.tsx
|
|
18
|
+
import { useTranslation } from "react-i18next";
|
|
19
|
+
import { jsx } from "react/jsx-runtime";
|
|
20
|
+
var DescriptionCell = ({ description }) => {
|
|
21
|
+
if (!description) {
|
|
22
|
+
return /* @__PURE__ */ jsx(PlaceholderCell, {});
|
|
23
|
+
}
|
|
24
|
+
return /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center overflow-hidden", children: /* @__PURE__ */ jsx("span", { className: "truncate", children: description }) });
|
|
25
|
+
};
|
|
26
|
+
var DescriptionHeader = () => {
|
|
27
|
+
const { t } = useTranslation();
|
|
28
|
+
return /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx("span", { className: "truncate", children: t("fields.description") }) });
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// src/components/table/table-cells/sales-channel/name-cell/name-cell.tsx
|
|
32
|
+
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
33
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
34
|
+
var NameCell = ({ name }) => {
|
|
35
|
+
if (!name) {
|
|
36
|
+
return /* @__PURE__ */ jsx2(PlaceholderCell, {});
|
|
37
|
+
}
|
|
38
|
+
return /* @__PURE__ */ jsx2("div", { className: "flex h-full w-full items-center overflow-hidden", children: /* @__PURE__ */ jsx2("span", { className: "truncate", children: name }) });
|
|
39
|
+
};
|
|
40
|
+
var NameHeader = () => {
|
|
41
|
+
const { t } = useTranslation2();
|
|
42
|
+
return /* @__PURE__ */ jsx2("div", { className: "flex h-full w-full items-center", children: /* @__PURE__ */ jsx2("span", { className: "truncate", children: t("fields.name") }) });
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
// src/hooks/table/columns/use-campaign-table-columns.tsx
|
|
46
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
47
|
+
var columnHelper = createColumnHelper();
|
|
48
|
+
var useCampaignTableColumns = () => {
|
|
49
|
+
const { t } = useTranslation3();
|
|
50
|
+
return useMemo(
|
|
51
|
+
() => [
|
|
52
|
+
columnHelper.accessor("name", {
|
|
53
|
+
header: () => /* @__PURE__ */ jsx3(NameHeader, {}),
|
|
54
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx3(NameCell, { name: getValue() })
|
|
55
|
+
}),
|
|
56
|
+
columnHelper.accessor("description", {
|
|
57
|
+
header: () => /* @__PURE__ */ jsx3(DescriptionHeader, {}),
|
|
58
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx3(DescriptionCell, { description: getValue() })
|
|
59
|
+
}),
|
|
60
|
+
columnHelper.accessor("campaign_identifier", {
|
|
61
|
+
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t("campaigns.fields.identifier") }),
|
|
62
|
+
cell: ({ getValue }) => {
|
|
63
|
+
const value = getValue();
|
|
64
|
+
return /* @__PURE__ */ jsx3(TextCell, { text: value });
|
|
65
|
+
}
|
|
66
|
+
}),
|
|
67
|
+
columnHelper.accessor("starts_at", {
|
|
68
|
+
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t("campaigns.fields.start_date") }),
|
|
69
|
+
cell: ({ getValue }) => {
|
|
70
|
+
const value = getValue();
|
|
71
|
+
if (!value) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const date = new Date(value);
|
|
75
|
+
return /* @__PURE__ */ jsx3(DateCell, { date });
|
|
76
|
+
}
|
|
77
|
+
}),
|
|
78
|
+
columnHelper.accessor("ends_at", {
|
|
79
|
+
header: () => /* @__PURE__ */ jsx3(TextHeader, { text: t("campaigns.fields.end_date") }),
|
|
80
|
+
cell: ({ getValue }) => {
|
|
81
|
+
const value = getValue();
|
|
82
|
+
if (!value) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
const date = new Date(value);
|
|
86
|
+
return /* @__PURE__ */ jsx3(DateCell, { date });
|
|
87
|
+
}
|
|
88
|
+
})
|
|
89
|
+
],
|
|
90
|
+
[t]
|
|
91
|
+
);
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export {
|
|
95
|
+
useCampaignTableColumns
|
|
96
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TextCell
|
|
3
|
+
} from "./chunk-JHIMVLB2.js";
|
|
4
|
+
import {
|
|
5
|
+
DateCell
|
|
6
|
+
} from "./chunk-LZ7QV42C.js";
|
|
7
|
+
|
|
8
|
+
// src/hooks/table/columns/use-product-type-table-columns.tsx
|
|
9
|
+
import { createColumnHelper } from "@tanstack/react-table";
|
|
10
|
+
import { useMemo } from "react";
|
|
11
|
+
import { useTranslation } from "react-i18next";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
var columnHelper = createColumnHelper();
|
|
14
|
+
var useProductTypeTableColumns = () => {
|
|
15
|
+
const { t } = useTranslation();
|
|
16
|
+
return useMemo(
|
|
17
|
+
() => [
|
|
18
|
+
columnHelper.accessor("value", {
|
|
19
|
+
header: () => t("fields.value"),
|
|
20
|
+
cell: ({ getValue }) => /* @__PURE__ */ jsx(TextCell, { text: getValue() })
|
|
21
|
+
}),
|
|
22
|
+
columnHelper.accessor("created_at", {
|
|
23
|
+
header: () => t("fields.createdAt"),
|
|
24
|
+
cell: ({ getValue }) => {
|
|
25
|
+
return /* @__PURE__ */ jsx(DateCell, { date: getValue() });
|
|
26
|
+
}
|
|
27
|
+
}),
|
|
28
|
+
columnHelper.accessor("updated_at", {
|
|
29
|
+
header: () => t("fields.updatedAt"),
|
|
30
|
+
cell: ({ getValue }) => {
|
|
31
|
+
return /* @__PURE__ */ jsx(DateCell, { date: getValue() });
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
],
|
|
35
|
+
[t]
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
useProductTypeTableColumns
|
|
41
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// src/pages/orders/[id]/constants.ts
|
|
2
|
+
var DEFAULT_PROPERTIES = [
|
|
3
|
+
"id",
|
|
4
|
+
"status",
|
|
5
|
+
"created_at",
|
|
6
|
+
"canceled_at",
|
|
7
|
+
"email",
|
|
8
|
+
"display_id",
|
|
9
|
+
"currency_code",
|
|
10
|
+
"metadata",
|
|
11
|
+
// --- TOTALS ---
|
|
12
|
+
"total",
|
|
13
|
+
"item_total",
|
|
14
|
+
"shipping_subtotal",
|
|
15
|
+
"subtotal",
|
|
16
|
+
"discount_total",
|
|
17
|
+
"discount_subtotal",
|
|
18
|
+
"shipping_total",
|
|
19
|
+
"shipping_tax_total",
|
|
20
|
+
"tax_total",
|
|
21
|
+
"refundable_total",
|
|
22
|
+
"order_change",
|
|
23
|
+
"commission_value"
|
|
24
|
+
];
|
|
25
|
+
var DEFAULT_RELATIONS = [
|
|
26
|
+
"*customer",
|
|
27
|
+
"*items",
|
|
28
|
+
// -> we get LineItem here with added `quantity` and `detail` which is actually an OrderItem (which is a parent object to LineItem in the DB)
|
|
29
|
+
"*items.variant",
|
|
30
|
+
"*items.variant.product",
|
|
31
|
+
"*items.variant.options",
|
|
32
|
+
"+items.variant.manage_inventory",
|
|
33
|
+
"*items.variant.inventory_items.inventory",
|
|
34
|
+
"+items.variant.inventory_items.required_quantity",
|
|
35
|
+
"*items.variant.prices",
|
|
36
|
+
"*items.commission_lines",
|
|
37
|
+
"+summary",
|
|
38
|
+
"*shipping_address",
|
|
39
|
+
"*billing_address",
|
|
40
|
+
"*sales_channel",
|
|
41
|
+
"*promotion",
|
|
42
|
+
"*shipping_methods",
|
|
43
|
+
"*fulfillments",
|
|
44
|
+
"+fulfillments.shipping_option.service_zone.fulfillment_set.type",
|
|
45
|
+
"*fulfillments.items",
|
|
46
|
+
"*fulfillments.labels",
|
|
47
|
+
"*fulfillments.labels",
|
|
48
|
+
"region.automatic_taxes",
|
|
49
|
+
"*payment_collections",
|
|
50
|
+
"*payment_collections.payments",
|
|
51
|
+
"payment_status",
|
|
52
|
+
"*returns"
|
|
53
|
+
];
|
|
54
|
+
var DEFAULT_FIELDS = `${DEFAULT_PROPERTIES.join(
|
|
55
|
+
","
|
|
56
|
+
)},${DEFAULT_RELATIONS.join(",")}`;
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
DEFAULT_FIELDS
|
|
60
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// src/components/table/table-cells/common/status-cell/status-cell.tsx
|
|
2
|
+
import { clx } from "@medusajs/ui";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
var StatusCell = ({ color, children }) => {
|
|
5
|
+
return /* @__PURE__ */ jsxs("div", { className: "txt-compact-small text-ui-fg-subtle flex h-full w-full items-center gap-x-2 overflow-hidden", children: [
|
|
6
|
+
/* @__PURE__ */ jsx(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
role: "presentation",
|
|
10
|
+
className: "flex h-5 w-2 items-center justify-center",
|
|
11
|
+
children: /* @__PURE__ */ jsx(
|
|
12
|
+
"div",
|
|
13
|
+
{
|
|
14
|
+
className: clx(
|
|
15
|
+
"h-2 w-2 rounded-sm shadow-[0px_0px_0px_1px_rgba(0,0,0,0.12)_inset]",
|
|
16
|
+
{
|
|
17
|
+
"bg-ui-tag-neutral-icon": color === "grey",
|
|
18
|
+
"bg-ui-tag-green-icon": color === "green",
|
|
19
|
+
"bg-ui-tag-red-icon": color === "red",
|
|
20
|
+
"bg-ui-tag-blue-icon": color === "blue",
|
|
21
|
+
"bg-ui-tag-orange-icon": color === "orange",
|
|
22
|
+
"bg-ui-tag-purple-icon": color === "purple"
|
|
23
|
+
}
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ jsx("span", { className: "truncate", children })
|
|
30
|
+
] });
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
StatusCell
|
|
35
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import {
|
|
2
|
+
queryClient
|
|
3
|
+
} from "./chunk-RHKRREUU.js";
|
|
4
|
+
import {
|
|
5
|
+
queryKeysFactory
|
|
6
|
+
} from "./chunk-ZA2KFUFR.js";
|
|
7
|
+
import {
|
|
8
|
+
sdk
|
|
9
|
+
} from "./chunk-Y224F4UU.js";
|
|
10
|
+
|
|
11
|
+
// src/hooks/api/shipping-profiles.tsx
|
|
12
|
+
import {
|
|
13
|
+
useMutation,
|
|
14
|
+
useQuery
|
|
15
|
+
} from "@tanstack/react-query";
|
|
16
|
+
var SHIPPING_PROFILE_QUERY_KEY = "shipping_profile";
|
|
17
|
+
var shippingProfileQueryKeys = queryKeysFactory(
|
|
18
|
+
SHIPPING_PROFILE_QUERY_KEY
|
|
19
|
+
);
|
|
20
|
+
var useCreateShippingProfile = (options) => {
|
|
21
|
+
return useMutation({
|
|
22
|
+
mutationFn: (payload) => sdk.vendor.shippingProfiles.mutate(payload),
|
|
23
|
+
onSuccess: (data, variables, context) => {
|
|
24
|
+
queryClient.invalidateQueries({
|
|
25
|
+
queryKey: shippingProfileQueryKeys.lists()
|
|
26
|
+
});
|
|
27
|
+
options?.onSuccess?.(data, variables, context);
|
|
28
|
+
},
|
|
29
|
+
...options
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
var useShippingProfile = (id, query, options) => {
|
|
33
|
+
const { data, ...rest } = useQuery({
|
|
34
|
+
queryFn: () => sdk.vendor.shippingProfiles.$id.query({ $id: id, ...query }),
|
|
35
|
+
queryKey: shippingProfileQueryKeys.detail(id, query),
|
|
36
|
+
...options
|
|
37
|
+
});
|
|
38
|
+
return { ...data, ...rest };
|
|
39
|
+
};
|
|
40
|
+
var useShippingProfiles = (query, options) => {
|
|
41
|
+
const { data, ...rest } = useQuery({
|
|
42
|
+
queryFn: () => sdk.vendor.shippingProfiles.query({ ...query }),
|
|
43
|
+
queryKey: shippingProfileQueryKeys.list(query),
|
|
44
|
+
...options
|
|
45
|
+
});
|
|
46
|
+
return { ...data, ...rest };
|
|
47
|
+
};
|
|
48
|
+
var useUpdateShippingProfile = (id, options) => {
|
|
49
|
+
return useMutation({
|
|
50
|
+
mutationFn: (payload) => sdk.vendor.shippingProfiles.$id.mutate({ $id: id, ...payload }),
|
|
51
|
+
onSuccess: (data, variables, context) => {
|
|
52
|
+
queryClient.invalidateQueries({
|
|
53
|
+
queryKey: shippingProfileQueryKeys.detail(id)
|
|
54
|
+
});
|
|
55
|
+
queryClient.invalidateQueries({
|
|
56
|
+
queryKey: shippingProfileQueryKeys.lists()
|
|
57
|
+
});
|
|
58
|
+
options?.onSuccess?.(data, variables, context);
|
|
59
|
+
},
|
|
60
|
+
...options
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
var useDeleteShippingProfile = (id, options) => {
|
|
64
|
+
return useMutation({
|
|
65
|
+
mutationFn: () => sdk.vendor.shippingProfiles.$id.delete({ $id: id }),
|
|
66
|
+
onSuccess: (data, variables, context) => {
|
|
67
|
+
queryClient.invalidateQueries({
|
|
68
|
+
queryKey: shippingProfileQueryKeys.detail(id)
|
|
69
|
+
});
|
|
70
|
+
queryClient.invalidateQueries({
|
|
71
|
+
queryKey: shippingProfileQueryKeys.lists()
|
|
72
|
+
});
|
|
73
|
+
options?.onSuccess?.(data, variables, context);
|
|
74
|
+
},
|
|
75
|
+
...options
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export {
|
|
80
|
+
shippingProfileQueryKeys,
|
|
81
|
+
useCreateShippingProfile,
|
|
82
|
+
useShippingProfile,
|
|
83
|
+
useShippingProfiles,
|
|
84
|
+
useUpdateShippingProfile,
|
|
85
|
+
useDeleteShippingProfile
|
|
86
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import {
|
|
2
|
+
VisuallyHidden
|
|
3
|
+
} from "./chunk-54TMLQH3.js";
|
|
4
|
+
import {
|
|
5
|
+
CreateCampaignFormFields
|
|
6
|
+
} from "./chunk-W6ZVQJYB.js";
|
|
7
|
+
import {
|
|
8
|
+
KeyboundForm
|
|
9
|
+
} from "./chunk-U2ZFCAPX.js";
|
|
10
|
+
import {
|
|
11
|
+
RouteFocusModal,
|
|
12
|
+
useRouteModal
|
|
13
|
+
} from "./chunk-3CK6OINO.js";
|
|
14
|
+
import {
|
|
15
|
+
useCreateCampaign
|
|
16
|
+
} from "./chunk-HUNGNEPY.js";
|
|
17
|
+
|
|
18
|
+
// src/pages/campaigns/create/create-campaign-form/create-campaign-form.tsx
|
|
19
|
+
import { zodResolver } from "@hookform/resolvers/zod";
|
|
20
|
+
import { Button, toast } from "@medusajs/ui";
|
|
21
|
+
import { useForm } from "react-hook-form";
|
|
22
|
+
import { useTranslation } from "react-i18next";
|
|
23
|
+
import * as zod from "zod";
|
|
24
|
+
|
|
25
|
+
// src/pages/campaigns/common/constants.ts
|
|
26
|
+
var DEFAULT_CAMPAIGN_VALUES = {
|
|
27
|
+
name: "",
|
|
28
|
+
description: "",
|
|
29
|
+
campaign_identifier: "",
|
|
30
|
+
starts_at: null,
|
|
31
|
+
ends_at: null,
|
|
32
|
+
budget: {
|
|
33
|
+
type: "usage",
|
|
34
|
+
currency_code: null,
|
|
35
|
+
limit: null
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
// src/pages/campaigns/create/create-campaign-form/create-campaign-form.tsx
|
|
40
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
41
|
+
var CreateCampaignSchema = zod.object({
|
|
42
|
+
name: zod.string().min(1),
|
|
43
|
+
description: zod.string().optional(),
|
|
44
|
+
campaign_identifier: zod.string().min(1),
|
|
45
|
+
starts_at: zod.date().nullable(),
|
|
46
|
+
ends_at: zod.date().nullable(),
|
|
47
|
+
budget: zod.object({
|
|
48
|
+
limit: zod.number().min(0).nullish(),
|
|
49
|
+
type: zod.enum(["spend", "usage"]),
|
|
50
|
+
currency_code: zod.string().nullish()
|
|
51
|
+
})
|
|
52
|
+
});
|
|
53
|
+
var CreateCampaignForm = () => {
|
|
54
|
+
const { t } = useTranslation();
|
|
55
|
+
const { handleSuccess } = useRouteModal();
|
|
56
|
+
const { mutateAsync, isPending } = useCreateCampaign();
|
|
57
|
+
const form = useForm({
|
|
58
|
+
defaultValues: DEFAULT_CAMPAIGN_VALUES,
|
|
59
|
+
resolver: zodResolver(CreateCampaignSchema)
|
|
60
|
+
});
|
|
61
|
+
const handleSubmit = form.handleSubmit(async (data) => {
|
|
62
|
+
await mutateAsync(
|
|
63
|
+
{
|
|
64
|
+
name: data.name,
|
|
65
|
+
description: data.description,
|
|
66
|
+
campaign_identifier: data.campaign_identifier,
|
|
67
|
+
starts_at: data.starts_at,
|
|
68
|
+
ends_at: data.ends_at,
|
|
69
|
+
budget: {
|
|
70
|
+
type: data.budget.type,
|
|
71
|
+
limit: data.budget.limit ? data.budget.limit : void 0,
|
|
72
|
+
currency_code: data.budget.currency_code
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
onSuccess: ({ campaign }) => {
|
|
77
|
+
toast.success(
|
|
78
|
+
t("campaigns.create.successToast", {
|
|
79
|
+
name: campaign.name
|
|
80
|
+
})
|
|
81
|
+
);
|
|
82
|
+
handleSuccess(`/campaigns/${campaign.id}`);
|
|
83
|
+
},
|
|
84
|
+
onError: (error) => {
|
|
85
|
+
toast.error(error.message);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
);
|
|
89
|
+
});
|
|
90
|
+
return /* @__PURE__ */ jsx(RouteFocusModal.Form, { form, children: /* @__PURE__ */ jsxs(
|
|
91
|
+
KeyboundForm,
|
|
92
|
+
{
|
|
93
|
+
onSubmit: handleSubmit,
|
|
94
|
+
className: "flex size-full flex-col overflow-hidden",
|
|
95
|
+
children: [
|
|
96
|
+
/* @__PURE__ */ jsxs(RouteFocusModal.Header, { children: [
|
|
97
|
+
/* @__PURE__ */ jsx(RouteFocusModal.Title, { asChild: true, children: /* @__PURE__ */ jsx(VisuallyHidden, { children: t("campaigns.create.title") }) }),
|
|
98
|
+
/* @__PURE__ */ jsx(RouteFocusModal.Description, { asChild: true, children: /* @__PURE__ */ jsx(VisuallyHidden, { children: t("campaigns.create.description") }) })
|
|
99
|
+
] }),
|
|
100
|
+
/* @__PURE__ */ jsx(RouteFocusModal.Body, { className: "flex size-full flex-col items-center overflow-auto py-16", children: /* @__PURE__ */ jsx(CreateCampaignFormFields, { form }) }),
|
|
101
|
+
/* @__PURE__ */ jsx(RouteFocusModal.Footer, { children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-x-2", children: [
|
|
102
|
+
/* @__PURE__ */ jsx(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", children: t("actions.cancel") }) }),
|
|
103
|
+
/* @__PURE__ */ jsx(
|
|
104
|
+
Button,
|
|
105
|
+
{
|
|
106
|
+
size: "small",
|
|
107
|
+
variant: "primary",
|
|
108
|
+
type: "submit",
|
|
109
|
+
isLoading: isPending,
|
|
110
|
+
children: t("actions.create")
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
] }) })
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
) });
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
export {
|
|
120
|
+
DEFAULT_CAMPAIGN_VALUES,
|
|
121
|
+
CreateCampaignSchema,
|
|
122
|
+
CreateCampaignForm
|
|
123
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useQueryParams
|
|
3
|
+
} from "./chunk-THHRRYRS.js";
|
|
4
|
+
|
|
5
|
+
// src/hooks/table/query/use-campaign-table-query.tsx
|
|
6
|
+
var useCampaignTableQuery = ({
|
|
7
|
+
prefix,
|
|
8
|
+
pageSize = 20
|
|
9
|
+
}) => {
|
|
10
|
+
const queryObject = useQueryParams(
|
|
11
|
+
["offset", "q", "order", "created_at", "updated_at"],
|
|
12
|
+
prefix
|
|
13
|
+
);
|
|
14
|
+
const { offset, q, order, created_at, updated_at } = queryObject;
|
|
15
|
+
const searchParams = {
|
|
16
|
+
limit: pageSize,
|
|
17
|
+
offset: offset ? Number(offset) : 0,
|
|
18
|
+
order,
|
|
19
|
+
created_at: created_at ? JSON.parse(created_at) : void 0,
|
|
20
|
+
updated_at: updated_at ? JSON.parse(updated_at) : void 0,
|
|
21
|
+
q
|
|
22
|
+
};
|
|
23
|
+
return {
|
|
24
|
+
searchParams,
|
|
25
|
+
raw: queryObject
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
useCampaignTableQuery
|
|
31
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {
|
|
2
|
+
queryClient
|
|
3
|
+
} from "./chunk-RHKRREUU.js";
|
|
4
|
+
import {
|
|
5
|
+
queryKeysFactory
|
|
6
|
+
} from "./chunk-ZA2KFUFR.js";
|
|
7
|
+
import {
|
|
8
|
+
sdk
|
|
9
|
+
} from "./chunk-Y224F4UU.js";
|
|
10
|
+
|
|
11
|
+
// src/hooks/api/tax-regions.tsx
|
|
12
|
+
import {
|
|
13
|
+
useMutation,
|
|
14
|
+
useQuery
|
|
15
|
+
} from "@tanstack/react-query";
|
|
16
|
+
var TAX_REGIONS_QUERY_KEY = "tax_regions";
|
|
17
|
+
var taxRegionsQueryKeys = queryKeysFactory(TAX_REGIONS_QUERY_KEY);
|
|
18
|
+
var useTaxRegion = (id, query, options) => {
|
|
19
|
+
const { data, ...rest } = useQuery({
|
|
20
|
+
queryKey: taxRegionsQueryKeys.detail(id),
|
|
21
|
+
queryFn: async () => sdk.vendor.taxRegions.$id.query({ $id: id, ...query }),
|
|
22
|
+
...options
|
|
23
|
+
});
|
|
24
|
+
return { ...data, ...rest };
|
|
25
|
+
};
|
|
26
|
+
var useTaxRegions = (query, options) => {
|
|
27
|
+
const { data, ...rest } = useQuery({
|
|
28
|
+
queryFn: () => sdk.vendor.taxRegions.query({ ...query }),
|
|
29
|
+
queryKey: taxRegionsQueryKeys.list(query),
|
|
30
|
+
...options
|
|
31
|
+
});
|
|
32
|
+
return { ...data, ...rest };
|
|
33
|
+
};
|
|
34
|
+
var useCreateTaxRegion = (options) => {
|
|
35
|
+
return useMutation({
|
|
36
|
+
mutationFn: (payload) => sdk.vendor.taxRegions.mutate(payload),
|
|
37
|
+
onSuccess: (data, variables, context) => {
|
|
38
|
+
queryClient.invalidateQueries({ queryKey: taxRegionsQueryKeys.all });
|
|
39
|
+
options?.onSuccess?.(data, variables, context);
|
|
40
|
+
},
|
|
41
|
+
...options
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
var useDeleteTaxRegion = (id, options) => {
|
|
45
|
+
return useMutation({
|
|
46
|
+
mutationFn: () => sdk.vendor.taxRegions.$id.delete({ $id: id }),
|
|
47
|
+
onSuccess: (data, variables, context) => {
|
|
48
|
+
queryClient.invalidateQueries({ queryKey: taxRegionsQueryKeys.lists() });
|
|
49
|
+
queryClient.invalidateQueries({
|
|
50
|
+
queryKey: taxRegionsQueryKeys.detail(id)
|
|
51
|
+
});
|
|
52
|
+
queryClient.invalidateQueries({
|
|
53
|
+
queryKey: taxRegionsQueryKeys.details()
|
|
54
|
+
});
|
|
55
|
+
options?.onSuccess?.(data, variables, context);
|
|
56
|
+
},
|
|
57
|
+
...options
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
taxRegionsQueryKeys,
|
|
63
|
+
useTaxRegion,
|
|
64
|
+
useTaxRegions,
|
|
65
|
+
useCreateTaxRegion,
|
|
66
|
+
useDeleteTaxRegion
|
|
67
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// src/lib/shipping-options.ts
|
|
2
|
+
function isReturnOption(shippingOption) {
|
|
3
|
+
return !!shippingOption.rules?.find(
|
|
4
|
+
(r) => r.attribute === "is_return" && r.value === "true" && r.operator === "eq"
|
|
5
|
+
);
|
|
6
|
+
}
|
|
7
|
+
function isOptionEnabledInStore(shippingOption) {
|
|
8
|
+
return !!shippingOption.rules?.find(
|
|
9
|
+
(r) => r.attribute === "enabled_in_store" && r.value === "true" && r.operator === "eq"
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
function getShippingProfileName(name) {
|
|
13
|
+
return name.split(":")[1];
|
|
14
|
+
}
|
|
15
|
+
function isSameLocation(shippingOption, locationId) {
|
|
16
|
+
return shippingOption?.service_zone?.fulfillment_set?.location?.id === locationId;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
isReturnOption,
|
|
21
|
+
isOptionEnabledInStore,
|
|
22
|
+
getShippingProfileName,
|
|
23
|
+
isSameLocation
|
|
24
|
+
};
|