acai-ui-library 0.1.21 → 0.1.23
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/components/ai-chatbot-logo-glyph.cjs +31 -0
- package/dist/components/ai-chatbot-logo-glyph.cjs.map +1 -0
- package/dist/components/ai-chatbot-logo-glyph.d.cts +3 -0
- package/dist/components/ai-chatbot-logo-glyph.d.ts +3 -0
- package/dist/components/ai-chatbot-logo-glyph.js +6 -0
- package/dist/components/ai-chatbot-logo-glyph.js.map +1 -0
- package/dist/components/ai-chatbot-logo.cjs +136 -0
- package/dist/components/ai-chatbot-logo.cjs.map +1 -0
- package/dist/components/ai-chatbot-logo.d.cts +13 -0
- package/dist/components/ai-chatbot-logo.d.ts +13 -0
- package/dist/components/ai-chatbot-logo.js +102 -0
- package/dist/components/ai-chatbot-logo.js.map +1 -0
- package/dist/components/app-launcher.cjs +224 -0
- package/dist/components/app-launcher.cjs.map +1 -0
- package/dist/components/app-launcher.d.cts +24 -0
- package/dist/components/app-launcher.d.ts +24 -0
- package/dist/components/app-launcher.js +190 -0
- package/dist/components/app-launcher.js.map +1 -0
- package/dist/components/calendar.cjs +13 -5
- package/dist/components/calendar.cjs.map +1 -1
- package/dist/components/calendar.js +15 -7
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/date-picker.cjs +17 -7
- package/dist/components/date-picker.cjs.map +1 -1
- package/dist/components/date-picker.js +23 -13
- package/dist/components/date-picker.js.map +1 -1
- package/dist/components/date-time-picker.cjs +13 -5
- package/dist/components/date-time-picker.cjs.map +1 -1
- package/dist/components/date-time-picker.js +28 -20
- package/dist/components/date-time-picker.js.map +1 -1
- package/dist/components/help-widget/app-id-typecheck.cjs +34 -0
- package/dist/components/help-widget/app-id-typecheck.cjs.map +1 -0
- package/dist/components/help-widget/app-id-typecheck.d.cts +17 -0
- package/dist/components/help-widget/app-id-typecheck.d.ts +17 -0
- package/dist/components/help-widget/app-id-typecheck.js +8 -0
- package/dist/components/help-widget/app-id-typecheck.js.map +1 -0
- package/dist/components/help-widget/consent-dialog.cjs +276 -0
- package/dist/components/help-widget/consent-dialog.cjs.map +1 -0
- package/dist/components/help-widget/consent-dialog.d.cts +17 -0
- package/dist/components/help-widget/consent-dialog.d.ts +17 -0
- package/dist/components/help-widget/consent-dialog.js +239 -0
- package/dist/components/help-widget/consent-dialog.js.map +1 -0
- package/dist/components/help-widget/help-session-banner.cjs +85 -0
- package/dist/components/help-widget/help-session-banner.cjs.map +1 -0
- package/dist/components/help-widget/help-session-banner.d.cts +17 -0
- package/dist/components/help-widget/help-session-banner.d.ts +17 -0
- package/dist/components/help-widget/help-session-banner.js +50 -0
- package/dist/components/help-widget/help-session-banner.js.map +1 -0
- package/dist/components/help-widget/help-widget.cjs +503 -0
- package/dist/components/help-widget/help-widget.cjs.map +1 -0
- package/dist/components/help-widget/help-widget.d.cts +32 -0
- package/dist/components/help-widget/help-widget.d.ts +32 -0
- package/dist/components/help-widget/help-widget.js +468 -0
- package/dist/components/help-widget/help-widget.js.map +1 -0
- package/dist/components/help-widget/highlight-overlay.cjs +84 -0
- package/dist/components/help-widget/highlight-overlay.cjs.map +1 -0
- package/dist/components/help-widget/highlight-overlay.d.cts +24 -0
- package/dist/components/help-widget/highlight-overlay.d.ts +24 -0
- package/dist/components/help-widget/highlight-overlay.js +49 -0
- package/dist/components/help-widget/highlight-overlay.js.map +1 -0
- package/dist/components/help-widget/use-help-session.cjs +85 -0
- package/dist/components/help-widget/use-help-session.cjs.map +1 -0
- package/dist/components/help-widget/use-help-session.d.cts +46 -0
- package/dist/components/help-widget/use-help-session.d.ts +46 -0
- package/dist/components/help-widget/use-help-session.js +50 -0
- package/dist/components/help-widget/use-help-session.js.map +1 -0
- package/dist/index.cjs +665 -82
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +699 -126
- package/dist/index.js.map +1 -1
- package/dist/lib/app-ids.cjs +58 -0
- package/dist/lib/app-ids.cjs.map +1 -0
- package/dist/lib/app-ids.d.cts +12 -0
- package/dist/lib/app-ids.d.ts +12 -0
- package/dist/lib/app-ids.js +32 -0
- package/dist/lib/app-ids.js.map +1 -0
- package/dist/lib/mask-snapshot.cjs +66 -0
- package/dist/lib/mask-snapshot.cjs.map +1 -0
- package/dist/lib/mask-snapshot.d.cts +16 -0
- package/dist/lib/mask-snapshot.d.ts +16 -0
- package/dist/lib/mask-snapshot.js +41 -0
- package/dist/lib/mask-snapshot.js.map +1 -0
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -34,6 +34,7 @@ __export(src_exports, {
|
|
|
34
34
|
AccordionContent: () => AccordionContent,
|
|
35
35
|
AccordionItem: () => AccordionItem,
|
|
36
36
|
AccordionTrigger: () => AccordionTrigger,
|
|
37
|
+
AiChatbotLogo: () => AiChatbotLogo,
|
|
37
38
|
Alert: () => Alert,
|
|
38
39
|
AlertAction: () => AlertAction,
|
|
39
40
|
AlertDescription: () => AlertDescription,
|
|
@@ -51,6 +52,7 @@ __export(src_exports, {
|
|
|
51
52
|
AlertDialogTrigger: () => AlertDialogTrigger,
|
|
52
53
|
AlertTitle: () => AlertTitle,
|
|
53
54
|
AppHeader: () => AppHeader,
|
|
55
|
+
AppLauncher: () => AppLauncher,
|
|
54
56
|
AspectRatio: () => AspectRatio,
|
|
55
57
|
Avatar: () => Avatar,
|
|
56
58
|
AvatarFallback: () => AvatarFallback,
|
|
@@ -103,6 +105,7 @@ __export(src_exports, {
|
|
|
103
105
|
CommandList: () => CommandList,
|
|
104
106
|
CommandSeparator: () => CommandSeparator,
|
|
105
107
|
CommandShortcut: () => CommandShortcut,
|
|
108
|
+
ConsentDialog: () => ConsentDialog,
|
|
106
109
|
ContextMenu: () => ContextMenu,
|
|
107
110
|
ContextMenuCheckboxItem: () => ContextMenuCheckboxItem,
|
|
108
111
|
ContextMenuContent: () => ContextMenuContent,
|
|
@@ -173,6 +176,9 @@ __export(src_exports, {
|
|
|
173
176
|
H2: () => H2,
|
|
174
177
|
H3: () => H3,
|
|
175
178
|
H4: () => H4,
|
|
179
|
+
HelpSessionBanner: () => HelpSessionBanner,
|
|
180
|
+
HelpWidget: () => HelpWidget,
|
|
181
|
+
HighlightOverlay: () => HighlightOverlay,
|
|
176
182
|
HoverCard: () => HoverCard,
|
|
177
183
|
HoverCardContent: () => HoverCardContent,
|
|
178
184
|
HoverCardTrigger: () => HoverCardTrigger,
|
|
@@ -240,6 +246,7 @@ __export(src_exports, {
|
|
|
240
246
|
ResizableHandle: () => ResizableHandle,
|
|
241
247
|
ResizablePanel: () => ResizablePanel,
|
|
242
248
|
ResizablePanelGroup: () => ResizablePanelGroup,
|
|
249
|
+
SUPPORT_APP_IDS: () => SUPPORT_APP_IDS,
|
|
243
250
|
ScrollArea: () => ScrollArea,
|
|
244
251
|
ScrollBar: () => ScrollBar,
|
|
245
252
|
Select: () => Select,
|
|
@@ -319,6 +326,8 @@ __export(src_exports, {
|
|
|
319
326
|
formatRemaining: () => formatRemaining,
|
|
320
327
|
inputVariants: () => inputVariants,
|
|
321
328
|
isGuarded: () => isGuarded,
|
|
329
|
+
isSupportAppId: () => isSupportAppId,
|
|
330
|
+
maskSnapshot: () => maskSnapshot,
|
|
322
331
|
modeOfOps: () => modeOfOps,
|
|
323
332
|
navigationMenuTriggerStyle: () => navigationMenuTriggerStyle,
|
|
324
333
|
readImpersonation: () => readImpersonation,
|
|
@@ -327,6 +336,7 @@ __export(src_exports, {
|
|
|
327
336
|
toast: () => toast,
|
|
328
337
|
toggleVariants: () => toggleVariants,
|
|
329
338
|
useFormField: () => useFormField,
|
|
339
|
+
useHelpSession: () => useHelpSession,
|
|
330
340
|
useImpersonation: () => useImpersonation,
|
|
331
341
|
useSidebar: () => useSidebar,
|
|
332
342
|
useTheme: () => import_next_themes3.useTheme
|
|
@@ -4006,6 +4016,12 @@ PaginationInfo.displayName = "PaginationInfo";
|
|
|
4006
4016
|
var import_react_day_picker = require("react-day-picker");
|
|
4007
4017
|
var import_lucide_react22 = require("lucide-react");
|
|
4008
4018
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
4019
|
+
function CalendarSelect({ children, ...selectProps }) {
|
|
4020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_jsx_runtime48.Fragment, { children: [
|
|
4021
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)("select", { ...selectProps, children }),
|
|
4022
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react22.ChevronDown, { "aria-hidden": "true", className: "pointer-events-none absolute end-2 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground" })
|
|
4023
|
+
] });
|
|
4024
|
+
}
|
|
4009
4025
|
var DEFAULT_YEARS_BACK = 10;
|
|
4010
4026
|
var DEFAULT_YEARS_FORWARD = 10;
|
|
4011
4027
|
function Calendar({
|
|
@@ -4028,16 +4044,16 @@ function Calendar({
|
|
|
4028
4044
|
showOutsideDays,
|
|
4029
4045
|
className: cn("w-[260px] rounded-lg p-3", className),
|
|
4030
4046
|
classNames: {
|
|
4031
|
-
months: "flex flex-col",
|
|
4047
|
+
months: "relative flex flex-col",
|
|
4032
4048
|
month: "space-y-3",
|
|
4033
4049
|
month_caption: "relative flex h-8 items-center justify-center",
|
|
4034
4050
|
caption_label: "text-sm font-medium hidden",
|
|
4035
|
-
nav: "flex items-center",
|
|
4051
|
+
nav: "absolute inset-x-0 top-0 z-10 flex h-8 items-center pointer-events-none",
|
|
4036
4052
|
button_previous: cn(
|
|
4037
|
-
"absolute start-0 inline-flex size-7 items-center justify-center rounded-md bg-transparent p-0 text-muted-foreground hover:bg-muted hover:text-foreground transition-colors cursor-pointer border-none"
|
|
4053
|
+
"pointer-events-auto absolute start-0 top-1/2 -translate-y-1/2 inline-flex size-7 items-center justify-center rounded-md bg-transparent p-0 text-muted-foreground hover:bg-muted hover:text-foreground transition-colors cursor-pointer border-none"
|
|
4038
4054
|
),
|
|
4039
4055
|
button_next: cn(
|
|
4040
|
-
"absolute end-0 inline-flex size-7 items-center justify-center rounded-md bg-transparent p-0 text-muted-foreground hover:bg-muted hover:text-foreground transition-colors cursor-pointer border-none"
|
|
4056
|
+
"pointer-events-auto absolute end-0 top-1/2 -translate-y-1/2 inline-flex size-7 items-center justify-center rounded-md bg-transparent p-0 text-muted-foreground hover:bg-muted hover:text-foreground transition-colors cursor-pointer border-none"
|
|
4041
4057
|
),
|
|
4042
4058
|
month_grid: "w-full border-collapse",
|
|
4043
4059
|
weekdays: "flex w-full",
|
|
@@ -4054,8 +4070,9 @@ function Calendar({
|
|
|
4054
4070
|
disabled: "[&>button]:text-muted-foreground [&>button]:opacity-40 [&>button]:cursor-default",
|
|
4055
4071
|
range_middle: "[&>button]:bg-accent [&>button]:text-accent-foreground [&>button]:rounded-none",
|
|
4056
4072
|
range_start: "[&>button]:rounded-e-none",
|
|
4073
|
+
dropdown_root: "relative",
|
|
4057
4074
|
dropdowns: "flex items-center gap-1.5 justify-center",
|
|
4058
|
-
dropdown: "h-7 rounded-md border border-input bg-background
|
|
4075
|
+
dropdown: "h-7 appearance-none rounded-md border border-input bg-background ps-2 pe-6 text-xs font-medium text-foreground cursor-pointer outline-none accent-primary focus:border-ring focus:ring-[2px] focus:ring-ring/20 [&>option:checked]:bg-primary [&>option:checked]:text-primary-foreground [&>option]:py-1",
|
|
4059
4076
|
months_dropdown: "w-[104px]",
|
|
4060
4077
|
years_dropdown: "w-[72px]",
|
|
4061
4078
|
hidden: "invisible",
|
|
@@ -4063,6 +4080,7 @@ function Calendar({
|
|
|
4063
4080
|
},
|
|
4064
4081
|
captionLayout,
|
|
4065
4082
|
components: {
|
|
4083
|
+
Select: CalendarSelect,
|
|
4066
4084
|
Chevron: ({ orientation }) => {
|
|
4067
4085
|
const Icon2 = orientation === "left" ? import_lucide_react22.ChevronLeft : import_lucide_react22.ChevronRight;
|
|
4068
4086
|
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Icon2, { className: "size-4" });
|
|
@@ -4079,7 +4097,9 @@ var React44 = __toESM(require("react"), 1);
|
|
|
4079
4097
|
var import_lucide_react23 = require("lucide-react");
|
|
4080
4098
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
4081
4099
|
function formatDate(d) {
|
|
4082
|
-
|
|
4100
|
+
const day = String(d.getDate()).padStart(2, "0");
|
|
4101
|
+
const month = String(d.getMonth() + 1).padStart(2, "0");
|
|
4102
|
+
return `${day}/${month}/${d.getFullYear()}`;
|
|
4083
4103
|
}
|
|
4084
4104
|
function DatePicker({
|
|
4085
4105
|
date,
|
|
@@ -4100,7 +4120,7 @@ function DatePicker({
|
|
|
4100
4120
|
if (range.from) return formatDate(range.from);
|
|
4101
4121
|
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { children: placeholder });
|
|
4102
4122
|
}
|
|
4103
|
-
return date
|
|
4123
|
+
return formatDate(date);
|
|
4104
4124
|
}, [date, mode, placeholder]);
|
|
4105
4125
|
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Popover, { children: [
|
|
4106
4126
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
@@ -5104,8 +5124,251 @@ var AppHeader = React51.forwardRef(
|
|
|
5104
5124
|
);
|
|
5105
5125
|
AppHeader.displayName = "AppHeader";
|
|
5106
5126
|
|
|
5107
|
-
// src/components/
|
|
5127
|
+
// src/components/app-launcher.tsx
|
|
5128
|
+
var React52 = __toESM(require("react"), 1);
|
|
5129
|
+
var import_lucide_react30 = require("lucide-react");
|
|
5108
5130
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
5131
|
+
function loadPinnedIds(storageKey) {
|
|
5132
|
+
if (typeof window === "undefined") return [];
|
|
5133
|
+
try {
|
|
5134
|
+
const parsed = JSON.parse(localStorage.getItem(storageKey) ?? "[]");
|
|
5135
|
+
return Array.isArray(parsed) ? parsed.filter((x) => typeof x === "string") : [];
|
|
5136
|
+
} catch {
|
|
5137
|
+
return [];
|
|
5138
|
+
}
|
|
5139
|
+
}
|
|
5140
|
+
var DefaultTrigger = React52.forwardRef(({ active, className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5141
|
+
"button",
|
|
5142
|
+
{
|
|
5143
|
+
...props,
|
|
5144
|
+
ref,
|
|
5145
|
+
type: "button",
|
|
5146
|
+
"aria-label": "Apps",
|
|
5147
|
+
className: cn(
|
|
5148
|
+
"flex size-9 items-center justify-center rounded-md transition-colors",
|
|
5149
|
+
active ? "bg-muted text-foreground" : "text-muted-foreground hover:bg-muted/70 hover:text-foreground",
|
|
5150
|
+
className
|
|
5151
|
+
),
|
|
5152
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react30.LayoutGrid, { className: "size-[18px]" })
|
|
5153
|
+
}
|
|
5154
|
+
));
|
|
5155
|
+
DefaultTrigger.displayName = "AppLauncherDefaultTrigger";
|
|
5156
|
+
function AppTile({
|
|
5157
|
+
app,
|
|
5158
|
+
pinned,
|
|
5159
|
+
pinningEnabled,
|
|
5160
|
+
onLaunch,
|
|
5161
|
+
onTogglePin
|
|
5162
|
+
}) {
|
|
5163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "group relative", children: [
|
|
5164
|
+
pinningEnabled && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5165
|
+
"button",
|
|
5166
|
+
{
|
|
5167
|
+
type: "button",
|
|
5168
|
+
"aria-label": pinned ? "Unpin app" : "Pin app",
|
|
5169
|
+
onClick: () => onTogglePin(app.id),
|
|
5170
|
+
className: cn(
|
|
5171
|
+
"absolute end-1 top-1 z-10 flex h-5 w-5 items-center justify-center rounded-full text-muted-foreground outline-none transition-opacity focus-visible:opacity-100",
|
|
5172
|
+
pinned ? "text-primary opacity-100" : "opacity-0 hover:text-foreground group-hover:opacity-100"
|
|
5173
|
+
),
|
|
5174
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react30.Pin, { className: cn("size-3", pinned && "fill-current") })
|
|
5175
|
+
}
|
|
5176
|
+
),
|
|
5177
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
5178
|
+
"button",
|
|
5179
|
+
{
|
|
5180
|
+
type: "button",
|
|
5181
|
+
onClick: () => onLaunch(app),
|
|
5182
|
+
className: "flex w-full flex-col items-center gap-2 rounded-xl p-2.5 text-center outline-none transition-colors duration-150 hover:bg-muted/60 focus-visible:bg-muted/60",
|
|
5183
|
+
children: [
|
|
5184
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "relative flex h-12 w-12 items-center justify-center rounded-2xl bg-muted/50 shadow-sm ring-1 ring-border/60 transition-transform duration-150 group-hover:scale-[1.06] group-hover:shadow-md", children: app.iconUrl ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("img", { src: app.iconUrl, alt: "", className: "h-full w-full rounded-2xl object-contain p-2" }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "flex h-full w-full items-center justify-center rounded-2xl text-sm font-semibold text-primary", children: app.displayName.slice(0, 1).toUpperCase() }) }),
|
|
5185
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "line-clamp-2 text-[11px] font-medium leading-tight text-foreground", children: app.displayName })
|
|
5186
|
+
]
|
|
5187
|
+
}
|
|
5188
|
+
)
|
|
5189
|
+
] });
|
|
5190
|
+
}
|
|
5191
|
+
var AppLauncher = React52.forwardRef(
|
|
5192
|
+
({
|
|
5193
|
+
apps,
|
|
5194
|
+
isLoading = false,
|
|
5195
|
+
onLaunch,
|
|
5196
|
+
title = "Apps",
|
|
5197
|
+
emptyLabel = "No apps available",
|
|
5198
|
+
pinStorageKey,
|
|
5199
|
+
maxPins = 4,
|
|
5200
|
+
trigger,
|
|
5201
|
+
open,
|
|
5202
|
+
onOpenChange,
|
|
5203
|
+
className
|
|
5204
|
+
}, ref) => {
|
|
5205
|
+
const [internalOpen, setInternalOpen] = React52.useState(false);
|
|
5206
|
+
const isOpen = open ?? internalOpen;
|
|
5207
|
+
const setOpen = onOpenChange ?? setInternalOpen;
|
|
5208
|
+
const [pinnedIds, setPinnedIds] = React52.useState([]);
|
|
5209
|
+
React52.useEffect(() => {
|
|
5210
|
+
if (pinStorageKey) setPinnedIds(loadPinnedIds(pinStorageKey));
|
|
5211
|
+
}, [pinStorageKey]);
|
|
5212
|
+
const togglePin = (id) => {
|
|
5213
|
+
if (!pinStorageKey) return;
|
|
5214
|
+
const next = pinnedIds.includes(id) ? pinnedIds.filter((p) => p !== id) : [...pinnedIds, id].slice(-maxPins);
|
|
5215
|
+
setPinnedIds(next);
|
|
5216
|
+
try {
|
|
5217
|
+
localStorage.setItem(pinStorageKey, JSON.stringify(next));
|
|
5218
|
+
} catch {
|
|
5219
|
+
}
|
|
5220
|
+
};
|
|
5221
|
+
const handleLaunch = (app) => {
|
|
5222
|
+
onLaunch(app);
|
|
5223
|
+
setOpen(false);
|
|
5224
|
+
};
|
|
5225
|
+
const pinningEnabled = !!pinStorageKey;
|
|
5226
|
+
const pinnedApps = pinningEnabled ? pinnedIds.map((id) => apps.find((a) => a.id === id)).filter((a) => !!a) : [];
|
|
5227
|
+
const restApps = pinningEnabled ? apps.filter((a) => !pinnedIds.includes(a.id)) : apps;
|
|
5228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Popover, { open: isOpen, onOpenChange: setOpen, children: [
|
|
5229
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(PopoverTrigger, { asChild: true, children: trigger ?? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(DefaultTrigger, { ref, active: isOpen }) }),
|
|
5230
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5231
|
+
PopoverContent,
|
|
5232
|
+
{
|
|
5233
|
+
align: "end",
|
|
5234
|
+
sideOffset: 10,
|
|
5235
|
+
className: cn("w-[22rem] border-none bg-transparent p-0 shadow-none", className),
|
|
5236
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "overflow-hidden rounded-2xl border border-border/60 bg-card shadow-2xl shadow-black/10 ring-1 ring-border/50 dark:shadow-black/40", children: [
|
|
5237
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-center justify-between px-4 pb-3 pt-4", children: [
|
|
5238
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-[13px] font-semibold tracking-tight text-foreground", children: title }),
|
|
5239
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { className: "text-[11px] font-medium text-muted-foreground", children: apps.length > 0 ? apps.length : "" })
|
|
5240
|
+
] }),
|
|
5241
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "max-h-96 overflow-y-auto px-2 pb-3", children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "grid grid-cols-4 gap-1 p-1", children: Array.from({ length: 8 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-col items-center gap-2 rounded-xl p-2.5", children: [
|
|
5242
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "h-12 w-12 animate-pulse rounded-2xl bg-muted/60" }),
|
|
5243
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "h-2.5 w-10 animate-pulse rounded-full bg-muted/60" })
|
|
5244
|
+
] }, i)) }) : apps.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: "py-10 text-center text-sm text-muted-foreground", children: emptyLabel }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
|
|
5245
|
+
pinnedApps.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_jsx_runtime57.Fragment, { children: [
|
|
5246
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "px-1 pb-1.5 pt-1 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground", children: "Pinned" }),
|
|
5247
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "grid grid-cols-4 gap-1", children: pinnedApps.map((app) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5248
|
+
AppTile,
|
|
5249
|
+
{
|
|
5250
|
+
app,
|
|
5251
|
+
pinned: true,
|
|
5252
|
+
pinningEnabled,
|
|
5253
|
+
onLaunch: handleLaunch,
|
|
5254
|
+
onTogglePin: togglePin
|
|
5255
|
+
},
|
|
5256
|
+
app.id
|
|
5257
|
+
)) }),
|
|
5258
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "my-2 border-t border-border/60" })
|
|
5259
|
+
] }),
|
|
5260
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "grid grid-cols-4 gap-1", children: restApps.map((app) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
5261
|
+
AppTile,
|
|
5262
|
+
{
|
|
5263
|
+
app,
|
|
5264
|
+
pinned: false,
|
|
5265
|
+
pinningEnabled,
|
|
5266
|
+
onLaunch: handleLaunch,
|
|
5267
|
+
onTogglePin: togglePin
|
|
5268
|
+
},
|
|
5269
|
+
app.id
|
|
5270
|
+
)) })
|
|
5271
|
+
] }) })
|
|
5272
|
+
] })
|
|
5273
|
+
}
|
|
5274
|
+
)
|
|
5275
|
+
] });
|
|
5276
|
+
}
|
|
5277
|
+
);
|
|
5278
|
+
AppLauncher.displayName = "AppLauncher";
|
|
5279
|
+
|
|
5280
|
+
// src/components/ai-chatbot-logo.tsx
|
|
5281
|
+
var React53 = __toESM(require("react"), 1);
|
|
5282
|
+
|
|
5283
|
+
// src/components/ai-chatbot-logo-glyph.ts
|
|
5284
|
+
var AI_CHATBOT_GLYPH_SRC = "data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2220%22%20height%3D%2218%22%20viewBox%3D%220%200%2020%2018%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%3Cpath%20d%3D%22M20%200H0V18H20V0Z%22%20fill%3D%22url%28%23pattern0_2212_10390%29%22%2F%3E%0A%3Cdefs%3E%0A%3Cpattern%20id%3D%22pattern0_2212_10390%22%20patternContentUnits%3D%22objectBoundingBox%22%20width%3D%221%22%20height%3D%221%22%3E%0A%3Cuse%20xlink%3Ahref%3D%22%23image0_2212_10390%22%20transform%3D%22matrix%280.000565931%200%200%200.00059988%20-0.140351%20-0.0231138%29%22%2F%3E%0A%3C%2Fpattern%3E%0A%3Cimage%20id%3D%22image0_2212_10390%22%20width%3D%222240%22%20height%3D%221910%22%20preserveAspectRatio%3D%22none%22%20xlink%3Ahref%3D%22data%3Aimage%2Fwebp%3Bbase64%2CUklGRso9AABXRUJQVlA4WAoAAAAQAAAAvwEAfQEAQUxQSKYSAAABwMD%2FnyHJ3b5V3WffxU5OsW07F9u2bdu2beuSQ2zrOVv7z545XVW%2F12umqmayO1X120eJCFq0rYStLYS3DKCnz9smjSbpP%2F4%2F6yKEkE4RoqXVVmZ5Jqu9lCzPZcuoaTnXbdthsV4rrbb66qv0XrKL%2B1KyFk6qyHLrXdFxlb3Of%2FCd70ZOnVdoY9T86RN%2BHfj01Yest4gdykSLxYNyWXq3q%2FuPKchTjCFP%2Bfvbh49ZNW%2BhOGRezmu9yVWfz6RKUUVRKO0rqihKhbFe0R8P7rUwgDxrUUiWlStb3PGnnau0ITI1Fa1K1h6h4YW9OwOi5ZCeSWCZC34hIlNSxvhy%2F1Fo3J3rVdJbBJXKp3ejJ2cSaVUll6oWf6ioOAbuLcuVFsBpCrDjh0RUaKqtbe1NdUkT%2FXxEDsH7PydyYMsBREZV9zRJqJL%2B20GV3T7jWwG9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vYzFYxxsOkH4DLchR%2B0%2BmsJHek632w87mste%2Fg4ILMhVoTxfIknaw3Ncdw6%2BYEPrZ68WXv4T9Y8QC%2FQ3DstcSCc1Cg%2FqTOmgtE4sJCKpspKdM5ECj8GGrXBzjmxznUVrY%2BvszrbVajMG59DJLdoSS2W6Jd3qiUoRb4Q8qv9PCVvBluEZO4Ryc8f0OFLiTL37ZrwCbV7FhdWHe2wYohHy2XSAqyEmm9%2FPMg0xLAAAwAdt2%2FHiUsxZN%2FnRQUIbyUQS3T7QpGl4HZqXZFywUCG43fy%2FTGjhfHXH%2F8xOp23LnlxDNTZvsKMW50NBg4LjCIonorncrkGgaU%2BxCSNsjT674mkLYwGkMgFuyQ85Mkuz4XKr06OK1bT3oRRIYnvGajO00DwIb%2BUB1J8QgB32aWA65SbioxpfcpaopCL5ZBlYKrlJH%2FstFkvI3QkoUh2Gv0Si9hvoXPkME9X01H%2F%2Fhd0IIAiJYlHvs8AAAAAAAAAAAAAA%3D%3D%22%2F%3E%0A%3C%2Fdefs%3E%0A%3C%2Fsvg%3E%0A";
|
|
5285
|
+
|
|
5286
|
+
// src/components/ai-chatbot-logo.tsx
|
|
5287
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
5288
|
+
function AiChatbotLogo({
|
|
5289
|
+
size = 48,
|
|
5290
|
+
className,
|
|
5291
|
+
logoOnly = false,
|
|
5292
|
+
src = AI_CHATBOT_GLYPH_SRC
|
|
5293
|
+
}) {
|
|
5294
|
+
const uid = React53.useId().replace(/:/g, "");
|
|
5295
|
+
const gradientId = `${uid}-border`;
|
|
5296
|
+
const clipId = `${uid}-clip`;
|
|
5297
|
+
const scale = size / 48;
|
|
5298
|
+
const logoW = Math.round(20 * scale);
|
|
5299
|
+
const logoH = Math.round(18 * scale);
|
|
5300
|
+
const logoX = Math.round(14 * scale);
|
|
5301
|
+
const logoY = Math.round(11 * scale);
|
|
5302
|
+
if (logoOnly) {
|
|
5303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5304
|
+
"img",
|
|
5305
|
+
{
|
|
5306
|
+
src,
|
|
5307
|
+
alt: "AI Assistant",
|
|
5308
|
+
width: logoW,
|
|
5309
|
+
height: logoH,
|
|
5310
|
+
draggable: false,
|
|
5311
|
+
className: cn("block", className)
|
|
5312
|
+
}
|
|
5313
|
+
);
|
|
5314
|
+
}
|
|
5315
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
5316
|
+
"div",
|
|
5317
|
+
{
|
|
5318
|
+
style: {
|
|
5319
|
+
width: size,
|
|
5320
|
+
height: size,
|
|
5321
|
+
filter: "drop-shadow(0px 4px 4px rgba(0,0,0,0.25))"
|
|
5322
|
+
},
|
|
5323
|
+
className: cn("relative shrink-0", className),
|
|
5324
|
+
children: [
|
|
5325
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
5326
|
+
"svg",
|
|
5327
|
+
{
|
|
5328
|
+
width: size,
|
|
5329
|
+
height: size,
|
|
5330
|
+
viewBox: "0 0 48 48",
|
|
5331
|
+
fill: "none",
|
|
5332
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5333
|
+
className: "block",
|
|
5334
|
+
"aria-hidden": true,
|
|
5335
|
+
children: [
|
|
5336
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("defs", { children: [
|
|
5337
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("linearGradient", { id: gradientId, x1: "24", y1: "0", x2: "24", y2: "40", gradientUnits: "userSpaceOnUse", children: [
|
|
5338
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("stop", { stopColor: "#F7D822" }),
|
|
5339
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("stop", { offset: "0.5", stopColor: "#459C73" }),
|
|
5340
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("stop", { offset: "0.75", stopColor: "#1E3ADA" }),
|
|
5341
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("stop", { offset: "0.875", stopColor: "#B018CB" }),
|
|
5342
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("stop", { offset: "1", stopColor: "#F86007" })
|
|
5343
|
+
] }),
|
|
5344
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("clipPath", { id: clipId, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("rect", { x: "4", y: "0", width: "40", height: "40", rx: "20" }) })
|
|
5345
|
+
] }),
|
|
5346
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("g", { clipPath: `url(#${clipId})`, children: [
|
|
5347
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("rect", { x: "4", y: "0", width: "40", height: "40", rx: "20", fill: "white" }),
|
|
5348
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("rect", { x: "4.5", y: "0.5", width: "39", height: "39", rx: "19.5", stroke: `url(#${gradientId})`, strokeWidth: 1, fill: "none" })
|
|
5349
|
+
] })
|
|
5350
|
+
]
|
|
5351
|
+
}
|
|
5352
|
+
),
|
|
5353
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
5354
|
+
"img",
|
|
5355
|
+
{
|
|
5356
|
+
src,
|
|
5357
|
+
alt: "AI Assistant",
|
|
5358
|
+
width: logoW,
|
|
5359
|
+
height: logoH,
|
|
5360
|
+
draggable: false,
|
|
5361
|
+
className: "absolute block",
|
|
5362
|
+
style: { left: logoX, top: logoY }
|
|
5363
|
+
}
|
|
5364
|
+
)
|
|
5365
|
+
]
|
|
5366
|
+
}
|
|
5367
|
+
);
|
|
5368
|
+
}
|
|
5369
|
+
|
|
5370
|
+
// src/components/icon/bell-icon.tsx
|
|
5371
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
5109
5372
|
function BellIcon({
|
|
5110
5373
|
size = 20,
|
|
5111
5374
|
width,
|
|
@@ -5113,7 +5376,7 @@ function BellIcon({
|
|
|
5113
5376
|
fill = "none",
|
|
5114
5377
|
...props
|
|
5115
5378
|
}) {
|
|
5116
|
-
return /* @__PURE__ */ (0,
|
|
5379
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
5117
5380
|
"svg",
|
|
5118
5381
|
{
|
|
5119
5382
|
viewBox: "0 0 20 20",
|
|
@@ -5123,7 +5386,7 @@ function BellIcon({
|
|
|
5123
5386
|
"aria-hidden": "true",
|
|
5124
5387
|
...props,
|
|
5125
5388
|
children: [
|
|
5126
|
-
/* @__PURE__ */ (0,
|
|
5389
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
5127
5390
|
"path",
|
|
5128
5391
|
{
|
|
5129
5392
|
d: "M10 2.75a3.5 3.5 0 0 0-3.5 3.5v1.137c0 .647-.215 1.276-.611 1.788l-.82 1.062A2.25 2.25 0 0 0 6.85 13.75h6.3a2.25 2.25 0 0 0 1.781-3.513l-.82-1.062A2.935 2.935 0 0 1 13.5 7.387V6.25A3.5 3.5 0 0 0 10 2.75Z",
|
|
@@ -5133,7 +5396,7 @@ function BellIcon({
|
|
|
5133
5396
|
strokeLinejoin: "round"
|
|
5134
5397
|
}
|
|
5135
5398
|
),
|
|
5136
|
-
/* @__PURE__ */ (0,
|
|
5399
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
5137
5400
|
"path",
|
|
5138
5401
|
{
|
|
5139
5402
|
d: "M8.25 15.25a1.75 1.75 0 0 0 3.5 0",
|
|
@@ -5149,18 +5412,18 @@ function BellIcon({
|
|
|
5149
5412
|
}
|
|
5150
5413
|
|
|
5151
5414
|
// src/components/icon/icon-info-line-icon.tsx
|
|
5152
|
-
var
|
|
5415
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
5153
5416
|
function IconInfoLineIcon({ size = 16, width, height, fill, title, ...props }) {
|
|
5154
|
-
return /* @__PURE__ */ (0,
|
|
5155
|
-
/* @__PURE__ */ (0,
|
|
5156
|
-
title ? /* @__PURE__ */ (0,
|
|
5417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("svg", { viewBox: "0 0 16 16", width: width ?? size, height: height ?? size, fill: fill ?? "none", "aria-hidden": title ? void 0 : true, role: title ? "img" : "presentation", ...props, children: [
|
|
5418
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("path", { d: "M7.99992 5.33333H8.00525M7.99992 10.6667V7.33333M14.6666 8C14.6666 11.682 11.6819 14.6667 7.99992 14.6667C4.31792 14.6667 1.33325 11.682 1.33325 8C1.33325 4.318 4.31792 1.33333 7.99992 1.33333C11.6819 1.33333 14.6666 4.318 14.6666 8Z", stroke: "black", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
5419
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("title", { children: title }) : null
|
|
5157
5420
|
] });
|
|
5158
5421
|
}
|
|
5159
5422
|
|
|
5160
5423
|
// src/components/sonner.tsx
|
|
5161
5424
|
var import_next_themes = require("next-themes");
|
|
5162
5425
|
var import_sonner = require("sonner");
|
|
5163
|
-
var
|
|
5426
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
5164
5427
|
var TOAST_DURATION_MS = 4e3;
|
|
5165
5428
|
var ERROR_TOAST_MS = 7e3;
|
|
5166
5429
|
var TOKENS = {
|
|
@@ -5186,7 +5449,7 @@ var CLASS_NAMES = {
|
|
|
5186
5449
|
var TOAST_BOTTOM_OFFSET = "calc(16px + env(safe-area-inset-bottom, 0px))";
|
|
5187
5450
|
var Toaster = ({ style, toastOptions, ...props }) => {
|
|
5188
5451
|
const { resolvedTheme, forcedTheme } = (0, import_next_themes.useTheme)();
|
|
5189
|
-
return /* @__PURE__ */ (0,
|
|
5452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
5190
5453
|
import_sonner.Toaster,
|
|
5191
5454
|
{
|
|
5192
5455
|
theme: (forcedTheme ?? resolvedTheme) === "dark" ? "dark" : "light",
|
|
@@ -5224,8 +5487,8 @@ var toast = Object.assign(
|
|
|
5224
5487
|
);
|
|
5225
5488
|
|
|
5226
5489
|
// src/components/typography.tsx
|
|
5227
|
-
var
|
|
5228
|
-
var
|
|
5490
|
+
var React54 = __toESM(require("react"), 1);
|
|
5491
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
5229
5492
|
var weightMap = {
|
|
5230
5493
|
extrabold: "font-extrabold",
|
|
5231
5494
|
bold: "font-bold",
|
|
@@ -5247,44 +5510,44 @@ function resolveColor(color, defaultColorClass) {
|
|
|
5247
5510
|
if (!color || color === "default") return defaultColorClass;
|
|
5248
5511
|
return colorMap[color];
|
|
5249
5512
|
}
|
|
5250
|
-
var H1 =
|
|
5251
|
-
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5513
|
+
var H1 = React54.forwardRef(
|
|
5514
|
+
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("h1", { ref, className: cn("scroll-m-20 text-3xl tracking-tight", resolveColor(color, "text-foreground"), weightMap[weight], className), ...props, children })
|
|
5252
5515
|
);
|
|
5253
5516
|
H1.displayName = "H1";
|
|
5254
|
-
var H2 =
|
|
5255
|
-
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5517
|
+
var H2 = React54.forwardRef(
|
|
5518
|
+
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("h2", { ref, className: cn("scroll-m-20 text-2xl tracking-tight", resolveColor(color, "text-foreground"), weightMap[weight], className), ...props, children })
|
|
5256
5519
|
);
|
|
5257
5520
|
H2.displayName = "H2";
|
|
5258
|
-
var H3 =
|
|
5259
|
-
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5521
|
+
var H3 = React54.forwardRef(
|
|
5522
|
+
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("h3", { ref, className: cn("scroll-m-20 text-xl tracking-tight", resolveColor(color, "text-foreground"), weightMap[weight], className), ...props, children })
|
|
5260
5523
|
);
|
|
5261
5524
|
H3.displayName = "H3";
|
|
5262
|
-
var H4 =
|
|
5263
|
-
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5525
|
+
var H4 = React54.forwardRef(
|
|
5526
|
+
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("h4", { ref, className: cn("scroll-m-20 text-lg tracking-tight", resolveColor(color, "text-foreground"), weightMap[weight], className), ...props, children })
|
|
5264
5527
|
);
|
|
5265
5528
|
H4.displayName = "H4";
|
|
5266
|
-
var Body =
|
|
5267
|
-
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5529
|
+
var Body = React54.forwardRef(
|
|
5530
|
+
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { ref, className: cn("text-base leading-7", resolveColor(color, "text-foreground"), weightMap[weight], className), ...props })
|
|
5268
5531
|
);
|
|
5269
5532
|
Body.displayName = "Body";
|
|
5270
|
-
var Small =
|
|
5271
|
-
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5533
|
+
var Small = React54.forwardRef(
|
|
5534
|
+
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { ref, className: cn("text-sm", resolveColor(color, "text-muted-foreground"), weightMap[weight], className), ...props })
|
|
5272
5535
|
);
|
|
5273
5536
|
Small.displayName = "Small";
|
|
5274
|
-
var Caption =
|
|
5275
|
-
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5537
|
+
var Caption = React54.forwardRef(
|
|
5538
|
+
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { ref, className: cn("text-xs", resolveColor(color, "text-muted-foreground"), weightMap[weight], className), ...props })
|
|
5276
5539
|
);
|
|
5277
5540
|
Caption.displayName = "Caption";
|
|
5278
|
-
var Lead =
|
|
5279
|
-
({ className, weight = "medium", color, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5541
|
+
var Lead = React54.forwardRef(
|
|
5542
|
+
({ className, weight = "medium", color, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { ref, className: cn("text-lg", resolveColor(color, "text-foreground"), weightMap[weight], className), ...props })
|
|
5280
5543
|
);
|
|
5281
5544
|
Lead.displayName = "Lead";
|
|
5282
|
-
var Muted =
|
|
5283
|
-
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5545
|
+
var Muted = React54.forwardRef(
|
|
5546
|
+
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { ref, className: cn("text-sm", resolveColor(color, "text-muted-foreground"), weightMap[weight], className), ...props })
|
|
5284
5547
|
);
|
|
5285
5548
|
Muted.displayName = "Muted";
|
|
5286
|
-
var Code =
|
|
5287
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5549
|
+
var Code = React54.forwardRef(
|
|
5550
|
+
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
5288
5551
|
"code",
|
|
5289
5552
|
{
|
|
5290
5553
|
ref,
|
|
@@ -5301,14 +5564,14 @@ Code.displayName = "Code";
|
|
|
5301
5564
|
// src/components/theme-provider.tsx
|
|
5302
5565
|
var import_next_themes2 = require("next-themes");
|
|
5303
5566
|
var import_next_themes3 = require("next-themes");
|
|
5304
|
-
var
|
|
5567
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
5305
5568
|
function ThemeProvider({ children, ...props }) {
|
|
5306
|
-
return /* @__PURE__ */ (0,
|
|
5569
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_next_themes2.ThemeProvider, { ...props, children });
|
|
5307
5570
|
}
|
|
5308
5571
|
|
|
5309
5572
|
// src/components/banner.tsx
|
|
5310
|
-
var
|
|
5311
|
-
var
|
|
5573
|
+
var React55 = __toESM(require("react"), 1);
|
|
5574
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
5312
5575
|
var variantStyles = {
|
|
5313
5576
|
primary: "bg-[var(--hc-banner-primary-bg)] border border-[var(--hc-primary-200)]",
|
|
5314
5577
|
muted: "bg-[var(--hc-color-muted)] border border-[var(--hc-color-border)]",
|
|
@@ -5323,23 +5586,23 @@ var iconBgStyles = {
|
|
|
5323
5586
|
warning: "bg-[var(--hc-color-warning)]",
|
|
5324
5587
|
destructive: "bg-[var(--hc-color-destructive)]"
|
|
5325
5588
|
};
|
|
5326
|
-
var Banner =
|
|
5327
|
-
({ variant = "primary", icon, title, description, action, className, children, ...props }, ref) => /* @__PURE__ */ (0,
|
|
5589
|
+
var Banner = React55.forwardRef(
|
|
5590
|
+
({ variant = "primary", icon, title, description, action, className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
5328
5591
|
"div",
|
|
5329
5592
|
{
|
|
5330
5593
|
ref,
|
|
5331
5594
|
className: cn("rounded-lg px-6 py-5", variantStyles[variant], className),
|
|
5332
5595
|
...props,
|
|
5333
|
-
children: /* @__PURE__ */ (0,
|
|
5334
|
-
/* @__PURE__ */ (0,
|
|
5335
|
-
icon && /* @__PURE__ */ (0,
|
|
5336
|
-
/* @__PURE__ */ (0,
|
|
5337
|
-
title && /* @__PURE__ */ (0,
|
|
5338
|
-
description && /* @__PURE__ */ (0,
|
|
5596
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4", children: [
|
|
5597
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex items-center gap-3", children: [
|
|
5598
|
+
icon && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: cn("h-10 w-10 rounded-full flex items-center justify-center shrink-0 text-white", iconBgStyles[variant]), children: icon }),
|
|
5599
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { children: [
|
|
5600
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "text-sm font-bold text-foreground", children: title }),
|
|
5601
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: "text-xs mt-0.5 text-muted-foreground", children: description }),
|
|
5339
5602
|
children
|
|
5340
5603
|
] })
|
|
5341
5604
|
] }),
|
|
5342
|
-
action && /* @__PURE__ */ (0,
|
|
5605
|
+
action && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "shrink-0", children: action })
|
|
5343
5606
|
] })
|
|
5344
5607
|
}
|
|
5345
5608
|
)
|
|
@@ -5347,8 +5610,8 @@ var Banner = React53.forwardRef(
|
|
|
5347
5610
|
Banner.displayName = "Banner";
|
|
5348
5611
|
|
|
5349
5612
|
// src/components/impersonation-banner.tsx
|
|
5350
|
-
var
|
|
5351
|
-
var
|
|
5613
|
+
var React56 = __toESM(require("react"), 1);
|
|
5614
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
5352
5615
|
function toMs(value) {
|
|
5353
5616
|
if (value instanceof Date) return value.getTime();
|
|
5354
5617
|
if (typeof value === "number") return value;
|
|
@@ -5363,21 +5626,21 @@ function formatRemaining(ms) {
|
|
|
5363
5626
|
const pad = (n) => String(n).padStart(2, "0");
|
|
5364
5627
|
return h > 0 ? `${h}:${pad(m)}:${pad(s)}` : `${m}:${pad(s)}`;
|
|
5365
5628
|
}
|
|
5366
|
-
var ImpersonationBanner =
|
|
5629
|
+
var ImpersonationBanner = React56.forwardRef(
|
|
5367
5630
|
({ actorLabel, mode, expiresAt, onExit, targetLabel, ops, inline = false, onExpire, className }, ref) => {
|
|
5368
5631
|
const endMs = toMs(expiresAt);
|
|
5369
|
-
const [now, setNow] =
|
|
5632
|
+
const [now, setNow] = React56.useState(() => Date.now());
|
|
5370
5633
|
const remaining = endMs - now;
|
|
5371
5634
|
const expired = remaining <= 0;
|
|
5372
|
-
const onExpireRef =
|
|
5635
|
+
const onExpireRef = React56.useRef(onExpire);
|
|
5373
5636
|
onExpireRef.current = onExpire;
|
|
5374
|
-
|
|
5637
|
+
React56.useEffect(() => {
|
|
5375
5638
|
if (expired) return void 0;
|
|
5376
5639
|
const timer = setInterval(() => setNow(Date.now()), 1e3);
|
|
5377
5640
|
return () => clearInterval(timer);
|
|
5378
5641
|
}, [expired]);
|
|
5379
|
-
const firedFor =
|
|
5380
|
-
|
|
5642
|
+
const firedFor = React56.useRef(null);
|
|
5643
|
+
React56.useEffect(() => {
|
|
5381
5644
|
if (expired && firedFor.current !== endMs) {
|
|
5382
5645
|
firedFor.current = endMs;
|
|
5383
5646
|
onExpireRef.current?.();
|
|
@@ -5386,9 +5649,9 @@ var ImpersonationBanner = React54.forwardRef(
|
|
|
5386
5649
|
const isRead = mode === "READ";
|
|
5387
5650
|
const modeText = isRead ? "Read-only" : "Changes allowed";
|
|
5388
5651
|
const opsText = ops && ops.length > 0 ? ops.join(", ") : null;
|
|
5389
|
-
return /* @__PURE__ */ (0,
|
|
5390
|
-
inline ? null : /* @__PURE__ */ (0,
|
|
5391
|
-
/* @__PURE__ */ (0,
|
|
5652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
5653
|
+
inline ? null : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { "aria-hidden": "true", className: "h-12", "data-impersonation-spacer": "" }),
|
|
5654
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
5392
5655
|
"div",
|
|
5393
5656
|
{
|
|
5394
5657
|
ref,
|
|
@@ -5402,19 +5665,19 @@ var ImpersonationBanner = React54.forwardRef(
|
|
|
5402
5665
|
className
|
|
5403
5666
|
),
|
|
5404
5667
|
children: [
|
|
5405
|
-
/* @__PURE__ */ (0,
|
|
5406
|
-
/* @__PURE__ */ (0,
|
|
5407
|
-
/* @__PURE__ */ (0,
|
|
5408
|
-
targetLabel ? /* @__PURE__ */ (0,
|
|
5668
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "shrink-0 rounded px-2 py-0.5 text-xs font-bold uppercase tracking-wide ring-1 ring-current", children: "Support session" }),
|
|
5669
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("p", { className: "min-w-0 flex-1 truncate", children: [
|
|
5670
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "font-semibold", children: actorLabel }),
|
|
5671
|
+
targetLabel ? /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
5409
5672
|
" is acting as ",
|
|
5410
|
-
/* @__PURE__ */ (0,
|
|
5673
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "font-semibold", children: targetLabel })
|
|
5411
5674
|
] }) : " is acting as this user",
|
|
5412
5675
|
" \xB7 ",
|
|
5413
|
-
/* @__PURE__ */ (0,
|
|
5414
|
-
opsText ? /* @__PURE__ */ (0,
|
|
5676
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { "data-testid": "impersonation-mode", children: modeText }),
|
|
5677
|
+
opsText ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "hidden sm:inline", children: ` (${opsText})` }) : null
|
|
5415
5678
|
] }),
|
|
5416
|
-
/* @__PURE__ */ (0,
|
|
5417
|
-
/* @__PURE__ */ (0,
|
|
5679
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("span", { className: "shrink-0 tabular-nums", "aria-live": "off", title: "Time left in this support session", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("time", { "data-testid": "impersonation-countdown", dateTime: new Date(endMs).toISOString(), children: expired ? "Expired" : formatRemaining(remaining) }) }),
|
|
5680
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
5418
5681
|
"button",
|
|
5419
5682
|
{
|
|
5420
5683
|
type: "button",
|
|
@@ -5435,20 +5698,20 @@ var ImpersonationBanner = React54.forwardRef(
|
|
|
5435
5698
|
ImpersonationBanner.displayName = "ImpersonationBanner";
|
|
5436
5699
|
|
|
5437
5700
|
// src/components/read-only-guard.tsx
|
|
5438
|
-
var
|
|
5701
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
5439
5702
|
var READ_ONLY_REASON = "Read-only support session: this action is turned off.";
|
|
5440
5703
|
function isGuarded({ mode, ops, op = "WRITE" }) {
|
|
5441
5704
|
if (ops) return !ops.includes(op);
|
|
5442
5705
|
return mode === "READ";
|
|
5443
5706
|
}
|
|
5444
5707
|
function ReadOnlyGuard({ mode, ops, op = "WRITE", reason = READ_ONLY_REASON, className, children }) {
|
|
5445
|
-
if (!isGuarded({ mode, ops, op })) return /* @__PURE__ */ (0,
|
|
5708
|
+
if (!isGuarded({ mode, ops, op })) return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children });
|
|
5446
5709
|
const swallow = (e) => {
|
|
5447
5710
|
e.preventDefault();
|
|
5448
5711
|
e.stopPropagation();
|
|
5449
5712
|
};
|
|
5450
|
-
return /* @__PURE__ */ (0,
|
|
5451
|
-
/* @__PURE__ */ (0,
|
|
5713
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(TooltipProvider, { delayDuration: 150, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(Tooltip, { children: [
|
|
5714
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
5452
5715
|
"span",
|
|
5453
5716
|
{
|
|
5454
5717
|
tabIndex: 0,
|
|
@@ -5457,16 +5720,16 @@ function ReadOnlyGuard({ mode, ops, op = "WRITE", reason = READ_ONLY_REASON, cla
|
|
|
5457
5720
|
className: cn("inline-flex cursor-not-allowed", className),
|
|
5458
5721
|
onClickCapture: swallow,
|
|
5459
5722
|
onSubmitCapture: swallow,
|
|
5460
|
-
children: /* @__PURE__ */ (0,
|
|
5723
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("fieldset", { disabled: true, className: "contents", children })
|
|
5461
5724
|
}
|
|
5462
5725
|
) }),
|
|
5463
|
-
/* @__PURE__ */ (0,
|
|
5726
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(TooltipContent, { children: reason })
|
|
5464
5727
|
] }) });
|
|
5465
5728
|
}
|
|
5466
5729
|
ReadOnlyGuard.displayName = "ReadOnlyGuard";
|
|
5467
5730
|
|
|
5468
5731
|
// src/lib/impersonation.ts
|
|
5469
|
-
var
|
|
5732
|
+
var React57 = __toESM(require("react"), 1);
|
|
5470
5733
|
var OPERATION_CLASSES = ["READ", "WRITE", "DESTRUCTIVE", "FINANCIAL", "SECURITY"];
|
|
5471
5734
|
var PLATFORM_BLOCKED = /* @__PURE__ */ new Set(["FINANCIAL", "SECURITY"]);
|
|
5472
5735
|
var INACTIVE_IMPERSONATION = Object.freeze({
|
|
@@ -5530,10 +5793,10 @@ function readImpersonation(token, now = Date.now()) {
|
|
|
5530
5793
|
};
|
|
5531
5794
|
}
|
|
5532
5795
|
function useImpersonation(token) {
|
|
5533
|
-
const [tick, setTick] =
|
|
5534
|
-
const state =
|
|
5796
|
+
const [tick, setTick] = React57.useState(0);
|
|
5797
|
+
const state = React57.useMemo(() => readImpersonation(token), [token, tick]);
|
|
5535
5798
|
const expiresAtMs = state.expiresAt?.getTime() ?? null;
|
|
5536
|
-
|
|
5799
|
+
React57.useEffect(() => {
|
|
5537
5800
|
if (expiresAtMs === null) return void 0;
|
|
5538
5801
|
const delay = Math.max(0, expiresAtMs - Date.now());
|
|
5539
5802
|
const timer = setTimeout(() => setTick((t) => t + 1), Math.min(delay + 50, 2147e6));
|
|
@@ -5541,12 +5804,323 @@ function useImpersonation(token) {
|
|
|
5541
5804
|
}, [expiresAtMs]);
|
|
5542
5805
|
return state;
|
|
5543
5806
|
}
|
|
5807
|
+
|
|
5808
|
+
// src/components/help-widget/help-widget.tsx
|
|
5809
|
+
var React61 = __toESM(require("react"), 1);
|
|
5810
|
+
|
|
5811
|
+
// src/components/help-widget/consent-dialog.tsx
|
|
5812
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
5813
|
+
function ConsentDialog({ open, onAllow, onDeny }) {
|
|
5814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(AlertDialog, { open, children: /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(AlertDialogContent, { size: "sm", children: [
|
|
5815
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(AlertDialogHeader, { children: [
|
|
5816
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(AlertDialogTitle, { children: "Start a support session?" }),
|
|
5817
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(AlertDialogDescription, { children: "An AI assistant will see this page and may be recorded (chat and voice). A human can join for anything it cannot resolve. You can stop the session at any time." })
|
|
5818
|
+
] }),
|
|
5819
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(AlertDialogFooter, { children: [
|
|
5820
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(AlertDialogCancel, { onClick: onDeny, children: "Deny" }),
|
|
5821
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(AlertDialogAction, { onClick: onAllow, children: "Allow" })
|
|
5822
|
+
] })
|
|
5823
|
+
] }) });
|
|
5824
|
+
}
|
|
5825
|
+
|
|
5826
|
+
// src/components/help-widget/help-session-banner.tsx
|
|
5827
|
+
var React58 = __toESM(require("react"), 1);
|
|
5828
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
5829
|
+
var HelpSessionBanner = React58.forwardRef(
|
|
5830
|
+
({ onRevoke, className }, ref) => {
|
|
5831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_jsx_runtime68.Fragment, { children: [
|
|
5832
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { "aria-hidden": "true", className: "h-12", "data-help-session-spacer": "" }),
|
|
5833
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(
|
|
5834
|
+
"div",
|
|
5835
|
+
{
|
|
5836
|
+
ref,
|
|
5837
|
+
role: "status",
|
|
5838
|
+
"data-help-session-banner": "",
|
|
5839
|
+
className: cn(
|
|
5840
|
+
"fixed inset-x-0 top-0 z-[2147483000]",
|
|
5841
|
+
"flex h-12 items-center gap-3 border-b-2 border-border bg-primary px-4 text-sm font-medium text-primary-foreground shadow-md",
|
|
5842
|
+
className
|
|
5843
|
+
),
|
|
5844
|
+
children: [
|
|
5845
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "shrink-0 rounded px-2 py-0.5 text-xs font-bold uppercase tracking-wide ring-1 ring-current", children: "Support session" }),
|
|
5846
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "min-w-0 flex-1 truncate", children: "AI support is active on this page and may be recorded." }),
|
|
5847
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
5848
|
+
"button",
|
|
5849
|
+
{
|
|
5850
|
+
type: "button",
|
|
5851
|
+
onClick: onRevoke,
|
|
5852
|
+
className: "shrink-0 rounded-md bg-background px-3 py-1 text-sm font-semibold text-foreground hover:bg-background/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
5853
|
+
children: "Stop"
|
|
5854
|
+
}
|
|
5855
|
+
)
|
|
5856
|
+
]
|
|
5857
|
+
}
|
|
5858
|
+
)
|
|
5859
|
+
] });
|
|
5860
|
+
}
|
|
5861
|
+
);
|
|
5862
|
+
HelpSessionBanner.displayName = "HelpSessionBanner";
|
|
5863
|
+
|
|
5864
|
+
// src/components/help-widget/highlight-overlay.tsx
|
|
5865
|
+
var React59 = __toESM(require("react"), 1);
|
|
5866
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
5867
|
+
function findTarget({ selector, role, name }) {
|
|
5868
|
+
if (selector) return document.querySelector(selector);
|
|
5869
|
+
if (role) {
|
|
5870
|
+
const candidates = document.querySelectorAll(`[role="${role}"]`);
|
|
5871
|
+
for (const el of candidates) {
|
|
5872
|
+
const accessibleName = el.getAttribute("aria-label") ?? el.textContent?.trim() ?? "";
|
|
5873
|
+
if (!name || accessibleName.includes(name)) return el;
|
|
5874
|
+
}
|
|
5875
|
+
}
|
|
5876
|
+
return null;
|
|
5877
|
+
}
|
|
5878
|
+
function HighlightOverlay({ target, onDismiss }) {
|
|
5879
|
+
const [rect, setRect] = React59.useState(null);
|
|
5880
|
+
React59.useEffect(() => {
|
|
5881
|
+
if (!target) {
|
|
5882
|
+
setRect(null);
|
|
5883
|
+
onDismiss?.();
|
|
5884
|
+
return;
|
|
5885
|
+
}
|
|
5886
|
+
const el = findTarget(target);
|
|
5887
|
+
setRect(el ? el.getBoundingClientRect() : null);
|
|
5888
|
+
}, [target, onDismiss]);
|
|
5889
|
+
if (!target || !rect) return null;
|
|
5890
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
5891
|
+
"div",
|
|
5892
|
+
{
|
|
5893
|
+
"data-help-widget-highlight": "",
|
|
5894
|
+
role: "presentation",
|
|
5895
|
+
"aria-hidden": "true",
|
|
5896
|
+
style: {
|
|
5897
|
+
position: "fixed",
|
|
5898
|
+
left: rect.left - 4,
|
|
5899
|
+
top: rect.top - 4,
|
|
5900
|
+
width: rect.width + 8,
|
|
5901
|
+
height: rect.height + 8,
|
|
5902
|
+
pointerEvents: "none",
|
|
5903
|
+
zIndex: 2147483e3
|
|
5904
|
+
},
|
|
5905
|
+
className: "rounded-md ring-2 ring-primary ring-offset-2"
|
|
5906
|
+
}
|
|
5907
|
+
);
|
|
5908
|
+
}
|
|
5909
|
+
|
|
5910
|
+
// src/components/help-widget/use-help-session.ts
|
|
5911
|
+
var React60 = __toESM(require("react"), 1);
|
|
5912
|
+
function defaultCreateSession(baseUrl) {
|
|
5913
|
+
return async (request) => {
|
|
5914
|
+
const res = await fetch(`${baseUrl}/support/ai/session`, {
|
|
5915
|
+
method: "POST",
|
|
5916
|
+
headers: { "Content-Type": "application/json" },
|
|
5917
|
+
body: JSON.stringify(request)
|
|
5918
|
+
});
|
|
5919
|
+
if (!res.ok) throw new Error(`support/ai/session failed: ${res.status}`);
|
|
5920
|
+
return await res.json();
|
|
5921
|
+
};
|
|
5922
|
+
}
|
|
5923
|
+
async function defaultConnectRoom(session) {
|
|
5924
|
+
const { Room } = await import("livekit-client");
|
|
5925
|
+
const room = new Room();
|
|
5926
|
+
await room.connect(session.url, session.token);
|
|
5927
|
+
return { disconnect: () => room.disconnect() };
|
|
5928
|
+
}
|
|
5929
|
+
function useHelpSession({
|
|
5930
|
+
appId,
|
|
5931
|
+
route,
|
|
5932
|
+
createSession,
|
|
5933
|
+
connectRoom = defaultConnectRoom,
|
|
5934
|
+
baseUrl = ""
|
|
5935
|
+
}) {
|
|
5936
|
+
const [status, setStatus] = React60.useState("idle");
|
|
5937
|
+
const [language, setLanguage] = React60.useState("en");
|
|
5938
|
+
const connectionRef = React60.useRef(null);
|
|
5939
|
+
const createSessionRef = React60.useRef(createSession ?? defaultCreateSession(baseUrl));
|
|
5940
|
+
createSessionRef.current = createSession ?? defaultCreateSession(baseUrl);
|
|
5941
|
+
const requestSession = React60.useCallback(() => setStatus("consent-pending"), []);
|
|
5942
|
+
const deny = React60.useCallback(() => setStatus("idle"), []);
|
|
5943
|
+
const allow = React60.useCallback(async () => {
|
|
5944
|
+
const session = await createSessionRef.current({ appId, language, route });
|
|
5945
|
+
connectionRef.current = await connectRoom(session);
|
|
5946
|
+
setStatus("active");
|
|
5947
|
+
}, [appId, language, route, connectRoom]);
|
|
5948
|
+
const stop = React60.useCallback(() => {
|
|
5949
|
+
connectionRef.current?.disconnect();
|
|
5950
|
+
connectionRef.current = null;
|
|
5951
|
+
setStatus("idle");
|
|
5952
|
+
}, []);
|
|
5953
|
+
React60.useEffect(() => () => connectionRef.current?.disconnect(), []);
|
|
5954
|
+
return { status, language, setLanguage, requestSession, allow, deny, stop };
|
|
5955
|
+
}
|
|
5956
|
+
|
|
5957
|
+
// src/components/help-widget/help-widget.tsx
|
|
5958
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
5959
|
+
var LANGUAGE_LABELS = {
|
|
5960
|
+
en: "English",
|
|
5961
|
+
hi: "Hindi",
|
|
5962
|
+
mr: "Marathi"
|
|
5963
|
+
};
|
|
5964
|
+
function HelpWidget({
|
|
5965
|
+
appId,
|
|
5966
|
+
route,
|
|
5967
|
+
defaultLanguage = "en",
|
|
5968
|
+
createSession,
|
|
5969
|
+
connectRoom,
|
|
5970
|
+
baseUrl,
|
|
5971
|
+
highlightTarget = null,
|
|
5972
|
+
className
|
|
5973
|
+
}) {
|
|
5974
|
+
const [open, setOpen] = React61.useState(false);
|
|
5975
|
+
const { status, language, setLanguage, requestSession, allow, deny, stop } = useHelpSession({
|
|
5976
|
+
appId,
|
|
5977
|
+
route,
|
|
5978
|
+
createSession,
|
|
5979
|
+
connectRoom,
|
|
5980
|
+
baseUrl
|
|
5981
|
+
});
|
|
5982
|
+
React61.useEffect(() => {
|
|
5983
|
+
setLanguage(defaultLanguage);
|
|
5984
|
+
}, []);
|
|
5985
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: cn("relative", className), "data-help-widget": "", children: [
|
|
5986
|
+
status === "active" ? /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(HelpSessionBanner, { onRevoke: stop }) : null,
|
|
5987
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(HighlightOverlay, { target: status === "active" ? highlightTarget : null }),
|
|
5988
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
5989
|
+
"button",
|
|
5990
|
+
{
|
|
5991
|
+
type: "button",
|
|
5992
|
+
"aria-haspopup": "dialog",
|
|
5993
|
+
"aria-expanded": open,
|
|
5994
|
+
onClick: () => {
|
|
5995
|
+
setOpen(true);
|
|
5996
|
+
if (status === "idle") requestSession();
|
|
5997
|
+
},
|
|
5998
|
+
className: "fixed bottom-6 end-6 z-[2147482999] rounded-full bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground shadow-lg hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
5999
|
+
children: "Help"
|
|
6000
|
+
}
|
|
6001
|
+
),
|
|
6002
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6003
|
+
ConsentDialog,
|
|
6004
|
+
{
|
|
6005
|
+
open: open && status === "consent-pending",
|
|
6006
|
+
onAllow: () => {
|
|
6007
|
+
void allow();
|
|
6008
|
+
},
|
|
6009
|
+
onDeny: () => {
|
|
6010
|
+
deny();
|
|
6011
|
+
setOpen(false);
|
|
6012
|
+
}
|
|
6013
|
+
}
|
|
6014
|
+
),
|
|
6015
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
6016
|
+
"div",
|
|
6017
|
+
{
|
|
6018
|
+
role: "dialog",
|
|
6019
|
+
"aria-label": "Help chat",
|
|
6020
|
+
"data-help-widget-panel": "",
|
|
6021
|
+
className: "fixed bottom-20 end-6 z-[2147482999] flex h-96 w-80 flex-col gap-3 rounded-lg border border-border bg-popover p-4 text-popover-foreground shadow-xl",
|
|
6022
|
+
children: [
|
|
6023
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
|
|
6024
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("label", { htmlFor: "help-widget-language", className: "text-xs font-medium text-muted-foreground", children: "Language" }),
|
|
6025
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6026
|
+
"select",
|
|
6027
|
+
{
|
|
6028
|
+
id: "help-widget-language",
|
|
6029
|
+
value: language,
|
|
6030
|
+
onChange: (e) => setLanguage(e.target.value),
|
|
6031
|
+
className: "rounded border border-border bg-background px-2 py-1 text-xs",
|
|
6032
|
+
children: Object.entries(LANGUAGE_LABELS).map(([value, label]) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("option", { value, children: label }, value))
|
|
6033
|
+
}
|
|
6034
|
+
)
|
|
6035
|
+
] }),
|
|
6036
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)("div", { "data-help-widget-chat": "", className: "flex-1 overflow-y-auto text-sm text-muted-foreground", children: status === "active" ? "Chat and voice are active." : "Waiting for consent." }),
|
|
6037
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
6038
|
+
"button",
|
|
6039
|
+
{
|
|
6040
|
+
type: "button",
|
|
6041
|
+
onClick: () => setOpen(false),
|
|
6042
|
+
className: "self-end rounded-md px-3 py-1 text-sm font-medium text-muted-foreground hover:text-foreground",
|
|
6043
|
+
children: "Close"
|
|
6044
|
+
}
|
|
6045
|
+
)
|
|
6046
|
+
]
|
|
6047
|
+
}
|
|
6048
|
+
) : null
|
|
6049
|
+
] });
|
|
6050
|
+
}
|
|
6051
|
+
|
|
6052
|
+
// src/lib/app-ids.ts
|
|
6053
|
+
var SUPPORT_APP_IDS = [
|
|
6054
|
+
"bill",
|
|
6055
|
+
"books",
|
|
6056
|
+
"contract",
|
|
6057
|
+
"crm",
|
|
6058
|
+
"hear",
|
|
6059
|
+
"hire",
|
|
6060
|
+
"interviewer",
|
|
6061
|
+
"itam",
|
|
6062
|
+
"itom",
|
|
6063
|
+
"itsm",
|
|
6064
|
+
"mobile",
|
|
6065
|
+
"notes",
|
|
6066
|
+
"pay",
|
|
6067
|
+
"people",
|
|
6068
|
+
"procure",
|
|
6069
|
+
"projects",
|
|
6070
|
+
"sign",
|
|
6071
|
+
"space",
|
|
6072
|
+
"spend",
|
|
6073
|
+
"transcribe",
|
|
6074
|
+
"workspace"
|
|
6075
|
+
];
|
|
6076
|
+
function isSupportAppId(value) {
|
|
6077
|
+
return typeof value === "string" && SUPPORT_APP_IDS.includes(value);
|
|
6078
|
+
}
|
|
6079
|
+
|
|
6080
|
+
// src/lib/mask-snapshot.ts
|
|
6081
|
+
var MASK = "[masked]";
|
|
6082
|
+
var PATTERNS = [
|
|
6083
|
+
// PAN: AAAAA9999A
|
|
6084
|
+
/\b[A-Z]{5}[0-9]{4}[A-Z]\b/g,
|
|
6085
|
+
// Aadhaar: 12 digits, optionally grouped as 4-4-4 with spaces or hyphens
|
|
6086
|
+
/\b\d{4}[\s-]?\d{4}[\s-]?\d{4}\b/g,
|
|
6087
|
+
// IFSC: AAAA0999999
|
|
6088
|
+
/\b[A-Z]{4}0[A-Z0-9]{6}\b/g,
|
|
6089
|
+
// Bare bank account numbers: 9 to 18 digits not already matched as Aadhaar above
|
|
6090
|
+
/\b\d{9,18}\b/g
|
|
6091
|
+
];
|
|
6092
|
+
function redactText(text) {
|
|
6093
|
+
return PATTERNS.reduce((acc, pattern) => acc.replace(pattern, MASK), text);
|
|
6094
|
+
}
|
|
6095
|
+
function maskControls(root) {
|
|
6096
|
+
const controls = root.querySelectorAll(
|
|
6097
|
+
"input, textarea, select"
|
|
6098
|
+
);
|
|
6099
|
+
controls.forEach((el) => {
|
|
6100
|
+
if ("value" in el) el.setAttribute("data-help-widget-masked-value", MASK);
|
|
6101
|
+
});
|
|
6102
|
+
}
|
|
6103
|
+
function maskSnapshot(root = document.body) {
|
|
6104
|
+
const clone = root.cloneNode(true);
|
|
6105
|
+
const container = clone instanceof Document ? clone.body : clone;
|
|
6106
|
+
maskControls(container);
|
|
6107
|
+
const controls = container.querySelectorAll(
|
|
6108
|
+
"input, textarea, select"
|
|
6109
|
+
);
|
|
6110
|
+
controls.forEach((el) => {
|
|
6111
|
+
const replacement = container.ownerDocument?.createTextNode(MASK) ?? document.createTextNode(MASK);
|
|
6112
|
+
el.replaceWith(replacement);
|
|
6113
|
+
});
|
|
6114
|
+
const text = container.textContent ?? "";
|
|
6115
|
+
return redactText(text);
|
|
6116
|
+
}
|
|
5544
6117
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5545
6118
|
0 && (module.exports = {
|
|
5546
6119
|
Accordion,
|
|
5547
6120
|
AccordionContent,
|
|
5548
6121
|
AccordionItem,
|
|
5549
6122
|
AccordionTrigger,
|
|
6123
|
+
AiChatbotLogo,
|
|
5550
6124
|
Alert,
|
|
5551
6125
|
AlertAction,
|
|
5552
6126
|
AlertDescription,
|
|
@@ -5564,6 +6138,7 @@ function useImpersonation(token) {
|
|
|
5564
6138
|
AlertDialogTrigger,
|
|
5565
6139
|
AlertTitle,
|
|
5566
6140
|
AppHeader,
|
|
6141
|
+
AppLauncher,
|
|
5567
6142
|
AspectRatio,
|
|
5568
6143
|
Avatar,
|
|
5569
6144
|
AvatarFallback,
|
|
@@ -5616,6 +6191,7 @@ function useImpersonation(token) {
|
|
|
5616
6191
|
CommandList,
|
|
5617
6192
|
CommandSeparator,
|
|
5618
6193
|
CommandShortcut,
|
|
6194
|
+
ConsentDialog,
|
|
5619
6195
|
ContextMenu,
|
|
5620
6196
|
ContextMenuCheckboxItem,
|
|
5621
6197
|
ContextMenuContent,
|
|
@@ -5686,6 +6262,9 @@ function useImpersonation(token) {
|
|
|
5686
6262
|
H2,
|
|
5687
6263
|
H3,
|
|
5688
6264
|
H4,
|
|
6265
|
+
HelpSessionBanner,
|
|
6266
|
+
HelpWidget,
|
|
6267
|
+
HighlightOverlay,
|
|
5689
6268
|
HoverCard,
|
|
5690
6269
|
HoverCardContent,
|
|
5691
6270
|
HoverCardTrigger,
|
|
@@ -5753,6 +6332,7 @@ function useImpersonation(token) {
|
|
|
5753
6332
|
ResizableHandle,
|
|
5754
6333
|
ResizablePanel,
|
|
5755
6334
|
ResizablePanelGroup,
|
|
6335
|
+
SUPPORT_APP_IDS,
|
|
5756
6336
|
ScrollArea,
|
|
5757
6337
|
ScrollBar,
|
|
5758
6338
|
Select,
|
|
@@ -5832,6 +6412,8 @@ function useImpersonation(token) {
|
|
|
5832
6412
|
formatRemaining,
|
|
5833
6413
|
inputVariants,
|
|
5834
6414
|
isGuarded,
|
|
6415
|
+
isSupportAppId,
|
|
6416
|
+
maskSnapshot,
|
|
5835
6417
|
modeOfOps,
|
|
5836
6418
|
navigationMenuTriggerStyle,
|
|
5837
6419
|
readImpersonation,
|
|
@@ -5840,6 +6422,7 @@ function useImpersonation(token) {
|
|
|
5840
6422
|
toast,
|
|
5841
6423
|
toggleVariants,
|
|
5842
6424
|
useFormField,
|
|
6425
|
+
useHelpSession,
|
|
5843
6426
|
useImpersonation,
|
|
5844
6427
|
useSidebar,
|
|
5845
6428
|
useTheme
|