@vantageos/mosaic-blocks 0.5.27-alpha → 0.5.28-alpha

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/index.js CHANGED
@@ -29,7 +29,7 @@ import { AlertDialog } from '@base-ui/react/alert-dialog';
29
29
  import { Popover } from '@base-ui/react/popover';
30
30
 
31
31
  // src/version.ts
32
- var version = "0.5.27-alpha";
32
+ var version = "0.5.28-alpha";
33
33
  function Placeholder({ label = "mosaic-blocks placeholder" }) {
34
34
  return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
35
35
  }
@@ -6764,6 +6764,90 @@ function MosaicMemoryCard(props) {
6764
6764
  );
6765
6765
  }
6766
6766
  MosaicMemoryCard.displayName = "MosaicMemoryCard";
6767
+ var memoryDashboardViewToggleButtonVariants = cva(
6768
+ "flex items-center justify-center rounded-md border border-border px-3 py-1.5 text-sm transition-colors",
6769
+ {
6770
+ variants: {
6771
+ pressed: {
6772
+ true: "bg-foreground text-background",
6773
+ false: "bg-background text-muted-foreground hover:bg-muted"
6774
+ }
6775
+ },
6776
+ defaultVariants: {
6777
+ pressed: false
6778
+ }
6779
+ }
6780
+ );
6781
+ function cn58(...classes) {
6782
+ return classes.filter(Boolean).join(" ");
6783
+ }
6784
+ function MosaicMemoryDashboard({
6785
+ title,
6786
+ addLabel,
6787
+ onAdd,
6788
+ stats,
6789
+ searchSlot,
6790
+ viewMode,
6791
+ onViewModeChange,
6792
+ tilesViewLabel,
6793
+ rowsViewLabel,
6794
+ children,
6795
+ className
6796
+ }) {
6797
+ return /* @__PURE__ */ jsxs(
6798
+ "div",
6799
+ {
6800
+ "data-slot": "memory-dashboard",
6801
+ className: cn58(
6802
+ "flex flex-col gap-4 rounded-lg border border-border bg-background p-4",
6803
+ className
6804
+ ),
6805
+ children: [
6806
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3", children: [
6807
+ /* @__PURE__ */ jsx("h1", { className: "font-semibold text-foreground text-lg", children: title }),
6808
+ /* @__PURE__ */ jsx(MosaicButton, { type: "button", onClick: onAdd, children: addLabel })
6809
+ ] }),
6810
+ stats.length > 0 && /* @__PURE__ */ jsx("div", { "data-slot": "memory-dashboard-stats", className: "grid grid-cols-2 gap-3 sm:grid-cols-4", children: stats.map((stat) => /* @__PURE__ */ jsxs(
6811
+ "div",
6812
+ {
6813
+ "data-slot": "memory-dashboard-stat",
6814
+ className: "flex flex-col rounded-md border border-border px-3 py-2",
6815
+ children: [
6816
+ /* @__PURE__ */ jsx("span", { className: "font-semibold text-foreground text-lg tabular-nums", children: stat.value }),
6817
+ /* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs", children: stat.label })
6818
+ ]
6819
+ },
6820
+ stat.label
6821
+ )) }),
6822
+ searchSlot && /* @__PURE__ */ jsx("div", { "data-slot": "memory-dashboard-search", className: "w-full", children: searchSlot }),
6823
+ /* @__PURE__ */ jsxs("div", { "data-slot": "memory-dashboard-view-toggle", className: "flex items-center gap-2 self-start", children: [
6824
+ /* @__PURE__ */ jsx(
6825
+ "button",
6826
+ {
6827
+ type: "button",
6828
+ "aria-pressed": viewMode === "tiles",
6829
+ onClick: () => onViewModeChange("tiles"),
6830
+ className: memoryDashboardViewToggleButtonVariants({ pressed: viewMode === "tiles" }),
6831
+ children: tilesViewLabel
6832
+ }
6833
+ ),
6834
+ /* @__PURE__ */ jsx(
6835
+ "button",
6836
+ {
6837
+ type: "button",
6838
+ "aria-pressed": viewMode === "rows",
6839
+ onClick: () => onViewModeChange("rows"),
6840
+ className: memoryDashboardViewToggleButtonVariants({ pressed: viewMode === "rows" }),
6841
+ children: rowsViewLabel
6842
+ }
6843
+ )
6844
+ ] }),
6845
+ /* @__PURE__ */ jsx("div", { "data-slot": "memory-dashboard-results", className: "flex flex-col gap-2", children })
6846
+ ]
6847
+ }
6848
+ );
6849
+ }
6850
+ MosaicMemoryDashboard.displayName = "MosaicMemoryDashboard";
6767
6851
  var templateAgentCardVariants = cva(
6768
6852
  [
6769
6853
  "rounded-lg border border-border bg-card text-card-foreground shadow-sm",
@@ -6787,7 +6871,7 @@ var templateAgentCardBadgeVariants = cva([
6787
6871
  var templateAgentCardTagVariants = cva([
6788
6872
  "inline-flex items-center rounded-full border border-border bg-muted px-2 py-0.5 text-xs text-muted-foreground"
6789
6873
  ]);
6790
- function cn58(...classes) {
6874
+ function cn59(...classes) {
6791
6875
  return classes.filter(Boolean).join(" ");
6792
6876
  }
6793
6877
  var MAX_VISIBLE_TAGS2 = 3;
@@ -6856,7 +6940,7 @@ function MosaicTemplateAgentCard({
6856
6940
  {
6857
6941
  ref,
6858
6942
  "data-slot": "template-agent-card",
6859
- className: cn58(templateAgentCardVariants({ selected: isSelected }), "p-4", className),
6943
+ className: cn59(templateAgentCardVariants({ selected: isSelected }), "p-4", className),
6860
6944
  children: [
6861
6945
  /* @__PURE__ */ jsx("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ jsxs(
6862
6946
  "button",
@@ -6865,7 +6949,7 @@ function MosaicTemplateAgentCard({
6865
6949
  onClick: () => onSelect(template),
6866
6950
  "aria-label": selectAriaLabel,
6867
6951
  "aria-pressed": isSelected,
6868
- className: cn58(
6952
+ className: cn59(
6869
6953
  "flex min-w-0 flex-1 items-start gap-2 rounded-md text-left",
6870
6954
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
6871
6955
  ),
@@ -6879,11 +6963,11 @@ function MosaicTemplateAgentCard({
6879
6963
  }
6880
6964
  ) }),
6881
6965
  /* @__PURE__ */ jsxs("div", { className: "mt-3 flex flex-wrap items-center gap-2", children: [
6882
- template.category && /* @__PURE__ */ jsx("span", { className: cn58(templateAgentCardBadgeVariants()), children: template.category }),
6883
- /* @__PURE__ */ jsx("span", { className: cn58(templateAgentCardBadgeVariants()), children: agentCountLabel }),
6884
- formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsx("span", { className: cn58(templateAgentCardBadgeVariants()), children: formatUsageCount(template.usageCount) }),
6885
- visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className: cn58(templateAgentCardTagVariants()), children: tag }, tag)),
6886
- hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className: cn58(templateAgentCardTagVariants()), children: formatMoreTags(hiddenTagCount) })
6966
+ template.category && /* @__PURE__ */ jsx("span", { className: cn59(templateAgentCardBadgeVariants()), children: template.category }),
6967
+ /* @__PURE__ */ jsx("span", { className: cn59(templateAgentCardBadgeVariants()), children: agentCountLabel }),
6968
+ formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsx("span", { className: cn59(templateAgentCardBadgeVariants()), children: formatUsageCount(template.usageCount) }),
6969
+ visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className: cn59(templateAgentCardTagVariants()), children: tag }, tag)),
6970
+ hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className: cn59(templateAgentCardTagVariants()), children: formatMoreTags(hiddenTagCount) })
6887
6971
  ] }),
6888
6972
  (onPreview || onDuplicate) && /* @__PURE__ */ jsxs("div", { className: "mt-3 flex items-center gap-2 border-t border-border pt-2", children: [
6889
6973
  onPreview && /* @__PURE__ */ jsxs(
@@ -6892,7 +6976,7 @@ function MosaicTemplateAgentCard({
6892
6976
  type: "button",
6893
6977
  onClick: () => onPreview(template),
6894
6978
  "aria-label": previewAriaLabel,
6895
- className: cn58(
6979
+ className: cn59(
6896
6980
  "inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
6897
6981
  "text-muted-foreground hover:bg-accent hover:text-accent-foreground",
6898
6982
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -6909,7 +6993,7 @@ function MosaicTemplateAgentCard({
6909
6993
  type: "button",
6910
6994
  onClick: () => onDuplicate(template),
6911
6995
  "aria-label": duplicateAriaLabel,
6912
- className: cn58(
6996
+ className: cn59(
6913
6997
  "inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
6914
6998
  "text-muted-foreground hover:bg-accent hover:text-accent-foreground",
6915
6999
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -6926,7 +7010,7 @@ function MosaicTemplateAgentCard({
6926
7010
  );
6927
7011
  }
6928
7012
  MosaicTemplateAgentCard.displayName = "MosaicTemplateAgentCard";
6929
- function cn59(...classes) {
7013
+ function cn60(...classes) {
6930
7014
  return classes.filter(Boolean).join(" ");
6931
7015
  }
6932
7016
  function SearchIcon() {
@@ -7027,7 +7111,7 @@ function MosaicSelectorModal({
7027
7111
  value: query,
7028
7112
  onChange: (e) => setQuery(e.target.value),
7029
7113
  placeholder: searchPlaceholder,
7030
- className: cn59(
7114
+ className: cn60(
7031
7115
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
7032
7116
  "text-sm text-foreground placeholder:text-muted-foreground",
7033
7117
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -7041,7 +7125,7 @@ function MosaicSelectorModal({
7041
7125
  {
7042
7126
  type: "button",
7043
7127
  onClick: () => setActiveCategory("all"),
7044
- className: cn59(
7128
+ className: cn60(
7045
7129
  "shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
7046
7130
  activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
7047
7131
  ),
@@ -7053,7 +7137,7 @@ function MosaicSelectorModal({
7053
7137
  {
7054
7138
  type: "button",
7055
7139
  onClick: () => setActiveCategory(cat.id),
7056
- className: cn59(
7140
+ className: cn60(
7057
7141
  "shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
7058
7142
  activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
7059
7143
  ),
@@ -7065,7 +7149,7 @@ function MosaicSelectorModal({
7065
7149
  /* @__PURE__ */ jsxs(
7066
7150
  "div",
7067
7151
  {
7068
- className: cn59(
7152
+ className: cn60(
7069
7153
  "max-h-[50vh] overflow-y-auto",
7070
7154
  columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
7071
7155
  ),
@@ -7077,7 +7161,7 @@ function MosaicSelectorModal({
7077
7161
  {
7078
7162
  type: "button",
7079
7163
  onClick: () => setPendingId(item.id),
7080
- className: cn59(
7164
+ className: cn60(
7081
7165
  "group relative rounded-lg border p-4 text-left transition-all duration-150",
7082
7166
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
7083
7167
  isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
@@ -7115,7 +7199,7 @@ function MosaicSelectorModal({
7115
7199
  {
7116
7200
  type: "button",
7117
7201
  onClick: onClose,
7118
- className: cn59(
7202
+ className: cn60(
7119
7203
  "inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
7120
7204
  "bg-background px-4 py-2 text-sm font-medium text-foreground",
7121
7205
  "hover:bg-accent hover:text-accent-foreground",
@@ -7130,7 +7214,7 @@ function MosaicSelectorModal({
7130
7214
  type: "button",
7131
7215
  onClick: handleConfirm,
7132
7216
  disabled: !pendingItem,
7133
- className: cn59(
7217
+ className: cn60(
7134
7218
  "inline-flex min-h-[44px] items-center justify-center rounded-md",
7135
7219
  "bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
7136
7220
  "hover:bg-primary/90",
@@ -7146,7 +7230,7 @@ function MosaicSelectorModal({
7146
7230
  );
7147
7231
  }
7148
7232
  MosaicSelectorModal.displayName = "MosaicSelectorModal";
7149
- function cn60(...classes) {
7233
+ function cn61(...classes) {
7150
7234
  return classes.filter(Boolean).join(" ");
7151
7235
  }
7152
7236
  function relativeTime(ts) {
@@ -7344,6 +7428,7 @@ function MosaicMessageCard({
7344
7428
  removeBookmarkLabel,
7345
7429
  bookmarkLabel,
7346
7430
  copyMessageLabel,
7431
+ aiSenderLabel,
7347
7432
  className
7348
7433
  }) {
7349
7434
  const [bookmarked, setBookmarked] = React30.useState(message.bookmarked ?? false);
@@ -7402,7 +7487,7 @@ function MosaicMessageCard({
7402
7487
  "div",
7403
7488
  {
7404
7489
  "data-slot": "message-card",
7405
- className: cn60(
7490
+ className: cn61(
7406
7491
  "rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
7407
7492
  compact && "p-3",
7408
7493
  message.sender.type === "user" && "bg-primary/5",
@@ -7412,7 +7497,7 @@ function MosaicMessageCard({
7412
7497
  /* @__PURE__ */ jsx(
7413
7498
  "span",
7414
7499
  {
7415
- className: cn60(
7500
+ className: cn61(
7416
7501
  "inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
7417
7502
  compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
7418
7503
  message.sender.accentColor ?? "bg-muted text-muted-foreground"
@@ -7430,15 +7515,15 @@ function MosaicMessageCard({
7430
7515
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
7431
7516
  /* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
7432
7517
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
7433
- /* @__PURE__ */ jsx("span", { className: cn60("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
7434
- message.sender.type === "ai" && /* @__PURE__ */ jsx("span", { className: "rounded-full bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground", children: "AI" })
7518
+ /* @__PURE__ */ jsx("span", { className: cn61("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
7519
+ message.sender.type === "ai" && aiSenderLabel && /* @__PURE__ */ jsx("span", { className: "rounded-full bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground", children: aiSenderLabel })
7435
7520
  ] }),
7436
7521
  /* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
7437
7522
  ] }),
7438
7523
  /* @__PURE__ */ jsx(
7439
7524
  "p",
7440
7525
  {
7441
- className: cn60(
7526
+ className: cn61(
7442
7527
  "leading-relaxed text-foreground mb-3",
7443
7528
  compact ? "text-sm" : "text-base"
7444
7529
  ),
@@ -7453,7 +7538,7 @@ function MosaicMessageCard({
7453
7538
  {
7454
7539
  type: "button",
7455
7540
  onClick: handleLike,
7456
- className: cn60(
7541
+ className: cn61(
7457
7542
  "inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
7458
7543
  "hover:bg-accent hover:text-accent-foreground",
7459
7544
  "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
@@ -7471,7 +7556,7 @@ function MosaicMessageCard({
7471
7556
  {
7472
7557
  type: "button",
7473
7558
  onClick: handleDislike,
7474
- className: cn60(
7559
+ className: cn61(
7475
7560
  "inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
7476
7561
  "hover:bg-accent hover:text-accent-foreground",
7477
7562
  "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
@@ -7516,7 +7601,7 @@ function MosaicMessageCard({
7516
7601
  {
7517
7602
  type: "button",
7518
7603
  onClick: handleBookmark,
7519
- className: cn60(
7604
+ className: cn61(
7520
7605
  "inline-flex h-8 w-8 items-center justify-center rounded-md",
7521
7606
  "hover:bg-accent hover:text-accent-foreground",
7522
7607
  "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
@@ -7617,7 +7702,7 @@ function MosaicMessageCard({
7617
7702
  );
7618
7703
  }
7619
7704
  MosaicMessageCard.displayName = "MosaicMessageCard";
7620
- function cn61(...classes) {
7705
+ function cn62(...classes) {
7621
7706
  return classes.filter(Boolean).join(" ");
7622
7707
  }
7623
7708
  function SearchIcon2() {
@@ -7667,7 +7752,7 @@ function MessageListDesktop({
7667
7752
  const filtered = query ? messages.filter(
7668
7753
  (m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
7669
7754
  ) : messages;
7670
- return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className: cn61("flex h-full flex-col", className), children: [
7755
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className: cn62("flex h-full flex-col", className), children: [
7671
7756
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
7672
7757
  title && /* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold", children: title }),
7673
7758
  /* @__PURE__ */ jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
@@ -7679,7 +7764,7 @@ function MessageListDesktop({
7679
7764
  value: query,
7680
7765
  onChange: (e) => setQuery(e.target.value),
7681
7766
  placeholder: searchPlaceholder,
7682
- className: cn61(
7767
+ className: cn62(
7683
7768
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
7684
7769
  "text-sm placeholder:text-muted-foreground",
7685
7770
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -7715,7 +7800,7 @@ function MessageListDesktop({
7715
7800
  {
7716
7801
  type: "button",
7717
7802
  onClick: onLoadMore,
7718
- className: cn61(
7803
+ className: cn62(
7719
7804
  "w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
7720
7805
  "hover:bg-accent hover:text-accent-foreground",
7721
7806
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -7746,7 +7831,7 @@ function MessageListMobile({
7746
7831
  copyMessageLabel,
7747
7832
  className
7748
7833
  }) {
7749
- return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className: cn61("flex flex-col", className), children: [
7834
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className: cn62("flex flex-col", className), children: [
7750
7835
  title && /* @__PURE__ */ jsx("div", { className: "sticky top-0 z-10 border-b border-border bg-background px-4 py-3", children: /* @__PURE__ */ jsx("h2", { className: "text-base font-semibold", children: title }) }),
7751
7836
  /* @__PURE__ */ jsxs("div", { className: "space-y-3 p-4", children: [
7752
7837
  isLoading && /* @__PURE__ */ jsx("div", { className: "space-y-3", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx("div", { className: "h-20 animate-pulse rounded-lg bg-muted" }, i)) }),
@@ -7776,7 +7861,7 @@ function MessageListMobile({
7776
7861
  {
7777
7862
  type: "button",
7778
7863
  onClick: onLoadMore,
7779
- className: cn61(
7864
+ className: cn62(
7780
7865
  "w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
7781
7866
  "hover:bg-accent hover:text-accent-foreground",
7782
7867
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -7791,7 +7876,7 @@ function MosaicMessageList(props) {
7791
7876
  return isMobile ? /* @__PURE__ */ jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsx(MessageListDesktop, { ...props });
7792
7877
  }
7793
7878
  MosaicMessageList.displayName = "MosaicMessageList";
7794
- function cn62(...classes) {
7879
+ function cn63(...classes) {
7795
7880
  return classes.filter(Boolean).join(" ");
7796
7881
  }
7797
7882
  function ChevronLeftIcon2() {
@@ -7871,7 +7956,7 @@ function MosaicFilterSidebar({
7871
7956
  {
7872
7957
  "data-slot": "filter-sidebar",
7873
7958
  style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
7874
- className: cn62(
7959
+ className: cn63(
7875
7960
  "relative flex flex-col border-r border-border bg-card",
7876
7961
  "transition-[width] duration-200 ease-in-out",
7877
7962
  "overflow-hidden",
@@ -7883,7 +7968,7 @@ function MosaicFilterSidebar({
7883
7968
  {
7884
7969
  type: "button",
7885
7970
  onClick: onToggleCollapse,
7886
- className: cn62(
7971
+ className: cn63(
7887
7972
  "absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
7888
7973
  "border border-border bg-background shadow-sm",
7889
7974
  "hover:bg-accent hover:text-accent-foreground",
@@ -7913,7 +7998,7 @@ function MosaicFilterSidebar({
7913
7998
  {
7914
7999
  type: "button",
7915
8000
  onClick: () => onFilterChange(f.id),
7916
- className: cn62(
8001
+ className: cn63(
7917
8002
  "flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
7918
8003
  "transition-colors hover:bg-accent hover:text-accent-foreground",
7919
8004
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
@@ -7933,7 +8018,7 @@ function MosaicFilterSidebar({
7933
8018
  {
7934
8019
  type: "button",
7935
8020
  onClick: () => onCategoryChange(cat.id),
7936
- className: cn62(
8021
+ className: cn63(
7937
8022
  "flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
7938
8023
  "transition-colors hover:bg-accent hover:text-accent-foreground",
7939
8024
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
@@ -7953,7 +8038,7 @@ function MosaicFilterSidebar({
7953
8038
  );
7954
8039
  }
7955
8040
  MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
7956
- function cn63(...classes) {
8041
+ function cn64(...classes) {
7957
8042
  return classes.filter(Boolean).join(" ");
7958
8043
  }
7959
8044
  function SearchIcon3() {
@@ -8078,7 +8163,7 @@ function AgentListDesktop({
8078
8163
  value: query,
8079
8164
  onChange: (e) => setQuery(e.target.value),
8080
8165
  placeholder: searchPlaceholder,
8081
- className: cn63(
8166
+ className: cn64(
8082
8167
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
8083
8168
  "text-sm placeholder:text-muted-foreground",
8084
8169
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -8091,7 +8176,7 @@ function AgentListDesktop({
8091
8176
  {
8092
8177
  type: "button",
8093
8178
  onClick: onCreateAgent,
8094
- className: cn63(
8179
+ className: cn64(
8095
8180
  "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
8096
8181
  "hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
8097
8182
  ),
@@ -8160,7 +8245,7 @@ function AgentListMobile({
8160
8245
  {
8161
8246
  type: "button",
8162
8247
  onClick: () => setFilterOpen(true),
8163
- className: cn63(
8248
+ className: cn64(
8164
8249
  "inline-flex h-9 w-9 items-center justify-center rounded-md",
8165
8250
  "border border-border bg-background text-foreground",
8166
8251
  "hover:bg-accent hover:text-accent-foreground",
@@ -8175,7 +8260,7 @@ function AgentListMobile({
8175
8260
  {
8176
8261
  type: "button",
8177
8262
  onClick: onCreateAgent,
8178
- className: cn63(
8263
+ className: cn64(
8179
8264
  "inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
8180
8265
  "hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
8181
8266
  ),
@@ -8196,7 +8281,7 @@ function AgentListMobile({
8196
8281
  value: query,
8197
8282
  onChange: (e) => setQuery(e.target.value),
8198
8283
  placeholder: searchPlaceholder,
8199
- className: cn63(
8284
+ className: cn64(
8200
8285
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
8201
8286
  "text-sm placeholder:text-muted-foreground",
8202
8287
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -8258,7 +8343,7 @@ function MosaicAgentList(props) {
8258
8343
  return isMobile ? /* @__PURE__ */ jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsx(AgentListDesktop, { ...props });
8259
8344
  }
8260
8345
  MosaicAgentList.displayName = "MosaicAgentList";
8261
- function cn64(...classes) {
8346
+ function cn65(...classes) {
8262
8347
  return classes.filter(Boolean).join(" ");
8263
8348
  }
8264
8349
  function StarIcon({ filled }) {
@@ -8355,7 +8440,7 @@ function MarketplaceCard({
8355
8440
  "div",
8356
8441
  {
8357
8442
  "data-slot": "marketplace-card",
8358
- className: cn64(
8443
+ className: cn65(
8359
8444
  "rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
8360
8445
  compact ? "flex items-center gap-3" : "flex flex-col gap-3"
8361
8446
  ),
@@ -8363,7 +8448,7 @@ function MarketplaceCard({
8363
8448
  item.icon && /* @__PURE__ */ jsx(
8364
8449
  "div",
8365
8450
  {
8366
- className: cn64(
8451
+ className: cn65(
8367
8452
  "flex shrink-0 items-center justify-center rounded-lg",
8368
8453
  compact ? "h-10 w-10" : "h-12 w-12",
8369
8454
  item.accentClass ?? "bg-muted text-muted-foreground"
@@ -8374,7 +8459,7 @@ function MarketplaceCard({
8374
8459
  /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
8375
8460
  /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2", children: [
8376
8461
  /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
8377
- /* @__PURE__ */ jsx("p", { className: cn64("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
8462
+ /* @__PURE__ */ jsx("p", { className: cn65("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
8378
8463
  item.description && !compact && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
8379
8464
  ] }),
8380
8465
  item.price && /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-full bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground", children: item.price })
@@ -8391,13 +8476,13 @@ function MarketplaceCard({
8391
8476
  ] })
8392
8477
  ] })
8393
8478
  ] }),
8394
- /* @__PURE__ */ jsxs("div", { className: cn64("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
8479
+ /* @__PURE__ */ jsxs("div", { className: cn65("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
8395
8480
  onPreview && /* @__PURE__ */ jsx(
8396
8481
  "button",
8397
8482
  {
8398
8483
  type: "button",
8399
8484
  onClick: () => onPreview(item.id),
8400
- className: cn64(
8485
+ className: cn65(
8401
8486
  "inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
8402
8487
  "bg-background px-3 text-xs font-medium text-foreground",
8403
8488
  "hover:bg-accent hover:text-accent-foreground",
@@ -8411,7 +8496,7 @@ function MarketplaceCard({
8411
8496
  {
8412
8497
  type: "button",
8413
8498
  onClick: () => onUninstall(item.id),
8414
- className: cn64(
8499
+ className: cn65(
8415
8500
  "inline-flex min-h-[36px] items-center justify-center rounded-md",
8416
8501
  "bg-secondary px-3 text-xs font-medium text-secondary-foreground",
8417
8502
  "hover:bg-secondary/80",
@@ -8424,7 +8509,7 @@ function MarketplaceCard({
8424
8509
  {
8425
8510
  type: "button",
8426
8511
  onClick: () => onInstall(item.id),
8427
- className: cn64(
8512
+ className: cn65(
8428
8513
  "inline-flex min-h-[36px] items-center justify-center rounded-md",
8429
8514
  "bg-primary px-3 text-xs font-medium text-primary-foreground",
8430
8515
  "hover:bg-primary/90",
@@ -8496,7 +8581,7 @@ function MarketplaceListDesktop(props) {
8496
8581
  value: query,
8497
8582
  onChange: (e) => setQuery(e.target.value),
8498
8583
  placeholder: searchPlaceholder,
8499
- className: cn64(
8584
+ className: cn65(
8500
8585
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
8501
8586
  "text-sm placeholder:text-muted-foreground",
8502
8587
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -8579,7 +8664,7 @@ function MarketplaceListMobile(props) {
8579
8664
  value: query,
8580
8665
  onChange: (e) => setQuery(e.target.value),
8581
8666
  placeholder: searchPlaceholder,
8582
- className: cn64(
8667
+ className: cn65(
8583
8668
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
8584
8669
  "text-sm placeholder:text-muted-foreground",
8585
8670
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -8658,7 +8743,7 @@ var marketplaceCardVariants = cva(
8658
8743
  }
8659
8744
  }
8660
8745
  );
8661
- function cn65(...classes) {
8746
+ function cn66(...classes) {
8662
8747
  return classes.filter(Boolean).join(" ");
8663
8748
  }
8664
8749
  function MosaicMarketplaceCard({
@@ -8684,12 +8769,12 @@ function MosaicMarketplaceCard({
8684
8769
  MosaicCard,
8685
8770
  {
8686
8771
  "data-slot": "marketplace-card",
8687
- className: cn65(marketplaceCardVariants({ variant }), className),
8772
+ className: cn66(marketplaceCardVariants({ variant }), className),
8688
8773
  children: [
8689
8774
  icon && /* @__PURE__ */ jsx(
8690
8775
  "div",
8691
8776
  {
8692
- className: cn65(
8777
+ className: cn66(
8693
8778
  "flex shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",
8694
8779
  compact ? "h-10 w-10" : "h-12 w-12"
8695
8780
  ),
@@ -8697,7 +8782,7 @@ function MosaicMarketplaceCard({
8697
8782
  }
8698
8783
  ),
8699
8784
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
8700
- /* @__PURE__ */ jsx(MosaicCardTitle, { className: cn65("truncate", compact ? "text-sm" : "text-base"), children: name }),
8785
+ /* @__PURE__ */ jsx(MosaicCardTitle, { className: cn66("truncate", compact ? "text-sm" : "text-base"), children: name }),
8701
8786
  description && /* @__PURE__ */ jsx(
8702
8787
  MosaicCardDescription,
8703
8788
  {
@@ -8719,13 +8804,13 @@ function MosaicMarketplaceCard({
8719
8804
  }
8720
8805
  )
8721
8806
  ] }),
8722
- /* @__PURE__ */ jsxs("div", { className: cn65("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
8807
+ /* @__PURE__ */ jsxs("div", { className: cn66("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
8723
8808
  onPreview && /* @__PURE__ */ jsx(
8724
8809
  "button",
8725
8810
  {
8726
8811
  type: "button",
8727
8812
  onClick: () => onPreview(id),
8728
- className: cn65(
8813
+ className: cn66(
8729
8814
  "inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
8730
8815
  "bg-background px-3 text-xs font-medium text-foreground",
8731
8816
  "hover:bg-accent hover:text-accent-foreground",
@@ -8739,7 +8824,7 @@ function MosaicMarketplaceCard({
8739
8824
  {
8740
8825
  type: "button",
8741
8826
  onClick: () => onUnadopt(id),
8742
- className: cn65(
8827
+ className: cn66(
8743
8828
  "inline-flex min-h-[36px] items-center justify-center rounded-md",
8744
8829
  "bg-secondary px-3 text-xs font-medium text-secondary-foreground",
8745
8830
  "hover:bg-secondary/80",
@@ -8752,7 +8837,7 @@ function MosaicMarketplaceCard({
8752
8837
  {
8753
8838
  type: "button",
8754
8839
  onClick: () => onAdopt(id),
8755
- className: cn65(
8840
+ className: cn66(
8756
8841
  "inline-flex min-h-[36px] items-center justify-center rounded-md",
8757
8842
  "bg-primary px-3 text-xs font-medium text-primary-foreground",
8758
8843
  "hover:bg-primary/90",
@@ -8767,7 +8852,7 @@ function MosaicMarketplaceCard({
8767
8852
  );
8768
8853
  }
8769
8854
  MosaicMarketplaceCard.displayName = "MosaicMarketplaceCard";
8770
- function cn66(...classes) {
8855
+ function cn67(...classes) {
8771
8856
  return classes.filter(Boolean).join(" ");
8772
8857
  }
8773
8858
  function StarIcon2() {
@@ -8888,7 +8973,7 @@ function MosaicTemplateCard({
8888
8973
  type: "button",
8889
8974
  onClick: () => onSelect(template),
8890
8975
  "data-slot": "template-card",
8891
- className: cn66(
8976
+ className: cn67(
8892
8977
  "w-full text-left rounded-lg border transition-all duration-200",
8893
8978
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
8894
8979
  isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
@@ -8989,7 +9074,7 @@ function MosaicTemplatePreview({
8989
9074
  agent.accentColor && /* @__PURE__ */ jsx(
8990
9075
  "span",
8991
9076
  {
8992
- className: cn66("h-2 w-2 rounded-full", agent.accentColor),
9077
+ className: cn67("h-2 w-2 rounded-full", agent.accentColor),
8993
9078
  "aria-hidden": "true"
8994
9079
  }
8995
9080
  ),
@@ -9049,7 +9134,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
9049
9134
  agent.accentColor && /* @__PURE__ */ jsx(
9050
9135
  "span",
9051
9136
  {
9052
- className: cn66("h-2.5 w-2.5 rounded-full", agent.accentColor),
9137
+ className: cn67("h-2.5 w-2.5 rounded-full", agent.accentColor),
9053
9138
  "aria-hidden": "true"
9054
9139
  }
9055
9140
  ),
@@ -9073,7 +9158,7 @@ function MosaicQuickStartPanel({
9073
9158
  scratchLabel,
9074
9159
  className
9075
9160
  }) {
9076
- return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className: cn66("flex flex-col gap-6", className), children: [
9161
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className: cn67("flex flex-col gap-6", className), children: [
9077
9162
  scenarios.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
9078
9163
  /* @__PURE__ */ jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
9079
9164
  /* @__PURE__ */ jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxs(
@@ -9081,7 +9166,7 @@ function MosaicQuickStartPanel({
9081
9166
  {
9082
9167
  type: "button",
9083
9168
  onClick: () => onSelectScenario(scenario),
9084
- className: cn66(
9169
+ className: cn67(
9085
9170
  "flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
9086
9171
  "hover:border-primary/50 hover:bg-primary/5",
9087
9172
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
@@ -9113,7 +9198,7 @@ function MosaicQuickStartPanel({
9113
9198
  {
9114
9199
  type: "button",
9115
9200
  onClick: () => onSelectPreset(preset),
9116
- className: cn66(
9201
+ className: cn67(
9117
9202
  "flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
9118
9203
  "hover:border-primary/50",
9119
9204
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
@@ -9127,7 +9212,7 @@ function MosaicQuickStartPanel({
9127
9212
  a.accentColor && /* @__PURE__ */ jsx(
9128
9213
  "span",
9129
9214
  {
9130
- className: cn66("h-2 w-2 rounded-full", a.accentColor),
9215
+ className: cn67("h-2 w-2 rounded-full", a.accentColor),
9131
9216
  "aria-hidden": "true"
9132
9217
  }
9133
9218
  ),
@@ -9145,7 +9230,7 @@ function MosaicQuickStartPanel({
9145
9230
  {
9146
9231
  type: "button",
9147
9232
  onClick: onStartFromScratch,
9148
- className: cn66(
9233
+ className: cn67(
9149
9234
  "inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
9150
9235
  "bg-background px-4 text-sm font-medium text-foreground",
9151
9236
  "hover:bg-accent hover:text-accent-foreground",
@@ -9239,7 +9324,7 @@ function TemplateGalleryContent({
9239
9324
  value: query,
9240
9325
  onChange: (e) => setQuery(e.target.value),
9241
9326
  placeholder: searchPlaceholder,
9242
- className: cn66(
9327
+ className: cn67(
9243
9328
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
9244
9329
  )
9245
9330
  }
@@ -9290,7 +9375,7 @@ function TemplateGalleryContent({
9290
9375
  value: query,
9291
9376
  onChange: (e) => setQuery(e.target.value),
9292
9377
  placeholder: searchPlaceholder,
9293
- className: cn66(
9378
+ className: cn67(
9294
9379
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3 text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
9295
9380
  )
9296
9381
  }
@@ -9322,7 +9407,7 @@ function MosaicTemplateGallery(props) {
9322
9407
  return /* @__PURE__ */ jsx(TemplateGalleryContent, { ...props, isMobile });
9323
9408
  }
9324
9409
  MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
9325
- function cn67(...classes) {
9410
+ function cn68(...classes) {
9326
9411
  return classes.filter(Boolean).join(" ");
9327
9412
  }
9328
9413
  function PlusIcon5() {
@@ -9473,7 +9558,7 @@ function MosaicModuleForm(props) {
9473
9558
  onChange: (e) => update("name", e.target.value),
9474
9559
  placeholder: namePlaceholder,
9475
9560
  required: true,
9476
- className: cn67(
9561
+ className: cn68(
9477
9562
  "w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
9478
9563
  "text-sm placeholder:text-muted-foreground",
9479
9564
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -9491,7 +9576,7 @@ function MosaicModuleForm(props) {
9491
9576
  onChange: (e) => update("description", e.target.value),
9492
9577
  placeholder: descriptionPlaceholder,
9493
9578
  rows: 3,
9494
- className: cn67(
9579
+ className: cn68(
9495
9580
  "w-full rounded-md border border-input bg-background px-3 py-2",
9496
9581
  "text-sm placeholder:text-muted-foreground resize-none",
9497
9582
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -9513,7 +9598,7 @@ function MosaicModuleForm(props) {
9513
9598
  value: formData[field.id] ?? "",
9514
9599
  onChange: (e) => update(field.id, e.target.value),
9515
9600
  placeholder: field.placeholder,
9516
- className: cn67(
9601
+ className: cn68(
9517
9602
  "w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
9518
9603
  "text-sm placeholder:text-muted-foreground",
9519
9604
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -9528,7 +9613,7 @@ function MosaicModuleForm(props) {
9528
9613
  onChange: (e) => update(field.id, e.target.value),
9529
9614
  placeholder: field.placeholder,
9530
9615
  rows: 3,
9531
- className: cn67(
9616
+ className: cn68(
9532
9617
  "w-full rounded-md border border-input bg-background px-3 py-2",
9533
9618
  "text-sm placeholder:text-muted-foreground resize-none",
9534
9619
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -9544,7 +9629,7 @@ function MosaicModuleForm(props) {
9544
9629
  onChange: (e) => update(field.id, e.target.value),
9545
9630
  placeholder: field.placeholder ?? "\u{1F9E0}",
9546
9631
  maxLength: 4,
9547
- className: cn67(
9632
+ className: cn68(
9548
9633
  "w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
9549
9634
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
9550
9635
  )
@@ -9565,7 +9650,7 @@ function MosaicModuleForm(props) {
9565
9650
  }
9566
9651
  },
9567
9652
  placeholder: field.placeholder ?? tagListAddPlaceholder,
9568
- className: cn67(
9653
+ className: cn68(
9569
9654
  "flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
9570
9655
  "text-sm placeholder:text-muted-foreground",
9571
9656
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -9777,7 +9862,7 @@ function LibraryContent({
9777
9862
  {
9778
9863
  type: "button",
9779
9864
  onClick: openCreate,
9780
- className: cn67(
9865
+ className: cn68(
9781
9866
  "inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
9782
9867
  "hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
9783
9868
  ),
@@ -9797,7 +9882,7 @@ function LibraryContent({
9797
9882
  value: query,
9798
9883
  onChange: (e) => setQuery(e.target.value),
9799
9884
  placeholder: searchPlaceholder,
9800
- className: cn67(
9885
+ className: cn68(
9801
9886
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
9802
9887
  "text-sm placeholder:text-muted-foreground",
9803
9888
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -9810,7 +9895,7 @@ function LibraryContent({
9810
9895
  {
9811
9896
  type: "button",
9812
9897
  onClick: () => setActiveTab(tab.id),
9813
- className: cn67(
9898
+ className: cn68(
9814
9899
  "rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
9815
9900
  activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
9816
9901
  ),
@@ -9862,7 +9947,7 @@ function MosaicModuleLibrary(props) {
9862
9947
  return /* @__PURE__ */ jsx(LibraryContent, { ...props });
9863
9948
  }
9864
9949
  MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
9865
- function cn68(...classes) {
9950
+ function cn69(...classes) {
9866
9951
  return classes.filter(Boolean).join(" ");
9867
9952
  }
9868
9953
  var roleConfig = {
@@ -9889,7 +9974,7 @@ function MosaicOrgRoleBadge({ role, className }) {
9889
9974
  {
9890
9975
  "data-slot": "org-role-badge",
9891
9976
  title: config.description,
9892
- className: cn68(
9977
+ className: cn69(
9893
9978
  "inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
9894
9979
  config.className,
9895
9980
  className
@@ -9906,13 +9991,13 @@ function MosaicMultiOrgIndicator({
9906
9991
  className
9907
9992
  }) {
9908
9993
  if (orgCount <= 1) return null;
9909
- return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className: cn68("flex items-center gap-2", className), children: [
9994
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className: cn69("flex items-center gap-2", className), children: [
9910
9995
  onSwitchOrg ? /* @__PURE__ */ jsxs(
9911
9996
  "button",
9912
9997
  {
9913
9998
  type: "button",
9914
9999
  onClick: onSwitchOrg,
9915
- className: cn68(
10000
+ className: cn69(
9916
10001
  "inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
9917
10002
  "hover:bg-secondary/80",
9918
10003
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -10026,7 +10111,7 @@ function MosaicCreateOrgDialog({
10026
10111
  onChange: (e) => setName(e.target.value),
10027
10112
  placeholder: orgNamePlaceholder,
10028
10113
  required: true,
10029
- className: cn68(
10114
+ className: cn69(
10030
10115
  "w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
10031
10116
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
10032
10117
  errors.name ? "border-destructive" : "border-input"
@@ -10046,7 +10131,7 @@ function MosaicCreateOrgDialog({
10046
10131
  onChange: (e) => setSlug(e.target.value),
10047
10132
  placeholder: "acme-inc",
10048
10133
  required: true,
10049
- className: cn68(
10134
+ className: cn69(
10050
10135
  "w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
10051
10136
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
10052
10137
  errors.slug ? "border-destructive" : "border-input"
@@ -10159,7 +10244,7 @@ function MosaicInviteMemberDialog({
10159
10244
  onChange: (e) => setEmail(e.target.value),
10160
10245
  placeholder: emailPlaceholder,
10161
10246
  required: true,
10162
- className: cn68(
10247
+ className: cn69(
10163
10248
  "w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
10164
10249
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
10165
10250
  errors.email ? "border-destructive" : "border-input"
@@ -10346,7 +10431,7 @@ function MosaicMemberList({
10346
10431
  const filtered = members.filter(
10347
10432
  (m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
10348
10433
  );
10349
- return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className: cn68("flex flex-col gap-4", className), children: [
10434
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className: cn69("flex flex-col gap-4", className), children: [
10350
10435
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
10351
10436
  /* @__PURE__ */ jsxs("div", { className: "relative flex-1", children: [
10352
10437
  /* @__PURE__ */ jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxs(
@@ -10442,7 +10527,7 @@ function MosaicOrgPanel({
10442
10527
  const { isMobile } = useDevice();
10443
10528
  const [activeTab, setActiveTab] = React30.useState(defaultTab ?? tabs[0]?.id ?? "");
10444
10529
  const activeContent = tabs.find((t) => t.id === activeTab)?.content;
10445
- return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className: cn68("flex h-full flex-col", className), children: [
10530
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className: cn69("flex h-full flex-col", className), children: [
10446
10531
  /* @__PURE__ */ jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
10447
10532
  /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
10448
10533
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
@@ -10464,12 +10549,12 @@ function MosaicOrgPanel({
10464
10549
  ] }),
10465
10550
  headerActions
10466
10551
  ] }),
10467
- tabs.length > 0 && /* @__PURE__ */ jsx("div", { className: cn68("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsx(
10552
+ tabs.length > 0 && /* @__PURE__ */ jsx("div", { className: cn69("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsx(
10468
10553
  "button",
10469
10554
  {
10470
10555
  type: "button",
10471
10556
  onClick: () => setActiveTab(tab.id),
10472
- className: cn68(
10557
+ className: cn69(
10473
10558
  "shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
10474
10559
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
10475
10560
  activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
@@ -10483,7 +10568,7 @@ function MosaicOrgPanel({
10483
10568
  ] });
10484
10569
  }
10485
10570
  MosaicOrgPanel.displayName = "MosaicOrgPanel";
10486
- function cn69(...classes) {
10571
+ function cn70(...classes) {
10487
10572
  return classes.filter(Boolean).join(" ");
10488
10573
  }
10489
10574
  var ANIM_ID8 = "mosaic-dashboard-content-kf";
@@ -10520,7 +10605,7 @@ function MosaicDashboardContent({
10520
10605
  "div",
10521
10606
  {
10522
10607
  "data-slot": "dashboard-content",
10523
- className: cn69("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
10608
+ className: cn70("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
10524
10609
  children: activeView ? /* @__PURE__ */ jsx("div", { className: "mosaic-content-view space-y-6", children: activeView.content }, currentView) : /* @__PURE__ */ jsxs("p", { className: "py-12 text-center text-sm text-muted-foreground", children: [
10525
10610
  "View not found: ",
10526
10611
  currentView
@@ -10529,7 +10614,7 @@ function MosaicDashboardContent({
10529
10614
  );
10530
10615
  }
10531
10616
  MosaicDashboardContent.displayName = "MosaicDashboardContent";
10532
- function cn70(...classes) {
10617
+ function cn71(...classes) {
10533
10618
  return classes.filter(Boolean).join(" ");
10534
10619
  }
10535
10620
  var ANIM_ID9 = "mosaic-dashboard-header2-kf";
@@ -10641,16 +10726,16 @@ function MosaicDashboardHeader({
10641
10726
  "header",
10642
10727
  {
10643
10728
  "data-slot": "dashboard-header",
10644
- className: cn70(
10729
+ className: cn71(
10645
10730
  "mosaic-dashboard-header2",
10646
10731
  "sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
10647
10732
  className
10648
10733
  ),
10649
- children: /* @__PURE__ */ jsx("div", { className: cn70(isMobile ? "px-4 py-3" : "container mx-auto px-4 py-4"), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-4", children: [
10734
+ children: /* @__PURE__ */ jsx("div", { className: cn71(isMobile ? "px-4 py-3" : "container mx-auto px-4 py-4"), children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-4", children: [
10650
10735
  /* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-1 items-center gap-2 md:gap-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
10651
10736
  logoSlot ?? /* @__PURE__ */ jsx(SparklesIcon4, {}),
10652
10737
  /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
10653
- /* @__PURE__ */ jsx("h1", { className: cn70("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
10738
+ /* @__PURE__ */ jsx("h1", { className: cn71("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
10654
10739
  subtitle && !isMobile && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
10655
10740
  ] })
10656
10741
  ] }) }),
@@ -10663,7 +10748,7 @@ function MosaicDashboardHeader({
10663
10748
  value: searchQuery,
10664
10749
  onChange: handleSearch,
10665
10750
  placeholder: searchPlaceholder,
10666
- className: cn70(
10751
+ className: cn71(
10667
10752
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
10668
10753
  "text-sm placeholder:text-muted-foreground",
10669
10754
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -10703,7 +10788,7 @@ function MosaicDashboardHeader({
10703
10788
  );
10704
10789
  }
10705
10790
  MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
10706
- function cn71(...classes) {
10791
+ function cn72(...classes) {
10707
10792
  return classes.filter(Boolean).join(" ");
10708
10793
  }
10709
10794
  function ChevronDownIcon4() {
@@ -10786,13 +10871,13 @@ function MosaicOrgSwitcher({
10786
10871
  }, [open]);
10787
10872
  if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
10788
10873
  const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
10789
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className: cn71("relative", className), children: [
10874
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className: cn72("relative", className), children: [
10790
10875
  /* @__PURE__ */ jsxs(
10791
10876
  "button",
10792
10877
  {
10793
10878
  type: "button",
10794
10879
  onClick: () => setOpen((v) => !v),
10795
- className: cn71(
10880
+ className: cn72(
10796
10881
  "inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
10797
10882
  "text-sm font-medium text-foreground",
10798
10883
  "hover:bg-accent hover:text-accent-foreground",
@@ -10819,7 +10904,7 @@ function MosaicOrgSwitcher({
10819
10904
  {
10820
10905
  role: "menu",
10821
10906
  "aria-label": triggerAriaLabel,
10822
- className: cn71(
10907
+ className: cn72(
10823
10908
  "absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
10824
10909
  "bg-popover py-1 shadow-md"
10825
10910
  ),
@@ -10834,7 +10919,7 @@ function MosaicOrgSwitcher({
10834
10919
  onSelectOrg?.(org.id);
10835
10920
  setOpen(false);
10836
10921
  },
10837
- className: cn71(
10922
+ className: cn72(
10838
10923
  "flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
10839
10924
  "hover:bg-accent hover:text-accent-foreground",
10840
10925
  org.id === currentOrgId && "bg-primary/10 text-primary"
@@ -10871,7 +10956,7 @@ function MosaicOrgSwitcher({
10871
10956
  ] });
10872
10957
  }
10873
10958
  MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
10874
- function cn72(...classes) {
10959
+ function cn73(...classes) {
10875
10960
  return classes.filter(Boolean).join(" ");
10876
10961
  }
10877
10962
  function PlusIcon7() {
@@ -10916,19 +11001,19 @@ function MosaicQuickActionsMenu({
10916
11001
  document.addEventListener("mousedown", h);
10917
11002
  return () => document.removeEventListener("mousedown", h);
10918
11003
  }, [open]);
10919
- const itemClass = cn72(
11004
+ const itemClass = cn73(
10920
11005
  "flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
10921
11006
  "hover:bg-accent hover:text-accent-foreground",
10922
11007
  "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
10923
11008
  "min-h-[44px]"
10924
11009
  );
10925
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn72("relative", className), children: [
11010
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn73("relative", className), children: [
10926
11011
  /* @__PURE__ */ jsxs(
10927
11012
  "button",
10928
11013
  {
10929
11014
  type: "button",
10930
11015
  onClick: () => setOpen((v) => !v),
10931
- className: cn72(
11016
+ className: cn73(
10932
11017
  "inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
10933
11018
  "min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
10934
11019
  "hover:bg-accent hover:text-accent-foreground",
@@ -10939,7 +11024,7 @@ function MosaicQuickActionsMenu({
10939
11024
  "aria-label": label,
10940
11025
  children: [
10941
11026
  triggerIcon ?? /* @__PURE__ */ jsx(PlusIcon7, {}),
10942
- /* @__PURE__ */ jsx("span", { className: cn72("hidden md:inline"), children: label })
11027
+ /* @__PURE__ */ jsx("span", { className: cn73("hidden md:inline"), children: label })
10943
11028
  ]
10944
11029
  }
10945
11030
  ),
@@ -10948,13 +11033,13 @@ function MosaicQuickActionsMenu({
10948
11033
  {
10949
11034
  role: "menu",
10950
11035
  "aria-label": menuTitle,
10951
- className: cn72(
11036
+ className: cn73(
10952
11037
  "absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
10953
11038
  isMobile ? "w-[min(90vw,280px)]" : "w-56"
10954
11039
  ),
10955
11040
  children: [
10956
11041
  menuTitle && /* @__PURE__ */ jsx("div", { className: "px-3 py-1.5", children: /* @__PURE__ */ jsx("p", { className: "text-xs font-semibold text-muted-foreground uppercase tracking-wide", children: menuTitle }) }),
10957
- /* @__PURE__ */ jsx("div", { className: cn72(menuTitle && "border-t border-border") }),
11042
+ /* @__PURE__ */ jsx("div", { className: cn73(menuTitle && "border-t border-border") }),
10958
11043
  actions.map((action) => /* @__PURE__ */ jsxs(React30.Fragment, { children: [
10959
11044
  action.separator && /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-border" }),
10960
11045
  action.href && renderLink ? renderLink(
@@ -11259,7 +11344,7 @@ function MosaicOrgProfilePage({
11259
11344
  );
11260
11345
  }
11261
11346
  MosaicOrgProfilePage.displayName = "MosaicOrgProfilePage";
11262
- function cn73(...classes) {
11347
+ function cn74(...classes) {
11263
11348
  return classes.filter(Boolean).join(" ");
11264
11349
  }
11265
11350
  function defaultCompare(a, b) {
@@ -11322,7 +11407,7 @@ function MosaicDataTable({
11322
11407
  {
11323
11408
  ref,
11324
11409
  "data-slot": "data-table",
11325
- className: cn73("w-full border-collapse text-sm", className),
11410
+ className: cn74("w-full border-collapse text-sm", className),
11326
11411
  children: [
11327
11412
  /* @__PURE__ */ jsx("thead", { "data-slot": "data-table-header", children: /* @__PURE__ */ jsx("tr", { "data-slot": "data-table-header-row", className: "border-b border-border bg-muted", children: columns.map((col, colIndex) => {
11328
11413
  const isSortable = masterSortable && col.sortable;
@@ -11340,7 +11425,7 @@ function MosaicDataTable({
11340
11425
  handleHeaderClick(col);
11341
11426
  }
11342
11427
  } : void 0,
11343
- className: cn73(
11428
+ className: cn74(
11344
11429
  "px-4 py-3 font-medium text-muted-foreground",
11345
11430
  alignClass(col.align),
11346
11431
  col.className,
@@ -11376,7 +11461,7 @@ function MosaicDataTable({
11376
11461
  "td",
11377
11462
  {
11378
11463
  "data-slot": "data-table-td",
11379
- className: cn73(
11464
+ className: cn74(
11380
11465
  "px-4 py-3 text-foreground",
11381
11466
  alignClass(col.align),
11382
11467
  col.className
@@ -11515,7 +11600,7 @@ var stepSegmentVariants = cva(["h-1.5 flex-1 min-w-2 rounded-full transition-col
11515
11600
  filled: false
11516
11601
  }
11517
11602
  });
11518
- function cn74(...classes) {
11603
+ function cn75(...classes) {
11519
11604
  return classes.filter(Boolean).join(" ");
11520
11605
  }
11521
11606
  function resolveStatus(step, index, currentIndex) {
@@ -11556,7 +11641,7 @@ function MosaicStepPipelineSegments({
11556
11641
  "aria-valuemax": total,
11557
11642
  "aria-valuenow": current,
11558
11643
  "aria-valuetext": progressLabel ? progressLabel(current, total) : void 0,
11559
- className: cn74(stepSegmentBarVariants(), className),
11644
+ className: cn75(stepSegmentBarVariants(), className),
11560
11645
  children: steps.map((step, index) => {
11561
11646
  const status = resolveStatus(step, index, currentIndex);
11562
11647
  const filled = status !== "upcoming";
@@ -11568,7 +11653,7 @@ function MosaicStepPipelineSegments({
11568
11653
  "data-status": status,
11569
11654
  "data-filled": filled,
11570
11655
  "aria-hidden": "true",
11571
- className: cn74(stepSegmentVariants({ filled }))
11656
+ className: cn75(stepSegmentVariants({ filled }))
11572
11657
  },
11573
11658
  key
11574
11659
  );
@@ -11589,7 +11674,7 @@ function MosaicStepPipelineDots({
11589
11674
  {
11590
11675
  ref,
11591
11676
  "data-slot": "step-pipeline",
11592
- className: cn74(stepPipelineVariants({ orientation }), className),
11677
+ className: cn75(stepPipelineVariants({ orientation }), className),
11593
11678
  children: steps.map((step, index) => {
11594
11679
  const status = resolveStatus(step, index, currentIndex);
11595
11680
  const isCurrent = status === "current";
@@ -11601,7 +11686,7 @@ function MosaicStepPipelineDots({
11601
11686
  "data-slot": "step",
11602
11687
  "data-status": status,
11603
11688
  "aria-current": isCurrent ? "step" : void 0,
11604
- className: cn74(
11689
+ className: cn75(
11605
11690
  "flex shrink-0",
11606
11691
  orientation === "horizontal" ? "flex-col items-center gap-2" : "flex-row items-start gap-3",
11607
11692
  orientation === "horizontal" && !isLast && "flex-1"
@@ -11612,14 +11697,14 @@ function MosaicStepPipelineDots({
11612
11697
  "div",
11613
11698
  {
11614
11699
  "data-slot": "step-connector",
11615
- className: cn74(stepConnectorVariants({ status, orientation }))
11700
+ className: cn75(stepConnectorVariants({ status, orientation }))
11616
11701
  }
11617
11702
  ),
11618
11703
  /* @__PURE__ */ jsx(
11619
11704
  "div",
11620
11705
  {
11621
11706
  "data-slot": "step-indicator",
11622
- className: cn74(stepIndicatorVariants({ status, orientation })),
11707
+ className: cn75(stepIndicatorVariants({ status, orientation })),
11623
11708
  "aria-hidden": "true",
11624
11709
  children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
11625
11710
  }
@@ -11628,7 +11713,7 @@ function MosaicStepPipelineDots({
11628
11713
  "div",
11629
11714
  {
11630
11715
  "data-slot": "step-connector",
11631
- className: cn74(
11716
+ className: cn75(
11632
11717
  stepConnectorVariants({
11633
11718
  // connector after current step is still upcoming
11634
11719
  status: status === "done" ? "done" : "upcoming",
@@ -11639,12 +11724,12 @@ function MosaicStepPipelineDots({
11639
11724
  )
11640
11725
  ] }),
11641
11726
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-0.5 text-center px-1", children: [
11642
- /* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn74(stepLabelVariants({ status })), children: step.label }),
11727
+ /* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn75(stepLabelVariants({ status })), children: step.label }),
11643
11728
  step.description !== void 0 && /* @__PURE__ */ jsx(
11644
11729
  "span",
11645
11730
  {
11646
11731
  "data-slot": "step-description",
11647
- className: cn74(stepDescriptionVariants({ status })),
11732
+ className: cn75(stepDescriptionVariants({ status })),
11648
11733
  children: step.description
11649
11734
  }
11650
11735
  )
@@ -11655,7 +11740,7 @@ function MosaicStepPipelineDots({
11655
11740
  "div",
11656
11741
  {
11657
11742
  "data-slot": "step-indicator",
11658
- className: cn74(stepIndicatorVariants({ status, orientation })),
11743
+ className: cn75(stepIndicatorVariants({ status, orientation })),
11659
11744
  "aria-hidden": "true",
11660
11745
  children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
11661
11746
  }
@@ -11664,7 +11749,7 @@ function MosaicStepPipelineDots({
11664
11749
  "div",
11665
11750
  {
11666
11751
  "data-slot": "step-connector",
11667
- className: cn74(
11752
+ className: cn75(
11668
11753
  stepConnectorVariants({
11669
11754
  status: status === "done" ? "done" : "upcoming",
11670
11755
  orientation
@@ -11674,12 +11759,12 @@ function MosaicStepPipelineDots({
11674
11759
  )
11675
11760
  ] }),
11676
11761
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 pt-1 pb-4", children: [
11677
- /* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn74(stepLabelVariants({ status })), children: step.label }),
11762
+ /* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn75(stepLabelVariants({ status })), children: step.label }),
11678
11763
  step.description !== void 0 && /* @__PURE__ */ jsx(
11679
11764
  "span",
11680
11765
  {
11681
11766
  "data-slot": "step-description",
11682
- className: cn74(stepDescriptionVariants({ status })),
11767
+ className: cn75(stepDescriptionVariants({ status })),
11683
11768
  children: step.description
11684
11769
  }
11685
11770
  )
@@ -11693,7 +11778,7 @@ function MosaicStepPipelineDots({
11693
11778
  );
11694
11779
  }
11695
11780
  MosaicStepPipelineDots.displayName = "MosaicStepPipelineDots";
11696
- function cn75(...classes) {
11781
+ function cn76(...classes) {
11697
11782
  return classes.filter(Boolean).join(" ");
11698
11783
  }
11699
11784
  function MosaicKanbanBoard({ children, className, ref, ...props }) {
@@ -11702,7 +11787,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
11702
11787
  {
11703
11788
  ref,
11704
11789
  "data-slot": "kanban-board",
11705
- className: cn75(
11790
+ className: cn76(
11706
11791
  "flex gap-4 overflow-x-auto pb-4",
11707
11792
  "min-h-0",
11708
11793
  // Smooth momentum scrolling on iOS
@@ -11715,7 +11800,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
11715
11800
  );
11716
11801
  }
11717
11802
  MosaicKanbanBoard.displayName = "MosaicKanbanBoard";
11718
- function cn76(...classes) {
11803
+ function cn77(...classes) {
11719
11804
  return classes.filter(Boolean).join(" ");
11720
11805
  }
11721
11806
  function MosaicKanbanColumn({
@@ -11733,7 +11818,7 @@ function MosaicKanbanColumn({
11733
11818
  {
11734
11819
  ref,
11735
11820
  "data-slot": "kanban-column",
11736
- className: cn76(
11821
+ className: cn77(
11737
11822
  // Fixed column width, never shrink so board stays scrollable
11738
11823
  "flex flex-col w-72 shrink-0",
11739
11824
  // Surface
@@ -11754,7 +11839,7 @@ function MosaicKanbanColumn({
11754
11839
  {
11755
11840
  "data-slot": "kanban-column-count",
11756
11841
  "aria-label": countLabel(count),
11757
- className: cn76(
11842
+ className: cn77(
11758
11843
  "inline-flex items-center justify-center",
11759
11844
  "min-w-[1.25rem] h-5 px-1.5 rounded-full",
11760
11845
  "bg-muted text-muted-foreground",
@@ -11976,7 +12061,7 @@ var documentUploadProgressFillVariants = cva(
11976
12061
  defaultVariants: {}
11977
12062
  }
11978
12063
  );
11979
- function cn77(...classes) {
12064
+ function cn78(...classes) {
11980
12065
  return classes.filter(Boolean).join(" ");
11981
12066
  }
11982
12067
  function MosaicDocumentUpload({
@@ -12017,7 +12102,7 @@ function MosaicDocumentUpload({
12017
12102
  if (selected.length > 0) onFilesSelected(selected);
12018
12103
  event.target.value = "";
12019
12104
  }
12020
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "document-upload", className: cn77("flex flex-col gap-4", className), children: [
12105
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "document-upload", className: cn78("flex flex-col gap-4", className), children: [
12021
12106
  /* @__PURE__ */ jsxs(
12022
12107
  "div",
12023
12108
  {
@@ -12082,7 +12167,7 @@ function MosaicDocumentUpload({
12082
12167
  "aria-valuemin": 0,
12083
12168
  "aria-valuemax": 100,
12084
12169
  "aria-valuenow": file.progress ?? 0,
12085
- className: cn77(documentUploadProgressTrackVariants(), "mt-2"),
12170
+ className: cn78(documentUploadProgressTrackVariants(), "mt-2"),
12086
12171
  children: /* @__PURE__ */ jsx(
12087
12172
  "div",
12088
12173
  {
@@ -12159,7 +12244,7 @@ var urlScraperCardVariants = cva(["flex flex-col gap-2 rounded-lg border p-4"],
12159
12244
  tone: "neutral"
12160
12245
  }
12161
12246
  });
12162
- function cn78(...classes) {
12247
+ function cn79(...classes) {
12163
12248
  return classes.filter(Boolean).join(" ");
12164
12249
  }
12165
12250
  function isSyntacticallyValidUrl(candidate) {
@@ -12198,7 +12283,7 @@ function MosaicUrlScraper(props) {
12198
12283
  setIsLocallyInvalid(false);
12199
12284
  onUrlChange(event.target.value);
12200
12285
  }
12201
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "url-scraper", className: cn78("flex flex-col gap-4", className), children: [
12286
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "url-scraper", className: cn79("flex flex-col gap-4", className), children: [
12202
12287
  /* @__PURE__ */ jsxs(
12203
12288
  "form",
12204
12289
  {
@@ -12334,7 +12419,7 @@ var chatThreadScrollButtonVariants = cva([
12334
12419
  "items-center justify-center rounded-full border border-border bg-card text-foreground shadow-sm",
12335
12420
  "transition-colors hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
12336
12421
  ]);
12337
- function cn79(...classes) {
12422
+ function cn80(...classes) {
12338
12423
  return classes.filter(Boolean).join(" ");
12339
12424
  }
12340
12425
  var BOTTOM_THRESHOLD_PX = 24;
@@ -12418,7 +12503,7 @@ function MosaicChatThread({
12418
12503
  role: "log",
12419
12504
  onScroll: handleScroll,
12420
12505
  onKeyDown: handleKeyDown,
12421
- className: cn79(chatThreadRootVariants(), className),
12506
+ className: cn80(chatThreadRootVariants(), className),
12422
12507
  children: [
12423
12508
  /* @__PURE__ */ jsx("div", { "data-slot": "chat-thread-content", className: chatThreadContentVariants(), children }),
12424
12509
  !isAtBottom && /* @__PURE__ */ jsx(
@@ -12459,7 +12544,7 @@ var chatComposerActionButtonVariants = cva(
12459
12544
  }
12460
12545
  }
12461
12546
  );
12462
- function cn80(...classes) {
12547
+ function cn81(...classes) {
12463
12548
  return classes.filter(Boolean).join(" ");
12464
12549
  }
12465
12550
  function MosaicChatComposer(props) {
@@ -12514,7 +12599,7 @@ function MosaicChatComposer(props) {
12514
12599
  {
12515
12600
  ref,
12516
12601
  "data-slot": "chat-composer",
12517
- className: cn80(chatComposerRootVariants(), className),
12602
+ className: cn81(chatComposerRootVariants(), className),
12518
12603
  onSubmit: handleSubmit,
12519
12604
  children: [
12520
12605
  /* @__PURE__ */ jsx(
@@ -12630,7 +12715,7 @@ var markdownTableCellVariants = cva(["border border-border px-3 py-1.5"], {
12630
12715
  align: "left"
12631
12716
  }
12632
12717
  });
12633
- function cn81(...classes) {
12718
+ function cn82(...classes) {
12634
12719
  return classes.filter(Boolean).join(" ");
12635
12720
  }
12636
12721
  function sanitizeHref(rawHref) {
@@ -12825,7 +12910,7 @@ function parseBlocks(content) {
12825
12910
  function MosaicMarkdown({ content, renderCodeBlock, className, ref }) {
12826
12911
  const blocks = parseBlocks(content);
12827
12912
  const ids = makeIdSource();
12828
- return /* @__PURE__ */ jsx("div", { ref, "data-slot": "markdown", className: cn81(markdownRootVariants(), className), children: blocks.map((block) => {
12913
+ return /* @__PURE__ */ jsx("div", { ref, "data-slot": "markdown", className: cn82(markdownRootVariants(), className), children: blocks.map((block) => {
12829
12914
  if (block.kind === "heading") {
12830
12915
  const HeadingTag = `h${block.level}`;
12831
12916
  return /* @__PURE__ */ jsx(HeadingTag, { className: markdownHeadingVariants({ level: block.level }), children: parseInline(block.text, ids) }, block.id);
@@ -12903,7 +12988,7 @@ var chatMessageToolStatusVariants = cva(["text-xs font-medium"], {
12903
12988
  status: "running"
12904
12989
  }
12905
12990
  });
12906
- function cn82(...classes) {
12991
+ function cn83(...classes) {
12907
12992
  return classes.filter(Boolean).join(" ");
12908
12993
  }
12909
12994
  function partKey(part, index) {
@@ -13069,7 +13154,7 @@ function MosaicChatMessage({
13069
13154
  ref,
13070
13155
  "data-slot": "chat-message",
13071
13156
  "data-role": messageRole,
13072
- className: cn82(chatMessageContainerVariants({ align: isUser ? "end" : "start" }), className),
13157
+ className: cn83(chatMessageContainerVariants({ align: isUser ? "end" : "start" }), className),
13073
13158
  children: /* @__PURE__ */ jsx("div", { className: chatMessageBubbleVariants({ role: messageRole }), children: parts.map((part, index) => /* @__PURE__ */ jsx(
13074
13159
  ChatMessagePartView,
13075
13160
  {
@@ -13124,7 +13209,7 @@ var approvalPromptButtonVariants = cva(
13124
13209
  }
13125
13210
  }
13126
13211
  );
13127
- function cn83(...classes) {
13212
+ function cn84(...classes) {
13128
13213
  return classes.filter(Boolean).join(" ");
13129
13214
  }
13130
13215
  function MosaicApprovalPrompt(props) {
@@ -13136,7 +13221,7 @@ function MosaicApprovalPrompt(props) {
13136
13221
  ref,
13137
13222
  "data-slot": "approval-prompt",
13138
13223
  "aria-label": promptTitle,
13139
- className: cn83("border-0 p-0 m-0", approvalPromptCardVariants({ tone }), className),
13224
+ className: cn84("border-0 p-0 m-0", approvalPromptCardVariants({ tone }), className),
13140
13225
  children: [
13141
13226
  /* @__PURE__ */ jsx("legend", { "data-slot": "approval-prompt-title", className: "text-base font-semibold md:text-lg", children: promptTitle }),
13142
13227
  /* @__PURE__ */ jsxs("div", { "data-slot": "approval-prompt-tool", className: "flex flex-col gap-1", children: [
@@ -13213,7 +13298,7 @@ var toolToggleListRowVariants = cva(
13213
13298
  }
13214
13299
  }
13215
13300
  );
13216
- function cn84(...classes) {
13301
+ function cn85(...classes) {
13217
13302
  return classes.filter(Boolean).join(" ");
13218
13303
  }
13219
13304
  function MosaicToolToggleList({
@@ -13229,7 +13314,7 @@ function MosaicToolToggleList({
13229
13314
  }) {
13230
13315
  const toolsById = new Map(tools.map((tool) => [tool.id, tool]));
13231
13316
  const approvalLabelById = new Map(approvalLevels.map((level) => [level.id, level.label]));
13232
- return /* @__PURE__ */ jsx("div", { ref, "data-slot": "tool-toggle-list", className: cn84("flex flex-col gap-6", className), children: sections.map((section) => /* @__PURE__ */ jsxs(
13317
+ return /* @__PURE__ */ jsx("div", { ref, "data-slot": "tool-toggle-list", className: cn85("flex flex-col gap-6", className), children: sections.map((section) => /* @__PURE__ */ jsxs(
13233
13318
  "div",
13234
13319
  {
13235
13320
  "data-slot": "tool-toggle-list-section",
@@ -13260,7 +13345,7 @@ function MosaicToolToggleList({
13260
13345
  onCheckedChange: (checked) => onToggleTool(tool.id, checked),
13261
13346
  "aria-label": toggleAriaLabel(tool.name),
13262
13347
  "data-slot": "tool-toggle-list-switch",
13263
- className: cn84(
13348
+ className: cn85(
13264
13349
  "relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
13265
13350
  "rounded-full border-2 border-transparent outline-none",
13266
13351
  "bg-muted transition-colors",
@@ -13271,7 +13356,7 @@ function MosaicToolToggleList({
13271
13356
  Switch.Thumb,
13272
13357
  {
13273
13358
  "data-slot": "tool-toggle-list-switch-thumb",
13274
- className: cn84(
13359
+ className: cn85(
13275
13360
  "pointer-events-none block h-4 w-4 rounded-full",
13276
13361
  "bg-background shadow-sm",
13277
13362
  "translate-x-0 transition-transform",
@@ -13313,7 +13398,7 @@ function MosaicToolToggleList({
13313
13398
  {
13314
13399
  "aria-label": approvalSelectAriaLabel(tool.name),
13315
13400
  "data-slot": "tool-toggle-list-approval-trigger",
13316
- className: cn84(
13401
+ className: cn85(
13317
13402
  "inline-flex h-9 min-w-[10rem] items-center justify-between gap-2",
13318
13403
  "rounded-md border border-border bg-background px-3 py-2",
13319
13404
  "text-sm text-foreground shadow-xs outline-none",
@@ -13331,7 +13416,7 @@ function MosaicToolToggleList({
13331
13416
  Select.Popup,
13332
13417
  {
13333
13418
  "data-slot": "tool-toggle-list-approval-popup",
13334
- className: cn84(
13419
+ className: cn85(
13335
13420
  "z-50 min-w-[10rem] overflow-hidden rounded-md border border-border",
13336
13421
  "bg-popover p-1 text-popover-foreground shadow-md",
13337
13422
  "origin-[var(--transform-origin)]",
@@ -13344,7 +13429,7 @@ function MosaicToolToggleList({
13344
13429
  Select.Item,
13345
13430
  {
13346
13431
  value: level.id,
13347
- className: cn84(
13432
+ className: cn85(
13348
13433
  "relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
13349
13434
  "text-sm text-popover-foreground outline-none",
13350
13435
  "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
@@ -13452,7 +13537,7 @@ var apiKeyPanelMessageVariants = cva(["text-sm"], {
13452
13537
  tone: "muted"
13453
13538
  }
13454
13539
  });
13455
- function cn85(...classes) {
13540
+ function cn86(...classes) {
13456
13541
  return classes.filter(Boolean).join(" ");
13457
13542
  }
13458
13543
  function MosaicApiKeyPanel(props) {
@@ -13480,7 +13565,7 @@ function MosaicApiKeyPanel(props) {
13480
13565
  function handleKeyChange(event) {
13481
13566
  onKeyChange(event.target.value);
13482
13567
  }
13483
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "api-key-panel", className: cn85("flex flex-col gap-3", className), children: [
13568
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "api-key-panel", className: cn86("flex flex-col gap-3", className), children: [
13484
13569
  /* @__PURE__ */ jsx(
13485
13570
  "div",
13486
13571
  {
@@ -13575,7 +13660,7 @@ MosaicApiKeyPanel.displayName = "MosaicApiKeyPanel";
13575
13660
  var agentChatRootVariants = cva([
13576
13661
  "flex min-h-0 w-full flex-1 flex-col gap-2 overflow-hidden rounded-lg border border-border bg-card"
13577
13662
  ]);
13578
- function cn86(...classes) {
13663
+ function cn87(...classes) {
13579
13664
  return classes.filter(Boolean).join(" ");
13580
13665
  }
13581
13666
  function formatPayload2(value) {
@@ -13711,7 +13796,7 @@ function MosaicAgentChat(props) {
13711
13796
  setDecisions((previous) => ({ ...previous, [payload.requestId]: decision }));
13712
13797
  onApprovalResponse(payload);
13713
13798
  }
13714
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "agent-chat", className: cn86(agentChatRootVariants(), className), children: [
13799
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "agent-chat", className: cn87(agentChatRootVariants(), className), children: [
13715
13800
  /* @__PURE__ */ jsx(MosaicChatThread, { scrollToBottomLabel, children: messages.map((message) => /* @__PURE__ */ jsx(
13716
13801
  MosaicChatMessage,
13717
13802
  {
@@ -13800,7 +13885,7 @@ var toastProviderPositionVariants = cva(
13800
13885
  }
13801
13886
  }
13802
13887
  );
13803
- function cn87(...classes) {
13888
+ function cn88(...classes) {
13804
13889
  return classes.filter(Boolean).join(" ");
13805
13890
  }
13806
13891
  function MosaicToast({
@@ -13826,7 +13911,7 @@ function MosaicToast({
13826
13911
  ref,
13827
13912
  "data-slot": "toast",
13828
13913
  role,
13829
- className: cn87(toastCardVariants({ variant }), className),
13914
+ className: cn88(toastCardVariants({ variant }), className),
13830
13915
  children: [
13831
13916
  /* @__PURE__ */ jsxs("div", { "data-slot": "toast-body", className: "flex min-w-0 flex-1 flex-col gap-1", children: [
13832
13917
  /* @__PURE__ */ jsx("p", { "data-slot": "toast-title", className: toastTitleVariants({ variant }), children: title }),
@@ -13866,7 +13951,7 @@ function MosaicToast({
13866
13951
  );
13867
13952
  }
13868
13953
  MosaicToast.displayName = "MosaicToast";
13869
- function cn88(...classes) {
13954
+ function cn89(...classes) {
13870
13955
  return classes.filter(Boolean).join(" ");
13871
13956
  }
13872
13957
  function MosaicToastProvider({
@@ -13880,7 +13965,7 @@ function MosaicToastProvider({
13880
13965
  {
13881
13966
  ref,
13882
13967
  "data-slot": "toast-provider",
13883
- className: cn88(toastProviderPositionVariants({ position }), className),
13968
+ className: cn89(toastProviderPositionVariants({ position }), className),
13884
13969
  children
13885
13970
  }
13886
13971
  );
@@ -13907,7 +13992,7 @@ var pdfViewerToolbarButtonVariants = cva([
13907
13992
  "inline-flex min-h-8 min-w-8 items-center justify-center rounded-md border border-border text-sm",
13908
13993
  "transition-colors hover:bg-accent/50 disabled:opacity-50 disabled:hover:bg-transparent"
13909
13994
  ]);
13910
- function cn89(...classes) {
13995
+ function cn90(...classes) {
13911
13996
  return classes.filter(Boolean).join(" ");
13912
13997
  }
13913
13998
  function buildFrameSrc(fileUrl, currentPage, zoom) {
@@ -13972,7 +14057,7 @@ function MosaicPdfViewer({
13972
14057
  if (zoom === void 0 || onZoomChange === void 0) return;
13973
14058
  onZoomChange(Math.round((zoom + 0.1) * 100) / 100);
13974
14059
  }
13975
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "pdf-viewer", className: cn89("flex flex-col gap-2", className), children: [
14060
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "pdf-viewer", className: cn90("flex flex-col gap-2", className), children: [
13976
14061
  (showPageControls || showZoomControls) && /* @__PURE__ */ jsxs(
13977
14062
  "div",
13978
14063
  {
@@ -14061,7 +14146,7 @@ function MosaicPdfViewer({
14061
14146
  "data-slot": "pdf-viewer-frame",
14062
14147
  src: buildFrameSrc(fileUrl, currentPage, zoom),
14063
14148
  title: fileUrl,
14064
- className: cn89(
14149
+ className: cn90(
14065
14150
  "h-full min-h-64 w-full border-0",
14066
14151
  status !== "loaded" && "pointer-events-none absolute inset-0 opacity-0"
14067
14152
  )
@@ -14080,7 +14165,7 @@ var splitPaneCollapseButtonVariants = cva([
14080
14165
  "inline-flex h-11 w-6 shrink-0 items-center justify-center self-center rounded-md border border-border text-sm",
14081
14166
  "transition-colors hover:bg-accent/50"
14082
14167
  ]);
14083
- function cn90(...classes) {
14168
+ function cn91(...classes) {
14084
14169
  return classes.filter(Boolean).join(" ");
14085
14170
  }
14086
14171
  function mergeRefs(externalRef, node) {
@@ -14153,7 +14238,7 @@ function MosaicResizableSplitPane({
14153
14238
  mergeRefs(ref, node);
14154
14239
  },
14155
14240
  "data-slot": "resizable-split-pane",
14156
- className: cn90(splitPaneRootVariants(), className),
14241
+ className: cn91(splitPaneRootVariants(), className),
14157
14242
  children: [
14158
14243
  /* @__PURE__ */ jsx("div", { "data-slot": "resizable-split-pane-main", className: "min-h-0 min-w-0 flex-1 overflow-auto", children: main }),
14159
14244
  !isSideCollapsed && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -14220,7 +14305,7 @@ var tagInputFieldVariants = cva([
14220
14305
  "min-w-[6ch] flex-1 border-none bg-transparent px-1 py-0.5 text-sm text-foreground outline-none",
14221
14306
  "placeholder:text-muted-foreground"
14222
14307
  ]);
14223
- function cn91(...classes) {
14308
+ function cn92(...classes) {
14224
14309
  return classes.filter(Boolean).join(" ");
14225
14310
  }
14226
14311
  function mergeRefs2(externalRef, node) {
@@ -14271,7 +14356,7 @@ function MosaicTagInput({
14271
14356
  if (lastTag !== void 0) onRemoveTag(lastTag);
14272
14357
  }
14273
14358
  }
14274
- return /* @__PURE__ */ jsxs("div", { "data-slot": "tag-input", className: cn91(tagInputRootVariants(), className), children: [
14359
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "tag-input", className: cn92(tagInputRootVariants(), className), children: [
14275
14360
  tags.map((tag) => /* @__PURE__ */ jsxs("span", { "data-slot": "tag-input-tag", className: tagInputTagVariants(), children: [
14276
14361
  tag,
14277
14362
  /* @__PURE__ */ jsx(
@@ -14308,7 +14393,7 @@ function MosaicTagInput({
14308
14393
  "ul",
14309
14394
  {
14310
14395
  "data-slot": "tag-input-suggestions",
14311
- className: cn91(
14396
+ className: cn92(
14312
14397
  "z-50 mt-1 w-full min-w-[8rem] overflow-hidden rounded-md border border-border",
14313
14398
  "bg-popover p-1 text-sm text-popover-foreground shadow-md"
14314
14399
  ),
@@ -14348,7 +14433,7 @@ var drawerPopupVariants = cva(
14348
14433
  }
14349
14434
  );
14350
14435
  var drawerBackdropVariants = cva(["fixed inset-0 z-50 bg-black/50"]);
14351
- function cn92(...classes) {
14436
+ function cn93(...classes) {
14352
14437
  return classes.filter(Boolean).join(" ");
14353
14438
  }
14354
14439
  function MosaicDrawer({
@@ -14369,7 +14454,7 @@ function MosaicDrawer({
14369
14454
  "data-slot": "drawer",
14370
14455
  "aria-labelledby": titleId,
14371
14456
  "aria-modal": "true",
14372
- className: cn92(drawerPopupVariants({ side }), className),
14457
+ className: cn93(drawerPopupVariants({ side }), className),
14373
14458
  children: [
14374
14459
  /* @__PURE__ */ jsxs(
14375
14460
  "div",
@@ -14382,7 +14467,7 @@ function MosaicDrawer({
14382
14467
  Dialog.Close,
14383
14468
  {
14384
14469
  "aria-label": closeAriaLabel,
14385
- className: cn92(
14470
+ className: cn93(
14386
14471
  "flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
14387
14472
  "hover:bg-muted hover:text-foreground",
14388
14473
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -14426,7 +14511,7 @@ var popoverPopupVariants = cva([
14426
14511
  "data-[ending-style]:scale-95 data-[ending-style]:opacity-0",
14427
14512
  "data-[starting-style]:scale-95 data-[starting-style]:opacity-0"
14428
14513
  ]);
14429
- function cn93(...classes) {
14514
+ function cn94(...classes) {
14430
14515
  return classes.filter(Boolean).join(" ");
14431
14516
  }
14432
14517
  function MosaicPopover({
@@ -14455,7 +14540,7 @@ function MosaicPopover({
14455
14540
  "data-slot": "popover",
14456
14541
  "aria-label": ariaLabel,
14457
14542
  initialFocus,
14458
- className: cn93(popoverPopupVariants(), className),
14543
+ className: cn94(popoverPopupVariants(), className),
14459
14544
  children
14460
14545
  }
14461
14546
  )
@@ -14482,7 +14567,7 @@ var templateCategoryChipVariants = cva(
14482
14567
  }
14483
14568
  }
14484
14569
  );
14485
- function cn94(...classes) {
14570
+ function cn95(...classes) {
14486
14571
  return classes.filter(Boolean).join(" ");
14487
14572
  }
14488
14573
  function MosaicTemplateCategoryChips({
@@ -14497,7 +14582,7 @@ function MosaicTemplateCategoryChips({
14497
14582
  {
14498
14583
  ref,
14499
14584
  "data-slot": "template-category-chips",
14500
- className: cn94("flex flex-wrap items-center gap-2", className),
14585
+ className: cn95("flex flex-wrap items-center gap-2", className),
14501
14586
  children: categories.map((category) => {
14502
14587
  const isSelected = category.id === selected;
14503
14588
  return /* @__PURE__ */ jsx(
@@ -14517,52 +14602,33 @@ function MosaicTemplateCategoryChips({
14517
14602
  );
14518
14603
  }
14519
14604
  MosaicTemplateCategoryChips.displayName = "MosaicTemplateCategoryChips";
14520
- var saveTemplateModalBodyVariants = cva(["flex flex-col gap-4"]);
14521
- var saveTemplateModalFieldVariants = cva(["flex flex-col gap-1.5"]);
14522
- var saveTemplateModalErrorVariants = cva(["text-xs font-medium text-destructive"]);
14523
- var saveTemplateModalFooterVariants = cva([
14524
- "flex items-center justify-end gap-3 border-t border-border pt-4"
14605
+ var editMemoryDialogPopupVariants = cva([
14606
+ "fixed top-1/2 left-1/2 z-50 flex max-h-[85vh] w-full max-w-[calc(100%-2rem)] flex-col",
14607
+ "-translate-x-1/2 -translate-y-1/2",
14608
+ "rounded-lg border border-border bg-background shadow-lg outline-none",
14609
+ "sm:max-w-lg"
14525
14610
  ]);
14526
- var saveTemplateModalButtonVariants = cva(
14527
- [
14528
- "inline-flex min-h-9 items-center justify-center gap-2 rounded-md px-4 text-sm font-medium",
14529
- "transition-colors disabled:cursor-not-allowed disabled:opacity-50"
14530
- ],
14531
- {
14532
- variants: {
14533
- intent: {
14534
- cancel: "border border-border bg-background hover:bg-muted",
14535
- save: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
14536
- }
14537
- },
14538
- defaultVariants: {
14539
- intent: "cancel"
14540
- }
14541
- }
14542
- );
14543
- function cn95(...classes) {
14611
+ var editMemoryDialogBackdropVariants = cva(["fixed inset-0 z-50 bg-black/50"]);
14612
+ var editMemoryDialogFieldVariants = cva(["flex flex-col gap-1.5"]);
14613
+ var editMemoryDialogErrorVariants = cva(["text-sm text-destructive"]);
14614
+ function cn96(...classes) {
14544
14615
  return classes.filter(Boolean).join(" ");
14545
14616
  }
14546
- function MosaicSaveTemplateModal({
14617
+ function MosaicEditMemoryDialog({
14547
14618
  open,
14548
14619
  onOpenChange,
14549
14620
  title,
14550
14621
  description,
14551
14622
  closeAriaLabel,
14552
- name,
14553
- onNameChange,
14554
- nameLabel,
14555
- namePlaceholder,
14556
- nameError,
14557
- templateDescription,
14558
- onTemplateDescriptionChange,
14559
- descriptionLabel,
14560
- descriptionPlaceholder,
14561
- descriptionError,
14562
- categories,
14563
- category,
14564
- onCategoryChange,
14565
- categoryLabel,
14623
+ content,
14624
+ onContentChange,
14625
+ contentLabel,
14626
+ contentPlaceholder,
14627
+ contentError,
14628
+ types,
14629
+ type,
14630
+ onTypeChange,
14631
+ typeLabel,
14566
14632
  tags,
14567
14633
  onAddTag,
14568
14634
  onRemoveTag,
@@ -14575,7 +14641,242 @@ function MosaicSaveTemplateModal({
14575
14641
  canSave,
14576
14642
  onSave,
14577
14643
  onCancel,
14578
- saveButtonLabel,
14644
+ saveLabel,
14645
+ savingLabel,
14646
+ cancelLabel,
14647
+ className
14648
+ }) {
14649
+ const titleId = React30.useId();
14650
+ const descriptionId = React30.useId();
14651
+ const contentErrorId = React30.useId();
14652
+ const saveDisabled = !canSave || isSaving;
14653
+ const handleSave = () => {
14654
+ if (saveDisabled) return;
14655
+ onSave();
14656
+ };
14657
+ return /* @__PURE__ */ jsx(Dialog.Root, { open, onOpenChange: (nextOpen) => onOpenChange(nextOpen), modal: true, children: /* @__PURE__ */ jsxs(Dialog.Portal, { children: [
14658
+ /* @__PURE__ */ jsx(
14659
+ Dialog.Backdrop,
14660
+ {
14661
+ "data-slot": "edit-memory-dialog-backdrop",
14662
+ className: editMemoryDialogBackdropVariants()
14663
+ }
14664
+ ),
14665
+ /* @__PURE__ */ jsxs(
14666
+ Dialog.Popup,
14667
+ {
14668
+ "data-slot": "edit-memory-dialog",
14669
+ "aria-labelledby": titleId,
14670
+ "aria-describedby": descriptionId,
14671
+ "aria-modal": "true",
14672
+ className: cn96(editMemoryDialogPopupVariants(), className),
14673
+ children: [
14674
+ /* @__PURE__ */ jsxs(
14675
+ "div",
14676
+ {
14677
+ "data-slot": "edit-memory-dialog-header",
14678
+ className: "flex items-start justify-between gap-4 border-b border-border p-4",
14679
+ children: [
14680
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
14681
+ /* @__PURE__ */ jsx(Dialog.Title, { id: titleId, className: "text-base font-semibold text-foreground", children: title }),
14682
+ /* @__PURE__ */ jsx(Dialog.Description, { id: descriptionId, className: "text-sm text-muted-foreground", children: description })
14683
+ ] }),
14684
+ /* @__PURE__ */ jsx(
14685
+ Dialog.Close,
14686
+ {
14687
+ "aria-label": closeAriaLabel,
14688
+ className: cn96(
14689
+ "flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
14690
+ "hover:bg-muted hover:text-foreground",
14691
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
14692
+ ),
14693
+ children: /* @__PURE__ */ jsxs(
14694
+ "svg",
14695
+ {
14696
+ width: "16",
14697
+ height: "16",
14698
+ viewBox: "0 0 24 24",
14699
+ fill: "none",
14700
+ stroke: "currentColor",
14701
+ strokeWidth: "2",
14702
+ strokeLinecap: "round",
14703
+ strokeLinejoin: "round",
14704
+ "aria-hidden": "true",
14705
+ children: [
14706
+ /* @__PURE__ */ jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
14707
+ /* @__PURE__ */ jsx("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
14708
+ ]
14709
+ }
14710
+ )
14711
+ }
14712
+ )
14713
+ ]
14714
+ }
14715
+ ),
14716
+ /* @__PURE__ */ jsxs(
14717
+ "div",
14718
+ {
14719
+ "data-slot": "edit-memory-dialog-body",
14720
+ className: "flex min-h-0 flex-1 flex-col gap-4 overflow-y-auto p-4",
14721
+ children: [
14722
+ /* @__PURE__ */ jsxs("div", { className: editMemoryDialogFieldVariants(), children: [
14723
+ /* @__PURE__ */ jsx(
14724
+ "label",
14725
+ {
14726
+ htmlFor: "mosaic-edit-memory-content",
14727
+ className: "text-sm font-medium text-foreground",
14728
+ children: contentLabel
14729
+ }
14730
+ ),
14731
+ /* @__PURE__ */ jsx(
14732
+ MosaicTextarea,
14733
+ {
14734
+ id: "mosaic-edit-memory-content",
14735
+ value: content,
14736
+ placeholder: contentPlaceholder,
14737
+ onChange: (event) => onContentChange(event.target.value),
14738
+ rows: 4,
14739
+ "aria-invalid": contentError ? "true" : "false",
14740
+ "aria-describedby": contentError ? contentErrorId : void 0
14741
+ }
14742
+ ),
14743
+ contentError && /* @__PURE__ */ jsx("p", { id: contentErrorId, className: editMemoryDialogErrorVariants(), children: contentError })
14744
+ ] }),
14745
+ /* @__PURE__ */ jsxs("div", { className: editMemoryDialogFieldVariants(), children: [
14746
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: typeLabel }),
14747
+ /* @__PURE__ */ jsx(
14748
+ MosaicSelect,
14749
+ {
14750
+ items: types,
14751
+ value: type,
14752
+ onValueChange: (value) => {
14753
+ if (value) onTypeChange(value);
14754
+ }
14755
+ }
14756
+ )
14757
+ ] }),
14758
+ /* @__PURE__ */ jsxs("div", { className: editMemoryDialogFieldVariants(), children: [
14759
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: tagsLabel }),
14760
+ /* @__PURE__ */ jsx(
14761
+ MosaicTagInput,
14762
+ {
14763
+ tags,
14764
+ onAddTag,
14765
+ onRemoveTag,
14766
+ placeholder: tagInputPlaceholder,
14767
+ removeTagAriaLabel,
14768
+ suggestions: suggestedTags,
14769
+ maxTags
14770
+ }
14771
+ )
14772
+ ] })
14773
+ ]
14774
+ }
14775
+ ),
14776
+ /* @__PURE__ */ jsxs(
14777
+ "div",
14778
+ {
14779
+ "data-slot": "edit-memory-dialog-footer",
14780
+ className: "flex flex-col-reverse gap-2 border-t border-border p-4 sm:flex-row sm:justify-end",
14781
+ children: [
14782
+ /* @__PURE__ */ jsx(
14783
+ Dialog.Close,
14784
+ {
14785
+ onClick: onCancel,
14786
+ className: cn96(
14787
+ "inline-flex h-9 items-center justify-center gap-1.5 rounded-md border border-border px-4",
14788
+ "bg-background text-sm font-medium text-foreground shadow-xs",
14789
+ "hover:bg-muted hover:text-foreground",
14790
+ "focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
14791
+ "disabled:pointer-events-none disabled:opacity-50"
14792
+ ),
14793
+ children: cancelLabel
14794
+ }
14795
+ ),
14796
+ /* @__PURE__ */ jsx(
14797
+ "button",
14798
+ {
14799
+ type: "button",
14800
+ onClick: handleSave,
14801
+ disabled: saveDisabled,
14802
+ className: cn96(
14803
+ "inline-flex h-9 items-center justify-center gap-1.5 rounded-md px-4",
14804
+ "bg-primary text-sm font-medium text-primary-foreground",
14805
+ "hover:bg-primary/90",
14806
+ "focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
14807
+ "disabled:pointer-events-none disabled:opacity-50"
14808
+ ),
14809
+ children: isSaving ? savingLabel : saveLabel
14810
+ }
14811
+ )
14812
+ ]
14813
+ }
14814
+ )
14815
+ ]
14816
+ }
14817
+ )
14818
+ ] }) });
14819
+ }
14820
+ MosaicEditMemoryDialog.displayName = "MosaicEditMemoryDialog";
14821
+ var saveTemplateModalBodyVariants = cva(["flex flex-col gap-4"]);
14822
+ var saveTemplateModalFieldVariants = cva(["flex flex-col gap-1.5"]);
14823
+ var saveTemplateModalErrorVariants = cva(["text-xs font-medium text-destructive"]);
14824
+ var saveTemplateModalFooterVariants = cva([
14825
+ "flex items-center justify-end gap-3 border-t border-border pt-4"
14826
+ ]);
14827
+ var saveTemplateModalButtonVariants = cva(
14828
+ [
14829
+ "inline-flex min-h-9 items-center justify-center gap-2 rounded-md px-4 text-sm font-medium",
14830
+ "transition-colors disabled:cursor-not-allowed disabled:opacity-50"
14831
+ ],
14832
+ {
14833
+ variants: {
14834
+ intent: {
14835
+ cancel: "border border-border bg-background hover:bg-muted",
14836
+ save: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
14837
+ }
14838
+ },
14839
+ defaultVariants: {
14840
+ intent: "cancel"
14841
+ }
14842
+ }
14843
+ );
14844
+ function cn97(...classes) {
14845
+ return classes.filter(Boolean).join(" ");
14846
+ }
14847
+ function MosaicSaveTemplateModal({
14848
+ open,
14849
+ onOpenChange,
14850
+ title,
14851
+ description,
14852
+ closeAriaLabel,
14853
+ name,
14854
+ onNameChange,
14855
+ nameLabel,
14856
+ namePlaceholder,
14857
+ nameError,
14858
+ templateDescription,
14859
+ onTemplateDescriptionChange,
14860
+ descriptionLabel,
14861
+ descriptionPlaceholder,
14862
+ descriptionError,
14863
+ categories,
14864
+ category,
14865
+ onCategoryChange,
14866
+ categoryLabel,
14867
+ tags,
14868
+ onAddTag,
14869
+ onRemoveTag,
14870
+ tagsLabel,
14871
+ tagInputPlaceholder,
14872
+ removeTagAriaLabel,
14873
+ suggestedTags,
14874
+ maxTags,
14875
+ isSaving,
14876
+ canSave,
14877
+ onSave,
14878
+ onCancel,
14879
+ saveButtonLabel,
14579
14880
  savingLabel,
14580
14881
  cancelButtonLabel,
14581
14882
  children,
@@ -14596,7 +14897,7 @@ function MosaicSaveTemplateModal({
14596
14897
  "div",
14597
14898
  {
14598
14899
  "data-slot": "save-template-modal",
14599
- className: cn95(saveTemplateModalBodyVariants(), className),
14900
+ className: cn97(saveTemplateModalBodyVariants(), className),
14600
14901
  children: [
14601
14902
  /* @__PURE__ */ jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
14602
14903
  /* @__PURE__ */ jsx(
@@ -14704,6 +15005,133 @@ function MosaicSaveTemplateModal({
14704
15005
  );
14705
15006
  }
14706
15007
  MosaicSaveTemplateModal.displayName = "MosaicSaveTemplateModal";
15008
+ var addMemoryFormRootVariants = cva(["flex flex-col gap-4"]);
15009
+ var addMemoryFormFieldVariants = cva(["flex flex-col gap-1.5"]);
15010
+ var addMemoryFormErrorVariants = cva(["text-xs font-medium text-destructive"]);
15011
+ var addMemoryFormFooterVariants = cva([
15012
+ "flex items-center justify-end gap-3 border-t border-border pt-4"
15013
+ ]);
15014
+ var addMemoryFormButtonVariants = cva(
15015
+ [
15016
+ "inline-flex min-h-9 items-center justify-center gap-2 rounded-md px-4 text-sm font-medium",
15017
+ "transition-colors disabled:cursor-not-allowed disabled:opacity-50"
15018
+ ],
15019
+ {
15020
+ variants: {
15021
+ intent: {
15022
+ cancel: "border border-border bg-background hover:bg-muted",
15023
+ submit: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
15024
+ }
15025
+ },
15026
+ defaultVariants: {
15027
+ intent: "cancel"
15028
+ }
15029
+ }
15030
+ );
15031
+ function cn98(...classes) {
15032
+ return classes.filter(Boolean).join(" ");
15033
+ }
15034
+ function MosaicAddMemoryForm({
15035
+ content,
15036
+ onContentChange,
15037
+ contentLabel,
15038
+ contentPlaceholder,
15039
+ contentError,
15040
+ types,
15041
+ type,
15042
+ onTypeChange,
15043
+ typeLabel,
15044
+ tags,
15045
+ onAddTag,
15046
+ onRemoveTag,
15047
+ tagsLabel,
15048
+ tagInputPlaceholder,
15049
+ removeTagAriaLabel,
15050
+ suggestedTags,
15051
+ maxTags,
15052
+ isSubmitting,
15053
+ canSubmit,
15054
+ onSubmit,
15055
+ onCancel,
15056
+ submitButtonLabel,
15057
+ submittingLabel,
15058
+ cancelButtonLabel,
15059
+ className
15060
+ }) {
15061
+ const contentErrorId = useId();
15062
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "add-memory-form", className: cn98(addMemoryFormRootVariants(), className), children: [
15063
+ /* @__PURE__ */ jsxs("div", { className: addMemoryFormFieldVariants(), children: [
15064
+ /* @__PURE__ */ jsx("label", { htmlFor: "mosaic-add-memory-content", className: "text-sm font-medium text-foreground", children: contentLabel }),
15065
+ /* @__PURE__ */ jsx(
15066
+ MosaicTextarea,
15067
+ {
15068
+ id: "mosaic-add-memory-content",
15069
+ value: content,
15070
+ placeholder: contentPlaceholder,
15071
+ onChange: (e) => onContentChange(e.target.value),
15072
+ rows: 4,
15073
+ "aria-invalid": contentError ? "true" : "false",
15074
+ "aria-describedby": contentError ? contentErrorId : void 0
15075
+ }
15076
+ ),
15077
+ contentError && /* @__PURE__ */ jsx("p", { id: contentErrorId, className: addMemoryFormErrorVariants(), children: contentError })
15078
+ ] }),
15079
+ /* @__PURE__ */ jsxs("div", { className: addMemoryFormFieldVariants(), children: [
15080
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: typeLabel }),
15081
+ /* @__PURE__ */ jsx(
15082
+ MosaicSelect,
15083
+ {
15084
+ items: types,
15085
+ value: type,
15086
+ onValueChange: (value) => {
15087
+ if (value) onTypeChange(value);
15088
+ }
15089
+ }
15090
+ )
15091
+ ] }),
15092
+ /* @__PURE__ */ jsxs("div", { className: addMemoryFormFieldVariants(), children: [
15093
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: tagsLabel }),
15094
+ /* @__PURE__ */ jsx(
15095
+ MosaicTagInput,
15096
+ {
15097
+ tags,
15098
+ onAddTag,
15099
+ onRemoveTag,
15100
+ placeholder: tagInputPlaceholder,
15101
+ removeTagAriaLabel,
15102
+ suggestions: suggestedTags,
15103
+ maxTags
15104
+ }
15105
+ )
15106
+ ] }),
15107
+ /* @__PURE__ */ jsxs("div", { className: addMemoryFormFooterVariants(), children: [
15108
+ /* @__PURE__ */ jsx(
15109
+ "button",
15110
+ {
15111
+ type: "button",
15112
+ "data-slot": "add-memory-form-cancel-button",
15113
+ onClick: onCancel,
15114
+ disabled: isSubmitting,
15115
+ className: addMemoryFormButtonVariants({ intent: "cancel" }),
15116
+ children: cancelButtonLabel
15117
+ }
15118
+ ),
15119
+ /* @__PURE__ */ jsx(
15120
+ "button",
15121
+ {
15122
+ type: "button",
15123
+ "data-slot": "add-memory-form-submit-button",
15124
+ onClick: onSubmit,
15125
+ disabled: !canSubmit || isSubmitting,
15126
+ "aria-busy": isSubmitting ? "true" : "false",
15127
+ className: addMemoryFormButtonVariants({ intent: "submit" }),
15128
+ children: isSubmitting ? submittingLabel : submitButtonLabel
15129
+ }
15130
+ )
15131
+ ] })
15132
+ ] });
15133
+ }
15134
+ MosaicAddMemoryForm.displayName = "MosaicAddMemoryForm";
14707
15135
  var templateListVariants = cva(["grid gap-4"], {
14708
15136
  variants: {
14709
15137
  layout: {
@@ -14715,7 +15143,7 @@ var templateListVariants = cva(["grid gap-4"], {
14715
15143
  layout: "grid"
14716
15144
  }
14717
15145
  });
14718
- function cn96(...classes) {
15146
+ function cn99(...classes) {
14719
15147
  return classes.filter(Boolean).join(" ");
14720
15148
  }
14721
15149
  var NEXT_KEYS = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]);
@@ -14760,7 +15188,7 @@ function MosaicTemplateList({
14760
15188
  {
14761
15189
  ref,
14762
15190
  "data-slot": "template-list",
14763
- className: cn96(templateListVariants({ layout }), className),
15191
+ className: cn99(templateListVariants({ layout }), className),
14764
15192
  children: /* @__PURE__ */ jsx(
14765
15193
  "p",
14766
15194
  {
@@ -14777,7 +15205,7 @@ function MosaicTemplateList({
14777
15205
  {
14778
15206
  ref,
14779
15207
  "data-slot": "template-list",
14780
- className: cn96("list-none", templateListVariants({ layout }), className),
15208
+ className: cn99("list-none", templateListVariants({ layout }), className),
14781
15209
  children: items.map((item, index) => /* @__PURE__ */ jsx(
14782
15210
  "li",
14783
15211
  {
@@ -14800,7 +15228,7 @@ MosaicTemplateList.displayName = "MosaicTemplateList";
14800
15228
  var templateManagementRowVariants = cva(
14801
15229
  "flex items-center justify-between gap-3 border-b border-border px-4 py-3 last:border-b-0"
14802
15230
  );
14803
- function cn97(...classes) {
15231
+ function cn100(...classes) {
14804
15232
  return classes.filter(Boolean).join(" ");
14805
15233
  }
14806
15234
  function MosaicTemplateManagementPanel({
@@ -14855,7 +15283,7 @@ function MosaicTemplateManagementPanel({
14855
15283
  "div",
14856
15284
  {
14857
15285
  "data-slot": "template-management-panel",
14858
- className: cn97("flex flex-col rounded-lg border border-border bg-background", className),
15286
+ className: cn100("flex flex-col rounded-lg border border-border bg-background", className),
14859
15287
  children: [
14860
15288
  /* @__PURE__ */ jsx("h2", { className: "border-b border-border px-4 py-3 font-semibold text-foreground text-sm", children: heading }),
14861
15289
  templates.length === 0 ? /* @__PURE__ */ jsx("p", { className: "px-4 py-6 text-center text-muted-foreground text-sm", children: emptyMessage }) : /* @__PURE__ */ jsx("ul", { children: templates.map((item) => {
@@ -14887,7 +15315,7 @@ function MosaicTemplateManagementPanel({
14887
15315
  {
14888
15316
  type: "button",
14889
15317
  "aria-label": actionsAriaLabelFor(item.name),
14890
- className: cn97(
15318
+ className: cn100(
14891
15319
  "flex size-8 items-center justify-center rounded-md",
14892
15320
  "text-muted-foreground hover:bg-muted hover:text-foreground"
14893
15321
  ),
@@ -14940,7 +15368,7 @@ var chatSidebarThreadVariants = cva(
14940
15368
  }
14941
15369
  }
14942
15370
  );
14943
- function cn98(...classes) {
15371
+ function cn101(...classes) {
14944
15372
  return classes.filter(Boolean).join(" ");
14945
15373
  }
14946
15374
  var NEXT_KEYS2 = /* @__PURE__ */ new Set(["ArrowDown"]);
@@ -14991,7 +15419,7 @@ function MosaicChatSidebar({
14991
15419
  {
14992
15420
  ref,
14993
15421
  "data-slot": "chat-sidebar",
14994
- className: cn98("flex h-full flex-col gap-2 overflow-y-auto", className),
15422
+ className: cn101("flex h-full flex-col gap-2 overflow-y-auto", className),
14995
15423
  children: [
14996
15424
  /* @__PURE__ */ jsx(
14997
15425
  "button",
@@ -15024,7 +15452,7 @@ function MosaicChatSidebar({
15024
15452
  onKeyDown: (event) => handleKeyDown(event, index, thread.id),
15025
15453
  onFocus: () => setFocusedIndex(index),
15026
15454
  onClick: () => onSelectThread(thread.id),
15027
- className: cn98(chatSidebarThreadVariants({ active: isActive }), itemClassName),
15455
+ className: cn101(chatSidebarThreadVariants({ active: isActive }), itemClassName),
15028
15456
  children: renderThread(thread, index)
15029
15457
  },
15030
15458
  thread.id
@@ -15035,7 +15463,204 @@ function MosaicChatSidebar({
15035
15463
  );
15036
15464
  }
15037
15465
  MosaicChatSidebar.displayName = "MosaicChatSidebar";
15466
+ var memoryGridVariants = cva(["grid", "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"], {
15467
+ variants: {
15468
+ density: {
15469
+ comfortable: "gap-4",
15470
+ compact: "gap-2"
15471
+ }
15472
+ },
15473
+ defaultVariants: {
15474
+ density: "comfortable"
15475
+ }
15476
+ });
15477
+ function cn102(...classes) {
15478
+ return classes.filter(Boolean).join(" ");
15479
+ }
15480
+ var NEXT_KEYS3 = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]);
15481
+ var PREV_KEYS3 = /* @__PURE__ */ new Set(["ArrowLeft", "ArrowUp"]);
15482
+ function MosaicMemoryGrid({
15483
+ items,
15484
+ renderItem,
15485
+ density = "comfortable",
15486
+ emptyMessage,
15487
+ className,
15488
+ itemClassName,
15489
+ ref
15490
+ }) {
15491
+ const itemRefs = useRef([]);
15492
+ const [focusedIndex, setFocusedIndex] = useState(0);
15493
+ function focusItem(index) {
15494
+ if (items.length === 0) {
15495
+ return;
15496
+ }
15497
+ const clamped = Math.max(0, Math.min(items.length - 1, index));
15498
+ setFocusedIndex(clamped);
15499
+ itemRefs.current[clamped]?.focus();
15500
+ }
15501
+ function handleKeyDown(event, index) {
15502
+ if (NEXT_KEYS3.has(event.key)) {
15503
+ event.preventDefault();
15504
+ focusItem(index + 1);
15505
+ } else if (PREV_KEYS3.has(event.key)) {
15506
+ event.preventDefault();
15507
+ focusItem(index - 1);
15508
+ } else if (event.key === "Home") {
15509
+ event.preventDefault();
15510
+ focusItem(0);
15511
+ } else if (event.key === "End") {
15512
+ event.preventDefault();
15513
+ focusItem(items.length - 1);
15514
+ }
15515
+ }
15516
+ if (items.length === 0) {
15517
+ return /* @__PURE__ */ jsx(
15518
+ "div",
15519
+ {
15520
+ ref,
15521
+ "data-slot": "memory-grid",
15522
+ className: cn102(memoryGridVariants({ density }), className),
15523
+ children: /* @__PURE__ */ jsx(
15524
+ "p",
15525
+ {
15526
+ "data-slot": "memory-grid-empty",
15527
+ className: "col-span-full py-12 text-center text-sm text-muted-foreground",
15528
+ children: emptyMessage
15529
+ }
15530
+ )
15531
+ }
15532
+ );
15533
+ }
15534
+ return /* @__PURE__ */ jsx(
15535
+ "ul",
15536
+ {
15537
+ ref,
15538
+ "data-slot": "memory-grid",
15539
+ className: cn102("list-none", memoryGridVariants({ density }), className),
15540
+ children: items.map((item, index) => /* @__PURE__ */ jsx(
15541
+ "li",
15542
+ {
15543
+ ref: (node) => {
15544
+ itemRefs.current[index] = node;
15545
+ },
15546
+ "data-slot": "memory-grid-item",
15547
+ tabIndex: index === focusedIndex ? 0 : -1,
15548
+ onKeyDown: (event) => handleKeyDown(event, index),
15549
+ onFocus: () => setFocusedIndex(index),
15550
+ className: itemClassName,
15551
+ children: renderItem(item, index)
15552
+ },
15553
+ item.id
15554
+ ))
15555
+ }
15556
+ );
15557
+ }
15558
+ MosaicMemoryGrid.displayName = "MosaicMemoryGrid";
15559
+ var memoryListVariants = cva(["flex flex-col", "divide-y divide-border"], {
15560
+ variants: {
15561
+ density: {
15562
+ comfortable: "",
15563
+ compact: ""
15564
+ }
15565
+ },
15566
+ defaultVariants: {
15567
+ density: "comfortable"
15568
+ }
15569
+ });
15570
+ var memoryListItemVariants = cva([], {
15571
+ variants: {
15572
+ density: {
15573
+ comfortable: "py-3",
15574
+ compact: "py-1"
15575
+ }
15576
+ },
15577
+ defaultVariants: {
15578
+ density: "comfortable"
15579
+ }
15580
+ });
15581
+ function cn103(...classes) {
15582
+ return classes.filter(Boolean).join(" ");
15583
+ }
15584
+ var NEXT_KEYS4 = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]);
15585
+ var PREV_KEYS4 = /* @__PURE__ */ new Set(["ArrowLeft", "ArrowUp"]);
15586
+ function MosaicMemoryList({
15587
+ items,
15588
+ renderItem,
15589
+ density = "comfortable",
15590
+ emptyMessage,
15591
+ className,
15592
+ itemClassName,
15593
+ ref
15594
+ }) {
15595
+ const itemRefs = useRef([]);
15596
+ const [focusedIndex, setFocusedIndex] = useState(0);
15597
+ function focusItem(index) {
15598
+ if (items.length === 0) {
15599
+ return;
15600
+ }
15601
+ const clamped = Math.max(0, Math.min(items.length - 1, index));
15602
+ setFocusedIndex(clamped);
15603
+ itemRefs.current[clamped]?.focus();
15604
+ }
15605
+ function handleKeyDown(event, index) {
15606
+ if (NEXT_KEYS4.has(event.key)) {
15607
+ event.preventDefault();
15608
+ focusItem(index + 1);
15609
+ } else if (PREV_KEYS4.has(event.key)) {
15610
+ event.preventDefault();
15611
+ focusItem(index - 1);
15612
+ } else if (event.key === "Home") {
15613
+ event.preventDefault();
15614
+ focusItem(0);
15615
+ } else if (event.key === "End") {
15616
+ event.preventDefault();
15617
+ focusItem(items.length - 1);
15618
+ }
15619
+ }
15620
+ if (items.length === 0) {
15621
+ return /* @__PURE__ */ jsx(
15622
+ "div",
15623
+ {
15624
+ ref,
15625
+ "data-slot": "memory-list",
15626
+ className: cn103(memoryListVariants({ density }), className),
15627
+ children: /* @__PURE__ */ jsx(
15628
+ "p",
15629
+ {
15630
+ "data-slot": "memory-list-empty",
15631
+ className: "py-12 text-center text-sm text-muted-foreground",
15632
+ children: emptyMessage
15633
+ }
15634
+ )
15635
+ }
15636
+ );
15637
+ }
15638
+ return /* @__PURE__ */ jsx(
15639
+ "ul",
15640
+ {
15641
+ ref,
15642
+ "data-slot": "memory-list",
15643
+ className: cn103("list-none", memoryListVariants({ density }), className),
15644
+ children: items.map((item, index) => /* @__PURE__ */ jsx(
15645
+ "li",
15646
+ {
15647
+ ref: (node) => {
15648
+ itemRefs.current[index] = node;
15649
+ },
15650
+ "data-slot": "memory-list-item",
15651
+ tabIndex: index === focusedIndex ? 0 : -1,
15652
+ onKeyDown: (event) => handleKeyDown(event, index),
15653
+ onFocus: () => setFocusedIndex(index),
15654
+ className: cn103(memoryListItemVariants({ density }), itemClassName),
15655
+ children: renderItem(item, index)
15656
+ },
15657
+ item.id
15658
+ ))
15659
+ }
15660
+ );
15661
+ }
15662
+ MosaicMemoryList.displayName = "MosaicMemoryList";
15038
15663
 
15039
- export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentBuilderModal, MosaicAgentCard, MosaicAgentChat, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentEditor, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentPreview, MosaicAgentTeamPreview, MosaicAlertDialog, MosaicAlertDialogAction, MosaicAlertDialogCancel, MosaicAlertDialogContent, MosaicAlertDialogDescription, MosaicAlertDialogFooter, MosaicAlertDialogHeader, MosaicAlertDialogOverlay, MosaicAlertDialogPortal, MosaicAlertDialogTitle, MosaicAlertDialogTrigger, MosaicAnimatedList, MosaicApiKeyPanel, MosaicAppSidebar, MosaicApprovalPrompt, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicChatComposer, MosaicChatMessage, MosaicChatSidebar, MosaicChatThread, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDocumentUpload, MosaicDrawer, MosaicDropdownMenu, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicKanbanBoard, MosaicKanbanColumn, MosaicLogosGrid, MosaicMainNav, MosaicMarkdown, MosaicMarketplaceCard, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMemoryCard, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModelSelector, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPdfViewer, MosaicPopover, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicResizableSplitPane, MosaicSaveTemplateModal, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTagInput, MosaicTemplateAgentCard, MosaicTemplateCard, MosaicTemplateCategoryChips, MosaicTemplateGallery, MosaicTemplateList, MosaicTemplateManagementPanel, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicToast, MosaicToastProvider, MosaicToolToggleList, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, agentBuilderModalBackdropVariants, agentBuilderModalPopupVariants, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, chatSidebarThreadVariants, drawerBackdropVariants, drawerPopupVariants, marketplaceCardVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, popoverPopupVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, templateManagementRowVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
15664
+ export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAddMemoryForm, MosaicAgentBuilderModal, MosaicAgentCard, MosaicAgentChat, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentEditor, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentPreview, MosaicAgentTeamPreview, MosaicAlertDialog, MosaicAlertDialogAction, MosaicAlertDialogCancel, MosaicAlertDialogContent, MosaicAlertDialogDescription, MosaicAlertDialogFooter, MosaicAlertDialogHeader, MosaicAlertDialogOverlay, MosaicAlertDialogPortal, MosaicAlertDialogTitle, MosaicAlertDialogTrigger, MosaicAnimatedList, MosaicApiKeyPanel, MosaicAppSidebar, MosaicApprovalPrompt, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicChatComposer, MosaicChatMessage, MosaicChatSidebar, MosaicChatThread, MosaicCheckbox, MosaicClerkOrgSwitcher, MosaicClerkWebhookHandler, MosaicCollapsible, MosaicCollapsiblePanel, MosaicCollapsibleTrigger, MosaicCombobox, MosaicCounter, MosaicCreateOrgDialog, MosaicDashboardContent, MosaicDashboardHeader, MosaicDashboardLayout, MosaicDataTable, MosaicDeleteConfirmationDialog, MosaicDeviceProvider, MosaicDocumentUpload, MosaicDrawer, MosaicDropdownMenu, MosaicEditMemoryDialog, MosaicEmptyState, MosaicFallingPattern, MosaicFeature3Col, MosaicFeatureCenteredMedia, MosaicField, MosaicFieldControl, MosaicFieldDescription, MosaicFieldError, MosaicFieldLabel, MosaicFilterBar, MosaicFilterSidebar, MosaicFooterSimple, MosaicHeroSplit, MosaicInput, MosaicInputGroup, MosaicIntegrationsBadge, MosaicInviteMemberDialog, MosaicKanbanBoard, MosaicKanbanColumn, MosaicLogosGrid, MosaicMainNav, MosaicMarkdown, MosaicMarketplaceCard, MosaicMarketplaceList, MarketplaceListDesktop as MosaicMarketplaceListDesktop, MarketplaceListMobile as MosaicMarketplaceListMobile, MosaicMemberList, MosaicMemoryCard, MosaicMemoryDashboard, MosaicMemoryGrid, MosaicMemoryList, MosaicMessageCard, MosaicMessageList, MessageListDesktop as MosaicMessageListDesktop, MessageListMobile as MosaicMessageListMobile, MosaicModelSelector, MosaicModuleCard, MosaicModuleForm, MosaicModuleLibrary, MosaicMultiOrgIndicator, MosaicMultiTenantProvider, MosaicNavbar, MosaicOrgPanel, MosaicOrgProfilePage, MosaicOrgRoleBadge, MosaicOrgSwitcher, MosaicPdfViewer, MosaicPopover, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicResizableSplitPane, MosaicSaveTemplateModal, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTagInput, MosaicTemplateAgentCard, MosaicTemplateCard, MosaicTemplateCategoryChips, MosaicTemplateGallery, MosaicTemplateList, MosaicTemplateManagementPanel, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicToast, MosaicToastProvider, MosaicToolToggleList, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, addMemoryFormButtonVariants, addMemoryFormErrorVariants, addMemoryFormFieldVariants, addMemoryFormFooterVariants, addMemoryFormRootVariants, agentBuilderModalBackdropVariants, agentBuilderModalPopupVariants, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, chatSidebarThreadVariants, drawerBackdropVariants, drawerPopupVariants, editMemoryDialogBackdropVariants, editMemoryDialogErrorVariants, editMemoryDialogFieldVariants, editMemoryDialogPopupVariants, marketplaceCardVariants, memoryDashboardViewToggleButtonVariants, memoryGridVariants, memoryListItemVariants, memoryListVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, popoverPopupVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, templateManagementRowVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
15040
15665
  //# sourceMappingURL=index.js.map
15041
15666
  //# sourceMappingURL=index.js.map