@versini/sassysaint 5.3.15 → 5.3.16

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 { jsx as r, jsxs as v, Fragment as A } from "react/jsx-runtime";
2
- import { g as O, E as B, CARDS as N, renderDataAsList as se, pluralize as be, AppContext as ue, ABOUT_TITLE as Rt, DEFAULT_AI_ENGINE as ae, numberFormatter as At, durationFormatter as qe, NA as Mt, ROLE_ASSISTANT as Lt, extractAverage as Pt, GPT4_MAX_TOKENS as $t, rn as X, STATS as Xe, b as ie, j as $, R as G, HistoryContext as Ze, LOCAL_STORAGE_PREFIX as me, LOCAL_STORAGE_SORT as Bt, O as Y, ACTION_RESET as Je, ACTION_RESTORE as zt, truncate as Ot, ACTION_SORT as we, LOCAL_STORAGE_SEARCH as Vt, me as xe, ACTION_SEARCH as Dt, HISTORY_TITLE as Ft, LOCAL_STORAGE_ENGINE_TOGGLE as Qe, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as fe, APP_NAME as Ht, ACTION_ENGINE as et, getCurrentGeoLocation as Gt, TagsContext as Ut, TAGS_DESCRIPTION as jt, ACTION_SET_TAGS as Kt, LOCAL_STORAGE_CHAT_DETAILS as Wt, G as Yt, v as Oe, PROFILE_TITLE as qt, LOG_OUT as Ve } from "./index.Cox6Ux55.js";
3
- import { serviceCall as F, SERVICE_TYPES as H, E as he, f as D, ge as Xt, he as Zt, ue as Ne, de as P, pe as Jt, me as Qt, be as eo, we as De, n as Fe } from "./index.p6kaA5n7.js";
2
+ import { g as O, E as B, CARDS as N, renderDataAsList as se, pluralize as be, AppContext as ue, ABOUT_TITLE as Rt, DEFAULT_AI_ENGINE as ae, numberFormatter as At, durationFormatter as qe, NA as Mt, ROLE_ASSISTANT as Lt, extractAverage as Pt, GPT4_MAX_TOKENS as $t, rn as X, STATS as Xe, b as ie, j as $, R as G, HistoryContext as Ze, LOCAL_STORAGE_PREFIX as me, LOCAL_STORAGE_SORT as Bt, O as Y, ACTION_RESET as Je, ACTION_RESTORE as zt, truncate as Ot, ACTION_SORT as we, LOCAL_STORAGE_SEARCH as Dt, me as xe, ACTION_SEARCH as Vt, HISTORY_TITLE as Ft, LOCAL_STORAGE_ENGINE_TOGGLE as Qe, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as fe, APP_NAME as Ht, ACTION_ENGINE as et, getCurrentGeoLocation as Gt, TagsContext as Ut, TAGS_DESCRIPTION as jt, ACTION_SET_TAGS as Kt, LOCAL_STORAGE_CHAT_DETAILS as Wt, G as Yt, v as Oe, PROFILE_TITLE as qt, LOG_OUT as De } from "./index.C_44Odxq.js";
3
+ import { serviceCall as F, SERVICE_TYPES as H, E as he, f as V, ge as Xt, he as Zt, ue as Ne, de as P, pe as Jt, me as Qt, be as eo, we as Ve, n as Fe } from "./index.BnAnY2Vs.js";
4
4
  import * as f from "react";
5
5
  import x, { useId as to, forwardRef as tt, useState as S, useRef as le, useContext as z, useEffect as U, Suspense as oo, lazy as ro, useMemo as ao } from "react";
6
6
  import w from "clsx";
