padorixnpm 0.0.41 → 0.0.42
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/padorixnpm.js
CHANGED
|
@@ -476,8 +476,8 @@ function Ie(e) {
|
|
|
476
476
|
//#endregion
|
|
477
477
|
//#region lib/chats/chatmessages/chat-display-reply.tsx
|
|
478
478
|
function Le(e) {
|
|
479
|
-
let t = i(), { reply: n } = a((e) => e.data), r = e.data?.id === n?.messageId ? e.data : null;
|
|
480
|
-
function
|
|
479
|
+
let t = i(), { reply: n } = a((e) => e.data), r = e.data?.id === n?.messageId ? e.data : null, o = Array.isArray(e.data?.message) ? e.data.message.join(" ") : String(e.data?.message ?? "");
|
|
480
|
+
function s() {
|
|
481
481
|
t(re(void 0)), t(ie(void 0));
|
|
482
482
|
}
|
|
483
483
|
if (r?.id) return /* @__PURE__ */ D("div", {
|
|
@@ -490,7 +490,7 @@ function Le(e) {
|
|
|
490
490
|
className: "padorix:bg-white padorix:rounded-tl-lg padorix:rounded-tr-lg padorix:border-t padorix:border-x padorix:border-gray-200 padorix:shadow-inner padorix:text-zinc-600 padorix:px-4 padorix:flex padorix:items-center padorix:justify-between",
|
|
491
491
|
children: [/* @__PURE__ */ O("div", {
|
|
492
492
|
className: "padorix:flex padorix:items-center padorix:py-2.5 padorix:text-sm",
|
|
493
|
-
children: [/* @__PURE__ */ D(_, { className: "padorix:inline padorix:size-6 padorix:mr-3" }),
|
|
493
|
+
children: [/* @__PURE__ */ D(_, { className: "padorix:inline padorix:size-6 padorix:mr-3" }), o.length > 0 && /* @__PURE__ */ O("span", { children: [o.slice(0, 30), o.length > 30 ? "..." : ""] })]
|
|
494
494
|
}), /* @__PURE__ */ O("div", {
|
|
495
495
|
className: "padorix:flex padorix:items-center padorix:gap-3",
|
|
496
496
|
children: [Number(e.data?.images?.length) > 0 && /* @__PURE__ */ O("div", {
|
|
@@ -510,7 +510,7 @@ function Le(e) {
|
|
|
510
510
|
]
|
|
511
511
|
})]
|
|
512
512
|
}), /* @__PURE__ */ D("div", {
|
|
513
|
-
onClick:
|
|
513
|
+
onClick: s,
|
|
514
514
|
className: "padorix:cursor-pointer padorix:transition-all padorix:active:scale-95",
|
|
515
515
|
children: /* @__PURE__ */ D(q, { className: "padorix:inline padorix:size-6 padorix:mr-3" })
|
|
516
516
|
})]
|