@fiction/sdk 1.0.52 → 1.0.54
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/{FModal.vue_vue_type_script_setup_true_lang-MWpAPyiD.js → FModal.vue_vue_type_script_setup_true_lang-WJGUSFLV.js} +2 -2
- package/dist/{FModal.vue_vue_type_script_setup_true_lang-MWpAPyiD.js.map → FModal.vue_vue_type_script_setup_true_lang-WJGUSFLV.js.map} +1 -1
- package/dist/{SelfProvider.vue_vue_type_script_setup_true_lang-Sj4kNzxg.js → SelfProvider.vue_vue_type_script_setup_true_lang-C_LIraXV.js} +2 -2
- package/dist/{SelfProvider.vue_vue_type_script_setup_true_lang-Sj4kNzxg.js.map → SelfProvider.vue_vue_type_script_setup_true_lang-C_LIraXV.js.map} +1 -1
- package/dist/{SelfWidgetInline-BFraVXfp.js → SelfWidgetInline-CjPiSVVs.js} +2 -2
- package/dist/{SelfWidgetInline-BFraVXfp.js.map → SelfWidgetInline-CjPiSVVs.js.map} +1 -1
- package/dist/{SelfWidgetModal-DVvpKNGk.js → SelfWidgetModal-cl-vDxwX.js} +3 -3
- package/dist/{SelfWidgetModal-DVvpKNGk.js.map → SelfWidgetModal-cl-vDxwX.js.map} +1 -1
- package/dist/{SelfWidgetPopup-C5dN7ZcN.js → SelfWidgetPopup-CyHOaNTb.js} +2 -2
- package/dist/{SelfWidgetPopup-C5dN7ZcN.js.map → SelfWidgetPopup-CyHOaNTb.js.map} +1 -1
- package/dist/{SelfWrap.vue_vue_type_script_setup_true_lang-trK_XeFZ.js → SelfWrap.vue_vue_type_script_setup_true_lang-9hTe-S75.js} +871 -869
- package/dist/{SelfWrap.vue_vue_type_script_setup_true_lang-trK_XeFZ.js.map → SelfWrap.vue_vue_type_script_setup_true_lang-9hTe-S75.js.map} +1 -1
- package/dist/sdk.css +1 -1
- package/dist/self.js +4 -4
- package/dist/widget.js +4 -4
- package/dist/widget.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
var lt = Object.defineProperty;
|
|
2
|
-
var Ht = (e,
|
|
3
|
-
var r = (e,
|
|
4
|
-
var
|
|
5
|
-
import { defineComponent as
|
|
2
|
+
var Ht = (e, a, o) => a in e ? lt(e, a, { enumerable: !0, configurable: !0, writable: !0, value: o }) : e[a] = o;
|
|
3
|
+
var r = (e, a) => lt(e, "name", { value: a, configurable: !0 });
|
|
4
|
+
var D = (e, a, o) => Ht(e, typeof a != "symbol" ? a + "" : a, o);
|
|
5
|
+
import { defineComponent as G, createElementBlock as x, openBlock as f, createElementVNode as c, normalizeClass as E, ref as j, watch as ae, createBlock as se, TransitionGroup as yt, withCtx as ne, renderSlot as Ie, computed as T, createCommentVNode as F, onMounted as $e, Fragment as Ce, renderList as Oe, withDirectives as kt, vModelText as wt, toDisplayString as H, createVNode as O, withKeys as Wt, createTextVNode as Pe, unref as X, resolveDynamicComponent as qt, nextTick as We, Transition as ct, withModifiers as Ct, normalizeStyle as et, onUnmounted as St, createPropsRestProxy as Kt, mergeProps as Zt, shallowRef as Yt } from "vue";
|
|
6
6
|
import { Conversation as dt } from "@elevenlabs/client";
|
|
7
|
-
import { objectId as
|
|
7
|
+
import { objectId as _t } from "@fiction/utils";
|
|
8
8
|
import { S as Mt, c as Jt, F as Qt } from "./sdkClient-Dg6A3ZgO.js";
|
|
9
9
|
const Xt = { class: "spinner max-w-sm" }, eo = {
|
|
10
10
|
class: "ring-circular h-full w-full origin-center",
|
|
11
11
|
viewBox: "25 25 50 50"
|
|
12
|
-
}, tt = /* @__PURE__ */
|
|
12
|
+
}, tt = /* @__PURE__ */ G({
|
|
13
13
|
__name: "FSpinner",
|
|
14
14
|
props: {
|
|
15
15
|
width: { type: String, default: "" },
|
|
16
16
|
colorMode: { type: String, default: "primary" }
|
|
17
17
|
},
|
|
18
18
|
setup(e) {
|
|
19
|
-
return (
|
|
20
|
-
(f(),
|
|
19
|
+
return (a, o) => (f(), x("div", Xt, [
|
|
20
|
+
(f(), x("svg", eo, [
|
|
21
21
|
c("circle", {
|
|
22
|
-
class:
|
|
22
|
+
class: E([e.colorMode, "ring-path"]),
|
|
23
23
|
cx: "50",
|
|
24
24
|
cy: "50",
|
|
25
25
|
r: "20",
|
|
@@ -278,21 +278,21 @@ const At = [
|
|
|
278
278
|
], st = class st extends Mt {
|
|
279
279
|
constructor(o) {
|
|
280
280
|
super("ClientAudio", o);
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
281
|
+
D(this, "audioContext");
|
|
282
|
+
D(this, "analyser");
|
|
283
|
+
D(this, "microphone");
|
|
284
|
+
D(this, "audioLevelInterval");
|
|
285
|
+
D(this, "stream");
|
|
286
|
+
D(this, "visibilityChangeHandler");
|
|
287
|
+
D(this, "vadTimeout");
|
|
288
|
+
D(this, "lastSpeechTime", 0);
|
|
289
289
|
// VAD configuration - tuned for voice isolation (ignores background music)
|
|
290
|
-
|
|
290
|
+
D(this, "VAD_SILENCE_THRESHOLD", 0.03);
|
|
291
291
|
// 3% audio level = silence (filters out quiet background noise)
|
|
292
|
-
|
|
292
|
+
D(this, "VAD_SILENCE_DURATION", 1200);
|
|
293
293
|
// 1.2 seconds of silence before considering "stopped speaking"
|
|
294
294
|
// Public reactive state
|
|
295
|
-
|
|
295
|
+
D(this, "audioLevels", j({ inputLevel: 0, outputLevel: 0 }));
|
|
296
296
|
this.setupVisibilityHandler();
|
|
297
297
|
}
|
|
298
298
|
/**
|
|
@@ -328,13 +328,13 @@ const At = [
|
|
|
328
328
|
const {
|
|
329
329
|
noiseSuppression: t = !0,
|
|
330
330
|
echoCancellation: s = !0,
|
|
331
|
-
autoGainControl:
|
|
331
|
+
autoGainControl: i = !0,
|
|
332
332
|
voiceIsolation: n = !0
|
|
333
333
|
} = o, l = {
|
|
334
334
|
audio: {
|
|
335
335
|
noiseSuppression: { ideal: t, exact: t },
|
|
336
336
|
echoCancellation: { ideal: s, exact: s },
|
|
337
|
-
autoGainControl: { ideal:
|
|
337
|
+
autoGainControl: { ideal: i, exact: i },
|
|
338
338
|
// Chrome-specific voice isolation (degrades gracefully in other browsers)
|
|
339
339
|
voiceIsolation: { ideal: n, exact: n },
|
|
340
340
|
advanced: [
|
|
@@ -342,9 +342,9 @@ const At = [
|
|
|
342
342
|
// @ts-expect-error - Chrome-specific constraint
|
|
343
343
|
{ googAudioMirroring: !1 },
|
|
344
344
|
// @ts-expect-error - Chrome-specific constraint
|
|
345
|
-
{ googAutoGainControl:
|
|
345
|
+
{ googAutoGainControl: i },
|
|
346
346
|
// @ts-expect-error - Chrome-specific constraint
|
|
347
|
-
{ googAutoGainControl2:
|
|
347
|
+
{ googAutoGainControl2: i },
|
|
348
348
|
// @ts-expect-error - Chrome-specific constraint
|
|
349
349
|
{ googNoiseSuppression: t },
|
|
350
350
|
// @ts-expect-error - Chrome-specific constraint
|
|
@@ -362,14 +362,14 @@ const At = [
|
|
|
362
362
|
}
|
|
363
363
|
};
|
|
364
364
|
this.stream = await navigator.mediaDevices.getUserMedia(l);
|
|
365
|
-
const
|
|
365
|
+
const w = this.stream.getAudioTracks()[0].getSettings();
|
|
366
366
|
return this.logger.info("Microphone permission granted with settings:", {
|
|
367
|
-
noiseSuppression:
|
|
368
|
-
echoCancellation:
|
|
369
|
-
autoGainControl:
|
|
367
|
+
noiseSuppression: w.noiseSuppression,
|
|
368
|
+
echoCancellation: w.echoCancellation,
|
|
369
|
+
autoGainControl: w.autoGainControl,
|
|
370
370
|
// @ts-expect-error - voiceIsolation is not in standard types yet
|
|
371
|
-
voiceIsolation:
|
|
372
|
-
sampleRate:
|
|
371
|
+
voiceIsolation: w.voiceIsolation,
|
|
372
|
+
sampleRate: w.sampleRate
|
|
373
373
|
}), await this.setupAudioAnalysis(), !0;
|
|
374
374
|
} catch (t) {
|
|
375
375
|
return this.logger.error("Microphone permission denied:", t), !1;
|
|
@@ -422,14 +422,14 @@ const At = [
|
|
|
422
422
|
return;
|
|
423
423
|
}
|
|
424
424
|
this.logger.info("Starting audio level monitoring with VAD at timestamp:", Date.now());
|
|
425
|
-
const s = new Uint8Array(this.analyser.frequencyBinCount),
|
|
425
|
+
const s = new Uint8Array(this.analyser.frequencyBinCount), i = /* @__PURE__ */ r(async () => {
|
|
426
426
|
if (!this.analyser) {
|
|
427
427
|
this.logger.info("Stopping audio level monitoring - missing analyser");
|
|
428
428
|
return;
|
|
429
429
|
}
|
|
430
430
|
try {
|
|
431
431
|
this.analyser.getByteFrequencyData(s);
|
|
432
|
-
const l = s.reduce((u,
|
|
432
|
+
const l = s.reduce((u, b) => u + b, 0) / s.length, d = Math.min(l / 128, 1);
|
|
433
433
|
!this.detectVoiceActivity(d) && this.hasUserStoppedSpeaking() && t && (this.logger.info("VAD: User stopped speaking (silence detected)"), t(), this.lastSpeechTime = 0);
|
|
434
434
|
const m = o?.() ? 0.3 : 0;
|
|
435
435
|
this.audioLevels.value = { inputLevel: d, outputLevel: m };
|
|
@@ -437,7 +437,7 @@ const At = [
|
|
|
437
437
|
this.logger.error("Error in audio level monitoring:", l), this.stopAudioLevelMonitoring();
|
|
438
438
|
}
|
|
439
439
|
}, "updateLevels"), n = /* @__PURE__ */ r(() => {
|
|
440
|
-
|
|
440
|
+
i().catch((l) => {
|
|
441
441
|
this.logger.error("Async error in audio level monitoring:", l);
|
|
442
442
|
});
|
|
443
443
|
}, "intervalWrapper");
|
|
@@ -494,33 +494,33 @@ function ht(e) {
|
|
|
494
494
|
return e ? typeof e == "string" ? e : e.src || "" : "";
|
|
495
495
|
}
|
|
496
496
|
r(ht, "getImageSrc");
|
|
497
|
-
function
|
|
497
|
+
function Ye(e) {
|
|
498
498
|
return ht(e.cover) || ht(e.avatar) || "/img/placeholder-avatar.png";
|
|
499
499
|
}
|
|
500
|
-
r(
|
|
500
|
+
r(Ye, "getSelfAvatarUrl");
|
|
501
501
|
function He() {
|
|
502
502
|
return "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjgwIiBoZWlnaHQ9IjgwIiByeD0iNDAiIGZpbGw9IiM2MzY2RjEiLz4KPHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeD0iMjAiIHk9IjIwIj4KPHA0aCBkPSJNMTIgMTJjMi4yMSAwIDQtMS43OSA0LTRTNC4yMSA0IDIgNHMxLjc5IDQgNCA0em0wIDJjLTIuNjcgMC04IDEuMzQtOCA0djJoMTZ2LTJjMC0yLjY2LTUuMzMtNC04LTR6IiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4KPC9zdmc+";
|
|
503
503
|
}
|
|
504
504
|
r(He, "getFallbackAvatarDataUrl");
|
|
505
505
|
function Ue(e) {
|
|
506
|
-
const
|
|
507
|
-
|
|
506
|
+
const a = e.target;
|
|
507
|
+
a.dataset.fallbackUsed || (a.dataset.fallbackUsed = "true", a.src = He());
|
|
508
508
|
}
|
|
509
509
|
r(Ue, "handleImageError");
|
|
510
510
|
function no(e) {
|
|
511
|
-
const { message:
|
|
512
|
-
if (!
|
|
511
|
+
const { message: a, source: o } = e;
|
|
512
|
+
if (!a)
|
|
513
513
|
return null;
|
|
514
514
|
const t = {
|
|
515
515
|
user: "user",
|
|
516
516
|
ai: "agent",
|
|
517
517
|
agent: "agent"
|
|
518
518
|
}, s = t[o] || "agent";
|
|
519
|
-
if (typeof
|
|
520
|
-
return
|
|
521
|
-
if (typeof
|
|
519
|
+
if (typeof a == "string")
|
|
520
|
+
return a.trim() ? { text: a.trim(), sender: s } : null;
|
|
521
|
+
if (typeof a != "object")
|
|
522
522
|
return null;
|
|
523
|
-
const
|
|
523
|
+
const i = [
|
|
524
524
|
(n) => {
|
|
525
525
|
if (!("source" in n))
|
|
526
526
|
return null;
|
|
@@ -528,8 +528,8 @@ function no(e) {
|
|
|
528
528
|
return l ? { text: n.message || "", sender: l } : null;
|
|
529
529
|
}
|
|
530
530
|
];
|
|
531
|
-
for (const n of
|
|
532
|
-
const l = n(
|
|
531
|
+
for (const n of i) {
|
|
532
|
+
const l = n(a);
|
|
533
533
|
if (l && l.text.trim())
|
|
534
534
|
return { text: l.text.trim(), sender: l.sender };
|
|
535
535
|
}
|
|
@@ -537,33 +537,33 @@ function no(e) {
|
|
|
537
537
|
}
|
|
538
538
|
r(no, "parseVoiceMessage");
|
|
539
539
|
function js(e) {
|
|
540
|
-
const { name:
|
|
541
|
-
return o === "welcome" ? `Welcome to Fiction! I'm ${
|
|
540
|
+
const { name: a, context: o } = e;
|
|
541
|
+
return o === "welcome" ? `Welcome to Fiction! I'm ${a}, 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 ${a}, 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 ${a}. How can I help you today?`;
|
|
542
542
|
}
|
|
543
543
|
r(js, "generateFirstMessage");
|
|
544
544
|
const nt = class nt extends Mt {
|
|
545
545
|
constructor(o) {
|
|
546
546
|
super("SelfController", o);
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
547
|
+
D(this, "conversation");
|
|
548
|
+
D(this, "isTextMode", !1);
|
|
549
|
+
D(this, "lastMessage", { hash: "", time: 0 });
|
|
550
|
+
D(this, "clientAudio");
|
|
551
|
+
D(this, "unwatchAudio");
|
|
552
|
+
D(this, "isConnecting", !1);
|
|
553
|
+
D(this, "lastUserSpeechTime", 0);
|
|
554
554
|
// Track when user last spoke (audio VAD)
|
|
555
|
-
|
|
555
|
+
D(this, "lastUserMessageTime", 0);
|
|
556
556
|
// Track when user's last transcription arrived (ElevenLabs)
|
|
557
557
|
// Simple usage tracking
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
558
|
+
D(this, "sessionId");
|
|
559
|
+
D(this, "conversationStartTime");
|
|
560
|
+
D(this, "chatCharacterCount", 0);
|
|
561
561
|
// Participant IDs for message attribution
|
|
562
|
-
|
|
562
|
+
D(this, "hostParticipantId");
|
|
563
563
|
// The digital self
|
|
564
|
-
|
|
564
|
+
D(this, "visitorParticipantId");
|
|
565
565
|
// The user/anon
|
|
566
|
-
|
|
566
|
+
D(this, "voiceState", j({
|
|
567
567
|
isActive: !1,
|
|
568
568
|
isConnected: !1,
|
|
569
569
|
isSpeaking: !1,
|
|
@@ -572,14 +572,14 @@ const nt = class nt extends Mt {
|
|
|
572
572
|
transcript: "Tap to begin voice conversation",
|
|
573
573
|
connectionStatus: "disconnected"
|
|
574
574
|
}));
|
|
575
|
-
|
|
575
|
+
D(this, "textState", j({
|
|
576
576
|
isActive: !1,
|
|
577
577
|
isConnected: !1,
|
|
578
578
|
isThinking: !1,
|
|
579
579
|
connectionStatus: "disconnected"
|
|
580
580
|
}));
|
|
581
|
-
|
|
582
|
-
|
|
581
|
+
D(this, "agentMode", j("self"));
|
|
582
|
+
D(this, "sharedMessages", j([]));
|
|
583
583
|
if (!o.self.elevenlabsAgentId || o.self.elevenlabsAgentId.trim() === "")
|
|
584
584
|
throw new Error(`Agent ID is required for SelfController. Self "${o.self.name}" (${o.self.selfId}) does not have a valid elevenlabsAgentId.`);
|
|
585
585
|
this.clientAudio = new Ze(o), this.setupModeWatcher();
|
|
@@ -628,8 +628,8 @@ const nt = class nt extends Mt {
|
|
|
628
628
|
return null;
|
|
629
629
|
}
|
|
630
630
|
isDuplicateMessage(o, t) {
|
|
631
|
-
const s = `${t}:${o.toLowerCase().trim()}`,
|
|
632
|
-
return n || (this.lastMessage = { hash: s, time:
|
|
631
|
+
const s = `${t}:${o.toLowerCase().trim()}`, i = Date.now(), n = s === this.lastMessage.hash && i - this.lastMessage.time < 500;
|
|
632
|
+
return n || (this.lastMessage = { hash: s, time: i }), n;
|
|
633
633
|
}
|
|
634
634
|
addMessage(o, t) {
|
|
635
635
|
this.isDuplicateMessage(o, t) || (this.sharedMessages.value = [
|
|
@@ -638,7 +638,7 @@ const nt = class nt extends Mt {
|
|
|
638
638
|
]);
|
|
639
639
|
}
|
|
640
640
|
getDynamicSettings() {
|
|
641
|
-
const { sdk: o } = this.settings, t = o.activeUser.value, s = t?.selves?.find((n) => n.selfId === t.primarySelfId),
|
|
641
|
+
const { sdk: o } = this.settings, t = o.activeUser.value, s = t?.selves?.find((n) => n.selfId === t.primarySelfId), i = t ? `
|
|
642
642
|
|
|
643
643
|
Current User:
|
|
644
644
|
- Name: ${s?.name || "Anonymous"}
|
|
@@ -648,7 +648,7 @@ Current User:
|
|
|
648
648
|
` : "";
|
|
649
649
|
return {
|
|
650
650
|
dynamicVariables: {
|
|
651
|
-
context: `${this.settings.context || ""}${
|
|
651
|
+
context: `${this.settings.context || ""}${i}`.trim(),
|
|
652
652
|
firstMessage: this.settings.firstMessage || ""
|
|
653
653
|
},
|
|
654
654
|
overrides: {
|
|
@@ -678,17 +678,17 @@ Current User:
|
|
|
678
678
|
}), this.clientAudio.resetAudioLevels(), this.lastUserSpeechTime = 0, this.lastUserMessageTime = 0);
|
|
679
679
|
}
|
|
680
680
|
setupModeWatcher() {
|
|
681
|
-
|
|
681
|
+
ae(this.agentMode, async (o, t) => {
|
|
682
682
|
this.logger.info(`Mode changed from ${t} to ${o}`), this.conversation && (t === "talk" || t === "chat") && await this.endConversation();
|
|
683
683
|
});
|
|
684
684
|
}
|
|
685
685
|
handleMessage(o, t) {
|
|
686
686
|
const s = no(o);
|
|
687
687
|
if (s && (t && s.sender === "user" && (this.lastUserMessageTime = Date.now(), this.logger.info("User transcription received", { text: s.text })), this.addMessage(s.text, s.sender), !t && s.sender === "agent" && this.updateState(this.textState, { isThinking: !1 }), this.sessionId && this.hostParticipantId && this.visitorParticipantId)) {
|
|
688
|
-
const
|
|
688
|
+
const i = s.sender === "agent" ? this.hostParticipantId : this.visitorParticipantId, { sdk: n } = this.settings;
|
|
689
689
|
n.saveMessage({
|
|
690
690
|
conversationId: this.sessionId,
|
|
691
|
-
participantId:
|
|
691
|
+
participantId: i,
|
|
692
692
|
content: s.text,
|
|
693
693
|
role: s.sender === "agent" ? "agent" : "user"
|
|
694
694
|
}).catch((l) => {
|
|
@@ -740,8 +740,8 @@ Current User:
|
|
|
740
740
|
() => {
|
|
741
741
|
this.logger.info("Client-side VAD: User has stopped speaking"), this.conversation && (this.conversation.sendUserActivity(), this.logger.info("Sent user activity signal to ElevenLabs"));
|
|
742
742
|
}
|
|
743
|
-
), this.unwatchAudio =
|
|
744
|
-
|
|
743
|
+
), this.unwatchAudio = ae(this.audioLevels, (i) => {
|
|
744
|
+
i.inputLevel > 0.03 && (this.lastUserSpeechTime = Date.now()), o.onAudioLevel?.(i);
|
|
745
745
|
}, { immediate: !0 }), this.updateState(this.voiceState, {
|
|
746
746
|
isConnected: !0,
|
|
747
747
|
isListening: !0,
|
|
@@ -754,37 +754,37 @@ Current User:
|
|
|
754
754
|
});
|
|
755
755
|
}, "onConnect"),
|
|
756
756
|
onDisconnect: /* @__PURE__ */ r(() => {
|
|
757
|
-
this.logger.info("Voice conversation disconnected"), this.conversation = void 0, this.clientAudio.stopAudioLevelMonitoring(), this.endSession().catch((
|
|
757
|
+
this.logger.info("Voice conversation disconnected"), this.conversation = void 0, this.clientAudio.stopAudioLevelMonitoring(), this.endSession().catch((i) => console.error("Failed to end session:", i)), this.resetState(!1), o.onDisconnect?.();
|
|
758
758
|
}, "onDisconnect"),
|
|
759
|
-
onError: /* @__PURE__ */ r((
|
|
760
|
-
let n =
|
|
761
|
-
|
|
759
|
+
onError: /* @__PURE__ */ r((i) => {
|
|
760
|
+
let n = i;
|
|
761
|
+
i.includes("does not exist") ? n = `Agent not found: ${this.settings.self.elevenlabsAgentId}. Check ElevenLabs configuration.` : i.includes("limit") || i.includes("quota") ? n = "ElevenLabs account limit reached. Check your subscription and usage." : (i.includes("unauthorized") || i.includes("invalid")) && (n = "ElevenLabs API authentication failed. Check ELEVENLABS_API_KEY."), this.endSession().catch((l) => console.error("Failed to end session:", l)), this.handleError(new Error(n), !0), o.onError?.(new Error(n));
|
|
762
762
|
}, "onError"),
|
|
763
|
-
onModeChange: /* @__PURE__ */ r((
|
|
764
|
-
const n =
|
|
765
|
-
let
|
|
766
|
-
n ?
|
|
763
|
+
onModeChange: /* @__PURE__ */ r((i) => {
|
|
764
|
+
const n = i.mode === "speaking", l = 3e3, d = Date.now(), w = d - this.lastUserSpeechTime, m = d - this.lastUserMessageTime, u = w < l || m < l, b = !n && u;
|
|
765
|
+
let S;
|
|
766
|
+
n ? S = "Speaking..." : b ? S = "Thinking..." : S = "Listening...", this.updateState(this.voiceState, {
|
|
767
767
|
isSpeaking: n,
|
|
768
768
|
isListening: !n,
|
|
769
769
|
// Mic active when agent not speaking - ElevenLabs handles interruptions
|
|
770
|
-
isProcessing:
|
|
771
|
-
transcript:
|
|
770
|
+
isProcessing: b,
|
|
771
|
+
transcript: S
|
|
772
772
|
}), this.logger.info("Voice mode changed", {
|
|
773
|
-
mode:
|
|
773
|
+
mode: i.mode,
|
|
774
774
|
isSpeaking: n,
|
|
775
775
|
isListening: !n,
|
|
776
|
-
isProcessing:
|
|
777
|
-
timeSinceUserSpeech:
|
|
776
|
+
isProcessing: b,
|
|
777
|
+
timeSinceUserSpeech: w,
|
|
778
778
|
timeSinceUserMessage: m,
|
|
779
|
-
detectionSource: m <
|
|
780
|
-
}), o.onModeChange?.(
|
|
779
|
+
detectionSource: m < w ? "message" : "audio"
|
|
780
|
+
}), o.onModeChange?.(i.mode);
|
|
781
781
|
}, "onModeChange"),
|
|
782
|
-
onMessage: /* @__PURE__ */ r((
|
|
783
|
-
this.handleMessage(
|
|
782
|
+
onMessage: /* @__PURE__ */ r((i) => {
|
|
783
|
+
this.handleMessage(i, !0), o.onMessage?.(i);
|
|
784
784
|
}, "onMessage")
|
|
785
785
|
});
|
|
786
|
-
} catch (
|
|
787
|
-
throw this.isConnecting = !1, this.endSession().catch((n) => console.error("Failed to end session:", n)), this.handleError(
|
|
786
|
+
} catch (i) {
|
|
787
|
+
throw this.isConnecting = !1, this.endSession().catch((n) => console.error("Failed to end session:", n)), this.handleError(i, !0), i;
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
async startTextConversation(o = {}) {
|
|
@@ -807,7 +807,7 @@ Current User:
|
|
|
807
807
|
}, "onDisconnect"),
|
|
808
808
|
onError: /* @__PURE__ */ r((t) => {
|
|
809
809
|
let s = t;
|
|
810
|
-
t.includes("does not exist") ? s = `Agent not found: ${this.settings.self.elevenlabsAgentId}. Check ElevenLabs configuration.` : t.includes("limit") || t.includes("quota") ? s = "ElevenLabs account limit reached. Check your subscription and usage." : (t.includes("unauthorized") || t.includes("invalid")) && (s = "ElevenLabs API authentication failed. Check ELEVENLABS_API_KEY."), this.endSession().catch((
|
|
810
|
+
t.includes("does not exist") ? s = `Agent not found: ${this.settings.self.elevenlabsAgentId}. Check ElevenLabs configuration.` : t.includes("limit") || t.includes("quota") ? s = "ElevenLabs account limit reached. Check your subscription and usage." : (t.includes("unauthorized") || t.includes("invalid")) && (s = "ElevenLabs API authentication failed. Check ELEVENLABS_API_KEY."), this.endSession().catch((i) => console.error("Failed to end session:", i)), this.handleError(new Error(s), !1), o.onError?.(new Error(s));
|
|
811
811
|
}, "onError"),
|
|
812
812
|
onModeChange: /* @__PURE__ */ r((t) => {
|
|
813
813
|
o.onModeChange?.(t.mode);
|
|
@@ -857,24 +857,24 @@ Current User:
|
|
|
857
857
|
async startSession(o) {
|
|
858
858
|
const { self: t, sdk: s } = this.settings;
|
|
859
859
|
if (this.conversationStartTime = /* @__PURE__ */ new Date(), this.chatCharacterCount = 0, t.selfId && t.orgId) {
|
|
860
|
-
const
|
|
860
|
+
const i = s.activeUser.value?.userId ? void 0 : s.generateAnonId(), n = await s.startConversation({
|
|
861
861
|
selfId: t.selfId,
|
|
862
862
|
userId: s.activeUser.value?.userId,
|
|
863
|
-
anonId:
|
|
863
|
+
anonId: i
|
|
864
864
|
});
|
|
865
865
|
if (n) {
|
|
866
866
|
this.sessionId = n.conversationId, this.hostParticipantId = n.hostParticipantId, this.visitorParticipantId = n.visitorParticipantId, this.logger.info("Started conversation session", {
|
|
867
867
|
sessionId: this.sessionId,
|
|
868
868
|
type: o,
|
|
869
869
|
userId: s.activeUser.value?.userId,
|
|
870
|
-
anonId:
|
|
870
|
+
anonId: i,
|
|
871
871
|
hostParticipantId: this.hostParticipantId,
|
|
872
872
|
visitorParticipantId: this.visitorParticipantId
|
|
873
873
|
});
|
|
874
874
|
return;
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
|
-
this.sessionId =
|
|
877
|
+
this.sessionId = _t(), this.logger.info("Started conversation session (fallback)", {
|
|
878
878
|
sessionId: this.sessionId,
|
|
879
879
|
type: o
|
|
880
880
|
});
|
|
@@ -891,27 +891,27 @@ Current User:
|
|
|
891
891
|
}
|
|
892
892
|
};
|
|
893
893
|
r(nt, "SelfController");
|
|
894
|
-
let
|
|
895
|
-
const
|
|
894
|
+
let _e = nt;
|
|
895
|
+
const ao = /* @__PURE__ */ G({
|
|
896
896
|
__name: "EffectTransitionList",
|
|
897
897
|
props: {
|
|
898
898
|
disabled: { type: Boolean, default: !1 },
|
|
899
899
|
mode: { default: "block" }
|
|
900
900
|
},
|
|
901
901
|
setup(e) {
|
|
902
|
-
return (
|
|
902
|
+
return (a, o) => (f(), se(yt, {
|
|
903
903
|
name: e.disabled ? "" : "nlist"
|
|
904
904
|
}, {
|
|
905
905
|
default: ne(() => [
|
|
906
|
-
Ie(
|
|
906
|
+
Ie(a.$slots, "default")
|
|
907
907
|
]),
|
|
908
908
|
_: 3
|
|
909
909
|
}, 8, ["name"]));
|
|
910
910
|
}
|
|
911
|
-
}),
|
|
911
|
+
}), io = {
|
|
912
912
|
key: 0,
|
|
913
913
|
class: "absolute inset-0 flex items-center justify-center"
|
|
914
|
-
}, ot = /* @__PURE__ */
|
|
914
|
+
}, ot = /* @__PURE__ */ G({
|
|
915
915
|
__name: "ElSelfButton",
|
|
916
916
|
props: {
|
|
917
917
|
theme: { default: "primary" },
|
|
@@ -921,60 +921,60 @@ const io = /* @__PURE__ */ j({
|
|
|
921
921
|
iconAfter: {}
|
|
922
922
|
},
|
|
923
923
|
setup(e) {
|
|
924
|
-
const
|
|
924
|
+
const a = T(() => ({
|
|
925
925
|
primary: "bg-primary-600 border-primary-400 hover:border-primary-300 hover:bg-primary-500",
|
|
926
926
|
green: "bg-green-600 border-green-400 hover:border-green-300 hover:bg-green-500",
|
|
927
927
|
red: "bg-red-600 border-red-400 hover:border-red-300 hover:bg-red-500",
|
|
928
928
|
default: "bg-white/10 border-white/20 hover:border-white/40 hover:bg-white/20"
|
|
929
|
-
})[e.theme]), o =
|
|
929
|
+
})[e.theme]), o = T(() => ({
|
|
930
930
|
sm: "px-4 py-2 text-sm",
|
|
931
931
|
md: "px-6 py-3 text-base",
|
|
932
932
|
lg: "px-8 py-4 text-base"
|
|
933
|
-
})[e.size]), t =
|
|
933
|
+
})[e.size]), t = T(() => ({
|
|
934
934
|
sm: "size-4",
|
|
935
935
|
md: "size-4",
|
|
936
936
|
lg: "size-5"
|
|
937
937
|
})[e.size]);
|
|
938
|
-
return (s,
|
|
939
|
-
class:
|
|
938
|
+
return (s, i) => (f(), x("button", {
|
|
939
|
+
class: E(["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", [a.value, o.value]])
|
|
940
940
|
}, [
|
|
941
|
-
e.loading ? (f(),
|
|
941
|
+
e.loading ? (f(), x("div", io, [...i[0] || (i[0] = [
|
|
942
942
|
c("i", { class: "i-svg-spinners-90-ring-with-bg size-5" }, null, -1)
|
|
943
|
-
])])) :
|
|
943
|
+
])])) : F("", !0),
|
|
944
944
|
c("span", {
|
|
945
|
-
class:
|
|
945
|
+
class: E(["flex items-center gap-2 transition-opacity duration-200", e.loading ? "opacity-0" : "opacity-100"])
|
|
946
946
|
}, [
|
|
947
|
-
e.icon ? (f(),
|
|
947
|
+
e.icon ? (f(), x("i", {
|
|
948
948
|
key: 0,
|
|
949
|
-
class:
|
|
950
|
-
}, null, 2)) :
|
|
949
|
+
class: E([e.icon, t.value])
|
|
950
|
+
}, null, 2)) : F("", !0),
|
|
951
951
|
Ie(s.$slots, "default"),
|
|
952
|
-
e.iconAfter ? (f(),
|
|
952
|
+
e.iconAfter ? (f(), x("i", {
|
|
953
953
|
key: 1,
|
|
954
|
-
class:
|
|
955
|
-
}, null, 2)) :
|
|
954
|
+
class: E([e.iconAfter, t.value])
|
|
955
|
+
}, null, 2)) : F("", !0)
|
|
956
956
|
], 2)
|
|
957
957
|
], 2));
|
|
958
958
|
}
|
|
959
|
-
}), lo = ["value"], co = /* @__PURE__ */
|
|
959
|
+
}), lo = ["value"], co = /* @__PURE__ */ G({
|
|
960
960
|
__name: "SelfInputEmail",
|
|
961
961
|
props: {
|
|
962
962
|
modelValue: { default: "" }
|
|
963
963
|
},
|
|
964
964
|
emits: ["update:modelValue"],
|
|
965
|
-
setup(e, { emit:
|
|
966
|
-
const o =
|
|
967
|
-
return (t, s) => (f(),
|
|
965
|
+
setup(e, { emit: a }) {
|
|
966
|
+
const o = a;
|
|
967
|
+
return (t, s) => (f(), x("input", {
|
|
968
968
|
type: "email",
|
|
969
969
|
autocomplete: "email",
|
|
970
970
|
placeholder: "Enter Your Email",
|
|
971
971
|
value: e.modelValue,
|
|
972
972
|
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",
|
|
973
973
|
style: { "font-size": "16px" },
|
|
974
|
-
onInput: s[0] || (s[0] = (
|
|
974
|
+
onInput: s[0] || (s[0] = (i) => o("update:modelValue", i.target.value))
|
|
975
975
|
}, null, 40, lo));
|
|
976
976
|
}
|
|
977
|
-
}), uo = { class: "flex gap-1.5 justify-center" }, ho = ["onUpdate:modelValue", "onInput", "onKeydown", "onPaste", "onFocus"], go = /* @__PURE__ */
|
|
977
|
+
}), uo = { class: "flex gap-1.5 justify-center" }, ho = ["onUpdate:modelValue", "onInput", "onKeydown", "onPaste", "onFocus"], go = /* @__PURE__ */ G({
|
|
978
978
|
__name: "SelfInputOneTimeCode",
|
|
979
979
|
props: {
|
|
980
980
|
modelValue: {},
|
|
@@ -982,67 +982,67 @@ const io = /* @__PURE__ */ j({
|
|
|
982
982
|
focusFirst: { type: Boolean }
|
|
983
983
|
},
|
|
984
984
|
emits: ["update:modelValue", "autoSubmit"],
|
|
985
|
-
setup(e, { emit:
|
|
986
|
-
const o = e, t =
|
|
985
|
+
setup(e, { emit: a }) {
|
|
986
|
+
const o = e, t = a, s = j([]), i = j(Array.from({ length: o.length }).fill("")), n = j(!1);
|
|
987
987
|
$e(() => {
|
|
988
|
-
o.modelValue && (
|
|
989
|
-
}),
|
|
990
|
-
|
|
991
|
-
}),
|
|
992
|
-
const u =
|
|
988
|
+
o.modelValue && (i.value = o.modelValue.split("").slice(0, o.length)), o.focusFirst && !("ontouchstart" in window) && s.value[0]?.focus();
|
|
989
|
+
}), ae(() => o.modelValue, (u) => {
|
|
990
|
+
i.value = u ? u.split("").slice(0, o.length) : Array.from({ length: o.length }).fill("");
|
|
991
|
+
}), ae(i, () => {
|
|
992
|
+
const u = i.value.filter(Boolean).join("");
|
|
993
993
|
t("update:modelValue", u), u.length === o.length && t("autoSubmit", u);
|
|
994
994
|
}, { deep: !0 });
|
|
995
|
-
function l(u,
|
|
996
|
-
|
|
997
|
-
const
|
|
998
|
-
if (
|
|
999
|
-
|
|
995
|
+
function l(u, b) {
|
|
996
|
+
b.preventDefault(), n.value = !0;
|
|
997
|
+
const S = (b.clipboardData?.getData("text") || "").replace(/\D/g, "");
|
|
998
|
+
if (S.length === o.length)
|
|
999
|
+
i.value = S.split(""), setTimeout(() => {
|
|
1000
1000
|
s.value[o.length - 1]?.focus(), n.value = !1;
|
|
1001
1001
|
}, 10);
|
|
1002
1002
|
else {
|
|
1003
|
-
const
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
}),
|
|
1007
|
-
const
|
|
1003
|
+
const I = [...i.value];
|
|
1004
|
+
S.split("").slice(0, o.length - u).forEach((y, B) => {
|
|
1005
|
+
I[u + B] = y;
|
|
1006
|
+
}), i.value = I;
|
|
1007
|
+
const A = Math.min(u + S.length, o.length - 1);
|
|
1008
1008
|
setTimeout(() => {
|
|
1009
|
-
s.value[
|
|
1009
|
+
s.value[A]?.focus(), n.value = !1;
|
|
1010
1010
|
}, 10);
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
1013
|
r(l, "onPaste");
|
|
1014
|
-
function d(u,
|
|
1015
|
-
const
|
|
1016
|
-
|
|
1014
|
+
function d(u, b) {
|
|
1015
|
+
const S = b.target.value.slice(-1).replace(/\D/g, "");
|
|
1016
|
+
i.value[u] = S, S && u < o.length - 1 && s.value[u + 1]?.focus();
|
|
1017
1017
|
}
|
|
1018
1018
|
r(d, "onInput");
|
|
1019
|
-
function
|
|
1020
|
-
|
|
1019
|
+
function w(u, b) {
|
|
1020
|
+
b.key === "Backspace" ? (b.preventDefault(), i.value[u] = "", u > 0 && s.value[u - 1]?.focus()) : b.key === "ArrowLeft" && u > 0 ? s.value[u - 1]?.focus() : b.key === "ArrowRight" && u < o.length - 1 && s.value[u + 1]?.focus();
|
|
1021
1021
|
}
|
|
1022
|
-
r(
|
|
1022
|
+
r(w, "onKeydown");
|
|
1023
1023
|
function m(u) {
|
|
1024
|
-
if (s.value[u]?.select(), !n.value &&
|
|
1025
|
-
for (let
|
|
1026
|
-
|
|
1024
|
+
if (s.value[u]?.select(), !n.value && i.value[u])
|
|
1025
|
+
for (let b = u; b < o.length; b++)
|
|
1026
|
+
i.value[b] = "";
|
|
1027
1027
|
}
|
|
1028
|
-
return r(m, "onFocus"), (u,
|
|
1029
|
-
(f(!0),
|
|
1030
|
-
key:
|
|
1028
|
+
return r(m, "onFocus"), (u, b) => (f(), x("div", uo, [
|
|
1029
|
+
(f(!0), x(Ce, null, Oe(e.length, (S) => kt((f(), x("input", {
|
|
1030
|
+
key: S,
|
|
1031
1031
|
ref_for: !0,
|
|
1032
|
-
ref: /* @__PURE__ */ r((
|
|
1033
|
-
"onUpdate:modelValue": /* @__PURE__ */ r((
|
|
1032
|
+
ref: /* @__PURE__ */ r((I) => s.value[S - 1] = I, "ref"),
|
|
1033
|
+
"onUpdate:modelValue": /* @__PURE__ */ r((I) => i.value[S - 1] = I, "onUpdate:modelValue"),
|
|
1034
1034
|
type: "text",
|
|
1035
1035
|
inputmode: "numeric",
|
|
1036
1036
|
autocomplete: "one-time-code",
|
|
1037
1037
|
class: "size-11 text-center font-mono text-theme-900 bg-white border border-white rounded-lg focus:outline-none transition-all",
|
|
1038
1038
|
style: { "font-size": "16px" },
|
|
1039
1039
|
maxlength: "1",
|
|
1040
|
-
onInput: /* @__PURE__ */ r((
|
|
1041
|
-
onKeydown: /* @__PURE__ */ r((
|
|
1042
|
-
onPaste: /* @__PURE__ */ r((
|
|
1043
|
-
onFocus: /* @__PURE__ */ r((
|
|
1040
|
+
onInput: /* @__PURE__ */ r((I) => d(S - 1, I), "onInput"),
|
|
1041
|
+
onKeydown: /* @__PURE__ */ r((I) => w(S - 1, I), "onKeydown"),
|
|
1042
|
+
onPaste: /* @__PURE__ */ r((I) => l(S - 1, I), "onPaste"),
|
|
1043
|
+
onFocus: /* @__PURE__ */ r((I) => m(S - 1), "onFocus")
|
|
1044
1044
|
}, null, 40, ho)), [
|
|
1045
|
-
[wt,
|
|
1045
|
+
[wt, i.value[S - 1]]
|
|
1046
1046
|
])), 128))
|
|
1047
1047
|
]));
|
|
1048
1048
|
}
|
|
@@ -1055,21 +1055,21 @@ const io = /* @__PURE__ */ j({
|
|
|
1055
1055
|
}, yo = {
|
|
1056
1056
|
key: "code-field",
|
|
1057
1057
|
class: "w-full"
|
|
1058
|
-
}, gt = /* @__PURE__ */
|
|
1058
|
+
}, gt = /* @__PURE__ */ G({
|
|
1059
1059
|
__name: "ElAuthGate",
|
|
1060
1060
|
props: {
|
|
1061
1061
|
sdk: {}
|
|
1062
1062
|
},
|
|
1063
1063
|
setup(e) {
|
|
1064
|
-
const
|
|
1064
|
+
const a = j({ email: "", code: "" }), o = j("email"), t = j(!1), s = {
|
|
1065
1065
|
email: {
|
|
1066
1066
|
title: "Enter Your Email",
|
|
1067
|
-
button: { label: "Continue", disabled: /* @__PURE__ */ r(() => !
|
|
1067
|
+
button: { label: "Continue", disabled: /* @__PURE__ */ r(() => !a.value.email || t.value, "disabled") },
|
|
1068
1068
|
action: /* @__PURE__ */ r(async () => {
|
|
1069
1069
|
if (!t.value) {
|
|
1070
1070
|
t.value = !0;
|
|
1071
1071
|
try {
|
|
1072
|
-
await e.sdk.requestAuthCode({ email:
|
|
1072
|
+
await e.sdk.requestAuthCode({ email: a.value.email }) && (o.value = "code");
|
|
1073
1073
|
} finally {
|
|
1074
1074
|
t.value = !1;
|
|
1075
1075
|
}
|
|
@@ -1078,63 +1078,63 @@ const io = /* @__PURE__ */ j({
|
|
|
1078
1078
|
},
|
|
1079
1079
|
code: {
|
|
1080
1080
|
title: "Enter Verification Code",
|
|
1081
|
-
button: { label: "Verify", disabled: /* @__PURE__ */ r(() =>
|
|
1081
|
+
button: { label: "Verify", disabled: /* @__PURE__ */ r(() => a.value.code.length !== 6 || t.value, "disabled") },
|
|
1082
1082
|
action: /* @__PURE__ */ r(async () => {
|
|
1083
1083
|
if (!t.value) {
|
|
1084
1084
|
t.value = !0;
|
|
1085
1085
|
try {
|
|
1086
|
-
await e.sdk.loginWithCode({ email:
|
|
1086
|
+
await e.sdk.loginWithCode({ email: a.value.email, code: a.value.code });
|
|
1087
1087
|
} finally {
|
|
1088
1088
|
t.value = !1;
|
|
1089
1089
|
}
|
|
1090
1090
|
}
|
|
1091
1091
|
}, "action")
|
|
1092
1092
|
}
|
|
1093
|
-
},
|
|
1094
|
-
return (n, l) => (f(),
|
|
1093
|
+
}, i = T(() => s[o.value]);
|
|
1094
|
+
return (n, l) => (f(), x("div", fo, [
|
|
1095
1095
|
c("div", mo, [
|
|
1096
|
-
e.sdk.error.value ? (f(),
|
|
1097
|
-
c("h3", po,
|
|
1096
|
+
e.sdk.error.value ? (f(), x("p", bo, H(e.sdk.error.value), 1)) : F("", !0),
|
|
1097
|
+
c("h3", po, H(i.value.title), 1),
|
|
1098
1098
|
c("div", vo, [
|
|
1099
|
-
|
|
1099
|
+
O(ao, null, {
|
|
1100
1100
|
default: ne(() => [
|
|
1101
|
-
o.value === "email" ? (f(),
|
|
1102
|
-
|
|
1103
|
-
modelValue:
|
|
1104
|
-
"onUpdate:modelValue": l[0] || (l[0] = (d) =>
|
|
1105
|
-
onKeyup: Wt(
|
|
1101
|
+
o.value === "email" ? (f(), x("div", xo, [
|
|
1102
|
+
O(co, {
|
|
1103
|
+
modelValue: a.value.email,
|
|
1104
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => a.value.email = d),
|
|
1105
|
+
onKeyup: Wt(i.value.action, ["enter"])
|
|
1106
1106
|
}, null, 8, ["modelValue", "onKeyup"])
|
|
1107
|
-
])) : (f(),
|
|
1108
|
-
|
|
1109
|
-
modelValue:
|
|
1110
|
-
"onUpdate:modelValue": l[1] || (l[1] = (d) =>
|
|
1107
|
+
])) : (f(), x("div", yo, [
|
|
1108
|
+
O(go, {
|
|
1109
|
+
modelValue: a.value.code,
|
|
1110
|
+
"onUpdate:modelValue": l[1] || (l[1] = (d) => a.value.code = d),
|
|
1111
1111
|
length: 6,
|
|
1112
1112
|
"focus-first": !0,
|
|
1113
|
-
onAutoSubmit:
|
|
1113
|
+
onAutoSubmit: i.value.action
|
|
1114
1114
|
}, null, 8, ["modelValue", "onAutoSubmit"])
|
|
1115
1115
|
])),
|
|
1116
|
-
(f(),
|
|
1117
|
-
key:
|
|
1116
|
+
(f(), x("div", {
|
|
1117
|
+
key: i.value.button.label,
|
|
1118
1118
|
class: "space-y-4 w-full"
|
|
1119
1119
|
}, [
|
|
1120
|
-
|
|
1120
|
+
O(ot, {
|
|
1121
1121
|
theme: "primary",
|
|
1122
1122
|
size: "md",
|
|
1123
1123
|
class: "w-full",
|
|
1124
1124
|
loading: e.sdk.loading.value,
|
|
1125
|
-
disabled:
|
|
1126
|
-
onClick:
|
|
1125
|
+
disabled: i.value.button.disabled() || e.sdk.loading.value,
|
|
1126
|
+
onClick: i.value.action
|
|
1127
1127
|
}, {
|
|
1128
1128
|
default: ne(() => [
|
|
1129
|
-
Pe(
|
|
1129
|
+
Pe(H(i.value.button.label), 1)
|
|
1130
1130
|
]),
|
|
1131
1131
|
_: 1
|
|
1132
1132
|
}, 8, ["loading", "disabled", "onClick"]),
|
|
1133
|
-
o.value === "code" ? (f(),
|
|
1133
|
+
o.value === "code" ? (f(), x("button", {
|
|
1134
1134
|
key: 0,
|
|
1135
1135
|
class: "w-full text-xs text-white/50 hover:text-white/70 transition-colors py-2",
|
|
1136
1136
|
onClick: l[2] || (l[2] = (d) => o.value = "email")
|
|
1137
|
-
}, " Change Email ")) :
|
|
1137
|
+
}, " Change Email ")) : F("", !0)
|
|
1138
1138
|
]))
|
|
1139
1139
|
]),
|
|
1140
1140
|
_: 1
|
|
@@ -1146,7 +1146,7 @@ const io = /* @__PURE__ */ j({
|
|
|
1146
1146
|
}), ko = { class: "relative flex-shrink-0" }, wo = ["src", "alt"], Co = {
|
|
1147
1147
|
key: 0,
|
|
1148
1148
|
class: "absolute top-1 right-1"
|
|
1149
|
-
}, So = { class: "min-w-0" }, Mo = /* @__PURE__ */
|
|
1149
|
+
}, So = { class: "min-w-0" }, Mo = /* @__PURE__ */ G({
|
|
1150
1150
|
__name: "ElModeHeader",
|
|
1151
1151
|
props: {
|
|
1152
1152
|
self: {},
|
|
@@ -1155,119 +1155,119 @@ const io = /* @__PURE__ */ j({
|
|
|
1155
1155
|
layout: { default: "centered" }
|
|
1156
1156
|
},
|
|
1157
1157
|
setup(e) {
|
|
1158
|
-
function
|
|
1158
|
+
function a() {
|
|
1159
1159
|
return e.self.avatar?.src ? e.self.avatar.src : He();
|
|
1160
1160
|
}
|
|
1161
|
-
return r(
|
|
1162
|
-
class:
|
|
1161
|
+
return r(a, "getAvatarSrc"), (o, t) => (f(), x("div", {
|
|
1162
|
+
class: E(["flex gap-4", [
|
|
1163
1163
|
e.layout === "centered" ? "flex-col items-center text-center" : "flex-row items-center justify-center"
|
|
1164
1164
|
]])
|
|
1165
1165
|
}, [
|
|
1166
1166
|
c("div", ko, [
|
|
1167
1167
|
c("div", {
|
|
1168
|
-
class:
|
|
1168
|
+
class: E(["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"])
|
|
1169
1169
|
}, [
|
|
1170
1170
|
c("img", {
|
|
1171
|
-
src:
|
|
1171
|
+
src: a(),
|
|
1172
1172
|
alt: e.self.name,
|
|
1173
1173
|
class: "w-full h-full object-cover",
|
|
1174
1174
|
onError: t[0] || (t[0] = //@ts-ignore
|
|
1175
1175
|
(...s) => X(Ue) && X(Ue)(...s))
|
|
1176
1176
|
}, null, 40, wo)
|
|
1177
1177
|
], 2),
|
|
1178
|
-
e.showOnlineIndicator ? (f(),
|
|
1178
|
+
e.showOnlineIndicator ? (f(), x("div", Co, [...t[1] || (t[1] = [
|
|
1179
1179
|
c("div", {
|
|
1180
1180
|
class: "size-3 bg-green-500 rounded-full ring-2 ring-white absolute animate-ping",
|
|
1181
1181
|
style: { "animation-duration": "3s" }
|
|
1182
1182
|
}, null, -1),
|
|
1183
1183
|
c("div", { class: "size-3 bg-green-500 rounded-full ring-2 ring-white" }, null, -1)
|
|
1184
|
-
])])) :
|
|
1184
|
+
])])) : F("", !0)
|
|
1185
1185
|
]),
|
|
1186
1186
|
c("div", So, [
|
|
1187
1187
|
c("h1", {
|
|
1188
|
-
class:
|
|
1188
|
+
class: E(["font-light text-white mb-1 truncate", [
|
|
1189
1189
|
e.size === "lg" ? "text-3xl mb-2" : "text-xl sm:text-2xl tracking-wide leading-tight",
|
|
1190
1190
|
e.layout === "horizontal" ? "text-white/95" : ""
|
|
1191
1191
|
]])
|
|
1192
|
-
},
|
|
1192
|
+
}, H(e.self.name), 3),
|
|
1193
1193
|
c("p", {
|
|
1194
|
-
class:
|
|
1194
|
+
class: E(["font-light line-clamp-1", [
|
|
1195
1195
|
e.size === "lg" ? "text-base text-white/60" : "text-sm sm:text-base",
|
|
1196
1196
|
e.layout === "horizontal" ? "text-white/70 truncate" : "text-white/60"
|
|
1197
1197
|
]])
|
|
1198
|
-
},
|
|
1198
|
+
}, H(e.layout === "horizontal" ? e.self.title || "Digital Self" : e.self.title), 3)
|
|
1199
1199
|
])
|
|
1200
1200
|
], 2));
|
|
1201
1201
|
}
|
|
1202
1202
|
}), rt = "-", Ao = /* @__PURE__ */ r((e) => {
|
|
1203
|
-
const
|
|
1203
|
+
const a = $o(e), {
|
|
1204
1204
|
conflictingClassGroups: o,
|
|
1205
1205
|
conflictingClassGroupModifiers: t
|
|
1206
1206
|
} = e;
|
|
1207
1207
|
return {
|
|
1208
1208
|
getClassGroupId: /* @__PURE__ */ r((n) => {
|
|
1209
1209
|
const l = n.split(rt);
|
|
1210
|
-
return l[0] === "" && l.length !== 1 && l.shift(), It(l,
|
|
1210
|
+
return l[0] === "" && l.length !== 1 && l.shift(), It(l, a) || Io(n);
|
|
1211
1211
|
}, "getClassGroupId"),
|
|
1212
1212
|
getConflictingClassGroupIds: /* @__PURE__ */ r((n, l) => {
|
|
1213
1213
|
const d = o[n] || [];
|
|
1214
1214
|
return l && t[n] ? [...d, ...t[n]] : d;
|
|
1215
1215
|
}, "getConflictingClassGroupIds")
|
|
1216
1216
|
};
|
|
1217
|
-
}, "createClassGroupUtils"), It = /* @__PURE__ */ r((e,
|
|
1217
|
+
}, "createClassGroupUtils"), It = /* @__PURE__ */ r((e, a) => {
|
|
1218
1218
|
if (e.length === 0)
|
|
1219
|
-
return
|
|
1220
|
-
const o = e[0], t =
|
|
1219
|
+
return a.classGroupId;
|
|
1220
|
+
const o = e[0], t = a.nextPart.get(o), s = t ? It(e.slice(1), t) : void 0;
|
|
1221
1221
|
if (s)
|
|
1222
1222
|
return s;
|
|
1223
|
-
if (
|
|
1223
|
+
if (a.validators.length === 0)
|
|
1224
1224
|
return;
|
|
1225
|
-
const
|
|
1226
|
-
return
|
|
1225
|
+
const i = e.join(rt);
|
|
1226
|
+
return a.validators.find(({
|
|
1227
1227
|
validator: n
|
|
1228
|
-
}) => n(
|
|
1228
|
+
}) => n(i))?.classGroupId;
|
|
1229
1229
|
}, "getGroupRecursive"), ft = /^\[(.+)\]$/, Io = /* @__PURE__ */ r((e) => {
|
|
1230
1230
|
if (ft.test(e)) {
|
|
1231
|
-
const
|
|
1231
|
+
const a = ft.exec(e)[1], o = a?.substring(0, a.indexOf(":"));
|
|
1232
1232
|
if (o)
|
|
1233
1233
|
return "arbitrary.." + o;
|
|
1234
1234
|
}
|
|
1235
1235
|
}, "getGroupIdForArbitraryProperty"), $o = /* @__PURE__ */ r((e) => {
|
|
1236
1236
|
const {
|
|
1237
|
-
theme:
|
|
1237
|
+
theme: a,
|
|
1238
1238
|
classGroups: o
|
|
1239
1239
|
} = e, t = {
|
|
1240
1240
|
nextPart: /* @__PURE__ */ new Map(),
|
|
1241
1241
|
validators: []
|
|
1242
1242
|
};
|
|
1243
1243
|
for (const s in o)
|
|
1244
|
-
Je(o[s], t, s,
|
|
1244
|
+
Je(o[s], t, s, a);
|
|
1245
1245
|
return t;
|
|
1246
|
-
}, "createClassMap"), Je = /* @__PURE__ */ r((e,
|
|
1246
|
+
}, "createClassMap"), Je = /* @__PURE__ */ r((e, a, o, t) => {
|
|
1247
1247
|
e.forEach((s) => {
|
|
1248
1248
|
if (typeof s == "string") {
|
|
1249
|
-
const
|
|
1250
|
-
|
|
1249
|
+
const i = s === "" ? a : mt(a, s);
|
|
1250
|
+
i.classGroupId = o;
|
|
1251
1251
|
return;
|
|
1252
1252
|
}
|
|
1253
1253
|
if (typeof s == "function") {
|
|
1254
1254
|
if (zo(s)) {
|
|
1255
|
-
Je(s(t),
|
|
1255
|
+
Je(s(t), a, o, t);
|
|
1256
1256
|
return;
|
|
1257
1257
|
}
|
|
1258
|
-
|
|
1258
|
+
a.validators.push({
|
|
1259
1259
|
validator: s,
|
|
1260
1260
|
classGroupId: o
|
|
1261
1261
|
});
|
|
1262
1262
|
return;
|
|
1263
1263
|
}
|
|
1264
|
-
Object.entries(s).forEach(([
|
|
1265
|
-
Je(n, mt(
|
|
1264
|
+
Object.entries(s).forEach(([i, n]) => {
|
|
1265
|
+
Je(n, mt(a, i), o, t);
|
|
1266
1266
|
});
|
|
1267
1267
|
});
|
|
1268
|
-
}, "processClassesRecursively"), mt = /* @__PURE__ */ r((e,
|
|
1268
|
+
}, "processClassesRecursively"), mt = /* @__PURE__ */ r((e, a) => {
|
|
1269
1269
|
let o = e;
|
|
1270
|
-
return
|
|
1270
|
+
return a.split(rt).forEach((t) => {
|
|
1271
1271
|
o.nextPart.has(t) || o.nextPart.set(t, {
|
|
1272
1272
|
nextPart: /* @__PURE__ */ new Map(),
|
|
1273
1273
|
validators: []
|
|
@@ -1281,55 +1281,55 @@ const io = /* @__PURE__ */ j({
|
|
|
1281
1281
|
set: /* @__PURE__ */ r(() => {
|
|
1282
1282
|
}, "set")
|
|
1283
1283
|
};
|
|
1284
|
-
let
|
|
1285
|
-
const s = /* @__PURE__ */ r((
|
|
1286
|
-
o.set(
|
|
1284
|
+
let a = 0, o = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
1285
|
+
const s = /* @__PURE__ */ r((i, n) => {
|
|
1286
|
+
o.set(i, n), a++, a > e && (a = 0, t = o, o = /* @__PURE__ */ new Map());
|
|
1287
1287
|
}, "update");
|
|
1288
1288
|
return {
|
|
1289
|
-
get(
|
|
1290
|
-
let n = o.get(
|
|
1289
|
+
get(i) {
|
|
1290
|
+
let n = o.get(i);
|
|
1291
1291
|
if (n !== void 0)
|
|
1292
1292
|
return n;
|
|
1293
|
-
if ((n = t.get(
|
|
1294
|
-
return s(
|
|
1293
|
+
if ((n = t.get(i)) !== void 0)
|
|
1294
|
+
return s(i, n), n;
|
|
1295
1295
|
},
|
|
1296
|
-
set(
|
|
1297
|
-
o.has(
|
|
1296
|
+
set(i, n) {
|
|
1297
|
+
o.has(i) ? o.set(i, n) : s(i, n);
|
|
1298
1298
|
}
|
|
1299
1299
|
};
|
|
1300
1300
|
}, "createLruCache"), Qe = "!", Xe = ":", To = Xe.length, Lo = /* @__PURE__ */ r((e) => {
|
|
1301
1301
|
const {
|
|
1302
|
-
prefix:
|
|
1302
|
+
prefix: a,
|
|
1303
1303
|
experimentalParseClassName: o
|
|
1304
1304
|
} = e;
|
|
1305
1305
|
let t = /* @__PURE__ */ r((s) => {
|
|
1306
|
-
const
|
|
1307
|
-
let n = 0, l = 0, d = 0,
|
|
1308
|
-
for (let
|
|
1309
|
-
let
|
|
1306
|
+
const i = [];
|
|
1307
|
+
let n = 0, l = 0, d = 0, w;
|
|
1308
|
+
for (let I = 0; I < s.length; I++) {
|
|
1309
|
+
let A = s[I];
|
|
1310
1310
|
if (n === 0 && l === 0) {
|
|
1311
|
-
if (
|
|
1312
|
-
|
|
1311
|
+
if (A === Xe) {
|
|
1312
|
+
i.push(s.slice(d, I)), d = I + To;
|
|
1313
1313
|
continue;
|
|
1314
1314
|
}
|
|
1315
|
-
if (
|
|
1316
|
-
|
|
1315
|
+
if (A === "/") {
|
|
1316
|
+
w = I;
|
|
1317
1317
|
continue;
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
|
-
|
|
1320
|
+
A === "[" ? n++ : A === "]" ? n-- : A === "(" ? l++ : A === ")" && l--;
|
|
1321
1321
|
}
|
|
1322
|
-
const m =
|
|
1322
|
+
const m = i.length === 0 ? s : s.substring(d), u = Do(m), b = u !== m, S = w && w > d ? w - d : void 0;
|
|
1323
1323
|
return {
|
|
1324
|
-
modifiers:
|
|
1325
|
-
hasImportantModifier:
|
|
1324
|
+
modifiers: i,
|
|
1325
|
+
hasImportantModifier: b,
|
|
1326
1326
|
baseClassName: u,
|
|
1327
|
-
maybePostfixModifierPosition:
|
|
1327
|
+
maybePostfixModifierPosition: S
|
|
1328
1328
|
};
|
|
1329
1329
|
}, "parseClassName");
|
|
1330
|
-
if (
|
|
1331
|
-
const s =
|
|
1332
|
-
t = /* @__PURE__ */ r((n) => n.startsWith(s) ?
|
|
1330
|
+
if (a) {
|
|
1331
|
+
const s = a + Xe, i = t;
|
|
1332
|
+
t = /* @__PURE__ */ r((n) => n.startsWith(s) ? i(n.substring(s.length)) : {
|
|
1333
1333
|
isExternal: !0,
|
|
1334
1334
|
modifiers: [],
|
|
1335
1335
|
hasImportantModifier: !1,
|
|
@@ -1339,123 +1339,123 @@ const io = /* @__PURE__ */ j({
|
|
|
1339
1339
|
}
|
|
1340
1340
|
if (o) {
|
|
1341
1341
|
const s = t;
|
|
1342
|
-
t = /* @__PURE__ */ r((
|
|
1343
|
-
className:
|
|
1342
|
+
t = /* @__PURE__ */ r((i) => o({
|
|
1343
|
+
className: i,
|
|
1344
1344
|
parseClassName: s
|
|
1345
1345
|
}), "parseClassName");
|
|
1346
1346
|
}
|
|
1347
1347
|
return t;
|
|
1348
1348
|
}, "createParseClassName"), Do = /* @__PURE__ */ r((e) => e.endsWith(Qe) ? e.substring(0, e.length - 1) : e.startsWith(Qe) ? e.substring(1) : e, "stripImportantModifier"), Vo = /* @__PURE__ */ r((e) => {
|
|
1349
|
-
const
|
|
1349
|
+
const a = Object.fromEntries(e.orderSensitiveModifiers.map((t) => [t, !0]));
|
|
1350
1350
|
return /* @__PURE__ */ r((t) => {
|
|
1351
1351
|
if (t.length <= 1)
|
|
1352
1352
|
return t;
|
|
1353
1353
|
const s = [];
|
|
1354
|
-
let
|
|
1354
|
+
let i = [];
|
|
1355
1355
|
return t.forEach((n) => {
|
|
1356
|
-
n[0] === "[" ||
|
|
1357
|
-
}), s.push(...
|
|
1356
|
+
n[0] === "[" || a[n] ? (s.push(...i.sort(), n), i = []) : i.push(n);
|
|
1357
|
+
}), s.push(...i.sort()), s;
|
|
1358
1358
|
}, "sortModifiers");
|
|
1359
1359
|
}, "createSortModifiers"), Po = /* @__PURE__ */ r((e) => ({
|
|
1360
1360
|
cache: Eo(e.cacheSize),
|
|
1361
1361
|
parseClassName: Lo(e),
|
|
1362
1362
|
sortModifiers: Vo(e),
|
|
1363
1363
|
...Ao(e)
|
|
1364
|
-
}), "createConfigUtils"), Fo = /\s+/, Bo = /* @__PURE__ */ r((e,
|
|
1364
|
+
}), "createConfigUtils"), Fo = /\s+/, Bo = /* @__PURE__ */ r((e, a) => {
|
|
1365
1365
|
const {
|
|
1366
1366
|
parseClassName: o,
|
|
1367
1367
|
getClassGroupId: t,
|
|
1368
1368
|
getConflictingClassGroupIds: s,
|
|
1369
|
-
sortModifiers:
|
|
1370
|
-
} =
|
|
1369
|
+
sortModifiers: i
|
|
1370
|
+
} = a, n = [], l = e.trim().split(Fo);
|
|
1371
1371
|
let d = "";
|
|
1372
|
-
for (let
|
|
1373
|
-
const m = l[
|
|
1372
|
+
for (let w = l.length - 1; w >= 0; w -= 1) {
|
|
1373
|
+
const m = l[w], {
|
|
1374
1374
|
isExternal: u,
|
|
1375
|
-
modifiers:
|
|
1376
|
-
hasImportantModifier:
|
|
1377
|
-
baseClassName:
|
|
1378
|
-
maybePostfixModifierPosition:
|
|
1375
|
+
modifiers: b,
|
|
1376
|
+
hasImportantModifier: S,
|
|
1377
|
+
baseClassName: I,
|
|
1378
|
+
maybePostfixModifierPosition: A
|
|
1379
1379
|
} = o(m);
|
|
1380
1380
|
if (u) {
|
|
1381
1381
|
d = m + (d.length > 0 ? " " + d : d);
|
|
1382
1382
|
continue;
|
|
1383
1383
|
}
|
|
1384
|
-
let
|
|
1385
|
-
if (!
|
|
1386
|
-
if (!
|
|
1384
|
+
let y = !!A, B = t(y ? I.substring(0, A) : I);
|
|
1385
|
+
if (!B) {
|
|
1386
|
+
if (!y) {
|
|
1387
1387
|
d = m + (d.length > 0 ? " " + d : d);
|
|
1388
1388
|
continue;
|
|
1389
1389
|
}
|
|
1390
|
-
if (
|
|
1390
|
+
if (B = t(I), !B) {
|
|
1391
1391
|
d = m + (d.length > 0 ? " " + d : d);
|
|
1392
1392
|
continue;
|
|
1393
1393
|
}
|
|
1394
|
-
|
|
1394
|
+
y = !1;
|
|
1395
1395
|
}
|
|
1396
|
-
const
|
|
1397
|
-
if (n.includes(
|
|
1396
|
+
const ie = i(b).join(":"), le = S ? ie + Qe : ie, ce = le + B;
|
|
1397
|
+
if (n.includes(ce))
|
|
1398
1398
|
continue;
|
|
1399
|
-
n.push(
|
|
1400
|
-
const
|
|
1401
|
-
for (let
|
|
1402
|
-
const ee =
|
|
1403
|
-
n.push(
|
|
1399
|
+
n.push(ce);
|
|
1400
|
+
const be = s(B, y);
|
|
1401
|
+
for (let q = 0; q < be.length; ++q) {
|
|
1402
|
+
const ee = be[q];
|
|
1403
|
+
n.push(le + ee);
|
|
1404
1404
|
}
|
|
1405
1405
|
d = m + (d.length > 0 ? " " + d : d);
|
|
1406
1406
|
}
|
|
1407
1407
|
return d;
|
|
1408
1408
|
}, "mergeClassList");
|
|
1409
1409
|
function No() {
|
|
1410
|
-
let e = 0,
|
|
1410
|
+
let e = 0, a, o, t = "";
|
|
1411
1411
|
for (; e < arguments.length; )
|
|
1412
|
-
(
|
|
1412
|
+
(a = arguments[e++]) && (o = $t(a)) && (t && (t += " "), t += o);
|
|
1413
1413
|
return t;
|
|
1414
1414
|
}
|
|
1415
1415
|
r(No, "twJoin");
|
|
1416
1416
|
const $t = /* @__PURE__ */ r((e) => {
|
|
1417
1417
|
if (typeof e == "string")
|
|
1418
1418
|
return e;
|
|
1419
|
-
let
|
|
1419
|
+
let a, o = "";
|
|
1420
1420
|
for (let t = 0; t < e.length; t++)
|
|
1421
|
-
e[t] && (
|
|
1421
|
+
e[t] && (a = $t(e[t])) && (o && (o += " "), o += a);
|
|
1422
1422
|
return o;
|
|
1423
1423
|
}, "toValue");
|
|
1424
|
-
function jo(e, ...
|
|
1425
|
-
let o, t, s,
|
|
1424
|
+
function jo(e, ...a) {
|
|
1425
|
+
let o, t, s, i = n;
|
|
1426
1426
|
function n(d) {
|
|
1427
|
-
const
|
|
1428
|
-
return o = Po(
|
|
1427
|
+
const w = a.reduce((m, u) => u(m), e());
|
|
1428
|
+
return o = Po(w), t = o.cache.get, s = o.cache.set, i = l, l(d);
|
|
1429
1429
|
}
|
|
1430
1430
|
r(n, "initTailwindMerge");
|
|
1431
1431
|
function l(d) {
|
|
1432
|
-
const
|
|
1433
|
-
if (
|
|
1434
|
-
return
|
|
1432
|
+
const w = t(d);
|
|
1433
|
+
if (w)
|
|
1434
|
+
return w;
|
|
1435
1435
|
const m = Bo(d, o);
|
|
1436
1436
|
return s(d, m), m;
|
|
1437
1437
|
}
|
|
1438
1438
|
return r(l, "tailwindMerge"), /* @__PURE__ */ r(function() {
|
|
1439
|
-
return
|
|
1439
|
+
return i(No.apply(null, arguments));
|
|
1440
1440
|
}, "callTailwindMerge");
|
|
1441
1441
|
}
|
|
1442
1442
|
r(jo, "createTailwindMerge");
|
|
1443
|
-
const
|
|
1444
|
-
const
|
|
1445
|
-
return
|
|
1446
|
-
}, "fromTheme"), zt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Et = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ro = /^\d+\/\d+$/, Go = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Uo = /\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$/, Oo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ho = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Wo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ae = /* @__PURE__ */ r((e) => Ro.test(e), "isFraction"),
|
|
1443
|
+
const U = /* @__PURE__ */ r((e) => {
|
|
1444
|
+
const a = /* @__PURE__ */ r((o) => o[e] || [], "themeGetter");
|
|
1445
|
+
return a.isThemeGetter = !0, a;
|
|
1446
|
+
}, "fromTheme"), zt = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Et = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ro = /^\d+\/\d+$/, Go = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Uo = /\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$/, Oo = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Ho = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Wo = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ae = /* @__PURE__ */ r((e) => Ro.test(e), "isFraction"), z = /* @__PURE__ */ r((e) => !!e && !Number.isNaN(Number(e)), "isNumber"), ye = /* @__PURE__ */ r((e) => !!e && Number.isInteger(Number(e)), "isInteger"), qe = /* @__PURE__ */ r((e) => e.endsWith("%") && z(e.slice(0, -1)), "isPercent"), me = /* @__PURE__ */ r((e) => Go.test(e), "isTshirtSize"), qo = /* @__PURE__ */ r(() => !0, "isAny"), Ko = /* @__PURE__ */ r((e) => (
|
|
1447
1447
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
1448
1448
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
1449
1449
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
1450
1450
|
Uo.test(e) && !Oo.test(e)
|
|
1451
|
-
), "isLengthOnly"), Tt = /* @__PURE__ */ r(() => !1, "isNever"), Zo = /* @__PURE__ */ r((e) => Ho.test(e), "isShadow"),
|
|
1451
|
+
), "isLengthOnly"), Tt = /* @__PURE__ */ r(() => !1, "isNever"), Zo = /* @__PURE__ */ r((e) => Ho.test(e), "isShadow"), Yo = /* @__PURE__ */ r((e) => Wo.test(e), "isImage"), _o = /* @__PURE__ */ r((e) => !p(e) && !v(e), "isAnyNonArbitrary"), Jo = /* @__PURE__ */ r((e) => ze(e, Vt, Tt), "isArbitrarySize"), p = /* @__PURE__ */ r((e) => zt.test(e), "isArbitraryValue"), we = /* @__PURE__ */ r((e) => ze(e, Pt, Ko), "isArbitraryLength"), Ke = /* @__PURE__ */ r((e) => ze(e, or, z), "isArbitraryNumber"), bt = /* @__PURE__ */ r((e) => ze(e, Lt, Tt), "isArbitraryPosition"), Qo = /* @__PURE__ */ r((e) => ze(e, Dt, Yo), "isArbitraryImage"), Re = /* @__PURE__ */ r((e) => ze(e, Ft, Zo), "isArbitraryShadow"), v = /* @__PURE__ */ r((e) => Et.test(e), "isArbitraryVariable"), Ve = /* @__PURE__ */ r((e) => Ee(e, Pt), "isArbitraryVariableLength"), Xo = /* @__PURE__ */ r((e) => Ee(e, rr), "isArbitraryVariableFamilyName"), pt = /* @__PURE__ */ r((e) => Ee(e, Lt), "isArbitraryVariablePosition"), er = /* @__PURE__ */ r((e) => Ee(e, Vt), "isArbitraryVariableSize"), tr = /* @__PURE__ */ r((e) => Ee(e, Dt), "isArbitraryVariableImage"), Ge = /* @__PURE__ */ r((e) => Ee(e, Ft, !0), "isArbitraryVariableShadow"), ze = /* @__PURE__ */ r((e, a, o) => {
|
|
1452
1452
|
const t = zt.exec(e);
|
|
1453
|
-
return t ? t[1] ?
|
|
1454
|
-
}, "getIsArbitraryValue"), Ee = /* @__PURE__ */ r((e,
|
|
1453
|
+
return t ? t[1] ? a(t[1]) : o(t[2]) : !1;
|
|
1454
|
+
}, "getIsArbitraryValue"), Ee = /* @__PURE__ */ r((e, a, o = !1) => {
|
|
1455
1455
|
const t = Et.exec(e);
|
|
1456
|
-
return t ? t[1] ?
|
|
1456
|
+
return t ? t[1] ? a(t[1]) : o : !1;
|
|
1457
1457
|
}, "getIsArbitraryVariable"), Lt = /* @__PURE__ */ r((e) => e === "position" || e === "percentage", "isLabelPosition"), Dt = /* @__PURE__ */ r((e) => e === "image" || e === "url", "isLabelImage"), Vt = /* @__PURE__ */ r((e) => e === "length" || e === "size" || e === "bg-size", "isLabelSize"), Pt = /* @__PURE__ */ r((e) => e === "length", "isLabelLength"), or = /* @__PURE__ */ r((e) => e === "number", "isLabelNumber"), rr = /* @__PURE__ */ r((e) => e === "family-name", "isLabelFamilyName"), Ft = /* @__PURE__ */ r((e) => e === "shadow", "isLabelShadow"), sr = /* @__PURE__ */ r(() => {
|
|
1458
|
-
const e =
|
|
1458
|
+
const e = U("color"), a = U("font"), o = U("text"), t = U("font-weight"), s = U("tracking"), i = U("leading"), n = U("breakpoint"), l = U("container"), d = U("spacing"), w = U("radius"), m = U("shadow"), u = U("inset-shadow"), b = U("text-shadow"), S = U("drop-shadow"), I = U("blur"), A = U("perspective"), y = U("aspect"), B = U("ease"), ie = U("animate"), le = /* @__PURE__ */ r(() => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], "scaleBreak"), ce = /* @__PURE__ */ r(() => [
|
|
1459
1459
|
"center",
|
|
1460
1460
|
"top",
|
|
1461
1461
|
"bottom",
|
|
@@ -1473,51 +1473,51 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
1473
1473
|
"bottom-left",
|
|
1474
1474
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
1475
1475
|
"left-bottom"
|
|
1476
|
-
], "scalePosition"),
|
|
1477
|
-
span: ["full",
|
|
1478
|
-
},
|
|
1479
|
-
position: [
|
|
1476
|
+
], "scalePosition"), be = /* @__PURE__ */ r(() => [...ce(), v, p], "scalePositionWithArbitrary"), q = /* @__PURE__ */ r(() => ["auto", "hidden", "clip", "visible", "scroll"], "scaleOverflow"), ee = /* @__PURE__ */ r(() => ["auto", "contain", "none"], "scaleOverscroll"), C = /* @__PURE__ */ r(() => [v, p, d], "scaleUnambiguousSpacing"), _ = /* @__PURE__ */ r(() => [Ae, "full", "auto", ...C()], "scaleInset"), Fe = /* @__PURE__ */ r(() => [ye, "none", "subgrid", v, p], "scaleGridTemplateColsRows"), Be = /* @__PURE__ */ r(() => ["auto", {
|
|
1477
|
+
span: ["full", ye, v, p]
|
|
1478
|
+
}, ye, v, p], "scaleGridColRowStartAndEnd"), Se = /* @__PURE__ */ r(() => [ye, "auto", v, p], "scaleGridColRowStartOrEnd"), Ne = /* @__PURE__ */ r(() => ["auto", "min", "max", "fr", v, p], "scaleGridAutoColsRows"), Te = /* @__PURE__ */ r(() => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], "scaleAlignPrimaryAxis"), te = /* @__PURE__ */ r(() => ["start", "end", "center", "stretch", "center-safe", "end-safe"], "scaleAlignSecondaryAxis"), Y = /* @__PURE__ */ r(() => ["auto", ...C()], "scaleMargin"), g = /* @__PURE__ */ r(() => [Ae, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], "scaleSizing"), h = /* @__PURE__ */ r(() => [e, v, p], "scaleColor"), N = /* @__PURE__ */ r(() => [...ce(), pt, bt, {
|
|
1479
|
+
position: [v, p]
|
|
1480
1480
|
}], "scaleBgPosition"), M = /* @__PURE__ */ r(() => ["no-repeat", {
|
|
1481
1481
|
repeat: ["", "x", "y", "space", "round"]
|
|
1482
|
-
}], "scaleBgRepeat"),
|
|
1483
|
-
size: [
|
|
1484
|
-
}], "scaleBgSize"),
|
|
1482
|
+
}], "scaleBgRepeat"), $ = /* @__PURE__ */ r(() => ["auto", "cover", "contain", er, Jo, {
|
|
1483
|
+
size: [v, p]
|
|
1484
|
+
}], "scaleBgSize"), W = /* @__PURE__ */ r(() => [qe, Ve, we], "scaleGradientStopPosition"), V = /* @__PURE__ */ r(() => [
|
|
1485
1485
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1486
1486
|
"",
|
|
1487
1487
|
"none",
|
|
1488
1488
|
"full",
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
], "scaleRadius"),
|
|
1489
|
+
w,
|
|
1490
|
+
v,
|
|
1491
|
+
p
|
|
1492
|
+
], "scaleRadius"), P = /* @__PURE__ */ r(() => ["", z, Ve, we], "scaleBorderWidth"), K = /* @__PURE__ */ r(() => ["solid", "dashed", "dotted", "double"], "scaleLineStyle"), R = /* @__PURE__ */ r(() => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], "scaleBlendMode"), L = /* @__PURE__ */ r(() => [z, qe, pt, bt], "scaleMaskImagePosition"), de = /* @__PURE__ */ r(() => [
|
|
1493
1493
|
// Deprecated since Tailwind CSS v4.0.0
|
|
1494
1494
|
"",
|
|
1495
1495
|
"none",
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
], "scaleBlur"),
|
|
1496
|
+
I,
|
|
1497
|
+
v,
|
|
1498
|
+
p
|
|
1499
|
+
], "scaleBlur"), pe = /* @__PURE__ */ r(() => ["none", z, v, p], "scaleRotate"), J = /* @__PURE__ */ r(() => ["none", z, v, p], "scaleScale"), ve = /* @__PURE__ */ r(() => [z, v, p], "scaleSkew"), ke = /* @__PURE__ */ r(() => [Ae, "full", ...C()], "scaleTranslate");
|
|
1500
1500
|
return {
|
|
1501
1501
|
cacheSize: 500,
|
|
1502
1502
|
theme: {
|
|
1503
1503
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
1504
1504
|
aspect: ["video"],
|
|
1505
|
-
blur: [
|
|
1506
|
-
breakpoint: [
|
|
1505
|
+
blur: [me],
|
|
1506
|
+
breakpoint: [me],
|
|
1507
1507
|
color: [qo],
|
|
1508
|
-
container: [
|
|
1509
|
-
"drop-shadow": [
|
|
1508
|
+
container: [me],
|
|
1509
|
+
"drop-shadow": [me],
|
|
1510
1510
|
ease: ["in", "out", "in-out"],
|
|
1511
|
-
font: [
|
|
1511
|
+
font: [_o],
|
|
1512
1512
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
1513
|
-
"inset-shadow": [
|
|
1513
|
+
"inset-shadow": [me],
|
|
1514
1514
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
1515
1515
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
1516
|
-
radius: [
|
|
1517
|
-
shadow: [
|
|
1518
|
-
spacing: ["px",
|
|
1519
|
-
text: [
|
|
1520
|
-
"text-shadow": [
|
|
1516
|
+
radius: [me],
|
|
1517
|
+
shadow: [me],
|
|
1518
|
+
spacing: ["px", z],
|
|
1519
|
+
text: [me],
|
|
1520
|
+
"text-shadow": [me],
|
|
1521
1521
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
1522
1522
|
},
|
|
1523
1523
|
classGroups: {
|
|
@@ -1529,7 +1529,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
1529
1529
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
1530
1530
|
*/
|
|
1531
1531
|
aspect: [{
|
|
1532
|
-
aspect: ["auto", "square", Ae,
|
|
1532
|
+
aspect: ["auto", "square", Ae, p, v, y]
|
|
1533
1533
|
}],
|
|
1534
1534
|
/**
|
|
1535
1535
|
* Container
|
|
@@ -1542,21 +1542,21 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
1542
1542
|
* @see https://tailwindcss.com/docs/columns
|
|
1543
1543
|
*/
|
|
1544
1544
|
columns: [{
|
|
1545
|
-
columns: [
|
|
1545
|
+
columns: [z, p, v, l]
|
|
1546
1546
|
}],
|
|
1547
1547
|
/**
|
|
1548
1548
|
* Break After
|
|
1549
1549
|
* @see https://tailwindcss.com/docs/break-after
|
|
1550
1550
|
*/
|
|
1551
1551
|
"break-after": [{
|
|
1552
|
-
"break-after":
|
|
1552
|
+
"break-after": le()
|
|
1553
1553
|
}],
|
|
1554
1554
|
/**
|
|
1555
1555
|
* Break Before
|
|
1556
1556
|
* @see https://tailwindcss.com/docs/break-before
|
|
1557
1557
|
*/
|
|
1558
1558
|
"break-before": [{
|
|
1559
|
-
"break-before":
|
|
1559
|
+
"break-before": le()
|
|
1560
1560
|
}],
|
|
1561
1561
|
/**
|
|
1562
1562
|
* Break Inside
|
|
@@ -1620,28 +1620,28 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
1620
1620
|
* @see https://tailwindcss.com/docs/object-position
|
|
1621
1621
|
*/
|
|
1622
1622
|
"object-position": [{
|
|
1623
|
-
object:
|
|
1623
|
+
object: be()
|
|
1624
1624
|
}],
|
|
1625
1625
|
/**
|
|
1626
1626
|
* Overflow
|
|
1627
1627
|
* @see https://tailwindcss.com/docs/overflow
|
|
1628
1628
|
*/
|
|
1629
1629
|
overflow: [{
|
|
1630
|
-
overflow:
|
|
1630
|
+
overflow: q()
|
|
1631
1631
|
}],
|
|
1632
1632
|
/**
|
|
1633
1633
|
* Overflow X
|
|
1634
1634
|
* @see https://tailwindcss.com/docs/overflow
|
|
1635
1635
|
*/
|
|
1636
1636
|
"overflow-x": [{
|
|
1637
|
-
"overflow-x":
|
|
1637
|
+
"overflow-x": q()
|
|
1638
1638
|
}],
|
|
1639
1639
|
/**
|
|
1640
1640
|
* Overflow Y
|
|
1641
1641
|
* @see https://tailwindcss.com/docs/overflow
|
|
1642
1642
|
*/
|
|
1643
1643
|
"overflow-y": [{
|
|
1644
|
-
"overflow-y":
|
|
1644
|
+
"overflow-y": q()
|
|
1645
1645
|
}],
|
|
1646
1646
|
/**
|
|
1647
1647
|
* Overscroll Behavior
|
|
@@ -1674,63 +1674,63 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
1674
1674
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1675
1675
|
*/
|
|
1676
1676
|
inset: [{
|
|
1677
|
-
inset:
|
|
1677
|
+
inset: _()
|
|
1678
1678
|
}],
|
|
1679
1679
|
/**
|
|
1680
1680
|
* Right / Left
|
|
1681
1681
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1682
1682
|
*/
|
|
1683
1683
|
"inset-x": [{
|
|
1684
|
-
"inset-x":
|
|
1684
|
+
"inset-x": _()
|
|
1685
1685
|
}],
|
|
1686
1686
|
/**
|
|
1687
1687
|
* Top / Bottom
|
|
1688
1688
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1689
1689
|
*/
|
|
1690
1690
|
"inset-y": [{
|
|
1691
|
-
"inset-y":
|
|
1691
|
+
"inset-y": _()
|
|
1692
1692
|
}],
|
|
1693
1693
|
/**
|
|
1694
1694
|
* Start
|
|
1695
1695
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1696
1696
|
*/
|
|
1697
1697
|
start: [{
|
|
1698
|
-
start:
|
|
1698
|
+
start: _()
|
|
1699
1699
|
}],
|
|
1700
1700
|
/**
|
|
1701
1701
|
* End
|
|
1702
1702
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1703
1703
|
*/
|
|
1704
1704
|
end: [{
|
|
1705
|
-
end:
|
|
1705
|
+
end: _()
|
|
1706
1706
|
}],
|
|
1707
1707
|
/**
|
|
1708
1708
|
* Top
|
|
1709
1709
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1710
1710
|
*/
|
|
1711
1711
|
top: [{
|
|
1712
|
-
top:
|
|
1712
|
+
top: _()
|
|
1713
1713
|
}],
|
|
1714
1714
|
/**
|
|
1715
1715
|
* Right
|
|
1716
1716
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1717
1717
|
*/
|
|
1718
1718
|
right: [{
|
|
1719
|
-
right:
|
|
1719
|
+
right: _()
|
|
1720
1720
|
}],
|
|
1721
1721
|
/**
|
|
1722
1722
|
* Bottom
|
|
1723
1723
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1724
1724
|
*/
|
|
1725
1725
|
bottom: [{
|
|
1726
|
-
bottom:
|
|
1726
|
+
bottom: _()
|
|
1727
1727
|
}],
|
|
1728
1728
|
/**
|
|
1729
1729
|
* Left
|
|
1730
1730
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
1731
1731
|
*/
|
|
1732
1732
|
left: [{
|
|
1733
|
-
left:
|
|
1733
|
+
left: _()
|
|
1734
1734
|
}],
|
|
1735
1735
|
/**
|
|
1736
1736
|
* Visibility
|
|
@@ -1742,7 +1742,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
1742
1742
|
* @see https://tailwindcss.com/docs/z-index
|
|
1743
1743
|
*/
|
|
1744
1744
|
z: [{
|
|
1745
|
-
z: [
|
|
1745
|
+
z: [ye, "auto", v, p]
|
|
1746
1746
|
}],
|
|
1747
1747
|
// ------------------------
|
|
1748
1748
|
// --- Flexbox and Grid ---
|
|
@@ -1752,7 +1752,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
1752
1752
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1753
1753
|
*/
|
|
1754
1754
|
basis: [{
|
|
1755
|
-
basis: [Ae, "full", "auto", l, ...
|
|
1755
|
+
basis: [Ae, "full", "auto", l, ...C()]
|
|
1756
1756
|
}],
|
|
1757
1757
|
/**
|
|
1758
1758
|
* Flex Direction
|
|
@@ -1773,28 +1773,28 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
1773
1773
|
* @see https://tailwindcss.com/docs/flex
|
|
1774
1774
|
*/
|
|
1775
1775
|
flex: [{
|
|
1776
|
-
flex: [
|
|
1776
|
+
flex: [z, Ae, "auto", "initial", "none", p]
|
|
1777
1777
|
}],
|
|
1778
1778
|
/**
|
|
1779
1779
|
* Flex Grow
|
|
1780
1780
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1781
1781
|
*/
|
|
1782
1782
|
grow: [{
|
|
1783
|
-
grow: ["",
|
|
1783
|
+
grow: ["", z, v, p]
|
|
1784
1784
|
}],
|
|
1785
1785
|
/**
|
|
1786
1786
|
* Flex Shrink
|
|
1787
1787
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1788
1788
|
*/
|
|
1789
1789
|
shrink: [{
|
|
1790
|
-
shrink: ["",
|
|
1790
|
+
shrink: ["", z, v, p]
|
|
1791
1791
|
}],
|
|
1792
1792
|
/**
|
|
1793
1793
|
* Order
|
|
1794
1794
|
* @see https://tailwindcss.com/docs/order
|
|
1795
1795
|
*/
|
|
1796
1796
|
order: [{
|
|
1797
|
-
order: [
|
|
1797
|
+
order: [ye, "first", "last", "none", v, p]
|
|
1798
1798
|
}],
|
|
1799
1799
|
/**
|
|
1800
1800
|
* Grid Template Columns
|
|
@@ -1878,21 +1878,21 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
1878
1878
|
* @see https://tailwindcss.com/docs/gap
|
|
1879
1879
|
*/
|
|
1880
1880
|
gap: [{
|
|
1881
|
-
gap:
|
|
1881
|
+
gap: C()
|
|
1882
1882
|
}],
|
|
1883
1883
|
/**
|
|
1884
1884
|
* Gap X
|
|
1885
1885
|
* @see https://tailwindcss.com/docs/gap
|
|
1886
1886
|
*/
|
|
1887
1887
|
"gap-x": [{
|
|
1888
|
-
"gap-x":
|
|
1888
|
+
"gap-x": C()
|
|
1889
1889
|
}],
|
|
1890
1890
|
/**
|
|
1891
1891
|
* Gap Y
|
|
1892
1892
|
* @see https://tailwindcss.com/docs/gap
|
|
1893
1893
|
*/
|
|
1894
1894
|
"gap-y": [{
|
|
1895
|
-
"gap-y":
|
|
1895
|
+
"gap-y": C()
|
|
1896
1896
|
}],
|
|
1897
1897
|
/**
|
|
1898
1898
|
* Justify Content
|
|
@@ -1967,133 +1967,133 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
1967
1967
|
* @see https://tailwindcss.com/docs/padding
|
|
1968
1968
|
*/
|
|
1969
1969
|
p: [{
|
|
1970
|
-
p:
|
|
1970
|
+
p: C()
|
|
1971
1971
|
}],
|
|
1972
1972
|
/**
|
|
1973
1973
|
* Padding X
|
|
1974
1974
|
* @see https://tailwindcss.com/docs/padding
|
|
1975
1975
|
*/
|
|
1976
1976
|
px: [{
|
|
1977
|
-
px:
|
|
1977
|
+
px: C()
|
|
1978
1978
|
}],
|
|
1979
1979
|
/**
|
|
1980
1980
|
* Padding Y
|
|
1981
1981
|
* @see https://tailwindcss.com/docs/padding
|
|
1982
1982
|
*/
|
|
1983
1983
|
py: [{
|
|
1984
|
-
py:
|
|
1984
|
+
py: C()
|
|
1985
1985
|
}],
|
|
1986
1986
|
/**
|
|
1987
1987
|
* Padding Start
|
|
1988
1988
|
* @see https://tailwindcss.com/docs/padding
|
|
1989
1989
|
*/
|
|
1990
1990
|
ps: [{
|
|
1991
|
-
ps:
|
|
1991
|
+
ps: C()
|
|
1992
1992
|
}],
|
|
1993
1993
|
/**
|
|
1994
1994
|
* Padding End
|
|
1995
1995
|
* @see https://tailwindcss.com/docs/padding
|
|
1996
1996
|
*/
|
|
1997
1997
|
pe: [{
|
|
1998
|
-
pe:
|
|
1998
|
+
pe: C()
|
|
1999
1999
|
}],
|
|
2000
2000
|
/**
|
|
2001
2001
|
* Padding Top
|
|
2002
2002
|
* @see https://tailwindcss.com/docs/padding
|
|
2003
2003
|
*/
|
|
2004
2004
|
pt: [{
|
|
2005
|
-
pt:
|
|
2005
|
+
pt: C()
|
|
2006
2006
|
}],
|
|
2007
2007
|
/**
|
|
2008
2008
|
* Padding Right
|
|
2009
2009
|
* @see https://tailwindcss.com/docs/padding
|
|
2010
2010
|
*/
|
|
2011
2011
|
pr: [{
|
|
2012
|
-
pr:
|
|
2012
|
+
pr: C()
|
|
2013
2013
|
}],
|
|
2014
2014
|
/**
|
|
2015
2015
|
* Padding Bottom
|
|
2016
2016
|
* @see https://tailwindcss.com/docs/padding
|
|
2017
2017
|
*/
|
|
2018
2018
|
pb: [{
|
|
2019
|
-
pb:
|
|
2019
|
+
pb: C()
|
|
2020
2020
|
}],
|
|
2021
2021
|
/**
|
|
2022
2022
|
* Padding Left
|
|
2023
2023
|
* @see https://tailwindcss.com/docs/padding
|
|
2024
2024
|
*/
|
|
2025
2025
|
pl: [{
|
|
2026
|
-
pl:
|
|
2026
|
+
pl: C()
|
|
2027
2027
|
}],
|
|
2028
2028
|
/**
|
|
2029
2029
|
* Margin
|
|
2030
2030
|
* @see https://tailwindcss.com/docs/margin
|
|
2031
2031
|
*/
|
|
2032
2032
|
m: [{
|
|
2033
|
-
m:
|
|
2033
|
+
m: Y()
|
|
2034
2034
|
}],
|
|
2035
2035
|
/**
|
|
2036
2036
|
* Margin X
|
|
2037
2037
|
* @see https://tailwindcss.com/docs/margin
|
|
2038
2038
|
*/
|
|
2039
2039
|
mx: [{
|
|
2040
|
-
mx:
|
|
2040
|
+
mx: Y()
|
|
2041
2041
|
}],
|
|
2042
2042
|
/**
|
|
2043
2043
|
* Margin Y
|
|
2044
2044
|
* @see https://tailwindcss.com/docs/margin
|
|
2045
2045
|
*/
|
|
2046
2046
|
my: [{
|
|
2047
|
-
my:
|
|
2047
|
+
my: Y()
|
|
2048
2048
|
}],
|
|
2049
2049
|
/**
|
|
2050
2050
|
* Margin Start
|
|
2051
2051
|
* @see https://tailwindcss.com/docs/margin
|
|
2052
2052
|
*/
|
|
2053
2053
|
ms: [{
|
|
2054
|
-
ms:
|
|
2054
|
+
ms: Y()
|
|
2055
2055
|
}],
|
|
2056
2056
|
/**
|
|
2057
2057
|
* Margin End
|
|
2058
2058
|
* @see https://tailwindcss.com/docs/margin
|
|
2059
2059
|
*/
|
|
2060
2060
|
me: [{
|
|
2061
|
-
me:
|
|
2061
|
+
me: Y()
|
|
2062
2062
|
}],
|
|
2063
2063
|
/**
|
|
2064
2064
|
* Margin Top
|
|
2065
2065
|
* @see https://tailwindcss.com/docs/margin
|
|
2066
2066
|
*/
|
|
2067
2067
|
mt: [{
|
|
2068
|
-
mt:
|
|
2068
|
+
mt: Y()
|
|
2069
2069
|
}],
|
|
2070
2070
|
/**
|
|
2071
2071
|
* Margin Right
|
|
2072
2072
|
* @see https://tailwindcss.com/docs/margin
|
|
2073
2073
|
*/
|
|
2074
2074
|
mr: [{
|
|
2075
|
-
mr:
|
|
2075
|
+
mr: Y()
|
|
2076
2076
|
}],
|
|
2077
2077
|
/**
|
|
2078
2078
|
* Margin Bottom
|
|
2079
2079
|
* @see https://tailwindcss.com/docs/margin
|
|
2080
2080
|
*/
|
|
2081
2081
|
mb: [{
|
|
2082
|
-
mb:
|
|
2082
|
+
mb: Y()
|
|
2083
2083
|
}],
|
|
2084
2084
|
/**
|
|
2085
2085
|
* Margin Left
|
|
2086
2086
|
* @see https://tailwindcss.com/docs/margin
|
|
2087
2087
|
*/
|
|
2088
2088
|
ml: [{
|
|
2089
|
-
ml:
|
|
2089
|
+
ml: Y()
|
|
2090
2090
|
}],
|
|
2091
2091
|
/**
|
|
2092
2092
|
* Space Between X
|
|
2093
2093
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2094
2094
|
*/
|
|
2095
2095
|
"space-x": [{
|
|
2096
|
-
"space-x":
|
|
2096
|
+
"space-x": C()
|
|
2097
2097
|
}],
|
|
2098
2098
|
/**
|
|
2099
2099
|
* Space Between X Reverse
|
|
@@ -2105,7 +2105,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2105
2105
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
2106
2106
|
*/
|
|
2107
2107
|
"space-y": [{
|
|
2108
|
-
"space-y":
|
|
2108
|
+
"space-y": C()
|
|
2109
2109
|
}],
|
|
2110
2110
|
/**
|
|
2111
2111
|
* Space Between Y Reverse
|
|
@@ -2206,21 +2206,21 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2206
2206
|
* @see https://tailwindcss.com/docs/font-weight
|
|
2207
2207
|
*/
|
|
2208
2208
|
"font-weight": [{
|
|
2209
|
-
font: [t,
|
|
2209
|
+
font: [t, v, Ke]
|
|
2210
2210
|
}],
|
|
2211
2211
|
/**
|
|
2212
2212
|
* Font Stretch
|
|
2213
2213
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
2214
2214
|
*/
|
|
2215
2215
|
"font-stretch": [{
|
|
2216
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", qe,
|
|
2216
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", qe, p]
|
|
2217
2217
|
}],
|
|
2218
2218
|
/**
|
|
2219
2219
|
* Font Family
|
|
2220
2220
|
* @see https://tailwindcss.com/docs/font-family
|
|
2221
2221
|
*/
|
|
2222
2222
|
"font-family": [{
|
|
2223
|
-
font: [Xo,
|
|
2223
|
+
font: [Xo, p, a]
|
|
2224
2224
|
}],
|
|
2225
2225
|
/**
|
|
2226
2226
|
* Font Variant Numeric
|
|
@@ -2257,14 +2257,14 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2257
2257
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
2258
2258
|
*/
|
|
2259
2259
|
tracking: [{
|
|
2260
|
-
tracking: [s,
|
|
2260
|
+
tracking: [s, v, p]
|
|
2261
2261
|
}],
|
|
2262
2262
|
/**
|
|
2263
2263
|
* Line Clamp
|
|
2264
2264
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
2265
2265
|
*/
|
|
2266
2266
|
"line-clamp": [{
|
|
2267
|
-
"line-clamp": [
|
|
2267
|
+
"line-clamp": [z, "none", v, Ke]
|
|
2268
2268
|
}],
|
|
2269
2269
|
/**
|
|
2270
2270
|
* Line Height
|
|
@@ -2273,8 +2273,8 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2273
2273
|
leading: [{
|
|
2274
2274
|
leading: [
|
|
2275
2275
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
2276
|
-
|
|
2277
|
-
...
|
|
2276
|
+
i,
|
|
2277
|
+
...C()
|
|
2278
2278
|
]
|
|
2279
2279
|
}],
|
|
2280
2280
|
/**
|
|
@@ -2282,7 +2282,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2282
2282
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
2283
2283
|
*/
|
|
2284
2284
|
"list-image": [{
|
|
2285
|
-
"list-image": ["none",
|
|
2285
|
+
"list-image": ["none", v, p]
|
|
2286
2286
|
}],
|
|
2287
2287
|
/**
|
|
2288
2288
|
* List Style Position
|
|
@@ -2296,7 +2296,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2296
2296
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
2297
2297
|
*/
|
|
2298
2298
|
"list-style-type": [{
|
|
2299
|
-
list: ["disc", "decimal", "none",
|
|
2299
|
+
list: ["disc", "decimal", "none", v, p]
|
|
2300
2300
|
}],
|
|
2301
2301
|
/**
|
|
2302
2302
|
* Text Alignment
|
|
@@ -2337,7 +2337,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2337
2337
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
2338
2338
|
*/
|
|
2339
2339
|
"text-decoration-thickness": [{
|
|
2340
|
-
decoration: [
|
|
2340
|
+
decoration: [z, "from-font", "auto", v, we]
|
|
2341
2341
|
}],
|
|
2342
2342
|
/**
|
|
2343
2343
|
* Text Decoration Color
|
|
@@ -2351,7 +2351,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2351
2351
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
2352
2352
|
*/
|
|
2353
2353
|
"underline-offset": [{
|
|
2354
|
-
"underline-offset": [
|
|
2354
|
+
"underline-offset": [z, "auto", v, p]
|
|
2355
2355
|
}],
|
|
2356
2356
|
/**
|
|
2357
2357
|
* Text Transform
|
|
@@ -2375,14 +2375,14 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2375
2375
|
* @see https://tailwindcss.com/docs/text-indent
|
|
2376
2376
|
*/
|
|
2377
2377
|
indent: [{
|
|
2378
|
-
indent:
|
|
2378
|
+
indent: C()
|
|
2379
2379
|
}],
|
|
2380
2380
|
/**
|
|
2381
2381
|
* Vertical Alignment
|
|
2382
2382
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
2383
2383
|
*/
|
|
2384
2384
|
"vertical-align": [{
|
|
2385
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
2385
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", v, p]
|
|
2386
2386
|
}],
|
|
2387
2387
|
/**
|
|
2388
2388
|
* Whitespace
|
|
@@ -2417,7 +2417,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2417
2417
|
* @see https://tailwindcss.com/docs/content
|
|
2418
2418
|
*/
|
|
2419
2419
|
content: [{
|
|
2420
|
-
content: ["none",
|
|
2420
|
+
content: ["none", v, p]
|
|
2421
2421
|
}],
|
|
2422
2422
|
// -------------------
|
|
2423
2423
|
// --- Backgrounds ---
|
|
@@ -2448,7 +2448,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2448
2448
|
* @see https://tailwindcss.com/docs/background-position
|
|
2449
2449
|
*/
|
|
2450
2450
|
"bg-position": [{
|
|
2451
|
-
bg:
|
|
2451
|
+
bg: N()
|
|
2452
2452
|
}],
|
|
2453
2453
|
/**
|
|
2454
2454
|
* Background Repeat
|
|
@@ -2462,7 +2462,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2462
2462
|
* @see https://tailwindcss.com/docs/background-size
|
|
2463
2463
|
*/
|
|
2464
2464
|
"bg-size": [{
|
|
2465
|
-
bg:
|
|
2465
|
+
bg: $()
|
|
2466
2466
|
}],
|
|
2467
2467
|
/**
|
|
2468
2468
|
* Background Image
|
|
@@ -2472,9 +2472,9 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2472
2472
|
bg: ["none", {
|
|
2473
2473
|
linear: [{
|
|
2474
2474
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
2475
|
-
},
|
|
2476
|
-
radial: ["",
|
|
2477
|
-
conic: [
|
|
2475
|
+
}, ye, v, p],
|
|
2476
|
+
radial: ["", v, p],
|
|
2477
|
+
conic: [ye, v, p]
|
|
2478
2478
|
}, tr, Qo]
|
|
2479
2479
|
}],
|
|
2480
2480
|
/**
|
|
@@ -2489,21 +2489,21 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2489
2489
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2490
2490
|
*/
|
|
2491
2491
|
"gradient-from-pos": [{
|
|
2492
|
-
from:
|
|
2492
|
+
from: W()
|
|
2493
2493
|
}],
|
|
2494
2494
|
/**
|
|
2495
2495
|
* Gradient Color Stops Via Position
|
|
2496
2496
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2497
2497
|
*/
|
|
2498
2498
|
"gradient-via-pos": [{
|
|
2499
|
-
via:
|
|
2499
|
+
via: W()
|
|
2500
2500
|
}],
|
|
2501
2501
|
/**
|
|
2502
2502
|
* Gradient Color Stops To Position
|
|
2503
2503
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
2504
2504
|
*/
|
|
2505
2505
|
"gradient-to-pos": [{
|
|
2506
|
-
to:
|
|
2506
|
+
to: W()
|
|
2507
2507
|
}],
|
|
2508
2508
|
/**
|
|
2509
2509
|
* Gradient Color Stops From
|
|
@@ -2534,175 +2534,175 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2534
2534
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2535
2535
|
*/
|
|
2536
2536
|
rounded: [{
|
|
2537
|
-
rounded:
|
|
2537
|
+
rounded: V()
|
|
2538
2538
|
}],
|
|
2539
2539
|
/**
|
|
2540
2540
|
* Border Radius Start
|
|
2541
2541
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2542
2542
|
*/
|
|
2543
2543
|
"rounded-s": [{
|
|
2544
|
-
"rounded-s":
|
|
2544
|
+
"rounded-s": V()
|
|
2545
2545
|
}],
|
|
2546
2546
|
/**
|
|
2547
2547
|
* Border Radius End
|
|
2548
2548
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2549
2549
|
*/
|
|
2550
2550
|
"rounded-e": [{
|
|
2551
|
-
"rounded-e":
|
|
2551
|
+
"rounded-e": V()
|
|
2552
2552
|
}],
|
|
2553
2553
|
/**
|
|
2554
2554
|
* Border Radius Top
|
|
2555
2555
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2556
2556
|
*/
|
|
2557
2557
|
"rounded-t": [{
|
|
2558
|
-
"rounded-t":
|
|
2558
|
+
"rounded-t": V()
|
|
2559
2559
|
}],
|
|
2560
2560
|
/**
|
|
2561
2561
|
* Border Radius Right
|
|
2562
2562
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2563
2563
|
*/
|
|
2564
2564
|
"rounded-r": [{
|
|
2565
|
-
"rounded-r":
|
|
2565
|
+
"rounded-r": V()
|
|
2566
2566
|
}],
|
|
2567
2567
|
/**
|
|
2568
2568
|
* Border Radius Bottom
|
|
2569
2569
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2570
2570
|
*/
|
|
2571
2571
|
"rounded-b": [{
|
|
2572
|
-
"rounded-b":
|
|
2572
|
+
"rounded-b": V()
|
|
2573
2573
|
}],
|
|
2574
2574
|
/**
|
|
2575
2575
|
* Border Radius Left
|
|
2576
2576
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2577
2577
|
*/
|
|
2578
2578
|
"rounded-l": [{
|
|
2579
|
-
"rounded-l":
|
|
2579
|
+
"rounded-l": V()
|
|
2580
2580
|
}],
|
|
2581
2581
|
/**
|
|
2582
2582
|
* Border Radius Start Start
|
|
2583
2583
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2584
2584
|
*/
|
|
2585
2585
|
"rounded-ss": [{
|
|
2586
|
-
"rounded-ss":
|
|
2586
|
+
"rounded-ss": V()
|
|
2587
2587
|
}],
|
|
2588
2588
|
/**
|
|
2589
2589
|
* Border Radius Start End
|
|
2590
2590
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2591
2591
|
*/
|
|
2592
2592
|
"rounded-se": [{
|
|
2593
|
-
"rounded-se":
|
|
2593
|
+
"rounded-se": V()
|
|
2594
2594
|
}],
|
|
2595
2595
|
/**
|
|
2596
2596
|
* Border Radius End End
|
|
2597
2597
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2598
2598
|
*/
|
|
2599
2599
|
"rounded-ee": [{
|
|
2600
|
-
"rounded-ee":
|
|
2600
|
+
"rounded-ee": V()
|
|
2601
2601
|
}],
|
|
2602
2602
|
/**
|
|
2603
2603
|
* Border Radius End Start
|
|
2604
2604
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2605
2605
|
*/
|
|
2606
2606
|
"rounded-es": [{
|
|
2607
|
-
"rounded-es":
|
|
2607
|
+
"rounded-es": V()
|
|
2608
2608
|
}],
|
|
2609
2609
|
/**
|
|
2610
2610
|
* Border Radius Top Left
|
|
2611
2611
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2612
2612
|
*/
|
|
2613
2613
|
"rounded-tl": [{
|
|
2614
|
-
"rounded-tl":
|
|
2614
|
+
"rounded-tl": V()
|
|
2615
2615
|
}],
|
|
2616
2616
|
/**
|
|
2617
2617
|
* Border Radius Top Right
|
|
2618
2618
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2619
2619
|
*/
|
|
2620
2620
|
"rounded-tr": [{
|
|
2621
|
-
"rounded-tr":
|
|
2621
|
+
"rounded-tr": V()
|
|
2622
2622
|
}],
|
|
2623
2623
|
/**
|
|
2624
2624
|
* Border Radius Bottom Right
|
|
2625
2625
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2626
2626
|
*/
|
|
2627
2627
|
"rounded-br": [{
|
|
2628
|
-
"rounded-br":
|
|
2628
|
+
"rounded-br": V()
|
|
2629
2629
|
}],
|
|
2630
2630
|
/**
|
|
2631
2631
|
* Border Radius Bottom Left
|
|
2632
2632
|
* @see https://tailwindcss.com/docs/border-radius
|
|
2633
2633
|
*/
|
|
2634
2634
|
"rounded-bl": [{
|
|
2635
|
-
"rounded-bl":
|
|
2635
|
+
"rounded-bl": V()
|
|
2636
2636
|
}],
|
|
2637
2637
|
/**
|
|
2638
2638
|
* Border Width
|
|
2639
2639
|
* @see https://tailwindcss.com/docs/border-width
|
|
2640
2640
|
*/
|
|
2641
2641
|
"border-w": [{
|
|
2642
|
-
border:
|
|
2642
|
+
border: P()
|
|
2643
2643
|
}],
|
|
2644
2644
|
/**
|
|
2645
2645
|
* Border Width X
|
|
2646
2646
|
* @see https://tailwindcss.com/docs/border-width
|
|
2647
2647
|
*/
|
|
2648
2648
|
"border-w-x": [{
|
|
2649
|
-
"border-x":
|
|
2649
|
+
"border-x": P()
|
|
2650
2650
|
}],
|
|
2651
2651
|
/**
|
|
2652
2652
|
* Border Width Y
|
|
2653
2653
|
* @see https://tailwindcss.com/docs/border-width
|
|
2654
2654
|
*/
|
|
2655
2655
|
"border-w-y": [{
|
|
2656
|
-
"border-y":
|
|
2656
|
+
"border-y": P()
|
|
2657
2657
|
}],
|
|
2658
2658
|
/**
|
|
2659
2659
|
* Border Width Start
|
|
2660
2660
|
* @see https://tailwindcss.com/docs/border-width
|
|
2661
2661
|
*/
|
|
2662
2662
|
"border-w-s": [{
|
|
2663
|
-
"border-s":
|
|
2663
|
+
"border-s": P()
|
|
2664
2664
|
}],
|
|
2665
2665
|
/**
|
|
2666
2666
|
* Border Width End
|
|
2667
2667
|
* @see https://tailwindcss.com/docs/border-width
|
|
2668
2668
|
*/
|
|
2669
2669
|
"border-w-e": [{
|
|
2670
|
-
"border-e":
|
|
2670
|
+
"border-e": P()
|
|
2671
2671
|
}],
|
|
2672
2672
|
/**
|
|
2673
2673
|
* Border Width Top
|
|
2674
2674
|
* @see https://tailwindcss.com/docs/border-width
|
|
2675
2675
|
*/
|
|
2676
2676
|
"border-w-t": [{
|
|
2677
|
-
"border-t":
|
|
2677
|
+
"border-t": P()
|
|
2678
2678
|
}],
|
|
2679
2679
|
/**
|
|
2680
2680
|
* Border Width Right
|
|
2681
2681
|
* @see https://tailwindcss.com/docs/border-width
|
|
2682
2682
|
*/
|
|
2683
2683
|
"border-w-r": [{
|
|
2684
|
-
"border-r":
|
|
2684
|
+
"border-r": P()
|
|
2685
2685
|
}],
|
|
2686
2686
|
/**
|
|
2687
2687
|
* Border Width Bottom
|
|
2688
2688
|
* @see https://tailwindcss.com/docs/border-width
|
|
2689
2689
|
*/
|
|
2690
2690
|
"border-w-b": [{
|
|
2691
|
-
"border-b":
|
|
2691
|
+
"border-b": P()
|
|
2692
2692
|
}],
|
|
2693
2693
|
/**
|
|
2694
2694
|
* Border Width Left
|
|
2695
2695
|
* @see https://tailwindcss.com/docs/border-width
|
|
2696
2696
|
*/
|
|
2697
2697
|
"border-w-l": [{
|
|
2698
|
-
"border-l":
|
|
2698
|
+
"border-l": P()
|
|
2699
2699
|
}],
|
|
2700
2700
|
/**
|
|
2701
2701
|
* Divide Width X
|
|
2702
2702
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2703
2703
|
*/
|
|
2704
2704
|
"divide-x": [{
|
|
2705
|
-
"divide-x":
|
|
2705
|
+
"divide-x": P()
|
|
2706
2706
|
}],
|
|
2707
2707
|
/**
|
|
2708
2708
|
* Divide Width X Reverse
|
|
@@ -2714,7 +2714,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2714
2714
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
2715
2715
|
*/
|
|
2716
2716
|
"divide-y": [{
|
|
2717
|
-
"divide-y":
|
|
2717
|
+
"divide-y": P()
|
|
2718
2718
|
}],
|
|
2719
2719
|
/**
|
|
2720
2720
|
* Divide Width Y Reverse
|
|
@@ -2817,14 +2817,14 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2817
2817
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2818
2818
|
*/
|
|
2819
2819
|
"outline-offset": [{
|
|
2820
|
-
"outline-offset": [
|
|
2820
|
+
"outline-offset": [z, v, p]
|
|
2821
2821
|
}],
|
|
2822
2822
|
/**
|
|
2823
2823
|
* Outline Width
|
|
2824
2824
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2825
2825
|
*/
|
|
2826
2826
|
"outline-w": [{
|
|
2827
|
-
outline: ["",
|
|
2827
|
+
outline: ["", z, Ve, we]
|
|
2828
2828
|
}],
|
|
2829
2829
|
/**
|
|
2830
2830
|
* Outline Color
|
|
@@ -2876,7 +2876,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2876
2876
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
2877
2877
|
*/
|
|
2878
2878
|
"ring-w": [{
|
|
2879
|
-
ring:
|
|
2879
|
+
ring: P()
|
|
2880
2880
|
}],
|
|
2881
2881
|
/**
|
|
2882
2882
|
* Ring Width Inset
|
|
@@ -2899,7 +2899,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2899
2899
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2900
2900
|
*/
|
|
2901
2901
|
"ring-offset-w": [{
|
|
2902
|
-
"ring-offset": [
|
|
2902
|
+
"ring-offset": [z, we]
|
|
2903
2903
|
}],
|
|
2904
2904
|
/**
|
|
2905
2905
|
* Ring Offset Color
|
|
@@ -2915,7 +2915,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2915
2915
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
2916
2916
|
*/
|
|
2917
2917
|
"inset-ring-w": [{
|
|
2918
|
-
"inset-ring":
|
|
2918
|
+
"inset-ring": P()
|
|
2919
2919
|
}],
|
|
2920
2920
|
/**
|
|
2921
2921
|
* Inset Ring Color
|
|
@@ -2929,7 +2929,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2929
2929
|
* @see https://tailwindcss.com/docs/text-shadow
|
|
2930
2930
|
*/
|
|
2931
2931
|
"text-shadow": [{
|
|
2932
|
-
"text-shadow": ["none",
|
|
2932
|
+
"text-shadow": ["none", b, Ge, Re]
|
|
2933
2933
|
}],
|
|
2934
2934
|
/**
|
|
2935
2935
|
* Text Shadow Color
|
|
@@ -2943,21 +2943,21 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2943
2943
|
* @see https://tailwindcss.com/docs/opacity
|
|
2944
2944
|
*/
|
|
2945
2945
|
opacity: [{
|
|
2946
|
-
opacity: [
|
|
2946
|
+
opacity: [z, v, p]
|
|
2947
2947
|
}],
|
|
2948
2948
|
/**
|
|
2949
2949
|
* Mix Blend Mode
|
|
2950
2950
|
* @see https://tailwindcss.com/docs/mix-blend-mode
|
|
2951
2951
|
*/
|
|
2952
2952
|
"mix-blend": [{
|
|
2953
|
-
"mix-blend": [...
|
|
2953
|
+
"mix-blend": [...R(), "plus-darker", "plus-lighter"]
|
|
2954
2954
|
}],
|
|
2955
2955
|
/**
|
|
2956
2956
|
* Background Blend Mode
|
|
2957
2957
|
* @see https://tailwindcss.com/docs/background-blend-mode
|
|
2958
2958
|
*/
|
|
2959
2959
|
"bg-blend": [{
|
|
2960
|
-
"bg-blend":
|
|
2960
|
+
"bg-blend": R()
|
|
2961
2961
|
}],
|
|
2962
2962
|
/**
|
|
2963
2963
|
* Mask Clip
|
|
@@ -2978,13 +2978,13 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2978
2978
|
* @see https://tailwindcss.com/docs/mask-image
|
|
2979
2979
|
*/
|
|
2980
2980
|
"mask-image-linear-pos": [{
|
|
2981
|
-
"mask-linear": [
|
|
2981
|
+
"mask-linear": [z]
|
|
2982
2982
|
}],
|
|
2983
2983
|
"mask-image-linear-from-pos": [{
|
|
2984
|
-
"mask-linear-from":
|
|
2984
|
+
"mask-linear-from": L()
|
|
2985
2985
|
}],
|
|
2986
2986
|
"mask-image-linear-to-pos": [{
|
|
2987
|
-
"mask-linear-to":
|
|
2987
|
+
"mask-linear-to": L()
|
|
2988
2988
|
}],
|
|
2989
2989
|
"mask-image-linear-from-color": [{
|
|
2990
2990
|
"mask-linear-from": h()
|
|
@@ -2993,10 +2993,10 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
2993
2993
|
"mask-linear-to": h()
|
|
2994
2994
|
}],
|
|
2995
2995
|
"mask-image-t-from-pos": [{
|
|
2996
|
-
"mask-t-from":
|
|
2996
|
+
"mask-t-from": L()
|
|
2997
2997
|
}],
|
|
2998
2998
|
"mask-image-t-to-pos": [{
|
|
2999
|
-
"mask-t-to":
|
|
2999
|
+
"mask-t-to": L()
|
|
3000
3000
|
}],
|
|
3001
3001
|
"mask-image-t-from-color": [{
|
|
3002
3002
|
"mask-t-from": h()
|
|
@@ -3005,10 +3005,10 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3005
3005
|
"mask-t-to": h()
|
|
3006
3006
|
}],
|
|
3007
3007
|
"mask-image-r-from-pos": [{
|
|
3008
|
-
"mask-r-from":
|
|
3008
|
+
"mask-r-from": L()
|
|
3009
3009
|
}],
|
|
3010
3010
|
"mask-image-r-to-pos": [{
|
|
3011
|
-
"mask-r-to":
|
|
3011
|
+
"mask-r-to": L()
|
|
3012
3012
|
}],
|
|
3013
3013
|
"mask-image-r-from-color": [{
|
|
3014
3014
|
"mask-r-from": h()
|
|
@@ -3017,10 +3017,10 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3017
3017
|
"mask-r-to": h()
|
|
3018
3018
|
}],
|
|
3019
3019
|
"mask-image-b-from-pos": [{
|
|
3020
|
-
"mask-b-from":
|
|
3020
|
+
"mask-b-from": L()
|
|
3021
3021
|
}],
|
|
3022
3022
|
"mask-image-b-to-pos": [{
|
|
3023
|
-
"mask-b-to":
|
|
3023
|
+
"mask-b-to": L()
|
|
3024
3024
|
}],
|
|
3025
3025
|
"mask-image-b-from-color": [{
|
|
3026
3026
|
"mask-b-from": h()
|
|
@@ -3029,10 +3029,10 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3029
3029
|
"mask-b-to": h()
|
|
3030
3030
|
}],
|
|
3031
3031
|
"mask-image-l-from-pos": [{
|
|
3032
|
-
"mask-l-from":
|
|
3032
|
+
"mask-l-from": L()
|
|
3033
3033
|
}],
|
|
3034
3034
|
"mask-image-l-to-pos": [{
|
|
3035
|
-
"mask-l-to":
|
|
3035
|
+
"mask-l-to": L()
|
|
3036
3036
|
}],
|
|
3037
3037
|
"mask-image-l-from-color": [{
|
|
3038
3038
|
"mask-l-from": h()
|
|
@@ -3041,10 +3041,10 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3041
3041
|
"mask-l-to": h()
|
|
3042
3042
|
}],
|
|
3043
3043
|
"mask-image-x-from-pos": [{
|
|
3044
|
-
"mask-x-from":
|
|
3044
|
+
"mask-x-from": L()
|
|
3045
3045
|
}],
|
|
3046
3046
|
"mask-image-x-to-pos": [{
|
|
3047
|
-
"mask-x-to":
|
|
3047
|
+
"mask-x-to": L()
|
|
3048
3048
|
}],
|
|
3049
3049
|
"mask-image-x-from-color": [{
|
|
3050
3050
|
"mask-x-from": h()
|
|
@@ -3053,10 +3053,10 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3053
3053
|
"mask-x-to": h()
|
|
3054
3054
|
}],
|
|
3055
3055
|
"mask-image-y-from-pos": [{
|
|
3056
|
-
"mask-y-from":
|
|
3056
|
+
"mask-y-from": L()
|
|
3057
3057
|
}],
|
|
3058
3058
|
"mask-image-y-to-pos": [{
|
|
3059
|
-
"mask-y-to":
|
|
3059
|
+
"mask-y-to": L()
|
|
3060
3060
|
}],
|
|
3061
3061
|
"mask-image-y-from-color": [{
|
|
3062
3062
|
"mask-y-from": h()
|
|
@@ -3065,13 +3065,13 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3065
3065
|
"mask-y-to": h()
|
|
3066
3066
|
}],
|
|
3067
3067
|
"mask-image-radial": [{
|
|
3068
|
-
"mask-radial": [
|
|
3068
|
+
"mask-radial": [v, p]
|
|
3069
3069
|
}],
|
|
3070
3070
|
"mask-image-radial-from-pos": [{
|
|
3071
|
-
"mask-radial-from":
|
|
3071
|
+
"mask-radial-from": L()
|
|
3072
3072
|
}],
|
|
3073
3073
|
"mask-image-radial-to-pos": [{
|
|
3074
|
-
"mask-radial-to":
|
|
3074
|
+
"mask-radial-to": L()
|
|
3075
3075
|
}],
|
|
3076
3076
|
"mask-image-radial-from-color": [{
|
|
3077
3077
|
"mask-radial-from": h()
|
|
@@ -3089,16 +3089,16 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3089
3089
|
}]
|
|
3090
3090
|
}],
|
|
3091
3091
|
"mask-image-radial-pos": [{
|
|
3092
|
-
"mask-radial-at":
|
|
3092
|
+
"mask-radial-at": ce()
|
|
3093
3093
|
}],
|
|
3094
3094
|
"mask-image-conic-pos": [{
|
|
3095
|
-
"mask-conic": [
|
|
3095
|
+
"mask-conic": [z]
|
|
3096
3096
|
}],
|
|
3097
3097
|
"mask-image-conic-from-pos": [{
|
|
3098
|
-
"mask-conic-from":
|
|
3098
|
+
"mask-conic-from": L()
|
|
3099
3099
|
}],
|
|
3100
3100
|
"mask-image-conic-to-pos": [{
|
|
3101
|
-
"mask-conic-to":
|
|
3101
|
+
"mask-conic-to": L()
|
|
3102
3102
|
}],
|
|
3103
3103
|
"mask-image-conic-from-color": [{
|
|
3104
3104
|
"mask-conic-from": h()
|
|
@@ -3125,7 +3125,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3125
3125
|
* @see https://tailwindcss.com/docs/mask-position
|
|
3126
3126
|
*/
|
|
3127
3127
|
"mask-position": [{
|
|
3128
|
-
mask:
|
|
3128
|
+
mask: N()
|
|
3129
3129
|
}],
|
|
3130
3130
|
/**
|
|
3131
3131
|
* Mask Repeat
|
|
@@ -3139,7 +3139,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3139
3139
|
* @see https://tailwindcss.com/docs/mask-size
|
|
3140
3140
|
*/
|
|
3141
3141
|
"mask-size": [{
|
|
3142
|
-
mask:
|
|
3142
|
+
mask: $()
|
|
3143
3143
|
}],
|
|
3144
3144
|
/**
|
|
3145
3145
|
* Mask Type
|
|
@@ -3153,7 +3153,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3153
3153
|
* @see https://tailwindcss.com/docs/mask-image
|
|
3154
3154
|
*/
|
|
3155
3155
|
"mask-image": [{
|
|
3156
|
-
mask: ["none",
|
|
3156
|
+
mask: ["none", v, p]
|
|
3157
3157
|
}],
|
|
3158
3158
|
// ---------------
|
|
3159
3159
|
// --- Filters ---
|
|
@@ -3167,8 +3167,8 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3167
3167
|
// Deprecated since Tailwind CSS v3.0.0
|
|
3168
3168
|
"",
|
|
3169
3169
|
"none",
|
|
3170
|
-
|
|
3171
|
-
|
|
3170
|
+
v,
|
|
3171
|
+
p
|
|
3172
3172
|
]
|
|
3173
3173
|
}],
|
|
3174
3174
|
/**
|
|
@@ -3176,21 +3176,21 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3176
3176
|
* @see https://tailwindcss.com/docs/blur
|
|
3177
3177
|
*/
|
|
3178
3178
|
blur: [{
|
|
3179
|
-
blur:
|
|
3179
|
+
blur: de()
|
|
3180
3180
|
}],
|
|
3181
3181
|
/**
|
|
3182
3182
|
* Brightness
|
|
3183
3183
|
* @see https://tailwindcss.com/docs/brightness
|
|
3184
3184
|
*/
|
|
3185
3185
|
brightness: [{
|
|
3186
|
-
brightness: [
|
|
3186
|
+
brightness: [z, v, p]
|
|
3187
3187
|
}],
|
|
3188
3188
|
/**
|
|
3189
3189
|
* Contrast
|
|
3190
3190
|
* @see https://tailwindcss.com/docs/contrast
|
|
3191
3191
|
*/
|
|
3192
3192
|
contrast: [{
|
|
3193
|
-
contrast: [
|
|
3193
|
+
contrast: [z, v, p]
|
|
3194
3194
|
}],
|
|
3195
3195
|
/**
|
|
3196
3196
|
* Drop Shadow
|
|
@@ -3201,7 +3201,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3201
3201
|
// Deprecated since Tailwind CSS v4.0.0
|
|
3202
3202
|
"",
|
|
3203
3203
|
"none",
|
|
3204
|
-
|
|
3204
|
+
S,
|
|
3205
3205
|
Ge,
|
|
3206
3206
|
Re
|
|
3207
3207
|
]
|
|
@@ -3218,35 +3218,35 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3218
3218
|
* @see https://tailwindcss.com/docs/grayscale
|
|
3219
3219
|
*/
|
|
3220
3220
|
grayscale: [{
|
|
3221
|
-
grayscale: ["",
|
|
3221
|
+
grayscale: ["", z, v, p]
|
|
3222
3222
|
}],
|
|
3223
3223
|
/**
|
|
3224
3224
|
* Hue Rotate
|
|
3225
3225
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
3226
3226
|
*/
|
|
3227
3227
|
"hue-rotate": [{
|
|
3228
|
-
"hue-rotate": [
|
|
3228
|
+
"hue-rotate": [z, v, p]
|
|
3229
3229
|
}],
|
|
3230
3230
|
/**
|
|
3231
3231
|
* Invert
|
|
3232
3232
|
* @see https://tailwindcss.com/docs/invert
|
|
3233
3233
|
*/
|
|
3234
3234
|
invert: [{
|
|
3235
|
-
invert: ["",
|
|
3235
|
+
invert: ["", z, v, p]
|
|
3236
3236
|
}],
|
|
3237
3237
|
/**
|
|
3238
3238
|
* Saturate
|
|
3239
3239
|
* @see https://tailwindcss.com/docs/saturate
|
|
3240
3240
|
*/
|
|
3241
3241
|
saturate: [{
|
|
3242
|
-
saturate: [
|
|
3242
|
+
saturate: [z, v, p]
|
|
3243
3243
|
}],
|
|
3244
3244
|
/**
|
|
3245
3245
|
* Sepia
|
|
3246
3246
|
* @see https://tailwindcss.com/docs/sepia
|
|
3247
3247
|
*/
|
|
3248
3248
|
sepia: [{
|
|
3249
|
-
sepia: ["",
|
|
3249
|
+
sepia: ["", z, v, p]
|
|
3250
3250
|
}],
|
|
3251
3251
|
/**
|
|
3252
3252
|
* Backdrop Filter
|
|
@@ -3257,8 +3257,8 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3257
3257
|
// Deprecated since Tailwind CSS v3.0.0
|
|
3258
3258
|
"",
|
|
3259
3259
|
"none",
|
|
3260
|
-
|
|
3261
|
-
|
|
3260
|
+
v,
|
|
3261
|
+
p
|
|
3262
3262
|
]
|
|
3263
3263
|
}],
|
|
3264
3264
|
/**
|
|
@@ -3266,63 +3266,63 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3266
3266
|
* @see https://tailwindcss.com/docs/backdrop-blur
|
|
3267
3267
|
*/
|
|
3268
3268
|
"backdrop-blur": [{
|
|
3269
|
-
"backdrop-blur":
|
|
3269
|
+
"backdrop-blur": de()
|
|
3270
3270
|
}],
|
|
3271
3271
|
/**
|
|
3272
3272
|
* Backdrop Brightness
|
|
3273
3273
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
3274
3274
|
*/
|
|
3275
3275
|
"backdrop-brightness": [{
|
|
3276
|
-
"backdrop-brightness": [
|
|
3276
|
+
"backdrop-brightness": [z, v, p]
|
|
3277
3277
|
}],
|
|
3278
3278
|
/**
|
|
3279
3279
|
* Backdrop Contrast
|
|
3280
3280
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
3281
3281
|
*/
|
|
3282
3282
|
"backdrop-contrast": [{
|
|
3283
|
-
"backdrop-contrast": [
|
|
3283
|
+
"backdrop-contrast": [z, v, p]
|
|
3284
3284
|
}],
|
|
3285
3285
|
/**
|
|
3286
3286
|
* Backdrop Grayscale
|
|
3287
3287
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
3288
3288
|
*/
|
|
3289
3289
|
"backdrop-grayscale": [{
|
|
3290
|
-
"backdrop-grayscale": ["",
|
|
3290
|
+
"backdrop-grayscale": ["", z, v, p]
|
|
3291
3291
|
}],
|
|
3292
3292
|
/**
|
|
3293
3293
|
* Backdrop Hue Rotate
|
|
3294
3294
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
3295
3295
|
*/
|
|
3296
3296
|
"backdrop-hue-rotate": [{
|
|
3297
|
-
"backdrop-hue-rotate": [
|
|
3297
|
+
"backdrop-hue-rotate": [z, v, p]
|
|
3298
3298
|
}],
|
|
3299
3299
|
/**
|
|
3300
3300
|
* Backdrop Invert
|
|
3301
3301
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
3302
3302
|
*/
|
|
3303
3303
|
"backdrop-invert": [{
|
|
3304
|
-
"backdrop-invert": ["",
|
|
3304
|
+
"backdrop-invert": ["", z, v, p]
|
|
3305
3305
|
}],
|
|
3306
3306
|
/**
|
|
3307
3307
|
* Backdrop Opacity
|
|
3308
3308
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
3309
3309
|
*/
|
|
3310
3310
|
"backdrop-opacity": [{
|
|
3311
|
-
"backdrop-opacity": [
|
|
3311
|
+
"backdrop-opacity": [z, v, p]
|
|
3312
3312
|
}],
|
|
3313
3313
|
/**
|
|
3314
3314
|
* Backdrop Saturate
|
|
3315
3315
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
3316
3316
|
*/
|
|
3317
3317
|
"backdrop-saturate": [{
|
|
3318
|
-
"backdrop-saturate": [
|
|
3318
|
+
"backdrop-saturate": [z, v, p]
|
|
3319
3319
|
}],
|
|
3320
3320
|
/**
|
|
3321
3321
|
* Backdrop Sepia
|
|
3322
3322
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
3323
3323
|
*/
|
|
3324
3324
|
"backdrop-sepia": [{
|
|
3325
|
-
"backdrop-sepia": ["",
|
|
3325
|
+
"backdrop-sepia": ["", z, v, p]
|
|
3326
3326
|
}],
|
|
3327
3327
|
// --------------
|
|
3328
3328
|
// --- Tables ---
|
|
@@ -3339,21 +3339,21 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3339
3339
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3340
3340
|
*/
|
|
3341
3341
|
"border-spacing": [{
|
|
3342
|
-
"border-spacing":
|
|
3342
|
+
"border-spacing": C()
|
|
3343
3343
|
}],
|
|
3344
3344
|
/**
|
|
3345
3345
|
* Border Spacing X
|
|
3346
3346
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3347
3347
|
*/
|
|
3348
3348
|
"border-spacing-x": [{
|
|
3349
|
-
"border-spacing-x":
|
|
3349
|
+
"border-spacing-x": C()
|
|
3350
3350
|
}],
|
|
3351
3351
|
/**
|
|
3352
3352
|
* Border Spacing Y
|
|
3353
3353
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
3354
3354
|
*/
|
|
3355
3355
|
"border-spacing-y": [{
|
|
3356
|
-
"border-spacing-y":
|
|
3356
|
+
"border-spacing-y": C()
|
|
3357
3357
|
}],
|
|
3358
3358
|
/**
|
|
3359
3359
|
* Table Layout
|
|
@@ -3377,7 +3377,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3377
3377
|
* @see https://tailwindcss.com/docs/transition-property
|
|
3378
3378
|
*/
|
|
3379
3379
|
transition: [{
|
|
3380
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
3380
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", v, p]
|
|
3381
3381
|
}],
|
|
3382
3382
|
/**
|
|
3383
3383
|
* Transition Behavior
|
|
@@ -3391,28 +3391,28 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3391
3391
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
3392
3392
|
*/
|
|
3393
3393
|
duration: [{
|
|
3394
|
-
duration: [
|
|
3394
|
+
duration: [z, "initial", v, p]
|
|
3395
3395
|
}],
|
|
3396
3396
|
/**
|
|
3397
3397
|
* Transition Timing Function
|
|
3398
3398
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
3399
3399
|
*/
|
|
3400
3400
|
ease: [{
|
|
3401
|
-
ease: ["linear", "initial",
|
|
3401
|
+
ease: ["linear", "initial", B, v, p]
|
|
3402
3402
|
}],
|
|
3403
3403
|
/**
|
|
3404
3404
|
* Transition Delay
|
|
3405
3405
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
3406
3406
|
*/
|
|
3407
3407
|
delay: [{
|
|
3408
|
-
delay: [
|
|
3408
|
+
delay: [z, v, p]
|
|
3409
3409
|
}],
|
|
3410
3410
|
/**
|
|
3411
3411
|
* Animation
|
|
3412
3412
|
* @see https://tailwindcss.com/docs/animation
|
|
3413
3413
|
*/
|
|
3414
3414
|
animate: [{
|
|
3415
|
-
animate: ["none",
|
|
3415
|
+
animate: ["none", ie, v, p]
|
|
3416
3416
|
}],
|
|
3417
3417
|
// ------------------
|
|
3418
3418
|
// --- Transforms ---
|
|
@@ -3429,42 +3429,42 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3429
3429
|
* @see https://tailwindcss.com/docs/perspective
|
|
3430
3430
|
*/
|
|
3431
3431
|
perspective: [{
|
|
3432
|
-
perspective: [
|
|
3432
|
+
perspective: [A, v, p]
|
|
3433
3433
|
}],
|
|
3434
3434
|
/**
|
|
3435
3435
|
* Perspective Origin
|
|
3436
3436
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
3437
3437
|
*/
|
|
3438
3438
|
"perspective-origin": [{
|
|
3439
|
-
"perspective-origin":
|
|
3439
|
+
"perspective-origin": be()
|
|
3440
3440
|
}],
|
|
3441
3441
|
/**
|
|
3442
3442
|
* Rotate
|
|
3443
3443
|
* @see https://tailwindcss.com/docs/rotate
|
|
3444
3444
|
*/
|
|
3445
3445
|
rotate: [{
|
|
3446
|
-
rotate:
|
|
3446
|
+
rotate: pe()
|
|
3447
3447
|
}],
|
|
3448
3448
|
/**
|
|
3449
3449
|
* Rotate X
|
|
3450
3450
|
* @see https://tailwindcss.com/docs/rotate
|
|
3451
3451
|
*/
|
|
3452
3452
|
"rotate-x": [{
|
|
3453
|
-
"rotate-x":
|
|
3453
|
+
"rotate-x": pe()
|
|
3454
3454
|
}],
|
|
3455
3455
|
/**
|
|
3456
3456
|
* Rotate Y
|
|
3457
3457
|
* @see https://tailwindcss.com/docs/rotate
|
|
3458
3458
|
*/
|
|
3459
3459
|
"rotate-y": [{
|
|
3460
|
-
"rotate-y":
|
|
3460
|
+
"rotate-y": pe()
|
|
3461
3461
|
}],
|
|
3462
3462
|
/**
|
|
3463
3463
|
* Rotate Z
|
|
3464
3464
|
* @see https://tailwindcss.com/docs/rotate
|
|
3465
3465
|
*/
|
|
3466
3466
|
"rotate-z": [{
|
|
3467
|
-
"rotate-z":
|
|
3467
|
+
"rotate-z": pe()
|
|
3468
3468
|
}],
|
|
3469
3469
|
/**
|
|
3470
3470
|
* Scale
|
|
@@ -3504,35 +3504,35 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3504
3504
|
* @see https://tailwindcss.com/docs/skew
|
|
3505
3505
|
*/
|
|
3506
3506
|
skew: [{
|
|
3507
|
-
skew:
|
|
3507
|
+
skew: ve()
|
|
3508
3508
|
}],
|
|
3509
3509
|
/**
|
|
3510
3510
|
* Skew X
|
|
3511
3511
|
* @see https://tailwindcss.com/docs/skew
|
|
3512
3512
|
*/
|
|
3513
3513
|
"skew-x": [{
|
|
3514
|
-
"skew-x":
|
|
3514
|
+
"skew-x": ve()
|
|
3515
3515
|
}],
|
|
3516
3516
|
/**
|
|
3517
3517
|
* Skew Y
|
|
3518
3518
|
* @see https://tailwindcss.com/docs/skew
|
|
3519
3519
|
*/
|
|
3520
3520
|
"skew-y": [{
|
|
3521
|
-
"skew-y":
|
|
3521
|
+
"skew-y": ve()
|
|
3522
3522
|
}],
|
|
3523
3523
|
/**
|
|
3524
3524
|
* Transform
|
|
3525
3525
|
* @see https://tailwindcss.com/docs/transform
|
|
3526
3526
|
*/
|
|
3527
3527
|
transform: [{
|
|
3528
|
-
transform: [
|
|
3528
|
+
transform: [v, p, "", "none", "gpu", "cpu"]
|
|
3529
3529
|
}],
|
|
3530
3530
|
/**
|
|
3531
3531
|
* Transform Origin
|
|
3532
3532
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
3533
3533
|
*/
|
|
3534
3534
|
"transform-origin": [{
|
|
3535
|
-
origin:
|
|
3535
|
+
origin: be()
|
|
3536
3536
|
}],
|
|
3537
3537
|
/**
|
|
3538
3538
|
* Transform Style
|
|
@@ -3610,7 +3610,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3610
3610
|
* @see https://tailwindcss.com/docs/cursor
|
|
3611
3611
|
*/
|
|
3612
3612
|
cursor: [{
|
|
3613
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
3613
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", v, p]
|
|
3614
3614
|
}],
|
|
3615
3615
|
/**
|
|
3616
3616
|
* Field Sizing
|
|
@@ -3645,126 +3645,126 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3645
3645
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3646
3646
|
*/
|
|
3647
3647
|
"scroll-m": [{
|
|
3648
|
-
"scroll-m":
|
|
3648
|
+
"scroll-m": C()
|
|
3649
3649
|
}],
|
|
3650
3650
|
/**
|
|
3651
3651
|
* Scroll Margin X
|
|
3652
3652
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3653
3653
|
*/
|
|
3654
3654
|
"scroll-mx": [{
|
|
3655
|
-
"scroll-mx":
|
|
3655
|
+
"scroll-mx": C()
|
|
3656
3656
|
}],
|
|
3657
3657
|
/**
|
|
3658
3658
|
* Scroll Margin Y
|
|
3659
3659
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3660
3660
|
*/
|
|
3661
3661
|
"scroll-my": [{
|
|
3662
|
-
"scroll-my":
|
|
3662
|
+
"scroll-my": C()
|
|
3663
3663
|
}],
|
|
3664
3664
|
/**
|
|
3665
3665
|
* Scroll Margin Start
|
|
3666
3666
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3667
3667
|
*/
|
|
3668
3668
|
"scroll-ms": [{
|
|
3669
|
-
"scroll-ms":
|
|
3669
|
+
"scroll-ms": C()
|
|
3670
3670
|
}],
|
|
3671
3671
|
/**
|
|
3672
3672
|
* Scroll Margin End
|
|
3673
3673
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3674
3674
|
*/
|
|
3675
3675
|
"scroll-me": [{
|
|
3676
|
-
"scroll-me":
|
|
3676
|
+
"scroll-me": C()
|
|
3677
3677
|
}],
|
|
3678
3678
|
/**
|
|
3679
3679
|
* Scroll Margin Top
|
|
3680
3680
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3681
3681
|
*/
|
|
3682
3682
|
"scroll-mt": [{
|
|
3683
|
-
"scroll-mt":
|
|
3683
|
+
"scroll-mt": C()
|
|
3684
3684
|
}],
|
|
3685
3685
|
/**
|
|
3686
3686
|
* Scroll Margin Right
|
|
3687
3687
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3688
3688
|
*/
|
|
3689
3689
|
"scroll-mr": [{
|
|
3690
|
-
"scroll-mr":
|
|
3690
|
+
"scroll-mr": C()
|
|
3691
3691
|
}],
|
|
3692
3692
|
/**
|
|
3693
3693
|
* Scroll Margin Bottom
|
|
3694
3694
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3695
3695
|
*/
|
|
3696
3696
|
"scroll-mb": [{
|
|
3697
|
-
"scroll-mb":
|
|
3697
|
+
"scroll-mb": C()
|
|
3698
3698
|
}],
|
|
3699
3699
|
/**
|
|
3700
3700
|
* Scroll Margin Left
|
|
3701
3701
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3702
3702
|
*/
|
|
3703
3703
|
"scroll-ml": [{
|
|
3704
|
-
"scroll-ml":
|
|
3704
|
+
"scroll-ml": C()
|
|
3705
3705
|
}],
|
|
3706
3706
|
/**
|
|
3707
3707
|
* Scroll Padding
|
|
3708
3708
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3709
3709
|
*/
|
|
3710
3710
|
"scroll-p": [{
|
|
3711
|
-
"scroll-p":
|
|
3711
|
+
"scroll-p": C()
|
|
3712
3712
|
}],
|
|
3713
3713
|
/**
|
|
3714
3714
|
* Scroll Padding X
|
|
3715
3715
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3716
3716
|
*/
|
|
3717
3717
|
"scroll-px": [{
|
|
3718
|
-
"scroll-px":
|
|
3718
|
+
"scroll-px": C()
|
|
3719
3719
|
}],
|
|
3720
3720
|
/**
|
|
3721
3721
|
* Scroll Padding Y
|
|
3722
3722
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3723
3723
|
*/
|
|
3724
3724
|
"scroll-py": [{
|
|
3725
|
-
"scroll-py":
|
|
3725
|
+
"scroll-py": C()
|
|
3726
3726
|
}],
|
|
3727
3727
|
/**
|
|
3728
3728
|
* Scroll Padding Start
|
|
3729
3729
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3730
3730
|
*/
|
|
3731
3731
|
"scroll-ps": [{
|
|
3732
|
-
"scroll-ps":
|
|
3732
|
+
"scroll-ps": C()
|
|
3733
3733
|
}],
|
|
3734
3734
|
/**
|
|
3735
3735
|
* Scroll Padding End
|
|
3736
3736
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3737
3737
|
*/
|
|
3738
3738
|
"scroll-pe": [{
|
|
3739
|
-
"scroll-pe":
|
|
3739
|
+
"scroll-pe": C()
|
|
3740
3740
|
}],
|
|
3741
3741
|
/**
|
|
3742
3742
|
* Scroll Padding Top
|
|
3743
3743
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3744
3744
|
*/
|
|
3745
3745
|
"scroll-pt": [{
|
|
3746
|
-
"scroll-pt":
|
|
3746
|
+
"scroll-pt": C()
|
|
3747
3747
|
}],
|
|
3748
3748
|
/**
|
|
3749
3749
|
* Scroll Padding Right
|
|
3750
3750
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3751
3751
|
*/
|
|
3752
3752
|
"scroll-pr": [{
|
|
3753
|
-
"scroll-pr":
|
|
3753
|
+
"scroll-pr": C()
|
|
3754
3754
|
}],
|
|
3755
3755
|
/**
|
|
3756
3756
|
* Scroll Padding Bottom
|
|
3757
3757
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3758
3758
|
*/
|
|
3759
3759
|
"scroll-pb": [{
|
|
3760
|
-
"scroll-pb":
|
|
3760
|
+
"scroll-pb": C()
|
|
3761
3761
|
}],
|
|
3762
3762
|
/**
|
|
3763
3763
|
* Scroll Padding Left
|
|
3764
3764
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3765
3765
|
*/
|
|
3766
3766
|
"scroll-pl": [{
|
|
3767
|
-
"scroll-pl":
|
|
3767
|
+
"scroll-pl": C()
|
|
3768
3768
|
}],
|
|
3769
3769
|
/**
|
|
3770
3770
|
* Scroll Snap Align
|
|
@@ -3832,7 +3832,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3832
3832
|
* @see https://tailwindcss.com/docs/will-change
|
|
3833
3833
|
*/
|
|
3834
3834
|
"will-change": [{
|
|
3835
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
3835
|
+
"will-change": ["auto", "scroll", "contents", "transform", v, p]
|
|
3836
3836
|
}],
|
|
3837
3837
|
// -----------
|
|
3838
3838
|
// --- SVG ---
|
|
@@ -3849,7 +3849,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
3849
3849
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3850
3850
|
*/
|
|
3851
3851
|
"stroke-w": [{
|
|
3852
|
-
stroke: [
|
|
3852
|
+
stroke: [z, Ve, we, Ke]
|
|
3853
3853
|
}],
|
|
3854
3854
|
/**
|
|
3855
3855
|
* Stroke
|
|
@@ -4210,10 +4210,10 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4210
4210
|
icon: "text-red-600 dark:text-red-400"
|
|
4211
4211
|
}
|
|
4212
4212
|
}
|
|
4213
|
-
},
|
|
4213
|
+
}, ar = {
|
|
4214
4214
|
key: 0,
|
|
4215
4215
|
class: "absolute inset-0 flex items-center justify-center"
|
|
4216
|
-
},
|
|
4216
|
+
}, ir = /* @__PURE__ */ G({
|
|
4217
4217
|
__name: "FButton",
|
|
4218
4218
|
props: {
|
|
4219
4219
|
theme: { default: "default" },
|
|
@@ -4228,20 +4228,20 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4228
4228
|
class: { default: "" }
|
|
4229
4229
|
},
|
|
4230
4230
|
setup(e) {
|
|
4231
|
-
const
|
|
4231
|
+
const a = T(() => ({
|
|
4232
4232
|
icon: typeof e.icon == "string" ? e.icon : e.icon?.className,
|
|
4233
4233
|
iconAfter: typeof e.iconAfter == "string" ? e.iconAfter : e.iconAfter?.className
|
|
4234
|
-
})), o =
|
|
4234
|
+
})), o = T(() => e.href ? "a" : e.tag), t = T(() => ({
|
|
4235
4235
|
xxs: "size-2.5",
|
|
4236
4236
|
xs: "size-3",
|
|
4237
4237
|
sm: "size-3.5",
|
|
4238
4238
|
md: "size-4",
|
|
4239
4239
|
lg: "size-5",
|
|
4240
4240
|
xl: "size-6"
|
|
4241
|
-
})[e.size]), s =
|
|
4241
|
+
})[e.size]), s = T(() => {
|
|
4242
4242
|
const l = vt[e.theme]?.[e.design] || vt.default[e.design];
|
|
4243
4243
|
return l || console.warn(`FButton: No theme configuration found for theme "${e.theme}" and design "${e.design}". Falling back to default solid theme.`), l || { base: "", border: "", hover: "", icon: "" };
|
|
4244
|
-
}),
|
|
4244
|
+
}), i = T(() => {
|
|
4245
4245
|
const l = "relative inline-flex items-center justify-center gap-2 font-medium transition-all duration-200 focus:outline-none active:opacity-80 cursor-pointer", d = {
|
|
4246
4246
|
xxs: "px-2 py-0.5 text-[10px]",
|
|
4247
4247
|
xs: "px-3 py-1 text-[11px]",
|
|
@@ -4249,45 +4249,45 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4249
4249
|
md: "px-4 py-2 text-sm",
|
|
4250
4250
|
lg: "px-6 py-3 text-base",
|
|
4251
4251
|
xl: "px-8 py-4 text-base"
|
|
4252
|
-
},
|
|
4252
|
+
}, w = e.design === "link" ? "!px-1" : "", m = {
|
|
4253
4253
|
md: "rounded-md",
|
|
4254
4254
|
lg: "rounded-lg",
|
|
4255
4255
|
full: "rounded-full"
|
|
4256
|
-
}, u = s.value,
|
|
4256
|
+
}, u = s.value, b = [
|
|
4257
4257
|
l,
|
|
4258
4258
|
d[e.size],
|
|
4259
|
-
|
|
4259
|
+
w,
|
|
4260
4260
|
m[e.rounding],
|
|
4261
4261
|
u.base,
|
|
4262
4262
|
`border ${u.border}`,
|
|
4263
4263
|
u.hover
|
|
4264
4264
|
].filter(Boolean).join(" ");
|
|
4265
|
-
return nr(
|
|
4266
|
-
}), n =
|
|
4265
|
+
return nr(b, e.class);
|
|
4266
|
+
}), n = T(() => ({
|
|
4267
4267
|
design: s.value.icon || ""
|
|
4268
4268
|
}));
|
|
4269
4269
|
return (l, d) => (f(), se(qt(o.value), {
|
|
4270
4270
|
href: e.href,
|
|
4271
|
-
class:
|
|
4271
|
+
class: E(i.value)
|
|
4272
4272
|
}, {
|
|
4273
4273
|
default: ne(() => [
|
|
4274
|
-
e.loading ? (f(),
|
|
4275
|
-
|
|
4276
|
-
class:
|
|
4274
|
+
e.loading ? (f(), x("div", ar, [
|
|
4275
|
+
O(tt, {
|
|
4276
|
+
class: E(t.value)
|
|
4277
4277
|
}, null, 8, ["class"])
|
|
4278
|
-
])) :
|
|
4278
|
+
])) : F("", !0),
|
|
4279
4279
|
c("span", {
|
|
4280
|
-
class:
|
|
4280
|
+
class: E(["flex items-center gap-2 transition-opacity duration-200 whitespace-nowrap", e.loading ? "opacity-0" : "opacity-100"])
|
|
4281
4281
|
}, [
|
|
4282
|
-
|
|
4282
|
+
a.value.icon ? (f(), x("span", {
|
|
4283
4283
|
key: 0,
|
|
4284
|
-
class:
|
|
4285
|
-
}, null, 2)) :
|
|
4284
|
+
class: E(["flex items-center size-[1.1em] mt-[-.07em]", [a.value.icon, n.value]])
|
|
4285
|
+
}, null, 2)) : F("", !0),
|
|
4286
4286
|
Ie(l.$slots, "default"),
|
|
4287
|
-
|
|
4287
|
+
a.value.iconAfter ? (f(), x("span", {
|
|
4288
4288
|
key: 1,
|
|
4289
|
-
class:
|
|
4290
|
-
}, null, 2)) :
|
|
4289
|
+
class: E(["flex items-center size-[1.1em] mt-[-.07em]", [a.value.iconAfter, n.value]])
|
|
4290
|
+
}, null, 2)) : F("", !0)
|
|
4291
4291
|
], 2)
|
|
4292
4292
|
]),
|
|
4293
4293
|
_: 3
|
|
@@ -4305,13 +4305,13 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4305
4305
|
}, mr = { class: "text-sm text-white/70 leading-relaxed" }, br = {
|
|
4306
4306
|
key: 3,
|
|
4307
4307
|
class: "space-y-3"
|
|
4308
|
-
}, pr = { class: "grid grid-cols-2 gap-3" }, vr = /* @__PURE__ */
|
|
4308
|
+
}, pr = { class: "grid grid-cols-2 gap-3" }, vr = /* @__PURE__ */ G({
|
|
4309
4309
|
__name: "ElSelfAbout",
|
|
4310
4310
|
props: {
|
|
4311
4311
|
self: {}
|
|
4312
4312
|
},
|
|
4313
4313
|
setup(e) {
|
|
4314
|
-
const
|
|
4314
|
+
const a = T(() => [
|
|
4315
4315
|
{
|
|
4316
4316
|
key: "email",
|
|
4317
4317
|
condition: /* @__PURE__ */ r(() => !!e.self.email, "condition"),
|
|
@@ -4358,27 +4358,27 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4358
4358
|
}), "generate")
|
|
4359
4359
|
}
|
|
4360
4360
|
].filter((t) => t.condition()).map((t) => t.generate()));
|
|
4361
|
-
return (o, t) => (f(),
|
|
4361
|
+
return (o, t) => (f(), x("div", lr, [
|
|
4362
4362
|
c("div", cr, [
|
|
4363
|
-
e.self.headline ? (f(),
|
|
4363
|
+
e.self.headline ? (f(), x("div", dr, [
|
|
4364
4364
|
t[0] || (t[0] = c("h3", { class: "text-sm font-medium text-white/90 mb-2" }, " Professional Tagline ", -1)),
|
|
4365
|
-
c("div", ur,
|
|
4366
|
-
])) :
|
|
4367
|
-
e.self.summary ? (f(),
|
|
4365
|
+
c("div", ur, H(e.self.headline), 1)
|
|
4366
|
+
])) : F("", !0),
|
|
4367
|
+
e.self.summary ? (f(), x("div", hr, [
|
|
4368
4368
|
t[1] || (t[1] = c("h3", { class: "text-sm font-medium text-white/90 mb-2" }, " About ", -1)),
|
|
4369
4369
|
c("div", {
|
|
4370
4370
|
class: "text-sm text-white/70 leading-relaxed",
|
|
4371
4371
|
innerHTML: e.self.summary
|
|
4372
4372
|
}, null, 8, gr)
|
|
4373
|
-
])) :
|
|
4374
|
-
e.self.entityType === "company" ? (f(),
|
|
4373
|
+
])) : F("", !0),
|
|
4374
|
+
e.self.entityType === "company" ? (f(), x("div", fr, [
|
|
4375
4375
|
t[2] || (t[2] = c("h3", { class: "text-sm font-medium text-white/90 mb-2" }, " Company Info ", -1)),
|
|
4376
|
-
c("p", mr, " This is a company digital self representing " +
|
|
4377
|
-
])) :
|
|
4378
|
-
|
|
4376
|
+
c("p", mr, " This is a company digital self representing " + H(e.self.name) + ". ", 1)
|
|
4377
|
+
])) : F("", !0),
|
|
4378
|
+
a.value.length > 0 ? (f(), x("div", br, [
|
|
4379
4379
|
t[3] || (t[3] = c("h3", { class: "text-sm font-medium text-white/90" }, " Connect ", -1)),
|
|
4380
4380
|
c("div", pr, [
|
|
4381
|
-
(f(!0),
|
|
4381
|
+
(f(!0), x(Ce, null, Oe(a.value, (s) => (f(), se(ir, {
|
|
4382
4382
|
key: s.title,
|
|
4383
4383
|
design: "ghost",
|
|
4384
4384
|
theme: "default",
|
|
@@ -4389,14 +4389,14 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4389
4389
|
}, {
|
|
4390
4390
|
default: ne(() => [
|
|
4391
4391
|
c("i", {
|
|
4392
|
-
class:
|
|
4392
|
+
class: E([s.icon, "size-4 mr-2"])
|
|
4393
4393
|
}, null, 2),
|
|
4394
|
-
Pe(" " +
|
|
4394
|
+
Pe(" " + H(s.title), 1)
|
|
4395
4395
|
]),
|
|
4396
4396
|
_: 2
|
|
4397
4397
|
}, 1032, ["href"]))), 128))
|
|
4398
4398
|
])
|
|
4399
|
-
])) :
|
|
4399
|
+
])) : F("", !0)
|
|
4400
4400
|
])
|
|
4401
4401
|
]));
|
|
4402
4402
|
}
|
|
@@ -4409,19 +4409,19 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4409
4409
|
}, wr = ["src", "alt"], Cr = { class: "max-w-[70%]" }, Sr = { class: "text-sm leading-[1.5] whitespace-pre-wrap break-words" }, Mr = {
|
|
4410
4410
|
key: 0,
|
|
4411
4411
|
class: "flex gap-2 justify-start items-end mb-4"
|
|
4412
|
-
}, Ar = { class: "flex-shrink-0" }, Ir = ["src", "alt"], $r = { class: "flex-shrink-0 pt-6 pb-2" }, zr = ["placeholder", "disabled"], Er = /* @__PURE__ */
|
|
4412
|
+
}, Ar = { class: "flex-shrink-0" }, Ir = ["src", "alt"], $r = { class: "flex-shrink-0 pt-6 pb-2" }, zr = ["placeholder", "disabled"], Er = /* @__PURE__ */ G({
|
|
4413
4413
|
__name: "ElSelfChat",
|
|
4414
4414
|
props: {
|
|
4415
4415
|
selfController: {},
|
|
4416
4416
|
self: {}
|
|
4417
4417
|
},
|
|
4418
4418
|
setup(e) {
|
|
4419
|
-
const
|
|
4420
|
-
function
|
|
4421
|
-
const
|
|
4422
|
-
return !
|
|
4419
|
+
const a = j(""), o = j(), t = j(), s = T(() => Ye(e.self));
|
|
4420
|
+
function i(m, u) {
|
|
4421
|
+
const b = m[u], S = m[u + 1];
|
|
4422
|
+
return !S || S.sender !== b.sender;
|
|
4423
4423
|
}
|
|
4424
|
-
r(
|
|
4424
|
+
r(i, "shouldShowAvatar"), $e(async () => {
|
|
4425
4425
|
if (e.selfController && !e.selfController.textState.value.isConnected)
|
|
4426
4426
|
try {
|
|
4427
4427
|
await e.selfController.startTextConversation();
|
|
@@ -4430,10 +4430,10 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4430
4430
|
}
|
|
4431
4431
|
});
|
|
4432
4432
|
async function n() {
|
|
4433
|
-
if (!
|
|
4433
|
+
if (!a.value.trim() || !e.selfController || !e.selfController.textState.value.isConnected)
|
|
4434
4434
|
return;
|
|
4435
|
-
const m =
|
|
4436
|
-
|
|
4435
|
+
const m = a.value;
|
|
4436
|
+
a.value = "", t.value && (t.value.style.height = "auto", t.value.focus());
|
|
4437
4437
|
try {
|
|
4438
4438
|
await e.selfController.sendChatMessage(m), d();
|
|
4439
4439
|
} catch (u) {
|
|
@@ -4452,51 +4452,51 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4452
4452
|
});
|
|
4453
4453
|
}
|
|
4454
4454
|
r(d, "scrollToBottom");
|
|
4455
|
-
function
|
|
4455
|
+
function w() {
|
|
4456
4456
|
if (!t.value)
|
|
4457
4457
|
return;
|
|
4458
4458
|
t.value.style.height = "auto";
|
|
4459
4459
|
const m = Math.min(t.value.scrollHeight, 150);
|
|
4460
4460
|
t.value.style.height = `${m}px`;
|
|
4461
4461
|
}
|
|
4462
|
-
return r(
|
|
4463
|
-
We(() =>
|
|
4464
|
-
}),
|
|
4462
|
+
return r(w, "adjustTextareaHeight"), ae(a, () => {
|
|
4463
|
+
We(() => w());
|
|
4464
|
+
}), ae(() => e.selfController?.sharedMessages.value, (m) => {
|
|
4465
4465
|
m && m.length > 0 && We(() => d());
|
|
4466
|
-
}, { immediate: !0, deep: !0 }), (m, u) => (f(),
|
|
4467
|
-
e.selfController?.textState.value.connectionStatus !== "connected" ? (f(),
|
|
4468
|
-
|
|
4469
|
-
])) :
|
|
4466
|
+
}, { immediate: !0, deep: !0 }), (m, u) => (f(), x("div", xr, [
|
|
4467
|
+
e.selfController?.textState.value.connectionStatus !== "connected" ? (f(), x("div", yr, [
|
|
4468
|
+
O(tt, { class: "size-4" })
|
|
4469
|
+
])) : F("", !0),
|
|
4470
4470
|
c("div", {
|
|
4471
4471
|
ref_key: "messagesContainer",
|
|
4472
4472
|
ref: o,
|
|
4473
4473
|
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"
|
|
4474
4474
|
}, [
|
|
4475
|
-
(f(!0),
|
|
4476
|
-
key:
|
|
4477
|
-
class:
|
|
4478
|
-
"justify-end":
|
|
4479
|
-
"justify-start":
|
|
4480
|
-
"mb-4":
|
|
4475
|
+
(f(!0), x(Ce, null, Oe(e.selfController?.sharedMessages.value.filter((b) => b.sender !== "system") ?? [], (b, S) => (f(), x("div", {
|
|
4476
|
+
key: b.id,
|
|
4477
|
+
class: E(["flex gap-2 items-end", {
|
|
4478
|
+
"justify-end": b.sender === "user",
|
|
4479
|
+
"justify-start": b.sender === "agent",
|
|
4480
|
+
"mb-4": i(e.selfController?.sharedMessages.value.filter((I) => I.sender !== "system") ?? [], S)
|
|
4481
4481
|
}])
|
|
4482
4482
|
}, [
|
|
4483
|
-
|
|
4484
|
-
|
|
4483
|
+
b.sender === "agent" ? (f(), x("div", kr, [
|
|
4484
|
+
i(e.selfController?.sharedMessages.value.filter((I) => I.sender !== "system") ?? [], S) ? (f(), x("img", {
|
|
4485
4485
|
key: 0,
|
|
4486
4486
|
src: s.value,
|
|
4487
4487
|
alt: e.self.name,
|
|
4488
4488
|
class: "size-7 rounded-full object-cover"
|
|
4489
|
-
}, null, 8, wr)) :
|
|
4490
|
-
])) :
|
|
4489
|
+
}, null, 8, wr)) : F("", !0)
|
|
4490
|
+
])) : F("", !0),
|
|
4491
4491
|
c("div", Cr, [
|
|
4492
4492
|
c("div", {
|
|
4493
|
-
class:
|
|
4493
|
+
class: E(["rounded-2xl px-3.5 py-1.5 backdrop-blur-sm", b.sender === "user" ? "bg-primary-500/80 text-white" : "bg-white/15 text-white/95"])
|
|
4494
4494
|
}, [
|
|
4495
|
-
c("p", Sr,
|
|
4495
|
+
c("p", Sr, H(b.text), 1)
|
|
4496
4496
|
], 2)
|
|
4497
4497
|
])
|
|
4498
4498
|
], 2))), 128)),
|
|
4499
|
-
e.selfController?.textState.value.isThinking ? (f(),
|
|
4499
|
+
e.selfController?.textState.value.isThinking ? (f(), x("div", Mr, [
|
|
4500
4500
|
c("div", Ar, [
|
|
4501
4501
|
c("img", {
|
|
4502
4502
|
src: s.value,
|
|
@@ -4507,13 +4507,13 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4507
4507
|
u[1] || (u[1] = c("div", { class: "rounded-2xl px-4 py-2.5 bg-white/15 backdrop-blur-sm flex items-center" }, [
|
|
4508
4508
|
c("i", { class: "i-svg-spinners-3-dots-fade size-6 text-white/70" })
|
|
4509
4509
|
], -1))
|
|
4510
|
-
])) :
|
|
4510
|
+
])) : F("", !0)
|
|
4511
4511
|
], 512),
|
|
4512
4512
|
c("div", $r, [
|
|
4513
4513
|
kt(c("textarea", {
|
|
4514
4514
|
ref_key: "textarea",
|
|
4515
4515
|
ref: t,
|
|
4516
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
4516
|
+
"onUpdate:modelValue": u[0] || (u[0] = (b) => a.value = b),
|
|
4517
4517
|
rows: "1",
|
|
4518
4518
|
placeholder: e.selfController?.textState.value.isConnected ? "Message" : "Connecting...",
|
|
4519
4519
|
disabled: !e.selfController?.textState.value.isConnected,
|
|
@@ -4521,26 +4521,26 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4521
4521
|
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",
|
|
4522
4522
|
onKeydown: l
|
|
4523
4523
|
}, null, 40, zr), [
|
|
4524
|
-
[wt,
|
|
4524
|
+
[wt, a.value]
|
|
4525
4525
|
]),
|
|
4526
4526
|
u[2] || (u[2] = c("div", { class: "text-[10px] text-white/40 text-center mt-2" }, " Press Enter to send, Shift+Enter for new line ", -1))
|
|
4527
4527
|
])
|
|
4528
4528
|
]));
|
|
4529
4529
|
}
|
|
4530
|
-
}), Tr = { class: "flex flex-col items-center text-center gap-4" }, Lr = { class: "relative flex-shrink-0" }, Dr = { class: "w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white" }, Vr = ["src", "alt"], Pr = { class: "min-w-0" }, Fr = { class: "text-3xl font-light text-white mb-2 truncate" }, Br = { class: "text-base font-light text-white/60 line-clamp-1" }, Nr = /* @__PURE__ */
|
|
4530
|
+
}), Tr = { class: "flex flex-col items-center text-center gap-4" }, Lr = { class: "relative flex-shrink-0" }, Dr = { class: "w-20 h-20 sm:w-24 sm:h-24 rounded-full overflow-hidden border-4 border-white" }, Vr = ["src", "alt"], Pr = { class: "min-w-0" }, Fr = { class: "text-3xl font-light text-white mb-2 truncate" }, Br = { class: "text-base font-light text-white/60 line-clamp-1" }, Nr = /* @__PURE__ */ G({
|
|
4531
4531
|
__name: "ElSelfHeader",
|
|
4532
4532
|
props: {
|
|
4533
4533
|
self: {}
|
|
4534
4534
|
},
|
|
4535
4535
|
setup(e) {
|
|
4536
|
-
function
|
|
4536
|
+
function a() {
|
|
4537
4537
|
return e.self.avatar?.src ? e.self.avatar.src : He();
|
|
4538
4538
|
}
|
|
4539
|
-
return r(
|
|
4539
|
+
return r(a, "getAvatarSrc"), (o, t) => (f(), x("div", Tr, [
|
|
4540
4540
|
c("div", Lr, [
|
|
4541
4541
|
c("div", Dr, [
|
|
4542
4542
|
c("img", {
|
|
4543
|
-
src:
|
|
4543
|
+
src: a(),
|
|
4544
4544
|
alt: e.self.name,
|
|
4545
4545
|
class: "w-full h-full object-cover",
|
|
4546
4546
|
onError: t[0] || (t[0] = //@ts-ignore
|
|
@@ -4556,33 +4556,33 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4556
4556
|
], -1))
|
|
4557
4557
|
]),
|
|
4558
4558
|
c("div", Pr, [
|
|
4559
|
-
c("h1", Fr,
|
|
4560
|
-
c("p", Br,
|
|
4559
|
+
c("h1", Fr, H(e.self.name), 1),
|
|
4560
|
+
c("p", Br, H(e.self.title), 1)
|
|
4561
4561
|
])
|
|
4562
4562
|
]));
|
|
4563
4563
|
}
|
|
4564
|
-
}), jr = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden" }, Rr = /* @__PURE__ */
|
|
4564
|
+
}), jr = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[28px] h-[28px] overflow-hidden" }, Rr = /* @__PURE__ */ G({
|
|
4565
4565
|
name: "FClose",
|
|
4566
4566
|
__name: "FClose",
|
|
4567
4567
|
emits: ["click"],
|
|
4568
4568
|
setup(e) {
|
|
4569
|
-
const
|
|
4569
|
+
const a = j(!1);
|
|
4570
4570
|
return $e(() => {
|
|
4571
4571
|
setTimeout(() => {
|
|
4572
|
-
|
|
4572
|
+
a.value = !0;
|
|
4573
4573
|
}, 100);
|
|
4574
|
-
}), (o, t) => (f(),
|
|
4574
|
+
}), (o, t) => (f(), x("a", {
|
|
4575
4575
|
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",
|
|
4576
4576
|
onClick: t[0] || (t[0] = (s) => o.$emit("click", s))
|
|
4577
4577
|
}, [
|
|
4578
4578
|
t[1] || (t[1] = c("span", { class: "absolute inset-0 rounded-full transition-all" }, null, -1)),
|
|
4579
4579
|
c("span", jr, [
|
|
4580
4580
|
c("span", {
|
|
4581
|
-
class:
|
|
4581
|
+
class: E(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", a.value ? "translate-y-0 translate-x-0 rotate-45" : "translate-y-[30px] -translate-x-[30px] rotate-0"]),
|
|
4582
4582
|
style: { "background-color": "currentColor", "transition-delay": "0.15s" }
|
|
4583
4583
|
}, null, 2),
|
|
4584
4584
|
c("span", {
|
|
4585
|
-
class:
|
|
4585
|
+
class: E(["absolute h-full w-[3px] rounded-[5px] left-[13px] transition-all duration-[400ms] ease-[cubic-bezier(0.52,0.01,0.16,1)]", a.value ? "translate-y-0 translate-x-0 -rotate-45" : "-translate-y-[30px] -translate-x-[30px] rotate-0"]),
|
|
4586
4586
|
style: { "background-color": "currentColor", "transition-delay": "0.45s" }
|
|
4587
4587
|
}, null, 2)
|
|
4588
4588
|
])
|
|
@@ -4597,7 +4597,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4597
4597
|
}, Hr = ["disabled", "onClick"], Wr = { class: "flex items-center gap-3" }, qr = { class: "flex-1" }, Kr = {
|
|
4598
4598
|
key: 0,
|
|
4599
4599
|
class: "text-xs text-white/50 mt-0.5"
|
|
4600
|
-
}, Zr = { class: "p-6" }, Bt = /* @__PURE__ */
|
|
4600
|
+
}, Zr = { class: "p-6" }, Bt = /* @__PURE__ */ G({
|
|
4601
4601
|
name: "ElSidebar",
|
|
4602
4602
|
__name: "ElSidebar",
|
|
4603
4603
|
props: {
|
|
@@ -4608,16 +4608,16 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4608
4608
|
widthClasses: {}
|
|
4609
4609
|
},
|
|
4610
4610
|
emits: ["update:modelValue"],
|
|
4611
|
-
setup(e, { emit:
|
|
4612
|
-
const o = e, t =
|
|
4611
|
+
setup(e, { emit: a }) {
|
|
4612
|
+
const o = e, t = a, s = o.position || "left", i = o.widthClasses || "w-[80%] max-w-[300px]", n = T({
|
|
4613
4613
|
get: /* @__PURE__ */ r(() => o.modelValue, "get"),
|
|
4614
4614
|
set: /* @__PURE__ */ r((m) => t("update:modelValue", m), "set")
|
|
4615
|
-
}), l =
|
|
4615
|
+
}), l = T(() => o.items.filter((m) => !m.isHidden));
|
|
4616
4616
|
function d(m) {
|
|
4617
4617
|
m.isDisabled || (m.onClick ? m.onClick({ item: m, event: new MouseEvent("click") }) : m.href && (m.href.includes("http") ? window.open(m.href, m.target || "_self")?.focus() : window.location.href = m.href), n.value = !1);
|
|
4618
4618
|
}
|
|
4619
4619
|
r(d, "handleItemClick");
|
|
4620
|
-
const
|
|
4620
|
+
const w = T(() => s === "left" ? {
|
|
4621
4621
|
enter: "-translate-x-full",
|
|
4622
4622
|
leave: "-translate-x-full",
|
|
4623
4623
|
position: "justify-start",
|
|
@@ -4628,8 +4628,8 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4628
4628
|
position: "justify-end",
|
|
4629
4629
|
closeButton: "-left-16"
|
|
4630
4630
|
});
|
|
4631
|
-
return (m, u) => (f(),
|
|
4632
|
-
|
|
4631
|
+
return (m, u) => (f(), x(Ce, null, [
|
|
4632
|
+
O(ct, {
|
|
4633
4633
|
"enter-active-class": "transition-opacity duration-300 ease-out",
|
|
4634
4634
|
"leave-active-class": "transition-opacity duration-200 ease-in",
|
|
4635
4635
|
"enter-from-class": "opacity-0",
|
|
@@ -4638,47 +4638,47 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4638
4638
|
"leave-to-class": "opacity-0"
|
|
4639
4639
|
}, {
|
|
4640
4640
|
default: ne(() => [
|
|
4641
|
-
n.value ? (f(),
|
|
4641
|
+
n.value ? (f(), x("div", {
|
|
4642
4642
|
key: 0,
|
|
4643
4643
|
class: "absolute inset-0 z-40 bg-black/50 backdrop-blur-sm",
|
|
4644
|
-
onClick: u[0] || (u[0] = (
|
|
4645
|
-
})) :
|
|
4644
|
+
onClick: u[0] || (u[0] = (b) => n.value = !1)
|
|
4645
|
+
})) : F("", !0)
|
|
4646
4646
|
]),
|
|
4647
4647
|
_: 1
|
|
4648
4648
|
}),
|
|
4649
|
-
|
|
4649
|
+
O(ct, {
|
|
4650
4650
|
"enter-active-class": "transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
4651
4651
|
"leave-active-class": "transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
4652
|
-
"enter-from-class":
|
|
4652
|
+
"enter-from-class": w.value.enter,
|
|
4653
4653
|
"enter-to-class": "translate-x-0",
|
|
4654
4654
|
"leave-from-class": "translate-x-0",
|
|
4655
|
-
"leave-to-class":
|
|
4655
|
+
"leave-to-class": w.value.leave
|
|
4656
4656
|
}, {
|
|
4657
4657
|
default: ne(() => [
|
|
4658
|
-
n.value ? (f(),
|
|
4658
|
+
n.value ? (f(), x("div", {
|
|
4659
4659
|
key: 0,
|
|
4660
|
-
class:
|
|
4661
|
-
onClick: u[3] || (u[3] = (
|
|
4660
|
+
class: E(["absolute inset-0 z-50 flex", w.value.position]),
|
|
4661
|
+
onClick: u[3] || (u[3] = (b) => n.value = !1)
|
|
4662
4662
|
}, [
|
|
4663
4663
|
c("div", {
|
|
4664
|
-
class:
|
|
4664
|
+
class: E(["relative h-full shadow-2xl bg-black/30 backdrop-blur-xl flex flex-col justify-center", X(i)]),
|
|
4665
4665
|
onClick: u[2] || (u[2] = Ct(() => {
|
|
4666
4666
|
}, ["stop"]))
|
|
4667
4667
|
}, [
|
|
4668
|
-
|
|
4669
|
-
class:
|
|
4670
|
-
onClick: u[1] || (u[1] = (
|
|
4668
|
+
O(Rr, {
|
|
4669
|
+
class: E(["absolute top-4 z-10 text-white", w.value.closeButton]),
|
|
4670
|
+
onClick: u[1] || (u[1] = (b) => n.value = !1)
|
|
4671
4671
|
}, null, 8, ["class"]),
|
|
4672
|
-
e.title ? (f(),
|
|
4673
|
-
c("h3", Ur,
|
|
4674
|
-
])) :
|
|
4675
|
-
m.$slots.header ? (f(),
|
|
4672
|
+
e.title ? (f(), x("div", Gr, [
|
|
4673
|
+
c("h3", Ur, H(e.title), 1)
|
|
4674
|
+
])) : F("", !0),
|
|
4675
|
+
m.$slots.header ? (f(), x("div", Or, [
|
|
4676
4676
|
Ie(m.$slots, "header")
|
|
4677
|
-
])) :
|
|
4677
|
+
])) : F("", !0),
|
|
4678
4678
|
c("div", {
|
|
4679
|
-
class:
|
|
4679
|
+
class: E(["flex-1 p-6 space-y-2 overflow-y-auto", { "pt-6": !e.title && !m.$slots.header, "pt-4": e.title || m.$slots.header }])
|
|
4680
4680
|
}, [
|
|
4681
|
-
|
|
4681
|
+
O(yt, {
|
|
4682
4682
|
"enter-active-class": "transition-all duration-400 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
4683
4683
|
"leave-active-class": "transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)]",
|
|
4684
4684
|
"enter-from-class": X(s) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0",
|
|
@@ -4687,29 +4687,29 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4687
4687
|
"leave-to-class": X(s) === "left" ? "-translate-x-4 opacity-0" : "translate-x-4 opacity-0"
|
|
4688
4688
|
}, {
|
|
4689
4689
|
default: ne(() => [
|
|
4690
|
-
(f(!0),
|
|
4691
|
-
key:
|
|
4692
|
-
style: et({ transitionDelay: `${
|
|
4693
|
-
class:
|
|
4694
|
-
|
|
4695
|
-
|
|
4690
|
+
(f(!0), x(Ce, null, Oe(l.value, (b, S) => (f(), x("button", {
|
|
4691
|
+
key: b.key || b.label || S,
|
|
4692
|
+
style: et({ transitionDelay: `${S * 40}ms` }),
|
|
4693
|
+
class: E(["cursor-pointer w-full text-left p-3 rounded-xl transition-all duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group", [
|
|
4694
|
+
b.isActive ? "bg-primary-500/20 border border-primary-500/40" : "hover:bg-white/10",
|
|
4695
|
+
b.isDisabled && "opacity-50 cursor-not-allowed"
|
|
4696
4696
|
]]),
|
|
4697
|
-
disabled:
|
|
4698
|
-
onClick: /* @__PURE__ */ r((
|
|
4697
|
+
disabled: b.isDisabled,
|
|
4698
|
+
onClick: /* @__PURE__ */ r((I) => d(b), "onClick")
|
|
4699
4699
|
}, [
|
|
4700
4700
|
c("div", Wr, [
|
|
4701
|
-
|
|
4701
|
+
b.icon?.src ? (f(), x("i", {
|
|
4702
4702
|
key: 0,
|
|
4703
|
-
class:
|
|
4704
|
-
|
|
4705
|
-
|
|
4703
|
+
class: E(["size-5 flex-shrink-0 transition-transform duration-200 ease-[cubic-bezier(0.25,1,0.33,1)] group-hover:scale-110", [
|
|
4704
|
+
b.icon.src,
|
|
4705
|
+
b.isActive ? "text-primary-400" : "text-white/70 group-hover:text-white"
|
|
4706
4706
|
]])
|
|
4707
|
-
}, null, 2)) :
|
|
4707
|
+
}, null, 2)) : F("", !0),
|
|
4708
4708
|
c("div", qr, [
|
|
4709
4709
|
c("div", {
|
|
4710
|
-
class:
|
|
4711
|
-
},
|
|
4712
|
-
|
|
4710
|
+
class: E(["font-medium text-sm", b.isActive ? "text-primary-300" : "text-white"])
|
|
4711
|
+
}, H(b.label), 3),
|
|
4712
|
+
b.subLabel ? (f(), x("div", Kr, H(b.subLabel), 1)) : F("", !0)
|
|
4713
4713
|
])
|
|
4714
4714
|
])
|
|
4715
4715
|
], 14, Hr))), 128))
|
|
@@ -4732,13 +4732,13 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4732
4732
|
])
|
|
4733
4733
|
])
|
|
4734
4734
|
], 2)
|
|
4735
|
-
], 2)) :
|
|
4735
|
+
], 2)) : F("", !0)
|
|
4736
4736
|
]),
|
|
4737
4737
|
_: 3
|
|
4738
4738
|
}, 8, ["enter-from-class", "leave-to-class"])
|
|
4739
4739
|
], 64));
|
|
4740
4740
|
}
|
|
4741
|
-
}),
|
|
4741
|
+
}), Yr = /* @__PURE__ */ G({
|
|
4742
4742
|
name: "SelfModeSidebar",
|
|
4743
4743
|
__name: "ElSelfModeSidebar",
|
|
4744
4744
|
props: {
|
|
@@ -4746,29 +4746,29 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4746
4746
|
selfController: {}
|
|
4747
4747
|
},
|
|
4748
4748
|
emits: ["update:modelValue"],
|
|
4749
|
-
setup(e, { emit:
|
|
4750
|
-
const o = e, t =
|
|
4749
|
+
setup(e, { emit: a }) {
|
|
4750
|
+
const o = e, t = a, s = T({
|
|
4751
4751
|
get: /* @__PURE__ */ r(() => o.modelValue, "get"),
|
|
4752
4752
|
set: /* @__PURE__ */ r((l) => t("update:modelValue", l), "set")
|
|
4753
|
-
}),
|
|
4753
|
+
}), i = T(() => o.selfController?.agentMode?.value ?? "self"), n = T(() => At.map((l) => ({
|
|
4754
4754
|
key: l.mode,
|
|
4755
4755
|
icon: { src: l.icon },
|
|
4756
4756
|
label: l.label,
|
|
4757
|
-
isActive:
|
|
4757
|
+
isActive: i.value === l.mode,
|
|
4758
4758
|
onClick: /* @__PURE__ */ r(() => {
|
|
4759
4759
|
o.selfController?.setMode(l.mode);
|
|
4760
4760
|
}, "onClick")
|
|
4761
4761
|
})));
|
|
4762
4762
|
return (l, d) => (f(), se(Bt, {
|
|
4763
4763
|
modelValue: s.value,
|
|
4764
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
4764
|
+
"onUpdate:modelValue": d[0] || (d[0] = (w) => s.value = w),
|
|
4765
4765
|
items: n.value,
|
|
4766
4766
|
position: "right",
|
|
4767
4767
|
title: "Mode",
|
|
4768
4768
|
"width-classes": "w-[80%] max-w-[255px]"
|
|
4769
4769
|
}, null, 8, ["modelValue", "items"]));
|
|
4770
4770
|
}
|
|
4771
|
-
}),
|
|
4771
|
+
}), _r = /* @__PURE__ */ G({
|
|
4772
4772
|
name: "SelfSidebar",
|
|
4773
4773
|
__name: "ElSelfSidebar",
|
|
4774
4774
|
props: {
|
|
@@ -4778,11 +4778,11 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4778
4778
|
title: {}
|
|
4779
4779
|
},
|
|
4780
4780
|
emits: ["update:modelValue"],
|
|
4781
|
-
setup(e, { emit:
|
|
4782
|
-
const o = e, t =
|
|
4781
|
+
setup(e, { emit: a }) {
|
|
4782
|
+
const o = e, t = a, s = T({
|
|
4783
4783
|
get: /* @__PURE__ */ r(() => o.modelValue, "get"),
|
|
4784
4784
|
set: /* @__PURE__ */ r((n) => t("update:modelValue", n), "set")
|
|
4785
|
-
}),
|
|
4785
|
+
}), i = T(() => {
|
|
4786
4786
|
const n = [
|
|
4787
4787
|
{
|
|
4788
4788
|
key: "share",
|
|
@@ -4822,12 +4822,12 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4822
4822
|
return (n, l) => (f(), se(Bt, {
|
|
4823
4823
|
modelValue: s.value,
|
|
4824
4824
|
"onUpdate:modelValue": l[0] || (l[0] = (d) => s.value = d),
|
|
4825
|
-
items:
|
|
4825
|
+
items: i.value,
|
|
4826
4826
|
position: "left",
|
|
4827
4827
|
title: e.title || "Menu"
|
|
4828
4828
|
}, null, 8, ["modelValue", "items", "title"]));
|
|
4829
4829
|
}
|
|
4830
|
-
}), Jr = { class: "w-full max-w-full flex items-center justify-center" }, Qr = 0.25, Xr = 0.35, xt = 500, es = 0.15, ts = 0.4, os = /* @__PURE__ */
|
|
4830
|
+
}), Jr = { class: "w-full max-w-full flex items-center justify-center" }, Qr = 0.25, Xr = 0.35, xt = 500, es = 0.15, ts = 0.4, os = /* @__PURE__ */ G({
|
|
4831
4831
|
__name: "FAudioVisualizer",
|
|
4832
4832
|
props: {
|
|
4833
4833
|
audioState: {},
|
|
@@ -4837,11 +4837,11 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4837
4837
|
enableGlow: { type: Boolean, default: !1 }
|
|
4838
4838
|
},
|
|
4839
4839
|
setup(e) {
|
|
4840
|
-
const
|
|
4840
|
+
const a = e, o = {
|
|
4841
4841
|
sm: { bars: 68, barWidth: 2, barSpacing: 1, minHeight: 3, maxHeight: 40 },
|
|
4842
4842
|
md: { bars: 68, barWidth: 3, barSpacing: 1, minHeight: 4, maxHeight: 80 },
|
|
4843
4843
|
lg: { bars: 68, barWidth: 4, barSpacing: 2, minHeight: 5, maxHeight: 120 }
|
|
4844
|
-
}, t =
|
|
4844
|
+
}, t = T(() => o[a.size]), s = [
|
|
4845
4845
|
85,
|
|
4846
4846
|
100,
|
|
4847
4847
|
120,
|
|
@@ -4910,21 +4910,21 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4910
4910
|
7500,
|
|
4911
4911
|
8e3,
|
|
4912
4912
|
8500
|
|
4913
|
-
],
|
|
4913
|
+
], i = j();
|
|
4914
4914
|
let n = null, l = null;
|
|
4915
|
-
const d =
|
|
4916
|
-
let u,
|
|
4917
|
-
function
|
|
4915
|
+
const d = j(!1), w = j(!0), m = /* @__PURE__ */ new Map();
|
|
4916
|
+
let u, b, S, I, A, y, B;
|
|
4917
|
+
function ie(g) {
|
|
4918
4918
|
const { minHeight: h } = t.value;
|
|
4919
|
-
u = new Float32Array(g).fill(h),
|
|
4919
|
+
u = new Float32Array(g).fill(h), b = new Float32Array(g).fill(0), S = new Float32Array(g).fill(h), I = new Float32Array(g).fill(h), A = new Float32Array(g).fill(h), y = new Float32Array(g).fill(0), B = new Float32Array(g).fill(0);
|
|
4920
4920
|
}
|
|
4921
|
-
r(
|
|
4922
|
-
const
|
|
4923
|
-
if (
|
|
4924
|
-
return
|
|
4925
|
-
const g =
|
|
4921
|
+
r(ie, "initPhysicsArrays");
|
|
4922
|
+
const le = T(() => {
|
|
4923
|
+
if (a.color !== "auto")
|
|
4924
|
+
return a.color;
|
|
4925
|
+
const g = a.audioState?.mode ?? "idle";
|
|
4926
4926
|
return g === "listening" ? "blue" : g === "processing" ? "cyan" : g === "speaking" ? "green" : "gray";
|
|
4927
|
-
}),
|
|
4927
|
+
}), ce = {
|
|
4928
4928
|
blue: {
|
|
4929
4929
|
primary: [59, 130, 246],
|
|
4930
4930
|
// User speaking
|
|
@@ -4946,89 +4946,89 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
4946
4946
|
glow: "rgba(156,163,175,0.2)"
|
|
4947
4947
|
}
|
|
4948
4948
|
};
|
|
4949
|
-
function
|
|
4949
|
+
function be(g) {
|
|
4950
4950
|
return g < 200 ? { stiffnessMultiplier: 0.7, dampingMultiplier: 1.2 } : g < 1e3 ? { stiffnessMultiplier: 1, dampingMultiplier: 1 } : g < 4e3 ? { stiffnessMultiplier: 1.3, dampingMultiplier: 0.8 } : { stiffnessMultiplier: 1.5, dampingMultiplier: 0.6 };
|
|
4951
4951
|
}
|
|
4952
|
-
r(
|
|
4953
|
-
let
|
|
4952
|
+
r(be, "getFrequencyPhysics");
|
|
4953
|
+
let q = 1;
|
|
4954
4954
|
function ee() {
|
|
4955
|
-
if (!
|
|
4955
|
+
if (!i.value)
|
|
4956
4956
|
return;
|
|
4957
|
-
typeof window < "u" && (
|
|
4958
|
-
const { bars: g, barWidth: h, barSpacing:
|
|
4959
|
-
|
|
4957
|
+
typeof window < "u" && (q = Math.max(1, Math.min(2, window.devicePixelRatio || 1)));
|
|
4958
|
+
const { bars: g, barWidth: h, barSpacing: N, maxHeight: M } = t.value, $ = (h + N) * g - N, W = M;
|
|
4959
|
+
i.value.width = Math.floor($ * q), i.value.height = Math.floor(W * q), i.value.style.width = `${$}px`, i.value.style.height = `${W}px`, n && n.setTransform(q, 0, 0, q, 0, 0), Te();
|
|
4960
4960
|
}
|
|
4961
4961
|
r(ee, "resizeCanvas");
|
|
4962
|
-
function
|
|
4963
|
-
return Array.from({ length: s.length }, (
|
|
4964
|
-
const
|
|
4962
|
+
function C(g) {
|
|
4963
|
+
return Array.from({ length: s.length }, (N, M) => {
|
|
4964
|
+
const $ = s[M], V = Math.floor($ / 12e3 * g.length), P = Math.max(1, Math.floor(g.length / s.length / 2));
|
|
4965
4965
|
let K = 0;
|
|
4966
|
-
for (let J = 0; J <
|
|
4967
|
-
K += g[
|
|
4968
|
-
K = K /
|
|
4969
|
-
let
|
|
4970
|
-
|
|
4971
|
-
const
|
|
4972
|
-
return Math.min(0.85,
|
|
4966
|
+
for (let J = 0; J < P && V + J < g.length; J++)
|
|
4967
|
+
K += g[V + J];
|
|
4968
|
+
K = K / P / 255;
|
|
4969
|
+
let R = 1;
|
|
4970
|
+
$ < 150 ? R = 0.1 : $ < 200 ? R = 0.3 : $ >= 400 && $ <= 600 ? R = 1.4 : $ >= 1400 && $ <= 1600 ? R = 1.3 : $ >= 2400 && $ <= 2600 ? R = 1.2 : $ >= 200 && $ <= 2e3 ? R = 1.1 : $ >= 2e3 && $ <= 4e3 ? R = 0.9 : $ > 6e3 ? R = 0.4 : R = 0.7;
|
|
4971
|
+
const pe = K ** 0.5 * 0.6 * R;
|
|
4972
|
+
return Math.min(0.85, pe);
|
|
4973
4973
|
});
|
|
4974
4974
|
}
|
|
4975
|
-
r(
|
|
4976
|
-
function
|
|
4975
|
+
r(C, "mapFrequencyDataToBands");
|
|
4976
|
+
function _(g) {
|
|
4977
4977
|
const h = Array.from({ length: s.length }, () => 0);
|
|
4978
4978
|
if (g <= 0)
|
|
4979
4979
|
return h;
|
|
4980
|
-
for (let
|
|
4981
|
-
const M = s[
|
|
4982
|
-
let
|
|
4983
|
-
M >= 400 && M <= 600 ?
|
|
4980
|
+
for (let N = 0; N < s.length; N++) {
|
|
4981
|
+
const M = s[N];
|
|
4982
|
+
let $ = 0;
|
|
4983
|
+
M >= 400 && M <= 600 ? $ = g * 0.9 : M >= 1400 && M <= 1600 ? $ = g * 0.8 : M >= 2400 && M <= 2600 ? $ = g * 0.7 : M >= 200 && M <= 2e3 ? $ = g * 0.6 : M >= 85 && M <= 300 ? $ = g * 0.4 : $ = g * 0.2, $ *= 0.8 + Math.random() * 0.4, h[N] = Math.max(0, Math.min(1, $));
|
|
4984
4984
|
}
|
|
4985
4985
|
return h;
|
|
4986
4986
|
}
|
|
4987
|
-
r(
|
|
4988
|
-
function Fe(g, h,
|
|
4989
|
-
if (!
|
|
4987
|
+
r(_, "generateIntensityBasedBands");
|
|
4988
|
+
function Fe(g, h, N) {
|
|
4989
|
+
if (!a.enableWaveMotion || typeof window > "u")
|
|
4990
4990
|
return g;
|
|
4991
|
-
const M = performance.now() * 1e-3,
|
|
4992
|
-
for (let
|
|
4993
|
-
const
|
|
4994
|
-
let
|
|
4995
|
-
if (
|
|
4996
|
-
const
|
|
4997
|
-
|
|
4998
|
-
} else if (
|
|
4999
|
-
const
|
|
5000
|
-
|
|
5001
|
-
} else if (
|
|
5002
|
-
const
|
|
5003
|
-
|
|
4991
|
+
const M = performance.now() * 1e-3, $ = [...g];
|
|
4992
|
+
for (let W = 0; W < g.length; W++) {
|
|
4993
|
+
const V = W * (2 * Math.PI) / g.length;
|
|
4994
|
+
let P = 0;
|
|
4995
|
+
if (N === "listening" || N === "speaking") {
|
|
4996
|
+
const R = Math.sin(M * 4.2 + V * 0.6 - M * 2) * 0.15, L = Math.sin(M * 6.8 + V * 1.2 - M * 1.5) * 0.08, de = Math.sin(M * 0.8) * 0.05;
|
|
4997
|
+
P = R + L + de;
|
|
4998
|
+
} else if (N === "processing") {
|
|
4999
|
+
const R = Math.sin(M * 3 + V * 0.5 - M * 1.5) * 0.12, L = Math.sin(M * 5 + V * 0.8 - M * 1.2) * 0.06, de = Math.sin(M * 0.6) * 0.04;
|
|
5000
|
+
P = R + L + de;
|
|
5001
|
+
} else if (N === "connected") {
|
|
5002
|
+
const R = Math.sin(M * 0.6) * 0.1, L = Math.sin(M * 2 + V * 0.3) * 0.05;
|
|
5003
|
+
P = R + L;
|
|
5004
5004
|
} else {
|
|
5005
|
-
const
|
|
5006
|
-
|
|
5005
|
+
const R = Math.sin(M * 1.5 + V) * 0.12, L = Math.sin(M * 0.4) * 0.05;
|
|
5006
|
+
P = R + L;
|
|
5007
5007
|
}
|
|
5008
5008
|
const K = Math.max(0.3, h);
|
|
5009
|
-
|
|
5009
|
+
$[W] = Math.max(0, Math.min(0.9, g[W] + P * K));
|
|
5010
5010
|
}
|
|
5011
|
-
return
|
|
5011
|
+
return $;
|
|
5012
5012
|
}
|
|
5013
5013
|
r(Fe, "addWaveMotionOverlay");
|
|
5014
5014
|
function Be() {
|
|
5015
|
-
const g =
|
|
5015
|
+
const g = a.audioState;
|
|
5016
5016
|
if (!g)
|
|
5017
5017
|
return Array.from({ length: s.length }, () => 0);
|
|
5018
5018
|
let h = [];
|
|
5019
5019
|
if (g.getFrequencyData) {
|
|
5020
5020
|
const M = g.getFrequencyData();
|
|
5021
|
-
M && M.length > 0 && Array.from(M).some((
|
|
5021
|
+
M && M.length > 0 && Array.from(M).some((W) => W > 5) && (h = C(M));
|
|
5022
5022
|
}
|
|
5023
5023
|
if (!h.length) {
|
|
5024
5024
|
const M = g.mode === "listening" ? g.inputLevel ?? 0 : g.mode === "speaking" ? g.outputLevel ?? 0 : g.mode === "connected" ? 0.02 : 0;
|
|
5025
|
-
h =
|
|
5025
|
+
h = _(M);
|
|
5026
5026
|
}
|
|
5027
|
-
const
|
|
5027
|
+
const N = Math.max(
|
|
5028
5028
|
g.inputLevel ?? 0,
|
|
5029
5029
|
g.outputLevel ?? 0
|
|
5030
5030
|
);
|
|
5031
|
-
return Fe(h,
|
|
5031
|
+
return Fe(h, N, g.mode);
|
|
5032
5032
|
}
|
|
5033
5033
|
r(Be, "generateFrequencyBands");
|
|
5034
5034
|
function Se() {
|
|
@@ -5047,62 +5047,62 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5047
5047
|
}
|
|
5048
5048
|
r(Te, "clearGradientCache");
|
|
5049
5049
|
function te() {
|
|
5050
|
-
if (typeof window > "u" || !n || !
|
|
5050
|
+
if (typeof window > "u" || !n || !i.value)
|
|
5051
5051
|
return;
|
|
5052
5052
|
Se();
|
|
5053
|
-
const g =
|
|
5054
|
-
function K(
|
|
5053
|
+
const g = i.value, { bars: h, barWidth: N, barSpacing: M, minHeight: $, maxHeight: W } = t.value, V = g.width / q, P = g.height / q;
|
|
5054
|
+
function K(R) {
|
|
5055
5055
|
if (!n)
|
|
5056
5056
|
return;
|
|
5057
|
-
if (!
|
|
5057
|
+
if (!w.value) {
|
|
5058
5058
|
l = requestAnimationFrame(K);
|
|
5059
5059
|
return;
|
|
5060
5060
|
}
|
|
5061
|
-
n.clearRect(0, 0,
|
|
5062
|
-
const
|
|
5063
|
-
for (let
|
|
5064
|
-
const
|
|
5065
|
-
|
|
5061
|
+
n.clearRect(0, 0, V, P);
|
|
5062
|
+
const L = Be(), de = 0.3;
|
|
5063
|
+
for (let k = 0; k < h; k++) {
|
|
5064
|
+
const fe = $ + L[k] * (W - $);
|
|
5065
|
+
I[k] = I[k] + de * (fe - I[k]), S[k] = I[k];
|
|
5066
5066
|
}
|
|
5067
|
-
const
|
|
5068
|
-
for (let
|
|
5069
|
-
const
|
|
5070
|
-
if (
|
|
5071
|
-
|
|
5072
|
-
else if (
|
|
5073
|
-
const De = (Math.max(
|
|
5074
|
-
|
|
5067
|
+
const pe = 16.67;
|
|
5068
|
+
for (let k = 0; k < h; k++) {
|
|
5069
|
+
const fe = s[k], oe = be(fe), re = S[k] - u[k], xe = Qr * oe.stiffnessMultiplier, Me = Xr * oe.dampingMultiplier, Q = re * xe - b[k] * Me;
|
|
5070
|
+
if (b[k] += Q, u[k] += b[k], u[k] > A[k])
|
|
5071
|
+
A[k] = u[k], y[k] = xt, B[k] = 0;
|
|
5072
|
+
else if (y[k] = Math.max(0, y[k] - pe), y[k] <= 0) {
|
|
5073
|
+
const De = (Math.max($, u[k] * 1.1) - A[k]) * es - B[k] * ts;
|
|
5074
|
+
B[k] += De, A[k] = Math.max($, A[k] + B[k]);
|
|
5075
5075
|
}
|
|
5076
5076
|
}
|
|
5077
|
-
const J = h * 0.15,
|
|
5078
|
-
if ((
|
|
5079
|
-
const
|
|
5080
|
-
n.save(), n.globalCompositeOperation = "lighter", n.globalAlpha =
|
|
5081
|
-
const oe = le
|
|
5077
|
+
const J = h * 0.15, ve = a.audioState?.mode ?? "idle";
|
|
5078
|
+
if ((ve === "listening" || ve === "speaking") && a.enableGlow && !d.value) {
|
|
5079
|
+
const k = performance.now() * 1e-3, fe = 0.1 + Math.sin(k * 2) * 0.05;
|
|
5080
|
+
n.save(), n.globalCompositeOperation = "lighter", n.globalAlpha = fe;
|
|
5081
|
+
const oe = ce[le.value];
|
|
5082
5082
|
n.fillStyle = oe.glow;
|
|
5083
5083
|
for (let re = 0; re < h; re++) {
|
|
5084
|
-
const
|
|
5085
|
-
n.beginPath(), n.roundRect(
|
|
5084
|
+
const xe = re * (N + M), Me = u[re], Q = P - Me;
|
|
5085
|
+
n.beginPath(), n.roundRect(xe - 1, Q - 1, N + 2, Me + 2, [2, 2, 0, 0]), n.fill();
|
|
5086
5086
|
}
|
|
5087
5087
|
n.restore();
|
|
5088
5088
|
}
|
|
5089
|
-
const ke = le
|
|
5090
|
-
for (let
|
|
5091
|
-
const
|
|
5089
|
+
const ke = ce[le.value], [ue, he, ge] = ke.primary;
|
|
5090
|
+
for (let k = 0; k < h; k++) {
|
|
5091
|
+
const fe = k * (N + M), oe = u[k], re = P - oe, xe = s[k], Me = Math.min(k, h - 1 - k), Q = Math.min(1, Me / J), Le = Math.min(1, oe / W), De = (0.8 + Le * 0.2) * Q, at = (0.6 + Le * 0.2) * Q, it = (0.3 + Le * 0.1) * Q, Nt = Math.round(Le * 10) / 10, jt = Math.round(Q * 10) / 10, Rt = `${le.value}-${Nt}-${jt}-${oe}`, Gt = Ne(Rt, () => {
|
|
5092
5092
|
const Z = n.createLinearGradient(0, re, 0, re + oe);
|
|
5093
|
-
if (
|
|
5094
|
-
Z.addColorStop(0, `rgba(${
|
|
5095
|
-
else if (
|
|
5096
|
-
Z.addColorStop(0, `rgba(${
|
|
5093
|
+
if (ve === "speaking")
|
|
5094
|
+
Z.addColorStop(0, `rgba(${ue}, ${he}, ${ge}, ${De})`), Z.addColorStop(0.5, `rgba(${ue}, ${he}, ${ge}, ${at})`), Z.addColorStop(1, `rgba(${ue}, ${he}, ${ge}, ${it})`), (xe >= 400 && xe <= 600 || xe >= 1400 && xe <= 1600) && Z.addColorStop(0, `rgba(74, 222, 128, ${Math.min(1, De + 0.2)})`);
|
|
5095
|
+
else if (ve === "listening")
|
|
5096
|
+
Z.addColorStop(0, `rgba(${ue}, ${he}, ${ge}, ${De})`), Z.addColorStop(0.5, `rgba(${ue}, ${he}, ${ge}, ${at})`), Z.addColorStop(1, `rgba(${ue}, ${he}, ${ge}, ${it})`);
|
|
5097
5097
|
else {
|
|
5098
5098
|
const je = 0.6 * Q, Ut = 0.4 * Q, Ot = 0.2 * Q;
|
|
5099
|
-
Z.addColorStop(0, `rgba(${
|
|
5099
|
+
Z.addColorStop(0, `rgba(${ue}, ${he}, ${ge}, ${je})`), Z.addColorStop(0.6, `rgba(${ue}, ${he}, ${ge}, ${Ut})`), Z.addColorStop(1, `rgba(${ue}, ${he}, ${ge}, ${Ot})`);
|
|
5100
5100
|
}
|
|
5101
5101
|
return Z;
|
|
5102
5102
|
});
|
|
5103
|
-
if (n.fillStyle = Gt, n.beginPath(), n.roundRect(
|
|
5104
|
-
const Z =
|
|
5105
|
-
n.fillStyle = `rgba(255, 255, 255, ${je})`, n.fillRect(
|
|
5103
|
+
if (n.fillStyle = Gt, n.beginPath(), n.roundRect(fe, re, N, oe, [1, 1, 0, 0]), n.fill(), A[k] > $ + 2) {
|
|
5104
|
+
const Z = P - A[k], je = y[k] > 0 ? 0.9 : Math.max(0.3, y[k] / xt);
|
|
5105
|
+
n.fillStyle = `rgba(255, 255, 255, ${je})`, n.fillRect(fe, Z - 1, N, 2), je > 0.5 && !d.value && (n.shadowColor = ke.glow, n.shadowBlur = 3, n.fillRect(fe, Z - 1, N, 2), n.shadowBlur = 0);
|
|
5106
5106
|
}
|
|
5107
5107
|
}
|
|
5108
5108
|
l = requestAnimationFrame(K);
|
|
@@ -5110,46 +5110,46 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5110
5110
|
r(K, "animate"), l = requestAnimationFrame(K);
|
|
5111
5111
|
}
|
|
5112
5112
|
r(te, "startAnimation"), $e(() => {
|
|
5113
|
-
if (
|
|
5114
|
-
if (n =
|
|
5115
|
-
window.addEventListener("resize",
|
|
5113
|
+
if (ie(t.value.bars), i.value) {
|
|
5114
|
+
if (n = i.value.getContext("2d"), ee(), typeof window < "u") {
|
|
5115
|
+
window.addEventListener("resize", Y, { passive: !0 });
|
|
5116
5116
|
const g = /* @__PURE__ */ r(() => {
|
|
5117
|
-
|
|
5117
|
+
w.value = !document.hidden;
|
|
5118
5118
|
}, "handleVisibilityChange");
|
|
5119
5119
|
document.addEventListener("visibilitychange", g, { passive: !0 });
|
|
5120
5120
|
}
|
|
5121
5121
|
te();
|
|
5122
5122
|
}
|
|
5123
5123
|
});
|
|
5124
|
-
function
|
|
5124
|
+
function Y() {
|
|
5125
5125
|
if (typeof window < "u") {
|
|
5126
5126
|
const g = Math.max(1, Math.min(2, window.devicePixelRatio || 1));
|
|
5127
|
-
g !==
|
|
5127
|
+
g !== q && (q = g);
|
|
5128
5128
|
}
|
|
5129
5129
|
ee();
|
|
5130
5130
|
}
|
|
5131
|
-
return r(
|
|
5132
|
-
l && cancelAnimationFrame(l), typeof window < "u" && (window.removeEventListener("resize",
|
|
5133
|
-
|
|
5131
|
+
return r(Y, "onResize"), St(() => {
|
|
5132
|
+
l && cancelAnimationFrame(l), typeof window < "u" && (window.removeEventListener("resize", Y), document.removeEventListener("visibilitychange", () => {
|
|
5133
|
+
w.value = !document.hidden;
|
|
5134
5134
|
}));
|
|
5135
|
-
}),
|
|
5136
|
-
[() =>
|
|
5135
|
+
}), ae(
|
|
5136
|
+
[() => a.audioState?.mode, () => a.size],
|
|
5137
5137
|
() => {
|
|
5138
|
-
u.length !== t.value.bars &&
|
|
5138
|
+
u.length !== t.value.bars && ie(t.value.bars), !n && i.value && (n = i.value.getContext("2d")), l && cancelAnimationFrame(l), ee(), te();
|
|
5139
5139
|
},
|
|
5140
5140
|
{ immediate: !1 }
|
|
5141
|
-
),
|
|
5141
|
+
), ae(i, (g) => {
|
|
5142
5142
|
g && !n && (n = g.getContext("2d"), ee(), te());
|
|
5143
|
-
}), (g, h) => (f(),
|
|
5143
|
+
}), (g, h) => (f(), x("div", Jr, [
|
|
5144
5144
|
c("canvas", {
|
|
5145
5145
|
ref_key: "canvasRef",
|
|
5146
|
-
ref:
|
|
5146
|
+
ref: i,
|
|
5147
5147
|
class: "w-full max-w-full [image-rendering:-webkit-optimize-contrast]",
|
|
5148
5148
|
style: et({ height: `${t.value.maxHeight}px` })
|
|
5149
5149
|
}, null, 4)
|
|
5150
5150
|
]));
|
|
5151
5151
|
}
|
|
5152
|
-
}), rs = /* @__PURE__ */
|
|
5152
|
+
}), rs = /* @__PURE__ */ G({
|
|
5153
5153
|
__name: "ElSelfAudioVisualizer",
|
|
5154
5154
|
props: {
|
|
5155
5155
|
selfController: {},
|
|
@@ -5159,10 +5159,10 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5159
5159
|
enableGlow: { type: Boolean }
|
|
5160
5160
|
},
|
|
5161
5161
|
setup(e) {
|
|
5162
|
-
const
|
|
5162
|
+
const a = Kt(e, ["selfController"]), o = T(() => {
|
|
5163
5163
|
if (!e.selfController)
|
|
5164
5164
|
return { mode: "idle" };
|
|
5165
|
-
const t = e.selfController.voiceState.value, s = e.selfController.audioLevels.value,
|
|
5165
|
+
const t = e.selfController.voiceState.value, s = e.selfController.audioLevels.value, i = t.isSpeaking ? "speaking" : t.isProcessing ? "processing" : t.isListening ? "listening" : t.isConnected ? "connected" : "idle", n = /* @__PURE__ */ r(() => {
|
|
5166
5166
|
try {
|
|
5167
5167
|
if (t.isSpeaking) {
|
|
5168
5168
|
const l = e.selfController.getOutputFrequencyData();
|
|
@@ -5181,15 +5181,15 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5181
5181
|
}
|
|
5182
5182
|
}, "getFrequencyData");
|
|
5183
5183
|
return {
|
|
5184
|
-
mode:
|
|
5184
|
+
mode: i,
|
|
5185
5185
|
inputLevel: s.inputLevel,
|
|
5186
5186
|
outputLevel: s.outputLevel,
|
|
5187
5187
|
getFrequencyData: n
|
|
5188
5188
|
};
|
|
5189
5189
|
});
|
|
5190
|
-
return (t, s) => (f(), se(os, Zt({ "audio-state": o.value },
|
|
5190
|
+
return (t, s) => (f(), se(os, Zt({ "audio-state": o.value }, a), null, 16, ["audio-state"]));
|
|
5191
5191
|
}
|
|
5192
|
-
}), ss = { class: "flex flex-col h-full items-center justify-center gap-4" }, ns = { class: "flex-1 flex flex-col items-center justify-center space-y-8" },
|
|
5192
|
+
}), ss = { class: "flex flex-col h-full items-center justify-center gap-4" }, ns = { class: "flex-1 flex flex-col items-center justify-center space-y-8" }, as = { class: "w-full max-w-md" }, is = { class: "text-center flex gap-2 items-center text-xs" }, ls = { class: "flex items-center justify-center gap-2" }, cs = {
|
|
5193
5193
|
key: 0,
|
|
5194
5194
|
class: "size-2 bg-blue-500 rounded-full animate-pulse"
|
|
5195
5195
|
}, ds = {
|
|
@@ -5201,16 +5201,16 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5201
5201
|
}, hs = {
|
|
5202
5202
|
key: 3,
|
|
5203
5203
|
class: "size-2 bg-red-500 rounded-full"
|
|
5204
|
-
}, gs = { class: "text-white/70 text-sm max-w-xs leading-relaxed" }, fs = { class: "flex flex-col items-center space-y-6" }, ms = /* @__PURE__ */
|
|
5204
|
+
}, gs = { class: "text-white/70 text-sm max-w-xs leading-relaxed" }, fs = { class: "flex flex-col items-center space-y-6" }, ms = /* @__PURE__ */ G({
|
|
5205
5205
|
__name: "ElSelfVoice",
|
|
5206
5206
|
props: {
|
|
5207
5207
|
selfController: {}
|
|
5208
5208
|
},
|
|
5209
5209
|
setup(e) {
|
|
5210
|
-
const
|
|
5210
|
+
const a = T(() => e.selfController?.voiceState.value), o = T(() => a.value?.isConnected ? "red" : "green"), t = T(() => a.value?.isConnected ? "i-heroicons-phone-x-mark" : "i-heroicons-phone"), s = T(() => a.value?.isConnected ? "End Call" : "Start a Call"), i = T(() => {
|
|
5211
5211
|
const d = e.selfController?.voiceState.value;
|
|
5212
5212
|
return !!d?.error || d?.connectionStatus === "connecting";
|
|
5213
|
-
}), n =
|
|
5213
|
+
}), n = T(() => a.value?.connectionStatus === "connecting");
|
|
5214
5214
|
async function l() {
|
|
5215
5215
|
if (e.selfController)
|
|
5216
5216
|
try {
|
|
@@ -5219,33 +5219,33 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5219
5219
|
console.error("Error toggling call:", d);
|
|
5220
5220
|
}
|
|
5221
5221
|
}
|
|
5222
|
-
return r(l, "toggleCall"), (d,
|
|
5222
|
+
return r(l, "toggleCall"), (d, w) => (f(), x("div", ss, [
|
|
5223
5223
|
c("div", ns, [
|
|
5224
|
-
c("div",
|
|
5225
|
-
|
|
5224
|
+
c("div", as, [
|
|
5225
|
+
O(rs, {
|
|
5226
5226
|
"self-controller": e.selfController,
|
|
5227
5227
|
"enable-wave-motion": "",
|
|
5228
5228
|
"enable-glow": ""
|
|
5229
5229
|
}, null, 8, ["self-controller"])
|
|
5230
5230
|
]),
|
|
5231
|
-
c("div",
|
|
5231
|
+
c("div", is, [
|
|
5232
5232
|
c("div", ls, [
|
|
5233
|
-
e.selfController?.voiceState.value.isListening ? (f(),
|
|
5233
|
+
e.selfController?.voiceState.value.isListening ? (f(), x("div", cs)) : e.selfController?.voiceState.value.isSpeaking ? (f(), x("div", ds)) : e.selfController?.voiceState.value.isConnected && !e.selfController?.voiceState.value.isListening && !e.selfController?.voiceState.value.isSpeaking ? (f(), x("div", us)) : e.selfController?.voiceState.value.error ? (f(), x("div", hs)) : F("", !0)
|
|
5234
5234
|
]),
|
|
5235
|
-
c("p", gs,
|
|
5235
|
+
c("p", gs, H(e.selfController?.voiceState.value.error ? `Error: ${e.selfController.voiceState.value.error}` : e.selfController?.voiceState.value.transcript || "Ready to start a call..."), 1)
|
|
5236
5236
|
])
|
|
5237
5237
|
]),
|
|
5238
5238
|
c("div", fs, [
|
|
5239
|
-
|
|
5239
|
+
O(ot, {
|
|
5240
5240
|
theme: o.value,
|
|
5241
5241
|
icon: t.value,
|
|
5242
5242
|
size: "lg",
|
|
5243
5243
|
loading: n.value,
|
|
5244
|
-
disabled:
|
|
5244
|
+
disabled: i.value,
|
|
5245
5245
|
onClick: l
|
|
5246
5246
|
}, {
|
|
5247
5247
|
default: ne(() => [
|
|
5248
|
-
Pe(
|
|
5248
|
+
Pe(H(s.value), 1)
|
|
5249
5249
|
]),
|
|
5250
5250
|
_: 1
|
|
5251
5251
|
}, 8, ["theme", "icon", "loading", "disabled"])
|
|
@@ -5273,7 +5273,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5273
5273
|
}, Is = { class: "text-center max-w-md space-y-4" }, $s = { class: "text-sm text-white/70 leading-relaxed" }, zs = {
|
|
5274
5274
|
key: 3,
|
|
5275
5275
|
class: "bg-white/10 backdrop-blur-sm text-white/70 flex items-center justify-center h-full"
|
|
5276
|
-
}, Rs = /* @__PURE__ */
|
|
5276
|
+
}, Rs = /* @__PURE__ */ G({
|
|
5277
5277
|
__name: "SelfAgent",
|
|
5278
5278
|
props: {
|
|
5279
5279
|
sdk: {},
|
|
@@ -5286,137 +5286,139 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5286
5286
|
theme: { default: "green" }
|
|
5287
5287
|
},
|
|
5288
5288
|
emits: ["close", "error"],
|
|
5289
|
-
setup(e, { emit:
|
|
5290
|
-
const o =
|
|
5289
|
+
setup(e, { emit: a }) {
|
|
5290
|
+
const o = a, t = Yt(), s = j(!1), i = j(!1), n = j(), l = j(), d = T(() => t.value?.agentMode?.value ?? "self"), w = T(() => e.sdk.activeUser.value !== void 0), m = T(() => At.find((y) => y.mode === d.value));
|
|
5291
5291
|
function u() {
|
|
5292
5292
|
t.value && t.value.destroy();
|
|
5293
5293
|
try {
|
|
5294
|
-
t.value = new
|
|
5294
|
+
t.value = new _e({
|
|
5295
5295
|
sdk: e.sdk,
|
|
5296
5296
|
self: e.self,
|
|
5297
5297
|
context: e.context,
|
|
5298
5298
|
firstMessage: e.firstMessage
|
|
5299
5299
|
});
|
|
5300
|
-
} catch (
|
|
5301
|
-
throw console.error("SelfController creation failed:",
|
|
5300
|
+
} catch (A) {
|
|
5301
|
+
throw console.error("SelfController creation failed:", A), A;
|
|
5302
5302
|
}
|
|
5303
5303
|
}
|
|
5304
5304
|
r(u, "createSelfController");
|
|
5305
|
-
function
|
|
5305
|
+
function b(A) {
|
|
5306
5306
|
if (!l.value)
|
|
5307
5307
|
return;
|
|
5308
|
-
const
|
|
5309
|
-
Object.entries(
|
|
5310
|
-
l.value.style.setProperty(`--primary-${
|
|
5308
|
+
const y = to(A);
|
|
5309
|
+
Object.entries(y).forEach(([B, ie]) => {
|
|
5310
|
+
l.value.style.setProperty(`--primary-${B}`, ie);
|
|
5311
5311
|
});
|
|
5312
5312
|
}
|
|
5313
|
-
|
|
5313
|
+
r(b, "applyTheme"), $e(() => {
|
|
5314
5314
|
try {
|
|
5315
|
-
u(),
|
|
5316
|
-
} catch (
|
|
5317
|
-
const
|
|
5318
|
-
n.value =
|
|
5315
|
+
u(), b(e.theme);
|
|
5316
|
+
} catch (A) {
|
|
5317
|
+
const y = A instanceof Error ? A.message : "Failed to initialize digital self";
|
|
5318
|
+
n.value = y, o("error", y);
|
|
5319
5319
|
}
|
|
5320
5320
|
}), St(() => {
|
|
5321
5321
|
t.value && t.value.destroy();
|
|
5322
|
-
}),
|
|
5323
|
-
|
|
5324
|
-
}),
|
|
5325
|
-
|
|
5326
|
-
})
|
|
5322
|
+
}), ae(() => e.theme, (A) => {
|
|
5323
|
+
b(A);
|
|
5324
|
+
}), ae(() => e.sdk.activeUser.value, (A, y) => {
|
|
5325
|
+
y && !A && t.value && t.value.setMode("self");
|
|
5326
|
+
});
|
|
5327
|
+
const S = T(() => e.self.cover?.src && e.self.cover?.quality === "low" ? !0 : !!(e.self.avatar?.src && e.self.avatar?.quality === "low")), I = T(() => {
|
|
5328
|
+
const A = [S.value ? "backdrop-blur-sm" : ""];
|
|
5329
|
+
return S.value && d.value === "self" ? A.push("from-black/80 via-black/60 to-black/80") : d.value === "self" ? A.push("from-black/70 via-black/50 to-black/80") : A.push("from-black/90 via-black/90 to-black/100"), A.join(" ");
|
|
5330
|
+
});
|
|
5331
|
+
return (A, y) => (f(), x("div", {
|
|
5327
5332
|
ref_key: "rootElement",
|
|
5328
5333
|
ref: l,
|
|
5329
|
-
key: X(
|
|
5334
|
+
key: X(Ye)(e.self),
|
|
5330
5335
|
class: "fiction-sdk @container/agent self-agent w-full h-full overflow-hidden relative",
|
|
5331
5336
|
"data-test": "self-agent"
|
|
5332
5337
|
}, [
|
|
5333
|
-
e.loading ? (f(),
|
|
5334
|
-
|
|
5335
|
-
])) : e.self && !n.value ? (f(),
|
|
5338
|
+
e.loading ? (f(), x("div", bs, [
|
|
5339
|
+
O(tt, { class: "text-white size-8" })
|
|
5340
|
+
])) : e.self && !n.value ? (f(), x("div", {
|
|
5336
5341
|
key: 1,
|
|
5337
5342
|
class: "absolute inset-0 bg-cover bg-center bg-no-repeat",
|
|
5338
|
-
style: et({ backgroundImage: `url(${X(
|
|
5343
|
+
style: et({ backgroundImage: `url(${X(Ye)(e.self) || X(He)()})` }),
|
|
5339
5344
|
"data-quality": e.self.avatar?.quality || "none"
|
|
5340
5345
|
}, [
|
|
5341
5346
|
c("div", {
|
|
5342
|
-
class:
|
|
5343
|
-
e.self.avatar?.quality === "low" || e.self.cover?.quality === "low" ? "backdrop-blur-sm" : "",
|
|
5344
|
-
d.value === "self" ? "from-black/70 via-black/50 to-black/80" : "from-black/90 via-black/90 to-black/100"
|
|
5345
|
-
]])
|
|
5347
|
+
class: E(["absolute inset-0 bg-gradient-to-br z-0", I.value])
|
|
5346
5348
|
}, null, 2),
|
|
5347
5349
|
c("div", {
|
|
5348
|
-
class:
|
|
5350
|
+
class: E(["relative z-10 flex flex-col h-full transition-all duration-500 ease-[cubic-bezier(0.25,1,0.33,1)] will-change-transform", e.isActive ? "opacity-100 translate-y-0" : "opacity-0 translate-y-2"])
|
|
5349
5351
|
}, [
|
|
5350
5352
|
c("div", {
|
|
5351
|
-
class:
|
|
5353
|
+
class: E(["relative z-30 p-2", d.value !== "self" ? "backdrop-blur-lg" : ""])
|
|
5352
5354
|
}, [
|
|
5353
5355
|
c("div", {
|
|
5354
|
-
class:
|
|
5356
|
+
class: E(["flex items-center", e.hasClose ? "" : "justify-between"])
|
|
5355
5357
|
}, [
|
|
5356
5358
|
c("div", {
|
|
5357
|
-
class:
|
|
5359
|
+
class: E(e.hasClose ? "flex-1 basis-0" : "")
|
|
5358
5360
|
}, [
|
|
5359
5361
|
c("button", {
|
|
5360
5362
|
class: "cursor-pointer p-2 flex items-center gap-2 rounded-2xl text-white/70 hover:bg-white/10 transition-all duration-300 ease-[cubic-bezier(0.25,1,0.33,1)] hover:scale-105 active:scale-95",
|
|
5361
|
-
onClick:
|
|
5362
|
-
}, [...
|
|
5363
|
+
onClick: y[0] || (y[0] = (B) => s.value = !0)
|
|
5364
|
+
}, [...y[6] || (y[6] = [
|
|
5363
5365
|
c("i", { class: "i-tabler-menu size-7" }, null, -1)
|
|
5364
5366
|
])])
|
|
5365
5367
|
], 2),
|
|
5366
5368
|
c("button", {
|
|
5367
|
-
class:
|
|
5368
|
-
onClick:
|
|
5369
|
+
class: E(["flex items-center gap-2 px-3.5 py-3 rounded-2xl text-white/90 hover:bg-white/10 transition-all cursor-pointer flex-grow-0", { "bg-white/10": i.value }]),
|
|
5370
|
+
onClick: y[1] || (y[1] = (B) => i.value = !0)
|
|
5369
5371
|
}, [
|
|
5370
5372
|
c("i", {
|
|
5371
|
-
class:
|
|
5373
|
+
class: E([m.value?.icon, "size-4 opacity-60"])
|
|
5372
5374
|
}, null, 2),
|
|
5373
|
-
c("span", vs,
|
|
5374
|
-
|
|
5375
|
+
c("span", vs, H(m.value?.label), 1),
|
|
5376
|
+
y[7] || (y[7] = c("i", { class: "i-tabler-chevron-down size-4" }, null, -1))
|
|
5375
5377
|
], 2),
|
|
5376
|
-
e.hasClose ? (f(),
|
|
5378
|
+
e.hasClose ? (f(), x("div", xs, [
|
|
5377
5379
|
c("button", {
|
|
5378
5380
|
class: "cursor-pointer flex items-center p-3 rounded-2xl text-white/70 hover:bg-white/10 transition-colors",
|
|
5379
|
-
onClick:
|
|
5380
|
-
}, [...
|
|
5381
|
+
onClick: y[2] || (y[2] = Ct((B) => o("close", "button"), ["stop"]))
|
|
5382
|
+
}, [...y[8] || (y[8] = [
|
|
5381
5383
|
c("i", { class: "size-6 i-tabler-x" }, null, -1)
|
|
5382
5384
|
])])
|
|
5383
|
-
])) :
|
|
5385
|
+
])) : F("", !0)
|
|
5384
5386
|
], 2)
|
|
5385
5387
|
], 2),
|
|
5386
|
-
d.value === "self" ? (f(),
|
|
5387
|
-
|
|
5388
|
-
|
|
5388
|
+
d.value === "self" ? (f(), x("div", ys, [
|
|
5389
|
+
y[9] || (y[9] = c("div", { class: "flex-1 basis-0 mb-12" }, null, -1)),
|
|
5390
|
+
O(Nr, { self: e.self }, null, 8, ["self"]),
|
|
5389
5391
|
c("div", ks, [
|
|
5390
|
-
|
|
5392
|
+
O(ot, {
|
|
5391
5393
|
theme: "primary",
|
|
5392
5394
|
size: "lg",
|
|
5393
5395
|
class: "w-full",
|
|
5394
5396
|
icon: "i-heroicons-phone",
|
|
5395
5397
|
"data-test": "voice-button",
|
|
5396
|
-
onClick:
|
|
5398
|
+
onClick: y[3] || (y[3] = (B) => t.value?.setMode("talk"))
|
|
5397
5399
|
}, {
|
|
5398
5400
|
default: ne(() => [
|
|
5399
|
-
Pe(" Talk to " +
|
|
5401
|
+
Pe(" Talk to " + H(e.self.name), 1)
|
|
5400
5402
|
]),
|
|
5401
5403
|
_: 1
|
|
5402
5404
|
})
|
|
5403
5405
|
])
|
|
5404
|
-
])) : d.value === "talk" ? (f(),
|
|
5405
|
-
|
|
5406
|
+
])) : d.value === "talk" ? (f(), x("div", ws, [
|
|
5407
|
+
w.value ? (f(), x(Ce, { key: 1 }, [
|
|
5406
5408
|
c("div", null, [
|
|
5407
5409
|
c("div", Cs, [
|
|
5408
|
-
|
|
5410
|
+
O(Mo, { self: e.self }, null, 8, ["self"])
|
|
5409
5411
|
])
|
|
5410
5412
|
]),
|
|
5411
|
-
|
|
5413
|
+
O(ms, { "self-controller": t.value }, null, 8, ["self-controller"])
|
|
5412
5414
|
], 64)) : (f(), se(gt, {
|
|
5413
5415
|
key: 0,
|
|
5414
5416
|
sdk: e.sdk
|
|
5415
5417
|
}, null, 8, ["sdk"]))
|
|
5416
|
-
])) : (f(),
|
|
5418
|
+
])) : (f(), x("div", Ss, [
|
|
5417
5419
|
c("div", Ms, [
|
|
5418
|
-
d.value === "chat" ? (f(),
|
|
5419
|
-
|
|
5420
|
+
d.value === "chat" ? (f(), x(Ce, { key: 0 }, [
|
|
5421
|
+
w.value ? (f(), se(Er, {
|
|
5420
5422
|
key: 1,
|
|
5421
5423
|
"self-controller": t.value,
|
|
5422
5424
|
self: e.self
|
|
@@ -5427,12 +5429,12 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5427
5429
|
], 64)) : d.value === "info" ? (f(), se(vr, {
|
|
5428
5430
|
key: 1,
|
|
5429
5431
|
self: e.self
|
|
5430
|
-
}, null, 8, ["self"])) :
|
|
5432
|
+
}, null, 8, ["self"])) : F("", !0)
|
|
5431
5433
|
])
|
|
5432
5434
|
])),
|
|
5433
5435
|
c("div", {
|
|
5434
|
-
class:
|
|
5435
|
-
}, [...
|
|
5436
|
+
class: E(["relative z-20 text-center py-5 px-6", d.value === "info" ? "hidden" : ""])
|
|
5437
|
+
}, [...y[10] || (y[10] = [
|
|
5436
5438
|
c("a", {
|
|
5437
5439
|
href: "https://www.fiction.com",
|
|
5438
5440
|
class: "flex items-center justify-center gap-1.5 text-[10px] font-sans font-normal text-white/50 hover:text-white/70 transition-colors"
|
|
@@ -5443,27 +5445,27 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5443
5445
|
], -1)
|
|
5444
5446
|
])], 2)
|
|
5445
5447
|
], 2)
|
|
5446
|
-
], 12, ps)) : n.value ? (f(),
|
|
5448
|
+
], 12, ps)) : n.value ? (f(), x("div", As, [
|
|
5447
5449
|
c("div", Is, [
|
|
5448
|
-
|
|
5450
|
+
y[11] || (y[11] = c("div", { class: "flex justify-center" }, [
|
|
5449
5451
|
c("div", { class: "rounded-full bg-red-500/20 flex items-center justify-center size-10" }, [
|
|
5450
5452
|
c("i", { class: "i-tabler-alert-circle size-6 text-red-400" })
|
|
5451
5453
|
])
|
|
5452
5454
|
], -1)),
|
|
5453
|
-
|
|
5454
|
-
c("p", $s,
|
|
5455
|
+
y[12] || (y[12] = c("h3", { class: "text-lg font-medium" }, " Self Error ", -1)),
|
|
5456
|
+
c("p", $s, H(n.value), 1)
|
|
5455
5457
|
])
|
|
5456
|
-
])) : (f(),
|
|
5457
|
-
|
|
5458
|
+
])) : (f(), x("div", zs, " There was an error loading the digital self. Please try again later. ")),
|
|
5459
|
+
O(_r, {
|
|
5458
5460
|
modelValue: s.value,
|
|
5459
|
-
"onUpdate:modelValue":
|
|
5461
|
+
"onUpdate:modelValue": y[4] || (y[4] = (B) => s.value = B),
|
|
5460
5462
|
self: e.self,
|
|
5461
5463
|
sdk: e.sdk,
|
|
5462
5464
|
title: e.self.name
|
|
5463
5465
|
}, null, 8, ["modelValue", "self", "sdk", "title"]),
|
|
5464
|
-
|
|
5465
|
-
modelValue:
|
|
5466
|
-
"onUpdate:modelValue":
|
|
5466
|
+
O(Yr, {
|
|
5467
|
+
modelValue: i.value,
|
|
5468
|
+
"onUpdate:modelValue": y[5] || (y[5] = (B) => i.value = B),
|
|
5467
5469
|
"self-controller": t.value
|
|
5468
5470
|
}, null, 8, ["modelValue", "self-controller"])
|
|
5469
5471
|
]));
|
|
@@ -5471,7 +5473,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5471
5473
|
}), Es = { class: "self-wrap" }, Ts = {
|
|
5472
5474
|
key: 0,
|
|
5473
5475
|
class: "flex items-center justify-center h-full"
|
|
5474
|
-
}, Gs = /* @__PURE__ */
|
|
5476
|
+
}, Gs = /* @__PURE__ */ G({
|
|
5475
5477
|
__name: "SelfWrap",
|
|
5476
5478
|
props: {
|
|
5477
5479
|
sdk: {},
|
|
@@ -5483,20 +5485,20 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5483
5485
|
apiBase: {}
|
|
5484
5486
|
},
|
|
5485
5487
|
setup(e) {
|
|
5486
|
-
const
|
|
5488
|
+
const a = Jt("SelfWrap"), o = e, t = o.sdk || new Qt({
|
|
5487
5489
|
isDev: typeof window < "u" ? window.location.hostname === "localhost" || window.location.hostname.includes("127.0.0.1") : !1,
|
|
5488
5490
|
apiBase: o.apiBase
|
|
5489
|
-
}), s =
|
|
5491
|
+
}), s = j(!o.self), i = j(o.self), n = j();
|
|
5490
5492
|
return $e(async () => {
|
|
5491
5493
|
if (o.self) {
|
|
5492
|
-
|
|
5494
|
+
a.debug("Self provided via props, skipping fetch", {
|
|
5493
5495
|
selfId: o.self.selfId,
|
|
5494
5496
|
handle: o.self.handle
|
|
5495
5497
|
}), s.value = !1;
|
|
5496
5498
|
return;
|
|
5497
5499
|
}
|
|
5498
5500
|
if (!o.handle) {
|
|
5499
|
-
n.value = "No handle or self provided",
|
|
5501
|
+
n.value = "No handle or self provided", a.warn("SelfWrap mounted without handle or self", {
|
|
5500
5502
|
propsReceived: {
|
|
5501
5503
|
handle: o.handle,
|
|
5502
5504
|
self: o.self,
|
|
@@ -5511,9 +5513,9 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5511
5513
|
return;
|
|
5512
5514
|
}
|
|
5513
5515
|
try {
|
|
5514
|
-
s.value = !0,
|
|
5516
|
+
s.value = !0, a.debug("Fetching public self", { handle: o.handle });
|
|
5515
5517
|
const l = await t.getPublicSelf({ handle: o.handle });
|
|
5516
|
-
l ? (
|
|
5518
|
+
l ? (i.value = l, a.debug("Successfully fetched public self", {
|
|
5517
5519
|
selfId: l.selfId,
|
|
5518
5520
|
handle: l.handle
|
|
5519
5521
|
}), l.selfId && t.track({
|
|
@@ -5522,7 +5524,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5522
5524
|
properties: {
|
|
5523
5525
|
viewSource: "widget"
|
|
5524
5526
|
}
|
|
5525
|
-
})) : (n.value = t.error.value || "Self not found",
|
|
5527
|
+
})) : (n.value = t.error.value || "Self not found", a.error("Failed to fetch public self - no data returned", {
|
|
5526
5528
|
handle: o.handle,
|
|
5527
5529
|
sdkError: t.error.value,
|
|
5528
5530
|
sdkState: {
|
|
@@ -5532,7 +5534,7 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5532
5534
|
}
|
|
5533
5535
|
}));
|
|
5534
5536
|
} catch (l) {
|
|
5535
|
-
n.value = l instanceof Error ? l.message : "Failed to fetch self",
|
|
5537
|
+
n.value = l instanceof Error ? l.message : "Failed to fetch self", a.error("Exception while fetching public self", {
|
|
5536
5538
|
handle: o.handle,
|
|
5537
5539
|
error: l instanceof Error ? {
|
|
5538
5540
|
message: l.message,
|
|
@@ -5545,10 +5547,10 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5545
5547
|
}
|
|
5546
5548
|
});
|
|
5547
5549
|
} finally {
|
|
5548
|
-
s.value = !1,
|
|
5550
|
+
s.value = !1, i.value || a.debug("SelfWrap component will render empty (silent failure)", {
|
|
5549
5551
|
state: {
|
|
5550
5552
|
loading: s.value,
|
|
5551
|
-
hasSelf: !!
|
|
5553
|
+
hasSelf: !!i.value,
|
|
5552
5554
|
error: n.value
|
|
5553
5555
|
},
|
|
5554
5556
|
props: {
|
|
@@ -5563,17 +5565,17 @@ const R = /* @__PURE__ */ r((e) => {
|
|
|
5563
5565
|
}
|
|
5564
5566
|
});
|
|
5565
5567
|
}
|
|
5566
|
-
}), (l, d) => (f(),
|
|
5567
|
-
s.value ? (f(),
|
|
5568
|
+
}), (l, d) => (f(), x("div", Es, [
|
|
5569
|
+
s.value ? (f(), x("div", Ts, [...d[0] || (d[0] = [
|
|
5568
5570
|
c("div", { class: "animate-spin rounded-full size-6 border-b-2 border-white" }, null, -1)
|
|
5569
|
-
])])) :
|
|
5571
|
+
])])) : i.value ? Ie(l.$slots, "default", {
|
|
5570
5572
|
key: 1,
|
|
5571
5573
|
sdk: X(t),
|
|
5572
|
-
self:
|
|
5574
|
+
self: i.value,
|
|
5573
5575
|
context: e.context,
|
|
5574
5576
|
firstMessage: e.firstMessage,
|
|
5575
5577
|
loading: s.value
|
|
5576
|
-
}) :
|
|
5578
|
+
}) : F("", !0)
|
|
5577
5579
|
]));
|
|
5578
5580
|
}
|
|
5579
5581
|
});
|
|
@@ -5588,11 +5590,11 @@ export {
|
|
|
5588
5590
|
ro as d,
|
|
5589
5591
|
so as e,
|
|
5590
5592
|
Ns as f,
|
|
5591
|
-
|
|
5593
|
+
Ye as g,
|
|
5592
5594
|
At as h,
|
|
5593
5595
|
ht as i,
|
|
5594
5596
|
Ue as j,
|
|
5595
5597
|
js as k,
|
|
5596
5598
|
no as p
|
|
5597
5599
|
};
|
|
5598
|
-
//# sourceMappingURL=SelfWrap.vue_vue_type_script_setup_true_lang-
|
|
5600
|
+
//# sourceMappingURL=SelfWrap.vue_vue_type_script_setup_true_lang-9hTe-S75.js.map
|