@vantageos/mosaic-blocks 0.5.21-alpha → 0.5.22-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.22-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"
@@ -8182,7 +8505,7 @@ function MosaicMarketplaceList(props) {
8182
8505
  return isMobile ? /* @__PURE__ */ jsx(MarketplaceListMobile, { ...props }) : /* @__PURE__ */ jsx(MarketplaceListDesktop, { ...props });
8183
8506
  }
8184
8507
  MosaicMarketplaceList.displayName = "MosaicMarketplaceList";
8185
- function cn62(...classes) {
8508
+ function cn64(...classes) {
8186
8509
  return classes.filter(Boolean).join(" ");
8187
8510
  }
8188
8511
  function StarIcon2() {
@@ -8303,7 +8626,7 @@ function MosaicTemplateCard({
8303
8626
  type: "button",
8304
8627
  onClick: () => onSelect(template),
8305
8628
  "data-slot": "template-card",
8306
- className: cn62(
8629
+ className: cn64(
8307
8630
  "w-full text-left rounded-lg border transition-all duration-200",
8308
8631
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
8309
8632
  isSelected ? "border-primary bg-primary/5 ring-2 ring-primary" : "border-border bg-card hover:border-primary/50",
@@ -8404,7 +8727,7 @@ function MosaicTemplatePreview({
8404
8727
  agent.accentColor && /* @__PURE__ */ jsx(
8405
8728
  "span",
8406
8729
  {
8407
- className: cn62("h-2 w-2 rounded-full", agent.accentColor),
8730
+ className: cn64("h-2 w-2 rounded-full", agent.accentColor),
8408
8731
  "aria-hidden": "true"
8409
8732
  }
8410
8733
  ),
@@ -8464,7 +8787,7 @@ function MosaicAgentTeamPreview({ agents, label }) {
8464
8787
  agent.accentColor && /* @__PURE__ */ jsx(
8465
8788
  "span",
8466
8789
  {
8467
- className: cn62("h-2.5 w-2.5 rounded-full", agent.accentColor),
8790
+ className: cn64("h-2.5 w-2.5 rounded-full", agent.accentColor),
8468
8791
  "aria-hidden": "true"
8469
8792
  }
8470
8793
  ),
@@ -8488,7 +8811,7 @@ function MosaicQuickStartPanel({
8488
8811
  scratchLabel,
8489
8812
  className
8490
8813
  }) {
8491
- return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className: cn62("flex flex-col gap-6", className), children: [
8814
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "quick-start-panel", className: cn64("flex flex-col gap-6", className), children: [
8492
8815
  scenarios.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
8493
8816
  /* @__PURE__ */ jsx("h3", { className: "mb-3 text-sm font-semibold text-foreground", children: scenariosTitle }),
8494
8817
  /* @__PURE__ */ jsx("div", { className: "grid gap-3 sm:grid-cols-2", children: scenarios.map((scenario) => /* @__PURE__ */ jsxs(
@@ -8496,7 +8819,7 @@ function MosaicQuickStartPanel({
8496
8819
  {
8497
8820
  type: "button",
8498
8821
  onClick: () => onSelectScenario(scenario),
8499
- className: cn62(
8822
+ className: cn64(
8500
8823
  "flex items-start gap-3 rounded-lg border border-border bg-card p-4 text-left",
8501
8824
  "hover:border-primary/50 hover:bg-primary/5",
8502
8825
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
@@ -8528,7 +8851,7 @@ function MosaicQuickStartPanel({
8528
8851
  {
8529
8852
  type: "button",
8530
8853
  onClick: () => onSelectPreset(preset),
8531
- className: cn62(
8854
+ className: cn64(
8532
8855
  "flex items-center justify-between gap-3 rounded-lg border border-border bg-card px-4 py-3 text-left",
8533
8856
  "hover:border-primary/50",
8534
8857
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
@@ -8542,7 +8865,7 @@ function MosaicQuickStartPanel({
8542
8865
  a.accentColor && /* @__PURE__ */ jsx(
8543
8866
  "span",
8544
8867
  {
8545
- className: cn62("h-2 w-2 rounded-full", a.accentColor),
8868
+ className: cn64("h-2 w-2 rounded-full", a.accentColor),
8546
8869
  "aria-hidden": "true"
8547
8870
  }
8548
8871
  ),
@@ -8560,7 +8883,7 @@ function MosaicQuickStartPanel({
8560
8883
  {
8561
8884
  type: "button",
8562
8885
  onClick: onStartFromScratch,
8563
- className: cn62(
8886
+ className: cn64(
8564
8887
  "inline-flex min-h-[44px] w-full items-center justify-center rounded-md border border-border",
8565
8888
  "bg-background px-4 text-sm font-medium text-foreground",
8566
8889
  "hover:bg-accent hover:text-accent-foreground",
@@ -8654,7 +8977,7 @@ function TemplateGalleryContent({
8654
8977
  value: query,
8655
8978
  onChange: (e) => setQuery(e.target.value),
8656
8979
  placeholder: searchPlaceholder,
8657
- className: cn62(
8980
+ className: cn64(
8658
8981
  "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
8982
  )
8660
8983
  }
@@ -8705,7 +9028,7 @@ function TemplateGalleryContent({
8705
9028
  value: query,
8706
9029
  onChange: (e) => setQuery(e.target.value),
8707
9030
  placeholder: searchPlaceholder,
8708
- className: cn62(
9031
+ className: cn64(
8709
9032
  "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
9033
  )
8711
9034
  }
@@ -8737,7 +9060,7 @@ function MosaicTemplateGallery(props) {
8737
9060
  return /* @__PURE__ */ jsx(TemplateGalleryContent, { ...props, isMobile });
8738
9061
  }
8739
9062
  MosaicTemplateGallery.displayName = "MosaicTemplateGallery";
8740
- function cn63(...classes) {
9063
+ function cn65(...classes) {
8741
9064
  return classes.filter(Boolean).join(" ");
8742
9065
  }
8743
9066
  function PlusIcon5() {
@@ -8888,7 +9211,7 @@ function MosaicModuleForm(props) {
8888
9211
  onChange: (e) => update("name", e.target.value),
8889
9212
  placeholder: namePlaceholder,
8890
9213
  required: true,
8891
- className: cn63(
9214
+ className: cn65(
8892
9215
  "w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
8893
9216
  "text-sm placeholder:text-muted-foreground",
8894
9217
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -8906,7 +9229,7 @@ function MosaicModuleForm(props) {
8906
9229
  onChange: (e) => update("description", e.target.value),
8907
9230
  placeholder: descriptionPlaceholder,
8908
9231
  rows: 3,
8909
- className: cn63(
9232
+ className: cn65(
8910
9233
  "w-full rounded-md border border-input bg-background px-3 py-2",
8911
9234
  "text-sm placeholder:text-muted-foreground resize-none",
8912
9235
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -8928,7 +9251,7 @@ function MosaicModuleForm(props) {
8928
9251
  value: formData[field.id] ?? "",
8929
9252
  onChange: (e) => update(field.id, e.target.value),
8930
9253
  placeholder: field.placeholder,
8931
- className: cn63(
9254
+ className: cn65(
8932
9255
  "w-full rounded-md border border-input bg-background px-3 py-2 min-h-[40px]",
8933
9256
  "text-sm placeholder:text-muted-foreground",
8934
9257
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -8943,7 +9266,7 @@ function MosaicModuleForm(props) {
8943
9266
  onChange: (e) => update(field.id, e.target.value),
8944
9267
  placeholder: field.placeholder,
8945
9268
  rows: 3,
8946
- className: cn63(
9269
+ className: cn65(
8947
9270
  "w-full rounded-md border border-input bg-background px-3 py-2",
8948
9271
  "text-sm placeholder:text-muted-foreground resize-none",
8949
9272
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -8959,7 +9282,7 @@ function MosaicModuleForm(props) {
8959
9282
  onChange: (e) => update(field.id, e.target.value),
8960
9283
  placeholder: field.placeholder ?? "\u{1F9E0}",
8961
9284
  maxLength: 4,
8962
- className: cn63(
9285
+ className: cn65(
8963
9286
  "w-20 rounded-md border border-input bg-background px-3 py-2 text-2xl",
8964
9287
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
8965
9288
  )
@@ -8980,7 +9303,7 @@ function MosaicModuleForm(props) {
8980
9303
  }
8981
9304
  },
8982
9305
  placeholder: field.placeholder ?? tagListAddPlaceholder,
8983
- className: cn63(
9306
+ className: cn65(
8984
9307
  "flex-1 rounded-md border border-input bg-background px-3 py-2 min-h-[36px]",
8985
9308
  "text-sm placeholder:text-muted-foreground",
8986
9309
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -9192,7 +9515,7 @@ function LibraryContent({
9192
9515
  {
9193
9516
  type: "button",
9194
9517
  onClick: openCreate,
9195
- className: cn63(
9518
+ className: cn65(
9196
9519
  "inline-flex items-center gap-2 rounded-md bg-primary px-3 py-2 text-sm font-medium text-primary-foreground",
9197
9520
  "hover:bg-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
9198
9521
  ),
@@ -9212,7 +9535,7 @@ function LibraryContent({
9212
9535
  value: query,
9213
9536
  onChange: (e) => setQuery(e.target.value),
9214
9537
  placeholder: searchPlaceholder,
9215
- className: cn63(
9538
+ className: cn65(
9216
9539
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
9217
9540
  "text-sm placeholder:text-muted-foreground",
9218
9541
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -9225,7 +9548,7 @@ function LibraryContent({
9225
9548
  {
9226
9549
  type: "button",
9227
9550
  onClick: () => setActiveTab(tab.id),
9228
- className: cn63(
9551
+ className: cn65(
9229
9552
  "rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
9230
9553
  activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
9231
9554
  ),
@@ -9277,7 +9600,7 @@ function MosaicModuleLibrary(props) {
9277
9600
  return /* @__PURE__ */ jsx(LibraryContent, { ...props });
9278
9601
  }
9279
9602
  MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
9280
- function cn64(...classes) {
9603
+ function cn66(...classes) {
9281
9604
  return classes.filter(Boolean).join(" ");
9282
9605
  }
9283
9606
  var roleConfig = {
@@ -9304,7 +9627,7 @@ function MosaicOrgRoleBadge({ role, className }) {
9304
9627
  {
9305
9628
  "data-slot": "org-role-badge",
9306
9629
  title: config.description,
9307
- className: cn64(
9630
+ className: cn66(
9308
9631
  "inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
9309
9632
  config.className,
9310
9633
  className
@@ -9321,13 +9644,13 @@ function MosaicMultiOrgIndicator({
9321
9644
  className
9322
9645
  }) {
9323
9646
  if (orgCount <= 1) return null;
9324
- return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className: cn64("flex items-center gap-2", className), children: [
9647
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "multi-org-indicator", className: cn66("flex items-center gap-2", className), children: [
9325
9648
  onSwitchOrg ? /* @__PURE__ */ jsxs(
9326
9649
  "button",
9327
9650
  {
9328
9651
  type: "button",
9329
9652
  onClick: onSwitchOrg,
9330
- className: cn64(
9653
+ className: cn66(
9331
9654
  "inline-flex items-center gap-1.5 rounded-full bg-secondary px-2.5 py-1 text-xs font-medium text-secondary-foreground",
9332
9655
  "hover:bg-secondary/80",
9333
9656
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -9441,7 +9764,7 @@ function MosaicCreateOrgDialog({
9441
9764
  onChange: (e) => setName(e.target.value),
9442
9765
  placeholder: orgNamePlaceholder,
9443
9766
  required: true,
9444
- className: cn64(
9767
+ className: cn66(
9445
9768
  "w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
9446
9769
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
9447
9770
  errors.name ? "border-destructive" : "border-input"
@@ -9461,7 +9784,7 @@ function MosaicCreateOrgDialog({
9461
9784
  onChange: (e) => setSlug(e.target.value),
9462
9785
  placeholder: "acme-inc",
9463
9786
  required: true,
9464
- className: cn64(
9787
+ className: cn66(
9465
9788
  "w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
9466
9789
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
9467
9790
  errors.slug ? "border-destructive" : "border-input"
@@ -9574,7 +9897,7 @@ function MosaicInviteMemberDialog({
9574
9897
  onChange: (e) => setEmail(e.target.value),
9575
9898
  placeholder: emailPlaceholder,
9576
9899
  required: true,
9577
- className: cn64(
9900
+ className: cn66(
9578
9901
  "w-full rounded-md border bg-background px-3 py-2 min-h-[40px] text-sm placeholder:text-muted-foreground",
9579
9902
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
9580
9903
  errors.email ? "border-destructive" : "border-input"
@@ -9761,7 +10084,7 @@ function MosaicMemberList({
9761
10084
  const filtered = members.filter(
9762
10085
  (m) => !query || m.name.toLowerCase().includes(query.toLowerCase()) || m.email.toLowerCase().includes(query.toLowerCase())
9763
10086
  );
9764
- return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className: cn64("flex flex-col gap-4", className), children: [
10087
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "member-list", className: cn66("flex flex-col gap-4", className), children: [
9765
10088
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
9766
10089
  /* @__PURE__ */ jsxs("div", { className: "relative flex-1", children: [
9767
10090
  /* @__PURE__ */ jsx("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: /* @__PURE__ */ jsxs(
@@ -9857,7 +10180,7 @@ function MosaicOrgPanel({
9857
10180
  const { isMobile } = useDevice();
9858
10181
  const [activeTab, setActiveTab] = React29.useState(defaultTab ?? tabs[0]?.id ?? "");
9859
10182
  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: [
10183
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "org-panel", className: cn66("flex h-full flex-col", className), children: [
9861
10184
  /* @__PURE__ */ jsxs("div", { className: "border-b border-border px-4 py-4 md:px-6", children: [
9862
10185
  /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-4", children: [
9863
10186
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
@@ -9879,12 +10202,12 @@ function MosaicOrgPanel({
9879
10202
  ] }),
9880
10203
  headerActions
9881
10204
  ] }),
9882
- tabs.length > 0 && /* @__PURE__ */ jsx("div", { className: cn64("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsx(
10205
+ tabs.length > 0 && /* @__PURE__ */ jsx("div", { className: cn66("mt-4 flex gap-1", isMobile && "overflow-x-auto"), children: tabs.map((tab) => /* @__PURE__ */ jsx(
9883
10206
  "button",
9884
10207
  {
9885
10208
  type: "button",
9886
10209
  onClick: () => setActiveTab(tab.id),
9887
- className: cn64(
10210
+ className: cn66(
9888
10211
  "shrink-0 rounded-md px-3 py-1.5 text-sm font-medium transition-colors",
9889
10212
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
9890
10213
  activeTab === tab.id ? "bg-primary text-primary-foreground" : "bg-muted text-muted-foreground hover:bg-accent hover:text-accent-foreground"
@@ -9898,7 +10221,7 @@ function MosaicOrgPanel({
9898
10221
  ] });
9899
10222
  }
9900
10223
  MosaicOrgPanel.displayName = "MosaicOrgPanel";
9901
- function cn65(...classes) {
10224
+ function cn67(...classes) {
9902
10225
  return classes.filter(Boolean).join(" ");
9903
10226
  }
9904
10227
  var ANIM_ID8 = "mosaic-dashboard-content-kf";
@@ -9935,7 +10258,7 @@ function MosaicDashboardContent({
9935
10258
  "div",
9936
10259
  {
9937
10260
  "data-slot": "dashboard-content",
9938
- className: cn65("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
10261
+ className: cn67("h-full overflow-auto", isMobile ? "p-4" : "p-6", className),
9939
10262
  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
10263
  "View not found: ",
9941
10264
  currentView
@@ -9944,7 +10267,7 @@ function MosaicDashboardContent({
9944
10267
  );
9945
10268
  }
9946
10269
  MosaicDashboardContent.displayName = "MosaicDashboardContent";
9947
- function cn66(...classes) {
10270
+ function cn68(...classes) {
9948
10271
  return classes.filter(Boolean).join(" ");
9949
10272
  }
9950
10273
  var ANIM_ID9 = "mosaic-dashboard-header2-kf";
@@ -10056,16 +10379,16 @@ function MosaicDashboardHeader({
10056
10379
  "header",
10057
10380
  {
10058
10381
  "data-slot": "dashboard-header",
10059
- className: cn66(
10382
+ className: cn68(
10060
10383
  "mosaic-dashboard-header2",
10061
10384
  "sticky top-0 z-40 border-b border-border/50 bg-background/80 backdrop-blur-sm",
10062
10385
  className
10063
10386
  ),
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: [
10387
+ children: /* @__PURE__ */ jsx("div", { className: cn68(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
10388
  /* @__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
10389
  logoSlot ?? /* @__PURE__ */ jsx(SparklesIcon4, {}),
10067
10390
  /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
10068
- /* @__PURE__ */ jsx("h1", { className: cn66("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
10391
+ /* @__PURE__ */ jsx("h1", { className: cn68("font-semibold truncate", isMobile ? "text-lg" : "text-xl"), children: title }),
10069
10392
  subtitle && !isMobile && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground truncate", children: subtitle })
10070
10393
  ] })
10071
10394
  ] }) }),
@@ -10078,7 +10401,7 @@ function MosaicDashboardHeader({
10078
10401
  value: searchQuery,
10079
10402
  onChange: handleSearch,
10080
10403
  placeholder: searchPlaceholder,
10081
- className: cn66(
10404
+ className: cn68(
10082
10405
  "w-full rounded-md border border-input bg-background py-2 pl-9 pr-3",
10083
10406
  "text-sm placeholder:text-muted-foreground",
10084
10407
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -10118,7 +10441,7 @@ function MosaicDashboardHeader({
10118
10441
  );
10119
10442
  }
10120
10443
  MosaicDashboardHeader.displayName = "MosaicDashboardHeader";
10121
- function cn67(...classes) {
10444
+ function cn69(...classes) {
10122
10445
  return classes.filter(Boolean).join(" ");
10123
10446
  }
10124
10447
  function ChevronDownIcon4() {
@@ -10201,13 +10524,13 @@ function MosaicOrgSwitcher({
10201
10524
  }, [open]);
10202
10525
  if (!currentOrg && organizations.length === 0 && !onCreateOrg) return null;
10203
10526
  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: [
10527
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "org-switcher", className: cn69("relative", className), children: [
10205
10528
  /* @__PURE__ */ jsxs(
10206
10529
  "button",
10207
10530
  {
10208
10531
  type: "button",
10209
10532
  onClick: () => setOpen((v) => !v),
10210
- className: cn67(
10533
+ className: cn69(
10211
10534
  "inline-flex items-center gap-2 rounded-md border border-border bg-background px-3 py-1.5",
10212
10535
  "text-sm font-medium text-foreground",
10213
10536
  "hover:bg-accent hover:text-accent-foreground",
@@ -10234,7 +10557,7 @@ function MosaicOrgSwitcher({
10234
10557
  {
10235
10558
  role: "menu",
10236
10559
  "aria-label": triggerAriaLabel,
10237
- className: cn67(
10560
+ className: cn69(
10238
10561
  "absolute left-0 top-full z-50 mt-1 min-w-[200px] rounded-md border border-border",
10239
10562
  "bg-popover py-1 shadow-md"
10240
10563
  ),
@@ -10249,7 +10572,7 @@ function MosaicOrgSwitcher({
10249
10572
  onSelectOrg?.(org.id);
10250
10573
  setOpen(false);
10251
10574
  },
10252
- className: cn67(
10575
+ className: cn69(
10253
10576
  "flex w-full items-center gap-2.5 px-3 py-2 text-sm text-foreground",
10254
10577
  "hover:bg-accent hover:text-accent-foreground",
10255
10578
  org.id === currentOrgId && "bg-primary/10 text-primary"
@@ -10286,7 +10609,7 @@ function MosaicOrgSwitcher({
10286
10609
  ] });
10287
10610
  }
10288
10611
  MosaicOrgSwitcher.displayName = "MosaicOrgSwitcher";
10289
- function cn68(...classes) {
10612
+ function cn70(...classes) {
10290
10613
  return classes.filter(Boolean).join(" ");
10291
10614
  }
10292
10615
  function PlusIcon7() {
@@ -10331,19 +10654,19 @@ function MosaicQuickActionsMenu({
10331
10654
  document.addEventListener("mousedown", h);
10332
10655
  return () => document.removeEventListener("mousedown", h);
10333
10656
  }, [open]);
10334
- const itemClass = cn68(
10657
+ const itemClass = cn70(
10335
10658
  "flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground",
10336
10659
  "hover:bg-accent hover:text-accent-foreground",
10337
10660
  "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
10338
10661
  "min-h-[44px]"
10339
10662
  );
10340
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn68("relative", className), children: [
10663
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "quick-actions-menu", className: cn70("relative", className), children: [
10341
10664
  /* @__PURE__ */ jsxs(
10342
10665
  "button",
10343
10666
  {
10344
10667
  type: "button",
10345
10668
  onClick: () => setOpen((v) => !v),
10346
- className: cn68(
10669
+ className: cn70(
10347
10670
  "inline-flex items-center justify-center gap-2 rounded-md border border-border bg-background",
10348
10671
  "min-h-[44px] min-w-[44px] px-3 py-2 text-sm font-medium text-foreground",
10349
10672
  "hover:bg-accent hover:text-accent-foreground",
@@ -10354,7 +10677,7 @@ function MosaicQuickActionsMenu({
10354
10677
  "aria-label": label,
10355
10678
  children: [
10356
10679
  triggerIcon ?? /* @__PURE__ */ jsx(PlusIcon7, {}),
10357
- /* @__PURE__ */ jsx("span", { className: cn68("hidden md:inline"), children: label })
10680
+ /* @__PURE__ */ jsx("span", { className: cn70("hidden md:inline"), children: label })
10358
10681
  ]
10359
10682
  }
10360
10683
  ),
@@ -10363,13 +10686,13 @@ function MosaicQuickActionsMenu({
10363
10686
  {
10364
10687
  role: "menu",
10365
10688
  "aria-label": menuTitle,
10366
- className: cn68(
10689
+ className: cn70(
10367
10690
  "absolute right-0 top-full z-50 mt-1 rounded-md border border-border bg-popover py-1 shadow-md",
10368
10691
  isMobile ? "w-[min(90vw,280px)]" : "w-56"
10369
10692
  ),
10370
10693
  children: [
10371
10694
  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") }),
10695
+ /* @__PURE__ */ jsx("div", { className: cn70(menuTitle && "border-t border-border") }),
10373
10696
  actions.map((action) => /* @__PURE__ */ jsxs(React29.Fragment, { children: [
10374
10697
  action.separator && /* @__PURE__ */ jsx("div", { className: "my-1 border-t border-border" }),
10375
10698
  action.href && renderLink ? renderLink(
@@ -10674,7 +10997,7 @@ function MosaicOrgProfilePage({
10674
10997
  );
10675
10998
  }
10676
10999
  MosaicOrgProfilePage.displayName = "MosaicOrgProfilePage";
10677
- function cn69(...classes) {
11000
+ function cn71(...classes) {
10678
11001
  return classes.filter(Boolean).join(" ");
10679
11002
  }
10680
11003
  function defaultCompare(a, b) {
@@ -10737,7 +11060,7 @@ function MosaicDataTable({
10737
11060
  {
10738
11061
  ref,
10739
11062
  "data-slot": "data-table",
10740
- className: cn69("w-full border-collapse text-sm", className),
11063
+ className: cn71("w-full border-collapse text-sm", className),
10741
11064
  children: [
10742
11065
  /* @__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
11066
  const isSortable = masterSortable && col.sortable;
@@ -10755,7 +11078,7 @@ function MosaicDataTable({
10755
11078
  handleHeaderClick(col);
10756
11079
  }
10757
11080
  } : void 0,
10758
- className: cn69(
11081
+ className: cn71(
10759
11082
  "px-4 py-3 font-medium text-muted-foreground",
10760
11083
  alignClass(col.align),
10761
11084
  col.className,
@@ -10791,7 +11114,7 @@ function MosaicDataTable({
10791
11114
  "td",
10792
11115
  {
10793
11116
  "data-slot": "data-table-td",
10794
- className: cn69(
11117
+ className: cn71(
10795
11118
  "px-4 py-3 text-foreground",
10796
11119
  alignClass(col.align),
10797
11120
  col.className
@@ -10930,7 +11253,7 @@ var stepSegmentVariants = cva(["h-1.5 flex-1 min-w-2 rounded-full transition-col
10930
11253
  filled: false
10931
11254
  }
10932
11255
  });
10933
- function cn70(...classes) {
11256
+ function cn72(...classes) {
10934
11257
  return classes.filter(Boolean).join(" ");
10935
11258
  }
10936
11259
  function resolveStatus(step, index, currentIndex) {
@@ -10971,7 +11294,7 @@ function MosaicStepPipelineSegments({
10971
11294
  "aria-valuemax": total,
10972
11295
  "aria-valuenow": current,
10973
11296
  "aria-valuetext": progressLabel ? progressLabel(current, total) : void 0,
10974
- className: cn70(stepSegmentBarVariants(), className),
11297
+ className: cn72(stepSegmentBarVariants(), className),
10975
11298
  children: steps.map((step, index) => {
10976
11299
  const status = resolveStatus(step, index, currentIndex);
10977
11300
  const filled = status !== "upcoming";
@@ -10983,7 +11306,7 @@ function MosaicStepPipelineSegments({
10983
11306
  "data-status": status,
10984
11307
  "data-filled": filled,
10985
11308
  "aria-hidden": "true",
10986
- className: cn70(stepSegmentVariants({ filled }))
11309
+ className: cn72(stepSegmentVariants({ filled }))
10987
11310
  },
10988
11311
  key
10989
11312
  );
@@ -11004,7 +11327,7 @@ function MosaicStepPipelineDots({
11004
11327
  {
11005
11328
  ref,
11006
11329
  "data-slot": "step-pipeline",
11007
- className: cn70(stepPipelineVariants({ orientation }), className),
11330
+ className: cn72(stepPipelineVariants({ orientation }), className),
11008
11331
  children: steps.map((step, index) => {
11009
11332
  const status = resolveStatus(step, index, currentIndex);
11010
11333
  const isCurrent = status === "current";
@@ -11016,7 +11339,7 @@ function MosaicStepPipelineDots({
11016
11339
  "data-slot": "step",
11017
11340
  "data-status": status,
11018
11341
  "aria-current": isCurrent ? "step" : void 0,
11019
- className: cn70(
11342
+ className: cn72(
11020
11343
  "flex shrink-0",
11021
11344
  orientation === "horizontal" ? "flex-col items-center gap-2" : "flex-row items-start gap-3",
11022
11345
  orientation === "horizontal" && !isLast && "flex-1"
@@ -11027,14 +11350,14 @@ function MosaicStepPipelineDots({
11027
11350
  "div",
11028
11351
  {
11029
11352
  "data-slot": "step-connector",
11030
- className: cn70(stepConnectorVariants({ status, orientation }))
11353
+ className: cn72(stepConnectorVariants({ status, orientation }))
11031
11354
  }
11032
11355
  ),
11033
11356
  /* @__PURE__ */ jsx(
11034
11357
  "div",
11035
11358
  {
11036
11359
  "data-slot": "step-indicator",
11037
- className: cn70(stepIndicatorVariants({ status, orientation })),
11360
+ className: cn72(stepIndicatorVariants({ status, orientation })),
11038
11361
  "aria-hidden": "true",
11039
11362
  children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
11040
11363
  }
@@ -11043,7 +11366,7 @@ function MosaicStepPipelineDots({
11043
11366
  "div",
11044
11367
  {
11045
11368
  "data-slot": "step-connector",
11046
- className: cn70(
11369
+ className: cn72(
11047
11370
  stepConnectorVariants({
11048
11371
  // connector after current step is still upcoming
11049
11372
  status: status === "done" ? "done" : "upcoming",
@@ -11054,12 +11377,12 @@ function MosaicStepPipelineDots({
11054
11377
  )
11055
11378
  ] }),
11056
11379
  /* @__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 }),
11380
+ /* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn72(stepLabelVariants({ status })), children: step.label }),
11058
11381
  step.description !== void 0 && /* @__PURE__ */ jsx(
11059
11382
  "span",
11060
11383
  {
11061
11384
  "data-slot": "step-description",
11062
- className: cn70(stepDescriptionVariants({ status })),
11385
+ className: cn72(stepDescriptionVariants({ status })),
11063
11386
  children: step.description
11064
11387
  }
11065
11388
  )
@@ -11070,7 +11393,7 @@ function MosaicStepPipelineDots({
11070
11393
  "div",
11071
11394
  {
11072
11395
  "data-slot": "step-indicator",
11073
- className: cn70(stepIndicatorVariants({ status, orientation })),
11396
+ className: cn72(stepIndicatorVariants({ status, orientation })),
11074
11397
  "aria-hidden": "true",
11075
11398
  children: status === "done" ? "\u2713" : /* @__PURE__ */ jsx("span", { children: index + 1 })
11076
11399
  }
@@ -11079,7 +11402,7 @@ function MosaicStepPipelineDots({
11079
11402
  "div",
11080
11403
  {
11081
11404
  "data-slot": "step-connector",
11082
- className: cn70(
11405
+ className: cn72(
11083
11406
  stepConnectorVariants({
11084
11407
  status: status === "done" ? "done" : "upcoming",
11085
11408
  orientation
@@ -11089,12 +11412,12 @@ function MosaicStepPipelineDots({
11089
11412
  )
11090
11413
  ] }),
11091
11414
  /* @__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 }),
11415
+ /* @__PURE__ */ jsx("span", { "data-slot": "step-label", className: cn72(stepLabelVariants({ status })), children: step.label }),
11093
11416
  step.description !== void 0 && /* @__PURE__ */ jsx(
11094
11417
  "span",
11095
11418
  {
11096
11419
  "data-slot": "step-description",
11097
- className: cn70(stepDescriptionVariants({ status })),
11420
+ className: cn72(stepDescriptionVariants({ status })),
11098
11421
  children: step.description
11099
11422
  }
11100
11423
  )
@@ -11108,7 +11431,7 @@ function MosaicStepPipelineDots({
11108
11431
  );
11109
11432
  }
11110
11433
  MosaicStepPipelineDots.displayName = "MosaicStepPipelineDots";
11111
- function cn71(...classes) {
11434
+ function cn73(...classes) {
11112
11435
  return classes.filter(Boolean).join(" ");
11113
11436
  }
11114
11437
  function MosaicKanbanBoard({ children, className, ref, ...props }) {
@@ -11117,7 +11440,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
11117
11440
  {
11118
11441
  ref,
11119
11442
  "data-slot": "kanban-board",
11120
- className: cn71(
11443
+ className: cn73(
11121
11444
  "flex gap-4 overflow-x-auto pb-4",
11122
11445
  "min-h-0",
11123
11446
  // Smooth momentum scrolling on iOS
@@ -11130,7 +11453,7 @@ function MosaicKanbanBoard({ children, className, ref, ...props }) {
11130
11453
  );
11131
11454
  }
11132
11455
  MosaicKanbanBoard.displayName = "MosaicKanbanBoard";
11133
- function cn72(...classes) {
11456
+ function cn74(...classes) {
11134
11457
  return classes.filter(Boolean).join(" ");
11135
11458
  }
11136
11459
  function MosaicKanbanColumn({
@@ -11148,7 +11471,7 @@ function MosaicKanbanColumn({
11148
11471
  {
11149
11472
  ref,
11150
11473
  "data-slot": "kanban-column",
11151
- className: cn72(
11474
+ className: cn74(
11152
11475
  // Fixed column width, never shrink so board stays scrollable
11153
11476
  "flex flex-col w-72 shrink-0",
11154
11477
  // Surface
@@ -11169,7 +11492,7 @@ function MosaicKanbanColumn({
11169
11492
  {
11170
11493
  "data-slot": "kanban-column-count",
11171
11494
  "aria-label": countLabel(count),
11172
- className: cn72(
11495
+ className: cn74(
11173
11496
  "inline-flex items-center justify-center",
11174
11497
  "min-w-[1.25rem] h-5 px-1.5 rounded-full",
11175
11498
  "bg-muted text-muted-foreground",
@@ -11391,7 +11714,7 @@ var documentUploadProgressFillVariants = cva(
11391
11714
  defaultVariants: {}
11392
11715
  }
11393
11716
  );
11394
- function cn73(...classes) {
11717
+ function cn75(...classes) {
11395
11718
  return classes.filter(Boolean).join(" ");
11396
11719
  }
11397
11720
  function MosaicDocumentUpload({
@@ -11432,7 +11755,7 @@ function MosaicDocumentUpload({
11432
11755
  if (selected.length > 0) onFilesSelected(selected);
11433
11756
  event.target.value = "";
11434
11757
  }
11435
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "document-upload", className: cn73("flex flex-col gap-4", className), children: [
11758
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "document-upload", className: cn75("flex flex-col gap-4", className), children: [
11436
11759
  /* @__PURE__ */ jsxs(
11437
11760
  "div",
11438
11761
  {
@@ -11497,7 +11820,7 @@ function MosaicDocumentUpload({
11497
11820
  "aria-valuemin": 0,
11498
11821
  "aria-valuemax": 100,
11499
11822
  "aria-valuenow": file.progress ?? 0,
11500
- className: cn73(documentUploadProgressTrackVariants(), "mt-2"),
11823
+ className: cn75(documentUploadProgressTrackVariants(), "mt-2"),
11501
11824
  children: /* @__PURE__ */ jsx(
11502
11825
  "div",
11503
11826
  {
@@ -11574,7 +11897,7 @@ var urlScraperCardVariants = cva(["flex flex-col gap-2 rounded-lg border p-4"],
11574
11897
  tone: "neutral"
11575
11898
  }
11576
11899
  });
11577
- function cn74(...classes) {
11900
+ function cn76(...classes) {
11578
11901
  return classes.filter(Boolean).join(" ");
11579
11902
  }
11580
11903
  function isSyntacticallyValidUrl(candidate) {
@@ -11613,7 +11936,7 @@ function MosaicUrlScraper(props) {
11613
11936
  setIsLocallyInvalid(false);
11614
11937
  onUrlChange(event.target.value);
11615
11938
  }
11616
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "url-scraper", className: cn74("flex flex-col gap-4", className), children: [
11939
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "url-scraper", className: cn76("flex flex-col gap-4", className), children: [
11617
11940
  /* @__PURE__ */ jsxs(
11618
11941
  "form",
11619
11942
  {
@@ -11749,7 +12072,7 @@ var chatThreadScrollButtonVariants = cva([
11749
12072
  "items-center justify-center rounded-full border border-border bg-card text-foreground shadow-sm",
11750
12073
  "transition-colors hover:bg-accent/50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
11751
12074
  ]);
11752
- function cn75(...classes) {
12075
+ function cn77(...classes) {
11753
12076
  return classes.filter(Boolean).join(" ");
11754
12077
  }
11755
12078
  var BOTTOM_THRESHOLD_PX = 24;
@@ -11833,7 +12156,7 @@ function MosaicChatThread({
11833
12156
  role: "log",
11834
12157
  onScroll: handleScroll,
11835
12158
  onKeyDown: handleKeyDown,
11836
- className: cn75(chatThreadRootVariants(), className),
12159
+ className: cn77(chatThreadRootVariants(), className),
11837
12160
  children: [
11838
12161
  /* @__PURE__ */ jsx("div", { "data-slot": "chat-thread-content", className: chatThreadContentVariants(), children }),
11839
12162
  !isAtBottom && /* @__PURE__ */ jsx(
@@ -11874,7 +12197,7 @@ var chatComposerActionButtonVariants = cva(
11874
12197
  }
11875
12198
  }
11876
12199
  );
11877
- function cn76(...classes) {
12200
+ function cn78(...classes) {
11878
12201
  return classes.filter(Boolean).join(" ");
11879
12202
  }
11880
12203
  function MosaicChatComposer(props) {
@@ -11929,7 +12252,7 @@ function MosaicChatComposer(props) {
11929
12252
  {
11930
12253
  ref,
11931
12254
  "data-slot": "chat-composer",
11932
- className: cn76(chatComposerRootVariants(), className),
12255
+ className: cn78(chatComposerRootVariants(), className),
11933
12256
  onSubmit: handleSubmit,
11934
12257
  children: [
11935
12258
  /* @__PURE__ */ jsx(
@@ -12045,7 +12368,7 @@ var markdownTableCellVariants = cva(["border border-border px-3 py-1.5"], {
12045
12368
  align: "left"
12046
12369
  }
12047
12370
  });
12048
- function cn77(...classes) {
12371
+ function cn79(...classes) {
12049
12372
  return classes.filter(Boolean).join(" ");
12050
12373
  }
12051
12374
  function sanitizeHref(rawHref) {
@@ -12240,7 +12563,7 @@ function parseBlocks(content) {
12240
12563
  function MosaicMarkdown({ content, renderCodeBlock, className, ref }) {
12241
12564
  const blocks = parseBlocks(content);
12242
12565
  const ids = makeIdSource();
12243
- return /* @__PURE__ */ jsx("div", { ref, "data-slot": "markdown", className: cn77(markdownRootVariants(), className), children: blocks.map((block) => {
12566
+ return /* @__PURE__ */ jsx("div", { ref, "data-slot": "markdown", className: cn79(markdownRootVariants(), className), children: blocks.map((block) => {
12244
12567
  if (block.kind === "heading") {
12245
12568
  const HeadingTag = `h${block.level}`;
12246
12569
  return /* @__PURE__ */ jsx(HeadingTag, { className: markdownHeadingVariants({ level: block.level }), children: parseInline(block.text, ids) }, block.id);
@@ -12318,7 +12641,7 @@ var chatMessageToolStatusVariants = cva(["text-xs font-medium"], {
12318
12641
  status: "running"
12319
12642
  }
12320
12643
  });
12321
- function cn78(...classes) {
12644
+ function cn80(...classes) {
12322
12645
  return classes.filter(Boolean).join(" ");
12323
12646
  }
12324
12647
  function partKey(part, index) {
@@ -12484,7 +12807,7 @@ function MosaicChatMessage({
12484
12807
  ref,
12485
12808
  "data-slot": "chat-message",
12486
12809
  "data-role": messageRole,
12487
- className: cn78(chatMessageContainerVariants({ align: isUser ? "end" : "start" }), className),
12810
+ className: cn80(chatMessageContainerVariants({ align: isUser ? "end" : "start" }), className),
12488
12811
  children: /* @__PURE__ */ jsx("div", { className: chatMessageBubbleVariants({ role: messageRole }), children: parts.map((part, index) => /* @__PURE__ */ jsx(
12489
12812
  ChatMessagePartView,
12490
12813
  {
@@ -12539,7 +12862,7 @@ var approvalPromptButtonVariants = cva(
12539
12862
  }
12540
12863
  }
12541
12864
  );
12542
- function cn79(...classes) {
12865
+ function cn81(...classes) {
12543
12866
  return classes.filter(Boolean).join(" ");
12544
12867
  }
12545
12868
  function MosaicApprovalPrompt(props) {
@@ -12551,7 +12874,7 @@ function MosaicApprovalPrompt(props) {
12551
12874
  ref,
12552
12875
  "data-slot": "approval-prompt",
12553
12876
  "aria-label": promptTitle,
12554
- className: cn79("border-0 p-0 m-0", approvalPromptCardVariants({ tone }), className),
12877
+ className: cn81("border-0 p-0 m-0", approvalPromptCardVariants({ tone }), className),
12555
12878
  children: [
12556
12879
  /* @__PURE__ */ jsx("legend", { "data-slot": "approval-prompt-title", className: "text-base font-semibold md:text-lg", children: promptTitle }),
12557
12880
  /* @__PURE__ */ jsxs("div", { "data-slot": "approval-prompt-tool", className: "flex flex-col gap-1", children: [
@@ -12628,7 +12951,7 @@ var toolToggleListRowVariants = cva(
12628
12951
  }
12629
12952
  }
12630
12953
  );
12631
- function cn80(...classes) {
12954
+ function cn82(...classes) {
12632
12955
  return classes.filter(Boolean).join(" ");
12633
12956
  }
12634
12957
  function MosaicToolToggleList({
@@ -12644,7 +12967,7 @@ function MosaicToolToggleList({
12644
12967
  }) {
12645
12968
  const toolsById = new Map(tools.map((tool) => [tool.id, tool]));
12646
12969
  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(
12970
+ return /* @__PURE__ */ jsx("div", { ref, "data-slot": "tool-toggle-list", className: cn82("flex flex-col gap-6", className), children: sections.map((section) => /* @__PURE__ */ jsxs(
12648
12971
  "div",
12649
12972
  {
12650
12973
  "data-slot": "tool-toggle-list-section",
@@ -12675,7 +12998,7 @@ function MosaicToolToggleList({
12675
12998
  onCheckedChange: (checked) => onToggleTool(tool.id, checked),
12676
12999
  "aria-label": toggleAriaLabel(tool.name),
12677
13000
  "data-slot": "tool-toggle-list-switch",
12678
- className: cn80(
13001
+ className: cn82(
12679
13002
  "relative inline-flex h-6 w-10 shrink-0 cursor-pointer items-center",
12680
13003
  "rounded-full border-2 border-transparent outline-none",
12681
13004
  "bg-muted transition-colors",
@@ -12686,7 +13009,7 @@ function MosaicToolToggleList({
12686
13009
  Switch.Thumb,
12687
13010
  {
12688
13011
  "data-slot": "tool-toggle-list-switch-thumb",
12689
- className: cn80(
13012
+ className: cn82(
12690
13013
  "pointer-events-none block h-4 w-4 rounded-full",
12691
13014
  "bg-background shadow-sm",
12692
13015
  "translate-x-0 transition-transform",
@@ -12728,7 +13051,7 @@ function MosaicToolToggleList({
12728
13051
  {
12729
13052
  "aria-label": approvalSelectAriaLabel(tool.name),
12730
13053
  "data-slot": "tool-toggle-list-approval-trigger",
12731
- className: cn80(
13054
+ className: cn82(
12732
13055
  "inline-flex h-9 min-w-[10rem] items-center justify-between gap-2",
12733
13056
  "rounded-md border border-border bg-background px-3 py-2",
12734
13057
  "text-sm text-foreground shadow-xs outline-none",
@@ -12746,7 +13069,7 @@ function MosaicToolToggleList({
12746
13069
  Select.Popup,
12747
13070
  {
12748
13071
  "data-slot": "tool-toggle-list-approval-popup",
12749
- className: cn80(
13072
+ className: cn82(
12750
13073
  "z-50 min-w-[10rem] overflow-hidden rounded-md border border-border",
12751
13074
  "bg-popover p-1 text-popover-foreground shadow-md",
12752
13075
  "origin-[var(--transform-origin)]",
@@ -12759,7 +13082,7 @@ function MosaicToolToggleList({
12759
13082
  Select.Item,
12760
13083
  {
12761
13084
  value: level.id,
12762
- className: cn80(
13085
+ className: cn82(
12763
13086
  "relative flex cursor-pointer select-none items-center rounded-sm px-2 py-1.5",
12764
13087
  "text-sm text-popover-foreground outline-none",
12765
13088
  "data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground",
@@ -12867,7 +13190,7 @@ var apiKeyPanelMessageVariants = cva(["text-sm"], {
12867
13190
  tone: "muted"
12868
13191
  }
12869
13192
  });
12870
- function cn81(...classes) {
13193
+ function cn83(...classes) {
12871
13194
  return classes.filter(Boolean).join(" ");
12872
13195
  }
12873
13196
  function MosaicApiKeyPanel(props) {
@@ -12895,7 +13218,7 @@ function MosaicApiKeyPanel(props) {
12895
13218
  function handleKeyChange(event) {
12896
13219
  onKeyChange(event.target.value);
12897
13220
  }
12898
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "api-key-panel", className: cn81("flex flex-col gap-3", className), children: [
13221
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "api-key-panel", className: cn83("flex flex-col gap-3", className), children: [
12899
13222
  /* @__PURE__ */ jsx(
12900
13223
  "div",
12901
13224
  {
@@ -12990,7 +13313,7 @@ MosaicApiKeyPanel.displayName = "MosaicApiKeyPanel";
12990
13313
  var agentChatRootVariants = cva([
12991
13314
  "flex min-h-0 w-full flex-1 flex-col gap-2 overflow-hidden rounded-lg border border-border bg-card"
12992
13315
  ]);
12993
- function cn82(...classes) {
13316
+ function cn84(...classes) {
12994
13317
  return classes.filter(Boolean).join(" ");
12995
13318
  }
12996
13319
  function formatPayload2(value) {
@@ -13126,7 +13449,7 @@ function MosaicAgentChat(props) {
13126
13449
  setDecisions((previous) => ({ ...previous, [payload.requestId]: decision }));
13127
13450
  onApprovalResponse(payload);
13128
13451
  }
13129
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "agent-chat", className: cn82(agentChatRootVariants(), className), children: [
13452
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "agent-chat", className: cn84(agentChatRootVariants(), className), children: [
13130
13453
  /* @__PURE__ */ jsx(MosaicChatThread, { scrollToBottomLabel, children: messages.map((message) => /* @__PURE__ */ jsx(
13131
13454
  MosaicChatMessage,
13132
13455
  {
@@ -13215,7 +13538,7 @@ var toastProviderPositionVariants = cva(
13215
13538
  }
13216
13539
  }
13217
13540
  );
13218
- function cn83(...classes) {
13541
+ function cn85(...classes) {
13219
13542
  return classes.filter(Boolean).join(" ");
13220
13543
  }
13221
13544
  function MosaicToast({
@@ -13241,7 +13564,7 @@ function MosaicToast({
13241
13564
  ref,
13242
13565
  "data-slot": "toast",
13243
13566
  role,
13244
- className: cn83(toastCardVariants({ variant }), className),
13567
+ className: cn85(toastCardVariants({ variant }), className),
13245
13568
  children: [
13246
13569
  /* @__PURE__ */ jsxs("div", { "data-slot": "toast-body", className: "flex min-w-0 flex-1 flex-col gap-1", children: [
13247
13570
  /* @__PURE__ */ jsx("p", { "data-slot": "toast-title", className: toastTitleVariants({ variant }), children: title }),
@@ -13281,7 +13604,7 @@ function MosaicToast({
13281
13604
  );
13282
13605
  }
13283
13606
  MosaicToast.displayName = "MosaicToast";
13284
- function cn84(...classes) {
13607
+ function cn86(...classes) {
13285
13608
  return classes.filter(Boolean).join(" ");
13286
13609
  }
13287
13610
  function MosaicToastProvider({
@@ -13295,7 +13618,7 @@ function MosaicToastProvider({
13295
13618
  {
13296
13619
  ref,
13297
13620
  "data-slot": "toast-provider",
13298
- className: cn84(toastProviderPositionVariants({ position }), className),
13621
+ className: cn86(toastProviderPositionVariants({ position }), className),
13299
13622
  children
13300
13623
  }
13301
13624
  );
@@ -13322,7 +13645,7 @@ var pdfViewerToolbarButtonVariants = cva([
13322
13645
  "inline-flex min-h-8 min-w-8 items-center justify-center rounded-md border border-border text-sm",
13323
13646
  "transition-colors hover:bg-accent/50 disabled:opacity-50 disabled:hover:bg-transparent"
13324
13647
  ]);
13325
- function cn85(...classes) {
13648
+ function cn87(...classes) {
13326
13649
  return classes.filter(Boolean).join(" ");
13327
13650
  }
13328
13651
  function buildFrameSrc(fileUrl, currentPage, zoom) {
@@ -13387,7 +13710,7 @@ function MosaicPdfViewer({
13387
13710
  if (zoom === void 0 || onZoomChange === void 0) return;
13388
13711
  onZoomChange(Math.round((zoom + 0.1) * 100) / 100);
13389
13712
  }
13390
- return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "pdf-viewer", className: cn85("flex flex-col gap-2", className), children: [
13713
+ return /* @__PURE__ */ jsxs("div", { ref, "data-slot": "pdf-viewer", className: cn87("flex flex-col gap-2", className), children: [
13391
13714
  (showPageControls || showZoomControls) && /* @__PURE__ */ jsxs(
13392
13715
  "div",
13393
13716
  {
@@ -13476,7 +13799,7 @@ function MosaicPdfViewer({
13476
13799
  "data-slot": "pdf-viewer-frame",
13477
13800
  src: buildFrameSrc(fileUrl, currentPage, zoom),
13478
13801
  title: fileUrl,
13479
- className: cn85(
13802
+ className: cn87(
13480
13803
  "h-full min-h-64 w-full border-0",
13481
13804
  status !== "loaded" && "pointer-events-none absolute inset-0 opacity-0"
13482
13805
  )
@@ -13495,7 +13818,7 @@ var splitPaneCollapseButtonVariants = cva([
13495
13818
  "inline-flex h-11 w-6 shrink-0 items-center justify-center self-center rounded-md border border-border text-sm",
13496
13819
  "transition-colors hover:bg-accent/50"
13497
13820
  ]);
13498
- function cn86(...classes) {
13821
+ function cn88(...classes) {
13499
13822
  return classes.filter(Boolean).join(" ");
13500
13823
  }
13501
13824
  function mergeRefs(externalRef, node) {
@@ -13568,7 +13891,7 @@ function MosaicResizableSplitPane({
13568
13891
  mergeRefs(ref, node);
13569
13892
  },
13570
13893
  "data-slot": "resizable-split-pane",
13571
- className: cn86(splitPaneRootVariants(), className),
13894
+ className: cn88(splitPaneRootVariants(), className),
13572
13895
  children: [
13573
13896
  /* @__PURE__ */ jsx("div", { "data-slot": "resizable-split-pane-main", className: "min-h-0 min-w-0 flex-1 overflow-auto", children: main }),
13574
13897
  !isSideCollapsed && /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -13635,7 +13958,7 @@ var tagInputFieldVariants = cva([
13635
13958
  "min-w-[6ch] flex-1 border-none bg-transparent px-1 py-0.5 text-sm text-foreground outline-none",
13636
13959
  "placeholder:text-muted-foreground"
13637
13960
  ]);
13638
- function cn87(...classes) {
13961
+ function cn89(...classes) {
13639
13962
  return classes.filter(Boolean).join(" ");
13640
13963
  }
13641
13964
  function mergeRefs2(externalRef, node) {
@@ -13686,7 +14009,7 @@ function MosaicTagInput({
13686
14009
  if (lastTag !== void 0) onRemoveTag(lastTag);
13687
14010
  }
13688
14011
  }
13689
- return /* @__PURE__ */ jsxs("div", { "data-slot": "tag-input", className: cn87(tagInputRootVariants(), className), children: [
14012
+ return /* @__PURE__ */ jsxs("div", { "data-slot": "tag-input", className: cn89(tagInputRootVariants(), className), children: [
13690
14013
  tags.map((tag) => /* @__PURE__ */ jsxs("span", { "data-slot": "tag-input-tag", className: tagInputTagVariants(), children: [
13691
14014
  tag,
13692
14015
  /* @__PURE__ */ jsx(
@@ -13723,7 +14046,7 @@ function MosaicTagInput({
13723
14046
  "ul",
13724
14047
  {
13725
14048
  "data-slot": "tag-input-suggestions",
13726
- className: cn87(
14049
+ className: cn89(
13727
14050
  "z-50 mt-1 w-full min-w-[8rem] overflow-hidden rounded-md border border-border",
13728
14051
  "bg-popover p-1 text-sm text-popover-foreground shadow-md"
13729
14052
  ),
@@ -13763,7 +14086,7 @@ var drawerPopupVariants = cva(
13763
14086
  }
13764
14087
  );
13765
14088
  var drawerBackdropVariants = cva(["fixed inset-0 z-50 bg-black/50"]);
13766
- function cn88(...classes) {
14089
+ function cn90(...classes) {
13767
14090
  return classes.filter(Boolean).join(" ");
13768
14091
  }
13769
14092
  function MosaicDrawer({
@@ -13784,7 +14107,7 @@ function MosaicDrawer({
13784
14107
  "data-slot": "drawer",
13785
14108
  "aria-labelledby": titleId,
13786
14109
  "aria-modal": "true",
13787
- className: cn88(drawerPopupVariants({ side }), className),
14110
+ className: cn90(drawerPopupVariants({ side }), className),
13788
14111
  children: [
13789
14112
  /* @__PURE__ */ jsxs(
13790
14113
  "div",
@@ -13797,7 +14120,7 @@ function MosaicDrawer({
13797
14120
  Dialog.Close,
13798
14121
  {
13799
14122
  "aria-label": closeAriaLabel,
13800
- className: cn88(
14123
+ className: cn90(
13801
14124
  "flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors",
13802
14125
  "hover:bg-muted hover:text-foreground",
13803
14126
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
@@ -13832,7 +14155,61 @@ function MosaicDrawer({
13832
14155
  ] }) });
13833
14156
  }
13834
14157
  MosaicDrawer.displayName = "MosaicDrawer";
14158
+ var templateCategoryChipVariants = cva(
14159
+ [
14160
+ "inline-flex items-center justify-center whitespace-nowrap",
14161
+ "rounded-full border px-3 py-1.5",
14162
+ "text-xs font-medium transition-colors",
14163
+ "focus-visible:outline-none focus-visible:ring-ring focus-visible:ring-[3px]"
14164
+ ],
14165
+ {
14166
+ variants: {
14167
+ selected: {
14168
+ true: "border-transparent bg-primary text-primary-foreground",
14169
+ false: "border-border bg-background text-foreground hover:bg-muted"
14170
+ }
14171
+ },
14172
+ defaultVariants: {
14173
+ selected: false
14174
+ }
14175
+ }
14176
+ );
14177
+ function cn91(...classes) {
14178
+ return classes.filter(Boolean).join(" ");
14179
+ }
14180
+ function MosaicTemplateCategoryChips({
14181
+ categories,
14182
+ selected,
14183
+ onSelect,
14184
+ className,
14185
+ ref
14186
+ }) {
14187
+ return /* @__PURE__ */ jsx(
14188
+ "div",
14189
+ {
14190
+ ref,
14191
+ "data-slot": "template-category-chips",
14192
+ className: cn91("flex flex-wrap items-center gap-2", className),
14193
+ children: categories.map((category) => {
14194
+ const isSelected = category.id === selected;
14195
+ return /* @__PURE__ */ jsx(
14196
+ "button",
14197
+ {
14198
+ type: "button",
14199
+ "data-slot": "template-category-chip",
14200
+ "aria-pressed": isSelected,
14201
+ onClick: () => onSelect(category.id),
14202
+ className: templateCategoryChipVariants({ selected: isSelected }),
14203
+ children: category.label
14204
+ },
14205
+ category.id
14206
+ );
14207
+ })
14208
+ }
14209
+ );
14210
+ }
14211
+ MosaicTemplateCategoryChips.displayName = "MosaicTemplateCategoryChips";
13835
14212
 
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 };
14213
+ 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, 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, MosaicTemplateCategoryChips, MosaicTemplateGallery, 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, pdfViewerFrameVariants, pdfViewerStatusVariants, pdfViewerToolbarButtonVariants, skeletonVariants, splitPaneCollapseButtonVariants, splitPaneHandleVariants, splitPaneRootVariants, tagInputFieldVariants, tagInputRemoveButtonVariants, tagInputRootVariants, tagInputTagVariants, templateAgentCardBadgeVariants, templateAgentCardTagVariants, templateAgentCardVariants, templateCategoryChipVariants, toastCardVariants, toastDismissButtonVariants, toastProviderPositionVariants, toastTitleVariants, toolToggleListRowVariants, toolToggleListSectionVariants, useBreakpoint, useDevice, useMosaicWorkspace as useEffectiveWorkspaceId, useIsDesktop, useIsMobile, useIsTablet, useMediaQuery, useMosaicWorkspace, useOrientation, useViewport, version };
13837
14214
  //# sourceMappingURL=index.js.map
13838
14215
  //# sourceMappingURL=index.js.map