@onereach/idw-ui-components 0.4.0 → 0.5.0-beta.49.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/dist/esm/index.js CHANGED
@@ -40,10 +40,10 @@ const Lt = ["data-interactive", "data-disabled", "data-selected"], zt = {
40
40
  title: ["text-[30px] leading-[36px] line-clamp-5"]
41
41
  }
42
42
  }, r = e, o = m(() => n[r.size] || n[J.L]), a = m(() => {
43
- var k;
43
+ var f;
44
44
  if (r.disabled)
45
45
  return;
46
- const u = (k = r.skill.image) == null ? void 0 : k.trim();
46
+ const u = (f = r.skill.image) == null ? void 0 : f.trim();
47
47
  return {
48
48
  backgroundImage: u ? `url("${u}")` : `url("${Bt}")`,
49
49
  backgroundPosition: "center",
@@ -64,7 +64,7 @@ const Lt = ["data-interactive", "data-disabled", "data-selected"], zt = {
64
64
  "text-black dark:text-white"
65
65
  ), r.interactive && u.push("cursor-pointer")), u;
66
66
  });
67
- return (u, k) => (t(), s("div", {
67
+ return (u, f) => (t(), s("div", {
68
68
  class: V(c.value),
69
69
  "data-interactive": r.interactive,
70
70
  "data-disabled": r.disabled,
@@ -182,8 +182,8 @@ const Ft = {
182
182
  },
183
183
  emits: ["open-reactions", "open-comments"],
184
184
  setup(e, { emit: n }) {
185
- const r = e, o = n, a = m(() => r.engagement.reactionCount ?? 0), c = m(() => r.engagement.reactionEmojis ?? []), u = m(() => r.engagement.commentsCount ?? 0), k = m(() => r.engagement.commentsLabel), x = m(
186
- () => a.value > 0 || u.value > 0 && !!k.value
185
+ const r = e, o = n, a = m(() => r.engagement.reactionCount ?? 0), c = m(() => r.engagement.reactionEmojis ?? []), u = m(() => r.engagement.commentsCount ?? 0), f = m(() => r.engagement.commentsLabel), x = m(
186
+ () => a.value > 0 || u.value > 0 && !!f.value
187
187
  );
188
188
  return (g, w) => x.value ? (t(), s("span", Ft, [
189
189
  v("span", At, [
@@ -202,12 +202,12 @@ const Ft = {
202
202
  Q(" " + B(a.value), 1)
203
203
  ])) : b("", !0)
204
204
  ]),
205
- u.value > 0 && k.value ? (t(), s("button", {
205
+ u.value > 0 && f.value ? (t(), s("button", {
206
206
  key: 0,
207
207
  type: "button",
208
208
  class: "underline cursor-pointer bg-transparent border-0 p-0 typography-caption-regular text-outline dark:text-outline-dark",
209
209
  onClick: w[1] || (w[1] = (P) => o("open-comments"))
210
- }, B(k.value), 1)) : b("", !0)
210
+ }, B(f.value), 1)) : b("", !0)
211
211
  ])) : b("", !0);
212
212
  }
213
213
  }), qt = ["aria-labelledby"], Wt = {
@@ -295,7 +295,7 @@ const Ft = {
295
295
  fullscreen: "Fullscreen",
296
296
  showMore: "Show more",
297
297
  showLess: "Show less"
298
- }, a = e, c = r, u = ce(), k = N(!1), x = N(!1), g = m(() => a.view === "fullscreen"), w = m(() => g.value || !a.expandable || k.value);
298
+ }, a = e, c = r, u = ce(), f = N(!1), x = N(!1), g = m(() => a.view === "fullscreen"), w = m(() => g.value || !a.expandable || f.value);
299
299
  re(
300
300
  w,
301
301
  (j) => {
@@ -303,29 +303,29 @@ const Ft = {
303
303
  },
304
304
  { immediate: !0 }
305
305
  );
306
- const P = m(() => `feed-item-title-${a.id}`), L = m(() => `feed-item-body-${a.id}`), f = m(() => a.isNew || a.highlighted), p = m(() => {
306
+ const P = m(() => `feed-item-title-${a.id}`), L = m(() => `feed-item-body-${a.id}`), k = m(() => a.isNew || a.highlighted), p = m(() => {
307
307
  if (g.value)
308
308
  return "";
309
- const j = f.value ? "bg-primary-opacity-0-12 dark:bg-primary-opacity-0-12-dark" : "bg-primary-opacity-0-08 dark:bg-primary-opacity-0-08-dark";
309
+ const j = k.value ? "bg-primary-opacity-0-12 dark:bg-primary-opacity-0-12-dark" : "bg-primary-opacity-0-08 dark:bg-primary-opacity-0-08-dark";
310
310
  return w.value ? `${j} max-h-[42.5rem]` : j;
311
- }), i = m(() => g.value ? "" : `min-h-0 overflow-y-auto ${f.value ? "bg-surface-2 dark:bg-surface-2-dark" : "bg-surface-1 dark:bg-surface-1-dark"}`), h = m(() => ({
311
+ }), d = m(() => g.value ? "" : `min-h-0 overflow-y-auto ${k.value ? "bg-surface-2 dark:bg-surface-2-dark" : "bg-surface-1 dark:bg-surface-1-dark"}`), h = m(() => ({
312
312
  ...o,
313
313
  ...a.controlLabels
314
314
  })), O = m(() => !!u.body), C = m(() => !!u.actions && w.value), z = m(() => !g.value && a.expandable && O.value), T = m(() => {
315
315
  var A;
316
316
  const j = a.summary;
317
317
  return j ? !!j.text || !!((A = j.choices) != null && A.length) : !1;
318
- }), D = m(() => T.value && !w.value), I = m(() => !g.value && (!!a.mediaSrc || !!u.media)), d = m(() => {
318
+ }), D = m(() => T.value && !w.value), I = m(() => !g.value && (!!a.mediaSrc || !!u.media)), i = m(() => {
319
319
  var A;
320
320
  const j = (A = a.source) == null ? void 0 : A.trim();
321
321
  if (j)
322
322
  return /^by\s/i.test(j) ? j : `${a.authorPrefix} ${j}`;
323
323
  }), S = m(() => a.status ? Nt(a.status) : void 0), R = m(() => !!a.engagement), ye = m(() => !!u.footer && w.value && !g.value);
324
324
  function ve(j) {
325
- !a.expandable || g.value || j === k.value || (k.value = j, c("update:expanded", j), c(j ? "expand" : "collapse"));
325
+ !a.expandable || g.value || j === f.value || (f.value = j, c("update:expanded", j), c(j ? "expand" : "collapse"));
326
326
  }
327
327
  function Ge() {
328
- ve(!k.value);
328
+ ve(!f.value);
329
329
  }
330
330
  function te(j) {
331
331
  c("control-click", j);
@@ -361,7 +361,7 @@ const Ft = {
361
361
  class: "shrink-0 overflow-hidden text-ellipsis whitespace-nowrap typography-caption-regular text-outline dark:text-outline-dark",
362
362
  datetime: e.timestampDatetime || void 0
363
363
  }, B(e.timestamp), 9, Xt)) : b("", !0),
364
- d.value ? (t(), s("span", Gt, B(d.value), 1)) : b("", !0)
364
+ i.value ? (t(), s("span", Gt, B(i.value), 1)) : b("", !0)
365
365
  ])),
366
366
  v("div", Yt, [
367
367
  W(j.$slots, "controls", {}, () => [
@@ -426,7 +426,7 @@ const Ft = {
426
426
  class: V(["typography-caption-regular", (he = S.value) == null ? void 0 : he.labelClass])
427
427
  }, B(e.status.label), 3)
428
428
  ])) : b("", !0),
429
- d.value ? (t(), s("span", rl, B(d.value), 1)) : b("", !0),
429
+ i.value ? (t(), s("span", rl, B(i.value), 1)) : b("", !0),
430
430
  e.timestamp ? (t(), s("time", {
431
431
  key: 3,
432
432
  class: "typography-caption-regular text-outline dark:text-outline-dark",
@@ -450,7 +450,7 @@ const Ft = {
450
450
  x.value ? Je((t(), s("div", {
451
451
  key: 0,
452
452
  id: L.value,
453
- class: V(["feed-item-base__body w-full min-w-0", i.value]),
453
+ class: V(["feed-item-base__body w-full min-w-0", d.value]),
454
454
  role: "region",
455
455
  "aria-label": e.title,
456
456
  "aria-hidden": !w.value
@@ -549,7 +549,7 @@ const Ft = {
549
549
  setup(e, { emit: n }) {
550
550
  const r = e, o = n, a = ce(), c = m(() => !!a.skill), u = m(
551
551
  () => c.value || !!r.skill
552
- ), k = m(
552
+ ), f = m(
553
553
  () => r.showStartSkill !== !1 && !!r.startSkillLabel
554
554
  ), x = m(() => {
555
555
  if (u.value)
@@ -584,7 +584,7 @@ const Ft = {
584
584
  "content-class": e.contentClass,
585
585
  "internal-link-pattern": e.internalLinkPattern
586
586
  }, null, 8, ["text", "content-class", "internal-link-pattern"]),
587
- k.value ? (t(), y(l(ke), {
587
+ f.value ? (t(), y(l(ke), {
588
588
  key: 1,
589
589
  class: "self-start",
590
590
  variant: "outlined",
@@ -756,8 +756,8 @@ const El = { class: "idw-card-action-bar flex min-w-0 flex-wrap items-center gap
756
756
  setup(e, { emit: n }) {
757
757
  const r = e, o = n;
758
758
  function a(u) {
759
- const k = ze(r.completedActionTitle);
760
- return k !== "" && ze(u.title) === k;
759
+ const f = ze(r.completedActionTitle);
760
+ return f !== "" && ze(u.title) === f;
761
761
  }
762
762
  function c(u) {
763
763
  o("action", {
@@ -770,7 +770,7 @@ const El = { class: "idw-card-action-bar flex min-w-0 flex-wrap items-center gap
770
770
  card: u.card
771
771
  });
772
772
  }
773
- return (u, k) => (t(), s("div", El, [
773
+ return (u, f) => (t(), s("div", El, [
774
774
  e.actions.some(a) ? (t(!0), s(F, { key: 0 }, q(e.actions, (x, g) => (t(), s("span", {
775
775
  key: x.title + g,
776
776
  class: V(["inline-flex items-center gap-xs", a(x) ? "typography-body-2-bold text-on-background dark:text-on-background-dark" : "typography-body-2-regular text-outline dark:text-outline-dark"]),
@@ -863,7 +863,7 @@ const El = { class: "idw-card-action-bar flex min-w-0 flex-wrap items-center gap
863
863
  gridRow: "1 / -1",
864
864
  gridTemplateRows: "subgrid"
865
865
  };
866
- function k(g) {
866
+ function f(g) {
867
867
  return g === "auto" ? "min-w-0 shrink" : "min-w-0 flex-1";
868
868
  }
869
869
  function x(g) {
@@ -876,16 +876,16 @@ const El = { class: "idw-card-action-bar flex min-w-0 flex-wrap items-center gap
876
876
  }, [
877
877
  (t(!0), s(F, null, q(e.element.columns, (P, L) => (t(), s("div", {
878
878
  key: L,
879
- class: V(a.value ? "min-w-0" : ["flex flex-col", k(P.width)]),
879
+ class: V(a.value ? "min-w-0" : ["flex flex-col", f(P.width)]),
880
880
  style: H(a.value ? u : void 0)
881
881
  }, [
882
- (t(!0), s(F, null, q(P.items, (f, p) => (t(), y(pe, {
883
- key: f.id || p,
884
- element: f,
882
+ (t(!0), s(F, null, q(P.items, (k, p) => (t(), y(pe, {
883
+ key: k.id || p,
884
+ element: k,
885
885
  "host-config": e.hostConfig,
886
- style: H(x(f)),
887
- onAction: w[0] || (w[0] = (i) => o("action", i)),
888
- onSkillClick: w[1] || (w[1] = (i) => o("skill-click"))
886
+ style: H(x(k)),
887
+ onAction: w[0] || (w[0] = (d) => o("action", d)),
888
+ onSkillClick: w[1] || (w[1] = (d) => o("skill-click"))
889
889
  }, null, 8, ["element", "host-config", "style"]))), 128))
890
890
  ], 6))), 128))
891
891
  ], 6));
@@ -905,8 +905,8 @@ const El = { class: "idw-card-action-bar flex min-w-0 flex-wrap items-center gap
905
905
  key: c.id || u,
906
906
  element: c,
907
907
  "host-config": e.hostConfig,
908
- onAction: a[0] || (a[0] = (k) => r("action", k)),
909
- onSkillClick: a[1] || (a[1] = (k) => r("skill-click"))
908
+ onAction: a[0] || (a[0] = (f) => r("action", f)),
909
+ onSkillClick: a[1] || (a[1] = (f) => r("skill-click"))
910
910
  }, null, 8, ["element", "host-config"]))), 128))
911
911
  ]));
912
912
  }
@@ -986,11 +986,11 @@ const Nl = {
986
986
  }
987
987
  return (c, u) => e.element.facts.length || e.element.progress ? (t(), s("div", Nl, [
988
988
  e.element.facts.length ? (t(), s("div", Fl, [
989
- (t(!0), s(F, null, q(e.element.facts, (k, x) => (t(), s(F, {
990
- key: `${k.title}-${x}`
989
+ (t(!0), s(F, null, q(e.element.facts, (f, x) => (t(), s(F, {
990
+ key: `${f.title}-${x}`
991
991
  }, [
992
- v("p", Al, B(o(k.title)), 1),
993
- v("p", Dl, B(k.value), 1)
992
+ v("p", Al, B(o(f.title)), 1),
993
+ v("p", Dl, B(f.value), 1)
994
994
  ], 64))), 128))
995
995
  ])) : b("", !0),
996
996
  e.element.progress ? (t(), s("div", Ul, [
@@ -1025,7 +1025,7 @@ const Nl = {
1025
1025
  const u = document.createElement("a");
1026
1026
  u.href = n.element.src, u.download = n.element.title, u.rel = "noopener noreferrer", u.target = "_blank", document.body.appendChild(u), u.click(), u.remove();
1027
1027
  }
1028
- return (u, k) => {
1028
+ return (u, f) => {
1029
1029
  var x;
1030
1030
  return t(), s(F, null, [
1031
1031
  v("div", Hl, [
@@ -1046,21 +1046,21 @@ const Nl = {
1046
1046
  icon: "more_vert",
1047
1047
  size: "m",
1048
1048
  tooltip: "File actions",
1049
- onClick: k[0] || (k[0] = K((g) => o.value = !o.value, ["stop"]))
1049
+ onClick: f[0] || (f[0] = K((g) => o.value = !o.value, ["stop"]))
1050
1050
  }, null, 512)
1051
1051
  ]),
1052
1052
  M(l(lt), {
1053
1053
  "is-open": o.value,
1054
1054
  trigger: (x = r.value) == null ? void 0 : x.root,
1055
1055
  placement: "bottom-end",
1056
- onClose: k[1] || (k[1] = (g) => o.value = !1)
1056
+ onClose: f[1] || (f[1] = (g) => o.value = !1)
1057
1057
  }, {
1058
1058
  default: G(() => [
1059
1059
  M(l(Be), {
1060
1060
  icon: "open_in_new",
1061
1061
  onClick: a
1062
1062
  }, {
1063
- default: G(() => [...k[2] || (k[2] = [
1063
+ default: G(() => [...f[2] || (f[2] = [
1064
1064
  Q(" Open ", -1)
1065
1065
  ])]),
1066
1066
  _: 1
@@ -1069,7 +1069,7 @@ const Nl = {
1069
1069
  icon: "download",
1070
1070
  onClick: c
1071
1071
  }, {
1072
- default: G(() => [...k[3] || (k[3] = [
1072
+ default: G(() => [...f[3] || (f[3] = [
1073
1073
  Q(" Download ", -1)
1074
1074
  ])]),
1075
1075
  _: 1
@@ -1135,9 +1135,9 @@ const Nl = {
1135
1135
  return (a, c) => (t(), s("div", {
1136
1136
  class: V(["idw-card-image-set grid min-w-0 gap-sm", r.value])
1137
1137
  }, [
1138
- (t(!0), s(F, null, q(e.element.images, (u, k) => (t(), s("img", {
1139
- key: `${u.url}-${k}`,
1140
- class: V(["w-full bg-surface-1 object-cover dark:bg-surface-1-dark", o(k) ? "col-span-2 aspect-[2/1] rounded-xl" : "aspect-square rounded-xl"]),
1138
+ (t(!0), s(F, null, q(e.element.images, (u, f) => (t(), s("img", {
1139
+ key: `${u.url}-${f}`,
1140
+ class: V(["w-full bg-surface-1 object-cover dark:bg-surface-1-dark", o(f) ? "col-span-2 aspect-[2/1] rounded-xl" : "aspect-square rounded-xl"]),
1141
1141
  src: u.url,
1142
1142
  alt: u.alt
1143
1143
  }, null, 10, en))), 128))
@@ -1214,48 +1214,48 @@ const dn = { class: "idw-card-input flex min-w-0 flex-col gap-xs" }, sn = {
1214
1214
  if (n.element.style === "tel")
1215
1215
  return "tel";
1216
1216
  }
1217
- }), k = m(() => typeof a.value == "string" ? a.value : ""), x = m(() => typeof a.value == "number" || typeof a.value == "string" ? a.value : void 0), g = m(() => a.value), w = m(() => typeof a.value == "string" || typeof a.value == "number" ? a.value : void 0);
1218
- function P(d) {
1219
- return ("title" in d ? d.label || d.title : d.label) || d.value;
1217
+ }), f = m(() => typeof a.value == "string" ? a.value : ""), x = m(() => typeof a.value == "number" || typeof a.value == "string" ? a.value : void 0), g = m(() => a.value), w = m(() => typeof a.value == "string" || typeof a.value == "number" ? a.value : void 0);
1218
+ function P(i) {
1219
+ return ("title" in i ? i.label || i.title : i.label) || i.value;
1220
1220
  }
1221
- function L(d) {
1222
- return d.type === "Input.ChoiceSet" ? d.choices : d.options;
1221
+ function L(i) {
1222
+ return i.type === "Input.ChoiceSet" ? i.choices : i.options;
1223
1223
  }
1224
- function f(d) {
1225
- return d.type === "Input.Select" || d.type === "Input.RadioGroup" || d.type === "Input.CheckboxGroup" || d.type === "Input.ChoiceSet";
1224
+ function k(i) {
1225
+ return i.type === "Input.Select" || i.type === "Input.RadioGroup" || i.type === "Input.CheckboxGroup" || i.type === "Input.ChoiceSet";
1226
1226
  }
1227
- const p = m(() => f(n.element) ? L(n.element).map((d) => ({
1228
- label: P(d),
1229
- value: d.value,
1230
- disabled: d.disabled
1231
- })) : []), i = m(() => n.element.type === "Input.Select" ? !!n.element.multiple : n.element.type === "Input.ChoiceSet" ? !!(n.element.multiple ?? n.element.multi) : !1), h = m(() => n.element.type === "Input.Select" ? !!n.element.enableSearch : n.element.type === "Input.ChoiceSet" && !!(n.element.enableSearch || n.element.style === "filtered")), O = m(() => n.element.type === "Input.RadioGroup" || n.element.type === "Input.CheckboxGroup" ? n.element.direction : void 0), C = m(() => n.element.type === "Input.RadioGroup" || n.element.type === "Input.CheckboxGroup" ? n.element.readonly : void 0), z = m(() => {
1232
- const d = a.value;
1233
- return d && typeof d == "object" ? d : { address: "" };
1227
+ const p = m(() => k(n.element) ? L(n.element).map((i) => ({
1228
+ label: P(i),
1229
+ value: i.value,
1230
+ disabled: i.disabled
1231
+ })) : []), d = m(() => n.element.type === "Input.Select" ? !!n.element.multiple : n.element.type === "Input.ChoiceSet" ? !!(n.element.multiple ?? n.element.multi) : !1), h = m(() => n.element.type === "Input.Select" ? !!n.element.enableSearch : n.element.type === "Input.ChoiceSet" && !!(n.element.enableSearch || n.element.style === "filtered")), O = m(() => n.element.type === "Input.RadioGroup" || n.element.type === "Input.CheckboxGroup" ? n.element.direction : void 0), C = m(() => n.element.type === "Input.RadioGroup" || n.element.type === "Input.CheckboxGroup" ? n.element.readonly : void 0), z = m(() => {
1232
+ const i = a.value;
1233
+ return i && typeof i == "object" ? i : { address: "" };
1234
1234
  });
1235
- function T(d) {
1236
- r.setValue(n.element.name, d);
1235
+ function T(i) {
1236
+ r.setValue(n.element.name, i);
1237
1237
  }
1238
- function D(d) {
1238
+ function D(i) {
1239
1239
  T({
1240
1240
  ...z.value,
1241
- ...d
1241
+ ...i
1242
1242
  });
1243
1243
  }
1244
- function I(d) {
1244
+ function I(i) {
1245
1245
  return {
1246
- minValue: d.minValue ?? d.min,
1247
- maxValue: d.maxValue ?? d.max,
1248
- ...d.step != null ? { step: d.step } : {},
1249
- ...d.breakpoints ? { breakpoints: d.breakpoints } : {},
1250
- ...d.color ? { color: d.color } : {},
1251
- ...d.orientation ? { orientation: d.orientation } : {},
1252
- disabled: d.disabled
1246
+ minValue: i.minValue ?? i.min,
1247
+ maxValue: i.maxValue ?? i.max,
1248
+ ...i.step != null ? { step: i.step } : {},
1249
+ ...i.breakpoints ? { breakpoints: i.breakpoints } : {},
1250
+ ...i.color ? { color: i.color } : {},
1251
+ ...i.orientation ? { orientation: i.orientation } : {},
1252
+ disabled: i.disabled
1253
1253
  };
1254
1254
  }
1255
- return (d, S) => (t(), s("div", dn, [
1255
+ return (i, S) => (t(), s("div", dn, [
1256
1256
  e.element.type === "Input.Textarea" || e.element.type === "Input.Text" && e.element.multiline ? (t(), y(l(nt), {
1257
1257
  key: 0,
1258
- "model-value": k.value,
1258
+ "model-value": f.value,
1259
1259
  label: e.element.label,
1260
1260
  placeholder: e.element.placeholder,
1261
1261
  hint: e.element.hint,
@@ -1266,7 +1266,7 @@ const dn = { class: "idw-card-input flex min-w-0 flex-col gap-xs" }, sn = {
1266
1266
  "onUpdate:modelValue": T
1267
1267
  }, null, 8, ["model-value", "label", "placeholder", "hint", "error", "required", "disabled", "rows"])) : e.element.type === "Input.Text" ? (t(), y(l(_), {
1268
1268
  key: 1,
1269
- "model-value": k.value,
1269
+ "model-value": f.value,
1270
1270
  type: c.value,
1271
1271
  inputmode: u.value,
1272
1272
  label: e.element.label,
@@ -1305,7 +1305,7 @@ const dn = { class: "idw-card-input flex min-w-0 flex-col gap-xs" }, sn = {
1305
1305
  key: 5,
1306
1306
  "model-value": g.value,
1307
1307
  options: p.value,
1308
- multiple: i.value,
1308
+ multiple: d.value,
1309
1309
  "enable-search": h.value,
1310
1310
  "enable-clear": e.element.type === "Input.Select" ? e.element.enableClear : void 0,
1311
1311
  label: e.element.label,
@@ -1315,7 +1315,7 @@ const dn = { class: "idw-card-input flex min-w-0 flex-col gap-xs" }, sn = {
1315
1315
  required: e.element.required,
1316
1316
  disabled: e.element.disabled,
1317
1317
  "onUpdate:modelValue": T
1318
- }, null, 8, ["model-value", "options", "multiple", "enable-search", "enable-clear", "label", "placeholder", "hint", "error", "required", "disabled"])) : e.element.type === "Input.CheckboxGroup" || e.element.type === "Input.ChoiceSet" && e.element.style === "expanded" && i.value ? (t(), y(l(it), {
1318
+ }, null, 8, ["model-value", "options", "multiple", "enable-search", "enable-clear", "label", "placeholder", "hint", "error", "required", "disabled"])) : e.element.type === "Input.CheckboxGroup" || e.element.type === "Input.ChoiceSet" && e.element.style === "expanded" && d.value ? (t(), y(l(it), {
1319
1319
  key: 6,
1320
1320
  "model-value": Array.isArray(a.value) ? a.value : [],
1321
1321
  options: p.value,
@@ -1634,7 +1634,7 @@ function Ve(e) {
1634
1634
  return r > 0 ? `${r}:${String(o).padStart(2, "0")}:${a}` : `${o}:${a}`;
1635
1635
  }
1636
1636
  function Qe(e) {
1637
- const n = N(), r = N(!1), o = N(0), a = N(0), c = N(!1), u = N(1), k = N(!e.value), x = N(0), g = m(() => a.value > 0 ? Math.min(1, o.value / a.value) : 0), w = m(() => `${Ve(o.value)} / ${Ve(a.value)}`);
1637
+ const n = N(), r = N(!1), o = N(0), a = N(0), c = N(!1), u = N(1), f = N(!e.value), x = N(0), g = m(() => a.value > 0 ? Math.min(1, o.value / a.value) : 0), w = m(() => `${Ve(o.value)} / ${Ve(a.value)}`);
1638
1638
  function P() {
1639
1639
  const C = n.value;
1640
1640
  if (C && (o.value = C.currentTime || 0, a.value = Number.isFinite(C.duration) ? C.duration : 0, c.value = C.muted || C.volume === 0, u.value = C.muted ? 0 : C.volume, r.value = !C.paused, C.buffered.length > 0 && a.value > 0)) {
@@ -1644,7 +1644,7 @@ function Qe(e) {
1644
1644
  }
1645
1645
  function L() {
1646
1646
  const C = n.value;
1647
- if (!(!C || k.value)) {
1647
+ if (!(!C || f.value)) {
1648
1648
  if (C.paused) {
1649
1649
  C.play().catch(() => {
1650
1650
  r.value = !1;
@@ -1654,7 +1654,7 @@ function Qe(e) {
1654
1654
  C.pause();
1655
1655
  }
1656
1656
  }
1657
- function f(C) {
1657
+ function k(C) {
1658
1658
  const z = n.value, T = Math.min(1, Math.max(0, C));
1659
1659
  u.value = T, c.value = T === 0, z && (z.volume = T, z.muted = T === 0);
1660
1660
  }
@@ -1662,7 +1662,7 @@ function Qe(e) {
1662
1662
  const z = n.value;
1663
1663
  !z || !Number.isFinite(z.duration) || z.duration <= 0 || (z.currentTime = Math.min(1, Math.max(0, C)) * z.duration, o.value = z.currentTime);
1664
1664
  }
1665
- function i(C) {
1665
+ function d(C) {
1666
1666
  const z = n.value;
1667
1667
  !z || !Number.isFinite(z.duration) || (z.currentTime = Math.min(
1668
1668
  z.duration,
@@ -1670,21 +1670,21 @@ function Qe(e) {
1670
1670
  ), o.value = z.currentTime);
1671
1671
  }
1672
1672
  function h(C) {
1673
- const z = C.currentTarget, T = (d) => {
1674
- const S = z.getBoundingClientRect(), R = S.width > 0 ? (d.clientX - S.left) / S.width : 0;
1673
+ const z = C.currentTarget, T = (i) => {
1674
+ const S = z.getBoundingClientRect(), R = S.width > 0 ? (i.clientX - S.left) / S.width : 0;
1675
1675
  p(R);
1676
1676
  };
1677
1677
  T(C);
1678
- const D = (d) => T(d), I = () => {
1678
+ const D = (i) => T(i), I = () => {
1679
1679
  window.removeEventListener("pointermove", D), window.removeEventListener("pointerup", I);
1680
1680
  };
1681
1681
  window.addEventListener("pointermove", D), window.addEventListener("pointerup", I);
1682
1682
  }
1683
1683
  function O() {
1684
- k.value = !0, r.value = !1;
1684
+ f.value = !0, r.value = !1;
1685
1685
  }
1686
1686
  return re(e, (C) => {
1687
- k.value = !C, o.value = 0, a.value = 0, x.value = 0, r.value = !1;
1687
+ f.value = !C, o.value = 0, a.value = 0, x.value = 0, r.value = !1;
1688
1688
  }), me(() => {
1689
1689
  var C;
1690
1690
  (C = n.value) == null || C.pause();
@@ -1695,14 +1695,14 @@ function Qe(e) {
1695
1695
  duration: a,
1696
1696
  muted: c,
1697
1697
  volume: u,
1698
- unavailable: k,
1698
+ unavailable: f,
1699
1699
  buffered: x,
1700
1700
  progress: g,
1701
1701
  timeLabel: w,
1702
1702
  sync: P,
1703
1703
  toggle: L,
1704
- setVolume: f,
1705
- nudge: i,
1704
+ setVolume: k,
1705
+ nudge: d,
1706
1706
  onSeek: h,
1707
1707
  onError: O
1708
1708
  };
@@ -1717,34 +1717,34 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
1717
1717
  },
1718
1718
  emits: ["volume"],
1719
1719
  setup(e, { emit: n }) {
1720
- const r = e, o = n, a = N(), c = N(), u = N(!1), k = m(() => r.muted ? 0 : r.volume), x = m(() => `${k.value * 100}%`), g = m(() => k.value === 0 ? "volume_off" : "volume_up");
1721
- function w(f) {
1720
+ const r = e, o = n, a = N(), c = N(), u = N(!1), f = m(() => r.muted ? 0 : r.volume), x = m(() => `${f.value * 100}%`), g = m(() => f.value === 0 ? "volume_off" : "volume_up");
1721
+ function w(k) {
1722
1722
  const p = c.value;
1723
1723
  if (!p)
1724
1724
  return;
1725
- const i = p.getBoundingClientRect(), h = i.height > 0 ? (i.bottom - f.clientY) / i.height : 0;
1725
+ const d = p.getBoundingClientRect(), h = d.height > 0 ? (d.bottom - k.clientY) / d.height : 0;
1726
1726
  o("volume", h);
1727
1727
  }
1728
- function P(f) {
1729
- w(f);
1730
- const p = (h) => w(h), i = () => {
1731
- window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", i);
1728
+ function P(k) {
1729
+ w(k);
1730
+ const p = (h) => w(h), d = () => {
1731
+ window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", d);
1732
1732
  };
1733
- window.addEventListener("pointermove", p), window.addEventListener("pointerup", i);
1733
+ window.addEventListener("pointermove", p), window.addEventListener("pointerup", d);
1734
1734
  }
1735
- function L(f) {
1735
+ function L(k) {
1736
1736
  var p;
1737
- (p = a.value) != null && p.contains(f.target) || (u.value = !1);
1737
+ (p = a.value) != null && p.contains(k.target) || (u.value = !1);
1738
1738
  }
1739
- return re(u, (f) => {
1740
- if (f) {
1739
+ return re(u, (k) => {
1740
+ if (k) {
1741
1741
  document.addEventListener("pointerdown", L);
1742
1742
  return;
1743
1743
  }
1744
1744
  document.removeEventListener("pointerdown", L);
1745
1745
  }), me(() => {
1746
1746
  document.removeEventListener("pointerdown", L);
1747
- }), (f, p) => (t(), s("div", {
1747
+ }), (k, p) => (t(), s("div", {
1748
1748
  ref_key: "root",
1749
1749
  ref: a,
1750
1750
  class: "idw-card-volume"
@@ -1754,7 +1754,7 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
1754
1754
  "aria-label": "Volume",
1755
1755
  "aria-expanded": u.value,
1756
1756
  disabled: e.disabled,
1757
- onClick: p[0] || (p[0] = (i) => u.value = !u.value)
1757
+ onClick: p[0] || (p[0] = (d) => u.value = !u.value)
1758
1758
  }, [
1759
1759
  M(l(X), {
1760
1760
  icon: g.value,
@@ -1777,10 +1777,10 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
1777
1777
  "aria-orientation": "vertical",
1778
1778
  "aria-valuemin": 0,
1779
1779
  "aria-valuemax": 100,
1780
- "aria-valuenow": Math.round(k.value * 100),
1780
+ "aria-valuenow": Math.round(f.value * 100),
1781
1781
  onKeydown: [
1782
- p[1] || (p[1] = $(K((i) => o("volume", k.value + 0.05), ["prevent"]), ["up"])),
1783
- p[2] || (p[2] = $(K((i) => o("volume", k.value - 0.05), ["prevent"]), ["down"]))
1782
+ p[1] || (p[1] = $(K((d) => o("volume", f.value + 0.05), ["prevent"]), ["up"])),
1783
+ p[2] || (p[2] = $(K((d) => o("volume", f.value - 0.05), ["prevent"]), ["down"]))
1784
1784
  ]
1785
1785
  }, [
1786
1786
  p[3] || (p[3] = v("span", { class: "idw-card-volume-rail" }, null, -1)),
@@ -1819,15 +1819,15 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
1819
1819
  current: a,
1820
1820
  duration: c,
1821
1821
  muted: u,
1822
- volume: k,
1822
+ volume: f,
1823
1823
  unavailable: x,
1824
1824
  progress: g,
1825
1825
  buffered: w,
1826
1826
  timeLabel: P,
1827
1827
  sync: L,
1828
- toggle: f,
1828
+ toggle: k,
1829
1829
  setVolume: p,
1830
- nudge: i,
1830
+ nudge: d,
1831
1831
  onSeek: h,
1832
1832
  onError: O
1833
1833
  } = Qe(Me(n, "url")), C = m(() => `${g.value * 100}%`), z = m(() => `${w.value * 100}%`), T = m(() => x.value ? "play_disabled" : o.value ? "pause" : "play_arrow");
@@ -1839,21 +1839,21 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
1839
1839
  src: e.url,
1840
1840
  title: e.title,
1841
1841
  onTimeupdate: I[0] || (I[0] = //@ts-ignore
1842
- (...d) => l(L) && l(L)(...d)),
1842
+ (...i) => l(L) && l(L)(...i)),
1843
1843
  onLoadedmetadata: I[1] || (I[1] = //@ts-ignore
1844
- (...d) => l(L) && l(L)(...d)),
1844
+ (...i) => l(L) && l(L)(...i)),
1845
1845
  onProgress: I[2] || (I[2] = //@ts-ignore
1846
- (...d) => l(L) && l(L)(...d)),
1846
+ (...i) => l(L) && l(L)(...i)),
1847
1847
  onPlay: I[3] || (I[3] = //@ts-ignore
1848
- (...d) => l(L) && l(L)(...d)),
1848
+ (...i) => l(L) && l(L)(...i)),
1849
1849
  onPause: I[4] || (I[4] = //@ts-ignore
1850
- (...d) => l(L) && l(L)(...d)),
1850
+ (...i) => l(L) && l(L)(...i)),
1851
1851
  onEnded: I[5] || (I[5] = //@ts-ignore
1852
- (...d) => l(L) && l(L)(...d)),
1852
+ (...i) => l(L) && l(L)(...i)),
1853
1853
  onVolumechange: I[6] || (I[6] = //@ts-ignore
1854
- (...d) => l(L) && l(L)(...d)),
1854
+ (...i) => l(L) && l(L)(...i)),
1855
1855
  onError: I[7] || (I[7] = //@ts-ignore
1856
- (...d) => l(O) && l(O)(...d))
1856
+ (...i) => l(O) && l(O)(...i))
1857
1857
  }, null, 40, bn),
1858
1858
  v("button", {
1859
1859
  type: "button",
@@ -1861,7 +1861,7 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
1861
1861
  "aria-label": l(o) ? "Pause" : "Play",
1862
1862
  disabled: l(x),
1863
1863
  onClick: I[8] || (I[8] = //@ts-ignore
1864
- (...d) => l(f) && l(f)(...d))
1864
+ (...i) => l(k) && l(k)(...i))
1865
1865
  }, [
1866
1866
  M(l(X), {
1867
1867
  icon: T.value,
@@ -1881,10 +1881,10 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
1881
1881
  "aria-valuemax": Math.round(l(c)),
1882
1882
  "aria-valuenow": Math.round(l(a)),
1883
1883
  onPointerdown: I[9] || (I[9] = //@ts-ignore
1884
- (...d) => l(h) && l(h)(...d)),
1884
+ (...i) => l(h) && l(h)(...i)),
1885
1885
  onKeydown: [
1886
- I[10] || (I[10] = $(K((d) => l(i)(-5), ["prevent"]), ["left"])),
1887
- I[11] || (I[11] = $(K((d) => l(i)(5), ["prevent"]), ["right"]))
1886
+ I[10] || (I[10] = $(K((i) => l(d)(-5), ["prevent"]), ["left"])),
1887
+ I[11] || (I[11] = $(K((i) => l(d)(5), ["prevent"]), ["right"]))
1888
1888
  ]
1889
1889
  }, [
1890
1890
  I[12] || (I[12] = v("span", { class: "idw-card-audio-rail" }, null, -1)),
@@ -1904,7 +1904,7 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
1904
1904
  ]),
1905
1905
  M(Xe, {
1906
1906
  class: "shrink-0 text-on-background dark:text-on-background-dark",
1907
- volume: l(k),
1907
+ volume: l(f),
1908
1908
  muted: l(u),
1909
1909
  onVolume: l(p)
1910
1910
  }, null, 8, ["volume", "muted", "onVolume"])
@@ -1930,25 +1930,25 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
1930
1930
  media: a,
1931
1931
  playing: c,
1932
1932
  current: u,
1933
- duration: k,
1933
+ duration: f,
1934
1934
  muted: x,
1935
1935
  volume: g,
1936
1936
  unavailable: w,
1937
1937
  progress: P,
1938
1938
  timeLabel: L,
1939
- sync: f,
1939
+ sync: k,
1940
1940
  toggle: p,
1941
- setVolume: i,
1941
+ setVolume: d,
1942
1942
  nudge: h,
1943
1943
  onSeek: O,
1944
1944
  onError: C
1945
1945
  } = Qe(Me(n, "url")), z = m(() => `${P.value * 100}%`);
1946
1946
  function T() {
1947
- var d;
1947
+ var i;
1948
1948
  const I = r.value;
1949
1949
  if (I != null && I.requestFullscreen) {
1950
1950
  if (document.fullscreenElement === I) {
1951
- (d = document.exitFullscreen) == null || d.call(document);
1951
+ (i = document.exitFullscreen) == null || i.call(document);
1952
1952
  return;
1953
1953
  }
1954
1954
  I.requestFullscreen();
@@ -1961,7 +1961,7 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
1961
1961
  document.addEventListener("fullscreenchange", D);
1962
1962
  }), me(() => {
1963
1963
  document.removeEventListener("fullscreenchange", D);
1964
- }), (I, d) => (t(), s("div", {
1964
+ }), (I, i) => (t(), s("div", {
1965
1965
  ref_key: "frame",
1966
1966
  ref: r,
1967
1967
  class: V(["idw-card-media idw-card-video relative w-full overflow-hidden rounded-xl bg-surface-1 dark:bg-surface-1-dark", o.value ? "h-full" : "aspect-video"])
@@ -1974,24 +1974,24 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
1974
1974
  poster: e.poster,
1975
1975
  title: e.title,
1976
1976
  playsinline: "",
1977
- onClick: d[0] || (d[0] = //@ts-ignore
1977
+ onClick: i[0] || (i[0] = //@ts-ignore
1978
1978
  (...S) => l(p) && l(p)(...S)),
1979
- onTimeupdate: d[1] || (d[1] = //@ts-ignore
1980
- (...S) => l(f) && l(f)(...S)),
1981
- onLoadedmetadata: d[2] || (d[2] = //@ts-ignore
1982
- (...S) => l(f) && l(f)(...S)),
1983
- onPlay: d[3] || (d[3] = //@ts-ignore
1984
- (...S) => l(f) && l(f)(...S)),
1985
- onPause: d[4] || (d[4] = //@ts-ignore
1986
- (...S) => l(f) && l(f)(...S)),
1987
- onEnded: d[5] || (d[5] = //@ts-ignore
1988
- (...S) => l(f) && l(f)(...S)),
1989
- onVolumechange: d[6] || (d[6] = //@ts-ignore
1990
- (...S) => l(f) && l(f)(...S)),
1991
- onError: d[7] || (d[7] = //@ts-ignore
1979
+ onTimeupdate: i[1] || (i[1] = //@ts-ignore
1980
+ (...S) => l(k) && l(k)(...S)),
1981
+ onLoadedmetadata: i[2] || (i[2] = //@ts-ignore
1982
+ (...S) => l(k) && l(k)(...S)),
1983
+ onPlay: i[3] || (i[3] = //@ts-ignore
1984
+ (...S) => l(k) && l(k)(...S)),
1985
+ onPause: i[4] || (i[4] = //@ts-ignore
1986
+ (...S) => l(k) && l(k)(...S)),
1987
+ onEnded: i[5] || (i[5] = //@ts-ignore
1988
+ (...S) => l(k) && l(k)(...S)),
1989
+ onVolumechange: i[6] || (i[6] = //@ts-ignore
1990
+ (...S) => l(k) && l(k)(...S)),
1991
+ onError: i[7] || (i[7] = //@ts-ignore
1992
1992
  (...S) => l(C) && l(C)(...S))
1993
1993
  }, null, 40, Ln),
1994
- d[13] || (d[13] = v("div", { class: "pointer-events-none absolute inset-0 bg-on-background opacity-50" }, null, -1)),
1994
+ i[13] || (i[13] = v("div", { class: "pointer-events-none absolute inset-0 bg-on-background opacity-50" }, null, -1)),
1995
1995
  v("div", zn, [
1996
1996
  v("div", En, [
1997
1997
  v("div", Tn, [
@@ -2000,7 +2000,7 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
2000
2000
  type: "button",
2001
2001
  "aria-label": l(c) ? "Pause" : "Play",
2002
2002
  disabled: l(w),
2003
- onClick: d[8] || (d[8] = //@ts-ignore
2003
+ onClick: i[8] || (i[8] = //@ts-ignore
2004
2004
  (...S) => l(p) && l(p)(...S))
2005
2005
  }, [
2006
2006
  M(l(X), {
@@ -2016,7 +2016,7 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
2016
2016
  volume: l(g),
2017
2017
  muted: l(x),
2018
2018
  disabled: l(w),
2019
- onVolume: l(i)
2019
+ onVolume: l(d)
2020
2020
  }, null, 8, ["volume", "muted", "disabled", "onVolume"]),
2021
2021
  v("button", {
2022
2022
  type: "button",
@@ -2037,14 +2037,14 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
2037
2037
  class: "idw-card-video-track",
2038
2038
  "aria-label": "Seek",
2039
2039
  "aria-valuemin": 0,
2040
- "aria-valuemax": Math.round(l(k)),
2040
+ "aria-valuemax": Math.round(l(f)),
2041
2041
  "aria-valuenow": Math.round(l(u)),
2042
2042
  "aria-disabled": l(w),
2043
- onPointerdown: d[9] || (d[9] = //@ts-ignore
2043
+ onPointerdown: i[9] || (i[9] = //@ts-ignore
2044
2044
  (...S) => l(O) && l(O)(...S)),
2045
2045
  onKeydown: [
2046
- d[10] || (d[10] = $(K((S) => l(h)(-5), ["prevent"]), ["left"])),
2047
- d[11] || (d[11] = $(K((S) => l(h)(5), ["prevent"]), ["right"]))
2046
+ i[10] || (i[10] = $(K((S) => l(h)(-5), ["prevent"]), ["left"])),
2047
+ i[11] || (i[11] = $(K((S) => l(h)(5), ["prevent"]), ["right"]))
2048
2048
  ]
2049
2049
  }, [
2050
2050
  v("span", {
@@ -2059,7 +2059,7 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
2059
2059
  type: "button",
2060
2060
  class: "idw-card-video-play absolute left-1/2 top-1/2 z-10 flex -translate-x-1/2 -translate-y-1/2 items-center justify-center",
2061
2061
  "aria-label": l(c) ? "Pause" : "Play",
2062
- onClick: d[12] || (d[12] = //@ts-ignore
2062
+ onClick: i[12] || (i[12] = //@ts-ignore
2063
2063
  (...S) => l(p) && l(p)(...S))
2064
2064
  }, [
2065
2065
  M(l(X), {
@@ -2144,7 +2144,7 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
2144
2144
  success: U.Success,
2145
2145
  warning: U.Warning,
2146
2146
  error: U.Error
2147
- }, a = m(() => n.element.color ? o[n.element.color] : r[n.element.tone ?? "default"]), c = m(() => n.element.variant === "circle" ? ne.Circle : ne.Linear), u = m(() => n.element.maxValue ?? n.element.max ?? 100), k = m(() => ({
2147
+ }, a = m(() => n.element.color ? o[n.element.color] : r[n.element.tone ?? "default"]), c = m(() => n.element.variant === "circle" ? ne.Circle : ne.Linear), u = m(() => n.element.maxValue ?? n.element.max ?? 100), f = m(() => ({
2148
2148
  ...n.element.precision != null ? { precision: n.element.precision } : {},
2149
2149
  ...n.element.loading ? { loading: !0 } : {}
2150
2150
  }));
@@ -2155,7 +2155,7 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
2155
2155
  "max-value": u.value,
2156
2156
  type: c.value,
2157
2157
  color: a.value
2158
- }, k.value), je({ _: 2 }, [
2158
+ }, f.value), je({ _: 2 }, [
2159
2159
  e.element.label ? {
2160
2160
  name: "label",
2161
2161
  fn: G(() => [
@@ -2171,7 +2171,7 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
2171
2171
  props: {
2172
2172
  element: {}
2173
2173
  },
2174
- emits: ["action", "skill-click"],
2174
+ emits: ["action"],
2175
2175
  setup(e, { emit: n }) {
2176
2176
  const r = e, o = n;
2177
2177
  function a() {
@@ -2191,7 +2191,7 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
2191
2191
  M(l(Fe), {
2192
2192
  skill: e.element.skill,
2193
2193
  size: l(J).S,
2194
- onClick: u[0] || (u[0] = (k) => o("skill-click"))
2194
+ interactive: !1
2195
2195
  }, null, 8, ["skill", "size"])
2196
2196
  ], 4)) : b("", !0),
2197
2197
  e.element.text ? (t(), y(l(oe), {
@@ -2272,9 +2272,9 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
2272
2272
  emits: ["action", "skill-click"],
2273
2273
  setup(e, { emit: n }) {
2274
2274
  const r = e, o = n, a = We(), c = m(() => a.isHidden(r.element.id, r.element.isVisible)), u = m(() => {
2275
- const f = r.element.spacing ?? Cl;
2276
- return Sl[f];
2277
- }), k = m(() => r.element.type !== "Container" ? "" : Ue[r.element.tone ?? "default"]), x = m(() => ht(r.element) ? r.element : void 0), g = {
2275
+ const k = r.element.spacing ?? Cl;
2276
+ return Sl[k];
2277
+ }), f = m(() => r.element.type !== "Container" ? "" : Ue[r.element.tone ?? "default"]), x = m(() => ht(r.element) ? r.element : void 0), g = {
2278
2278
  center: "justify-center",
2279
2279
  end: "justify-end"
2280
2280
  }, w = {
@@ -2283,19 +2283,19 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
2283
2283
  }, P = m(() => r.element.type === "Html" && r.hostConfig.embedSize === "fill"), L = m(() => {
2284
2284
  if (P.value)
2285
2285
  return "min-h-0 flex-1 flex-col";
2286
- const f = r.element.horizontalAlignment ?? "start", p = r.element.verticalAlignment ?? "start";
2286
+ const k = r.element.horizontalAlignment ?? "start", p = r.element.verticalAlignment ?? "start";
2287
2287
  if (p === "center" || p === "end") {
2288
- const i = f === "center" ? "items-center" : f === "end" ? "items-end" : "";
2289
- return ["flex flex-1 flex-col", w[p], i];
2288
+ const d = k === "center" ? "items-center" : k === "end" ? "items-end" : "";
2289
+ return ["flex flex-1 flex-col", w[p], d];
2290
2290
  }
2291
- return f === "center" || f === "end" ? ["flex", g[f]] : "";
2291
+ return k === "center" || k === "end" ? ["flex", g[k]] : "";
2292
2292
  });
2293
- return fe(), (f, p) => c.value ? b("", !0) : (t(), s("div", {
2293
+ return fe(), (k, p) => c.value ? b("", !0) : (t(), s("div", {
2294
2294
  key: 0,
2295
2295
  class: V(["idw-card-element w-full min-w-0", [
2296
2296
  u.value,
2297
2297
  "first:mt-0",
2298
- k.value,
2298
+ f.value,
2299
2299
  e.element.separator ? ea : "",
2300
2300
  L.value
2301
2301
  ]]),
@@ -2317,14 +2317,14 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
2317
2317
  key: 4,
2318
2318
  element: e.element,
2319
2319
  "host-config": e.hostConfig,
2320
- onAction: p[0] || (p[0] = (i) => o("action", i)),
2321
- onSkillClick: p[1] || (p[1] = (i) => o("skill-click"))
2320
+ onAction: p[0] || (p[0] = (d) => o("action", d)),
2321
+ onSkillClick: p[1] || (p[1] = (d) => o("skill-click"))
2322
2322
  }, null, 8, ["element", "host-config"])) : e.element.type === "ColumnSet" ? (t(), y(Ml, {
2323
2323
  key: 5,
2324
2324
  element: e.element,
2325
2325
  "host-config": e.hostConfig,
2326
- onAction: p[2] || (p[2] = (i) => o("action", i)),
2327
- onSkillClick: p[3] || (p[3] = (i) => o("skill-click"))
2326
+ onAction: p[2] || (p[2] = (d) => o("action", d)),
2327
+ onSkillClick: p[3] || (p[3] = (d) => o("skill-click"))
2328
2328
  }, null, 8, ["element", "host-config"])) : e.element.type === "Html" ? (t(), y(Jl, {
2329
2329
  key: 6,
2330
2330
  element: e.element,
@@ -2341,13 +2341,12 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
2341
2341
  }, null, 8, ["element"])) : e.element.type === "Skill" ? (t(), y(Yn, {
2342
2342
  key: 10,
2343
2343
  element: e.element,
2344
- onAction: p[4] || (p[4] = (i) => o("action", i)),
2345
- onSkillClick: p[5] || (p[5] = (i) => o("skill-click"))
2344
+ onAction: p[4] || (p[4] = (d) => o("action", d))
2346
2345
  }, null, 8, ["element"])) : e.element.type === "ActionSet" ? (t(), y(Pl, {
2347
2346
  key: 11,
2348
2347
  element: e.element,
2349
2348
  "host-config": e.hostConfig,
2350
- onAction: p[6] || (p[6] = (i) => o("action", i))
2349
+ onAction: p[5] || (p[5] = (d) => o("action", d))
2351
2350
  }, null, 8, ["element", "host-config"])) : e.element.type === "Progress" ? (t(), y(Xn, {
2352
2351
  key: 12,
2353
2352
  element: e.element
@@ -2382,52 +2381,52 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
2382
2381
  },
2383
2382
  emits: ["action", "skill-click"],
2384
2383
  setup(e, { emit: n }) {
2385
- const r = e, o = n, a = m(() => Bl(r.hostConfig)), c = m(() => Re(r.source)), u = m(() => c.value.success ? c.value.card : void 0), k = Ie({}), x = Ie({}), g = N(/* @__PURE__ */ new Set()), w = N({});
2384
+ const r = e, o = n, a = m(() => Bl(r.hostConfig)), c = m(() => Re(r.source)), u = m(() => c.value.success ? c.value.card : void 0), f = Ie({}), x = Ie({}), g = N(/* @__PURE__ */ new Set()), w = N({});
2386
2385
  function P() {
2387
- Object.keys(k).forEach((i) => {
2388
- delete k[i];
2389
- }), Object.keys(x).forEach((i) => {
2390
- delete x[i];
2391
- }), g.value = /* @__PURE__ */ new Set(), w.value = {}, u.value && Object.assign(k, Ct(u.value.body));
2386
+ Object.keys(f).forEach((d) => {
2387
+ delete f[d];
2388
+ }), Object.keys(x).forEach((d) => {
2389
+ delete x[d];
2390
+ }), g.value = /* @__PURE__ */ new Set(), w.value = {}, u.value && Object.assign(f, Ct(u.value.body));
2392
2391
  }
2393
2392
  re(u, P, { immediate: !0 }), et(qe, {
2394
- getValue: (i) => k[i],
2395
- setValue: (i, h) => {
2396
- k[i] = h, delete x[i];
2393
+ getValue: (d) => f[d],
2394
+ setValue: (d, h) => {
2395
+ f[d] = h, delete x[d];
2397
2396
  },
2398
- getError: (i) => x[i],
2399
- isHidden: (i, h) => !wt({ id: i, isVisible: h }, g.value)
2397
+ getError: (d) => x[d],
2398
+ isHidden: (d, h) => !wt({ id: d, isVisible: h }, g.value)
2400
2399
  });
2401
2400
  const L = m(() => {
2402
2401
  if (!c.value.success)
2403
2402
  return c.value.fallbackText || "This card could not be displayed.";
2404
2403
  });
2405
- function f() {
2404
+ function k() {
2406
2405
  if (!u.value)
2407
2406
  return !0;
2408
- let i = !0;
2407
+ let d = !0;
2409
2408
  for (const h of St(u.value.body, g.value))
2410
- !h.visible || !h.required || It(k[h.name]) && (x[h.name] = h.errorMessage || "This field is required.", i = !1);
2411
- return i;
2409
+ !h.visible || !h.required || It(f[h.name]) && (x[h.name] = h.errorMessage || "This field is required.", d = !1);
2410
+ return d;
2412
2411
  }
2413
- function p(i) {
2412
+ function p(d) {
2414
2413
  var h;
2415
- if (i.verb === "toggle-visibility" && ((h = i.targetIds) != null && h.length)) {
2414
+ if (d.verb === "toggle-visibility" && ((h = d.targetIds) != null && h.length)) {
2416
2415
  const O = new Set(g.value);
2417
- for (const C of i.targetIds)
2416
+ for (const C of d.targetIds)
2418
2417
  O.has(C) ? O.delete(C) : O.add(C);
2419
2418
  g.value = O;
2420
2419
  }
2421
- if (i.verb === "show-card" && i.card) {
2420
+ if (d.verb === "show-card" && d.card) {
2422
2421
  const O = { ...w.value };
2423
- O[i.title] ? delete O[i.title] : O[i.title] = i.card, w.value = O;
2422
+ O[d.title] ? delete O[d.title] : O[d.title] = d.card, w.value = O;
2424
2423
  }
2425
- (i.verb === "submit" || i.verb === "approve" || i.verb === "reject") && !f() || o("action", {
2426
- ...i,
2427
- inputs: { ...k }
2424
+ (d.verb === "submit" || d.verb === "approve" || d.verb === "reject") && !k() || o("action", {
2425
+ ...d,
2426
+ inputs: { ...f }
2428
2427
  });
2429
2428
  }
2430
- return (i, h) => {
2429
+ return (d, h) => {
2431
2430
  var C;
2432
2431
  const O = tt("CardRenderer", !0);
2433
2432
  return t(), s("section", {
@@ -2529,37 +2528,37 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
2529
2528
  },
2530
2529
  emits: ["reach-bottom", "fullscreen", "start-skill", "skill-click", "action", "control-click", "expand", "collapse", "update:item-expanded"],
2531
2530
  setup(e, { emit: n }) {
2532
- const r = e, o = n, a = ce(), c = m(() => !!a.header), u = m(() => !!a.empty), k = m(() => !r.loading && r.items.length === 0), x = N(!1);
2533
- function g(f) {
2534
- return f.type === "html" || f.type === "file";
2531
+ const r = e, o = n, a = ce(), c = m(() => !!a.header), u = m(() => !!a.empty), f = m(() => !r.loading && r.items.length === 0), x = N(!1);
2532
+ function g(k) {
2533
+ return k.type === "html" || k.type === "file";
2535
2534
  }
2536
- function w(f) {
2537
- return typeof f.fullscreenControl == "boolean" ? f.fullscreenControl : g(f);
2535
+ function w(k) {
2536
+ return typeof k.fullscreenControl == "boolean" ? k.fullscreenControl : g(k);
2538
2537
  }
2539
- function P(f) {
2538
+ function P(k) {
2540
2539
  var p;
2541
- if (f.mediaSrc)
2542
- return f.mediaSrc;
2543
- if (f.type === "skill" && ((p = f.skill) != null && p.image))
2544
- return f.skill.image;
2540
+ if (k.mediaSrc)
2541
+ return k.mediaSrc;
2542
+ if (k.type === "skill" && ((p = k.skill) != null && p.image))
2543
+ return k.skill.image;
2545
2544
  }
2546
- function L(f) {
2547
- const p = f.target;
2545
+ function L(k) {
2546
+ const p = k.target;
2548
2547
  if (!p || r.loading || r.loadingMore)
2549
2548
  return;
2550
2549
  const h = p.scrollHeight - p.scrollTop - p.clientHeight <= r.reachBottomOffset;
2551
2550
  h && !x.value && o("reach-bottom"), x.value = h;
2552
2551
  }
2553
- return (f, p) => (t(), s("section", aa, [
2552
+ return (k, p) => (t(), s("section", aa, [
2554
2553
  c.value ? (t(), s("div", ra, [
2555
- W(f.$slots, "header")
2554
+ W(k.$slots, "header")
2556
2555
  ])) : b("", !0),
2557
2556
  v("div", {
2558
2557
  class: "feed-list__scroll flex min-h-0 flex-1 flex-col gap-y-sm overflow-y-auto",
2559
2558
  onScrollPassive: L
2560
2559
  }, [
2561
2560
  e.loading ? (t(), s("div", oa, [
2562
- W(f.$slots, "loading", {}, () => [
2561
+ W(k.$slots, "loading", {}, () => [
2563
2562
  M(l(se), {
2564
2563
  variant: "circular",
2565
2564
  color: "primary",
@@ -2567,77 +2566,77 @@ const yn = ["aria-expanded", "disabled"], vn = ["aria-valuenow"], Xe = /* @__PUR
2567
2566
  })
2568
2567
  ])
2569
2568
  ])) : (t(), s(F, { key: 1 }, [
2570
- k.value ? (t(), s("div", ia, [
2571
- u.value ? W(f.$slots, "empty", {}, void 0, void 0, 0) : (t(), s(F, { key: 1 }, [
2569
+ f.value ? (t(), s("div", ia, [
2570
+ u.value ? W(k.$slots, "empty", {}, void 0, void 0, 0) : (t(), s(F, { key: 1 }, [
2572
2571
  Q(B(e.emptyLabel), 1)
2573
2572
  ], 64))
2574
2573
  ])) : b("", !0),
2575
- (t(!0), s(F, null, q(e.items, (i) => (t(), y(l(yl), {
2576
- id: i.id,
2577
- key: i.id,
2574
+ (t(!0), s(F, null, q(e.items, (d) => (t(), y(l(yl), {
2575
+ id: d.id,
2576
+ key: d.id,
2578
2577
  class: V(e.itemClass),
2579
- title: i.title,
2580
- "short-content": i.shortContent,
2581
- timestamp: i.timestamp,
2582
- "timestamp-datetime": i.timestampDatetime,
2583
- source: i.source,
2584
- "author-prefix": i.authorPrefix,
2585
- "type-label": i.typeLabel,
2586
- status: i.status,
2587
- "media-src": P(i),
2588
- "media-alt": i.mediaAlt,
2589
- summary: i.summary,
2590
- "summary-label": i.summaryLabel,
2591
- engagement: i.engagement,
2592
- "is-new": i.isNew,
2593
- highlighted: i.highlighted,
2594
- expandable: i.expandable !== !1,
2595
- "fullscreen-control": w(i),
2596
- "mention-control": i.mentionControl !== !1,
2597
- "share-control": i.shareControl !== !1,
2598
- "more-control": i.moreControl !== !1,
2578
+ title: d.title,
2579
+ "short-content": d.shortContent,
2580
+ timestamp: d.timestamp,
2581
+ "timestamp-datetime": d.timestampDatetime,
2582
+ source: d.source,
2583
+ "author-prefix": d.authorPrefix,
2584
+ "type-label": d.typeLabel,
2585
+ status: d.status,
2586
+ "media-src": P(d),
2587
+ "media-alt": d.mediaAlt,
2588
+ summary: d.summary,
2589
+ "summary-label": d.summaryLabel,
2590
+ engagement: d.engagement,
2591
+ "is-new": d.isNew,
2592
+ highlighted: d.highlighted,
2593
+ expandable: d.expandable !== !1,
2594
+ "fullscreen-control": w(d),
2595
+ "mention-control": d.mentionControl !== !1,
2596
+ "share-control": d.shareControl !== !1,
2597
+ "more-control": d.moreControl !== !1,
2599
2598
  "control-labels": e.controlLabels,
2600
- onFullscreen: (h) => o("fullscreen", i),
2601
- onControlClick: (h) => o("control-click", i, h),
2602
- onExpand: (h) => o("expand", i),
2603
- onCollapse: (h) => o("collapse", i),
2604
- "onUpdate:expanded": (h) => o("update:item-expanded", i, h)
2599
+ onFullscreen: (h) => o("fullscreen", d),
2600
+ onControlClick: (h) => o("control-click", d, h),
2601
+ onExpand: (h) => o("expand", d),
2602
+ onCollapse: (h) => o("collapse", d),
2603
+ "onUpdate:expanded": (h) => o("update:item-expanded", d, h)
2605
2604
  }, je({
2606
2605
  body: G(() => [
2607
2606
  M(na, {
2608
- item: i,
2607
+ item: d,
2609
2608
  "card-host-config": e.cardHostConfig,
2610
- onStartSkill: (h) => o("start-skill", i),
2611
- onSkillClick: (h) => o("skill-click", i),
2612
- onAction: (h) => o("action", i, h)
2609
+ onStartSkill: (h) => o("start-skill", d),
2610
+ onSkillClick: (h) => o("skill-click", d),
2611
+ onAction: (h) => o("action", d, h)
2613
2612
  }, null, 8, ["item", "card-host-config", "onStartSkill", "onSkillClick", "onAction"])
2614
2613
  ]),
2615
2614
  _: 2
2616
2615
  }, [
2617
- f.$slots.actions ? {
2616
+ k.$slots.actions ? {
2618
2617
  name: "actions",
2619
2618
  fn: G(() => [
2620
- W(f.$slots, "actions", { item: i })
2619
+ W(k.$slots, "actions", { item: d })
2621
2620
  ]),
2622
2621
  key: "0"
2623
2622
  } : void 0,
2624
- f.$slots.controls ? {
2623
+ k.$slots.controls ? {
2625
2624
  name: "controls",
2626
2625
  fn: G(() => [
2627
- W(f.$slots, "controls", { item: i })
2626
+ W(k.$slots, "controls", { item: d })
2628
2627
  ]),
2629
2628
  key: "1"
2630
2629
  } : void 0,
2631
- f.$slots.footer ? {
2630
+ k.$slots.footer ? {
2632
2631
  name: "footer",
2633
2632
  fn: G(() => [
2634
- W(f.$slots, "footer", { item: i })
2633
+ W(k.$slots, "footer", { item: d })
2635
2634
  ]),
2636
2635
  key: "2"
2637
2636
  } : void 0
2638
2637
  ]), 1032, ["id", "class", "title", "short-content", "timestamp", "timestamp-datetime", "source", "author-prefix", "type-label", "status", "media-src", "media-alt", "summary", "summary-label", "engagement", "is-new", "highlighted", "expandable", "fullscreen-control", "mention-control", "share-control", "more-control", "control-labels", "onFullscreen", "onControlClick", "onExpand", "onCollapse", "onUpdate:expanded"]))), 128)),
2639
2638
  e.loadingMore ? (t(), s("div", da, [
2640
- W(f.$slots, "loading-more", {}, () => [
2639
+ W(k.$slots, "loading-more", {}, () => [
2641
2640
  M(l(se), {
2642
2641
  variant: "circular",
2643
2642
  color: "primary",