bridgeapp-ai-chat-widget 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.d.ts +12 -0
- package/dist/api/api.types.d.ts +54 -0
- package/dist/api/messages.api.d.ts +7 -0
- package/dist/api/notifySessionConflictOn409.d.ts +2 -0
- package/dist/api/voice.api.d.ts +90 -0
- package/dist/avatar/AnimationManager.d.ts +43 -0
- package/dist/avatar/Avatar.d.ts +60 -0
- package/dist/avatar/BlendShapeScenario.d.ts +19 -0
- package/dist/bridge-ai-chat-widget.es.js +277 -274
- package/dist/bridge-ai-chat-widget.umd.js +19 -19
- package/dist/domain/audio-devices/audio-devices.types.d.ts +30 -0
- package/dist/domain/audio-devices/audio-devices.utils.d.ts +5 -0
- package/dist/domain/audio-devices/index.d.ts +2 -0
- package/dist/domain/message/cable/AnyCable.service.d.ts +33 -0
- package/dist/domain/message/cable/CableContext.d.ts +15 -0
- package/dist/domain/message/cable/CableContext.types.d.ts +19 -0
- package/dist/domain/message/cable/WidgetChat.channel.d.ts +4 -0
- package/dist/domain/message/message.store.d.ts +33 -0
- package/dist/domain/ui/ui.service.d.ts +7 -0
- package/dist/domain/voice/voice.store.d.ts +36 -0
- package/dist/hooks/useDeviceManager.d.ts +28 -0
- package/dist/hooks/useSessionExpiryChecks.d.ts +3 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.types.d.ts +3 -0
- package/dist/lib/agentContentRenderer.d.ts +6 -0
- package/dist/lib/isSessionExpired.d.ts +2 -0
- package/dist/lib/logger.d.ts +12 -0
- package/dist/lib/retrieveContent.d.ts +6 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/react/mount.d.ts +5 -0
- package/dist/ui/chat-routes.d.ts +11 -0
- package/dist/ui/components/ChatFooter.d.ts +2 -0
- package/dist/ui/components/ChatListItem.d.ts +11 -0
- package/dist/ui/components/ChatListPage.d.ts +1 -0
- package/dist/ui/components/ChatMessage.d.ts +8 -0
- package/dist/ui/components/ChatTextMode.d.ts +1 -0
- package/dist/ui/components/ChatTopControls.d.ts +1 -0
- package/dist/ui/components/ChatTypingIndicator.d.ts +4 -0
- package/dist/ui/components/ChatUnreadIndicator.d.ts +1 -0
- package/dist/ui/components/ChatVoiceMode.d.ts +1 -0
- package/dist/ui/components/ChatWidget.d.ts +29 -0
- package/dist/ui/components/ErrorMessage.d.ts +7 -0
- package/dist/ui/components/VoiceMessage.d.ts +9 -0
- package/dist/ui/components/overlays/ChatBlurOverlayBottom.d.ts +1 -0
- package/dist/ui/components/overlays/ChatBlurOverlayTop.d.ts +1 -0
- package/dist/ui/components/overlays/ChatDarkOverlay.d.ts +1 -0
- package/dist/ui/error-messages.d.ts +6 -0
- package/package.json +1 -1
|
@@ -34393,6 +34393,7 @@ class EK {
|
|
|
34393
34393
|
this.animations.forEach((e) => e.kill()), qu.to(
|
|
34394
34394
|
this.head.morphTargetInfluences,
|
|
34395
34395
|
this.blendShapeResetAnimationLength,
|
|
34396
|
+
//@ts-ignore
|
|
34396
34397
|
this.zeroMorphingInfluences
|
|
34397
34398
|
);
|
|
34398
34399
|
}
|
|
@@ -40187,7 +40188,7 @@ const Kl = g8((i, e) => ({
|
|
|
40187
40188
|
}), h.onicecandidate = (p) => {
|
|
40188
40189
|
if (p.candidate) {
|
|
40189
40190
|
i((v) => ({
|
|
40190
|
-
iceCandidates: [...v.iceCandidates, p.candidate
|
|
40191
|
+
iceCandidates: [...v.iceCandidates, p.candidate?.toJSON() ?? {}]
|
|
40191
40192
|
}));
|
|
40192
40193
|
return;
|
|
40193
40194
|
}
|
|
@@ -40276,7 +40277,7 @@ const Kl = g8((i, e) => ({
|
|
|
40276
40277
|
},
|
|
40277
40278
|
playRemoteAudio(t) {
|
|
40278
40279
|
let n = e().remoteAudioElement;
|
|
40279
|
-
n || (n = new Audio(), n.autoplay = !0,
|
|
40280
|
+
n || (n = new Audio(), n.autoplay = !0, i({ remoteAudioElement: n })), n.srcObject = t, n.muted = !1, n.play().catch((r) => {
|
|
40280
40281
|
Di.debug("audioElement play error", r);
|
|
40281
40282
|
});
|
|
40282
40283
|
},
|
|
@@ -49670,7 +49671,95 @@ function S0(i) {
|
|
|
49670
49671
|
}
|
|
49671
49672
|
});
|
|
49672
49673
|
}
|
|
49673
|
-
var Er = /* @__PURE__ */ ((i) => (i.Customer = "PARTICIPANT_TYPE_CUSTOMER", i.Agent = "PARTICIPANT_TYPE_AGENT", i))(Er || {}), Bp = /* @__PURE__ */ ((i) => (i.Completed = "MESSAGE_STATUS_COMPLETED", i.Writing = "MESSAGE_STATUS_WRITING", i.Failed = "MESSAGE_STATUS_FAILED", i))(Bp || {})
|
|
49674
|
+
var Er = /* @__PURE__ */ ((i) => (i.Customer = "PARTICIPANT_TYPE_CUSTOMER", i.Agent = "PARTICIPANT_TYPE_AGENT", i))(Er || {}), Bp = /* @__PURE__ */ ((i) => (i.Completed = "MESSAGE_STATUS_COMPLETED", i.Writing = "MESSAGE_STATUS_WRITING", i.Failed = "MESSAGE_STATUS_FAILED", i))(Bp || {});
|
|
49675
|
+
function RI({ message: i, author: e, className: t, ...n }) {
|
|
49676
|
+
return /* @__PURE__ */ Ye.jsx(
|
|
49677
|
+
"div",
|
|
49678
|
+
{
|
|
49679
|
+
...n,
|
|
49680
|
+
className: ol(
|
|
49681
|
+
"message flex max-w-70 min-h-9 w-fit h-fit justify-center items-center backdrop-blur-xl text-left",
|
|
49682
|
+
{
|
|
49683
|
+
"bg-purple-accent/80": e === Er.Agent,
|
|
49684
|
+
"rounded-bl-sm": e === Er.Agent,
|
|
49685
|
+
"self-start": e === Er.Agent,
|
|
49686
|
+
"ml-2": e === Er.Agent,
|
|
49687
|
+
"bg-white/20": e === Er.Customer,
|
|
49688
|
+
"rounded-br-sm": e === Er.Customer,
|
|
49689
|
+
"self-end": e === Er.Customer,
|
|
49690
|
+
"mr-2": e === Er.Customer
|
|
49691
|
+
},
|
|
49692
|
+
t
|
|
49693
|
+
),
|
|
49694
|
+
children: i
|
|
49695
|
+
}
|
|
49696
|
+
);
|
|
49697
|
+
}
|
|
49698
|
+
function Pre({ className: i }) {
|
|
49699
|
+
const [e, t] = te.useState(!0), { config: n, api: r } = sf(), o = q_(), { networkStatus: c } = kL(), u = Kl(($) => $.init), h = Kl(($) => $.endSession), m = Kl(($) => $.isVoiceBootstrapped), _ = Kl(($) => $.setMicrophoneEnabled), p = Kl(($) => $.status), v = Kl(($) => $.errorMessage), x = Kl(($) => $.customerMessageTranscriptVisible), T = Kl(($) => $.customerMessageTranscript), A = Kl(($) => $.assistantMessageTranscriptVisible), M = Kl(($) => $.assistantMessageTranscript), w = Kl(($) => $.assistantResponseInProgress), { selectedInputId: L, requestPermission: N } = xee(), I = te.useCallback(async () => {
|
|
49700
|
+
const $ = !e;
|
|
49701
|
+
if (!$ && !m) {
|
|
49702
|
+
const U = await N();
|
|
49703
|
+
if (!U.ok) {
|
|
49704
|
+
console.error("permission error", U);
|
|
49705
|
+
return;
|
|
49706
|
+
}
|
|
49707
|
+
try {
|
|
49708
|
+
const H = await navigator.mediaDevices.getUserMedia(
|
|
49709
|
+
See(L)
|
|
49710
|
+
);
|
|
49711
|
+
await u(n, r, H);
|
|
49712
|
+
} catch (H) {
|
|
49713
|
+
console.error("voice init error", H);
|
|
49714
|
+
return;
|
|
49715
|
+
}
|
|
49716
|
+
}
|
|
49717
|
+
_(!$), t($);
|
|
49718
|
+
}, [
|
|
49719
|
+
n,
|
|
49720
|
+
u,
|
|
49721
|
+
m,
|
|
49722
|
+
e,
|
|
49723
|
+
N,
|
|
49724
|
+
L,
|
|
49725
|
+
_
|
|
49726
|
+
]), z = te.useCallback(async () => {
|
|
49727
|
+
await h("switched_to_text"), o(Va.text);
|
|
49728
|
+
}, [h, o]);
|
|
49729
|
+
te.useEffect(() => () => {
|
|
49730
|
+
h("voice_mode_closed");
|
|
49731
|
+
}, [h]);
|
|
49732
|
+
const F = te.useMemo(() => c === Xc.Unavailable ? x_.connectionFailed : c === Xc.Offline ? x_.offline : v || null, [c, v]), G = te.useMemo(() => p === "connecting" ? "Connecting..." : w ? "Assistant speaking..." : e ? "Muted" : "Start talking", [w, e, p]);
|
|
49733
|
+
return /* @__PURE__ */ Ye.jsxs("div", { className: ol("z-1 flex w-full flex-col items-center", i), children: [
|
|
49734
|
+
F && /* @__PURE__ */ Ye.jsx(o8, { className: "mb-8", message: F }),
|
|
49735
|
+
x && /* @__PURE__ */ Ye.jsx(RI, { className: "mb-8", message: T, author: Er.Customer }),
|
|
49736
|
+
A && M && /* @__PURE__ */ Ye.jsx(RI, { className: "mb-8", message: M, author: Er.Agent }),
|
|
49737
|
+
/* @__PURE__ */ Ye.jsxs("div", { className: "flex flex-col items-center gap-6", children: [
|
|
49738
|
+
n.voiceEnabled && /* @__PURE__ */ Ye.jsxs("div", { className: "flex flex-col items-center gap-3 text-white", children: [
|
|
49739
|
+
/* @__PURE__ */ Ye.jsx("span", { className: "text-xs font-medium text-white", children: G }),
|
|
49740
|
+
/* @__PURE__ */ Ye.jsx(
|
|
49741
|
+
kd,
|
|
49742
|
+
{
|
|
49743
|
+
className: `flex h-19 w-19 items-center justify-center rounded-full backdrop-blur-sm ${e ? "bg-black/30" : "bg-white/20"}`,
|
|
49744
|
+
onClick: I,
|
|
49745
|
+
disabled: p === "connecting",
|
|
49746
|
+
children: e ? /* @__PURE__ */ Ye.jsx(wK, {}) : /* @__PURE__ */ Ye.jsx(MK, {})
|
|
49747
|
+
}
|
|
49748
|
+
)
|
|
49749
|
+
] }),
|
|
49750
|
+
/* @__PURE__ */ Ye.jsx(
|
|
49751
|
+
kd,
|
|
49752
|
+
{
|
|
49753
|
+
onClick: z,
|
|
49754
|
+
className: "data-hover:text-purple-accent flex h-10 w-10 items-center justify-center rounded-full text-white backdrop-blur-sm data-hover:bg-white",
|
|
49755
|
+
children: /* @__PURE__ */ Ye.jsx(AK, {})
|
|
49756
|
+
}
|
|
49757
|
+
)
|
|
49758
|
+
] })
|
|
49759
|
+
] });
|
|
49760
|
+
}
|
|
49761
|
+
const Fre = (i) => /* @__PURE__ */ te.createElement("svg", { width: 15, height: 17, viewBox: "0 0 15 17", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ te.createElement("path", { d: "M1.875 5.9375V10.9375C1.875 11.1861 1.77623 11.4246 1.60041 11.6004C1.4246 11.7762 1.18614 11.875 0.9375 11.875C0.68886 11.875 0.450403 11.7762 0.274587 11.6004C0.0987719 11.4246 0 11.1861 0 10.9375V5.9375C0 5.68886 0.0987719 5.4504 0.274587 5.27459C0.450403 5.09877 0.68886 5 0.9375 5C1.18614 5 1.4246 5.09877 1.60041 5.27459C1.77623 5.4504 1.875 5.68886 1.875 5.9375ZM4.0625 0C3.81386 0 3.5754 0.0987721 3.39959 0.274587C3.22377 0.450403 3.125 0.68886 3.125 0.9375V15.9375C3.125 16.1861 3.22377 16.4246 3.39959 16.6004C3.5754 16.7762 3.81386 16.875 4.0625 16.875C4.31114 16.875 4.5496 16.7762 4.72541 16.6004C4.90123 16.4246 5 16.1861 5 15.9375V0.9375C5 0.68886 4.90123 0.450403 4.72541 0.274587C4.5496 0.0987721 4.31114 0 4.0625 0ZM7.1875 2.5C6.93886 2.5 6.7004 2.59877 6.52459 2.77459C6.34877 2.9504 6.25 3.18886 6.25 3.4375V13.4375C6.25 13.6861 6.34877 13.9246 6.52459 14.1004C6.7004 14.2762 6.93886 14.375 7.1875 14.375C7.43614 14.375 7.6746 14.2762 7.85041 14.1004C8.02623 13.9246 8.125 13.6861 8.125 13.4375V3.4375C8.125 3.18886 8.02623 2.9504 7.85041 2.77459C7.6746 2.59877 7.43614 2.5 7.1875 2.5ZM10.3125 5C10.0639 5 9.8254 5.09877 9.64959 5.27459C9.47377 5.4504 9.375 5.68886 9.375 5.9375V10.9375C9.375 11.1861 9.47377 11.4246 9.64959 11.6004C9.8254 11.7762 10.0639 11.875 10.3125 11.875C10.5611 11.875 10.7996 11.7762 10.9754 11.6004C11.1512 11.4246 11.25 11.1861 11.25 10.9375V5.9375C11.25 5.68886 11.1512 5.4504 10.9754 5.27459C10.7996 5.09877 10.5611 5 10.3125 5ZM13.4375 3.75C13.1889 3.75 12.9504 3.84877 12.7746 4.02459C12.5988 4.2004 12.5 4.43886 12.5 4.6875V12.1875C12.5 12.4361 12.5988 12.6746 12.7746 12.8504C12.9504 13.0262 13.1889 13.125 13.4375 13.125C13.6861 13.125 13.9246 13.0262 14.1004 12.8504C14.2762 12.6746 14.375 12.4361 14.375 12.1875V4.6875C14.375 4.43886 14.2762 4.2004 14.1004 4.02459C13.9246 3.84877 13.6861 3.75 13.4375 3.75Z" })), Hre = (i) => /* @__PURE__ */ te.createElement("svg", { width: 22, height: 22, viewBox: "0 0 22 22", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ te.createElement("path", { d: "M21.1996 0.549377C20.9639 0.313669 20.6697 0.14503 20.3472 0.0608259C20.0248 -0.0233778 19.6857 -0.0201025 19.3649 0.0703145L19.3443 0.076877L1.35269 5.53125C0.987805 5.63709 0.663677 5.85127 0.423239 6.14544C0.182802 6.43961 0.0374012 6.79987 0.00629592 7.17853C-0.0248094 7.55718 0.0598483 7.93634 0.249056 8.26581C0.438264 8.59527 0.723094 8.85948 1.06582 9.02344L8.90519 12.8438L12.7218 20.6859C12.8723 21.006 13.111 21.2764 13.41 21.4654C13.7089 21.6544 14.0556 21.7541 14.4093 21.7528C14.4627 21.7528 14.5171 21.7528 14.5714 21.7463C14.9511 21.717 15.3126 21.5719 15.6071 21.3304C15.9015 21.0889 16.1147 20.7628 16.2177 20.3963L21.6721 2.40469C21.6748 2.398 21.677 2.39111 21.6786 2.38406C21.769 2.06327 21.7723 1.72418 21.6881 1.4017C21.6039 1.07922 21.4353 0.785013 21.1996 0.549377ZM14.3343 18.8503L11.1121 12.2278L15.4246 7.92C15.5292 7.81536 15.6122 7.69112 15.6689 7.55439C15.7255 7.41767 15.7546 7.27112 15.7546 7.12313C15.7546 6.97513 15.7255 6.82859 15.6689 6.69186C15.6122 6.55513 15.5292 6.4309 15.4246 6.32625C15.3199 6.22161 15.1957 6.13859 15.059 6.08196C14.9222 6.02533 14.7757 5.99618 14.6277 5.99618C14.4797 5.99618 14.3332 6.02533 14.1964 6.08196C14.0597 6.13859 13.9355 6.22161 13.8308 6.32625L9.51832 10.6388L2.89863 7.41469L19.3114 2.4375L14.3343 18.8503Z" })), Vre = (i) => /* @__PURE__ */ te.createElement("svg", { width: 21, height: 21, viewBox: "0 0 21 21", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ te.createElement("path", { d: "M20.9437 1.90279C20.9437 1.90279 20.9437 1.91216 20.9437 1.91685L15.4874 19.9112C15.4048 20.2035 15.2348 20.4635 15.0002 20.6564C14.7656 20.8493 14.4776 20.9658 14.1749 20.9903C14.1318 20.994 14.0887 20.9959 14.0455 20.9959C13.7619 20.9968 13.4838 20.9165 13.2443 20.7645C13.0048 20.6125 12.8137 20.3952 12.6937 20.1381L9.28117 13.135C9.24703 13.0648 9.23563 12.9857 9.24857 12.9087C9.26151 12.8318 9.29814 12.7608 9.35336 12.7056L14.7834 7.2756C14.9181 7.1338 14.9921 6.94499 14.9896 6.74942C14.9871 6.55385 14.9083 6.36699 14.77 6.22869C14.6317 6.09039 14.4448 6.01158 14.2492 6.00908C14.0537 6.00658 13.8648 6.08057 13.723 6.21529L8.29024 11.6453C8.23508 11.7005 8.16407 11.7371 8.0871 11.7501C8.01013 11.763 7.93104 11.7516 7.86086 11.7175L0.851173 8.30591C0.577067 8.17441 0.34939 7.96272 0.198314 7.69889C0.047238 7.43506 -0.0201046 7.13156 0.00521012 6.8286C0.0305249 6.52563 0.147302 6.23751 0.340066 6.00242C0.53283 5.76732 0.792481 5.59635 1.08461 5.51216L19.079 0.0559103H19.093C19.3493 -0.0160696 19.62 -0.018593 19.8775 0.0485989C20.135 0.115791 20.37 0.250279 20.5583 0.438265C20.7467 0.626251 20.8817 0.860966 20.9494 1.11833C21.0171 1.37569 21.0151 1.64644 20.9437 1.90279Z" }));
|
|
49762
|
+
var DA = (i, e) => {
|
|
49674
49763
|
if (i === "slot")
|
|
49675
49764
|
return 0;
|
|
49676
49765
|
if (i instanceof Function)
|
|
@@ -49679,7 +49768,7 @@ var Er = /* @__PURE__ */ ((i) => (i.Customer = "PARTICIPANT_TYPE_CUSTOMER", i.Ag
|
|
|
49679
49768
|
if (i === "svg")
|
|
49680
49769
|
throw new Error("SVG elements are not supported in the JSX syntax, use the array syntax instead");
|
|
49681
49770
|
return [i, n, t];
|
|
49682
|
-
},
|
|
49771
|
+
}, Gre = /^\s*>\s$/, jre = ll.create({
|
|
49683
49772
|
name: "blockquote",
|
|
49684
49773
|
addOptions() {
|
|
49685
49774
|
return {
|
|
@@ -49724,12 +49813,12 @@ ${t}
|
|
|
49724
49813
|
addInputRules() {
|
|
49725
49814
|
return [
|
|
49726
49815
|
V_({
|
|
49727
|
-
find:
|
|
49816
|
+
find: Gre,
|
|
49728
49817
|
type: this.type
|
|
49729
49818
|
})
|
|
49730
49819
|
];
|
|
49731
49820
|
}
|
|
49732
|
-
}),
|
|
49821
|
+
}), Xre = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, qre = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, $re = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, Yre = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Wre = tb.create({
|
|
49733
49822
|
name: "bold",
|
|
49734
49823
|
addOptions() {
|
|
49735
49824
|
return {
|
|
@@ -49777,11 +49866,11 @@ ${t}
|
|
|
49777
49866
|
addInputRules() {
|
|
49778
49867
|
return [
|
|
49779
49868
|
H_({
|
|
49780
|
-
find:
|
|
49869
|
+
find: Xre,
|
|
49781
49870
|
type: this.type
|
|
49782
49871
|
}),
|
|
49783
49872
|
H_({
|
|
49784
|
-
find:
|
|
49873
|
+
find: $re,
|
|
49785
49874
|
type: this.type
|
|
49786
49875
|
})
|
|
49787
49876
|
];
|
|
@@ -49789,16 +49878,16 @@ ${t}
|
|
|
49789
49878
|
addPasteRules() {
|
|
49790
49879
|
return [
|
|
49791
49880
|
S0({
|
|
49792
|
-
find:
|
|
49881
|
+
find: qre,
|
|
49793
49882
|
type: this.type
|
|
49794
49883
|
}),
|
|
49795
49884
|
S0({
|
|
49796
|
-
find:
|
|
49885
|
+
find: Yre,
|
|
49797
49886
|
type: this.type
|
|
49798
49887
|
})
|
|
49799
49888
|
];
|
|
49800
49889
|
}
|
|
49801
|
-
}),
|
|
49890
|
+
}), Zre = /(^|[^`])`([^`]+)`(?!`)$/, Kre = /(^|[^`])`([^`]+)`(?!`)/g, Jre = tb.create({
|
|
49802
49891
|
name: "code",
|
|
49803
49892
|
addOptions() {
|
|
49804
49893
|
return {
|
|
@@ -49832,7 +49921,7 @@ ${t}
|
|
|
49832
49921
|
addInputRules() {
|
|
49833
49922
|
return [
|
|
49834
49923
|
H_({
|
|
49835
|
-
find:
|
|
49924
|
+
find: Zre,
|
|
49836
49925
|
type: this.type
|
|
49837
49926
|
})
|
|
49838
49927
|
];
|
|
@@ -49840,12 +49929,12 @@ ${t}
|
|
|
49840
49929
|
addPasteRules() {
|
|
49841
49930
|
return [
|
|
49842
49931
|
S0({
|
|
49843
|
-
find:
|
|
49932
|
+
find: Kre,
|
|
49844
49933
|
type: this.type
|
|
49845
49934
|
})
|
|
49846
49935
|
];
|
|
49847
49936
|
}
|
|
49848
|
-
}), TR = 4,
|
|
49937
|
+
}), TR = 4, Qre = /^```([a-z]+)?[\s\n]$/, eae = /^~~~([a-z]+)?[\s\n]$/, tae = ll.create({
|
|
49849
49938
|
name: "codeBlock",
|
|
49850
49939
|
addOptions() {
|
|
49851
49940
|
return {
|
|
@@ -50018,14 +50107,14 @@ ${t}
|
|
|
50018
50107
|
addInputRules() {
|
|
50019
50108
|
return [
|
|
50020
50109
|
vO({
|
|
50021
|
-
find:
|
|
50110
|
+
find: Qre,
|
|
50022
50111
|
type: this.type,
|
|
50023
50112
|
getAttributes: (i) => ({
|
|
50024
50113
|
language: i[1]
|
|
50025
50114
|
})
|
|
50026
50115
|
}),
|
|
50027
50116
|
vO({
|
|
50028
|
-
find:
|
|
50117
|
+
find: eae,
|
|
50029
50118
|
type: this.type,
|
|
50030
50119
|
getAttributes: (i) => ({
|
|
50031
50120
|
language: i[1]
|
|
@@ -50054,14 +50143,14 @@ ${t}
|
|
|
50054
50143
|
})
|
|
50055
50144
|
];
|
|
50056
50145
|
}
|
|
50057
|
-
}),
|
|
50146
|
+
}), nae = ll.create({
|
|
50058
50147
|
name: "doc",
|
|
50059
50148
|
topNode: !0,
|
|
50060
50149
|
content: "block+",
|
|
50061
50150
|
renderMarkdown: (i, e) => i.content ? e.renderChildren(i.content, `
|
|
50062
50151
|
|
|
50063
50152
|
`) : ""
|
|
50064
|
-
}),
|
|
50153
|
+
}), iae = ll.create({
|
|
50065
50154
|
name: "hardBreak",
|
|
50066
50155
|
markdownTokenName: "br",
|
|
50067
50156
|
addOptions() {
|
|
@@ -50115,7 +50204,7 @@ ${t}
|
|
|
50115
50204
|
"Shift-Enter": () => this.editor.commands.setHardBreak()
|
|
50116
50205
|
};
|
|
50117
50206
|
}
|
|
50118
|
-
}),
|
|
50207
|
+
}), rae = ll.create({
|
|
50119
50208
|
name: "heading",
|
|
50120
50209
|
addOptions() {
|
|
50121
50210
|
return {
|
|
@@ -50173,7 +50262,7 @@ ${t}
|
|
|
50173
50262
|
}
|
|
50174
50263
|
}));
|
|
50175
50264
|
}
|
|
50176
|
-
}),
|
|
50265
|
+
}), aae = ll.create({
|
|
50177
50266
|
name: "horizontalRule",
|
|
50178
50267
|
addOptions() {
|
|
50179
50268
|
return {
|
|
@@ -50223,7 +50312,7 @@ ${t}
|
|
|
50223
50312
|
})
|
|
50224
50313
|
];
|
|
50225
50314
|
}
|
|
50226
|
-
}),
|
|
50315
|
+
}), sae = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, oae = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, lae = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, cae = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, uae = tb.create({
|
|
50227
50316
|
name: "italic",
|
|
50228
50317
|
addOptions() {
|
|
50229
50318
|
return {
|
|
@@ -50270,11 +50359,11 @@ ${t}
|
|
|
50270
50359
|
addInputRules() {
|
|
50271
50360
|
return [
|
|
50272
50361
|
H_({
|
|
50273
|
-
find:
|
|
50362
|
+
find: sae,
|
|
50274
50363
|
type: this.type
|
|
50275
50364
|
}),
|
|
50276
50365
|
H_({
|
|
50277
|
-
find:
|
|
50366
|
+
find: lae,
|
|
50278
50367
|
type: this.type
|
|
50279
50368
|
})
|
|
50280
50369
|
];
|
|
@@ -50282,28 +50371,28 @@ ${t}
|
|
|
50282
50371
|
addPasteRules() {
|
|
50283
50372
|
return [
|
|
50284
50373
|
S0({
|
|
50285
|
-
find:
|
|
50374
|
+
find: oae,
|
|
50286
50375
|
type: this.type
|
|
50287
50376
|
}),
|
|
50288
50377
|
S0({
|
|
50289
|
-
find:
|
|
50378
|
+
find: cae,
|
|
50290
50379
|
type: this.type
|
|
50291
50380
|
})
|
|
50292
50381
|
];
|
|
50293
50382
|
}
|
|
50294
50383
|
});
|
|
50295
|
-
const
|
|
50296
|
-
function
|
|
50384
|
+
const fae = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", dae = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", bO = "numeric", xO = "ascii", SO = "alpha", AS = "asciinumeric", mS = "alphanumeric", EO = "domain", ZP = "emoji", hae = "scheme", pae = "slashscheme", MR = "whitespace";
|
|
50385
|
+
function mae(i, e) {
|
|
50297
50386
|
return i in e || (e[i] = []), e[i];
|
|
50298
50387
|
}
|
|
50299
50388
|
function r0(i, e, t) {
|
|
50300
50389
|
e[bO] && (e[AS] = !0, e[mS] = !0), e[xO] && (e[AS] = !0, e[SO] = !0), e[AS] && (e[mS] = !0), e[SO] && (e[mS] = !0), e[mS] && (e[EO] = !0), e[ZP] && (e[EO] = !0);
|
|
50301
50390
|
for (const n in e) {
|
|
50302
|
-
const r =
|
|
50391
|
+
const r = mae(n, t);
|
|
50303
50392
|
r.indexOf(i) < 0 && r.push(i);
|
|
50304
50393
|
}
|
|
50305
50394
|
}
|
|
50306
|
-
function
|
|
50395
|
+
function gae(i, e) {
|
|
50307
50396
|
const t = {};
|
|
50308
50397
|
for (const n in e)
|
|
50309
50398
|
e[n].indexOf(i) >= 0 && (t[n] = !0);
|
|
@@ -50425,7 +50514,7 @@ oo.prototype = {
|
|
|
50425
50514
|
if (u ? (c = new oo(), Object.assign(c.j, u.j), c.jr.push.apply(c.jr, u.jr), c.jd = u.jd, c.t = u.t) : c = new oo(), o) {
|
|
50426
50515
|
if (n)
|
|
50427
50516
|
if (c.t && typeof c.t == "string") {
|
|
50428
|
-
const h = Object.assign(
|
|
50517
|
+
const h = Object.assign(gae(c.t, n), t);
|
|
50429
50518
|
r0(o, h, n);
|
|
50430
50519
|
} else t && r0(o, t, n);
|
|
50431
50520
|
c.t = o;
|
|
@@ -50433,7 +50522,7 @@ oo.prototype = {
|
|
|
50433
50522
|
return r.j[i] = c, c;
|
|
50434
50523
|
}
|
|
50435
50524
|
};
|
|
50436
|
-
const Sn = (i, e, t, n, r) => i.ta(e, t, n, r), lr = (i, e, t, n, r) => i.tr(e, t, n, r),
|
|
50525
|
+
const Sn = (i, e, t, n, r) => i.ta(e, t, n, r), lr = (i, e, t, n, r) => i.tr(e, t, n, r), DI = (i, e, t, n, r) => i.ts(e, t, n, r), rt = (i, e, t, n, r) => i.tt(e, t, n, r), Sd = "WORD", TO = "UWORD", KP = "ASCIINUMERICAL", JP = "ALPHANUMERICAL", lE = "LOCALHOST", MO = "TLD", wO = "UTLD", Zw = "SCHEME", c_ = "SLASH_SCHEME", o4 = "NUM", AO = "WS", l4 = "NL", CS = "OPENBRACE", RS = "CLOSEBRACE", OA = "OPENBRACKET", LA = "CLOSEBRACKET", NA = "OPENPAREN", kA = "CLOSEPAREN", UA = "OPENANGLEBRACKET", IA = "CLOSEANGLEBRACKET", zA = "FULLWIDTHLEFTPAREN", BA = "FULLWIDTHRIGHTPAREN", PA = "LEFTCORNERBRACKET", FA = "RIGHTCORNERBRACKET", HA = "LEFTWHITECORNERBRACKET", VA = "RIGHTWHITECORNERBRACKET", GA = "FULLWIDTHLESSTHAN", jA = "FULLWIDTHGREATERTHAN", XA = "AMPERSAND", qA = "APOSTROPHE", $A = "ASTERISK", Ep = "AT", YA = "BACKSLASH", WA = "BACKTICK", ZA = "CARET", wp = "COLON", c4 = "COMMA", KA = "DOLLAR", Fu = "DOT", JA = "EQUALS", u4 = "EXCLAMATION", Ql = "HYPHEN", DS = "PERCENT", QA = "PIPE", e2 = "PLUS", t2 = "POUND", OS = "QUERY", f4 = "QUOTE", QP = "FULLWIDTHMIDDLEDOT", d4 = "SEMI", Hu = "SLASH", LS = "TILDE", n2 = "UNDERSCORE", e7 = "EMOJI", i2 = "SYM";
|
|
50437
50526
|
var t7 = /* @__PURE__ */ Object.freeze({
|
|
50438
50527
|
__proto__: null,
|
|
50439
50528
|
ALPHANUMERICAL: JP,
|
|
@@ -50492,14 +50581,14 @@ var t7 = /* @__PURE__ */ Object.freeze({
|
|
|
50492
50581
|
WORD: Sd,
|
|
50493
50582
|
WS: AO
|
|
50494
50583
|
});
|
|
50495
|
-
const bd = /[a-z]/, iS = new RegExp("\\p{L}", "u"), wR = new RegExp("\\p{Emoji}", "u"), xd = /\d/, AR = /\s/,
|
|
50496
|
-
`,
|
|
50584
|
+
const bd = /[a-z]/, iS = new RegExp("\\p{L}", "u"), wR = new RegExp("\\p{Emoji}", "u"), xd = /\d/, AR = /\s/, OI = "\r", CR = `
|
|
50585
|
+
`, yae = "️", vae = "", RR = "";
|
|
50497
50586
|
let Cw = null, Rw = null;
|
|
50498
|
-
function
|
|
50587
|
+
function _ae(i = []) {
|
|
50499
50588
|
const e = {};
|
|
50500
50589
|
oo.groups = e;
|
|
50501
50590
|
const t = new oo();
|
|
50502
|
-
Cw == null && (Cw =
|
|
50591
|
+
Cw == null && (Cw = LI(fae)), Rw == null && (Rw = LI(dae)), rt(t, "'", qA), rt(t, "{", CS), rt(t, "}", RS), rt(t, "[", OA), rt(t, "]", LA), rt(t, "(", NA), rt(t, ")", kA), rt(t, "<", UA), rt(t, ">", IA), rt(t, "(", zA), rt(t, ")", BA), rt(t, "「", PA), rt(t, "」", FA), rt(t, "『", HA), rt(t, "』", VA), rt(t, "<", GA), rt(t, ">", jA), rt(t, "&", XA), rt(t, "*", $A), rt(t, "@", Ep), rt(t, "`", WA), rt(t, "^", ZA), rt(t, ":", wp), rt(t, ",", c4), rt(t, "$", KA), rt(t, ".", Fu), rt(t, "=", JA), rt(t, "!", u4), rt(t, "-", Ql), rt(t, "%", DS), rt(t, "|", QA), rt(t, "+", e2), rt(t, "#", t2), rt(t, "?", OS), rt(t, '"', f4), rt(t, "/", Hu), rt(t, ";", d4), rt(t, "~", LS), rt(t, "_", n2), rt(t, "\\", YA), rt(t, "・", QP);
|
|
50503
50592
|
const n = lr(t, xd, o4, {
|
|
50504
50593
|
[bO]: !0
|
|
50505
50594
|
});
|
|
@@ -50518,17 +50607,17 @@ function mae(i = []) {
|
|
|
50518
50607
|
lr(u, bd), lr(u, xd, o), lr(u, iS, u), lr(o, xd, o), lr(o, bd), lr(o, iS, o);
|
|
50519
50608
|
const h = rt(t, CR, l4, {
|
|
50520
50609
|
[MR]: !0
|
|
50521
|
-
}), m = rt(t,
|
|
50610
|
+
}), m = rt(t, OI, AO, {
|
|
50522
50611
|
[MR]: !0
|
|
50523
50612
|
}), _ = lr(t, AR, AO, {
|
|
50524
50613
|
[MR]: !0
|
|
50525
50614
|
});
|
|
50526
|
-
rt(t, RR, _), rt(m, CR, h), rt(m, RR, _), lr(m, AR, _), rt(_,
|
|
50615
|
+
rt(t, RR, _), rt(m, CR, h), rt(m, RR, _), lr(m, AR, _), rt(_, OI), rt(_, CR), lr(_, AR, _), rt(_, RR, _);
|
|
50527
50616
|
const p = lr(t, wR, e7, {
|
|
50528
50617
|
[ZP]: !0
|
|
50529
50618
|
});
|
|
50530
|
-
rt(p, "#"), lr(p, wR, p), rt(p,
|
|
50531
|
-
const v = rt(p,
|
|
50619
|
+
rt(p, "#"), lr(p, wR, p), rt(p, yae, p);
|
|
50620
|
+
const v = rt(p, vae);
|
|
50532
50621
|
rt(v, "#"), lr(v, wR, p);
|
|
50533
50622
|
const x = [[bd, c], [xd, r]], T = [[bd, null], [iS, u], [xd, o]];
|
|
50534
50623
|
for (let A = 0; A < Cw.length; A++)
|
|
@@ -50550,13 +50639,13 @@ function mae(i = []) {
|
|
|
50550
50639
|
}, e), i = i.sort((A, M) => A[0] > M[0] ? 1 : -1);
|
|
50551
50640
|
for (let A = 0; A < i.length; A++) {
|
|
50552
50641
|
const M = i[A][0], L = i[A][1] ? {
|
|
50553
|
-
[
|
|
50642
|
+
[hae]: !0
|
|
50554
50643
|
} : {
|
|
50555
|
-
[
|
|
50644
|
+
[pae]: !0
|
|
50556
50645
|
};
|
|
50557
|
-
M.indexOf("-") >= 0 ? L[EO] = !0 : bd.test(M) ? xd.test(M) ? L[AS] = !0 : L[xO] = !0 : L[bO] = !0,
|
|
50646
|
+
M.indexOf("-") >= 0 ? L[EO] = !0 : bd.test(M) ? xd.test(M) ? L[AS] = !0 : L[xO] = !0 : L[bO] = !0, DI(t, M, M, L);
|
|
50558
50647
|
}
|
|
50559
|
-
return
|
|
50648
|
+
return DI(t, "localhost", lE, {
|
|
50560
50649
|
ascii: !0
|
|
50561
50650
|
}), t.jd = new oo(i2), {
|
|
50562
50651
|
start: t,
|
|
@@ -50566,7 +50655,7 @@ function mae(i = []) {
|
|
|
50566
50655
|
};
|
|
50567
50656
|
}
|
|
50568
50657
|
function n7(i, e) {
|
|
50569
|
-
const t =
|
|
50658
|
+
const t = bae(e.replace(/[A-Z]/g, (u) => u.toLowerCase())), n = t.length, r = [];
|
|
50570
50659
|
let o = 0, c = 0;
|
|
50571
50660
|
for (; c < n; ) {
|
|
50572
50661
|
let u = i, h = null, m = 0, _ = null, p = -1, v = -1;
|
|
@@ -50585,7 +50674,7 @@ function n7(i, e) {
|
|
|
50585
50674
|
}
|
|
50586
50675
|
return r;
|
|
50587
50676
|
}
|
|
50588
|
-
function
|
|
50677
|
+
function bae(i) {
|
|
50589
50678
|
const e = [], t = i.length;
|
|
50590
50679
|
let n = 0;
|
|
50591
50680
|
for (; n < t; ) {
|
|
@@ -50603,7 +50692,7 @@ function xp(i, e, t, n, r) {
|
|
|
50603
50692
|
}
|
|
50604
50693
|
return o = new oo(t), o.jr = r.slice(), i.j[e[c - 1]] = o, o;
|
|
50605
50694
|
}
|
|
50606
|
-
function
|
|
50695
|
+
function LI(i) {
|
|
50607
50696
|
const e = [], t = [];
|
|
50608
50697
|
let n = 0, r = "0123456789";
|
|
50609
50698
|
for (; n < i.length; ) {
|
|
@@ -50623,8 +50712,8 @@ function OI(i) {
|
|
|
50623
50712
|
const cE = {
|
|
50624
50713
|
defaultProtocol: "http",
|
|
50625
50714
|
events: null,
|
|
50626
|
-
format:
|
|
50627
|
-
formatHref:
|
|
50715
|
+
format: NI,
|
|
50716
|
+
formatHref: NI,
|
|
50628
50717
|
nl2br: !1,
|
|
50629
50718
|
tagName: "a",
|
|
50630
50719
|
target: null,
|
|
@@ -50706,7 +50795,7 @@ h4.prototype = {
|
|
|
50706
50795
|
return (this.get("render", null, i) || this.defaultRender)(e, i.t, i);
|
|
50707
50796
|
}
|
|
50708
50797
|
};
|
|
50709
|
-
function
|
|
50798
|
+
function NI(i) {
|
|
50710
50799
|
return i;
|
|
50711
50800
|
}
|
|
50712
50801
|
function i7(i, e) {
|
|
@@ -50826,12 +50915,12 @@ function I2(i, e) {
|
|
|
50826
50915
|
t.prototype[n] = e[n];
|
|
50827
50916
|
return t.t = i, t;
|
|
50828
50917
|
}
|
|
50829
|
-
const
|
|
50918
|
+
const kI = I2("email", {
|
|
50830
50919
|
isLink: !0,
|
|
50831
50920
|
toHref() {
|
|
50832
50921
|
return "mailto:" + this.toString();
|
|
50833
50922
|
}
|
|
50834
|
-
}),
|
|
50923
|
+
}), UI = I2("text"), xae = I2("nl"), Dw = I2("url", {
|
|
50835
50924
|
isLink: !0,
|
|
50836
50925
|
/**
|
|
50837
50926
|
Lowercases relevant parts of the domain and adds the protocol if
|
|
@@ -50852,7 +50941,7 @@ const NI = I2("email", {
|
|
|
50852
50941
|
return i.length >= 2 && i[0].t !== lE && i[1].t === wp;
|
|
50853
50942
|
}
|
|
50854
50943
|
}), Zl = (i) => new oo(i);
|
|
50855
|
-
function
|
|
50944
|
+
function Sae({
|
|
50856
50945
|
groups: i
|
|
50857
50946
|
}) {
|
|
50858
50947
|
const e = i.domain.concat([XA, $A, Ep, YA, WA, ZA, KA, JA, Ql, o4, DS, QA, e2, t2, Hu, i2, LS, n2]), t = [qA, wp, c4, Fu, u4, DS, OS, f4, d4, UA, IA, CS, RS, LA, OA, NA, kA, zA, BA, PA, FA, HA, VA, GA, jA], n = [XA, qA, $A, YA, WA, ZA, KA, JA, Ql, CS, RS, DS, QA, e2, t2, OS, Hu, i2, LS, n2], r = Zl(), o = rt(r, LS);
|
|
@@ -50867,12 +50956,12 @@ function vae({
|
|
|
50867
50956
|
Sn(m, i.domain, p), Sn(p, i.domain, p);
|
|
50868
50957
|
const v = rt(p, Fu);
|
|
50869
50958
|
Sn(v, i.domain, p);
|
|
50870
|
-
const x = Zl(
|
|
50959
|
+
const x = Zl(kI);
|
|
50871
50960
|
Sn(v, i.tld, x), Sn(v, i.utld, x), rt(m, lE, x);
|
|
50872
50961
|
const T = rt(p, Ql);
|
|
50873
50962
|
rt(T, Ql, T), Sn(T, i.domain, p), Sn(x, i.domain, p), rt(x, Fu, v), rt(x, Ql, T);
|
|
50874
50963
|
const A = rt(x, wp);
|
|
50875
|
-
Sn(A, i.numeric,
|
|
50964
|
+
Sn(A, i.numeric, kI);
|
|
50876
50965
|
const M = rt(c, Ql), w = rt(c, Fu);
|
|
50877
50966
|
rt(M, Ql, M), Sn(M, i.domain, c), Sn(w, n, o), Sn(w, i.domain, c);
|
|
50878
50967
|
const L = Zl(Dw);
|
|
@@ -50909,12 +50998,12 @@ function vae({
|
|
|
50909
50998
|
const K = Zl();
|
|
50910
50999
|
Sn(me, t), Sn(q, e, q), Sn(q, t, K), Sn(K, e, q), Sn(K, t, K), rt(q, fe, z), rt(K, fe, z);
|
|
50911
51000
|
}
|
|
50912
|
-
return rt(r, lE, L), rt(r, l4,
|
|
51001
|
+
return rt(r, lE, L), rt(r, l4, xae), {
|
|
50913
51002
|
start: r,
|
|
50914
51003
|
tokens: t7
|
|
50915
51004
|
};
|
|
50916
51005
|
}
|
|
50917
|
-
function
|
|
51006
|
+
function Eae(i, e, t) {
|
|
50918
51007
|
let n = t.length, r = 0, o = [], c = [];
|
|
50919
51008
|
for (; r < n; ) {
|
|
50920
51009
|
let u = i, h = null, m = null, _ = 0, p = null, v = -1;
|
|
@@ -50925,19 +51014,19 @@ function _ae(i, e, t) {
|
|
|
50925
51014
|
if (v < 0)
|
|
50926
51015
|
r -= _, r < n && (c.push(t[r]), r++);
|
|
50927
51016
|
else {
|
|
50928
|
-
c.length > 0 && (o.push(DR(
|
|
51017
|
+
c.length > 0 && (o.push(DR(UI, e, c)), c = []), r -= v, _ -= v;
|
|
50929
51018
|
const x = p.t, T = t.slice(r - _, r);
|
|
50930
51019
|
o.push(DR(x, e, T));
|
|
50931
51020
|
}
|
|
50932
51021
|
}
|
|
50933
|
-
return c.length > 0 && o.push(DR(
|
|
51022
|
+
return c.length > 0 && o.push(DR(UI, e, c)), o;
|
|
50934
51023
|
}
|
|
50935
51024
|
function DR(i, e, t) {
|
|
50936
51025
|
const n = t[0].s, r = t[t.length - 1].e, o = e.slice(n, r);
|
|
50937
51026
|
return new i(o, t);
|
|
50938
51027
|
}
|
|
50939
|
-
const
|
|
50940
|
-
}),
|
|
51028
|
+
const Tae = typeof console < "u" && console && console.warn || (() => {
|
|
51029
|
+
}), Mae = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", Ii = {
|
|
50941
51030
|
scanner: null,
|
|
50942
51031
|
parser: null,
|
|
50943
51032
|
tokenQueue: [],
|
|
@@ -50945,24 +51034,24 @@ const bae = typeof console < "u" && console && console.warn || (() => {
|
|
|
50945
51034
|
customSchemes: [],
|
|
50946
51035
|
initialized: !1
|
|
50947
51036
|
};
|
|
50948
|
-
function
|
|
51037
|
+
function wae() {
|
|
50949
51038
|
return oo.groups = {}, Ii.scanner = null, Ii.parser = null, Ii.tokenQueue = [], Ii.pluginQueue = [], Ii.customSchemes = [], Ii.initialized = !1, Ii;
|
|
50950
51039
|
}
|
|
50951
|
-
function
|
|
50952
|
-
if (Ii.initialized &&
|
|
51040
|
+
function II(i, e = !1) {
|
|
51041
|
+
if (Ii.initialized && Tae(`linkifyjs: already initialized - will not register custom scheme "${i}" ${Mae}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(i))
|
|
50953
51042
|
throw new Error(`linkifyjs: incorrect scheme format.
|
|
50954
51043
|
1. Must only contain digits, lowercase ASCII letters or "-"
|
|
50955
51044
|
2. Cannot start or end with "-"
|
|
50956
51045
|
3. "-" cannot repeat`);
|
|
50957
51046
|
Ii.customSchemes.push([i, e]);
|
|
50958
51047
|
}
|
|
50959
|
-
function
|
|
50960
|
-
Ii.scanner =
|
|
51048
|
+
function Aae() {
|
|
51049
|
+
Ii.scanner = _ae(Ii.customSchemes);
|
|
50961
51050
|
for (let i = 0; i < Ii.tokenQueue.length; i++)
|
|
50962
51051
|
Ii.tokenQueue[i][1]({
|
|
50963
51052
|
scanner: Ii.scanner
|
|
50964
51053
|
});
|
|
50965
|
-
Ii.parser =
|
|
51054
|
+
Ii.parser = Sae(Ii.scanner.tokens);
|
|
50966
51055
|
for (let i = 0; i < Ii.pluginQueue.length; i++)
|
|
50967
51056
|
Ii.pluginQueue[i][1]({
|
|
50968
51057
|
scanner: Ii.scanner,
|
|
@@ -50971,7 +51060,7 @@ function Eae() {
|
|
|
50971
51060
|
return Ii.initialized = !0, Ii;
|
|
50972
51061
|
}
|
|
50973
51062
|
function p4(i) {
|
|
50974
|
-
return Ii.initialized ||
|
|
51063
|
+
return Ii.initialized || Aae(), Eae(Ii.parser.start, i, n7(Ii.scanner.start, i));
|
|
50975
51064
|
}
|
|
50976
51065
|
p4.scan = n7;
|
|
50977
51066
|
function r7(i, e = null, t = null) {
|
|
@@ -50987,11 +51076,11 @@ function r7(i, e = null, t = null) {
|
|
|
50987
51076
|
}
|
|
50988
51077
|
return o;
|
|
50989
51078
|
}
|
|
50990
|
-
var m4 = "[\0- -\u2029 ]",
|
|
50991
|
-
function
|
|
51079
|
+
var m4 = "[\0- -\u2029 ]", Cae = new RegExp(m4), Rae = new RegExp(`${m4}$`), Dae = new RegExp(m4, "g");
|
|
51080
|
+
function Oae(i) {
|
|
50992
51081
|
return i.length === 1 ? i[0].isLink : i.length === 3 && i[1].isLink ? ["()", "[]"].includes(i[0].value + i[2].value) : !1;
|
|
50993
51082
|
}
|
|
50994
|
-
function
|
|
51083
|
+
function Lae(i) {
|
|
50995
51084
|
return new $r({
|
|
50996
51085
|
key: new la("autolink"),
|
|
50997
51086
|
appendTransaction: (e, t, n) => {
|
|
@@ -51011,19 +51100,19 @@ function Cae(i) {
|
|
|
51011
51100
|
);
|
|
51012
51101
|
else if (_.length) {
|
|
51013
51102
|
const x = n.doc.textBetween(m.from, m.to, " ", " ");
|
|
51014
|
-
if (!
|
|
51103
|
+
if (!Rae.test(x))
|
|
51015
51104
|
return;
|
|
51016
51105
|
p = _[0], v = n.doc.textBetween(p.pos, m.to, void 0, " ");
|
|
51017
51106
|
}
|
|
51018
51107
|
if (p && v) {
|
|
51019
|
-
const x = v.split(
|
|
51108
|
+
const x = v.split(Cae).filter(Boolean);
|
|
51020
51109
|
if (x.length <= 0)
|
|
51021
51110
|
return !1;
|
|
51022
51111
|
const T = x[x.length - 1], A = p.pos + v.lastIndexOf(T);
|
|
51023
51112
|
if (!T)
|
|
51024
51113
|
return !1;
|
|
51025
51114
|
const M = p4(T).map((w) => w.toObject(i.defaultProtocol));
|
|
51026
|
-
if (!
|
|
51115
|
+
if (!Oae(M))
|
|
51027
51116
|
return !1;
|
|
51028
51117
|
M.filter((w) => w.isLink).map((w) => ({
|
|
51029
51118
|
...w,
|
|
@@ -51044,7 +51133,7 @@ function Cae(i) {
|
|
|
51044
51133
|
}
|
|
51045
51134
|
});
|
|
51046
51135
|
}
|
|
51047
|
-
function
|
|
51136
|
+
function Nae(i) {
|
|
51048
51137
|
return new $r({
|
|
51049
51138
|
key: new la("handleClickLink"),
|
|
51050
51139
|
props: {
|
|
@@ -51074,7 +51163,7 @@ function Rae(i) {
|
|
|
51074
51163
|
}
|
|
51075
51164
|
});
|
|
51076
51165
|
}
|
|
51077
|
-
function
|
|
51166
|
+
function kae(i) {
|
|
51078
51167
|
return new $r({
|
|
51079
51168
|
key: new la("handlePasteLink"),
|
|
51080
51169
|
props: {
|
|
@@ -51101,7 +51190,7 @@ function Xg(i, e) {
|
|
|
51101
51190
|
return e && e.forEach((n) => {
|
|
51102
51191
|
const r = typeof n == "string" ? n : n.scheme;
|
|
51103
51192
|
r && t.push(r);
|
|
51104
|
-
}), !i || i.replace(
|
|
51193
|
+
}), !i || i.replace(Dae, "").match(
|
|
51105
51194
|
new RegExp(
|
|
51106
51195
|
// eslint-disable-next-line no-useless-escape
|
|
51107
51196
|
`^(?:(?:${t.join("|")}):|[^a-z]|[a-z0-9+.-]+(?:[^a-z+.-:]|$))`,
|
|
@@ -51109,7 +51198,7 @@ function Xg(i, e) {
|
|
|
51109
51198
|
)
|
|
51110
51199
|
);
|
|
51111
51200
|
}
|
|
51112
|
-
var
|
|
51201
|
+
var Uae = tb.create({
|
|
51113
51202
|
name: "link",
|
|
51114
51203
|
priority: 1e3,
|
|
51115
51204
|
keepOnSplit: !1,
|
|
@@ -51117,14 +51206,14 @@ var Oae = tb.create({
|
|
|
51117
51206
|
onCreate() {
|
|
51118
51207
|
this.options.validate && !this.options.shouldAutoLink && (this.options.shouldAutoLink = this.options.validate, console.warn("The `validate` option is deprecated. Rename to the `shouldAutoLink` option instead.")), this.options.protocols.forEach((i) => {
|
|
51119
51208
|
if (typeof i == "string") {
|
|
51120
|
-
|
|
51209
|
+
II(i);
|
|
51121
51210
|
return;
|
|
51122
51211
|
}
|
|
51123
|
-
|
|
51212
|
+
II(i.scheme, i.optionalSlashes);
|
|
51124
51213
|
});
|
|
51125
51214
|
},
|
|
51126
51215
|
onDestroy() {
|
|
51127
|
-
|
|
51216
|
+
wae();
|
|
51128
51217
|
},
|
|
51129
51218
|
inclusive() {
|
|
51130
51219
|
return this.options.autolink;
|
|
@@ -51266,7 +51355,7 @@ var Oae = tb.create({
|
|
|
51266
51355
|
addProseMirrorPlugins() {
|
|
51267
51356
|
const i = [], { protocols: e, defaultProtocol: t } = this.options;
|
|
51268
51357
|
return this.options.autolink && i.push(
|
|
51269
|
-
|
|
51358
|
+
Lae({
|
|
51270
51359
|
type: this.type,
|
|
51271
51360
|
defaultProtocol: this.options.defaultProtocol,
|
|
51272
51361
|
validate: (n) => this.options.isAllowedUri(n, {
|
|
@@ -51277,14 +51366,14 @@ var Oae = tb.create({
|
|
|
51277
51366
|
shouldAutoLink: this.options.shouldAutoLink
|
|
51278
51367
|
})
|
|
51279
51368
|
), i.push(
|
|
51280
|
-
|
|
51369
|
+
Nae({
|
|
51281
51370
|
type: this.type,
|
|
51282
51371
|
editor: this.editor,
|
|
51283
51372
|
openOnClick: this.options.openOnClick === "whenNotEditable" ? !0 : this.options.openOnClick,
|
|
51284
51373
|
enableClickSelection: this.options.enableClickSelection
|
|
51285
51374
|
})
|
|
51286
51375
|
), this.options.linkOnPaste && i.push(
|
|
51287
|
-
|
|
51376
|
+
kae({
|
|
51288
51377
|
editor: this.editor,
|
|
51289
51378
|
defaultProtocol: this.options.defaultProtocol,
|
|
51290
51379
|
type: this.type,
|
|
@@ -51292,10 +51381,10 @@ var Oae = tb.create({
|
|
|
51292
51381
|
})
|
|
51293
51382
|
), i;
|
|
51294
51383
|
}
|
|
51295
|
-
}),
|
|
51384
|
+
}), Iae = Object.defineProperty, zae = (i, e) => {
|
|
51296
51385
|
for (var t in e)
|
|
51297
|
-
|
|
51298
|
-
},
|
|
51386
|
+
Iae(i, t, { get: e[t], enumerable: !0 });
|
|
51387
|
+
}, Bae = "listItem", zI = "textStyle", BI = /^\s*([-+*])\s$/, a7 = ll.create({
|
|
51299
51388
|
name: "bulletList",
|
|
51300
51389
|
addOptions() {
|
|
51301
51390
|
return {
|
|
@@ -51327,7 +51416,7 @@ var Oae = tb.create({
|
|
|
51327
51416
|
},
|
|
51328
51417
|
addCommands() {
|
|
51329
51418
|
return {
|
|
51330
|
-
toggleBulletList: () => ({ commands: i, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(
|
|
51419
|
+
toggleBulletList: () => ({ commands: i, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(Bae, this.editor.getAttributes(zI)).run() : i.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
51331
51420
|
};
|
|
51332
51421
|
},
|
|
51333
51422
|
addKeyboardShortcuts() {
|
|
@@ -51337,15 +51426,15 @@ var Oae = tb.create({
|
|
|
51337
51426
|
},
|
|
51338
51427
|
addInputRules() {
|
|
51339
51428
|
let i = V_({
|
|
51340
|
-
find:
|
|
51429
|
+
find: BI,
|
|
51341
51430
|
type: this.type
|
|
51342
51431
|
});
|
|
51343
51432
|
return (this.options.keepMarks || this.options.keepAttributes) && (i = V_({
|
|
51344
|
-
find:
|
|
51433
|
+
find: BI,
|
|
51345
51434
|
type: this.type,
|
|
51346
51435
|
keepMarks: this.options.keepMarks,
|
|
51347
51436
|
keepAttributes: this.options.keepAttributes,
|
|
51348
|
-
getAttributes: () => this.editor.getAttributes(
|
|
51437
|
+
getAttributes: () => this.editor.getAttributes(zI),
|
|
51349
51438
|
editor: this.editor
|
|
51350
51439
|
})), [i];
|
|
51351
51440
|
}
|
|
@@ -51419,14 +51508,14 @@ var Oae = tb.create({
|
|
|
51419
51508
|
"Shift-Tab": () => this.editor.commands.liftListItem(this.name)
|
|
51420
51509
|
};
|
|
51421
51510
|
}
|
|
51422
|
-
}),
|
|
51423
|
-
|
|
51511
|
+
}), Pae = {};
|
|
51512
|
+
zae(Pae, {
|
|
51424
51513
|
findListItemPos: () => SE,
|
|
51425
51514
|
getNextListDepth: () => g4,
|
|
51426
51515
|
handleBackspace: () => CO,
|
|
51427
51516
|
handleDelete: () => RO,
|
|
51428
51517
|
hasListBefore: () => o7,
|
|
51429
|
-
hasListItemAfter: () =>
|
|
51518
|
+
hasListItemAfter: () => Fae,
|
|
51430
51519
|
hasListItemBefore: () => l7,
|
|
51431
51520
|
listItemHasSubList: () => c7,
|
|
51432
51521
|
nextListIsDeeper: () => u7,
|
|
@@ -51493,7 +51582,7 @@ var SE = (i, e) => {
|
|
|
51493
51582
|
return !1;
|
|
51494
51583
|
const { selection: t } = i.state, { $from: n, $to: r } = t;
|
|
51495
51584
|
return !t.empty && n.sameParent(r) ? !1 : u7(e, i.state) ? i.chain().focus(i.state.selection.from + 4).lift(e).joinBackward().run() : f7(e, i.state) ? i.chain().joinForward().joinBackward().run() : i.commands.joinItemForward();
|
|
51496
|
-
},
|
|
51585
|
+
}, Fae = (i, e) => {
|
|
51497
51586
|
var t;
|
|
51498
51587
|
const { $anchor: n } = e.selection, r = e.doc.resolve(n.pos - n.parentOffset - 2);
|
|
51499
51588
|
return !(r.index() === r.parent.childCount - 1 || ((t = r.nodeAfter) == null ? void 0 : t.type.name) !== i);
|
|
@@ -51541,12 +51630,12 @@ var SE = (i, e) => {
|
|
|
51541
51630
|
}
|
|
51542
51631
|
};
|
|
51543
51632
|
}
|
|
51544
|
-
}),
|
|
51545
|
-
function
|
|
51633
|
+
}), PI = /^(\s*)(\d+)\.\s+(.*)$/, Hae = /^\s/;
|
|
51634
|
+
function Vae(i) {
|
|
51546
51635
|
const e = [];
|
|
51547
51636
|
let t = 0, n = 0;
|
|
51548
51637
|
for (; t < i.length; ) {
|
|
51549
|
-
const r = i[t], o = r.match(
|
|
51638
|
+
const r = i[t], o = r.match(PI);
|
|
51550
51639
|
if (!o)
|
|
51551
51640
|
break;
|
|
51552
51641
|
const [, c, u, h] = o, m = c.length;
|
|
@@ -51554,12 +51643,12 @@ function Bae(i) {
|
|
|
51554
51643
|
const v = [r];
|
|
51555
51644
|
for (; p < i.length; ) {
|
|
51556
51645
|
const x = i[p];
|
|
51557
|
-
if (x.match(
|
|
51646
|
+
if (x.match(PI))
|
|
51558
51647
|
break;
|
|
51559
51648
|
if (x.trim() === "")
|
|
51560
51649
|
v.push(x), _ += `
|
|
51561
51650
|
`, p += 1;
|
|
51562
|
-
else if (x.match(
|
|
51651
|
+
else if (x.match(Hae))
|
|
51563
51652
|
v.push(x), _ += `
|
|
51564
51653
|
${x.slice(m + 2)}`, p += 1;
|
|
51565
51654
|
else
|
|
@@ -51620,7 +51709,7 @@ function h7(i, e, t) {
|
|
|
51620
51709
|
}
|
|
51621
51710
|
return r;
|
|
51622
51711
|
}
|
|
51623
|
-
function
|
|
51712
|
+
function Gae(i, e) {
|
|
51624
51713
|
return i.map((t) => {
|
|
51625
51714
|
if (t.type !== "list_item")
|
|
51626
51715
|
return e.parseChildren([t])[0];
|
|
@@ -51644,7 +51733,7 @@ function Pae(i, e) {
|
|
|
51644
51733
|
};
|
|
51645
51734
|
});
|
|
51646
51735
|
}
|
|
51647
|
-
var
|
|
51736
|
+
var jae = "listItem", FI = "textStyle", HI = /^(\d+)\.\s$/, p7 = ll.create({
|
|
51648
51737
|
name: "orderedList",
|
|
51649
51738
|
addOptions() {
|
|
51650
51739
|
return {
|
|
@@ -51685,7 +51774,7 @@ var Fae = "listItem", PI = "textStyle", FI = /^(\d+)\.\s$/, p7 = ll.create({
|
|
|
51685
51774
|
parseMarkdown: (i, e) => {
|
|
51686
51775
|
if (i.type !== "list" || !i.ordered)
|
|
51687
51776
|
return [];
|
|
51688
|
-
const t = i.start || 1, n = i.items ?
|
|
51777
|
+
const t = i.start || 1, n = i.items ? Gae(i.items, e) : [];
|
|
51689
51778
|
return t !== 1 ? {
|
|
51690
51779
|
type: "orderedList",
|
|
51691
51780
|
attrs: { start: t },
|
|
@@ -51707,7 +51796,7 @@ var Fae = "listItem", PI = "textStyle", FI = /^(\d+)\.\s$/, p7 = ll.create({
|
|
|
51707
51796
|
tokenize: (i, e, t) => {
|
|
51708
51797
|
var n;
|
|
51709
51798
|
const r = i.split(`
|
|
51710
|
-
`), [o, c] =
|
|
51799
|
+
`), [o, c] = Vae(r);
|
|
51711
51800
|
if (o.length === 0)
|
|
51712
51801
|
return;
|
|
51713
51802
|
const u = h7(o, 0, t);
|
|
@@ -51726,7 +51815,7 @@ var Fae = "listItem", PI = "textStyle", FI = /^(\d+)\.\s$/, p7 = ll.create({
|
|
|
51726
51815
|
},
|
|
51727
51816
|
addCommands() {
|
|
51728
51817
|
return {
|
|
51729
|
-
toggleOrderedList: () => ({ commands: i, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(
|
|
51818
|
+
toggleOrderedList: () => ({ commands: i, chain: e }) => this.options.keepAttributes ? e().toggleList(this.name, this.options.itemTypeName, this.options.keepMarks).updateAttributes(jae, this.editor.getAttributes(FI)).run() : i.toggleList(this.name, this.options.itemTypeName, this.options.keepMarks)
|
|
51730
51819
|
};
|
|
51731
51820
|
},
|
|
51732
51821
|
addKeyboardShortcuts() {
|
|
@@ -51736,22 +51825,22 @@ var Fae = "listItem", PI = "textStyle", FI = /^(\d+)\.\s$/, p7 = ll.create({
|
|
|
51736
51825
|
},
|
|
51737
51826
|
addInputRules() {
|
|
51738
51827
|
let i = V_({
|
|
51739
|
-
find:
|
|
51828
|
+
find: HI,
|
|
51740
51829
|
type: this.type,
|
|
51741
51830
|
getAttributes: (e) => ({ start: +e[1] }),
|
|
51742
51831
|
joinPredicate: (e, t) => t.childCount + t.attrs.start === +e[1]
|
|
51743
51832
|
});
|
|
51744
51833
|
return (this.options.keepMarks || this.options.keepAttributes) && (i = V_({
|
|
51745
|
-
find:
|
|
51834
|
+
find: HI,
|
|
51746
51835
|
type: this.type,
|
|
51747
51836
|
keepMarks: this.options.keepMarks,
|
|
51748
51837
|
keepAttributes: this.options.keepAttributes,
|
|
51749
|
-
getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(
|
|
51838
|
+
getAttributes: (e) => ({ start: +e[1], ...this.editor.getAttributes(FI) }),
|
|
51750
51839
|
joinPredicate: (e, t) => t.childCount + t.attrs.start === +e[1],
|
|
51751
51840
|
editor: this.editor
|
|
51752
51841
|
})), [i];
|
|
51753
51842
|
}
|
|
51754
|
-
}),
|
|
51843
|
+
}), Xae = /^\s*(\[([( |x])?\])\s$/, qae = ll.create({
|
|
51755
51844
|
name: "taskItem",
|
|
51756
51845
|
addOptions() {
|
|
51757
51846
|
return {
|
|
@@ -51879,7 +51968,7 @@ var Fae = "listItem", PI = "textStyle", FI = /^(\d+)\.\s$/, p7 = ll.create({
|
|
|
51879
51968
|
addInputRules() {
|
|
51880
51969
|
return [
|
|
51881
51970
|
V_({
|
|
51882
|
-
find:
|
|
51971
|
+
find: Xae,
|
|
51883
51972
|
type: this.type,
|
|
51884
51973
|
getAttributes: (i) => ({
|
|
51885
51974
|
checked: i[i.length - 1] === "x"
|
|
@@ -51887,7 +51976,7 @@ var Fae = "listItem", PI = "textStyle", FI = /^(\d+)\.\s$/, p7 = ll.create({
|
|
|
51887
51976
|
})
|
|
51888
51977
|
];
|
|
51889
51978
|
}
|
|
51890
|
-
}),
|
|
51979
|
+
}), $ae = ll.create({
|
|
51891
51980
|
name: "taskList",
|
|
51892
51981
|
addOptions() {
|
|
51893
51982
|
return {
|
|
@@ -52004,10 +52093,10 @@ Tr.create({
|
|
|
52004
52093
|
name: "listKit",
|
|
52005
52094
|
addExtensions() {
|
|
52006
52095
|
const i = [];
|
|
52007
|
-
return this.options.bulletList !== !1 && i.push(a7.configure(this.options.bulletList)), this.options.listItem !== !1 && i.push(s7.configure(this.options.listItem)), this.options.listKeymap !== !1 && i.push(d7.configure(this.options.listKeymap)), this.options.orderedList !== !1 && i.push(p7.configure(this.options.orderedList)), this.options.taskItem !== !1 && i.push(
|
|
52096
|
+
return this.options.bulletList !== !1 && i.push(a7.configure(this.options.bulletList)), this.options.listItem !== !1 && i.push(s7.configure(this.options.listItem)), this.options.listKeymap !== !1 && i.push(d7.configure(this.options.listKeymap)), this.options.orderedList !== !1 && i.push(p7.configure(this.options.orderedList)), this.options.taskItem !== !1 && i.push(qae.configure(this.options.taskItem)), this.options.taskList !== !1 && i.push($ae.configure(this.options.taskList)), i;
|
|
52008
52097
|
}
|
|
52009
52098
|
});
|
|
52010
|
-
var
|
|
52099
|
+
var VI = " ", Yae = " ", Wae = ll.create({
|
|
52011
52100
|
name: "paragraph",
|
|
52012
52101
|
priority: 1e3,
|
|
52013
52102
|
addOptions() {
|
|
@@ -52028,13 +52117,13 @@ var HI = " ", jae = " ", Xae = ll.create({
|
|
|
52028
52117
|
if (t.length === 1 && t[0].type === "image")
|
|
52029
52118
|
return e.parseChildren([t[0]]);
|
|
52030
52119
|
const n = e.parseInline(t);
|
|
52031
|
-
return n.length === 1 && n[0].type === "text" && (n[0].text ===
|
|
52120
|
+
return n.length === 1 && n[0].type === "text" && (n[0].text === VI || n[0].text === Yae) ? e.createNode("paragraph", void 0, []) : e.createNode("paragraph", void 0, n);
|
|
52032
52121
|
},
|
|
52033
52122
|
renderMarkdown: (i, e) => {
|
|
52034
52123
|
if (!i)
|
|
52035
52124
|
return "";
|
|
52036
52125
|
const t = Array.isArray(i.content) ? i.content : [];
|
|
52037
|
-
return t.length === 0 ?
|
|
52126
|
+
return t.length === 0 ? VI : e.renderChildren(t);
|
|
52038
52127
|
},
|
|
52039
52128
|
addCommands() {
|
|
52040
52129
|
return {
|
|
@@ -52046,7 +52135,7 @@ var HI = " ", jae = " ", Xae = ll.create({
|
|
|
52046
52135
|
"Mod-Alt-0": () => this.editor.commands.setParagraph()
|
|
52047
52136
|
};
|
|
52048
52137
|
}
|
|
52049
|
-
}),
|
|
52138
|
+
}), Zae = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, Kae = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, Jae = tb.create({
|
|
52050
52139
|
name: "strike",
|
|
52051
52140
|
addOptions() {
|
|
52052
52141
|
return {
|
|
@@ -52092,7 +52181,7 @@ var HI = " ", jae = " ", Xae = ll.create({
|
|
|
52092
52181
|
addInputRules() {
|
|
52093
52182
|
return [
|
|
52094
52183
|
H_({
|
|
52095
|
-
find:
|
|
52184
|
+
find: Zae,
|
|
52096
52185
|
type: this.type
|
|
52097
52186
|
})
|
|
52098
52187
|
];
|
|
@@ -52100,12 +52189,12 @@ var HI = " ", jae = " ", Xae = ll.create({
|
|
|
52100
52189
|
addPasteRules() {
|
|
52101
52190
|
return [
|
|
52102
52191
|
S0({
|
|
52103
|
-
find:
|
|
52192
|
+
find: Kae,
|
|
52104
52193
|
type: this.type
|
|
52105
52194
|
})
|
|
52106
52195
|
];
|
|
52107
52196
|
}
|
|
52108
|
-
}),
|
|
52197
|
+
}), Qae = ll.create({
|
|
52109
52198
|
name: "text",
|
|
52110
52199
|
group: "inline",
|
|
52111
52200
|
parseMarkdown: (i) => ({
|
|
@@ -52113,7 +52202,7 @@ var HI = " ", jae = " ", Xae = ll.create({
|
|
|
52113
52202
|
text: i.text || ""
|
|
52114
52203
|
}),
|
|
52115
52204
|
renderMarkdown: (i) => i.text || ""
|
|
52116
|
-
}),
|
|
52205
|
+
}), ese = tb.create({
|
|
52117
52206
|
name: "underline",
|
|
52118
52207
|
addOptions() {
|
|
52119
52208
|
return {
|
|
@@ -52174,14 +52263,14 @@ var HI = " ", jae = " ", Xae = ll.create({
|
|
|
52174
52263
|
};
|
|
52175
52264
|
}
|
|
52176
52265
|
});
|
|
52177
|
-
function
|
|
52266
|
+
function tse(i = {}) {
|
|
52178
52267
|
return new $r({
|
|
52179
52268
|
view(e) {
|
|
52180
|
-
return new
|
|
52269
|
+
return new nse(e, i);
|
|
52181
52270
|
}
|
|
52182
52271
|
});
|
|
52183
52272
|
}
|
|
52184
|
-
class
|
|
52273
|
+
class nse {
|
|
52185
52274
|
constructor(e, t) {
|
|
52186
52275
|
var n;
|
|
52187
52276
|
this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (n = t.width) !== null && n !== void 0 ? n : 1, this.color = t.color === !1 ? void 0 : t.color || "black", this.class = t.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((r) => {
|
|
@@ -52294,7 +52383,7 @@ class ur extends Un {
|
|
|
52294
52383
|
*/
|
|
52295
52384
|
static valid(e) {
|
|
52296
52385
|
let t = e.parent;
|
|
52297
|
-
if (t.isTextblock || !
|
|
52386
|
+
if (t.isTextblock || !ise(e) || !rse(e))
|
|
52298
52387
|
return !1;
|
|
52299
52388
|
let n = t.type.spec.allowGapCursor;
|
|
52300
52389
|
if (n != null)
|
|
@@ -52358,7 +52447,7 @@ class y4 {
|
|
|
52358
52447
|
function m7(i) {
|
|
52359
52448
|
return i.isAtom || i.spec.isolating || i.spec.createGapCursor;
|
|
52360
52449
|
}
|
|
52361
|
-
function
|
|
52450
|
+
function ise(i) {
|
|
52362
52451
|
for (let e = i.depth; e >= 0; e--) {
|
|
52363
52452
|
let t = i.index(e), n = i.node(e);
|
|
52364
52453
|
if (t == 0) {
|
|
@@ -52375,7 +52464,7 @@ function Qae(i) {
|
|
|
52375
52464
|
}
|
|
52376
52465
|
return !0;
|
|
52377
52466
|
}
|
|
52378
|
-
function
|
|
52467
|
+
function rse(i) {
|
|
52379
52468
|
for (let e = i.depth; e >= 0; e--) {
|
|
52380
52469
|
let t = i.indexAfter(e), n = i.node(e);
|
|
52381
52470
|
if (t == n.childCount) {
|
|
@@ -52392,20 +52481,20 @@ function ese(i) {
|
|
|
52392
52481
|
}
|
|
52393
52482
|
return !0;
|
|
52394
52483
|
}
|
|
52395
|
-
function
|
|
52484
|
+
function ase() {
|
|
52396
52485
|
return new $r({
|
|
52397
52486
|
props: {
|
|
52398
|
-
decorations:
|
|
52487
|
+
decorations: cse,
|
|
52399
52488
|
createSelectionBetween(i, e, t) {
|
|
52400
52489
|
return e.pos == t.pos && ur.valid(t) ? new ur(t) : null;
|
|
52401
52490
|
},
|
|
52402
|
-
handleClick:
|
|
52403
|
-
handleKeyDown:
|
|
52404
|
-
handleDOMEvents: { beforeinput:
|
|
52491
|
+
handleClick: ose,
|
|
52492
|
+
handleKeyDown: sse,
|
|
52493
|
+
handleDOMEvents: { beforeinput: lse }
|
|
52405
52494
|
}
|
|
52406
52495
|
});
|
|
52407
52496
|
}
|
|
52408
|
-
const
|
|
52497
|
+
const sse = One({
|
|
52409
52498
|
ArrowLeft: Ow("horiz", -1),
|
|
52410
52499
|
ArrowRight: Ow("horiz", 1),
|
|
52411
52500
|
ArrowUp: Ow("vert", -1),
|
|
@@ -52424,7 +52513,7 @@ function Ow(i, e) {
|
|
|
52424
52513
|
return m ? (r && r(n.tr.setSelection(new ur(m))), !0) : !1;
|
|
52425
52514
|
};
|
|
52426
52515
|
}
|
|
52427
|
-
function
|
|
52516
|
+
function ose(i, e, t) {
|
|
52428
52517
|
if (!i || !i.editable)
|
|
52429
52518
|
return !1;
|
|
52430
52519
|
let n = i.state.doc.resolve(e);
|
|
@@ -52433,7 +52522,7 @@ function ise(i, e, t) {
|
|
|
52433
52522
|
let r = i.posAtCoords({ left: t.clientX, top: t.clientY });
|
|
52434
52523
|
return r && r.inside > -1 && Gt.isSelectable(i.state.doc.nodeAt(r.inside)) ? !1 : (i.dispatch(i.state.tr.setSelection(new ur(n))), !0);
|
|
52435
52524
|
}
|
|
52436
|
-
function
|
|
52525
|
+
function lse(i, e) {
|
|
52437
52526
|
if (e.inputType != "insertCompositionText" || !(i.state.selection instanceof ur))
|
|
52438
52527
|
return !1;
|
|
52439
52528
|
let { $from: t } = i.state.selection, n = t.parent.contentMatchAt(t.index()).findWrapping(i.state.schema.nodes.text);
|
|
@@ -52445,7 +52534,7 @@ function rse(i, e) {
|
|
|
52445
52534
|
let o = i.state.tr.replace(t.pos, t.pos, new St(r, 0, 0));
|
|
52446
52535
|
return o.setSelection(fn.near(o.doc.resolve(t.pos + 1))), i.dispatch(o), !1;
|
|
52447
52536
|
}
|
|
52448
|
-
function
|
|
52537
|
+
function cse(i) {
|
|
52449
52538
|
if (!(i.selection instanceof ur))
|
|
52450
52539
|
return null;
|
|
52451
52540
|
let e = document.createElement("div");
|
|
@@ -52460,7 +52549,7 @@ xa.prototype.prepend = function(e) {
|
|
|
52460
52549
|
return e.length ? xa.from(e).append(this) : this;
|
|
52461
52550
|
};
|
|
52462
52551
|
xa.prototype.appendInner = function(e) {
|
|
52463
|
-
return new
|
|
52552
|
+
return new use(this, e);
|
|
52464
52553
|
};
|
|
52465
52554
|
xa.prototype.slice = function(e, t) {
|
|
52466
52555
|
return e === void 0 && (e = 0), t === void 0 && (t = this.length), e >= t ? xa.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, t));
|
|
@@ -52515,7 +52604,7 @@ var g7 = /* @__PURE__ */ (function(i) {
|
|
|
52515
52604
|
}, Object.defineProperties(e.prototype, t), e;
|
|
52516
52605
|
})(xa);
|
|
52517
52606
|
xa.empty = new g7([]);
|
|
52518
|
-
var
|
|
52607
|
+
var use = /* @__PURE__ */ (function(i) {
|
|
52519
52608
|
function e(t, n) {
|
|
52520
52609
|
i.call(this), this.left = t, this.right = n, this.length = t.length + n.length, this.depth = Math.max(t.depth, n.depth) + 1;
|
|
52521
52610
|
}
|
|
@@ -52548,7 +52637,7 @@ var sse = /* @__PURE__ */ (function(i) {
|
|
|
52548
52637
|
return this.left.depth >= Math.max(this.right.depth, n.depth) + 1 ? new e(this.left, new e(this.right, n)) : new e(this, n);
|
|
52549
52638
|
}, e;
|
|
52550
52639
|
})(xa);
|
|
52551
|
-
const
|
|
52640
|
+
const fse = 500;
|
|
52552
52641
|
class $c {
|
|
52553
52642
|
constructor(e, t) {
|
|
52554
52643
|
this.items = e, this.eventCount = t;
|
|
@@ -52590,7 +52679,7 @@ class $c {
|
|
|
52590
52679
|
(x = h && h.merge(v)) && (v = x, _ ? o.pop() : u = u.slice(0, u.length - 1)), o.push(v), t && (c++, t = void 0), r || (h = v);
|
|
52591
52680
|
}
|
|
52592
52681
|
let m = c - n.depth;
|
|
52593
|
-
return m >
|
|
52682
|
+
return m > hse && (u = dse(u, m), c -= m), new $c(u.append(o), c);
|
|
52594
52683
|
}
|
|
52595
52684
|
remapping(e, t) {
|
|
52596
52685
|
let n = new iE();
|
|
@@ -52630,7 +52719,7 @@ class $c {
|
|
|
52630
52719
|
for (let v = t; v < c; v++)
|
|
52631
52720
|
m.push(new Vu(o.maps[v]));
|
|
52632
52721
|
let _ = this.items.slice(0, r).append(m).append(n), p = new $c(_, u);
|
|
52633
|
-
return p.emptyItemCount() >
|
|
52722
|
+
return p.emptyItemCount() > fse && (p = p.compress(this.items.length - n.length)), p;
|
|
52634
52723
|
}
|
|
52635
52724
|
emptyItemCount() {
|
|
52636
52725
|
let e = 0;
|
|
@@ -52662,7 +52751,7 @@ class $c {
|
|
|
52662
52751
|
}
|
|
52663
52752
|
}
|
|
52664
52753
|
$c.empty = new $c(xa.empty, 0);
|
|
52665
|
-
function
|
|
52754
|
+
function dse(i, e) {
|
|
52666
52755
|
let t;
|
|
52667
52756
|
return i.forEach((n, r) => {
|
|
52668
52757
|
if (n.selection && e-- == 0)
|
|
@@ -52686,23 +52775,23 @@ class Tp {
|
|
|
52686
52775
|
this.done = e, this.undone = t, this.prevRanges = n, this.prevTime = r, this.prevComposition = o;
|
|
52687
52776
|
}
|
|
52688
52777
|
}
|
|
52689
|
-
const
|
|
52690
|
-
function
|
|
52778
|
+
const hse = 20;
|
|
52779
|
+
function pse(i, e, t, n) {
|
|
52691
52780
|
let r = t.getMeta(p0), o;
|
|
52692
52781
|
if (r)
|
|
52693
52782
|
return r.historyState;
|
|
52694
|
-
t.getMeta(
|
|
52783
|
+
t.getMeta(yse) && (i = new Tp(i.done, i.undone, null, 0, -1));
|
|
52695
52784
|
let c = t.getMeta("appendedTransaction");
|
|
52696
52785
|
if (t.steps.length == 0)
|
|
52697
52786
|
return i;
|
|
52698
52787
|
if (c && c.getMeta(p0))
|
|
52699
|
-
return c.getMeta(p0).redo ? new Tp(i.done.addTransform(t, void 0, n, Kw(e)), i.undone,
|
|
52788
|
+
return c.getMeta(p0).redo ? new Tp(i.done.addTransform(t, void 0, n, Kw(e)), i.undone, GI(t.mapping.maps), i.prevTime, i.prevComposition) : new Tp(i.done, i.undone.addTransform(t, void 0, n, Kw(e)), null, i.prevTime, i.prevComposition);
|
|
52700
52789
|
if (t.getMeta("addToHistory") !== !1 && !(c && c.getMeta("addToHistory") === !1)) {
|
|
52701
|
-
let u = t.getMeta("composition"), h = i.prevTime == 0 || !c && i.prevComposition != u && (i.prevTime < (t.time || 0) - n.newGroupDelay || !
|
|
52790
|
+
let u = t.getMeta("composition"), h = i.prevTime == 0 || !c && i.prevComposition != u && (i.prevTime < (t.time || 0) - n.newGroupDelay || !mse(t, i.prevRanges)), m = c ? OR(i.prevRanges, t.mapping) : GI(t.mapping.maps);
|
|
52702
52791
|
return new Tp(i.done.addTransform(t, h ? e.selection.getBookmark() : void 0, n, Kw(e)), $c.empty, m, t.time, u ?? i.prevComposition);
|
|
52703
52792
|
} else return (o = t.getMeta("rebased")) ? new Tp(i.done.rebased(t, o), i.undone.rebased(t, o), OR(i.prevRanges, t.mapping), i.prevTime, i.prevComposition) : new Tp(i.done.addMaps(t.mapping.maps), i.undone.addMaps(t.mapping.maps), OR(i.prevRanges, t.mapping), i.prevTime, i.prevComposition);
|
|
52704
52793
|
}
|
|
52705
|
-
function
|
|
52794
|
+
function mse(i, e) {
|
|
52706
52795
|
if (!e)
|
|
52707
52796
|
return !1;
|
|
52708
52797
|
if (!i.docChanged)
|
|
@@ -52713,7 +52802,7 @@ function fse(i, e) {
|
|
|
52713
52802
|
n <= e[o + 1] && r >= e[o] && (t = !0);
|
|
52714
52803
|
}), t;
|
|
52715
52804
|
}
|
|
52716
|
-
function
|
|
52805
|
+
function GI(i) {
|
|
52717
52806
|
let e = [];
|
|
52718
52807
|
for (let t = i.length - 1; t >= 0 && e.length == 0; t--)
|
|
52719
52808
|
i[t].forEach((n, r, o, c) => e.push(o, c));
|
|
@@ -52729,18 +52818,18 @@ function OR(i, e) {
|
|
|
52729
52818
|
}
|
|
52730
52819
|
return t;
|
|
52731
52820
|
}
|
|
52732
|
-
function
|
|
52821
|
+
function gse(i, e, t) {
|
|
52733
52822
|
let n = Kw(e), r = p0.get(e).spec.config, o = (t ? i.undone : i.done).popEvent(e, n);
|
|
52734
52823
|
if (!o)
|
|
52735
52824
|
return null;
|
|
52736
52825
|
let c = o.selection.resolve(o.transform.doc), u = (t ? i.done : i.undone).addTransform(o.transform, e.selection.getBookmark(), r, n), h = new Tp(t ? u : o.remaining, t ? o.remaining : u, null, 0, -1);
|
|
52737
52826
|
return o.transform.setSelection(c).setMeta(p0, { redo: t, historyState: h });
|
|
52738
52827
|
}
|
|
52739
|
-
let LR = !1,
|
|
52828
|
+
let LR = !1, jI = null;
|
|
52740
52829
|
function Kw(i) {
|
|
52741
52830
|
let e = i.plugins;
|
|
52742
|
-
if (
|
|
52743
|
-
LR = !1,
|
|
52831
|
+
if (jI != e) {
|
|
52832
|
+
LR = !1, jI = e;
|
|
52744
52833
|
for (let t = 0; t < e.length; t++)
|
|
52745
52834
|
if (e[t].spec.historyPreserveItems) {
|
|
52746
52835
|
LR = !0;
|
|
@@ -52749,8 +52838,8 @@ function Kw(i) {
|
|
|
52749
52838
|
}
|
|
52750
52839
|
return LR;
|
|
52751
52840
|
}
|
|
52752
|
-
const p0 = new la("history"),
|
|
52753
|
-
function
|
|
52841
|
+
const p0 = new la("history"), yse = new la("closeHistory");
|
|
52842
|
+
function vse(i = {}) {
|
|
52754
52843
|
return i = {
|
|
52755
52844
|
depth: i.depth || 100,
|
|
52756
52845
|
newGroupDelay: i.newGroupDelay || 500
|
|
@@ -52761,7 +52850,7 @@ function pse(i = {}) {
|
|
|
52761
52850
|
return new Tp($c.empty, $c.empty, null, 0, -1);
|
|
52762
52851
|
},
|
|
52763
52852
|
apply(e, t, n) {
|
|
52764
|
-
return
|
|
52853
|
+
return pse(t, n, e, i);
|
|
52765
52854
|
}
|
|
52766
52855
|
},
|
|
52767
52856
|
config: i,
|
|
@@ -52781,7 +52870,7 @@ function y7(i, e) {
|
|
|
52781
52870
|
if (!r || (i ? r.undone : r.done).eventCount == 0)
|
|
52782
52871
|
return !1;
|
|
52783
52872
|
if (n) {
|
|
52784
|
-
let o =
|
|
52873
|
+
let o = gse(r, t, i);
|
|
52785
52874
|
o && n(e ? o.scrollIntoView() : o);
|
|
52786
52875
|
}
|
|
52787
52876
|
return !0;
|
|
@@ -52857,7 +52946,7 @@ Tr.create({
|
|
|
52857
52946
|
];
|
|
52858
52947
|
}
|
|
52859
52948
|
});
|
|
52860
|
-
var
|
|
52949
|
+
var _se = Tr.create({
|
|
52861
52950
|
name: "dropCursor",
|
|
52862
52951
|
addOptions() {
|
|
52863
52952
|
return {
|
|
@@ -52867,7 +52956,7 @@ var mse = Tr.create({
|
|
|
52867
52956
|
};
|
|
52868
52957
|
},
|
|
52869
52958
|
addProseMirrorPlugins() {
|
|
52870
|
-
return [
|
|
52959
|
+
return [tse(this.options)];
|
|
52871
52960
|
}
|
|
52872
52961
|
});
|
|
52873
52962
|
Tr.create({
|
|
@@ -52913,10 +53002,10 @@ Tr.create({
|
|
|
52913
53002
|
];
|
|
52914
53003
|
}
|
|
52915
53004
|
});
|
|
52916
|
-
var
|
|
53005
|
+
var bse = Tr.create({
|
|
52917
53006
|
name: "gapCursor",
|
|
52918
53007
|
addProseMirrorPlugins() {
|
|
52919
|
-
return [
|
|
53008
|
+
return [ase()];
|
|
52920
53009
|
},
|
|
52921
53010
|
extendNodeSchema(i) {
|
|
52922
53011
|
var e;
|
|
@@ -52929,8 +53018,8 @@ var gse = Tr.create({
|
|
|
52929
53018
|
allowGapCursor: (e = vi(zn(i, "allowGapCursor", t))) != null ? e : null
|
|
52930
53019
|
};
|
|
52931
53020
|
}
|
|
52932
|
-
}),
|
|
52933
|
-
function
|
|
53021
|
+
}), XI = "placeholder";
|
|
53022
|
+
function xse(i) {
|
|
52934
53023
|
return i.replace(/\s+/g, "-").replace(/[^a-zA-Z0-9-]/g, "").replace(/^[0-9-]+/, "").replace(/^-+/, "").toLowerCase();
|
|
52935
53024
|
}
|
|
52936
53025
|
Tr.create({
|
|
@@ -52939,7 +53028,7 @@ Tr.create({
|
|
|
52939
53028
|
return {
|
|
52940
53029
|
emptyEditorClass: "is-editor-empty",
|
|
52941
53030
|
emptyNodeClass: "is-empty",
|
|
52942
|
-
dataAttribute:
|
|
53031
|
+
dataAttribute: XI,
|
|
52943
53032
|
placeholder: "Write something …",
|
|
52944
53033
|
showOnlyWhenEditable: !0,
|
|
52945
53034
|
showOnlyCurrent: !0,
|
|
@@ -52947,7 +53036,7 @@ Tr.create({
|
|
|
52947
53036
|
};
|
|
52948
53037
|
},
|
|
52949
53038
|
addProseMirrorPlugins() {
|
|
52950
|
-
const i = this.options.dataAttribute ? `data-${
|
|
53039
|
+
const i = this.options.dataAttribute ? `data-${xse(this.options.dataAttribute)}` : `data-${XI}`;
|
|
52951
53040
|
return [
|
|
52952
53041
|
new $r({
|
|
52953
53042
|
key: new la("placeholder"),
|
|
@@ -53006,10 +53095,10 @@ Tr.create({
|
|
|
53006
53095
|
];
|
|
53007
53096
|
}
|
|
53008
53097
|
});
|
|
53009
|
-
function
|
|
53098
|
+
function qI({ types: i, node: e }) {
|
|
53010
53099
|
return e && Array.isArray(i) && i.includes(e.type) || e?.type === i;
|
|
53011
53100
|
}
|
|
53012
|
-
var
|
|
53101
|
+
var Sse = Tr.create({
|
|
53013
53102
|
name: "trailingNode",
|
|
53014
53103
|
addOptions() {
|
|
53015
53104
|
return {
|
|
@@ -53031,19 +53120,19 @@ var vse = Tr.create({
|
|
|
53031
53120
|
state: {
|
|
53032
53121
|
init: (r, o) => {
|
|
53033
53122
|
const c = o.tr.doc.lastChild;
|
|
53034
|
-
return !
|
|
53123
|
+
return !qI({ node: c, types: n });
|
|
53035
53124
|
},
|
|
53036
53125
|
apply: (r, o) => {
|
|
53037
53126
|
if (!r.docChanged || r.getMeta("__uniqueIDTransaction"))
|
|
53038
53127
|
return o;
|
|
53039
53128
|
const c = r.doc.lastChild;
|
|
53040
|
-
return !
|
|
53129
|
+
return !qI({ node: c, types: n });
|
|
53041
53130
|
}
|
|
53042
53131
|
}
|
|
53043
53132
|
})
|
|
53044
53133
|
];
|
|
53045
53134
|
}
|
|
53046
|
-
}),
|
|
53135
|
+
}), Ese = Tr.create({
|
|
53047
53136
|
name: "undoRedo",
|
|
53048
53137
|
addOptions() {
|
|
53049
53138
|
return {
|
|
@@ -53058,7 +53147,7 @@ var vse = Tr.create({
|
|
|
53058
53147
|
};
|
|
53059
53148
|
},
|
|
53060
53149
|
addProseMirrorPlugins() {
|
|
53061
|
-
return [
|
|
53150
|
+
return [vse(this.options)];
|
|
53062
53151
|
},
|
|
53063
53152
|
addKeyboardShortcuts() {
|
|
53064
53153
|
return {
|
|
@@ -53070,31 +53159,31 @@ var vse = Tr.create({
|
|
|
53070
53159
|
"Shift-Mod-я": () => this.editor.commands.redo()
|
|
53071
53160
|
};
|
|
53072
53161
|
}
|
|
53073
|
-
}),
|
|
53162
|
+
}), Tse = Tr.create({
|
|
53074
53163
|
name: "starterKit",
|
|
53075
53164
|
addExtensions() {
|
|
53076
53165
|
var i, e, t, n;
|
|
53077
53166
|
const r = [];
|
|
53078
|
-
return this.options.bold !== !1 && r.push(
|
|
53167
|
+
return this.options.bold !== !1 && r.push(Wre.configure(this.options.bold)), this.options.blockquote !== !1 && r.push(jre.configure(this.options.blockquote)), this.options.bulletList !== !1 && r.push(a7.configure(this.options.bulletList)), this.options.code !== !1 && r.push(Jre.configure(this.options.code)), this.options.codeBlock !== !1 && r.push(tae.configure(this.options.codeBlock)), this.options.document !== !1 && r.push(nae.configure(this.options.document)), this.options.dropcursor !== !1 && r.push(_se.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && r.push(bse.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && r.push(iae.configure(this.options.hardBreak)), this.options.heading !== !1 && r.push(rae.configure(this.options.heading)), this.options.undoRedo !== !1 && r.push(Ese.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && r.push(aae.configure(this.options.horizontalRule)), this.options.italic !== !1 && r.push(uae.configure(this.options.italic)), this.options.listItem !== !1 && r.push(s7.configure(this.options.listItem)), this.options.listKeymap !== !1 && r.push(d7.configure((i = this.options) == null ? void 0 : i.listKeymap)), this.options.link !== !1 && r.push(Uae.configure((e = this.options) == null ? void 0 : e.link)), this.options.orderedList !== !1 && r.push(p7.configure(this.options.orderedList)), this.options.paragraph !== !1 && r.push(Wae.configure(this.options.paragraph)), this.options.strike !== !1 && r.push(Jae.configure(this.options.strike)), this.options.text !== !1 && r.push(Qae.configure(this.options.text)), this.options.underline !== !1 && r.push(ese.configure((t = this.options) == null ? void 0 : t.underline)), this.options.trailingNode !== !1 && r.push(Sse.configure((n = this.options) == null ? void 0 : n.trailingNode)), r;
|
|
53079
53168
|
}
|
|
53080
|
-
}),
|
|
53081
|
-
const
|
|
53082
|
-
function
|
|
53169
|
+
}), Mse = Tse;
|
|
53170
|
+
const wse = [Mse];
|
|
53171
|
+
function $I(i) {
|
|
53083
53172
|
if (!i?.content?.length) return "";
|
|
53084
53173
|
try {
|
|
53085
|
-
return Fie(i,
|
|
53174
|
+
return Fie(i, wse);
|
|
53086
53175
|
} catch {
|
|
53087
53176
|
return "";
|
|
53088
53177
|
}
|
|
53089
53178
|
}
|
|
53090
|
-
function
|
|
53179
|
+
function Ase(i) {
|
|
53091
53180
|
if (typeof document > "u")
|
|
53092
53181
|
return i.replace(/<[^>]*>/g, " ").replace(/\s+/g, " ").trim();
|
|
53093
53182
|
const e = document.createElement("div");
|
|
53094
53183
|
return e.innerHTML = i, (e.textContent ?? e.innerText ?? "").trim().replace(/\s+/g, " ");
|
|
53095
53184
|
}
|
|
53096
|
-
function
|
|
53097
|
-
const t =
|
|
53185
|
+
function Cse(i, e = 60) {
|
|
53186
|
+
const t = Ase(i);
|
|
53098
53187
|
return t ? t.length <= e ? t : t.slice(0, e).trim() + "…" : "";
|
|
53099
53188
|
}
|
|
53100
53189
|
function b7(i) {
|
|
@@ -53104,10 +53193,10 @@ function b7(i) {
|
|
|
53104
53193
|
return [...u, ...m];
|
|
53105
53194
|
}, []),
|
|
53106
53195
|
type: "doc"
|
|
53107
|
-
}, o = e && r ?
|
|
53108
|
-
return (i.author.type === Er.Customer ? i.content.text ||
|
|
53196
|
+
}, o = e && r ? $I(r) : "";
|
|
53197
|
+
return (i.author.type === Er.Customer ? i.content.text || $I(i.content) : "") || o;
|
|
53109
53198
|
}
|
|
53110
|
-
function
|
|
53199
|
+
function Rse({ className: i }) {
|
|
53111
53200
|
return /* @__PURE__ */ Ye.jsxs(
|
|
53112
53201
|
"div",
|
|
53113
53202
|
{
|
|
@@ -53122,93 +53211,6 @@ function Mse({ className: i }) {
|
|
|
53122
53211
|
}
|
|
53123
53212
|
);
|
|
53124
53213
|
}
|
|
53125
|
-
function $I({ message: i, author: e, className: t, ...n }) {
|
|
53126
|
-
return /* @__PURE__ */ Ye.jsx(
|
|
53127
|
-
"div",
|
|
53128
|
-
{
|
|
53129
|
-
...n,
|
|
53130
|
-
className: ol(
|
|
53131
|
-
"message flex max-w-70 min-h-9 w-fit h-fit justify-center items-center backdrop-blur-xl text-left",
|
|
53132
|
-
{
|
|
53133
|
-
"bg-purple-accent/80": e === Er.Agent,
|
|
53134
|
-
"rounded-bl-sm": e === Er.Agent,
|
|
53135
|
-
"self-start": e === Er.Agent,
|
|
53136
|
-
"ml-2": e === Er.Agent,
|
|
53137
|
-
"bg-white/20": e === Er.Customer,
|
|
53138
|
-
"rounded-br-sm": e === Er.Customer,
|
|
53139
|
-
"self-end": e === Er.Customer,
|
|
53140
|
-
"mr-2": e === Er.Customer
|
|
53141
|
-
},
|
|
53142
|
-
t
|
|
53143
|
-
),
|
|
53144
|
-
children: i
|
|
53145
|
-
}
|
|
53146
|
-
);
|
|
53147
|
-
}
|
|
53148
|
-
function wse({ className: i }) {
|
|
53149
|
-
const [e, t] = te.useState(!0), { config: n, api: r } = sf(), o = q_(), { networkStatus: c } = kL(), u = Kl(($) => $.init), h = Kl(($) => $.endSession), m = Kl(($) => $.isVoiceBootstrapped), _ = Kl(($) => $.setMicrophoneEnabled), p = Kl(($) => $.status), v = Kl(($) => $.errorMessage), x = Kl(($) => $.customerMessageTranscriptVisible), T = Kl(($) => $.customerMessageTranscript), A = Kl(($) => $.assistantMessageTranscriptVisible), M = Kl(($) => $.assistantMessageTranscript), w = Kl(($) => $.assistantResponseInProgress), { selectedInputId: L, requestPermission: N } = xee(), I = te.useCallback(async () => {
|
|
53150
|
-
const $ = !e;
|
|
53151
|
-
if (!$ && !m) {
|
|
53152
|
-
const U = await N();
|
|
53153
|
-
if (!U.ok) {
|
|
53154
|
-
console.error("permission error", U);
|
|
53155
|
-
return;
|
|
53156
|
-
}
|
|
53157
|
-
try {
|
|
53158
|
-
const H = await navigator.mediaDevices.getUserMedia(
|
|
53159
|
-
See(L)
|
|
53160
|
-
);
|
|
53161
|
-
await u(n, r, H);
|
|
53162
|
-
} catch (H) {
|
|
53163
|
-
console.error("voice init error", H);
|
|
53164
|
-
return;
|
|
53165
|
-
}
|
|
53166
|
-
}
|
|
53167
|
-
_(!$), t($);
|
|
53168
|
-
}, [
|
|
53169
|
-
n,
|
|
53170
|
-
u,
|
|
53171
|
-
m,
|
|
53172
|
-
e,
|
|
53173
|
-
N,
|
|
53174
|
-
L,
|
|
53175
|
-
_
|
|
53176
|
-
]), z = te.useCallback(async () => {
|
|
53177
|
-
await h("switched_to_text"), o(Va.text);
|
|
53178
|
-
}, [h, o]);
|
|
53179
|
-
te.useEffect(() => () => {
|
|
53180
|
-
h("voice_mode_closed");
|
|
53181
|
-
}, [h]);
|
|
53182
|
-
const F = te.useMemo(() => c === Xc.Unavailable ? x_.connectionFailed : c === Xc.Offline ? x_.offline : v || null, [c, v]), G = te.useMemo(() => p === "connecting" ? "Connecting..." : w ? "Assistant speaking..." : e ? "Muted" : "Start talking", [w, e, p]);
|
|
53183
|
-
return /* @__PURE__ */ Ye.jsxs("div", { className: ol("z-1 flex w-full flex-col items-center", i), children: [
|
|
53184
|
-
F && /* @__PURE__ */ Ye.jsx(o8, { className: "mb-8", message: F }),
|
|
53185
|
-
x && /* @__PURE__ */ Ye.jsx($I, { className: "mb-8", message: T, author: Er.Customer }),
|
|
53186
|
-
A && M && /* @__PURE__ */ Ye.jsx($I, { className: "mb-8", message: M, author: Er.Agent }),
|
|
53187
|
-
/* @__PURE__ */ Ye.jsxs("div", { className: "flex flex-col items-center gap-6", children: [
|
|
53188
|
-
n.voiceEnabled && /* @__PURE__ */ Ye.jsxs("div", { className: "flex flex-col items-center gap-3 text-white", children: [
|
|
53189
|
-
/* @__PURE__ */ Ye.jsx("span", { className: "text-xs font-medium text-white", children: G }),
|
|
53190
|
-
/* @__PURE__ */ Ye.jsx(
|
|
53191
|
-
kd,
|
|
53192
|
-
{
|
|
53193
|
-
className: `flex h-19 w-19 items-center justify-center rounded-full backdrop-blur-sm ${e ? "bg-black/30" : "bg-white/20"}`,
|
|
53194
|
-
onClick: I,
|
|
53195
|
-
disabled: p === "connecting",
|
|
53196
|
-
children: e ? /* @__PURE__ */ Ye.jsx(wK, {}) : /* @__PURE__ */ Ye.jsx(MK, {})
|
|
53197
|
-
}
|
|
53198
|
-
)
|
|
53199
|
-
] }),
|
|
53200
|
-
/* @__PURE__ */ Ye.jsx(
|
|
53201
|
-
kd,
|
|
53202
|
-
{
|
|
53203
|
-
onClick: z,
|
|
53204
|
-
className: "data-hover:text-purple-accent flex h-10 w-10 items-center justify-center rounded-full text-white backdrop-blur-sm data-hover:bg-white",
|
|
53205
|
-
children: /* @__PURE__ */ Ye.jsx(AK, {})
|
|
53206
|
-
}
|
|
53207
|
-
)
|
|
53208
|
-
] })
|
|
53209
|
-
] });
|
|
53210
|
-
}
|
|
53211
|
-
const Ase = (i) => /* @__PURE__ */ te.createElement("svg", { width: 15, height: 17, viewBox: "0 0 15 17", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ te.createElement("path", { d: "M1.875 5.9375V10.9375C1.875 11.1861 1.77623 11.4246 1.60041 11.6004C1.4246 11.7762 1.18614 11.875 0.9375 11.875C0.68886 11.875 0.450403 11.7762 0.274587 11.6004C0.0987719 11.4246 0 11.1861 0 10.9375V5.9375C0 5.68886 0.0987719 5.4504 0.274587 5.27459C0.450403 5.09877 0.68886 5 0.9375 5C1.18614 5 1.4246 5.09877 1.60041 5.27459C1.77623 5.4504 1.875 5.68886 1.875 5.9375ZM4.0625 0C3.81386 0 3.5754 0.0987721 3.39959 0.274587C3.22377 0.450403 3.125 0.68886 3.125 0.9375V15.9375C3.125 16.1861 3.22377 16.4246 3.39959 16.6004C3.5754 16.7762 3.81386 16.875 4.0625 16.875C4.31114 16.875 4.5496 16.7762 4.72541 16.6004C4.90123 16.4246 5 16.1861 5 15.9375V0.9375C5 0.68886 4.90123 0.450403 4.72541 0.274587C4.5496 0.0987721 4.31114 0 4.0625 0ZM7.1875 2.5C6.93886 2.5 6.7004 2.59877 6.52459 2.77459C6.34877 2.9504 6.25 3.18886 6.25 3.4375V13.4375C6.25 13.6861 6.34877 13.9246 6.52459 14.1004C6.7004 14.2762 6.93886 14.375 7.1875 14.375C7.43614 14.375 7.6746 14.2762 7.85041 14.1004C8.02623 13.9246 8.125 13.6861 8.125 13.4375V3.4375C8.125 3.18886 8.02623 2.9504 7.85041 2.77459C7.6746 2.59877 7.43614 2.5 7.1875 2.5ZM10.3125 5C10.0639 5 9.8254 5.09877 9.64959 5.27459C9.47377 5.4504 9.375 5.68886 9.375 5.9375V10.9375C9.375 11.1861 9.47377 11.4246 9.64959 11.6004C9.8254 11.7762 10.0639 11.875 10.3125 11.875C10.5611 11.875 10.7996 11.7762 10.9754 11.6004C11.1512 11.4246 11.25 11.1861 11.25 10.9375V5.9375C11.25 5.68886 11.1512 5.4504 10.9754 5.27459C10.7996 5.09877 10.5611 5 10.3125 5ZM13.4375 3.75C13.1889 3.75 12.9504 3.84877 12.7746 4.02459C12.5988 4.2004 12.5 4.43886 12.5 4.6875V12.1875C12.5 12.4361 12.5988 12.6746 12.7746 12.8504C12.9504 13.0262 13.1889 13.125 13.4375 13.125C13.6861 13.125 13.9246 13.0262 14.1004 12.8504C14.2762 12.6746 14.375 12.4361 14.375 12.1875V4.6875C14.375 4.43886 14.2762 4.2004 14.1004 4.02459C13.9246 3.84877 13.6861 3.75 13.4375 3.75Z" })), Cse = (i) => /* @__PURE__ */ te.createElement("svg", { width: 22, height: 22, viewBox: "0 0 22 22", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ te.createElement("path", { d: "M21.1996 0.549377C20.9639 0.313669 20.6697 0.14503 20.3472 0.0608259C20.0248 -0.0233778 19.6857 -0.0201025 19.3649 0.0703145L19.3443 0.076877L1.35269 5.53125C0.987805 5.63709 0.663677 5.85127 0.423239 6.14544C0.182802 6.43961 0.0374012 6.79987 0.00629592 7.17853C-0.0248094 7.55718 0.0598483 7.93634 0.249056 8.26581C0.438264 8.59527 0.723094 8.85948 1.06582 9.02344L8.90519 12.8438L12.7218 20.6859C12.8723 21.006 13.111 21.2764 13.41 21.4654C13.7089 21.6544 14.0556 21.7541 14.4093 21.7528C14.4627 21.7528 14.5171 21.7528 14.5714 21.7463C14.9511 21.717 15.3126 21.5719 15.6071 21.3304C15.9015 21.0889 16.1147 20.7628 16.2177 20.3963L21.6721 2.40469C21.6748 2.398 21.677 2.39111 21.6786 2.38406C21.769 2.06327 21.7723 1.72418 21.6881 1.4017C21.6039 1.07922 21.4353 0.785013 21.1996 0.549377ZM14.3343 18.8503L11.1121 12.2278L15.4246 7.92C15.5292 7.81536 15.6122 7.69112 15.6689 7.55439C15.7255 7.41767 15.7546 7.27112 15.7546 7.12313C15.7546 6.97513 15.7255 6.82859 15.6689 6.69186C15.6122 6.55513 15.5292 6.4309 15.4246 6.32625C15.3199 6.22161 15.1957 6.13859 15.059 6.08196C14.9222 6.02533 14.7757 5.99618 14.6277 5.99618C14.4797 5.99618 14.3332 6.02533 14.1964 6.08196C14.0597 6.13859 13.9355 6.22161 13.8308 6.32625L9.51832 10.6388L2.89863 7.41469L19.3114 2.4375L14.3343 18.8503Z" })), Rse = (i) => /* @__PURE__ */ te.createElement("svg", { width: 21, height: 21, viewBox: "0 0 21 21", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...i }, /* @__PURE__ */ te.createElement("path", { d: "M20.9437 1.90279C20.9437 1.90279 20.9437 1.91216 20.9437 1.91685L15.4874 19.9112C15.4048 20.2035 15.2348 20.4635 15.0002 20.6564C14.7656 20.8493 14.4776 20.9658 14.1749 20.9903C14.1318 20.994 14.0887 20.9959 14.0455 20.9959C13.7619 20.9968 13.4838 20.9165 13.2443 20.7645C13.0048 20.6125 12.8137 20.3952 12.6937 20.1381L9.28117 13.135C9.24703 13.0648 9.23563 12.9857 9.24857 12.9087C9.26151 12.8318 9.29814 12.7608 9.35336 12.7056L14.7834 7.2756C14.9181 7.1338 14.9921 6.94499 14.9896 6.74942C14.9871 6.55385 14.9083 6.36699 14.77 6.22869C14.6317 6.09039 14.4448 6.01158 14.2492 6.00908C14.0537 6.00658 13.8648 6.08057 13.723 6.21529L8.29024 11.6453C8.23508 11.7005 8.16407 11.7371 8.0871 11.7501C8.01013 11.763 7.93104 11.7516 7.86086 11.7175L0.851173 8.30591C0.577067 8.17441 0.34939 7.96272 0.198314 7.69889C0.047238 7.43506 -0.0201046 7.13156 0.00521012 6.8286C0.0305249 6.52563 0.147302 6.23751 0.340066 6.00242C0.53283 5.76732 0.792481 5.59635 1.08461 5.51216L19.079 0.0559103H19.093C19.3493 -0.0160696 19.62 -0.018593 19.8775 0.0485989C20.135 0.115791 20.37 0.250279 20.5583 0.438265C20.7467 0.626251 20.8817 0.860966 20.9494 1.11833C21.0171 1.37569 21.0151 1.64644 20.9437 1.90279Z" }));
|
|
53212
53214
|
function Dse({ message: i, ...e }) {
|
|
53213
53215
|
const { author: t } = i, n = i.status === Bp.Failed, r = b7(i);
|
|
53214
53216
|
return n ? null : /* @__PURE__ */ Ye.jsx(
|
|
@@ -53226,7 +53228,7 @@ function Dse({ message: i, ...e }) {
|
|
|
53226
53228
|
"self-end": t.type === Er.Customer
|
|
53227
53229
|
}
|
|
53228
53230
|
),
|
|
53229
|
-
children: r ? /* @__PURE__ */ Ye.jsx("div", { className: "w-full", dangerouslySetInnerHTML: { __html: r } }) : /* @__PURE__ */ Ye.jsx(
|
|
53231
|
+
children: r ? /* @__PURE__ */ Ye.jsx("div", { className: "w-full", dangerouslySetInnerHTML: { __html: r } }) : /* @__PURE__ */ Ye.jsx(Rse, {})
|
|
53230
53232
|
}
|
|
53231
53233
|
);
|
|
53232
53234
|
}
|
|
@@ -53434,7 +53436,7 @@ function Use() {
|
|
|
53434
53436
|
className: "data-hover:text-purple-accent flex h-10 w-[77px] flex-row items-center gap-1 overflow-hidden rounded-full bg-white/20 px-3 py-2.5 text-sm leading-5 font-bold text-white backdrop-blur-sm transition-[width] group-[&:has(textarea:focus)]:w-10 data-hover:bg-white",
|
|
53435
53437
|
onClick: () => n(Va.voice),
|
|
53436
53438
|
children: [
|
|
53437
|
-
/* @__PURE__ */ Ye.jsx(
|
|
53439
|
+
/* @__PURE__ */ Ye.jsx(Fre, {}),
|
|
53438
53440
|
/* @__PURE__ */ Ye.jsx("span", { className: "absolute left-9 group-[&:has(textarea:focus)]:w-0 group-[&:has(textarea:focus)]:overflow-hidden group-[&:has(textarea:focus)]:opacity-0", children: "Talk" })
|
|
53439
53441
|
]
|
|
53440
53442
|
}
|
|
@@ -53469,8 +53471,8 @@ function Use() {
|
|
|
53469
53471
|
className: `${r && "group"} data-disabled:backdrop-blur-sm'} z-0 flex min-h-10 min-w-10 items-center justify-center rounded-full bg-white text-black data-disabled:bg-white/20 data-disabled:text-white/30`,
|
|
53470
53472
|
onClick: A,
|
|
53471
53473
|
children: [
|
|
53472
|
-
/* @__PURE__ */ Ye.jsx(
|
|
53473
|
-
/* @__PURE__ */ Ye.jsx(
|
|
53474
|
+
/* @__PURE__ */ Ye.jsx(Hre, { className: "group-hover:hidden" }),
|
|
53475
|
+
/* @__PURE__ */ Ye.jsx(Vre, { className: "hidden group-hover:block" })
|
|
53474
53476
|
]
|
|
53475
53477
|
}
|
|
53476
53478
|
)
|
|
@@ -53589,7 +53591,7 @@ function Wse({
|
|
|
53589
53591
|
assetsUrl: t,
|
|
53590
53592
|
onSelect: n
|
|
53591
53593
|
}) {
|
|
53592
|
-
const r = `${t}/chat_trigger.png`, o = b7(i.message), c =
|
|
53594
|
+
const r = `${t}/chat_trigger.png`, o = b7(i.message), c = Cse(o);
|
|
53593
53595
|
return /* @__PURE__ */ Ye.jsxs(
|
|
53594
53596
|
kd,
|
|
53595
53597
|
{
|
|
@@ -53912,7 +53914,7 @@ function WI({ mode: i }) {
|
|
|
53912
53914
|
}
|
|
53913
53915
|
)
|
|
53914
53916
|
] }),
|
|
53915
|
-
/* @__PURE__ */ Ye.jsx("div", { className: "flex w-full shrink-0 flex-col justify-end", children: i === c0.Voice ? /* @__PURE__ */ Ye.jsx(
|
|
53917
|
+
/* @__PURE__ */ Ye.jsx("div", { className: "flex w-full shrink-0 flex-col justify-end", children: i === c0.Voice ? /* @__PURE__ */ Ye.jsx(Pre, {}) : /* @__PURE__ */ Ye.jsx(Use, {}) }),
|
|
53916
53918
|
/* @__PURE__ */ Ye.jsx("div", { className: "h-16 shrink-0" }),
|
|
53917
53919
|
/* @__PURE__ */ Ye.jsxs("div", { className: "pointer-events-none absolute top-0 left-0 z-5 flex h-full w-full flex-col justify-between pb-6", children: [
|
|
53918
53920
|
/* @__PURE__ */ Ye.jsx(Hse, {}),
|
|
@@ -81401,6 +81403,7 @@ class Xoe extends EventTarget {
|
|
|
81401
81403
|
this.root.unmount(), this.shadowRoot.innerHTML = "";
|
|
81402
81404
|
}
|
|
81403
81405
|
playAnimation(e) {
|
|
81406
|
+
console.log("playAnimation", e);
|
|
81404
81407
|
}
|
|
81405
81408
|
setCustomerInteractionSession(e) {
|
|
81406
81409
|
this.config.customerInteractionSession = e;
|