@onereach/idw-ui-components 0.3.0-beta.37.0 → 0.3.0-beta.38.0
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/README.md +15 -1
- package/dist/cjs/engagement.js +146 -0
- package/dist/cjs/engagement.js.map +1 -0
- package/dist/esm/engagement.js +768 -0
- package/dist/esm/engagement.js.map +1 -0
- package/dist/types/components/Feeds/FeedEngagement/FeedComments.vue.d.ts +27 -0
- package/dist/types/components/Feeds/FeedEngagement/FeedComments.vue.d.ts.map +1 -0
- package/dist/types/components/Feeds/FeedEngagement/FeedCommentsHeader.vue.d.ts +14 -0
- package/dist/types/components/Feeds/FeedEngagement/FeedCommentsHeader.vue.d.ts.map +1 -0
- package/dist/types/components/Feeds/FeedEngagement/FeedCommentsInput.vue.d.ts +20 -0
- package/dist/types/components/Feeds/FeedEngagement/FeedCommentsInput.vue.d.ts.map +1 -0
- package/dist/types/components/Feeds/FeedEngagement/FeedCommentsItem.vue.d.ts +15 -0
- package/dist/types/components/Feeds/FeedEngagement/FeedCommentsItem.vue.d.ts.map +1 -0
- package/dist/types/components/Feeds/FeedEngagement/FeedReactions.vue.d.ts +21 -0
- package/dist/types/components/Feeds/FeedEngagement/FeedReactions.vue.d.ts.map +1 -0
- package/dist/types/components/Feeds/FeedEngagement/ScrollToTopButton.vue.d.ts +3 -0
- package/dist/types/components/Feeds/FeedEngagement/ScrollToTopButton.vue.d.ts.map +1 -0
- package/dist/types/components/Feeds/FeedEngagement/commentInputChrome.d.ts +3 -0
- package/dist/types/components/Feeds/FeedEngagement/commentInputChrome.d.ts.map +1 -0
- package/dist/types/components/Feeds/FeedEngagement/emoji/IdwEmoji.vue.d.ts +10 -0
- package/dist/types/components/Feeds/FeedEngagement/emoji/IdwEmoji.vue.d.ts.map +1 -0
- package/dist/types/components/Feeds/FeedEngagement/emoji/IdwEmojiButton.vue.d.ts +22 -0
- package/dist/types/components/Feeds/FeedEngagement/emoji/IdwEmojiButton.vue.d.ts.map +1 -0
- package/dist/types/components/Feeds/FeedEngagement/emoji/IdwEmojiPicker.vue.d.ts +48 -0
- package/dist/types/components/Feeds/FeedEngagement/emoji/IdwEmojiPicker.vue.d.ts.map +1 -0
- package/dist/types/components/Feeds/FeedEngagement/emoji/emojiDisplay.d.ts +4 -0
- package/dist/types/components/Feeds/FeedEngagement/emoji/emojiDisplay.d.ts.map +1 -0
- package/dist/types/components/Feeds/FeedEngagement/emoji/emojiIndex.d.ts +3 -0
- package/dist/types/components/Feeds/FeedEngagement/emoji/emojiIndex.d.ts.map +1 -0
- package/dist/types/components/Feeds/FeedEngagement/emoji/emojiPickerTheme.d.ts +3 -0
- package/dist/types/components/Feeds/FeedEngagement/emoji/emojiPickerTheme.d.ts.map +1 -0
- package/dist/types/components/Feeds/FeedEngagement/index.d.ts +9 -0
- package/dist/types/components/Feeds/FeedEngagement/index.d.ts.map +1 -0
- package/dist/types/components/Feeds/FeedEngagement/types.d.ts +32 -0
- package/dist/types/components/Feeds/FeedEngagement/types.d.ts.map +1 -0
- package/package.json +8 -1
|
@@ -0,0 +1,768 @@
|
|
|
1
|
+
import { defineComponent as E, computed as I, openBlock as n, createElementBlock as v, createElementVNode as g, toDisplayString as x, createVNode as h, unref as i, ref as w, watch as X, normalizeClass as L, Fragment as M, createBlock as j, createCommentVNode as V, withCtx as C, createTextVNode as O, withModifiers as Q, onBeforeUnmount as Z, renderList as q, normalizeStyle as _, renderSlot as P, withDirectives as D, vShow as U, withKeys as B } from "vue";
|
|
2
|
+
import { OrSortingV3 as ee, OrRichTextEditorV3 as te, OrIconButtonV3 as z, OrAvatarV3 as Y, OrMenuV3 as oe, OrMenuItemV3 as H, OrConfirmV3 as ae, OrIconV3 as N, OrPopoverV3 as re, OrSearchV3 as ne, OrTooltipV3 as ie } from "@onereach/ui-components";
|
|
3
|
+
import le from "@onereach/idw-markdown-renderer";
|
|
4
|
+
import "emoji-mart-vue-fast/css/emoji-mart.css";
|
|
5
|
+
import { EmojiIndex as de, Emoji as se, Picker as me } from "emoji-mart-vue-fast/src";
|
|
6
|
+
import ce from "emoji-mart-vue-fast/data/apple.json";
|
|
7
|
+
const ue = { class: "flex items-center justify-between" }, pe = { class: "typography-body-2-semibold text-on-background dark:text-on-background-dark" }, be = /* @__PURE__ */ E({
|
|
8
|
+
name: "FeedCommentsHeader",
|
|
9
|
+
__name: "FeedCommentsHeader",
|
|
10
|
+
props: {
|
|
11
|
+
countLabel: {},
|
|
12
|
+
sort: {},
|
|
13
|
+
sortNewestLabel: {},
|
|
14
|
+
sortOldestLabel: {}
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:sort"],
|
|
17
|
+
setup(e, { emit: u }) {
|
|
18
|
+
const a = e, d = u, m = I(() => [
|
|
19
|
+
{ label: a.sortNewestLabel, value: "updated_at-desc" },
|
|
20
|
+
{ label: a.sortOldestLabel, value: "updated_at-asc" }
|
|
21
|
+
]);
|
|
22
|
+
return (f, l) => (n(), v("div", ue, [
|
|
23
|
+
g("span", pe, x(e.countLabel), 1),
|
|
24
|
+
h(i(ee), {
|
|
25
|
+
"model-value": e.sort,
|
|
26
|
+
options: m.value,
|
|
27
|
+
"onUpdate:modelValue": l[0] || (l[0] = (k) => d("update:sort", k))
|
|
28
|
+
}, null, 8, ["model-value", "options"])
|
|
29
|
+
]));
|
|
30
|
+
}
|
|
31
|
+
}), K = "idw-feed-comments-input", fe = `
|
|
32
|
+
.feed-comments-input {
|
|
33
|
+
max-width: 100%;
|
|
34
|
+
}
|
|
35
|
+
.feed-comments-input .or-input-box-v3 {
|
|
36
|
+
padding-bottom: 44px;
|
|
37
|
+
background-color: transparent;
|
|
38
|
+
border-color: var(--or-c-surface-variant-light);
|
|
39
|
+
border-radius: 24px;
|
|
40
|
+
transition: none !important;
|
|
41
|
+
}
|
|
42
|
+
.feed-comments-input .or-input-box-v3:hover,
|
|
43
|
+
.feed-comments-input .or-input-box-v3:active,
|
|
44
|
+
.feed-comments-input .or-input-box-v3:focus-within {
|
|
45
|
+
background-color: transparent !important;
|
|
46
|
+
}
|
|
47
|
+
.feed-comments-input .or-input-box-v3:focus-within {
|
|
48
|
+
outline-color: transparent !important;
|
|
49
|
+
border-color: var(--or-c-primary-light);
|
|
50
|
+
}
|
|
51
|
+
.feed-comments-input .or-input-box-v3 > .layout-row {
|
|
52
|
+
--or-c-disabled-dark: var(--or-c-surface-variant-dark);
|
|
53
|
+
--or-c-disabled-light: var(--or-c-surface-variant-light);
|
|
54
|
+
gap: 0;
|
|
55
|
+
align-items: center;
|
|
56
|
+
padding: 16px;
|
|
57
|
+
border-bottom-color: var(--or-c-surface-variant-light) !important;
|
|
58
|
+
transition: none;
|
|
59
|
+
}
|
|
60
|
+
.feed-comments-input .or-input-box-v3 > .layout-row > .layout-row {
|
|
61
|
+
gap: 16px;
|
|
62
|
+
padding: 0;
|
|
63
|
+
border-right-width: 0;
|
|
64
|
+
}
|
|
65
|
+
.feed-comments-input .or-input-box-v3 .or-icon-button-v3 {
|
|
66
|
+
--or-c-on-disabled-dark: var(--or-c-outline-dark);
|
|
67
|
+
--or-c-on-disabled-light: var(--or-c-outline-light);
|
|
68
|
+
width: 16px;
|
|
69
|
+
min-width: 16px;
|
|
70
|
+
height: 16px;
|
|
71
|
+
min-height: 16px;
|
|
72
|
+
padding: 0;
|
|
73
|
+
transition: none;
|
|
74
|
+
}
|
|
75
|
+
.feed-comments-input .or-input-box-v3 .or-icon-button-v3[disabled] {
|
|
76
|
+
color: var(--or-c-outline-light) !important;
|
|
77
|
+
opacity: 1;
|
|
78
|
+
}
|
|
79
|
+
.feed-comments-input .or-input-box-v3 .or-icon-v3 {
|
|
80
|
+
width: 16px;
|
|
81
|
+
height: 16px;
|
|
82
|
+
font-size: 16px;
|
|
83
|
+
line-height: 16px;
|
|
84
|
+
}
|
|
85
|
+
.feed-comments-input div.overflow-auto {
|
|
86
|
+
height: auto !important;
|
|
87
|
+
min-height: 61px !important;
|
|
88
|
+
padding: 16px 16px 24px !important;
|
|
89
|
+
}
|
|
90
|
+
.feed-comments-input .or-cm-paragraph {
|
|
91
|
+
margin: 0;
|
|
92
|
+
}
|
|
93
|
+
.feed-comments-input .or-cm-placeholder.is-editor-empty::before {
|
|
94
|
+
color: var(--or-c-outline-light);
|
|
95
|
+
}
|
|
96
|
+
.dark .feed-comments-input .or-input-box-v3,
|
|
97
|
+
[data-theme='dark'] .feed-comments-input .or-input-box-v3 {
|
|
98
|
+
border-color: var(--or-c-surface-variant-dark);
|
|
99
|
+
}
|
|
100
|
+
.dark .feed-comments-input .or-input-box-v3:focus-within,
|
|
101
|
+
[data-theme='dark'] .feed-comments-input .or-input-box-v3:focus-within {
|
|
102
|
+
border-color: var(--or-c-primary-dark);
|
|
103
|
+
}
|
|
104
|
+
.dark .feed-comments-input .or-input-box-v3 > .layout-row,
|
|
105
|
+
[data-theme='dark'] .feed-comments-input .or-input-box-v3 > .layout-row {
|
|
106
|
+
border-bottom-color: var(--or-c-surface-variant-dark) !important;
|
|
107
|
+
}
|
|
108
|
+
.dark .feed-comments-input .or-input-box-v3 .or-icon-button-v3[disabled],
|
|
109
|
+
[data-theme='dark'] .feed-comments-input .or-input-box-v3 .or-icon-button-v3[disabled] {
|
|
110
|
+
color: var(--or-c-outline-dark) !important;
|
|
111
|
+
}
|
|
112
|
+
.dark .feed-comments-input .or-cm-placeholder.is-editor-empty::before,
|
|
113
|
+
[data-theme='dark'] .feed-comments-input .or-cm-placeholder.is-editor-empty::before {
|
|
114
|
+
color: var(--or-c-outline-dark);
|
|
115
|
+
}
|
|
116
|
+
.idw-emoji.emoji-mart-emoji {
|
|
117
|
+
display: inline-flex;
|
|
118
|
+
flex-shrink: 0;
|
|
119
|
+
align-items: center;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
padding: 0;
|
|
122
|
+
line-height: 0;
|
|
123
|
+
vertical-align: middle;
|
|
124
|
+
}
|
|
125
|
+
.idw-emoji.emoji-mart-emoji > span {
|
|
126
|
+
display: block;
|
|
127
|
+
}
|
|
128
|
+
.idw-emoji-button__emoji {
|
|
129
|
+
line-height: 0;
|
|
130
|
+
}
|
|
131
|
+
`;
|
|
132
|
+
function R() {
|
|
133
|
+
if (typeof document > "u" || document.getElementById(K))
|
|
134
|
+
return;
|
|
135
|
+
const e = document.createElement("style");
|
|
136
|
+
e.id = K, e.textContent = fe, document.head.appendChild(e);
|
|
137
|
+
}
|
|
138
|
+
const ke = { class: "relative" }, ve = {
|
|
139
|
+
key: 0,
|
|
140
|
+
class: "pointer-events-none absolute bottom-0 right-0 flex h-[44px] w-full items-center justify-end gap-sm pb-[8px] pr-[8px]"
|
|
141
|
+
}, G = /* @__PURE__ */ E({
|
|
142
|
+
name: "FeedCommentsInput",
|
|
143
|
+
__name: "FeedCommentsInput",
|
|
144
|
+
props: {
|
|
145
|
+
modelValue: { default: "" },
|
|
146
|
+
isEditing: { type: Boolean, default: !1 },
|
|
147
|
+
placeholder: { default: "Add a comment..." }
|
|
148
|
+
},
|
|
149
|
+
emits: ["update:modelValue", "submit", "cancel"],
|
|
150
|
+
setup(e, { emit: u }) {
|
|
151
|
+
const a = e, d = u;
|
|
152
|
+
R();
|
|
153
|
+
const m = [
|
|
154
|
+
["bold", "italic", "strike", "underline"]
|
|
155
|
+
], f = w(a.modelValue), l = I({
|
|
156
|
+
get() {
|
|
157
|
+
return f.value;
|
|
158
|
+
},
|
|
159
|
+
set(p) {
|
|
160
|
+
f.value = p, d("update:modelValue", p);
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
X(() => a.modelValue, (p) => {
|
|
164
|
+
f.value = p;
|
|
165
|
+
});
|
|
166
|
+
function k() {
|
|
167
|
+
if (a.isEditing && a.modelValue === l.value) {
|
|
168
|
+
d("cancel");
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
const p = l.value.replaceAll(/\*\* _/g, "**_").replaceAll(/_ \*\*/g, "_**").trim();
|
|
172
|
+
d("submit", p);
|
|
173
|
+
}
|
|
174
|
+
return (p, c) => (n(), v("div", ke, [
|
|
175
|
+
h(i(te), {
|
|
176
|
+
modelValue: l.value,
|
|
177
|
+
"onUpdate:modelValue": c[0] || (c[0] = (s) => l.value = s),
|
|
178
|
+
format: "markdown",
|
|
179
|
+
class: L(["feed-comments-input w-full overflow-hidden rounded-[24px] border border-outline-variant bg-transparent dark:border-outline-variant-dark", { "!max-h-[200px]": !e.isEditing }]),
|
|
180
|
+
toolbar: m,
|
|
181
|
+
placeholder: e.placeholder
|
|
182
|
+
}, null, 8, ["modelValue", "class", "placeholder"]),
|
|
183
|
+
l.value ? (n(), v("div", ve, [
|
|
184
|
+
e.isEditing ? (n(), v(M, { key: 0 }, [
|
|
185
|
+
h(i(z), {
|
|
186
|
+
class: "pointer-events-auto",
|
|
187
|
+
color: "default",
|
|
188
|
+
icon: "close",
|
|
189
|
+
size: "m",
|
|
190
|
+
onClick: c[1] || (c[1] = (s) => d("cancel"))
|
|
191
|
+
}),
|
|
192
|
+
h(i(z), {
|
|
193
|
+
class: "pointer-events-auto",
|
|
194
|
+
color: "primary",
|
|
195
|
+
icon: "check",
|
|
196
|
+
size: "m",
|
|
197
|
+
onClick: k
|
|
198
|
+
})
|
|
199
|
+
], 64)) : (n(), j(i(z), {
|
|
200
|
+
key: 1,
|
|
201
|
+
class: "pointer-events-auto",
|
|
202
|
+
color: "primary",
|
|
203
|
+
icon: "send",
|
|
204
|
+
size: "m",
|
|
205
|
+
onClick: k
|
|
206
|
+
}))
|
|
207
|
+
])) : V("", !0)
|
|
208
|
+
]));
|
|
209
|
+
}
|
|
210
|
+
}), ge = { class: "flex items-start overflow-x-hidden" }, he = { class: "flex w-full max-w-full flex-col gap-xs overflow-x-hidden text-on-background dark:text-on-background-dark" }, ye = { class: "flex items-center pt-xs" }, xe = { class: "typography-body-2-semibold mr-sm" }, we = ["title"], je = { class: "flex flex-col gap-md" }, Ce = { class: "typography-body-2-regular" }, $e = { class: "typography-body-2-regular max-h-[min(40vh,320px)] overflow-auto [overflow-wrap:anywhere] rounded-md border border-outline-variant p-sm theme-background-surface-1 dark:border-outline-variant-dark dark:theme-background-surface-1-dark" }, Ee = /* @__PURE__ */ E({
|
|
211
|
+
name: "FeedCommentsItem",
|
|
212
|
+
__name: "FeedCommentsItem",
|
|
213
|
+
props: {
|
|
214
|
+
comment: {},
|
|
215
|
+
labels: {},
|
|
216
|
+
updateComment: { type: Function }
|
|
217
|
+
},
|
|
218
|
+
emits: ["edit", "delete"],
|
|
219
|
+
setup(e, { emit: u }) {
|
|
220
|
+
const a = e, d = u, m = w(null), f = w(null), l = w(!1), k = w(!1);
|
|
221
|
+
function p() {
|
|
222
|
+
d("edit", !0), k.value = !0, l.value = !1;
|
|
223
|
+
}
|
|
224
|
+
function c() {
|
|
225
|
+
d("edit", !1), k.value = !1;
|
|
226
|
+
}
|
|
227
|
+
async function s(b) {
|
|
228
|
+
try {
|
|
229
|
+
await a.updateComment(a.comment.id, b), c();
|
|
230
|
+
} catch (o) {
|
|
231
|
+
console.error(o);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
function T() {
|
|
235
|
+
var b, o;
|
|
236
|
+
d("delete", a.comment.id), (o = (b = f.value) == null ? void 0 : b.close) == null || o.call(b);
|
|
237
|
+
}
|
|
238
|
+
return (b, o) => {
|
|
239
|
+
var S;
|
|
240
|
+
return n(), v("div", ge, [
|
|
241
|
+
e.comment.deleted ? (n(), j(i(Y), {
|
|
242
|
+
key: 0,
|
|
243
|
+
icon: "person_off",
|
|
244
|
+
color: "grey",
|
|
245
|
+
size: "m",
|
|
246
|
+
class: "mr-sm"
|
|
247
|
+
})) : (n(), j(i(Y), {
|
|
248
|
+
key: 1,
|
|
249
|
+
src: e.comment.avatarSrc,
|
|
250
|
+
size: "m",
|
|
251
|
+
class: "mr-sm"
|
|
252
|
+
}, {
|
|
253
|
+
default: C(() => [
|
|
254
|
+
O(x(e.comment.avatarAbbr), 1)
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}, 8, ["src"])),
|
|
258
|
+
g("div", he, [
|
|
259
|
+
g("span", ye, [
|
|
260
|
+
g("span", xe, x(e.comment.authorName), 1),
|
|
261
|
+
g("time", {
|
|
262
|
+
class: "typography-caption-regular text-outline dark:text-outline-dark",
|
|
263
|
+
title: e.comment.timeTitle
|
|
264
|
+
}, x(e.comment.timeLabel), 9, we),
|
|
265
|
+
e.comment.owned ? (n(), j(i(z), {
|
|
266
|
+
key: 0,
|
|
267
|
+
ref_key: "menuButton",
|
|
268
|
+
ref: m,
|
|
269
|
+
class: "ml-auto",
|
|
270
|
+
icon: "more_vert",
|
|
271
|
+
onClick: o[0] || (o[0] = Q((y) => l.value = !0, ["stop"]))
|
|
272
|
+
}, null, 512)) : V("", !0)
|
|
273
|
+
]),
|
|
274
|
+
k.value ? (n(), j(G, {
|
|
275
|
+
key: 1,
|
|
276
|
+
class: "relative flex-1",
|
|
277
|
+
"is-editing": "",
|
|
278
|
+
"model-value": e.comment.body,
|
|
279
|
+
placeholder: e.labels.placeholder,
|
|
280
|
+
onCancel: c,
|
|
281
|
+
onSubmit: s
|
|
282
|
+
}, null, 8, ["model-value", "placeholder"])) : (n(), j(i(le), {
|
|
283
|
+
key: 0,
|
|
284
|
+
class: "comment__text m-0 hyphens-auto [overflow-wrap:anywhere] styled-content typography-body-2-regular text-on-background dark:text-on-background-dark",
|
|
285
|
+
text: e.comment.body
|
|
286
|
+
}, null, 8, ["text"]))
|
|
287
|
+
]),
|
|
288
|
+
e.comment.owned ? (n(), j(i(oe), {
|
|
289
|
+
key: 2,
|
|
290
|
+
"is-open": l.value,
|
|
291
|
+
trigger: (S = m.value) == null ? void 0 : S.root,
|
|
292
|
+
placement: "bottom-end",
|
|
293
|
+
onClose: o[2] || (o[2] = (y) => l.value = !1)
|
|
294
|
+
}, {
|
|
295
|
+
default: C(() => [
|
|
296
|
+
h(i(H), {
|
|
297
|
+
icon: "edit",
|
|
298
|
+
"data-testid": "edit-comment-btn",
|
|
299
|
+
onClick: p
|
|
300
|
+
}, {
|
|
301
|
+
default: C(() => [
|
|
302
|
+
O(x(e.labels.edit), 1)
|
|
303
|
+
]),
|
|
304
|
+
_: 1
|
|
305
|
+
}),
|
|
306
|
+
o[3] || (o[3] = g("div", { class: "theme-background-outline-variant dark:theme-background-outline-variant-dark h-[1px] w-full last:hidden" }, null, -1)),
|
|
307
|
+
h(i(H), {
|
|
308
|
+
icon: "delete",
|
|
309
|
+
"data-testid": "delete-comment-btn",
|
|
310
|
+
onClick: o[1] || (o[1] = (y) => {
|
|
311
|
+
var t, r;
|
|
312
|
+
return (r = (t = f.value) == null ? void 0 : t.open) == null ? void 0 : r.call(t);
|
|
313
|
+
})
|
|
314
|
+
}, {
|
|
315
|
+
default: C(() => [
|
|
316
|
+
O(x(e.labels.delete), 1)
|
|
317
|
+
]),
|
|
318
|
+
_: 1
|
|
319
|
+
})
|
|
320
|
+
]),
|
|
321
|
+
_: 1
|
|
322
|
+
}, 8, ["is-open", "trigger"])) : V("", !0),
|
|
323
|
+
h(i(ae), {
|
|
324
|
+
ref_key: "confirm",
|
|
325
|
+
ref: f,
|
|
326
|
+
"confirm-type": "d",
|
|
327
|
+
class: "my-auto max-h-[min(90vh,640px)] self-center overflow-hidden",
|
|
328
|
+
"title-text": e.labels.deleteConfirmTitle,
|
|
329
|
+
"cancel-button-text": e.labels.deleteConfirmCancel,
|
|
330
|
+
"confirm-button-text": e.labels.deleteConfirmApprove,
|
|
331
|
+
onConfirm: T
|
|
332
|
+
}, {
|
|
333
|
+
default: C(() => [
|
|
334
|
+
g("div", je, [
|
|
335
|
+
g("p", Ce, x(e.labels.deleteConfirmMessage), 1),
|
|
336
|
+
g("div", $e, x(e.comment.body), 1)
|
|
337
|
+
])
|
|
338
|
+
]),
|
|
339
|
+
_: 1
|
|
340
|
+
}, 8, ["title-text", "cancel-button-text", "confirm-button-text"])
|
|
341
|
+
]);
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
}), Se = {
|
|
345
|
+
type: "button",
|
|
346
|
+
class: "layout-inline-row fixed bottom-lg right-[24px] h-[40px] w-[40px] cursor-pointer justify-center rounded-full border-1 border-solid border-transparent text-outline theme-background-default hover:border-outline hover:theme-background-overlay md:right-[42px] md:h-[32px] md:w-[32px] dark:text-outline-dark dark:theme-background-default-dark dark:hover:border-outline-dark hover:dark:theme-background-overlay-dark"
|
|
347
|
+
}, Ve = /* @__PURE__ */ E({
|
|
348
|
+
name: "FeedCommentsScrollTop",
|
|
349
|
+
__name: "ScrollToTopButton",
|
|
350
|
+
setup(e) {
|
|
351
|
+
return (u, a) => (n(), v("button", Se, [
|
|
352
|
+
h(i(N), { icon: "arrow_upward" })
|
|
353
|
+
]));
|
|
354
|
+
}
|
|
355
|
+
}), Ie = {
|
|
356
|
+
key: 2,
|
|
357
|
+
class: "flex h-[80px] flex-col items-center justify-center gap-xs pb-md text-center"
|
|
358
|
+
}, Te = { class: "typography-headline-4 text-on-background dark:text-on-background-dark" }, Be = { class: "typography-caption-regular text-outline dark:text-outline-dark" }, Ze = /* @__PURE__ */ E({
|
|
359
|
+
name: "FeedComments",
|
|
360
|
+
__name: "FeedComments",
|
|
361
|
+
props: {
|
|
362
|
+
comments: { default: () => [] },
|
|
363
|
+
canComment: { type: Boolean, default: !1 },
|
|
364
|
+
labels: {},
|
|
365
|
+
sort: { default: "updated_at-desc" },
|
|
366
|
+
scrollContainer: { default: void 0 },
|
|
367
|
+
updateComment: { type: Function, default: void 0 }
|
|
368
|
+
},
|
|
369
|
+
emits: ["submit", "delete", "update:sort"],
|
|
370
|
+
setup(e, { emit: u }) {
|
|
371
|
+
const a = e, d = u, m = w(null), f = w(null), l = w(""), k = w(!1), p = w(0), c = I(() => !a.scrollContainer || !m.value || !f.value ? !1 : p.value > f.value.offsetTop);
|
|
372
|
+
function s() {
|
|
373
|
+
const t = i(a.scrollContainer);
|
|
374
|
+
p.value = (t == null ? void 0 : t.scrollTop) ?? 0;
|
|
375
|
+
}
|
|
376
|
+
function T(t) {
|
|
377
|
+
t == null || t.addEventListener("scroll", s, { passive: !0 });
|
|
378
|
+
}
|
|
379
|
+
function b(t) {
|
|
380
|
+
t == null || t.removeEventListener("scroll", s);
|
|
381
|
+
}
|
|
382
|
+
X(() => i(a.scrollContainer), (t, r) => {
|
|
383
|
+
b(r), T(t), s();
|
|
384
|
+
}, { immediate: !0 }), Z(() => {
|
|
385
|
+
b(i(a.scrollContainer));
|
|
386
|
+
});
|
|
387
|
+
function o(t) {
|
|
388
|
+
d("submit", t), l.value = "";
|
|
389
|
+
}
|
|
390
|
+
function S() {
|
|
391
|
+
var t;
|
|
392
|
+
(t = m.value) == null || t.scrollIntoView({
|
|
393
|
+
block: "start",
|
|
394
|
+
behavior: "smooth"
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
async function y(t, r) {
|
|
398
|
+
var $;
|
|
399
|
+
await (($ = a.updateComment) == null ? void 0 : $.call(a, t, r));
|
|
400
|
+
}
|
|
401
|
+
return (t, r) => (n(), v("div", {
|
|
402
|
+
ref_key: "commentSection",
|
|
403
|
+
ref: m,
|
|
404
|
+
class: "feed-comments mt-md flex flex-col"
|
|
405
|
+
}, [
|
|
406
|
+
e.canComment ? (n(), j(G, {
|
|
407
|
+
key: 0,
|
|
408
|
+
modelValue: l.value,
|
|
409
|
+
"onUpdate:modelValue": r[0] || (r[0] = ($) => l.value = $),
|
|
410
|
+
"is-editing": k.value,
|
|
411
|
+
placeholder: e.labels.placeholder,
|
|
412
|
+
class: "mb-md",
|
|
413
|
+
onSubmit: o
|
|
414
|
+
}, null, 8, ["modelValue", "is-editing", "placeholder"])) : V("", !0),
|
|
415
|
+
h(be, {
|
|
416
|
+
"count-label": e.labels.count,
|
|
417
|
+
sort: e.sort,
|
|
418
|
+
"sort-newest-label": e.labels.sortNewest,
|
|
419
|
+
"sort-oldest-label": e.labels.sortOldest,
|
|
420
|
+
class: "mb-md",
|
|
421
|
+
"onUpdate:sort": r[1] || (r[1] = ($) => d("update:sort", $))
|
|
422
|
+
}, null, 8, ["count-label", "sort", "sort-newest-label", "sort-oldest-label"]),
|
|
423
|
+
e.comments.length ? (n(), v("div", {
|
|
424
|
+
key: 1,
|
|
425
|
+
ref_key: "commentsList",
|
|
426
|
+
ref: f,
|
|
427
|
+
class: "flex flex-col gap-md pb-md"
|
|
428
|
+
}, [
|
|
429
|
+
(n(!0), v(M, null, q(e.comments, ($) => (n(), j(Ee, {
|
|
430
|
+
key: $.id,
|
|
431
|
+
comment: $,
|
|
432
|
+
labels: e.labels,
|
|
433
|
+
"update-comment": y,
|
|
434
|
+
onEdit: r[2] || (r[2] = (A) => k.value = A),
|
|
435
|
+
onDelete: r[3] || (r[3] = (A) => d("delete", A))
|
|
436
|
+
}, null, 8, ["comment", "labels"]))), 128)),
|
|
437
|
+
c.value ? (n(), j(Ve, {
|
|
438
|
+
key: 0,
|
|
439
|
+
onClick: S
|
|
440
|
+
})) : V("", !0)
|
|
441
|
+
], 512)) : (n(), v("div", Ie, [
|
|
442
|
+
g("p", Te, x(e.labels.emptyTitle), 1),
|
|
443
|
+
g("p", Be, x(e.labels.emptyText), 1)
|
|
444
|
+
]))
|
|
445
|
+
], 512));
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
function Le() {
|
|
449
|
+
if (typeof navigator > "u")
|
|
450
|
+
return !1;
|
|
451
|
+
const { userAgent: e, platform: u, maxTouchPoints: a } = navigator;
|
|
452
|
+
return /Macintosh|Mac OS X|iPhone|iPad|iPod/i.test(e) || u === "MacIntel" && a > 1;
|
|
453
|
+
}
|
|
454
|
+
function J() {
|
|
455
|
+
return Le() ? "apple" : "google";
|
|
456
|
+
}
|
|
457
|
+
const F = new de(ce), Oe = /* @__PURE__ */ E({
|
|
458
|
+
name: "IdwEmoji",
|
|
459
|
+
__name: "IdwEmoji",
|
|
460
|
+
props: {
|
|
461
|
+
emoji: {},
|
|
462
|
+
size: { default: 20 }
|
|
463
|
+
},
|
|
464
|
+
setup(e) {
|
|
465
|
+
const u = e;
|
|
466
|
+
R();
|
|
467
|
+
const a = J(), d = I(() => ({
|
|
468
|
+
width: `${u.size}px`,
|
|
469
|
+
height: `${u.size}px`
|
|
470
|
+
}));
|
|
471
|
+
return (m, f) => (n(), j(i(se), {
|
|
472
|
+
class: "idw-emoji",
|
|
473
|
+
style: _(d.value),
|
|
474
|
+
data: i(F),
|
|
475
|
+
emoji: e.emoji,
|
|
476
|
+
size: e.size,
|
|
477
|
+
set: i(a)
|
|
478
|
+
}, null, 8, ["style", "data", "emoji", "size", "set"]));
|
|
479
|
+
}
|
|
480
|
+
}), ze = { class: "idw-emoji-button__emoji flex shrink-0 items-center justify-center" }, Fe = /* @__PURE__ */ E({
|
|
481
|
+
name: "IdwEmojiButton",
|
|
482
|
+
__name: "IdwEmojiButton",
|
|
483
|
+
props: {
|
|
484
|
+
selected: { type: Boolean, default: !1 },
|
|
485
|
+
disabled: { type: Boolean, default: !1 },
|
|
486
|
+
count: { default: 1 }
|
|
487
|
+
},
|
|
488
|
+
setup(e) {
|
|
489
|
+
const u = e;
|
|
490
|
+
R();
|
|
491
|
+
const a = I(() => [
|
|
492
|
+
"idw-emoji-button",
|
|
493
|
+
"inline-flex items-center justify-center gap-[6px] px-sm py-xs rounded-[24px]",
|
|
494
|
+
"typography-body-2-regular leading-none",
|
|
495
|
+
"border-0",
|
|
496
|
+
...u.disabled ? [] : [
|
|
497
|
+
"hover:bg-primary-opacity-0-12 active:bg-primary-opacity-0-12",
|
|
498
|
+
"dark:hover:bg-primary-opacity-0-12-dark dark:active:bg-primary-opacity-0-12-dark"
|
|
499
|
+
],
|
|
500
|
+
...u.selected ? [
|
|
501
|
+
"bg-secondary-container dark:bg-secondary-container-dark",
|
|
502
|
+
"hover:bg-secondary-container dark:hover:bg-secondary-container-dark"
|
|
503
|
+
] : ["bg-primary-opacity-0-08 dark:bg-primary-opacity-0-08-dark"]
|
|
504
|
+
]);
|
|
505
|
+
return (d, m) => (n(), v("button", {
|
|
506
|
+
class: L(a.value),
|
|
507
|
+
type: "button"
|
|
508
|
+
}, [
|
|
509
|
+
g("span", ze, [
|
|
510
|
+
P(d.$slots, "default")
|
|
511
|
+
]),
|
|
512
|
+
g("span", {
|
|
513
|
+
class: L(["text-on-background dark:text-on-background-dark", { "!text-on-disabled dark:!text-on-disabled-dark": e.disabled }])
|
|
514
|
+
}, x(e.count), 3)
|
|
515
|
+
], 2));
|
|
516
|
+
}
|
|
517
|
+
}), W = "idw-emoji-picker-theme", Ae = `
|
|
518
|
+
.dark .idw-emoji-picker-mart.emoji-mart,
|
|
519
|
+
[data-theme='dark'] .idw-emoji-picker-mart.emoji-mart {
|
|
520
|
+
color: var(--or-c-on-background-dark, #e3e2e6);
|
|
521
|
+
background-color: var(--or-c-surface-1-dark, #1b1b1d);
|
|
522
|
+
border-color: var(--or-c-outline-variant-dark, #44474e);
|
|
523
|
+
}
|
|
524
|
+
.dark .idw-emoji-picker-mart.emoji-mart .emoji-mart-bar,
|
|
525
|
+
[data-theme='dark'] .idw-emoji-picker-mart.emoji-mart .emoji-mart-bar {
|
|
526
|
+
border-color: var(--or-c-outline-variant-dark, #44474e);
|
|
527
|
+
}
|
|
528
|
+
.dark .idw-emoji-picker-mart.emoji-mart .emoji-mart-anchors,
|
|
529
|
+
[data-theme='dark'] .idw-emoji-picker-mart.emoji-mart .emoji-mart-anchors {
|
|
530
|
+
color: var(--or-c-on-surface-variant-dark, #c4c6d0);
|
|
531
|
+
}
|
|
532
|
+
.dark .idw-emoji-picker-mart.emoji-mart .emoji-mart-anchor:hover,
|
|
533
|
+
.dark .idw-emoji-picker-mart.emoji-mart .emoji-mart-anchor-selected,
|
|
534
|
+
[data-theme='dark'] .idw-emoji-picker-mart.emoji-mart .emoji-mart-anchor:hover,
|
|
535
|
+
[data-theme='dark'] .idw-emoji-picker-mart.emoji-mart .emoji-mart-anchor-selected {
|
|
536
|
+
color: var(--or-c-on-background-dark, #e3e2e6);
|
|
537
|
+
}
|
|
538
|
+
.dark .idw-emoji-picker-mart.emoji-mart .emoji-mart-anchor-bar,
|
|
539
|
+
[data-theme='dark'] .idw-emoji-picker-mart.emoji-mart .emoji-mart-anchor-bar {
|
|
540
|
+
background-color: var(--or-c-primary-dark, #adc6ff);
|
|
541
|
+
}
|
|
542
|
+
.dark .idw-emoji-picker-mart.emoji-mart .emoji-mart-category-label h3,
|
|
543
|
+
[data-theme='dark'] .idw-emoji-picker-mart.emoji-mart .emoji-mart-category-label h3 {
|
|
544
|
+
color: var(--or-c-on-background-dark, #e3e2e6);
|
|
545
|
+
background-color: var(--or-c-surface-1-dark, #1b1b1d);
|
|
546
|
+
}
|
|
547
|
+
.dark .idw-emoji-picker-mart.emoji-mart .emoji-mart-category .emoji-mart-emoji:hover::before,
|
|
548
|
+
.dark .idw-emoji-picker-mart.emoji-mart .emoji-mart-emoji-selected::before,
|
|
549
|
+
[data-theme='dark'] .idw-emoji-picker-mart.emoji-mart .emoji-mart-category .emoji-mart-emoji:hover::before,
|
|
550
|
+
[data-theme='dark'] .idw-emoji-picker-mart.emoji-mart .emoji-mart-emoji-selected::before {
|
|
551
|
+
background-color: var(--or-c-surface-3-dark, #2d2f36);
|
|
552
|
+
}
|
|
553
|
+
.dark .idw-emoji-picker-mart.emoji-mart .emoji-mart-no-results,
|
|
554
|
+
[data-theme='dark'] .idw-emoji-picker-mart.emoji-mart .emoji-mart-no-results {
|
|
555
|
+
color: var(--or-c-on-surface-variant-dark, #c4c6d0);
|
|
556
|
+
}
|
|
557
|
+
.dark .idw-emoji-picker-mart.emoji-mart .picker-search input,
|
|
558
|
+
[data-theme='dark'] .idw-emoji-picker-mart.emoji-mart .picker-search input {
|
|
559
|
+
color: var(--or-c-on-background-dark, #e3e2e6);
|
|
560
|
+
}
|
|
561
|
+
`;
|
|
562
|
+
function Pe() {
|
|
563
|
+
if (typeof document > "u" || document.getElementById(W))
|
|
564
|
+
return;
|
|
565
|
+
const e = document.createElement("style");
|
|
566
|
+
e.id = W, e.textContent = Ae, document.head.appendChild(e);
|
|
567
|
+
}
|
|
568
|
+
const Ne = { class: "idw-emoji-picker" }, Me = { class: "flex flex-wrap items-center gap-sm" }, Re = ["disabled"], De = ["disabled"], Ue = /* @__PURE__ */ E({
|
|
569
|
+
name: "IdwEmojiPicker",
|
|
570
|
+
__name: "IdwEmojiPicker",
|
|
571
|
+
props: {
|
|
572
|
+
compact: { type: Boolean, default: !1 },
|
|
573
|
+
isOpen: { type: Boolean, default: !1 },
|
|
574
|
+
disabled: { type: Boolean, default: !1 },
|
|
575
|
+
triggerIcon: { default: "add_reaction" },
|
|
576
|
+
triggerLabel: { default: "Add reaction" },
|
|
577
|
+
trigger: { default: null }
|
|
578
|
+
},
|
|
579
|
+
emits: ["select", "toggle", "close"],
|
|
580
|
+
setup(e, { emit: u }) {
|
|
581
|
+
const a = e, d = u;
|
|
582
|
+
Pe();
|
|
583
|
+
const m = w(null), f = I(() => a.trigger ?? m.value ?? void 0), l = w(null), k = w(""), p = J();
|
|
584
|
+
function c() {
|
|
585
|
+
a.disabled || d("toggle");
|
|
586
|
+
}
|
|
587
|
+
function s(b, o) {
|
|
588
|
+
o(b ?? "");
|
|
589
|
+
}
|
|
590
|
+
function T(b) {
|
|
591
|
+
b != null && b.id && d("select", { id: b.id });
|
|
592
|
+
}
|
|
593
|
+
return (b, o) => (n(), v("div", Ne, [
|
|
594
|
+
g("div", Me, [
|
|
595
|
+
P(b.$slots, "list", { emojiIndex: i(F) }),
|
|
596
|
+
P(b.$slots, "button", { onToggle: c }, () => [
|
|
597
|
+
e.compact ? D((n(), v("button", {
|
|
598
|
+
key: 0,
|
|
599
|
+
ref_key: "defaultTrigger",
|
|
600
|
+
ref: m,
|
|
601
|
+
type: "button",
|
|
602
|
+
class: "inline-flex items-center rounded-[24px] border-0 bg-primary-opacity-0-08 px-sm py-xs text-on-background hover:bg-primary-opacity-0-12 dark:bg-primary-opacity-0-08-dark dark:text-on-background-dark dark:hover:bg-primary-opacity-0-12-dark",
|
|
603
|
+
disabled: e.disabled,
|
|
604
|
+
onClick: c
|
|
605
|
+
}, [
|
|
606
|
+
h(i(N), {
|
|
607
|
+
icon: e.triggerIcon,
|
|
608
|
+
size: "m"
|
|
609
|
+
}, null, 8, ["icon"])
|
|
610
|
+
], 8, Re)), [
|
|
611
|
+
[U, !e.disabled]
|
|
612
|
+
]) : D((n(), v("button", {
|
|
613
|
+
key: 1,
|
|
614
|
+
ref_key: "defaultTrigger",
|
|
615
|
+
ref: m,
|
|
616
|
+
type: "button",
|
|
617
|
+
class: "inline-flex items-center gap-[6px] rounded-[24px] border-0 bg-primary-opacity-0-08 px-sm py-xs typography-body-2-regular hover:bg-primary-opacity-0-12 dark:bg-primary-opacity-0-08-dark dark:hover:bg-primary-opacity-0-12-dark",
|
|
618
|
+
disabled: e.disabled,
|
|
619
|
+
onClick: c
|
|
620
|
+
}, [
|
|
621
|
+
h(i(N), {
|
|
622
|
+
class: L({ "text-on-disabled dark:text-on-disabled-dark": e.disabled }),
|
|
623
|
+
icon: e.triggerIcon,
|
|
624
|
+
size: "m"
|
|
625
|
+
}, null, 8, ["class", "icon"]),
|
|
626
|
+
g("span", {
|
|
627
|
+
class: L(["text-on-background dark:text-on-background-dark", { "!text-on-disabled dark:!text-on-disabled-dark": e.disabled }])
|
|
628
|
+
}, x(e.triggerLabel), 3)
|
|
629
|
+
], 8, De)), [
|
|
630
|
+
[U, !e.disabled]
|
|
631
|
+
])
|
|
632
|
+
])
|
|
633
|
+
]),
|
|
634
|
+
h(i(re), {
|
|
635
|
+
"is-open": e.isOpen,
|
|
636
|
+
trigger: f.value,
|
|
637
|
+
placement: "bottom-start",
|
|
638
|
+
variant: "popover",
|
|
639
|
+
"disable-default-styles": "",
|
|
640
|
+
onClose: o[6] || (o[6] = (S) => d("close"))
|
|
641
|
+
}, {
|
|
642
|
+
default: C(() => [
|
|
643
|
+
h(i(me), {
|
|
644
|
+
ref_key: "picker",
|
|
645
|
+
ref: l,
|
|
646
|
+
data: i(F),
|
|
647
|
+
title: "",
|
|
648
|
+
"show-preview": !1,
|
|
649
|
+
"show-search": "",
|
|
650
|
+
set: i(p),
|
|
651
|
+
class: "idw-emoji-picker-mart",
|
|
652
|
+
onSelect: T
|
|
653
|
+
}, {
|
|
654
|
+
searchTemplate: C(({ onSearch: S }) => [
|
|
655
|
+
h(i(ne), {
|
|
656
|
+
modelValue: k.value,
|
|
657
|
+
"onUpdate:modelValue": o[0] || (o[0] = (y) => k.value = y),
|
|
658
|
+
class: "picker-search m-xs",
|
|
659
|
+
onSearch: (y) => s(y, S),
|
|
660
|
+
onKeydown: [
|
|
661
|
+
o[1] || (o[1] = B((y) => {
|
|
662
|
+
var t, r;
|
|
663
|
+
return (r = (t = l.value) == null ? void 0 : t.onArrowLeft) == null ? void 0 : r.call(t, y);
|
|
664
|
+
}, ["left"])),
|
|
665
|
+
o[2] || (o[2] = B((y) => {
|
|
666
|
+
var t, r;
|
|
667
|
+
return (r = (t = l.value) == null ? void 0 : t.onArrowRight) == null ? void 0 : r.call(t);
|
|
668
|
+
}, ["right"])),
|
|
669
|
+
o[3] || (o[3] = B((y) => {
|
|
670
|
+
var t, r;
|
|
671
|
+
return (r = (t = l.value) == null ? void 0 : t.onArrowDown) == null ? void 0 : r.call(t);
|
|
672
|
+
}, ["down"])),
|
|
673
|
+
o[4] || (o[4] = B((y) => {
|
|
674
|
+
var t, r;
|
|
675
|
+
return (r = (t = l.value) == null ? void 0 : t.onArrowUp) == null ? void 0 : r.call(t, y);
|
|
676
|
+
}, ["up"])),
|
|
677
|
+
o[5] || (o[5] = B((y) => {
|
|
678
|
+
var t, r;
|
|
679
|
+
return (r = (t = l.value) == null ? void 0 : t.onEnter) == null ? void 0 : r.call(t);
|
|
680
|
+
}, ["enter"]))
|
|
681
|
+
]
|
|
682
|
+
}, null, 8, ["modelValue", "onSearch"])
|
|
683
|
+
]),
|
|
684
|
+
_: 1
|
|
685
|
+
}, 8, ["data", "set"])
|
|
686
|
+
]),
|
|
687
|
+
_: 1
|
|
688
|
+
}, 8, ["is-open", "trigger"])
|
|
689
|
+
]));
|
|
690
|
+
}
|
|
691
|
+
}), Ye = { class: "max-w-[320px] text-wrap" }, He = {
|
|
692
|
+
key: 0,
|
|
693
|
+
class: "typography-caption-bold"
|
|
694
|
+
}, Ke = { key: 1 }, _e = /* @__PURE__ */ E({
|
|
695
|
+
name: "FeedReactions",
|
|
696
|
+
__name: "FeedReactions",
|
|
697
|
+
props: {
|
|
698
|
+
reactions: { default: () => [] },
|
|
699
|
+
authorNames: { default: () => ({}) },
|
|
700
|
+
ownLabel: { default: "You (click to remove)" },
|
|
701
|
+
addLabel: { default: "Add reaction" },
|
|
702
|
+
disabled: { type: Boolean, default: !1 }
|
|
703
|
+
},
|
|
704
|
+
emits: ["select"],
|
|
705
|
+
setup(e, { emit: u }) {
|
|
706
|
+
const a = e, d = u, m = w(!1), f = I(() => a.reactions.length > 0);
|
|
707
|
+
function l(p) {
|
|
708
|
+
var c;
|
|
709
|
+
return ((c = F.findEmoji(p)) == null ? void 0 : c.colons) ?? p;
|
|
710
|
+
}
|
|
711
|
+
function k(p) {
|
|
712
|
+
m.value = !1, d("select", p.id);
|
|
713
|
+
}
|
|
714
|
+
return (p, c) => (n(), j(Ue, {
|
|
715
|
+
"is-open": m.value,
|
|
716
|
+
disabled: e.disabled,
|
|
717
|
+
compact: f.value,
|
|
718
|
+
"trigger-label": e.addLabel,
|
|
719
|
+
onToggle: c[0] || (c[0] = (s) => m.value = !m.value),
|
|
720
|
+
onClose: c[1] || (c[1] = (s) => m.value = !1),
|
|
721
|
+
onSelect: k
|
|
722
|
+
}, {
|
|
723
|
+
list: C(() => [
|
|
724
|
+
(n(!0), v(M, null, q(e.reactions, (s) => (n(), j(i(ie), {
|
|
725
|
+
key: s.id,
|
|
726
|
+
placement: "top"
|
|
727
|
+
}, {
|
|
728
|
+
content: C(() => [
|
|
729
|
+
g("div", Ye, [
|
|
730
|
+
s.selected ? (n(), v("span", He, x(e.ownLabel), 1)) : V("", !0),
|
|
731
|
+
s.selected && e.authorNames[s.id] ? (n(), v("i", Ke, ", ")) : V("", !0),
|
|
732
|
+
O(" " + x(e.authorNames[s.id]) + " reacted with " + x(l(s.id)), 1)
|
|
733
|
+
])
|
|
734
|
+
]),
|
|
735
|
+
default: C(() => [
|
|
736
|
+
h(Fe, {
|
|
737
|
+
count: s.count,
|
|
738
|
+
selected: s.selected,
|
|
739
|
+
disabled: e.disabled,
|
|
740
|
+
onClick: (T) => k(s)
|
|
741
|
+
}, {
|
|
742
|
+
default: C(() => [
|
|
743
|
+
h(Oe, {
|
|
744
|
+
emoji: s.id,
|
|
745
|
+
size: 16
|
|
746
|
+
}, null, 8, ["emoji"])
|
|
747
|
+
]),
|
|
748
|
+
_: 2
|
|
749
|
+
}, 1032, ["count", "selected", "disabled", "onClick"])
|
|
750
|
+
]),
|
|
751
|
+
_: 2
|
|
752
|
+
}, 1024))), 128))
|
|
753
|
+
]),
|
|
754
|
+
_: 1
|
|
755
|
+
}, 8, ["is-open", "disabled", "compact", "trigger-label"]));
|
|
756
|
+
}
|
|
757
|
+
});
|
|
758
|
+
export {
|
|
759
|
+
Ze as FeedComments,
|
|
760
|
+
_e as FeedReactions,
|
|
761
|
+
Oe as IdwEmoji,
|
|
762
|
+
Fe as IdwEmojiButton,
|
|
763
|
+
Ue as IdwEmojiPicker,
|
|
764
|
+
F as emojiIndex,
|
|
765
|
+
J as getEmojiImageSet,
|
|
766
|
+
Le as isApplePlatform
|
|
767
|
+
};
|
|
768
|
+
//# sourceMappingURL=engagement.js.map
|