@vantageos/mosaic-blocks 0.5.21-alpha → 0.5.23-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
@@ -28,7 +28,7 @@ import { AlertDialog } from '@base-ui/react/alert-dialog';
28
28
  import { Dialog } from '@base-ui/react/dialog';
29
29
 
30
30
  // src/version.ts
31
- var version = "0.5.21-alpha";
31
+ var version = "0.5.23-alpha";
32
32
  function Placeholder({ label = "mosaic-blocks placeholder" }) {
33
33
  return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
34
34
  }
@@ -4571,6 +4571,107 @@ function MosaicAgentComposer(props) {
4571
4571
  return isMobile ? /* @__PURE__ */ jsx(MosaicAgentComposerMobile, { ...props }) : /* @__PURE__ */ jsx(MosaicAgentComposerDesktop, { ...props });
4572
4572
  }
4573
4573
  MosaicAgentComposer.displayName = "MosaicAgentComposer";
4574
+ var agentEditorVariants = cva("flex flex-col gap-4 w-full", {
4575
+ variants: {},
4576
+ defaultVariants: {}
4577
+ });
4578
+ function MosaicAgentEditor({
4579
+ className,
4580
+ ref,
4581
+ nameLabel,
4582
+ nameValue,
4583
+ onNameChange,
4584
+ nameError,
4585
+ roleLabel,
4586
+ roleValue,
4587
+ onRoleChange,
4588
+ roleError,
4589
+ instructionsLabel,
4590
+ instructionsValue,
4591
+ onInstructionsChange,
4592
+ instructionsError,
4593
+ saveLabel,
4594
+ cancelLabel,
4595
+ onSave,
4596
+ onCancel,
4597
+ canSave,
4598
+ isSaving,
4599
+ savingLabel
4600
+ }) {
4601
+ const nameErrorId = nameError ? "mosaic-agent-editor-name-error" : void 0;
4602
+ const roleErrorId = roleError ? "mosaic-agent-editor-role-error" : void 0;
4603
+ const instructionsErrorId = instructionsError ? "mosaic-agent-editor-instructions-error" : void 0;
4604
+ const saveDisabled = !canSave || isSaving;
4605
+ const handleSave = () => {
4606
+ if (saveDisabled) return;
4607
+ onSave();
4608
+ };
4609
+ return /* @__PURE__ */ jsxs(
4610
+ "div",
4611
+ {
4612
+ ref,
4613
+ "data-slot": "agent-editor",
4614
+ "aria-busy": isSaving ? "true" : void 0,
4615
+ className: agentEditorVariants({ className }),
4616
+ children: [
4617
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
4618
+ /* @__PURE__ */ jsx("label", { htmlFor: "mosaic-agent-editor-name", className: "text-sm font-medium text-foreground", children: nameLabel }),
4619
+ /* @__PURE__ */ jsx(
4620
+ MosaicInput,
4621
+ {
4622
+ id: "mosaic-agent-editor-name",
4623
+ value: nameValue,
4624
+ onChange: (event) => onNameChange(event.target.value),
4625
+ "aria-invalid": nameError ? "true" : void 0,
4626
+ "aria-describedby": nameErrorId
4627
+ }
4628
+ ),
4629
+ nameError ? /* @__PURE__ */ jsx("p", { id: nameErrorId, className: "text-xs font-medium text-destructive", children: nameError }) : null
4630
+ ] }),
4631
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
4632
+ /* @__PURE__ */ jsx("label", { htmlFor: "mosaic-agent-editor-role", className: "text-sm font-medium text-foreground", children: roleLabel }),
4633
+ /* @__PURE__ */ jsx(
4634
+ MosaicInput,
4635
+ {
4636
+ id: "mosaic-agent-editor-role",
4637
+ value: roleValue,
4638
+ onChange: (event) => onRoleChange(event.target.value),
4639
+ "aria-invalid": roleError ? "true" : void 0,
4640
+ "aria-describedby": roleErrorId
4641
+ }
4642
+ ),
4643
+ roleError ? /* @__PURE__ */ jsx("p", { id: roleErrorId, className: "text-xs font-medium text-destructive", children: roleError }) : null
4644
+ ] }),
4645
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1.5", children: [
4646
+ /* @__PURE__ */ jsx(
4647
+ "label",
4648
+ {
4649
+ htmlFor: "mosaic-agent-editor-instructions",
4650
+ className: "text-sm font-medium text-foreground",
4651
+ children: instructionsLabel
4652
+ }
4653
+ ),
4654
+ /* @__PURE__ */ jsx(
4655
+ MosaicTextarea,
4656
+ {
4657
+ id: "mosaic-agent-editor-instructions",
4658
+ value: instructionsValue,
4659
+ onChange: (event) => onInstructionsChange(event.target.value),
4660
+ "aria-invalid": instructionsError ? "true" : void 0,
4661
+ "aria-describedby": instructionsErrorId
4662
+ }
4663
+ ),
4664
+ instructionsError ? /* @__PURE__ */ jsx("p", { id: instructionsErrorId, className: "text-xs font-medium text-destructive", children: instructionsError }) : null
4665
+ ] }),
4666
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-end gap-2", children: [
4667
+ /* @__PURE__ */ jsx(MosaicButton, { type: "button", variant: "outline", onClick: onCancel, children: cancelLabel }),
4668
+ /* @__PURE__ */ jsx(MosaicButton, { type: "button", onClick: handleSave, disabled: saveDisabled, children: isSaving ? savingLabel : saveLabel })
4669
+ ] })
4670
+ ]
4671
+ }
4672
+ );
4673
+ }
4674
+ MosaicAgentEditor.displayName = "MosaicAgentEditor";
4574
4675
  function cn47(...classes) {
4575
4676
  return classes.filter(Boolean).join(" ");
4576
4677
  }
@@ -4794,9 +4895,156 @@ function MosaicDeleteConfirmationDialog({
4794
4895
  ] }) });
4795
4896
  }
4796
4897
  MosaicDeleteConfirmationDialog.displayName = "MosaicDeleteConfirmationDialog";
4898
+ var alertDialogContentVariants = cva([
4899
+ "fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)]",
4900
+ "-translate-x-1/2 -translate-y-1/2 gap-4",
4901
+ "rounded-lg border border-border bg-background p-6 shadow-lg",
4902
+ "sm:max-w-lg"
4903
+ ]);
4904
+ var alertDialogOverlayVariants = cva(["fixed inset-0 z-50 bg-black/50"]);
4797
4905
  function cn49(...classes) {
4798
4906
  return classes.filter(Boolean).join(" ");
4799
4907
  }
