@myinterview/chatbot 0.1.43--test-observer-3 → 0.1.43-beta-a073ac7
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 +165 -163
- 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 Mse, createContext as Nb, forwardRef as CT, useRef as dt, useEffect as
|
|
3
|
+
import M, { version as Mse, createContext as Nb, forwardRef as CT, useRef as dt, useEffect as At, useState as St, useLayoutEffect as Eu, useImperativeHandle as xT, useDebugValue as x_, useContext as zl, createElement as Bm, useCallback as Ut, useMemo as qi, memo as PW, useTransition as jse } from "react";
|
|
4
4
|
import { createRoot as Lse } 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 Db, flushSync as Use } from "react-dom";
|
|
@@ -15527,7 +15527,7 @@ function sS(e) {
|
|
|
15527
15527
|
}
|
|
15528
15528
|
function O2e(e) {
|
|
15529
15529
|
var t = CT(function(r, n) {
|
|
15530
|
-
var i, o, a = r.mode, s = r.delegatesFocus, c = r.styleSheets, u = r.ssr, l = r.children, d = jK(r, ["mode", "delegatesFocus", "styleSheets", "ssr", "children"]), f = (o = dt((i = n) && i.current),
|
|
15530
|
+
var i, o, a = r.mode, s = r.delegatesFocus, c = r.styleSheets, u = r.ssr, l = r.children, d = jK(r, ["mode", "delegatesFocus", "styleSheets", "ssr", "children"]), f = (o = dt((i = n) && i.current), At(function() {
|
|
15531
15531
|
i && (i.current = o.current);
|
|
15532
15532
|
}, [i]), o), p = St(null), h = E2e(p, 2), m = h[0], y = h[1], g = "node_".concat(a).concat(s);
|
|
15533
15533
|
return Eu(function() {
|
|
@@ -45313,7 +45313,7 @@ let vm = Gee;
|
|
|
45313
45313
|
const EBe = (e) => {
|
|
45314
45314
|
let t = e;
|
|
45315
45315
|
try {
|
|
45316
|
-
t ?? (t = "
|
|
45316
|
+
t ?? (t = "staging");
|
|
45317
45317
|
} catch {
|
|
45318
45318
|
}
|
|
45319
45319
|
vm = (() => {
|
|
@@ -59976,10 +59976,10 @@ const CGe = (e) => Math.abs(Date.now() - e) < rVe, xGe = (e, t) => cr.fromMillis
|
|
|
59976
59976
|
const r = dt(null), n = dt(null), i = (o, a) => {
|
|
59977
59977
|
var s;
|
|
59978
59978
|
r.current = o, (s = n.current) == null || s.disconnect(), n.current = new IntersectionObserver(([c]) => {
|
|
59979
|
-
|
|
59980
|
-
}, { ...t, ...a && { root: a } }), n.current.observe(r.current)
|
|
59979
|
+
c.isIntersecting && e(c);
|
|
59980
|
+
}, { ...t, ...a && { root: a } }), n.current.observe(r.current);
|
|
59981
59981
|
};
|
|
59982
|
-
return
|
|
59982
|
+
return At(() => () => {
|
|
59983
59983
|
var o;
|
|
59984
59984
|
(o = n.current) == null || o.disconnect(), r.current = null;
|
|
59985
59985
|
}, []), i;
|
|
@@ -59993,7 +59993,7 @@ const CGe = (e) => Math.abs(Date.now() - e) < rVe, xGe = (e, t) => cr.fromMillis
|
|
|
59993
59993
|
var p, h;
|
|
59994
59994
|
return [f.sid, ((h = (p = a[f.sid]) == null ? void 0 : p[0]) == null ? void 0 : h.body) || ""];
|
|
59995
59995
|
})), [e, a]), l = qi(() => e.filter((f) => s.get(f.sid)), [e, s]);
|
|
59996
|
-
|
|
59996
|
+
At(() => {
|
|
59997
59997
|
e.length && Promise.all(e.map((f) => {
|
|
59998
59998
|
var p;
|
|
59999
59999
|
return (p = Ac.get(f.sid)) == null ? void 0 : p.getUnreadMessagesCount().then((h) => h);
|
|
@@ -82093,7 +82093,7 @@ const CGe = (e) => Math.abs(Date.now() - e) < rVe, xGe = (e, t) => cr.fromMillis
|
|
|
82093
82093
|
var h;
|
|
82094
82094
|
(h = l.current) == null || h.scrollTo({ top: 0 });
|
|
82095
82095
|
}, []);
|
|
82096
|
-
return
|
|
82096
|
+
return At(() => p(), [a, p]), At(() => {
|
|
82097
82097
|
e && (p(), n(""), o(Ld[0].id), s(ph[Ld[0].label]));
|
|
82098
82098
|
}, [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(fre, { 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(dre, {}) })] }), 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)) })] }) });
|
|
82099
82099
|
}, vne = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3ZhciBhPShuPT4obi5JTklUPSJpbml0IixuLlNFVD0ic2V0IixuLkNMRUFSPSJjbGVhciIsbikpKGF8fHt9KTtsZXQgdD1udWxsLGU9bnVsbCxjPTQwO2NvbnN0IHI9MjAsZj17W2EuSU5JVF06bj0+e24uY2FudmFzJiYodD1uLmNhbnZhcyxjPU1hdGgubWluKHQud2lkdGgsdC5oZWlnaHQpLzUsZT10LmdldENvbnRleHQoIjJkIiksZS5maWxsU3R5bGU9IiM2NjkwZmYiLGUuc2NhbGUoMSwxKSl9LFthLlNFVF06KHtkYXRhOm59KT0+e2lmKCF0fHwhZXx8IW4pcmV0dXJuO2UuY2xlYXJSZWN0KDAsMCx0LndpZHRoLHQuaGVpZ2h0KTtjb25zdCBoPW4ucmVkdWNlKChnLHUpPT5nK3UsMCkvbi5sZW5ndGgscz1NYXRoLnJvdW5kKGgvMjU1KjEwMCk7ZS5iZWdpblBhdGgoKTtjb25zdCBsPU1hdGgubWluKGMrcy8yLHQud2lkdGgvMi1yKTtlLmZpbGxTdHlsZT0iIzY2OTBmZjU1IixlLmFyYyh0LndpZHRoLzIsdC5oZWlnaHQvMixsKzUsMCwyKk1hdGguUEkpLGUuZmlsbCgpLGUuYmVnaW5QYXRoKCksZS5maWxsU3R5bGU9IiM2NjkwZmYiLGUuYXJjKHQud2lkdGgvMix0LmhlaWdodC8yLGwsMCwyKk1hdGguUEkpLGUuZmlsbCgpfSxbYS5DTEVBUl06KCk9PnshdHx8IWV8fGUuY2xlYXJSZWN0KDAsMCx0LndpZHRoLHQuaGVpZ2h0KX19O29ubWVzc2FnZT1uPT57Y29uc3R7YWN0aW9uOmkscGF5bG9hZDpofT1uLmRhdGE7ZltpXShoKX19KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1hdWRpb1Zpc3VhbGl6ZXIud29ya2VyLURhWXhrNEVLLmpzLm1hcAo=", VGe = (e) => Uint8Array.from(atob(e), (t) => t.charCodeAt(0)), FF = typeof window < "u" && window.Blob && new Blob([VGe(vne)], { type: "text/javascript;charset=utf-8" });
|
|
@@ -82195,7 +82195,7 @@ const WGe = 50, qGe = () => {
|
|
|
82195
82195
|
}
|
|
82196
82196
|
t.current.onstop = w, t.current.stop(), c(null);
|
|
82197
82197
|
}, []);
|
|
82198
|
-
return
|
|
82198
|
+
return At(() => (h.current = new HGe(), () => {
|
|
82199
82199
|
var v;
|
|
82200
82200
|
w(), c(null), (v = h.current) == null || v.terminate();
|
|
82201
82201
|
}), []), { startRecording: E, stopRecording: _, clearRecording: S, isRecording: n, recordingTime: y, isCheckingPermissions: o, audioBlob: s };
|
|
@@ -82236,7 +82236,7 @@ const WGe = 50, qGe = () => {
|
|
|
82236
82236
|
}, [y]), w = () => {
|
|
82237
82237
|
f(!1), g();
|
|
82238
82238
|
};
|
|
82239
|
-
|
|
82239
|
+
At(() => (n.current = (URL || webkitURL).createObjectURL(e), (async () => {
|
|
82240
82240
|
const A = await e.arrayBuffer(), B = await new AudioContext().decodeAudioData(A);
|
|
82241
82241
|
l(B.duration), o.current = B.getChannelData(0);
|
|
82242
82242
|
})(), i.current = new Audio(n.current), i.current.addEventListener("playing", b), i.current.addEventListener("pause", w), () => {
|
|
@@ -82374,11 +82374,11 @@ const WGe = 50, qGe = () => {
|
|
|
82374
82374
|
}, _ = () => {
|
|
82375
82375
|
p((v) => ({ ...v, transform: "translateY(0px)", transition: void 0 })), Math.abs(y.current) > oKe && b(), m.current = null, y.current = 0;
|
|
82376
82376
|
};
|
|
82377
|
-
|
|
82377
|
+
At(() => {
|
|
82378
82378
|
c && (p({ width: "100%", height: "100%", left: "0px", top: "0px", borderRadius: "0px 0px 0px 0px" }), d(!0));
|
|
82379
|
-
}, [c]),
|
|
82379
|
+
}, [c]), At(() => {
|
|
82380
82380
|
!a && (n == null || n());
|
|
82381
|
-
}, [a]),
|
|
82381
|
+
}, [a]), At(() => {
|
|
82382
82382
|
if (!e)
|
|
82383
82383
|
return;
|
|
82384
82384
|
if (r) {
|
|
@@ -82392,7 +82392,7 @@ const WGe = 50, qGe = () => {
|
|
|
82392
82392
|
const C = O.toDataURL();
|
|
82393
82393
|
o(C), v.remove();
|
|
82394
82394
|
}, v.src = e;
|
|
82395
|
-
}, [e]),
|
|
82395
|
+
}, [e]), At(() => (document.addEventListener("keydown", $), () => {
|
|
82396
82396
|
document.removeEventListener("keydown", $);
|
|
82397
82397
|
}), []);
|
|
82398
82398
|
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 && {
|
|
@@ -82402,21 +82402,21 @@ const WGe = 50, qGe = () => {
|
|
|
82402
82402
|
return Ee("div", { className: "myinterview-chatbot-media-image", children: e && (c ? Db(kt("div", { className: Mr("myinterview-chatbot-media-image__preview", { "myinterview-chatbot-media-image__preview--previewing": l }), role: "presentation", children: [Ee("style", { children: nKe }), Ee("style", { children: iKe }), Ee("style", { children: rKe }), 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) });
|
|
82403
82403
|
}, KI = (e) => e.split("/")[0], aKe = (e) => ["image", "video"].includes(KI(e)), sKe = ({ mediaUrl: e, onMediaReady: t }) => {
|
|
82404
82404
|
const [r, n] = St(!0);
|
|
82405
|
-
return
|
|
82405
|
+
return At(() => {
|
|
82406
82406
|
!r && t();
|
|
82407
82407
|
}, [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 }) });
|
|
82408
82408
|
}, cKe = ({ mediaUrl: e, transcript: t = "", onMediaReady: r }) => {
|
|
82409
82409
|
const [n, i] = St(null);
|
|
82410
|
-
return
|
|
82410
|
+
return At(() => {
|
|
82411
82411
|
e && fetch(e).then((o) => o.blob().then(i));
|
|
82412
|
-
}, [e]),
|
|
82412
|
+
}, [e]), At(() => {
|
|
82413
82413
|
n && r();
|
|
82414
82414
|
}, [n]), kt("div", { className: "myinterview-chatbot-media-audio", children: [n && Ee(_ne, { audioBlob: n, classes: "myinterview-chatbot-media-audio__player" }), Ee(Nn, { className: "myinterview-chatbot-media-audio__transcirpt", children: t })] });
|
|
82415
82415
|
}, uKe = () => 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" })] }), lKe = () => 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" })] }), dKe = ({ mediaUrl: e, title: t, onMediaReady: r }) => {
|
|
82416
82416
|
const [n, i] = St(null);
|
|
82417
|
-
|
|
82417
|
+
At(() => {
|
|
82418
82418
|
e && fetch(e).then((a) => a.blob().then(i));
|
|
82419
|
-
}, [e]),
|
|
82419
|
+
}, [e]), At(() => {
|
|
82420
82420
|
n && r();
|
|
82421
82421
|
}, [n]);
|
|
82422
82422
|
const o = () => {
|
|
@@ -82432,7 +82432,7 @@ const WGe = 50, qGe = () => {
|
|
|
82432
82432
|
video: sKe
|
|
82433
82433
|
}), pKe = ({ media: e, mediaDimensions: t, transcript: r, onMediaReady: n }) => {
|
|
82434
82434
|
const [i, o] = St(null);
|
|
82435
|
-
|
|
82435
|
+
At(() => {
|
|
82436
82436
|
e && Gze(e.sid || "").getContentTemporaryUrl().then(o);
|
|
82437
82437
|
}, [e]);
|
|
82438
82438
|
const a = qi(() => {
|
|
@@ -83368,7 +83368,7 @@ function r$(e) {
|
|
|
83368
83368
|
}
|
|
83369
83369
|
function LKe(e) {
|
|
83370
83370
|
var t = CT(function(r, n) {
|
|
83371
|
-
var i, o, a = r.mode, s = r.delegatesFocus, c = r.styleSheets, u = r.ssr, l = r.children, d = MKe(r, ["mode", "delegatesFocus", "styleSheets", "ssr", "children"]), f = (o = dt((i = n) && i.current),
|
|
83371
|
+
var i, o, a = r.mode, s = r.delegatesFocus, c = r.styleSheets, u = r.ssr, l = r.children, d = MKe(r, ["mode", "delegatesFocus", "styleSheets", "ssr", "children"]), f = (o = dt((i = n) && i.current), At(function() {
|
|
83372
83372
|
i && (i.current = o.current);
|
|
83373
83373
|
}, [i]), o), p = St(null), h = NKe(p, 2), m = h[0], y = h[1], g = "node_".concat(a).concat(s);
|
|
83374
83374
|
return Eu(function() {
|
|
@@ -84852,7 +84852,7 @@ const HYe = (e) => {
|
|
|
84852
84852
|
var m, y, g;
|
|
84853
84853
|
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();
|
|
84854
84854
|
};
|
|
84855
|
-
|
|
84855
|
+
At(() => (document.addEventListener("click", f), () => document.removeEventListener("click", f)), []), At(() => {
|
|
84856
84856
|
d.current && l(window.getComputedStyle(d.current).zIndex);
|
|
84857
84857
|
}, [d.current]);
|
|
84858
84858
|
const p = Pf({ "myinterview-modal-wrapper": !0, "myinterview-modal-wrapper--fullscreen": r });
|
|
@@ -89932,7 +89932,7 @@ function DJe(e) {
|
|
|
89932
89932
|
var f = a.subscribe(d).unsubscribe;
|
|
89933
89933
|
return f;
|
|
89934
89934
|
}, [a]), l = tR.exports.useSyncExternalStoreWithSelector(u, s, s, NJe, c);
|
|
89935
|
-
return
|
|
89935
|
+
return At(function() {
|
|
89936
89936
|
var d = o.state;
|
|
89937
89937
|
return a.start(d ? es.create(d) : void 0), function() {
|
|
89938
89938
|
a.stop(), a.status = Ri.NotStarted;
|
|
@@ -90358,7 +90358,7 @@ function v8(e) {
|
|
|
90358
90358
|
}
|
|
90359
90359
|
var nQe = function(t, r) {
|
|
90360
90360
|
var n = dt();
|
|
90361
|
-
return
|
|
90361
|
+
return At(function() {
|
|
90362
90362
|
n.current = r ? n.current : t;
|
|
90363
90363
|
}, [t, r]), n.current;
|
|
90364
90364
|
};
|
|
@@ -90381,7 +90381,7 @@ function Xn(e) {
|
|
|
90381
90381
|
return a.getFixedT(null, u.nsMode === "fallback" ? f : f[0], d);
|
|
90382
90382
|
}
|
|
90383
90383
|
var m = St(h), y = rQe(m, 2), g = y[0], b = y[1], w = f.join(), $ = nQe(w), E = dt(!0);
|
|
90384
|
-
|
|
90384
|
+
At(function() {
|
|
90385
90385
|
var v = u.bindI18n, O = u.bindI18nStore;
|
|
90386
90386
|
E.current = !0, !p && !l && Rz(a, f, function() {
|
|
90387
90387
|
E.current && b(h);
|
|
@@ -90398,7 +90398,7 @@ function Xn(e) {
|
|
|
90398
90398
|
};
|
|
90399
90399
|
}, [a, w]);
|
|
90400
90400
|
var _ = dt(!0);
|
|
90401
|
-
|
|
90401
|
+
At(function() {
|
|
90402
90402
|
E.current && !_.current && b(h), _.current = !1;
|
|
90403
90403
|
}, [a, d]);
|
|
90404
90404
|
var S = [g, a, p];
|
|
@@ -92746,7 +92746,7 @@ var k$ = { exports: {} };
|
|
|
92746
92746
|
}) : n.platform = S;
|
|
92747
92747
|
}).call(Fh);
|
|
92748
92748
|
})(k$, k$.exports);
|
|
92749
|
-
var pd = k$.exports, BQe = "2.0.0-beta.1", Om = "", Jz = "?", I$ = "function", Ll = "undefined", km = "object", Ql = "string", Mv = "major",
|
|
92749
|
+
var pd = k$.exports, BQe = "2.0.0-beta.1", Om = "", Jz = "?", 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", Qz = "user-agent", C$ = 350, fR = "brands", Jd = "formFactor", pR = "fullVersionList", zh = "platform", hR = "platformVersion", Ew = "bitness", Td = "sec-ch-ua", zQe = Td + "-full-version-list", VQe = Td + "-arch", HQe = Td + "-" + Ew, WQe = Td + "-form-factor", qQe = Td + "-" + Br, GQe = Td + "-" + Nt, Oie = Td + "-" + zh, KQe = Oie + "-version", kie = [fR, pR, Br, Nt, zh, hR, ha, Jd, Ew], xa = "browser", fu = "cpu", gc = "device", gu = "engine", rs = "os", Vh = "result", R2 = "Amazon", Z1 = "Apple", Zz = "ASUS", eV = "BlackBerry", k0 = "Google", tV = "Huawei", y8 = "LG", _8 = "Microsoft", rV = "Motorola", b8 = "Samsung", nV = "Sharp", C2 = "Sony", w8 = "Xiaomi", S8 = "Zebra", zp = "Mobile ", e0 = " Browser", x2 = "Chrome", YQe = "Edge", t0 = "Firefox", A2 = "Opera", iV = "Facebook", Iie = "Windows", ma = typeof window !== Ll && window.navigator ? window.navigator : void 0, Rl = ma && ma.userAgentData ? ma.userAgentData : void 0, XQe = function(e, t) {
|
|
92750
92750
|
var r = {};
|
|
92751
92751
|
for (var n in e)
|
|
92752
92752
|
r[n] = t[n] && t[n].length % 2 === 0 ? t[n].concat(e[n]) : e[n];
|
|
@@ -93164,45 +93164,45 @@ var pd = k$.exports, BQe = "2.0.0-beta.1", Om = "", Jz = "?", I$ = "function", L
|
|
|
93164
93164
|
// Samsung
|
|
93165
93165
|
/\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
|
|
93166
93166
|
],
|
|
93167
|
-
[
|
|
93167
|
+
[Nt, [Bt, b8], [Pt, Ti]],
|
|
93168
93168
|
[
|
|
93169
93169
|
/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,
|
|
93170
93170
|
/samsung[- ]([-\w]+)/i,
|
|
93171
93171
|
/sec-(sgh\w+)/i
|
|
93172
93172
|
],
|
|
93173
|
-
[
|
|
93173
|
+
[Nt, [Bt, b8], [Pt, Br]],
|
|
93174
93174
|
[
|
|
93175
93175
|
// Apple
|
|
93176
93176
|
/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i
|
|
93177
93177
|
// iPod/iPhone
|
|
93178
93178
|
],
|
|
93179
|
-
[
|
|
93179
|
+
[Nt, [Bt, Z1], [Pt, Br]],
|
|
93180
93180
|
[
|
|
93181
93181
|
/\((ipad);[-\w\),; ]+apple/i,
|
|
93182
93182
|
// iPad
|
|
93183
93183
|
/applecoremedia\/[\w\.]+ \((ipad)/i,
|
|
93184
93184
|
/\b(ipad)\d\d?,\d\d?[;\]].+ios/i
|
|
93185
93185
|
],
|
|
93186
|
-
[
|
|
93186
|
+
[Nt, [Bt, Z1], [Pt, Ti]],
|
|
93187
93187
|
[
|
|
93188
93188
|
/(macintosh);/i
|
|
93189
93189
|
],
|
|
93190
|
-
[
|
|
93190
|
+
[Nt, [Bt, Z1]],
|
|
93191
93191
|
[
|
|
93192
93192
|
// Sharp
|
|
93193
93193
|
/\b(sh-?[altvz]?\d\d[a-ekm]?)/i
|
|
93194
93194
|
],
|
|
93195
|
-
[
|
|
93195
|
+
[Nt, [Bt, nV], [Pt, Br]],
|
|
93196
93196
|
[
|
|
93197
93197
|
// Huawei
|
|
93198
93198
|
/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i
|
|
93199
93199
|
],
|
|
93200
|
-
[
|
|
93200
|
+
[Nt, [Bt, tV], [Pt, Ti]],
|
|
93201
93201
|
[
|
|
93202
93202
|
/(?:huawei|honor)([-\w ]+)[;\)]/i,
|
|
93203
93203
|
/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i
|
|
93204
93204
|
],
|
|
93205
|
-
[
|
|
93205
|
+
[Nt, [Bt, tV], [Pt, Br]],
|
|
93206
93206
|
[
|
|
93207
93207
|
// Xiaomi
|
|
93208
93208
|
/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,
|
|
@@ -93218,92 +93218,92 @@ var pd = k$.exports, BQe = "2.0.0-beta.1", Om = "", Jz = "?", I$ = "function", L
|
|
|
93218
93218
|
/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i
|
|
93219
93219
|
// Xiaomi Mi
|
|
93220
93220
|
],
|
|
93221
|
-
[[
|
|
93221
|
+
[[Nt, /_/g, " "], [Bt, w8], [Pt, Br]],
|
|
93222
93222
|
[
|
|
93223
93223
|
/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,
|
|
93224
93224
|
// Redmi Pad
|
|
93225
93225
|
/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i
|
|
93226
93226
|
// Mi Pad tablets
|
|
93227
93227
|
],
|
|
93228
|
-
[[
|
|
93228
|
+
[[Nt, /_/g, " "], [Bt, w8], [Pt, Ti]],
|
|
93229
93229
|
[
|
|
93230
93230
|
// OPPO
|
|
93231
93231
|
/; (\w+) bui.+ oppo/i,
|
|
93232
93232
|
/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i
|
|
93233
93233
|
],
|
|
93234
|
-
[
|
|
93234
|
+
[Nt, [Bt, "OPPO"], [Pt, Br]],
|
|
93235
93235
|
[
|
|
93236
93236
|
// Vivo
|
|
93237
93237
|
/vivo (\w+)(?: bui|\))/i,
|
|
93238
93238
|
/\b(v[12]\d{3}\w?[at])(?: bui|;)/i
|
|
93239
93239
|
],
|
|
93240
|
-
[
|
|
93240
|
+
[Nt, [Bt, "Vivo"], [Pt, Br]],
|
|
93241
93241
|
[
|
|
93242
93242
|
// Realme
|
|
93243
93243
|
/\b(rmx[1-3]\d{3})(?: bui|;|\))/i
|
|
93244
93244
|
],
|
|
93245
|
-
[
|
|
93245
|
+
[Nt, [Bt, "Realme"], [Pt, Br]],
|
|
93246
93246
|
[
|
|
93247
93247
|
// Motorola
|
|
93248
93248
|
/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,
|
|
93249
93249
|
/\bmot(?:orola)?[- ](\w*)/i,
|
|
93250
93250
|
/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i
|
|
93251
93251
|
],
|
|
93252
|
-
[
|
|
93252
|
+
[Nt, [Bt, rV], [Pt, Br]],
|
|
93253
93253
|
[
|
|
93254
93254
|
/\b(mz60\d|xoom[2 ]{0,2}) build\//i
|
|
93255
93255
|
],
|
|
93256
|
-
[
|
|
93256
|
+
[Nt, [Bt, rV], [Pt, Ti]],
|
|
93257
93257
|
[
|
|
93258
93258
|
// LG
|
|
93259
93259
|
/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i
|
|
93260
93260
|
],
|
|
93261
|
-
[
|
|
93261
|
+
[Nt, [Bt, y8], [Pt, Ti]],
|
|
93262
93262
|
[
|
|
93263
93263
|
/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,
|
|
93264
93264
|
/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,
|
|
93265
93265
|
/\blg-?([\d\w]+) bui/i
|
|
93266
93266
|
],
|
|
93267
|
-
[
|
|
93267
|
+
[Nt, [Bt, y8], [Pt, Br]],
|
|
93268
93268
|
[
|
|
93269
93269
|
// Lenovo
|
|
93270
93270
|
/(ideatab[-\w ]+)/i,
|
|
93271
93271
|
/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i
|
|
93272
93272
|
],
|
|
93273
|
-
[
|
|
93273
|
+
[Nt, [Bt, "Lenovo"], [Pt, Ti]],
|
|
93274
93274
|
[
|
|
93275
93275
|
// Nokia
|
|
93276
93276
|
/(?:maemo|nokia).*(n900|lumia \d+)/i,
|
|
93277
93277
|
/nokia[-_ ]?([-\w\.]*)/i
|
|
93278
93278
|
],
|
|
93279
|
-
[[
|
|
93279
|
+
[[Nt, /_/g, " "], [Bt, "Nokia"], [Pt, Br]],
|
|
93280
93280
|
[
|
|
93281
93281
|
// Google
|
|
93282
93282
|
/(pixel c)\b/i
|
|
93283
93283
|
// Google Pixel C
|
|
93284
93284
|
],
|
|
93285
|
-
[
|
|
93285
|
+
[Nt, [Bt, k0], [Pt, Ti]],
|
|
93286
93286
|
[
|
|
93287
93287
|
/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i
|
|
93288
93288
|
// Google Pixel
|
|
93289
93289
|
],
|
|
93290
|
-
[
|
|
93290
|
+
[Nt, [Bt, k0], [Pt, Br]],
|
|
93291
93291
|
[
|
|
93292
93292
|
// Sony
|
|
93293
93293
|
/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
|
|
93294
93294
|
],
|
|
93295
|
-
[
|
|
93295
|
+
[Nt, [Bt, C2], [Pt, Br]],
|
|
93296
93296
|
[
|
|
93297
93297
|
/sony tablet [ps]/i,
|
|
93298
93298
|
/\b(?:sony)?sgp\w+(?: bui|\))/i
|
|
93299
93299
|
],
|
|
93300
|
-
[[
|
|
93300
|
+
[[Nt, "Xperia Tablet"], [Bt, C2], [Pt, Ti]],
|
|
93301
93301
|
[
|
|
93302
93302
|
// OnePlus
|
|
93303
93303
|
/ (kb2005|in20[12]5|be20[12][59])\b/i,
|
|
93304
93304
|
/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i
|
|
93305
93305
|
],
|
|
93306
|
-
[
|
|
93306
|
+
[Nt, [Bt, "OnePlus"], [Pt, Br]],
|
|
93307
93307
|
[
|
|
93308
93308
|
// Amazon
|
|
93309
93309
|
/(alexa)webm/i,
|
|
@@ -93312,39 +93312,39 @@ var pd = k$.exports, BQe = "2.0.0-beta.1", Om = "", Jz = "?", I$ = "function", L
|
|
|
93312
93312
|
/(kf[a-z]+)( bui|\)).+silk\//i
|
|
93313
93313
|
// Kindle Fire HD
|
|
93314
93314
|
],
|
|
93315
|
-
[
|
|
93315
|
+
[Nt, [Bt, R2], [Pt, Ti]],
|
|
93316
93316
|
[
|
|
93317
93317
|
/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i
|
|
93318
93318
|
// Fire Phone
|
|
93319
93319
|
],
|
|
93320
|
-
[[
|
|
93320
|
+
[[Nt, /(.+)/g, "Fire Phone $1"], [Bt, R2], [Pt, Br]],
|
|
93321
93321
|
[
|
|
93322
93322
|
// BlackBerry
|
|
93323
93323
|
/(playbook);[-\w\),; ]+(rim)/i
|
|
93324
93324
|
// BlackBerry PlayBook
|
|
93325
93325
|
],
|
|
93326
|
-
[
|
|
93326
|
+
[Nt, Bt, [Pt, Ti]],
|
|
93327
93327
|
[
|
|
93328
93328
|
/\b((?:bb[a-f]|st[hv])100-\d)/i,
|
|
93329
93329
|
/\(bb10; (\w+)/i
|
|
93330
93330
|
// BlackBerry 10
|
|
93331
93331
|
],
|
|
93332
|
-
[
|
|
93332
|
+
[Nt, [Bt, eV], [Pt, Br]],
|
|
93333
93333
|
[
|
|
93334
93334
|
// Asus
|
|
93335
93335
|
/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i
|
|
93336
93336
|
],
|
|
93337
|
-
[
|
|
93337
|
+
[Nt, [Bt, Zz], [Pt, Ti]],
|
|
93338
93338
|
[
|
|
93339
93339
|
/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i
|
|
93340
93340
|
],
|
|
93341
|
-
[
|
|
93341
|
+
[Nt, [Bt, Zz], [Pt, Br]],
|
|
93342
93342
|
[
|
|
93343
93343
|
// HTC
|
|
93344
93344
|
/(nexus 9)/i
|
|
93345
93345
|
// HTC Nexus 9
|
|
93346
93346
|
],
|
|
93347
|
-
[
|
|
93347
|
+
[Nt, [Bt, "HTC"], [Pt, Ti]],
|
|
93348
93348
|
[
|
|
93349
93349
|
/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,
|
|
93350
93350
|
// HTC
|
|
@@ -93353,23 +93353,23 @@ var pd = k$.exports, BQe = "2.0.0-beta.1", Om = "", Jz = "?", I$ = "function", L
|
|
|
93353
93353
|
/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i
|
|
93354
93354
|
// Alcatel/GeeksPhone/Nexian/Panasonic/Sony
|
|
93355
93355
|
],
|
|
93356
|
-
[Bt, [
|
|
93356
|
+
[Bt, [Nt, /_/g, " "], [Pt, Br]],
|
|
93357
93357
|
[
|
|
93358
93358
|
// Acer
|
|
93359
93359
|
/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i
|
|
93360
93360
|
],
|
|
93361
|
-
[
|
|
93361
|
+
[Nt, [Bt, "Acer"], [Pt, Ti]],
|
|
93362
93362
|
[
|
|
93363
93363
|
// Meizu
|
|
93364
93364
|
/droid.+; (m[1-5] note) bui/i,
|
|
93365
93365
|
/\bmz-([-\w]{2,})/i
|
|
93366
93366
|
],
|
|
93367
|
-
[
|
|
93367
|
+
[Nt, [Bt, "Meizu"], [Pt, Br]],
|
|
93368
93368
|
[
|
|
93369
93369
|
// Ulefone
|
|
93370
93370
|
/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i
|
|
93371
93371
|
],
|
|
93372
|
-
[
|
|
93372
|
+
[Nt, [Bt, "Ulefone"], [Pt, Br]],
|
|
93373
93373
|
[
|
|
93374
93374
|
// MIXED
|
|
93375
93375
|
/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,
|
|
@@ -93387,7 +93387,7 @@ var pd = k$.exports, BQe = "2.0.0-beta.1", Om = "", Jz = "?", I$ = "function", L
|
|
|
93387
93387
|
/(oppo) ?([\w ]+) bui/i
|
|
93388
93388
|
// OPPO
|
|
93389
93389
|
],
|
|
93390
|
-
[Bt,
|
|
93390
|
+
[Bt, Nt, [Pt, Br]],
|
|
93391
93391
|
[
|
|
93392
93392
|
/(kobo)\s(ereader|touch)/i,
|
|
93393
93393
|
// Kobo
|
|
@@ -93398,41 +93398,41 @@ var pd = k$.exports, BQe = "2.0.0-beta.1", Om = "", Jz = "?", I$ = "function", L
|
|
|
93398
93398
|
/(kindle)\/([\w\.]+)/i
|
|
93399
93399
|
// Kindle
|
|
93400
93400
|
],
|
|
93401
|
-
[Bt,
|
|
93401
|
+
[Bt, Nt, [Pt, Ti]],
|
|
93402
93402
|
[
|
|
93403
93403
|
/(surface duo)/i
|
|
93404
93404
|
// Surface Duo
|
|
93405
93405
|
],
|
|
93406
|
-
[
|
|
93406
|
+
[Nt, [Bt, _8], [Pt, Ti]],
|
|
93407
93407
|
[
|
|
93408
93408
|
/droid [\d\.]+; (fp\du?)(?: b|\))/i
|
|
93409
93409
|
// Fairphone
|
|
93410
93410
|
],
|
|
93411
|
-
[
|
|
93411
|
+
[Nt, [Bt, "Fairphone"], [Pt, Br]],
|
|
93412
93412
|
[
|
|
93413
93413
|
/(shield[\w ]+) b/i
|
|
93414
93414
|
// Nvidia Shield Tablets
|
|
93415
93415
|
],
|
|
93416
|
-
[
|
|
93416
|
+
[Nt, [Bt, "Nvidia"], [Pt, Ti]],
|
|
93417
93417
|
[
|
|
93418
93418
|
/(sprint) (\w+)/i
|
|
93419
93419
|
// Sprint Phones
|
|
93420
93420
|
],
|
|
93421
|
-
[Bt,
|
|
93421
|
+
[Bt, Nt, [Pt, Br]],
|
|
93422
93422
|
[
|
|
93423
93423
|
/(kin\.[onetw]{3})/i
|
|
93424
93424
|
// Microsoft Kin
|
|
93425
93425
|
],
|
|
93426
|
-
[[
|
|
93426
|
+
[[Nt, /\./g, " "], [Bt, _8], [Pt, Br]],
|
|
93427
93427
|
[
|
|
93428
93428
|
/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i
|
|
93429
93429
|
// Zebra
|
|
93430
93430
|
],
|
|
93431
|
-
[
|
|
93431
|
+
[Nt, [Bt, S8], [Pt, Ti]],
|
|
93432
93432
|
[
|
|
93433
93433
|
/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i
|
|
93434
93434
|
],
|
|
93435
|
-
[
|
|
93435
|
+
[Nt, [Bt, S8], [Pt, Br]],
|
|
93436
93436
|
[
|
|
93437
93437
|
///////////////////
|
|
93438
93438
|
// SMARTTVS
|
|
@@ -93440,64 +93440,64 @@ var pd = k$.exports, BQe = "2.0.0-beta.1", Om = "", Jz = "?", I$ = "function", L
|
|
|
93440
93440
|
/smart-tv.+(samsung)/i
|
|
93441
93441
|
// Samsung
|
|
93442
93442
|
],
|
|
93443
|
-
[Bt, [
|
|
93443
|
+
[Bt, [Pt, Ra]],
|
|
93444
93444
|
[
|
|
93445
93445
|
/hbbtv.+maple;(\d+)/i
|
|
93446
93446
|
],
|
|
93447
|
-
[[
|
|
93447
|
+
[[Nt, /^/, "SmartTV"], [Bt, b8], [Pt, Ra]],
|
|
93448
93448
|
[
|
|
93449
93449
|
/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i
|
|
93450
93450
|
// LG SmartTV
|
|
93451
93451
|
],
|
|
93452
|
-
[[Bt, y8], [
|
|
93452
|
+
[[Bt, y8], [Pt, Ra]],
|
|
93453
93453
|
[
|
|
93454
93454
|
/(apple) ?tv/i
|
|
93455
93455
|
// Apple TV
|
|
93456
93456
|
],
|
|
93457
|
-
[Bt, [
|
|
93457
|
+
[Bt, [Nt, Z1 + " TV"], [Pt, Ra]],
|
|
93458
93458
|
[
|
|
93459
93459
|
/crkey/i
|
|
93460
93460
|
// Google Chromecast
|
|
93461
93461
|
],
|
|
93462
|
-
[[
|
|
93462
|
+
[[Nt, x2 + "cast"], [Bt, k0], [Pt, Ra]],
|
|
93463
93463
|
[
|
|
93464
93464
|
/droid.+aft(\w+)( bui|\))/i
|
|
93465
93465
|
// Fire TV
|
|
93466
93466
|
],
|
|
93467
|
-
[
|
|
93467
|
+
[Nt, [Bt, R2], [Pt, Ra]],
|
|
93468
93468
|
[
|
|
93469
93469
|
/\(dtv[\);].+(aquos)/i,
|
|
93470
93470
|
/(aquos-tv[\w ]+)\)/i
|
|
93471
93471
|
// Sharp
|
|
93472
93472
|
],
|
|
93473
|
-
[
|
|
93473
|
+
[Nt, [Bt, nV], [Pt, Ra]],
|
|
93474
93474
|
[
|
|
93475
93475
|
/(bravia[\w ]+)( bui|\))/i
|
|
93476
93476
|
// Sony
|
|
93477
93477
|
],
|
|
93478
|
-
[
|
|
93478
|
+
[Nt, [Bt, C2], [Pt, Ra]],
|
|
93479
93479
|
[
|
|
93480
93480
|
/(mitv-\w{5}) bui/i
|
|
93481
93481
|
// Xiaomi
|
|
93482
93482
|
],
|
|
93483
|
-
[
|
|
93483
|
+
[Nt, [Bt, w8], [Pt, Ra]],
|
|
93484
93484
|
[
|
|
93485
93485
|
/Hbbtv.*(technisat) (.*);/i
|
|
93486
93486
|
// TechniSAT
|
|
93487
93487
|
],
|
|
93488
|
-
[Bt,
|
|
93488
|
+
[Bt, Nt, [Pt, Ra]],
|
|
93489
93489
|
[
|
|
93490
93490
|
/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,
|
|
93491
93491
|
// Roku
|
|
93492
93492
|
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
93493
93493
|
// HbbTV devices
|
|
93494
93494
|
],
|
|
93495
|
-
[[Bt, eb], [
|
|
93495
|
+
[[Bt, eb], [Nt, eb], [Pt, Ra]],
|
|
93496
93496
|
[
|
|
93497
93497
|
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
|
|
93498
93498
|
// SmartTV from Unidentified Vendors
|
|
93499
93499
|
],
|
|
93500
|
-
[[
|
|
93500
|
+
[[Pt, Ra]],
|
|
93501
93501
|
[
|
|
93502
93502
|
///////////////////
|
|
93503
93503
|
// CONSOLES
|
|
@@ -93507,22 +93507,22 @@ var pd = k$.exports, BQe = "2.0.0-beta.1", Om = "", Jz = "?", I$ = "function", L
|
|
|
93507
93507
|
/(nintendo) (\w+)/i
|
|
93508
93508
|
// Nintendo
|
|
93509
93509
|
],
|
|
93510
|
-
[Bt,
|
|
93510
|
+
[Bt, Nt, [Pt, O0]],
|
|
93511
93511
|
[
|
|
93512
93512
|
/droid.+; (shield) bui/i
|
|
93513
93513
|
// Nvidia
|
|
93514
93514
|
],
|
|
93515
|
-
[
|
|
93515
|
+
[Nt, [Bt, "Nvidia"], [Pt, O0]],
|
|
93516
93516
|
[
|
|
93517
93517
|
/(playstation \w+)/i
|
|
93518
93518
|
// Playstation
|
|
93519
93519
|
],
|
|
93520
|
-
[
|
|
93520
|
+
[Nt, [Bt, C2], [Pt, O0]],
|
|
93521
93521
|
[
|
|
93522
93522
|
/\b(xbox(?: one)?(?!; xbox))[\); ]/i
|
|
93523
93523
|
// Microsoft Xbox
|
|
93524
93524
|
],
|
|
93525
|
-
[
|
|
93525
|
+
[Nt, [Bt, _8], [Pt, O0]],
|
|
93526
93526
|
[
|
|
93527
93527
|
///////////////////
|
|
93528
93528
|
// WEARABLES
|
|
@@ -93530,26 +93530,26 @@ var pd = k$.exports, BQe = "2.0.0-beta.1", Om = "", Jz = "?", I$ = "function", L
|
|
|
93530
93530
|
/((pebble))app/i
|
|
93531
93531
|
// Pebble
|
|
93532
93532
|
],
|
|
93533
|
-
[Bt,
|
|
93533
|
+
[Bt, Nt, [Pt, th]],
|
|
93534
93534
|
[
|
|
93535
93535
|
/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i
|
|
93536
93536
|
// Apple Watch
|
|
93537
93537
|
],
|
|
93538
|
-
[
|
|
93538
|
+
[Nt, [Bt, Z1], [Pt, th]],
|
|
93539
93539
|
[
|
|
93540
93540
|
/droid.+; (glass) \d/i
|
|
93541
93541
|
// Google Glass
|
|
93542
93542
|
],
|
|
93543
|
-
[
|
|
93543
|
+
[Nt, [Bt, k0], [Pt, th]],
|
|
93544
93544
|
[
|
|
93545
93545
|
/droid.+; (wt63?0{2,3})\)/i
|
|
93546
93546
|
],
|
|
93547
|
-
[
|
|
93547
|
+
[Nt, [Bt, S8], [Pt, th]],
|
|
93548
93548
|
[
|
|
93549
93549
|
/(quest( 2| pro)?)/i
|
|
93550
93550
|
// Oculus Quest
|
|
93551
93551
|
],
|
|
93552
|
-
[
|
|
93552
|
+
[Nt, [Bt, iV], [Pt, th]],
|
|
93553
93553
|
[
|
|
93554
93554
|
///////////////////
|
|
93555
93555
|
// EMBEDDED
|
|
@@ -93557,12 +93557,12 @@ var pd = k$.exports, BQe = "2.0.0-beta.1", Om = "", Jz = "?", I$ = "function", L
|
|
|
93557
93557
|
/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i
|
|
93558
93558
|
// Tesla
|
|
93559
93559
|
],
|
|
93560
|
-
[Bt, [
|
|
93560
|
+
[Bt, [Pt, R$]],
|
|
93561
93561
|
[
|
|
93562
93562
|
/(aeobc)\b/i
|
|
93563
93563
|
// Echo Dot
|
|
93564
93564
|
],
|
|
93565
|
-
[
|
|
93565
|
+
[Nt, [Bt, R2], [Pt, R$]],
|
|
93566
93566
|
[
|
|
93567
93567
|
////////////////////
|
|
93568
93568
|
// MIXED (GENERIC)
|
|
@@ -93570,27 +93570,27 @@ var pd = k$.exports, BQe = "2.0.0-beta.1", Om = "", Jz = "?", I$ = "function", L
|
|
|
93570
93570
|
/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i
|
|
93571
93571
|
// Android Phones from Unidentified Vendors
|
|
93572
93572
|
],
|
|
93573
|
-
[
|
|
93573
|
+
[Nt, [Pt, Br]],
|
|
93574
93574
|
[
|
|
93575
93575
|
/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i
|
|
93576
93576
|
// Android Tablets from Unidentified Vendors
|
|
93577
93577
|
],
|
|
93578
|
-
[
|
|
93578
|
+
[Nt, [Pt, Ti]],
|
|
93579
93579
|
[
|
|
93580
93580
|
/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i
|
|
93581
93581
|
// Unidentifiable Tablet
|
|
93582
93582
|
],
|
|
93583
|
-
[[
|
|
93583
|
+
[[Pt, Ti]],
|
|
93584
93584
|
[
|
|
93585
93585
|
/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i
|
|
93586
93586
|
// Unidentifiable Mobile
|
|
93587
93587
|
],
|
|
93588
|
-
[[
|
|
93588
|
+
[[Pt, Br]],
|
|
93589
93589
|
[
|
|
93590
93590
|
/(android[-\w\. ]{0,9});.+buil/i
|
|
93591
93591
|
// Generic Android Device
|
|
93592
93592
|
],
|
|
93593
|
-
[
|
|
93593
|
+
[Nt, [Bt, "Generic"]]
|
|
93594
93594
|
],
|
|
93595
93595
|
engine: [
|
|
93596
93596
|
[
|
|
@@ -93764,7 +93764,7 @@ var pd = k$.exports, BQe = "2.0.0-beta.1", Om = "", Jz = "?", I$ = "function", L
|
|
|
93764
93764
|
return yu.call(e.init, [
|
|
93765
93765
|
[xa, [xt, Mt, Mv]],
|
|
93766
93766
|
[fu, [ha]],
|
|
93767
|
-
[gc, [
|
|
93767
|
+
[gc, [Pt, Nt, Bt]],
|
|
93768
93768
|
[gu, [xt, Mt]],
|
|
93769
93769
|
[rs, [xt, Mt]]
|
|
93770
93770
|
]), yu.call(e.isIgnore, [
|
|
@@ -93777,7 +93777,7 @@ var pd = k$.exports, BQe = "2.0.0-beta.1", Om = "", Jz = "?", I$ = "function", L
|
|
|
93777
93777
|
]), yu.call(e.toString, [
|
|
93778
93778
|
[xa, [xt, Mt]],
|
|
93779
93779
|
[fu, [ha]],
|
|
93780
|
-
[gc, [Bt,
|
|
93780
|
+
[gc, [Bt, Nt]],
|
|
93781
93781
|
[gu, [xt, Mt]],
|
|
93782
93782
|
[rs, [xt, Mt]]
|
|
93783
93783
|
]), e;
|
|
@@ -93829,7 +93829,7 @@ function Rie(e, t) {
|
|
|
93829
93829
|
[fR, E8(e[Td])],
|
|
93830
93830
|
[pR, E8(e[zQe])],
|
|
93831
93831
|
[Br, /\?1/.test(e[qQe])],
|
|
93832
|
-
[
|
|
93832
|
+
[Nt, r0(e[GQe])],
|
|
93833
93833
|
[zh, r0(e[Oie])],
|
|
93834
93834
|
[hR, r0(e[KQe])],
|
|
93835
93835
|
[ha, r0(e[VQe])],
|
|
@@ -93854,7 +93854,7 @@ function lV(e, t, r, n) {
|
|
|
93854
93854
|
ma.brave && typeof ma.brave.isBrave == I$ && this.set(xt, "Brave");
|
|
93855
93855
|
break;
|
|
93856
93856
|
case gc:
|
|
93857
|
-
!this.get(
|
|
93857
|
+
!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);
|
|
93858
93858
|
break;
|
|
93859
93859
|
case rs:
|
|
93860
93860
|
!this.get(xt) && Rl && Rl[zh] && this.set(xt, Rl[zh]);
|
|
@@ -93884,14 +93884,14 @@ function lV(e, t, r, n) {
|
|
|
93884
93884
|
l && (l && i[Ew] == "64" && (l += "64"), aV.call(this.data, l + ";", o));
|
|
93885
93885
|
break;
|
|
93886
93886
|
case gc:
|
|
93887
|
-
if (i[Br] && this.set(
|
|
93887
|
+
if (i[Br] && this.set(Pt, Br), i[Nt] && this.set(Nt, i[Nt]), i[Jd]) {
|
|
93888
93888
|
var d;
|
|
93889
93889
|
if (typeof i[Jd] != "string")
|
|
93890
93890
|
for (var f = 0; !d && f < i[Jd].length; )
|
|
93891
93891
|
d = tb(i[Jd][f++], cV);
|
|
93892
93892
|
else
|
|
93893
93893
|
d = tb(i[Jd], cV);
|
|
93894
|
-
this.set(
|
|
93894
|
+
this.set(Pt, d);
|
|
93895
93895
|
}
|
|
93896
93896
|
break;
|
|
93897
93897
|
case rs:
|
|
@@ -93953,7 +93953,7 @@ function ju(e, t, r) {
|
|
|
93953
93953
|
ju.VERSION = BQe;
|
|
93954
93954
|
ju.BROWSER = $w([xt, Mt, Mv]);
|
|
93955
93955
|
ju.CPU = $w([ha]);
|
|
93956
|
-
ju.DEVICE = $w([
|
|
93956
|
+
ju.DEVICE = $w([Nt, Bt, Pt, O0, Br, Ra, Ti, th, R$]);
|
|
93957
93957
|
ju.ENGINE = ju.OS = $w([xt, Mt]);
|
|
93958
93958
|
var T8, O8, k8, I8, R8;
|
|
93959
93959
|
const QQe = (e) => {
|
|
@@ -104814,7 +104814,7 @@ const hd = (e, t, r, n) => {
|
|
|
104814
104814
|
}, w = () => {
|
|
104815
104815
|
d.current && (d.current.controls = !1, d.current.pause(), d.current.currentTime = 0);
|
|
104816
104816
|
};
|
|
104817
|
-
|
|
104817
|
+
At(() => {
|
|
104818
104818
|
a || w();
|
|
104819
104819
|
}, [a]);
|
|
104820
104820
|
const $ = () => {
|
|
@@ -105017,7 +105017,7 @@ const hd = (e, t, r, n) => {
|
|
|
105017
105017
|
}, U = () => {
|
|
105018
105018
|
_.current && (_.current.style.setProperty("--myinterview-widget-preview-item-transition", "0ms"), _.current.style.transitionDuration = "0ms");
|
|
105019
105019
|
};
|
|
105020
|
-
|
|
105020
|
+
At(() => {
|
|
105021
105021
|
var $e, de;
|
|
105022
105022
|
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})`), () => {
|
|
105023
105023
|
var _e, xe;
|
|
@@ -105027,9 +105027,9 @@ const hd = (e, t, r, n) => {
|
|
|
105027
105027
|
const ie = Ut(($e) => {
|
|
105028
105028
|
_.current = $e, J();
|
|
105029
105029
|
}, []);
|
|
105030
|
-
|
|
105030
|
+
At(() => {
|
|
105031
105031
|
b(Math.max(h.length - Xc, 0)), T.current = Math.max(h.length - Xc, 0), J();
|
|
105032
|
-
}, [h.length]),
|
|
105032
|
+
}, [h.length]), At(() => {
|
|
105033
105033
|
$(null);
|
|
105034
105034
|
}, [g]);
|
|
105035
105035
|
const L = Ut(($e) => {
|
|
@@ -105144,7 +105144,7 @@ const hd = (e, t, r, n) => {
|
|
|
105144
105144
|
);
|
|
105145
105145
|
}, XR = ({ countDown: e, forceMobileCounter: t = !1, numberOfSecondsToHighlight: r = 0 }) => {
|
|
105146
105146
|
const n = dt(null), i = dt(e), o = dt(e + 1);
|
|
105147
|
-
|
|
105147
|
+
At(() => {
|
|
105148
105148
|
const c = (o.current - e) / 100, u = setInterval(() => {
|
|
105149
105149
|
var l;
|
|
105150
105150
|
const d = Math.max(o.current - 1, 0) / i.current * 100;
|
|
@@ -105226,7 +105226,7 @@ const bae = () => M.createElement(
|
|
|
105226
105226
|
);
|
|
105227
105227
|
}, Sst = ({ handleDeviceChange: e, videoDevices: t = [], audioDevices: r = [], selectedAudioDevice: n, selectedVideoDevice: i, myinterviewRef: o, recordWithoutVideo: a }) => {
|
|
105228
105228
|
const s = dt(null), [c, u] = St(!1);
|
|
105229
|
-
return
|
|
105229
|
+
return At(() => {
|
|
105230
105230
|
var l, d;
|
|
105231
105231
|
const f = (p) => {
|
|
105232
105232
|
c && s.current && !s.current.contains(p.target) && u(!1);
|
|
@@ -105309,7 +105309,7 @@ const bae = () => M.createElement(
|
|
|
105309
105309
|
);
|
|
105310
105310
|
}, $st = ({ microphoneRef: e }) => {
|
|
105311
105311
|
const [t] = bw(e), r = dt(null);
|
|
105312
|
-
|
|
105312
|
+
At(() => {
|
|
105313
105313
|
var i;
|
|
105314
105314
|
const o = Math.max(1, Math.min(1 + t.context.micData / 25, 1.6)).toString();
|
|
105315
105315
|
(i = r.current) === null || i === void 0 || i.style.setProperty("--myinterview-widget-voice-level", o);
|
|
@@ -110088,7 +110088,7 @@ var out = /* @__PURE__ */ gKe(Sae), qH = "https://embed.cloudflarestream.com/emb
|
|
|
110088
110088
|
};
|
|
110089
110089
|
function aut() {
|
|
110090
110090
|
var e = St(dT), t = e[0], r = e[1];
|
|
110091
|
-
return
|
|
110091
|
+
return At(function() {
|
|
110092
110092
|
if (!t) {
|
|
110093
110093
|
var n = document.querySelector("script[src='" + qH + "']"), i = n ?? document.createElement("script");
|
|
110094
110094
|
i.addEventListener("load", function() {
|
|
@@ -110118,7 +110118,7 @@ function cut(e) {
|
|
|
110118
110118
|
}
|
|
110119
110119
|
}
|
|
110120
110120
|
function fc(e, t, r) {
|
|
110121
|
-
|
|
110121
|
+
At(function() {
|
|
110122
110122
|
if (t.current) {
|
|
110123
110123
|
var n = t.current;
|
|
110124
110124
|
n[e] = r;
|
|
@@ -110126,7 +110126,7 @@ function fc(e, t, r) {
|
|
|
110126
110126
|
}, [e, r, t]);
|
|
110127
110127
|
}
|
|
110128
110128
|
function si(e, t, r) {
|
|
110129
|
-
r === void 0 && (r = uut),
|
|
110129
|
+
r === void 0 && (r = uut), At(function() {
|
|
110130
110130
|
if (t.current) {
|
|
110131
110131
|
var n = t.current;
|
|
110132
110132
|
return n.addEventListener(e, r), function() {
|
|
@@ -110175,7 +110175,7 @@ var uut = function() {
|
|
|
110175
110175
|
defaultTextTrack: y,
|
|
110176
110176
|
startTime: v
|
|
110177
110177
|
}), yt = cut(r) ? r : at;
|
|
110178
|
-
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),
|
|
110178
|
+
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() {
|
|
110179
110179
|
var ct = dT();
|
|
110180
110180
|
if (ht.current && ct) {
|
|
110181
110181
|
var it = ct(ht.current);
|
|
@@ -111712,10 +111712,10 @@ const Clt = (e) => {
|
|
|
111712
111712
|
C(!1);
|
|
111713
111713
|
}, vst);
|
|
111714
111714
|
};
|
|
111715
|
-
|
|
111715
|
+
At(() => {
|
|
111716
111716
|
var x;
|
|
111717
111717
|
i && !t && (c && ((x = d.current) === null || x === void 0 || x.pause()), h(!1));
|
|
111718
|
-
}, [i]),
|
|
111718
|
+
}, [i]), At(() => {
|
|
111719
111719
|
let x;
|
|
111720
111720
|
return c && m && m - g < iW && (x = setTimeout(I, iW * 1e3)), () => clearTimeout(x);
|
|
111721
111721
|
}, [g]);
|
|
@@ -111804,7 +111804,7 @@ const Clt = (e) => {
|
|
|
111804
111804
|
const { value: a, checked: s } = o.target;
|
|
111805
111805
|
n((c) => c.map((u) => u.id !== a ? u : Object.assign(Object.assign({}, u), { selected: s })));
|
|
111806
111806
|
};
|
|
111807
|
-
return
|
|
111807
|
+
return At(() => {
|
|
111808
111808
|
t(r);
|
|
111809
111809
|
}, [r]), M.createElement(
|
|
111810
111810
|
"div",
|
|
@@ -111858,7 +111858,7 @@ const Clt = (e) => {
|
|
|
111858
111858
|
return () => !0;
|
|
111859
111859
|
}
|
|
111860
111860
|
}, [e.answerType]);
|
|
111861
|
-
|
|
111861
|
+
At(() => {
|
|
111862
111862
|
e.partDuration && !t && p(!0);
|
|
111863
111863
|
}, [t]);
|
|
111864
111864
|
const m = (y) => {
|
|
@@ -111890,12 +111890,12 @@ const Clt = (e) => {
|
|
|
111890
111890
|
}, Flt = M.forwardRef(({ widgetMachine: e, sendToWidget: t, recorderRef: r, isSliderModalOpen: n, isWidgetMinimized: i, onOpenSliderModal: o, onCloseSliderModal: a, onRecorderRetry: s, onReInitRecorder: c, myinterviewRef: u }, l) => {
|
|
111891
111891
|
var d, f;
|
|
111892
111892
|
const [p, h] = bw(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);
|
|
111893
|
-
|
|
111893
|
+
At(() => {
|
|
111894
111894
|
Ce && y(!1);
|
|
111895
|
-
}, [Ce]),
|
|
111895
|
+
}, [Ce]), At(() => {
|
|
111896
111896
|
var rt;
|
|
111897
111897
|
Pe && ((rt = u == null ? void 0 : u.current) === null || rt === void 0 || rt.style.setProperty("--myinterview-widget-background-height", "100vh"));
|
|
111898
|
-
}, [Pe]),
|
|
111898
|
+
}, [Pe]), At(() => {
|
|
111899
111899
|
var rt, Ie, He;
|
|
111900
111900
|
if (R && !I) {
|
|
111901
111901
|
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);
|
|
@@ -111931,7 +111931,7 @@ const Clt = (e) => {
|
|
|
111931
111931
|
}, Ke = () => {
|
|
111932
111932
|
h == null || h(hr.STOP_RECORDING);
|
|
111933
111933
|
};
|
|
111934
|
-
|
|
111934
|
+
At(() => {
|
|
111935
111935
|
i && xe && Ke();
|
|
111936
111936
|
}, [i, xe]);
|
|
111937
111937
|
const Me = ni({
|
|
@@ -112006,7 +112006,7 @@ const aC = ({ logo: e = "", companyName: t = "", jobTitle: r = "", hidden: n = !
|
|
|
112006
112006
|
"myinterview-widget-questions-item__number": !0,
|
|
112007
112007
|
"myinterview-widget-questions-item__number--icon": !!u
|
|
112008
112008
|
});
|
|
112009
|
-
return
|
|
112009
|
+
return At(() => {
|
|
112010
112010
|
a.current && s && a.current.scrollIntoView(!1);
|
|
112011
112011
|
}, [a.current]), M.createElement(
|
|
112012
112012
|
"div",
|
|
@@ -116844,7 +116844,7 @@ const SW = "background:#06f; color:#fff; margin: 10px 0; padding:5px; border-rad
|
|
|
116844
116844
|
const n = dt(null), i = dt(null), o = dt(new IntersectionObserver((s) => {
|
|
116845
116845
|
s[0].isIntersecting && t();
|
|
116846
116846
|
}, { threshold: 1 }));
|
|
116847
|
-
|
|
116847
|
+
At(() => (n.current && i.current && (i.current.scrollIntoView(), o.current.observe(n.current)), () => o.current.disconnect()), []), At(() => {
|
|
116848
116848
|
var s;
|
|
116849
116849
|
e && ((s = i.current) === null || s === void 0 || s.scrollIntoView());
|
|
116850
116850
|
}, [e]);
|
|
@@ -119198,7 +119198,7 @@ const lmt = () => {
|
|
|
119198
119198
|
M.createElement(gw, null)
|
|
119199
119199
|
), OW = (e = "en") => ["he", "ar"].includes(e), pmt = ({ widgetConfig: e, setShouldShowWaterMark: t, myinterviewRef: r, isWidgetMinimized: n, onMinimize: i }) => {
|
|
119200
119200
|
const { boot: o, shutdown: a, update: s } = OXe(), c = dt(null), u = dt(null), [l, d] = DJe(() => TW.withContext(Object.assign(Object.assign({}, TW.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);
|
|
119201
|
-
|
|
119201
|
+
At(() => {
|
|
119202
119202
|
var I;
|
|
119203
119203
|
const U = (ie) => (ie.preventDefault(), ie.returnValue = "Changes you made may not be saved.", ie);
|
|
119204
119204
|
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({
|
|
@@ -119206,16 +119206,16 @@ const lmt = () => {
|
|
|
119206
119206
|
}), window.addEventListener("touchstart", () => !1, { passive: !1 }), () => {
|
|
119207
119207
|
window.removeEventListener("beforeunload", U), window.removeEventListener("touchstart", () => !1), a();
|
|
119208
119208
|
};
|
|
119209
|
-
}, []),
|
|
119209
|
+
}, []), At(() => {
|
|
119210
119210
|
Xr.changeLanguage((m == null ? void 0 : m.language) || "en");
|
|
119211
|
-
}, [m == null ? void 0 : m.language]),
|
|
119211
|
+
}, [m == null ? void 0 : m.language]), At(() => {
|
|
119212
119212
|
t(!!(b != null && b.shouldShowWaterMark));
|
|
119213
119213
|
}, [b == null ? void 0 : b.shouldShowWaterMark]);
|
|
119214
119214
|
const C = () => Ks(void 0, void 0, void 0, function* () {
|
|
119215
119215
|
var I, U;
|
|
119216
119216
|
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) || "" });
|
|
119217
119217
|
});
|
|
119218
|
-
|
|
119218
|
+
At(() => {
|
|
119219
119219
|
l.done && e.config.onFinish && C().then(() => {
|
|
119220
119220
|
yo({ eventType: Pr.ON_FINISH_SUCCEED });
|
|
119221
119221
|
}).catch((I) => {
|
|
@@ -119227,7 +119227,7 @@ const lmt = () => {
|
|
|
119227
119227
|
}
|
|
119228
119228
|
throw yo({ eventType: Pr.ON_FINISH_FAILED, extraData: { errorMessage: ie } }), I;
|
|
119229
119229
|
});
|
|
119230
|
-
}, [l.done]),
|
|
119230
|
+
}, [l.done]), At(() => {
|
|
119231
119231
|
w.hideIntercom === !1 && s({
|
|
119232
119232
|
customAttributes: {
|
|
119233
119233
|
apiKey: y == null ? void 0 : y.apiKey,
|
|
@@ -119246,7 +119246,7 @@ const lmt = () => {
|
|
|
119246
119246
|
var I;
|
|
119247
119247
|
(I = r == null ? void 0 : r.current) === null || I === void 0 || I.style.setProperty("--myinterview-background-opacity", _ || E ? "0" : "1");
|
|
119248
119248
|
};
|
|
119249
|
-
|
|
119249
|
+
At(() => {
|
|
119250
119250
|
var I, U;
|
|
119251
119251
|
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();
|
|
119252
119252
|
}, [E]);
|
|
@@ -119258,7 +119258,7 @@ const lmt = () => {
|
|
|
119258
119258
|
const { scrollTop: L } = I.target;
|
|
119259
119259
|
(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");
|
|
119260
119260
|
};
|
|
119261
|
-
|
|
119261
|
+
At(() => {
|
|
119262
119262
|
A();
|
|
119263
119263
|
}, [_]);
|
|
119264
119264
|
const ne = () => {
|
|
@@ -119331,7 +119331,7 @@ const ymt = ({ messageType: e }) => {
|
|
|
119331
119331
|
return Object.assign(Object.assign({}, r), { question: r.question || "", numOfRetakes: r.attempts || fst, partDuration: r.duration || (n ? bH : JR), thinkingTime: n ? r.duration || bH : r.thinkingTime || pst });
|
|
119332
119332
|
}), _mt = () => {
|
|
119333
119333
|
const [e, t] = St("");
|
|
119334
|
-
return
|
|
119334
|
+
return At(() => {
|
|
119335
119335
|
if (e) {
|
|
119336
119336
|
const n = window.innerWidth <= 800 ? "Right" : "Left";
|
|
119337
119337
|
window.interdeal = {
|
|
@@ -119366,7 +119366,7 @@ const ymt = ({ messageType: e }) => {
|
|
|
119366
119366
|
}, [e]), { setSitekey: t, shutdown: () => t("") };
|
|
119367
119367
|
}, bmt = 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) => {
|
|
119368
119368
|
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 } = _mt();
|
|
119369
|
-
|
|
119369
|
+
At(() => (ZQe && kXe().then((I) => {
|
|
119370
119370
|
g(I.browserName === "Chrome" && I.isPrivate && Fn);
|
|
119371
119371
|
}), b.current && b.current.shadowRoot && (v(typeof s == "object" && s.type === "style"), (Array.isArray(u) ? u : [u]).concat(bst).forEach((I) => {
|
|
119372
119372
|
const U = document.createElement("link");
|
|
@@ -119381,13 +119381,13 @@ const ymt = ({ messageType: e }) => {
|
|
|
119381
119381
|
I,
|
|
119382
119382
|
")"
|
|
119383
119383
|
)), [c]);
|
|
119384
|
-
|
|
119384
|
+
At(() => {
|
|
119385
119385
|
rd.configureScope((I) => {
|
|
119386
119386
|
I.setUser({
|
|
119387
119387
|
email: e.email
|
|
119388
119388
|
}), I.setTags(Object.assign({}, eZe && { iphoneModel: aZe() }));
|
|
119389
119389
|
});
|
|
119390
|
-
}, [e.email]),
|
|
119390
|
+
}, [e.email]), At(() => {
|
|
119391
119391
|
n.env && Rlt(Hv(n.env).serverUrl);
|
|
119392
119392
|
}, [n.env]);
|
|
119393
119393
|
const C = () => {
|
|
@@ -119476,7 +119476,7 @@ const ymt = ({ messageType: e }) => {
|
|
|
119476
119476
|
);
|
|
119477
119477
|
}), wmt = ({ completed: e }) => {
|
|
119478
119478
|
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");
|
|
119479
|
-
|
|
119479
|
+
At(() => {
|
|
119480
119480
|
var g;
|
|
119481
119481
|
const y = (g = Ac.get(n)) == null ? void 0 : g.attributes;
|
|
119482
119482
|
o({
|
|
@@ -119502,7 +119502,7 @@ const ymt = ({ messageType: e }) => {
|
|
|
119502
119502
|
}, h = () => d("Resume Interview"), m = () => {
|
|
119503
119503
|
d("Interview Completed");
|
|
119504
119504
|
};
|
|
119505
|
-
return
|
|
119505
|
+
return At(f, [l]), kt("div", { className: "myinterview-chatbot-widget", children: [Ee(Wc, { ref: s, size: "small", onClick: p, disabled: e, children: l }), Db(Ee(bmt, { disabled: e, ref: a, buttonStyle: {
|
|
119506
119506
|
position: "fixed",
|
|
119507
119507
|
visibility: "hidden",
|
|
119508
119508
|
pointerEvents: "none",
|
|
@@ -119532,7 +119532,7 @@ const ymt = ({ messageType: e }) => {
|
|
|
119532
119532
|
params: { type: "chatbot", module_id: n }
|
|
119533
119533
|
}), hC = ({ transparent: e = !1, className: t }) => Ee("span", { className: Mr(t, "myinterview-chatbot-skeleton", { "myinterview-chatbot-skeleton--transparent": e }) }), Tmt = 75, Omt = ({ id: e, completed: t }) => {
|
|
119534
119534
|
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);
|
|
119535
|
-
|
|
119535
|
+
At(() => {
|
|
119536
119536
|
Emt(r).then((B) => {
|
|
119537
119537
|
o(B), s(!1);
|
|
119538
119538
|
});
|
|
@@ -119558,7 +119558,7 @@ const ymt = ({ messageType: e }) => {
|
|
|
119558
119558
|
const ne = B * Tmt;
|
|
119559
119559
|
w((J) => Math.min(Math.max(J + ne, y), 0));
|
|
119560
119560
|
};
|
|
119561
|
-
|
|
119561
|
+
At(() => {
|
|
119562
119562
|
m("");
|
|
119563
119563
|
}, [f]);
|
|
119564
119564
|
const A = async () => {
|
|
@@ -119581,7 +119581,7 @@ const ymt = ({ messageType: e }) => {
|
|
|
119581
119581
|
g(G - Q), w(0);
|
|
119582
119582
|
}), _.current.observe(E.current);
|
|
119583
119583
|
}, []);
|
|
119584
|
-
return
|
|
119584
|
+
return At(() => {
|
|
119585
119585
|
if (!E.current)
|
|
119586
119586
|
return;
|
|
119587
119587
|
const { clientWidth: B, scrollWidth: ne } = E.current;
|
|
@@ -119624,7 +119624,7 @@ const p7 = {
|
|
|
119624
119624
|
}, g = () => {
|
|
119625
119625
|
l(!0), m();
|
|
119626
119626
|
};
|
|
119627
|
-
|
|
119627
|
+
At(() => {
|
|
119628
119628
|
y();
|
|
119629
119629
|
}, []);
|
|
119630
119630
|
const b = Mr("myinterview-chatbot-id-analyzer", {
|
|
@@ -119654,7 +119654,7 @@ const RT = {
|
|
|
119654
119654
|
const v = Math.min(Math.max(Math.round(-p.current / y) + m.current, 0), e.length - 1);
|
|
119655
119655
|
c.current = Math.min(Math.max(v, c.current - 1), c.current + 1), p.current = -c.current * y, a.current.style.transitionDuration = `${Amt}ms`, o(c.current), g();
|
|
119656
119656
|
}, [y]);
|
|
119657
|
-
|
|
119657
|
+
At(() => {
|
|
119658
119658
|
h.current = y * (e.length - 1) - i, b();
|
|
119659
119659
|
}, [y]);
|
|
119660
119660
|
const w = Ut((v) => {
|
|
@@ -119700,7 +119700,7 @@ const RT = {
|
|
|
119700
119700
|
const f = Math.min(a.current.offsetLeft, 0), p = Math.min(Math.max(-t * u - f + c.current / 2, f), -f);
|
|
119701
119701
|
a.current.style.transform = `translate3d(${p}px, 0px, 0px)`;
|
|
119702
119702
|
}, [t, u]);
|
|
119703
|
-
|
|
119703
|
+
At(l, [t, l]);
|
|
119704
119704
|
const d = Ut((f) => {
|
|
119705
119705
|
var p;
|
|
119706
119706
|
if (o.current = f, !o.current) {
|
|
@@ -119785,7 +119785,7 @@ const RT = {
|
|
|
119785
119785
|
onSubmitAnswer: g,
|
|
119786
119786
|
...$.customAction && { customAction: b[$.customAction] }
|
|
119787
119787
|
}) : null, [$, g]);
|
|
119788
|
-
|
|
119788
|
+
At(() => {
|
|
119789
119789
|
d(!!($ != null && $.isExternalShown));
|
|
119790
119790
|
}, [$]);
|
|
119791
119791
|
const _ = () => {
|
|
@@ -119824,12 +119824,14 @@ const RT = {
|
|
|
119824
119824
|
c.current = new ResizeObserver((h) => {
|
|
119825
119825
|
var m;
|
|
119826
119826
|
(m = a.current) == null || m.style.setProperty("--myinterview-chatbot-conversation-content-width", `${h[0].contentBoxSize[0].inlineSize}px`);
|
|
119827
|
-
}), c.current.observe(a.current)
|
|
119827
|
+
}), c.current.observe(a.current);
|
|
119828
119828
|
}, []);
|
|
119829
|
-
return
|
|
119829
|
+
return At(() => {
|
|
119830
|
+
!s.current || !a.current || u(s.current, a.current);
|
|
119831
|
+
}, []), kt("div", { ref: d, className: "myinterview-chatbot-message-list", children: [r && Ee(Fmt, { name: "Taira", thumbSrc: k3 }), e.map((f, p) => {
|
|
119830
119832
|
var h, m, y;
|
|
119831
119833
|
return Ee(Umt, { 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: xGe(f.dateCreated ?? 0, ((y = e[p + 1]) == null ? void 0 : y.dateCreated) ?? 0), thumbnail: k3, submitModule: i, sendText: o }, f.attributes.ts ?? f.sid);
|
|
119832
|
-
}), Ee("span", { ref: l
|
|
119834
|
+
}), Ee("span", { ref: l })] });
|
|
119833
119835
|
}, CW = (e, t) => {
|
|
119834
119836
|
t.forEach((r) => Ac.set(r.sid, r)), e(Yze(dVe(Array.from(Ac.values()))));
|
|
119835
119837
|
}, Ase = (e, t, r) => {
|
|
@@ -119885,14 +119887,14 @@ const RT = {
|
|
|
119885
119887
|
const E = await $.prevPage();
|
|
119886
119888
|
Ase(c, w, E);
|
|
119887
119889
|
}, g = ((b = s[0]) == null ? void 0 : b.author) === a.identity;
|
|
119888
|
-
return
|
|
119890
|
+
return At(() => (g && (u.current = setTimeout(() => {
|
|
119889
119891
|
d(!0);
|
|
119890
119892
|
}, 15e3)), () => {
|
|
119891
119893
|
u.current && (clearTimeout(u.current), d(!1));
|
|
119892
119894
|
}), [g]), kt("div", { className: "myinterview-chatbot-conversation", children: [Ee(jGe, { title: "Taira", isCloseable: t, isBackable: r, onClose: n, onBack: i }), e && kt(md, { children: [Ee(Bmt, { 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(QGe, { sendText: f, sendFile: p, sendRecordedAudio: h, isTairaSleeps: l })] })] });
|
|
119893
119895
|
}, Vmt = "300ms", Hmt = (e = 0) => {
|
|
119894
119896
|
const t = dt(null), [r, n] = St(e);
|
|
119895
|
-
|
|
119897
|
+
At(() => {
|
|
119896
119898
|
t.current && (t.current.style.transitionDuration = Vmt, t.current.style.transform = `translate3d(${`${r * -100}%`}, 0px, 0px)`);
|
|
119897
119899
|
}, [r]);
|
|
119898
119900
|
const i = () => {
|
|
@@ -119997,9 +119999,9 @@ const RT = {
|
|
|
119997
119999
|
}, [m]), w = () => {
|
|
119998
120000
|
e && u(0);
|
|
119999
120001
|
};
|
|
120000
|
-
|
|
120002
|
+
At(() => {
|
|
120001
120003
|
u(0);
|
|
120002
|
-
}, [l, e]),
|
|
120004
|
+
}, [l, e]), At(() => {
|
|
120003
120005
|
var _;
|
|
120004
120006
|
e || i(c_(((_ = f[0]) == null ? void 0 : _.sid) ?? "")), e && !l && !c && i(c_(""));
|
|
120005
120007
|
}, [e, l, c]);
|
|
@@ -120019,13 +120021,13 @@ const RT = {
|
|
|
120019
120021
|
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) => {
|
|
120020
120022
|
f(c === "dark" || c === "deviceDefault" && b);
|
|
120021
120023
|
}, [c]);
|
|
120022
|
-
|
|
120024
|
+
At(() => (h(h7.matches), h7.addEventListener("change", (b) => h(b.matches)), () => h7.removeEventListener("change", (b) => h(b.matches))), [c, h]);
|
|
120023
120025
|
const m = Ut(() => {
|
|
120024
120026
|
t && p($E(!l));
|
|
120025
120027
|
}, [l]), y = Ut(() => {
|
|
120026
120028
|
t && p($E(!1));
|
|
120027
120029
|
}, []);
|
|
120028
|
-
|
|
120030
|
+
At(() => {
|
|
120029
120031
|
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")));
|
|
120030
120032
|
}, [i, o, u, a, s, d]);
|
|
120031
120033
|
const g = Mr("myinterview-chatbot-main", {
|
|
@@ -120043,8 +120045,8 @@ const RT = {
|
|
|
120043
120045
|
}, i1t = () => {
|
|
120044
120046
|
sde() && ade(), Xye({
|
|
120045
120047
|
dsn: vm.SENTRY_DSN,
|
|
120046
|
-
environment: "
|
|
120047
|
-
release: "0.1.43
|
|
120048
|
+
environment: "staging",
|
|
120049
|
+
release: "0.1.43",
|
|
120048
120050
|
integrations: [
|
|
120049
120051
|
$ye(),
|
|
120050
120052
|
dye()
|
|
@@ -120075,7 +120077,7 @@ const a1t = Object.fromEntries(Object.entries(Intl.DateTimeFormat().resolvedOpti
|
|
|
120075
120077
|
await y(w);
|
|
120076
120078
|
}
|
|
120077
120079
|
}, []);
|
|
120078
|
-
|
|
120080
|
+
At(() => i.current ? (n.current = new BK.Client(i.current), n.current.on("stateChanged", (w) => {
|
|
120079
120081
|
var $;
|
|
120080
120082
|
w === "failed" && (Cs.error("Failed to initialize client. Reinitializing..."), y(!0)), w === "initialized" && (($ = n.current) != null && $.user && s(Kze(lVe(n.current.user))), h.current && !AW("candidate_id") && o1t("candidate_id", h.current));
|
|
120081
120083
|
}), n.current.on("conversationJoined", (w) => {
|
|
@@ -120129,9 +120131,9 @@ const a1t = Object.fromEntries(Object.entries(Intl.DateTimeFormat().resolvedOpti
|
|
|
120129
120131
|
const g = Ut(() => {
|
|
120130
120132
|
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));
|
|
120131
120133
|
}, [d]);
|
|
120132
|
-
|
|
120134
|
+
At(() => {
|
|
120133
120135
|
g();
|
|
120134
|
-
}, [d]),
|
|
120136
|
+
}, [d]), At(() => {
|
|
120135
120137
|
if (!l)
|
|
120136
120138
|
return () => {
|
|
120137
120139
|
};
|
|
@@ -120143,13 +120145,13 @@ const a1t = Object.fromEntries(Object.entries(Intl.DateTimeFormat().resolvedOpti
|
|
|
120143
120145
|
};
|
|
120144
120146
|
}, [l]), Eu(() => {
|
|
120145
120147
|
s(Vze(uVe(e)));
|
|
120146
|
-
}, [e]),
|
|
120148
|
+
}, [e]), At(() => {
|
|
120147
120149
|
!u || d || s($E(f));
|
|
120148
120150
|
}, [u, f]);
|
|
120149
120151
|
const b = Ut((w) => {
|
|
120150
120152
|
r.current = w;
|
|
120151
120153
|
}, []);
|
|
120152
|
-
return
|
|
120154
|
+
return At(() => {
|
|
120153
120155
|
const w = document.createElement("link");
|
|
120154
120156
|
return w.rel = "stylesheet", w.href = oL, document.head.appendChild(w), () => {
|
|
120155
120157
|
w.remove();
|