@cimulate/copilot-widget 1.62.3 → 1.62.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3620,7 +3620,7 @@ const lb = new Map(
3620
3620
  userMessageIcon: "hidden"
3621
3621
  }
3622
3622
  }
3623
- }, b4 = Object.freeze({
3623
+ }, bv = Object.freeze({
3624
3624
  legacy: Object.freeze(P({ preset: "legacy" }, To.legacy.traits)),
3625
3625
  commerce: Object.freeze(P({ preset: "commerce" }, To.commerce.traits))
3626
3626
  }), $l = {
@@ -6354,23 +6354,23 @@ Ze.getAdapter = Sp.getAdapter;
6354
6354
  Ze.HttpStatusCode = ao;
6355
6355
  Ze.default = Ze;
6356
6356
  const {
6357
- Axios: A4,
6358
- AxiosError: S4,
6359
- CanceledError: C4,
6360
- isCancel: x4,
6361
- CancelToken: P4,
6362
- VERSION: N4,
6363
- all: O4,
6364
- Cancel: I4,
6365
- isAxiosError: w4,
6366
- spread: k4,
6367
- toFormData: R4,
6368
- AxiosHeaders: L4,
6369
- HttpStatusCode: v4,
6370
- formToJSON: D4,
6371
- getAdapter: M4,
6372
- mergeConfig: F4,
6373
- create: B4
6357
+ Axios: Av,
6358
+ AxiosError: Sv,
6359
+ CanceledError: Cv,
6360
+ isCancel: xv,
6361
+ CancelToken: Pv,
6362
+ VERSION: Nv,
6363
+ all: Ov,
6364
+ Cancel: Iv,
6365
+ isAxiosError: wv,
6366
+ spread: kv,
6367
+ toFormData: Rv,
6368
+ AxiosHeaders: Lv,
6369
+ HttpStatusCode: vv,
6370
+ formToJSON: Dv,
6371
+ getAdapter: Mv,
6372
+ mergeConfig: Fv,
6373
+ create: Bv
6374
6374
  } = Ze;
6375
6375
  class Py {
6376
6376
  constructor(t, n, r, i = !1, s, o) {
@@ -8745,12 +8745,12 @@ function A2(e, t) {
8745
8745
  r(void 0);
8746
8746
  return;
8747
8747
  }
8748
- const s = `1.62.3:${e}`;
8748
+ const s = `1.62.4:${e}`;
8749
8749
  if ($s.has(s)) {
8750
8750
  r((u = $s.get(s)) != null ? u : void 0);
8751
8751
  return;
8752
8752
  }
8753
- const o = ++i.current, a = `${y2}/1.62.3/locales/${e}.json`;
8753
+ const o = ++i.current, a = `${y2}/1.62.4/locales/${e}.json`;
8754
8754
  fetch(a).then((c) => {
8755
8755
  if (!c.ok) throw new Error(`${c.status}`);
8756
8756
  return c.json();
@@ -27055,7 +27055,7 @@ xi()([
27055
27055
  "portalled",
27056
27056
  "positioning"
27057
27057
  ]);
27058
- const [U4, pa] = Hr({
27058
+ const [Uv, pa] = Hr({
27059
27059
  name: "EnvironmentContext",
27060
27060
  hookName: "useEnvironmentContext",
27061
27061
  providerName: "<EnvironmentProvider />",
@@ -27065,7 +27065,7 @@ const [U4, pa] = Hr({
27065
27065
  getDocument: () => document,
27066
27066
  getWindow: () => window
27067
27067
  }
27068
- }), [H4, cl] = Hr({
27068
+ }), [Hv, cl] = Hr({
27069
27069
  name: "LocaleContext",
27070
27070
  hookName: "useLocaleContext",
27071
27071
  providerName: "<LocaleProvider />",
@@ -30472,31 +30472,31 @@ function K6(e) {
30472
30472
  };
30473
30473
  }
30474
30474
  const Q6 = {
30475
- tokenize: rv,
30475
+ tokenize: r4,
30476
30476
  partial: !0
30477
30477
  }, gE = {
30478
- tokenize: iv,
30478
+ tokenize: i4,
30479
30479
  partial: !0
30480
30480
  }, EE = {
30481
- tokenize: sv,
30481
+ tokenize: s4,
30482
30482
  partial: !0
30483
30483
  }, bE = {
30484
- tokenize: ov,
30484
+ tokenize: o4,
30485
30485
  partial: !0
30486
30486
  }, J6 = {
30487
- tokenize: av,
30487
+ tokenize: a4,
30488
30488
  partial: !0
30489
30489
  }, TE = {
30490
30490
  name: "wwwAutolink",
30491
- tokenize: tv,
30491
+ tokenize: t4,
30492
30492
  previous: _E
30493
30493
  }, yE = {
30494
30494
  name: "protocolAutolink",
30495
- tokenize: nv,
30495
+ tokenize: n4,
30496
30496
  previous: AE
30497
30497
  }, Gn = {
30498
30498
  name: "emailAutolink",
30499
- tokenize: ev,
30499
+ tokenize: e4,
30500
30500
  previous: SE
30501
30501
  }, Rn = {};
30502
30502
  function Z6() {
@@ -30515,7 +30515,7 @@ Rn[72] = [Gn, yE];
30515
30515
  Rn[104] = [Gn, yE];
30516
30516
  Rn[87] = [Gn, TE];
30517
30517
  Rn[119] = [Gn, TE];
30518
- function ev(e, t, n) {
30518
+ function e4(e, t, n) {
30519
30519
  const r = this;
30520
30520
  let i, s;
30521
30521
  return o;
@@ -30535,7 +30535,7 @@ function ev(e, t, n) {
30535
30535
  return s && i && kt(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(d)) : n(d);
30536
30536
  }
30537
30537
  }
30538
- function tv(e, t, n) {
30538
+ function t4(e, t, n) {
30539
30539
  const r = this;
30540
30540
  return i;
30541
30541
  function i(o) {
@@ -30545,7 +30545,7 @@ function tv(e, t, n) {
30545
30545
  return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(o);
30546
30546
  }
30547
30547
  }
30548
- function nv(e, t, n) {
30548
+ function n4(e, t, n) {
30549
30549
  const r = this;
30550
30550
  let i = "", s = !1;
30551
30551
  return o;
@@ -30572,7 +30572,7 @@ function nv(e, t, n) {
30572
30572
  return e.exit("literalAutolinkHttp"), e.exit("literalAutolink"), t(d);
30573
30573
  }
30574
30574
  }
30575
- function rv(e, t, n) {
30575
+ function r4(e, t, n) {
30576
30576
  let r = 0;
30577
30577
  return i;
30578
30578
  function i(o) {
@@ -30582,7 +30582,7 @@ function rv(e, t, n) {
30582
30582
  return o === null ? n(o) : t(o);
30583
30583
  }
30584
30584
  }
30585
- function iv(e, t, n) {
30585
+ function i4(e, t, n) {
30586
30586
  let r, i, s;
30587
30587
  return o;
30588
30588
  function o(c) {
@@ -30595,7 +30595,7 @@ function iv(e, t, n) {
30595
30595
  return i || r || !s ? n(c) : t(c);
30596
30596
  }
30597
30597
  }
30598
- function sv(e, t) {
30598
+ function s4(e, t) {
30599
30599
  let n = 0, r = 0;
30600
30600
  return i;
30601
30601
  function i(o) {
@@ -30605,7 +30605,7 @@ function sv(e, t) {
30605
30605
  return o === 41 && r++, e.consume(o), i;
30606
30606
  }
30607
30607
  }
30608
- function ov(e, t, n) {
30608
+ function o4(e, t, n) {
30609
30609
  return r;
30610
30610
  function r(a) {
30611
30611
  return a === 33 || a === 34 || a === 39 || a === 41 || a === 42 || a === 44 || a === 46 || a === 58 || a === 59 || a === 63 || a === 95 || a === 126 ? (e.consume(a), r) : a === 38 ? (e.consume(a), s) : a === 93 ? (e.consume(a), i) : (
@@ -30624,7 +30624,7 @@ function ov(e, t, n) {
30624
30624
  return a === 59 ? (e.consume(a), r) : kt(a) ? (e.consume(a), o) : n(a);
30625
30625
  }
30626
30626
  }
30627
- function av(e, t, n) {
30627
+ function a4(e, t, n) {
30628
30628
  return r;
30629
30629
  function r(s) {
30630
30630
  return e.consume(s), i;
@@ -30660,37 +30660,37 @@ function bl(e) {
30660
30660
  }
30661
30661
  return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
30662
30662
  }
30663
- const uv = {
30664
- tokenize: gv,
30663
+ const u4 = {
30664
+ tokenize: g4,
30665
30665
  partial: !0
30666
30666
  };
30667
- function cv() {
30667
+ function c4() {
30668
30668
  return {
30669
30669
  document: {
30670
30670
  91: {
30671
30671
  name: "gfmFootnoteDefinition",
30672
- tokenize: hv,
30672
+ tokenize: h4,
30673
30673
  continuation: {
30674
- tokenize: pv
30674
+ tokenize: p4
30675
30675
  },
30676
- exit: mv
30676
+ exit: m4
30677
30677
  }
30678
30678
  },
30679
30679
  text: {
30680
30680
  91: {
30681
30681
  name: "gfmFootnoteCall",
30682
- tokenize: fv
30682
+ tokenize: f4
30683
30683
  },
30684
30684
  93: {
30685
30685
  name: "gfmPotentialFootnoteCall",
30686
30686
  add: "after",
30687
- tokenize: lv,
30688
- resolveTo: dv
30687
+ tokenize: l4,
30688
+ resolveTo: d4
30689
30689
  }
30690
30690
  }
30691
30691
  };
30692
30692
  }
30693
- function lv(e, t, n) {
30693
+ function l4(e, t, n) {
30694
30694
  const r = this;
30695
30695
  let i = r.events.length;
30696
30696
  const s = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
@@ -30715,7 +30715,7 @@ function lv(e, t, n) {
30715
30715
  return c.codePointAt(0) !== 94 || !s.includes(c.slice(1)) ? n(u) : (e.enter("gfmFootnoteCallLabelMarker"), e.consume(u), e.exit("gfmFootnoteCallLabelMarker"), t(u));
30716
30716
  }
30717
30717
  }
30718
- function dv(e, t) {
30718
+ function d4(e, t) {
30719
30719
  let n = e.length;
30720
30720
  for (; n--; )
30721
30721
  if (e[n][1].type === "labelImage" && e[n][0] === "enter") {
@@ -30765,7 +30765,7 @@ function dv(e, t) {
30765
30765
  ];
30766
30766
  return e.splice(n, e.length - n + 1, ...a), e;
30767
30767
  }
30768
- function fv(e, t, n) {
30768
+ function f4(e, t, n) {
30769
30769
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
30770
30770
  let s = 0, o;
30771
30771
  return a;
@@ -30795,7 +30795,7 @@ function fv(e, t, n) {
30795
30795
  return d === 91 || d === 92 || d === 93 ? (e.consume(d), s++, c) : c(d);
30796
30796
  }
30797
30797
  }
30798
- function hv(e, t, n) {
30798
+ function h4(e, t, n) {
30799
30799
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
30800
30800
  let s, o = 0, a;
30801
30801
  return u;
@@ -30831,13 +30831,13 @@ function hv(e, t, n) {
30831
30831
  return t(m);
30832
30832
  }
30833
30833
  }
30834
- function pv(e, t, n) {
30835
- return e.check(Ps, t, e.attempt(uv, t, n));
30834
+ function p4(e, t, n) {
30835
+ return e.check(Ps, t, e.attempt(u4, t, n));
30836
30836
  }
30837
- function mv(e) {
30837
+ function m4(e) {
30838
30838
  e.exit("gfmFootnoteDefinition");
30839
30839
  }
30840
- function gv(e, t, n) {
30840
+ function g4(e, t, n) {
30841
30841
  const r = this;
30842
30842
  return we(e, i, "gfmFootnoteDefinitionIndent", 5);
30843
30843
  function i(s) {
@@ -30845,7 +30845,7 @@ function gv(e, t, n) {
30845
30845
  return o && o[1].type === "gfmFootnoteDefinitionIndent" && o[2].sliceSerialize(o[1], !0).length === 4 ? t(s) : n(s);
30846
30846
  }
30847
30847
  }
30848
- function Ev(e) {
30848
+ function E4(e) {
30849
30849
  let n = (e || {}).singleTilde;
30850
30850
  const r = {
30851
30851
  name: "strikethrough",
@@ -30906,7 +30906,7 @@ function Ev(e) {
30906
30906
  }
30907
30907
  }
30908
30908
  }
30909
- class bv {
30909
+ class b4 {
30910
30910
  /**
30911
30911
  * Create a new edit map.
30912
30912
  */
@@ -30922,7 +30922,7 @@ class bv {
30922
30922
  * @returns {undefined}
30923
30923
  */
30924
30924
  add(t, n, r) {
30925
- Tv(this, t, n, r);
30925
+ T4(this, t, n, r);
30926
30926
  }
30927
30927
  // To do: add this when moving to `micromark`.
30928
30928
  // /**
@@ -30961,7 +30961,7 @@ class bv {
30961
30961
  this.map.length = 0;
30962
30962
  }
30963
30963
  }
30964
- function Tv(e, t, n, r) {
30964
+ function T4(e, t, n, r) {
30965
30965
  let i = 0;
30966
30966
  if (!(n === 0 && r.length === 0)) {
30967
30967
  for (; i < e.map.length; ) {
@@ -30974,7 +30974,7 @@ function Tv(e, t, n, r) {
30974
30974
  e.map.push([t, n, r]);
30975
30975
  }
30976
30976
  }
30977
- function yv(e, t) {
30977
+ function y4(e, t) {
30978
30978
  let n = !1;
30979
30979
  const r = [];
30980
30980
  for (; t < e.length; ) {
@@ -30994,18 +30994,18 @@ function yv(e, t) {
30994
30994
  }
30995
30995
  return r;
30996
30996
  }
30997
- function _v() {
30997
+ function _4() {
30998
30998
  return {
30999
30999
  flow: {
31000
31000
  null: {
31001
31001
  name: "table",
31002
- tokenize: Av,
31003
- resolveAll: Sv
31002
+ tokenize: A4,
31003
+ resolveAll: S4
31004
31004
  }
31005
31005
  }
31006
31006
  };
31007
31007
  }
31008
- function Av(e, t, n) {
31008
+ function A4(e, t, n) {
31009
31009
  const r = this;
31010
31010
  let i = 0, s = 0, o;
31011
31011
  return a;
@@ -31075,9 +31075,9 @@ function Av(e, t, n) {
31075
31075
  return v === 92 || v === 124 ? (e.consume(v), B) : B(v);
31076
31076
  }
31077
31077
  }
31078
- function Sv(e, t) {
31078
+ function S4(e, t) {
31079
31079
  let n = -1, r = !0, i = 0, s = [0, 0, 0, 0], o = [0, 0, 0, 0], a = !1, u = 0, c, l, d;
31080
- const p = new bv();
31080
+ const p = new b4();
31081
31081
  for (; ++n < e.length; ) {
31082
31082
  const h = e[n], m = h[1];
31083
31083
  h[0] === "enter" ? m.type === "tableHead" ? (a = !1, u !== 0 && (hh(p, t, u, c, l), l = void 0, u = 0), c = {
@@ -31094,7 +31094,7 @@ function Sv(e, t) {
31094
31094
  }
31095
31095
  for (u !== 0 && hh(p, t, u, c, l), p.consume(t.events), n = -1; ++n < t.events.length; ) {
31096
31096
  const h = t.events[n];
31097
- h[0] === "enter" && h[1].type === "table" && (h[1]._align = yv(t.events, n));
31097
+ h[0] === "enter" && h[1].type === "table" && (h[1]._align = y4(t.events, n));
31098
31098
  }
31099
31099
  return e;
31100
31100
  }
@@ -31132,18 +31132,18 @@ function Qr(e, t) {
31132
31132
  const n = e[t], r = n[0] === "enter" ? "start" : "end";
31133
31133
  return n[1][r];
31134
31134
  }
31135
- const Cv = {
31135
+ const C4 = {
31136
31136
  name: "tasklistCheck",
31137
- tokenize: Pv
31137
+ tokenize: P4
31138
31138
  };
31139
- function xv() {
31139
+ function x4() {
31140
31140
  return {
31141
31141
  text: {
31142
- 91: Cv
31142
+ 91: C4
31143
31143
  }
31144
31144
  };
31145
31145
  }
31146
- function Pv(e, t, n) {
31146
+ function P4(e, t, n) {
31147
31147
  const r = this;
31148
31148
  return i;
31149
31149
  function i(u) {
@@ -31162,35 +31162,35 @@ function Pv(e, t, n) {
31162
31162
  }
31163
31163
  function a(u) {
31164
31164
  return he(u) ? t(u) : Ce(u) ? e.check({
31165
- tokenize: Nv
31165
+ tokenize: N4
31166
31166
  }, t, n)(u) : n(u);
31167
31167
  }
31168
31168
  }
31169
- function Nv(e, t, n) {
31169
+ function N4(e, t, n) {
31170
31170
  return we(e, r, "whitespace");
31171
31171
  function r(i) {
31172
31172
  return i === null ? n(i) : t(i);
31173
31173
  }
31174
31174
  }
31175
- function Ov(e) {
31175
+ function O4(e) {
31176
31176
  return Im([
31177
31177
  Z6(),
31178
- cv(),
31179
- Ev(e),
31180
- _v(),
31181
- xv()
31178
+ c4(),
31179
+ E4(e),
31180
+ _4(),
31181
+ x4()
31182
31182
  ]);
31183
31183
  }
31184
- const Iv = {};
31185
- function wv(e) {
31184
+ const I4 = {};
31185
+ function w4(e) {
31186
31186
  const t = (
31187
31187
  /** @type {Processor<Root>} */
31188
31188
  this
31189
- ), n = e || Iv, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), s = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), o = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
31190
- i.push(Ov(n)), s.push(X6()), o.push(K6(n));
31189
+ ), n = e || I4, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), s = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), o = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
31190
+ i.push(O4(n)), s.push(X6()), o.push(K6(n));
31191
31191
  }
31192
31192
  const ga = () => /* @__PURE__ */ y("span", { className: `${w}-blinking-cursor`, children: /* @__PURE__ */ y("svg", { "aria-hidden": "true", height: "16px", width: "16px", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ y("circle", { r: "0.45rem", cx: "0.5rem", cy: "0.55rem", fill: "black" }) }) });
31193
- function kv(e) {
31193
+ function k4(e) {
31194
31194
  return /^tel:/i.test(e) ? e : Jm(e);
31195
31195
  }
31196
31196
  const Tl = ({
@@ -31202,9 +31202,9 @@ const Tl = ({
31202
31202
  }) => /* @__PURE__ */ y("div", { className: D(e, `${w}-markdown`), children: /* @__PURE__ */ y(
31203
31203
  Qm,
31204
31204
  {
31205
- remarkPlugins: [wv],
31205
+ remarkPlugins: [w4],
31206
31206
  rehypePlugins: [D0],
31207
- urlTransform: kv,
31207
+ urlTransform: k4,
31208
31208
  components: {
31209
31209
  h1: ({ children: s }) => /* @__PURE__ */ y("h1", { className: D(e, `${w}-header h1`), children: s }),
31210
31210
  h2: ({ children: s }) => /* @__PURE__ */ y("h2", { className: D(e, `${w}-header h2`), children: s }),
@@ -31232,7 +31232,7 @@ const Tl = ({
31232
31232
  },
31233
31233
  children: r + (n ? `<span className='${w}-blinking-cursor'></span>` : "")
31234
31234
  }
31235
- ) }), Rv = ({
31235
+ ) }), R4 = ({
31236
31236
  globalClassName: e,
31237
31237
  message: t
31238
31238
  }) => {
@@ -31279,11 +31279,11 @@ const Tl = ({
31279
31279
  n && /* @__PURE__ */ y("div", { className: D(e, `${w}-thought-container`), children: s && /* @__PURE__ */ y("p", { className: D(e, `${w}-progress-thought`), children: t.thought }) })
31280
31280
  ] })
31281
31281
  ] });
31282
- }, Lv = ({
31282
+ }, L4 = ({
31283
31283
  globalClassName: e,
31284
31284
  message: t,
31285
31285
  isWidgetStandalone: n
31286
- }) => n ? /* @__PURE__ */ y(Rv, { globalClassName: e, message: t }) : /* @__PURE__ */ re(
31286
+ }) => n ? /* @__PURE__ */ y(R4, { globalClassName: e, message: t }) : /* @__PURE__ */ re(
31287
31287
  "div",
31288
31288
  {
31289
31289
  className: D(e, `${w}-progress-message`, "embedded"),
@@ -31304,7 +31304,7 @@ const Tl = ({
31304
31304
  /* @__PURE__ */ y("i", { className: D(e, `${w}-progress-text`, "embedded"), children: t.message })
31305
31305
  ]
31306
31306
  }
31307
- ), vv = ({
31307
+ ), v4 = ({
31308
31308
  globalClassName: e,
31309
31309
  message: t,
31310
31310
  isWidgetStandalone: n
@@ -31423,7 +31423,7 @@ const Tl = ({
31423
31423
  title: t,
31424
31424
  children: t
31425
31425
  }
31426
- ), Dv = ({
31426
+ ), D4 = ({
31427
31427
  globalClassName: e,
31428
31428
  message: t,
31429
31429
  isWidgetStandalone: n
@@ -31531,7 +31531,7 @@ const Tl = ({
31531
31531
  }
31532
31532
  )
31533
31533
  ] });
31534
- }, Mv = ({
31534
+ }, M4 = ({
31535
31535
  globalClassName: e,
31536
31536
  timestamp: t,
31537
31537
  actionLabel: n,
@@ -31604,7 +31604,7 @@ const Tl = ({
31604
31604
  isWidgetStandalone: !0
31605
31605
  }
31606
31606
  )
31607
- ] }), Fv = ({
31607
+ ] }), F4 = ({
31608
31608
  globalClassName: e,
31609
31609
  message: t,
31610
31610
  isWidgetStandalone: n
@@ -31637,7 +31637,7 @@ const Tl = ({
31637
31637
  }
31638
31638
  }, [i, r]);
31639
31639
  return d ? n ? /* @__PURE__ */ y(
31640
- Mv,
31640
+ M4,
31641
31641
  {
31642
31642
  globalClassName: e,
31643
31643
  timestamp: u,
@@ -31699,14 +31699,14 @@ const Tl = ({
31699
31699
  case "copilot_browse":
31700
31700
  case "product_view":
31701
31701
  return h ? /* @__PURE__ */ y(
31702
- Dv,
31702
+ D4,
31703
31703
  {
31704
31704
  globalClassName: t,
31705
31705
  isWidgetStandalone: s,
31706
31706
  message: e
31707
31707
  }
31708
31708
  ) : /* @__PURE__ */ y(
31709
- Fv,
31709
+ F4,
31710
31710
  {
31711
31711
  globalClassName: t,
31712
31712
  message: e,
@@ -31718,7 +31718,7 @@ const Tl = ({
31718
31718
  case "refined_search":
31719
31719
  case "refined_browse":
31720
31720
  return /* @__PURE__ */ y(
31721
- vv,
31721
+ v4,
31722
31722
  {
31723
31723
  globalClassName: t,
31724
31724
  message: e,
@@ -31766,7 +31766,7 @@ const Tl = ({
31766
31766
  // }
31767
31767
  case "progress":
31768
31768
  return /* @__PURE__ */ y(
31769
- Lv,
31769
+ L4,
31770
31770
  {
31771
31771
  globalClassName: t,
31772
31772
  isWidgetStandalone: s,
@@ -31781,7 +31781,7 @@ const Tl = ({
31781
31781
  default:
31782
31782
  return null;
31783
31783
  }
31784
- }, Bv = ({ isWidgetStandalone: e, handleSuggestionClick: t }) => {
31784
+ }, B4 = ({ isWidgetStandalone: e, handleSuggestionClick: t }) => {
31785
31785
  const { globalClassName: n, openLinksInNewTab: r, resetConversationMessage: i } = xe(), { groupedMessages: s } = $t(), { entryType: o } = Xt();
31786
31786
  return /* @__PURE__ */ re(Ut, { children: [
31787
31787
  o === "ask_cim" && /* @__PURE__ */ y(mL, { isWidgetStandalone: e }),
@@ -31852,7 +31852,7 @@ const Tl = ({
31852
31852
  return null;
31853
31853
  })
31854
31854
  ] });
31855
- }, Uv = 4e3, Hv = (e) => (typeof e == "string" ? e : "").replace(/<[^>]*>/g, " ").replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\[([^\]]+)\]\([^)]*\)/g, "$1").replace(/[`*_~#>|]+/g, " ").replace(/\s+/g, " ").trim().slice(0, Uv), $v = ({
31855
+ }, U4 = 4e3, H4 = (e) => (typeof e == "string" ? e : "").replace(/<[^>]*>/g, " ").replace(/!\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/\[([^\]]+)\]\([^)]*\)/g, "$1").replace(/[`*_~#>|]+/g, " ").replace(/\s+/g, " ").trim().slice(0, U4), $4 = ({
31856
31856
  message: e,
31857
31857
  announcementKey: t
31858
31858
  }) => {
@@ -31864,7 +31864,7 @@ const Tl = ({
31864
31864
  clearTimeout(i), clearTimeout(s);
31865
31865
  };
31866
31866
  }, [e, t]), /* @__PURE__ */ y("span", { className: `${w}-visually-hidden`, role: "status", "aria-atomic": "true", children: n });
31867
- }, zv = () => {
31867
+ }, z4 = () => {
31868
31868
  const { groupedMessages: e } = $t(), n = e.flatMap(
31869
31869
  (r) => {
31870
31870
  var i;
@@ -31872,13 +31872,13 @@ const Tl = ({
31872
31872
  }
31873
31873
  ).reverse().find((r) => r.name === "inquiry" && !r.bypassHandlers);
31874
31874
  return /* @__PURE__ */ y(
31875
- $v,
31875
+ $4,
31876
31876
  {
31877
- message: n ? Hv(n.message) : "",
31877
+ message: n ? H4(n.message) : "",
31878
31878
  announcementKey: n == null ? void 0 : n.id
31879
31879
  }
31880
31880
  );
31881
- }, qv = ({
31881
+ }, q4 = ({
31882
31882
  isOpen: e
31883
31883
  } = {}) => {
31884
31884
  const { messages: t } = Yn(), { autoScroll: n } = xe(), r = Ne(null);
@@ -31890,7 +31890,7 @@ const Tl = ({
31890
31890
  }, [t, n]), Oe(() => {
31891
31891
  e && r.current && r.current.scrollIntoView(!0);
31892
31892
  }, [e]), r;
31893
- }, Vv = {
31893
+ }, V4 = {
31894
31894
  display: "flex",
31895
31895
  justifyContent: "flex-start",
31896
31896
  paddingBottom: "1rem"
@@ -31901,20 +31901,20 @@ const Tl = ({
31901
31901
  handleSuggestionClick: r,
31902
31902
  loadingIndicatorStyle: i
31903
31903
  }) => {
31904
- const s = qv({ isOpen: e });
31904
+ const s = q4({ isOpen: e });
31905
31905
  return /* @__PURE__ */ re(Ut, { children: [
31906
31906
  /* @__PURE__ */ y(
31907
- Bv,
31907
+ B4,
31908
31908
  {
31909
31909
  isWidgetStandalone: t,
31910
31910
  handleSuggestionClick: r
31911
31911
  }
31912
31912
  ),
31913
- /* @__PURE__ */ y(zv, {}),
31914
- n && /* @__PURE__ */ y("div", { style: P(P({}, Vv), i), children: /* @__PURE__ */ y(ga, {}) }),
31913
+ /* @__PURE__ */ y(z4, {}),
31914
+ n && /* @__PURE__ */ y("div", { style: P(P({}, V4), i), children: /* @__PURE__ */ y(ga, {}) }),
31915
31915
  /* @__PURE__ */ y("div", { ref: s })
31916
31916
  ] });
31917
- }, Yv = () => {
31917
+ }, Y4 = () => {
31918
31918
  var g, T;
31919
31919
  const { themeClassName: e, globalClassName: t, themeVariables: n, messageAlignment: r } = xe(), {
31920
31920
  copilot: i,
@@ -31985,7 +31985,7 @@ const Tl = ({
31985
31985
  }, PE = (e) => {
31986
31986
  var u;
31987
31987
  const { children: t, disabled: n } = e, [r, i] = Te((u = e.container) == null ? void 0 : u.current), s = FE(
31988
- Gv,
31988
+ G4,
31989
31989
  () => !1,
31990
31990
  () => !0
31991
31991
  ), { getRootNode: o } = pa();
@@ -31995,21 +31995,21 @@ const Tl = ({
31995
31995
  return (c = e.container) == null ? void 0 : c.current;
31996
31996
  });
31997
31997
  }, [e.container]), s || n) return /* @__PURE__ */ y(Ut, { children: t });
31998
- const a = r != null ? r : jv(o);
31998
+ const a = r != null ? r : j4(o);
31999
31999
  return /* @__PURE__ */ y(Ut, { children: bh.map(t, (c) => mo(c, a)) });
32000
- }, jv = (e) => {
32000
+ }, j4 = (e) => {
32001
32001
  const t = e == null ? void 0 : e(), n = t.getRootNode();
32002
32002
  return vr(n) ? n : wn(t).body;
32003
- }, Gv = () => () => {
32004
- }, Wv = [
32003
+ }, G4 = () => () => {
32004
+ }, W4 = [
32005
32005
  "toggleDialogPosition",
32006
32006
  "minimize",
32007
32007
  "clearChat"
32008
- ], Xv = [
32008
+ ], X4 = [
32009
32009
  "toggleFullscreen",
32010
32010
  "minimize",
32011
32011
  "clearChat"
32012
- ], Kv = () => {
32012
+ ], K4 = () => {
32013
32013
  var v, $;
32014
32014
  const { themeClassName: e, globalClassName: t, themeVariables: n, messageAlignment: r, headerConfig: i } = xe(), { mode: s, status: o, dialogPosition: a, isDialogFullHeight: u, dialogWidth: c } = Xt(), l = Cc(), d = je(), {
32015
32015
  copilot: p,
@@ -32064,7 +32064,7 @@ const Tl = ({
32064
32064
  Zg,
32065
32065
  {
32066
32066
  componentType: "dialog",
32067
- overflowActions: Wv,
32067
+ overflowActions: W4,
32068
32068
  onClearChat: I,
32069
32069
  onClose: j
32070
32070
  }
@@ -32114,7 +32114,7 @@ const Tl = ({
32114
32114
  ) })
32115
32115
  }
32116
32116
  ) : /* @__PURE__ */ y("div", { children: (v = d.loading) == null ? void 0 : v.loadingCopilot });
32117
- }, Qv = () => {
32117
+ }, Q4 = () => {
32118
32118
  var j, v;
32119
32119
  const { themeClassName: e, globalClassName: t, themeVariables: n, messageAlignment: r, headerConfig: i } = xe(), { mode: s, status: o, isModalFullscreen: a } = Xt(), {
32120
32120
  copilot: u,
@@ -32184,7 +32184,7 @@ const Tl = ({
32184
32184
  Zg,
32185
32185
  {
32186
32186
  componentType: "modal",
32187
- overflowActions: Xv,
32187
+ overflowActions: X4,
32188
32188
  onClearChat: g,
32189
32189
  onClose: B
32190
32190
  }
@@ -32238,12 +32238,12 @@ const Tl = ({
32238
32238
  ) })
32239
32239
  }
32240
32240
  ) : /* @__PURE__ */ y("div", { children: (j = I.loading) == null ? void 0 : j.loadingCopilot }) : null;
32241
- }, Jv = () => {
32241
+ }, J4 = () => {
32242
32242
  const e = Xt(), {
32243
32243
  status: { type: t, isMinimized: n }
32244
32244
  } = e || { status: {} };
32245
- return n ? /* @__PURE__ */ y(H2, {}) : t === "dialog" ? /* @__PURE__ */ y(Kv, {}) : t === "modal" ? /* @__PURE__ */ y(Qv, {}) : /* @__PURE__ */ y(Yv, {});
32246
- }, Zv = () => {
32245
+ return n ? /* @__PURE__ */ y(H2, {}) : t === "dialog" ? /* @__PURE__ */ y(K4, {}) : t === "modal" ? /* @__PURE__ */ y(Q4, {}) : /* @__PURE__ */ y(Y4, {});
32246
+ }, Z4 = () => {
32247
32247
  const { setIsOpen: e, setIsInline: t, setElementId: n, setEntryType: r, setParams: i } = Sc();
32248
32248
  Oe(() => {
32249
32249
  const s = (o) => {
@@ -32254,7 +32254,7 @@ const Tl = ({
32254
32254
  f_(s);
32255
32255
  };
32256
32256
  }, [e, t, n, r, i]);
32257
- }, e4 = () => {
32257
+ }, ev = () => {
32258
32258
  const { copilot: e, connected: t } = $t(), { entryType: n, activePromptsId: r, params: i } = Vn(), {
32259
32259
  setIsInitialized: s,
32260
32260
  setActivePromptsId: o,
@@ -32262,7 +32262,7 @@ const Tl = ({
32262
32262
  setResponseMessage: u,
32263
32263
  setIsResponseLoading: c
32264
32264
  } = Sc(), { getCopilotSuggestions: l } = im();
32265
- Zv();
32265
+ Z4();
32266
32266
  const d = se(
32267
32267
  (E) => {
32268
32268
  if (!n || !E) return;
@@ -32297,7 +32297,7 @@ const Tl = ({
32297
32297
  }, NE = (e) => {
32298
32298
  const { mode: t } = xe(), n = je(), r = t === "messaging" ? n.prompts.placeholderAskAQuestion : n.prompts.placeholderAskCopilot;
32299
32299
  return e || r;
32300
- }, t4 = ({
32300
+ }, tv = ({
32301
32301
  onSubmit: e,
32302
32302
  disabled: t = !1
32303
32303
  }) => {
@@ -32352,7 +32352,7 @@ const Tl = ({
32352
32352
  ]
32353
32353
  }
32354
32354
  );
32355
- }, n4 = () => {
32355
+ }, nv = () => {
32356
32356
  const { globalClassName: e } = xe(), { placeholder: t } = Vn(), n = NE(t);
32357
32357
  return /* @__PURE__ */ re("div", { className: D(e, `${w}-prompts-header`), children: [
32358
32358
  /* @__PURE__ */ y(
@@ -32386,7 +32386,7 @@ const Tl = ({
32386
32386
  ]
32387
32387
  }
32388
32388
  );
32389
- }, r4 = ({
32389
+ }, rv = ({
32390
32390
  label: e,
32391
32391
  disabled: t = !1
32392
32392
  }) => {
@@ -32399,7 +32399,7 @@ const Tl = ({
32399
32399
  onClick: () => zn(!0)
32400
32400
  }
32401
32401
  );
32402
- }, i4 = ({
32402
+ }, iv = ({
32403
32403
  sendCopilotPrompt: e
32404
32404
  }) => {
32405
32405
  var _, g;
@@ -32427,9 +32427,9 @@ const Tl = ({
32427
32427
  },
32428
32428
  T
32429
32429
  )),
32430
- m && /* @__PURE__ */ y(r4, { label: o, disabled: r })
32430
+ m && /* @__PURE__ */ y(rv, { label: o, disabled: r })
32431
32431
  ] });
32432
- }, s4 = () => {
32432
+ }, sv = () => {
32433
32433
  const { globalClassName: e } = xe(), { isInline: t, userPrompt: n } = Vn();
32434
32434
  return !n || !t ? null : /* @__PURE__ */ y(
32435
32435
  "div",
@@ -32438,7 +32438,7 @@ const Tl = ({
32438
32438
  children: /* @__PURE__ */ y("p", { className: D(e, `${w}-prompts-user-message`), children: n })
32439
32439
  }
32440
32440
  );
32441
- }, o4 = () => {
32441
+ }, ov = () => {
32442
32442
  const { globalClassName: e, openLinksInNewTab: t, onNavigate: n } = xe(), { isInline: r, responseMessage: i, isResponseLoading: s } = Vn();
32443
32443
  if (!r || !i && !s) return null;
32444
32444
  if (s)
@@ -32464,7 +32464,7 @@ const Tl = ({
32464
32464
  )
32465
32465
  }
32466
32466
  );
32467
- }, a4 = () => {
32467
+ }, av = () => {
32468
32468
  const { globalClassName: e, themeVariables: t } = xe(), { connected: n, copilot: r } = $t(), { handleCopilotRequestAck: i } = Mr(), {
32469
32469
  status: { isOpen: s }
32470
32470
  } = Xt(), {
@@ -32539,9 +32539,9 @@ const Tl = ({
32539
32539
  className: D(e, `${w}-prompts-extension-container`),
32540
32540
  style: t,
32541
32541
  children: [
32542
- p && /* @__PURE__ */ y(t4, { onSubmit: k }),
32543
- !p && /* @__PURE__ */ y(n4, {}),
32544
- h && /* @__PURE__ */ y(i4, { sendCopilotPrompt: k }),
32542
+ p && /* @__PURE__ */ y(tv, { onSubmit: k }),
32543
+ !p && /* @__PURE__ */ y(nv, {}),
32544
+ h && /* @__PURE__ */ y(iv, { sendCopilotPrompt: k }),
32545
32545
  /* @__PURE__ */ re(
32546
32546
  "div",
32547
32547
  {
@@ -32550,8 +32550,8 @@ const Tl = ({
32550
32550
  `${w}-prompts-extension-messages-container`
32551
32551
  ),
32552
32552
  children: [
32553
- /* @__PURE__ */ y(s4, {}),
32554
- /* @__PURE__ */ y(o4, {})
32553
+ /* @__PURE__ */ y(sv, {}),
32554
+ /* @__PURE__ */ y(ov, {})
32555
32555
  ]
32556
32556
  }
32557
32557
  )
@@ -32560,16 +32560,16 @@ const Tl = ({
32560
32560
  ),
32561
32561
  T
32562
32562
  );
32563
- }, u4 = () => /* @__PURE__ */ re(Ut, { children: [
32564
- /* @__PURE__ */ y(e4, {}),
32565
- /* @__PURE__ */ y(a4, {})
32566
- ] }), c4 = (e) => /* @__PURE__ */ re(P2, V(P({}, e), { children: [
32567
- /* @__PURE__ */ y(Jv, {}),
32568
- /* @__PURE__ */ y(u4, {})
32569
- ] })), $4 = "1.62.3", mh = /* @__PURE__ */ new WeakMap(), IE = (e, t) => {
32563
+ }, uv = () => /* @__PURE__ */ re(Ut, { children: [
32564
+ /* @__PURE__ */ y(ev, {}),
32565
+ /* @__PURE__ */ y(av, {})
32566
+ ] }), cv = (e) => /* @__PURE__ */ re(P2, V(P({}, e), { children: [
32567
+ /* @__PURE__ */ y(J4, {}),
32568
+ /* @__PURE__ */ y(uv, {})
32569
+ ] })), $v = "1.62.4", mh = /* @__PURE__ */ new WeakMap(), IE = (e, t) => {
32570
32570
  let n = mh.get(e);
32571
- n || (n = BE(e), mh.set(e, n)), n.render(/* @__PURE__ */ y(c4, P({}, t)));
32572
- }, l4 = (r) => {
32571
+ n || (n = BE(e), mh.set(e, n)), n.render(/* @__PURE__ */ y(cv, P({}, t)));
32572
+ }, lv = (r) => {
32573
32573
  var i = r, {
32574
32574
  elementId: e,
32575
32575
  timeout: t = 5e3
@@ -32594,7 +32594,7 @@ const Tl = ({
32594
32594
  `Element with id: ${e} not found within ${t} milliseconds, stopping observation`
32595
32595
  );
32596
32596
  }, t), a;
32597
- }, z4 = (r) => {
32597
+ }, zv = (r) => {
32598
32598
  var i = r, {
32599
32599
  timeout: e,
32600
32600
  elementId: t
@@ -32608,11 +32608,11 @@ const Tl = ({
32608
32608
  }
32609
32609
  const s = document.getElementById(t);
32610
32610
  if (!s) {
32611
- ti(!0, "warn", "Container element not found for id:", t), ti(!0, "warn", "Beginning observation for element"), l4(P({ elementId: t, timeout: e }, n));
32611
+ ti(!0, "warn", "Container element not found for id:", t), ti(!0, "warn", "Beginning observation for element"), lv(P({ elementId: t, timeout: e }, n));
32612
32612
  return;
32613
32613
  }
32614
32614
  IE(s, n);
32615
- }, q4 = {
32615
+ }, qv = {
32616
32616
  search: I_,
32617
32617
  browse: o_,
32618
32618
  pdp: {
@@ -32636,7 +32636,7 @@ const Tl = ({
32636
32636
  getProductViewPrompts: g_
32637
32637
  },
32638
32638
  session: S_
32639
- }, V4 = () => Object.freeze({
32639
+ }, Vv = () => Object.freeze({
32640
32640
  search: Object.freeze(qe.state),
32641
32641
  browse: Object.freeze(Me.state),
32642
32642
  pdp: Object.freeze(dn.state),
@@ -32645,16 +32645,16 @@ const Tl = ({
32645
32645
  entryType: Se.entryType
32646
32646
  });
32647
32647
  export {
32648
- Kv as CopilotDialog,
32649
- Yv as CopilotEmbed,
32650
- Qv as CopilotModal,
32651
- c4 as CopilotWidget,
32648
+ K4 as CopilotDialog,
32649
+ Y4 as CopilotEmbed,
32650
+ Q4 as CopilotModal,
32651
+ cv as CopilotWidget,
32652
32652
  P2 as CopilotWidgetProvider,
32653
- q4 as eventHandlers,
32654
- z4 as injectCopilotWidget,
32653
+ qv as eventHandlers,
32654
+ zv as injectCopilotWidget,
32655
32655
  mb as resolveTheme,
32656
- V4 as state,
32657
- b4 as themes,
32656
+ Vv as state,
32657
+ bv as themes,
32658
32658
  Yn as useCopilot,
32659
- $4 as version
32659
+ $v as version
32660
32660
  };