@myinterview/chatbot 0.1.43--test-observer-2 → 0.1.43--test-observer-4
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/index.js +163 -161
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._myinterview-chatbot--component-mode_1hygk_1{width:100%;height:100%}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
import * as Bl from "react";
|
|
3
|
-
import M, { version as jse, createContext as Db, forwardRef as CT, useRef as dt, useEffect as
|
|
3
|
+
import M, { version as jse, createContext as Db, forwardRef as CT, useRef as dt, useEffect as At, useState as St, useLayoutEffect as Eu, useImperativeHandle as xT, useDebugValue as A_, useContext as zl, createElement as Bm, useCallback as Ut, useMemo as qi, memo as NW, useTransition as Lse } from "react";
|
|
4
4
|
import { createRoot as Use } from "react-dom/client";
|
|
5
5
|
import { jsxs as kt, jsx as Ee, Fragment as md } from "react/jsx-runtime";
|
|
6
6
|
import { createPortal as Mb, flushSync as Fse } from "react-dom";
|
|
@@ -15530,7 +15530,7 @@ function sS(e) {
|
|
|
15530
15530
|
}
|
|
15531
15531
|
function k2e(e) {
|
|
15532
15532
|
var t = CT(function(r, n) {
|
|
15533
|
-
var i, o, a = r.mode, s = r.delegatesFocus, c = r.styleSheets, u = r.ssr, l = r.children, d = LK(r, ["mode", "delegatesFocus", "styleSheets", "ssr", "children"]), f = (o = dt((i = n) && i.current),
|
|
15533
|
+
var i, o, a = r.mode, s = r.delegatesFocus, c = r.styleSheets, u = r.ssr, l = r.children, d = LK(r, ["mode", "delegatesFocus", "styleSheets", "ssr", "children"]), f = (o = dt((i = n) && i.current), At(function() {
|
|
15534
15534
|
i && (i.current = o.current);
|
|
15535
15535
|
}, [i]), o), p = St(null), h = $2e(p, 2), m = h[0], y = h[1], g = "node_".concat(a).concat(s);
|
|
15536
15536
|
return Eu(function() {
|
|
@@ -59982,7 +59982,7 @@ const xGe = (e) => Math.abs(Date.now() - e) < nVe, AGe = (e, t) => cr.fromMillis
|
|
|
59982
59982
|
console.log("entry.isIntersecting", c.isIntersecting), c.isIntersecting && e(c);
|
|
59983
59983
|
}, { ...t, ...a && { root: a } }), n.current.observe(r.current), console.log("observer", n.current);
|
|
59984
59984
|
};
|
|
59985
|
-
return
|
|
59985
|
+
return At(() => () => {
|
|
59986
59986
|
var o;
|
|
59987
59987
|
(o = n.current) == null || o.disconnect(), r.current = null;
|
|
59988
59988
|
}, []), i;
|
|
@@ -59996,7 +59996,7 @@ const xGe = (e) => Math.abs(Date.now() - e) < nVe, AGe = (e, t) => cr.fromMillis
|
|
|
59996
59996
|
var p, h;
|
|
59997
59997
|
return [f.sid, ((h = (p = a[f.sid]) == null ? void 0 : p[0]) == null ? void 0 : h.body) || ""];
|
|
59998
59998
|
})), [e, a]), l = qi(() => e.filter((f) => s.get(f.sid)), [e, s]);
|
|
59999
|
-
|
|
59999
|
+
At(() => {
|
|
60000
60000
|
e.length && Promise.all(e.map((f) => {
|
|
60001
60001
|
var p;
|
|
60002
60002
|
return (p = Ac.get(f.sid)) == null ? void 0 : p.getUnreadMessagesCount().then((h) => h);
|
|
@@ -82096,7 +82096,7 @@ const xGe = (e) => Math.abs(Date.now() - e) < nVe, AGe = (e, t) => cr.fromMillis
|
|
|
82096
82096
|
var h;
|
|
82097
82097
|
(h = l.current) == null || h.scrollTo({ top: 0 });
|
|
82098
82098
|
}, []);
|
|
82099
|
-
return
|
|
82099
|
+
return At(() => p(), [a, p]), At(() => {
|
|
82100
82100
|
e && (p(), n(""), o(Ld[0].id), s(ph[Ld[0].label]));
|
|
82101
82101
|
}, [e, p]), Ee("div", { className: Mr("myinterview-chatbot-emoji-picker myinterview-chatbot-no-select", { "myinterview-chatbot-emoji-picker--open": e }), children: kt("div", { className: "myinterview-chatbot-emoji-picker__wrapper", children: [Ee("div", { className: "myinterview-chatbot-emoji-picker__tabs", children: Ee(pre, { tabs: Ld, currentTabId: i, textSize: "H4", gap: 4, onSelectTab: f }) }), kt("div", { className: "myinterview-chatbot-emoji-picker__search", children: [Ee("input", { className: "myinterview-chatbot-emoji-picker__input", type: "search", placeholder: "Search", value: r, onChange: (h) => d(h.target.value) }), r && Ee("div", { className: "myinterview-chatbot-emoji-picker__clear", onClick: () => d(""), role: "presentation", children: Ee(fre, {}) })] }), Ee("div", { ref: l, className: "myinterview-chatbot-emoji-picker__list", children: a.map((h) => Ee("span", { onClick: () => t(h), role: "presentation", children: h.emoji }, h.emoji)) })] }) });
|
|
82102
82102
|
}, gne = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3ZhciBhPShuPT4obi5JTklUPSJpbml0IixuLlNFVD0ic2V0IixuLkNMRUFSPSJjbGVhciIsbikpKGF8fHt9KTtsZXQgdD1udWxsLGU9bnVsbCxjPTQwO2NvbnN0IHI9MjAsZj17W2EuSU5JVF06bj0+e24uY2FudmFzJiYodD1uLmNhbnZhcyxjPU1hdGgubWluKHQud2lkdGgsdC5oZWlnaHQpLzUsZT10LmdldENvbnRleHQoIjJkIiksZS5maWxsU3R5bGU9IiM2NjkwZmYiLGUuc2NhbGUoMSwxKSl9LFthLlNFVF06KHtkYXRhOm59KT0+e2lmKCF0fHwhZXx8IW4pcmV0dXJuO2UuY2xlYXJSZWN0KDAsMCx0LndpZHRoLHQuaGVpZ2h0KTtjb25zdCBoPW4ucmVkdWNlKChnLHUpPT5nK3UsMCkvbi5sZW5ndGgscz1NYXRoLnJvdW5kKGgvMjU1KjEwMCk7ZS5iZWdpblBhdGgoKTtjb25zdCBsPU1hdGgubWluKGMrcy8yLHQud2lkdGgvMi1yKTtlLmZpbGxTdHlsZT0iIzY2OTBmZjU1IixlLmFyYyh0LndpZHRoLzIsdC5oZWlnaHQvMixsKzUsMCwyKk1hdGguUEkpLGUuZmlsbCgpLGUuYmVnaW5QYXRoKCksZS5maWxsU3R5bGU9IiM2NjkwZmYiLGUuYXJjKHQud2lkdGgvMix0LmhlaWdodC8yLGwsMCwyKk1hdGguUEkpLGUuZmlsbCgpfSxbYS5DTEVBUl06KCk9PnshdHx8IWV8fGUuY2xlYXJSZWN0KDAsMCx0LndpZHRoLHQuaGVpZ2h0KX19O29ubWVzc2FnZT1uPT57Y29uc3R7YWN0aW9uOmkscGF5bG9hZDpofT1uLmRhdGE7ZltpXShoKX19KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1hdWRpb1Zpc3VhbGl6ZXIud29ya2VyLURhWXhrNEVLLmpzLm1hcAo=", HGe = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), BF = typeof window < "u" && window.Blob && new Blob([HGe(gne)], { type: "text/javascript;charset=utf-8" });
|
|
@@ -82198,7 +82198,7 @@ const qGe = 50, GGe = () => {
|
|
|
82198
82198
|
}
|
|
82199
82199
|
t.current.onstop = w, t.current.stop(), c(null);
|
|
82200
82200
|
}, []);
|
|
82201
|
-
return
|
|
82201
|
+
return At(() => (h.current = new WGe(), () => {
|
|
82202
82202
|
var v;
|
|
82203
82203
|
w(), c(null), (v = h.current) == null || v.terminate();
|
|
82204
82204
|
}), []), { startRecording: E, stopRecording: _, clearRecording: S, isRecording: n, recordingTime: y, isCheckingPermissions: o, audioBlob: s };
|
|
@@ -82239,7 +82239,7 @@ const qGe = 50, GGe = () => {
|
|
|
82239
82239
|
}, [y]), w = () => {
|
|
82240
82240
|
f(!1), g();
|
|
82241
82241
|
};
|
|
82242
|
-
|
|
82242
|
+
At(() => (n.current = (URL || webkitURL).createObjectURL(e), (async () => {
|
|
82243
82243
|
const A = await e.arrayBuffer(), B = await new AudioContext().decodeAudioData(A);
|
|
82244
82244
|
l(B.duration), o.current = B.getChannelData(0);
|
|
82245
82245
|
})(), i.current = new Audio(n.current), i.current.addEventListener("playing", b), i.current.addEventListener("pause", w), () => {
|
|
@@ -82377,11 +82377,11 @@ const qGe = 50, GGe = () => {
|
|
|
82377
82377
|
}, _ = () => {
|
|
82378
82378
|
p((v) => ({ ...v, transform: "translateY(0px)", transition: void 0 })), Math.abs(y.current) > aKe && b(), m.current = null, y.current = 0;
|
|
82379
82379
|
};
|
|
82380
|
-
|
|
82380
|
+
At(() => {
|
|
82381
82381
|
c && (p({ width: "100%", height: "100%", left: "0px", top: "0px", borderRadius: "0px 0px 0px 0px" }), d(!0));
|
|
82382
|
-
}, [c]),
|
|
82382
|
+
}, [c]), At(() => {
|
|
82383
82383
|
!a && (n == null || n());
|
|
82384
|
-
}, [a]),
|
|
82384
|
+
}, [a]), At(() => {
|
|
82385
82385
|
if (!e)
|
|
82386
82386
|
return;
|
|
82387
82387
|
if (r) {
|
|
@@ -82395,7 +82395,7 @@ const qGe = 50, GGe = () => {
|
|
|
82395
82395
|
const C = O.toDataURL();
|
|
82396
82396
|
o(C), v.remove();
|
|
82397
82397
|
}, v.src = e;
|
|
82398
|
-
}, [e]),
|
|
82398
|
+
}, [e]), At(() => (document.addEventListener("keydown", $), () => {
|
|
82399
82399
|
document.removeEventListener("keydown", $);
|
|
82400
82400
|
}), []);
|
|
82401
82401
|
const S = qi(() => Ee("img", { className: "myinterview-chatbot-media-image__img", style: { ...c && f }, src: i || "", alt: t, onLoad: () => s(!1), onClick: g, onTransitionEnd: w, ...c && {
|
|
@@ -82405,21 +82405,21 @@ const qGe = 50, GGe = () => {
|
|
|
82405
82405
|
return Ee("div", { className: "myinterview-chatbot-media-image", children: e && (c ? Mb(kt("div", { className: Mr("myinterview-chatbot-media-image__preview", { "myinterview-chatbot-media-image__preview--previewing": l }), role: "presentation", children: [Ee("style", { children: iKe }), Ee("style", { children: oKe }), Ee("style", { children: nKe }), kt("div", { className: "myinterview-chatbot-media-image__preview-top", children: [as && Ee(Em, { classNames: "myinterview-chatbot-media-image__preview-back-button", onClick: b }), Ee(Nn, { size: "H5", className: "myinterview-chatbot-media-image__preview-title", children: t }), !as && Ee(op, { classNames: "myinterview-chatbot-media-image__preview-close-button", onClick: b })] }), S] }), document.body) : S) });
|
|
82406
82406
|
}, KI = (e) => e.split("/")[0], sKe = (e) => ["image", "video"].includes(KI(e)), cKe = ({ mediaUrl: e, onMediaReady: t }) => {
|
|
82407
82407
|
const [r, n] = St(!0);
|
|
82408
|
-
return
|
|
82408
|
+
return At(() => {
|
|
82409
82409
|
!r && t();
|
|
82410
82410
|
}, [r]), Ee("div", { className: "myinterview-chatbot-media-video", children: e && Ee("video", { className: "myinterview-chatbot-media-video__video", src: e, onCanPlay: () => n(!1), hidden: r, controls: !0, muted: !0, autoPlay: !0, loop: !0 }) });
|
|
82411
82411
|
}, uKe = ({ mediaUrl: e, transcript: t = "", onMediaReady: r }) => {
|
|
82412
82412
|
const [n, i] = St(null);
|
|
82413
|
-
return
|
|
82413
|
+
return At(() => {
|
|
82414
82414
|
e && fetch(e).then((o) => o.blob().then(i));
|
|
82415
|
-
}, [e]),
|
|
82415
|
+
}, [e]), At(() => {
|
|
82416
82416
|
n && r();
|
|
82417
82417
|
}, [n]), kt("div", { className: "myinterview-chatbot-media-audio", children: [n && Ee(bne, { audioBlob: n, classes: "myinterview-chatbot-media-audio__player" }), Ee(Nn, { className: "myinterview-chatbot-media-audio__transcirpt", children: t })] });
|
|
82418
82418
|
}, lKe = () => kt("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", width: "800px", height: "800px", viewBox: "0 -8 72 72", id: "Layer_1", "data-name": "Layer 1", children: [Ee("title", { children: "file-o" }), Ee("path", { d: "M46.92,0H18.74A3.44,3.44,0,0,0,15.3,3.43V52.57A3.44,3.44,0,0,0,18.74,56H53.26a3.44,3.44,0,0,0,3.44-3.43V10.62Zm.81,5.14L52,9.79H47.73Zm6.08,47.43a.55.55,0,0,1-.55.55H18.74a.55.55,0,0,1-.55-.55V3.43a.54.54,0,0,1,.55-.54H44.85v8.35a1.45,1.45,0,0,0,1.44,1.44h7.52Z" })] }), dKe = () => kt("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [Ee("path", { d: "M21 15V19C21 19.5304 20.7893 20.0391 20.4142 20.4142C20.0391 20.7893 19.5304 21 19 21H5C4.46957 21 3.96086 20.7893 3.58579 20.4142C3.21071 20.0391 3 19.5304 3 19V15", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), Ee("path", { d: "M7 10L12 15L17 10", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), Ee("path", { d: "M12 15V3", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })] }), fKe = ({ mediaUrl: e, title: t, onMediaReady: r }) => {
|
|
82419
82419
|
const [n, i] = St(null);
|
|
82420
|
-
|
|
82420
|
+
At(() => {
|
|
82421
82421
|
e && fetch(e).then((a) => a.blob().then(i));
|
|
82422
|
-
}, [e]),
|
|
82422
|
+
}, [e]), At(() => {
|
|
82423
82423
|
n && r();
|
|
82424
82424
|
}, [n]);
|
|
82425
82425
|
const o = () => {
|
|
@@ -82435,7 +82435,7 @@ const qGe = 50, GGe = () => {
|
|
|
82435
82435
|
video: cKe
|
|
82436
82436
|
}), hKe = ({ media: e, mediaDimensions: t, transcript: r, onMediaReady: n }) => {
|
|
82437
82437
|
const [i, o] = St(null);
|
|
82438
|
-
|
|
82438
|
+
At(() => {
|
|
82439
82439
|
e && Kze(e.sid || "").getContentTemporaryUrl().then(o);
|
|
82440
82440
|
}, [e]);
|
|
82441
82441
|
const a = qi(() => {
|
|
@@ -83371,7 +83371,7 @@ function r$(e) {
|
|
|
83371
83371
|
}
|
|
83372
83372
|
function UKe(e) {
|
|
83373
83373
|
var t = CT(function(r, n) {
|
|
83374
|
-
var i, o, a = r.mode, s = r.delegatesFocus, c = r.styleSheets, u = r.ssr, l = r.children, d = jKe(r, ["mode", "delegatesFocus", "styleSheets", "ssr", "children"]), f = (o = dt((i = n) && i.current),
|
|
83374
|
+
var i, o, a = r.mode, s = r.delegatesFocus, c = r.styleSheets, u = r.ssr, l = r.children, d = jKe(r, ["mode", "delegatesFocus", "styleSheets", "ssr", "children"]), f = (o = dt((i = n) && i.current), At(function() {
|
|
83375
83375
|
i && (i.current = o.current);
|
|
83376
83376
|
}, [i]), o), p = St(null), h = DKe(p, 2), m = h[0], y = h[1], g = "node_".concat(a).concat(s);
|
|
83377
83377
|
return Eu(function() {
|
|
@@ -84855,7 +84855,7 @@ const WYe = (e) => {
|
|
|
84855
84855
|
var m, y, g;
|
|
84856
84856
|
return i && !(!((m = d.current) === null || m === void 0) && m.contains((g = h.path || ((y = h.composedPath) === null || y === void 0 ? void 0 : y.call(h))) === null || g === void 0 ? void 0 : g[0])) && s();
|
|
84857
84857
|
};
|
|
84858
|
-
|
|
84858
|
+
At(() => (document.addEventListener("click", f), () => document.removeEventListener("click", f)), []), At(() => {
|
|
84859
84859
|
d.current && l(window.getComputedStyle(d.current).zIndex);
|
|
84860
84860
|
}, [d.current]);
|
|
84861
84861
|
const p = Pf({ "myinterview-modal-wrapper": !0, "myinterview-modal-wrapper--fullscreen": r });
|
|
@@ -89935,7 +89935,7 @@ function MJe(e) {
|
|
|
89935
89935
|
var f = a.subscribe(d).unsubscribe;
|
|
89936
89936
|
return f;
|
|
89937
89937
|
}, [a]), l = tR.exports.useSyncExternalStoreWithSelector(u, s, s, DJe, c);
|
|
89938
|
-
return
|
|
89938
|
+
return At(function() {
|
|
89939
89939
|
var d = o.state;
|
|
89940
89940
|
return a.start(d ? es.create(d) : void 0), function() {
|
|
89941
89941
|
a.stop(), a.status = Ri.NotStarted;
|
|
@@ -90361,7 +90361,7 @@ function g8(e) {
|
|
|
90361
90361
|
}
|
|
90362
90362
|
var iQe = function(t, r) {
|
|
90363
90363
|
var n = dt();
|
|
90364
|
-
return
|
|
90364
|
+
return At(function() {
|
|
90365
90365
|
n.current = r ? n.current : t;
|
|
90366
90366
|
}, [t, r]), n.current;
|
|
90367
90367
|
};
|
|
@@ -90384,7 +90384,7 @@ function Xn(e) {
|
|
|
90384
90384
|
return a.getFixedT(null, u.nsMode === "fallback" ? f : f[0], d);
|
|
90385
90385
|
}
|
|
90386
90386
|
var m = St(h), y = nQe(m, 2), g = y[0], b = y[1], w = f.join(), $ = iQe(w), E = dt(!0);
|
|
90387
|
-
|
|
90387
|
+
At(function() {
|
|
90388
90388
|
var v = u.bindI18n, O = u.bindI18nStore;
|
|
90389
90389
|
E.current = !0, !p && !l && Cz(a, f, function() {
|
|
90390
90390
|
E.current && b(h);
|
|
@@ -90401,7 +90401,7 @@ function Xn(e) {
|
|
|
90401
90401
|
};
|
|
90402
90402
|
}, [a, w]);
|
|
90403
90403
|
var _ = dt(!0);
|
|
90404
|
-
|
|
90404
|
+
At(function() {
|
|
90405
90405
|
E.current && !_.current && b(h), _.current = !1;
|
|
90406
90406
|
}, [a, d]);
|
|
90407
90407
|
var S = [g, a, p];
|
|
@@ -92749,7 +92749,7 @@ var k$ = { exports: {} };
|
|
|
92749
92749
|
}) : n.platform = S;
|
|
92750
92750
|
}).call(Fh);
|
|
92751
92751
|
})(k$, k$.exports);
|
|
92752
|
-
var pd = k$.exports, zQe = "2.0.0-beta.1", Om = "", Qz = "?", I$ = "function", Ll = "undefined", km = "object", Ql = "string", Mv = "major",
|
|
92752
|
+
var pd = k$.exports, zQe = "2.0.0-beta.1", Om = "", Qz = "?", I$ = "function", Ll = "undefined", km = "object", Ql = "string", Mv = "major", Nt = "model", xt = "name", Pt = "type", Bt = "vendor", Mt = "version", ha = "architecture", O0 = "console", Br = "mobile", Ti = "tablet", Ra = "smarttv", th = "wearable", R$ = "embedded", Zz = "user-agent", C$ = 350, fR = "brands", Jd = "formFactor", pR = "fullVersionList", zh = "platform", hR = "platformVersion", $w = "bitness", Td = "sec-ch-ua", VQe = Td + "-full-version-list", HQe = Td + "-arch", WQe = Td + "-" + $w, qQe = Td + "-form-factor", GQe = Td + "-" + Br, KQe = Td + "-" + Nt, kie = Td + "-" + zh, YQe = kie + "-version", Iie = [fR, pR, Br, Nt, zh, hR, ha, Jd, $w], xa = "browser", fu = "cpu", gc = "device", gu = "engine", rs = "os", Vh = "result", C2 = "Amazon", Z1 = "Apple", eV = "ASUS", tV = "BlackBerry", k0 = "Google", rV = "Huawei", _8 = "LG", b8 = "Microsoft", nV = "Motorola", w8 = "Samsung", iV = "Sharp", x2 = "Sony", S8 = "Xiaomi", E8 = "Zebra", zp = "Mobile ", e0 = " Browser", A2 = "Chrome", XQe = "Edge", t0 = "Firefox", P2 = "Opera", oV = "Facebook", Rie = "Windows", ma = typeof window !== Ll && window.navigator ? window.navigator : void 0, Rl = ma && ma.userAgentData ? ma.userAgentData : void 0, JQe = function(e, t) {
|
|
92753
92753
|
var r = {};
|
|
92754
92754
|
for (var n in e)
|
|
92755
92755
|
r[n] = t[n] && t[n].length % 2 === 0 ? t[n].concat(e[n]) : e[n];
|
|
@@ -93167,45 +93167,45 @@ var pd = k$.exports, zQe = "2.0.0-beta.1", Om = "", Qz = "?", I$ = "function", L
|
|
|
93167
93167
|
// Samsung
|
|
93168
93168
|
/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i
|
|
93169
93169
|
],
|
|
93170
|
-
[
|
|
93170
|
+
[Nt, [Bt, w8], [Pt, Ti]],
|
|
93171
93171
|
[
|
|
93172
93172
|
/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,
|
|
93173
93173
|
/samsung[- ]([-\w]+)/i,
|
|
93174
93174
|
/sec-(sgh\w+)/i
|
|
93175
93175
|
],
|
|
93176
|
-
[
|
|
93176
|
+
[Nt, [Bt, w8], [Pt, Br]],
|
|
93177
93177
|
[
|
|
93178
93178
|
// Apple
|
|
93179
93179
|
/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i
|
|
93180
93180
|
// iPod/iPhone
|
|
93181
93181
|
],
|
|
93182
|
-
[
|
|
93182
|
+
[Nt, [Bt, Z1], [Pt, Br]],
|
|
93183
93183
|
[
|
|
93184
93184
|
/\((ipad);[-\w\),; ]+apple/i,
|
|
93185
93185
|
// iPad
|
|
93186
93186
|
/applecoremedia\/[\w\.]+ \((ipad)/i,
|
|
93187
93187
|
/\b(ipad)\d\d?,\d\d?[;\]].+ios/i
|
|
93188
93188
|
],
|
|
93189
|
-
[
|
|
93189
|
+
[Nt, [Bt, Z1], [Pt, Ti]],
|
|
93190
93190
|
[
|
|
93191
93191
|
/(macintosh);/i
|
|
93192
93192
|
],
|
|
93193
|
-
[
|
|
93193
|
+
[Nt, [Bt, Z1]],
|
|
93194
93194
|
[
|
|
93195
93195
|
// Sharp
|
|
93196
93196
|
/\b(sh-?[altvz]?\d\d[a-ekm]?)/i
|
|
93197
93197
|
],
|
|
93198
|
-
[
|
|
93198
|
+
[Nt, [Bt, iV], [Pt, Br]],
|
|
93199
93199
|
[
|
|
93200
93200
|
// Huawei
|
|
93201
93201
|
/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i
|
|
93202
93202
|
],
|
|
93203
|
-
[
|
|
93203
|
+
[Nt, [Bt, rV], [Pt, Ti]],
|
|
93204
93204
|
[
|
|
93205
93205
|
/(?:huawei|honor)([-\w ]+)[;\)]/i,
|
|
93206
93206
|
/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i
|
|
93207
93207
|
],
|
|
93208
|
-
[
|
|
93208
|
+
[Nt, [Bt, rV], [Pt, Br]],
|
|
93209
93209
|
[
|
|
93210
93210
|
// Xiaomi
|
|
93211
93211
|
/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,
|
|
@@ -93221,92 +93221,92 @@ var pd = k$.exports, zQe = "2.0.0-beta.1", Om = "", Qz = "?", I$ = "function", L
|
|
|
93221
93221
|
/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i
|
|
93222
93222
|
// Xiaomi Mi
|
|
93223
93223
|
],
|
|
93224
|
-
[[
|
|
93224
|
+
[[Nt, /_/g, " "], [Bt, S8], [Pt, Br]],
|
|
93225
93225
|
[
|
|
93226
93226
|
/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,
|
|
93227
93227
|
// Redmi Pad
|
|
93228
93228
|
/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i
|
|
93229
93229
|
// Mi Pad tablets
|
|
93230
93230
|
],
|
|
93231
|
-
[[
|
|
93231
|
+
[[Nt, /_/g, " "], [Bt, S8], [Pt, Ti]],
|
|
93232
93232
|
[
|
|
93233
93233
|
// OPPO
|
|
93234
93234
|
/; (\w+) bui.+ oppo/i,
|
|
93235
93235
|
/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i
|
|
93236
93236
|
],
|
|
93237
|
-
[
|
|
93237
|
+
[Nt, [Bt, "OPPO"], [Pt, Br]],
|
|
93238
93238
|
[
|
|
93239
93239
|
// Vivo
|
|
93240
93240
|
/vivo (\w+)(?: bui|\))/i,
|
|
93241
93241
|
/\b(v[12]\d{3}\w?[at])(?: bui|;)/i
|
|
93242
93242
|
],
|
|
93243
|
-
[
|
|
93243
|
+
[Nt, [Bt, "Vivo"], [Pt, Br]],
|
|
93244
93244
|
[
|
|
93245
93245
|
// Realme
|
|
93246
93246
|
/\b(rmx[1-3]\d{3})(?: bui|;|\))/i
|
|
93247
93247
|
],
|
|
93248
|
-
[
|
|
93248
|
+
[Nt, [Bt, "Realme"], [Pt, Br]],
|
|
93249
93249
|
[
|
|
93250
93250
|
// Motorola
|
|
93251
93251
|
/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,
|
|
93252
93252
|
/\bmot(?:orola)?[- ](\w*)/i,
|
|
93253
93253
|
/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i
|
|
93254
93254
|
],
|
|
93255
|
-
[
|
|
93255
|
+
[Nt, [Bt, nV], [Pt, Br]],
|
|
93256
93256
|
[
|
|
93257
93257
|
/\b(mz60\d|xoom[2 ]{0,2}) build\//i
|
|
93258
93258
|
],
|
|
93259
|
-
[
|
|
93259
|
+
[Nt, [Bt, nV], [Pt, Ti]],
|
|
93260
93260
|
[
|
|
93261
93261
|
// LG
|
|
93262
93262
|
/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i
|
|
93263
93263
|
],
|
|
93264
|
-
[
|
|
93264
|
+
[Nt, [Bt, _8], [Pt, Ti]],
|
|
93265
93265
|
[
|
|
93266
93266
|
/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,
|
|
93267
93267
|
/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,
|
|
93268
93268
|
/\blg-?([\d\w]+) bui/i
|
|
93269
93269
|
],
|
|
93270
|
-
[
|
|
93270
|
+
[Nt, [Bt, _8], [Pt, Br]],
|
|
93271
93271
|
[
|
|
93272
93272
|
// Lenovo
|
|
93273
93273
|
/(ideatab[-\w ]+)/i,
|
|
93274
93274
|
/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i
|
|
93275
93275
|
],
|
|
93276
|
-
[
|
|
93276
|
+
[Nt, [Bt, "Lenovo"], [Pt, Ti]],
|
|
93277
93277
|
[
|
|
93278
93278
|
// Nokia
|
|
93279
93279
|
/(?:maemo|nokia).*(n900|lumia \d+)/i,
|
|
93280
93280
|
/nokia[-_ ]?([-\w\.]*)/i
|
|
93281
93281
|
],
|
|
93282
|
-
[[
|
|
93282
|
+
[[Nt, /_/g, " "], [Bt, "Nokia"], [Pt, Br]],
|
|
93283
93283
|
[
|
|
93284
93284
|
// Google
|
|
93285
93285
|
/(pixel c)\b/i
|
|
93286
93286
|
// Google Pixel C
|
|
93287
93287
|
],
|
|
93288
|
-
[
|
|
93288
|
+
[Nt, [Bt, k0], [Pt, Ti]],
|
|
93289
93289
|
[
|
|
93290
93290
|
/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i
|
|
93291
93291
|
// Google Pixel
|
|
93292
93292
|
],
|
|
93293
|
-
[
|
|
93293
|
+
[Nt, [Bt, k0], [Pt, Br]],
|
|
93294
93294
|
[
|
|
93295
93295
|
// Sony
|
|
93296
93296
|
/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i
|
|
93297
93297
|
],
|
|
93298
|
-
[
|
|
93298
|
+
[Nt, [Bt, x2], [Pt, Br]],
|
|
93299
93299
|
[
|
|
93300
93300
|
/sony tablet [ps]/i,
|
|
93301
93301
|
/\b(?:sony)?sgp\w+(?: bui|\))/i
|
|
93302
93302
|
],
|
|
93303
|
-
[[
|
|
93303
|
+
[[Nt, "Xperia Tablet"], [Bt, x2], [Pt, Ti]],
|
|
93304
93304
|
[
|
|
93305
93305
|
// OnePlus
|
|
93306
93306
|
/ (kb2005|in20[12]5|be20[12][59])\b/i,
|
|
93307
93307
|
/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i
|
|
93308
93308
|
],
|
|
93309
|
-
[
|
|
93309
|
+
[Nt, [Bt, "OnePlus"], [Pt, Br]],
|
|
93310
93310
|
[
|
|
93311
93311
|
// Amazon
|
|
93312
93312
|
/(alexa)webm/i,
|
|
@@ -93315,39 +93315,39 @@ var pd = k$.exports, zQe = "2.0.0-beta.1", Om = "", Qz = "?", I$ = "function", L
|
|
|
93315
93315
|
/(kf[a-z]+)( bui|\)).+silk\//i
|
|
93316
93316
|
// Kindle Fire HD
|
|
93317
93317
|
],
|
|
93318
|
-
[
|
|
93318
|
+
[Nt, [Bt, C2], [Pt, Ti]],
|
|
93319
93319
|
[
|
|
93320
93320
|
/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i
|
|
93321
93321
|
// Fire Phone
|
|
93322
93322
|
],
|
|
93323
|
-
[[
|
|
93323
|
+
[[Nt, /(.+)/g, "Fire Phone $1"], [Bt, C2], [Pt, Br]],
|
|
93324
93324
|
[
|
|
93325
93325
|
// BlackBerry
|
|
93326
93326
|
/(playbook);[-\w\),; ]+(rim)/i
|
|
93327
93327
|
// BlackBerry PlayBook
|
|
93328
93328
|
],
|
|
93329
|
-
[
|
|
93329
|
+
[Nt, Bt, [Pt, Ti]],
|
|
93330
93330
|
[
|
|
93331
93331
|
/\b((?:bb[a-f]|st[hv])100-\d)/i,
|
|
93332
93332
|
/\(bb10; (\w+)/i
|
|
93333
93333
|
// BlackBerry 10
|
|
93334
93334
|
],
|
|
93335
|
-
[
|
|
93335
|
+
[Nt, [Bt, tV], [Pt, Br]],
|
|
93336
93336
|
[
|
|
93337
93337
|
// Asus
|
|
93338
93338
|
/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i
|
|
93339
93339
|
],
|
|
93340
|
-
[
|
|
93340
|
+
[Nt, [Bt, eV], [Pt, Ti]],
|
|
93341
93341
|
[
|
|
93342
93342
|
/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i
|
|
93343
93343
|
],
|
|
93344
|
-
[
|
|
93344
|
+
[Nt, [Bt, eV], [Pt, Br]],
|
|
93345
93345
|
[
|
|
93346
93346
|
// HTC
|
|
93347
93347
|
/(nexus 9)/i
|
|
93348
93348
|
// HTC Nexus 9
|
|
93349
93349
|
],
|
|
93350
|
-
[
|
|
93350
|
+
[Nt, [Bt, "HTC"], [Pt, Ti]],
|
|
93351
93351
|
[
|
|
93352
93352
|
/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,
|
|
93353
93353
|
// HTC
|
|
@@ -93356,23 +93356,23 @@ var pd = k$.exports, zQe = "2.0.0-beta.1", Om = "", Qz = "?", I$ = "function", L
|
|
|
93356
93356
|
/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i
|
|
93357
93357
|
// Alcatel/GeeksPhone/Nexian/Panasonic/Sony
|
|
93358
93358
|
],
|
|
93359
|
-
[Bt, [
|
|
93359
|
+
[Bt, [Nt, /_/g, " "], [Pt, Br]],
|
|
93360
93360
|
[
|
|
93361
93361
|
// Acer
|
|
93362
93362
|
/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i
|
|
93363
93363
|
],
|
|
93364
|
-
[
|
|
93364
|
+
[Nt, [Bt, "Acer"], [Pt, Ti]],
|
|
93365
93365
|
[
|
|
93366
93366
|
// Meizu
|
|
93367
93367
|
/droid.+; (m[1-5] note) bui/i,
|
|
93368
93368
|
/\bmz-([-\w]{2,})/i
|
|
93369
93369
|
],
|
|
93370
|
-
[
|
|
93370
|
+
[Nt, [Bt, "Meizu"], [Pt, Br]],
|
|
93371
93371
|
[
|
|
93372
93372
|
// Ulefone
|
|
93373
93373
|
/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i
|
|
93374
93374
|
],
|
|
93375
|
-
[
|
|
93375
|
+
[Nt, [Bt, "Ulefone"], [Pt, Br]],
|
|
93376
93376
|
[
|
|
93377
93377
|
// MIXED
|
|
93378
93378
|
/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,
|
|
@@ -93390,7 +93390,7 @@ var pd = k$.exports, zQe = "2.0.0-beta.1", Om = "", Qz = "?", I$ = "function", L
|
|
|
93390
93390
|
/(oppo) ?([\w ]+) bui/i
|
|
93391
93391
|
// OPPO
|
|
93392
93392
|
],
|
|
93393
|
-
[Bt,
|
|
93393
|
+
[Bt, Nt, [Pt, Br]],
|
|
93394
93394
|
[
|
|
93395
93395
|
/(kobo)\s(ereader|touch)/i,
|
|
93396
93396
|
// Kobo
|
|
@@ -93401,41 +93401,41 @@ var pd = k$.exports, zQe = "2.0.0-beta.1", Om = "", Qz = "?", I$ = "function", L
|
|
|
93401
93401
|
/(kindle)\/([\w\.]+)/i
|
|
93402
93402
|
// Kindle
|
|
93403
93403
|
],
|
|
93404
|
-
[Bt,
|
|
93404
|
+
[Bt, Nt, [Pt, Ti]],
|
|
93405
93405
|
[
|
|
93406
93406
|
/(surface duo)/i
|
|
93407
93407
|
// Surface Duo
|
|
93408
93408
|
],
|
|
93409
|
-
[
|
|
93409
|
+
[Nt, [Bt, b8], [Pt, Ti]],
|
|
93410
93410
|
[
|
|
93411
93411
|
/droid [\d\.]+; (fp\du?)(?: b|\))/i
|
|
93412
93412
|
// Fairphone
|
|
93413
93413
|
],
|
|
93414
|
-
[
|
|
93414
|
+
[Nt, [Bt, "Fairphone"], [Pt, Br]],
|
|
93415
93415
|
[
|
|
93416
93416
|
/(shield[\w ]+) b/i
|
|
93417
93417
|
// Nvidia Shield Tablets
|
|
93418
93418
|
],
|
|
93419
|
-
[
|
|
93419
|
+
[Nt, [Bt, "Nvidia"], [Pt, Ti]],
|
|
93420
93420
|
[
|
|
93421
93421
|
/(sprint) (\w+)/i
|
|
93422
93422
|
// Sprint Phones
|
|
93423
93423
|
],
|
|
93424
|
-
[Bt,
|
|
93424
|
+
[Bt, Nt, [Pt, Br]],
|
|
93425
93425
|
[
|
|
93426
93426
|
/(kin\.[onetw]{3})/i
|
|
93427
93427
|
// Microsoft Kin
|
|
93428
93428
|
],
|
|
93429
|
-
[[
|
|
93429
|
+
[[Nt, /\./g, " "], [Bt, b8], [Pt, Br]],
|
|
93430
93430
|
[
|
|
93431
93431
|
/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i
|
|
93432
93432
|
// Zebra
|
|
93433
93433
|
],
|
|
93434
|
-
[
|
|
93434
|
+
[Nt, [Bt, E8], [Pt, Ti]],
|
|
93435
93435
|
[
|
|
93436
93436
|
/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i
|
|
93437
93437
|
],
|
|
93438
|
-
[
|
|
93438
|
+
[Nt, [Bt, E8], [Pt, Br]],
|
|
93439
93439
|
[
|
|
93440
93440
|
///////////////////
|
|
93441
93441
|
// SMARTTVS
|
|
@@ -93443,64 +93443,64 @@ var pd = k$.exports, zQe = "2.0.0-beta.1", Om = "", Qz = "?", I$ = "function", L
|
|
|
93443
93443
|
/smart-tv.+(samsung)/i
|
|
93444
93444
|
// Samsung
|
|
93445
93445
|
],
|
|
93446
|
-
[Bt, [
|
|
93446
|
+
[Bt, [Pt, Ra]],
|
|
93447
93447
|
[
|
|
93448
93448
|
/hbbtv.+maple;(\d+)/i
|
|
93449
93449
|
],
|
|
93450
|
-
[[
|
|
93450
|
+
[[Nt, /^/, "SmartTV"], [Bt, w8], [Pt, Ra]],
|
|
93451
93451
|
[
|
|
93452
93452
|
/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i
|
|
93453
93453
|
// LG SmartTV
|
|
93454
93454
|
],
|
|
93455
|
-
[[Bt, _8], [
|
|
93455
|
+
[[Bt, _8], [Pt, Ra]],
|
|
93456
93456
|
[
|
|
93457
93457
|
/(apple) ?tv/i
|
|
93458
93458
|
// Apple TV
|
|
93459
93459
|
],
|
|
93460
|
-
[Bt, [
|
|
93460
|
+
[Bt, [Nt, Z1 + " TV"], [Pt, Ra]],
|
|
93461
93461
|
[
|
|
93462
93462
|
/crkey/i
|
|
93463
93463
|
// Google Chromecast
|
|
93464
93464
|
],
|
|
93465
|
-
[[
|
|
93465
|
+
[[Nt, A2 + "cast"], [Bt, k0], [Pt, Ra]],
|
|
93466
93466
|
[
|
|
93467
93467
|
/droid.+aft(\w+)( bui|\))/i
|
|
93468
93468
|
// Fire TV
|
|
93469
93469
|
],
|
|
93470
|
-
[
|
|
93470
|
+
[Nt, [Bt, C2], [Pt, Ra]],
|
|
93471
93471
|
[
|
|
93472
93472
|
/\(dtv[\);].+(aquos)/i,
|
|
93473
93473
|
/(aquos-tv[\w ]+)\)/i
|
|
93474
93474
|
// Sharp
|
|
93475
93475
|
],
|
|
93476
|
-
[
|
|
93476
|
+
[Nt, [Bt, iV], [Pt, Ra]],
|
|
93477
93477
|
[
|
|
93478
93478
|
/(bravia[\w ]+)( bui|\))/i
|
|
93479
93479
|
// Sony
|
|
93480
93480
|
],
|
|
93481
|
-
[
|
|
93481
|
+
[Nt, [Bt, x2], [Pt, Ra]],
|
|
93482
93482
|
[
|
|
93483
93483
|
/(mitv-\w{5}) bui/i
|
|
93484
93484
|
// Xiaomi
|
|
93485
93485
|
],
|
|
93486
|
-
[
|
|
93486
|
+
[Nt, [Bt, S8], [Pt, Ra]],
|
|
93487
93487
|
[
|
|
93488
93488
|
/Hbbtv.*(technisat) (.*);/i
|
|
93489
93489
|
// TechniSAT
|
|
93490
93490
|
],
|
|
93491
|
-
[Bt,
|
|
93491
|
+
[Bt, Nt, [Pt, Ra]],
|
|
93492
93492
|
[
|
|
93493
93493
|
/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,
|
|
93494
93494
|
// Roku
|
|
93495
93495
|
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
93496
93496
|
// HbbTV devices
|
|
93497
93497
|
],
|
|
93498
|
-
[[Bt, tb], [
|
|
93498
|
+
[[Bt, tb], [Nt, tb], [Pt, Ra]],
|
|
93499
93499
|
[
|
|
93500
93500
|
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
|
|
93501
93501
|
// SmartTV from Unidentified Vendors
|
|
93502
93502
|
],
|
|
93503
|
-
[[
|
|
93503
|
+
[[Pt, Ra]],
|
|
93504
93504
|
[
|
|
93505
93505
|
///////////////////
|
|
93506
93506
|
// CONSOLES
|
|
@@ -93510,22 +93510,22 @@ var pd = k$.exports, zQe = "2.0.0-beta.1", Om = "", Qz = "?", I$ = "function", L
|
|
|
93510
93510
|
/(nintendo) (\w+)/i
|
|
93511
93511
|
// Nintendo
|
|
93512
93512
|
],
|
|
93513
|
-
[Bt,
|
|
93513
|
+
[Bt, Nt, [Pt, O0]],
|
|
93514
93514
|
[
|
|
93515
93515
|
/droid.+; (shield) bui/i
|
|
93516
93516
|
// Nvidia
|
|
93517
93517
|
],
|
|
93518
|
-
[
|
|
93518
|
+
[Nt, [Bt, "Nvidia"], [Pt, O0]],
|
|
93519
93519
|
[
|
|
93520
93520
|
/(playstation \w+)/i
|
|
93521
93521
|
// Playstation
|
|
93522
93522
|
],
|
|
93523
|
-
[
|
|
93523
|
+
[Nt, [Bt, x2], [Pt, O0]],
|
|
93524
93524
|
[
|
|
93525
93525
|
/\b(xbox(?: one)?(?!; xbox))[\); ]/i
|
|
93526
93526
|
// Microsoft Xbox
|
|
93527
93527
|
],
|
|
93528
|
-
[
|
|
93528
|
+
[Nt, [Bt, b8], [Pt, O0]],
|
|
93529
93529
|
[
|
|
93530
93530
|
///////////////////
|
|
93531
93531
|
// WEARABLES
|
|
@@ -93533,26 +93533,26 @@ var pd = k$.exports, zQe = "2.0.0-beta.1", Om = "", Qz = "?", I$ = "function", L
|
|
|
93533
93533
|
/((pebble))app/i
|
|
93534
93534
|
// Pebble
|
|
93535
93535
|
],
|
|
93536
|
-
[Bt,
|
|
93536
|
+
[Bt, Nt, [Pt, th]],
|
|
93537
93537
|
[
|
|
93538
93538
|
/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i
|
|
93539
93539
|
// Apple Watch
|
|
93540
93540
|
],
|
|
93541
|
-
[
|
|
93541
|
+
[Nt, [Bt, Z1], [Pt, th]],
|
|
93542
93542
|
[
|
|
93543
93543
|
/droid.+; (glass) \d/i
|
|
93544
93544
|
// Google Glass
|
|
93545
93545
|
],
|
|
93546
|
-
[
|
|
93546
|
+
[Nt, [Bt, k0], [Pt, th]],
|
|
93547
93547
|
[
|
|
93548
93548
|
/droid.+; (wt63?0{2,3})\)/i
|
|
93549
93549
|
],
|
|
93550
|
-
[
|
|
93550
|
+
[Nt, [Bt, E8], [Pt, th]],
|
|
93551
93551
|
[
|
|
93552
93552
|
/(quest( 2| pro)?)/i
|
|
93553
93553
|
// Oculus Quest
|
|
93554
93554
|
],
|
|
93555
|
-
[
|
|
93555
|
+
[Nt, [Bt, oV], [Pt, th]],
|
|
93556
93556
|
[
|
|
93557
93557
|
///////////////////
|
|
93558
93558
|
// EMBEDDED
|
|
@@ -93560,12 +93560,12 @@ var pd = k$.exports, zQe = "2.0.0-beta.1", Om = "", Qz = "?", I$ = "function", L
|
|
|
93560
93560
|
/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i
|
|
93561
93561
|
// Tesla
|
|
93562
93562
|
],
|
|
93563
|
-
[Bt, [
|
|
93563
|
+
[Bt, [Pt, R$]],
|
|
93564
93564
|
[
|
|
93565
93565
|
/(aeobc)\b/i
|
|
93566
93566
|
// Echo Dot
|
|
93567
93567
|
],
|
|
93568
|
-
[
|
|
93568
|
+
[Nt, [Bt, C2], [Pt, R$]],
|
|
93569
93569
|
[
|
|
93570
93570
|
////////////////////
|
|
93571
93571
|
// MIXED (GENERIC)
|
|
@@ -93573,27 +93573,27 @@ var pd = k$.exports, zQe = "2.0.0-beta.1", Om = "", Qz = "?", I$ = "function", L
|
|
|
93573
93573
|
/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i
|
|
93574
93574
|
// Android Phones from Unidentified Vendors
|
|
93575
93575
|
],
|
|
93576
|
-
[
|
|
93576
|
+
[Nt, [Pt, Br]],
|
|
93577
93577
|
[
|
|
93578
93578
|
/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i
|
|
93579
93579
|
// Android Tablets from Unidentified Vendors
|
|
93580
93580
|
],
|
|
93581
|
-
[
|
|
93581
|
+
[Nt, [Pt, Ti]],
|
|
93582
93582
|
[
|
|
93583
93583
|
/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i
|
|
93584
93584
|
// Unidentifiable Tablet
|
|
93585
93585
|
],
|
|
93586
|
-
[[
|
|
93586
|
+
[[Pt, Ti]],
|
|
93587
93587
|
[
|
|
93588
93588
|
/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i
|
|
93589
93589
|
// Unidentifiable Mobile
|
|
93590
93590
|
],
|
|
93591
|
-
[[
|
|
93591
|
+
[[Pt, Br]],
|
|
93592
93592
|
[
|
|
93593
93593
|
/(android[-\w\. ]{0,9});.+buil/i
|
|
93594
93594
|
// Generic Android Device
|
|
93595
93595
|
],
|
|
93596
|
-
[
|
|
93596
|
+
[Nt, [Bt, "Generic"]]
|
|
93597
93597
|
],
|
|
93598
93598
|
engine: [
|
|
93599
93599
|
[
|
|
@@ -93767,7 +93767,7 @@ var pd = k$.exports, zQe = "2.0.0-beta.1", Om = "", Qz = "?", I$ = "function", L
|
|
|
93767
93767
|
return yu.call(e.init, [
|
|
93768
93768
|
[xa, [xt, Mt, Mv]],
|
|
93769
93769
|
[fu, [ha]],
|
|
93770
|
-
[gc, [
|
|
93770
|
+
[gc, [Pt, Nt, Bt]],
|
|
93771
93771
|
[gu, [xt, Mt]],
|
|
93772
93772
|
[rs, [xt, Mt]]
|
|
93773
93773
|
]), yu.call(e.isIgnore, [
|
|
@@ -93780,7 +93780,7 @@ var pd = k$.exports, zQe = "2.0.0-beta.1", Om = "", Qz = "?", I$ = "function", L
|
|
|
93780
93780
|
]), yu.call(e.toString, [
|
|
93781
93781
|
[xa, [xt, Mt]],
|
|
93782
93782
|
[fu, [ha]],
|
|
93783
|
-
[gc, [Bt,
|
|
93783
|
+
[gc, [Bt, Nt]],
|
|
93784
93784
|
[gu, [xt, Mt]],
|
|
93785
93785
|
[rs, [xt, Mt]]
|
|
93786
93786
|
]), e;
|
|
@@ -93832,7 +93832,7 @@ function Cie(e, t) {
|
|
|
93832
93832
|
[fR, $8(e[Td])],
|
|
93833
93833
|
[pR, $8(e[VQe])],
|
|
93834
93834
|
[Br, /\?1/.test(e[GQe])],
|
|
93835
|
-
[
|
|
93835
|
+
[Nt, r0(e[KQe])],
|
|
93836
93836
|
[zh, r0(e[kie])],
|
|
93837
93837
|
[hR, r0(e[YQe])],
|
|
93838
93838
|
[ha, r0(e[HQe])],
|
|
@@ -93857,7 +93857,7 @@ function dV(e, t, r, n) {
|
|
|
93857
93857
|
ma.brave && typeof ma.brave.isBrave == I$ && this.set(xt, "Brave");
|
|
93858
93858
|
break;
|
|
93859
93859
|
case gc:
|
|
93860
|
-
!this.get(
|
|
93860
|
+
!this.get(Pt) && Rl && Rl[Br] && this.set(Pt, Br), this.get(Nt) == "Macintosh" && ma && typeof ma.standalone !== Ll && ma.maxTouchPoints && ma.maxTouchPoints > 2 && this.set(Nt, "iPad").set(Pt, Ti);
|
|
93861
93861
|
break;
|
|
93862
93862
|
case rs:
|
|
93863
93863
|
!this.get(xt) && Rl && Rl[zh] && this.set(xt, Rl[zh]);
|
|
@@ -93887,14 +93887,14 @@ function dV(e, t, r, n) {
|
|
|
93887
93887
|
l && (l && i[$w] == "64" && (l += "64"), sV.call(this.data, l + ";", o));
|
|
93888
93888
|
break;
|
|
93889
93889
|
case gc:
|
|
93890
|
-
if (i[Br] && this.set(
|
|
93890
|
+
if (i[Br] && this.set(Pt, Br), i[Nt] && this.set(Nt, i[Nt]), i[Jd]) {
|
|
93891
93891
|
var d;
|
|
93892
93892
|
if (typeof i[Jd] != "string")
|
|
93893
93893
|
for (var f = 0; !d && f < i[Jd].length; )
|
|
93894
93894
|
d = rb(i[Jd][f++], uV);
|
|
93895
93895
|
else
|
|
93896
93896
|
d = rb(i[Jd], uV);
|
|
93897
|
-
this.set(
|
|
93897
|
+
this.set(Pt, d);
|
|
93898
93898
|
}
|
|
93899
93899
|
break;
|
|
93900
93900
|
case rs:
|
|
@@ -93956,7 +93956,7 @@ function ju(e, t, r) {
|
|
|
93956
93956
|
ju.VERSION = zQe;
|
|
93957
93957
|
ju.BROWSER = Tw([xt, Mt, Mv]);
|
|
93958
93958
|
ju.CPU = Tw([ha]);
|
|
93959
|
-
ju.DEVICE = Tw([
|
|
93959
|
+
ju.DEVICE = Tw([Nt, Bt, Pt, O0, Br, Ra, Ti, th, R$]);
|
|
93960
93960
|
ju.ENGINE = ju.OS = Tw([xt, Mt]);
|
|
93961
93961
|
var O8, k8, I8, R8, C8;
|
|
93962
93962
|
const ZQe = (e) => {
|
|
@@ -104817,7 +104817,7 @@ const hd = (e, t, r, n) => {
|
|
|
104817
104817
|
}, w = () => {
|
|
104818
104818
|
d.current && (d.current.controls = !1, d.current.pause(), d.current.currentTime = 0);
|
|
104819
104819
|
};
|
|
104820
|
-
|
|
104820
|
+
At(() => {
|
|
104821
104821
|
a || w();
|
|
104822
104822
|
}, [a]);
|
|
104823
104823
|
const $ = () => {
|
|
@@ -105020,7 +105020,7 @@ const hd = (e, t, r, n) => {
|
|
|
105020
105020
|
}, U = () => {
|
|
105021
105021
|
_.current && (_.current.style.setProperty("--myinterview-widget-preview-item-transition", "0ms"), _.current.style.transitionDuration = "0ms");
|
|
105022
105022
|
};
|
|
105023
|
-
|
|
105023
|
+
At(() => {
|
|
105024
105024
|
var $e, de;
|
|
105025
105025
|
return ($e = d == null ? void 0 : d.current) === null || $e === void 0 || $e.style.setProperty("--myinterview-widget-background-height", "40px"), (de = d == null ? void 0 : d.current) === null || de === void 0 || de.style.setProperty("--myinterview-widget-background-preview-display", "block"), _.current && _.current.style.setProperty("--myinterview-widget-item-width", `calc(100% / ${Xc})`), () => {
|
|
105026
105026
|
var _e, xe;
|
|
@@ -105030,9 +105030,9 @@ const hd = (e, t, r, n) => {
|
|
|
105030
105030
|
const ie = Ut(($e) => {
|
|
105031
105031
|
_.current = $e, J();
|
|
105032
105032
|
}, []);
|
|
105033
|
-
|
|
105033
|
+
At(() => {
|
|
105034
105034
|
b(Math.max(h.length - Xc, 0)), T.current = Math.max(h.length - Xc, 0), J();
|
|
105035
|
-
}, [h.length]),
|
|
105035
|
+
}, [h.length]), At(() => {
|
|
105036
105036
|
$(null);
|
|
105037
105037
|
}, [g]);
|
|
105038
105038
|
const L = Ut(($e) => {
|
|
@@ -105147,7 +105147,7 @@ const hd = (e, t, r, n) => {
|
|
|
105147
105147
|
);
|
|
105148
105148
|
}, XR = ({ countDown: e, forceMobileCounter: t = !1, numberOfSecondsToHighlight: r = 0 }) => {
|
|
105149
105149
|
const n = dt(null), i = dt(e), o = dt(e + 1);
|
|
105150
|
-
|
|
105150
|
+
At(() => {
|
|
105151
105151
|
const c = (o.current - e) / 100, u = setInterval(() => {
|
|
105152
105152
|
var l;
|
|
105153
105153
|
const d = Math.max(o.current - 1, 0) / i.current * 100;
|
|
@@ -105229,7 +105229,7 @@ const wae = () => M.createElement(
|
|
|
105229
105229
|
);
|
|
105230
105230
|
}, Est = ({ handleDeviceChange: e, videoDevices: t = [], audioDevices: r = [], selectedAudioDevice: n, selectedVideoDevice: i, myinterviewRef: o, recordWithoutVideo: a }) => {
|
|
105231
105231
|
const s = dt(null), [c, u] = St(!1);
|
|
105232
|
-
return
|
|
105232
|
+
return At(() => {
|
|
105233
105233
|
var l, d;
|
|
105234
105234
|
const f = (p) => {
|
|
105235
105235
|
c && s.current && !s.current.contains(p.target) && u(!1);
|
|
@@ -105312,7 +105312,7 @@ const wae = () => M.createElement(
|
|
|
105312
105312
|
);
|
|
105313
105313
|
}, Tst = ({ microphoneRef: e }) => {
|
|
105314
105314
|
const [t] = ww(e), r = dt(null);
|
|
105315
|
-
|
|
105315
|
+
At(() => {
|
|
105316
105316
|
var i;
|
|
105317
105317
|
const o = Math.max(1, Math.min(1 + t.context.micData / 25, 1.6)).toString();
|
|
105318
105318
|
(i = r.current) === null || i === void 0 || i.style.setProperty("--myinterview-widget-voice-level", o);
|
|
@@ -110091,7 +110091,7 @@ var aut = /* @__PURE__ */ yKe(Eae), GH = "https://embed.cloudflarestream.com/emb
|
|
|
110091
110091
|
};
|
|
110092
110092
|
function sut() {
|
|
110093
110093
|
var e = St(dT), t = e[0], r = e[1];
|
|
110094
|
-
return
|
|
110094
|
+
return At(function() {
|
|
110095
110095
|
if (!t) {
|
|
110096
110096
|
var n = document.querySelector("script[src='" + GH + "']"), i = n ?? document.createElement("script");
|
|
110097
110097
|
i.addEventListener("load", function() {
|
|
@@ -110121,7 +110121,7 @@ function uut(e) {
|
|
|
110121
110121
|
}
|
|
110122
110122
|
}
|
|
110123
110123
|
function fc(e, t, r) {
|
|
110124
|
-
|
|
110124
|
+
At(function() {
|
|
110125
110125
|
if (t.current) {
|
|
110126
110126
|
var n = t.current;
|
|
110127
110127
|
n[e] = r;
|
|
@@ -110129,7 +110129,7 @@ function fc(e, t, r) {
|
|
|
110129
110129
|
}, [e, r, t]);
|
|
110130
110130
|
}
|
|
110131
110131
|
function si(e, t, r) {
|
|
110132
|
-
r === void 0 && (r = lut),
|
|
110132
|
+
r === void 0 && (r = lut), At(function() {
|
|
110133
110133
|
if (t.current) {
|
|
110134
110134
|
var n = t.current;
|
|
110135
110135
|
return n.addEventListener(e, r), function() {
|
|
@@ -110178,7 +110178,7 @@ var lut = function() {
|
|
|
110178
110178
|
defaultTextTrack: y,
|
|
110179
110179
|
startTime: v
|
|
110180
110180
|
}), yt = uut(r) ? r : at;
|
|
110181
|
-
return fc("muted", Pe, s), fc("controls", Pe, o), fc("src", Pe, r), fc("autoplay", Pe, u), fc("currentTime", Pe, E), fc("loop", Pe, d), fc("preload", Pe, p), fc("primaryColor", Pe, h), fc("letterboxColor", Pe, m), fc("volume", Pe, S),
|
|
110181
|
+
return fc("muted", Pe, s), fc("controls", Pe, o), fc("src", Pe, r), fc("autoplay", Pe, u), fc("currentTime", Pe, E), fc("loop", Pe, d), fc("preload", Pe, p), fc("primaryColor", Pe, h), fc("letterboxColor", Pe, m), fc("volume", Pe, S), At(function() {
|
|
110182
110182
|
var ct = dT();
|
|
110183
110183
|
if (ht.current && ct) {
|
|
110184
110184
|
var it = ct(ht.current);
|
|
@@ -111715,10 +111715,10 @@ const xlt = (e) => {
|
|
|
111715
111715
|
C(!1);
|
|
111716
111716
|
}, gst);
|
|
111717
111717
|
};
|
|
111718
|
-
|
|
111718
|
+
At(() => {
|
|
111719
111719
|
var x;
|
|
111720
111720
|
i && !t && (c && ((x = d.current) === null || x === void 0 || x.pause()), h(!1));
|
|
111721
|
-
}, [i]),
|
|
111721
|
+
}, [i]), At(() => {
|
|
111722
111722
|
let x;
|
|
111723
111723
|
return c && m && m - g < oW && (x = setTimeout(I, oW * 1e3)), () => clearTimeout(x);
|
|
111724
111724
|
}, [g]);
|
|
@@ -111807,7 +111807,7 @@ const xlt = (e) => {
|
|
|
111807
111807
|
const { value: a, checked: s } = o.target;
|
|
111808
111808
|
n((c) => c.map((u) => u.id !== a ? u : Object.assign(Object.assign({}, u), { selected: s })));
|
|
111809
111809
|
};
|
|
111810
|
-
return
|
|
111810
|
+
return At(() => {
|
|
111811
111811
|
t(r);
|
|
111812
111812
|
}, [r]), M.createElement(
|
|
111813
111813
|
"div",
|
|
@@ -111861,7 +111861,7 @@ const xlt = (e) => {
|
|
|
111861
111861
|
return () => !0;
|
|
111862
111862
|
}
|
|
111863
111863
|
}, [e.answerType]);
|
|
111864
|
-
|
|
111864
|
+
At(() => {
|
|
111865
111865
|
e.partDuration && !t && p(!0);
|
|
111866
111866
|
}, [t]);
|
|
111867
111867
|
const m = (y) => {
|
|
@@ -111893,12 +111893,12 @@ const xlt = (e) => {
|
|
|
111893
111893
|
}, Blt = M.forwardRef(({ widgetMachine: e, sendToWidget: t, recorderRef: r, isSliderModalOpen: n, isWidgetMinimized: i, onOpenSliderModal: o, onCloseSliderModal: a, onRecorderRetry: s, onReInitRecorder: c, myinterviewRef: u }, l) => {
|
|
111894
111894
|
var d, f;
|
|
111895
111895
|
const [p, h] = ww(r), [m, y] = St(!1), g = dt(null), { previewRef: b, questions: w, currentQuestion: $, currentTake: E, recordingType: _, isConnected: S, checksState: v, widgetConfig: O, failedRecordingMessage: T, timer: k } = e.context, { recordingTime: C, countdown: A, durations: D, videoDevices: B, audioDevices: ne, selectedVideoDevice: J, selectedAudioDevice: G, microphoneRef: Q, mediaStream: R, recordWithoutVideo: I } = p.context, U = w[$ - 1], ie = !!(U != null && U.answerType) && U.answerType !== on.VIDEO, L = ie ? !!(U != null && U.partDuration) : !!(U != null && U.thinkingTime), se = e.matches(st.SETUP), x = e.matches({ [st.INTERVIEW]: st.INTERVIEW__EXPLANATION }), pe = e.matches({ [st.INTERVIEW]: st.INTERVIEW__ASSESSMENT }), ce = e.matches(st.TIMES_UP), fe = e.hasTag(zr.SHOW_CAMERA), $e = e.matches(st.PREVIEW), de = p.matches(_r.ERROR), _e = p.matches(_r.IDLE), xe = p.matches({ [_r.RECORDING]: _r.COLLECTING_BLOBS }), ye = p.matches({ [_r.RECORDING]: _r.COUNT_DOWN }), ot = E < (U == null ? void 0 : U.numOfRetakes), he = U == null ? void 0 : U.numOfRetakes, ue = _ === po.QUESTION, Ue = (f = (d = O.video) === null || d === void 0 ? void 0 : d.videos) === null || f === void 0 ? void 0 : f.reduce((rt, Ie, He) => Ie.uploaded ? rt : He + 1, 0), Ve = $ === (ue ? Ue : w.length), Pe = e.matches(st.UPLOADING), Ze = e.matches(st.CONFIRM), Ce = e.matches({ [st.INTERVIEW]: st.INTERVIEW__VIDEO_QUESTION }), De = x || e.hasTag(zr.CAN_START_RECORDING) && (!L || !Ce), ht = T !== eh.NO_ERROR ? T : null, at = !S && se ? "CONNECTION" : null, yt = de ? "MEDIA_PERMISSION" : null, ct = v.microphone === "ERROR" ? "NO_SOUND" : null, it = ht || yt || at || ct, Dt = !e.hasTag(zr.DISPLAY_OUTER_VIEW), zt = _e && se || !!it && xe, Vt = e.hasTag(zr.DISPLAY_QUESTION);
|
|
111896
|
-
|
|
111896
|
+
At(() => {
|
|
111897
111897
|
Ce && y(!1);
|
|
111898
|
-
}, [Ce]),
|
|
111898
|
+
}, [Ce]), At(() => {
|
|
111899
111899
|
var rt;
|
|
111900
111900
|
Pe && ((rt = u == null ? void 0 : u.current) === null || rt === void 0 || rt.style.setProperty("--myinterview-widget-background-height", "100vh"));
|
|
111901
|
-
}, [Pe]),
|
|
111901
|
+
}, [Pe]), At(() => {
|
|
111902
111902
|
var rt, Ie, He;
|
|
111903
111903
|
if (R && !I) {
|
|
111904
111904
|
const ke = (rt = R.getVideoTracks()[0]) === null || rt === void 0 ? void 0 : rt.getSettings(), { aspectRatio: Le, width: Re, height: wt } = ke, lt = Fn ? Math.min(Number(Re), Number(wt)) : Number(Re), Ct = Fn ? Math.max(Number(Re), Number(wt)) : Number(wt);
|
|
@@ -111934,7 +111934,7 @@ const xlt = (e) => {
|
|
|
111934
111934
|
}, Ke = () => {
|
|
111935
111935
|
h == null || h(hr.STOP_RECORDING);
|
|
111936
111936
|
};
|
|
111937
|
-
|
|
111937
|
+
At(() => {
|
|
111938
111938
|
i && xe && Ke();
|
|
111939
111939
|
}, [i, xe]);
|
|
111940
111940
|
const Me = ni({
|
|
@@ -112009,7 +112009,7 @@ const aC = ({ logo: e = "", companyName: t = "", jobTitle: r = "", hidden: n = !
|
|
|
112009
112009
|
"myinterview-widget-questions-item__number": !0,
|
|
112010
112010
|
"myinterview-widget-questions-item__number--icon": !!u
|
|
112011
112011
|
});
|
|
112012
|
-
return
|
|
112012
|
+
return At(() => {
|
|
112013
112013
|
a.current && s && a.current.scrollIntoView(!1);
|
|
112014
112014
|
}, [a.current]), M.createElement(
|
|
112015
112015
|
"div",
|
|
@@ -116847,7 +116847,7 @@ const EW = "background:#06f; color:#fff; margin: 10px 0; padding:5px; border-rad
|
|
|
116847
116847
|
const n = dt(null), i = dt(null), o = dt(new IntersectionObserver((s) => {
|
|
116848
116848
|
s[0].isIntersecting && t();
|
|
116849
116849
|
}, { threshold: 1 }));
|
|
116850
|
-
|
|
116850
|
+
At(() => (n.current && i.current && (i.current.scrollIntoView(), o.current.observe(n.current)), () => o.current.disconnect()), []), At(() => {
|
|
116851
116851
|
var s;
|
|
116852
116852
|
e && ((s = i.current) === null || s === void 0 || s.scrollIntoView());
|
|
116853
116853
|
}, [e]);
|
|
@@ -119201,7 +119201,7 @@ const dmt = () => {
|
|
|
119201
119201
|
M.createElement(yw, null)
|
|
119202
119202
|
), kW = (e = "en") => ["he", "ar"].includes(e), hmt = ({ widgetConfig: e, setShouldShowWaterMark: t, myinterviewRef: r, isWidgetMinimized: n, onMinimize: i }) => {
|
|
119203
119203
|
const { boot: o, shutdown: a, update: s } = kXe(), c = dt(null), u = dt(null), [l, d] = MJe(() => OW.withContext(Object.assign(Object.assign({}, OW.context), { widgetConfig: e, videoRef: u }))), [f, p] = St(!1), { recorderRef: h, widgetConfig: { job: m, candidate: y, video: g, company: b, config: w }, error: $ } = l.context, E = l.matches(st.ERROR), _ = l.hasTag(zr.LOADING), S = l.matches(st.SETUP), v = l.matches(st.UPLOADING), O = l.matches(st.INTERVIEW), T = l.matches({ [st.INTERVIEW]: st.INTERVIEW__VIDEO_QUESTION }), k = l.matches(st.WELCOME);
|
|
119204
|
-
|
|
119204
|
+
At(() => {
|
|
119205
119205
|
var I;
|
|
119206
119206
|
const U = (ie) => (ie.preventDefault(), ie.returnValue = "Changes you made may not be saved.", ie);
|
|
119207
119207
|
return (I = r == null ? void 0 : r.current) === null || I === void 0 || I.style.setProperty("--myinterview-widget-background-height", "calc(40vh - 100px)"), window.addEventListener("beforeunload", U), w.hideIntercom === !1 && o({
|
|
@@ -119209,16 +119209,16 @@ const dmt = () => {
|
|
|
119209
119209
|
}), window.addEventListener("touchstart", () => !1, { passive: !1 }), () => {
|
|
119210
119210
|
window.removeEventListener("beforeunload", U), window.removeEventListener("touchstart", () => !1), a();
|
|
119211
119211
|
};
|
|
119212
|
-
}, []),
|
|
119212
|
+
}, []), At(() => {
|
|
119213
119213
|
Xr.changeLanguage((m == null ? void 0 : m.language) || "en");
|
|
119214
|
-
}, [m == null ? void 0 : m.language]),
|
|
119214
|
+
}, [m == null ? void 0 : m.language]), At(() => {
|
|
119215
119215
|
t(!!(b != null && b.shouldShowWaterMark));
|
|
119216
119216
|
}, [b == null ? void 0 : b.shouldShowWaterMark]);
|
|
119217
119217
|
const C = () => Ks(void 0, void 0, void 0, function* () {
|
|
119218
119218
|
var I, U;
|
|
119219
119219
|
return (U = (I = e.config).onFinish) === null || U === void 0 ? void 0 : U.call(I, { redirectUrl: y.redirectUrl, video_id: (g == null ? void 0 : g.video_id) || "" });
|
|
119220
119220
|
});
|
|
119221
|
-
|
|
119221
|
+
At(() => {
|
|
119222
119222
|
l.done && e.config.onFinish && C().then(() => {
|
|
119223
119223
|
yo({ eventType: Pr.ON_FINISH_SUCCEED });
|
|
119224
119224
|
}).catch((I) => {
|
|
@@ -119230,7 +119230,7 @@ const dmt = () => {
|
|
|
119230
119230
|
}
|
|
119231
119231
|
throw yo({ eventType: Pr.ON_FINISH_FAILED, extraData: { errorMessage: ie } }), I;
|
|
119232
119232
|
});
|
|
119233
|
-
}, [l.done]),
|
|
119233
|
+
}, [l.done]), At(() => {
|
|
119234
119234
|
w.hideIntercom === !1 && s({
|
|
119235
119235
|
customAttributes: {
|
|
119236
119236
|
apiKey: y == null ? void 0 : y.apiKey,
|
|
@@ -119249,7 +119249,7 @@ const dmt = () => {
|
|
|
119249
119249
|
var I;
|
|
119250
119250
|
(I = r == null ? void 0 : r.current) === null || I === void 0 || I.style.setProperty("--myinterview-background-opacity", _ || E ? "0" : "1");
|
|
119251
119251
|
};
|
|
119252
|
-
|
|
119252
|
+
At(() => {
|
|
119253
119253
|
var I, U;
|
|
119254
119254
|
E && ($ == null ? void 0 : $.statusCode) === 400 && ((U = (I = e.config).onError) === null || U === void 0 || U.call(I, { messageType: "applied", messageInfo: "Candidate already attached to a video" })), A();
|
|
119255
119255
|
}, [E]);
|
|
@@ -119261,7 +119261,7 @@ const dmt = () => {
|
|
|
119261
119261
|
const { scrollTop: L } = I.target;
|
|
119262
119262
|
(U = c == null ? void 0 : c.current) === null || U === void 0 || U.style.setProperty("--myinterview-widget-views-margin-top", `${L}px`), (ie = c == null ? void 0 : c.current) === null || ie === void 0 || ie.style.setProperty("--myinterview-widget-practice-opacity", L > 10 ? "0" : "1");
|
|
119263
119263
|
};
|
|
119264
|
-
|
|
119264
|
+
At(() => {
|
|
119265
119265
|
A();
|
|
119266
119266
|
}, [_]);
|
|
119267
119267
|
const ne = () => {
|
|
@@ -119334,7 +119334,7 @@ const _mt = ({ messageType: e }) => {
|
|
|
119334
119334
|
return Object.assign(Object.assign({}, r), { question: r.question || "", numOfRetakes: r.attempts || pst, partDuration: r.duration || (n ? wH : JR), thinkingTime: n ? r.duration || wH : r.thinkingTime || hst });
|
|
119335
119335
|
}), bmt = () => {
|
|
119336
119336
|
const [e, t] = St("");
|
|
119337
|
-
return
|
|
119337
|
+
return At(() => {
|
|
119338
119338
|
if (e) {
|
|
119339
119339
|
const n = window.innerWidth <= 800 ? "Right" : "Left";
|
|
119340
119340
|
window.interdeal = {
|
|
@@ -119369,7 +119369,7 @@ const _mt = ({ messageType: e }) => {
|
|
|
119369
119369
|
}, [e]), { setSitekey: t, shutdown: () => t("") };
|
|
119370
119370
|
}, wmt = CT(({ candidate: e, job: t, video: r, config: n, disabled: i = !1, buttonText: o = "START INTERVIEW", buttonStyle: a = {}, children: s, styleUrls: c = [], fontsUrls: u = [] }, l) => {
|
|
119371
119371
|
const d = "1.1.38", [f, p] = St(!1), [h, m] = St(!1), [y, g] = St(!1), b = dt(null), w = dt(null), $ = dt(null), [E, _] = St(!1), [S, v] = St(!1), { setSitekey: O, shutdown: T } = bmt();
|
|
119372
|
-
|
|
119372
|
+
At(() => (eZe && IXe().then((I) => {
|
|
119373
119373
|
g(I.browserName === "Chrome" && I.isPrivate && Fn);
|
|
119374
119374
|
}), b.current && b.current.shadowRoot && (v(typeof s == "object" && s.type === "style"), (Array.isArray(u) ? u : [u]).concat(wst).forEach((I) => {
|
|
119375
119375
|
const U = document.createElement("link");
|
|
@@ -119384,13 +119384,13 @@ const _mt = ({ messageType: e }) => {
|
|
|
119384
119384
|
I,
|
|
119385
119385
|
")"
|
|
119386
119386
|
)), [c]);
|
|
119387
|
-
|
|
119387
|
+
At(() => {
|
|
119388
119388
|
rd.configureScope((I) => {
|
|
119389
119389
|
I.setUser({
|
|
119390
119390
|
email: e.email
|
|
119391
119391
|
}), I.setTags(Object.assign({}, tZe && { iphoneModel: sZe() }));
|
|
119392
119392
|
});
|
|
119393
|
-
}, [e.email]),
|
|
119393
|
+
}, [e.email]), At(() => {
|
|
119394
119394
|
n.env && Clt(Hv(n.env).serverUrl);
|
|
119395
119395
|
}, [n.env]);
|
|
119396
119396
|
const C = () => {
|
|
@@ -119479,7 +119479,7 @@ const _mt = ({ messageType: e }) => {
|
|
|
119479
119479
|
);
|
|
119480
119480
|
}), Smt = ({ completed: e }) => {
|
|
119481
119481
|
const t = _n((y) => y.chatbotConfig.auth), r = _n((y) => y.chatbotConfig.env), n = _n((y) => y.main.selectedConversationId), [i, o] = St(), a = dt(null), s = dt(null), [c, u] = St({ width: "0px", height: "0px", top: "0px", left: "0px" }), [l, d] = St("Start Interview");
|
|
119482
|
-
|
|
119482
|
+
At(() => {
|
|
119483
119483
|
var g;
|
|
119484
119484
|
const y = (g = Ac.get(n)) == null ? void 0 : g.attributes;
|
|
119485
119485
|
o({
|
|
@@ -119505,7 +119505,7 @@ const _mt = ({ messageType: e }) => {
|
|
|
119505
119505
|
}, h = () => d("Resume Interview"), m = () => {
|
|
119506
119506
|
d("Interview Completed");
|
|
119507
119507
|
};
|
|
119508
|
-
return
|
|
119508
|
+
return At(f, [l]), kt("div", { className: "myinterview-chatbot-widget", children: [Ee(Wc, { ref: s, size: "small", onClick: p, disabled: e, children: l }), Mb(Ee(wmt, { disabled: e, ref: a, buttonStyle: {
|
|
119509
119509
|
position: "fixed",
|
|
119510
119510
|
visibility: "hidden",
|
|
119511
119511
|
pointerEvents: "none",
|
|
@@ -119535,7 +119535,7 @@ const _mt = ({ messageType: e }) => {
|
|
|
119535
119535
|
params: { type: "chatbot", module_id: n }
|
|
119536
119536
|
}), hC = ({ transparent: e = !1, className: t }) => Ee("span", { className: Mr(t, "myinterview-chatbot-skeleton", { "myinterview-chatbot-skeleton--transparent": e }) }), Omt = 75, kmt = ({ id: e, completed: t }) => {
|
|
119537
119537
|
const r = _n((B) => B.chatbotConfig.auth), n = _n((B) => B.main.selectedConversationId), [i, o] = St(), [a, s] = St(!0), [c, u] = St(!1), [l, d] = St(t), [f, p] = St(""), [h, m] = St(""), [y, g] = St(0), [b, w] = St(0), $ = dt(null), E = dt(), _ = dt(null);
|
|
119538
|
-
|
|
119538
|
+
At(() => {
|
|
119539
119539
|
$mt(r).then((B) => {
|
|
119540
119540
|
o(B), s(!1);
|
|
119541
119541
|
});
|
|
@@ -119561,7 +119561,7 @@ const _mt = ({ messageType: e }) => {
|
|
|
119561
119561
|
const ne = B * Omt;
|
|
119562
119562
|
w((J) => Math.min(Math.max(J + ne, y), 0));
|
|
119563
119563
|
};
|
|
119564
|
-
|
|
119564
|
+
At(() => {
|
|
119565
119565
|
m("");
|
|
119566
119566
|
}, [f]);
|
|
119567
119567
|
const A = async () => {
|
|
@@ -119584,7 +119584,7 @@ const _mt = ({ messageType: e }) => {
|
|
|
119584
119584
|
g(G - Q), w(0);
|
|
119585
119585
|
}), _.current.observe(E.current);
|
|
119586
119586
|
}, []);
|
|
119587
|
-
return
|
|
119587
|
+
return At(() => {
|
|
119588
119588
|
if (!E.current)
|
|
119589
119589
|
return;
|
|
119590
119590
|
const { clientWidth: B, scrollWidth: ne } = E.current;
|
|
@@ -119627,7 +119627,7 @@ const h7 = {
|
|
|
119627
119627
|
}, g = () => {
|
|
119628
119628
|
l(!0), m();
|
|
119629
119629
|
};
|
|
119630
|
-
|
|
119630
|
+
At(() => {
|
|
119631
119631
|
y();
|
|
119632
119632
|
}, []);
|
|
119633
119633
|
const b = Mr("myinterview-chatbot-id-analyzer", {
|
|
@@ -119657,7 +119657,7 @@ const RT = {
|
|
|
119657
119657
|
const v = Math.min(Math.max(Math.round(-p.current / y) + m.current, 0), e.length - 1);
|
|
119658
119658
|
c.current = Math.min(Math.max(v, c.current - 1), c.current + 1), p.current = -c.current * y, a.current.style.transitionDuration = `${Pmt}ms`, o(c.current), g();
|
|
119659
119659
|
}, [y]);
|
|
119660
|
-
|
|
119660
|
+
At(() => {
|
|
119661
119661
|
h.current = y * (e.length - 1) - i, b();
|
|
119662
119662
|
}, [y]);
|
|
119663
119663
|
const w = Ut((v) => {
|
|
@@ -119703,7 +119703,7 @@ const RT = {
|
|
|
119703
119703
|
const f = Math.min(a.current.offsetLeft, 0), p = Math.min(Math.max(-t * u - f + c.current / 2, f), -f);
|
|
119704
119704
|
a.current.style.transform = `translate3d(${p}px, 0px, 0px)`;
|
|
119705
119705
|
}, [t, u]);
|
|
119706
|
-
|
|
119706
|
+
At(l, [t, l]);
|
|
119707
119707
|
const d = Ut((f) => {
|
|
119708
119708
|
var p;
|
|
119709
119709
|
if (o.current = f, !o.current) {
|
|
@@ -119788,7 +119788,7 @@ const RT = {
|
|
|
119788
119788
|
onSubmitAnswer: g,
|
|
119789
119789
|
...$.customAction && { customAction: b[$.customAction] }
|
|
119790
119790
|
}) : null, [$, g]);
|
|
119791
|
-
|
|
119791
|
+
At(() => {
|
|
119792
119792
|
d(!!($ != null && $.isExternalShown));
|
|
119793
119793
|
}, [$]);
|
|
119794
119794
|
const _ = () => {
|
|
@@ -119816,20 +119816,22 @@ const RT = {
|
|
|
119816
119816
|
onMediaReady: S
|
|
119817
119817
|
}), kt("div", { className: "myinterview-chatbot-message-item__content-main", children: [Ee(Nn, { className: "myinterview-chatbot-message-item__body", size: "P1-L", children: Ee(xmt, { text: e.body ?? "" }) }), $ && Ee("div", { className: "myinterview-chatbot-message-item__module-wrapper", children: $.isExternal ? $.triggerComponent && !l && !((k = e.attributes.module) != null && k.completed) ? $.triggerComponent({ ...$.triggerComponentProps, onClick: _ }) : null : E }), !y && kt("div", { className: "myinterview-chatbot-message-item__message-info", children: [Ee(mne, { value: e.dateCreated ?? e.attributes.ts ?? 0 }), r && Ee(rKe, { isPending: !e.sid })] })] })] })] }), a && e.dateCreated && Ee("div", { className: "myinterview-chatbot-message-item__date", children: Ee(Nn, { className: "myinterview-chatbot-message-item__date-value", size: "P1-S", children: cr.fromMillis(e.dateCreated).toLocaleString({ month: "short", day: "numeric" }) }) })] });
|
|
119818
119818
|
}, Bmt = ({ name: e, thumbSrc: t }) => kt("div", { className: "myinterview-chatbot-typing-indicator", children: [Ee(dw, { name: e, src: t, size: 40 }), Ee("div", { className: "myinterview-chatbot-typing-indicator__dots", children: [...Array(3)].map((r, n) => Ee("span", { className: "myinterview-chatbot-typing-indicator__dot" }, n)) })] }), zmt = ({ messages: e, currentUser: t, isBotTyping: r, paginatorCallback: n, submitModule: i, sendText: o }) => {
|
|
119819
|
-
const a = dt(), s = dt(), c = dt(null), u = qI({ callback: n
|
|
119820
|
-
s.current = f;
|
|
119819
|
+
const a = dt(), s = dt(), c = dt(null), u = qI({ callback: n }), l = Ut((f) => {
|
|
119820
|
+
console.log("handleIndicatorRef::node", f), s.current = f;
|
|
119821
119821
|
}, []), d = Ut((f) => {
|
|
119822
119822
|
var p;
|
|
119823
|
-
if (a.current = f, !a.current) {
|
|
119823
|
+
if (a.current = f, console.log("handleMessageListRef::node", f), console.log("handleMessageListRef::indicatorRef", s.current), !a.current) {
|
|
119824
119824
|
(p = c.current) == null || p.disconnect();
|
|
119825
119825
|
return;
|
|
119826
119826
|
}
|
|
119827
119827
|
c.current = new ResizeObserver((h) => {
|
|
119828
119828
|
var m;
|
|
119829
119829
|
(m = a.current) == null || m.style.setProperty("--myinterview-chatbot-conversation-content-width", `${h[0].contentBoxSize[0].inlineSize}px`);
|
|
119830
|
-
}), c.current.observe(a.current)
|
|
119830
|
+
}), c.current.observe(a.current);
|
|
119831
119831
|
}, []);
|
|
119832
|
-
return
|
|
119832
|
+
return At(() => {
|
|
119833
|
+
s.current && u(s.current, a.current);
|
|
119834
|
+
}, []), kt("div", { ref: d, className: "myinterview-chatbot-message-list", children: [r && Ee(Bmt, { name: "Taira", thumbSrc: I3 }), e.map((f, p) => {
|
|
119833
119835
|
var h, m, y;
|
|
119834
119836
|
return Ee(Fmt, { message: f, isGroup: !0, isCurrentUser: f.author === t.identity, isLastUserMessage: ((h = e[p - 1]) == null ? void 0 : h.author) !== f.author, isLastMessage: p === 0, isTopMessage: ((m = e[p + 1]) == null ? void 0 : m.author) !== f.author, displayDate: AGe(f.dateCreated ?? 0, ((y = e[p + 1]) == null ? void 0 : y.dateCreated) ?? 0), thumbnail: I3, submitModule: i, sendText: o }, f.attributes.ts ?? f.sid);
|
|
119835
119837
|
}), Ee("span", { ref: l })] });
|
|
@@ -119888,14 +119890,14 @@ const RT = {
|
|
|
119888
119890
|
const E = await $.prevPage();
|
|
119889
119891
|
Pse(c, w, E);
|
|
119890
119892
|
}, g = ((b = s[0]) == null ? void 0 : b.author) === a.identity;
|
|
119891
|
-
return
|
|
119893
|
+
return At(() => (g && (u.current = setTimeout(() => {
|
|
119892
119894
|
d(!0);
|
|
119893
119895
|
}, 15e3)), () => {
|
|
119894
119896
|
u.current && (clearTimeout(u.current), d(!1));
|
|
119895
119897
|
}), [g]), kt("div", { className: "myinterview-chatbot-conversation", children: [Ee(LGe, { title: "Taira", isCloseable: t, isBackable: r, onClose: n, onBack: i }), e && kt(md, { children: [Ee(zmt, { messages: s, currentUser: a, isBotTyping: !!e.attributes.bot_action, paginatorCallback: y, submitModule: m, sendText: f }), l && Ee("div", { className: "myinterview-chatbot-conversation__processing", children: Ee(Nn, { size: "P1-M", color: "white", children: "Processing your request. Please hold on, I'll be back shortly!" }) }), Ee(ZGe, { sendText: f, sendFile: p, sendRecordedAudio: h, isTairaSleeps: l })] })] });
|
|
119896
119898
|
}, Hmt = "300ms", Wmt = (e = 0) => {
|
|
119897
119899
|
const t = dt(null), [r, n] = St(e);
|
|
119898
|
-
|
|
119900
|
+
At(() => {
|
|
119899
119901
|
t.current && (t.current.style.transitionDuration = Hmt, t.current.style.transform = `translate3d(${`${r * -100}%`}, 0px, 0px)`);
|
|
119900
119902
|
}, [r]);
|
|
119901
119903
|
const i = () => {
|
|
@@ -120000,9 +120002,9 @@ const RT = {
|
|
|
120000
120002
|
}, [m]), w = () => {
|
|
120001
120003
|
e && u(0);
|
|
120002
120004
|
};
|
|
120003
|
-
|
|
120005
|
+
At(() => {
|
|
120004
120006
|
u(0);
|
|
120005
|
-
}, [l, e]),
|
|
120007
|
+
}, [l, e]), At(() => {
|
|
120006
120008
|
var _;
|
|
120007
120009
|
e || i(u_(((_ = f[0]) == null ? void 0 : _.sid) ?? "")), e && !l && !c && i(u_(""));
|
|
120008
120010
|
}, [e, l, c]);
|
|
@@ -120022,13 +120024,13 @@ const RT = {
|
|
|
120022
120024
|
const e = dt(null), t = _n((b) => b.chatbotConfig.usePopup), r = _n((b) => b.chatbotConfig.useInbox), n = _n((b) => b.chatbotConfig.position), i = _n((b) => b.chatbotConfig.offsetX), o = _n((b) => b.chatbotConfig.offsetY), a = _n((b) => b.chatbotConfig.preferredHeight), s = _n((b) => b.chatbotConfig.preferredWidth), c = _n((b) => b.chatbotConfig.theme), u = _n((b) => b.chatbotConfig.colors), l = _n((b) => b.ui.isOpen), [d, f] = St(!1), p = p1(), h = Ut((b) => {
|
|
120023
120025
|
f(c === "dark" || c === "deviceDefault" && b);
|
|
120024
120026
|
}, [c]);
|
|
120025
|
-
|
|
120027
|
+
At(() => (h(m7.matches), m7.addEventListener("change", (b) => h(b.matches)), () => m7.removeEventListener("change", (b) => h(b.matches))), [c, h]);
|
|
120026
120028
|
const m = Ut(() => {
|
|
120027
120029
|
t && p($E(!l));
|
|
120028
120030
|
}, [l]), y = Ut(() => {
|
|
120029
120031
|
t && p($E(!1));
|
|
120030
120032
|
}, []);
|
|
120031
|
-
|
|
120033
|
+
At(() => {
|
|
120032
120034
|
e.current && (i && e.current.style.setProperty("--myinterview-chatbot-popup-offset-position-x", i), o && e.current.style.setProperty("--myinterview-chatbot-popup-offset-position-y", o), a && e.current.style.setProperty("--myinterview-chatbot-chatbox-height", `${a}px`), s && e.current.style.setProperty("--myinterview-chatbot-chatbox-width", `${s}px`), d ? (u.primaryDarkColor ? e.current.style.setProperty("--theme-color-primary", u.primaryDarkColor) : e.current.style.removeProperty("--theme-color-primary"), u.secondaryDarkColor ? e.current.style.setProperty("--theme-color-secondary", u.secondaryDarkColor) : e.current.style.removeProperty("--theme-color-secondary")) : (u.primaryColor ? e.current.style.setProperty("--theme-color-primary", u.primaryColor) : e.current.style.removeProperty("--theme-color-primary"), u.secondaryColor ? e.current.style.setProperty("--theme-color-secondary", u.secondaryColor) : e.current.style.removeProperty("--theme-color-secondary")));
|
|
120033
120035
|
}, [i, o, u, a, s, d]);
|
|
120034
120036
|
const g = Mr("myinterview-chatbot-main", {
|
|
@@ -120047,7 +120049,7 @@ const RT = {
|
|
|
120047
120049
|
cde() && sde(), Jye({
|
|
120048
120050
|
dsn: vm.SENTRY_DSN,
|
|
120049
120051
|
environment: "production",
|
|
120050
|
-
release: "0.1.43--test-observer-
|
|
120052
|
+
release: "0.1.43--test-observer-4",
|
|
120051
120053
|
integrations: [
|
|
120052
120054
|
Tye(),
|
|
120053
120055
|
fye()
|
|
@@ -120078,7 +120080,7 @@ const s1t = Object.fromEntries(Object.entries(Intl.DateTimeFormat().resolvedOpti
|
|
|
120078
120080
|
await y(w);
|
|
120079
120081
|
}
|
|
120080
120082
|
}, []);
|
|
120081
|
-
|
|
120083
|
+
At(() => i.current ? (n.current = new zK.Client(i.current), n.current.on("stateChanged", (w) => {
|
|
120082
120084
|
var $;
|
|
120083
120085
|
w === "failed" && (Cs.error("Failed to initialize client. Reinitializing..."), y(!0)), w === "initialized" && (($ = n.current) != null && $.user && s(Yze(dVe(n.current.user))), h.current && !PW("candidate_id") && a1t("candidate_id", h.current));
|
|
120084
120086
|
}), n.current.on("conversationJoined", (w) => {
|
|
@@ -120132,9 +120134,9 @@ const s1t = Object.fromEntries(Object.entries(Intl.DateTimeFormat().resolvedOpti
|
|
|
120132
120134
|
const g = Ut(() => {
|
|
120133
120135
|
as && c && (d ? (document.body.style.maxHeight = "100vh", document.body.style.overflow = "hidden") : (document.body.style.maxHeight = p.current.maxHeight, document.body.style.overflow = p.current.overflow));
|
|
120134
120136
|
}, [d]);
|
|
120135
|
-
|
|
120137
|
+
At(() => {
|
|
120136
120138
|
g();
|
|
120137
|
-
}, [d]),
|
|
120139
|
+
}, [d]), At(() => {
|
|
120138
120140
|
if (!l)
|
|
120139
120141
|
return () => {
|
|
120140
120142
|
};
|
|
@@ -120146,13 +120148,13 @@ const s1t = Object.fromEntries(Object.entries(Intl.DateTimeFormat().resolvedOpti
|
|
|
120146
120148
|
};
|
|
120147
120149
|
}, [l]), Eu(() => {
|
|
120148
120150
|
s(Hze(lVe(e)));
|
|
120149
|
-
}, [e]),
|
|
120151
|
+
}, [e]), At(() => {
|
|
120150
120152
|
!u || d || s($E(f));
|
|
120151
120153
|
}, [u, f]);
|
|
120152
120154
|
const b = Ut((w) => {
|
|
120153
120155
|
r.current = w;
|
|
120154
120156
|
}, []);
|
|
120155
|
-
return
|
|
120157
|
+
return At(() => {
|
|
120156
120158
|
const w = document.createElement("link");
|
|
120157
120159
|
return w.rel = "stylesheet", w.href = aL, document.head.appendChild(w), () => {
|
|
120158
120160
|
w.remove();
|