@versini/sassysaint 4.3.1 → 4.3.3

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 f, jsx as n, Fragment as j } from "react/jsx-runtime";
2
- import { O as re, s as ne, S as te, isLastMessageFromRole as G, x as q, CANCEL as oe, CLEAR as ae, ACTION_RESET as Y, ROLE_ASSISTANT as h, ROLE_INTERNAL as w, ROLE_USER as I, qr as L, ROLE_SYSTEM as le, ROLE_HIDDEN as ce, MODEL_GPT4 as J, STATS_SEPARATOR as V, ACTION_MODEL as Q, ACTION_MESSAGE as x, TYPE_QUESTION as de, SEND as ie, ACTION_STREAMING as W, ERROR_MESSAGE as me, getMessageContaintWrapperClass as pe, MessagesContainerHeader as ue, ACTION_SEARCH as ge, ACTION_SORT as ye, ACTION_RESTORE as fe, c as he, AppFooter as Ce, LOCAL_STORAGE_PREFIX as H, LOCAL_STORAGE_SEARCH as Te, LOCAL_STORAGE_SORT as Se } from "./index.BlSrPZWf.js";
3
- import { g as X, AppContext as N, restCall as xe, At as Ee, E as z, serviceCall as ve, SERVICE_TYPES as be, HistoryContext as Ae, k as Re } from "./useLocalStorage.C4iGBmg7.js";
2
+ import { O as re, s as ne, S as te, isLastMessageFromRole as G, x as q, CANCEL as oe, CLEAR as ae, ACTION_RESET as Y, ROLE_ASSISTANT as h, ROLE_INTERNAL as w, ROLE_USER as I, qr as L, ROLE_SYSTEM as le, ROLE_HIDDEN as ce, MODEL_GPT4 as J, STATS_SEPARATOR as V, ACTION_MODEL as Q, ACTION_MESSAGE as x, TYPE_QUESTION as de, SEND as ie, ACTION_STREAMING as W, ERROR_MESSAGE as me, getMessageContaintWrapperClass as pe, MessagesContainerHeader as ue, ACTION_SEARCH as ge, ACTION_SORT as ye, ACTION_RESTORE as fe, c as he, AppFooter as Ce, LOCAL_STORAGE_PREFIX as H, LOCAL_STORAGE_SEARCH as Te, LOCAL_STORAGE_SORT as Se } from "./index.Bd1O6OvY.js";
3
+ import { g as X, AppContext as N, restCall as xe, Tt as Ee, E as z, serviceCall as ve, SERVICE_TYPES as be, HistoryContext as Ae, k as Re } from "./useLocalStorage.BJF_XPk2.js";
4
4
  import { useState as M, useEffect as S, useContext as _, useRef as C, lazy as Ne, Suspense as B, useReducer as U } from "react";
5
5
  import T from "clsx";
6
6
  const ke = ({
@@ -179,7 +179,7 @@ const Ue = () => {
179
179
  children: s != null && s.streaming ? oe : ae
180
180
  }
181
181
  ) }) : null;
