obi-sdk 0.14.0 → 0.14.1
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-51f82ecf.js +6 -0
- package/dist/modular/chunks/index-51f82ecf.js.map +1 -0
- package/dist/modular/chunks/{obi-widget-aa83cfb0.js → obi-widget-381a94c3.js} +729 -494
- package/dist/modular/chunks/obi-widget-381a94c3.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 +5226 -4993
- package/dist/react.es.js.map +1 -1
- package/dist/react.umd.js +253 -161
- package/dist/react.umd.js.map +1 -1
- package/dist/ui/components/obi-widget/obi-widget.d.ts +2 -0
- package/package.json +6 -5
- package/dist/modular/chunks/index-01b0e3f3.js +0 -6
- package/dist/modular/chunks/index-01b0e3f3.js.map +0 -1
- package/dist/modular/chunks/obi-widget-aa83cfb0.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);
|
|
@@ -620,12 +620,12 @@ class ObiClient {
|
|
|
620
620
|
body: data
|
|
621
621
|
});
|
|
622
622
|
}
|
|
623
|
-
async getJoinToken(token, {
|
|
623
|
+
async getJoinToken(token, { clientType, user } = {}) {
|
|
624
624
|
return await this.client.GET("/api/join-token", {
|
|
625
625
|
params: {
|
|
626
626
|
query: {
|
|
627
627
|
token,
|
|
628
|
-
...
|
|
628
|
+
...clientType && { client_type: clientType },
|
|
629
629
|
...user && { user: encodeURIComponent(user) }
|
|
630
630
|
}
|
|
631
631
|
}
|
|
@@ -646,10 +646,10 @@ class ObiClient {
|
|
|
646
646
|
}
|
|
647
647
|
const DEFAULT_API_BASE_URL = "https://app.coragents.ai";
|
|
648
648
|
class ObiSession {
|
|
649
|
-
constructor({ sessionId, apiBaseUrl,
|
|
649
|
+
constructor({ sessionId, apiBaseUrl, clientType, user }) {
|
|
650
650
|
this.currentState = SDKState.READY;
|
|
651
651
|
this.livekitState = "speaking";
|
|
652
|
-
this.
|
|
652
|
+
this.clientType = "lp";
|
|
653
653
|
this.agentHasSpoken = false;
|
|
654
654
|
this.assistantAudioContext = null;
|
|
655
655
|
this.userAudioContext = null;
|
|
@@ -658,7 +658,7 @@ class ObiSession {
|
|
|
658
658
|
this.user = void 0;
|
|
659
659
|
this.sessionId = sessionId;
|
|
660
660
|
this.apiBaseUrl = apiBaseUrl || DEFAULT_API_BASE_URL;
|
|
661
|
-
this.
|
|
661
|
+
this.clientType = clientType ?? "lp";
|
|
662
662
|
this.client = new ObiClient({
|
|
663
663
|
baseUrl: this.apiBaseUrl
|
|
664
664
|
});
|
|
@@ -807,7 +807,7 @@ class ObiSession {
|
|
|
807
807
|
});
|
|
808
808
|
this.setupRoomEventListeners();
|
|
809
809
|
const joinToken = await this.client.getJoinToken(this.sessionId, {
|
|
810
|
-
|
|
810
|
+
clientType: this.clientType,
|
|
811
811
|
...this.user && { user: JSON.stringify(this.user) }
|
|
812
812
|
});
|
|
813
813
|
await this.room.connect(joinToken.data.url, joinToken.data.token);
|
|
@@ -896,6 +896,22 @@ class ObiSession {
|
|
|
896
896
|
throw new Error("Microphone permission denied");
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
|
+
async requestMicrophoneAndPublish() {
|
|
900
|
+
if (!this.room) {
|
|
901
|
+
console.warn("[obi] shareMic called while not connected");
|
|
902
|
+
return;
|
|
903
|
+
}
|
|
904
|
+
await this.requestMicrophone();
|
|
905
|
+
if (!this.microphoneStream) {
|
|
906
|
+
console.warn("[obi] failed to share microphone");
|
|
907
|
+
return;
|
|
908
|
+
}
|
|
909
|
+
const micTrack = this.microphoneStream.getAudioTracks()[0];
|
|
910
|
+
await this.room.localParticipant.publishTrack(micTrack, {
|
|
911
|
+
name: "microphone",
|
|
912
|
+
source: Track.Source.Microphone
|
|
913
|
+
});
|
|
914
|
+
}
|
|
899
915
|
async shareMic() {
|
|
900
916
|
if (!this.room) {
|
|
901
917
|
console.warn("[obi] shareMic called while not connected");
|
|
@@ -903,22 +919,18 @@ class ObiSession {
|
|
|
903
919
|
}
|
|
904
920
|
this.emitter.emit("preMicShare");
|
|
905
921
|
try {
|
|
906
|
-
await this.
|
|
907
|
-
if (!this.microphoneStream) {
|
|
908
|
-
console.warn("[obi] failed to share microphone");
|
|
909
|
-
return;
|
|
910
|
-
}
|
|
911
|
-
const micTrack = this.microphoneStream.getAudioTracks()[0];
|
|
912
|
-
await this.room.localParticipant.publishTrack(micTrack, {
|
|
913
|
-
name: "microphone",
|
|
914
|
-
source: Track.Source.Microphone
|
|
915
|
-
});
|
|
922
|
+
await this.requestMicrophoneAndPublish();
|
|
916
923
|
await this.room.localParticipant.publishData(new TextEncoder().encode(JSON.stringify({
|
|
917
924
|
request: "share_mic",
|
|
918
925
|
success: true
|
|
919
926
|
})), { reliable: true });
|
|
920
|
-
this.emitter.emit("micShared");
|
|
927
|
+
this.emitter.emit("micShared", true);
|
|
921
928
|
} catch (error) {
|
|
929
|
+
await this.room.localParticipant.publishData(new TextEncoder().encode(JSON.stringify({
|
|
930
|
+
request: "share_mic",
|
|
931
|
+
success: false
|
|
932
|
+
})), { reliable: true });
|
|
933
|
+
this.emitter.emit("micShared", false);
|
|
922
934
|
console.error("[obi] error sharing microphone:", error);
|
|
923
935
|
this.emitter.emit("error", error instanceof Error ? error : new Error(String(error)));
|
|
924
936
|
}
|
|
@@ -8909,7 +8921,7 @@ var CanvasRenderer = (
|
|
|
8909
8921
|
};
|
|
8910
8922
|
CanvasRenderer2.prototype.renderStackContent = function(stack) {
|
|
8911
8923
|
return __awaiter(this, void 0, void 0, function() {
|
|
8912
|
-
var _i, _a2, child, _b2, _c, child, _d, _e2, child, _f, _g, child, _h, _j, child, _k, _l, child, _m,
|
|
8924
|
+
var _i, _a2, child, _b2, _c, child, _d, _e2, child, _f, _g, child, _h, _j, child, _k, _l, child, _m, _o2, child;
|
|
8913
8925
|
return __generator(this, function(_p) {
|
|
8914
8926
|
switch (_p.label) {
|
|
8915
8927
|
case 0:
|
|
@@ -9010,12 +9022,12 @@ var CanvasRenderer = (
|
|
|
9010
9022
|
_k++;
|
|
9011
9023
|
return [3, 23];
|
|
9012
9024
|
case 26:
|
|
9013
|
-
_m = 0,
|
|
9025
|
+
_m = 0, _o2 = stack.positiveZIndex;
|
|
9014
9026
|
_p.label = 27;
|
|
9015
9027
|
case 27:
|
|
9016
|
-
if (!(_m <
|
|
9028
|
+
if (!(_m < _o2.length))
|
|
9017
9029
|
return [3, 30];
|
|
9018
|
-
child =
|
|
9030
|
+
child = _o2[_m];
|
|
9019
9031
|
return [4, this.renderStack(child)];
|
|
9020
9032
|
case 28:
|
|
9021
9033
|
_p.sent();
|
|
@@ -9665,7 +9677,7 @@ if (typeof window !== "undefined") {
|
|
|
9665
9677
|
var renderElement = function(element, opts) {
|
|
9666
9678
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
9667
9679
|
var ownerDocument, defaultView, resourceOptions, contextOptions, windowOptions, windowBounds, context, foreignObjectRendering, cloneOptions, documentCloner, clonedElement, container, _a2, width, height, left, top, backgroundColor2, renderOptions, canvas, renderer, root, renderer;
|
|
9668
|
-
var _b2, _c, _d, _e2, _f, _g, _h, _j, _k, _l, _m,
|
|
9680
|
+
var _b2, _c, _d, _e2, _f, _g, _h, _j, _k, _l, _m, _o2, _p, _q, _r, _s, _t2;
|
|
9669
9681
|
return __generator(this, function(_u) {
|
|
9670
9682
|
switch (_u.label) {
|
|
9671
9683
|
case 0:
|
|
@@ -9718,7 +9730,7 @@ var renderElement = function(element, opts) {
|
|
|
9718
9730
|
renderOptions = {
|
|
9719
9731
|
canvas: opts.canvas,
|
|
9720
9732
|
backgroundColor: backgroundColor2,
|
|
9721
|
-
scale: (
|
|
9733
|
+
scale: (_o2 = (_m = opts.scale) !== null && _m !== void 0 ? _m : defaultView.devicePixelRatio) !== null && _o2 !== void 0 ? _o2 : 1,
|
|
9722
9734
|
x: ((_p = opts.x) !== null && _p !== void 0 ? _p : 0) + left,
|
|
9723
9735
|
y: ((_q = opts.y) !== null && _q !== void 0 ? _q : 0) + top,
|
|
9724
9736
|
width: (_r = opts.width) !== null && _r !== void 0 ? _r : Math.ceil(width),
|
|
@@ -10029,8 +10041,8 @@ let y$1 = class y extends HTMLElement {
|
|
|
10029
10041
|
}
|
|
10030
10042
|
};
|
|
10031
10043
|
y$1.elementStyles = [], y$1.shadowRootOptions = { mode: "open" }, y$1[d$1("elementProperties")] = /* @__PURE__ */ new Map(), y$1[d$1("finalized")] = /* @__PURE__ */ new Map(), p$1?.({ ReactiveElement: y$1 }), (a$2.reactiveElementVersions ?? (a$2.reactiveElementVersions = [])).push("2.1.0");
|
|
10032
|
-
const t$1 = globalThis, i$2 = t$1.trustedTypes, s$2 = i$2 ? i$2.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e$2 = "$lit$", h$2 = `lit$${Math.random().toFixed(9).slice(2)}$`, o$4 = "?" + h$2, n$3 = `<${o$4}>`, r$3 = document, l = () => r$3.createComment(""), c$1 = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a$1 = Array.isArray, u = (t2) => a$1(t2) || "function" == typeof t2?.[Symbol.iterator], d = "[ \n\f\r]", f$3 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v$1 = /-->/g, _ = />/g, m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^
|
|
10033
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g
|
|
10044
|
+
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}*(?:[^
|
|
10045
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g = /"/g, $$1 = /^(?:script|style|textarea|title)$/i, y2 = (t2) => (i3, ...s2) => ({ _$litType$: t2, strings: i3, values: s2 }), x = y2(1), b = y2(2), T$1 = Symbol.for("lit-noChange"), E$1 = Symbol.for("lit-nothing"), A$1 = /* @__PURE__ */ new WeakMap(), C$1 = r$3.createTreeWalker(r$3, 129);
|
|
10034
10046
|
function P$1(t2, i3) {
|
|
10035
10047
|
if (!a$1(t2) || !t2.hasOwnProperty("raw"))
|
|
10036
10048
|
throw Error("invalid template strings array");
|
|
@@ -10043,8 +10055,8 @@ const V$1 = (t2, i3) => {
|
|
|
10043
10055
|
const s3 = t2[i4];
|
|
10044
10056
|
let a2, u2, d2 = -1, y3 = 0;
|
|
10045
10057
|
for (; y3 < s3.length && (c2.lastIndex = y3, u2 = c2.exec(s3), null !== u2); )
|
|
10046
|
-
y3 = c2.lastIndex, c2 === f$3 ? "!--" === u2[1] ? c2 = v$1 : void 0 !== u2[1] ? c2 = _ : void 0 !== u2[2] ? ($$1.test(u2[2]) && (r2 = RegExp("</" + u2[2], "g")), c2 = m) : void 0 !== u2[3] && (c2 = m) : c2 === m ? ">" === u2[0] ? (c2 = r2 ?? f$3, d2 = -1) : void 0 === u2[1] ? d2 = -2 : (d2 = c2.lastIndex - u2[2].length, a2 = u2[1], c2 = void 0 === u2[3] ? m : '"' === u2[3] ? g
|
|
10047
|
-
const x2 = c2 === m && t2[i4 + 1].startsWith("/>") ? " " : "";
|
|
10058
|
+
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);
|
|
10059
|
+
const x2 = c2 === m$1 && t2[i4 + 1].startsWith("/>") ? " " : "";
|
|
10048
10060
|
l2 += c2 === f$3 ? s3 + n$3 : d2 >= 0 ? (o2.push(a2), s3.slice(0, d2) + e$2 + s3.slice(d2) + h$2 + x2) : s3 + h$2 + (-2 === d2 ? i4 : x2);
|
|
10049
10061
|
}
|
|
10050
10062
|
return [P$1(t2, l2 + (t2[s2] || "<?>") + (2 === i3 ? "</svg>" : 3 === i3 ? "</math>" : "")), o2];
|
|
@@ -17836,19 +17848,19 @@ if (!customElements.get("obi-searching-loader")) {
|
|
|
17836
17848
|
customElements.define("obi-searching-loader", SearchingLoader);
|
|
17837
17849
|
}
|
|
17838
17850
|
const searchingLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, SearchingLoader }, Symbol.toStringTag, { value: "Module" }));
|
|
17839
|
-
const
|
|
17840
|
-
let
|
|
17851
|
+
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();
|
|
17852
|
+
let tt = class {
|
|
17841
17853
|
constructor(e2, i3, o2) {
|
|
17842
|
-
if (this._$cssResult$ = true, o2 !==
|
|
17854
|
+
if (this._$cssResult$ = true, o2 !== qe)
|
|
17843
17855
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
17844
17856
|
this.cssText = e2, this.t = i3;
|
|
17845
17857
|
}
|
|
17846
17858
|
get styleSheet() {
|
|
17847
17859
|
let e2 = this.o;
|
|
17848
17860
|
const i3 = this.t;
|
|
17849
|
-
if (
|
|
17861
|
+
if (Ae && e2 === void 0) {
|
|
17850
17862
|
const o2 = i3 !== void 0 && i3.length === 1;
|
|
17851
|
-
o2 && (e2 =
|
|
17863
|
+
o2 && (e2 = Ne.get(i3)), e2 === void 0 && ((this.o = e2 = new CSSStyleSheet()).replaceSync(this.cssText), o2 && Ne.set(i3, e2));
|
|
17852
17864
|
}
|
|
17853
17865
|
return e2;
|
|
17854
17866
|
}
|
|
@@ -17856,24 +17868,24 @@ let Xe = class {
|
|
|
17856
17868
|
return this.cssText;
|
|
17857
17869
|
}
|
|
17858
17870
|
};
|
|
17859
|
-
const
|
|
17860
|
-
if (
|
|
17871
|
+
const ot = (s2) => new tt(typeof s2 == "string" ? s2 : s2 + "", void 0, qe), it = (s2, e2) => {
|
|
17872
|
+
if (Ae)
|
|
17861
17873
|
s2.adoptedStyleSheets = e2.map((i3) => i3 instanceof CSSStyleSheet ? i3 : i3.styleSheet);
|
|
17862
17874
|
else
|
|
17863
17875
|
for (const i3 of e2) {
|
|
17864
|
-
const o2 = document.createElement("style"), t2 =
|
|
17876
|
+
const o2 = document.createElement("style"), t2 = de.litNonce;
|
|
17865
17877
|
t2 !== void 0 && o2.setAttribute("nonce", t2), o2.textContent = i3.cssText, s2.appendChild(o2);
|
|
17866
17878
|
}
|
|
17867
|
-
},
|
|
17879
|
+
}, ke = Ae ? (s2) => s2 : (s2) => s2 instanceof CSSStyleSheet ? ((e2) => {
|
|
17868
17880
|
let i3 = "";
|
|
17869
17881
|
for (const o2 of e2.cssRules)
|
|
17870
17882
|
i3 += o2.cssText;
|
|
17871
|
-
return
|
|
17883
|
+
return ot(i3);
|
|
17872
17884
|
})(s2) : s2;
|
|
17873
|
-
const { is:
|
|
17885
|
+
const { is: st, defineProperty: rt, getOwnPropertyDescriptor: nt, getOwnPropertyNames: at, getOwnPropertySymbols: lt, getPrototypeOf: ct } = Object, C = globalThis, ze = C.trustedTypes, dt = ze ? ze.emptyScript : "", ht = C.reactiveElementPolyfillSupport, oe = (s2, e2) => s2, he = { toAttribute(s2, e2) {
|
|
17874
17886
|
switch (e2) {
|
|
17875
17887
|
case Boolean:
|
|
17876
|
-
s2 = s2 ?
|
|
17888
|
+
s2 = s2 ? dt : null;
|
|
17877
17889
|
break;
|
|
17878
17890
|
case Object:
|
|
17879
17891
|
case Array:
|
|
@@ -17898,46 +17910,46 @@ const { is: Ke, defineProperty: Qe, getOwnPropertyDescriptor: et, getOwnProperty
|
|
|
17898
17910
|
}
|
|
17899
17911
|
}
|
|
17900
17912
|
return i3;
|
|
17901
|
-
} },
|
|
17913
|
+
} }, Pe = (s2, e2) => !st(s2, e2), Be = { attribute: true, type: String, converter: he, reflect: false, useDefault: false, hasChanged: Pe };
|
|
17902
17914
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
17903
|
-
class
|
|
17915
|
+
class ee extends HTMLElement {
|
|
17904
17916
|
static addInitializer(e2) {
|
|
17905
17917
|
this._$Ei(), (this.l ?? (this.l = [])).push(e2);
|
|
17906
17918
|
}
|
|
17907
17919
|
static get observedAttributes() {
|
|
17908
17920
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
17909
17921
|
}
|
|
17910
|
-
static createProperty(e2, i3 =
|
|
17922
|
+
static createProperty(e2, i3 = Be) {
|
|
17911
17923
|
if (i3.state && (i3.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(e2) && ((i3 = Object.create(i3)).wrapped = true), this.elementProperties.set(e2, i3), !i3.noAccessor) {
|
|
17912
17924
|
const o2 = Symbol(), t2 = this.getPropertyDescriptor(e2, o2, i3);
|
|
17913
|
-
t2 !== void 0 &&
|
|
17925
|
+
t2 !== void 0 && rt(this.prototype, e2, t2);
|
|
17914
17926
|
}
|
|
17915
17927
|
}
|
|
17916
17928
|
static getPropertyDescriptor(e2, i3, o2) {
|
|
17917
|
-
const { get: t2, set: r2 } =
|
|
17929
|
+
const { get: t2, set: r2 } = nt(this.prototype, e2) ?? { get() {
|
|
17918
17930
|
return this[i3];
|
|
17919
17931
|
}, set(n3) {
|
|
17920
17932
|
this[i3] = n3;
|
|
17921
17933
|
} };
|
|
17922
17934
|
return { get: t2, set(n3) {
|
|
17923
|
-
const
|
|
17924
|
-
r2?.call(this, n3), this.requestUpdate(e2,
|
|
17935
|
+
const d2 = t2?.call(this);
|
|
17936
|
+
r2?.call(this, n3), this.requestUpdate(e2, d2, o2);
|
|
17925
17937
|
}, configurable: true, enumerable: true };
|
|
17926
17938
|
}
|
|
17927
17939
|
static getPropertyOptions(e2) {
|
|
17928
|
-
return this.elementProperties.get(e2) ??
|
|
17940
|
+
return this.elementProperties.get(e2) ?? Be;
|
|
17929
17941
|
}
|
|
17930
17942
|
static _$Ei() {
|
|
17931
|
-
if (this.hasOwnProperty(
|
|
17943
|
+
if (this.hasOwnProperty(oe("elementProperties")))
|
|
17932
17944
|
return;
|
|
17933
|
-
const e2 =
|
|
17945
|
+
const e2 = ct(this);
|
|
17934
17946
|
e2.finalize(), e2.l !== void 0 && (this.l = [...e2.l]), this.elementProperties = new Map(e2.elementProperties);
|
|
17935
17947
|
}
|
|
17936
17948
|
static finalize() {
|
|
17937
|
-
if (this.hasOwnProperty(
|
|
17949
|
+
if (this.hasOwnProperty(oe("finalized")))
|
|
17938
17950
|
return;
|
|
17939
|
-
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(
|
|
17940
|
-
const i3 = this.properties, o2 = [...
|
|
17951
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(oe("properties"))) {
|
|
17952
|
+
const i3 = this.properties, o2 = [...at(i3), ...lt(i3)];
|
|
17941
17953
|
for (const t2 of o2)
|
|
17942
17954
|
this.createProperty(t2, i3[t2]);
|
|
17943
17955
|
}
|
|
@@ -17960,9 +17972,9 @@ class J extends HTMLElement {
|
|
|
17960
17972
|
if (Array.isArray(e2)) {
|
|
17961
17973
|
const o2 = new Set(e2.flat(1 / 0).reverse());
|
|
17962
17974
|
for (const t2 of o2)
|
|
17963
|
-
i3.unshift(
|
|
17975
|
+
i3.unshift(ke(t2));
|
|
17964
17976
|
} else
|
|
17965
|
-
e2 !== void 0 && i3.push(
|
|
17977
|
+
e2 !== void 0 && i3.push(ke(e2));
|
|
17966
17978
|
return i3;
|
|
17967
17979
|
}
|
|
17968
17980
|
static _$Eu(e2, i3) {
|
|
@@ -17989,7 +18001,7 @@ class J extends HTMLElement {
|
|
|
17989
18001
|
}
|
|
17990
18002
|
createRenderRoot() {
|
|
17991
18003
|
const e2 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
17992
|
-
return
|
|
18004
|
+
return it(e2, this.constructor.elementStyles), e2;
|
|
17993
18005
|
}
|
|
17994
18006
|
connectedCallback() {
|
|
17995
18007
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach((e2) => e2.hostConnected?.());
|
|
@@ -18005,21 +18017,21 @@ class J extends HTMLElement {
|
|
|
18005
18017
|
_$ET(e2, i3) {
|
|
18006
18018
|
const o2 = this.constructor.elementProperties.get(e2), t2 = this.constructor._$Eu(e2, o2);
|
|
18007
18019
|
if (t2 !== void 0 && o2.reflect === true) {
|
|
18008
|
-
const r2 = (o2.converter?.toAttribute !== void 0 ? o2.converter :
|
|
18020
|
+
const r2 = (o2.converter?.toAttribute !== void 0 ? o2.converter : he).toAttribute(i3, o2.type);
|
|
18009
18021
|
this._$Em = e2, r2 == null ? this.removeAttribute(t2) : this.setAttribute(t2, r2), this._$Em = null;
|
|
18010
18022
|
}
|
|
18011
18023
|
}
|
|
18012
18024
|
_$AK(e2, i3) {
|
|
18013
18025
|
const o2 = this.constructor, t2 = o2._$Eh.get(e2);
|
|
18014
18026
|
if (t2 !== void 0 && this._$Em !== t2) {
|
|
18015
|
-
const r2 = o2.getPropertyOptions(t2), n3 = typeof r2.converter == "function" ? { fromAttribute: r2.converter } : r2.converter?.fromAttribute !== void 0 ? r2.converter :
|
|
18027
|
+
const r2 = o2.getPropertyOptions(t2), n3 = typeof r2.converter == "function" ? { fromAttribute: r2.converter } : r2.converter?.fromAttribute !== void 0 ? r2.converter : he;
|
|
18016
18028
|
this._$Em = t2, this[t2] = n3.fromAttribute(i3, r2.type) ?? this._$Ej?.get(t2) ?? null, this._$Em = null;
|
|
18017
18029
|
}
|
|
18018
18030
|
}
|
|
18019
18031
|
requestUpdate(e2, i3, o2) {
|
|
18020
18032
|
if (e2 !== void 0) {
|
|
18021
18033
|
const t2 = this.constructor, r2 = this[e2];
|
|
18022
|
-
if (o2 ?? (o2 = t2.getPropertyOptions(e2)), !((o2.hasChanged ??
|
|
18034
|
+
if (o2 ?? (o2 = t2.getPropertyOptions(e2)), !((o2.hasChanged ?? Pe)(r2, i3) || o2.useDefault && o2.reflect && r2 === this._$Ej?.get(e2) && !this.hasAttribute(t2._$Eu(e2, o2))))
|
|
18023
18035
|
return;
|
|
18024
18036
|
this.C(e2, i3, o2);
|
|
18025
18037
|
}
|
|
@@ -18053,8 +18065,8 @@ class J extends HTMLElement {
|
|
|
18053
18065
|
const o2 = this.constructor.elementProperties;
|
|
18054
18066
|
if (o2.size > 0)
|
|
18055
18067
|
for (const [t2, r2] of o2) {
|
|
18056
|
-
const { wrapped: n3 } = r2,
|
|
18057
|
-
n3 !== true || this._$AL.has(t2) ||
|
|
18068
|
+
const { wrapped: n3 } = r2, d2 = this[t2];
|
|
18069
|
+
n3 !== true || this._$AL.has(t2) || d2 === void 0 || this.C(t2, void 0, r2, d2);
|
|
18058
18070
|
}
|
|
18059
18071
|
}
|
|
18060
18072
|
let e2 = false;
|
|
@@ -18091,30 +18103,30 @@ class J extends HTMLElement {
|
|
|
18091
18103
|
firstUpdated(e2) {
|
|
18092
18104
|
}
|
|
18093
18105
|
}
|
|
18094
|
-
|
|
18095
|
-
const
|
|
18106
|
+
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");
|
|
18107
|
+
const pt = { attribute: true, type: String, converter: he, reflect: false, hasChanged: Pe }, ut = (s2 = pt, e2, i3) => {
|
|
18096
18108
|
const { kind: o2, metadata: t2 } = i3;
|
|
18097
18109
|
let r2 = globalThis.litPropertyMetadata.get(t2);
|
|
18098
18110
|
if (r2 === void 0 && globalThis.litPropertyMetadata.set(t2, r2 = /* @__PURE__ */ new Map()), o2 === "setter" && ((s2 = Object.create(s2)).wrapped = true), r2.set(i3.name, s2), o2 === "accessor") {
|
|
18099
18111
|
const { name: n3 } = i3;
|
|
18100
|
-
return { set(
|
|
18112
|
+
return { set(d2) {
|
|
18101
18113
|
const l2 = e2.get.call(this);
|
|
18102
|
-
e2.set.call(this,
|
|
18103
|
-
}, init(
|
|
18104
|
-
return
|
|
18114
|
+
e2.set.call(this, d2), this.requestUpdate(n3, l2, s2);
|
|
18115
|
+
}, init(d2) {
|
|
18116
|
+
return d2 !== void 0 && this.C(n3, void 0, s2, d2), d2;
|
|
18105
18117
|
} };
|
|
18106
18118
|
}
|
|
18107
18119
|
if (o2 === "setter") {
|
|
18108
18120
|
const { name: n3 } = i3;
|
|
18109
|
-
return function(
|
|
18121
|
+
return function(d2) {
|
|
18110
18122
|
const l2 = this[n3];
|
|
18111
|
-
e2.call(this,
|
|
18123
|
+
e2.call(this, d2), this.requestUpdate(n3, l2, s2);
|
|
18112
18124
|
};
|
|
18113
18125
|
}
|
|
18114
18126
|
throw Error("Unsupported decorator location: " + o2);
|
|
18115
18127
|
};
|
|
18116
18128
|
function a(s2) {
|
|
18117
|
-
return (e2, i3) => typeof i3 == "object" ?
|
|
18129
|
+
return (e2, i3) => typeof i3 == "object" ? ut(s2, e2, i3) : ((o2, t2, r2) => {
|
|
18118
18130
|
const n3 = t2.hasOwnProperty(r2);
|
|
18119
18131
|
return t2.constructor.createProperty(r2, o2), n3 ? Object.getOwnPropertyDescriptor(t2, r2) : void 0;
|
|
18120
18132
|
})(s2, e2, i3);
|
|
@@ -18122,12 +18134,12 @@ function a(s2) {
|
|
|
18122
18134
|
function v(s2) {
|
|
18123
18135
|
return a({ ...s2, state: true, attribute: false });
|
|
18124
18136
|
}
|
|
18125
|
-
const
|
|
18126
|
-
function
|
|
18137
|
+
const Le = (s2, e2, i3) => (i3.configurable = true, i3.enumerable = true, Reflect.decorate && typeof e2 != "object" && Object.defineProperty(s2, e2, i3), i3);
|
|
18138
|
+
function bt(s2, e2) {
|
|
18127
18139
|
return (i3, o2, t2) => {
|
|
18128
18140
|
const r2 = (n3) => n3.renderRoot?.querySelector(s2) ?? null;
|
|
18129
18141
|
if (e2) {
|
|
18130
|
-
const { get: n3, set:
|
|
18142
|
+
const { get: n3, set: d2 } = typeof o2 == "object" ? i3 : t2 ?? (() => {
|
|
18131
18143
|
const l2 = Symbol();
|
|
18132
18144
|
return { get() {
|
|
18133
18145
|
return this[l2];
|
|
@@ -18135,67 +18147,67 @@ function lt(s2, e2) {
|
|
|
18135
18147
|
this[l2] = u2;
|
|
18136
18148
|
} };
|
|
18137
18149
|
})();
|
|
18138
|
-
return
|
|
18150
|
+
return Le(i3, o2, { get() {
|
|
18139
18151
|
let l2 = n3.call(this);
|
|
18140
|
-
return l2 === void 0 && (l2 = r2(this), (l2 !== null || this.hasUpdated) &&
|
|
18152
|
+
return l2 === void 0 && (l2 = r2(this), (l2 !== null || this.hasUpdated) && d2.call(this, l2)), l2;
|
|
18141
18153
|
} });
|
|
18142
18154
|
}
|
|
18143
|
-
return
|
|
18155
|
+
return Le(i3, o2, { get() {
|
|
18144
18156
|
return r2(this);
|
|
18145
18157
|
} });
|
|
18146
18158
|
};
|
|
18147
18159
|
}
|
|
18148
|
-
const
|
|
18149
|
-
\f\r]`,
|
|
18150
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
18151
|
-
function
|
|
18152
|
-
if (!
|
|
18160
|
+
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 = `[
|
|
18161
|
+
\f\r]`, te = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Re = /-->/g, Ue = />/g, T = RegExp(`>|${Ce}(?:([^\\s"'>=/]+)(${Ce}*=${Ce}*(?:[^
|
|
18162
|
+
\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);
|
|
18163
|
+
function Xe(s2, e2) {
|
|
18164
|
+
if (!De(s2) || !s2.hasOwnProperty("raw"))
|
|
18153
18165
|
throw Error("invalid template strings array");
|
|
18154
|
-
return
|
|
18166
|
+
return Me !== void 0 ? Me.createHTML(e2) : e2;
|
|
18155
18167
|
}
|
|
18156
|
-
const
|
|
18168
|
+
const ft = (s2, e2) => {
|
|
18157
18169
|
const i3 = s2.length - 1, o2 = [];
|
|
18158
|
-
let t2, r2 = e2 === 2 ? "<svg>" : e2 === 3 ? "<math>" : "", n3 =
|
|
18159
|
-
for (let
|
|
18160
|
-
const l2 = s2[
|
|
18161
|
-
let u2,
|
|
18162
|
-
for (;
|
|
18163
|
-
|
|
18164
|
-
const x2 = n3 ===
|
|
18165
|
-
r2 += n3 ===
|
|
18166
|
-
}
|
|
18167
|
-
return [
|
|
18168
|
-
};
|
|
18169
|
-
class
|
|
18170
|
+
let t2, r2 = e2 === 2 ? "<svg>" : e2 === 3 ? "<math>" : "", n3 = te;
|
|
18171
|
+
for (let d2 = 0; d2 < i3; d2++) {
|
|
18172
|
+
const l2 = s2[d2];
|
|
18173
|
+
let u2, h2, p2 = -1, b2 = 0;
|
|
18174
|
+
for (; b2 < l2.length && (n3.lastIndex = b2, h2 = n3.exec(l2), h2 !== null); )
|
|
18175
|
+
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);
|
|
18176
|
+
const x2 = n3 === T && s2[d2 + 1].startsWith("/>") ? " " : "";
|
|
18177
|
+
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);
|
|
18178
|
+
}
|
|
18179
|
+
return [Xe(s2, r2 + (s2[i3] || "<?>") + (e2 === 2 ? "</svg>" : e2 === 3 ? "</math>" : "")), o2];
|
|
18180
|
+
};
|
|
18181
|
+
class re {
|
|
18170
18182
|
constructor({ strings: e2, _$litType$: i3 }, o2) {
|
|
18171
18183
|
let t2;
|
|
18172
18184
|
this.parts = [];
|
|
18173
18185
|
let r2 = 0, n3 = 0;
|
|
18174
|
-
const
|
|
18175
|
-
if (this.el =
|
|
18186
|
+
const d2 = e2.length - 1, l2 = this.parts, [u2, h2] = ft(e2, i3);
|
|
18187
|
+
if (this.el = re.createElement(u2, o2), N2.currentNode = this.el.content, i3 === 2 || i3 === 3) {
|
|
18176
18188
|
const p2 = this.el.content.firstChild;
|
|
18177
18189
|
p2.replaceWith(...p2.childNodes);
|
|
18178
18190
|
}
|
|
18179
|
-
for (; (t2 =
|
|
18191
|
+
for (; (t2 = N2.nextNode()) !== null && l2.length < d2; ) {
|
|
18180
18192
|
if (t2.nodeType === 1) {
|
|
18181
18193
|
if (t2.hasAttributes())
|
|
18182
18194
|
for (const p2 of t2.getAttributeNames())
|
|
18183
|
-
if (p2.endsWith(
|
|
18184
|
-
const
|
|
18185
|
-
l2.push({ type: 1, index: r2, name: _2[2], strings: x2, ctor: _2[1] === "." ?
|
|
18195
|
+
if (p2.endsWith(We)) {
|
|
18196
|
+
const b2 = h2[n3++], x2 = t2.getAttribute(p2).split(E), _2 = /([.?@])?(.*)/.exec(b2);
|
|
18197
|
+
l2.push({ type: 1, index: r2, name: _2[2], strings: x2, ctor: _2[1] === "." ? yt : _2[1] === "?" ? xt : _2[1] === "@" ? wt : ge }), t2.removeAttribute(p2);
|
|
18186
18198
|
} else
|
|
18187
18199
|
p2.startsWith(E) && (l2.push({ type: 6, index: r2 }), t2.removeAttribute(p2));
|
|
18188
|
-
if (
|
|
18189
|
-
const p2 = t2.textContent.split(E),
|
|
18190
|
-
if (
|
|
18191
|
-
t2.textContent =
|
|
18192
|
-
for (let x2 = 0; x2 <
|
|
18193
|
-
t2.append(p2[x2],
|
|
18194
|
-
t2.append(p2[
|
|
18200
|
+
if (Ge.test(t2.tagName)) {
|
|
18201
|
+
const p2 = t2.textContent.split(E), b2 = p2.length - 1;
|
|
18202
|
+
if (b2 > 0) {
|
|
18203
|
+
t2.textContent = pe ? pe.emptyScript : "";
|
|
18204
|
+
for (let x2 = 0; x2 < b2; x2++)
|
|
18205
|
+
t2.append(p2[x2], ue()), N2.nextNode(), l2.push({ type: 2, index: ++r2 });
|
|
18206
|
+
t2.append(p2[b2], ue());
|
|
18195
18207
|
}
|
|
18196
18208
|
}
|
|
18197
18209
|
} else if (t2.nodeType === 8)
|
|
18198
|
-
if (t2.data ===
|
|
18210
|
+
if (t2.data === Ye)
|
|
18199
18211
|
l2.push({ type: 2, index: r2 });
|
|
18200
18212
|
else {
|
|
18201
18213
|
let p2 = -1;
|
|
@@ -18210,14 +18222,14 @@ class oe {
|
|
|
18210
18222
|
return o2.innerHTML = e2, o2;
|
|
18211
18223
|
}
|
|
18212
18224
|
}
|
|
18213
|
-
function
|
|
18214
|
-
if (e2 ===
|
|
18225
|
+
function U(s2, e2, i3 = s2, o2) {
|
|
18226
|
+
if (e2 === R2)
|
|
18215
18227
|
return e2;
|
|
18216
18228
|
let t2 = o2 !== void 0 ? i3._$Co?.[o2] : i3._$Cl;
|
|
18217
|
-
const r2 =
|
|
18218
|
-
return t2?.constructor !== r2 && (t2?._$AO?.(false), r2 === void 0 ? t2 = void 0 : (t2 = new r2(s2), t2._$AT(s2, i3, o2)), o2 !== void 0 ? (i3._$Co ?? (i3._$Co = []))[o2] = t2 : i3._$Cl = t2), t2 !== void 0 && (e2 =
|
|
18229
|
+
const r2 = se(e2) ? void 0 : e2._$litDirective$;
|
|
18230
|
+
return t2?.constructor !== r2 && (t2?._$AO?.(false), r2 === void 0 ? t2 = void 0 : (t2 = new r2(s2), t2._$AT(s2, i3, o2)), o2 !== void 0 ? (i3._$Co ?? (i3._$Co = []))[o2] = t2 : i3._$Cl = t2), t2 !== void 0 && (e2 = U(s2, t2._$AS(s2, e2.values), t2, o2)), e2;
|
|
18219
18231
|
}
|
|
18220
|
-
class
|
|
18232
|
+
class vt {
|
|
18221
18233
|
constructor(e2, i3) {
|
|
18222
18234
|
this._$AV = [], this._$AN = void 0, this._$AD = e2, this._$AM = i3;
|
|
18223
18235
|
}
|
|
@@ -18229,16 +18241,16 @@ class pt {
|
|
|
18229
18241
|
}
|
|
18230
18242
|
u(e2) {
|
|
18231
18243
|
const { el: { content: i3 }, parts: o2 } = this._$AD, t2 = (e2?.creationScope ?? k2).importNode(i3, true);
|
|
18232
|
-
|
|
18233
|
-
let r2 =
|
|
18244
|
+
N2.currentNode = t2;
|
|
18245
|
+
let r2 = N2.nextNode(), n3 = 0, d2 = 0, l2 = o2[0];
|
|
18234
18246
|
for (; l2 !== void 0; ) {
|
|
18235
18247
|
if (n3 === l2.index) {
|
|
18236
18248
|
let u2;
|
|
18237
|
-
l2.type === 2 ? u2 = new
|
|
18249
|
+
l2.type === 2 ? u2 = new be(r2, r2.nextSibling, this, e2) : l2.type === 1 ? u2 = new l2.ctor(r2, l2.name, l2.strings, this, e2) : l2.type === 6 && (u2 = new $t(r2, this, e2)), this._$AV.push(u2), l2 = o2[++d2];
|
|
18238
18250
|
}
|
|
18239
|
-
n3 !== l2?.index && (r2 =
|
|
18251
|
+
n3 !== l2?.index && (r2 = N2.nextNode(), n3++);
|
|
18240
18252
|
}
|
|
18241
|
-
return
|
|
18253
|
+
return N2.currentNode = k2, t2;
|
|
18242
18254
|
}
|
|
18243
18255
|
p(e2) {
|
|
18244
18256
|
let i3 = 0;
|
|
@@ -18246,7 +18258,7 @@ class pt {
|
|
|
18246
18258
|
o2 !== void 0 && (o2.strings !== void 0 ? (o2._$AI(e2, o2, i3), i3 += o2.strings.length - 2) : o2._$AI(e2[i3])), i3++;
|
|
18247
18259
|
}
|
|
18248
18260
|
}
|
|
18249
|
-
class
|
|
18261
|
+
class be {
|
|
18250
18262
|
get _$AU() {
|
|
18251
18263
|
return this._$AM?._$AU ?? this._$Cv;
|
|
18252
18264
|
}
|
|
@@ -18265,7 +18277,7 @@ class de {
|
|
|
18265
18277
|
return this._$AB;
|
|
18266
18278
|
}
|
|
18267
18279
|
_$AI(e2, i3 = this) {
|
|
18268
|
-
e2 =
|
|
18280
|
+
e2 = U(this, e2, i3), se(e2) ? e2 === f2 || e2 == null || e2 === "" ? (this._$AH !== f2 && this._$AR(), this._$AH = f2) : e2 !== this._$AH && e2 !== R2 && this._(e2) : e2._$litType$ !== void 0 ? this.$(e2) : e2.nodeType !== void 0 ? this.T(e2) : mt(e2) ? this.k(e2) : this._(e2);
|
|
18269
18281
|
}
|
|
18270
18282
|
O(e2) {
|
|
18271
18283
|
return this._$AA.parentNode.insertBefore(e2, this._$AB);
|
|
@@ -18274,27 +18286,27 @@ class de {
|
|
|
18274
18286
|
this._$AH !== e2 && (this._$AR(), this._$AH = this.O(e2));
|
|
18275
18287
|
}
|
|
18276
18288
|
_(e2) {
|
|
18277
|
-
this._$AH !== f2 &&
|
|
18289
|
+
this._$AH !== f2 && se(this._$AH) ? this._$AA.nextSibling.data = e2 : this.T(k2.createTextNode(e2)), this._$AH = e2;
|
|
18278
18290
|
}
|
|
18279
18291
|
$(e2) {
|
|
18280
|
-
const { values: i3, _$litType$: o2 } = e2, t2 = typeof o2 == "number" ? this._$AC(e2) : (o2.el === void 0 && (o2.el =
|
|
18292
|
+
const { values: i3, _$litType$: o2 } = e2, t2 = typeof o2 == "number" ? this._$AC(e2) : (o2.el === void 0 && (o2.el = re.createElement(Xe(o2.h, o2.h[0]), this.options)), o2);
|
|
18281
18293
|
if (this._$AH?._$AD === t2)
|
|
18282
18294
|
this._$AH.p(i3);
|
|
18283
18295
|
else {
|
|
18284
|
-
const r2 = new
|
|
18296
|
+
const r2 = new vt(t2, this), n3 = r2.u(this.options);
|
|
18285
18297
|
r2.p(i3), this.T(n3), this._$AH = r2;
|
|
18286
18298
|
}
|
|
18287
18299
|
}
|
|
18288
18300
|
_$AC(e2) {
|
|
18289
|
-
let i3 =
|
|
18290
|
-
return i3 === void 0 &&
|
|
18301
|
+
let i3 = Ve.get(e2.strings);
|
|
18302
|
+
return i3 === void 0 && Ve.set(e2.strings, i3 = new re(e2)), i3;
|
|
18291
18303
|
}
|
|
18292
18304
|
k(e2) {
|
|
18293
|
-
|
|
18305
|
+
De(this._$AH) || (this._$AH = [], this._$AR());
|
|
18294
18306
|
const i3 = this._$AH;
|
|
18295
18307
|
let o2, t2 = 0;
|
|
18296
18308
|
for (const r2 of e2)
|
|
18297
|
-
t2 === i3.length ? i3.push(o2 = new
|
|
18309
|
+
t2 === i3.length ? i3.push(o2 = new be(this.O(ue()), this.O(ue()), this, this.options)) : o2 = i3[t2], o2._$AI(r2), t2++;
|
|
18298
18310
|
t2 < i3.length && (this._$AR(o2 && o2._$AB.nextSibling, t2), i3.length = t2);
|
|
18299
18311
|
}
|
|
18300
18312
|
_$AR(e2 = this._$AA.nextSibling, i3) {
|
|
@@ -18307,7 +18319,7 @@ class de {
|
|
|
18307
18319
|
this._$AM === void 0 && (this._$Cv = e2, this._$AP?.(e2));
|
|
18308
18320
|
}
|
|
18309
18321
|
}
|
|
18310
|
-
class
|
|
18322
|
+
class ge {
|
|
18311
18323
|
get tagName() {
|
|
18312
18324
|
return this.element.tagName;
|
|
18313
18325
|
}
|
|
@@ -18321,12 +18333,12 @@ class he {
|
|
|
18321
18333
|
const r2 = this.strings;
|
|
18322
18334
|
let n3 = false;
|
|
18323
18335
|
if (r2 === void 0)
|
|
18324
|
-
e2 =
|
|
18336
|
+
e2 = U(this, e2, i3, 0), n3 = !se(e2) || e2 !== this._$AH && e2 !== R2, n3 && (this._$AH = e2);
|
|
18325
18337
|
else {
|
|
18326
|
-
const
|
|
18338
|
+
const d2 = e2;
|
|
18327
18339
|
let l2, u2;
|
|
18328
18340
|
for (e2 = r2[0], l2 = 0; l2 < r2.length - 1; l2++)
|
|
18329
|
-
u2 =
|
|
18341
|
+
u2 = U(this, d2[o2 + l2], i3, l2), u2 === R2 && (u2 = this._$AH[l2]), n3 || (n3 = !se(u2) || u2 !== this._$AH[l2]), u2 === f2 ? e2 = f2 : e2 !== f2 && (e2 += (u2 ?? "") + r2[l2 + 1]), this._$AH[l2] = u2;
|
|
18330
18342
|
}
|
|
18331
18343
|
n3 && !t2 && this.j(e2);
|
|
18332
18344
|
}
|
|
@@ -18334,7 +18346,7 @@ class he {
|
|
|
18334
18346
|
e2 === f2 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e2 ?? "");
|
|
18335
18347
|
}
|
|
18336
18348
|
}
|
|
18337
|
-
class
|
|
18349
|
+
class yt extends ge {
|
|
18338
18350
|
constructor() {
|
|
18339
18351
|
super(...arguments), this.type = 3;
|
|
18340
18352
|
}
|
|
@@ -18342,7 +18354,7 @@ class ut extends he {
|
|
|
18342
18354
|
this.element[this.name] = e2 === f2 ? void 0 : e2;
|
|
18343
18355
|
}
|
|
18344
18356
|
}
|
|
18345
|
-
class
|
|
18357
|
+
class xt extends ge {
|
|
18346
18358
|
constructor() {
|
|
18347
18359
|
super(...arguments), this.type = 4;
|
|
18348
18360
|
}
|
|
@@ -18350,12 +18362,12 @@ class bt extends he {
|
|
|
18350
18362
|
this.element.toggleAttribute(this.name, !!e2 && e2 !== f2);
|
|
18351
18363
|
}
|
|
18352
18364
|
}
|
|
18353
|
-
class
|
|
18365
|
+
class wt extends ge {
|
|
18354
18366
|
constructor(e2, i3, o2, t2, r2) {
|
|
18355
18367
|
super(e2, i3, o2, t2, r2), this.type = 5;
|
|
18356
18368
|
}
|
|
18357
18369
|
_$AI(e2, i3 = this) {
|
|
18358
|
-
if ((e2 =
|
|
18370
|
+
if ((e2 = U(this, e2, i3, 0) ?? f2) === R2)
|
|
18359
18371
|
return;
|
|
18360
18372
|
const o2 = this._$AH, t2 = e2 === f2 && o2 !== f2 || e2.capture !== o2.capture || e2.once !== o2.once || e2.passive !== o2.passive, r2 = e2 !== f2 && (o2 === f2 || t2);
|
|
18361
18373
|
t2 && this.element.removeEventListener(this.name, this, o2), r2 && this.element.addEventListener(this.name, this, e2), this._$AH = e2;
|
|
@@ -18364,7 +18376,7 @@ class gt extends he {
|
|
|
18364
18376
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e2) : this._$AH.handleEvent(e2);
|
|
18365
18377
|
}
|
|
18366
18378
|
}
|
|
18367
|
-
class
|
|
18379
|
+
class $t {
|
|
18368
18380
|
constructor(e2, i3, o2) {
|
|
18369
18381
|
this.element = e2, this.type = 6, this._$AN = void 0, this._$AM = i3, this.options = o2;
|
|
18370
18382
|
}
|
|
@@ -18372,13 +18384,13 @@ class mt {
|
|
|
18372
18384
|
return this._$AM._$AU;
|
|
18373
18385
|
}
|
|
18374
18386
|
_$AI(e2) {
|
|
18375
|
-
|
|
18387
|
+
U(this, e2);
|
|
18376
18388
|
}
|
|
18377
18389
|
}
|
|
18378
|
-
const
|
|
18379
|
-
|
|
18380
|
-
const
|
|
18381
|
-
class
|
|
18390
|
+
const _t = ie.litHtmlPolyfillSupport;
|
|
18391
|
+
_t?.(re, be), (ie.litHtmlVersions ?? (ie.litHtmlVersions = [])).push("3.3.0");
|
|
18392
|
+
const Et = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ct = (s2) => (...e2) => ({ _$litDirective$: s2, values: e2 });
|
|
18393
|
+
class Ot {
|
|
18382
18394
|
constructor(e2) {
|
|
18383
18395
|
}
|
|
18384
18396
|
get _$AU() {
|
|
@@ -18394,9 +18406,9 @@ class yt {
|
|
|
18394
18406
|
return this.render(...i3);
|
|
18395
18407
|
}
|
|
18396
18408
|
}
|
|
18397
|
-
const
|
|
18409
|
+
const Oe = Ct(class extends Ot {
|
|
18398
18410
|
constructor(s2) {
|
|
18399
|
-
if (super(s2), s2.type !==
|
|
18411
|
+
if (super(s2), s2.type !== Et.ATTRIBUTE || s2.name !== "class" || s2.strings?.length > 2)
|
|
18400
18412
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
18401
18413
|
}
|
|
18402
18414
|
render(s2) {
|
|
@@ -18416,9 +18428,9 @@ const $e = xt(class extends yt {
|
|
|
18416
18428
|
const t2 = !!e2[o2];
|
|
18417
18429
|
t2 === this.st.has(o2) || this.nt?.has(o2) || (t2 ? (i3.add(o2), this.st.add(o2)) : (i3.remove(o2), this.st.delete(o2)));
|
|
18418
18430
|
}
|
|
18419
|
-
return
|
|
18431
|
+
return R2;
|
|
18420
18432
|
}
|
|
18421
|
-
}),
|
|
18433
|
+
}), me = i$4`
|
|
18422
18434
|
:host {
|
|
18423
18435
|
/* Colors */
|
|
18424
18436
|
--obi-color-primary: #a10fff;
|
|
@@ -18490,7 +18502,7 @@ const $e = xt(class extends yt {
|
|
|
18490
18502
|
--obi-spinner-size: 16px;
|
|
18491
18503
|
--obi-spinner-border-width: 2px;
|
|
18492
18504
|
}
|
|
18493
|
-
`,
|
|
18505
|
+
`, m = i$4`
|
|
18494
18506
|
:host {
|
|
18495
18507
|
box-sizing: border-box;
|
|
18496
18508
|
font-family: var(--obi-font-family-secondary);
|
|
@@ -18500,12 +18512,12 @@ const $e = xt(class extends yt {
|
|
|
18500
18512
|
box-sizing: inherit;
|
|
18501
18513
|
}
|
|
18502
18514
|
`;
|
|
18503
|
-
var
|
|
18504
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
18515
|
+
var At = Object.defineProperty, Pt = Object.getOwnPropertyDescriptor, O = (s2, e2, i3, o2) => {
|
|
18516
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Pt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
18505
18517
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
18506
|
-
return o2 && t2 &&
|
|
18518
|
+
return o2 && t2 && At(e2, i3, t2), t2;
|
|
18507
18519
|
};
|
|
18508
|
-
class
|
|
18520
|
+
class w extends i$1 {
|
|
18509
18521
|
constructor() {
|
|
18510
18522
|
super(...arguments), this.open = false, this.size = "medium", this.showClose = true, this.closeOnBackdropClick = true, this.closeOnEscape = true, this.closeDisabled = false, this.contentCentered = false, this.handleDialogClick = (e2) => {
|
|
18511
18523
|
if (!this.closeOnBackdropClick || this.closeDisabled)
|
|
@@ -18559,7 +18571,7 @@ class $ extends i$1 {
|
|
|
18559
18571
|
"modal-inner--centered": this.contentCentered
|
|
18560
18572
|
};
|
|
18561
18573
|
return x`
|
|
18562
|
-
<dialog class=${
|
|
18574
|
+
<dialog class=${Oe(e2)}>
|
|
18563
18575
|
${this.showClose ? x`
|
|
18564
18576
|
<button
|
|
18565
18577
|
class="close-button"
|
|
@@ -18572,7 +18584,7 @@ class $ extends i$1 {
|
|
|
18572
18584
|
</button>
|
|
18573
18585
|
` : ""}
|
|
18574
18586
|
|
|
18575
|
-
<div class=${
|
|
18587
|
+
<div class=${Oe(i3)}>
|
|
18576
18588
|
<div class="header">
|
|
18577
18589
|
<slot name="header"></slot>
|
|
18578
18590
|
</div>
|
|
@@ -18589,9 +18601,9 @@ class $ extends i$1 {
|
|
|
18589
18601
|
`;
|
|
18590
18602
|
}
|
|
18591
18603
|
}
|
|
18592
|
-
|
|
18593
|
-
|
|
18594
|
-
|
|
18604
|
+
w.styles = [
|
|
18605
|
+
m,
|
|
18606
|
+
me,
|
|
18595
18607
|
i$4`
|
|
18596
18608
|
:host {
|
|
18597
18609
|
display: contents;
|
|
@@ -18725,37 +18737,37 @@ $.styles = [
|
|
|
18725
18737
|
}
|
|
18726
18738
|
`
|
|
18727
18739
|
];
|
|
18728
|
-
|
|
18740
|
+
O([
|
|
18729
18741
|
a({ type: Boolean, reflect: true })
|
|
18730
|
-
],
|
|
18731
|
-
|
|
18742
|
+
], w.prototype, "open", 2);
|
|
18743
|
+
O([
|
|
18732
18744
|
a({ reflect: true })
|
|
18733
|
-
],
|
|
18734
|
-
|
|
18745
|
+
], w.prototype, "size", 2);
|
|
18746
|
+
O([
|
|
18735
18747
|
a({ type: Boolean, attribute: "show-close" })
|
|
18736
|
-
],
|
|
18737
|
-
|
|
18748
|
+
], w.prototype, "showClose", 2);
|
|
18749
|
+
O([
|
|
18738
18750
|
a({ type: Boolean, attribute: "close-on-backdrop-click" })
|
|
18739
|
-
],
|
|
18740
|
-
|
|
18751
|
+
], w.prototype, "closeOnBackdropClick", 2);
|
|
18752
|
+
O([
|
|
18741
18753
|
a({ type: Boolean, attribute: "close-on-escape" })
|
|
18742
|
-
],
|
|
18743
|
-
|
|
18754
|
+
], w.prototype, "closeOnEscape", 2);
|
|
18755
|
+
O([
|
|
18744
18756
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
18745
|
-
],
|
|
18746
|
-
|
|
18757
|
+
], w.prototype, "closeDisabled", 2);
|
|
18758
|
+
O([
|
|
18747
18759
|
a({ type: Boolean, attribute: "content-centered" })
|
|
18748
|
-
],
|
|
18749
|
-
|
|
18750
|
-
|
|
18751
|
-
],
|
|
18752
|
-
customElements.get("obi-modal") || customElements.define("obi-modal",
|
|
18753
|
-
var
|
|
18754
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
18760
|
+
], w.prototype, "contentCentered", 2);
|
|
18761
|
+
O([
|
|
18762
|
+
bt("dialog")
|
|
18763
|
+
], w.prototype, "dialog", 2);
|
|
18764
|
+
customElements.get("obi-modal") || customElements.define("obi-modal", w);
|
|
18765
|
+
var Dt = Object.defineProperty, St = Object.getOwnPropertyDescriptor, Ft = (s2, e2, i3, o2) => {
|
|
18766
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? St(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
18755
18767
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
18756
|
-
return o2 && t2 &&
|
|
18768
|
+
return o2 && t2 && Dt(e2, i3, t2), t2;
|
|
18757
18769
|
};
|
|
18758
|
-
class
|
|
18770
|
+
class Se extends i$1 {
|
|
18759
18771
|
constructor() {
|
|
18760
18772
|
super(...arguments), this.size = "medium";
|
|
18761
18773
|
}
|
|
@@ -18763,9 +18775,9 @@ class Ce extends i$1 {
|
|
|
18763
18775
|
return x`<div class="spinner" role="status" aria-label="Loading"></div>`;
|
|
18764
18776
|
}
|
|
18765
18777
|
}
|
|
18766
|
-
|
|
18767
|
-
|
|
18768
|
-
|
|
18778
|
+
Se.styles = [
|
|
18779
|
+
m,
|
|
18780
|
+
me,
|
|
18769
18781
|
i$4`
|
|
18770
18782
|
:host {
|
|
18771
18783
|
display: inline-block;
|
|
@@ -18801,16 +18813,16 @@ Ce.styles = [
|
|
|
18801
18813
|
}
|
|
18802
18814
|
`
|
|
18803
18815
|
];
|
|
18804
|
-
|
|
18816
|
+
Ft([
|
|
18805
18817
|
a({ reflect: true })
|
|
18806
|
-
],
|
|
18807
|
-
customElements.get("obi-spinner") || customElements.define("obi-spinner",
|
|
18808
|
-
var
|
|
18809
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
18818
|
+
], Se.prototype, "size", 2);
|
|
18819
|
+
customElements.get("obi-spinner") || customElements.define("obi-spinner", Se);
|
|
18820
|
+
var jt = Object.defineProperty, Tt = Object.getOwnPropertyDescriptor, z2 = (s2, e2, i3, o2) => {
|
|
18821
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Tt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
18810
18822
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
18811
|
-
return o2 && t2 &&
|
|
18823
|
+
return o2 && t2 && jt(e2, i3, t2), t2;
|
|
18812
18824
|
};
|
|
18813
|
-
class
|
|
18825
|
+
class $ extends i$1 {
|
|
18814
18826
|
constructor() {
|
|
18815
18827
|
super(...arguments), this.variant = "primary", this.size = "medium", this.disabled = false, this.loading = false, this.type = "button", this.fullWidth = false, this.loadingText = "";
|
|
18816
18828
|
}
|
|
@@ -18834,7 +18846,7 @@ class w extends i$1 {
|
|
|
18834
18846
|
};
|
|
18835
18847
|
return x`
|
|
18836
18848
|
<button
|
|
18837
|
-
class=${
|
|
18849
|
+
class=${Oe(e2)}
|
|
18838
18850
|
type=${this.type}
|
|
18839
18851
|
?disabled=${this.disabled || this.loading}
|
|
18840
18852
|
@click=${this.handleClick}
|
|
@@ -18861,9 +18873,9 @@ class w extends i$1 {
|
|
|
18861
18873
|
`;
|
|
18862
18874
|
}
|
|
18863
18875
|
}
|
|
18864
|
-
|
|
18865
|
-
|
|
18866
|
-
|
|
18876
|
+
$.styles = [
|
|
18877
|
+
m,
|
|
18878
|
+
me,
|
|
18867
18879
|
i$4`
|
|
18868
18880
|
:host {
|
|
18869
18881
|
display: inline-block;
|
|
@@ -18985,34 +18997,34 @@ w.styles = [
|
|
|
18985
18997
|
}
|
|
18986
18998
|
`
|
|
18987
18999
|
];
|
|
18988
|
-
|
|
19000
|
+
z2([
|
|
18989
19001
|
a({ reflect: true })
|
|
18990
|
-
],
|
|
18991
|
-
|
|
19002
|
+
], $.prototype, "variant", 2);
|
|
19003
|
+
z2([
|
|
18992
19004
|
a({ reflect: true })
|
|
18993
|
-
],
|
|
18994
|
-
|
|
19005
|
+
], $.prototype, "size", 2);
|
|
19006
|
+
z2([
|
|
18995
19007
|
a({ type: Boolean, reflect: true })
|
|
18996
|
-
],
|
|
18997
|
-
|
|
19008
|
+
], $.prototype, "disabled", 2);
|
|
19009
|
+
z2([
|
|
18998
19010
|
a({ type: Boolean, reflect: true })
|
|
18999
|
-
],
|
|
19000
|
-
|
|
19011
|
+
], $.prototype, "loading", 2);
|
|
19012
|
+
z2([
|
|
19001
19013
|
a()
|
|
19002
|
-
],
|
|
19003
|
-
|
|
19014
|
+
], $.prototype, "type", 2);
|
|
19015
|
+
z2([
|
|
19004
19016
|
a({ type: Boolean, reflect: true, attribute: "full-width" })
|
|
19005
|
-
],
|
|
19006
|
-
|
|
19017
|
+
], $.prototype, "fullWidth", 2);
|
|
19018
|
+
z2([
|
|
19007
19019
|
a({ attribute: "loading-text" })
|
|
19008
|
-
],
|
|
19009
|
-
customElements.get("obi-button") || customElements.define("obi-button",
|
|
19010
|
-
var
|
|
19011
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
19020
|
+
], $.prototype, "loadingText", 2);
|
|
19021
|
+
customElements.get("obi-button") || customElements.define("obi-button", $);
|
|
19022
|
+
var Nt = Object.defineProperty, kt = Object.getOwnPropertyDescriptor, fe = (s2, e2, i3, o2) => {
|
|
19023
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? kt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
19012
19024
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19013
|
-
return o2 && t2 &&
|
|
19025
|
+
return o2 && t2 && Nt(e2, i3, t2), t2;
|
|
19014
19026
|
};
|
|
19015
|
-
class
|
|
19027
|
+
class H4 extends i$1 {
|
|
19016
19028
|
constructor() {
|
|
19017
19029
|
super(...arguments), this.showRetry = false, this.showDismiss = false, this.retryText = "Retry", this.dismissText = "Dismiss";
|
|
19018
19030
|
}
|
|
@@ -19062,9 +19074,9 @@ class U extends i$1 {
|
|
|
19062
19074
|
`;
|
|
19063
19075
|
}
|
|
19064
19076
|
}
|
|
19065
|
-
|
|
19066
|
-
|
|
19067
|
-
|
|
19077
|
+
H4.styles = [
|
|
19078
|
+
m,
|
|
19079
|
+
me,
|
|
19068
19080
|
i$4`
|
|
19069
19081
|
:host {
|
|
19070
19082
|
display: block;
|
|
@@ -19124,46 +19136,46 @@ U.styles = [
|
|
|
19124
19136
|
}
|
|
19125
19137
|
`
|
|
19126
19138
|
];
|
|
19127
|
-
|
|
19139
|
+
fe([
|
|
19128
19140
|
a({ type: Boolean, attribute: "show-retry" })
|
|
19129
|
-
],
|
|
19130
|
-
|
|
19141
|
+
], H4.prototype, "showRetry", 2);
|
|
19142
|
+
fe([
|
|
19131
19143
|
a({ type: Boolean, attribute: "show-dismiss" })
|
|
19132
|
-
],
|
|
19133
|
-
|
|
19144
|
+
], H4.prototype, "showDismiss", 2);
|
|
19145
|
+
fe([
|
|
19134
19146
|
a({ attribute: "retry-text" })
|
|
19135
|
-
],
|
|
19136
|
-
|
|
19147
|
+
], H4.prototype, "retryText", 2);
|
|
19148
|
+
fe([
|
|
19137
19149
|
a({ attribute: "dismiss-text" })
|
|
19138
|
-
],
|
|
19139
|
-
customElements.get("obi-error-message") || customElements.define("obi-error-message",
|
|
19140
|
-
function
|
|
19150
|
+
], H4.prototype, "dismissText", 2);
|
|
19151
|
+
customElements.get("obi-error-message") || customElements.define("obi-error-message", H4);
|
|
19152
|
+
function Ze(s2, e2) {
|
|
19141
19153
|
if (!s2)
|
|
19142
19154
|
return "";
|
|
19143
|
-
const i3 = (
|
|
19144
|
-
let p2 = "0",
|
|
19145
|
-
return
|
|
19155
|
+
const i3 = (h2) => {
|
|
19156
|
+
let p2 = "0", b2 = "0", x2 = "0";
|
|
19157
|
+
return h2.length === 4 ? (p2 = "0x" + h2[1] + h2[1], b2 = "0x" + h2[2] + h2[2], x2 = "0x" + h2[3] + h2[3]) : h2.length === 7 && (p2 = "0x" + h2[1] + h2[2], b2 = "0x" + h2[3] + h2[4], x2 = "0x" + h2[5] + h2[6]), {
|
|
19146
19158
|
r: parseInt(p2),
|
|
19147
|
-
g: parseInt(
|
|
19159
|
+
g: parseInt(b2),
|
|
19148
19160
|
b: parseInt(x2)
|
|
19149
19161
|
};
|
|
19150
|
-
}, o2 = (
|
|
19162
|
+
}, o2 = (h2, p2, b2) => "#" + [h2, p2, b2].map((x2) => {
|
|
19151
19163
|
const _2 = x2.toString(16);
|
|
19152
19164
|
return _2.length === 1 ? "0" + _2 : _2;
|
|
19153
|
-
}).join(""), { r: t2, g: r2, b: n3 } = i3(s2),
|
|
19154
|
-
return o2(
|
|
19165
|
+
}).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);
|
|
19166
|
+
return o2(d2, l2, u2);
|
|
19155
19167
|
}
|
|
19156
|
-
var
|
|
19157
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
19168
|
+
var zt = Object.defineProperty, Bt = Object.getOwnPropertyDescriptor, I2 = (s2, e2, i3, o2) => {
|
|
19169
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Bt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
19158
19170
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19159
|
-
return o2 && t2 &&
|
|
19171
|
+
return o2 && t2 && zt(e2, i3, t2), t2;
|
|
19160
19172
|
};
|
|
19161
|
-
class
|
|
19173
|
+
class A extends i$1 {
|
|
19162
19174
|
constructor() {
|
|
19163
19175
|
super(...arguments), this.title = "", this.subtitle = "", this.agentName = "Obi", this.buttonText = "Continue", this.disabled = false, this.color = "#9500FF";
|
|
19164
19176
|
}
|
|
19165
19177
|
getBackgroundColor() {
|
|
19166
|
-
return
|
|
19178
|
+
return Ze(this.color, 0.95);
|
|
19167
19179
|
}
|
|
19168
19180
|
handleAction() {
|
|
19169
19181
|
this.disabled || this.dispatchEvent(new CustomEvent("obi-action", {
|
|
@@ -19192,13 +19204,15 @@ class O extends i$1 {
|
|
|
19192
19204
|
|
|
19193
19205
|
<!-- Action button and error -->
|
|
19194
19206
|
<div class="button-container">
|
|
19195
|
-
<button
|
|
19196
|
-
|
|
19197
|
-
|
|
19198
|
-
|
|
19199
|
-
|
|
19200
|
-
|
|
19201
|
-
|
|
19207
|
+
<slot name="button">
|
|
19208
|
+
<button
|
|
19209
|
+
class="action-button"
|
|
19210
|
+
@click=${this.handleAction}
|
|
19211
|
+
?disabled=${this.disabled}
|
|
19212
|
+
>
|
|
19213
|
+
<span class="action-button-text">${this.disabled ? `${this.agentName} is speaking` : this.buttonText}</span>
|
|
19214
|
+
</button>
|
|
19215
|
+
</slot>
|
|
19202
19216
|
|
|
19203
19217
|
<slot name="error"></slot>
|
|
19204
19218
|
</div>
|
|
@@ -19206,8 +19220,8 @@ class O extends i$1 {
|
|
|
19206
19220
|
`;
|
|
19207
19221
|
}
|
|
19208
19222
|
}
|
|
19209
|
-
|
|
19210
|
-
|
|
19223
|
+
A.styles = [
|
|
19224
|
+
m,
|
|
19211
19225
|
i$4`
|
|
19212
19226
|
:host {
|
|
19213
19227
|
display: block;
|
|
@@ -19335,31 +19349,31 @@ O.styles = [
|
|
|
19335
19349
|
}
|
|
19336
19350
|
`
|
|
19337
19351
|
];
|
|
19338
|
-
|
|
19352
|
+
I2([
|
|
19339
19353
|
a()
|
|
19340
|
-
],
|
|
19341
|
-
|
|
19354
|
+
], A.prototype, "title", 2);
|
|
19355
|
+
I2([
|
|
19342
19356
|
a()
|
|
19343
|
-
],
|
|
19344
|
-
|
|
19357
|
+
], A.prototype, "subtitle", 2);
|
|
19358
|
+
I2([
|
|
19345
19359
|
a({ attribute: "agent-name" })
|
|
19346
|
-
],
|
|
19347
|
-
|
|
19360
|
+
], A.prototype, "agentName", 2);
|
|
19361
|
+
I2([
|
|
19348
19362
|
a({ attribute: "button-text" })
|
|
19349
|
-
],
|
|
19350
|
-
|
|
19363
|
+
], A.prototype, "buttonText", 2);
|
|
19364
|
+
I2([
|
|
19351
19365
|
a({ type: Boolean, reflect: true })
|
|
19352
|
-
],
|
|
19353
|
-
|
|
19366
|
+
], A.prototype, "disabled", 2);
|
|
19367
|
+
I2([
|
|
19354
19368
|
a()
|
|
19355
|
-
],
|
|
19356
|
-
customElements.get("obi-base-onboarding-content") || customElements.define("obi-base-onboarding-content",
|
|
19357
|
-
var
|
|
19358
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
19369
|
+
], A.prototype, "color", 2);
|
|
19370
|
+
customElements.get("obi-base-onboarding-content") || customElements.define("obi-base-onboarding-content", A);
|
|
19371
|
+
var Lt = Object.defineProperty, Mt = Object.getOwnPropertyDescriptor, Je = (s2, e2, i3, o2) => {
|
|
19372
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Mt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
19359
19373
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19360
|
-
return o2 && t2 &&
|
|
19374
|
+
return o2 && t2 && Lt(e2, i3, t2), t2;
|
|
19361
19375
|
};
|
|
19362
|
-
class
|
|
19376
|
+
class ve extends i$1 {
|
|
19363
19377
|
constructor() {
|
|
19364
19378
|
super(...arguments), this.logoUrl = "", this.appName = "App";
|
|
19365
19379
|
}
|
|
@@ -19394,8 +19408,8 @@ class be extends i$1 {
|
|
|
19394
19408
|
`;
|
|
19395
19409
|
}
|
|
19396
19410
|
}
|
|
19397
|
-
|
|
19398
|
-
|
|
19411
|
+
ve.styles = [
|
|
19412
|
+
m,
|
|
19399
19413
|
i$4`
|
|
19400
19414
|
:host {
|
|
19401
19415
|
display: block;
|
|
@@ -19457,19 +19471,19 @@ be.styles = [
|
|
|
19457
19471
|
}
|
|
19458
19472
|
`
|
|
19459
19473
|
];
|
|
19460
|
-
|
|
19474
|
+
Je([
|
|
19461
19475
|
a({ attribute: "logo-url" })
|
|
19462
|
-
],
|
|
19463
|
-
|
|
19476
|
+
], ve.prototype, "logoUrl", 2);
|
|
19477
|
+
Je([
|
|
19464
19478
|
a({ attribute: "app-name" })
|
|
19465
|
-
],
|
|
19466
|
-
customElements.get("obi-app-logo-visual") || customElements.define("obi-app-logo-visual",
|
|
19467
|
-
var
|
|
19468
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
19479
|
+
], ve.prototype, "appName", 2);
|
|
19480
|
+
customElements.get("obi-app-logo-visual") || customElements.define("obi-app-logo-visual", ve);
|
|
19481
|
+
var Rt = Object.defineProperty, Ut = Object.getOwnPropertyDescriptor, ne = (s2, e2, i3, o2) => {
|
|
19482
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Ut(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
19469
19483
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19470
|
-
return o2 && t2 &&
|
|
19484
|
+
return o2 && t2 && Rt(e2, i3, t2), t2;
|
|
19471
19485
|
};
|
|
19472
|
-
class
|
|
19486
|
+
class B extends i$1 {
|
|
19473
19487
|
constructor() {
|
|
19474
19488
|
super(...arguments), this.color = "#9500FF", this.isLoading = false, this.error = null, this.navigateAttempts = 0;
|
|
19475
19489
|
}
|
|
@@ -19555,24 +19569,24 @@ class z2 extends i$1 {
|
|
|
19555
19569
|
`;
|
|
19556
19570
|
}
|
|
19557
19571
|
}
|
|
19558
|
-
|
|
19559
|
-
|
|
19572
|
+
B.styles = [m];
|
|
19573
|
+
ne([
|
|
19560
19574
|
a({ type: Object })
|
|
19561
|
-
],
|
|
19562
|
-
|
|
19575
|
+
], B.prototype, "session", 2);
|
|
19576
|
+
ne([
|
|
19563
19577
|
a()
|
|
19564
|
-
],
|
|
19565
|
-
|
|
19578
|
+
], B.prototype, "color", 2);
|
|
19579
|
+
ne([
|
|
19566
19580
|
v()
|
|
19567
|
-
],
|
|
19568
|
-
|
|
19581
|
+
], B.prototype, "isLoading", 2);
|
|
19582
|
+
ne([
|
|
19569
19583
|
v()
|
|
19570
|
-
],
|
|
19571
|
-
|
|
19584
|
+
], B.prototype, "error", 2);
|
|
19585
|
+
ne([
|
|
19572
19586
|
v()
|
|
19573
|
-
],
|
|
19574
|
-
customElements.get("obi-navigate-to-content") || customElements.define("obi-navigate-to-content",
|
|
19575
|
-
const
|
|
19587
|
+
], B.prototype, "navigateAttempts", 2);
|
|
19588
|
+
customElements.get("obi-navigate-to-content") || customElements.define("obi-navigate-to-content", B);
|
|
19589
|
+
const Ht = x`
|
|
19576
19590
|
<img
|
|
19577
19591
|
src="data:image/svg+xml;base64,${btoa(`<?xml version="1.0" encoding="UTF-8"?>
|
|
19578
19592
|
<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -19582,12 +19596,12 @@ const zt = x`
|
|
|
19582
19596
|
style="width: 100%; height: 100%; object-fit: contain;"
|
|
19583
19597
|
/>
|
|
19584
19598
|
`;
|
|
19585
|
-
var
|
|
19586
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
19599
|
+
var It = Object.defineProperty, Vt = Object.getOwnPropertyDescriptor, qt = (s2, e2, i3, o2) => {
|
|
19600
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Vt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
19587
19601
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19588
|
-
return o2 && t2 &&
|
|
19602
|
+
return o2 && t2 && It(e2, i3, t2), t2;
|
|
19589
19603
|
};
|
|
19590
|
-
class
|
|
19604
|
+
class Fe extends i$1 {
|
|
19591
19605
|
constructor() {
|
|
19592
19606
|
super(...arguments), this.color = "#9500FF";
|
|
19593
19607
|
}
|
|
@@ -19604,15 +19618,15 @@ class Ae extends i$1 {
|
|
|
19604
19618
|
<div class="container">
|
|
19605
19619
|
<div class="logo" style="background: ${this.color}; box-shadow: ${r2};">
|
|
19606
19620
|
<slot>
|
|
19607
|
-
<div class="logo-icon">${
|
|
19621
|
+
<div class="logo-icon">${Ht}</div>
|
|
19608
19622
|
</slot>
|
|
19609
19623
|
</div>
|
|
19610
19624
|
</div>
|
|
19611
19625
|
`;
|
|
19612
19626
|
}
|
|
19613
19627
|
}
|
|
19614
|
-
|
|
19615
|
-
|
|
19628
|
+
Fe.styles = [
|
|
19629
|
+
m,
|
|
19616
19630
|
i$4`
|
|
19617
19631
|
:host {
|
|
19618
19632
|
display: block;
|
|
@@ -19657,14 +19671,14 @@ Ae.styles = [
|
|
|
19657
19671
|
}
|
|
19658
19672
|
`
|
|
19659
19673
|
];
|
|
19660
|
-
|
|
19674
|
+
qt([
|
|
19661
19675
|
a()
|
|
19662
|
-
],
|
|
19663
|
-
customElements.get("obi-logo-visual") || customElements.define("obi-logo-visual",
|
|
19664
|
-
var
|
|
19665
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
19676
|
+
], Fe.prototype, "color", 2);
|
|
19677
|
+
customElements.get("obi-logo-visual") || customElements.define("obi-logo-visual", Fe);
|
|
19678
|
+
var Wt = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, V = (s2, e2, i3, o2) => {
|
|
19679
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Yt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
19666
19680
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19667
|
-
return o2 && t2 &&
|
|
19681
|
+
return o2 && t2 && Wt(e2, i3, t2), t2;
|
|
19668
19682
|
};
|
|
19669
19683
|
class P extends i$1 {
|
|
19670
19684
|
constructor() {
|
|
@@ -19748,27 +19762,27 @@ class P extends i$1 {
|
|
|
19748
19762
|
`;
|
|
19749
19763
|
}
|
|
19750
19764
|
}
|
|
19751
|
-
P.styles = [
|
|
19752
|
-
|
|
19765
|
+
P.styles = [m];
|
|
19766
|
+
V([
|
|
19753
19767
|
a({ type: Object })
|
|
19754
19768
|
], P.prototype, "session", 2);
|
|
19755
|
-
|
|
19769
|
+
V([
|
|
19756
19770
|
a({ type: Boolean, reflect: true })
|
|
19757
19771
|
], P.prototype, "disabled", 2);
|
|
19758
|
-
|
|
19772
|
+
V([
|
|
19759
19773
|
a()
|
|
19760
19774
|
], P.prototype, "color", 2);
|
|
19761
|
-
|
|
19775
|
+
V([
|
|
19762
19776
|
v()
|
|
19763
19777
|
], P.prototype, "isLoading", 2);
|
|
19764
|
-
|
|
19778
|
+
V([
|
|
19765
19779
|
v()
|
|
19766
19780
|
], P.prototype, "error", 2);
|
|
19767
|
-
|
|
19781
|
+
V([
|
|
19768
19782
|
v()
|
|
19769
19783
|
], P.prototype, "startAttempts", 2);
|
|
19770
19784
|
customElements.get("obi-session-start-content") || customElements.define("obi-session-start-content", P);
|
|
19771
|
-
class
|
|
19785
|
+
class Ke extends i$1 {
|
|
19772
19786
|
render() {
|
|
19773
19787
|
return x`
|
|
19774
19788
|
<div class="container">
|
|
@@ -19800,8 +19814,8 @@ class qe extends i$1 {
|
|
|
19800
19814
|
`;
|
|
19801
19815
|
}
|
|
19802
19816
|
}
|
|
19803
|
-
|
|
19804
|
-
|
|
19817
|
+
Ke.styles = [
|
|
19818
|
+
m,
|
|
19805
19819
|
i$4`
|
|
19806
19820
|
:host {
|
|
19807
19821
|
display: block;
|
|
@@ -19956,13 +19970,13 @@ qe.styles = [
|
|
|
19956
19970
|
}
|
|
19957
19971
|
`
|
|
19958
19972
|
];
|
|
19959
|
-
customElements.get("obi-microphone-permission-visual") || customElements.define("obi-microphone-permission-visual",
|
|
19960
|
-
var
|
|
19961
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
19973
|
+
customElements.get("obi-microphone-permission-visual") || customElements.define("obi-microphone-permission-visual", Ke);
|
|
19974
|
+
var Gt = Object.defineProperty, Xt = Object.getOwnPropertyDescriptor, q = (s2, e2, i3, o2) => {
|
|
19975
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Xt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
19962
19976
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19963
|
-
return o2 && t2 &&
|
|
19977
|
+
return o2 && t2 && Gt(e2, i3, t2), t2;
|
|
19964
19978
|
};
|
|
19965
|
-
class
|
|
19979
|
+
class D extends i$1 {
|
|
19966
19980
|
constructor() {
|
|
19967
19981
|
super(...arguments), this.disabled = false, this.color = "#9500FF", this.isLoading = false, this.error = null, this.micPermissionGranted = false;
|
|
19968
19982
|
}
|
|
@@ -20012,30 +20026,30 @@ class S extends i$1 {
|
|
|
20012
20026
|
`;
|
|
20013
20027
|
}
|
|
20014
20028
|
}
|
|
20015
|
-
|
|
20016
|
-
|
|
20029
|
+
D.styles = [m];
|
|
20030
|
+
q([
|
|
20017
20031
|
a({ type: Object })
|
|
20018
|
-
],
|
|
20019
|
-
|
|
20032
|
+
], D.prototype, "session", 2);
|
|
20033
|
+
q([
|
|
20020
20034
|
a({ type: Boolean, reflect: true })
|
|
20021
|
-
],
|
|
20022
|
-
|
|
20035
|
+
], D.prototype, "disabled", 2);
|
|
20036
|
+
q([
|
|
20023
20037
|
a()
|
|
20024
|
-
],
|
|
20025
|
-
|
|
20038
|
+
], D.prototype, "color", 2);
|
|
20039
|
+
q([
|
|
20026
20040
|
v()
|
|
20027
|
-
],
|
|
20028
|
-
|
|
20041
|
+
], D.prototype, "isLoading", 2);
|
|
20042
|
+
q([
|
|
20029
20043
|
v()
|
|
20030
|
-
],
|
|
20031
|
-
|
|
20044
|
+
], D.prototype, "error", 2);
|
|
20045
|
+
q([
|
|
20032
20046
|
v()
|
|
20033
|
-
],
|
|
20034
|
-
customElements.get("obi-share-mic-content") || customElements.define("obi-share-mic-content",
|
|
20035
|
-
var
|
|
20036
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20047
|
+
], D.prototype, "micPermissionGranted", 2);
|
|
20048
|
+
customElements.get("obi-share-mic-content") || customElements.define("obi-share-mic-content", D);
|
|
20049
|
+
var Zt = Object.defineProperty, Jt = Object.getOwnPropertyDescriptor, ye = (s2, e2, i3, o2) => {
|
|
20050
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Jt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20037
20051
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20038
|
-
return o2 && t2 &&
|
|
20052
|
+
return o2 && t2 && Zt(e2, i3, t2), t2;
|
|
20039
20053
|
};
|
|
20040
20054
|
class W extends i$1 {
|
|
20041
20055
|
constructor() {
|
|
@@ -20053,13 +20067,13 @@ class W extends i$1 {
|
|
|
20053
20067
|
startAnimation() {
|
|
20054
20068
|
const r2 = () => {
|
|
20055
20069
|
this.clearTimeouts();
|
|
20056
|
-
for (let
|
|
20057
|
-
const l2 =
|
|
20058
|
-
this.activeDots = this.activeDots.map((p2,
|
|
20059
|
-
const
|
|
20060
|
-
this.activeDots = this.activeDots.map((p2,
|
|
20070
|
+
for (let d2 = 0; d2 < 5; d2++) {
|
|
20071
|
+
const l2 = d2 * 140, u2 = window.setTimeout(() => {
|
|
20072
|
+
this.activeDots = this.activeDots.map((p2, b2) => b2 === d2), this.requestUpdate();
|
|
20073
|
+
const h2 = window.setTimeout(() => {
|
|
20074
|
+
this.activeDots = this.activeDots.map((p2, b2) => b2 === d2 ? false : this.activeDots[b2]), this.requestUpdate();
|
|
20061
20075
|
}, 200);
|
|
20062
|
-
this.animationTimeouts.push(
|
|
20076
|
+
this.animationTimeouts.push(h2);
|
|
20063
20077
|
}, l2);
|
|
20064
20078
|
this.animationTimeouts.push(u2);
|
|
20065
20079
|
}
|
|
@@ -20087,7 +20101,7 @@ class W extends i$1 {
|
|
|
20087
20101
|
}
|
|
20088
20102
|
}
|
|
20089
20103
|
W.styles = [
|
|
20090
|
-
|
|
20104
|
+
m,
|
|
20091
20105
|
i$4`
|
|
20092
20106
|
:host {
|
|
20093
20107
|
display: flex;
|
|
@@ -20132,25 +20146,25 @@ W.styles = [
|
|
|
20132
20146
|
}
|
|
20133
20147
|
`
|
|
20134
20148
|
];
|
|
20135
|
-
|
|
20149
|
+
ye([
|
|
20136
20150
|
a()
|
|
20137
20151
|
], W.prototype, "color", 2);
|
|
20138
|
-
|
|
20152
|
+
ye([
|
|
20139
20153
|
a({ attribute: "dot-color" })
|
|
20140
20154
|
], W.prototype, "dotColor", 2);
|
|
20141
|
-
|
|
20155
|
+
ye([
|
|
20142
20156
|
v()
|
|
20143
20157
|
], W.prototype, "activeDots", 2);
|
|
20144
|
-
|
|
20158
|
+
ye([
|
|
20145
20159
|
v()
|
|
20146
20160
|
], W.prototype, "animationTimeouts", 2);
|
|
20147
20161
|
customElements.get("obi-voice-guidance-visual") || customElements.define("obi-voice-guidance-visual", W);
|
|
20148
|
-
var
|
|
20149
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20162
|
+
var Kt = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, ae = (s2, e2, i3, o2) => {
|
|
20163
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? Qt(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20150
20164
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20151
|
-
return o2 && t2 &&
|
|
20165
|
+
return o2 && t2 && Kt(e2, i3, t2), t2;
|
|
20152
20166
|
};
|
|
20153
|
-
class
|
|
20167
|
+
class L2 extends i$1 {
|
|
20154
20168
|
constructor() {
|
|
20155
20169
|
super(...arguments), this.color = "#9500FF", this.disabled = false, this.loading = false, this.error = null;
|
|
20156
20170
|
}
|
|
@@ -20222,24 +20236,24 @@ class B extends i$1 {
|
|
|
20222
20236
|
`;
|
|
20223
20237
|
}
|
|
20224
20238
|
}
|
|
20225
|
-
|
|
20226
|
-
|
|
20239
|
+
L2.styles = [m];
|
|
20240
|
+
ae([
|
|
20227
20241
|
a({ type: Object })
|
|
20228
|
-
],
|
|
20229
|
-
|
|
20242
|
+
], L2.prototype, "session", 2);
|
|
20243
|
+
ae([
|
|
20230
20244
|
a()
|
|
20231
|
-
],
|
|
20232
|
-
|
|
20245
|
+
], L2.prototype, "color", 2);
|
|
20246
|
+
ae([
|
|
20233
20247
|
a({ type: Boolean, reflect: true })
|
|
20234
|
-
],
|
|
20235
|
-
|
|
20248
|
+
], L2.prototype, "disabled", 2);
|
|
20249
|
+
ae([
|
|
20236
20250
|
a({ type: Boolean, reflect: true })
|
|
20237
|
-
],
|
|
20238
|
-
|
|
20251
|
+
], L2.prototype, "loading", 2);
|
|
20252
|
+
ae([
|
|
20239
20253
|
v()
|
|
20240
|
-
],
|
|
20241
|
-
customElements.get("obi-voice-guidance-content") || customElements.define("obi-voice-guidance-content",
|
|
20242
|
-
class
|
|
20254
|
+
], L2.prototype, "error", 2);
|
|
20255
|
+
customElements.get("obi-voice-guidance-content") || customElements.define("obi-voice-guidance-content", L2);
|
|
20256
|
+
class Qe extends i$1 {
|
|
20243
20257
|
render() {
|
|
20244
20258
|
return x`
|
|
20245
20259
|
<article class="skeleton-container" role="status" aria-label="Loading content">
|
|
@@ -20257,8 +20271,8 @@ class Ge extends i$1 {
|
|
|
20257
20271
|
`;
|
|
20258
20272
|
}
|
|
20259
20273
|
}
|
|
20260
|
-
|
|
20261
|
-
|
|
20274
|
+
Qe.styles = [
|
|
20275
|
+
m,
|
|
20262
20276
|
i$4`
|
|
20263
20277
|
:host {
|
|
20264
20278
|
display: flex;
|
|
@@ -20371,18 +20385,18 @@ Ge.styles = [
|
|
|
20371
20385
|
}
|
|
20372
20386
|
`
|
|
20373
20387
|
];
|
|
20374
|
-
customElements.get("obi-skeleton-loader-visual") || customElements.define("obi-skeleton-loader-visual",
|
|
20375
|
-
var
|
|
20376
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20388
|
+
customElements.get("obi-skeleton-loader-visual") || customElements.define("obi-skeleton-loader-visual", Qe);
|
|
20389
|
+
var eo = Object.defineProperty, to = Object.getOwnPropertyDescriptor, oo = (s2, e2, i3, o2) => {
|
|
20390
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? to(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20377
20391
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20378
|
-
return o2 && t2 &&
|
|
20392
|
+
return o2 && t2 && eo(e2, i3, t2), t2;
|
|
20379
20393
|
};
|
|
20380
|
-
class
|
|
20394
|
+
class je extends i$1 {
|
|
20381
20395
|
constructor() {
|
|
20382
20396
|
super(...arguments), this.color = "#9500FF";
|
|
20383
20397
|
}
|
|
20384
20398
|
getBackgroundColor() {
|
|
20385
|
-
return
|
|
20399
|
+
return Ze(this.color, 0.95);
|
|
20386
20400
|
}
|
|
20387
20401
|
render() {
|
|
20388
20402
|
return x`
|
|
@@ -20414,8 +20428,8 @@ class Oe extends i$1 {
|
|
|
20414
20428
|
`;
|
|
20415
20429
|
}
|
|
20416
20430
|
}
|
|
20417
|
-
|
|
20418
|
-
|
|
20431
|
+
je.styles = [
|
|
20432
|
+
m,
|
|
20419
20433
|
i$4`
|
|
20420
20434
|
:host {
|
|
20421
20435
|
display: block;
|
|
@@ -20506,16 +20520,16 @@ Oe.styles = [
|
|
|
20506
20520
|
}
|
|
20507
20521
|
`
|
|
20508
20522
|
];
|
|
20509
|
-
|
|
20523
|
+
oo([
|
|
20510
20524
|
a()
|
|
20511
|
-
],
|
|
20512
|
-
customElements.get("obi-screen-share-visual") || customElements.define("obi-screen-share-visual",
|
|
20513
|
-
var
|
|
20514
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20525
|
+
], je.prototype, "color", 2);
|
|
20526
|
+
customElements.get("obi-screen-share-visual") || customElements.define("obi-screen-share-visual", je);
|
|
20527
|
+
var io = Object.defineProperty, so = Object.getOwnPropertyDescriptor, Y = (s2, e2, i3, o2) => {
|
|
20528
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? so(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20515
20529
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20516
|
-
return o2 && t2 &&
|
|
20530
|
+
return o2 && t2 && io(e2, i3, t2), t2;
|
|
20517
20531
|
};
|
|
20518
|
-
class
|
|
20532
|
+
class S extends i$1 {
|
|
20519
20533
|
constructor() {
|
|
20520
20534
|
super(...arguments), this.disabled = false, this.color = "#9500FF", this.isLoading = false, this.error = null, this.continueAttempts = 0;
|
|
20521
20535
|
}
|
|
@@ -20592,32 +20606,32 @@ class D extends i$1 {
|
|
|
20592
20606
|
`;
|
|
20593
20607
|
}
|
|
20594
20608
|
}
|
|
20595
|
-
|
|
20596
|
-
|
|
20609
|
+
S.styles = [m];
|
|
20610
|
+
Y([
|
|
20597
20611
|
a({ type: Object })
|
|
20598
|
-
],
|
|
20599
|
-
|
|
20612
|
+
], S.prototype, "session", 2);
|
|
20613
|
+
Y([
|
|
20600
20614
|
a({ type: Boolean, reflect: true })
|
|
20601
|
-
],
|
|
20602
|
-
|
|
20615
|
+
], S.prototype, "disabled", 2);
|
|
20616
|
+
Y([
|
|
20603
20617
|
a()
|
|
20604
|
-
],
|
|
20605
|
-
|
|
20618
|
+
], S.prototype, "color", 2);
|
|
20619
|
+
Y([
|
|
20606
20620
|
v()
|
|
20607
|
-
],
|
|
20608
|
-
|
|
20621
|
+
], S.prototype, "isLoading", 2);
|
|
20622
|
+
Y([
|
|
20609
20623
|
v()
|
|
20610
|
-
],
|
|
20611
|
-
|
|
20624
|
+
], S.prototype, "error", 2);
|
|
20625
|
+
Y([
|
|
20612
20626
|
v()
|
|
20613
|
-
],
|
|
20614
|
-
customElements.get("obi-share-screen-content") || customElements.define("obi-share-screen-content",
|
|
20615
|
-
var
|
|
20616
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20627
|
+
], S.prototype, "continueAttempts", 2);
|
|
20628
|
+
customElements.get("obi-share-screen-content") || customElements.define("obi-share-screen-content", S);
|
|
20629
|
+
var ro = Object.defineProperty, no = Object.getOwnPropertyDescriptor, et = (s2, e2, i3, o2) => {
|
|
20630
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? no(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20617
20631
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20618
|
-
return o2 && t2 &&
|
|
20632
|
+
return o2 && t2 && ro(e2, i3, t2), t2;
|
|
20619
20633
|
};
|
|
20620
|
-
class
|
|
20634
|
+
class xe extends i$1 {
|
|
20621
20635
|
constructor() {
|
|
20622
20636
|
super(...arguments), this.open = false, this.closeDisabled = false, this.closeReason = null;
|
|
20623
20637
|
}
|
|
@@ -20666,8 +20680,8 @@ class me extends i$1 {
|
|
|
20666
20680
|
`;
|
|
20667
20681
|
}
|
|
20668
20682
|
}
|
|
20669
|
-
|
|
20670
|
-
|
|
20683
|
+
xe.styles = [
|
|
20684
|
+
m,
|
|
20671
20685
|
i$4`
|
|
20672
20686
|
:host {
|
|
20673
20687
|
--obi-modal-width: 640px;
|
|
@@ -20735,17 +20749,17 @@ me.styles = [
|
|
|
20735
20749
|
}
|
|
20736
20750
|
`
|
|
20737
20751
|
];
|
|
20738
|
-
|
|
20752
|
+
et([
|
|
20739
20753
|
a({ type: Boolean, reflect: true })
|
|
20740
|
-
],
|
|
20741
|
-
|
|
20754
|
+
], xe.prototype, "open", 2);
|
|
20755
|
+
et([
|
|
20742
20756
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
20743
|
-
],
|
|
20744
|
-
customElements.get("obi-base-onboarding-modal") || customElements.define("obi-base-onboarding-modal",
|
|
20745
|
-
var
|
|
20746
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20757
|
+
], xe.prototype, "closeDisabled", 2);
|
|
20758
|
+
customElements.get("obi-base-onboarding-modal") || customElements.define("obi-base-onboarding-modal", xe);
|
|
20759
|
+
var ao = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, we = (s2, e2, i3, o2) => {
|
|
20760
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? lo(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20747
20761
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20748
|
-
return o2 && t2 &&
|
|
20762
|
+
return o2 && t2 && ao(e2, i3, t2), t2;
|
|
20749
20763
|
};
|
|
20750
20764
|
class G extends i$1 {
|
|
20751
20765
|
constructor() {
|
|
@@ -20766,26 +20780,26 @@ class G extends i$1 {
|
|
|
20766
20780
|
`;
|
|
20767
20781
|
}
|
|
20768
20782
|
}
|
|
20769
|
-
G.styles = [
|
|
20770
|
-
|
|
20783
|
+
G.styles = [m];
|
|
20784
|
+
we([
|
|
20771
20785
|
a({ type: Object })
|
|
20772
20786
|
], G.prototype, "session", 2);
|
|
20773
|
-
|
|
20787
|
+
we([
|
|
20774
20788
|
a({ type: Boolean, reflect: true })
|
|
20775
20789
|
], G.prototype, "open", 2);
|
|
20776
|
-
|
|
20790
|
+
we([
|
|
20777
20791
|
a({ type: Boolean, reflect: true })
|
|
20778
20792
|
], G.prototype, "disabled", 2);
|
|
20779
|
-
|
|
20793
|
+
we([
|
|
20780
20794
|
a()
|
|
20781
20795
|
], G.prototype, "color", 2);
|
|
20782
20796
|
customElements.get("obi-share-screen-modal") || customElements.define("obi-share-screen-modal", G);
|
|
20783
|
-
var
|
|
20784
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20797
|
+
var co = Object.defineProperty, ho = Object.getOwnPropertyDescriptor, le = (s2, e2, i3, o2) => {
|
|
20798
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? ho(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20785
20799
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20786
|
-
return o2 && t2 &&
|
|
20800
|
+
return o2 && t2 && co(e2, i3, t2), t2;
|
|
20787
20801
|
};
|
|
20788
|
-
class
|
|
20802
|
+
class M2 extends i$1 {
|
|
20789
20803
|
constructor() {
|
|
20790
20804
|
super(...arguments), this.open = false, this.color = "#9500FF", this.disabled = false, this.closeDisabled = false;
|
|
20791
20805
|
}
|
|
@@ -20805,29 +20819,29 @@ class L2 extends i$1 {
|
|
|
20805
20819
|
`;
|
|
20806
20820
|
}
|
|
20807
20821
|
}
|
|
20808
|
-
|
|
20809
|
-
|
|
20822
|
+
M2.styles = [m];
|
|
20823
|
+
le([
|
|
20810
20824
|
a({ type: Object })
|
|
20811
|
-
],
|
|
20812
|
-
|
|
20825
|
+
], M2.prototype, "session", 2);
|
|
20826
|
+
le([
|
|
20813
20827
|
a({ type: Boolean, reflect: true })
|
|
20814
|
-
],
|
|
20815
|
-
|
|
20828
|
+
], M2.prototype, "open", 2);
|
|
20829
|
+
le([
|
|
20816
20830
|
a()
|
|
20817
|
-
],
|
|
20818
|
-
|
|
20831
|
+
], M2.prototype, "color", 2);
|
|
20832
|
+
le([
|
|
20819
20833
|
a({ type: Boolean, reflect: true })
|
|
20820
|
-
],
|
|
20821
|
-
|
|
20834
|
+
], M2.prototype, "disabled", 2);
|
|
20835
|
+
le([
|
|
20822
20836
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
20823
|
-
],
|
|
20824
|
-
customElements.get("obi-navigate-to-modal") || customElements.define("obi-navigate-to-modal",
|
|
20825
|
-
var
|
|
20826
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20837
|
+
], M2.prototype, "closeDisabled", 2);
|
|
20838
|
+
customElements.get("obi-navigate-to-modal") || customElements.define("obi-navigate-to-modal", M2);
|
|
20839
|
+
var po = Object.defineProperty, uo = Object.getOwnPropertyDescriptor, $e = (s2, e2, i3, o2) => {
|
|
20840
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? uo(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20827
20841
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20828
|
-
return o2 && t2 &&
|
|
20842
|
+
return o2 && t2 && po(e2, i3, t2), t2;
|
|
20829
20843
|
};
|
|
20830
|
-
class
|
|
20844
|
+
class X extends i$1 {
|
|
20831
20845
|
constructor() {
|
|
20832
20846
|
super(...arguments), this.disabled = false, this.open = false, this.color = "#9500FF";
|
|
20833
20847
|
}
|
|
@@ -20843,26 +20857,26 @@ class Y extends i$1 {
|
|
|
20843
20857
|
`;
|
|
20844
20858
|
}
|
|
20845
20859
|
}
|
|
20846
|
-
|
|
20847
|
-
|
|
20860
|
+
X.styles = [m];
|
|
20861
|
+
$e([
|
|
20848
20862
|
a({ type: Object })
|
|
20849
|
-
],
|
|
20850
|
-
|
|
20863
|
+
], X.prototype, "session", 2);
|
|
20864
|
+
$e([
|
|
20851
20865
|
a({ type: Boolean, reflect: true })
|
|
20852
|
-
],
|
|
20853
|
-
|
|
20866
|
+
], X.prototype, "disabled", 2);
|
|
20867
|
+
$e([
|
|
20854
20868
|
a({ type: Boolean, reflect: true })
|
|
20855
|
-
],
|
|
20856
|
-
|
|
20869
|
+
], X.prototype, "open", 2);
|
|
20870
|
+
$e([
|
|
20857
20871
|
a()
|
|
20858
|
-
],
|
|
20859
|
-
customElements.get("obi-session-start-modal") || customElements.define("obi-session-start-modal",
|
|
20860
|
-
var
|
|
20861
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20872
|
+
], X.prototype, "color", 2);
|
|
20873
|
+
customElements.get("obi-session-start-modal") || customElements.define("obi-session-start-modal", X);
|
|
20874
|
+
var bo = Object.defineProperty, go = Object.getOwnPropertyDescriptor, _e = (s2, e2, i3, o2) => {
|
|
20875
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? go(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20862
20876
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20863
|
-
return o2 && t2 &&
|
|
20877
|
+
return o2 && t2 && bo(e2, i3, t2), t2;
|
|
20864
20878
|
};
|
|
20865
|
-
class
|
|
20879
|
+
class Z extends i$1 {
|
|
20866
20880
|
constructor() {
|
|
20867
20881
|
super(...arguments), this.open = false, this.disabled = false, this.color = "#9500FF";
|
|
20868
20882
|
}
|
|
@@ -20881,26 +20895,26 @@ class X extends i$1 {
|
|
|
20881
20895
|
`;
|
|
20882
20896
|
}
|
|
20883
20897
|
}
|
|
20884
|
-
|
|
20885
|
-
|
|
20898
|
+
Z.styles = [m];
|
|
20899
|
+
_e([
|
|
20886
20900
|
a({ type: Object })
|
|
20887
|
-
],
|
|
20888
|
-
|
|
20901
|
+
], Z.prototype, "session", 2);
|
|
20902
|
+
_e([
|
|
20889
20903
|
a({ type: Boolean, reflect: true })
|
|
20890
|
-
],
|
|
20891
|
-
|
|
20904
|
+
], Z.prototype, "open", 2);
|
|
20905
|
+
_e([
|
|
20892
20906
|
a({ type: Boolean, reflect: true })
|
|
20893
|
-
],
|
|
20894
|
-
|
|
20907
|
+
], Z.prototype, "disabled", 2);
|
|
20908
|
+
_e([
|
|
20895
20909
|
a()
|
|
20896
|
-
],
|
|
20897
|
-
customElements.get("obi-share-mic-modal") || customElements.define("obi-share-mic-modal",
|
|
20898
|
-
var
|
|
20899
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
20910
|
+
], Z.prototype, "color", 2);
|
|
20911
|
+
customElements.get("obi-share-mic-modal") || customElements.define("obi-share-mic-modal", Z);
|
|
20912
|
+
var mo = Object.defineProperty, fo = Object.getOwnPropertyDescriptor, J = (s2, e2, i3, o2) => {
|
|
20913
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? fo(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20900
20914
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20901
|
-
return o2 && t2 &&
|
|
20915
|
+
return o2 && t2 && mo(e2, i3, t2), t2;
|
|
20902
20916
|
};
|
|
20903
|
-
class
|
|
20917
|
+
class F extends i$1 {
|
|
20904
20918
|
constructor() {
|
|
20905
20919
|
super(...arguments), this.open = false, this.color = "#9500FF", this.disabled = false, this.loading = false, this.closeDisabled = false;
|
|
20906
20920
|
}
|
|
@@ -20922,26 +20936,227 @@ class j extends i$1 {
|
|
|
20922
20936
|
`;
|
|
20923
20937
|
}
|
|
20924
20938
|
}
|
|
20925
|
-
|
|
20926
|
-
|
|
20939
|
+
F.styles = [m];
|
|
20940
|
+
J([
|
|
20941
|
+
a({ type: Object })
|
|
20942
|
+
], F.prototype, "session", 2);
|
|
20943
|
+
J([
|
|
20944
|
+
a({ type: Boolean, reflect: true })
|
|
20945
|
+
], F.prototype, "open", 2);
|
|
20946
|
+
J([
|
|
20947
|
+
a()
|
|
20948
|
+
], F.prototype, "color", 2);
|
|
20949
|
+
J([
|
|
20950
|
+
a({ type: Boolean, reflect: true })
|
|
20951
|
+
], F.prototype, "disabled", 2);
|
|
20952
|
+
J([
|
|
20953
|
+
a({ type: Boolean, reflect: true })
|
|
20954
|
+
], F.prototype, "loading", 2);
|
|
20955
|
+
J([
|
|
20956
|
+
a({ type: Boolean, attribute: "close-disabled" })
|
|
20957
|
+
], F.prototype, "closeDisabled", 2);
|
|
20958
|
+
customElements.get("obi-voice-guidance-modal") || customElements.define("obi-voice-guidance-modal", F);
|
|
20959
|
+
var vo = Object.defineProperty, yo = Object.getOwnPropertyDescriptor, Ee = (s2, e2, i3, o2) => {
|
|
20960
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? yo(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
20961
|
+
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20962
|
+
return o2 && t2 && vo(e2, i3, t2), t2;
|
|
20963
|
+
};
|
|
20964
|
+
class K extends i$1 {
|
|
20965
|
+
constructor() {
|
|
20966
|
+
super(...arguments), this.color = "#9500FF", this.dotColor = "#FFFFFF", this.activeDots = Array(5).fill(false), this.animationTimeouts = [];
|
|
20967
|
+
}
|
|
20968
|
+
connectedCallback() {
|
|
20969
|
+
super.connectedCallback(), this.startAnimation();
|
|
20970
|
+
}
|
|
20971
|
+
disconnectedCallback() {
|
|
20972
|
+
super.disconnectedCallback(), this.clearTimeouts();
|
|
20973
|
+
}
|
|
20974
|
+
clearTimeouts() {
|
|
20975
|
+
this.animationTimeouts.forEach((e2) => clearTimeout(e2)), this.animationTimeouts = [];
|
|
20976
|
+
}
|
|
20977
|
+
startAnimation() {
|
|
20978
|
+
const r2 = () => {
|
|
20979
|
+
this.clearTimeouts();
|
|
20980
|
+
for (let d2 = 0; d2 < 5; d2++) {
|
|
20981
|
+
const l2 = d2 * 140, u2 = window.setTimeout(() => {
|
|
20982
|
+
this.activeDots = this.activeDots.map((p2, b2) => b2 === d2), this.requestUpdate();
|
|
20983
|
+
const h2 = window.setTimeout(() => {
|
|
20984
|
+
this.activeDots = this.activeDots.map((p2, b2) => b2 === d2 ? false : this.activeDots[b2]), this.requestUpdate();
|
|
20985
|
+
}, 200);
|
|
20986
|
+
this.animationTimeouts.push(h2);
|
|
20987
|
+
}, l2);
|
|
20988
|
+
this.animationTimeouts.push(u2);
|
|
20989
|
+
}
|
|
20990
|
+
const n3 = window.setTimeout(
|
|
20991
|
+
r2,
|
|
20992
|
+
5 * 200 * 0.7 + 300
|
|
20993
|
+
);
|
|
20994
|
+
this.animationTimeouts.push(n3);
|
|
20995
|
+
};
|
|
20996
|
+
r2();
|
|
20997
|
+
}
|
|
20998
|
+
updated(e2) {
|
|
20999
|
+
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);
|
|
21000
|
+
}
|
|
21001
|
+
render() {
|
|
21002
|
+
return x`
|
|
21003
|
+
<div class="container">
|
|
21004
|
+
<div class="dots-container">
|
|
21005
|
+
${this.activeDots.map((e2, i3) => x`
|
|
21006
|
+
<div class="dot ${e2 ? "active" : ""}" key=${i3}></div>
|
|
21007
|
+
`)}
|
|
21008
|
+
</div>
|
|
21009
|
+
</div>
|
|
21010
|
+
`;
|
|
21011
|
+
}
|
|
21012
|
+
}
|
|
21013
|
+
K.styles = [
|
|
21014
|
+
m,
|
|
21015
|
+
i$4`
|
|
21016
|
+
:host {
|
|
21017
|
+
display: flex;
|
|
21018
|
+
align-items: center;
|
|
21019
|
+
justify-content: center;
|
|
21020
|
+
}
|
|
21021
|
+
|
|
21022
|
+
.container {
|
|
21023
|
+
width: 96px;
|
|
21024
|
+
height: 96px;
|
|
21025
|
+
border-radius: 8px;
|
|
21026
|
+
display: flex;
|
|
21027
|
+
align-items: center;
|
|
21028
|
+
justify-content: center;
|
|
21029
|
+
box-shadow: 0 0 20px 5px var(--voice-guidance-color, #9500FF);
|
|
21030
|
+
background-color: var(--voice-guidance-color, #9500FF);
|
|
21031
|
+
}
|
|
21032
|
+
|
|
21033
|
+
.dots-container {
|
|
21034
|
+
display: flex;
|
|
21035
|
+
flex-direction: row;
|
|
21036
|
+
width: 64px;
|
|
21037
|
+
height: 14px;
|
|
21038
|
+
justify-content: center;
|
|
21039
|
+
align-items: center;
|
|
21040
|
+
padding: 0;
|
|
21041
|
+
margin: 0;
|
|
21042
|
+
gap: 8px;
|
|
21043
|
+
}
|
|
21044
|
+
|
|
21045
|
+
.dot {
|
|
21046
|
+
width: 3px;
|
|
21047
|
+
height: 3px;
|
|
21048
|
+
border-radius: 50%;
|
|
21049
|
+
background-color: var(--voice-guidance-dot-color, #FFFFFF);
|
|
21050
|
+
transition: transform 200ms ease-in-out;
|
|
21051
|
+
transform: translateY(0);
|
|
21052
|
+
}
|
|
21053
|
+
|
|
21054
|
+
.dot.active {
|
|
21055
|
+
transform: translateY(-20px);
|
|
21056
|
+
}
|
|
21057
|
+
`
|
|
21058
|
+
];
|
|
21059
|
+
Ee([
|
|
21060
|
+
a()
|
|
21061
|
+
], K.prototype, "color", 2);
|
|
21062
|
+
Ee([
|
|
21063
|
+
a({ attribute: "dot-color" })
|
|
21064
|
+
], K.prototype, "dotColor", 2);
|
|
21065
|
+
Ee([
|
|
21066
|
+
v()
|
|
21067
|
+
], K.prototype, "activeDots", 2);
|
|
21068
|
+
Ee([
|
|
21069
|
+
v()
|
|
21070
|
+
], K.prototype, "animationTimeouts", 2);
|
|
21071
|
+
customElements.get("obi-overview-visual") || customElements.define("obi-overview-visual", K);
|
|
21072
|
+
var xo = Object.defineProperty, wo = Object.getOwnPropertyDescriptor, Te = (s2, e2, i3, o2) => {
|
|
21073
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? wo(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
21074
|
+
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
21075
|
+
return o2 && t2 && xo(e2, i3, t2), t2;
|
|
21076
|
+
};
|
|
21077
|
+
class ce extends i$1 {
|
|
21078
|
+
constructor() {
|
|
21079
|
+
super(...arguments), this.color = "#9500FF", this.loading = false;
|
|
21080
|
+
}
|
|
21081
|
+
render() {
|
|
21082
|
+
return x`
|
|
21083
|
+
<obi-base-onboarding-content
|
|
21084
|
+
title="Welcome to the tour"
|
|
21085
|
+
subtitle="Let's get started!"
|
|
21086
|
+
agent-name=${this.session.agentName || "Obi"}
|
|
21087
|
+
color=${this.color}
|
|
21088
|
+
disabled
|
|
21089
|
+
>
|
|
21090
|
+
<obi-overview-visual
|
|
21091
|
+
slot="center-visual"
|
|
21092
|
+
color=${this.color}
|
|
21093
|
+
></obi-overview-visual>
|
|
21094
|
+
|
|
21095
|
+
<div slot="description">
|
|
21096
|
+
${this.session.agentName || "Obi"} will guide you through the tour by talking with you.
|
|
21097
|
+
</div>
|
|
21098
|
+
</obi-base-onboarding-content>
|
|
21099
|
+
`;
|
|
21100
|
+
}
|
|
21101
|
+
}
|
|
21102
|
+
ce.styles = [m];
|
|
21103
|
+
Te([
|
|
21104
|
+
a({ type: Object })
|
|
21105
|
+
], ce.prototype, "session", 2);
|
|
21106
|
+
Te([
|
|
21107
|
+
a()
|
|
21108
|
+
], ce.prototype, "color", 2);
|
|
21109
|
+
Te([
|
|
21110
|
+
a({ type: Boolean, reflect: true })
|
|
21111
|
+
], ce.prototype, "loading", 2);
|
|
21112
|
+
customElements.get("obi-overview-content") || customElements.define("obi-overview-content", ce);
|
|
21113
|
+
var $o = Object.defineProperty, _o = Object.getOwnPropertyDescriptor, Q = (s2, e2, i3, o2) => {
|
|
21114
|
+
for (var t2 = o2 > 1 ? void 0 : o2 ? _o(e2, i3) : e2, r2 = s2.length - 1, n3; r2 >= 0; r2--)
|
|
21115
|
+
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
21116
|
+
return o2 && t2 && $o(e2, i3, t2), t2;
|
|
21117
|
+
};
|
|
21118
|
+
class j extends i$1 {
|
|
21119
|
+
constructor() {
|
|
21120
|
+
super(...arguments), this.open = false, this.color = "#9500FF", this.disabled = false, this.loading = false, this.closeDisabled = false;
|
|
21121
|
+
}
|
|
21122
|
+
render() {
|
|
21123
|
+
return x`
|
|
21124
|
+
<obi-base-onboarding-modal
|
|
21125
|
+
.session=${this.session}
|
|
21126
|
+
?open=${this.open}
|
|
21127
|
+
?disabled=${this.disabled}
|
|
21128
|
+
?close-disabled=${this.closeDisabled || this.loading}
|
|
21129
|
+
>
|
|
21130
|
+
<obi-overview-content
|
|
21131
|
+
.session=${this.session}
|
|
21132
|
+
.color=${this.color}
|
|
21133
|
+
.loading=${this.loading}
|
|
21134
|
+
.disabled=${this.disabled}
|
|
21135
|
+
></obi-overview-content>
|
|
21136
|
+
</obi-base-onboarding-modal>
|
|
21137
|
+
`;
|
|
21138
|
+
}
|
|
21139
|
+
}
|
|
21140
|
+
j.styles = [m];
|
|
21141
|
+
Q([
|
|
20927
21142
|
a({ type: Object })
|
|
20928
21143
|
], j.prototype, "session", 2);
|
|
20929
|
-
|
|
21144
|
+
Q([
|
|
20930
21145
|
a({ type: Boolean, reflect: true })
|
|
20931
21146
|
], j.prototype, "open", 2);
|
|
20932
|
-
|
|
21147
|
+
Q([
|
|
20933
21148
|
a()
|
|
20934
21149
|
], j.prototype, "color", 2);
|
|
20935
|
-
|
|
21150
|
+
Q([
|
|
20936
21151
|
a({ type: Boolean, reflect: true })
|
|
20937
21152
|
], j.prototype, "disabled", 2);
|
|
20938
|
-
|
|
21153
|
+
Q([
|
|
20939
21154
|
a({ type: Boolean, reflect: true })
|
|
20940
21155
|
], j.prototype, "loading", 2);
|
|
20941
|
-
|
|
21156
|
+
Q([
|
|
20942
21157
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
20943
21158
|
], j.prototype, "closeDisabled", 2);
|
|
20944
|
-
customElements.get("obi-
|
|
21159
|
+
customElements.get("obi-overview-modal") || customElements.define("obi-overview-modal", j);
|
|
20945
21160
|
var __defProp = Object.defineProperty;
|
|
20946
21161
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
20947
21162
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -20968,6 +21183,7 @@ class ObiWidget extends i$1 {
|
|
|
20968
21183
|
this.showSessionStartModal = false;
|
|
20969
21184
|
this.showShareMicModal = false;
|
|
20970
21185
|
this.micShareEnabled = false;
|
|
21186
|
+
this.showOverviewModal = false;
|
|
20971
21187
|
this.showVoiceGuidanceModal = false;
|
|
20972
21188
|
this.voiceGuidanceEnabled = false;
|
|
20973
21189
|
this.selectedCourse = null;
|
|
@@ -21085,6 +21301,7 @@ class ObiWidget extends i$1 {
|
|
|
21085
21301
|
this.showCourseModal = false;
|
|
21086
21302
|
this.showSessionStartModal = false;
|
|
21087
21303
|
this.showShareMicModal = false;
|
|
21304
|
+
this.showOverviewModal = false;
|
|
21088
21305
|
};
|
|
21089
21306
|
this.handleCourseSelectEvent = (event) => {
|
|
21090
21307
|
const customEvent = event;
|
|
@@ -21092,6 +21309,7 @@ class ObiWidget extends i$1 {
|
|
|
21092
21309
|
this.showCourseModal = false;
|
|
21093
21310
|
this.showSessionStartModal = true;
|
|
21094
21311
|
this.showShareMicModal = false;
|
|
21312
|
+
this.showOverviewModal = false;
|
|
21095
21313
|
this.micShareEnabled = false;
|
|
21096
21314
|
this.showVoiceGuidanceModal = false;
|
|
21097
21315
|
this.voiceGuidanceEnabled = false;
|
|
@@ -21264,6 +21482,10 @@ class ObiWidget extends i$1 {
|
|
|
21264
21482
|
sessionId
|
|
21265
21483
|
});
|
|
21266
21484
|
};
|
|
21485
|
+
this.handleOverviewModalClose = () => {
|
|
21486
|
+
this.showOverviewModal = false;
|
|
21487
|
+
this.handleCloseModals();
|
|
21488
|
+
};
|
|
21267
21489
|
this.handleShareMicModalContinue = async (event) => {
|
|
21268
21490
|
const { session, micPermissionGranted } = event.detail;
|
|
21269
21491
|
console.log("[ShareMicModal] Continue button clicked", {
|
|
@@ -21285,7 +21507,6 @@ class ObiWidget extends i$1 {
|
|
|
21285
21507
|
}
|
|
21286
21508
|
await this.activeSession.shareMic();
|
|
21287
21509
|
this.showShareMicModal = false;
|
|
21288
|
-
this.showVoiceGuidanceModal = true;
|
|
21289
21510
|
};
|
|
21290
21511
|
this.handleShareMicModalClose = () => {
|
|
21291
21512
|
console.log("[ShareMicModal] Close button clicked", {
|
|
@@ -21307,6 +21528,8 @@ class ObiWidget extends i$1 {
|
|
|
21307
21528
|
);
|
|
21308
21529
|
await this.activeSession?.promptContinue();
|
|
21309
21530
|
this.showVoiceGuidanceModal = false;
|
|
21531
|
+
this.voiceGuidanceEnabled = false;
|
|
21532
|
+
this.showOverviewModal = true;
|
|
21310
21533
|
};
|
|
21311
21534
|
this.handleVoiceGuidanceModalClose = () => {
|
|
21312
21535
|
console.log("[obi] voice guidance modal close", {
|
|
@@ -21482,6 +21705,7 @@ class ObiWidget extends i$1 {
|
|
|
21482
21705
|
const session = new ObiSession({
|
|
21483
21706
|
sessionId: sessionToken,
|
|
21484
21707
|
apiBaseUrl: API_BASE_URL,
|
|
21708
|
+
clientType: "sdk",
|
|
21485
21709
|
...this.user && { user: this.user }
|
|
21486
21710
|
});
|
|
21487
21711
|
if (!session) {
|
|
@@ -21533,27 +21757,21 @@ class ObiWidget extends i$1 {
|
|
|
21533
21757
|
onError();
|
|
21534
21758
|
}
|
|
21535
21759
|
});
|
|
21536
|
-
session.on("micShareRequested", () => {
|
|
21537
|
-
this.micShareEnabled = true;
|
|
21538
|
-
});
|
|
21539
21760
|
session.on("micCheck", (permissionGranted) => {
|
|
21540
|
-
|
|
21541
|
-
|
|
21542
|
-
this.showShareMicModal = true;
|
|
21543
|
-
} else {
|
|
21761
|
+
this.showOverviewModal = false;
|
|
21762
|
+
if (!permissionGranted) {
|
|
21544
21763
|
this.showShareMicModal = true;
|
|
21545
|
-
this.showVoiceGuidanceModal = false;
|
|
21546
21764
|
}
|
|
21547
21765
|
});
|
|
21766
|
+
session.on("micShareRequested", () => {
|
|
21767
|
+
this.micShareEnabled = true;
|
|
21768
|
+
});
|
|
21769
|
+
session.on("micShared", () => {
|
|
21770
|
+
this.showOverviewModal = false;
|
|
21771
|
+
});
|
|
21548
21772
|
session.on("promptUser", () => {
|
|
21549
21773
|
this.voiceGuidanceEnabled = true;
|
|
21550
21774
|
});
|
|
21551
|
-
session.on("micCheck", (permissionGranted) => {
|
|
21552
|
-
if (permissionGranted) {
|
|
21553
|
-
this.showVoiceGuidanceModal = true;
|
|
21554
|
-
this.showShareMicModal = false;
|
|
21555
|
-
}
|
|
21556
|
-
});
|
|
21557
21775
|
}
|
|
21558
21776
|
/**
|
|
21559
21777
|
* Handle session creation failure
|
|
@@ -21884,38 +22102,52 @@ class ObiWidget extends i$1 {
|
|
|
21884
22102
|
>
|
|
21885
22103
|
</obi-session-start-modal>
|
|
21886
22104
|
` : E$1}
|
|
21887
|
-
${this.
|
|
21888
|
-
<obi-
|
|
22105
|
+
${this.showVoiceGuidanceModal ? x`
|
|
22106
|
+
<obi-voice-guidance-modal
|
|
21889
22107
|
.session=${this.selectedCourse ? {
|
|
21890
22108
|
id: this.selectedCourse.id,
|
|
21891
22109
|
name: this.selectedCourse.name,
|
|
21892
22110
|
description: this.selectedCourse.description,
|
|
21893
22111
|
agentName: this.databaseConfig?.agentName
|
|
21894
22112
|
} : {}}
|
|
21895
|
-
?open=${this.
|
|
21896
|
-
?disabled=${!this.
|
|
22113
|
+
?open=${this.showVoiceGuidanceModal}
|
|
22114
|
+
?disabled=${!this.voiceGuidanceEnabled}
|
|
21897
22115
|
color=${this.primaryColor}
|
|
21898
|
-
@obi-continue=${this.
|
|
21899
|
-
@obi-close=${this.
|
|
22116
|
+
@obi-continue=${this.handleVoiceGuidanceModalContinue}
|
|
22117
|
+
@obi-close=${this.handleVoiceGuidanceModalClose}
|
|
21900
22118
|
>
|
|
21901
|
-
</obi-
|
|
22119
|
+
</obi-voice-guidance-modal>
|
|
21902
22120
|
` : E$1}
|
|
21903
|
-
${this.
|
|
21904
|
-
<obi-
|
|
22121
|
+
${this.showOverviewModal ? x`
|
|
22122
|
+
<obi-overview-modal
|
|
21905
22123
|
.session=${this.selectedCourse ? {
|
|
21906
22124
|
id: this.selectedCourse.id,
|
|
21907
22125
|
name: this.selectedCourse.name,
|
|
21908
22126
|
description: this.selectedCourse.description,
|
|
21909
22127
|
agentName: this.databaseConfig?.agentName
|
|
21910
22128
|
} : {}}
|
|
21911
|
-
?open=${this.
|
|
21912
|
-
?disabled=${!this.voiceGuidanceEnabled}
|
|
22129
|
+
?open=${this.showOverviewModal}
|
|
21913
22130
|
color=${this.primaryColor}
|
|
21914
|
-
@obi-
|
|
21915
|
-
@obi-close=${this.handleVoiceGuidanceModalClose}
|
|
22131
|
+
@obi-close=${this.handleOverviewModalClose}
|
|
21916
22132
|
>
|
|
21917
22133
|
</obi-voice-guidance-modal>
|
|
21918
22134
|
` : E$1}
|
|
22135
|
+
${this.showShareMicModal ? x`
|
|
22136
|
+
<obi-share-mic-modal
|
|
22137
|
+
.session=${this.selectedCourse ? {
|
|
22138
|
+
id: this.selectedCourse.id,
|
|
22139
|
+
name: this.selectedCourse.name,
|
|
22140
|
+
description: this.selectedCourse.description,
|
|
22141
|
+
agentName: this.databaseConfig?.agentName
|
|
22142
|
+
} : {}}
|
|
22143
|
+
?open=${this.showShareMicModal}
|
|
22144
|
+
?disabled=${!this.micShareEnabled}
|
|
22145
|
+
color=${this.primaryColor}
|
|
22146
|
+
@obi-continue=${this.handleShareMicModalContinue}
|
|
22147
|
+
@obi-close=${this.handleShareMicModalClose}
|
|
22148
|
+
>
|
|
22149
|
+
</obi-share-mic-modal>
|
|
22150
|
+
` : E$1}
|
|
21919
22151
|
`;
|
|
21920
22152
|
}
|
|
21921
22153
|
}
|
|
@@ -22105,6 +22337,9 @@ __decorateClass([
|
|
|
22105
22337
|
__decorateClass([
|
|
22106
22338
|
r$1()
|
|
22107
22339
|
], ObiWidget.prototype, "micShareEnabled", 2);
|
|
22340
|
+
__decorateClass([
|
|
22341
|
+
r$1()
|
|
22342
|
+
], ObiWidget.prototype, "showOverviewModal", 2);
|
|
22108
22343
|
__decorateClass([
|
|
22109
22344
|
r$1()
|
|
22110
22345
|
], ObiWidget.prototype, "showVoiceGuidanceModal", 2);
|
|
@@ -22165,4 +22400,4 @@ export {
|
|
|
22165
22400
|
withSentryAsyncHandler as w,
|
|
22166
22401
|
x
|
|
22167
22402
|
};
|
|
22168
|
-
//# sourceMappingURL=obi-widget-
|
|
22403
|
+
//# sourceMappingURL=obi-widget-381a94c3.js.map
|