@factorialco/f0-react 6.8.4 → 6.9.0

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.
@@ -1,6 +1,6 @@
1
1
  import { jsxs as a, jsx as t, Fragment as R1 } from "react/jsx-runtime";
2
- import { useInsertionEffect as Ar, forwardRef as m, useRef as $, useEffect as W, useLayoutEffect as ie, useState as D, useId as G1, useMemo as K, useCallback as O, createContext as W1, useContext as I1, createElement as Er, memo as $r } from "react";
3
- import { dg as Br, aI as Ir, dh as Pr, an as nt, cf as Dr, di as jr, dj as _r, dk as Zr, dl as Or, cg as Ur, cl as st, ce as zr, dm as Gr, ax as ae, dn as Wr, b7 as qr, dp as Xr, dq as Yr, dr as Kr, aP as Qr, ds as Jr, cL as eo, y as it, aC as to, dt as ro, o as le, ar as at, ai as q1, n as lt, bF as oo, cj as no, du as so, bs as io, cK as ao, ap as F1, aZ as lo, bJ as ct, dv as co, cI as uo, l as y1, cG as fo, dw as ho, ca as dt, br as po, dx as mo, dy as Co, dz as go, dA as wo, dB as vo, dC as ut, cz as xo, cA as bo, dD as Lo, dE as ko, dF as yo, dG as Mo, dH as Ro, bU as Fo, ci as No, dI as Vo, dJ as So, dK as To, E as Ho, dL as Ao, dM as Eo, dN as $o, dO as Bo, dP as Io, bT as Po, cJ as Do, aA as jo, cv as _o, dQ as Zo, dR as Oo, dS as Uo, dT as zo, dU as Go, dV as Wo, dW as qo, aV as Xo, bV as Yo, U as ft, dX as Ko, ah as Qo, aq as Jo, bW as ht, c9 as en, R as pt, dY as tn, i as rn, bI as on, bH as nn, dZ as sn, d_ as an, bX as mt, bY as ln, bZ as cn, bq as dn, a$ as un, d$ as fn, j as hn, bD as Ct, bC as gt, bx as pn, e0 as wt, az as mn, ch as ce, q as Cn, bA as de, e1 as gn, e2 as wn, e3 as ue, O as vn, Q as xn, cH as vt, e4 as bn, af as Ln, ae as kn, e5 as yn, e6 as Mn, e7 as Rn, e8 as Fn, c7 as Nn, e9 as xt, ea as Vn, aH as Sn, aB as Tn, eb as Hn, ag as i1, a7 as H1, cq as An, u as G, c6 as En, S as h1, bS as bt, V as a1, as as $n, m as w1, ec as Bn, aD as l1, aJ as v1, ad as M1, a6 as Q, cQ as Lt, t as fe, ed as In, x as he, b as k1, c4 as Pn, ee as Dn, c5 as jn, aj as _n, bp as Zn, av as pe, b_ as On, b$ as Un, c0 as zn, c1 as Me, at as Gn, aQ as kt, bf as yt, bR as Wn, b6 as qn, cY as Xn, ef as Yn, eg as Kn, bl as Mt, eh as Qn, cU as Jn, ei as es, bh as B1, by as Rt, ej as Ft, bz as Nt, c as oe, ck as Re, ek as Vt, el as ts, em as rs, aG as os, en as ns, bE as me, cw as ss, eo as is, ep as as, eq as ls, er as cs, es as ds, w as us, s as fs, v as St, ab as hs, ac as ps, aE as Fe, et as Tt, eu as Ht, ev as ms, ew as Cs, aM as gs, ay as ws, ex as vs, ey as xs, d as bs } from "./F0CanvasPanel-BImifyj_.js";
2
+ import { useInsertionEffect as Hr, forwardRef as m, useRef as $, useEffect as W, useLayoutEffect as ie, useState as D, useId as G1, useMemo as K, useCallback as O, createContext as W1, useContext as I1, createElement as Ar, memo as Er } from "react";
3
+ import { dc as $r, aI as Br, dd as Ir, an as nt, cf as Pr, de as Dr, df as jr, dg as _r, dh as Zr, cg as Or, cl as st, ce as Ur, di as zr, ax as ae, dj as Gr, b7 as Wr, dk as qr, dl as Xr, dm as Yr, aP as Kr, dn as Qr, cF as Jr, y as it, aC as eo, dp as to, o as le, ar as at, ai as q1, n as lt, bF as ro, cj as oo, dq as no, bs as so, cE as io, ap as F1, aZ as ao, bJ as ct, dr as lo, cC as co, l as y1, cA as uo, ds as fo, ca as dt, br as ho, dt as po, du as mo, dv as Co, dw as go, dx as wo, dy as ut, dz as vo, dA as xo, dB as bo, dC as Lo, dD as ko, dE as yo, dF as Mo, bU as Ro, ci as Fo, dG as No, dH as Vo, dI as So, E as To, dJ as Ho, dK as Ao, dL as Eo, dM as $o, dN as Bo, bT as Io, cD as Po, aA as Do, cx as jo, dO as _o, dP as Zo, dQ as Oo, dR as Uo, dS as zo, dT as Go, cG as Wo, aV as qo, bV as Xo, U as ft, dU as Yo, ah as Ko, aq as Qo, bW as ht, c9 as Jo, R as pt, dV as en, i as tn, bI as rn, bH as on, dW as nn, dX as sn, bX as mt, bY as an, bZ as ln, bq as cn, a$ as dn, dY as un, j as fn, bD as Ct, bC as gt, bx as hn, dZ as wt, az as pn, ch as ce, q as mn, bA as de, d_ as Cn, d$ as gn, e0 as ue, O as wn, Q as vn, cB as vt, e1 as xn, af as bn, ae as Ln, e2 as kn, e3 as yn, e4 as Mn, e5 as Rn, c7 as Fn, e6 as xt, e7 as Nn, aH as Vn, aB as Sn, e8 as Tn, a7 as H1, cq as Hn, u as G, c6 as An, ag as c1, S as h1, bS as bt, V as i1, as as En, m as w1, e9 as $n, aD as a1, aJ as v1, ad as M1, a6 as Q, cM as Lt, t as fe, ea as Bn, x as he, b as k1, c4 as In, eb as Pn, c5 as Dn, aj as jn, bp as _n, av as pe, b_ as Zn, b$ as On, c0 as Un, c1 as Me, at as zn, aQ as kt, bf as yt, bR as Gn, b6 as Wn, cU as qn, ec as Xn, ed as Yn, bl as Mt, cH as Kn, cQ as Qn, ee as Jn, bh as B1, by as Rt, ef as Ft, bz as Nt, c as oe, ck as Re, eg as Vt, eh as es, ei as ts, ej as rs, aG as os, ek as ns, bE as me, cw as ss, el as is, em as as, en as ls, eo as cs, ep as ds, w as us, s as fs, v as St, ab as hs, ac as ps, aE as Fe, eq as Tt, er as Ht, es as ms, et as Cs, aM as gs, ay as ws, eu as vs, ev as xs, d as bs } from "./F0CanvasPanel-B6yrVWWP.js";
4
4
  import { d as k, f as p1, g as Ls } from "./tooltip-Cik7KBQT.js";
5
5
  import { createPortal as At } from "react-dom";
6
6
  import { defaultTranslations as ks } from "./i18n-provider-defaults.js";
@@ -8,7 +8,7 @@ import { useTrackVolume as ys } from "@livekit/components-react";
8
8
  import { F as Ms } from "./Printer-BD-FEi_2.js";
9
9
  import { F as Rs, c as Fs, b as Ns, a as Vs } from "./VolumeMuted-DKLKhxyd.js";
10
10
  function Ss(e, r, o) {
11
- Ar(() => e.on(r, o), [e, r, o]);
11
+ Hr(() => e.on(r, o), [e, r, o]);
12
12
  }