@@ -300,7 +300,7 @@ const Ie = f.createContext({
300
300
  focusMode: c = "system",
301
301
  ...h
302
302
  }, m) => {
303
- const [l, g] = S(!1), [b, u] = S(!1), [d, y] = S(null), C = le([]), p = le([]), k = z(Ie), T = ot(), I = no(), M = rt(), { floatingStyles: _, refs: V, context: E } = so({
303
+ const [l, g] = S(!1), [b, u] = S(!1), [d, y] = S(null), C = le([]), p = le([]), k = z(Ie), T = ot(), I = no(), M = rt(), { floatingStyles: _, refs: D, context: E } = so({
304
304
  nodeId: I,
305
305
  open: l,
306
306
  onOpenChange: (oe) => {
@@ -329,18 +329,21 @@ const Ie = f.createContext({
329
329
  focusMode: c,
330
330
  mode: i,
331
331
  spacing: s
332
- } : {}, _t = x.cloneElement(e, {
333
- ...St,
334
- "aria-label": o,
335
- "data-open": l ? "" : void 0,
336
- "data-focus-inside": b ? "" : void 0,
337
- ref: at([V.setReference, M.ref, m]),
338
- ...K(
339
- k.getItemProps({
340
- ...h
341
- })
342
- )
343
- });
332
+ } : {}, _t = x.cloneElement(
333
+ e,
334
+ {
335
+ ...St,
336
+ "aria-label": o,
337
+ "data-open": l ? "" : void 0,
338
+ "data-focus-inside": b ? "" : void 0,
339
+ ref: at([D.setReference, M.ref, m]),
340
+ ...K(
341
+ k.getItemProps({
342
+ ...h
343
+ })
344
+ )
345
+ }
346
+ );
344
347
  return U(() => {
345
348
  if (!T)
346
349
  return;
@@ -374,7 +377,7 @@ const Ie = f.createContext({
374
377
  children: /* @__PURE__ */ r(
375
378
  "div",
376
379
  {
377
- ref: V.setFloating,
380
+ ref: D.setFloating,
378
381
  className: "rounded-md bg-surface-light p-4 shadow-sm shadow-border-dark outline-none sm:p-2",
379
382
  style: _,
380
383
  ...R(),
@@ -446,26 +449,26 @@ const Ao = ({ className: e, ...t }) => {
446
449
  return /* @__PURE__ */ r("div", { className: o, ...t });
447
450
  };
448
451
  /*!
449
- @versini/ui-menu v1.1.1
452
+ @versini/ui-menu v1.1.2
450
453
  © 2024 gizmette.com
451
454
  */
452
455
  try {
453
456
  window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
454
- version: "1.1.1",
455
- buildTime: "11/19/2024 10:59 AM EST",
457
+ version: "1.1.2",
458
+ buildTime: "12/12/2024 05:56 PM EST",
456
459
  homepage: "https://github.com/aversini/ui-components",
457
460
  license: "MIT"
458
461
  });
459
462
  } catch {
460
463
  }
461
464
  /*!
462
- @versini/ui-togglegroup v1.1.1
465
+ @versini/ui-togglegroup v1.1.2
463
466
  © 2024 gizmette.com
464
467
  */
465
468
  try {
466
469
  window.__VERSINI_UI_TOGGLEGROUP__ || (window.__VERSINI_UI_TOGGLEGROUP__ = {
467
- version: "1.1.1",
468
- buildTime: "11/19/2024 10:59 AM EST",
470
+ version: "1.1.2",
471
+ buildTime: "12/12/2024 05:56 PM EST",
469
472
  homepage: "https://github.com/aversini/ui-components",
470
473
  license: "MIT"
471
474
  });
@@ -540,9 +543,9 @@ ve.displayName = "Slot";
540
543
  var Re = f.forwardRef((e, t) => {
541
544
  const { children: o, ...a } = e;
542
545
  if (f.isValidElement(o)) {
543
- const n = Do(o);
546
+ const n = Vo(o);
544
547
  return f.cloneElement(o, {
545
- ...Vo(a, o.props),
548
+ ...Do(a, o.props),
546
549
  // @ts-ignore
547
550
  ref: t ? lt(t, n) : n
548
551
  });
@@ -554,7 +557,7 @@ var zo = ({ children: e }) => /* @__PURE__ */ r(A, { children: e });
554
557
  function Oo(e) {
555
558
  return f.isValidElement(e) && e.type === zo;
556
559
  }
557
- function Vo(e, t) {
560
+ function Do(e, t) {
558
561
  const o = { ...t };
559
562
  for (const a in t) {
560
563
  const n = e[a], s = t[a];
@@ -564,7 +567,7 @@ function Vo(e, t) {
564
567
  }
565
568
  return { ...e, ...o };
566
569
  }
567
- function Do(e) {
570
+ function Vo(e) {
568
571
  var t, o;
569
572
  let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, n = a && "isReactWarning" in a && a.isReactWarning;
570
573
  return n ? e.ref : (a = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = a && "isReactWarning" in a && a.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
@@ -712,7 +715,7 @@ var er = f.forwardRef((e, t) => {
712
715
  prop: i,
713
716
  defaultProp: c,
714
717
  onChange: h
715
- }), [p, k] = f.useState(!1), T = Le(m), I = dt(o), M = f.useRef(!1), [_, V] = f.useState(0);
718
+ }), [p, k] = f.useState(!1), T = Le(m), I = dt(o), M = f.useRef(!1), [_, D] = f.useState(0);
716
719
  return f.useEffect(() => {
717
720
  const E = b.current;
718
721
  if (E)
@@ -731,11 +734,11 @@ var er = f.forwardRef((e, t) => {
731
734
  ),
732
735
  onItemShiftTab: f.useCallback(() => k(!0), []),
733
736
  onFocusableItemAdd: f.useCallback(
734
- () => V((E) => E + 1),
737
+ () => D((E) => E + 1),
735
738
  []
736
739
  ),
737
740
  onFocusableItemRemove: f.useCallback(
738
- () => V((E) => E - 1),
741
+ () => D((E) => E - 1),
739
742
  []
740
743
  ),
741
744
  children: /* @__PURE__ */ r(
@@ -1106,13 +1109,13 @@ const Tt = x.createContext({
1106
1109
  ) });
1107
1110
  };
1108
1111
  /*!
1109
- @versini/ui-panel v1.0.15
1112
+ @versini/ui-panel v1.0.16
1110
1113
  © 2024 gizmette.com
1111
1114
  */
1112
1115
  try {
1113
1116
  window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
1114
- version: "1.0.15",
1115
- buildTime: "11/19/2024 10:59 AM EST",
1117
+ version: "1.0.16",
1118
+ buildTime: "12/12/2024 05:56 PM EST",
1116
1119
  homepage: "https://github.com/aversini/ui-components",
1117
1120
  license: "MIT"
1118
1121
  });
@@ -1392,13 +1395,13 @@ const Et = x.forwardRef(
1392
1395
  );
1393
1396
  Et.displayName = "ButtonIcon";
1394
1397
  /*!
1395
- @versini/ui-button v1.1.11
1398
+ @versini/ui-button v1.1.12
1396
1399
  © 2024 gizmette.com
1397
1400
  */
1398
1401
  try {
1399
1402
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
1400
- version: "1.1.11",
1401
- buildTime: "11/19/2024 10:59 AM EST",
1403
+ version: "1.1.12",
1404
+ buildTime: "12/12/2024 05:56 PM EST",
1402
1405
  homepage: "https://github.com/aversini/ui-components",
1403
1406
  license: "MIT"
1404
1407
  });
@@ -1526,13 +1529,13 @@ const Pr = (e) => {
1526
1529
  ] });
1527
1530
  };
1528
1531
  /*!
1529
- @versini/ui-private v1.4.18
1532
+ @versini/ui-private v1.4.19
1530
1533
  © 2024 gizmette.com
1531
1534
  */
1532
1535
  try {
1533
1536
  window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
1534
- version: "1.4.18",
1535
- buildTime: "11/19/2024 10:59 AM EST",
1537
+ version: "1.4.19",
1538
+ buildTime: "12/12/2024 05:56 PM EST",
1536
1539
  homepage: "https://github.com/aversini/ui-components",
1537
1540
  license: "MIT"
1538
1541
  });
@@ -1559,13 +1562,13 @@ const Br = ({
1559
1562
  }
1560
1563
  );
1561
1564
  /*!
1562
- @versini/ui-icons v1.15.2
1565
+ @versini/ui-icons v1.15.3
1563
1566
  © 2024 gizmette.com
1564
1567
  */
1565
1568
  try {
1566
1569
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
1567
- version: "1.15.2",
1568
- buildTime: "11/19/2024 10:59 AM EST",
1570
+ version: "1.15.3",
1571
+ buildTime: "12/12/2024 05:56 PM EST",
1569
1572
  homepage: "https://github.com/aversini/ui-components",
1570
1573
  license: "MIT"
1571
1574
  });
@@ -1592,10 +1595,10 @@ const re = "panel", pe = "messagebox", zr = ({
1592
1595
  header: "sm:p-4 mb-0 p-2",
1593
1596
  close: "sm:p-4 p-2"
1594
1597
  }), ge = (e) => ro(
1595
- () => import("./index.AUArUGH7.FZU7Bha5.js").then((t) => ({
1598
+ () => import("./index.DfFZfYdy.DM48ssjd.js").then((t) => ({
1596
1599
  default: t[e]
1597
1600
  }))
1598
- ), Or = ge("Modal"), Vr = ge("ModalClose"), Dr = ge("ModalContent"), Fr = ge("ModalDescription"), Hr = ge("ModalHeading"), Z = ({
1601
+ ), Or = ge("Modal"), Dr = ge("ModalClose"), Vr = ge("ModalContent"), Fr = ge("ModalDescription"), Hr = ge("ModalHeading"), Z = ({
1599
1602
  open: e,
1600
1603
  onOpenChange: t,
1601
1604
  title: o,
@@ -1608,10 +1611,10 @@ const re = "panel", pe = "messagebox", zr = ({
1608
1611
  const h = le(""), m = zr({ className: c, kind: i, borderMode: s });
1609
1612
  return U(() => (e && (h.current = document.title, document.title = `${o} | ${h.current}`), () => {
1610
1613
  e && (document.title = h.current);
1611
- }), [o, e]), /* @__PURE__ */ r(oo, { fallback: /* @__PURE__ */ r("div", {}), children: e && /* @__PURE__ */ r(Or, { open: e, onOpenChange: t, children: /* @__PURE__ */ v(Dr, { className: m.main, children: [
1614
+ }), [o, e]), /* @__PURE__ */ r(oo, { fallback: /* @__PURE__ */ r("div", {}), children: e && /* @__PURE__ */ r(Or, { open: e, onOpenChange: t, children: /* @__PURE__ */ v(Vr, { className: m.main, children: [
1612
1615
  /* @__PURE__ */ v("div", { className: "flex flex-row-reverse items-center justify-between", children: [
1613
1616
  /* @__PURE__ */ r(
1614
- Vr,
1617
+ Dr,
1615
1618
  {
1616
1619
  className: m.close,
1617
1620
  trigger: /* @__PURE__ */ r(
@@ -1640,8 +1643,8 @@ const re = "panel", pe = "messagebox", zr = ({
1640
1643
  header: N.ABOUT.TITLE_CLIENT,
1641
1644
  className: "prose-dark dark:prose-lighter",
1642
1645
  children: se(n, {
1643
- [N.ABOUT.VERSION]: "5.6.4",
1644
- [N.ABOUT.BUILD_TIMESTAMP]: "12/12/2024 06:18 PM EST"
1646
+ [N.ABOUT.VERSION]: "5.6.5",
1647
+ [N.ABOUT.BUILD_TIMESTAMP]: "12/13/2024 08:26 AM EST"
1645
1648
  })
1646
1649
  }
1647
1650
  ) }),
@@ -1831,9 +1834,9 @@ const Jr = async (e, t, o, a) => {
1831
1834
  (p, k) => {
1832
1835
  switch (l.sortedCell) {
1833
1836
  case "timestamp":
1834
- if (l.sortDirection === D.ASC)
1837
+ if (l.sortDirection === V.ASC)
1835
1838
  return new Date(p[l.sortedCell]).getTime() - new Date(k[l.sortedCell]).getTime();
1836
- if (l.sortDirection === D.DESC)
1839
+ if (l.sortDirection === V.DESC)
1837
1840
  return new Date(k[l.sortedCell]).getTime() - new Date(p[l.sortedCell]).getTime();
1838
1841
  break;
1839
1842
  default:
@@ -1844,29 +1847,29 @@ const Jr = async (e, t, o, a) => {
1844
1847
  ), d = (p) => {
1845
1848
  switch (l.sortDirection) {
1846
1849
  case !1:
1847
- b(D.ASC), g({
1850
+ b(V.ASC), g({
1848
1851
  type: we,
1849
1852
  payload: {
1850
1853
  sortedCell: p,
1851
- sortDirection: D.ASC
1854
+ sortDirection: V.ASC
1852
1855
  }
1853
1856
  });
1854
1857
  break;
1855
- case D.ASC:
1856
- b(D.DESC), g({
1858
+ case V.ASC:
1859
+ b(V.DESC), g({
1857
1860
  type: we,
1858
1861
  payload: {
1859
1862
  sortedCell: p,
1860
- sortDirection: D.DESC
1863
+ sortDirection: V.DESC
1861
1864
  }
1862
1865
  });
1863
1866
  break;
1864
1867
  default:
1865
- b(D.ASC), g({
1868
+ b(V.ASC), g({
1866
1869
  type: we,
1867
1870
  payload: {
1868
1871
  sortedCell: p,
1869
- sortDirection: D.ASC
1872
+ sortDirection: V.ASC
1870
1873
  }
1871
1874
  });
1872
1875
  break;
@@ -2011,7 +2014,7 @@ const ea = ({
2011
2014
  historyData: t
2012
2015
  }) => {
2013
2016
  const { isAuthenticated: o } = X(), a = le(null), { dispatch: n } = z(ue), { state: s, dispatch: i } = z(Ze), [, c] = he({
2014
- key: me + Vt,
2017
+ key: me + Dt,
2015
2018
  initialValue: s.searchString
2016
2019
  }), h = ao(() => t, [t]), [m, l] = S({
2017
2020
  data: h
@@ -2020,7 +2023,7 @@ const ea = ({
2020
2023
  l({
2021
2024
  data: y
2022
2025
  }), c(d), i({
2023
- type: Dt,
2026
+ type: Vt,
2024
2027
  payload: { searchString: d }
2025
2028
  });
2026
2029
  }, b = (d) => {
@@ -2083,13 +2086,13 @@ const ea = ({
2083
2086
  historyData: o
2084
2087
  }) => /* @__PURE__ */ r(Z, { open: e, onOpenChange: t, title: Ft, children: /* @__PURE__ */ r(ea, { onOpenChange: t, historyData: o }) });
2085
2088
  /*!
2086
- @versini/ui-toggle v1.0.8
2089
+ @versini/ui-toggle v1.0.9
2087
2090
  © 2024 gizmette.com
2088
2091
  */
2089
2092
  try {
2090
2093
  window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
2091
- version: "1.0.8",
2092
- buildTime: "11/19/2024 10:59 AM EST",
2094
+ version: "1.0.9",
2095
+ buildTime: "12/12/2024 05:56 PM EST",
2093
2096
  homepage: "https://github.com/aversini/ui-components",
2094
2097
  license: "MIT"
2095
2098
  });
@@ -2257,8 +2260,8 @@ const oa = "av-toggle", ra = (e) => {
2257
2260
  }), p = Date.now() - u;
2258
2261
  if (p < 2e3 && await new Promise((k) => setTimeout(k, 2e3 - p)), y.status === 200) {
2259
2262
  const { city: k, state: T, country: I, displayName: M } = y.data, _ = k && T && I ? `${k}, ${T}, ${I}` : M;
2260
- i((V) => ({
2261
- ...V,
2263
+ i((D) => ({
2264
+ ...D,
2262
2265
  loaded: !0,
2263
2266
  location: _,
2264
2267
  loadingLocation: !1
@@ -2411,7 +2414,7 @@ const oa = "av-toggle", ra = (e) => {
2411
2414
  " to know about you to provide better responses?"
2412
2415
  ] }),
2413
2416
  /* @__PURE__ */ r(
2414
- De,
2417
+ Ve,
2415
2418
  {
2416
2419
  mode: "alt-system",
2417
2420
  autoCapitalize: "off",
@@ -2442,7 +2445,7 @@ const oa = "av-toggle", ra = (e) => {
2442
2445
  children: [
2443
2446
  /* @__PURE__ */ r("p", { children: "You can share your location to receive customized responses based on your area." }),
2444
2447
  /* @__PURE__ */ r(
2445
- De,
2448
+ Ve,
2446
2449
  {
2447
2450
  mode: "alt-system",
2448
2451
  name: "location",
@@ -2729,7 +2732,7 @@ const oa = "av-toggle", ra = (e) => {
2729
2732
  }), [T] = he({
2730
2733
  key: me + Qe,
2731
2734
  initialValue: !1
2732
- }), { logout: I, getAccessToken: M, user: _ } = X(), V = () => {
2735
+ }), { logout: I, getAccessToken: M, user: _ } = X(), D = () => {
2733
2736
  i(!s);
2734
2737
  }, E = () => {
2735
2738
  h(!c);
@@ -2779,9 +2782,9 @@ const oa = "av-toggle", ra = (e) => {
2779
2782
  setShowConfirmation: C,
2780
2783
  action: I,
2781
2784
  customStrings: {
2782
- confirmAction: Ve,
2785
+ confirmAction: De,
2783
2786
  cancelAction: "Cancel",
2784
- title: Ve
2787
+ title: De
2785
2788
  },
2786
2789
  children: /* @__PURE__ */ r("p", { children: "Are you sure you want to log out?" })
2787
2790
  }
@@ -2851,7 +2854,7 @@ const oa = "av-toggle", ra = (e) => {
2851
2854
  W,
2852
2855
  {
2853
2856
  label: "Profile",
2854
- onClick: V,
2857
+ onClick: D,
2855
2858
  icon: /* @__PURE__ */ r(So, {})
2856
2859
  }
2857
2860
  ),
@@ -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.BMarDoja.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.DxbwaE9c.js";
3
3
  const U0 = (
4
4
  // Note: overloads like this are needed to support optional generics.
5
5
  /**