@alquimia-ai/ui 2.0.0 → 2.2.1

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.
Files changed (49) hide show
  1. package/dist/{alert-dialog-CP71C4vl.d.mts → alert-dialog-HrXEPlTh.d.mts} +1 -1
  2. package/dist/{alert-dialog-CP71C4vl.d.ts → alert-dialog-HrXEPlTh.d.ts} +1 -1
  3. package/dist/components/atoms/index.d.mts +48 -3
  4. package/dist/components/atoms/index.d.ts +48 -3
  5. package/dist/components/atoms/index.js +239 -0
  6. package/dist/components/atoms/index.js.map +1 -1
  7. package/dist/components/atoms/index.mjs +207 -1
  8. package/dist/components/atoms/index.mjs.map +1 -1
  9. package/dist/components/genui/index.d.mts +79 -0
  10. package/dist/components/genui/index.d.ts +79 -0
  11. package/dist/components/genui/index.js +4693 -0
  12. package/dist/components/genui/index.js.map +1 -0
  13. package/dist/components/genui/index.mjs +4622 -0
  14. package/dist/components/genui/index.mjs.map +1 -0
  15. package/dist/components/hooks/index.d.mts +1 -1
  16. package/dist/components/hooks/index.d.ts +1 -1
  17. package/dist/components/molecules/documents/index.js +283 -58
  18. package/dist/components/molecules/documents/index.js.map +1 -1
  19. package/dist/components/molecules/documents/index.mjs +281 -58
  20. package/dist/components/molecules/documents/index.mjs.map +1 -1
  21. package/dist/components/molecules/index.d.mts +2 -2
  22. package/dist/components/molecules/index.d.ts +2 -2
  23. package/dist/components/molecules/index.js +335 -156
  24. package/dist/components/molecules/index.js.map +1 -1
  25. package/dist/components/molecules/index.mjs +331 -152
  26. package/dist/components/molecules/index.mjs.map +1 -1
  27. package/dist/components/molecules/viewers/index.js +182 -3
  28. package/dist/components/molecules/viewers/index.js.map +1 -1
  29. package/dist/components/molecules/viewers/index.mjs +182 -3
  30. package/dist/components/molecules/viewers/index.mjs.map +1 -1
  31. package/dist/components/organisms/index.d.mts +15 -2
  32. package/dist/components/organisms/index.d.ts +15 -2
  33. package/dist/components/organisms/index.js +434 -247
  34. package/dist/components/organisms/index.js.map +1 -1
  35. package/dist/components/organisms/index.mjs +431 -244
  36. package/dist/components/organisms/index.mjs.map +1 -1
  37. package/dist/components/templates/index.js +210 -31
  38. package/dist/components/templates/index.js.map +1 -1
  39. package/dist/components/templates/index.mjs +210 -31
  40. package/dist/components/templates/index.mjs.map +1 -1
  41. package/dist/index.d.mts +7 -3
  42. package/dist/index.d.ts +7 -3
  43. package/dist/index.js +554 -307
  44. package/dist/index.js.map +1 -1
  45. package/dist/index.mjs +524 -310
  46. package/dist/index.mjs.map +1 -1
  47. package/dist/{toast-2xT7L1tJ.d.mts → toast-DEc6eGUE.d.mts} +1 -1
  48. package/dist/{toast-2xT7L1tJ.d.ts → toast-DEc6eGUE.d.ts} +1 -1
  49. package/package.json +22 -3
@@ -680,7 +680,7 @@ function SpeechToText(_param) {
680
680
  }));
681
681
  }
682
682
  // src/components/organisms/assistant.tsx
683
- import * as React34 from "react";
683
+ import * as React37 from "react";
684
684
  import { useCallback as useCallback3, useEffect as useEffect11, useRef as useRef2, useState as useState12 } from "react";
685
685
  // src/components/atoms/ui/button.tsx
686
686
  import * as React from "react";
@@ -2183,32 +2183,211 @@ var ThinkIndicator = React25.forwardRef(function(_param, ref) {
2183
2183
  }));
2184
2184
  });
2185
2185
  ThinkIndicator.displayName = "ThinkIndicator";
