interview-widget 3.2.3 → 3.2.5
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/widget.es.js +143 -142
- package/dist/widget.umd.js +5 -5
- package/package.json +1 -1
package/dist/widget.es.js
CHANGED
|
@@ -3349,10 +3349,10 @@ function Gs(e, t) {
|
|
|
3349
3349
|
}
|
|
3350
3350
|
let xr;
|
|
3351
3351
|
me[516587230] = [0, fe, Uo, On, he], me[518928384] = On;
|
|
3352
|
-
const
|
|
3352
|
+
const e1 = new Uint8Array([0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1, 0, 10, 10, 1, 8, 0, 65, 0, 253, 15, 253, 98, 11]);
|
|
3353
3353
|
async function ul() {
|
|
3354
3354
|
if (xr === void 0) try {
|
|
3355
|
-
await WebAssembly.instantiate(
|
|
3355
|
+
await WebAssembly.instantiate(e1), xr = !0;
|
|
3356
3356
|
} catch {
|
|
3357
3357
|
xr = !1;
|
|
3358
3358
|
}
|
|
@@ -3431,7 +3431,7 @@ jt.forVisionTasks = function(e) {
|
|
|
3431
3431
|
}, jt.isSimdSupported = function() {
|
|
3432
3432
|
return ul();
|
|
3433
3433
|
};
|
|
3434
|
-
async function
|
|
3434
|
+
async function t1(e, t, i, r) {
|
|
3435
3435
|
return e = await (async (n, o, s, a, l) => {
|
|
3436
3436
|
if (o && await js(o), !self.ModuleFactory || s && (await js(s), !self.ModuleFactory)) throw Error("ModuleFactory not set.");
|
|
3437
3437
|
return self.Module && l && ((o = self.Module).locateFile = l.locateFile, l.mainScriptUrlOrBlob && (o.mainScriptUrlOrBlob = l.mainScriptUrlOrBlob)), l = await self.ModuleFactory(self.Module || l), self.ModuleFactory = self.Module = void 0, new n(l, a);
|
|
@@ -3534,7 +3534,7 @@ function Dt(e, t) {
|
|
|
3534
3534
|
return e;
|
|
3535
3535
|
}
|
|
3536
3536
|
Vn.prototype.close = Vn.prototype.close;
|
|
3537
|
-
class
|
|
3537
|
+
class i1 {
|
|
3538
3538
|
constructor(t, i, r, n) {
|
|
3539
3539
|
this.g = t, this.h = i, this.m = r, this.l = n;
|
|
3540
3540
|
}
|
|
@@ -3556,14 +3556,14 @@ function qs(e, t) {
|
|
|
3556
3556
|
const n = Dt(i.createBuffer(), "Failed to create buffer");
|
|
3557
3557
|
i.bindBuffer(i.ARRAY_BUFFER, n), i.enableVertexAttribArray(e.O), i.vertexAttribPointer(e.O, 2, i.FLOAT, !1, 0, 0), i.bufferData(i.ARRAY_BUFFER, new Float32Array([-1, -1, -1, 1, 1, 1, 1, -1]), i.STATIC_DRAW);
|
|
3558
3558
|
const o = Dt(i.createBuffer(), "Failed to create buffer");
|
|
3559
|
-
return i.bindBuffer(i.ARRAY_BUFFER, o), i.enableVertexAttribArray(e.L), i.vertexAttribPointer(e.L, 2, i.FLOAT, !1, 0, 0), i.bufferData(i.ARRAY_BUFFER, new Float32Array(t ? [0, 1, 0, 0, 1, 0, 1, 1] : [0, 0, 0, 1, 1, 1, 1, 0]), i.STATIC_DRAW), i.bindBuffer(i.ARRAY_BUFFER, null), i.bindVertexArray(null), new
|
|
3559
|
+
return i.bindBuffer(i.ARRAY_BUFFER, o), i.enableVertexAttribArray(e.L), i.vertexAttribPointer(e.L, 2, i.FLOAT, !1, 0, 0), i.bufferData(i.ARRAY_BUFFER, new Float32Array(t ? [0, 1, 0, 0, 1, 0, 1, 1] : [0, 0, 0, 1, 1, 1, 1, 0]), i.STATIC_DRAW), i.bindBuffer(i.ARRAY_BUFFER, null), i.bindVertexArray(null), new i1(i, r, n, o);
|
|
3560
3560
|
}
|
|
3561
3561
|
function jo(e, t) {
|
|
3562
3562
|
if (e.g) {
|
|
3563
3563
|
if (t !== e.g) throw Error("Cannot change GL context once initialized");
|
|
3564
3564
|
} else e.g = t;
|
|
3565
3565
|
}
|
|
3566
|
-
function
|
|
3566
|
+
function r1(e, t, i, r) {
|
|
3567
3567
|
return jo(e, t), e.h || (e.m(), e.D()), i ? (e.u || (e.u = qs(e, !0)), i = e.u) : (e.A || (e.A = qs(e, !1)), i = e.A), t.useProgram(e.h), i.bind(), e.l(), e = r(), i.g.bindVertexArray(null), e;
|
|
3568
3568
|
}
|
|
3569
3569
|
function wl(e, t, i) {
|
|
@@ -3572,7 +3572,7 @@ function wl(e, t, i) {
|
|
|
3572
3572
|
function ml(e, t, i) {
|
|
3573
3573
|
jo(e, t), e.B || (e.B = Dt(t.createFramebuffer(), "Failed to create framebuffe.")), t.bindFramebuffer(t.FRAMEBUFFER, e.B), t.framebufferTexture2D(t.FRAMEBUFFER, t.COLOR_ATTACHMENT0, t.TEXTURE_2D, i, 0);
|
|
3574
3574
|
}
|
|
3575
|
-
function
|
|
3575
|
+
function n1(e) {
|
|
3576
3576
|
var t;
|
|
3577
3577
|
(t = e.g) == null || t.bindFramebuffer(e.g.FRAMEBUFFER, null);
|
|
3578
3578
|
}
|
|
@@ -3709,9 +3709,9 @@ var Er, pe = class {
|
|
|
3709
3709
|
const r = Ti(this), n = zo(this);
|
|
3710
3710
|
r.activeTexture(r.TEXTURE1), i = wl(n, r, this.m ? r.LINEAR : r.NEAREST), r.bindTexture(r.TEXTURE_2D, i);
|
|
3711
3711
|
const o = yl(this);
|
|
3712
|
-
r.texImage2D(r.TEXTURE_2D, 0, o, this.width, this.height, 0, r.RED, r.FLOAT, null), r.bindTexture(r.TEXTURE_2D, null), ml(n, r, i),
|
|
3712
|
+
r.texImage2D(r.TEXTURE_2D, 0, o, this.width, this.height, 0, r.RED, r.FLOAT, null), r.bindTexture(r.TEXTURE_2D, null), ml(n, r, i), r1(n, r, !1, () => {
|
|
3713
3713
|
bl(this), r.clearColor(0, 0, 0, 0), r.clear(r.COLOR_BUFFER_BIT), r.drawArrays(r.TRIANGLE_FAN, 0, 4), jn(this);
|
|
3714
|
-
}),
|
|
3714
|
+
}), n1(n), jn(this);
|
|
3715
3715
|
}
|
|
3716
3716
|
}
|
|
3717
3717
|
e.push(i);
|
|
@@ -3727,7 +3727,7 @@ var Ks = 250;
|
|
|
3727
3727
|
function it(...e) {
|
|
3728
3728
|
return e.map(([t, i]) => ({ start: t, end: i }));
|
|
3729
3729
|
}
|
|
3730
|
-
const
|
|
3730
|
+
const o1 = /* @__PURE__ */ function(e) {
|
|
3731
3731
|
return class extends e {
|
|
3732
3732
|
Ja() {
|
|
3733
3733
|
this.i._registerModelResourcesGraphService();
|
|
@@ -4090,11 +4090,11 @@ const o2 = /* @__PURE__ */ function(e) {
|
|
|
4090
4090
|
});
|
|
4091
4091
|
}
|
|
4092
4092
|
}));
|
|
4093
|
-
var Ys, rt = class extends
|
|
4093
|
+
var Ys, rt = class extends o1 {
|
|
4094
4094
|
};
|
|
4095
4095
|
async function j(e, t, i) {
|
|
4096
4096
|
return async function(r, n, o, s) {
|
|
4097
|
-
return
|
|
4097
|
+
return t1(r, n, o, s);
|
|
4098
4098
|
}(e, i.canvas ?? (hl() ? void 0 : document.createElement("canvas")), t, i);
|
|
4099
4099
|
}
|
|
4100
4100
|
function vl(e, t, i, r) {
|
|
@@ -4588,7 +4588,7 @@ var zn = class {
|
|
|
4588
4588
|
}), (t = this.categoryMask) == null || t.close();
|
|
4589
4589
|
}
|
|
4590
4590
|
};
|
|
4591
|
-
function
|
|
4591
|
+
function s1(e) {
|
|
4592
4592
|
var i, r;
|
|
4593
4593
|
const t = function(n) {
|
|
4594
4594
|
return xt(n, Re, 1);
|
|
@@ -4625,7 +4625,7 @@ var Ie = class extends je {
|
|
|
4625
4625
|
return e.displayNamesLocale !== void 0 ? K(this.h, 2, ur(e.displayNamesLocale)) : "displayNamesLocale" in e && K(this.h, 2), "outputCategoryMask" in e && (this.outputCategoryMask = e.outputCategoryMask ?? !1), "outputConfidenceMasks" in e && (this.outputConfidenceMasks = e.outputConfidenceMasks ?? !0), super.l(e);
|
|
4626
4626
|
}
|
|
4627
4627
|
L() {
|
|
4628
|
-
|
|
4628
|
+
s1(this);
|
|
4629
4629
|
}
|
|
4630
4630
|
segment(e, t, i) {
|
|
4631
4631
|
const r = typeof t != "function" ? t : {};
|
|
@@ -4866,7 +4866,7 @@ Pe.prototype.detectForVideo = Pe.prototype.G, Pe.prototype.detect = Pe.prototype
|
|
|
4866
4866
|
}, Pe.createFromOptions = function(e, t) {
|
|
4867
4867
|
return j(Pe, e, t);
|
|
4868
4868
|
}, Pe.POSE_CONNECTIONS = Tl;
|
|
4869
|
-
const kr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/latest/face_landmarker.task",
|
|
4869
|
+
const kr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/latest/face_landmarker.task", a1 = "https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@latest/wasm", c1 = () => {
|
|
4870
4870
|
const e = M(null), [t, i] = _(!1), [r, n] = _("Initializing..."), [o, s] = _(0), [a, l] = _(!1);
|
|
4871
4871
|
D(() => {
|
|
4872
4872
|
"serviceWorker" in navigator && navigator.serviceWorker.register("/sw.js").then((f) => {
|
|
@@ -4904,7 +4904,7 @@ const kr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
4904
4904
|
(async () => {
|
|
4905
4905
|
try {
|
|
4906
4906
|
n("Checking cached models..."), await u() ? n("Using cached model...") : (n("Model not cached. Downloading..."), await d()), n("Loading MediaPipe WASM...");
|
|
4907
|
-
const g = await jt.forVisionTasks(
|
|
4907
|
+
const g = await jt.forVisionTasks(a1);
|
|
4908
4908
|
n("Creating face landmarker...");
|
|
4909
4909
|
const y = await re.createFromOptions(g, {
|
|
4910
4910
|
baseOptions: {
|
|
@@ -4932,7 +4932,7 @@ const kr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
4932
4932
|
"caches" in window && (await caches.delete("mediapipe-models-v1"), n("Cache cleared. Please refresh to re-download models."));
|
|
4933
4933
|
}
|
|
4934
4934
|
};
|
|
4935
|
-
},
|
|
4935
|
+
}, l1 = () => {
|
|
4936
4936
|
const [e, t] = _(0), i = M({ lastTime: 0, frames: 0, fps: 0 }), r = L(() => {
|
|
4937
4937
|
const n = performance.now(), o = i.current;
|
|
4938
4938
|
if (o.frames++, n - o.lastTime >= 1e3) {
|
|
@@ -4941,7 +4941,7 @@ const kr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
4941
4941
|
}
|
|
4942
4942
|
}, []);
|
|
4943
4943
|
return { fps: e, updateFPS: r };
|
|
4944
|
-
},
|
|
4944
|
+
}, d1 = () => {
|
|
4945
4945
|
const e = M({ value: 100, isLookingAway: !1 }), t = L(
|
|
4946
4946
|
(o, s, a, l) => {
|
|
4947
4947
|
if (!o || !a || !s) return;
|
|
@@ -4984,7 +4984,7 @@ const kr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
4984
4984
|
clearCanvas: n,
|
|
4985
4985
|
engagementRef: e
|
|
4986
4986
|
};
|
|
4987
|
-
},
|
|
4987
|
+
}, u1 = 50, h1 = () => {
|
|
4988
4988
|
const [e, t] = _(100), [i, r] = _(!1), n = M(0), o = L(
|
|
4989
4989
|
(s, a, l) => {
|
|
4990
4990
|
if (!l || s.length < 468)
|
|
@@ -4994,7 +4994,7 @@ const kr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
4994
4994
|
const f = (u.x + d.x) * 0.5, w = (u.y + d.y) * 0.5, g = f - a.x, y = w - a.y, p = Math.sqrt(g * g + y * y), b = Math.abs(h.y - a.noseY) * 100, v = Math.abs(h.x - a.noseX) * 100, F = Math.max(
|
|
4995
4995
|
0,
|
|
4996
4996
|
100 - (p * 200 + b + v)
|
|
4997
|
-
), S = F <
|
|
4997
|
+
), S = F < u1, E = performance.now();
|
|
4998
4998
|
return E - n.current > 100 && (t(F), r(S), n.current = E), { engagement: F, isLookingAway: S };
|
|
4999
4999
|
},
|
|
5000
5000
|
[]
|
|
@@ -5006,7 +5006,7 @@ const kr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
5006
5006
|
setEngagement: t,
|
|
5007
5007
|
setIsLookingAway: r
|
|
5008
5008
|
};
|
|
5009
|
-
},
|
|
5009
|
+
}, f1 = 0.05, w1 = () => {
|
|
5010
5010
|
const [e, t] = _(!1), [i, r] = _(!1), n = L(
|
|
5011
5011
|
(a, l) => Math.sqrt(Math.pow(a.x - l.x, 2) + Math.pow(a.y - l.y, 2)),
|
|
5012
5012
|
[]
|
|
@@ -5055,7 +5055,7 @@ const kr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
5055
5055
|
if (l && u) {
|
|
5056
5056
|
let h = null, f = 0;
|
|
5057
5057
|
for (const w of a.faceLandmarks)
|
|
5058
|
-
o(w, u) <
|
|
5058
|
+
o(w, u) < f1 && (h = w, f++);
|
|
5059
5059
|
return f === 1 ? (t(!1), r(!1), d("Reference face tracked."), h) : f > 1 ? (t(!0), r(!1), d(
|
|
5060
5060
|
"Multiple matching faces detected. Tracking suspended."
|
|
5061
5061
|
), null) : (t(!1), r(!0), d("Reference face not detected."), null);
|
|
@@ -5080,13 +5080,13 @@ const kr = "https://storage.googleapis.com/mediapipe-models/face_landmarker/face
|
|
|
5080
5080
|
setMultipleFacesDetected: t,
|
|
5081
5081
|
setReferenceFaceNotDetected: r
|
|
5082
5082
|
};
|
|
5083
|
-
},
|
|
5083
|
+
}, m1 = 500, g1 = (e, t) => {
|
|
5084
5084
|
const [i, r] = _(!1), [n, o] = _(Fe.MODEL_LOADING), { incrementGazeViolation: s } = ba(), { multipleFacesDetected: a, referenceFaceNotDetected: l, isLookingAway: u } = e;
|
|
5085
5085
|
D(() => {
|
|
5086
5086
|
let f;
|
|
5087
5087
|
return (u || a || l) && t ? f = setTimeout(() => {
|
|
5088
5088
|
r(!0), u ? (o("looking_away"), s("looking_away")) : a ? (o("multiple_faces"), s("multiple_faces")) : l && (o("no_face_detected"), s("no_face_detected"));
|
|
5089
|
-
},
|
|
5089
|
+
}, m1) : (r(!1), o("face_detected")), () => {
|
|
5090
5090
|
clearTimeout(f);
|
|
5091
5091
|
};
|
|
5092
5092
|
}, [
|
|
@@ -5113,7 +5113,7 @@ class q extends Error {
|
|
|
5113
5113
|
super(t), this.code = i, this.recoverable = r, this.name = "STTError";
|
|
5114
5114
|
}
|
|
5115
5115
|
}
|
|
5116
|
-
const
|
|
5116
|
+
const p1 = 50 * 1024 * 1024;
|
|
5117
5117
|
class Al {
|
|
5118
5118
|
constructor(t = {}) {
|
|
5119
5119
|
Ne(this, "config");
|
|
@@ -5182,7 +5182,7 @@ class Al {
|
|
|
5182
5182
|
}), this.mediaRecorder.addEventListener("dataavailable", (o) => {
|
|
5183
5183
|
var s, a, l;
|
|
5184
5184
|
if (o.data.size > 0) {
|
|
5185
|
-
if (
|
|
5185
|
+
if (this.audioChunksTotalSize + o.data.size > p1) {
|
|
5186
5186
|
console.error(`[STTService] Max size exceeded: ${(this.audioChunksTotalSize / 1024 / 1024).toFixed(2)} MB`);
|
|
5187
5187
|
const u = new q(
|
|
5188
5188
|
"Recording exceeded maximum size limit",
|
|
@@ -5192,7 +5192,7 @@ class Al {
|
|
|
5192
5192
|
(s = i == null ? void 0 : i.onError) == null || s.call(i, u), this.isRecording() && ((a = this.mediaRecorder) == null || a.stop());
|
|
5193
5193
|
return;
|
|
5194
5194
|
}
|
|
5195
|
-
this.audioChunks.push(o.data), this.audioChunksTotalSize += o.data.size,
|
|
5195
|
+
this.audioChunks.push(o.data), this.audioChunksTotalSize += o.data.size, (l = i == null ? void 0 : i.onDataAvailable) == null || l.call(i, o.data);
|
|
5196
5196
|
}
|
|
5197
5197
|
}), this.mediaRecorder.addEventListener(
|
|
5198
5198
|
"stop",
|
|
@@ -5412,7 +5412,7 @@ class Al {
|
|
|
5412
5412
|
);
|
|
5413
5413
|
}
|
|
5414
5414
|
}
|
|
5415
|
-
const
|
|
5415
|
+
const y1 = new Al(), b1 = (e, t, i, r) => {
|
|
5416
5416
|
const n = M(null);
|
|
5417
5417
|
return D(() => {
|
|
5418
5418
|
if (!t) return;
|
|
@@ -5436,7 +5436,7 @@ const y2 = new Al(), b2 = (e, t, i, r) => {
|
|
|
5436
5436
|
s && cancelAnimationFrame(s), a != null && a.srcObject && a.srcObject.getTracks().forEach((u) => u.stop());
|
|
5437
5437
|
};
|
|
5438
5438
|
}, [t, i]), D(() => {
|
|
5439
|
-
const o =
|
|
5439
|
+
const o = y1.getRecordingStream();
|
|
5440
5440
|
if (o && e.current) {
|
|
5441
5441
|
e.current.srcObject = o;
|
|
5442
5442
|
const s = o.getVideoTracks(), a = o.getAudioTracks(), l = () => {
|
|
@@ -5447,7 +5447,7 @@ const y2 = new Al(), b2 = (e, t, i, r) => {
|
|
|
5447
5447
|
});
|
|
5448
5448
|
}
|
|
5449
5449
|
}, []), { animationFrameRef: n };
|
|
5450
|
-
},
|
|
5450
|
+
}, v1 = (e, t, i, r, n, o, s, a, l, u, d, h, f, w, g) => {
|
|
5451
5451
|
const y = M(null), p = L(() => {
|
|
5452
5452
|
const b = e.current, v = t.current, F = i.current;
|
|
5453
5453
|
if (!b || b.readyState < 2 || !F || !v) {
|
|
@@ -5496,7 +5496,7 @@ const y2 = new Al(), b2 = (e, t, i, r) => {
|
|
|
5496
5496
|
g
|
|
5497
5497
|
]);
|
|
5498
5498
|
return { renderLoop: p, animationFrameRef: y };
|
|
5499
|
-
},
|
|
5499
|
+
}, x1 = (e, t, i, r) => {
|
|
5500
5500
|
const {
|
|
5501
5501
|
referenceSet: n,
|
|
5502
5502
|
referenceRef: o,
|
|
@@ -5541,7 +5541,7 @@ const y2 = new Al(), b2 = (e, t, i, r) => {
|
|
|
5541
5541
|
syncReference: l
|
|
5542
5542
|
};
|
|
5543
5543
|
};
|
|
5544
|
-
function
|
|
5544
|
+
function E1({
|
|
5545
5545
|
onClose: e,
|
|
5546
5546
|
warningType: t,
|
|
5547
5547
|
isCheatingModalOpen: i = !1
|
|
@@ -5575,7 +5575,7 @@ function E2({
|
|
|
5575
5575
|
}
|
|
5576
5576
|
);
|
|
5577
5577
|
}
|
|
5578
|
-
const
|
|
5578
|
+
const _1 = ({ status: e }) => {
|
|
5579
5579
|
const t = ka[e];
|
|
5580
5580
|
if (!t) return null;
|
|
5581
5581
|
const i = e !== "face_detected";
|
|
@@ -5650,19 +5650,19 @@ const _2 = ({ status: e }) => {
|
|
|
5650
5650
|
loadingProgress: ii,
|
|
5651
5651
|
permissionDenied: Tt,
|
|
5652
5652
|
clearCache: ri
|
|
5653
|
-
} =
|
|
5653
|
+
} = c1(), { fps: ni, updateFPS: ot } = l1(), { drawWithEngagementBar: At, clearCanvas: de, engagementRef: et } = d1(), {
|
|
5654
5654
|
engagement: oi,
|
|
5655
5655
|
isLookingAway: Ut,
|
|
5656
5656
|
analyzeGaze: un,
|
|
5657
5657
|
setEngagement: mr,
|
|
5658
5658
|
setIsLookingAway: si
|
|
5659
|
-
} =
|
|
5659
|
+
} = h1(), {
|
|
5660
5660
|
multipleFacesDetected: Gi,
|
|
5661
5661
|
referenceFaceNotDetected: ai,
|
|
5662
5662
|
analyzeFace: hn,
|
|
5663
5663
|
setMultipleFacesDetected: ji,
|
|
5664
5664
|
setReferenceFaceNotDetected: ci
|
|
5665
|
-
} =
|
|
5665
|
+
} = w1(), { referenceSet: zi, referenceRef: B, setReference: z, resetReference: He, syncReference: gr } = x1(
|
|
5666
5666
|
gt,
|
|
5667
5667
|
Y,
|
|
5668
5668
|
We,
|
|
@@ -5677,7 +5677,7 @@ const _2 = ({ status: e }) => {
|
|
|
5677
5677
|
closeWarningModal: Zo,
|
|
5678
5678
|
setShowGazeWarningModal: es,
|
|
5679
5679
|
setFaceDetectionState: ts
|
|
5680
|
-
} =
|
|
5680
|
+
} = g1(
|
|
5681
5681
|
Fl,
|
|
5682
5682
|
v && !a
|
|
5683
5683
|
// Disable warning manager modal triggers if overlay is on
|
|
@@ -5705,7 +5705,7 @@ const _2 = ({ status: e }) => {
|
|
|
5705
5705
|
pr,
|
|
5706
5706
|
s
|
|
5707
5707
|
]);
|
|
5708
|
-
const { renderLoop: Rl } =
|
|
5708
|
+
const { renderLoop: Rl } = v1(
|
|
5709
5709
|
Y,
|
|
5710
5710
|
ie,
|
|
5711
5711
|
gt,
|
|
@@ -5722,7 +5722,7 @@ const _2 = ({ status: e }) => {
|
|
|
5722
5722
|
We,
|
|
5723
5723
|
ci
|
|
5724
5724
|
);
|
|
5725
|
-
|
|
5725
|
+
b1(Y, Ce, Rl, We), D(() => {
|
|
5726
5726
|
gr();
|
|
5727
5727
|
}, [gr]), D(() => {
|
|
5728
5728
|
et && et.current && (et.current.value = oi, et.current.isLookingAway = Ut);
|
|
@@ -5871,7 +5871,7 @@ const _2 = ({ status: e }) => {
|
|
|
5871
5871
|
}
|
|
5872
5872
|
),
|
|
5873
5873
|
/* @__PURE__ */ c("div", { className: "iw-absolute iw-bottom-2 iw-inset-x-0 iw-flex iw-justify-center iw-pointer-events-none iw-z-20", children: /* @__PURE__ */ c(
|
|
5874
|
-
|
|
5874
|
+
_1,
|
|
5875
5875
|
{
|
|
5876
5876
|
status: d ? u || !Ce ? "model_loading" : pr() ?? "no_face_detected" : "camera_error"
|
|
5877
5877
|
}
|
|
@@ -5881,7 +5881,7 @@ const _2 = ({ status: e }) => {
|
|
|
5881
5881
|
}
|
|
5882
5882
|
) }),
|
|
5883
5883
|
v && Jo && !a && /* @__PURE__ */ c(
|
|
5884
|
-
|
|
5884
|
+
E1,
|
|
5885
5885
|
{
|
|
5886
5886
|
isOpen: Jo,
|
|
5887
5887
|
onClose: Ml,
|
|
@@ -5924,7 +5924,7 @@ const _2 = ({ status: e }) => {
|
|
|
5924
5924
|
]
|
|
5925
5925
|
}
|
|
5926
5926
|
);
|
|
5927
|
-
},
|
|
5927
|
+
}, k1 = ({ stream: e, className: t = "", barCount: i = 50 }) => {
|
|
5928
5928
|
const r = M(null), n = M(null), o = M(null), s = M(null), a = M(null);
|
|
5929
5929
|
D(() => {
|
|
5930
5930
|
if (!e || window === void 0) return;
|
|
@@ -6033,7 +6033,7 @@ const _2 = ({ status: e }) => {
|
|
|
6033
6033
|
) }),
|
|
6034
6034
|
o && a && /* @__PURE__ */ m("div", { className: "iw-mt-2 iw-px-1 iw-flex iw-items-center iw-gap-2 iw-overflow-hidden", children: [
|
|
6035
6035
|
/* @__PURE__ */ c(gd, { className: "iw-min-h-5 iw-min-w-5" }),
|
|
6036
|
-
/* @__PURE__ */ c(
|
|
6036
|
+
/* @__PURE__ */ c(k1, { stream: s, className: "iw-w-full" })
|
|
6037
6037
|
] }),
|
|
6038
6038
|
u && a && /* @__PURE__ */ m("div", { className: "iw-absolute iw-bottom-full iw-left-0 iw-right-0 iw-mb-2 iw-bg-white iw-border iw-border-gray-100 iw-rounded-xl iw-shadow-xl iw-z-50 iw-py-2 iw-max-h-60 iw-overflow-y-auto", children: [
|
|
6039
6039
|
t.map((g) => /* @__PURE__ */ m(
|
|
@@ -6130,10 +6130,10 @@ const _2 = ({ status: e }) => {
|
|
|
6130
6130
|
children: p ? "Device Loading..." : i
|
|
6131
6131
|
}
|
|
6132
6132
|
),
|
|
6133
|
-
!n && (!a || e && t) &&
|
|
6133
|
+
!n && (!a || e && t) && T1()
|
|
6134
6134
|
] })
|
|
6135
6135
|
] });
|
|
6136
|
-
},
|
|
6136
|
+
}, T1 = () => {
|
|
6137
6137
|
const { baseColor: e } = Si();
|
|
6138
6138
|
return /* @__PURE__ */ c(yt, { children: /* @__PURE__ */ c("div", { className: "iw-hidden group-hover:iw-block iw-absolute iw-bottom-full iw-mb-3 iw-left-1/2 -iw-translate-x-1/2 iw-w-64 iw-z-50", children: /* @__PURE__ */ m(
|
|
6139
6139
|
"div",
|
|
@@ -6149,7 +6149,7 @@ const _2 = ({ status: e }) => {
|
|
|
6149
6149
|
]
|
|
6150
6150
|
}
|
|
6151
6151
|
) }) });
|
|
6152
|
-
},
|
|
6152
|
+
}, A1 = ({ steps: e, currentStepIndex: t }) => /* @__PURE__ */ c("div", { className: "iw-flex iw-items-center iw-justify-center iw-gap-4 iw-w-full iw-py-3", children: e.map((i, r) => {
|
|
6153
6153
|
const n = r < t, o = r === t;
|
|
6154
6154
|
return /* @__PURE__ */ m(Hn.Fragment, { children: [
|
|
6155
6155
|
/* @__PURE__ */ m("div", { className: "iw-flex iw-items-center iw-gap-3", children: [
|
|
@@ -6184,12 +6184,12 @@ const _2 = ({ status: e }) => {
|
|
|
6184
6184
|
] }),
|
|
6185
6185
|
r < e.length - 1 && /* @__PURE__ */ c("div", { className: "iw-flex-1 iw-max-w-[120px] iw-border-t iw-border-dotted iw-border-[#B3B9CB]" })
|
|
6186
6186
|
] }, r);
|
|
6187
|
-
}) }),
|
|
6187
|
+
}) }), N1 = [
|
|
6188
6188
|
"Don't refresh or reload the page during your assessment",
|
|
6189
6189
|
"Don't switch tabs or open other applications while session is ongoing",
|
|
6190
6190
|
"Don't leave your position during the session",
|
|
6191
6191
|
"Don't disable or interfere with video/audio monitoring"
|
|
6192
|
-
],
|
|
6192
|
+
], S1 = ({
|
|
6193
6193
|
isOpen: e,
|
|
6194
6194
|
onStart: t,
|
|
6195
6195
|
gazeEnabled: i = !1,
|
|
@@ -6230,7 +6230,7 @@ const _2 = ({ status: e }) => {
|
|
|
6230
6230
|
/* @__PURE__ */ c("h2", { className: "iw-text-[#062260] iw-text-2xl iw-font-medium iw-tracking-tight", children: "Final checks before you go live" }),
|
|
6231
6231
|
/* @__PURE__ */ c("div", { className: "iw-mt-2 iw-bg-[#F1F5FE] iw-rounded-xl iw-p-2 iw-border iw-border-[#E7EAF1]", children: /* @__PURE__ */ c("p", { className: "iw-text-[#5C6686] iw-text-xs iw-leading-relaxed", children: "To ensure the integrity of the interview process, this platform uses your device’s camera to monitor your face and gaze direction. We do not store any outside this session" }) }),
|
|
6232
6232
|
/* @__PURE__ */ c("div", { className: "iw-mt-3 iw-border-b iw-border-dashed iw-border-[#B3B9CB] iw-w-full" }),
|
|
6233
|
-
/* @__PURE__ */ c(
|
|
6233
|
+
/* @__PURE__ */ c(A1, { steps: [
|
|
6234
6234
|
{ label: i ? "Calibrate your camera" : "Camera & Mic permission" },
|
|
6235
6235
|
{ label: "Basic guidelines" }
|
|
6236
6236
|
], currentStepIndex: S })
|
|
@@ -6285,7 +6285,7 @@ const _2 = ({ status: e }) => {
|
|
|
6285
6285
|
}
|
|
6286
6286
|
)
|
|
6287
6287
|
] }) : /* @__PURE__ */ m("div", { className: "iw-w-full iw-flex iw-flex-col iw-gap-6", children: [
|
|
6288
|
-
/* @__PURE__ */ c("div", { className: "iw-w-full iw-bg-[#F8FAFF] iw-rounded-2xl iw-p-8 iw-flex iw-flex-col iw-gap-5", children:
|
|
6288
|
+
/* @__PURE__ */ c("div", { className: "iw-w-full iw-bg-[#F8FAFF] iw-rounded-2xl iw-p-8 iw-flex iw-flex-col iw-gap-5", children: N1.map((V, J) => /* @__PURE__ */ m("div", { className: "iw-flex iw-items-center iw-gap-4", children: [
|
|
6289
6289
|
/* @__PURE__ */ c("div", { className: "iw-flex iw-h-7 iw-w-7 iw-min-w-[28px] iw-items-center iw-justify-center iw-rounded-full iw-bg-[#DBEAFE] iw-text-[#062260] iw-text-xs iw-font-bold", children: J + 1 }),
|
|
6290
6290
|
/* @__PURE__ */ c("span", { className: "iw-text-[#5C6686] iw-font-medium", children: V })
|
|
6291
6291
|
] }, J)) }),
|
|
@@ -6324,7 +6324,8 @@ const Sl = {
|
|
|
6324
6324
|
/* ANSWERING */
|
|
6325
6325
|
},
|
|
6326
6326
|
thinking: { next: "answering", duration: 0 },
|
|
6327
|
-
|
|
6327
|
+
// TODO: change 10 to 120
|
|
6328
|
+
answering: { next: "transcribing", duration: 10 },
|
|
6328
6329
|
transcribing: {
|
|
6329
6330
|
next: "editing"
|
|
6330
6331
|
/* EDITING */
|
|
@@ -6339,7 +6340,7 @@ const Sl = {
|
|
|
6339
6340
|
/* COMPLETED */
|
|
6340
6341
|
}
|
|
6341
6342
|
};
|
|
6342
|
-
class
|
|
6343
|
+
class C1 {
|
|
6343
6344
|
constructor(t = {}, i = {}) {
|
|
6344
6345
|
Ne(this, "config");
|
|
6345
6346
|
Ne(this, "state");
|
|
@@ -6458,9 +6459,9 @@ class C2 {
|
|
|
6458
6459
|
(i = (t = this.callbacks).onPhaseChange) == null || i.call(t, this.state.phase, this.getState());
|
|
6459
6460
|
}
|
|
6460
6461
|
}
|
|
6461
|
-
function
|
|
6462
|
+
function I1(e = {}) {
|
|
6462
6463
|
const { config: t = {}, callbacks: i = {} } = e, r = M(null);
|
|
6463
|
-
r.current || (r.current = new
|
|
6464
|
+
r.current || (r.current = new C1(t, {}));
|
|
6464
6465
|
const n = r.current, [o, s] = _(n.getState()), a = L(() => {
|
|
6465
6466
|
s(n.getState());
|
|
6466
6467
|
}, [n]);
|
|
@@ -6500,7 +6501,7 @@ function I2(e = {}) {
|
|
|
6500
6501
|
timerService: n
|
|
6501
6502
|
};
|
|
6502
6503
|
}
|
|
6503
|
-
function
|
|
6504
|
+
function F1(e, t = {}) {
|
|
6504
6505
|
const [i, r] = _({
|
|
6505
6506
|
data: null,
|
|
6506
6507
|
loading: !1,
|
|
@@ -6539,7 +6540,7 @@ function F2(e, t = {}) {
|
|
|
6539
6540
|
execute: n
|
|
6540
6541
|
};
|
|
6541
6542
|
}
|
|
6542
|
-
const
|
|
6543
|
+
const R1 = (e) => {
|
|
6543
6544
|
const [t, i] = _(null), [r, n] = _(!1), o = document, s = () => !!(o.fullscreenEnabled || o.webkitFullscreenEnabled || o.mozFullScreenEnabled || o.msFullscreenEnabled), a = () => o.fullscreenElement || o.webkitFullscreenElement || o.mozFullScreenElement || o.msFullscreenElement, l = async (w) => {
|
|
6544
6545
|
var g;
|
|
6545
6546
|
try {
|
|
@@ -6606,7 +6607,7 @@ function Cl() {
|
|
|
6606
6607
|
return new Ta(i);
|
|
6607
6608
|
}, [e.api]);
|
|
6608
6609
|
}
|
|
6609
|
-
const
|
|
6610
|
+
const L1 = (e) => {
|
|
6610
6611
|
D(() => {
|
|
6611
6612
|
const t = (r) => {
|
|
6612
6613
|
(r.ctrlKey || r.metaKey) && ["c", "v", "a", "t", "n", "w", "r", "s", "p"].includes(r.key.toLowerCase()) && (r.preventDefault(), e({
|
|
@@ -6645,7 +6646,7 @@ const L2 = (e) => {
|
|
|
6645
6646
|
document.removeEventListener("keydown", t), document.removeEventListener("contextmenu", i);
|
|
6646
6647
|
};
|
|
6647
6648
|
}, [e]);
|
|
6648
|
-
},
|
|
6649
|
+
}, M1 = (e = {}) => {
|
|
6649
6650
|
const [t, i] = _(!1), [r, n] = _(!1), [o, s] = _(null), [a, l] = _(null), [u, d] = _(null), h = M(e);
|
|
6650
6651
|
h.current = e;
|
|
6651
6652
|
const f = M(null);
|
|
@@ -6745,7 +6746,7 @@ const L2 = (e) => {
|
|
|
6745
6746
|
error: a,
|
|
6746
6747
|
audioBlob: u
|
|
6747
6748
|
};
|
|
6748
|
-
},
|
|
6749
|
+
}, D1 = (e) => {
|
|
6749
6750
|
const t = M(null), i = M(!1);
|
|
6750
6751
|
D(() => {
|
|
6751
6752
|
const r = () => {
|
|
@@ -6775,7 +6776,7 @@ const L2 = (e) => {
|
|
|
6775
6776
|
document.removeEventListener("visibilitychange", r), window.removeEventListener("blur", n), t.current && clearTimeout(t.current);
|
|
6776
6777
|
};
|
|
6777
6778
|
}, [e]);
|
|
6778
|
-
},
|
|
6779
|
+
}, P1 = () => {
|
|
6779
6780
|
D(() => {
|
|
6780
6781
|
const e = document.createElement("style");
|
|
6781
6782
|
return e.textContent = `
|
|
@@ -6796,7 +6797,7 @@ const L2 = (e) => {
|
|
|
6796
6797
|
};
|
|
6797
6798
|
}, []);
|
|
6798
6799
|
};
|
|
6799
|
-
class
|
|
6800
|
+
class O1 {
|
|
6800
6801
|
constructor() {
|
|
6801
6802
|
Ne(this, "currentAudio", null);
|
|
6802
6803
|
}
|
|
@@ -6851,7 +6852,7 @@ class O2 {
|
|
|
6851
6852
|
return this.currentAudio !== null && !this.currentAudio.paused;
|
|
6852
6853
|
}
|
|
6853
6854
|
}
|
|
6854
|
-
const da = new
|
|
6855
|
+
const da = new O1(), B1 = (e = {}) => {
|
|
6855
6856
|
const [t, i] = _(!1), [r, n] = _(!1), [o, s] = _(null), a = L(
|
|
6856
6857
|
async (u) => {
|
|
6857
6858
|
var d;
|
|
@@ -6886,7 +6887,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
6886
6887
|
isLoading: r,
|
|
6887
6888
|
error: o
|
|
6888
6889
|
};
|
|
6889
|
-
},
|
|
6890
|
+
}, U1 = ({
|
|
6890
6891
|
onViolation: e,
|
|
6891
6892
|
onEnd: t,
|
|
6892
6893
|
maxViolations: i = 5
|
|
@@ -6921,7 +6922,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
6921
6922
|
violationCount: o,
|
|
6922
6923
|
logList: n
|
|
6923
6924
|
};
|
|
6924
|
-
},
|
|
6925
|
+
}, V1 = () => {
|
|
6925
6926
|
D(() => {
|
|
6926
6927
|
function e() {
|
|
6927
6928
|
console.clear(), console.log(
|
|
@@ -7016,7 +7017,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7016
7017
|
children: r ? /* @__PURE__ */ c(_a, {}) : n
|
|
7017
7018
|
}
|
|
7018
7019
|
);
|
|
7019
|
-
},
|
|
7020
|
+
}, G1 = (e, t, i) => Math.max(t, Math.min(i, e)), ua = (e) => {
|
|
7020
7021
|
const t = Math.max(0, Math.floor(e)), i = Math.floor(t / 60).toString().padStart(2, "0"), r = (t % 60).toString().padStart(2, "0");
|
|
7021
7022
|
return `${i}:${r}`;
|
|
7022
7023
|
}, dn = ({
|
|
@@ -7027,7 +7028,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7027
7028
|
className: n = "",
|
|
7028
7029
|
showLabel: o = !0
|
|
7029
7030
|
}) => {
|
|
7030
|
-
const s = Math.max(1, e || 1), a =
|
|
7031
|
+
const s = Math.max(1, e || 1), a = G1(t / s, 0, 1), { radius: l, circumference: u, dashOffset: d, center: h } = er(() => {
|
|
7031
7032
|
const g = (i - r) / 2, y = 2 * Math.PI * g, p = y * (1 - a), b = Math.round(r) % 2 === 1, v = i / 2 + (b ? 0.5 : 0);
|
|
7032
7033
|
return { radius: g, circumference: y, dashOffset: p, center: v };
|
|
7033
7034
|
}, [i, r, a]), f = er(() => a <= 0.25 ? "iw-stroke-red-500" : a <= 0.5 ? "iw-stroke-yellow-500" : "iw-stroke-green-500", [a]), w = a <= 0.25 ? "iw-animate-pulse" : "";
|
|
@@ -7093,7 +7094,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7093
7094
|
]
|
|
7094
7095
|
}
|
|
7095
7096
|
);
|
|
7096
|
-
},
|
|
7097
|
+
}, j1 = ({
|
|
7097
7098
|
timerState: e,
|
|
7098
7099
|
answeringTime: t
|
|
7099
7100
|
}) => {
|
|
@@ -7118,7 +7119,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7118
7119
|
] })
|
|
7119
7120
|
] })
|
|
7120
7121
|
] });
|
|
7121
|
-
},
|
|
7122
|
+
}, z1 = ({
|
|
7122
7123
|
question: e,
|
|
7123
7124
|
isLoading: t = !1,
|
|
7124
7125
|
phase: i,
|
|
@@ -7148,7 +7149,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7148
7149
|
}
|
|
7149
7150
|
),
|
|
7150
7151
|
/* @__PURE__ */ c(
|
|
7151
|
-
$
|
|
7152
|
+
$1,
|
|
7152
7153
|
{
|
|
7153
7154
|
phase: i,
|
|
7154
7155
|
question: e,
|
|
@@ -7160,7 +7161,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7160
7161
|
)
|
|
7161
7162
|
] })
|
|
7162
7163
|
}
|
|
7163
|
-
), $
|
|
7164
|
+
), $1 = ({ phase: e, question: t, isLoading: i, brandName: r, timerState: n, answeringTime: o }) => {
|
|
7164
7165
|
const s = r || "We", a = r ? "is" : "are";
|
|
7165
7166
|
if (i || e === G.FETCHING_QUESTION || e === G.IDLE)
|
|
7166
7167
|
return /* @__PURE__ */ m("div", { className: "iw-animate-pulse iw-w-full iw-space-y-3 iw-mr-10", children: [
|
|
@@ -7180,7 +7181,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7180
7181
|
/* @__PURE__ */ c(l, {})
|
|
7181
7182
|
] }),
|
|
7182
7183
|
/* @__PURE__ */ c(
|
|
7183
|
-
|
|
7184
|
+
j1,
|
|
7184
7185
|
{
|
|
7185
7186
|
timerState: n,
|
|
7186
7187
|
answeringTime: o
|
|
@@ -7205,7 +7206,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7205
7206
|
default:
|
|
7206
7207
|
return /* @__PURE__ */ c("p", { className: "iw-text-lg iw-leading-7", children: t == null ? void 0 : t.question });
|
|
7207
7208
|
}
|
|
7208
|
-
},
|
|
7209
|
+
}, W1 = ({
|
|
7209
7210
|
label: e,
|
|
7210
7211
|
error: t,
|
|
7211
7212
|
fullWidth: i = !1,
|
|
@@ -7240,14 +7241,14 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7240
7241
|
]
|
|
7241
7242
|
}
|
|
7242
7243
|
);
|
|
7243
|
-
},
|
|
7244
|
+
}, H1 = ({
|
|
7244
7245
|
answerText: e,
|
|
7245
7246
|
onAnswerChange: t,
|
|
7246
7247
|
timerState: i,
|
|
7247
7248
|
editingTime: r
|
|
7248
7249
|
}) => /* @__PURE__ */ m("div", { className: "iw-w-full iw-bg-white iw-rounded-xl iw-border iw-border-[#84bbf5] iw-overflow-hidden iw-rounded-tr-none", children: [
|
|
7249
7250
|
/* @__PURE__ */ c("div", { className: "iw-p-2 iw-pb-0", children: /* @__PURE__ */ c(
|
|
7250
|
-
|
|
7251
|
+
W1,
|
|
7251
7252
|
{
|
|
7252
7253
|
value: e,
|
|
7253
7254
|
onChange: t,
|
|
@@ -7274,9 +7275,9 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7274
7275
|
] })
|
|
7275
7276
|
] }), ha = ({
|
|
7276
7277
|
children: e
|
|
7277
|
-
}) => /* @__PURE__ */ c("div", { className: "iw-flex iw-flex-col iw-items-start iw-mt-3 iw-gap-1", children: e }),
|
|
7278
|
+
}) => /* @__PURE__ */ c("div", { className: "iw-flex iw-flex-col iw-items-start iw-mt-3 iw-gap-1", children: e }), q1 = ({
|
|
7278
7279
|
children: e
|
|
7279
|
-
}) => /* @__PURE__ */ c("div", { className: "iw-flex iw-flex-col iw-items-end iw-mt-3 iw-gap-1", children: e }),
|
|
7280
|
+
}) => /* @__PURE__ */ c("div", { className: "iw-flex iw-flex-col iw-items-end iw-mt-3 iw-gap-1", children: e }), K1 = ({ questionNumber: e }) => /* @__PURE__ */ m(
|
|
7280
7281
|
"div",
|
|
7281
7282
|
{
|
|
7282
7283
|
className: "iw-px-4 iw-py-1.5 iw-rounded-full iw-mb-2 iw-text-sm iw-font-semibold",
|
|
@@ -7297,15 +7298,15 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7297
7298
|
/* @__PURE__ */ c("span", { children: "." }),
|
|
7298
7299
|
/* @__PURE__ */ c("span", { children: "." })
|
|
7299
7300
|
] })
|
|
7300
|
-
] }),
|
|
7301
|
+
] }), Y1 = ({ phase: e, questionNumber: t }) => {
|
|
7301
7302
|
switch (e) {
|
|
7302
7303
|
case G.FETCHING_QUESTION:
|
|
7303
7304
|
return /* @__PURE__ */ m(ha, { children: [
|
|
7304
|
-
/* @__PURE__ */ c(
|
|
7305
|
+
/* @__PURE__ */ c(K1, { questionNumber: t + 1 }),
|
|
7305
7306
|
/* @__PURE__ */ c(fa, {})
|
|
7306
7307
|
] });
|
|
7307
7308
|
case G.ANSWERING:
|
|
7308
|
-
return /* @__PURE__ */ c(
|
|
7309
|
+
return /* @__PURE__ */ c(q1, { children: /* @__PURE__ */ c(fa, { label: "You" }) });
|
|
7309
7310
|
case G.TRANSCRIBING:
|
|
7310
7311
|
return /* @__PURE__ */ c(ha, { children: /* @__PURE__ */ m("div", { className: "iw-flex iw-items-center iw-px-1 iw-py-1.5 iw-rounded-lg iw-mb-2 iw-text-sm iw-bg-[#F2E8FE]", children: [
|
|
7311
7312
|
/* @__PURE__ */ c("div", { className: "iw-h-8 iw-w-12 iw-transcribing-icon" }),
|
|
@@ -7314,7 +7315,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7314
7315
|
default:
|
|
7315
7316
|
return null;
|
|
7316
7317
|
}
|
|
7317
|
-
},
|
|
7318
|
+
}, X1 = ({
|
|
7318
7319
|
item: e,
|
|
7319
7320
|
index: t,
|
|
7320
7321
|
isCurrentQuestion: i = !1,
|
|
@@ -7368,7 +7369,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7368
7369
|
}
|
|
7369
7370
|
),
|
|
7370
7371
|
l ? /* @__PURE__ */ c(
|
|
7371
|
-
|
|
7372
|
+
H1,
|
|
7372
7373
|
{
|
|
7373
7374
|
answerText: n || "",
|
|
7374
7375
|
onAnswerChange: o,
|
|
@@ -7387,14 +7388,14 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7387
7388
|
)
|
|
7388
7389
|
] }),
|
|
7389
7390
|
i && /* @__PURE__ */ c(
|
|
7390
|
-
|
|
7391
|
+
Y1,
|
|
7391
7392
|
{
|
|
7392
7393
|
phase: s == null ? void 0 : s.phase,
|
|
7393
7394
|
questionNumber: t + 1
|
|
7394
7395
|
}
|
|
7395
7396
|
)
|
|
7396
7397
|
] });
|
|
7397
|
-
},
|
|
7398
|
+
}, Q1 = () => /* @__PURE__ */ c("div", { className: "iw-space-y-6 iw-animate-pulse", children: [1, 2, 3].map((e) => /* @__PURE__ */ m(
|
|
7398
7399
|
"div",
|
|
7399
7400
|
{
|
|
7400
7401
|
className: `iw-flex iw-flex-col ${e % 2 === 0 ? "iw-items-end" : "iw-items-start"} iw-gap-2`,
|
|
@@ -7404,7 +7405,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7404
7405
|
]
|
|
7405
7406
|
},
|
|
7406
7407
|
e
|
|
7407
|
-
)) }),
|
|
7408
|
+
)) }), J1 = ({
|
|
7408
7409
|
transcript: e,
|
|
7409
7410
|
isLoading: t,
|
|
7410
7411
|
className: i = "",
|
|
@@ -7431,8 +7432,8 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7431
7432
|
/* @__PURE__ */ c("div", { className: "iw-h-px iw-w-full iw-border-t iw-border-dashed iw-border-gray-300" })
|
|
7432
7433
|
] }),
|
|
7433
7434
|
/* @__PURE__ */ m("div", { className: "iw-flex-1 iw-overflow-y-auto iw-pr-2 iw-space-y-6 iw-scrollbar-thin iw-max-w-xl iw-pb-5", children: [
|
|
7434
|
-
t ? /* @__PURE__ */ c(
|
|
7435
|
-
|
|
7435
|
+
t ? /* @__PURE__ */ c(Q1, {}) : e == null ? void 0 : e.map((u, d) => /* @__PURE__ */ c(
|
|
7436
|
+
X1,
|
|
7436
7437
|
{
|
|
7437
7438
|
item: u,
|
|
7438
7439
|
index: d,
|
|
@@ -7450,7 +7451,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7450
7451
|
] })
|
|
7451
7452
|
]
|
|
7452
7453
|
}
|
|
7453
|
-
),
|
|
7454
|
+
), Z1 = ({
|
|
7454
7455
|
interviewId: e,
|
|
7455
7456
|
className: t = "",
|
|
7456
7457
|
currentQuestion: i,
|
|
@@ -7502,7 +7503,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7502
7503
|
answer_submitted_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
7503
7504
|
} : p));
|
|
7504
7505
|
}, [r, o]), /* @__PURE__ */ c(
|
|
7505
|
-
|
|
7506
|
+
J1,
|
|
7506
7507
|
{
|
|
7507
7508
|
transcript: d,
|
|
7508
7509
|
isLoading: f || (d == null ? void 0 : d.length) === 0,
|
|
@@ -7516,7 +7517,7 @@ const da = new O2(), B2 = (e = {}) => {
|
|
|
7516
7517
|
}
|
|
7517
7518
|
);
|
|
7518
7519
|
}, kn = 5, Tn = 5;
|
|
7519
|
-
function
|
|
7520
|
+
function e2({
|
|
7520
7521
|
isOpen: e,
|
|
7521
7522
|
onClose: t,
|
|
7522
7523
|
warningCount: i,
|
|
@@ -7594,7 +7595,7 @@ function e1({
|
|
|
7594
7595
|
}
|
|
7595
7596
|
);
|
|
7596
7597
|
}
|
|
7597
|
-
const
|
|
7598
|
+
const t2 = ({
|
|
7598
7599
|
isOpen: e,
|
|
7599
7600
|
onClose: t,
|
|
7600
7601
|
children: i,
|
|
@@ -7673,7 +7674,7 @@ const t1 = ({
|
|
|
7673
7674
|
)
|
|
7674
7675
|
] });
|
|
7675
7676
|
return ga(u, document.body);
|
|
7676
|
-
},
|
|
7677
|
+
}, i2 = (e) => /* @__PURE__ */ m(
|
|
7677
7678
|
"svg",
|
|
7678
7679
|
{
|
|
7679
7680
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7691,7 +7692,7 @@ const t1 = ({
|
|
|
7691
7692
|
/* @__PURE__ */ c("circle", { cx: "12", cy: "12", r: "10" })
|
|
7692
7693
|
]
|
|
7693
7694
|
}
|
|
7694
|
-
),
|
|
7695
|
+
), r2 = ({
|
|
7695
7696
|
showHardReloadWarning: e,
|
|
7696
7697
|
onContinue: t
|
|
7697
7698
|
}) => {
|
|
@@ -7699,7 +7700,7 @@ const t1 = ({
|
|
|
7699
7700
|
t();
|
|
7700
7701
|
};
|
|
7701
7702
|
return /* @__PURE__ */ m(
|
|
7702
|
-
|
|
7703
|
+
t2,
|
|
7703
7704
|
{
|
|
7704
7705
|
isOpen: e,
|
|
7705
7706
|
onClose: i,
|
|
@@ -7720,7 +7721,7 @@ const t1 = ({
|
|
|
7720
7721
|
onClick: i,
|
|
7721
7722
|
className: "iw-w-full iw-flex iw-items-center iw-justify-center iw-gap-2 iw-px-4 iw-py-3 iw-bg-gray-100 iw-text-gray-600 iw-rounded-md iw-font-medium iw-transition-colors hover:iw-bg-gray-200 focus:iw-outline-none focus:iw-ring-2 focus:iw-ring-gray-400 focus:iw-ring-offset-2",
|
|
7722
7723
|
children: [
|
|
7723
|
-
/* @__PURE__ */ c(
|
|
7724
|
+
/* @__PURE__ */ c(i2, { className: "iw-size-4" }),
|
|
7724
7725
|
"Continue Session"
|
|
7725
7726
|
]
|
|
7726
7727
|
}
|
|
@@ -7728,7 +7729,7 @@ const t1 = ({
|
|
|
7728
7729
|
]
|
|
7729
7730
|
}
|
|
7730
7731
|
);
|
|
7731
|
-
}, Il = qn(null),
|
|
7732
|
+
}, Il = qn(null), n2 = () => {
|
|
7732
7733
|
const e = Ni(Il);
|
|
7733
7734
|
return e || {
|
|
7734
7735
|
violationCount: 0,
|
|
@@ -7741,14 +7742,14 @@ const t1 = ({
|
|
|
7741
7742
|
handleDisqualify: () => {
|
|
7742
7743
|
}
|
|
7743
7744
|
};
|
|
7744
|
-
},
|
|
7745
|
+
}, o2 = wa(
|
|
7745
7746
|
({ children: e, onDisqualify: t, isCompleted: i }, r) => {
|
|
7746
|
-
const [n, o] = _(!1), [s, a] = _(!1), [l, u] = _(!1), [d, h] = _("fullscreen_exit"), { logViolation: f, violationCount: w } =
|
|
7747
|
+
const [n, o] = _(!1), [s, a] = _(!1), [l, u] = _(!1), [d, h] = _("fullscreen_exit"), { logViolation: f, violationCount: w } = U1({
|
|
7747
7748
|
maxViolations: 5,
|
|
7748
7749
|
onViolation: (v) => {
|
|
7749
7750
|
!s && !i && !l && (o(!0), h(v.type));
|
|
7750
7751
|
}
|
|
7751
|
-
}), { enterFullScreen: g, isFullScreen: y, exitFullScreen: p } =
|
|
7752
|
+
}), { enterFullScreen: g, isFullScreen: y, exitFullScreen: p } = R1({
|
|
7752
7753
|
onFullScreenChange(v) {
|
|
7753
7754
|
!v && !s && !l && !i && (o(!0), f({
|
|
7754
7755
|
type: "fullscreen_exit",
|
|
@@ -7775,7 +7776,7 @@ const t1 = ({
|
|
|
7775
7776
|
}
|
|
7776
7777
|
}),
|
|
7777
7778
|
[]
|
|
7778
|
-
),
|
|
7779
|
+
), D1(f), L1(f), P1(), V1(), D(() => {
|
|
7779
7780
|
const v = (F) => {
|
|
7780
7781
|
if (!(s || l || i))
|
|
7781
7782
|
return F.preventDefault(), F.returnValue = void 0, "";
|
|
@@ -7803,7 +7804,7 @@ const t1 = ({
|
|
|
7803
7804
|
children: [
|
|
7804
7805
|
/* @__PURE__ */ c("div", { className: "iw-relative iw-h-full iw-w-full", children: e }),
|
|
7805
7806
|
!y && w > 0 && !s && !l && /* @__PURE__ */ c(
|
|
7806
|
-
|
|
7807
|
+
r2,
|
|
7807
7808
|
{
|
|
7808
7809
|
showHardReloadWarning: !0,
|
|
7809
7810
|
logViolation: f,
|
|
@@ -7814,7 +7815,7 @@ const t1 = ({
|
|
|
7814
7815
|
}
|
|
7815
7816
|
);
|
|
7816
7817
|
}
|
|
7817
|
-
),
|
|
7818
|
+
), s2 = ({
|
|
7818
7819
|
onClick: e,
|
|
7819
7820
|
text: t = "Submit response"
|
|
7820
7821
|
}) => (D(() => {
|
|
@@ -7834,7 +7835,7 @@ const t1 = ({
|
|
|
7834
7835
|
/* @__PURE__ */ c("span", { className: "iw-bg-white/90 iw-text-[#062260] iw-px-2 iw-py-1 iw-rounded iw-text-xs iw-font-mono iw-font-bold group-hover:iw-bg-white iw-transition-colors", children: "Press Enter" })
|
|
7835
7836
|
]
|
|
7836
7837
|
}
|
|
7837
|
-
) })),
|
|
7838
|
+
) })), a2 = ({
|
|
7838
7839
|
brandName: e,
|
|
7839
7840
|
brandLogo: t,
|
|
7840
7841
|
currentQuestion: i,
|
|
@@ -7857,7 +7858,7 @@ const t1 = ({
|
|
|
7857
7858
|
violationType: b,
|
|
7858
7859
|
handleClose: v,
|
|
7859
7860
|
handleDisqualify: F
|
|
7860
|
-
} =
|
|
7861
|
+
} = n2();
|
|
7861
7862
|
return /* @__PURE__ */ m(
|
|
7862
7863
|
"div",
|
|
7863
7864
|
{
|
|
@@ -7865,7 +7866,7 @@ const t1 = ({
|
|
|
7865
7866
|
children: [
|
|
7866
7867
|
/* @__PURE__ */ m("div", { className: "iw-flex iw-flex-col iw-flex-1 iw-p-5 iw-bg-white/50 iw-border iw-border-[#E8EEFE] iw-rounded-s-3xl iw-overflow-hidden", children: [
|
|
7867
7868
|
/* @__PURE__ */ c("div", { className: "iw-flex iw-items-start iw-justify-between iw-gap-3 iw-mb-4", children: /* @__PURE__ */ c("div", { className: "iw-flex-1", children: /* @__PURE__ */ c(
|
|
7868
|
-
|
|
7869
|
+
z1,
|
|
7869
7870
|
{
|
|
7870
7871
|
question: i,
|
|
7871
7872
|
isLoading: n === G.FETCHING_QUESTION || n === G.IDLE,
|
|
@@ -7888,7 +7889,7 @@ const t1 = ({
|
|
|
7888
7889
|
}
|
|
7889
7890
|
),
|
|
7890
7891
|
/* @__PURE__ */ c(
|
|
7891
|
-
|
|
7892
|
+
e2,
|
|
7892
7893
|
{
|
|
7893
7894
|
isOpen: y,
|
|
7894
7895
|
warningCount: p,
|
|
@@ -7900,7 +7901,7 @@ const t1 = ({
|
|
|
7900
7901
|
] })
|
|
7901
7902
|
] }),
|
|
7902
7903
|
/* @__PURE__ */ c("div", { className: "iw-interview-transcription iw-w-1/4 iw-min-w-32 iw-h-full", children: /* @__PURE__ */ c(
|
|
7903
|
-
|
|
7904
|
+
Z1,
|
|
7904
7905
|
{
|
|
7905
7906
|
interviewId: s,
|
|
7906
7907
|
currentQuestion: i,
|
|
@@ -7913,7 +7914,7 @@ const t1 = ({
|
|
|
7913
7914
|
}
|
|
7914
7915
|
) }),
|
|
7915
7916
|
d && (n === G.ANSWERING || n === G.EDITING) && /* @__PURE__ */ c(
|
|
7916
|
-
|
|
7917
|
+
s2,
|
|
7917
7918
|
{
|
|
7918
7919
|
onClick: d,
|
|
7919
7920
|
text: n === G.ANSWERING ? "Submit Response" : "Submit Final Response"
|
|
@@ -7922,7 +7923,7 @@ const t1 = ({
|
|
|
7922
7923
|
]
|
|
7923
7924
|
}
|
|
7924
7925
|
);
|
|
7925
|
-
},
|
|
7926
|
+
}, c2 = ({
|
|
7926
7927
|
isOpen: e,
|
|
7927
7928
|
onClose: t,
|
|
7928
7929
|
children: i,
|
|
@@ -8021,12 +8022,12 @@ const t1 = ({
|
|
|
8021
8022
|
}
|
|
8022
8023
|
);
|
|
8023
8024
|
return ga(u, document.body);
|
|
8024
|
-
},
|
|
8025
|
+
}, l2 = ({
|
|
8025
8026
|
confirmExitInterview: e,
|
|
8026
8027
|
isOpen: t,
|
|
8027
8028
|
onClose: i
|
|
8028
8029
|
}) => /* @__PURE__ */ m(
|
|
8029
|
-
|
|
8030
|
+
c2,
|
|
8030
8031
|
{
|
|
8031
8032
|
isOpen: t,
|
|
8032
8033
|
onClose: i,
|
|
@@ -8059,7 +8060,7 @@ const t1 = ({
|
|
|
8059
8060
|
] })
|
|
8060
8061
|
]
|
|
8061
8062
|
}
|
|
8062
|
-
),
|
|
8063
|
+
), d2 = ({
|
|
8063
8064
|
title: e,
|
|
8064
8065
|
brandName: t,
|
|
8065
8066
|
brandLogo: i,
|
|
@@ -8106,7 +8107,7 @@ const t1 = ({
|
|
|
8106
8107
|
] }), {}),
|
|
8107
8108
|
/* @__PURE__ */ c("div", { className: "iw-h-px iw-bg-gray-200" }),
|
|
8108
8109
|
/* @__PURE__ */ c(
|
|
8109
|
-
|
|
8110
|
+
l2,
|
|
8110
8111
|
{
|
|
8111
8112
|
isOpen: s,
|
|
8112
8113
|
confirmExitInterview: () => {
|
|
@@ -8116,7 +8117,7 @@ const t1 = ({
|
|
|
8116
8117
|
}
|
|
8117
8118
|
)
|
|
8118
8119
|
] });
|
|
8119
|
-
},
|
|
8120
|
+
}, u2 = ({
|
|
8120
8121
|
className: e = "",
|
|
8121
8122
|
width: t,
|
|
8122
8123
|
height: i = 56,
|
|
@@ -8195,7 +8196,7 @@ const t1 = ({
|
|
|
8195
8196
|
const Ce = Math.min(xe.length - 1, gt * Ze), kt = xe[Ce] / 128 - 1, We = Math.abs(kt), ii = Math.pow(We, 0.6), Tt = Math.max(P * 0.06, ii * (P * 0.9)), ri = gt * V, ni = (P - Tt) / 2, ot = 140 - Math.min(140, 140 * We), At = 85, de = 48 + Math.floor(12 * (1 - We));
|
|
8196
8197
|
A.fillStyle = `${u}`, A.shadowColor = `hsla(${ot}, ${At}%, ${de}%, ${0.25 * We})`, A.shadowBlur = 8 * We;
|
|
8197
8198
|
const et = Math.min(Y / 2, Tt / 2);
|
|
8198
|
-
|
|
8199
|
+
h2(A, ri, ni, Y, Tt, et), A.fill();
|
|
8199
8200
|
}
|
|
8200
8201
|
};
|
|
8201
8202
|
Q();
|
|
@@ -8213,11 +8214,11 @@ const t1 = ({
|
|
|
8213
8214
|
}
|
|
8214
8215
|
);
|
|
8215
8216
|
};
|
|
8216
|
-
function
|
|
8217
|
+
function h2(e, t, i, r, n, o) {
|
|
8217
8218
|
const s = Math.min(o, r / 2, n / 2);
|
|
8218
8219
|
e.beginPath(), e.moveTo(t + s, i), e.lineTo(t + r - s, i), e.quadraticCurveTo(t + r, i, t + r, i + s), e.lineTo(t + r, i + n - s), e.quadraticCurveTo(t + r, i + n, t + r - s, i + n), e.lineTo(t + s, i + n), e.quadraticCurveTo(t, i + n, t, i + n - s), e.lineTo(t, i + s), e.quadraticCurveTo(t, i, t + s, i), e.closePath();
|
|
8219
8220
|
}
|
|
8220
|
-
const
|
|
8221
|
+
const f2 = ({
|
|
8221
8222
|
state: e,
|
|
8222
8223
|
answeringTime: t,
|
|
8223
8224
|
nextPhase: i,
|
|
@@ -8245,7 +8246,7 @@ const f1 = ({
|
|
|
8245
8246
|
/* @__PURE__ */ c("p", { className: "iw-max-w-lg iw-text-gray-500 iw-text-xs iw-leading-[21px]", children: "Done talking? Click the button to review your answer." })
|
|
8246
8247
|
] }),
|
|
8247
8248
|
/* @__PURE__ */ m("div", { children: [
|
|
8248
|
-
/* @__PURE__ */ c(
|
|
8249
|
+
/* @__PURE__ */ c(u2, {}),
|
|
8249
8250
|
r && /* @__PURE__ */ m("div", { className: "iw-mt-2 iw-text-xs iw-text-red-600", children: [
|
|
8250
8251
|
"Recording error: ",
|
|
8251
8252
|
r.message
|
|
@@ -8261,7 +8262,7 @@ const f1 = ({
|
|
|
8261
8262
|
}
|
|
8262
8263
|
) })
|
|
8263
8264
|
] });
|
|
8264
|
-
function
|
|
8265
|
+
function w2() {
|
|
8265
8266
|
const [e, t] = _(!0), i = er(
|
|
8266
8267
|
() => [0, 1, 2].map((r) => ({ id: r })),
|
|
8267
8268
|
[]
|
|
@@ -8299,7 +8300,7 @@ function w1() {
|
|
|
8299
8300
|
/* @__PURE__ */ c("div", { className: "iw-text-center", children: /* @__PURE__ */ c("p", { className: "iw-text-gray-500 iw-font-medium", children: "Preparing your question..." }) })
|
|
8300
8301
|
] });
|
|
8301
8302
|
}
|
|
8302
|
-
const
|
|
8303
|
+
const m2 = ({
|
|
8303
8304
|
size: e = "192px",
|
|
8304
8305
|
className: t,
|
|
8305
8306
|
colors: i,
|
|
@@ -8441,9 +8442,9 @@ const m1 = ({
|
|
|
8441
8442
|
}
|
|
8442
8443
|
);
|
|
8443
8444
|
};
|
|
8444
|
-
function
|
|
8445
|
+
function g2({ ttsError: e }) {
|
|
8445
8446
|
return /* @__PURE__ */ m("div", { className: "iw-flex iw-flex-col iw-items-center iw-justify-center iw-gap-8 iw-w-full iw-h-full", children: [
|
|
8446
|
-
/* @__PURE__ */ c(
|
|
8447
|
+
/* @__PURE__ */ c(m2, { size: "80px" }),
|
|
8447
8448
|
e && /* @__PURE__ */ m("div", { className: "iw-mt-2 iw-text-xs iw-text-red-600", children: [
|
|
8448
8449
|
"Audio playback failed: ",
|
|
8449
8450
|
e.message
|
|
@@ -8451,7 +8452,7 @@ function g1({ ttsError: e }) {
|
|
|
8451
8452
|
/* @__PURE__ */ c("p", { className: "iw-text- iw-text-gray-700", children: "Your AI interviewer is speaking..." })
|
|
8452
8453
|
] });
|
|
8453
8454
|
}
|
|
8454
|
-
const
|
|
8455
|
+
const p2 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("div", { className: "iw-flex iw-flex-col iw-gap-6 iw-items-center iw-justify-center iw-text-center iw-h-full ", children: [
|
|
8455
8456
|
/* @__PURE__ */ m("div", { children: [
|
|
8456
8457
|
/* @__PURE__ */ c("h3", { className: "iw-text-lg iw-font-semibold iw-text-gray-900 iw-mb-1", children: "Get Ready to Answer" }),
|
|
8457
8458
|
/* @__PURE__ */ c("p", { className: "iw-max-w-lg iw-text-gray-500 iw-text-xs iw-leading-[21px]", children: "After 30-seconds thinking time, recording will start automatically, or you can begin recording early by clicking the button below." })
|
|
@@ -8480,7 +8481,7 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8480
8481
|
children: "Start Answering"
|
|
8481
8482
|
}
|
|
8482
8483
|
) })
|
|
8483
|
-
] }),
|
|
8484
|
+
] }), y2 = ({
|
|
8484
8485
|
sttError: e,
|
|
8485
8486
|
editingDuration: t
|
|
8486
8487
|
}) => /* @__PURE__ */ m("div", { className: "iw-flex iw-flex-col iw-items-center iw-justify-center iw-h-full", children: [
|
|
@@ -8528,7 +8529,7 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8528
8529
|
e.message,
|
|
8529
8530
|
e.recoverable && " (attempting to continue)"
|
|
8530
8531
|
] })
|
|
8531
|
-
] }),
|
|
8532
|
+
] }), b2 = ({
|
|
8532
8533
|
interviewTitle: e,
|
|
8533
8534
|
brandName: t = "Novara",
|
|
8534
8535
|
brandLogo: i,
|
|
@@ -8558,7 +8559,7 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8558
8559
|
speak: J,
|
|
8559
8560
|
stop: Ze,
|
|
8560
8561
|
error: gt
|
|
8561
|
-
} =
|
|
8562
|
+
} = B1({
|
|
8562
8563
|
onEnd: () => {
|
|
8563
8564
|
V.current = !1, de();
|
|
8564
8565
|
},
|
|
@@ -8571,7 +8572,7 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8571
8572
|
transcribe: Tt,
|
|
8572
8573
|
cancelRecording: ri,
|
|
8573
8574
|
error: ni
|
|
8574
|
-
} =
|
|
8575
|
+
} = M1({
|
|
8575
8576
|
config: {
|
|
8576
8577
|
baseUrl: u,
|
|
8577
8578
|
provider: f == null ? void 0 : f.provider,
|
|
@@ -8593,7 +8594,7 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8593
8594
|
onError: (B) => {
|
|
8594
8595
|
console.error("STT Error:", B), Ce.current || (Ce.current = !0, de());
|
|
8595
8596
|
}
|
|
8596
|
-
}), { state: ot, startQuestion: At, nextPhase: de, completeInterview: et, timerService: oi } =
|
|
8597
|
+
}), { state: ot, startQuestion: At, nextPhase: de, completeInterview: et, timerService: oi } = I1({
|
|
8597
8598
|
config: {
|
|
8598
8599
|
// thinkingDuration: thinkingTime,
|
|
8599
8600
|
answeringDuration: Y,
|
|
@@ -8641,7 +8642,7 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8641
8642
|
}
|
|
8642
8643
|
})();
|
|
8643
8644
|
}, [r, oi]);
|
|
8644
|
-
const { execute: Ut } =
|
|
8645
|
+
const { execute: Ut } = F1(
|
|
8645
8646
|
async () => {
|
|
8646
8647
|
const B = await l.generateQuestion({
|
|
8647
8648
|
interviewId: r
|
|
@@ -8728,12 +8729,12 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8728
8729
|
/* @__PURE__ */ c(Qo, { onClick: At, className: "iw-mt-2 iw-w-40", children: "Start Interview" })
|
|
8729
8730
|
] });
|
|
8730
8731
|
case G.FETCHING_QUESTION:
|
|
8731
|
-
return /* @__PURE__ */ c(
|
|
8732
|
+
return /* @__PURE__ */ c(w2, {});
|
|
8732
8733
|
case G.READING_QUESTION:
|
|
8733
|
-
return /* @__PURE__ */ c(
|
|
8734
|
+
return /* @__PURE__ */ c(g2, { ttsError: gt });
|
|
8734
8735
|
case G.THINKING:
|
|
8735
8736
|
return /* @__PURE__ */ c(
|
|
8736
|
-
|
|
8737
|
+
p2,
|
|
8737
8738
|
{
|
|
8738
8739
|
state: ot,
|
|
8739
8740
|
thinkingTime: Q,
|
|
@@ -8742,7 +8743,7 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8742
8743
|
);
|
|
8743
8744
|
case G.ANSWERING:
|
|
8744
8745
|
return /* @__PURE__ */ c(
|
|
8745
|
-
|
|
8746
|
+
f2,
|
|
8746
8747
|
{
|
|
8747
8748
|
state: ot,
|
|
8748
8749
|
answeringTime: Y,
|
|
@@ -8752,7 +8753,7 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8752
8753
|
);
|
|
8753
8754
|
case G.TRANSCRIBING:
|
|
8754
8755
|
return /* @__PURE__ */ c(
|
|
8755
|
-
|
|
8756
|
+
y2,
|
|
8756
8757
|
{
|
|
8757
8758
|
sttError: ni,
|
|
8758
8759
|
editingDuration: ie
|
|
@@ -8768,7 +8769,7 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8768
8769
|
}
|
|
8769
8770
|
}, ji = /* @__PURE__ */ m(yt, { children: [
|
|
8770
8771
|
/* @__PURE__ */ c(
|
|
8771
|
-
|
|
8772
|
+
d2,
|
|
8772
8773
|
{
|
|
8773
8774
|
title: e,
|
|
8774
8775
|
brandName: t,
|
|
@@ -8779,7 +8780,7 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8779
8780
|
}
|
|
8780
8781
|
),
|
|
8781
8782
|
/* @__PURE__ */ c(
|
|
8782
|
-
|
|
8783
|
+
a2,
|
|
8783
8784
|
{
|
|
8784
8785
|
brandName: t,
|
|
8785
8786
|
brandLogo: i,
|
|
@@ -8804,7 +8805,7 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8804
8805
|
)
|
|
8805
8806
|
] });
|
|
8806
8807
|
return /* @__PURE__ */ c(yt, { children: w != null && w.enabled ? /* @__PURE__ */ c(
|
|
8807
|
-
|
|
8808
|
+
o2,
|
|
8808
8809
|
{
|
|
8809
8810
|
ref: g,
|
|
8810
8811
|
onDisqualify: () => ai(o),
|
|
@@ -8812,7 +8813,7 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8812
8813
|
children: ji
|
|
8813
8814
|
}
|
|
8814
8815
|
) : ji });
|
|
8815
|
-
},
|
|
8816
|
+
}, v2 = ({
|
|
8816
8817
|
title: e,
|
|
8817
8818
|
brandName: t,
|
|
8818
8819
|
brandLogo: i,
|
|
@@ -8837,7 +8838,7 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8837
8838
|
ref: g,
|
|
8838
8839
|
className: `iw-flex iw-flex-col iw-rounded-xl iw-shadow-lg iw-overflow-hidden iw-h-[calc(100vh-1rem)] ${s}`,
|
|
8839
8840
|
children: /* @__PURE__ */ c("div", { className: "iw-h-[calc(100vh-1rem)] iw-flex iw-flex-col iw-justify-between gap-1", children: /* @__PURE__ */ c(
|
|
8840
|
-
|
|
8841
|
+
b2,
|
|
8841
8842
|
{
|
|
8842
8843
|
interviewTitle: e ?? "Interview",
|
|
8843
8844
|
brandName: t ?? "Novara",
|
|
@@ -8857,7 +8858,7 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8857
8858
|
/* @__PURE__ */ c("p", { className: "iw-text-xl iw-font-semibold", children: t })
|
|
8858
8859
|
] }),
|
|
8859
8860
|
/* @__PURE__ */ c(
|
|
8860
|
-
|
|
8861
|
+
S1,
|
|
8861
8862
|
{
|
|
8862
8863
|
isOpen: u,
|
|
8863
8864
|
gazeEnabled: p,
|
|
@@ -8870,11 +8871,11 @@ const p1 = ({ state: e, thinkingTime: t, nextPhase: i }) => /* @__PURE__ */ m("d
|
|
|
8870
8871
|
] });
|
|
8871
8872
|
};
|
|
8872
8873
|
typeof window < "u" && (window.InterviewWidget = {
|
|
8873
|
-
InterviewWidget:
|
|
8874
|
+
InterviewWidget: v2,
|
|
8874
8875
|
InterviewWidgetProvider: Jl
|
|
8875
8876
|
});
|
|
8876
8877
|
export {
|
|
8877
|
-
|
|
8878
|
+
v2 as InterviewWidget,
|
|
8878
8879
|
Jl as InterviewWidgetProvider,
|
|
8879
|
-
|
|
8880
|
+
v2 as default
|
|
8880
8881
|
};
|