@vantageos/mosaic-blocks 0.5.30-alpha → 0.5.32-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ import { AlertDialog } from '@base-ui/react/alert-dialog';
29
29
  import { Popover } from '@base-ui/react/popover';
30
30
 
31
31
  // src/version.ts
32
- var version = "0.5.30-alpha";
32
+ var version = "0.5.32-alpha";
33
33
  function Placeholder({ label = "mosaic-blocks placeholder" }) {
34
34
  return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
35
35
  }
@@ -2550,10 +2550,14 @@ function MosaicDeviceProvider({ children }) {
2550
2550
  return /* @__PURE__ */ jsx(DeviceContext.Provider, { value, children });
2551
2551
  }
2552
2552
  MosaicDeviceProvider.displayName = "MosaicDeviceProvider";
2553
+ var DEVICE_PROVIDER_ERRORS = {
2554
+ // allow-hardcoded-word: developer-facing invariant error, never rendered to an end user
2555
+ missingProvider: "useDevice must be used within a MosaicDeviceProvider"
2556
+ };
2553
2557
  function useDevice() {
2554
2558
  const ctx = React30.useContext(DeviceContext);
2555
2559
  if (!ctx) {
2556
- throw new Error("useDevice must be used within a MosaicDeviceProvider");
2560
+ throw new Error(DEVICE_PROVIDER_ERRORS.missingProvider);
2557
2561
  }
2558
2562
  return ctx;
2559
2563
  }
