obi-sdk 0.13.3 → 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-222a1e0d.js → obi-widget-315605ed.js} +723 -464
- package/dist/modular/chunks/obi-widget-315605ed.js.map +1 -0
- 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 +5065 -4830
- 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 +3 -2
- package/dist/modular/chunks/index-dcd6962d.js +0 -6
- package/dist/modular/chunks/index-dcd6962d.js.map +0 -1
- package/dist/modular/chunks/obi-widget-222a1e0d.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);
|
|
@@ -747,6 +747,7 @@ class ObiSession {
|
|
|
747
747
|
}).with("share_screen", () => {
|
|
748
748
|
this.emitter.emit("screenShareRequested");
|
|
749
749
|
}).with("prompt_user", () => {
|
|
750
|
+
console.log("[obi] prompt user received");
|
|
750
751
|
this.emitter.emit("promptUser");
|
|
751
752
|
}).with("capture_page_html", () => {
|
|
752
753
|
this.emitter.emit("capturePageHTML");
|
|
@@ -779,6 +780,13 @@ class ObiSession {
|
|
|
779
780
|
});
|
|
780
781
|
});
|
|
781
782
|
});
|
|
783
|
+
this.room.localParticipant.registerRpcMethod("mic_check", async (data) => {
|
|
784
|
+
if (await this.checkMic()) {
|
|
785
|
+
return "ok";
|
|
786
|
+
} else {
|
|
787
|
+
return "error";
|
|
788
|
+
}
|
|
789
|
+
});
|
|
782
790
|
}
|
|
783
791
|
/**
|
|
784
792
|
* Connect to the LiveKit room.
|
|
@@ -854,6 +862,20 @@ class ObiSession {
|
|
|
854
862
|
getCurrentState() {
|
|
855
863
|
return this.currentState;
|
|
856
864
|
}
|
|
865
|
+
async checkMic() {
|
|
866
|
+
let permissionGranted = false;
|
|
867
|
+
try {
|
|
868
|
+
const permStatus = await navigator.permissions.query({ name: "microphone" });
|
|
869
|
+
permissionGranted = permStatus.state === "granted";
|
|
870
|
+
} catch (error) {
|
|
871
|
+
console.error("[obi] error checking microphone permission:", error);
|
|
872
|
+
}
|
|
873
|
+
if (permissionGranted) {
|
|
874
|
+
await this.shareMic();
|
|
875
|
+
}
|
|
876
|
+
this.emitter.emit("micCheck", permissionGranted);
|
|
877
|
+
return permissionGranted;
|
|
878
|
+
}
|
|
857
879
|
async requestMicrophone() {
|
|
858
880
|
try {
|
|
859
881
|
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
|
|
@@ -8887,7 +8909,7 @@ var CanvasRenderer = (
|
|
|
8887
8909
|
};
|
|
8888
8910
|
CanvasRenderer2.prototype.renderStackContent = function(stack) {
|
|
8889
8911
|
return __awaiter(this, void 0, void 0, function() {
|
|
8890
|
-
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;
|
|
8891
8913
|
return __generator(this, function(_p) {
|
|
8892
8914
|
switch (_p.label) {
|
|
8893
8915
|
case 0:
|
|
@@ -8988,12 +9010,12 @@ var CanvasRenderer = (
|
|
|
8988
9010
|
_k++;
|
|
8989
9011
|
return [3, 23];
|
|
8990
9012
|
case 26:
|
|
8991
|
-
_m = 0,
|
|
9013
|
+
_m = 0, _o2 = stack.positiveZIndex;
|
|
8992
9014
|
_p.label = 27;
|
|
8993
9015
|
case 27:
|
|
8994
|
-
if (!(_m <
|
|
9016
|
+
if (!(_m < _o2.length))
|
|
8995
9017
|
return [3, 30];
|
|
8996
|
-
child =
|
|
9018
|
+
child = _o2[_m];
|
|
8997
9019
|
return [4, this.renderStack(child)];
|
|
8998
9020
|
case 28:
|
|
8999
9021
|
_p.sent();
|
|
@@ -9643,7 +9665,7 @@ if (typeof window !== "undefined") {
|
|
|
9643
9665
|
var renderElement = function(element, opts) {
|
|
9644
9666
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
9645
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;
|
|
9646
|
-
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;
|
|
9647
9669
|
return __generator(this, function(_u) {
|
|
9648
9670
|
switch (_u.label) {
|
|
9649
9671
|
case 0:
|
|
@@ -9696,7 +9718,7 @@ var renderElement = function(element, opts) {
|
|
|
9696
9718
|
renderOptions = {
|
|
9697
9719
|
canvas: opts.canvas,
|
|
9698
9720
|
backgroundColor: backgroundColor2,
|
|
9699
|
-
scale: (
|
|
9721
|
+
scale: (_o2 = (_m = opts.scale) !== null && _m !== void 0 ? _m : defaultView.devicePixelRatio) !== null && _o2 !== void 0 ? _o2 : 1,
|
|
9700
9722
|
x: ((_p = opts.x) !== null && _p !== void 0 ? _p : 0) + left,
|
|
9701
9723
|
y: ((_q = opts.y) !== null && _q !== void 0 ? _q : 0) + top,
|
|
9702
9724
|
width: (_r = opts.width) !== null && _r !== void 0 ? _r : Math.ceil(width),
|
|
@@ -10007,8 +10029,8 @@ let y$1 = class y extends HTMLElement {
|
|
|
10007
10029
|
}
|
|
10008
10030
|
};
|
|
10009
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");
|
|
10010
|
-
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}*(?:[^
|
|
10011
|
-
\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);
|
|
10012
10034
|
function P$1(t2, i3) {
|
|
10013
10035
|
if (!a$1(t2) || !t2.hasOwnProperty("raw"))
|
|
10014
10036
|
throw Error("invalid template strings array");
|
|
@@ -10021,8 +10043,8 @@ const V$1 = (t2, i3) => {
|
|
|
10021
10043
|
const s3 = t2[i4];
|
|
10022
10044
|
let a2, u2, d2 = -1, y3 = 0;
|
|
10023
10045
|
for (; y3 < s3.length && (c2.lastIndex = y3, u2 = c2.exec(s3), null !== u2); )
|
|
10024
|
-
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
|
|
10025
|
-
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("/>") ? " " : "";
|
|
10026
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);
|
|
10027
10049
|
}
|
|
10028
10050
|
return [P$1(t2, l2 + (t2[s2] || "<?>") + (2 === i3 ? "</svg>" : 3 === i3 ? "</math>" : "")), o2];
|
|
@@ -17814,19 +17836,19 @@ if (!customElements.get("obi-searching-loader")) {
|
|
|
17814
17836
|
customElements.define("obi-searching-loader", SearchingLoader);
|
|
17815
17837
|
}
|
|
17816
17838
|
const searchingLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, SearchingLoader }, Symbol.toStringTag, { value: "Module" }));
|
|
17817
|
-
const
|
|
17818
|
-
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 {
|
|
17819
17841
|
constructor(e2, i3, o2) {
|
|
17820
|
-
if (this._$cssResult$ = true, o2 !==
|
|
17842
|
+
if (this._$cssResult$ = true, o2 !== qe)
|
|
17821
17843
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
17822
17844
|
this.cssText = e2, this.t = i3;
|
|
17823
17845
|
}
|
|
17824
17846
|
get styleSheet() {
|
|
17825
17847
|
let e2 = this.o;
|
|
17826
17848
|
const i3 = this.t;
|
|
17827
|
-
if (
|
|
17849
|
+
if (Ae && e2 === void 0) {
|
|
17828
17850
|
const o2 = i3 !== void 0 && i3.length === 1;
|
|
17829
|
-
o2 && (e2 =
|
|
17851
|
+
o2 && (e2 = Ne.get(i3)), e2 === void 0 && ((this.o = e2 = new CSSStyleSheet()).replaceSync(this.cssText), o2 && Ne.set(i3, e2));
|
|
17830
17852
|
}
|
|
17831
17853
|
return e2;
|
|
17832
17854
|
}
|
|
@@ -17834,24 +17856,24 @@ let Xe = class {
|
|
|
17834
17856
|
return this.cssText;
|
|
17835
17857
|
}
|
|
17836
17858
|
};
|
|
17837
|
-
const
|
|
17838
|
-
if (
|
|
17859
|
+
const ot = (s2) => new tt(typeof s2 == "string" ? s2 : s2 + "", void 0, qe), it = (s2, e2) => {
|
|
17860
|
+
if (Ae)
|
|
17839
17861
|
s2.adoptedStyleSheets = e2.map((i3) => i3 instanceof CSSStyleSheet ? i3 : i3.styleSheet);
|
|
17840
17862
|
else
|
|
17841
17863
|
for (const i3 of e2) {
|
|
17842
|
-
const o2 = document.createElement("style"), t2 =
|
|
17864
|
+
const o2 = document.createElement("style"), t2 = de.litNonce;
|
|
17843
17865
|
t2 !== void 0 && o2.setAttribute("nonce", t2), o2.textContent = i3.cssText, s2.appendChild(o2);
|
|
17844
17866
|
}
|
|
17845
|
-
},
|
|
17867
|
+
}, ke = Ae ? (s2) => s2 : (s2) => s2 instanceof CSSStyleSheet ? ((e2) => {
|
|
17846
17868
|
let i3 = "";
|
|
17847
17869
|
for (const o2 of e2.cssRules)
|
|
17848
17870
|
i3 += o2.cssText;
|
|
17849
|
-
return
|
|
17871
|
+
return ot(i3);
|
|
17850
17872
|
})(s2) : s2;
|
|
17851
|
-
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) {
|
|
17852
17874
|
switch (e2) {
|
|
17853
17875
|
case Boolean:
|
|
17854
|
-
s2 = s2 ?
|
|
17876
|
+
s2 = s2 ? dt : null;
|
|
17855
17877
|
break;
|
|
17856
17878
|
case Object:
|
|
17857
17879
|
case Array:
|
|
@@ -17876,46 +17898,46 @@ const { is: Ke, defineProperty: Qe, getOwnPropertyDescriptor: et, getOwnProperty
|
|
|
17876
17898
|
}
|
|
17877
17899
|
}
|
|
17878
17900
|
return i3;
|
|
17879
|
-
} },
|
|
17901
|
+
} }, Pe = (s2, e2) => !st(s2, e2), Be = { attribute: true, type: String, converter: he, reflect: false, useDefault: false, hasChanged: Pe };
|
|
17880
17902
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
17881
|
-
class
|
|
17903
|
+
class ee extends HTMLElement {
|
|
17882
17904
|
static addInitializer(e2) {
|
|
17883
17905
|
this._$Ei(), (this.l ?? (this.l = [])).push(e2);
|
|
17884
17906
|
}
|
|
17885
17907
|
static get observedAttributes() {
|
|
17886
17908
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
17887
17909
|
}
|
|
17888
|
-
static createProperty(e2, i3 =
|
|
17910
|
+
static createProperty(e2, i3 = Be) {
|
|
17889
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) {
|
|
17890
17912
|
const o2 = Symbol(), t2 = this.getPropertyDescriptor(e2, o2, i3);
|
|
17891
|
-
t2 !== void 0 &&
|
|
17913
|
+
t2 !== void 0 && rt(this.prototype, e2, t2);
|
|
17892
17914
|
}
|
|
17893
17915
|
}
|
|
17894
17916
|
static getPropertyDescriptor(e2, i3, o2) {
|
|
17895
|
-
const { get: t2, set: r2 } =
|
|
17917
|
+
const { get: t2, set: r2 } = nt(this.prototype, e2) ?? { get() {
|
|
17896
17918
|
return this[i3];
|
|
17897
17919
|
}, set(n3) {
|
|
17898
17920
|
this[i3] = n3;
|
|
17899
17921
|
} };
|
|
17900
17922
|
return { get: t2, set(n3) {
|
|
17901
|
-
const
|
|
17902
|
-
r2?.call(this, n3), this.requestUpdate(e2,
|
|
17923
|
+
const d2 = t2?.call(this);
|
|
17924
|
+
r2?.call(this, n3), this.requestUpdate(e2, d2, o2);
|
|
17903
17925
|
}, configurable: true, enumerable: true };
|
|
17904
17926
|
}
|
|
17905
17927
|
static getPropertyOptions(e2) {
|
|
17906
|
-
return this.elementProperties.get(e2) ??
|
|
17928
|
+
return this.elementProperties.get(e2) ?? Be;
|
|
17907
17929
|
}
|
|
17908
17930
|
static _$Ei() {
|
|
17909
|
-
if (this.hasOwnProperty(
|
|
17931
|
+
if (this.hasOwnProperty(oe("elementProperties")))
|
|
17910
17932
|
return;
|
|
17911
|
-
const e2 =
|
|
17933
|
+
const e2 = ct(this);
|
|
17912
17934
|
e2.finalize(), e2.l !== void 0 && (this.l = [...e2.l]), this.elementProperties = new Map(e2.elementProperties);
|
|
17913
17935
|
}
|
|
17914
17936
|
static finalize() {
|
|
17915
|
-
if (this.hasOwnProperty(
|
|
17937
|
+
if (this.hasOwnProperty(oe("finalized")))
|
|
17916
17938
|
return;
|
|
17917
|
-
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(
|
|
17918
|
-
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)];
|
|
17919
17941
|
for (const t2 of o2)
|
|
17920
17942
|
this.createProperty(t2, i3[t2]);
|
|
17921
17943
|
}
|
|
@@ -17938,9 +17960,9 @@ class J extends HTMLElement {
|
|
|
17938
17960
|
if (Array.isArray(e2)) {
|
|
17939
17961
|
const o2 = new Set(e2.flat(1 / 0).reverse());
|
|
17940
17962
|
for (const t2 of o2)
|
|
17941
|
-
i3.unshift(
|
|
17963
|
+
i3.unshift(ke(t2));
|
|
17942
17964
|
} else
|
|
17943
|
-
e2 !== void 0 && i3.push(
|
|
17965
|
+
e2 !== void 0 && i3.push(ke(e2));
|
|
17944
17966
|
return i3;
|
|
17945
17967
|
}
|
|
17946
17968
|
static _$Eu(e2, i3) {
|
|
@@ -17967,7 +17989,7 @@ class J extends HTMLElement {
|
|
|
17967
17989
|
}
|
|
17968
17990
|
createRenderRoot() {
|
|
17969
17991
|
const e2 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
17970
|
-
return
|
|
17992
|
+
return it(e2, this.constructor.elementStyles), e2;
|
|
17971
17993
|
}
|
|
17972
17994
|
connectedCallback() {
|
|
17973
17995
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach((e2) => e2.hostConnected?.());
|
|
@@ -17983,21 +18005,21 @@ class J extends HTMLElement {
|
|
|
17983
18005
|
_$ET(e2, i3) {
|
|
17984
18006
|
const o2 = this.constructor.elementProperties.get(e2), t2 = this.constructor._$Eu(e2, o2);
|
|
17985
18007
|
if (t2 !== void 0 && o2.reflect === true) {
|
|
17986
|
-
const r2 = (o2.converter?.toAttribute !== void 0 ? o2.converter :
|
|
18008
|
+
const r2 = (o2.converter?.toAttribute !== void 0 ? o2.converter : he).toAttribute(i3, o2.type);
|
|
17987
18009
|
this._$Em = e2, r2 == null ? this.removeAttribute(t2) : this.setAttribute(t2, r2), this._$Em = null;
|
|
17988
18010
|
}
|
|
17989
18011
|
}
|
|
17990
18012
|
_$AK(e2, i3) {
|
|
17991
18013
|
const o2 = this.constructor, t2 = o2._$Eh.get(e2);
|
|
17992
18014
|
if (t2 !== void 0 && this._$Em !== t2) {
|
|
17993
|
-
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;
|
|
17994
18016
|
this._$Em = t2, this[t2] = n3.fromAttribute(i3, r2.type) ?? this._$Ej?.get(t2) ?? null, this._$Em = null;
|
|
17995
18017
|
}
|
|
17996
18018
|
}
|
|
17997
18019
|
requestUpdate(e2, i3, o2) {
|
|
17998
18020
|
if (e2 !== void 0) {
|
|
17999
18021
|
const t2 = this.constructor, r2 = this[e2];
|
|
18000
|
-
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))))
|
|
18001
18023
|
return;
|
|
18002
18024
|
this.C(e2, i3, o2);
|
|
18003
18025
|
}
|
|
@@ -18031,8 +18053,8 @@ class J extends HTMLElement {
|
|
|
18031
18053
|
const o2 = this.constructor.elementProperties;
|
|
18032
18054
|
if (o2.size > 0)
|
|
18033
18055
|
for (const [t2, r2] of o2) {
|
|
18034
|
-
const { wrapped: n3 } = r2,
|
|
18035
|
-
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);
|
|
18036
18058
|
}
|
|
18037
18059
|
}
|
|
18038
18060
|
let e2 = false;
|
|
@@ -18069,30 +18091,30 @@ class J extends HTMLElement {
|
|
|
18069
18091
|
firstUpdated(e2) {
|
|
18070
18092
|
}
|
|
18071
18093
|
}
|
|
18072
|
-
|
|
18073
|
-
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) => {
|
|
18074
18096
|
const { kind: o2, metadata: t2 } = i3;
|
|
18075
18097
|
let r2 = globalThis.litPropertyMetadata.get(t2);
|
|
18076
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") {
|
|
18077
18099
|
const { name: n3 } = i3;
|
|
18078
|
-
return { set(
|
|
18100
|
+
return { set(d2) {
|
|
18079
18101
|
const l2 = e2.get.call(this);
|
|
18080
|
-
e2.set.call(this,
|
|
18081
|
-
}, init(
|
|
18082
|
-
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;
|
|
18083
18105
|
} };
|
|
18084
18106
|
}
|
|
18085
18107
|
if (o2 === "setter") {
|
|
18086
18108
|
const { name: n3 } = i3;
|
|
18087
|
-
return function(
|
|
18109
|
+
return function(d2) {
|
|
18088
18110
|
const l2 = this[n3];
|
|
18089
|
-
e2.call(this,
|
|
18111
|
+
e2.call(this, d2), this.requestUpdate(n3, l2, s2);
|
|
18090
18112
|
};
|
|
18091
18113
|
}
|
|
18092
18114
|
throw Error("Unsupported decorator location: " + o2);
|
|
18093
18115
|
};
|
|
18094
18116
|
function a(s2) {
|
|
18095
|
-
return (e2, i3) => typeof i3 == "object" ?
|
|
18117
|
+
return (e2, i3) => typeof i3 == "object" ? ut(s2, e2, i3) : ((o2, t2, r2) => {
|
|
18096
18118
|
const n3 = t2.hasOwnProperty(r2);
|
|
18097
18119
|
return t2.constructor.createProperty(r2, o2), n3 ? Object.getOwnPropertyDescriptor(t2, r2) : void 0;
|
|
18098
18120
|
})(s2, e2, i3);
|
|
@@ -18100,12 +18122,12 @@ function a(s2) {
|
|
|
18100
18122
|
function v(s2) {
|
|
18101
18123
|
return a({ ...s2, state: true, attribute: false });
|
|
18102
18124
|
}
|
|
18103
|
-
const
|
|
18104
|
-
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) {
|
|
18105
18127
|
return (i3, o2, t2) => {
|
|
18106
18128
|
const r2 = (n3) => n3.renderRoot?.querySelector(s2) ?? null;
|
|
18107
18129
|
if (e2) {
|
|
18108
|
-
const { get: n3, set:
|
|
18130
|
+
const { get: n3, set: d2 } = typeof o2 == "object" ? i3 : t2 ?? (() => {
|
|
18109
18131
|
const l2 = Symbol();
|
|
18110
18132
|
return { get() {
|
|
18111
18133
|
return this[l2];
|
|
@@ -18113,67 +18135,67 @@ function lt(s2, e2) {
|
|
|
18113
18135
|
this[l2] = u2;
|
|
18114
18136
|
} };
|
|
18115
18137
|
})();
|
|
18116
|
-
return
|
|
18138
|
+
return Le(i3, o2, { get() {
|
|
18117
18139
|
let l2 = n3.call(this);
|
|
18118
|
-
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;
|
|
18119
18141
|
} });
|
|
18120
18142
|
}
|
|
18121
|
-
return
|
|
18143
|
+
return Le(i3, o2, { get() {
|
|
18122
18144
|
return r2(this);
|
|
18123
18145
|
} });
|
|
18124
18146
|
};
|
|
18125
18147
|
}
|
|
18126
|
-
const
|
|
18127
|
-
\f\r]`,
|
|
18128
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
18129
|
-
function
|
|
18130
|
-
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"))
|
|
18131
18153
|
throw Error("invalid template strings array");
|
|
18132
|
-
return
|
|
18154
|
+
return Me !== void 0 ? Me.createHTML(e2) : e2;
|
|
18133
18155
|
}
|
|
18134
|
-
const
|
|
18156
|
+
const ft = (s2, e2) => {
|
|
18135
18157
|
const i3 = s2.length - 1, o2 = [];
|
|
18136
|
-
let t2, r2 = e2 === 2 ? "<svg>" : e2 === 3 ? "<math>" : "", n3 =
|
|
18137
|
-
for (let
|
|
18138
|
-
const l2 = s2[
|
|
18139
|
-
let u2,
|
|
18140
|
-
for (;
|
|
18141
|
-
|
|
18142
|
-
const x2 = n3 ===
|
|
18143
|
-
r2 += n3 ===
|
|
18144
|
-
}
|
|
18145
|
-
return [
|
|
18146
|
-
};
|
|
18147
|
-
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 {
|
|
18148
18170
|
constructor({ strings: e2, _$litType$: i3 }, o2) {
|
|
18149
18171
|
let t2;
|
|
18150
18172
|
this.parts = [];
|
|
18151
18173
|
let r2 = 0, n3 = 0;
|
|
18152
|
-
const
|
|
18153
|
-
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) {
|
|
18154
18176
|
const p2 = this.el.content.firstChild;
|
|
18155
18177
|
p2.replaceWith(...p2.childNodes);
|
|
18156
18178
|
}
|
|
18157
|
-
for (; (t2 =
|
|
18179
|
+
for (; (t2 = N2.nextNode()) !== null && l2.length < d2; ) {
|
|
18158
18180
|
if (t2.nodeType === 1) {
|
|
18159
18181
|
if (t2.hasAttributes())
|
|
18160
18182
|
for (const p2 of t2.getAttributeNames())
|
|
18161
|
-
if (p2.endsWith(
|
|
18162
|
-
const
|
|
18163
|
-
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);
|
|
18164
18186
|
} else
|
|
18165
18187
|
p2.startsWith(E) && (l2.push({ type: 6, index: r2 }), t2.removeAttribute(p2));
|
|
18166
|
-
if (
|
|
18167
|
-
const p2 = t2.textContent.split(E),
|
|
18168
|
-
if (
|
|
18169
|
-
t2.textContent =
|
|
18170
|
-
for (let x2 = 0; x2 <
|
|
18171
|
-
t2.append(p2[x2],
|
|
18172
|
-
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());
|
|
18173
18195
|
}
|
|
18174
18196
|
}
|
|
18175
18197
|
} else if (t2.nodeType === 8)
|
|
18176
|
-
if (t2.data ===
|
|
18198
|
+
if (t2.data === Ye)
|
|
18177
18199
|
l2.push({ type: 2, index: r2 });
|
|
18178
18200
|
else {
|
|
18179
18201
|
let p2 = -1;
|
|
@@ -18188,14 +18210,14 @@ class oe {
|
|
|
18188
18210
|
return o2.innerHTML = e2, o2;
|
|
18189
18211
|
}
|
|
18190
18212
|
}
|
|
18191
|
-
function
|
|
18192
|
-
if (e2 ===
|
|
18213
|
+
function U(s2, e2, i3 = s2, o2) {
|
|
18214
|
+
if (e2 === R2)
|
|
18193
18215
|
return e2;
|
|
18194
18216
|
let t2 = o2 !== void 0 ? i3._$Co?.[o2] : i3._$Cl;
|
|
18195
|
-
const r2 =
|
|
18196
|
-
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;
|
|
18197
18219
|
}
|
|
18198
|
-
class
|
|
18220
|
+
class vt {
|
|
18199
18221
|
constructor(e2, i3) {
|
|
18200
18222
|
this._$AV = [], this._$AN = void 0, this._$AD = e2, this._$AM = i3;
|
|
18201
18223
|
}
|
|
@@ -18207,16 +18229,16 @@ class pt {
|
|
|
18207
18229
|
}
|
|
18208
18230
|
u(e2) {
|
|
18209
18231
|
const { el: { content: i3 }, parts: o2 } = this._$AD, t2 = (e2?.creationScope ?? k2).importNode(i3, true);
|
|
18210
|
-
|
|
18211
|
-
let r2 =
|
|
18232
|
+
N2.currentNode = t2;
|
|
18233
|
+
let r2 = N2.nextNode(), n3 = 0, d2 = 0, l2 = o2[0];
|
|
18212
18234
|
for (; l2 !== void 0; ) {
|
|
18213
18235
|
if (n3 === l2.index) {
|
|
18214
18236
|
let u2;
|
|
18215
|
-
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];
|
|
18216
18238
|
}
|
|
18217
|
-
n3 !== l2?.index && (r2 =
|
|
18239
|
+
n3 !== l2?.index && (r2 = N2.nextNode(), n3++);
|
|
18218
18240
|
}
|
|
18219
|
-
return
|
|
18241
|
+
return N2.currentNode = k2, t2;
|
|
18220
18242
|
}
|
|
18221
18243
|
p(e2) {
|
|
18222
18244
|
let i3 = 0;
|
|
@@ -18224,7 +18246,7 @@ class pt {
|
|
|
18224
18246
|
o2 !== void 0 && (o2.strings !== void 0 ? (o2._$AI(e2, o2, i3), i3 += o2.strings.length - 2) : o2._$AI(e2[i3])), i3++;
|
|
18225
18247
|
}
|
|
18226
18248
|
}
|
|
18227
|
-
class
|
|
18249
|
+
class be {
|
|
18228
18250
|
get _$AU() {
|
|
18229
18251
|
return this._$AM?._$AU ?? this._$Cv;
|
|
18230
18252
|
}
|
|
@@ -18243,7 +18265,7 @@ class de {
|
|
|
18243
18265
|
return this._$AB;
|
|
18244
18266
|
}
|
|
18245
18267
|
_$AI(e2, i3 = this) {
|
|
18246
|
-
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);
|
|
18247
18269
|
}
|
|
18248
18270
|
O(e2) {
|
|
18249
18271
|
return this._$AA.parentNode.insertBefore(e2, this._$AB);
|
|
@@ -18252,27 +18274,27 @@ class de {
|
|
|
18252
18274
|
this._$AH !== e2 && (this._$AR(), this._$AH = this.O(e2));
|
|
18253
18275
|
}
|
|
18254
18276
|
_(e2) {
|
|
18255
|
-
this._$AH !== f2 &&
|
|
18277
|
+
this._$AH !== f2 && se(this._$AH) ? this._$AA.nextSibling.data = e2 : this.T(k2.createTextNode(e2)), this._$AH = e2;
|
|
18256
18278
|
}
|
|
18257
18279
|
$(e2) {
|
|
18258
|
-
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);
|
|
18259
18281
|
if (this._$AH?._$AD === t2)
|
|
18260
18282
|
this._$AH.p(i3);
|
|
18261
18283
|
else {
|
|
18262
|
-
const r2 = new
|
|
18284
|
+
const r2 = new vt(t2, this), n3 = r2.u(this.options);
|
|
18263
18285
|
r2.p(i3), this.T(n3), this._$AH = r2;
|
|
18264
18286
|
}
|
|
18265
18287
|
}
|
|
18266
18288
|
_$AC(e2) {
|
|
18267
|
-
let i3 =
|
|
18268
|
-
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;
|
|
18269
18291
|
}
|
|
18270
18292
|
k(e2) {
|
|
18271
|
-
|
|
18293
|
+
De(this._$AH) || (this._$AH = [], this._$AR());
|
|
18272
18294
|
const i3 = this._$AH;
|
|
18273
18295
|
let o2, t2 = 0;
|
|
18274
18296
|
for (const r2 of e2)
|
|
18275
|
-
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++;
|
|
18276
18298
|
t2 < i3.length && (this._$AR(o2 && o2._$AB.nextSibling, t2), i3.length = t2);
|
|
18277
18299
|
}
|
|
18278
18300
|
_$AR(e2 = this._$AA.nextSibling, i3) {
|
|
@@ -18285,7 +18307,7 @@ class de {
|
|
|
18285
18307
|
this._$AM === void 0 && (this._$Cv = e2, this._$AP?.(e2));
|
|
18286
18308
|
}
|
|
18287
18309
|
}
|
|
18288
|
-
class
|
|
18310
|
+
class ge {
|
|
18289
18311
|
get tagName() {
|
|
18290
18312
|
return this.element.tagName;
|
|
18291
18313
|
}
|
|
@@ -18299,12 +18321,12 @@ class he {
|
|
|
18299
18321
|
const r2 = this.strings;
|
|
18300
18322
|
let n3 = false;
|
|
18301
18323
|
if (r2 === void 0)
|
|
18302
|
-
e2 =
|
|
18324
|
+
e2 = U(this, e2, i3, 0), n3 = !se(e2) || e2 !== this._$AH && e2 !== R2, n3 && (this._$AH = e2);
|
|
18303
18325
|
else {
|
|
18304
|
-
const
|
|
18326
|
+
const d2 = e2;
|
|
18305
18327
|
let l2, u2;
|
|
18306
18328
|
for (e2 = r2[0], l2 = 0; l2 < r2.length - 1; l2++)
|
|
18307
|
-
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;
|
|
18308
18330
|
}
|
|
18309
18331
|
n3 && !t2 && this.j(e2);
|
|
18310
18332
|
}
|
|
@@ -18312,7 +18334,7 @@ class he {
|
|
|
18312
18334
|
e2 === f2 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e2 ?? "");
|
|
18313
18335
|
}
|
|
18314
18336
|
}
|
|
18315
|
-
class
|
|
18337
|
+
class yt extends ge {
|
|
18316
18338
|
constructor() {
|
|
18317
18339
|
super(...arguments), this.type = 3;
|
|
18318
18340
|
}
|
|
@@ -18320,7 +18342,7 @@ class ut extends he {
|
|
|
18320
18342
|
this.element[this.name] = e2 === f2 ? void 0 : e2;
|
|
18321
18343
|
}
|
|
18322
18344
|
}
|
|
18323
|
-
class
|
|
18345
|
+
class xt extends ge {
|
|
18324
18346
|
constructor() {
|
|
18325
18347
|
super(...arguments), this.type = 4;
|
|
18326
18348
|
}
|
|
@@ -18328,12 +18350,12 @@ class bt extends he {
|
|
|
18328
18350
|
this.element.toggleAttribute(this.name, !!e2 && e2 !== f2);
|
|
18329
18351
|
}
|
|
18330
18352
|
}
|
|
18331
|
-
class
|
|
18353
|
+
class wt extends ge {
|
|
18332
18354
|
constructor(e2, i3, o2, t2, r2) {
|
|
18333
18355
|
super(e2, i3, o2, t2, r2), this.type = 5;
|
|
18334
18356
|
}
|
|
18335
18357
|
_$AI(e2, i3 = this) {
|
|
18336
|
-
if ((e2 =
|
|
18358
|
+
if ((e2 = U(this, e2, i3, 0) ?? f2) === R2)
|
|
18337
18359
|
return;
|
|
18338
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);
|
|
18339
18361
|
t2 && this.element.removeEventListener(this.name, this, o2), r2 && this.element.addEventListener(this.name, this, e2), this._$AH = e2;
|
|
@@ -18342,7 +18364,7 @@ class gt extends he {
|
|
|
18342
18364
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e2) : this._$AH.handleEvent(e2);
|
|
18343
18365
|
}
|
|
18344
18366
|
}
|
|
18345
|
-
class
|
|
18367
|
+
class $t {
|
|
18346
18368
|
constructor(e2, i3, o2) {
|
|
18347
18369
|
this.element = e2, this.type = 6, this._$AN = void 0, this._$AM = i3, this.options = o2;
|
|
18348
18370
|
}
|
|
@@ -18350,13 +18372,13 @@ class mt {
|
|
|
18350
18372
|
return this._$AM._$AU;
|
|
18351
18373
|
}
|
|
18352
18374
|
_$AI(e2) {
|
|
18353
|
-
|
|
18375
|
+
U(this, e2);
|
|
18354
18376
|
}
|
|
18355
18377
|
}
|
|
18356
|
-
const
|
|
18357
|
-
|
|
18358
|
-
const
|
|
18359
|
-
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 {
|
|
18360
18382
|
constructor(e2) {
|
|
18361
18383
|
}
|
|
18362
18384
|
get _$AU() {
|
|
@@ -18372,9 +18394,9 @@ class yt {
|
|
|
18372
18394
|
return this.render(...i3);
|
|
18373
18395
|
}
|
|
18374
18396
|
}
|
|
18375
|
-
const
|
|
18397
|
+
const Oe = Ct(class extends Ot {
|
|
18376
18398
|
constructor(s2) {
|
|
18377
|
-
if (super(s2), s2.type !==
|
|
18399
|
+
if (super(s2), s2.type !== Et.ATTRIBUTE || s2.name !== "class" || s2.strings?.length > 2)
|
|
18378
18400
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
18379
18401
|
}
|
|
18380
18402
|
render(s2) {
|
|
@@ -18394,9 +18416,9 @@ const $e = xt(class extends yt {
|
|
|
18394
18416
|
const t2 = !!e2[o2];
|
|
18395
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)));
|
|
18396
18418
|
}
|
|
18397
|
-
return
|
|
18419
|
+
return R2;
|
|
18398
18420
|
}
|
|
18399
|
-
}),
|
|
18421
|
+
}), me = i$4`
|
|
18400
18422
|
:host {
|
|
18401
18423
|
/* Colors */
|
|
18402
18424
|
--obi-color-primary: #a10fff;
|
|
@@ -18468,7 +18490,7 @@ const $e = xt(class extends yt {
|
|
|
18468
18490
|
--obi-spinner-size: 16px;
|
|
18469
18491
|
--obi-spinner-border-width: 2px;
|
|
18470
18492
|
}
|
|
18471
|
-
`,
|
|
18493
|
+
`, m = i$4`
|
|
18472
18494
|
:host {
|
|
18473
18495
|
box-sizing: border-box;
|
|
18474
18496
|
font-family: var(--obi-font-family-secondary);
|
|
@@ -18478,12 +18500,12 @@ const $e = xt(class extends yt {
|
|
|
18478
18500
|
box-sizing: inherit;
|
|
18479
18501
|
}
|
|
18480
18502
|
`;
|
|
18481
|
-
var
|
|
18482
|
-
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--)
|
|
18483
18505
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
18484
|
-
return o2 && t2 &&
|
|
18506
|
+
return o2 && t2 && At(e2, i3, t2), t2;
|
|
18485
18507
|
};
|
|
18486
|
-
class
|
|
18508
|
+
class w extends i$1 {
|
|
18487
18509
|
constructor() {
|
|
18488
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) => {
|
|
18489
18511
|
if (!this.closeOnBackdropClick || this.closeDisabled)
|
|
@@ -18537,7 +18559,7 @@ class $ extends i$1 {
|
|
|
18537
18559
|
"modal-inner--centered": this.contentCentered
|
|
18538
18560
|
};
|
|
18539
18561
|
return x`
|
|
18540
|
-
<dialog class=${
|
|
18562
|
+
<dialog class=${Oe(e2)}>
|
|
18541
18563
|
${this.showClose ? x`
|
|
18542
18564
|
<button
|
|
18543
18565
|
class="close-button"
|
|
@@ -18550,7 +18572,7 @@ class $ extends i$1 {
|
|
|
18550
18572
|
</button>
|
|
18551
18573
|
` : ""}
|
|
18552
18574
|
|
|
18553
|
-
<div class=${
|
|
18575
|
+
<div class=${Oe(i3)}>
|
|
18554
18576
|
<div class="header">
|
|
18555
18577
|
<slot name="header"></slot>
|
|
18556
18578
|
</div>
|
|
@@ -18567,9 +18589,9 @@ class $ extends i$1 {
|
|
|
18567
18589
|
`;
|
|
18568
18590
|
}
|
|
18569
18591
|
}
|
|
18570
|
-
|
|
18571
|
-
|
|
18572
|
-
|
|
18592
|
+
w.styles = [
|
|
18593
|
+
m,
|
|
18594
|
+
me,
|
|
18573
18595
|
i$4`
|
|
18574
18596
|
:host {
|
|
18575
18597
|
display: contents;
|
|
@@ -18703,37 +18725,37 @@ $.styles = [
|
|
|
18703
18725
|
}
|
|
18704
18726
|
`
|
|
18705
18727
|
];
|
|
18706
|
-
|
|
18728
|
+
O([
|
|
18707
18729
|
a({ type: Boolean, reflect: true })
|
|
18708
|
-
],
|
|
18709
|
-
|
|
18730
|
+
], w.prototype, "open", 2);
|
|
18731
|
+
O([
|
|
18710
18732
|
a({ reflect: true })
|
|
18711
|
-
],
|
|
18712
|
-
|
|
18733
|
+
], w.prototype, "size", 2);
|
|
18734
|
+
O([
|
|
18713
18735
|
a({ type: Boolean, attribute: "show-close" })
|
|
18714
|
-
],
|
|
18715
|
-
|
|
18736
|
+
], w.prototype, "showClose", 2);
|
|
18737
|
+
O([
|
|
18716
18738
|
a({ type: Boolean, attribute: "close-on-backdrop-click" })
|
|
18717
|
-
],
|
|
18718
|
-
|
|
18739
|
+
], w.prototype, "closeOnBackdropClick", 2);
|
|
18740
|
+
O([
|
|
18719
18741
|
a({ type: Boolean, attribute: "close-on-escape" })
|
|
18720
|
-
],
|
|
18721
|
-
|
|
18742
|
+
], w.prototype, "closeOnEscape", 2);
|
|
18743
|
+
O([
|
|
18722
18744
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
18723
|
-
],
|
|
18724
|
-
|
|
18745
|
+
], w.prototype, "closeDisabled", 2);
|
|
18746
|
+
O([
|
|
18725
18747
|
a({ type: Boolean, attribute: "content-centered" })
|
|
18726
|
-
],
|
|
18727
|
-
|
|
18728
|
-
|
|
18729
|
-
],
|
|
18730
|
-
customElements.get("obi-modal") || customElements.define("obi-modal",
|
|
18731
|
-
var
|
|
18732
|
-
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--)
|
|
18733
18755
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
18734
|
-
return o2 && t2 &&
|
|
18756
|
+
return o2 && t2 && Dt(e2, i3, t2), t2;
|
|
18735
18757
|
};
|
|
18736
|
-
class
|
|
18758
|
+
class Se extends i$1 {
|
|
18737
18759
|
constructor() {
|
|
18738
18760
|
super(...arguments), this.size = "medium";
|
|
18739
18761
|
}
|
|
@@ -18741,9 +18763,9 @@ class Ce extends i$1 {
|
|
|
18741
18763
|
return x`<div class="spinner" role="status" aria-label="Loading"></div>`;
|
|
18742
18764
|
}
|
|
18743
18765
|
}
|
|
18744
|
-
|
|
18745
|
-
|
|
18746
|
-
|
|
18766
|
+
Se.styles = [
|
|
18767
|
+
m,
|
|
18768
|
+
me,
|
|
18747
18769
|
i$4`
|
|
18748
18770
|
:host {
|
|
18749
18771
|
display: inline-block;
|
|
@@ -18779,16 +18801,16 @@ Ce.styles = [
|
|
|
18779
18801
|
}
|
|
18780
18802
|
`
|
|
18781
18803
|
];
|
|
18782
|
-
|
|
18804
|
+
Ft([
|
|
18783
18805
|
a({ reflect: true })
|
|
18784
|
-
],
|
|
18785
|
-
customElements.get("obi-spinner") || customElements.define("obi-spinner",
|
|
18786
|
-
var
|
|
18787
|
-
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--)
|
|
18788
18810
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
18789
|
-
return o2 && t2 &&
|
|
18811
|
+
return o2 && t2 && jt(e2, i3, t2), t2;
|
|
18790
18812
|
};
|
|
18791
|
-
class
|
|
18813
|
+
class $ extends i$1 {
|
|
18792
18814
|
constructor() {
|
|
18793
18815
|
super(...arguments), this.variant = "primary", this.size = "medium", this.disabled = false, this.loading = false, this.type = "button", this.fullWidth = false, this.loadingText = "";
|
|
18794
18816
|
}
|
|
@@ -18812,7 +18834,7 @@ class w extends i$1 {
|
|
|
18812
18834
|
};
|
|
18813
18835
|
return x`
|
|
18814
18836
|
<button
|
|
18815
|
-
class=${
|
|
18837
|
+
class=${Oe(e2)}
|
|
18816
18838
|
type=${this.type}
|
|
18817
18839
|
?disabled=${this.disabled || this.loading}
|
|
18818
18840
|
@click=${this.handleClick}
|
|
@@ -18839,9 +18861,9 @@ class w extends i$1 {
|
|
|
18839
18861
|
`;
|
|
18840
18862
|
}
|
|
18841
18863
|
}
|
|
18842
|
-
|
|
18843
|
-
|
|
18844
|
-
|
|
18864
|
+
$.styles = [
|
|
18865
|
+
m,
|
|
18866
|
+
me,
|
|
18845
18867
|
i$4`
|
|
18846
18868
|
:host {
|
|
18847
18869
|
display: inline-block;
|
|
@@ -18963,34 +18985,34 @@ w.styles = [
|
|
|
18963
18985
|
}
|
|
18964
18986
|
`
|
|
18965
18987
|
];
|
|
18966
|
-
|
|
18988
|
+
z2([
|
|
18967
18989
|
a({ reflect: true })
|
|
18968
|
-
],
|
|
18969
|
-
|
|
18990
|
+
], $.prototype, "variant", 2);
|
|
18991
|
+
z2([
|
|
18970
18992
|
a({ reflect: true })
|
|
18971
|
-
],
|
|
18972
|
-
|
|
18993
|
+
], $.prototype, "size", 2);
|
|
18994
|
+
z2([
|
|
18973
18995
|
a({ type: Boolean, reflect: true })
|
|
18974
|
-
],
|
|
18975
|
-
|
|
18996
|
+
], $.prototype, "disabled", 2);
|
|
18997
|
+
z2([
|
|
18976
18998
|
a({ type: Boolean, reflect: true })
|
|
18977
|
-
],
|
|
18978
|
-
|
|
18999
|
+
], $.prototype, "loading", 2);
|
|
19000
|
+
z2([
|
|
18979
19001
|
a()
|
|
18980
|
-
],
|
|
18981
|
-
|
|
19002
|
+
], $.prototype, "type", 2);
|
|
19003
|
+
z2([
|
|
18982
19004
|
a({ type: Boolean, reflect: true, attribute: "full-width" })
|
|
18983
|
-
],
|
|
18984
|
-
|
|
19005
|
+
], $.prototype, "fullWidth", 2);
|
|
19006
|
+
z2([
|
|
18985
19007
|
a({ attribute: "loading-text" })
|
|
18986
|
-
],
|
|
18987
|
-
customElements.get("obi-button") || customElements.define("obi-button",
|
|
18988
|
-
var
|
|
18989
|
-
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--)
|
|
18990
19012
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
18991
|
-
return o2 && t2 &&
|
|
19013
|
+
return o2 && t2 && Nt(e2, i3, t2), t2;
|
|
18992
19014
|
};
|
|
18993
|
-
class
|
|
19015
|
+
class H4 extends i$1 {
|
|
18994
19016
|
constructor() {
|
|
18995
19017
|
super(...arguments), this.showRetry = false, this.showDismiss = false, this.retryText = "Retry", this.dismissText = "Dismiss";
|
|
18996
19018
|
}
|
|
@@ -19040,9 +19062,9 @@ class U extends i$1 {
|
|
|
19040
19062
|
`;
|
|
19041
19063
|
}
|
|
19042
19064
|
}
|
|
19043
|
-
|
|
19044
|
-
|
|
19045
|
-
|
|
19065
|
+
H4.styles = [
|
|
19066
|
+
m,
|
|
19067
|
+
me,
|
|
19046
19068
|
i$4`
|
|
19047
19069
|
:host {
|
|
19048
19070
|
display: block;
|
|
@@ -19102,46 +19124,46 @@ U.styles = [
|
|
|
19102
19124
|
}
|
|
19103
19125
|
`
|
|
19104
19126
|
];
|
|
19105
|
-
|
|
19127
|
+
fe([
|
|
19106
19128
|
a({ type: Boolean, attribute: "show-retry" })
|
|
19107
|
-
],
|
|
19108
|
-
|
|
19129
|
+
], H4.prototype, "showRetry", 2);
|
|
19130
|
+
fe([
|
|
19109
19131
|
a({ type: Boolean, attribute: "show-dismiss" })
|
|
19110
|
-
],
|
|
19111
|
-
|
|
19132
|
+
], H4.prototype, "showDismiss", 2);
|
|
19133
|
+
fe([
|
|
19112
19134
|
a({ attribute: "retry-text" })
|
|
19113
|
-
],
|
|
19114
|
-
|
|
19135
|
+
], H4.prototype, "retryText", 2);
|
|
19136
|
+
fe([
|
|
19115
19137
|
a({ attribute: "dismiss-text" })
|
|
19116
|
-
],
|
|
19117
|
-
customElements.get("obi-error-message") || customElements.define("obi-error-message",
|
|
19118
|
-
function
|
|
19138
|
+
], H4.prototype, "dismissText", 2);
|
|
19139
|
+
customElements.get("obi-error-message") || customElements.define("obi-error-message", H4);
|
|
19140
|
+
function Ze(s2, e2) {
|
|
19119
19141
|
if (!s2)
|
|
19120
19142
|
return "";
|
|
19121
|
-
const i3 = (
|
|
19122
|
-
let p2 = "0",
|
|
19123
|
-
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]), {
|
|
19124
19146
|
r: parseInt(p2),
|
|
19125
|
-
g: parseInt(
|
|
19147
|
+
g: parseInt(b2),
|
|
19126
19148
|
b: parseInt(x2)
|
|
19127
19149
|
};
|
|
19128
|
-
}, o2 = (
|
|
19150
|
+
}, o2 = (h2, p2, b2) => "#" + [h2, p2, b2].map((x2) => {
|
|
19129
19151
|
const _2 = x2.toString(16);
|
|
19130
19152
|
return _2.length === 1 ? "0" + _2 : _2;
|
|
19131
|
-
}).join(""), { r: t2, g: r2, b: n3 } = i3(s2),
|
|
19132
|
-
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);
|
|
19133
19155
|
}
|
|
19134
|
-
var
|
|
19135
|
-
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--)
|
|
19136
19158
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19137
|
-
return o2 && t2 &&
|
|
19159
|
+
return o2 && t2 && zt(e2, i3, t2), t2;
|
|
19138
19160
|
};
|
|
19139
|
-
class
|
|
19161
|
+
class A extends i$1 {
|
|
19140
19162
|
constructor() {
|
|
19141
19163
|
super(...arguments), this.title = "", this.subtitle = "", this.agentName = "Obi", this.buttonText = "Continue", this.disabled = false, this.color = "#9500FF";
|
|
19142
19164
|
}
|
|
19143
19165
|
getBackgroundColor() {
|
|
19144
|
-
return
|
|
19166
|
+
return Ze(this.color, 0.95);
|
|
19145
19167
|
}
|
|
19146
19168
|
handleAction() {
|
|
19147
19169
|
this.disabled || this.dispatchEvent(new CustomEvent("obi-action", {
|
|
@@ -19170,13 +19192,15 @@ class O extends i$1 {
|
|
|
19170
19192
|
|
|
19171
19193
|
<!-- Action button and error -->
|
|
19172
19194
|
<div class="button-container">
|
|
19173
|
-
<button
|
|
19174
|
-
|
|
19175
|
-
|
|
19176
|
-
|
|
19177
|
-
|
|
19178
|
-
|
|
19179
|
-
|
|
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>
|
|
19180
19204
|
|
|
19181
19205
|
<slot name="error"></slot>
|
|
19182
19206
|
</div>
|
|
@@ -19184,8 +19208,8 @@ class O extends i$1 {
|
|
|
19184
19208
|
`;
|
|
19185
19209
|
}
|
|
19186
19210
|
}
|
|
19187
|
-
|
|
19188
|
-
|
|
19211
|
+
A.styles = [
|
|
19212
|
+
m,
|
|
19189
19213
|
i$4`
|
|
19190
19214
|
:host {
|
|
19191
19215
|
display: block;
|
|
@@ -19313,31 +19337,31 @@ O.styles = [
|
|
|
19313
19337
|
}
|
|
19314
19338
|
`
|
|
19315
19339
|
];
|
|
19316
|
-
|
|
19340
|
+
I2([
|
|
19317
19341
|
a()
|
|
19318
|
-
],
|
|
19319
|
-
|
|
19342
|
+
], A.prototype, "title", 2);
|
|
19343
|
+
I2([
|
|
19320
19344
|
a()
|
|
19321
|
-
],
|
|
19322
|
-
|
|
19345
|
+
], A.prototype, "subtitle", 2);
|
|
19346
|
+
I2([
|
|
19323
19347
|
a({ attribute: "agent-name" })
|
|
19324
|
-
],
|
|
19325
|
-
|
|
19348
|
+
], A.prototype, "agentName", 2);
|
|
19349
|
+
I2([
|
|
19326
19350
|
a({ attribute: "button-text" })
|
|
19327
|
-
],
|
|
19328
|
-
|
|
19351
|
+
], A.prototype, "buttonText", 2);
|
|
19352
|
+
I2([
|
|
19329
19353
|
a({ type: Boolean, reflect: true })
|
|
19330
|
-
],
|
|
19331
|
-
|
|
19354
|
+
], A.prototype, "disabled", 2);
|
|
19355
|
+
I2([
|
|
19332
19356
|
a()
|
|
19333
|
-
],
|
|
19334
|
-
customElements.get("obi-base-onboarding-content") || customElements.define("obi-base-onboarding-content",
|
|
19335
|
-
var
|
|
19336
|
-
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--)
|
|
19337
19361
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19338
|
-
return o2 && t2 &&
|
|
19362
|
+
return o2 && t2 && Lt(e2, i3, t2), t2;
|
|
19339
19363
|
};
|
|
19340
|
-
class
|
|
19364
|
+
class ve extends i$1 {
|
|
19341
19365
|
constructor() {
|
|
19342
19366
|
super(...arguments), this.logoUrl = "", this.appName = "App";
|
|
19343
19367
|
}
|
|
@@ -19372,8 +19396,8 @@ class be extends i$1 {
|
|
|
19372
19396
|
`;
|
|
19373
19397
|
}
|
|
19374
19398
|
}
|
|
19375
|
-
|
|
19376
|
-
|
|
19399
|
+
ve.styles = [
|
|
19400
|
+
m,
|
|
19377
19401
|
i$4`
|
|
19378
19402
|
:host {
|
|
19379
19403
|
display: block;
|
|
@@ -19435,19 +19459,19 @@ be.styles = [
|
|
|
19435
19459
|
}
|
|
19436
19460
|
`
|
|
19437
19461
|
];
|
|
19438
|
-
|
|
19462
|
+
Je([
|
|
19439
19463
|
a({ attribute: "logo-url" })
|
|
19440
|
-
],
|
|
19441
|
-
|
|
19464
|
+
], ve.prototype, "logoUrl", 2);
|
|
19465
|
+
Je([
|
|
19442
19466
|
a({ attribute: "app-name" })
|
|
19443
|
-
],
|
|
19444
|
-
customElements.get("obi-app-logo-visual") || customElements.define("obi-app-logo-visual",
|
|
19445
|
-
var
|
|
19446
|
-
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--)
|
|
19447
19471
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19448
|
-
return o2 && t2 &&
|
|
19472
|
+
return o2 && t2 && Rt(e2, i3, t2), t2;
|
|
19449
19473
|
};
|
|
19450
|
-
class
|
|
19474
|
+
class B extends i$1 {
|
|
19451
19475
|
constructor() {
|
|
19452
19476
|
super(...arguments), this.color = "#9500FF", this.isLoading = false, this.error = null, this.navigateAttempts = 0;
|
|
19453
19477
|
}
|
|
@@ -19533,24 +19557,24 @@ class z2 extends i$1 {
|
|
|
19533
19557
|
`;
|
|
19534
19558
|
}
|
|
19535
19559
|
}
|
|
19536
|
-
|
|
19537
|
-
|
|
19560
|
+
B.styles = [m];
|
|
19561
|
+
ne([
|
|
19538
19562
|
a({ type: Object })
|
|
19539
|
-
],
|
|
19540
|
-
|
|
19563
|
+
], B.prototype, "session", 2);
|
|
19564
|
+
ne([
|
|
19541
19565
|
a()
|
|
19542
|
-
],
|
|
19543
|
-
|
|
19566
|
+
], B.prototype, "color", 2);
|
|
19567
|
+
ne([
|
|
19544
19568
|
v()
|
|
19545
|
-
],
|
|
19546
|
-
|
|
19569
|
+
], B.prototype, "isLoading", 2);
|
|
19570
|
+
ne([
|
|
19547
19571
|
v()
|
|
19548
|
-
],
|
|
19549
|
-
|
|
19572
|
+
], B.prototype, "error", 2);
|
|
19573
|
+
ne([
|
|
19550
19574
|
v()
|
|
19551
|
-
],
|
|
19552
|
-
customElements.get("obi-navigate-to-content") || customElements.define("obi-navigate-to-content",
|
|
19553
|
-
const
|
|
19575
|
+
], B.prototype, "navigateAttempts", 2);
|
|
19576
|
+
customElements.get("obi-navigate-to-content") || customElements.define("obi-navigate-to-content", B);
|
|
19577
|
+
const Ht = x`
|
|
19554
19578
|
<img
|
|
19555
19579
|
src="data:image/svg+xml;base64,${btoa(`<?xml version="1.0" encoding="UTF-8"?>
|
|
19556
19580
|
<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -19560,12 +19584,12 @@ const zt = x`
|
|
|
19560
19584
|
style="width: 100%; height: 100%; object-fit: contain;"
|
|
19561
19585
|
/>
|
|
19562
19586
|
`;
|
|
19563
|
-
var
|
|
19564
|
-
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--)
|
|
19565
19589
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19566
|
-
return o2 && t2 &&
|
|
19590
|
+
return o2 && t2 && It(e2, i3, t2), t2;
|
|
19567
19591
|
};
|
|
19568
|
-
class
|
|
19592
|
+
class Fe extends i$1 {
|
|
19569
19593
|
constructor() {
|
|
19570
19594
|
super(...arguments), this.color = "#9500FF";
|
|
19571
19595
|
}
|
|
@@ -19582,15 +19606,15 @@ class Ae extends i$1 {
|
|
|
19582
19606
|
<div class="container">
|
|
19583
19607
|
<div class="logo" style="background: ${this.color}; box-shadow: ${r2};">
|
|
19584
19608
|
<slot>
|
|
19585
|
-
<div class="logo-icon">${
|
|
19609
|
+
<div class="logo-icon">${Ht}</div>
|
|
19586
19610
|
</slot>
|
|
19587
19611
|
</div>
|
|
19588
19612
|
</div>
|
|
19589
19613
|
`;
|
|
19590
19614
|
}
|
|
19591
19615
|
}
|
|
19592
|
-
|
|
19593
|
-
|
|
19616
|
+
Fe.styles = [
|
|
19617
|
+
m,
|
|
19594
19618
|
i$4`
|
|
19595
19619
|
:host {
|
|
19596
19620
|
display: block;
|
|
@@ -19635,14 +19659,14 @@ Ae.styles = [
|
|
|
19635
19659
|
}
|
|
19636
19660
|
`
|
|
19637
19661
|
];
|
|
19638
|
-
|
|
19662
|
+
qt([
|
|
19639
19663
|
a()
|
|
19640
|
-
],
|
|
19641
|
-
customElements.get("obi-logo-visual") || customElements.define("obi-logo-visual",
|
|
19642
|
-
var
|
|
19643
|
-
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--)
|
|
19644
19668
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19645
|
-
return o2 && t2 &&
|
|
19669
|
+
return o2 && t2 && Wt(e2, i3, t2), t2;
|
|
19646
19670
|
};
|
|
19647
19671
|
class P extends i$1 {
|
|
19648
19672
|
constructor() {
|
|
@@ -19726,27 +19750,27 @@ class P extends i$1 {
|
|
|
19726
19750
|
`;
|
|
19727
19751
|
}
|
|
19728
19752
|
}
|
|
19729
|
-
P.styles = [
|
|
19730
|
-
|
|
19753
|
+
P.styles = [m];
|
|
19754
|
+
V([
|
|
19731
19755
|
a({ type: Object })
|
|
19732
19756
|
], P.prototype, "session", 2);
|
|
19733
|
-
|
|
19757
|
+
V([
|
|
19734
19758
|
a({ type: Boolean, reflect: true })
|
|
19735
19759
|
], P.prototype, "disabled", 2);
|
|
19736
|
-
|
|
19760
|
+
V([
|
|
19737
19761
|
a()
|
|
19738
19762
|
], P.prototype, "color", 2);
|
|
19739
|
-
|
|
19763
|
+
V([
|
|
19740
19764
|
v()
|
|
19741
19765
|
], P.prototype, "isLoading", 2);
|
|
19742
|
-
|
|
19766
|
+
V([
|
|
19743
19767
|
v()
|
|
19744
19768
|
], P.prototype, "error", 2);
|
|
19745
|
-
|
|
19769
|
+
V([
|
|
19746
19770
|
v()
|
|
19747
19771
|
], P.prototype, "startAttempts", 2);
|
|
19748
19772
|
customElements.get("obi-session-start-content") || customElements.define("obi-session-start-content", P);
|
|
19749
|
-
class
|
|
19773
|
+
class Ke extends i$1 {
|
|
19750
19774
|
render() {
|
|
19751
19775
|
return x`
|
|
19752
19776
|
<div class="container">
|
|
@@ -19778,8 +19802,8 @@ class qe extends i$1 {
|
|
|
19778
19802
|
`;
|
|
19779
19803
|
}
|
|
19780
19804
|
}
|
|
19781
|
-
|
|
19782
|
-
|
|
19805
|
+
Ke.styles = [
|
|
19806
|
+
m,
|
|
19783
19807
|
i$4`
|
|
19784
19808
|
:host {
|
|
19785
19809
|
display: block;
|
|
@@ -19934,13 +19958,13 @@ qe.styles = [
|
|
|
19934
19958
|
}
|
|
19935
19959
|
`
|
|
19936
19960
|
];
|
|
19937
|
-
customElements.get("obi-microphone-permission-visual") || customElements.define("obi-microphone-permission-visual",
|
|
19938
|
-
var
|
|
19939
|
-
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--)
|
|
19940
19964
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19941
|
-
return o2 && t2 &&
|
|
19965
|
+
return o2 && t2 && Gt(e2, i3, t2), t2;
|
|
19942
19966
|
};
|
|
19943
|
-
class
|
|
19967
|
+
class D extends i$1 {
|
|
19944
19968
|
constructor() {
|
|
19945
19969
|
super(...arguments), this.disabled = false, this.color = "#9500FF", this.isLoading = false, this.error = null, this.micPermissionGranted = false;
|
|
19946
19970
|
}
|
|
@@ -19990,30 +20014,30 @@ class S extends i$1 {
|
|
|
19990
20014
|
`;
|
|
19991
20015
|
}
|
|
19992
20016
|
}
|
|
19993
|
-
|
|
19994
|
-
|
|
20017
|
+
D.styles = [m];
|
|
20018
|
+
q([
|
|
19995
20019
|
a({ type: Object })
|
|
19996
|
-
],
|
|
19997
|
-
|
|
20020
|
+
], D.prototype, "session", 2);
|
|
20021
|
+
q([
|
|
19998
20022
|
a({ type: Boolean, reflect: true })
|
|
19999
|
-
],
|
|
20000
|
-
|
|
20023
|
+
], D.prototype, "disabled", 2);
|
|
20024
|
+
q([
|
|
20001
20025
|
a()
|
|
20002
|
-
],
|
|
20003
|
-
|
|
20026
|
+
], D.prototype, "color", 2);
|
|
20027
|
+
q([
|
|
20004
20028
|
v()
|
|
20005
|
-
],
|
|
20006
|
-
|
|
20029
|
+
], D.prototype, "isLoading", 2);
|
|
20030
|
+
q([
|
|
20007
20031
|
v()
|
|
20008
|
-
],
|
|
20009
|
-
|
|
20032
|
+
], D.prototype, "error", 2);
|
|
20033
|
+
q([
|
|
20010
20034
|
v()
|
|
20011
|
-
],
|
|
20012
|
-
customElements.get("obi-share-mic-content") || customElements.define("obi-share-mic-content",
|
|
20013
|
-
var
|
|
20014
|
-
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--)
|
|
20015
20039
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20016
|
-
return o2 && t2 &&
|
|
20040
|
+
return o2 && t2 && Zt(e2, i3, t2), t2;
|
|
20017
20041
|
};
|
|
20018
20042
|
class W extends i$1 {
|
|
20019
20043
|
constructor() {
|
|
@@ -20031,13 +20055,13 @@ class W extends i$1 {
|
|
|
20031
20055
|
startAnimation() {
|
|
20032
20056
|
const r2 = () => {
|
|
20033
20057
|
this.clearTimeouts();
|
|
20034
|
-
for (let
|
|
20035
|
-
const l2 =
|
|
20036
|
-
this.activeDots = this.activeDots.map((p2,
|
|
20037
|
-
const
|
|
20038
|
-
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();
|
|
20039
20063
|
}, 200);
|
|
20040
|
-
this.animationTimeouts.push(
|
|
20064
|
+
this.animationTimeouts.push(h2);
|
|
20041
20065
|
}, l2);
|
|
20042
20066
|
this.animationTimeouts.push(u2);
|
|
20043
20067
|
}
|
|
@@ -20065,7 +20089,7 @@ class W extends i$1 {
|
|
|
20065
20089
|
}
|
|
20066
20090
|
}
|
|
20067
20091
|
W.styles = [
|
|
20068
|
-
|
|
20092
|
+
m,
|
|
20069
20093
|
i$4`
|
|
20070
20094
|
:host {
|
|
20071
20095
|
display: flex;
|
|
@@ -20110,25 +20134,25 @@ W.styles = [
|
|
|
20110
20134
|
}
|
|
20111
20135
|
`
|
|
20112
20136
|
];
|
|
20113
|
-
|
|
20137
|
+
ye([
|
|
20114
20138
|
a()
|
|
20115
20139
|
], W.prototype, "color", 2);
|
|
20116
|
-
|
|
20140
|
+
ye([
|
|
20117
20141
|
a({ attribute: "dot-color" })
|
|
20118
20142
|
], W.prototype, "dotColor", 2);
|
|
20119
|
-
|
|
20143
|
+
ye([
|
|
20120
20144
|
v()
|
|
20121
20145
|
], W.prototype, "activeDots", 2);
|
|
20122
|
-
|
|
20146
|
+
ye([
|
|
20123
20147
|
v()
|
|
20124
20148
|
], W.prototype, "animationTimeouts", 2);
|
|
20125
20149
|
customElements.get("obi-voice-guidance-visual") || customElements.define("obi-voice-guidance-visual", W);
|
|
20126
|
-
var
|
|
20127
|
-
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--)
|
|
20128
20152
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20129
|
-
return o2 && t2 &&
|
|
20153
|
+
return o2 && t2 && Kt(e2, i3, t2), t2;
|
|
20130
20154
|
};
|
|
20131
|
-
class
|
|
20155
|
+
class L2 extends i$1 {
|
|
20132
20156
|
constructor() {
|
|
20133
20157
|
super(...arguments), this.color = "#9500FF", this.disabled = false, this.loading = false, this.error = null;
|
|
20134
20158
|
}
|
|
@@ -20200,24 +20224,24 @@ class B extends i$1 {
|
|
|
20200
20224
|
`;
|
|
20201
20225
|
}
|
|
20202
20226
|
}
|
|
20203
|
-
|
|
20204
|
-
|
|
20227
|
+
L2.styles = [m];
|
|
20228
|
+
ae([
|
|
20205
20229
|
a({ type: Object })
|
|
20206
|
-
],
|
|
20207
|
-
|
|
20230
|
+
], L2.prototype, "session", 2);
|
|
20231
|
+
ae([
|
|
20208
20232
|
a()
|
|
20209
|
-
],
|
|
20210
|
-
|
|
20233
|
+
], L2.prototype, "color", 2);
|
|
20234
|
+
ae([
|
|
20211
20235
|
a({ type: Boolean, reflect: true })
|
|
20212
|
-
],
|
|
20213
|
-
|
|
20236
|
+
], L2.prototype, "disabled", 2);
|
|
20237
|
+
ae([
|
|
20214
20238
|
a({ type: Boolean, reflect: true })
|
|
20215
|
-
],
|
|
20216
|
-
|
|
20239
|
+
], L2.prototype, "loading", 2);
|
|
20240
|
+
ae([
|
|
20217
20241
|
v()
|
|
20218
|
-
],
|
|
20219
|
-
customElements.get("obi-voice-guidance-content") || customElements.define("obi-voice-guidance-content",
|
|
20220
|
-
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 {
|
|
20221
20245
|
render() {
|
|
20222
20246
|
return x`
|
|
20223
20247
|
<article class="skeleton-container" role="status" aria-label="Loading content">
|
|
@@ -20235,8 +20259,8 @@ class Ge extends i$1 {
|
|
|
20235
20259
|
`;
|
|
20236
20260
|
}
|
|
20237
20261
|
}
|
|
20238
|
-
|
|
20239
|
-
|
|
20262
|
+
Qe.styles = [
|
|
20263
|
+
m,
|
|
20240
20264
|
i$4`
|
|
20241
20265
|
:host {
|
|
20242
20266
|
display: flex;
|
|
@@ -20349,18 +20373,18 @@ Ge.styles = [
|
|
|
20349
20373
|
}
|
|
20350
20374
|
`
|
|
20351
20375
|
];
|
|
20352
|
-
customElements.get("obi-skeleton-loader-visual") || customElements.define("obi-skeleton-loader-visual",
|
|
20353
|
-
var
|
|
20354
|
-
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--)
|
|
20355
20379
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20356
|
-
return o2 && t2 &&
|
|
20380
|
+
return o2 && t2 && eo(e2, i3, t2), t2;
|
|
20357
20381
|
};
|
|
20358
|
-
class
|
|
20382
|
+
class je extends i$1 {
|
|
20359
20383
|
constructor() {
|
|
20360
20384
|
super(...arguments), this.color = "#9500FF";
|
|
20361
20385
|
}
|
|
20362
20386
|
getBackgroundColor() {
|
|
20363
|
-
return
|
|
20387
|
+
return Ze(this.color, 0.95);
|
|
20364
20388
|
}
|
|
20365
20389
|
render() {
|
|
20366
20390
|
return x`
|
|
@@ -20392,8 +20416,8 @@ class Oe extends i$1 {
|
|
|
20392
20416
|
`;
|
|
20393
20417
|
}
|
|
20394
20418
|
}
|
|
20395
|
-
|
|
20396
|
-
|
|
20419
|
+
je.styles = [
|
|
20420
|
+
m,
|
|
20397
20421
|
i$4`
|
|
20398
20422
|
:host {
|
|
20399
20423
|
display: block;
|
|
@@ -20484,16 +20508,16 @@ Oe.styles = [
|
|
|
20484
20508
|
}
|
|
20485
20509
|
`
|
|
20486
20510
|
];
|
|
20487
|
-
|
|
20511
|
+
oo([
|
|
20488
20512
|
a()
|
|
20489
|
-
],
|
|
20490
|
-
customElements.get("obi-screen-share-visual") || customElements.define("obi-screen-share-visual",
|
|
20491
|
-
var
|
|
20492
|
-
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--)
|
|
20493
20517
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20494
|
-
return o2 && t2 &&
|
|
20518
|
+
return o2 && t2 && io(e2, i3, t2), t2;
|
|
20495
20519
|
};
|
|
20496
|
-
class
|
|
20520
|
+
class S extends i$1 {
|
|
20497
20521
|
constructor() {
|
|
20498
20522
|
super(...arguments), this.disabled = false, this.color = "#9500FF", this.isLoading = false, this.error = null, this.continueAttempts = 0;
|
|
20499
20523
|
}
|
|
@@ -20570,32 +20594,32 @@ class D extends i$1 {
|
|
|
20570
20594
|
`;
|
|
20571
20595
|
}
|
|
20572
20596
|
}
|
|
20573
|
-
|
|
20574
|
-
|
|
20597
|
+
S.styles = [m];
|
|
20598
|
+
Y([
|
|
20575
20599
|
a({ type: Object })
|
|
20576
|
-
],
|
|
20577
|
-
|
|
20600
|
+
], S.prototype, "session", 2);
|
|
20601
|
+
Y([
|
|
20578
20602
|
a({ type: Boolean, reflect: true })
|
|
20579
|
-
],
|
|
20580
|
-
|
|
20603
|
+
], S.prototype, "disabled", 2);
|
|
20604
|
+
Y([
|
|
20581
20605
|
a()
|
|
20582
|
-
],
|
|
20583
|
-
|
|
20606
|
+
], S.prototype, "color", 2);
|
|
20607
|
+
Y([
|
|
20584
20608
|
v()
|
|
20585
|
-
],
|
|
20586
|
-
|
|
20609
|
+
], S.prototype, "isLoading", 2);
|
|
20610
|
+
Y([
|
|
20587
20611
|
v()
|
|
20588
|
-
],
|
|
20589
|
-
|
|
20612
|
+
], S.prototype, "error", 2);
|
|
20613
|
+
Y([
|
|
20590
20614
|
v()
|
|
20591
|
-
],
|
|
20592
|
-
customElements.get("obi-share-screen-content") || customElements.define("obi-share-screen-content",
|
|
20593
|
-
var
|
|
20594
|
-
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--)
|
|
20595
20619
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20596
|
-
return o2 && t2 &&
|
|
20620
|
+
return o2 && t2 && ro(e2, i3, t2), t2;
|
|
20597
20621
|
};
|
|
20598
|
-
class
|
|
20622
|
+
class xe extends i$1 {
|
|
20599
20623
|
constructor() {
|
|
20600
20624
|
super(...arguments), this.open = false, this.closeDisabled = false, this.closeReason = null;
|
|
20601
20625
|
}
|
|
@@ -20644,8 +20668,8 @@ class me extends i$1 {
|
|
|
20644
20668
|
`;
|
|
20645
20669
|
}
|
|
20646
20670
|
}
|
|
20647
|
-
|
|
20648
|
-
|
|
20671
|
+
xe.styles = [
|
|
20672
|
+
m,
|
|
20649
20673
|
i$4`
|
|
20650
20674
|
:host {
|
|
20651
20675
|
--obi-modal-width: 640px;
|
|
@@ -20713,17 +20737,17 @@ me.styles = [
|
|
|
20713
20737
|
}
|
|
20714
20738
|
`
|
|
20715
20739
|
];
|
|
20716
|
-
|
|
20740
|
+
et([
|
|
20717
20741
|
a({ type: Boolean, reflect: true })
|
|
20718
|
-
],
|
|
20719
|
-
|
|
20742
|
+
], xe.prototype, "open", 2);
|
|
20743
|
+
et([
|
|
20720
20744
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
20721
|
-
],
|
|
20722
|
-
customElements.get("obi-base-onboarding-modal") || customElements.define("obi-base-onboarding-modal",
|
|
20723
|
-
var
|
|
20724
|
-
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--)
|
|
20725
20749
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20726
|
-
return o2 && t2 &&
|
|
20750
|
+
return o2 && t2 && ao(e2, i3, t2), t2;
|
|
20727
20751
|
};
|
|
20728
20752
|
class G extends i$1 {
|
|
20729
20753
|
constructor() {
|
|
@@ -20744,26 +20768,26 @@ class G extends i$1 {
|
|
|
20744
20768
|
`;
|
|
20745
20769
|
}
|
|
20746
20770
|
}
|
|
20747
|
-
G.styles = [
|
|
20748
|
-
|
|
20771
|
+
G.styles = [m];
|
|
20772
|
+
we([
|
|
20749
20773
|
a({ type: Object })
|
|
20750
20774
|
], G.prototype, "session", 2);
|
|
20751
|
-
|
|
20775
|
+
we([
|
|
20752
20776
|
a({ type: Boolean, reflect: true })
|
|
20753
20777
|
], G.prototype, "open", 2);
|
|
20754
|
-
|
|
20778
|
+
we([
|
|
20755
20779
|
a({ type: Boolean, reflect: true })
|
|
20756
20780
|
], G.prototype, "disabled", 2);
|
|
20757
|
-
|
|
20781
|
+
we([
|
|
20758
20782
|
a()
|
|
20759
20783
|
], G.prototype, "color", 2);
|
|
20760
20784
|
customElements.get("obi-share-screen-modal") || customElements.define("obi-share-screen-modal", G);
|
|
20761
|
-
var
|
|
20762
|
-
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--)
|
|
20763
20787
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20764
|
-
return o2 && t2 &&
|
|
20788
|
+
return o2 && t2 && co(e2, i3, t2), t2;
|
|
20765
20789
|
};
|
|
20766
|
-
class
|
|
20790
|
+
class M2 extends i$1 {
|
|
20767
20791
|
constructor() {
|
|
20768
20792
|
super(...arguments), this.open = false, this.color = "#9500FF", this.disabled = false, this.closeDisabled = false;
|
|
20769
20793
|
}
|
|
@@ -20783,29 +20807,29 @@ class L2 extends i$1 {
|
|
|
20783
20807
|
`;
|
|
20784
20808
|
}
|
|
20785
20809
|
}
|
|
20786
|
-
|
|
20787
|
-
|
|
20810
|
+
M2.styles = [m];
|
|
20811
|
+
le([
|
|
20788
20812
|
a({ type: Object })
|
|
20789
|
-
],
|
|
20790
|
-
|
|
20813
|
+
], M2.prototype, "session", 2);
|
|
20814
|
+
le([
|
|
20791
20815
|
a({ type: Boolean, reflect: true })
|
|
20792
|
-
],
|
|
20793
|
-
|
|
20816
|
+
], M2.prototype, "open", 2);
|
|
20817
|
+
le([
|
|
20794
20818
|
a()
|
|
20795
|
-
],
|
|
20796
|
-
|
|
20819
|
+
], M2.prototype, "color", 2);
|
|
20820
|
+
le([
|
|
20797
20821
|
a({ type: Boolean, reflect: true })
|
|
20798
|
-
],
|
|
20799
|
-
|
|
20822
|
+
], M2.prototype, "disabled", 2);
|
|
20823
|
+
le([
|
|
20800
20824
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
20801
|
-
],
|
|
20802
|
-
customElements.get("obi-navigate-to-modal") || customElements.define("obi-navigate-to-modal",
|
|
20803
|
-
var
|
|
20804
|
-
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--)
|
|
20805
20829
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20806
|
-
return o2 && t2 &&
|
|
20830
|
+
return o2 && t2 && po(e2, i3, t2), t2;
|
|
20807
20831
|
};
|
|
20808
|
-
class
|
|
20832
|
+
class X extends i$1 {
|
|
20809
20833
|
constructor() {
|
|
20810
20834
|
super(...arguments), this.disabled = false, this.open = false, this.color = "#9500FF";
|
|
20811
20835
|
}
|
|
@@ -20821,26 +20845,26 @@ class Y extends i$1 {
|
|
|
20821
20845
|
`;
|
|
20822
20846
|
}
|
|
20823
20847
|
}
|
|
20824
|
-
|
|
20825
|
-
|
|
20848
|
+
X.styles = [m];
|
|
20849
|
+
$e([
|
|
20826
20850
|
a({ type: Object })
|
|
20827
|
-
],
|
|
20828
|
-
|
|
20851
|
+
], X.prototype, "session", 2);
|
|
20852
|
+
$e([
|
|
20829
20853
|
a({ type: Boolean, reflect: true })
|
|
20830
|
-
],
|
|
20831
|
-
|
|
20854
|
+
], X.prototype, "disabled", 2);
|
|
20855
|
+
$e([
|
|
20832
20856
|
a({ type: Boolean, reflect: true })
|
|
20833
|
-
],
|
|
20834
|
-
|
|
20857
|
+
], X.prototype, "open", 2);
|
|
20858
|
+
$e([
|
|
20835
20859
|
a()
|
|
20836
|
-
],
|
|
20837
|
-
customElements.get("obi-session-start-modal") || customElements.define("obi-session-start-modal",
|
|
20838
|
-
var
|
|
20839
|
-
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--)
|
|
20840
20864
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20841
|
-
return o2 && t2 &&
|
|
20865
|
+
return o2 && t2 && bo(e2, i3, t2), t2;
|
|
20842
20866
|
};
|
|
20843
|
-
class
|
|
20867
|
+
class Z extends i$1 {
|
|
20844
20868
|
constructor() {
|
|
20845
20869
|
super(...arguments), this.open = false, this.disabled = false, this.color = "#9500FF";
|
|
20846
20870
|
}
|
|
@@ -20859,26 +20883,26 @@ class X extends i$1 {
|
|
|
20859
20883
|
`;
|
|
20860
20884
|
}
|
|
20861
20885
|
}
|
|
20862
|
-
|
|
20863
|
-
|
|
20886
|
+
Z.styles = [m];
|
|
20887
|
+
_e([
|
|
20864
20888
|
a({ type: Object })
|
|
20865
|
-
],
|
|
20866
|
-
|
|
20889
|
+
], Z.prototype, "session", 2);
|
|
20890
|
+
_e([
|
|
20867
20891
|
a({ type: Boolean, reflect: true })
|
|
20868
|
-
],
|
|
20869
|
-
|
|
20892
|
+
], Z.prototype, "open", 2);
|
|
20893
|
+
_e([
|
|
20870
20894
|
a({ type: Boolean, reflect: true })
|
|
20871
|
-
],
|
|
20872
|
-
|
|
20895
|
+
], Z.prototype, "disabled", 2);
|
|
20896
|
+
_e([
|
|
20873
20897
|
a()
|
|
20874
|
-
],
|
|
20875
|
-
customElements.get("obi-share-mic-modal") || customElements.define("obi-share-mic-modal",
|
|
20876
|
-
var
|
|
20877
|
-
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--)
|
|
20878
20902
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20879
|
-
return o2 && t2 &&
|
|
20903
|
+
return o2 && t2 && mo(e2, i3, t2), t2;
|
|
20880
20904
|
};
|
|
20881
|
-
class
|
|
20905
|
+
class F extends i$1 {
|
|
20882
20906
|
constructor() {
|
|
20883
20907
|
super(...arguments), this.open = false, this.color = "#9500FF", this.disabled = false, this.loading = false, this.closeDisabled = false;
|
|
20884
20908
|
}
|
|
@@ -20900,26 +20924,227 @@ class j extends i$1 {
|
|
|
20900
20924
|
`;
|
|
20901
20925
|
}
|
|
20902
20926
|
}
|
|
20903
|
-
|
|
20904
|
-
|
|
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([
|
|
20905
21130
|
a({ type: Object })
|
|
20906
21131
|
], j.prototype, "session", 2);
|
|
20907
|
-
|
|
21132
|
+
Q([
|
|
20908
21133
|
a({ type: Boolean, reflect: true })
|
|
20909
21134
|
], j.prototype, "open", 2);
|
|
20910
|
-
|
|
21135
|
+
Q([
|
|
20911
21136
|
a()
|
|
20912
21137
|
], j.prototype, "color", 2);
|
|
20913
|
-
|
|
21138
|
+
Q([
|
|
20914
21139
|
a({ type: Boolean, reflect: true })
|
|
20915
21140
|
], j.prototype, "disabled", 2);
|
|
20916
|
-
|
|
21141
|
+
Q([
|
|
20917
21142
|
a({ type: Boolean, reflect: true })
|
|
20918
21143
|
], j.prototype, "loading", 2);
|
|
20919
|
-
|
|
21144
|
+
Q([
|
|
20920
21145
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
20921
21146
|
], j.prototype, "closeDisabled", 2);
|
|
20922
|
-
customElements.get("obi-
|
|
21147
|
+
customElements.get("obi-overview-modal") || customElements.define("obi-overview-modal", j);
|
|
20923
21148
|
var __defProp = Object.defineProperty;
|
|
20924
21149
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
20925
21150
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -20946,6 +21171,7 @@ class ObiWidget extends i$1 {
|
|
|
20946
21171
|
this.showSessionStartModal = false;
|
|
20947
21172
|
this.showShareMicModal = false;
|
|
20948
21173
|
this.micShareEnabled = false;
|
|
21174
|
+
this.showOverviewModal = false;
|
|
20949
21175
|
this.showVoiceGuidanceModal = false;
|
|
20950
21176
|
this.voiceGuidanceEnabled = false;
|
|
20951
21177
|
this.selectedCourse = null;
|
|
@@ -21063,6 +21289,7 @@ class ObiWidget extends i$1 {
|
|
|
21063
21289
|
this.showCourseModal = false;
|
|
21064
21290
|
this.showSessionStartModal = false;
|
|
21065
21291
|
this.showShareMicModal = false;
|
|
21292
|
+
this.showOverviewModal = false;
|
|
21066
21293
|
};
|
|
21067
21294
|
this.handleCourseSelectEvent = (event) => {
|
|
21068
21295
|
const customEvent = event;
|
|
@@ -21070,6 +21297,7 @@ class ObiWidget extends i$1 {
|
|
|
21070
21297
|
this.showCourseModal = false;
|
|
21071
21298
|
this.showSessionStartModal = true;
|
|
21072
21299
|
this.showShareMicModal = false;
|
|
21300
|
+
this.showOverviewModal = false;
|
|
21073
21301
|
this.micShareEnabled = false;
|
|
21074
21302
|
this.showVoiceGuidanceModal = false;
|
|
21075
21303
|
this.voiceGuidanceEnabled = false;
|
|
@@ -21152,7 +21380,7 @@ class ObiWidget extends i$1 {
|
|
|
21152
21380
|
this.activeSession = null;
|
|
21153
21381
|
}
|
|
21154
21382
|
this.showSessionStartModal = false;
|
|
21155
|
-
this.
|
|
21383
|
+
this.showVoiceGuidanceModal = true;
|
|
21156
21384
|
this.state = SDKState.LOADING;
|
|
21157
21385
|
setGlobalContext({ widgetState: this.state.toString() });
|
|
21158
21386
|
await this.connectObi(sessionToken);
|
|
@@ -21242,6 +21470,10 @@ class ObiWidget extends i$1 {
|
|
|
21242
21470
|
sessionId
|
|
21243
21471
|
});
|
|
21244
21472
|
};
|
|
21473
|
+
this.handleOverviewModalClose = () => {
|
|
21474
|
+
this.showOverviewModal = false;
|
|
21475
|
+
this.handleCloseModals();
|
|
21476
|
+
};
|
|
21245
21477
|
this.handleShareMicModalContinue = async (event) => {
|
|
21246
21478
|
const { session, micPermissionGranted } = event.detail;
|
|
21247
21479
|
console.log("[ShareMicModal] Continue button clicked", {
|
|
@@ -21263,7 +21495,6 @@ class ObiWidget extends i$1 {
|
|
|
21263
21495
|
}
|
|
21264
21496
|
await this.activeSession.shareMic();
|
|
21265
21497
|
this.showShareMicModal = false;
|
|
21266
|
-
this.showVoiceGuidanceModal = true;
|
|
21267
21498
|
};
|
|
21268
21499
|
this.handleShareMicModalClose = () => {
|
|
21269
21500
|
console.log("[ShareMicModal] Close button clicked", {
|
|
@@ -21285,6 +21516,8 @@ class ObiWidget extends i$1 {
|
|
|
21285
21516
|
);
|
|
21286
21517
|
await this.activeSession?.promptContinue();
|
|
21287
21518
|
this.showVoiceGuidanceModal = false;
|
|
21519
|
+
this.voiceGuidanceEnabled = false;
|
|
21520
|
+
this.showOverviewModal = true;
|
|
21288
21521
|
};
|
|
21289
21522
|
this.handleVoiceGuidanceModalClose = () => {
|
|
21290
21523
|
console.log("[obi] voice guidance modal close", {
|
|
@@ -21511,9 +21744,18 @@ class ObiWidget extends i$1 {
|
|
|
21511
21744
|
onError();
|
|
21512
21745
|
}
|
|
21513
21746
|
});
|
|
21747
|
+
session.on("micCheck", (permissionGranted) => {
|
|
21748
|
+
this.showOverviewModal = false;
|
|
21749
|
+
if (!permissionGranted) {
|
|
21750
|
+
this.showShareMicModal = true;
|
|
21751
|
+
}
|
|
21752
|
+
});
|
|
21514
21753
|
session.on("micShareRequested", () => {
|
|
21515
21754
|
this.micShareEnabled = true;
|
|
21516
21755
|
});
|
|
21756
|
+
session.on("micShared", () => {
|
|
21757
|
+
this.showOverviewModal = false;
|
|
21758
|
+
});
|
|
21517
21759
|
session.on("promptUser", () => {
|
|
21518
21760
|
this.voiceGuidanceEnabled = true;
|
|
21519
21761
|
});
|
|
@@ -21847,38 +22089,52 @@ class ObiWidget extends i$1 {
|
|
|
21847
22089
|
>
|
|
21848
22090
|
</obi-session-start-modal>
|
|
21849
22091
|
` : E$1}
|
|
21850
|
-
${this.
|
|
21851
|
-
<obi-
|
|
22092
|
+
${this.showVoiceGuidanceModal ? x`
|
|
22093
|
+
<obi-voice-guidance-modal
|
|
21852
22094
|
.session=${this.selectedCourse ? {
|
|
21853
22095
|
id: this.selectedCourse.id,
|
|
21854
22096
|
name: this.selectedCourse.name,
|
|
21855
22097
|
description: this.selectedCourse.description,
|
|
21856
22098
|
agentName: this.databaseConfig?.agentName
|
|
21857
22099
|
} : {}}
|
|
21858
|
-
?open=${this.
|
|
21859
|
-
?disabled=${!this.
|
|
22100
|
+
?open=${this.showVoiceGuidanceModal}
|
|
22101
|
+
?disabled=${!this.voiceGuidanceEnabled}
|
|
21860
22102
|
color=${this.primaryColor}
|
|
21861
|
-
@obi-continue=${this.
|
|
21862
|
-
@obi-close=${this.
|
|
22103
|
+
@obi-continue=${this.handleVoiceGuidanceModalContinue}
|
|
22104
|
+
@obi-close=${this.handleVoiceGuidanceModalClose}
|
|
21863
22105
|
>
|
|
21864
|
-
</obi-
|
|
22106
|
+
</obi-voice-guidance-modal>
|
|
21865
22107
|
` : E$1}
|
|
21866
|
-
${this.
|
|
21867
|
-
<obi-
|
|
22108
|
+
${this.showOverviewModal ? x`
|
|
22109
|
+
<obi-overview-modal
|
|
21868
22110
|
.session=${this.selectedCourse ? {
|
|
21869
22111
|
id: this.selectedCourse.id,
|
|
21870
22112
|
name: this.selectedCourse.name,
|
|
21871
22113
|
description: this.selectedCourse.description,
|
|
21872
22114
|
agentName: this.databaseConfig?.agentName
|
|
21873
22115
|
} : {}}
|
|
21874
|
-
?open=${this.
|
|
21875
|
-
?disabled=${!this.voiceGuidanceEnabled}
|
|
22116
|
+
?open=${this.showOverviewModal}
|
|
21876
22117
|
color=${this.primaryColor}
|
|
21877
|
-
@obi-
|
|
21878
|
-
@obi-close=${this.handleVoiceGuidanceModalClose}
|
|
22118
|
+
@obi-close=${this.handleOverviewModalClose}
|
|
21879
22119
|
>
|
|
21880
22120
|
</obi-voice-guidance-modal>
|
|
21881
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}
|
|
21882
22138
|
`;
|
|
21883
22139
|
}
|
|
21884
22140
|
}
|
|
@@ -22068,6 +22324,9 @@ __decorateClass([
|
|
|
22068
22324
|
__decorateClass([
|
|
22069
22325
|
r$1()
|
|
22070
22326
|
], ObiWidget.prototype, "micShareEnabled", 2);
|
|
22327
|
+
__decorateClass([
|
|
22328
|
+
r$1()
|
|
22329
|
+
], ObiWidget.prototype, "showOverviewModal", 2);
|
|
22071
22330
|
__decorateClass([
|
|
22072
22331
|
r$1()
|
|
22073
22332
|
], ObiWidget.prototype, "showVoiceGuidanceModal", 2);
|
|
@@ -22128,4 +22387,4 @@ export {
|
|
|
22128
22387
|
withSentryAsyncHandler as w,
|
|
22129
22388
|
x
|
|
22130
22389
|
};
|
|
22131
|
-
//# sourceMappingURL=obi-widget-
|
|
22390
|
+
//# sourceMappingURL=obi-widget-315605ed.js.map
|