@fiction/sdk 1.0.15 → 1.0.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.
- package/dist/sdk.css +1 -1
- package/dist/self.js +566 -532
- package/dist/self.js.map +1 -1
- package/package.json +2 -2
package/dist/self.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Ct = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var io = (e, r, o) => r in e ? Ct(e, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[r] = o;
|
|
3
3
|
var s = (e, r) => Ct(e, "name", { value: r, configurable: !0 });
|
|
4
|
-
var D = (e, r, o) =>
|
|
5
|
-
import { ref as T, defineComponent as j, createElementBlock as
|
|
6
|
-
import { S as
|
|
4
|
+
var D = (e, r, o) => io(e, typeof r != "symbol" ? r + "" : r, o);
|
|
5
|
+
import { ref as T, defineComponent as j, createElementBlock as b, openBlock as d, createElementVNode as l, normalizeClass as z, watch as ee, createBlock as _, TransitionGroup as Pt, withCtx as te, renderSlot as Ce, computed as V, createCommentVNode as E, onMounted as Ie, Fragment as Ae, renderList as rt, withDirectives as Vt, vModelText as Ft, toDisplayString as N, createVNode as B, withKeys as lo, createTextVNode as He, unref as Y, resolveDynamicComponent as co, nextTick as Xe, Transition as _e, withModifiers as et, normalizeStyle as st, onUnmounted as ft, shallowRef as uo, Teleport as ho, normalizeProps as fo, guardReactiveProps as go, mergeProps as St } from "vue";
|
|
6
|
+
import { S as Dt } from "./base-CEr2lLFg.js";
|
|
7
7
|
import { Conversation as Mt } from "@elevenlabs/client";
|
|
8
8
|
import { objectId as mo } from "@fiction/utils";
|
|
9
9
|
const bo = 256, vo = 0.8, po = 50, xo = {
|
|
@@ -19,7 +19,7 @@ const bo = 256, vo = 0.8, po = 50, xo = {
|
|
|
19
19
|
// ms to hold peaks
|
|
20
20
|
PEAK_DECAY_STIFFNESS: 0.12,
|
|
21
21
|
PEAK_DECAY_DAMPING: 0.15
|
|
22
|
-
},
|
|
22
|
+
}, X = [
|
|
23
23
|
// Low fundamentals
|
|
24
24
|
85,
|
|
25
25
|
100,
|
|
@@ -93,7 +93,7 @@ const bo = 256, vo = 0.8, po = 50, xo = {
|
|
|
93
93
|
7500,
|
|
94
94
|
8e3,
|
|
95
95
|
8500
|
|
96
|
-
], vt = class vt extends
|
|
96
|
+
], vt = class vt extends Dt {
|
|
97
97
|
constructor(o) {
|
|
98
98
|
super("ClientAudio", o);
|
|
99
99
|
D(this, "audioContext");
|
|
@@ -236,7 +236,7 @@ const bo = 256, vo = 0.8, po = 50, xo = {
|
|
|
236
236
|
};
|
|
237
237
|
s(vt, "ClientAudio");
|
|
238
238
|
let lt = vt;
|
|
239
|
-
const
|
|
239
|
+
const Bt = [
|
|
240
240
|
{
|
|
241
241
|
mode: "self",
|
|
242
242
|
label: "Mode",
|
|
@@ -303,11 +303,11 @@ function yo(e) {
|
|
|
303
303
|
return null;
|
|
304
304
|
}
|
|
305
305
|
s(yo, "parseVoiceMessage");
|
|
306
|
-
function
|
|
306
|
+
function an(e) {
|
|
307
307
|
const { name: r, context: o } = e;
|
|
308
308
|
return o === "welcome" ? `Welcome to Fiction! I'm ${r}, your digital self. I'm here to help you understand how I can represent you and assist with your daily tasks. What would you like to know about how I work?` : o === "onboarding" ? `Hi! I'm ${r}, your newly created digital self. I can handle conversations, answer questions about your expertise, and represent you professionally. Ready to see what I can do?` : `Hello! I'm ${r}. How can I help you today?`;
|
|
309
309
|
}
|
|
310
|
-
s(
|
|
310
|
+
s(an, "generateFirstMessage");
|
|
311
311
|
const ko = { class: "spinner max-w-sm" }, wo = {
|
|
312
312
|
class: "ring-circular h-full w-full origin-center",
|
|
313
313
|
viewBox: "25 25 50 50"
|
|
@@ -318,8 +318,8 @@ const ko = { class: "spinner max-w-sm" }, wo = {
|
|
|
318
318
|
colorMode: { type: String, default: "primary" }
|
|
319
319
|
},
|
|
320
320
|
setup(e) {
|
|
321
|
-
return (r, o) => (d(),
|
|
322
|
-
(d(),
|
|
321
|
+
return (r, o) => (d(), b("div", ko, [
|
|
322
|
+
(d(), b("svg", wo, [
|
|
323
323
|
l("circle", {
|
|
324
324
|
class: z([e.colorMode, "ring-path"]),
|
|
325
325
|
cx: "50",
|
|
@@ -469,7 +469,7 @@ function Co(e) {
|
|
|
469
469
|
return It[e] || It.blue;
|
|
470
470
|
}
|
|
471
471
|
s(Co, "getColorSchemeOklch");
|
|
472
|
-
const pt = class pt extends
|
|
472
|
+
const pt = class pt extends Dt {
|
|
473
473
|
constructor(o) {
|
|
474
474
|
super("SelfController", o);
|
|
475
475
|
D(this, "conversation");
|
|
@@ -569,7 +569,7 @@ const pt = class pt extends Vt {
|
|
|
569
569
|
}), this.clientAudio.resetAudioLevels());
|
|
570
570
|
}
|
|
571
571
|
setupModeWatcher() {
|
|
572
|
-
|
|
572
|
+
ee(this.agentMode, async (o, t) => {
|
|
573
573
|
this.logger.info(`Mode changed from ${t} to ${o}`), this.conversation && (t === "talk" || t === "chat") && await this.endConversation();
|
|
574
574
|
});
|
|
575
575
|
}
|
|
@@ -631,7 +631,7 @@ const pt = class pt extends Vt {
|
|
|
631
631
|
isListening: !0,
|
|
632
632
|
transcript: "Connected! Start speaking...",
|
|
633
633
|
connectionStatus: "connected"
|
|
634
|
-
}), o.onConnect?.(), o.onAudioLevel && (this.unwatchAudio =
|
|
634
|
+
}), o.onConnect?.(), o.onAudioLevel && (this.unwatchAudio = ee(this.audioLevels, o.onAudioLevel, { immediate: !0 }));
|
|
635
635
|
}, "onConnect"),
|
|
636
636
|
onDisconnect: /* @__PURE__ */ s(() => {
|
|
637
637
|
this.logger.info("Voice conversation disconnected"), this.conversation = void 0, this.clientAudio.stopAudioLevelMonitoring(), this.endSession().catch((a) => console.error("Failed to end session:", a)), this.resetState(!1), o.onDisconnect?.();
|
|
@@ -780,7 +780,23 @@ const pt = class pt extends Vt {
|
|
|
780
780
|
};
|
|
781
781
|
s(pt, "SelfController");
|
|
782
782
|
let ct = pt;
|
|
783
|
-
const So = {
|
|
783
|
+
const So = /* @__PURE__ */ j({
|
|
784
|
+
__name: "EffectTransitionList",
|
|
785
|
+
props: {
|
|
786
|
+
disabled: { type: Boolean, default: !1 },
|
|
787
|
+
mode: { default: "block" }
|
|
788
|
+
},
|
|
789
|
+
setup(e) {
|
|
790
|
+
return (r, o) => (d(), _(Pt, {
|
|
791
|
+
name: e.disabled ? "" : "nlist"
|
|
792
|
+
}, {
|
|
793
|
+
default: te(() => [
|
|
794
|
+
Ce(r.$slots, "default")
|
|
795
|
+
]),
|
|
796
|
+
_: 3
|
|
797
|
+
}, 8, ["name"]));
|
|
798
|
+
}
|
|
799
|
+
}), Mo = {
|
|
784
800
|
key: 0,
|
|
785
801
|
class: "absolute inset-0 flex items-center justify-center"
|
|
786
802
|
}, mt = /* @__PURE__ */ j({
|
|
@@ -793,42 +809,42 @@ const So = {
|
|
|
793
809
|
iconAfter: {}
|
|
794
810
|
},
|
|
795
811
|
setup(e) {
|
|
796
|
-
const r =
|
|
812
|
+
const r = V(() => ({
|
|
797
813
|
primary: "bg-primary-600 border-primary-400 hover:border-primary-300 hover:bg-primary-500",
|
|
798
814
|
green: "bg-green-600 border-green-400 hover:border-green-300 hover:bg-green-500",
|
|
799
815
|
red: "bg-red-600 border-red-400 hover:border-red-300 hover:bg-red-500",
|
|
800
816
|
default: "bg-white/10 border-white/20 hover:border-white/40 hover:bg-white/20"
|
|
801
|
-
})[e.theme]), o =
|
|
817
|
+
})[e.theme]), o = V(() => ({
|
|
802
818
|
sm: "px-4 py-2 text-sm",
|
|
803
819
|
md: "px-6 py-3 text-base",
|
|
804
820
|
lg: "px-8 py-4 text-base"
|
|
805
|
-
})[e.size]), t =
|
|
821
|
+
})[e.size]), t = V(() => ({
|
|
806
822
|
sm: "size-4",
|
|
807
823
|
md: "size-4",
|
|
808
824
|
lg: "size-5"
|
|
809
825
|
})[e.size]);
|
|
810
|
-
return (n, a) => (d(),
|
|
826
|
+
return (n, a) => (d(), b("button", {
|
|
811
827
|
class: z(["relative inline-flex items-center justify-center gap-2 font-medium rounded-full backdrop-blur-sm border-2 text-white transition-all duration-200 focus:outline-none active:opacity-80 disabled:opacity-50 disabled:cursor-not-allowed cursor-pointer", [r.value, o.value]])
|
|
812
828
|
}, [
|
|
813
|
-
e.loading ? (d(),
|
|
829
|
+
e.loading ? (d(), b("div", Mo, [...a[0] || (a[0] = [
|
|
814
830
|
l("i", { class: "i-svg-spinners-90-ring-with-bg size-5" }, null, -1)
|
|
815
831
|
])])) : E("", !0),
|
|
816
832
|
l("span", {
|
|
817
833
|
class: z(["flex items-center gap-2 transition-opacity duration-200", e.loading ? "opacity-0" : "opacity-100"])
|
|
818
834
|
}, [
|
|
819
|
-
e.icon ? (d(),
|
|
835
|
+
e.icon ? (d(), b("i", {
|
|
820
836
|
key: 0,
|
|
821
837
|
class: z([e.icon, t.value])
|
|
822
838
|
}, null, 2)) : E("", !0),
|
|
823
|
-
|
|
824
|
-
e.iconAfter ? (d(),
|
|
839
|
+
Ce(n.$slots, "default"),
|
|
840
|
+
e.iconAfter ? (d(), b("i", {
|
|
825
841
|
key: 1,
|
|
826
842
|
class: z([e.iconAfter, t.value])
|
|
827
843
|
}, null, 2)) : E("", !0)
|
|
828
844
|
], 2)
|
|
829
845
|
], 2));
|
|
830
846
|
}
|
|
831
|
-
}),
|
|
847
|
+
}), Ao = ["value"], Io = /* @__PURE__ */ j({
|
|
832
848
|
__name: "SelfInputEmail",
|
|
833
849
|
props: {
|
|
834
850
|
modelValue: { default: "" }
|
|
@@ -836,17 +852,17 @@ const So = {
|
|
|
836
852
|
emits: ["update:modelValue"],
|
|
837
853
|
setup(e, { emit: r }) {
|
|
838
854
|
const o = r;
|
|
839
|
-
return (t, n) => (d(),
|
|
855
|
+
return (t, n) => (d(), b("input", {
|
|
840
856
|
type: "email",
|
|
841
857
|
autocomplete: "email",
|
|
842
858
|
placeholder: "Enter Your Email",
|
|
843
859
|
value: e.modelValue,
|
|
844
|
-
class: "w-full px-6 py-3 text-
|
|
860
|
+
class: "w-full px-6 py-3 text-theme-900 placeholder-theme-500 bg-white border border-white rounded-full focus:outline-none transition-all",
|
|
845
861
|
style: { "font-size": "16px" },
|
|
846
862
|
onInput: n[0] || (n[0] = (a) => o("update:modelValue", a.target.value))
|
|
847
|
-
}, null, 40,
|
|
863
|
+
}, null, 40, Ao));
|
|
848
864
|
}
|
|
849
|
-
}),
|
|
865
|
+
}), zo = { class: "flex gap-1.5 justify-center" }, $o = ["onUpdate:modelValue", "onInput", "onKeydown", "onPaste", "onFocus"], Eo = /* @__PURE__ */ j({
|
|
850
866
|
__name: "SelfInputOneTimeCode",
|
|
851
867
|
props: {
|
|
852
868
|
modelValue: {},
|
|
@@ -858,9 +874,9 @@ const So = {
|
|
|
858
874
|
const o = e, t = r, n = T([]), a = T(Array.from({ length: o.length }).fill("")), i = T(!1);
|
|
859
875
|
Ie(() => {
|
|
860
876
|
o.modelValue && (a.value = o.modelValue.split("").slice(0, o.length)), o.focusFirst && !("ontouchstart" in window) && n.value[0]?.focus();
|
|
861
|
-
}),
|
|
877
|
+
}), ee(() => o.modelValue, (c) => {
|
|
862
878
|
a.value = c ? c.split("").slice(0, o.length) : Array.from({ length: o.length }).fill("");
|
|
863
|
-
}),
|
|
879
|
+
}), ee(a, () => {
|
|
864
880
|
const c = a.value.filter(Boolean).join("");
|
|
865
881
|
t("update:modelValue", c), c.length === o.length && t("autoSubmit", c);
|
|
866
882
|
}, { deep: !0 });
|
|
@@ -873,8 +889,8 @@ const So = {
|
|
|
873
889
|
}, 10);
|
|
874
890
|
else {
|
|
875
891
|
const g = [...a.value];
|
|
876
|
-
y.split("").slice(0, o.length - c).forEach((H,
|
|
877
|
-
g[c +
|
|
892
|
+
y.split("").slice(0, o.length - c).forEach((H, Q) => {
|
|
893
|
+
g[c + Q] = H;
|
|
878
894
|
}), a.value = g;
|
|
879
895
|
const P = Math.min(c + y.length, o.length - 1);
|
|
880
896
|
setTimeout(() => {
|
|
@@ -897,8 +913,8 @@ const So = {
|
|
|
897
913
|
for (let m = c; m < o.length; m++)
|
|
898
914
|
a.value[m] = "";
|
|
899
915
|
}
|
|
900
|
-
return s(u, "onFocus"), (c, m) => (d(),
|
|
901
|
-
(d(!0),
|
|
916
|
+
return s(u, "onFocus"), (c, m) => (d(), b("div", zo, [
|
|
917
|
+
(d(!0), b(Ae, null, rt(e.length, (y) => Vt((d(), b("input", {
|
|
902
918
|
key: y,
|
|
903
919
|
ref_for: !0,
|
|
904
920
|
ref: /* @__PURE__ */ s((g) => n.value[y - 1] = g, "ref"),
|
|
@@ -906,22 +922,28 @@ const So = {
|
|
|
906
922
|
type: "text",
|
|
907
923
|
inputmode: "numeric",
|
|
908
924
|
autocomplete: "one-time-code",
|
|
909
|
-
class: "size-11 text-center font-mono text-
|
|
925
|
+
class: "size-11 text-center font-mono text-theme-900 bg-white border border-white rounded-lg focus:outline-none transition-all",
|
|
910
926
|
style: { "font-size": "16px" },
|
|
911
927
|
maxlength: "1",
|
|
912
928
|
onInput: /* @__PURE__ */ s((g) => h(y - 1, g), "onInput"),
|
|
913
929
|
onKeydown: /* @__PURE__ */ s((g) => C(y - 1, g), "onKeydown"),
|
|
914
930
|
onPaste: /* @__PURE__ */ s((g) => f(y - 1, g), "onPaste"),
|
|
915
931
|
onFocus: /* @__PURE__ */ s((g) => u(y - 1), "onFocus")
|
|
916
|
-
}, null, 40,
|
|
932
|
+
}, null, 40, $o)), [
|
|
917
933
|
[Ft, a.value[y - 1]]
|
|
918
934
|
])), 128))
|
|
919
935
|
]));
|
|
920
936
|
}
|
|
921
|
-
}),
|
|
937
|
+
}), Lo = { class: "flex flex-col items-center justify-center h-full p-6" }, To = { class: "w-full max-w-xs space-y-12" }, Po = {
|
|
922
938
|
key: 0,
|
|
923
939
|
class: "text-xs text-theme-400 text-center"
|
|
924
|
-
},
|
|
940
|
+
}, Vo = { class: "text-base font-light text-white text-center" }, Fo = { class: "space-y-6 relative" }, Do = {
|
|
941
|
+
key: "email-field",
|
|
942
|
+
class: "w-full"
|
|
943
|
+
}, Bo = {
|
|
944
|
+
key: "code-field",
|
|
945
|
+
class: "w-full"
|
|
946
|
+
}, zt = /* @__PURE__ */ j({
|
|
925
947
|
__name: "ElAuthGate",
|
|
926
948
|
props: {
|
|
927
949
|
sdk: {}
|
|
@@ -929,64 +951,74 @@ const So = {
|
|
|
929
951
|
setup(e) {
|
|
930
952
|
const r = T({ email: "", code: "" }), o = T("email"), t = {
|
|
931
953
|
email: {
|
|
932
|
-
title: "
|
|
954
|
+
title: "Enter Your Email",
|
|
933
955
|
button: { label: "Continue", disabled: /* @__PURE__ */ s(() => !r.value.email, "disabled") },
|
|
934
956
|
action: /* @__PURE__ */ s(async () => {
|
|
935
957
|
await e.sdk.requestAuthCode({ email: r.value.email }) && (o.value = "code");
|
|
936
958
|
}, "action")
|
|
937
959
|
},
|
|
938
960
|
code: {
|
|
939
|
-
title: "Enter Code",
|
|
961
|
+
title: "Enter Verification Code",
|
|
940
962
|
button: { label: "Verify", disabled: /* @__PURE__ */ s(() => r.value.code.length !== 6, "disabled") },
|
|
941
963
|
action: /* @__PURE__ */ s(() => e.sdk.loginWithCode({ email: r.value.email, code: r.value.code }), "action")
|
|
942
964
|
}
|
|
943
|
-
}, n =
|
|
944
|
-
return (a, i) => (d(),
|
|
945
|
-
l("div",
|
|
946
|
-
e.sdk.error.value ? (d(),
|
|
947
|
-
l("h3",
|
|
965
|
+
}, n = V(() => t[o.value]);
|
|
966
|
+
return (a, i) => (d(), b("div", Lo, [
|
|
967
|
+
l("div", To, [
|
|
968
|
+
e.sdk.error.value ? (d(), b("p", Po, N(e.sdk.error.value), 1)) : E("", !0),
|
|
969
|
+
l("h3", Vo, N(n.value.title), 1),
|
|
948
970
|
l("div", Fo, [
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
971
|
+
B(So, null, {
|
|
972
|
+
default: te(() => [
|
|
973
|
+
o.value === "email" ? (d(), b("div", Do, [
|
|
974
|
+
B(Io, {
|
|
975
|
+
modelValue: r.value.email,
|
|
976
|
+
"onUpdate:modelValue": i[0] || (i[0] = (f) => r.value.email = f),
|
|
977
|
+
onKeyup: lo(n.value.action, ["enter"])
|
|
978
|
+
}, null, 8, ["modelValue", "onKeyup"])
|
|
979
|
+
])) : (d(), b("div", Bo, [
|
|
980
|
+
B(Eo, {
|
|
981
|
+
modelValue: r.value.code,
|
|
982
|
+
"onUpdate:modelValue": i[1] || (i[1] = (f) => r.value.code = f),
|
|
983
|
+
length: 6,
|
|
984
|
+
"focus-first": !0,
|
|
985
|
+
onAutoSubmit: n.value.action
|
|
986
|
+
}, null, 8, ["modelValue", "onAutoSubmit"])
|
|
987
|
+
])),
|
|
988
|
+
(d(), b("div", {
|
|
989
|
+
key: n.value.button.label,
|
|
990
|
+
class: "space-y-4 w-full"
|
|
991
|
+
}, [
|
|
992
|
+
B(mt, {
|
|
993
|
+
theme: "primary",
|
|
994
|
+
size: "md",
|
|
995
|
+
class: "w-full",
|
|
996
|
+
loading: e.sdk.loading.value,
|
|
997
|
+
disabled: n.value.button.disabled() || e.sdk.loading.value,
|
|
998
|
+
onClick: n.value.action
|
|
999
|
+
}, {
|
|
1000
|
+
default: te(() => [
|
|
1001
|
+
He(N(n.value.button.label), 1)
|
|
1002
|
+
]),
|
|
1003
|
+
_: 1
|
|
1004
|
+
}, 8, ["loading", "disabled", "onClick"]),
|
|
1005
|
+
o.value === "code" ? (d(), b("button", {
|
|
1006
|
+
key: 0,
|
|
1007
|
+
class: "w-full text-xs text-white/50 hover:text-white/70 transition-colors py-2",
|
|
1008
|
+
onClick: i[2] || (i[2] = (f) => o.value = "email")
|
|
1009
|
+
}, " Change Email ")) : E("", !0)
|
|
1010
|
+
]))
|
|
1011
|
+
]),
|
|
1012
|
+
_: 1
|
|
1013
|
+
})
|
|
982
1014
|
])
|
|
983
1015
|
])
|
|
984
1016
|
]));
|
|
985
1017
|
}
|
|
986
|
-
}),
|
|
1018
|
+
}), jo = { class: "relative flex-shrink-0" }, Ro = ["src", "alt"], No = {
|
|
987
1019
|
key: 0,
|
|
988
1020
|
class: "absolute top-1 right-1"
|
|
989
|
-
},
|
|
1021
|
+
}, Go = { class: "min-w-0" }, Oo = /* @__PURE__ */ j({
|
|
990
1022
|
__name: "ElModeHeader",
|
|
991
1023
|
props: {
|
|
992
1024
|
self: {},
|
|
@@ -998,12 +1030,12 @@ const So = {
|
|
|
998
1030
|
function r() {
|
|
999
1031
|
return e.self.avatar?.src ? e.self.avatar.src : qe();
|
|
1000
1032
|
}
|
|
1001
|
-
return s(r, "getAvatarSrc"), (o, t) => (d(),
|
|
1033
|
+
return s(r, "getAvatarSrc"), (o, t) => (d(), b("div", {
|
|
1002
1034
|
class: z(["flex gap-4", [
|
|
1003
1035
|
e.layout === "centered" ? "flex-col items-center text-center" : "flex-row items-center justify-center"
|
|
1004
1036
|
]])
|
|
1005
1037
|
}, [
|
|
1006
|
-
l("div",
|
|
1038
|
+
l("div", jo, [
|
|
1007
1039
|
l("div", {
|
|
1008
1040
|
class: z(["rounded-full overflow-hidden border-white", e.size === "lg" ? "w-20 h-20 sm:w-24 sm:h-24 border-4" : "w-16 sm:size-16 border-2"])
|
|
1009
1041
|
}, [
|
|
@@ -1013,9 +1045,9 @@ const So = {
|
|
|
1013
1045
|
class: "w-full h-full object-cover",
|
|
1014
1046
|
onError: t[0] || (t[0] = //@ts-ignore
|
|
1015
1047
|
(...n) => Y(ot) && Y(ot)(...n))
|
|
1016
|
-
}, null, 40,
|
|
1048
|
+
}, null, 40, Ro)
|
|
1017
1049
|
], 2),
|
|
1018
|
-
e.showOnlineIndicator ? (d(),
|
|
1050
|
+
e.showOnlineIndicator ? (d(), b("div", No, [...t[1] || (t[1] = [
|
|
1019
1051
|
l("div", {
|
|
1020
1052
|
class: "size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
|
|
1021
1053
|
style: { "animation-duration": "3s" }
|
|
@@ -1023,41 +1055,41 @@ const So = {
|
|
|
1023
1055
|
l("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1)
|
|
1024
1056
|
])])) : E("", !0)
|
|
1025
1057
|
]),
|
|
1026
|
-
l("div",
|
|
1058
|
+
l("div", Go, [
|
|
1027
1059
|
l("h1", {
|
|
1028
1060
|
class: z(["font-light text-white mb-1 truncate", [
|
|
1029
1061
|
e.size === "lg" ? "text-3xl mb-2" : "text-xl sm:text-2xl tracking-wide leading-tight",
|
|
1030
1062
|
e.layout === "horizontal" ? "text-white/95" : ""
|
|
1031
1063
|
]])
|
|
1032
|
-
},
|
|
1064
|
+
}, N(e.self.name), 3),
|
|
1033
1065
|
l("p", {
|
|
1034
1066
|
class: z(["font-light line-clamp-1", [
|
|
1035
1067
|
e.size === "lg" ? "text-base text-white/60" : "text-sm sm:text-base",
|
|
1036
1068
|
e.layout === "horizontal" ? "text-white/70 truncate" : "text-white/60"
|
|
1037
1069
|
]])
|
|
1038
|
-
},
|
|
1070
|
+
}, N(e.layout === "horizontal" ? e.self.title || "Digital Self" : e.self.title), 3)
|
|
1039
1071
|
])
|
|
1040
1072
|
], 2));
|
|
1041
1073
|
}
|
|
1042
|
-
}), bt = "-",
|
|
1043
|
-
const r =
|
|
1074
|
+
}), bt = "-", Uo = /* @__PURE__ */ s((e) => {
|
|
1075
|
+
const r = qo(e), {
|
|
1044
1076
|
conflictingClassGroups: o,
|
|
1045
1077
|
conflictingClassGroupModifiers: t
|
|
1046
1078
|
} = e;
|
|
1047
1079
|
return {
|
|
1048
1080
|
getClassGroupId: /* @__PURE__ */ s((i) => {
|
|
1049
1081
|
const f = i.split(bt);
|
|
1050
|
-
return f[0] === "" && f.length !== 1 && f.shift(),
|
|
1082
|
+
return f[0] === "" && f.length !== 1 && f.shift(), jt(f, r) || Ho(i);
|
|
1051
1083
|
}, "getClassGroupId"),
|
|
1052
1084
|
getConflictingClassGroupIds: /* @__PURE__ */ s((i, f) => {
|
|
1053
1085
|
const h = o[i] || [];
|
|
1054
1086
|
return f && t[i] ? [...h, ...t[i]] : h;
|
|
1055
1087
|
}, "getConflictingClassGroupIds")
|
|
1056
1088
|
};
|
|
1057
|
-
}, "createClassGroupUtils"),
|
|
1089
|
+
}, "createClassGroupUtils"), jt = /* @__PURE__ */ s((e, r) => {
|
|
1058
1090
|
if (e.length === 0)
|
|
1059
1091
|
return r.classGroupId;
|
|
1060
|
-
const o = e[0], t = r.nextPart.get(o), n = t ?
|
|
1092
|
+
const o = e[0], t = r.nextPart.get(o), n = t ? jt(e.slice(1), t) : void 0;
|
|
1061
1093
|
if (n)
|
|
1062
1094
|
return n;
|
|
1063
1095
|
if (r.validators.length === 0)
|
|
@@ -1066,13 +1098,13 @@ const So = {
|
|
|
1066
1098
|
return r.validators.find(({
|
|
1067
1099
|
validator: i
|
|
1068
1100
|
}) => i(a))?.classGroupId;
|
|
1069
|
-
}, "getGroupRecursive"), $t = /^\[(.+)\]$/,
|
|
1101
|
+
}, "getGroupRecursive"), $t = /^\[(.+)\]$/, Ho = /* @__PURE__ */ s((e) => {
|
|
1070
1102
|
if ($t.test(e)) {
|
|
1071
1103
|
const r = $t.exec(e)[1], o = r?.substring(0, r.indexOf(":"));
|
|
1072
1104
|
if (o)
|
|
1073
1105
|
return "arbitrary.." + o;
|
|
1074
1106
|
}
|
|
1075
|
-
}, "getGroupIdForArbitraryProperty"),
|
|
1107
|
+
}, "getGroupIdForArbitraryProperty"), qo = /* @__PURE__ */ s((e) => {
|
|
1076
1108
|
const {
|
|
1077
1109
|
theme: r,
|
|
1078
1110
|
classGroups: o
|
|
@@ -1091,7 +1123,7 @@ const So = {
|
|
|
1091
1123
|
return;
|
|
1092
1124
|
}
|
|
1093
1125
|
if (typeof n == "function") {
|
|
1094
|
-
if (
|
|
1126
|
+
if (Wo(n)) {
|
|
1095
1127
|
dt(n(t), r, o, t);
|
|
1096
1128
|
return;
|
|
1097
1129
|
}
|
|
@@ -1113,7 +1145,7 @@ const So = {
|
|
|
1113
1145
|
validators: []
|
|
1114
1146
|
}), o = o.nextPart.get(t);
|
|
1115
1147
|
}), o;
|
|
1116
|
-
}, "getPart"),
|
|
1148
|
+
}, "getPart"), Wo = /* @__PURE__ */ s((e) => e.isThemeGetter, "isThemeGetter"), Ko = /* @__PURE__ */ s((e) => {
|
|
1117
1149
|
if (e < 1)
|
|
1118
1150
|
return {
|
|
1119
1151
|
get: /* @__PURE__ */ s(() => {
|
|
@@ -1137,7 +1169,7 @@ const So = {
|
|
|
1137
1169
|
o.has(a) ? o.set(a, i) : n(a, i);
|
|
1138
1170
|
}
|
|
1139
1171
|
};
|
|
1140
|
-
}, "createLruCache"), ut = "!", ht = ":",
|
|
1172
|
+
}, "createLruCache"), ut = "!", ht = ":", Zo = ht.length, Yo = /* @__PURE__ */ s((e) => {
|
|
1141
1173
|
const {
|
|
1142
1174
|
prefix: r,
|
|
1143
1175
|
experimentalParseClassName: o
|
|
@@ -1149,7 +1181,7 @@ const So = {
|
|
|
1149
1181
|
let P = n[g];
|
|
1150
1182
|
if (i === 0 && f === 0) {
|
|
1151
1183
|
if (P === ht) {
|
|
1152
|
-
a.push(n.slice(h, g)), h = g +
|
|
1184
|
+
a.push(n.slice(h, g)), h = g + Zo;
|
|
1153
1185
|
continue;
|
|
1154
1186
|
}
|
|
1155
1187
|
if (P === "/") {
|
|
@@ -1159,7 +1191,7 @@ const So = {
|
|
|
1159
1191
|
}
|
|
1160
1192
|
P === "[" ? i++ : P === "]" ? i-- : P === "(" ? f++ : P === ")" && f--;
|
|
1161
1193
|
}
|
|
1162
|
-
const u = a.length === 0 ? n : n.substring(h), c =
|
|
1194
|
+
const u = a.length === 0 ? n : n.substring(h), c = Jo(u), m = c !== u, y = C && C > h ? C - h : void 0;
|
|
1163
1195
|
return {
|
|
1164
1196
|
modifiers: a,
|
|
1165
1197
|
hasImportantModifier: m,
|
|
@@ -1185,7 +1217,7 @@ const So = {
|
|
|
1185
1217
|
}), "parseClassName");
|
|
1186
1218
|
}
|
|
1187
1219
|
return t;
|
|
1188
|
-
}, "createParseClassName"),
|
|
1220
|
+
}, "createParseClassName"), Jo = /* @__PURE__ */ s((e) => e.endsWith(ut) ? e.substring(0, e.length - 1) : e.startsWith(ut) ? e.substring(1) : e, "stripImportantModifier"), Qo = /* @__PURE__ */ s((e) => {
|
|
1189
1221
|
const r = Object.fromEntries(e.orderSensitiveModifiers.map((t) => [t, !0]));
|
|
1190
1222
|
return /* @__PURE__ */ s((t) => {
|
|
1191
1223
|
if (t.length <= 1)
|
|
@@ -1196,18 +1228,18 @@ const So = {
|
|
|
1196
1228
|
i[0] === "[" || r[i] ? (n.push(...a.sort(), i), a = []) : a.push(i);
|
|
1197
1229
|
}), n.push(...a.sort()), n;
|
|
1198
1230
|
}, "sortModifiers");
|
|
1199
|
-
}, "createSortModifiers"),
|
|
1200
|
-
cache:
|
|
1201
|
-
parseClassName:
|
|
1202
|
-
sortModifiers:
|
|
1203
|
-
...
|
|
1204
|
-
}), "createConfigUtils"),
|
|
1231
|
+
}, "createSortModifiers"), Xo = /* @__PURE__ */ s((e) => ({
|
|
1232
|
+
cache: Ko(e.cacheSize),
|
|
1233
|
+
parseClassName: Yo(e),
|
|
1234
|
+
sortModifiers: Qo(e),
|
|
1235
|
+
...Uo(e)
|
|
1236
|
+
}), "createConfigUtils"), _o = /\s+/, er = /* @__PURE__ */ s((e, r) => {
|
|
1205
1237
|
const {
|
|
1206
1238
|
parseClassName: o,
|
|
1207
1239
|
getClassGroupId: t,
|
|
1208
1240
|
getConflictingClassGroupIds: n,
|
|
1209
1241
|
sortModifiers: a
|
|
1210
|
-
} = r, i = [], f = e.trim().split(
|
|
1242
|
+
} = r, i = [], f = e.trim().split(_o);
|
|
1211
1243
|
let h = "";
|
|
1212
1244
|
for (let C = f.length - 1; C >= 0; C -= 1) {
|
|
1213
1245
|
const u = f[C], {
|
|
@@ -1221,81 +1253,81 @@ const So = {
|
|
|
1221
1253
|
h = u + (h.length > 0 ? " " + h : h);
|
|
1222
1254
|
continue;
|
|
1223
1255
|
}
|
|
1224
|
-
let H = !!P,
|
|
1225
|
-
if (!
|
|
1256
|
+
let H = !!P, Q = t(H ? g.substring(0, P) : g);
|
|
1257
|
+
if (!Q) {
|
|
1226
1258
|
if (!H) {
|
|
1227
1259
|
h = u + (h.length > 0 ? " " + h : h);
|
|
1228
1260
|
continue;
|
|
1229
1261
|
}
|
|
1230
|
-
if (
|
|
1262
|
+
if (Q = t(g), !Q) {
|
|
1231
1263
|
h = u + (h.length > 0 ? " " + h : h);
|
|
1232
1264
|
continue;
|
|
1233
1265
|
}
|
|
1234
1266
|
H = !1;
|
|
1235
1267
|
}
|
|
1236
|
-
const ze = a(m).join(":"),
|
|
1268
|
+
const ze = a(m).join(":"), Se = y ? ze + ut : ze, ue = Se + Q;
|
|
1237
1269
|
if (i.includes(ue))
|
|
1238
1270
|
continue;
|
|
1239
1271
|
i.push(ue);
|
|
1240
|
-
const pe = n(
|
|
1272
|
+
const pe = n(Q, H);
|
|
1241
1273
|
for (let he = 0; he < pe.length; ++he) {
|
|
1242
|
-
const
|
|
1243
|
-
i.push(
|
|
1274
|
+
const se = pe[he];
|
|
1275
|
+
i.push(Se + se);
|
|
1244
1276
|
}
|
|
1245
1277
|
h = u + (h.length > 0 ? " " + h : h);
|
|
1246
1278
|
}
|
|
1247
1279
|
return h;
|
|
1248
1280
|
}, "mergeClassList");
|
|
1249
|
-
function
|
|
1281
|
+
function tr() {
|
|
1250
1282
|
let e = 0, r, o, t = "";
|
|
1251
1283
|
for (; e < arguments.length; )
|
|
1252
|
-
(r = arguments[e++]) && (o =
|
|
1284
|
+
(r = arguments[e++]) && (o = Rt(r)) && (t && (t += " "), t += o);
|
|
1253
1285
|
return t;
|
|
1254
1286
|
}
|
|
1255
|
-
s(
|
|
1256
|
-
const
|
|
1287
|
+
s(tr, "twJoin");
|
|
1288
|
+
const Rt = /* @__PURE__ */ s((e) => {
|
|
1257
1289
|
if (typeof e == "string")
|
|
1258
1290
|
return e;
|
|
1259
1291
|
let r, o = "";
|
|
1260
1292
|
for (let t = 0; t < e.length; t++)
|
|
1261
|
-
e[t] && (r =
|
|
1293
|
+
e[t] && (r = Rt(e[t])) && (o && (o += " "), o += r);
|
|
1262
1294
|
return o;
|
|
1263
1295
|
}, "toValue");
|
|
1264
|
-
function
|
|
1296
|
+
function or(e, ...r) {
|
|
1265
1297
|
let o, t, n, a = i;
|
|
1266
1298
|
function i(h) {
|
|
1267
1299
|
const C = r.reduce((u, c) => c(u), e());
|
|
1268
|
-
return o =
|
|
1300
|
+
return o = Xo(C), t = o.cache.get, n = o.cache.set, a = f, f(h);
|
|
1269
1301
|
}
|
|
1270
1302
|
s(i, "initTailwindMerge");
|
|
1271
1303
|
function f(h) {
|
|
1272
1304
|
const C = t(h);
|
|
1273
1305
|
if (C)
|
|
1274
1306
|
return C;
|
|
1275
|
-
const u =
|
|
1307
|
+
const u = er(h, o);
|
|
1276
1308
|
return n(h, u), u;
|
|
1277
1309
|
}
|
|
1278
1310
|
return s(f, "tailwindMerge"), /* @__PURE__ */ s(function() {
|
|
1279
|
-
return a(
|
|
1311
|
+
return a(tr.apply(null, arguments));
|
|
1280
1312
|
}, "callTailwindMerge");
|
|
1281
1313
|
}
|
|
1282
|
-
s(
|
|
1314
|
+
s(or, "createTailwindMerge");
|
|
1283
1315
|
const Z = /* @__PURE__ */ s((e) => {
|
|
1284
1316
|
const r = /* @__PURE__ */ s((o) => o[e] || [], "themeGetter");
|
|
1285
1317
|
return r.isThemeGetter = !0, r;
|
|
1286
|
-
}, "fromTheme"),
|
|
1318
|
+
}, "fromTheme"), Nt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Gt = /^\((?:(\w[\w-]*):)?(.+)\)$/i, rr = /^\d+\/\d+$/, sr = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, nr = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ar = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, ir = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, lr = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Fe = /* @__PURE__ */ s((e) => rr.test(e), "isFraction"), I = /* @__PURE__ */ s((e) => !!e && !Number.isNaN(Number(e)), "isNumber"), we = /* @__PURE__ */ s((e) => !!e && Number.isInteger(Number(e)), "isInteger"), at = /* @__PURE__ */ s((e) => e.endsWith("%") && I(e.slice(0, -1)), "isPercent"), ve = /* @__PURE__ */ s((e) => sr.test(e), "isTshirtSize"), cr = /* @__PURE__ */ s(() => !0, "isAny"), dr = /* @__PURE__ */ s((e) => (
|
|
1287
1319
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1288
1320
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1289
1321
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1290
|
-
|
|
1291
|
-
), "isLengthOnly"),
|
|
1292
|
-
const t =
|
|
1322
|
+
nr.test(e) && !ar.test(e)
|
|
1323
|
+
), "isLengthOnly"), Ot = /* @__PURE__ */ s(() => !1, "isNever"), ur = /* @__PURE__ */ s((e) => ir.test(e), "isShadow"), hr = /* @__PURE__ */ s((e) => lr.test(e), "isImage"), fr = /* @__PURE__ */ s((e) => !p(e) && !x(e), "isAnyNonArbitrary"), gr = /* @__PURE__ */ s((e) => De(e, qt, Ot), "isArbitrarySize"), p = /* @__PURE__ */ s((e) => Nt.test(e), "isArbitraryValue"), Me = /* @__PURE__ */ s((e) => De(e, Wt, dr), "isArbitraryLength"), it = /* @__PURE__ */ s((e) => De(e, xr, I), "isArbitraryNumber"), Lt = /* @__PURE__ */ s((e) => De(e, Ut, Ot), "isArbitraryPosition"), mr = /* @__PURE__ */ s((e) => De(e, Ht, hr), "isArbitraryImage"), Ye = /* @__PURE__ */ s((e) => De(e, Kt, ur), "isArbitraryShadow"), x = /* @__PURE__ */ s((e) => Gt.test(e), "isArbitraryVariable"), Ue = /* @__PURE__ */ s((e) => Be(e, Wt), "isArbitraryVariableLength"), br = /* @__PURE__ */ s((e) => Be(e, yr), "isArbitraryVariableFamilyName"), Tt = /* @__PURE__ */ s((e) => Be(e, Ut), "isArbitraryVariablePosition"), vr = /* @__PURE__ */ s((e) => Be(e, qt), "isArbitraryVariableSize"), pr = /* @__PURE__ */ s((e) => Be(e, Ht), "isArbitraryVariableImage"), Je = /* @__PURE__ */ s((e) => Be(e, Kt, !0), "isArbitraryVariableShadow"), De = /* @__PURE__ */ s((e, r, o) => {
|
|
1324
|
+
const t = Nt.exec(e);
|
|
1293
1325
|
return t ? t[1] ? r(t[1]) : o(t[2]) : !1;
|
|
1294
1326
|
}, "getIsArbitraryValue"), Be = /* @__PURE__ */ s((e, r, o = !1) => {
|
|
1295
|
-
const t =
|
|
1327
|
+
const t = Gt.exec(e);
|
|
1296
1328
|
return t ? t[1] ? r(t[1]) : o : !1;
|
|
1297
|
-
}, "getIsArbitraryVariable"),
|
|
1298
|
-
const e = Z("color"), r = Z("font"), o = Z("text"), t = Z("font-weight"), n = Z("tracking"), a = Z("leading"), i = Z("breakpoint"), f = Z("container"), h = Z("spacing"), C = Z("radius"), u = Z("shadow"), c = Z("inset-shadow"), m = Z("text-shadow"), y = Z("drop-shadow"), g = Z("blur"), P = Z("perspective"), H = Z("aspect"),
|
|
1329
|
+
}, "getIsArbitraryVariable"), Ut = /* @__PURE__ */ s((e) => e === "position" || e === "percentage", "isLabelPosition"), Ht = /* @__PURE__ */ s((e) => e === "image" || e === "url", "isLabelImage"), qt = /* @__PURE__ */ s((e) => e === "length" || e === "size" || e === "bg-size", "isLabelSize"), Wt = /* @__PURE__ */ s((e) => e === "length", "isLabelLength"), xr = /* @__PURE__ */ s((e) => e === "number", "isLabelNumber"), yr = /* @__PURE__ */ s((e) => e === "family-name", "isLabelFamilyName"), Kt = /* @__PURE__ */ s((e) => e === "shadow", "isLabelShadow"), kr = /* @__PURE__ */ s(() => {
|
|
1330
|
+
const e = Z("color"), r = Z("font"), o = Z("text"), t = Z("font-weight"), n = Z("tracking"), a = Z("leading"), i = Z("breakpoint"), f = Z("container"), h = Z("spacing"), C = Z("radius"), u = Z("shadow"), c = Z("inset-shadow"), m = Z("text-shadow"), y = Z("drop-shadow"), g = Z("blur"), P = Z("perspective"), H = Z("aspect"), Q = Z("ease"), ze = Z("animate"), Se = /* @__PURE__ */ s(() => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], "scaleBreak"), ue = /* @__PURE__ */ s(() => [
|
|
1299
1331
|
"center",
|
|
1300
1332
|
"top",
|
|
1301
1333
|
"bottom",
|
|
@@ -1313,15 +1345,15 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
1313
1345
|
"bottom-left",
|
|
1314
1346
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1315
1347
|
"left-bottom"
|
|
1316
|
-
], "scalePosition"), pe = /* @__PURE__ */ s(() => [...ue(), x, p], "scalePositionWithArbitrary"), he = /* @__PURE__ */ s(() => ["auto", "hidden", "clip", "visible", "scroll"], "scaleOverflow"),
|
|
1348
|
+
], "scalePosition"), pe = /* @__PURE__ */ s(() => [...ue(), x, p], "scalePositionWithArbitrary"), he = /* @__PURE__ */ s(() => ["auto", "hidden", "clip", "visible", "scroll"], "scaleOverflow"), se = /* @__PURE__ */ s(() => ["auto", "contain", "none"], "scaleOverscroll"), S = /* @__PURE__ */ s(() => [x, p, h], "scaleUnambiguousSpacing"), ne = /* @__PURE__ */ s(() => [Fe, "full", "auto", ...S()], "scaleInset"), ce = /* @__PURE__ */ s(() => [we, "none", "subgrid", x, p], "scaleGridTemplateColsRows"), fe = /* @__PURE__ */ s(() => ["auto", {
|
|
1317
1349
|
span: ["full", we, x, p]
|
|
1318
|
-
}, we, x, p], "scaleGridColRowStartAndEnd"), ge = /* @__PURE__ */ s(() => [we, "auto", x, p], "scaleGridColRowStartOrEnd"), We = /* @__PURE__ */ s(() => ["auto", "min", "max", "fr", x, p], "scaleGridAutoColsRows"), $e = /* @__PURE__ */ s(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), me = /* @__PURE__ */ s(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), q = /* @__PURE__ */ s(() => ["auto", ...S()], "scaleMargin"), ie = /* @__PURE__ */ s(() => [
|
|
1350
|
+
}, we, x, p], "scaleGridColRowStartAndEnd"), ge = /* @__PURE__ */ s(() => [we, "auto", x, p], "scaleGridColRowStartOrEnd"), We = /* @__PURE__ */ s(() => ["auto", "min", "max", "fr", x, p], "scaleGridAutoColsRows"), $e = /* @__PURE__ */ s(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), me = /* @__PURE__ */ s(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), q = /* @__PURE__ */ s(() => ["auto", ...S()], "scaleMargin"), ie = /* @__PURE__ */ s(() => [Fe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...S()], "scaleSizing"), w = /* @__PURE__ */ s(() => [e, x, p], "scaleColor"), Ke = /* @__PURE__ */ s(() => [...ue(), Tt, Lt, {
|
|
1319
1351
|
position: [x, p]
|
|
1320
1352
|
}], "scaleBgPosition"), je = /* @__PURE__ */ s(() => ["no-repeat", {
|
|
1321
1353
|
repeat: ["", "x", "y", "space", "round"]
|
|
1322
|
-
}], "scaleBgRepeat"), xe = /* @__PURE__ */ s(() => ["auto", "cover", "contain",
|
|
1354
|
+
}], "scaleBgRepeat"), xe = /* @__PURE__ */ s(() => ["auto", "cover", "contain", vr, gr, {
|
|
1323
1355
|
size: [x, p]
|
|
1324
|
-
}], "scaleBgSize"), ye = /* @__PURE__ */ s(() => [at, Ue,
|
|
1356
|
+
}], "scaleBgSize"), ye = /* @__PURE__ */ s(() => [at, Ue, Me], "scaleGradientStopPosition"), G = /* @__PURE__ */ s(() => [
|
|
1325
1357
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1326
1358
|
"",
|
|
1327
1359
|
"none",
|
|
@@ -1329,14 +1361,14 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
1329
1361
|
C,
|
|
1330
1362
|
x,
|
|
1331
1363
|
p
|
|
1332
|
-
], "scaleRadius"), W = /* @__PURE__ */ s(() => ["", I, Ue,
|
|
1364
|
+
], "scaleRadius"), W = /* @__PURE__ */ s(() => ["", I, Ue, Me], "scaleBorderWidth"), Ee = /* @__PURE__ */ s(() => ["solid", "dashed", "dotted", "double"], "scaleLineStyle"), Le = /* @__PURE__ */ s(() => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], "scaleBlendMode"), R = /* @__PURE__ */ s(() => [I, at, Tt, Lt], "scaleMaskImagePosition"), Re = /* @__PURE__ */ s(() => [
|
|
1333
1365
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1334
1366
|
"",
|
|
1335
1367
|
"none",
|
|
1336
1368
|
g,
|
|
1337
1369
|
x,
|
|
1338
1370
|
p
|
|
1339
|
-
], "scaleBlur"), ke = /* @__PURE__ */ s(() => ["none", I, x, p], "scaleRotate"), Te = /* @__PURE__ */ s(() => ["none", I, x, p], "scaleScale"), Ne = /* @__PURE__ */ s(() => [I, x, p], "scaleSkew"), Pe = /* @__PURE__ */ s(() => [
|
|
1371
|
+
], "scaleBlur"), ke = /* @__PURE__ */ s(() => ["none", I, x, p], "scaleRotate"), Te = /* @__PURE__ */ s(() => ["none", I, x, p], "scaleScale"), Ne = /* @__PURE__ */ s(() => [I, x, p], "scaleSkew"), Pe = /* @__PURE__ */ s(() => [Fe, "full", ...S()], "scaleTranslate");
|
|
1340
1372
|
return {
|
|
1341
1373
|
cacheSize: 500,
|
|
1342
1374
|
theme: {
|
|
@@ -1344,11 +1376,11 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
1344
1376
|
aspect: ["video"],
|
|
1345
1377
|
blur: [ve],
|
|
1346
1378
|
breakpoint: [ve],
|
|
1347
|
-
color: [
|
|
1379
|
+
color: [cr],
|
|
1348
1380
|
container: [ve],
|
|
1349
1381
|
"drop-shadow": [ve],
|
|
1350
1382
|
ease: ["in", "out", "in-out"],
|
|
1351
|
-
font: [
|
|
1383
|
+
font: [fr],
|
|
1352
1384
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
1353
1385
|
"inset-shadow": [ve],
|
|
1354
1386
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -1369,7 +1401,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
1369
1401
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1370
1402
|
*/
|
|
1371
1403
|
aspect: [{
|
|
1372
|
-
aspect: ["auto", "square",
|
|
1404
|
+
aspect: ["auto", "square", Fe, p, x, H]
|
|
1373
1405
|
}],
|
|
1374
1406
|
/**
|
|
1375
1407
|
* Container
|
|
@@ -1389,14 +1421,14 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
1389
1421
|
* @see https://tailwindcss.com/docs/break-after
|
|
1390
1422
|
*/
|
|
1391
1423
|
"break-after": [{
|
|
1392
|
-
"break-after":
|
|
1424
|
+
"break-after": Se()
|
|
1393
1425
|
}],
|
|
1394
1426
|
/**
|
|
1395
1427
|
* Break Before
|
|
1396
1428
|
* @see https://tailwindcss.com/docs/break-before
|
|
1397
1429
|
*/
|
|
1398
1430
|
"break-before": [{
|
|
1399
|
-
"break-before":
|
|
1431
|
+
"break-before": Se()
|
|
1400
1432
|
}],
|
|
1401
1433
|
/**
|
|
1402
1434
|
* Break Inside
|
|
@@ -1488,21 +1520,21 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
1488
1520
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1489
1521
|
*/
|
|
1490
1522
|
overscroll: [{
|
|
1491
|
-
overscroll:
|
|
1523
|
+
overscroll: se()
|
|
1492
1524
|
}],
|
|
1493
1525
|
/**
|
|
1494
1526
|
* Overscroll Behavior X
|
|
1495
1527
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1496
1528
|
*/
|
|
1497
1529
|
"overscroll-x": [{
|
|
1498
|
-
"overscroll-x":
|
|
1530
|
+
"overscroll-x": se()
|
|
1499
1531
|
}],
|
|
1500
1532
|
/**
|
|
1501
1533
|
* Overscroll Behavior Y
|
|
1502
1534
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
1503
1535
|
*/
|
|
1504
1536
|
"overscroll-y": [{
|
|
1505
|
-
"overscroll-y":
|
|
1537
|
+
"overscroll-y": se()
|
|
1506
1538
|
}],
|
|
1507
1539
|
/**
|
|
1508
1540
|
* Position
|
|
@@ -1592,7 +1624,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
1592
1624
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1593
1625
|
*/
|
|
1594
1626
|
basis: [{
|
|
1595
|
-
basis: [
|
|
1627
|
+
basis: [Fe, "full", "auto", f, ...S()]
|
|
1596
1628
|
}],
|
|
1597
1629
|
/**
|
|
1598
1630
|
* Flex Direction
|
|
@@ -1613,7 +1645,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
1613
1645
|
* @see https://tailwindcss.com/docs/flex
|
|
1614
1646
|
*/
|
|
1615
1647
|
flex: [{
|
|
1616
|
-
flex: [I,
|
|
1648
|
+
flex: [I, Fe, "auto", "initial", "none", p]
|
|
1617
1649
|
}],
|
|
1618
1650
|
/**
|
|
1619
1651
|
* Flex Grow
|
|
@@ -2029,7 +2061,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2029
2061
|
* @see https://tailwindcss.com/docs/font-size
|
|
2030
2062
|
*/
|
|
2031
2063
|
"font-size": [{
|
|
2032
|
-
text: ["base", o, Ue,
|
|
2064
|
+
text: ["base", o, Ue, Me]
|
|
2033
2065
|
}],
|
|
2034
2066
|
/**
|
|
2035
2067
|
* Font Smoothing
|
|
@@ -2060,7 +2092,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2060
2092
|
* @see https://tailwindcss.com/docs/font-family
|
|
2061
2093
|
*/
|
|
2062
2094
|
"font-family": [{
|
|
2063
|
-
font: [
|
|
2095
|
+
font: [br, p, r]
|
|
2064
2096
|
}],
|
|
2065
2097
|
/**
|
|
2066
2098
|
* Font Variant Numeric
|
|
@@ -2177,7 +2209,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2177
2209
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2178
2210
|
*/
|
|
2179
2211
|
"text-decoration-thickness": [{
|
|
2180
|
-
decoration: [I, "from-font", "auto", x,
|
|
2212
|
+
decoration: [I, "from-font", "auto", x, Me]
|
|
2181
2213
|
}],
|
|
2182
2214
|
/**
|
|
2183
2215
|
* Text Decoration Color
|
|
@@ -2315,7 +2347,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2315
2347
|
}, we, x, p],
|
|
2316
2348
|
radial: ["", x, p],
|
|
2317
2349
|
conic: [we, x, p]
|
|
2318
|
-
},
|
|
2350
|
+
}, pr, mr]
|
|
2319
2351
|
}],
|
|
2320
2352
|
/**
|
|
2321
2353
|
* Background Color
|
|
@@ -2374,105 +2406,105 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2374
2406
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2375
2407
|
*/
|
|
2376
2408
|
rounded: [{
|
|
2377
|
-
rounded:
|
|
2409
|
+
rounded: G()
|
|
2378
2410
|
}],
|
|
2379
2411
|
/**
|
|
2380
2412
|
* Border Radius Start
|
|
2381
2413
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2382
2414
|
*/
|
|
2383
2415
|
"rounded-s": [{
|
|
2384
|
-
"rounded-s":
|
|
2416
|
+
"rounded-s": G()
|
|
2385
2417
|
}],
|
|
2386
2418
|
/**
|
|
2387
2419
|
* Border Radius End
|
|
2388
2420
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2389
2421
|
*/
|
|
2390
2422
|
"rounded-e": [{
|
|
2391
|
-
"rounded-e":
|
|
2423
|
+
"rounded-e": G()
|
|
2392
2424
|
}],
|
|
2393
2425
|
/**
|
|
2394
2426
|
* Border Radius Top
|
|
2395
2427
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2396
2428
|
*/
|
|
2397
2429
|
"rounded-t": [{
|
|
2398
|
-
"rounded-t":
|
|
2430
|
+
"rounded-t": G()
|
|
2399
2431
|
}],
|
|
2400
2432
|
/**
|
|
2401
2433
|
* Border Radius Right
|
|
2402
2434
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2403
2435
|
*/
|
|
2404
2436
|
"rounded-r": [{
|
|
2405
|
-
"rounded-r":
|
|
2437
|
+
"rounded-r": G()
|
|
2406
2438
|
}],
|
|
2407
2439
|
/**
|
|
2408
2440
|
* Border Radius Bottom
|
|
2409
2441
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2410
2442
|
*/
|
|
2411
2443
|
"rounded-b": [{
|
|
2412
|
-
"rounded-b":
|
|
2444
|
+
"rounded-b": G()
|
|
2413
2445
|
}],
|
|
2414
2446
|
/**
|
|
2415
2447
|
* Border Radius Left
|
|
2416
2448
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2417
2449
|
*/
|
|
2418
2450
|
"rounded-l": [{
|
|
2419
|
-
"rounded-l":
|
|
2451
|
+
"rounded-l": G()
|
|
2420
2452
|
}],
|
|
2421
2453
|
/**
|
|
2422
2454
|
* Border Radius Start Start
|
|
2423
2455
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2424
2456
|
*/
|
|
2425
2457
|
"rounded-ss": [{
|
|
2426
|
-
"rounded-ss":
|
|
2458
|
+
"rounded-ss": G()
|
|
2427
2459
|
}],
|
|
2428
2460
|
/**
|
|
2429
2461
|
* Border Radius Start End
|
|
2430
2462
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2431
2463
|
*/
|
|
2432
2464
|
"rounded-se": [{
|
|
2433
|
-
"rounded-se":
|
|
2465
|
+
"rounded-se": G()
|
|
2434
2466
|
}],
|
|
2435
2467
|
/**
|
|
2436
2468
|
* Border Radius End End
|
|
2437
2469
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2438
2470
|
*/
|
|
2439
2471
|
"rounded-ee": [{
|
|
2440
|
-
"rounded-ee":
|
|
2472
|
+
"rounded-ee": G()
|
|
2441
2473
|
}],
|
|
2442
2474
|
/**
|
|
2443
2475
|
* Border Radius End Start
|
|
2444
2476
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2445
2477
|
*/
|
|
2446
2478
|
"rounded-es": [{
|
|
2447
|
-
"rounded-es":
|
|
2479
|
+
"rounded-es": G()
|
|
2448
2480
|
}],
|
|
2449
2481
|
/**
|
|
2450
2482
|
* Border Radius Top Left
|
|
2451
2483
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2452
2484
|
*/
|
|
2453
2485
|
"rounded-tl": [{
|
|
2454
|
-
"rounded-tl":
|
|
2486
|
+
"rounded-tl": G()
|
|
2455
2487
|
}],
|
|
2456
2488
|
/**
|
|
2457
2489
|
* Border Radius Top Right
|
|
2458
2490
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2459
2491
|
*/
|
|
2460
2492
|
"rounded-tr": [{
|
|
2461
|
-
"rounded-tr":
|
|
2493
|
+
"rounded-tr": G()
|
|
2462
2494
|
}],
|
|
2463
2495
|
/**
|
|
2464
2496
|
* Border Radius Bottom Right
|
|
2465
2497
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2466
2498
|
*/
|
|
2467
2499
|
"rounded-br": [{
|
|
2468
|
-
"rounded-br":
|
|
2500
|
+
"rounded-br": G()
|
|
2469
2501
|
}],
|
|
2470
2502
|
/**
|
|
2471
2503
|
* Border Radius Bottom Left
|
|
2472
2504
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2473
2505
|
*/
|
|
2474
2506
|
"rounded-bl": [{
|
|
2475
|
-
"rounded-bl":
|
|
2507
|
+
"rounded-bl": G()
|
|
2476
2508
|
}],
|
|
2477
2509
|
/**
|
|
2478
2510
|
* Border Width
|
|
@@ -2664,7 +2696,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2664
2696
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2665
2697
|
*/
|
|
2666
2698
|
"outline-w": [{
|
|
2667
|
-
outline: ["", I, Ue,
|
|
2699
|
+
outline: ["", I, Ue, Me]
|
|
2668
2700
|
}],
|
|
2669
2701
|
/**
|
|
2670
2702
|
* Outline Color
|
|
@@ -2739,7 +2771,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2739
2771
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2740
2772
|
*/
|
|
2741
2773
|
"ring-offset-w": [{
|
|
2742
|
-
"ring-offset": [I,
|
|
2774
|
+
"ring-offset": [I, Me]
|
|
2743
2775
|
}],
|
|
2744
2776
|
/**
|
|
2745
2777
|
* Ring Offset Color
|
|
@@ -2821,10 +2853,10 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2821
2853
|
"mask-linear": [I]
|
|
2822
2854
|
}],
|
|
2823
2855
|
"mask-image-linear-from-pos": [{
|
|
2824
|
-
"mask-linear-from":
|
|
2856
|
+
"mask-linear-from": R()
|
|
2825
2857
|
}],
|
|
2826
2858
|
"mask-image-linear-to-pos": [{
|
|
2827
|
-
"mask-linear-to":
|
|
2859
|
+
"mask-linear-to": R()
|
|
2828
2860
|
}],
|
|
2829
2861
|
"mask-image-linear-from-color": [{
|
|
2830
2862
|
"mask-linear-from": w()
|
|
@@ -2833,10 +2865,10 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2833
2865
|
"mask-linear-to": w()
|
|
2834
2866
|
}],
|
|
2835
2867
|
"mask-image-t-from-pos": [{
|
|
2836
|
-
"mask-t-from":
|
|
2868
|
+
"mask-t-from": R()
|
|
2837
2869
|
}],
|
|
2838
2870
|
"mask-image-t-to-pos": [{
|
|
2839
|
-
"mask-t-to":
|
|
2871
|
+
"mask-t-to": R()
|
|
2840
2872
|
}],
|
|
2841
2873
|
"mask-image-t-from-color": [{
|
|
2842
2874
|
"mask-t-from": w()
|
|
@@ -2845,10 +2877,10 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2845
2877
|
"mask-t-to": w()
|
|
2846
2878
|
}],
|
|
2847
2879
|
"mask-image-r-from-pos": [{
|
|
2848
|
-
"mask-r-from":
|
|
2880
|
+
"mask-r-from": R()
|
|
2849
2881
|
}],
|
|
2850
2882
|
"mask-image-r-to-pos": [{
|
|
2851
|
-
"mask-r-to":
|
|
2883
|
+
"mask-r-to": R()
|
|
2852
2884
|
}],
|
|
2853
2885
|
"mask-image-r-from-color": [{
|
|
2854
2886
|
"mask-r-from": w()
|
|
@@ -2857,10 +2889,10 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2857
2889
|
"mask-r-to": w()
|
|
2858
2890
|
}],
|
|
2859
2891
|
"mask-image-b-from-pos": [{
|
|
2860
|
-
"mask-b-from":
|
|
2892
|
+
"mask-b-from": R()
|
|
2861
2893
|
}],
|
|
2862
2894
|
"mask-image-b-to-pos": [{
|
|
2863
|
-
"mask-b-to":
|
|
2895
|
+
"mask-b-to": R()
|
|
2864
2896
|
}],
|
|
2865
2897
|
"mask-image-b-from-color": [{
|
|
2866
2898
|
"mask-b-from": w()
|
|
@@ -2869,10 +2901,10 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2869
2901
|
"mask-b-to": w()
|
|
2870
2902
|
}],
|
|
2871
2903
|
"mask-image-l-from-pos": [{
|
|
2872
|
-
"mask-l-from":
|
|
2904
|
+
"mask-l-from": R()
|
|
2873
2905
|
}],
|
|
2874
2906
|
"mask-image-l-to-pos": [{
|
|
2875
|
-
"mask-l-to":
|
|
2907
|
+
"mask-l-to": R()
|
|
2876
2908
|
}],
|
|
2877
2909
|
"mask-image-l-from-color": [{
|
|
2878
2910
|
"mask-l-from": w()
|
|
@@ -2881,10 +2913,10 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2881
2913
|
"mask-l-to": w()
|
|
2882
2914
|
}],
|
|
2883
2915
|
"mask-image-x-from-pos": [{
|
|
2884
|
-
"mask-x-from":
|
|
2916
|
+
"mask-x-from": R()
|
|
2885
2917
|
}],
|
|
2886
2918
|
"mask-image-x-to-pos": [{
|
|
2887
|
-
"mask-x-to":
|
|
2919
|
+
"mask-x-to": R()
|
|
2888
2920
|
}],
|
|
2889
2921
|
"mask-image-x-from-color": [{
|
|
2890
2922
|
"mask-x-from": w()
|
|
@@ -2893,10 +2925,10 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2893
2925
|
"mask-x-to": w()
|
|
2894
2926
|
}],
|
|
2895
2927
|
"mask-image-y-from-pos": [{
|
|
2896
|
-
"mask-y-from":
|
|
2928
|
+
"mask-y-from": R()
|
|
2897
2929
|
}],
|
|
2898
2930
|
"mask-image-y-to-pos": [{
|
|
2899
|
-
"mask-y-to":
|
|
2931
|
+
"mask-y-to": R()
|
|
2900
2932
|
}],
|
|
2901
2933
|
"mask-image-y-from-color": [{
|
|
2902
2934
|
"mask-y-from": w()
|
|
@@ -2908,10 +2940,10 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2908
2940
|
"mask-radial": [x, p]
|
|
2909
2941
|
}],
|
|
2910
2942
|
"mask-image-radial-from-pos": [{
|
|
2911
|
-
"mask-radial-from":
|
|
2943
|
+
"mask-radial-from": R()
|
|
2912
2944
|
}],
|
|
2913
2945
|
"mask-image-radial-to-pos": [{
|
|
2914
|
-
"mask-radial-to":
|
|
2946
|
+
"mask-radial-to": R()
|
|
2915
2947
|
}],
|
|
2916
2948
|
"mask-image-radial-from-color": [{
|
|
2917
2949
|
"mask-radial-from": w()
|
|
@@ -2935,10 +2967,10 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
2935
2967
|
"mask-conic": [I]
|
|
2936
2968
|
}],
|
|
2937
2969
|
"mask-image-conic-from-pos": [{
|
|
2938
|
-
"mask-conic-from":
|
|
2970
|
+
"mask-conic-from": R()
|
|
2939
2971
|
}],
|
|
2940
2972
|
"mask-image-conic-to-pos": [{
|
|
2941
|
-
"mask-conic-to":
|
|
2973
|
+
"mask-conic-to": R()
|
|
2942
2974
|
}],
|
|
2943
2975
|
"mask-image-conic-from-color": [{
|
|
2944
2976
|
"mask-conic-from": w()
|
|
@@ -3238,7 +3270,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
3238
3270
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3239
3271
|
*/
|
|
3240
3272
|
ease: [{
|
|
3241
|
-
ease: ["linear", "initial",
|
|
3273
|
+
ease: ["linear", "initial", Q, x, p]
|
|
3242
3274
|
}],
|
|
3243
3275
|
/**
|
|
3244
3276
|
* Transition Delay
|
|
@@ -3689,7 +3721,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
3689
3721
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3690
3722
|
*/
|
|
3691
3723
|
"stroke-w": [{
|
|
3692
|
-
stroke: [I, Ue,
|
|
3724
|
+
stroke: [I, Ue, Me, it]
|
|
3693
3725
|
}],
|
|
3694
3726
|
/**
|
|
3695
3727
|
* Stroke
|
|
@@ -3764,7 +3796,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
3764
3796
|
},
|
|
3765
3797
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3766
3798
|
};
|
|
3767
|
-
}, "getDefaultConfig"),
|
|
3799
|
+
}, "getDefaultConfig"), wr = /* @__PURE__ */ or(kr), Qe = {
|
|
3768
3800
|
default: {
|
|
3769
3801
|
solid: {
|
|
3770
3802
|
base: "bg-theme-0 dark:bg-theme-700/40 text-theme-600 dark:text-theme-50",
|
|
@@ -4050,10 +4082,10 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4050
4082
|
icon: "text-red-600 dark:text-red-400"
|
|
4051
4083
|
}
|
|
4052
4084
|
}
|
|
4053
|
-
},
|
|
4085
|
+
}, Cr = {
|
|
4054
4086
|
key: 0,
|
|
4055
4087
|
class: "absolute inset-0 flex items-center justify-center"
|
|
4056
|
-
},
|
|
4088
|
+
}, Sr = /* @__PURE__ */ j({
|
|
4057
4089
|
__name: "FButton",
|
|
4058
4090
|
props: {
|
|
4059
4091
|
theme: { default: "default" },
|
|
@@ -4068,17 +4100,17 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4068
4100
|
class: { default: "" }
|
|
4069
4101
|
},
|
|
4070
4102
|
setup(e) {
|
|
4071
|
-
const r =
|
|
4103
|
+
const r = V(() => ({
|
|
4072
4104
|
icon: typeof e.icon == "string" ? e.icon : e.icon?.className,
|
|
4073
4105
|
iconAfter: typeof e.iconAfter == "string" ? e.iconAfter : e.iconAfter?.className
|
|
4074
|
-
})), o =
|
|
4106
|
+
})), o = V(() => e.href ? "a" : e.tag), t = V(() => ({
|
|
4075
4107
|
xxs: "size-2.5",
|
|
4076
4108
|
xs: "size-3",
|
|
4077
4109
|
sm: "size-3.5",
|
|
4078
4110
|
md: "size-4",
|
|
4079
4111
|
lg: "size-5",
|
|
4080
4112
|
xl: "size-6"
|
|
4081
|
-
})[e.size]), n =
|
|
4113
|
+
})[e.size]), n = V(() => {
|
|
4082
4114
|
const i = "relative inline-flex items-center justify-center gap-2 font-medium transition-all duration-200 focus:outline-none active:opacity-80 cursor-pointer", f = {
|
|
4083
4115
|
xxs: "px-2 py-0.5 text-[10px]",
|
|
4084
4116
|
xs: "px-3 py-1 text-[11px]",
|
|
@@ -4099,29 +4131,29 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4099
4131
|
`border ${u.border}`,
|
|
4100
4132
|
u.hover
|
|
4101
4133
|
].filter(Boolean).join(" ");
|
|
4102
|
-
return
|
|
4103
|
-
}), a =
|
|
4134
|
+
return wr(c, e.class);
|
|
4135
|
+
}), a = V(() => ({
|
|
4104
4136
|
design: (Qe[e.theme]?.[e.design] || Qe.default[e.design]).icon || ""
|
|
4105
4137
|
}));
|
|
4106
|
-
return (i, f) => (d(),
|
|
4138
|
+
return (i, f) => (d(), _(co(o.value), {
|
|
4107
4139
|
href: e.href,
|
|
4108
4140
|
class: z(n.value)
|
|
4109
4141
|
}, {
|
|
4110
|
-
default:
|
|
4111
|
-
e.loading ? (d(),
|
|
4112
|
-
|
|
4142
|
+
default: te(() => [
|
|
4143
|
+
e.loading ? (d(), b("div", Cr, [
|
|
4144
|
+
B(gt, {
|
|
4113
4145
|
class: z(t.value)
|
|
4114
4146
|
}, null, 8, ["class"])
|
|
4115
4147
|
])) : E("", !0),
|
|
4116
4148
|
l("span", {
|
|
4117
4149
|
class: z(["flex items-center gap-2 transition-opacity duration-200 whitespace-nowrap", e.loading ? "opacity-0" : "opacity-100"])
|
|
4118
4150
|
}, [
|
|
4119
|
-
r.value.icon ? (d(),
|
|
4151
|
+
r.value.icon ? (d(), b("span", {
|
|
4120
4152
|
key: 0,
|
|
4121
4153
|
class: z(["flex items-center size-[1.1em] mt-[-.07em]", [r.value.icon, a.value]])
|
|
4122
4154
|
}, null, 2)) : E("", !0),
|
|
4123
|
-
|
|
4124
|
-
r.value.iconAfter ? (d(),
|
|
4155
|
+
Ce(i.$slots, "default"),
|
|
4156
|
+
r.value.iconAfter ? (d(), b("span", {
|
|
4125
4157
|
key: 1,
|
|
4126
4158
|
class: z(["flex items-center size-[1.1em] mt-[-.07em]", [r.value.iconAfter, a.value]])
|
|
4127
4159
|
}, null, 2)) : E("", !0)
|
|
@@ -4130,25 +4162,25 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4130
4162
|
_: 3
|
|
4131
4163
|
}, 8, ["href", "class"]));
|
|
4132
4164
|
}
|
|
4133
|
-
}),
|
|
4165
|
+
}), Mr = { class: "flex-1 flex flex-col min-h-0 py-6 space-y-6 h-full overflow-scroll [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden relative" }, Ar = { class: "flex-1 space-y-6" }, Ir = {
|
|
4134
4166
|
key: 0,
|
|
4135
4167
|
class: "bg-white/5 backdrop-blur-sm rounded-2xl p-4 border border-white/10"
|
|
4136
|
-
},
|
|
4168
|
+
}, zr = { class: "text-sm text-white/70 leading-relaxed" }, $r = {
|
|
4137
4169
|
key: 1,
|
|
4138
4170
|
class: "bg-white/5 backdrop-blur-sm rounded-2xl p-4 border border-white/10"
|
|
4139
|
-
},
|
|
4171
|
+
}, Er = ["innerHTML"], Lr = {
|
|
4140
4172
|
key: 2,
|
|
4141
4173
|
class: "bg-white/5 backdrop-blur-sm rounded-2xl p-4 border border-white/10"
|
|
4142
|
-
},
|
|
4174
|
+
}, Tr = { class: "text-sm text-white/70 leading-relaxed" }, Pr = {
|
|
4143
4175
|
key: 3,
|
|
4144
4176
|
class: "space-y-3"
|
|
4145
|
-
},
|
|
4177
|
+
}, Vr = { class: "grid grid-cols-2 gap-3" }, Fr = /* @__PURE__ */ j({
|
|
4146
4178
|
__name: "ElSelfAbout",
|
|
4147
4179
|
props: {
|
|
4148
4180
|
self: {}
|
|
4149
4181
|
},
|
|
4150
4182
|
setup(e) {
|
|
4151
|
-
const r =
|
|
4183
|
+
const r = V(() => [
|
|
4152
4184
|
{
|
|
4153
4185
|
key: "email",
|
|
4154
4186
|
condition: /* @__PURE__ */ s(() => !!e.self.email, "condition"),
|
|
@@ -4195,27 +4227,27 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4195
4227
|
}), "generate")
|
|
4196
4228
|
}
|
|
4197
4229
|
].filter((t) => t.condition()).map((t) => t.generate()));
|
|
4198
|
-
return (o, t) => (d(),
|
|
4199
|
-
l("div",
|
|
4200
|
-
e.self.headline ? (d(),
|
|
4230
|
+
return (o, t) => (d(), b("div", Mr, [
|
|
4231
|
+
l("div", Ar, [
|
|
4232
|
+
e.self.headline ? (d(), b("div", Ir, [
|
|
4201
4233
|
t[0] || (t[0] = l("h3", { class: "text-sm font-medium text-white/90 mb-2" }, " Professional Tagline ", -1)),
|
|
4202
|
-
l("div",
|
|
4234
|
+
l("div", zr, N(e.self.headline), 1)
|
|
4203
4235
|
])) : E("", !0),
|
|
4204
|
-
e.self.summary ? (d(),
|
|
4236
|
+
e.self.summary ? (d(), b("div", $r, [
|
|
4205
4237
|
t[1] || (t[1] = l("h3", { class: "text-sm font-medium text-white/90 mb-2" }, " About ", -1)),
|
|
4206
4238
|
l("div", {
|
|
4207
4239
|
class: "text-sm text-white/70 leading-relaxed",
|
|
4208
4240
|
innerHTML: e.self.summary
|
|
4209
|
-
}, null, 8,
|
|
4241
|
+
}, null, 8, Er)
|
|
4210
4242
|
])) : E("", !0),
|
|
4211
|
-
e.self.entityType === "company" ? (d(),
|
|
4243
|
+
e.self.entityType === "company" ? (d(), b("div", Lr, [
|
|
4212
4244
|
t[2] || (t[2] = l("h3", { class: "text-sm font-medium text-white/90 mb-2" }, " Company Info ", -1)),
|
|
4213
|
-
l("p",
|
|
4245
|
+
l("p", Tr, " This is a company digital self representing " + N(e.self.name) + ". ", 1)
|
|
4214
4246
|
])) : E("", !0),
|
|
4215
|
-
r.value.length > 0 ? (d(),
|
|
4247
|
+
r.value.length > 0 ? (d(), b("div", Pr, [
|
|
4216
4248
|
t[3] || (t[3] = l("h3", { class: "text-sm font-medium text-white/90" }, " Connect ", -1)),
|
|
4217
|
-
l("div",
|
|
4218
|
-
(d(!0),
|
|
4249
|
+
l("div", Vr, [
|
|
4250
|
+
(d(!0), b(Ae, null, rt(r.value, (n) => (d(), _(Sr, {
|
|
4219
4251
|
key: n.title,
|
|
4220
4252
|
design: "ghost",
|
|
4221
4253
|
theme: "default",
|
|
@@ -4224,11 +4256,11 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4224
4256
|
href: n.url,
|
|
4225
4257
|
target: "_blank"
|
|
4226
4258
|
}, {
|
|
4227
|
-
default:
|
|
4259
|
+
default: te(() => [
|
|
4228
4260
|
l("i", {
|
|
4229
4261
|
class: z([n.icon, "size-4 mr-2"])
|
|
4230
4262
|
}, null, 2),
|
|
4231
|
-
He(" " +
|
|
4263
|
+
He(" " + N(n.title), 1)
|
|
4232
4264
|
]),
|
|
4233
4265
|
_: 2
|
|
4234
4266
|
}, 1032, ["href"]))), 128))
|
|
@@ -4237,23 +4269,23 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4237
4269
|
])
|
|
4238
4270
|
]));
|
|
4239
4271
|
}
|
|
4240
|
-
}),
|
|
4272
|
+
}), Dr = { class: "flex flex-col h-full relative" }, Br = {
|
|
4241
4273
|
key: 0,
|
|
4242
4274
|
class: "text-theme-600 py-16 flex flex-col items-center justify-center gap-2 text-sm"
|
|
4243
|
-
},
|
|
4275
|
+
}, jr = {
|
|
4244
4276
|
key: 0,
|
|
4245
4277
|
class: "flex-shrink-0 size-8"
|
|
4246
|
-
},
|
|
4278
|
+
}, Rr = ["src", "alt"], Nr = { class: "max-w-[70%]" }, Gr = { class: "text-sm leading-[1.5] whitespace-pre-wrap break-words" }, Or = {
|
|
4247
4279
|
key: 0,
|
|
4248
4280
|
class: "flex gap-2 justify-start items-end mb-4"
|
|
4249
|
-
},
|
|
4281
|
+
}, Ur = { class: "flex-shrink-0" }, Hr = ["src", "alt"], qr = { class: "flex-shrink-0 pt-6 pb-2" }, Wr = ["placeholder", "disabled"], Kr = /* @__PURE__ */ j({
|
|
4250
4282
|
__name: "ElSelfChat",
|
|
4251
4283
|
props: {
|
|
4252
4284
|
selfController: {},
|
|
4253
4285
|
self: {}
|
|
4254
4286
|
},
|
|
4255
4287
|
setup(e) {
|
|
4256
|
-
const r = T(""), o = T(), t = T(), n =
|
|
4288
|
+
const r = T(""), o = T(), t = T(), n = V(() => tt(e.self));
|
|
4257
4289
|
function a(u, c) {
|
|
4258
4290
|
const m = u[c], y = u[c + 1];
|
|
4259
4291
|
return !y || y.sender !== m.sender;
|
|
@@ -4296,20 +4328,20 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4296
4328
|
const u = Math.min(t.value.scrollHeight, 150);
|
|
4297
4329
|
t.value.style.height = `${u}px`;
|
|
4298
4330
|
}
|
|
4299
|
-
return s(C, "adjustTextareaHeight"),
|
|
4331
|
+
return s(C, "adjustTextareaHeight"), ee(r, () => {
|
|
4300
4332
|
Xe(() => C());
|
|
4301
|
-
}),
|
|
4333
|
+
}), ee(() => e.selfController?.sharedMessages.value, (u) => {
|
|
4302
4334
|
u && u.length > 0 && Xe(() => h());
|
|
4303
|
-
}, { immediate: !0, deep: !0 }), (u, c) => (d(),
|
|
4304
|
-
e.selfController?.textState.value.connectionStatus !== "connected" ? (d(),
|
|
4305
|
-
|
|
4335
|
+
}, { immediate: !0, deep: !0 }), (u, c) => (d(), b("div", Dr, [
|
|
4336
|
+
e.selfController?.textState.value.connectionStatus !== "connected" ? (d(), b("div", Br, [
|
|
4337
|
+
B(gt, { class: "size-4" })
|
|
4306
4338
|
])) : E("", !0),
|
|
4307
4339
|
l("div", {
|
|
4308
4340
|
ref_key: "messagesContainer",
|
|
4309
4341
|
ref: o,
|
|
4310
4342
|
class: "flex-1 overflow-y-auto overflow-x-hidden py-8 space-y-1 min-h-0 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden"
|
|
4311
4343
|
}, [
|
|
4312
|
-
(d(!0),
|
|
4344
|
+
(d(!0), b(Ae, null, rt(e.selfController?.sharedMessages.value.filter((m) => m.sender !== "system") ?? [], (m, y) => (d(), b("div", {
|
|
4313
4345
|
key: m.id,
|
|
4314
4346
|
class: z(["flex gap-2 items-end", {
|
|
4315
4347
|
"justify-end": m.sender === "user",
|
|
@@ -4317,37 +4349,37 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4317
4349
|
"mb-4": a(e.selfController?.sharedMessages.value.filter((g) => g.sender !== "system") ?? [], y)
|
|
4318
4350
|
}])
|
|
4319
4351
|
}, [
|
|
4320
|
-
m.sender === "agent" ? (d(),
|
|
4321
|
-
a(e.selfController?.sharedMessages.value.filter((g) => g.sender !== "system") ?? [], y) ? (d(),
|
|
4352
|
+
m.sender === "agent" ? (d(), b("div", jr, [
|
|
4353
|
+
a(e.selfController?.sharedMessages.value.filter((g) => g.sender !== "system") ?? [], y) ? (d(), b("img", {
|
|
4322
4354
|
key: 0,
|
|
4323
4355
|
src: n.value,
|
|
4324
4356
|
alt: e.self.name,
|
|
4325
4357
|
class: "size-7 rounded-full object-cover"
|
|
4326
|
-
}, null, 8,
|
|
4358
|
+
}, null, 8, Rr)) : E("", !0)
|
|
4327
4359
|
])) : E("", !0),
|
|
4328
|
-
l("div",
|
|
4360
|
+
l("div", Nr, [
|
|
4329
4361
|
l("div", {
|
|
4330
4362
|
class: z(["rounded-2xl px-3.5 py-1.5 backdrop-blur-sm", m.sender === "user" ? "bg-primary-500/80 text-white" : "bg-white/15 text-white/95"])
|
|
4331
4363
|
}, [
|
|
4332
|
-
l("p",
|
|
4364
|
+
l("p", Gr, N(m.text), 1)
|
|
4333
4365
|
], 2)
|
|
4334
4366
|
])
|
|
4335
4367
|
], 2))), 128)),
|
|
4336
|
-
e.selfController?.textState.value.isThinking ? (d(),
|
|
4337
|
-
l("div",
|
|
4368
|
+
e.selfController?.textState.value.isThinking ? (d(), b("div", Or, [
|
|
4369
|
+
l("div", Ur, [
|
|
4338
4370
|
l("img", {
|
|
4339
4371
|
src: n.value,
|
|
4340
4372
|
alt: e.self.name,
|
|
4341
4373
|
class: "size-8 rounded-full object-cover"
|
|
4342
|
-
}, null, 8,
|
|
4374
|
+
}, null, 8, Hr)
|
|
4343
4375
|
]),
|
|
4344
4376
|
c[1] || (c[1] = l("div", { class: "rounded-2xl px-4 py-2.5 bg-white/15 backdrop-blur-sm flex items-center" }, [
|
|
4345
4377
|
l("i", { class: "i-svg-spinners-3-dots-fade size-6 text-white/70" })
|
|
4346
4378
|
], -1))
|
|
4347
4379
|
])) : E("", !0)
|
|
4348
4380
|
], 512),
|
|
4349
|
-
l("div",
|
|
4350
|
-
|
|
4381
|
+
l("div", qr, [
|
|
4382
|
+
Vt(l("textarea", {
|
|
4351
4383
|
ref_key: "textarea",
|
|
4352
4384
|
ref: t,
|
|
4353
4385
|
"onUpdate:modelValue": c[0] || (c[0] = (m) => r.value = m),
|
|
@@ -4357,14 +4389,14 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4357
4389
|
style: { "font-size": "16px", resize: "none" },
|
|
4358
4390
|
class: "w-full bg-white/10 backdrop-blur-sm border border-white/20 rounded-3xl px-5 py-3 text-white placeholder-white/50 focus:outline-none focus:border-white/40 disabled:opacity-50 overflow-y-auto [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",
|
|
4359
4391
|
onKeydown: f
|
|
4360
|
-
}, null, 40,
|
|
4392
|
+
}, null, 40, Wr), [
|
|
4361
4393
|
[Ft, r.value]
|
|
4362
4394
|
]),
|
|
4363
4395
|
c[2] || (c[2] = l("div", { class: "text-[10px] text-white/40 text-center mt-2" }, " Press Enter to send, Shift+Enter for new line ", -1))
|
|
4364
4396
|
])
|
|
4365
4397
|
]));
|
|
4366
4398
|
}
|
|
4367
|
-
}),
|
|
4399
|
+
}), Zr = { class: "flex flex-col items-center text-center gap-4" }, Yr = { class: "relative flex-shrink-0" }, Jr = { class: "w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white" }, Qr = ["src", "alt"], Xr = { class: "min-w-0" }, _r = { class: "text-3xl font-light text-white mb-2 truncate" }, es = { class: "text-base font-light text-white/60 line-clamp-1" }, ts = /* @__PURE__ */ j({
|
|
4368
4400
|
__name: "ElSelfHeader",
|
|
4369
4401
|
props: {
|
|
4370
4402
|
self: {}
|
|
@@ -4373,16 +4405,16 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4373
4405
|
function r() {
|
|
4374
4406
|
return e.self.avatar?.src ? e.self.avatar.src : qe();
|
|
4375
4407
|
}
|
|
4376
|
-
return s(r, "getAvatarSrc"), (o, t) => (d(),
|
|
4377
|
-
l("div",
|
|
4378
|
-
l("div",
|
|
4408
|
+
return s(r, "getAvatarSrc"), (o, t) => (d(), b("div", Zr, [
|
|
4409
|
+
l("div", Yr, [
|
|
4410
|
+
l("div", Jr, [
|
|
4379
4411
|
l("img", {
|
|
4380
4412
|
src: r(),
|
|
4381
4413
|
alt: e.self.name,
|
|
4382
4414
|
class: "w-full h-full object-cover",
|
|
4383
4415
|
onError: t[0] || (t[0] = //@ts-ignore
|
|
4384
4416
|
(...n) => Y(ot) && Y(ot)(...n))
|
|
4385
|
-
}, null, 40,
|
|
4417
|
+
}, null, 40, Qr)
|
|
4386
4418
|
]),
|
|
4387
4419
|
t[1] || (t[1] = l("div", { class: "absolute top-1.5 right-1.5" }, [
|
|
4388
4420
|
l("div", {
|
|
@@ -4392,13 +4424,13 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4392
4424
|
l("div", { class: "size-4 bg-green-500 rounded-full ring-2 ring-white" })
|
|
4393
4425
|
], -1))
|
|
4394
4426
|
]),
|
|
4395
|
-
l("div",
|
|
4396
|
-
l("h1",
|
|
4397
|
-
l("p",
|
|
4427
|
+
l("div", Xr, [
|
|
4428
|
+
l("h1", _r, N(e.self.name), 1),
|
|
4429
|
+
l("p", es, N(e.self.title), 1)
|
|
4398
4430
|
])
|
|
4399
4431
|
]));
|
|
4400
4432
|
}
|
|
4401
|
-
}),
|
|
4433
|
+
}), os = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden" }, Zt = /* @__PURE__ */ j({
|
|
4402
4434
|
name: "FClose",
|
|
4403
4435
|
__name: "FClose",
|
|
4404
4436
|
emits: ["click"],
|
|
@@ -4408,12 +4440,12 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4408
4440
|
setTimeout(() => {
|
|
4409
4441
|
r.value = !0;
|
|
4410
4442
|
}, 100);
|
|
4411
|
-
}), (o, t) => (d(),
|
|
4443
|
+
}), (o, t) => (d(), b("a", {
|
|
4412
4444
|
class: "close block cursor-pointer w-[60px] h-[60px] rounded-full transition-all duration-1000 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-110 active:scale-90 hover:rotate-90",
|
|
4413
4445
|
onClick: t[0] || (t[0] = (n) => o.$emit("click", n))
|
|
4414
4446
|
}, [
|
|
4415
4447
|
t[1] || (t[1] = l("span", { class: "absolute inset-0 rounded-full transition-all" }, null, -1)),
|
|
4416
|
-
l("span",
|
|
4448
|
+
l("span", os, [
|
|
4417
4449
|
l("span", {
|
|
4418
4450
|
class: z(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", r.value ? "translate-y-0 translate-x-0 rotate-45" : "translate-y-[30px] -translate-x-[30px] rotate-0"]),
|
|
4419
4451
|
style: { "background-color": "currentColor", "transition-delay": "0.15s" }
|
|
@@ -4425,16 +4457,16 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4425
4457
|
])
|
|
4426
4458
|
]));
|
|
4427
4459
|
}
|
|
4428
|
-
}),
|
|
4460
|
+
}), rs = {
|
|
4429
4461
|
key: 0,
|
|
4430
4462
|
class: "px-9 pt-12 pb-4"
|
|
4431
|
-
},
|
|
4463
|
+
}, ss = { class: "text-base font-medium text-theme-400" }, ns = {
|
|
4432
4464
|
key: 1,
|
|
4433
4465
|
class: "px-4 pb-8 border-b border-white/10"
|
|
4434
|
-
},
|
|
4466
|
+
}, as = ["disabled", "onClick"], is = { class: "flex items-center gap-3" }, ls = { class: "flex-1" }, cs = {
|
|
4435
4467
|
key: 0,
|
|
4436
4468
|
class: "text-xs text-white/50 mt-0.5"
|
|
4437
|
-
},
|
|
4469
|
+
}, ds = { class: "p-6" }, Yt = /* @__PURE__ */ j({
|
|
4438
4470
|
name: "ElSidebar",
|
|
4439
4471
|
__name: "ElSidebar",
|
|
4440
4472
|
props: {
|
|
@@ -4446,15 +4478,15 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4446
4478
|
},
|
|
4447
4479
|
emits: ["update:modelValue"],
|
|
4448
4480
|
setup(e, { emit: r }) {
|
|
4449
|
-
const o = e, t = r, n = o.position || "left", a = o.widthClasses || "w-[80%] max-w-[300px]", i =
|
|
4481
|
+
const o = e, t = r, n = o.position || "left", a = o.widthClasses || "w-[80%] max-w-[300px]", i = V({
|
|
4450
4482
|
get: /* @__PURE__ */ s(() => o.modelValue, "get"),
|
|
4451
4483
|
set: /* @__PURE__ */ s((u) => t("update:modelValue", u), "set")
|
|
4452
|
-
}), f =
|
|
4484
|
+
}), f = V(() => o.items.filter((u) => !u.isHidden));
|
|
4453
4485
|
function h(u) {
|
|
4454
4486
|
u.isDisabled || (u.onClick ? u.onClick({ item: u, event: new MouseEvent("click") }) : u.href && (u.href.includes("http") ? window.open(u.href, u.target || "_self")?.focus() : window.location.href = u.href), i.value = !1);
|
|
4455
4487
|
}
|
|
4456
4488
|
s(h, "handleItemClick");
|
|
4457
|
-
const C =
|
|
4489
|
+
const C = V(() => n === "left" ? {
|
|
4458
4490
|
enter: "-translate-x-full",
|
|
4459
4491
|
leave: "-translate-x-full",
|
|
4460
4492
|
position: "justify-start",
|
|
@@ -4465,8 +4497,8 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4465
4497
|
position: "justify-end",
|
|
4466
4498
|
closeButton: "-left-16"
|
|
4467
4499
|
});
|
|
4468
|
-
return (u, c) => (d(),
|
|
4469
|
-
|
|
4500
|
+
return (u, c) => (d(), b(Ae, null, [
|
|
4501
|
+
B(_e, {
|
|
4470
4502
|
"enter-active-class": "transition-opacity duration-300 ease-out",
|
|
4471
4503
|
"leave-active-class": "transition-opacity duration-200 ease-in",
|
|
4472
4504
|
"enter-from-class": "opacity-0",
|
|
@@ -4474,8 +4506,8 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4474
4506
|
"leave-from-class": "opacity-100",
|
|
4475
4507
|
"leave-to-class": "opacity-0"
|
|
4476
4508
|
}, {
|
|
4477
|
-
default:
|
|
4478
|
-
i.value ? (d(),
|
|
4509
|
+
default: te(() => [
|
|
4510
|
+
i.value ? (d(), b("div", {
|
|
4479
4511
|
key: 0,
|
|
4480
4512
|
class: "absolute inset-0 z-40 bg-black/50 backdrop-blur-sm",
|
|
4481
4513
|
onClick: c[0] || (c[0] = (m) => i.value = !1)
|
|
@@ -4483,7 +4515,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4483
4515
|
]),
|
|
4484
4516
|
_: 1
|
|
4485
4517
|
}),
|
|
4486
|
-
|
|
4518
|
+
B(_e, {
|
|
4487
4519
|
"enter-active-class": "transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
4488
4520
|
"leave-active-class": "transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
4489
4521
|
"enter-from-class": C.value.enter,
|
|
@@ -4491,8 +4523,8 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4491
4523
|
"leave-from-class": "translate-x-0",
|
|
4492
4524
|
"leave-to-class": C.value.leave
|
|
4493
4525
|
}, {
|
|
4494
|
-
default:
|
|
4495
|
-
i.value ? (d(),
|
|
4526
|
+
default: te(() => [
|
|
4527
|
+
i.value ? (d(), b("div", {
|
|
4496
4528
|
key: 0,
|
|
4497
4529
|
class: z(["absolute inset-0 z-50 flex", C.value.position]),
|
|
4498
4530
|
onClick: c[3] || (c[3] = (m) => i.value = !1)
|
|
@@ -4502,20 +4534,20 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4502
4534
|
onClick: c[2] || (c[2] = et(() => {
|
|
4503
4535
|
}, ["stop"]))
|
|
4504
4536
|
}, [
|
|
4505
|
-
|
|
4537
|
+
B(Zt, {
|
|
4506
4538
|
class: z(["absolute top-4 z-10 text-white", C.value.closeButton]),
|
|
4507
4539
|
onClick: c[1] || (c[1] = (m) => i.value = !1)
|
|
4508
4540
|
}, null, 8, ["class"]),
|
|
4509
|
-
e.title ? (d(),
|
|
4510
|
-
l("h3",
|
|
4541
|
+
e.title ? (d(), b("div", rs, [
|
|
4542
|
+
l("h3", ss, N(e.title), 1)
|
|
4511
4543
|
])) : E("", !0),
|
|
4512
|
-
u.$slots.header ? (d(),
|
|
4513
|
-
|
|
4544
|
+
u.$slots.header ? (d(), b("div", ns, [
|
|
4545
|
+
Ce(u.$slots, "header")
|
|
4514
4546
|
])) : E("", !0),
|
|
4515
4547
|
l("div", {
|
|
4516
4548
|
class: z(["flex-1 p-6 space-y-2 overflow-y-auto", { "pt-6": !e.title && !u.$slots.header, "pt-4": e.title || u.$slots.header }])
|
|
4517
4549
|
}, [
|
|
4518
|
-
|
|
4550
|
+
B(Pt, {
|
|
4519
4551
|
"enter-active-class": "transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
4520
4552
|
"leave-active-class": "transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
4521
4553
|
"enter-from-class": Y(n) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0",
|
|
@@ -4523,8 +4555,8 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4523
4555
|
"leave-from-class": "translate-x-0 opacity-100",
|
|
4524
4556
|
"leave-to-class": Y(n) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0"
|
|
4525
4557
|
}, {
|
|
4526
|
-
default:
|
|
4527
|
-
(d(!0),
|
|
4558
|
+
default: te(() => [
|
|
4559
|
+
(d(!0), b(Ae, null, rt(f.value, (m, y) => (d(), b("button", {
|
|
4528
4560
|
key: m.key || m.label || y,
|
|
4529
4561
|
style: st({ transitionDelay: `${y * 40}ms` }),
|
|
4530
4562
|
class: z(["cursor-pointer w-full text-left p-3 rounded-xl transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group", [
|
|
@@ -4534,28 +4566,28 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4534
4566
|
disabled: m.isDisabled,
|
|
4535
4567
|
onClick: /* @__PURE__ */ s((g) => h(m), "onClick")
|
|
4536
4568
|
}, [
|
|
4537
|
-
l("div",
|
|
4538
|
-
m.icon?.src ? (d(),
|
|
4569
|
+
l("div", is, [
|
|
4570
|
+
m.icon?.src ? (d(), b("i", {
|
|
4539
4571
|
key: 0,
|
|
4540
4572
|
class: z(["size-5 flex-shrink-0 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group-hover:scale-110", [
|
|
4541
4573
|
m.icon.src,
|
|
4542
4574
|
m.isActive ? "text-primary-400" : "text-white/70 group-hover:text-white"
|
|
4543
4575
|
]])
|
|
4544
4576
|
}, null, 2)) : E("", !0),
|
|
4545
|
-
l("div",
|
|
4577
|
+
l("div", ls, [
|
|
4546
4578
|
l("div", {
|
|
4547
4579
|
class: z(["font-medium text-sm", m.isActive ? "text-primary-300" : "text-white"])
|
|
4548
|
-
},
|
|
4549
|
-
m.subLabel ? (d(),
|
|
4580
|
+
}, N(m.label), 3),
|
|
4581
|
+
m.subLabel ? (d(), b("div", cs, N(m.subLabel), 1)) : E("", !0)
|
|
4550
4582
|
])
|
|
4551
4583
|
])
|
|
4552
|
-
], 14,
|
|
4584
|
+
], 14, as))), 128))
|
|
4553
4585
|
]),
|
|
4554
4586
|
_: 1
|
|
4555
4587
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
4556
4588
|
], 2),
|
|
4557
|
-
l("div",
|
|
4558
|
-
|
|
4589
|
+
l("div", ds, [
|
|
4590
|
+
Ce(u.$slots, "footer", {}, () => [
|
|
4559
4591
|
c[4] || (c[4] = l("div", { class: "text-center" }, [
|
|
4560
4592
|
l("p", { class: "text-[10px] text-white/40 font-sans" }, [
|
|
4561
4593
|
He(" Digital Self by "),
|
|
@@ -4575,7 +4607,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4575
4607
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
4576
4608
|
], 64));
|
|
4577
4609
|
}
|
|
4578
|
-
}),
|
|
4610
|
+
}), us = /* @__PURE__ */ j({
|
|
4579
4611
|
name: "SelfModeSidebar",
|
|
4580
4612
|
__name: "ElSelfModeSidebar",
|
|
4581
4613
|
props: {
|
|
@@ -4584,10 +4616,10 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4584
4616
|
},
|
|
4585
4617
|
emits: ["update:modelValue"],
|
|
4586
4618
|
setup(e, { emit: r }) {
|
|
4587
|
-
const o = e, t = r, n =
|
|
4619
|
+
const o = e, t = r, n = V({
|
|
4588
4620
|
get: /* @__PURE__ */ s(() => o.modelValue, "get"),
|
|
4589
4621
|
set: /* @__PURE__ */ s((f) => t("update:modelValue", f), "set")
|
|
4590
|
-
}), a =
|
|
4622
|
+
}), a = V(() => o.selfController?.agentMode?.value ?? "self"), i = V(() => Bt.map((f) => ({
|
|
4591
4623
|
key: f.mode,
|
|
4592
4624
|
icon: { src: f.icon },
|
|
4593
4625
|
label: f.label,
|
|
@@ -4596,7 +4628,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4596
4628
|
o.selfController?.setMode(f.mode);
|
|
4597
4629
|
}, "onClick")
|
|
4598
4630
|
})));
|
|
4599
|
-
return (f, h) => (d(),
|
|
4631
|
+
return (f, h) => (d(), _(Yt, {
|
|
4600
4632
|
modelValue: n.value,
|
|
4601
4633
|
"onUpdate:modelValue": h[0] || (h[0] = (C) => n.value = C),
|
|
4602
4634
|
items: i.value,
|
|
@@ -4605,7 +4637,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4605
4637
|
"width-classes": "w-[80%] max-w-[255px]"
|
|
4606
4638
|
}, null, 8, ["modelValue", "items"]));
|
|
4607
4639
|
}
|
|
4608
|
-
}),
|
|
4640
|
+
}), hs = /* @__PURE__ */ j({
|
|
4609
4641
|
name: "SelfSidebar",
|
|
4610
4642
|
__name: "ElSelfSidebar",
|
|
4611
4643
|
props: {
|
|
@@ -4616,10 +4648,10 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4616
4648
|
},
|
|
4617
4649
|
emits: ["update:modelValue"],
|
|
4618
4650
|
setup(e, { emit: r }) {
|
|
4619
|
-
const o = e, t = r, n =
|
|
4651
|
+
const o = e, t = r, n = V({
|
|
4620
4652
|
get: /* @__PURE__ */ s(() => o.modelValue, "get"),
|
|
4621
4653
|
set: /* @__PURE__ */ s((i) => t("update:modelValue", i), "set")
|
|
4622
|
-
}), a =
|
|
4654
|
+
}), a = V(() => {
|
|
4623
4655
|
const i = [
|
|
4624
4656
|
{
|
|
4625
4657
|
key: "share",
|
|
@@ -4656,7 +4688,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4656
4688
|
}, "onClick")
|
|
4657
4689
|
}), i;
|
|
4658
4690
|
});
|
|
4659
|
-
return (i, f) => (d(),
|
|
4691
|
+
return (i, f) => (d(), _(Yt, {
|
|
4660
4692
|
modelValue: n.value,
|
|
4661
4693
|
"onUpdate:modelValue": f[0] || (f[0] = (h) => n.value = h),
|
|
4662
4694
|
items: a.value,
|
|
@@ -4664,7 +4696,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4664
4696
|
title: e.title || "Menu"
|
|
4665
4697
|
}, null, 8, ["modelValue", "items", "title"]));
|
|
4666
4698
|
}
|
|
4667
|
-
}),
|
|
4699
|
+
}), fs = { class: "w-full max-w-full flex items-center justify-center" }, gs = ["width", "height"], ms = /* @__PURE__ */ j({
|
|
4668
4700
|
__name: "ElAudioVisualizer",
|
|
4669
4701
|
props: {
|
|
4670
4702
|
rms: {},
|
|
@@ -4684,17 +4716,17 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4684
4716
|
let t = null, n = null;
|
|
4685
4717
|
const a = T(!1), i = T(!0), f = /* @__PURE__ */ new Map();
|
|
4686
4718
|
let h = null, C = null, u = null;
|
|
4687
|
-
const c = T(!1), m = T(null), { bars: y, barWidth: g, barSpacing: P, minHeight: H, maxHeight:
|
|
4688
|
-
function We(
|
|
4689
|
-
return
|
|
4719
|
+
const c = T(!1), m = T(null), { bars: y, barWidth: g, barSpacing: P, minHeight: H, maxHeight: Q, STIFFNESS: ze, DAMPING: Se, PEAK_HOLD_TIME: ue, PEAK_DECAY_STIFFNESS: pe, PEAK_DECAY_DAMPING: he } = xo, se = new Float32Array(y).fill(H), S = new Float32Array(y).fill(0), ne = new Float32Array(y).fill(H), ce = new Float32Array(y).fill(H), fe = new Float32Array(y).fill(0), ge = new Float32Array(y).fill(0);
|
|
4720
|
+
function We(v) {
|
|
4721
|
+
return v < 200 ? { stiffnessMultiplier: 0.7, dampingMultiplier: 1.2 } : v < 1e3 ? { stiffnessMultiplier: 1, dampingMultiplier: 1 } : v < 4e3 ? { stiffnessMultiplier: 1.3, dampingMultiplier: 0.8 } : { stiffnessMultiplier: 1.5, dampingMultiplier: 0.6 };
|
|
4690
4722
|
}
|
|
4691
4723
|
s(We, "getFrequencyPhysics");
|
|
4692
4724
|
async function $e() {
|
|
4693
4725
|
if (!(typeof window > "u" || !r.enableRealAudio || !r.selfController))
|
|
4694
4726
|
try {
|
|
4695
|
-
const
|
|
4696
|
-
if (
|
|
4697
|
-
const M =
|
|
4727
|
+
const v = r.selfController.getClientAudio();
|
|
4728
|
+
if (v?.isAudioContextAvailable()) {
|
|
4729
|
+
const M = v.getSharedAnalyser();
|
|
4698
4730
|
if (M) {
|
|
4699
4731
|
C = M;
|
|
4700
4732
|
const A = new ArrayBuffer(M.frequencyBinCount);
|
|
@@ -4703,8 +4735,8 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4703
4735
|
}
|
|
4704
4736
|
}
|
|
4705
4737
|
console.warn("AudioVisualizer: Could not use shared context, creating independent audio analysis"), c.value = !1, m.value = "Shared audio context not available";
|
|
4706
|
-
} catch (
|
|
4707
|
-
m.value =
|
|
4738
|
+
} catch (v) {
|
|
4739
|
+
m.value = v instanceof Error ? v.message : "Failed to setup shared audio", c.value = !1, console.error("Shared audio setup failed:", v);
|
|
4708
4740
|
}
|
|
4709
4741
|
}
|
|
4710
4742
|
s($e, "setupAudio");
|
|
@@ -4717,42 +4749,42 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4717
4749
|
if (!o.value)
|
|
4718
4750
|
return;
|
|
4719
4751
|
typeof window < "u" && (q = Math.max(1, Math.min(2, window.devicePixelRatio || 1)));
|
|
4720
|
-
const
|
|
4721
|
-
o.value.width = Math.floor(
|
|
4752
|
+
const v = (g + P) * y - P, M = Q;
|
|
4753
|
+
o.value.width = Math.floor(v * q), o.value.height = Math.floor(M * q), o.value.style.width = `${v}px`, o.value.style.height = `${M}px`, t && t.setTransform(q, 0, 0, q, 0, 0), eo();
|
|
4722
4754
|
}
|
|
4723
4755
|
s(ie, "resizeCanvas");
|
|
4724
4756
|
function w() {
|
|
4725
|
-
return !C || !u || !c.value ? Array.from({ length:
|
|
4757
|
+
return !C || !u || !c.value ? Array.from({ length: X.length }, () => 0) : (C.getByteFrequencyData(u), je(u));
|
|
4726
4758
|
}
|
|
4727
4759
|
s(w, "generateRealInputFrequencyBands");
|
|
4728
4760
|
function Ke() {
|
|
4729
4761
|
if (!r.selfController)
|
|
4730
|
-
return Array.from({ length:
|
|
4762
|
+
return Array.from({ length: X.length }, () => 0);
|
|
4731
4763
|
try {
|
|
4732
|
-
const
|
|
4733
|
-
if (
|
|
4734
|
-
return je(
|
|
4735
|
-
} catch (
|
|
4736
|
-
console.warn("Failed to get output frequency data:",
|
|
4764
|
+
const v = r.selfController.getOutputFrequencyData();
|
|
4765
|
+
if (v && v.length > 0)
|
|
4766
|
+
return je(v);
|
|
4767
|
+
} catch (v) {
|
|
4768
|
+
console.warn("Failed to get output frequency data:", v);
|
|
4737
4769
|
}
|
|
4738
|
-
return Array.from({ length:
|
|
4770
|
+
return Array.from({ length: X.length }, () => 0);
|
|
4739
4771
|
}
|
|
4740
4772
|
s(Ke, "generateRealOutputFrequencyBands");
|
|
4741
|
-
function je(
|
|
4742
|
-
return Array.from({ length:
|
|
4743
|
-
const $ =
|
|
4773
|
+
function je(v) {
|
|
4774
|
+
return Array.from({ length: X.length }, (A, L) => {
|
|
4775
|
+
const $ = X[L], U = Math.floor($ / 12e3 * v.length), be = Math.max(1, Math.floor(v.length / X.length / 2));
|
|
4744
4776
|
let K = 0;
|
|
4745
|
-
for (let J = 0; J < be &&
|
|
4746
|
-
K +=
|
|
4777
|
+
for (let J = 0; J < be && U + J < v.length; J++)
|
|
4778
|
+
K += v[U + J];
|
|
4747
4779
|
K = K / be / 255;
|
|
4748
|
-
let
|
|
4749
|
-
$ < 150 ?
|
|
4750
|
-
const
|
|
4751
|
-
return Math.min(0.85,
|
|
4780
|
+
let F = 1;
|
|
4781
|
+
$ < 150 ? F = 0.1 : $ < 200 ? F = 0.3 : $ >= 400 && $ <= 600 ? F = 1.4 : $ >= 1400 && $ <= 1600 ? F = 1.3 : $ >= 2400 && $ <= 2600 ? F = 1.2 : $ >= 200 && $ <= 2e3 ? F = 1.1 : $ >= 2e3 && $ <= 4e3 ? F = 0.9 : $ > 6e3 ? F = 0.4 : F = 0.7;
|
|
4782
|
+
const oe = K ** 0.5 * 0.6 * F;
|
|
4783
|
+
return Math.min(0.85, oe);
|
|
4752
4784
|
});
|
|
4753
4785
|
}
|
|
4754
4786
|
s(je, "mapFrequencyDataToBands");
|
|
4755
|
-
let xe = 0, ye = 0,
|
|
4787
|
+
let xe = 0, ye = 0, G = 0;
|
|
4756
4788
|
const W = [
|
|
4757
4789
|
{ name: "a", f1: 730, f2: 1090, f3: 2440, duration: 120, energy: 0.9 },
|
|
4758
4790
|
{ name: "e", f1: 530, f2: 1840, f3: 2480, duration: 100, energy: 0.8 },
|
|
@@ -4765,40 +4797,40 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4765
4797
|
{ name: "r", f1: 350, f2: 1200, f3: 1650, duration: 90, energy: 0.7 },
|
|
4766
4798
|
{ name: "pause", f1: 0, f2: 0, f3: 0, duration: 150, energy: 0.05 }
|
|
4767
4799
|
];
|
|
4768
|
-
function Ee(
|
|
4769
|
-
const M = Array.from({ length:
|
|
4770
|
-
if (
|
|
4800
|
+
function Ee(v) {
|
|
4801
|
+
const M = Array.from({ length: X.length }, () => 0);
|
|
4802
|
+
if (v <= 0)
|
|
4771
4803
|
return M;
|
|
4772
|
-
ye += 16.67,
|
|
4773
|
-
const A = W[xe], L = W[(xe + 1) % W.length], $ = ye / A.duration,
|
|
4774
|
-
for (let K = 0; K <
|
|
4775
|
-
const
|
|
4804
|
+
ye += 16.67, G += 0.02, ye > W[xe].duration && (xe = (xe + 1) % W.length, ye = 0);
|
|
4805
|
+
const A = W[xe], L = W[(xe + 1) % W.length], $ = ye / A.duration, O = 0.5 * (1 + Math.cos(Math.PI + $ * Math.PI)), U = 0.7 + 0.3 * Math.sin(G * 0.5), be = 0.9 + 0.1 * Math.sin(G * 8);
|
|
4806
|
+
for (let K = 0; K < X.length; K++) {
|
|
4807
|
+
const F = X[K];
|
|
4776
4808
|
let k = 0;
|
|
4777
|
-
const de = Le(
|
|
4778
|
-
k = (de * 0.4 +
|
|
4779
|
-
const ae = 150 + 50 * Math.sin(
|
|
4780
|
-
(Math.abs(
|
|
4809
|
+
const de = Le(F, A.f1, L.f1, O, 200), oe = Le(F, A.f2, L.f2, O, 300), J = Le(F, A.f3, L.f3, O, 400);
|
|
4810
|
+
k = (de * 0.4 + oe * 0.35 + J * 0.25) * (A.energy * (1 - O) + L.energy * O);
|
|
4811
|
+
const ae = 150 + 50 * Math.sin(G * 0.3);
|
|
4812
|
+
(Math.abs(F - ae) < 20 || Math.abs(F - ae * 2) < 30 || Math.abs(F - ae * 3) < 40) && (k += 0.3 * A.energy), k *= v * U * be, k *= 0.85 + Math.random() * 0.3, M[K] = Math.max(0, Math.min(1, k));
|
|
4781
4813
|
}
|
|
4782
4814
|
return M;
|
|
4783
4815
|
}
|
|
4784
4816
|
s(Ee, "generateSpeechPatterns");
|
|
4785
|
-
function Le(
|
|
4817
|
+
function Le(v, M, A, L, $) {
|
|
4786
4818
|
if (M === 0 && A === 0)
|
|
4787
4819
|
return 0;
|
|
4788
|
-
const
|
|
4789
|
-
if (
|
|
4820
|
+
const O = M * (1 - L) + A * L;
|
|
4821
|
+
if (O === 0)
|
|
4790
4822
|
return 0;
|
|
4791
|
-
const
|
|
4792
|
-
return Math.exp(-((
|
|
4823
|
+
const U = Math.abs(v - O);
|
|
4824
|
+
return Math.exp(-((U / $) ** 2));
|
|
4793
4825
|
}
|
|
4794
4826
|
s(Le, "getFormantResponse");
|
|
4795
|
-
let
|
|
4827
|
+
let R = [], Re = 0, ke = 0;
|
|
4796
4828
|
function Te() {
|
|
4797
|
-
const
|
|
4798
|
-
return
|
|
4829
|
+
const v = a.value ? 100 : 50, M = Math.min(2 ** ke, 8);
|
|
4830
|
+
return v * M;
|
|
4799
4831
|
}
|
|
4800
4832
|
s(Te, "getApiThrottleInterval");
|
|
4801
|
-
function Ne(
|
|
4833
|
+
function Ne(v) {
|
|
4802
4834
|
let M = [];
|
|
4803
4835
|
if (r.enableRealAudio && r.isListening && c.value && C && u) {
|
|
4804
4836
|
const A = w();
|
|
@@ -4809,70 +4841,70 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4809
4841
|
if (L - Re > $) {
|
|
4810
4842
|
Re = L;
|
|
4811
4843
|
try {
|
|
4812
|
-
const
|
|
4813
|
-
|
|
4814
|
-
} catch (
|
|
4815
|
-
console.warn("Error fetching frequency data:",
|
|
4844
|
+
const U = Ke();
|
|
4845
|
+
U.some((K) => K > 0.05) && (R = U, ke = 0);
|
|
4846
|
+
} catch (U) {
|
|
4847
|
+
console.warn("Error fetching frequency data:", U), ke++;
|
|
4816
4848
|
}
|
|
4817
4849
|
}
|
|
4818
|
-
|
|
4850
|
+
R.some((U) => U > 0.05) && (M = R);
|
|
4819
4851
|
}
|
|
4820
|
-
return M.length || (
|
|
4852
|
+
return M.length || (v > 0 && (r.isListening || r.isSpeaking) ? M = r.isSpeaking ? Ee(v) : xt(v) : r.isConnected ? M = xt(0.02) : M = Array.from({ length: X.length }, () => 0)), r.enableWaveMotion && typeof window < "u" && (M = Pe(M, v)), M;
|
|
4821
4853
|
}
|
|
4822
4854
|
s(Ne, "generateFrequencyBands");
|
|
4823
|
-
function Pe(
|
|
4824
|
-
const A = performance.now() * 1e-3, L = [...
|
|
4825
|
-
for (let $ = 0; $ <
|
|
4826
|
-
const
|
|
4827
|
-
let
|
|
4855
|
+
function Pe(v, M) {
|
|
4856
|
+
const A = performance.now() * 1e-3, L = [...v];
|
|
4857
|
+
for (let $ = 0; $ < v.length; $++) {
|
|
4858
|
+
const O = $ * (2 * Math.PI) / v.length;
|
|
4859
|
+
let U = 0;
|
|
4828
4860
|
if (r.isListening || r.isSpeaking) {
|
|
4829
|
-
const K = Math.sin(A * 4.2 +
|
|
4830
|
-
|
|
4861
|
+
const K = Math.sin(A * 4.2 + O * 0.6 - (r.enableScrollingWave ? A * 2 : 0)) * 0.15, F = Math.sin(A * 6.8 + O * 1.2 - (r.enableScrollingWave ? A * 1.5 : 0)) * 0.08, k = Math.sin(A * 0.8) * 0.05;
|
|
4862
|
+
U = K + F + k;
|
|
4831
4863
|
} else if (r.isConnected) {
|
|
4832
|
-
const K = Math.sin(A * 0.6) * 0.1,
|
|
4833
|
-
|
|
4864
|
+
const K = Math.sin(A * 0.6) * 0.1, F = Math.sin(A * 2 + O * 0.3) * 0.05;
|
|
4865
|
+
U = K + F;
|
|
4834
4866
|
} else {
|
|
4835
|
-
const K = Math.sin(A * 1.5 +
|
|
4836
|
-
|
|
4867
|
+
const K = Math.sin(A * 1.5 + O) * 0.12, F = Math.sin(A * 0.4) * 0.05;
|
|
4868
|
+
U = K + F;
|
|
4837
4869
|
}
|
|
4838
4870
|
const be = Math.max(0.3, M);
|
|
4839
|
-
L[$] = Math.max(0, Math.min(0.9,
|
|
4871
|
+
L[$] = Math.max(0, Math.min(0.9, v[$] + U * be));
|
|
4840
4872
|
}
|
|
4841
4873
|
return L;
|
|
4842
4874
|
}
|
|
4843
4875
|
s(Pe, "addWaveMotionOverlay");
|
|
4844
|
-
function xt(
|
|
4845
|
-
const M = Array.from({ length:
|
|
4846
|
-
if (
|
|
4876
|
+
function xt(v) {
|
|
4877
|
+
const M = Array.from({ length: X.length }, () => 0);
|
|
4878
|
+
if (v <= 0)
|
|
4847
4879
|
return M;
|
|
4848
|
-
for (let A = 0; A <
|
|
4849
|
-
const L =
|
|
4880
|
+
for (let A = 0; A < X.length; A++) {
|
|
4881
|
+
const L = X[A];
|
|
4850
4882
|
let $ = 0;
|
|
4851
|
-
L >= 400 && L <= 600 ? $ =
|
|
4883
|
+
L >= 400 && L <= 600 ? $ = v * 0.9 : L >= 1400 && L <= 1600 ? $ = v * 0.8 : L >= 2400 && L <= 2600 ? $ = v * 0.7 : L >= 200 && L <= 2e3 ? $ = v * 0.6 : L >= 85 && L <= 300 ? $ = v * 0.4 : $ = v * 0.2, $ *= 0.8 + Math.random() * 0.4, M[A] = Math.max(0, Math.min(1, $));
|
|
4852
4884
|
}
|
|
4853
4885
|
return M;
|
|
4854
4886
|
}
|
|
4855
4887
|
s(xt, "generateIntensityBasedBands");
|
|
4856
|
-
function
|
|
4888
|
+
function Xt() {
|
|
4857
4889
|
if (typeof window > "u")
|
|
4858
4890
|
return;
|
|
4859
|
-
const
|
|
4891
|
+
const v = navigator.userAgent.toLowerCase(), M = /android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(v);
|
|
4860
4892
|
a.value = M;
|
|
4861
4893
|
}
|
|
4862
|
-
s(
|
|
4863
|
-
function
|
|
4864
|
-
return f.has(
|
|
4894
|
+
s(Xt, "detectMobile");
|
|
4895
|
+
function _t(v, M) {
|
|
4896
|
+
return f.has(v) || f.set(v, M()), f.get(v);
|
|
4865
4897
|
}
|
|
4866
|
-
s(
|
|
4867
|
-
function
|
|
4898
|
+
s(_t, "getGradient");
|
|
4899
|
+
function eo() {
|
|
4868
4900
|
f.clear(), h = null;
|
|
4869
4901
|
}
|
|
4870
|
-
s(
|
|
4902
|
+
s(eo, "clearGradientCache");
|
|
4871
4903
|
function nt() {
|
|
4872
4904
|
if (typeof window > "u" || !t || !o.value)
|
|
4873
4905
|
return;
|
|
4874
|
-
|
|
4875
|
-
const
|
|
4906
|
+
Xt();
|
|
4907
|
+
const v = o.value, M = v.width / q, A = v.height / q;
|
|
4876
4908
|
function L($) {
|
|
4877
4909
|
if (!t)
|
|
4878
4910
|
return;
|
|
@@ -4881,23 +4913,23 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4881
4913
|
return;
|
|
4882
4914
|
}
|
|
4883
4915
|
t.clearRect(0, 0, M, A);
|
|
4884
|
-
let
|
|
4885
|
-
r.audioLevels ? r.isListening ?
|
|
4886
|
-
const
|
|
4916
|
+
let O = 0;
|
|
4917
|
+
r.audioLevels ? r.isListening ? O = Math.min(r.audioLevels.inputLevel * 1.5, 1) : r.isSpeaking && (O = Math.min(r.audioLevels.outputLevel * 1.8, 1)) : r.rms !== void 0 && (O = Math.min(r.rms / 70, 1));
|
|
4918
|
+
const U = Ne(O);
|
|
4887
4919
|
for (let k = 0; k < y; k++)
|
|
4888
|
-
ne[k] = H +
|
|
4920
|
+
ne[k] = H + U[k] * (Q - H);
|
|
4889
4921
|
const be = 16.67;
|
|
4890
4922
|
for (let k = 0; k < y; k++) {
|
|
4891
|
-
const de =
|
|
4892
|
-
if (S[k] += le,
|
|
4893
|
-
ce[k] =
|
|
4923
|
+
const de = X[k], oe = We(de), J = ne[k] - se[k], ae = ze * oe.stiffnessMultiplier, Ve = Se * oe.dampingMultiplier, le = J * ae - S[k] * Ve;
|
|
4924
|
+
if (S[k] += le, se[k] += S[k], se[k] > ce[k])
|
|
4925
|
+
ce[k] = se[k], fe[k] = ue, ge[k] = 0;
|
|
4894
4926
|
else if (fe[k] = Math.max(0, fe[k] - be), fe[k] <= 0) {
|
|
4895
|
-
const Oe = (Math.max(H,
|
|
4927
|
+
const Oe = (Math.max(H, se[k] * 1.1) - ce[k]) * pe - ge[k] * he;
|
|
4896
4928
|
ge[k] += Oe, ce[k] = Math.max(H, ce[k] + ge[k]);
|
|
4897
4929
|
}
|
|
4898
4930
|
}
|
|
4899
4931
|
const K = y * 0.15;
|
|
4900
|
-
function
|
|
4932
|
+
function F() {
|
|
4901
4933
|
t && (h || (h = t.createRadialGradient(
|
|
4902
4934
|
M * 0.5,
|
|
4903
4935
|
A * 0.6,
|
|
@@ -4907,33 +4939,33 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4907
4939
|
A * 0.9
|
|
4908
4940
|
), h.addColorStop(0, "rgba(255,255,255,0.02)"), h.addColorStop(1, "rgba(0,0,0,0.08)")), t.fillStyle = h, t.fillRect(0, 0, M, A));
|
|
4909
4941
|
}
|
|
4910
|
-
if (s(
|
|
4942
|
+
if (s(F, "drawBackground"), F(), (r.isListening || r.isSpeaking) && !a.value) {
|
|
4911
4943
|
const k = performance.now() * 1e-3, de = 0.1 + Math.sin(k * 2) * 0.05;
|
|
4912
4944
|
t.save(), t.globalCompositeOperation = "lighter", t.globalAlpha = de;
|
|
4913
|
-
const
|
|
4914
|
-
t.fillStyle =
|
|
4945
|
+
const oe = r.isSpeaking ? "rgba(34,197,94,0.4)" : "rgba(59,130,246,0.4)";
|
|
4946
|
+
t.fillStyle = oe;
|
|
4915
4947
|
for (let J = 0; J < y; J++) {
|
|
4916
|
-
const ae = J * (g + P),
|
|
4917
|
-
t.beginPath(), t.roundRect(ae - 1, le - 1, g + 2,
|
|
4948
|
+
const ae = J * (g + P), Ve = se[J], le = A - Ve;
|
|
4949
|
+
t.beginPath(), t.roundRect(ae - 1, le - 1, g + 2, Ve + 2, [2, 2, 0, 0]), t.fill();
|
|
4918
4950
|
}
|
|
4919
4951
|
t.restore();
|
|
4920
4952
|
}
|
|
4921
4953
|
for (let k = 0; k < y; k++) {
|
|
4922
|
-
const de = k * (g + P),
|
|
4923
|
-
const
|
|
4954
|
+
const de = k * (g + P), oe = se[k], J = A - oe, ae = X[k], Ve = Math.min(k, y - 1 - k), le = Math.min(1, Ve / K), Ge = Math.min(1, oe / Q), Oe = (0.8 + Ge * 0.2) * le, kt = (0.6 + Ge * 0.2) * le, wt = (0.3 + Ge * 0.1) * le, to = Math.round(Ge * 10) / 10, oo = Math.round(le * 10) / 10, ro = `${r.isSpeaking ? "speaking" : r.isListening ? "listening" : "idle"}-${to}-${oo}-${oe}`, so = _t(ro, () => {
|
|
4955
|
+
const re = t.createLinearGradient(0, J, 0, J + oe);
|
|
4924
4956
|
if (r.isSpeaking)
|
|
4925
|
-
|
|
4957
|
+
re.addColorStop(0, `rgba(34, 197, 94, ${Oe})`), re.addColorStop(0.5, `rgba(34, 197, 94, ${kt})`), re.addColorStop(1, `rgba(34, 197, 94, ${wt})`), (ae >= 400 && ae <= 600 || ae >= 1400 && ae <= 1600) && re.addColorStop(0, `rgba(74, 222, 128, ${Math.min(1, Oe + 0.2)})`);
|
|
4926
4958
|
else if (r.isListening)
|
|
4927
|
-
|
|
4959
|
+
re.addColorStop(0, `rgba(59, 130, 246, ${Oe})`), re.addColorStop(0.5, `rgba(59, 130, 246, ${kt})`), re.addColorStop(1, `rgba(59, 130, 246, ${wt})`);
|
|
4928
4960
|
else {
|
|
4929
|
-
const Ze = 0.6 * le,
|
|
4930
|
-
|
|
4961
|
+
const Ze = 0.6 * le, no = 0.4 * le, ao = 0.2 * le;
|
|
4962
|
+
re.addColorStop(0, `rgba(156, 163, 175, ${Ze})`), re.addColorStop(0.6, `rgba(156, 163, 175, ${no})`), re.addColorStop(1, `rgba(156, 163, 175, ${ao})`);
|
|
4931
4963
|
}
|
|
4932
|
-
return
|
|
4964
|
+
return re;
|
|
4933
4965
|
});
|
|
4934
|
-
if (t.fillStyle =
|
|
4935
|
-
const
|
|
4936
|
-
t.fillStyle = `rgba(255, 255, 255, ${Ze})`, t.fillRect(de,
|
|
4966
|
+
if (t.fillStyle = so, t.beginPath(), t.roundRect(de, J, g, oe, [1, 1, 0, 0]), t.fill(), ce[k] > H + 2) {
|
|
4967
|
+
const re = A - ce[k], Ze = fe[k] > 0 ? 0.9 : Math.max(0.3, fe[k] / ue);
|
|
4968
|
+
t.fillStyle = `rgba(255, 255, 255, ${Ze})`, t.fillRect(de, re - 1, g, 2), Ze > 0.5 && !a.value && (t.shadowColor = r.isSpeaking ? "rgba(34, 197, 94, 0.5)" : "rgba(59, 130, 246, 0.5)", t.shadowBlur = 3, t.fillRect(de, re - 1, g, 2), t.shadowBlur = 0);
|
|
4937
4969
|
}
|
|
4938
4970
|
}
|
|
4939
4971
|
n = requestAnimationFrame(L);
|
|
@@ -4944,10 +4976,10 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4944
4976
|
if (o.value) {
|
|
4945
4977
|
if (t = o.value.getContext("2d"), ie(), typeof window < "u") {
|
|
4946
4978
|
window.addEventListener("resize", yt, { passive: !0 });
|
|
4947
|
-
const
|
|
4979
|
+
const v = /* @__PURE__ */ s(() => {
|
|
4948
4980
|
i.value = !document.hidden;
|
|
4949
4981
|
}, "handleVisibilityChange");
|
|
4950
|
-
document.addEventListener("visibilitychange",
|
|
4982
|
+
document.addEventListener("visibilitychange", v, { passive: !0 });
|
|
4951
4983
|
}
|
|
4952
4984
|
nt();
|
|
4953
4985
|
}
|
|
@@ -4957,8 +4989,8 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4957
4989
|
});
|
|
4958
4990
|
function yt() {
|
|
4959
4991
|
if (typeof window < "u") {
|
|
4960
|
-
const
|
|
4961
|
-
|
|
4992
|
+
const v = Math.max(1, Math.min(2, window.devicePixelRatio || 1));
|
|
4993
|
+
v !== q && (q = v);
|
|
4962
4994
|
}
|
|
4963
4995
|
ie();
|
|
4964
4996
|
}
|
|
@@ -4966,53 +4998,53 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
4966
4998
|
n && cancelAnimationFrame(n), typeof window < "u" && (window.removeEventListener("resize", yt), document.removeEventListener("visibilitychange", () => {
|
|
4967
4999
|
i.value = !document.hidden;
|
|
4968
5000
|
})), me();
|
|
4969
|
-
}),
|
|
5001
|
+
}), ee(
|
|
4970
5002
|
[() => r.isActive, () => r.isConnected, () => r.isListening, () => r.isSpeaking, () => r.rms],
|
|
4971
5003
|
() => {
|
|
4972
5004
|
!t && o.value && (t = o.value.getContext("2d")), n && cancelAnimationFrame(n), nt();
|
|
4973
5005
|
},
|
|
4974
5006
|
{ immediate: !0 }
|
|
4975
|
-
),
|
|
5007
|
+
), ee(
|
|
4976
5008
|
[() => r.enableRealAudio, () => r.isListening],
|
|
4977
|
-
async ([
|
|
4978
|
-
|
|
5009
|
+
async ([v, M], [A, L]) => {
|
|
5010
|
+
v && M && (!A || !L) && (c.value || await $e().catch(console.error)), (!v || !M) && A && L && me();
|
|
4979
5011
|
},
|
|
4980
5012
|
{ immediate: !1 }
|
|
4981
|
-
),
|
|
4982
|
-
|
|
4983
|
-
}), (
|
|
5013
|
+
), ee(o, (v) => {
|
|
5014
|
+
v && !t && (t = v.getContext("2d"), ie(), nt());
|
|
5015
|
+
}), (v, M) => (d(), b("div", fs, [
|
|
4984
5016
|
l("canvas", {
|
|
4985
5017
|
ref_key: "canvasRef",
|
|
4986
5018
|
ref: o,
|
|
4987
5019
|
width: (Y(g) + Y(P)) * Y(y) - Y(P),
|
|
4988
|
-
height: Y(
|
|
5020
|
+
height: Y(Q),
|
|
4989
5021
|
class: "w-full max-w-full [image-rendering:-webkit-optimize-contrast]",
|
|
4990
|
-
style: st({ height: `${Y(
|
|
4991
|
-
}, null, 12,
|
|
5022
|
+
style: st({ height: `${Y(Q)}px` })
|
|
5023
|
+
}, null, 12, gs)
|
|
4992
5024
|
]));
|
|
4993
5025
|
}
|
|
4994
|
-
}),
|
|
5026
|
+
}), bs = { class: "flex flex-col h-full items-center justify-center px-6 py-8" }, vs = { class: "flex-1 flex flex-col items-center justify-center space-y-8 py-4" }, ps = { class: "h-32 w-full max-w-md" }, xs = { class: "text-center flex gap-2 items-center text-xs" }, ys = { class: "flex items-center justify-center gap-2" }, ks = {
|
|
4995
5027
|
key: 0,
|
|
4996
5028
|
class: "size-2 bg-blue-500 rounded-full animate-pulse"
|
|
4997
|
-
},
|
|
5029
|
+
}, ws = {
|
|
4998
5030
|
key: 1,
|
|
4999
5031
|
class: "size-2 bg-green-500 rounded-full animate-pulse"
|
|
5000
|
-
},
|
|
5032
|
+
}, Cs = {
|
|
5001
5033
|
key: 2,
|
|
5002
5034
|
class: "size-2 bg-white/50 rounded-full"
|
|
5003
|
-
},
|
|
5035
|
+
}, Ss = {
|
|
5004
5036
|
key: 3,
|
|
5005
5037
|
class: "size-2 bg-red-500 rounded-full"
|
|
5006
|
-
},
|
|
5038
|
+
}, Ms = { class: "text-white/70 text-sm max-w-xs leading-relaxed" }, As = { class: "flex flex-col items-center space-y-6" }, Is = /* @__PURE__ */ j({
|
|
5007
5039
|
__name: "ElSelfVoice",
|
|
5008
5040
|
props: {
|
|
5009
5041
|
selfController: {}
|
|
5010
5042
|
},
|
|
5011
5043
|
setup(e) {
|
|
5012
|
-
const r =
|
|
5044
|
+
const r = V(() => e.selfController?.voiceState.value), o = V(() => r.value?.isConnected ? "red" : "green"), t = V(() => r.value?.isConnected ? "i-heroicons-phone-x-mark" : "i-heroicons-phone"), n = V(() => r.value?.isConnected ? "End Call" : "Start a Call"), a = V(() => {
|
|
5013
5045
|
const h = e.selfController?.voiceState.value;
|
|
5014
5046
|
return !!h?.error || h?.connectionStatus === "connecting";
|
|
5015
|
-
}), i =
|
|
5047
|
+
}), i = V(() => r.value?.connectionStatus === "connecting");
|
|
5016
5048
|
async function f() {
|
|
5017
5049
|
if (e.selfController)
|
|
5018
5050
|
try {
|
|
@@ -5021,10 +5053,10 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5021
5053
|
console.error("Error toggling call:", h);
|
|
5022
5054
|
}
|
|
5023
5055
|
}
|
|
5024
|
-
return s(f, "toggleCall"), (h, C) => (d(),
|
|
5025
|
-
l("div",
|
|
5026
|
-
l("div",
|
|
5027
|
-
|
|
5056
|
+
return s(f, "toggleCall"), (h, C) => (d(), b("div", bs, [
|
|
5057
|
+
l("div", vs, [
|
|
5058
|
+
l("div", ps, [
|
|
5059
|
+
B(ms, {
|
|
5028
5060
|
"audio-levels": e.selfController?.audioLevels.value ?? { inputLevel: 0, outputLevel: 0 },
|
|
5029
5061
|
"is-listening": e.selfController?.voiceState.value.isListening ?? !1,
|
|
5030
5062
|
"is-speaking": e.selfController?.voiceState.value.isSpeaking ?? !1,
|
|
@@ -5035,15 +5067,15 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5035
5067
|
"self-controller": e.selfController
|
|
5036
5068
|
}, null, 8, ["audio-levels", "is-listening", "is-speaking", "is-connected", "self-controller"])
|
|
5037
5069
|
]),
|
|
5038
|
-
l("div",
|
|
5039
|
-
l("div",
|
|
5040
|
-
e.selfController?.voiceState.value.isListening ? (d(),
|
|
5070
|
+
l("div", xs, [
|
|
5071
|
+
l("div", ys, [
|
|
5072
|
+
e.selfController?.voiceState.value.isListening ? (d(), b("div", ks)) : e.selfController?.voiceState.value.isSpeaking ? (d(), b("div", ws)) : e.selfController?.voiceState.value.isConnected && !e.selfController?.voiceState.value.isListening && !e.selfController?.voiceState.value.isSpeaking ? (d(), b("div", Cs)) : e.selfController?.voiceState.value.error ? (d(), b("div", Ss)) : E("", !0)
|
|
5041
5073
|
]),
|
|
5042
|
-
l("p",
|
|
5074
|
+
l("p", Ms, N(e.selfController?.voiceState.value.error ? `Error: ${e.selfController.voiceState.value.error}` : e.selfController?.voiceState.value.transcript || "Ready to start a call..."), 1)
|
|
5043
5075
|
])
|
|
5044
5076
|
]),
|
|
5045
|
-
l("div",
|
|
5046
|
-
|
|
5077
|
+
l("div", As, [
|
|
5078
|
+
B(mt, {
|
|
5047
5079
|
theme: o.value,
|
|
5048
5080
|
icon: t.value,
|
|
5049
5081
|
size: "lg",
|
|
@@ -5051,36 +5083,36 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5051
5083
|
disabled: a.value,
|
|
5052
5084
|
onClick: f
|
|
5053
5085
|
}, {
|
|
5054
|
-
default:
|
|
5055
|
-
He(
|
|
5086
|
+
default: te(() => [
|
|
5087
|
+
He(N(n.value), 1)
|
|
5056
5088
|
]),
|
|
5057
5089
|
_: 1
|
|
5058
5090
|
}, 8, ["theme", "icon", "loading", "disabled"])
|
|
5059
5091
|
])
|
|
5060
5092
|
]));
|
|
5061
5093
|
}
|
|
5062
|
-
}),
|
|
5094
|
+
}), zs = {
|
|
5063
5095
|
key: 0,
|
|
5064
5096
|
class: "absolute inset-0 flex items-center justify-center bg-gradient-to-br from-theme-800 to-theme-950 rounded-3xl z-10"
|
|
5065
|
-
},
|
|
5097
|
+
}, $s = { class: "text-sm" }, Es = {
|
|
5066
5098
|
key: 0,
|
|
5067
5099
|
class: "flex-1 basis-0 flex justify-end"
|
|
5068
|
-
},
|
|
5100
|
+
}, Ls = {
|
|
5069
5101
|
key: 0,
|
|
5070
5102
|
class: "h-full pb-12 flex-1 flex flex-col relative z-20 min-h-0 px-4 @[480px]/agent:px-6 max-w-md mx-auto w-full"
|
|
5071
|
-
},
|
|
5103
|
+
}, Ts = { class: "flex-1 basis-0 flex flex-col justify-start pt-6" }, Ps = {
|
|
5072
5104
|
key: 1,
|
|
5073
5105
|
class: "flex-1 flex flex-col relative z-20 min-h-0 w-full"
|
|
5074
|
-
},
|
|
5106
|
+
}, Vs = { class: "px-4 pt-4 pb-4 max-w-md mx-auto" }, Fs = {
|
|
5075
5107
|
key: 2,
|
|
5076
5108
|
class: "flex-1 flex flex-col relative z-20 min-h-0 w-full px-4 @[480px]/agent:px-6"
|
|
5077
|
-
},
|
|
5109
|
+
}, Ds = { class: "flex-1 min-h-0 max-w-md mx-auto w-full" }, Bs = {
|
|
5078
5110
|
key: 2,
|
|
5079
5111
|
class: "bg-gradient-to-br from-theme-800 to-theme-950 text-white flex items-center justify-center h-full p-8"
|
|
5080
|
-
},
|
|
5112
|
+
}, js = { class: "text-center max-w-md space-y-4" }, Rs = { class: "text-sm text-white/70 leading-relaxed" }, Ns = {
|
|
5081
5113
|
key: 3,
|
|
5082
5114
|
class: "bg-white/10 backdrop-blur-sm text-white/70 flex items-center justify-center h-full"
|
|
5083
|
-
},
|
|
5115
|
+
}, Jt = /* @__PURE__ */ j({
|
|
5084
5116
|
__name: "SelfAgent",
|
|
5085
5117
|
props: {
|
|
5086
5118
|
sdk: {},
|
|
@@ -5094,7 +5126,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5094
5126
|
},
|
|
5095
5127
|
emits: ["close", "error"],
|
|
5096
5128
|
setup(e, { emit: r }) {
|
|
5097
|
-
const o = r, t = uo(), n = T(!1), a = T(!1), i = T(), f = T(), h =
|
|
5129
|
+
const o = r, t = uo(), n = T(!1), a = T(!1), i = T(), f = T(), h = V(() => t.value?.agentMode?.value ?? "self"), C = V(() => e.sdk.activeUser.value !== void 0), u = V(() => Bt.find((g) => g.mode === h.value));
|
|
5098
5130
|
function c() {
|
|
5099
5131
|
t.value && t.value.destroy();
|
|
5100
5132
|
try {
|
|
@@ -5126,18 +5158,20 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5126
5158
|
}
|
|
5127
5159
|
}), ft(() => {
|
|
5128
5160
|
t.value && t.value.destroy();
|
|
5129
|
-
}),
|
|
5161
|
+
}), ee(() => e.theme, (y) => {
|
|
5130
5162
|
m(y);
|
|
5131
|
-
}), (
|
|
5163
|
+
}), ee(() => e.sdk.activeUser.value, (y, g) => {
|
|
5164
|
+
g && !y && t.value && t.value.setMode("self");
|
|
5165
|
+
}), (y, g) => (d(), b("div", {
|
|
5132
5166
|
ref_key: "rootElement",
|
|
5133
5167
|
ref: f,
|
|
5134
5168
|
key: Y(tt)(e.self),
|
|
5135
5169
|
class: "@container/agent self-agent w-full h-full overflow-hidden relative",
|
|
5136
5170
|
"data-test": "self-agent"
|
|
5137
5171
|
}, [
|
|
5138
|
-
e.loading ? (d(),
|
|
5139
|
-
|
|
5140
|
-
])) : e.self && !i.value ? (d(),
|
|
5172
|
+
e.loading ? (d(), b("div", zs, [
|
|
5173
|
+
B(gt, { class: "text-white size-8" })
|
|
5174
|
+
])) : e.self && !i.value ? (d(), b("div", {
|
|
5141
5175
|
key: 1,
|
|
5142
5176
|
class: "absolute inset-0 bg-cover bg-center bg-no-repeat",
|
|
5143
5177
|
style: st({ backgroundImage: `url(${Y(tt)(e.self) || Y(qe)()})` })
|
|
@@ -5171,10 +5205,10 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5171
5205
|
l("i", {
|
|
5172
5206
|
class: z([u.value?.icon, "size-4 opacity-60"])
|
|
5173
5207
|
}, null, 2),
|
|
5174
|
-
l("span",
|
|
5208
|
+
l("span", $s, N(u.value?.label), 1),
|
|
5175
5209
|
g[7] || (g[7] = l("i", { class: "i-tabler-chevron-down size-4" }, null, -1))
|
|
5176
5210
|
], 2),
|
|
5177
|
-
e.hasClose ? (d(),
|
|
5211
|
+
e.hasClose ? (d(), b("div", Es, [
|
|
5178
5212
|
l("button", {
|
|
5179
5213
|
class: "cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",
|
|
5180
5214
|
onClick: g[2] || (g[2] = et((P) => o("close", "button"), ["stop"]))
|
|
@@ -5184,11 +5218,11 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5184
5218
|
])) : E("", !0)
|
|
5185
5219
|
], 2)
|
|
5186
5220
|
], 2),
|
|
5187
|
-
h.value === "self" ? (d(),
|
|
5221
|
+
h.value === "self" ? (d(), b("div", Ls, [
|
|
5188
5222
|
g[9] || (g[9] = l("div", { class: "flex-1 basis-0 mb-36" }, null, -1)),
|
|
5189
|
-
|
|
5190
|
-
l("div",
|
|
5191
|
-
|
|
5223
|
+
B(ts, { self: e.self }, null, 8, ["self"]),
|
|
5224
|
+
l("div", Ts, [
|
|
5225
|
+
B(mt, {
|
|
5192
5226
|
theme: "primary",
|
|
5193
5227
|
size: "lg",
|
|
5194
5228
|
class: "w-full",
|
|
@@ -5196,36 +5230,36 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5196
5230
|
"data-test": "voice-button",
|
|
5197
5231
|
onClick: g[3] || (g[3] = (P) => t.value?.setMode("talk"))
|
|
5198
5232
|
}, {
|
|
5199
|
-
default:
|
|
5200
|
-
He(" Talk to " +
|
|
5233
|
+
default: te(() => [
|
|
5234
|
+
He(" Talk to " + N(e.self.name), 1)
|
|
5201
5235
|
]),
|
|
5202
5236
|
_: 1
|
|
5203
5237
|
})
|
|
5204
5238
|
])
|
|
5205
|
-
])) : h.value === "talk" ? (d(),
|
|
5206
|
-
C.value ? (d(),
|
|
5239
|
+
])) : h.value === "talk" ? (d(), b("div", Ps, [
|
|
5240
|
+
C.value ? (d(), b(Ae, { key: 1 }, [
|
|
5207
5241
|
l("div", null, [
|
|
5208
|
-
l("div",
|
|
5209
|
-
|
|
5242
|
+
l("div", Vs, [
|
|
5243
|
+
B(Oo, { self: e.self }, null, 8, ["self"])
|
|
5210
5244
|
])
|
|
5211
5245
|
]),
|
|
5212
|
-
|
|
5213
|
-
], 64)) : (d(),
|
|
5246
|
+
B(Is, { "self-controller": t.value }, null, 8, ["self-controller"])
|
|
5247
|
+
], 64)) : (d(), _(zt, {
|
|
5214
5248
|
key: 0,
|
|
5215
5249
|
sdk: e.sdk
|
|
5216
5250
|
}, null, 8, ["sdk"]))
|
|
5217
|
-
])) : (d(),
|
|
5218
|
-
l("div",
|
|
5219
|
-
h.value === "chat" ? (d(),
|
|
5220
|
-
C.value ? (d(),
|
|
5251
|
+
])) : (d(), b("div", Fs, [
|
|
5252
|
+
l("div", Ds, [
|
|
5253
|
+
h.value === "chat" ? (d(), b(Ae, { key: 0 }, [
|
|
5254
|
+
C.value ? (d(), _(Kr, {
|
|
5221
5255
|
key: 1,
|
|
5222
5256
|
"self-controller": t.value,
|
|
5223
5257
|
self: e.self
|
|
5224
|
-
}, null, 8, ["self-controller", "self"])) : (d(),
|
|
5258
|
+
}, null, 8, ["self-controller", "self"])) : (d(), _(zt, {
|
|
5225
5259
|
key: 0,
|
|
5226
5260
|
sdk: e.sdk
|
|
5227
5261
|
}, null, 8, ["sdk"]))
|
|
5228
|
-
], 64)) : h.value === "info" ? (d(),
|
|
5262
|
+
], 64)) : h.value === "info" ? (d(), _(Fr, {
|
|
5229
5263
|
key: 1,
|
|
5230
5264
|
self: e.self
|
|
5231
5265
|
}, null, 8, ["self"])) : E("", !0)
|
|
@@ -5244,38 +5278,38 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5244
5278
|
], -1)
|
|
5245
5279
|
])], 2)
|
|
5246
5280
|
], 2)
|
|
5247
|
-
], 4)) : i.value ? (d(),
|
|
5248
|
-
l("div",
|
|
5281
|
+
], 4)) : i.value ? (d(), b("div", Bs, [
|
|
5282
|
+
l("div", js, [
|
|
5249
5283
|
g[11] || (g[11] = l("div", { class: "flex justify-center" }, [
|
|
5250
5284
|
l("div", { class: "rounded-full bg-red-500/20 flex items-center justify-center size-10" }, [
|
|
5251
5285
|
l("i", { class: "i-tabler-alert-circle size-6 text-red-400" })
|
|
5252
5286
|
])
|
|
5253
5287
|
], -1)),
|
|
5254
5288
|
g[12] || (g[12] = l("h3", { class: "text-lg font-medium" }, " Self Error ", -1)),
|
|
5255
|
-
l("p",
|
|
5289
|
+
l("p", Rs, N(i.value), 1)
|
|
5256
5290
|
])
|
|
5257
|
-
])) : (d(),
|
|
5258
|
-
|
|
5291
|
+
])) : (d(), b("div", Ns, " There was an error loading the digital self. Please try again later. ")),
|
|
5292
|
+
B(hs, {
|
|
5259
5293
|
modelValue: n.value,
|
|
5260
5294
|
"onUpdate:modelValue": g[4] || (g[4] = (P) => n.value = P),
|
|
5261
5295
|
self: e.self,
|
|
5262
5296
|
sdk: e.sdk,
|
|
5263
5297
|
title: e.self.name
|
|
5264
5298
|
}, null, 8, ["modelValue", "self", "sdk", "title"]),
|
|
5265
|
-
|
|
5299
|
+
B(us, {
|
|
5266
5300
|
modelValue: a.value,
|
|
5267
5301
|
"onUpdate:modelValue": g[5] || (g[5] = (P) => a.value = P),
|
|
5268
5302
|
"self-controller": t.value
|
|
5269
5303
|
}, null, 8, ["modelValue", "self-controller"])
|
|
5270
5304
|
]));
|
|
5271
5305
|
}
|
|
5272
|
-
}),
|
|
5306
|
+
}), Gs = { class: "self-wrap" }, Os = {
|
|
5273
5307
|
key: 0,
|
|
5274
5308
|
class: "flex items-center justify-center h-full"
|
|
5275
|
-
},
|
|
5309
|
+
}, Us = {
|
|
5276
5310
|
key: 2,
|
|
5277
5311
|
class: "flex items-center justify-center h-full text-theme-500 text-xs"
|
|
5278
|
-
},
|
|
5312
|
+
}, Hs = { class: "flex flex-col items-center gap-2" }, Qt = /* @__PURE__ */ j({
|
|
5279
5313
|
__name: "SelfWrap",
|
|
5280
5314
|
props: {
|
|
5281
5315
|
sdk: {},
|
|
@@ -5305,29 +5339,29 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5305
5339
|
} finally {
|
|
5306
5340
|
o.value = !1;
|
|
5307
5341
|
}
|
|
5308
|
-
}), (a, i) => (d(),
|
|
5309
|
-
o.value ? (d(),
|
|
5342
|
+
}), (a, i) => (d(), b("div", Gs, [
|
|
5343
|
+
o.value ? (d(), b("div", Os, [...i[0] || (i[0] = [
|
|
5310
5344
|
l("div", { class: "animate-spin rounded-full size-6 border-b-2 border-white" }, null, -1)
|
|
5311
|
-
])])) : t.value ?
|
|
5345
|
+
])])) : t.value ? Ce(a.$slots, "default", {
|
|
5312
5346
|
key: 1,
|
|
5313
5347
|
self: t.value,
|
|
5314
5348
|
context: e.context,
|
|
5315
5349
|
firstMessage: e.firstMessage,
|
|
5316
5350
|
loading: o.value
|
|
5317
|
-
}) : n.value ? (d(),
|
|
5318
|
-
l("div",
|
|
5351
|
+
}) : n.value ? (d(), b("div", Us, [
|
|
5352
|
+
l("div", Hs, [
|
|
5319
5353
|
i[1] || (i[1] = l("div", null, [
|
|
5320
5354
|
l("div", { class: "i-tabler-user-off size-8" })
|
|
5321
5355
|
], -1)),
|
|
5322
|
-
l("div", null,
|
|
5356
|
+
l("div", null, N(n.value), 1)
|
|
5323
5357
|
])
|
|
5324
5358
|
])) : E("", !0)
|
|
5325
5359
|
]));
|
|
5326
5360
|
}
|
|
5327
|
-
}),
|
|
5361
|
+
}), qs = {
|
|
5328
5362
|
key: 0,
|
|
5329
5363
|
class: "relative h-full w-full"
|
|
5330
|
-
},
|
|
5364
|
+
}, Ws = { class: "group relative h-full w-full rounded-3xl overflow-hidden shadow-lg transition-all duration-300 ease-[cubic-bezier(0.25,1,0.33,1)] hover:shadow-2xl hover:translate-y-[-1px] hover:brightness-110 active:scale-[1.06] active:-translate-y-0.5 active:duration-100" }, Ks = ["src", "alt"], ln = /* @__PURE__ */ j({
|
|
5331
5365
|
__name: "FictionWidget",
|
|
5332
5366
|
props: {
|
|
5333
5367
|
sdk: {},
|
|
@@ -5341,7 +5375,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5341
5375
|
function a() {
|
|
5342
5376
|
t.value = !t.value;
|
|
5343
5377
|
}
|
|
5344
|
-
s(a, "toggle"),
|
|
5378
|
+
s(a, "toggle"), ee(t, async (C) => {
|
|
5345
5379
|
C ? (await Xe(), setTimeout(() => {
|
|
5346
5380
|
n.value = !0;
|
|
5347
5381
|
}, 400)) : n.value = !1;
|
|
@@ -5361,14 +5395,14 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5361
5395
|
toggle: a,
|
|
5362
5396
|
open: i,
|
|
5363
5397
|
close: f
|
|
5364
|
-
}), (C, u) => (d(),
|
|
5398
|
+
}), (C, u) => (d(), _(Qt, {
|
|
5365
5399
|
sdk: e.sdk,
|
|
5366
5400
|
handle: e.handle,
|
|
5367
5401
|
context: e.context,
|
|
5368
5402
|
"first-message": e.firstMessage
|
|
5369
5403
|
}, {
|
|
5370
|
-
default:
|
|
5371
|
-
c ? (d(),
|
|
5404
|
+
default: te(({ self: c }) => [
|
|
5405
|
+
c ? (d(), b("div", {
|
|
5372
5406
|
key: 0,
|
|
5373
5407
|
class: z(["fixed z-[999999] pointer-events-auto", [
|
|
5374
5408
|
o.position === "bottom-left" ? "bottom-6 left-6" : o.position === "top-right" ? "top-6 right-6" : o.position === "top-left" ? "top-6 left-6" : "bottom-6 right-6"
|
|
@@ -5383,13 +5417,13 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5383
5417
|
}),
|
|
5384
5418
|
onClick: u[0] || (u[0] = (m) => t.value ? void 0 : a())
|
|
5385
5419
|
}, [
|
|
5386
|
-
t.value ? E("", !0) : (d(),
|
|
5387
|
-
l("div",
|
|
5420
|
+
t.value ? E("", !0) : (d(), b("div", qs, [
|
|
5421
|
+
l("div", Ws, [
|
|
5388
5422
|
l("img", {
|
|
5389
5423
|
src: Y(tt)(c) || Y(qe)(),
|
|
5390
5424
|
alt: `${c.name} avatar`,
|
|
5391
5425
|
class: "h-full w-full object-cover pointer-events-none"
|
|
5392
|
-
}, null, 8,
|
|
5426
|
+
}, null, 8, Ks),
|
|
5393
5427
|
u[1] || (u[1] = l("div", { class: "absolute inset-0 pointer-events-none bg-gradient-to-br from-transparent via-black/10 to-black/40 opacity-60 transition-opacity duration-300 group-hover:opacity-40" }, null, -1))
|
|
5394
5428
|
]),
|
|
5395
5429
|
u[2] || (u[2] = l("div", { class: "absolute top-0.5 right-0.5" }, [
|
|
@@ -5400,7 +5434,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5400
5434
|
l("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" })
|
|
5401
5435
|
], -1))
|
|
5402
5436
|
])),
|
|
5403
|
-
t.value && c ? (d(),
|
|
5437
|
+
t.value && c ? (d(), _(Jt, {
|
|
5404
5438
|
key: 1,
|
|
5405
5439
|
class: "rounded-3xl shadow-2xl border border-white/10",
|
|
5406
5440
|
sdk: e.sdk,
|
|
@@ -5417,16 +5451,16 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5417
5451
|
_: 1
|
|
5418
5452
|
}, 8, ["sdk", "handle", "context", "first-message"]));
|
|
5419
5453
|
}
|
|
5420
|
-
}),
|
|
5454
|
+
}), Zs = { class: "flex min-h-full items-center justify-center text-center p-4 py-8" }, Ys = {
|
|
5421
5455
|
key: 0,
|
|
5422
5456
|
class: "text-base p-4 font-semibold"
|
|
5423
|
-
},
|
|
5457
|
+
}, Js = {
|
|
5424
5458
|
key: 1,
|
|
5425
5459
|
class: "flex items-center gap-2 px-2"
|
|
5426
|
-
},
|
|
5460
|
+
}, Qs = {
|
|
5427
5461
|
inheritAttrs: !1
|
|
5428
|
-
},
|
|
5429
|
-
...
|
|
5462
|
+
}, Xs = /* @__PURE__ */ j({
|
|
5463
|
+
...Qs,
|
|
5430
5464
|
name: "FModal",
|
|
5431
5465
|
__name: "FModal",
|
|
5432
5466
|
props: {
|
|
@@ -5460,7 +5494,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5460
5494
|
], h = T(!1), C = [];
|
|
5461
5495
|
Ie(async () => {
|
|
5462
5496
|
t.value = !0;
|
|
5463
|
-
const c =
|
|
5497
|
+
const c = ee(
|
|
5464
5498
|
() => e.vis,
|
|
5465
5499
|
(m) => {
|
|
5466
5500
|
m ? setTimeout(() => h.value = !0, 300) : h.value = !1;
|
|
@@ -5471,7 +5505,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5471
5505
|
}), ft(() => {
|
|
5472
5506
|
C.forEach((c) => c());
|
|
5473
5507
|
});
|
|
5474
|
-
const u =
|
|
5508
|
+
const u = V(() => e.transitionMode === "slideUp" ? {
|
|
5475
5509
|
enterActiveClass: "ease-[cubic-bezier(0.25,1,0.33,1)] duration-500",
|
|
5476
5510
|
enterFromClass: "opacity-0 translate-y-full scale-95",
|
|
5477
5511
|
enterToClass: "opacity-100 translate-y-0 scale-100",
|
|
@@ -5486,7 +5520,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5486
5520
|
leaveFromClass: "opacity-100 translate-y-0 scale-100",
|
|
5487
5521
|
leaveToClass: "opacity-0 scale-75"
|
|
5488
5522
|
});
|
|
5489
|
-
return (c, m) => t.value ? (d(),
|
|
5523
|
+
return (c, m) => t.value ? (d(), _(ho, {
|
|
5490
5524
|
key: 0,
|
|
5491
5525
|
to: e.teleportTo
|
|
5492
5526
|
}, [
|
|
@@ -5496,7 +5530,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5496
5530
|
role: "dialog",
|
|
5497
5531
|
"aria-modal": "true"
|
|
5498
5532
|
}, [
|
|
5499
|
-
|
|
5533
|
+
B(_e, {
|
|
5500
5534
|
"enter-active-class": "ease-out duration-300",
|
|
5501
5535
|
"enter-from-class": "opacity-0",
|
|
5502
5536
|
"enter-to-class": "opacity-100",
|
|
@@ -5504,8 +5538,8 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5504
5538
|
"leave-from-class": "opacity-100",
|
|
5505
5539
|
"leave-to-class": "opacity-0"
|
|
5506
5540
|
}, {
|
|
5507
|
-
default:
|
|
5508
|
-
e.vis ? (d(),
|
|
5541
|
+
default: te(() => [
|
|
5542
|
+
e.vis ? (d(), b("div", {
|
|
5509
5543
|
key: 0,
|
|
5510
5544
|
class: "fixed inset-0 bg-theme-800/60 active:bg-theme-800/80 cursor-pointer dark:bg-theme-600/90 backdrop-blur-sm transition-opacity",
|
|
5511
5545
|
onClick: m[0] || (m[0] = (y) => n({ reason: "escape" }))
|
|
@@ -5517,23 +5551,23 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5517
5551
|
class: "fixed inset-0 z-40 overflow-y-auto",
|
|
5518
5552
|
onClick: m[3] || (m[3] = (y) => n({ reason: "escape" }))
|
|
5519
5553
|
}, [
|
|
5520
|
-
l("div",
|
|
5521
|
-
|
|
5522
|
-
default:
|
|
5523
|
-
e.vis ? (d(),
|
|
5554
|
+
l("div", Zs, [
|
|
5555
|
+
B(_e, fo(go(u.value)), {
|
|
5556
|
+
default: te(() => [
|
|
5557
|
+
e.vis ? (d(), b("div", {
|
|
5524
5558
|
key: 0,
|
|
5525
5559
|
class: z([f, "overflow-visible w-full"]),
|
|
5526
5560
|
onClick: m[2] || (m[2] = et(() => {
|
|
5527
5561
|
}, ["stop"]))
|
|
5528
5562
|
}, [
|
|
5529
|
-
e.hasClose || e.title || c.$slots.actions ? (d(),
|
|
5563
|
+
e.hasClose || e.title || c.$slots.actions ? (d(), b("div", {
|
|
5530
5564
|
key: 0,
|
|
5531
5565
|
class: z(!e.title && (e.hasClose || c.$slots.actions) ? "absolute top-0 right-0 z-10" : "flex justify-between items-center")
|
|
5532
5566
|
}, [
|
|
5533
|
-
e.title ? (d(),
|
|
5534
|
-
e.hasClose || c.$slots.actions ? (d(),
|
|
5535
|
-
|
|
5536
|
-
e.hasClose ? (d(),
|
|
5567
|
+
e.title ? (d(), b("h2", Ys, N(e.title), 1)) : E("", !0),
|
|
5568
|
+
e.hasClose || c.$slots.actions ? (d(), b("div", Js, [
|
|
5569
|
+
Ce(c.$slots, "actions"),
|
|
5570
|
+
e.hasClose ? (d(), _(Zt, {
|
|
5537
5571
|
key: 0,
|
|
5538
5572
|
class: "relative",
|
|
5539
5573
|
"data-test-id": "close-modal",
|
|
@@ -5541,7 +5575,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5541
5575
|
})) : E("", !0)
|
|
5542
5576
|
])) : E("", !0)
|
|
5543
5577
|
], 2)) : E("", !0),
|
|
5544
|
-
|
|
5578
|
+
Ce(c.$slots, "default")
|
|
5545
5579
|
])) : E("", !0)
|
|
5546
5580
|
]),
|
|
5547
5581
|
_: 3
|
|
@@ -5551,7 +5585,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5551
5585
|
], 2)
|
|
5552
5586
|
], 8, ["to"])) : E("", !0);
|
|
5553
5587
|
}
|
|
5554
|
-
}),
|
|
5588
|
+
}), _s = /* @__PURE__ */ j({
|
|
5555
5589
|
__name: "SelfProvider",
|
|
5556
5590
|
props: {
|
|
5557
5591
|
sdk: {},
|
|
@@ -5563,9 +5597,9 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5563
5597
|
},
|
|
5564
5598
|
setup(e) {
|
|
5565
5599
|
const r = e;
|
|
5566
|
-
return (o, t) => (d(),
|
|
5567
|
-
default:
|
|
5568
|
-
|
|
5600
|
+
return (o, t) => (d(), _(Qt, St(r, { class: "self-provider size-full relative" }), {
|
|
5601
|
+
default: te((n) => [
|
|
5602
|
+
B(Jt, St(r, {
|
|
5569
5603
|
self: n.self,
|
|
5570
5604
|
"is-active": !0,
|
|
5571
5605
|
class: "size-full"
|
|
@@ -5574,7 +5608,7 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5574
5608
|
_: 1
|
|
5575
5609
|
}, 16));
|
|
5576
5610
|
}
|
|
5577
|
-
}),
|
|
5611
|
+
}), en = { class: "relative w-full h-[80vh] md:h-[600px]" }, cn = /* @__PURE__ */ j({
|
|
5578
5612
|
name: "SelfModal",
|
|
5579
5613
|
__name: "SelfModal",
|
|
5580
5614
|
props: {
|
|
@@ -5588,20 +5622,20 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5588
5622
|
emits: ["update:modelValue"],
|
|
5589
5623
|
setup(e, { emit: r }) {
|
|
5590
5624
|
const o = r, t = T(e.modelValue);
|
|
5591
|
-
return
|
|
5625
|
+
return ee(() => e.modelValue, (n) => {
|
|
5592
5626
|
t.value = n;
|
|
5593
|
-
}),
|
|
5627
|
+
}), ee(t, (n) => {
|
|
5594
5628
|
o("update:modelValue", n);
|
|
5595
|
-
}), (n, a) => (d(),
|
|
5629
|
+
}), (n, a) => (d(), _(Xs, {
|
|
5596
5630
|
vis: t.value,
|
|
5597
5631
|
"onUpdate:vis": a[1] || (a[1] = (i) => t.value = i),
|
|
5598
5632
|
"modal-class": "max-w-4xl p-0",
|
|
5599
5633
|
"style-class": "bg-transparent shadow-2xl",
|
|
5600
5634
|
"has-close": !1
|
|
5601
5635
|
}, {
|
|
5602
|
-
default:
|
|
5603
|
-
l("div",
|
|
5604
|
-
|
|
5636
|
+
default: te(() => [
|
|
5637
|
+
l("div", en, [
|
|
5638
|
+
B(_s, {
|
|
5605
5639
|
sdk: e.sdk,
|
|
5606
5640
|
self: e.self,
|
|
5607
5641
|
handle: e.handle,
|
|
@@ -5617,19 +5651,19 @@ const Z = /* @__PURE__ */ s((e) => {
|
|
|
5617
5651
|
}
|
|
5618
5652
|
});
|
|
5619
5653
|
export {
|
|
5620
|
-
|
|
5654
|
+
Bt as AGENT_MODES,
|
|
5621
5655
|
bo as AUDIO_FFT_SIZE,
|
|
5622
5656
|
po as AUDIO_LEVEL_UPDATE_INTERVAL,
|
|
5623
5657
|
vo as AUDIO_SMOOTHING,
|
|
5624
5658
|
lt as ClientAudio,
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5659
|
+
ln as FictionWidget,
|
|
5660
|
+
Jt as SelfAgent,
|
|
5661
|
+
cn as SelfModal,
|
|
5662
|
+
_s as SelfProvider,
|
|
5663
|
+
Qt as SelfWrap,
|
|
5630
5664
|
xo as VISUALIZER_CONFIG,
|
|
5631
|
-
|
|
5632
|
-
|
|
5665
|
+
X as VOICE_FREQUENCIES,
|
|
5666
|
+
an as generateFirstMessage,
|
|
5633
5667
|
qe as getFallbackAvatarDataUrl,
|
|
5634
5668
|
At as getImageSrc,
|
|
5635
5669
|
tt as getSelfAvatarUrl,
|