182
- }, F = Ne(() => import("./LazyMessageAssistant.9TRoCl8r.js").then((e) => e.LazyMessageAssistant)), $e = () => {
182
+ }, F = Ne(() => import("./LazyMessageAssistant.6l2ElKdb.js").then((e) => e.LazyMessageAssistant)), $e = () => {
183
183
  const { state: e } = _(N);
184
184
  return /* @__PURE__ */ f(j, { children: [
185
185
  e && e.messages.length > 0 && e.messages.map((s, o) => {
@@ -1,8 +1,8 @@
1
1
  import { jsxs as d, jsx as t, Fragment as w } from "react/jsx-runtime";
2
- import { O as z, i$1 as le, N as de, p as De, o as Oe, g as v, N$1 as B, CARDS as f, renderDataAsList as j, pluralize as Q, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Pe, durationFormatter as Ce, NA as Ve, ROLE_ASSISTANT as Fe, extractAverage as $e, GPT4_MAX_TOKENS as Ge, qr as V, STATS as Te, b as re, j$1 as P, x as O, LOCAL_STORAGE_PREFIX as ce, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ye, truncate as Ke, ACTION_SORT as oe, LOCAL_STORAGE_SEARCH as We, G as Xe, ACTION_SEARCH as qe, HISTORY_TITLE as Je, getCurrentGeoLocation as Qe, LOCAL_STORAGE_CHAT_DETAILS as Ze, W as et, v as ue, PROFILE_TITLE as tt, LOG_OUT as me } from "./index.BlSrPZWf.js";
2
+ import { O as B, i$1 as le, N as de, p as De, o as Oe, g as v, N$1 as R, CARDS as f, renderDataAsList as j, pluralize as Q, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Pe, durationFormatter as Ce, NA as Ve, ROLE_ASSISTANT as Fe, extractAverage as $e, GPT4_MAX_TOKENS as Ge, qr as V, STATS as Te, b as re, j$1 as P, x as z, LOCAL_STORAGE_PREFIX as ce, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ye, truncate as Ke, ACTION_SORT as oe, LOCAL_STORAGE_SEARCH as We, G as Xe, ACTION_SEARCH as qe, HISTORY_TITLE as Je, getCurrentGeoLocation as Qe, LOCAL_STORAGE_CHAT_DETAILS as Ze, W as et, v as ue, PROFILE_TITLE as tt, LOG_OUT as me } from "./index.Bd1O6OvY.js";
3
3
  import * as ne from "react";
4
- import ot, { forwardRef as Ne, useState as T, useRef as Y, useContext as L, useEffect as _, Suspense as at, lazy as nt, useId as st, useMemo as rt } from "react";
5
- import { g as ct, AppContext as Z, serviceCall as R, SERVICE_TYPES as H, HistoryContext as Se, E as ie, k as I, et as it, at as lt, lt as ae, J as M, ct as dt, st as ut, rt as mt, At as he } from "./useLocalStorage.C4iGBmg7.js";
4
+ import ot, { forwardRef as Ne, useState as T, useRef as Y, useContext as _, useEffect as D, Suspense as at, lazy as nt, useId as st, useMemo as rt } from "react";
5
+ import { g as ct, AppContext as Z, serviceCall as H, SERVICE_TYPES as L, HistoryContext as Se, E as ie, k as I, et as it, at as lt, lt as ae, J as M, ct as dt, st as ut, rt as mt, Tt as he } from "./useLocalStorage.BJF_XPk2.js";
6
6
  import b from "clsx";
7
7
  import { useFloatingTree as Ee, useFloatingNodeId as ht, useListItem as ye, useFloating as pt, offset as ft, flip as gt, shift as Ct, autoUpdate as Tt, useClick as Nt, useRole as St, useDismiss as Et, useListNavigation as yt, useTypeahead as wt, useInteractions as bt, useMergeRefs as we, FloatingNode as kt, FloatingList as It, FloatingPortal as vt, FloatingFocusManager as xt, FloatingTree as At } from "@floating-ui/react";
8
8
  const se = ne.createContext({
@@ -37,7 +37,7 @@ const se = ne.createContext({
37
37
  focusMode: m = "system",
38
38
  ...c
39
39
  }, i) => {
40
- const [u, g] = T(!1), [N, C] = T(!1), [p, y] = T(null), k = Y([]), h = Y([]), S = L(se), E = Ee(), x = ht(), ee = ye(), { floatingStyles: te, refs: X, context: A } = pt({
40
+ const [u, g] = T(!1), [N, C] = T(!1), [p, y] = T(null), k = Y([]), h = Y([]), S = _(se), E = Ee(), x = ht(), ee = ye(), { floatingStyles: te, refs: X, context: A } = pt({
41
41
  nodeId: x,
42
42
  open: u,
43
43
  onOpenChange: (G) => {
@@ -76,7 +76,7 @@ const se = ne.createContext({
76
76
  })
77
77
  )
78
78
  });
79
- return _(() => {
79
+ return D(() => {
80
80
  if (!E)
81
81
  return;
82
82
  function G() {
@@ -85,7 +85,7 @@ const se = ne.createContext({
85
85
  return E.events.on("click", G), () => {
86
86
  E.events.off("click", G);
87
87
  };
88
- }, [E, s]), _(() => {
88
+ }, [E, s]), D(() => {
89
89
  u && E && E.events.emit("menuopen", { nodeId: x });
90
90
  }, [E, u, x]), /* @__PURE__ */ d(kt, { id: x, children: [
91
91
  _e,
@@ -125,7 +125,7 @@ const se = ne.createContext({
125
125
  ), ke = Ne((e, o) => /* @__PURE__ */ t(At, { children: /* @__PURE__ */ t(be, { ...e, ref: o }) }));
126
126
  ke.displayName = "Menu";
127
127
  be.displayName = "MenuComponent";
128
- const D = ne.forwardRef(({ label: e, disabled: o, icon: a, ...n }, s) => {
128
+ const O = ne.forwardRef(({ label: e, disabled: o, icon: a, ...n }, s) => {
129
129
  const r = ne.useContext(se), l = ye({ label: o ? null : e }), m = Ee();
130
130
  return /* @__PURE__ */ d(
131
131
  "button",
@@ -153,7 +153,7 @@ const D = ne.forwardRef(({ label: e, disabled: o, icon: a, ...n }, s) => {
153
153
  }
154
154
  );
155
155
  });
156
- D.displayName = "MenuItem";
156
+ O.displayName = "MenuItem";
157
157
  const Mt = ({ className: e, ...o }) => {
158
158
  const a = b(e, "my-1 border-t border-border-medium");
159
159
  return /* @__PURE__ */ t("div", { className: a, ...o });
@@ -197,7 +197,7 @@ const Mt = ({ className: e, ...o }) => {
197
197
  header: "p-4 mb-0",
198
198
  close: "p-4"
199
199
  }), W = (e) => nt(
200
- () => import("./index.Bzt9pToY.DmOBHHnp.js").then((o) => ({
200
+ () => import("./index.Bzt9pToY.AYXUeiUe.js").then((o) => ({
201
201
  default: o[e]
202
202
  }))
203
203
  ), Lt = W("Modal"), _t = W("ModalClose"), Dt = W("ModalContent"), Ot = W("ModalDescription"), zt = W("ModalHeading"), F = ({
@@ -211,7 +211,7 @@ const Mt = ({ className: e, ...o }) => {
211
211
  className: m
212
212
  }) => {
213
213
  const c = Y(""), i = Ht({ className: m, kind: l, borderMode: r });
214
- return _(() => (e && (c.current = document.title, document.title = `${a} | ${c.current}`), () => {
214
+ return D(() => (e && (c.current = document.title, document.title = `${a} | ${c.current}`), () => {
215
215
  e && (document.title = c.current);
216
216
  }), [a, e]), /* @__PURE__ */ t(at, { fallback: /* @__PURE__ */ t("div", {}), children: e && /* @__PURE__ */ t(Lt, { open: e, onOpenChange: o, children: /* @__PURE__ */ d(Dt, { className: i.main, children: [
217
217
  /* @__PURE__ */ d("div", { className: "flex flex-row-reverse items-center justify-between", children: [
@@ -220,7 +220,7 @@ const Mt = ({ className: e, ...o }) => {
220
220
  {
221
221
  className: i.close,
222
222
  trigger: /* @__PURE__ */ t(
223
- z,
223
+ B,
224
224
  {
225
225
  mode: "dark",
226
226
  focusMode: "light",
@@ -590,18 +590,18 @@ const oo = ({ stats: e }) => {
590
590
  const o = (e == null ? void 0 : e.plugins) || [], a = (e == null ? void 0 : e.version) || "", n = (e == null ? void 0 : e.models) || [], s = K(), r = K();
591
591
  return /* @__PURE__ */ d(w, { children: [
592
592
  /* @__PURE__ */ t("div", { className: "mb-4", children: /* @__PURE__ */ t(
593
- B,
593
+ R,
594
594
  {
595
595
  header: f.ABOUT.TITLE_CLIENT,
596
596
  className: "prose-dark dark:prose-lighter",
597
597
  children: j(s, {
598
- [f.ABOUT.VERSION]: "4.3.1",
599
- [f.ABOUT.BUILD_TIMESTAMP]: "09/06/2024 06:47 PM EDT"
598
+ [f.ABOUT.VERSION]: "4.3.3",
599
+ [f.ABOUT.BUILD_TIMESTAMP]: "09/08/2024 02:30 PM EDT"
600
600
  })
601
601
  }
602
602
  ) }),
603
603
  /* @__PURE__ */ t(
604
- B,
604
+ R,
605
605
  {
606
606
  header: f.ABOUT.TITLE_SERVER,
607
607
  className: "prose-dark dark:prose-lighter",
@@ -617,7 +617,7 @@ const oo = ({ stats: e }) => {
617
617
  open: e,
618
618
  onOpenChange: o
619
619
  }) => {
620
- const { serverStats: a } = L(Z);
620
+ const { serverStats: a } = _(Z);
621
621
  return /* @__PURE__ */ t(F, { open: e, onOpenChange: o, title: ze, children: /* @__PURE__ */ t(oo, { stats: a }) });
622
622
  }, no = (e) => Ce(e), so = (e) => {
623
623
  if (!e || e.length === 0)
@@ -636,10 +636,10 @@ const oo = ({ stats: e }) => {
636
636
  isAuthenticated: e,
637
637
  stats: o
638
638
  }) => {
639
- const { state: a } = L(Z), n = Ge - Number(a == null ? void 0 : a.usage), s = K(), r = K();
639
+ const { state: a } = _(Z), n = Ge - Number(a == null ? void 0 : a.usage), s = K(), r = K();
640
640
  return e ? /* @__PURE__ */ d(w, { children: [
641
641
  a && a.messages.length > 0 && /* @__PURE__ */ t("div", { className: "mb-4", children: /* @__PURE__ */ t(
642
- B,
642
+ R,
643
643
  {
644
644
  header: f.CURRENT_STATISTICS.TITLE,
645
645
  className: "prose-dark dark:prose-lighter",
@@ -652,7 +652,7 @@ const oo = ({ stats: e }) => {
652
652
  }
653
653
  ) }),
654
654
  /* @__PURE__ */ t(
655
- B,
655
+ R,
656
656
  {
657
657
  header: f.MAIN_STATISTICS.TITLE,
658
658
  className: "prose-dark dark:prose-lighter",
@@ -673,12 +673,12 @@ const oo = ({ stats: e }) => {
673
673
  averageProcessingTimes: 0,
674
674
  totalChats: 0
675
675
  }), { isAuthenticated: s, getAccessToken: r, user: l } = V();
676
- return _(() => {
676
+ return D(() => {
677
677
  !e || !l || (async () => {
678
678
  try {
679
- const m = await R({
679
+ const m = await H({
680
680
  accessToken: await r(),
681
- type: H.GET_CHATS_STATS,
681
+ type: L.GET_CHATS_STATS,
682
682
  params: {
683
683
  userId: l.username
684
684
  }
@@ -703,7 +703,7 @@ const oo = ({ stats: e }) => {
703
703
  title: s.title,
704
704
  footer: /* @__PURE__ */ d(re, { columnGap: 2, alignHorizontal: "flex-end", children: [
705
705
  /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(
706
- O,
706
+ z,
707
707
  {
708
708
  mode: "dark",
709
709
  variant: "secondary",
@@ -715,7 +715,7 @@ const oo = ({ stats: e }) => {
715
715
  }
716
716
  ) }),
717
717
  /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(
718
- O,
718
+ z,
719
719
  {
720
720
  mode: "dark",
721
721
  variant: "danger",
@@ -734,7 +734,7 @@ var io = typeof window < "u", lo = function(e, o) {
734
734
  return io ? window.matchMedia(e).matches : (process.env.NODE_ENV !== "production" && console.warn("`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches."), !1);
735
735
  }, uo = function(e, o) {
736
736
  var a = T(lo(e)), n = a[0], s = a[1];
737
- return _(function() {
737
+ return D(function() {
738
738
  var r = !0, l = window.matchMedia(e), m = function() {
739
739
  r && s(!!l.matches);
740
740
  };
@@ -745,9 +745,9 @@ var io = typeof window < "u", lo = function(e, o) {
745
745
  };
746
746
  const mo = async (e, o, a, n) => {
747
747
  try {
748
- const s = await R({
748
+ const s = await H({
749
749
  accessToken: n,
750
- type: H.GET_CHAT,
750
+ type: L.GET_CHAT,
751
751
  params: {
752
752
  id: e.id
753
753
  }
@@ -779,7 +779,7 @@ const mo = async (e, o, a, n) => {
779
779
  id: 0,
780
780
  timestamp: "",
781
781
  message: ""
782
- }), [m, c] = T(!1), i = uo("(min-width: 480px)"), { state: u, dispatch: g } = L(Se), [, N] = ie({
782
+ }), [m, c] = T(!1), i = uo("(min-width: 480px)"), { state: u, dispatch: g } = _(Se), [, N] = ie({
783
783
  key: ce + Ue,
784
784
  initialValue: u.sortDirection
785
785
  }), C = e.data.sort(
@@ -836,9 +836,9 @@ const mo = async (e, o, a, n) => {
836
836
  action: async () => {
837
837
  const h = l.current;
838
838
  try {
839
- const S = await R({
839
+ const S = await H({
840
840
  accessToken: await r(),
841
- type: H.DELETE_CHAT,
841
+ type: L.DELETE_CHAT,
842
842
  params: {
843
843
  userId: (s == null ? void 0 : s.username) || "",
844
844
  id: h.id
@@ -905,7 +905,7 @@ const mo = async (e, o, a, n) => {
905
905
  /* @__PURE__ */ t(M, { className: "max-w-[100px] text-white sm:max-w-full", children: fe(h.messages) }),
906
906
  /* @__PURE__ */ t(M, { children: /* @__PURE__ */ d("div", { className: "flex justify-end gap-2", children: [
907
907
  /* @__PURE__ */ t(
908
- z,
908
+ B,
909
909
  {
910
910
  focusMode: "alt-system",
911
911
  noBorder: !0,
@@ -923,7 +923,7 @@ const mo = async (e, o, a, n) => {
923
923
  }
924
924
  ),
925
925
  /* @__PURE__ */ t(
926
- z,
926
+ B,
927
927
  {
928
928
  focusMode: "alt-system",
929
929
  noBorder: !0,
@@ -959,7 +959,7 @@ const po = ({
959
959
  onOpenChange: e,
960
960
  historyData: o
961
961
  }) => {
962
- const { isAuthenticated: a } = V(), n = Y(null), { dispatch: s } = L(Z), { state: r, dispatch: l } = L(Se), [, m] = ie({
962
+ const { isAuthenticated: a } = V(), n = Y(null), { dispatch: s } = _(Z), { state: r, dispatch: l } = _(Se), [, m] = ie({
963
963
  key: ce + We,
964
964
  initialValue: r.searchString
965
965
  }), c = rt(() => o, [o]), [i, u] = T({
@@ -977,7 +977,7 @@ const po = ({
977
977
  }, C = async (p) => {
978
978
  p.preventDefault();
979
979
  };
980
- return _(() => {
980
+ return D(() => {
981
981
  const p = ge(
982
982
  o,
983
983
  r.searchString
@@ -998,7 +998,7 @@ const po = ({
998
998
  spacing: { t: 2, b: 2 },
999
999
  ...r.searchString && {
1000
1000
  rightElement: /* @__PURE__ */ t(
1001
- O,
1001
+ z,
1002
1002
  {
1003
1003
  disabled: !r.searchString,
1004
1004
  mode: "dark",
@@ -1040,9 +1040,9 @@ const po = ({
1040
1040
  }), l = async (c) => {
1041
1041
  c.preventDefault();
1042
1042
  try {
1043
- await R({
1043
+ await H({
1044
1044
  accessToken: await a(),
1045
- type: H.SET_CUSTOM_INSTRUCTIONS,
1045
+ type: L.SET_CUSTOM_INSTRUCTIONS,
1046
1046
  params: {
1047
1047
  user: n == null ? void 0 : n.username,
1048
1048
  instructions: s.content,
@@ -1054,13 +1054,13 @@ const po = ({
1054
1054
  }, m = async () => {
1055
1055
  r((c) => ({
1056
1056
  ...c,
1057
- location: "",
1057
+ location: "...",
1058
1058
  loadingLocation: !0
1059
1059
  }));
1060
1060
  try {
1061
- const c = Date.now(), i = await Qe(), u = await R({
1061
+ const c = Date.now(), i = await Qe(), u = await H({
1062
1062
  accessToken: await a(),
1063
- type: H.GET_LOCATION,
1063
+ type: L.GET_LOCATION,
1064
1064
  params: {
1065
1065
  latitude: i.latitude,
1066
1066
  longitude: i.longitude
@@ -1084,7 +1084,7 @@ const po = ({
1084
1084
  } catch {
1085
1085
  }
1086
1086
  };
1087
- return _(() => {
1087
+ return D(() => {
1088
1088
  if (!e || !n) {
1089
1089
  r({
1090
1090
  loaded: !1,
@@ -1096,9 +1096,9 @@ const po = ({
1096
1096
  }
1097
1097
  (async () => {
1098
1098
  try {
1099
- const c = await R({
1099
+ const c = await H({
1100
1100
  accessToken: await a(),
1101
- type: H.GET_CUSTOM_INSTRUCTIONS,
1101
+ type: L.GET_CUSTOM_INSTRUCTIONS,
1102
1102
  params: {
1103
1103
  user: n.username
1104
1104
  }
@@ -1120,7 +1120,7 @@ const po = ({
1120
1120
  title: "Engine Fine Tuning",
1121
1121
  footer: /* @__PURE__ */ d(re, { columnGap: 2, alignHorizontal: "flex-end", children: [
1122
1122
  /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(
1123
- O,
1123
+ z,
1124
1124
  {
1125
1125
  mode: "dark",
1126
1126
  variant: "secondary",
@@ -1132,7 +1132,7 @@ const po = ({
1132
1132
  }
1133
1133
  ) }),
1134
1134
  /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(
1135
- O,
1135
+ z,
1136
1136
  {
1137
1137
  mode: "dark",
1138
1138
  variant: "danger",
@@ -1145,59 +1145,74 @@ const po = ({
1145
1145
  ) })
1146
1146
  ] }),
1147
1147
  children: [
1148
- /* @__PURE__ */ t("h2", { className: "mt-0", children: "Custom Instructions" }),
1149
- /* @__PURE__ */ t("p", { children: "What would you like Sassy Saint to know about you to provide better responses?" }),
1150
- /* @__PURE__ */ t(
1151
- he,
1148
+ /* @__PURE__ */ d(
1149
+ R,
1152
1150
  {
1153
- mode: "dark",
1154
- focusMode: "light",
1155
- autoCapitalize: "off",
1156
- autoComplete: "off",
1157
- autoCorrect: "off",
1158
- name: "customInstructions",
1159
- label: "Custom Instructions",
1160
- value: s.content,
1161
- onChange: (c) => {
1162
- r((i) => ({
1163
- ...i,
1164
- loaded: !0,
1165
- content: c.target.value
1166
- }));
1167
- },
1168
- helperText: "Press ENTER to add a new line."
1151
+ header: "Custom Instructions",
1152
+ className: "prose-dark dark:prose-lighter",
1153
+ children: [
1154
+ /* @__PURE__ */ t("p", { children: "What would you like Sassy Saint to know about you to provide better responses?" }),
1155
+ /* @__PURE__ */ t(
1156
+ he,
1157
+ {
1158
+ mode: "alt-system",
1159
+ autoCapitalize: "off",
1160
+ autoComplete: "off",
1161
+ autoCorrect: "off",
1162
+ name: "customInstructions",
1163
+ label: "Custom Instructions",
1164
+ value: s.content,
1165
+ onChange: (c) => {
1166
+ r((i) => ({
1167
+ ...i,
1168
+ loaded: !0,
1169
+ content: c.target.value
1170
+ }));
1171
+ },
1172
+ helperText: "Press ENTER to add a new line."
1173
+ }
1174
+ )
1175
+ ]
1169
1176
  }
1170
1177
  ),
1171
- /* @__PURE__ */ t("h2", { children: "Location" }),
1172
- /* @__PURE__ */ t("p", { children: "You can share your location to receive customized responses based on your area." }),
1173
- /* @__PURE__ */ t(
1174
- he,
1178
+ /* @__PURE__ */ d(
1179
+ R,
1175
1180
  {
1176
- mode: "dark",
1177
- focusMode: "light",
1178
- name: "location",
1179
- label: "Location",
1180
- value: s.location,
1181
- onChange: (c) => {
1182
- r((i) => ({
1183
- ...i,
1184
- loaded: !0,
1185
- location: c.target.value
1186
- }));
1187
- },
1188
- helperText: "Enter your location or press auto-detect.",
1189
- rightElement: /* @__PURE__ */ t(
1190
- O,
1191
- {
1192
- size: "small",
1193
- noBorder: !0,
1194
- mode: "light",
1195
- focusMode: "light",
1196
- disabled: s.loadingLocation,
1197
- onClick: m,
1198
- children: s.loadingLocation ? "Detecting..." : "Auto-detect"
1199
- }
1200
- )
1181
+ header: "Location",
1182
+ className: "prose-dark dark:prose-lighter",
1183
+ spacing: { t: 4 },
1184
+ children: [
1185
+ /* @__PURE__ */ t("p", { children: "You can share your location to receive customized responses based on your area." }),
1186
+ /* @__PURE__ */ t(
1187
+ he,
1188
+ {
1189
+ mode: "alt-system",
1190
+ name: "location",
1191
+ label: "Location",
1192
+ value: s.location,
1193
+ onChange: (c) => {
1194
+ r((i) => ({
1195
+ ...i,
1196
+ loaded: !0,
1197
+ location: c.target.value
1198
+ }));
1199
+ },
1200
+ helperText: "Enter your location or press auto-detect.",
1201
+ rightElement: /* @__PURE__ */ t(
1202
+ z,
1203
+ {
1204
+ size: "small",
1205
+ noBorder: !0,
1206
+ mode: "alt-system",
1207
+ focusMode: "alt-system",
1208
+ disabled: s.loadingLocation,
1209
+ onClick: m,
1210
+ children: s.loadingLocation ? "Detecting..." : "Auto-detect"
1211
+ }
1212
+ )
1213
+ }
1214
+ )
1215
+ ]
1201
1216
  }
1202
1217
  )
1203
1218
  ]
@@ -1221,7 +1236,7 @@ const po = ({
1221
1236
  }
1222
1237
  ),
1223
1238
  /* @__PURE__ */ d(
1224
- B,
1239
+ R,
1225
1240
  {
1226
1241
  header: f.PREFERENCES.TITLE,
1227
1242
  className: "prose-dark dark:prose-lighter",
@@ -1242,7 +1257,7 @@ const po = ({
1242
1257
  )
1243
1258
  }),
1244
1259
  /* @__PURE__ */ t(
1245
- z,
1260
+ B,
1246
1261
  {
1247
1262
  spacing: { t: 2 },
1248
1263
  size: "small",
@@ -1255,7 +1270,7 @@ const po = ({
1255
1270
  }
1256
1271
  ),
1257
1272
  n !== et.PASSKEY && /* @__PURE__ */ d(
1258
- B,
1273
+ R,
1259
1274
  {
1260
1275
  spacing: { t: 4 },
1261
1276
  className: "prose-dark dark:prose-lighter",
@@ -1266,7 +1281,7 @@ const po = ({
1266
1281
  children: [
1267
1282
  /* @__PURE__ */ t("p", { children: f.PREFERENCES.PASSKEY_INSTRUCTIONS }),
1268
1283
  /* @__PURE__ */ t(
1269
- z,
1284
+ B,
1270
1285
  {
1271
1286
  size: "small",
1272
1287
  spacing: { t: 2 },
@@ -1283,7 +1298,7 @@ const po = ({
1283
1298
  open: e,
1284
1299
  onOpenChange: o
1285
1300
  }) => /* @__PURE__ */ t(F, { open: e, onOpenChange: o, title: tt, children: /* @__PURE__ */ t(Co, {}) }), ko = () => {
1286
- const { state: e } = L(Z), [o, a] = T(!1), [n, s] = T(!1), [r, l] = T(!1), [m, c] = T(!1), [i, u] = T([]), [g, N] = T(!1), [C, p] = T({
1301
+ const { state: e } = _(Z), [o, a] = T(!1), [n, s] = T(!1), [r, l] = T(!1), [m, c] = T(!1), [i, u] = T([]), [g, N] = T(!1), [C, p] = T({
1287
1302
  done: !1,
1288
1303
  progress: !1,
1289
1304
  timestamp: Date.now()
@@ -1304,9 +1319,9 @@ const po = ({
1304
1319
  timestamp: q
1305
1320
  });
1306
1321
  try {
1307
- const $ = await R({
1322
+ const $ = await H({
1308
1323
  accessToken: await k(),
1309
- type: H.GET_CHATS,
1324
+ type: L.GET_CHATS,
1310
1325
  params: {
1311
1326
  userId: h.username
1312
1327
  }
@@ -1358,12 +1373,12 @@ const po = ({
1358
1373
  {
1359
1374
  mode: "dark",
1360
1375
  focusMode: "light",
1361
- trigger: /* @__PURE__ */ t(z, { children: /* @__PURE__ */ t(to, {}) }),
1376
+ trigger: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(to, {}) }),
1362
1377
  defaultPlacement: "bottom-end",
1363
1378
  onOpenChange: te,
1364
1379
  children: [
1365
1380
  /* @__PURE__ */ t(
1366
- D,
1381
+ O,
1367
1382
  {
1368
1383
  label: "Profile",
1369
1384
  onClick: S,
@@ -1371,7 +1386,7 @@ const po = ({
1371
1386
  }
1372
1387
  ),
1373
1388
  /* @__PURE__ */ t(
1374
- D,
1389
+ O,
1375
1390
  {
1376
1391
  label: Te,
1377
1392
  onClick: E,
@@ -1379,7 +1394,7 @@ const po = ({
1379
1394
  }
1380
1395
  ),
1381
1396
  /* @__PURE__ */ t(
1382
- D,
1397
+ O,
1383
1398
  {
1384
1399
  label: "History",
1385
1400
  onClick: x,
@@ -1387,7 +1402,7 @@ const po = ({
1387
1402
  }
1388
1403
  ),
1389
1404
  /* @__PURE__ */ t(
1390
- D,
1405
+ O,
1391
1406
  {
1392
1407
  label: "About",
1393
1408
  onClick: ee,
@@ -1397,7 +1412,7 @@ const po = ({
1397
1412
  e && e.id && !e.isComponent && /* @__PURE__ */ d(w, { children: [
1398
1413
  /* @__PURE__ */ t(Mt, {}),
1399
1414
  /* @__PURE__ */ t(
1400
- D,
1415
+ O,
1401
1416
  {
1402
1417
  label: "Log out",
1403
1418
  onClick: X,
@@ -1,5 +1,5 @@
1
1
  import { jsx as _i } from "react/jsx-runtime";
2
- import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.9TRoCl8r.js";
2
+ import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.6l2ElKdb.js";
3
3
  const U0 = (
4
4
  // Note: overloads like this are needed to support optional generics.
5
5
  /**
@@ -1,8 +1,8 @@
1
1
  import { jsxs as He, jsx as re, Fragment as or } from "react/jsx-runtime";
2
- import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.BlSrPZWf.js";
3
- import { AppContext as Ei, E as Ai } from "./useLocalStorage.C4iGBmg7.js";
2
+ import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.Bd1O6OvY.js";
3
+ import { AppContext as Ei, E as Ai } from "./useLocalStorage.BJF_XPk2.js";
4
4
  import { lazy as Ii, useContext as Ti, Suspense as Pi } from "react";
5
- import { T as ut } from "./App.C232zHGs.js";
5
+ import { T as ut } from "./App.Dkjj-6lf.js";
6
6
  import cn from "clsx";
7
7
  const Li = ({
8
8
  spinnerRef: e,
@@ -8618,7 +8618,7 @@ function sf(e) {
8618
8618
  i.push(af(n)), o.push(Tc()), l.push(Pc(n));
8619
8619
  }
8620
8620
  const cf = Ii(
8621
- () => import("./LazyMarkdownWithExtra.CacXy27y.js")
8621
+ () => import("./LazyMarkdownWithExtra.B6ArTFcZ.js")
8622
8622
  ), In = {
8623
8623
  MODEL: "Model",
8624
8624
  PLUGIN: "Plugin",
@@ -2616,7 +2616,7 @@ function qt({
2616
2616
  try {
2617
2617
  window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
2618
2618
  version: "1.4.8",
2619
- buildTime: "09/06/2024 06:38 PM EDT",
2619
+ buildTime: "09/08/2024 01:38 PM EDT",
2620
2620
  homepage: "https://github.com/aversini/ui-components",
2621
2621
  license: "MIT"
2622
2622
  });
@@ -2924,13 +2924,13 @@ const En = 500, wn = 5e3, Tn = 2e4, Xt = V.forwardRef(
2924
2924
  );
2925
2925
  Xt.displayName = "TextInputMask";
2926
2926
  /*!
2927
- @versini/ui-form v1.3.8
2927
+ @versini/ui-form v1.3.9
2928
2928
  © 2024 gizmette.com
2929
2929
  */
2930
2930
  try {
2931
2931
  window.__VERSINI_UI_FORM__ || (window.__VERSINI_UI_FORM__ = {
2932
- version: "1.3.8",
2933
- buildTime: "09/06/2024 06:38 PM EDT",
2932
+ version: "1.3.9",
2933
+ buildTime: "09/08/2024 01:38 PM EDT",
2934
2934
  homepage: "https://github.com/aversini/ui-components",
2935
2935
  license: "MIT"
2936
2936
  });
@@ -3337,7 +3337,7 @@ const xn = "ASK! ME! ANYTHING!", er = "Sassy Saint", Cn = "gizmette.com", On = "
3337
3337
  row1: /* @__PURE__ */ I("div", { children: [
3338
3338
  er,
3339
3339
  " v",
3340
- "4.3.1",
3340
+ "4.3.3",
3341
3341
  " - ",
3342
3342
  $n,
3343
3343
  Qe && e && e.models.length > 0 && e.models[0] === "development" ? " - Development Mode" : ""
@@ -3349,7 +3349,7 @@ const xn = "ASK! ME! ANYTHING!", er = "Sassy Saint", Cn = "gizmette.com", On = "
3349
3349
  Cn
3350
3350
  ] })
3351
3351
  }
3352
- ), Mn = wt(() => import("./LazyHeader.BcKwtFsD.js")), Un = () => {
3352
+ ), Mn = wt(() => import("./LazyHeader.B0DWuoW8.js")), Un = () => {
3353
3353
  const { isAuthenticated: e } = qe();
3354
3354
  return /* @__PURE__ */ I(le, { children: [
3355
3355
  e && /* @__PURE__ */ c(Tt, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Mn, {}) }),
@@ -3456,7 +3456,7 @@ const xn = "ASK! ME! ANYTHING!", er = "Sassy Saint", Cn = "gizmette.com", On = "
3456
3456
  ] }),
3457
3457
  /* @__PURE__ */ c(Ln, {})
3458
3458
  ] });
3459
- }, Kn = new URL(document.location.href).searchParams, Bn = !!Kn.get("debug") || !1, Wn = wt(() => import("./App.C232zHGs.js").then((e) => e.App)), Gn = ({ isComponent: e }) => {
3459
+ }, Kn = new URL(document.location.href).searchParams, Bn = !!Kn.get("debug") || !1, Wn = wt(() => import("./App.Dkjj-6lf.js").then((e) => e.App)), Gn = ({ isComponent: e }) => {
3460
3460
  const { isAuthenticated: t } = qe();
3461
3461
  return t ? /* @__PURE__ */ c(Tt, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Wn, { isComponent: e }) }) : /* @__PURE__ */ c(Hn, {});
3462
3462
  }, Vn = ({
@@ -3,7 +3,7 @@ import y from "clsx";
3
3
  import * as c from "react";
4
4
  import { useRef as C, useReducer as M, useEffect as _, useId as x } from "react";
5
5
  import { useMergeRefs as S, FloatingPortal as F, FloatingOverlay as O, FloatingFocusManager as P, useFloating as k, useClick as L, useDismiss as V, useRole as B, useInteractions as U } from "@floating-ui/react";
6
- import { S as j } from "./index.BlSrPZWf.js";
6
+ import { S as j } from "./index.Bd1O6OvY.js";
7
7
  const b = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", q = {
8
8
  alert: null,
9
9
  alertdialog: null,