randmarcomps 1.185.0 → 1.187.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/randmarcomps.d.ts +99 -1
- package/dist/randmarcomps.js +96 -55
- package/dist/randmarcomps.umd.cjs +3 -3
- package/package.json +1 -1
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
|
5
5
|
import { ClassProp } from 'class-variance-authority/types';
|
|
6
6
|
import { default as default_2 } from 'react';
|
|
7
7
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
8
|
+
import { DialogProps } from '@radix-ui/react-dialog';
|
|
8
9
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
9
10
|
import { FC } from 'react';
|
|
10
11
|
import { ForwardRefExoticComponent } from 'react';
|
|
@@ -17,6 +18,7 @@ import { Manufacturer } from 'randmar-api-client';
|
|
|
17
18
|
import { MouseEventHandler } from 'react';
|
|
18
19
|
import { OrderDetail } from 'randmar-api-client';
|
|
19
20
|
import { OTPInput } from 'input-otp';
|
|
21
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
20
22
|
import { Product } from 'randmar-api-client';
|
|
21
23
|
import { Qualification } from 'randmar-api-client';
|
|
22
24
|
import * as React_2 from 'react';
|
|
@@ -153,6 +155,92 @@ export declare const ChatProvider: default_2.FC<{
|
|
|
153
155
|
|
|
154
156
|
export declare const Checkbox: React_2.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React_2.RefAttributes<HTMLButtonElement>, "ref"> & React_2.RefAttributes<HTMLButtonElement>>;
|
|
155
157
|
|
|
158
|
+
export declare const Command: React_2.ForwardRefExoticComponent<Omit<{
|
|
159
|
+
children?: React_2.ReactNode;
|
|
160
|
+
} & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
161
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
162
|
+
} & {
|
|
163
|
+
asChild?: boolean;
|
|
164
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
165
|
+
label?: string;
|
|
166
|
+
shouldFilter?: boolean;
|
|
167
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
168
|
+
defaultValue?: string;
|
|
169
|
+
value?: string;
|
|
170
|
+
onValueChange?: (value: string) => void;
|
|
171
|
+
loop?: boolean;
|
|
172
|
+
disablePointerSelection?: boolean;
|
|
173
|
+
vimBindings?: boolean;
|
|
174
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
175
|
+
|
|
176
|
+
export declare const CommandDialog: ({ children, ...props }: DialogProps) => JSX.Element;
|
|
177
|
+
|
|
178
|
+
export declare const CommandEmpty: React_2.ForwardRefExoticComponent<Omit<{
|
|
179
|
+
children?: React_2.ReactNode;
|
|
180
|
+
} & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
181
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
182
|
+
} & {
|
|
183
|
+
asChild?: boolean;
|
|
184
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
185
|
+
|
|
186
|
+
export declare const CommandGroup: React_2.ForwardRefExoticComponent<Omit<{
|
|
187
|
+
children?: React_2.ReactNode;
|
|
188
|
+
} & Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
189
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
190
|
+
} & {
|
|
191
|
+
asChild?: boolean;
|
|
192
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
|
|
193
|
+
heading?: React_2.ReactNode;
|
|
194
|
+
value?: string;
|
|
195
|
+
forceMount?: boolean;
|
|
196
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
197
|
+
|
|
198
|
+
export declare const CommandInput: React_2.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof React_2.InputHTMLAttributes<HTMLInputElement> | "key"> & {
|
|
199
|
+
ref?: React_2.Ref<HTMLInputElement>;
|
|
200
|
+
} & {
|
|
201
|
+
asChild?: boolean;
|
|
202
|
+
}, keyof React_2.InputHTMLAttributes<HTMLInputElement> | "key" | "asChild">, "type" | "value" | "onChange"> & {
|
|
203
|
+
value?: string;
|
|
204
|
+
onValueChange?: (search: string) => void;
|
|
205
|
+
} & React_2.RefAttributes<HTMLInputElement>, "ref"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
206
|
+
|
|
207
|
+
export declare const CommandItem: React_2.ForwardRefExoticComponent<Omit<{
|
|
208
|
+
children?: React_2.ReactNode;
|
|
209
|
+
} & Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
210
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
211
|
+
} & {
|
|
212
|
+
asChild?: boolean;
|
|
213
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild">, "disabled" | "value" | "onSelect"> & {
|
|
214
|
+
disabled?: boolean;
|
|
215
|
+
onSelect?: (value: string) => void;
|
|
216
|
+
value?: string;
|
|
217
|
+
keywords?: string[];
|
|
218
|
+
forceMount?: boolean;
|
|
219
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
220
|
+
|
|
221
|
+
export declare const CommandList: React_2.ForwardRefExoticComponent<Omit<{
|
|
222
|
+
children?: React_2.ReactNode;
|
|
223
|
+
} & Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
224
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
225
|
+
} & {
|
|
226
|
+
asChild?: boolean;
|
|
227
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
228
|
+
label?: string;
|
|
229
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
230
|
+
|
|
231
|
+
export declare const CommandSeparator: React_2.ForwardRefExoticComponent<Omit<Pick<Pick<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React_2.HTMLAttributes<HTMLDivElement>> & {
|
|
232
|
+
ref?: React_2.Ref<HTMLDivElement>;
|
|
233
|
+
} & {
|
|
234
|
+
asChild?: boolean;
|
|
235
|
+
}, "key" | keyof React_2.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
236
|
+
alwaysRender?: boolean;
|
|
237
|
+
} & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
238
|
+
|
|
239
|
+
export declare const CommandShortcut: {
|
|
240
|
+
({ className, ...props }: React_2.HTMLAttributes<HTMLSpanElement>): JSX.Element;
|
|
241
|
+
displayName: string;
|
|
242
|
+
};
|
|
243
|
+
|
|
156
244
|
export declare interface ConfirmationDialogProps {
|
|
157
245
|
title: string;
|
|
158
246
|
content: React_2.ReactNode;
|
|
@@ -360,15 +448,25 @@ export declare interface NavRoute {
|
|
|
360
448
|
showInNav?: boolean;
|
|
361
449
|
}
|
|
362
450
|
|
|
363
|
-
export declare function PartnerCard({ account, action, loading, withVoice }: PartnerCardProps): JSX.Element;
|
|
451
|
+
export declare function PartnerCard({ account, action, loading, className, withAbout, withVoice }: PartnerCardProps): JSX.Element;
|
|
364
452
|
|
|
365
453
|
declare interface PartnerCardProps {
|
|
366
454
|
account?: Account;
|
|
367
455
|
action?: ReactNode;
|
|
368
456
|
loading?: boolean;
|
|
457
|
+
className?: string;
|
|
458
|
+
withAbout?: boolean;
|
|
369
459
|
withVoice?: boolean;
|
|
370
460
|
}
|
|
371
461
|
|
|
462
|
+
export declare const Popover: React_2.FC<PopoverPrimitive.PopoverProps>;
|
|
463
|
+
|
|
464
|
+
export declare const PopoverAnchor: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
465
|
+
|
|
466
|
+
export declare const PopoverContent: React_2.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
467
|
+
|
|
468
|
+
export declare const PopoverTrigger: React_2.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
469
|
+
|
|
372
470
|
export declare function Preloader({ text, color, className }: PreloaderProps): JSX.Element;
|
|
373
471
|
|
|
374
472
|
export declare interface PreloaderProps {
|
package/dist/randmarcomps.js
CHANGED
|
@@ -7398,7 +7398,7 @@ function isPointerInGraceArea(e, t) {
|
|
|
7398
7398
|
function whenMouse(e) {
|
|
7399
7399
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
7400
7400
|
}
|
|
7401
|
-
var Root3$1 = Menu, Anchor2 = MenuAnchor, Portal$3 = MenuPortal, Content2$4 = MenuContent, Group$1 = MenuGroup, Label$4 = MenuLabel, Item2$1 = MenuItem, CheckboxItem = MenuCheckboxItem, RadioGroup = MenuRadioGroup, RadioItem = MenuRadioItem, ItemIndicator$1 = MenuItemIndicator, Separator$3 = MenuSeparator, Arrow2 = MenuArrow, Sub = MenuSub, SubTrigger = MenuSubTrigger, SubContent = MenuSubContent, DROPDOWN_MENU_NAME = "DropdownMenu", [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(
|
|
7401
|
+
var Root3$1 = Menu, Anchor2$1 = MenuAnchor, Portal$3 = MenuPortal, Content2$4 = MenuContent, Group$1 = MenuGroup, Label$4 = MenuLabel, Item2$1 = MenuItem, CheckboxItem = MenuCheckboxItem, RadioGroup = MenuRadioGroup, RadioItem = MenuRadioItem, ItemIndicator$1 = MenuItemIndicator, Separator$3 = MenuSeparator, Arrow2 = MenuArrow, Sub = MenuSub, SubTrigger = MenuSubTrigger, SubContent = MenuSubContent, DROPDOWN_MENU_NAME = "DropdownMenu", [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(
|
|
7402
7402
|
DROPDOWN_MENU_NAME,
|
|
7403
7403
|
[createMenuScope]
|
|
7404
7404
|
), useMenuScope = createMenuScope(), [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME), DropdownMenu$1 = (e) => {
|
|
@@ -7435,7 +7435,7 @@ DropdownMenu$1.displayName = DROPDOWN_MENU_NAME;
|
|
|
7435
7435
|
var TRIGGER_NAME$4 = "DropdownMenuTrigger", DropdownMenuTrigger$1 = React.forwardRef(
|
|
7436
7436
|
(e, t) => {
|
|
7437
7437
|
const { __scopeDropdownMenu: n, disabled: o = !1, ...l } = e, d = useDropdownMenuContext(TRIGGER_NAME$4, n), f = useMenuScope(n);
|
|
7438
|
-
return /* @__PURE__ */ jsx(Anchor2, { asChild: !0, ...f, children: /* @__PURE__ */ jsx(
|
|
7438
|
+
return /* @__PURE__ */ jsx(Anchor2$1, { asChild: !0, ...f, children: /* @__PURE__ */ jsx(
|
|
7439
7439
|
Primitive.button,
|
|
7440
7440
|
{
|
|
7441
7441
|
type: "button",
|
|
@@ -50180,64 +50180,71 @@ const badgeVariants = cva(
|
|
|
50180
50180
|
] })
|
|
50181
50181
|
);
|
|
50182
50182
|
Badge.displayName = "Badge";
|
|
50183
|
-
function PartnerCard({
|
|
50184
|
-
|
|
50183
|
+
function PartnerCard({
|
|
50184
|
+
account: e,
|
|
50185
|
+
action: t,
|
|
50186
|
+
loading: n = !1,
|
|
50187
|
+
className: o,
|
|
50188
|
+
withAbout: l = !1,
|
|
50189
|
+
withVoice: d = !0
|
|
50190
|
+
}) {
|
|
50191
|
+
const [f, g] = useState(null), [b, _] = useState(!1), [S, C] = useState(!1), [E, R] = useState(!1), [M, I] = useState(!0), [A, j] = useState(null), [q, z] = useState(!1), Q = useMemo(() => e != null && e.ApplicationId ? {
|
|
50185
50192
|
videoUrl: `https://api.randmar.io/V4/Partner/${e.ApplicationId}/Account/Video`,
|
|
50186
50193
|
videoExistsUrl: `https://api.randmar.io/V4/Partner/${e.ApplicationId}/Account/Video/Exists`,
|
|
50187
50194
|
logoUrl: `https://api.randmar.io/V4/Partner/${e.ApplicationId}/Account/Logo?width=64&height=64`,
|
|
50188
50195
|
logoExistsUrl: `https://api.randmar.io/V4/Partner/${e.ApplicationId}/Account/Logo/Exists`
|
|
50189
50196
|
} : null, [e == null ? void 0 : e.ApplicationId]);
|
|
50190
50197
|
useEffect(() => {
|
|
50191
|
-
if (!
|
|
50192
|
-
let
|
|
50193
|
-
|
|
50194
|
-
const
|
|
50198
|
+
if (!Q || n) return;
|
|
50199
|
+
let V = !0;
|
|
50200
|
+
j(null);
|
|
50201
|
+
const te = async () => {
|
|
50195
50202
|
try {
|
|
50196
|
-
const
|
|
50197
|
-
if (
|
|
50198
|
-
const
|
|
50199
|
-
return
|
|
50203
|
+
const oe = await fetch(Q.logoExistsUrl);
|
|
50204
|
+
if (oe.ok) {
|
|
50205
|
+
const Ae = (await oe.text()).toLowerCase() === "true";
|
|
50206
|
+
return V && C(Ae), Ae;
|
|
50200
50207
|
}
|
|
50201
50208
|
return !1;
|
|
50202
|
-
} catch (
|
|
50203
|
-
return console.error("Failed to check if logo exists:",
|
|
50209
|
+
} catch (oe) {
|
|
50210
|
+
return console.error("Failed to check if logo exists:", oe), V && C(!1), !1;
|
|
50204
50211
|
}
|
|
50205
|
-
},
|
|
50206
|
-
|
|
50212
|
+
}, ae = async () => {
|
|
50213
|
+
V && _(!0);
|
|
50207
50214
|
try {
|
|
50208
|
-
const
|
|
50209
|
-
if (
|
|
50210
|
-
const
|
|
50211
|
-
|
|
50215
|
+
const oe = await fetch(Q.logoUrl);
|
|
50216
|
+
if (oe.ok) {
|
|
50217
|
+
const ge = await oe.blob();
|
|
50218
|
+
V && (f && URL.revokeObjectURL(f), g(URL.createObjectURL(ge)));
|
|
50212
50219
|
} else
|
|
50213
|
-
throw new Error(`Failed to load logo: ${
|
|
50214
|
-
} catch (
|
|
50215
|
-
console.error("Failed to load logo:",
|
|
50220
|
+
throw new Error(`Failed to load logo: ${oe.status}`);
|
|
50221
|
+
} catch (oe) {
|
|
50222
|
+
console.error("Failed to load logo:", oe), V && j("Failed to load partner logo");
|
|
50216
50223
|
} finally {
|
|
50217
|
-
|
|
50224
|
+
V && _(!1);
|
|
50218
50225
|
}
|
|
50219
|
-
},
|
|
50226
|
+
}, ie = async () => {
|
|
50220
50227
|
try {
|
|
50221
|
-
const
|
|
50222
|
-
if (
|
|
50223
|
-
const
|
|
50224
|
-
|
|
50228
|
+
const oe = await fetch(Q.videoExistsUrl);
|
|
50229
|
+
if (oe.ok) {
|
|
50230
|
+
const ge = await oe.text();
|
|
50231
|
+
V && R(ge.toLowerCase() === "true");
|
|
50225
50232
|
} else
|
|
50226
|
-
throw new Error(`Failed to check video: ${
|
|
50227
|
-
} catch (
|
|
50228
|
-
console.error("Failed to check if video exists:",
|
|
50233
|
+
throw new Error(`Failed to check video: ${oe.status}`);
|
|
50234
|
+
} catch (oe) {
|
|
50235
|
+
console.error("Failed to check if video exists:", oe), V && R(!1);
|
|
50229
50236
|
}
|
|
50230
50237
|
};
|
|
50231
50238
|
return (async () => {
|
|
50232
|
-
await
|
|
50239
|
+
await te() && ae(), ie();
|
|
50233
50240
|
})(), () => {
|
|
50234
|
-
|
|
50241
|
+
V = !1, f && URL.revokeObjectURL(f);
|
|
50235
50242
|
};
|
|
50236
|
-
}, [
|
|
50237
|
-
const
|
|
50238
|
-
|
|
50243
|
+
}, [Q, n]);
|
|
50244
|
+
const F = () => {
|
|
50245
|
+
I(!1);
|
|
50239
50246
|
};
|
|
50240
|
-
return n || !e ? /* @__PURE__ */ jsxs(Card, { children: [
|
|
50247
|
+
return n || !e ? /* @__PURE__ */ jsxs(Card, { className: o, children: [
|
|
50241
50248
|
/* @__PURE__ */ jsx(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
50242
50249
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-12 w-12 rounded-md" }),
|
|
50243
50250
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -50254,7 +50261,7 @@ function PartnerCard({ account: e, action: t, loading: n = !1, withVoice: o = !0
|
|
|
50254
50261
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-20 rounded-full" }),
|
|
50255
50262
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16 rounded-full" })
|
|
50256
50263
|
] }),
|
|
50257
|
-
|
|
50264
|
+
d && /* @__PURE__ */ jsx("div", { className: "p-3 bg-slate-50 rounded-md", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-3 gap-2", children: [
|
|
50258
50265
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
50259
50266
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-20 mb-1" }),
|
|
50260
50267
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" })
|
|
@@ -50273,12 +50280,12 @@ function PartnerCard({ account: e, action: t, loading: n = !1, withVoice: o = !0
|
|
|
50273
50280
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-32" }),
|
|
50274
50281
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-48" })
|
|
50275
50282
|
] })
|
|
50276
|
-
] }) : /* @__PURE__ */ jsxs(Card, { children: [
|
|
50283
|
+
] }) : /* @__PURE__ */ jsxs(Card, { className: o, children: [
|
|
50277
50284
|
/* @__PURE__ */ jsx(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
50278
|
-
|
|
50285
|
+
S && /* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md", children: b ? /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-10 rounded-md" }) : f && /* @__PURE__ */ jsx(
|
|
50279
50286
|
"img",
|
|
50280
50287
|
{
|
|
50281
|
-
src:
|
|
50288
|
+
src: f,
|
|
50282
50289
|
alt: `${e.PublicName}'s logo`,
|
|
50283
50290
|
className: "max-h-10 w-auto object-contain"
|
|
50284
50291
|
}
|
|
@@ -50293,14 +50300,21 @@ function PartnerCard({ account: e, action: t, loading: n = !1, withVoice: o = !0
|
|
|
50293
50300
|
] })
|
|
50294
50301
|
] }) }),
|
|
50295
50302
|
/* @__PURE__ */ jsxs(CardContent, { className: "pb-2", children: [
|
|
50296
|
-
|
|
50303
|
+
A && /* @__PURE__ */ jsx("div", { className: "text-red-500 mb-4 text-sm", role: "alert", children: A }),
|
|
50297
50304
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
50298
50305
|
(e.IsManufacturer || e.IsReseller || e.IsSalesAgency) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
50299
50306
|
e.IsManufacturer && /* @__PURE__ */ jsx(Badge, { className: "manufacturer-theme", children: "Manufacturer" }),
|
|
50300
50307
|
e.IsReseller && /* @__PURE__ */ jsx(Badge, { className: "reseller-theme", children: "Reseller" }),
|
|
50301
50308
|
e.IsSalesAgency && /* @__PURE__ */ jsx(Badge, { children: "Agency" })
|
|
50302
50309
|
] }),
|
|
50303
|
-
|
|
50310
|
+
l && e.About && /* @__PURE__ */ jsx(
|
|
50311
|
+
"div",
|
|
50312
|
+
{
|
|
50313
|
+
className: "prose prose-sm max-w-none",
|
|
50314
|
+
dangerouslySetInnerHTML: { __html: e.About ?? "" }
|
|
50315
|
+
}
|
|
50316
|
+
),
|
|
50317
|
+
d && /* @__PURE__ */ jsx("div", { className: "p-3 bg-slate-50 rounded-md", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 lg:grid-cols-3 gap-2", children: [
|
|
50304
50318
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
50305
50319
|
/* @__PURE__ */ jsx("div", { className: "text-sm text-muted-foreground", children: "Voice Name" }),
|
|
50306
50320
|
/* @__PURE__ */ jsx("div", { className: "font-medium", children: e.VoiceName ?? "Regular" })
|
|
@@ -50317,7 +50331,7 @@ function PartnerCard({ account: e, action: t, loading: n = !1, withVoice: o = !0
|
|
|
50317
50331
|
] })
|
|
50318
50332
|
] }),
|
|
50319
50333
|
/* @__PURE__ */ jsxs(CardFooter, { className: "px-6 py-4 flex justify-between gap-2", children: [
|
|
50320
|
-
|
|
50334
|
+
E && Q ? /* @__PURE__ */ jsxs(Dialog, { open: q, onOpenChange: z, children: [
|
|
50321
50335
|
/* @__PURE__ */ jsx(DialogTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(Button, { variant: "outline", className: "flex items-center gap-2", children: [
|
|
50322
50336
|
/* @__PURE__ */ jsx(Video, { className: "h-4 w-4" }),
|
|
50323
50337
|
/* @__PURE__ */ jsx("span", { children: "Watch Video" })
|
|
@@ -50328,23 +50342,23 @@ function PartnerCard({ account: e, action: t, loading: n = !1, withVoice: o = !0
|
|
|
50328
50342
|
" Video"
|
|
50329
50343
|
] }) }),
|
|
50330
50344
|
/* @__PURE__ */ jsxs("div", { className: "w-full h-[640px] rounded-md overflow-hidden", children: [
|
|
50331
|
-
|
|
50345
|
+
M && /* @__PURE__ */ jsx(Skeleton, { className: "w-full h-full" }),
|
|
50332
50346
|
/* @__PURE__ */ jsx(
|
|
50333
50347
|
"video",
|
|
50334
50348
|
{
|
|
50335
|
-
src:
|
|
50349
|
+
src: Q.videoUrl,
|
|
50336
50350
|
controls: !0,
|
|
50337
50351
|
preload: "auto",
|
|
50338
50352
|
playsInline: !0,
|
|
50339
50353
|
autoPlay: !0,
|
|
50340
50354
|
"aria-label": `Video for ${e.PublicName}`,
|
|
50341
|
-
className: `w-full h-full object-cover ${
|
|
50355
|
+
className: `w-full h-full object-cover ${M ? "invisible" : "visible"}`,
|
|
50342
50356
|
style: {
|
|
50343
50357
|
objectPosition: "center",
|
|
50344
50358
|
imageRendering: "auto"
|
|
50345
50359
|
},
|
|
50346
|
-
onLoadedData:
|
|
50347
|
-
onError: () =>
|
|
50360
|
+
onLoadedData: F,
|
|
50361
|
+
onError: () => I(!1)
|
|
50348
50362
|
}
|
|
50349
50363
|
)
|
|
50350
50364
|
] })
|
|
@@ -62280,7 +62294,7 @@ const Command = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
|
62280
62294
|
}
|
|
62281
62295
|
));
|
|
62282
62296
|
Command.displayName = _e.displayName;
|
|
62283
|
-
const CommandInput = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
62297
|
+
const CommandDialog = ({ children: e, ...t }) => /* @__PURE__ */ jsx(Dialog, { ...t, children: /* @__PURE__ */ jsx(DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsx(Command, { 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: e }) }) }), CommandInput = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
62284
62298
|
/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
62285
62299
|
/* @__PURE__ */ jsx(
|
|
62286
62300
|
_e.Input,
|
|
@@ -62346,6 +62360,20 @@ const CommandItem = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__
|
|
|
62346
62360
|
}
|
|
62347
62361
|
));
|
|
62348
62362
|
CommandItem.displayName = _e.Item.displayName;
|
|
62363
|
+
const CommandShortcut = ({
|
|
62364
|
+
className: e,
|
|
62365
|
+
...t
|
|
62366
|
+
}) => /* @__PURE__ */ jsx(
|
|
62367
|
+
"span",
|
|
62368
|
+
{
|
|
62369
|
+
className: cn(
|
|
62370
|
+
"ml-auto text-xs tracking-widest text-muted-foreground",
|
|
62371
|
+
e
|
|
62372
|
+
),
|
|
62373
|
+
...t
|
|
62374
|
+
}
|
|
62375
|
+
);
|
|
62376
|
+
CommandShortcut.displayName = "CommandShortcut";
|
|
62349
62377
|
var POPOVER_NAME = "Popover", [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [
|
|
62350
62378
|
createPopperScope
|
|
62351
62379
|
]), usePopperScope = createPopperScope(), [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME), Popover$1 = (e) => {
|
|
@@ -62380,13 +62408,13 @@ var POPOVER_NAME = "Popover", [createPopoverContext, createPopoverScope] = creat
|
|
|
62380
62408
|
) });
|
|
62381
62409
|
};
|
|
62382
62410
|
Popover$1.displayName = POPOVER_NAME;
|
|
62383
|
-
var ANCHOR_NAME = "PopoverAnchor", PopoverAnchor = React.forwardRef(
|
|
62411
|
+
var ANCHOR_NAME = "PopoverAnchor", PopoverAnchor$1 = React.forwardRef(
|
|
62384
62412
|
(e, t) => {
|
|
62385
62413
|
const { __scopePopover: n, ...o } = e, l = usePopoverContext(ANCHOR_NAME, n), d = usePopperScope(n), { onCustomAnchorAdd: f, onCustomAnchorRemove: g } = l;
|
|
62386
62414
|
return React.useEffect(() => (f(), () => g()), [f, g]), /* @__PURE__ */ jsx(Anchor, { ...d, ...o, ref: t });
|
|
62387
62415
|
}
|
|
62388
62416
|
);
|
|
62389
|
-
PopoverAnchor.displayName = ANCHOR_NAME;
|
|
62417
|
+
PopoverAnchor$1.displayName = ANCHOR_NAME;
|
|
62390
62418
|
var TRIGGER_NAME = "PopoverTrigger", PopoverTrigger$1 = React.forwardRef(
|
|
62391
62419
|
(e, t) => {
|
|
62392
62420
|
const { __scopePopover: n, ...o } = e, l = usePopoverContext(TRIGGER_NAME, n), d = usePopperScope(n), f = useComposedRefs(t, l.triggerRef), g = /* @__PURE__ */ jsx(
|
|
@@ -62557,8 +62585,8 @@ PopoverArrow.displayName = ARROW_NAME;
|
|
|
62557
62585
|
function getState(e) {
|
|
62558
62586
|
return e ? "open" : "closed";
|
|
62559
62587
|
}
|
|
62560
|
-
var Root2 = Popover$1, Trigger = PopoverTrigger$1, Portal = PopoverPortal, Content2 = PopoverContent$1;
|
|
62561
|
-
const Popover = Root2, PopoverTrigger = Trigger, PopoverContent = React.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...o }, l) => /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(
|
|
62588
|
+
var Root2 = Popover$1, Anchor2 = PopoverAnchor$1, Trigger = PopoverTrigger$1, Portal = PopoverPortal, Content2 = PopoverContent$1;
|
|
62589
|
+
const Popover = Root2, PopoverTrigger = Trigger, PopoverAnchor = Anchor2, PopoverContent = React.forwardRef(({ className: e, align: t = "center", sideOffset: n = 4, ...o }, l) => /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(
|
|
62562
62590
|
Content2,
|
|
62563
62591
|
{
|
|
62564
62592
|
ref: l,
|
|
@@ -62685,6 +62713,15 @@ export {
|
|
|
62685
62713
|
ChatLayout,
|
|
62686
62714
|
ChatProvider,
|
|
62687
62715
|
Checkbox,
|
|
62716
|
+
Command,
|
|
62717
|
+
CommandDialog,
|
|
62718
|
+
CommandEmpty,
|
|
62719
|
+
CommandGroup,
|
|
62720
|
+
CommandInput,
|
|
62721
|
+
CommandItem,
|
|
62722
|
+
CommandList,
|
|
62723
|
+
CommandSeparator,
|
|
62724
|
+
CommandShortcut,
|
|
62688
62725
|
CountryFlag,
|
|
62689
62726
|
Dialog,
|
|
62690
62727
|
DialogClose,
|
|
@@ -62726,6 +62763,10 @@ export {
|
|
|
62726
62763
|
MultiSelect,
|
|
62727
62764
|
Navbar,
|
|
62728
62765
|
PartnerCard,
|
|
62766
|
+
Popover,
|
|
62767
|
+
PopoverAnchor,
|
|
62768
|
+
PopoverContent,
|
|
62769
|
+
PopoverTrigger,
|
|
62729
62770
|
Preloader,
|
|
62730
62771
|
ProductCard,
|
|
62731
62772
|
ProductImage,
|