@_solaris/messenger-widget 0.2.28 → 0.2.29

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/messenger.js CHANGED
@@ -1293,8 +1293,8 @@ const zt = {
1293
1293
  "stroke-width": "2.2",
1294
1294
  "stroke-linecap": "round",
1295
1295
  "stroke-linejoin": "round"
1296
- }, Yt = { class: "wm-result__label" }, Jt = { class: "wm-result__detail" };
1297
- function Xt(t, e, n, a, r, s) {
1296
+ }, Yt = { class: "wm-result__body" }, Jt = { class: "wm-result__label" }, Xt = { class: "wm-result__detail" };
1297
+ function Qt(t, e, n, a, r, s) {
1298
1298
  return l(), d("div", {
1299
1299
  class: B(["wm-result", `wm-result--${n.state}`])
1300
1300
  }, [
@@ -1326,17 +1326,19 @@ function Xt(t, e, n, a, r, s) {
1326
1326
  }, null, -1)
1327
1327
  ])]))
1328
1328
  ]),
1329
- i("span", Yt, b(n.label), 1),
1330
- s.detailText ? (l(), d(M, { key: 0 }, [
1331
- e[4] || (e[4] = i("span", {
1332
- class: "wm-result__sep",
1333
- "aria-hidden": "true"
1334
- }, "·", -1)),
1335
- i("span", Jt, b(s.detailText), 1)
1336
- ], 64)) : w("", !0)
1329
+ i("span", Yt, [
1330
+ i("span", Jt, b(n.label), 1),
1331
+ s.detailText ? (l(), d(M, { key: 0 }, [
1332
+ e[4] || (e[4] = i("span", {
1333
+ class: "wm-result__sep",
1334
+ "aria-hidden": "true"
1335
+ }, " · ", -1)),
1336
+ i("span", Xt, b(s.detailText), 1)
1337
+ ], 64)) : w("", !0)
1338
+ ])
1337
1339
  ], 2);
1338
1340
  }
