@pagelines/sdk 1.0.445 → 1.0.446
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.
|
@@ -247,24 +247,24 @@ function Mn(l) {
|
|
|
247
247
|
return l ? typeof l == "string" ? l : l.src || "" : "";
|
|
248
248
|
}
|
|
249
249
|
u(Mn, "getImageSrc");
|
|
250
|
-
function
|
|
250
|
+
function Ei(l) {
|
|
251
251
|
return Mn(l.cover) || Mn(l.avatar) || Kn(l.name);
|
|
252
252
|
}
|
|
253
|
-
u(
|
|
253
|
+
u(Ei, "getAgentAvatarUrl");
|
|
254
254
|
function Ln(l) {
|
|
255
255
|
const t = l.target;
|
|
256
256
|
t.dataset.fallbackUsed || (t.dataset.fallbackUsed = "true", t.src = Kn());
|
|
257
257
|
}
|
|
258
258
|
u(Ln, "handleImageError");
|
|
259
|
-
function
|
|
259
|
+
function _i(l) {
|
|
260
260
|
const { template: t, agent: e } = l;
|
|
261
261
|
return t.replace(/{name}/g, e.name || "Digital Agent").replace(/{title}/g, e.title || "").replace(/{handle}/g, e.handle || "").replace(/{orgName}/g, e.org?.name || "");
|
|
262
262
|
}
|
|
263
|
-
u(
|
|
263
|
+
u(_i, "parseButtonTemplate");
|
|
264
264
|
const Ds = {
|
|
265
265
|
key: 0,
|
|
266
266
|
class: "absolute inset-0 flex items-center justify-center"
|
|
267
|
-
},
|
|
267
|
+
}, Ri = /* @__PURE__ */ Ee({
|
|
268
268
|
__name: "ElAgentButton",
|
|
269
269
|
props: {
|
|
270
270
|
theme: { default: "primary" },
|
|
@@ -309,7 +309,7 @@ const Ds = {
|
|
|
309
309
|
], 2)
|
|
310
310
|
], 2));
|
|
311
311
|
}
|
|
312
|
-
}), Cs = ["value"],
|
|
312
|
+
}), Cs = ["value"], Di = /* @__PURE__ */ Ee({
|
|
313
313
|
__name: "AgentInputEmail",
|
|
314
314
|
props: {
|
|
315
315
|
modelValue: { default: "" }
|
|
@@ -327,7 +327,7 @@ const Ds = {
|
|
|
327
327
|
onInput: s[0] || (s[0] = (r) => e("update:modelValue", r.target.value))
|
|
328
328
|
}, null, 40, Cs));
|
|
329
329
|
}
|
|
330
|
-
}), Is = { class: "flex gap-1.5 justify-center" }, Ms = ["onUpdate:modelValue", "onInput", "onKeydown", "onPaste", "onFocus"],
|
|
330
|
+
}), Is = { class: "flex gap-1.5 justify-center" }, Ms = ["onUpdate:modelValue", "onInput", "onKeydown", "onPaste", "onFocus"], Ci = /* @__PURE__ */ Ee({
|
|
331
331
|
__name: "AgentInputOneTimeCode",
|
|
332
332
|
props: {
|
|
333
333
|
modelValue: {},
|
|
@@ -2160,25 +2160,25 @@ const Yr = { class: "@container/chat flex flex-col h-full relative" }, Zr = {
|
|
|
2160
2160
|
}, Kr = { class: "relative mb-4 size-20 @sm/chat:size-24" }, Qr = ["src", "alt"], Jr = ["title"], ei = {
|
|
2161
2161
|
key: 0,
|
|
2162
2162
|
class: "flex items-center gap-3 py-3 px-2"
|
|
2163
|
-
}, ti = {
|
|
2163
|
+
}, ti = ["data-test"], ni = {
|
|
2164
2164
|
key: 0,
|
|
2165
2165
|
class: "flex-shrink-0 size-7 @sm/chat:size-8"
|
|
2166
|
-
},
|
|
2166
|
+
}, si = ["src", "alt"], ri = ["src", "alt"], ii = ["src"], ai = ["href"], li = ["innerHTML"], oi = {
|
|
2167
2167
|
key: 1,
|
|
2168
2168
|
class: "flex gap-2 justify-start items-center mb-4"
|
|
2169
|
-
},
|
|
2169
|
+
}, ci = ["src", "alt"], ui = {
|
|
2170
2170
|
key: 0,
|
|
2171
2171
|
class: "flex items-center gap-2 px-2 pb-2 overflow-x-auto"
|
|
2172
|
-
},
|
|
2172
|
+
}, hi = ["src", "alt"], pi = { class: "max-w-20 truncate" }, di = ["onClick"], fi = {
|
|
2173
2173
|
key: 0,
|
|
2174
2174
|
class: "shrink-0 flex items-center justify-center size-14"
|
|
2175
|
-
},
|
|
2175
|
+
}, gi = ["disabled"], mi = {
|
|
2176
2176
|
key: 0,
|
|
2177
2177
|
class: "i-svg-spinners-ring-resize size-4"
|
|
2178
|
-
},
|
|
2178
|
+
}, xi = {
|
|
2179
2179
|
key: 1,
|
|
2180
2180
|
class: "i-tabler-paperclip size-5"
|
|
2181
|
-
},
|
|
2181
|
+
}, bi = ["placeholder", "disabled"], ki = ["disabled"], Ii = /* @__PURE__ */ Ee({
|
|
2182
2182
|
__name: "ElAgentChat",
|
|
2183
2183
|
props: {
|
|
2184
2184
|
chatController: {},
|
|
@@ -2382,19 +2382,20 @@ const Yr = { class: "@container/chat flex flex-col h-full relative" }, Zr = {
|
|
|
2382
2382
|
}, null, 2)
|
|
2383
2383
|
])) : G("", !0),
|
|
2384
2384
|
T("div", {
|
|
2385
|
+
"data-test": k.sender === "agent" ? "messaging-assistant-msg" : k.sender === "user" ? "messaging-user-msg" : void 0,
|
|
2385
2386
|
class: _(["flex gap-2 items-end", {
|
|
2386
2387
|
"justify-end": k.sender === "user",
|
|
2387
2388
|
"justify-start": k.sender === "agent",
|
|
2388
2389
|
"mb-4": y(j.value, z)
|
|
2389
2390
|
}])
|
|
2390
2391
|
}, [
|
|
2391
|
-
k.sender === "agent" ? (A(), E("div",
|
|
2392
|
+
k.sender === "agent" ? (A(), E("div", ni, [
|
|
2392
2393
|
y(j.value, z) ? (A(), E("img", {
|
|
2393
2394
|
key: 0,
|
|
2394
2395
|
src: l.agent.avatarUrl.value,
|
|
2395
2396
|
alt: l.agent.displayName.value,
|
|
2396
2397
|
class: _(["size-6 @sm/chat:size-7 rounded-full object-cover shadow-sm", L.value ? "ring-1 ring-black/5" : ""])
|
|
2397
|
-
}, null, 10,
|
|
2398
|
+
}, null, 10, si)) : G("", !0)
|
|
2398
2399
|
])) : G("", !0),
|
|
2399
2400
|
T("div", {
|
|
2400
2401
|
class: _(k.sender === "user" ? "max-w-[75%]" : "max-w-[85%]")
|
|
@@ -2409,12 +2410,12 @@ const Yr = { class: "@container/chat flex flex-col h-full relative" }, Zr = {
|
|
|
2409
2410
|
src: D.url,
|
|
2410
2411
|
alt: D.name,
|
|
2411
2412
|
class: "rounded-xl object-cover max-h-48 max-w-[240px] @sm/chat:max-w-[320px]"
|
|
2412
|
-
}, null, 8,
|
|
2413
|
+
}, null, 8, ri)) : D.type === "audio" ? (A(), E("audio", {
|
|
2413
2414
|
key: 1,
|
|
2414
2415
|
src: D.url,
|
|
2415
2416
|
controls: "",
|
|
2416
2417
|
class: "max-w-full"
|
|
2417
|
-
}, null, 8,
|
|
2418
|
+
}, null, 8, ii)) : (A(), E("a", {
|
|
2418
2419
|
key: 2,
|
|
2419
2420
|
href: D.url,
|
|
2420
2421
|
target: "_blank",
|
|
@@ -2423,7 +2424,7 @@ const Yr = { class: "@container/chat flex flex-col h-full relative" }, Zr = {
|
|
|
2423
2424
|
}, [
|
|
2424
2425
|
v[7] || (v[7] = T("i", { class: "i-tabler-file size-3.5" }, null, -1)),
|
|
2425
2426
|
pt(" " + ue(D.name), 1)
|
|
2426
|
-
], 10,
|
|
2427
|
+
], 10, ai))
|
|
2427
2428
|
], 64))), 128))
|
|
2428
2429
|
], 2)) : G("", !0),
|
|
2429
2430
|
k.text ? (A(), E("div", {
|
|
@@ -2435,17 +2436,17 @@ const Yr = { class: "@container/chat flex flex-col h-full relative" }, Zr = {
|
|
|
2435
2436
|
T("div", {
|
|
2436
2437
|
class: _(["chat-msg-prose break-words text-[14px] leading-relaxed @sm/chat:text-[15px] @sm/chat:leading-relaxed", k.sender === "user" || !L.value ? "chat-msg-prose-invert" : ""]),
|
|
2437
2438
|
innerHTML: e(k.text)
|
|
2438
|
-
}, null, 10,
|
|
2439
|
+
}, null, 10, li)
|
|
2439
2440
|
], 2)) : G("", !0)
|
|
2440
2441
|
], 2)
|
|
2441
|
-
],
|
|
2442
|
+
], 10, ti)
|
|
2442
2443
|
], 64))), 128)),
|
|
2443
|
-
ge.value ? (A(), E("div",
|
|
2444
|
+
ge.value ? (A(), E("div", oi, [
|
|
2444
2445
|
T("img", {
|
|
2445
2446
|
src: l.agent.avatarUrl.value,
|
|
2446
2447
|
alt: l.agent.displayName.value,
|
|
2447
2448
|
class: _(["size-7 @sm/chat:size-8 flex-shrink-0 rounded-full object-cover shadow-sm", L.value ? "ring-1 ring-black/5" : ""])
|
|
2448
|
-
}, null, 10,
|
|
2449
|
+
}, null, 10, ci),
|
|
2449
2450
|
T("div", {
|
|
2450
2451
|
class: _(["rounded-2xl px-3.5 py-2.5 flex items-center", L.value ? "bg-theme-100" : "bg-white/15 backdrop-blur-sm"])
|
|
2451
2452
|
}, [
|
|
@@ -2458,7 +2459,7 @@ const Yr = { class: "@container/chat flex flex-col h-full relative" }, Zr = {
|
|
|
2458
2459
|
T("div", {
|
|
2459
2460
|
class: _(["absolute bottom-0 left-0 right-0 z-30 px-5 pb-4 pt-3", L.value ? "bg-gradient-to-t from-white via-white/95 to-white/70" : "bg-gradient-to-t from-black/80 via-black/70 to-black/40"])
|
|
2460
2461
|
}, [
|
|
2461
|
-
g.value.length > 0 ? (A(), E("div",
|
|
2462
|
+
g.value.length > 0 ? (A(), E("div", ui, [
|
|
2462
2463
|
(A(!0), E(Te, null, mt(g.value, (k, z) => (A(), E("div", {
|
|
2463
2464
|
key: z,
|
|
2464
2465
|
class: "relative shrink-0 group"
|
|
@@ -2468,21 +2469,21 @@ const Yr = { class: "@container/chat flex flex-col h-full relative" }, Zr = {
|
|
|
2468
2469
|
src: k.url,
|
|
2469
2470
|
alt: k.name,
|
|
2470
2471
|
class: _(["size-14 rounded-xl object-cover border", L.value ? "border-black/10" : "border-white/20"])
|
|
2471
|
-
}, null, 10,
|
|
2472
|
+
}, null, 10, hi)) : (A(), E("div", {
|
|
2472
2473
|
key: 1,
|
|
2473
2474
|
class: _(["h-14 px-3 rounded-xl flex items-center gap-1.5 text-xs border", L.value ? "border-black/10 bg-theme-50 text-theme-600" : "border-white/20 bg-white/10 text-white/70"])
|
|
2474
2475
|
}, [
|
|
2475
2476
|
v[8] || (v[8] = T("i", { class: "i-tabler-file size-4" }, null, -1)),
|
|
2476
|
-
T("span",
|
|
2477
|
+
T("span", pi, ue(k.name), 1)
|
|
2477
2478
|
], 2)),
|
|
2478
2479
|
T("button", {
|
|
2479
2480
|
class: "absolute -top-1.5 -right-1.5 size-5 flex items-center justify-center rounded-full bg-theme-800 text-white text-xs scale-0 group-hover:scale-100 transition-transform cursor-pointer",
|
|
2480
2481
|
onClick: /* @__PURE__ */ u((D) => st(z), "onClick")
|
|
2481
2482
|
}, [...v[9] || (v[9] = [
|
|
2482
2483
|
T("i", { class: "i-tabler-x size-3" }, null, -1)
|
|
2483
|
-
])], 8,
|
|
2484
|
+
])], 8, di)
|
|
2484
2485
|
]))), 128)),
|
|
2485
|
-
m.value ? (A(), E("div",
|
|
2486
|
+
m.value ? (A(), E("div", fi, [
|
|
2486
2487
|
Bt(Cn, { class: "size-5" })
|
|
2487
2488
|
])) : G("", !0)
|
|
2488
2489
|
])) : G("", !0),
|
|
@@ -2507,12 +2508,13 @@ const Yr = { class: "@container/chat flex flex-col h-full relative" }, Zr = {
|
|
|
2507
2508
|
disabled: se.value || m.value || !l.uploadFn,
|
|
2508
2509
|
onClick: v[0] || (v[0] = (k) => l.uploadFn && Et())
|
|
2509
2510
|
}, [
|
|
2510
|
-
m.value ? (A(), E("i",
|
|
2511
|
-
], 10,
|
|
2511
|
+
m.value ? (A(), E("i", mi)) : (A(), E("i", xi))
|
|
2512
|
+
], 10, gi),
|
|
2512
2513
|
Zn(T("textarea", {
|
|
2513
2514
|
ref_key: "textarea",
|
|
2514
2515
|
ref: f,
|
|
2515
2516
|
"onUpdate:modelValue": v[1] || (v[1] = (k) => o.value = k),
|
|
2517
|
+
"data-test": "messaging-input",
|
|
2516
2518
|
rows: "1",
|
|
2517
2519
|
enterkeyhint: "send",
|
|
2518
2520
|
placeholder: he.value,
|
|
@@ -2522,16 +2524,17 @@ const Yr = { class: "@container/chat flex flex-col h-full relative" }, Zr = {
|
|
|
2522
2524
|
onKeydown: Fe,
|
|
2523
2525
|
onFocus: v[2] || (v[2] = (k) => c.value = !0),
|
|
2524
2526
|
onBlur: v[3] || (v[3] = (k) => c.value = !1)
|
|
2525
|
-
}, null, 42,
|
|
2527
|
+
}, null, 42, bi), [
|
|
2526
2528
|
[Xn, o.value]
|
|
2527
2529
|
]),
|
|
2528
2530
|
T("button", {
|
|
2531
|
+
"data-test": "messaging-send-btn",
|
|
2529
2532
|
class: _(["shrink-0 flex items-center justify-center rounded-full transition-all duration-300 mb-0.5 mr-0.5 size-9 @sm/chat:size-10", tt.value ? "bg-primary-500 text-white shadow-md hover:scale-105 active:scale-95 cursor-pointer" : L.value ? "bg-black/5 text-black/20" : "bg-white/10 text-white/30"]),
|
|
2530
2533
|
disabled: !tt.value,
|
|
2531
2534
|
onClick: v[4] || (v[4] = (k) => Re())
|
|
2532
2535
|
}, [...v[10] || (v[10] = [
|
|
2533
2536
|
T("i", { class: "i-tabler-arrow-up size-5" }, null, -1)
|
|
2534
|
-
])], 10,
|
|
2537
|
+
])], 10, ki)
|
|
2535
2538
|
], 2),
|
|
2536
2539
|
T("div", {
|
|
2537
2540
|
class: _(["text-[10px] text-center mt-2.5 select-none opacity-70", L.value ? "text-theme-400" : "text-white/50"])
|
|
@@ -2549,10 +2552,10 @@ const Yr = { class: "@container/chat flex flex-col h-full relative" }, Zr = {
|
|
|
2549
2552
|
], 2)
|
|
2550
2553
|
]));
|
|
2551
2554
|
}
|
|
2552
|
-
}),
|
|
2555
|
+
}), wi = { class: "agent-wrap" }, vi = {
|
|
2553
2556
|
key: 0,
|
|
2554
2557
|
class: "flex items-center justify-center h-full"
|
|
2555
|
-
},
|
|
2558
|
+
}, Mi = /* @__PURE__ */ Ee({
|
|
2556
2559
|
__name: "AgentWrap",
|
|
2557
2560
|
props: {
|
|
2558
2561
|
sdk: {},
|
|
@@ -2646,8 +2649,8 @@ const Yr = { class: "@container/chat flex flex-col h-full relative" }, Zr = {
|
|
|
2646
2649
|
}
|
|
2647
2650
|
});
|
|
2648
2651
|
}
|
|
2649
|
-
}), (o, c) => (A(), E("div",
|
|
2650
|
-
s.value ? (A(), E("div",
|
|
2652
|
+
}), (o, c) => (A(), E("div", wi, [
|
|
2653
|
+
s.value ? (A(), E("div", vi, [...c[0] || (c[0] = [
|
|
2651
2654
|
T("div", { class: "animate-spin rounded-full size-6 border-b-2 border-white" }, null, -1)
|
|
2652
2655
|
])])) : r.value ? Yn(o.$slots, "default", {
|
|
2653
2656
|
key: 1,
|
|
@@ -2664,15 +2667,15 @@ const Yr = { class: "@container/chat flex flex-col h-full relative" }, Zr = {
|
|
|
2664
2667
|
});
|
|
2665
2668
|
export {
|
|
2666
2669
|
In as A,
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2670
|
+
Mi as _,
|
|
2671
|
+
Ii as a,
|
|
2672
|
+
Di as b,
|
|
2673
|
+
Ri as c,
|
|
2674
|
+
Ci as d,
|
|
2672
2675
|
Cn as e,
|
|
2673
2676
|
$s as f,
|
|
2674
|
-
|
|
2677
|
+
Ei as g,
|
|
2675
2678
|
Ln as h,
|
|
2676
|
-
|
|
2679
|
+
_i as p
|
|
2677
2680
|
};
|
|
2678
2681
|
//# sourceMappingURL=AgentWrap.vue_vue_type_script_setup_true_lang.js.map
|