@inploi/plugin-chatbot 14.16.0 → 14.17.1

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.
@@ -175,8 +175,8 @@ function Fe(t, e, i) {
175
175
  let d = n[l], u = this.key["~run"]({ value: l }, o);
176
176
  if (u.issues) {
177
177
  let f = { type: "object", origin: "key", input: n, key: l, value: d };
178
- for (let b of u.issues)
179
- b.path = [f], (r = a.issues) == null || r.push(b);
178
+ for (let g of u.issues)
179
+ g.path = [f], (r = a.issues) == null || r.push(g);
180
180
  if (a.issues || (a.issues = u.issues), o.abortEarly) {
181
181
  a.typed = !1;
182
182
  break;
@@ -185,8 +185,8 @@ function Fe(t, e, i) {
185
185
  let c = this.value["~run"]({ value: d }, o);
186
186
  if (c.issues) {
187
187
  let f = { type: "object", origin: "value", input: n, key: l, value: d };
188
- for (let b of c.issues)
189
- b.path ? b.path.unshift(f) : b.path = [f], (s = a.issues) == null || s.push(b);
188
+ for (let g of c.issues)
189
+ g.path ? g.path.unshift(f) : g.path = [f], (s = a.issues) == null || s.push(g);
190
190
  if (a.issues || (a.issues = c.issues), o.abortEarly) {
191
191
  a.typed = !1;
192
192
  break;
@@ -258,21 +258,21 @@ function Yi(t, e, i) {
258
258
  let n = a.value;
259
259
  if (n && typeof n == "object") {
260
260
  let r, s = 0, l = this.key, d = [], u = (c, f) => {
261
- for (let b of c.options) {
262
- if (b.type === "variant")
263
- u(b, new Set(f).add(b.key));
261
+ for (let g of c.options) {
262
+ if (g.type === "variant")
263
+ u(g, new Set(f).add(g.key));
264
264
  else {
265
- let p = !0, g = 0;
265
+ let p = !0, b = 0;
266
266
  for (let k of f) {
267
- let y = b.entries[k];
268
- if (k in n ? y["~run"]({ typed: !1, value: n[k] }, { abortEarly: !0 }).issues : y.type !== "exact_optional" && y.type !== "optional" && y.type !== "nullish") {
269
- p = !1, l !== k && (s < g || s === g && k in n && !(l in n)) && (s = g, l = k, d = []), l === k && d.push(b.entries[k].expects);
267
+ let x = g.entries[k];
268
+ if (k in n ? x["~run"]({ typed: !1, value: n[k] }, { abortEarly: !0 }).issues : x.type !== "exact_optional" && x.type !== "optional" && x.type !== "nullish") {
269
+ p = !1, l !== k && (s < b || s === b && k in n && !(l in n)) && (s = b, l = k, d = []), l === k && d.push(g.entries[k].expects);
270
270
  break;
271
271
  }
272
- g++;
272
+ b++;
273
273
  }
274
274
  if (p) {
275
- let k = b["~run"]({ value: n }, o);
275
+ let k = g["~run"]({ value: n }, o);
276
276
  (!r || !r.typed && k.typed) && (r = k);
277
277
  }
278
278
  }
@@ -405,13 +405,13 @@ var ho = T({ error: B("Validation failed"), messages: T({}) }), Lr = (t, e) => e
405
405
  if (!Zi(t))
406
406
  return;
407
407
  let i = t.integration_response, a = i.error.data, o = typeof a == "object" && a !== null ? a : {}, n = (p) => typeof o[p] == "string" ? o[p] : void 0, r = (p) => typeof o[p] == "boolean" ? o[p] : void 0, s = (p) => {
408
- let g = o[p];
409
- return Number.isSafeInteger(g) && g >= 0 ? g : void 0;
408
+ let b = o[p];
409
+ return Number.isSafeInteger(b) && b >= 0 ? b : void 0;
410
410
  }, l = (p) => {
411
- let g = n(p), k = g === void 0 ? NaN : Date.parse(g);
411
+ let b = n(p), k = b === void 0 ? NaN : Date.parse(b);
412
412
  return Number.isFinite(k) ? k : void 0;
413
- }, d = typeof i.status == "number" ? i.status : e, u = n("phase"), c = n("verdict"), f = n("code"), b = d === 409 && u === "submit" && c === "confirmed" ? "duplicate" : d === 410 && f === "job_closed" ? "closed" : u === "submit" && c === "unknown" ? "unknown" : void 0;
414
- return { message: i.error.message, status: d, phase: u, providerStatus: s("provider_status"), retryAfterSeconds: s("retry_after_seconds"), retryable: r("retryable"), verdict: c, code: f, reason: n("reason"), maintenanceUntil: l("maintenance_until"), field: n("field"), outcome: b };
413
+ }, d = typeof i.status == "number" ? i.status : e, u = n("phase"), c = n("verdict"), f = n("code"), g = d === 409 && u === "submit" && c === "confirmed" ? "duplicate" : d === 410 && f === "job_closed" ? "closed" : u === "submit" && c === "unknown" ? "unknown" : void 0;
414
+ return { message: i.error.message, status: d, phase: u, providerStatus: s("provider_status"), retryAfterSeconds: s("retry_after_seconds"), retryable: r("retryable"), verdict: c, code: f, reason: n("reason"), maintenanceUntil: l("maintenance_until"), field: n("field"), outcome: g };
415
415
  }, fo = Yi("reason", [T({ outcome: B("sent"), reason: B("sandbox"), ats_label: dt(z()) }), T({ outcome: B("held"), reason: Vi(["production_connection", "no_sandbox_known", "company_hold"]), ats_label: dt(z()) }), T({ outcome: B("internal"), reason: B("internal"), ats_label: dt(z()) }), T({ outcome: B("held"), reason: B("redirect"), ats_label: z() })]), Ur = (t) => {
416
416
  let e = Ot(T({ staging_destination: fo }), t);
417
417
  if (!e.success)
@@ -575,11 +575,11 @@ function Wt() {
575
575
  Wt.__r = 0;
576
576
  }
577
577
  function ra(t, e, i, a, o, n, r, s, l, d, u) {
578
- var c, f, b, p, g, k, y, I, v, _, $ = 0, x = a && a.__k || aa, Z = x.length, H = Z, O = e.length;
578
+ var c, f, g, p, b, k, x, I, v, _, $ = 0, y = a && a.__k || aa, Z = y.length, H = Z, O = e.length;
579
579
  for (i.__k = [], c = 0; c < O; c++)
580
- (p = i.__k[c] = (p = e[c]) == null || typeof p == "boolean" || typeof p == "function" ? null : typeof p == "string" || typeof p == "number" || typeof p == "bigint" ? Et(null, p, null, null, p) : Gt(p) ? Et(q, { children: p }, null, null, null) : p.__b > 0 ? Et(p.type, p.props, p.key, p.ref ? p.ref : null, p.__v) : p) != null && (p.__ = i, p.__b = i.__b + 1, (I = To(p, x, y = c + $, H)) === -1 ? b = gt : (b = x[I] || gt, x[I] = void 0, H--), Le(t, p, b, o, n, r, s, l, d, u), g = p.__e, (f = p.ref) && b.ref != f && (b.ref && He(b.ref, null, p), u.push(f, p.__c || g, p)), g != null && (k == null && (k = g), _ = !(v = b === gt || b.__v === null) && I === y, v ? I == -1 && $-- : I !== y && (I === y + 1 ? ($++, _ = !0) : I > y ? H > O - y ? ($ += I - y, _ = !0) : $-- : $ = I < y && I == y - 1 ? I - y : 0), y = c + $, _ = _ || I == c && !v, typeof p.type != "function" || I === y && b.__k !== p.__k ? typeof p.type == "function" || _ ? p.__d !== void 0 ? (l = p.__d, p.__d = void 0) : l = g.nextSibling : l = la(t, g, l) : l = sa(p, l, t), typeof i.type == "function" && (i.__d = l)));
580
+ (p = i.__k[c] = (p = e[c]) == null || typeof p == "boolean" || typeof p == "function" ? null : typeof p == "string" || typeof p == "number" || typeof p == "bigint" ? Et(null, p, null, null, p) : Gt(p) ? Et(q, { children: p }, null, null, null) : p.__b > 0 ? Et(p.type, p.props, p.key, p.ref ? p.ref : null, p.__v) : p) != null && (p.__ = i, p.__b = i.__b + 1, (I = To(p, y, x = c + $, H)) === -1 ? g = gt : (g = y[I] || gt, y[I] = void 0, H--), Le(t, p, g, o, n, r, s, l, d, u), b = p.__e, (f = p.ref) && g.ref != f && (g.ref && He(g.ref, null, p), u.push(f, p.__c || b, p)), b != null && (k == null && (k = b), _ = !(v = g === gt || g.__v === null) && I === x, v ? I == -1 && $-- : I !== x && (I === x + 1 ? ($++, _ = !0) : I > x ? H > O - x ? ($ += I - x, _ = !0) : $-- : $ = I < x && I == x - 1 ? I - x : 0), x = c + $, _ = _ || I == c && !v, typeof p.type != "function" || I === x && g.__k !== p.__k ? typeof p.type == "function" || _ ? p.__d !== void 0 ? (l = p.__d, p.__d = void 0) : l = b.nextSibling : l = la(t, b, l) : l = sa(p, l, t), typeof i.type == "function" && (i.__d = l)));
581
581
  for (i.__e = k, c = Z; c--; )
582
- x[c] != null && (typeof i.type == "function" && x[c].__e != null && x[c].__e == i.__d && (i.__d = x[c].__e.nextSibling), da(x[c], x[c]));
582
+ y[c] != null && (typeof i.type == "function" && y[c].__e != null && y[c].__e == i.__d && (i.__d = y[c].__e.nextSibling), da(y[c], y[c]));
583
583
  }
584
584
  function sa(t, e, i) {
585
585
  for (var a, o = t.__k, n = 0; o && n < o.length; n++)
@@ -658,37 +658,37 @@ function ni(t) {
658
658
  return this.l[t.type + !0](w.event ? w.event(t) : t);
659
659
  }
660
660
  function Le(t, e, i, a, o, n, r, s, l, d) {
661
- var u, c, f, b, p, g, k, y, I, v, _, $, x, Z, H, O = e.type;
661
+ var u, c, f, g, p, b, k, x, I, v, _, $, y, Z, H, O = e.type;
662
662
  if (e.constructor !== void 0)
663
663
  return null;
664
664
  i.__h != null && (l = i.__h, s = e.__e = i.__e, e.__h = null, n = [s]), (u = w.__b) && u(e);
665
665
  try {
666
666
  t:
667
667
  if (typeof O == "function") {
668
- if (y = e.props, I = (u = O.contextType) && a[u.__c], v = u ? I ? I.props.value : u.__ : a, i.__c ? k = (c = e.__c = i.__c).__ = c.__E : ("prototype" in O && O.prototype.render ? e.__c = c = new O(y, v) : (e.__c = c = new K(y, v), c.constructor = O, c.render = Ao), I && I.sub(c), c.props = y, c.state || (c.state = {}), c.context = v, c.__n = a, f = c.__d = !0, c.__h = [], c._sb = []), c.__s == null && (c.__s = c.state), O.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = tt({}, c.__s)), tt(c.__s, O.getDerivedStateFromProps(y, c.__s))), b = c.props, p = c.state, c.__v = e, f)
668
+ if (x = e.props, I = (u = O.contextType) && a[u.__c], v = u ? I ? I.props.value : u.__ : a, i.__c ? k = (c = e.__c = i.__c).__ = c.__E : ("prototype" in O && O.prototype.render ? e.__c = c = new O(x, v) : (e.__c = c = new K(x, v), c.constructor = O, c.render = Ao), I && I.sub(c), c.props = x, c.state || (c.state = {}), c.context = v, c.__n = a, f = c.__d = !0, c.__h = [], c._sb = []), c.__s == null && (c.__s = c.state), O.getDerivedStateFromProps != null && (c.__s == c.state && (c.__s = tt({}, c.__s)), tt(c.__s, O.getDerivedStateFromProps(x, c.__s))), g = c.props, p = c.state, c.__v = e, f)
669
669
  O.getDerivedStateFromProps == null && c.componentWillMount != null && c.componentWillMount(), c.componentDidMount != null && c.__h.push(c.componentDidMount);
670
670
  else {
671
- if (O.getDerivedStateFromProps == null && y !== b && c.componentWillReceiveProps != null && c.componentWillReceiveProps(y, v), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(y, c.__s, v) === !1 || e.__v === i.__v)) {
672
- 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(st) {
671
+ if (O.getDerivedStateFromProps == null && x !== g && c.componentWillReceiveProps != null && c.componentWillReceiveProps(x, v), !c.__e && (c.shouldComponentUpdate != null && c.shouldComponentUpdate(x, c.__s, v) === !1 || e.__v === i.__v)) {
672
+ for (e.__v !== i.__v && (c.props = x, c.state = c.__s, c.__d = !1), e.__e = i.__e, e.__k = i.__k, e.__k.forEach(function(st) {
673
673
  st && (st.__ = e);
674
674
  }), _ = 0; _ < c._sb.length; _++)
675
675
  c.__h.push(c._sb[_]);
676
676
  c._sb = [], c.__h.length && r.push(c);
677
677
  break t;
678
678
  }
679
- c.componentWillUpdate != null && c.componentWillUpdate(y, c.__s, v), c.componentDidUpdate != null && c.__h.push(function() {
680
- c.componentDidUpdate(b, p, g);
679
+ c.componentWillUpdate != null && c.componentWillUpdate(x, c.__s, v), c.componentDidUpdate != null && c.__h.push(function() {
680
+ c.componentDidUpdate(g, p, b);
681
681
  });
682
682
  }
683
- if (c.context = v, c.props = y, c.__P = t, c.__e = !1, $ = w.__r, x = 0, "prototype" in O && O.prototype.render) {
683
+ if (c.context = v, c.props = x, c.__P = t, c.__e = !1, $ = w.__r, y = 0, "prototype" in O && O.prototype.render) {
684
684
  for (c.state = c.__s, c.__d = !1, $ && $(e), u = c.render(c.props, c.state, c.context), Z = 0; Z < c._sb.length; Z++)
685
685
  c.__h.push(c._sb[Z]);
686
686
  c._sb = [];
687
687
  } else
688
688
  do
689
689
  c.__d = !1, $ && $(e), u = c.render(c.props, c.state, c.context), c.state = c.__s;
690
- while (c.__d && ++x < 25);
691
- c.state = c.__s, c.getChildContext != null && (a = tt(tt({}, a), c.getChildContext())), f || c.getSnapshotBeforeUpdate == null || (g = c.getSnapshotBeforeUpdate(b, p)), ra(t, Gt(H = u != null && u.type === q && u.key == null ? u.props.children : u) ? H : [H], e, i, a, o, n, r, s, l, d), c.base = e.__e, e.__h = null, c.__h.length && r.push(c), k && (c.__E = c.__ = null);
690
+ while (c.__d && ++y < 25);
691
+ c.state = c.__s, c.getChildContext != null && (a = tt(tt({}, a), c.getChildContext())), f || c.getSnapshotBeforeUpdate == null || (b = c.getSnapshotBeforeUpdate(g, p)), ra(t, Gt(H = u != null && u.type === q && u.key == null ? u.props.children : u) ? H : [H], e, i, a, o, n, r, s, l, d), c.base = e.__e, e.__h = null, c.__h.length && r.push(c), k && (c.__E = c.__ = null);
692
692
  } else
693
693
  n == null && e.__v === i.__v ? (e.__k = i.__k, e.__e = i.__e) : e.__e = jo(i.__e, e, i, a, o, n, r, l, d);
694
694
  (u = w.diffed) && u(e);
@@ -710,34 +710,34 @@ function ca(t, e, i) {
710
710
  });
711
711
  }
712
712
  function jo(t, e, i, a, o, n, r, s, l) {
713
- var d, u, c, f = i.props, b = e.props, p = e.type, g = 0;
713
+ var d, u, c, f = i.props, g = e.props, p = e.type, b = 0;
714
714
  if (p === "svg" && (o = !0), n != null) {
715
- for (; g < n.length; g++)
716
- if ((d = n[g]) && "setAttribute" in d == !!p && (p ? d.localName === p : d.nodeType === 3)) {
717
- t = d, n[g] = null;
715
+ for (; b < n.length; b++)
716
+ if ((d = n[b]) && "setAttribute" in d == !!p && (p ? d.localName === p : d.nodeType === 3)) {
717
+ t = d, n[b] = null;
718
718
  break;
719
719
  }
720
720
  }
721
721
  if (t == null) {
722
722
  if (p === null)
723
- return document.createTextNode(b);
724
- t = o ? document.createElementNS("http://www.w3.org/2000/svg", p) : document.createElement(p, b.is && b), n = null, s = !1;
723
+ return document.createTextNode(g);
724
+ t = o ? document.createElementNS("http://www.w3.org/2000/svg", p) : document.createElement(p, g.is && g), n = null, s = !1;
725
725
  }
726
726
  if (p === null)
727
- f === b || s && t.data === b || (t.data = b);
727
+ f === g || s && t.data === g || (t.data = g);
728
728
  else {
729
- if (n = n && zt.call(t.childNodes), u = (f = i.props || gt).dangerouslySetInnerHTML, c = b.dangerouslySetInnerHTML, !s) {
729
+ if (n = n && zt.call(t.childNodes), u = (f = i.props || gt).dangerouslySetInnerHTML, c = g.dangerouslySetInnerHTML, !s) {
730
730
  if (n != null)
731
- for (f = {}, g = 0; g < t.attributes.length; g++)
732
- f[t.attributes[g].name] = t.attributes[g].value;
731
+ for (f = {}, b = 0; b < t.attributes.length; b++)
732
+ f[t.attributes[b].name] = t.attributes[b].value;
733
733
  (c || u) && (c && (u && c.__html == u.__html || c.__html === t.innerHTML) || (t.innerHTML = c && c.__html || ""));
734
734
  }
735
- if (Io(t, b, f, o, s), c)
735
+ if (Io(t, g, f, o, s), c)
736
736
  e.__k = [];
737
- else if (ra(t, Gt(g = e.props.children) ? g : [g], e, i, a, o && p !== "foreignObject", n, r, n ? n[0] : i.__k && Ut(i, 0), s, l), n != null)
738
- for (g = n.length; g--; )
739
- n[g] != null && oa(n[g]);
740
- s || ("value" in b && (g = b.value) !== void 0 && (g !== t.value || p === "progress" && !g || p === "option" && g !== f.value) && Vt(t, "value", g, f.value, !1), "checked" in b && (g = b.checked) !== void 0 && g !== t.checked && Vt(t, "checked", g, f.checked, !1));
737
+ else if (ra(t, Gt(b = e.props.children) ? b : [b], e, i, a, o && p !== "foreignObject", n, r, n ? n[0] : i.__k && Ut(i, 0), s, l), n != null)
738
+ for (b = n.length; b--; )
739
+ n[b] != null && oa(n[b]);
740
+ s || ("value" in g && (b = g.value) !== void 0 && (b !== t.value || p === "progress" && !b || p === "option" && b !== f.value) && Vt(t, "value", b, f.value, !1), "checked" in g && (b = g.checked) !== void 0 && b !== t.checked && Vt(t, "checked", b, f.checked, !1));
741
741
  }
742
742
  return t;
743
743
  }
@@ -849,8 +849,8 @@ function wa(t, e, i) {
849
849
  var c = !1;
850
850
  return u.forEach(function(f) {
851
851
  if (f.__N) {
852
- var b = f.__[0];
853
- f.__ = f.__N, f.__N = void 0, b !== f.__[0] && (c = !0);
852
+ var g = f.__[0];
853
+ f.__ = f.__N, f.__N = void 0, g !== f.__[0] && (c = !0);
854
854
  }
855
855
  }), !(!c && a.__c.props === s) && (!n || n.call(this, s, l, d));
856
856
  };
@@ -1667,16 +1667,16 @@ const fi = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, wi = Ge, X
1667
1667
  let [c, f] = u;
1668
1668
  return f === void 0 || (d[c] = f), d;
1669
1669
  }, {}), l = e == null || (a = e.compoundVariants) === null || a === void 0 ? void 0 : a.reduce((d, u) => {
1670
- let { class: c, className: f, ...b } = u;
1671
- return Object.entries(b).every((p) => {
1672
- let [g, k] = p;
1670
+ let { class: c, className: f, ...g } = u;
1671
+ return Object.entries(g).every((p) => {
1672
+ let [b, k] = p;
1673
1673
  return Array.isArray(k) ? k.includes({
1674
1674
  ...n,
1675
1675
  ...s
1676
- }[g]) : {
1676
+ }[b]) : {
1677
1677
  ...n,
1678
1678
  ...s
1679
- }[g] === k;
1679
+ }[b] === k;
1680
1680
  }) ? [
1681
1681
  ...d,
1682
1682
  c,
@@ -2050,6 +2050,7 @@ const {
2050
2050
  job_alerts_accept: "Get job alerts",
2051
2051
  job_alerts_decline: "No thanks",
2052
2052
  job_alerts_privacy: "We'll use your email only for these alerts. You can unsubscribe at any time.",
2053
+ job_alerts_privacy_sender: "{{employer}} will email you new jobs like this one. Every email has an unsubscribe link.",
2053
2054
  job_alerts_success: "Done. We'll email you about similar roles.",
2054
2055
  job_alerts_error: "Sorry, we couldn't set that up. Please try again later.",
2055
2056
  submission_duplicate: "You've already applied for this role, so we haven't submitted a second application. If that doesn't sound right, check your email for a confirmation or try again in a few minutes.",
@@ -2376,22 +2377,23 @@ const ji = () => {
2376
2377
  title: n,
2377
2378
  analytics: r,
2378
2379
  job: s,
2379
- locationOrigin: l
2380
+ employer: l,
2381
+ locationOrigin: d
2380
2382
  }) => {
2381
2383
  await V.flushStateData().catch(() => {
2382
2384
  });
2383
- const d = await V.getStateData(e, o, i), u = d ?? Ai(), c = Zt({
2385
+ const u = await V.getStateData(e, o, i), c = u ?? Ai(), f = Zt({
2384
2386
  ...e,
2385
2387
  flowKeys: o,
2386
2388
  context: i
2387
- }), f = d !== void 0 && !le.has(c) && or({
2388
- data: u,
2389
+ }), g = u !== void 0 && !le.has(f) && or({
2390
+ data: c,
2389
2391
  nodes: e.nodes
2390
2392
  });
2391
- return f || le.add(c), {
2393
+ return g || le.add(f), {
2392
2394
  jobAlerts: t,
2393
- data: u,
2394
- offerResume: f,
2395
+ data: c,
2396
+ offerResume: g,
2395
2397
  startedAt: /* @__PURE__ */ new Date(),
2396
2398
  nodeIdToProgress: ar(e.nodes),
2397
2399
  flowKeys: o,
@@ -2404,7 +2406,8 @@ const ji = () => {
2404
2406
  title: n,
2405
2407
  analytics: r,
2406
2408
  job: s,
2407
- locationOrigin: l
2409
+ employer: l,
2410
+ locationOrigin: d
2408
2411
  };
2409
2412
  },
2410
2413
  commitFlow: (t) => {
@@ -2737,7 +2740,7 @@ const ji = () => {
2737
2740
  };
2738
2741
  function Ie() {
2739
2742
  }
2740
- const ur = za(() => import("./chatbot-body-c30b12cc.js").then((t) => t.ChatbotBody)), Ha = Xe("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", {
2743
+ const ur = za(() => import("./chatbot-body-b728cd78.js").then((t) => t.ChatbotBody)), Ha = Xe("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", {
2741
2744
  variants: {
2742
2745
  view: {
2743
2746
  closed: "hidden",
@@ -2778,7 +2781,7 @@ const ur = za(() => import("./chatbot-body-c30b12cc.js").then((t) => t.ChatbotBo
2778
2781
  const {
2779
2782
  state: l,
2780
2783
  flow: d
2781
- } = C.current$.value, u = C.viewState$.value, c = l !== "idle" && u === "maximised", f = mt(null), b = d ? [...d.data.nodeHistory].reverse().map((p) => d.nodes.find((g) => g.id === p)).find((p) => (p == null ? void 0 : p.type) === "flow-section") : void 0;
2784
+ } = C.current$.value, u = C.viewState$.value, c = l !== "idle" && u === "maximised", f = mt(null), g = d ? [...d.data.nodeHistory].reverse().map((p) => d.nodes.find((b) => b.id === p)).find((p) => (p == null ? void 0 : p.type) === "flow-section") : void 0;
2782
2785
  return h(Ln, {
2783
2786
  terms: r.terms,
2784
2787
  locale: void 0,
@@ -2801,10 +2804,10 @@ const ur = za(() => import("./chatbot-body-c30b12cc.js").then((t) => t.ChatbotBo
2801
2804
  params: r,
2802
2805
  analytics: o,
2803
2806
  feedbackReady: s,
2804
- children: b ? h(q, {
2807
+ children: g ? h(q, {
2805
2808
  children: [h("span", {
2806
2809
  class: "block",
2807
- children: b.data.title
2810
+ children: g.data.title
2808
2811
  }), h("span", {
2809
2812
  class: "block truncate text-xs font-normal",
2810
2813
  children: d == null ? void 0 : d.title
@@ -3086,9 +3089,9 @@ var _r = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"], mr = {
3086
3089
  core: r,
3087
3090
  semantic: r,
3088
3091
  raw: { core: s, semantic: l }
3089
- }), u = xr(Ae(s, l, d)), c = ([f, b], p) => {
3090
- const g = [p, f].filter(Boolean).join(".");
3091
- return typeof b == "object" ? Object.entries(b).flatMap((k) => c(k, g)) : [[a.getToken("declaration", g), b]];
3092
+ }), u = xr(Ae(s, l, d)), c = ([f, g], p) => {
3093
+ const b = [p, f].filter(Boolean).join(".");
3094
+ return typeof g == "object" ? Object.entries(g).flatMap((k) => c(k, b)) : [[a.getToken("declaration", b), g]];
3092
3095
  };
3093
3096
  return {
3094
3097
  values: u,
@@ -3209,7 +3212,7 @@ const [ue, pe, Fi] = ["oklch(0% 0 0)", "oklch(100% 0 0)", "transparent"], Sr = $
3209
3212
  ${i.concat(i).join(`
3210
3213
  `)}
3211
3214
  }`;
3212
- }, Pr = "14.16.0", Tr = (t, e = Pr) => e === void 0 ? t : {
3215
+ }, Pr = "14.17.1", Tr = (t, e = Pr) => e === void 0 ? t : {
3213
3216
  fetch: (i, a) => {
3214
3217
  if (i !== "/flow/submit")
3215
3218
  return t.fetch(i, a);
@@ -3237,18 +3240,18 @@ const us = ({
3237
3240
  env: u
3238
3241
  }) => {
3239
3242
  let c = !1, f = 0;
3240
- const b = Tr(n), p = d && u ? Za({
3243
+ const g = Tr(n), p = d && u ? Za({
3241
3244
  environment: u,
3242
3245
  publishableKey: d,
3243
3246
  logger: s
3244
- }) : void 0, g = (v) => v === f, k = () => {
3247
+ }) : void 0, b = (v) => v === f, k = () => {
3245
3248
  if (typeof window > "u")
3246
3249
  return;
3247
3250
  f++, V.flushStateData().catch(() => {
3248
3251
  }), C.cancelCurrentFlow(), W.isBotTyping$.value = !1;
3249
3252
  const v = t.getChatbotElement();
3250
3253
  v && (pt(null, v), v.remove()), c = !1, s.info("Chatbot plugin destroyed");
3251
- }, y = () => {
3254
+ }, x = () => {
3252
3255
  if (typeof window > "u")
3253
3256
  return;
3254
3257
  const v = f, _ = [U("style", {
@@ -3257,11 +3260,11 @@ const us = ({
3257
3260
  id: "inploi-chatbot-theme"
3258
3261
  }, Er(e))], $ = t.getOrCreateChatbotElement();
3259
3262
  W.themeMode$.value = e.mode;
3260
- const x = Y(!1);
3263
+ const y = Y(!1);
3261
3264
  if (pt(U(q, {}, [_, U(hr, {
3262
3265
  env: u,
3263
3266
  rpcClient: r,
3264
- apiClient: b,
3267
+ apiClient: g,
3265
3268
  logger: s,
3266
3269
  analytics: l,
3267
3270
  talentBankClient: p,
@@ -3270,11 +3273,11 @@ const us = ({
3270
3273
  terms: i,
3271
3274
  feedback: a
3272
3275
  },
3273
- feedbackReady: x
3276
+ feedbackReady: y
3274
3277
  })]), $), a) {
3275
3278
  const Z = (H) => {
3276
3279
  var st, Qe;
3277
- if (!g(v))
3280
+ if (!b(v))
3278
3281
  return;
3279
3282
  const O = (st = t.getChatbotElement()) == null ? void 0 : st.querySelector("dialog");
3280
3283
  O && Ir({
@@ -3287,7 +3290,7 @@ const us = ({
3287
3290
  theme: e,
3288
3291
  terms: ((Qe = a.params) == null ? void 0 : Qe.terms) ?? {},
3289
3292
  host: O
3290
- }).then(() => void (x.value = !0), (Ya) => s.error("Error rendering feedback plugin", Ya));
3293
+ }).then(() => void (y.value = !0), (Ya) => s.error("Error rendering feedback plugin", Ya));
3291
3294
  };
3292
3295
  a.plugin instanceof Promise ? a.plugin.then(({
3293
3296
  feedbackPlugin: H
@@ -3299,7 +3302,7 @@ const us = ({
3299
3302
  }
3300
3303
  c = !0;
3301
3304
  }, I = async (v, _) => {
3302
- if (!g(_))
3305
+ if (!b(_))
3303
3306
  return;
3304
3307
  yo({
3305
3308
  context: Be(v.jobContext, v.context || {}),
@@ -3310,7 +3313,7 @@ const us = ({
3310
3313
  ...v,
3311
3314
  jobAlerts: v.jobAlerts ?? o
3312
3315
  });
3313
- g(_) && C.commitFlow($);
3316
+ b(_) && C.commitFlow($);
3314
3317
  };
3315
3318
  return {
3316
3319
  /** Optionally eagerly renders the interface ahead of needing the chatbot. */
@@ -3319,7 +3322,7 @@ const us = ({
3319
3322
  try {
3320
3323
  if (c)
3321
3324
  return;
3322
- y(), s.info("Chatbot plugin prepared");
3325
+ x(), s.info("Chatbot plugin prepared");
3323
3326
  } catch (v) {
3324
3327
  s.error("Error preparing chatbot plugin", v);
3325
3328
  }
@@ -3336,7 +3339,7 @@ const us = ({
3336
3339
  searchParams: {
3337
3340
  id_type: $
3338
3341
  }
3339
- }).catch((x) => {
3342
+ }).catch((y) => {
3340
3343
  throw Sa({
3341
3344
  name: "ApiError",
3342
3345
  message: wt.string,
@@ -3354,19 +3357,20 @@ const us = ({
3354
3357
  }
3355
3358
  }
3356
3359
  })
3357
- }, x) ? new Mi(x.message, x.status, x.data) : x;
3358
- }).then((x) => ({
3359
- flow: x.flow,
3360
- title: x.job.title,
3361
- flowKeys: [x.job.id, ...(_ == null ? void 0 : _.flowKeys) ?? []],
3362
- job: $o(x, {
3360
+ }, y) ? new Mi(y.message, y.status, y.data) : y;
3361
+ }).then((y) => ({
3362
+ flow: y.flow,
3363
+ title: y.job.title,
3364
+ flowKeys: [y.job.id, ...(_ == null ? void 0 : _.flowKeys) ?? []],
3365
+ job: $o(y, {
3363
3366
  id: v,
3364
3367
  idType: $
3365
3368
  }),
3369
+ employer: y.company.name,
3366
3370
  ..._,
3367
- jobContext: x.context,
3371
+ jobContext: y.context,
3368
3372
  context: {
3369
- user: x.user,
3373
+ user: y.user,
3370
3374
  ..._ == null ? void 0 : _.context
3371
3375
  }
3372
3376
  }));
@@ -3376,7 +3380,7 @@ const us = ({
3376
3380
  id: v
3377
3381
  }
3378
3382
  }).then(($) => {
3379
- var x;
3383
+ var y;
3380
3384
  return {
3381
3385
  flow: $.flow,
3382
3386
  title: "Chatbot",
@@ -3386,7 +3390,7 @@ const us = ({
3386
3390
  customProperties: {
3387
3391
  flow_id: $.flow.id,
3388
3392
  flow_version: $.flow.version,
3389
- ...(x = _ == null ? void 0 : _.analytics) == null ? void 0 : x.customProperties
3393
+ ...(y = _ == null ? void 0 : _.analytics) == null ? void 0 : y.customProperties
3390
3394
  }
3391
3395
  }
3392
3396
  };
@@ -3394,12 +3398,12 @@ const us = ({
3394
3398
  open: async (v) => {
3395
3399
  if (!(typeof window > "u"))
3396
3400
  try {
3397
- C.cancelCurrentFlow(), C.viewState$.value = "maximised", c || y();
3401
+ C.cancelCurrentFlow(), C.viewState$.value = "maximised", c || x();
3398
3402
  const _ = f;
3399
3403
  v instanceof Promise ? (C.current$.value = {
3400
3404
  state: "loading"
3401
3405
  }, v.then(($) => I($, _)).catch(($) => {
3402
- g(_) && (s.error("Error loading flow", $), C.current$.value = {
3406
+ b(_) && (s.error("Error loading flow", $), C.current$.value = {
3403
3407
  state: $ instanceof Mi ? "closed" : "error"
3404
3408
  });
3405
3409
  })) : await I(v, _);
@@ -3465,7 +3469,7 @@ function Ir({
3465
3469
  });
3466
3470
  }
3467
3471
  export {
3468
- V as $,
3472
+ ds as $,
3469
3473
  Jr as A,
3470
3474
  ln as B,
3471
3475
  Ar as C,
@@ -3485,18 +3489,19 @@ export {
3485
3489
  _o as Q,
3486
3490
  Gr as R,
3487
3491
  Zr as S,
3488
- Y as T,
3489
- Ze as U,
3492
+ ss as T,
3493
+ Y as U,
3490
3494
  lo as V,
3491
3495
  po as W,
3492
- wt as X,
3493
- ds as Y,
3496
+ Ze as X,
3497
+ wt as Y,
3494
3498
  wo as Z,
3495
3499
  Kr as _,
3496
3500
  Xt as a,
3497
- Te as a0,
3498
- lr as a1,
3499
- us as a2,
3501
+ V as a0,
3502
+ Te as a1,
3503
+ lr as a2,
3504
+ us as a3,
3500
3505
  Lr as b,
3501
3506
  Ge as c,
3502
3507
  Xe as d,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-2b9b0c8e.cjs");require("@inploi/sdk");exports.chatbotPlugin=e.chatbotPlugin;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3e26f368.cjs");require("@inploi/sdk");exports.chatbotPlugin=e.chatbotPlugin;
@@ -1,4 +1,4 @@
1
- import { a2 as r } from "./index-cea8111c.js";
1
+ import { a3 as r } from "./index-41fceabc.js";
2
2
  import "@inploi/sdk";
3
3
  export {
4
4
  r as chatbotPlugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inploi/plugin-chatbot",
3
- "version": "14.16.0",
3
+ "version": "14.17.1",
4
4
  "type": "module",
5
5
  "main": "dist/plugin-chatbot.js",
6
6
  "types": "dist/index.d.ts",