@floe-ai/sdk 0.1.0-dev.33 → 0.1.0-dev.34
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-sdk/floe-sdk.es.js +144 -112
- package/dist-sdk/floe-sdk.es.js.map +1 -1
- package/dist-sdk/floe-sdk.iife.js +24 -24
- package/dist-sdk/floe-sdk.iife.js.map +1 -1
- package/dist-sdk/floe-sdk.umd.js +24 -24
- package/dist-sdk/floe-sdk.umd.js.map +1 -1
- package/package.json +1 -1
package/dist-sdk/floe-sdk.es.js
CHANGED
|
@@ -420,7 +420,7 @@ const Bc = {
|
|
|
420
420
|
WebOS: "WebOS",
|
|
421
421
|
Windows: "Windows",
|
|
422
422
|
WindowsPhone: "Windows Phone"
|
|
423
|
-
},
|
|
423
|
+
}, vt = {
|
|
424
424
|
Blink: "Blink",
|
|
425
425
|
EdgeHTML: "EdgeHTML",
|
|
426
426
|
Gecko: "Gecko",
|
|
@@ -2096,11 +2096,11 @@ const V = /version\/(\d+(\.?_?\d+)+)/i, Fc = [
|
|
|
2096
2096
|
describe(r) {
|
|
2097
2097
|
if (/\sedg\//i.test(r))
|
|
2098
2098
|
return {
|
|
2099
|
-
name:
|
|
2099
|
+
name: vt.Blink
|
|
2100
2100
|
};
|
|
2101
2101
|
const t = _.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i, r);
|
|
2102
2102
|
return {
|
|
2103
|
-
name:
|
|
2103
|
+
name: vt.EdgeHTML,
|
|
2104
2104
|
version: t
|
|
2105
2105
|
};
|
|
2106
2106
|
}
|
|
@@ -2110,7 +2110,7 @@ const V = /version\/(\d+(\.?_?\d+)+)/i, Fc = [
|
|
|
2110
2110
|
test: [/trident/i],
|
|
2111
2111
|
describe(r) {
|
|
2112
2112
|
const e = {
|
|
2113
|
-
name:
|
|
2113
|
+
name: vt.Trident
|
|
2114
2114
|
}, t = _.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i, r);
|
|
2115
2115
|
return t && (e.version = t), e;
|
|
2116
2116
|
}
|
|
@@ -2122,7 +2122,7 @@ const V = /version\/(\d+(\.?_?\d+)+)/i, Fc = [
|
|
|
2122
2122
|
},
|
|
2123
2123
|
describe(r) {
|
|
2124
2124
|
const e = {
|
|
2125
|
-
name:
|
|
2125
|
+
name: vt.Presto
|
|
2126
2126
|
}, t = _.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i, r);
|
|
2127
2127
|
return t && (e.version = t), e;
|
|
2128
2128
|
}
|
|
@@ -2135,7 +2135,7 @@ const V = /version\/(\d+(\.?_?\d+)+)/i, Fc = [
|
|
|
2135
2135
|
},
|
|
2136
2136
|
describe(r) {
|
|
2137
2137
|
const e = {
|
|
2138
|
-
name:
|
|
2138
|
+
name: vt.Gecko
|
|
2139
2139
|
}, t = _.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i, r);
|
|
2140
2140
|
return t && (e.version = t), e;
|
|
2141
2141
|
}
|
|
@@ -2145,7 +2145,7 @@ const V = /version\/(\d+(\.?_?\d+)+)/i, Fc = [
|
|
|
2145
2145
|
test: [/(apple)?webkit\/537\.36/i],
|
|
2146
2146
|
describe() {
|
|
2147
2147
|
return {
|
|
2148
|
-
name:
|
|
2148
|
+
name: vt.Blink
|
|
2149
2149
|
};
|
|
2150
2150
|
}
|
|
2151
2151
|
},
|
|
@@ -2154,7 +2154,7 @@ const V = /version\/(\d+(\.?_?\d+)+)/i, Fc = [
|
|
|
2154
2154
|
test: [/(apple)?webkit/i],
|
|
2155
2155
|
describe(r) {
|
|
2156
2156
|
const e = {
|
|
2157
|
-
name:
|
|
2157
|
+
name: vt.WebKit
|
|
2158
2158
|
}, t = _.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i, r);
|
|
2159
2159
|
return t && (e.version = t), e;
|
|
2160
2160
|
}
|
|
@@ -2582,7 +2582,7 @@ class Hc {
|
|
|
2582
2582
|
return Qs;
|
|
2583
2583
|
}
|
|
2584
2584
|
static get ENGINE_MAP() {
|
|
2585
|
-
return
|
|
2585
|
+
return vt;
|
|
2586
2586
|
}
|
|
2587
2587
|
static get OS_MAP() {
|
|
2588
2588
|
return _e;
|
|
@@ -3916,7 +3916,7 @@ function Oe(r, e) {
|
|
|
3916
3916
|
}
|
|
3917
3917
|
return r != r && e != e;
|
|
3918
3918
|
}
|
|
3919
|
-
const Gc = { "Amazon Silk": "amazon_silk", "Android Browser": "android", Bada: "bada", BlackBerry: "blackberry", Chrome: "chrome", Chromium: "chromium", Electron: "electron", Epiphany: "epiphany", Firefox: "firefox", Focus: "focus", Generic: "generic", "Google Search": "google_search", Googlebot: "googlebot", "Internet Explorer": "ie", "K-Meleon": "k_meleon", Maxthon: "maxthon", "Microsoft Edge": "edge", "MZ Browser": "mz", "NAVER Whale Browser": "naver", Opera: "opera", "Opera Coast": "opera_coast", PhantomJS: "phantomjs", Puffin: "puffin", QupZilla: "qupzilla", QQ: "qq", QQLite: "qqlite", Safari: "safari", Sailfish: "sailfish", "Samsung Internet for Android": "samsung_internet", SeaMonkey: "seamonkey", Sleipnir: "sleipnir", Swing: "swing", Tizen: "tizen", "UC Browser": "uc", Vivaldi: "vivaldi", "WebOS Browser": "webos", WeChat: "wechat", "Yandex Browser": "yandex", Roku: "roku" }, va = { amazon_silk: "Amazon Silk", android: "Android Browser", bada: "Bada", blackberry: "BlackBerry", chrome: "Chrome", chromium: "Chromium", electron: "Electron", epiphany: "Epiphany", firefox: "Firefox", focus: "Focus", generic: "Generic", googlebot: "Googlebot", google_search: "Google Search", ie: "Internet Explorer", k_meleon: "K-Meleon", maxthon: "Maxthon", edge: "Microsoft Edge", mz: "MZ Browser", naver: "NAVER Whale Browser", opera: "Opera", opera_coast: "Opera Coast", phantomjs: "PhantomJS", puffin: "Puffin", qupzilla: "QupZilla", qq: "QQ Browser", qqlite: "QQ Browser Lite", safari: "Safari", sailfish: "Sailfish", samsung_internet: "Samsung Internet for Android", seamonkey: "SeaMonkey", sleipnir: "Sleipnir", swing: "Swing", tizen: "Tizen", uc: "UC Browser", vivaldi: "Vivaldi", webos: "WebOS Browser", wechat: "WeChat", yandex: "Yandex Browser" }, ye = { tablet: "tablet", mobile: "mobile", desktop: "desktop", tv: "tv" }, Ae = { WindowsPhone: "Windows Phone", Windows: "Windows", MacOS: "macOS", iOS: "iOS", Android: "Android", WebOS: "WebOS", BlackBerry: "BlackBerry", Bada: "Bada", Tizen: "Tizen", Linux: "Linux", ChromeOS: "Chrome OS", PlayStation4: "PlayStation 4", Roku: "Roku" },
|
|
3919
|
+
const Gc = { "Amazon Silk": "amazon_silk", "Android Browser": "android", Bada: "bada", BlackBerry: "blackberry", Chrome: "chrome", Chromium: "chromium", Electron: "electron", Epiphany: "epiphany", Firefox: "firefox", Focus: "focus", Generic: "generic", "Google Search": "google_search", Googlebot: "googlebot", "Internet Explorer": "ie", "K-Meleon": "k_meleon", Maxthon: "maxthon", "Microsoft Edge": "edge", "MZ Browser": "mz", "NAVER Whale Browser": "naver", Opera: "opera", "Opera Coast": "opera_coast", PhantomJS: "phantomjs", Puffin: "puffin", QupZilla: "qupzilla", QQ: "qq", QQLite: "qqlite", Safari: "safari", Sailfish: "sailfish", "Samsung Internet for Android": "samsung_internet", SeaMonkey: "seamonkey", Sleipnir: "sleipnir", Swing: "swing", Tizen: "tizen", "UC Browser": "uc", Vivaldi: "vivaldi", "WebOS Browser": "webos", WeChat: "wechat", "Yandex Browser": "yandex", Roku: "roku" }, va = { amazon_silk: "Amazon Silk", android: "Android Browser", bada: "Bada", blackberry: "BlackBerry", chrome: "Chrome", chromium: "Chromium", electron: "Electron", epiphany: "Epiphany", firefox: "Firefox", focus: "Focus", generic: "Generic", googlebot: "Googlebot", google_search: "Google Search", ie: "Internet Explorer", k_meleon: "K-Meleon", maxthon: "Maxthon", edge: "Microsoft Edge", mz: "MZ Browser", naver: "NAVER Whale Browser", opera: "Opera", opera_coast: "Opera Coast", phantomjs: "PhantomJS", puffin: "Puffin", qupzilla: "QupZilla", qq: "QQ Browser", qqlite: "QQ Browser Lite", safari: "Safari", sailfish: "Sailfish", samsung_internet: "Samsung Internet for Android", seamonkey: "SeaMonkey", sleipnir: "Sleipnir", swing: "Swing", tizen: "Tizen", uc: "UC Browser", vivaldi: "Vivaldi", webos: "WebOS Browser", wechat: "WeChat", yandex: "Yandex Browser" }, ye = { tablet: "tablet", mobile: "mobile", desktop: "desktop", tv: "tv" }, Ae = { WindowsPhone: "Windows Phone", Windows: "Windows", MacOS: "macOS", iOS: "iOS", Android: "Android", WebOS: "WebOS", BlackBerry: "BlackBerry", Bada: "Bada", Tizen: "Tizen", Linux: "Linux", ChromeOS: "Chrome OS", PlayStation4: "PlayStation 4", Roku: "Roku" }, wt = { EdgeHTML: "EdgeHTML", Blink: "Blink", Trident: "Trident", Presto: "Presto", Gecko: "Gecko", WebKit: "WebKit" };
|
|
3920
3920
|
class O {
|
|
3921
3921
|
static getFirstMatch(e, t) {
|
|
3922
3922
|
const n = t.match(e);
|
|
@@ -4224,23 +4224,23 @@ var Xc = [{ test: [/Roku\/DVP/], describe(r) {
|
|
|
4224
4224
|
const e = Number(String(r.getOSVersion()).split(".")[0]);
|
|
4225
4225
|
return r.getOSName(!0) === "android" && e >= 3;
|
|
4226
4226
|
}, describe: () => ({ type: ye.tablet }) }, { test: (r) => r.getOSName(!0) === "android", describe: () => ({ type: ye.mobile }) }, { test: (r) => r.getOSName(!0) === "macos", describe: () => ({ type: ye.desktop, vendor: "Apple" }) }, { test: (r) => r.getOSName(!0) === "windows", describe: () => ({ type: ye.desktop }) }, { test: (r) => r.getOSName(!0) === "linux", describe: () => ({ type: ye.desktop }) }, { test: (r) => r.getOSName(!0) === "playstation 4", describe: () => ({ type: ye.tv }) }, { test: (r) => r.getOSName(!0) === "roku", describe: () => ({ type: ye.tv }) }], Zc = [{ test: (r) => r.getBrowserName(!0) === "microsoft edge", describe(r) {
|
|
4227
|
-
if (/\sedg\//i.test(r)) return { name:
|
|
4227
|
+
if (/\sedg\//i.test(r)) return { name: wt.Blink };
|
|
4228
4228
|
const e = O.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i, r);
|
|
4229
|
-
return { name:
|
|
4229
|
+
return { name: wt.EdgeHTML, version: e };
|
|
4230
4230
|
} }, { test: [/trident/i], describe(r) {
|
|
4231
|
-
const e = { name:
|
|
4231
|
+
const e = { name: wt.Trident }, t = O.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i, r);
|
|
4232
4232
|
return t && (e.version = t), e;
|
|
4233
4233
|
} }, { test: (r) => r.test(/presto/i), describe(r) {
|
|
4234
|
-
const e = { name:
|
|
4234
|
+
const e = { name: wt.Presto }, t = O.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i, r);
|
|
4235
4235
|
return t && (e.version = t), e;
|
|
4236
4236
|
} }, { test(r) {
|
|
4237
4237
|
const e = r.test(/gecko/i), t = r.test(/like gecko/i);
|
|
4238
4238
|
return e && !t;
|
|
4239
4239
|
}, describe(r) {
|
|
4240
|
-
const e = { name:
|
|
4240
|
+
const e = { name: wt.Gecko }, t = O.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i, r);
|
|
4241
4241
|
return t && (e.version = t), e;
|
|
4242
|
-
} }, { test: [/(apple)?webkit\/537\.36/i], describe: () => ({ name:
|
|
4243
|
-
const e = { name:
|
|
4242
|
+
} }, { test: [/(apple)?webkit\/537\.36/i], describe: () => ({ name: wt.Blink }) }, { test: [/(apple)?webkit/i], describe(r) {
|
|
4243
|
+
const e = { name: wt.WebKit }, t = O.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i, r);
|
|
4244
4244
|
return t && (e.version = t), e;
|
|
4245
4245
|
} }];
|
|
4246
4246
|
class Wi {
|
|
@@ -4398,7 +4398,7 @@ class el {
|
|
|
4398
4398
|
return va;
|
|
4399
4399
|
}
|
|
4400
4400
|
static get ENGINE_MAP() {
|
|
4401
|
-
return
|
|
4401
|
+
return wt;
|
|
4402
4402
|
}
|
|
4403
4403
|
static get OS_MAP() {
|
|
4404
4404
|
return Ae;
|
|
@@ -4555,7 +4555,7 @@ function ka(r) {
|
|
|
4555
4555
|
function Zi(r) {
|
|
4556
4556
|
return sn(r, "DOMError");
|
|
4557
4557
|
}
|
|
4558
|
-
function
|
|
4558
|
+
function ht(r) {
|
|
4559
4559
|
return sn(r, "String");
|
|
4560
4560
|
}
|
|
4561
4561
|
function Si(r) {
|
|
@@ -4614,7 +4614,7 @@ function rl(r, e) {
|
|
|
4614
4614
|
else {
|
|
4615
4615
|
t.id && n.push(`#${t.id}`);
|
|
4616
4616
|
const s = t.className;
|
|
4617
|
-
if (s &&
|
|
4617
|
+
if (s && ht(s)) {
|
|
4618
4618
|
const a = s.split(/\s+/);
|
|
4619
4619
|
for (const c of a) n.push(`.${c}`);
|
|
4620
4620
|
}
|
|
@@ -4643,7 +4643,7 @@ function eo(r, e) {
|
|
|
4643
4643
|
return t.join(e);
|
|
4644
4644
|
}
|
|
4645
4645
|
function il(r, e, t = !1) {
|
|
4646
|
-
return !!
|
|
4646
|
+
return !!ht(r) && (sn(e, "RegExp") ? e.test(r) : !!ht(e) && (t ? r === e : r.includes(e)));
|
|
4647
4647
|
}
|
|
4648
4648
|
function In(r, e = [], t = !1) {
|
|
4649
4649
|
return e.some((n) => il(r, n, t));
|
|
@@ -4732,7 +4732,7 @@ function qr(r, e) {
|
|
|
4732
4732
|
function Tn() {
|
|
4733
4733
|
return Date.now() / 1e3;
|
|
4734
4734
|
}
|
|
4735
|
-
const
|
|
4735
|
+
const ft = function() {
|
|
4736
4736
|
const { performance: r } = ce;
|
|
4737
4737
|
if (!r || !r.now) return Tn;
|
|
4738
4738
|
const e = Date.now() - r.now(), t = r.timeOrigin == null ? e : r.timeOrigin;
|
|
@@ -4754,7 +4754,7 @@ function ze() {
|
|
|
4754
4754
|
function Ta(r) {
|
|
4755
4755
|
return r.exception && r.exception.values ? r.exception.values[0] : void 0;
|
|
4756
4756
|
}
|
|
4757
|
-
function
|
|
4757
|
+
function St(r) {
|
|
4758
4758
|
const { message: e, event_id: t } = r;
|
|
4759
4759
|
if (e) return e;
|
|
4760
4760
|
const n = Ta(r);
|
|
@@ -4872,13 +4872,13 @@ class je {
|
|
|
4872
4872
|
}
|
|
4873
4873
|
}
|
|
4874
4874
|
function ol(r) {
|
|
4875
|
-
const e =
|
|
4875
|
+
const e = ft(), t = { sid: ze(), init: !0, timestamp: e, started: e, duration: 0, status: "ok", errors: 0, ignoreDuration: !1, toJSON: () => function(n) {
|
|
4876
4876
|
return He({ sid: `${n.sid}`, init: n.init, started: new Date(1e3 * n.started).toISOString(), timestamp: new Date(1e3 * n.timestamp).toISOString(), status: n.status, errors: n.errors, did: typeof n.did == "number" || typeof n.did == "string" ? `${n.did}` : void 0, duration: n.duration, abnormal_mechanism: n.abnormal_mechanism, attrs: { release: n.release, environment: n.environment, ip_address: n.ipAddress, user_agent: n.userAgent } });
|
|
4877
4877
|
}(t) };
|
|
4878
4878
|
return r && tn(t, r), t;
|
|
4879
4879
|
}
|
|
4880
4880
|
function tn(r, e = {}) {
|
|
4881
|
-
if (e.user && (!r.ipAddress && e.user.ip_address && (r.ipAddress = e.user.ip_address), r.did || e.did || (r.did = e.user.id || e.user.email || e.user.username)), r.timestamp = e.timestamp ||
|
|
4881
|
+
if (e.user && (!r.ipAddress && e.user.ip_address && (r.ipAddress = e.user.ip_address), r.did || e.did || (r.did = e.user.id || e.user.email || e.user.username)), r.timestamp = e.timestamp || ft(), e.abnormal_mechanism && (r.abnormal_mechanism = e.abnormal_mechanism), e.ignoreDuration && (r.ignoreDuration = e.ignoreDuration), e.sid && (r.sid = e.sid.length === 32 ? e.sid : ze()), e.init !== void 0 && (r.init = e.init), !r.did && e.did && (r.did = `${e.did}`), typeof e.started == "number" && (r.started = e.started), r.ignoreDuration) r.duration = void 0;
|
|
4882
4882
|
else if (typeof e.duration == "number") r.duration = e.duration;
|
|
4883
4883
|
else {
|
|
4884
4884
|
const t = r.timestamp - r.started;
|
|
@@ -5114,7 +5114,7 @@ function dl(r) {
|
|
|
5114
5114
|
const ul = /^sentry-/;
|
|
5115
5115
|
function hl(r) {
|
|
5116
5116
|
const e = function(n) {
|
|
5117
|
-
if (!(!n || !
|
|
5117
|
+
if (!(!n || !ht(n) && !Array.isArray(n)))
|
|
5118
5118
|
return Array.isArray(n) ? n.reduce((i, o) => {
|
|
5119
5119
|
const s = co(o);
|
|
5120
5120
|
return Object.entries(s).forEach(([a, c]) => {
|
|
@@ -5135,7 +5135,7 @@ function pl(r) {
|
|
|
5135
5135
|
return He({ parent_span_id: n ? e : Ei(r).parent_span_id, span_id: n ? Kr() : e, trace_id: t });
|
|
5136
5136
|
}
|
|
5137
5137
|
function uo(r) {
|
|
5138
|
-
return typeof r == "number" ? ho(r) : Array.isArray(r) ? r[0] + r[1] / 1e9 : r instanceof Date ? ho(r.getTime()) :
|
|
5138
|
+
return typeof r == "number" ? ho(r) : Array.isArray(r) ? r[0] + r[1] / 1e9 : r instanceof Date ? ho(r.getTime()) : ft();
|
|
5139
5139
|
}
|
|
5140
5140
|
function ho(r) {
|
|
5141
5141
|
return r > 9999999999 ? r / 1e3 : r;
|
|
@@ -5893,7 +5893,7 @@ const Ao = /* @__PURE__ */ new WeakMap(), Ll = () => ({ name: "FunctionToString"
|
|
|
5893
5893
|
}
|
|
5894
5894
|
return !1;
|
|
5895
5895
|
}(s) ? (ge && J.warn(`Event dropped due to being internal Sentry Error.
|
|
5896
|
-
Event: ${
|
|
5896
|
+
Event: ${St(s)}`), !0) : function(c, d) {
|
|
5897
5897
|
return c.type || !d || !d.length ? !1 : function(u) {
|
|
5898
5898
|
const h = [];
|
|
5899
5899
|
u.message && h.push(u.message);
|
|
@@ -5905,26 +5905,26 @@ Event: ${wt(s)}`), !0) : function(c, d) {
|
|
|
5905
5905
|
return g && g.value && (h.push(g.value), g.type && h.push(`${g.type}: ${g.value}`)), h;
|
|
5906
5906
|
}(c).some((u) => In(u, d));
|
|
5907
5907
|
}(s, a.ignoreErrors) ? (ge && J.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
|
|
5908
|
-
Event: ${
|
|
5908
|
+
Event: ${St(s)}`), !0) : function(c) {
|
|
5909
5909
|
return c.type || !c.exception || !c.exception.values || c.exception.values.length === 0 ? !1 : !c.message && !c.exception.values.some((d) => d.stacktrace || d.type && d.type !== "Error" || d.value);
|
|
5910
5910
|
}(s) ? (ge && J.warn(`Event dropped due to not having an error message, error type or stacktrace.
|
|
5911
|
-
Event: ${
|
|
5911
|
+
Event: ${St(s)}`), !0) : function(c, d) {
|
|
5912
5912
|
if (c.type !== "transaction" || !d || !d.length) return !1;
|
|
5913
5913
|
const u = c.transaction;
|
|
5914
5914
|
return !!u && In(u, d);
|
|
5915
5915
|
}(s, a.ignoreTransactions) ? (ge && J.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
|
|
5916
|
-
Event: ${
|
|
5916
|
+
Event: ${St(s)}`), !0) : function(c, d) {
|
|
5917
5917
|
if (!d || !d.length) return !1;
|
|
5918
5918
|
const u = Bn(c);
|
|
5919
5919
|
return !!u && In(u, d);
|
|
5920
5920
|
}(s, a.denyUrls) ? (ge && J.warn(`Event dropped due to being matched by \`denyUrls\` option.
|
|
5921
|
-
Event: ${
|
|
5921
|
+
Event: ${St(s)}.
|
|
5922
5922
|
Url: ${Bn(s)}`), !0) : function(c, d) {
|
|
5923
5923
|
if (!d || !d.length) return !0;
|
|
5924
5924
|
const u = Bn(c);
|
|
5925
5925
|
return !u || In(u, d);
|
|
5926
5926
|
}(s, a.allowUrls) ? !1 : (ge && J.warn(`Event dropped due to not being matched by \`allowUrls\` option.
|
|
5927
|
-
Event: ${
|
|
5927
|
+
Event: ${St(s)}.
|
|
5928
5928
|
Url: ${Bn(s)}`), !0);
|
|
5929
5929
|
}(e, o) ? null : e;
|
|
5930
5930
|
} });
|
|
@@ -5943,7 +5943,7 @@ function Bn(r) {
|
|
|
5943
5943
|
return null;
|
|
5944
5944
|
}(e) : null;
|
|
5945
5945
|
} catch {
|
|
5946
|
-
return ge && J.error(`Cannot extract url for event ${
|
|
5946
|
+
return ge && J.error(`Cannot extract url for event ${St(r)}`), null;
|
|
5947
5947
|
}
|
|
5948
5948
|
}
|
|
5949
5949
|
function Rl(r, e, t = 250, n, i, o, s) {
|
|
@@ -6078,9 +6078,9 @@ function jl(r, e) {
|
|
|
6078
6078
|
}
|
|
6079
6079
|
const g = h[0];
|
|
6080
6080
|
return { url: No(g), method: Zr(g, "method") ? String(g.method).toUpperCase() : "GET" };
|
|
6081
|
-
}(s), u = { args: s, fetchData: { method: c, url: d }, startTimestamp: 1e3 *
|
|
6082
|
-
return n || Xe("fetch", { ...u }), o.apply(ce, s).then(async (h) => (n ? n(h) : Xe("fetch", { ...u, endTimestamp: 1e3 *
|
|
6083
|
-
throw Xe("fetch", { ...u, endTimestamp: 1e3 *
|
|
6081
|
+
}(s), u = { args: s, fetchData: { method: c, url: d }, startTimestamp: 1e3 * ft(), virtualError: a };
|
|
6082
|
+
return n || Xe("fetch", { ...u }), o.apply(ce, s).then(async (h) => (n ? n(h) : Xe("fetch", { ...u, endTimestamp: 1e3 * ft(), response: h }), h), (h) => {
|
|
6083
|
+
throw Xe("fetch", { ...u, endTimestamp: 1e3 * ft(), error: h }), wi(h) && h.stack === void 0 && (h.stack = a.stack, Ft(h, "framesToPop", 1)), h;
|
|
6084
6084
|
});
|
|
6085
6085
|
};
|
|
6086
6086
|
});
|
|
@@ -6366,8 +6366,8 @@ function Yl() {
|
|
|
6366
6366
|
if (!De.XMLHttpRequest) return;
|
|
6367
6367
|
const r = XMLHttpRequest.prototype;
|
|
6368
6368
|
r.open = new Proxy(r.open, { apply(e, t, n) {
|
|
6369
|
-
const i = new Error(), o = 1e3 *
|
|
6370
|
-
if (
|
|
6369
|
+
const i = new Error(), o = 1e3 * ft(), s = ht(n[0]) ? n[0].toUpperCase() : void 0, a = function(d) {
|
|
6370
|
+
if (ht(d)) return d;
|
|
6371
6371
|
try {
|
|
6372
6372
|
return d.toString();
|
|
6373
6373
|
} catch {
|
|
@@ -6382,16 +6382,16 @@ function Yl() {
|
|
|
6382
6382
|
d.status_code = t.status;
|
|
6383
6383
|
} catch {
|
|
6384
6384
|
}
|
|
6385
|
-
Xe("xhr", { endTimestamp: 1e3 *
|
|
6385
|
+
Xe("xhr", { endTimestamp: 1e3 * ft(), startTimestamp: o, xhr: t, virtualError: i });
|
|
6386
6386
|
}
|
|
6387
6387
|
};
|
|
6388
6388
|
return "onreadystatechange" in t && typeof t.onreadystatechange == "function" ? t.onreadystatechange = new Proxy(t.onreadystatechange, { apply: (d, u, h) => (c(), d.apply(u, h)) }) : t.addEventListener("readystatechange", c), t.setRequestHeader = new Proxy(t.setRequestHeader, { apply(d, u, h) {
|
|
6389
6389
|
const [g, b] = h, y = u[bn];
|
|
6390
|
-
return y &&
|
|
6390
|
+
return y && ht(g) && ht(b) && (y.request_headers[g.toLowerCase()] = b), d.apply(u, h);
|
|
6391
6391
|
} }), e.apply(t, n);
|
|
6392
6392
|
} }), r.send = new Proxy(r.send, { apply(e, t, n) {
|
|
6393
6393
|
const i = t[bn];
|
|
6394
|
-
return i ? (n[0] !== void 0 && (i.body = n[0]), Xe("xhr", { startTimestamp: 1e3 *
|
|
6394
|
+
return i ? (n[0] !== void 0 && (i.body = n[0]), Xe("xhr", { startTimestamp: 1e3 * ft(), xhr: t }), e.apply(t, n)) : e.apply(t, n);
|
|
6395
6395
|
} });
|
|
6396
6396
|
}
|
|
6397
6397
|
function Xl(r, e = function(t) {
|
|
@@ -6559,7 +6559,7 @@ const Ql = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i, Zl = /^\s*at (?:(.+?\)(?: \
|
|
|
6559
6559
|
};
|
|
6560
6560
|
}(t)), e.sentry && t.on("beforeSendEvent", /* @__PURE__ */ function(i) {
|
|
6561
6561
|
return function(o) {
|
|
6562
|
-
Ce() === i && Tt({ category: "sentry." + (o.type === "transaction" ? "transaction" : "event"), event_id: o.event_id, level: o.level, message:
|
|
6562
|
+
Ce() === i && Tt({ category: "sentry." + (o.type === "transaction" ? "transaction" : "event"), event_id: o.event_id, level: o.level, message: St(o) }, { event: o });
|
|
6563
6563
|
};
|
|
6564
6564
|
}(t));
|
|
6565
6565
|
} };
|
|
@@ -6631,7 +6631,7 @@ const dd = () => ({ name: "BrowserSession", setupOnce() {
|
|
|
6631
6631
|
const { stackParser: o, attachStacktrace: s } = Vo();
|
|
6632
6632
|
if (Ce() !== n || Bo()) return;
|
|
6633
6633
|
const { msg: a, url: c, line: d, column: u, error: h } = i, g = function(b, y, m, v) {
|
|
6634
|
-
const w = b.exception = b.exception || {}, x = w.values = w.values || [], C = x[0] = x[0] || {}, D = C.stacktrace = C.stacktrace || {}, P = D.frames = D.frames || [], R = v, B = m, re =
|
|
6634
|
+
const w = b.exception = b.exception || {}, x = w.values = w.values || [], C = x[0] = x[0] || {}, D = C.stacktrace = C.stacktrace || {}, P = D.frames = D.frames || [], R = v, B = m, re = ht(y) && y.length > 0 ? y : function() {
|
|
6635
6635
|
try {
|
|
6636
6636
|
return ki.document.location.href;
|
|
6637
6637
|
} catch {
|
|
@@ -6681,7 +6681,7 @@ const hd = () => ({ name: "HttpContext", preprocessEvent(r) {
|
|
|
6681
6681
|
Rl(Mi, s.stackParser, s.maxValueLength, t, e, n, i);
|
|
6682
6682
|
} };
|
|
6683
6683
|
};
|
|
6684
|
-
var Ko = "new", Wo = "loading", Jo = "loaded", ri = "joining-meeting", Lt = "joined-meeting",
|
|
6684
|
+
var Ko = "new", Wo = "loading", Jo = "loaded", ri = "joining-meeting", Lt = "joined-meeting", mt = "left-meeting", bt = "error", fd = "playable", Mr = "unknown", gd = "full", md = "base", Go = "no-room", bd = "end-of-life", yd = "connection-error", vd = "iframe-ready-for-launch-config", wd = "iframe-launch-config", Sd = "theme-updated", kd = "loading", xd = "load-attempt-failed", Yo = "loaded", _d = "started-camera", Cd = "camera-error", Ed = "joining-meeting", Td = "joined-meeting", Md = "left-meeting", Ad = "participant-joined", Od = "participant-updated", Dd = "participant-left", Ld = "participant-counts-updated", Pd = "access-state-updated", Id = "meeting-session-summary-updated", Rd = "meeting-session-state-updated", Nd = "waiting-participant-added", Bd = "waiting-participant-updated", Fd = "waiting-participant-removed", $d = "track-started", jd = "track-stopped", Ud = "transcription-started", Hd = "transcription-stopped", zd = "transcription-error", Xo = "recording-started", Qo = "recording-stopped", qd = "recording-stats", Vd = "recording-error", Kd = "recording-upload-completed", Wd = "recording-data", Jd = "app-message", Gd = "transcription-message", Yd = "remote-media-player-started", Xd = "remote-media-player-updated", Qd = "remote-media-player-stopped", Zd = "local-screen-share-started", eu = "local-screen-share-stopped", tu = "local-screen-share-canceled", nu = "active-speaker-change", ru = "active-speaker-mode-change", iu = "network-quality-change", ou = "network-connection", su = "cpu-load-change", au = "face-counts-updated", jn = "fullscreen", Un = "exited-fullscreen", cu = "live-streaming-started", lu = "live-streaming-updated", du = "live-streaming-stopped", uu = "live-streaming-error", hu = "lang-updated", pu = "receive-settings-updated", Zo = "input-settings-updated", es = "nonfatal-error", ts = "error", Ar = 4096, ns = 102400, Or = "iframe-call-message", rs = "local-screen-start", is = "daily-method-update-live-streaming-endpoints", Hn = "transmit-log", pt = "daily-custom-track", Yn = { NONE: "none", BGBLUR: "background-blur", BGIMAGE: "background-image", FACE_DETECTION: "face-detection" }, Na = { NONE: "none", NOISE_CANCELLATION: "noise-cancellation" }, ii = { PLAY: "play", PAUSE: "pause" }, Dr = ["jpg", "png", "jpeg"], fu = "add-endpoints", gu = "remove-endpoints", os = "sip-call-transfer";
|
|
6685
6685
|
function qe() {
|
|
6686
6686
|
return !oe() && typeof window < "u" && window.navigator && window.navigator.userAgent ? window.navigator.userAgent : "";
|
|
6687
6687
|
}
|
|
@@ -7491,7 +7491,7 @@ function ys(r, e) {
|
|
|
7491
7491
|
}
|
|
7492
7492
|
return t;
|
|
7493
7493
|
}
|
|
7494
|
-
function
|
|
7494
|
+
function yt(r) {
|
|
7495
7495
|
for (var e = 1; e < arguments.length; e++) {
|
|
7496
7496
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
7497
7497
|
e % 2 ? ys(Object(t), !0).forEach(function(n) {
|
|
@@ -7607,13 +7607,13 @@ var Ga = function() {
|
|
|
7607
7607
|
}
|
|
7608
7608
|
return Fe(r, [{ key: "clone", value: function() {
|
|
7609
7609
|
var e = new r();
|
|
7610
|
-
return this.video !== void 0 && (e.video = this.video), this.audio !== void 0 && (e.audio = this.audio), this.screenVideo !== void 0 && (e.screenVideo = this.screenVideo), this.screenAudio !== void 0 && (e.screenAudio = this.screenAudio), this.customVideo !== void 0 && (e.customVideo =
|
|
7610
|
+
return this.video !== void 0 && (e.video = this.video), this.audio !== void 0 && (e.audio = this.audio), this.screenVideo !== void 0 && (e.screenVideo = this.screenVideo), this.screenAudio !== void 0 && (e.screenAudio = this.screenAudio), this.customVideo !== void 0 && (e.customVideo = yt({}, this.customVideo)), this.customAudio !== void 0 && (e.customAudio = yt({}, this.customAudio)), e;
|
|
7611
7611
|
} }, { key: "toJSONObject", value: function() {
|
|
7612
7612
|
var e = {};
|
|
7613
|
-
return this.video !== void 0 && (e.video = this.video), this.audio !== void 0 && (e.audio = this.audio), this.screenVideo !== void 0 && (e.screenVideo = this.screenVideo), this.screenAudio !== void 0 && (e.screenAudio = this.screenAudio), this.customVideo !== void 0 && (e.customVideo =
|
|
7613
|
+
return this.video !== void 0 && (e.video = this.video), this.audio !== void 0 && (e.audio = this.audio), this.screenVideo !== void 0 && (e.screenVideo = this.screenVideo), this.screenAudio !== void 0 && (e.screenAudio = this.screenAudio), this.customVideo !== void 0 && (e.customVideo = yt({}, this.customVideo)), this.customAudio !== void 0 && (e.customAudio = yt({}, this.customAudio)), e;
|
|
7614
7614
|
} }, { key: "toMinifiedJSONObject", value: function() {
|
|
7615
7615
|
var e = {};
|
|
7616
|
-
return this.video !== void 0 && (e.v = this.video), this.audio !== void 0 && (e.a = this.audio), this.screenVideo !== void 0 && (e.sv = this.screenVideo), this.screenAudio !== void 0 && (e.sa = this.screenAudio), this.customVideo !== void 0 && (e.cv =
|
|
7616
|
+
return this.video !== void 0 && (e.v = this.video), this.audio !== void 0 && (e.a = this.audio), this.screenVideo !== void 0 && (e.sv = this.screenVideo), this.screenAudio !== void 0 && (e.sa = this.screenAudio), this.customVideo !== void 0 && (e.cv = yt({}, this.customVideo)), this.customAudio !== void 0 && (e.ca = yt({}, this.customAudio)), e;
|
|
7617
7617
|
} }, { key: "normalize", value: function() {
|
|
7618
7618
|
function e(t, n) {
|
|
7619
7619
|
return t && Object.keys(t).length === 1 && t["*"] === n;
|
|
@@ -7622,7 +7622,7 @@ var Ga = function() {
|
|
|
7622
7622
|
} }], [{ key: "fromBoolean", value: function(e) {
|
|
7623
7623
|
return new r({ video: e, audio: e, screenVideo: e, screenAudio: e, customVideo: { "*": e }, customAudio: { "*": e } });
|
|
7624
7624
|
} }, { key: "fromJSONObject", value: function(e) {
|
|
7625
|
-
return new r({ video: e.video, audio: e.audio, screenVideo: e.screenVideo, screenAudio: e.screenAudio, customVideo: e.customVideo !== void 0 ?
|
|
7625
|
+
return new r({ video: e.video, audio: e.audio, screenVideo: e.screenVideo, screenAudio: e.screenAudio, customVideo: e.customVideo !== void 0 ? yt({}, e.customVideo) : void 0, customAudio: e.customAudio !== void 0 ? yt({}, e.customAudio) : void 0 });
|
|
7626
7626
|
} }, { key: "fromMinifiedJSONObject", value: function(e) {
|
|
7627
7627
|
return new r({ video: e.v, audio: e.a, screenVideo: e.sv, screenAudio: e.sa, customVideo: e.cv, customAudio: e.ca });
|
|
7628
7628
|
} }, { key: "validateJSONObject", value: function(e, t) {
|
|
@@ -7743,7 +7743,7 @@ var Mt = {}, Cs = "video", Hu = "voice", Es = oe() ? { data: {} } : { data: {},
|
|
|
7743
7743
|
}, help: "invalid userData type provided" }, startVideoOff: !0, startAudioOff: !0, allowLocalVideo: !0, allowLocalAudio: !0, activeSpeakerMode: !0, showLeaveButton: !0, showLocalVideo: !0, showParticipantsBar: !0, showFullscreenButton: !0, showUserNameChangeUI: !0, iframeStyle: !0, customLayout: !0, cssFile: !0, cssText: !0, bodyClass: !0, videoSource: { validate: function(r, e) {
|
|
7744
7744
|
if (typeof r == "boolean") return e._preloadCache.allowLocalVideo = r, !0;
|
|
7745
7745
|
var t;
|
|
7746
|
-
if (r instanceof MediaStreamTrack) e._sharedTracks.videoTrack = r, t = { customTrack:
|
|
7746
|
+
if (r instanceof MediaStreamTrack) e._sharedTracks.videoTrack = r, t = { customTrack: pt };
|
|
7747
7747
|
else {
|
|
7748
7748
|
if (delete e._sharedTracks.videoTrack, typeof r != "string") return console.error("videoSource must be a MediaStreamTrack, boolean, or a string"), !1;
|
|
7749
7749
|
t = { deviceId: r };
|
|
@@ -7752,7 +7752,7 @@ var Mt = {}, Cs = "video", Hu = "voice", Es = oe() ? { data: {} } : { data: {},
|
|
|
7752
7752
|
} }, audioSource: { validate: function(r, e) {
|
|
7753
7753
|
if (typeof r == "boolean") return e._preloadCache.allowLocalAudio = r, !0;
|
|
7754
7754
|
var t;
|
|
7755
|
-
if (r instanceof MediaStreamTrack) e._sharedTracks.audioTrack = r, t = { customTrack:
|
|
7755
|
+
if (r instanceof MediaStreamTrack) e._sharedTracks.audioTrack = r, t = { customTrack: pt };
|
|
7756
7756
|
else {
|
|
7757
7757
|
if (delete e._sharedTracks.audioTrack, typeof r != "string") return console.error("audioSource must be a MediaStreamTrack, boolean, or a string"), !1;
|
|
7758
7758
|
t = { deviceId: r };
|
|
@@ -8129,7 +8129,7 @@ var zu = function() {
|
|
|
8129
8129
|
} }, { key: "setIceConfig", value: function(l) {
|
|
8130
8130
|
return this.sendMessageToCallMachine({ action: "set-ice-config", iceConfig: l }), this;
|
|
8131
8131
|
} }, { key: "meetingSessionSummary", value: function() {
|
|
8132
|
-
return [
|
|
8132
|
+
return [mt, bt].includes(this._callState) ? this._finalSummaryOfPrevSession : this._meetingSessionSummary;
|
|
8133
8133
|
} }, { key: "getMeetingSession", value: (N = W(function* () {
|
|
8134
8134
|
var l = this;
|
|
8135
8135
|
return console.warn("getMeetingSession() is deprecated: use meetingSessionSummary(), which will return immediately"), fe(this._callState, "getMeetingSession()"), new Promise(function(f) {
|
|
@@ -8237,7 +8237,7 @@ var zu = function() {
|
|
|
8237
8237
|
} }, { key: "startCustomTrack", value: function() {
|
|
8238
8238
|
var l = this, f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : { track, mode, trackName, ignoreAudioLevel };
|
|
8239
8239
|
return ie(), fe(this._callState, "startCustomTrack()"), this.validateCustomTrack(f.track, f.mode, f.trackName), new Promise(function(p, S) {
|
|
8240
|
-
l._sharedTracks.customTrack = f.track, f.track =
|
|
8240
|
+
l._sharedTracks.customTrack = f.track, f.track = pt, l.sendMessageToCallMachine({ action: "start-custom-track", properties: f }, function(k) {
|
|
8241
8241
|
k.error ? S({ error: k.error }) : p(k.mediaTag);
|
|
8242
8242
|
});
|
|
8243
8243
|
});
|
|
@@ -8284,7 +8284,7 @@ var zu = function() {
|
|
|
8284
8284
|
var f = this, p = l.audioDeviceId, S = l.videoDeviceId, k = l.audioSource, E = l.videoSource;
|
|
8285
8285
|
if (ie(), k !== void 0 && (p = k), E !== void 0 && (S = E), typeof p == "boolean" && (this._setAllowLocalAudio(p), p = void 0), typeof S == "boolean" && (this._setAllowLocalVideo(S), S = void 0), !p && !S) return yield this.getInputDevices();
|
|
8286
8286
|
var A = {};
|
|
8287
|
-
return p && (p instanceof MediaStreamTrack ? (this._sharedTracks.audioTrack = p, p =
|
|
8287
|
+
return p && (p instanceof MediaStreamTrack ? (this._sharedTracks.audioTrack = p, p = pt, A.audio = { settings: { customTrack: p } }) : (delete this._sharedTracks.audioTrack, A.audio = { settings: { deviceId: p } })), S && (S instanceof MediaStreamTrack ? (this._sharedTracks.videoTrack = S, S = pt, A.video = { settings: { customTrack: S } }) : (delete this._sharedTracks.videoTrack, A.video = { settings: { deviceId: S } })), this._callObjectMode && this.needsLoad() ? (this._updatePreloadCacheInputSettings(A, !1), this._devicesFromInputSettings(this._inputSettings)) : new Promise(function(L) {
|
|
8288
8288
|
f.sendMessageToCallMachine({ action: "set-input-devices", audioDeviceId: p, videoDeviceId: S }, function(I) {
|
|
8289
8289
|
if (delete I.action, delete I.callbackStamp, I.returnPreloadCache) return f._updatePreloadCacheInputSettings(A, !1), void L(f._devicesFromInputSettings(f._inputSettings));
|
|
8290
8290
|
L(I);
|
|
@@ -8343,14 +8343,14 @@ var zu = function() {
|
|
|
8343
8343
|
f._bundleLoadTime = E ? "no-op" : Date.now() - k, f._updateCallState(Jo), E && f.emitDailyJSEvent({ action: Yo }), p();
|
|
8344
8344
|
}, function(E, A) {
|
|
8345
8345
|
if (f.emitDailyJSEvent({ action: xd }), !A) {
|
|
8346
|
-
f._updateCallState(
|
|
8346
|
+
f._updateCallState(bt), f.resetMeetingDependentVars();
|
|
8347
8347
|
var L = { action: ts, errorMsg: E.msg, error: { type: "connection-error", msg: "Failed to load call object bundle.", details: { on: "load", sourceError: E, bundleUrl: Qn(f.properties.dailyConfig) } } };
|
|
8348
8348
|
f._maybeSendToSentry(L), f.emitDailyJSEvent(L), S(E.msg);
|
|
8349
8349
|
}
|
|
8350
8350
|
});
|
|
8351
8351
|
}) : (this._iframe.src = wa(this.assembleMeetingUrl(), this.properties.dailyConfig), new Promise(function(p, S) {
|
|
8352
8352
|
f._loadedCallback = function(k) {
|
|
8353
|
-
f._callState !==
|
|
8353
|
+
f._callState !== bt ? (f._updateCallState(Jo), (f.properties.cssFile || f.properties.cssText) && f.loadCss(f.properties), p()) : S(k);
|
|
8354
8354
|
};
|
|
8355
8355
|
}));
|
|
8356
8356
|
}
|
|
@@ -8382,8 +8382,8 @@ var zu = function() {
|
|
|
8382
8382
|
k.error && l._joinedCallback && (l._joinedCallback(null, k.error), l._joinedCallback = null);
|
|
8383
8383
|
}), new Promise(function(k, E) {
|
|
8384
8384
|
l._joinedCallback = function(A, L) {
|
|
8385
|
-
if (l._callState !==
|
|
8386
|
-
if (L) return l._updateCallState(
|
|
8385
|
+
if (l._callState !== bt) {
|
|
8386
|
+
if (L) return l._updateCallState(mt), void E(L);
|
|
8387
8387
|
if (l._updateCallState(Lt), A) for (var I in A) {
|
|
8388
8388
|
if (l._callObjectMode) {
|
|
8389
8389
|
var K = l._callMachine().store;
|
|
@@ -8400,13 +8400,13 @@ var zu = function() {
|
|
|
8400
8400
|
}) }, { key: "leave", value: (P = W(function* () {
|
|
8401
8401
|
var l = this;
|
|
8402
8402
|
return this._testCallInProgress && this.stopTestCallQuality(), new Promise(function(f) {
|
|
8403
|
-
l._callState ===
|
|
8403
|
+
l._callState === mt || l._callState === bt ? f() : l._callObjectLoader && !l._callObjectLoader.loaded ? (l._callObjectLoader.cancel(), l._updateCallState(mt), l.resetMeetingDependentVars(), l.emitDailyJSEvent({ action: mt }), f()) : (l._resolveLeave = f, l.sendMessageToCallMachine({ action: "leave-meeting" }));
|
|
8404
8404
|
});
|
|
8405
8405
|
}), function() {
|
|
8406
8406
|
return P.apply(this, arguments);
|
|
8407
8407
|
}) }, { key: "startScreenShare", value: (D = W(function* () {
|
|
8408
8408
|
var l = this, f = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
8409
|
-
if (Vn(this._callMachineInitialized, "startScreenShare()"), f.screenVideoSendSettings && this._validateVideoSendSettings("screenVideo", f.screenVideoSendSettings), f.mediaStream && (this._sharedTracks.screenMediaStream = f.mediaStream, f.mediaStream =
|
|
8409
|
+
if (Vn(this._callMachineInitialized, "startScreenShare()"), f.screenVideoSendSettings && this._validateVideoSendSettings("screenVideo", f.screenVideoSendSettings), f.mediaStream && (this._sharedTracks.screenMediaStream = f.mediaStream, f.mediaStream = pt), typeof DailyNativeUtils < "u" && DailyNativeUtils.isIOS !== void 0 && DailyNativeUtils.isIOS) {
|
|
8410
8410
|
var p = this.nativeUtils();
|
|
8411
8411
|
if (yield p.isScreenBeingCaptured()) return void this.emitDailyJSEvent({ action: es, type: "screen-share-error", errorMsg: "Could not start the screen sharing. The screen is already been captured!" });
|
|
8412
8412
|
p.setSystemScreenCaptureStartCallback(function() {
|
|
@@ -8962,7 +8962,7 @@ var zu = function() {
|
|
|
8962
8962
|
return "".concat(At[k].queryString, "=").concat(p[k]);
|
|
8963
8963
|
}).join("&");
|
|
8964
8964
|
} }, { key: "needsLoad", value: function() {
|
|
8965
|
-
return [Ko, Wo,
|
|
8965
|
+
return [Ko, Wo, mt, bt].includes(this._callState);
|
|
8966
8966
|
} }, { key: "sendMessageToCallMachine", value: function(l, f) {
|
|
8967
8967
|
if (this._destroyed && (this._logUseAfterDestroy(), this.strictMode)) throw new Error("Use after destroy");
|
|
8968
8968
|
this._messageChannel.sendMessageToCallMachine(l, f, this.callClientId, this._iframe);
|
|
@@ -8991,7 +8991,7 @@ var zu = function() {
|
|
|
8991
8991
|
break;
|
|
8992
8992
|
case Ad:
|
|
8993
8993
|
case Od:
|
|
8994
|
-
if (this._callState ===
|
|
8994
|
+
if (this._callState === mt) return;
|
|
8995
8995
|
if (l.participant && l.participant.session_id) {
|
|
8996
8996
|
var k = l.participant.local ? "local" : l.participant.session_id;
|
|
8997
8997
|
if (this._callObjectMode) {
|
|
@@ -9028,12 +9028,12 @@ var zu = function() {
|
|
|
9028
9028
|
break;
|
|
9029
9029
|
case ts:
|
|
9030
9030
|
var K;
|
|
9031
|
-
this._iframe && !l.preserveIframe && (this._iframe.src = ""), this._updateCallState(
|
|
9031
|
+
this._iframe && !l.preserveIframe && (this._iframe.src = ""), this._updateCallState(bt), this.resetMeetingDependentVars(), this._loadedCallback && (this._loadedCallback(l.errorMsg), this._loadedCallback = null), l.preserveIframe;
|
|
9032
9032
|
var te = ji(l, Uu);
|
|
9033
9033
|
te != null && (K = te.error) !== null && K !== void 0 && K.details && (te.error.details = JSON.parse(te.error.details)), this._maybeSendToSentry(l), this._joinedCallback && (this._joinedCallback(null, te), this._joinedCallback = null), this.emitDailyJSEvent(te);
|
|
9034
9034
|
break;
|
|
9035
9035
|
case Md:
|
|
9036
|
-
this._callState !==
|
|
9036
|
+
this._callState !== bt && this._updateCallState(mt), this.resetMeetingDependentVars(), this._resolveLeave && (this._resolveLeave(), this._resolveLeave = null), this.emitDailyJSEvent(l);
|
|
9037
9037
|
break;
|
|
9038
9038
|
case "selected-devices-updated":
|
|
9039
9039
|
l.devices && this.emitDailyJSEvent(l);
|
|
@@ -9350,7 +9350,7 @@ function Os(r) {
|
|
|
9350
9350
|
}
|
|
9351
9351
|
function qt(r, e) {
|
|
9352
9352
|
var t = {};
|
|
9353
|
-
for (var n in r) if (r[n] instanceof MediaStreamTrack) console.warn("MediaStreamTrack found in props or cache.", n), t[n] =
|
|
9353
|
+
for (var n in r) if (r[n] instanceof MediaStreamTrack) console.warn("MediaStreamTrack found in props or cache.", n), t[n] = pt;
|
|
9354
9354
|
else if (n === "dailyConfig") {
|
|
9355
9355
|
if (r[n].modifyLocalSdpHook) {
|
|
9356
9356
|
var i = window._daily.instances[e].customCallbacks || {};
|
|
@@ -9483,7 +9483,7 @@ function ec(r) {
|
|
|
9483
9483
|
}
|
|
9484
9484
|
function tc(r, e, t) {
|
|
9485
9485
|
var n, i = [];
|
|
9486
|
-
r.video && r.video.processor && (Fa((n = e == null ? void 0 : e.useLegacyVideoProcessor) !== null && n !== void 0 && n) || (r.video.settings ? delete r.video.processor : delete r.video, i.push("video"))), r.audio && r.audio.processor && ($a() || (r.audio.settings ? delete r.audio.processor : delete r.audio, i.push("audio"))), i.length > 0 && console.error("Ignoring settings for browser- or platform-unsupported input processor(s): ".concat(i.join(", "))), r.audio && r.audio.settings && (r.audio.settings.customTrack ? (t.audioTrack = r.audio.settings.customTrack, r.audio.settings = { customTrack:
|
|
9486
|
+
r.video && r.video.processor && (Fa((n = e == null ? void 0 : e.useLegacyVideoProcessor) !== null && n !== void 0 && n) || (r.video.settings ? delete r.video.processor : delete r.video, i.push("video"))), r.audio && r.audio.processor && ($a() || (r.audio.settings ? delete r.audio.processor : delete r.audio, i.push("audio"))), i.length > 0 && console.error("Ignoring settings for browser- or platform-unsupported input processor(s): ".concat(i.join(", "))), r.audio && r.audio.settings && (r.audio.settings.customTrack ? (t.audioTrack = r.audio.settings.customTrack, r.audio.settings = { customTrack: pt }) : delete t.audioTrack), r.video && r.video.settings && (r.video.settings.customTrack ? (t.videoTrack = r.video.settings.customTrack, r.video.settings = { customTrack: pt }) : delete t.videoTrack);
|
|
9487
9487
|
}
|
|
9488
9488
|
function qu(r) {
|
|
9489
9489
|
if (oe()) return console.warn("Video processing is not yet supported in React Native"), !1;
|
|
@@ -9664,7 +9664,7 @@ function ac(r, e, t, n) {
|
|
|
9664
9664
|
}
|
|
9665
9665
|
var cc = {};
|
|
9666
9666
|
ac(cc, "DailyRTVIMessageType", () => ui);
|
|
9667
|
-
ac(cc, "DailyTransport", () =>
|
|
9667
|
+
ac(cc, "DailyTransport", () => gt);
|
|
9668
9668
|
class Ge {
|
|
9669
9669
|
/**
|
|
9670
9670
|
* Converts Float32Array of amplitude data to ArrayBuffer in Int16Array format
|
|
@@ -10876,7 +10876,7 @@ class oh {
|
|
|
10876
10876
|
return this._proxy;
|
|
10877
10877
|
}
|
|
10878
10878
|
}
|
|
10879
|
-
class
|
|
10879
|
+
class gt extends fa {
|
|
10880
10880
|
constructor(e = {}) {
|
|
10881
10881
|
var i;
|
|
10882
10882
|
super(), this._botId = "", this._selectedCam = {}, this._selectedMic = {}, this._selectedSpeaker = {}, this._currentAudioTrack = null, this._audioQueue = [], this._callbacks = {};
|
|
@@ -10888,7 +10888,7 @@ class ft extends fa {
|
|
|
10888
10888
|
}
|
|
10889
10889
|
setupRecorder() {
|
|
10890
10890
|
this._mediaStreamRecorder = new ih({
|
|
10891
|
-
sampleRate:
|
|
10891
|
+
sampleRate: gt.RECORDER_SAMPLE_RATE
|
|
10892
10892
|
});
|
|
10893
10893
|
}
|
|
10894
10894
|
handleUserAudioStream(e) {
|
|
@@ -10915,7 +10915,7 @@ class ft extends fa {
|
|
|
10915
10915
|
const o = new Uint8Array(i);
|
|
10916
10916
|
return btoa(String.fromCharCode(...o));
|
|
10917
10917
|
}),
|
|
10918
|
-
sampleRate:
|
|
10918
|
+
sampleRate: gt.RECORDER_SAMPLE_RATE,
|
|
10919
10919
|
numChannels: 1
|
|
10920
10920
|
}
|
|
10921
10921
|
};
|
|
@@ -11022,7 +11022,7 @@ class ft extends fa {
|
|
|
11022
11022
|
try {
|
|
11023
11023
|
ne.info("[Daily Transport] Initializing recording"), await this._mediaStreamRecorder.record((n) => {
|
|
11024
11024
|
this.handleUserAudioStream(n.mono);
|
|
11025
|
-
},
|
|
11025
|
+
}, gt.RECORDER_CHUNK_SIZE), (t = (e = this._callbacks).onAudioBufferingStarted) == null || t.call(e), ne.info("[Daily Transport] Recording Initialized");
|
|
11026
11026
|
} catch (n) {
|
|
11027
11027
|
n.message.includes("Already recording") || ne.error("Error starting recording", n);
|
|
11028
11028
|
}
|
|
@@ -11213,8 +11213,8 @@ class ft extends fa {
|
|
|
11213
11213
|
}
|
|
11214
11214
|
}
|
|
11215
11215
|
}
|
|
11216
|
-
|
|
11217
|
-
|
|
11216
|
+
gt.RECORDER_SAMPLE_RATE = 16e3;
|
|
11217
|
+
gt.RECORDER_CHUNK_SIZE = 512;
|
|
11218
11218
|
const Ot = (r) => ({
|
|
11219
11219
|
id: r.user_id,
|
|
11220
11220
|
local: r.local,
|
|
@@ -13465,7 +13465,7 @@ function Re(r) {
|
|
|
13465
13465
|
if (r.closest(e)) return !0;
|
|
13466
13466
|
return !1;
|
|
13467
13467
|
}
|
|
13468
|
-
function
|
|
13468
|
+
function ut() {
|
|
13469
13469
|
return window.location.origin + window.location.pathname;
|
|
13470
13470
|
}
|
|
13471
13471
|
function Kn(r) {
|
|
@@ -13799,7 +13799,7 @@ class gh {
|
|
|
13799
13799
|
e.push(h);
|
|
13800
13800
|
}), {
|
|
13801
13801
|
timestamp: Date.now(),
|
|
13802
|
-
url:
|
|
13802
|
+
url: ut(),
|
|
13803
13803
|
viewport: t,
|
|
13804
13804
|
elements: e,
|
|
13805
13805
|
totalElements: e.length,
|
|
@@ -14031,7 +14031,7 @@ async function kh(r, e, t) {
|
|
|
14031
14031
|
}
|
|
14032
14032
|
return r.value = "", r.dispatchEvent(new Event("input", { bubbles: !0 })), r.dispatchEvent(new Event("change", { bubbles: !0 })), await new Promise((i) => setTimeout(i, 200)), null;
|
|
14033
14033
|
}
|
|
14034
|
-
const
|
|
14034
|
+
const dt = class dt {
|
|
14035
14035
|
/**
|
|
14036
14036
|
* Extract parent context from a CSS selector.
|
|
14037
14037
|
* This is a GENERIC approach that uses the selector's own structure to guide fallback matching.
|
|
@@ -14077,7 +14077,7 @@ const St = class St {
|
|
|
14077
14077
|
* Set the DOM Introspector instance for bounding box resolution
|
|
14078
14078
|
*/
|
|
14079
14079
|
static setDOMIntrospector(e) {
|
|
14080
|
-
|
|
14080
|
+
dt.domIntrospector = e, console.log("[HybridTargetResolver] DOM Introspector set for enhanced targeting");
|
|
14081
14081
|
}
|
|
14082
14082
|
/**
|
|
14083
14083
|
* Safely serialize an object for logging, excluding DOM elements and circular references
|
|
@@ -14183,12 +14183,22 @@ const St = class St {
|
|
|
14183
14183
|
duration: c
|
|
14184
14184
|
};
|
|
14185
14185
|
if (!s.interactable) {
|
|
14186
|
-
const g =
|
|
14187
|
-
if (g
|
|
14188
|
-
return console.log(`[HybridTargetResolver] ✅ Using
|
|
14189
|
-
element:
|
|
14190
|
-
confidence:
|
|
14191
|
-
strategies:
|
|
14186
|
+
const g = this.getClickableContainer(s.element);
|
|
14187
|
+
if (g !== s.element && dt.checkInteractability(g).ok)
|
|
14188
|
+
return console.log(`[HybridTargetResolver] ✅ Using clickable container for hidden winner (${s.confidence.toFixed(1)}%)`), {
|
|
14189
|
+
element: g,
|
|
14190
|
+
confidence: s.confidence,
|
|
14191
|
+
strategies: s.strategies,
|
|
14192
|
+
candidateCount: i.size,
|
|
14193
|
+
ambiguous: d,
|
|
14194
|
+
duration: c
|
|
14195
|
+
};
|
|
14196
|
+
const b = o.find((y) => y.interactable);
|
|
14197
|
+
if (b && b.confidence > 30)
|
|
14198
|
+
return console.log(`[HybridTargetResolver] ✅ Using interactable candidate (${b.confidence.toFixed(1)}%)`), {
|
|
14199
|
+
element: this.getClickableContainer(b.element),
|
|
14200
|
+
confidence: b.confidence,
|
|
14201
|
+
strategies: b.strategies,
|
|
14192
14202
|
candidateCount: i.size,
|
|
14193
14203
|
ambiguous: d,
|
|
14194
14204
|
duration: c
|
|
@@ -14462,7 +14472,7 @@ const St = class St {
|
|
|
14462
14472
|
n += 20;
|
|
14463
14473
|
else if (g.includes(b)) {
|
|
14464
14474
|
const y = b.length / g.length;
|
|
14465
|
-
y > 0.8 ? n += 15 : y > 0.5 ? n += 8 : (new RegExp(`\\b${
|
|
14475
|
+
y > 0.8 ? n += 15 : y > 0.5 ? n += 8 : (new RegExp(`\\b${dt.escapeRegex(b)}\\b`, "i").test(g) ? n += 2 : n += 0, console.log(`[HybridTargetResolver] Text length mismatch: "${b}" (${b.length}) in "${g.slice(0, 30)}..." (${g.length}), ratio=${y.toFixed(2)}, points=${n}`));
|
|
14466
14476
|
} else if (b.includes(g)) {
|
|
14467
14477
|
const y = g.length / b.length;
|
|
14468
14478
|
b.startsWith(g) && g.length >= 15 ? n += Math.round(18 * y) : n += Math.round(10 * y);
|
|
@@ -14856,7 +14866,7 @@ const St = class St {
|
|
|
14856
14866
|
* For React Select, MUI, Headless UI, etc., returns the visible control element.
|
|
14857
14867
|
*/
|
|
14858
14868
|
static getClickableContainer(e) {
|
|
14859
|
-
var o, s;
|
|
14869
|
+
var o, s, a;
|
|
14860
14870
|
if (!this.isHiddenPlaceholderInput(e))
|
|
14861
14871
|
return e;
|
|
14862
14872
|
console.log("[HybridTargetResolver] → Looking for clickable container...");
|
|
@@ -14868,33 +14878,55 @@ const St = class St {
|
|
|
14868
14878
|
".MuiSelect-select",
|
|
14869
14879
|
".MuiInputBase-root",
|
|
14870
14880
|
".MuiOutlinedInput-root",
|
|
14881
|
+
".MuiRadio-root",
|
|
14882
|
+
".MuiCheckbox-root",
|
|
14883
|
+
".MuiFormControlLabel-root",
|
|
14884
|
+
// Angular / Ant Design / NZ-Zorro radio/checkbox patterns
|
|
14885
|
+
".ant-radio-wrapper",
|
|
14886
|
+
".ant-radio-button-wrapper",
|
|
14887
|
+
".ant-checkbox-wrapper",
|
|
14888
|
+
"nz-radio",
|
|
14889
|
+
"nz-radio-button",
|
|
14890
|
+
"nz-checkbox",
|
|
14891
|
+
"[nz-radio]",
|
|
14892
|
+
"[nz-radio-button]",
|
|
14893
|
+
"[nz-checkbox]",
|
|
14871
14894
|
// Generic patterns
|
|
14872
14895
|
'[role="button"]',
|
|
14873
14896
|
'[role="combobox"]:not(input)',
|
|
14874
14897
|
// Container combobox, not input
|
|
14898
|
+
'[role="radio"]',
|
|
14899
|
+
'[role="checkbox"]',
|
|
14875
14900
|
'[aria-haspopup="listbox"]',
|
|
14876
14901
|
// Class-based patterns
|
|
14877
14902
|
'[class*="select-container"]',
|
|
14878
14903
|
'[class*="dropdown-container"]',
|
|
14879
|
-
'[class*="picker"]'
|
|
14904
|
+
'[class*="picker"]',
|
|
14905
|
+
'[class*="radio-wrapper"]',
|
|
14906
|
+
'[class*="checkbox-wrapper"]'
|
|
14880
14907
|
];
|
|
14881
14908
|
let n = e.parentElement, i = 0;
|
|
14882
14909
|
for (; n && i < 6; ) {
|
|
14883
|
-
|
|
14910
|
+
if (n.tagName === "LABEL") {
|
|
14911
|
+
const d = n.getBoundingClientRect();
|
|
14912
|
+
if (d.width > 10 && d.height > 10)
|
|
14913
|
+
return console.log(`[HybridTargetResolver] → Found clickable container (label): ${n.tagName}.${(o = n.className) == null ? void 0 : o.split(" ").slice(0, 2).join(".")}`), n;
|
|
14914
|
+
}
|
|
14915
|
+
for (const d of t)
|
|
14884
14916
|
try {
|
|
14885
|
-
if (n.matches(
|
|
14886
|
-
const
|
|
14887
|
-
if (
|
|
14888
|
-
return console.log(`[HybridTargetResolver] → Found clickable container: ${n.tagName}.${(
|
|
14917
|
+
if (n.matches(d)) {
|
|
14918
|
+
const u = n.getBoundingClientRect();
|
|
14919
|
+
if (u.width > 10 && u.height > 10)
|
|
14920
|
+
return console.log(`[HybridTargetResolver] → Found clickable container: ${n.tagName}.${(s = n.className) == null ? void 0 : s.split(" ").slice(0, 2).join(".")}`), n;
|
|
14889
14921
|
}
|
|
14890
14922
|
} catch {
|
|
14891
14923
|
}
|
|
14892
|
-
const
|
|
14893
|
-
if (
|
|
14894
|
-
const
|
|
14895
|
-
if (
|
|
14924
|
+
const c = n.getBoundingClientRect();
|
|
14925
|
+
if (c.width > 100 && c.height > 30) {
|
|
14926
|
+
const d = n.getAttribute("role"), u = n.onclick !== null || n.getAttribute("onclick") !== null || n.classList.contains("clickable");
|
|
14927
|
+
if (d === "button" || d === "combobox" || u || // React Select container pattern
|
|
14896
14928
|
n.querySelector('input[role="combobox"]') === e)
|
|
14897
|
-
return console.log(`[HybridTargetResolver] → Found clickable container (generic): ${n.tagName}.${(
|
|
14929
|
+
return console.log(`[HybridTargetResolver] → Found clickable container (generic): ${n.tagName}.${(a = n.className) == null ? void 0 : a.split(" ").slice(0, 2).join(".")}`), n;
|
|
14898
14930
|
}
|
|
14899
14931
|
n = n.parentElement, i++;
|
|
14900
14932
|
}
|
|
@@ -14979,7 +15011,7 @@ const St = class St {
|
|
|
14979
15011
|
* Delegates to shared dropdown-helpers module.
|
|
14980
15012
|
*/
|
|
14981
15013
|
static findDropdownOptionByText(e) {
|
|
14982
|
-
return _n(e,
|
|
15014
|
+
return _n(e, dt.isVisible);
|
|
14983
15015
|
}
|
|
14984
15016
|
/**
|
|
14985
15017
|
* Find the remove button (X) for a multi-select chip by its text content.
|
|
@@ -15298,7 +15330,7 @@ const St = class St {
|
|
|
15298
15330
|
const le = Q.toLowerCase(), Z = o.length / le.length, Te = U.getBoundingClientRect();
|
|
15299
15331
|
if (Te.width === 0 || Te.height === 0 || this.isDropdownDisplayValue(U)) continue;
|
|
15300
15332
|
let ve = Z;
|
|
15301
|
-
if (new RegExp(`\\b${
|
|
15333
|
+
if (new RegExp(`\\b${dt.escapeRegex(o)}\\b`, "i").test(le))
|
|
15302
15334
|
ve += 0.5;
|
|
15303
15335
|
else if (Z < 0.5)
|
|
15304
15336
|
if (X) {
|
|
@@ -15435,7 +15467,7 @@ const St = class St {
|
|
|
15435
15467
|
let c = null, d = null, u = 0;
|
|
15436
15468
|
for (const h of n) {
|
|
15437
15469
|
const g = h;
|
|
15438
|
-
if (g.id === "root" || g.id === "app" || g.tagName === "BODY" || g.tagName === "HTML" || !
|
|
15470
|
+
if (g.id === "root" || g.id === "app" || g.tagName === "BODY" || g.tagName === "HTML" || !dt.isVisible(g) || (((i = g.innerText) == null ? void 0 : i.length) || 0) > 200)
|
|
15439
15471
|
continue;
|
|
15440
15472
|
const y = ((o = g.innerText) == null ? void 0 : o.trim()) || "", m = y.toLowerCase();
|
|
15441
15473
|
if (m === a) {
|
|
@@ -15553,8 +15585,8 @@ const St = class St {
|
|
|
15553
15585
|
}
|
|
15554
15586
|
};
|
|
15555
15587
|
// Static reference to DOMIntrospector for bounding box lookups
|
|
15556
|
-
M(
|
|
15557
|
-
let de =
|
|
15588
|
+
M(dt, "domIntrospector", null);
|
|
15589
|
+
let de = dt;
|
|
15558
15590
|
class xh {
|
|
15559
15591
|
constructor() {
|
|
15560
15592
|
M(this, "confirmationSound");
|
|
@@ -17195,7 +17227,7 @@ class Ch {
|
|
|
17195
17227
|
* Send current page metadata
|
|
17196
17228
|
*/
|
|
17197
17229
|
sendPageMetadata() {
|
|
17198
|
-
const e =
|
|
17230
|
+
const e = ut();
|
|
17199
17231
|
this.sdk.sendMetadata({
|
|
17200
17232
|
type: "page_metadata",
|
|
17201
17233
|
url: e,
|
|
@@ -17414,7 +17446,7 @@ class Th {
|
|
|
17414
17446
|
} catch (t) {
|
|
17415
17447
|
console.warn("[NavigationCompleteDetector] Error waiting for page stable:", t);
|
|
17416
17448
|
}
|
|
17417
|
-
this.urlChangeCallback && this.urlChangeCallback(
|
|
17449
|
+
this.urlChangeCallback && this.urlChangeCallback(ut());
|
|
17418
17450
|
}
|
|
17419
17451
|
});
|
|
17420
17452
|
this.lastUrl = window.location.href, this.loadingDetector = new fc(), this.domStabilityChecker = new Eh();
|
|
@@ -17910,7 +17942,7 @@ class mc extends fh {
|
|
|
17910
17942
|
console.log("[OnboardingSDK] 📍 Initialized in minimized state - user clicks to connect"), this._isMinimized = !0, this.agentState = "idle", this.isInitialized = !0, this.renderReactUI(), this.emit("ready");
|
|
17911
17943
|
return;
|
|
17912
17944
|
}
|
|
17913
|
-
this.transport = new
|
|
17945
|
+
this.transport = new gt(), this.pipecatClient = new Qe({
|
|
17914
17946
|
transport: this.transport,
|
|
17915
17947
|
enableMic: this.textModeEnabled ? !1 : this.config.enableAudio !== !1,
|
|
17916
17948
|
enableCam: this.config.enableVideo || !1,
|
|
@@ -18142,7 +18174,7 @@ class mc extends fh {
|
|
|
18142
18174
|
}
|
|
18143
18175
|
this.connectInFlight = !0;
|
|
18144
18176
|
try {
|
|
18145
|
-
this.agentState = "connecting", this._isMinimized = !1, this.setConnectionProgress("initializing", "Initializing...", 10), this.transport = new
|
|
18177
|
+
this.agentState = "connecting", this._isMinimized = !1, this.setConnectionProgress("initializing", "Initializing...", 10), this.transport = new gt(), this.setConnectionProgress("authenticating", "Authenticating...", 30), this.pipecatClient = new Qe({
|
|
18146
18178
|
transport: this.transport,
|
|
18147
18179
|
enableMic: this.textModeEnabled ? !1 : this.config.enableAudio !== !1,
|
|
18148
18180
|
enableCam: this.config.enableVideo || !1,
|
|
@@ -18413,7 +18445,7 @@ class mc extends fh {
|
|
|
18413
18445
|
break;
|
|
18414
18446
|
case "click":
|
|
18415
18447
|
console.log("[OnboardingSDK] 👆 Executing CLICK action with Floe cursor");
|
|
18416
|
-
const i =
|
|
18448
|
+
const i = ut();
|
|
18417
18449
|
if (t.target.optionText) {
|
|
18418
18450
|
console.log("[OnboardingSDK] 🎯 Dropdown option selection detected:", t.target.optionText), await this.handleDropdownOptionClick(t);
|
|
18419
18451
|
break;
|
|
@@ -18494,7 +18526,7 @@ class mc extends fh {
|
|
|
18494
18526
|
mismatchDetails: x || void 0,
|
|
18495
18527
|
previousUrl: i,
|
|
18496
18528
|
// For server-side URL sanity check
|
|
18497
|
-
currentUrl:
|
|
18529
|
+
currentUrl: ut(),
|
|
18498
18530
|
// Current URL after click
|
|
18499
18531
|
timestamp: Date.now()
|
|
18500
18532
|
}), w ? console.warn("[OnboardingSDK] ⚠️ Click mismatch reported to server") : console.log("[OnboardingSDK] 📤 Sent bot_action_complete for auto-advance");
|
|
@@ -18641,7 +18673,7 @@ class mc extends fh {
|
|
|
18641
18673
|
target: Kn(c),
|
|
18642
18674
|
success: y,
|
|
18643
18675
|
previousUrl: Kn(d),
|
|
18644
|
-
currentUrl:
|
|
18676
|
+
currentUrl: ut(),
|
|
18645
18677
|
...y ? {} : { error: "Navigation timed out waiting for URL change" },
|
|
18646
18678
|
timestamp: u
|
|
18647
18679
|
});
|
|
@@ -18745,7 +18777,7 @@ class mc extends fh {
|
|
|
18745
18777
|
}
|
|
18746
18778
|
return;
|
|
18747
18779
|
}
|
|
18748
|
-
const i =
|
|
18780
|
+
const i = ut(), o = i === n.resolvedUrl, s = {
|
|
18749
18781
|
type: "bot_action_complete",
|
|
18750
18782
|
action: "navigate",
|
|
18751
18783
|
target: n.resolvedUrl,
|
|
@@ -19673,7 +19705,7 @@ class mc extends fh {
|
|
|
19673
19705
|
const t = this.config.enableScreenCapture ? await this.capture.captureWithRedaction() : void 0, n = this.extractPageStructure();
|
|
19674
19706
|
return {
|
|
19675
19707
|
screenshot: t,
|
|
19676
|
-
url:
|
|
19708
|
+
url: ut(),
|
|
19677
19709
|
structure: n,
|
|
19678
19710
|
timestamp: Date.now()
|
|
19679
19711
|
};
|
|
@@ -19705,7 +19737,7 @@ class mc extends fh {
|
|
|
19705
19737
|
});
|
|
19706
19738
|
}), {
|
|
19707
19739
|
title: document.title,
|
|
19708
|
-
url:
|
|
19740
|
+
url: ut(),
|
|
19709
19741
|
elements: t,
|
|
19710
19742
|
viewport: {
|
|
19711
19743
|
width: window.innerWidth,
|