@shophost/react 2.0.24 → 2.0.25
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/admin-client.cjs +1 -1
- package/admin-client.js +208 -208
- package/package.json +3 -3
package/admin-client.js
CHANGED
|
@@ -7,8 +7,8 @@ import R, { createContext as ve, useContext as le, useMemo as Se, useState as I,
|
|
|
7
7
|
import se, { Toaster as Nn } from "react-hot-toast";
|
|
8
8
|
import { inferAdditionalFields as Ur, organizationClient as Wr } from "better-auth/client/plugins";
|
|
9
9
|
import { createAuthClient as $r } from "better-auth/react";
|
|
10
|
-
import { useFormContext as _r, useFormState as
|
|
11
|
-
import { Search as Da, ChevronDown as Ke, Check as vt, MailIcon as Rn, XIcon as
|
|
10
|
+
import { useFormContext as _r, useFormState as Gt, useForm as de, FormProvider as Ge, useFieldArray as Ea } from "react-hook-form";
|
|
11
|
+
import { Search as Da, ChevronDown as Ke, Check as vt, MailIcon as Rn, XIcon as Kt, CloudUpload as Zt, Loader2 as Cn, Phone as qr, X as At, LanguagesIcon as Gr, ChevronLeft as Xt, ShoppingBasketIcon as Kr, UserIcon as Pn, CircleChevronRightIcon as Tn, PartyPopperIcon as Qn, AtSign as In, PlusCircleIcon as Ln, XCircleIcon as En, PlusIcon as je, CheckCircle as Yt, ArrowRight as Dn, EyeOffIcon as Xr, PencilIcon as Yr, Trash2 as es, TrashIcon as zn, BookCopyIcon as fr, CheckIcon as ts, HomeIcon as as, RadioIcon as rs, LogsIcon as ss, CalendarCheckIcon as is, PackageIcon as ns, BoxesIcon as os, FactoryIcon as ls, UserCircleIcon as Mn, ExternalLinkIcon as Bn } from "lucide-react";
|
|
12
12
|
import { upload as ds } from "@vercel/blob/client";
|
|
13
13
|
import ge from "next/image.js";
|
|
14
14
|
import { useDebounce as Xe } from "use-debounce";
|
|
@@ -16,10 +16,10 @@ import x from "classnames";
|
|
|
16
16
|
import { withMask as Jn } from "use-mask-input";
|
|
17
17
|
import { Transition as cs, Dialog as On, TransitionChild as yr, DialogPanel as Fn } from "@headlessui/react";
|
|
18
18
|
import O from "next/link.js";
|
|
19
|
-
import { RiCloseLine as us, RiLoader2Fill as ps, RiSearchLine as za, RiEyeFill as ms, RiEyeOffFill as gs, RiGoogleFill as
|
|
19
|
+
import { RiCloseLine as us, RiLoader2Fill as ps, RiSearchLine as za, RiEyeFill as ms, RiEyeOffFill as gs, RiGoogleFill as ea, RiArrowLeftSLine as Ut, RiArrowRightSLine as it, RiArrowLeftDoubleLine as hs, RiArrowRightDoubleLine as fs, RiCalendar2Fill as jn, RiSubtractFill as Vn, RiArrowDownSLine as Ma, RiArrowUpSLine as ys, RiCheckLine as ta, RiSettings5Line as Ba, RiRadioButtonFill as Hn, RiCheckboxBlankCircleLine as Zn, RiMoreFill as aa, RiMenuLine as Un, RiExpandUpDownLine as ws, RiSunLine as Wn, RiMoonLine as $n, RiComputerLine as _n, RiMore2Fill as qn } from "@remixicon/react";
|
|
20
20
|
import { useRouter as K, useSearchParams as fe, usePathname as nt, useParams as bs, notFound as _e } from "next/navigation.js";
|
|
21
21
|
import { zodResolver as ce } from "@hookform/resolvers/zod";
|
|
22
|
-
import { format as V, isValid as xs, isSameMonth as Gn, addYears as
|
|
22
|
+
import { format as V, isValid as xs, isSameMonth as Gn, addYears as Bt, subYears as wr, interval as Ot, eachDayOfInterval as Ss, subDays as Ra, isWithinInterval as br, formatDate as xr, toDate as ks } from "date-fns";
|
|
23
23
|
import { initClient as Kn } from "@shophost/client";
|
|
24
24
|
import { tv as Pe } from "tailwind-variants";
|
|
25
25
|
import vs from "clsx";
|
|
@@ -38,11 +38,11 @@ import * as Ns from "@radix-ui/react-label";
|
|
|
38
38
|
import * as Y from "@radix-ui/react-select";
|
|
39
39
|
import { z as g } from "@hono/zod-openapi";
|
|
40
40
|
import { Command as F } from "cmdk";
|
|
41
|
-
import * as
|
|
41
|
+
import * as ra from "react-phone-number-input";
|
|
42
42
|
import Rs from "react-phone-number-input/flags";
|
|
43
|
-
import * as
|
|
43
|
+
import * as Wt from "@radix-ui/react-switch";
|
|
44
44
|
import * as Oa from "@radix-ui/react-radio-group";
|
|
45
|
-
import * as
|
|
45
|
+
import * as $t from "@radix-ui/react-navigation-menu";
|
|
46
46
|
import { useReactTable as go, getSortedRowModel as ho, getCoreRowModel as fo, getFilteredRowModel as yo, flexRender as Nr, createColumnHelper as ot } from "@tanstack/react-table";
|
|
47
47
|
import * as ne from "@radix-ui/react-dropdown-menu";
|
|
48
48
|
const Cs = ve(null), Ps = ({ baseUrl: t, children: a }) => {
|
|
@@ -829,7 +829,7 @@ const zs = ve(
|
|
|
829
829
|
locale: a
|
|
830
830
|
};
|
|
831
831
|
return /* @__PURE__ */ e(Ms.Provider, { value: Z, children: t });
|
|
832
|
-
},
|
|
832
|
+
}, sa = () => {
|
|
833
833
|
const t = le(Ms);
|
|
834
834
|
if (!t)
|
|
835
835
|
throw new Error("useModifiers must be used within a ModifiersProvider");
|
|
@@ -1123,7 +1123,7 @@ const zs = ve(
|
|
|
1123
1123
|
path: ["translations", o, l]
|
|
1124
1124
|
});
|
|
1125
1125
|
});
|
|
1126
|
-
},
|
|
1126
|
+
}, ia = /* @__PURE__ */ new Map([
|
|
1127
1127
|
["af", "Afrikaans"],
|
|
1128
1128
|
["sq", "Albanian"],
|
|
1129
1129
|
["ar_dz", "Arabic (Algeria)"],
|
|
@@ -1237,7 +1237,7 @@ const zs = ve(
|
|
|
1237
1237
|
["cy", "Welsh"],
|
|
1238
1238
|
["ji", "Yiddish"],
|
|
1239
1239
|
["zu", "Zulu"]
|
|
1240
|
-
]), Cr = Array.from(
|
|
1240
|
+
]), Cr = Array.from(ia.entries()).map(
|
|
1241
1241
|
([t, a]) => ({ value: t, label: a })
|
|
1242
1242
|
), Oe = g.enum([
|
|
1243
1243
|
"af",
|
|
@@ -1365,7 +1365,7 @@ const zs = ve(
|
|
|
1365
1365
|
g.number().nonnegative({ message: "This field must be a positive number" }).nullable().refine((t) => t === null || t >= 0, {
|
|
1366
1366
|
message: "Price must be positive"
|
|
1367
1367
|
})
|
|
1368
|
-
),
|
|
1368
|
+
), _t = g.coerce.number().min(0.1, "This field must be positive").refine((t) => /^\d+(\.\d{1,2})?$/.test(t.toString()), {
|
|
1369
1369
|
message: "This field can have a maximum of two decimal points"
|
|
1370
1370
|
}), Jo = g.object({
|
|
1371
1371
|
type: g.literal("blob.generate-client-token"),
|
|
@@ -1436,7 +1436,7 @@ const Ve = g.object({
|
|
|
1436
1436
|
example: "example.png",
|
|
1437
1437
|
description: "Name of the file"
|
|
1438
1438
|
})
|
|
1439
|
-
}).openapi("UploadedFile"),
|
|
1439
|
+
}).openapi("UploadedFile"), na = g.object({
|
|
1440
1440
|
id: g.string().openapi({
|
|
1441
1441
|
example: "clf9876543210abcdef",
|
|
1442
1442
|
description: "ID of the product category"
|
|
@@ -1471,13 +1471,13 @@ const Ve = g.object({
|
|
|
1471
1471
|
description: "List of translations for the product category"
|
|
1472
1472
|
})
|
|
1473
1473
|
}).openapi("ProductCategory");
|
|
1474
|
-
|
|
1474
|
+
na.omit({
|
|
1475
1475
|
translations: !0
|
|
1476
1476
|
}).extend({
|
|
1477
1477
|
title: g.string().default(""),
|
|
1478
1478
|
description: g.string().default("")
|
|
1479
1479
|
}).openapi("LocalizedProductCategory");
|
|
1480
|
-
const Fo =
|
|
1480
|
+
const Fo = na.pick({
|
|
1481
1481
|
slug: !0,
|
|
1482
1482
|
image: !0,
|
|
1483
1483
|
translations: !0
|
|
@@ -1488,7 +1488,7 @@ const Fo = oa.pick({
|
|
|
1488
1488
|
imageId: g.string().cuid().optional().openapi({
|
|
1489
1489
|
description: "ID of the image for the product category"
|
|
1490
1490
|
})
|
|
1491
|
-
}).superRefine(lt("title")).openapi("CreateProductCategory"), jo =
|
|
1491
|
+
}).superRefine(lt("title")).openapi("CreateProductCategory"), jo = na.pick({
|
|
1492
1492
|
slug: !0,
|
|
1493
1493
|
image: !0,
|
|
1494
1494
|
translations: !0
|
|
@@ -1584,7 +1584,7 @@ const Fo = oa.pick({
|
|
|
1584
1584
|
example: "PRM-WATCH-01",
|
|
1585
1585
|
description: "Stock Keeping Unit identifier"
|
|
1586
1586
|
}),
|
|
1587
|
-
basePrice:
|
|
1587
|
+
basePrice: _t,
|
|
1588
1588
|
discountedBasePrice: Js,
|
|
1589
1589
|
currency: g.string().openapi({
|
|
1590
1590
|
example: "USD",
|
|
@@ -1596,7 +1596,7 @@ const Fo = oa.pick({
|
|
|
1596
1596
|
modifierGroups: g.array(Fs).optional().openapi({
|
|
1597
1597
|
description: "List of product modifier groups"
|
|
1598
1598
|
}),
|
|
1599
|
-
categories: g.array(
|
|
1599
|
+
categories: g.array(na).openapi({
|
|
1600
1600
|
example: ["cju0z9k4z0000l1qg5z1z1z"],
|
|
1601
1601
|
description: "IDs of associated product categories"
|
|
1602
1602
|
}),
|
|
@@ -1863,7 +1863,7 @@ const dt = g.object({
|
|
|
1863
1863
|
example: "Leave at the door",
|
|
1864
1864
|
description: "Delivery instructions for the address"
|
|
1865
1865
|
})
|
|
1866
|
-
}).openapi("Address"),
|
|
1866
|
+
}).openapi("Address"), oa = dt.pick({
|
|
1867
1867
|
addressLineOne: !0,
|
|
1868
1868
|
doorNumber: !0,
|
|
1869
1869
|
addressLineTwo: !0,
|
|
@@ -1871,7 +1871,7 @@ const dt = g.object({
|
|
|
1871
1871
|
city: !0,
|
|
1872
1872
|
country: !0,
|
|
1873
1873
|
placeId: !0
|
|
1874
|
-
}).openapi("CreateAddress"), Us =
|
|
1874
|
+
}).openapi("CreateAddress"), Us = oa.partial().openapi("UpdateAddress"), $o = dt.extend({
|
|
1875
1875
|
firstname: g.string().min(2, "First Name must be at least 2 characters").openapi({
|
|
1876
1876
|
example: "John",
|
|
1877
1877
|
description: "The first name of the recipient"
|
|
@@ -2014,11 +2014,11 @@ const Go = g.object({
|
|
|
2014
2014
|
example: "Zone 1",
|
|
2015
2015
|
description: "Title of the shipping zone"
|
|
2016
2016
|
}),
|
|
2017
|
-
distanceUpto:
|
|
2017
|
+
distanceUpto: _t.openapi({
|
|
2018
2018
|
example: 10,
|
|
2019
2019
|
description: "Ending distance for the shipping zone"
|
|
2020
2020
|
}),
|
|
2021
|
-
price:
|
|
2021
|
+
price: _t.openapi({
|
|
2022
2022
|
example: 5.99,
|
|
2023
2023
|
description: "Price for shipping in this zone"
|
|
2024
2024
|
}),
|
|
@@ -2340,7 +2340,7 @@ const Tr = g.object({
|
|
|
2340
2340
|
example: "clm1234567890abcdef",
|
|
2341
2341
|
description: "The unique identifier of the thumbnail image associated with the organization"
|
|
2342
2342
|
}),
|
|
2343
|
-
address:
|
|
2343
|
+
address: oa
|
|
2344
2344
|
}).openapi("CreateOrganization"), Wa = Ks.extend({
|
|
2345
2345
|
address: Us,
|
|
2346
2346
|
configuration: el
|
|
@@ -2483,7 +2483,7 @@ g.object({
|
|
|
2483
2483
|
example: "+48123456789",
|
|
2484
2484
|
description: "The phone number of the legal entity"
|
|
2485
2485
|
}),
|
|
2486
|
-
address:
|
|
2486
|
+
address: oa.required().openapi({
|
|
2487
2487
|
description: "The address of the legal entity"
|
|
2488
2488
|
})
|
|
2489
2489
|
}).openapi("CreateLegalEntity");
|
|
@@ -2536,7 +2536,7 @@ const il = g.object({
|
|
|
2536
2536
|
email: !0,
|
|
2537
2537
|
phone: !0
|
|
2538
2538
|
}).extend({
|
|
2539
|
-
address:
|
|
2539
|
+
address: oa
|
|
2540
2540
|
}).openapi("Customer");
|
|
2541
2541
|
nl.partial().openapi("UpdateCustomer");
|
|
2542
2542
|
const $a = g.object({
|
|
@@ -2628,7 +2628,7 @@ const ll = g.object({
|
|
|
2628
2628
|
description: "Customer's last name",
|
|
2629
2629
|
example: "Doe"
|
|
2630
2630
|
}),
|
|
2631
|
-
guests:
|
|
2631
|
+
guests: _t,
|
|
2632
2632
|
phone: g.string().openapi({
|
|
2633
2633
|
description: "Customer's phone number",
|
|
2634
2634
|
example: "+1234567890"
|
|
@@ -2874,8 +2874,8 @@ const Qr = [
|
|
|
2874
2874
|
{ value: "ET", label: "Ethiopia", flag: "🇪🇹" }
|
|
2875
2875
|
]
|
|
2876
2876
|
}
|
|
2877
|
-
],
|
|
2878
|
-
|
|
2877
|
+
], la = (t) => /* @__PURE__ */ e(H.Root, { ...t });
|
|
2878
|
+
la.displayName = "Dialog";
|
|
2879
2879
|
const pl = H.Trigger;
|
|
2880
2880
|
pl.displayName = "DialogTrigger";
|
|
2881
2881
|
const ml = H.Close;
|
|
@@ -2899,7 +2899,7 @@ const ti = R.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
2899
2899
|
}
|
|
2900
2900
|
));
|
|
2901
2901
|
ti.displayName = "DialogOverlay";
|
|
2902
|
-
const
|
|
2902
|
+
const da = R.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(ei, { children: /* @__PURE__ */ e(ti, { children: /* @__PURE__ */ e(
|
|
2903
2903
|
H.Content,
|
|
2904
2904
|
{
|
|
2905
2905
|
ref: r,
|
|
@@ -2918,7 +2918,7 @@ const ca = R.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(ei, { c
|
|
|
2918
2918
|
...a
|
|
2919
2919
|
}
|
|
2920
2920
|
) }) }));
|
|
2921
|
-
|
|
2921
|
+
da.displayName = "DialogContent";
|
|
2922
2922
|
const ai = ({
|
|
2923
2923
|
className: t,
|
|
2924
2924
|
...a
|
|
@@ -2962,7 +2962,7 @@ const hl = ({
|
|
|
2962
2962
|
}
|
|
2963
2963
|
);
|
|
2964
2964
|
hl.displayName = "DialogFooter";
|
|
2965
|
-
const
|
|
2965
|
+
const ca = N.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
2966
2966
|
F,
|
|
2967
2967
|
{
|
|
2968
2968
|
ref: r,
|
|
@@ -2973,8 +2973,8 @@ const ua = N.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
2973
2973
|
...a
|
|
2974
2974
|
}
|
|
2975
2975
|
));
|
|
2976
|
-
|
|
2977
|
-
const Nu = ({ children: t, ...a }) => /* @__PURE__ */ e(
|
|
2976
|
+
ca.displayName = F.displayName;
|
|
2977
|
+
const Nu = ({ children: t, ...a }) => /* @__PURE__ */ e(la, { ...a, children: /* @__PURE__ */ e(da, { className: "overflow-hidden p-0", children: /* @__PURE__ */ e(ca, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: t }) }) }), qa = N.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ s("div", { className: "flex items-center border-b pl-3", "cmdk-input-wrapper": "", children: [
|
|
2978
2978
|
/* @__PURE__ */ e(Da, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
2979
2979
|
/* @__PURE__ */ e(
|
|
2980
2980
|
F.Input,
|
|
@@ -3149,7 +3149,7 @@ const xl = ({
|
|
|
3149
3149
|
{
|
|
3150
3150
|
className: "w-full min-w-[var(--radix-popper-anchor-width)] border-input -mt-1 z-50",
|
|
3151
3151
|
align: "start",
|
|
3152
|
-
children: /* @__PURE__ */ s(
|
|
3152
|
+
children: /* @__PURE__ */ s(ca, { className: "p-0", children: [
|
|
3153
3153
|
/* @__PURE__ */ e(
|
|
3154
3154
|
qa,
|
|
3155
3155
|
{
|
|
@@ -3344,7 +3344,7 @@ const kl = ({ ...t }) => {
|
|
|
3344
3344
|
{
|
|
3345
3345
|
className: "absolute w-6 h-6 bg-black flex items-center justify-center rounded-md right-1 top-1",
|
|
3346
3346
|
onClick: () => c(m.id),
|
|
3347
|
-
children: /* @__PURE__ */ e(
|
|
3347
|
+
children: /* @__PURE__ */ e(Kt, { className: "w-4 h-4 text-white" })
|
|
3348
3348
|
}
|
|
3349
3349
|
),
|
|
3350
3350
|
/* @__PURE__ */ e(
|
|
@@ -3381,7 +3381,7 @@ const kl = ({ ...t }) => {
|
|
|
3381
3381
|
"%)"
|
|
3382
3382
|
] })
|
|
3383
3383
|
] }) : /* @__PURE__ */ s(C, { children: [
|
|
3384
|
-
/* @__PURE__ */ e(
|
|
3384
|
+
/* @__PURE__ */ e(Zt, { className: "w-12 h-12 text-gray-300 group-hover:text-gray-600 transition-all stroke-1" }),
|
|
3385
3385
|
/* @__PURE__ */ e("p", { className: "pt-1 text-sm font-medium text-gray-400 group-hover:text-gray-600", children: "Upload an image" })
|
|
3386
3386
|
] }) }),
|
|
3387
3387
|
/* @__PURE__ */ e(
|
|
@@ -3419,7 +3419,7 @@ const kl = ({ ...t }) => {
|
|
|
3419
3419
|
"%)"
|
|
3420
3420
|
] })
|
|
3421
3421
|
] }) : /* @__PURE__ */ s(C, { children: [
|
|
3422
|
-
/* @__PURE__ */ e(
|
|
3422
|
+
/* @__PURE__ */ e(Zt, { className: "w-12 h-12 text-gray-300 group-hover:text-gray-600 transition-all stroke-1" }),
|
|
3423
3423
|
/* @__PURE__ */ e("p", { className: "pt-1 text-sm font-medium text-gray-400 group-hover:text-gray-600", children: "Upload an image" })
|
|
3424
3424
|
] }) }),
|
|
3425
3425
|
/* @__PURE__ */ e(
|
|
@@ -3601,7 +3601,7 @@ const Al = ({
|
|
|
3601
3601
|
i.filter((o) => o.value).map((o, l) => /* @__PURE__ */ s("option", { value: o.value, children: [
|
|
3602
3602
|
o.label,
|
|
3603
3603
|
" ",
|
|
3604
|
-
o.value && `+${
|
|
3604
|
+
o.value && `+${ra.getCountryCallingCode(o.value)}`
|
|
3605
3605
|
] }, o.value ?? `empty-${l}`))
|
|
3606
3606
|
]
|
|
3607
3607
|
}
|
|
@@ -3616,7 +3616,7 @@ const Al = ({
|
|
|
3616
3616
|
}) => {
|
|
3617
3617
|
const i = De();
|
|
3618
3618
|
return /* @__PURE__ */ e("div", { className: "mt-2", children: /* @__PURE__ */ e(
|
|
3619
|
-
|
|
3619
|
+
ra.default,
|
|
3620
3620
|
{
|
|
3621
3621
|
id: i,
|
|
3622
3622
|
className: "flex rounded-lg shadow-2xs shadow-black/5",
|
|
@@ -3702,7 +3702,7 @@ const Al = ({
|
|
|
3702
3702
|
{
|
|
3703
3703
|
className: "w-full min-w-[var(--radix-popper-anchor-width)] border-input -mt-1 z-50 p-0",
|
|
3704
3704
|
align: "start",
|
|
3705
|
-
children: /* @__PURE__ */ s(
|
|
3705
|
+
children: /* @__PURE__ */ s(ca, { className: "p-0", children: [
|
|
3706
3706
|
/* @__PURE__ */ e(
|
|
3707
3707
|
qa,
|
|
3708
3708
|
{
|
|
@@ -3785,12 +3785,12 @@ const Al = ({
|
|
|
3785
3785
|
}), ii = R.forwardRef(({ className: t, size: a, ...r }, i) => {
|
|
3786
3786
|
const { root: n, thumb: o } = Cl({ size: a });
|
|
3787
3787
|
return /* @__PURE__ */ e(
|
|
3788
|
-
|
|
3788
|
+
Wt.Root,
|
|
3789
3789
|
{
|
|
3790
3790
|
ref: i,
|
|
3791
3791
|
className: x(n(), t),
|
|
3792
3792
|
...r,
|
|
3793
|
-
children: /* @__PURE__ */ e(
|
|
3793
|
+
children: /* @__PURE__ */ e(Wt.Thumb, { className: x(o()) })
|
|
3794
3794
|
}
|
|
3795
3795
|
);
|
|
3796
3796
|
});
|
|
@@ -4045,7 +4045,7 @@ const Pl = ({
|
|
|
4045
4045
|
prefix: u,
|
|
4046
4046
|
disabled: p
|
|
4047
4047
|
}) => {
|
|
4048
|
-
const { errors: m } =
|
|
4048
|
+
const { errors: m } = Gt(), h = Ql(m, a);
|
|
4049
4049
|
return /* @__PURE__ */ s("div", { className: x("w-full", i), children: [
|
|
4050
4050
|
typeof r == "string" && /* @__PURE__ */ s(
|
|
4051
4051
|
Re,
|
|
@@ -4058,7 +4058,7 @@ const Pl = ({
|
|
|
4058
4058
|
c && /* @__PURE__ */ e(Gr, { className: "w-4 h-4 ml-1 text-gray-500" })
|
|
4059
4059
|
] }),
|
|
4060
4060
|
n && c && /* @__PURE__ */ s("span", { className: "flex items-center text-xs text-gray-500 ml-1 bg-gray-100 px-1 py-0.5 rounded-sm", children: [
|
|
4061
|
-
|
|
4061
|
+
ia.get(n),
|
|
4062
4062
|
" (",
|
|
4063
4063
|
n,
|
|
4064
4064
|
")"
|
|
@@ -5025,7 +5025,7 @@ const Ol = ({
|
|
|
5025
5025
|
] })
|
|
5026
5026
|
] }), $l = () => /* @__PURE__ */ s("header", { className: "fixed flex justify-between px-2 md:px-6 py-4 md:py-12 z-50 bg-gray-900 md:bg-transparent w-full", children: [
|
|
5027
5027
|
/* @__PURE__ */ s("div", { className: "flex items-center", children: [
|
|
5028
|
-
/* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
5028
|
+
/* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(Xt, { className: "w-5 h-5 text-white" }) }),
|
|
5029
5029
|
/* @__PURE__ */ e("div", { className: "ml-1.5 w-7 xl:w-8 h-7 xl:h-8 bg-gray-300 animate-pulse rounded-full" }),
|
|
5030
5030
|
/* @__PURE__ */ e("div", { className: "ml-2 bg-gray-300 animate-pulse h-5 xl:h-6 w-24 xl:w-28 rounded" })
|
|
5031
5031
|
] }),
|
|
@@ -5081,7 +5081,7 @@ const Ol = ({
|
|
|
5081
5081
|
}
|
|
5082
5082
|
)
|
|
5083
5083
|
] }) });
|
|
5084
|
-
},
|
|
5084
|
+
}, ua = ({ summary: t }) => {
|
|
5085
5085
|
const { organization: a, loading: r } = ze(), [i, n] = I(!1);
|
|
5086
5086
|
if (r || !a)
|
|
5087
5087
|
return /* @__PURE__ */ e($l, {});
|
|
@@ -5089,7 +5089,7 @@ const Ol = ({
|
|
|
5089
5089
|
return /* @__PURE__ */ s(C, { children: [
|
|
5090
5090
|
/* @__PURE__ */ s("header", { className: "fixed flex justify-between px-2 md:px-6 py-4 md:py-12 z-50 bg-gray-900 md:bg-transparent w-full", children: [
|
|
5091
5091
|
/* @__PURE__ */ s(O, { href: "/", className: "flex items-center", children: [
|
|
5092
|
-
/* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(
|
|
5092
|
+
/* @__PURE__ */ e("span", { children: /* @__PURE__ */ e(Xt, { className: "w-5 h-5 text-white" }) }),
|
|
5093
5093
|
l ? /* @__PURE__ */ e("span", { className: "ml-1.5 w-7 xl:w-8 h-7 xl:h-8 overflow-hidden rounded-full", children: /* @__PURE__ */ e(
|
|
5094
5094
|
ge,
|
|
5095
5095
|
{
|
|
@@ -5112,7 +5112,7 @@ const Ol = ({
|
|
|
5112
5112
|
{
|
|
5113
5113
|
className: "flex items-center text-white mr-2 animate-fade",
|
|
5114
5114
|
onClick: () => n(!1),
|
|
5115
|
-
children: /* @__PURE__ */ e(
|
|
5115
|
+
children: /* @__PURE__ */ e(Kt, { className: "w-5 h-5" })
|
|
5116
5116
|
},
|
|
5117
5117
|
1
|
|
5118
5118
|
) : /* @__PURE__ */ s(
|
|
@@ -5145,7 +5145,7 @@ const Ol = ({
|
|
|
5145
5145
|
description: a,
|
|
5146
5146
|
title: r
|
|
5147
5147
|
}) => /* @__PURE__ */ s(C, { children: [
|
|
5148
|
-
/* @__PURE__ */ e(
|
|
5148
|
+
/* @__PURE__ */ e(ua, {}),
|
|
5149
5149
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ s("div", { className: "flex flex-col md:flex-row h-screen w-screen relative", children: [
|
|
5150
5150
|
/* @__PURE__ */ e("div", { className: "hidden md:flex items-center justify-end w-full md:w-1/2 h-full px-16 xl:px-24 relative", children: /* @__PURE__ */ e("div", { className: "absolute inset-0 z-0", children: /* @__PURE__ */ e(
|
|
5151
5151
|
ge,
|
|
@@ -5171,7 +5171,7 @@ const Ol = ({
|
|
|
5171
5171
|
if (!n && i)
|
|
5172
5172
|
return r.push("/checkout/customer-details");
|
|
5173
5173
|
}, [i, n, r]), n ? /* @__PURE__ */ e("div", { className: "flex flex-col items-center justify-center h-screen w-screen bg-gray-900", children: /* @__PURE__ */ e("div", { className: "mb-4", children: /* @__PURE__ */ e("div", { className: "animate-spin rounded-full h-18 w-18 border-b-2 border-teal-500" }) }) }) : /* @__PURE__ */ e(di, { children: t });
|
|
5174
|
-
},
|
|
5174
|
+
}, Jt = ({ children: t }) => {
|
|
5175
5175
|
const { useSession: a } = Ye(), r = K(), { data: i, isPending: n } = a();
|
|
5176
5176
|
return X(() => {
|
|
5177
5177
|
if (!n && !i)
|
|
@@ -5802,7 +5802,7 @@ const Ol = ({
|
|
|
5802
5802
|
cancelled: !0
|
|
5803
5803
|
}), /* @__PURE__ */ s(C, { children: [
|
|
5804
5804
|
/* @__PURE__ */ e(
|
|
5805
|
-
|
|
5805
|
+
ua,
|
|
5806
5806
|
{
|
|
5807
5807
|
summary: {
|
|
5808
5808
|
total: u.payment.total,
|
|
@@ -6053,7 +6053,7 @@ const Ol = ({
|
|
|
6053
6053
|
});
|
|
6054
6054
|
const d = () => n.cancelledAt ? i("reservation.cancelledStatus") : n.acceptedAt ? i("reservation.confirmedStatus") : i("reservation.pendingStatus");
|
|
6055
6055
|
return /* @__PURE__ */ s(C, { children: [
|
|
6056
|
-
/* @__PURE__ */ e(
|
|
6056
|
+
/* @__PURE__ */ e(ua, {}),
|
|
6057
6057
|
/* @__PURE__ */ s("div", { className: "flex flex-col md:flex-row h-screen w-screen relative", children: [
|
|
6058
6058
|
/* @__PURE__ */ e("div", { className: "hidden md:flex items-center justify-end w-full md:w-1/2 h-full px-16 xl:px-24 bg-gray-900 md:overflow-y-auto", children: /* @__PURE__ */ e("div", { className: "w-96 animate-fade", children: /* @__PURE__ */ s("div", { className: "pl-6", children: [
|
|
6059
6059
|
/* @__PURE__ */ s("div", { className: "px-7 pt-10 pb-0 md:pt-0 md:px-0", children: [
|
|
@@ -6237,7 +6237,7 @@ const Ol = ({
|
|
|
6237
6237
|
className: "mt-2 w-full sm:mt-0 shadow-none inline-flex items-center gap-2",
|
|
6238
6238
|
onClick: u,
|
|
6239
6239
|
children: [
|
|
6240
|
-
/* @__PURE__ */ e(
|
|
6240
|
+
/* @__PURE__ */ e(ea, { className: "size-4", "aria-hidden": "true" }),
|
|
6241
6241
|
"Login with Google"
|
|
6242
6242
|
]
|
|
6243
6243
|
}
|
|
@@ -6352,7 +6352,7 @@ const Ol = ({
|
|
|
6352
6352
|
callbackURL: `${i}${n}`
|
|
6353
6353
|
})),
|
|
6354
6354
|
children: [
|
|
6355
|
-
/* @__PURE__ */ e(
|
|
6355
|
+
/* @__PURE__ */ e(ea, { className: "size-4", "aria-hidden": "true" }),
|
|
6356
6356
|
"Signin with Google"
|
|
6357
6357
|
]
|
|
6358
6358
|
}
|
|
@@ -6448,9 +6448,9 @@ const Ol = ({
|
|
|
6448
6448
|
case "sign-up":
|
|
6449
6449
|
return r.length !== 0 ? _e() : /* @__PURE__ */ e(Lr, { children: /* @__PURE__ */ e(dd, {}) });
|
|
6450
6450
|
case "orders":
|
|
6451
|
-
return r.length > 1 ? _e() : r.length === 0 ? /* @__PURE__ */ e(
|
|
6451
|
+
return r.length > 1 ? _e() : r.length === 0 ? /* @__PURE__ */ e(Jt, { children: /* @__PURE__ */ e(ad, {}) }) : /* @__PURE__ */ e(Jt, { children: /* @__PURE__ */ e(td, { orderId: r[0] }) });
|
|
6452
6452
|
case "reservations":
|
|
6453
|
-
return r.length !== 1 ? _e() : r[0] === "book" ? /* @__PURE__ */ e(
|
|
6453
|
+
return r.length !== 1 ? _e() : r[0] === "book" ? /* @__PURE__ */ e(Jt, { children: /* @__PURE__ */ e(sd, {}) }) : /* @__PURE__ */ e(Jt, { children: /* @__PURE__ */ e(id, { reservationId: r[0] }) });
|
|
6454
6454
|
default:
|
|
6455
6455
|
return _e();
|
|
6456
6456
|
}
|
|
@@ -6513,7 +6513,7 @@ const Ol = ({
|
|
|
6513
6513
|
)
|
|
6514
6514
|
] }) }) : /* @__PURE__ */ s(C, { children: [
|
|
6515
6515
|
/* @__PURE__ */ e(
|
|
6516
|
-
|
|
6516
|
+
ua,
|
|
6517
6517
|
{
|
|
6518
6518
|
summary: { total: d, subtotal: c, shipping: u, items: l }
|
|
6519
6519
|
}
|
|
@@ -6561,7 +6561,7 @@ const Ol = ({
|
|
|
6561
6561
|
handleDecrement: u,
|
|
6562
6562
|
handleAddToCart: p,
|
|
6563
6563
|
validationError: m
|
|
6564
|
-
} =
|
|
6564
|
+
} = sa();
|
|
6565
6565
|
if (!i)
|
|
6566
6566
|
return null;
|
|
6567
6567
|
const h = d <= 1;
|
|
@@ -6588,7 +6588,7 @@ const Ol = ({
|
|
|
6588
6588
|
group: a,
|
|
6589
6589
|
renderOptions: r
|
|
6590
6590
|
}) => {
|
|
6591
|
-
const { getModifierGroupName: i } =
|
|
6591
|
+
const { getModifierGroupName: i } = sa(), n = i(a), o = a.selectMin > 0;
|
|
6592
6592
|
let l = null;
|
|
6593
6593
|
return a.selectMin > 0 && a.selectMax > 0 && (l = a.selectMin === a.selectMax ? `${a.selectMin} option` : `${a.selectMin}-${a.selectMax}`), t({
|
|
6594
6594
|
group: a,
|
|
@@ -6610,7 +6610,7 @@ const Ol = ({
|
|
|
6610
6610
|
formatModifierPrice: d,
|
|
6611
6611
|
product: c,
|
|
6612
6612
|
locale: u
|
|
6613
|
-
} =
|
|
6613
|
+
} = sa(), p = i(r, a.id), m = n(
|
|
6614
6614
|
c.modifierGroups.find((y) => y.id === r)
|
|
6615
6615
|
), h = d(a, c.currency);
|
|
6616
6616
|
return t({
|
|
@@ -6642,14 +6642,14 @@ const Ol = ({
|
|
|
6642
6642
|
onAddToCart: b,
|
|
6643
6643
|
validationError: w
|
|
6644
6644
|
}) => /* @__PURE__ */ e(
|
|
6645
|
-
|
|
6645
|
+
la,
|
|
6646
6646
|
{
|
|
6647
6647
|
open: d,
|
|
6648
6648
|
onOpenChange: (S) => {
|
|
6649
6649
|
S || c();
|
|
6650
6650
|
},
|
|
6651
6651
|
children: /* @__PURE__ */ s(
|
|
6652
|
-
|
|
6652
|
+
da,
|
|
6653
6653
|
{
|
|
6654
6654
|
className: x(
|
|
6655
6655
|
"w-full sm:max-w-md max-h-[75vh] sm:max-h-[90vh] overflow-auto p-0",
|
|
@@ -6784,7 +6784,7 @@ const Ol = ({
|
|
|
6784
6784
|
children: t,
|
|
6785
6785
|
minQuantity: a = 1
|
|
6786
6786
|
}) => {
|
|
6787
|
-
const { quantity: r, handleIncrement: i, handleDecrement: n } =
|
|
6787
|
+
const { quantity: r, handleIncrement: i, handleDecrement: n } = sa(), o = r <= a;
|
|
6788
6788
|
return t({
|
|
6789
6789
|
quantity: r,
|
|
6790
6790
|
onIncrement: i,
|
|
@@ -7069,7 +7069,7 @@ const ut = [
|
|
|
7069
7069
|
"outline outline-offset-2 outline-0 focus-visible:outline-2",
|
|
7070
7070
|
// outline color
|
|
7071
7071
|
"outline-blue-500 dark:outline-blue-500"
|
|
7072
|
-
],
|
|
7072
|
+
], pa = [
|
|
7073
7073
|
// base
|
|
7074
7074
|
"ring-2",
|
|
7075
7075
|
// border color
|
|
@@ -7230,7 +7230,7 @@ function bd(t) {
|
|
|
7230
7230
|
function xd(t, a) {
|
|
7231
7231
|
return t === a || t.startsWith(`${a}/`);
|
|
7232
7232
|
}
|
|
7233
|
-
function
|
|
7233
|
+
function ma(t, a) {
|
|
7234
7234
|
return !t || !bd(t) || !xd(t, a.home) || t === a.signIn || t === a.signUp ? a.home : t;
|
|
7235
7235
|
}
|
|
7236
7236
|
function ar(t, a) {
|
|
@@ -7240,28 +7240,28 @@ function ar(t, a) {
|
|
|
7240
7240
|
return `${t}?${r.toString()}`;
|
|
7241
7241
|
}
|
|
7242
7242
|
function fi(t, a, r) {
|
|
7243
|
-
const i =
|
|
7243
|
+
const i = ma(a, r);
|
|
7244
7244
|
return new URL(i, t).toString();
|
|
7245
7245
|
}
|
|
7246
|
-
const
|
|
7246
|
+
const ga = ve({});
|
|
7247
7247
|
function Sd({
|
|
7248
7248
|
children: t,
|
|
7249
7249
|
organizationId: a,
|
|
7250
7250
|
id: r
|
|
7251
7251
|
}) {
|
|
7252
|
-
return /* @__PURE__ */ e(
|
|
7252
|
+
return /* @__PURE__ */ e(ga.Provider, { value: { organizationId: a, id: r }, children: t });
|
|
7253
7253
|
}
|
|
7254
7254
|
function kd() {
|
|
7255
|
-
return le(
|
|
7255
|
+
return le(ga);
|
|
7256
7256
|
}
|
|
7257
7257
|
function ee() {
|
|
7258
|
-
const { organizationId: t } = le(
|
|
7258
|
+
const { organizationId: t } = le(ga);
|
|
7259
7259
|
if (!t)
|
|
7260
7260
|
throw new Error("useOrgId called outside an org-scoped route");
|
|
7261
7261
|
return t;
|
|
7262
7262
|
}
|
|
7263
|
-
function
|
|
7264
|
-
const { id: t } = le(
|
|
7263
|
+
function ha() {
|
|
7264
|
+
const { id: t } = le(ga);
|
|
7265
7265
|
if (!t)
|
|
7266
7266
|
throw new Error("useRouteId called outside a detail route");
|
|
7267
7267
|
return t;
|
|
@@ -7397,7 +7397,7 @@ const vd = ve(void 0), Ad = ({
|
|
|
7397
7397
|
defaultVariants: {
|
|
7398
7398
|
variant: "default"
|
|
7399
7399
|
}
|
|
7400
|
-
}),
|
|
7400
|
+
}), Tt = R.forwardRef(
|
|
7401
7401
|
({ className: t, variant: a, ...r }, i) => /* @__PURE__ */ e(
|
|
7402
7402
|
"span",
|
|
7403
7403
|
{
|
|
@@ -7407,7 +7407,7 @@ const vd = ve(void 0), Ad = ({
|
|
|
7407
7407
|
}
|
|
7408
7408
|
)
|
|
7409
7409
|
);
|
|
7410
|
-
|
|
7410
|
+
Tt.displayName = "Badge";
|
|
7411
7411
|
function Rd({
|
|
7412
7412
|
title: t,
|
|
7413
7413
|
change: a,
|
|
@@ -7423,7 +7423,7 @@ function Rd({
|
|
|
7423
7423
|
/* @__PURE__ */ s("div", { children: [
|
|
7424
7424
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
7425
7425
|
/* @__PURE__ */ e("h3", { className: "font-bold text-gray-900 sm:text-sm dark:text-gray-50", children: t }),
|
|
7426
|
-
/* @__PURE__ */ e(
|
|
7426
|
+
/* @__PURE__ */ e(Tt, { variant: "neutral", children: a })
|
|
7427
7427
|
] }),
|
|
7428
7428
|
/* @__PURE__ */ s("p", { className: "mt-2 flex items-baseline gap-2", children: [
|
|
7429
7429
|
/* @__PURE__ */ e("span", { className: "text-xl text-gray-900 dark:text-gray-50", children: r }),
|
|
@@ -13245,7 +13245,7 @@ const Td = (t) => {
|
|
|
13245
13245
|
/* @__PURE__ */ e(
|
|
13246
13246
|
Br,
|
|
13247
13247
|
{
|
|
13248
|
-
icon:
|
|
13248
|
+
icon: Ut,
|
|
13249
13249
|
onClick: () => {
|
|
13250
13250
|
f(null), w("left");
|
|
13251
13251
|
},
|
|
@@ -13358,7 +13358,7 @@ const Id = ({ payload: t }, a, r, i, n, o) => {
|
|
|
13358
13358
|
children: o
|
|
13359
13359
|
}
|
|
13360
13360
|
),
|
|
13361
|
-
l !== void 0 && /* @__PURE__ */ e(
|
|
13361
|
+
l !== void 0 && /* @__PURE__ */ e(Tt, { variant: Ji(l), children: gi(l) })
|
|
13362
13362
|
] }),
|
|
13363
13363
|
/* @__PURE__ */ e("div", { className: Q("space-y-1 p-2"), children: n.map((d, c) => {
|
|
13364
13364
|
const u = d.payload;
|
|
@@ -13412,9 +13412,9 @@ const Id = ({ payload: t }, a, r, i, n, o) => {
|
|
|
13412
13412
|
void 0
|
|
13413
13413
|
), [M, D] = R.useState(
|
|
13414
13414
|
void 0
|
|
13415
|
-
), B = Cd(i, o), pe = Pd(b, w, S),
|
|
13415
|
+
), B = Cd(i, o), pe = Pd(b, w, S), zt = !!P;
|
|
13416
13416
|
function xn(z, we) {
|
|
13417
|
-
we.stopPropagation(),
|
|
13417
|
+
we.stopPropagation(), zt && (z.index === (U == null ? void 0 : U.index) && z.dataKey === (U == null ? void 0 : U.dataKey) || va(r, z.dataKey) && M && M === z.dataKey ? (D(void 0), Me(void 0), P == null || P(null)) : (D(z.dataKey), Me({
|
|
13418
13418
|
index: z.index,
|
|
13419
13419
|
dataKey: z.dataKey
|
|
13420
13420
|
}), P == null || P({
|
|
@@ -13424,7 +13424,7 @@ const Id = ({ payload: t }, a, r, i, n, o) => {
|
|
|
13424
13424
|
})));
|
|
13425
13425
|
}
|
|
13426
13426
|
function hr(z) {
|
|
13427
|
-
|
|
13427
|
+
zt && (z === M && !U || va(r, z) && U && U.dataKey === z ? (D(void 0), P == null || P(null)) : (D(z), P == null || P({
|
|
13428
13428
|
eventType: "category",
|
|
13429
13429
|
categoryClicked: z
|
|
13430
13430
|
})), Me(void 0));
|
|
@@ -13433,7 +13433,7 @@ const Id = ({ payload: t }, a, r, i, n, o) => {
|
|
|
13433
13433
|
Yn,
|
|
13434
13434
|
{
|
|
13435
13435
|
data: r,
|
|
13436
|
-
onClick:
|
|
13436
|
+
onClick: zt && (M || U) ? () => {
|
|
13437
13437
|
Me(void 0), D(void 0), P == null || P(null);
|
|
13438
13438
|
} : void 0,
|
|
13439
13439
|
margin: {
|
|
@@ -13545,7 +13545,7 @@ const Id = ({ payload: t }, a, r, i, n, o) => {
|
|
|
13545
13545
|
B,
|
|
13546
13546
|
et,
|
|
13547
13547
|
M,
|
|
13548
|
-
|
|
13548
|
+
zt ? (we) => hr(we) : void 0,
|
|
13549
13549
|
_
|
|
13550
13550
|
)
|
|
13551
13551
|
}
|
|
@@ -13591,7 +13591,7 @@ const Id = ({ payload: t }, a, r, i, n, o) => {
|
|
|
13591
13591
|
strokeLinecap: wa,
|
|
13592
13592
|
strokeLinejoin: ba,
|
|
13593
13593
|
strokeWidth: xa,
|
|
13594
|
-
onClick: (
|
|
13594
|
+
onClick: (Mt, Sn) => xn(we, Sn)
|
|
13595
13595
|
}
|
|
13596
13596
|
);
|
|
13597
13597
|
},
|
|
@@ -13604,9 +13604,9 @@ const Id = ({ payload: t }, a, r, i, n, o) => {
|
|
|
13604
13604
|
cx: ba,
|
|
13605
13605
|
cy: xa,
|
|
13606
13606
|
dataKey: Sa,
|
|
13607
|
-
index:
|
|
13607
|
+
index: Mt
|
|
13608
13608
|
} = we;
|
|
13609
|
-
return va(r, z) && !(U || M && M !== z) || (U == null ? void 0 : U.index) ===
|
|
13609
|
+
return va(r, z) && !(U || M && M !== z) || (U == null ? void 0 : U.index) === Mt && (U == null ? void 0 : U.dataKey) === z ? /* @__PURE__ */ e(
|
|
13610
13610
|
vr,
|
|
13611
13611
|
{
|
|
13612
13612
|
cx: ba,
|
|
@@ -13628,8 +13628,8 @@ const Id = ({ payload: t }, a, r, i, n, o) => {
|
|
|
13628
13628
|
)
|
|
13629
13629
|
)
|
|
13630
13630
|
},
|
|
13631
|
-
|
|
13632
|
-
) : /* @__PURE__ */ e(R.Fragment, {},
|
|
13631
|
+
Mt
|
|
13632
|
+
) : /* @__PURE__ */ e(R.Fragment, {}, Mt);
|
|
13633
13633
|
},
|
|
13634
13634
|
name: z,
|
|
13635
13635
|
type: "linear",
|
|
@@ -13837,7 +13837,7 @@ const ki = ({
|
|
|
13837
13837
|
...d
|
|
13838
13838
|
},
|
|
13839
13839
|
components: {
|
|
13840
|
-
IconLeft: () => /* @__PURE__ */ e(
|
|
13840
|
+
IconLeft: () => /* @__PURE__ */ e(Ut, { "aria-hidden": "true", className: "size-4" }),
|
|
13841
13841
|
IconRight: () => /* @__PURE__ */ e(it, { "aria-hidden": "true", className: "size-4" }),
|
|
13842
13842
|
Caption: ({ ...u }) => {
|
|
13843
13843
|
const {
|
|
@@ -13849,10 +13849,10 @@ const ki = ({
|
|
|
13849
13849
|
} = po(), { numberOfMonths: b, fromDate: w, toDate: S } = mo(), k = y.findIndex(
|
|
13850
13850
|
(Z) => Gn(u.displayMonth, Z)
|
|
13851
13851
|
), v = k === 0, A = k === y.length - 1, P = b > 1 && (v || !A), _ = b > 1 && (A || !v), ie = () => {
|
|
13852
|
-
const Z =
|
|
13852
|
+
const Z = Bt(f, -1);
|
|
13853
13853
|
h && (!w || Z.getTime() >= w.getTime()) && p(Z);
|
|
13854
13854
|
}, ae = () => {
|
|
13855
|
-
const Z =
|
|
13855
|
+
const Z = Bt(f, 1);
|
|
13856
13856
|
m && (!S || Z.getTime() <= S.getTime()) && p(Z);
|
|
13857
13857
|
};
|
|
13858
13858
|
return /* @__PURE__ */ s("div", { className: "flex items-center justify-between", children: [
|
|
@@ -13860,7 +13860,7 @@ const ki = ({
|
|
|
13860
13860
|
i && !_ && /* @__PURE__ */ e(
|
|
13861
13861
|
yt,
|
|
13862
13862
|
{
|
|
13863
|
-
disabled: n || !h || w &&
|
|
13863
|
+
disabled: n || !h || w && Bt(f, -1).getTime() < w.getTime(),
|
|
13864
13864
|
"aria-label": "Go to previous year",
|
|
13865
13865
|
onClick: ie,
|
|
13866
13866
|
icon: hs
|
|
@@ -13872,7 +13872,7 @@ const ki = ({
|
|
|
13872
13872
|
disabled: n || !h,
|
|
13873
13873
|
"aria-label": "Go to previous month",
|
|
13874
13874
|
onClick: () => h && p(h),
|
|
13875
|
-
icon:
|
|
13875
|
+
icon: Ut
|
|
13876
13876
|
}
|
|
13877
13877
|
)
|
|
13878
13878
|
] }),
|
|
@@ -13898,7 +13898,7 @@ const ki = ({
|
|
|
13898
13898
|
i && !P && /* @__PURE__ */ e(
|
|
13899
13899
|
yt,
|
|
13900
13900
|
{
|
|
13901
|
-
disabled: n || !m || S &&
|
|
13901
|
+
disabled: n || !m || S && Bt(f, 1).getTime() > S.getTime(),
|
|
13902
13902
|
"aria-label": "Go to next year",
|
|
13903
13903
|
onClick: ae,
|
|
13904
13904
|
icon: fs
|
|
@@ -14069,7 +14069,7 @@ const Md = Pe({
|
|
|
14069
14069
|
],
|
|
14070
14070
|
variants: {
|
|
14071
14071
|
hasError: {
|
|
14072
|
-
true:
|
|
14072
|
+
true: pa
|
|
14073
14073
|
}
|
|
14074
14074
|
}
|
|
14075
14075
|
}), vi = N.forwardRef(
|
|
@@ -14481,12 +14481,12 @@ const Jr = (t, a, r) => {
|
|
|
14481
14481
|
}
|
|
14482
14482
|
}, Ri = ({ presets: t, ...a }) => (t && Jd(t, a), /* @__PURE__ */ e(Bd, { presets: t, ...a }));
|
|
14483
14483
|
Ri.displayName = "DateRangePicker";
|
|
14484
|
-
const
|
|
14485
|
-
|
|
14484
|
+
const Qt = (t) => /* @__PURE__ */ e(H.Root, { ...t });
|
|
14485
|
+
Qt.displayName = "Dialog";
|
|
14486
14486
|
const rr = H.Trigger;
|
|
14487
14487
|
rr.displayName = "DialogTrigger";
|
|
14488
|
-
const
|
|
14489
|
-
|
|
14488
|
+
const qt = H.Close;
|
|
14489
|
+
qt.displayName = "DialogClose";
|
|
14490
14490
|
const Ci = H.Portal;
|
|
14491
14491
|
Ci.displayName = "DialogPortal";
|
|
14492
14492
|
const Pi = R.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
@@ -14506,7 +14506,7 @@ const Pi = R.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
14506
14506
|
}
|
|
14507
14507
|
));
|
|
14508
14508
|
Pi.displayName = "DialogOverlay";
|
|
14509
|
-
const
|
|
14509
|
+
const It = R.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(Ci, { children: /* @__PURE__ */ e(Pi, { children: /* @__PURE__ */ e(
|
|
14510
14510
|
H.Content,
|
|
14511
14511
|
{
|
|
14512
14512
|
ref: r,
|
|
@@ -14525,13 +14525,13 @@ const Lt = R.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(Ci, { c
|
|
|
14525
14525
|
...a
|
|
14526
14526
|
}
|
|
14527
14527
|
) }) }));
|
|
14528
|
-
|
|
14529
|
-
const
|
|
14528
|
+
It.displayName = "DialogContent";
|
|
14529
|
+
const Lt = ({
|
|
14530
14530
|
className: t,
|
|
14531
14531
|
...a
|
|
14532
14532
|
}) => /* @__PURE__ */ e("div", { className: x("flex flex-col gap-y-1", t), ...a });
|
|
14533
|
-
|
|
14534
|
-
const
|
|
14533
|
+
Lt.displayName = "DialogHeader";
|
|
14534
|
+
const Et = R.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
14535
14535
|
H.Title,
|
|
14536
14536
|
{
|
|
14537
14537
|
ref: r,
|
|
@@ -14545,8 +14545,8 @@ const Dt = R.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
14545
14545
|
...a
|
|
14546
14546
|
}
|
|
14547
14547
|
));
|
|
14548
|
-
|
|
14549
|
-
const
|
|
14548
|
+
Et.displayName = "DialogTitle";
|
|
14549
|
+
const Dt = R.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
14550
14550
|
H.Description,
|
|
14551
14551
|
{
|
|
14552
14552
|
ref: r,
|
|
@@ -14554,7 +14554,7 @@ const zt = R.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
14554
14554
|
...a
|
|
14555
14555
|
}
|
|
14556
14556
|
));
|
|
14557
|
-
|
|
14557
|
+
Dt.displayName = "DialogDescription";
|
|
14558
14558
|
const Ti = ({
|
|
14559
14559
|
className: t,
|
|
14560
14560
|
...a
|
|
@@ -14622,7 +14622,7 @@ const Fd = [
|
|
|
14622
14622
|
ref: n,
|
|
14623
14623
|
className: x(
|
|
14624
14624
|
Fd,
|
|
14625
|
-
a ?
|
|
14625
|
+
a ? pa : "",
|
|
14626
14626
|
t
|
|
14627
14627
|
),
|
|
14628
14628
|
...i,
|
|
@@ -14761,7 +14761,7 @@ const Vd = R.forwardRef(({ className: t, children: a, ...r }, i) => /* @__PURE__
|
|
|
14761
14761
|
children: [
|
|
14762
14762
|
/* @__PURE__ */ e(Y.ItemText, { className: "flex-1 truncate", children: a }),
|
|
14763
14763
|
/* @__PURE__ */ e(Y.ItemIndicator, { children: /* @__PURE__ */ e(
|
|
14764
|
-
|
|
14764
|
+
ta,
|
|
14765
14765
|
{
|
|
14766
14766
|
className: "size-5 shrink-0 text-gray-800 dark:text-gray-200",
|
|
14767
14767
|
"aria-hidden": "true"
|
|
@@ -14791,7 +14791,7 @@ const Mi = R.forwardRef(({ className: t, children: a, period: r, ...i }, n) => /
|
|
|
14791
14791
|
...i,
|
|
14792
14792
|
children: [
|
|
14793
14793
|
/* @__PURE__ */ e("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ e(Y.ItemIndicator, { children: /* @__PURE__ */ e(
|
|
14794
|
-
|
|
14794
|
+
ta,
|
|
14795
14795
|
{
|
|
14796
14796
|
className: "size-5 shrink-0 text-gray-800 dark:text-gray-200",
|
|
14797
14797
|
"aria-hidden": "true"
|
|
@@ -14844,7 +14844,7 @@ const Zd = [
|
|
|
14844
14844
|
case "previous-period": {
|
|
14845
14845
|
let n, o;
|
|
14846
14846
|
if (r && i) {
|
|
14847
|
-
const l =
|
|
14847
|
+
const l = Ot(r, i), d = Ss(l).length;
|
|
14848
14848
|
o = Ra(r, 1), n = Ra(o, d);
|
|
14849
14849
|
}
|
|
14850
14850
|
return { from: n, to: o };
|
|
@@ -14912,7 +14912,7 @@ function Ud({
|
|
|
14912
14912
|
}
|
|
14913
14913
|
)
|
|
14914
14914
|
] }),
|
|
14915
|
-
/* @__PURE__ */ s(
|
|
14915
|
+
/* @__PURE__ */ s(Qt, { children: [
|
|
14916
14916
|
/* @__PURE__ */ e(rr, { asChild: !0, children: /* @__PURE__ */ s(
|
|
14917
14917
|
T,
|
|
14918
14918
|
{
|
|
@@ -14930,10 +14930,10 @@ function Ud({
|
|
|
14930
14930
|
]
|
|
14931
14931
|
}
|
|
14932
14932
|
) }),
|
|
14933
|
-
/* @__PURE__ */ s(
|
|
14934
|
-
/* @__PURE__ */ s(
|
|
14935
|
-
/* @__PURE__ */ e(
|
|
14936
|
-
/* @__PURE__ */ e(
|
|
14933
|
+
/* @__PURE__ */ s(It, { className: "max-w-5xl", children: [
|
|
14934
|
+
/* @__PURE__ */ s(Lt, { children: [
|
|
14935
|
+
/* @__PURE__ */ e(Et, { children: "Customise overview charts" }),
|
|
14936
|
+
/* @__PURE__ */ e(Dt, { className: "sr-only", children: "Add or remove the charts for the overview panel." })
|
|
14937
14937
|
] }),
|
|
14938
14938
|
/* @__PURE__ */ e(
|
|
14939
14939
|
"div",
|
|
@@ -14973,7 +14973,7 @@ function Ud({
|
|
|
14973
14973
|
}
|
|
14974
14974
|
),
|
|
14975
14975
|
/* @__PURE__ */ s(Ti, { className: "mt-6", children: [
|
|
14976
|
-
/* @__PURE__ */ e(
|
|
14976
|
+
/* @__PURE__ */ e(qt, { asChild: !0, children: /* @__PURE__ */ e(
|
|
14977
14977
|
T,
|
|
14978
14978
|
{
|
|
14979
14979
|
className: "mt-2 w-full sm:mt-0 sm:w-fit",
|
|
@@ -14981,7 +14981,7 @@ function Ud({
|
|
|
14981
14981
|
children: "Cancel"
|
|
14982
14982
|
}
|
|
14983
14983
|
) }),
|
|
14984
|
-
/* @__PURE__ */ e(
|
|
14984
|
+
/* @__PURE__ */ e(qt, { asChild: !0, children: /* @__PURE__ */ e(T, { className: "w-full sm:w-fit", onClick: h, children: "Apply" }) })
|
|
14985
14985
|
] })
|
|
14986
14986
|
] })
|
|
14987
14987
|
] })
|
|
@@ -14998,7 +14998,7 @@ function Oi({
|
|
|
14998
14998
|
selectedPeriod: i,
|
|
14999
14999
|
isThumbnail: n
|
|
15000
15000
|
}) {
|
|
15001
|
-
const o = Wd[a], l = r != null && r.from && (r != null && r.to) ?
|
|
15001
|
+
const o = Wd[a], l = r != null && r.from && (r != null && r.to) ? Ot(r.from, r.to) : null, d = r != null && r.from && (r != null && r.to) ? Ss(Ot(r.from, r.to)) : null, c = Bi(r, i), u = c != null && c.from && (c != null && c.to) ? Ot(c.from, c.to) : null, p = Ia.filter((S) => l ? br(S.date, l) : !0).sort((S, k) => new Date(S.date).getTime() - new Date(k.date).getTime()), m = Ia.filter((S) => u ? br(S.date, u) : !1).sort((S, k) => new Date(S.date).getTime() - new Date(k.date).getTime()), h = d == null ? void 0 : d.map((S, k) => {
|
|
15002
15002
|
const v = p[k], A = m[k], P = (v == null ? void 0 : v[t]) || null, _ = (A == null ? void 0 : A[t]) || null;
|
|
15003
15003
|
return {
|
|
15004
15004
|
title: t,
|
|
@@ -15014,7 +15014,7 @@ function Oi({
|
|
|
15014
15014
|
return /* @__PURE__ */ s("div", { className: Q("transition"), children: [
|
|
15015
15015
|
/* @__PURE__ */ e("div", { className: "flex items-center justify-between gap-x-2", children: /* @__PURE__ */ s("div", { className: "flex items-center gap-x-2", children: [
|
|
15016
15016
|
/* @__PURE__ */ e("dt", { className: "font-bold text-gray-900 sm:text-sm dark:text-gray-50", children: t }),
|
|
15017
|
-
i !== "no-comparison" && /* @__PURE__ */ e(
|
|
15017
|
+
i !== "no-comparison" && /* @__PURE__ */ e(Tt, { variant: Ji(w), children: gi(w) })
|
|
15018
15018
|
] }) }),
|
|
15019
15019
|
/* @__PURE__ */ s("div", { className: "mt-2 flex items-baseline justify-between", children: [
|
|
15020
15020
|
/* @__PURE__ */ e("dd", { className: "text-xl text-gray-900 dark:text-gray-50", children: o(y) }),
|
|
@@ -15148,7 +15148,7 @@ function Or({
|
|
|
15148
15148
|
/* @__PURE__ */ s("div", { children: [
|
|
15149
15149
|
/* @__PURE__ */ s("div", { className: "flex items-center gap-2", children: [
|
|
15150
15150
|
/* @__PURE__ */ e("dt", { className: "font-bold text-gray-900 sm:text-sm dark:text-gray-50", children: t }),
|
|
15151
|
-
/* @__PURE__ */ e(
|
|
15151
|
+
/* @__PURE__ */ e(Tt, { variant: "neutral", children: a })
|
|
15152
15152
|
] }),
|
|
15153
15153
|
/* @__PURE__ */ s("dd", { className: "mt-2 flex items-baseline gap-2", children: [
|
|
15154
15154
|
/* @__PURE__ */ e("span", { className: "text-xl text-gray-900 dark:text-gray-50", children: r }),
|
|
@@ -15652,7 +15652,7 @@ const ac = ({ value: t, onChange: a }) => {
|
|
|
15652
15652
|
ut
|
|
15653
15653
|
],
|
|
15654
15654
|
variants: {
|
|
15655
|
-
hasError: { true:
|
|
15655
|
+
hasError: { true: pa },
|
|
15656
15656
|
enableStepper: {
|
|
15657
15657
|
false: "[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none"
|
|
15658
15658
|
},
|
|
@@ -15793,7 +15793,7 @@ const sc = ({ ...t }) => {
|
|
|
15793
15793
|
{
|
|
15794
15794
|
className: "absolute w-6 h-6 bg-black flex items-center justify-center rounded-md right-1 top-1",
|
|
15795
15795
|
onClick: () => c(m.id),
|
|
15796
|
-
children: /* @__PURE__ */ e(
|
|
15796
|
+
children: /* @__PURE__ */ e(Kt, { className: "w-4 h-4 text-white" })
|
|
15797
15797
|
}
|
|
15798
15798
|
),
|
|
15799
15799
|
/* @__PURE__ */ e(
|
|
@@ -15830,7 +15830,7 @@ const sc = ({ ...t }) => {
|
|
|
15830
15830
|
"%)"
|
|
15831
15831
|
] })
|
|
15832
15832
|
] }) : /* @__PURE__ */ s(C, { children: [
|
|
15833
|
-
/* @__PURE__ */ e(
|
|
15833
|
+
/* @__PURE__ */ e(Zt, { className: "w-12 h-12 text-gray-300 group-hover:text-gray-600 transition-all stroke-1" }),
|
|
15834
15834
|
/* @__PURE__ */ e("p", { className: "pt-1 text-sm font-medium text-gray-400 group-hover:text-gray-600", children: "Upload an image" })
|
|
15835
15835
|
] }) }),
|
|
15836
15836
|
/* @__PURE__ */ e(
|
|
@@ -15868,7 +15868,7 @@ const sc = ({ ...t }) => {
|
|
|
15868
15868
|
"%)"
|
|
15869
15869
|
] })
|
|
15870
15870
|
] }) : /* @__PURE__ */ s(C, { children: [
|
|
15871
|
-
/* @__PURE__ */ e(
|
|
15871
|
+
/* @__PURE__ */ e(Zt, { className: "w-12 h-12 text-gray-300 group-hover:text-gray-600 transition-all stroke-1" }),
|
|
15872
15872
|
/* @__PURE__ */ e("p", { className: "pt-1 text-sm font-medium text-gray-400 group-hover:text-gray-600", children: "Upload an image" })
|
|
15873
15873
|
] }) }),
|
|
15874
15874
|
/* @__PURE__ */ e(
|
|
@@ -15922,7 +15922,7 @@ const nc = ({
|
|
|
15922
15922
|
i.filter((o) => o.value).map((o, l) => /* @__PURE__ */ s("option", { value: o.value, children: [
|
|
15923
15923
|
o.label,
|
|
15924
15924
|
" ",
|
|
15925
|
-
o.value && `+${
|
|
15925
|
+
o.value && `+${ra.getCountryCallingCode(o.value)}`
|
|
15926
15926
|
] }, o.value ?? `empty-${l}`))
|
|
15927
15927
|
]
|
|
15928
15928
|
}
|
|
@@ -15937,7 +15937,7 @@ const nc = ({
|
|
|
15937
15937
|
}) => {
|
|
15938
15938
|
const i = De();
|
|
15939
15939
|
return /* @__PURE__ */ e("div", { className: "mt-2", children: /* @__PURE__ */ e(
|
|
15940
|
-
|
|
15940
|
+
ra.default,
|
|
15941
15941
|
{
|
|
15942
15942
|
id: i,
|
|
15943
15943
|
className: "flex rounded-lg shadow-xs shadow-black/5",
|
|
@@ -16106,12 +16106,12 @@ const nc = ({
|
|
|
16106
16106
|
}), Zi = R.forwardRef(({ className: t, size: a, ...r }, i) => {
|
|
16107
16107
|
const { root: n, thumb: o } = dc({ size: a });
|
|
16108
16108
|
return /* @__PURE__ */ e(
|
|
16109
|
-
|
|
16109
|
+
Wt.Root,
|
|
16110
16110
|
{
|
|
16111
16111
|
ref: i,
|
|
16112
16112
|
className: x(n(), t),
|
|
16113
16113
|
...r,
|
|
16114
|
-
children: /* @__PURE__ */ e(
|
|
16114
|
+
children: /* @__PURE__ */ e(Wt.Thumb, { className: x(o()) })
|
|
16115
16115
|
}
|
|
16116
16116
|
);
|
|
16117
16117
|
});
|
|
@@ -16216,7 +16216,7 @@ const cc = ({
|
|
|
16216
16216
|
localizable: c,
|
|
16217
16217
|
prefix: u
|
|
16218
16218
|
}) => {
|
|
16219
|
-
const { errors: p } =
|
|
16219
|
+
const { errors: p } = Gt(), m = uc(p, a);
|
|
16220
16220
|
return /* @__PURE__ */ s(
|
|
16221
16221
|
"div",
|
|
16222
16222
|
{
|
|
@@ -16239,7 +16239,7 @@ const cc = ({
|
|
|
16239
16239
|
c && /* @__PURE__ */ e(Gr, { className: "w-4 h-4 ml-1 text-gray-500" })
|
|
16240
16240
|
] }),
|
|
16241
16241
|
n && c && /* @__PURE__ */ s("span", { className: "flex items-center text-xs text-gray-500 ml-1 bg-gray-100 px-1 py-0.5 rounded", children: [
|
|
16242
|
-
|
|
16242
|
+
ia.get(n),
|
|
16243
16243
|
" (",
|
|
16244
16244
|
n,
|
|
16245
16245
|
")"
|
|
@@ -16268,7 +16268,7 @@ const cc = ({
|
|
|
16268
16268
|
columns: r = 2
|
|
16269
16269
|
}) => {
|
|
16270
16270
|
var c;
|
|
16271
|
-
const { errors: i } =
|
|
16271
|
+
const { errors: i } = Gt(), n = ji(i, a.name), { fields: o, append: l, remove: d } = Ea({
|
|
16272
16272
|
control: t.control,
|
|
16273
16273
|
name: a.name
|
|
16274
16274
|
});
|
|
@@ -16361,7 +16361,7 @@ const cc = ({
|
|
|
16361
16361
|
columns: a = 2
|
|
16362
16362
|
}) => {
|
|
16363
16363
|
var n;
|
|
16364
|
-
const { errors: r } =
|
|
16364
|
+
const { errors: r } = Gt(), i = ji(r, t.name);
|
|
16365
16365
|
return (n = t.fields) != null && n.length ? /* @__PURE__ */ s("div", { className: "w-full col-span-full", children: [
|
|
16366
16366
|
t.label && /* @__PURE__ */ e("h4", { className: "text-2xl font-semibold mb-2", children: t.label }),
|
|
16367
16367
|
t.description && /* @__PURE__ */ e("p", { className: "text-sm text-gray-500 mb-3", children: t.description }),
|
|
@@ -16421,8 +16421,8 @@ function gc(t, a) {
|
|
|
16421
16421
|
children: typeof a == "function" ? a(n.props.children) : a
|
|
16422
16422
|
});
|
|
16423
16423
|
}
|
|
16424
|
-
const mr = R.forwardRef(({ className: t, children: a, ...r }, i) => /* @__PURE__ */ e(
|
|
16425
|
-
|
|
16424
|
+
const mr = R.forwardRef(({ className: t, children: a, ...r }, i) => /* @__PURE__ */ e($t.Root, { ref: i, ...r, asChild: !1, children: /* @__PURE__ */ e(
|
|
16425
|
+
$t.List,
|
|
16426
16426
|
{
|
|
16427
16427
|
className: x(
|
|
16428
16428
|
// base
|
|
@@ -16435,8 +16435,8 @@ const mr = R.forwardRef(({ className: t, children: a, ...r }, i) => /* @__PURE__
|
|
|
16435
16435
|
}
|
|
16436
16436
|
) }));
|
|
16437
16437
|
mr.displayName = "TabNavigation";
|
|
16438
|
-
const gr = R.forwardRef(({ asChild: t, disabled: a, className: r, children: i, ...n }, o) => /* @__PURE__ */ e(
|
|
16439
|
-
|
|
16438
|
+
const gr = R.forwardRef(({ asChild: t, disabled: a, className: r, children: i, ...n }, o) => /* @__PURE__ */ e($t.Item, { className: "flex", "aria-disabled": a, children: /* @__PURE__ */ e(
|
|
16439
|
+
$t.Link,
|
|
16440
16440
|
{
|
|
16441
16441
|
"aria-disabled": a,
|
|
16442
16442
|
className: x(
|
|
@@ -16518,7 +16518,7 @@ const Ee = ({
|
|
|
16518
16518
|
onClick: () => f(w),
|
|
16519
16519
|
className: "cursor-pointer",
|
|
16520
16520
|
children: /* @__PURE__ */ s(C, { children: [
|
|
16521
|
-
|
|
16521
|
+
ia.get(w),
|
|
16522
16522
|
" ",
|
|
16523
16523
|
S && "(Default)"
|
|
16524
16524
|
] })
|
|
@@ -16687,7 +16687,7 @@ function fc() {
|
|
|
16687
16687
|
] });
|
|
16688
16688
|
}
|
|
16689
16689
|
function yc() {
|
|
16690
|
-
const t = ee(), a =
|
|
16690
|
+
const t = ee(), a = ha(), { client: r } = L(), { isLoading: i, data: n } = G({
|
|
16691
16691
|
queryKey: ["manufacturers", t, a],
|
|
16692
16692
|
queryFn: async () => {
|
|
16693
16693
|
const { status: o, body: l } = await r.manufacturer.getManufacturer({
|
|
@@ -16801,7 +16801,7 @@ const wt = R.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
16801
16801
|
}
|
|
16802
16802
|
));
|
|
16803
16803
|
wt.displayName = "TableRow";
|
|
16804
|
-
const
|
|
16804
|
+
const Ft = R.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
16805
16805
|
"td",
|
|
16806
16806
|
{
|
|
16807
16807
|
ref: r,
|
|
@@ -16815,7 +16815,7 @@ const jt = R.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
16815
16815
|
...a
|
|
16816
16816
|
}
|
|
16817
16817
|
));
|
|
16818
|
-
|
|
16818
|
+
Ft.displayName = "TableCell";
|
|
16819
16819
|
const bc = R.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
16820
16820
|
"tfoot",
|
|
16821
16821
|
{
|
|
@@ -16915,7 +16915,7 @@ const Xi = N.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
16915
16915
|
}
|
|
16916
16916
|
));
|
|
16917
16917
|
Xi.displayName = "CommandBarBar";
|
|
16918
|
-
const
|
|
16918
|
+
const jt = N.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
16919
16919
|
"div",
|
|
16920
16920
|
{
|
|
16921
16921
|
ref: r,
|
|
@@ -16923,8 +16923,8 @@ const Vt = N.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
|
16923
16923
|
...a
|
|
16924
16924
|
}
|
|
16925
16925
|
));
|
|
16926
|
-
|
|
16927
|
-
const
|
|
16926
|
+
jt.displayName = "CommandBar.Seperator";
|
|
16927
|
+
const Vt = N.forwardRef(
|
|
16928
16928
|
({
|
|
16929
16929
|
className: t,
|
|
16930
16930
|
type: a = "button",
|
|
@@ -16973,7 +16973,7 @@ const Ht = N.forwardRef(
|
|
|
16973
16973
|
}
|
|
16974
16974
|
))
|
|
16975
16975
|
);
|
|
16976
|
-
|
|
16976
|
+
Vt.displayName = "CommandBar.Command";
|
|
16977
16977
|
function kc({
|
|
16978
16978
|
table: t,
|
|
16979
16979
|
rowSelection: a
|
|
@@ -16984,9 +16984,9 @@ function kc({
|
|
|
16984
16984
|
Object.keys(a).length,
|
|
16985
16985
|
" selected"
|
|
16986
16986
|
] }),
|
|
16987
|
-
/* @__PURE__ */ e(
|
|
16987
|
+
/* @__PURE__ */ e(jt, {}),
|
|
16988
16988
|
/* @__PURE__ */ e(
|
|
16989
|
-
|
|
16989
|
+
Vt,
|
|
16990
16990
|
{
|
|
16991
16991
|
label: "Edit",
|
|
16992
16992
|
action: () => {
|
|
@@ -16995,9 +16995,9 @@ function kc({
|
|
|
16995
16995
|
shortcut: { shortcut: "e" }
|
|
16996
16996
|
}
|
|
16997
16997
|
),
|
|
16998
|
-
/* @__PURE__ */ e(
|
|
16998
|
+
/* @__PURE__ */ e(jt, {}),
|
|
16999
16999
|
/* @__PURE__ */ e(
|
|
17000
|
-
|
|
17000
|
+
Vt,
|
|
17001
17001
|
{
|
|
17002
17002
|
label: "Delete",
|
|
17003
17003
|
action: () => {
|
|
@@ -17006,9 +17006,9 @@ function kc({
|
|
|
17006
17006
|
shortcut: { shortcut: "d" }
|
|
17007
17007
|
}
|
|
17008
17008
|
),
|
|
17009
|
-
/* @__PURE__ */ e(
|
|
17009
|
+
/* @__PURE__ */ e(jt, {}),
|
|
17010
17010
|
/* @__PURE__ */ e(
|
|
17011
|
-
|
|
17011
|
+
Vt,
|
|
17012
17012
|
{
|
|
17013
17013
|
label: "Reset",
|
|
17014
17014
|
action: () => {
|
|
@@ -17037,7 +17037,7 @@ function vc({
|
|
|
17037
17037
|
mobileView: "hidden sm:block"
|
|
17038
17038
|
},
|
|
17039
17039
|
{
|
|
17040
|
-
icon:
|
|
17040
|
+
icon: Ut,
|
|
17041
17041
|
onClick: () => c(l - 1),
|
|
17042
17042
|
disabled: !(t != null && t.previousPage),
|
|
17043
17043
|
srText: "Previous page",
|
|
@@ -17158,7 +17158,7 @@ function pt({
|
|
|
17158
17158
|
)) }),
|
|
17159
17159
|
/* @__PURE__ */ s(qi, { children: [
|
|
17160
17160
|
r && /* @__PURE__ */ e(wt, { children: /* @__PURE__ */ e(
|
|
17161
|
-
|
|
17161
|
+
Ft,
|
|
17162
17162
|
{
|
|
17163
17163
|
colSpan: a.length,
|
|
17164
17164
|
className: "h-24 text-center text-red-500",
|
|
@@ -17172,7 +17172,7 @@ function pt({
|
|
|
17172
17172
|
children: y.getVisibleCells().map((b, w) => {
|
|
17173
17173
|
var S;
|
|
17174
17174
|
return /* @__PURE__ */ s(
|
|
17175
|
-
|
|
17175
|
+
Ft,
|
|
17176
17176
|
{
|
|
17177
17177
|
className: x(
|
|
17178
17178
|
y.getIsSelected() ? "bg-gray-50 dark:bg-gray-900" : "",
|
|
@@ -17194,7 +17194,7 @@ function pt({
|
|
|
17194
17194
|
y.id
|
|
17195
17195
|
)),
|
|
17196
17196
|
((f = m.getRowModel().rows) == null ? void 0 : f.length) === 0 && !n && /* @__PURE__ */ e(wt, { children: /* @__PURE__ */ e(
|
|
17197
|
-
|
|
17197
|
+
Ft,
|
|
17198
17198
|
{
|
|
17199
17199
|
colSpan: a.length,
|
|
17200
17200
|
className: "h-24 text-center",
|
|
@@ -17238,7 +17238,7 @@ const Ac = Pe({
|
|
|
17238
17238
|
],
|
|
17239
17239
|
variants: {
|
|
17240
17240
|
hasError: {
|
|
17241
|
-
true:
|
|
17241
|
+
true: pa
|
|
17242
17242
|
},
|
|
17243
17243
|
// number input
|
|
17244
17244
|
enableStepper: {
|
|
@@ -17499,7 +17499,7 @@ const Nc = N.forwardRef(
|
|
|
17499
17499
|
...o,
|
|
17500
17500
|
children: [
|
|
17501
17501
|
/* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(ne.ItemIndicator, { children: /* @__PURE__ */ e(
|
|
17502
|
-
|
|
17502
|
+
ta,
|
|
17503
17503
|
{
|
|
17504
17504
|
"aria-hidden": "true",
|
|
17505
17505
|
className: "size-full shrink-0 text-gray-800 dark:text-gray-200"
|
|
@@ -17529,7 +17529,7 @@ const Nc = N.forwardRef(
|
|
|
17529
17529
|
)
|
|
17530
17530
|
);
|
|
17531
17531
|
Nc.displayName = "DropdownMenuCheckboxItem";
|
|
17532
|
-
const
|
|
17532
|
+
const Ht = N.forwardRef(
|
|
17533
17533
|
({ className: t, hint: a, shortcut: r, children: i, iconType: n = "radio", ...o }, l) => /* @__PURE__ */ s(
|
|
17534
17534
|
ne.RadioItem,
|
|
17535
17535
|
{
|
|
@@ -17565,7 +17565,7 @@ const Zt = N.forwardRef(
|
|
|
17565
17565
|
}
|
|
17566
17566
|
)
|
|
17567
17567
|
] }) : n === "check" ? /* @__PURE__ */ e("span", { className: "absolute left-2 flex size-4 items-center justify-center", children: /* @__PURE__ */ e(
|
|
17568
|
-
|
|
17568
|
+
ta,
|
|
17569
17569
|
{
|
|
17570
17570
|
"aria-hidden": "true",
|
|
17571
17571
|
className: "size-full shrink-0 text-gray-800 group-data-[state=checked]/DropdownMenuRadioItem:flex group-data-[state=unchecked]/DropdownMenuRadioItem:hidden dark:text-gray-200"
|
|
@@ -17594,7 +17594,7 @@ const Zt = N.forwardRef(
|
|
|
17594
17594
|
}
|
|
17595
17595
|
)
|
|
17596
17596
|
);
|
|
17597
|
-
|
|
17597
|
+
Ht.displayName = "DropdownMenuRadioItem";
|
|
17598
17598
|
const fa = N.forwardRef(({ className: t, ...a }, r) => /* @__PURE__ */ e(
|
|
17599
17599
|
ne.Label,
|
|
17600
17600
|
{
|
|
@@ -17722,7 +17722,7 @@ const at = ot(), Cc = [
|
|
|
17722
17722
|
variant: "ghost",
|
|
17723
17723
|
className: "group aspect-square px-1.5 py-0! h-8! hover:border hover:border-gray-300 data-[state=open]:border-gray-300 data-[state=open]:bg-gray-50 dark:hover:border-gray-700 dark:data-[state=open]:border-gray-700 dark:data-[state=open]:bg-gray-900",
|
|
17724
17724
|
children: /* @__PURE__ */ e(
|
|
17725
|
-
|
|
17725
|
+
aa,
|
|
17726
17726
|
{
|
|
17727
17727
|
className: "size-4 shrink-0 text-gray-500 group-hover:text-gray-700 group-data-[state=open]:text-gray-700 dark:group-hover:text-gray-300 dark:group-data-[state=open]:text-gray-300",
|
|
17728
17728
|
"aria-hidden": "true"
|
|
@@ -17885,7 +17885,7 @@ const Qc = ({
|
|
|
17885
17885
|
"tremor-id": "tremor-raw",
|
|
17886
17886
|
children: [
|
|
17887
17887
|
u && p !== "cancelled" ? "Loading..." : l,
|
|
17888
|
-
/* @__PURE__ */ e(
|
|
17888
|
+
/* @__PURE__ */ e(Yt, { className: "w-4 h-4 text-emerald-600 dark:text-emerald-500" })
|
|
17889
17889
|
]
|
|
17890
17890
|
}
|
|
17891
17891
|
)
|
|
@@ -17918,16 +17918,16 @@ const Qc = ({
|
|
|
17918
17918
|
return "gray";
|
|
17919
17919
|
}
|
|
17920
17920
|
};
|
|
17921
|
-
return /* @__PURE__ */ e(
|
|
17922
|
-
/* @__PURE__ */ s(
|
|
17921
|
+
return /* @__PURE__ */ e(Qt, { open: t, onOpenChange: a, children: /* @__PURE__ */ s(It, { className: "sm:max-w-3xl overflow-y-auto max-h-[85vh]", children: [
|
|
17922
|
+
/* @__PURE__ */ s(Lt, { children: [
|
|
17923
17923
|
/* @__PURE__ */ s("div", { className: "flex justify-between items-center", children: [
|
|
17924
|
-
/* @__PURE__ */ s(
|
|
17924
|
+
/* @__PURE__ */ s(Et, { children: [
|
|
17925
17925
|
"Order Details #",
|
|
17926
17926
|
r.referenceId
|
|
17927
17927
|
] }),
|
|
17928
|
-
/* @__PURE__ */ e(
|
|
17928
|
+
/* @__PURE__ */ e(qt, { className: "rounded-full hover:bg-gray-200 p-1 dark:hover:bg-gray-800", children: /* @__PURE__ */ e(At, { className: "h-5 w-5" }) })
|
|
17929
17929
|
] }),
|
|
17930
|
-
/* @__PURE__ */ e(
|
|
17930
|
+
/* @__PURE__ */ e(Dt, { children: r.acceptedAt ? `Ordered on ${V(
|
|
17931
17931
|
new Date(r.acceptedAt),
|
|
17932
17932
|
"MMMM dd, yyyy"
|
|
17933
17933
|
)}` : "Order details" })
|
|
@@ -18545,12 +18545,12 @@ const rn = ({
|
|
|
18545
18545
|
);
|
|
18546
18546
|
}) })
|
|
18547
18547
|
] }),
|
|
18548
|
-
/* @__PURE__ */ s(
|
|
18548
|
+
/* @__PURE__ */ s(Qt, { onOpenChange: n, open: t, children: [
|
|
18549
18549
|
/* @__PURE__ */ e(rr, { className: "w-full text-left" }),
|
|
18550
|
-
/* @__PURE__ */ s(
|
|
18551
|
-
/* @__PURE__ */ s(
|
|
18552
|
-
/* @__PURE__ */ e(
|
|
18553
|
-
/* @__PURE__ */ e(
|
|
18550
|
+
/* @__PURE__ */ s(It, { className: "sm:max-w-xl", children: [
|
|
18551
|
+
/* @__PURE__ */ s(Lt, { children: [
|
|
18552
|
+
/* @__PURE__ */ e(Et, { children: "Create a Organization" }),
|
|
18553
|
+
/* @__PURE__ */ e(Dt, { className: "mt-1 text-sm leading-6", children: "Fill in the details below to create a new organization" })
|
|
18554
18554
|
] }),
|
|
18555
18555
|
/* @__PURE__ */ e(rn, { onClose: n })
|
|
18556
18556
|
] })
|
|
@@ -18608,7 +18608,7 @@ const $e = ot(), Oc = ({ row: t, table: a }) => {
|
|
|
18608
18608
|
className: "relative my-2 inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md border px-2 py-1 text-center text-sm font-medium shadow-xs transition-all duration-100 ease-in-out disabled:pointer-events-none disabled:shadow-none outline outline-offset-2 outline-0 focus-visible:outline-2 outline-blue-500 dark:outline-blue-500 border-gray-300 dark:border-gray-800 text-gray-900 dark:text-gray-50 bg-white dark:bg-gray-950 hover:bg-gray-50 dark:hover:bg-gray-900/60 disabled:text-gray-400 dark:disabled:text-gray-600",
|
|
18609
18609
|
"tremor-id": "tremor-raw",
|
|
18610
18610
|
children: [
|
|
18611
|
-
i ? /* @__PURE__ */ e(
|
|
18611
|
+
i ? /* @__PURE__ */ e(Yt, { className: "w-4 h-4 text-emerald-600 dark:text-emerald-500" }) : /* @__PURE__ */ e(Xr, { className: "w-4 h-4 text-red-600 dark:text-red-500" }),
|
|
18612
18612
|
i ? "Published" : "Draft"
|
|
18613
18613
|
]
|
|
18614
18614
|
}
|
|
@@ -18639,7 +18639,7 @@ const $e = ot(), Oc = ({ row: t, table: a }) => {
|
|
|
18639
18639
|
className: "group aspect-square px-1.5 py-0! h-8! hover:border hover:border-gray-300 data-[state=open]:border-gray-300 data-[state=open]:bg-gray-50 dark:hover:border-gray-700 dark:data-[state=open]:border-gray-700 dark:data-[state=open]:bg-gray-900",
|
|
18640
18640
|
disabled: o.isPending,
|
|
18641
18641
|
children: o.isPending ? /* @__PURE__ */ e(he, { className: "size-4 shrink-0" }) : /* @__PURE__ */ e(
|
|
18642
|
-
|
|
18642
|
+
aa,
|
|
18643
18643
|
{
|
|
18644
18644
|
className: "size-4 shrink-0 text-gray-500 group-hover:text-gray-700 group-data-[state=open]:text-gray-700 dark:group-hover:text-gray-300 dark:group-data-[state=open]:text-gray-300",
|
|
18645
18645
|
"aria-hidden": "true"
|
|
@@ -18961,7 +18961,7 @@ function Uc() {
|
|
|
18961
18961
|
] });
|
|
18962
18962
|
}
|
|
18963
18963
|
function Wc() {
|
|
18964
|
-
const t = ee(), a =
|
|
18964
|
+
const t = ee(), a = ha(), { client: r } = L(), { isLoading: i, data: n } = G({
|
|
18965
18965
|
queryKey: ["productCategories", t, a],
|
|
18966
18966
|
queryFn: async () => {
|
|
18967
18967
|
const { status: o, body: l } = await r.productCategory.getProductCategory({
|
|
@@ -19246,10 +19246,10 @@ const $c = ({ form: t }) => {
|
|
|
19246
19246
|
// Initial modifier value
|
|
19247
19247
|
});
|
|
19248
19248
|
};
|
|
19249
|
-
return /* @__PURE__ */ e(
|
|
19250
|
-
/* @__PURE__ */ s(
|
|
19251
|
-
/* @__PURE__ */ e(
|
|
19252
|
-
/* @__PURE__ */ e(
|
|
19249
|
+
return /* @__PURE__ */ e(Qt, { open: t, onOpenChange: a, children: /* @__PURE__ */ s(It, { className: "max-w-[710px]", children: [
|
|
19250
|
+
/* @__PURE__ */ s(Lt, { children: [
|
|
19251
|
+
/* @__PURE__ */ e(Et, { children: "New Modifier Group" }),
|
|
19252
|
+
/* @__PURE__ */ e(Dt, { className: "text-sm mb-5", children: "Modifiers allow you to create different variants of the same product. Create or choose existing modifiers for your product." })
|
|
19253
19253
|
] }),
|
|
19254
19254
|
/* @__PURE__ */ s(Ge, { ...l, children: [
|
|
19255
19255
|
/* @__PURE__ */ e(
|
|
@@ -19316,7 +19316,7 @@ const $c = ({ form: t }) => {
|
|
|
19316
19316
|
variant: "destructive",
|
|
19317
19317
|
className: "mt-auto ml-4 min-w-[42px] h-[42px] p-0! shadow-none!",
|
|
19318
19318
|
onClick: () => u(h),
|
|
19319
|
-
children: /* @__PURE__ */ e(
|
|
19319
|
+
children: /* @__PURE__ */ e(Kt, { className: "w-4 h-4" })
|
|
19320
19320
|
}
|
|
19321
19321
|
)
|
|
19322
19322
|
] }, m.id)),
|
|
@@ -19581,24 +19581,24 @@ const $c = ({ form: t }) => {
|
|
|
19581
19581
|
], loading: a }) })
|
|
19582
19582
|
] }) }), nn = ({ initialData: t }) => {
|
|
19583
19583
|
var y, b;
|
|
19584
|
-
const { client: a } = L(), r = K(), i = te(), n = ee(),
|
|
19584
|
+
const { client: a } = L(), r = K(), i = te(), n = ee(), { defaultLocale: o, supportedLocales: l } = ye(), d = t == null ? void 0 : t.id, u = de({
|
|
19585
19585
|
resolver: ce(t ? Uo : Zo),
|
|
19586
19586
|
defaultValues: t ? {
|
|
19587
19587
|
...t,
|
|
19588
|
-
defaultLocale:
|
|
19588
|
+
defaultLocale: o,
|
|
19589
19589
|
categories: (y = t.categories) == null ? void 0 : y.map((w) => w.id),
|
|
19590
19590
|
translations: t.translations,
|
|
19591
19591
|
images: t.images,
|
|
19592
19592
|
metadata: t.metadata,
|
|
19593
19593
|
modifierGroups: (b = t.modifierGroups) == null ? void 0 : b.map((w) => ({
|
|
19594
19594
|
...w,
|
|
19595
|
-
defaultLocale:
|
|
19595
|
+
defaultLocale: o,
|
|
19596
19596
|
translations: w.translations,
|
|
19597
19597
|
modifiers: w.modifiers
|
|
19598
19598
|
}))
|
|
19599
19599
|
} : {
|
|
19600
|
-
defaultLocale:
|
|
19601
|
-
translations:
|
|
19600
|
+
defaultLocale: o,
|
|
19601
|
+
translations: l.map((w) => ({ locale: w })),
|
|
19602
19602
|
currency: "USD"
|
|
19603
19603
|
}
|
|
19604
19604
|
}), p = $({
|
|
@@ -19613,20 +19613,20 @@ const $c = ({ form: t }) => {
|
|
|
19613
19613
|
}), m = $({
|
|
19614
19614
|
mutationFn: async (w) => {
|
|
19615
19615
|
const { status: S } = await a.product.updateProduct({
|
|
19616
|
-
params: { organizationId: n, id:
|
|
19616
|
+
params: { organizationId: n, id: d },
|
|
19617
19617
|
body: w
|
|
19618
19618
|
});
|
|
19619
19619
|
if (S !== 200)
|
|
19620
19620
|
throw new Error("Failed to update product");
|
|
19621
19621
|
}
|
|
19622
19622
|
}), h = async () => {
|
|
19623
|
-
se.success("Product saved successfully"), r.push(i.products(n)), await Ie.invalidateQueries({ queryKey: ["products"] }), await Ie.invalidateQueries({
|
|
19624
|
-
queryKey: ["product", n,
|
|
19623
|
+
se.success("Product saved successfully"), r.push(i.products(n)), await Ie.invalidateQueries({ queryKey: ["products"] }), d && await Ie.invalidateQueries({
|
|
19624
|
+
queryKey: ["product", n, d]
|
|
19625
19625
|
});
|
|
19626
19626
|
}, f = (w) => {
|
|
19627
19627
|
t ? m.mutate(w, { onSuccess: h }) : p.mutate(w, { onSuccess: h });
|
|
19628
19628
|
};
|
|
19629
|
-
return
|
|
19629
|
+
return /* @__PURE__ */ e(Ge, { ...u, children: /* @__PURE__ */ s(
|
|
19630
19630
|
"form",
|
|
19631
19631
|
{
|
|
19632
19632
|
onSubmit: u.handleSubmit((w) => f(w)),
|
|
@@ -19648,7 +19648,7 @@ const $c = ({ form: t }) => {
|
|
|
19648
19648
|
variant: "secondary",
|
|
19649
19649
|
onClick: () => r.push(i.products(n)),
|
|
19650
19650
|
children: [
|
|
19651
|
-
/* @__PURE__ */ e(
|
|
19651
|
+
/* @__PURE__ */ e(Xt, { className: "w-4 h-4 mr-2" }),
|
|
19652
19652
|
" Cancel"
|
|
19653
19653
|
]
|
|
19654
19654
|
}
|
|
@@ -19679,7 +19679,7 @@ function Xc() {
|
|
|
19679
19679
|
] });
|
|
19680
19680
|
}
|
|
19681
19681
|
function Yc() {
|
|
19682
|
-
const t = ee(), a =
|
|
19682
|
+
const t = ee(), a = ha(), { client: r } = L(), { data: i, isLoading: n } = G({
|
|
19683
19683
|
queryKey: ["product", t, a],
|
|
19684
19684
|
queryFn: async () => {
|
|
19685
19685
|
const { status: o, body: l } = await r.product.getProduct({
|
|
@@ -19731,7 +19731,7 @@ const Be = ot(), e0 = ({ row: t, table: a }) => {
|
|
|
19731
19731
|
className: "relative my-2 inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md border px-2 py-1 text-center text-sm font-medium shadow-xs transition-all duration-100 ease-in-out disabled:pointer-events-none disabled:shadow-none outline outline-offset-2 outline-0 focus-visible:outline-2 outline-blue-500 dark:outline-blue-500 border-gray-300 dark:border-gray-800 text-gray-900 dark:text-gray-50 bg-white dark:bg-gray-950 hover:bg-gray-50 dark:hover:bg-gray-900/60 disabled:text-gray-400 dark:disabled:text-gray-600",
|
|
19732
19732
|
"tremor-id": "tremor-raw",
|
|
19733
19733
|
children: [
|
|
19734
|
-
i ? /* @__PURE__ */ e(
|
|
19734
|
+
i ? /* @__PURE__ */ e(Yt, { className: "w-4 h-4 text-emerald-600 dark:text-emerald-500" }) : /* @__PURE__ */ e(Xr, { className: "w-4 h-4 text-red-600 dark:text-red-500" }),
|
|
19735
19735
|
i ? "Published" : "Draft"
|
|
19736
19736
|
]
|
|
19737
19737
|
}
|
|
@@ -19762,7 +19762,7 @@ const Be = ot(), e0 = ({ row: t, table: a }) => {
|
|
|
19762
19762
|
className: "group aspect-square px-1.5 py-0! h-8! hover:border hover:border-gray-300 data-[state=open]:border-gray-300 data-[state=open]:bg-gray-50 dark:hover:border-gray-700 dark:data-[state=open]:border-gray-700 dark:data-[state=open]:bg-gray-900",
|
|
19763
19763
|
disabled: o.isPending,
|
|
19764
19764
|
children: o.isPending ? /* @__PURE__ */ e(he, { className: "size-4 shrink-0" }) : /* @__PURE__ */ e(
|
|
19765
|
-
|
|
19765
|
+
aa,
|
|
19766
19766
|
{
|
|
19767
19767
|
className: "size-4 shrink-0 text-gray-500 group-hover:text-gray-700 group-data-[state=open]:text-gray-700 dark:group-hover:text-gray-300 dark:group-data-[state=open]:text-gray-300",
|
|
19768
19768
|
"aria-hidden": "true"
|
|
@@ -20031,12 +20031,12 @@ const i0 = ({
|
|
|
20031
20031
|
className: "relative my-2 inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md border px-2 py-1 text-center text-sm font-medium shadow-xs transition-all duration-100 ease-in-out disabled:pointer-events-none disabled:shadow-none outline outline-offset-2 outline-0 focus-visible:outline-2 outline-blue-500 dark:outline-blue-500 border-gray-300 dark:border-gray-800 text-gray-900 dark:text-gray-50 bg-white dark:bg-gray-950 hover:bg-gray-50 dark:hover:bg-gray-900/60 disabled:text-gray-400 dark:disabled:text-gray-600",
|
|
20032
20032
|
children: [
|
|
20033
20033
|
u && p === "accept" ? "Loading..." : "Accept",
|
|
20034
|
-
/* @__PURE__ */ e(
|
|
20034
|
+
/* @__PURE__ */ e(Yt, { className: "w-4 h-4 text-emerald-600 dark:text-emerald-500" })
|
|
20035
20035
|
]
|
|
20036
20036
|
}
|
|
20037
20037
|
)
|
|
20038
20038
|
] });
|
|
20039
|
-
}, n0 = ({ open: t, onOpenChange: a, reservation: r }) => /* @__PURE__ */ e(
|
|
20039
|
+
}, n0 = ({ open: t, onOpenChange: a, reservation: r }) => /* @__PURE__ */ e(la, { open: t, onOpenChange: a, children: /* @__PURE__ */ s(da, { className: "sm:max-w-[500px] overflow-y-auto max-h-[85vh]", children: [
|
|
20040
20040
|
/* @__PURE__ */ e(ai, { children: /* @__PURE__ */ e(_a, { children: "Reservation Details" }) }),
|
|
20041
20041
|
/* @__PURE__ */ s("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4 py-4", children: [
|
|
20042
20042
|
/* @__PURE__ */ s("div", { className: "space-y-1", children: [
|
|
@@ -20814,7 +20814,7 @@ function fn({
|
|
|
20814
20814
|
},
|
|
20815
20815
|
children: [
|
|
20816
20816
|
/* @__PURE__ */ s(
|
|
20817
|
-
|
|
20817
|
+
Ht,
|
|
20818
20818
|
{
|
|
20819
20819
|
"aria-label": "Switch to Light Mode",
|
|
20820
20820
|
value: "light",
|
|
@@ -20826,7 +20826,7 @@ function fn({
|
|
|
20826
20826
|
}
|
|
20827
20827
|
),
|
|
20828
20828
|
/* @__PURE__ */ s(
|
|
20829
|
-
|
|
20829
|
+
Ht,
|
|
20830
20830
|
{
|
|
20831
20831
|
"aria-label": "Switch to Dark Mode",
|
|
20832
20832
|
value: "dark",
|
|
@@ -20844,7 +20844,7 @@ function fn({
|
|
|
20844
20844
|
}
|
|
20845
20845
|
),
|
|
20846
20846
|
/* @__PURE__ */ s(
|
|
20847
|
-
|
|
20847
|
+
Ht,
|
|
20848
20848
|
{
|
|
20849
20849
|
"aria-label": "Switch to System Mode",
|
|
20850
20850
|
value: "system",
|
|
@@ -21522,7 +21522,7 @@ const wn = ({
|
|
|
21522
21522
|
variant: "secondary",
|
|
21523
21523
|
onClick: () => r.push(i.settingsShippingMethods(n)),
|
|
21524
21524
|
children: [
|
|
21525
|
-
/* @__PURE__ */ e(
|
|
21525
|
+
/* @__PURE__ */ e(Xt, { className: "w-4 h-4 mr-2" }),
|
|
21526
21526
|
" Cancel"
|
|
21527
21527
|
]
|
|
21528
21528
|
}
|
|
@@ -21553,7 +21553,7 @@ function C0() {
|
|
|
21553
21553
|
] });
|
|
21554
21554
|
}
|
|
21555
21555
|
function P0() {
|
|
21556
|
-
const t = ee(), a =
|
|
21556
|
+
const t = ee(), a = ha(), { client: r } = L(), { isLoading: i, data: n } = G({
|
|
21557
21557
|
queryKey: ["shipping-and-payment", t, a],
|
|
21558
21558
|
queryFn: async () => {
|
|
21559
21559
|
const { status: o, body: l } = await r.shippingMethod.getShippingMethod({
|
|
@@ -21670,7 +21670,7 @@ const rt = ot(), T0 = [
|
|
|
21670
21670
|
variant: "ghost",
|
|
21671
21671
|
className: "group aspect-square px-1.5 py-0! h-8! hover:border hover:border-gray-300 data-[state=open]:border-gray-300 data-[state=open]:bg-gray-50 dark:hover:border-gray-700 dark:data-[state=open]:border-gray-700 dark:data-[state=open]:bg-gray-900",
|
|
21672
21672
|
children: /* @__PURE__ */ e(
|
|
21673
|
-
|
|
21673
|
+
aa,
|
|
21674
21674
|
{
|
|
21675
21675
|
className: "size-4 shrink-0 text-gray-500 group-hover:text-gray-700 group-data-[state=open]:text-gray-700 dark:group-hover:text-gray-300 dark:group-data-[state=open]:text-gray-300",
|
|
21676
21676
|
"aria-hidden": "true"
|
|
@@ -21762,7 +21762,7 @@ function I0() {
|
|
|
21762
21762
|
] });
|
|
21763
21763
|
}
|
|
21764
21764
|
const L0 = () => {
|
|
21765
|
-
const t = K(), a = fe(), r = Nt(), i = te(), n = r.signIn, o =
|
|
21765
|
+
const t = K(), a = fe(), r = Nt(), i = te(), n = r.signIn, o = ma(
|
|
21766
21766
|
a == null ? void 0 : a.get("redirect"),
|
|
21767
21767
|
i
|
|
21768
21768
|
), {
|
|
@@ -21981,7 +21981,7 @@ const L0 = () => {
|
|
|
21981
21981
|
className: "mt-2 w-full sm:mt-0 shadow-none inline-flex items-center gap-2",
|
|
21982
21982
|
onClick: h,
|
|
21983
21983
|
children: [
|
|
21984
|
-
/* @__PURE__ */ e(
|
|
21984
|
+
/* @__PURE__ */ e(ea, { className: "size-4", "aria-hidden": "true" }),
|
|
21985
21985
|
"Login with Google"
|
|
21986
21986
|
]
|
|
21987
21987
|
}
|
|
@@ -22063,7 +22063,7 @@ function E0() {
|
|
|
22063
22063
|
return /* @__PURE__ */ e(bn, { children: /* @__PURE__ */ e(L0, {}) });
|
|
22064
22064
|
}
|
|
22065
22065
|
const D0 = () => {
|
|
22066
|
-
const t = K(), a = fe(), r = Nt(), i = te(), { signIn: n, signUp: o } = r, l =
|
|
22066
|
+
const t = K(), a = fe(), r = Nt(), i = te(), { signIn: n, signUp: o } = r, l = ma(
|
|
22067
22067
|
a == null ? void 0 : a.get("redirect"),
|
|
22068
22068
|
i
|
|
22069
22069
|
), {
|
|
@@ -22281,7 +22281,7 @@ const D0 = () => {
|
|
|
22281
22281
|
className: "inline-flex items-center gap-2",
|
|
22282
22282
|
onClick: y,
|
|
22283
22283
|
children: [
|
|
22284
|
-
/* @__PURE__ */ e(
|
|
22284
|
+
/* @__PURE__ */ e(ea, { className: "size-4", "aria-hidden": "true" }),
|
|
22285
22285
|
"Signin with Google"
|
|
22286
22286
|
]
|
|
22287
22287
|
}
|
|
@@ -22383,7 +22383,7 @@ function M0(t) {
|
|
|
22383
22383
|
return r ? r === "dashboard" ? { type: "dashboard", orgId: l } : r === "orders" ? { type: "orders", orgId: l } : r === "reservations" ? { type: "reservations", orgId: l } : r === "products" ? i ? i === "create" ? { type: "product-create", orgId: l } : { type: "product-edit", orgId: l, id: i } : { type: "products-list", orgId: l } : r === "product-categories" ? i ? i === "create" ? { type: "product-category-create", orgId: l } : { type: "product-category-edit", orgId: l, id: i } : { type: "product-categories-list", orgId: l } : r === "manufacturers" ? i ? i === "create" ? { type: "manufacturer-create", orgId: l } : { type: "manufacturer-edit", orgId: l, id: i } : { type: "manufacturers-list", orgId: l } : r === "settings" ? i ? i === "opening-times" ? { type: "settings-opening-times", orgId: l } : i === "shipping-methods" ? n ? n === "create" ? { type: "shipping-method-create", orgId: l } : { type: "shipping-method-edit", orgId: l, id: n } : { type: "shipping-methods-list", orgId: l } : { type: "settings", orgId: l } : { type: "settings", orgId: l } : { type: "not-found" } : { type: "not-found" };
|
|
22384
22384
|
}
|
|
22385
22385
|
function zu({ segments: t }) {
|
|
22386
|
-
const a = Nt(), r = te(), i = K(), n = nt(), o = fe(), { data: l, isPending: d } = a.useSession(), c = M0(t), u = c.type === "sign-in" || c.type === "sign-up", p = c.type === "home" || c.type === "organizations", m = o == null ? void 0 : o.get("redirect"), h = o == null ? void 0 : o.toString(), f = n ? `${n}${h ? `?${h}` : ""}` : r.home, y = u ?
|
|
22386
|
+
const a = Nt(), r = te(), i = K(), n = nt(), o = fe(), { data: l, isPending: d } = a.useSession(), c = M0(t), u = c.type === "sign-in" || c.type === "sign-up", p = c.type === "home" || c.type === "organizations", m = o == null ? void 0 : o.get("redirect"), h = o == null ? void 0 : o.toString(), f = n ? `${n}${h ? `?${h}` : ""}` : r.home, y = u ? ma(m, r) : f;
|
|
22387
22387
|
if (X(() => {
|
|
22388
22388
|
if (!d) {
|
|
22389
22389
|
if (!l && !u) {
|
|
@@ -22448,7 +22448,7 @@ function B0(t) {
|
|
|
22448
22448
|
}
|
|
22449
22449
|
}
|
|
22450
22450
|
export {
|
|
22451
|
-
|
|
22451
|
+
ca as $,
|
|
22452
22452
|
bu as A,
|
|
22453
22453
|
vu as B,
|
|
22454
22454
|
To as C,
|
|
@@ -22485,9 +22485,9 @@ export {
|
|
|
22485
22485
|
Ya as a5,
|
|
22486
22486
|
yl as a6,
|
|
22487
22487
|
fl as a7,
|
|
22488
|
-
|
|
22488
|
+
la as a8,
|
|
22489
22489
|
ml as a9,
|
|
22490
|
-
|
|
22490
|
+
da as aa,
|
|
22491
22491
|
gl as ab,
|
|
22492
22492
|
hl as ac,
|
|
22493
22493
|
ai as ad,
|
|
@@ -22513,7 +22513,7 @@ export {
|
|
|
22513
22513
|
vo as b,
|
|
22514
22514
|
So as c,
|
|
22515
22515
|
ja as d,
|
|
22516
|
-
|
|
22516
|
+
sa as e,
|
|
22517
22517
|
Lo as f,
|
|
22518
22518
|
ko as g,
|
|
22519
22519
|
Bo as h,
|