1339
- const Qt = /* @__PURE__ */ E(zt, [["render", Xt], ["__scopeId", "data-v-1a71943e"]]), Zt = {
1341
+ const Zt = /* @__PURE__ */ E(zt, [["render", Qt], ["__scopeId", "data-v-62bef892"]]), en = {
1340
1342
  name: "WmArtifactFormResponse",
1341
1343
  props: {
1342
1344
  data: { type: Object, required: !0 }
@@ -1347,11 +1349,11 @@ const Qt = /* @__PURE__ */ E(zt, [["render", Xt], ["__scopeId", "data-v-1a71943e
1347
1349
  return Array.isArray((t = this.data) == null ? void 0 : t.fields) ? this.data.fields : [];
1348
1350
  }
1349
1351
  }
1350
- }, en = { class: "wm-art wm-art--formResponse" }, tn = { class: "wm-art__head" }, nn = { class: "wm-art__title" }, sn = { class: "wm-art__body" }, rn = { class: "wm-art__fieldLabel" };
1351
- function an(t, e, n, a, r, s) {
1352
- return l(), d("div", en, [
1353
- i("div", tn, [
1354
- i("div", nn, b(n.data.title || "Formulaire"), 1),
1352
+ }, tn = { class: "wm-art wm-art--formResponse" }, nn = { class: "wm-art__head" }, sn = { class: "wm-art__title" }, rn = { class: "wm-art__body" }, an = { class: "wm-art__fieldLabel" };
1353
+ function on(t, e, n, a, r, s) {
1354
+ return l(), d("div", tn, [
1355
+ i("div", nn, [
1356
+ i("div", sn, b(n.data.title || "Formulaire"), 1),
1355
1357
  e[0] || (e[0] = i("span", { class: "wm-art__badge wm-art__badge--success" }, [
1356
1358
  i("svg", {
1357
1359
  width: "11",
@@ -1369,12 +1371,12 @@ function an(t, e, n, a, r, s) {
1369
1371
  oe(" Envoyé ")
1370
1372
  ], -1))
1371
1373
  ]),
1372
- i("div", sn, [
1374
+ i("div", rn, [
1373
1375
  (l(!0), d(M, null, j(s.fields, (o, c) => (l(), d("div", {
1374
1376
  key: c,
1375
1377
  class: "wm-art__field"
1376
1378
  }, [
1377
- i("div", rn, b(o.label), 1),
1379
+ i("div", an, b(o.label), 1),
1378
1380
  i("div", {
1379
1381
  class: B(["wm-art__fieldValue", { "wm-art__fieldValue--multi": o.multiline }])
1380
1382
  }, b(o.value), 3)
@@ -1382,7 +1384,7 @@ function an(t, e, n, a, r, s) {
1382
1384
  ])
1383
1385
  ]);
1384
1386
  }
1385
- const on = /* @__PURE__ */ E(Zt, [["render", an], ["__scopeId", "data-v-ca24a9c9"]]), ln = {
1387
+ const ln = /* @__PURE__ */ E(en, [["render", on], ["__scopeId", "data-v-ca24a9c9"]]), cn = {
1386
1388
  name: "WmArtifactInfoCard",
1387
1389
  props: {
1388
1390
  data: { type: Object, required: !0 }
@@ -1397,45 +1399,45 @@ const on = /* @__PURE__ */ E(Zt, [["render", an], ["__scopeId", "data-v-ca24a9c9
1397
1399
  return !!((t = this.data) != null && t.body) || this.fields.length > 0;
1398
1400
  }
1399
1401
  }
1400
- }, cn = { class: "wm-art wm-art--infoCard" }, dn = {
1402
+ }, dn = { class: "wm-art wm-art--infoCard" }, un = {
1401
1403
  key: 0,
1402
1404
  class: "wm-art__image"
1403
- }, un = ["src", "alt"], hn = { class: "wm-art__head" }, mn = { class: "wm-art__headMain" }, fn = { class: "wm-art__title" }, _n = {
1405
+ }, hn = ["src", "alt"], mn = { class: "wm-art__head" }, fn = { class: "wm-art__headMain" }, _n = { class: "wm-art__title" }, pn = {
1404
1406
  key: 0,
1405
1407
  class: "wm-art__subtitle"
1406
- }, pn = {
1408
+ }, vn = {
1407
1409
  key: 1,
1408
1410
  class: "wm-art__body"
1409
- }, vn = {
1411
+ }, yn = {
1410
1412
  key: 0,
1411
1413
  class: "wm-art__text"
1412
- }, yn = { class: "wm-art__fieldLabel" };
1413
- function gn(t, e, n, a, r, s) {
1414
- return l(), d("div", cn, [
1415
- n.data.image_url ? (l(), d("figure", dn, [
1414
+ }, gn = { class: "wm-art__fieldLabel" };
1415
+ function wn(t, e, n, a, r, s) {
1416
+ return l(), d("div", dn, [
1417
+ n.data.image_url ? (l(), d("figure", un, [
1416
1418
  i("img", {
1417
1419
  src: n.data.image_url,
1418
1420
  alt: n.data.title || "",
1419
1421
  loading: "lazy"
1420
- }, null, 8, un)
1422
+ }, null, 8, hn)
1421
1423
  ])) : w("", !0),
1422
- i("div", hn, [
1423
- i("div", mn, [
1424
- i("div", fn, b(n.data.title), 1),
1425
- n.data.subtitle ? (l(), d("div", _n, b(n.data.subtitle), 1)) : w("", !0)
1424
+ i("div", mn, [
1425
+ i("div", fn, [
1426
+ i("div", _n, b(n.data.title), 1),
1427
+ n.data.subtitle ? (l(), d("div", pn, b(n.data.subtitle), 1)) : w("", !0)
1426
1428
  ]),
1427
1429
  n.data.badge && n.data.badge.label ? (l(), d("span", {
1428
1430
  key: 0,
1429
1431
  class: B(["wm-art__badge", `wm-art__badge--${n.data.badge.tone || "neutral"}`])
1430
1432
  }, b(n.data.badge.label), 3)) : w("", !0)
1431
1433
  ]),
1432
- s.hasBody ? (l(), d("div", pn, [
1433
- n.data.body ? (l(), d("div", vn, b(n.data.body), 1)) : w("", !0),
1434
+ s.hasBody ? (l(), d("div", vn, [
1435
+ n.data.body ? (l(), d("div", yn, b(n.data.body), 1)) : w("", !0),
1434
1436
  s.fields.length ? (l(!0), d(M, { key: 1 }, j(s.fields, (o, c) => (l(), d("div", {
1435
1437
  key: c,
1436
1438
  class: "wm-art__field"
1437
1439
  }, [
1438
- i("div", yn, b(o.label), 1),
1440
+ i("div", gn, b(o.label), 1),
1439
1441
  i("div", {
1440
1442
  class: B(["wm-art__fieldValue", { "wm-art__fieldValue--multi": o.multiline }])
1441
1443
  }, b(o.value), 3)
@@ -1443,15 +1445,15 @@ function gn(t, e, n, a, r, s) {
1443
1445
  ])) : w("", !0)
1444
1446
  ]);
1445
1447
  }
1446
- const wn = /* @__PURE__ */ E(ln, [["render", gn], ["__scopeId", "data-v-d7369333"]]);
1447
- function bn(t) {
1448
+ const bn = /* @__PURE__ */ E(cn, [["render", wn], ["__scopeId", "data-v-d7369333"]]);
1449
+ function kn(t) {
1448
1450
  if (!t) return "";
1449
1451
  const e = new Date(t);
1450
1452
  if (Number.isNaN(e.getTime())) return t;
1451
1453
  const n = e.toLocaleDateString("fr-FR", { day: "numeric", month: "long", year: "numeric" }), a = e.toLocaleTimeString("fr-FR", { hour: "2-digit", minute: "2-digit" });
1452
1454
  return `${n} à ${a}`;
1453
1455
  }
1454
- const kn = {
1456
+ const Cn = {
1455
1457
  name: "WmArtifactTicket",
1456
1458
  props: {
1457
1459
  data: { type: Object, required: !0 }
@@ -1463,7 +1465,7 @@ const kn = {
1463
1465
  },
1464
1466
  formattedDate() {
1465
1467
  var t;
1466
- return bn((t = this.data) == null ? void 0 : t.created_at);
1468
+ return kn((t = this.data) == null ? void 0 : t.created_at);
1467
1469
  }
1468
1470
  },
1469
1471
  methods: {
@@ -1485,13 +1487,13 @@ const kn = {
1485
1487
  return /high|haute|élev|elev|critic|critiq|urgent/.test(e) ? 3 : /low|basse|faible|minor/.test(e) ? 1 : 2;
1486
1488
  }
1487
1489
  }
1488
- }, Cn = { class: "wm-art wm-art--ticket" }, An = { class: "wm-art__head wm-tk__head" }, Sn = { class: "wm-art__title wm-tk__title" }, xn = { class: "wm-tk__sub" }, Mn = { class: "wm-tk__ref" }, Tn = {
1490
+ }, An = { class: "wm-art wm-art--ticket" }, Sn = { class: "wm-art__head wm-tk__head" }, xn = { class: "wm-art__title wm-tk__title" }, Mn = { class: "wm-tk__sub" }, Tn = { class: "wm-tk__ref" }, On = {
1489
1491
  key: 0,
1490
1492
  class: "wm-tk__text"
1491
- }, On = {
1493
+ }, In = {
1492
1494
  key: 0,
1493
1495
  class: "wm-art__body"
1494
- }, In = { class: "wm-art__fieldLabel" }, Bn = ["data-level"], En = {
1496
+ }, Bn = { class: "wm-art__fieldLabel" }, En = ["data-level"], Ln = {
1495
1497
  key: 1,
1496
1498
  class: "wm-tk__date",
1497
1499
  width: "12",
@@ -1503,16 +1505,16 @@ const kn = {
1503
1505
  "stroke-linecap": "round",
1504
1506
  "stroke-linejoin": "round",
1505
1507
  "aria-hidden": "true"
1506
- }, Ln = {
1508
+ }, $n = {
1507
1509
  key: 1,
1508
1510
  class: "wm-art__footer wm-tk__footer"
1509
1511
  };
1510
- function $n(t, e, n, a, r, s) {
1511
- return l(), d("div", Cn, [
1512
- i("div", An, [
1513
- i("div", Sn, b(n.data.title), 1),
1514
- i("div", xn, [
1515
- i("div", Mn, [
1512
+ function Rn(t, e, n, a, r, s) {
1513
+ return l(), d("div", An, [
1514
+ i("div", Sn, [
1515
+ i("div", xn, b(n.data.title), 1),
1516
+ i("div", Mn, [
1517
+ i("div", Tn, [
1516
1518
  e[0] || (e[0] = i("svg", {
1517
1519
  width: "11",
1518
1520
  height: "11",
@@ -1539,14 +1541,14 @@ function $n(t, e, n, a, r, s) {
1539
1541
  oe(" " + b(n.data.status.label), 1)
1540
1542
  ], 2)
1541
1543
  ]),
1542
- n.data.body ? (l(), d("div", Tn, b(n.data.body), 1)) : w("", !0)
1544
+ n.data.body ? (l(), d("div", On, b(n.data.body), 1)) : w("", !0)
1543
1545
  ]),
1544
- s.fields.length ? (l(), d("div", On, [
1546
+ s.fields.length ? (l(), d("div", In, [
1545
1547
  (l(!0), d(M, null, j(s.fields, (o, c) => (l(), d("div", {
1546
1548
  key: c,
1547
1549
  class: "wm-art__field"
1548
1550
  }, [
1549
- i("div", In, b(o.label), 1),
1551
+ i("div", Bn, b(o.label), 1),
1550
1552
  i("div", {
1551
1553
  class: B(["wm-art__fieldValue", { "wm-art__fieldValue--multi": o.multiline }])
1552
1554
  }, [
@@ -1580,7 +1582,7 @@ function $n(t, e, n, a, r, s) {
1580
1582
  height: "9",
1581
1583
  rx: "0.5"
1582
1584
  }, null, -1)
1583
- ])], 8, Bn)) : s.isDate(o.label) ? (l(), d("svg", En, [...e[3] || (e[3] = [
1585
+ ])], 8, En)) : s.isDate(o.label) ? (l(), d("svg", Ln, [...e[3] || (e[3] = [
1584
1586
  i("rect", {
1585
1587
  x: "3",
1586
1588
  y: "4",
@@ -1594,7 +1596,7 @@ function $n(t, e, n, a, r, s) {
1594
1596
  ], 2)
1595
1597
  ]))), 128))
1596
1598
  ])) : w("", !0),
1597
- n.data.created_at ? (l(), d("div", Ln, [
1599
+ n.data.created_at ? (l(), d("div", $n, [
1598
1600
  e[4] || (e[4] = i("svg", {
1599
1601
  width: "11",
1600
1602
  height: "11",
@@ -1619,11 +1621,11 @@ function $n(t, e, n, a, r, s) {
1619
1621
  ])) : w("", !0)
1620
1622
  ]);
1621
1623
  }
1622
- const Rn = /* @__PURE__ */ E(kn, [["render", $n], ["__scopeId", "data-v-8b274eb7"]]), Fn = {
1623
- form_response: on,
1624
- info_card: wn,
1625
- ticket: Rn
1626
- }, jn = {
1624
+ const Fn = /* @__PURE__ */ E(Cn, [["render", Rn], ["__scopeId", "data-v-8b274eb7"]]), jn = {
1625
+ form_response: ln,
1626
+ info_card: bn,
1627
+ ticket: Fn
1628
+ }, Dn = {
1627
1629
  name: "WmArtifactRenderer",
1628
1630
  props: {
1629
1631
  // Forme : { kind: string, data: any } (le `data` est validé
@@ -1634,17 +1636,17 @@ const Rn = /* @__PURE__ */ E(kn, [["render", $n], ["__scopeId", "data-v-8b274eb7
1634
1636
  component() {
1635
1637
  var e;
1636
1638
  const t = (e = this.artifact) == null ? void 0 : e.kind;
1637
- return t && Fn[t] || null;
1639
+ return t && jn[t] || null;
1638
1640
  }
1639
1641
  }
1640
1642
  };
1641
- function Dn(t, e, n, a, r, s) {
1643
+ function Un(t, e, n, a, r, s) {
1642
1644
  return s.component ? (l(), $(Me(s.component), {
1643
1645
  key: 0,
1644
1646
  data: n.artifact.data
1645
1647
  }, null, 8, ["data"])) : w("", !0);
1646
1648
  }
1647
- const Un = /* @__PURE__ */ E(jn, [["render", Dn]]), Nn = {
1649
+ const Nn = /* @__PURE__ */ E(Dn, [["render", Un]]), Pn = {
1648
1650
  name: "WmAttachmentPreview",
1649
1651
  inject: {
1650
1652
  signAttachmentFn: { default: null }
@@ -1698,15 +1700,15 @@ const Un = /* @__PURE__ */ E(jn, [["render", Dn]]), Nn = {
1698
1700
  this.url || t.preventDefault();
1699
1701
  }
1700
1702
  }
1701
- }, Pn = ["href"], Hn = ["src", "alt"], zn = ["src"], Vn = ["src"], qn = ["href", "download"], Wn = { class: "wm-att__main" }, Kn = { class: "wm-att__name" }, Gn = {
1703
+ }, Hn = ["href"], zn = ["src", "alt"], Vn = ["src"], qn = ["src"], Wn = ["href", "download"], Kn = { class: "wm-att__main" }, Gn = { class: "wm-att__name" }, Yn = {
1702
1704
  key: 0,
1703
1705
  class: "wm-att__meta"
1704
- }, Yn = {
1706
+ }, Jn = {
1705
1707
  key: 0,
1706
1708
  class: "wm-att__spin",
1707
1709
  "aria-hidden": "true"
1708
1710
  };
1709
- function Jn(t, e, n, a, r, s) {
1711
+ function Xn(t, e, n, a, r, s) {
1710
1712
  return l(), d("div", {
1711
1713
  class: B(["wm-att", ["wm-att--" + (s.kind || "file")]])
1712
1714
  }, [
@@ -1721,18 +1723,18 @@ function Jn(t, e, n, a, r, s) {
1721
1723
  src: r.url,
1722
1724
  alt: s.displayName,
1723
1725
  loading: "lazy"
1724
- }, null, 8, Hn)
1725
- ], 8, Pn)) : s.kind === "audio" && r.url ? (l(), d("audio", {
1726
+ }, null, 8, zn)
1727
+ ], 8, Hn)) : s.kind === "audio" && r.url ? (l(), d("audio", {
1726
1728
  key: 1,
1727
1729
  src: r.url,
1728
1730
  controls: "",
1729
1731
  preload: "metadata"
1730
- }, null, 8, zn)) : s.kind === "video" && r.url ? (l(), d("video", {
1732
+ }, null, 8, Vn)) : s.kind === "video" && r.url ? (l(), d("video", {
1731
1733
  key: 2,
1732
1734
  src: r.url,
1733
1735
  controls: "",
1734
1736
  preload: "metadata"
1735
- }, null, 8, Vn)) : (l(), d("a", {
1737
+ }, null, 8, qn)) : (l(), d("a", {
1736
1738
  key: 3,
1737
1739
  class: "wm-att__file",
1738
1740
  href: r.url || "#",
@@ -1757,19 +1759,19 @@ function Jn(t, e, n, a, r, s) {
1757
1759
  i("path", { d: "M14 2v6h6" })
1758
1760
  ])
1759
1761
  ], -1)),
1760
- i("span", Wn, [
1761
- i("span", Kn, b(s.displayName), 1),
1762
- s.sizeLabel ? (l(), d("span", Gn, b(s.sizeLabel), 1)) : w("", !0)
1762
+ i("span", Kn, [
1763
+ i("span", Gn, b(s.displayName), 1),
1764
+ s.sizeLabel ? (l(), d("span", Yn, b(s.sizeLabel), 1)) : w("", !0)
1763
1765
  ]),
1764
- r.loading ? (l(), d("span", Yn)) : w("", !0)
1765
- ], 8, qn))
1766
+ r.loading ? (l(), d("span", Jn)) : w("", !0)
1767
+ ], 8, Wn))
1766
1768
  ], 2);
1767
1769
  }
1768
- const Xn = /* @__PURE__ */ E(Nn, [["render", Jn], ["__scopeId", "data-v-1cd1267b"]]);
1769
- function Qn(t) {
1770
+ const Qn = /* @__PURE__ */ E(Pn, [["render", Xn], ["__scopeId", "data-v-1cd1267b"]]);
1771
+ function Zn(t) {
1770
1772
  return String(t).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
1771
1773
  }
1772
- function Zn(t) {
1774
+ function es(t) {
1773
1775
  return /^(https?:\/\/|mailto:|tel:)/i.test(String(t).trim());
1774
1776
  }
1775
1777
  const pe = "";
@@ -1779,11 +1781,11 @@ function re(t) {
1779
1781
  return e = e.replace(/`([^`\n]+)`/g, (a, r) => {
1780
1782
  const s = n.length;
1781
1783
  return n.push(r), `${pe}CODE${s}${pe}`;
1782
- }), e = e.replace(/\[([^\]\n]+)\]\(([^)\s]+)\)/g, (a, r, s) => Zn(s) ? `<a href="${s}" target="_blank" rel="noopener noreferrer">${r}</a>` : r), e = e.replace(/\*\*([^\n*][^\n]*?)\*\*/g, "<strong>$1</strong>"), e = e.replace(/__([^\n_][^\n]*?)__/g, "<u>$1</u>"), e = e.replace(/~~([^\n~][^\n]*?)~~/g, "<s>$1</s>"), e = e.replace(/(^|[^\w*])\*([^\n*]+?)\*(?!\w)/g, "$1<em>$2</em>"), e = e.replace(/(^|[^\w_])_([^\n_]+?)_(?!\w)/g, "$1<em>$2</em>"), e = e.replace(/CODE(\d+)/g, (a, r) => `<code class="wm-md-code">${n[+r]}</code>`), e;
1784
+ }), e = e.replace(/\[([^\]\n]+)\]\(([^)\s]+)\)/g, (a, r, s) => es(s) ? `<a href="${s}" target="_blank" rel="noopener noreferrer">${r}</a>` : r), e = e.replace(/\*\*([^\n*][^\n]*?)\*\*/g, "<strong>$1</strong>"), e = e.replace(/__([^\n_][^\n]*?)__/g, "<u>$1</u>"), e = e.replace(/~~([^\n~][^\n]*?)~~/g, "<s>$1</s>"), e = e.replace(/(^|[^\w*])\*([^\n*]+?)\*(?!\w)/g, "$1<em>$2</em>"), e = e.replace(/(^|[^\w_])_([^\n_]+?)_(?!\w)/g, "$1<em>$2</em>"), e = e.replace(/CODE(\d+)/g, (a, r) => `<code class="wm-md-code">${n[+r]}</code>`), e;
1783
1785
  }
1784
- function es(t) {
1786
+ function ts(t) {
1785
1787
  if (!t) return "";
1786
- const e = Qn(t).split(`
1788
+ const e = Zn(t).split(`
1787
1789
  `), n = [];
1788
1790
  let a = 0;
1789
1791
  for (; a < e.length; ) {
@@ -1844,7 +1846,7 @@ function es(t) {
1844
1846
  }
1845
1847
  return r;
1846
1848
  }
1847
- const ts = {
1849
+ const ns = {
1848
1850
  name: "WmBubble",
1849
1851
  props: {
1850
1852
  role: { type: String, default: "ai" },
@@ -1853,41 +1855,41 @@ const ts = {
1853
1855
  },
1854
1856
  computed: {
1855
1857
  rendered() {
1856
- return es(this.text);
1858
+ return ts(this.text);
1857
1859
  }
1858
1860
  }
1859
- }, ns = ["innerHTML"];
1860
- function ss(t, e, n, a, r, s) {
1861
+ }, ss = ["innerHTML"];
1862
+ function rs(t, e, n, a, r, s) {
1861
1863
  return l(), d("div", {
1862
1864
  class: B(["wm-bubble", "wm-bubble--" + n.role])
1863
1865
  }, [
1864
1866
  Te(t.$slots, "default", {}, () => [
1865
- i("span", { innerHTML: s.rendered }, null, 8, ns)
1867
+ i("span", { innerHTML: s.rendered }, null, 8, ss)
1866
1868
  ], !0)
1867
1869
  ], 2);
1868
1870
  }
1869
- const rs = /* @__PURE__ */ E(ts, [["render", ss], ["__scopeId", "data-v-5c9e9f2b"]]), is = { name: "WmTyping" }, as = { class: "wm-typing" };
1870
- function os(t, e, n, a, r, s) {
1871
- return l(), d("div", as, [...e[0] || (e[0] = [
1871
+ const is = /* @__PURE__ */ E(ns, [["render", rs], ["__scopeId", "data-v-5c9e9f2b"]]), as = { name: "WmTyping" }, os = { class: "wm-typing" };
1872
+ function ls(t, e, n, a, r, s) {
1873
+ return l(), d("div", os, [...e[0] || (e[0] = [
1872
1874
  i("span", { style: { "animation-delay": "0s" } }, null, -1),
1873
1875
  i("span", { style: { "animation-delay": "0.2s" } }, null, -1),
1874
1876
  i("span", { style: { "animation-delay": "0.4s" } }, null, -1)
1875
1877
  ])]);
1876
1878
  }
1877
- const ls = /* @__PURE__ */ E(is, [["render", os], ["__scopeId", "data-v-df2447fd"]]);
1879
+ const cs = /* @__PURE__ */ E(as, [["render", ls], ["__scopeId", "data-v-df2447fd"]]);
1878
1880
  function Z(t) {
1879
1881
  return t ? t.client_msg_id || t.id : "";
1880
1882
  }
1881
- const cs = {
1883
+ const ds = {
1882
1884
  transferred_to_human: "Conversation transférée à un humain",
1883
1885
  assigned: "{name} a rejoint la conversation",
1884
1886
  unassigned: "L'agent a quitté la conversation",
1885
1887
  resolved: "Conversation résolue",
1886
1888
  reopened: "Conversation rouverte",
1887
1889
  idle: "Conversation en pause"
1888
- }, ds = 80, us = 200, hs = {
1890
+ }, us = 80, hs = 200, ms = {
1889
1891
  name: "WmMessageList",
1890
- components: { AIAvatar: te, HumanAvatar: ke, Bubble: rs, Typing: ls, ActionResult: Qt, AttachmentPreview: Xn, ArtifactRenderer: Un },
1892
+ components: { AIAvatar: te, HumanAvatar: ke, Bubble: is, Typing: cs, ActionResult: Zt, AttachmentPreview: Qn, ArtifactRenderer: Nn },
1891
1893
  props: {
1892
1894
  messages: { type: Array, default: () => [] },
1893
1895
  streamingActive: { type: Boolean, default: !1 },
@@ -2013,11 +2015,11 @@ const cs = {
2013
2015
  methods: {
2014
2016
  messageKey: Z,
2015
2017
  isAtBottom(t) {
2016
- return t.scrollHeight - t.scrollTop - t.clientHeight <= ds;
2018
+ return t.scrollHeight - t.scrollTop - t.clientHeight <= us;
2017
2019
  },
2018
2020
  onScroll() {
2019
2021
  const t = this.$refs.scrollEl;
2020
- t && (this.loadingMore || !this.hasMore || this._pendingLoadMore || t.scrollTop <= us && (this._pendingLoadMore = !0, this.$emit("load-more")));
2022
+ t && (this.loadingMore || !this.hasMore || this._pendingLoadMore || t.scrollTop <= hs && (this._pendingLoadMore = !0, this.$emit("load-more")));
2021
2023
  },
2022
2024
  // Capture pre-patch scroll state and restore it on the next tick.
2023
2025
  //
@@ -2292,7 +2294,7 @@ const cs = {
2292
2294
  },
2293
2295
  systemLabel(t) {
2294
2296
  var r, s, o;
2295
- const e = (r = t == null ? void 0 : t.payload) == null ? void 0 : r.event, n = cs[e] || (t == null ? void 0 : t.text_md) || "Mise à jour de la conversation", a = ((s = t == null ? void 0 : t.metadata) == null ? void 0 : s.agent_name) || ((o = t == null ? void 0 : t.author) == null ? void 0 : o.name) || "";
2297
+ const e = (r = t == null ? void 0 : t.payload) == null ? void 0 : r.event, n = ds[e] || (t == null ? void 0 : t.text_md) || "Mise à jour de la conversation", a = ((s = t == null ? void 0 : t.metadata) == null ? void 0 : s.agent_name) || ((o = t == null ? void 0 : t.author) == null ? void 0 : o.name) || "";
2296
2298
  return n.replace("{name}", a || "Un agent");
2297
2299
  },
2298
2300
  scrollToBottom() {
@@ -2300,59 +2302,59 @@ const cs = {
2300
2302
  t && (t.scrollTop = t.scrollHeight);
2301
2303
  }
2302
2304
  }
2303
- }, ms = {
2305
+ }, fs = {
2304
2306
  key: 0,
2305
2307
  class: "wm-list__loadMore",
2306
2308
  role: "status",
2307
2309
  "aria-live": "polite"
2308
- }, fs = {
2310
+ }, _s = {
2309
2311
  key: 1,
2310
2312
  class: "wm-list__historyEnd"
2311
- }, _s = {
2313
+ }, ps = {
2312
2314
  key: 2,
2313
2315
  class: "wm-list__sep"
2314
- }, ps = { class: "wm-list__sep-label" }, vs = {
2316
+ }, vs = { class: "wm-list__sep-label" }, ys = {
2315
2317
  key: 0,
2316
2318
  class: "wm-list__sep wm-list__sep--unread"
2317
- }, ys = {
2319
+ }, gs = {
2318
2320
  key: 0,
2319
2321
  class: "wm-list__sysep"
2320
- }, gs = { class: "wm-list__sysep-label" }, ws = ["data-row-key"], bs = {
2322
+ }, ws = { class: "wm-list__sysep-label" }, bs = ["data-row-key"], ks = {
2321
2323
  key: 0,
2322
2324
  class: "wm-list__avatarSlot"
2323
- }, ks = {
2325
+ }, Cs = {
2324
2326
  key: 5,
2325
2327
  class: "wm-list__body"
2326
- }, Cs = { key: 0 }, As = {
2328
+ }, As = { key: 0 }, Ss = {
2327
2329
  key: 1,
2328
2330
  "aria-hidden": "true"
2329
- }, Ss = { key: 2 }, xs = {
2331
+ }, xs = { key: 2 }, Ms = {
2330
2332
  key: 3,
2331
2333
  class: "wm-list__row wm-list__row--ai fade-up"
2332
- }, Ms = { class: "wm-list__avatarSlot" };
2333
- function Ts(t, e, n, a, r, s) {
2334
+ }, Ts = { class: "wm-list__avatarSlot" };
2335
+ function Os(t, e, n, a, r, s) {
2334
2336
  const o = I("AIAvatar"), c = I("HumanAvatar"), v = I("ActionResult"), k = I("ArtifactRenderer"), g = I("Bubble"), S = I("AttachmentPreview"), R = I("Typing");
2335
2337
  return l(), d("div", {
2336
2338
  ref: "scrollEl",
2337
2339
  class: B(["wm-list", { "wm-list--silent": r.silentFades }]),
2338
2340
  onScrollPassive: e[0] || (e[0] = (...A) => s.onScroll && s.onScroll(...A))
2339
2341
  }, [
2340
- n.loadingMore ? (l(), d("div", ms, [...e[1] || (e[1] = [
2342
+ n.loadingMore ? (l(), d("div", fs, [...e[1] || (e[1] = [
2341
2343
  i("span", {
2342
2344
  class: "wm-list__loadMore-spinner",
2343
2345
  "aria-hidden": "true"
2344
2346
  }, null, -1),
2345
2347
  i("span", { class: "wm-list__loadMore-lbl" }, "Chargement de l'historique…", -1)
2346
- ])])) : s.historyExhausted ? (l(), d("div", fs, "Début de la conversation")) : w("", !0),
2347
- n.dateLabel ? (l(), d("div", _s, [
2348
+ ])])) : s.historyExhausted ? (l(), d("div", _s, "Début de la conversation")) : w("", !0),
2349
+ n.dateLabel ? (l(), d("div", ps, [
2348
2350
  e[2] || (e[2] = i("div", { class: "wm-list__line" }, null, -1)),
2349
- i("span", ps, b(n.dateLabel), 1),
2351
+ i("span", vs, b(n.dateLabel), 1),
2350
2352
  e[3] || (e[3] = i("div", { class: "wm-list__line" }, null, -1))
2351
2353
  ])) : w("", !0),
2352
2354
  (l(!0), d(M, null, j(s.groups, (A, P) => (l(), d(M, {
2353
2355
  key: A.key
2354
2356
  }, [
2355
- A.key === s.unreadGroupKey ? (l(), d("div", vs, [...e[4] || (e[4] = [
2357
+ A.key === s.unreadGroupKey ? (l(), d("div", ys, [...e[4] || (e[4] = [
2356
2358
  i("div", { class: "wm-list__line wm-list__line--unread" }, null, -1),
2357
2359
  i("span", { class: "wm-list__sep-label wm-list__sep-label--unread" }, "Non lus", -1),
2358
2360
  i("div", { class: "wm-list__line wm-list__line--unread" }, null, -1)
@@ -2360,9 +2362,9 @@ function Ts(t, e, n, a, r, s) {
2360
2362
  i("div", {
2361
2363
  class: B(["wm-list__group", "wm-list__group--" + A.role])
2362
2364
  }, [
2363
- A.role === "system" ? (l(), d("div", ys, [
2365
+ A.role === "system" ? (l(), d("div", gs, [
2364
2366
  e[5] || (e[5] = i("div", { class: "wm-list__line wm-list__line--strong" }, null, -1)),
2365
- i("span", gs, b(A.systemLabel), 1),
2367
+ i("span", ws, b(A.systemLabel), 1),
2366
2368
  e[6] || (e[6] = i("div", { class: "wm-list__line wm-list__line--strong" }, null, -1))
2367
2369
  ])) : (l(), d(M, { key: 1 }, [
2368
2370
  (l(!0), d(M, null, j(A.items, (x, U) => (l(), d("div", {
@@ -2371,7 +2373,7 @@ function Ts(t, e, n, a, r, s) {
2371
2373
  class: B(["wm-list__row fade-up", ["wm-list__row--" + A.role, { "is-pending": x.message._pending, "is-failed": x.message._failed }]]),
2372
2374
  style: G(s.cornersStyle(A, U))
2373
2375
  }, [
2374
- A.role !== "user" ? (l(), d("div", bs, [
2376
+ A.role !== "user" ? (l(), d("div", ks, [
2375
2377
  U === A.items.length - 1 ? (l(), d(M, { key: 0 }, [
2376
2378
  A.role === "ai" ? (l(), $(o, {
2377
2379
  key: 0,
@@ -2401,7 +2403,7 @@ function Ts(t, e, n, a, r, s) {
2401
2403
  }, null, 8, ["artifact"])) : x.renderAs === "artifact" ? (l(), $(k, {
2402
2404
  key: 4,
2403
2405
  artifact: s.artifactOf(x.message)
2404
- }, null, 8, ["artifact"])) : (l(), d("div", ks, [
2406
+ }, null, 8, ["artifact"])) : (l(), d("div", Cs, [
2405
2407
  x.message.text_md ? (l(), $(g, {
2406
2408
  key: 0,
2407
2409
  role: A.role,
@@ -2417,20 +2419,20 @@ function Ts(t, e, n, a, r, s) {
2417
2419
  }, null, 8, ["attachment"]))), 128))
2418
2420
  ], 2)) : w("", !0)
2419
2421
  ]))
2420
- ], 14, ws))), 128)),
2422
+ ], 14, bs))), 128)),
2421
2423
  A.role !== "user" || s.lastTimeOf(A) ? (l(), d("div", {
2422
2424
  key: 0,
2423
2425
  class: B(["wm-list__meta", { "wm-list__meta--right": A.role === "user" }])
2424
2426
  }, [
2425
- A.role !== "user" ? (l(), d("span", Cs, b(s.roleLabel(A)), 1)) : w("", !0),
2426
- A.role !== "user" && s.lastTimeOf(A) ? (l(), d("span", As, "·")) : w("", !0),
2427
- s.lastTimeOf(A) ? (l(), d("span", Ss, b(s.lastTimeOf(A)), 1)) : w("", !0)
2427
+ A.role !== "user" ? (l(), d("span", As, b(s.roleLabel(A)), 1)) : w("", !0),
2428
+ A.role !== "user" && s.lastTimeOf(A) ? (l(), d("span", Ss, "·")) : w("", !0),
2429
+ s.lastTimeOf(A) ? (l(), d("span", xs, b(s.lastTimeOf(A)), 1)) : w("", !0)
2428
2430
  ], 2)) : w("", !0)
2429
2431
  ], 64))
2430
2432
  ], 2)
2431
2433
  ], 64))), 128)),
2432
- n.streamingActive ? (l(), d("div", xs, [
2433
- i("div", Ms, [
2434
+ n.streamingActive ? (l(), d("div", Ms, [
2435
+ i("div", Ts, [
2434
2436
  K(o, {
2435
2437
  size: 26,
2436
2438
  tail: !0
@@ -2440,8 +2442,8 @@ function Ts(t, e, n, a, r, s) {
2440
2442
  ])) : w("", !0)
2441
2443
  ], 34);
2442
2444
  }
2443
- const Os = /* @__PURE__ */ E(hs, [["render", Ts], ["__scopeId", "data-v-63002c7f"]]), ie = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", he = typeof window < "u" && typeof window.MediaRecorder < "u";
2444
- function Is() {
2445
+ const Is = /* @__PURE__ */ E(ms, [["render", Os], ["__scopeId", "data-v-63002c7f"]]), ie = typeof navigator < "u" && !!navigator.mediaDevices && typeof navigator.mediaDevices.getDisplayMedia == "function", he = typeof window < "u" && typeof window.MediaRecorder < "u";
2446
+ function Bs() {
2445
2447
  return he && [
2446
2448
  "video/webm;codecs=vp9,opus",
2447
2449
  "video/webm;codecs=vp8,opus",
@@ -2461,10 +2463,10 @@ function Ce({ audio: t }) {
2461
2463
  systemAudio: t ? "include" : "exclude"
2462
2464
  };
2463
2465
  }
2464
- function Hi(t) {
2466
+ function zi(t) {
2465
2467
  return t ? t.startsWith("image/") ? "image" : t.startsWith("video/") ? "video" : "file" : "file";
2466
2468
  }
2467
- async function Bs() {
2469
+ async function Es() {
2468
2470
  if (!ie) return null;
2469
2471
  let t;
2470
2472
  try {
@@ -2473,7 +2475,7 @@ async function Bs() {
2473
2475
  return (e == null ? void 0 : e.name) !== "NotAllowedError" && console.error("[media] screenshot picker", e), null;
2474
2476
  }
2475
2477
  try {
2476
- return await Es(t);
2478
+ return await Ls(t);
2477
2479
  } catch (e) {
2478
2480
  return console.error("[media] screenshot capture", e), null;
2479
2481
  } finally {
@@ -2482,7 +2484,7 @@ async function Bs() {
2482
2484
  });
2483
2485
  }
2484
2486
  }
2485
- async function Es(t) {
2487
+ async function Ls(t) {
2486
2488
  const e = document.createElement("video");
2487
2489
  e.muted = !0, e.playsInline = !0, e.srcObject = t, await e.play(), await new Promise((c) => requestAnimationFrame(c));
2488
2490
  const n = e.videoWidth || 1280, a = e.videoHeight || 720, r = document.createElement("canvas");
@@ -2492,7 +2494,7 @@ async function Es(t) {
2492
2494
  }), o = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19);
2493
2495
  return new File([s], `capture-${o}.png`, { type: "image/png" });
2494
2496
  }
2495
- async function Ls(t = {}) {
2497
+ async function $s(t = {}) {
2496
2498
  var k;
2497
2499
  if (!ie || !he) return null;
2498
2500
  let e;
@@ -2501,7 +2503,7 @@ async function Ls(t = {}) {
2501
2503
  } catch (g) {
2502
2504
  return (g == null ? void 0 : g.name) !== "NotAllowedError" && console.error("[media] record picker", g), null;
2503
2505
  }
2504
- const n = Is();
2506
+ const n = Bs();
2505
2507
  let a;
2506
2508
  try {
2507
2509
  a = n ? new window.MediaRecorder(e, { mimeType: n }) : new window.MediaRecorder(e);
@@ -2553,7 +2555,7 @@ async function Ls(t = {}) {
2553
2555
  }
2554
2556
  };
2555
2557
  }
2556
- const $s = [
2558
+ const Rs = [
2557
2559
  {
2558
2560
  action: "file",
2559
2561
  label: "Joindre un fichier",
@@ -2569,7 +2571,7 @@ const $s = [
2569
2571
  label: "Enregistrer l'écran",
2570
2572
  path: "M23 7l-7 5 7 5V7z M1 5a2 2 0 012-2h12a2 2 0 012 2v14a2 2 0 01-2 2H3a2 2 0 01-2-2V5z"
2571
2573
  }
2572
- ], Rs = {
2574
+ ], Fs = {
2573
2575
  name: "WmComposer",
2574
2576
  props: {
2575
2577
  modelValue: { type: String, default: "" },
@@ -2592,7 +2594,7 @@ const $s = [
2592
2594
  return !this.disabled && !!this.local.trim();
2593
2595
  },
2594
2596
  attachItems() {
2595
- return $s.map((t) => ({
2597
+ return Rs.map((t) => ({
2596
2598
  ...t,
2597
2599
  disabled: t.action === "screenshot" && !ie || t.action === "record" && (!ie || !he)
2598
2600
  }));
@@ -2664,13 +2666,13 @@ const $s = [
2664
2666
  },
2665
2667
  async captureScreenshot() {
2666
2668
  if (this.disabled) return;
2667
- const t = await Bs();
2669
+ const t = await Es();
2668
2670
  t && this.$emit("attach", t);
2669
2671
  },
2670
2672
  async startRecording() {
2671
2673
  if (this.recording || this.disabled) return;
2672
2674
  this.recordingElapsed = 0;
2673
- const t = await Ls({
2675
+ const t = await $s({
2674
2676
  onstart: () => {
2675
2677
  this.recording = !0;
2676
2678
  },
@@ -2695,27 +2697,27 @@ const $s = [
2695
2697
  }
2696
2698
  }
2697
2699
  }
2698
- }, Fs = { class: "wm-compose-wrap" }, js = {
2700
+ }, js = { class: "wm-compose-wrap" }, Ds = {
2699
2701
  key: 0,
2700
2702
  class: "wm-rec"
2701
- }, Ds = { class: "wm-rec__lbl" }, Us = {
2703
+ }, Us = { class: "wm-rec__lbl" }, Ns = {
2702
2704
  key: 1,
2703
2705
  class: "wm-compose__menu",
2704
2706
  role: "menu"
2705
- }, Ns = ["disabled", "onClick"], Ps = { class: "wm-compose__menuIcon" }, Hs = {
2707
+ }, Ps = ["disabled", "onClick"], Hs = { class: "wm-compose__menuIcon" }, zs = {
2706
2708
  viewBox: "0 0 24 24",
2707
2709
  width: "14",
2708
2710
  height: "14",
2709
2711
  "aria-hidden": "true"
2710
- }, zs = ["d"], Vs = ["placeholder", "disabled"], qs = { class: "wm-compose__actions" }, Ws = ["title", "aria-label", "disabled"], Ks = ["disabled"];
2711
- function Gs(t, e, n, a, r, s) {
2712
- return l(), d("div", Fs, [
2713
- r.recording ? (l(), d("div", js, [
2712
+ }, Vs = ["d"], qs = ["placeholder", "disabled"], Ws = { class: "wm-compose__actions" }, Ks = ["title", "aria-label", "disabled"], Gs = ["disabled"];
2713
+ function Ys(t, e, n, a, r, s) {
2714
+ return l(), d("div", js, [
2715
+ r.recording ? (l(), d("div", Ds, [
2714
2716
  e[8] || (e[8] = i("span", {
2715
2717
  class: "wm-rec__dot",
2716
2718
  "aria-hidden": "true"
2717
2719
  }, null, -1)),
2718
- i("span", Ds, "Enregistrement · " + b(s.recordingElapsedLabel), 1),
2720
+ i("span", Us, "Enregistrement · " + b(s.recordingElapsedLabel), 1),
2719
2721
  i("button", {
2720
2722
  type: "button",
2721
2723
  class: "wm-rec__stop",
@@ -2738,7 +2740,7 @@ function Gs(t, e, n, a, r, s) {
2738
2740
  class: "wm-compose__overlay",
2739
2741
  onClick: e[2] || (e[2] = (o) => r.attachOpen = !1)
2740
2742
  })) : w("", !0),
2741
- r.attachOpen ? (l(), d("div", Us, [
2743
+ r.attachOpen ? (l(), d("div", Ns, [
2742
2744
  (l(!0), d(M, null, j(s.attachItems, (o) => (l(), d("button", {
2743
2745
  key: o.action,
2744
2746
  type: "button",
@@ -2746,8 +2748,8 @@ function Gs(t, e, n, a, r, s) {
2746
2748
  disabled: o.disabled,
2747
2749
  onClick: (c) => s.onAttachAction(o.action)
2748
2750
  }, [
2749
- i("span", Ps, [
2750
- (l(), d("svg", Hs, [
2751
+ i("span", Hs, [
2752
+ (l(), d("svg", zs, [
2751
2753
  i("path", {
2752
2754
  d: o.path,
2753
2755
  stroke: "currentColor",
@@ -2755,11 +2757,11 @@ function Gs(t, e, n, a, r, s) {
2755
2757
  "stroke-linecap": "round",
2756
2758
  "stroke-linejoin": "round",
2757
2759
  fill: "none"
2758
- }, null, 8, zs)
2760
+ }, null, 8, Vs)
2759
2761
  ]))
2760
2762
  ]),
2761
2763
  i("span", null, b(o.label), 1)
2762
- ], 8, Ns))), 128))
2764
+ ], 8, Ps))), 128))
2763
2765
  ])) : w("", !0),
2764
2766
  W(i("textarea", {
2765
2767
  ref: "inputEl",
@@ -2770,10 +2772,10 @@ function Gs(t, e, n, a, r, s) {
2770
2772
  disabled: n.disabled,
2771
2773
  onKeydown: e[4] || (e[4] = (...o) => s.onKeydown && s.onKeydown(...o)),
2772
2774
  onInput: e[5] || (e[5] = (...o) => s.autosize && s.autosize(...o))
2773
- }, null, 40, Vs), [
2775
+ }, null, 40, qs), [
2774
2776
  [Q, r.local]
2775
2777
  ]),
2776
- i("div", qs, [
2778
+ i("div", Ws, [
2777
2779
  i("button", {
2778
2780
  type: "button",
2779
2781
  class: B(["wm-compose__icon", { "is-open": r.attachOpen }]),
@@ -2795,7 +2797,7 @@ function Gs(t, e, n, a, r, s) {
2795
2797
  }, [
2796
2798
  i("path", { d: "M21.44 11.05l-9.19 9.19a6 6 0 01-8.49-8.49l9.19-9.19a4 4 0 015.66 5.66l-9.2 9.19a2 2 0 01-2.83-2.83l8.49-8.48" })
2797
2799
  ], -1)
2798
- ])], 10, Ws),
2800
+ ])], 10, Ks),
2799
2801
  i("button", {
2800
2802
  type: "submit",
2801
2803
  class: B(["wm-compose__send", { "is-empty": !s.canSend }]),
@@ -2815,12 +2817,12 @@ function Gs(t, e, n, a, r, s) {
2815
2817
  }, [
2816
2818
  i("path", { d: "M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z" })
2817
2819
  ], -1)
2818
- ])], 10, Ks)
2820
+ ])], 10, Gs)
2819
2821
  ])
2820
2822
  ], 34)
2821
2823
  ]);
2822
2824
  }
2823
- const Ys = /* @__PURE__ */ E(Rs, [["render", Gs], ["__scopeId", "data-v-14fa9ec0"]]), Js = {
2825
+ const Js = /* @__PURE__ */ E(Fs, [["render", Ys], ["__scopeId", "data-v-14fa9ec0"]]), Xs = {
2824
2826
  name: "WmSuggestionChips",
2825
2827
  props: {
2826
2828
  items: { type: Array, default: () => [] },
@@ -2837,8 +2839,8 @@ const Ys = /* @__PURE__ */ E(Rs, [["render", Gs], ["__scopeId", "data-v-14fa9ec0
2837
2839
  return this.items.map((t) => (t == null ? void 0 : t.label) || (t == null ? void 0 : t.text) || "").join("§");
2838
2840
  }
2839
2841
  }
2840
- }, Xs = ["onClick"];
2841
- function Qs(t, e, n, a, r, s) {
2842
+ }, Qs = ["onClick"];
2843
+ function Zs(t, e, n, a, r, s) {
2842
2844
  return n.items.length ? (l(), d("div", {
2843
2845
  key: s.batchKey,
2844
2846
  class: "wm-chips"
@@ -2849,10 +2851,10 @@ function Qs(t, e, n, a, r, s) {
2849
2851
  class: "wm-chip",
2850
2852
  style: G({ animationDelay: n.baseDelay + c * n.stepDelay + "ms" }),
2851
2853
  onClick: (v) => t.$emit("select", o)
2852
- }, b(o.label), 13, Xs))), 128))
2854
+ }, b(o.label), 13, Qs))), 128))
2853
2855
  ])) : w("", !0);
2854
2856
  }
2855
- const Zs = /* @__PURE__ */ E(Js, [["render", Qs], ["__scopeId", "data-v-55aa529d"]]), er = {
2857
+ const er = /* @__PURE__ */ E(Xs, [["render", Zs], ["__scopeId", "data-v-55aa529d"]]), tr = {
2856
2858
  name: "WmApprovalCard",
2857
2859
  components: { AIAvatar: te },
2858
2860
  props: {
@@ -2885,23 +2887,23 @@ const Zs = /* @__PURE__ */ E(Js, [["render", Qs], ["__scopeId", "data-v-55aa529d
2885
2887
  return ((t = this.rejectCallback) == null ? void 0 : t.label) || "Refuser";
2886
2888
  }
2887
2889
  }
2888
- }, tr = { class: "wm-approval" }, nr = { class: "wm-approval__head" }, sr = { class: "wm-approval__icon" }, rr = { class: "wm-approval__main" }, ir = { class: "wm-approval__title" }, ar = {
2890
+ }, nr = { class: "wm-approval" }, sr = { class: "wm-approval__head" }, rr = { class: "wm-approval__icon" }, ir = { class: "wm-approval__main" }, ar = { class: "wm-approval__title" }, or = {
2889
2891
  key: 0,
2890
2892
  class: "wm-approval__detail"
2891
- }, or = { class: "wm-approval__actions" };
2892
- function lr(t, e, n, a, r, s) {
2893
+ }, lr = { class: "wm-approval__actions" };
2894
+ function cr(t, e, n, a, r, s) {
2893
2895
  const o = I("AIAvatar");
2894
- return l(), d("div", tr, [
2895
- i("div", nr, [
2896
- i("div", sr, [
2896
+ return l(), d("div", nr, [
2897
+ i("div", sr, [
2898
+ i("div", rr, [
2897
2899
  K(o, { size: 24 })
2898
2900
  ]),
2899
- i("div", rr, [
2900
- i("div", ir, b(n.action), 1),
2901
- n.detail ? (l(), d("div", ar, b(n.detail), 1)) : w("", !0)
2901
+ i("div", ir, [
2902
+ i("div", ar, b(n.action), 1),
2903
+ n.detail ? (l(), d("div", or, b(n.detail), 1)) : w("", !0)
2902
2904
  ])
2903
2905
  ]),
2904
- i("div", or, [
2906
+ i("div", lr, [
2905
2907
  s.rejectId ? (l(), d("button", {
2906
2908
  key: 0,
2907
2909
  type: "button",
@@ -2917,9 +2919,9 @@ function lr(t, e, n, a, r, s) {
2917
2919
  ])
2918
2920
  ]);
2919
2921
  }
2920
- const cr = /* @__PURE__ */ E(er, [["render", lr], ["__scopeId", "data-v-b1be139c"]]);
2922
+ const dr = /* @__PURE__ */ E(tr, [["render", cr], ["__scopeId", "data-v-b1be139c"]]);
2921
2923
  let ve = 0;
2922
- const dr = /* @__PURE__ */ new Set([
2924
+ const ur = /* @__PURE__ */ new Set([
2923
2925
  "text",
2924
2926
  "textarea",
2925
2927
  "number",
@@ -2927,7 +2929,7 @@ const dr = /* @__PURE__ */ new Set([
2927
2929
  "select",
2928
2930
  "multiselect",
2929
2931
  "date"
2930
- ]), ur = {
2932
+ ]), hr = {
2931
2933
  name: "WmFormCard",
2932
2934
  components: { AIAvatar: te },
2933
2935
  props: {
@@ -2950,7 +2952,7 @@ const dr = /* @__PURE__ */ new Set([
2950
2952
  // douteux.
2951
2953
  normalizedFields() {
2952
2954
  var e;
2953
- return (Array.isArray((e = this.form) == null ? void 0 : e.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !dr.has(n == null ? void 0 : n.type) || (n.type === "select" || n.type === "multiselect") && (!Array.isArray(n.options) || n.options.length === 0)));
2955
+ return (Array.isArray((e = this.form) == null ? void 0 : e.fields) ? this.form.fields : []).filter((n) => !(!(n != null && n.key) || !(n != null && n.label) || !ur.has(n == null ? void 0 : n.type) || (n.type === "select" || n.type === "multiselect") && (!Array.isArray(n.options) || n.options.length === 0)));
2954
2956
  }
2955
2957
  },
2956
2958
  created() {
@@ -3001,43 +3003,43 @@ const dr = /* @__PURE__ */ new Set([
3001
3003
  }
3002
3004
  }
3003
3005
  }
3004
- }, hr = { class: "wm-form" }, mr = { class: "wm-form__head" }, fr = { class: "wm-form__icon" }, _r = { class: "wm-form__main" }, pr = { class: "wm-form__title" }, vr = {
3006
+ }, mr = { class: "wm-form" }, fr = { class: "wm-form__head" }, _r = { class: "wm-form__icon" }, pr = { class: "wm-form__main" }, vr = { class: "wm-form__title" }, yr = {
3005
3007
  key: 0,
3006
3008
  class: "wm-form__detail"
3007
- }, yr = ["for"], gr = {
3009
+ }, gr = ["for"], wr = {
3008
3010
  key: 0,
3009
3011
  class: "wm-form__req",
3010
3012
  "aria-hidden": "true"
3011
- }, wr = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], br = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], kr = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Cr = ["id", "onUpdate:modelValue", "required", "disabled"], Ar = {
3013
+ }, br = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], kr = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Cr = ["id", "onUpdate:modelValue", "placeholder", "required", "disabled"], Ar = ["id", "onUpdate:modelValue", "required", "disabled"], Sr = {
3012
3014
  key: 4,
3013
3015
  class: "wm-form__bool"
3014
- }, Sr = ["id", "onUpdate:modelValue", "disabled"], xr = ["id", "onUpdate:modelValue", "required", "disabled"], Mr = {
3016
+ }, xr = ["id", "onUpdate:modelValue", "disabled"], Mr = ["id", "onUpdate:modelValue", "required", "disabled"], Tr = {
3015
3017
  value: "",
3016
3018
  disabled: ""
3017
- }, Tr = ["value"], Or = {
3019
+ }, Or = ["value"], Ir = {
3018
3020
  key: 6,
3019
3021
  class: "wm-form__multi"
3020
- }, Ir = ["value", "checked", "disabled", "onChange"], Br = {
3022
+ }, Br = ["value", "checked", "disabled", "onChange"], Er = {
3021
3023
  key: 0,
3022
3024
  class: "wm-form__err"
3023
- }, Er = ["disabled"], Lr = {
3025
+ }, Lr = ["disabled"], $r = {
3024
3026
  key: 0,
3025
3027
  class: "wm-form__spinner",
3026
3028
  "aria-hidden": "true"
3027
- }, $r = {
3029
+ }, Rr = {
3028
3030
  key: 2,
3029
3031
  class: "wm-form__doneLbl"
3030
3032
  };
3031
- function Rr(t, e, n, a, r, s) {
3033
+ function Fr(t, e, n, a, r, s) {
3032
3034
  const o = I("AIAvatar");
3033
- return l(), d("div", hr, [
3034
- i("div", mr, [
3035
- i("div", fr, [
3035
+ return l(), d("div", mr, [
3036
+ i("div", fr, [
3037
+ i("div", _r, [
3036
3038
  K(o, { size: 24 })
3037
3039
  ]),
3038
- i("div", _r, [
3039
- i("div", pr, b(n.form.title || "Formulaire"), 1),
3040
- n.form.description ? (l(), d("div", vr, b(n.form.description), 1)) : w("", !0)
3040
+ i("div", pr, [
3041
+ i("div", vr, b(n.form.title || "Formulaire"), 1),
3042
+ n.form.description ? (l(), d("div", yr, b(n.form.description), 1)) : w("", !0)
3041
3043
  ])
3042
3044
  ]),
3043
3045
  i("form", {
@@ -3053,8 +3055,8 @@ function Rr(t, e, n, a, r, s) {
3053
3055
  class: "wm-form__label"
3054
3056
  }, [
3055
3057
  oe(b(c.label), 1),
3056
- c.required ? (l(), d("span", gr, "*")) : w("", !0)
3057
- ], 8, yr),
3058
+ c.required ? (l(), d("span", wr, "*")) : w("", !0)
3059
+ ], 8, gr),
3058
3060
  c.type === "text" ? W((l(), d("input", {
3059
3061
  key: 0,
3060
3062
  id: `wm-f-${r._uid}-${c.key}`,
@@ -3064,7 +3066,7 @@ function Rr(t, e, n, a, r, s) {
3064
3066
  placeholder: c.placeholder || "",
3065
3067
  required: c.required,
3066
3068
  disabled: n.readOnly || r.busy
3067
- }, null, 8, wr)), [
3069
+ }, null, 8, br)), [
3068
3070
  [Q, r.values[c.key]]
3069
3071
  ]) : c.type === "textarea" ? W((l(), d("textarea", {
3070
3072
  key: 1,
@@ -3075,7 +3077,7 @@ function Rr(t, e, n, a, r, s) {
3075
3077
  placeholder: c.placeholder || "",
3076
3078
  required: c.required,
3077
3079
  disabled: n.readOnly || r.busy
3078
- }, null, 8, br)), [
3080
+ }, null, 8, kr)), [
3079
3081
  [Q, r.values[c.key]]
3080
3082
  ]) : c.type === "number" ? W((l(), d("input", {
3081
3083
  key: 2,
@@ -3086,7 +3088,7 @@ function Rr(t, e, n, a, r, s) {
3086
3088
  placeholder: c.placeholder || "",
3087
3089
  required: c.required,
3088
3090
  disabled: n.readOnly || r.busy
3089
- }, null, 8, kr)), [
3091
+ }, null, 8, Cr)), [
3090
3092
  [
3091
3093
  Q,
3092
3094
  r.values[c.key],
@@ -3101,15 +3103,15 @@ function Rr(t, e, n, a, r, s) {
3101
3103
  class: "wm-form__input",
3102
3104
  required: c.required,
3103
3105
  disabled: n.readOnly || r.busy
3104
- }, null, 8, Cr)), [
3106
+ }, null, 8, Ar)), [
3105
3107
  [Q, r.values[c.key]]
3106
- ]) : c.type === "boolean" ? (l(), d("label", Ar, [
3108
+ ]) : c.type === "boolean" ? (l(), d("label", Sr, [
3107
3109
  W(i("input", {
3108
3110
  id: `wm-f-${r._uid}-${c.key}`,
3109
3111
  "onUpdate:modelValue": (v) => r.values[c.key] = v,
3110
3112
  type: "checkbox",
3111
3113
  disabled: n.readOnly || r.busy
3112
- }, null, 8, Sr), [
3114
+ }, null, 8, xr), [
3113
3115
  [Oe, r.values[c.key]]
3114
3116
  ]),
3115
3117
  i("span", null, b(c.placeholder || "Oui"), 1)
@@ -3121,14 +3123,14 @@ function Rr(t, e, n, a, r, s) {
3121
3123
  required: c.required,
3122
3124
  disabled: n.readOnly || r.busy
3123
3125
  }, [
3124
- i("option", Mr, b(c.placeholder || "Choisir…"), 1),
3126
+ i("option", Tr, b(c.placeholder || "Choisir…"), 1),
3125
3127
  (l(!0), d(M, null, j(c.options, (v) => (l(), d("option", {
3126
3128
  key: v.value,
3127
3129
  value: v.value
3128
- }, b(v.label), 9, Tr))), 128))
3129
- ], 8, xr)), [
3130
+ }, b(v.label), 9, Or))), 128))
3131
+ ], 8, Mr)), [
3130
3132
  [Ie, r.values[c.key]]
3131
- ]) : c.type === "multiselect" ? (l(), d("div", Or, [
3133
+ ]) : c.type === "multiselect" ? (l(), d("div", Ir, [
3132
3134
  (l(!0), d(M, null, j(c.options, (v) => (l(), d("label", {
3133
3135
  key: v.value,
3134
3136
  class: "wm-form__multiItem"
@@ -3139,25 +3141,25 @@ function Rr(t, e, n, a, r, s) {
3139
3141
  checked: Array.isArray(r.values[c.key]) && r.values[c.key].includes(v.value),
3140
3142
  disabled: n.readOnly || r.busy,
3141
3143
  onChange: (k) => s.toggleMulti(c.key, v.value, k.target.checked)
3142
- }, null, 40, Ir),
3144
+ }, null, 40, Br),
3143
3145
  i("span", null, b(v.label), 1)
3144
3146
  ]))), 128))
3145
3147
  ])) : w("", !0)
3146
3148
  ]))), 128)),
3147
- r.error ? (l(), d("div", Br, b(r.error), 1)) : w("", !0),
3148
- n.readOnly ? (l(), d("div", $r, "Réponse envoyée")) : (l(), d("button", {
3149
+ r.error ? (l(), d("div", Er, b(r.error), 1)) : w("", !0),
3150
+ n.readOnly ? (l(), d("div", Rr, "Réponse envoyée")) : (l(), d("button", {
3149
3151
  key: 1,
3150
3152
  type: "submit",
3151
3153
  class: "wm-form__submit",
3152
3154
  disabled: r.busy
3153
3155
  }, [
3154
- r.busy ? (l(), d("span", Lr)) : w("", !0),
3156
+ r.busy ? (l(), d("span", $r)) : w("", !0),
3155
3157
  i("span", null, b(r.busy ? "Envoi…" : n.form.submit_label || "Envoyer"), 1)
3156
- ], 8, Er))
3158
+ ], 8, Lr))
3157
3159
  ], 32)
3158
3160
  ]);
3159
3161
  }
3160
- const Fr = /* @__PURE__ */ E(ur, [["render", Rr], ["__scopeId", "data-v-64b40f76"]]), jr = {
3162
+ const jr = /* @__PURE__ */ E(hr, [["render", Fr], ["__scopeId", "data-v-64b40f76"]]), Dr = {
3161
3163
  name: "WmFeedback",
3162
3164
  props: {
3163
3165
  busy: { type: Boolean, default: !1 },
@@ -3181,43 +3183,43 @@ const Fr = /* @__PURE__ */ E(ur, [["render", Rr], ["__scopeId", "data-v-64b40f76
3181
3183
  !this.sel || this.busy || this.$emit("submit", { rating: this.sel });
3182
3184
  }
3183
3185
  }
3184
- }, Dr = { class: "wm-fb" }, Ur = { class: "wm-fb__row" }, Nr = ["onClick"], Pr = { class: "wm-fb__emoji" }, Hr = { class: "wm-fb__label" }, zr = ["disabled"], Vr = {
3186
+ }, Ur = { class: "wm-fb" }, Nr = { class: "wm-fb__row" }, Pr = ["onClick"], Hr = { class: "wm-fb__emoji" }, zr = { class: "wm-fb__label" }, Vr = ["disabled"], qr = {
3185
3187
  key: 1,
3186
3188
  class: "wm-fb__done"
3187
3189
  };
3188
- function qr(t, e, n, a, r, s) {
3189
- return l(), d("div", Dr, [
3190
- n.done ? (l(), d("div", Vr, [...e[3] || (e[3] = [
3190
+ function Wr(t, e, n, a, r, s) {
3191
+ return l(), d("div", Ur, [
3192
+ n.done ? (l(), d("div", qr, [...e[3] || (e[3] = [
3191
3193
  ue('<div class="wm-fb__check" data-v-6f45ff3b><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#fff" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" data-v-6f45ff3b><path d="M20 6L9 17l-5-5" data-v-6f45ff3b></path></svg></div><div class="wm-fb__doneTitle" data-v-6f45ff3b>Merci pour votre retour !</div><div class="wm-fb__doneSub" data-v-6f45ff3b>Votre avis a bien été pris en compte.</div>', 3)
3192
3194
  ])])) : (l(), d(M, { key: 0 }, [
3193
3195
  e[1] || (e[1] = i("div", { class: "wm-fb__title" }, "Comment s'est passée cette conversation ?", -1)),
3194
3196
  e[2] || (e[2] = i("div", { class: "wm-fb__sub" }, "Votre avis nous aide à améliorer l'assistant.", -1)),
3195
- i("div", Ur, [
3197
+ i("div", Nr, [
3196
3198
  (l(!0), d(M, null, j(r.options, (o) => (l(), d("button", {
3197
3199
  key: o.v,
3198
3200
  type: "button",
3199
3201
  class: B(["wm-fb__opt", { "is-selected": r.sel === o.v }]),
3200
3202
  onClick: (c) => r.sel = o.v
3201
3203
  }, [
3202
- i("span", Pr, b(o.e), 1),
3203
- i("span", Hr, b(o.l), 1)
3204
- ], 10, Nr))), 128))
3204
+ i("span", Hr, b(o.e), 1),
3205
+ i("span", zr, b(o.l), 1)
3206
+ ], 10, Pr))), 128))
3205
3207
  ]),
3206
3208
  i("button", {
3207
3209
  type: "button",
3208
3210
  class: "wm-fb__send",
3209
3211
  disabled: !r.sel || n.busy,
3210
3212
  onClick: e[0] || (e[0] = (...o) => s.onSend && s.onSend(...o))
3211
- }, b(n.busy ? "Envoi…" : "Envoyer mon avis"), 9, zr)
3213
+ }, b(n.busy ? "Envoi…" : "Envoyer mon avis"), 9, Vr)
3212
3214
  ], 64))
3213
3215
  ]);
3214
3216
  }
3215
- const Wr = /* @__PURE__ */ E(jr, [["render", qr], ["__scopeId", "data-v-6f45ff3b"]]);
3216
- function Kr(t) {
3217
+ const Kr = /* @__PURE__ */ E(Dr, [["render", Wr], ["__scopeId", "data-v-6f45ff3b"]]);
3218
+ function Gr(t) {
3217
3219
  const e = new Date(t);
3218
3220
  return e.setHours(0, 0, 0, 0), e;
3219
3221
  }
3220
- const Gr = {
3222
+ const Yr = {
3221
3223
  name: "WmHistoryDrawer",
3222
3224
  props: {
3223
3225
  conversations: { type: Array, default: () => [] },
@@ -3251,7 +3253,7 @@ const Gr = {
3251
3253
  ) : this.normalized;
3252
3254
  },
3253
3255
  groups() {
3254
- const e = Kr(/* @__PURE__ */ new Date()).getTime(), n = e - 6 * 864e5, a = [], r = [], s = [];
3256
+ const e = Gr(/* @__PURE__ */ new Date()).getTime(), n = e - 6 * 864e5, a = [], r = [], s = [];
3255
3257
  for (const o of this.filtered) {
3256
3258
  if (!o.stamp) {
3257
3259
  s.push(o);
@@ -3269,29 +3271,29 @@ const Gr = {
3269
3271
  return this.filtered.length > 0;
3270
3272
  }
3271
3273
  }
3272
- }, Yr = { class: "wm-hd" }, Jr = {
3274
+ }, Jr = { class: "wm-hd" }, Xr = {
3273
3275
  class: "wm-hd__panel",
3274
3276
  role: "dialog",
3275
3277
  "aria-label": "Vos discussions"
3276
- }, Xr = { class: "wm-hd__head" }, Qr = { class: "wm-hd__top" }, Zr = { class: "wm-hd__search" }, ei = { class: "wm-hd__list" }, ti = {
3278
+ }, Qr = { class: "wm-hd__head" }, Zr = { class: "wm-hd__top" }, ei = { class: "wm-hd__search" }, ti = { class: "wm-hd__list" }, ni = {
3277
3279
  key: 0,
3278
3280
  class: "wm-hd__group"
3279
- }, ni = { class: "wm-hd__groupLabel" }, si = { class: "wm-hd__rows" }, ri = ["onClick"], ii = { class: "wm-hd__rowIcon" }, ai = {
3281
+ }, si = { class: "wm-hd__groupLabel" }, ri = { class: "wm-hd__rows" }, ii = ["onClick"], ai = { class: "wm-hd__rowIcon" }, oi = {
3280
3282
  key: 0,
3281
3283
  class: "wm-hd__rowDot",
3282
3284
  "aria-label": "Message non lu"
3283
- }, oi = { class: "wm-hd__rowBody" }, li = { class: "wm-hd__rowTop" }, ci = { class: "wm-hd__rowTitle" }, di = { class: "wm-hd__rowPreview" }, ui = {
3285
+ }, li = { class: "wm-hd__rowBody" }, ci = { class: "wm-hd__rowTop" }, di = { class: "wm-hd__rowTitle" }, ui = { class: "wm-hd__rowPreview" }, hi = {
3284
3286
  key: 0,
3285
3287
  class: "wm-hd__empty"
3286
3288
  };
3287
- function hi(t, e, n, a, r, s) {
3288
- return l(), d("div", Yr, [
3289
+ function mi(t, e, n, a, r, s) {
3290
+ return l(), d("div", Jr, [
3289
3291
  i("div", {
3290
3292
  class: "wm-hd__scrim",
3291
3293
  onClick: e[0] || (e[0] = (o) => t.$emit("close"))
3292
3294
  }),
3293
- i("aside", Jr, [
3294
- i("div", Xr, [
3295
+ i("aside", Xr, [
3296
+ i("div", Qr, [
3295
3297
  e[5] || (e[5] = i("div", { class: "wm-hd__heading" }, [
3296
3298
  i("div", { class: "wm-hd__title" }, "Vos discussions"),
3297
3299
  i("div", { class: "wm-hd__sub" }, "Reprenez là où vous en étiez.")
@@ -3317,7 +3319,7 @@ function hi(t, e, n, a, r, s) {
3317
3319
  ], -1)
3318
3320
  ])])
3319
3321
  ]),
3320
- i("div", Qr, [
3322
+ i("div", Zr, [
3321
3323
  i("button", {
3322
3324
  type: "button",
3323
3325
  class: "wm-hd__new",
@@ -3340,7 +3342,7 @@ function hi(t, e, n, a, r, s) {
3340
3342
  ], -1),
3341
3343
  i("span", null, "Démarrer un nouveau fil", -1)
3342
3344
  ])]),
3343
- i("div", Zr, [
3345
+ i("div", ei, [
3344
3346
  e[7] || (e[7] = i("span", { class: "wm-hd__searchIcon" }, [
3345
3347
  i("svg", {
3346
3348
  width: "12",
@@ -3366,13 +3368,13 @@ function hi(t, e, n, a, r, s) {
3366
3368
  ])
3367
3369
  ])
3368
3370
  ]),
3369
- i("div", ei, [
3371
+ i("div", ti, [
3370
3372
  (l(!0), d(M, null, j(s.groups, (o) => (l(), d(M, {
3371
3373
  key: o.key
3372
3374
  }, [
3373
- o.items.length ? (l(), d("div", ti, [
3374
- i("div", ni, b(o.label), 1),
3375
- i("div", si, [
3375
+ o.items.length ? (l(), d("div", ni, [
3376
+ i("div", si, b(o.label), 1),
3377
+ i("div", ri, [
3376
3378
  (l(!0), d(M, null, j(o.items, (c) => (l(), d("button", {
3377
3379
  key: c.id,
3378
3380
  type: "button",
@@ -3382,7 +3384,7 @@ function hi(t, e, n, a, r, s) {
3382
3384
  }]),
3383
3385
  onClick: (v) => t.$emit("pick", c)
3384
3386
  }, [
3385
- i("div", ii, [
3387
+ i("div", ai, [
3386
3388
  e[8] || (e[8] = i("svg", {
3387
3389
  width: "11",
3388
3390
  height: "11",
@@ -3396,24 +3398,24 @@ function hi(t, e, n, a, r, s) {
3396
3398
  opacity: "0.92"
3397
3399
  })
3398
3400
  ], -1)),
3399
- c.unread ? (l(), d("span", ai)) : w("", !0)
3401
+ c.unread ? (l(), d("span", oi)) : w("", !0)
3400
3402
  ]),
3401
- i("div", oi, [
3402
- i("div", li, [
3403
- i("span", ci, b(c.title), 1)
3403
+ i("div", li, [
3404
+ i("div", ci, [
3405
+ i("span", di, b(c.title), 1)
3404
3406
  ]),
3405
- i("div", di, b(c.preview || "Aucun message"), 1)
3407
+ i("div", ui, b(c.preview || "Aucun message"), 1)
3406
3408
  ])
3407
- ], 10, ri))), 128))
3409
+ ], 10, ii))), 128))
3408
3410
  ])
3409
3411
  ])) : w("", !0)
3410
3412
  ], 64))), 128)),
3411
- s.hasAny ? w("", !0) : (l(), d("div", ui, " Aucun fil pour le moment. "))
3413
+ s.hasAny ? w("", !0) : (l(), d("div", hi, " Aucun fil pour le moment. "))
3412
3414
  ])
3413
3415
  ])
3414
3416
  ]);
3415
3417
  }
3416
- const mi = /* @__PURE__ */ E(Gr, [["render", hi], ["__scopeId", "data-v-1259e822"]]), fi = {
3418
+ const fi = /* @__PURE__ */ E(Yr, [["render", mi], ["__scopeId", "data-v-1259e822"]]), _i = {
3417
3419
  name: "WmMoreMenu",
3418
3420
  props: {
3419
3421
  canRename: { type: Boolean, default: !0 },
@@ -3440,18 +3442,18 @@ const mi = /* @__PURE__ */ E(Gr, [["render", hi], ["__scopeId", "data-v-1259e822
3440
3442
  this.notifOn = !this.notifOn, this.$emit("notif-toggle", this.notifOn);
3441
3443
  }
3442
3444
  }
3443
- }, _i = { class: "wm-mm" }, pi = {
3445
+ }, pi = { class: "wm-mm" }, vi = {
3444
3446
  class: "wm-mm__pop",
3445
3447
  role: "menu"
3446
- }, vi = { class: "wm-mm__section" }, yi = { class: "wm-mm__section" }, gi = { class: "wm-mm__section" };
3447
- function wi(t, e, n, a, r, s) {
3448
- return l(), d("div", _i, [
3448
+ }, yi = { class: "wm-mm__section" }, gi = { class: "wm-mm__section" }, wi = { class: "wm-mm__section" };
3449
+ function bi(t, e, n, a, r, s) {
3450
+ return l(), d("div", pi, [
3449
3451
  i("div", {
3450
3452
  class: "wm-mm__scrim",
3451
3453
  onClick: e[0] || (e[0] = (o) => t.$emit("close"))
3452
3454
  }),
3453
- i("div", pi, [
3454
- i("div", vi, [
3455
+ i("div", vi, [
3456
+ i("div", yi, [
3455
3457
  i("button", {
3456
3458
  type: "button",
3457
3459
  class: "wm-mm__item",
@@ -3515,7 +3517,7 @@ function wi(t, e, n, a, r, s) {
3515
3517
  ])])) : w("", !0)
3516
3518
  ]),
3517
3519
  e[17] || (e[17] = i("div", { class: "wm-mm__sep" }, null, -1)),
3518
- i("div", yi, [
3520
+ i("div", gi, [
3519
3521
  i("button", {
3520
3522
  type: "button",
3521
3523
  class: "wm-mm__item",
@@ -3545,7 +3547,7 @@ function wi(t, e, n, a, r, s) {
3545
3547
  ])
3546
3548
  ]),
3547
3549
  e[18] || (e[18] = i("div", { class: "wm-mm__sep" }, null, -1)),
3548
- i("div", gi, [
3550
+ i("div", wi, [
3549
3551
  n.statusUrl ? (l(), d("button", {
3550
3552
  key: 0,
3551
3553
  type: "button",
@@ -3596,13 +3598,13 @@ function wi(t, e, n, a, r, s) {
3596
3598
  ])
3597
3599
  ]);
3598
3600
  }
3599
- const bi = /* @__PURE__ */ E(fi, [["render", wi], ["__scopeId", "data-v-c1bb81d2"]]), ye = "ww-messenger-tokens";
3601
+ const ki = /* @__PURE__ */ E(_i, [["render", bi], ["__scopeId", "data-v-c1bb81d2"]]), ye = "ww-messenger-tokens";
3600
3602
  function de(t) {
3601
3603
  var n;
3602
3604
  const e = (n = t == null ? void 0 : t.author) == null ? void 0 : n.type;
3603
3605
  return e === "agent_ia" || e === "agent_human";
3604
3606
  }
3605
- function ki(t, e) {
3607
+ function Ci(t, e) {
3606
3608
  if (!t || !e) return "";
3607
3609
  const n = Array.isArray(t.fields) ? t.fields : [], a = [];
3608
3610
  for (const r of n) {
@@ -3625,7 +3627,7 @@ function ae(t, e) {
3625
3627
  const n = t.options.find((a) => (a == null ? void 0 : a.value) === e);
3626
3628
  return (n == null ? void 0 : n.label) || e;
3627
3629
  }
3628
- function Ci(t, e) {
3630
+ function Ai(t, e) {
3629
3631
  const n = [], a = Array.isArray(t == null ? void 0 : t.fields) ? t.fields : [];
3630
3632
  for (const r of a) {
3631
3633
  if (!(r != null && r.key) || !(r != null && r.label)) continue;
@@ -3647,20 +3649,20 @@ function Ci(t, e) {
3647
3649
  }
3648
3650
  };
3649
3651
  }
3650
- const Ai = 450, Si = 50, xi = 900, Mi = 12e3, Ti = 300, Oi = {
3652
+ const Si = 450, xi = 50, Mi = 900, Ti = 12e3, Oi = 300, Ii = {
3651
3653
  name: "Messenger",
3652
3654
  components: {
3653
3655
  Launcher: Ke,
3654
3656
  Header: gt,
3655
3657
  Onboarding: Pt,
3656
- MessageList: Os,
3657
- Composer: Ys,
3658
- SuggestionChips: Zs,
3659
- ApprovalCard: cr,
3660
- FormCard: Fr,
3661
- Feedback: Wr,
3662
- HistoryDrawer: mi,
3663
- MoreMenu: bi
3658
+ MessageList: Is,
3659
+ Composer: Js,
3660
+ SuggestionChips: er,
3661
+ ApprovalCard: dr,
3662
+ FormCard: jr,
3663
+ Feedback: Kr,
3664
+ HistoryDrawer: fi,
3665
+ MoreMenu: ki
3664
3666
  },
3665
3667
  // Make signAttachment available to deep children (AttachmentPreview)
3666
3668
  // without prop drilling. The store may not exist yet at provide-time
@@ -4342,11 +4344,11 @@ const Ai = 450, Si = 50, xi = 900, Mi = 12e3, Ti = 300, Oi = {
4342
4344
  // bounded by MIN/MAX_BETWEEN_MS.
4343
4345
  scheduleReveal(t) {
4344
4346
  const e = Date.now(), n = ((t == null ? void 0 : t.text_md) || "").length, a = Math.min(
4345
- Mi,
4346
- Math.max(xi, n * Si)
4347
+ Ti,
4348
+ Math.max(Mi, n * xi)
4347
4349
  ), s = Math.max(
4348
- e + Ai,
4349
- this.nextRevealAt + Ti
4350
+ e + Si,
4351
+ this.nextRevealAt + Oi
4350
4352
  ) + a;
4351
4353
  this.nextRevealAt = s;
4352
4354
  const o = Math.max(0, s - e), c = t.id, v = setTimeout(() => {
@@ -4554,12 +4556,12 @@ const Ai = 450, Si = 50, xi = 900, Mi = 12e3, Ti = 300, Oi = {
4554
4556
  async onFormSubmit({ values: t }) {
4555
4557
  const e = this.pendingForm;
4556
4558
  if (!(e != null && e.form)) return;
4557
- const n = ki(e.form, t);
4559
+ const n = Ci(e.form, t);
4558
4560
  if (!n) return;
4559
4561
  const a = this.currentConv;
4560
4562
  a && await this.store.send(a.id, n, {
4561
4563
  metadata: {
4562
- artifact: Ci(e.form, t)
4564
+ artifact: Ai(e.form, t)
4563
4565
  }
4564
4566
  });
4565
4567
  },
@@ -4603,28 +4605,28 @@ const Ai = 450, Si = 50, xi = 900, Mi = 12e3, Ti = 300, Oi = {
4603
4605
  }
4604
4606
  }
4605
4607
  }
4606
- }, Ii = {
4608
+ }, Bi = {
4607
4609
  key: 0,
4608
4610
  class: "wm-loading",
4609
4611
  "aria-busy": "true",
4610
4612
  "aria-live": "polite"
4611
- }, Bi = {
4613
+ }, Ei = {
4612
4614
  key: 0,
4613
4615
  class: "wm-state"
4614
- }, Ei = { class: "wm-state__err" }, Li = { class: "wm-state__errSub" }, $i = { class: "wm-bottom" }, Ri = {
4616
+ }, Li = { class: "wm-state__err" }, $i = { class: "wm-state__errSub" }, Ri = { class: "wm-bottom" }, Fi = {
4615
4617
  key: 0,
4616
4618
  ref: "floatEl",
4617
4619
  class: "wm-float"
4618
- }, Fi = {
4620
+ }, ji = {
4619
4621
  key: 1,
4620
4622
  class: "wm-actionWait",
4621
4623
  role: "status",
4622
4624
  "aria-live": "polite"
4623
- }, ji = { class: "wm-actionWait__lbl" }, Di = {
4625
+ }, Di = { class: "wm-actionWait__lbl" }, Ui = {
4624
4626
  key: 1,
4625
4627
  class: "wm-attached"
4626
- }, Ui = ["onClick"];
4627
- function Ni(t, e, n, a, r, s) {
4628
+ }, Ni = ["onClick"];
4629
+ function Pi(t, e, n, a, r, s) {
4628
4630
  const o = I("Launcher"), c = I("Header"), v = I("Onboarding"), k = I("MessageList"), g = I("ApprovalCard"), S = I("FormCard"), R = I("Feedback"), A = I("SuggestionChips"), P = I("Composer"), x = I("MoreMenu"), U = I("HistoryDrawer");
4629
4631
  return l(), d("div", {
4630
4632
  class: B(["wm-root", `wm-root--${n.displayMode}`])
@@ -4643,7 +4645,7 @@ function Ni(t, e, n, a, r, s) {
4643
4645
  role: "dialog",
4644
4646
  "aria-label": "Messenger"
4645
4647
  }, [
4646
- !s.ready && !s.error ? (l(), d("div", Ii, [
4648
+ !s.ready && !s.error ? (l(), d("div", Bi, [
4647
4649
  s.isEmbedded ? w("", !0) : (l(), d("button", {
4648
4650
  key: 0,
4649
4651
  type: "button",
@@ -4685,8 +4687,8 @@ function Ni(t, e, n, a, r, s) {
4685
4687
  onMore: s.toggleMore,
4686
4688
  onClose: s.close
4687
4689
  }, null, 8, ["title", "escalated", "agent-name", "agent-avatar-url", "team-members", "response-label", "show-identity", "show-back", "show-close", "more-active", "onBack", "onMore", "onClose"]),
4688
- s.error ? (l(), d("div", Bi, [
4689
- i("div", Ei, [
4690
+ s.error ? (l(), d("div", Ei, [
4691
+ i("div", Li, [
4690
4692
  e[9] || (e[9] = i("div", { class: "wm-state__errIcon" }, [
4691
4693
  i("svg", {
4692
4694
  width: "14",
@@ -4704,7 +4706,7 @@ function Ni(t, e, n, a, r, s) {
4704
4706
  ], -1)),
4705
4707
  i("div", null, [
4706
4708
  e[8] || (e[8] = i("div", { class: "wm-state__errTitle" }, "Connexion impossible", -1)),
4707
- i("div", Li, b(s.error), 1)
4709
+ i("div", $i, b(s.error), 1)
4708
4710
  ])
4709
4711
  ])
4710
4712
  ])) : s.currentConv ? (l(), d(M, { key: 2 }, [
@@ -4720,8 +4722,8 @@ function Ni(t, e, n, a, r, s) {
4720
4722
  "unread-boundary-ts": r.unreadBoundaryTs,
4721
4723
  onLoadMore: s.onLoadMore
4722
4724
  }, null, 8, ["messages", "streaming-active", "date-label", "conversation-id", "loading-more", "has-more", "unread-anchor-ts", "unread-boundary-ts", "onLoadMore"]),
4723
- i("div", $i, [
4724
- s.floatVisible ? (l(), d("div", Ri, [
4725
+ i("div", Ri, [
4726
+ s.floatVisible ? (l(), d("div", Fi, [
4725
4727
  s.approvalReady ? (l(), $(g, {
4726
4728
  key: 0,
4727
4729
  action: s.approvalTitle,
@@ -4743,12 +4745,12 @@ function Ni(t, e, n, a, r, s) {
4743
4745
  onSelect: s.onSuggestion
4744
4746
  }, null, 8, ["items", "onSelect"]))
4745
4747
  ], 512)) : w("", !0),
4746
- s.actionInFlight ? (l(), d("div", Fi, [
4748
+ s.actionInFlight ? (l(), d("div", ji, [
4747
4749
  e[10] || (e[10] = i("span", {
4748
4750
  class: "wm-actionWait__spinner",
4749
4751
  "aria-hidden": "true"
4750
4752
  }, null, -1)),
4751
- i("span", ji, b(s.actionInFlightName) + " en cours, veuillez patienter…", 1)
4753
+ i("span", Di, b(s.actionInFlightName) + " en cours, veuillez patienter…", 1)
4752
4754
  ])) : (l(), $(P, {
4753
4755
  key: 2,
4754
4756
  ref: "composer",
@@ -4773,7 +4775,7 @@ function Ni(t, e, n, a, r, s) {
4773
4775
  onNotifToggle: s.onNotifToggle,
4774
4776
  onAction: s.onMoreAction
4775
4777
  }, null, 8, ["can-rename", "can-clear", "can-export", "notif-enabled", "status-url", "help-url", "onNotifToggle", "onAction"])) : w("", !0),
4776
- r.pendingAttachments.length ? (l(), d("div", Di, [
4778
+ r.pendingAttachments.length ? (l(), d("div", Ui, [
4777
4779
  (l(!0), d(M, null, j(r.pendingAttachments, (F, N) => (l(), d("div", {
4778
4780
  key: N,
4779
4781
  class: "wm-attached__chip"
@@ -4810,7 +4812,7 @@ function Ni(t, e, n, a, r, s) {
4810
4812
  }, [
4811
4813
  i("path", { d: "M18 6L6 18M6 6l12 12" })
4812
4814
  ], -1)
4813
- ])], 8, Ui)
4815
+ ])], 8, Ni)
4814
4816
  ]))), 128))
4815
4817
  ])) : w("", !0)
4816
4818
  ], 64)) : (l(), $(v, {
@@ -4848,48 +4850,48 @@ function Ni(t, e, n, a, r, s) {
4848
4850
  ], 6)) : w("", !0)
4849
4851
  ], 2);
4850
4852
  }
4851
- const zi = /* @__PURE__ */ E(Oi, [["render", Ni], ["__scopeId", "data-v-29568eac"]]), Vi = "0.2.28";
4853
+ const Vi = /* @__PURE__ */ E(Ii, [["render", Pi], ["__scopeId", "data-v-29568eac"]]), qi = "0.2.29";
4852
4854
  export {
4853
4855
  te as AIAvatar,
4854
4856
  ce as AVATAR_COLORS,
4855
- Qt as ActionResult,
4856
- cr as ApprovalCard,
4857
- on as ArtifactFormResponse,
4858
- wn as ArtifactInfoCard,
4859
- Un as ArtifactRenderer,
4860
- Rn as ArtifactTicket,
4861
- Xn as AttachmentPreview,
4862
- rs as Bubble,
4863
- Ys as Composer,
4857
+ Zt as ActionResult,
4858
+ dr as ApprovalCard,
4859
+ ln as ArtifactFormResponse,
4860
+ bn as ArtifactInfoCard,
4861
+ Nn as ArtifactRenderer,
4862
+ Fn as ArtifactTicket,
4863
+ Qn as AttachmentPreview,
4864
+ is as Bubble,
4865
+ Js as Composer,
4864
4866
  Pe as DEFAULT_BASE_URL,
4865
- Wr as Feedback,
4866
- Fr as FormCard,
4867
+ Kr as Feedback,
4868
+ jr as FormCard,
4867
4869
  gt as Header,
4868
- mi as HistoryDrawer,
4870
+ fi as HistoryDrawer,
4869
4871
  ke as HumanAvatar,
4870
4872
  Ke as Launcher,
4871
4873
  he as MEDIA_RECORDER_SUPPORTED,
4872
- Os as MessageList,
4873
- zi as Messenger,
4874
- bi as MoreMenu,
4874
+ Is as MessageList,
4875
+ Vi as Messenger,
4876
+ ki as MoreMenu,
4875
4877
  Pt as Onboarding,
4876
4878
  ie as SCREEN_CAPTURE_SUPPORTED,
4877
- Zs as SuggestionChips,
4879
+ er as SuggestionChips,
4878
4880
  ot as TeamAvatars,
4879
- ls as Typing,
4880
- Vi as VERSION,
4881
+ cs as Typing,
4882
+ qi as VERSION,
4881
4883
  ge as avatarColor,
4882
4884
  we as avatarInitials,
4883
- Bs as captureScreenshotFile,
4885
+ Es as captureScreenshotFile,
4884
4886
  D as colors,
4885
4887
  Ue as createStore,
4886
4888
  Re as createTransport,
4887
- zi as default,
4889
+ Vi as default,
4888
4890
  be as formatTime,
4889
- Hi as guessAttachmentKind,
4890
- Is as pickRecorderMime,
4891
- es as renderMarkdown,
4892
- Ls as startScreenRecording,
4891
+ zi as guessAttachmentKind,
4892
+ Bs as pickRecorderMime,
4893
+ ts as renderMarkdown,
4894
+ $s as startScreenRecording,
4893
4895
  Ne as tokensCss,
4894
4896
  De as uuid,
4895
4897
  De as v4