13
13
  const Ts = (e, r) => /* @__PURE__ */ a(
14
14
  "svg",
@@ -3846,39 +3846,39 @@ const T0 = (e, r) => /* @__PURE__ */ a(
3846
3846
  ), p2 = m(h2), m2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3847
3847
  __proto__: null,
3848
3848
  AcademicCap: Hs,
3849
- Add: Br,
3850
- Ai: Ir,
3851
- Alert: Pr,
3849
+ Add: $r,
3850
+ Ai: Br,
3851
+ Alert: Ir,
3852
3852
  AlertCircle: nt,
3853
- AlertCircleLine: Dr,
3854
- AlignTextCenter: jr,
3855
- AlignTextJustify: _r,
3856
- AlignTextLeft: Zr,
3857
- AlignTextRight: Or,
3853
+ AlertCircleLine: Pr,
3854
+ AlignTextCenter: Dr,
3855
+ AlignTextJustify: jr,
3856
+ AlignTextLeft: _r,
3857
+ AlignTextRight: Zr,
3858
3858
  Appearance: Es,
3859
3859
  Archive: Bs,
3860
3860
  ArchiveOpen: Ps,
3861
- ArrowCycle: Ur,
3861
+ ArrowCycle: Or,
3862
3862
  ArrowDown: st,
3863
- ArrowLeft: zr,
3864
- ArrowRight: Gr,
3863
+ ArrowLeft: Ur,
3864
+ ArrowRight: zr,
3865
3865
  ArrowUp: ae,
3866
- Ascending: Wr,
3866
+ Ascending: Gr,
3867
3867
  Balance: js,
3868
3868
  Bank: Zs,
3869
3869
  BarGraph: Us,
3870
3870
  Basket: Gs,
3871
- Bell: qr,
3872
- Bold: Xr,
3871
+ Bell: Wr,
3872
+ Bold: qr,
3873
3873
  BookOpen: qs,
3874
- Bookmark: Yr,
3875
- BookmarkFilled: Kr,
3874
+ Bookmark: Xr,
3875
+ BookmarkFilled: Yr,
3876
3876
  Briefcase: Ys,
3877
3877
  Bucket: Qs,
3878
3878
  Building: ei,
3879
- Bullet: Qr,
3880
- Calculator: Jr,
3881
- Calendar: eo,
3879
+ Bullet: Kr,
3880
+ Calculator: Qr,
3881
+ Calendar: Jr,
3882
3882
  CalendarArrowDown: ri,
3883
3883
  CalendarArrowLeft: ni,
3884
3884
  CalendarArrowRight: ii,
@@ -3890,125 +3890,125 @@ const T0 = (e, r) => /* @__PURE__ */ a(
3890
3890
  ChartPie: wi,
3891
3891
  ChartVerticalBars: xi,
3892
3892
  Check: it,
3893
- CheckCircle: to,
3893
+ CheckCircle: eo,
3894
3894
  CheckCircleLine: Li,
3895
- CheckDouble: ro,
3895
+ CheckDouble: to,
3896
3896
  ChevronDown: le,
3897
3897
  ChevronLeft: at,
3898
3898
  ChevronRight: q1,
3899
3899
  ChevronUp: lt,
3900
3900
  Chip: yi,
3901
- Circle: oo,
3902
- Clock: no,
3901
+ Circle: ro,
3902
+ Clock: oo,
3903
3903
  ClockBack: Ri,
3904
3904
  ClockPlus: Ni,
3905
3905
  Cloud: Si,
3906
- Code: so,
3906
+ Code: no,
3907
3907
  Coffee: Hi,
3908
3908
  Command: Ei,
3909
- Comment: io,
3910
- Completed: ao,
3909
+ Comment: so,
3910
+ Completed: io,
3911
3911
  Computer: Bi,
3912
3912
  Contactless: Pi,
3913
3913
  CornerHandle: ji,
3914
3914
  CreditCard: Zi,
3915
3915
  Cross: F1,
3916
- CrossedCircle: lo,
3916
+ CrossedCircle: ao,
3917
3917
  Crown: Ui,
3918
3918
  CursorClick: Gi,
3919
3919
  Delete: ct,
3920
3920
  Deny: qi,
3921
- Descending: co,
3921
+ Descending: lo,
3922
3922
  Desktop: Yi,
3923
3923
  DollarBill: Qi,
3924
3924
  DollarReset: ea,
3925
- DottedCircle: uo,
3925
+ DottedCircle: co,
3926
3926
  Download: y1,
3927
- DropdownDefault: fo,
3928
- DropdownOpen: ho,
3927
+ DropdownDefault: uo,
3928
+ DropdownOpen: fo,
3929
3929
  Ellipsis: dt,
3930
- EllipsisHorizontal: po,
3931
- Envelope: mo,
3930
+ EllipsisHorizontal: ho,
3931
+ Envelope: po,
3932
3932
  EnvelopeOpen: ra,
3933
- Equal: Co,
3934
- EqualApproximately: go,
3935
- EqualGreater: wo,
3936
- EqualLess: vo,
3933
+ Equal: mo,
3934
+ EqualApproximately: Co,
3935
+ EqualGreater: go,
3936
+ EqualLess: wo,
3937
3937
  Exit: na,
3938
3938
  ExternalLink: ut,
3939
- EyeInvisible: xo,
3940
- EyeVisible: bo,
3941
- FaceNegative: Lo,
3942
- FaceNeutral: ko,
3943
- FacePositive: yo,
3944
- FaceSuperNegative: Mo,
3945
- FaceSuperPositive: Ro,
3939
+ EyeInvisible: vo,
3940
+ EyeVisible: xo,
3941
+ FaceNegative: bo,
3942
+ FaceNeutral: Lo,
3943
+ FacePositive: ko,
3944
+ FaceSuperNegative: yo,
3945
+ FaceSuperPositive: Mo,
3946
3946
  Feed: ia,
3947
- File: Fo,
3947
+ File: Ro,
3948
3948
  FileFilled: la,
3949
3949
  FileSigned: da,
3950
- Files: No,
3951
- Filter: Vo,
3952
- FitView: So,
3950
+ Files: Fo,
3951
+ Filter: No,
3952
+ FitView: Vo,
3953
3953
  Flag: fa,
3954
3954
  Flask: pa,
3955
- Folder: To,
3955
+ Folder: So,
3956
3956
  Folders: Ca,
3957
- Globe: Ho,
3957
+ Globe: To,
3958
3958
  Graph: wa,
3959
- Greater: Ao,
3959
+ Greater: Ho,
3960
3960
  Group: xa,
3961
3961
  GroupBy: La,
3962
- Handle: Eo,
3962
+ Handle: Ao,
3963
3963
  Handshake: ya,
3964
3964
  HardDrive: Ra,
3965
3965
  HeadcountPlanning: Na,
3966
- Heading1: $o,
3967
- Heading2: Bo,
3968
- Heading3: Io,
3966
+ Heading1: Eo,
3967
+ Heading2: $o,
3968
+ Heading3: Bo,
3969
3969
  Headset: Sa,
3970
3970
  Heart: Ha,
3971
3971
  HoldHeart: Ea,
3972
3972
  Home: Ba,
3973
3973
  Hub: Pa,
3974
- Image: Po,
3975
- InProgressTask: Do,
3974
+ Image: Io,
3975
+ InProgressTask: Po,
3976
3976
  Inbox: ja,
3977
3977
  Info: Za,
3978
- InfoCircle: jo,
3979
- InfoCircleLine: _o,
3978
+ InfoCircle: Do,
3979
+ InfoCircleLine: jo,
3980
3980
  InputField: Ua,
3981
- Italic: Zo,
3982
- Kanban: Oo,
3981
+ Italic: _o,
3982
+ Kanban: Zo,
3983
3983
  Keyboard: Ga,
3984
3984
  Laptop: qa,
3985
- LayersFront: Uo,
3986
- Less: zo,
3985
+ LayersFront: Oo,
3986
+ Less: Uo,
3987
3987
  Lightbulb: Et,
3988
- Link: Go,
3988
+ Link: zo,
3989
3989
  LinkRemove: Ka,
3990
- List: Wo,
3991
- LockLocked: qo,
3990
+ List: Go,
3991
+ LockLocked: Wo,
3992
3992
  LockUnlocked: Ja,
3993
- LogoAvatar: Xo,
3993
+ LogoAvatar: qo,
3994
3994
  LogoEruditai: t5,
3995
3995
  LogoTravelperk: o5,
3996
- Marker: Yo,
3996
+ Marker: Xo,
3997
3997
  Marketplace: s5,
3998
3998
  Masonry: a5,
3999
3999
  Maximize: ft,
4000
- MaximizeHorizontal: Ko,
4001
- Megaphone: Qo,
4002
- Menu: Jo,
4000
+ MaximizeHorizontal: Yo,
4001
+ Megaphone: Ko,
4002
+ Menu: Qo,
4003
4003
  MessageFilled: c5,
4004
4004
  MessageFrown: u5,
4005
4005
  MessageHeart: h5,
4006
4006
  Messages: m5,
4007
4007
  Microphone: ht,
4008
- MicrophoneNegative: en,
4008
+ MicrophoneNegative: Jo,
4009
4009
  Minimize: pt,
4010
- MinimizeHorizontal: tn,
4011
- Minus: rn,
4010
+ MinimizeHorizontal: en,
4011
+ Minus: tn,
4012
4012
  Mobile: g5,
4013
4013
  Money: $t,
4014
4014
  MoneyBag: x5,
@@ -4016,143 +4016,100 @@ const T0 = (e, r) => /* @__PURE__ */ a(
4016
4016
  MonitorSmartphone: y5,
4017
4017
  Moon: R5,
4018
4018
  Mouse: N5,
4019
- MoveDown: on,
4019
+ MoveDown: rn,
4020
4020
  MoveTop: S5,
4021
- MoveUp: nn,
4021
+ MoveUp: on,
4022
4022
  Multitask: H5,
4023
4023
  New: Ce,
4024
4024
  Numbers: $5,
4025
4025
  Office: I5,
4026
- OlList: sn,
4027
- Organization: an,
4026
+ OlList: nn,
4027
+ Organization: sn,
4028
4028
  PalmTree: D5,
4029
4029
  Paperclip: mt,
4030
4030
  PartiallyCompleted: _5,
4031
4031
  Password: O5,
4032
4032
  PauseCircle: z5,
4033
- Pencil: ln,
4034
- People: cn,
4035
- Person: dn,
4033
+ Pencil: an,
4034
+ People: ln,
4035
+ Person: cn,
4036
4036
  PersonMinus: W5,
4037
- PersonNegative: un,
4037
+ PersonNegative: dn,
4038
4038
  PersonPlus: X5,
4039
4039
  Phone: K5,
4040
4040
  Pig: J5,
4041
4041
  Pin: t0,
4042
4042
  PixBrazil: o0,
4043
- Placeholder: fn,
4043
+ Placeholder: un,
4044
4044
  Plane: s0,
4045
- Plus: hn,
4045
+ Plus: fn,
4046
4046
  Present: a0,
4047
4047
  Printer: Ms,
4048
4048
  Proyector: c0,
4049
4049
  PushPin: Ct,
4050
4050
  PushPinSolid: gt,
4051
- Question: pn,
4051
+ Question: hn,
4052
4052
  QuestionCircle: u0,
4053
4053
  Quote: wt,
4054
- Reaction: mn,
4054
+ Reaction: pn,
4055
4055
  Receipt: h0,
4056
4056
  Record: m0,
4057
4057
  RemoveFavorite: g0,
4058
4058
  Replace: v0,
4059
4059
  Reply: ce,
4060
- Reset: Cn,
4060
+ Reset: mn,
4061
4061
  Rocket: b0,
4062
4062
  Salad: k0,
4063
4063
  Save: M0,
4064
4064
  Schedule: F0,
4065
4065
  Search: de,
4066
- SearchPerson: gn,
4066
+ SearchPerson: Cn,
4067
4067
  Settings: Rs,
4068
- Share: wn,
4068
+ Share: gn,
4069
4069
  Shield: V0,
4070
4070
  ShoppingCart: Bt,
4071
4071
  SignPost: H0,
4072
4072
  Sleep: E0,
4073
4073
  Sliders: ue,
4074
- SolidPause: vn,
4075
- SolidPlay: xn,
4074
+ SolidPause: wn,
4075
+ SolidPlay: vn,
4076
4076
  SolidStop: vt,
4077
4077
  Sort: B0,
4078
4078
  Sparkles: P0,
4079
- Spinner: bn,
4079
+ Spinner: xn,
4080
4080
  Split: j0,
4081
- Star: Ln,
4082
- StarFilled: kn,
4083
- Strikethrough: yn,
4081
+ Star: bn,
4082
+ StarFilled: Ln,
4083
+ Strikethrough: kn,
4084
4084
  Suitcase: Z0,
4085
4085
  Swap: U0,
4086
- Table: Mn,
4086
+ Table: yn,
4087
4087
  Tablet: G0,
4088
4088
  Tag: q0,
4089
4089
  Target: Y0,
4090
- TextSize: Rn,
4090
+ TextSize: Mn,
4091
4091
  ThumbsDown: It,
4092
4092
  ThumbsDownFilled: Pt,
4093
4093
  ThumbsUp: Dt,
4094
4094
  ThumbsUpFilled: jt,
4095
4095
  Timer: r2,
4096
- Underline: Fn,
4097
- Upload: Nn,
4096
+ Underline: Rn,
4097
+ Upload: Fn,
4098
4098
  Upsell: xt,
4099
4099
  UserProtected: n2,
4100
- Video: Vn,
4101
- VideoRecorder: Sn,
4100
+ Video: Nn,
4101
+ VideoRecorder: Vn,
4102
4102
  VideoRecorderNegative: i2,
4103
4103
  VolumeHigh: Fs,
4104
4104
  VolumeMid: Ns,
4105
4105
  VolumeMuted: Vs,
4106
4106
  Wallet: l2,
4107
- Warning: Tn,
4107
+ Warning: Sn,
4108
4108
  Watch: d2,
4109
4109
  WhatsappChat: f2,
4110
4110
  Wifi: p2,
4111
- Windows: Hn
4112
- }, Symbol.toStringTag, { value: "Module" })), C2 = (e, r) => /* @__PURE__ */ t(
4113
- "svg",
4114
- {
4115
- xmlns: "http://www.w3.org/2000/svg",
4116
- fill: "none",
4117
- viewBox: "0 0 24 24",
4118
- ref: r,
4119
- ...e,
4120
- children: /* @__PURE__ */ t(
4121
- "path",
4122
- {
4123
- fill: "currentColor",
4124
- d: "M11.9912 16C13.452 16.0001 14.8895 16.4311 16.1289 17.2705C16.6275 17.6086 16.6225 18.3843 16.1221 18.7188C14.8843 19.5444 13.4491 19.9999 11.9912 20C10.4905 19.9999 9.08362 19.5285 7.88184 18.7305C7.37377 18.3931 7.37263 17.6066 7.88086 17.2695C9.11404 16.4517 10.5409 16.0001 11.9912 16ZM5.27051 7.87109C5.60858 7.37248 6.38428 7.37747 6.71875 7.87793C7.54437 9.11572 7.9999 10.5509 8 12.0088C7.99994 13.5095 7.52845 14.9164 6.73047 16.1182C6.39307 16.6262 5.60663 16.6274 5.26953 16.1191C4.45167 14.886 4.00006 13.4591 4 12.0088C4.0001 10.548 4.43107 9.1105 5.27051 7.87109ZM17.2705 7.87109C17.6086 7.37248 18.3843 7.37747 18.7188 7.87793C19.5444 9.11572 19.9999 10.5509 20 12.0088C19.9999 13.5095 19.5285 14.9164 18.7305 16.1182C18.3931 16.6262 17.6066 16.6274 17.2695 16.1191C16.4517 14.886 16.0001 13.4591 16 12.0088C16.0001 10.548 16.4311 9.1105 17.2705 7.87109ZM11.9912 4C13.452 4.0001 14.8895 4.43107 16.1289 5.27051C16.6275 5.60858 16.6225 6.38428 16.1221 6.71875C14.8843 7.54437 13.4491 7.9999 11.9912 8C10.4905 7.99994 9.08362 7.52845 7.88184 6.73047C7.37377 6.39307 7.37263 5.60663 7.88086 5.26953C9.11404 4.45167 10.5409 4.00006 11.9912 4Z"
4125
- }
4126
- )
4127
- }
4128
- ), g2 = m(C2), w2 = [
4129
- "append",
4130
- "className",
4131
- "pressed",
4132
- "compact",
4133
- "noTitle",
4134
- "noAutoTooltip",
4135
- "style",
4136
- "variant",
4137
- "loading",
4138
- "emoji"
4139
- ], _t = m((e, r) => {
4140
- const o = w2.reduce((n, s) => {
4141
- const { [s]: i, ...c } = n;
4142
- return c;
4143
- }, e);
4144
- return /* @__PURE__ */ t(
4145
- i1,
4146
- {
4147
- ...o,
4148
- variant: "ai",
4149
- ref: r,
4150
- iconRotate: e.icon == g2
4151
- }
4152
- );
4153
- });
4154
- _t.displayName = "AIButton";
4155
- const Zt = {
4111
+ Windows: Tn
4112
+ }, Symbol.toStringTag, { value: "Module" })), _t = {
4156
4113
  background: {
4157
4114
  transparent: "bg-transparent",
4158
4115
  primary: "bg-f1-background",
@@ -4177,7 +4134,7 @@ const Zt = {
4177
4134
  "selected-bold": "bg-f1-background-selected-bold",
4178
4135
  overlay: "bg-f1-background-overlay"
4179
4136
  }
4180
- }, Ot = {
4137
+ }, Zt = {
4181
4138
  // -- Color --
4182
4139
  borderColor: {
4183
4140
  default: "border-f1-border",
@@ -4292,7 +4249,7 @@ const Zt = {
4292
4249
  double: "border-double",
4293
4250
  none: "border-none"
4294
4251
  }
4295
- }, v2 = {}, x2 = {
4252
+ }, C2 = {}, g2 = {
4296
4253
  // Special
4297
4254
  auto: "w-auto",
4298
4255
  full: "w-full",
@@ -4349,7 +4306,7 @@ const Zt = {
4349
4306
  "4/5": "w-4/5",
4350
4307
  "1/6": "w-1/6",
4351
4308
  "5/6": "w-5/6"
4352
- }, b2 = {
4309
+ }, w2 = {
4353
4310
  auto: "h-auto",
4354
4311
  full: "h-full",
4355
4312
  screen: "h-screen",
@@ -4403,7 +4360,7 @@ const Zt = {
4403
4360
  "4/5": "h-4/5",
4404
4361
  "1/6": "h-1/6",
4405
4362
  "5/6": "h-5/6"
4406
- }, L2 = {
4363
+ }, v2 = {
4407
4364
  auto: "min-w-0",
4408
4365
  full: "min-w-full",
4409
4366
  screen: "min-w-screen",
@@ -4457,7 +4414,7 @@ const Zt = {
4457
4414
  "4/5": "min-w-4/5",
4458
4415
  "1/6": "min-w-1/6",
4459
4416
  "5/6": "min-w-5/6"
4460
- }, k2 = {
4417
+ }, x2 = {
4461
4418
  auto: "min-h-0",
4462
4419
  full: "min-h-full",
4463
4420
  screen: "min-h-screen",
@@ -4511,7 +4468,7 @@ const Zt = {
4511
4468
  "4/5": "min-h-4/5",
4512
4469
  "1/6": "min-h-1/6",
4513
4470
  "5/6": "min-h-5/6"
4514
- }, y2 = {
4471
+ }, b2 = {
4515
4472
  auto: "max-w-none",
4516
4473
  full: "max-w-full",
4517
4474
  screen: "max-w-screen",
@@ -4565,7 +4522,7 @@ const Zt = {
4565
4522
  "4/5": "max-w-4/5",
4566
4523
  "1/6": "max-w-1/6",
4567
4524
  "5/6": "max-w-5/6"
4568
- }, M2 = {
4525
+ }, L2 = {
4569
4526
  auto: "max-h-none",
4570
4527
  full: "max-h-full",
4571
4528
  screen: "max-h-screen",
@@ -4619,14 +4576,14 @@ const Zt = {
4619
4576
  "4/5": "max-h-4/5",
4620
4577
  "1/6": "max-h-1/6",
4621
4578
  "5/6": "max-h-5/6"
4579
+ }, Ot = {
4580
+ width: g2,
4581
+ height: w2,
4582
+ minWidth: v2,
4583
+ minHeight: x2,
4584
+ maxWidth: b2,
4585
+ maxHeight: L2
4622
4586
  }, Ut = {
4623
- width: x2,
4624
- height: b2,
4625
- minWidth: L2,
4626
- minHeight: k2,
4627
- maxWidth: y2,
4628
- maxHeight: M2
4629
- }, zt = {
4630
4587
  display: {
4631
4588
  block: "block",
4632
4589
  flex: "flex",
@@ -4642,7 +4599,7 @@ const Zt = {
4642
4599
  fixed: "fixed",
4643
4600
  sticky: "sticky"
4644
4601
  }
4645
- }, Gt = {
4602
+ }, zt = {
4646
4603
  divider: {
4647
4604
  x: "divide-x divide-y-0 divide-solid",
4648
4605
  y: "divide-y divide-x-0 divide-solid"
@@ -4663,7 +4620,7 @@ const Zt = {
4663
4620
  "positive-bold": "divide-f1-border-positive-bold",
4664
4621
  promote: "divide-f1-border-promote"
4665
4622
  }
4666
- }, Wt = {
4623
+ }, Gt = {
4667
4624
  gap: {
4668
4625
  none: "gap-0",
4669
4626
  xs: "gap-0.5",
@@ -4711,7 +4668,7 @@ const Zt = {
4711
4668
  true: "shrink",
4712
4669
  false: "shrink-0"
4713
4670
  }
4714
- }, R2 = {}, qt = {
4671
+ }, k2 = {}, Wt = {
4715
4672
  columns: {
4716
4673
  none: "grid-cols-none",
4717
4674
  1: "grid-cols-1",
@@ -4776,7 +4733,7 @@ const Zt = {
4776
4733
  6: "row-span-6",
4777
4734
  full: "row-span-full"
4778
4735
  }
4779
- }, Xt = {
4736
+ }, qt = {
4780
4737
  top: {
4781
4738
  none: "top-0",
4782
4739
  xs: "top-1",
@@ -4825,7 +4782,7 @@ const Zt = {
4825
4782
  "4xl": "left-12",
4826
4783
  "5xl": "left-16"
4827
4784
  }
4828
- }, Yt = {
4785
+ }, Xt = {
4829
4786
  margin: {
4830
4787
  none: "m-0",
4831
4788
  xs: "m-1",
@@ -4917,13 +4874,13 @@ const Zt = {
4917
4874
  "5xl": "mr-16",
4918
4875
  auto: "mr-auto"
4919
4876
  }
4920
- }, F2 = {}, N2 = {
4877
+ }, y2 = {}, M2 = {
4921
4878
  visible: "overflow-visible",
4922
4879
  hidden: "overflow-hidden",
4923
4880
  auto: "overflow-auto",
4924
4881
  scroll: "overflow-scroll"
4925
- }, Kt = {
4926
- overflow: N2,
4882
+ }, Yt = {
4883
+ overflow: M2,
4927
4884
  overflowX: {
4928
4885
  visible: "overflow-x-visible",
4929
4886
  hidden: "overflow-x-hidden",
@@ -4936,7 +4893,7 @@ const Zt = {
4936
4893
  auto: "overflow-y-auto",
4937
4894
  scroll: "overflow-y-scroll"
4938
4895
  }
4939
- }, V2 = {}, Qt = {
4896
+ }, R2 = {}, Kt = {
4940
4897
  padding: {
4941
4898
  none: "p-0",
4942
4899
  xs: "p-1",
@@ -5021,7 +4978,7 @@ const Zt = {
5021
4978
  "4xl": "pr-12",
5022
4979
  "5xl": "pr-16"
5023
4980
  }
5024
- }, S2 = {}, T2 = {
4981
+ }, F2 = {}, N2 = {
5025
4982
  boxShadow: {
5026
4983
  none: "shadow-none",
5027
4984
  sm: "shadow",
@@ -5029,7 +4986,7 @@ const Zt = {
5029
4986
  lg: "shadow-lg",
5030
4987
  xl: "shadow-xl"
5031
4988
  }
5032
- }, Jt = {
4989
+ }, Qt = {
5033
4990
  zIndex: {
5034
4991
  auto: "z-auto",
5035
4992
  0: "z-0",
@@ -5039,59 +4996,59 @@ const Zt = {
5039
4996
  40: "z-40",
5040
4997
  50: "z-50"
5041
4998
  }
5042
- }, H2 = {
5043
- ...zt,
5044
- ...Xt,
5045
- ...Qt,
5046
- ...Yt,
5047
- ...Wt,
5048
- ...qt,
4999
+ }, V2 = {
5049
5000
  ...Ut,
5050
- ...Zt,
5051
- ...Ot,
5001
+ ...qt,
5052
5002
  ...Kt,
5003
+ ...Xt,
5053
5004
  ...Gt,
5054
- ...Jt
5005
+ ...Wt,
5006
+ ...Ot,
5007
+ ..._t,
5008
+ ...Zt,
5009
+ ...Yt,
5010
+ ...zt,
5011
+ ...Qt
5055
5012
  };
5056
- function A2(e, r) {
5013
+ function S2(e, r) {
5057
5014
  return r.split(" ").map((o) => `${e}:${o}`).join(" ");
5058
5015
  }
5059
- function E2(e, r) {
5016
+ function T2(e, r) {
5060
5017
  const o = [];
5061
5018
  for (const [n, s] of Object.entries(r)) {
5062
5019
  if (s == null) continue;
5063
- const i = H2[n];
5020
+ const i = V2[n];
5064
5021
  if (!i) continue;
5065
5022
  const c = i[String(s)];
5066
- c && o.push(A2(e, c));
5023
+ c && o.push(S2(e, c));
5067
5024
  }
5068
5025
  return o.join(" ");
5069
5026
  }
5070
- const $2 = H1({
5027
+ const H2 = H1({
5071
5028
  base: "",
5072
5029
  variants: {
5073
- ...zt,
5074
- ...Xt,
5075
- ...Qt,
5076
- ...Yt,
5077
- ...Wt,
5078
- ...qt,
5079
5030
  ...Ut,
5080
- ...Zt,
5081
- ...Ot,
5031
+ ...qt,
5082
5032
  ...Kt,
5033
+ ...Xt,
5083
5034
  ...Gt,
5084
- ...T2,
5085
- ...Jt
5035
+ ...Wt,
5036
+ ...Ot,
5037
+ ..._t,
5038
+ ...Zt,
5039
+ ...Yt,
5040
+ ...zt,
5041
+ ...N2,
5042
+ ...Qt
5086
5043
  },
5087
5044
  defaultVariants: {
5088
- ...S2,
5089
5045
  ...F2,
5090
- ...R2,
5091
- ...v2,
5092
- ...V2
5046
+ ...y2,
5047
+ ...k2,
5048
+ ...C2,
5049
+ ...R2
5093
5050
  }
5094
- }), B2 = ["sm", "md", "lg", "xl"], er = m(
5051
+ }), A2 = ["sm", "md", "lg", "xl"], Jt = m(
5095
5052
  ({
5096
5053
  // Display & Position
5097
5054
  display: e,
@@ -5154,7 +5111,7 @@ const $2 = H1({
5154
5111
  // Divider
5155
5112
  divider: E,
5156
5113
  dividerColor: _,
5157
- boxShadow: c1,
5114
+ boxShadow: l1,
5158
5115
  // Flex
5159
5116
  alignItems: u1,
5160
5117
  justifyContent: g1,
@@ -5169,9 +5126,9 @@ const $2 = H1({
5169
5126
  xl: Q1,
5170
5127
  ...P1
5171
5128
  }, J1) => {
5172
- const E1 = r1 && r1 !== "none" || e1 && e1 !== "none" || j && j !== "none" || o1 && o1 !== "none", T1 = X && X !== "none" || E1, D1 = { sm: x1, md: Y1, lg: K1, xl: Q1 }, j1 = B2.map((_1) => {
5129
+ const E1 = r1 && r1 !== "none" || e1 && e1 !== "none" || j && j !== "none" || o1 && o1 !== "none", T1 = X && X !== "none" || E1, D1 = { sm: x1, md: Y1, lg: K1, xl: Q1 }, j1 = A2.map((_1) => {
5173
5130
  const Z1 = D1[_1];
5174
- return Z1 ? E2(_1, Z1) : "";
5131
+ return Z1 ? T2(_1, Z1) : "";
5175
5132
  }).filter(Boolean).join(" ");
5176
5133
  return /* @__PURE__ */ t(
5177
5134
  "div",
@@ -5179,7 +5136,7 @@ const $2 = H1({
5179
5136
  ref: J1,
5180
5137
  className: k(
5181
5138
  E1 && "border-0",
5182
- $2({
5139
+ H2({
5183
5140
  display: e,
5184
5141
  position: r,
5185
5142
  top: o,
@@ -5237,7 +5194,7 @@ const $2 = H1({
5237
5194
  flexWrap: V1,
5238
5195
  grow: S1,
5239
5196
  shrink: X1,
5240
- boxShadow: c1
5197
+ boxShadow: l1
5241
5198
  }),
5242
5199
  j1,
5243
5200
  T1 && !q && "border-f1-border",
@@ -5249,19 +5206,19 @@ const $2 = H1({
5249
5206
  );
5250
5207
  }
5251
5208
  );
5252
- er.displayName = "F0Box";
5253
- const te = An(
5209
+ Jt.displayName = "F0Box";
5210
+ const te = Hn(
5254
5211
  {
5255
5212
  name: "F0Box",
5256
5213
  type: "layout"
5257
5214
  },
5258
- er
5259
- ), D4 = ["xs", "sm", "md", "lg"], j4 = [
5215
+ Jt
5216
+ ), B4 = ["xs", "sm", "md", "lg"], I4 = [
5260
5217
  "inProgress",
5261
5218
  "executing",
5262
5219
  "writing",
5263
5220
  "completed"
5264
- ], I2 = ({
5221
+ ], E2 = ({
5265
5222
  onUploadFiles: e,
5266
5223
  toolbarStart: r,
5267
5224
  isAtMaxFiles: o,
@@ -5282,7 +5239,7 @@ const te = An(
5282
5239
  const w = G();
5283
5240
  return p === "recording" ? /* @__PURE__ */ a("div", { className: "flex shrink-0 items-center gap-3 p-3", children: [
5284
5241
  /* @__PURE__ */ t(
5285
- En,
5242
+ An,
5286
5243
  {
5287
5244
  stream: C ?? null,
5288
5245
  className: "min-w-0 flex-1"
@@ -5290,7 +5247,7 @@ const te = An(
5290
5247
  ),
5291
5248
  /* @__PURE__ */ a("div", { className: "flex shrink-0 items-center gap-2", children: [
5292
5249
  /* @__PURE__ */ t(
5293
- i1,
5250
+ c1,
5294
5251
  {
5295
5252
  label: w.ai.cancelRecording,
5296
5253
  hideLabel: !0,
@@ -5302,7 +5259,7 @@ const te = An(
5302
5259
  }
5303
5260
  ),
5304
5261
  /* @__PURE__ */ t(
5305
- i1,
5262
+ c1,
5306
5263
  {
5307
5264
  label: w.ai.stopRecording,
5308
5265
  hideLabel: !0,
@@ -5318,7 +5275,7 @@ const te = An(
5318
5275
  /* @__PURE__ */ a("div", { className: "flex min-w-0 items-center gap-2", children: [
5319
5276
  e && /* @__PURE__ */ a(R1, { children: [
5320
5277
  /* @__PURE__ */ t(
5321
- i1,
5278
+ c1,
5322
5279
  {
5323
5280
  label: w.ai.attachFile,
5324
5281
  hideLabel: !0,
@@ -5358,7 +5315,7 @@ const te = An(
5358
5315
  ] }),
5359
5316
  /* @__PURE__ */ a("div", { className: "flex shrink-0 items-center gap-2", children: [
5360
5317
  d && /* @__PURE__ */ t(
5361
- i1,
5318
+ c1,
5362
5319
  {
5363
5320
  label: w.ai.recordAudio,
5364
5321
  hideLabel: !0,
@@ -5372,7 +5329,7 @@ const te = An(
5372
5329
  }
5373
5330
  ),
5374
5331
  p !== "transcribing" && u ? /* @__PURE__ */ t(
5375
- i1,
5332
+ c1,
5376
5333
  {
5377
5334
  type: "submit",
5378
5335
  variant: "neutral",
@@ -5381,7 +5338,7 @@ const te = An(
5381
5338
  hideLabel: !0
5382
5339
  }
5383
5340
  ) : /* @__PURE__ */ t(
5384
- i1,
5341
+ c1,
5385
5342
  {
5386
5343
  type: "submit",
5387
5344
  disabled: !l || f,
@@ -5393,7 +5350,7 @@ const te = An(
5393
5350
  )
5394
5351
  ] })
5395
5352
  ] });
5396
- }, P2 = ({
5353
+ }, $2 = ({
5397
5354
  attachedFiles: e,
5398
5355
  isUploading: r,
5399
5356
  onRemove: o,
@@ -5406,7 +5363,7 @@ const te = An(
5406
5363
  className: "flex flex-wrap gap-1 px-1 pt-1",
5407
5364
  children: e.map(
5408
5365
  (s) => s.status === "uploading" ? /* @__PURE__ */ t(h1, { className: "h-9 w-36 rounded-[10px]" }, s.id) : s.status === "error" ? /* @__PURE__ */ t(
5409
- D2,
5366
+ B2,
5410
5367
  {
5411
5368
  att: s,
5412
5369
  onRemove: o,
@@ -5431,13 +5388,13 @@ const te = An(
5431
5388
  )
5432
5389
  }
5433
5390
  );
5434
- function D2({
5391
+ function B2({
5435
5392
  att: e,
5436
5393
  onRemove: r,
5437
5394
  removeLabel: o
5438
5395
  }) {
5439
5396
  const n = /* @__PURE__ */ a("div", { className: "flex items-center gap-1.5 rounded-lg border border-f1-border-critical bg-f1-background-critical/10 px-2.5 py-1.5", children: [
5440
- /* @__PURE__ */ t(a1, { icon: nt, size: "md", color: "critical" }),
5397
+ /* @__PURE__ */ t(i1, { icon: nt, size: "md", color: "critical" }),
5441
5398
  /* @__PURE__ */ t("span", { className: "max-w-40 truncate text-sm font-medium text-f1-foreground-critical", children: e.file.name }),
5442
5399
  /* @__PURE__ */ t(
5443
5400
  "button",
@@ -5448,27 +5405,27 @@ function D2({
5448
5405
  "rounded-full text-f1-foreground-critical hover:text-f1-foreground-critical/80"
5449
5406
  ),
5450
5407
  onClick: () => r(e.id),
5451
- children: /* @__PURE__ */ t(a1, { icon: F1, size: "md", "aria-hidden": "true" })
5408
+ children: /* @__PURE__ */ t(i1, { icon: F1, size: "md", "aria-hidden": "true" })
5452
5409
  }
5453
5410
  )
5454
5411
  ] });
5455
- return e.errorMessage ? /* @__PURE__ */ t($n, { label: e.errorMessage, children: n }) : n;
5412
+ return e.errorMessage ? /* @__PURE__ */ t(En, { label: e.errorMessage, children: n }) : n;
5456
5413
  }
5457
- const j2 = {
5414
+ const I2 = {
5458
5415
  soft: {
5459
5416
  text: "",
5460
5417
  bg: "bg-f1-background-info",
5461
5418
  fontColor: "text-f1-foreground-info",
5462
5419
  formBorder: "[&_form]:border-f1-border-info"
5463
5420
  }
5464
- }, _2 = ({
5421
+ }, P2 = ({
5465
5422
  creditWarning: e,
5466
5423
  children: r
5467
5424
  }) => {
5468
5425
  const o = G();
5469
5426
  if (!e) return r;
5470
5427
  const n = {
5471
- ...j2[e.level],
5428
+ ...I2[e.level],
5472
5429
  text: o.ai.creditWarning.soft
5473
5430
  };
5474
5431
  return /* @__PURE__ */ a(
@@ -5513,7 +5470,7 @@ const j2 = {
5513
5470
  }
5514
5471
  );
5515
5472
  };
5516
- function Z2({
5473
+ function D2({
5517
5474
  isOpen: e,
5518
5475
  results: r,
5519
5476
  isLoading: o,
@@ -5584,7 +5541,7 @@ function Z2({
5584
5541
  },
5585
5542
  children: [
5586
5543
  /* @__PURE__ */ t(
5587
- Bn,
5544
+ $n,
5588
5545
  {
5589
5546
  firstName: d.firstName,
5590
5547
  lastName: d.lastName,
@@ -5592,7 +5549,7 @@ function Z2({
5592
5549
  size: "xsmall"
5593
5550
  }
5594
5551
  ),
5595
- /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-1 flex-col", children: /* @__PURE__ */ t(l1, { className: "text-base font-medium text-f1-foreground", children: h }) })
5552
+ /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-1 flex-col", children: /* @__PURE__ */ t(a1, { className: "text-base font-medium text-f1-foreground", children: h }) })
5596
5553
  ]
5597
5554
  },
5598
5555
  String(d.id)
@@ -5601,7 +5558,7 @@ function Z2({
5601
5558
  }
5602
5559
  );
5603
5560
  }
5604
- const O2 = ({
5561
+ const j2 = ({
5605
5562
  quote: e,
5606
5563
  onRemove: r
5607
5564
  }) => {
@@ -5614,9 +5571,9 @@ const O2 = ({
5614
5571
  "rounded-[10px] bg-f1-background-hover pl-2 py-1.5 pr-1.5"
5615
5572
  ),
5616
5573
  children: [
5617
- /* @__PURE__ */ t("div", { className: "flex items-center py-0.5", children: /* @__PURE__ */ t(a1, { icon: ce, size: "md", color: "default" }) }),
5574
+ /* @__PURE__ */ t("div", { className: "flex items-center py-0.5", children: /* @__PURE__ */ t(i1, { icon: ce, size: "md", color: "default" }) }),
5618
5575
  /* @__PURE__ */ t(
5619
- l1,
5576
+ a1,
5620
5577
  {
5621
5578
  className: "h-full flex-1 py-0.5 text-[12px] font-medium text-f1-foreground-secondary",
5622
5579
  lines: 1,
@@ -5624,7 +5581,7 @@ const O2 = ({
5624
5581
  }
5625
5582
  ),
5626
5583
  /* @__PURE__ */ t(
5627
- i1,
5584
+ c1,
5628
5585
  {
5629
5586
  variant: "ghost",
5630
5587
  label: o.ai.removeQuote,
@@ -5637,7 +5594,7 @@ const O2 = ({
5637
5594
  ]
5638
5595
  }
5639
5596
  ) });
5640
- }, U2 = ({
5597
+ }, _2 = ({
5641
5598
  placeholders: e,
5642
5599
  defaultPlaceholder: r,
5643
5600
  inputValue: o,
@@ -5710,7 +5667,7 @@ const O2 = ({
5710
5667
  )
5711
5668
  }
5712
5669
  ) });
5713
- }, z2 = ({
5670
+ }, Z2 = ({
5714
5671
  textareaRef: e,
5715
5672
  highlightRef: r,
5716
5673
  inputValue: o,
@@ -5816,7 +5773,7 @@ const O2 = ({
5816
5773
  }
5817
5774
  ),
5818
5775
  f && /* @__PURE__ */ t(
5819
- U2,
5776
+ _2,
5820
5777
  {
5821
5778
  placeholders: d,
5822
5779
  defaultPlaceholder: p,
@@ -5826,9 +5783,9 @@ const O2 = ({
5826
5783
  )
5827
5784
  ]
5828
5785
  }
5829
- ), G2 = 4, W2 = ({
5786
+ ), O2 = 4, U2 = ({
5830
5787
  cards: e
5831
- }) => e.length === 0 ? null : /* @__PURE__ */ t("div", { className: "grid w-full grid-cols-2 gap-3", children: e.slice(0, G2).map((r) => /* @__PURE__ */ t(
5788
+ }) => e.length === 0 ? null : /* @__PURE__ */ t("div", { className: "grid w-full grid-cols-2 gap-3", children: e.slice(0, O2).map((r) => /* @__PURE__ */ t(
5832
5789
  Lt,
5833
5790
  {
5834
5791
  avatar: { type: "icon", icon: r.icon },
@@ -5837,11 +5794,11 @@ const O2 = ({
5837
5794
  onClick: r.onClick
5838
5795
  },
5839
5796
  r.id
5840
- )) }), q2 = 5;
5841
- function X2(e, r = q2) {
5797
+ )) }), z2 = 5;
5798
+ function G2(e, r = z2) {
5842
5799
  return e.length <= r ? e : [...e].sort(() => 0.5 - Math.random()).slice(0, r);
5843
5800
  }
5844
- const Y2 = ({
5801
+ const W2 = ({
5845
5802
  suggestions: e,
5846
5803
  onItemClick: r,
5847
5804
  onItemHover: o,
@@ -5856,13 +5813,13 @@ const Y2 = ({
5856
5813
  C || (i(null), o?.(null));
5857
5814
  },
5858
5815
  children: [
5859
- /* @__PURE__ */ t("div", { className: "flex min-h-[72px] w-full items-end", children: /* @__PURE__ */ t(In, { asChild: !0, children: /* @__PURE__ */ t(
5816
+ /* @__PURE__ */ t("div", { className: "flex min-h-[72px] w-full items-end", children: /* @__PURE__ */ t(Bn, { asChild: !0, children: /* @__PURE__ */ t(
5860
5817
  "div",
5861
5818
  {
5862
5819
  ref: c,
5863
5820
  className: "flex w-full flex-wrap items-center gap-2",
5864
5821
  children: e.map((C, h) => /* @__PURE__ */ t(
5865
- i1,
5822
+ c1,
5866
5823
  {
5867
5824
  variant: "outline",
5868
5825
  label: C.label,
@@ -5909,12 +5866,12 @@ const Y2 = ({
5909
5866
  id: d,
5910
5867
  className: "flex items-center gap-1.5 p-2 pb-1 text-sm font-medium text-f1-foreground-secondary",
5911
5868
  children: [
5912
- /* @__PURE__ */ t(a1, { "aria-hidden": !0, icon: p.icon, size: "sm" }),
5869
+ /* @__PURE__ */ t(i1, { "aria-hidden": !0, icon: p.icon, size: "sm" }),
5913
5870
  /* @__PURE__ */ t("span", { children: p.label })
5914
5871
  ]
5915
5872
  }
5916
5873
  ),
5917
- /* @__PURE__ */ t("div", { className: "flex flex-col", children: X2(p.items).map((C, h) => /* @__PURE__ */ a(
5874
+ /* @__PURE__ */ t("div", { className: "flex flex-col", children: G2(p.items).map((C, h) => /* @__PURE__ */ a(
5918
5875
  "button",
5919
5876
  {
5920
5877
  type: "button",
@@ -5936,7 +5893,7 @@ const Y2 = ({
5936
5893
  {
5937
5894
  "aria-hidden": !0,
5938
5895
  className: "flex flex-shrink-0 items-center text-f1-foreground-secondary opacity-0 transition-opacity group-hover:opacity-100 group-focus-visible:opacity-100",
5939
- children: /* @__PURE__ */ t(a1, { icon: ae, size: "sm" })
5896
+ children: /* @__PURE__ */ t(i1, { icon: ae, size: "sm" })
5940
5897
  }
5941
5898
  )
5942
5899
  ]
@@ -5953,7 +5910,7 @@ const Y2 = ({
5953
5910
  function Ne(e) {
5954
5911
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
5955
5912
  }
5956
- function K2(e, r, o) {
5913
+ function q2(e, r, o) {
5957
5914
  const n = o?.cursorPosition ?? e.length, s = o?.inlineCompletion ?? null, i = [];
5958
5915
  for (const d of r) {
5959
5916
  const p = `@${d.name}`;
@@ -5978,7 +5935,7 @@ function K2(e, r, o) {
5978
5935
  f(d.start), c.push({ type: "mention", text: e.slice(d.start, d.end) }), u = d.end;
5979
5936
  return f(e.length), !l && s && n >= u && c.push({ type: "ghost", text: s }), c.length === 0 ? [{ type: "text", text: e }] : c;
5980
5937
  }
5981
- function Q2(e, r) {
5938
+ function X2(e, r) {
5982
5939
  if (r === "*/*") return !0;
5983
5940
  if (r.endsWith("/*")) {
5984
5941
  const o = r.slice(0, r.indexOf("/"));
@@ -5986,15 +5943,15 @@ function Q2(e, r) {
5986
5943
  }
5987
5944
  return e === r;
5988
5945
  }
5989
- function J2(e, r) {
5946
+ function Y2(e, r) {
5990
5947
  if (!r) return e;
5991
5948
  const o = Array.isArray(r) ? r : [r];
5992
5949
  return o.length === 0 ? e : e.filter(
5993
- (n) => o.some((s) => Q2(n.type, s))
5950
+ (n) => o.some((s) => X2(n.type, s))
5994
5951
  );
5995
5952
  }
5996
- const el = 4e3;
5997
- function tl(e) {
5953
+ const K2 = 4e3;
5954
+ function Q2(e) {
5998
5955
  const [r, o] = D([]), [n, s] = D(null), i = $(
5999
5956
  null
6000
5957
  ), c = $(null), u = G(), l = e?.onUploadFiles, f = e?.allowedMimeTypes, d = e?.maxFiles, p = K(() => {
@@ -6007,7 +5964,7 @@ function tl(e) {
6007
5964
  const g = O((A) => {
6008
5965
  i.current && clearTimeout(i.current), s(A), i.current = setTimeout(() => {
6009
5966
  s(null), i.current = null;
6010
- }, el);
5967
+ }, K2);
6011
5968
  }, []);
6012
5969
  W(
6013
5970
  () => () => {
@@ -6018,7 +5975,7 @@ function tl(e) {
6018
5975
  const v = O(
6019
5976
  async (A) => {
6020
5977
  if (A.length === 0 || !l) return;
6021
- const V = J2(A, f);
5978
+ const V = Y2(A, f);
6022
5979
  if (V.length === 0) return;
6023
5980
  if (d !== void 0 && h.current + V.length > d) {
6024
5981
  g(
@@ -6098,7 +6055,7 @@ function tl(e) {
6098
6055
  showTransientError: g
6099
6056
  };
6100
6057
  }
6101
- function rl(e, r, o) {
6058
+ function J2(e, r, o) {
6102
6059
  const s = e.slice(0, r).lastIndexOf("@");
6103
6060
  if (s === -1) return null;
6104
6061
  if (s > 0) {
@@ -6121,7 +6078,7 @@ function rl(e, r, o) {
6121
6078
  }
6122
6079
  return { atIndex: s, query: i };
6123
6080
  }
6124
- const ol = [
6081
+ const el = [
6125
6082
  "direction",
6126
6083
  "boxSizing",
6127
6084
  "width",
@@ -6157,10 +6114,10 @@ const ol = [
6157
6114
  "wordWrap",
6158
6115
  "wordBreak"
6159
6116
  ];
6160
- function nl(e, r) {
6117
+ function tl(e, r) {
6161
6118
  const o = document.createElement("div"), n = o.style, s = window.getComputedStyle(e);
6162
6119
  n.whiteSpace = "pre-wrap", n.wordWrap = "break-word", n.position = "absolute", n.visibility = "hidden", n.overflow = "hidden";
6163
- for (const l of ol)
6120
+ for (const l of el)
6164
6121
  n.setProperty(l, s.getPropertyValue(l));
6165
6122
  o.textContent = e.value.substring(0, r);
6166
6123
  const i = document.createElement("span");
@@ -6168,8 +6125,8 @@ function nl(e, r) {
6168
6125
  const c = i.offsetLeft, u = i.offsetTop - e.scrollTop;
6169
6126
  return document.body.removeChild(o), { left: c, top: u };
6170
6127
  }
6171
- const sl = 250;
6172
- function il({
6128
+ const rl = 250;
6129
+ function ol({
6173
6130
  inputValue: e,
6174
6131
  setInputValue: r,
6175
6132
  cursorPosition: o,
@@ -6182,7 +6139,7 @@ function il({
6182
6139
  c(!1);
6183
6140
  return;
6184
6141
  }
6185
- const T = rl(e, o, v);
6142
+ const T = J2(e, o, v);
6186
6143
  if (!T) {
6187
6144
  c(!1), l(""), d([]), g(0), b.current = -1, V.current = -1;
6188
6145
  return;
@@ -6199,7 +6156,7 @@ function il({
6199
6156
  }).finally(() => {
6200
6157
  I === A.current && C(!1);
6201
6158
  });
6202
- }, sl), () => {
6159
+ }, rl), () => {
6203
6160
  H.current && clearTimeout(H.current);
6204
6161
  };
6205
6162
  }, [e, o, n, v]);
@@ -6274,7 +6231,7 @@ function il({
6274
6231
  if (!i || b.current === -1) return null;
6275
6232
  const T = s.current;
6276
6233
  if (!T) return null;
6277
- const I = nl(T, b.current), U = T.offsetLeft + I.left, z = (T.offsetParent ? T.offsetParent.offsetHeight : 0) - (T.offsetTop + I.top);
6234
+ const I = tl(T, b.current), U = T.offsetLeft + I.left, z = (T.offsetParent ? T.offsetParent.offsetHeight : 0) - (T.offsetTop + I.top);
6278
6235
  return { left: U, bottom: z };
6279
6236
  }, [i, e, o, s]), N = K(() => {
6280
6237
  if (!i || f.length === 0) return null;
@@ -6298,7 +6255,7 @@ function il({
6298
6255
  close: F
6299
6256
  };
6300
6257
  }
6301
- const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>[\s\S]*?<\/entity-ref>)/g).map((r, o) => o % 2 === 1 ? r : r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(al, "\\$&")).join(""), _4 = ({
6258
+ const nl = /[\\`*_{}[\]()#+\-.!|~>]/g, sl = (e) => e.split(/(<entity-ref\b[^>]*>[\s\S]*?<\/entity-ref>)/g).map((r, o) => o % 2 === 1 ? r : r.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(nl, "\\$&")).join(""), P4 = ({
6302
6259
  onSubmit: e,
6303
6260
  onStop: r,
6304
6261
  inProgress: o,
@@ -6343,10 +6300,10 @@ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>
6343
6300
  processFiles: P,
6344
6301
  handleFileSelect: E,
6345
6302
  handleRemoveFile: _,
6346
- clearFiles: c1,
6303
+ clearFiles: l1,
6347
6304
  transientError: u1,
6348
6305
  showTransientError: g1
6349
- } = tl(p), s1 = il({
6306
+ } = Q2(p), s1 = ol({
6350
6307
  inputValue: N,
6351
6308
  setInputValue: T,
6352
6309
  cursorPosition: I,
@@ -6359,7 +6316,7 @@ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>
6359
6316
  "permission-denied": y.ai.micPermissionDenied,
6360
6317
  "device-error": y.ai.micError,
6361
6318
  "transcription-failed": y.ai.transcriptionError
6362
- }, x1 = Pn({
6319
+ }, x1 = In({
6363
6320
  onTranscribe: h,
6364
6321
  onPartial: S1,
6365
6322
  onFinal: (Y) => {
@@ -6417,7 +6374,7 @@ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>
6417
6374
  z(!1);
6418
6375
  }
6419
6376
  }
6420
- const b1 = s1.transformMentions(N.trim()), ee = ll(b1), O1 = E1.flatMap(
6377
+ const b1 = s1.transformMentions(N.trim()), ee = sl(b1), O1 = E1.flatMap(
6421
6378
  (ye) => ye.uploadedFile ? [ye.uploadedFile] : []
6422
6379
  ), Le = u, ke = f;
6423
6380
  Le && l?.(null), ke && d?.(null), await e({
@@ -6425,28 +6382,28 @@ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>
6425
6382
  files: O1,
6426
6383
  context: Le,
6427
6384
  quote: ke
6428
- }), T(""), c1();
6385
+ }), T(""), l1();
6429
6386
  }
6430
6387
  e1.current?.focus();
6431
6388
  }
6432
6389
  }, Z1 = (Y) => {
6433
6390
  o1 || s1.handleKeyDown(Y) || Y.key === "Enter" && !Y.shiftKey && (Y.preventDefault(), o || r1.current?.requestSubmit());
6434
- }, Rr = () => {
6391
+ }, Mr = () => {
6435
6392
  U(e1.current?.selectionStart ?? 0);
6436
- }, Fr = () => {
6393
+ }, Rr = () => {
6437
6394
  j.current && e1.current && (j.current.scrollTop = e1.current.scrollTop);
6438
- }, we = q ? q.prompt ?? q.title : null, ve = P1 ? [y.ai.listening] : we ? [we] : s ?? [], Nr = ve.length > 1, Vr = K(() => K2(N, s1.mentions, {
6395
+ }, we = q ? q.prompt ?? q.title : null, ve = P1 ? [y.ai.listening] : we ? [we] : s ?? [], Fr = ve.length > 1, Nr = K(() => q2(N, s1.mentions, {
6439
6396
  cursorPosition: I,
6440
6397
  inlineCompletion: s1.inlineCompletion
6441
- }), [N, s1.mentions, I, s1.inlineCompletion]), Sr = s1.mentions.length > 0 || s1.inlineCompletion !== null, xe = H && !!V && V.length > 0 && !!F ? /* @__PURE__ */ t(
6442
- Y2,
6398
+ }), [N, s1.mentions, I, s1.inlineCompletion]), Vr = s1.mentions.length > 0 || s1.inlineCompletion !== null, xe = H && !!V && V.length > 0 && !!F ? /* @__PURE__ */ t(
6399
+ W2,
6443
6400
  {
6444
6401
  suggestions: V,
6445
6402
  onItemClick: f1,
6446
6403
  onItemHover: X,
6447
6404
  side: "top"
6448
6405
  }
6449
- ) : null, Tr = H && A && !!x && x.length > 0, be = A && H, { motionProps: Hr } = Dn(
6406
+ ) : null, Sr = H && A && !!x && x.length > 0, be = A && H, { motionProps: Tr } = Pn(
6450
6407
  H,
6451
6408
  160,
6452
6409
  0.5
@@ -6459,11 +6416,11 @@ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>
6459
6416
  "flex flex-col items-center gap-2 px-4 pb-3 pt-2",
6460
6417
  be && "min-h-0 flex-1 justify-start -mt-20"
6461
6418
  ),
6462
- ...A ? Hr : {},
6419
+ ...A ? Tr : {},
6463
6420
  children: [
6464
6421
  /* @__PURE__ */ a("div", { className: "flex w-full max-w-content flex-col gap-2", children: [
6465
6422
  xe && /* @__PURE__ */ t("div", { children: xe }),
6466
- /* @__PURE__ */ t(_2, { creditWarning: i, children: /* @__PURE__ */ a(
6423
+ /* @__PURE__ */ t(P2, { creditWarning: i, children: /* @__PURE__ */ a(
6467
6424
  Q.form,
6468
6425
  {
6469
6426
  "aria-busy": o,
@@ -6502,7 +6459,7 @@ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>
6502
6459
  onSubmit: _1,
6503
6460
  children: [
6504
6461
  /* @__PURE__ */ t(
6505
- Z2,
6462
+ D2,
6506
6463
  {
6507
6464
  isOpen: s1.isOpen,
6508
6465
  results: s1.results,
@@ -6553,7 +6510,7 @@ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>
6553
6510
  },
6554
6511
  children: [
6555
6512
  f && /* @__PURE__ */ t(
6556
- O2,
6513
+ j2,
6557
6514
  {
6558
6515
  quote: f,
6559
6516
  onRemove: () => d?.(null)
@@ -6580,7 +6537,7 @@ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>
6580
6537
  "bg-f1-background-critical text-f1-foreground"
6581
6538
  ),
6582
6539
  children: [
6583
- /* @__PURE__ */ t("div", { className: "h-6 w-6 flex-shrink-0", children: /* @__PURE__ */ t(jn, { type: "critical", size: "sm" }) }),
6540
+ /* @__PURE__ */ t("div", { className: "h-6 w-6 flex-shrink-0", children: /* @__PURE__ */ t(Dn, { type: "critical", size: "sm" }) }),
6584
6541
  /* @__PURE__ */ t("p", { className: "font-medium text-f1-foreground-critical", children: u1 })
6585
6542
  ]
6586
6543
  }
@@ -6589,7 +6546,7 @@ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>
6589
6546
  "transient-error"
6590
6547
  ) }),
6591
6548
  /* @__PURE__ */ t(
6592
- P2,
6549
+ $2,
6593
6550
  {
6594
6551
  attachedFiles: m1,
6595
6552
  isUploading: T1,
@@ -6598,7 +6555,7 @@ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>
6598
6555
  }
6599
6556
  ),
6600
6557
  /* @__PURE__ */ t(
6601
- z2,
6558
+ Z2,
6602
6559
  {
6603
6560
  textareaRef: e1,
6604
6561
  highlightRef: j,
@@ -6607,18 +6564,18 @@ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>
6607
6564
  T(Y), U(b1);
6608
6565
  },
6609
6566
  onKeyDown: Z1,
6610
- onCursorUpdate: Rr,
6611
- onScroll: Fr,
6612
- highlightSegments: Vr,
6613
- hasOverlay: Sr,
6614
- multiplePlaceholders: Nr,
6567
+ onCursorUpdate: Mr,
6568
+ onScroll: Rr,
6569
+ highlightSegments: Nr,
6570
+ hasOverlay: Vr,
6571
+ multiplePlaceholders: Fr,
6615
6572
  placeholders: ve,
6616
6573
  resolvedDefaultPlaceholder: J1,
6617
6574
  inProgress: o
6618
6575
  }
6619
6576
  ),
6620
6577
  /* @__PURE__ */ t(
6621
- I2,
6578
+ E2,
6622
6579
  {
6623
6580
  onUploadFiles: d1,
6624
6581
  toolbarStart: C,
@@ -6646,7 +6603,7 @@ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>
6646
6603
  }
6647
6604
  ) })
6648
6605
  ] }),
6649
- Tr && /* @__PURE__ */ t("div", { className: "w-full max-w-content pt-2", children: /* @__PURE__ */ t(W2, { cards: x }) }),
6606
+ Sr && /* @__PURE__ */ t("div", { className: "w-full max-w-content pt-2", children: /* @__PURE__ */ t(U2, { cards: x }) }),
6650
6607
  b && H && A && /* @__PURE__ */ t("div", { className: "w-full py-4 mx-auto flex max-w-content justify-center", children: b }),
6651
6608
  /* @__PURE__ */ t(M1, { mode: "wait", initial: !1, children: o1 ? /* @__PURE__ */ a(
6652
6609
  Q.div,
@@ -6699,7 +6656,7 @@ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>
6699
6656
  "motion-reduce:transition-none motion-reduce:hover:scale-100 motion-reduce:focus-visible:scale-100"
6700
6657
  ),
6701
6658
  children: /* @__PURE__ */ t(
6702
- l1,
6659
+ a1,
6703
6660
  {
6704
6661
  className: k(
6705
6662
  "text-sm font-medium text-f1-foreground-tertiary transition-colors duration-700 ease-out",
@@ -6710,9 +6667,9 @@ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>
6710
6667
  }
6711
6668
  )
6712
6669
  }
6713
- ) : /* @__PURE__ */ t(l1, { className: "text-sm font-medium text-f1-foreground-tertiary", children: w.text }),
6670
+ ) : /* @__PURE__ */ t(a1, { className: "text-sm font-medium text-f1-foreground-tertiary", children: w.text }),
6714
6671
  w.link && w.linkText && /* @__PURE__ */ t(
6715
- _n,
6672
+ jn,
6716
6673
  {
6717
6674
  href: w.link,
6718
6675
  target: "_blank",
@@ -6729,7 +6686,7 @@ const al = /[\\`*_{}[\]()#+\-.!|~>]/g, ll = (e) => e.split(/(<entity-ref\b[^>]*>
6729
6686
  }
6730
6687
  );
6731
6688
  };
6732
- function cl({
6689
+ function il({
6733
6690
  children: e,
6734
6691
  ...r
6735
6692
  }) {
@@ -6745,7 +6702,7 @@ function cl({
6745
6702
  }
6746
6703
  );
6747
6704
  }
6748
- function dl({
6705
+ function al({
6749
6706
  children: e,
6750
6707
  ...r
6751
6708
  }) {
@@ -6764,7 +6721,7 @@ function dl({
6764
6721
  }
6765
6722
  );
6766
6723
  }
6767
- function ul({
6724
+ function ll({
6768
6725
  children: e,
6769
6726
  ...r
6770
6727
  }) {
@@ -6780,7 +6737,7 @@ function ul({
6780
6737
  }
6781
6738
  );
6782
6739
  }
6783
- function fl({ ...e }) {
6740
+ function cl({ ...e }) {
6784
6741
  return /* @__PURE__ */ t(
6785
6742
  "hr",
6786
6743
  {
@@ -6789,7 +6746,7 @@ function fl({ ...e }) {
6789
6746
  }
6790
6747
  );
6791
6748
  }
6792
- function hl({
6749
+ function dl({
6793
6750
  src: e,
6794
6751
  alt: r,
6795
6752
  ...o
@@ -6822,13 +6779,13 @@ function hl({
6822
6779
  ) })
6823
6780
  ] });
6824
6781
  }
6825
- function pl({
6782
+ function ul({
6826
6783
  children: e,
6827
6784
  ...r
6828
6785
  }) {
6829
- return /* @__PURE__ */ t(Zn, { ...r, variant: "link", href: r.href, children: e });
6786
+ return /* @__PURE__ */ t(_n, { ...r, variant: "link", href: r.href, children: e });
6830
6787
  }
6831
- function ml({
6788
+ function fl({
6832
6789
  children: e,
6833
6790
  ...r
6834
6791
  }) {
@@ -6844,7 +6801,7 @@ function ml({
6844
6801
  }
6845
6802
  );
6846
6803
  }
6847
- function Cl({
6804
+ function hl({
6848
6805
  children: e,
6849
6806
  ...r
6850
6807
  }) {
@@ -6860,17 +6817,17 @@ function Cl({
6860
6817
  }
6861
6818
  );
6862
6819
  }
6863
- function gl({
6820
+ function pl({
6864
6821
  children: e,
6865
6822
  ...r
6866
6823
  }) {
6867
6824
  return /* @__PURE__ */ t("li", { ...r, className: k("mb-2", r.className), children: e });
6868
6825
  }
6869
- async function wl(e, r, o) {
6826
+ async function ml(e, r, o) {
6870
6827
  const n = await import("./xlsx-CzlURDDb.js"), s = n.utils.table_to_book(e, { sheet: "Data" });
6871
6828
  n.writeFile(s, `${o}.${r}`);
6872
6829
  }
6873
- function vl({
6830
+ function Cl({
6874
6831
  children: e,
6875
6832
  title: r,
6876
6833
  ...o
@@ -6879,14 +6836,14 @@ function vl({
6879
6836
  (c) => {
6880
6837
  if (!s.current) return;
6881
6838
  const u = r?.replace(/\s+/g, "_").toLowerCase() || "table";
6882
- wl(s.current, c, u);
6839
+ ml(s.current, c, u);
6883
6840
  },
6884
6841
  [r]
6885
6842
  );
6886
6843
  return /* @__PURE__ */ a("div", { className: "group/table relative flex flex-col gap-2 rounded-md border border-solid border-f1-border-secondary", children: [
6887
6844
  /* @__PURE__ */ a("div", { className: "flex items-center justify-between gap-3 border-0 border-b border-solid border-f1-border-secondary px-3 py-2", children: [
6888
6845
  /* @__PURE__ */ t(
6889
- l1,
6846
+ a1,
6890
6847
  {
6891
6848
  tag: "h2",
6892
6849
  className: "text-base font-medium capitalize text-f1-foreground",
@@ -6931,7 +6888,7 @@ function vl({
6931
6888
  ) })
6932
6889
  ] });
6933
6890
  }
6934
- function xl({
6891
+ function gl({
6935
6892
  children: e,
6936
6893
  ...r
6937
6894
  }) {
@@ -6947,7 +6904,7 @@ function xl({
6947
6904
  }
6948
6905
  );
6949
6906
  }
6950
- function bl({
6907
+ function wl({
6951
6908
  children: e,
6952
6909
  ...r
6953
6910
  }) {
@@ -6963,13 +6920,13 @@ function bl({
6963
6920
  }
6964
6921
  );
6965
6922
  }
6966
- function Ll({
6923
+ function vl({
6967
6924
  children: e,
6968
6925
  ...r
6969
6926
  }) {
6970
6927
  return /* @__PURE__ */ t("p", { ...r, className: k("text-base font-normal", r.className), children: e });
6971
6928
  }
6972
- function kl({
6929
+ function xl({
6973
6930
  children: e,
6974
6931
  ...r
6975
6932
  }) {
@@ -6985,7 +6942,7 @@ function kl({
6985
6942
  }
6986
6943
  );
6987
6944
  }
6988
- function yl({
6945
+ function bl({
6989
6946
  children: e,
6990
6947
  ...r
6991
6948
  }) {
@@ -7001,7 +6958,7 @@ function yl({
7001
6958
  }
7002
6959
  );
7003
6960
  }
7004
- function Ml({
6961
+ function Ll({
7005
6962
  children: e,
7006
6963
  ...r
7007
6964
  }) {
@@ -7017,13 +6974,13 @@ function Ml({
7017
6974
  }
7018
6975
  );
7019
6976
  }
7020
- function Rl({
6977
+ function kl({
7021
6978
  children: e,
7022
6979
  ...r
7023
6980
  }) {
7024
6981
  return /* @__PURE__ */ t("strong", { ...r, className: k("font-semibold", r.className), children: e });
7025
6982
  }
7026
- function Fl({
6983
+ function yl({
7027
6984
  children: e,
7028
6985
  ...r
7029
6986
  }) {
@@ -7058,7 +7015,7 @@ function A1({
7058
7015
  });
7059
7016
  }, [o, e, c, l]), g = d || !c ? s : n(c);
7060
7017
  return /* @__PURE__ */ a(
7061
- On,
7018
+ Zn,
7062
7019
  {
7063
7020
  openDelay: 300,
7064
7021
  closeDelay: 100,
@@ -7066,9 +7023,9 @@ function A1({
7066
7023
  v && h();
7067
7024
  },
7068
7025
  children: [
7069
- /* @__PURE__ */ t(Un, { asChild: !0, children: r }),
7026
+ /* @__PURE__ */ t(On, { asChild: !0, children: r }),
7070
7027
  /* @__PURE__ */ t(
7071
- zn,
7028
+ Un,
7072
7029
  {
7073
7030
  side: "top",
7074
7031
  align: "start",
@@ -7080,7 +7037,7 @@ function A1({
7080
7037
  }
7081
7038
  );
7082
7039
  }
7083
- const tr = m(
7040
+ const er = m(
7084
7041
  ({ label: e, ...r }, o) => /* @__PURE__ */ t(
7085
7042
  "button",
7086
7043
  {
@@ -7095,8 +7052,8 @@ const tr = m(
7095
7052
  }
7096
7053
  )
7097
7054
  );
7098
- tr.displayName = "CandidateTrigger";
7099
- function Nl({
7055
+ er.displayName = "CandidateTrigger";
7056
+ function Ml({
7100
7057
  id: e,
7101
7058
  label: r
7102
7059
  }) {
@@ -7148,14 +7105,14 @@ function Nl({
7148
7105
  A1,
7149
7106
  {
7150
7107
  id: e,
7151
- trigger: /* @__PURE__ */ t(tr, { label: r }),
7108
+ trigger: /* @__PURE__ */ t(er, { label: r }),
7152
7109
  resolver: n,
7153
7110
  mapToCard: c,
7154
7111
  fallbackCard: u
7155
7112
  }
7156
7113
  ) : /* @__PURE__ */ t("span", { children: r });
7157
7114
  }
7158
- const rr = m(
7115
+ const tr = m(
7159
7116
  ({ label: e, ...r }, o) => /* @__PURE__ */ t(
7160
7117
  "button",
7161
7118
  {
@@ -7170,8 +7127,8 @@ const rr = m(
7170
7127
  }
7171
7128
  )
7172
7129
  );
7173
- rr.displayName = "ExpenseTrigger";
7174
- function Vl({ id: e, label: r }) {
7130
+ tr.displayName = "ExpenseTrigger";
7131
+ function Rl({ id: e, label: r }) {
7175
7132
  const { entityRefs: o } = k1(), n = o?.resolvers?.expense, s = G(), i = o?.urls?.expense?.(e), c = K(
7176
7133
  () => (l) => ({
7177
7134
  avatar: {
@@ -7204,14 +7161,14 @@ function Vl({ id: e, label: r }) {
7204
7161
  A1,
7205
7162
  {
7206
7163
  id: e,
7207
- trigger: /* @__PURE__ */ t(rr, { label: r }),
7164
+ trigger: /* @__PURE__ */ t(tr, { label: r }),
7208
7165
  resolver: n,
7209
7166
  mapToCard: c,
7210
7167
  fallbackCard: u
7211
7168
  }
7212
7169
  ) : /* @__PURE__ */ t("span", { children: r });
7213
7170
  }
7214
- const or = m(
7171
+ const rr = m(
7215
7172
  ({ label: e, ...r }, o) => /* @__PURE__ */ t(
7216
7173
  "button",
7217
7174
  {
@@ -7226,8 +7183,8 @@ const or = m(
7226
7183
  }
7227
7184
  )
7228
7185
  );
7229
- or.displayName = "JobPostingTrigger";
7230
- function Sl({
7186
+ rr.displayName = "JobPostingTrigger";
7187
+ function Fl({
7231
7188
  id: e,
7232
7189
  label: r
7233
7190
  }) {
@@ -7259,20 +7216,20 @@ function Sl({
7259
7216
  A1,
7260
7217
  {
7261
7218
  id: e,
7262
- trigger: /* @__PURE__ */ t(or, { label: r }),
7219
+ trigger: /* @__PURE__ */ t(rr, { label: r }),
7263
7220
  resolver: n,
7264
7221
  mapToCard: c,
7265
7222
  fallbackCard: u
7266
7223
  }
7267
7224
  ) : /* @__PURE__ */ t("span", { children: r });
7268
7225
  }
7269
- function Tl({ rows: e }) {
7226
+ function Nl({ rows: e }) {
7270
7227
  return e.length === 0 ? null : /* @__PURE__ */ t("div", { className: "flex flex-col gap-2", children: e.map((r, o) => /* @__PURE__ */ a("div", { className: "flex flex-col", children: [
7271
7228
  r.label && /* @__PURE__ */ t("p", { className: "text-f1-foreground-secondary", children: r.label }),
7272
7229
  /* @__PURE__ */ t("div", { className: "flex items-center gap-1.5 font-medium text-f1-foreground", children: r.value })
7273
7230
  ] }, r.label ?? o)) });
7274
7231
  }
7275
- const nr = m(
7232
+ const or = m(
7276
7233
  ({ label: e, ...r }, o) => /* @__PURE__ */ t(
7277
7234
  "button",
7278
7235
  {
@@ -7287,8 +7244,8 @@ const nr = m(
7287
7244
  }
7288
7245
  )
7289
7246
  );
7290
- nr.displayName = "RequisitionTrigger";
7291
- function Hl({
7247
+ or.displayName = "RequisitionTrigger";
7248
+ function Vl({
7292
7249
  id: e,
7293
7250
  label: r
7294
7251
  }) {
@@ -7298,7 +7255,7 @@ function Hl({
7298
7255
  l.status ? {
7299
7256
  label: s.t("ai.entityRef.requisition.status"),
7300
7257
  value: /* @__PURE__ */ t("div", { className: "flex items-center pt-1", children: /* @__PURE__ */ t(
7301
- Gn,
7258
+ zn,
7302
7259
  {
7303
7260
  text: l.status,
7304
7261
  variant: l.statusVariant ?? "neutral"
@@ -7331,7 +7288,7 @@ function Hl({
7331
7288
  title: l.title,
7332
7289
  ...l.location && { description: l.location },
7333
7290
  ...p.length > 0 && {
7334
- children: /* @__PURE__ */ t(Tl, { rows: p })
7291
+ children: /* @__PURE__ */ t(Nl, { rows: p })
7335
7292
  },
7336
7293
  ...i && {
7337
7294
  secondaryActions: {
@@ -7358,14 +7315,14 @@ function Hl({
7358
7315
  A1,
7359
7316
  {
7360
7317
  id: e,
7361
- trigger: /* @__PURE__ */ t(nr, { label: r }),
7318
+ trigger: /* @__PURE__ */ t(or, { label: r }),
7362
7319
  resolver: n,
7363
7320
  mapToCard: c,
7364
7321
  fallbackCard: u
7365
7322
  }
7366
7323
  ) : /* @__PURE__ */ t("span", { children: r });
7367
7324
  }
7368
- const sr = m(
7325
+ const nr = m(
7369
7326
  ({ label: e, ...r }, o) => /* @__PURE__ */ a(
7370
7327
  "button",
7371
7328
  {
@@ -7383,8 +7340,8 @@ const sr = m(
7383
7340
  }
7384
7341
  )
7385
7342
  );
7386
- sr.displayName = "PersonTrigger";
7387
- function Al({ id: e, label: r }) {
7343
+ nr.displayName = "PersonTrigger";
7344
+ function Sl({ id: e, label: r }) {
7388
7345
  const { entityRefs: o } = k1(), n = o?.resolvers?.person, s = G(), i = o?.urls?.person?.(e), c = K(
7389
7346
  () => (l) => ({
7390
7347
  avatar: {
@@ -7419,14 +7376,14 @@ function Al({ id: e, label: r }) {
7419
7376
  A1,
7420
7377
  {
7421
7378
  id: e,
7422
- trigger: /* @__PURE__ */ t(sr, { label: r }),
7379
+ trigger: /* @__PURE__ */ t(nr, { label: r }),
7423
7380
  resolver: n,
7424
7381
  mapToCard: c,
7425
7382
  fallbackCard: u
7426
7383
  }
7427
7384
  ) : /* @__PURE__ */ t("span", { children: r });
7428
7385
  }
7429
- const ir = m(
7386
+ const sr = m(
7430
7387
  ({ label: e, ...r }, o) => /* @__PURE__ */ t(
7431
7388
  "button",
7432
7389
  {
@@ -7441,8 +7398,8 @@ const ir = m(
7441
7398
  }
7442
7399
  )
7443
7400
  );
7444
- ir.displayName = "VacancyTrigger";
7445
- function El({ id: e, label: r }) {
7401
+ sr.displayName = "VacancyTrigger";
7402
+ function Tl({ id: e, label: r }) {
7446
7403
  const { entityRefs: o } = k1(), n = o?.resolvers?.vacancy, s = G(), i = o?.urls?.vacancy?.(e), c = K(
7447
7404
  () => (l) => ({
7448
7405
  title: l.name,
@@ -7471,59 +7428,59 @@ function El({ id: e, label: r }) {
7471
7428
  A1,
7472
7429
  {
7473
7430
  id: e,
7474
- trigger: /* @__PURE__ */ t(ir, { label: r }),
7431
+ trigger: /* @__PURE__ */ t(sr, { label: r }),
7475
7432
  resolver: n,
7476
7433
  mapToCard: c,
7477
7434
  fallbackCard: u
7478
7435
  }
7479
7436
  ) : /* @__PURE__ */ t("span", { children: r });
7480
7437
  }
7481
- const $l = {
7482
- person: Al,
7483
- candidate: Nl,
7484
- expense: Vl,
7485
- "job-posting": Sl,
7486
- requisition: Hl,
7487
- vacancy: El
7438
+ const Hl = {
7439
+ person: Sl,
7440
+ candidate: Ml,
7441
+ expense: Rl,
7442
+ "job-posting": Fl,
7443
+ requisition: Vl,
7444
+ vacancy: Tl
7488
7445
  };
7489
- function Bl(e) {
7490
- return $l[e];
7446
+ function Al(e) {
7447
+ return Hl[e];
7491
7448
  }
7492
7449
  function ne(e) {
7493
7450
  return typeof e == "string" ? e : typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(ne).join("") : e && typeof e == "object" && "props" in e ? ne(e.props.children) : "";
7494
7451
  }
7495
- function Il({
7452
+ function El({
7496
7453
  type: e,
7497
7454
  id: r,
7498
7455
  children: o
7499
7456
  }) {
7500
7457
  if (!r || !e)
7501
7458
  return /* @__PURE__ */ t("span", { children: o });
7502
- const n = ne(o), s = Bl(e);
7459
+ const n = ne(o), s = Al(e);
7503
7460
  return s ? /* @__PURE__ */ t(s, { id: r, label: n }) : /* @__PURE__ */ t("span", { children: o });
7504
7461
  }
7505
- const Z4 = {
7506
- p: Ll,
7507
- h1: kl,
7508
- h2: yl,
7509
- h3: Ml,
7510
- a: pl,
7511
- strong: Rl,
7512
- em: Fl,
7513
- li: gl,
7514
- pre: cl,
7515
- code: dl,
7516
- blockquote: ul,
7517
- hr: fl,
7518
- ul: ml,
7519
- ol: Cl,
7520
- table: vl,
7521
- th: xl,
7522
- td: bl,
7523
- img: hl,
7524
- "entity-ref": Il
7462
+ const D4 = {
7463
+ p: vl,
7464
+ h1: xl,
7465
+ h2: bl,
7466
+ h3: Ll,
7467
+ a: ul,
7468
+ strong: kl,
7469
+ em: yl,
7470
+ li: pl,
7471
+ pre: il,
7472
+ code: al,
7473
+ blockquote: ll,
7474
+ hr: cl,
7475
+ ul: fl,
7476
+ ol: hl,
7477
+ table: Cl,
7478
+ th: gl,
7479
+ td: wl,
7480
+ img: dl,
7481
+ "entity-ref": El
7525
7482
  };
7526
- function ar({
7483
+ function ir({
7527
7484
  avatar: e,
7528
7485
  title: r,
7529
7486
  description: o,
@@ -7544,11 +7501,11 @@ function ar({
7544
7501
  children: [
7545
7502
  /* @__PURE__ */ a("div", { className: "flex w-full min-w-0 flex-row items-center gap-3", children: [
7546
7503
  e?.type === "module" && /* @__PURE__ */ t(yt, { module: e.module, size: "md" }),
7547
- e?.type === "file" && /* @__PURE__ */ t(Wn, { file: e.file, size: "lg" }),
7548
- e?.type === "icon" && /* @__PURE__ */ t(qn, { icon: e.icon, size: "md" }),
7504
+ e?.type === "file" && /* @__PURE__ */ t(Gn, { file: e.file, size: "lg" }),
7505
+ e?.type === "icon" && /* @__PURE__ */ t(Wn, { icon: e.icon, size: "md" }),
7549
7506
  /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-1 flex-col", children: [
7550
- /* @__PURE__ */ t(l1, { className: "text-lg font-semibold text-f1-foreground", children: r }),
7551
- o && /* @__PURE__ */ t(l1, { className: "text-base text-f1-foreground-secondary", children: o })
7507
+ /* @__PURE__ */ t(a1, { className: "text-lg font-semibold text-f1-foreground", children: r }),
7508
+ o && /* @__PURE__ */ t(a1, { className: "text-base text-f1-foreground-secondary", children: o })
7552
7509
  ] }),
7553
7510
  s.type === "open" && s.showButton !== !1 && /* @__PURE__ */ t(
7554
7511
  w1,
@@ -7576,9 +7533,9 @@ function ar({
7576
7533
  }
7577
7534
  );
7578
7535
  }
7579
- ar.displayName = "F0CanvasCard";
7536
+ ir.displayName = "F0CanvasCard";
7580
7537
  const ge = W1(null);
7581
- function O4({
7538
+ function j4({
7582
7539
  children: e
7583
7540
  }) {
7584
7541
  const [r, o] = D(0), n = $([]), s = O(
@@ -7599,7 +7556,7 @@ function O4({
7599
7556
  );
7600
7557
  return /* @__PURE__ */ t(ge.Provider, { value: i, children: e });
7601
7558
  }
7602
- function Pl(e) {
7559
+ function $l(e) {
7603
7560
  const o = I1(ge)?.formatters;
7604
7561
  return K(() => !o || o.length === 0 ? null : (n, s, i) => {
7605
7562
  let c, u = -1;
@@ -7613,7 +7570,7 @@ function Pl(e) {
7613
7570
  return c.format(s, { key: n, ...i });
7614
7571
  }, [o, e]);
7615
7572
  }
7616
- function U4() {
7573
+ function _4() {
7617
7574
  const e = I1(ge);
7618
7575
  if (!e)
7619
7576
  throw new Error(
@@ -7621,15 +7578,15 @@ function U4() {
7621
7578
  );
7622
7579
  return e.setFormCardValueFormatter;
7623
7580
  }
7624
- const Ve = 7, Dl = 625, Se = /* @__PURE__ */ new Set();
7625
- function jl(e) {
7581
+ const Ve = 7, Bl = 625, Se = /* @__PURE__ */ new Set();
7582
+ function Il(e) {
7626
7583
  return typeof DOMParser < "u" ? new DOMParser().parseFromString(e, "text/html").body.textContent?.replace(/\s+/g, " ").trim() ?? "" : e.replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
7627
7584
  }
7628
- function _l(e) {
7585
+ function Pl(e) {
7629
7586
  return e && e.charAt(0).toUpperCase() + e.slice(1);
7630
7587
  }
7631
- function Zl(e) {
7632
- const { days: r, hours: o, minutes: n, seconds: s } = Yn(e), i = [];
7588
+ function Dl(e) {
7589
+ const { days: r, hours: o, minutes: n, seconds: s } = Xn(e), i = [];
7633
7590
  return r > 0 && i.push(`${r}d`), o > 0 && i.push(`${o}h`), n > 0 && i.push(`${n}m`), (s > 0 || i.length === 0) && i.push(`${s}s`), i.join(" ");
7634
7591
  }
7635
7592
  function Te(e) {
@@ -7644,13 +7601,13 @@ function He(e) {
7644
7601
  function Ae(e) {
7645
7602
  return e.type === "item" ? e.text : "";
7646
7603
  }
7647
- function lr(e, r) {
7604
+ function ar(e, r) {
7648
7605
  if (e == null || e === "") return { type: "item", text: "—" };
7649
7606
  if (r === "duration" && typeof e == "number")
7650
- return { type: "item", text: Zl(e) };
7607
+ return { type: "item", text: Dl(e) };
7651
7608
  if (r === "richtext" && typeof e == "object" && e !== null && "value" in e) {
7652
7609
  const o = e.value;
7653
- return { type: "item", text: (o ? jl(o) : "") || "—" };
7610
+ return { type: "item", text: (o ? Il(o) : "") || "—" };
7654
7611
  }
7655
7612
  if (r === "daterange" && typeof e == "object" && e !== null && "from" in e && "to" in e) {
7656
7613
  const { from: o, to: n } = e, s = Te(o) ? He(o) : String(o), i = Te(n) ? He(n) : String(n);
@@ -7662,16 +7619,16 @@ function lr(e, r) {
7662
7619
  return { type: "item", text: e ? "Yes" : "No" };
7663
7620
  if (Array.isArray(e))
7664
7621
  return { type: "item", text: e.map((n) => {
7665
- const s = lr(n);
7622
+ const s = ar(n);
7666
7623
  return Array.isArray(s) ? s.map(Ae).join(", ") : Ae(s);
7667
7624
  }).filter(Boolean).join(", ") || "—" };
7668
7625
  if (typeof e == "object" && e !== null) {
7669
7626
  const o = e;
7670
7627
  return typeof o.label == "string" ? { type: "item", text: o.label } : typeof o.name == "string" ? { type: "item", text: o.name } : typeof o.text == "string" ? { type: "item", text: o.text } : { type: "item", text: JSON.stringify(e) };
7671
7628
  }
7672
- return { type: "item", text: _l(String(e)) };
7629
+ return { type: "item", text: Pl(String(e)) };
7673
7630
  }
7674
- function cr({
7631
+ function lr({
7675
7632
  formName: e,
7676
7633
  formDescription: r,
7677
7634
  module: o,
@@ -7681,7 +7638,7 @@ function cr({
7681
7638
  formValues: c,
7682
7639
  valueFormatter: u
7683
7640
  }) {
7684
- const { canvasContent: l, openCanvas: f, closeCanvas: d } = k1(), p = Pl(e), C = u ?? p, h = $(() => {
7641
+ const { canvasContent: l, openCanvas: f, closeCanvas: d } = k1(), p = $l(e), C = u ?? p, h = $(() => {
7685
7642
  }), g = n ?? e, v = s ?? r ?? "", w = l?.type === "form" && l.formName === e, b = () => f({
7686
7643
  type: "form",
7687
7644
  title: g,
@@ -7691,7 +7648,7 @@ function cr({
7691
7648
  formModule: o
7692
7649
  });
7693
7650
  h.current = b, W(() => {
7694
- typeof window > "u" || window.innerWidth < Dl || Se.has(e) || (Se.add(e), h.current());
7651
+ typeof window > "u" || window.innerWidth < Bl || Se.has(e) || (Se.add(e), h.current());
7695
7652
  }, [e]);
7696
7653
  const H = i && c ? Object.entries(i).map(([F, x]) => {
7697
7654
  const S = c[F], y = C?.(F, S, {
@@ -7700,7 +7657,7 @@ function cr({
7700
7657
  });
7701
7658
  if (!y && x.fieldType === "custom" && typeof S == "object" && S !== null)
7702
7659
  return null;
7703
- const B = y ?? lr(S, x.fieldType), N = ["richtext", "textarea"];
7660
+ const B = y ?? ar(S, x.fieldType), N = ["richtext", "textarea"];
7704
7661
  return {
7705
7662
  label: x.label,
7706
7663
  content: B,
@@ -7712,7 +7669,7 @@ function cr({
7712
7669
  return !(x?.type === "item" && x.text === "—");
7713
7670
  }) : [], A = H.slice(0, Ve), V = H.length > Ve;
7714
7671
  return /* @__PURE__ */ t(
7715
- ar,
7672
+ ir,
7716
7673
  {
7717
7674
  avatar: o ? { type: "module", module: o } : void 0,
7718
7675
  title: g,
@@ -7725,7 +7682,7 @@ function cr({
7725
7682
  showButton: w
7726
7683
  },
7727
7684
  children: A.length > 0 && !w && /* @__PURE__ */ t("div", { className: "-mx-3 flex w-full flex-col overflow-hidden pb-1", children: /* @__PURE__ */ t(
7728
- Xn,
7685
+ qn,
7729
7686
  {
7730
7687
  details: A.map((F) => ({
7731
7688
  title: F.label,
@@ -7740,13 +7697,13 @@ function cr({
7740
7697
  }
7741
7698
  );
7742
7699
  }
7743
- cr.displayName = "FormCard";
7744
- function Ol() {
7745
- const e = Kn(), r = e?.activeForm;
7700
+ lr.displayName = "FormCard";
7701
+ function jl() {
7702
+ const e = Yn(), r = e?.activeForm;
7746
7703
  if (!r) return null;
7747
7704
  const o = r.cardTitle, n = r.cardDescription, s = (e?.getFillVersion(r.formName) ?? 0) > 0;
7748
7705
  return !o || !n || !s ? null : /* @__PURE__ */ t("div", { className: "mt-2 w-full", children: /* @__PURE__ */ t(
7749
- cr,
7706
+ lr,
7750
7707
  {
7751
7708
  formName: r.formName,
7752
7709
  formDescription: r.description,
@@ -7758,19 +7715,19 @@ function Ol() {
7758
7715
  }
7759
7716
  ) });
7760
7717
  }
7761
- const Ul = 2;
7762
- function zl(e, r) {
7718
+ const _l = 2;
7719
+ function Zl(e, r) {
7763
7720
  if (!e.intersectsNode(r)) return null;
7764
7721
  const o = document.createRange();
7765
7722
  o.selectNodeContents(r);
7766
7723
  const n = e.cloneRange();
7767
7724
  n.compareBoundaryPoints(Range.START_TO_START, o) < 0 && n.setStart(o.startContainer, o.startOffset), n.compareBoundaryPoints(Range.END_TO_END, o) > 0 && n.setEnd(o.endContainer, o.endOffset);
7768
7725
  const s = n.toString().trim();
7769
- if (s.length < Ul) return null;
7726
+ if (s.length < _l) return null;
7770
7727
  const i = n.getBoundingClientRect();
7771
7728
  return { rect: i.width > 0 || i.height > 0 ? i : r.getBoundingClientRect(), text: s };
7772
7729
  }
7773
- function dr({
7730
+ function cr({
7774
7731
  containerRef: e,
7775
7732
  enabled: r = !0
7776
7733
  }) {
@@ -7785,7 +7742,7 @@ function dr({
7785
7742
  n(null);
7786
7743
  return;
7787
7744
  }
7788
- n(zl(f.getRangeAt(0), i));
7745
+ n(Zl(f.getRangeAt(0), i));
7789
7746
  }, u = () => {
7790
7747
  window.setTimeout(c, 0);
7791
7748
  }, l = () => {
@@ -7798,7 +7755,7 @@ function dr({
7798
7755
  }, [e, r]), { anchor: o, clear: s };
7799
7756
  }
7800
7757
  const Ee = 8, $1 = 8;
7801
- function ur({ anchor: e, onReply: r }) {
7758
+ function dr({ anchor: e, onReply: r }) {
7802
7759
  const o = G(), n = $(null), [s, i] = D(
7803
7760
  null
7804
7761
  );
@@ -7837,7 +7794,7 @@ function ur({ anchor: e, onReply: r }) {
7837
7794
  "drop-shadow"
7838
7795
  ),
7839
7796
  children: /* @__PURE__ */ t(
7840
- i1,
7797
+ c1,
7841
7798
  {
7842
7799
  ref: n,
7843
7800
  type: "button",
@@ -7854,7 +7811,7 @@ function ur({ anchor: e, onReply: r }) {
7854
7811
  document.body
7855
7812
  );
7856
7813
  }
7857
- const fr = W1(void 0), z4 = () => I1(fr), Gl = (e) => /* @__PURE__ */ t(Mt, { content: e, format: "markdown" }), Wl = ({
7814
+ const ur = W1(void 0), Z4 = () => I1(ur), Ol = (e) => /* @__PURE__ */ t(Mt, { content: e, format: "markdown" }), Ul = ({
7858
7815
  isGenerating: e,
7859
7816
  isLoading: r,
7860
7817
  message: o,
@@ -7863,24 +7820,24 @@ const fr = W1(void 0), z4 = () => I1(fr), Gl = (e) => /* @__PURE__ */ t(Mt, { co
7863
7820
  onRendered: i,
7864
7821
  renderMarkdown: c
7865
7822
  }) => {
7866
- const u = typeof o?.content == "string" ? o.content : "", l = (o && n?.(o)) ?? o?.generativeUI?.() ?? null, f = o?.toolCalls?.[0]?.id, d = !u && !l, p = $(null), { anchor: C, clear: h } = dr({
7823
+ const u = typeof o?.content == "string" ? o.content : "", l = (o && n?.(o)) ?? o?.generativeUI?.() ?? null, f = o?.toolCalls?.[0]?.id, d = !u && !l, p = $(null), { anchor: C, clear: h } = cr({
7867
7824
  containerRef: p,
7868
7825
  enabled: !!(o?.id && u)
7869
7826
  });
7870
7827
  return W(() => {
7871
7828
  o?.id && !r && !e && i?.(o);
7872
- }, [o, r, e, i]), !r && !e && d ? null : /* @__PURE__ */ t(fr.Provider, { value: f, children: /* @__PURE__ */ a("div", { className: "relative isolate flex w-full flex-col items-start justify-center", children: [
7829
+ }, [o, r, e, i]), !r && !e && d ? null : /* @__PURE__ */ t(ur.Provider, { value: f, children: /* @__PURE__ */ a("div", { className: "relative isolate flex w-full flex-col items-start justify-center", children: [
7873
7830
  o && u && /* @__PURE__ */ t(
7874
7831
  "div",
7875
7832
  {
7876
7833
  ref: p,
7877
7834
  className: "w-full max-w-full [&>div]:flex [&>div]:flex-col [&>div]:gap-1",
7878
- children: (c ?? Gl)(u)
7835
+ children: (c ?? Ol)(u)
7879
7836
  }
7880
7837
  ),
7881
7838
  !!l && /* @__PURE__ */ t("div", { className: "w-full", children: l }),
7882
7839
  /* @__PURE__ */ t(
7883
- ur,
7840
+ dr,
7884
7841
  {
7885
7842
  anchor: C,
7886
7843
  onReply: (g) => {
@@ -7889,7 +7846,7 @@ const fr = W1(void 0), z4 = () => I1(fr), Gl = (e) => /* @__PURE__ */ t(Mt, { co
7889
7846
  }
7890
7847
  )
7891
7848
  ] }) });
7892
- }, ql = ({
7849
+ }, zl = ({
7893
7850
  onClose: e,
7894
7851
  onSubmit: r,
7895
7852
  reactionType: o,
@@ -7908,7 +7865,7 @@ const fr = W1(void 0), z4 = () => I1(fr), Gl = (e) => /* @__PURE__ */ t(Mt, { co
7908
7865
  document.removeEventListener("keydown", C);
7909
7866
  };
7910
7867
  }, [d]), /* @__PURE__ */ t(
7911
- Qn,
7868
+ Kn,
7912
7869
  {
7913
7870
  position: "center",
7914
7871
  isOpen: !0,
@@ -7925,7 +7882,7 @@ const fr = W1(void 0), z4 = () => I1(fr), Gl = (e) => /* @__PURE__ */ t(Mt, { co
7925
7882
  onClick: p
7926
7883
  },
7927
7884
  children: /* @__PURE__ */ t("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ t(
7928
- Jn,
7885
+ Qn,
7929
7886
  {
7930
7887
  autoFocus: !0,
7931
7888
  label: l,
@@ -7938,7 +7895,7 @@ const fr = W1(void 0), z4 = () => I1(fr), Gl = (e) => /* @__PURE__ */ t(Mt, { co
7938
7895
  ) })
7939
7896
  }
7940
7897
  );
7941
- }, hr = W1(null), Xl = ({ children: e }) => {
7898
+ }, fr = W1(null), Gl = ({ children: e }) => {
7942
7899
  const [r, o] = D(null), n = r ? {
7943
7900
  isOpen: !0,
7944
7901
  currentReaction: r.action,
@@ -7952,32 +7909,32 @@ const fr = W1(void 0), z4 = () => I1(fr), Gl = (e) => /* @__PURE__ */ t(Mt, { co
7952
7909
  open: (s, i) => o({ action: s, message: i }),
7953
7910
  close: () => o(null)
7954
7911
  };
7955
- return /* @__PURE__ */ t(hr.Provider, { value: n, children: e });
7956
- }, pr = () => {
7957
- const e = I1(hr);
7912
+ return /* @__PURE__ */ t(fr.Provider, { value: n, children: e });
7913
+ }, hr = () => {
7914
+ const e = I1(fr);
7958
7915
  if (e === null)
7959
7916
  throw new Error(
7960
7917
  "useFeedbackModal must be used within a FeedbackModalProvider"
7961
7918
  );
7962
7919
  return e;
7963
7920
  };
7964
- function Yl(e) {
7965
- const r = pr();
7921
+ function Wl(e) {
7922
+ const r = hr();
7966
7923
  return { modal: r, handleSubmit: (s, i) => {
7967
7924
  (r.currentReaction === "like" ? e.onThumbsUp : e.onThumbsDown)?.(s, { threadId: e.threadId, feedback: i }), r.close();
7968
7925
  }, handleClose: (s) => {
7969
7926
  (r.currentReaction === "like" ? e.onThumbsUp : e.onThumbsDown)?.(s, { threadId: e.threadId, feedback: "" }), r.close();
7970
7927
  } };
7971
7928
  }
7972
- const Kl = ({
7929
+ const ql = ({
7973
7930
  content: e,
7974
7931
  targetMessage: r,
7975
7932
  onCopy: o
7976
7933
  }) => {
7977
- const n = G(), { open: s } = pr(), [i, c] = D(null);
7934
+ const n = G(), { open: s } = hr(), [i, c] = D(null);
7978
7935
  return /* @__PURE__ */ a("div", { className: "flex", children: [
7979
7936
  /* @__PURE__ */ t(
7980
- es,
7937
+ Jn,
7981
7938
  {
7982
7939
  size: "md",
7983
7940
  variant: "ghost",
@@ -7999,7 +7956,7 @@ const Kl = ({
7999
7956
  variant: "ghost",
8000
7957
  "aria-label": n.actions.thumbsUp,
8001
7958
  children: /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-1 items-center justify-center gap-1", children: /* @__PURE__ */ t(
8002
- a1,
7959
+ i1,
8003
7960
  {
8004
7961
  size: "md",
8005
7962
  icon: i === "like" ? jt : Dt,
@@ -8020,7 +7977,7 @@ const Kl = ({
8020
7977
  variant: "ghost",
8021
7978
  "aria-label": n.actions.thumbsDown,
8022
7979
  children: /* @__PURE__ */ t("div", { className: "flex min-w-0 flex-1 items-center justify-center gap-1", children: /* @__PURE__ */ t(
8023
- a1,
7980
+ i1,
8024
7981
  {
8025
7982
  size: "md",
8026
7983
  icon: i === "dislike" ? Pt : It,
@@ -8030,7 +7987,7 @@ const Kl = ({
8030
7987
  }
8031
7988
  )
8032
7989
  ] });
8033
- }, Ql = ({
7990
+ }, Xl = ({
8034
7991
  icon: e,
8035
7992
  title: r,
8036
7993
  children: o,
@@ -8058,9 +8015,9 @@ const Kl = ({
8058
8015
  c ? "flex w-full items-center text-base text-f1-foreground-secondary" : "flex w-full items-center text-base text-f1-foreground-secondary transition-colors duration-150 hover:text-f1-foreground [&[data-state=open]>svg]:rotate-90"
8059
8016
  ),
8060
8017
  children: [
8061
- /* @__PURE__ */ t("span", { className: "flex items-center justify-start h-6 w-6", children: /* @__PURE__ */ t(a1, { icon: e, className: "block" }) }),
8018
+ /* @__PURE__ */ t("span", { className: "flex items-center justify-start h-6 w-6", children: /* @__PURE__ */ t(i1, { icon: e, className: "block" }) }),
8062
8019
  /* @__PURE__ */ t("div", { className: "min-h-6 flex items-center", children: /* @__PURE__ */ t("span", { children: r }) }),
8063
- !c && /* @__PURE__ */ t(a1, { icon: q1 })
8020
+ !c && /* @__PURE__ */ t(i1, { icon: q1 })
8064
8021
  ]
8065
8022
  }
8066
8023
  ),
@@ -8084,7 +8041,7 @@ const Kl = ({
8084
8041
  ]
8085
8042
  }
8086
8043
  );
8087
- }, Jl = ({
8044
+ }, Yl = ({
8088
8045
  titles: e,
8089
8046
  title: r,
8090
8047
  inProgress: o,
@@ -8096,7 +8053,7 @@ const Kl = ({
8096
8053
  }, [o, i]);
8097
8054
  const l = o ? s.ai.thoughtsGroupTitle : r ?? s.ai.thoughtsGroupTitle, f = e.length - 1, d = (p) => !o || n ? "completed" : p === f ? "executing" : "completed";
8098
8055
  return /* @__PURE__ */ t(
8099
- Ql,
8056
+ Xl,
8100
8057
  {
8101
8058
  icon: Et,
8102
8059
  title: l,
@@ -8123,14 +8080,14 @@ const Kl = ({
8123
8080
  }
8124
8081
  );
8125
8082
  };
8126
- function e6(e) {
8083
+ function Kl(e) {
8127
8084
  if (typeof e == "string") return e;
8128
8085
  if (Array.isArray(e)) {
8129
8086
  const r = e.filter((o) => o.type === "text").map((o) => o.text).filter((o) => typeof o == "string");
8130
8087
  return r[r.length - 1];
8131
8088
  }
8132
8089
  }
8133
- function t6(e, r) {
8090
+ function Ql(e, r) {
8134
8091
  const o = Array.isArray(e) ? e.filter((n) => n.type === "binary").map((n) => ({
8135
8092
  url: n.url,
8136
8093
  filename: n.filename,
@@ -8142,13 +8099,13 @@ function t6(e, r) {
8142
8099
  (n) => typeof n?.filename == "string" && typeof n?.mimetype == "string" && typeof n?.url == "string"
8143
8100
  );
8144
8101
  }
8145
- const mr = (e) => /* @__PURE__ */ t(Mt, { content: e, format: "markdown" }), r6 = ({
8102
+ const pr = (e) => /* @__PURE__ */ t(Mt, { content: e, format: "markdown" }), Jl = ({
8146
8103
  text: e,
8147
8104
  renderMarkdown: r
8148
8105
  }) => /* @__PURE__ */ a("div", { className: "flex max-w-[90%] items-start gap-2 self-end pb-1 pr-2 text-f1-foreground-tertiary", children: [
8149
- /* @__PURE__ */ t("div", { className: "flex h-5 items-center", children: /* @__PURE__ */ t(a1, { icon: ce }) }),
8150
- /* @__PURE__ */ t("div", { className: "min-w-0 whitespace-pre-wrap text-base leading-5 [&>div]:flex [&>div]:flex-col [&>div]:gap-1 [&_p]:m-0", children: (r ?? mr)(e) })
8151
- ] }), o6 = ({
8106
+ /* @__PURE__ */ t("div", { className: "flex h-5 items-center", children: /* @__PURE__ */ t(i1, { icon: ce }) }),
8107
+ /* @__PURE__ */ t("div", { className: "min-w-0 whitespace-pre-wrap text-base leading-5 [&>div]:flex [&>div]:flex-col [&>div]:gap-1 [&_p]:m-0", children: (r ?? pr)(e) })
8108
+ ] }), e6 = ({
8152
8109
  message: e,
8153
8110
  onReplyQuote: r,
8154
8111
  autoScrollIntoView: o = !0,
@@ -8160,10 +8117,10 @@ const mr = (e) => /* @__PURE__ */ t(Mt, { content: e, format: "markdown" }), r6
8160
8117
  behavior: "smooth"
8161
8118
  });
8162
8119
  }, [o]);
8163
- const c = e.rawData, u = t6(
8120
+ const c = e.rawData, u = Ql(
8164
8121
  e?.content,
8165
8122
  c
8166
- ), l = (e6(e?.content) ?? "").trim(), f = e?.replyQuote ?? null, d = l.length > 0, { anchor: p, clear: C } = dr({
8123
+ ), l = (Kl(e?.content) ?? "").trim(), f = e?.replyQuote ?? null, d = l.length > 0, { anchor: p, clear: C } = cr({
8167
8124
  containerRef: i,
8168
8125
  enabled: d
8169
8126
  });
@@ -8173,7 +8130,7 @@ const mr = (e) => /* @__PURE__ */ t(Mt, { content: e, format: "markdown" }), r6
8173
8130
  ref: s,
8174
8131
  className: "my-4 flex w-full flex-col items-end gap-2 first:mt-0 last:mb-0",
8175
8132
  children: [
8176
- f && /* @__PURE__ */ t(r6, { text: f, renderMarkdown: n }),
8133
+ f && /* @__PURE__ */ t(Jl, { text: f, renderMarkdown: n }),
8177
8134
  u.length > 0 && /* @__PURE__ */ t("div", { className: "flex max-w-[90%] flex-wrap justify-end gap-1.5", children: u.map((h, g) => /* @__PURE__ */ t(
8178
8135
  bt,
8179
8136
  {
@@ -8187,11 +8144,11 @@ const mr = (e) => /* @__PURE__ */ t(Mt, { content: e, format: "markdown" }), r6
8187
8144
  {
8188
8145
  ref: i,
8189
8146
  className: "w-fit max-w-[90%] self-end whitespace-pre-wrap rounded-xl bg-f1-background-tertiary px-4 py-3 [&>div]:flex [&>div]:flex-col [&>div]:gap-1",
8190
- children: (n ?? mr)(l)
8147
+ children: (n ?? pr)(l)
8191
8148
  }
8192
8149
  ),
8193
8150
  /* @__PURE__ */ t(
8194
- ur,
8151
+ dr,
8195
8152
  {
8196
8153
  anchor: p,
8197
8154
  onReply: (h) => {
@@ -8202,7 +8159,7 @@ const mr = (e) => /* @__PURE__ */ t(Mt, { content: e, format: "markdown" }), r6
8202
8159
  ]
8203
8160
  }
8204
8161
  );
8205
- }, n6 = 35, s6 = 22, i6 = 400, a6 = 2500, l6 = 220, c6 = ({
8162
+ }, t6 = 35, r6 = 22, o6 = 400, n6 = 2500, s6 = 220, i6 = ({
8206
8163
  messages: e,
8207
8164
  caption: r,
8208
8165
  subtitle: o,
@@ -8220,15 +8177,15 @@ const mr = (e) => /* @__PURE__ */ t(Mt, { content: e, format: "markdown" }), r6
8220
8177
  if (p) return;
8221
8178
  let b;
8222
8179
  if (f === "starting")
8223
- b = setTimeout(() => d("writing"), i6);
8180
+ b = setTimeout(() => d("writing"), o6);
8224
8181
  else if (f === "writing")
8225
- u < C.length ? b = setTimeout(() => l((H) => H + 1), n6) : d("holding");
8182
+ u < C.length ? b = setTimeout(() => l((H) => H + 1), t6) : d("holding");
8226
8183
  else if (f === "holding") {
8227
8184
  if (e.length <= 1) return;
8228
- b = setTimeout(() => d("erasing"), a6);
8229
- } else f === "erasing" && (u > 0 ? b = setTimeout(() => l((H) => H - 1), s6) : b = setTimeout(() => {
8185
+ b = setTimeout(() => d("erasing"), n6);
8186
+ } else f === "erasing" && (u > 0 ? b = setTimeout(() => l((H) => H - 1), r6) : b = setTimeout(() => {
8230
8187
  c((H) => (H + 1) % e.length), d("starting");
8231
- }, l6));
8188
+ }, s6));
8232
8189
  return () => {
8233
8190
  b && clearTimeout(b);
8234
8191
  };
@@ -8273,7 +8230,7 @@ const mr = (e) => /* @__PURE__ */ t(Mt, { content: e, format: "markdown" }), r6
8273
8230
  }
8274
8231
  );
8275
8232
  };
8276
- function d6({
8233
+ function a6({
8277
8234
  viewportRef: e,
8278
8235
  contentRef: r,
8279
8236
  endRef: o,
@@ -8320,13 +8277,13 @@ function d6({
8320
8277
  }), s === 0 && f(!1), d.current = s;
8321
8278
  }, [s, n, e]), { showScrollBtn: l, turnMinHeight: c, scrollToBottom: C };
8322
8279
  }
8323
- const u6 = {
8280
+ const l6 = {
8324
8281
  threadId: "",
8325
8282
  onThumbsUp: () => {
8326
8283
  },
8327
8284
  onThumbsDown: () => {
8328
8285
  }
8329
- }, G4 = (e) => /* @__PURE__ */ t(Xl, { children: /* @__PURE__ */ t(f6, { ...e }) }), f6 = ({
8286
+ }, O4 = (e) => /* @__PURE__ */ t(Gl, { children: /* @__PURE__ */ t(c6, { ...e }) }), c6 = ({
8330
8287
  turns: e,
8331
8288
  isLoadingThread: r = !1,
8332
8289
  interrupt: o,
@@ -8349,12 +8306,12 @@ const u6 = {
8349
8306
  onRegenerate: A,
8350
8307
  onCopy: V
8351
8308
  }) => {
8352
- const { modal: F, handleSubmit: x, handleClose: S } = Yl(
8353
- C ?? u6
8354
- ), y = G(), B = b ?? Wl, N = H ?? o6, T = K(() => {
8309
+ const { modal: F, handleSubmit: x, handleClose: S } = Wl(
8310
+ C ?? l6
8311
+ ), y = G(), B = b ?? Ul, N = H ?? e6, T = K(() => {
8355
8312
  const j = n ?? y.ai.defaultInitialMessage;
8356
8313
  return (Array.isArray(j) ? j : [j]).filter((n1) => typeof n1 == "string" && n1.length > 0);
8357
- }, [n, y.ai.defaultInitialMessage]), I = !r && e.length === 0 && T.length > 0, U = $(null), Z = $(null), z = $(null), J = $(null), t1 = $(null), { showScrollBtn: q, turnMinHeight: X, scrollToBottom: r1 } = d6({
8314
+ }, [n, y.ai.defaultInitialMessage]), I = !r && e.length === 0 && T.length > 0, U = $(null), Z = $(null), z = $(null), J = $(null), t1 = $(null), { showScrollBtn: q, turnMinHeight: X, scrollToBottom: r1 } = a6({
8358
8315
  viewportRef: U,
8359
8316
  contentRef: Z,
8360
8317
  endRef: z,
@@ -8427,7 +8384,7 @@ const u6 = {
8427
8384
  (d1, L) => m1(d1, L)
8428
8385
  ),
8429
8386
  j.thinking && j.thinking.titles.length > 0 && /* @__PURE__ */ t(
8430
- Jl,
8387
+ Yl,
8431
8388
  {
8432
8389
  titles: j.thinking.titles,
8433
8390
  title: y.ai.thoughtsGroupTitle,
@@ -8441,14 +8398,14 @@ const u6 = {
8441
8398
  j.endIndicator === "thinking" && /* @__PURE__ */ t(oe, { title: y.ai.thinking, status: "executing" }),
8442
8399
  j.endIndicator === "activity" && /* @__PURE__ */ t(oe, { status: "writing" }),
8443
8400
  j.feedback && /* @__PURE__ */ t(
8444
- Kl,
8401
+ ql,
8445
8402
  {
8446
8403
  content: j.feedback.content,
8447
8404
  targetMessage: j.feedback.targetMessage,
8448
8405
  onCopy: V
8449
8406
  }
8450
8407
  ),
8451
- n1 && /* @__PURE__ */ t(Ol, {})
8408
+ n1 && /* @__PURE__ */ t(jl, {})
8452
8409
  ]
8453
8410
  },
8454
8411
  `turn-${o1}`
@@ -8482,9 +8439,9 @@ const u6 = {
8482
8439
  "w-full max-w-content"
8483
8440
  ),
8484
8441
  children: [
8485
- r && /* @__PURE__ */ t(h6, {}),
8442
+ r && /* @__PURE__ */ t(d6, {}),
8486
8443
  I && /* @__PURE__ */ t(
8487
- c6,
8444
+ i6,
8488
8445
  {
8489
8446
  messages: T,
8490
8447
  caption: s,
@@ -8509,7 +8466,7 @@ const u6 = {
8509
8466
  exit: { opacity: 0, scale: 0.8 },
8510
8467
  transition: { duration: 0.2 },
8511
8468
  children: /* @__PURE__ */ t("div", { className: "rounded bg-f1-background", children: /* @__PURE__ */ t(
8512
- i1,
8469
+ c1,
8513
8470
  {
8514
8471
  onClick: () => r1(),
8515
8472
  label: y.ai.scrollToBottom,
@@ -8531,7 +8488,7 @@ const u6 = {
8531
8488
  ] })
8532
8489
  ] }),
8533
8490
  F.isOpen && /* @__PURE__ */ t(
8534
- ql,
8491
+ zl,
8535
8492
  {
8536
8493
  onSubmit: x,
8537
8494
  onClose: S,
@@ -8540,38 +8497,38 @@ const u6 = {
8540
8497
  }
8541
8498
  )
8542
8499
  ] });
8543
- }, h6 = () => /* @__PURE__ */ t("div", { className: "flex h-full w-full max-w-content flex-col gap-6", children: /* @__PURE__ */ a("div", { className: "flex flex-col gap-2", children: [
8500
+ }, d6 = () => /* @__PURE__ */ t("div", { className: "flex h-full w-full max-w-content flex-col gap-6", children: /* @__PURE__ */ a("div", { className: "flex flex-col gap-2", children: [
8544
8501
  /* @__PURE__ */ t("div", { className: "flex justify-end", children: /* @__PURE__ */ t(h1, { className: "h-12 w-2/5 rounded-full" }) }),
8545
8502
  /* @__PURE__ */ t(h1, { className: "mt-6 h-5 w-full rounded-md" }),
8546
8503
  /* @__PURE__ */ t(h1, { className: "h-5 w-2/5 rounded-md" }),
8547
8504
  /* @__PURE__ */ t(h1, { className: "h-5 w-4/5 rounded-md" })
8548
- ] }) }), W4 = {
8505
+ ] }) }), U4 = {
8549
8506
  ai: ks.ai
8550
- }, Cr = W1(null);
8551
- function q4({
8507
+ }, mr = W1(null);
8508
+ function z4({
8552
8509
  children: e,
8553
8510
  translations: r
8554
8511
  }) {
8555
- return /* @__PURE__ */ t(Cr.Provider, { value: r, children: e });
8512
+ return /* @__PURE__ */ t(mr.Provider, { value: r, children: e });
8556
8513
  }
8557
- function X4() {
8558
- const e = I1(Cr);
8514
+ function G4() {
8515
+ const e = I1(mr);
8559
8516
  if (e === null)
8560
8517
  throw new Error(
8561
8518
  "useAiChatTranslations must be used within an AiChatTranslationsProvider"
8562
8519
  );
8563
8520
  return e;
8564
8521
  }
8565
- function p6() {
8522
+ function u6() {
8566
8523
  const { canvasEntities: e } = k1();
8567
8524
  return e;
8568
8525
  }
8569
- function Y4(e) {
8570
- const r = p6();
8526
+ function W4(e) {
8527
+ const r = u6();
8571
8528
  if (!(!e || !r))
8572
8529
  return r[e];
8573
8530
  }
8574
- const m6 = ({
8531
+ const f6 = ({
8575
8532
  canProceed: e,
8576
8533
  submitDisabled: r,
8577
8534
  label: o,
@@ -8600,7 +8557,7 @@ const m6 = ({
8600
8557
  }
8601
8558
  )
8602
8559
  ] });
8603
- }, gr = ({ isSelected: e }) => /* @__PURE__ */ t(
8560
+ }, Cr = ({ isSelected: e }) => /* @__PURE__ */ t(
8604
8561
  "div",
8605
8562
  {
8606
8563
  className: k(
@@ -8609,7 +8566,7 @@ const m6 = ({
8609
8566
  ),
8610
8567
  children: e && /* @__PURE__ */ t("div", { className: "h-2 w-2 rounded-full bg-f1-background" })
8611
8568
  }
8612
- ), $e = 132, C6 = ({
8569
+ ), $e = 132, h6 = ({
8613
8570
  mode: e,
8614
8571
  hasSelection: r,
8615
8572
  hasCustomText: o,
@@ -8630,7 +8587,7 @@ const m6 = ({
8630
8587
  const b = Math.min(w.scrollHeight, $e);
8631
8588
  w.style.height = `${b}px`, w.style.overflowY = w.scrollHeight > $e ? "auto" : "hidden";
8632
8589
  }, [n]);
8633
- const v = e === "single" ? /* @__PURE__ */ t(gr, { isSelected: o && !r }) : /* @__PURE__ */ t(
8590
+ const v = e === "single" ? /* @__PURE__ */ t(Cr, { isSelected: o && !r }) : /* @__PURE__ */ t(
8634
8591
  Vt,
8635
8592
  {
8636
8593
  checked: s,
@@ -8667,7 +8624,7 @@ const m6 = ({
8667
8624
  ]
8668
8625
  }
8669
8626
  );
8670
- }, wr = m(
8627
+ }, gr = m(
8671
8628
  ({ option: e, isSelected: r, mode: o, isTabStop: n, onToggle: s, onKeyNavigate: i }, c) => o === "single" ? /* @__PURE__ */ a(
8672
8629
  "div",
8673
8630
  {
@@ -8688,7 +8645,7 @@ const m6 = ({
8688
8645
  i?.(u);
8689
8646
  },
8690
8647
  children: [
8691
- /* @__PURE__ */ t(gr, { isSelected: r }),
8648
+ /* @__PURE__ */ t(Cr, { isSelected: r }),
8692
8649
  /* @__PURE__ */ t("span", { className: "text-base font-medium text-f1-foreground", children: e.label })
8693
8650
  ]
8694
8651
  }
@@ -8721,8 +8678,8 @@ const m6 = ({
8721
8678
  }
8722
8679
  )
8723
8680
  );
8724
- wr.displayName = "OptionRow";
8725
- const g6 = ({
8681
+ gr.displayName = "OptionRow";
8682
+ const p6 = ({
8726
8683
  mode: e,
8727
8684
  question: r,
8728
8685
  options: o,
@@ -8792,7 +8749,7 @@ const g6 = ({
8792
8749
  delay: b ? 0 : 0.12 + y * 0.06
8793
8750
  },
8794
8751
  children: /* @__PURE__ */ t(
8795
- wr,
8752
+ gr,
8796
8753
  {
8797
8754
  ref: (B) => {
8798
8755
  F.current[y] = B;
@@ -8809,7 +8766,7 @@ const g6 = ({
8809
8766
  S.id
8810
8767
  )),
8811
8768
  s && /* @__PURE__ */ t(
8812
- C6,
8769
+ h6,
8813
8770
  {
8814
8771
  mode: e,
8815
8772
  hasSelection: i,
@@ -8827,7 +8784,7 @@ const g6 = ({
8827
8784
  ]
8828
8785
  }
8829
8786
  );
8830
- }, w6 = ({
8787
+ }, m6 = ({
8831
8788
  question: e,
8832
8789
  stepLabel: r,
8833
8790
  isFirstStep: o,
@@ -8840,7 +8797,7 @@ const g6 = ({
8840
8797
  const l = G();
8841
8798
  return /* @__PURE__ */ a("div", { className: "flex items-start gap-0.5 pl-4 pr-3", children: [
8842
8799
  /* @__PURE__ */ t(
8843
- l1,
8800
+ a1,
8844
8801
  {
8845
8802
  className: "min-w-0 flex-1 text-lg font-semibold text-f1-foreground",
8846
8803
  lines: 3,
@@ -8886,16 +8843,16 @@ const g6 = ({
8886
8843
  }
8887
8844
  )
8888
8845
  ] });
8889
- }, v6 = "easeOut", x6 = 0.3, K4 = ({
8846
+ }, C6 = "easeOut", g6 = 0.3, q4 = ({
8890
8847
  clarifyingQuestion: e,
8891
8848
  isSubmitDisabled: r
8892
8849
  }) => /* @__PURE__ */ t(
8893
- b6,
8850
+ w6,
8894
8851
  {
8895
8852
  clarifyingQuestion: e,
8896
8853
  isSubmitDisabled: r
8897
8854
  }
8898
- ), b6 = ({
8855
+ ), w6 = ({
8899
8856
  clarifyingQuestion: e,
8900
8857
  isSubmitDisabled: r
8901
8858
  }) => {
@@ -8936,7 +8893,7 @@ const g6 = ({
8936
8893
  });
8937
8894
  }, o1 = (f1) => {
8938
8895
  f1.key === "Escape" && (f1.preventDefault(), d());
8939
- }, n1 = n ? 0 : x6 / 2;
8896
+ }, n1 = n ? 0 : g6 / 2;
8940
8897
  return /* @__PURE__ */ a("div", { className: "flex flex-col", onKeyDown: o1, children: [
8941
8898
  /* @__PURE__ */ t("div", { className: "flex flex-col gap-3 pt-3", children: /* @__PURE__ */ t(M1, { mode: "wait", initial: !1, children: /* @__PURE__ */ a(
8942
8899
  Q.div,
@@ -8945,10 +8902,10 @@ const g6 = ({
8945
8902
  initial: { opacity: 0 },
8946
8903
  animate: { opacity: 1 },
8947
8904
  exit: { opacity: 0 },
8948
- transition: { duration: n1, ease: v6 },
8905
+ transition: { duration: n1, ease: C6 },
8949
8906
  children: [
8950
8907
  /* @__PURE__ */ t(
8951
- w6,
8908
+ m6,
8952
8909
  {
8953
8910
  question: v,
8954
8911
  stepLabel: I,
@@ -8961,7 +8918,7 @@ const g6 = ({
8961
8918
  }
8962
8919
  ),
8963
8920
  /* @__PURE__ */ t(
8964
- g6,
8921
+ p6,
8965
8922
  {
8966
8923
  mode: y,
8967
8924
  question: v,
@@ -8986,7 +8943,7 @@ const g6 = ({
8986
8943
  i
8987
8944
  ) }) }),
8988
8945
  /* @__PURE__ */ t(
8989
- m6,
8946
+ f6,
8990
8947
  {
8991
8948
  canProceed: z,
8992
8949
  submitDisabled: J,
@@ -9117,7 +9074,7 @@ function Ie(e, r, o) {
9117
9074
  }
9118
9075
  return n;
9119
9076
  }
9120
- function L6(e, r, o) {
9077
+ function v6(e, r, o) {
9121
9078
  const n = Ie(e, e.VERTEX_SHADER, r), s = Ie(e, e.FRAGMENT_SHADER, o), i = e.createProgram();
9122
9079
  if (!i) throw new Error("Failed to create program");
9123
9080
  if (e.attachShader(i, n), e.attachShader(i, s), e.linkProgram(i), !e.getProgramParameter(i, e.LINK_STATUS)) {
@@ -9126,7 +9083,7 @@ function L6(e, r, o) {
9126
9083
  }
9127
9084
  return e.deleteShader(n), e.deleteShader(s), i;
9128
9085
  }
9129
- const k6 = `#version 300 es
9086
+ const x6 = `#version 300 es
9130
9087
  precision lowp float;
9131
9088
 
9132
9089
  in vec2 vUV;
@@ -9333,7 +9290,7 @@ void main() {
9333
9290
 
9334
9291
  outColor = vec4(color, alpha);
9335
9292
  }
9336
- `, y6 = `#version 300 es
9293
+ `, b6 = `#version 300 es
9337
9294
 
9338
9295
  in vec2 aPosition;
9339
9296
  in vec2 aUV;
@@ -9342,7 +9299,7 @@ void main() {
9342
9299
  vUV = aUV;
9343
9300
  gl_Position = vec4(aPosition, 0.0, 1.0);
9344
9301
  }
9345
- `, M6 = [
9302
+ `, L6 = [
9346
9303
  "rgb(229, 25, 67)",
9347
9304
  // #E51943 red
9348
9305
  "rgb(229, 86, 25)",
@@ -9352,14 +9309,14 @@ void main() {
9352
9309
  "rgb(161, 173, 229)"
9353
9310
  // #A1ADE5 light blue
9354
9311
  ];
9355
- function R6(e) {
9312
+ function k6(e) {
9356
9313
  const r = e.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
9357
9314
  if (!r)
9358
9315
  throw new Error(`Invalid color format: ${e}`);
9359
9316
  const [, o, n, s] = r;
9360
9317
  return [parseInt(o) / 255, parseInt(n) / 255, parseInt(s) / 255];
9361
9318
  }
9362
- class Q4 {
9319
+ class X4 {
9363
9320
  element;
9364
9321
  canvas;
9365
9322
  options;
@@ -9509,7 +9466,7 @@ class Q4 {
9509
9466
  });
9510
9467
  if (!r)
9511
9468
  throw new Error("WebGL2 is required but not available.");
9512
- const o = L6(r, y6, k6);
9469
+ const o = v6(r, b6, x6);
9513
9470
  this.checkGLError(r, "setupGL: after createProgram");
9514
9471
  const n = r.createVertexArray();
9515
9472
  r.bindVertexArray(n), this.checkGLError(r, "setupGL: after VAO creation");
@@ -9528,7 +9485,7 @@ class Q4 {
9528
9485
  r.enableVertexAttribArray(p), r.vertexAttribPointer(p, 2, r.FLOAT, !1, 0, 0), this.checkGLError(r, "setupGL: after UV buffer setup");
9529
9486
  const C = r.getUniformLocation(o, "uResolution"), h = r.getUniformLocation(o, "uTime"), g = r.getUniformLocation(o, "uBorderWidth"), v = r.getUniformLocation(o, "uGlowWidth"), w = r.getUniformLocation(o, "uBorderRadius"), b = r.getUniformLocation(o, "uColors"), H = r.getUniformLocation(o, "uGlowExponent"), A = r.getUniformLocation(o, "uGlowFactor");
9530
9487
  r.useProgram(o), r.uniform1f(g, this.options.borderWidth), r.uniform1f(v, this.options.glowWidth), r.uniform1f(w, this.options.borderRadius), this.options.mode === "dark" ? (r.uniform1f(H, 2), r.uniform1f(A, 1.8)) : (r.uniform1f(H, 1), r.uniform1f(A, 1));
9531
- const V = (this.options.colors || M6).map(R6);
9488
+ const V = (this.options.colors || L6).map(k6);
9532
9489
  for (let F = 0; F < V.length; F++)
9533
9490
  r.uniform3f(
9534
9491
  r.getUniformLocation(o, `uColors[${F}]`),
@@ -9554,30 +9511,30 @@ class Q4 {
9554
9511
  o.useProgram(n), o.bindVertexArray(s), o.uniform1f(i, r), o.disable(o.DEPTH_TEST), o.disable(o.CULL_FACE), o.disable(o.BLEND), o.clearColor(0, 0, 0, 0), o.clear(o.COLOR_BUFFER_BIT), o.drawArrays(o.TRIANGLES, 0, 24), this.checkGLError(o, "render: after draw call"), o.bindVertexArray(null);
9555
9512
  }
9556
9513
  }
9557
- const Pe = ["lowp", "mediump", "highp"], F6 = `
9514
+ const Pe = ["lowp", "mediump", "highp"], y6 = `
9558
9515
  void main(void){
9559
9516
  vec4 color = vec4(0.0,0.0,0.0,1.0);
9560
9517
  mainImage( color, gl_FragCoord.xy );
9561
9518
  gl_FragColor = color;
9562
- }`, N6 = `void mainImage( out vec4 fragColor, in vec2 fragCoord ) {
9519
+ }`, M6 = `void mainImage( out vec4 fragColor, in vec2 fragCoord ) {
9563
9520
  vec2 uv = fragCoord/iResolution.xy;
9564
9521
  vec3 col = 0.5 + 0.5*cos(iTime+uv.xyx+vec3(0,2,4));
9565
9522
  fragColor = vec4(col,1.0);
9566
9523
  }`, De = `attribute vec3 aVertexPosition;
9567
9524
  void main(void) {
9568
9525
  gl_Position = vec4(aVertexPosition, 1.0);
9569
- }`, je = "iTime", _e = "iTimeDelta", Ze = "iDate", Oe = "iFrame", Ue = "iMouse", ze = "iResolution", V6 = "iChannel", Ge = "iChannelResolution", We = "iDeviceOrientation";
9570
- function S6(e, r) {
9526
+ }`, je = "iTime", _e = "iTimeDelta", Ze = "iDate", Oe = "iFrame", Ue = "iMouse", ze = "iResolution", R6 = "iChannel", Ge = "iChannelResolution", We = "iDeviceOrientation";
9527
+ function F6(e, r) {
9571
9528
  return e.includes("Matrix") && Array.isArray(r);
9572
9529
  }
9573
- function T6(e, r) {
9530
+ function N6(e, r) {
9574
9531
  return e.includes("v") && Array.isArray(r) && r.length > Number.parseInt(e.charAt(0));
9575
9532
  }
9576
- function H6(e, r) {
9533
+ function V6(e, r) {
9577
9534
  return !e.includes("v") && Array.isArray(r) && r.length > Number.parseInt(e.charAt(0));
9578
9535
  }
9579
- const A6 = (e, r, o, n) => {
9580
- if (H6(o, n))
9536
+ const S6 = (e, r, o, n) => {
9537
+ if (V6(o, n))
9581
9538
  switch (o) {
9582
9539
  case "2f":
9583
9540
  return e.uniform2f(r, n[0], n[1]);
@@ -9618,7 +9575,7 @@ const A6 = (e, r, o, n) => {
9618
9575
  case "Matrix4fv":
9619
9576
  return e.uniformMatrix4fv(r, !1, n);
9620
9577
  }
9621
- }, E6 = (e) => {
9578
+ }, T6 = (e) => {
9622
9579
  switch (e) {
9623
9580
  case "1f":
9624
9581
  return "float";
@@ -9665,8 +9622,8 @@ const A6 = (e, r, o, n) => {
9665
9622
  )
9666
9623
  );
9667
9624
  }
9668
- }, re = 9729, qe = 9728, $6 = 9987, Xe = 33071, Ye = 10497;
9669
- class B6 {
9625
+ }, re = 9729, qe = 9728, H6 = 9987, Xe = 33071, Ye = 10497;
9626
+ class A6 {
9670
9627
  gl;
9671
9628
  url;
9672
9629
  wrapS;
@@ -9798,7 +9755,7 @@ class B6 {
9798
9755
  ), o.texParameteri(
9799
9756
  o.TEXTURE_2D,
9800
9757
  o.TEXTURE_MIN_FILTER,
9801
- this.minFilter || $6
9758
+ this.minFilter || H6
9802
9759
  ), o.texParameteri(
9803
9760
  o.TEXTURE_2D,
9804
9761
  o.TEXTURE_MAG_FILTER,
@@ -9812,8 +9769,8 @@ const L1 = (e) => `react-shaders: ${e}`, Ke = (e) => {
9812
9769
  return [r?.clientX ?? 0, r?.clientY ?? 0];
9813
9770
  }
9814
9771
  return [e.clientX, e.clientY];
9815
- }, Qe = (e, r, o) => e * (1 - o) + r * o, I6 = (e, r, o) => o > 0 ? e.substring(0, o) + r + e.substring(o, e.length) : r + e;
9816
- function P6({
9772
+ }, Qe = (e, r, o) => e * (1 - o) + r * o, E6 = (e, r, o) => o > 0 ? e.substring(0, o) + r + e.substring(o, e.length) : r + e;
9773
+ function $6({
9817
9774
  fs: e,
9818
9775
  vs: r = De,
9819
9776
  textures: o = [],
@@ -9949,13 +9906,13 @@ ${R}`));
9949
9906
  for (const L of Object.keys(n)) {
9950
9907
  const R = n[L];
9951
9908
  if (!R) continue;
9952
- const { value: M, type: P } = R, E = E6(P);
9909
+ const { value: M, type: P } = R, E = T6(P);
9953
9910
  if (!E) continue;
9954
9911
  const _ = {};
9955
- if (S6(P, M)) {
9956
- const c1 = P.length, u1 = Number.parseInt(P.charAt(c1 - 3)), g1 = Math.floor(M.length / (u1 * u1));
9912
+ if (F6(P, M)) {
9913
+ const l1 = P.length, u1 = Number.parseInt(P.charAt(l1 - 3)), g1 = Math.floor(M.length / (u1 * u1));
9957
9914
  M.length > u1 * u1 && (_.arraySize = `[${g1}]`);
9958
- } else T6(P, M) && (_.arraySize = `[${Math.floor(M.length / Number.parseInt(P.charAt(0)))}]`);
9915
+ } else N6(P, M) && (_.arraySize = `[${Math.floor(M.length / Number.parseInt(P.charAt(0)))}]`);
9959
9916
  N.current[L] = {
9960
9917
  type: E,
9961
9918
  isNeeded: !1,
@@ -9974,10 +9931,10 @@ ${R}`));
9974
9931
  value: []
9975
9932
  };
9976
9933
  const R = o.map(
9977
- (M, P) => (N.current[`${V6}${P}`] = {
9934
+ (M, P) => (N.current[`${R6}${P}`] = {
9978
9935
  type: "sampler2D",
9979
9936
  isNeeded: !1
9980
- }, I(M, P), S.current[P] = new B6(L), S.current[P]?.load(M).then((E) => {
9937
+ }, I(M, P), S.current[P] = new A6(L), S.current[P]?.load(M).then((E) => {
9981
9938
  I(E, P);
9982
9939
  }))
9983
9940
  );
@@ -9999,16 +9956,16 @@ ${R}`));
9999
9956
  `).concat(L.replace(/texture\(/g, "texture2D("));
10000
9957
  for (const _ of Object.keys(N.current))
10001
9958
  if (L.includes(_)) {
10002
- const c1 = N.current[_];
10003
- if (!c1) continue;
10004
- P = I6(
9959
+ const l1 = N.current[_];
9960
+ if (!l1) continue;
9961
+ P = E6(
10005
9962
  P,
10006
- `uniform ${c1.type} ${_}${c1.arraySize || ""};
9963
+ `uniform ${l1.type} ${_}${l1.arraySize || ""};
10007
9964
  `,
10008
9965
  P.lastIndexOf(M) + M.length
10009
- ), c1.isNeeded = !0;
9966
+ ), l1.isNeeded = !0;
10010
9967
  }
10011
- return L.includes("mainImage") && (P = P.concat(F6)), P;
9968
+ return L.includes("mainImage") && (P = P.concat(y6)), P;
10012
9969
  }, f1 = (L) => {
10013
9970
  const R = g.current;
10014
9971
  if (!R || !w.current) return;
@@ -10020,14 +9977,14 @@ ${R}`));
10020
9977
  const _ = P[E];
10021
9978
  if (_ && N.current[E]?.isNeeded) {
10022
9979
  if (!w.current) return;
10023
- const c1 = R.getUniformLocation(
9980
+ const l1 = R.getUniformLocation(
10024
9981
  w.current,
10025
9982
  E
10026
9983
  );
10027
- if (!c1) return;
10028
- A6(
9984
+ if (!l1) return;
9985
+ S6(
10029
9986
  R,
10030
- c1,
9987
+ l1,
10031
9988
  _.type,
10032
9989
  _.value
10033
9990
  );
@@ -10075,11 +10032,11 @@ ${R}`));
10075
10032
  R.uniform1f(E, M);
10076
10033
  }
10077
10034
  if (N.current.iDate?.isNeeded) {
10078
- const E = /* @__PURE__ */ new Date(), _ = E.getMonth() + 1, c1 = E.getDate(), u1 = E.getFullYear(), g1 = E.getHours() * 60 * 60 + E.getMinutes() * 60 + E.getSeconds() + E.getMilliseconds() * 1e-3, s1 = R.getUniformLocation(
10035
+ const E = /* @__PURE__ */ new Date(), _ = E.getMonth() + 1, l1 = E.getDate(), u1 = E.getFullYear(), g1 = E.getHours() * 60 * 60 + E.getMinutes() * 60 + E.getSeconds() + E.getMilliseconds() * 1e-3, s1 = R.getUniformLocation(
10079
10036
  w.current,
10080
10037
  Ze
10081
10038
  );
10082
- R.uniform4fv(s1, [u1, _, c1, g1]);
10039
+ R.uniform4fv(s1, [u1, _, l1, g1]);
10083
10040
  }
10084
10041
  if (N.current.iFrame?.isNeeded) {
10085
10042
  const E = R.getUniformLocation(
@@ -10092,7 +10049,7 @@ ${R}`));
10092
10049
  for (let E = 0; E < S.current.length; E++) {
10093
10050
  const _ = S.current[E];
10094
10051
  if (!_) return;
10095
- const { isVideo: c1, _webglTexture: u1, source: g1, flipY: s1, isLoaded: V1 } = _;
10052
+ const { isVideo: l1, _webglTexture: u1, source: g1, flipY: s1, isLoaded: V1 } = _;
10096
10053
  if (!V1 || !u1 || !g1) return;
10097
10054
  if (N.current[`iChannel${E}`]?.isNeeded) {
10098
10055
  if (!w.current) return;
@@ -10100,7 +10057,7 @@ ${R}`));
10100
10057
  w.current,
10101
10058
  `iChannel${E}`
10102
10059
  );
10103
- R.activeTexture(R.TEXTURE0 + E), R.bindTexture(R.TEXTURE_2D, u1), R.uniform1i(S1, E), c1 && _.updateTexture(
10060
+ R.activeTexture(R.TEXTURE0 + E), R.bindTexture(R.TEXTURE_2D, u1), R.uniform1i(S1, E), l1 && _.updateTexture(
10104
10061
  u1,
10105
10062
  g1,
10106
10063
  s1
@@ -10146,7 +10103,7 @@ ${R}`));
10146
10103
  function R() {
10147
10104
  U();
10148
10105
  const M = g.current;
10149
- M && h.current && (M.clearColor(...s), M.clearDepth(1), M.enable(M.DEPTH_TEST), M.depthFunc(M.LEQUAL), M.viewport(0, 0, h.current.width, h.current.height), h.current.height = h.current.clientHeight, h.current.width = h.current.clientWidth, j(), o1(), e1(n1(e || N6), r || De), Z(), requestAnimationFrame(m1), N1(), X());
10106
+ M && h.current && (M.clearColor(...s), M.clearDepth(1), M.enable(M.DEPTH_TEST), M.depthFunc(M.LEQUAL), M.viewport(0, 0, h.current.width, h.current.height), h.current.height = h.current.clientHeight, h.current.width = h.current.clientWidth, j(), o1(), e1(n1(e || M6), r || De), Z(), requestAnimationFrame(m1), N1(), X());
10150
10107
  }
10151
10108
  return requestAnimationFrame(R), () => {
10152
10109
  const M = g.current;
@@ -10166,7 +10123,7 @@ ${R}`));
10166
10123
  }
10167
10124
  );
10168
10125
  }
10169
- const D6 = `
10126
+ const B6 = `
10170
10127
  const float TAU = 6.283185;
10171
10128
 
10172
10129
  // Noise for dithering
@@ -10333,7 +10290,7 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) {
10333
10290
  float alpha = mappedBrightness * clamp(uMix, 1.0, 2.0);
10334
10291
  fragColor = vec4(color, alpha);
10335
10292
  }
10336
- }`, j6 = 10, _6 = 2, Z6 = 0.5, O6 = 0.2, U6 = 1.5, C1 = {
10293
+ }`, I6 = 10, P6 = 2, D6 = 0.5, j6 = 0.2, _6 = 1.5, C1 = {
10337
10294
  duration: 0.5,
10338
10295
  ease: "easeOut"
10339
10296
  }, Je = {
@@ -10343,22 +10300,22 @@ void mainImage(out vec4 fragColor, in vec2 fragCoord) {
10343
10300
  repeatType: "mirror"
10344
10301
  };
10345
10302
  function U1(e) {
10346
- const [r, o] = D(e), n = ts(e), s = $(null);
10303
+ const [r, o] = D(e), n = es(e), s = $(null);
10347
10304
  Ss(n, "change", (c) => o(c));
10348
10305
  const i = O(
10349
10306
  (c, u) => {
10350
- s.current = rs(n, c, u);
10307
+ s.current = ts(n, c, u);
10351
10308
  },
10352
10309
  [n]
10353
10310
  );
10354
10311
  return { value: r, motionValue: n, controls: s, animate: i };
10355
10312
  }
10356
- function z6(e, r) {
10357
- const [o, n] = D(j6), {
10313
+ function Z6(e, r) {
10314
+ const [o, n] = D(I6), {
10358
10315
  value: s,
10359
10316
  animate: i,
10360
10317
  motionValue: c
10361
- } = U1(O6), { value: u, animate: l } = U1(_6), { value: f, animate: d } = U1(Z6), { value: p, animate: C } = U1(U6), h = ys(r, {
10318
+ } = U1(j6), { value: u, animate: l } = U1(P6), { value: f, animate: d } = U1(D6), { value: p, animate: C } = U1(_6), h = ys(r, {
10362
10319
  fftSize: 512,
10363
10320
  smoothingTimeConstant: 0.55
10364
10321
  });
@@ -10406,7 +10363,7 @@ function z6(e, r) {
10406
10363
  brightness: p
10407
10364
  };
10408
10365
  }
10409
- const G6 = H1({
10366
+ const O6 = H1({
10410
10367
  base: "aspect-square",
10411
10368
  variants: {
10412
10369
  size: {
@@ -10421,7 +10378,7 @@ const G6 = H1({
10421
10378
  size: "lg"
10422
10379
  }
10423
10380
  });
10424
- function W6(e) {
10381
+ function U6(e) {
10425
10382
  const r = e.match(
10426
10383
  /^#([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
10427
10384
  );
@@ -10430,7 +10387,7 @@ function W6(e) {
10430
10387
  return [o, n, s].map((c = "00") => parseInt(c, 16) / 255);
10431
10388
  }
10432
10389
  }
10433
- function vr({
10390
+ function wr({
10434
10391
  shape: e = 1,
10435
10392
  speed: r = 1,
10436
10393
  amplitude: o = 0.5,
@@ -10445,11 +10402,11 @@ function vr({
10445
10402
  className: p,
10446
10403
  ...C
10447
10404
  }) {
10448
- const h = K(() => W6(c), [c]);
10405
+ const h = K(() => U6(c), [c]);
10449
10406
  return /* @__PURE__ */ t("div", { ref: d, className: p, ...C, children: /* @__PURE__ */ t(
10450
- P6,
10407
+ $6,
10451
10408
  {
10452
- fs: D6,
10409
+ fs: B6,
10453
10410
  devicePixelRatio: globalThis.devicePixelRatio ?? 1,
10454
10411
  uniforms: {
10455
10412
  // Aurora wave speed
@@ -10491,8 +10448,8 @@ function vr({
10491
10448
  }
10492
10449
  ) });
10493
10450
  }
10494
- vr.displayName = "AuraShader";
10495
- function J4({
10451
+ wr.displayName = "AuraShader";
10452
+ function Y4({
10496
10453
  size: e = "lg",
10497
10454
  state: r,
10498
10455
  color: o,
@@ -10503,9 +10460,9 @@ function J4({
10503
10460
  ref: u,
10504
10461
  ...l
10505
10462
  }) {
10506
- const { speed: f, scale: d, amplitude: p, frequency: C, brightness: h } = z6(r, s);
10463
+ const { speed: f, scale: d, amplitude: p, frequency: C, brightness: h } = Z6(r, s);
10507
10464
  return /* @__PURE__ */ t(
10508
- vr,
10465
+ wr,
10509
10466
  {
10510
10467
  ref: u,
10511
10468
  blur: 0.2,
@@ -10518,7 +10475,7 @@ function J4({
10518
10475
  frequency: C,
10519
10476
  brightness: h,
10520
10477
  className: k(
10521
- G6({ size: e }),
10478
+ O6({ size: e }),
10522
10479
  "overflow-hidden rounded-full",
10523
10480
  c
10524
10481
  ),
@@ -10526,7 +10483,7 @@ function J4({
10526
10483
  }
10527
10484
  );
10528
10485
  }
10529
- const e3 = ({
10486
+ const K4 = ({
10530
10487
  text: e,
10531
10488
  description: r,
10532
10489
  avatar: o,
@@ -10551,7 +10508,7 @@ const e3 = ({
10551
10508
  onClick: c
10552
10509
  }
10553
10510
  }
10554
- ), q6 = H1({
10511
+ ), z6 = H1({
10555
10512
  base: [
10556
10513
  "relative flex flex-col rounded-2xl bg-f1-background",
10557
10514
  "border border-solid border-f1-border-secondary",
@@ -10567,20 +10524,20 @@ const e3 = ({
10567
10524
  defaultVariants: {
10568
10525
  selected: !1
10569
10526
  }
10570
- }), xr = H1({
10527
+ }), vr = H1({
10571
10528
  base: "text-lg font-semibold text-f1-foreground line-clamp-3"
10572
- }), X6 = H1({
10529
+ }), G6 = H1({
10573
10530
  base: "text-sm text-f1-foreground-secondary leading-normal"
10574
10531
  }), z1 = H1({
10575
10532
  base: "text-sm font-medium text-f1-foreground leading-normal"
10576
- }), Y6 = ({
10533
+ }), W6 = ({
10577
10534
  description: e,
10578
10535
  isRevealed: r,
10579
10536
  onAskOne: o
10580
10537
  }) => {
10581
10538
  const n = G(), s = v1();
10582
10539
  return /* @__PURE__ */ a(R1, { children: [
10583
- e && /* @__PURE__ */ t("span", { className: k(X6(), "truncate"), children: e }),
10540
+ e && /* @__PURE__ */ t("span", { className: k(G6(), "truncate"), children: e }),
10584
10541
  /* @__PURE__ */ t(M1, { children: o && r && /* @__PURE__ */ t(
10585
10542
  Q.div,
10586
10543
  {
@@ -10593,7 +10550,7 @@ const e3 = ({
10593
10550
  ease: [0.33, 1, 0.68, 1]
10594
10551
  },
10595
10552
  children: /* @__PURE__ */ t(
10596
- _t,
10553
+ rs,
10597
10554
  {
10598
10555
  size: "md",
10599
10556
  label: n.ai.ask,
@@ -10605,14 +10562,14 @@ const e3 = ({
10605
10562
  }
10606
10563
  ) })
10607
10564
  ] });
10608
- }, K6 = /* @__PURE__ */ new Set([
10565
+ }, q6 = /* @__PURE__ */ new Set([
10609
10566
  "person",
10610
10567
  "people",
10611
10568
  "team",
10612
10569
  "company",
10613
10570
  "alert",
10614
10571
  "balance"
10615
- ]), Q6 = ({ balance: e }) => /* @__PURE__ */ t(
10572
+ ]), X6 = ({ balance: e }) => /* @__PURE__ */ t(
10616
10573
  is,
10617
10574
  {
10618
10575
  amount: e.amount,
@@ -10620,7 +10577,7 @@ const e3 = ({
10620
10577
  invertStatus: e.invertStatus,
10621
10578
  hint: e.hint
10622
10579
  }
10623
- ), J6 = (e) => {
10580
+ ), Y6 = (e) => {
10624
10581
  const {
10625
10582
  heading: r,
10626
10583
  label: o,
@@ -10629,7 +10586,7 @@ const e3 = ({
10629
10586
  fadeTransition: i
10630
10587
  } = e;
10631
10588
  return /* @__PURE__ */ a("div", { className: "flex flex-1 flex-col gap-2", children: [
10632
- /* @__PURE__ */ t("span", { className: k(xr()), children: r }),
10589
+ /* @__PURE__ */ t("span", { className: k(vr()), children: r }),
10633
10590
  /* @__PURE__ */ a(
10634
10591
  Q.div,
10635
10592
  {
@@ -10681,11 +10638,11 @@ const e3 = ({
10681
10638
  o && /* @__PURE__ */ t("span", { className: k(z1()), children: o })
10682
10639
  ] }),
10683
10640
  n === "alert" && /* @__PURE__ */ t(ss, { text: e.alertLabel, level: e.level }),
10684
- n === "balance" && /* @__PURE__ */ t(Q6, { balance: e.balance })
10641
+ n === "balance" && /* @__PURE__ */ t(X6, { balance: e.balance })
10685
10642
  ]
10686
10643
  }
10687
10644
  ),
10688
- o && !K6.has(n) && /* @__PURE__ */ t(
10645
+ o && !q6.has(n) && /* @__PURE__ */ t(
10689
10646
  Q.span,
10690
10647
  {
10691
10648
  className: k(z1()),
@@ -10695,7 +10652,7 @@ const e3 = ({
10695
10652
  }
10696
10653
  )
10697
10654
  ] });
10698
- }, br = {
10655
+ }, xr = {
10699
10656
  positive: {
10700
10657
  stroke: "hsl(var(--positive-50))",
10701
10658
  fill: "hsl(var(--positive-50))",
@@ -10712,21 +10669,21 @@ const e3 = ({
10712
10669
  border: "border-f1-border"
10713
10670
  }
10714
10671
  };
10715
- function e4(e, r) {
10672
+ function K6(e, r) {
10716
10673
  const o = e[0]?.value ?? 0, n = e[e.length - 1]?.value ?? 0, s = Math.sign(n - o), i = r ? s * -1 : s;
10717
10674
  return i > 0 ? "positive" : i < 0 ? "negative" : "neutral";
10718
10675
  }
10719
- const t4 = ({
10676
+ const Q6 = ({
10720
10677
  cx: e,
10721
10678
  cy: r,
10722
10679
  index: o,
10723
10680
  dataLength: n,
10724
10681
  color: s
10725
- }) => o !== n - 1 || e == null || r == null ? null : /* @__PURE__ */ t("circle", { cx: e, cy: r, r: 2, fill: s, stroke: "none" }), r4 = ({
10682
+ }) => o !== n - 1 || e == null || r == null ? null : /* @__PURE__ */ t("circle", { cx: e, cy: r, r: 2, fill: s, stroke: "none" }), J6 = ({
10726
10683
  label: e,
10727
10684
  direction: r
10728
10685
  }) => {
10729
- const o = br[r];
10686
+ const o = xr[r];
10730
10687
  return /* @__PURE__ */ t(
10731
10688
  "span",
10732
10689
  {
@@ -10744,12 +10701,12 @@ const t4 = ({
10744
10701
  children: e
10745
10702
  }
10746
10703
  );
10747
- }, o4 = ({
10704
+ }, e4 = ({
10748
10705
  data: e,
10749
10706
  label: r,
10750
10707
  invertStatus: o
10751
10708
  }) => {
10752
- const s = `sparkline-gradient-${G1().replace(/:/g, "")}`, i = e4(e, o), c = br[i];
10709
+ const s = `sparkline-gradient-${G1().replace(/:/g, "")}`, i = K6(e, o), c = xr[i];
10753
10710
  return /* @__PURE__ */ t("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ a(
10754
10711
  "div",
10755
10712
  {
@@ -10778,8 +10735,8 @@ const t4 = ({
10778
10735
  fill: `url(#${s})`,
10779
10736
  fillOpacity: 1,
10780
10737
  isAnimationActive: !1,
10781
- dot: (u) => /* @__PURE__ */ Er(
10782
- t4,
10738
+ dot: (u) => /* @__PURE__ */ Ar(
10739
+ Q6,
10783
10740
  {
10784
10741
  ...u,
10785
10742
  key: u.index,
@@ -10793,11 +10750,11 @@ const t4 = ({
10793
10750
  ]
10794
10751
  }
10795
10752
  ) }),
10796
- /* @__PURE__ */ t(r4, { label: r, direction: i })
10753
+ /* @__PURE__ */ t(J6, { label: r, direction: i })
10797
10754
  ]
10798
10755
  }
10799
10756
  ) });
10800
- }, Lr = m(
10757
+ }, br = m(
10801
10758
  (e, r) => {
10802
10759
  const {
10803
10760
  description: o,
@@ -10850,7 +10807,7 @@ const t4 = ({
10850
10807
  role: c ? "button" : void 0,
10851
10808
  tabIndex: c ? 0 : void 0,
10852
10809
  className: k(
10853
- q6({ selected: i }),
10810
+ z6({ selected: i }),
10854
10811
  i && "relative border-transparent",
10855
10812
  c && "cursor-pointer select-none",
10856
10813
  c && p1(),
@@ -10864,7 +10821,7 @@ const t4 = ({
10864
10821
  onBlur: () => h(!1),
10865
10822
  children: [
10866
10823
  /* @__PURE__ */ t(
10867
- Y6,
10824
+ W6,
10868
10825
  {
10869
10826
  description: o,
10870
10827
  isRevealed: g,
@@ -10872,7 +10829,7 @@ const t4 = ({
10872
10829
  }
10873
10830
  ),
10874
10831
  f.content === "sparkline" ? /* @__PURE__ */ a("div", { className: "flex flex-1 flex-col gap-2", children: [
10875
- /* @__PURE__ */ t("span", { className: k(xr()), children: n }),
10832
+ /* @__PURE__ */ t("span", { className: k(vr()), children: n }),
10876
10833
  /* @__PURE__ */ t(
10877
10834
  Q.div,
10878
10835
  {
@@ -10880,7 +10837,7 @@ const t4 = ({
10880
10837
  animate: { opacity: w ? 0 : 1 },
10881
10838
  transition: b,
10882
10839
  children: /* @__PURE__ */ t(
10883
- o4,
10840
+ e4,
10884
10841
  {
10885
10842
  data: f.data,
10886
10843
  label: s ?? "",
@@ -10890,7 +10847,7 @@ const t4 = ({
10890
10847
  }
10891
10848
  )
10892
10849
  ] }) : /* @__PURE__ */ t(
10893
- J6,
10850
+ Y6,
10894
10851
  {
10895
10852
  heading: n,
10896
10853
  label: s,
@@ -10905,16 +10862,16 @@ const t4 = ({
10905
10862
  ] });
10906
10863
  }
10907
10864
  );
10908
- Lr.displayName = "F0AiInsightCardInternal";
10909
- const n4 = ["className"], kr = m((e, r) => {
10910
- const o = n4.reduce((n, s) => {
10865
+ br.displayName = "F0AiInsightCardInternal";
10866
+ const t4 = ["className"], Lr = m((e, r) => {
10867
+ const o = t4.reduce((n, s) => {
10911
10868
  const { [s]: i, ...c } = n;
10912
10869
  return c;
10913
10870
  }, e);
10914
- return /* @__PURE__ */ t(Lr, { ref: r, ...o });
10871
+ return /* @__PURE__ */ t(br, { ref: r, ...o });
10915
10872
  });
10916
- kr.displayName = "F0AiInsightCard";
10917
- const s4 = () => /* @__PURE__ */ a(
10873
+ Lr.displayName = "F0AiInsightCard";
10874
+ const r4 = () => /* @__PURE__ */ a(
10918
10875
  "div",
10919
10876
  {
10920
10877
  className: "flex w-[217px] h-[200px] flex-col gap-2 rounded-2xl border border-solid border-f1-border-secondary bg-f1-background p-4",
@@ -10934,9 +10891,9 @@ const s4 = () => /* @__PURE__ */ a(
10934
10891
  ] })
10935
10892
  ]
10936
10893
  }
10937
- ), t3 = us(
10938
- fs(kr, s4)
10939
- ), r3 = [
10894
+ ), Q4 = us(
10895
+ fs(Lr, r4)
10896
+ ), J4 = [
10940
10897
  "text",
10941
10898
  "person",
10942
10899
  "people",
@@ -10945,10 +10902,10 @@ const s4 = () => /* @__PURE__ */ a(
10945
10902
  "alert",
10946
10903
  "balance",
10947
10904
  "sparkline"
10948
- ], yr = 180, i4 = (e) => Number.isFinite(e) ? Math.max(0, Math.floor(e)) : yr, a4 = (e, r) => e.length <= r ? e : `${e.slice(0, r).trimEnd()}...`, l4 = (e) => e.showActions !== !1, c4 = (e) => Object.fromEntries(
10905
+ ], kr = 180, o4 = (e) => Number.isFinite(e) ? Math.max(0, Math.floor(e)) : kr, n4 = (e, r) => e.length <= r ? e : `${e.slice(0, r).trimEnd()}...`, s4 = (e) => e.showActions !== !1, i4 = (e) => Object.fromEntries(
10949
10906
  Object.entries(e).filter(([r]) => r.startsWith("data-"))
10950
10907
  );
10951
- function d4(e) {
10908
+ function a4(e) {
10952
10909
  const {
10953
10910
  module: r,
10954
10911
  heading: o,
@@ -10956,10 +10913,10 @@ function d4(e) {
10956
10913
  subtitle: s,
10957
10914
  description: i,
10958
10915
  seeMoreLabel: c,
10959
- maxCollapsedDescriptionLength: u = yr
10960
- } = e, [l, f] = D(!1), d = G1(), p = $(null), C = i4(
10916
+ maxCollapsedDescriptionLength: u = kr
10917
+ } = e, [l, f] = D(!1), d = G1(), p = $(null), C = o4(
10961
10918
  u
10962
- ), h = i.length > C, g = l ? i : a4(i, C), v = l4(e) ? e : null, w = c4(e);
10919
+ ), h = i.length > C, g = l ? i : n4(i, C), v = s4(e) ? e : null, w = i4(e);
10963
10920
  return W(() => {
10964
10921
  l && p.current?.focus();
10965
10922
  }, [l]), /* @__PURE__ */ a(
@@ -11024,8 +10981,8 @@ function d4(e) {
11024
10981
  }
11025
10982
  );
11026
10983
  }
11027
- d4.displayName = "F0AiProposalCard";
11028
- const u4 = ({
10984
+ a4.displayName = "F0AiProposalCard";
10985
+ const l4 = ({
11029
10986
  icon: e,
11030
10987
  title: r,
11031
10988
  children: o
@@ -11039,10 +10996,10 @@ const u4 = ({
11039
10996
  onOpenChange: s,
11040
10997
  children: [
11041
10998
  /* @__PURE__ */ a(Ft, { className: "flex w-full items-center text-base text-f1-foreground-secondary transition-colors duration-150 hover:text-f1-foreground [&[data-state=open]>svg]:rotate-90", children: [
11042
- /* @__PURE__ */ t("span", { className: "mr-2 *:block", children: /* @__PURE__ */ t(a1, { icon: e, className: "block" }) }),
10999
+ /* @__PURE__ */ t("span", { className: "mr-2 *:block", children: /* @__PURE__ */ t(i1, { icon: e, className: "block" }) }),
11043
11000
  /* @__PURE__ */ t("span", { className: "mr-[2px]", children: r }),
11044
11001
  /* @__PURE__ */ t(
11045
- a1,
11002
+ i1,
11046
11003
  {
11047
11004
  icon: q1,
11048
11005
  className: "h-4 w-4 transition-transform duration-200"
@@ -11069,8 +11026,8 @@ const u4 = ({
11069
11026
  ]
11070
11027
  }
11071
11028
  );
11072
- }, f4 = (e) => m2[e] ?? ut, h4 = ({ iconName: e }) => e ? /* @__PURE__ */ t("div", { className: "mr-1 flex items-center justify-center", children: /* @__PURE__ */ t(a1, { icon: f4(e), size: "md", color: "default" }) }) : null;
11073
- function p4({
11029
+ }, c4 = (e) => m2[e] ?? ut, d4 = ({ iconName: e }) => e ? /* @__PURE__ */ t("div", { className: "mr-1 flex items-center justify-center", children: /* @__PURE__ */ t(i1, { icon: c4(e), size: "md", color: "default" }) }) : null;
11030
+ function u4({
11074
11031
  sources: e,
11075
11032
  title: r
11076
11033
  }) {
@@ -11078,8 +11035,8 @@ function p4({
11078
11035
  if (!e || e.length === 0 || !Array.isArray(e))
11079
11036
  return null;
11080
11037
  const n = r ?? o.ai.resourcesGroupTitle;
11081
- return /* @__PURE__ */ t(u4, { icon: de, title: n, children: /* @__PURE__ */ t("div", { className: "flex flex-col gap-1 rounded-lg border border-solid border-f1-border-secondary p-2", children: e.map((s, i) => {
11082
- const c = /* @__PURE__ */ t(h4, { iconName: s.icon });
11038
+ return /* @__PURE__ */ t(l4, { icon: de, title: n, children: /* @__PURE__ */ t("div", { className: "flex flex-col gap-1 rounded-lg border border-solid border-f1-border-secondary p-2", children: e.map((s, i) => {
11039
+ const c = /* @__PURE__ */ t(d4, { iconName: s.icon });
11083
11040
  return s.link ? /* @__PURE__ */ t(
11084
11041
  B1,
11085
11042
  {
@@ -11107,12 +11064,12 @@ function p4({
11107
11064
  );
11108
11065
  }) }) });
11109
11066
  }
11110
- p4.displayName = "F0AiMessageSources";
11111
- async function m4(e, r, o) {
11067
+ u4.displayName = "F0AiMessageSources";
11068
+ async function f4(e, r, o) {
11112
11069
  const n = await import("./xlsx-CzlURDDb.js"), s = n.utils.table_to_book(e, { sheet: "Data" });
11113
11070
  n.writeFile(s, `${o}.${r}`);
11114
11071
  }
11115
- function C4({
11072
+ function h4({
11116
11073
  dataset: e,
11117
11074
  title: r,
11118
11075
  filename: o
@@ -11121,7 +11078,7 @@ function C4({
11121
11078
  (u) => {
11122
11079
  if (!s.current) return;
11123
11080
  const l = o ?? (i.replace(/\s+/g, "_").toLowerCase() || "table");
11124
- m4(s.current, u, l);
11081
+ f4(s.current, u, l);
11125
11082
  },
11126
11083
  [i, o]
11127
11084
  );
@@ -11149,7 +11106,7 @@ function C4({
11149
11106
  paddingY: "sm",
11150
11107
  children: [
11151
11108
  /* @__PURE__ */ t(
11152
- l1,
11109
+ a1,
11153
11110
  {
11154
11111
  tag: "h2",
11155
11112
  className: "text-base font-medium capitalize text-f1-foreground",
@@ -11201,7 +11158,7 @@ function C4({
11201
11158
  "td",
11202
11159
  {
11203
11160
  className: "max-w-72 border-0 border-b border-solid border-f1-border-secondary px-3 py-2 text-f1-foreground",
11204
- children: /* @__PURE__ */ t(l1, { children: d == null ? "" : String(d) })
11161
+ children: /* @__PURE__ */ t(a1, { children: d == null ? "" : String(d) })
11205
11162
  },
11206
11163
  f
11207
11164
  );
@@ -11213,8 +11170,8 @@ function C4({
11213
11170
  }
11214
11171
  ) : null;
11215
11172
  }
11216
- C4.displayName = "F0AiTableCard";
11217
- function g4({ credits: e, trigger: r }) {
11173
+ h4.displayName = "F0AiTableCard";
11174
+ function p4({ credits: e, trigger: r }) {
11218
11175
  const o = G(), [n, s] = D(!1), [i, c] = D(!1), [u, l] = D(!1), [f, d] = D(null), p = O(
11219
11176
  (g) => {
11220
11177
  s(g), g && e?.fetchUsage && (c(!0), l(!1), e.fetchUsage().then((v) => {
@@ -11231,7 +11188,7 @@ function g4({ credits: e, trigger: r }) {
11231
11188
  const C = f ? Math.min(100, Math.round(f.used / f.total * 100)) : 0, h = e.companyName;
11232
11189
  return /* @__PURE__ */ a(fe, { open: n, onOpenChange: p, children: [
11233
11190
  /* @__PURE__ */ t(St, { asChild: !0, children: r ?? /* @__PURE__ */ t(
11234
- i1,
11191
+ c1,
11235
11192
  {
11236
11193
  variant: "ghost",
11237
11194
  hideLabel: !0,
@@ -11260,9 +11217,9 @@ function g4({ credits: e, trigger: r }) {
11260
11217
  }
11261
11218
  ),
11262
11219
  /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-col", children: [
11263
- /* @__PURE__ */ t(l1, { tag: "span", className: "font-medium", children: e.companyName ?? "" }),
11220
+ /* @__PURE__ */ t(a1, { tag: "span", className: "font-medium", children: e.companyName ?? "" }),
11264
11221
  e.planName && /* @__PURE__ */ t(
11265
- l1,
11222
+ a1,
11266
11223
  {
11267
11224
  tag: "span",
11268
11225
  className: "text-sm font-medium text-f1-foreground-secondary",
@@ -11339,8 +11296,8 @@ function g4({ credits: e, trigger: r }) {
11339
11296
  )
11340
11297
  ] });
11341
11298
  }
11342
- const w4 = "linear-gradient(90deg, #E55619, #A1ADE5, #E51943, #E55619)";
11343
- function v4({
11299
+ const m4 = "linear-gradient(90deg, #E55619, #A1ADE5, #E51943, #E55619)";
11300
+ function C4({
11344
11301
  employeeCredits: e,
11345
11302
  trigger: r
11346
11303
  }) {
@@ -11360,7 +11317,7 @@ function v4({
11360
11317
  const h = !!e.companyName, g = d && d.total > 0 ? Math.min(100, Math.round(d.used / d.total * 100)) : 0, v = d ? Math.max(0, d.total - d.used) : 0;
11361
11318
  return /* @__PURE__ */ a(fe, { open: s, onOpenChange: C, children: [
11362
11319
  /* @__PURE__ */ t(St, { asChild: !0, children: r ?? /* @__PURE__ */ t(
11363
- i1,
11320
+ c1,
11364
11321
  {
11365
11322
  variant: "ghost",
11366
11323
  hideLabel: !0,
@@ -11389,9 +11346,9 @@ function v4({
11389
11346
  }
11390
11347
  ),
11391
11348
  /* @__PURE__ */ a("div", { className: "flex min-w-0 flex-col", children: [
11392
- /* @__PURE__ */ t(l1, { tag: "span", className: "font-medium", children: e.companyName ?? "" }),
11349
+ /* @__PURE__ */ t(a1, { tag: "span", className: "font-medium", children: e.companyName ?? "" }),
11393
11350
  e.planName && /* @__PURE__ */ t(
11394
- l1,
11351
+ a1,
11395
11352
  {
11396
11353
  tag: "span",
11397
11354
  className: "text-sm font-medium text-f1-foreground-secondary",
@@ -11434,7 +11391,7 @@ function v4({
11434
11391
  className: "h-full rounded-full",
11435
11392
  style: {
11436
11393
  width: `${g}%`,
11437
- backgroundImage: w4,
11394
+ backgroundImage: m4,
11438
11395
  backgroundSize: "300% 100%"
11439
11396
  },
11440
11397
  animate: n ? void 0 : { backgroundPosition: ["0% 0%", "100% 0%"] },
@@ -11462,12 +11419,12 @@ const se = ({
11462
11419
  employeeCredits: r,
11463
11420
  trigger: o
11464
11421
  }) => r ? /* @__PURE__ */ t(
11465
- v4,
11422
+ C4,
11466
11423
  {
11467
11424
  employeeCredits: r,
11468
11425
  trigger: o
11469
11426
  }
11470
- ) : e ? /* @__PURE__ */ t(g4, { credits: e, trigger: o }) : null, o3 = se, n3 = ({
11427
+ ) : e ? /* @__PURE__ */ t(p4, { credits: e, trigger: o }) : null, e3 = se, t3 = ({
11471
11428
  historyEnabled: e = !1,
11472
11429
  title: r,
11473
11430
  currentThreadTitle: o,
@@ -11486,7 +11443,7 @@ const se = ({
11486
11443
  const g = G(), v = v1(), w = hs(`(max-width: ${ps.md}px)`, {
11487
11444
  initializeWithValue: !0
11488
11445
  }), b = !s && !w && /* @__PURE__ */ t(
11489
- i1,
11446
+ c1,
11490
11447
  {
11491
11448
  variant: "ghost",
11492
11449
  hideLabel: !0,
@@ -11495,7 +11452,7 @@ const se = ({
11495
11452
  onClick: i
11496
11453
  }
11497
11454
  ), H = /* @__PURE__ */ t(
11498
- i1,
11455
+ c1,
11499
11456
  {
11500
11457
  variant: "ghost",
11501
11458
  hideLabel: !0,
@@ -11504,7 +11461,7 @@ const se = ({
11504
11461
  onClick: c
11505
11462
  }
11506
11463
  ), A = h?.map((V) => /* @__PURE__ */ t(
11507
- i1,
11464
+ c1,
11508
11465
  {
11509
11466
  variant: "ghost",
11510
11467
  hideLabel: !0,
@@ -11521,7 +11478,7 @@ const se = ({
11521
11478
  className: k("flex items-center justify-between gap-3 pr-4 pl-5 py-3"),
11522
11479
  children: [
11523
11480
  /* @__PURE__ */ t(
11524
- l1,
11481
+ a1,
11525
11482
  {
11526
11483
  lines: 1,
11527
11484
  className: "min-w-0 flex-1 text-left font-semibold text-f1-foreground",
@@ -11562,8 +11519,8 @@ const se = ({
11562
11519
  className: "min-w-0 max-w-full [&>div>span>span]:w-full",
11563
11520
  onClick: l,
11564
11521
  children: /* @__PURE__ */ a("div", { className: "flex min-w-0 items-center gap-1", children: [
11565
- /* @__PURE__ */ t(l1, { lines: 1, className: "min-w-0 text-left", children: o ?? g.ai.newConversation }),
11566
- /* @__PURE__ */ t(a1, { icon: le, color: "default", size: "md" })
11522
+ /* @__PURE__ */ t(a1, { lines: 1, className: "min-w-0 text-left", children: o ?? g.ai.newConversation }),
11523
+ /* @__PURE__ */ t(i1, { icon: le, color: "default", size: "md" })
11567
11524
  ] })
11568
11525
  }
11569
11526
  ) }),
@@ -11607,7 +11564,7 @@ const se = ({
11607
11564
  },
11608
11565
  children: [
11609
11566
  f && !s && /* @__PURE__ */ t(
11610
- i1,
11567
+ c1,
11611
11568
  {
11612
11569
  variant: "ghost",
11613
11570
  hideLabel: !0,
@@ -11631,11 +11588,11 @@ const se = ({
11631
11588
  )
11632
11589
  ] });
11633
11590
  };
11634
- function x4(e) {
11591
+ function g4(e) {
11635
11592
  const r = new Date(e), o = /* @__PURE__ */ new Date();
11636
11593
  return Tt(r) ? "today" : Ht(r) ? "yesterday" : Cs(r, o) ? "thisMonth" : "older";
11637
11594
  }
11638
- function b4(e, r, o) {
11595
+ function w4(e, r, o) {
11639
11596
  const n = new Date(e), s = Fe(n, "p", { locale: o });
11640
11597
  if (Tt(n)) return `${r.today}, ${s}`;
11641
11598
  if (Ht(n)) return `${r.yesterday}, ${s}`;
@@ -11644,7 +11601,7 @@ function b4(e, r, o) {
11644
11601
  locale: o
11645
11602
  })}, ${s}`;
11646
11603
  }
11647
- function L4(e) {
11604
+ function v4(e) {
11648
11605
  const r = {
11649
11606
  today: [],
11650
11607
  yesterday: [],
@@ -11652,12 +11609,12 @@ function L4(e) {
11652
11609
  older: []
11653
11610
  };
11654
11611
  for (const n of e) {
11655
- const s = x4(n.updatedAt);
11612
+ const s = g4(n.updatedAt);
11656
11613
  r[s].push(n);
11657
11614
  }
11658
11615
  return ["today", "yesterday", "thisMonth", "older"].filter((n) => r[n].length > 0).map((n) => ({ key: n, threads: r[n] }));
11659
11616
  }
11660
- function k4({
11617
+ function x4({
11661
11618
  thread: e,
11662
11619
  isPinned: r,
11663
11620
  isActive: o = !1,
@@ -11684,7 +11641,7 @@ function k4({
11684
11641
  ],
11685
11642
  [r, e.id, i, c, u]
11686
11643
  ), C = K(
11687
- () => b4(
11644
+ () => w4(
11688
11645
  e.updatedAt,
11689
11646
  {
11690
11647
  today: f.ai.today,
@@ -11718,7 +11675,7 @@ function k4({
11718
11675
  onClick: () => s(e.id, e.title),
11719
11676
  children: [
11720
11677
  e.icon && /* @__PURE__ */ t(
11721
- a1,
11678
+ i1,
11722
11679
  {
11723
11680
  icon: e.icon,
11724
11681
  size: "sm",
@@ -11726,7 +11683,7 @@ function k4({
11726
11683
  "aria-hidden": !0
11727
11684
  }
11728
11685
  ),
11729
- /* @__PURE__ */ t(l1, { lines: 1, className: "py-0.5 text-left font-medium", children: e.title }),
11686
+ /* @__PURE__ */ t(a1, { lines: 1, className: "py-0.5 text-left font-medium", children: e.title }),
11730
11687
  /* @__PURE__ */ t("span", { className: "hidden shrink-0 text-sm font-medium text-f1-foreground-tertiary group-focus-within:inline group-hover:inline", children: C })
11731
11688
  ]
11732
11689
  }
@@ -11755,7 +11712,7 @@ function k4({
11755
11712
  "has-[[aria-expanded=true]]:flex"
11756
11713
  ),
11757
11714
  children: /* @__PURE__ */ t(pe, { items: p, children: /* @__PURE__ */ t(
11758
- i1,
11715
+ c1,
11759
11716
  {
11760
11717
  icon: dt,
11761
11718
  variant: "ghost",
@@ -11802,7 +11759,7 @@ function et({
11802
11759
  children: [
11803
11760
  /* @__PURE__ */ t("span", { className: "text-sm font-medium capitalize tracking-wide text-f1-foreground-secondary", children: e }),
11804
11761
  /* @__PURE__ */ t(
11805
- a1,
11762
+ i1,
11806
11763
  {
11807
11764
  icon: u ? le : lt,
11808
11765
  color: "secondary",
@@ -11813,7 +11770,7 @@ function et({
11813
11770
  }
11814
11771
  ),
11815
11772
  u && /* @__PURE__ */ t("div", { className: "flex flex-col", children: r.map((p) => /* @__PURE__ */ t(
11816
- k4,
11773
+ x4,
11817
11774
  {
11818
11775
  thread: p,
11819
11776
  isPinned: o.has(p.id),
@@ -11826,20 +11783,20 @@ function et({
11826
11783
  )) })
11827
11784
  ] });
11828
11785
  }
11829
- const tt = ["w-3/5", "w-4/5", "w-2/5", "w-3/4", "w-1/2", "w-2/3"], y4 = ({ width: e }) => /* @__PURE__ */ t("div", { className: "flex items-center py-1.5 pl-1.5 pr-2", children: /* @__PURE__ */ t(h1, { className: k("h-4 rounded", e) }) }), rt = ({
11786
+ const tt = ["w-3/5", "w-4/5", "w-2/5", "w-3/4", "w-1/2", "w-2/3"], b4 = ({ width: e }) => /* @__PURE__ */ t("div", { className: "flex items-center py-1.5 pl-1.5 pr-2", children: /* @__PURE__ */ t(h1, { className: k("h-4 rounded", e) }) }), rt = ({
11830
11787
  titleWidth: e,
11831
11788
  rows: r
11832
11789
  }) => /* @__PURE__ */ a("div", { className: "flex flex-col gap-0.5", children: [
11833
11790
  /* @__PURE__ */ t("div", { className: "flex items-center p-1.5", children: /* @__PURE__ */ t(h1, { className: k("h-3 rounded", e) }) }),
11834
- r.map((o, n) => /* @__PURE__ */ t(y4, { width: o }, n))
11791
+ r.map((o, n) => /* @__PURE__ */ t(b4, { width: o }, n))
11835
11792
  ] });
11836
- function M4() {
11793
+ function L4() {
11837
11794
  return /* @__PURE__ */ a("div", { "aria-hidden": "true", className: "flex flex-col gap-4", children: [
11838
11795
  /* @__PURE__ */ t(rt, { titleWidth: "w-12", rows: tt.slice(0, 2) }),
11839
11796
  /* @__PURE__ */ t(rt, { titleWidth: "w-24", rows: tt })
11840
11797
  ] });
11841
11798
  }
11842
- const s3 = ({
11799
+ const r3 = ({
11843
11800
  onClose: e,
11844
11801
  onSelectThread: r,
11845
11802
  onNewChat: o,
@@ -11882,7 +11839,7 @@ const s3 = ({
11882
11839
  () => g.filter((x) => !c.has(x.id)),
11883
11840
  [g, c]
11884
11841
  ), b = K(
11885
- () => L4(w),
11842
+ () => v4(w),
11886
11843
  [w]
11887
11844
  ), H = O(
11888
11845
  (x, S) => {
@@ -11928,7 +11885,7 @@ const s3 = ({
11928
11885
  ),
11929
11886
  children: [
11930
11887
  /* @__PURE__ */ a("div", { className: "flex flex-shrink-0 items-center gap-2 border-0 border-b border-solid border-f1-border-secondary py-2 pl-5 pr-3", children: [
11931
- /* @__PURE__ */ t(a1, { icon: de, color: "secondary", size: "md" }),
11888
+ /* @__PURE__ */ t(i1, { icon: de, color: "secondary", size: "md" }),
11932
11889
  /* @__PURE__ */ t(
11933
11890
  "input",
11934
11891
  {
@@ -11954,12 +11911,12 @@ const s3 = ({
11954
11911
  className: "py-1 [&>div>span>span]:w-full",
11955
11912
  onClick: A,
11956
11913
  children: /* @__PURE__ */ a("div", { className: "flex w-full items-center gap-2", children: [
11957
- /* @__PURE__ */ t(a1, { icon: Ce, color: "default", size: "md" }),
11958
- /* @__PURE__ */ t(l1, { lines: 1, className: "text-left", children: d.ai.startNewChat })
11914
+ /* @__PURE__ */ t(i1, { icon: Ce, color: "default", size: "md" }),
11915
+ /* @__PURE__ */ t(a1, { lines: 1, className: "text-left", children: d.ai.startNewChat })
11959
11916
  ] })
11960
11917
  }
11961
11918
  ),
11962
- s && /* @__PURE__ */ t(M4, {}),
11919
+ s && /* @__PURE__ */ t(L4, {}),
11963
11920
  !s && i && /* @__PURE__ */ t("p", { className: "py-8 text-center text-base text-f1-foreground-tertiary", children: i }),
11964
11921
  !s && !i && !F && /* @__PURE__ */ t("p", { className: "py-8 text-center text-base text-f1-foreground-tertiary", children: d.ai.noPreviousChats }),
11965
11922
  !s && !i && v.length > 0 && /* @__PURE__ */ t(
@@ -11996,22 +11953,22 @@ const s3 = ({
11996
11953
  ] }),
11997
11954
  document.body
11998
11955
  );
11999
- }, Mr = "f0-ai-pinned-threads";
12000
- function R4() {
12001
- const e = vs(Mr, []);
11956
+ }, yr = "f0-ai-pinned-threads";
11957
+ function k4() {
11958
+ const e = vs(yr, []);
12002
11959
  return new Set(Array.isArray(e) ? e : []);
12003
11960
  }
12004
11961
  function ot(e) {
12005
- xs(Mr, [...e]);
11962
+ xs(yr, [...e]);
12006
11963
  }
12007
- function i3({
11964
+ function o3({
12008
11965
  enabled: e = !1,
12009
11966
  fetchThreads: r,
12010
11967
  deleteThread: o,
12011
11968
  pinThread: n,
12012
11969
  unpinThread: s
12013
11970
  }) {
12014
- const [i, c] = D([]), [u, l] = D(!1), [f, d] = D(null), [p, C] = D(R4), [h, g] = D(() => /* @__PURE__ */ new Set()), v = O(async () => {
11971
+ const [i, c] = D([]), [u, l] = D(!1), [f, d] = D(null), [p, C] = D(k4), [h, g] = D(() => /* @__PURE__ */ new Set()), v = O(async () => {
12015
11972
  l(!0), d(null);
12016
11973
  try {
12017
11974
  const x = await r();
@@ -12076,7 +12033,7 @@ function i3({
12076
12033
  deleteThread: F
12077
12034
  };
12078
12035
  }
12079
- const F4 = Q.create(bs), N4 = ({
12036
+ const y4 = Q.create(bs), M4 = ({
12080
12037
  label: e,
12081
12038
  reduceMotion: r
12082
12039
  }) => (
@@ -12089,7 +12046,7 @@ const F4 = Q.create(bs), N4 = ({
12089
12046
  className: "flex flex-row items-center gap-1 rounded-full border border-solid border-f1-border-secondary bg-f1-background px-2 py-1.5 pr-2.5 shadow-md",
12090
12047
  children: [
12091
12048
  /* @__PURE__ */ t(
12092
- F4,
12049
+ y4,
12093
12050
  {
12094
12051
  size: "xs",
12095
12052
  animate: r ? void 0 : {
@@ -12125,7 +12082,7 @@ const F4 = Q.create(bs), N4 = ({
12125
12082
  ]
12126
12083
  }
12127
12084
  )
12128
- ), a3 = $r(function({
12085
+ ), n3 = Er(function({
12129
12086
  active: r,
12130
12087
  label: o,
12131
12088
  className: n,
@@ -12149,7 +12106,7 @@ const F4 = Q.create(bs), N4 = ({
12149
12106
  animate: { opacity: 1, scale: 1 },
12150
12107
  exit: { opacity: 0, scale: c ? 1 : 0.95 },
12151
12108
  children: /* @__PURE__ */ t("div", { className: "mt-[40vh]", children: /* @__PURE__ */ t(
12152
- N4,
12109
+ M4,
12153
12110
  {
12154
12111
  label: u,
12155
12112
  reduceMotion: c
@@ -12170,48 +12127,46 @@ const F4 = Q.create(bs), N4 = ({
12170
12127
  ] });
12171
12128
  });
12172
12129
  export {
12173
- q4 as A,
12174
- a3 as B,
12130
+ z4 as A,
12131
+ n3 as B,
12175
12132
  et as C,
12176
- _t as D,
12177
- g2 as E,
12178
- O4 as F,
12179
- _5 as G,
12180
- $5 as H,
12181
- Hs as I,
12182
- Pa as J,
12183
- Li as K,
12184
- te as L,
12185
- xi as M,
12186
- pi as N,
12187
- Ci as O,
12188
- fi as P,
12189
- wi as Q,
12190
- k4 as T,
12191
- W4 as a,
12192
- X4 as b,
12193
- Pl as c,
12194
- U4 as d,
12195
- ar as e,
12196
- Y4 as f,
12197
- K4 as g,
12198
- j4 as h,
12199
- Q4 as i,
12200
- J4 as j,
12201
- e3 as k,
12202
- t3 as l,
12203
- Z4 as m,
12204
- r3 as n,
12205
- D4 as o,
12206
- d4 as p,
12207
- p4 as q,
12208
- C4 as r,
12209
- n3 as s,
12210
- o3 as t,
12211
- z4 as u,
12212
- s3 as v,
12213
- M4 as w,
12214
- i3 as x,
12215
- _4 as y,
12216
- G4 as z
12133
+ _5 as D,
12134
+ $5 as E,
12135
+ j4 as F,
12136
+ Hs as G,
12137
+ Pa as H,
12138
+ Li as I,
12139
+ te as J,
12140
+ xi as K,
12141
+ pi as L,
12142
+ Ci as M,
12143
+ fi as N,
12144
+ wi as O,
12145
+ x4 as T,
12146
+ U4 as a,
12147
+ G4 as b,
12148
+ $l as c,
12149
+ _4 as d,
12150
+ ir as e,
12151
+ W4 as f,
12152
+ q4 as g,
12153
+ I4 as h,
12154
+ X4 as i,
12155
+ Y4 as j,
12156
+ K4 as k,
12157
+ Q4 as l,
12158
+ D4 as m,
12159
+ J4 as n,
12160
+ B4 as o,
12161
+ a4 as p,
12162
+ u4 as q,
12163
+ h4 as r,
12164
+ t3 as s,
12165
+ e3 as t,
12166
+ Z4 as u,
12167
+ r3 as v,
12168
+ L4 as w,
12169
+ o3 as x,
12170
+ P4 as y,
12171
+ O4 as z
12217
12172
  };