@@ -2851,7 +2855,7 @@ function MosaicAdaptiveNavigation({
2851
2855
  {
2852
2856
  className: cn40(
2853
2857
  "flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-bold",
2854
- item.isComplete ? "bg-green-500 text-white" : "bg-muted text-muted-foreground"
2858
+ item.isComplete ? "bg-success-500 text-white" : "bg-muted text-muted-foreground"
2855
2859
  ),
2856
2860
  "aria-hidden": "true",
2857
2861
  children: item.isComplete ? /* @__PURE__ */ jsx(CheckIcon2, {}) : idx + 1
@@ -2911,7 +2915,7 @@ function MosaicAdaptiveNavigation({
2911
2915
  {
2912
2916
  className: cn40(
2913
2917
  "flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",
2914
- item.isComplete ? "bg-green-500 text-white" : isActive ? "bg-primary-foreground/20 text-primary-foreground" : "bg-background text-muted-foreground"
2918
+ item.isComplete ? "bg-success-500 text-white" : isActive ? "bg-primary-foreground/20 text-primary-foreground" : "bg-background text-muted-foreground"
2915
2919
  ),
2916
2920
  "aria-hidden": "true",
2917
2921
  children: item.isComplete ? /* @__PURE__ */ jsx(CheckIcon2, {}) : idx + 1
@@ -3084,6 +3088,9 @@ function MosaicAppSidebar({
3084
3088
  recentItems = [],
3085
3089
  logoSlot,
3086
3090
  footerStatus,
3091
+ chevronPosition = "top",
3092
+ bottomNavItems = [],
3093
+ bottomNavAriaLabel,
3087
3094
  sidebarAriaLabel,
3088
3095
  mainNavAriaLabel,
3089
3096
  quickActionsHeading,
@@ -3099,6 +3106,7 @@ function MosaicAppSidebar({
3099
3106
  injectStyles2();
3100
3107
  }, []);
3101
3108
  const sidebarWidth = isMobile ? "100%" : isCollapsed ? "64px" : "280px";
3109
+ const footerStatusIconClass = "text-success-500";
3102
3110
  const toggleSubmenu = (id) => {
3103
3111
  setExpandedItems((prev) => {
3104
3112
  const next = new Set(prev);
@@ -3113,6 +3121,21 @@ function MosaicAppSidebar({
3113
3121
  const handleNavClick = (href) => {
3114
3122
  onNavigate?.(href);
3115
3123
  };
3124
+ const collapseToggleButton = !isMobile && /* @__PURE__ */ jsx(
3125
+ "button",
3126
+ {
3127
+ type: "button",
3128
+ onClick: onToggleCollapse,
3129
+ "aria-label": isCollapsed ? expandSidebarAriaLabel : collapseSidebarAriaLabel,
3130
+ className: cn41(
3131
+ "flex h-9 w-9 items-center justify-center rounded-lg transition-colors",
3132
+ "hover:bg-sidebar-accent text-sidebar-foreground",
3133
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
3134
+ isCollapsed && "mx-auto"
3135
+ ),
3136
+ children: isCollapsed ? /* @__PURE__ */ jsx(ChevronRightIcon, {}) : /* @__PURE__ */ jsx(ChevronLeftIcon, {})
3137
+ }
3138
+ );
3116
3139
  return /* @__PURE__ */ jsxs(
3117
3140
  "div",
3118
3141
  {
@@ -3132,21 +3155,7 @@ function MosaicAppSidebar({
3132
3155
  children: [
3133
3156
  /* @__PURE__ */ jsx("div", { className: "shrink-0 border-b border-sidebar-border p-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
3134
3157
  !isCollapsed && logoSlot && /* @__PURE__ */ jsx("div", { className: "mosaic-sidebar-label-in flex items-center gap-2 min-w-0", children: logoSlot }),
3135
- !isMobile && /* @__PURE__ */ jsx(
3136
- "button",
3137
- {
3138
- type: "button",
3139
- onClick: onToggleCollapse,
3140
- "aria-label": isCollapsed ? expandSidebarAriaLabel : collapseSidebarAriaLabel,
3141
- className: cn41(
3142
- "flex h-9 w-9 items-center justify-center rounded-lg transition-colors",
3143
- "hover:bg-sidebar-accent text-sidebar-foreground",
3144
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
3145
- isCollapsed && "mx-auto"
3146
- ),
3147
- children: isCollapsed ? /* @__PURE__ */ jsx(ChevronRightIcon, {}) : /* @__PURE__ */ jsx(ChevronLeftIcon, {})
3148
- }
3149
- )
3158
+ chevronPosition === "top" && collapseToggleButton
3150
3159
  ] }) }),
3151
3160
  /* @__PURE__ */ jsxs("div", { className: "flex-1 overflow-y-auto p-2", style: { scrollbarWidth: "thin" }, children: [
3152
3161
  navItems.length > 0 && /* @__PURE__ */ jsx("nav", { "aria-label": mainNavAriaLabel, children: /* @__PURE__ */ jsx("div", { className: "space-y-0.5", children: navItems.map((item) => {
@@ -3253,13 +3262,60 @@ function MosaicAppSidebar({
3253
3262
  ] })
3254
3263
  ] }),
3255
3264
  footerStatus && /* @__PURE__ */ jsx("div", { className: "shrink-0 border-t border-sidebar-border p-4", children: !isCollapsed ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 rounded-lg bg-sidebar-accent/30 p-3", children: [
3256
- footerStatus.icon && /* @__PURE__ */ jsx("span", { className: "text-green-500", children: footerStatus.icon }),
3265
+ footerStatus.icon && /* @__PURE__ */ jsx("span", { className: footerStatusIconClass, children: footerStatus.icon }),
3257
3266
  !footerStatus.icon && /* @__PURE__ */ jsx(TrendingUpIcon, {}),
3258
3267
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
3259
3268
  /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-sidebar-foreground", children: footerStatus.label }),
3260
3269
  footerStatus.sublabel && /* @__PURE__ */ jsx("p", { className: "text-xs text-sidebar-foreground/60", children: footerStatus.sublabel })
3261
3270
  ] })
3262
- ] }) : /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx("div", { className: "flex h-8 w-8 items-center justify-center rounded-lg bg-sidebar-accent/30 text-green-500", children: footerStatus.icon ?? /* @__PURE__ */ jsx(TrendingUpIcon, {}) }) }) })
3271
+ ] }) : /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx(
3272
+ "div",
3273
+ {
3274
+ className: `flex h-8 w-8 items-center justify-center rounded-lg bg-sidebar-accent/30 ${footerStatusIconClass}`,
3275
+ children: footerStatus.icon ?? /* @__PURE__ */ jsx(TrendingUpIcon, {})
3276
+ }
3277
+ ) }) }),
3278
+ bottomNavItems.length > 0 && /* @__PURE__ */ jsx(
3279
+ "div",
3280
+ {
3281
+ "data-slot": "app-sidebar-bottom-nav",
3282
+ className: cn41("shrink-0 border-t border-sidebar-border p-2", isCollapsed && "px-2"),
3283
+ children: /* @__PURE__ */ jsx("nav", { "aria-label": bottomNavAriaLabel, children: /* @__PURE__ */ jsx("div", { className: "space-y-0.5", children: bottomNavItems.map((item) => {
3284
+ const isActive = activePath === item.href;
3285
+ return /* @__PURE__ */ jsx(
3286
+ "button",
3287
+ {
3288
+ type: "button",
3289
+ onClick: () => handleNavClick(item.href),
3290
+ "aria-current": isActive ? "page" : void 0,
3291
+ className: cn41(
3292
+ "group flex w-full min-h-[44px] items-center rounded-lg p-3 transition-colors",
3293
+ "hover:bg-sidebar-accent",
3294
+ "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
3295
+ isActive && "bg-sidebar-accent",
3296
+ isCollapsed ? "justify-center" : "justify-start gap-3"
3297
+ ),
3298
+ children: isCollapsed ? /* @__PURE__ */ jsx("span", { className: "text-sidebar-foreground", title: item.label, children: item.icon ?? /* @__PURE__ */ jsx("span", { className: "text-xs font-bold", children: item.label.charAt(0) }) }) : /* @__PURE__ */ jsxs(Fragment, { children: [
3299
+ item.icon && /* @__PURE__ */ jsx("span", { className: "text-sidebar-foreground", children: item.icon }),
3300
+ /* @__PURE__ */ jsx("span", { className: "mosaic-sidebar-label-in text-sm font-medium text-sidebar-foreground", children: item.label })
3301
+ ] })
3302
+ },
3303
+ item.id
3304
+ );
3305
+ }) }) })
3306
+ }
3307
+ ),
3308
+ chevronPosition === "bottom" && collapseToggleButton && /* @__PURE__ */ jsx(
3309
+ "div",
3310
+ {
3311
+ "data-slot": "app-sidebar-toggle-zone",
3312
+ className: cn41(
3313
+ "shrink-0 border-t border-sidebar-border p-2 flex",
3314
+ isCollapsed ? "justify-center" : "justify-end"
3315
+ ),
3316
+ children: collapseToggleButton
3317
+ }
3318
+ )
3263
3319
  ]
3264
3320
  }
3265
3321
  );
@@ -3577,7 +3633,10 @@ function injectStyles5() {
3577
3633
  document.head.appendChild(s);
3578
3634
  }
3579
3635
  var STATUS_CLASSES = {
3580
- active: "bg-green-500/10 text-green-600 border border-green-500/20 dark:text-green-400",
3636
+ // success-700 already carries a dark-mode-adjusted value in the token set
3637
+ // (@vantageos/mosaic-tokens [data-theme="dark"] block), so no dark: prefix
3638
+ // is needed here — it replaces the old dark:text-green-400 override.
3639
+ active: "bg-success-500/10 text-success-700 border border-success-500/20",
3581
3640
  completed: "bg-blue-500/10 text-blue-600 border border-blue-500/20 dark:text-blue-400",
3582
3641
  archived: "bg-gray-500/10 text-gray-600 border border-gray-500/20 dark:text-gray-400"
3583
3642
  };
@@ -3802,7 +3861,16 @@ function SaveIcon() {
3802
3861
  }
3803
3862
  );
3804
3863
  }
