@inploi/plugin-chatbot 14.13.2 → 14.13.3
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/cdn/index.js +2 -2
- package/dist/{chatbot-body-25f7559d.js → chatbot-body-0eb387f9.js} +2 -2
- package/dist/{chatbot-body-21b3975a.cjs → chatbot-body-dd27d81b.cjs} +1 -1
- package/dist/i18n.d.ts +12 -12
- package/dist/{index-d9d11554.js → index-89864783.js} +67 -67
- package/dist/index-93dabc80.cjs +5 -0
- package/dist/plugin-chatbot.cjs +1 -1
- package/dist/plugin-chatbot.js +1 -1
- package/package.json +2 -2
- package/dist/index-0b229542.cjs +0 -5
|
@@ -37,19 +37,19 @@ function Wa(t, e) {
|
|
|
37
37
|
let i = [...new Set(t)];
|
|
38
38
|
return i.length > 1 ? `(${i.join(` ${e} `)})` : i[0] ?? "never";
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
return { kind: "transformation", type: "transform", reference:
|
|
40
|
+
function Oi(t) {
|
|
41
|
+
return { kind: "transformation", type: "transform", reference: Oi, async: !1, operation: t, "~run"(e) {
|
|
42
42
|
return e.value = this.operation(e.value), e;
|
|
43
43
|
} };
|
|
44
44
|
}
|
|
45
45
|
function Va(t, e, i) {
|
|
46
46
|
return typeof t.fallback == "function" ? t.fallback(e, i) : t.fallback;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Oe(t, e, i) {
|
|
49
49
|
return typeof t.default == "function" ? t.default(e, i) : t.default;
|
|
50
50
|
}
|
|
51
|
-
function
|
|
52
|
-
return { kind: "schema", type: "any", reference:
|
|
51
|
+
function Di() {
|
|
52
|
+
return { kind: "schema", type: "any", reference: Di, expects: "any", async: !1, get "~standard"() {
|
|
53
53
|
return M(this);
|
|
54
54
|
}, "~run"(t) {
|
|
55
55
|
return t.typed = !0, t;
|
|
@@ -81,8 +81,8 @@ function Ni(t, e) {
|
|
|
81
81
|
return i;
|
|
82
82
|
} };
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return { kind: "schema", type: "boolean", reference:
|
|
84
|
+
function De(t) {
|
|
85
|
+
return { kind: "schema", type: "boolean", reference: De, expects: "boolean", async: !1, message: t, get "~standard"() {
|
|
86
86
|
return M(this);
|
|
87
87
|
}, "~run"(e, i) {
|
|
88
88
|
return typeof e.value == "boolean" ? e.typed = !0 : V(this, "type", e, i), e;
|
|
@@ -106,7 +106,7 @@ function Rt(t, e) {
|
|
|
106
106
|
return { kind: "schema", type: "nullable", reference: Rt, expects: `(${t.expects} | null)`, async: !1, wrapped: t, default: e, get "~standard"() {
|
|
107
107
|
return M(this);
|
|
108
108
|
}, "~run"(i, a) {
|
|
109
|
-
return i.value === null && (this.default !== void 0 && (i.value =
|
|
109
|
+
return i.value === null && (this.default !== void 0 && (i.value = Oe(this, i, a)), i.value === null) ? (i.typed = !0, i) : this.wrapped["~run"](i, a);
|
|
110
110
|
} };
|
|
111
111
|
}
|
|
112
112
|
function Bt(t) {
|
|
@@ -127,7 +127,7 @@ function T(t, e) {
|
|
|
127
127
|
for (let r in this.entries) {
|
|
128
128
|
let s = this.entries[r];
|
|
129
129
|
if (r in o || (s.type === "exact_optional" || s.type === "optional" || s.type === "nullish") && s.default !== void 0) {
|
|
130
|
-
let l = r in o ? o[r] :
|
|
130
|
+
let l = r in o ? o[r] : Oe(s), d = s["~run"]({ value: l }, a);
|
|
131
131
|
if (d.issues) {
|
|
132
132
|
let u = { type: "object", origin: "value", input: o, key: r, value: l };
|
|
133
133
|
for (let c of d.issues)
|
|
@@ -152,7 +152,7 @@ function F(t, e) {
|
|
|
152
152
|
return { kind: "schema", type: "optional", reference: F, expects: `(${t.expects} | undefined)`, async: !1, wrapped: t, default: e, get "~standard"() {
|
|
153
153
|
return M(this);
|
|
154
154
|
}, "~run"(i, a) {
|
|
155
|
-
return i.value === void 0 && (this.default !== void 0 && (i.value =
|
|
155
|
+
return i.value === void 0 && (this.default !== void 0 && (i.value = Oe(this, i, a)), i.value === void 0) ? (i.typed = !0, i) : this.wrapped["~run"](i, a);
|
|
156
156
|
} };
|
|
157
157
|
}
|
|
158
158
|
function Fi(t, e, i) {
|
|
@@ -368,10 +368,10 @@ var io = T({ error: ct("Validation failed"), messages: T({}) }), Ar = (t, e) =>
|
|
|
368
368
|
return Number.isFinite(z) ? z : void 0;
|
|
369
369
|
}, d = typeof i.status == "number" ? i.status : e, u = n("phase"), c = n("verdict"), w = n("code"), v = d === 409 && u === "submit" && c === "confirmed" ? "duplicate" : d === 410 && w === "job_closed" ? "closed" : u === "submit" && c === "unknown" ? "unknown" : void 0;
|
|
370
370
|
return { message: i.error.message, status: d, phase: u, providerStatus: s("provider_status"), retryAfterSeconds: s("retry_after_seconds"), retryable: r("retryable"), verdict: c, code: w, reason: n("reason"), maintenanceUntil: l("maintenance_until"), field: n("field"), outcome: v };
|
|
371
|
-
}, ao = 3e4, oo = 2e4, no = 6e4, ro = 12e4, so = 6 * 60 * 6e4,
|
|
371
|
+
}, ao = 3e4, oo = 2e4, no = 6e4, ro = 12e4, so = 6 * 60 * 6e4, Or = 60 * 6e4, Bi = (t) => {
|
|
372
372
|
let e = (t == null ? void 0 : t.reason) === "provider_maintenance" ? t.maintenanceUntil : void 0, i = e === void 0 ? 0 : e - Date.now();
|
|
373
373
|
return i > 0 && i <= so ? e : void 0;
|
|
374
|
-
},
|
|
374
|
+
}, Dr = (t) => {
|
|
375
375
|
if ((t == null ? void 0 : t.reason) !== "provider_maintenance" || t.outcome === "unknown")
|
|
376
376
|
return;
|
|
377
377
|
let e = Bi(t);
|
|
@@ -448,7 +448,7 @@ var io = T({ error: ct("Validation failed"), messages: T({}) }), Ar = (t, e) =>
|
|
|
448
448
|
o.type;
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
}, Hi = Ya(Ne([H(), Bt()]),
|
|
451
|
+
}, Hi = Ya(Ne([H(), Bt()]), Oi(String)), Ui = T({ id: Hi, version: Bt(), build: Bt(), nodes: Ni(Di()), context_schema: F(Rt(Fi(H(), T({ required: De(), type: Ne([ct("string"), ct("number")]) })))) }), uo = T({ flow: Ui }), po = T({ company: T({ name: H() }), flow: Ui, job: T({ id: Hi, title: H() }), user: F(T({ city: F(H()), country: F(H()), isEU: F(De()), continent: F(H()) })) }), ho = (t, e) => ({ id: t.job.id, id_type: (e == null ? void 0 : e.idType) === "internal" && e.id === t.job.id ? "internal" : "external" }), fo = Ii({ pathname: "/flow/job/:id", method: "GET", schema: { searchParams: Fa(), response: po } }), wo = Ii({ pathname: "/flow/id/:id", method: "GET", schema: { response: uo } }), It, f, Wi, Vi, st, Ze, Yi, fe, Ki, ht = {}, qi = [], go = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, Xt = Array.isArray;
|
|
452
452
|
function Q(t, e) {
|
|
453
453
|
for (var i in e)
|
|
454
454
|
t[i] = e[i];
|
|
@@ -509,9 +509,9 @@ function Ut() {
|
|
|
509
509
|
Ut.__r = 0;
|
|
510
510
|
}
|
|
511
511
|
function Xi(t, e, i, a, o, n, r, s, l, d, u) {
|
|
512
|
-
var c, w, v, h, b, z, y, g, _, k, S = 0, I = a && a.__k || qi, K = I.length, q = K,
|
|
513
|
-
for (i.__k = [], c = 0; c <
|
|
514
|
-
(h = i.__k[c] = (h = e[c]) == null || typeof h == "boolean" || typeof h == "function" ? null : typeof h == "string" || typeof h == "number" || typeof h == "bigint" ? xt(null, h, null, null, h) : Xt(h) ? xt(Y, { children: h }, null, null, null) : h.__b > 0 ? xt(h.type, h.props, h.key, h.ref ? h.ref : null, h.__v) : h) != null && (h.__ = i, h.__b = i.__b + 1, (g = vo(h, I, y = c + S, q)) === -1 ? v = ht : (v = I[g] || ht, I[g] = void 0, q--), Fe(t, h, v, o, n, r, s, l, d, u), b = h.__e, (w = h.ref) && v.ref != w && (v.ref && Me(v.ref, null, h), u.push(w, h.__c || b, h)), b != null && (z == null && (z = b), k = !(_ = v === ht || v.__v === null) && g === y, _ ? g == -1 && S-- : g !== y && (g === y + 1 ? (S++, k = !0) : g > y ? q >
|
|
512
|
+
var c, w, v, h, b, z, y, g, _, k, S = 0, I = a && a.__k || qi, K = I.length, q = K, O = e.length;
|
|
513
|
+
for (i.__k = [], c = 0; c < O; c++)
|
|
514
|
+
(h = i.__k[c] = (h = e[c]) == null || typeof h == "boolean" || typeof h == "function" ? null : typeof h == "string" || typeof h == "number" || typeof h == "bigint" ? xt(null, h, null, null, h) : Xt(h) ? xt(Y, { children: h }, null, null, null) : h.__b > 0 ? xt(h.type, h.props, h.key, h.ref ? h.ref : null, h.__v) : h) != null && (h.__ = i, h.__b = i.__b + 1, (g = vo(h, I, y = c + S, q)) === -1 ? v = ht : (v = I[g] || ht, I[g] = void 0, q--), Fe(t, h, v, o, n, r, s, l, d, u), b = h.__e, (w = h.ref) && v.ref != w && (v.ref && Me(v.ref, null, h), u.push(w, h.__c || b, h)), b != null && (z == null && (z = b), k = !(_ = v === ht || v.__v === null) && g === y, _ ? g == -1 && S-- : g !== y && (g === y + 1 ? (S++, k = !0) : g > y ? q > O - y ? (S += g - y, k = !0) : S-- : S = g < y && g == y - 1 ? g - y : 0), y = c + S, k = k || g == c && !_, typeof h.type != "function" || g === y && v.__k !== h.__k ? typeof h.type == "function" || k ? h.__d !== void 0 ? (l = h.__d, h.__d = void 0) : l = b.nextSibling : l = Qi(t, b, l) : l = Ji(h, l, t), typeof i.type == "function" && (i.__d = l)));
|
|
515
515
|
for (i.__e = z, c = K; c--; )
|
|
516
516
|
I[c] != null && (typeof i.type == "function" && I[c].__e != null && I[c].__e == i.__d && (i.__d = I[c].__e.nextSibling), ea(I[c], I[c]));
|
|
517
517
|
}
|
|
@@ -592,17 +592,17 @@ function Je(t) {
|
|
|
592
592
|
return this.l[t.type + !0](f.event ? f.event(t) : t);
|
|
593
593
|
}
|
|
594
594
|
function Fe(t, e, i, a, o, n, r, s, l, d) {
|
|
595
|
-
var u, c, w, v, h, b, z, y, g, _, k, S, I, K, q,
|
|
595
|
+
var u, c, w, v, h, b, z, y, g, _, k, S, I, K, q, O = e.type;
|
|
596
596
|
if (e.constructor !== void 0)
|
|
597
597
|
return null;
|
|
598
598
|
i.__h != null && (l = i.__h, s = e.__e = i.__e, e.__h = null, n = [s]), (u = f.__b) && u(e);
|
|
599
599
|
try {
|
|
600
600
|
t:
|
|
601
|
-
if (typeof
|
|
602
|
-
if (y = e.props, g = (u =
|
|
603
|
-
|
|
601
|
+
if (typeof O == "function") {
|
|
602
|
+
if (y = e.props, g = (u = O.contextType) && a[u.__c], _ = u ? g ? g.props.value : u.__ : a, i.__c ? z = (c = e.__c = i.__c).__ = c.__E : ("prototype" in O && O.prototype.render ? e.__c = c = new O(y, _) : (e.__c = c = new W(y, _), c.constructor = O, c.render = yo), g && g.sub(c), c.props = y, c.state || (c.state = {}), c.context = _, c.__n = a, w = c.__d = !0, c.__h = [], c._sb = []), c.__s == null && (c.__s = c.state), O.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = Q({}, c.__s)), Q(c.__s, O.getDerivedStateFromProps(y, c.__s))), v = c.props, h = c.state, c.__v = e, w)
|
|
603
|
+
O.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), c.componentDidMount != null && c.__h.push(c.componentDidMount);
|
|
604
604
|
else {
|
|
605
|
-
if (
|
|
605
|
+
if (O.getDerivedStateFromProps == null && y !== v && c.componentWillReceiveProps != null && c.componentWillReceiveProps(y, _), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(y, c.__s, _) === !1 || e.__v === i.__v)) {
|
|
606
606
|
for (e.__v !== i.__v && (c.props = y, c.state = c.__s, c.__d = !1), e.__e = i.__e, e.__k = i.__k, e.__k.forEach(function(zt) {
|
|
607
607
|
zt && (zt.__ = e);
|
|
608
608
|
}), k = 0; k < c._sb.length; k++)
|
|
@@ -614,7 +614,7 @@ function Fe(t, e, i, a, o, n, r, s, l, d) {
|
|
|
614
614
|
c.componentDidUpdate(v, h, b);
|
|
615
615
|
});
|
|
616
616
|
}
|
|
617
|
-
if (c.context = _, c.props = y, c.__P = t, c.__e = !1, S = f.__r, I = 0, "prototype" in
|
|
617
|
+
if (c.context = _, c.props = y, c.__P = t, c.__e = !1, S = f.__r, I = 0, "prototype" in O && O.prototype.render) {
|
|
618
618
|
for (c.state = c.__s, c.__d = !1, S && S(e), u = c.render(c.props, c.state, c.context), K = 0; K < c._sb.length; K++)
|
|
619
619
|
c.__h.push(c._sb[K]);
|
|
620
620
|
c._sb = [];
|
|
@@ -1022,14 +1022,14 @@ var ci = function(t, e) {
|
|
|
1022
1022
|
if (e.length !== 1)
|
|
1023
1023
|
throw "Children.only";
|
|
1024
1024
|
return e[0];
|
|
1025
|
-
}, toArray: tt },
|
|
1025
|
+
}, toArray: tt }, Oo = f.__e;
|
|
1026
1026
|
f.__e = function(t, e, i, a) {
|
|
1027
1027
|
if (t.then) {
|
|
1028
1028
|
for (var o, n = e; n = n.__; )
|
|
1029
1029
|
if ((o = n.__c) && o.__c)
|
|
1030
1030
|
return e.__e == null && (e.__e = i.__e, e.__k = i.__k), o.__c(t, e);
|
|
1031
1031
|
}
|
|
1032
|
-
|
|
1032
|
+
Oo(t, e, i, a);
|
|
1033
1033
|
};
|
|
1034
1034
|
var di = f.unmount;
|
|
1035
1035
|
function pa(t, e, i) {
|
|
@@ -1114,7 +1114,7 @@ var ui = function(t, e, i) {
|
|
|
1114
1114
|
t.u = i = i[2];
|
|
1115
1115
|
}
|
|
1116
1116
|
};
|
|
1117
|
-
function
|
|
1117
|
+
function Do(t) {
|
|
1118
1118
|
return this.getChildContext = function() {
|
|
1119
1119
|
return t.context;
|
|
1120
1120
|
}, t.children;
|
|
@@ -1129,7 +1129,7 @@ function No(t) {
|
|
|
1129
1129
|
this.childNodes.push(a), e.i.appendChild(a);
|
|
1130
1130
|
}, removeChild: function(a) {
|
|
1131
1131
|
this.childNodes.splice(this.childNodes.indexOf(a) >>> 1, 1), e.i.removeChild(a);
|
|
1132
|
-
} }), dt(L(
|
|
1132
|
+
} }), dt(L(Do, { context: e.context }, t.__v), e.l)) : e.l && e.componentWillUnmount();
|
|
1133
1133
|
}
|
|
1134
1134
|
function jo(t, e) {
|
|
1135
1135
|
var i = L(No, { __v: t, i: e });
|
|
@@ -1410,7 +1410,7 @@ const xa = A(m(ya)), un = A(m(ya)), pn = xa, at = (t) => Object.assign(A(t), { s
|
|
|
1410
1410
|
})), vn = A(m(function(t) {
|
|
1411
1411
|
return t != null;
|
|
1412
1412
|
}));
|
|
1413
|
-
var
|
|
1413
|
+
var Ot = { __proto__: null, matcher: j, optional: Ue, array: function(...t) {
|
|
1414
1414
|
return me({ [j]: () => ({ match: (e) => {
|
|
1415
1415
|
if (!Array.isArray(e))
|
|
1416
1416
|
return { matched: !1 };
|
|
@@ -1605,7 +1605,7 @@ var vi = aa(null), ka = (t) => ({
|
|
|
1605
1605
|
overrides: e,
|
|
1606
1606
|
locale: i
|
|
1607
1607
|
}) => bi({ terms: t, overrides: e, locale: i })
|
|
1608
|
-
}), kn = { conversation_history: "Conversation history", jump_to_current: "Jump to current question", send: "Send", submitting: "Sending your application…", skip: "Skip", skipped: "Skipped", submission_duplicate_earlier_attempt: "You've already applied for this role. If that doesn't sound right, it's most likely a hiccup from your earlier attempt — don't worry, we have your application.", submission_failed: "We couldn't submit your application. Choose Restart to try again.", submission_unknown_do_not_resubmit: "We couldn't confirm whether your application went through, and submitting it again won't help. Please don't keep resubmitting — check your email for a confirmation, or contact the employer if nothing arrives.", submission_unreadable_document: "We couldn't read that file. Please upload a different one.", submission_cooldown: { one: "Submit will be available again in {{count}} second.", other: "Submit will be available again in {{count}} seconds." }, submission_cooldown_ready: "Submit is available again.", captcha_check: "One quick check before we send your application", submission_still_working: "Sending your application, this can take up to a minute. Please keep this page open.", file_preparing: { one: "Preparing your file…", other: "Preparing your files…" }, file_ready: { one: "Your file is ready to send", other: "Your files are ready to send" }, file_read_error: "We couldn't read this file. Select it again or choose another file.", file_read_error_replacement: "We couldn't read this file, so your previous file is no longer selected. Select it again or choose another file.", address_error: "We couldn't search for that address. Try again, or fill it in manually.", address_searching: "Searching addresses…", address_no_results: "We couldn't find that address. Check the spelling or postcode, or fill it in manually.", restart: "Restart", chat_messages: "Chat messages", file_name: "File name", file_size: "File size", file_total_size: "{{size}} total", loading: "Loading", minimize: "Minimise" }, { TranslationProvider: Yr, useTranslation: Kr, createTFunction: qr, defaultTerms: $n } = ka({ submission_redirect_message: "
|
|
1608
|
+
}), kn = { conversation_history: "Conversation history", jump_to_current: "Jump to current question", send: "Send", submitting: "Sending your application…", skip: "Skip", skipped: "Skipped", submission_duplicate_earlier_attempt: "You've already applied for this role. If that doesn't sound right, it's most likely a hiccup from your earlier attempt — don't worry, we have your application.", submission_failed: "We couldn't submit your application. Choose Restart to try again.", submission_unknown_do_not_resubmit: "We couldn't confirm whether your application went through, and submitting it again won't help. Please don't keep resubmitting — check your email for a confirmation, or contact the employer if nothing arrives.", submission_unreadable_document: "We couldn't read that file. Please upload a different one.", submission_cooldown: { one: "Submit will be available again in {{count}} second.", other: "Submit will be available again in {{count}} seconds." }, submission_cooldown_ready: "Submit is available again.", captcha_check: "One quick check before we send your application", submission_still_working: "Sending your application, this can take up to a minute. Please keep this page open.", file_preparing: { one: "Preparing your file…", other: "Preparing your files…" }, file_ready: { one: "Your file is ready to send", other: "Your files are ready to send" }, file_read_error: "We couldn't read this file. Select it again or choose another file.", file_read_error_replacement: "We couldn't read this file, so your previous file is no longer selected. Select it again or choose another file.", address_error: "We couldn't search for that address. Try again, or fill it in manually.", address_searching: "Searching addresses…", address_no_results: "We couldn't find that address. Check the spelling or postcode, or fill it in manually.", restart: "Restart", chat_messages: "Chat messages", file_name: "File name", file_size: "File size", file_total_size: "{{size}} total", loading: "Loading", minimize: "Minimise" }, { TranslationProvider: Yr, useTranslation: Kr, createTFunction: qr, defaultTerms: $n } = ka({ submission_redirect_message: "One last step: finish your application on the employer's site.", complete_submission: "Continue on the employer's site", submission_completed: "Submission completed!", submission_pending: "Thanks, we've received your application and are processing it.", submission_failed: "Failed to submit", submission_provider_maintenance: "Sorry, our recruitment system is down for scheduled maintenance until about {{time}}. Please keep this page open and try again when maintenance ends. We apologise for the inconvenience.", submission_provider_maintenance_later: "Sorry, our recruitment system is down for scheduled maintenance until later today. Please keep this page open and try again when maintenance ends. We apologise for the inconvenience.", submission_available_at: "Submit will be available again at {{time}}.", resume_prompt: "You have an unfinished application for this role. Continue where you left off?", resume_continue: "Continue", resume_start_again: "Start again", captcha_failed: "Cloudflare seems to think you're a robot. If that's not the case, please try again in a moment.", close_application: "Close application", invalid_state: "Invalid application state", redirect_url_error: "Couldn’t get the redirect URL.", upload_file: { one: "Select file to upload", other: "Select files to upload" }, file_max_size: "max {{size}}", file_extensions: "Accepted file extensions", address_error: "Something went wrong! Plase continue manually", address_search: "Type and search for places…", address_manual: "Fill in manually", back: "Back", search: "Search", unknown_error: "An error occurred", line1: "Line 1", line2: "Line 2", line3: "Line 3", city: "City", state: "State", postcode: "Postcode", country: "Country", select_country: "Select a country", validation_empty: "Please enter a value", validation_date: "Please enter a valid date (YYYY-MM-DD)", validation_email: "That doesn’t look like a valid email address", validation_url: "That doesn’t look like a valid URL", validation_max_chars: "Please enter no more than {{count}} characters", validation_min_chars: "Please enter {{count}} or more characters", validation_phone: "Please enter a valid phone number", validation_phone_min_chars: "Your phone number must be at least {{count}} digits long", validation_country_code: "Please select a country code", validation_number: "Please enter a valid number", validation_number_min: "Please enter a number greater than or equal to {{min}}", validation_number_max: "Please enter a number less than or equal to {{max}}", validation_number_whole: "Enter a whole number", validation_number_decimal_cases: "Please enter a number with at most {{count}} decimal cases", validation_file: "Please select a file", validation_file_ext: "Please only upload {{ext}} files", validation_file_min: { one: "Please upload at least one file", other: "Please only upload at least {{count}} files" }, validation_file_max: { one: "Please only upload one file", other: "Please only upload up to {{count}} files" }, validation_file_size: "Your file is too big. Please upload a file smaller than {{size}}", validation_file_empty: "This file is empty. If it’s saved in iCloud, Google Drive or OneDrive, download it to your device, then select it again.", validation_required: "This field is required.", validation_multiple_choice_min: { one: "Please select at least {{count}} option", other: "Please select at least {{count}} options" }, validation_multiple_choice_max: { one: "Please select at most {{count}} option", other: "Please select at most {{count}} options" }, optional: "optional" });
|
|
1609
1609
|
const {
|
|
1610
1610
|
TranslationProvider: Sn,
|
|
1611
1611
|
useTranslation: Jt,
|
|
@@ -1667,23 +1667,23 @@ function Sa(t) {
|
|
|
1667
1667
|
return e.i = 0, e.n !== void 0 && (e.n.p = e.p, e.p !== void 0 && (e.p.n = e.n), e.p = x.s, e.n = void 0, x.s.n = e, x.s = e), e;
|
|
1668
1668
|
}
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1670
|
+
function D(t) {
|
|
1671
1671
|
this.v = t, this.i = 0, this.n = void 0, this.t = void 0;
|
|
1672
1672
|
}
|
|
1673
|
-
|
|
1674
|
-
|
|
1673
|
+
D.prototype.brand = En;
|
|
1674
|
+
D.prototype.h = function() {
|
|
1675
1675
|
return !0;
|
|
1676
1676
|
};
|
|
1677
|
-
|
|
1677
|
+
D.prototype.S = function(t) {
|
|
1678
1678
|
this.t !== t && t.e === void 0 && (t.x = this.t, this.t !== void 0 && (this.t.e = t), this.t = t);
|
|
1679
1679
|
};
|
|
1680
|
-
|
|
1680
|
+
D.prototype.U = function(t) {
|
|
1681
1681
|
if (this.t !== void 0) {
|
|
1682
1682
|
var e = t.e, i = t.x;
|
|
1683
1683
|
e !== void 0 && (e.x = i, t.e = void 0), i !== void 0 && (i.e = e, t.x = void 0), t === this.t && (this.t = i);
|
|
1684
1684
|
}
|
|
1685
1685
|
};
|
|
1686
|
-
|
|
1686
|
+
D.prototype.subscribe = function(t) {
|
|
1687
1687
|
var e = this;
|
|
1688
1688
|
return Ke(function() {
|
|
1689
1689
|
var i = e.value, a = x;
|
|
@@ -1695,16 +1695,16 @@ O.prototype.subscribe = function(t) {
|
|
|
1695
1695
|
}
|
|
1696
1696
|
});
|
|
1697
1697
|
};
|
|
1698
|
-
|
|
1698
|
+
D.prototype.valueOf = function() {
|
|
1699
1699
|
return this.value;
|
|
1700
1700
|
};
|
|
1701
|
-
|
|
1701
|
+
D.prototype.toString = function() {
|
|
1702
1702
|
return this.value + "";
|
|
1703
1703
|
};
|
|
1704
|
-
|
|
1704
|
+
D.prototype.toJSON = function() {
|
|
1705
1705
|
return this.value;
|
|
1706
1706
|
};
|
|
1707
|
-
|
|
1707
|
+
D.prototype.peek = function() {
|
|
1708
1708
|
var t = x;
|
|
1709
1709
|
x = void 0;
|
|
1710
1710
|
try {
|
|
@@ -1713,7 +1713,7 @@ O.prototype.peek = function() {
|
|
|
1713
1713
|
x = t;
|
|
1714
1714
|
}
|
|
1715
1715
|
};
|
|
1716
|
-
Object.defineProperty(
|
|
1716
|
+
Object.defineProperty(D.prototype, "value", { get: function() {
|
|
1717
1717
|
var t = Sa(this);
|
|
1718
1718
|
return t !== void 0 && (t.i = this.i), this.v;
|
|
1719
1719
|
}, set: function(t) {
|
|
@@ -1730,7 +1730,7 @@ Object.defineProperty(O.prototype, "value", { get: function() {
|
|
|
1730
1730
|
}
|
|
1731
1731
|
} });
|
|
1732
1732
|
function U(t) {
|
|
1733
|
-
return new
|
|
1733
|
+
return new D(t);
|
|
1734
1734
|
}
|
|
1735
1735
|
function Ca(t) {
|
|
1736
1736
|
for (var e = t.s; e !== void 0; e = e.n)
|
|
@@ -1755,9 +1755,9 @@ function Pa(t) {
|
|
|
1755
1755
|
t.s = i;
|
|
1756
1756
|
}
|
|
1757
1757
|
function vt(t) {
|
|
1758
|
-
|
|
1758
|
+
D.call(this, void 0), this.x = t, this.s = void 0, this.g = Kt - 1, this.f = 4;
|
|
1759
1759
|
}
|
|
1760
|
-
(vt.prototype = new
|
|
1760
|
+
(vt.prototype = new D()).h = function() {
|
|
1761
1761
|
if (this.f &= -3, 1 & this.f)
|
|
1762
1762
|
return !1;
|
|
1763
1763
|
if ((36 & this.f) == 32 || (this.f &= -5, this.g === Kt))
|
|
@@ -1780,10 +1780,10 @@ vt.prototype.S = function(t) {
|
|
|
1780
1780
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1781
1781
|
e.S.S(e);
|
|
1782
1782
|
}
|
|
1783
|
-
|
|
1783
|
+
D.prototype.S.call(this, t);
|
|
1784
1784
|
};
|
|
1785
1785
|
vt.prototype.U = function(t) {
|
|
1786
|
-
if (this.t !== void 0 && (
|
|
1786
|
+
if (this.t !== void 0 && (D.prototype.U.call(this, t), this.t === void 0)) {
|
|
1787
1787
|
this.f &= -33;
|
|
1788
1788
|
for (var e = this.s; e !== void 0; e = e.n)
|
|
1789
1789
|
e.S.U(e);
|
|
@@ -1896,7 +1896,7 @@ function Ia(t) {
|
|
|
1896
1896
|
return o.value;
|
|
1897
1897
|
}
|
|
1898
1898
|
Ia.displayName = "_st";
|
|
1899
|
-
Object.defineProperties(
|
|
1899
|
+
Object.defineProperties(D.prototype, { constructor: { configurable: !0, value: void 0 }, type: { configurable: !0, value: Ia }, props: { configurable: !0, get: function() {
|
|
1900
1900
|
return { data: this };
|
|
1901
1901
|
} }, __b: { configurable: !0, value: 1 } });
|
|
1902
1902
|
_t("__b", function(t, e) {
|
|
@@ -1905,7 +1905,7 @@ _t("__b", function(t, e) {
|
|
|
1905
1905
|
for (var o in a)
|
|
1906
1906
|
if (o !== "children") {
|
|
1907
1907
|
var n = a[o];
|
|
1908
|
-
n instanceof
|
|
1908
|
+
n instanceof D && (i || (e.__np = i = {}), i[o] = n, a[o] = n.peek());
|
|
1909
1909
|
}
|
|
1910
1910
|
}
|
|
1911
1911
|
t(e);
|
|
@@ -2011,7 +2011,7 @@ function zn() {
|
|
|
2011
2011
|
IDBTransaction
|
|
2012
2012
|
]);
|
|
2013
2013
|
}
|
|
2014
|
-
function
|
|
2014
|
+
function On() {
|
|
2015
2015
|
return mi || (mi = [
|
|
2016
2016
|
IDBCursor.prototype.advance,
|
|
2017
2017
|
IDBCursor.prototype.continue,
|
|
@@ -2019,7 +2019,7 @@ function Dn() {
|
|
|
2019
2019
|
]);
|
|
2020
2020
|
}
|
|
2021
2021
|
const Se = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap();
|
|
2022
|
-
function
|
|
2022
|
+
function Dn(t) {
|
|
2023
2023
|
const e = new Promise((i, a) => {
|
|
2024
2024
|
const o = () => {
|
|
2025
2025
|
t.removeEventListener("success", n), t.removeEventListener("error", r);
|
|
@@ -2068,7 +2068,7 @@ function Aa(t) {
|
|
|
2068
2068
|
Ce = t(Ce);
|
|
2069
2069
|
}
|
|
2070
2070
|
function jn(t) {
|
|
2071
|
-
return
|
|
2071
|
+
return On().includes(t) ? function(...e) {
|
|
2072
2072
|
return t.apply(Ee(this), e), lt(this.request);
|
|
2073
2073
|
} : function(...e) {
|
|
2074
2074
|
return lt(t.apply(Ee(this), e));
|
|
@@ -2079,7 +2079,7 @@ function Fn(t) {
|
|
|
2079
2079
|
}
|
|
2080
2080
|
function lt(t) {
|
|
2081
2081
|
if (t instanceof IDBRequest)
|
|
2082
|
-
return
|
|
2082
|
+
return Dn(t);
|
|
2083
2083
|
if (re.has(t))
|
|
2084
2084
|
return re.get(t);
|
|
2085
2085
|
const e = Fn(t);
|
|
@@ -2221,7 +2221,7 @@ const $i = () => {
|
|
|
2221
2221
|
/** nativeEvent is a hidden property not exposed by JSX's typings */
|
|
2222
2222
|
We(t).with({
|
|
2223
2223
|
nativeEvent: {
|
|
2224
|
-
submitter:
|
|
2224
|
+
submitter: Ot.select(Ot.union(Ot.instanceOf(HTMLButtonElement), Ot.instanceOf(HTMLInputElement)))
|
|
2225
2225
|
}
|
|
2226
2226
|
}, (e) => e).otherwise(() => {
|
|
2227
2227
|
throw new Error("invalid submitter");
|
|
@@ -2648,7 +2648,7 @@ const $i = () => {
|
|
|
2648
2648
|
};
|
|
2649
2649
|
function Ie() {
|
|
2650
2650
|
}
|
|
2651
|
-
const er = wa(() => import("./chatbot-body-
|
|
2651
|
+
const er = wa(() => import("./chatbot-body-0eb387f9.js").then((t) => t.ChatbotBody)), Oa = Re("selection:bg-accent-4 selection:text-accent-12 fixed bottom-2 left-2 right-2 isolate mx-auto max-h-full focus:outline-none [&:has(.view-switch:active)]:scale-[0.98] transition-all duration-1000 ease-expo-out", {
|
|
2652
2652
|
variants: {
|
|
2653
2653
|
view: {
|
|
2654
2654
|
closed: "hidden",
|
|
@@ -2656,7 +2656,7 @@ const er = wa(() => import("./chatbot-body-25f7559d.js").then((t) => t.ChatbotBo
|
|
|
2656
2656
|
maximised: "max-w-[450px] h-[var(--content-height)] animate-maximise"
|
|
2657
2657
|
}
|
|
2658
2658
|
}
|
|
2659
|
-
}),
|
|
2659
|
+
}), Da = Re("relative flex h-full overflow-hidden rounded-3xl outline outline-1", {
|
|
2660
2660
|
variants: {
|
|
2661
2661
|
view: {
|
|
2662
2662
|
closed: "hidden",
|
|
@@ -2698,11 +2698,11 @@ const er = wa(() => import("./chatbot-body-25f7559d.js").then((t) => t.ChatbotBo
|
|
|
2698
2698
|
"aria-modal": "true",
|
|
2699
2699
|
role: "dialog",
|
|
2700
2700
|
"aria-labelledby": "chatbot-status-bar",
|
|
2701
|
-
class:
|
|
2701
|
+
class: Oa({
|
|
2702
2702
|
view: "maximised"
|
|
2703
2703
|
}),
|
|
2704
2704
|
children: p("div", {
|
|
2705
|
-
class:
|
|
2705
|
+
class: Da({
|
|
2706
2706
|
view: "maximised"
|
|
2707
2707
|
}),
|
|
2708
2708
|
children: [p(tr, {
|
|
@@ -2749,12 +2749,12 @@ const er = wa(() => import("./chatbot-body-25f7559d.js").then((t) => t.ChatbotBo
|
|
|
2749
2749
|
t: e
|
|
2750
2750
|
} = Jt();
|
|
2751
2751
|
return p("div", {
|
|
2752
|
-
class:
|
|
2752
|
+
class: Oa({
|
|
2753
2753
|
view: "minimised",
|
|
2754
2754
|
class: "z-100 isolate"
|
|
2755
2755
|
}),
|
|
2756
2756
|
children: p("div", {
|
|
2757
|
-
class:
|
|
2757
|
+
class: Da({
|
|
2758
2758
|
view: "minimised"
|
|
2759
2759
|
}),
|
|
2760
2760
|
children: [p("button", {
|
|
@@ -2953,17 +2953,17 @@ var cr = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], dr = {
|
|
|
2953
2953
|
}) : [[i, a]];
|
|
2954
2954
|
});
|
|
2955
2955
|
return Object.fromEntries(e);
|
|
2956
|
-
},
|
|
2956
|
+
}, Dt = (t) => !!t && typeof t == "object" && !Array.isArray(t), ze = (t, ...e) => {
|
|
2957
2957
|
if (!e.length)
|
|
2958
2958
|
return t;
|
|
2959
2959
|
const i = e.shift();
|
|
2960
|
-
if (
|
|
2960
|
+
if (Dt(t) && Dt(i))
|
|
2961
2961
|
for (const a in i) {
|
|
2962
2962
|
const o = i[a];
|
|
2963
|
-
if (
|
|
2963
|
+
if (Dt(o)) {
|
|
2964
2964
|
t[a] || Object.assign(t, { [a]: {} });
|
|
2965
2965
|
const n = t[a];
|
|
2966
|
-
|
|
2966
|
+
Dt(n) && ze(n, o);
|
|
2967
2967
|
} else
|
|
2968
2968
|
Object.assign(t, { [a]: i[a] });
|
|
2969
2969
|
}
|
|
@@ -3107,7 +3107,7 @@ const [pe, he, Ti] = ["oklch(0% 0 0)", "oklch(100% 0 0)", "transparent"], wr = f
|
|
|
3107
3107
|
${i.concat(i).join(`
|
|
3108
3108
|
`)}
|
|
3109
3109
|
}`;
|
|
3110
|
-
}, vr = "14.13.
|
|
3110
|
+
}, vr = "14.13.3", _r = (t, e = vr) => e === void 0 ? t : {
|
|
3111
3111
|
fetch: (i, a) => {
|
|
3112
3112
|
if (i !== "/flow/submit")
|
|
3113
3113
|
return t.fetch(i, a);
|
|
@@ -3162,7 +3162,7 @@ ${i.concat(i).join(`
|
|
|
3162
3162
|
}
|
|
3163
3163
|
})]), k), a) {
|
|
3164
3164
|
const S = (I) => {
|
|
3165
|
-
var q,
|
|
3165
|
+
var q, O;
|
|
3166
3166
|
if (!h(g))
|
|
3167
3167
|
return;
|
|
3168
3168
|
const K = (q = t.getChatbotElement()) == null ? void 0 : q.querySelector("dialog");
|
|
@@ -3174,7 +3174,7 @@ ${i.concat(i).join(`
|
|
|
3174
3174
|
analytics: s
|
|
3175
3175
|
}),
|
|
3176
3176
|
theme: e,
|
|
3177
|
-
terms: ((
|
|
3177
|
+
terms: ((O = a.params) == null ? void 0 : O.terms) ?? {},
|
|
3178
3178
|
host: K
|
|
3179
3179
|
});
|
|
3180
3180
|
};
|
|
@@ -3348,7 +3348,7 @@ export {
|
|
|
3348
3348
|
xr as N,
|
|
3349
3349
|
R as O,
|
|
3350
3350
|
We as P,
|
|
3351
|
-
|
|
3351
|
+
Ot as Q,
|
|
3352
3352
|
Br as R,
|
|
3353
3353
|
Hr as S,
|
|
3354
3354
|
pt as T,
|
|
@@ -3366,7 +3366,7 @@ export {
|
|
|
3366
3366
|
Jt as d,
|
|
3367
3367
|
Le as e,
|
|
3368
3368
|
zr as f,
|
|
3369
|
-
|
|
3369
|
+
Or as g,
|
|
3370
3370
|
Lr as h,
|
|
3371
3371
|
Re as i,
|
|
3372
3372
|
ra as j,
|
|
@@ -3384,6 +3384,6 @@ export {
|
|
|
3384
3384
|
jr as v,
|
|
3385
3385
|
Fr as w,
|
|
3386
3386
|
Mr as x,
|
|
3387
|
-
|
|
3387
|
+
Dr as y,
|
|
3388
3388
|
so as z
|
|
3389
3389
|
};
|