4908
+ function MosaicAlertDialog(props) {
4909
+ return /* @__PURE__ */ jsx(AlertDialog.Root, { "data-slot": "alert-dialog", ...props });
4910
+ }
4911
+ MosaicAlertDialog.displayName = "MosaicAlertDialog";
4912
+ function MosaicAlertDialogTrigger(props) {
4913
+ return /* @__PURE__ */ jsx(AlertDialog.Trigger, { "data-slot": "alert-dialog-trigger", ...props });
4914
+ }
4915
+ MosaicAlertDialogTrigger.displayName = "MosaicAlertDialogTrigger";
4916
+ function MosaicAlertDialogPortal(props) {
4917
+ return /* @__PURE__ */ jsx(AlertDialog.Portal, { "data-slot": "alert-dialog-portal", ...props });
4918
+ }
4919
+ MosaicAlertDialogPortal.displayName = "MosaicAlertDialogPortal";
4920
+ function MosaicAlertDialogOverlay({ className, ...props }) {
4921
+ return /* @__PURE__ */ jsx(
4922
+ AlertDialog.Backdrop,
4923
+ {
4924
+ "data-slot": "alert-dialog-overlay",
4925
+ className: cn49(alertDialogOverlayVariants(), className),
4926
+ ...props
4927
+ }
4928
+ );
4929
+ }
4930
+ MosaicAlertDialogOverlay.displayName = "MosaicAlertDialogOverlay";
4931
+ function MosaicAlertDialogContent({ className, ...props }) {
4932
+ return /* @__PURE__ */ jsxs(MosaicAlertDialogPortal, { children: [
4933
+ /* @__PURE__ */ jsx(MosaicAlertDialogOverlay, {}),
4934
+ /* @__PURE__ */ jsx(
4935
+ AlertDialog.Popup,
4936
+ {
4937
+ "data-slot": "alert-dialog-content",
4938
+ className: cn49(alertDialogContentVariants(), className),
4939
+ ...props
4940
+ }
4941
+ )
4942
+ ] });
4943
+ }
4944
+ MosaicAlertDialogContent.displayName = "MosaicAlertDialogContent";
4945
+ function MosaicAlertDialogHeader({ className, ...props }) {
4946
+ return /* @__PURE__ */ jsx(
4947
+ "div",
4948
+ {
4949
+ "data-slot": "alert-dialog-header",
4950
+ className: cn49("flex flex-col gap-2 text-center sm:text-left", className),
4951
+ ...props
4952
+ }
4953
+ );
4954
+ }
4955
+ MosaicAlertDialogHeader.displayName = "MosaicAlertDialogHeader";
4956
+ function MosaicAlertDialogFooter({ className, ...props }) {
4957
+ return /* @__PURE__ */ jsx(
4958
+ "div",
4959
+ {
4960
+ "data-slot": "alert-dialog-footer",
4961
+ className: cn49("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
4962
+ ...props
4963
+ }
4964
+ );
4965
+ }
4966
+ MosaicAlertDialogFooter.displayName = "MosaicAlertDialogFooter";
4967
+ function MosaicAlertDialogTitle({
4968
+ className,
4969
+ children,
4970
+ ...props
4971
+ }) {
4972
+ return /* @__PURE__ */ jsx(
4973
+ AlertDialog.Title,
4974
+ {
4975
+ "data-slot": "alert-dialog-title",
4976
+ className: cn49("text-lg font-semibold text-foreground", className),
4977
+ ...props,
4978
+ children
4979
+ }
4980
+ );
4981
+ }
4982
+ MosaicAlertDialogTitle.displayName = "MosaicAlertDialogTitle";
4983
+ function MosaicAlertDialogDescription({
4984
+ className,
4985
+ children,
4986
+ ...props
4987
+ }) {
4988
+ return /* @__PURE__ */ jsx(
4989
+ AlertDialog.Description,
4990
+ {
4991
+ "data-slot": "alert-dialog-description",
4992
+ className: cn49("text-sm text-muted-foreground", className),
4993
+ ...props,
4994
+ children
4995
+ }
4996
+ );
4997
+ }
4998
+ MosaicAlertDialogDescription.displayName = "MosaicAlertDialogDescription";
4999
+ function MosaicAlertDialogAction({
5000
+ className,
5001
+ children,
5002
+ ...props
5003
+ }) {
5004
+ return /* @__PURE__ */ jsx(
5005
+ AlertDialog.Close,
5006
+ {
5007
+ "data-slot": "alert-dialog-action",
5008
+ className: cn49(
5009
+ "inline-flex h-9 items-center justify-center gap-1.5 rounded-md px-4",
5010
+ "bg-destructive text-sm font-medium text-destructive-foreground",
5011
+ "hover:bg-destructive/90",
5012
+ "focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
5013
+ "disabled:pointer-events-none disabled:opacity-50",
5014
+ className
5015
+ ),
5016
+ ...props,
5017
+ children
5018
+ }
5019
+ );
5020
+ }
5021
+ MosaicAlertDialogAction.displayName = "MosaicAlertDialogAction";
5022
+ function MosaicAlertDialogCancel({
5023
+ className,
5024
+ children,
5025
+ ...props
5026
+ }) {
5027
+ return /* @__PURE__ */ jsx(
5028
+ AlertDialog.Close,
5029
+ {
5030
+ "data-slot": "alert-dialog-cancel",
5031
+ className: cn49(
5032
+ "inline-flex h-9 items-center justify-center gap-1.5 rounded-md border border-border px-4",
5033
+ "bg-background text-sm font-medium text-foreground shadow-xs",
5034
+ "hover:bg-muted hover:text-foreground",
5035
+ "focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring",
5036
+ "disabled:pointer-events-none disabled:opacity-50",
5037
+ className
5038
+ ),
5039
+ ...props,
5040
+ children
5041
+ }
5042
+ );
5043
+ }
5044
+ MosaicAlertDialogCancel.displayName = "MosaicAlertDialogCancel";
5045
+ function cn50(...classes) {
5046
+ return classes.filter(Boolean).join(" ");
5047
+ }
4800
5048
  function Toggle({
4801
5049
  id,
4802
5050
  checked,
@@ -4810,7 +5058,7 @@ function Toggle({
4810
5058
  id,
4811
5059
  "aria-checked": checked,
4812
5060
  onClick: () => onChange(!checked),
4813
- className: cn49(
5061
+ className: cn50(
4814
5062
  "relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent",
4815
5063
  "transition-colors duration-200 ease-in-out",
4816
5064
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
@@ -4819,7 +5067,7 @@ function Toggle({
4819
5067
  children: /* @__PURE__ */ jsx(
4820
5068
  "span",
4821
5069
  {
4822
- className: cn49(
5070
+ className: cn50(
4823
5071
  "pointer-events-none inline-block h-5 w-5 rounded-full bg-background shadow-lg",
4824
5072
  "transform transition duration-200 ease-in-out",
4825
5073
  checked ? "translate-x-5" : "translate-x-0"
@@ -4841,7 +5089,7 @@ function NativeSelect({
4841
5089
  id,
4842
5090
  value,
4843
5091
  onChange: (e) => onChange(e.target.value),
4844
- className: cn49(
5092
+ className: cn50(
4845
5093
  "flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
4846
5094
  "text-sm text-foreground",
4847
5095
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
@@ -4861,7 +5109,7 @@ function MosaicPreferencesPanel({
4861
5109
  className
4862
5110
  }) {
4863
5111
  const { isMobile } = useDevice();
4864
- return /* @__PURE__ */ jsxs("div", { "data-slot": "preferences-panel", className: cn49("space-y-4 md:space-y-6", className), children: [
5112
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "preferences-panel", className: cn50("space-y-4 md:space-y-6", className), children: [
4865
5113
  groups.map((group) => /* @__PURE__ */ jsxs(
4866
5114
  "div",
4867
5115
  {
@@ -4904,13 +5152,13 @@ function MosaicPreferencesPanel({
4904
5152
  },
4905
5153
  group.id
4906
5154
  )),
4907
- /* @__PURE__ */ jsx("div", { className: cn49("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
5155
+ /* @__PURE__ */ jsx("div", { className: cn50("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
4908
5156
  "button",
4909
5157
  {
4910
5158
  type: "button",
4911
5159
  onClick: onSave,
4912
5160
  disabled: isSaving,
4913
- className: cn49(
5161
+ className: cn50(
4914
5162
  "inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
4915
5163
  "bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
4916
5164
  "hover:bg-primary/90",
@@ -4946,7 +5194,7 @@ function MosaicPreferencesPanel({
4946
5194
  ] });
4947
5195
  }
4948
5196
  MosaicPreferencesPanel.displayName = "MosaicPreferencesPanel";
4949
- function cn50(...classes) {
5197
+ function cn51(...classes) {
4950
5198
  return classes.filter(Boolean).join(" ");
4951
5199
  }
4952
5200
  function AvatarDisplay({
@@ -4959,7 +5207,7 @@ function AvatarDisplay({
4959
5207
  return /* @__PURE__ */ jsx(
4960
5208
  "span",
4961
5209
  {
4962
- className: cn50(
5210
+ className: cn51(
4963
5211
  "inline-flex shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground font-semibold overflow-hidden",
4964
5212
  sizeClass
4965
5213
  ),
@@ -4991,7 +5239,7 @@ function MosaicProfilePanel({
4991
5239
  className
4992
5240
  }) {
4993
5241
  const { isMobile } = useDevice();
4994
- return /* @__PURE__ */ jsxs("div", { "data-slot": "profile-panel", className: cn50("space-y-4 md:space-y-6", className), children: [
5242
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "profile-panel", className: cn51("space-y-4 md:space-y-6", className), children: [
4995
5243
  /* @__PURE__ */ jsxs("div", { className: "rounded-lg border border-border bg-card text-card-foreground shadow-sm", children: [
4996
5244
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-1.5 p-6", children: [
4997
5245
  /* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight md:text-xl", children: avatarHeading }),
@@ -5011,7 +5259,7 @@ function MosaicProfilePanel({
5011
5259
  {
5012
5260
  type: "button",
5013
5261
  onClick: onAvatarUpload,
5014
- className: cn50(
5262
+ className: cn51(
5015
5263
  "inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md border border-border",
5016
5264
  "bg-background px-4 py-2 text-sm font-medium text-foreground",
5017
5265
  "hover:bg-accent hover:text-accent-foreground",
@@ -5061,7 +5309,7 @@ function MosaicProfilePanel({
5061
5309
  placeholder: field.placeholder,
5062
5310
  onChange: (e) => onFieldChange?.(field.id, e.target.value),
5063
5311
  rows: 4,
5064
- className: cn50(
5312
+ className: cn51(
5065
5313
  "flex min-h-[120px] w-full rounded-md border border-input bg-background px-3 py-2",
5066
5314
  "text-sm text-foreground placeholder:text-muted-foreground",
5067
5315
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
@@ -5077,7 +5325,7 @@ function MosaicProfilePanel({
5077
5325
  readOnly: field.readOnly,
5078
5326
  placeholder: field.placeholder,
5079
5327
  onChange: (e) => onFieldChange?.(field.id, e.target.value),
5080
- className: cn50(
5328
+ className: cn51(
5081
5329
  "flex min-h-[48px] w-full rounded-md border border-input bg-background px-3 py-2",
5082
5330
  "text-sm text-foreground placeholder:text-muted-foreground",
5083
5331
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
@@ -5097,7 +5345,7 @@ function MosaicProfilePanel({
5097
5345
  {
5098
5346
  type: "button",
5099
5347
  onClick: onChangePassword,
5100
- className: cn50(
5348
+ className: cn51(
5101
5349
  "inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
5102
5350
  "bg-background px-4 py-2 text-sm font-medium text-foreground",
5103
5351
  "hover:bg-accent hover:text-accent-foreground",
@@ -5109,13 +5357,13 @@ function MosaicProfilePanel({
5109
5357
  ) })
5110
5358
  ] }),
5111
5359
  extraSections,
5112
- /* @__PURE__ */ jsx("div", { className: cn50("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
5360
+ /* @__PURE__ */ jsx("div", { className: cn51("flex", isMobile ? "flex-col" : "justify-end"), children: /* @__PURE__ */ jsxs(
5113
5361
  "button",
5114
5362
  {
5115
5363
  type: "button",
5116
5364
  onClick: onSave,
5117
5365
  disabled: isSaving,
5118
- className: cn50(
5366
+ className: cn51(
5119
5367
  "inline-flex min-h-[44px] items-center justify-center gap-2 rounded-md",
5120
5368
  "bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
5121
5369
  "hover:bg-primary/90",
@@ -5151,7 +5399,7 @@ function MosaicProfilePanel({
5151
5399
  ] });
5152
5400
  }
5153
5401
  MosaicProfilePanel.displayName = "MosaicProfilePanel";
5154
- function cn51(...classes) {
5402
+ function cn52(...classes) {
5155
5403
  return classes.filter(Boolean).join(" ");
5156
5404
  }
5157
5405
  var ANIM_ID7 = "mosaic-main-nav-kf";
@@ -5264,7 +5512,7 @@ function MosaicMainNav({
5264
5512
  {
5265
5513
  type: "button",
5266
5514
  onClick: () => setIsOpen(!isOpen),
5267
- className: cn51(
5515
+ className: cn52(
5268
5516
  "inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-md p-0",
5269
5517
  "text-foreground hover:bg-accent hover:text-accent-foreground",
5270
5518
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -5290,7 +5538,7 @@ function MosaicMainNav({
5290
5538
  "aria-label": drawerNavAriaLabel,
5291
5539
  open: isOpen,
5292
5540
  "data-open": isOpen ? "true" : "false",
5293
- className: cn51(
5541
+ className: cn52(
5294
5542
  "mosaic-nav-drawer",
5295
5543
  "fixed inset-y-0 left-0 z-50 m-0 w-[280px] max-h-none h-full p-0",
5296
5544
  "border-r border-border bg-background shadow-xl",
@@ -5307,7 +5555,7 @@ function MosaicMainNav({
5307
5555
  {
5308
5556
  type: "button",
5309
5557
  onClick: () => setIsOpen(false),
5310
- className: cn51(
5558
+ className: cn52(
5311
5559
  "inline-flex h-8 w-8 items-center justify-center rounded-md",
5312
5560
  "text-muted-foreground hover:bg-accent hover:text-accent-foreground",
5313
5561
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -5320,7 +5568,7 @@ function MosaicMainNav({
5320
5568
  /* @__PURE__ */ jsx("nav", { className: "flex flex-col gap-1 p-4", "aria-label": mainNavAriaLabel, children: filteredItems.map((item) => {
5321
5569
  const Icon = item.icon;
5322
5570
  const active = isItemActive(item);
5323
- const itemClass = cn51(
5571
+ const itemClass = cn52(
5324
5572
  "flex items-center gap-3 rounded-lg px-3 py-3 text-sm font-medium transition-colors",
5325
5573
  "hover:bg-accent hover:text-accent-foreground",
5326
5574
  "min-h-[44px]",
@@ -5346,12 +5594,12 @@ function MosaicMainNav({
5346
5594
  "nav",
5347
5595
  {
5348
5596
  "data-slot": "main-nav",
5349
- className: cn51("flex items-center gap-1", className),
5597
+ className: cn52("flex items-center gap-1", className),
5350
5598
  "aria-label": mainNavAriaLabel,
5351
5599
  children: filteredItems.map((item) => {
5352
5600
  const Icon = item.icon;
5353
5601
  const active = isItemActive(item);
5354
- const itemClass = cn51(
5602
+ const itemClass = cn52(
5355
5603
  "flex items-center gap-2 rounded-lg px-3 py-2 text-sm font-medium transition-colors",
5356
5604
  "hover:bg-accent hover:text-accent-foreground",
5357
5605
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
@@ -5371,7 +5619,7 @@ function MosaicMainNav({
5371
5619
  );
5372
5620
  }
5373
5621
  MosaicMainNav.displayName = "MosaicMainNav";
5374
- function cn52(...classes) {
5622
+ function cn53(...classes) {
5375
5623
  return classes.filter(Boolean).join(" ");
5376
5624
  }
5377
5625
  function MoreVertIcon() {
@@ -5511,7 +5759,7 @@ function MosaicAgentCard({
5511
5759
  "div",
5512
5760
  {
5513
5761
  "data-slot": "agent-card",
5514
- className: cn52(
5762
+ className: cn53(
5515
5763
  "relative overflow-hidden rounded-lg border border-border bg-card text-card-foreground shadow-sm",
5516
5764
  "transition-shadow hover:shadow-md",
5517
5765
  agent.isActive && "ring-2 ring-primary",
@@ -5521,7 +5769,7 @@ function MosaicAgentCard({
5521
5769
  /* @__PURE__ */ jsx(
5522
5770
  "div",
5523
5771
  {
5524
- className: cn52(
5772
+ className: cn53(
5525
5773
  "absolute left-0 top-0 h-1 w-full",
5526
5774
  agent.isActive ? "bg-primary" : "bg-muted"
5527
5775
  )
@@ -5533,7 +5781,7 @@ function MosaicAgentCard({
5533
5781
  agent.accentColor && /* @__PURE__ */ jsx(
5534
5782
  "span",
5535
5783
  {
5536
- className: cn52("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
5784
+ className: cn53("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
5537
5785
  "aria-hidden": "true"
5538
5786
  }
5539
5787
  ),
@@ -5551,7 +5799,7 @@ function MosaicAgentCard({
5551
5799
  {
5552
5800
  type: "button",
5553
5801
  onClick: () => setMenuOpen((v) => !v),
5554
- className: cn52(
5802
+ className: cn53(
5555
5803
  "inline-flex h-8 w-8 items-center justify-center rounded-md",
5556
5804
  "text-muted-foreground hover:bg-accent hover:text-accent-foreground",
5557
5805
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -5566,7 +5814,7 @@ function MosaicAgentCard({
5566
5814
  "div",
5567
5815
  {
5568
5816
  role: "menu",
5569
- className: cn52(
5817
+ className: cn53(
5570
5818
  "absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
5571
5819
  "bg-popover py-1 shadow-md"
5572
5820
  ),
@@ -5581,7 +5829,7 @@ function MosaicAgentCard({
5581
5829
  onToggleStatus(agent.id);
5582
5830
  setMenuOpen(false);
5583
5831
  },
5584
- className: cn52(
5832
+ className: cn53(
5585
5833
  "flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
5586
5834
  "hover:bg-accent hover:text-accent-foreground",
5587
5835
  "disabled:pointer-events-none disabled:opacity-50"
@@ -5640,7 +5888,7 @@ function MosaicAgentCard({
5640
5888
  type: "button",
5641
5889
  disabled: isLoading,
5642
5890
  onClick: () => onToggleStatus(agent.id),
5643
- className: cn52(
5891
+ className: cn53(
5644
5892
  "inline-flex h-7 items-center justify-center rounded-md px-3 text-xs font-medium",
5645
5893
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
5646
5894
  "disabled:pointer-events-none disabled:opacity-50",
@@ -5656,7 +5904,7 @@ function MosaicAgentCard({
5656
5904
  );
5657
5905
  }
5658
5906
  MosaicAgentCard.displayName = "MosaicAgentCard";
5659
- function cn53(...classes) {
5907
+ function cn54(...classes) {
5660
5908
  return classes.filter(Boolean).join(" ");
5661
5909
  }
5662
5910
  function PlusIcon3() {
@@ -5739,7 +5987,7 @@ function PickerContent({
5739
5987
  {
5740
5988
  type: "button",
5741
5989
  onClick: () => onAdd(agent.id),
5742
- className: cn53(
5990
+ className: cn54(
5743
5991
  "flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
5744
5992
  "hover:bg-accent hover:text-accent-foreground",
5745
5993
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -5748,7 +5996,7 @@ function PickerContent({
5748
5996
  agent.accentColor && /* @__PURE__ */ jsx(
5749
5997
  "span",
5750
5998
  {
5751
- className: cn53("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
5999
+ className: cn54("h-3 w-3 shrink-0 rounded-full", agent.accentColor),
5752
6000
  "aria-hidden": "true"
5753
6001
  }
5754
6002
  ),
@@ -5765,7 +6013,7 @@ function PickerContent({
5765
6013
  {
5766
6014
  type: "button",
5767
6015
  onClick: onOpenBuilder,
5768
- className: cn53(
6016
+ className: cn54(
5769
6017
  "flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-sm",
5770
6018
  "hover:bg-accent hover:text-accent-foreground",
5771
6019
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -5820,11 +6068,11 @@ function MosaicQuickAgentSelector({
5820
6068
  setPickerOpen(false);
5821
6069
  };
5822
6070
  const canAdd = selectedAgents.length < maxAgents;
5823
- return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-agent-selector", className: cn53("flex items-center gap-2", className), children: [
6071
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-agent-selector", className: cn54("flex items-center gap-2", className), children: [
5824
6072
  /* @__PURE__ */ jsx("div", { className: "flex items-center gap-2 overflow-x-auto", children: selectedAgents.map((agent) => /* @__PURE__ */ jsxs(
5825
6073
  "div",
5826
6074
  {
5827
- className: cn53(
6075
+ className: cn54(
5828
6076
  "group flex shrink-0 items-center gap-2 rounded-md border border-border bg-card",
5829
6077
  isMobile ? "px-2 py-1" : "px-3 py-1.5"
5830
6078
  ),
@@ -5832,17 +6080,17 @@ function MosaicQuickAgentSelector({
5832
6080
  agent.accentColor && /* @__PURE__ */ jsx(
5833
6081
  "span",
5834
6082
  {
5835
- className: cn53("h-2 w-2 shrink-0 rounded-full", agent.accentColor),
6083
+ className: cn54("h-2 w-2 shrink-0 rounded-full", agent.accentColor),
5836
6084
  "aria-hidden": "true"
5837
6085
  }
5838
6086
  ),
5839
- /* @__PURE__ */ jsx("span", { className: cn53("whitespace-nowrap font-medium", isMobile ? "text-xs" : "text-sm"), children: isMobile ? agent.type.split("-")[0] : agent.name }),
6087
+ /* @__PURE__ */ jsx("span", { className: cn54("whitespace-nowrap font-medium", isMobile ? "text-xs" : "text-sm"), children: isMobile ? agent.type.split("-")[0] : agent.name }),
5840
6088
  /* @__PURE__ */ jsx(
5841
6089
  "button",
5842
6090
  {
5843
6091
  type: "button",
5844
6092
  onClick: () => onRemoveAgent(agent.id),
5845
- className: cn53(
6093
+ className: cn54(
5846
6094
  "inline-flex h-4 w-4 items-center justify-center rounded",
5847
6095
  "text-muted-foreground hover:text-foreground",
5848
6096
  "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
@@ -5862,7 +6110,7 @@ function MosaicQuickAgentSelector({
5862
6110
  {
5863
6111
  type: "button",
5864
6112
  onClick: () => setPickerOpen((v) => !v),
5865
- className: cn53(
6113
+ className: cn54(
5866
6114
  "inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
5867
6115
  "px-3 py-1.5 text-sm font-medium text-foreground",
5868
6116
  "hover:bg-accent hover:text-accent-foreground",
@@ -5877,7 +6125,7 @@ function MosaicQuickAgentSelector({
5877
6125
  !isMobile && pickerOpen && /* @__PURE__ */ jsx(
5878
6126
  "div",
5879
6127
  {
5880
- className: cn53(
6128
+ className: cn54(
5881
6129
  "absolute left-0 top-full z-50 mt-2 w-72 rounded-lg border border-border",
5882
6130
  "bg-popover shadow-lg"
5883
6131
  ),
@@ -5926,7 +6174,7 @@ function MosaicQuickAgentSelector({
5926
6174
  /* @__PURE__ */ jsxs(
5927
6175
  "span",
5928
6176
  {
5929
- className: cn53(
6177
+ className: cn54(
5930
6178
  "shrink-0 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground"
5931
6179
  ),
5932
6180
  children: [
@@ -5939,6 +6187,81 @@ function MosaicQuickAgentSelector({
5939
6187
  ] });
5940
6188
  }
5941
6189
  MosaicQuickAgentSelector.displayName = "MosaicQuickAgentSelector";
6190
+ var agentPreviewVariants = cva(["rounded-lg border border-border"], {
6191
+ variants: {
6192
+ variant: {
6193
+ summary: ["flex items-center gap-3 p-3 bg-background"],
6194
+ detailed: []
6195
+ }
6196
+ },
6197
+ defaultVariants: {
6198
+ variant: "summary"
6199
+ }
6200
+ });
6201
+ function cn55(...classes) {
6202
+ return classes.filter(Boolean).join(" ");
6203
+ }
6204
+ function MosaicAgentPreview(props) {
6205
+ if (props.variant === "detailed") {
6206
+ const { name: name2, title, attributes, className: className2 } = props;
6207
+ return /* @__PURE__ */ jsxs(
6208
+ "div",
6209
+ {
6210
+ "data-slot": "agent-preview",
6211
+ className: cn55(agentPreviewVariants({ variant: "detailed" }), className2),
6212
+ children: [
6213
+ /* @__PURE__ */ jsx("div", { "data-slot": "agent-preview-header", className: "p-4 pb-0", children: /* @__PURE__ */ jsx("p", { className: "text-base font-semibold leading-none tracking-tight", children: title }) }),
6214
+ /* @__PURE__ */ jsxs("div", { className: "p-4", children: [
6215
+ /* @__PURE__ */ jsx("p", { className: "mb-3 truncate text-sm font-medium", children: name2 }),
6216
+ attributes.length > 0 && /* @__PURE__ */ jsx("ul", { className: "space-y-2", children: attributes.map((attribute) => /* @__PURE__ */ jsxs(
6217
+ "li",
6218
+ {
6219
+ "data-slot": "agent-preview-attribute",
6220
+ className: "flex items-start justify-between gap-3",
6221
+ children: [
6222
+ /* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-muted-foreground", children: attribute.label }),
6223
+ /* @__PURE__ */ jsx("span", { className: "text-xs font-medium", children: attribute.value })
6224
+ ]
6225
+ },
6226
+ attribute.id
6227
+ )) })
6228
+ ] })
6229
+ ]
6230
+ }
6231
+ );
6232
+ }
6233
+ const { name, tagline, badgeLabel, className } = props;
6234
+ return /* @__PURE__ */ jsxs(
6235
+ "div",
6236
+ {
6237
+ "data-slot": "agent-preview",
6238
+ className: cn55(agentPreviewVariants({ variant: "summary" }), className),
6239
+ children: [
6240
+ /* @__PURE__ */ jsx(
6241
+ "span",
6242
+ {
6243
+ "aria-hidden": "true",
6244
+ "data-slot": "agent-preview-avatar",
6245
+ className: "h-10 w-10 shrink-0 rounded-full bg-primary/10"
6246
+ }
6247
+ ),
6248
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
6249
+ /* @__PURE__ */ jsx("p", { className: "truncate text-sm font-medium", children: name }),
6250
+ /* @__PURE__ */ jsx("p", { className: "truncate text-xs text-muted-foreground", children: tagline })
6251
+ ] }),
6252
+ /* @__PURE__ */ jsx(
6253
+ "span",
6254
+ {
6255
+ "data-slot": "agent-preview-badge",
6256
+ className: "shrink-0 rounded-full bg-secondary px-2.5 py-0.5 text-xs font-semibold text-secondary-foreground",
6257
+ children: badgeLabel
6258
+ }
6259
+ )
6260
+ ]
6261
+ }
6262
+ );
6263
+ }
6264
+ MosaicAgentPreview.displayName = "MosaicAgentPreview";
5942
6265
  var memoryCardVariants = cva(
5943
6266
  [
5944
6267
  "group relative rounded-lg border border-border bg-card text-card-foreground shadow-sm",
@@ -6004,7 +6327,7 @@ var memoryActionsMenuTriggerVariants = cva(
6004
6327
  }
6005
6328
  }
6006
6329
  );
6007
- function cn54(...classes) {
6330
+ function cn56(...classes) {
6008
6331
  return classes.filter(Boolean).join(" ");
6009
6332
  }
6010
6333
  var MAX_VISIBLE_TAGS = 3;
@@ -6182,7 +6505,7 @@ function MosaicMemoryCard(props) {
6182
6505
  "aria-label": moreActionsLabel,
6183
6506
  "aria-haspopup": "menu",
6184
6507
  "aria-expanded": menuOpen,
6185
- className: cn54(memoryActionsMenuTriggerVariants({ variant })),
6508
+ className: cn56(memoryActionsMenuTriggerVariants({ variant })),
6186
6509
  children: /* @__PURE__ */ jsx(MoreVertIcon2, {})
6187
6510
  }
6188
6511
  ),
@@ -6190,7 +6513,7 @@ function MosaicMemoryCard(props) {
6190
6513
  "div",
6191
6514
  {
6192
6515
  role: "menu",
6193
- className: cn54(
6516
+ className: cn56(
6194
6517
  "absolute right-0 top-full z-50 mt-1 min-w-[140px] rounded-md border border-border",
6195
6518
  "bg-popover py-1 shadow-md"
6196
6519
  ),
@@ -6231,7 +6554,7 @@ function MosaicMemoryCard(props) {
6231
6554
  ref,
6232
6555
  "data-slot": "memory-card",
6233
6556
  "data-variant": variant,
6234
- className: cn54(memoryCardVariants({ variant }), className),
6557
+ className: cn56(memoryCardVariants({ variant }), className),
6235
6558
  children: props.variant !== "compact" ? /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
6236
6559
  /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-3", children: [
6237
6560
  /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 items-start gap-3", children: [
@@ -6241,7 +6564,7 @@ function MosaicMemoryCard(props) {
6241
6564
  /* @__PURE__ */ jsx(
6242
6565
  "span",
6243
6566
  {
6244
- className: cn54(
6567
+ className: cn56(
6245
6568
  memoryScopeBadgeVariants({ scope: memory.scope, bordered: true }),
6246
6569
  "mt-1"
6247
6570
  ),
@@ -6254,8 +6577,8 @@ function MosaicMemoryCard(props) {
6254
6577
  ] }),
6255
6578
  /* @__PURE__ */ jsx("p", { className: "line-clamp-3 text-sm text-muted-foreground", children: memory.content }),
6256
6579
  /* @__PURE__ */ jsxs("div", { "data-slot": "memory-tags", className: "flex flex-wrap gap-1", children: [
6257
- visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className: cn54(memoryTagBadgeVariants()), children: tag }, tag)),
6258
- hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className: cn54(memoryTagBadgeVariants()), children: props.formatMoreTags(hiddenTagCount) })
6580
+ visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className: cn56(memoryTagBadgeVariants()), children: tag }, tag)),
6581
+ hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className: cn56(memoryTagBadgeVariants()), children: props.formatMoreTags(hiddenTagCount) })
6259
6582
  ] }),
6260
6583
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-t pt-2 text-xs text-muted-foreground", children: [
6261
6584
  /* @__PURE__ */ jsxs("span", { className: "flex items-center gap-1", children: [
@@ -6283,7 +6606,7 @@ function MosaicMemoryCard(props) {
6283
6606
  /* @__PURE__ */ jsx(
6284
6607
  "span",
6285
6608
  {
6286
- className: cn54(memoryScopeBadgeVariants({ scope: memory.scope, bordered: false })),
6609
+ className: cn56(memoryScopeBadgeVariants({ scope: memory.scope, bordered: false })),
6287
6610
  children: formatScope(memory.scope)
6288
6611
  }
6289
6612
  ),
@@ -6325,7 +6648,7 @@ var templateAgentCardBadgeVariants = cva([
6325
6648
  var templateAgentCardTagVariants = cva([
6326
6649
  "inline-flex items-center rounded-full border border-border bg-muted px-2 py-0.5 text-xs text-muted-foreground"
6327
6650
  ]);
6328
- function cn55(...classes) {
6651
+ function cn57(...classes) {
6329
6652
  return classes.filter(Boolean).join(" ");
6330
6653
  }
6331
6654
  var MAX_VISIBLE_TAGS2 = 3;
@@ -6394,7 +6717,7 @@ function MosaicTemplateAgentCard({
6394
6717
  {
6395
6718
  ref,
6396
6719
  "data-slot": "template-agent-card",
6397
- className: cn55(templateAgentCardVariants({ selected: isSelected }), "p-4", className),
6720
+ className: cn57(templateAgentCardVariants({ selected: isSelected }), "p-4", className),
6398
6721
  children: [
6399
6722
  /* @__PURE__ */ jsx("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ jsxs(
6400
6723
  "button",
@@ -6403,7 +6726,7 @@ function MosaicTemplateAgentCard({
6403
6726
  onClick: () => onSelect(template),
6404
6727
  "aria-label": selectAriaLabel,
6405
6728
  "aria-pressed": isSelected,
6406
- className: cn55(
6729
+ className: cn57(
6407
6730
  "flex min-w-0 flex-1 items-start gap-2 rounded-md text-left",
6408
6731
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
6409
6732
  ),
@@ -6417,11 +6740,11 @@ function MosaicTemplateAgentCard({
6417
6740
  }
6418
6741
  ) }),
6419
6742
  /* @__PURE__ */ jsxs("div", { className: "mt-3 flex flex-wrap items-center gap-2", children: [
6420
- template.category && /* @__PURE__ */ jsx("span", { className: cn55(templateAgentCardBadgeVariants()), children: template.category }),
6421
- /* @__PURE__ */ jsx("span", { className: cn55(templateAgentCardBadgeVariants()), children: agentCountLabel }),
6422
- formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsx("span", { className: cn55(templateAgentCardBadgeVariants()), children: formatUsageCount(template.usageCount) }),
6423
- visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className: cn55(templateAgentCardTagVariants()), children: tag }, tag)),
6424
- hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className: cn55(templateAgentCardTagVariants()), children: formatMoreTags(hiddenTagCount) })
6743
+ template.category && /* @__PURE__ */ jsx("span", { className: cn57(templateAgentCardBadgeVariants()), children: template.category }),
6744
+ /* @__PURE__ */ jsx("span", { className: cn57(templateAgentCardBadgeVariants()), children: agentCountLabel }),
6745
+ formatUsageCount(template.usageCount) != null && /* @__PURE__ */ jsx("span", { className: cn57(templateAgentCardBadgeVariants()), children: formatUsageCount(template.usageCount) }),
6746
+ visibleTags.map((tag) => /* @__PURE__ */ jsx("span", { className: cn57(templateAgentCardTagVariants()), children: tag }, tag)),
6747
+ hiddenTagCount > 0 && /* @__PURE__ */ jsx("span", { className: cn57(templateAgentCardTagVariants()), children: formatMoreTags(hiddenTagCount) })
6425
6748
  ] }),
6426
6749
  (onPreview || onDuplicate) && /* @__PURE__ */ jsxs("div", { className: "mt-3 flex items-center gap-2 border-t border-border pt-2", children: [
6427
6750
  onPreview && /* @__PURE__ */ jsxs(
@@ -6430,7 +6753,7 @@ function MosaicTemplateAgentCard({
6430
6753
  type: "button",
6431
6754
  onClick: () => onPreview(template),
6432
6755
  "aria-label": previewAriaLabel,
6433
- className: cn55(
6756
+ className: cn57(
6434
6757
  "inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
6435
6758
  "text-muted-foreground hover:bg-accent hover:text-accent-foreground",
6436
6759
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -6447,7 +6770,7 @@ function MosaicTemplateAgentCard({
6447
6770
  type: "button",
6448
6771
  onClick: () => onDuplicate(template),
6449
6772
  "aria-label": duplicateAriaLabel,
6450
- className: cn55(
6773
+ className: cn57(
6451
6774
  "inline-flex h-8 flex-1 items-center justify-center gap-1.5 rounded-md text-xs font-medium",
6452
6775
  "text-muted-foreground hover:bg-accent hover:text-accent-foreground",
6453
6776
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -6464,7 +6787,7 @@ function MosaicTemplateAgentCard({
6464
6787
  );
6465
6788
  }
6466
6789
  MosaicTemplateAgentCard.displayName = "MosaicTemplateAgentCard";
6467
- function cn56(...classes) {
6790
+ function cn58(...classes) {
6468
6791
  return classes.filter(Boolean).join(" ");
6469
6792
  }
6470
6793
  function SearchIcon() {
@@ -6565,7 +6888,7 @@ function MosaicSelectorModal({
6565
6888
  value: query,
6566
6889
  onChange: (e) => setQuery(e.target.value),
6567
6890
  placeholder: searchPlaceholder,
6568
- className: cn56(
6891
+ className: cn58(
6569
6892
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
6570
6893
  "text-sm text-foreground placeholder:text-muted-foreground",
6571
6894
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -6579,7 +6902,7 @@ function MosaicSelectorModal({
6579
6902
  {
6580
6903
  type: "button",
6581
6904
  onClick: () => setActiveCategory("all"),
6582
- className: cn56(
6905
+ className: cn58(
6583
6906
  "shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
6584
6907
  activeCategory === "all" ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
6585
6908
  ),
@@ -6591,7 +6914,7 @@ function MosaicSelectorModal({
6591
6914
  {
6592
6915
  type: "button",
6593
6916
  onClick: () => setActiveCategory(cat.id),
6594
- className: cn56(
6917
+ className: cn58(
6595
6918
  "shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
6596
6919
  activeCategory === cat.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
6597
6920
  ),
@@ -6603,7 +6926,7 @@ function MosaicSelectorModal({
6603
6926
  /* @__PURE__ */ jsxs(
6604
6927
  "div",
6605
6928
  {
6606
- className: cn56(
6929
+ className: cn58(
6607
6930
  "max-h-[50vh] overflow-y-auto",
6608
6931
  columns === 2 ? "grid grid-cols-1 gap-3 sm:grid-cols-2" : "flex flex-col gap-3"
6609
6932
  ),
@@ -6615,7 +6938,7 @@ function MosaicSelectorModal({
6615
6938
  {
6616
6939
  type: "button",
6617
6940
  onClick: () => setPendingId(item.id),
6618
- className: cn56(
6941
+ className: cn58(
6619
6942
  "group relative rounded-lg border p-4 text-left transition-all duration-150",
6620
6943
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
6621
6944
  isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50"
@@ -6653,7 +6976,7 @@ function MosaicSelectorModal({
6653
6976
  {
6654
6977
  type: "button",
6655
6978
  onClick: onClose,
6656
- className: cn56(
6979
+ className: cn58(
6657
6980
  "inline-flex min-h-[44px] items-center justify-center rounded-md border border-border",
6658
6981
  "bg-background px-4 py-2 text-sm font-medium text-foreground",
6659
6982
  "hover:bg-accent hover:text-accent-foreground",
@@ -6668,7 +6991,7 @@ function MosaicSelectorModal({
6668
6991
  type: "button",
6669
6992
  onClick: handleConfirm,
6670
6993
  disabled: !pendingItem,
6671
- className: cn56(
6994
+ className: cn58(
6672
6995
  "inline-flex min-h-[44px] items-center justify-center rounded-md",
6673
6996
  "bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
6674
6997
  "hover:bg-primary/90",
@@ -6684,7 +7007,7 @@ function MosaicSelectorModal({
6684
7007
  );
6685
7008
  }
6686
7009
  MosaicSelectorModal.displayName = "MosaicSelectorModal";
6687
- function cn57(...classes) {
7010
+ function cn59(...classes) {
6688
7011
  return classes.filter(Boolean).join(" ");
6689
7012
  }
6690
7013
  function relativeTime(ts) {
@@ -6940,7 +7263,7 @@ function MosaicMessageCard({
6940
7263
  "div",
6941
7264
  {
6942
7265
  "data-slot": "message-card",
6943
- className: cn57(
7266
+ className: cn59(
6944
7267
  "rounded-lg border border-border bg-card p-4 shadow-sm transition-shadow hover:shadow-md",
6945
7268
  compact && "p-3",
6946
7269
  message.sender.type === "user" && "bg-primary/5",
@@ -6950,7 +7273,7 @@ function MosaicMessageCard({
6950
7273
  /* @__PURE__ */ jsx(
6951
7274
  "span",
6952
7275
  {
6953
- className: cn57(
7276
+ className: cn59(
6954
7277
  "inline-flex shrink-0 items-center justify-center rounded-full text-white font-semibold",
6955
7278
  compact ? "h-8 w-8 text-xs" : "h-10 w-10 text-sm",
6956
7279
  message.sender.accentColor ?? "bg-muted text-muted-foreground"
@@ -6968,7 +7291,7 @@ function MosaicMessageCard({
6968
7291
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
6969
7292
  /* @__PURE__ */ jsxs("div", { className: "mb-2 flex items-center justify-between gap-2", children: [
6970
7293
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
6971
- /* @__PURE__ */ jsx("span", { className: cn57("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
7294
+ /* @__PURE__ */ jsx("span", { className: cn59("font-medium", compact ? "text-sm" : "text-base"), children: message.sender.name }),
6972
7295
  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" })
6973
7296
  ] }),
6974
7297
  /* @__PURE__ */ jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: relativeTime(message.timestamp) })
@@ -6976,7 +7299,7 @@ function MosaicMessageCard({
6976
7299
  /* @__PURE__ */ jsx(
6977
7300
  "p",
6978
7301
  {
6979
- className: cn57(
7302
+ className: cn59(
6980
7303
  "leading-relaxed text-foreground mb-3",
6981
7304
  compact ? "text-sm" : "text-base"
6982
7305
  ),
@@ -6991,7 +7314,7 @@ function MosaicMessageCard({
6991
7314
  {
6992
7315
  type: "button",
6993
7316
  onClick: handleLike,
6994
- className: cn57(
7317
+ className: cn59(
6995
7318
  "inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
6996
7319
  "hover:bg-accent hover:text-accent-foreground",
6997
7320
  "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
@@ -7009,7 +7332,7 @@ function MosaicMessageCard({
7009
7332
  {
7010
7333
  type: "button",
7011
7334
  onClick: handleDislike,
7012
- className: cn57(
7335
+ className: cn59(
7013
7336
  "inline-flex h-8 items-center gap-1 rounded-md px-2 text-xs",
7014
7337
  "hover:bg-accent hover:text-accent-foreground",
7015
7338
  "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
@@ -7054,7 +7377,7 @@ function MosaicMessageCard({
7054
7377
  {
7055
7378
  type: "button",
7056
7379
  onClick: handleBookmark,
7057
- className: cn57(
7380
+ className: cn59(
7058
7381
  "inline-flex h-8 w-8 items-center justify-center rounded-md",
7059
7382
  "hover:bg-accent hover:text-accent-foreground",
7060
7383
  "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
@@ -7155,7 +7478,7 @@ function MosaicMessageCard({
7155
7478
  );
7156
7479
  }
7157
7480
  MosaicMessageCard.displayName = "MosaicMessageCard";
7158
- function cn58(...classes) {
7481
+ function cn60(...classes) {
7159
7482
  return classes.filter(Boolean).join(" ");
7160
7483
  }
7161
7484
  function SearchIcon2() {
@@ -7205,7 +7528,7 @@ function MessageListDesktop({
7205
7528
  const filtered = query ? messages.filter(
7206
7529
  (m) => m.content.toLowerCase().includes(query.toLowerCase()) || m.sender.name.toLowerCase().includes(query.toLowerCase())
7207
7530
  ) : messages;
7208
- return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className: cn58("flex h-full flex-col", className), children: [
7531
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-desktop", className: cn60("flex h-full flex-col", className), children: [
7209
7532
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between border-b border-border px-6 py-4", children: [
7210
7533
  title && /* @__PURE__ */ jsx("h2", { className: "text-lg font-semibold", children: title }),
7211
7534
  /* @__PURE__ */ jsxs("div", { className: "relative ml-auto max-w-xs flex-1", children: [
@@ -7217,7 +7540,7 @@ function MessageListDesktop({
7217
7540
  value: query,
7218
7541
  onChange: (e) => setQuery(e.target.value),
7219
7542
  placeholder: searchPlaceholder,
7220
- className: cn58(
7543
+ className: cn60(
7221
7544
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
7222
7545
  "text-sm placeholder:text-muted-foreground",
7223
7546
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -7253,7 +7576,7 @@ function MessageListDesktop({
7253
7576
  {
7254
7577
  type: "button",
7255
7578
  onClick: onLoadMore,
7256
- className: cn58(
7579
+ className: cn60(
7257
7580
  "w-full rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
7258
7581
  "hover:bg-accent hover:text-accent-foreground",
7259
7582
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -7284,7 +7607,7 @@ function MessageListMobile({
7284
7607
  copyMessageLabel,
7285
7608
  className
7286
7609
  }) {
7287
- return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className: cn58("flex flex-col", className), children: [
7610
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "message-list-mobile", className: cn60("flex flex-col", className), children: [
7288
7611
  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 }) }),
7289
7612
  /* @__PURE__ */ jsxs("div", { className: "space-y-3 p-4", children: [
7290
7613
  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)) }),
@@ -7314,7 +7637,7 @@ function MessageListMobile({
7314
7637
  {
7315
7638
  type: "button",
7316
7639
  onClick: onLoadMore,
7317
- className: cn58(
7640
+ className: cn60(
7318
7641
  "w-full min-h-[44px] rounded-md border border-border bg-background px-4 py-2 text-sm font-medium",
7319
7642
  "hover:bg-accent hover:text-accent-foreground",
7320
7643
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -7329,7 +7652,7 @@ function MosaicMessageList(props) {
7329
7652
  return isMobile ? /* @__PURE__ */ jsx(MessageListMobile, { ...props }) : /* @__PURE__ */ jsx(MessageListDesktop, { ...props });
7330
7653
  }
7331
7654
  MosaicMessageList.displayName = "MosaicMessageList";
7332
- function cn59(...classes) {
7655
+ function cn61(...classes) {
7333
7656
  return classes.filter(Boolean).join(" ");
7334
7657
  }
7335
7658
  function ChevronLeftIcon2() {
@@ -7409,7 +7732,7 @@ function MosaicFilterSidebar({
7409
7732
  {
7410
7733
  "data-slot": "filter-sidebar",
7411
7734
  style: { width, minWidth: isCollapsed && !isMobile ? "64px" : void 0 },
7412
- className: cn59(
7735
+ className: cn61(
7413
7736
  "relative flex flex-col border-r border-border bg-card",
7414
7737
  "transition-[width] duration-200 ease-in-out",
7415
7738
  "overflow-hidden",
@@ -7421,7 +7744,7 @@ function MosaicFilterSidebar({
7421
7744
  {
7422
7745
  type: "button",
7423
7746
  onClick: onToggleCollapse,
7424
- className: cn59(
7747
+ className: cn61(
7425
7748
  "absolute -right-3 top-6 z-10 flex h-6 w-6 items-center justify-center rounded-full",
7426
7749
  "border border-border bg-background shadow-sm",
7427
7750
  "hover:bg-accent hover:text-accent-foreground",
@@ -7451,7 +7774,7 @@ function MosaicFilterSidebar({
7451
7774
  {
7452
7775
  type: "button",
7453
7776
  onClick: () => onFilterChange(f.id),
7454
- className: cn59(
7777
+ className: cn61(
7455
7778
  "flex min-h-[40px] items-center justify-between rounded-md px-3 py-2 text-sm font-medium",
7456
7779
  "transition-colors hover:bg-accent hover:text-accent-foreground",
7457
7780
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
@@ -7471,7 +7794,7 @@ function MosaicFilterSidebar({
7471
7794
  {
7472
7795
  type: "button",
7473
7796
  onClick: () => onCategoryChange(cat.id),
7474
- className: cn59(
7797
+ className: cn61(
7475
7798
  "flex min-h-[36px] items-center justify-between rounded-md px-3 py-1.5 text-sm",
7476
7799
  "transition-colors hover:bg-accent hover:text-accent-foreground",
7477
7800
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
@@ -7491,7 +7814,7 @@ function MosaicFilterSidebar({
7491
7814
  );
7492
7815
  }
7493
7816
  MosaicFilterSidebar.displayName = "MosaicFilterSidebar";
7494
- function cn60(...classes) {
7817
+ function cn62(...classes) {
7495
7818
  return classes.filter(Boolean).join(" ");
7496
7819
  }
7497
7820
  function SearchIcon3() {
@@ -7616,7 +7939,7 @@ function AgentListDesktop({
7616
7939
  value: query,
7617
7940
  onChange: (e) => setQuery(e.target.value),
7618
7941
  placeholder: searchPlaceholder,
7619
- className: cn60(
7942
+ className: cn62(
7620
7943
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
7621
7944
  "text-sm placeholder:text-muted-foreground",
7622
7945
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -7629,7 +7952,7 @@ function AgentListDesktop({
7629
7952
  {
7630
7953
  type: "button",
7631
7954
  onClick: onCreateAgent,
7632
- className: cn60(
7955
+ className: cn62(
7633
7956
  "inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground",
7634
7957
  "hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
7635
7958
  ),
@@ -7698,7 +8021,7 @@ function AgentListMobile({
7698
8021
  {
7699
8022
  type: "button",
7700
8023
  onClick: () => setFilterOpen(true),
7701
- className: cn60(
8024
+ className: cn62(
7702
8025
  "inline-flex h-9 w-9 items-center justify-center rounded-md",
7703
8026
  "border border-border bg-background text-foreground",
7704
8027
  "hover:bg-accent hover:text-accent-foreground",
@@ -7713,7 +8036,7 @@ function AgentListMobile({
7713
8036
  {
7714
8037
  type: "button",
7715
8038
  onClick: onCreateAgent,
7716
- className: cn60(
8039
+ className: cn62(
7717
8040
  "inline-flex h-9 items-center gap-1.5 rounded-md bg-primary px-3 text-sm font-medium text-primary-foreground",
7718
8041
  "hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
7719
8042
  ),
@@ -7734,7 +8057,7 @@ function AgentListMobile({
7734
8057
  value: query,
7735
8058
  onChange: (e) => setQuery(e.target.value),
7736
8059
  placeholder: searchPlaceholder,
7737
- className: cn60(
8060
+ className: cn62(
7738
8061
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
7739
8062
  "text-sm placeholder:text-muted-foreground",
7740
8063
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -7796,7 +8119,7 @@ function MosaicAgentList(props) {
7796
8119
  return isMobile ? /* @__PURE__ */ jsx(AgentListMobile, { ...props }) : /* @__PURE__ */ jsx(AgentListDesktop, { ...props });
7797
8120
  }
7798
8121
  MosaicAgentList.displayName = "MosaicAgentList";
7799
- function cn61(...classes) {
8122
+ function cn63(...classes) {
7800
8123
  return classes.filter(Boolean).join(" ");
7801
8124
  }
7802
8125
  function StarIcon({ filled }) {
@@ -7893,7 +8216,7 @@ function MarketplaceCard({
7893
8216
  "div",
7894
8217
  {
7895
8218
  "data-slot": "marketplace-card",
7896
- className: cn61(
8219
+ className: cn63(
7897
8220
  "rounded-lg border border-border bg-card p-4 transition-shadow hover:shadow-md",
7898
8221
  compact ? "flex items-center gap-3" : "flex flex-col gap-3"
7899
8222
  ),
@@ -7901,7 +8224,7 @@ function MarketplaceCard({
7901
8224
  item.icon && /* @__PURE__ */ jsx(
7902
8225
  "div",
7903
8226
  {
7904
- className: cn61(
8227
+ className: cn63(
7905
8228
  "flex shrink-0 items-center justify-center rounded-lg",
7906
8229
  compact ? "h-10 w-10" : "h-12 w-12",
7907
8230
  item.accentClass ?? "bg-muted text-muted-foreground"
@@ -7912,7 +8235,7 @@ function MarketplaceCard({
7912
8235
  /* @__PURE__ */ jsxs("div", { className: "flex-1 min-w-0", children: [
7913
8236
  /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2", children: [
7914
8237
  /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
7915
- /* @__PURE__ */ jsx("p", { className: cn61("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
8238
+ /* @__PURE__ */ jsx("p", { className: cn63("font-semibold leading-tight", compact ? "text-sm" : "text-base"), children: item.title }),
7916
8239
  item.description && !compact && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground line-clamp-2", children: item.description })
7917
8240
  ] }),
7918
8241
  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 })
@@ -7929,13 +8252,13 @@ function MarketplaceCard({
7929
8252
  ] })
7930
8253
  ] })
7931
8254
  ] }),
7932
- /* @__PURE__ */ jsxs("div", { className: cn61("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
8255
+ /* @__PURE__ */ jsxs("div", { className: cn63("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
7933
8256
  onPreview && /* @__PURE__ */ jsx(
7934
8257
  "button",
7935
8258
  {
7936
8259
  type: "button",
7937
8260
  onClick: () => onPreview(item.id),
7938
- className: cn61(
8261
+ className: cn63(
7939
8262
  "inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
7940
8263
  "bg-background px-3 text-xs font-medium text-foreground",
7941
8264
  "hover:bg-accent hover:text-accent-foreground",
@@ -7949,7 +8272,7 @@ function MarketplaceCard({
7949
8272
  {
7950
8273
  type: "button",
7951
8274
  onClick: () => onUninstall(item.id),
7952
- className: cn61(
8275
+ className: cn63(
7953
8276
  "inline-flex min-h-[36px] items-center justify-center rounded-md",
7954
8277
  "bg-secondary px-3 text-xs font-medium text-secondary-foreground",
7955
8278
  "hover:bg-secondary/80",
@@ -7962,7 +8285,7 @@ function MarketplaceCard({
7962
8285
  {
7963
8286
  type: "button",
7964
8287
  onClick: () => onInstall(item.id),
7965
- className: cn61(
8288
+ className: cn63(
7966
8289
  "inline-flex min-h-[36px] items-center justify-center rounded-md",
7967
8290
  "bg-primary px-3 text-xs font-medium text-primary-foreground",
7968
8291
  "hover:bg-primary/90",
@@ -8034,7 +8357,7 @@ function MarketplaceListDesktop(props) {
8034
8357
  value: query,
8035
8358
  onChange: (e) => setQuery(e.target.value),
8036
8359
  placeholder: searchPlaceholder,
8037
- className: cn61(
8360
+ className: cn63(
8038
8361
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
8039
8362
  "text-sm placeholder:text-muted-foreground",
8040
8363
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -8117,7 +8440,7 @@ function MarketplaceListMobile(props) {
8117
8440
  value: query,
8118
8441
  onChange: (e) => setQuery(e.target.value),
8119
8442
  placeholder: searchPlaceholder,
8120
- className: cn61(
8443
+ className: cn63(
8121
8444
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
8122
8445
  "text-sm placeholder:text-muted-foreground",
8123
8446
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -8181,8 +8504,131 @@ function MosaicMarketplaceList(props) {
8181
8504
  const { isMobile } = useDevice();
8182
8505
  return isMobile ? /* @__PURE__ */ jsx(MarketplaceListMobile, { ...props }) : /* @__PURE__ */ jsx(MarketplaceListDesktop, { ...props });
8183
8506
  }
8184
- MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
8185
- function cn62(...classes) {
8507
+ MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
8508
+ var marketplaceCardVariants = cva(
8509
+ ["rounded-xl border border-border bg-card p-4 transition-shadow", "hover:shadow-md"],
8510
+ {
8511
+ variants: {
8512
+ variant: {
8513
+ default: "flex flex-col gap-3",
8514
+ compact: "flex flex-row items-center gap-3"
8515
+ }
8516
+ },
8517
+ defaultVariants: {
8518
+ variant: "default"
8519
+ }
8520
+ }
8521
+ );
8522
+ function cn64(...classes) {
8523
+ return classes.filter(Boolean).join(" ");
8524
+ }
8525
+ function MosaicMarketplaceCard({
8526
+ id,
8527
+ name,
8528
+ description,
8529
+ icon,
8530
+ rating,
8531
+ mentions,
8532
+ isAdopted = false,
8533
+ onAdopt,
8534
+ onUnadopt,
8535
+ onPreview,
8536
+ adoptLabel,
8537
+ unadoptLabel,
8538
+ previewLabel,
8539
+ ratingLabel,
8540
+ variant = "default",
8541
+ className
8542
+ }) {
8543
+ const compact = variant === "compact";
8544
+ return /* @__PURE__ */ jsxs(
8545
+ MosaicCard,
8546
+ {
8547
+ "data-slot": "marketplace-card",
8548
+ className: cn64(marketplaceCardVariants({ variant }), className),
8549
+ children: [
8550
+ icon && /* @__PURE__ */ jsx(
8551
+ "div",
8552
+ {
8553
+ className: cn64(
8554
+ "flex shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",
8555
+ compact ? "h-10 w-10" : "h-12 w-12"
8556
+ ),
8557
+ children: icon
8558
+ }
8559
+ ),
8560
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
8561
+ /* @__PURE__ */ jsx(MosaicCardTitle, { className: cn64("truncate", compact ? "text-sm" : "text-base"), children: name }),
8562
+ description && /* @__PURE__ */ jsx(
8563
+ MosaicCardDescription,
8564
+ {
8565
+ "data-slot": "marketplace-card-description",
8566
+ className: "mt-1 line-clamp-2",
8567
+ children: description
8568
+ }
8569
+ ),
8570
+ mentions && mentions.length > 0 && /* @__PURE__ */ jsx("div", { className: "mt-2 flex flex-wrap gap-1", children: mentions.map((mention) => /* @__PURE__ */ jsx(MosaicBadge, { variant: "secondary", children: mention }, mention)) }),
8571
+ rating != null && /* @__PURE__ */ jsxs(
8572
+ "div",
8573
+ {
8574
+ "data-slot": "marketplace-card-rating",
8575
+ className: "mt-2 flex items-center gap-1 text-xs text-muted-foreground",
8576
+ children: [
8577
+ /* @__PURE__ */ jsx("span", { className: "font-medium text-foreground", children: rating }),
8578
+ /* @__PURE__ */ jsx("span", { children: ratingLabel })
8579
+ ]
8580
+ }
8581
+ )
8582
+ ] }),
8583
+ /* @__PURE__ */ jsxs("div", { className: cn64("flex gap-2", compact ? "shrink-0" : "mt-1"), children: [
8584
+ onPreview && /* @__PURE__ */ jsx(
8585
+ "button",
8586
+ {
8587
+ type: "button",
8588
+ onClick: () => onPreview(id),
8589
+ className: cn64(
8590
+ "inline-flex min-h-[36px] items-center justify-center rounded-md border border-border",
8591
+ "bg-background px-3 text-xs font-medium text-foreground",
8592
+ "hover:bg-accent hover:text-accent-foreground",
8593
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
8594
+ ),
8595
+ children: previewLabel
8596
+ }
8597
+ ),
8598
+ isAdopted ? onUnadopt && /* @__PURE__ */ jsx(
8599
+ "button",
8600
+ {
8601
+ type: "button",
8602
+ onClick: () => onUnadopt(id),
8603
+ className: cn64(
8604
+ "inline-flex min-h-[36px] items-center justify-center rounded-md",
8605
+ "bg-secondary px-3 text-xs font-medium text-secondary-foreground",
8606
+ "hover:bg-secondary/80",
8607
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
8608
+ ),
8609
+ children: unadoptLabel
8610
+ }
8611
+ ) : onAdopt && /* @__PURE__ */ jsx(
8612
+ "button",
8613
+ {
8614
+ type: "button",
8615
+ onClick: () => onAdopt(id),
8616
+ className: cn64(
8617
+ "inline-flex min-h-[36px] items-center justify-center rounded-md",
8618
+ "bg-primary px-3 text-xs font-medium text-primary-foreground",
8619
+ "hover:bg-primary/90",
8620
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
8621
+ ),
8622
+ children: adoptLabel
8623
+ }
8624
+ )
8625
+ ] })
8626
+ ]
8627
+ }
8628
+ );
8629
+ }
8630
+ MosaicMarketplaceCard.displayName = "MosaicMarketplaceCard";
8631
+ function cn65(...classes) {
8186
8632
  return classes.filter(Boolean).join(" ");
8187
8633
  }
8188
8634
  function StarIcon2() {
@@ -8303,7 +8749,7 @@ function MosaicTemplateCard({
8303
8749
  type: "button",
8304
8750
  onClick: () => onSelect(template),
8305
8751
  "data-slot": "template-card",
8306
- className: cn62(
8752
+ className: cn65(
8307
8753
  "w-full text-left rounded-lg border transition-all duration-200",
8308
8754
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
8309
8755
  isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
@@ -8404,7 +8850,7 @@ function MosaicTemplatePreview({
8404
8850
  agent.accentColor && /* @__PURE__ */ jsx(
8405
8851
  "span",
8406
8852
  {
8407
- className: cn62("h-2 w-2 rounded-full", agent.accentColor),
8853
+ className: cn65("h-2 w-2 rounded-full", agent.accentColor),
8408
8854
  "aria-hidden": "true"
8409
8855
  }
8410
8856
  ),
@@ -8464,7 +8910,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
8464
8910
  agent.accentColor && /* @__PURE__ */ jsx(
8465
8911
  "span",
8466
8912
  {
8467
- className: cn62("h-2.5 w-2.5 rounded-full", agent.accentColor),
8913
+ className: cn65("h-2.5 w-2.5 rounded-full", agent.accentColor),
8468
8914
  "aria-hidden": "true"
8469
8915
  }
8470
8916
  ),
@@ -8488,7 +8934,7 @@ function MosaicQuickStartPanel({
8488
8934
  scratchLabel,
8489
8935
  className
8490
8936
  }) {
8491
- return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className: cn62("flex flex-col gap-6", className), children: [
8937
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className: cn65("flex flex-col gap-6", className), children: [
8492
8938
  scenarios.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
8493
8939
  /* @__PURE__ */ jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
8494
8940
  /* @__PURE__ */ jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxs(
@@ -8496,7 +8942,7 @@ function MosaicQuickStartPanel({
8496
8942
  {
8497
8943
  type: "button",
8498
8944
  onClick: () => onSelectScenario(scenario),
8499
- className: cn62(
8945
+ className: cn65(
8500
8946
  "flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
8501
8947
  "hover:border-primary/50 hover:bg-primary/5",
8502
8948
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
@@ -8528,7 +8974,7 @@ function MosaicQuickStartPanel({
8528
8974
  {
8529
8975
  type: "button",
8530
8976
  onClick: () => onSelectPreset(preset),
8531
- className: cn62(
8977
+ className: cn65(
8532
8978
  "flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
8533
8979
  "hover:border-primary/50",
8534
8980
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
@@ -8542,7 +8988,7 @@ function MosaicQuickStartPanel({
8542
8988
  a.accentColor && /* @__PURE__ */ jsx(
8543
8989
  "span",
8544
8990
  {
8545
- className: cn62("h-2 w-2 rounded-full", a.accentColor),
8991
+ className: cn65("h-2 w-2 rounded-full", a.accentColor),
8546
8992
  "aria-hidden": "true"
8547
8993
  }
8548
8994
  ),
@@ -8560,7 +9006,7 @@ function MosaicQuickStartPanel({
8560
9006
  {
8561
9007
  type: "button",
8562
9008
  onClick: onStartFromScratch,
8563
- className: cn62(
9009
+ className: cn65(
8564
9010
  "inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
8565
9011
  "bg-background px-4 text-sm font-medium text-foreground",
8566
9012
  "hover:bg-accent hover:text-accent-foreground",
@@ -8654,7 +9100,7 @@ function TemplateGalleryContent({
8654
9100
  value: query,
8655
9101
  onChange: (e) => setQuery(e.target.value),
8656
9102
  placeholder: searchPlaceholder,
8657
- className: cn62(
9103
+ className: cn65(
8658
9104
  "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"
8659
9105
  )
8660
9106
  }
@@ -8705,7 +9151,7 @@ function TemplateGalleryContent({
8705
9151
  value: query,
8706
9152
  onChange: (e) => setQuery(e.target.value),
8707
9153
  placeholder: searchPlaceholder,
8708
- className: cn62(
9154
+ className: cn65(
8709
9155
  "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"
8710
9156
  )
8711
9157
  }
@@ -8737,7 +9183,7 @@ function MosaicTemplateGallery(props) {
8737
9183
  return /* @__PURE__ */ jsx(TemplateGalleryContent, { ...props, isMobile });
8738
9184
  }
8739
9185
  MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
8740
- function cn63(...classes) {
9186
+ function cn66(...classes) {
8741
9187
  return classes.filter(Boolean).join(" ");
8742
9188
  }
8743
9189
  function PlusIcon5() {
@@ -8888,7 +9334,7 @@ function MosaicModuleForm(props) {
8888
9334
  onChange: (e) => update("name", e.target.value),
8889
9335
  placeholder: namePlaceholder,
8890
9336
  required: true,
8891
- className: cn63(
9337
+ className: cn66(
8892
9338
  "w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
8893
9339
  "text-sm placeholder:text-muted-foreground",
8894
9340
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -8906,7 +9352,7 @@ function MosaicModuleForm(props) {
8906
9352
  onChange: (e) => update("description", e.target.value),
8907
9353
  placeholder: descriptionPlaceholder,
8908
9354
  rows: 3,
8909
- className: cn63(
9355
+ className: cn66(
8910
9356
  "w-full rounded-md border border-input bg-background px-3 py-2",
8911
9357
  "text-sm placeholder:text-muted-foreground resize-none",
8912
9358
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -8928,7 +9374,7 @@ function MosaicModuleForm(props) {
8928
9374
  value: formData[field.id] ?? "",
8929
9375
  onChange: (e) => update(field.id, e.target.value),
8930
9376
  placeholder: field.placeholder,
8931
- className: cn63(
9377
+ className: cn66(
8932
9378
  "w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
8933
9379
  "text-sm placeholder:text-muted-foreground",
8934
9380
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -8943,7 +9389,7 @@ function MosaicModuleForm(props) {
8943
9389
  onChange: (e) => update(field.id, e.target.value),
8944
9390
  placeholder: field.placeholder,
8945
9391
  rows: 3,
8946
- className: cn63(
9392
+ className: cn66(
8947
9393
  "w-full rounded-md border border-input bg-background px-3 py-2",
8948
9394
  "text-sm placeholder:text-muted-foreground resize-none",
8949
9395
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -8959,7 +9405,7 @@ function MosaicModuleForm(props) {
8959
9405
  onChange: (e) => update(field.id, e.target.value),
8960
9406
  placeholder: field.placeholder ?? "\u{1F9E0}",
8961
9407
  maxLength: 4,
8962
- className: cn63(
9408
+ className: cn66(
8963
9409
  "w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
8964
9410
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
8965
9411
  )
@@ -8980,7 +9426,7 @@ function MosaicModuleForm(props) {
8980
9426
  }
8981
9427
  },
8982
9428
  placeholder: field.placeholder ?? tagListAddPlaceholder,
8983
- className: cn63(
9429
+ className: cn66(
8984
9430
  "flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
8985
9431
  "text-sm placeholder:text-muted-foreground",
8986
9432
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -9192,7 +9638,7 @@ function LibraryContent({
9192
9638
  {
9193
9639
  type: "button",
9194
9640
  onClick: openCreate,
9195
- className: cn63(
9641
+ className: cn66(
9196
9642
  "inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
9197
9643
  "hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
9198
9644
  ),
@@ -9212,7 +9658,7 @@ function LibraryContent({
9212
9658
  value: query,
9213
9659
  onChange: (e) => setQuery(e.target.value),
9214
9660
  placeholder: searchPlaceholder,
9215
- className: cn63(
9661
+ className: cn66(
9216
9662
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
9217
9663
  "text-sm placeholder:text-muted-foreground",
9218
9664
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -9225,7 +9671,7 @@ function LibraryContent({
9225
9671
  {
9226
9672
  type: "button",
9227
9673
  onClick: () => setActiveTab(tab.id),
9228
- className: cn63(
9674
+ className: cn66(
9229
9675
  "rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
9230
9676
  activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
9231
9677
  ),
@@ -9277,7 +9723,7 @@ function MosaicModuleLibrary(props) {
9277
9723
  return /* @__PURE__ */ jsx(LibraryContent, { ...props });
9278
9724
  }
9279
9725
  MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
9280
- function cn64(...classes) {
9726
+ function cn67(...classes) {
9281
9727
  return classes.filter(Boolean).join(" ");
9282
9728
  }
9283
9729
  var roleConfig = {
@@ -9304,7 +9750,7 @@ function MosaicOrgRoleBadge({ role, className }) {
9304
9750
  {
9305
9751
  "data-slot": "org-role-badge",
9306
9752
  title: config.description,
9307
- className: cn64(
9753
+ className: cn67(
9308
9754
  "inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
9309
9755
  config.className,
9310
9756
  className
@@ -9321,13 +9767,13 @@ function MosaicMultiOrgIndicator({
9321
9767
  className
9322
9768
  }) {
9323
9769
  if (orgCount <= 1) return null;
9324
- return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className: cn64("flex items-center gap-2", className), children: [
9770
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className: cn67("flex items-center gap-2", className), children: [
9325
9771
  onSwitchOrg ? /* @__PURE__ */ jsxs(
9326
9772
  "button",
9327
9773
  {
9328
9774
  type: "button",
9329
9775
  onClick: onSwitchOrg,
9330
- className: cn64(
9776
+ className: cn67(
9331
9777
  "inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
9332
9778
  "hover:bg-secondary/80",
9333
9779
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -9441,7 +9887,7 @@ function MosaicCreateOrgDialog({
9441
9887
  onChange: (e) => setName(e.target.value),
9442
9888
  placeholder: orgNamePlaceholder,
9443
9889
  required: true,
9444
- className: cn64(
9890
+ className: cn67(
9445
9891
  "w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
9446
9892
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
9447
9893
  errors.name ? "border-destructive" : "border-input"
@@ -9461,7 +9907,7 @@ function MosaicCreateOrgDialog({
9461
9907
  onChange: (e) => setSlug(e.target.value),
9462
9908
  placeholder: "acme-inc",
9463
9909
  required: true,
9464
- className: cn64(
9910
+ className: cn67(
9465
9911
  "w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
9466
9912
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
9467
9913
  errors.slug ? "border-destructive" : "border-input"
@@ -9574,7 +10020,7 @@ function MosaicInviteMemberDialog({
9574
10020
  onChange: (e) => setEmail(e.target.value),
9575
10021
  placeholder: emailPlaceholder,
9576
10022
  required: true,
9577
- className: cn64(
10023
+ className: cn67(
9578
10024
  "w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
9579
10025
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
9580
10026
  errors.email ? "border-destructive" : "border-input"
@@ -9761,7 +10207,7 @@ function MosaicMemberList({
9761
10207
  const filtered = members.filter(
9762
10208
  (m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
9763
10209
  );
9764
- return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className: cn64("flex flex-col gap-4", className), children: [
10210
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className: cn67("flex flex-col gap-4", className), children: [
9765
10211
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
9766
10212
  /* @__PURE__ */ jsxs("div", { className: "relative flex-1", children: [
9767
10213
  /* @__PURE__ */ jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxs(
@@ -9857,7 +10303,7 @@ function MosaicOrgPanel({
9857
10303
  const { isMobile } = useDevice();
9858
10304
  const [activeTab, setActiveTab] = React29.useState(defaultTab ?? tabs[0]?.id ?? "");
9859
10305
  const activeContent = tabs.find((t) => t.id === activeTab)?.content;
9860
- return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className: cn64("flex h-full flex-col", className), children: [
10306
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className: cn67("flex h-full flex-col", className), children: [
9861
10307
  /* @__PURE__ */ jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
9862
10308
  /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
9863
10309
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
@@ -9879,12 +10325,12 @@ function MosaicOrgPanel({
9879
10325
  ] }),
9880
10326
  headerActions
9881
10327
  ] }),
9882
- tabs.length > 0 && /* @__PURE__ */ jsx("div", { className: cn64("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsx(
10328
+ tabs.length > 0 && /* @__PURE__ */ jsx("div", { className: cn67("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsx(
9883
10329
  "button",
9884
10330
  {
9885
10331
  type: "button",
9886
10332
  onClick: () => setActiveTab(tab.id),
9887
- className: cn64(
10333
+ className: cn67(
9888
10334
  "shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
9889
10335
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
9890
10336
  activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
@@ -9898,7 +10344,7 @@ function MosaicOrgPanel({
9898
10344
  ] });
9899
10345
  }
9900
10346
  MosaicOrgPanel.displayName = "MosaicOrgPanel";
9901
- function cn65(...classes) {
10347
+ function cn68(...classes) {
9902
10348
  return classes.filter(Boolean).join(" ");
9903
10349
  }
9904
10350
  var ANIM_ID8 = "mosaic-dashboard-content-kf";
@@ -9935,7 +10381,7 @@ function MosaicDashboardContent({
9935
10381
  "div",
9936
10382
  {
9937
10383
  "data-slot": "dashboard-content",
9938
- className: cn65("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
10384
+ className: cn68("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
9939
10385
  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: [
9940
10386
  "View not found: ",
9941
10387
  currentView
@@ -9944,7 +10390,7 @@ function MosaicDashboardContent({
9944
10390
  );
9945
10391
  }
9946
10392
  MosaicDashboardContent.displayName = "MosaicDashboardContent";
9947
- function cn66(...classes) {
10393
+ function cn69(...classes) {
9948
10394
  return classes.filter(Boolean).join(" ");
9949
10395
  }
9950
10396
  var ANIM_ID9 = "mosaic-dashboard-header2-kf";
@@ -10056,16 +10502,16 @@ function MosaicDashboardHeader({
10056
10502
  "header",
10057
10503
  {
10058
10504
  "data-slot": "dashboard-header",
10059
- className: cn66(
10505
+ className: cn69(
10060
10506
  "mosaic-dashboard-header2",
10061
10507
  "sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
10062
10508
  className
10063
10509
  ),
10064
- children: /* @__PURE__ */ jsx("div", { className: cn66(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: [
10510
+ children: /* @__PURE__ */ jsx("div", { className: cn69(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: [
10065
10511
  /* @__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: [
10066
10512
  logoSlot ?? /* @__PURE__ */ jsx(SparklesIcon4, {}),
10067
10513
  /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
10068
- /* @__PURE__ */ jsx("h1", { className: cn66("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
10514
+ /* @__PURE__ */ jsx("h1", { className: cn69("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
10069
10515
  subtitle && !isMobile && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
10070
10516
  ] })
10071
10517
  ] }) }),
@@ -10078,7 +10524,7 @@ function MosaicDashboardHeader({
10078
10524
  value: searchQuery,
10079
10525
  onChange: handleSearch,
10080
10526
  placeholder: searchPlaceholder,
10081
- className: cn66(
10527
+ className: cn69(
10082
10528
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
10083
10529
  "text-sm placeholder:text-muted-foreground",
10084
10530
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -10118,7 +10564,7 @@ function MosaicDashboardHeader({
10118
10564
  );
10119
10565
  }
10120
10566
  MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
10121
- function cn67(...classes) {
10567
+ function cn70(...classes) {
10122
10568
  return classes.filter(Boolean).join(" ");
10123
10569
  }
10124
10570
  function ChevronDownIcon4() {
@@ -10201,13 +10647,13 @@ function MosaicOrgSwitcher({
10201
10647
  }, [open]);
10202
10648
  if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
10203
10649
  const initials = currentOrg?.name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase() ?? "?";
10204
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className: cn67("relative", className), children: [
10650
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className: cn70("relative", className), children: [
10205
10651
  /* @__PURE__ */ jsxs(
10206
10652
  "button",
10207
10653
  {
10208
10654
  type: "button",
10209
10655
  onClick: () => setOpen((v) => !v),
10210
- className: cn67(
10656
+ className: cn70(
10211
10657
  "inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
10212
10658
  "text-sm font-medium text-foreground",
10213
10659
  "hover:bg-accent hover:text-accent-foreground",
@@ -10234,7 +10680,7 @@ function MosaicOrgSwitcher({
10234
10680
  {
10235
10681
  role: "menu",
10236
10682
  "aria-label": triggerAriaLabel,
10237
- className: cn67(
10683
+ className: cn70(
10238
10684
  "absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
10239
10685
  "bg-popover py-1 shadow-md"
10240
10686
  ),
@@ -10249,7 +10695,7 @@ function MosaicOrgSwitcher({
10249
10695
  onSelectOrg?.(org.id);
10250
10696
  setOpen(false);
10251
10697
  },
10252
- className: cn67(
10698
+ className: cn70(
10253
10699
  "flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
10254
10700
  "hover:bg-accent hover:text-accent-foreground",
10255
10701
  org.id === currentOrgId && "bg-primary/10 text-primary"
@@ -10286,7 +10732,7 @@ function MosaicOrgSwitcher({
10286
10732
  ] });
10287
10733
  }
10288
10734
  MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
10289
- function cn68(...classes) {
10735
+ function cn71(...classes) {
10290
10736
  return classes.filter(Boolean).join(" ");
10291
10737
  }
10292
10738
  function PlusIcon7() {
@@ -10331,19 +10777,19 @@ function MosaicQuickActionsMenu({
10331
10777
  document.addEventListener("mousedown", h);
10332
10778
  return () => document.removeEventListener("mousedown", h);
10333
10779
  }, [open]);
10334
- const itemClass = cn68(
10780
+ const itemClass = cn71(
10335
10781
  "flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
10336
10782
  "hover:bg-accent hover:text-accent-foreground",
10337
10783
  "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
10338
10784
  "min-h-[44px]"
10339
10785
  );
10340
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn68("relative", className), children: [
10786
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn71("relative", className), children: [
10341
10787
  /* @__PURE__ */ jsxs(
10342
10788
  "button",
10343
10789
  {
10344
10790
  type: "button",
10345
10791
  onClick: () => setOpen((v) => !v),
10346
- className: cn68(
10792
+ className: cn71(
10347
10793
  "inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
10348
10794
  "min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
10349
10795
  "hover:bg-accent hover:text-accent-foreground",
@@ -10354,7 +10800,7 @@ function MosaicQuickActionsMenu({
10354
10800
  "aria-label": label,
10355
10801
  children: [
10356
10802
  triggerIcon ?? /* @__PURE__ */ jsx(PlusIcon7, {}),
10357
- /* @__PURE__ */ jsx("span", { className: cn68("hidden md:inline"), children: label })
10803
+ /* @__PURE__ */ jsx("span", { className: cn71("hidden md:inline"), children: label })
10358
10804
  ]
10359
10805
  }
10360
10806
  ),
@@ -10363,13 +10809,13 @@ function MosaicQuickActionsMenu({
10363
10809
  {
10364
10810
  role: "menu",
10365
10811
  "aria-label": menuTitle,
10366
- className: cn68(
10812
+ className: cn71(
10367
10813
  "absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
10368
10814
  isMobile ? "w-[min(90vw,280px)]" : "w-56"
10369
10815
  ),
10370
10816
  children: [
10371
10817
  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 }) }),
10372
- /* @__PURE__ */ jsx("div", { className: cn68(menuTitle && "border-t border-border") }),
10818
+ /* @__PURE__ */ jsx("div", { className: cn71(menuTitle && "border-t border-border") }),
10373
10819
  actions.map((action) => /* @__PURE__ */ jsxs(React29.Fragment, { children: [
10374
10820
  action.separator && /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-border" }),
10375
10821
  action.href && renderLink ? renderLink(
@@ -10674,7 +11120,7 @@ function MosaicOrgProfilePage({
10674
11120
  );
10675
11121
  }
10676
11122
  MosaicOrgProfilePage.displayName = "MosaicOrgProfilePage";
10677
- function cn69(...classes) {
11123
+ function cn72(...classes) {
10678
11124
  return classes.filter(Boolean).join(" ");
10679
11125
  }
10680
11126
  function defaultCompare(a, b) {
@@ -10737,7 +11183,7 @@ function MosaicDataTable({
10737
11183
  {
10738
11184
  ref,
10739
11185
  "data-slot": "data-table",
10740
- className: cn69("w-full border-collapse text-sm", className),
11186
+ className: cn72("w-full border-collapse text-sm", className),
10741
11187
  children: [
10742
11188
  /* @__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) => {
10743
11189
  const isSortable = masterSortable && col.sortable;
@@ -10755,7 +11201,7 @@ function MosaicDataTable({
10755
11201
  handleHeaderClick(col);
10756
11202
  }
10757
11203
  } : void 0,
10758
- className: cn69(
11204
+ className: cn72(
10759
11205
  "px-4 py-3 font-medium text-muted-foreground",
10760
11206
  alignClass(col.align),
10761
11207
  col.className,
@@ -10791,7 +11237,7 @@ function MosaicDataTable({
10791
11237
  "td",
10792
11238
  {
10793
11239
  "data-slot": "data-table-td",
10794
- className: cn69(
11240
+ className: cn72(
10795
11241
  "px-4 py-3 text-foreground",
10796
11242
  alignClass(col.align),
10797
11243
  col.className
@@ -10930,7 +11376,7 @@ var stepSegmentVariants = cva(["h-1.5 flex-1 min-w-2 rounded-full transition-col
10930
11376
  filled: false
10931
11377
  }
10932
11378
  });
10933
- function cn70(...classes) {
11379
+ function cn73(...classes) {
10934
11380
  return classes.filter(Boolean).join(" ");
10935
11381
  }
10936
11382
  function resolveStatus(step, index, currentIndex) {
@@ -10971,7 +11417,7 @@ function MosaicStepPipelineSegments({
10971
11417
  "aria-valuemax": total,
10972
11418
  "aria-valuenow": current,
10973
11419
  "aria-valuetext": progressLabel ? progressLabel(current, total) : void 0,
10974
- className: cn70(stepSegmentBarVariants(), className),
11420
+ className: cn73(stepSegmentBarVariants(), className),
10975
11421
  children: steps.map((step, index) => {
10976
11422
  const status = resolveStatus(step, index, currentIndex);
10977
11423
  const filled = status !== "upcoming";
@@ -10983,7 +11429,7 @@ function MosaicStepPipelineSegments({
10983
11429
  "data-status": status,
10984
11430
  "data-filled": filled,
10985
11431
  "aria-hidden": "true",
10986
- className: cn70(stepSegmentVariants({ filled }))
11432
+ className: cn73(stepSegmentVariants({ filled }))
10987
11433
  },
10988
11434
  key
10989
11435
  );
@@ -11004,7 +11450,7 @@ function MosaicStepPipelineDots({
11004
11450
  {
11005
11451
  ref,
11006
11452
  "data-slot": "step-pipeline",
11007
- className: cn70(stepPipelineVariants({ orientation }), className),
11453
+ className: cn73(stepPipelineVariants({ orientation }), className),
11008
11454
  children: steps.map((step, index) => {
11009
11455
  const status = resolveStatus(step, index, currentIndex);
11010
11456
  const isCurrent = status === "current";
@@ -11016,7 +11462,7 @@ function MosaicStepPipelineDots({
11016
11462
  "data-slot": "step",
11017
11463
  "data-status": status,
11018
11464
  "aria-current": isCurrent ? "step" : void 0,
11019
- className: cn70(
11465
+ className: cn73(
11020
11466
  "flex shrink-0",
11021
11467
  orientation === "horizontal" ? "flex-col items-center gap-2" : "flex-row items-start gap-3",
11022
11468
  orientation === "horizontal" && !isLast && "flex-1"
@@ -11027,14 +11473,14 @@ function MosaicStepPipelineDots({
11027
11473
  "div",
11028
11474
  {
11029
11475
  "data-slot": "step-connector",
11030
- className: cn70(stepConnectorVariants({ status, orientation }))
11476
+ className: cn73(stepConnectorVariants({ status, orientation }))
11031
11477
  }
11032
11478
  ),
11033
11479
  /* @__PURE__ */ jsx(
11034
11480
  "div",
11035
11481
  {
11036
11482
  "data-slot": "step-indicator",
11037
- className: cn70(stepIndicatorVariants({ status, orientation })),
11483
+ className: cn73(stepIndicatorVariants({ status, orientation })),
11038
11484
  "aria-hidden": "true",
11039
11485
  children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
11040
11486
  }
@@ -11043,7 +11489,7 @@ function MosaicStepPipelineDots({
11043
11489
  "div",
11044
11490
  {
11045
11491
  "data-slot": "step-connector",
11046
- className: cn70(
11492
+ className: cn73(
11047
11493
  stepConnectorVariants({
11048
11494
  // connector after current step is still upcoming
11049
11495
  status: status === "done" ? "done" : "upcoming",
@@ -11054,12 +11500,12 @@ function MosaicStepPipelineDots({
11054
11500
  )
11055
11501
  ] }),
11056
11502
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-0.5 text-center px-1", children: [
11057
- /* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn70(stepLabelVariants({ status })), children: step.label }),
11503
+ /* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn73(stepLabelVariants({ status })), children: step.label }),
11058
11504
  step.description !== void 0 && /* @__PURE__ */ jsx(
11059
11505
  "span",
11060
11506
  {
11061
11507
  "data-slot": "step-description",
11062
- className: cn70(stepDescriptionVariants({ status })),
11508
+ className: cn73(stepDescriptionVariants({ status })),
11063
11509
  children: step.description
11064
11510
  }
11065
11511
  )
@@ -11070,7 +11516,7 @@ function MosaicStepPipelineDots({
11070
11516
  "div",
11071
11517
  {
11072
11518
  "data-slot": "step-indicator",
11073
- className: cn70(stepIndicatorVariants({ status, orientation })),
11519
+ className: cn73(stepIndicatorVariants({ status, orientation })),
11074
11520
  "aria-hidden": "true",
11075
11521
  children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
11076
11522
  }
@@ -11079,7 +11525,7 @@ function MosaicStepPipelineDots({
11079
11525
  "div",
11080
11526
  {
11081
11527
  "data-slot": "step-connector",
11082
- className: cn70(
11528
+ className: cn73(
11083
11529
  stepConnectorVariants({
11084
11530
  status: status === "done" ? "done" : "upcoming",
11085
11531
  orientation
@@ -11089,12 +11535,12 @@ function MosaicStepPipelineDots({
11089
11535
  )
11090
11536
  ] }),
11091
11537
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-0.5 pt-1 pb-4", children: [
11092
- /* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn70(stepLabelVariants({ status })), children: step.label }),
11538
+ /* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn73(stepLabelVariants({ status })), children: step.label }),
11093
11539
  step.description !== void 0 && /* @__PURE__ */ jsx(
11094
11540
  "span",
11095
11541
  {
11096
11542
  "data-slot": "step-description",
11097
- className: cn70(stepDescriptionVariants({ status })),
11543
+ className: cn73(stepDescriptionVariants({ status })),
11098
11544
  children: step.description
11099
11545
  }
11100
11546
  )
@@ -11108,7 +11554,7 @@ function MosaicStepPipelineDots({
11108
11554
  );
11109
11555
  }
11110
11556
  MosaicStepPipelineDots.displayName = "MosaicStepPipelineDots";
11111
- function cn71(...classes) {
11557
+ function cn74(...classes) {
11112
11558
  return classes.filter(Boolean).join(" ");
11113
11559
  }
11114
11560
  function MosaicKanbanBoard({ children, className, ref, ...props }) {
@@ -11117,7 +11563,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
11117
11563
  {
11118
11564
  ref,
11119
11565
  "data-slot": "kanban-board",
11120
- className: cn71(
11566
+ className: cn74(
11121
11567
  "flex gap-4 overflow-x-auto pb-4",
11122
11568
  "min-h-0",
11123
11569
  // Smooth momentum scrolling on iOS
@@ -11130,7 +11576,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
11130
11576
  );
11131
11577
  }
11132
11578
  MosaicKanbanBoard.displayName = "MosaicKanbanBoard";
11133
- function cn72(...classes) {
11579
+ function cn75(...classes) {
11134
11580
  return classes.filter(Boolean).join(" ");
11135
11581
  }
11136
11582
  function MosaicKanbanColumn({
@@ -11148,7 +11594,7 @@ function MosaicKanbanColumn({
11148
11594
  {
11149
11595
  ref,
11150
11596
  "data-slot": "kanban-column",
11151
- className: cn72(
11597
+ className: cn75(
11152
11598
  // Fixed column width, never shrink so board stays scrollable
11153
11599
  "flex flex-col w-72 shrink-0",
11154
11600
  // Surface
@@ -11169,7 +11615,7 @@ function MosaicKanbanColumn({
11169
11615
  {
11170
11616
  "data-slot": "kanban-column-count",
11171
11617
  "aria-label": countLabel(count),
11172
- className: cn72(
11618
+ className: cn75(
11173
11619
  "inline-flex items-center justify-center",
11174
11620
  "min-w-[1.25rem] h-5 px-1.5 rounded-full",
11175
11621
  "bg-muted text-muted-foreground",
@@ -11391,7 +11837,7 @@ var documentUploadProgressFillVariants = cva(
11391
11837
  defaultVariants: {}
11392
11838
  }
11393
11839
  );
11394
- function cn73(...classes) {
11840
+ function cn76(...classes) {
11395
11841
  return classes.filter(Boolean).join(" ");
11396
11842
  }
11397
11843
  function MosaicDocumentUpload({
@@ -11432,7 +11878,7 @@ function MosaicDocumentUpload({
11432
11878
  if (selected.length > 0) onFilesSelected(selected);
11433
11879
  event.target.value = "";
11434
11880
  }
11435
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "document-upload", className: cn73("flex flex-col gap-4", className), children: [
11881
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "document-upload", className: cn76("flex flex-col gap-4", className), children: [
11436
11882
  /* @__PURE__ */ jsxs(
11437
11883
  "div",
11438
11884
  {
@@ -11497,7 +11943,7 @@ function MosaicDocumentUpload({
11497
11943
  "aria-valuemin": 0,
11498
11944
  "aria-valuemax": 100,
11499
11945
  "aria-valuenow": file.progress ?? 0,
11500
- className: cn73(documentUploadProgressTrackVariants(), "mt-2"),
11946
+ className: cn76(documentUploadProgressTrackVariants(), "mt-2"),
11501
11947
  children: /* @__PURE__ */ jsx(
11502
11948
  "div",
11503
11949
  {
@@ -11574,7 +12020,7 @@ var urlScraperCardVariants = cva(["flex flex-col gap-2 rounded-lg border p-4"],
11574
12020
  tone: "neutral"
11575
12021
  }
11576
12022
  });
11577
- function cn74(...classes) {
12023
+ function cn77(...classes) {
11578
12024
  return classes.filter(Boolean).join(" ");
11579
12025
  }
11580
12026
  function isSyntacticallyValidUrl(candidate) {
@@ -11613,7 +12059,7 @@ function MosaicUrlScraper(props) {
11613
12059
  setIsLocallyInvalid(false);
11614
12060
  onUrlChange(event.target.value);
11615
12061
  }
11616
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "url-scraper", className: cn74("flex flex-col gap-4", className), children: [
12062
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "url-scraper", className: cn77("flex flex-col gap-4", className), children: [
11617
12063
  /* @__PURE__ */ jsxs(
11618
12064
  "form",
11619
12065
  {
@@ -11749,7 +12195,7 @@ var chatThreadScrollButtonVariants = cva([
11749
12195
  "items-center justify-center rounded-full border border-border bg-card text-foreground shadow-sm",
11750
12196
  "transition-colors hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
11751
12197
  ]);
11752
- function cn75(...classes) {
12198
+ function cn78(...classes) {
11753
12199
  return classes.filter(Boolean).join(" ");
11754
12200
  }
11755
12201
  var BOTTOM_THRESHOLD_PX = 24;
@@ -11833,7 +12279,7 @@ function MosaicChatThread({
11833
12279
  role: "log",
11834
12280
  onScroll: handleScroll,
11835
12281
  onKeyDown: handleKeyDown,
11836
- className: cn75(chatThreadRootVariants(), className),
12282
+ className: cn78(chatThreadRootVariants(), className),
11837
12283
  children: [
11838
12284
  /* @__PURE__ */ jsx("div", { "data-slot": "chat-thread-content", className: chatThreadContentVariants(), children }),
11839
12285
  !isAtBottom && /* @__PURE__ */ jsx(
@@ -11874,7 +12320,7 @@ var chatComposerActionButtonVariants = cva(
11874
12320
  }
11875
12321
  }
11876
12322
  );
11877
- function cn76(...classes) {
12323
+ function cn79(...classes) {
11878
12324
  return classes.filter(Boolean).join(" ");
11879
12325
  }
11880
12326
  function MosaicChatComposer(props) {
@@ -11929,7 +12375,7 @@ function MosaicChatComposer(props) {
11929
12375
  {
11930
12376
  ref,
11931
12377
  "data-slot": "chat-composer",
11932
- className: cn76(chatComposerRootVariants(), className),
12378
+ className: cn79(chatComposerRootVariants(), className),
11933
12379
  onSubmit: handleSubmit,
11934
12380
  children: [
11935
12381
  /* @__PURE__ */ jsx(
@@ -12045,7 +12491,7 @@ var markdownTableCellVariants = cva(["border border-border px-3 py-1.5"], {
12045
12491
  align: "left"
12046
12492
  }
12047
12493
  });
12048
- function cn77(...classes) {
12494
+ function cn80(...classes) {
12049
12495
  return classes.filter(Boolean).join(" ");
12050
12496
  }
12051
12497
  function sanitizeHref(rawHref) {
@@ -12240,7 +12686,7 @@ function parseBlocks(content) {
12240
12686
  function MosaicMarkdown({ content, renderCodeBlock, className, ref }) {
12241
12687
  const blocks = parseBlocks(content);
12242
12688
  const ids = makeIdSource();
12243
- return /* @__PURE__ */ jsx("div", { ref, "data-slot": "markdown", className: cn77(markdownRootVariants(), className), children: blocks.map((block) => {
12689
+ return /* @__PURE__ */ jsx("div", { ref, "data-slot": "markdown", className: cn80(markdownRootVariants(), className), children: blocks.map((block) => {
12244
12690
  if (block.kind === "heading") {
12245
12691
  const HeadingTag = `h${block.level}`;
12246
12692
  return /* @__PURE__ */ jsx(HeadingTag, { className: markdownHeadingVariants({ level: block.level }), children: parseInline(block.text, ids) }, block.id);
@@ -12318,7 +12764,7 @@ var chatMessageToolStatusVariants = cva(["text-xs font-medium"], {
12318
12764
  status: "running"
12319
12765
  }
12320
12766
  });
12321
- function cn78(...classes) {
12767
+ function cn81(...classes) {
12322
12768
  return classes.filter(Boolean).join(" ");
12323
12769
  }
12324
12770
  function partKey(part, index) {
@@ -12484,7 +12930,7 @@ function MosaicChatMessage({
12484
12930
  ref,
12485
12931
  "data-slot": "chat-message",
12486
12932
  "data-role": messageRole,
12487
- className: cn78(chatMessageContainerVariants({ align: isUser ? "end" : "start" }), className),
12933
+ className: cn81(chatMessageContainerVariants({ align: isUser ? "end" : "start" }), className),
12488
12934
  children: /* @__PURE__ */ jsx("div", { className: chatMessageBubbleVariants({ role: messageRole }), children: parts.map((part, index) => /* @__PURE__ */ jsx(
12489
12935
  ChatMessagePartView,
12490
12936
  {
@@ -12539,7 +12985,7 @@ var approvalPromptButtonVariants = cva(
12539
12985
  }
12540
12986
  }
12541
12987
  );
12542
- function cn79(...classes) {
12988
+ function cn82(...classes) {
12543
12989
  return classes.filter(Boolean).join(" ");
12544
12990
  }
12545
12991
  function MosaicApprovalPrompt(props) {
@@ -12551,7 +12997,7 @@ function MosaicApprovalPrompt(props) {
12551
12997
  ref,
12552
12998
  "data-slot": "approval-prompt",
12553
12999
  "aria-label": promptTitle,
12554
- className: cn79("border-0 p-0 m-0", approvalPromptCardVariants({ tone }), className),
13000
+ className: cn82("border-0 p-0 m-0", approvalPromptCardVariants({ tone }), className),
12555
13001
  children: [
12556
13002
  /* @__PURE__ */ jsx("legend", { "data-slot": "approval-prompt-title", className: "text-base font-semibold md:text-lg", children: promptTitle }),
12557
13003
  /* @__PURE__ */ jsxs("div", { "data-slot": "approval-prompt-tool", className: "flex flex-col gap-1", children: [
@@ -12628,7 +13074,7 @@ var toolToggleListRowVariants = cva(
12628
13074
  }
12629
13075
  }
12630
13076
  );
12631
- function cn80(...classes) {
13077
+ function cn83(...classes) {
12632
13078
  return classes.filter(Boolean).join(" ");
12633
13079
  }
12634
13080
  function MosaicToolToggleList({
@@ -12644,7 +13090,7 @@ function MosaicToolToggleList({
12644
13090
  }) {
12645
13091
  const toolsById = new Map(tools.map((tool) => [tool.id, tool]));
12646
13092
  const approvalLabelById = new Map(approvalLevels.map((level) => [level.id, level.label]));
12647
- return /* @__PURE__ */ jsx("div", { ref, "data-slot": "tool-toggle-list", className: cn80("flex flex-col gap-6", className), children: sections.map((section) => /* @__PURE__ */ jsxs(
13093
+ return /* @__PURE__ */ jsx("div", { ref, "data-slot": "tool-toggle-list", className: cn83("flex flex-col gap-6", className), children: sections.map((section) => /* @__PURE__ */ jsxs(
12648
13094
  "div",
12649
13095
  {
12650
13096
  "data-slot": "tool-toggle-list-section",
@@ -12675,7 +13121,7 @@ function MosaicToolToggleList({
12675
13121
  onCheckedChange: (checked) => onToggleTool(tool.id, checked),
12676
13122
  "aria-label": toggleAriaLabel(tool.name),
12677
13123
  "data-slot": "tool-toggle-list-switch",
12678
- className: cn80(
13124
+ className: cn83(
12679
13125
  "relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
12680
13126
  "rounded-full border-2 border-transparent outline-none",
12681
13127
  "bg-muted transition-colors",
@@ -12686,7 +13132,7 @@ function MosaicToolToggleList({
12686
13132
  Switch.Thumb,
12687
13133
  {
12688
13134
  "data-slot": "tool-toggle-list-switch-thumb",
12689
- className: cn80(
13135
+ className: cn83(
12690
13136
  "pointer-events-none block h-4 w-4 rounded-full",
12691
13137
  "bg-background shadow-sm",
12692
13138
  "translate-x-0 transition-transform",
@@ -12728,7 +13174,7 @@ function MosaicToolToggleList({
12728
13174
  {
12729
13175
  "aria-label": approvalSelectAriaLabel(tool.name),
12730
13176
  "data-slot": "tool-toggle-list-approval-trigger",
12731
- className: cn80(
13177
+ className: cn83(
12732
13178
  "inline-flex h-9 min-w-[10rem] items-center justify-between gap-2",
12733
13179
  "rounded-md border border-border bg-background px-3 py-2",
12734
13180
  "text-sm text-foreground shadow-xs outline-none",
@@ -12746,7 +13192,7 @@ function MosaicToolToggleList({
12746
13192
  Select.Popup,
12747
13193
  {
12748
13194
  "data-slot": "tool-toggle-list-approval-popup",
12749
- className: cn80(
13195
+ className: cn83(
12750
13196
  "z-50 min-w-[10rem] overflow-hidden rounded-md border border-border",
12751
13197
  "bg-popover p-1 text-popover-foreground shadow-md",
12752
13198
  "origin-[var(--transform-origin)]",
@@ -12759,7 +13205,7 @@ function MosaicToolToggleList({
12759
13205
  Select.Item,
12760
13206
  {
12761
13207
  value: level.id,
12762
- className: cn80(
13208
+ className: cn83(
12763
13209
  "relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
12764
13210
  "text-sm text-popover-foreground outline-none",
12765
13211
  "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
@@ -12867,7 +13313,7 @@ var apiKeyPanelMessageVariants = cva(["text-sm"], {
12867
13313
  tone: "muted"
12868
13314
  }
12869
13315
  });
12870
- function cn81(...classes) {
13316
+ function cn84(...classes) {
12871
13317
  return classes.filter(Boolean).join(" ");
12872
13318
  }
12873
13319
  function MosaicApiKeyPanel(props) {
@@ -12895,7 +13341,7 @@ function MosaicApiKeyPanel(props) {
12895
13341
  function handleKeyChange(event) {
12896
13342
  onKeyChange(event.target.value);
12897
13343
  }
12898
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "api-key-panel", className: cn81("flex flex-col gap-3", className), children: [
13344
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "api-key-panel", className: cn84("flex flex-col gap-3", className), children: [
12899
13345
  /* @__PURE__ */ jsx(
12900
13346
  "div",
12901
13347
  {
@@ -12990,7 +13436,7 @@ MosaicApiKeyPanel.displayName = "MosaicApiKeyPanel";
12990
13436
  var agentChatRootVariants = cva([
12991
13437
  "flex min-h-0 w-full flex-1 flex-col gap-2 overflow-hidden rounded-lg border border-border bg-card"
12992
13438
  ]);
12993
- function cn82(...classes) {
13439
+ function cn85(...classes) {
12994
13440
  return classes.filter(Boolean).join(" ");
12995
13441
  }
12996
13442
  function formatPayload2(value) {
@@ -13126,7 +13572,7 @@ function MosaicAgentChat(props) {
13126
13572
  setDecisions((previous) => ({ ...previous, [payload.requestId]: decision }));
13127
13573
  onApprovalResponse(payload);
13128
13574
  }
13129
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "agent-chat", className: cn82(agentChatRootVariants(), className), children: [
13575
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "agent-chat", className: cn85(agentChatRootVariants(), className), children: [
13130
13576
  /* @__PURE__ */ jsx(MosaicChatThread, { scrollToBottomLabel, children: messages.map((message) => /* @__PURE__ */ jsx(
13131
13577
  MosaicChatMessage,
13132
13578
  {
@@ -13215,7 +13661,7 @@ var toastProviderPositionVariants = cva(
13215
13661
  }
13216
13662
  }
13217
13663
  );
13218
- function cn83(...classes) {
13664
+ function cn86(...classes) {
13219
13665
  return classes.filter(Boolean).join(" ");
13220
13666
  }
13221
13667
  function MosaicToast({
@@ -13241,7 +13687,7 @@ function MosaicToast({
13241
13687
  ref,
13242
13688
  "data-slot": "toast",
13243
13689
  role,
13244
- className: cn83(toastCardVariants({ variant }), className),
13690
+ className: cn86(toastCardVariants({ variant }), className),
13245
13691
  children: [
13246
13692
  /* @__PURE__ */ jsxs("div", { "data-slot": "toast-body", className: "flex min-w-0 flex-1 flex-col gap-1", children: [
13247
13693
  /* @__PURE__ */ jsx("p", { "data-slot": "toast-title", className: toastTitleVariants({ variant }), children: title }),
@@ -13281,7 +13727,7 @@ function MosaicToast({
13281
13727
  );
13282
13728
  }
13283
13729
  MosaicToast.displayName = "MosaicToast";
13284
- function cn84(...classes) {
13730
+ function cn87(...classes) {
13285
13731
  return classes.filter(Boolean).join(" ");
13286
13732
  }
13287
13733
  function MosaicToastProvider({
@@ -13295,7 +13741,7 @@ function MosaicToastProvider({
13295
13741
  {
13296
13742
  ref,
13297
13743
  "data-slot": "toast-provider",
13298
- className: cn84(toastProviderPositionVariants({ position }), className),
13744
+ className: cn87(toastProviderPositionVariants({ position }), className),
13299
13745
  children
13300
13746
  }
13301
13747
  );
@@ -13322,7 +13768,7 @@ var pdfViewerToolbarButtonVariants = cva([
13322
13768
  "inline-flex min-h-8 min-w-8 items-center justify-center rounded-md border border-border text-sm",
13323
13769
  "transition-colors hover:bg-accent/50 disabled:opacity-50 disabled:hover:bg-transparent"
13324
13770
  ]);
13325
- function cn85(...classes) {
13771
+ function cn88(...classes) {
13326
13772
  return classes.filter(Boolean).join(" ");
13327
13773
  }
13328
13774
  function buildFrameSrc(fileUrl, currentPage, zoom) {
@@ -13387,7 +13833,7 @@ function MosaicPdfViewer({
13387
13833
  if (zoom === void 0 || onZoomChange === void 0) return;
13388
13834
  onZoomChange(Math.round((zoom + 0.1) * 100) / 100);
13389
13835
  }
13390
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "pdf-viewer", className: cn85("flex flex-col gap-2", className), children: [
13836
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "pdf-viewer", className: cn88("flex flex-col gap-2", className), children: [
13391
13837
  (showPageControls || showZoomControls) && /* @__PURE__ */ jsxs(
13392
13838
  "div",
13393
13839
  {
@@ -13476,7 +13922,7 @@ function MosaicPdfViewer({
13476
13922
  "data-slot": "pdf-viewer-frame",
13477
13923
  src: buildFrameSrc(fileUrl, currentPage, zoom),
13478
13924
  title: fileUrl,
13479
- className: cn85(
13925
+ className: cn88(
13480
13926
  "h-full min-h-64 w-full border-0",
13481
13927
  status !== "loaded" && "pointer-events-none absolute inset-0 opacity-0"
13482
13928
  )
@@ -13495,7 +13941,7 @@ var splitPaneCollapseButtonVariants = cva([
13495
13941
  "inline-flex h-11 w-6 shrink-0 items-center justify-center self-center rounded-md border border-border text-sm",
13496
13942
  "transition-colors hover:bg-accent/50"
13497
13943
  ]);
13498
- function cn86(...classes) {
13944
+ function cn89(...classes) {
13499
13945
  return classes.filter(Boolean).join(" ");
13500
13946
  }
13501
13947
  function mergeRefs(externalRef, node) {
@@ -13568,7 +14014,7 @@ function MosaicResizableSplitPane({
13568
14014
  mergeRefs(ref, node);
13569
14015
  },
13570
14016
  "data-slot": "resizable-split-pane",
13571
- className: cn86(splitPaneRootVariants(), className),
14017
+ className: cn89(splitPaneRootVariants(), className),
13572
14018
  children: [
13573
14019
  /* @__PURE__ */ jsx("div", { "data-slot": "resizable-split-pane-main", className: "min-h-0 min-w-0 flex-1 overflow-auto", children: main }),
13574
14020
  !isSideCollapsed && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -13635,7 +14081,7 @@ var tagInputFieldVariants = cva([
13635
14081
  "min-w-[6ch] flex-1 border-none bg-transparent px-1 py-0.5 text-sm text-foreground outline-none",
13636
14082
  "placeholder:text-muted-foreground"
13637
14083
  ]);
13638
- function cn87(...classes) {
14084
+ function cn90(...classes) {
13639
14085
  return classes.filter(Boolean).join(" ");
13640
14086
  }
13641
14087
  function mergeRefs2(externalRef, node) {
@@ -13686,7 +14132,7 @@ function MosaicTagInput({
13686
14132
  if (lastTag !== void 0) onRemoveTag(lastTag);
13687
14133
  }
13688
14134
  }
13689
- return /* @__PURE__ */ jsxs("div", { "data-slot": "tag-input", className: cn87(tagInputRootVariants(), className), children: [
14135
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "tag-input", className: cn90(tagInputRootVariants(), className), children: [
13690
14136
  tags.map((tag) => /* @__PURE__ */ jsxs("span", { "data-slot": "tag-input-tag", className: tagInputTagVariants(), children: [
13691
14137
  tag,
13692
14138
  /* @__PURE__ */ jsx(
@@ -13723,7 +14169,7 @@ function MosaicTagInput({
13723
14169
  "ul",
13724
14170
  {
13725
14171
  "data-slot": "tag-input-suggestions",
13726
- className: cn87(
14172
+ className: cn90(
13727
14173
  "z-50 mt-1 w-full min-w-[8rem] overflow-hidden rounded-md border border-border",
13728
14174
  "bg-popover p-1 text-sm text-popover-foreground shadow-md"
13729
14175
  ),
@@ -13763,7 +14209,7 @@ var drawerPopupVariants = cva(
13763
14209
  }
13764
14210
  );
13765
14211
  var drawerBackdropVariants = cva(["fixed inset-0 z-50 bg-black/50"]);
13766
- function cn88(...classes) {
14212
+ function cn91(...classes) {
13767
14213
  return classes.filter(Boolean).join(" ");
13768
14214
  }
13769
14215
  function MosaicDrawer({
@@ -13784,7 +14230,7 @@ function MosaicDrawer({
13784
14230
  "data-slot": "drawer",
13785
14231
  "aria-labelledby": titleId,
13786
14232
  "aria-modal": "true",
13787
- className: cn88(drawerPopupVariants({ side }), className),
14233
+ className: cn91(drawerPopupVariants({ side }), className),
13788
14234
  children: [
13789
14235
  /* @__PURE__ */ jsxs(
13790
14236
  "div",
@@ -13797,7 +14243,7 @@ function MosaicDrawer({
13797
14243
  Dialog.Close,
13798
14244
  {
13799
14245
  "aria-label": closeAriaLabel,
13800
- className: cn88(
14246
+ className: cn91(
13801
14247
  "flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
13802
14248
  "hover:bg-muted hover:text-foreground",
13803
14249
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -13832,7 +14278,341 @@ function MosaicDrawer({
13832
14278
  ] }) });
13833
14279
  }
13834
14280
  MosaicDrawer.displayName = "MosaicDrawer";
14281
+ var templateCategoryChipVariants = cva(
14282
+ [
14283
+ "inline-flex items-center justify-center whitespace-nowrap",
14284
+ "rounded-full border px-3 py-1.5",
14285
+ "text-xs font-medium transition-colors",
14286
+ "focus-visible:outline-none focus-visible:ring-ring focus-visible:ring-[3px]"
14287
+ ],
14288
+ {
14289
+ variants: {
14290
+ selected: {
14291
+ true: "border-transparent bg-primary text-primary-foreground",
14292
+ false: "border-border bg-background text-foreground hover:bg-muted"
14293
+ }
14294
+ },
14295
+ defaultVariants: {
14296
+ selected: false
14297
+ }
14298
+ }
14299
+ );
14300
+ function cn92(...classes) {
14301
+ return classes.filter(Boolean).join(" ");
14302
+ }
14303
+ function MosaicTemplateCategoryChips({
14304
+ categories,
14305
+ selected,
14306
+ onSelect,
14307
+ className,
14308
+ ref
14309
+ }) {
14310
+ return /* @__PURE__ */ jsx(
14311
+ "div",
14312
+ {
14313
+ ref,
14314
+ "data-slot": "template-category-chips",
14315
+ className: cn92("flex flex-wrap items-center gap-2", className),
14316
+ children: categories.map((category) => {
14317
+ const isSelected = category.id === selected;
14318
+ return /* @__PURE__ */ jsx(
14319
+ "button",
14320
+ {
14321
+ type: "button",
14322
+ "data-slot": "template-category-chip",
14323
+ "aria-pressed": isSelected,
14324
+ onClick: () => onSelect(category.id),
14325
+ className: templateCategoryChipVariants({ selected: isSelected }),
14326
+ children: category.label
14327
+ },
14328
+ category.id
14329
+ );
14330
+ })
14331
+ }
14332
+ );
14333
+ }
14334
+ MosaicTemplateCategoryChips.displayName = "MosaicTemplateCategoryChips";
14335
+ var saveTemplateModalBodyVariants = cva(["flex flex-col gap-4"]);
14336
+ var saveTemplateModalFieldVariants = cva(["flex flex-col gap-1.5"]);
14337
+ var saveTemplateModalErrorVariants = cva(["text-xs font-medium text-destructive"]);
14338
+ var saveTemplateModalFooterVariants = cva([
14339
+ "flex items-center justify-end gap-3 border-t border-border pt-4"
14340
+ ]);
14341
+ var saveTemplateModalButtonVariants = cva(
14342
+ [
14343
+ "inline-flex min-h-9 items-center justify-center gap-2 rounded-md px-4 text-sm font-medium",
14344
+ "transition-colors disabled:cursor-not-allowed disabled:opacity-50"
14345
+ ],
14346
+ {
14347
+ variants: {
14348
+ intent: {
14349
+ cancel: "border border-border bg-background hover:bg-muted",
14350
+ save: "border border-transparent bg-primary text-primary-foreground hover:bg-primary/90"
14351
+ }
14352
+ },
14353
+ defaultVariants: {
14354
+ intent: "cancel"
14355
+ }
14356
+ }
14357
+ );
14358
+ function cn93(...classes) {
14359
+ return classes.filter(Boolean).join(" ");
14360
+ }
14361
+ function MosaicSaveTemplateModal({
14362
+ open,
14363
+ onOpenChange,
14364
+ title,
14365
+ description,
14366
+ closeAriaLabel,
14367
+ name,
14368
+ onNameChange,
14369
+ nameLabel,
14370
+ namePlaceholder,
14371
+ nameError,
14372
+ templateDescription,
14373
+ onTemplateDescriptionChange,
14374
+ descriptionLabel,
14375
+ descriptionPlaceholder,
14376
+ descriptionError,
14377
+ categories,
14378
+ category,
14379
+ onCategoryChange,
14380
+ categoryLabel,
14381
+ tags,
14382
+ onAddTag,
14383
+ onRemoveTag,
14384
+ tagsLabel,
14385
+ tagInputPlaceholder,
14386
+ removeTagAriaLabel,
14387
+ suggestedTags,
14388
+ maxTags,
14389
+ isSaving,
14390
+ canSave,
14391
+ onSave,
14392
+ onCancel,
14393
+ saveButtonLabel,
14394
+ savingLabel,
14395
+ cancelButtonLabel,
14396
+ children,
14397
+ className
14398
+ }) {
14399
+ const nameErrorId = useId();
14400
+ const descriptionErrorId = useId();
14401
+ if (!open) return null;
14402
+ return /* @__PURE__ */ jsx(
14403
+ MosaicAdaptiveModal,
14404
+ {
14405
+ isOpen: open,
14406
+ onClose: () => onOpenChange(false),
14407
+ title,
14408
+ description,
14409
+ closeAriaLabel,
14410
+ children: /* @__PURE__ */ jsxs(
14411
+ "div",
14412
+ {
14413
+ "data-slot": "save-template-modal",
14414
+ className: cn93(saveTemplateModalBodyVariants(), className),
14415
+ children: [
14416
+ /* @__PURE__ */ jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
14417
+ /* @__PURE__ */ jsx(
14418
+ "label",
14419
+ {
14420
+ htmlFor: "mosaic-save-template-name",
14421
+ className: "text-sm font-medium text-foreground",
14422
+ children: nameLabel
14423
+ }
14424
+ ),
14425
+ /* @__PURE__ */ jsx(
14426
+ MosaicInput,
14427
+ {
14428
+ id: "mosaic-save-template-name",
14429
+ value: name,
14430
+ placeholder: namePlaceholder,
14431
+ onChange: (e) => onNameChange(e.target.value),
14432
+ "aria-invalid": nameError ? "true" : "false",
14433
+ "aria-describedby": nameError ? nameErrorId : void 0
14434
+ }
14435
+ ),
14436
+ nameError && /* @__PURE__ */ jsx("p", { id: nameErrorId, className: saveTemplateModalErrorVariants(), children: nameError })
14437
+ ] }),
14438
+ /* @__PURE__ */ jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
14439
+ /* @__PURE__ */ jsx(
14440
+ "label",
14441
+ {
14442
+ htmlFor: "mosaic-save-template-description",
14443
+ className: "text-sm font-medium text-foreground",
14444
+ children: descriptionLabel
14445
+ }
14446
+ ),
14447
+ /* @__PURE__ */ jsx(
14448
+ MosaicTextarea,
14449
+ {
14450
+ id: "mosaic-save-template-description",
14451
+ value: templateDescription,
14452
+ placeholder: descriptionPlaceholder,
14453
+ onChange: (e) => onTemplateDescriptionChange(e.target.value),
14454
+ rows: 3,
14455
+ "aria-invalid": descriptionError ? "true" : "false",
14456
+ "aria-describedby": descriptionError ? descriptionErrorId : void 0
14457
+ }
14458
+ ),
14459
+ descriptionError && /* @__PURE__ */ jsx("p", { id: descriptionErrorId, className: saveTemplateModalErrorVariants(), children: descriptionError })
14460
+ ] }),
14461
+ /* @__PURE__ */ jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
14462
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: categoryLabel }),
14463
+ /* @__PURE__ */ jsx(
14464
+ MosaicSelect,
14465
+ {
14466
+ items: categories,
14467
+ value: category,
14468
+ onValueChange: (value) => {
14469
+ if (value) onCategoryChange(value);
14470
+ }
14471
+ }
14472
+ )
14473
+ ] }),
14474
+ /* @__PURE__ */ jsxs("div", { className: saveTemplateModalFieldVariants(), children: [
14475
+ /* @__PURE__ */ jsx("span", { className: "text-sm font-medium text-foreground", children: tagsLabel }),
14476
+ /* @__PURE__ */ jsx(
14477
+ MosaicTagInput,
14478
+ {
14479
+ tags,
14480
+ onAddTag,
14481
+ onRemoveTag,
14482
+ placeholder: tagInputPlaceholder,
14483
+ removeTagAriaLabel,
14484
+ suggestions: suggestedTags,
14485
+ maxTags
14486
+ }
14487
+ )
14488
+ ] }),
14489
+ children,
14490
+ /* @__PURE__ */ jsxs("div", { className: saveTemplateModalFooterVariants(), children: [
14491
+ /* @__PURE__ */ jsx(
14492
+ "button",
14493
+ {
14494
+ type: "button",
14495
+ "data-slot": "save-template-modal-cancel-button",
14496
+ onClick: onCancel,
14497
+ disabled: isSaving,
14498
+ className: saveTemplateModalButtonVariants({ intent: "cancel" }),
14499
+ children: cancelButtonLabel
14500
+ }
14501
+ ),
14502
+ /* @__PURE__ */ jsx(
14503
+ "button",
14504
+ {
14505
+ type: "button",
14506
+ "data-slot": "save-template-modal-save-button",
14507
+ onClick: onSave,
14508
+ disabled: !canSave || isSaving,
14509
+ "aria-busy": isSaving ? "true" : "false",
14510
+ className: saveTemplateModalButtonVariants({ intent: "save" }),
14511
+ children: isSaving ? savingLabel : saveButtonLabel
14512
+ }
14513
+ )
14514
+ ] })
14515
+ ]
14516
+ }
14517
+ )
14518
+ }
14519
+ );
14520
+ }
14521
+ MosaicSaveTemplateModal.displayName = "MosaicSaveTemplateModal";
14522
+ var templateListVariants = cva(["grid gap-4"], {
14523
+ variants: {
14524
+ layout: {
14525
+ grid: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
14526
+ list: "grid-cols-1"
14527
+ }
14528
+ },
14529
+ defaultVariants: {
14530
+ layout: "grid"
14531
+ }
14532
+ });
14533
+ function cn94(...classes) {
14534
+ return classes.filter(Boolean).join(" ");
14535
+ }
14536
+ var NEXT_KEYS = /* @__PURE__ */ new Set(["ArrowRight", "ArrowDown"]);
14537
+ var PREV_KEYS = /* @__PURE__ */ new Set(["ArrowLeft", "ArrowUp"]);
14538
+ function MosaicTemplateList({
14539
+ items,
14540
+ renderItem,
14541
+ layout = "grid",
14542
+ emptyMessage,
14543
+ className,
14544
+ itemClassName,
14545
+ ref
14546
+ }) {
14547
+ const itemRefs = useRef([]);
14548
+ const [focusedIndex, setFocusedIndex] = useState(0);
14549
+ function focusItem(index) {
14550
+ if (items.length === 0) {
14551
+ return;
14552
+ }
14553
+ const clamped = Math.max(0, Math.min(items.length - 1, index));
14554
+ setFocusedIndex(clamped);
14555
+ itemRefs.current[clamped]?.focus();
14556
+ }
14557
+ function handleKeyDown(event, index) {
14558
+ if (NEXT_KEYS.has(event.key)) {
14559
+ event.preventDefault();
14560
+ focusItem(index + 1);
14561
+ } else if (PREV_KEYS.has(event.key)) {
14562
+ event.preventDefault();
14563
+ focusItem(index - 1);
14564
+ } else if (event.key === "Home") {
14565
+ event.preventDefault();
14566
+ focusItem(0);
14567
+ } else if (event.key === "End") {
14568
+ event.preventDefault();
14569
+ focusItem(items.length - 1);
14570
+ }
14571
+ }
14572
+ if (items.length === 0) {
14573
+ return /* @__PURE__ */ jsx(
14574
+ "div",
14575
+ {
14576
+ ref,
14577
+ "data-slot": "template-list",
14578
+ className: cn94(templateListVariants({ layout }), className),
14579
+ children: /* @__PURE__ */ jsx(
14580
+ "p",
14581
+ {
14582
+ "data-slot": "template-list-empty",
14583
+ className: "col-span-full py-12 text-center text-sm text-muted-foreground",
14584
+ children: emptyMessage
14585
+ }
14586
+ )
14587
+ }
14588
+ );
14589
+ }
14590
+ return /* @__PURE__ */ jsx(
14591
+ "ul",
14592
+ {
14593
+ ref,
14594
+ "data-slot": "template-list",
14595
+ className: cn94("list-none", templateListVariants({ layout }), className),
14596
+ children: items.map((item, index) => /* @__PURE__ */ jsx(
14597
+ "li",
14598
+ {
14599
+ ref: (node) => {
14600
+ itemRefs.current[index] = node;
14601
+ },
14602
+ "data-slot": "template-list-item",
14603
+ tabIndex: index === focusedIndex ? 0 : -1,
14604
+ onKeyDown: (event) => handleKeyDown(event, index),
14605
+ onFocus: () => setFocusedIndex(index),
14606
+ className: itemClassName,
14607
+ children: renderItem(item, index)
14608
+ },
14609
+ item.id
14610
+ ))
14611
+ }
14612
+ );
14613
+ }
14614
+ MosaicTemplateList.displayName = "MosaicTemplateList";
13835
14615
 
13836
- export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, MosaicAgentCard, MosaicAgentChat, MosaicAgentComposer, MosaicAgentComposerDesktop, MosaicAgentComposerMobile, MosaicAgentList, AgentListDesktop as MosaicAgentListDesktop, AgentListMobile as MosaicAgentListMobile, MosaicAgentTeamPreview, MosaicAnimatedList, MosaicApiKeyPanel, MosaicAppSidebar, MosaicApprovalPrompt, MosaicAvatar, MosaicBadge, MosaicBlurredOrb, MosaicButton, MosaicCard, MosaicCardContent, MosaicCardDescription, MosaicCardFooter, MosaicCardHeader, MosaicCardTitle, MosaicChatComposer, MosaicChatMessage, 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, 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, MosaicPreferencesPanel, MosaicPricingCard, MosaicProfilePanel, MosaicProgress, MosaicQuickActionCard, MosaicQuickActionsMenu, MosaicQuickAgentSelector, MosaicQuickStartPanel, MosaicRadioGroup, MosaicRadioGroupItem, MosaicResizableSplitPane, MosaicScrollArea, MosaicSelect, MosaicSelectorModal, MosaicSeparator, MosaicSignInLayout, MosaicSignUpLayout, MosaicSkeleton, MosaicSlider, MosaicStatsGrid, MosaicStepPipeline, MosaicSwitch, MosaicTabs, MosaicTabsList, MosaicTabsPanel, MosaicTabsTrigger, MosaicTagInput, MosaicTemplateAgentCard, MosaicTemplateCard, MosaicTemplateGallery, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicToast, MosaicToastProvider, MosaicToolToggleList, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, agentChatRootVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, drawerBackdropVariants, drawerPopupVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
14616
+ export { MosaicAccordion, MosaicAccordionItem, MosaicAccordionPanel, MosaicAccordionTrigger, MosaicActivityFeed, MosaicActivityItem, MosaicAdaptiveGrid, MosaicAdaptiveModal, MosaicAdaptiveNavigation, 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, 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, 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, MosaicTemplatePreview, MosaicTestimonialsGrid, MosaicTextarea, MosaicThemeProvider, MosaicThemeToggle, MosaicToast, MosaicToastProvider, MosaicToolToggleList, MosaicTooltip, MosaicTooltipContent, MosaicTooltipProvider, MosaicTooltipRoot, MosaicTooltipTrigger, MosaicUrlScraper, MosaicUserButton, Placeholder, agentChatRootVariants, agentEditorVariants, agentPreviewVariants, alertDialogContentVariants, alertDialogOverlayVariants, badgeVariants, buttonVariants, chatMessageBubbleVariants, chatMessageContainerVariants, chatMessageToolStatusVariants, drawerBackdropVariants, drawerPopupVariants, marketplaceCardVariants, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, saveTemplateModalBodyVariants, saveTemplateModalButtonVariants, saveTemplateModalErrorVariants, saveTemplateModalFieldVariants, saveTemplateModalFooterVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, templateListVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
13837
14617
  //# sourceMappingURL=index.js.map
13838
14618
  //# sourceMappingURL=index.js.map