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.js
CHANGED
|
@@ -3680,8 +3680,14 @@ PaginationInfo.displayName = "PaginationInfo";
|
|
|
3680
3680
|
|
|
3681
3681
|
// src/components/calendar.tsx
|
|
3682
3682
|
import { DayPicker } from "react-day-picker";
|
|
3683
|
-
import { ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight6 } from "lucide-react";
|
|
3684
|
-
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
3683
|
+
import { ChevronDown as ChevronDown4, ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight6 } from "lucide-react";
|
|
3684
|
+
import { Fragment as Fragment2, jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
3685
|
+
function CalendarSelect({ children, ...selectProps }) {
|
|
3686
|
+
return /* @__PURE__ */ jsxs32(Fragment2, { children: [
|
|
3687
|
+
/* @__PURE__ */ jsx48("select", { ...selectProps, children }),
|
|
3688
|
+
/* @__PURE__ */ jsx48(ChevronDown4, { "aria-hidden": "true", className: "pointer-events-none absolute end-2 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground" })
|
|
3689
|
+
] });
|
|
3690
|
+
}
|
|
3685
3691
|
var DEFAULT_YEARS_BACK = 10;
|
|
3686
3692
|
var DEFAULT_YEARS_FORWARD = 10;
|
|
3687
3693
|
function Calendar({
|
|
@@ -3704,16 +3710,16 @@ function Calendar({
|
|
|
3704
3710
|
showOutsideDays,
|
|
3705
3711
|
className: cn("w-[260px] rounded-lg p-3", className),
|
|
3706
3712
|
classNames: {
|
|
3707
|
-
months: "flex flex-col",
|
|
3713
|
+
months: "relative flex flex-col",
|
|
3708
3714
|
month: "space-y-3",
|
|
3709
3715
|
month_caption: "relative flex h-8 items-center justify-center",
|
|
3710
3716
|
caption_label: "text-sm font-medium hidden",
|
|
3711
|
-
nav: "flex items-center",
|
|
3717
|
+
nav: "absolute inset-x-0 top-0 z-10 flex h-8 items-center pointer-events-none",
|
|
3712
3718
|
button_previous: cn(
|
|
3713
|
-
"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"
|
|
3719
|
+
"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"
|
|
3714
3720
|
),
|
|
3715
3721
|
button_next: cn(
|
|
3716
|
-
"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"
|
|
3722
|
+
"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"
|
|
3717
3723
|
),
|
|
3718
3724
|
month_grid: "w-full border-collapse",
|
|
3719
3725
|
weekdays: "flex w-full",
|
|
@@ -3730,8 +3736,9 @@ function Calendar({
|
|
|
3730
3736
|
disabled: "[&>button]:text-muted-foreground [&>button]:opacity-40 [&>button]:cursor-default",
|
|
3731
3737
|
range_middle: "[&>button]:bg-accent [&>button]:text-accent-foreground [&>button]:rounded-none",
|
|
3732
3738
|
range_start: "[&>button]:rounded-e-none",
|
|
3739
|
+
dropdown_root: "relative",
|
|
3733
3740
|
dropdowns: "flex items-center gap-1.5 justify-center",
|
|
3734
|
-
dropdown: "h-7 rounded-md border border-input bg-background
|
|
3741
|
+
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",
|
|
3735
3742
|
months_dropdown: "w-[104px]",
|
|
3736
3743
|
years_dropdown: "w-[72px]",
|
|
3737
3744
|
hidden: "invisible",
|
|
@@ -3739,6 +3746,7 @@ function Calendar({
|
|
|
3739
3746
|
},
|
|
3740
3747
|
captionLayout,
|
|
3741
3748
|
components: {
|
|
3749
|
+
Select: CalendarSelect,
|
|
3742
3750
|
Chevron: ({ orientation }) => {
|
|
3743
3751
|
const Icon2 = orientation === "left" ? ChevronLeft2 : ChevronRight6;
|
|
3744
3752
|
return /* @__PURE__ */ jsx48(Icon2, { className: "size-4" });
|
|
@@ -3753,9 +3761,11 @@ Calendar.displayName = "Calendar";
|
|
|
3753
3761
|
// src/components/date-picker.tsx
|
|
3754
3762
|
import * as React44 from "react";
|
|
3755
3763
|
import { CalendarIcon } from "lucide-react";
|
|
3756
|
-
import { jsx as jsx49, jsxs as
|
|
3764
|
+
import { jsx as jsx49, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
3757
3765
|
function formatDate(d) {
|
|
3758
|
-
|
|
3766
|
+
const day = String(d.getDate()).padStart(2, "0");
|
|
3767
|
+
const month = String(d.getMonth() + 1).padStart(2, "0");
|
|
3768
|
+
return `${day}/${month}/${d.getFullYear()}`;
|
|
3759
3769
|
}
|
|
3760
3770
|
function DatePicker({
|
|
3761
3771
|
date,
|
|
@@ -3776,10 +3786,10 @@ function DatePicker({
|
|
|
3776
3786
|
if (range.from) return formatDate(range.from);
|
|
3777
3787
|
return /* @__PURE__ */ jsx49("span", { children: placeholder });
|
|
3778
3788
|
}
|
|
3779
|
-
return date
|
|
3789
|
+
return formatDate(date);
|
|
3780
3790
|
}, [date, mode, placeholder]);
|
|
3781
|
-
return /* @__PURE__ */
|
|
3782
|
-
/* @__PURE__ */ jsx49(PopoverTrigger, { asChild: true, children: /* @__PURE__ */
|
|
3791
|
+
return /* @__PURE__ */ jsxs33(Popover, { children: [
|
|
3792
|
+
/* @__PURE__ */ jsx49(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs33(
|
|
3783
3793
|
Button,
|
|
3784
3794
|
{
|
|
3785
3795
|
variant: "outline",
|
|
@@ -3794,7 +3804,7 @@ function DatePicker({
|
|
|
3794
3804
|
]
|
|
3795
3805
|
}
|
|
3796
3806
|
) }),
|
|
3797
|
-
/* @__PURE__ */ jsx49(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */
|
|
3807
|
+
/* @__PURE__ */ jsx49(PopoverContent, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ jsxs33("div", { className: "flex", children: [
|
|
3798
3808
|
presets && presets.length > 0 && /* @__PURE__ */ jsx49("div", { className: "flex flex-col gap-1 border-e p-2 min-w-[140px]", children: presets.map((preset) => /* @__PURE__ */ jsx49(
|
|
3799
3809
|
Button,
|
|
3800
3810
|
{
|
|
@@ -3832,7 +3842,7 @@ function DatePicker({
|
|
|
3832
3842
|
// src/components/time-picker.tsx
|
|
3833
3843
|
import * as React45 from "react";
|
|
3834
3844
|
import { ClockIcon } from "lucide-react";
|
|
3835
|
-
import { jsx as jsx50, jsxs as
|
|
3845
|
+
import { jsx as jsx50, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
3836
3846
|
var TIME_VALUE_PATTERN = /^([01]\d|2[0-3]):([0-5]\d)$/;
|
|
3837
3847
|
var MINUTES_PER_DAY = 24 * 60;
|
|
3838
3848
|
var NOON = 12 * 60;
|
|
@@ -3971,7 +3981,7 @@ function TimePickerPanel({
|
|
|
3971
3981
|
);
|
|
3972
3982
|
};
|
|
3973
3983
|
const hourCells = hourCycle === 24 ? Array.from({ length: 24 }, (_, hour) => hour) : [12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
|
|
3974
|
-
return /* @__PURE__ */
|
|
3984
|
+
return /* @__PURE__ */ jsxs34("div", { className: cn("flex items-start divide-x divide-border", className), children: [
|
|
3975
3985
|
/* @__PURE__ */ jsx50("div", { className: cn(columnClasses), role: "group", "aria-label": hourLabel, children: hourCells.map((cell) => {
|
|
3976
3986
|
const hour = hourCycle === 24 ? cell : to24Hour(cell, activePeriod);
|
|
3977
3987
|
const label = pad2(cell);
|
|
@@ -4040,8 +4050,8 @@ var TimePicker = React45.forwardRef(
|
|
|
4040
4050
|
}, ref) => {
|
|
4041
4051
|
const selected = parseTimeValue(value);
|
|
4042
4052
|
const label = selected === void 0 ? placeholder : formatTimeLabel(selected, hourCycle);
|
|
4043
|
-
return /* @__PURE__ */
|
|
4044
|
-
/* @__PURE__ */ jsx50(PopoverTrigger, { asChild: true, children: /* @__PURE__ */
|
|
4053
|
+
return /* @__PURE__ */ jsxs34(Popover, { open, onOpenChange, children: [
|
|
4054
|
+
/* @__PURE__ */ jsx50(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs34(
|
|
4045
4055
|
Button,
|
|
4046
4056
|
{
|
|
4047
4057
|
ref,
|
|
@@ -4062,7 +4072,7 @@ var TimePicker = React45.forwardRef(
|
|
|
4062
4072
|
]
|
|
4063
4073
|
}
|
|
4064
4074
|
) }),
|
|
4065
|
-
/* @__PURE__ */
|
|
4075
|
+
/* @__PURE__ */ jsxs34(
|
|
4066
4076
|
PopoverContent,
|
|
4067
4077
|
{
|
|
4068
4078
|
className: cn("w-auto p-0", contentClassName),
|
|
@@ -4104,7 +4114,7 @@ TimePicker.displayName = "TimePicker";
|
|
|
4104
4114
|
// src/components/date-time-picker.tsx
|
|
4105
4115
|
import * as React46 from "react";
|
|
4106
4116
|
import { CalendarClockIcon } from "lucide-react";
|
|
4107
|
-
import { jsx as jsx51, jsxs as
|
|
4117
|
+
import { jsx as jsx51, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
4108
4118
|
function startOfDay(date) {
|
|
4109
4119
|
return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
|
4110
4120
|
}
|
|
@@ -4231,8 +4241,8 @@ var DateTimePicker = React46.forwardRef(
|
|
|
4231
4241
|
setDraft(withTime(draft ?? activeDay, minutes));
|
|
4232
4242
|
};
|
|
4233
4243
|
const label = value ? formatValue?.(value) ?? `${value.toLocaleDateString()} ${formatTimeLabel(minutesOfDay(value), hourCycle)}` : placeholder;
|
|
4234
|
-
return /* @__PURE__ */
|
|
4235
|
-
/* @__PURE__ */ jsx51(PopoverTrigger, { asChild: true, children: /* @__PURE__ */
|
|
4244
|
+
return /* @__PURE__ */ jsxs35(Popover, { open: isOpen, onOpenChange: handleOpenChange, children: [
|
|
4245
|
+
/* @__PURE__ */ jsx51(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs35(
|
|
4236
4246
|
Button,
|
|
4237
4247
|
{
|
|
4238
4248
|
ref,
|
|
@@ -4253,14 +4263,14 @@ var DateTimePicker = React46.forwardRef(
|
|
|
4253
4263
|
]
|
|
4254
4264
|
}
|
|
4255
4265
|
) }),
|
|
4256
|
-
/* @__PURE__ */
|
|
4266
|
+
/* @__PURE__ */ jsxs35(
|
|
4257
4267
|
PopoverContent,
|
|
4258
4268
|
{
|
|
4259
4269
|
className: cn("w-auto p-0", contentClassName),
|
|
4260
4270
|
align,
|
|
4261
4271
|
"aria-label": ariaLabel ?? placeholder,
|
|
4262
4272
|
children: [
|
|
4263
|
-
/* @__PURE__ */
|
|
4273
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex flex-col sm:flex-row sm:items-start sm:divide-x sm:divide-border", children: [
|
|
4264
4274
|
/* @__PURE__ */ jsx51(
|
|
4265
4275
|
Calendar,
|
|
4266
4276
|
{
|
|
@@ -4274,7 +4284,7 @@ var DateTimePicker = React46.forwardRef(
|
|
|
4274
4284
|
autoFocus: true
|
|
4275
4285
|
}
|
|
4276
4286
|
),
|
|
4277
|
-
/* @__PURE__ */
|
|
4287
|
+
/* @__PURE__ */ jsxs35("div", { className: "border-t border-border p-2 sm:border-t-0", children: [
|
|
4278
4288
|
/* @__PURE__ */ jsx51("div", { className: "px-1 pb-1 text-xs font-medium uppercase tracking-wider text-muted-foreground", children: timeLabel }),
|
|
4279
4289
|
/* @__PURE__ */ jsx51(
|
|
4280
4290
|
TimePickerPanel,
|
|
@@ -4289,7 +4299,7 @@ var DateTimePicker = React46.forwardRef(
|
|
|
4289
4299
|
)
|
|
4290
4300
|
] })
|
|
4291
4301
|
] }),
|
|
4292
|
-
/* @__PURE__ */
|
|
4302
|
+
/* @__PURE__ */ jsxs35("div", { className: "flex items-center gap-2 border-t border-border p-2", children: [
|
|
4293
4303
|
clearable && /* @__PURE__ */ jsx51(
|
|
4294
4304
|
Button,
|
|
4295
4305
|
{
|
|
@@ -4302,7 +4312,7 @@ var DateTimePicker = React46.forwardRef(
|
|
|
4302
4312
|
children: clearLabel
|
|
4303
4313
|
}
|
|
4304
4314
|
),
|
|
4305
|
-
/* @__PURE__ */
|
|
4315
|
+
/* @__PURE__ */ jsxs35("div", { className: "ms-auto flex items-center gap-2", children: [
|
|
4306
4316
|
/* @__PURE__ */ jsx51(
|
|
4307
4317
|
Button,
|
|
4308
4318
|
{
|
|
@@ -4339,7 +4349,7 @@ DateTimePicker.displayName = "DateTimePicker";
|
|
|
4339
4349
|
import * as React47 from "react";
|
|
4340
4350
|
import { Command as CommandPrimitive } from "cmdk";
|
|
4341
4351
|
import { Search } from "lucide-react";
|
|
4342
|
-
import { jsx as jsx52, jsxs as
|
|
4352
|
+
import { jsx as jsx52, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
4343
4353
|
var Command = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx52(
|
|
4344
4354
|
CommandPrimitive,
|
|
4345
4355
|
{
|
|
@@ -4355,7 +4365,7 @@ Command.displayName = CommandPrimitive.displayName;
|
|
|
4355
4365
|
var CommandDialog = ({ children, ...props }) => {
|
|
4356
4366
|
return /* @__PURE__ */ jsx52(Dialog, { ...props, children: /* @__PURE__ */ jsx52(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ jsx52(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 }) }) });
|
|
4357
4367
|
};
|
|
4358
|
-
var CommandInput = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
4368
|
+
var CommandInput = React47.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs36("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
4359
4369
|
/* @__PURE__ */ jsx52(Search, { className: "me-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
4360
4370
|
/* @__PURE__ */ jsx52(
|
|
4361
4371
|
CommandPrimitive.Input,
|
|
@@ -4414,7 +4424,7 @@ CommandShortcut.displayName = "CommandShortcut";
|
|
|
4414
4424
|
import * as React48 from "react";
|
|
4415
4425
|
import useEmblaCarousel from "embla-carousel-react";
|
|
4416
4426
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
4417
|
-
import { jsx as jsx53, jsxs as
|
|
4427
|
+
import { jsx as jsx53, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
4418
4428
|
var CarouselContext = React48.createContext(null);
|
|
4419
4429
|
function useCarousel() {
|
|
4420
4430
|
const context = React48.useContext(CarouselContext);
|
|
@@ -4479,7 +4489,7 @@ CarouselItem.displayName = "CarouselItem";
|
|
|
4479
4489
|
var CarouselPrevious = React48.forwardRef(
|
|
4480
4490
|
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
4481
4491
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
4482
|
-
return /* @__PURE__ */
|
|
4492
|
+
return /* @__PURE__ */ jsxs37(Button, { ref, variant, size, className: cn("absolute h-8 w-8 rounded-full", orientation === "horizontal" ? "-start-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", className), disabled: !canScrollPrev, onClick: scrollPrev, ...props, children: [
|
|
4483
4493
|
/* @__PURE__ */ jsx53(ArrowLeft, { className: "h-4 w-4" }),
|
|
4484
4494
|
/* @__PURE__ */ jsx53("span", { className: "sr-only", children: "Previous slide" })
|
|
4485
4495
|
] });
|
|
@@ -4489,7 +4499,7 @@ CarouselPrevious.displayName = "CarouselPrevious";
|
|
|
4489
4499
|
var CarouselNext = React48.forwardRef(
|
|
4490
4500
|
({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
4491
4501
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
4492
|
-
return /* @__PURE__ */
|
|
4502
|
+
return /* @__PURE__ */ jsxs37(Button, { ref, variant, size, className: cn("absolute h-8 w-8 rounded-full", orientation === "horizontal" ? "-end-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", className), disabled: !canScrollNext, onClick: scrollNext, ...props, children: [
|
|
4493
4503
|
/* @__PURE__ */ jsx53(ArrowRight, { className: "h-4 w-4" }),
|
|
4494
4504
|
/* @__PURE__ */ jsx53("span", { className: "sr-only", children: "Next slide" })
|
|
4495
4505
|
] });
|
|
@@ -4500,7 +4510,7 @@ CarouselNext.displayName = "CarouselNext";
|
|
|
4500
4510
|
// src/components/chart.tsx
|
|
4501
4511
|
import * as React49 from "react";
|
|
4502
4512
|
import * as RechartsPrimitive from "recharts";
|
|
4503
|
-
import { Fragment as
|
|
4513
|
+
import { Fragment as Fragment3, jsx as jsx54, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
4504
4514
|
var THEMES = { light: "", dark: ".dark" };
|
|
4505
4515
|
var ChartContext = React49.createContext(null);
|
|
4506
4516
|
function useChart() {
|
|
@@ -4511,7 +4521,7 @@ function useChart() {
|
|
|
4511
4521
|
var ChartContainer = React49.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
4512
4522
|
const uniqueId = React49.useId();
|
|
4513
4523
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
4514
|
-
return /* @__PURE__ */ jsx54(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */
|
|
4524
|
+
return /* @__PURE__ */ jsx54(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs38(
|
|
4515
4525
|
"div",
|
|
4516
4526
|
{
|
|
4517
4527
|
"data-chart": chartId,
|
|
@@ -4566,13 +4576,13 @@ var ChartTooltipContent = React49.forwardRef(
|
|
|
4566
4576
|
return /* @__PURE__ */ jsx54("div", { className: cn("font-medium", labelClassName), children: value });
|
|
4567
4577
|
}, [label, labelFormatter, payload, hideLabel, labelClassName, config, labelKey]);
|
|
4568
4578
|
if (!active || !payload?.length) return null;
|
|
4569
|
-
return /* @__PURE__ */
|
|
4579
|
+
return /* @__PURE__ */ jsxs38("div", { ref, className: cn("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl", className), children: [
|
|
4570
4580
|
tooltipLabel,
|
|
4571
4581
|
/* @__PURE__ */ jsx54("div", { className: "grid gap-1.5", children: payload.map((item, index) => {
|
|
4572
4582
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
4573
4583
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
4574
4584
|
const indicatorColor = color || item.payload?.fill || item.color;
|
|
4575
|
-
return /* @__PURE__ */ jsx54("div", { className: cn("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", indicator === "dot" && "items-center"), children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */
|
|
4585
|
+
return /* @__PURE__ */ jsx54("div", { className: cn("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", indicator === "dot" && "items-center"), children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs38(Fragment3, { children: [
|
|
4576
4586
|
!hideIndicator && /* @__PURE__ */ jsx54(
|
|
4577
4587
|
"div",
|
|
4578
4588
|
{
|
|
@@ -4585,7 +4595,7 @@ var ChartTooltipContent = React49.forwardRef(
|
|
|
4585
4595
|
style: { "--color-bg": indicatorColor, "--color-border": indicatorColor }
|
|
4586
4596
|
}
|
|
4587
4597
|
),
|
|
4588
|
-
/* @__PURE__ */
|
|
4598
|
+
/* @__PURE__ */ jsxs38("div", { className: cn("flex flex-1 justify-between leading-none", hideIndicator ? "gap-2" : "gap-2"), children: [
|
|
4589
4599
|
/* @__PURE__ */ jsx54("div", { className: "grid gap-1.5", children: /* @__PURE__ */ jsx54("span", { className: "text-muted-foreground", children: itemConfig?.label || item.name }) }),
|
|
4590
4600
|
item.value !== void 0 && /* @__PURE__ */ jsx54("span", { className: "font-mono font-medium tabular-nums text-foreground", children: item.value.toLocaleString() })
|
|
4591
4601
|
] })
|
|
@@ -4602,7 +4612,7 @@ var ChartLegendContent = React49.forwardRef(({ className, hideIcon = false, payl
|
|
|
4602
4612
|
return /* @__PURE__ */ jsx54("div", { ref, className: cn("flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload.map((item) => {
|
|
4603
4613
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
4604
4614
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
4605
|
-
return /* @__PURE__ */
|
|
4615
|
+
return /* @__PURE__ */ jsxs38("div", { className: cn("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"), children: [
|
|
4606
4616
|
itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsx54(itemConfig.icon, {}) : /* @__PURE__ */ jsx54("div", { className: "h-2 w-2 shrink-0 rounded-[2px]", style: { backgroundColor: item.color } }),
|
|
4607
4617
|
itemConfig?.label
|
|
4608
4618
|
] }, item.value);
|
|
@@ -4624,11 +4634,11 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
4624
4634
|
// src/components/dashboard-header.tsx
|
|
4625
4635
|
import * as React50 from "react";
|
|
4626
4636
|
import { Search as Search2, Bell } from "lucide-react";
|
|
4627
|
-
import { jsx as jsx55, jsxs as
|
|
4637
|
+
import { jsx as jsx55, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
4628
4638
|
var DashboardHeader = React50.forwardRef(
|
|
4629
4639
|
({ title, onSearch, notificationCount, user, className, ...props }, ref) => {
|
|
4630
4640
|
const [searchQuery, setSearchQuery] = React50.useState("");
|
|
4631
|
-
return /* @__PURE__ */
|
|
4641
|
+
return /* @__PURE__ */ jsxs39(
|
|
4632
4642
|
"header",
|
|
4633
4643
|
{
|
|
4634
4644
|
ref,
|
|
@@ -4639,8 +4649,8 @@ var DashboardHeader = React50.forwardRef(
|
|
|
4639
4649
|
...props,
|
|
4640
4650
|
children: [
|
|
4641
4651
|
title && /* @__PURE__ */ jsx55("h1", { className: "truncate text-base font-semibold text-foreground", children: title }),
|
|
4642
|
-
/* @__PURE__ */
|
|
4643
|
-
onSearch && /* @__PURE__ */
|
|
4652
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex items-center gap-3", children: [
|
|
4653
|
+
onSearch && /* @__PURE__ */ jsxs39("div", { className: "flex h-9 w-[260px] items-center gap-2 rounded-md border border-input bg-background px-3 transition-[border-color,box-shadow] duration-150 focus-within:border-[var(--hc-primary-500)] focus-within:ring-[3px] focus-within:ring-[color-mix(in_srgb,var(--hc-primary-500)_22%,transparent)]", children: [
|
|
4644
4654
|
/* @__PURE__ */ jsx55(Search2, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
4645
4655
|
/* @__PURE__ */ jsx55(
|
|
4646
4656
|
"input",
|
|
@@ -4657,7 +4667,7 @@ var DashboardHeader = React50.forwardRef(
|
|
|
4657
4667
|
}
|
|
4658
4668
|
)
|
|
4659
4669
|
] }),
|
|
4660
|
-
/* @__PURE__ */
|
|
4670
|
+
/* @__PURE__ */ jsxs39("div", { className: "relative", children: [
|
|
4661
4671
|
/* @__PURE__ */ jsx55(
|
|
4662
4672
|
"button",
|
|
4663
4673
|
{
|
|
@@ -4676,8 +4686,8 @@ var DashboardHeader = React50.forwardRef(
|
|
|
4676
4686
|
}
|
|
4677
4687
|
)
|
|
4678
4688
|
] }),
|
|
4679
|
-
user && /* @__PURE__ */
|
|
4680
|
-
/* @__PURE__ */
|
|
4689
|
+
user && /* @__PURE__ */ jsxs39("div", { className: "flex items-center gap-3 ps-3 border-s border-[var(--hc-color-border-subtle)]", children: [
|
|
4690
|
+
/* @__PURE__ */ jsxs39("div", { className: "text-end leading-tight", children: [
|
|
4681
4691
|
/* @__PURE__ */ jsx55("p", { className: "text-sm font-semibold text-foreground", children: user.name }),
|
|
4682
4692
|
/* @__PURE__ */ jsx55("p", { className: "text-xs text-muted-foreground", children: user.role })
|
|
4683
4693
|
] }),
|
|
@@ -4694,7 +4704,7 @@ DashboardHeader.displayName = "DashboardHeader";
|
|
|
4694
4704
|
// src/components/app-header.tsx
|
|
4695
4705
|
import * as React51 from "react";
|
|
4696
4706
|
import { Search as Search3, Bell as Bell2, Moon } from "lucide-react";
|
|
4697
|
-
import { jsx as jsx56, jsxs as
|
|
4707
|
+
import { jsx as jsx56, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
4698
4708
|
var AppHeader = React51.forwardRef(
|
|
4699
4709
|
({
|
|
4700
4710
|
onSearch,
|
|
@@ -4708,7 +4718,7 @@ var AppHeader = React51.forwardRef(
|
|
|
4708
4718
|
...props
|
|
4709
4719
|
}, ref) => {
|
|
4710
4720
|
const [searchQuery, setSearchQuery] = React51.useState("");
|
|
4711
|
-
return /* @__PURE__ */
|
|
4721
|
+
return /* @__PURE__ */ jsxs40(
|
|
4712
4722
|
"header",
|
|
4713
4723
|
{
|
|
4714
4724
|
ref,
|
|
@@ -4718,7 +4728,7 @@ var AppHeader = React51.forwardRef(
|
|
|
4718
4728
|
),
|
|
4719
4729
|
...props,
|
|
4720
4730
|
children: [
|
|
4721
|
-
onSearch && /* @__PURE__ */
|
|
4731
|
+
onSearch && /* @__PURE__ */ jsxs40("div", { className: "flex h-9 w-[300px] items-center gap-2 rounded-md border border-input bg-background px-3 transition-[border-color,box-shadow] duration-150 focus-within:border-[var(--hc-primary-500)] focus-within:ring-[3px] focus-within:ring-[color-mix(in_srgb,var(--hc-primary-500)_22%,transparent)]", children: [
|
|
4722
4732
|
/* @__PURE__ */ jsx56(Search3, { className: "size-4 shrink-0 text-muted-foreground" }),
|
|
4723
4733
|
/* @__PURE__ */ jsx56(
|
|
4724
4734
|
"input",
|
|
@@ -4735,7 +4745,7 @@ var AppHeader = React51.forwardRef(
|
|
|
4735
4745
|
}
|
|
4736
4746
|
)
|
|
4737
4747
|
] }),
|
|
4738
|
-
/* @__PURE__ */
|
|
4748
|
+
/* @__PURE__ */ jsxs40("div", { className: "flex items-center gap-2", children: [
|
|
4739
4749
|
showThemeToggle && /* @__PURE__ */ jsx56(
|
|
4740
4750
|
"button",
|
|
4741
4751
|
{
|
|
@@ -4746,7 +4756,7 @@ var AppHeader = React51.forwardRef(
|
|
|
4746
4756
|
children: /* @__PURE__ */ jsx56(Moon, { className: "size-[18px]" })
|
|
4747
4757
|
}
|
|
4748
4758
|
),
|
|
4749
|
-
/* @__PURE__ */
|
|
4759
|
+
/* @__PURE__ */ jsxs40(
|
|
4750
4760
|
"button",
|
|
4751
4761
|
{
|
|
4752
4762
|
type: "button",
|
|
@@ -4765,8 +4775,8 @@ var AppHeader = React51.forwardRef(
|
|
|
4765
4775
|
]
|
|
4766
4776
|
}
|
|
4767
4777
|
),
|
|
4768
|
-
user && /* @__PURE__ */
|
|
4769
|
-
/* @__PURE__ */
|
|
4778
|
+
user && /* @__PURE__ */ jsxs40("div", { className: "ms-1 flex items-center gap-3 ps-3 border-s border-[var(--hc-color-border-subtle)]", children: [
|
|
4779
|
+
/* @__PURE__ */ jsxs40("div", { className: "text-end leading-tight", children: [
|
|
4770
4780
|
/* @__PURE__ */ jsx56("p", { className: "text-sm font-semibold text-foreground", children: user.name }),
|
|
4771
4781
|
/* @__PURE__ */ jsx56("p", { className: "text-xs text-muted-foreground truncate max-w-[160px]", children: user.email })
|
|
4772
4782
|
] }),
|
|
@@ -4780,8 +4790,251 @@ var AppHeader = React51.forwardRef(
|
|
|
4780
4790
|
);
|
|
4781
4791
|
AppHeader.displayName = "AppHeader";
|
|
4782
4792
|
|
|
4793
|
+
// src/components/app-launcher.tsx
|
|
4794
|
+
import * as React52 from "react";
|
|
4795
|
+
import { LayoutGrid, Pin } from "lucide-react";
|
|
4796
|
+
import { Fragment as Fragment4, jsx as jsx57, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
4797
|
+
function loadPinnedIds(storageKey) {
|
|
4798
|
+
if (typeof window === "undefined") return [];
|
|
4799
|
+
try {
|
|
4800
|
+
const parsed = JSON.parse(localStorage.getItem(storageKey) ?? "[]");
|
|
4801
|
+
return Array.isArray(parsed) ? parsed.filter((x) => typeof x === "string") : [];
|
|
4802
|
+
} catch {
|
|
4803
|
+
return [];
|
|
4804
|
+
}
|
|
4805
|
+
}
|
|
4806
|
+
var DefaultTrigger = React52.forwardRef(({ active, className, ...props }, ref) => /* @__PURE__ */ jsx57(
|
|
4807
|
+
"button",
|
|
4808
|
+
{
|
|
4809
|
+
...props,
|
|
4810
|
+
ref,
|
|
4811
|
+
type: "button",
|
|
4812
|
+
"aria-label": "Apps",
|
|
4813
|
+
className: cn(
|
|
4814
|
+
"flex size-9 items-center justify-center rounded-md transition-colors",
|
|
4815
|
+
active ? "bg-muted text-foreground" : "text-muted-foreground hover:bg-muted/70 hover:text-foreground",
|
|
4816
|
+
className
|
|
4817
|
+
),
|
|
4818
|
+
children: /* @__PURE__ */ jsx57(LayoutGrid, { className: "size-[18px]" })
|
|
4819
|
+
}
|
|
4820
|
+
));
|
|
4821
|
+
DefaultTrigger.displayName = "AppLauncherDefaultTrigger";
|
|
4822
|
+
function AppTile({
|
|
4823
|
+
app,
|
|
4824
|
+
pinned,
|
|
4825
|
+
pinningEnabled,
|
|
4826
|
+
onLaunch,
|
|
4827
|
+
onTogglePin
|
|
4828
|
+
}) {
|
|
4829
|
+
return /* @__PURE__ */ jsxs41("div", { className: "group relative", children: [
|
|
4830
|
+
pinningEnabled && /* @__PURE__ */ jsx57(
|
|
4831
|
+
"button",
|
|
4832
|
+
{
|
|
4833
|
+
type: "button",
|
|
4834
|
+
"aria-label": pinned ? "Unpin app" : "Pin app",
|
|
4835
|
+
onClick: () => onTogglePin(app.id),
|
|
4836
|
+
className: cn(
|
|
4837
|
+
"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",
|
|
4838
|
+
pinned ? "text-primary opacity-100" : "opacity-0 hover:text-foreground group-hover:opacity-100"
|
|
4839
|
+
),
|
|
4840
|
+
children: /* @__PURE__ */ jsx57(Pin, { className: cn("size-3", pinned && "fill-current") })
|
|
4841
|
+
}
|
|
4842
|
+
),
|
|
4843
|
+
/* @__PURE__ */ jsxs41(
|
|
4844
|
+
"button",
|
|
4845
|
+
{
|
|
4846
|
+
type: "button",
|
|
4847
|
+
onClick: () => onLaunch(app),
|
|
4848
|
+
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",
|
|
4849
|
+
children: [
|
|
4850
|
+
/* @__PURE__ */ jsx57("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__ */ jsx57("img", { src: app.iconUrl, alt: "", className: "h-full w-full rounded-2xl object-contain p-2" }) : /* @__PURE__ */ jsx57("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() }) }),
|
|
4851
|
+
/* @__PURE__ */ jsx57("span", { className: "line-clamp-2 text-[11px] font-medium leading-tight text-foreground", children: app.displayName })
|
|
4852
|
+
]
|
|
4853
|
+
}
|
|
4854
|
+
)
|
|
4855
|
+
] });
|
|
4856
|
+
}
|
|
4857
|
+
var AppLauncher = React52.forwardRef(
|
|
4858
|
+
({
|
|
4859
|
+
apps,
|
|
4860
|
+
isLoading = false,
|
|
4861
|
+
onLaunch,
|
|
4862
|
+
title = "Apps",
|
|
4863
|
+
emptyLabel = "No apps available",
|
|
4864
|
+
pinStorageKey,
|
|
4865
|
+
maxPins = 4,
|
|
4866
|
+
trigger,
|
|
4867
|
+
open,
|
|
4868
|
+
onOpenChange,
|
|
4869
|
+
className
|
|
4870
|
+
}, ref) => {
|
|
4871
|
+
const [internalOpen, setInternalOpen] = React52.useState(false);
|
|
4872
|
+
const isOpen = open ?? internalOpen;
|
|
4873
|
+
const setOpen = onOpenChange ?? setInternalOpen;
|
|
4874
|
+
const [pinnedIds, setPinnedIds] = React52.useState([]);
|
|
4875
|
+
React52.useEffect(() => {
|
|
4876
|
+
if (pinStorageKey) setPinnedIds(loadPinnedIds(pinStorageKey));
|
|
4877
|
+
}, [pinStorageKey]);
|
|
4878
|
+
const togglePin = (id) => {
|
|
4879
|
+
if (!pinStorageKey) return;
|
|
4880
|
+
const next = pinnedIds.includes(id) ? pinnedIds.filter((p) => p !== id) : [...pinnedIds, id].slice(-maxPins);
|
|
4881
|
+
setPinnedIds(next);
|
|
4882
|
+
try {
|
|
4883
|
+
localStorage.setItem(pinStorageKey, JSON.stringify(next));
|
|
4884
|
+
} catch {
|
|
4885
|
+
}
|
|
4886
|
+
};
|
|
4887
|
+
const handleLaunch = (app) => {
|
|
4888
|
+
onLaunch(app);
|
|
4889
|
+
setOpen(false);
|
|
4890
|
+
};
|
|
4891
|
+
const pinningEnabled = !!pinStorageKey;
|
|
4892
|
+
const pinnedApps = pinningEnabled ? pinnedIds.map((id) => apps.find((a) => a.id === id)).filter((a) => !!a) : [];
|
|
4893
|
+
const restApps = pinningEnabled ? apps.filter((a) => !pinnedIds.includes(a.id)) : apps;
|
|
4894
|
+
return /* @__PURE__ */ jsxs41(Popover, { open: isOpen, onOpenChange: setOpen, children: [
|
|
4895
|
+
/* @__PURE__ */ jsx57(PopoverTrigger, { asChild: true, children: trigger ?? /* @__PURE__ */ jsx57(DefaultTrigger, { ref, active: isOpen }) }),
|
|
4896
|
+
/* @__PURE__ */ jsx57(
|
|
4897
|
+
PopoverContent,
|
|
4898
|
+
{
|
|
4899
|
+
align: "end",
|
|
4900
|
+
sideOffset: 10,
|
|
4901
|
+
className: cn("w-[22rem] border-none bg-transparent p-0 shadow-none", className),
|
|
4902
|
+
children: /* @__PURE__ */ jsxs41("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: [
|
|
4903
|
+
/* @__PURE__ */ jsxs41("div", { className: "flex items-center justify-between px-4 pb-3 pt-4", children: [
|
|
4904
|
+
/* @__PURE__ */ jsx57("span", { className: "text-[13px] font-semibold tracking-tight text-foreground", children: title }),
|
|
4905
|
+
/* @__PURE__ */ jsx57("span", { className: "text-[11px] font-medium text-muted-foreground", children: apps.length > 0 ? apps.length : "" })
|
|
4906
|
+
] }),
|
|
4907
|
+
/* @__PURE__ */ jsx57("div", { className: "max-h-96 overflow-y-auto px-2 pb-3", children: isLoading ? /* @__PURE__ */ jsx57("div", { className: "grid grid-cols-4 gap-1 p-1", children: Array.from({ length: 8 }).map((_, i) => /* @__PURE__ */ jsxs41("div", { className: "flex flex-col items-center gap-2 rounded-xl p-2.5", children: [
|
|
4908
|
+
/* @__PURE__ */ jsx57("div", { className: "h-12 w-12 animate-pulse rounded-2xl bg-muted/60" }),
|
|
4909
|
+
/* @__PURE__ */ jsx57("div", { className: "h-2.5 w-10 animate-pulse rounded-full bg-muted/60" })
|
|
4910
|
+
] }, i)) }) : apps.length === 0 ? /* @__PURE__ */ jsx57("p", { className: "py-10 text-center text-sm text-muted-foreground", children: emptyLabel }) : /* @__PURE__ */ jsxs41(Fragment4, { children: [
|
|
4911
|
+
pinnedApps.length > 0 && /* @__PURE__ */ jsxs41(Fragment4, { children: [
|
|
4912
|
+
/* @__PURE__ */ jsx57("div", { className: "px-1 pb-1.5 pt-1 text-[10px] font-semibold uppercase tracking-wide text-muted-foreground", children: "Pinned" }),
|
|
4913
|
+
/* @__PURE__ */ jsx57("div", { className: "grid grid-cols-4 gap-1", children: pinnedApps.map((app) => /* @__PURE__ */ jsx57(
|
|
4914
|
+
AppTile,
|
|
4915
|
+
{
|
|
4916
|
+
app,
|
|
4917
|
+
pinned: true,
|
|
4918
|
+
pinningEnabled,
|
|
4919
|
+
onLaunch: handleLaunch,
|
|
4920
|
+
onTogglePin: togglePin
|
|
4921
|
+
},
|
|
4922
|
+
app.id
|
|
4923
|
+
)) }),
|
|
4924
|
+
/* @__PURE__ */ jsx57("div", { className: "my-2 border-t border-border/60" })
|
|
4925
|
+
] }),
|
|
4926
|
+
/* @__PURE__ */ jsx57("div", { className: "grid grid-cols-4 gap-1", children: restApps.map((app) => /* @__PURE__ */ jsx57(
|
|
4927
|
+
AppTile,
|
|
4928
|
+
{
|
|
4929
|
+
app,
|
|
4930
|
+
pinned: false,
|
|
4931
|
+
pinningEnabled,
|
|
4932
|
+
onLaunch: handleLaunch,
|
|
4933
|
+
onTogglePin: togglePin
|
|
4934
|
+
},
|
|
4935
|
+
app.id
|
|
4936
|
+
)) })
|
|
4937
|
+
] }) })
|
|
4938
|
+
] })
|
|
4939
|
+
}
|
|
4940
|
+
)
|
|
4941
|
+
] });
|
|
4942
|
+
}
|
|
4943
|
+
);
|
|
4944
|
+
AppLauncher.displayName = "AppLauncher";
|
|
4945
|
+
|
|
4946
|
+
// src/components/ai-chatbot-logo.tsx
|
|
4947
|
+
import * as React53 from "react";
|
|
4948
|
+
|
|
4949
|
+
// src/components/ai-chatbot-logo-glyph.ts
|
|
4950
|
+
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%2BHfj01Yest4gdykSLxYNyWXq3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pGGZ4FNipQmm5PBfks4iY36n1uxRkvCX8BaYZEXDRpGxeqj8T4E4GUwFIpVCX%2FwonaokA1ODzfM9kKuCAwBIeYxM2eeBXL6bY9FoBhhVjMHF4nm46DppJa7prg9DtPprYdwfHv%2BI7LSbpJoHwzcWMY6staGSotJA%2BCVpZnxXc0Ka7f9Ru%2BEzGju4ABH0qGOTNOM9kLSN6E2%2FCsfzHCw%2BQBKZdfPtnT5AprMz9RSpSuLvxPvYzFYxxsOkH4DLchR%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";
|
|
4951
|
+
|
|
4952
|
+
// src/components/ai-chatbot-logo.tsx
|
|
4953
|
+
import { jsx as jsx58, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
4954
|
+
function AiChatbotLogo({
|
|
4955
|
+
size = 48,
|
|
4956
|
+
className,
|
|
4957
|
+
logoOnly = false,
|
|
4958
|
+
src = AI_CHATBOT_GLYPH_SRC
|
|
4959
|
+
}) {
|
|
4960
|
+
const uid = React53.useId().replace(/:/g, "");
|
|
4961
|
+
const gradientId = `${uid}-border`;
|
|
4962
|
+
const clipId = `${uid}-clip`;
|
|
4963
|
+
const scale = size / 48;
|
|
4964
|
+
const logoW = Math.round(20 * scale);
|
|
4965
|
+
const logoH = Math.round(18 * scale);
|
|
4966
|
+
const logoX = Math.round(14 * scale);
|
|
4967
|
+
const logoY = Math.round(11 * scale);
|
|
4968
|
+
if (logoOnly) {
|
|
4969
|
+
return /* @__PURE__ */ jsx58(
|
|
4970
|
+
"img",
|
|
4971
|
+
{
|
|
4972
|
+
src,
|
|
4973
|
+
alt: "AI Assistant",
|
|
4974
|
+
width: logoW,
|
|
4975
|
+
height: logoH,
|
|
4976
|
+
draggable: false,
|
|
4977
|
+
className: cn("block", className)
|
|
4978
|
+
}
|
|
4979
|
+
);
|
|
4980
|
+
}
|
|
4981
|
+
return /* @__PURE__ */ jsxs42(
|
|
4982
|
+
"div",
|
|
4983
|
+
{
|
|
4984
|
+
style: {
|
|
4985
|
+
width: size,
|
|
4986
|
+
height: size,
|
|
4987
|
+
filter: "drop-shadow(0px 4px 4px rgba(0,0,0,0.25))"
|
|
4988
|
+
},
|
|
4989
|
+
className: cn("relative shrink-0", className),
|
|
4990
|
+
children: [
|
|
4991
|
+
/* @__PURE__ */ jsxs42(
|
|
4992
|
+
"svg",
|
|
4993
|
+
{
|
|
4994
|
+
width: size,
|
|
4995
|
+
height: size,
|
|
4996
|
+
viewBox: "0 0 48 48",
|
|
4997
|
+
fill: "none",
|
|
4998
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4999
|
+
className: "block",
|
|
5000
|
+
"aria-hidden": true,
|
|
5001
|
+
children: [
|
|
5002
|
+
/* @__PURE__ */ jsxs42("defs", { children: [
|
|
5003
|
+
/* @__PURE__ */ jsxs42("linearGradient", { id: gradientId, x1: "24", y1: "0", x2: "24", y2: "40", gradientUnits: "userSpaceOnUse", children: [
|
|
5004
|
+
/* @__PURE__ */ jsx58("stop", { stopColor: "#F7D822" }),
|
|
5005
|
+
/* @__PURE__ */ jsx58("stop", { offset: "0.5", stopColor: "#459C73" }),
|
|
5006
|
+
/* @__PURE__ */ jsx58("stop", { offset: "0.75", stopColor: "#1E3ADA" }),
|
|
5007
|
+
/* @__PURE__ */ jsx58("stop", { offset: "0.875", stopColor: "#B018CB" }),
|
|
5008
|
+
/* @__PURE__ */ jsx58("stop", { offset: "1", stopColor: "#F86007" })
|
|
5009
|
+
] }),
|
|
5010
|
+
/* @__PURE__ */ jsx58("clipPath", { id: clipId, children: /* @__PURE__ */ jsx58("rect", { x: "4", y: "0", width: "40", height: "40", rx: "20" }) })
|
|
5011
|
+
] }),
|
|
5012
|
+
/* @__PURE__ */ jsxs42("g", { clipPath: `url(#${clipId})`, children: [
|
|
5013
|
+
/* @__PURE__ */ jsx58("rect", { x: "4", y: "0", width: "40", height: "40", rx: "20", fill: "white" }),
|
|
5014
|
+
/* @__PURE__ */ jsx58("rect", { x: "4.5", y: "0.5", width: "39", height: "39", rx: "19.5", stroke: `url(#${gradientId})`, strokeWidth: 1, fill: "none" })
|
|
5015
|
+
] })
|
|
5016
|
+
]
|
|
5017
|
+
}
|
|
5018
|
+
),
|
|
5019
|
+
/* @__PURE__ */ jsx58(
|
|
5020
|
+
"img",
|
|
5021
|
+
{
|
|
5022
|
+
src,
|
|
5023
|
+
alt: "AI Assistant",
|
|
5024
|
+
width: logoW,
|
|
5025
|
+
height: logoH,
|
|
5026
|
+
draggable: false,
|
|
5027
|
+
className: "absolute block",
|
|
5028
|
+
style: { left: logoX, top: logoY }
|
|
5029
|
+
}
|
|
5030
|
+
)
|
|
5031
|
+
]
|
|
5032
|
+
}
|
|
5033
|
+
);
|
|
5034
|
+
}
|
|
5035
|
+
|
|
4783
5036
|
// src/components/icon/bell-icon.tsx
|
|
4784
|
-
import { jsx as
|
|
5037
|
+
import { jsx as jsx59, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
4785
5038
|
function BellIcon({
|
|
4786
5039
|
size = 20,
|
|
4787
5040
|
width,
|
|
@@ -4789,7 +5042,7 @@ function BellIcon({
|
|
|
4789
5042
|
fill = "none",
|
|
4790
5043
|
...props
|
|
4791
5044
|
}) {
|
|
4792
|
-
return /* @__PURE__ */
|
|
5045
|
+
return /* @__PURE__ */ jsxs43(
|
|
4793
5046
|
"svg",
|
|
4794
5047
|
{
|
|
4795
5048
|
viewBox: "0 0 20 20",
|
|
@@ -4799,7 +5052,7 @@ function BellIcon({
|
|
|
4799
5052
|
"aria-hidden": "true",
|
|
4800
5053
|
...props,
|
|
4801
5054
|
children: [
|
|
4802
|
-
/* @__PURE__ */
|
|
5055
|
+
/* @__PURE__ */ jsx59(
|
|
4803
5056
|
"path",
|
|
4804
5057
|
{
|
|
4805
5058
|
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",
|
|
@@ -4809,7 +5062,7 @@ function BellIcon({
|
|
|
4809
5062
|
strokeLinejoin: "round"
|
|
4810
5063
|
}
|
|
4811
5064
|
),
|
|
4812
|
-
/* @__PURE__ */
|
|
5065
|
+
/* @__PURE__ */ jsx59(
|
|
4813
5066
|
"path",
|
|
4814
5067
|
{
|
|
4815
5068
|
d: "M8.25 15.25a1.75 1.75 0 0 0 3.5 0",
|
|
@@ -4825,18 +5078,18 @@ function BellIcon({
|
|
|
4825
5078
|
}
|
|
4826
5079
|
|
|
4827
5080
|
// src/components/icon/icon-info-line-icon.tsx
|
|
4828
|
-
import { jsx as
|
|
5081
|
+
import { jsx as jsx60, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
4829
5082
|
function IconInfoLineIcon({ size = 16, width, height, fill, title, ...props }) {
|
|
4830
|
-
return /* @__PURE__ */
|
|
4831
|
-
/* @__PURE__ */
|
|
4832
|
-
title ? /* @__PURE__ */
|
|
5083
|
+
return /* @__PURE__ */ jsxs44("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: [
|
|
5084
|
+
/* @__PURE__ */ jsx60("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" }),
|
|
5085
|
+
title ? /* @__PURE__ */ jsx60("title", { children: title }) : null
|
|
4833
5086
|
] });
|
|
4834
5087
|
}
|
|
4835
5088
|
|
|
4836
5089
|
// src/components/sonner.tsx
|
|
4837
5090
|
import { useTheme } from "next-themes";
|
|
4838
5091
|
import { Toaster as Sonner, toast as sonnerToast } from "sonner";
|
|
4839
|
-
import { jsx as
|
|
5092
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
4840
5093
|
var TOAST_DURATION_MS = 4e3;
|
|
4841
5094
|
var ERROR_TOAST_MS = 7e3;
|
|
4842
5095
|
var TOKENS = {
|
|
@@ -4862,7 +5115,7 @@ var CLASS_NAMES = {
|
|
|
4862
5115
|
var TOAST_BOTTOM_OFFSET = "calc(16px + env(safe-area-inset-bottom, 0px))";
|
|
4863
5116
|
var Toaster = ({ style, toastOptions, ...props }) => {
|
|
4864
5117
|
const { resolvedTheme, forcedTheme } = useTheme();
|
|
4865
|
-
return /* @__PURE__ */
|
|
5118
|
+
return /* @__PURE__ */ jsx61(
|
|
4866
5119
|
Sonner,
|
|
4867
5120
|
{
|
|
4868
5121
|
theme: (forcedTheme ?? resolvedTheme) === "dark" ? "dark" : "light",
|
|
@@ -4900,8 +5153,8 @@ var toast = Object.assign(
|
|
|
4900
5153
|
);
|
|
4901
5154
|
|
|
4902
5155
|
// src/components/typography.tsx
|
|
4903
|
-
import * as
|
|
4904
|
-
import { jsx as
|
|
5156
|
+
import * as React54 from "react";
|
|
5157
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
4905
5158
|
var weightMap = {
|
|
4906
5159
|
extrabold: "font-extrabold",
|
|
4907
5160
|
bold: "font-bold",
|
|
@@ -4923,44 +5176,44 @@ function resolveColor(color, defaultColorClass) {
|
|
|
4923
5176
|
if (!color || color === "default") return defaultColorClass;
|
|
4924
5177
|
return colorMap[color];
|
|
4925
5178
|
}
|
|
4926
|
-
var H1 =
|
|
4927
|
-
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */
|
|
5179
|
+
var H1 = React54.forwardRef(
|
|
5180
|
+
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */ jsx62("h1", { ref, className: cn("scroll-m-20 text-3xl tracking-tight", resolveColor(color, "text-foreground"), weightMap[weight], className), ...props, children })
|
|
4928
5181
|
);
|
|
4929
5182
|
H1.displayName = "H1";
|
|
4930
|
-
var H2 =
|
|
4931
|
-
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */
|
|
5183
|
+
var H2 = React54.forwardRef(
|
|
5184
|
+
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */ jsx62("h2", { ref, className: cn("scroll-m-20 text-2xl tracking-tight", resolveColor(color, "text-foreground"), weightMap[weight], className), ...props, children })
|
|
4932
5185
|
);
|
|
4933
5186
|
H2.displayName = "H2";
|
|
4934
|
-
var H3 =
|
|
4935
|
-
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */
|
|
5187
|
+
var H3 = React54.forwardRef(
|
|
5188
|
+
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */ jsx62("h3", { ref, className: cn("scroll-m-20 text-xl tracking-tight", resolveColor(color, "text-foreground"), weightMap[weight], className), ...props, children })
|
|
4936
5189
|
);
|
|
4937
5190
|
H3.displayName = "H3";
|
|
4938
|
-
var H4 =
|
|
4939
|
-
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */
|
|
5191
|
+
var H4 = React54.forwardRef(
|
|
5192
|
+
({ className, weight = "semibold", color, children, ...props }, ref) => /* @__PURE__ */ jsx62("h4", { ref, className: cn("scroll-m-20 text-lg tracking-tight", resolveColor(color, "text-foreground"), weightMap[weight], className), ...props, children })
|
|
4940
5193
|
);
|
|
4941
5194
|
H4.displayName = "H4";
|
|
4942
|
-
var Body =
|
|
4943
|
-
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */
|
|
5195
|
+
var Body = React54.forwardRef(
|
|
5196
|
+
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */ jsx62("p", { ref, className: cn("text-base leading-7", resolveColor(color, "text-foreground"), weightMap[weight], className), ...props })
|
|
4944
5197
|
);
|
|
4945
5198
|
Body.displayName = "Body";
|
|
4946
|
-
var Small =
|
|
4947
|
-
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */
|
|
5199
|
+
var Small = React54.forwardRef(
|
|
5200
|
+
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */ jsx62("p", { ref, className: cn("text-sm", resolveColor(color, "text-muted-foreground"), weightMap[weight], className), ...props })
|
|
4948
5201
|
);
|
|
4949
5202
|
Small.displayName = "Small";
|
|
4950
|
-
var Caption =
|
|
4951
|
-
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */
|
|
5203
|
+
var Caption = React54.forwardRef(
|
|
5204
|
+
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */ jsx62("p", { ref, className: cn("text-xs", resolveColor(color, "text-muted-foreground"), weightMap[weight], className), ...props })
|
|
4952
5205
|
);
|
|
4953
5206
|
Caption.displayName = "Caption";
|
|
4954
|
-
var Lead =
|
|
4955
|
-
({ className, weight = "medium", color, ...props }, ref) => /* @__PURE__ */
|
|
5207
|
+
var Lead = React54.forwardRef(
|
|
5208
|
+
({ className, weight = "medium", color, ...props }, ref) => /* @__PURE__ */ jsx62("p", { ref, className: cn("text-lg", resolveColor(color, "text-foreground"), weightMap[weight], className), ...props })
|
|
4956
5209
|
);
|
|
4957
5210
|
Lead.displayName = "Lead";
|
|
4958
|
-
var Muted =
|
|
4959
|
-
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */
|
|
5211
|
+
var Muted = React54.forwardRef(
|
|
5212
|
+
({ className, weight = "regular", color, ...props }, ref) => /* @__PURE__ */ jsx62("p", { ref, className: cn("text-sm", resolveColor(color, "text-muted-foreground"), weightMap[weight], className), ...props })
|
|
4960
5213
|
);
|
|
4961
5214
|
Muted.displayName = "Muted";
|
|
4962
|
-
var Code =
|
|
4963
|
-
({ className, ...props }, ref) => /* @__PURE__ */
|
|
5215
|
+
var Code = React54.forwardRef(
|
|
5216
|
+
({ className, ...props }, ref) => /* @__PURE__ */ jsx62(
|
|
4964
5217
|
"code",
|
|
4965
5218
|
{
|
|
4966
5219
|
ref,
|
|
@@ -4977,14 +5230,14 @@ Code.displayName = "Code";
|
|
|
4977
5230
|
// src/components/theme-provider.tsx
|
|
4978
5231
|
import { ThemeProvider as NextThemesProvider } from "next-themes";
|
|
4979
5232
|
import { useTheme as useTheme2 } from "next-themes";
|
|
4980
|
-
import { jsx as
|
|
5233
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
4981
5234
|
function ThemeProvider({ children, ...props }) {
|
|
4982
|
-
return /* @__PURE__ */
|
|
5235
|
+
return /* @__PURE__ */ jsx63(NextThemesProvider, { ...props, children });
|
|
4983
5236
|
}
|
|
4984
5237
|
|
|
4985
5238
|
// src/components/banner.tsx
|
|
4986
|
-
import * as
|
|
4987
|
-
import { jsx as
|
|
5239
|
+
import * as React55 from "react";
|
|
5240
|
+
import { jsx as jsx64, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
4988
5241
|
var variantStyles = {
|
|
4989
5242
|
primary: "bg-[var(--hc-banner-primary-bg)] border border-[var(--hc-primary-200)]",
|
|
4990
5243
|
muted: "bg-[var(--hc-color-muted)] border border-[var(--hc-color-border)]",
|
|
@@ -4999,23 +5252,23 @@ var iconBgStyles = {
|
|
|
4999
5252
|
warning: "bg-[var(--hc-color-warning)]",
|
|
5000
5253
|
destructive: "bg-[var(--hc-color-destructive)]"
|
|
5001
5254
|
};
|
|
5002
|
-
var Banner =
|
|
5003
|
-
({ variant = "primary", icon, title, description, action, className, children, ...props }, ref) => /* @__PURE__ */
|
|
5255
|
+
var Banner = React55.forwardRef(
|
|
5256
|
+
({ variant = "primary", icon, title, description, action, className, children, ...props }, ref) => /* @__PURE__ */ jsx64(
|
|
5004
5257
|
"div",
|
|
5005
5258
|
{
|
|
5006
5259
|
ref,
|
|
5007
5260
|
className: cn("rounded-lg px-6 py-5", variantStyles[variant], className),
|
|
5008
5261
|
...props,
|
|
5009
|
-
children: /* @__PURE__ */
|
|
5010
|
-
/* @__PURE__ */
|
|
5011
|
-
icon && /* @__PURE__ */
|
|
5012
|
-
/* @__PURE__ */
|
|
5013
|
-
title && /* @__PURE__ */
|
|
5014
|
-
description && /* @__PURE__ */
|
|
5262
|
+
children: /* @__PURE__ */ jsxs45("div", { className: "flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4", children: [
|
|
5263
|
+
/* @__PURE__ */ jsxs45("div", { className: "flex items-center gap-3", children: [
|
|
5264
|
+
icon && /* @__PURE__ */ jsx64("div", { className: cn("h-10 w-10 rounded-full flex items-center justify-center shrink-0 text-white", iconBgStyles[variant]), children: icon }),
|
|
5265
|
+
/* @__PURE__ */ jsxs45("div", { children: [
|
|
5266
|
+
title && /* @__PURE__ */ jsx64("p", { className: "text-sm font-bold text-foreground", children: title }),
|
|
5267
|
+
description && /* @__PURE__ */ jsx64("p", { className: "text-xs mt-0.5 text-muted-foreground", children: description }),
|
|
5015
5268
|
children
|
|
5016
5269
|
] })
|
|
5017
5270
|
] }),
|
|
5018
|
-
action && /* @__PURE__ */
|
|
5271
|
+
action && /* @__PURE__ */ jsx64("div", { className: "shrink-0", children: action })
|
|
5019
5272
|
] })
|
|
5020
5273
|
}
|
|
5021
5274
|
)
|
|
@@ -5023,8 +5276,8 @@ var Banner = React53.forwardRef(
|
|
|
5023
5276
|
Banner.displayName = "Banner";
|
|
5024
5277
|
|
|
5025
5278
|
// src/components/impersonation-banner.tsx
|
|
5026
|
-
import * as
|
|
5027
|
-
import { Fragment as
|
|
5279
|
+
import * as React56 from "react";
|
|
5280
|
+
import { Fragment as Fragment5, jsx as jsx65, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
5028
5281
|
function toMs(value) {
|
|
5029
5282
|
if (value instanceof Date) return value.getTime();
|
|
5030
5283
|
if (typeof value === "number") return value;
|
|
@@ -5039,21 +5292,21 @@ function formatRemaining(ms) {
|
|
|
5039
5292
|
const pad = (n) => String(n).padStart(2, "0");
|
|
5040
5293
|
return h > 0 ? `${h}:${pad(m)}:${pad(s)}` : `${m}:${pad(s)}`;
|
|
5041
5294
|
}
|
|
5042
|
-
var ImpersonationBanner =
|
|
5295
|
+
var ImpersonationBanner = React56.forwardRef(
|
|
5043
5296
|
({ actorLabel, mode, expiresAt, onExit, targetLabel, ops, inline = false, onExpire, className }, ref) => {
|
|
5044
5297
|
const endMs = toMs(expiresAt);
|
|
5045
|
-
const [now, setNow] =
|
|
5298
|
+
const [now, setNow] = React56.useState(() => Date.now());
|
|
5046
5299
|
const remaining = endMs - now;
|
|
5047
5300
|
const expired = remaining <= 0;
|
|
5048
|
-
const onExpireRef =
|
|
5301
|
+
const onExpireRef = React56.useRef(onExpire);
|
|
5049
5302
|
onExpireRef.current = onExpire;
|
|
5050
|
-
|
|
5303
|
+
React56.useEffect(() => {
|
|
5051
5304
|
if (expired) return void 0;
|
|
5052
5305
|
const timer = setInterval(() => setNow(Date.now()), 1e3);
|
|
5053
5306
|
return () => clearInterval(timer);
|
|
5054
5307
|
}, [expired]);
|
|
5055
|
-
const firedFor =
|
|
5056
|
-
|
|
5308
|
+
const firedFor = React56.useRef(null);
|
|
5309
|
+
React56.useEffect(() => {
|
|
5057
5310
|
if (expired && firedFor.current !== endMs) {
|
|
5058
5311
|
firedFor.current = endMs;
|
|
5059
5312
|
onExpireRef.current?.();
|
|
@@ -5062,9 +5315,9 @@ var ImpersonationBanner = React54.forwardRef(
|
|
|
5062
5315
|
const isRead = mode === "READ";
|
|
5063
5316
|
const modeText = isRead ? "Read-only" : "Changes allowed";
|
|
5064
5317
|
const opsText = ops && ops.length > 0 ? ops.join(", ") : null;
|
|
5065
|
-
return /* @__PURE__ */
|
|
5066
|
-
inline ? null : /* @__PURE__ */
|
|
5067
|
-
/* @__PURE__ */
|
|
5318
|
+
return /* @__PURE__ */ jsxs46(Fragment5, { children: [
|
|
5319
|
+
inline ? null : /* @__PURE__ */ jsx65("div", { "aria-hidden": "true", className: "h-12", "data-impersonation-spacer": "" }),
|
|
5320
|
+
/* @__PURE__ */ jsxs46(
|
|
5068
5321
|
"div",
|
|
5069
5322
|
{
|
|
5070
5323
|
ref,
|
|
@@ -5078,19 +5331,19 @@ var ImpersonationBanner = React54.forwardRef(
|
|
|
5078
5331
|
className
|
|
5079
5332
|
),
|
|
5080
5333
|
children: [
|
|
5081
|
-
/* @__PURE__ */
|
|
5082
|
-
/* @__PURE__ */
|
|
5083
|
-
/* @__PURE__ */
|
|
5084
|
-
targetLabel ? /* @__PURE__ */
|
|
5334
|
+
/* @__PURE__ */ jsx65("span", { className: "shrink-0 rounded px-2 py-0.5 text-xs font-bold uppercase tracking-wide ring-1 ring-current", children: "Support session" }),
|
|
5335
|
+
/* @__PURE__ */ jsxs46("p", { className: "min-w-0 flex-1 truncate", children: [
|
|
5336
|
+
/* @__PURE__ */ jsx65("span", { className: "font-semibold", children: actorLabel }),
|
|
5337
|
+
targetLabel ? /* @__PURE__ */ jsxs46(Fragment5, { children: [
|
|
5085
5338
|
" is acting as ",
|
|
5086
|
-
/* @__PURE__ */
|
|
5339
|
+
/* @__PURE__ */ jsx65("span", { className: "font-semibold", children: targetLabel })
|
|
5087
5340
|
] }) : " is acting as this user",
|
|
5088
5341
|
" \xB7 ",
|
|
5089
|
-
/* @__PURE__ */
|
|
5090
|
-
opsText ? /* @__PURE__ */
|
|
5342
|
+
/* @__PURE__ */ jsx65("span", { "data-testid": "impersonation-mode", children: modeText }),
|
|
5343
|
+
opsText ? /* @__PURE__ */ jsx65("span", { className: "hidden sm:inline", children: ` (${opsText})` }) : null
|
|
5091
5344
|
] }),
|
|
5092
|
-
/* @__PURE__ */
|
|
5093
|
-
/* @__PURE__ */
|
|
5345
|
+
/* @__PURE__ */ jsx65("span", { className: "shrink-0 tabular-nums", "aria-live": "off", title: "Time left in this support session", children: /* @__PURE__ */ jsx65("time", { "data-testid": "impersonation-countdown", dateTime: new Date(endMs).toISOString(), children: expired ? "Expired" : formatRemaining(remaining) }) }),
|
|
5346
|
+
/* @__PURE__ */ jsx65(
|
|
5094
5347
|
"button",
|
|
5095
5348
|
{
|
|
5096
5349
|
type: "button",
|
|
@@ -5111,20 +5364,20 @@ var ImpersonationBanner = React54.forwardRef(
|
|
|
5111
5364
|
ImpersonationBanner.displayName = "ImpersonationBanner";
|
|
5112
5365
|
|
|
5113
5366
|
// src/components/read-only-guard.tsx
|
|
5114
|
-
import { Fragment as
|
|
5367
|
+
import { Fragment as Fragment6, jsx as jsx66, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
5115
5368
|
var READ_ONLY_REASON = "Read-only support session: this action is turned off.";
|
|
5116
5369
|
function isGuarded({ mode, ops, op = "WRITE" }) {
|
|
5117
5370
|
if (ops) return !ops.includes(op);
|
|
5118
5371
|
return mode === "READ";
|
|
5119
5372
|
}
|
|
5120
5373
|
function ReadOnlyGuard({ mode, ops, op = "WRITE", reason = READ_ONLY_REASON, className, children }) {
|
|
5121
|
-
if (!isGuarded({ mode, ops, op })) return /* @__PURE__ */
|
|
5374
|
+
if (!isGuarded({ mode, ops, op })) return /* @__PURE__ */ jsx66(Fragment6, { children });
|
|
5122
5375
|
const swallow = (e) => {
|
|
5123
5376
|
e.preventDefault();
|
|
5124
5377
|
e.stopPropagation();
|
|
5125
5378
|
};
|
|
5126
|
-
return /* @__PURE__ */
|
|
5127
|
-
/* @__PURE__ */
|
|
5379
|
+
return /* @__PURE__ */ jsx66(TooltipProvider, { delayDuration: 150, children: /* @__PURE__ */ jsxs47(Tooltip, { children: [
|
|
5380
|
+
/* @__PURE__ */ jsx66(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx66(
|
|
5128
5381
|
"span",
|
|
5129
5382
|
{
|
|
5130
5383
|
tabIndex: 0,
|
|
@@ -5133,16 +5386,16 @@ function ReadOnlyGuard({ mode, ops, op = "WRITE", reason = READ_ONLY_REASON, cla
|
|
|
5133
5386
|
className: cn("inline-flex cursor-not-allowed", className),
|
|
5134
5387
|
onClickCapture: swallow,
|
|
5135
5388
|
onSubmitCapture: swallow,
|
|
5136
|
-
children: /* @__PURE__ */
|
|
5389
|
+
children: /* @__PURE__ */ jsx66("fieldset", { disabled: true, className: "contents", children })
|
|
5137
5390
|
}
|
|
5138
5391
|
) }),
|
|
5139
|
-
/* @__PURE__ */
|
|
5392
|
+
/* @__PURE__ */ jsx66(TooltipContent, { children: reason })
|
|
5140
5393
|
] }) });
|
|
5141
5394
|
}
|
|
5142
5395
|
ReadOnlyGuard.displayName = "ReadOnlyGuard";
|
|
5143
5396
|
|
|
5144
5397
|
// src/lib/impersonation.ts
|
|
5145
|
-
import * as
|
|
5398
|
+
import * as React57 from "react";
|
|
5146
5399
|
var OPERATION_CLASSES = ["READ", "WRITE", "DESTRUCTIVE", "FINANCIAL", "SECURITY"];
|
|
5147
5400
|
var PLATFORM_BLOCKED = /* @__PURE__ */ new Set(["FINANCIAL", "SECURITY"]);
|
|
5148
5401
|
var INACTIVE_IMPERSONATION = Object.freeze({
|
|
@@ -5206,10 +5459,10 @@ function readImpersonation(token, now = Date.now()) {
|
|
|
5206
5459
|
};
|
|
5207
5460
|
}
|
|
5208
5461
|
function useImpersonation(token) {
|
|
5209
|
-
const [tick, setTick] =
|
|
5210
|
-
const state =
|
|
5462
|
+
const [tick, setTick] = React57.useState(0);
|
|
5463
|
+
const state = React57.useMemo(() => readImpersonation(token), [token, tick]);
|
|
5211
5464
|
const expiresAtMs = state.expiresAt?.getTime() ?? null;
|
|
5212
|
-
|
|
5465
|
+
React57.useEffect(() => {
|
|
5213
5466
|
if (expiresAtMs === null) return void 0;
|
|
5214
5467
|
const delay = Math.max(0, expiresAtMs - Date.now());
|
|
5215
5468
|
const timer = setTimeout(() => setTick((t) => t + 1), Math.min(delay + 50, 2147e6));
|
|
@@ -5217,11 +5470,322 @@ function useImpersonation(token) {
|
|
|
5217
5470
|
}, [expiresAtMs]);
|
|
5218
5471
|
return state;
|
|
5219
5472
|
}
|
|
5473
|
+
|
|
5474
|
+
// src/components/help-widget/help-widget.tsx
|
|
5475
|
+
import * as React61 from "react";
|
|
5476
|
+
|
|
5477
|
+
// src/components/help-widget/consent-dialog.tsx
|
|
5478
|
+
import { jsx as jsx67, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
5479
|
+
function ConsentDialog({ open, onAllow, onDeny }) {
|
|
5480
|
+
return /* @__PURE__ */ jsx67(AlertDialog, { open, children: /* @__PURE__ */ jsxs48(AlertDialogContent, { size: "sm", children: [
|
|
5481
|
+
/* @__PURE__ */ jsxs48(AlertDialogHeader, { children: [
|
|
5482
|
+
/* @__PURE__ */ jsx67(AlertDialogTitle, { children: "Start a support session?" }),
|
|
5483
|
+
/* @__PURE__ */ jsx67(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." })
|
|
5484
|
+
] }),
|
|
5485
|
+
/* @__PURE__ */ jsxs48(AlertDialogFooter, { children: [
|
|
5486
|
+
/* @__PURE__ */ jsx67(AlertDialogCancel, { onClick: onDeny, children: "Deny" }),
|
|
5487
|
+
/* @__PURE__ */ jsx67(AlertDialogAction, { onClick: onAllow, children: "Allow" })
|
|
5488
|
+
] })
|
|
5489
|
+
] }) });
|
|
5490
|
+
}
|
|
5491
|
+
|
|
5492
|
+
// src/components/help-widget/help-session-banner.tsx
|
|
5493
|
+
import * as React58 from "react";
|
|
5494
|
+
import { Fragment as Fragment7, jsx as jsx68, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
5495
|
+
var HelpSessionBanner = React58.forwardRef(
|
|
5496
|
+
({ onRevoke, className }, ref) => {
|
|
5497
|
+
return /* @__PURE__ */ jsxs49(Fragment7, { children: [
|
|
5498
|
+
/* @__PURE__ */ jsx68("div", { "aria-hidden": "true", className: "h-12", "data-help-session-spacer": "" }),
|
|
5499
|
+
/* @__PURE__ */ jsxs49(
|
|
5500
|
+
"div",
|
|
5501
|
+
{
|
|
5502
|
+
ref,
|
|
5503
|
+
role: "status",
|
|
5504
|
+
"data-help-session-banner": "",
|
|
5505
|
+
className: cn(
|
|
5506
|
+
"fixed inset-x-0 top-0 z-[2147483000]",
|
|
5507
|
+
"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",
|
|
5508
|
+
className
|
|
5509
|
+
),
|
|
5510
|
+
children: [
|
|
5511
|
+
/* @__PURE__ */ jsx68("span", { className: "shrink-0 rounded px-2 py-0.5 text-xs font-bold uppercase tracking-wide ring-1 ring-current", children: "Support session" }),
|
|
5512
|
+
/* @__PURE__ */ jsx68("p", { className: "min-w-0 flex-1 truncate", children: "AI support is active on this page and may be recorded." }),
|
|
5513
|
+
/* @__PURE__ */ jsx68(
|
|
5514
|
+
"button",
|
|
5515
|
+
{
|
|
5516
|
+
type: "button",
|
|
5517
|
+
onClick: onRevoke,
|
|
5518
|
+
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",
|
|
5519
|
+
children: "Stop"
|
|
5520
|
+
}
|
|
5521
|
+
)
|
|
5522
|
+
]
|
|
5523
|
+
}
|
|
5524
|
+
)
|
|
5525
|
+
] });
|
|
5526
|
+
}
|
|
5527
|
+
);
|
|
5528
|
+
HelpSessionBanner.displayName = "HelpSessionBanner";
|
|
5529
|
+
|
|
5530
|
+
// src/components/help-widget/highlight-overlay.tsx
|
|
5531
|
+
import * as React59 from "react";
|
|
5532
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
5533
|
+
function findTarget({ selector, role, name }) {
|
|
5534
|
+
if (selector) return document.querySelector(selector);
|
|
5535
|
+
if (role) {
|
|
5536
|
+
const candidates = document.querySelectorAll(`[role="${role}"]`);
|
|
5537
|
+
for (const el of candidates) {
|
|
5538
|
+
const accessibleName = el.getAttribute("aria-label") ?? el.textContent?.trim() ?? "";
|
|
5539
|
+
if (!name || accessibleName.includes(name)) return el;
|
|
5540
|
+
}
|
|
5541
|
+
}
|
|
5542
|
+
return null;
|
|
5543
|
+
}
|
|
5544
|
+
function HighlightOverlay({ target, onDismiss }) {
|
|
5545
|
+
const [rect, setRect] = React59.useState(null);
|
|
5546
|
+
React59.useEffect(() => {
|
|
5547
|
+
if (!target) {
|
|
5548
|
+
setRect(null);
|
|
5549
|
+
onDismiss?.();
|
|
5550
|
+
return;
|
|
5551
|
+
}
|
|
5552
|
+
const el = findTarget(target);
|
|
5553
|
+
setRect(el ? el.getBoundingClientRect() : null);
|
|
5554
|
+
}, [target, onDismiss]);
|
|
5555
|
+
if (!target || !rect) return null;
|
|
5556
|
+
return /* @__PURE__ */ jsx69(
|
|
5557
|
+
"div",
|
|
5558
|
+
{
|
|
5559
|
+
"data-help-widget-highlight": "",
|
|
5560
|
+
role: "presentation",
|
|
5561
|
+
"aria-hidden": "true",
|
|
5562
|
+
style: {
|
|
5563
|
+
position: "fixed",
|
|
5564
|
+
left: rect.left - 4,
|
|
5565
|
+
top: rect.top - 4,
|
|
5566
|
+
width: rect.width + 8,
|
|
5567
|
+
height: rect.height + 8,
|
|
5568
|
+
pointerEvents: "none",
|
|
5569
|
+
zIndex: 2147483e3
|
|
5570
|
+
},
|
|
5571
|
+
className: "rounded-md ring-2 ring-primary ring-offset-2"
|
|
5572
|
+
}
|
|
5573
|
+
);
|
|
5574
|
+
}
|
|
5575
|
+
|
|
5576
|
+
// src/components/help-widget/use-help-session.ts
|
|
5577
|
+
import * as React60 from "react";
|
|
5578
|
+
function defaultCreateSession(baseUrl) {
|
|
5579
|
+
return async (request) => {
|
|
5580
|
+
const res = await fetch(`${baseUrl}/support/ai/session`, {
|
|
5581
|
+
method: "POST",
|
|
5582
|
+
headers: { "Content-Type": "application/json" },
|
|
5583
|
+
body: JSON.stringify(request)
|
|
5584
|
+
});
|
|
5585
|
+
if (!res.ok) throw new Error(`support/ai/session failed: ${res.status}`);
|
|
5586
|
+
return await res.json();
|
|
5587
|
+
};
|
|
5588
|
+
}
|
|
5589
|
+
async function defaultConnectRoom(session) {
|
|
5590
|
+
const { Room } = await import("livekit-client");
|
|
5591
|
+
const room = new Room();
|
|
5592
|
+
await room.connect(session.url, session.token);
|
|
5593
|
+
return { disconnect: () => room.disconnect() };
|
|
5594
|
+
}
|
|
5595
|
+
function useHelpSession({
|
|
5596
|
+
appId,
|
|
5597
|
+
route,
|
|
5598
|
+
createSession,
|
|
5599
|
+
connectRoom = defaultConnectRoom,
|
|
5600
|
+
baseUrl = ""
|
|
5601
|
+
}) {
|
|
5602
|
+
const [status, setStatus] = React60.useState("idle");
|
|
5603
|
+
const [language, setLanguage] = React60.useState("en");
|
|
5604
|
+
const connectionRef = React60.useRef(null);
|
|
5605
|
+
const createSessionRef = React60.useRef(createSession ?? defaultCreateSession(baseUrl));
|
|
5606
|
+
createSessionRef.current = createSession ?? defaultCreateSession(baseUrl);
|
|
5607
|
+
const requestSession = React60.useCallback(() => setStatus("consent-pending"), []);
|
|
5608
|
+
const deny = React60.useCallback(() => setStatus("idle"), []);
|
|
5609
|
+
const allow = React60.useCallback(async () => {
|
|
5610
|
+
const session = await createSessionRef.current({ appId, language, route });
|
|
5611
|
+
connectionRef.current = await connectRoom(session);
|
|
5612
|
+
setStatus("active");
|
|
5613
|
+
}, [appId, language, route, connectRoom]);
|
|
5614
|
+
const stop = React60.useCallback(() => {
|
|
5615
|
+
connectionRef.current?.disconnect();
|
|
5616
|
+
connectionRef.current = null;
|
|
5617
|
+
setStatus("idle");
|
|
5618
|
+
}, []);
|
|
5619
|
+
React60.useEffect(() => () => connectionRef.current?.disconnect(), []);
|
|
5620
|
+
return { status, language, setLanguage, requestSession, allow, deny, stop };
|
|
5621
|
+
}
|
|
5622
|
+
|
|
5623
|
+
// src/components/help-widget/help-widget.tsx
|
|
5624
|
+
import { jsx as jsx70, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
5625
|
+
var LANGUAGE_LABELS = {
|
|
5626
|
+
en: "English",
|
|
5627
|
+
hi: "Hindi",
|
|
5628
|
+
mr: "Marathi"
|
|
5629
|
+
};
|
|
5630
|
+
function HelpWidget({
|
|
5631
|
+
appId,
|
|
5632
|
+
route,
|
|
5633
|
+
defaultLanguage = "en",
|
|
5634
|
+
createSession,
|
|
5635
|
+
connectRoom,
|
|
5636
|
+
baseUrl,
|
|
5637
|
+
highlightTarget = null,
|
|
5638
|
+
className
|
|
5639
|
+
}) {
|
|
5640
|
+
const [open, setOpen] = React61.useState(false);
|
|
5641
|
+
const { status, language, setLanguage, requestSession, allow, deny, stop } = useHelpSession({
|
|
5642
|
+
appId,
|
|
5643
|
+
route,
|
|
5644
|
+
createSession,
|
|
5645
|
+
connectRoom,
|
|
5646
|
+
baseUrl
|
|
5647
|
+
});
|
|
5648
|
+
React61.useEffect(() => {
|
|
5649
|
+
setLanguage(defaultLanguage);
|
|
5650
|
+
}, []);
|
|
5651
|
+
return /* @__PURE__ */ jsxs50("div", { className: cn("relative", className), "data-help-widget": "", children: [
|
|
5652
|
+
status === "active" ? /* @__PURE__ */ jsx70(HelpSessionBanner, { onRevoke: stop }) : null,
|
|
5653
|
+
/* @__PURE__ */ jsx70(HighlightOverlay, { target: status === "active" ? highlightTarget : null }),
|
|
5654
|
+
/* @__PURE__ */ jsx70(
|
|
5655
|
+
"button",
|
|
5656
|
+
{
|
|
5657
|
+
type: "button",
|
|
5658
|
+
"aria-haspopup": "dialog",
|
|
5659
|
+
"aria-expanded": open,
|
|
5660
|
+
onClick: () => {
|
|
5661
|
+
setOpen(true);
|
|
5662
|
+
if (status === "idle") requestSession();
|
|
5663
|
+
},
|
|
5664
|
+
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",
|
|
5665
|
+
children: "Help"
|
|
5666
|
+
}
|
|
5667
|
+
),
|
|
5668
|
+
/* @__PURE__ */ jsx70(
|
|
5669
|
+
ConsentDialog,
|
|
5670
|
+
{
|
|
5671
|
+
open: open && status === "consent-pending",
|
|
5672
|
+
onAllow: () => {
|
|
5673
|
+
void allow();
|
|
5674
|
+
},
|
|
5675
|
+
onDeny: () => {
|
|
5676
|
+
deny();
|
|
5677
|
+
setOpen(false);
|
|
5678
|
+
}
|
|
5679
|
+
}
|
|
5680
|
+
),
|
|
5681
|
+
open ? /* @__PURE__ */ jsxs50(
|
|
5682
|
+
"div",
|
|
5683
|
+
{
|
|
5684
|
+
role: "dialog",
|
|
5685
|
+
"aria-label": "Help chat",
|
|
5686
|
+
"data-help-widget-panel": "",
|
|
5687
|
+
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",
|
|
5688
|
+
children: [
|
|
5689
|
+
/* @__PURE__ */ jsxs50("div", { className: "flex items-center justify-between gap-2", children: [
|
|
5690
|
+
/* @__PURE__ */ jsx70("label", { htmlFor: "help-widget-language", className: "text-xs font-medium text-muted-foreground", children: "Language" }),
|
|
5691
|
+
/* @__PURE__ */ jsx70(
|
|
5692
|
+
"select",
|
|
5693
|
+
{
|
|
5694
|
+
id: "help-widget-language",
|
|
5695
|
+
value: language,
|
|
5696
|
+
onChange: (e) => setLanguage(e.target.value),
|
|
5697
|
+
className: "rounded border border-border bg-background px-2 py-1 text-xs",
|
|
5698
|
+
children: Object.entries(LANGUAGE_LABELS).map(([value, label]) => /* @__PURE__ */ jsx70("option", { value, children: label }, value))
|
|
5699
|
+
}
|
|
5700
|
+
)
|
|
5701
|
+
] }),
|
|
5702
|
+
/* @__PURE__ */ jsx70("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." }),
|
|
5703
|
+
/* @__PURE__ */ jsx70(
|
|
5704
|
+
"button",
|
|
5705
|
+
{
|
|
5706
|
+
type: "button",
|
|
5707
|
+
onClick: () => setOpen(false),
|
|
5708
|
+
className: "self-end rounded-md px-3 py-1 text-sm font-medium text-muted-foreground hover:text-foreground",
|
|
5709
|
+
children: "Close"
|
|
5710
|
+
}
|
|
5711
|
+
)
|
|
5712
|
+
]
|
|
5713
|
+
}
|
|
5714
|
+
) : null
|
|
5715
|
+
] });
|
|
5716
|
+
}
|
|
5717
|
+
|
|
5718
|
+
// src/lib/app-ids.ts
|
|
5719
|
+
var SUPPORT_APP_IDS = [
|
|
5720
|
+
"bill",
|
|
5721
|
+
"books",
|
|
5722
|
+
"contract",
|
|
5723
|
+
"crm",
|
|
5724
|
+
"hear",
|
|
5725
|
+
"hire",
|
|
5726
|
+
"interviewer",
|
|
5727
|
+
"itam",
|
|
5728
|
+
"itom",
|
|
5729
|
+
"itsm",
|
|
5730
|
+
"mobile",
|
|
5731
|
+
"notes",
|
|
5732
|
+
"pay",
|
|
5733
|
+
"people",
|
|
5734
|
+
"procure",
|
|
5735
|
+
"projects",
|
|
5736
|
+
"sign",
|
|
5737
|
+
"space",
|
|
5738
|
+
"spend",
|
|
5739
|
+
"transcribe",
|
|
5740
|
+
"workspace"
|
|
5741
|
+
];
|
|
5742
|
+
function isSupportAppId(value) {
|
|
5743
|
+
return typeof value === "string" && SUPPORT_APP_IDS.includes(value);
|
|
5744
|
+
}
|
|
5745
|
+
|
|
5746
|
+
// src/lib/mask-snapshot.ts
|
|
5747
|
+
var MASK = "[masked]";
|
|
5748
|
+
var PATTERNS = [
|
|
5749
|
+
// PAN: AAAAA9999A
|
|
5750
|
+
/\b[A-Z]{5}[0-9]{4}[A-Z]\b/g,
|
|
5751
|
+
// Aadhaar: 12 digits, optionally grouped as 4-4-4 with spaces or hyphens
|
|
5752
|
+
/\b\d{4}[\s-]?\d{4}[\s-]?\d{4}\b/g,
|
|
5753
|
+
// IFSC: AAAA0999999
|
|
5754
|
+
/\b[A-Z]{4}0[A-Z0-9]{6}\b/g,
|
|
5755
|
+
// Bare bank account numbers: 9 to 18 digits not already matched as Aadhaar above
|
|
5756
|
+
/\b\d{9,18}\b/g
|
|
5757
|
+
];
|
|
5758
|
+
function redactText(text) {
|
|
5759
|
+
return PATTERNS.reduce((acc, pattern) => acc.replace(pattern, MASK), text);
|
|
5760
|
+
}
|
|
5761
|
+
function maskControls(root) {
|
|
5762
|
+
const controls = root.querySelectorAll(
|
|
5763
|
+
"input, textarea, select"
|
|
5764
|
+
);
|
|
5765
|
+
controls.forEach((el) => {
|
|
5766
|
+
if ("value" in el) el.setAttribute("data-help-widget-masked-value", MASK);
|
|
5767
|
+
});
|
|
5768
|
+
}
|
|
5769
|
+
function maskSnapshot(root = document.body) {
|
|
5770
|
+
const clone = root.cloneNode(true);
|
|
5771
|
+
const container = clone instanceof Document ? clone.body : clone;
|
|
5772
|
+
maskControls(container);
|
|
5773
|
+
const controls = container.querySelectorAll(
|
|
5774
|
+
"input, textarea, select"
|
|
5775
|
+
);
|
|
5776
|
+
controls.forEach((el) => {
|
|
5777
|
+
const replacement = container.ownerDocument?.createTextNode(MASK) ?? document.createTextNode(MASK);
|
|
5778
|
+
el.replaceWith(replacement);
|
|
5779
|
+
});
|
|
5780
|
+
const text = container.textContent ?? "";
|
|
5781
|
+
return redactText(text);
|
|
5782
|
+
}
|
|
5220
5783
|
export {
|
|
5221
5784
|
Accordion,
|
|
5222
5785
|
AccordionContent,
|
|
5223
5786
|
AccordionItem,
|
|
5224
5787
|
AccordionTrigger,
|
|
5788
|
+
AiChatbotLogo,
|
|
5225
5789
|
Alert,
|
|
5226
5790
|
AlertAction,
|
|
5227
5791
|
AlertDescription,
|
|
@@ -5239,6 +5803,7 @@ export {
|
|
|
5239
5803
|
AlertDialogTrigger,
|
|
5240
5804
|
AlertTitle,
|
|
5241
5805
|
AppHeader,
|
|
5806
|
+
AppLauncher,
|
|
5242
5807
|
AspectRatio,
|
|
5243
5808
|
Avatar,
|
|
5244
5809
|
AvatarFallback,
|
|
@@ -5291,6 +5856,7 @@ export {
|
|
|
5291
5856
|
CommandList,
|
|
5292
5857
|
CommandSeparator,
|
|
5293
5858
|
CommandShortcut,
|
|
5859
|
+
ConsentDialog,
|
|
5294
5860
|
ContextMenu,
|
|
5295
5861
|
ContextMenuCheckboxItem,
|
|
5296
5862
|
ContextMenuContent,
|
|
@@ -5361,6 +5927,9 @@ export {
|
|
|
5361
5927
|
H2,
|
|
5362
5928
|
H3,
|
|
5363
5929
|
H4,
|
|
5930
|
+
HelpSessionBanner,
|
|
5931
|
+
HelpWidget,
|
|
5932
|
+
HighlightOverlay,
|
|
5364
5933
|
HoverCard,
|
|
5365
5934
|
HoverCardContent,
|
|
5366
5935
|
HoverCardTrigger,
|
|
@@ -5428,6 +5997,7 @@ export {
|
|
|
5428
5997
|
ResizableHandle,
|
|
5429
5998
|
ResizablePanel,
|
|
5430
5999
|
ResizablePanelGroup,
|
|
6000
|
+
SUPPORT_APP_IDS,
|
|
5431
6001
|
ScrollArea,
|
|
5432
6002
|
ScrollBar,
|
|
5433
6003
|
Select,
|
|
@@ -5507,6 +6077,8 @@ export {
|
|
|
5507
6077
|
formatRemaining,
|
|
5508
6078
|
inputVariants,
|
|
5509
6079
|
isGuarded,
|
|
6080
|
+
isSupportAppId,
|
|
6081
|
+
maskSnapshot,
|
|
5510
6082
|
modeOfOps,
|
|
5511
6083
|
navigationMenuTriggerStyle,
|
|
5512
6084
|
readImpersonation,
|
|
@@ -5515,6 +6087,7 @@ export {
|
|
|
5515
6087
|
toast,
|
|
5516
6088
|
toggleVariants,
|
|
5517
6089
|
useFormField,
|
|
6090
|
+
useHelpSession,
|
|
5518
6091
|
useImpersonation,
|
|
5519
6092
|
useSidebar,
|
|
5520
6093
|
useTheme2 as useTheme
|