@telia-ace/widget-conversation-flamingo 1.0.0 → 1.0.2
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/components/conversation/conversation.d.ts.map +1 -1
- package/dist/components/conversation/ui/message-list.d.ts.map +1 -1
- package/dist/components/conversation/ui/message-types/message-type-html.d.ts.map +1 -1
- package/dist/components/conversation/ui/message-types/message-type-link-list.d.ts.map +1 -1
- package/dist/components/conversation/ui/message-types/message-type-separator.d.ts.map +1 -1
- package/dist/components/conversation/ui/message.d.ts.map +1 -1
- package/dist/components/conversation/utils.d.ts.map +1 -1
- package/dist/{conversation-31b48ff2.js → conversation-2192822c.js} +103 -68
- package/dist/{conversation-31b48ff2.js.map → conversation-2192822c.js.map} +1 -1
- package/dist/{index-d8edc7b3.js → index-1ee7f7b5.js} +111 -112
- package/dist/{index-d8edc7b3.js.map → index-1ee7f7b5.js.map} +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
|
@@ -84,7 +84,7 @@ const Rs = (s, e, t, n) => {
|
|
|
84
84
|
function At(s, e) {
|
|
85
85
|
return typeof s == "undefined" ? e : s;
|
|
86
86
|
}
|
|
87
|
-
let
|
|
87
|
+
let Js = class {
|
|
88
88
|
constructor(e = {}) {
|
|
89
89
|
this.part = e;
|
|
90
90
|
}
|
|
@@ -112,7 +112,7 @@ let Vs = class {
|
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
114
|
const os = (s) => {
|
|
115
|
-
const e = new
|
|
115
|
+
const e = new Js({});
|
|
116
116
|
return s(e), e.get();
|
|
117
117
|
};
|
|
118
118
|
os((s) => {
|
|
@@ -194,7 +194,7 @@ os((s) => {
|
|
|
194
194
|
}
|
|
195
195
|
);
|
|
196
196
|
});
|
|
197
|
-
const
|
|
197
|
+
const Vs = os((s) => {
|
|
198
198
|
s.createCommand(
|
|
199
199
|
"ready",
|
|
200
200
|
{ scope: ie.Implementation, stage: L.Pre },
|
|
@@ -521,7 +521,7 @@ const he = (s, e, t) => {
|
|
|
521
521
|
});
|
|
522
522
|
return Promise.all(n);
|
|
523
523
|
};
|
|
524
|
-
let
|
|
524
|
+
let Qs = class {
|
|
525
525
|
constructor(e) {
|
|
526
526
|
this.widget = e.get("$widget"), this.events = this.widget.events, this.container = this.widget.container, this.initialized = null, this.activated = null, this.initialize = this.initialize.bind(this), this.activate = this.activate.bind(this), this.deactivate = this.deactivate.bind(this), this.invoke = this.invoke.bind(this), this.createInstance();
|
|
527
527
|
}
|
|
@@ -594,7 +594,7 @@ let Ks = class {
|
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
596
|
};
|
|
597
|
-
const
|
|
597
|
+
const Q = (s, e) => {
|
|
598
598
|
if (!e)
|
|
599
599
|
return !0;
|
|
600
600
|
if (typeof e == "string") {
|
|
@@ -606,20 +606,20 @@ const K = (s, e) => {
|
|
|
606
606
|
}
|
|
607
607
|
}
|
|
608
608
|
return e instanceof Array ? e.indexOf(s) > -1 : !1;
|
|
609
|
-
},
|
|
609
|
+
}, Ks = (s, e) => {
|
|
610
610
|
if (typeof e == "function")
|
|
611
611
|
return e(s);
|
|
612
|
-
const t = typeof e == "string" ?
|
|
613
|
-
return !(!
|
|
612
|
+
const t = typeof e == "string" ? Zs(e) : e;
|
|
613
|
+
return !(!Q(s.implementation.tenant || "", t.tenant || "") || !Q(s.implementation.name, t.implementation || "") || !Q(s.name, t.widget || "") || !Q(s.container.get("$type"), t.type || ""));
|
|
614
614
|
}, Ys = (s, e) => {
|
|
615
615
|
if (typeof e == "function")
|
|
616
616
|
return e(s);
|
|
617
|
-
const t = typeof e == "string" ?
|
|
618
|
-
return !(!
|
|
619
|
-
}, hs = (s) => (e) =>
|
|
617
|
+
const t = typeof e == "string" ? Xs(e) : e;
|
|
618
|
+
return !(!Q(s.tenant || "", t.tenant || "") || !Q(s.name, t.implementation || ""));
|
|
619
|
+
}, hs = (s) => (e) => Ks(e, s), Gs = (s) => (e) => Ys(e, s), I = (s) => s instanceof Array && s.length === 1 ? s[0] : s, Zs = (s) => {
|
|
620
620
|
const e = {}, t = s.split(":");
|
|
621
621
|
return t.length === 1 ? e.widget = I(t[0].split(",")) : t.length === 2 ? (e.implementation = I(t[0].split(",")), e.widget = I(t[1].split(","))) : (e.tenant = I(t[0].split(",")), e.implementation = I(t[1].split(",")), e.widget = I(t[2].split(","))), e;
|
|
622
|
-
},
|
|
622
|
+
}, Xs = (s) => {
|
|
623
623
|
const e = {}, t = s.split(":");
|
|
624
624
|
return t.length === 1 ? e.implementation = I(t[0].split(",")) : (e.tenant = I(t[0].split(",")), e.implementation = I(t[1].split(","))), e;
|
|
625
625
|
}, me = G(), It = (s, e, t) => s.filter((n) => n.stage === e && hs(n.selector)(t));
|
|
@@ -864,7 +864,7 @@ const Dt = (s) => typeof s != "undefined", ee = (s, e) => {
|
|
|
864
864
|
s.events.dispatch("widget:state-change", { state: e }, { bubbles: !0 }), s.state = e, s.events.dispatch("widget:state-changed", {}, { bubbles: !0 });
|
|
865
865
|
}, A = G(), dn = (s) => {
|
|
866
866
|
const { container: e, events: t } = s;
|
|
867
|
-
e.get("$controller") || (e.register("$controller", new
|
|
867
|
+
e.get("$controller") || (e.register("$controller", new Qs(e)), t.dispatch("widget:controller-created", {}, { bubbles: !0 }));
|
|
868
868
|
};
|
|
869
869
|
let un = class {
|
|
870
870
|
/**
|
|
@@ -1163,7 +1163,7 @@ const M = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1
|
|
|
1163
1163
|
function Oe() {
|
|
1164
1164
|
return M() + M() + "-" + M() + "-" + M() + "-" + M() + "-" + M() + M() + M();
|
|
1165
1165
|
}
|
|
1166
|
-
var yn = Object.defineProperty, bn = Object.defineProperties, wn = Object.getOwnPropertyDescriptors, Lt = Object.getOwnPropertySymbols, $n = Object.prototype.hasOwnProperty, Pn = Object.prototype.propertyIsEnumerable, Rt = (s, e, t) => e in s ? yn(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t,
|
|
1166
|
+
var yn = Object.defineProperty, bn = Object.defineProperties, wn = Object.getOwnPropertyDescriptors, Lt = Object.getOwnPropertySymbols, $n = Object.prototype.hasOwnProperty, Pn = Object.prototype.propertyIsEnumerable, Rt = (s, e, t) => e in s ? yn(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Xe = (s, e) => {
|
|
1167
1167
|
for (var t in e || (e = {}))
|
|
1168
1168
|
$n.call(e, t) && Rt(s, t, e[t]);
|
|
1169
1169
|
if (Lt)
|
|
@@ -1282,7 +1282,7 @@ const En = (s, e, t) => {
|
|
|
1282
1282
|
let c = !0;
|
|
1283
1283
|
if (n.length) {
|
|
1284
1284
|
const l = n.shift(), h = (d, p) => (c = !1, i(d, Object.assign({}, o, p), a));
|
|
1285
|
-
return Promise.resolve(l(r, h, a)).then((d) => kn(
|
|
1285
|
+
return Promise.resolve(l(r, h, a)).then((d) => kn(Xe({}, d), {
|
|
1286
1286
|
cancelled: c
|
|
1287
1287
|
}));
|
|
1288
1288
|
}
|
|
@@ -1370,7 +1370,7 @@ ds((s) => {
|
|
|
1370
1370
|
});
|
|
1371
1371
|
});
|
|
1372
1372
|
});
|
|
1373
|
-
class
|
|
1373
|
+
class Jt {
|
|
1374
1374
|
constructor(e, t) {
|
|
1375
1375
|
this.events = e, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = Oe(), this.type = t, this.attributes = {
|
|
1376
1376
|
context: {},
|
|
@@ -1534,24 +1534,24 @@ const _n = (s) => {
|
|
|
1534
1534
|
properties: u.properties || y,
|
|
1535
1535
|
layout: u.layout || O
|
|
1536
1536
|
}), y && (h.attributes.properties = {}), O && (h.attributes.layout = {}), g && (h.attributes.context = N({}, (p = h.parent) == null ? void 0 : p.attributes.context));
|
|
1537
|
-
const D = [],
|
|
1537
|
+
const D = [], Z = [], X = [];
|
|
1538
1538
|
if (h.changesets.forEach((v) => {
|
|
1539
|
-
const [m,
|
|
1540
|
-
Tn(
|
|
1539
|
+
const [m, J] = v;
|
|
1540
|
+
Tn(J.breakpoints, s.breakpoints) && (y && (typeof m.properties == "function" ? D.push(
|
|
1541
1541
|
m.properties
|
|
1542
|
-
) : N(h.attributes.properties, m.properties)), O && (typeof m.layout == "function" ?
|
|
1542
|
+
) : N(h.attributes.properties, m.properties)), O && (typeof m.layout == "function" ? Z.push(m.layout) : N(h.attributes.layout, m.layout)), g && (typeof m.context == "function" ? X.push(m.context) : N(h.attributes.context, m.context)));
|
|
1543
1543
|
}), D.forEach((v) => {
|
|
1544
1544
|
N(h.attributes.properties, v(h.attributes.properties));
|
|
1545
|
-
}), X.forEach((v) => {
|
|
1546
|
-
N(h.attributes.layout, v(h.attributes.layout));
|
|
1547
1545
|
}), Z.forEach((v) => {
|
|
1546
|
+
N(h.attributes.layout, v(h.attributes.layout));
|
|
1547
|
+
}), X.forEach((v) => {
|
|
1548
1548
|
N(h.attributes.context, v(h.attributes.context));
|
|
1549
1549
|
}), g || d.recursive) {
|
|
1550
1550
|
const v = s.getBranch(h), m = d.recursive ? d : {
|
|
1551
1551
|
context: !!g
|
|
1552
1552
|
};
|
|
1553
|
-
h.getChildren(v).forEach((
|
|
1554
|
-
l(
|
|
1553
|
+
h.getChildren(v).forEach((J) => {
|
|
1554
|
+
l(J, m);
|
|
1555
1555
|
});
|
|
1556
1556
|
}
|
|
1557
1557
|
};
|
|
@@ -1573,7 +1573,7 @@ const _n = (s) => {
|
|
|
1573
1573
|
let Dn = class {
|
|
1574
1574
|
constructor(e, t = {}) {
|
|
1575
1575
|
this.providers = t, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new Nn(), this.events = e.events.createChild(this);
|
|
1576
|
-
const n = new
|
|
1576
|
+
const n = new Jt(this.events, "root");
|
|
1577
1577
|
n.name = `root-${e.name}`, this.nodes = new Sn(n, this.switches, this.events);
|
|
1578
1578
|
const i = this.processNode = jn(this, (r) => {
|
|
1579
1579
|
const o = Array.from(r.keys());
|
|
@@ -1680,7 +1680,7 @@ ${o.map(
|
|
|
1680
1680
|
* @param type Type of node.
|
|
1681
1681
|
*/
|
|
1682
1682
|
createNode(e, t = {}) {
|
|
1683
|
-
const n = new
|
|
1683
|
+
const n = new Jt(this.events, e);
|
|
1684
1684
|
return t.detached && this.nodes.detached.push(n), n;
|
|
1685
1685
|
}
|
|
1686
1686
|
components() {
|
|
@@ -1726,7 +1726,7 @@ const Wn = "#____version____#", ys = class extends gs {
|
|
|
1726
1726
|
super(e, t, {
|
|
1727
1727
|
transformPluginSettings: (n, i, r) => {
|
|
1728
1728
|
const o = r.get("$settings"), a = o.plugins && i ? o.plugins[i] || {} : {};
|
|
1729
|
-
return
|
|
1729
|
+
return Xe(Xe({}, a), n);
|
|
1730
1730
|
}
|
|
1731
1731
|
});
|
|
1732
1732
|
}
|
|
@@ -1749,7 +1749,7 @@ const Wn = "#____version____#", ys = class extends gs {
|
|
|
1749
1749
|
* @param configuration Runtime configuration.
|
|
1750
1750
|
*/
|
|
1751
1751
|
static create(e = {}) {
|
|
1752
|
-
const t = [
|
|
1752
|
+
const t = [Vs].concat(
|
|
1753
1753
|
e.configurationApiExtensions || []
|
|
1754
1754
|
);
|
|
1755
1755
|
return new ys("humany", t);
|
|
@@ -1779,11 +1779,11 @@ const Wn = "#____version____#", ys = class extends gs {
|
|
|
1779
1779
|
};
|
|
1780
1780
|
let Mn = ys;
|
|
1781
1781
|
Mn.version = `${Wn} (${ct})`;
|
|
1782
|
-
var zn = Object.defineProperty,
|
|
1782
|
+
var zn = Object.defineProperty, Vt = Object.getOwnPropertySymbols, Ln = Object.prototype.hasOwnProperty, Rn = Object.prototype.propertyIsEnumerable, Ht = (s, e, t) => e in s ? zn(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, B = (s, e) => {
|
|
1783
1783
|
for (var t in e || (e = {}))
|
|
1784
1784
|
Ln.call(e, t) && Ht(s, t, e[t]);
|
|
1785
|
-
if (
|
|
1786
|
-
for (var t of
|
|
1785
|
+
if (Vt)
|
|
1786
|
+
for (var t of Vt(e))
|
|
1787
1787
|
Rn.call(e, t) && Ht(s, t, e[t]);
|
|
1788
1788
|
return s;
|
|
1789
1789
|
}, $ = /* @__PURE__ */ ((s) => (s.Cookie = "cookie", s.Local = "local", s.Session = "session", s))($ || {}), xe = /* @__PURE__ */ ((s) => (s.Tenant = "tenant", s.Implementation = "implementation", s.Widget = "widget", s))(xe || {}), w = /* @__PURE__ */ ((s) => (s.Necessary = "necessary", s.Functional = "functional", s.Analytical = "analytical", s.Marketing = "marketing", s))(w || {});
|
|
@@ -1807,9 +1807,9 @@ const Ce = (s, e, t, n = {}) => qt(s, t).then((i) => (process.env.NODE_ENV !== "
|
|
|
1807
1807
|
scope: a = xe.Widget,
|
|
1808
1808
|
medium: c = $.Session,
|
|
1809
1809
|
duration: l
|
|
1810
|
-
} = n, h =
|
|
1811
|
-
return h[a][e] = $s(r, t, l), c === $.Cookie ? Un(s, h) :
|
|
1812
|
-
})))),
|
|
1810
|
+
} = n, h = Vn();
|
|
1811
|
+
return h[a][e] = $s(r, t, l), c === $.Cookie ? Un(s, h) : Kn(s, c, h);
|
|
1812
|
+
})))), V = (s, e, t = $.Session) => (ut(s), typeof e == "undefined" ? (process.env.NODE_ENV !== "production" && C.warn("readStorage: Undefined key passed when reading storage. ", e, t), Promise.resolve(void 0)) : t === $.Cookie ? Bn(s).then((n) => tt(n, e)) : Qn(s, t).then((n) => tt(n, e))), K = (s) => !!Object.entries(s).filter(([e, t]) => typeof t != "undefined").length, Re = (s) => Object.entries(s).filter(([e, t]) => typeof t != "undefined").forEach(([e, { value: t }]) => {
|
|
1813
1813
|
typeof t == "undefined" && delete s[e];
|
|
1814
1814
|
}), bs = (s, e) => {
|
|
1815
1815
|
const t = {
|
|
@@ -1818,7 +1818,7 @@ const Ce = (s, e, t, n = {}) => qt(s, t).then((i) => (process.env.NODE_ENV !== "
|
|
|
1818
1818
|
widget: B(B({}, s.widget), e.widget)
|
|
1819
1819
|
};
|
|
1820
1820
|
return Re(t.tenant), Re(t.implementation), Re(t.widget), t;
|
|
1821
|
-
},
|
|
1821
|
+
}, Jn = (s) => Object.entries(s).reduce((e, t) => {
|
|
1822
1822
|
const [n, i] = t;
|
|
1823
1823
|
return Object.entries(i).forEach((r) => {
|
|
1824
1824
|
const [o, { expiration: a }] = r;
|
|
@@ -1834,26 +1834,26 @@ const Ce = (s, e, t, n = {}) => qt(s, t).then((i) => (process.env.NODE_ENV !== "
|
|
|
1834
1834
|
`humany_${zt(n + t)}`,
|
|
1835
1835
|
`humany_${zt(n + t + e)}`
|
|
1836
1836
|
];
|
|
1837
|
-
},
|
|
1837
|
+
}, Je = (s) => {
|
|
1838
1838
|
const e = new RegExp(`(?:^|;)\\s?${s}=(.*?)(?:;|$)`, "i"), t = document.cookie.match(e);
|
|
1839
1839
|
return t && t[1] && JSON.parse(t[1]) || void 0;
|
|
1840
|
-
},
|
|
1840
|
+
}, Ve = (s, e, t) => {
|
|
1841
1841
|
const n = `${s}=${JSON.stringify(e).trim()}`, i = `expires=${new Date(t).toUTCString()}`, r = "path=/", o = "SameSite=None;Secure";
|
|
1842
1842
|
return document.cookie = `${n}; ${i}; ${r}; ${o}`;
|
|
1843
1843
|
}, dt = (s) => {
|
|
1844
|
-
const [e, t, n] = Ee(s), i =
|
|
1844
|
+
const [e, t, n] = Ee(s), i = Je(e) || {}, r = Je(t) || {}, o = Je(n) || {};
|
|
1845
1845
|
return {
|
|
1846
1846
|
tenant: i,
|
|
1847
1847
|
implementation: r,
|
|
1848
1848
|
widget: o
|
|
1849
1849
|
};
|
|
1850
1850
|
}, ws = (s, e) => {
|
|
1851
|
-
const t = dt(s), n = bs(t, e), [i, r, o] = Ee(s), { tenant: a, implementation: c, widget: l } = n, h =
|
|
1852
|
-
|
|
1851
|
+
const t = dt(s), n = bs(t, e), [i, r, o] = Ee(s), { tenant: a, implementation: c, widget: l } = n, h = Jn(e), d = pt({ days: -1 });
|
|
1852
|
+
Ve(i, a, K(a) ? h : d), Ve(
|
|
1853
1853
|
r,
|
|
1854
1854
|
c,
|
|
1855
|
-
|
|
1856
|
-
),
|
|
1855
|
+
K(c) ? h : d
|
|
1856
|
+
), Ve(o, l, K(l) ? h : d);
|
|
1857
1857
|
}, ve = (s, e) => {
|
|
1858
1858
|
const [t, n, i] = Ee(s), r = e.getItem(t) || "{}", o = e.getItem(n) || "{}", a = e.getItem(i) || "{}";
|
|
1859
1859
|
return {
|
|
@@ -1863,8 +1863,8 @@ const Ce = (s, e, t, n = {}) => qt(s, t).then((i) => (process.env.NODE_ENV !== "
|
|
|
1863
1863
|
};
|
|
1864
1864
|
}, et = (s, e, t) => {
|
|
1865
1865
|
const n = ve(s, e), i = bs(n, t), [r, o, a] = Ee(s), { tenant: c, implementation: l, widget: h } = i;
|
|
1866
|
-
|
|
1867
|
-
},
|
|
1866
|
+
K(c) ? e.setItem(r, JSON.stringify(c)) : e.removeItem(r), K(l) ? e.setItem(o, JSON.stringify(l)) : e.removeItem(o), K(h) ? e.setItem(a, JSON.stringify(h)) : e.removeItem(a);
|
|
1867
|
+
}, Vn = () => ({ tenant: {}, implementation: {}, widget: {} }), Hn = (s) => s ? !!s && /* @__PURE__ */ new Date() > new Date(s) : !1, tt = (s, e) => {
|
|
1868
1868
|
const t = s.widget[e] || s.implementation[e] || s.tenant[e];
|
|
1869
1869
|
return t == null ? void 0 : t.value;
|
|
1870
1870
|
}, $s = (s, e, t) => t ? {
|
|
@@ -1882,7 +1882,7 @@ const Ce = (s, e, t, n = {}) => qt(s, t).then((i) => (process.env.NODE_ENV !== "
|
|
|
1882
1882
|
(Hn(a) || Fn(e, c)) && (i[r] = $s(void 0, c, a));
|
|
1883
1883
|
});
|
|
1884
1884
|
}), t;
|
|
1885
|
-
}, qt = (s, e) =>
|
|
1885
|
+
}, qt = (s, e) => V(s, "storagePolicy", $.Cookie).then(
|
|
1886
1886
|
(t = [w.Necessary]) => !!e && t.indexOf(e) === -1
|
|
1887
1887
|
), Fn = (s = [w.Necessary], e) => !!e && s.indexOf(e) === -1, ut = (s) => {
|
|
1888
1888
|
const e = dt(s), t = ve(s, window.localStorage), n = ve(s, sessionStorage), i = tt(e, "storagePolicy"), [r, o, a] = [
|
|
@@ -1894,10 +1894,10 @@ const Ce = (s, e, t, n = {}) => qt(s, t).then((i) => (process.env.NODE_ENV !== "
|
|
|
1894
1894
|
}, pt = (s = { days: 30 }) => {
|
|
1895
1895
|
const { days: e = 0, hours: t = 0, minutes: n = 0, seconds: i = 0 } = s, r = /* @__PURE__ */ new Date();
|
|
1896
1896
|
return r.setTime(r.getTime() + t * 60 * 60 * 1e3), r.setTime(r.getTime() + e * 24 * 60 * 60 * 1e3), r.setTime(r.getTime() + n * 60 * 1e3), r.setTime(r.getTime() + i * 1e3), r.toISOString();
|
|
1897
|
-
}, Bn = (s) => oe(document)(() => dt(s)), Un = (s, e) => oe(document)(() => ws(s, e)),
|
|
1897
|
+
}, Bn = (s) => oe(document)(() => dt(s)), Un = (s, e) => oe(document)(() => ws(s, e)), Qn = (s, e) => {
|
|
1898
1898
|
const t = e === $.Local ? window.localStorage : window.sessionStorage;
|
|
1899
1899
|
return oe(t)(() => ve(s, t));
|
|
1900
|
-
},
|
|
1900
|
+
}, Kn = (s, e, t) => {
|
|
1901
1901
|
const n = e === $.Local ? window.localStorage : window.sessionStorage;
|
|
1902
1902
|
return oe(n)(() => et(s, n, t));
|
|
1903
1903
|
}, He = (s, e, t, ...n) => {
|
|
@@ -1949,7 +1949,7 @@ const Gn = (s, e, t, n) => {
|
|
|
1949
1949
|
function Ft(s, e) {
|
|
1950
1950
|
return typeof s == "undefined" ? e : s;
|
|
1951
1951
|
}
|
|
1952
|
-
class
|
|
1952
|
+
class Zn {
|
|
1953
1953
|
constructor(e = {}) {
|
|
1954
1954
|
this.part = e;
|
|
1955
1955
|
}
|
|
@@ -1977,7 +1977,7 @@ class Xn {
|
|
|
1977
1977
|
}
|
|
1978
1978
|
}
|
|
1979
1979
|
const Ps = (s) => {
|
|
1980
|
-
const e = new
|
|
1980
|
+
const e = new Zn({});
|
|
1981
1981
|
return s(e), e.get();
|
|
1982
1982
|
};
|
|
1983
1983
|
Ps((s) => {
|
|
@@ -2103,7 +2103,7 @@ Ps((s) => {
|
|
|
2103
2103
|
}
|
|
2104
2104
|
});
|
|
2105
2105
|
});
|
|
2106
|
-
class
|
|
2106
|
+
class Xn {
|
|
2107
2107
|
constructor(e) {
|
|
2108
2108
|
this.controller = e, this.cache = /* @__PURE__ */ new Map(), this.subscriptions = [];
|
|
2109
2109
|
const { events: t } = e.container.get("$widget"), n = t.subscribe("data-client:fetched", (i, r) => {
|
|
@@ -2449,7 +2449,7 @@ class ti {
|
|
|
2449
2449
|
}
|
|
2450
2450
|
read() {
|
|
2451
2451
|
return b(this, null, function* () {
|
|
2452
|
-
return
|
|
2452
|
+
return V(this.container, this.sessionStorageKey).then((e) => e || {
|
|
2453
2453
|
messages: [],
|
|
2454
2454
|
agents: []
|
|
2455
2455
|
});
|
|
@@ -2531,7 +2531,7 @@ class ii {
|
|
|
2531
2531
|
);
|
|
2532
2532
|
};
|
|
2533
2533
|
const i = e.get("$widget");
|
|
2534
|
-
this.events = i.events.createChild(this), this.store = new ti(e, this, n.rehydrate), this.conversationHistory = new
|
|
2534
|
+
this.events = i.events.createChild(this), this.store = new ti(e, this, n.rehydrate), this.conversationHistory = new Xn(this);
|
|
2535
2535
|
}
|
|
2536
2536
|
setInitialStorage(e) {
|
|
2537
2537
|
this.store.setInitialData(e);
|
|
@@ -2776,7 +2776,7 @@ class ft {
|
|
|
2776
2776
|
{
|
|
2777
2777
|
medium: $.Local
|
|
2778
2778
|
}
|
|
2779
|
-
).then((e) => this.storageWriter = e),
|
|
2779
|
+
).then((e) => this.storageWriter = e), V(
|
|
2780
2780
|
this.container,
|
|
2781
2781
|
te,
|
|
2782
2782
|
$.Local
|
|
@@ -2806,7 +2806,7 @@ class ft {
|
|
|
2806
2806
|
}));
|
|
2807
2807
|
}
|
|
2808
2808
|
navigateToConversationIfActive(e) {
|
|
2809
|
-
return
|
|
2809
|
+
return V(
|
|
2810
2810
|
this.container,
|
|
2811
2811
|
te,
|
|
2812
2812
|
$.Local
|
|
@@ -2819,7 +2819,7 @@ class ft {
|
|
|
2819
2819
|
});
|
|
2820
2820
|
}
|
|
2821
2821
|
setConversationEndedBehavior(e) {
|
|
2822
|
-
return
|
|
2822
|
+
return V(
|
|
2823
2823
|
this.container,
|
|
2824
2824
|
te,
|
|
2825
2825
|
$.Local
|
|
@@ -2830,7 +2830,7 @@ class ft {
|
|
|
2830
2830
|
}
|
|
2831
2831
|
createController(e, t) {
|
|
2832
2832
|
return b(this, null, function* () {
|
|
2833
|
-
const n = ks(e), { agents: i } = (yield
|
|
2833
|
+
const n = ks(e), { agents: i } = (yield V(this.container, n)) || { agents: [] }, r = this.controllers.findIndex((a) => a.conversation.id === e);
|
|
2834
2834
|
let o;
|
|
2835
2835
|
return r > -1 ? o = this.controllers[r].conversation : o = new ii(this.container, e, t), o.setInitialStorage({ agents: i || [] }), o;
|
|
2836
2836
|
});
|
|
@@ -2913,7 +2913,7 @@ class ft {
|
|
|
2913
2913
|
n && (this.disposeProviders[e.name] || (this.disposeProviders[e.name] = []), this.disposeProviders[e.name].push(n));
|
|
2914
2914
|
}
|
|
2915
2915
|
getComponentRoute() {
|
|
2916
|
-
return
|
|
2916
|
+
return V(
|
|
2917
2917
|
this.container,
|
|
2918
2918
|
te,
|
|
2919
2919
|
$.Local
|
|
@@ -3011,7 +3011,7 @@ const li = (s, e, t, n) => {
|
|
|
3011
3011
|
throw i;
|
|
3012
3012
|
}
|
|
3013
3013
|
};
|
|
3014
|
-
function
|
|
3014
|
+
function Qt(s, e) {
|
|
3015
3015
|
return typeof s == "undefined" ? e : s;
|
|
3016
3016
|
}
|
|
3017
3017
|
let di = class {
|
|
@@ -3026,8 +3026,8 @@ let di = class {
|
|
|
3026
3026
|
defaultArgs: void 0,
|
|
3027
3027
|
handlerResolver: e
|
|
3028
3028
|
} : n = {
|
|
3029
|
-
scope:
|
|
3030
|
-
stage:
|
|
3029
|
+
scope: Qt(e.scope, we.Widget),
|
|
3030
|
+
stage: Qt(e.stage, q.Post),
|
|
3031
3031
|
defaultArgs: e.defaultArgs,
|
|
3032
3032
|
handlerResolver: t
|
|
3033
3033
|
};
|
|
@@ -3146,7 +3146,7 @@ const Os = (s) => {
|
|
|
3146
3146
|
t = s[n], e[n] = typeof t == "object" && t !== null ? Os(t) : t;
|
|
3147
3147
|
return e;
|
|
3148
3148
|
}, ui = Os;
|
|
3149
|
-
function
|
|
3149
|
+
function Kt(s) {
|
|
3150
3150
|
let e = 0;
|
|
3151
3151
|
if (s.length === 0)
|
|
3152
3152
|
return e.toString();
|
|
@@ -3406,7 +3406,7 @@ vt((s) => {
|
|
|
3406
3406
|
});
|
|
3407
3407
|
});
|
|
3408
3408
|
});
|
|
3409
|
-
let
|
|
3409
|
+
let Zt = class {
|
|
3410
3410
|
constructor(s, e) {
|
|
3411
3411
|
this.events = s, this.tags = [], this.children = {}, this.changesets = [], this.mountCount = 0, this.id = _e(), this.type = e, this.attributes = {
|
|
3412
3412
|
context: {},
|
|
@@ -3569,24 +3569,24 @@ const Ei = (s) => {
|
|
|
3569
3569
|
properties: u.properties || y,
|
|
3570
3570
|
layout: u.layout || O
|
|
3571
3571
|
}), y && (h.attributes.properties = {}), O && (h.attributes.layout = {}), g && (h.attributes.context = _({}, (p = h.parent) == null ? void 0 : p.attributes.context));
|
|
3572
|
-
const D = [],
|
|
3572
|
+
const D = [], Z = [], X = [];
|
|
3573
3573
|
if (h.changesets.forEach((v) => {
|
|
3574
|
-
const [m,
|
|
3575
|
-
Si(
|
|
3574
|
+
const [m, J] = v;
|
|
3575
|
+
Si(J.breakpoints, s.breakpoints) && (y && (typeof m.properties == "function" ? D.push(
|
|
3576
3576
|
m.properties
|
|
3577
|
-
) : _(h.attributes.properties, m.properties)), O && (typeof m.layout == "function" ?
|
|
3577
|
+
) : _(h.attributes.properties, m.properties)), O && (typeof m.layout == "function" ? Z.push(m.layout) : _(h.attributes.layout, m.layout)), g && (typeof m.context == "function" ? X.push(m.context) : _(h.attributes.context, m.context)));
|
|
3578
3578
|
}), D.forEach((v) => {
|
|
3579
3579
|
_(h.attributes.properties, v(h.attributes.properties));
|
|
3580
|
-
}), X.forEach((v) => {
|
|
3581
|
-
_(h.attributes.layout, v(h.attributes.layout));
|
|
3582
3580
|
}), Z.forEach((v) => {
|
|
3581
|
+
_(h.attributes.layout, v(h.attributes.layout));
|
|
3582
|
+
}), X.forEach((v) => {
|
|
3583
3583
|
_(h.attributes.context, v(h.attributes.context));
|
|
3584
3584
|
}), g || d.recursive) {
|
|
3585
3585
|
const v = s.getBranch(h), m = d.recursive ? d : {
|
|
3586
3586
|
context: !!g
|
|
3587
3587
|
};
|
|
3588
|
-
h.getChildren(v).forEach((
|
|
3589
|
-
l(
|
|
3588
|
+
h.getChildren(v).forEach((J) => {
|
|
3589
|
+
l(J, m);
|
|
3590
3590
|
});
|
|
3591
3591
|
}
|
|
3592
3592
|
};
|
|
@@ -3608,7 +3608,7 @@ const Ei = (s) => {
|
|
|
3608
3608
|
let Es = class {
|
|
3609
3609
|
constructor(s, e = {}) {
|
|
3610
3610
|
this.providers = e, this.breakpoints = [], this.actionsState = { handlers: [], watchers: [] }, this.switches = {}, this.changesets = [], this.subscriptions = [], this.customComponentHandler = new Ci(), this.events = s.events.createChild(this);
|
|
3611
|
-
const t = new
|
|
3611
|
+
const t = new Zt(this.events, "root");
|
|
3612
3612
|
t.name = `root-${s.name}`, this.nodes = new xi(t, this.switches, this.events);
|
|
3613
3613
|
const n = this.processNode = Ni(this, (i) => {
|
|
3614
3614
|
const r = Array.from(i.keys());
|
|
@@ -3715,7 +3715,7 @@ ${r.map(
|
|
|
3715
3715
|
* @param type Type of node.
|
|
3716
3716
|
*/
|
|
3717
3717
|
createNode(s, e = {}) {
|
|
3718
|
-
const t = new
|
|
3718
|
+
const t = new Zt(this.events, s);
|
|
3719
3719
|
return e.detached && this.nodes.detached.push(t), t;
|
|
3720
3720
|
}
|
|
3721
3721
|
components() {
|
|
@@ -3788,11 +3788,11 @@ const _i = (s, e, t, n = _e(), i = {}) => s.getAsync("components").then((r) => {
|
|
|
3788
3788
|
);
|
|
3789
3789
|
});
|
|
3790
3790
|
process.env.NODE_ENV;
|
|
3791
|
-
var Ii = Object.defineProperty,
|
|
3791
|
+
var Ii = Object.defineProperty, Xt = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, ji = Object.prototype.propertyIsEnumerable, es = (s, e, t) => e in s ? Ii(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, U = (s, e) => {
|
|
3792
3792
|
for (var t in e || (e = {}))
|
|
3793
3793
|
Ti.call(e, t) && es(s, t, e[t]);
|
|
3794
|
-
if (
|
|
3795
|
-
for (var t of
|
|
3794
|
+
if (Xt)
|
|
3795
|
+
for (var t of Xt(e))
|
|
3796
3796
|
ji.call(e, t) && es(s, t, e[t]);
|
|
3797
3797
|
return s;
|
|
3798
3798
|
}, j = /* @__PURE__ */ ((s) => (s.Cookie = "cookie", s.Local = "local", s.Session = "session", s))(j || {}), wt = /* @__PURE__ */ ((s) => (s.Tenant = "tenant", s.Implementation = "implementation", s.Widget = "widget", s))(wt || {}), x = /* @__PURE__ */ ((s) => (s.Necessary = "necessary", s.Functional = "functional", s.Analytical = "analytical", s.Marketing = "marketing", s))(x || {});
|
|
@@ -3818,7 +3818,7 @@ const Di = (s, e, t, n = {}) => ts(s, t).then((i) => (process.env.NODE_ENV !== "
|
|
|
3818
3818
|
duration: l
|
|
3819
3819
|
} = n, h = zi();
|
|
3820
3820
|
return h[a][e] = Ns(r, t, l), c === j.Cookie ? Hi(s, h) : Fi(s, c, h);
|
|
3821
|
-
})))), Wi = (s, e, t = j.Session) => (Pt(s), typeof e == "undefined" ? (process.env.NODE_ENV !== "production" && E.warn("readStorage: Undefined key passed when reading storage. ", e, t), Promise.resolve(void 0)) : t === j.Cookie ?
|
|
3821
|
+
})))), Wi = (s, e, t = j.Session) => (Pt(s), typeof e == "undefined" ? (process.env.NODE_ENV !== "production" && E.warn("readStorage: Undefined key passed when reading storage. ", e, t), Promise.resolve(void 0)) : t === j.Cookie ? Vi(s).then((n) => rt(n, e)) : qi(s, t).then((n) => rt(n, e))), Y = (s) => !!Object.entries(s).filter(([e, t]) => typeof t != "undefined").length, Ue = (s) => Object.entries(s).filter(([e, t]) => typeof t != "undefined").forEach(([e, { value: t }]) => {
|
|
3822
3822
|
typeof t == "undefined" && delete s[e];
|
|
3823
3823
|
}), As = (s, e) => {
|
|
3824
3824
|
const t = {
|
|
@@ -3840,17 +3840,17 @@ const Di = (s, e, t, n = {}) => ts(s, t).then((i) => (process.env.NODE_ENV !== "
|
|
|
3840
3840
|
} = s.get("$widget");
|
|
3841
3841
|
return [
|
|
3842
3842
|
`humany_${n}`,
|
|
3843
|
-
`humany_${
|
|
3844
|
-
`humany_${
|
|
3843
|
+
`humany_${Kt(n + t)}`,
|
|
3844
|
+
`humany_${Kt(n + t + e)}`
|
|
3845
3845
|
];
|
|
3846
|
-
},
|
|
3846
|
+
}, Qe = (s) => {
|
|
3847
3847
|
const e = new RegExp(`(?:^|;)\\s?${s}=(.*?)(?:;|$)`, "i"), t = document.cookie.match(e);
|
|
3848
3848
|
return t && t[1] && JSON.parse(t[1]) || void 0;
|
|
3849
|
-
},
|
|
3849
|
+
}, Ke = (s, e, t) => {
|
|
3850
3850
|
const n = `${s}=${JSON.stringify(e).trim()}`, i = `expires=${new Date(t).toUTCString()}`, r = "path=/", o = "SameSite=None;Secure";
|
|
3851
3851
|
return document.cookie = `${n}; ${i}; ${r}; ${o}`;
|
|
3852
3852
|
}, $t = (s) => {
|
|
3853
|
-
const [e, t, n] = Te(s), i =
|
|
3853
|
+
const [e, t, n] = Te(s), i = Qe(e) || {}, r = Qe(t) || {}, o = Qe(n) || {};
|
|
3854
3854
|
return {
|
|
3855
3855
|
tenant: i,
|
|
3856
3856
|
implementation: r,
|
|
@@ -3858,11 +3858,11 @@ const Di = (s, e, t, n = {}) => ts(s, t).then((i) => (process.env.NODE_ENV !== "
|
|
|
3858
3858
|
};
|
|
3859
3859
|
}, Ss = (s, e) => {
|
|
3860
3860
|
const t = $t(s), n = As(t, e), [i, r, o] = Te(s), { tenant: a, implementation: c, widget: l } = n, h = Mi(e), d = kt({ days: -1 });
|
|
3861
|
-
|
|
3861
|
+
Ke(i, a, Y(a) ? h : d), Ke(
|
|
3862
3862
|
r,
|
|
3863
3863
|
c,
|
|
3864
3864
|
Y(c) ? h : d
|
|
3865
|
-
),
|
|
3865
|
+
), Ke(o, l, Y(l) ? h : d);
|
|
3866
3866
|
}, $e = (s, e) => {
|
|
3867
3867
|
const [t, n, i] = Te(s), r = e.getItem(t) || "{}", o = e.getItem(n) || "{}", a = e.getItem(i) || "{}";
|
|
3868
3868
|
return {
|
|
@@ -3888,12 +3888,12 @@ const Di = (s, e, t, n = {}) => ts(s, t).then((i) => (process.env.NODE_ENV !== "
|
|
|
3888
3888
|
return Object.entries(t).forEach(([n, i]) => {
|
|
3889
3889
|
Object.entries(i).forEach(([r, o]) => {
|
|
3890
3890
|
const { expiration: a, category: c } = o;
|
|
3891
|
-
(Li(a) ||
|
|
3891
|
+
(Li(a) || Ji(e, c)) && (i[r] = Ns(void 0, c, a));
|
|
3892
3892
|
});
|
|
3893
3893
|
}), t;
|
|
3894
3894
|
}, ts = (s, e) => Wi(s, "storagePolicy", j.Cookie).then(
|
|
3895
3895
|
(t = [x.Necessary]) => !!e && t.indexOf(e) === -1
|
|
3896
|
-
),
|
|
3896
|
+
), Ji = (s = [x.Necessary], e) => !!e && s.indexOf(e) === -1, Pt = (s) => {
|
|
3897
3897
|
const e = $t(s), t = $e(s, window.localStorage), n = $e(s, sessionStorage), i = rt(e, "storagePolicy"), [r, o, a] = [
|
|
3898
3898
|
e,
|
|
3899
3899
|
t,
|
|
@@ -3903,7 +3903,7 @@ const Di = (s, e, t, n = {}) => ts(s, t).then((i) => (process.env.NODE_ENV !== "
|
|
|
3903
3903
|
}, kt = (s = { days: 30 }) => {
|
|
3904
3904
|
const { days: e = 0, hours: t = 0, minutes: n = 0, seconds: i = 0 } = s, r = /* @__PURE__ */ new Date();
|
|
3905
3905
|
return r.setTime(r.getTime() + t * 60 * 60 * 1e3), r.setTime(r.getTime() + e * 24 * 60 * 60 * 1e3), r.setTime(r.getTime() + n * 60 * 1e3), r.setTime(r.getTime() + i * 1e3), r.toISOString();
|
|
3906
|
-
},
|
|
3906
|
+
}, Vi = (s) => Ne(document)(() => $t(s)), Hi = (s, e) => Ne(document)(() => Ss(s, e)), qi = (s, e) => {
|
|
3907
3907
|
const t = e === j.Local ? window.localStorage : window.sessionStorage;
|
|
3908
3908
|
return Ne(t)(() => $e(s, t));
|
|
3909
3909
|
}, Fi = (s, e, t) => {
|
|
@@ -3958,7 +3958,7 @@ const Ui = (s, e, t, n) => {
|
|
|
3958
3958
|
function ss(s, e) {
|
|
3959
3959
|
return typeof s == "undefined" ? e : s;
|
|
3960
3960
|
}
|
|
3961
|
-
let
|
|
3961
|
+
let Qi = class {
|
|
3962
3962
|
constructor(s = {}) {
|
|
3963
3963
|
this.part = s;
|
|
3964
3964
|
}
|
|
@@ -3986,7 +3986,7 @@ let Ki = class {
|
|
|
3986
3986
|
}
|
|
3987
3987
|
};
|
|
3988
3988
|
const _s = (s) => {
|
|
3989
|
-
const e = new
|
|
3989
|
+
const e = new Qi({});
|
|
3990
3990
|
return s(e), e.get();
|
|
3991
3991
|
};
|
|
3992
3992
|
_s((s) => {
|
|
@@ -4165,7 +4165,7 @@ process.env.NODE_ENV !== "production" && (Ts = function(s, e, t) {
|
|
|
4165
4165
|
}
|
|
4166
4166
|
}
|
|
4167
4167
|
});
|
|
4168
|
-
var
|
|
4168
|
+
var Ki = Ts, Yi = Ki;
|
|
4169
4169
|
Gi(Yi);
|
|
4170
4170
|
function Gi(s) {
|
|
4171
4171
|
return s && s.__esModule ? s : { default: s };
|
|
@@ -4178,7 +4178,7 @@ function Ge(s, e) {
|
|
|
4178
4178
|
s[t] = s[n];
|
|
4179
4179
|
s.pop();
|
|
4180
4180
|
}
|
|
4181
|
-
function
|
|
4181
|
+
function Zi(s) {
|
|
4182
4182
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", t = s && s.split("/") || [], n = e && e.split("/") || [], i = s && pe(s), r = e && pe(e), o = i || r;
|
|
4183
4183
|
if (s && pe(s) ? n = t : t.length && (n.pop(), n = n.concat(t)), !n.length)
|
|
4184
4184
|
return "/";
|
|
@@ -4199,10 +4199,10 @@ function Xi(s) {
|
|
|
4199
4199
|
var p = n.join("/");
|
|
4200
4200
|
return a && p.substr(-1) !== "/" && (p += "/"), p;
|
|
4201
4201
|
}
|
|
4202
|
-
const
|
|
4202
|
+
const Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4203
4203
|
__proto__: null,
|
|
4204
|
-
default:
|
|
4205
|
-
}, Symbol.toStringTag, { value: "Module" })), er = /* @__PURE__ */ Is(
|
|
4204
|
+
default: Zi
|
|
4205
|
+
}, Symbol.toStringTag, { value: "Module" })), er = /* @__PURE__ */ Is(Xi);
|
|
4206
4206
|
var ns = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(s) {
|
|
4207
4207
|
return typeof s;
|
|
4208
4208
|
} : function(s) {
|
|
@@ -4250,7 +4250,7 @@ vt((s) => {
|
|
|
4250
4250
|
t.basePath && (n.basePath = t.basePath), e.container.register("routingSettings", n);
|
|
4251
4251
|
});
|
|
4252
4252
|
});
|
|
4253
|
-
const
|
|
4253
|
+
const Ze = (s, e, t, ...n) => {
|
|
4254
4254
|
const i = `[${s.get("$environment").name || "webprovisions"}] ${t}`;
|
|
4255
4255
|
switch (e) {
|
|
4256
4256
|
case "info":
|
|
@@ -4266,9 +4266,9 @@ const Xe = (s, e, t, ...n) => {
|
|
|
4266
4266
|
}, rr = (s) => {
|
|
4267
4267
|
const e = s.container || s;
|
|
4268
4268
|
return {
|
|
4269
|
-
info: (t, ...n) =>
|
|
4270
|
-
warn: (t, ...n) =>
|
|
4271
|
-
error: (t, ...n) =>
|
|
4269
|
+
info: (t, ...n) => Ze(e, "info", t, ...n),
|
|
4270
|
+
warn: (t, ...n) => Ze(e, "warning", t, ...n),
|
|
4271
|
+
error: (t, ...n) => Ze(e, "error", t, ...n)
|
|
4272
4272
|
};
|
|
4273
4273
|
};
|
|
4274
4274
|
var re = /* @__PURE__ */ ((s) => (s.Implementation = "implementation", s.Widget = "widget", s))(re || {}), R = /* @__PURE__ */ ((s) => (s.Pre = "pre", s.Post = "post", s))(R || {});
|
|
@@ -4421,14 +4421,12 @@ Ds((s) => {
|
|
|
4421
4421
|
}
|
|
4422
4422
|
);
|
|
4423
4423
|
});
|
|
4424
|
-
const cr = (s, e, t, n, i) => s.getAsync("componentResolver").then((r) => (r.registerComponent(e, t), _i(s, e, n || (() => {
|
|
4425
|
-
}), e, i)));
|
|
4426
4424
|
/**
|
|
4427
4425
|
* @license
|
|
4428
4426
|
* Copyright 2021 Google LLC
|
|
4429
4427
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
4430
4428
|
*/
|
|
4431
|
-
let
|
|
4429
|
+
let cr = class extends Event {
|
|
4432
4430
|
constructor(s, e, t) {
|
|
4433
4431
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = s, this.callback = e, this.subscribe = t != null && t;
|
|
4434
4432
|
}
|
|
@@ -4462,22 +4460,22 @@ class rs {
|
|
|
4462
4460
|
this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
|
|
4463
4461
|
}
|
|
4464
4462
|
dispatchRequest() {
|
|
4465
|
-
this.host.dispatchEvent(new
|
|
4463
|
+
this.host.dispatchEvent(new cr(this.context, this.t, this.subscribe));
|
|
4466
4464
|
}
|
|
4467
4465
|
}
|
|
4468
|
-
const
|
|
4466
|
+
const hr = "descriptor", lr = "container", Tr = "properties";
|
|
4469
4467
|
class jr {
|
|
4470
4468
|
constructor(e) {
|
|
4471
4469
|
(this.host = e).addController(this), new rs(
|
|
4472
4470
|
e,
|
|
4473
|
-
|
|
4471
|
+
lr,
|
|
4474
4472
|
(t) => {
|
|
4475
4473
|
this._container = t, this.host.requestUpdate();
|
|
4476
4474
|
},
|
|
4477
4475
|
!0
|
|
4478
4476
|
), new rs(
|
|
4479
4477
|
e,
|
|
4480
|
-
|
|
4478
|
+
hr,
|
|
4481
4479
|
(t) => {
|
|
4482
4480
|
this._descriptor = t, this.host.requestUpdate();
|
|
4483
4481
|
},
|
|
@@ -4504,7 +4502,8 @@ class jr {
|
|
|
4504
4502
|
});
|
|
4505
4503
|
}
|
|
4506
4504
|
}
|
|
4507
|
-
const
|
|
4505
|
+
const dr = (s, e, t, n, i) => s.getAsync("componentResolver").then((r) => (r.registerComponent(e, t), _i(s, e, n || (() => {
|
|
4506
|
+
}), e, i))), ur = (s, e) => s.reduce((t, n, i) => {
|
|
4508
4507
|
var o, a;
|
|
4509
4508
|
const r = W(P({}, n), {
|
|
4510
4509
|
content: [W(P({}, n.content), { key: n.key })]
|
|
@@ -4517,10 +4516,10 @@ const ur = (s, e) => s.reduce((t, n, i) => {
|
|
|
4517
4516
|
return t.push(r), t;
|
|
4518
4517
|
}, []), Dr = (s) => b(void 0, null, function* () {
|
|
4519
4518
|
const e = yield s.getAsync("router"), t = yield ft.getInstance(s);
|
|
4520
|
-
return
|
|
4519
|
+
return dr(
|
|
4521
4520
|
s,
|
|
4522
4521
|
"conversation",
|
|
4523
|
-
import("./conversation-
|
|
4522
|
+
import("./conversation-2192822c.js"),
|
|
4524
4523
|
(n) => b(void 0, null, function* () {
|
|
4525
4524
|
const { rehydrate: i = !1 } = n.properties(), o = e.getRouteData().params.id || n.node.name || "component", a = yield t.createController(o, { rehydrate: i }), c = t.registerController(
|
|
4526
4525
|
a,
|
|
@@ -4601,15 +4600,15 @@ const Wr = (s, e, t) => b(void 0, null, function* () {
|
|
|
4601
4600
|
});
|
|
4602
4601
|
export {
|
|
4603
4602
|
ae as C,
|
|
4604
|
-
|
|
4605
|
-
jr as W,
|
|
4603
|
+
jr as _,
|
|
4606
4604
|
ft as a,
|
|
4607
4605
|
be as b,
|
|
4608
4606
|
Dr as c,
|
|
4609
4607
|
ii as d,
|
|
4610
4608
|
ni as e,
|
|
4611
4609
|
pr as f,
|
|
4612
|
-
|
|
4613
|
-
|
|
4610
|
+
lr as g,
|
|
4611
|
+
Tr as j,
|
|
4612
|
+
Wr as r
|
|
4614
4613
|
};
|
|
4615
|
-
//# sourceMappingURL=index-
|
|
4614
|
+
//# sourceMappingURL=index-1ee7f7b5.js.map
|