@kiva/kv-components 6.69.3 → 7.1.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.
@@ -1,5 +1,5 @@
1
1
  import r from "./KvUserAvatar.js";
2
- import { resolveComponent as o, openBlock as i, createElementBlock as a, createElementVNode as t, createVNode as c } from "vue";
2
+ import { resolveComponent as o, openBlock as a, createElementBlock as i, createElementVNode as t, createVNode as c } from "vue";
3
3
  import l from "../_virtual/_plugin-vue_export-helper.js";
4
4
  const s = {
5
5
  name: "KvActivityRow",
@@ -13,14 +13,15 @@ const s = {
13
13
  }
14
14
  }
15
15
  }, m = { class: "tw-flex tw-gap-x-1 tw-items-center" }, d = ["innerHTML"];
16
- function v(_, u, e, p, f, y) {
16
+ function v(_, p, e, u, f, w) {
17
17
  const n = o("KvUserAvatar");
18
- return i(), a("div", m, [
18
+ return a(), i("div", m, [
19
19
  t("div", null, [
20
20
  c(n, {
21
21
  "lender-name": e.activity.lenderName,
22
22
  "lender-image-url": e.activity.lenderImage,
23
- "is-small": !0
23
+ class: "tw-w-3 tw-h-3",
24
+ "is-small": ""
24
25
  }, null, 8, ["lender-name", "lender-image-url"])
25
26
  ]),
26
27
  t("div", null, [
@@ -1 +1 @@
1
- @media (min-width: 64rem){.aside-controls-content[data-v-bb42b5ff]{width:82%}}.circle-slide[data-v-bb42b5ff]{width:auto}.circle-slide.is-selected[data-v-bb42b5ff]{opacity:1;transform:scale(1.2);max-width:300px}.circle-slide[data-v-bb42b5ff]:not(.is-selected){opacity:.5;transform:scale(.7)}.circle-carousel[data-v-bb42b5ff]{margin:0 auto}
1
+ @media (min-width: 64rem){.aside-controls-content[data-v-7c085f82]{width:82%}}.circle-slide[data-v-7c085f82]{width:auto}.circle-slide.is-selected[data-v-7c085f82]{opacity:1;transform:scale(1.2);max-width:300px}.circle-slide[data-v-7c085f82]:not(.is-selected){opacity:.5;transform:scale(.7)}.circle-carousel[data-v-7c085f82]{margin:0 auto}
@@ -1,12 +1,13 @@
1
- import { mdiArrowLeft as L, mdiArrowRight as B, mdiChevronLeft as U, mdiChevronRight as V } from "@mdi/js";
2
- import { carouselUtil as E } from "../utils/carousels.js";
3
- import K from "./KvMaterialIcon.js";
4
- import { resolveComponent as M, openBlock as n, createElementBlock as a, normalizeClass as w, createElementVNode as i, Fragment as f, renderList as b, normalizeStyle as N, renderSlot as O, createVNode as c, toDisplayString as y, createCommentVNode as g } from "vue";
1
+ import { mdiArrowLeft as j, mdiArrowRight as A, mdiChevronLeft as B, mdiChevronRight as L } from "@mdi/js";
2
+ import { carouselUtil as K } from "../utils/carousels.js";
3
+ import U from "./KvMaterialIcon.js";
4
+ import { resolveComponent as V, openBlock as r, createElementBlock as n, normalizeClass as d, createElementVNode as i, Fragment as u, renderList as g, normalizeStyle as E, renderSlot as M, createVNode as c, toDisplayString as h, createCommentVNode as f } from "vue";
5
5
  import "./KvCarousel.css";
6
- import R from "../_virtual/_plugin-vue_export-helper.js";
7
- const W = {
6
+ import N from "../_virtual/_plugin-vue_export-helper.js";
7
+ const O = {
8
+ name: "KvCarousel",
8
9
  components: {
9
- KvMaterialIcon: K
10
+ KvMaterialIcon: U
10
11
  },
11
12
  props: {
12
13
  /**
@@ -52,7 +53,7 @@ const W = {
52
53
  slidesToScroll: {
53
54
  type: String,
54
55
  default: "auto",
55
- validator: (s) => ["visible", "auto"].indexOf(s) !== -1
56
+ validator: (w) => ["visible", "auto"].indexOf(w) !== -1
56
57
  },
57
58
  /**
58
59
  * CSS value and unit to set the max width on responsive slides.
@@ -83,164 +84,182 @@ const W = {
83
84
  inCircle: {
84
85
  type: Boolean,
85
86
  default: !1
87
+ },
88
+ /**
89
+ * Position carousel controls in the top right corner
90
+ * */
91
+ controlsTopRight: {
92
+ type: Boolean,
93
+ default: !1
86
94
  }
87
95
  },
88
96
  emits: [
89
97
  "change",
90
98
  "interact-carousel"
91
99
  ],
92
- setup(s, { emit: e, slots: l }) {
100
+ setup(w, { emit: l, slots: e }) {
93
101
  const {
94
102
  componentSlotKeys: t,
95
103
  currentIndex: m,
96
- embla: u,
97
- goToSlide: d,
98
- handleUserInteraction: r,
99
- isAriaHidden: o,
100
- isAutoplaying: x,
101
- nextIndex: h,
104
+ embla: b,
105
+ goToSlide: s,
106
+ handleUserInteraction: o,
107
+ isAriaHidden: a,
108
+ isAutoplaying: y,
109
+ nextIndex: x,
102
110
  previousIndex: v,
103
111
  reInit: C,
104
112
  reInitVisible: I,
105
113
  rootEl: k,
106
114
  slideIndicatorCount: S,
107
115
  slideIndicatorListLength: _,
108
- slides: A,
109
- toggleAutoPlay: j
110
- } = E(s, { emit: e, slots: l });
116
+ slides: R,
117
+ toggleAutoPlay: T
118
+ } = K(w, { emit: l, slots: e });
111
119
  return {
112
120
  componentSlotKeys: t,
113
121
  currentIndex: m,
114
- embla: u,
115
- goToSlide: d,
116
- handleUserInteraction: r,
117
- isAriaHidden: o,
118
- isAutoplaying: x,
119
- mdiArrowLeft: L,
120
- mdiArrowRight: B,
121
- mdiChevronLeft: U,
122
- mdiChevronRight: V,
123
- nextIndex: h,
122
+ embla: b,
123
+ goToSlide: s,
124
+ handleUserInteraction: o,
125
+ isAriaHidden: a,
126
+ isAutoplaying: y,
127
+ mdiArrowLeft: j,
128
+ mdiArrowRight: A,
129
+ mdiChevronLeft: B,
130
+ mdiChevronRight: L,
131
+ nextIndex: x,
124
132
  previousIndex: v,
125
133
  reInit: C,
126
134
  reInitVisible: I,
127
135
  rootEl: k,
128
136
  slideIndicatorCount: S,
129
137
  slideIndicatorListLength: _,
130
- slides: A,
131
- toggleAutoPlay: j
138
+ slides: R,
139
+ toggleAutoPlay: T
132
140
  };
133
141
  }
134
- }, D = ["aria-label", "aria-current", "aria-hidden", "tab-index"], H = ["disabled"], P = ["aria-label"], T = ["disabled"], z = {
142
+ }, W = ["aria-label", "aria-current", "aria-hidden", "tab-index"], D = ["disabled"], H = ["aria-label"], P = ["disabled"], z = {
135
143
  key: 1,
136
144
  class: "kv-carousel__controls tw-flex tw-justify-center tw-items-center tw-gap-1.5 tw-mt-4 tw-w-full"
137
- }, F = ["onClick"], p = {
145
+ }, F = ["onClick"], q = {
138
146
  class: "tw-hidden lg:tw-flex tw-absolute tw-h-full tw-top-0 tw-items-center",
139
147
  style: { background: "linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%)", width: "8%" }
140
- }, q = ["disabled"], G = {
148
+ }, G = ["disabled"], J = {
141
149
  class: "tw-hidden lg:tw-flex tw-absolute tw-h-full tw-top-0 tw-right-0 tw-items-center tw-justify-end tw-w-16",
142
150
  style: { background: "linear-gradient(270deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%)", width: "8%" }
143
- }, J = ["disabled"];
144
- function Q(s, e, l, t, m, u) {
145
- const d = M("kv-material-icon");
146
- return n(), a("section", {
151
+ }, Q = ["disabled"];
152
+ function X(w, l, e, t, m, b) {
153
+ const s = V("kv-material-icon");
154
+ return r(), n("section", {
147
155
  ref: "rootEl",
148
- class: w(["kv-carousel tw-overflow-hidden tw-w-full", { "lg:tw-relative": l.asideControls }]),
156
+ class: d(["kv-carousel tw-overflow-hidden tw-w-full", { "lg:tw-relative": e.asideControls, "tw-relative tw-pt-8": e.controlsTopRight }]),
149
157
  "aria-label": "carousel"
150
158
  }, [
151
159
  i("div", {
152
- class: w(["tw-flex tw-gap-x-4", {
153
- "tw-mx-auto aside-controls-content": l.asideControls,
154
- "circle-carousel": l.inCircle
160
+ class: d(["tw-flex tw-gap-x-4", {
161
+ "tw-mx-auto aside-controls-content": e.asideControls,
162
+ "circle-carousel": e.inCircle
155
163
  }])
156
164
  }, [
157
- (n(!0), a(f, null, b(t.componentSlotKeys, (r, o) => (n(), a("div", {
158
- key: o,
159
- class: w(["tw-flex-none tw-relative", { "tw-w-full": !l.multipleSlidesVisible || l.slideMaxWidth, "circle-slide": l.inCircle }]),
165
+ (r(!0), n(u, null, g(t.componentSlotKeys, (o, a) => (r(), n("div", {
166
+ key: a,
167
+ class: d(["tw-flex-none tw-relative", { "tw-w-full": !e.multipleSlidesVisible || e.slideMaxWidth, "circle-slide": e.inCircle }]),
160
168
  role: "group",
161
- "aria-label": `slide ${o + 1} of ${t.componentSlotKeys.length}`,
162
- "aria-current": t.currentIndex === o ? "true" : "false",
163
- "aria-hidden": t.isAriaHidden(o) ? "true" : "false",
164
- "tab-index": t.isAriaHidden(o) ? "-1" : !1,
165
- style: N(l.slideMaxWidth ? `max-width:${l.slideMaxWidth}` : "")
169
+ "aria-label": `slide ${a + 1} of ${t.componentSlotKeys.length}`,
170
+ "aria-current": t.currentIndex === a ? "true" : "false",
171
+ "aria-hidden": t.isAriaHidden(a) ? "true" : "false",
172
+ "tab-index": t.isAriaHidden(a) ? "-1" : !1,
173
+ style: E(e.slideMaxWidth ? `max-width:${e.slideMaxWidth}` : "")
166
174
  }, [
167
- O(s.$slots, r, {}, void 0, !0)
168
- ], 14, D))), 128))
175
+ M(w.$slots, o, {}, void 0, !0)
176
+ ], 14, W))), 128))
169
177
  ], 2),
170
- t.slideIndicatorCount > 1 && !l.isDotted ? (n(), a("div", {
178
+ t.slideIndicatorCount > 1 && !e.isDotted ? (r(), n("div", {
171
179
  key: 0,
172
- class: w(["kv-carousel__controls tw-flex tw-justify-between md:tw-justify-center tw-items-center tw-mt-4 tw-w-full", { "lg:tw-hidden": l.asideControls }])
180
+ class: d(["kv-carousel__controls tw-flex tw-justify-between tw-items-center tw-w-full", {
181
+ "lg:tw-hidden": e.asideControls,
182
+ "tw-mt-4 md:tw-justify-center": !e.controlsTopRight,
183
+ "md:tw-justify-end tw-absolute tw-top-0 tw-right-0 tw-w-auto tw-gap-2 tw-pr-1": e.controlsTopRight
184
+ }])
173
185
  }, [
174
186
  i("button", {
175
- class: "tw-text-primary tw-rounded-full tw-border-2 tw-border-primary tw-h-4 tw-w-4 tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default",
187
+ class: d(["tw-text-primary tw-h-4 tw-w-4 tw-rounded-full tw-border-primary tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default", {
188
+ "tw-border-2": !e.controlsTopRight,
189
+ "tw-bg-white tw-shadow-lg": e.controlsTopRight
190
+ }]),
176
191
  disabled: t.embla && !t.embla.canScrollPrev(),
177
- onClick: e[0] || (e[0] = (r) => t.handleUserInteraction(t.previousIndex, "click-left-arrow"))
192
+ onClick: l[0] || (l[0] = (o) => t.handleUserInteraction(t.previousIndex, "click-left-arrow"))
178
193
  }, [
179
- c(d, {
194
+ c(s, {
180
195
  class: "tw-w-4",
181
- icon: l.asideControls ? t.mdiArrowLeft : t.mdiChevronLeft
196
+ icon: e.asideControls ? t.mdiArrowLeft : t.mdiChevronLeft
182
197
  }, null, 8, ["icon"]),
183
- e[4] || (e[4] = i("span", { class: "tw-sr-only" }, "Show previous slide", -1))
184
- ], 8, H),
185
- i("div", {
198
+ l[4] || (l[4] = i("span", { class: "tw-sr-only" }, "Show previous slide", -1))
199
+ ], 10, D),
200
+ e.controlsTopRight ? f("", !0) : (r(), n("div", {
201
+ key: 0,
186
202
  "aria-label": `screen ${t.currentIndex + 1} of ${t.slideIndicatorCount}`,
187
203
  class: "tw-mx-2 md:tw-mx-3 lg:tw-mx-4 tw-invisible md:tw-visible"
188
- }, y(t.currentIndex + 1) + "/" + y(t.slideIndicatorCount), 9, P),
204
+ }, h(t.currentIndex + 1) + "/" + h(t.slideIndicatorCount), 9, H)),
189
205
  i("button", {
190
- class: "tw-text-primary tw-rounded-full tw-border-2 tw-border-primary tw-h-4 tw-w-4 tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default",
206
+ class: d(["tw-text-primary tw-h-4 tw-w-4 tw-rounded-full tw-border-primary tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default", {
207
+ "tw-border-2": !e.controlsTopRight,
208
+ "tw-bg-white tw-shadow-lg": e.controlsTopRight
209
+ }]),
191
210
  disabled: t.embla && !t.embla.canScrollNext(),
192
- onClick: e[1] || (e[1] = (r) => t.handleUserInteraction(t.nextIndex, "click-right-arrow"))
211
+ onClick: l[1] || (l[1] = (o) => t.handleUserInteraction(t.nextIndex, "click-right-arrow"))
193
212
  }, [
194
- c(d, {
213
+ c(s, {
195
214
  class: "tw-w-4",
196
- icon: l.asideControls ? t.mdiArrowRight : t.mdiChevronRight
215
+ icon: e.asideControls ? t.mdiArrowRight : t.mdiChevronRight
197
216
  }, null, 8, ["icon"]),
198
- e[5] || (e[5] = i("span", { class: "tw-sr-only" }, "Show next slide", -1))
199
- ], 8, T)
200
- ], 2)) : t.slideIndicatorCount > 1 ? (n(), a("div", z, [
201
- (n(!0), a(f, null, b(t.slideIndicatorCount, (r) => (n(), a("button", {
202
- key: r,
203
- onClick: (o) => t.goToSlide(r - 1)
217
+ l[5] || (l[5] = i("span", { class: "tw-sr-only" }, "Show next slide", -1))
218
+ ], 10, P)
219
+ ], 2)) : t.slideIndicatorCount > 1 ? (r(), n("div", z, [
220
+ (r(!0), n(u, null, g(t.slideIndicatorCount, (o) => (r(), n("button", {
221
+ key: o,
222
+ onClick: (a) => t.goToSlide(o - 1)
204
223
  }, [
205
224
  i("div", {
206
- class: w(["tw-rounded-full tw-border tw-transition tw-duration-500 tw-ease-in-out", [
207
- { "tw-bg-black tw-border-black tw-h-1.5 tw-w-1.5": t.currentIndex === r - 1 },
208
- { "tw-bg-tertiary tw-border-tertiary tw-h-1 tw-w-1": t.currentIndex !== r - 1 }
225
+ class: d(["tw-rounded-full tw-border tw-transition tw-duration-500 tw-ease-in-out", [
226
+ { "tw-bg-black tw-border-black tw-h-1.5 tw-w-1.5": t.currentIndex === o - 1 },
227
+ { "tw-bg-tertiary tw-border-tertiary tw-h-1 tw-w-1": t.currentIndex !== o - 1 }
209
228
  ]])
210
229
  }, null, 2)
211
230
  ], 8, F))), 128))
212
- ])) : g("", !0),
213
- l.asideControls ? (n(), a(f, { key: 2 }, [
214
- i("div", p, [
231
+ ])) : f("", !0),
232
+ e.asideControls ? (r(), n(u, { key: 2 }, [
233
+ i("div", q, [
215
234
  i("button", {
216
235
  class: "tw-text-primary tw-bg-gray-100 tw-rounded-full tw-h-6 tw-w-6 tw-ml-3 tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default",
217
236
  disabled: t.embla && !t.embla.canScrollPrev(),
218
- onClick: e[2] || (e[2] = (r) => t.handleUserInteraction(t.previousIndex, "click-left-arrow"))
237
+ onClick: l[2] || (l[2] = (o) => t.handleUserInteraction(t.previousIndex, "click-left-arrow"))
219
238
  }, [
220
- c(d, {
239
+ c(s, {
221
240
  class: "tw-w-4",
222
241
  icon: t.mdiArrowLeft
223
242
  }, null, 8, ["icon"]),
224
- e[6] || (e[6] = i("span", { class: "tw-sr-only" }, "Show previous slide", -1))
225
- ], 8, q)
243
+ l[6] || (l[6] = i("span", { class: "tw-sr-only" }, "Show previous slide", -1))
244
+ ], 8, G)
226
245
  ]),
227
- i("div", G, [
246
+ i("div", J, [
228
247
  i("button", {
229
248
  class: "tw-text-primary tw-bg-gray-100 tw-rounded-full tw-h-6 tw-w-6 tw-mr-3 tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default",
230
249
  disabled: t.embla && !t.embla.canScrollNext(),
231
- onClick: e[3] || (e[3] = (r) => t.handleUserInteraction(t.nextIndex, "click-right-arrow"))
250
+ onClick: l[3] || (l[3] = (o) => t.handleUserInteraction(t.nextIndex, "click-right-arrow"))
232
251
  }, [
233
- c(d, {
252
+ c(s, {
234
253
  class: "tw-w-4",
235
254
  icon: t.mdiArrowRight
236
255
  }, null, 8, ["icon"]),
237
- e[7] || (e[7] = i("span", { class: "tw-sr-only" }, "Show next slide", -1))
238
- ], 8, J)
256
+ l[7] || (l[7] = i("span", { class: "tw-sr-only" }, "Show next slide", -1))
257
+ ], 8, Q)
239
258
  ])
240
- ], 64)) : g("", !0)
259
+ ], 64)) : f("", !0)
241
260
  ], 2);
242
261
  }
243
- const lt = /* @__PURE__ */ R(W, [["render", Q], ["__scopeId", "data-v-bb42b5ff"]]);
262
+ const lt = /* @__PURE__ */ N(O, [["render", X], ["__scopeId", "data-v-7c085f82"]]);
244
263
  export {
245
264
  lt as default
246
265
  };
@@ -1 +1 @@
1
- [data-v-0f318c7e] input{height:2rem;border-radius:0;border-top-width:0px;border-right-width:0px;border-left-width:0px;padding:0}[data-v-0f318c7e] input:focus{--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));box-shadow:none}[data-v-0f318c7e] button>span{min-height:0}[data-v-0f318c7e] button>span>span{padding-top:0;padding-bottom:0;padding-left:.25rem;padding-right:.25rem}
1
+ [data-v-8a6d6ddc] input{height:2rem;border-radius:0;border-top-width:0px;border-right-width:0px;border-left-width:0px;padding:0}[data-v-8a6d6ddc] input:focus{--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));box-shadow:none}[data-v-8a6d6ddc] button>span{min-height:0}[data-v-8a6d6ddc] button>span>span{padding-top:0;padding-bottom:0;padding-left:.25rem;padding-right:.25rem}
@@ -36,11 +36,11 @@ const h = "add-comment-value", f = "add-comment", m = "hide-input", I = {
36
36
  },
37
37
  emits: [f, m],
38
38
  setup(l, { emit: t }) {
39
- const e = u(""), o = u(null), c = C(() => e.value ? "" : "disabled");
39
+ const e = u(""), o = u(null), d = C(() => e.value ? "" : "disabled");
40
40
  return {
41
41
  ADD_COMMENT_ID: h,
42
42
  addCommentValue: e,
43
- commentButtonState: c,
43
+ commentButtonState: d,
44
44
  cancel: () => {
45
45
  e.value = "", l.isReply && t(m);
46
46
  },
@@ -51,14 +51,15 @@ const h = "add-comment-value", f = "add-comment", m = "hide-input", I = {
51
51
  };
52
52
  }
53
53
  }, K = { class: "tw-flex tw-flex-col" }, T = { class: "tw-flex tw-flex-col md:tw-flex-row md:tw-items-center tw-gap-0.5 md:tw-gap-1" }, A = { class: "tw-flex tw-items-center tw-gap-1" }, B = { class: "data-hj-suppress tw-font-medium" }, M = { class: "tw-flex tw-py-0.5 tw-gap-0.5" };
54
- function S(l, t, e, o, c, v) {
55
- const d = s("kv-user-avatar"), r = s("kv-text-input"), i = s("kv-button");
54
+ function S(l, t, e, o, d, v) {
55
+ const c = s("kv-user-avatar"), r = s("kv-text-input"), i = s("kv-button");
56
56
  return x(), g("div", K, [
57
57
  n("div", T, [
58
58
  n("div", A, [
59
- a(d, {
59
+ a(c, {
60
60
  "lender-name": e.userDisplayName,
61
61
  "lender-image-url": e.userImageUrl,
62
+ class: "tw-w-3 tw-h-3",
62
63
  "is-small": ""
63
64
  }, null, 8, ["lender-name", "lender-image-url"]),
64
65
  n("div", B, y(e.userDisplayName), 1)
@@ -97,7 +98,7 @@ function S(l, t, e, o, c, v) {
97
98
  ])
98
99
  ]);
99
100
  }
100
- const P = /* @__PURE__ */ E(I, [["render", S], ["__scopeId", "data-v-0f318c7e"]]);
101
+ const P = /* @__PURE__ */ E(I, [["render", S], ["__scopeId", "data-v-8a6d6ddc"]]);
101
102
  export {
102
103
  f as ADD_COMMENT_EVENT,
103
104
  h as ADD_COMMENT_ID,
@@ -55,11 +55,11 @@ const $ = "reply-comment", ee = "like-comment", N = "add-reaction", te = {
55
55
  emits: [
56
56
  N
57
57
  ],
58
- setup(g, { emit: s }) {
58
+ setup(h, { emit: s }) {
59
59
  const {
60
60
  comment: e,
61
61
  userPublicId: n
62
- } = B(g), u = y(!1), h = y(null), a = y(), _ = y(!1), b = i(() => {
62
+ } = B(h), u = y(!1), g = y(null), a = y(), _ = y(!1), b = i(() => {
63
63
  var t;
64
64
  return ((t = e == null ? void 0 : e.value) == null ? void 0 : t.text) ?? "";
65
65
  }), w = i(() => {
@@ -79,7 +79,7 @@ const $ = "reply-comment", ee = "like-comment", N = "add-reaction", te = {
79
79
  return ((l = (t = e == null ? void 0 : e.value) == null ? void 0 : t.children) == null ? void 0 : l.like) ?? [];
80
80
  }), R = i(() => E.value.find((t) => t.publicLenderId === n.value)), O = i(() => R.value !== void 0), T = () => {
81
81
  u.value = !u.value, q(() => {
82
- u.value && h.value.$refs.input.focus();
82
+ u.value && g.value.$refs.input.focus();
83
83
  });
84
84
  }, x = (t, l) => {
85
85
  var L;
@@ -109,7 +109,7 @@ const $ = "reply-comment", ee = "like-comment", N = "add-reaction", te = {
109
109
  }), {
110
110
  hideInput: D,
111
111
  showInput: u,
112
- commentsAddRef: h,
112
+ commentsAddRef: g,
113
113
  replyClick: T,
114
114
  addReaction: x,
115
115
  REPLY_COMMENT_EVENT: $,
@@ -141,7 +141,7 @@ const $ = "reply-comment", ee = "like-comment", N = "add-reaction", te = {
141
141
  key: 1,
142
142
  class: "tw-my-1"
143
143
  }, me = { key: 1 };
144
- function de(g, s, e, n, u, h) {
144
+ function de(h, s, e, n, u, g) {
145
145
  const a = v("kv-user-avatar"), _ = v("kv-comments-heart-button"), b = v("kv-comments-reply-button"), w = v("kv-comments-add"), C = v("kv-material-icon"), I = v("kv-comments-list-item", !0);
146
146
  return r(), m("div", null, [
147
147
  f("div", null, [
@@ -149,6 +149,7 @@ function de(g, s, e, n, u, h) {
149
149
  k(a, {
150
150
  "lender-name": n.authorName,
151
151
  "lender-image-url": n.authorImage,
152
+ class: "tw-w-3 tw-h-3",
152
153
  "is-small": ""
153
154
  }, null, 8, ["lender-name", "lender-image-url"]),
154
155
  n.authorName ? (r(), m("p", le, p(n.authorName), 1)) : c("", !0)
@@ -205,7 +206,7 @@ function de(g, s, e, n, u, h) {
205
206
  comment: o,
206
207
  "nest-level": e.nestLevel + 1,
207
208
  onAddReaction: s[3] || (s[3] = (E) => {
208
- g.$emit(n.ADD_REACTION_EVENT, E);
209
+ h.$emit(n.ADD_REACTION_EVENT, E);
209
210
  })
210
211
  }, null, 8, ["user-image-url", "user-display-name", "user-public-id", "comment", "nest-level"])
211
212
  ]))), 128))
@@ -1,4 +1,4 @@
1
- import { openBlock as n, createElementBlock as s, createElementVNode as t, toDisplayString as l } from "vue";
1
+ import { openBlock as n, createElementBlock as s, createElementVNode as e, toDisplayString as c, createCommentVNode as l } from "vue";
2
2
  import r from "../_virtual/_plugin-vue_export-helper.js";
3
3
  const i = {
4
4
  props: {
@@ -7,35 +7,38 @@ const i = {
7
7
  default: 0
8
8
  }
9
9
  }
10
- }, f = {
10
+ }, u = {
11
11
  xmlns: "http://www.w3.org/2000/svg",
12
12
  viewBox: "0 0 24 24"
13
- }, c = { id: "countMask" }, d = {
13
+ }, d = ["id"], a = {
14
14
  x: "12",
15
15
  y: "17",
16
16
  fill: "#000",
17
17
  style: { "font-size": "9px", "font-weight": "631", "text-anchor": "middle" }
18
- };
19
- function u(p, o, e, a, m, _) {
20
- return n(), s("svg", f, [
21
- t("defs", null, [
22
- t("mask", c, [
23
- o[0] || (o[0] = t("rect", {
18
+ }, f = ["mask"];
19
+ function m(_, o, t, h, x, k) {
20
+ return n(), s("svg", u, [
21
+ e("defs", null, [
22
+ t.count > 0 ? (n(), s("mask", {
23
+ key: 0,
24
+ id: `countMask-${t.count}`
25
+ }, [
26
+ o[0] || (o[0] = e("rect", {
24
27
  width: "100%",
25
28
  height: "100%",
26
29
  fill: "#fff"
27
30
  }, null, -1)),
28
- t("text", d, l(e.count), 1)
29
- ])
31
+ e("text", a, c(t.count), 1)
32
+ ], 8, d)) : l("", !0)
30
33
  ]),
31
- o[1] || (o[1] = t("path", {
34
+ e("path", {
32
35
  d: "M12,3A3,3 0 0,1 15,6H9A3,3 0 0,1 12,3M19,6H17A5,5 0 0,0 12,1A5,5 0 0,0 7,6H5C3.89,6 3,6.89 3,8V20A2,2 0 0,0 5,22H19A2,2 0 0,0 21,20V8C21,6.89 20.1,6 19,6Z",
33
36
  fill: "currentColor",
34
- mask: "url(#countMask)"
35
- }, null, -1))
37
+ mask: `url(#countMask-${t.count})`
38
+ }, null, 8, f)
36
39
  ]);
37
40
  }
38
- const h = /* @__PURE__ */ r(i, [["render", u]]);
41
+ const w = /* @__PURE__ */ r(i, [["render", m]]);
39
42
  export {
40
- h as default
43
+ w as default
41
44
  };
@@ -1,11 +1,10 @@
1
- import { toRefs as c, computed as l, resolveComponent as m, openBlock as p, createElementBlock as i, createVNode as _, createElementVNode as d, toDisplayString as v, createTextVNode as u } from "vue";
2
- import w from "./KvUserAvatar.js";
3
- import "./KvInlineActivityCard.css";
4
- import f from "../_virtual/_plugin-vue_export-helper.js";
1
+ import { toRefs as c, computed as l, resolveComponent as m, openBlock as p, createElementBlock as i, createVNode as w, createElementVNode as d, toDisplayString as u, createTextVNode as _ } from "vue";
2
+ import f from "./KvUserAvatar.js";
3
+ import v from "../_virtual/_plugin-vue_export-helper.js";
5
4
  const g = {
6
5
  name: "KvInlineActivityCard",
7
6
  components: {
8
- KvUserAvatar: w
7
+ KvUserAvatar: f
9
8
  },
10
9
  props: {
11
10
  /**
@@ -16,38 +15,38 @@ const g = {
16
15
  default: () => ({})
17
16
  }
18
17
  },
19
- setup(o) {
18
+ setup(s) {
20
19
  const {
21
20
  activity: e
22
- } = c(o), s = l(() => {
21
+ } = c(s), a = l(() => {
23
22
  var t, r;
24
23
  return ((r = (t = e == null ? void 0 : e.value) == null ? void 0 : t.lender) == null ? void 0 : r.name) ?? "";
25
24
  });
26
25
  return {
27
26
  lenderImageUrl: l(() => {
28
- var t, r, a;
29
- return ((a = (r = (t = e == null ? void 0 : e.value) == null ? void 0 : t.lender) == null ? void 0 : r.image) == null ? void 0 : a.url) ?? "";
27
+ var t, r, o;
28
+ return ((o = (r = (t = e == null ? void 0 : e.value) == null ? void 0 : t.lender) == null ? void 0 : r.image) == null ? void 0 : o.url) ?? "";
30
29
  }),
31
- lenderName: s
30
+ lenderName: a
32
31
  };
33
32
  }
34
- }, x = { class: "tw-flex tw-items-center tw-gap-1 tw-py-0.5 tw-px-1 tw-shadow-lg tw-rounded-xs tw-bg-white" }, h = { class: "tw-text-base tw-whitespace-nowrap" }, I = { class: "data-hj-suppress" };
35
- function N(o, e, s, n, t, r) {
36
- const a = m("KvUserAvatar");
33
+ }, x = { class: "tw-flex tw-items-center tw-gap-1 tw-py-0.5 tw-px-1 tw-shadow-lg tw-rounded-xs tw-bg-white" }, h = { class: "tw-text-base tw-whitespace-nowrap" }, N = { class: "data-hj-suppress" };
34
+ function U(s, e, a, n, t, r) {
35
+ const o = m("KvUserAvatar");
37
36
  return p(), i("div", x, [
38
- _(a, {
37
+ w(o, {
39
38
  "lender-image-url": n.lenderImageUrl,
40
39
  "lender-name": n.lenderName,
41
- "is-small": "",
42
- class: "activity-avatar"
40
+ class: "tw-w-4 tw-h-4 tw-flex-shrink-0",
41
+ "is-small": ""
43
42
  }, null, 8, ["lender-image-url", "lender-name"]),
44
43
  d("p", h, [
45
- d("span", I, v(n.lenderName), 1),
46
- e[0] || (e[0] = u(" contributed "))
44
+ d("span", N, u(n.lenderName), 1),
45
+ e[0] || (e[0] = _(" contributed "))
47
46
  ])
48
47
  ]);
49
48
  }
50
- const y = /* @__PURE__ */ f(g, [["render", N], ["__scopeId", "data-v-84a9404c"]]);
49
+ const b = /* @__PURE__ */ v(g, [["render", U]]);
51
50
  export {
52
- y as default
51
+ b as default
53
52
  };