@epam/ai-dial-conversation-input 1.1.0-dev.240 → 1.1.0-dev.244

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/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AttachmentErrorReason as e, AttachmentType as t, DeploymentIcon as n, RequestStatus as r, ResponseFormat as i, buildCssVars as a, mergeClasses as o, useIsMobile as s } from "@epam/ai-dial-chat-shared";
2
- import { BASE_ICON_SIZE as c, Button as l, CloseButton as u, DIAL_ICON_SIZE as d, DialDropdownIcon as f, DialRadioGroup as p, DialSearch as m, DialSlider as h, DialTooltip as g, Dropdown as _, ElementSize as v, ErrorText as y, GhostIconButton as b, Highlight as x, NeutralButton as S, Popup as C, PopupSize as w, PrimaryButton as T, PrimaryIconButton as E, RadioGroupOrientation as D, Skeleton as O, SkeletonVariant as k, StaticIconButton as A, Textarea as j } from "@epam/ai-dial-ui-kit";
3
- import { IconArrowLeft as ee, IconArrowNarrowRight as M, IconCheck as N, IconChevronDown as te, IconChevronRight as P, IconFile as ne, IconMicrophone as re, IconPaperclip as ie, IconPlayerStopFilled as F, IconPlaystationSquare as I, IconPlus as ae, IconPrompt as oe, IconSettings as se, IconTool as ce, IconX as le } from "@tabler/icons-react";
2
+ import { BASE_ICON_SIZE as c, Button as l, CloseButton as u, DIAL_ICON_SIZE as d, DialDropdownIcon as f, DialSlider as p, Dropdown as m, ElementSize as h, ErrorText as g, GhostIconButton as _, Highlight as v, NeutralButton as y, Popup as b, PopupSize as x, PrimaryButton as S, PrimaryIconButton as C, RadioGroup as w, RadioGroupOrientation as T, Search as E, Skeleton as D, SkeletonVariant as O, StaticIconButton as k, Textarea as A, Tooltip as j } from "@epam/ai-dial-ui-kit";
3
+ import { IconArrowLeft as ee, IconArrowNarrowRight as te, IconCheck as M, IconChevronDown as ne, IconChevronRight as N, IconFile as re, IconMicrophone as ie, IconPaperclip as ae, IconPlayerStopFilled as P, IconPlaystationSquare as F, IconPlus as oe, IconPrompt as se, IconSettings as ce, IconTool as le, IconX as I } from "@tabler/icons-react";
4
4
  import { createPortal as ue } from "react-dom";
5
5
  import { createElement as L, memo as R, useCallback as z, useEffect as B, useImperativeHandle as de, useLayoutEffect as fe, useMemo as V, useRef as H, useState as U } from "react";
6
6
  import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
