obi-sdk 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modular/chunks/index-cc31d633.js +6 -0
- package/dist/modular/chunks/index-cc31d633.js.map +1 -0
- package/dist/modular/chunks/{obi-widget-aa83cfb0.js → obi-widget-315605ed.js} +699 -477
- package/dist/modular/chunks/{obi-widget-aa83cfb0.js.map → obi-widget-315605ed.js.map} +1 -1
- package/dist/modular/chunks/{types-f38a47f6.js → types-eb1fb85a.js} +2 -2
- package/dist/modular/chunks/{types-f38a47f6.js.map → types-eb1fb85a.js.map} +1 -1
- package/dist/modular/core.js +1 -1
- package/dist/modular/index.js +2 -2
- package/dist/modular/ui.js +11 -11
- package/dist/obi-sdk.standalone.iife.js +176 -84
- package/dist/obi-sdk.standalone.iife.js.map +1 -1
- package/dist/react.es.js +5056 -4834
- package/dist/react.es.js.map +1 -1
- package/dist/react.umd.js +253 -161
- package/dist/react.umd.js.map +1 -1
- package/dist/ui/components/obi-widget/obi-widget.d.ts +2 -0
- package/package.json +6 -5
- package/dist/modular/chunks/index-01b0e3f3.js +0 -6
- package/dist/modular/chunks/index-01b0e3f3.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SDKState, E as EventEmitter, R as RoomEvent, T as Track, z as z$3, a as Room, A as API_BASE_URL, N as N$2 } from "./types-
|
|
1
|
+
import { S as SDKState, E as EventEmitter, R as RoomEvent, T as Track, z as z$3, a as Room, A as API_BASE_URL, N as N$2 } from "./types-eb1fb85a.js";
|
|
2
2
|
const PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
3
3
|
function randomID() {
|
|
4
4
|
return Math.random().toString(36).slice(2, 11);
|
|
@@ -8909,7 +8909,7 @@ var CanvasRenderer = (
|
|
|
8909
8909
|
};
|
|
8910
8910
|
CanvasRenderer2.prototype.renderStackContent = function(stack) {
|
|
8911
8911
|
return __awaiter(this, void 0, void 0, function() {
|
|
8912
|
-
var _i, _a2, child, _b2, _c, child, _d, _e2, child, _f, _g, child, _h, _j, child, _k, _l, child, _m,
|
|
8912
|
+
var _i, _a2, child, _b2, _c, child, _d, _e2, child, _f, _g, child, _h, _j, child, _k, _l, child, _m, _o2, child;
|
|
8913
8913
|
return __generator(this, function(_p) {
|
|
8914
8914
|
switch (_p.label) {
|
|
8915
8915
|
case 0:
|
|
@@ -9010,12 +9010,12 @@ var CanvasRenderer = (
|
|
|
9010
9010
|
_k++;
|
|
9011
9011
|
return [3, 23];
|
|
9012
9012
|
case 26:
|
|
9013
|
-
_m = 0,
|
|
9013
|
+
_m = 0, _o2 = stack.positiveZIndex;
|
|
9014
9014
|
_p.label = 27;
|
|
9015
9015
|
case 27:
|
|
9016
|
-
if (!(_m <
|
|
9016
|
+
if (!(_m < _o2.length))
|
|
9017
9017
|
return [3, 30];
|
|
9018
|
-
child =
|
|
9018
|
+
child = _o2[_m];
|
|
9019
9019
|
return [4, this.renderStack(child)];
|
|
9020
9020
|
case 28:
|
|
9021
9021
|
_p.sent();
|
|
@@ -9665,7 +9665,7 @@ if (typeof window !== "undefined") {
|
|
|
9665
9665
|
var renderElement = function(element, opts) {
|
|
9666
9666
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
9667
9667
|
var ownerDocument, defaultView, resourceOptions, contextOptions, windowOptions, windowBounds, context, foreignObjectRendering, cloneOptions, documentCloner, clonedElement, container, _a2, width, height, left, top, backgroundColor2, renderOptions, canvas, renderer, root, renderer;
|
|
9668
|
-
var _b2, _c, _d, _e2, _f, _g, _h, _j, _k, _l, _m,
|
|
9668
|
+
var _b2, _c, _d, _e2, _f, _g, _h, _j, _k, _l, _m, _o2, _p, _q, _r, _s, _t2;
|
|
9669
9669
|
return __generator(this, function(_u) {
|
|
9670
9670
|
switch (_u.label) {
|
|
9671
9671
|
case 0:
|
|
@@ -9718,7 +9718,7 @@ var renderElement = function(element, opts) {
|
|
|
9718
9718
|
renderOptions = {
|
|
9719
9719
|
canvas: opts.canvas,
|
|
9720
9720
|
backgroundColor: backgroundColor2,
|
|
9721
|
-
scale: (
|
|
9721
|
+
scale: (_o2 = (_m = opts.scale) !== null && _m !== void 0 ? _m : defaultView.devicePixelRatio) !== null && _o2 !== void 0 ? _o2 : 1,
|
|
9722
9722
|
x: ((_p = opts.x) !== null && _p !== void 0 ? _p : 0) + left,
|
|
9723
9723
|
y: ((_q = opts.y) !== null && _q !== void 0 ? _q : 0) + top,
|
|
9724
9724
|
width: (_r = opts.width) !== null && _r !== void 0 ? _r : Math.ceil(width),
|
|
@@ -10029,8 +10029,8 @@ let y$1 = class y extends HTMLElement {
|
|
|
10029
10029
|
}
|
|
10030
10030
|
};
|
|
10031
10031
|
y$1.elementStyles = [], y$1.shadowRootOptions = { mode: "open" }, y$1[d$1("elementProperties")] = /* @__PURE__ */ new Map(), y$1[d$1("finalized")] = /* @__PURE__ */ new Map(), p$1?.({ ReactiveElement: y$1 }), (a$2.reactiveElementVersions ?? (a$2.reactiveElementVersions = [])).push("2.1.0");
|
|
10032
|
-
const t$1 = globalThis, i$2 = t$1.trustedTypes, s$2 = i$2 ? i$2.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e$2 = "$lit$", h$2 = `lit$${Math.random().toFixed(9).slice(2)}$`, o$4 = "?" + h$2, n$3 = `<${o$4}>`, r$3 = document, l = () => r$3.createComment(""), c$1 = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a$1 = Array.isArray, u = (t2) => a$1(t2) || "function" == typeof t2?.[Symbol.iterator], d = "[ \n\f\r]", f$3 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v$1 = /-->/g, _ = />/g, m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^
|
|
10033
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g
|
|
10032
|
+
const t$1 = globalThis, i$2 = t$1.trustedTypes, s$2 = i$2 ? i$2.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e$2 = "$lit$", h$2 = `lit$${Math.random().toFixed(9).slice(2)}$`, o$4 = "?" + h$2, n$3 = `<${o$4}>`, r$3 = document, l = () => r$3.createComment(""), c$1 = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a$1 = Array.isArray, u = (t2) => a$1(t2) || "function" == typeof t2?.[Symbol.iterator], d = "[ \n\f\r]", f$3 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v$1 = /-->/g, _ = />/g, m$1 = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^
|
|
10033
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g = /"/g, $$1 = /^(?:script|style|textarea|title)$/i, y2 = (t2) => (i3, ...s2) => ({ _$litType$: t2, strings: i3, values: s2 }), x = y2(1), b = y2(2), T$1 = Symbol.for("lit-noChange"), E$1 = Symbol.for("lit-nothing"), A$1 = /* @__PURE__ */ new WeakMap(), C$1 = r$3.createTreeWalker(r$3, 129);
|
|
10034
10034
|
function P$1(t2, i3) {
|
|
10035
10035
|
if (!a$1(t2) || !t2.hasOwnProperty("raw"))
|
|
10036
10036
|
throw Error("invalid template strings array");
|
|
@@ -10043,8 +10043,8 @@ const V$1 = (t2, i3) => {
|
|
|
10043
10043
|
const s3 = t2[i4];
|
|
10044
10044
|
let a2, u2, d2 = -1, y3 = 0;
|
|
10045
10045
|
for (; y3 < s3.length && (c2.lastIndex = y3, u2 = c2.exec(s3), null !== u2); )
|
|
10046
|
-
y3 = c2.lastIndex, c2 === f$3 ? "!--" === u2[1] ? c2 = v$1 : void 0 !== u2[1] ? c2 = _ : void 0 !== u2[2] ? ($$1.test(u2[2]) && (r2 = RegExp("</" + u2[2], "g")), c2 = m) : void 0 !== u2[3] && (c2 = m) : c2 === m ? ">" === u2[0] ? (c2 = r2 ?? f$3, d2 = -1) : void 0 === u2[1] ? d2 = -2 : (d2 = c2.lastIndex - u2[2].length, a2 = u2[1], c2 = void 0 === u2[3] ? m : '"' === u2[3] ? g
|
|
10047
|
-
const x2 = c2 === m && t2[i4 + 1].startsWith("/>") ? " " : "";
|
|
10046
|
+
y3 = c2.lastIndex, c2 === f$3 ? "!--" === u2[1] ? c2 = v$1 : void 0 !== u2[1] ? c2 = _ : void 0 !== u2[2] ? ($$1.test(u2[2]) && (r2 = RegExp("</" + u2[2], "g")), c2 = m$1) : void 0 !== u2[3] && (c2 = m$1) : c2 === m$1 ? ">" === u2[0] ? (c2 = r2 ?? f$3, d2 = -1) : void 0 === u2[1] ? d2 = -2 : (d2 = c2.lastIndex - u2[2].length, a2 = u2[1], c2 = void 0 === u2[3] ? m$1 : '"' === u2[3] ? g : p) : c2 === g || c2 === p ? c2 = m$1 : c2 === v$1 || c2 === _ ? c2 = f$3 : (c2 = m$1, r2 = void 0);
|
|
10047
|
+
const x2 = c2 === m$1 && t2[i4 + 1].startsWith("/>") ? " " : "";
|
|
10048
10048
|
l2 += c2 === f$3 ? s3 + n$3 : d2 >= 0 ? (o2.push(a2), s3.slice(0, d2) + e$2 + s3.slice(d2) + h$2 + x2) : s3 + h$2 + (-2 === d2 ? i4 : x2);
|
|
10049
10049
|
}
|
|
10050
10050
|
return [P$1(t2, l2 + (t2[s2] || "<?>") + (2 === i3 ? "</svg>" : 3 === i3 ? "</math>" : "")), o2];
|
|
@@ -17836,19 +17836,19 @@ if (!customElements.get("obi-searching-loader")) {
|
|
|
17836
17836
|
customElements.define("obi-searching-loader", SearchingLoader);
|
|
17837
17837
|
}
|
|
17838
17838
|
const searchingLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, SearchingLoader }, Symbol.toStringTag, { value: "Module" }));
|
|
17839
|
-
const
|
|
17840
|
-
let
|
|
17839
|
+
const de = globalThis, Ae = de.ShadowRoot && (de.ShadyCSS === void 0 || de.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, qe = Symbol(), Ne = /* @__PURE__ */ new WeakMap();
|
|
17840
|
+
let tt = class {
|
|
17841
17841
|
constructor(e2, i3, o2) {
|
|
17842
|
-
if (this._$cssResult$ = true, o2 !==
|
|
17842
|
+
if (this._$cssResult$ = true, o2 !== qe)
|
|
17843
17843
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
17844
17844
|
this.cssText = e2, this.t = i3;
|
|
17845
17845
|
}
|
|
17846
17846
|
get styleSheet() {
|
|
17847
17847
|
let e2 = this.o;
|
|
17848
17848
|
const i3 = this.t;
|
|
17849
|
-
if (
|
|
17849
|
+
if (Ae && e2 === void 0) {
|
|
17850
17850
|
const o2 = i3 !== void 0 && i3.length === 1;
|
|
17851
|
-
o2 && (e2 =
|
|
17851
|
+
o2 && (e2 = Ne.get(i3)), e2 === void 0 && ((this.o = e2 = new CSSStyleSheet()).replaceSync(this.cssText), o2 && Ne.set(i3, e2));
|
|
17852
17852
|
}
|
|
17853
17853
|
return e2;
|
|
17854
17854
|
}
|
|
@@ -17856,24 +17856,24 @@ let Xe = class {
|
|
|
17856
17856
|
return this.cssText;
|
|
17857
17857
|
}
|
|
17858
17858
|
};
|
|
17859
|
-
const
|
|
17860
|
-
if (
|
|
17859
|
+
const ot = (s2) => new tt(typeof s2 == "string" ? s2 : s2 + "", void 0, qe), it = (s2, e2) => {
|
|
17860
|
+
if (Ae)
|
|
17861
17861
|
s2.adoptedStyleSheets = e2.map((i3) => i3 instanceof CSSStyleSheet ? i3 : i3.styleSheet);
|
|
17862
17862
|
else
|
|
17863
17863
|
for (const i3 of e2) {
|
|
17864
|
-
const o2 = document.createElement("style"), t2 =
|
|
17864
|
+
const o2 = document.createElement("style"), t2 = de.litNonce;
|
|
17865
17865
|
t2 !== void 0 && o2.setAttribute("nonce", t2), o2.textContent = i3.cssText, s2.appendChild(o2);
|
|
17866
17866
|
}
|
|
17867
|
-
},
|
|
17867
|
+
}, ke = Ae ? (s2) => s2 : (s2) => s2 instanceof CSSStyleSheet ? ((e2) => {
|
|
17868
17868
|
let i3 = "";
|
|
17869
17869
|
for (const o2 of e2.cssRules)
|
|
17870
17870
|
i3 += o2.cssText;
|
|
17871
|
-
return
|
|
17871
|
+
return ot(i3);
|
|
17872
17872
|
})(s2) : s2;
|
|
17873
|
-
const { is:
|
|
17873
|
+
const { is: st, defineProperty: rt, getOwnPropertyDescriptor: nt, getOwnPropertyNames: at, getOwnPropertySymbols: lt, getPrototypeOf: ct } = Object, C = globalThis, ze = C.trustedTypes, dt = ze ? ze.emptyScript : "", ht = C.reactiveElementPolyfillSupport, oe = (s2, e2) => s2, he = { toAttribute(s2, e2) {
|
|
17874
17874
|
switch (e2) {
|
|
17875
17875
|
case Boolean:
|
|
17876
|
-
s2 = s2 ?
|
|
17876
|
+
s2 = s2 ? dt : null;
|
|
17877
17877
|
break;
|
|
17878
17878
|
case Object:
|
|
17879
17879
|
case Array:
|
|
@@ -17898,46 +17898,46 @@ const { is: Ke, defineProperty: Qe, getOwnPropertyDescriptor: et, getOwnProperty
|
|
|
17898
17898
|
}
|
|
17899
17899
|
}
|
|
17900
17900
|
return i3;
|
|
17901
|
-
} },
|
|
17901
|
+
} }, Pe = (s2, e2) => !st(s2, e2), Be = { attribute: true, type: String, converter: he, reflect: false, useDefault: false, hasChanged: Pe };
|
|
17902
17902
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
17903
|
-
class
|
|
17903
|
+
class ee extends HTMLElement {
|
|
17904
17904
|
static addInitializer(e2) {
|
|
17905
17905
|
this._$Ei(), (this.l ?? (this.l = [])).push(e2);
|
|
17906
17906
|
}
|
|
17907
17907
|
static get observedAttributes() {
|
|
17908
17908
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
17909
17909
|
}
|
|
17910
|
-
static createProperty(e2, i3 =
|
|
17910
|
+
static createProperty(e2, i3 = Be) {
|
|
17911
17911
|
if (i3.state && (i3.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(e2) && ((i3 = Object.create(i3)).wrapped = true), this.elementProperties.set(e2, i3), !i3.noAccessor) {
|
|
17912
17912
|
const o2 = Symbol(), t2 = this.getPropertyDescriptor(e2, o2, i3);
|
|
17913
|
-
t2 !== void 0 &&
|
|
17913
|
+
t2 !== void 0 && rt(this.prototype, e2, t2);
|
|
17914
17914
|
}
|
|
17915
17915
|
}
|
|
17916
17916
|
static getPropertyDescriptor(e2, i3, o2) {
|
|
17917
|
-
const { get: t2, set: r2 } =
|
|
17917
|
+
const { get: t2, set: r2 } = nt(this.prototype, e2) ?? { get() {
|
|
17918
17918
|
return this[i3];
|
|
17919
17919
|
}, set(n3) {
|
|
17920
17920
|
this[i3] = n3;
|
|
17921
17921
|
} };
|
|
17922
17922
|
return { get: t2, set(n3) {
|
|
17923
|
-
const
|
|
17924
|
-
r2?.call(this, n3), this.requestUpdate(e2,
|
|
17923
|
+
const d2 = t2?.call(this);
|
|
17924
|
+
r2?.call(this, n3), this.requestUpdate(e2, d2, o2);
|
|
17925
17925
|
}, configurable: true, enumerable: true };
|
|
17926
17926
|
}
|
|
17927
17927
|
static getPropertyOptions(e2) {
|
|
17928
|
-
return this.elementProperties.get(e2) ??
|
|
17928
|
+
return this.elementProperties.get(e2) ?? Be;
|
|
17929
17929
|
}
|
|
17930
17930
|
static _$Ei() {
|
|
17931
|
-
if (this.hasOwnProperty(
|
|
17931
|
+
if (this.hasOwnProperty(oe("elementProperties")))
|
|
17932
17932
|
return;
|
|
17933
|
-
const e2 =
|
|
17933
|
+
const e2 = ct(this);
|
|
17934
17934
|
e2.finalize(), e2.l !== void 0 && (this.l = [...e2.l]), this.elementProperties = new Map(e2.elementProperties);
|
|
17935
17935
|
}
|
|
17936
17936
|
static finalize() {
|
|
17937
|
-
if (this.hasOwnProperty(
|
|
17937
|
+
if (this.hasOwnProperty(oe("finalized")))
|
|
17938
17938
|
return;
|
|
17939
|
-
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(
|
|
17940
|
-
const i3 = this.properties, o2 = [...
|
|
17939
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(oe("properties"))) {
|
|
17940
|
+
const i3 = this.properties, o2 = [...at(i3), ...lt(i3)];
|
|
17941
17941
|
for (const t2 of o2)
|
|
17942
17942
|
this.createProperty(t2, i3[t2]);
|
|
17943
17943
|
}
|
|
@@ -17960,9 +17960,9 @@ class J extends HTMLElement {
|
|
|
17960
17960
|
if (Array.isArray(e2)) {
|
|
17961
17961
|
const o2 = new Set(e2.flat(1 / 0).reverse());
|
|
17962
17962
|
for (const t2 of o2)
|
|
17963
|
-
i3.unshift(
|
|
17963
|
+
i3.unshift(ke(t2));
|
|
17964
17964
|
} else
|
|
17965
|
-
e2 !== void 0 && i3.push(
|
|
17965
|
+
e2 !== void 0 && i3.push(ke(e2));
|
|
17966
17966
|
return i3;
|
|
17967
17967
|
}
|
|
17968
17968
|
static _$Eu(e2, i3) {
|
|
@@ -17989,7 +17989,7 @@ class J extends HTMLElement {
|
|
|
17989
17989
|
}
|
|
17990
17990
|
createRenderRoot() {
|
|
17991
17991
|
const e2 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
17992
|
-
return
|
|
17992
|
+
return it(e2, this.constructor.elementStyles), e2;
|
|
17993
17993
|
}
|
|
17994
17994
|
connectedCallback() {
|
|
17995
17995
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach((e2) => e2.hostConnected?.());
|
|
@@ -18005,21 +18005,21 @@ class J extends HTMLElement {
|
|
|
18005
18005
|
_$ET(e2, i3) {
|
|
18006
18006
|
const o2 = this.constructor.elementProperties.get(e2), t2 = this.constructor._$Eu(e2, o2);
|
|
18007
18007
|
if (t2 !== void 0 && o2.reflect === true) {
|
|
18008
|
-
const r2 = (o2.converter?.toAttribute !== void 0 ? o2.converter :
|
|
18008
|
+
const r2 = (o2.converter?.toAttribute !== void 0 ? o2.converter : he).toAttribute(i3, o2.type);
|
|
18009
18009
|
this._$Em = e2, r2 == null ? this.removeAttribute(t2) : this.setAttribute(t2, r2), this._$Em = null;
|
|
18010
18010
|
}
|
|
18011
18011
|
}
|
|
18012
18012
|
_$AK(e2, i3) {
|
|
18013
18013
|
const o2 = this.constructor, t2 = o2._$Eh.get(e2);
|
|
18014
18014
|
if (t2 !== void 0 && this._$Em !== t2) {
|
|
18015
|
-
const r2 = o2.getPropertyOptions(t2), n3 = typeof r2.converter == "function" ? { fromAttribute: r2.converter } : r2.converter?.fromAttribute !== void 0 ? r2.converter :
|
|
18015
|
+
const r2 = o2.getPropertyOptions(t2), n3 = typeof r2.converter == "function" ? { fromAttribute: r2.converter } : r2.converter?.fromAttribute !== void 0 ? r2.converter : he;
|
|
18016
18016
|
this._$Em = t2, this[t2] = n3.fromAttribute(i3, r2.type) ?? this._$Ej?.get(t2) ?? null, this._$Em = null;
|
|
18017
18017
|
}
|
|
18018
18018
|
}
|
|
18019
18019
|
requestUpdate(e2, i3, o2) {
|
|
18020
18020
|
if (e2 !== void 0) {
|
|
18021
18021
|
const t2 = this.constructor, r2 = this[e2];
|
|
18022
|
-
if (o2 ?? (o2 = t2.getPropertyOptions(e2)), !((o2.hasChanged ??
|
|
18022
|
+
if (o2 ?? (o2 = t2.getPropertyOptions(e2)), !((o2.hasChanged ?? Pe)(r2, i3) || o2.useDefault && o2.reflect && r2 === this._$Ej?.get(e2) && !this.hasAttribute(t2._$Eu(e2, o2))))
|
|
18023
18023
|
return;
|
|
18024
18024
|
this.C(e2, i3, o2);
|
|
18025
18025
|
}
|
|
@@ -18053,8 +18053,8 @@ class J extends HTMLElement {
|
|
|
18053
18053
|
const o2 = this.constructor.elementProperties;
|
|
18054
18054
|
if (o2.size > 0)
|
|
18055
18055
|
for (const [t2, r2] of o2) {
|
|
18056
|
-
const { wrapped: n3 } = r2,
|
|
18057
|
-
n3 !== true || this._$AL.has(t2) ||
|
|
18056
|
+
const { wrapped: n3 } = r2, d2 = this[t2];
|
|
18057
|
+
n3 !== true || this._$AL.has(t2) || d2 === void 0 || this.C(t2, void 0, r2, d2);
|
|
18058
18058
|
}
|
|
18059
18059
|
}
|
|
18060
18060
|
let e2 = false;
|
|
@@ -18091,30 +18091,30 @@ class J extends HTMLElement {
|
|
|
18091
18091
|
firstUpdated(e2) {
|
|
18092
18092
|
}
|
|
18093
18093
|
}
|
|
18094
|
-
|
|
18095
|
-
const
|
|
18094
|
+
ee.elementStyles = [], ee.shadowRootOptions = { mode: "open" }, ee[oe("elementProperties")] = /* @__PURE__ */ new Map(), ee[oe("finalized")] = /* @__PURE__ */ new Map(), ht?.({ ReactiveElement: ee }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.1.0");
|
|
18095
|
+
const pt = { attribute: true, type: String, converter: he, reflect: false, hasChanged: Pe }, ut = (s2 = pt, e2, i3) => {
|
|
18096
18096
|
const { kind: o2, metadata: t2 } = i3;
|
|
18097
18097
|
let r2 = globalThis.litPropertyMetadata.get(t2);
|
|
18098
18098
|
if (r2 === void 0 && globalThis.litPropertyMetadata.set(t2, r2 = /* @__PURE__ */ new Map()), o2 === "setter" && ((s2 = Object.create(s2)).wrapped = true), r2.set(i3.name, s2), o2 === "accessor") {
|
|
18099
18099
|
const { name: n3 } = i3;
|
|
18100
|
-
return { set(
|
|
18100
|
+
return { set(d2) {
|
|
18101
18101
|
const l2 = e2.get.call(this);
|
|
18102
|
-
e2.set.call(this,
|
|
18103
|
-
}, init(
|
|
18104
|
-
return
|
|
18102
|
+
e2.set.call(this, d2), this.requestUpdate(n3, l2, s2);
|
|
18103
|
+
}, init(d2) {
|
|
18104
|
+
return d2 !== void 0 && this.C(n3, void 0, s2, d2), d2;
|
|
18105
18105
|
} };
|
|
18106
18106
|
}
|
|
18107
18107
|
if (o2 === "setter") {
|
|
18108
18108
|
const { name: n3 } = i3;
|
|
18109
|
-
return function(
|
|
18109
|
+
return function(d2) {
|
|
18110
18110
|
const l2 = this[n3];
|
|
18111
|
-
e2.call(this,
|
|
18111
|
+
e2.call(this, d2), this.requestUpdate(n3, l2, s2);
|
|
18112
18112
|
};
|
|
18113
18113
|
}
|
|
18114
18114
|
throw Error("Unsupported decorator location: " + o2);
|
|
18115
18115
|
};
|
|
18116
18116
|
function a(s2) {
|
|
18117
|
-
return (e2, i3) => typeof i3 == "object" ?
|
|
18117
|
+
return (e2, i3) => typeof i3 == "object" ? ut(s2, e2, i3) : ((o2, t2, r2) => {
|
|
18118
18118
|
const n3 = t2.hasOwnProperty(r2);
|
|
18119
18119
|
return t2.constructor.createProperty(r2, o2), n3 ? Object.getOwnPropertyDescriptor(t2, r2) : void 0;
|
|
18120
18120
|
})(s2, e2, i3);
|
|
@@ -18122,12 +18122,12 @@ function a(s2) {
|
|
|
18122
18122
|
function v(s2) {
|
|
18123
18123
|
return a({ ...s2, state: true, attribute: false });
|
|
18124
18124
|
}
|
|
18125
|
-
const
|
|
18126
|
-
function
|
|
18125
|
+
const Le = (s2, e2, i3) => (i3.configurable = true, i3.enumerable = true, Reflect.decorate && typeof e2 != "object" && Object.defineProperty(s2, e2, i3), i3);
|
|
18126
|
+
function bt(s2, e2) {
|
|
18127
18127
|
return (i3, o2, t2) => {
|
|
18128
18128
|
const r2 = (n3) => n3.renderRoot?.querySelector(s2) ?? null;
|
|
18129
18129
|
if (e2) {
|
|
18130
|
-
const { get: n3, set:
|
|
18130
|
+
const { get: n3, set: d2 } = typeof o2 == "object" ? i3 : t2 ?? (() => {
|
|
18131
18131
|
const l2 = Symbol();
|
|
18132
18132
|
return { get() {
|
|
18133
18133
|
return this[l2];
|
|
@@ -18135,67 +18135,67 @@ function lt(s2, e2) {
|
|
|
18135
18135
|
this[l2] = u2;
|
|
18136
18136
|
} };
|
|
18137
18137
|
})();
|
|
18138
|
-
return
|
|
18138
|
+
return Le(i3, o2, { get() {
|
|
18139
18139
|
let l2 = n3.call(this);
|
|
18140
|
-
return l2 === void 0 && (l2 = r2(this), (l2 !== null || this.hasUpdated) &&
|
|
18140
|
+
return l2 === void 0 && (l2 = r2(this), (l2 !== null || this.hasUpdated) && d2.call(this, l2)), l2;
|
|
18141
18141
|
} });
|
|
18142
18142
|
}
|
|
18143
|
-
return
|
|
18143
|
+
return Le(i3, o2, { get() {
|
|
18144
18144
|
return r2(this);
|
|
18145
18145
|
} });
|
|
18146
18146
|
};
|
|
18147
18147
|
}
|
|
18148
|
-
const
|
|
18149
|
-
\f\r]`,
|
|
18150
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
18151
|
-
function
|
|
18152
|
-
if (!
|
|
18148
|
+
const ie = globalThis, pe = ie.trustedTypes, Me = pe ? pe.createPolicy("lit-html", { createHTML: (s2) => s2 }) : void 0, We = "$lit$", E = `lit$${Math.random().toFixed(9).slice(2)}$`, Ye = "?" + E, gt = `<${Ye}>`, k2 = document, ue = () => k2.createComment(""), se = (s2) => s2 === null || typeof s2 != "object" && typeof s2 != "function", De = Array.isArray, mt = (s2) => De(s2) || typeof s2?.[Symbol.iterator] == "function", Ce = `[
|
|
18149
|
+
\f\r]`, te = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Re = /-->/g, Ue = />/g, T = RegExp(`>|${Ce}(?:([^\\s"'>=/]+)(${Ce}*=${Ce}*(?:[^
|
|
18150
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), He = /'/g, Ie = /"/g, Ge = /^(?:script|style|textarea|title)$/i, R2 = Symbol.for("lit-noChange"), f2 = Symbol.for("lit-nothing"), Ve = /* @__PURE__ */ new WeakMap(), N2 = k2.createTreeWalker(k2, 129);
|
|
18151
|
+
function Xe(s2, e2) {
|
|
18152
|
+
if (!De(s2) || !s2.hasOwnProperty("raw"))
|
|
18153
18153
|
throw Error("invalid template strings array");
|
|
18154
|
-
return
|
|
18154
|
+
return Me !== void 0 ? Me.createHTML(e2) : e2;
|
|
18155
18155
|
}
|
|
18156
|
-
const
|
|
18156
|
+
const ft = (s2, e2) => {
|
|
18157
18157
|
const i3 = s2.length - 1, o2 = [];
|
|
18158
|
-
let t2, r2 = e2 === 2 ? "<svg>" : e2 === 3 ? "<math>" : "", n3 =
|
|
18159
|
-
for (let
|
|
18160
|
-
const l2 = s2[
|
|
18161
|
-
let u2,
|
|
18162
|
-
for (;
|
|
18163
|
-
|
|
18164
|
-
const x2 = n3 ===
|
|
18165
|
-
r2 += n3 ===
|
|
18166
|
-
}
|
|
18167
|
-
return [
|
|
18168
|
-
};
|
|
18169
|
-
class
|
|
18158
|
+
let t2, r2 = e2 === 2 ? "<svg>" : e2 === 3 ? "<math>" : "", n3 = te;
|
|
18159
|
+
for (let d2 = 0; d2 < i3; d2++) {
|
|
18160
|
+
const l2 = s2[d2];
|
|
18161
|
+
let u2, h2, p2 = -1, b2 = 0;
|
|
18162
|
+
for (; b2 < l2.length && (n3.lastIndex = b2, h2 = n3.exec(l2), h2 !== null); )
|
|
18163
|
+
b2 = n3.lastIndex, n3 === te ? h2[1] === "!--" ? n3 = Re : h2[1] !== void 0 ? n3 = Ue : h2[2] !== void 0 ? (Ge.test(h2[2]) && (t2 = RegExp("</" + h2[2], "g")), n3 = T) : h2[3] !== void 0 && (n3 = T) : n3 === T ? h2[0] === ">" ? (n3 = t2 ?? te, p2 = -1) : h2[1] === void 0 ? p2 = -2 : (p2 = n3.lastIndex - h2[2].length, u2 = h2[1], n3 = h2[3] === void 0 ? T : h2[3] === '"' ? Ie : He) : n3 === Ie || n3 === He ? n3 = T : n3 === Re || n3 === Ue ? n3 = te : (n3 = T, t2 = void 0);
|
|
18164
|
+
const x2 = n3 === T && s2[d2 + 1].startsWith("/>") ? " " : "";
|
|
18165
|
+
r2 += n3 === te ? l2 + gt : p2 >= 0 ? (o2.push(u2), l2.slice(0, p2) + We + l2.slice(p2) + E + x2) : l2 + E + (p2 === -2 ? d2 : x2);
|
|
18166
|
+
}
|
|
18167
|
+
return [Xe(s2, r2 + (s2[i3] || "<?>") + (e2 === 2 ? "</svg>" : e2 === 3 ? "</math>" : "")), o2];
|
|
18168
|
+
};
|
|
18169
|
+
class re {
|
|
18170
18170
|
constructor({ strings: e2, _$litType$: i3 }, o2) {
|
|
18171
18171
|
let t2;
|
|
18172
18172
|
this.parts = [];
|
|
18173
18173
|
let r2 = 0, n3 = 0;
|
|
18174
|
-
const
|
|
18175
|
-
if (this.el =
|
|
18174
|
+
const d2 = e2.length - 1, l2 = this.parts, [u2, h2] = ft(e2, i3);
|
|
18175
|
+
if (this.el = re.createElement(u2, o2), N2.currentNode = this.el.content, i3 === 2 || i3 === 3) {
|
|
18176
18176
|
const p2 = this.el.content.firstChild;
|
|
18177
18177
|
p2.replaceWith(...p2.childNodes);
|
|
18178
18178
|
}
|
|
18179
|
-
for (; (t2 =
|
|
18179
|
+
for (; (t2 = N2.nextNode()) !== null && l2.length < d2; ) {
|
|
18180
18180
|
if (t2.nodeType === 1) {
|
|
18181
18181
|
if (t2.hasAttributes())
|
|
18182
18182
|
for (const p2 of t2.getAttributeNames())
|
|
18183
|
-
if (p2.endsWith(
|
|
18184
|
-
const
|
|
18185
|
-
l2.push({ type: 1, index: r2, name: _2[2], strings: x2, ctor: _2[1] === "." ?
|
|
18183
|
+
if (p2.endsWith(We)) {
|
|
18184
|
+
const b2 = h2[n3++], x2 = t2.getAttribute(p2).split(E), _2 = /([.?@])?(.*)/.exec(b2);
|
|
18185
|
+
l2.push({ type: 1, index: r2, name: _2[2], strings: x2, ctor: _2[1] === "." ? yt : _2[1] === "?" ? xt : _2[1] === "@" ? wt : ge }), t2.removeAttribute(p2);
|
|
18186
18186
|
} else
|
|
18187
18187
|
p2.startsWith(E) && (l2.push({ type: 6, index: r2 }), t2.removeAttribute(p2));
|
|
18188
|
-
if (
|
|
18189
|
-
const p2 = t2.textContent.split(E),
|
|
18190
|
-
if (
|
|
18191
|
-
t2.textContent =
|
|
18192
|
-
for (let x2 = 0; x2 <
|
|
18193
|
-
t2.append(p2[x2],
|
|
18194
|
-
t2.append(p2[
|
|
18188
|
+
if (Ge.test(t2.tagName)) {
|
|
18189
|
+
const p2 = t2.textContent.split(E), b2 = p2.length - 1;
|
|
18190
|
+
if (b2 > 0) {
|
|
18191
|
+
t2.textContent = pe ? pe.emptyScript : "";
|
|
18192
|
+
for (let x2 = 0; x2 < b2; x2++)
|
|
18193
|
+
t2.append(p2[x2], ue()), N2.nextNode(), l2.push({ type: 2, index: ++r2 });
|
|
18194
|
+
t2.append(p2[b2], ue());
|
|
18195
18195
|
}
|
|
18196
18196
|
}
|
|
18197
18197
|
} else if (t2.nodeType === 8)
|
|
18198
|
-
if (t2.data ===
|
|
18198
|
+
if (t2.data === Ye)
|
|
18199
18199
|
l2.push({ type: 2, index: r2 });
|
|
18200
18200
|
else {
|
|
18201
18201
|
let p2 = -1;
|
|
@@ -18210,14 +18210,14 @@ class oe {
|
|
|
18210
18210
|
return o2.innerHTML = e2, o2;
|
|
18211
18211
|
}
|
|
18212
18212
|
}
|
|
18213
|
-
function
|
|
18214
|
-
if (e2 ===
|
|
18213
|
+
function U(s2, e2, i3 = s2, o2) {
|
|
18214
|
+
if (e2 === R2)
|
|
18215
18215
|
return e2;
|
|
18216
18216
|
let t2 = o2 !== void 0 ? i3._$Co?.[o2] : i3._$Cl;
|
|
18217
|
-
const r2 =
|
|
18218
|
-
return t2?.constructor !== r2 && (t2?._$AO?.(false), r2 === void 0 ? t2 = void 0 : (t2 = new r2(s2), t2._$AT(s2, i3, o2)), o2 !== void 0 ? (i3._$Co ?? (i3._$Co = []))[o2] = t2 : i3._$Cl = t2), t2 !== void 0 && (e2 =
|
|
18217
|
+
const r2 = se(e2) ? void 0 : e2._$litDirective$;
|
|
18218
|
+
return t2?.constructor !== r2 && (t2?._$AO?.(false), r2 === void 0 ? t2 = void 0 : (t2 = new r2(s2), t2._$AT(s2, i3, o2)), o2 !== void 0 ? (i3._$Co ?? (i3._$Co = []))[o2] = t2 : i3._$Cl = t2), t2 !== void 0 && (e2 = U(s2, t2._$AS(s2, e2.values), t2, o2)), e2;
|
|
18219
18219
|
}
|
|
18220
|
-
class
|
|
18220
|
+
class vt {
|
|
18221
18221
|
constructor(e2, i3) {
|
|
18222
18222
|
this._$AV = [], this._$AN = void 0, this._$AD = e2, this._$AM = i3;
|
|
18223
18223
|
}
|
|
@@ -18229,16 +18229,16 @@ class pt {
|
|
|
18229
18229
|
}
|
|
18230
18230
|
u(e2) {
|
|
18231
18231
|
const { el: { content: i3 }, parts: o2 } = this._$AD, t2 = (e2?.creationScope ?? k2).importNode(i3, true);
|
|
18232
|
-
|
|
18233
|
-
let r2 =
|
|
18232
|
+
N2.currentNode = t2;
|
|
18233
|
+
let r2 = N2.nextNode(), n3 = 0, d2 = 0, l2 = o2[0];
|
|
18234
18234
|
for (; l2 !== void 0; ) {
|
|
18235
18235
|
if (n3 === l2.index) {
|
|
18236
18236
|
let u2;
|
|
18237
|
-
l2.type === 2 ? u2 = new
|
|
18237
|
+
l2.type === 2 ? u2 = new be(r2, r2.nextSibling, this, e2) : l2.type === 1 ? u2 = new l2.ctor(r2, l2.name, l2.strings, this, e2) : l2.type === 6 && (u2 = new $t(r2, this, e2)), this._$AV.push(u2), l2 = o2[++d2];
|
|
18238
18238
|
}
|
|
18239
|
-
n3 !== l2?.index && (r2 =
|
|
18239
|
+
n3 !== l2?.index && (r2 = N2.nextNode(), n3++);
|
|
18240
18240
|
}
|
|
18241
|
-
return
|
|
18241
|
+
return N2.currentNode = k2, t2;
|
|
18242
18242
|
}
|
|
18243
18243
|
p(e2) {
|
|
18244
18244
|
let i3 = 0;
|
|
@@ -18246,7 +18246,7 @@ class pt {
|
|
|
18246
18246
|
o2 !== void 0 && (o2.strings !== void 0 ? (o2._$AI(e2, o2, i3), i3 += o2.strings.length - 2) : o2._$AI(e2[i3])), i3++;
|
|
18247
18247
|
}
|
|
18248
18248
|
}
|
|
18249
|
-
class
|
|
18249
|
+
class be {
|
|
18250
18250
|
get _$AU() {
|
|
18251
18251
|
return this._$AM?._$AU ?? this._$Cv;
|
|
18252
18252
|
}
|
|
@@ -18265,7 +18265,7 @@ class de {
|
|
|
18265
18265
|
return this._$AB;
|
|
18266
18266
|
}
|
|
18267
18267
|
_$AI(e2, i3 = this) {
|
|
18268
|
-
e2 =
|
|
18268
|
+
e2 = U(this, e2, i3), se(e2) ? e2 === f2 || e2 == null || e2 === "" ? (this._$AH !== f2 && this._$AR(), this._$AH = f2) : e2 !== this._$AH && e2 !== R2 && this._(e2) : e2._$litType$ !== void 0 ? this.$(e2) : e2.nodeType !== void 0 ? this.T(e2) : mt(e2) ? this.k(e2) : this._(e2);
|
|
18269
18269
|
}
|
|
18270
18270
|
O(e2) {
|
|
18271
18271
|
return this._$AA.parentNode.insertBefore(e2, this._$AB);
|
|
@@ -18274,27 +18274,27 @@ class de {
|
|
|
18274
18274
|
this._$AH !== e2 && (this._$AR(), this._$AH = this.O(e2));
|
|
18275
18275
|
}
|
|
18276
18276
|
_(e2) {
|
|
18277
|
-
this._$AH !== f2 &&
|
|
18277
|
+
this._$AH !== f2 && se(this._$AH) ? this._$AA.nextSibling.data = e2 : this.T(k2.createTextNode(e2)), this._$AH = e2;
|
|
18278
18278
|
}
|
|
18279
18279
|
$(e2) {
|
|
18280
|
-
const { values: i3, _$litType$: o2 } = e2, t2 = typeof o2 == "number" ? this._$AC(e2) : (o2.el === void 0 && (o2.el =
|
|
18280
|
+
const { values: i3, _$litType$: o2 } = e2, t2 = typeof o2 == "number" ? this._$AC(e2) : (o2.el === void 0 && (o2.el = re.createElement(Xe(o2.h, o2.h[0]), this.options)), o2);
|
|
18281
18281
|
if (this._$AH?._$AD === t2)
|
|
18282
18282
|
this._$AH.p(i3);
|
|
18283
18283
|
else {
|
|
18284
|
-
const r2 = new
|
|
18284
|
+
const r2 = new vt(t2, this), n3 = r2.u(this.options);
|
|
18285
18285
|
r2.p(i3), this.T(n3), this._$AH = r2;
|
|
18286
18286
|
}
|
|
18287
18287
|
}
|
|
18288
18288
|
_$AC(e2) {
|
|
18289
|
-
let i3 =
|
|
18290
|
-
return i3 === void 0 &&
|
|
18289
|
+
let i3 = Ve.get(e2.strings);
|
|
18290
|
+
return i3 === void 0 && Ve.set(e2.strings, i3 = new re(e2)), i3;
|
|
18291
18291
|
}
|
|
18292
18292
|
k(e2) {
|
|
18293
|
-
|
|
18293
|
+
De(this._$AH) || (this._$AH = [], this._$AR());
|
|
18294
18294
|
const i3 = this._$AH;
|
|
18295
18295
|
let o2, t2 = 0;
|
|
18296
18296
|
for (const r2 of e2)
|
|
18297
|
-
t2 === i3.length ? i3.push(o2 = new
|
|
18297
|
+
t2 === i3.length ? i3.push(o2 = new be(this.O(ue()), this.O(ue()), this, this.options)) : o2 = i3[t2], o2._$AI(r2), t2++;
|
|
18298
18298
|
t2 < i3.length && (this._$AR(o2 && o2._$AB.nextSibling, t2), i3.length = t2);
|
|
18299
18299
|
}
|
|
18300
18300
|
_$AR(e2 = this._$AA.nextSibling, i3) {
|
|
@@ -18307,7 +18307,7 @@ class de {
|
|
|
18307
18307
|
this._$AM === void 0 && (this._$Cv = e2, this._$AP?.(e2));
|
|
18308
18308
|
}
|
|
18309
18309
|
}
|
|
18310
|
-
class
|
|
18310
|
+
class ge {
|
|
18311
18311
|
get tagName() {
|
|
18312
18312
|
return this.element.tagName;
|
|
18313
18313
|
}
|
|
@@ -18321,12 +18321,12 @@ class he {
|
|
|
18321
18321
|
const r2 = this.strings;
|
|
18322
18322
|
let n3 = false;
|
|
18323
18323
|
if (r2 === void 0)
|
|
18324
|
-
e2 =
|
|
18324
|
+
e2 = U(this, e2, i3, 0), n3 = !se(e2) || e2 !== this._$AH && e2 !== R2, n3 && (this._$AH = e2);
|
|
18325
18325
|
else {
|
|
18326
|
-
const
|
|
18326
|
+
const d2 = e2;
|
|
18327
18327
|
let l2, u2;
|
|
18328
18328
|
for (e2 = r2[0], l2 = 0; l2 < r2.length - 1; l2++)
|
|
18329
|
-
u2 =
|
|
18329
|
+
u2 = U(this, d2[o2 + l2], i3, l2), u2 === R2 && (u2 = this._$AH[l2]), n3 || (n3 = !se(u2) || u2 !== this._$AH[l2]), u2 === f2 ? e2 = f2 : e2 !== f2 && (e2 += (u2 ?? "") + r2[l2 + 1]), this._$AH[l2] = u2;
|
|
18330
18330
|
}
|
|
18331
18331
|
n3 && !t2 && this.j(e2);
|
|
18332
18332
|
}
|
|
@@ -18334,7 +18334,7 @@ class he {
|
|
|
18334
18334
|
e2 === f2 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e2 ?? "");
|
|
18335
18335
|
}
|
|
18336
18336
|
}
|
|
18337
|
-
class
|
|
18337
|
+
class yt extends ge {
|
|
18338
18338
|
constructor() {
|
|
18339
18339
|
super(...arguments), this.type = 3;
|
|
18340
18340
|
}
|
|
@@ -18342,7 +18342,7 @@ class ut extends he {
|
|
|
18342
18342
|
this.element[this.name] = e2 === f2 ? void 0 : e2;
|
|
18343
18343
|
}
|
|
18344
18344
|
}
|
|
18345
|
-
class
|
|
18345
|
+
class xt extends ge {
|
|
18346
18346
|
constructor() {
|
|
18347
18347
|
super(...arguments), this.type = 4;
|
|
18348
18348
|
}
|
|
@@ -18350,12 +18350,12 @@ class bt extends he {
|
|
|
18350
18350
|
this.element.toggleAttribute(this.name, !!e2 && e2 !== f2);
|
|
18351
18351
|
}
|
|
18352
18352
|
}
|
|
18353
|
-
class
|
|
18353
|
+
class wt extends ge {
|
|
18354
18354
|
constructor(e2, i3, o2, t2, r2) {
|
|
18355
18355
|
super(e2, i3, o2, t2, r2), this.type = 5;
|
|
18356
18356
|
}
|
|
18357
18357
|
_$AI(e2, i3 = this) {
|
|
18358
|
-
if ((e2 =
|
|
18358
|
+
if ((e2 = U(this, e2, i3, 0) ?? f2) === R2)
|
|
18359
18359
|
return;
|
|
18360
18360
|
const o2 = this._$AH, t2 = e2 === f2 && o2 !== f2 || e2.capture !== o2.capture || e2.once !== o2.once || e2.passive !== o2.passive, r2 = e2 !== f2 && (o2 === f2 || t2);
|
|
18361
18361
|
t2 && this.element.removeEventListener(this.name, this, o2), r2 && this.element.addEventListener(this.name, this, e2), this._$AH = e2;
|
|
@@ -18364,7 +18364,7 @@ class gt extends he {
|
|
|
18364
18364
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e2) : this._$AH.handleEvent(e2);
|
|
18365
18365
|
}
|
|
18366
18366
|
}
|
|
18367
|
-
class
|
|
18367
|
+
class $t {
|
|
18368
18368
|
constructor(e2, i3, o2) {
|
|
18369
18369
|
this.element = e2, this.type = 6, this._$AN = void 0, this._$AM = i3, this.options = o2;
|
|
18370
18370
|
}
|
|
@@ -18372,13 +18372,13 @@ class mt {
|
|
|
18372
18372
|
return this._$AM._$AU;
|
|
18373
18373
|
}
|
|
18374
18374
|
_$AI(e2) {
|
|
18375
|
-
|
|
18375
|
+
U(this, e2);
|
|
18376
18376
|
}
|
|
18377
18377
|
}
|
|
18378
|
-
const
|
|
18379
|
-
|
|
18380
|
-
const
|
|
18381
|
-
class
|
|
18378
|
+
const _t = ie.litHtmlPolyfillSupport;
|
|
18379
|
+
_t?.(re, be), (ie.litHtmlVersions ?? (ie.litHtmlVersions = [])).push("3.3.0");
|
|
18380
|
+
const Et = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ct = (s2) => (...e2) => ({ _$litDirective$: s2, values: e2 });
|
|
18381
|
+
class Ot {
|
|
18382
18382
|
constructor(e2) {
|
|
18383
18383
|
}
|
|
18384
18384
|
get _$AU() {
|
|
@@ -18394,9 +18394,9 @@ class yt {
|
|
|
18394
18394
|
return this.render(...i3);
|
|
18395
18395
|
}
|
|
18396
18396
|
}
|
|
18397
|
-
const
|
|
18397
|
+
const Oe = Ct(class extends Ot {
|
|
18398
18398
|
constructor(s2) {
|
|
18399
|
-
if (super(s2), s2.type !==
|
|
18399
|
+
if (super(s2), s2.type !== Et.ATTRIBUTE || s2.name !== "class" || s2.strings?.length > 2)
|
|
18400
18400
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
18401
18401
|
}
|
|
18402
18402
|
render(s2) {
|
|
@@ -18416,9 +18416,9 @@ const $e = xt(class extends yt {
|
|
|
18416
18416
|
const t2 = !!e2[o2];
|
|
18417
18417
|
t2 === this.st.has(o2) || this.nt?.has(o2) || (t2 ? (i3.add(o2), this.st.add(o2)) : (i3.remove(o2), this.st.delete(o2)));
|
|
18418
18418
|
}
|
|
18419
|
-
return
|
|
18419
|
+
return R2;
|
|
18420
18420
|
}
|
|
18421
|
-
}),
|
|
18421
|
+
}), me = i$4`
|
|
18422
18422
|
:host {
|
|
18423
18423
|
/* Colors */
|
|
18424
18424
|
--obi-color-primary: #a10fff;
|
|
@@ -18490,7 +18490,7 @@ const $e = xt(class extends yt {
|
|
|
18490
18490
|
--obi-spinner-size: 16px;
|
|
18491
18491
|
--obi-spinner-border-width: 2px;
|
|
18492
18492
|
}
|
|
18493
|
-
`,
|
|
18493
|
+
`, m = i$4`
|
|
18494
18494
|
:host {
|
|
18495
18495
|
box-sizing: border-box;
|
|
18496
18496
|
font-family: var(--obi-font-family-secondary);
|
|
@@ -18500,12 +18500,12 @@ const $e = xt(class extends yt {
|
|
|
18500
18500
|
box-sizing: inherit;
|
|
18501
18501
|
}
|
|
18502
18502
|
`;
|
|
18503
|
-
var
|
|
18504
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
18503
|
+
var At = Object.defineProperty, Pt = Object.getOwnPropertyDescriptor, O = (s2, e2, i3, o2) => {
|
|
18504
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Pt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
18505
18505
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
18506
|
-
return o2 && t2 &&
|
|
18506
|
+
return o2 && t2 && At(e2, i3, t2), t2;
|
|
18507
18507
|
};
|
|
18508
|
-
class
|
|
18508
|
+
class w extends i$1 {
|
|
18509
18509
|
constructor() {
|
|
18510
18510
|
super(...arguments), this.open = false, this.size = "medium", this.showClose = true, this.closeOnBackdropClick = true, this.closeOnEscape = true, this.closeDisabled = false, this.contentCentered = false, this.handleDialogClick = (e2) => {
|
|
18511
18511
|
if (!this.closeOnBackdropClick || this.closeDisabled)
|
|
@@ -18559,7 +18559,7 @@ class $ extends i$1 {
|
|
|
18559
18559
|
"modal-inner--centered": this.contentCentered
|
|
18560
18560
|
};
|
|
18561
18561
|
return x`
|
|
18562
|
-
<dialog class=${
|
|
18562
|
+
<dialog class=${Oe(e2)}>
|
|
18563
18563
|
${this.showClose ? x`
|
|
18564
18564
|
<button
|
|
18565
18565
|
class="close-button"
|
|
@@ -18572,7 +18572,7 @@ class $ extends i$1 {
|
|
|
18572
18572
|
</button>
|
|
18573
18573
|
` : ""}
|
|
18574
18574
|
|
|
18575
|
-
<div class=${
|
|
18575
|
+
<div class=${Oe(i3)}>
|
|
18576
18576
|
<div class="header">
|
|
18577
18577
|
<slot name="header"></slot>
|
|
18578
18578
|
</div>
|
|
@@ -18589,9 +18589,9 @@ class $ extends i$1 {
|
|
|
18589
18589
|
`;
|
|
18590
18590
|
}
|
|
18591
18591
|
}
|
|
18592
|
-
|
|
18593
|
-
|
|
18594
|
-
|
|
18592
|
+
w.styles = [
|
|
18593
|
+
m,
|
|
18594
|
+
me,
|
|
18595
18595
|
i$4`
|
|
18596
18596
|
:host {
|
|
18597
18597
|
display: contents;
|
|
@@ -18725,37 +18725,37 @@ $.styles = [
|
|
|
18725
18725
|
}
|
|
18726
18726
|
`
|
|
18727
18727
|
];
|
|
18728
|
-
|
|
18728
|
+
O([
|
|
18729
18729
|
a({ type: Boolean, reflect: true })
|
|
18730
|
-
],
|
|
18731
|
-
|
|
18730
|
+
], w.prototype, "open", 2);
|
|
18731
|
+
O([
|
|
18732
18732
|
a({ reflect: true })
|
|
18733
|
-
],
|
|
18734
|
-
|
|
18733
|
+
], w.prototype, "size", 2);
|
|
18734
|
+
O([
|
|
18735
18735
|
a({ type: Boolean, attribute: "show-close" })
|
|
18736
|
-
],
|
|
18737
|
-
|
|
18736
|
+
], w.prototype, "showClose", 2);
|
|
18737
|
+
O([
|
|
18738
18738
|
a({ type: Boolean, attribute: "close-on-backdrop-click" })
|
|
18739
|
-
],
|
|
18740
|
-
|
|
18739
|
+
], w.prototype, "closeOnBackdropClick", 2);
|
|
18740
|
+
O([
|
|
18741
18741
|
a({ type: Boolean, attribute: "close-on-escape" })
|
|
18742
|
-
],
|
|
18743
|
-
|
|
18742
|
+
], w.prototype, "closeOnEscape", 2);
|
|
18743
|
+
O([
|
|
18744
18744
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
18745
|
-
],
|
|
18746
|
-
|
|
18745
|
+
], w.prototype, "closeDisabled", 2);
|
|
18746
|
+
O([
|
|
18747
18747
|
a({ type: Boolean, attribute: "content-centered" })
|
|
18748
|
-
],
|
|
18749
|
-
|
|
18750
|
-
|
|
18751
|
-
],
|
|
18752
|
-
customElements.get("obi-modal") || customElements.define("obi-modal",
|
|
18753
|
-
var
|
|
18754
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
18748
|
+
], w.prototype, "contentCentered", 2);
|
|
18749
|
+
O([
|
|
18750
|
+
bt("dialog")
|
|
18751
|
+
], w.prototype, "dialog", 2);
|
|
18752
|
+
customElements.get("obi-modal") || customElements.define("obi-modal", w);
|
|
18753
|
+
var Dt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, Ft = (s2, e2, i3, o2) => {
|
|
18754
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? St(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
18755
18755
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
18756
|
-
return o2 && t2 &&
|
|
18756
|
+
return o2 && t2 && Dt(e2, i3, t2), t2;
|
|
18757
18757
|
};
|
|
18758
|
-
class
|
|
18758
|
+
class Se extends i$1 {
|
|
18759
18759
|
constructor() {
|
|
18760
18760
|
super(...arguments), this.size = "medium";
|
|
18761
18761
|
}
|
|
@@ -18763,9 +18763,9 @@ class Ce extends i$1 {
|
|
|
18763
18763
|
return x`<div class="spinner" role="status" aria-label="Loading"></div>`;
|
|
18764
18764
|
}
|
|
18765
18765
|
}
|
|
18766
|
-
|
|
18767
|
-
|
|
18768
|
-
|
|
18766
|
+
Se.styles = [
|
|
18767
|
+
m,
|
|
18768
|
+
me,
|
|
18769
18769
|
i$4`
|
|
18770
18770
|
:host {
|
|
18771
18771
|
display: inline-block;
|
|
@@ -18801,16 +18801,16 @@ Ce.styles = [
|
|
|
18801
18801
|
}
|
|
18802
18802
|
`
|
|
18803
18803
|
];
|
|
18804
|
-
|
|
18804
|
+
Ft([
|
|
18805
18805
|
a({ reflect: true })
|
|
18806
|
-
],
|
|
18807
|
-
customElements.get("obi-spinner") || customElements.define("obi-spinner",
|
|
18808
|
-
var
|
|
18809
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
18806
|
+
], Se.prototype, "size", 2);
|
|
18807
|
+
customElements.get("obi-spinner") || customElements.define("obi-spinner", Se);
|
|
18808
|
+
var jt = Object.defineProperty, Tt = Object.getOwnPropertyDescriptor, z2 = (s2, e2, i3, o2) => {
|
|
18809
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Tt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
18810
18810
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
18811
|
-
return o2 && t2 &&
|
|
18811
|
+
return o2 && t2 && jt(e2, i3, t2), t2;
|
|
18812
18812
|
};
|
|
18813
|
-
class
|
|
18813
|
+
class $ extends i$1 {
|
|
18814
18814
|
constructor() {
|
|
18815
18815
|
super(...arguments), this.variant = "primary", this.size = "medium", this.disabled = false, this.loading = false, this.type = "button", this.fullWidth = false, this.loadingText = "";
|
|
18816
18816
|
}
|
|
@@ -18834,7 +18834,7 @@ class w extends i$1 {
|
|
|
18834
18834
|
};
|
|
18835
18835
|
return x`
|
|
18836
18836
|
<button
|
|
18837
|
-
class=${
|
|
18837
|
+
class=${Oe(e2)}
|
|
18838
18838
|
type=${this.type}
|
|
18839
18839
|
?disabled=${this.disabled || this.loading}
|
|
18840
18840
|
@click=${this.handleClick}
|
|
@@ -18861,9 +18861,9 @@ class w extends i$1 {
|
|
|
18861
18861
|
`;
|
|
18862
18862
|
}
|
|
18863
18863
|
}
|
|
18864
|
-
|
|
18865
|
-
|
|
18866
|
-
|
|
18864
|
+
$.styles = [
|
|
18865
|
+
m,
|
|
18866
|
+
me,
|
|
18867
18867
|
i$4`
|
|
18868
18868
|
:host {
|
|
18869
18869
|
display: inline-block;
|
|
@@ -18985,34 +18985,34 @@ w.styles = [
|
|
|
18985
18985
|
}
|
|
18986
18986
|
`
|
|
18987
18987
|
];
|
|
18988
|
-
|
|
18988
|
+
z2([
|
|
18989
18989
|
a({ reflect: true })
|
|
18990
|
-
],
|
|
18991
|
-
|
|
18990
|
+
], $.prototype, "variant", 2);
|
|
18991
|
+
z2([
|
|
18992
18992
|
a({ reflect: true })
|
|
18993
|
-
],
|
|
18994
|
-
|
|
18993
|
+
], $.prototype, "size", 2);
|
|
18994
|
+
z2([
|
|
18995
18995
|
a({ type: Boolean, reflect: true })
|
|
18996
|
-
],
|
|
18997
|
-
|
|
18996
|
+
], $.prototype, "disabled", 2);
|
|
18997
|
+
z2([
|
|
18998
18998
|
a({ type: Boolean, reflect: true })
|
|
18999
|
-
],
|
|
19000
|
-
|
|
18999
|
+
], $.prototype, "loading", 2);
|
|
19000
|
+
z2([
|
|
19001
19001
|
a()
|
|
19002
|
-
],
|
|
19003
|
-
|
|
19002
|
+
], $.prototype, "type", 2);
|
|
19003
|
+
z2([
|
|
19004
19004
|
a({ type: Boolean, reflect: true, attribute: "full-width" })
|
|
19005
|
-
],
|
|
19006
|
-
|
|
19005
|
+
], $.prototype, "fullWidth", 2);
|
|
19006
|
+
z2([
|
|
19007
19007
|
a({ attribute: "loading-text" })
|
|
19008
|
-
],
|
|
19009
|
-
customElements.get("obi-button") || customElements.define("obi-button",
|
|
19010
|
-
var
|
|
19011
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
19008
|
+
], $.prototype, "loadingText", 2);
|
|
19009
|
+
customElements.get("obi-button") || customElements.define("obi-button", $);
|
|
19010
|
+
var Nt = Object.defineProperty, kt = Object.getOwnPropertyDescriptor, fe = (s2, e2, i3, o2) => {
|
|
19011
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? kt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
19012
19012
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19013
|
-
return o2 && t2 &&
|
|
19013
|
+
return o2 && t2 && Nt(e2, i3, t2), t2;
|
|
19014
19014
|
};
|
|
19015
|
-
class
|
|
19015
|
+
class H4 extends i$1 {
|
|
19016
19016
|
constructor() {
|
|
19017
19017
|
super(...arguments), this.showRetry = false, this.showDismiss = false, this.retryText = "Retry", this.dismissText = "Dismiss";
|
|
19018
19018
|
}
|
|
@@ -19062,9 +19062,9 @@ class U extends i$1 {
|
|
|
19062
19062
|
`;
|
|
19063
19063
|
}
|
|
19064
19064
|
}
|
|
19065
|
-
|
|
19066
|
-
|
|
19067
|
-
|
|
19065
|
+
H4.styles = [
|
|
19066
|
+
m,
|
|
19067
|
+
me,
|
|
19068
19068
|
i$4`
|
|
19069
19069
|
:host {
|
|
19070
19070
|
display: block;
|
|
@@ -19124,46 +19124,46 @@ U.styles = [
|
|
|
19124
19124
|
}
|
|
19125
19125
|
`
|
|
19126
19126
|
];
|
|
19127
|
-
|
|
19127
|
+
fe([
|
|
19128
19128
|
a({ type: Boolean, attribute: "show-retry" })
|
|
19129
|
-
],
|
|
19130
|
-
|
|
19129
|
+
], H4.prototype, "showRetry", 2);
|
|
19130
|
+
fe([
|
|
19131
19131
|
a({ type: Boolean, attribute: "show-dismiss" })
|
|
19132
|
-
],
|
|
19133
|
-
|
|
19132
|
+
], H4.prototype, "showDismiss", 2);
|
|
19133
|
+
fe([
|
|
19134
19134
|
a({ attribute: "retry-text" })
|
|
19135
|
-
],
|
|
19136
|
-
|
|
19135
|
+
], H4.prototype, "retryText", 2);
|
|
19136
|
+
fe([
|
|
19137
19137
|
a({ attribute: "dismiss-text" })
|
|
19138
|
-
],
|
|
19139
|
-
customElements.get("obi-error-message") || customElements.define("obi-error-message",
|
|
19140
|
-
function
|
|
19138
|
+
], H4.prototype, "dismissText", 2);
|
|
19139
|
+
customElements.get("obi-error-message") || customElements.define("obi-error-message", H4);
|
|
19140
|
+
function Ze(s2, e2) {
|
|
19141
19141
|
if (!s2)
|
|
19142
19142
|
return "";
|
|
19143
|
-
const i3 = (
|
|
19144
|
-
let p2 = "0",
|
|
19145
|
-
return
|
|
19143
|
+
const i3 = (h2) => {
|
|
19144
|
+
let p2 = "0", b2 = "0", x2 = "0";
|
|
19145
|
+
return h2.length === 4 ? (p2 = "0x" + h2[1] + h2[1], b2 = "0x" + h2[2] + h2[2], x2 = "0x" + h2[3] + h2[3]) : h2.length === 7 && (p2 = "0x" + h2[1] + h2[2], b2 = "0x" + h2[3] + h2[4], x2 = "0x" + h2[5] + h2[6]), {
|
|
19146
19146
|
r: parseInt(p2),
|
|
19147
|
-
g: parseInt(
|
|
19147
|
+
g: parseInt(b2),
|
|
19148
19148
|
b: parseInt(x2)
|
|
19149
19149
|
};
|
|
19150
|
-
}, o2 = (
|
|
19150
|
+
}, o2 = (h2, p2, b2) => "#" + [h2, p2, b2].map((x2) => {
|
|
19151
19151
|
const _2 = x2.toString(16);
|
|
19152
19152
|
return _2.length === 1 ? "0" + _2 : _2;
|
|
19153
|
-
}).join(""), { r: t2, g: r2, b: n3 } = i3(s2),
|
|
19154
|
-
return o2(
|
|
19153
|
+
}).join(""), { r: t2, g: r2, b: n3 } = i3(s2), d2 = Math.round(t2 + (255 - t2) * e2), l2 = Math.round(r2 + (255 - r2) * e2), u2 = Math.round(n3 + (255 - n3) * e2);
|
|
19154
|
+
return o2(d2, l2, u2);
|
|
19155
19155
|
}
|
|
19156
|
-
var
|
|
19157
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
19156
|
+
var zt = Object.defineProperty, Bt = Object.getOwnPropertyDescriptor, I2 = (s2, e2, i3, o2) => {
|
|
19157
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Bt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
19158
19158
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19159
|
-
return o2 && t2 &&
|
|
19159
|
+
return o2 && t2 && zt(e2, i3, t2), t2;
|
|
19160
19160
|
};
|
|
19161
|
-
class
|
|
19161
|
+
class A extends i$1 {
|
|
19162
19162
|
constructor() {
|
|
19163
19163
|
super(...arguments), this.title = "", this.subtitle = "", this.agentName = "Obi", this.buttonText = "Continue", this.disabled = false, this.color = "#9500FF";
|
|
19164
19164
|
}
|
|
19165
19165
|
getBackgroundColor() {
|
|
19166
|
-
return
|
|
19166
|
+
return Ze(this.color, 0.95);
|
|
19167
19167
|
}
|
|
19168
19168
|
handleAction() {
|
|
19169
19169
|
this.disabled || this.dispatchEvent(new CustomEvent("obi-action", {
|
|
@@ -19192,13 +19192,15 @@ class O extends i$1 {
|
|
|
19192
19192
|
|
|
19193
19193
|
<!-- Action button and error -->
|
|
19194
19194
|
<div class="button-container">
|
|
19195
|
-
<button
|
|
19196
|
-
|
|
19197
|
-
|
|
19198
|
-
|
|
19199
|
-
|
|
19200
|
-
|
|
19201
|
-
|
|
19195
|
+
<slot name="button">
|
|
19196
|
+
<button
|
|
19197
|
+
class="action-button"
|
|
19198
|
+
@click=${this.handleAction}
|
|
19199
|
+
?disabled=${this.disabled}
|
|
19200
|
+
>
|
|
19201
|
+
<span class="action-button-text">${this.disabled ? `${this.agentName} is speaking` : this.buttonText}</span>
|
|
19202
|
+
</button>
|
|
19203
|
+
</slot>
|
|
19202
19204
|
|
|
19203
19205
|
<slot name="error"></slot>
|
|
19204
19206
|
</div>
|
|
@@ -19206,8 +19208,8 @@ class O extends i$1 {
|
|
|
19206
19208
|
`;
|
|
19207
19209
|
}
|
|
19208
19210
|
}
|
|
19209
|
-
|
|
19210
|
-
|
|
19211
|
+
A.styles = [
|
|
19212
|
+
m,
|
|
19211
19213
|
i$4`
|
|
19212
19214
|
:host {
|
|
19213
19215
|
display: block;
|
|
@@ -19335,31 +19337,31 @@ O.styles = [
|
|
|
19335
19337
|
}
|
|
19336
19338
|
`
|
|
19337
19339
|
];
|
|
19338
|
-
|
|
19340
|
+
I2([
|
|
19339
19341
|
a()
|
|
19340
|
-
],
|
|
19341
|
-
|
|
19342
|
+
], A.prototype, "title", 2);
|
|
19343
|
+
I2([
|
|
19342
19344
|
a()
|
|
19343
|
-
],
|
|
19344
|
-
|
|
19345
|
+
], A.prototype, "subtitle", 2);
|
|
19346
|
+
I2([
|
|
19345
19347
|
a({ attribute: "agent-name" })
|
|
19346
|
-
],
|
|
19347
|
-
|
|
19348
|
+
], A.prototype, "agentName", 2);
|
|
19349
|
+
I2([
|
|
19348
19350
|
a({ attribute: "button-text" })
|
|
19349
|
-
],
|
|
19350
|
-
|
|
19351
|
+
], A.prototype, "buttonText", 2);
|
|
19352
|
+
I2([
|
|
19351
19353
|
a({ type: Boolean, reflect: true })
|
|
19352
|
-
],
|
|
19353
|
-
|
|
19354
|
+
], A.prototype, "disabled", 2);
|
|
19355
|
+
I2([
|
|
19354
19356
|
a()
|
|
19355
|
-
],
|
|
19356
|
-
customElements.get("obi-base-onboarding-content") || customElements.define("obi-base-onboarding-content",
|
|
19357
|
-
var
|
|
19358
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
19357
|
+
], A.prototype, "color", 2);
|
|
19358
|
+
customElements.get("obi-base-onboarding-content") || customElements.define("obi-base-onboarding-content", A);
|
|
19359
|
+
var Lt = Object.defineProperty, Mt = Object.getOwnPropertyDescriptor, Je = (s2, e2, i3, o2) => {
|
|
19360
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Mt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
19359
19361
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19360
|
-
return o2 && t2 &&
|
|
19362
|
+
return o2 && t2 && Lt(e2, i3, t2), t2;
|
|
19361
19363
|
};
|
|
19362
|
-
class
|
|
19364
|
+
class ve extends i$1 {
|
|
19363
19365
|
constructor() {
|
|
19364
19366
|
super(...arguments), this.logoUrl = "", this.appName = "App";
|
|
19365
19367
|
}
|
|
@@ -19394,8 +19396,8 @@ class be extends i$1 {
|
|
|
19394
19396
|
`;
|
|
19395
19397
|
}
|
|
19396
19398
|
}
|
|
19397
|
-
|
|
19398
|
-
|
|
19399
|
+
ve.styles = [
|
|
19400
|
+
m,
|
|
19399
19401
|
i$4`
|
|
19400
19402
|
:host {
|
|
19401
19403
|
display: block;
|
|
@@ -19457,19 +19459,19 @@ be.styles = [
|
|
|
19457
19459
|
}
|
|
19458
19460
|
`
|
|
19459
19461
|
];
|
|
19460
|
-
|
|
19462
|
+
Je([
|
|
19461
19463
|
a({ attribute: "logo-url" })
|
|
19462
|
-
],
|
|
19463
|
-
|
|
19464
|
+
], ve.prototype, "logoUrl", 2);
|
|
19465
|
+
Je([
|
|
19464
19466
|
a({ attribute: "app-name" })
|
|
19465
|
-
],
|
|
19466
|
-
customElements.get("obi-app-logo-visual") || customElements.define("obi-app-logo-visual",
|
|
19467
|
-
var
|
|
19468
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
19467
|
+
], ve.prototype, "appName", 2);
|
|
19468
|
+
customElements.get("obi-app-logo-visual") || customElements.define("obi-app-logo-visual", ve);
|
|
19469
|
+
var Rt = Object.defineProperty, Ut = Object.getOwnPropertyDescriptor, ne = (s2, e2, i3, o2) => {
|
|
19470
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Ut(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
19469
19471
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19470
|
-
return o2 && t2 &&
|
|
19472
|
+
return o2 && t2 && Rt(e2, i3, t2), t2;
|
|
19471
19473
|
};
|
|
19472
|
-
class
|
|
19474
|
+
class B extends i$1 {
|
|
19473
19475
|
constructor() {
|
|
19474
19476
|
super(...arguments), this.color = "#9500FF", this.isLoading = false, this.error = null, this.navigateAttempts = 0;
|
|
19475
19477
|
}
|
|
@@ -19555,24 +19557,24 @@ class z2 extends i$1 {
|
|
|
19555
19557
|
`;
|
|
19556
19558
|
}
|
|
19557
19559
|
}
|
|
19558
|
-
|
|
19559
|
-
|
|
19560
|
+
B.styles = [m];
|
|
19561
|
+
ne([
|
|
19560
19562
|
a({ type: Object })
|
|
19561
|
-
],
|
|
19562
|
-
|
|
19563
|
+
], B.prototype, "session", 2);
|
|
19564
|
+
ne([
|
|
19563
19565
|
a()
|
|
19564
|
-
],
|
|
19565
|
-
|
|
19566
|
+
], B.prototype, "color", 2);
|
|
19567
|
+
ne([
|
|
19566
19568
|
v()
|
|
19567
|
-
],
|
|
19568
|
-
|
|
19569
|
+
], B.prototype, "isLoading", 2);
|
|
19570
|
+
ne([
|
|
19569
19571
|
v()
|
|
19570
|
-
],
|
|
19571
|
-
|
|
19572
|
+
], B.prototype, "error", 2);
|
|
19573
|
+
ne([
|
|
19572
19574
|
v()
|
|
19573
|
-
],
|
|
19574
|
-
customElements.get("obi-navigate-to-content") || customElements.define("obi-navigate-to-content",
|
|
19575
|
-
const
|
|
19575
|
+
], B.prototype, "navigateAttempts", 2);
|
|
19576
|
+
customElements.get("obi-navigate-to-content") || customElements.define("obi-navigate-to-content", B);
|
|
19577
|
+
const Ht = x`
|
|
19576
19578
|
<img
|
|
19577
19579
|
src="data:image/svg+xml;base64,${btoa(`<?xml version="1.0" encoding="UTF-8"?>
|
|
19578
19580
|
<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -19582,12 +19584,12 @@ const zt = x`
|
|
|
19582
19584
|
style="width: 100%; height: 100%; object-fit: contain;"
|
|
19583
19585
|
/>
|
|
19584
19586
|
`;
|
|
19585
|
-
var
|
|
19586
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
19587
|
+
var It = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, qt = (s2, e2, i3, o2) => {
|
|
19588
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Vt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
19587
19589
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19588
|
-
return o2 && t2 &&
|
|
19590
|
+
return o2 && t2 && It(e2, i3, t2), t2;
|
|
19589
19591
|
};
|
|
19590
|
-
class
|
|
19592
|
+
class Fe extends i$1 {
|
|
19591
19593
|
constructor() {
|
|
19592
19594
|
super(...arguments), this.color = "#9500FF";
|
|
19593
19595
|
}
|
|
@@ -19604,15 +19606,15 @@ class Ae extends i$1 {
|
|
|
19604
19606
|
<div class="container">
|
|
19605
19607
|
<div class="logo" style="background: ${this.color}; box-shadow: ${r2};">
|
|
19606
19608
|
<slot>
|
|
19607
|
-
<div class="logo-icon">${
|
|
19609
|
+
<div class="logo-icon">${Ht}</div>
|
|
19608
19610
|
</slot>
|
|
19609
19611
|
</div>
|
|
19610
19612
|
</div>
|
|
19611
19613
|
`;
|
|
19612
19614
|
}
|
|
19613
19615
|
}
|
|
19614
|
-
|
|
19615
|
-
|
|
19616
|
+
Fe.styles = [
|
|
19617
|
+
m,
|
|
19616
19618
|
i$4`
|
|
19617
19619
|
:host {
|
|
19618
19620
|
display: block;
|
|
@@ -19657,14 +19659,14 @@ Ae.styles = [
|
|
|
19657
19659
|
}
|
|
19658
19660
|
`
|
|
19659
19661
|
];
|
|
19660
|
-
|
|
19662
|
+
qt([
|
|
19661
19663
|
a()
|
|
19662
|
-
],
|
|
19663
|
-
customElements.get("obi-logo-visual") || customElements.define("obi-logo-visual",
|
|
19664
|
-
var
|
|
19665
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
19664
|
+
], Fe.prototype, "color", 2);
|
|
19665
|
+
customElements.get("obi-logo-visual") || customElements.define("obi-logo-visual", Fe);
|
|
19666
|
+
var Wt = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, V = (s2, e2, i3, o2) => {
|
|
19667
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Yt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
19666
19668
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19667
|
-
return o2 && t2 &&
|
|
19669
|
+
return o2 && t2 && Wt(e2, i3, t2), t2;
|
|
19668
19670
|
};
|
|
19669
19671
|
class P extends i$1 {
|
|
19670
19672
|
constructor() {
|
|
@@ -19748,27 +19750,27 @@ class P extends i$1 {
|
|
|
19748
19750
|
`;
|
|
19749
19751
|
}
|
|
19750
19752
|
}
|
|
19751
|
-
P.styles = [
|
|
19752
|
-
|
|
19753
|
+
P.styles = [m];
|
|
19754
|
+
V([
|
|
19753
19755
|
a({ type: Object })
|
|
19754
19756
|
], P.prototype, "session", 2);
|
|
19755
|
-
|
|
19757
|
+
V([
|
|
19756
19758
|
a({ type: Boolean, reflect: true })
|
|
19757
19759
|
], P.prototype, "disabled", 2);
|
|
19758
|
-
|
|
19760
|
+
V([
|
|
19759
19761
|
a()
|
|
19760
19762
|
], P.prototype, "color", 2);
|
|
19761
|
-
|
|
19763
|
+
V([
|
|
19762
19764
|
v()
|
|
19763
19765
|
], P.prototype, "isLoading", 2);
|
|
19764
|
-
|
|
19766
|
+
V([
|
|
19765
19767
|
v()
|
|
19766
19768
|
], P.prototype, "error", 2);
|
|
19767
|
-
|
|
19769
|
+
V([
|
|
19768
19770
|
v()
|
|
19769
19771
|
], P.prototype, "startAttempts", 2);
|
|
19770
19772
|
customElements.get("obi-session-start-content") || customElements.define("obi-session-start-content", P);
|
|
19771
|
-
class
|
|
19773
|
+
class Ke extends i$1 {
|
|
19772
19774
|
render() {
|
|
19773
19775
|
return x`
|
|
19774
19776
|
<div class="container">
|
|
@@ -19800,8 +19802,8 @@ class qe extends i$1 {
|
|
|
19800
19802
|
`;
|
|
19801
19803
|
}
|
|
19802
19804
|
}
|
|
19803
|
-
|
|
19804
|
-
|
|
19805
|
+
Ke.styles = [
|
|
19806
|
+
m,
|
|
19805
19807
|
i$4`
|
|
19806
19808
|
:host {
|
|
19807
19809
|
display: block;
|
|
@@ -19956,13 +19958,13 @@ qe.styles = [
|
|
|
19956
19958
|
}
|
|
19957
19959
|
`
|
|
19958
19960
|
];
|
|
19959
|
-
customElements.get("obi-microphone-permission-visual") || customElements.define("obi-microphone-permission-visual",
|
|
19960
|
-
var
|
|
19961
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
19961
|
+
customElements.get("obi-microphone-permission-visual") || customElements.define("obi-microphone-permission-visual", Ke);
|
|
19962
|
+
var Gt = Object.defineProperty, Xt = Object.getOwnPropertyDescriptor, q = (s2, e2, i3, o2) => {
|
|
19963
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Xt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
19962
19964
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19963
|
-
return o2 && t2 &&
|
|
19965
|
+
return o2 && t2 && Gt(e2, i3, t2), t2;
|
|
19964
19966
|
};
|
|
19965
|
-
class
|
|
19967
|
+
class D extends i$1 {
|
|
19966
19968
|
constructor() {
|
|
19967
19969
|
super(...arguments), this.disabled = false, this.color = "#9500FF", this.isLoading = false, this.error = null, this.micPermissionGranted = false;
|
|
19968
19970
|
}
|
|
@@ -20012,30 +20014,30 @@ class S extends i$1 {
|
|
|
20012
20014
|
`;
|
|
20013
20015
|
}
|
|
20014
20016
|
}
|
|
20015
|
-
|
|
20016
|
-
|
|
20017
|
+
D.styles = [m];
|
|
20018
|
+
q([
|
|
20017
20019
|
a({ type: Object })
|
|
20018
|
-
],
|
|
20019
|
-
|
|
20020
|
+
], D.prototype, "session", 2);
|
|
20021
|
+
q([
|
|
20020
20022
|
a({ type: Boolean, reflect: true })
|
|
20021
|
-
],
|
|
20022
|
-
|
|
20023
|
+
], D.prototype, "disabled", 2);
|
|
20024
|
+
q([
|
|
20023
20025
|
a()
|
|
20024
|
-
],
|
|
20025
|
-
|
|
20026
|
+
], D.prototype, "color", 2);
|
|
20027
|
+
q([
|
|
20026
20028
|
v()
|
|
20027
|
-
],
|
|
20028
|
-
|
|
20029
|
+
], D.prototype, "isLoading", 2);
|
|
20030
|
+
q([
|
|
20029
20031
|
v()
|
|
20030
|
-
],
|
|
20031
|
-
|
|
20032
|
+
], D.prototype, "error", 2);
|
|
20033
|
+
q([
|
|
20032
20034
|
v()
|
|
20033
|
-
],
|
|
20034
|
-
customElements.get("obi-share-mic-content") || customElements.define("obi-share-mic-content",
|
|
20035
|
-
var
|
|
20036
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20035
|
+
], D.prototype, "micPermissionGranted", 2);
|
|
20036
|
+
customElements.get("obi-share-mic-content") || customElements.define("obi-share-mic-content", D);
|
|
20037
|
+
var Zt = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, ye = (s2, e2, i3, o2) => {
|
|
20038
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Jt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20037
20039
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20038
|
-
return o2 && t2 &&
|
|
20040
|
+
return o2 && t2 && Zt(e2, i3, t2), t2;
|
|
20039
20041
|
};
|
|
20040
20042
|
class W extends i$1 {
|
|
20041
20043
|
constructor() {
|
|
@@ -20053,13 +20055,13 @@ class W extends i$1 {
|
|
|
20053
20055
|
startAnimation() {
|
|
20054
20056
|
const r2 = () => {
|
|
20055
20057
|
this.clearTimeouts();
|
|
20056
|
-
for (let
|
|
20057
|
-
const l2 =
|
|
20058
|
-
this.activeDots = this.activeDots.map((p2,
|
|
20059
|
-
const
|
|
20060
|
-
this.activeDots = this.activeDots.map((p2,
|
|
20058
|
+
for (let d2 = 0; d2 < 5; d2++) {
|
|
20059
|
+
const l2 = d2 * 140, u2 = window.setTimeout(() => {
|
|
20060
|
+
this.activeDots = this.activeDots.map((p2, b2) => b2 === d2), this.requestUpdate();
|
|
20061
|
+
const h2 = window.setTimeout(() => {
|
|
20062
|
+
this.activeDots = this.activeDots.map((p2, b2) => b2 === d2 ? false : this.activeDots[b2]), this.requestUpdate();
|
|
20061
20063
|
}, 200);
|
|
20062
|
-
this.animationTimeouts.push(
|
|
20064
|
+
this.animationTimeouts.push(h2);
|
|
20063
20065
|
}, l2);
|
|
20064
20066
|
this.animationTimeouts.push(u2);
|
|
20065
20067
|
}
|
|
@@ -20087,7 +20089,7 @@ class W extends i$1 {
|
|
|
20087
20089
|
}
|
|
20088
20090
|
}
|
|
20089
20091
|
W.styles = [
|
|
20090
|
-
|
|
20092
|
+
m,
|
|
20091
20093
|
i$4`
|
|
20092
20094
|
:host {
|
|
20093
20095
|
display: flex;
|
|
@@ -20132,25 +20134,25 @@ W.styles = [
|
|
|
20132
20134
|
}
|
|
20133
20135
|
`
|
|
20134
20136
|
];
|
|
20135
|
-
|
|
20137
|
+
ye([
|
|
20136
20138
|
a()
|
|
20137
20139
|
], W.prototype, "color", 2);
|
|
20138
|
-
|
|
20140
|
+
ye([
|
|
20139
20141
|
a({ attribute: "dot-color" })
|
|
20140
20142
|
], W.prototype, "dotColor", 2);
|
|
20141
|
-
|
|
20143
|
+
ye([
|
|
20142
20144
|
v()
|
|
20143
20145
|
], W.prototype, "activeDots", 2);
|
|
20144
|
-
|
|
20146
|
+
ye([
|
|
20145
20147
|
v()
|
|
20146
20148
|
], W.prototype, "animationTimeouts", 2);
|
|
20147
20149
|
customElements.get("obi-voice-guidance-visual") || customElements.define("obi-voice-guidance-visual", W);
|
|
20148
|
-
var
|
|
20149
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20150
|
+
var Kt = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, ae = (s2, e2, i3, o2) => {
|
|
20151
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Qt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20150
20152
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20151
|
-
return o2 && t2 &&
|
|
20153
|
+
return o2 && t2 && Kt(e2, i3, t2), t2;
|
|
20152
20154
|
};
|
|
20153
|
-
class
|
|
20155
|
+
class L2 extends i$1 {
|
|
20154
20156
|
constructor() {
|
|
20155
20157
|
super(...arguments), this.color = "#9500FF", this.disabled = false, this.loading = false, this.error = null;
|
|
20156
20158
|
}
|
|
@@ -20222,24 +20224,24 @@ class B extends i$1 {
|
|
|
20222
20224
|
`;
|
|
20223
20225
|
}
|
|
20224
20226
|
}
|
|
20225
|
-
|
|
20226
|
-
|
|
20227
|
+
L2.styles = [m];
|
|
20228
|
+
ae([
|
|
20227
20229
|
a({ type: Object })
|
|
20228
|
-
],
|
|
20229
|
-
|
|
20230
|
+
], L2.prototype, "session", 2);
|
|
20231
|
+
ae([
|
|
20230
20232
|
a()
|
|
20231
|
-
],
|
|
20232
|
-
|
|
20233
|
+
], L2.prototype, "color", 2);
|
|
20234
|
+
ae([
|
|
20233
20235
|
a({ type: Boolean, reflect: true })
|
|
20234
|
-
],
|
|
20235
|
-
|
|
20236
|
+
], L2.prototype, "disabled", 2);
|
|
20237
|
+
ae([
|
|
20236
20238
|
a({ type: Boolean, reflect: true })
|
|
20237
|
-
],
|
|
20238
|
-
|
|
20239
|
+
], L2.prototype, "loading", 2);
|
|
20240
|
+
ae([
|
|
20239
20241
|
v()
|
|
20240
|
-
],
|
|
20241
|
-
customElements.get("obi-voice-guidance-content") || customElements.define("obi-voice-guidance-content",
|
|
20242
|
-
class
|
|
20242
|
+
], L2.prototype, "error", 2);
|
|
20243
|
+
customElements.get("obi-voice-guidance-content") || customElements.define("obi-voice-guidance-content", L2);
|
|
20244
|
+
class Qe extends i$1 {
|
|
20243
20245
|
render() {
|
|
20244
20246
|
return x`
|
|
20245
20247
|
<article class="skeleton-container" role="status" aria-label="Loading content">
|
|
@@ -20257,8 +20259,8 @@ class Ge extends i$1 {
|
|
|
20257
20259
|
`;
|
|
20258
20260
|
}
|
|
20259
20261
|
}
|
|
20260
|
-
|
|
20261
|
-
|
|
20262
|
+
Qe.styles = [
|
|
20263
|
+
m,
|
|
20262
20264
|
i$4`
|
|
20263
20265
|
:host {
|
|
20264
20266
|
display: flex;
|
|
@@ -20371,18 +20373,18 @@ Ge.styles = [
|
|
|
20371
20373
|
}
|
|
20372
20374
|
`
|
|
20373
20375
|
];
|
|
20374
|
-
customElements.get("obi-skeleton-loader-visual") || customElements.define("obi-skeleton-loader-visual",
|
|
20375
|
-
var
|
|
20376
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20376
|
+
customElements.get("obi-skeleton-loader-visual") || customElements.define("obi-skeleton-loader-visual", Qe);
|
|
20377
|
+
var eo = Object.defineProperty, to = Object.getOwnPropertyDescriptor, oo = (s2, e2, i3, o2) => {
|
|
20378
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? to(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20377
20379
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20378
|
-
return o2 && t2 &&
|
|
20380
|
+
return o2 && t2 && eo(e2, i3, t2), t2;
|
|
20379
20381
|
};
|
|
20380
|
-
class
|
|
20382
|
+
class je extends i$1 {
|
|
20381
20383
|
constructor() {
|
|
20382
20384
|
super(...arguments), this.color = "#9500FF";
|
|
20383
20385
|
}
|
|
20384
20386
|
getBackgroundColor() {
|
|
20385
|
-
return
|
|
20387
|
+
return Ze(this.color, 0.95);
|
|
20386
20388
|
}
|
|
20387
20389
|
render() {
|
|
20388
20390
|
return x`
|
|
@@ -20414,8 +20416,8 @@ class Oe extends i$1 {
|
|
|
20414
20416
|
`;
|
|
20415
20417
|
}
|
|
20416
20418
|
}
|
|
20417
|
-
|
|
20418
|
-
|
|
20419
|
+
je.styles = [
|
|
20420
|
+
m,
|
|
20419
20421
|
i$4`
|
|
20420
20422
|
:host {
|
|
20421
20423
|
display: block;
|
|
@@ -20506,16 +20508,16 @@ Oe.styles = [
|
|
|
20506
20508
|
}
|
|
20507
20509
|
`
|
|
20508
20510
|
];
|
|
20509
|
-
|
|
20511
|
+
oo([
|
|
20510
20512
|
a()
|
|
20511
|
-
],
|
|
20512
|
-
customElements.get("obi-screen-share-visual") || customElements.define("obi-screen-share-visual",
|
|
20513
|
-
var
|
|
20514
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20513
|
+
], je.prototype, "color", 2);
|
|
20514
|
+
customElements.get("obi-screen-share-visual") || customElements.define("obi-screen-share-visual", je);
|
|
20515
|
+
var io = Object.defineProperty, so = Object.getOwnPropertyDescriptor, Y = (s2, e2, i3, o2) => {
|
|
20516
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? so(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20515
20517
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20516
|
-
return o2 && t2 &&
|
|
20518
|
+
return o2 && t2 && io(e2, i3, t2), t2;
|
|
20517
20519
|
};
|
|
20518
|
-
class
|
|
20520
|
+
class S extends i$1 {
|
|
20519
20521
|
constructor() {
|
|
20520
20522
|
super(...arguments), this.disabled = false, this.color = "#9500FF", this.isLoading = false, this.error = null, this.continueAttempts = 0;
|
|
20521
20523
|
}
|
|
@@ -20592,32 +20594,32 @@ class D extends i$1 {
|
|
|
20592
20594
|
`;
|
|
20593
20595
|
}
|
|
20594
20596
|
}
|
|
20595
|
-
|
|
20596
|
-
|
|
20597
|
+
S.styles = [m];
|
|
20598
|
+
Y([
|
|
20597
20599
|
a({ type: Object })
|
|
20598
|
-
],
|
|
20599
|
-
|
|
20600
|
+
], S.prototype, "session", 2);
|
|
20601
|
+
Y([
|
|
20600
20602
|
a({ type: Boolean, reflect: true })
|
|
20601
|
-
],
|
|
20602
|
-
|
|
20603
|
+
], S.prototype, "disabled", 2);
|
|
20604
|
+
Y([
|
|
20603
20605
|
a()
|
|
20604
|
-
],
|
|
20605
|
-
|
|
20606
|
+
], S.prototype, "color", 2);
|
|
20607
|
+
Y([
|
|
20606
20608
|
v()
|
|
20607
|
-
],
|
|
20608
|
-
|
|
20609
|
+
], S.prototype, "isLoading", 2);
|
|
20610
|
+
Y([
|
|
20609
20611
|
v()
|
|
20610
|
-
],
|
|
20611
|
-
|
|
20612
|
+
], S.prototype, "error", 2);
|
|
20613
|
+
Y([
|
|
20612
20614
|
v()
|
|
20613
|
-
],
|
|
20614
|
-
customElements.get("obi-share-screen-content") || customElements.define("obi-share-screen-content",
|
|
20615
|
-
var
|
|
20616
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20615
|
+
], S.prototype, "continueAttempts", 2);
|
|
20616
|
+
customElements.get("obi-share-screen-content") || customElements.define("obi-share-screen-content", S);
|
|
20617
|
+
var ro = Object.defineProperty, no = Object.getOwnPropertyDescriptor, et = (s2, e2, i3, o2) => {
|
|
20618
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? no(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20617
20619
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20618
|
-
return o2 && t2 &&
|
|
20620
|
+
return o2 && t2 && ro(e2, i3, t2), t2;
|
|
20619
20621
|
};
|
|
20620
|
-
class
|
|
20622
|
+
class xe extends i$1 {
|
|
20621
20623
|
constructor() {
|
|
20622
20624
|
super(...arguments), this.open = false, this.closeDisabled = false, this.closeReason = null;
|
|
20623
20625
|
}
|
|
@@ -20666,8 +20668,8 @@ class me extends i$1 {
|
|
|
20666
20668
|
`;
|
|
20667
20669
|
}
|
|
20668
20670
|
}
|
|
20669
|
-
|
|
20670
|
-
|
|
20671
|
+
xe.styles = [
|
|
20672
|
+
m,
|
|
20671
20673
|
i$4`
|
|
20672
20674
|
:host {
|
|
20673
20675
|
--obi-modal-width: 640px;
|
|
@@ -20735,17 +20737,17 @@ me.styles = [
|
|
|
20735
20737
|
}
|
|
20736
20738
|
`
|
|
20737
20739
|
];
|
|
20738
|
-
|
|
20740
|
+
et([
|
|
20739
20741
|
a({ type: Boolean, reflect: true })
|
|
20740
|
-
],
|
|
20741
|
-
|
|
20742
|
+
], xe.prototype, "open", 2);
|
|
20743
|
+
et([
|
|
20742
20744
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
20743
|
-
],
|
|
20744
|
-
customElements.get("obi-base-onboarding-modal") || customElements.define("obi-base-onboarding-modal",
|
|
20745
|
-
var
|
|
20746
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20745
|
+
], xe.prototype, "closeDisabled", 2);
|
|
20746
|
+
customElements.get("obi-base-onboarding-modal") || customElements.define("obi-base-onboarding-modal", xe);
|
|
20747
|
+
var ao = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, we = (s2, e2, i3, o2) => {
|
|
20748
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? lo(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20747
20749
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20748
|
-
return o2 && t2 &&
|
|
20750
|
+
return o2 && t2 && ao(e2, i3, t2), t2;
|
|
20749
20751
|
};
|
|
20750
20752
|
class G extends i$1 {
|
|
20751
20753
|
constructor() {
|
|
@@ -20766,26 +20768,26 @@ class G extends i$1 {
|
|
|
20766
20768
|
`;
|
|
20767
20769
|
}
|
|
20768
20770
|
}
|
|
20769
|
-
G.styles = [
|
|
20770
|
-
|
|
20771
|
+
G.styles = [m];
|
|
20772
|
+
we([
|
|
20771
20773
|
a({ type: Object })
|
|
20772
20774
|
], G.prototype, "session", 2);
|
|
20773
|
-
|
|
20775
|
+
we([
|
|
20774
20776
|
a({ type: Boolean, reflect: true })
|
|
20775
20777
|
], G.prototype, "open", 2);
|
|
20776
|
-
|
|
20778
|
+
we([
|
|
20777
20779
|
a({ type: Boolean, reflect: true })
|
|
20778
20780
|
], G.prototype, "disabled", 2);
|
|
20779
|
-
|
|
20781
|
+
we([
|
|
20780
20782
|
a()
|
|
20781
20783
|
], G.prototype, "color", 2);
|
|
20782
20784
|
customElements.get("obi-share-screen-modal") || customElements.define("obi-share-screen-modal", G);
|
|
20783
|
-
var
|
|
20784
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20785
|
+
var co = Object.defineProperty, ho = Object.getOwnPropertyDescriptor, le = (s2, e2, i3, o2) => {
|
|
20786
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? ho(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20785
20787
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20786
|
-
return o2 && t2 &&
|
|
20788
|
+
return o2 && t2 && co(e2, i3, t2), t2;
|
|
20787
20789
|
};
|
|
20788
|
-
class
|
|
20790
|
+
class M2 extends i$1 {
|
|
20789
20791
|
constructor() {
|
|
20790
20792
|
super(...arguments), this.open = false, this.color = "#9500FF", this.disabled = false, this.closeDisabled = false;
|
|
20791
20793
|
}
|
|
@@ -20805,29 +20807,29 @@ class L2 extends i$1 {
|
|
|
20805
20807
|
`;
|
|
20806
20808
|
}
|
|
20807
20809
|
}
|
|
20808
|
-
|
|
20809
|
-
|
|
20810
|
+
M2.styles = [m];
|
|
20811
|
+
le([
|
|
20810
20812
|
a({ type: Object })
|
|
20811
|
-
],
|
|
20812
|
-
|
|
20813
|
+
], M2.prototype, "session", 2);
|
|
20814
|
+
le([
|
|
20813
20815
|
a({ type: Boolean, reflect: true })
|
|
20814
|
-
],
|
|
20815
|
-
|
|
20816
|
+
], M2.prototype, "open", 2);
|
|
20817
|
+
le([
|
|
20816
20818
|
a()
|
|
20817
|
-
],
|
|
20818
|
-
|
|
20819
|
+
], M2.prototype, "color", 2);
|
|
20820
|
+
le([
|
|
20819
20821
|
a({ type: Boolean, reflect: true })
|
|
20820
|
-
],
|
|
20821
|
-
|
|
20822
|
+
], M2.prototype, "disabled", 2);
|
|
20823
|
+
le([
|
|
20822
20824
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
20823
|
-
],
|
|
20824
|
-
customElements.get("obi-navigate-to-modal") || customElements.define("obi-navigate-to-modal",
|
|
20825
|
-
var
|
|
20826
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20825
|
+
], M2.prototype, "closeDisabled", 2);
|
|
20826
|
+
customElements.get("obi-navigate-to-modal") || customElements.define("obi-navigate-to-modal", M2);
|
|
20827
|
+
var po = Object.defineProperty, uo = Object.getOwnPropertyDescriptor, $e = (s2, e2, i3, o2) => {
|
|
20828
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? uo(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20827
20829
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20828
|
-
return o2 && t2 &&
|
|
20830
|
+
return o2 && t2 && po(e2, i3, t2), t2;
|
|
20829
20831
|
};
|
|
20830
|
-
class
|
|
20832
|
+
class X extends i$1 {
|
|
20831
20833
|
constructor() {
|
|
20832
20834
|
super(...arguments), this.disabled = false, this.open = false, this.color = "#9500FF";
|
|
20833
20835
|
}
|
|
@@ -20843,26 +20845,26 @@ class Y extends i$1 {
|
|
|
20843
20845
|
`;
|
|
20844
20846
|
}
|
|
20845
20847
|
}
|
|
20846
|
-
|
|
20847
|
-
|
|
20848
|
+
X.styles = [m];
|
|
20849
|
+
$e([
|
|
20848
20850
|
a({ type: Object })
|
|
20849
|
-
],
|
|
20850
|
-
|
|
20851
|
+
], X.prototype, "session", 2);
|
|
20852
|
+
$e([
|
|
20851
20853
|
a({ type: Boolean, reflect: true })
|
|
20852
|
-
],
|
|
20853
|
-
|
|
20854
|
+
], X.prototype, "disabled", 2);
|
|
20855
|
+
$e([
|
|
20854
20856
|
a({ type: Boolean, reflect: true })
|
|
20855
|
-
],
|
|
20856
|
-
|
|
20857
|
+
], X.prototype, "open", 2);
|
|
20858
|
+
$e([
|
|
20857
20859
|
a()
|
|
20858
|
-
],
|
|
20859
|
-
customElements.get("obi-session-start-modal") || customElements.define("obi-session-start-modal",
|
|
20860
|
-
var
|
|
20861
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20860
|
+
], X.prototype, "color", 2);
|
|
20861
|
+
customElements.get("obi-session-start-modal") || customElements.define("obi-session-start-modal", X);
|
|
20862
|
+
var bo = Object.defineProperty, go = Object.getOwnPropertyDescriptor, _e = (s2, e2, i3, o2) => {
|
|
20863
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? go(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20862
20864
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20863
|
-
return o2 && t2 &&
|
|
20865
|
+
return o2 && t2 && bo(e2, i3, t2), t2;
|
|
20864
20866
|
};
|
|
20865
|
-
class
|
|
20867
|
+
class Z extends i$1 {
|
|
20866
20868
|
constructor() {
|
|
20867
20869
|
super(...arguments), this.open = false, this.disabled = false, this.color = "#9500FF";
|
|
20868
20870
|
}
|
|
@@ -20881,26 +20883,26 @@ class X extends i$1 {
|
|
|
20881
20883
|
`;
|
|
20882
20884
|
}
|
|
20883
20885
|
}
|
|
20884
|
-
|
|
20885
|
-
|
|
20886
|
+
Z.styles = [m];
|
|
20887
|
+
_e([
|
|
20886
20888
|
a({ type: Object })
|
|
20887
|
-
],
|
|
20888
|
-
|
|
20889
|
+
], Z.prototype, "session", 2);
|
|
20890
|
+
_e([
|
|
20889
20891
|
a({ type: Boolean, reflect: true })
|
|
20890
|
-
],
|
|
20891
|
-
|
|
20892
|
+
], Z.prototype, "open", 2);
|
|
20893
|
+
_e([
|
|
20892
20894
|
a({ type: Boolean, reflect: true })
|
|
20893
|
-
],
|
|
20894
|
-
|
|
20895
|
+
], Z.prototype, "disabled", 2);
|
|
20896
|
+
_e([
|
|
20895
20897
|
a()
|
|
20896
|
-
],
|
|
20897
|
-
customElements.get("obi-share-mic-modal") || customElements.define("obi-share-mic-modal",
|
|
20898
|
-
var
|
|
20899
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20898
|
+
], Z.prototype, "color", 2);
|
|
20899
|
+
customElements.get("obi-share-mic-modal") || customElements.define("obi-share-mic-modal", Z);
|
|
20900
|
+
var mo = Object.defineProperty, fo = Object.getOwnPropertyDescriptor, J = (s2, e2, i3, o2) => {
|
|
20901
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? fo(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20900
20902
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20901
|
-
return o2 && t2 &&
|
|
20903
|
+
return o2 && t2 && mo(e2, i3, t2), t2;
|
|
20902
20904
|
};
|
|
20903
|
-
class
|
|
20905
|
+
class F extends i$1 {
|
|
20904
20906
|
constructor() {
|
|
20905
20907
|
super(...arguments), this.open = false, this.color = "#9500FF", this.disabled = false, this.loading = false, this.closeDisabled = false;
|
|
20906
20908
|
}
|
|
@@ -20922,26 +20924,227 @@ class j extends i$1 {
|
|
|
20922
20924
|
`;
|
|
20923
20925
|
}
|
|
20924
20926
|
}
|
|
20925
|
-
|
|
20926
|
-
|
|
20927
|
+
F.styles = [m];
|
|
20928
|
+
J([
|
|
20929
|
+
a({ type: Object })
|
|
20930
|
+
], F.prototype, "session", 2);
|
|
20931
|
+
J([
|
|
20932
|
+
a({ type: Boolean, reflect: true })
|
|
20933
|
+
], F.prototype, "open", 2);
|
|
20934
|
+
J([
|
|
20935
|
+
a()
|
|
20936
|
+
], F.prototype, "color", 2);
|
|
20937
|
+
J([
|
|
20938
|
+
a({ type: Boolean, reflect: true })
|
|
20939
|
+
], F.prototype, "disabled", 2);
|
|
20940
|
+
J([
|
|
20941
|
+
a({ type: Boolean, reflect: true })
|
|
20942
|
+
], F.prototype, "loading", 2);
|
|
20943
|
+
J([
|
|
20944
|
+
a({ type: Boolean, attribute: "close-disabled" })
|
|
20945
|
+
], F.prototype, "closeDisabled", 2);
|
|
20946
|
+
customElements.get("obi-voice-guidance-modal") || customElements.define("obi-voice-guidance-modal", F);
|
|
20947
|
+
var vo = Object.defineProperty, yo = Object.getOwnPropertyDescriptor, Ee = (s2, e2, i3, o2) => {
|
|
20948
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? yo(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20949
|
+
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20950
|
+
return o2 && t2 && vo(e2, i3, t2), t2;
|
|
20951
|
+
};
|
|
20952
|
+
class K extends i$1 {
|
|
20953
|
+
constructor() {
|
|
20954
|
+
super(...arguments), this.color = "#9500FF", this.dotColor = "#FFFFFF", this.activeDots = Array(5).fill(false), this.animationTimeouts = [];
|
|
20955
|
+
}
|
|
20956
|
+
connectedCallback() {
|
|
20957
|
+
super.connectedCallback(), this.startAnimation();
|
|
20958
|
+
}
|
|
20959
|
+
disconnectedCallback() {
|
|
20960
|
+
super.disconnectedCallback(), this.clearTimeouts();
|
|
20961
|
+
}
|
|
20962
|
+
clearTimeouts() {
|
|
20963
|
+
this.animationTimeouts.forEach((e2) => clearTimeout(e2)), this.animationTimeouts = [];
|
|
20964
|
+
}
|
|
20965
|
+
startAnimation() {
|
|
20966
|
+
const r2 = () => {
|
|
20967
|
+
this.clearTimeouts();
|
|
20968
|
+
for (let d2 = 0; d2 < 5; d2++) {
|
|
20969
|
+
const l2 = d2 * 140, u2 = window.setTimeout(() => {
|
|
20970
|
+
this.activeDots = this.activeDots.map((p2, b2) => b2 === d2), this.requestUpdate();
|
|
20971
|
+
const h2 = window.setTimeout(() => {
|
|
20972
|
+
this.activeDots = this.activeDots.map((p2, b2) => b2 === d2 ? false : this.activeDots[b2]), this.requestUpdate();
|
|
20973
|
+
}, 200);
|
|
20974
|
+
this.animationTimeouts.push(h2);
|
|
20975
|
+
}, l2);
|
|
20976
|
+
this.animationTimeouts.push(u2);
|
|
20977
|
+
}
|
|
20978
|
+
const n3 = window.setTimeout(
|
|
20979
|
+
r2,
|
|
20980
|
+
5 * 200 * 0.7 + 300
|
|
20981
|
+
);
|
|
20982
|
+
this.animationTimeouts.push(n3);
|
|
20983
|
+
};
|
|
20984
|
+
r2();
|
|
20985
|
+
}
|
|
20986
|
+
updated(e2) {
|
|
20987
|
+
super.updated(e2), e2.has("color") && this.style.setProperty("--voice-guidance-color", this.color), e2.has("dotColor") && this.style.setProperty("--voice-guidance-dot-color", this.dotColor);
|
|
20988
|
+
}
|
|
20989
|
+
render() {
|
|
20990
|
+
return x`
|
|
20991
|
+
<div class="container">
|
|
20992
|
+
<div class="dots-container">
|
|
20993
|
+
${this.activeDots.map((e2, i3) => x`
|
|
20994
|
+
<div class="dot ${e2 ? "active" : ""}" key=${i3}></div>
|
|
20995
|
+
`)}
|
|
20996
|
+
</div>
|
|
20997
|
+
</div>
|
|
20998
|
+
`;
|
|
20999
|
+
}
|
|
21000
|
+
}
|
|
21001
|
+
K.styles = [
|
|
21002
|
+
m,
|
|
21003
|
+
i$4`
|
|
21004
|
+
:host {
|
|
21005
|
+
display: flex;
|
|
21006
|
+
align-items: center;
|
|
21007
|
+
justify-content: center;
|
|
21008
|
+
}
|
|
21009
|
+
|
|
21010
|
+
.container {
|
|
21011
|
+
width: 96px;
|
|
21012
|
+
height: 96px;
|
|
21013
|
+
border-radius: 8px;
|
|
21014
|
+
display: flex;
|
|
21015
|
+
align-items: center;
|
|
21016
|
+
justify-content: center;
|
|
21017
|
+
box-shadow: 0 0 20px 5px var(--voice-guidance-color, #9500FF);
|
|
21018
|
+
background-color: var(--voice-guidance-color, #9500FF);
|
|
21019
|
+
}
|
|
21020
|
+
|
|
21021
|
+
.dots-container {
|
|
21022
|
+
display: flex;
|
|
21023
|
+
flex-direction: row;
|
|
21024
|
+
width: 64px;
|
|
21025
|
+
height: 14px;
|
|
21026
|
+
justify-content: center;
|
|
21027
|
+
align-items: center;
|
|
21028
|
+
padding: 0;
|
|
21029
|
+
margin: 0;
|
|
21030
|
+
gap: 8px;
|
|
21031
|
+
}
|
|
21032
|
+
|
|
21033
|
+
.dot {
|
|
21034
|
+
width: 3px;
|
|
21035
|
+
height: 3px;
|
|
21036
|
+
border-radius: 50%;
|
|
21037
|
+
background-color: var(--voice-guidance-dot-color, #FFFFFF);
|
|
21038
|
+
transition: transform 200ms ease-in-out;
|
|
21039
|
+
transform: translateY(0);
|
|
21040
|
+
}
|
|
21041
|
+
|
|
21042
|
+
.dot.active {
|
|
21043
|
+
transform: translateY(-20px);
|
|
21044
|
+
}
|
|
21045
|
+
`
|
|
21046
|
+
];
|
|
21047
|
+
Ee([
|
|
21048
|
+
a()
|
|
21049
|
+
], K.prototype, "color", 2);
|
|
21050
|
+
Ee([
|
|
21051
|
+
a({ attribute: "dot-color" })
|
|
21052
|
+
], K.prototype, "dotColor", 2);
|
|
21053
|
+
Ee([
|
|
21054
|
+
v()
|
|
21055
|
+
], K.prototype, "activeDots", 2);
|
|
21056
|
+
Ee([
|
|
21057
|
+
v()
|
|
21058
|
+
], K.prototype, "animationTimeouts", 2);
|
|
21059
|
+
customElements.get("obi-overview-visual") || customElements.define("obi-overview-visual", K);
|
|
21060
|
+
var xo = Object.defineProperty, wo = Object.getOwnPropertyDescriptor, Te = (s2, e2, i3, o2) => {
|
|
21061
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? wo(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
21062
|
+
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
21063
|
+
return o2 && t2 && xo(e2, i3, t2), t2;
|
|
21064
|
+
};
|
|
21065
|
+
class ce extends i$1 {
|
|
21066
|
+
constructor() {
|
|
21067
|
+
super(...arguments), this.color = "#9500FF", this.loading = false;
|
|
21068
|
+
}
|
|
21069
|
+
render() {
|
|
21070
|
+
return x`
|
|
21071
|
+
<obi-base-onboarding-content
|
|
21072
|
+
title="Welcome to the tour"
|
|
21073
|
+
subtitle="Let's get started!"
|
|
21074
|
+
agent-name=${this.session.agentName || "Obi"}
|
|
21075
|
+
color=${this.color}
|
|
21076
|
+
disabled
|
|
21077
|
+
>
|
|
21078
|
+
<obi-overview-visual
|
|
21079
|
+
slot="center-visual"
|
|
21080
|
+
color=${this.color}
|
|
21081
|
+
></obi-overview-visual>
|
|
21082
|
+
|
|
21083
|
+
<div slot="description">
|
|
21084
|
+
${this.session.agentName || "Obi"} will guide you through the tour by talking with you.
|
|
21085
|
+
</div>
|
|
21086
|
+
</obi-base-onboarding-content>
|
|
21087
|
+
`;
|
|
21088
|
+
}
|
|
21089
|
+
}
|
|
21090
|
+
ce.styles = [m];
|
|
21091
|
+
Te([
|
|
21092
|
+
a({ type: Object })
|
|
21093
|
+
], ce.prototype, "session", 2);
|
|
21094
|
+
Te([
|
|
21095
|
+
a()
|
|
21096
|
+
], ce.prototype, "color", 2);
|
|
21097
|
+
Te([
|
|
21098
|
+
a({ type: Boolean, reflect: true })
|
|
21099
|
+
], ce.prototype, "loading", 2);
|
|
21100
|
+
customElements.get("obi-overview-content") || customElements.define("obi-overview-content", ce);
|
|
21101
|
+
var $o = Object.defineProperty, _o = Object.getOwnPropertyDescriptor, Q = (s2, e2, i3, o2) => {
|
|
21102
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? _o(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
21103
|
+
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
21104
|
+
return o2 && t2 && $o(e2, i3, t2), t2;
|
|
21105
|
+
};
|
|
21106
|
+
class j extends i$1 {
|
|
21107
|
+
constructor() {
|
|
21108
|
+
super(...arguments), this.open = false, this.color = "#9500FF", this.disabled = false, this.loading = false, this.closeDisabled = false;
|
|
21109
|
+
}
|
|
21110
|
+
render() {
|
|
21111
|
+
return x`
|
|
21112
|
+
<obi-base-onboarding-modal
|
|
21113
|
+
.session=${this.session}
|
|
21114
|
+
?open=${this.open}
|
|
21115
|
+
?disabled=${this.disabled}
|
|
21116
|
+
?close-disabled=${this.closeDisabled || this.loading}
|
|
21117
|
+
>
|
|
21118
|
+
<obi-overview-content
|
|
21119
|
+
.session=${this.session}
|
|
21120
|
+
.color=${this.color}
|
|
21121
|
+
.loading=${this.loading}
|
|
21122
|
+
.disabled=${this.disabled}
|
|
21123
|
+
></obi-overview-content>
|
|
21124
|
+
</obi-base-onboarding-modal>
|
|
21125
|
+
`;
|
|
21126
|
+
}
|
|
21127
|
+
}
|
|
21128
|
+
j.styles = [m];
|
|
21129
|
+
Q([
|
|
20927
21130
|
a({ type: Object })
|
|
20928
21131
|
], j.prototype, "session", 2);
|
|
20929
|
-
|
|
21132
|
+
Q([
|
|
20930
21133
|
a({ type: Boolean, reflect: true })
|
|
20931
21134
|
], j.prototype, "open", 2);
|
|
20932
|
-
|
|
21135
|
+
Q([
|
|
20933
21136
|
a()
|
|
20934
21137
|
], j.prototype, "color", 2);
|
|
20935
|
-
|
|
21138
|
+
Q([
|
|
20936
21139
|
a({ type: Boolean, reflect: true })
|
|
20937
21140
|
], j.prototype, "disabled", 2);
|
|
20938
|
-
|
|
21141
|
+
Q([
|
|
20939
21142
|
a({ type: Boolean, reflect: true })
|
|
20940
21143
|
], j.prototype, "loading", 2);
|
|
20941
|
-
|
|
21144
|
+
Q([
|
|
20942
21145
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
20943
21146
|
], j.prototype, "closeDisabled", 2);
|
|
20944
|
-
customElements.get("obi-
|
|
21147
|
+
customElements.get("obi-overview-modal") || customElements.define("obi-overview-modal", j);
|
|
20945
21148
|
var __defProp = Object.defineProperty;
|
|
20946
21149
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
20947
21150
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -20968,6 +21171,7 @@ class ObiWidget extends i$1 {
|
|
|
20968
21171
|
this.showSessionStartModal = false;
|
|
20969
21172
|
this.showShareMicModal = false;
|
|
20970
21173
|
this.micShareEnabled = false;
|
|
21174
|
+
this.showOverviewModal = false;
|
|
20971
21175
|
this.showVoiceGuidanceModal = false;
|
|
20972
21176
|
this.voiceGuidanceEnabled = false;
|
|
20973
21177
|
this.selectedCourse = null;
|
|
@@ -21085,6 +21289,7 @@ class ObiWidget extends i$1 {
|
|
|
21085
21289
|
this.showCourseModal = false;
|
|
21086
21290
|
this.showSessionStartModal = false;
|
|
21087
21291
|
this.showShareMicModal = false;
|
|
21292
|
+
this.showOverviewModal = false;
|
|
21088
21293
|
};
|
|
21089
21294
|
this.handleCourseSelectEvent = (event) => {
|
|
21090
21295
|
const customEvent = event;
|
|
@@ -21092,6 +21297,7 @@ class ObiWidget extends i$1 {
|
|
|
21092
21297
|
this.showCourseModal = false;
|
|
21093
21298
|
this.showSessionStartModal = true;
|
|
21094
21299
|
this.showShareMicModal = false;
|
|
21300
|
+
this.showOverviewModal = false;
|
|
21095
21301
|
this.micShareEnabled = false;
|
|
21096
21302
|
this.showVoiceGuidanceModal = false;
|
|
21097
21303
|
this.voiceGuidanceEnabled = false;
|
|
@@ -21264,6 +21470,10 @@ class ObiWidget extends i$1 {
|
|
|
21264
21470
|
sessionId
|
|
21265
21471
|
});
|
|
21266
21472
|
};
|
|
21473
|
+
this.handleOverviewModalClose = () => {
|
|
21474
|
+
this.showOverviewModal = false;
|
|
21475
|
+
this.handleCloseModals();
|
|
21476
|
+
};
|
|
21267
21477
|
this.handleShareMicModalContinue = async (event) => {
|
|
21268
21478
|
const { session, micPermissionGranted } = event.detail;
|
|
21269
21479
|
console.log("[ShareMicModal] Continue button clicked", {
|
|
@@ -21285,7 +21495,6 @@ class ObiWidget extends i$1 {
|
|
|
21285
21495
|
}
|
|
21286
21496
|
await this.activeSession.shareMic();
|
|
21287
21497
|
this.showShareMicModal = false;
|
|
21288
|
-
this.showVoiceGuidanceModal = true;
|
|
21289
21498
|
};
|
|
21290
21499
|
this.handleShareMicModalClose = () => {
|
|
21291
21500
|
console.log("[ShareMicModal] Close button clicked", {
|
|
@@ -21307,6 +21516,8 @@ class ObiWidget extends i$1 {
|
|
|
21307
21516
|
);
|
|
21308
21517
|
await this.activeSession?.promptContinue();
|
|
21309
21518
|
this.showVoiceGuidanceModal = false;
|
|
21519
|
+
this.voiceGuidanceEnabled = false;
|
|
21520
|
+
this.showOverviewModal = true;
|
|
21310
21521
|
};
|
|
21311
21522
|
this.handleVoiceGuidanceModalClose = () => {
|
|
21312
21523
|
console.log("[obi] voice guidance modal close", {
|
|
@@ -21533,27 +21744,21 @@ class ObiWidget extends i$1 {
|
|
|
21533
21744
|
onError();
|
|
21534
21745
|
}
|
|
21535
21746
|
});
|
|
21536
|
-
session.on("micShareRequested", () => {
|
|
21537
|
-
this.micShareEnabled = true;
|
|
21538
|
-
});
|
|
21539
21747
|
session.on("micCheck", (permissionGranted) => {
|
|
21540
|
-
|
|
21541
|
-
|
|
21542
|
-
this.showShareMicModal = true;
|
|
21543
|
-
} else {
|
|
21748
|
+
this.showOverviewModal = false;
|
|
21749
|
+
if (!permissionGranted) {
|
|
21544
21750
|
this.showShareMicModal = true;
|
|
21545
|
-
this.showVoiceGuidanceModal = false;
|
|
21546
21751
|
}
|
|
21547
21752
|
});
|
|
21753
|
+
session.on("micShareRequested", () => {
|
|
21754
|
+
this.micShareEnabled = true;
|
|
21755
|
+
});
|
|
21756
|
+
session.on("micShared", () => {
|
|
21757
|
+
this.showOverviewModal = false;
|
|
21758
|
+
});
|
|
21548
21759
|
session.on("promptUser", () => {
|
|
21549
21760
|
this.voiceGuidanceEnabled = true;
|
|
21550
21761
|
});
|
|
21551
|
-
session.on("micCheck", (permissionGranted) => {
|
|
21552
|
-
if (permissionGranted) {
|
|
21553
|
-
this.showVoiceGuidanceModal = true;
|
|
21554
|
-
this.showShareMicModal = false;
|
|
21555
|
-
}
|
|
21556
|
-
});
|
|
21557
21762
|
}
|
|
21558
21763
|
/**
|
|
21559
21764
|
* Handle session creation failure
|
|
@@ -21884,38 +22089,52 @@ class ObiWidget extends i$1 {
|
|
|
21884
22089
|
>
|
|
21885
22090
|
</obi-session-start-modal>
|
|
21886
22091
|
` : E$1}
|
|
21887
|
-
${this.
|
|
21888
|
-
<obi-
|
|
22092
|
+
${this.showVoiceGuidanceModal ? x`
|
|
22093
|
+
<obi-voice-guidance-modal
|
|
21889
22094
|
.session=${this.selectedCourse ? {
|
|
21890
22095
|
id: this.selectedCourse.id,
|
|
21891
22096
|
name: this.selectedCourse.name,
|
|
21892
22097
|
description: this.selectedCourse.description,
|
|
21893
22098
|
agentName: this.databaseConfig?.agentName
|
|
21894
22099
|
} : {}}
|
|
21895
|
-
?open=${this.
|
|
21896
|
-
?disabled=${!this.
|
|
22100
|
+
?open=${this.showVoiceGuidanceModal}
|
|
22101
|
+
?disabled=${!this.voiceGuidanceEnabled}
|
|
21897
22102
|
color=${this.primaryColor}
|
|
21898
|
-
@obi-continue=${this.
|
|
21899
|
-
@obi-close=${this.
|
|
22103
|
+
@obi-continue=${this.handleVoiceGuidanceModalContinue}
|
|
22104
|
+
@obi-close=${this.handleVoiceGuidanceModalClose}
|
|
21900
22105
|
>
|
|
21901
|
-
</obi-
|
|
22106
|
+
</obi-voice-guidance-modal>
|
|
21902
22107
|
` : E$1}
|
|
21903
|
-
${this.
|
|
21904
|
-
<obi-
|
|
22108
|
+
${this.showOverviewModal ? x`
|
|
22109
|
+
<obi-overview-modal
|
|
21905
22110
|
.session=${this.selectedCourse ? {
|
|
21906
22111
|
id: this.selectedCourse.id,
|
|
21907
22112
|
name: this.selectedCourse.name,
|
|
21908
22113
|
description: this.selectedCourse.description,
|
|
21909
22114
|
agentName: this.databaseConfig?.agentName
|
|
21910
22115
|
} : {}}
|
|
21911
|
-
?open=${this.
|
|
21912
|
-
?disabled=${!this.voiceGuidanceEnabled}
|
|
22116
|
+
?open=${this.showOverviewModal}
|
|
21913
22117
|
color=${this.primaryColor}
|
|
21914
|
-
@obi-
|
|
21915
|
-
@obi-close=${this.handleVoiceGuidanceModalClose}
|
|
22118
|
+
@obi-close=${this.handleOverviewModalClose}
|
|
21916
22119
|
>
|
|
21917
22120
|
</obi-voice-guidance-modal>
|
|
21918
22121
|
` : E$1}
|
|
22122
|
+
${this.showShareMicModal ? x`
|
|
22123
|
+
<obi-share-mic-modal
|
|
22124
|
+
.session=${this.selectedCourse ? {
|
|
22125
|
+
id: this.selectedCourse.id,
|
|
22126
|
+
name: this.selectedCourse.name,
|
|
22127
|
+
description: this.selectedCourse.description,
|
|
22128
|
+
agentName: this.databaseConfig?.agentName
|
|
22129
|
+
} : {}}
|
|
22130
|
+
?open=${this.showShareMicModal}
|
|
22131
|
+
?disabled=${!this.micShareEnabled}
|
|
22132
|
+
color=${this.primaryColor}
|
|
22133
|
+
@obi-continue=${this.handleShareMicModalContinue}
|
|
22134
|
+
@obi-close=${this.handleShareMicModalClose}
|
|
22135
|
+
>
|
|
22136
|
+
</obi-share-mic-modal>
|
|
22137
|
+
` : E$1}
|
|
21919
22138
|
`;
|
|
21920
22139
|
}
|
|
21921
22140
|
}
|
|
@@ -22105,6 +22324,9 @@ __decorateClass([
|
|
|
22105
22324
|
__decorateClass([
|
|
22106
22325
|
r$1()
|
|
22107
22326
|
], ObiWidget.prototype, "micShareEnabled", 2);
|
|
22327
|
+
__decorateClass([
|
|
22328
|
+
r$1()
|
|
22329
|
+
], ObiWidget.prototype, "showOverviewModal", 2);
|
|
22108
22330
|
__decorateClass([
|
|
22109
22331
|
r$1()
|
|
22110
22332
|
], ObiWidget.prototype, "showVoiceGuidanceModal", 2);
|
|
@@ -22165,4 +22387,4 @@ export {
|
|
|
22165
22387
|
withSentryAsyncHandler as w,
|
|
22166
22388
|
x
|
|
22167
22389
|
};
|
|
22168
|
-
//# sourceMappingURL=obi-widget-
|
|
22390
|
+
//# sourceMappingURL=obi-widget-315605ed.js.map
|