obi-sdk 0.13.3 → 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-222a1e0d.js → obi-widget-381a94c3.js} +753 -481
- 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 +5237 -4991
- 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 +4 -3
- package/dist/modular/chunks/index-dcd6962d.js +0 -6
- package/dist/modular/chunks/index-dcd6962d.js.map +0 -1
- package/dist/modular/chunks/obi-widget-222a1e0d.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as SDKState, E as EventEmitter, R as RoomEvent, T as Track, z as z$3, a as Room, A as API_BASE_URL, N as N$2 } from "./types-
|
|
1
|
+
import { S as SDKState, E as EventEmitter, R as RoomEvent, T as Track, z as z$3, a as Room, A as API_BASE_URL, N as N$2 } from "./types-eb1fb85a.js";
|
|
2
2
|
const PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
3
3
|
function randomID() {
|
|
4
4
|
return Math.random().toString(36).slice(2, 11);
|
|
@@ -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
|
});
|
|
@@ -747,6 +747,7 @@ class ObiSession {
|
|
|
747
747
|
}).with("share_screen", () => {
|
|
748
748
|
this.emitter.emit("screenShareRequested");
|
|
749
749
|
}).with("prompt_user", () => {
|
|
750
|
+
console.log("[obi] prompt user received");
|
|
750
751
|
this.emitter.emit("promptUser");
|
|
751
752
|
}).with("capture_page_html", () => {
|
|
752
753
|
this.emitter.emit("capturePageHTML");
|
|
@@ -779,6 +780,13 @@ class ObiSession {
|
|
|
779
780
|
});
|
|
780
781
|
});
|
|
781
782
|
});
|
|
783
|
+
this.room.localParticipant.registerRpcMethod("mic_check", async (data) => {
|
|
784
|
+
if (await this.checkMic()) {
|
|
785
|
+
return "ok";
|
|
786
|
+
} else {
|
|
787
|
+
return "error";
|
|
788
|
+
}
|
|
789
|
+
});
|
|
782
790
|
}
|
|
783
791
|
/**
|
|
784
792
|
* Connect to the LiveKit room.
|
|
@@ -799,7 +807,7 @@ class ObiSession {
|
|
|
799
807
|
});
|
|
800
808
|
this.setupRoomEventListeners();
|
|
801
809
|
const joinToken = await this.client.getJoinToken(this.sessionId, {
|
|
802
|
-
|
|
810
|
+
clientType: this.clientType,
|
|
803
811
|
...this.user && { user: JSON.stringify(this.user) }
|
|
804
812
|
});
|
|
805
813
|
await this.room.connect(joinToken.data.url, joinToken.data.token);
|
|
@@ -854,6 +862,20 @@ class ObiSession {
|
|
|
854
862
|
getCurrentState() {
|
|
855
863
|
return this.currentState;
|
|
856
864
|
}
|
|
865
|
+
async checkMic() {
|
|
866
|
+
let permissionGranted = false;
|
|
867
|
+
try {
|
|
868
|
+
const permStatus = await navigator.permissions.query({ name: "microphone" });
|
|
869
|
+
permissionGranted = permStatus.state === "granted";
|
|
870
|
+
} catch (error) {
|
|
871
|
+
console.error("[obi] error checking microphone permission:", error);
|
|
872
|
+
}
|
|
873
|
+
if (permissionGranted) {
|
|
874
|
+
await this.shareMic();
|
|
875
|
+
}
|
|
876
|
+
this.emitter.emit("micCheck", permissionGranted);
|
|
877
|
+
return permissionGranted;
|
|
878
|
+
}
|
|
857
879
|
async requestMicrophone() {
|
|
858
880
|
try {
|
|
859
881
|
const stream = await navigator.mediaDevices.getUserMedia({ audio: true });
|
|
@@ -874,6 +896,22 @@ class ObiSession {
|
|
|
874
896
|
throw new Error("Microphone permission denied");
|
|
875
897
|
}
|
|
876
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
|
+
}
|
|
877
915
|
async shareMic() {
|
|
878
916
|
if (!this.room) {
|
|
879
917
|
console.warn("[obi] shareMic called while not connected");
|
|
@@ -881,22 +919,18 @@ class ObiSession {
|
|
|
881
919
|
}
|
|
882
920
|
this.emitter.emit("preMicShare");
|
|
883
921
|
try {
|
|
884
|
-
await this.
|
|
885
|
-
if (!this.microphoneStream) {
|
|
886
|
-
console.warn("[obi] failed to share microphone");
|
|
887
|
-
return;
|
|
888
|
-
}
|
|
889
|
-
const micTrack = this.microphoneStream.getAudioTracks()[0];
|
|
890
|
-
await this.room.localParticipant.publishTrack(micTrack, {
|
|
891
|
-
name: "microphone",
|
|
892
|
-
source: Track.Source.Microphone
|
|
893
|
-
});
|
|
922
|
+
await this.requestMicrophoneAndPublish();
|
|
894
923
|
await this.room.localParticipant.publishData(new TextEncoder().encode(JSON.stringify({
|
|
895
924
|
request: "share_mic",
|
|
896
925
|
success: true
|
|
897
926
|
})), { reliable: true });
|
|
898
|
-
this.emitter.emit("micShared");
|
|
927
|
+
this.emitter.emit("micShared", true);
|
|
899
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);
|
|
900
934
|
console.error("[obi] error sharing microphone:", error);
|
|
901
935
|
this.emitter.emit("error", error instanceof Error ? error : new Error(String(error)));
|
|
902
936
|
}
|
|
@@ -8887,7 +8921,7 @@ var CanvasRenderer = (
|
|
|
8887
8921
|
};
|
|
8888
8922
|
CanvasRenderer2.prototype.renderStackContent = function(stack) {
|
|
8889
8923
|
return __awaiter(this, void 0, void 0, function() {
|
|
8890
|
-
var _i, _a2, child, _b2, _c, child, _d, _e2, child, _f, _g, child, _h, _j, child, _k, _l, child, _m,
|
|
8924
|
+
var _i, _a2, child, _b2, _c, child, _d, _e2, child, _f, _g, child, _h, _j, child, _k, _l, child, _m, _o2, child;
|
|
8891
8925
|
return __generator(this, function(_p) {
|
|
8892
8926
|
switch (_p.label) {
|
|
8893
8927
|
case 0:
|
|
@@ -8988,12 +9022,12 @@ var CanvasRenderer = (
|
|
|
8988
9022
|
_k++;
|
|
8989
9023
|
return [3, 23];
|
|
8990
9024
|
case 26:
|
|
8991
|
-
_m = 0,
|
|
9025
|
+
_m = 0, _o2 = stack.positiveZIndex;
|
|
8992
9026
|
_p.label = 27;
|
|
8993
9027
|
case 27:
|
|
8994
|
-
if (!(_m <
|
|
9028
|
+
if (!(_m < _o2.length))
|
|
8995
9029
|
return [3, 30];
|
|
8996
|
-
child =
|
|
9030
|
+
child = _o2[_m];
|
|
8997
9031
|
return [4, this.renderStack(child)];
|
|
8998
9032
|
case 28:
|
|
8999
9033
|
_p.sent();
|
|
@@ -9643,7 +9677,7 @@ if (typeof window !== "undefined") {
|
|
|
9643
9677
|
var renderElement = function(element, opts) {
|
|
9644
9678
|
return __awaiter(void 0, void 0, void 0, function() {
|
|
9645
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;
|
|
9646
|
-
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;
|
|
9647
9681
|
return __generator(this, function(_u) {
|
|
9648
9682
|
switch (_u.label) {
|
|
9649
9683
|
case 0:
|
|
@@ -9696,7 +9730,7 @@ var renderElement = function(element, opts) {
|
|
|
9696
9730
|
renderOptions = {
|
|
9697
9731
|
canvas: opts.canvas,
|
|
9698
9732
|
backgroundColor: backgroundColor2,
|
|
9699
|
-
scale: (
|
|
9733
|
+
scale: (_o2 = (_m = opts.scale) !== null && _m !== void 0 ? _m : defaultView.devicePixelRatio) !== null && _o2 !== void 0 ? _o2 : 1,
|
|
9700
9734
|
x: ((_p = opts.x) !== null && _p !== void 0 ? _p : 0) + left,
|
|
9701
9735
|
y: ((_q = opts.y) !== null && _q !== void 0 ? _q : 0) + top,
|
|
9702
9736
|
width: (_r = opts.width) !== null && _r !== void 0 ? _r : Math.ceil(width),
|
|
@@ -10007,8 +10041,8 @@ let y$1 = class y extends HTMLElement {
|
|
|
10007
10041
|
}
|
|
10008
10042
|
};
|
|
10009
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");
|
|
10010
|
-
const t$1 = globalThis, i$2 = t$1.trustedTypes, s$2 = i$2 ? i$2.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, e$2 = "$lit$", h$2 = `lit$${Math.random().toFixed(9).slice(2)}$`, o$4 = "?" + h$2, n$3 = `<${o$4}>`, r$3 = document, l = () => r$3.createComment(""), c$1 = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, a$1 = Array.isArray, u = (t2) => a$1(t2) || "function" == typeof t2?.[Symbol.iterator], d = "[ \n\f\r]", f$3 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, v$1 = /-->/g, _ = />/g, m = RegExp(`>|${d}(?:([^\\s"'>=/]+)(${d}*=${d}*(?:[^
|
|
10011
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), p = /'/g, g
|
|
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);
|
|
10012
10046
|
function P$1(t2, i3) {
|
|
10013
10047
|
if (!a$1(t2) || !t2.hasOwnProperty("raw"))
|
|
10014
10048
|
throw Error("invalid template strings array");
|
|
@@ -10021,8 +10055,8 @@ const V$1 = (t2, i3) => {
|
|
|
10021
10055
|
const s3 = t2[i4];
|
|
10022
10056
|
let a2, u2, d2 = -1, y3 = 0;
|
|
10023
10057
|
for (; y3 < s3.length && (c2.lastIndex = y3, u2 = c2.exec(s3), null !== u2); )
|
|
10024
|
-
y3 = c2.lastIndex, c2 === f$3 ? "!--" === u2[1] ? c2 = v$1 : void 0 !== u2[1] ? c2 = _ : void 0 !== u2[2] ? ($$1.test(u2[2]) && (r2 = RegExp("</" + u2[2], "g")), c2 = m) : void 0 !== u2[3] && (c2 = m) : c2 === m ? ">" === u2[0] ? (c2 = r2 ?? f$3, d2 = -1) : void 0 === u2[1] ? d2 = -2 : (d2 = c2.lastIndex - u2[2].length, a2 = u2[1], c2 = void 0 === u2[3] ? m : '"' === u2[3] ? g
|
|
10025
|
-
const x2 = c2 === m && t2[i4 + 1].startsWith("/>") ? " " : "";
|
|
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("/>") ? " " : "";
|
|
10026
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);
|
|
10027
10061
|
}
|
|
10028
10062
|
return [P$1(t2, l2 + (t2[s2] || "<?>") + (2 === i3 ? "</svg>" : 3 === i3 ? "</math>" : "")), o2];
|
|
@@ -17814,19 +17848,19 @@ if (!customElements.get("obi-searching-loader")) {
|
|
|
17814
17848
|
customElements.define("obi-searching-loader", SearchingLoader);
|
|
17815
17849
|
}
|
|
17816
17850
|
const searchingLoader = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, SearchingLoader }, Symbol.toStringTag, { value: "Module" }));
|
|
17817
|
-
const
|
|
17818
|
-
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 {
|
|
17819
17853
|
constructor(e2, i3, o2) {
|
|
17820
|
-
if (this._$cssResult$ = true, o2 !==
|
|
17854
|
+
if (this._$cssResult$ = true, o2 !== qe)
|
|
17821
17855
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
17822
17856
|
this.cssText = e2, this.t = i3;
|
|
17823
17857
|
}
|
|
17824
17858
|
get styleSheet() {
|
|
17825
17859
|
let e2 = this.o;
|
|
17826
17860
|
const i3 = this.t;
|
|
17827
|
-
if (
|
|
17861
|
+
if (Ae && e2 === void 0) {
|
|
17828
17862
|
const o2 = i3 !== void 0 && i3.length === 1;
|
|
17829
|
-
o2 && (e2 =
|
|
17863
|
+
o2 && (e2 = Ne.get(i3)), e2 === void 0 && ((this.o = e2 = new CSSStyleSheet()).replaceSync(this.cssText), o2 && Ne.set(i3, e2));
|
|
17830
17864
|
}
|
|
17831
17865
|
return e2;
|
|
17832
17866
|
}
|
|
@@ -17834,24 +17868,24 @@ let Xe = class {
|
|
|
17834
17868
|
return this.cssText;
|
|
17835
17869
|
}
|
|
17836
17870
|
};
|
|
17837
|
-
const
|
|
17838
|
-
if (
|
|
17871
|
+
const ot = (s2) => new tt(typeof s2 == "string" ? s2 : s2 + "", void 0, qe), it = (s2, e2) => {
|
|
17872
|
+
if (Ae)
|
|
17839
17873
|
s2.adoptedStyleSheets = e2.map((i3) => i3 instanceof CSSStyleSheet ? i3 : i3.styleSheet);
|
|
17840
17874
|
else
|
|
17841
17875
|
for (const i3 of e2) {
|
|
17842
|
-
const o2 = document.createElement("style"), t2 =
|
|
17876
|
+
const o2 = document.createElement("style"), t2 = de.litNonce;
|
|
17843
17877
|
t2 !== void 0 && o2.setAttribute("nonce", t2), o2.textContent = i3.cssText, s2.appendChild(o2);
|
|
17844
17878
|
}
|
|
17845
|
-
},
|
|
17879
|
+
}, ke = Ae ? (s2) => s2 : (s2) => s2 instanceof CSSStyleSheet ? ((e2) => {
|
|
17846
17880
|
let i3 = "";
|
|
17847
17881
|
for (const o2 of e2.cssRules)
|
|
17848
17882
|
i3 += o2.cssText;
|
|
17849
|
-
return
|
|
17883
|
+
return ot(i3);
|
|
17850
17884
|
})(s2) : s2;
|
|
17851
|
-
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) {
|
|
17852
17886
|
switch (e2) {
|
|
17853
17887
|
case Boolean:
|
|
17854
|
-
s2 = s2 ?
|
|
17888
|
+
s2 = s2 ? dt : null;
|
|
17855
17889
|
break;
|
|
17856
17890
|
case Object:
|
|
17857
17891
|
case Array:
|
|
@@ -17876,46 +17910,46 @@ const { is: Ke, defineProperty: Qe, getOwnPropertyDescriptor: et, getOwnProperty
|
|
|
17876
17910
|
}
|
|
17877
17911
|
}
|
|
17878
17912
|
return i3;
|
|
17879
|
-
} },
|
|
17913
|
+
} }, Pe = (s2, e2) => !st(s2, e2), Be = { attribute: true, type: String, converter: he, reflect: false, useDefault: false, hasChanged: Pe };
|
|
17880
17914
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
17881
|
-
class
|
|
17915
|
+
class ee extends HTMLElement {
|
|
17882
17916
|
static addInitializer(e2) {
|
|
17883
17917
|
this._$Ei(), (this.l ?? (this.l = [])).push(e2);
|
|
17884
17918
|
}
|
|
17885
17919
|
static get observedAttributes() {
|
|
17886
17920
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
17887
17921
|
}
|
|
17888
|
-
static createProperty(e2, i3 =
|
|
17922
|
+
static createProperty(e2, i3 = Be) {
|
|
17889
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) {
|
|
17890
17924
|
const o2 = Symbol(), t2 = this.getPropertyDescriptor(e2, o2, i3);
|
|
17891
|
-
t2 !== void 0 &&
|
|
17925
|
+
t2 !== void 0 && rt(this.prototype, e2, t2);
|
|
17892
17926
|
}
|
|
17893
17927
|
}
|
|
17894
17928
|
static getPropertyDescriptor(e2, i3, o2) {
|
|
17895
|
-
const { get: t2, set: r2 } =
|
|
17929
|
+
const { get: t2, set: r2 } = nt(this.prototype, e2) ?? { get() {
|
|
17896
17930
|
return this[i3];
|
|
17897
17931
|
}, set(n3) {
|
|
17898
17932
|
this[i3] = n3;
|
|
17899
17933
|
} };
|
|
17900
17934
|
return { get: t2, set(n3) {
|
|
17901
|
-
const
|
|
17902
|
-
r2?.call(this, n3), this.requestUpdate(e2,
|
|
17935
|
+
const d2 = t2?.call(this);
|
|
17936
|
+
r2?.call(this, n3), this.requestUpdate(e2, d2, o2);
|
|
17903
17937
|
}, configurable: true, enumerable: true };
|
|
17904
17938
|
}
|
|
17905
17939
|
static getPropertyOptions(e2) {
|
|
17906
|
-
return this.elementProperties.get(e2) ??
|
|
17940
|
+
return this.elementProperties.get(e2) ?? Be;
|
|
17907
17941
|
}
|
|
17908
17942
|
static _$Ei() {
|
|
17909
|
-
if (this.hasOwnProperty(
|
|
17943
|
+
if (this.hasOwnProperty(oe("elementProperties")))
|
|
17910
17944
|
return;
|
|
17911
|
-
const e2 =
|
|
17945
|
+
const e2 = ct(this);
|
|
17912
17946
|
e2.finalize(), e2.l !== void 0 && (this.l = [...e2.l]), this.elementProperties = new Map(e2.elementProperties);
|
|
17913
17947
|
}
|
|
17914
17948
|
static finalize() {
|
|
17915
|
-
if (this.hasOwnProperty(
|
|
17949
|
+
if (this.hasOwnProperty(oe("finalized")))
|
|
17916
17950
|
return;
|
|
17917
|
-
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(
|
|
17918
|
-
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)];
|
|
17919
17953
|
for (const t2 of o2)
|
|
17920
17954
|
this.createProperty(t2, i3[t2]);
|
|
17921
17955
|
}
|
|
@@ -17938,9 +17972,9 @@ class J extends HTMLElement {
|
|
|
17938
17972
|
if (Array.isArray(e2)) {
|
|
17939
17973
|
const o2 = new Set(e2.flat(1 / 0).reverse());
|
|
17940
17974
|
for (const t2 of o2)
|
|
17941
|
-
i3.unshift(
|
|
17975
|
+
i3.unshift(ke(t2));
|
|
17942
17976
|
} else
|
|
17943
|
-
e2 !== void 0 && i3.push(
|
|
17977
|
+
e2 !== void 0 && i3.push(ke(e2));
|
|
17944
17978
|
return i3;
|
|
17945
17979
|
}
|
|
17946
17980
|
static _$Eu(e2, i3) {
|
|
@@ -17967,7 +18001,7 @@ class J extends HTMLElement {
|
|
|
17967
18001
|
}
|
|
17968
18002
|
createRenderRoot() {
|
|
17969
18003
|
const e2 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
17970
|
-
return
|
|
18004
|
+
return it(e2, this.constructor.elementStyles), e2;
|
|
17971
18005
|
}
|
|
17972
18006
|
connectedCallback() {
|
|
17973
18007
|
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), this._$EO?.forEach((e2) => e2.hostConnected?.());
|
|
@@ -17983,21 +18017,21 @@ class J extends HTMLElement {
|
|
|
17983
18017
|
_$ET(e2, i3) {
|
|
17984
18018
|
const o2 = this.constructor.elementProperties.get(e2), t2 = this.constructor._$Eu(e2, o2);
|
|
17985
18019
|
if (t2 !== void 0 && o2.reflect === true) {
|
|
17986
|
-
const r2 = (o2.converter?.toAttribute !== void 0 ? o2.converter :
|
|
18020
|
+
const r2 = (o2.converter?.toAttribute !== void 0 ? o2.converter : he).toAttribute(i3, o2.type);
|
|
17987
18021
|
this._$Em = e2, r2 == null ? this.removeAttribute(t2) : this.setAttribute(t2, r2), this._$Em = null;
|
|
17988
18022
|
}
|
|
17989
18023
|
}
|
|
17990
18024
|
_$AK(e2, i3) {
|
|
17991
18025
|
const o2 = this.constructor, t2 = o2._$Eh.get(e2);
|
|
17992
18026
|
if (t2 !== void 0 && this._$Em !== t2) {
|
|
17993
|
-
const r2 = o2.getPropertyOptions(t2), n3 = typeof r2.converter == "function" ? { fromAttribute: r2.converter } : r2.converter?.fromAttribute !== void 0 ? r2.converter :
|
|
18027
|
+
const r2 = o2.getPropertyOptions(t2), n3 = typeof r2.converter == "function" ? { fromAttribute: r2.converter } : r2.converter?.fromAttribute !== void 0 ? r2.converter : he;
|
|
17994
18028
|
this._$Em = t2, this[t2] = n3.fromAttribute(i3, r2.type) ?? this._$Ej?.get(t2) ?? null, this._$Em = null;
|
|
17995
18029
|
}
|
|
17996
18030
|
}
|
|
17997
18031
|
requestUpdate(e2, i3, o2) {
|
|
17998
18032
|
if (e2 !== void 0) {
|
|
17999
18033
|
const t2 = this.constructor, r2 = this[e2];
|
|
18000
|
-
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))))
|
|
18001
18035
|
return;
|
|
18002
18036
|
this.C(e2, i3, o2);
|
|
18003
18037
|
}
|
|
@@ -18031,8 +18065,8 @@ class J extends HTMLElement {
|
|
|
18031
18065
|
const o2 = this.constructor.elementProperties;
|
|
18032
18066
|
if (o2.size > 0)
|
|
18033
18067
|
for (const [t2, r2] of o2) {
|
|
18034
|
-
const { wrapped: n3 } = r2,
|
|
18035
|
-
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);
|
|
18036
18070
|
}
|
|
18037
18071
|
}
|
|
18038
18072
|
let e2 = false;
|
|
@@ -18069,30 +18103,30 @@ class J extends HTMLElement {
|
|
|
18069
18103
|
firstUpdated(e2) {
|
|
18070
18104
|
}
|
|
18071
18105
|
}
|
|
18072
|
-
|
|
18073
|
-
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) => {
|
|
18074
18108
|
const { kind: o2, metadata: t2 } = i3;
|
|
18075
18109
|
let r2 = globalThis.litPropertyMetadata.get(t2);
|
|
18076
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") {
|
|
18077
18111
|
const { name: n3 } = i3;
|
|
18078
|
-
return { set(
|
|
18112
|
+
return { set(d2) {
|
|
18079
18113
|
const l2 = e2.get.call(this);
|
|
18080
|
-
e2.set.call(this,
|
|
18081
|
-
}, init(
|
|
18082
|
-
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;
|
|
18083
18117
|
} };
|
|
18084
18118
|
}
|
|
18085
18119
|
if (o2 === "setter") {
|
|
18086
18120
|
const { name: n3 } = i3;
|
|
18087
|
-
return function(
|
|
18121
|
+
return function(d2) {
|
|
18088
18122
|
const l2 = this[n3];
|
|
18089
|
-
e2.call(this,
|
|
18123
|
+
e2.call(this, d2), this.requestUpdate(n3, l2, s2);
|
|
18090
18124
|
};
|
|
18091
18125
|
}
|
|
18092
18126
|
throw Error("Unsupported decorator location: " + o2);
|
|
18093
18127
|
};
|
|
18094
18128
|
function a(s2) {
|
|
18095
|
-
return (e2, i3) => typeof i3 == "object" ?
|
|
18129
|
+
return (e2, i3) => typeof i3 == "object" ? ut(s2, e2, i3) : ((o2, t2, r2) => {
|
|
18096
18130
|
const n3 = t2.hasOwnProperty(r2);
|
|
18097
18131
|
return t2.constructor.createProperty(r2, o2), n3 ? Object.getOwnPropertyDescriptor(t2, r2) : void 0;
|
|
18098
18132
|
})(s2, e2, i3);
|
|
@@ -18100,12 +18134,12 @@ function a(s2) {
|
|
|
18100
18134
|
function v(s2) {
|
|
18101
18135
|
return a({ ...s2, state: true, attribute: false });
|
|
18102
18136
|
}
|
|
18103
|
-
const
|
|
18104
|
-
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) {
|
|
18105
18139
|
return (i3, o2, t2) => {
|
|
18106
18140
|
const r2 = (n3) => n3.renderRoot?.querySelector(s2) ?? null;
|
|
18107
18141
|
if (e2) {
|
|
18108
|
-
const { get: n3, set:
|
|
18142
|
+
const { get: n3, set: d2 } = typeof o2 == "object" ? i3 : t2 ?? (() => {
|
|
18109
18143
|
const l2 = Symbol();
|
|
18110
18144
|
return { get() {
|
|
18111
18145
|
return this[l2];
|
|
@@ -18113,67 +18147,67 @@ function lt(s2, e2) {
|
|
|
18113
18147
|
this[l2] = u2;
|
|
18114
18148
|
} };
|
|
18115
18149
|
})();
|
|
18116
|
-
return
|
|
18150
|
+
return Le(i3, o2, { get() {
|
|
18117
18151
|
let l2 = n3.call(this);
|
|
18118
|
-
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;
|
|
18119
18153
|
} });
|
|
18120
18154
|
}
|
|
18121
|
-
return
|
|
18155
|
+
return Le(i3, o2, { get() {
|
|
18122
18156
|
return r2(this);
|
|
18123
18157
|
} });
|
|
18124
18158
|
};
|
|
18125
18159
|
}
|
|
18126
|
-
const
|
|
18127
|
-
\f\r]`,
|
|
18128
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
18129
|
-
function
|
|
18130
|
-
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"))
|
|
18131
18165
|
throw Error("invalid template strings array");
|
|
18132
|
-
return
|
|
18166
|
+
return Me !== void 0 ? Me.createHTML(e2) : e2;
|
|
18133
18167
|
}
|
|
18134
|
-
const
|
|
18168
|
+
const ft = (s2, e2) => {
|
|
18135
18169
|
const i3 = s2.length - 1, o2 = [];
|
|
18136
|
-
let t2, r2 = e2 === 2 ? "<svg>" : e2 === 3 ? "<math>" : "", n3 =
|
|
18137
|
-
for (let
|
|
18138
|
-
const l2 = s2[
|
|
18139
|
-
let u2,
|
|
18140
|
-
for (;
|
|
18141
|
-
|
|
18142
|
-
const x2 = n3 ===
|
|
18143
|
-
r2 += n3 ===
|
|
18144
|
-
}
|
|
18145
|
-
return [
|
|
18146
|
-
};
|
|
18147
|
-
class
|
|
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 {
|
|
18148
18182
|
constructor({ strings: e2, _$litType$: i3 }, o2) {
|
|
18149
18183
|
let t2;
|
|
18150
18184
|
this.parts = [];
|
|
18151
18185
|
let r2 = 0, n3 = 0;
|
|
18152
|
-
const
|
|
18153
|
-
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) {
|
|
18154
18188
|
const p2 = this.el.content.firstChild;
|
|
18155
18189
|
p2.replaceWith(...p2.childNodes);
|
|
18156
18190
|
}
|
|
18157
|
-
for (; (t2 =
|
|
18191
|
+
for (; (t2 = N2.nextNode()) !== null && l2.length < d2; ) {
|
|
18158
18192
|
if (t2.nodeType === 1) {
|
|
18159
18193
|
if (t2.hasAttributes())
|
|
18160
18194
|
for (const p2 of t2.getAttributeNames())
|
|
18161
|
-
if (p2.endsWith(
|
|
18162
|
-
const
|
|
18163
|
-
l2.push({ type: 1, index: r2, name: _2[2], strings: x2, ctor: _2[1] === "." ?
|
|
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);
|
|
18164
18198
|
} else
|
|
18165
18199
|
p2.startsWith(E) && (l2.push({ type: 6, index: r2 }), t2.removeAttribute(p2));
|
|
18166
|
-
if (
|
|
18167
|
-
const p2 = t2.textContent.split(E),
|
|
18168
|
-
if (
|
|
18169
|
-
t2.textContent =
|
|
18170
|
-
for (let x2 = 0; x2 <
|
|
18171
|
-
t2.append(p2[x2],
|
|
18172
|
-
t2.append(p2[
|
|
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());
|
|
18173
18207
|
}
|
|
18174
18208
|
}
|
|
18175
18209
|
} else if (t2.nodeType === 8)
|
|
18176
|
-
if (t2.data ===
|
|
18210
|
+
if (t2.data === Ye)
|
|
18177
18211
|
l2.push({ type: 2, index: r2 });
|
|
18178
18212
|
else {
|
|
18179
18213
|
let p2 = -1;
|
|
@@ -18188,14 +18222,14 @@ class oe {
|
|
|
18188
18222
|
return o2.innerHTML = e2, o2;
|
|
18189
18223
|
}
|
|
18190
18224
|
}
|
|
18191
|
-
function
|
|
18192
|
-
if (e2 ===
|
|
18225
|
+
function U(s2, e2, i3 = s2, o2) {
|
|
18226
|
+
if (e2 === R2)
|
|
18193
18227
|
return e2;
|
|
18194
18228
|
let t2 = o2 !== void 0 ? i3._$Co?.[o2] : i3._$Cl;
|
|
18195
|
-
const r2 =
|
|
18196
|
-
return t2?.constructor !== r2 && (t2?._$AO?.(false), r2 === void 0 ? t2 = void 0 : (t2 = new r2(s2), t2._$AT(s2, i3, o2)), o2 !== void 0 ? (i3._$Co ?? (i3._$Co = []))[o2] = t2 : i3._$Cl = t2), t2 !== void 0 && (e2 =
|
|
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;
|
|
18197
18231
|
}
|
|
18198
|
-
class
|
|
18232
|
+
class vt {
|
|
18199
18233
|
constructor(e2, i3) {
|
|
18200
18234
|
this._$AV = [], this._$AN = void 0, this._$AD = e2, this._$AM = i3;
|
|
18201
18235
|
}
|
|
@@ -18207,16 +18241,16 @@ class pt {
|
|
|
18207
18241
|
}
|
|
18208
18242
|
u(e2) {
|
|
18209
18243
|
const { el: { content: i3 }, parts: o2 } = this._$AD, t2 = (e2?.creationScope ?? k2).importNode(i3, true);
|
|
18210
|
-
|
|
18211
|
-
let r2 =
|
|
18244
|
+
N2.currentNode = t2;
|
|
18245
|
+
let r2 = N2.nextNode(), n3 = 0, d2 = 0, l2 = o2[0];
|
|
18212
18246
|
for (; l2 !== void 0; ) {
|
|
18213
18247
|
if (n3 === l2.index) {
|
|
18214
18248
|
let u2;
|
|
18215
|
-
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];
|
|
18216
18250
|
}
|
|
18217
|
-
n3 !== l2?.index && (r2 =
|
|
18251
|
+
n3 !== l2?.index && (r2 = N2.nextNode(), n3++);
|
|
18218
18252
|
}
|
|
18219
|
-
return
|
|
18253
|
+
return N2.currentNode = k2, t2;
|
|
18220
18254
|
}
|
|
18221
18255
|
p(e2) {
|
|
18222
18256
|
let i3 = 0;
|
|
@@ -18224,7 +18258,7 @@ class pt {
|
|
|
18224
18258
|
o2 !== void 0 && (o2.strings !== void 0 ? (o2._$AI(e2, o2, i3), i3 += o2.strings.length - 2) : o2._$AI(e2[i3])), i3++;
|
|
18225
18259
|
}
|
|
18226
18260
|
}
|
|
18227
|
-
class
|
|
18261
|
+
class be {
|
|
18228
18262
|
get _$AU() {
|
|
18229
18263
|
return this._$AM?._$AU ?? this._$Cv;
|
|
18230
18264
|
}
|
|
@@ -18243,7 +18277,7 @@ class de {
|
|
|
18243
18277
|
return this._$AB;
|
|
18244
18278
|
}
|
|
18245
18279
|
_$AI(e2, i3 = this) {
|
|
18246
|
-
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);
|
|
18247
18281
|
}
|
|
18248
18282
|
O(e2) {
|
|
18249
18283
|
return this._$AA.parentNode.insertBefore(e2, this._$AB);
|
|
@@ -18252,27 +18286,27 @@ class de {
|
|
|
18252
18286
|
this._$AH !== e2 && (this._$AR(), this._$AH = this.O(e2));
|
|
18253
18287
|
}
|
|
18254
18288
|
_(e2) {
|
|
18255
|
-
this._$AH !== f2 &&
|
|
18289
|
+
this._$AH !== f2 && se(this._$AH) ? this._$AA.nextSibling.data = e2 : this.T(k2.createTextNode(e2)), this._$AH = e2;
|
|
18256
18290
|
}
|
|
18257
18291
|
$(e2) {
|
|
18258
|
-
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);
|
|
18259
18293
|
if (this._$AH?._$AD === t2)
|
|
18260
18294
|
this._$AH.p(i3);
|
|
18261
18295
|
else {
|
|
18262
|
-
const r2 = new
|
|
18296
|
+
const r2 = new vt(t2, this), n3 = r2.u(this.options);
|
|
18263
18297
|
r2.p(i3), this.T(n3), this._$AH = r2;
|
|
18264
18298
|
}
|
|
18265
18299
|
}
|
|
18266
18300
|
_$AC(e2) {
|
|
18267
|
-
let i3 =
|
|
18268
|
-
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;
|
|
18269
18303
|
}
|
|
18270
18304
|
k(e2) {
|
|
18271
|
-
|
|
18305
|
+
De(this._$AH) || (this._$AH = [], this._$AR());
|
|
18272
18306
|
const i3 = this._$AH;
|
|
18273
18307
|
let o2, t2 = 0;
|
|
18274
18308
|
for (const r2 of e2)
|
|
18275
|
-
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++;
|
|
18276
18310
|
t2 < i3.length && (this._$AR(o2 && o2._$AB.nextSibling, t2), i3.length = t2);
|
|
18277
18311
|
}
|
|
18278
18312
|
_$AR(e2 = this._$AA.nextSibling, i3) {
|
|
@@ -18285,7 +18319,7 @@ class de {
|
|
|
18285
18319
|
this._$AM === void 0 && (this._$Cv = e2, this._$AP?.(e2));
|
|
18286
18320
|
}
|
|
18287
18321
|
}
|
|
18288
|
-
class
|
|
18322
|
+
class ge {
|
|
18289
18323
|
get tagName() {
|
|
18290
18324
|
return this.element.tagName;
|
|
18291
18325
|
}
|
|
@@ -18299,12 +18333,12 @@ class he {
|
|
|
18299
18333
|
const r2 = this.strings;
|
|
18300
18334
|
let n3 = false;
|
|
18301
18335
|
if (r2 === void 0)
|
|
18302
|
-
e2 =
|
|
18336
|
+
e2 = U(this, e2, i3, 0), n3 = !se(e2) || e2 !== this._$AH && e2 !== R2, n3 && (this._$AH = e2);
|
|
18303
18337
|
else {
|
|
18304
|
-
const
|
|
18338
|
+
const d2 = e2;
|
|
18305
18339
|
let l2, u2;
|
|
18306
18340
|
for (e2 = r2[0], l2 = 0; l2 < r2.length - 1; l2++)
|
|
18307
|
-
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;
|
|
18308
18342
|
}
|
|
18309
18343
|
n3 && !t2 && this.j(e2);
|
|
18310
18344
|
}
|
|
@@ -18312,7 +18346,7 @@ class he {
|
|
|
18312
18346
|
e2 === f2 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e2 ?? "");
|
|
18313
18347
|
}
|
|
18314
18348
|
}
|
|
18315
|
-
class
|
|
18349
|
+
class yt extends ge {
|
|
18316
18350
|
constructor() {
|
|
18317
18351
|
super(...arguments), this.type = 3;
|
|
18318
18352
|
}
|
|
@@ -18320,7 +18354,7 @@ class ut extends he {
|
|
|
18320
18354
|
this.element[this.name] = e2 === f2 ? void 0 : e2;
|
|
18321
18355
|
}
|
|
18322
18356
|
}
|
|
18323
|
-
class
|
|
18357
|
+
class xt extends ge {
|
|
18324
18358
|
constructor() {
|
|
18325
18359
|
super(...arguments), this.type = 4;
|
|
18326
18360
|
}
|
|
@@ -18328,12 +18362,12 @@ class bt extends he {
|
|
|
18328
18362
|
this.element.toggleAttribute(this.name, !!e2 && e2 !== f2);
|
|
18329
18363
|
}
|
|
18330
18364
|
}
|
|
18331
|
-
class
|
|
18365
|
+
class wt extends ge {
|
|
18332
18366
|
constructor(e2, i3, o2, t2, r2) {
|
|
18333
18367
|
super(e2, i3, o2, t2, r2), this.type = 5;
|
|
18334
18368
|
}
|
|
18335
18369
|
_$AI(e2, i3 = this) {
|
|
18336
|
-
if ((e2 =
|
|
18370
|
+
if ((e2 = U(this, e2, i3, 0) ?? f2) === R2)
|
|
18337
18371
|
return;
|
|
18338
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);
|
|
18339
18373
|
t2 && this.element.removeEventListener(this.name, this, o2), r2 && this.element.addEventListener(this.name, this, e2), this._$AH = e2;
|
|
@@ -18342,7 +18376,7 @@ class gt extends he {
|
|
|
18342
18376
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e2) : this._$AH.handleEvent(e2);
|
|
18343
18377
|
}
|
|
18344
18378
|
}
|
|
18345
|
-
class
|
|
18379
|
+
class $t {
|
|
18346
18380
|
constructor(e2, i3, o2) {
|
|
18347
18381
|
this.element = e2, this.type = 6, this._$AN = void 0, this._$AM = i3, this.options = o2;
|
|
18348
18382
|
}
|
|
@@ -18350,13 +18384,13 @@ class mt {
|
|
|
18350
18384
|
return this._$AM._$AU;
|
|
18351
18385
|
}
|
|
18352
18386
|
_$AI(e2) {
|
|
18353
|
-
|
|
18387
|
+
U(this, e2);
|
|
18354
18388
|
}
|
|
18355
18389
|
}
|
|
18356
|
-
const
|
|
18357
|
-
|
|
18358
|
-
const
|
|
18359
|
-
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 {
|
|
18360
18394
|
constructor(e2) {
|
|
18361
18395
|
}
|
|
18362
18396
|
get _$AU() {
|
|
@@ -18372,9 +18406,9 @@ class yt {
|
|
|
18372
18406
|
return this.render(...i3);
|
|
18373
18407
|
}
|
|
18374
18408
|
}
|
|
18375
|
-
const
|
|
18409
|
+
const Oe = Ct(class extends Ot {
|
|
18376
18410
|
constructor(s2) {
|
|
18377
|
-
if (super(s2), s2.type !==
|
|
18411
|
+
if (super(s2), s2.type !== Et.ATTRIBUTE || s2.name !== "class" || s2.strings?.length > 2)
|
|
18378
18412
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
|
18379
18413
|
}
|
|
18380
18414
|
render(s2) {
|
|
@@ -18394,9 +18428,9 @@ const $e = xt(class extends yt {
|
|
|
18394
18428
|
const t2 = !!e2[o2];
|
|
18395
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)));
|
|
18396
18430
|
}
|
|
18397
|
-
return
|
|
18431
|
+
return R2;
|
|
18398
18432
|
}
|
|
18399
|
-
}),
|
|
18433
|
+
}), me = i$4`
|
|
18400
18434
|
:host {
|
|
18401
18435
|
/* Colors */
|
|
18402
18436
|
--obi-color-primary: #a10fff;
|
|
@@ -18468,7 +18502,7 @@ const $e = xt(class extends yt {
|
|
|
18468
18502
|
--obi-spinner-size: 16px;
|
|
18469
18503
|
--obi-spinner-border-width: 2px;
|
|
18470
18504
|
}
|
|
18471
|
-
`,
|
|
18505
|
+
`, m = i$4`
|
|
18472
18506
|
:host {
|
|
18473
18507
|
box-sizing: border-box;
|
|
18474
18508
|
font-family: var(--obi-font-family-secondary);
|
|
@@ -18478,12 +18512,12 @@ const $e = xt(class extends yt {
|
|
|
18478
18512
|
box-sizing: inherit;
|
|
18479
18513
|
}
|
|
18480
18514
|
`;
|
|
18481
|
-
var
|
|
18482
|
-
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--)
|
|
18483
18517
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
18484
|
-
return o2 && t2 &&
|
|
18518
|
+
return o2 && t2 && At(e2, i3, t2), t2;
|
|
18485
18519
|
};
|
|
18486
|
-
class
|
|
18520
|
+
class w extends i$1 {
|
|
18487
18521
|
constructor() {
|
|
18488
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) => {
|
|
18489
18523
|
if (!this.closeOnBackdropClick || this.closeDisabled)
|
|
@@ -18537,7 +18571,7 @@ class $ extends i$1 {
|
|
|
18537
18571
|
"modal-inner--centered": this.contentCentered
|
|
18538
18572
|
};
|
|
18539
18573
|
return x`
|
|
18540
|
-
<dialog class=${
|
|
18574
|
+
<dialog class=${Oe(e2)}>
|
|
18541
18575
|
${this.showClose ? x`
|
|
18542
18576
|
<button
|
|
18543
18577
|
class="close-button"
|
|
@@ -18550,7 +18584,7 @@ class $ extends i$1 {
|
|
|
18550
18584
|
</button>
|
|
18551
18585
|
` : ""}
|
|
18552
18586
|
|
|
18553
|
-
<div class=${
|
|
18587
|
+
<div class=${Oe(i3)}>
|
|
18554
18588
|
<div class="header">
|
|
18555
18589
|
<slot name="header"></slot>
|
|
18556
18590
|
</div>
|
|
@@ -18567,9 +18601,9 @@ class $ extends i$1 {
|
|
|
18567
18601
|
`;
|
|
18568
18602
|
}
|
|
18569
18603
|
}
|
|
18570
|
-
|
|
18571
|
-
|
|
18572
|
-
|
|
18604
|
+
w.styles = [
|
|
18605
|
+
m,
|
|
18606
|
+
me,
|
|
18573
18607
|
i$4`
|
|
18574
18608
|
:host {
|
|
18575
18609
|
display: contents;
|
|
@@ -18703,37 +18737,37 @@ $.styles = [
|
|
|
18703
18737
|
}
|
|
18704
18738
|
`
|
|
18705
18739
|
];
|
|
18706
|
-
|
|
18740
|
+
O([
|
|
18707
18741
|
a({ type: Boolean, reflect: true })
|
|
18708
|
-
],
|
|
18709
|
-
|
|
18742
|
+
], w.prototype, "open", 2);
|
|
18743
|
+
O([
|
|
18710
18744
|
a({ reflect: true })
|
|
18711
|
-
],
|
|
18712
|
-
|
|
18745
|
+
], w.prototype, "size", 2);
|
|
18746
|
+
O([
|
|
18713
18747
|
a({ type: Boolean, attribute: "show-close" })
|
|
18714
|
-
],
|
|
18715
|
-
|
|
18748
|
+
], w.prototype, "showClose", 2);
|
|
18749
|
+
O([
|
|
18716
18750
|
a({ type: Boolean, attribute: "close-on-backdrop-click" })
|
|
18717
|
-
],
|
|
18718
|
-
|
|
18751
|
+
], w.prototype, "closeOnBackdropClick", 2);
|
|
18752
|
+
O([
|
|
18719
18753
|
a({ type: Boolean, attribute: "close-on-escape" })
|
|
18720
|
-
],
|
|
18721
|
-
|
|
18754
|
+
], w.prototype, "closeOnEscape", 2);
|
|
18755
|
+
O([
|
|
18722
18756
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
18723
|
-
],
|
|
18724
|
-
|
|
18757
|
+
], w.prototype, "closeDisabled", 2);
|
|
18758
|
+
O([
|
|
18725
18759
|
a({ type: Boolean, attribute: "content-centered" })
|
|
18726
|
-
],
|
|
18727
|
-
|
|
18728
|
-
|
|
18729
|
-
],
|
|
18730
|
-
customElements.get("obi-modal") || customElements.define("obi-modal",
|
|
18731
|
-
var
|
|
18732
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
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--)
|
|
18733
18767
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
18734
|
-
return o2 && t2 &&
|
|
18768
|
+
return o2 && t2 && Dt(e2, i3, t2), t2;
|
|
18735
18769
|
};
|
|
18736
|
-
class
|
|
18770
|
+
class Se extends i$1 {
|
|
18737
18771
|
constructor() {
|
|
18738
18772
|
super(...arguments), this.size = "medium";
|
|
18739
18773
|
}
|
|
@@ -18741,9 +18775,9 @@ class Ce extends i$1 {
|
|
|
18741
18775
|
return x`<div class="spinner" role="status" aria-label="Loading"></div>`;
|
|
18742
18776
|
}
|
|
18743
18777
|
}
|
|
18744
|
-
|
|
18745
|
-
|
|
18746
|
-
|
|
18778
|
+
Se.styles = [
|
|
18779
|
+
m,
|
|
18780
|
+
me,
|
|
18747
18781
|
i$4`
|
|
18748
18782
|
:host {
|
|
18749
18783
|
display: inline-block;
|
|
@@ -18779,16 +18813,16 @@ Ce.styles = [
|
|
|
18779
18813
|
}
|
|
18780
18814
|
`
|
|
18781
18815
|
];
|
|
18782
|
-
|
|
18816
|
+
Ft([
|
|
18783
18817
|
a({ reflect: true })
|
|
18784
|
-
],
|
|
18785
|
-
customElements.get("obi-spinner") || customElements.define("obi-spinner",
|
|
18786
|
-
var
|
|
18787
|
-
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--)
|
|
18788
18822
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
18789
|
-
return o2 && t2 &&
|
|
18823
|
+
return o2 && t2 && jt(e2, i3, t2), t2;
|
|
18790
18824
|
};
|
|
18791
|
-
class
|
|
18825
|
+
class $ extends i$1 {
|
|
18792
18826
|
constructor() {
|
|
18793
18827
|
super(...arguments), this.variant = "primary", this.size = "medium", this.disabled = false, this.loading = false, this.type = "button", this.fullWidth = false, this.loadingText = "";
|
|
18794
18828
|
}
|
|
@@ -18812,7 +18846,7 @@ class w extends i$1 {
|
|
|
18812
18846
|
};
|
|
18813
18847
|
return x`
|
|
18814
18848
|
<button
|
|
18815
|
-
class=${
|
|
18849
|
+
class=${Oe(e2)}
|
|
18816
18850
|
type=${this.type}
|
|
18817
18851
|
?disabled=${this.disabled || this.loading}
|
|
18818
18852
|
@click=${this.handleClick}
|
|
@@ -18839,9 +18873,9 @@ class w extends i$1 {
|
|
|
18839
18873
|
`;
|
|
18840
18874
|
}
|
|
18841
18875
|
}
|
|
18842
|
-
|
|
18843
|
-
|
|
18844
|
-
|
|
18876
|
+
$.styles = [
|
|
18877
|
+
m,
|
|
18878
|
+
me,
|
|
18845
18879
|
i$4`
|
|
18846
18880
|
:host {
|
|
18847
18881
|
display: inline-block;
|
|
@@ -18963,34 +18997,34 @@ w.styles = [
|
|
|
18963
18997
|
}
|
|
18964
18998
|
`
|
|
18965
18999
|
];
|
|
18966
|
-
|
|
19000
|
+
z2([
|
|
18967
19001
|
a({ reflect: true })
|
|
18968
|
-
],
|
|
18969
|
-
|
|
19002
|
+
], $.prototype, "variant", 2);
|
|
19003
|
+
z2([
|
|
18970
19004
|
a({ reflect: true })
|
|
18971
|
-
],
|
|
18972
|
-
|
|
19005
|
+
], $.prototype, "size", 2);
|
|
19006
|
+
z2([
|
|
18973
19007
|
a({ type: Boolean, reflect: true })
|
|
18974
|
-
],
|
|
18975
|
-
|
|
19008
|
+
], $.prototype, "disabled", 2);
|
|
19009
|
+
z2([
|
|
18976
19010
|
a({ type: Boolean, reflect: true })
|
|
18977
|
-
],
|
|
18978
|
-
|
|
19011
|
+
], $.prototype, "loading", 2);
|
|
19012
|
+
z2([
|
|
18979
19013
|
a()
|
|
18980
|
-
],
|
|
18981
|
-
|
|
19014
|
+
], $.prototype, "type", 2);
|
|
19015
|
+
z2([
|
|
18982
19016
|
a({ type: Boolean, reflect: true, attribute: "full-width" })
|
|
18983
|
-
],
|
|
18984
|
-
|
|
19017
|
+
], $.prototype, "fullWidth", 2);
|
|
19018
|
+
z2([
|
|
18985
19019
|
a({ attribute: "loading-text" })
|
|
18986
|
-
],
|
|
18987
|
-
customElements.get("obi-button") || customElements.define("obi-button",
|
|
18988
|
-
var
|
|
18989
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
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--)
|
|
18990
19024
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
18991
|
-
return o2 && t2 &&
|
|
19025
|
+
return o2 && t2 && Nt(e2, i3, t2), t2;
|
|
18992
19026
|
};
|
|
18993
|
-
class
|
|
19027
|
+
class H4 extends i$1 {
|
|
18994
19028
|
constructor() {
|
|
18995
19029
|
super(...arguments), this.showRetry = false, this.showDismiss = false, this.retryText = "Retry", this.dismissText = "Dismiss";
|
|
18996
19030
|
}
|
|
@@ -19040,9 +19074,9 @@ class U extends i$1 {
|
|
|
19040
19074
|
`;
|
|
19041
19075
|
}
|
|
19042
19076
|
}
|
|
19043
|
-
|
|
19044
|
-
|
|
19045
|
-
|
|
19077
|
+
H4.styles = [
|
|
19078
|
+
m,
|
|
19079
|
+
me,
|
|
19046
19080
|
i$4`
|
|
19047
19081
|
:host {
|
|
19048
19082
|
display: block;
|
|
@@ -19102,46 +19136,46 @@ U.styles = [
|
|
|
19102
19136
|
}
|
|
19103
19137
|
`
|
|
19104
19138
|
];
|
|
19105
|
-
|
|
19139
|
+
fe([
|
|
19106
19140
|
a({ type: Boolean, attribute: "show-retry" })
|
|
19107
|
-
],
|
|
19108
|
-
|
|
19141
|
+
], H4.prototype, "showRetry", 2);
|
|
19142
|
+
fe([
|
|
19109
19143
|
a({ type: Boolean, attribute: "show-dismiss" })
|
|
19110
|
-
],
|
|
19111
|
-
|
|
19144
|
+
], H4.prototype, "showDismiss", 2);
|
|
19145
|
+
fe([
|
|
19112
19146
|
a({ attribute: "retry-text" })
|
|
19113
|
-
],
|
|
19114
|
-
|
|
19147
|
+
], H4.prototype, "retryText", 2);
|
|
19148
|
+
fe([
|
|
19115
19149
|
a({ attribute: "dismiss-text" })
|
|
19116
|
-
],
|
|
19117
|
-
customElements.get("obi-error-message") || customElements.define("obi-error-message",
|
|
19118
|
-
function
|
|
19150
|
+
], H4.prototype, "dismissText", 2);
|
|
19151
|
+
customElements.get("obi-error-message") || customElements.define("obi-error-message", H4);
|
|
19152
|
+
function Ze(s2, e2) {
|
|
19119
19153
|
if (!s2)
|
|
19120
19154
|
return "";
|
|
19121
|
-
const i3 = (
|
|
19122
|
-
let p2 = "0",
|
|
19123
|
-
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]), {
|
|
19124
19158
|
r: parseInt(p2),
|
|
19125
|
-
g: parseInt(
|
|
19159
|
+
g: parseInt(b2),
|
|
19126
19160
|
b: parseInt(x2)
|
|
19127
19161
|
};
|
|
19128
|
-
}, o2 = (
|
|
19162
|
+
}, o2 = (h2, p2, b2) => "#" + [h2, p2, b2].map((x2) => {
|
|
19129
19163
|
const _2 = x2.toString(16);
|
|
19130
19164
|
return _2.length === 1 ? "0" + _2 : _2;
|
|
19131
|
-
}).join(""), { r: t2, g: r2, b: n3 } = i3(s2),
|
|
19132
|
-
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);
|
|
19133
19167
|
}
|
|
19134
|
-
var
|
|
19135
|
-
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--)
|
|
19136
19170
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19137
|
-
return o2 && t2 &&
|
|
19171
|
+
return o2 && t2 && zt(e2, i3, t2), t2;
|
|
19138
19172
|
};
|
|
19139
|
-
class
|
|
19173
|
+
class A extends i$1 {
|
|
19140
19174
|
constructor() {
|
|
19141
19175
|
super(...arguments), this.title = "", this.subtitle = "", this.agentName = "Obi", this.buttonText = "Continue", this.disabled = false, this.color = "#9500FF";
|
|
19142
19176
|
}
|
|
19143
19177
|
getBackgroundColor() {
|
|
19144
|
-
return
|
|
19178
|
+
return Ze(this.color, 0.95);
|
|
19145
19179
|
}
|
|
19146
19180
|
handleAction() {
|
|
19147
19181
|
this.disabled || this.dispatchEvent(new CustomEvent("obi-action", {
|
|
@@ -19170,13 +19204,15 @@ class O extends i$1 {
|
|
|
19170
19204
|
|
|
19171
19205
|
<!-- Action button and error -->
|
|
19172
19206
|
<div class="button-container">
|
|
19173
|
-
<button
|
|
19174
|
-
|
|
19175
|
-
|
|
19176
|
-
|
|
19177
|
-
|
|
19178
|
-
|
|
19179
|
-
|
|
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>
|
|
19180
19216
|
|
|
19181
19217
|
<slot name="error"></slot>
|
|
19182
19218
|
</div>
|
|
@@ -19184,8 +19220,8 @@ class O extends i$1 {
|
|
|
19184
19220
|
`;
|
|
19185
19221
|
}
|
|
19186
19222
|
}
|
|
19187
|
-
|
|
19188
|
-
|
|
19223
|
+
A.styles = [
|
|
19224
|
+
m,
|
|
19189
19225
|
i$4`
|
|
19190
19226
|
:host {
|
|
19191
19227
|
display: block;
|
|
@@ -19313,31 +19349,31 @@ O.styles = [
|
|
|
19313
19349
|
}
|
|
19314
19350
|
`
|
|
19315
19351
|
];
|
|
19316
|
-
|
|
19352
|
+
I2([
|
|
19317
19353
|
a()
|
|
19318
|
-
],
|
|
19319
|
-
|
|
19354
|
+
], A.prototype, "title", 2);
|
|
19355
|
+
I2([
|
|
19320
19356
|
a()
|
|
19321
|
-
],
|
|
19322
|
-
|
|
19357
|
+
], A.prototype, "subtitle", 2);
|
|
19358
|
+
I2([
|
|
19323
19359
|
a({ attribute: "agent-name" })
|
|
19324
|
-
],
|
|
19325
|
-
|
|
19360
|
+
], A.prototype, "agentName", 2);
|
|
19361
|
+
I2([
|
|
19326
19362
|
a({ attribute: "button-text" })
|
|
19327
|
-
],
|
|
19328
|
-
|
|
19363
|
+
], A.prototype, "buttonText", 2);
|
|
19364
|
+
I2([
|
|
19329
19365
|
a({ type: Boolean, reflect: true })
|
|
19330
|
-
],
|
|
19331
|
-
|
|
19366
|
+
], A.prototype, "disabled", 2);
|
|
19367
|
+
I2([
|
|
19332
19368
|
a()
|
|
19333
|
-
],
|
|
19334
|
-
customElements.get("obi-base-onboarding-content") || customElements.define("obi-base-onboarding-content",
|
|
19335
|
-
var
|
|
19336
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
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--)
|
|
19337
19373
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19338
|
-
return o2 && t2 &&
|
|
19374
|
+
return o2 && t2 && Lt(e2, i3, t2), t2;
|
|
19339
19375
|
};
|
|
19340
|
-
class
|
|
19376
|
+
class ve extends i$1 {
|
|
19341
19377
|
constructor() {
|
|
19342
19378
|
super(...arguments), this.logoUrl = "", this.appName = "App";
|
|
19343
19379
|
}
|
|
@@ -19372,8 +19408,8 @@ class be extends i$1 {
|
|
|
19372
19408
|
`;
|
|
19373
19409
|
}
|
|
19374
19410
|
}
|
|
19375
|
-
|
|
19376
|
-
|
|
19411
|
+
ve.styles = [
|
|
19412
|
+
m,
|
|
19377
19413
|
i$4`
|
|
19378
19414
|
:host {
|
|
19379
19415
|
display: block;
|
|
@@ -19435,19 +19471,19 @@ be.styles = [
|
|
|
19435
19471
|
}
|
|
19436
19472
|
`
|
|
19437
19473
|
];
|
|
19438
|
-
|
|
19474
|
+
Je([
|
|
19439
19475
|
a({ attribute: "logo-url" })
|
|
19440
|
-
],
|
|
19441
|
-
|
|
19476
|
+
], ve.prototype, "logoUrl", 2);
|
|
19477
|
+
Je([
|
|
19442
19478
|
a({ attribute: "app-name" })
|
|
19443
|
-
],
|
|
19444
|
-
customElements.get("obi-app-logo-visual") || customElements.define("obi-app-logo-visual",
|
|
19445
|
-
var
|
|
19446
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
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--)
|
|
19447
19483
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19448
|
-
return o2 && t2 &&
|
|
19484
|
+
return o2 && t2 && Rt(e2, i3, t2), t2;
|
|
19449
19485
|
};
|
|
19450
|
-
class
|
|
19486
|
+
class B extends i$1 {
|
|
19451
19487
|
constructor() {
|
|
19452
19488
|
super(...arguments), this.color = "#9500FF", this.isLoading = false, this.error = null, this.navigateAttempts = 0;
|
|
19453
19489
|
}
|
|
@@ -19533,24 +19569,24 @@ class z2 extends i$1 {
|
|
|
19533
19569
|
`;
|
|
19534
19570
|
}
|
|
19535
19571
|
}
|
|
19536
|
-
|
|
19537
|
-
|
|
19572
|
+
B.styles = [m];
|
|
19573
|
+
ne([
|
|
19538
19574
|
a({ type: Object })
|
|
19539
|
-
],
|
|
19540
|
-
|
|
19575
|
+
], B.prototype, "session", 2);
|
|
19576
|
+
ne([
|
|
19541
19577
|
a()
|
|
19542
|
-
],
|
|
19543
|
-
|
|
19578
|
+
], B.prototype, "color", 2);
|
|
19579
|
+
ne([
|
|
19544
19580
|
v()
|
|
19545
|
-
],
|
|
19546
|
-
|
|
19581
|
+
], B.prototype, "isLoading", 2);
|
|
19582
|
+
ne([
|
|
19547
19583
|
v()
|
|
19548
|
-
],
|
|
19549
|
-
|
|
19584
|
+
], B.prototype, "error", 2);
|
|
19585
|
+
ne([
|
|
19550
19586
|
v()
|
|
19551
|
-
],
|
|
19552
|
-
customElements.get("obi-navigate-to-content") || customElements.define("obi-navigate-to-content",
|
|
19553
|
-
const
|
|
19587
|
+
], B.prototype, "navigateAttempts", 2);
|
|
19588
|
+
customElements.get("obi-navigate-to-content") || customElements.define("obi-navigate-to-content", B);
|
|
19589
|
+
const Ht = x`
|
|
19554
19590
|
<img
|
|
19555
19591
|
src="data:image/svg+xml;base64,${btoa(`<?xml version="1.0" encoding="UTF-8"?>
|
|
19556
19592
|
<svg width="256" height="256" viewBox="0 0 256 256" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -19560,12 +19596,12 @@ const zt = x`
|
|
|
19560
19596
|
style="width: 100%; height: 100%; object-fit: contain;"
|
|
19561
19597
|
/>
|
|
19562
19598
|
`;
|
|
19563
|
-
var
|
|
19564
|
-
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--)
|
|
19565
19601
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19566
|
-
return o2 && t2 &&
|
|
19602
|
+
return o2 && t2 && It(e2, i3, t2), t2;
|
|
19567
19603
|
};
|
|
19568
|
-
class
|
|
19604
|
+
class Fe extends i$1 {
|
|
19569
19605
|
constructor() {
|
|
19570
19606
|
super(...arguments), this.color = "#9500FF";
|
|
19571
19607
|
}
|
|
@@ -19582,15 +19618,15 @@ class Ae extends i$1 {
|
|
|
19582
19618
|
<div class="container">
|
|
19583
19619
|
<div class="logo" style="background: ${this.color}; box-shadow: ${r2};">
|
|
19584
19620
|
<slot>
|
|
19585
|
-
<div class="logo-icon">${
|
|
19621
|
+
<div class="logo-icon">${Ht}</div>
|
|
19586
19622
|
</slot>
|
|
19587
19623
|
</div>
|
|
19588
19624
|
</div>
|
|
19589
19625
|
`;
|
|
19590
19626
|
}
|
|
19591
19627
|
}
|
|
19592
|
-
|
|
19593
|
-
|
|
19628
|
+
Fe.styles = [
|
|
19629
|
+
m,
|
|
19594
19630
|
i$4`
|
|
19595
19631
|
:host {
|
|
19596
19632
|
display: block;
|
|
@@ -19635,14 +19671,14 @@ Ae.styles = [
|
|
|
19635
19671
|
}
|
|
19636
19672
|
`
|
|
19637
19673
|
];
|
|
19638
|
-
|
|
19674
|
+
qt([
|
|
19639
19675
|
a()
|
|
19640
|
-
],
|
|
19641
|
-
customElements.get("obi-logo-visual") || customElements.define("obi-logo-visual",
|
|
19642
|
-
var
|
|
19643
|
-
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--)
|
|
19644
19680
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19645
|
-
return o2 && t2 &&
|
|
19681
|
+
return o2 && t2 && Wt(e2, i3, t2), t2;
|
|
19646
19682
|
};
|
|
19647
19683
|
class P extends i$1 {
|
|
19648
19684
|
constructor() {
|
|
@@ -19726,27 +19762,27 @@ class P extends i$1 {
|
|
|
19726
19762
|
`;
|
|
19727
19763
|
}
|
|
19728
19764
|
}
|
|
19729
|
-
P.styles = [
|
|
19730
|
-
|
|
19765
|
+
P.styles = [m];
|
|
19766
|
+
V([
|
|
19731
19767
|
a({ type: Object })
|
|
19732
19768
|
], P.prototype, "session", 2);
|
|
19733
|
-
|
|
19769
|
+
V([
|
|
19734
19770
|
a({ type: Boolean, reflect: true })
|
|
19735
19771
|
], P.prototype, "disabled", 2);
|
|
19736
|
-
|
|
19772
|
+
V([
|
|
19737
19773
|
a()
|
|
19738
19774
|
], P.prototype, "color", 2);
|
|
19739
|
-
|
|
19775
|
+
V([
|
|
19740
19776
|
v()
|
|
19741
19777
|
], P.prototype, "isLoading", 2);
|
|
19742
|
-
|
|
19778
|
+
V([
|
|
19743
19779
|
v()
|
|
19744
19780
|
], P.prototype, "error", 2);
|
|
19745
|
-
|
|
19781
|
+
V([
|
|
19746
19782
|
v()
|
|
19747
19783
|
], P.prototype, "startAttempts", 2);
|
|
19748
19784
|
customElements.get("obi-session-start-content") || customElements.define("obi-session-start-content", P);
|
|
19749
|
-
class
|
|
19785
|
+
class Ke extends i$1 {
|
|
19750
19786
|
render() {
|
|
19751
19787
|
return x`
|
|
19752
19788
|
<div class="container">
|
|
@@ -19778,8 +19814,8 @@ class qe extends i$1 {
|
|
|
19778
19814
|
`;
|
|
19779
19815
|
}
|
|
19780
19816
|
}
|
|
19781
|
-
|
|
19782
|
-
|
|
19817
|
+
Ke.styles = [
|
|
19818
|
+
m,
|
|
19783
19819
|
i$4`
|
|
19784
19820
|
:host {
|
|
19785
19821
|
display: block;
|
|
@@ -19934,13 +19970,13 @@ qe.styles = [
|
|
|
19934
19970
|
}
|
|
19935
19971
|
`
|
|
19936
19972
|
];
|
|
19937
|
-
customElements.get("obi-microphone-permission-visual") || customElements.define("obi-microphone-permission-visual",
|
|
19938
|
-
var
|
|
19939
|
-
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--)
|
|
19940
19976
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
19941
|
-
return o2 && t2 &&
|
|
19977
|
+
return o2 && t2 && Gt(e2, i3, t2), t2;
|
|
19942
19978
|
};
|
|
19943
|
-
class
|
|
19979
|
+
class D extends i$1 {
|
|
19944
19980
|
constructor() {
|
|
19945
19981
|
super(...arguments), this.disabled = false, this.color = "#9500FF", this.isLoading = false, this.error = null, this.micPermissionGranted = false;
|
|
19946
19982
|
}
|
|
@@ -19990,30 +20026,30 @@ class S extends i$1 {
|
|
|
19990
20026
|
`;
|
|
19991
20027
|
}
|
|
19992
20028
|
}
|
|
19993
|
-
|
|
19994
|
-
|
|
20029
|
+
D.styles = [m];
|
|
20030
|
+
q([
|
|
19995
20031
|
a({ type: Object })
|
|
19996
|
-
],
|
|
19997
|
-
|
|
20032
|
+
], D.prototype, "session", 2);
|
|
20033
|
+
q([
|
|
19998
20034
|
a({ type: Boolean, reflect: true })
|
|
19999
|
-
],
|
|
20000
|
-
|
|
20035
|
+
], D.prototype, "disabled", 2);
|
|
20036
|
+
q([
|
|
20001
20037
|
a()
|
|
20002
|
-
],
|
|
20003
|
-
|
|
20038
|
+
], D.prototype, "color", 2);
|
|
20039
|
+
q([
|
|
20004
20040
|
v()
|
|
20005
|
-
],
|
|
20006
|
-
|
|
20041
|
+
], D.prototype, "isLoading", 2);
|
|
20042
|
+
q([
|
|
20007
20043
|
v()
|
|
20008
|
-
],
|
|
20009
|
-
|
|
20044
|
+
], D.prototype, "error", 2);
|
|
20045
|
+
q([
|
|
20010
20046
|
v()
|
|
20011
|
-
],
|
|
20012
|
-
customElements.get("obi-share-mic-content") || customElements.define("obi-share-mic-content",
|
|
20013
|
-
var
|
|
20014
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
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--)
|
|
20015
20051
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20016
|
-
return o2 && t2 &&
|
|
20052
|
+
return o2 && t2 && Zt(e2, i3, t2), t2;
|
|
20017
20053
|
};
|
|
20018
20054
|
class W extends i$1 {
|
|
20019
20055
|
constructor() {
|
|
@@ -20031,13 +20067,13 @@ class W extends i$1 {
|
|
|
20031
20067
|
startAnimation() {
|
|
20032
20068
|
const r2 = () => {
|
|
20033
20069
|
this.clearTimeouts();
|
|
20034
|
-
for (let
|
|
20035
|
-
const l2 =
|
|
20036
|
-
this.activeDots = this.activeDots.map((p2,
|
|
20037
|
-
const
|
|
20038
|
-
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();
|
|
20039
20075
|
}, 200);
|
|
20040
|
-
this.animationTimeouts.push(
|
|
20076
|
+
this.animationTimeouts.push(h2);
|
|
20041
20077
|
}, l2);
|
|
20042
20078
|
this.animationTimeouts.push(u2);
|
|
20043
20079
|
}
|
|
@@ -20065,7 +20101,7 @@ class W extends i$1 {
|
|
|
20065
20101
|
}
|
|
20066
20102
|
}
|
|
20067
20103
|
W.styles = [
|
|
20068
|
-
|
|
20104
|
+
m,
|
|
20069
20105
|
i$4`
|
|
20070
20106
|
:host {
|
|
20071
20107
|
display: flex;
|
|
@@ -20110,25 +20146,25 @@ W.styles = [
|
|
|
20110
20146
|
}
|
|
20111
20147
|
`
|
|
20112
20148
|
];
|
|
20113
|
-
|
|
20149
|
+
ye([
|
|
20114
20150
|
a()
|
|
20115
20151
|
], W.prototype, "color", 2);
|
|
20116
|
-
|
|
20152
|
+
ye([
|
|
20117
20153
|
a({ attribute: "dot-color" })
|
|
20118
20154
|
], W.prototype, "dotColor", 2);
|
|
20119
|
-
|
|
20155
|
+
ye([
|
|
20120
20156
|
v()
|
|
20121
20157
|
], W.prototype, "activeDots", 2);
|
|
20122
|
-
|
|
20158
|
+
ye([
|
|
20123
20159
|
v()
|
|
20124
20160
|
], W.prototype, "animationTimeouts", 2);
|
|
20125
20161
|
customElements.get("obi-voice-guidance-visual") || customElements.define("obi-voice-guidance-visual", W);
|
|
20126
|
-
var
|
|
20127
|
-
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--)
|
|
20128
20164
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20129
|
-
return o2 && t2 &&
|
|
20165
|
+
return o2 && t2 && Kt(e2, i3, t2), t2;
|
|
20130
20166
|
};
|
|
20131
|
-
class
|
|
20167
|
+
class L2 extends i$1 {
|
|
20132
20168
|
constructor() {
|
|
20133
20169
|
super(...arguments), this.color = "#9500FF", this.disabled = false, this.loading = false, this.error = null;
|
|
20134
20170
|
}
|
|
@@ -20200,24 +20236,24 @@ class B extends i$1 {
|
|
|
20200
20236
|
`;
|
|
20201
20237
|
}
|
|
20202
20238
|
}
|
|
20203
|
-
|
|
20204
|
-
|
|
20239
|
+
L2.styles = [m];
|
|
20240
|
+
ae([
|
|
20205
20241
|
a({ type: Object })
|
|
20206
|
-
],
|
|
20207
|
-
|
|
20242
|
+
], L2.prototype, "session", 2);
|
|
20243
|
+
ae([
|
|
20208
20244
|
a()
|
|
20209
|
-
],
|
|
20210
|
-
|
|
20245
|
+
], L2.prototype, "color", 2);
|
|
20246
|
+
ae([
|
|
20211
20247
|
a({ type: Boolean, reflect: true })
|
|
20212
|
-
],
|
|
20213
|
-
|
|
20248
|
+
], L2.prototype, "disabled", 2);
|
|
20249
|
+
ae([
|
|
20214
20250
|
a({ type: Boolean, reflect: true })
|
|
20215
|
-
],
|
|
20216
|
-
|
|
20251
|
+
], L2.prototype, "loading", 2);
|
|
20252
|
+
ae([
|
|
20217
20253
|
v()
|
|
20218
|
-
],
|
|
20219
|
-
customElements.get("obi-voice-guidance-content") || customElements.define("obi-voice-guidance-content",
|
|
20220
|
-
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 {
|
|
20221
20257
|
render() {
|
|
20222
20258
|
return x`
|
|
20223
20259
|
<article class="skeleton-container" role="status" aria-label="Loading content">
|
|
@@ -20235,8 +20271,8 @@ class Ge extends i$1 {
|
|
|
20235
20271
|
`;
|
|
20236
20272
|
}
|
|
20237
20273
|
}
|
|
20238
|
-
|
|
20239
|
-
|
|
20274
|
+
Qe.styles = [
|
|
20275
|
+
m,
|
|
20240
20276
|
i$4`
|
|
20241
20277
|
:host {
|
|
20242
20278
|
display: flex;
|
|
@@ -20349,18 +20385,18 @@ Ge.styles = [
|
|
|
20349
20385
|
}
|
|
20350
20386
|
`
|
|
20351
20387
|
];
|
|
20352
|
-
customElements.get("obi-skeleton-loader-visual") || customElements.define("obi-skeleton-loader-visual",
|
|
20353
|
-
var
|
|
20354
|
-
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--)
|
|
20355
20391
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20356
|
-
return o2 && t2 &&
|
|
20392
|
+
return o2 && t2 && eo(e2, i3, t2), t2;
|
|
20357
20393
|
};
|
|
20358
|
-
class
|
|
20394
|
+
class je extends i$1 {
|
|
20359
20395
|
constructor() {
|
|
20360
20396
|
super(...arguments), this.color = "#9500FF";
|
|
20361
20397
|
}
|
|
20362
20398
|
getBackgroundColor() {
|
|
20363
|
-
return
|
|
20399
|
+
return Ze(this.color, 0.95);
|
|
20364
20400
|
}
|
|
20365
20401
|
render() {
|
|
20366
20402
|
return x`
|
|
@@ -20392,8 +20428,8 @@ class Oe extends i$1 {
|
|
|
20392
20428
|
`;
|
|
20393
20429
|
}
|
|
20394
20430
|
}
|
|
20395
|
-
|
|
20396
|
-
|
|
20431
|
+
je.styles = [
|
|
20432
|
+
m,
|
|
20397
20433
|
i$4`
|
|
20398
20434
|
:host {
|
|
20399
20435
|
display: block;
|
|
@@ -20484,16 +20520,16 @@ Oe.styles = [
|
|
|
20484
20520
|
}
|
|
20485
20521
|
`
|
|
20486
20522
|
];
|
|
20487
|
-
|
|
20523
|
+
oo([
|
|
20488
20524
|
a()
|
|
20489
|
-
],
|
|
20490
|
-
customElements.get("obi-screen-share-visual") || customElements.define("obi-screen-share-visual",
|
|
20491
|
-
var
|
|
20492
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
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--)
|
|
20493
20529
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20494
|
-
return o2 && t2 &&
|
|
20530
|
+
return o2 && t2 && io(e2, i3, t2), t2;
|
|
20495
20531
|
};
|
|
20496
|
-
class
|
|
20532
|
+
class S extends i$1 {
|
|
20497
20533
|
constructor() {
|
|
20498
20534
|
super(...arguments), this.disabled = false, this.color = "#9500FF", this.isLoading = false, this.error = null, this.continueAttempts = 0;
|
|
20499
20535
|
}
|
|
@@ -20570,32 +20606,32 @@ class D extends i$1 {
|
|
|
20570
20606
|
`;
|
|
20571
20607
|
}
|
|
20572
20608
|
}
|
|
20573
|
-
|
|
20574
|
-
|
|
20609
|
+
S.styles = [m];
|
|
20610
|
+
Y([
|
|
20575
20611
|
a({ type: Object })
|
|
20576
|
-
],
|
|
20577
|
-
|
|
20612
|
+
], S.prototype, "session", 2);
|
|
20613
|
+
Y([
|
|
20578
20614
|
a({ type: Boolean, reflect: true })
|
|
20579
|
-
],
|
|
20580
|
-
|
|
20615
|
+
], S.prototype, "disabled", 2);
|
|
20616
|
+
Y([
|
|
20581
20617
|
a()
|
|
20582
|
-
],
|
|
20583
|
-
|
|
20618
|
+
], S.prototype, "color", 2);
|
|
20619
|
+
Y([
|
|
20584
20620
|
v()
|
|
20585
|
-
],
|
|
20586
|
-
|
|
20621
|
+
], S.prototype, "isLoading", 2);
|
|
20622
|
+
Y([
|
|
20587
20623
|
v()
|
|
20588
|
-
],
|
|
20589
|
-
|
|
20624
|
+
], S.prototype, "error", 2);
|
|
20625
|
+
Y([
|
|
20590
20626
|
v()
|
|
20591
|
-
],
|
|
20592
|
-
customElements.get("obi-share-screen-content") || customElements.define("obi-share-screen-content",
|
|
20593
|
-
var
|
|
20594
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
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--)
|
|
20595
20631
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20596
|
-
return o2 && t2 &&
|
|
20632
|
+
return o2 && t2 && ro(e2, i3, t2), t2;
|
|
20597
20633
|
};
|
|
20598
|
-
class
|
|
20634
|
+
class xe extends i$1 {
|
|
20599
20635
|
constructor() {
|
|
20600
20636
|
super(...arguments), this.open = false, this.closeDisabled = false, this.closeReason = null;
|
|
20601
20637
|
}
|
|
@@ -20644,8 +20680,8 @@ class me extends i$1 {
|
|
|
20644
20680
|
`;
|
|
20645
20681
|
}
|
|
20646
20682
|
}
|
|
20647
|
-
|
|
20648
|
-
|
|
20683
|
+
xe.styles = [
|
|
20684
|
+
m,
|
|
20649
20685
|
i$4`
|
|
20650
20686
|
:host {
|
|
20651
20687
|
--obi-modal-width: 640px;
|
|
@@ -20713,17 +20749,17 @@ me.styles = [
|
|
|
20713
20749
|
}
|
|
20714
20750
|
`
|
|
20715
20751
|
];
|
|
20716
|
-
|
|
20752
|
+
et([
|
|
20717
20753
|
a({ type: Boolean, reflect: true })
|
|
20718
|
-
],
|
|
20719
|
-
|
|
20754
|
+
], xe.prototype, "open", 2);
|
|
20755
|
+
et([
|
|
20720
20756
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
20721
|
-
],
|
|
20722
|
-
customElements.get("obi-base-onboarding-modal") || customElements.define("obi-base-onboarding-modal",
|
|
20723
|
-
var
|
|
20724
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
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--)
|
|
20725
20761
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20726
|
-
return o2 && t2 &&
|
|
20762
|
+
return o2 && t2 && ao(e2, i3, t2), t2;
|
|
20727
20763
|
};
|
|
20728
20764
|
class G extends i$1 {
|
|
20729
20765
|
constructor() {
|
|
@@ -20744,26 +20780,26 @@ class G extends i$1 {
|
|
|
20744
20780
|
`;
|
|
20745
20781
|
}
|
|
20746
20782
|
}
|
|
20747
|
-
G.styles = [
|
|
20748
|
-
|
|
20783
|
+
G.styles = [m];
|
|
20784
|
+
we([
|
|
20749
20785
|
a({ type: Object })
|
|
20750
20786
|
], G.prototype, "session", 2);
|
|
20751
|
-
|
|
20787
|
+
we([
|
|
20752
20788
|
a({ type: Boolean, reflect: true })
|
|
20753
20789
|
], G.prototype, "open", 2);
|
|
20754
|
-
|
|
20790
|
+
we([
|
|
20755
20791
|
a({ type: Boolean, reflect: true })
|
|
20756
20792
|
], G.prototype, "disabled", 2);
|
|
20757
|
-
|
|
20793
|
+
we([
|
|
20758
20794
|
a()
|
|
20759
20795
|
], G.prototype, "color", 2);
|
|
20760
20796
|
customElements.get("obi-share-screen-modal") || customElements.define("obi-share-screen-modal", G);
|
|
20761
|
-
var
|
|
20762
|
-
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--)
|
|
20763
20799
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20764
|
-
return o2 && t2 &&
|
|
20800
|
+
return o2 && t2 && co(e2, i3, t2), t2;
|
|
20765
20801
|
};
|
|
20766
|
-
class
|
|
20802
|
+
class M2 extends i$1 {
|
|
20767
20803
|
constructor() {
|
|
20768
20804
|
super(...arguments), this.open = false, this.color = "#9500FF", this.disabled = false, this.closeDisabled = false;
|
|
20769
20805
|
}
|
|
@@ -20783,29 +20819,29 @@ class L2 extends i$1 {
|
|
|
20783
20819
|
`;
|
|
20784
20820
|
}
|
|
20785
20821
|
}
|
|
20786
|
-
|
|
20787
|
-
|
|
20822
|
+
M2.styles = [m];
|
|
20823
|
+
le([
|
|
20788
20824
|
a({ type: Object })
|
|
20789
|
-
],
|
|
20790
|
-
|
|
20825
|
+
], M2.prototype, "session", 2);
|
|
20826
|
+
le([
|
|
20791
20827
|
a({ type: Boolean, reflect: true })
|
|
20792
|
-
],
|
|
20793
|
-
|
|
20828
|
+
], M2.prototype, "open", 2);
|
|
20829
|
+
le([
|
|
20794
20830
|
a()
|
|
20795
|
-
],
|
|
20796
|
-
|
|
20831
|
+
], M2.prototype, "color", 2);
|
|
20832
|
+
le([
|
|
20797
20833
|
a({ type: Boolean, reflect: true })
|
|
20798
|
-
],
|
|
20799
|
-
|
|
20834
|
+
], M2.prototype, "disabled", 2);
|
|
20835
|
+
le([
|
|
20800
20836
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
20801
|
-
],
|
|
20802
|
-
customElements.get("obi-navigate-to-modal") || customElements.define("obi-navigate-to-modal",
|
|
20803
|
-
var
|
|
20804
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
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--)
|
|
20805
20841
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20806
|
-
return o2 && t2 &&
|
|
20842
|
+
return o2 && t2 && po(e2, i3, t2), t2;
|
|
20807
20843
|
};
|
|
20808
|
-
class
|
|
20844
|
+
class X extends i$1 {
|
|
20809
20845
|
constructor() {
|
|
20810
20846
|
super(...arguments), this.disabled = false, this.open = false, this.color = "#9500FF";
|
|
20811
20847
|
}
|
|
@@ -20821,26 +20857,26 @@ class Y extends i$1 {
|
|
|
20821
20857
|
`;
|
|
20822
20858
|
}
|
|
20823
20859
|
}
|
|
20824
|
-
|
|
20825
|
-
|
|
20860
|
+
X.styles = [m];
|
|
20861
|
+
$e([
|
|
20826
20862
|
a({ type: Object })
|
|
20827
|
-
],
|
|
20828
|
-
|
|
20863
|
+
], X.prototype, "session", 2);
|
|
20864
|
+
$e([
|
|
20829
20865
|
a({ type: Boolean, reflect: true })
|
|
20830
|
-
],
|
|
20831
|
-
|
|
20866
|
+
], X.prototype, "disabled", 2);
|
|
20867
|
+
$e([
|
|
20832
20868
|
a({ type: Boolean, reflect: true })
|
|
20833
|
-
],
|
|
20834
|
-
|
|
20869
|
+
], X.prototype, "open", 2);
|
|
20870
|
+
$e([
|
|
20835
20871
|
a()
|
|
20836
|
-
],
|
|
20837
|
-
customElements.get("obi-session-start-modal") || customElements.define("obi-session-start-modal",
|
|
20838
|
-
var
|
|
20839
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
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--)
|
|
20840
20876
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20841
|
-
return o2 && t2 &&
|
|
20877
|
+
return o2 && t2 && bo(e2, i3, t2), t2;
|
|
20842
20878
|
};
|
|
20843
|
-
class
|
|
20879
|
+
class Z extends i$1 {
|
|
20844
20880
|
constructor() {
|
|
20845
20881
|
super(...arguments), this.open = false, this.disabled = false, this.color = "#9500FF";
|
|
20846
20882
|
}
|
|
@@ -20859,26 +20895,26 @@ class X extends i$1 {
|
|
|
20859
20895
|
`;
|
|
20860
20896
|
}
|
|
20861
20897
|
}
|
|
20862
|
-
|
|
20863
|
-
|
|
20898
|
+
Z.styles = [m];
|
|
20899
|
+
_e([
|
|
20864
20900
|
a({ type: Object })
|
|
20865
|
-
],
|
|
20866
|
-
|
|
20901
|
+
], Z.prototype, "session", 2);
|
|
20902
|
+
_e([
|
|
20867
20903
|
a({ type: Boolean, reflect: true })
|
|
20868
|
-
],
|
|
20869
|
-
|
|
20904
|
+
], Z.prototype, "open", 2);
|
|
20905
|
+
_e([
|
|
20870
20906
|
a({ type: Boolean, reflect: true })
|
|
20871
|
-
],
|
|
20872
|
-
|
|
20907
|
+
], Z.prototype, "disabled", 2);
|
|
20908
|
+
_e([
|
|
20873
20909
|
a()
|
|
20874
|
-
],
|
|
20875
|
-
customElements.get("obi-share-mic-modal") || customElements.define("obi-share-mic-modal",
|
|
20876
|
-
var
|
|
20877
|
-
for (var t2 = o2 > 1 ? void 0 : o2 ?
|
|
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--)
|
|
20878
20914
|
(n3 = s2[r2]) && (t2 = (o2 ? n3(e2, i3, t2) : n3(t2)) || t2);
|
|
20879
|
-
return o2 && t2 &&
|
|
20915
|
+
return o2 && t2 && mo(e2, i3, t2), t2;
|
|
20880
20916
|
};
|
|
20881
|
-
class
|
|
20917
|
+
class F extends i$1 {
|
|
20882
20918
|
constructor() {
|
|
20883
20919
|
super(...arguments), this.open = false, this.color = "#9500FF", this.disabled = false, this.loading = false, this.closeDisabled = false;
|
|
20884
20920
|
}
|
|
@@ -20900,26 +20936,227 @@ class j extends i$1 {
|
|
|
20900
20936
|
`;
|
|
20901
20937
|
}
|
|
20902
20938
|
}
|
|
20903
|
-
|
|
20904
|
-
|
|
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([
|
|
20905
21142
|
a({ type: Object })
|
|
20906
21143
|
], j.prototype, "session", 2);
|
|
20907
|
-
|
|
21144
|
+
Q([
|
|
20908
21145
|
a({ type: Boolean, reflect: true })
|
|
20909
21146
|
], j.prototype, "open", 2);
|
|
20910
|
-
|
|
21147
|
+
Q([
|
|
20911
21148
|
a()
|
|
20912
21149
|
], j.prototype, "color", 2);
|
|
20913
|
-
|
|
21150
|
+
Q([
|
|
20914
21151
|
a({ type: Boolean, reflect: true })
|
|
20915
21152
|
], j.prototype, "disabled", 2);
|
|
20916
|
-
|
|
21153
|
+
Q([
|
|
20917
21154
|
a({ type: Boolean, reflect: true })
|
|
20918
21155
|
], j.prototype, "loading", 2);
|
|
20919
|
-
|
|
21156
|
+
Q([
|
|
20920
21157
|
a({ type: Boolean, attribute: "close-disabled" })
|
|
20921
21158
|
], j.prototype, "closeDisabled", 2);
|
|
20922
|
-
customElements.get("obi-
|
|
21159
|
+
customElements.get("obi-overview-modal") || customElements.define("obi-overview-modal", j);
|
|
20923
21160
|
var __defProp = Object.defineProperty;
|
|
20924
21161
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
20925
21162
|
var __decorateClass = (decorators, target, key, kind) => {
|
|
@@ -20946,6 +21183,7 @@ class ObiWidget extends i$1 {
|
|
|
20946
21183
|
this.showSessionStartModal = false;
|
|
20947
21184
|
this.showShareMicModal = false;
|
|
20948
21185
|
this.micShareEnabled = false;
|
|
21186
|
+
this.showOverviewModal = false;
|
|
20949
21187
|
this.showVoiceGuidanceModal = false;
|
|
20950
21188
|
this.voiceGuidanceEnabled = false;
|
|
20951
21189
|
this.selectedCourse = null;
|
|
@@ -21063,6 +21301,7 @@ class ObiWidget extends i$1 {
|
|
|
21063
21301
|
this.showCourseModal = false;
|
|
21064
21302
|
this.showSessionStartModal = false;
|
|
21065
21303
|
this.showShareMicModal = false;
|
|
21304
|
+
this.showOverviewModal = false;
|
|
21066
21305
|
};
|
|
21067
21306
|
this.handleCourseSelectEvent = (event) => {
|
|
21068
21307
|
const customEvent = event;
|
|
@@ -21070,6 +21309,7 @@ class ObiWidget extends i$1 {
|
|
|
21070
21309
|
this.showCourseModal = false;
|
|
21071
21310
|
this.showSessionStartModal = true;
|
|
21072
21311
|
this.showShareMicModal = false;
|
|
21312
|
+
this.showOverviewModal = false;
|
|
21073
21313
|
this.micShareEnabled = false;
|
|
21074
21314
|
this.showVoiceGuidanceModal = false;
|
|
21075
21315
|
this.voiceGuidanceEnabled = false;
|
|
@@ -21152,7 +21392,7 @@ class ObiWidget extends i$1 {
|
|
|
21152
21392
|
this.activeSession = null;
|
|
21153
21393
|
}
|
|
21154
21394
|
this.showSessionStartModal = false;
|
|
21155
|
-
this.
|
|
21395
|
+
this.showVoiceGuidanceModal = true;
|
|
21156
21396
|
this.state = SDKState.LOADING;
|
|
21157
21397
|
setGlobalContext({ widgetState: this.state.toString() });
|
|
21158
21398
|
await this.connectObi(sessionToken);
|
|
@@ -21242,6 +21482,10 @@ class ObiWidget extends i$1 {
|
|
|
21242
21482
|
sessionId
|
|
21243
21483
|
});
|
|
21244
21484
|
};
|
|
21485
|
+
this.handleOverviewModalClose = () => {
|
|
21486
|
+
this.showOverviewModal = false;
|
|
21487
|
+
this.handleCloseModals();
|
|
21488
|
+
};
|
|
21245
21489
|
this.handleShareMicModalContinue = async (event) => {
|
|
21246
21490
|
const { session, micPermissionGranted } = event.detail;
|
|
21247
21491
|
console.log("[ShareMicModal] Continue button clicked", {
|
|
@@ -21263,7 +21507,6 @@ class ObiWidget extends i$1 {
|
|
|
21263
21507
|
}
|
|
21264
21508
|
await this.activeSession.shareMic();
|
|
21265
21509
|
this.showShareMicModal = false;
|
|
21266
|
-
this.showVoiceGuidanceModal = true;
|
|
21267
21510
|
};
|
|
21268
21511
|
this.handleShareMicModalClose = () => {
|
|
21269
21512
|
console.log("[ShareMicModal] Close button clicked", {
|
|
@@ -21285,6 +21528,8 @@ class ObiWidget extends i$1 {
|
|
|
21285
21528
|
);
|
|
21286
21529
|
await this.activeSession?.promptContinue();
|
|
21287
21530
|
this.showVoiceGuidanceModal = false;
|
|
21531
|
+
this.voiceGuidanceEnabled = false;
|
|
21532
|
+
this.showOverviewModal = true;
|
|
21288
21533
|
};
|
|
21289
21534
|
this.handleVoiceGuidanceModalClose = () => {
|
|
21290
21535
|
console.log("[obi] voice guidance modal close", {
|
|
@@ -21460,6 +21705,7 @@ class ObiWidget extends i$1 {
|
|
|
21460
21705
|
const session = new ObiSession({
|
|
21461
21706
|
sessionId: sessionToken,
|
|
21462
21707
|
apiBaseUrl: API_BASE_URL,
|
|
21708
|
+
clientType: "sdk",
|
|
21463
21709
|
...this.user && { user: this.user }
|
|
21464
21710
|
});
|
|
21465
21711
|
if (!session) {
|
|
@@ -21511,9 +21757,18 @@ class ObiWidget extends i$1 {
|
|
|
21511
21757
|
onError();
|
|
21512
21758
|
}
|
|
21513
21759
|
});
|
|
21760
|
+
session.on("micCheck", (permissionGranted) => {
|
|
21761
|
+
this.showOverviewModal = false;
|
|
21762
|
+
if (!permissionGranted) {
|
|
21763
|
+
this.showShareMicModal = true;
|
|
21764
|
+
}
|
|
21765
|
+
});
|
|
21514
21766
|
session.on("micShareRequested", () => {
|
|
21515
21767
|
this.micShareEnabled = true;
|
|
21516
21768
|
});
|
|
21769
|
+
session.on("micShared", () => {
|
|
21770
|
+
this.showOverviewModal = false;
|
|
21771
|
+
});
|
|
21517
21772
|
session.on("promptUser", () => {
|
|
21518
21773
|
this.voiceGuidanceEnabled = true;
|
|
21519
21774
|
});
|
|
@@ -21847,38 +22102,52 @@ class ObiWidget extends i$1 {
|
|
|
21847
22102
|
>
|
|
21848
22103
|
</obi-session-start-modal>
|
|
21849
22104
|
` : E$1}
|
|
21850
|
-
${this.
|
|
21851
|
-
<obi-
|
|
22105
|
+
${this.showVoiceGuidanceModal ? x`
|
|
22106
|
+
<obi-voice-guidance-modal
|
|
21852
22107
|
.session=${this.selectedCourse ? {
|
|
21853
22108
|
id: this.selectedCourse.id,
|
|
21854
22109
|
name: this.selectedCourse.name,
|
|
21855
22110
|
description: this.selectedCourse.description,
|
|
21856
22111
|
agentName: this.databaseConfig?.agentName
|
|
21857
22112
|
} : {}}
|
|
21858
|
-
?open=${this.
|
|
21859
|
-
?disabled=${!this.
|
|
22113
|
+
?open=${this.showVoiceGuidanceModal}
|
|
22114
|
+
?disabled=${!this.voiceGuidanceEnabled}
|
|
21860
22115
|
color=${this.primaryColor}
|
|
21861
|
-
@obi-continue=${this.
|
|
21862
|
-
@obi-close=${this.
|
|
22116
|
+
@obi-continue=${this.handleVoiceGuidanceModalContinue}
|
|
22117
|
+
@obi-close=${this.handleVoiceGuidanceModalClose}
|
|
21863
22118
|
>
|
|
21864
|
-
</obi-
|
|
22119
|
+
</obi-voice-guidance-modal>
|
|
21865
22120
|
` : E$1}
|
|
21866
|
-
${this.
|
|
21867
|
-
<obi-
|
|
22121
|
+
${this.showOverviewModal ? x`
|
|
22122
|
+
<obi-overview-modal
|
|
21868
22123
|
.session=${this.selectedCourse ? {
|
|
21869
22124
|
id: this.selectedCourse.id,
|
|
21870
22125
|
name: this.selectedCourse.name,
|
|
21871
22126
|
description: this.selectedCourse.description,
|
|
21872
22127
|
agentName: this.databaseConfig?.agentName
|
|
21873
22128
|
} : {}}
|
|
21874
|
-
?open=${this.
|
|
21875
|
-
?disabled=${!this.voiceGuidanceEnabled}
|
|
22129
|
+
?open=${this.showOverviewModal}
|
|
21876
22130
|
color=${this.primaryColor}
|
|
21877
|
-
@obi-
|
|
21878
|
-
@obi-close=${this.handleVoiceGuidanceModalClose}
|
|
22131
|
+
@obi-close=${this.handleOverviewModalClose}
|
|
21879
22132
|
>
|
|
21880
22133
|
</obi-voice-guidance-modal>
|
|
21881
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}
|
|
21882
22151
|
`;
|
|
21883
22152
|
}
|
|
21884
22153
|
}
|
|
@@ -22068,6 +22337,9 @@ __decorateClass([
|
|
|
22068
22337
|
__decorateClass([
|
|
22069
22338
|
r$1()
|
|
22070
22339
|
], ObiWidget.prototype, "micShareEnabled", 2);
|
|
22340
|
+
__decorateClass([
|
|
22341
|
+
r$1()
|
|
22342
|
+
], ObiWidget.prototype, "showOverviewModal", 2);
|
|
22071
22343
|
__decorateClass([
|
|
22072
22344
|
r$1()
|
|
22073
22345
|
], ObiWidget.prototype, "showVoiceGuidanceModal", 2);
|
|
@@ -22128,4 +22400,4 @@ export {
|
|
|
22128
22400
|
withSentryAsyncHandler as w,
|
|
22129
22401
|
x
|
|
22130
22402
|
};
|
|
22131
|
-
//# sourceMappingURL=obi-widget-
|
|
22403
|
+
//# sourceMappingURL=obi-widget-381a94c3.js.map
|