@@ -24,9 +24,9 @@ var Se = (e, t) => {
24
24
  "slide-up": "_slide-up_1d50f_1",
25
25
  title: "_title_1d50f_18",
26
26
  divider: "_divider_1d50f_22"
27
- }, q = ({ isOpen: e, title: t, closeLabel: n, onClose: r, onBack: i, backLabel: s, "aria-label": c, style: l, titleClassName: f = "dial-body-semi-text", className: p, colors: m, children: h }) => {
27
+ }, q = ({ isOpen: e, title: t, closeLabel: n, onClose: r, onBack: i, backLabel: s, "aria-label": c, style: l, titleClassName: f = "dial-body-semi-text", className: p, colors: m, children: g }) => {
28
28
  if (Se(e, r), !e || typeof document > "u") return null;
29
- let g = a({
29
+ let v = a({
30
30
  "--ci-backdrop": m?.backdrop,
31
31
  "--ci-sheet-bg": m?.sheetBg,
32
32
  "--ci-sheet-text": m?.sheetText,
@@ -34,7 +34,7 @@ var Se = (e, t) => {
34
34
  });
35
35
  return ue(/* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
36
36
  className: o(Ce.backdrop, "fixed inset-0 z-[55]"),
37
- style: g,
37
+ style: v,
38
38
  onPointerDown: r,
39
39
  "aria-hidden": !0
40
40
  }), /* @__PURE__ */ K("div", {
@@ -42,7 +42,7 @@ var Se = (e, t) => {
42
42
  "aria-modal": !0,
43
43
  "aria-label": t ?? c,
44
44
  style: {
45
- ...g,
45
+ ...v,
46
46
  ...l
47
47
  },
48
48
  className: o(Ce.sheet, "fixed inset-x-0 bottom-0 z-[60] flex max-h-[85dvh] flex-col rounded-t-lg", p),
@@ -51,7 +51,7 @@ var Se = (e, t) => {
51
51
  children: [
52
52
  i && /* @__PURE__ */ G("div", {
53
53
  className: "absolute start-4",
54
- children: /* @__PURE__ */ G(b, {
54
+ children: /* @__PURE__ */ G(_, {
55
55
  icon: /* @__PURE__ */ G(ee, {
56
56
  size: d.LG,
57
57
  stroke: 1.5,
@@ -70,13 +70,13 @@ var Se = (e, t) => {
70
70
  children: /* @__PURE__ */ G(u, {
71
71
  ariaLabel: n,
72
72
  onClose: r,
73
- size: v.Standard
73
+ size: h.Standard
74
74
  })
75
75
  })
76
76
  ]
77
77
  }), /* @__PURE__ */ G("div", { className: o(Ce.divider, "h-px flex-shrink-0") })] }), /* @__PURE__ */ G("div", {
78
78
  className: "overflow-y-auto",
79
- children: h
79
+ children: g
80
80
  })]
81
81
  })] }), document.body);
82
82
  }, we = async (e, t, n) => {
@@ -429,61 +429,62 @@ var Se = (e, t) => {
429
429
  a
430
430
  ])
431
431
  };
432
- }, ze = { label: "_label_14i7c_1" }, Be = ({ features: e, responseFormat: t, systemPrompt: n, temperature: r, onResponseFormatChange: s, onSystemPromptChange: c, onTemperatureChange: l, responseFormatLabel: u = "Response format", responseFormatHint: d = "Applies to new and existing messages", responseFormatMarkdownLabel: f = "Markdown", responseFormatPlainTextLabel: m = "Plain text", systemPromptLabel: g = "System prompt", systemPromptTooltip: _ = "Enter a prompt", temperatureLabel: v = "Temperature", temperatureLabels: y = [
432
+ }, ze = { label: "_label_14i7c_1" }, Be = ({ features: e, responseFormat: t, systemPrompt: n, temperature: r, onResponseFormatChange: s, onSystemPromptChange: c, onTemperatureChange: l, responseFormatLabel: u = "Response format", responseFormatHint: d = "Applies to new and existing messages", responseFormatMarkdownLabel: f = "Markdown", responseFormatPlainTextLabel: m = "Plain text", systemPromptLabel: h = "System prompt", systemPromptTooltip: g = "Enter a prompt", temperatureLabel: _ = "Temperature", temperatureLabels: v = [
433
433
  "Precise",
434
434
  "Neutral",
435
435
  "Creative"
436
- ], temperatureHint: b, labelClassName: x = "!dial-small-semi-text", colors: S }) => {
437
- let C = a({ "--csf-label-text": S?.labelText }), w = o(x, ze.label, "gap-1");
436
+ ], temperatureHint: y, labelClassName: b = "!dial-small-semi-text", colors: x }) => {
437
+ let S = a({ "--csf-label-text": x?.labelText }), C = o(b, ze.label, "gap-1");
438
438
  return /* @__PURE__ */ K("div", {
439
439
  className: "flex flex-col gap-4 px-6 pb-3",
440
- style: C,
440
+ style: S,
441
441
  children: [
442
- e.responseFormat && /* @__PURE__ */ G(p, {
443
- fieldTitle: u,
444
- groupLabelClassName: w,
445
- containerClassName: "!gap-2",
446
- formItemChildrenClassName: "mb-2",
447
- elementId: "response-format",
448
- orientation: D.Column,
449
- activeRadioButton: t ?? i.Markdown,
450
- labelDescription: d,
451
- radioButtons: [{
452
- id: i.Markdown,
453
- name: f
442
+ e.responseFormat && /* @__PURE__ */ G(w, {
443
+ id: "response-format",
444
+ labelProps: {
445
+ label: u,
446
+ className: C,
447
+ caption: d
448
+ },
449
+ optionsClassName: "mb-2",
450
+ orientation: T.Column,
451
+ value: t ?? i.Markdown,
452
+ items: [{
453
+ value: i.Markdown,
454
+ label: f
454
455
  }, {
455
- id: i.PlainText,
456
- name: m
456
+ value: i.PlainText,
457
+ label: m
457
458
  }],
458
459
  onChange: (e) => s(e)
459
460
  }),
460
- e.systemPrompt && /* @__PURE__ */ G(j, {
461
+ e.systemPrompt && /* @__PURE__ */ G(A, {
461
462
  value: n,
462
- placeholder: _,
463
+ placeholder: g,
463
464
  resize: !0,
464
465
  labelProps: {
465
- className: w,
466
- label: g
466
+ className: C,
467
+ label: h
467
468
  },
468
469
  onChange: (e) => c(e ?? "")
469
470
  }),
470
- e.temperature && /* @__PURE__ */ G(h, {
471
+ e.temperature && /* @__PURE__ */ G(p, {
471
472
  labelProps: {
472
- label: v,
473
- className: w,
474
- caption: b
473
+ label: _,
474
+ className: C,
475
+ caption: y
475
476
  },
476
477
  value: r,
477
478
  min: 0,
478
479
  max: 1,
479
480
  step: .1,
480
- labels: y,
481
+ labels: v,
481
482
  onChange: l
482
483
  })
483
484
  ]
484
485
  });
485
- }, Ve = ({ isOpen: e, onBack: t, backLabel: n, onClose: r, closeLabel: i, style: a, features: s, initialResponseFormat: c, initialSystemPrompt: l, initialTemperature: u, onSave: d, title: f = "Chat settings", responseFormatLabel: p, responseFormatHint: m, responseFormatMarkdownLabel: h, responseFormatPlainTextLabel: _, systemPromptLabel: v, systemPromptTooltip: y, temperatureLabel: b, temperatureLabels: x, temperatureHint: S, saveLabel: C = "Apply changes", saveDisabledTooltip: w }) => {
486
- let { responseFormat: E, systemPrompt: D, temperature: O, canSubmit: k, setResponseFormat: A, setSystemPrompt: j, setTemperature: ee, handleSubmit: M } = Re({
486
+ }, Ve = ({ isOpen: e, onBack: t, backLabel: n, onClose: r, closeLabel: i, style: a, features: s, initialResponseFormat: c, initialSystemPrompt: l, initialTemperature: u, onSave: d, title: f = "Chat settings", responseFormatLabel: p, responseFormatHint: m, responseFormatMarkdownLabel: h, responseFormatPlainTextLabel: g, systemPromptLabel: _, systemPromptTooltip: v, temperatureLabel: y, temperatureLabels: b, temperatureHint: x, saveLabel: C = "Apply changes", saveDisabledTooltip: w }) => {
487
+ let { responseFormat: T, systemPrompt: E, temperature: D, canSubmit: O, setResponseFormat: k, setSystemPrompt: A, setTemperature: ee, handleSubmit: te } = Re({
487
488
  isOpen: e,
488
489
  features: s,
489
490
  initialResponseFormat: c,
@@ -502,38 +503,38 @@ var Se = (e, t) => {
502
503
  style: a,
503
504
  children: [/* @__PURE__ */ G(Be, {
504
505
  features: s,
505
- responseFormat: E,
506
- systemPrompt: D,
507
- temperature: O,
508
- onResponseFormatChange: A,
509
- onSystemPromptChange: j,
506
+ responseFormat: T,
507
+ systemPrompt: E,
508
+ temperature: D,
509
+ onResponseFormatChange: k,
510
+ onSystemPromptChange: A,
510
511
  onTemperatureChange: ee,
511
512
  responseFormatLabel: p,
512
513
  responseFormatHint: m,
513
514
  responseFormatMarkdownLabel: h,
514
- responseFormatPlainTextLabel: _,
515
- systemPromptLabel: v,
516
- systemPromptTooltip: y,
517
- temperatureLabel: b,
518
- temperatureLabels: x,
519
- temperatureHint: S
515
+ responseFormatPlainTextLabel: g,
516
+ systemPromptLabel: _,
517
+ systemPromptTooltip: v,
518
+ temperatureLabel: y,
519
+ temperatureLabels: b,
520
+ temperatureHint: x
520
521
  }), /* @__PURE__ */ G("div", {
521
522
  className: o("px-6 py-4 mobile:pb-8"),
522
- children: /* @__PURE__ */ G(g, {
523
+ children: /* @__PURE__ */ G(j, {
523
524
  tooltip: w,
524
- hideTooltip: k || !w,
525
+ hideTooltip: O || !w,
525
526
  triggerClassName: "w-full",
526
- children: /* @__PURE__ */ G(T, {
527
+ children: /* @__PURE__ */ G(S, {
527
528
  label: C,
528
- onClick: M,
529
- disabled: !k,
529
+ onClick: te,
530
+ disabled: !O,
530
531
  className: "w-full"
531
532
  })
532
533
  })
533
534
  })]
534
535
  });
535
- }, He = { modal: "_modal_kl0h0_1" }, Ue = ({ features: e, initialResponseFormat: t, initialSystemPrompt: n, initialTemperature: r, onSave: i, onClose: a, title: o = "Chat settings", titleClassName: s = "dial-h1-text", responseFormatLabel: c, responseFormatHint: l, responseFormatMarkdownLabel: u, responseFormatPlainTextLabel: d, systemPromptLabel: f, systemPromptTooltip: p, temperatureLabel: m, temperatureLabels: h, temperatureHint: _, saveLabel: v = "Apply changes", saveDisabledTooltip: y, backgroundClassName: b = He.modal }) => {
536
- let { responseFormat: x, systemPrompt: S, temperature: E, canSubmit: D, setResponseFormat: O, setSystemPrompt: k, setTemperature: A, handleSubmit: j } = Re({
536
+ }, He = { modal: "_modal_kl0h0_1" }, Ue = ({ features: e, initialResponseFormat: t, initialSystemPrompt: n, initialTemperature: r, onSave: i, onClose: a, title: o = "Chat settings", titleClassName: s = "dial-h1-text", responseFormatLabel: c, responseFormatHint: l, responseFormatMarkdownLabel: u, responseFormatPlainTextLabel: d, systemPromptLabel: f, systemPromptTooltip: p, temperatureLabel: m, temperatureLabels: h, temperatureHint: g, saveLabel: _ = "Apply changes", saveDisabledTooltip: v, backgroundClassName: y = He.modal }) => {
537
+ let { responseFormat: C, systemPrompt: w, temperature: T, canSubmit: E, setResponseFormat: D, setSystemPrompt: O, setTemperature: k, handleSubmit: A } = Re({
537
538
  features: e,
538
539
  initialResponseFormat: t,
539
540
  initialSystemPrompt: n,
@@ -541,33 +542,33 @@ var Se = (e, t) => {
541
542
  onSave: i,
542
543
  onClose: a
543
544
  });
544
- return /* @__PURE__ */ G(C, {
545
+ return /* @__PURE__ */ G(b, {
545
546
  open: !0,
546
547
  header: o,
547
548
  titleClassName: s,
548
- size: w.Sm,
549
+ size: x.Sm,
549
550
  onClose: a,
550
- className: b,
551
+ className: y,
551
552
  footer: /* @__PURE__ */ G("div", {
552
553
  className: "flex justify-end px-6 py-4",
553
- children: /* @__PURE__ */ G(g, {
554
- tooltip: y,
555
- hideTooltip: D || !y,
556
- children: /* @__PURE__ */ G(T, {
557
- label: v,
558
- onClick: j,
559
- disabled: !D
554
+ children: /* @__PURE__ */ G(j, {
555
+ tooltip: v,
556
+ hideTooltip: E || !v,
557
+ children: /* @__PURE__ */ G(S, {
558
+ label: _,
559
+ onClick: A,
560
+ disabled: !E
560
561
  })
561
562
  })
562
563
  }),
563
564
  children: /* @__PURE__ */ G(Be, {
564
565
  features: e,
565
- responseFormat: x,
566
- systemPrompt: S,
567
- temperature: E,
568
- onResponseFormatChange: O,
569
- onSystemPromptChange: k,
570
- onTemperatureChange: A,
566
+ responseFormat: C,
567
+ systemPrompt: w,
568
+ temperature: T,
569
+ onResponseFormatChange: D,
570
+ onSystemPromptChange: O,
571
+ onTemperatureChange: k,
571
572
  responseFormatLabel: c,
572
573
  responseFormatHint: l,
573
574
  responseFormatMarkdownLabel: u,
@@ -576,7 +577,7 @@ var Se = (e, t) => {
576
577
  systemPromptTooltip: p,
577
578
  temperatureLabel: m,
578
579
  temperatureLabels: h,
579
- temperatureHint: _
580
+ temperatureHint: g
580
581
  })
581
582
  });
582
583
  };
@@ -612,7 +613,7 @@ var We = {
612
613
  }),
613
614
  iconAfter: e.isSelected ? /* @__PURE__ */ G("span", {
614
615
  className: o("ms-auto", We.selectedIcon),
615
- children: /* @__PURE__ */ G(N, {
616
+ children: /* @__PURE__ */ G(M, {
616
617
  size: c,
617
618
  "aria-hidden": !0
618
619
  })
@@ -629,8 +630,8 @@ var We = {
629
630
  selectedToolIcon: "_selectedToolIcon_r268y_1",
630
631
  toolIcon: "_toolIcon_r268y_5",
631
632
  chevronIcon: "_chevronIcon_r268y_9"
632
- }, qe = ({ onAttachClick: e, attachLabel: t, addMenuTitle: n, menuTitle: r, menuCloseLabel: l, style: u, listClassName: f = "w-[240px]", isDisabled: p = !1, chatSettings: m, extraMenuItems: h, toolsMenuItems: g = [], onToolToggle: y, toolsMenuTitle: x = "Tools", toolsBackLabel: S = "Back", promptsMenuOverlay: C, promptsMenuTitle: w = "Prompts", promptsBackLabel: T = "Back", colors: E }) => {
633
- let D = s(), [O, k] = U(!1), [A, j] = U(!1), [ee, M] = U(!1), [te, ne] = U(!1), [re, F] = U(!1), I = V(() => a({
633
+ }, qe = ({ onAttachClick: e, attachLabel: t, addMenuTitle: n, menuTitle: r, menuCloseLabel: l, style: u, listClassName: f = "w-[240px]", isDisabled: p = !1, chatSettings: g, extraMenuItems: v, toolsMenuItems: y = [], onToolToggle: b, toolsMenuTitle: x = "Tools", toolsBackLabel: S = "Back", promptsMenuOverlay: C, promptsMenuTitle: w = "Prompts", promptsBackLabel: T = "Back", colors: E }) => {
634
+ let D = s(), [O, k] = U(!1), [A, j] = U(!1), [ee, te] = U(!1), [ne, re] = U(!1), [ie, P] = U(!1), F = V(() => a({
634
635
  "--aab-selected-tool-icon": E?.selectedToolIcon,
635
636
  "--aab-tool-icon": E?.toolIcon,
636
637
  "--aab-chevron-icon": E?.chevronIcon
@@ -638,55 +639,55 @@ var We = {
638
639
  E?.selectedToolIcon,
639
640
  E?.toolIcon,
640
641
  E?.chevronIcon
641
- ]), le = g.length > 0 && y != null, ue = V(() => g.map((e) => ({
642
+ ]), I = y.length > 0 && b != null, ue = V(() => y.map((e) => ({
642
643
  key: e.id,
643
644
  label: /* @__PURE__ */ K("span", {
644
645
  className: "flex flex-1 items-center gap-2",
645
646
  children: [/* @__PURE__ */ G("span", {
646
647
  className: "flex-1",
647
648
  children: e.label
648
- }), e.isSelected && /* @__PURE__ */ G(N, {
649
+ }), e.isSelected && /* @__PURE__ */ G(M, {
649
650
  size: c,
650
- style: I,
651
+ style: F,
651
652
  className: Ke.selectedToolIcon,
652
653
  "aria-hidden": !0
653
654
  })]
654
655
  }),
655
656
  icon: /* @__PURE__ */ G("span", {
656
- style: I,
657
+ style: F,
657
658
  className: o("flex items-center", Ke.toolIcon),
658
659
  children: e.icon
659
660
  }),
660
- onClick: () => y?.(e.id)
661
+ onClick: () => b?.(e.id)
661
662
  })), [
662
- g,
663
663
  y,
664
- I
664
+ b,
665
+ F
665
666
  ]), L = V(() => [
666
667
  ...e == null ? [] : [{
667
668
  key: "attach",
668
669
  label: t,
669
- icon: /* @__PURE__ */ G(ie, {
670
+ icon: /* @__PURE__ */ G(ae, {
670
671
  size: c,
671
672
  "aria-hidden": !0
672
673
  }),
673
674
  onClick: e
674
675
  }],
675
- ...h ?? [],
676
- ...le ? [{
676
+ ...v ?? [],
677
+ ...I ? [{
677
678
  key: "tools",
678
679
  label: x,
679
- icon: /* @__PURE__ */ G(ce, {
680
+ icon: /* @__PURE__ */ G(le, {
680
681
  size: c,
681
682
  "aria-hidden": !0
682
683
  }),
683
684
  onClick: D ? () => {
684
- M(!0), k(!1);
685
+ te(!0), k(!1);
685
686
  } : () => void 0,
686
- ...D ? { iconAfter: /* @__PURE__ */ G(P, {
687
+ ...D ? { iconAfter: /* @__PURE__ */ G(N, {
687
688
  size: c,
688
689
  stroke: 1.5,
689
- style: I,
690
+ style: F,
690
691
  className: o("rtl:scale-x-[-1]", Ke.chevronIcon),
691
692
  "aria-hidden": !0
692
693
  }) } : { children: ue }
@@ -694,17 +695,17 @@ var We = {
694
695
  ...C == null ? [] : [{
695
696
  key: "prompts",
696
697
  label: w,
697
- icon: /* @__PURE__ */ G(oe, {
698
+ icon: /* @__PURE__ */ G(se, {
698
699
  size: c,
699
700
  "aria-hidden": !0
700
701
  }),
701
702
  onClick: D ? () => {
702
- ne(!0), k(!1);
703
+ re(!0), k(!1);
703
704
  } : () => void 0,
704
- ...D ? { iconAfter: /* @__PURE__ */ G(P, {
705
+ ...D ? { iconAfter: /* @__PURE__ */ G(N, {
705
706
  size: c,
706
707
  stroke: 1.5,
707
- style: I,
708
+ style: F,
708
709
  className: o("rtl:scale-x-[-1]", Ke.chevronIcon),
709
710
  "aria-hidden": !0
710
711
  }) } : {
@@ -712,20 +713,20 @@ var We = {
712
713
  key: "prompts-panel",
713
714
  label: ""
714
715
  }],
715
- renderSubMenu: () => C(() => F(!1))
716
+ renderSubMenu: () => C(() => P(!1))
716
717
  }
717
718
  }],
718
- ...m == null ? [] : [{
719
+ ...g == null ? [] : [{
719
720
  key: "chat-settings",
720
- label: m.menuItemLabel ?? "Chat settings",
721
- icon: /* @__PURE__ */ G(se, {
721
+ label: g.menuItemLabel ?? "Chat settings",
722
+ icon: /* @__PURE__ */ G(ce, {
722
723
  size: c,
723
724
  "aria-hidden": !0
724
725
  }),
725
- iconAfter: D ? /* @__PURE__ */ G(P, {
726
+ iconAfter: D ? /* @__PURE__ */ G(N, {
726
727
  size: c,
727
728
  stroke: 1.5,
728
- style: I,
729
+ style: F,
729
730
  className: o("rtl:scale-x-[-1]", Ke.chevronIcon),
730
731
  "aria-hidden": !0
731
732
  }) : null,
@@ -734,26 +735,26 @@ var We = {
734
735
  ], [
735
736
  t,
736
737
  e,
737
- m,
738
- h,
738
+ g,
739
+ v,
739
740
  D,
740
- le,
741
+ I,
741
742
  x,
742
743
  ue,
743
744
  C,
744
745
  w,
745
- I
746
+ F
746
747
  ]);
747
748
  if (L.length === 0) return null;
748
- let R = /* @__PURE__ */ G(_, {
749
+ let R = /* @__PURE__ */ G(m, {
749
750
  matchReferenceWidth: !1,
750
751
  placement: "bottom-start",
751
752
  listClassName: f,
752
753
  items: L,
753
- open: C == null ? void 0 : re,
754
- onOpenChange: C == null ? void 0 : F,
755
- children: /* @__PURE__ */ G(b, {
756
- icon: /* @__PURE__ */ G(ae, {
754
+ open: C == null ? void 0 : ie,
755
+ onOpenChange: C == null ? void 0 : P,
756
+ children: /* @__PURE__ */ G(_, {
757
+ icon: /* @__PURE__ */ G(oe, {
757
758
  size: d.LG,
758
759
  "aria-hidden": !0
759
760
  }),
@@ -763,13 +764,13 @@ var We = {
763
764
  })
764
765
  });
765
766
  return /* @__PURE__ */ G(W, { children: D ? /* @__PURE__ */ K(W, { children: [
766
- /* @__PURE__ */ G(b, {
767
- icon: /* @__PURE__ */ G(ae, {
767
+ /* @__PURE__ */ G(_, {
768
+ icon: /* @__PURE__ */ G(oe, {
768
769
  size: d.LG,
769
770
  "aria-hidden": !0
770
771
  }),
771
772
  "aria-label": n,
772
- size: v.Large,
773
+ size: h.Large,
773
774
  tooltipProps: { tooltip: n },
774
775
  disabled: p,
775
776
  onClick: () => k(!0)
@@ -784,77 +785,77 @@ var We = {
784
785
  className: "pb-4",
785
786
  btnTextClassName: "flex-1"
786
787
  }),
787
- le && /* @__PURE__ */ G(Ge, {
788
+ I && /* @__PURE__ */ G(Ge, {
788
789
  isOpen: ee,
789
790
  onBack: () => {
790
- M(!1), k(!0);
791
+ te(!1), k(!0);
791
792
  },
792
793
  backLabel: S,
793
- onClose: () => M(!1),
794
+ onClose: () => te(!1),
794
795
  closeLabel: l,
795
796
  style: u,
796
797
  title: x,
797
- items: g,
798
- onToolToggle: y
798
+ items: y,
799
+ onToolToggle: b
799
800
  }),
800
801
  C != null && /* @__PURE__ */ G(q, {
801
- isOpen: te,
802
+ isOpen: ne,
802
803
  title: w,
803
804
  closeLabel: l,
804
805
  onBack: () => {
805
- ne(!1), k(!0);
806
+ re(!1), k(!0);
806
807
  },
807
808
  backLabel: T,
808
- onClose: () => ne(!1),
809
+ onClose: () => re(!1),
809
810
  style: u,
810
- children: C(() => ne(!1))
811
+ children: C(() => re(!1))
811
812
  }),
812
- m != null && /* @__PURE__ */ G(Ve, {
813
+ g != null && /* @__PURE__ */ G(Ve, {
813
814
  isOpen: A,
814
815
  onBack: () => {
815
816
  j(!1), k(!0);
816
817
  },
817
- backLabel: m.backLabel ?? "Back",
818
+ backLabel: g.backLabel ?? "Back",
818
819
  onClose: () => j(!1),
819
820
  closeLabel: l,
820
821
  style: u,
821
- features: m.features,
822
- initialResponseFormat: m.responseFormat ?? i.Markdown,
823
- initialSystemPrompt: m.systemPrompt,
824
- initialTemperature: m.temperature,
825
- onSave: m.onSave,
826
- title: m.title,
827
- responseFormatLabel: m.responseFormatLabel,
828
- responseFormatHint: m.responseFormatHint,
829
- responseFormatMarkdownLabel: m.responseFormatMarkdownLabel,
830
- responseFormatPlainTextLabel: m.responseFormatPlainTextLabel,
831
- systemPromptLabel: m.systemPromptLabel,
832
- systemPromptTooltip: m.systemPromptTooltip,
833
- temperatureLabel: m.temperatureLabel,
834
- temperatureLabels: m.temperatureLabels,
835
- temperatureHint: m.temperatureHint,
836
- saveLabel: m.saveLabel,
837
- saveDisabledTooltip: m.saveDisabledTooltip
822
+ features: g.features,
823
+ initialResponseFormat: g.responseFormat ?? i.Markdown,
824
+ initialSystemPrompt: g.systemPrompt,
825
+ initialTemperature: g.temperature,
826
+ onSave: g.onSave,
827
+ title: g.title,
828
+ responseFormatLabel: g.responseFormatLabel,
829
+ responseFormatHint: g.responseFormatHint,
830
+ responseFormatMarkdownLabel: g.responseFormatMarkdownLabel,
831
+ responseFormatPlainTextLabel: g.responseFormatPlainTextLabel,
832
+ systemPromptLabel: g.systemPromptLabel,
833
+ systemPromptTooltip: g.systemPromptTooltip,
834
+ temperatureLabel: g.temperatureLabel,
835
+ temperatureLabels: g.temperatureLabels,
836
+ temperatureHint: g.temperatureHint,
837
+ saveLabel: g.saveLabel,
838
+ saveDisabledTooltip: g.saveDisabledTooltip
838
839
  })
839
- ] }) : /* @__PURE__ */ K(W, { children: [R, m != null && A && /* @__PURE__ */ G(Ue, {
840
- features: m.features,
841
- initialResponseFormat: m.responseFormat ?? i.Markdown,
842
- initialSystemPrompt: m.systemPrompt,
843
- initialTemperature: m.temperature,
844
- onSave: m.onSave,
840
+ ] }) : /* @__PURE__ */ K(W, { children: [R, g != null && A && /* @__PURE__ */ G(Ue, {
841
+ features: g.features,
842
+ initialResponseFormat: g.responseFormat ?? i.Markdown,
843
+ initialSystemPrompt: g.systemPrompt,
844
+ initialTemperature: g.temperature,
845
+ onSave: g.onSave,
845
846
  onClose: () => j(!1),
846
- title: m.title,
847
- responseFormatLabel: m.responseFormatLabel,
848
- responseFormatHint: m.responseFormatHint,
849
- responseFormatMarkdownLabel: m.responseFormatMarkdownLabel,
850
- responseFormatPlainTextLabel: m.responseFormatPlainTextLabel,
851
- systemPromptLabel: m.systemPromptLabel,
852
- systemPromptTooltip: m.systemPromptTooltip,
853
- temperatureLabel: m.temperatureLabel,
854
- temperatureLabels: m.temperatureLabels,
855
- temperatureHint: m.temperatureHint,
856
- saveLabel: m.saveLabel,
857
- saveDisabledTooltip: m.saveDisabledTooltip
847
+ title: g.title,
848
+ responseFormatLabel: g.responseFormatLabel,
849
+ responseFormatHint: g.responseFormatHint,
850
+ responseFormatMarkdownLabel: g.responseFormatMarkdownLabel,
851
+ responseFormatPlainTextLabel: g.responseFormatPlainTextLabel,
852
+ systemPromptLabel: g.systemPromptLabel,
853
+ systemPromptTooltip: g.systemPromptTooltip,
854
+ temperatureLabel: g.temperatureLabel,
855
+ temperatureLabels: g.temperatureLabels,
856
+ temperatureHint: g.temperatureHint,
857
+ saveLabel: g.saveLabel,
858
+ saveDisabledTooltip: g.saveDisabledTooltip
858
859
  })] }) });
859
860
  }, J = {
860
861
  chip: "_chip_1gu87_1",
@@ -873,7 +874,7 @@ var We = {
873
874
  "--ci-chip-close-hover": l?.chipCloseHover
874
875
  });
875
876
  if (n) {
876
- let e = u.length === 1, t = e ? u[0].icon : /* @__PURE__ */ G(ce, {
877
+ let e = u.length === 1, t = e ? u[0].icon : /* @__PURE__ */ G(le, {
877
878
  size: c,
878
879
  "aria-hidden": !0
879
880
  }), n = e ? u[0].label : r(u.length);
@@ -913,7 +914,7 @@ var We = {
913
914
  onClick: () => t(e.id),
914
915
  className: o(J.chipClose, "flex items-center rounded p-0.5 transition-colors"),
915
916
  "aria-label": i(e.label),
916
- children: /* @__PURE__ */ G(le, {
917
+ children: /* @__PURE__ */ G(I, {
917
918
  size: 12,
918
919
  "aria-hidden": !0
919
920
  })
@@ -922,19 +923,19 @@ var We = {
922
923
  }, e.id))
923
924
  });
924
925
  }, Y = {
925
- wrapper: "_wrapper_teqwe_1",
926
- wrapperDisabled: "_wrapperDisabled_teqwe_8",
927
- textarea: "_textarea_teqwe_13",
928
- modelSelectorButton: "_modelSelectorButton_teqwe_24",
929
- modelSelectorCaret: "_modelSelectorCaret_teqwe_24",
930
- modelSelectorButtonDisabled: "_modelSelectorButtonDisabled_teqwe_33"
926
+ wrapper: "_wrapper_18xqs_1",
927
+ wrapperDisabled: "_wrapperDisabled_18xqs_8",
928
+ textarea: "_textarea_18xqs_13",
929
+ modelSelectorButton: "_modelSelectorButton_18xqs_24",
930
+ modelSelectorCaret: "_modelSelectorCaret_18xqs_24",
931
+ modelSelectorButtonDisabled: "_modelSelectorButtonDisabled_18xqs_33"
931
932
  }, X = {
932
933
  wrapperError: "_wrapperError_129ri_1",
933
934
  waveformCanvas: "_waveformCanvas_129ri_5",
934
935
  recordingDot: "_recordingDot_129ri_19",
935
936
  "recording-pulse": "_recording-pulse_129ri_1"
936
937
  }, Ze = 3, Qe = 4, $e = 200, et = ({ state: e, analyserNodeRef: t, errorMessage: n, onStop: r, onDiscard: i, stopLabel: a = "Stop recording", discardLabel: s = "Discard recording", style: c, className: l }) => {
937
- let u = H(null), f = H(new Float32Array($e)), p = H(0), m = H(0), h = e === je.Recording, g = e === je.Error, _ = z((e) => {
938
+ let u = H(null), f = H(new Float32Array($e)), p = H(0), m = H(0), h = e === je.Recording, v = e === je.Error, y = z((e) => {
938
939
  let t = e.getContext("2d");
939
940
  if (!t) return;
940
941
  e.width = e.clientWidth || 200, e.height = e.clientHeight || 32;
@@ -968,7 +969,7 @@ var We = {
968
969
  f.current[p.current % $e] = Math.sqrt(n / t.length), p.current++;
969
970
  }
970
971
  }
971
- _(e), n = requestAnimationFrame(r);
972
+ y(e), n = requestAnimationFrame(r);
972
973
  };
973
974
  return n = requestAnimationFrame(r), () => {
974
975
  cancelAnimationFrame(n);
@@ -976,26 +977,26 @@ var We = {
976
977
  }, [
977
978
  h,
978
979
  t,
979
- _
980
+ y
980
981
  ]), B(() => {
981
982
  let e = u.current;
982
983
  if (!e) return;
983
984
  let t = new ResizeObserver(() => {
984
- _(e);
985
+ y(e);
985
986
  });
986
987
  return t.observe(e), () => t.disconnect();
987
- }, [_]);
988
- let v = /* @__PURE__ */ K("div", {
988
+ }, [y]);
989
+ let b = /* @__PURE__ */ K("div", {
989
990
  className: "flex flex-shrink-0 items-center justify-end gap-1",
990
- children: [/* @__PURE__ */ G(b, {
991
- icon: /* @__PURE__ */ G(le, {
991
+ children: [/* @__PURE__ */ G(_, {
992
+ icon: /* @__PURE__ */ G(I, {
992
993
  size: d.LG,
993
994
  "aria-hidden": !0
994
995
  }),
995
996
  "aria-label": s,
996
997
  onClick: i
997
- }), h && /* @__PURE__ */ G(E, {
998
- icon: /* @__PURE__ */ G(F, {
998
+ }), h && /* @__PURE__ */ G(C, {
999
+ icon: /* @__PURE__ */ G(P, {
999
1000
  size: d.LG,
1000
1001
  "aria-hidden": !0
1001
1002
  }),
@@ -1007,7 +1008,7 @@ var We = {
1007
1008
  className: l,
1008
1009
  children: [/* @__PURE__ */ K("div", {
1009
1010
  style: c,
1010
- className: o(Y.wrapper, "flex min-h-[64px] w-full max-w-[748px] flex-col justify-center gap-3 rounded-xl border px-3 shadow-md desktop:flex-row desktop:items-center desktop:gap-2 desktop:py-2", g && X.wrapperError),
1011
+ className: o(Y.wrapper, "flex min-h-[64px] w-full max-w-[748px] flex-col justify-center gap-3 rounded-xl border px-3 shadow-md desktop:flex-row desktop:items-center desktop:gap-2 desktop:py-2", v && X.wrapperError),
1011
1012
  children: [/* @__PURE__ */ K("div", {
1012
1013
  className: "flex min-w-0 flex-1 items-center gap-3",
1013
1014
  children: [h && /* @__PURE__ */ G("span", {
@@ -1018,34 +1019,34 @@ var We = {
1018
1019
  height: 32,
1019
1020
  className: o(X.waveformCanvas, "h-8 min-w-0 flex-1 desktop:h-6")
1020
1021
  })]
1021
- }), v]
1022
- }), g && n && /* @__PURE__ */ G(y, {
1022
+ }), b]
1023
+ }), v && n && /* @__PURE__ */ G(g, {
1023
1024
  text: n,
1024
1025
  className: "mt-1 px-1"
1025
1026
  })]
1026
1027
  });
1027
- }, tt = ({ onSend: e, isDisabled: t = !1, ariaLabel: n = "Send message", isExiting: r = !1 }) => /* @__PURE__ */ G(E, {
1028
+ }, tt = ({ onSend: e, isDisabled: t = !1, ariaLabel: n = "Send message", isExiting: r = !1 }) => /* @__PURE__ */ G(C, {
1028
1029
  "aria-label": n,
1029
1030
  onClick: () => e?.(),
1030
1031
  disabled: t,
1031
1032
  "aria-hidden": r,
1032
- icon: /* @__PURE__ */ G(M, {
1033
+ icon: /* @__PURE__ */ G(te, {
1033
1034
  size: d.LG,
1034
1035
  className: "rtl:scale-x-[-1]"
1035
1036
  })
1036
- }), nt = ({ onStop: e, ariaLabel: t = "Stop streaming" }) => /* @__PURE__ */ G(A, {
1037
- icon: /* @__PURE__ */ G(I, { size: d.LG }),
1037
+ }), nt = ({ onStop: e, ariaLabel: t = "Stop streaming" }) => /* @__PURE__ */ G(k, {
1038
+ icon: /* @__PURE__ */ G(F, { size: d.LG }),
1038
1039
  onClick: () => e?.(),
1039
1040
  "aria-label": t
1040
- }), Z = ({ size: e = 20 }) => /* @__PURE__ */ G(O, {
1041
- variant: k.Circular,
1041
+ }), Z = ({ size: e = 20 }) => /* @__PURE__ */ G(D, {
1042
+ variant: O.Circular,
1042
1043
  width: e,
1043
1044
  height: e,
1044
1045
  active: !0
1045
1046
  }), rt = ({ loadingLabel: e }) => /* @__PURE__ */ K("span", {
1046
1047
  className: "flex min-w-0 flex-1 items-center",
1047
- children: [/* @__PURE__ */ G(O, {
1048
- variant: k.Text,
1048
+ children: [/* @__PURE__ */ G(D, {
1049
+ variant: O.Text,
1049
1050
  width: "100%",
1050
1051
  height: 16,
1051
1052
  active: !0
@@ -1074,8 +1075,8 @@ var We = {
1074
1075
  selectedItem: "_selectedItem_ibyso_5",
1075
1076
  selectedItemCheck: "_selectedItemCheck_ibyso_9"
1076
1077
  }, lt = ({ deployments: e, selectedDeploymentId: t, onDeploymentChange: n, modelSelectorLabels: r, searchHeaderClassName: i = ct.searchHeader, selectedItemClassName: s = ct.selectedItem, selectedItemCheckClassName: c = ct.selectedItemCheck, colors: l }) => {
1077
- let [u, f] = U(""), p = V(() => e?.find((e) => e.id === t), [e, t]), h = r?.loading !== void 0, g = !h && !p && !!t, _ = V(() => h ? /* @__PURE__ */ G(Z, { size: d.LG }) : st(p?.iconUrl, p?.type, p?.displayName ?? p?.id ?? "", d.LG, g ? r?.unavailableTooltip ?? "This deployment is no longer available" : void 0), [
1078
- h,
1078
+ let [u, f] = U(""), p = V(() => e?.find((e) => e.id === t), [e, t]), m = r?.loading !== void 0, g = !m && !p && !!t, _ = V(() => m ? /* @__PURE__ */ G(Z, { size: d.LG }) : st(p?.iconUrl, p?.type, p?.displayName ?? p?.id ?? "", d.LG, g ? r?.unavailableTooltip ?? "This deployment is no longer available" : void 0), [
1079
+ m,
1079
1080
  p,
1080
1081
  g,
1081
1082
  r?.unavailableTooltip
@@ -1085,7 +1086,7 @@ var We = {
1085
1086
  selectorAriaLabel: y ? `${r?.ariaLabel ?? "Select model"}: ${y}` : r?.ariaLabel ?? "Select model",
1086
1087
  selectedLabel: y,
1087
1088
  menuItems: V(() => {
1088
- if (h) return Array.from({ length: 7 }, (e, t) => ({
1089
+ if (m) return Array.from({ length: 7 }, (e, t) => ({
1089
1090
  key: `__loading-${t}`,
1090
1091
  icon: /* @__PURE__ */ G(Z, {}),
1091
1092
  label: /* @__PURE__ */ G(rt, { loadingLabel: t === 0 ? r?.loading : void 0 }),
@@ -1106,11 +1107,11 @@ var We = {
1106
1107
  label: /* @__PURE__ */ K("span", {
1107
1108
  className: "flex w-full items-center justify-between gap-2",
1108
1109
  style: a({ "--ms-selected-item-check": l?.selectedItemCheck }),
1109
- children: [/* @__PURE__ */ G(x, {
1110
+ children: [/* @__PURE__ */ G(v, {
1110
1111
  text: at(e),
1111
1112
  query: u,
1112
1113
  maxLines: 1
1113
- }), r && /* @__PURE__ */ G(N, {
1114
+ }), r && /* @__PURE__ */ G(M, {
1114
1115
  size: d.SM,
1115
1116
  stroke: 2,
1116
1117
  className: c,
@@ -1124,7 +1125,7 @@ var We = {
1124
1125
  });
1125
1126
  }, [
1126
1127
  e,
1127
- h,
1128
+ m,
1128
1129
  u,
1129
1130
  t,
1130
1131
  r,
@@ -1133,19 +1134,19 @@ var We = {
1133
1134
  c,
1134
1135
  l?.selectedItemCheck
1135
1136
  ]),
1136
- menuHeader: V(() => !h && e && e.length > 0 ? /* @__PURE__ */ G("div", {
1137
+ menuHeader: V(() => !m && e && e.length > 0 ? /* @__PURE__ */ G("div", {
1137
1138
  style: a({ "--ms-search-header-bg": l?.searchHeaderBackground }),
1138
1139
  className: o("sticky top-0 z-10 pb-1 pe-2 pt-2", i),
1139
- children: /* @__PURE__ */ G(m, {
1140
+ children: /* @__PURE__ */ G(E, {
1140
1141
  value: u,
1141
1142
  placeholder: r?.searchPlaceholder ?? "Search",
1142
- size: v.Small,
1143
+ size: h.Small,
1143
1144
  wrapperClassName: "border-0",
1144
- onChange: f
1145
+ onChange: (e) => f(e ?? "")
1145
1146
  })
1146
1147
  }) : void 0, [
1147
1148
  e,
1148
- h,
1149
+ m,
1149
1150
  u,
1150
1151
  r,
1151
1152
  i,
@@ -1618,12 +1619,12 @@ var kt = {
1618
1619
  }),
1619
1620
  label: /* @__PURE__ */ K("span", {
1620
1621
  className: "flex flex-1 items-center justify-between gap-2",
1621
- children: [/* @__PURE__ */ G(x, {
1622
+ children: [/* @__PURE__ */ G(v, {
1622
1623
  text: u.displayName ?? u.id,
1623
1624
  query: s,
1624
1625
  maxLines: 1,
1625
1626
  className: o(a, "min-w-0 flex-1 text-start")
1626
- }), p && /* @__PURE__ */ G(N, {
1627
+ }), p && /* @__PURE__ */ G(M, {
1627
1628
  size: d.SM,
1628
1629
  className: kt.checkIcon,
1629
1630
  "aria-hidden": !0
@@ -1632,14 +1633,14 @@ var kt = {
1632
1633
  onClick: () => c(u.id)
1633
1634
  })
1634
1635
  });
1635
- }, Nt = ({ isOpen: e, title: t, closeLabel: n, searchPlaceholder: r = "Search", onClose: i, deployments: s, selectedDeploymentId: c, onSelect: l, loadingLabel: u, errorLabel: d, emptyLabel: f, style: p, titleClassName: h = "dial-body-semi-text", labelClassName: g = "dial-small-text", colors: _ }) => {
1636
- let [y, b] = U("");
1636
+ }, Nt = ({ isOpen: e, title: t, closeLabel: n, searchPlaceholder: r = "Search", onClose: i, deployments: s, selectedDeploymentId: c, onSelect: l, loadingLabel: u, errorLabel: d, emptyLabel: f, style: p, titleClassName: m = "dial-body-semi-text", labelClassName: g = "dial-small-text", colors: _ }) => {
1637
+ let [v, y] = U("");
1637
1638
  B(() => {
1638
- e || b("");
1639
+ e || y("");
1639
1640
  }, [e]);
1640
- let x = s && s.length > 0, S = u !== void 0, C = !x && !S ? d ?? f : void 0, w = x ? ot(s, y) : [], T = (e) => {
1641
+ let b = s && s.length > 0, x = u !== void 0, S = !b && !x ? d ?? f : void 0, C = b ? ot(s, v) : [], w = (e) => {
1641
1642
  l(e), i();
1642
- }, E = a({
1643
+ }, T = a({
1643
1644
  "--ci-sheet-divider": _?.divider,
1644
1645
  "--ci-sheet-text": _?.itemText,
1645
1646
  "--ci-sheet-item-hover": _?.itemHoverBg,
@@ -1653,76 +1654,76 @@ var kt = {
1653
1654
  closeLabel: n,
1654
1655
  onClose: i,
1655
1656
  style: p,
1656
- titleClassName: h,
1657
+ titleClassName: m,
1657
1658
  className: "max-h-[80dvh]",
1658
1659
  colors: _?.shell,
1659
1660
  children: /* @__PURE__ */ K("div", {
1660
1661
  className: "contents",
1661
- style: E,
1662
- children: [x && !S && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
1662
+ style: T,
1663
+ children: [b && !x && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
1663
1664
  className: "flex-shrink-0 px-4 py-[10px]",
1664
- children: /* @__PURE__ */ G(m, {
1665
- value: y,
1665
+ children: /* @__PURE__ */ G(E, {
1666
+ value: v,
1666
1667
  placeholder: r,
1667
- size: v.Standard,
1668
- onChange: b
1668
+ size: h.Standard,
1669
+ onChange: (e) => y(e ?? "")
1669
1670
  })
1670
- }), /* @__PURE__ */ G("div", { className: o(kt.divider, "h-px flex-shrink-0") })] }), S ? /* @__PURE__ */ G(it, { loadingLabel: u }) : C ? /* @__PURE__ */ G("div", {
1671
+ }), /* @__PURE__ */ G("div", { className: o(kt.divider, "h-px flex-shrink-0") })] }), x ? /* @__PURE__ */ G(it, { loadingLabel: u }) : S ? /* @__PURE__ */ G("div", {
1671
1672
  role: "list",
1672
1673
  className: o(kt.stateLabel, g, "px-4 py-4"),
1673
- children: C
1674
+ children: S
1674
1675
  }) : /* @__PURE__ */ G(Ot, {
1675
1676
  role: "list",
1676
1677
  className: "overflow-y-auto",
1677
- style: { height: Math.min(w.length, jt) * At },
1678
+ style: { height: Math.min(C.length, jt) * At },
1678
1679
  rowComponent: Mt,
1679
- rowCount: w.length,
1680
+ rowCount: C.length,
1680
1681
  rowHeight: At,
1681
1682
  rowProps: {
1682
- items: w,
1683
+ items: C,
1683
1684
  selectedDeploymentId: c,
1684
1685
  labelClassName: g,
1685
- query: y,
1686
- onSelect: T
1686
+ query: v,
1687
+ onSelect: w
1687
1688
  }
1688
1689
  })]
1689
1690
  })
1690
1691
  });
1691
- }, Pt = ({ deployments: e, selectedDeploymentId: t, onDeploymentChange: n, modelSelectorLabels: r, isStreaming: i, isMobile: a, isDisabled: s = !1, style: c, modelPickerOverlay: l, isPickerOpen: u, onPickerToggle: p, onPickerOpenChange: m }) => {
1692
- let [h, y] = U(!1), { selectorIcon: x, selectorAriaLabel: S, selectedLabel: C, menuItems: w, menuHeader: T, onOpenChange: E } = lt({
1692
+ }, Pt = ({ deployments: e, selectedDeploymentId: t, onDeploymentChange: n, modelSelectorLabels: r, isStreaming: i, isMobile: a, isDisabled: s = !1, style: c, modelPickerOverlay: l, isPickerOpen: u, onPickerToggle: p, onPickerOpenChange: g }) => {
1693
+ let [v, y] = U(!1), { selectorIcon: b, selectorAriaLabel: x, selectedLabel: S, menuItems: C, menuHeader: w, onOpenChange: T } = lt({
1693
1694
  deployments: e,
1694
1695
  selectedDeploymentId: t,
1695
1696
  onDeploymentChange: n,
1696
1697
  modelSelectorLabels: r
1697
1698
  });
1698
1699
  if (!e) return null;
1699
- let D = i || s ? "pointer-events-none opacity-50 cursor-not-allowed" : void 0, O = /* @__PURE__ */ G(te, {
1700
+ let E = i || s ? "pointer-events-none opacity-50 cursor-not-allowed" : void 0, D = /* @__PURE__ */ G(ne, {
1700
1701
  size: d.SM,
1701
1702
  className: Y.modelSelectorCaret,
1702
1703
  "aria-hidden": !0
1703
1704
  });
1704
- return a ? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(g, {
1705
- tooltip: C,
1706
- children: /* @__PURE__ */ G(b, {
1705
+ return a ? /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(j, {
1706
+ tooltip: S,
1707
+ children: /* @__PURE__ */ G(_, {
1707
1708
  icon: /* @__PURE__ */ K("div", {
1708
1709
  className: "flex items-center gap-1",
1709
- children: [x, O]
1710
+ children: [b, D]
1710
1711
  }),
1711
- "aria-label": S,
1712
+ "aria-label": x,
1712
1713
  onClick: () => {
1713
1714
  s || y(!0);
1714
1715
  },
1715
- className: o("w-[50px]", Y.modelSelectorButton, D)
1716
+ className: o("w-[50px]", Y.modelSelectorButton, E)
1716
1717
  })
1717
1718
  }), l ? /* @__PURE__ */ G(q, {
1718
- isOpen: h,
1719
+ isOpen: v,
1719
1720
  title: r?.ariaLabel ?? "Select model",
1720
1721
  closeLabel: r?.closeLabel ?? "Close",
1721
1722
  onClose: () => y(!1),
1722
1723
  style: c,
1723
1724
  children: l(() => y(!1))
1724
1725
  }) : /* @__PURE__ */ G(Nt, {
1725
- isOpen: h,
1726
+ isOpen: v,
1726
1727
  title: r?.ariaLabel ?? "Select model",
1727
1728
  closeLabel: r?.closeLabel ?? "Close",
1728
1729
  searchPlaceholder: r?.searchPlaceholder ?? "Search",
@@ -1734,50 +1735,50 @@ var kt = {
1734
1735
  errorLabel: r?.error,
1735
1736
  emptyLabel: r?.empty,
1736
1737
  style: c
1737
- })] }) : l ? /* @__PURE__ */ G(_, {
1738
+ })] }) : l ? /* @__PURE__ */ G(m, {
1738
1739
  placement: "top-end",
1739
1740
  matchReferenceWidth: !1,
1740
1741
  open: u,
1741
- onOpenChange: m,
1742
+ onOpenChange: g,
1742
1743
  trigger: [],
1743
1744
  outsideClosable: !0,
1744
- renderOverlay: () => l(() => m?.(!1)),
1745
+ renderOverlay: () => l(() => g?.(!1)),
1745
1746
  listClassName: "!w-[368px] !bg-layer-raised",
1746
- children: /* @__PURE__ */ G(g, {
1747
- tooltip: C,
1747
+ children: /* @__PURE__ */ G(j, {
1748
+ tooltip: S,
1748
1749
  children: /* @__PURE__ */ K("button", {
1749
1750
  type: "button",
1750
- "aria-label": S,
1751
+ "aria-label": x,
1751
1752
  "aria-disabled": s || void 0,
1752
- className: o("flex items-center justify-center gap-1 rounded-full p-2", Y.modelSelectorButton, D, s && Y.modelSelectorButtonDisabled),
1753
+ className: o("flex items-center justify-center gap-1 rounded-full p-2", Y.modelSelectorButton, E, s && Y.modelSelectorButtonDisabled),
1753
1754
  onClick: () => {
1754
1755
  !i && !s && p?.();
1755
1756
  },
1756
- children: [x, O]
1757
+ children: [b, D]
1757
1758
  })
1758
1759
  })
1759
1760
  }) : /* @__PURE__ */ G("div", {
1760
- className: o(s && D),
1761
+ className: o(s && E),
1761
1762
  "aria-disabled": s || void 0,
1762
- children: /* @__PURE__ */ G(g, {
1763
- tooltip: C,
1763
+ children: /* @__PURE__ */ G(j, {
1764
+ tooltip: S,
1764
1765
  children: /* @__PURE__ */ G(f, {
1765
- icon: x,
1766
- ariaLabel: S,
1767
- items: w,
1768
- menuHeader: T,
1766
+ icon: b,
1767
+ ariaLabel: x,
1768
+ items: C,
1769
+ menuHeader: w,
1769
1770
  placement: "bottom-end",
1770
1771
  matchReferenceWidth: !1,
1771
1772
  listClassName: "!w-[240px] !max-h-80",
1772
- onOpenChange: s ? void 0 : E,
1773
- size: v.Standard,
1774
- caretIcon: O,
1775
- iconClassName: s ? D : void 0,
1773
+ onOpenChange: s ? void 0 : T,
1774
+ size: h.Standard,
1775
+ caretIcon: D,
1776
+ iconClassName: s ? E : void 0,
1776
1777
  buttonClassName: o("bg-transparent", Y.modelSelectorButton, s && Y.modelSelectorButtonDisabled)
1777
1778
  })
1778
1779
  })
1779
1780
  });
1780
- }, Ft = 160, It = ({ message: e = "", messageRevision: t, onSend: n, onUploadAttachment: r, onStop: i, isStreaming: l = !1, onChange: u, onAttachmentsChange: f, placeholder: p = "Type a message...", ariaLabel: m, attachLabel: h = "Attach file", fileAccept: g, addMenuTitle: _ = "Add", menuTitle: v = "Menu", menuCloseLabel: y = "Close", removeLabel: b, retryLabel: x, sendLabel: S, stopLabel: C, micLabel: w = "Record voice message", stopRecordingLabel: T, discardRecordingLabel: E, colors: D, typography: O, className: k, pendingDropFiles: j = [], onDropFilesConsumed: ee, pendingAttachments: M = [], onPendingAttachmentsConsumed: N, pasteTextThreshold: te = 4e3, maxMessageLength: P = 5e4, deployments: ie, selectedDeploymentId: F, onDeploymentChange: I, modelSelectorLabels: ae, initialAttachments: oe = [], isStacked: se = !1, hideAddButton: ce = !1, hideAttachFile: le = !1, hideActionBar: ue = !1, renderFooterActions: L, isInputDisabled: R = !1, isModelSelectorDisabled: B = !1, isSendDisabled: de = !1, isAudioMessageSupported: fe = !1, sendOnEnter: pe = Fe.Enter, prefixAttachments: me = [], onRemovePrefixAttachment: he, chatSettings: _e, toolsMenuItems: ve, onToolToggle: ye, toolsMenuTitle: be, toolsBackLabel: Se, toolsChipLabels: Ce, promptsMenuOverlay: q, promptsMenuTitle: we, promptsBackLabel: De, autoFocus: Oe = !1, messageHistory: je, onDialFileSystemClick: Me, dialFileSystemLabel: Ne, validateAttachment: Ie, onAttachmentClick: Le, modelPickerOverlay: Re, maximumAttachmentsAmount: ze, onAttachmentsLimitExceeded: Be, isAttachmentsEnabled: Ve = !0, usageLimitsSlot: He, onMessageTooLong: Ue }) => {
1781
+ }, Ft = 160, It = ({ message: e = "", messageRevision: t, onSend: n, onUploadAttachment: r, onStop: i, isStreaming: l = !1, onChange: u, onAttachmentsChange: f, placeholder: p = "Type a message...", ariaLabel: m, attachLabel: h = "Attach file", fileAccept: g, addMenuTitle: _ = "Add", menuTitle: v = "Menu", menuCloseLabel: y = "Close", removeLabel: b, retryLabel: x, sendLabel: S, stopLabel: C, micLabel: w = "Record voice message", stopRecordingLabel: T, discardRecordingLabel: E, colors: D, typography: O, className: A, pendingDropFiles: j = [], onDropFilesConsumed: ee, pendingAttachments: te = [], onPendingAttachmentsConsumed: M, pasteTextThreshold: ne = 4e3, maxMessageLength: N = 5e4, deployments: ae, selectedDeploymentId: P, onDeploymentChange: F, modelSelectorLabels: oe, initialAttachments: se = [], isStacked: ce = !1, hideAddButton: le = !1, hideAttachFile: I = !1, hideActionBar: ue = !1, renderFooterActions: L, isInputDisabled: R = !1, isModelSelectorDisabled: B = !1, isSendDisabled: de = !1, isAudioMessageSupported: fe = !1, sendOnEnter: pe = Fe.Enter, prefixAttachments: me = [], onRemovePrefixAttachment: he, chatSettings: _e, toolsMenuItems: ve, onToolToggle: ye, toolsMenuTitle: be, toolsBackLabel: Se, toolsChipLabels: Ce, promptsMenuOverlay: q, promptsMenuTitle: we, promptsBackLabel: De, autoFocus: Oe = !1, messageHistory: je, onDialFileSystemClick: Me, dialFileSystemLabel: Ne, validateAttachment: Ie, onAttachmentClick: Le, modelPickerOverlay: Re, maximumAttachmentsAmount: ze, onAttachmentsLimitExceeded: Be, isAttachmentsEnabled: Ve = !0, usageLimitsSlot: He, onMessageTooLong: Ue }) => {
1781
1782
  let We = s(), [Ge, Ke] = U(!1), J = ke(je), Je = V(() => a({
1782
1783
  "--ci-bg": D?.background,
1783
1784
  "--ci-text": D?.text,
@@ -1794,7 +1795,7 @@ var kt = {
1794
1795
  }), [D]), Ye = V(() => Me ? [{
1795
1796
  key: "dial-fs",
1796
1797
  label: Ne ?? "DIAL file system",
1797
- icon: /* @__PURE__ */ G(ne, {
1798
+ icon: /* @__PURE__ */ G(re, {
1798
1799
  size: c,
1799
1800
  "aria-hidden": !0
1800
1801
  }),
@@ -1803,14 +1804,14 @@ var kt = {
1803
1804
  messageProp: e,
1804
1805
  messageRevision: t
1805
1806
  }), { attachments: Z, buildAttachments: rt, addAttachments: it, resetAttachments: at, handleRemove: ot, handleRetry: st, handleExpand: ct, hasBlockedAttachments: lt } = Te({
1806
- initialAttachments: oe,
1807
+ initialAttachments: se,
1807
1808
  onUploadAttachment: r,
1808
1809
  onAttachmentsChange: f,
1809
1810
  validateAttachment: Ie,
1810
1811
  pendingDropFiles: j,
1811
1812
  onDropFilesConsumed: ee,
1812
- pendingAttachments: M,
1813
- onPendingAttachmentsConsumed: N,
1813
+ pendingAttachments: te,
1814
+ onPendingAttachmentsConsumed: M,
1814
1815
  onExpandPastedText: z((e) => {
1815
1816
  Ze((t) => t ? `${t}\n${e}` : e);
1816
1817
  }, [Ze]),
@@ -1819,25 +1820,25 @@ var kt = {
1819
1820
  onAttachmentsLimitExceeded: Be
1820
1821
  }), { state: ut, analyserNodeRef: dt, errorMessage: ft, startRecording: pt, stopRecording: mt, discardRecording: ht } = Pe({ onAttachAudio: z((e) => {
1821
1822
  it(rt([e]));
1822
- }, [it, rt]) }), gt = H(null), Q = H(null), { handlePaste: _t } = xe(it, Ve ? te : Infinity), vt = z((e) => {
1823
+ }, [it, rt]) }), gt = H(null), Q = H(null), { handlePaste: _t } = xe(it, Ve ? ne : Infinity), vt = z((e) => {
1823
1824
  if (!Ve) {
1824
1825
  let t = e.clipboardData.getData("text/plain");
1825
- t.length >= P && Ue?.(t.length, P);
1826
+ t.length >= N && Ue?.(t.length, N);
1826
1827
  }
1827
1828
  _t(e);
1828
1829
  }, [
1829
1830
  Ve,
1830
- P,
1831
+ N,
1831
1832
  Ue,
1832
1833
  _t
1833
- ]), yt = X.trim().length > 0 || Z.length > 0, bt = yt && !lt && !de, { shouldRender: xt, isExiting: St, instanceKey: Ct } = Ee(!l && yt, Ft), wt = (ve?.some((e) => e.isSelected) ?? !1) && ye != null, $ = se || X.includes("\n") || $e || wt, Tt = ie === void 0 || F != null, Et = V(() => fe && !St && !l, [
1834
+ ]), yt = X.trim().length > 0 || Z.length > 0, bt = yt && !lt && !de, { shouldRender: xt, isExiting: St, instanceKey: Ct } = Ee(!l && yt, Ft), wt = (ve?.some((e) => e.isSelected) ?? !1) && ye != null, $ = ce || X.includes("\n") || $e || wt, Tt = ae === void 0 || P != null, Et = V(() => fe && !St && !l, [
1834
1835
  fe,
1835
1836
  St,
1836
1837
  l
1837
1838
  ]), Dt = async () => {
1838
1839
  if (de) return;
1839
- if (!Ve && X.length >= P) {
1840
- Ue?.(X.length, P);
1840
+ if (!Ve && X.length >= N) {
1841
+ Ue?.(X.length, N);
1841
1842
  return;
1842
1843
  }
1843
1844
  let e = X, t = Z;
@@ -1873,7 +1874,7 @@ var kt = {
1873
1874
  stopLabel: T,
1874
1875
  discardLabel: E,
1875
1876
  style: Je,
1876
- className: k
1877
+ className: A
1877
1878
  });
1878
1879
  let At = /* @__PURE__ */ G("textarea", {
1879
1880
  className: o(Y.textarea, O?.fontClassName || "dial-body-paragraph-text", "max-h-[272px] w-full resize-none overflow-y-auto border-0 bg-transparent outline-none [field-sizing:content]"),
@@ -1893,7 +1894,7 @@ var kt = {
1893
1894
  return /* @__PURE__ */ K("div", {
1894
1895
  ref: Q,
1895
1896
  style: Je,
1896
- className: o(Y.wrapper, R && Y.wrapperDisabled, "flex min-h-[64px] w-full max-w-[748px] flex-col justify-center gap-3 rounded-xl border shadow-md", "focus-within:outline focus-within:-outline-offset-1 active:outline active:-outline-offset-1", Z.length > 6 ? "py-3 ps-3" : "p-3", k),
1897
+ className: o(Y.wrapper, R && Y.wrapperDisabled, "flex min-h-[64px] w-full max-w-[748px] flex-col justify-center gap-3 rounded-xl border shadow-md", "focus-within:outline focus-within:-outline-offset-1 active:outline active:-outline-offset-1", Z.length > 6 ? "py-3 ps-3" : "p-3", A),
1897
1898
  children: [(me.length > 0 || Z.length > 0) && /* @__PURE__ */ G(ge, {
1898
1899
  attachments: [...me, ...Z],
1899
1900
  onRemove: (e) => {
@@ -1912,7 +1913,7 @@ var kt = {
1912
1913
  }), ue ? $ && At : /* @__PURE__ */ K("div", {
1913
1914
  className: o("flex items-center gap-2", $ ? "flex-wrap" : "flex-wrap desktop:flex-nowrap"),
1914
1915
  children: [
1915
- !ce && /* @__PURE__ */ K("div", {
1916
+ !le && /* @__PURE__ */ K("div", {
1916
1917
  className: o("flex", "order-2", !$ && "desktop:order-1"),
1917
1918
  children: [/* @__PURE__ */ G("input", {
1918
1919
  ref: gt,
@@ -1924,7 +1925,7 @@ var kt = {
1924
1925
  tabIndex: -1,
1925
1926
  onChange: kt
1926
1927
  }), /* @__PURE__ */ G(qe, {
1927
- onAttachClick: le ? void 0 : () => gt.current?.click(),
1928
+ onAttachClick: I ? void 0 : () => gt.current?.click(),
1928
1929
  attachLabel: h,
1929
1930
  addMenuTitle: _,
1930
1931
  menuTitle: v,
@@ -1964,10 +1965,10 @@ var kt = {
1964
1965
  }) : /* @__PURE__ */ K(W, { children: [
1965
1966
  He,
1966
1967
  /* @__PURE__ */ G(Pt, {
1967
- deployments: ie,
1968
- selectedDeploymentId: F,
1969
- onDeploymentChange: I,
1970
- modelSelectorLabels: ae,
1968
+ deployments: ae,
1969
+ selectedDeploymentId: P,
1970
+ onDeploymentChange: F,
1971
+ modelSelectorLabels: oe,
1971
1972
  isStreaming: l,
1972
1973
  isMobile: We,
1973
1974
  isDisabled: B,
@@ -1986,8 +1987,8 @@ var kt = {
1986
1987
  ariaLabel: S,
1987
1988
  isExiting: St
1988
1989
  }, Ct)
1989
- ] }), Et && /* @__PURE__ */ G(A, {
1990
- icon: /* @__PURE__ */ G(re, {
1990
+ ] }), Et && /* @__PURE__ */ G(k, {
1991
+ icon: /* @__PURE__ */ G(ie, {
1991
1992
  size: d.LG,
1992
1993
  "aria-hidden": !0
1993
1994
  }),
@@ -2021,30 +2022,30 @@ var kt = {
2021
2022
  })
2022
2023
  })]
2023
2024
  });
2024
- }, zt = ({ message: e, initialAttachments: t = [], onCancel: n, onSave: i, onUploadAttachment: a, cancelLabel: s = "Cancel", saveLabel: l = "Save & Submit", ariaLabel: u, removeLabel: d, retryLabel: f, addMenuTitle: p = "Add", attachLabel: m = "Attach file", menuTitle: h = "Menu", menuCloseLabel: g = "Close", className: _, pendingDropFiles: v, onDropFilesConsumed: y, validateAttachment: b, isAttachmentsEnabled: x, hideAttachFile: C = !1, fileAccept: w, maximumAttachmentsAmount: E, onAttachmentsLimitExceeded: D, onDialFileSystemClick: O, dialFileSystemLabel: k, pendingAttachments: A, onPendingAttachmentsConsumed: j, onAttachmentClick: ee, pasteTextThreshold: M, maxMessageLength: N = 5e4, onMessageTooLong: te }) => {
2025
- let P = H(null), [re, ie] = U([]);
2025
+ }, zt = ({ message: e, initialAttachments: t = [], onCancel: n, onSave: i, onUploadAttachment: a, cancelLabel: s = "Cancel", saveLabel: l = "Save & Submit", ariaLabel: u, removeLabel: d, retryLabel: f, addMenuTitle: p = "Add", attachLabel: m = "Attach file", menuTitle: h = "Menu", menuCloseLabel: g = "Close", className: _, pendingDropFiles: v, onDropFilesConsumed: b, validateAttachment: x, isAttachmentsEnabled: C, hideAttachFile: w = !1, fileAccept: T, maximumAttachmentsAmount: E, onAttachmentsLimitExceeded: D, onDialFileSystemClick: O, dialFileSystemLabel: k, pendingAttachments: A, onPendingAttachmentsConsumed: j, onAttachmentClick: ee, pasteTextThreshold: te, maxMessageLength: M = 5e4, onMessageTooLong: ne }) => {
2026
+ let N = H(null), [ie, ae] = U([]);
2026
2027
  B(() => {
2027
- v?.length && (ie(v), y?.());
2028
- }, [v, y]);
2029
- let [F, I] = U(e ?? ""), [ae, oe] = U([]), [se, ce] = U(t), le = ae.some((e) => e.status === r.Loading || e.status === r.Error), ue = (F.trim().length > 0 || ae.length > 0 || se.length > 0) && !le, L = (e) => {
2030
- ce((t) => t.filter((t) => t.id !== e));
2028
+ v?.length && (ae(v), b?.());
2029
+ }, [v, b]);
2030
+ let [P, F] = U(e ?? ""), [oe, se] = U([]), [ce, le] = U(t), I = oe.some((e) => e.status === r.Loading || e.status === r.Error), ue = (P.trim().length > 0 || oe.length > 0 || ce.length > 0) && !I, L = (e) => {
2031
+ le((t) => t.filter((t) => t.id !== e));
2031
2032
  }, R = z((e, t) => {
2032
- i(e, se, t);
2033
- }, [se, i]), de = () => {
2033
+ i(e, ce, t);
2034
+ }, [ce, i]), de = () => {
2034
2035
  if (ue) {
2035
- if (!x && F.length >= N) {
2036
- te?.(F.length, N);
2036
+ if (!C && P.length >= M) {
2037
+ ne?.(P.length, M);
2037
2038
  return;
2038
2039
  }
2039
- R(F, ae);
2040
+ R(P, oe);
2040
2041
  }
2041
- }, fe = z(() => ie([]), []), pe = z((e) => {
2042
+ }, fe = z(() => ae([]), []), pe = z((e) => {
2042
2043
  let t = Array.from(e.target.files ?? []);
2043
- t.length !== 0 && (e.target.value = "", ie(t));
2044
+ t.length !== 0 && (e.target.value = "", ae(t));
2044
2045
  }, []), me = V(() => O ? [{
2045
2046
  key: "dial-fs",
2046
2047
  label: k ?? "DIAL file system",
2047
- icon: /* @__PURE__ */ G(ne, {
2048
+ icon: /* @__PURE__ */ G(re, {
2048
2049
  size: c,
2049
2050
  "aria-hidden": !0
2050
2051
  }),
@@ -2057,42 +2058,42 @@ var kt = {
2057
2058
  ariaLabel: u,
2058
2059
  isStacked: !0,
2059
2060
  hideActionBar: !0,
2060
- pendingDropFiles: re,
2061
+ pendingDropFiles: ie,
2061
2062
  onDropFilesConsumed: fe,
2062
2063
  onSend: R,
2063
2064
  onUploadAttachment: a,
2064
- onChange: I,
2065
- onAttachmentsChange: oe,
2065
+ onChange: F,
2066
+ onAttachmentsChange: se,
2066
2067
  removeLabel: d,
2067
2068
  retryLabel: f,
2068
2069
  className: "max-w-full",
2069
- prefixAttachments: se,
2070
+ prefixAttachments: ce,
2070
2071
  onRemovePrefixAttachment: L,
2071
- validateAttachment: b,
2072
- isAttachmentsEnabled: x,
2072
+ validateAttachment: x,
2073
+ isAttachmentsEnabled: C,
2073
2074
  maximumAttachmentsAmount: E,
2074
2075
  onAttachmentsLimitExceeded: D,
2075
2076
  pendingAttachments: A,
2076
2077
  onPendingAttachmentsConsumed: j,
2077
2078
  onAttachmentClick: ee,
2078
- pasteTextThreshold: M,
2079
- maxMessageLength: N,
2080
- onMessageTooLong: te
2079
+ pasteTextThreshold: te,
2080
+ maxMessageLength: M,
2081
+ onMessageTooLong: ne
2081
2082
  }), /* @__PURE__ */ K("div", {
2082
2083
  className: "flex items-center justify-between",
2083
2084
  children: [/* @__PURE__ */ G("div", {
2084
2085
  className: "flex",
2085
- children: !C && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("input", {
2086
- ref: P,
2086
+ children: !w && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("input", {
2087
+ ref: N,
2087
2088
  type: "file",
2088
2089
  multiple: !0,
2089
- accept: w,
2090
+ accept: T,
2090
2091
  className: "sr-only",
2091
2092
  "aria-hidden": !0,
2092
2093
  tabIndex: -1,
2093
2094
  onChange: pe
2094
2095
  }), /* @__PURE__ */ G(qe, {
2095
- onAttachClick: () => P.current?.click(),
2096
+ onAttachClick: () => N.current?.click(),
2096
2097
  attachLabel: m,
2097
2098
  addMenuTitle: p,
2098
2099
  menuTitle: h,
@@ -2101,10 +2102,10 @@ var kt = {
2101
2102
  })] })
2102
2103
  }), /* @__PURE__ */ K("div", {
2103
2104
  className: "flex gap-2",
2104
- children: [/* @__PURE__ */ G(S, {
2105
+ children: [/* @__PURE__ */ G(y, {
2105
2106
  label: s,
2106
2107
  onClick: n
2107
- }), /* @__PURE__ */ G(T, {
2108
+ }), /* @__PURE__ */ G(S, {
2108
2109
  label: l,
2109
2110
  onClick: de,
2110
2111
  disabled: !ue