3805
- function ModuleSlot({ label, sublabel, module, onSelect, onRemove }) {
3864
+ function ModuleSlot({
3865
+ label,
3866
+ sublabel,
3867
+ module,
3868
+ onSelect,
3869
+ onRemove,
3870
+ editAriaLabel,
3871
+ removeAriaLabel,
3872
+ selectAriaLabel
3873
+ }) {
3806
3874
  return /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border bg-card", children: [
3807
3875
  /* @__PURE__ */ jsxs("div", { className: "border-b border-border px-4 pt-4 pb-3", children: [
3808
3876
  /* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-foreground", children: label }),
@@ -3821,7 +3889,7 @@ function ModuleSlot({ label, sublabel, module, onSelect, onRemove }) {
3821
3889
  {
3822
3890
  type: "button",
3823
3891
  onClick: onSelect,
3824
- "aria-label": `Edit ${label}`,
3892
+ "aria-label": editAriaLabel,
3825
3893
  className: "flex h-7 w-7 items-center justify-center rounded-md text-muted-foreground hover:bg-muted hover:text-foreground transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
3826
3894
  children: /* @__PURE__ */ jsxs(
3827
3895
  "svg",
@@ -3848,7 +3916,7 @@ function ModuleSlot({ label, sublabel, module, onSelect, onRemove }) {
3848
3916
  {
3849
3917
  type: "button",
3850
3918
  onClick: onRemove,
3851
- "aria-label": `Remove ${label}`,
3919
+ "aria-label": removeAriaLabel,
3852
3920
  className: "flex h-7 w-7 items-center justify-center rounded-md text-destructive hover:bg-destructive/10 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
3853
3921
  children: /* @__PURE__ */ jsxs(
3854
3922
  "svg",
@@ -3876,12 +3944,11 @@ function ModuleSlot({ label, sublabel, module, onSelect, onRemove }) {
3876
3944
  {
3877
3945
  type: "button",
3878
3946
  onClick: onSelect,
3879
- "aria-label": `Select ${label}`,
3947
+ "aria-label": selectAriaLabel,
3880
3948
  className: "flex w-full min-h-[72px] items-center justify-center gap-2 rounded-lg border border-dashed border-border text-sm text-muted-foreground transition-colors hover:border-primary hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
3881
3949
  children: [
3882
3950
  /* @__PURE__ */ jsx(PlusIcon, {}),
3883
- "Select ",
3884
- label
3951
+ selectAriaLabel
3885
3952
  ]
3886
3953
  }
3887
3954
  ) })
@@ -3918,10 +3985,24 @@ function MosaicAgentComposerDesktop({
3918
3985
  previewConfigLabel,
3919
3986
  customInstructionsPreviewLabel,
3920
3987
  selectAllModulesLabel,
3921
- unnamedAgentLabel
3988
+ unnamedAgentLabel,
3989
+ roleSublabel,
3990
+ personaSublabel,
3991
+ frameworkSublabel,
3992
+ editModuleAriaLabel,
3993
+ removeModuleAriaLabel,
3994
+ selectModuleAriaLabel,
3995
+ changeModuleLabel,
3996
+ previewRequires = ["role", "persona", "framework", "model"]
3922
3997
  }) {
3923
3998
  const L = labels;
3924
- const allModulesSelected = !!selectedRole && !!selectedPersona && !!selectedFramework && !!selectedModel;
3999
+ const moduleBySlot = {
4000
+ role: selectedRole,
4001
+ persona: selectedPersona,
4002
+ framework: selectedFramework,
4003
+ model: selectedModel
4004
+ };
4005
+ const allModulesSelected = previewRequires.every((slot) => !!moduleBySlot[slot]);
3925
4006
  return /* @__PURE__ */ jsxs("div", { "data-slot": "agent-composer-desktop", className: "grid h-full grid-cols-2 gap-6", children: [
3926
4007
  /* @__PURE__ */ jsxs("div", { className: "space-y-5 overflow-y-auto pr-3", children: [
3927
4008
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
@@ -3962,30 +4043,39 @@ function MosaicAgentComposerDesktop({
3962
4043
  ModuleSlot,
3963
4044
  {
3964
4045
  label: L.role,
3965
- sublabel: "Professional expertise and domain knowledge",
4046
+ sublabel: roleSublabel,
3966
4047
  module: selectedRole,
3967
4048
  onSelect: onSelectRole,
3968
- onRemove: onRemoveRole
4049
+ onRemove: onRemoveRole,
4050
+ editAriaLabel: editModuleAriaLabel(L.role),
4051
+ removeAriaLabel: removeModuleAriaLabel(L.role),
4052
+ selectAriaLabel: selectModuleAriaLabel(L.role)
3969
4053
  }
3970
4054
  ),
3971
4055
  /* @__PURE__ */ jsx(
3972
4056
  ModuleSlot,
3973
4057
  {
3974
4058
  label: L.persona,
3975
- sublabel: "Communication style and personality traits",
4059
+ sublabel: personaSublabel,
3976
4060
  module: selectedPersona,
3977
4061
  onSelect: onSelectPersona,
3978
- onRemove: onRemovePersona
4062
+ onRemove: onRemovePersona,
4063
+ editAriaLabel: editModuleAriaLabel(L.persona),
4064
+ removeAriaLabel: removeModuleAriaLabel(L.persona),
4065
+ selectAriaLabel: selectModuleAriaLabel(L.persona)
3979
4066
  }
3980
4067
  ),
3981
4068
  /* @__PURE__ */ jsx(
3982
4069
  ModuleSlot,
3983
4070
  {
3984
4071
  label: L.framework,
3985
- sublabel: "Thinking approach and decision-making process",
4072
+ sublabel: frameworkSublabel,
3986
4073
  module: selectedFramework,
3987
4074
  onSelect: onSelectFramework,
3988
- onRemove: onRemoveFramework
4075
+ onRemove: onRemoveFramework,
4076
+ editAriaLabel: editModuleAriaLabel(L.framework),
4077
+ removeAriaLabel: removeModuleAriaLabel(L.framework),
4078
+ selectAriaLabel: selectModuleAriaLabel(L.framework)
3989
4079
  }
3990
4080
  ),
3991
4081
  /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border bg-card", children: [
@@ -4006,16 +4096,13 @@ function MosaicAgentComposerDesktop({
4006
4096
  selectedModel.pricingLabel
4007
4097
  ] })
4008
4098
  ] }) }),
4009
- /* @__PURE__ */ jsxs(
4099
+ /* @__PURE__ */ jsx(
4010
4100
  "button",
4011
4101
  {
4012
4102
  type: "button",
4013
4103
  onClick: onSelectModel,
4014
4104
  className: "flex w-full min-h-[44px] items-center justify-center rounded-lg border border-border text-sm text-muted-foreground transition-colors hover:border-primary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
4015
- children: [
4016
- "Change ",
4017
- L.model
4018
- ]
4105
+ children: changeModuleLabel(L.model)
4019
4106
  }
4020
4107
  )
4021
4108
  ] }) : /* @__PURE__ */ jsxs(
@@ -4023,12 +4110,11 @@ function MosaicAgentComposerDesktop({
4023
4110
  {
4024
4111
  type: "button",
4025
4112
  onClick: onSelectModel,
4026
- "aria-label": `Select ${L.model}`,
4113
+ "aria-label": selectModuleAriaLabel(L.model),
4027
4114
  className: "flex w-full min-h-[72px] items-center justify-center gap-2 rounded-lg border border-dashed border-border text-sm text-muted-foreground transition-colors hover:border-primary hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
4028
4115
  children: [
4029
4116
  /* @__PURE__ */ jsx(PlusIcon, {}),
4030
- "Select ",
4031
- L.model
4117
+ selectModuleAriaLabel(L.model)
4032
4118
  ]
4033
4119
  }
4034
4120
  ) })
@@ -4243,7 +4329,10 @@ function MobileModuleSlot({
4243
4329
  onSelect,
4244
4330
  onRemove,
4245
4331
  isLoading,
4246
- requiredLabel
4332
+ requiredLabel,
4333
+ editAriaLabel,
4334
+ removeAriaLabel,
4335
+ selectAriaLabel
4247
4336
  }) {
4248
4337
  return /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border bg-card", children: [
4249
4338
  /* @__PURE__ */ jsx("div", { className: "border-b border-border px-4 pt-3 pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
@@ -4267,7 +4356,7 @@ function MobileModuleSlot({
4267
4356
  type: "button",
4268
4357
  onClick: onSelect,
4269
4358
  disabled: isLoading,
4270
- "aria-label": `Edit ${label}`,
4359
+ "aria-label": editAriaLabel,
4271
4360
  className: "flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",
4272
4361
  children: /* @__PURE__ */ jsxs(
4273
4362
  "svg",
@@ -4295,7 +4384,7 @@ function MobileModuleSlot({
4295
4384
  type: "button",
4296
4385
  onClick: onRemove,
4297
4386
  disabled: isLoading,
4298
- "aria-label": `Remove ${label}`,
4387
+ "aria-label": removeAriaLabel,
4299
4388
  className: "flex h-8 w-8 items-center justify-center rounded-md text-destructive transition-colors hover:bg-destructive/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",
4300
4389
  children: /* @__PURE__ */ jsxs(
4301
4390
  "svg",
@@ -4324,12 +4413,11 @@ function MobileModuleSlot({
4324
4413
  type: "button",
4325
4414
  onClick: onSelect,
4326
4415
  disabled: isLoading,
4327
- "aria-label": `Select ${label}`,
4416
+ "aria-label": selectAriaLabel,
4328
4417
  className: "flex w-full min-h-[64px] items-center justify-center gap-2 rounded-lg border border-dashed border-border text-sm text-muted-foreground transition-colors hover:border-primary hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",
4329
4418
  children: [
4330
4419
  /* @__PURE__ */ jsx(PlusIcon2, {}),
4331
- "Select ",
4332
- label
4420
+ selectAriaLabel
4333
4421
  ]
4334
4422
  }
4335
4423
  ) })
@@ -4365,7 +4453,11 @@ function MosaicAgentComposerMobile({
4365
4453
  goBackAriaLabel,
4366
4454
  savingLabel,
4367
4455
  creatingLabel,
4368
- optionalInstructionsHelp
4456
+ optionalInstructionsHelp,
4457
+ editModuleAriaLabel,
4458
+ removeModuleAriaLabel,
4459
+ selectModuleAriaLabel,
4460
+ changeModuleLabel
4369
4461
  }) {
4370
4462
  const L = labels;
4371
4463
  const instructionsId = React30.useId();
@@ -4427,7 +4519,10 @@ function MosaicAgentComposerMobile({
4427
4519
  onSelect: onSelectRole,
4428
4520
  onRemove: onRemoveRole,
4429
4521
  isLoading,
4430
- requiredLabel
4522
+ requiredLabel,
4523
+ editAriaLabel: editModuleAriaLabel(L.role),
4524
+ removeAriaLabel: removeModuleAriaLabel(L.role),
4525
+ selectAriaLabel: selectModuleAriaLabel(L.role)
4431
4526
  }
4432
4527
  ),
4433
4528
  /* @__PURE__ */ jsx(
@@ -4439,7 +4534,10 @@ function MosaicAgentComposerMobile({
4439
4534
  onSelect: onSelectPersona,
4440
4535
  onRemove: onRemovePersona,
4441
4536
  isLoading,
4442
- requiredLabel
4537
+ requiredLabel,
4538
+ editAriaLabel: editModuleAriaLabel(L.persona),
4539
+ removeAriaLabel: removeModuleAriaLabel(L.persona),
4540
+ selectAriaLabel: selectModuleAriaLabel(L.persona)
4443
4541
  }
4444
4542
  ),
4445
4543
  /* @__PURE__ */ jsx(
@@ -4451,7 +4549,10 @@ function MosaicAgentComposerMobile({
4451
4549
  onSelect: onSelectFramework,
4452
4550
  onRemove: onRemoveFramework,
4453
4551
  isLoading,
4454
- requiredLabel
4552
+ requiredLabel,
4553
+ editAriaLabel: editModuleAriaLabel(L.framework),
4554
+ removeAriaLabel: removeModuleAriaLabel(L.framework),
4555
+ selectAriaLabel: selectModuleAriaLabel(L.framework)
4455
4556
  }
4456
4557
  ),
4457
4558
  /* @__PURE__ */ jsxs("div", { className: "rounded-xl border border-border bg-card", children: [
@@ -4475,17 +4576,14 @@ function MosaicAgentComposerMobile({
4475
4576
  selectedModel.pricingLabel
4476
4577
  ] })
4477
4578
  ] }) }),
4478
- /* @__PURE__ */ jsxs(
4579
+ /* @__PURE__ */ jsx(
4479
4580
  "button",
4480
4581
  {
4481
4582
  type: "button",
4482
4583
  onClick: onSelectModel,
4483
4584
  disabled: isLoading,
4484
4585
  className: "flex w-full min-h-[44px] items-center justify-center rounded-lg border border-border text-sm text-muted-foreground transition-colors hover:border-primary hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",
4485
- children: [
4486
- "Change ",
4487
- L.model
4488
- ]
4586
+ children: changeModuleLabel(L.model)
4489
4587
  }
4490
4588
  )
4491
4589
  ] }) : /* @__PURE__ */ jsxs(
@@ -4494,12 +4592,11 @@ function MosaicAgentComposerMobile({
4494
4592
  type: "button",
4495
4593
  onClick: onSelectModel,
4496
4594
  disabled: isLoading,
4497
- "aria-label": `Select ${L.model}`,
4595
+ "aria-label": selectModuleAriaLabel(L.model),
4498
4596
  className: "flex w-full min-h-[64px] items-center justify-center gap-2 rounded-lg border border-dashed border-border text-sm text-muted-foreground transition-colors hover:border-primary hover:text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-50",
4499
4597
  children: [
4500
4598
  /* @__PURE__ */ jsx(PlusIcon2, {}),
4501
- "Select ",
4502
- L.model
4599
+ selectModuleAriaLabel(L.model)
4503
4600
  ]
4504
4601
  }
4505
4602
  ) })
@@ -6175,6 +6272,7 @@ function MosaicQuickAgentSelector({
6175
6272
  availableAgents = [],
6176
6273
  onAddAgent,
6177
6274
  onRemoveAgent,
6275
+ removeAgentAriaLabel,
6178
6276
  onOpenBuilder,
6179
6277
  maxAgents = 4,
6180
6278
  addLabel,
@@ -6235,7 +6333,7 @@ function MosaicQuickAgentSelector({
6235
6333
  "focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
6236
6334
  isMobile ? "opacity-100" : "opacity-0 transition-opacity group-hover:opacity-100"
6237
6335
  ),
6238
- "aria-label": `Remove ${agent.name}`,
6336
+ "aria-label": removeAgentAriaLabel(agent.name),
6239
6337
  children: /* @__PURE__ */ jsx(XIcon, {})
6240
6338
  }
6241
6339
  )
@@ -8903,7 +9001,7 @@ function TrendingIcon() {
8903
9001
  strokeLinecap: "round",
8904
9002
  strokeLinejoin: "round",
8905
9003
  "aria-hidden": "true",
8906
- className: "text-green-500",
9004
+ className: "text-success-500",
8907
9005
  children: [
8908
9006
  /* @__PURE__ */ jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
8909
9007
  /* @__PURE__ */ jsx("polyline", { points: "17 6 23 6 23 12" })
@@ -9064,7 +9162,8 @@ function MosaicTemplatePreview({
9064
9162
  onSelect,
9065
9163
  onClose,
9066
9164
  selectLabel,
9067
- cancelLabel
9165
+ cancelLabel,
9166
+ formatAgentsHeading
9068
9167
  }) {
9069
9168
  return /* @__PURE__ */ jsxs("div", { "data-slot": "template-preview", className: "flex flex-col gap-4 p-4", children: [
9070
9169
  /* @__PURE__ */ jsxs("div", { children: [
@@ -9076,11 +9175,7 @@ function MosaicTemplatePreview({
9076
9175
  template.type && /* @__PURE__ */ jsx("span", { className: "rounded-md border border-border px-2 py-1 text-xs text-muted-foreground", children: template.type })
9077
9176
  ] }),
9078
9177
  template.agents && template.agents.length > 0 && /* @__PURE__ */ jsxs("div", { children: [
9079
- /* @__PURE__ */ jsxs("p", { className: "mb-2 text-sm font-medium", children: [
9080
- "Agents (",
9081
- template.agents.length,
9082
- ")"
9083
- ] }),
9178
+ formatAgentsHeading && /* @__PURE__ */ jsx("p", { className: "mb-2 text-sm font-medium", children: formatAgentsHeading(template.agents.length) }),
9084
9179
  /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: template.agents.map((agent) => /* @__PURE__ */ jsxs(
9085
9180
  "div",
9086
9181
  {
@@ -9522,7 +9617,8 @@ function MosaicModuleForm(props) {
9522
9617
  namePlaceholder,
9523
9618
  descriptionPlaceholder,
9524
9619
  cancelLabel,
9525
- tagListAddPlaceholder
9620
+ tagListAddPlaceholder,
9621
+ removeTagAriaLabel
9526
9622
  } = props;
9527
9623
  const [formData, setFormData] = React30.useState({
9528
9624
  name: item?.name ?? "",
@@ -9694,7 +9790,7 @@ function MosaicModuleForm(props) {
9694
9790
  type: "button",
9695
9791
  onClick: () => removeTag(field.id, tag),
9696
9792
  className: "hover:text-destructive",
9697
- "aria-label": `Remove ${tag}`,
9793
+ "aria-label": removeTagAriaLabel?.(tag),
9698
9794
  children: /* @__PURE__ */ jsx(XIcon2, {})
9699
9795
  }
9700
9796
  )
@@ -9837,7 +9933,8 @@ function LibraryContent({
9837
9933
  deleteItemLabel,
9838
9934
  closeEditorAriaLabel,
9839
9935
  editModalTitle,
9840
- tagListAddPlaceholder
9936
+ tagListAddPlaceholder,
9937
+ removeTagAriaLabel
9841
9938
  }) {
9842
9939
  const [query, setQuery] = React30.useState("");
9843
9940
  const [activeTab, setActiveTab] = React30.useState(tabs?.[0]?.id ?? "all");
@@ -9951,6 +10048,7 @@ function LibraryContent({
9951
10048
  descriptionPlaceholder,
9952
10049
  cancelLabel,
9953
10050
  tagListAddPlaceholder,
10051
+ removeTagAriaLabel,
9954
10052
  ...editorMode === "edit" ? { mode: "edit", saveChangesLabel } : { mode: "create", createItemLabel }
9955
10053
  }
9956
10054
  )
@@ -9965,36 +10063,29 @@ MosaicModuleLibrary.displayName = "MosaicModuleLibrary";
9965
10063
  function cn69(...classes) {
9966
10064
  return classes.filter(Boolean).join(" ");
9967
10065
  }
9968
- var roleConfig = {
9969
- owner: {
9970
- label: "Owner",
9971
- className: "bg-primary text-primary-foreground",
9972
- description: "Full access including billing and organization deletion"
9973
- },
9974
- admin: {
9975
- label: "Admin",
9976
- className: "bg-secondary text-secondary-foreground",
9977
- description: "Full access to organization settings and member management"
9978
- },
9979
- member: {
9980
- label: "Member",
9981
- className: "bg-muted text-muted-foreground",
9982
- description: "Standard access to workspaces and content"
9983
- }
10066
+ var roleClassName = {
10067
+ owner: "bg-primary text-primary-foreground",
10068
+ admin: "bg-secondary text-secondary-foreground",
10069
+ member: "bg-muted text-muted-foreground"
9984
10070
  };
9985
- function MosaicOrgRoleBadge({ role, className }) {
9986
- const config = roleConfig[role] ?? roleConfig.member;
10071
+ function MosaicOrgRoleBadge({
10072
+ role,
10073
+ label,
10074
+ description,
10075
+ className
10076
+ }) {
10077
+ const config = roleClassName[role] ?? roleClassName.member;
9987
10078
  return /* @__PURE__ */ jsx(
9988
10079
  "span",
9989
10080
  {
9990
10081
  "data-slot": "org-role-badge",
9991
- title: config.description,
10082
+ title: description,
9992
10083
  className: cn69(
9993
10084
  "inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium",
9994
- config.className,
10085
+ config,
9995
10086
  className
9996
10087
  ),
9997
- children: config.label
10088
+ children: label
9998
10089
  }
9999
10090
  );
10000
10091
  }
@@ -10064,7 +10155,10 @@ function MosaicCreateOrgDialog({
10064
10155
  descriptionPlaceholder,
10065
10156
  cancelLabel,
10066
10157
  creatingLabel,
10067
- createLabel
10158
+ createLabel,
10159
+ nameRequiredMessage,
10160
+ slugRequiredMessage,
10161
+ slugFormatMessage
10068
10162
  }) {
10069
10163
  const [name, setName] = React30.useState("");
10070
10164
  const [slug, setSlug] = React30.useState("");
@@ -10072,10 +10166,9 @@ function MosaicCreateOrgDialog({
10072
10166
  const [errors, setErrors] = React30.useState({});
10073
10167
  const validate = () => {
10074
10168
  const errs = {};
10075
- if (!name.trim()) errs.name = "Name is required";
10076
- if (!slug.trim()) errs.slug = "Slug is required";
10077
- else if (!/^[a-z0-9-]+$/.test(slug))
10078
- errs.slug = "Slug: lowercase letters, numbers, hyphens only";
10169
+ if (!name.trim()) errs.name = true;
10170
+ if (!slug.trim()) errs.slug = "required";
10171
+ else if (!/^[a-z0-9-]+$/.test(slug)) errs.slug = "format";
10079
10172
  setErrors(errs);
10080
10173
  return Object.keys(errs).length === 0;
10081
10174
  };
@@ -10134,7 +10227,7 @@ function MosaicCreateOrgDialog({
10134
10227
  )
10135
10228
  }
10136
10229
  ),
10137
- errors.name && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: errors.name })
10230
+ errors.name && nameRequiredMessage && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: nameRequiredMessage })
10138
10231
  ] }),
10139
10232
  /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
10140
10233
  /* @__PURE__ */ jsx("label", { htmlFor: "org-slug", className: "text-sm font-medium", children: slugFieldLabel }),
@@ -10154,7 +10247,8 @@ function MosaicCreateOrgDialog({
10154
10247
  )
10155
10248
  }
10156
10249
  ),
10157
- errors.slug && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: errors.slug })
10250
+ errors.slug === "required" && slugRequiredMessage && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: slugRequiredMessage }),
10251
+ errors.slug === "format" && slugFormatMessage && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: slugFormatMessage })
10158
10252
  ] }),
10159
10253
  /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
10160
10254
  /* @__PURE__ */ jsx("label", { htmlFor: "org-desc", className: "text-sm font-medium", children: descriptionFieldLabel }),
@@ -10197,16 +10291,12 @@ function MosaicCreateOrgDialog({
10197
10291
  );
10198
10292
  }
10199
10293
  MosaicCreateOrgDialog.displayName = "MosaicCreateOrgDialog";
10200
- var DEFAULT_ROLES = [
10201
- { value: "admin", label: "Admin" },
10202
- { value: "member", label: "Member" }
10203
- ];
10204
10294
  function MosaicInviteMemberDialog({
10205
10295
  open,
10206
10296
  onOpenChange,
10207
10297
  onInvite,
10208
10298
  isLoading = false,
10209
- roles = DEFAULT_ROLES,
10299
+ roles,
10210
10300
  title,
10211
10301
  closeAriaLabel,
10212
10302
  emailFieldLabel,
@@ -10214,15 +10304,17 @@ function MosaicInviteMemberDialog({
10214
10304
  roleFieldLabel,
10215
10305
  cancelLabel,
10216
10306
  sendingLabel,
10217
- sendInvitationLabel
10307
+ sendInvitationLabel,
10308
+ emailRequiredMessage,
10309
+ emailInvalidMessage
10218
10310
  }) {
10219
10311
  const [email, setEmail] = React30.useState("");
10220
10312
  const [role, setRole] = React30.useState("member");
10221
10313
  const [errors, setErrors] = React30.useState({});
10222
10314
  const validate = () => {
10223
10315
  const errs = {};
10224
- if (!email.trim()) errs.email = "Email is required";
10225
- else if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) errs.email = "Invalid email";
10316
+ if (!email.trim()) errs.email = "required";
10317
+ else if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) errs.email = "invalid";
10226
10318
  setErrors(errs);
10227
10319
  return Object.keys(errs).length === 0;
10228
10320
  };
@@ -10267,7 +10359,8 @@ function MosaicInviteMemberDialog({
10267
10359
  )
10268
10360
  }
10269
10361
  ),
10270
- errors.email && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: errors.email })
10362
+ errors.email === "required" && emailRequiredMessage && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: emailRequiredMessage }),
10363
+ errors.email === "invalid" && emailInvalidMessage && /* @__PURE__ */ jsx("p", { className: "text-xs text-destructive", children: emailInvalidMessage })
10271
10364
  ] }),
10272
10365
  /* @__PURE__ */ jsxs("div", { className: "space-y-1.5", children: [
10273
10366
  /* @__PURE__ */ jsx("label", { htmlFor: "invite-role", className: "text-sm font-medium", children: roleFieldLabel }),
@@ -10317,7 +10410,11 @@ function MemberRow({
10317
10410
  roles,
10318
10411
  youLabel,
10319
10412
  memberActionsAriaLabel,
10320
- removeMemberLabel
10413
+ removeMemberLabel,
10414
+ roleDescriptions,
10415
+ roleLabels,
10416
+ joinedLabel,
10417
+ makeRoleLabel
10321
10418
  }) {
10322
10419
  const [menuOpen, setMenuOpen] = React30.useState(false);
10323
10420
  const menuRef = React30.useRef(null);
@@ -10347,12 +10444,16 @@ function MemberRow({
10347
10444
  isSelf && /* @__PURE__ */ jsx("span", { className: "shrink-0 rounded-full bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground", children: youLabel })
10348
10445
  ] }),
10349
10446
  /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground truncate", children: member.email }),
10350
- joinedDate && /* @__PURE__ */ jsxs("p", { className: "text-xs text-muted-foreground", children: [
10351
- "Joined ",
10352
- joinedDate
10353
- ] })
10447
+ joinedDate && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: joinedLabel(joinedDate) })
10354
10448
  ] }),
10355
- /* @__PURE__ */ jsx(MosaicOrgRoleBadge, { role: member.role }),
10449
+ /* @__PURE__ */ jsx(
10450
+ MosaicOrgRoleBadge,
10451
+ {
10452
+ role: member.role,
10453
+ label: roleLabels[member.role],
10454
+ description: roleDescriptions[member.role]
10455
+ }
10456
+ ),
10356
10457
  !isSelf && (onChangeRole || onRemoveMember) && /* @__PURE__ */ jsxs("div", { ref: menuRef, className: "relative shrink-0", children: [
10357
10458
  /* @__PURE__ */ jsx(
10358
10459
  "button",
@@ -10390,7 +10491,7 @@ function MemberRow({
10390
10491
  className: "absolute right-0 top-full z-50 mt-1 min-w-[160px] rounded-md border border-border bg-popover py-1 shadow-md",
10391
10492
  children: [
10392
10493
  onChangeRole && roles?.map(
10393
- (r) => r.value !== member.role && /* @__PURE__ */ jsxs(
10494
+ (r) => r.value !== member.role && /* @__PURE__ */ jsx(
10394
10495
  "button",
10395
10496
  {
10396
10497
  type: "button",
@@ -10400,10 +10501,7 @@ function MemberRow({
10400
10501
  setMenuOpen(false);
10401
10502
  },
10402
10503
  className: "flex w-full items-center gap-2 px-3 py-2 text-sm text-foreground hover:bg-accent hover:text-accent-foreground",
10403
- children: [
10404
- "Make ",
10405
- r.label
10406
- ]
10504
+ children: makeRoleLabel(r.label)
10407
10505
  },
10408
10506
  r.value
10409
10507
  )
@@ -10433,7 +10531,7 @@ function MosaicMemberList({
10433
10531
  onChangeRole,
10434
10532
  onRemoveMember,
10435
10533
  onInvite,
10436
- roles = DEFAULT_ROLES,
10534
+ roles,
10437
10535
  isLoading,
10438
10536
  searchPlaceholder,
10439
10537
  youLabel,
@@ -10441,6 +10539,10 @@ function MosaicMemberList({
10441
10539
  removeMemberLabel,
10442
10540
  emptyMessage,
10443
10541
  inviteLabel,
10542
+ roleDescriptions,
10543
+ roleLabels,
10544
+ joinedLabel,
10545
+ makeRoleLabel,
10444
10546
  className
10445
10547
  }) {
10446
10548
  const [query, setQuery] = React30.useState("");
@@ -10513,7 +10615,7 @@ function MosaicMemberList({
10513
10615
  }
10514
10616
  )
10515
10617
  ] }),
10516
- isLoading ? /* @__PURE__ */ jsx("div", { className: "space-y-3", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsx("div", { className: "h-14 animate-pulse rounded-lg bg-muted" }, i)) }) : /* @__PURE__ */ jsxs("div", { className: "divide-y divide-border", children: [
10618
+ isLoading ? /* @__PURE__ */ jsx("div", { className: "space-y-3", children: ["skeleton-1", "skeleton-2", "skeleton-3"].map((skeletonId) => /* @__PURE__ */ jsx("div", { className: "h-14 animate-pulse rounded-lg bg-muted" }, skeletonId)) }) : /* @__PURE__ */ jsxs("div", { className: "divide-y divide-border", children: [
10517
10619
  filtered.map((member) => /* @__PURE__ */ jsx(
10518
10620
  MemberRow,
10519
10621
  {
@@ -10524,7 +10626,11 @@ function MosaicMemberList({
10524
10626
  roles,
10525
10627
  youLabel,
10526
10628
  memberActionsAriaLabel,
10527
- removeMemberLabel
10629
+ removeMemberLabel,
10630
+ roleDescriptions,
10631
+ roleLabels,
10632
+ joinedLabel,
10633
+ makeRoleLabel
10528
10634
  },
10529
10635
  member.id
10530
10636
  )),
@@ -10723,6 +10829,7 @@ function MosaicDashboardHeader({
10723
10829
  subtitle,
10724
10830
  notificationCount = 0,
10725
10831
  onNotificationsClick,
10832
+ notificationsAriaLabel,
10726
10833
  onSearchChange,
10727
10834
  actions,
10728
10835
  logoSlot,
@@ -10791,7 +10898,7 @@ function MosaicDashboardHeader({
10791
10898
  type: "button",
10792
10899
  onClick: onNotificationsClick,
10793
10900
  className: "relative inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-accent-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
10794
- "aria-label": `Notifications${notificationCount > 0 ? ` (${notificationCount})` : ""}`,
10901
+ "aria-label": notificationsAriaLabel?.(notificationCount),
10795
10902
  children: [
10796
10903
  /* @__PURE__ */ jsx(BellIcon, {}),
10797
10904
  notificationCount > 0 && /* @__PURE__ */ jsx("span", { className: "absolute -right-1 -top-1 flex h-4 w-4 items-center justify-center rounded-full bg-primary text-[10px] font-bold text-primary-foreground", children: notificationCount > 9 ? "9+" : notificationCount })
@@ -12448,9 +12555,11 @@ function MosaicChatThread({
12448
12555
  children,
12449
12556
  scrollToBottomLabel,
12450
12557
  className,
12451
- ref
12558
+ ref,
12559
+ onVisibleRangeChange
12452
12560
  }) {
12453
12561
  const containerRef = useRef(null);
12562
+ const contentRef = useRef(null);
12454
12563
  const isAtBottomRef = useRef(true);
12455
12564
  const [isAtBottom, setIsAtBottom] = useState(true);
12456
12565
  function setRefs(node) {
@@ -12506,6 +12615,37 @@ function MosaicChatThread({
12506
12615
  document.removeEventListener("selectionchange", handleSelectionChange);
12507
12616
  };
12508
12617
  }, []);
12618
+ useEffect(() => {
12619
+ if (!onVisibleRangeChange) {
12620
+ return;
12621
+ }
12622
+ const content = contentRef.current;
12623
+ if (!content) {
12624
+ return;
12625
+ }
12626
+ const visibility = /* @__PURE__ */ new Map();
12627
+ const observer = new IntersectionObserver((entries) => {
12628
+ for (const entry of entries) {
12629
+ visibility.set(entry.target, entry.isIntersecting);
12630
+ }
12631
+ const visibleMessageIds = [];
12632
+ for (const child of Array.from(content.children)) {
12633
+ if (child.id && visibility.get(child)) {
12634
+ visibleMessageIds.push(child.id);
12635
+ }
12636
+ }
12637
+ onVisibleRangeChange({
12638
+ visibleMessageIds,
12639
+ currentAnchorId: visibleMessageIds[0] ?? null
12640
+ });
12641
+ });
12642
+ for (const child of Array.from(content.children)) {
12643
+ observer.observe(child);
12644
+ }
12645
+ return () => {
12646
+ observer.disconnect();
12647
+ };
12648
+ }, [children, onVisibleRangeChange]);
12509
12649
  useLayoutEffect(() => {
12510
12650
  const element = containerRef.current;
12511
12651
  if (element && isAtBottomRef.current) {
@@ -12522,7 +12662,7 @@ function MosaicChatThread({
12522
12662
  onKeyDown: handleKeyDown,
12523
12663
  className: cn80(chatThreadRootVariants(), className),
12524
12664
  children: [
12525
- /* @__PURE__ */ jsx("div", { "data-slot": "chat-thread-content", className: chatThreadContentVariants(), children }),
12665
+ /* @__PURE__ */ jsx("div", { ref: contentRef, "data-slot": "chat-thread-content", className: chatThreadContentVariants(), children }),
12526
12666
  !isAtBottom && /* @__PURE__ */ jsx(
12527
12667
  "button",
12528
12668
  {