2186
+ // src/components/atoms/ui/accordion.tsx
2187
+ import * as React26 from "react";
2188
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
2189
+ import { ChevronDown as ChevronDown2 } from "lucide-react";
2190
+ import { jsx as jsx33, jsxs as jsxs12 } from "react/jsx-runtime";
2191
+ var AccordionItem = React26.forwardRef(function(_param, ref) {
2192
+ var className = _param.className, props = _object_without_properties(_param, [
2193
+ "className"
2194
+ ]);
2195
+ return /* @__PURE__ */ jsx33(AccordionPrimitive.Item, _object_spread({
2196
+ ref: ref,
2197
+ className: cn("border-b", className)
2198
+ }, props));
2199
+ });
2200
+ AccordionItem.displayName = "AccordionItem";
2201
+ var AccordionTrigger = React26.forwardRef(function(_param, ref) {
2202
+ var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
2203
+ "className",
2204
+ "children"
2205
+ ]);
2206
+ return /* @__PURE__ */ jsx33(AccordionPrimitive.Header, {
2207
+ className: "flex",
2208
+ children: /* @__PURE__ */ jsxs12(AccordionPrimitive.Trigger, _object_spread_props(_object_spread({
2209
+ ref: ref,
2210
+ className: cn("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", className)
2211
+ }, props), {
2212
+ children: [
2213
+ children,
2214
+ /* @__PURE__ */ jsx33(ChevronDown2, {
2215
+ className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"
2216
+ })
2217
+ ]
2218
+ }))
2219
+ });
2220
+ });
2221
+ AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
2222
+ var AccordionContent = React26.forwardRef(function(_param, ref) {
2223
+ var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
2224
+ "className",
2225
+ "children"
2226
+ ]);
2227
+ return /* @__PURE__ */ jsx33(AccordionPrimitive.Content, _object_spread_props(_object_spread({
2228
+ ref: ref,
2229
+ className: "overflow-hidden text-sm text-muted-foreground data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"
2230
+ }, props), {
2231
+ children: /* @__PURE__ */ jsx33("div", {
2232
+ className: cn("pb-4 pt-0", className),
2233
+ children: children
2234
+ })
2235
+ }));
2236
+ });
2237
+ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
2238
+ // src/components/atoms/ui/radio-group.tsx
2239
+ import * as React27 from "react";
2240
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
2241
+ import { Circle } from "lucide-react";
2242
+ import { jsx as jsx34 } from "react/jsx-runtime";
2243
+ var RadioGroup = React27.forwardRef(function(_param, ref) {
2244
+ var className = _param.className, props = _object_without_properties(_param, [
2245
+ "className"
2246
+ ]);
2247
+ return /* @__PURE__ */ jsx34(RadioGroupPrimitive.Root, _object_spread({
2248
+ ref: ref,
2249
+ className: cn("grid gap-2", className)
2250
+ }, props));
2251
+ });
2252
+ RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
2253
+ var RadioGroupItem = React27.forwardRef(function(_param, ref) {
2254
+ var className = _param.className, props = _object_without_properties(_param, [
2255
+ "className"
2256
+ ]);
2257
+ return /* @__PURE__ */ jsx34(RadioGroupPrimitive.Item, _object_spread_props(_object_spread({
2258
+ ref: ref,
2259
+ className: cn("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className)
2260
+ }, props), {
2261
+ children: /* @__PURE__ */ jsx34(RadioGroupPrimitive.Indicator, {
2262
+ className: "flex items-center justify-center",
2263
+ children: /* @__PURE__ */ jsx34(Circle, {
2264
+ className: "h-2.5 w-2.5 fill-current text-current"
2265
+ })
2266
+ })
2267
+ }));
2268
+ });
2269
+ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
2270
+ // src/components/atoms/ui/progress.tsx
2271
+ import * as React28 from "react";
2272
+ import * as ProgressPrimitive from "@radix-ui/react-progress";
2273
+ import { jsx as jsx35 } from "react/jsx-runtime";
2274
+ var Progress = React28.forwardRef(function(_param, ref) {
2275
+ var className = _param.className, value = _param.value, props = _object_without_properties(_param, [
2276
+ "className",
2277
+ "value"
2278
+ ]);
2279
+ return /* @__PURE__ */ jsx35(ProgressPrimitive.Root, _object_spread_props(_object_spread({
2280
+ ref: ref,
2281
+ className: cn("relative h-2 w-full overflow-hidden rounded-full bg-muted", className)
2282
+ }, props), {
2283
+ children: /* @__PURE__ */ jsx35(ProgressPrimitive.Indicator, {
2284
+ className: "h-full w-full flex-1 bg-primary transition-all",
2285
+ style: {
2286
+ transform: "translateX(-".concat(100 - (value || 0), "%)")
2287
+ }
2288
+ })
2289
+ }));
2290
+ });
2291
+ Progress.displayName = ProgressPrimitive.Root.displayName;
2292
+ // src/components/atoms/ui/calendar.tsx
2293
+ import { ChevronLeft, ChevronRight as ChevronRight2 } from "lucide-react";
2294
+ import { DayPicker } from "react-day-picker";
2295
+ import { jsx as jsx36 } from "react/jsx-runtime";
2296
+ function Calendar(_param) {
2297
+ var className = _param.className, classNames = _param.classNames, _param_showOutsideDays = _param.showOutsideDays, showOutsideDays = _param_showOutsideDays === void 0 ? true : _param_showOutsideDays, props = _object_without_properties(_param, [
2298
+ "className",
2299
+ "classNames",
2300
+ "showOutsideDays"
2301
+ ]);
2302
+ return /* @__PURE__ */ jsx36(DayPicker, _object_spread({
2303
+ showOutsideDays: showOutsideDays,
2304
+ className: cn("p-3", className),
2305
+ classNames: _object_spread({
2306
+ months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
2307
+ month: "space-y-4",
2308
+ caption: "flex justify-center pt-1 relative items-center",
2309
+ caption_label: "text-sm font-medium",
2310
+ nav: "space-x-1 flex items-center",
2311
+ nav_button: cn(buttonVariants({
2312
+ variant: "outline"
2313
+ }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),
2314
+ nav_button_previous: "absolute left-1",
2315
+ nav_button_next: "absolute right-1",
2316
+ table: "w-full border-collapse space-y-1",
2317
+ head_row: "flex",
2318
+ head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
2319
+ row: "flex w-full mt-2",
2320
+ cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
2321
+ day: cn(buttonVariants({
2322
+ variant: "ghost"
2323
+ }), "h-9 w-9 p-0 font-normal aria-selected:opacity-100"),
2324
+ day_range_end: "day-range-end",
2325
+ day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
2326
+ day_today: "bg-accent text-accent-foreground",
2327
+ day_outside: "day-outside text-muted-foreground opacity-50",
2328
+ day_disabled: "text-muted-foreground opacity-50",
2329
+ day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
2330
+ day_hidden: "invisible"
2331
+ }, classNames),
2332
+ components: {
2333
+ IconLeft: function() {
2334
+ return /* @__PURE__ */ jsx36(ChevronLeft, {
2335
+ className: "h-4 w-4"
2336
+ });
2337
+ },
2338
+ IconRight: function() {
2339
+ return /* @__PURE__ */ jsx36(ChevronRight2, {
2340
+ className: "h-4 w-4"
2341
+ });
2342
+ }
2343
+ }
2344
+ }, props));
2345
+ }
2346
+ Calendar.displayName = "Calendar";
2347
+ // src/components/atoms/ui/chart.tsx
2348
+ import { ResponsiveContainer, CartesianGrid, XAxis, YAxis, Tooltip, Legend } from "recharts";
2349
+ import { Fragment, jsx as jsx37, jsxs as jsxs13 } from "react/jsx-runtime";
2350
+ function Chart(param) {
2351
+ var className = param.className, _param_height = param.height, height = _param_height === void 0 ? 300 : _param_height, children = param.children;
2352
+ return /* @__PURE__ */ jsx37("div", {
2353
+ className: cn("w-full", className),
2354
+ style: {
2355
+ height: height
2356
+ },
2357
+ children: /* @__PURE__ */ jsx37(ResponsiveContainer, {
2358
+ width: "100%",
2359
+ height: "100%",
2360
+ children: children
2361
+ })
2362
+ });
2363
+ }
2364
+ Chart.displayName = "Chart";
2186
2365
  // src/components/molecules/page-container.tsx
2187
- import { forwardRef as forwardRef27 } from "react";
2188
- import { jsx as jsx33 } from "react/jsx-runtime";
2189
- var PageContainer = forwardRef27(function(_param, ref) {
2366
+ import { forwardRef as forwardRef30 } from "react";
2367
+ import { jsx as jsx38 } from "react/jsx-runtime";
2368
+ var PageContainer = forwardRef30(function(_param, ref) {
2190
2369
  var className = _param.className, props = _object_without_properties(_param, [
2191
2370
  "className"
2192
2371
  ]);
2193
- return /* @__PURE__ */ jsx33("div", _object_spread({
2372
+ return /* @__PURE__ */ jsx38("div", _object_spread({
2194
2373
  ref: ref,
2195
2374
  className: cn(className, "alq--page-container")
2196
2375
  }, props));
2197
2376
  });
2198
2377
  PageContainer.displayName = "PageContainer";
2199
2378
  // src/components/molecules/assistant-button.tsx
2200
- import * as React26 from "react";
2379
+ import * as React29 from "react";
2201
2380
  import { useState as useState5 } from "react";
2202
- import { jsx as jsx34, jsxs as jsxs12 } from "react/jsx-runtime";
2203
- var AssistantSuggestions = React26.forwardRef(function(param, ref) {
2381
+ import { jsx as jsx39, jsxs as jsxs14 } from "react/jsx-runtime";
2382
+ var AssistantSuggestions = React29.forwardRef(function(param, ref) {
2204
2383
  var suggestions = param.suggestions, showSuggestions = param.showSuggestions, className = param.className;
2205
- return /* @__PURE__ */ jsx34("div", {
2384
+ return /* @__PURE__ */ jsx39("div", {
2206
2385
  ref: ref,
2207
2386
  className: cn("absolute bottom-[calc(100%+0.5rem)] right-0 pb-2 mb-4 alq--assistant-suggestions-container", "transition-all duration-300", showSuggestions ? "opacity-100 translate-y-0" : "opacity-0 translate-y-4", className),
2208
- children: /* @__PURE__ */ jsx34("div", {
2387
+ children: /* @__PURE__ */ jsx39("div", {
2209
2388
  className: "rounded-lg p-2 pr-0 w-64",
2210
2389
  children: suggestions.map(function(suggestion, index) {
2211
- return /* @__PURE__ */ jsxs12("button", {
2390
+ return /* @__PURE__ */ jsxs14("button", {
2212
2391
  onClick: function() {
2213
2392
  var _suggestion_action;
2214
2393
  return (_suggestion_action = suggestion.action) === null || _suggestion_action === void 0 ? void 0 : _suggestion_action.call(suggestion);
@@ -2218,10 +2397,10 @@ var AssistantSuggestions = React26.forwardRef(function(param, ref) {
2218
2397
  },
2219
2398
  className: cn("bg-background flex items-center gap-2 border p-2 pr-4 my-2 rounded-full ml-auto", "text-primary hover:bg-secondary", "transition-all duration-100", "origin-bottom w-fit", "alq--assistant-suggestion", showSuggestions ? "opacity-100 translate-y-0" : "opacity-0 translate-y-4"),
2220
2399
  children: [
2221
- /* @__PURE__ */ jsx34(suggestion.icon, {
2400
+ /* @__PURE__ */ jsx39(suggestion.icon, {
2222
2401
  className: "w-5 h-5 text-primary"
2223
2402
  }),
2224
- /* @__PURE__ */ jsx34("span", {
2403
+ /* @__PURE__ */ jsx39("span", {
2225
2404
  className: "text-xs whitespace-nowrap font-normal",
2226
2405
  children: suggestion.label
2227
2406
  })
@@ -2232,7 +2411,7 @@ var AssistantSuggestions = React26.forwardRef(function(param, ref) {
2232
2411
  });
2233
2412
  });
2234
2413
  AssistantSuggestions.displayName = "Suggestions";
2235
- var AssistantButton = React26.forwardRef(function(param, ref) {
2414
+ var AssistantButton = React29.forwardRef(function(param, ref) {
2236
2415
  var Icon2 = param.icon, clickAction = param.clickAction, className = param.className, _param_suggestions = param.suggestions, suggestions = _param_suggestions === void 0 ? [] : _param_suggestions;
2237
2416
  var _useState5 = _sliced_to_array(useState5(false), 2), isVisible = _useState5[0], setIsVisible = _useState5[1];
2238
2417
  var _useState51 = _sliced_to_array(useState5(false), 2), showSuggestions = _useState51[0], setShowSuggestions = _useState51[1];
@@ -2250,24 +2429,24 @@ var AssistantButton = React26.forwardRef(function(param, ref) {
2250
2429
  return setIsVisible(false);
2251
2430
  }, 300);
2252
2431
  };
2253
- return /* @__PURE__ */ jsx34("div", {
2432
+ return /* @__PURE__ */ jsx39("div", {
2254
2433
  ref: ref,
2255
2434
  className: cn("fixed bottom-8 right-4 z-50", "alq--assistant-button-container", className),
2256
2435
  onMouseEnter: handleMouseEnter,
2257
2436
  onMouseLeave: handleMouseLeave,
2258
- children: /* @__PURE__ */ jsxs12("div", {
2437
+ children: /* @__PURE__ */ jsxs14("div", {
2259
2438
  className: "relative group",
2260
2439
  children: [
2261
- isVisible && suggestions.length > 0 && /* @__PURE__ */ jsx34(AssistantSuggestions, {
2440
+ isVisible && suggestions.length > 0 && /* @__PURE__ */ jsx39(AssistantSuggestions, {
2262
2441
  suggestions: suggestions,
2263
2442
  showSuggestions: showSuggestions
2264
2443
  }),
2265
- /* @__PURE__ */ jsx34(Button, {
2444
+ /* @__PURE__ */ jsx39(Button, {
2266
2445
  variant: "outline",
2267
2446
  size: "sm",
2268
2447
  className: cn("fixed hover:bg-opacity-70 transition-all duration-300", "bottom-4 h-12 w-12 right-4 z-50 rounded-full p-2", "shadow-md", "hover:shadow-lg", showSuggestions ? "scale-110" : "hover:scale-105", "alq--assistant-button"),
2269
2448
  onClick: clickAction,
2270
- children: /* @__PURE__ */ jsx34(Icon2, {
2449
+ children: /* @__PURE__ */ jsx39(Icon2, {
2271
2450
  style: {
2272
2451
  width: "22px",
2273
2452
  height: "22px"
@@ -2281,19 +2460,19 @@ var AssistantButton = React26.forwardRef(function(param, ref) {
2281
2460
  });
2282
2461
  AssistantButton.displayName = "AssistantButton";
2283
2462
  // src/components/molecules/carousel.tsx
2284
- import * as React27 from "react";
2463
+ import * as React30 from "react";
2285
2464
  import useEmblaCarousel from "embla-carousel-react";
2286
2465
  import { ArrowLeft, ArrowRight } from "lucide-react";
2287
- import { jsx as jsx35, jsxs as jsxs13 } from "react/jsx-runtime";
2288
- var CarouselContext = React27.createContext(null);
2466
+ import { jsx as jsx40, jsxs as jsxs15 } from "react/jsx-runtime";
2467
+ var CarouselContext = React30.createContext(null);
2289
2468
  function useCarousel() {
2290
- var context = React27.useContext(CarouselContext);
2469
+ var context = React30.useContext(CarouselContext);
2291
2470
  if (!context) {
2292
2471
  throw new Error("useCarousel must be used within a <Carousel />");
2293
2472
  }
2294
2473
  return context;
2295
2474
  }
2296
- var Carousel = React27.forwardRef(function(_param, ref) {
2475
+ var Carousel = React30.forwardRef(function(_param, ref) {
2297
2476
  var _param_orientation = _param.orientation, orientation = _param_orientation === void 0 ? "horizontal" : _param_orientation, opts = _param.opts, setApi = _param.setApi, plugins = _param.plugins, className = _param.className, children = _param.children, props = _object_without_properties(_param, [
2298
2477
  "orientation",
2299
2478
  "opts",
@@ -2305,26 +2484,26 @@ var Carousel = React27.forwardRef(function(_param, ref) {
2305
2484
  var _useEmblaCarousel = _sliced_to_array(useEmblaCarousel(_object_spread_props(_object_spread({}, opts), {
2306
2485
  axis: orientation === "horizontal" ? "x" : "y"
2307
2486
  }), plugins), 2), carouselRef = _useEmblaCarousel[0], api = _useEmblaCarousel[1];
2308
- var _React27_useState = _sliced_to_array(React27.useState(false), 2), canScrollPrev = _React27_useState[0], setCanScrollPrev = _React27_useState[1];
2309
- var _React27_useState1 = _sliced_to_array(React27.useState(false), 2), canScrollNext = _React27_useState1[0], setCanScrollNext = _React27_useState1[1];
2310
- var onSelect = React27.useCallback(function(api2) {
2487
+ var _React30_useState = _sliced_to_array(React30.useState(false), 2), canScrollPrev = _React30_useState[0], setCanScrollPrev = _React30_useState[1];
2488
+ var _React30_useState1 = _sliced_to_array(React30.useState(false), 2), canScrollNext = _React30_useState1[0], setCanScrollNext = _React30_useState1[1];
2489
+ var onSelect = React30.useCallback(function(api2) {
2311
2490
  if (!api2) {
2312
2491
  return;
2313
2492
  }
2314
2493
  setCanScrollPrev(api2.canScrollPrev());
2315
2494
  setCanScrollNext(api2.canScrollNext());
2316
2495
  }, []);
2317
- var scrollPrev = React27.useCallback(function() {
2496
+ var scrollPrev = React30.useCallback(function() {
2318
2497
  api === null || api === void 0 ? void 0 : api.scrollPrev();
2319
2498
  }, [
2320
2499
  api
2321
2500
  ]);
2322
- var scrollNext = React27.useCallback(function() {
2501
+ var scrollNext = React30.useCallback(function() {
2323
2502
  api === null || api === void 0 ? void 0 : api.scrollNext();
2324
2503
  }, [
2325
2504
  api
2326
2505
  ]);
2327
- var handleKeyDown = React27.useCallback(function(event) {
2506
+ var handleKeyDown = React30.useCallback(function(event) {
2328
2507
  if (event.key === "ArrowLeft") {
2329
2508
  event.preventDefault();
2330
2509
  scrollPrev();
@@ -2336,7 +2515,7 @@ var Carousel = React27.forwardRef(function(_param, ref) {
2336
2515
  scrollPrev,
2337
2516
  scrollNext
2338
2517
  ]);
2339
- React27.useEffect(function() {
2518
+ React30.useEffect(function() {
2340
2519
  if (!api || !setApi) {
2341
2520
  return;
2342
2521
  }
@@ -2345,7 +2524,7 @@ var Carousel = React27.forwardRef(function(_param, ref) {
2345
2524
  api,
2346
2525
  setApi
2347
2526
  ]);
2348
- React27.useEffect(function() {
2527
+ React30.useEffect(function() {
2349
2528
  if (!api) {
2350
2529
  return;
2351
2530
  }
@@ -2359,7 +2538,7 @@ var Carousel = React27.forwardRef(function(_param, ref) {
2359
2538
  api,
2360
2539
  onSelect
2361
2540
  ]);
2362
- return /* @__PURE__ */ jsx35(CarouselContext.Provider, {
2541
+ return /* @__PURE__ */ jsx40(CarouselContext.Provider, {
2363
2542
  value: {
2364
2543
  carouselRef: carouselRef,
2365
2544
  api: api,
@@ -2370,7 +2549,7 @@ var Carousel = React27.forwardRef(function(_param, ref) {
2370
2549
  canScrollPrev: canScrollPrev,
2371
2550
  canScrollNext: canScrollNext
2372
2551
  },
2373
- children: /* @__PURE__ */ jsx35("div", _object_spread_props(_object_spread({
2552
+ children: /* @__PURE__ */ jsx40("div", _object_spread_props(_object_spread({
2374
2553
  ref: ref,
2375
2554
  onKeyDownCapture: handleKeyDown,
2376
2555
  className: cn("relative", className),
@@ -2382,27 +2561,27 @@ var Carousel = React27.forwardRef(function(_param, ref) {
2382
2561
  });
2383
2562
  });
2384
2563
  Carousel.displayName = "Carousel";
2385
- var CarouselContent = React27.forwardRef(function(_param, ref) {
2564
+ var CarouselContent = React30.forwardRef(function(_param, ref) {
2386
2565
  var className = _param.className, props = _object_without_properties(_param, [
2387
2566
  "className"
2388
2567
  ]);
2389
2568
  var _useCarousel = useCarousel(), carouselRef = _useCarousel.carouselRef, orientation = _useCarousel.orientation;
2390
- return /* @__PURE__ */ jsx35("div", {
2569
+ return /* @__PURE__ */ jsx40("div", {
2391
2570
  ref: carouselRef,
2392
2571
  className: "overflow-hidden",
2393
- children: /* @__PURE__ */ jsx35("div", _object_spread({
2572
+ children: /* @__PURE__ */ jsx40("div", _object_spread({
2394
2573
  ref: ref,
2395
2574
  className: cn("flex", orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col", className)
2396
2575
  }, props))
2397
2576
  });
2398
2577
  });
2399
2578
  CarouselContent.displayName = "CarouselContent";
2400
- var CarouselItem = React27.forwardRef(function(_param, ref) {
2579
+ var CarouselItem = React30.forwardRef(function(_param, ref) {
2401
2580
  var className = _param.className, props = _object_without_properties(_param, [
2402
2581
  "className"
2403
2582
  ]);
2404
2583
  var orientation = useCarousel().orientation;
2405
- return /* @__PURE__ */ jsx35("div", _object_spread({
2584
+ return /* @__PURE__ */ jsx40("div", _object_spread({
2406
2585
  ref: ref,
2407
2586
  role: "group",
2408
2587
  "aria-roledescription": "slide",
@@ -2410,14 +2589,14 @@ var CarouselItem = React27.forwardRef(function(_param, ref) {
2410
2589
  }, props));
2411
2590
  });
2412
2591
  CarouselItem.displayName = "CarouselItem";
2413
- var CarouselPrevious = React27.forwardRef(function(_param, ref) {
2592
+ var CarouselPrevious = React30.forwardRef(function(_param, ref) {
2414
2593
  var className = _param.className, _param_variant = _param.variant, variant = _param_variant === void 0 ? "outline" : _param_variant, _param_size = _param.size, size = _param_size === void 0 ? "icon" : _param_size, props = _object_without_properties(_param, [
2415
2594
  "className",
2416
2595
  "variant",
2417
2596
  "size"
2418
2597
  ]);
2419
2598
  var _useCarousel = useCarousel(), orientation = _useCarousel.orientation, scrollPrev = _useCarousel.scrollPrev, canScrollPrev = _useCarousel.canScrollPrev;
2420
- return /* @__PURE__ */ jsxs13(Button, _object_spread_props(_object_spread({
2599
+ return /* @__PURE__ */ jsxs15(Button, _object_spread_props(_object_spread({
2421
2600
  ref: ref,
2422
2601
  variant: variant,
2423
2602
  size: size,
@@ -2426,10 +2605,10 @@ var CarouselPrevious = React27.forwardRef(function(_param, ref) {
2426
2605
  onClick: scrollPrev
2427
2606
  }, props), {
2428
2607
  children: [
2429
- /* @__PURE__ */ jsx35(ArrowLeft, {
2608
+ /* @__PURE__ */ jsx40(ArrowLeft, {
2430
2609
  className: "h-4 w-4"
2431
2610
  }),
2432
- /* @__PURE__ */ jsx35("span", {
2611
+ /* @__PURE__ */ jsx40("span", {
2433
2612
  className: "sr-only",
2434
2613
  children: "Previous slide"
2435
2614
  })
@@ -2437,14 +2616,14 @@ var CarouselPrevious = React27.forwardRef(function(_param, ref) {
2437
2616
  }));
2438
2617
  });
2439
2618
  CarouselPrevious.displayName = "CarouselPrevious";
2440
- var CarouselNext = React27.forwardRef(function(_param, ref) {
2619
+ var CarouselNext = React30.forwardRef(function(_param, ref) {
2441
2620
  var className = _param.className, _param_variant = _param.variant, variant = _param_variant === void 0 ? "outline" : _param_variant, _param_size = _param.size, size = _param_size === void 0 ? "icon" : _param_size, props = _object_without_properties(_param, [
2442
2621
  "className",
2443
2622
  "variant",
2444
2623
  "size"
2445
2624
  ]);
2446
2625
  var _useCarousel = useCarousel(), orientation = _useCarousel.orientation, scrollNext = _useCarousel.scrollNext, canScrollNext = _useCarousel.canScrollNext;
2447
- return /* @__PURE__ */ jsxs13(Button, _object_spread_props(_object_spread({
2626
+ return /* @__PURE__ */ jsxs15(Button, _object_spread_props(_object_spread({
2448
2627
  ref: ref,
2449
2628
  variant: variant,
2450
2629
  size: size,
@@ -2453,10 +2632,10 @@ var CarouselNext = React27.forwardRef(function(_param, ref) {
2453
2632
  onClick: scrollNext
2454
2633
  }, props), {
2455
2634
  children: [
2456
- /* @__PURE__ */ jsx35(ArrowRight, {
2635
+ /* @__PURE__ */ jsx40(ArrowRight, {
2457
2636
  className: "h-4 w-4"
2458
2637
  }),
2459
- /* @__PURE__ */ jsx35("span", {
2638
+ /* @__PURE__ */ jsx40("span", {
2460
2639
  className: "sr-only",
2461
2640
  children: "Next slide"
2462
2641
  })
@@ -2465,51 +2644,51 @@ var CarouselNext = React27.forwardRef(function(_param, ref) {
2465
2644
  });
2466
2645
  CarouselNext.displayName = "CarouselNext";
2467
2646
  // src/components/molecules/navigation-menu.tsx
2468
- import * as React28 from "react";
2647
+ import * as React31 from "react";
2469
2648
  import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
2470
2649
  import { cva as cva9 } from "class-variance-authority";
2471
- import { ChevronDown as ChevronDown2 } from "lucide-react";
2472
- import { jsx as jsx36, jsxs as jsxs14 } from "react/jsx-runtime";
2473
- var NavigationMenu = React28.forwardRef(function(_param, ref) {
2650
+ import { ChevronDown as ChevronDown3 } from "lucide-react";
2651
+ import { jsx as jsx41, jsxs as jsxs16 } from "react/jsx-runtime";
2652
+ var NavigationMenu = React31.forwardRef(function(_param, ref) {
2474
2653
  var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
2475
2654
  "className",
2476
2655
  "children"
2477
2656
  ]);
2478
- return /* @__PURE__ */ jsxs14(NavigationMenuPrimitive.Root, _object_spread_props(_object_spread({
2657
+ return /* @__PURE__ */ jsxs16(NavigationMenuPrimitive.Root, _object_spread_props(_object_spread({
2479
2658
  ref: ref,
2480
2659
  className: cn("relative z-10 flex max-w-max flex-1 items-center justify-center", className)
2481
2660
  }, props), {
2482
2661
  children: [
2483
2662
  children,
2484
- /* @__PURE__ */ jsx36(NavigationMenuViewport, {})
2663
+ /* @__PURE__ */ jsx41(NavigationMenuViewport, {})
2485
2664
  ]
2486
2665
  }));
2487
2666
  });
2488
2667
  NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
2489
- var NavigationMenuList = React28.forwardRef(function(_param, ref) {
2668
+ var NavigationMenuList = React31.forwardRef(function(_param, ref) {
2490
2669
  var className = _param.className, props = _object_without_properties(_param, [
2491
2670
  "className"
2492
2671
  ]);
2493
- return /* @__PURE__ */ jsx36(NavigationMenuPrimitive.List, _object_spread({
2672
+ return /* @__PURE__ */ jsx41(NavigationMenuPrimitive.List, _object_spread({
2494
2673
  ref: ref,
2495
2674
  className: cn("group flex flex-1 list-none items-center justify-center space-x-1", className)
2496
2675
  }, props));
2497
2676
  });
2498
2677
  NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
2499
2678
  var navigationMenuTriggerStyle = cva9("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50");
2500
- var NavigationMenuTrigger = React28.forwardRef(function(_param, ref) {
2679
+ var NavigationMenuTrigger = React31.forwardRef(function(_param, ref) {
2501
2680
  var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
2502
2681
  "className",
2503
2682
  "children"
2504
2683
  ]);
2505
- return /* @__PURE__ */ jsxs14(NavigationMenuPrimitive.Trigger, _object_spread_props(_object_spread({
2684
+ return /* @__PURE__ */ jsxs16(NavigationMenuPrimitive.Trigger, _object_spread_props(_object_spread({
2506
2685
  ref: ref,
2507
2686
  className: cn(navigationMenuTriggerStyle(), "group", className)
2508
2687
  }, props), {
2509
2688
  children: [
2510
2689
  children,
2511
2690
  " ",
2512
- /* @__PURE__ */ jsx36(ChevronDown2, {
2691
+ /* @__PURE__ */ jsx41(ChevronDown3, {
2513
2692
  className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
2514
2693
  "aria-hidden": "true"
2515
2694
  })
@@ -2517,47 +2696,47 @@ var NavigationMenuTrigger = React28.forwardRef(function(_param, ref) {
2517
2696
  }));
2518
2697
  });
2519
2698
  NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
2520
- var NavigationMenuContent = React28.forwardRef(function(_param, ref) {
2699
+ var NavigationMenuContent = React31.forwardRef(function(_param, ref) {
2521
2700
  var className = _param.className, props = _object_without_properties(_param, [
2522
2701
  "className"
2523
2702
  ]);
2524
- return /* @__PURE__ */ jsx36(NavigationMenuPrimitive.Content, _object_spread({
2703
+ return /* @__PURE__ */ jsx41(NavigationMenuPrimitive.Content, _object_spread({
2525
2704
  ref: ref,
2526
2705
  className: cn("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ", className)
2527
2706
  }, props));
2528
2707
  });
2529
2708
  NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
2530
- var NavigationMenuViewport = React28.forwardRef(function(_param, ref) {
2709
+ var NavigationMenuViewport = React31.forwardRef(function(_param, ref) {
2531
2710
  var className = _param.className, props = _object_without_properties(_param, [
2532
2711
  "className"
2533
2712
  ]);
2534
- return /* @__PURE__ */ jsx36("div", {
2713
+ return /* @__PURE__ */ jsx41("div", {
2535
2714
  className: cn("absolute left-0 top-full flex justify-center"),
2536
- children: /* @__PURE__ */ jsx36(NavigationMenuPrimitive.Viewport, _object_spread({
2715
+ children: /* @__PURE__ */ jsx41(NavigationMenuPrimitive.Viewport, _object_spread({
2537
2716
  className: cn("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]", className),
2538
2717
  ref: ref
2539
2718
  }, props))
2540
2719
  });
2541
2720
  });
2542
2721
  NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
2543
- var NavigationMenuIndicator = React28.forwardRef(function(_param, ref) {
2722
+ var NavigationMenuIndicator = React31.forwardRef(function(_param, ref) {
2544
2723
  var className = _param.className, props = _object_without_properties(_param, [
2545
2724
  "className"
2546
2725
  ]);
2547
- return /* @__PURE__ */ jsx36(NavigationMenuPrimitive.Indicator, _object_spread_props(_object_spread({
2726
+ return /* @__PURE__ */ jsx41(NavigationMenuPrimitive.Indicator, _object_spread_props(_object_spread({
2548
2727
  ref: ref,
2549
2728
  className: cn("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", className)
2550
2729
  }, props), {
2551
- children: /* @__PURE__ */ jsx36("div", {
2730
+ children: /* @__PURE__ */ jsx41("div", {
2552
2731
  className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"
2553
2732
  })
2554
2733
  }));
2555
2734
  });
2556
2735
  NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
2557
2736
  // src/components/molecules/sidebar.tsx
2558
- import * as React29 from "react";
2737
+ import * as React32 from "react";
2559
2738
  import { cva as cva10 } from "class-variance-authority";
2560
- import { jsx as jsx37, jsxs as jsxs15 } from "react/jsx-runtime";
2739
+ import { jsx as jsx42, jsxs as jsxs17 } from "react/jsx-runtime";
2561
2740
  var sidebarVariants = cva10("flex flex-col border-r", {
2562
2741
  variants: {
2563
2742
  size: {
@@ -2570,12 +2749,12 @@ var sidebarVariants = cva10("flex flex-col border-r", {
2570
2749
  size: "default"
2571
2750
  }
2572
2751
  });
2573
- var SidebarFooter = React29.forwardRef(function(_param, ref) {
2752
+ var SidebarFooter = React32.forwardRef(function(_param, ref) {
2574
2753
  var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
2575
2754
  "className",
2576
2755
  "children"
2577
2756
  ]);
2578
- return /* @__PURE__ */ jsx37("div", _object_spread_props(_object_spread({
2757
+ return /* @__PURE__ */ jsx42("div", _object_spread_props(_object_spread({
2579
2758
  ref: ref,
2580
2759
  className: cn("p-4", className)
2581
2760
  }, props), {
@@ -2583,7 +2762,7 @@ var SidebarFooter = React29.forwardRef(function(_param, ref) {
2583
2762
  }));
2584
2763
  });
2585
2764
  SidebarFooter.displayName = "SidebarFooter";
2586
- var Sidebar = React29.forwardRef(function(_param, ref) {
2765
+ var Sidebar = React32.forwardRef(function(_param, ref) {
2587
2766
  var className = _param.className, items = _param.items, selectedSection = _param.selectedSection, onSelect = _param.onSelect, footerContent = _param.footerContent, _param_size = _param.size, size = _param_size === void 0 ? "default" : _param_size, _param_selectedVariant = _param.selectedVariant, selectedVariant = _param_selectedVariant === void 0 ? "secondary" : _param_selectedVariant, _param_defaultVariant = _param.defaultVariant, defaultVariant = _param_defaultVariant === void 0 ? "ghost" : _param_defaultVariant, buttonClassName = _param.buttonClassName, props = _object_without_properties(_param, [
2588
2767
  "className",
2589
2768
  "items",
@@ -2595,21 +2774,21 @@ var Sidebar = React29.forwardRef(function(_param, ref) {
2595
2774
  "defaultVariant",
2596
2775
  "buttonClassName"
2597
2776
  ]);
2598
- return /* @__PURE__ */ jsx37("div", _object_spread_props(_object_spread({
2777
+ return /* @__PURE__ */ jsx42("div", _object_spread_props(_object_spread({
2599
2778
  className: cn(className, "alq--navigation-sidebar h-full"),
2600
2779
  ref: ref
2601
2780
  }, props), {
2602
- children: /* @__PURE__ */ jsxs15("aside", {
2781
+ children: /* @__PURE__ */ jsxs17("aside", {
2603
2782
  className: cn(sidebarVariants({
2604
2783
  size: size
2605
2784
  }), "h-full"),
2606
2785
  children: [
2607
- /* @__PURE__ */ jsx37(ScrollArea, {
2786
+ /* @__PURE__ */ jsx42(ScrollArea, {
2608
2787
  className: "flex-grow justify-between",
2609
- children: /* @__PURE__ */ jsx37("div", {
2788
+ children: /* @__PURE__ */ jsx42("div", {
2610
2789
  className: "flex flex-col gap-2 p-4",
2611
2790
  children: items.map(function(item) {
2612
- return /* @__PURE__ */ jsxs15(Button, {
2791
+ return /* @__PURE__ */ jsxs17(Button, {
2613
2792
  variant: (selectedSection === null || selectedSection === void 0 ? void 0 : selectedSection.name) === item.name ? selectedVariant : defaultVariant,
2614
2793
  className: cn("justify-start", buttonClassName),
2615
2794
  disabled: item.disabled,
@@ -2619,7 +2798,7 @@ var Sidebar = React29.forwardRef(function(_param, ref) {
2619
2798
  }
2620
2799
  },
2621
2800
  children: [
2622
- item.icon && /* @__PURE__ */ jsx37(item.icon, {
2801
+ item.icon && /* @__PURE__ */ jsx42(item.icon, {
2623
2802
  className: "mr-2 h-4 w-4"
2624
2803
  }),
2625
2804
  item.name
@@ -2628,7 +2807,7 @@ var Sidebar = React29.forwardRef(function(_param, ref) {
2628
2807
  })
2629
2808
  })
2630
2809
  }),
2631
- footerContent && /* @__PURE__ */ jsx37(SidebarFooter, {
2810
+ footerContent && /* @__PURE__ */ jsx42(SidebarFooter, {
2632
2811
  children: footerContent
2633
2812
  })
2634
2813
  ]
@@ -2644,30 +2823,30 @@ var ThemeContext = createContext2({
2644
2823
  setTheme: function() {}
2645
2824
  });
2646
2825
  // src/components/molecules/sonner.tsx
2647
- import { jsx as jsx38 } from "react/jsx-runtime";
2826
+ import { jsx as jsx43 } from "react/jsx-runtime";
2648
2827
  // src/components/molecules/rating-stars.tsx
2649
- import * as React30 from "react";
2828
+ import * as React33 from "react";
2650
2829
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
2651
2830
  import { Star } from "lucide-react";
2652
- import { jsx as jsx39, jsxs as jsxs16 } from "react/jsx-runtime";
2831
+ import { jsx as jsx44, jsxs as jsxs18 } from "react/jsx-runtime";
2653
2832
  var TooltipProvider = TooltipPrimitive.Provider;
2654
- var Tooltip = TooltipPrimitive.Root;
2833
+ var Tooltip2 = TooltipPrimitive.Root;
2655
2834
  var TooltipTrigger = TooltipPrimitive.Trigger;
2656
- var TooltipContent = React30.forwardRef(function(_param, ref) {
2835
+ var TooltipContent = React33.forwardRef(function(_param, ref) {
2657
2836
  var className = _param.className, _param_sideOffset = _param.sideOffset, sideOffset = _param_sideOffset === void 0 ? 4 : _param_sideOffset, props = _object_without_properties(_param, [
2658
2837
  "className",
2659
2838
  "sideOffset"
2660
2839
  ]);
2661
- return /* @__PURE__ */ jsx39(TooltipPrimitive.Content, _object_spread({
2840
+ return /* @__PURE__ */ jsx44(TooltipPrimitive.Content, _object_spread({
2662
2841
  ref: ref,
2663
2842
  sideOffset: sideOffset,
2664
2843
  className: cn("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground shadow-lg animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", className)
2665
2844
  }, props));
2666
2845
  });
2667
2846
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
2668
- var StarRating = React30.forwardRef(function(param, ref) {
2847
+ var StarRating = React33.forwardRef(function(param, ref) {
2669
2848
  var rating = param.rating, onRate = param.onRate;
2670
- return /* @__PURE__ */ jsx39("div", {
2849
+ return /* @__PURE__ */ jsx44("div", {
2671
2850
  ref: ref,
2672
2851
  className: "flex",
2673
2852
  children: [
@@ -2677,14 +2856,14 @@ var StarRating = React30.forwardRef(function(param, ref) {
2677
2856
  4,
2678
2857
  5
2679
2858
  ].map(function(star) {
2680
- return /* @__PURE__ */ jsx39(Button, {
2859
+ return /* @__PURE__ */ jsx44(Button, {
2681
2860
  onClick: function() {
2682
2861
  return onRate(star);
2683
2862
  },
2684
2863
  variant: "link",
2685
2864
  className: "p-1 transition-colors [&_svg]:size-5 h-5",
2686
2865
  "aria-label": "Rate ".concat(star, " star").concat(star !== 1 ? "s" : ""),
2687
- children: /* @__PURE__ */ jsx39(Star, {
2866
+ children: /* @__PURE__ */ jsx44(Star, {
2688
2867
  className: cn("w-5 h-5", star <= rating ? "alq-rating-star-active fill-current stroke-current" : "alq-rating-star-inactive")
2689
2868
  })
2690
2869
  }, star);
@@ -2692,15 +2871,15 @@ var StarRating = React30.forwardRef(function(param, ref) {
2692
2871
  });
2693
2872
  });
2694
2873
  StarRating.displayName = "StarRating";
2695
- var RatingStars = React30.forwardRef(function(param, ref) {
2874
+ var RatingStars = React33.forwardRef(function(param, ref) {
2696
2875
  var _param_currentRating = param.currentRating, currentRating = _param_currentRating === void 0 ? 0 : _param_currentRating, onRate = param.onRate, className = param.className, isLoading = param.isLoading;
2697
- var _React30_useState = _sliced_to_array(React30.useState(false), 2), open = _React30_useState[0], setOpen = _React30_useState[1];
2698
- var _React30_useState1 = _sliced_to_array(React30.useState(false), 2), animate = _React30_useState1[0], setAnimate = _React30_useState1[1];
2876
+ var _React33_useState = _sliced_to_array(React33.useState(false), 2), open = _React33_useState[0], setOpen = _React33_useState[1];
2877
+ var _React33_useState1 = _sliced_to_array(React33.useState(false), 2), animate = _React33_useState1[0], setAnimate = _React33_useState1[1];
2699
2878
  var handleRate = function(rating) {
2700
2879
  onRate(rating);
2701
2880
  setOpen(false);
2702
2881
  };
2703
- React30.useEffect(function() {
2882
+ React33.useEffect(function() {
2704
2883
  if (currentRating > 0) {
2705
2884
  setAnimate(true);
2706
2885
  var timer = setTimeout(function() {
@@ -2714,14 +2893,14 @@ var RatingStars = React30.forwardRef(function(param, ref) {
2714
2893
  currentRating
2715
2894
  ]);
2716
2895
  var hasRated = currentRating > 0;
2717
- return /* @__PURE__ */ jsx39(TooltipProvider, {
2718
- children: /* @__PURE__ */ jsxs16(Tooltip, {
2896
+ return /* @__PURE__ */ jsx44(TooltipProvider, {
2897
+ children: /* @__PURE__ */ jsxs18(Tooltip2, {
2719
2898
  open: open,
2720
2899
  onOpenChange: setOpen,
2721
2900
  children: [
2722
- /* @__PURE__ */ jsx39(TooltipTrigger, {
2901
+ /* @__PURE__ */ jsx44(TooltipTrigger, {
2723
2902
  asChild: true,
2724
- children: /* @__PURE__ */ jsx39(Button, {
2903
+ children: /* @__PURE__ */ jsx44(Button, {
2725
2904
  ref: ref,
2726
2905
  variant: "link",
2727
2906
  className: cn("inline-flex items-center justify-center rounded-md text-sm font-medium [&_svg]:size-5 transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50", className),
@@ -2729,18 +2908,18 @@ var RatingStars = React30.forwardRef(function(param, ref) {
2729
2908
  onClick: function() {
2730
2909
  return setOpen(!open);
2731
2910
  },
2732
- children: /* @__PURE__ */ jsx39(Star, {
2911
+ children: /* @__PURE__ */ jsx44(Star, {
2733
2912
  className: cn("w-5 h-5 transition-all duration-500", animate && "animate-ping", isLoading && "animate-pulse", hasRated ? "alq-rating-star-active fill-current stroke-current" : "alq-rating-star-inactive")
2734
2913
  })
2735
2914
  })
2736
2915
  }),
2737
- /* @__PURE__ */ jsx39(TooltipContent, {
2916
+ /* @__PURE__ */ jsx44(TooltipContent, {
2738
2917
  side: "top",
2739
2918
  align: "center",
2740
2919
  className: "p-0",
2741
- children: /* @__PURE__ */ jsx39("div", {
2920
+ children: /* @__PURE__ */ jsx44("div", {
2742
2921
  className: "p-2 bg-background",
2743
- children: /* @__PURE__ */ jsx39(StarRating, {
2922
+ children: /* @__PURE__ */ jsx44(StarRating, {
2744
2923
  rating: currentRating,
2745
2924
  onRate: handleRate
2746
2925
  })
@@ -2752,13 +2931,13 @@ var RatingStars = React30.forwardRef(function(param, ref) {
2752
2931
  });
2753
2932
  RatingStars.displayName = "RatingStars";
2754
2933
  // src/components/molecules/rating-thumbs.tsx
2755
- import * as React31 from "react";
2934
+ import * as React34 from "react";
2756
2935
  import { ThumbsUp, ThumbsDown } from "lucide-react";
2757
- import { jsx as jsx40, jsxs as jsxs17 } from "react/jsx-runtime";
2758
- var RatingThumbs = React31.forwardRef(function(param, ref) {
2936
+ import { jsx as jsx45, jsxs as jsxs19 } from "react/jsx-runtime";
2937
+ var RatingThumbs = React34.forwardRef(function(param, ref) {
2759
2938
  var currentRating = param.currentRating, onRate = param.onRate, _param_direction = param.direction, direction = _param_direction === void 0 ? "row" : _param_direction, className = param.className, isLoading = param.isLoading;
2760
- var _React31_useState = _sliced_to_array(React31.useState(false), 2), animate = _React31_useState[0], setAnimate = _React31_useState[1];
2761
- React31.useEffect(function() {
2939
+ var _React34_useState = _sliced_to_array(React34.useState(false), 2), animate = _React34_useState[0], setAnimate = _React34_useState[1];
2940
+ React34.useEffect(function() {
2762
2941
  if (currentRating) {
2763
2942
  setAnimate(true);
2764
2943
  var timer = setTimeout(function() {
@@ -2771,11 +2950,11 @@ var RatingThumbs = React31.forwardRef(function(param, ref) {
2771
2950
  }, [
2772
2951
  currentRating
2773
2952
  ]);
2774
- return /* @__PURE__ */ jsxs17("div", {
2953
+ return /* @__PURE__ */ jsxs19("div", {
2775
2954
  ref: ref,
2776
2955
  className: cn("inline-flex", direction === "column" ? "flex-col" : "flex-row", "space-x-1 gap-4", className),
2777
2956
  children: [
2778
- /* @__PURE__ */ jsx40(Button, {
2957
+ /* @__PURE__ */ jsx45(Button, {
2779
2958
  variant: "link",
2780
2959
  onClick: function() {
2781
2960
  return onRate(currentRating === "thumbsUp" ? "" : "thumbsUp");
@@ -2783,11 +2962,11 @@ var RatingThumbs = React31.forwardRef(function(param, ref) {
2783
2962
  className: cn("p-1 transition-colors disabled:opacity-50 [&_svg]:size-5", "hover:alq-rating-thumbsup/10"),
2784
2963
  "aria-label": "Thumbs up",
2785
2964
  disabled: isLoading,
2786
- children: /* @__PURE__ */ jsx40(ThumbsUp, {
2965
+ children: /* @__PURE__ */ jsx45(ThumbsUp, {
2787
2966
  className: cn("w-5 h-5 transition-all duration-500", animate && currentRating === "thumbsUp" && "animate-ping", isLoading && "animate-pulse", currentRating === "thumbsUp" ? "alq-rating-thumbsup fill-current stroke-current" : "alq-rating-thumbs-inactive fill-transparent")
2788
2967
  })
2789
2968
  }),
2790
- /* @__PURE__ */ jsx40(Button, {
2969
+ /* @__PURE__ */ jsx45(Button, {
2791
2970
  variant: "link",
2792
2971
  onClick: function() {
2793
2972
  return onRate(currentRating === "thumbsDown" ? "" : "thumbsDown");
@@ -2795,7 +2974,7 @@ var RatingThumbs = React31.forwardRef(function(param, ref) {
2795
2974
  className: cn("p-1 transition-colors disabled:opacity-50 mt-0.5 [&_svg]:size-5", "hover:bg-alq-rating-thumbsdown/10"),
2796
2975
  "aria-label": "Thumbs down",
2797
2976
  disabled: isLoading,
2798
- children: /* @__PURE__ */ jsx40(ThumbsDown, {
2977
+ children: /* @__PURE__ */ jsx45(ThumbsDown, {
2799
2978
  className: cn("w-5 h-5 transition-all duration-500", animate && currentRating === "thumbsDown" && "animate-ping", isLoading && "animate-pulse", currentRating === "thumbsDown" ? "alq-rating-thumbsdown fill-current stroke-current" : "alq-rating-thumbs-inactive fill-transparent")
2800
2979
  })
2801
2980
  })
@@ -2804,19 +2983,19 @@ var RatingThumbs = React31.forwardRef(function(param, ref) {
2804
2983
  });
2805
2984
  RatingThumbs.displayName = "RatingThumbs";
2806
2985
  // src/components/molecules/rating-comment.tsx
2807
- import * as React32 from "react";
2986
+ import * as React35 from "react";
2808
2987
  import { Book } from "lucide-react";
2809
- import { jsx as jsx41, jsxs as jsxs18 } from "react/jsx-runtime";
2810
- var RatingComment = React32.forwardRef(function(param, ref) {
2988
+ import { jsx as jsx46, jsxs as jsxs20 } from "react/jsx-runtime";
2989
+ var RatingComment = React35.forwardRef(function(param, ref) {
2811
2990
  var currentRating = param.currentRating, onRate = param.onRate, className = param.className, isLoading = param.isLoading;
2812
- var _React32_useState = _sliced_to_array(React32.useState(false), 2), open = _React32_useState[0], setOpen = _React32_useState[1];
2813
- var _React32_useState1 = _sliced_to_array(React32.useState(""), 2), comment = _React32_useState1[0], setComment = _React32_useState1[1];
2814
- var _React32_useState2 = _sliced_to_array(React32.useState(false), 2), animate = _React32_useState2[0], setAnimate = _React32_useState2[1];
2991
+ var _React35_useState = _sliced_to_array(React35.useState(false), 2), open = _React35_useState[0], setOpen = _React35_useState[1];
2992
+ var _React35_useState1 = _sliced_to_array(React35.useState(""), 2), comment = _React35_useState1[0], setComment = _React35_useState1[1];
2993
+ var _React35_useState2 = _sliced_to_array(React35.useState(false), 2), animate = _React35_useState2[0], setAnimate = _React35_useState2[1];
2815
2994
  var handleRate = function() {
2816
2995
  onRate(comment);
2817
2996
  setOpen(false);
2818
2997
  };
2819
- React32.useEffect(function() {
2998
+ React35.useEffect(function() {
2820
2999
  if (currentRating) {
2821
3000
  setAnimate(true);
2822
3001
  var timer = setTimeout(function() {
@@ -2829,39 +3008,39 @@ var RatingComment = React32.forwardRef(function(param, ref) {
2829
3008
  }, [
2830
3009
  currentRating
2831
3010
  ]);
2832
- React32.useEffect(function() {
3011
+ React35.useEffect(function() {
2833
3012
  setComment("");
2834
3013
  }, [
2835
3014
  open
2836
3015
  ]);
2837
- return /* @__PURE__ */ jsxs18(Dialog, {
3016
+ return /* @__PURE__ */ jsxs20(Dialog, {
2838
3017
  open: open,
2839
3018
  onOpenChange: setOpen,
2840
3019
  children: [
2841
- /* @__PURE__ */ jsx41(DialogTrigger, {
3020
+ /* @__PURE__ */ jsx46(DialogTrigger, {
2842
3021
  asChild: true,
2843
- children: /* @__PURE__ */ jsx41(Button, {
3022
+ children: /* @__PURE__ */ jsx46(Button, {
2844
3023
  ref: ref,
2845
3024
  variant: "link",
2846
3025
  size: "lg",
2847
3026
  className: cn("inline-flex p-2 items-center justify-center rounded-md text-sm font-medium transition-colors [&_svg]:size-5 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring bg-transparent hover:none disabled:pointer-events-none disabled:opacity-50", className),
2848
3027
  disabled: isLoading,
2849
- children: /* @__PURE__ */ jsx41(Book, {
3028
+ children: /* @__PURE__ */ jsx46(Book, {
2850
3029
  className: cn("w-5 h-5 transition-all duration-500", animate && "animate-ping", isLoading && "animate-pulse", "".concat(comment ? "alq-rating-comment" : "stroke-gray-400"))
2851
3030
  })
2852
3031
  })
2853
3032
  }),
2854
- /* @__PURE__ */ jsx41(DialogOverlay, {
3033
+ /* @__PURE__ */ jsx46(DialogOverlay, {
2855
3034
  className: "fixed inset-0 bg-black bg-opacity-50"
2856
3035
  }),
2857
- /* @__PURE__ */ jsxs18(DialogContent, {
3036
+ /* @__PURE__ */ jsxs20(DialogContent, {
2858
3037
  "aria-describedby": void 0,
2859
3038
  children: [
2860
- /* @__PURE__ */ jsx41(DialogTitle, {
3039
+ /* @__PURE__ */ jsx46(DialogTitle, {
2861
3040
  className: "text-lg font-medium",
2862
3041
  children: "Deja un comentario"
2863
3042
  }),
2864
- /* @__PURE__ */ jsx41("textarea", {
3043
+ /* @__PURE__ */ jsx46("textarea", {
2865
3044
  className: "mt-4 w-full p-2 border rounded-md focus:outline-none focus:ring-2 focus:ring-primary",
2866
3045
  rows: 4,
2867
3046
  value: comment,
@@ -2869,9 +3048,9 @@ var RatingComment = React32.forwardRef(function(param, ref) {
2869
3048
  return setComment(e.target.value);
2870
3049
  }
2871
3050
  }),
2872
- /* @__PURE__ */ jsx41("div", {
3051
+ /* @__PURE__ */ jsx46("div", {
2873
3052
  className: "mt-4 flex justify-end",
2874
- children: /* @__PURE__ */ jsx41(Button, {
3053
+ children: /* @__PURE__ */ jsx46(Button, {
2875
3054
  onClick: handleRate,
2876
3055
  disabled: !comment,
2877
3056
  children: "Enviar"
@@ -2884,8 +3063,8 @@ var RatingComment = React32.forwardRef(function(param, ref) {
2884
3063
  });
2885
3064
  RatingComment.displayName = "RatingComment";
2886
3065
  // src/components/molecules/call-out.tsx
2887
- import * as React33 from "react";
2888
- import { ChevronDown as ChevronDown3, ChevronUp as ChevronUp2 } from "lucide-react";
3066
+ import * as React36 from "react";
3067
+ import { ChevronDown as ChevronDown4, ChevronUp as ChevronUp2 } from "lucide-react";
2889
3068
  // src/components/hooks/use-text-streaming.ts
2890
3069
  import { useState as useState10, useEffect as useEffect10, useRef, useCallback as useCallback2 } from "react";
2891
3070
  var CHAR_DELAY = 15;
@@ -2949,14 +3128,14 @@ function useTextStreaming(content, shouldStream, handleIsTextStreaming) {
2949
3128
  return displayedText;
2950
3129
  }
2951
3130
  // src/components/molecules/call-out.tsx
2952
- import { jsx as jsx42, jsxs as jsxs19 } from "react/jsx-runtime";
2953
- var CallOut = React33.forwardRef(function(_param, ref) {
3131
+ import { jsx as jsx47, jsxs as jsxs21 } from "react/jsx-runtime";
3132
+ var CallOut = React36.forwardRef(function(_param, ref) {
2954
3133
  var className = _param.className, children = _param.children, role = _param.role, props = _object_without_properties(_param, [
2955
3134
  "className",
2956
3135
  "children",
2957
3136
  "role"
2958
3137
  ]);
2959
- return /* @__PURE__ */ jsx42("div", _object_spread_props(_object_spread({
3138
+ return /* @__PURE__ */ jsx47("div", _object_spread_props(_object_spread({
2960
3139
  ref: ref,
2961
3140
  className: cn("alq--callout-box", className),
2962
3141
  "data-role": role
@@ -2964,41 +3143,41 @@ var CallOut = React33.forwardRef(function(_param, ref) {
2964
3143
  children: children
2965
3144
  }));
2966
3145
  });
2967
- var CallOutDate = React33.forwardRef(function(_param, ref) {
3146
+ var CallOutDate = React36.forwardRef(function(_param, ref) {
2968
3147
  var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
2969
3148
  "className",
2970
3149
  "children"
2971
3150
  ]);
2972
- return /* @__PURE__ */ jsx42("div", _object_spread_props(_object_spread({
3151
+ return /* @__PURE__ */ jsx47("div", _object_spread_props(_object_spread({
2973
3152
  ref: ref,
2974
3153
  className: cn("alq--callout-date", "text-sm text-muted-foreground", className)
2975
3154
  }, props), {
2976
3155
  children: children
2977
3156
  }));
2978
3157
  });
2979
- var CallOutActions = React33.forwardRef(function(_param, ref) {
3158
+ var CallOutActions = React36.forwardRef(function(_param, ref) {
2980
3159
  var className = _param.className, actions = _param.actions, role = _param.role, message = _param.message, props = _object_without_properties(_param, [
2981
3160
  "className",
2982
3161
  "actions",
2983
3162
  "role",
2984
3163
  "message"
2985
3164
  ]);
2986
- var _React33_useState = _sliced_to_array(React33.useState(false), 2), isLoading = _React33_useState[0], setIsLoading = _React33_useState[1];
2987
- var _React33_useState1 = _sliced_to_array(React33.useState(false), 2), isClicked = _React33_useState1[0], setIsClicked = _React33_useState1[1];
3165
+ var _React36_useState = _sliced_to_array(React36.useState(false), 2), isLoading = _React36_useState[0], setIsLoading = _React36_useState[1];
3166
+ var _React36_useState1 = _sliced_to_array(React36.useState(false), 2), isClicked = _React36_useState1[0], setIsClicked = _React36_useState1[1];
2988
3167
  if (role === "user") {
2989
3168
  return null;
2990
3169
  }
2991
- return /* @__PURE__ */ jsx42("div", _object_spread_props(_object_spread({
3170
+ return /* @__PURE__ */ jsx47("div", _object_spread_props(_object_spread({
2992
3171
  ref: ref,
2993
3172
  className: cn("alq--callout-actions", className)
2994
3173
  }, props), {
2995
3174
  children: actions.map(function(action) {
2996
3175
  var _action_component;
2997
- return action.custom ? /* @__PURE__ */ jsx42(React33.Fragment, {
3176
+ return action.custom ? /* @__PURE__ */ jsx47(React36.Fragment, {
2998
3177
  children: (_action_component = action.component) === null || _action_component === void 0 ? void 0 : _action_component.call(action, {
2999
3178
  message: message
3000
3179
  })
3001
- }, action.label) : /* @__PURE__ */ jsxs19("button", {
3180
+ }, action.label) : /* @__PURE__ */ jsxs21("button", {
3002
3181
  className: cn("alq--callout-action", {
3003
3182
  "alq--callout-animate-action": isLoading
3004
3183
  }, {
@@ -3014,13 +3193,13 @@ var CallOutActions = React33.forwardRef(function(_param, ref) {
3014
3193
  });
3015
3194
  },
3016
3195
  children: [
3017
- /* @__PURE__ */ jsx42("span", {
3196
+ /* @__PURE__ */ jsx47("span", {
3018
3197
  className: cn("alq-action-icon-wrapper", {
3019
3198
  "alq--callout-animate-action": isLoading
3020
3199
  }),
3021
3200
  children: action.icon
3022
3201
  }),
3023
- /* @__PURE__ */ jsx42("label", {
3202
+ /* @__PURE__ */ jsx47("label", {
3024
3203
  children: action.label
3025
3204
  })
3026
3205
  ]
@@ -3028,7 +3207,7 @@ var CallOutActions = React33.forwardRef(function(_param, ref) {
3028
3207
  })
3029
3208
  }));
3030
3209
  });
3031
- var CallOutResponse = React33.forwardRef(function(_param, ref) {
3210
+ var CallOutResponse = React36.forwardRef(function(_param, ref) {
3032
3211
  var className = _param.className, children = _param.children, role = _param.role, additionalInfo = _param.additionalInfo, toggleAdditionalInfo = _param.toggleAdditionalInfo, isStreaming = _param.isStreaming, handleIsTextStreaming = _param.handleIsTextStreaming, props = _object_without_properties(_param, [
3033
3212
  "className",
3034
3213
  "children",
@@ -3038,29 +3217,29 @@ var CallOutResponse = React33.forwardRef(function(_param, ref) {
3038
3217
  "isStreaming",
3039
3218
  "handleIsTextStreaming"
3040
3219
  ]);
3041
- var _React33_useState = _sliced_to_array(React33.useState(false), 2), isAdditionalInfoOpen = _React33_useState[0], setIsAdditionalInfoOpen = _React33_useState[1];
3220
+ var _React36_useState = _sliced_to_array(React36.useState(false), 2), isAdditionalInfoOpen = _React36_useState[0], setIsAdditionalInfoOpen = _React36_useState[1];
3042
3221
  var content = String(children || "");
3043
3222
  var shouldStream = role === "assistant" && isStreaming;
3044
3223
  var displayedContent = useTextStreaming(content, shouldStream !== null && shouldStream !== void 0 ? shouldStream : false, handleIsTextStreaming);
3045
3224
  var showAsToggle = additionalInfo && toggleAdditionalInfo;
3046
3225
  var showInline = additionalInfo && !toggleAdditionalInfo;
3047
- return /* @__PURE__ */ jsxs19("div", _object_spread_props(_object_spread({
3226
+ return /* @__PURE__ */ jsxs21("div", _object_spread_props(_object_spread({
3048
3227
  ref: ref,
3049
3228
  "data-role": role,
3050
3229
  className: cn("alq--callout-response", "max-w-none", "text-foreground", className)
3051
3230
  }, props), {
3052
3231
  children: [
3053
- /* @__PURE__ */ jsx42(RichText, {
3232
+ /* @__PURE__ */ jsx47(RichText, {
3054
3233
  content: displayedContent
3055
3234
  }),
3056
- showInline && /* @__PURE__ */ jsx42("div", {
3235
+ showInline && /* @__PURE__ */ jsx47("div", {
3057
3236
  className: cn("alq--callout-response-additional-info", "mt-2 text-sm text-muted-foreground whitespace-pre-line", "border-t border-border pt-2"),
3058
3237
  children: additionalInfo
3059
3238
  }),
3060
- showAsToggle && /* @__PURE__ */ jsxs19("div", {
3239
+ showAsToggle && /* @__PURE__ */ jsxs21("div", {
3061
3240
  className: cn("alq--callout-response-additional-info", "mt-2 border-t border-border pt-2"),
3062
3241
  children: [
3063
- /* @__PURE__ */ jsxs19(Button, {
3242
+ /* @__PURE__ */ jsxs21(Button, {
3064
3243
  type: "button",
3065
3244
  variant: "ghost",
3066
3245
  size: "sm",
@@ -3072,19 +3251,19 @@ var CallOutResponse = React33.forwardRef(function(_param, ref) {
3072
3251
  },
3073
3252
  "aria-expanded": isAdditionalInfoOpen,
3074
3253
  children: [
3075
- isAdditionalInfoOpen ? /* @__PURE__ */ jsx42(ChevronUp2, {
3254
+ isAdditionalInfoOpen ? /* @__PURE__ */ jsx47(ChevronUp2, {
3076
3255
  className: "h-4 w-4 mr-1.5 shrink-0 transition-transform"
3077
- }) : /* @__PURE__ */ jsx42(ChevronDown3, {
3256
+ }) : /* @__PURE__ */ jsx47(ChevronDown4, {
3078
3257
  className: "h-4 w-4 mr-1.5 shrink-0 transition-transform"
3079
3258
  }),
3080
3259
  isAdditionalInfoOpen ? "Hide details" : "Show details"
3081
3260
  ]
3082
3261
  }),
3083
- /* @__PURE__ */ jsx42("div", {
3262
+ /* @__PURE__ */ jsx47("div", {
3084
3263
  className: cn("grid transition-[grid-template-rows] duration-200 ease-out", isAdditionalInfoOpen ? "grid-rows-[1fr]" : "grid-rows-[0fr]"),
3085
- children: /* @__PURE__ */ jsx42("div", {
3264
+ children: /* @__PURE__ */ jsx47("div", {
3086
3265
  className: "overflow-hidden",
3087
- children: /* @__PURE__ */ jsx42("div", {
3266
+ children: /* @__PURE__ */ jsx47("div", {
3088
3267
  className: "text-sm text-muted-foreground pt-1 whitespace-pre-line",
3089
3268
  children: additionalInfo
3090
3269
  })
@@ -3101,8 +3280,8 @@ CallOutActions.displayName = "CallOutActions";
3101
3280
  CallOutResponse.displayName = "CallOutResponse";
3102
3281
  // src/components/organisms/assistant.tsx
3103
3282
  import { Send } from "lucide-react";
3104
- import { jsx as jsx43, jsxs as jsxs20 } from "react/jsx-runtime";
3105
- var Assistant = React34.forwardRef(function(_param, ref) {
3283
+ import { jsx as jsx48, jsxs as jsxs22 } from "react/jsx-runtime";
3284
+ var Assistant = React37.forwardRef(function(_param, ref) {
3106
3285
  var className = _param.className, sdk = _param.sdk, title = _param.title, description = _param.description, children = _param.children, props = _object_without_properties(_param, [
3107
3286
  "className",
3108
3287
  "sdk",
@@ -3110,17 +3289,17 @@ var Assistant = React34.forwardRef(function(_param, ref) {
3110
3289
  "description",
3111
3290
  "children"
3112
3291
  ]);
3113
- return /* @__PURE__ */ jsxs20("div", _object_spread_props(_object_spread({
3292
+ return /* @__PURE__ */ jsxs22("div", _object_spread_props(_object_spread({
3114
3293
  ref: ref,
3115
3294
  className: cn("flex flex-col h-full bg-background text-foreground", className)
3116
3295
  }, props), {
3117
3296
  children: [
3118
- (title || description) && /* @__PURE__ */ jsxs20(AssistantHeader, {
3297
+ (title || description) && /* @__PURE__ */ jsxs22(AssistantHeader, {
3119
3298
  children: [
3120
- title && /* @__PURE__ */ jsx43(AssistantTitle, {
3299
+ title && /* @__PURE__ */ jsx48(AssistantTitle, {
3121
3300
  title: title
3122
3301
  }),
3123
- description && /* @__PURE__ */ jsx43(AssistantDescription, {
3302
+ description && /* @__PURE__ */ jsx48(AssistantDescription, {
3124
3303
  description: description
3125
3304
  })
3126
3305
  ]
@@ -3130,16 +3309,16 @@ var Assistant = React34.forwardRef(function(_param, ref) {
3130
3309
  }));
3131
3310
  });
3132
3311
  Assistant.displayName = "Assistant";
3133
- var AssistantTitle = React34.forwardRef(function(_param, ref) {
3312
+ var AssistantTitle = React37.forwardRef(function(_param, ref) {
3134
3313
  var className = _param.className, title = _param.title, props = _object_without_properties(_param, [
3135
3314
  "className",
3136
3315
  "title"
3137
3316
  ]);
3138
- return /* @__PURE__ */ jsx43("div", _object_spread_props(_object_spread({
3317
+ return /* @__PURE__ */ jsx48("div", _object_spread_props(_object_spread({
3139
3318
  ref: ref,
3140
3319
  className: cn("text-foreground", className)
3141
3320
  }, props), {
3142
- children: /* @__PURE__ */ jsx43(Typography, {
3321
+ children: /* @__PURE__ */ jsx48(Typography, {
3143
3322
  typeStyle: "heading1",
3144
3323
  as: "h1",
3145
3324
  children: title
@@ -3147,16 +3326,16 @@ var AssistantTitle = React34.forwardRef(function(_param, ref) {
3147
3326
  }));
3148
3327
  });
3149
3328
  AssistantTitle.displayName = "AssistantTitle";
3150
- var AssistantDescription = React34.forwardRef(function(_param, ref) {
3329
+ var AssistantDescription = React37.forwardRef(function(_param, ref) {
3151
3330
  var className = _param.className, description = _param.description, props = _object_without_properties(_param, [
3152
3331
  "className",
3153
3332
  "description"
3154
3333
  ]);
3155
- return /* @__PURE__ */ jsx43("div", _object_spread_props(_object_spread({
3334
+ return /* @__PURE__ */ jsx48("div", _object_spread_props(_object_spread({
3156
3335
  ref: ref,
3157
3336
  className: cn("text-foreground", className)
3158
3337
  }, props), {
3159
- children: /* @__PURE__ */ jsx43(Typography, {
3338
+ children: /* @__PURE__ */ jsx48(Typography, {
3160
3339
  typeStyle: "display",
3161
3340
  as: "p",
3162
3341
  children: description
@@ -3164,12 +3343,12 @@ var AssistantDescription = React34.forwardRef(function(_param, ref) {
3164
3343
  }));
3165
3344
  });
3166
3345
  AssistantDescription.displayName = "AssistantDescription";
3167
- var AssistantHeader = React34.forwardRef(function(_param, ref) {
3346
+ var AssistantHeader = React37.forwardRef(function(_param, ref) {
3168
3347
  var className = _param.className, children = _param.children, props = _object_without_properties(_param, [
3169
3348
  "className",
3170
3349
  "children"
3171
3350
  ]);
3172
- return /* @__PURE__ */ jsx43("div", _object_spread_props(_object_spread({
3351
+ return /* @__PURE__ */ jsx48("div", _object_spread_props(_object_spread({
3173
3352
  ref: ref,
3174
3353
  className: cn("bg-background text-foreground", className)
3175
3354
  }, props), {
@@ -3177,8 +3356,8 @@ var AssistantHeader = React34.forwardRef(function(_param, ref) {
3177
3356
  }));
3178
3357
  });
3179
3358
  AssistantHeader.displayName = "AssistantHeader";
3180
- var AssistantMessageArea = React34.forwardRef(function(_param, ref) {
3181
- var className = _param.className, messages = _param.messages, messagesEndRef = _param.messagesEndRef, actions = _param.actions, streamingMessageId = _param.streamingMessageId, thinkIndicator = _param.thinkIndicator, handleIsTextStreaming = _param.handleIsTextStreaming, toolFactory = _param.toolFactory, isLoading = _param.isLoading, showDetailedErrors = _param.showDetailedErrors, props = _object_without_properties(_param, [
3359
+ var AssistantMessageArea = React37.forwardRef(function(_param, ref) {
3360
+ var className = _param.className, messages = _param.messages, messagesEndRef = _param.messagesEndRef, actions = _param.actions, streamingMessageId = _param.streamingMessageId, thinkIndicator = _param.thinkIndicator, handleIsTextStreaming = _param.handleIsTextStreaming, toolFactory = _param.toolFactory, isLoading = _param.isLoading, showDetailedErrors = _param.showDetailedErrors, interleave = _param.interleave, awaitingUser = _param.awaitingUser, _isMessageStreaming = _param.isMessageStreaming, props = _object_without_properties(_param, [
3182
3361
  "className",
3183
3362
  "messages",
3184
3363
  "messagesEndRef",
@@ -3188,7 +3367,10 @@ var AssistantMessageArea = React34.forwardRef(function(_param, ref) {
3188
3367
  "handleIsTextStreaming",
3189
3368
  "toolFactory",
3190
3369
  "isLoading",
3191
- "showDetailedErrors"
3370
+ "showDetailedErrors",
3371
+ "interleave",
3372
+ "awaitingUser",
3373
+ "isMessageStreaming"
3192
3374
  ]);
3193
3375
  useEffect11(function() {
3194
3376
  var _messagesEndRef_current;
@@ -3196,72 +3378,76 @@ var AssistantMessageArea = React34.forwardRef(function(_param, ref) {
3196
3378
  behavior: "instant"
3197
3379
  });
3198
3380
  }, []);
3199
- return /* @__PURE__ */ jsxs20("div", _object_spread_props(_object_spread({
3381
+ return /* @__PURE__ */ jsxs22("div", _object_spread_props(_object_spread({
3200
3382
  ref: ref,
3201
3383
  className: cn("p-6 overflow-y-auto flex-grow bg-background", className)
3202
3384
  }, props), {
3203
3385
  children: [
3204
- messages.map(function(message) {
3386
+ interleave === null || interleave === void 0 ? void 0 : interleave(0),
3387
+ messages.map(function(message, index) {
3205
3388
  var _message_tooler;
3206
- return /* @__PURE__ */ jsx43("div", {
3207
- children: /* @__PURE__ */ jsxs20(CallOut, {
3208
- role: message.role,
3209
- message: message,
3210
- children: [
3211
- streamingMessageId === message.id && (isLoading || message.content.length === 0) && !message.error_code && /* @__PURE__ */ jsx43("div", {
3212
- children: thinkIndicator !== null && thinkIndicator !== void 0 ? thinkIndicator : /* @__PURE__ */ jsx43(ThinkIndicator, {})
3213
- }),
3214
- message.error_code && /* @__PURE__ */ jsx43(CallOutResponse, {
3215
- role: "assistant",
3216
- "data-error-code": message.error_code,
3217
- additionalInfo: showDetailedErrors ? "".concat(message.error_detail).concat(message.stream_id ? "\nstream id: ".concat(message.stream_id) : "") : void 0,
3218
- toggleAdditionalInfo: true,
3219
- children: getErrorMessage(message.error_code)
3220
- }),
3221
- !message.error_code && ((_message_tooler = message.tooler) === null || _message_tooler === void 0 ? void 0 : _message_tooler.filter(hasToolResult).map(function(tool, index) {
3222
- var _tool_tool_summary, _tool_tool_summary1;
3223
- return /* @__PURE__ */ jsx43(React34.Fragment, {
3224
- children: toolFactory === null || toolFactory === void 0 ? void 0 : toolFactory.createTool(((_tool_tool_summary = tool.tool_summary) === null || _tool_tool_summary === void 0 ? void 0 : _tool_tool_summary.name) || "", tool.tool_output)
3225
- }, tool.control_id || "".concat((_tool_tool_summary1 = tool.tool_summary) === null || _tool_tool_summary1 === void 0 ? void 0 : _tool_tool_summary1.name, "-").concat(index));
3226
- })),
3227
- message.content && !message.error_code && /* @__PURE__ */ jsxs20("div", {
3228
- "data-role": message.role,
3229
- className: "alq--callout-message-container",
3230
- children: [
3231
- message.created_at && streamingMessageId !== message.id && /* @__PURE__ */ jsx43("div", {
3232
- className: "text-xs text-muted-foreground/80 pb-1 alq--callout-message-date",
3233
- children: new Date(Number(message.created_at)).toLocaleString("es-ES", {
3234
- hour: "2-digit",
3235
- minute: "2-digit",
3236
- hour12: false
3237
- })
3238
- }),
3239
- /* @__PURE__ */ jsx43(CallOutResponse, {
3240
- role: message.role,
3241
- isStreaming: streamingMessageId === message.id,
3242
- handleIsTextStreaming: handleIsTextStreaming,
3243
- additionalInfo: streamingMessageId !== message.id ? message === null || message === void 0 ? void 0 : message.additionalInfo : void 0,
3244
- children: message.content
3245
- }),
3246
- actions && streamingMessageId !== message.id && /* @__PURE__ */ jsx43(CallOutActions, {
3247
- actions: actions,
3248
- message: message,
3249
- role: message.role
3250
- }, message.id)
3251
- ]
3252
- })
3253
- ]
3254
- }, message.id)
3389
+ return /* @__PURE__ */ jsxs22("div", {
3390
+ children: [
3391
+ /* @__PURE__ */ jsxs22(CallOut, {
3392
+ role: message.role,
3393
+ message: message,
3394
+ children: [
3395
+ streamingMessageId === message.id && (isLoading || message.content.length === 0) && !message.error_code && !awaitingUser && /* @__PURE__ */ jsx48("div", {
3396
+ children: thinkIndicator !== null && thinkIndicator !== void 0 ? thinkIndicator : /* @__PURE__ */ jsx48(ThinkIndicator, {})
3397
+ }),
3398
+ message.error_code && /* @__PURE__ */ jsx48(CallOutResponse, {
3399
+ role: "assistant",
3400
+ "data-error-code": message.error_code,
3401
+ additionalInfo: showDetailedErrors ? "".concat(message.error_detail).concat(message.taskid ? "\ntask id: ".concat(message.taskid) : "") : void 0,
3402
+ toggleAdditionalInfo: true,
3403
+ children: getErrorMessage(message.error_code)
3404
+ }),
3405
+ !message.error_code && ((_message_tooler = message.tooler) === null || _message_tooler === void 0 ? void 0 : _message_tooler.filter(hasToolResult).map(function(tool, index2) {
3406
+ var _tool_tool_summary, _tool_tool_summary1;
3407
+ return /* @__PURE__ */ jsx48(React37.Fragment, {
3408
+ children: toolFactory === null || toolFactory === void 0 ? void 0 : toolFactory.createTool(((_tool_tool_summary = tool.tool_summary) === null || _tool_tool_summary === void 0 ? void 0 : _tool_tool_summary.name) || "", tool.tool_output)
3409
+ }, tool.control_id || "".concat((_tool_tool_summary1 = tool.tool_summary) === null || _tool_tool_summary1 === void 0 ? void 0 : _tool_tool_summary1.name, "-").concat(index2));
3410
+ })),
3411
+ message.content && !message.error_code && /* @__PURE__ */ jsxs22("div", {
3412
+ "data-role": message.role,
3413
+ className: "alq--callout-message-container",
3414
+ children: [
3415
+ message.created_at && streamingMessageId !== message.id && /* @__PURE__ */ jsx48("div", {
3416
+ className: "text-xs text-muted-foreground/80 pb-1 alq--callout-message-date",
3417
+ children: new Date(Number(message.created_at)).toLocaleString("es-ES", {
3418
+ hour: "2-digit",
3419
+ minute: "2-digit",
3420
+ hour12: false
3421
+ })
3422
+ }),
3423
+ /* @__PURE__ */ jsx48(CallOutResponse, {
3424
+ role: message.role,
3425
+ isStreaming: streamingMessageId === message.id,
3426
+ handleIsTextStreaming: handleIsTextStreaming,
3427
+ additionalInfo: streamingMessageId !== message.id ? message === null || message === void 0 ? void 0 : message.additionalInfo : void 0,
3428
+ children: message.content
3429
+ }),
3430
+ actions && streamingMessageId !== message.id && /* @__PURE__ */ jsx48(CallOutActions, {
3431
+ actions: actions,
3432
+ message: message,
3433
+ role: message.role
3434
+ }, message.id)
3435
+ ]
3436
+ })
3437
+ ]
3438
+ }, message.id),
3439
+ interleave === null || interleave === void 0 ? void 0 : interleave(index + 1)
3440
+ ]
3255
3441
  }, message.id);
3256
3442
  }),
3257
- /* @__PURE__ */ jsx43("div", {
3443
+ /* @__PURE__ */ jsx48("div", {
3258
3444
  ref: messagesEndRef
3259
3445
  })
3260
3446
  ]
3261
3447
  }));
3262
3448
  });
3263
3449
  AssistantMessageArea.displayName = "AssistantMessageArea";
3264
- var AssistantInput = React34.forwardRef(function(_param, ref) {
3450
+ var AssistantInput = React37.forwardRef(function(_param, ref) {
3265
3451
  var className = _param.className, sendMessageFunc = _param.sendMessageFunc, isButtonDisabled = _param.isButtonDisabled, input = _param.input, handleInputChange = _param.handleInputChange, isMessageStreaming = _param.isMessageStreaming, speechToTextComponent = _param.speechToTextComponent, userToolboxComponent = _param.userToolboxComponent, placeholders = _param.placeholders, onFileDrop = _param.onFileDrop, attachmentsSlot = _param.attachmentsSlot, props = _object_without_properties(_param, [
3266
3452
  "className",
3267
3453
  "sendMessageFunc",
@@ -3310,7 +3496,7 @@ var AssistantInput = React34.forwardRef(function(_param, ref) {
3310
3496
  onFileDrop
3311
3497
  ]);
3312
3498
  var placeholder = placeholders ? isMessageStreaming ? placeholders[0] : placeholders[1] : isMessageStreaming ? "Processing..." : "Type your message here...";
3313
- return /* @__PURE__ */ jsxs20("form", _object_spread_props(_object_spread({
3499
+ return /* @__PURE__ */ jsxs22("form", _object_spread_props(_object_spread({
3314
3500
  onSubmit: sendMessageFunc,
3315
3501
  className: cn("flex flex-col relative rounded-lg border border-input bg-background", "focus-within:ring-2 focus-within:ring-ring", onFileDrop && isDragging && "ring-2 ring-primary/50 alq--assistant-input-dragover", className),
3316
3502
  ref: ref,
@@ -3321,7 +3507,7 @@ var AssistantInput = React34.forwardRef(function(_param, ref) {
3321
3507
  }, props), {
3322
3508
  children: [
3323
3509
  attachmentsSlot,
3324
- /* @__PURE__ */ jsx43("textarea", {
3510
+ /* @__PURE__ */ jsx48("textarea", {
3325
3511
  disabled: isButtonDisabled,
3326
3512
  value: input,
3327
3513
  onChange: handleInputChange,
@@ -3334,16 +3520,17 @@ var AssistantInput = React34.forwardRef(function(_param, ref) {
3334
3520
  }
3335
3521
  }
3336
3522
  }),
3337
- /* @__PURE__ */ jsxs20("div", {
3523
+ /* @__PURE__ */ jsxs22("div", {
3338
3524
  className: "flex items-center relative alq--assistant-actions",
3339
3525
  children: [
3340
3526
  userToolboxComponent,
3341
3527
  speechToTextComponent,
3342
- /* @__PURE__ */ jsx43("button", {
3528
+ /* @__PURE__ */ jsx48("button", {
3343
3529
  type: "submit",
3530
+ "aria-label": "Send",
3344
3531
  disabled: isButtonDisabled,
3345
3532
  className: cn("w-10 h-10 rounded-full flex items-center justify-center alq--assistant-button-send", isButtonDisabled ? "bg-muted text-muted-foreground" : "bg-primary text-primary-foreground hover:bg-primary/90"),
3346
- children: /* @__PURE__ */ jsx43(Send, {
3533
+ children: /* @__PURE__ */ jsx48(Send, {
3347
3534
  className: "w-5 h-5"
3348
3535
  })
3349
3536
  })
@@ -3360,7 +3547,7 @@ import { useState as useState13 } from "react";
3360
3547
  // src/components/hooks/use-resize-observer.ts
3361
3548
  import { useEffect as useEffect12, useRef as useRef3 } from "react";
3362
3549
  // src/components/organisms/rating-dialog.tsx
3363
- import { jsx as jsx44, jsxs as jsxs21 } from "react/jsx-runtime";
3550
+ import { jsx as jsx49, jsxs as jsxs23 } from "react/jsx-runtime";
3364
3551
  function RatingDialog(param) {
3365
3552
  var sendRating = param.sendRating, topicId = param.topicId, assistantId = param.assistantId, isOpen = param.isOpen, onOpenChange = param.onOpenChange, setHasRatedTopic = param.setHasRatedTopic;
3366
3553
  var _useToast = useToast(), toast2 = _useToast.toast;
@@ -3376,7 +3563,7 @@ function RatingDialog(param) {
3376
3563
  success ? setHasRatedTopic(true) : toast2({
3377
3564
  title: "Error",
3378
3565
  description: "Hubo un error al enviar la calificaci\xf3n",
3379
- action: /* @__PURE__ */ jsx44(ToastAction, {
3566
+ action: /* @__PURE__ */ jsx49(ToastAction, {
3380
3567
  altText: "Goto schedule to undo",
3381
3568
  children: "Cerrar"
3382
3569
  })
@@ -3386,26 +3573,26 @@ function RatingDialog(param) {
3386
3573
  setHasRatedTopic(true);
3387
3574
  onOpenChange(false);
3388
3575
  };
3389
- return /* @__PURE__ */ jsx44(Dialog, {
3576
+ return /* @__PURE__ */ jsx49(Dialog, {
3390
3577
  open: isOpen,
3391
3578
  onOpenChange: onOpenChange,
3392
- children: /* @__PURE__ */ jsxs21(DialogContent, {
3579
+ children: /* @__PURE__ */ jsxs23(DialogContent, {
3393
3580
  className: "sm:max-w-md",
3394
3581
  children: [
3395
- /* @__PURE__ */ jsxs21(DialogHeader, {
3582
+ /* @__PURE__ */ jsxs23(DialogHeader, {
3396
3583
  children: [
3397
- /* @__PURE__ */ jsx44(DialogTitle, {
3584
+ /* @__PURE__ */ jsx49(DialogTitle, {
3398
3585
  children: "Calific\xE1 esta conversaci\xF3n"
3399
3586
  }),
3400
- /* @__PURE__ */ jsx44(DialogDescription, {
3587
+ /* @__PURE__ */ jsx49(DialogDescription, {
3401
3588
  children: "Por favor, compart\xED tu opini\xF3n sobre el asistente."
3402
3589
  })
3403
3590
  ]
3404
3591
  }),
3405
- /* @__PURE__ */ jsxs21("div", {
3592
+ /* @__PURE__ */ jsxs23("div", {
3406
3593
  className: "flex flex-row justify-center gap-4 py-4",
3407
3594
  children: [
3408
- /* @__PURE__ */ jsx44(RatingStars, {
3595
+ /* @__PURE__ */ jsx49(RatingStars, {
3409
3596
  currentRating: ratingStars,
3410
3597
  onRate: function(newRating) {
3411
3598
  return handleRate("score", newRating, onHandleRateSuccess);
@@ -3413,7 +3600,7 @@ function RatingDialog(param) {
3413
3600
  isLoading: isLoading,
3414
3601
  className: "p-2 rounded"
3415
3602
  }),
3416
- /* @__PURE__ */ jsx44(RatingThumbs, {
3603
+ /* @__PURE__ */ jsx49(RatingThumbs, {
3417
3604
  currentRating: ratingComment,
3418
3605
  onRate: function(newRating) {
3419
3606
  return handleRate("description", newRating, onHandleRateSuccess);
@@ -3421,7 +3608,7 @@ function RatingDialog(param) {
3421
3608
  direction: "row",
3422
3609
  isLoading: isLoading
3423
3610
  }),
3424
- /* @__PURE__ */ jsx44(RatingComment, {
3611
+ /* @__PURE__ */ jsx49(RatingComment, {
3425
3612
  currentRating: ratingComment,
3426
3613
  onRate: function(newRating) {
3427
3614
  return handleRate("description", newRating, onHandleRateSuccess);
@@ -3430,12 +3617,12 @@ function RatingDialog(param) {
3430
3617
  })
3431
3618
  ]
3432
3619
  }),
3433
- /* @__PURE__ */ jsx44("div", {
3620
+ /* @__PURE__ */ jsx49("div", {
3434
3621
  className: "flex flex-row justify-center gap-4",
3435
- children: /* @__PURE__ */ jsx44(Button, {
3622
+ children: /* @__PURE__ */ jsx49(Button, {
3436
3623
  onClick: handleCancelRate,
3437
3624
  variant: "secondary",
3438
- children: /* @__PURE__ */ jsx44(Typography, {
3625
+ children: /* @__PURE__ */ jsx49(Typography, {
3439
3626
  as: "p",
3440
3627
  typeStyle: "tiny",
3441
3628
  children: "No, gracias."