@yext/visual-editor 0.0.48 → 0.0.49

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.
@@ -153,7 +153,7 @@ const $Je = () => {
153
153
  "useTemplateProps must be used within VisualEditorProvider"
154
154
  );
155
155
  return e;
156
- }, ve = () => {
156
+ }, ye = () => {
157
157
  const e = k.useContext($h);
158
158
  if (!e)
159
159
  throw new Error("useDocument must be used within VisualEditorProvider");
@@ -219,14 +219,14 @@ function Mke() {
219
219
  var S = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
220
220
  function w(N) {
221
221
  {
222
- for (var Q = arguments.length, ae = new Array(Q > 1 ? Q - 1 : 0), ye = 1; ye < Q; ye++)
223
- ae[ye - 1] = arguments[ye];
222
+ for (var Q = arguments.length, ae = new Array(Q > 1 ? Q - 1 : 0), ve = 1; ve < Q; ve++)
223
+ ae[ve - 1] = arguments[ve];
224
224
  C("error", N, ae);
225
225
  }
226
226
  }
227
227
  function C(N, Q, ae) {
228
228
  {
229
- var ye = S.ReactDebugCurrentFrame, Me = ye.getStackAddendum();
229
+ var ve = S.ReactDebugCurrentFrame, Me = ve.getStackAddendum();
230
230
  Me !== "" && (Q += "%s", ae = ae.concat([Me]));
231
231
  var He = ae.map(function(Ae) {
232
232
  return String(Ae);
@@ -244,9 +244,9 @@ function Mke() {
244
244
  N.$$typeof === z || N.getModuleId !== void 0));
245
245
  }
246
246
  function B(N, Q, ae) {
247
- var ye = N.displayName;
248
- if (ye)
249
- return ye;
247
+ var ve = N.displayName;
248
+ if (ve)
249
+ return ve;
250
250
  var Me = Q.displayName || Q.name || "";
251
251
  return Me !== "" ? ae + "(" + Me + ")" : ae;
252
252
  }
@@ -285,8 +285,8 @@ function Mke() {
285
285
  case l:
286
286
  return B(N, N.render, "ForwardRef");
287
287
  case f:
288
- var ye = N.displayName || null;
289
- return ye !== null ? ye : ee(N.type) || "Memo";
288
+ var ve = N.displayName || null;
289
+ return ve !== null ? ve : ee(N.type) || "Memo";
290
290
  case h: {
291
291
  var Me = N, He = Me._payload, Ae = Me._init;
292
292
  try {
@@ -367,8 +367,8 @@ function Mke() {
367
367
  try {
368
368
  throw Error();
369
369
  } catch (Me) {
370
- var ye = Me.stack.trim().match(/\n( *(at )?)/);
371
- X = ye && ye[1] || "";
370
+ var ve = Me.stack.trim().match(/\n( *(at )?)/);
371
+ X = ve && ve[1] || "";
372
372
  }
373
373
  return `
374
374
  ` + X + N;
@@ -387,7 +387,7 @@ function Mke() {
387
387
  if (ae !== void 0)
388
388
  return ae;
389
389
  }
390
- var ye;
390
+ var ve;
391
391
  oe = !0;
392
392
  var Me = Error.prepareStackTrace;
393
393
  Error.prepareStackTrace = void 0;
@@ -406,14 +406,14 @@ function Mke() {
406
406
  try {
407
407
  Reflect.construct(Ae, []);
408
408
  } catch (Re) {
409
- ye = Re;
409
+ ve = Re;
410
410
  }
411
411
  Reflect.construct(N, [], Ae);
412
412
  } else {
413
413
  try {
414
414
  Ae.call();
415
415
  } catch (Re) {
416
- ye = Re;
416
+ ve = Re;
417
417
  }
418
418
  N.call(Ae.prototype);
419
419
  }
@@ -421,14 +421,14 @@ function Mke() {
421
421
  try {
422
422
  throw Error();
423
423
  } catch (Re) {
424
- ye = Re;
424
+ ve = Re;
425
425
  }
426
426
  N();
427
427
  }
428
428
  } catch (Re) {
429
- if (Re && ye && typeof Re.stack == "string") {
429
+ if (Re && ve && typeof Re.stack == "string") {
430
430
  for (var Te = Re.stack.split(`
431
- `), se = ye.stack.split(`
431
+ `), se = ve.stack.split(`
432
432
  `), P = Te.length - 1, q = se.length - 1; P >= 1 && q >= 0 && Te[P] !== se[q]; )
433
433
  q--;
434
434
  for (; P >= 1 && q >= 0; P--, q--)
@@ -477,7 +477,7 @@ function Mke() {
477
477
  case f:
478
478
  return Bt(N.type, Q, ae);
479
479
  case h: {
480
- var ye = N, Me = ye._payload, He = ye._init;
480
+ var ve = N, Me = ve._payload, He = ve._init;
481
481
  try {
482
482
  return Bt(He(Me), Q, ae);
483
483
  } catch {
@@ -494,7 +494,7 @@ function Mke() {
494
494
  } else
495
495
  dn.setExtraStackFrame(null);
496
496
  }
497
- function bi(N, Q, ae, ye, Me) {
497
+ function bi(N, Q, ae, ve, Me) {
498
498
  {
499
499
  var He = Function.call.bind(Xt);
500
500
  for (var Ae in N)
@@ -502,14 +502,14 @@ function Mke() {
502
502
  var Te = void 0;
503
503
  try {
504
504
  if (typeof N[Ae] != "function") {
505
- var se = Error((ye || "React class") + ": " + ae + " type `" + Ae + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof N[Ae] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
505
+ var se = Error((ve || "React class") + ": " + ae + " type `" + Ae + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof N[Ae] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
506
506
  throw se.name = "Invariant Violation", se;
507
507
  }
508
- Te = N[Ae](Q, Ae, ye, ae, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
508
+ Te = N[Ae](Q, Ae, ve, ae, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
509
509
  } catch (P) {
510
510
  Te = P;
511
511
  }
512
- Te && !(Te instanceof Error) && (Ot(Me), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ye || "React class", ae, Ae, typeof Te), Ot(null)), Te instanceof Error && !(Te.message in cn) && (cn[Te.message] = !0, Ot(Me), w("Failed %s type: %s", ae, Te.message), Ot(null));
512
+ Te && !(Te instanceof Error) && (Ot(Me), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ve || "React class", ae, Ae, typeof Te), Ot(null)), Te instanceof Error && !(Te.message in cn) && (cn[Te.message] = !0, Ot(Me), w("Failed %s type: %s", ae, Te.message), Ot(null));
513
513
  }
514
514
  }
515
515
  }
@@ -584,7 +584,7 @@ function Mke() {
584
584
  });
585
585
  }
586
586
  }
587
- var Cn = function(N, Q, ae, ye, Me, He, Ae) {
587
+ var Cn = function(N, Q, ae, ve, Me, He, Ae) {
588
588
  var Te = {
589
589
  // This tag allows us to uniquely identify this as a React Element
590
590
  $$typeof: t,
@@ -605,7 +605,7 @@ function Mke() {
605
605
  configurable: !1,
606
606
  enumerable: !1,
607
607
  writable: !1,
608
- value: ye
608
+ value: ve
609
609
  }), Object.defineProperty(Te, "_source", {
610
610
  configurable: !1,
611
611
  enumerable: !1,
@@ -613,7 +613,7 @@ function Mke() {
613
613
  value: Me
614
614
  }), Object.freeze && (Object.freeze(Te.props), Object.freeze(Te)), Te;
615
615
  };
616
- function vi(N, Q, ae, ye, Me) {
616
+ function vi(N, Q, ae, ve, Me) {
617
617
  {
618
618
  var He, Ae = {}, Te = null, se = null;
619
619
  ae !== void 0 && (ft(ae), Te = "" + ae), va(Q) && (ft(Q.key), Te = "" + Q.key), no(Q) && (se = Q.ref, aa(Q, Me));
@@ -628,7 +628,7 @@ function Mke() {
628
628
  var q = typeof N == "function" ? N.displayName || N.name || "Unknown" : N;
629
629
  Te && St(Ae, q), se && Mn(Ae, q);
630
630
  }
631
- return Cn(N, Te, se, Me, ye, $n.current, Ae);
631
+ return Cn(N, Te, se, Me, ve, $n.current, Ae);
632
632
  }
633
633
  }
634
634
  var ki = S.ReactCurrentOwner, ia = S.ReactDebugCurrentFrame;
@@ -681,8 +681,8 @@ Check the top-level render call using <` + ae + ">.");
681
681
  if (ce[ae])
682
682
  return;
683
683
  ce[ae] = !0;
684
- var ye = "";
685
- N && N._owner && N._owner !== ki.current && (ye = " It was passed a child from " + ee(N._owner.type) + "."), Qt(N), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ae, ye), Qt(null);
684
+ var ve = "";
685
+ N && N._owner && N._owner !== ki.current && (ve = " It was passed a child from " + ee(N._owner.type) + "."), Qt(N), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ae, ve), Qt(null);
686
686
  }
687
687
  }
688
688
  function $t(N, Q) {
@@ -691,8 +691,8 @@ Check the top-level render call using <` + ae + ">.");
691
691
  return;
692
692
  if (Ga(N))
693
693
  for (var ae = 0; ae < N.length; ae++) {
694
- var ye = N[ae];
695
- fn(ye) && Ue(ye, Q);
694
+ var ve = N[ae];
695
+ fn(ve) && Ue(ve, Q);
696
696
  }
697
697
  else if (fn(N))
698
698
  N._store && (N._store.validated = !0);
@@ -719,8 +719,8 @@ Check the top-level render call using <` + ae + ">.");
719
719
  else
720
720
  return;
721
721
  if (ae) {
722
- var ye = ee(Q);
723
- bi(ae, N.props, "prop", ye, N);
722
+ var ve = ee(Q);
723
+ bi(ae, N.props, "prop", ve, N);
724
724
  } else if (Q.PropTypes !== void 0 && !Si) {
725
725
  Si = !0;
726
726
  var Me = ee(Q);
@@ -732,9 +732,9 @@ Check the top-level render call using <` + ae + ">.");
732
732
  function pn(N) {
733
733
  {
734
734
  for (var Q = Object.keys(N.props), ae = 0; ae < Q.length; ae++) {
735
- var ye = Q[ae];
736
- if (ye !== "children" && ye !== "key") {
737
- Qt(N), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ye), Qt(null);
735
+ var ve = Q[ae];
736
+ if (ve !== "children" && ve !== "key") {
737
+ Qt(N), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ve), Qt(null);
738
738
  break;
739
739
  }
740
740
  }
@@ -742,7 +742,7 @@ Check the top-level render call using <` + ae + ">.");
742
742
  }
743
743
  }
744
744
  var gn = {};
745
- function jt(N, Q, ae, ye, Me, He) {
745
+ function jt(N, Q, ae, ve, Me, He) {
746
746
  {
747
747
  var Ae = _(N);
748
748
  if (!Ae) {
@@ -759,7 +759,7 @@ Check the top-level render call using <` + ae + ">.");
759
759
  if (Ae) {
760
760
  var ie = Q.children;
761
761
  if (ie !== void 0)
762
- if (ye)
762
+ if (ve)
763
763
  if (Ga(ie)) {
764
764
  for (var Ie = 0; Ie < ie.length; Ie++)
765
765
  $t(ie[Ie], N);
@@ -31315,7 +31315,7 @@ function pme() {
31315
31315
  ie.call(t, P, q, Le);
31316
31316
  });
31317
31317
  }
31318
- const ye = function(P) {
31318
+ const ve = function(P) {
31319
31319
  let q = null;
31320
31320
  if (ae(B.beforeSanitizeElements, P, null), N(P))
31321
31321
  return gt(P), !0;
@@ -31441,7 +31441,7 @@ function pme() {
31441
31441
  let q = null;
31442
31442
  const ie = Ys(P);
31443
31443
  for (ae(B.beforeSanitizeShadowDOM, P, null); q = ie.nextNode(); )
31444
- ae(B.uponSanitizeShadowNode, q, null), ye(q), Ae(q), q.content instanceof o && se(q.content);
31444
+ ae(B.uponSanitizeShadowNode, q, null), ve(q), Ae(q), q.content instanceof o && se(q.content);
31445
31445
  ae(B.afterSanitizeShadowDOM, P, null);
31446
31446
  };
31447
31447
  return t.sanitize = function(se) {
@@ -31472,7 +31472,7 @@ function pme() {
31472
31472
  q && Xt && gt(q.firstChild);
31473
31473
  const Re = Ys(ya ? se : q);
31474
31474
  for (; Ie = Re.nextNode(); )
31475
- ye(Ie), Ae(Ie), Ie.content instanceof o && Te(Ie.content);
31475
+ ve(Ie), Ae(Ie), Ie.content instanceof o && Te(Ie.content);
31476
31476
  if (ya)
31477
31477
  return se;
31478
31478
  if (cn) {
@@ -33169,7 +33169,7 @@ const g3e = {
33169
33169
  onSelect: t,
33170
33170
  isOpen: n
33171
33171
  }) => {
33172
- const a = ve(), [i, o] = y.useState();
33172
+ const a = ye(), [i, o] = y.useState();
33173
33173
  return y.useEffect(() => {
33174
33174
  if (n && i === void 0) {
33175
33175
  const r = {
@@ -33383,7 +33383,7 @@ const C0 = {
33383
33383
  }, k3e = {
33384
33384
  type: "custom",
33385
33385
  render: ({ onChange: e, value: t = [], id: n }) => {
33386
- const a = ve(), { t: i } = Zn(), o = (a == null ? void 0 : a.locale) ?? "en", [r, s] = Ee(t), l = (h, p, m) => {
33386
+ const a = ye(), { t: i } = Zn(), o = (a == null ? void 0 : a.locale) ?? "en", [r, s] = Ee(t), l = (h, p, m) => {
33387
33387
  const g = [...r], b = g[h];
33388
33388
  g[h] = typeof b == "object" && !Array.isArray(b) ? { ...b, [p]: m, hasLocalizedValue: "true" } : { [p]: m, hasLocalizedValue: "true" }, s(g), e(g);
33389
33389
  }, d = (h) => {
@@ -39826,7 +39826,7 @@ const SPe = sbe(g0e), lbe = {
39826
39826
  }
39827
39827
  ) })
39828
39828
  }, CPe = () => {
39829
- const { t: e, i18n: t } = Zn(), { document: n } = ve(), a = mt(() => ct(
39829
+ const { t: e, i18n: t } = Zn(), { document: n } = ye(), a = mt(() => ct(
39830
39830
  v("title", "Title"),
39831
39831
  { types: ["type.string"] }
39832
39832
  ), []), i = mt(() => gr(
@@ -39905,7 +39905,7 @@ const SPe = sbe(g0e), lbe = {
39905
39905
  }
39906
39906
  ) })
39907
39907
  }, LPe = () => {
39908
- const { t: e, i18n: t } = Zn(), { document: n } = ve(), a = mt(() => ct(
39908
+ const { t: e, i18n: t } = Zn(), { document: n } = ye(), a = mt(() => ct(
39909
39909
  v("name", "Name"),
39910
39910
  { types: ["type.string"] }
39911
39911
  ), []), i = mt(() => ct(
@@ -39978,7 +39978,7 @@ const SPe = sbe(g0e), lbe = {
39978
39978
  }
39979
39979
  ) })
39980
39980
  }, NPe = () => {
39981
- const { t: e, i18n: t } = Zn(), { document: n } = ve(), a = mt(() => ct(
39981
+ const { t: e, i18n: t } = Zn(), { document: n } = ye(), a = mt(() => ct(
39982
39982
  v("fields.name", "Name"),
39983
39983
  { types: ["type.string"] }
39984
39984
  ), []), i = mt(() => ct(
@@ -40039,7 +40039,7 @@ const SPe = sbe(g0e), lbe = {
40039
40039
  }
40040
40040
  ) })
40041
40041
  }, PPe = () => {
40042
- const { t: e, i18n: t } = Zn(), { document: n } = ve(), a = mt(() => ct(v("fields.question", "Question"), {
40042
+ const { t: e, i18n: t } = Zn(), { document: n } = ye(), a = mt(() => ct(v("fields.question", "Question"), {
40043
40043
  types: ["type.string"]
40044
40044
  }), []), i = mt(() => gr(v("fields.answer", "Answer")), []);
40045
40045
  return {
@@ -40088,7 +40088,7 @@ const SPe = sbe(g0e), lbe = {
40088
40088
  }
40089
40089
  ) })
40090
40090
  }, jPe = () => {
40091
- const { t: e, i18n: t } = Zn(), { document: n } = ve(), a = mt(() => ct(
40091
+ const { t: e, i18n: t } = Zn(), { document: n } = ye(), a = mt(() => ct(
40092
40092
  v("fields.name", "Name"),
40093
40093
  { types: ["type.string"] }
40094
40094
  ), []), i = mt(() => ct(
@@ -40149,7 +40149,7 @@ const SPe = sbe(g0e), lbe = {
40149
40149
  }
40150
40150
  ) })
40151
40151
  }, RPe = () => {
40152
- const { t: e, i18n: t } = Zn(), { document: n } = ve(), a = mt(() => ct(
40152
+ const { t: e, i18n: t } = Zn(), { document: n } = ye(), a = mt(() => ct(
40153
40153
  v("fields.contributorName", "Contributor Name"),
40154
40154
  { types: ["type.string"] }
40155
40155
  ), []), i = mt(() => gr(
@@ -40481,7 +40481,7 @@ const SPe = sbe(g0e), lbe = {
40481
40481
  ), { i18n: o } = he(), r = o.language;
40482
40482
  if (!i)
40483
40483
  return;
40484
- const l = ((d = e.types) == null ? void 0 : d.includes("type.string")) ? /* @__PURE__ */ c.jsx("div", { className: "ve-pt-3", children: /* @__PURE__ */ c.jsx(
40484
+ const l = ((d = e.types) == null ? void 0 : d.includes("type.string")) && !e.includeListsOnly ? /* @__PURE__ */ c.jsx("div", { className: "ve-pt-3", children: /* @__PURE__ */ c.jsx(
40485
40485
  p0e,
40486
40486
  {
40487
40487
  value: ((u = n == null ? void 0 : n.constantValue) == null ? void 0 : u[r]) ?? "",
@@ -49583,7 +49583,7 @@ const Vs = (e) => {
49583
49583
  }, bt = k.forwardRef(
49584
49584
  ({ className: e, background: t, as: n, children: a, ...i }, o) => {
49585
49585
  var h;
49586
- const r = ve(), s = n ?? "div", l = t ?? be.background1.value;
49586
+ const r = ye(), s = n ?? "div", l = t ?? be.background1.value;
49587
49587
  let d, u;
49588
49588
  if (typeof window < "u" && typeof window.document < "u") {
49589
49589
  const p = window.document.getElementById(
@@ -49969,7 +49969,7 @@ const hKe = {
49969
49969
  }
49970
49970
  )
49971
49971
  }, pKe = ({ data: e, styles: t }) => {
49972
- const { i18n: n } = he(), a = n.language, i = ve(), o = Da(
49972
+ const { i18n: n } = he(), a = n.language, i = ye(), o = Da(
49973
49973
  Se(i, e.text, a),
49974
49974
  a
49975
49975
  ), r = {
@@ -50343,7 +50343,7 @@ const Kye = ({
50343
50343
  )
50344
50344
  }, SKe = ({ data: e, styles: t }) => {
50345
50345
  var b, S, w;
50346
- const { t: n, i18n: a } = he(), i = a.language, o = ve(), r = me(
50346
+ const { t: n, i18n: a } = he(), i = a.language, o = ye(), r = me(
50347
50347
  Se(
50348
50348
  o,
50349
50349
  e.info.headingText,
@@ -50809,7 +50809,7 @@ const Kye = ({
50809
50809
  sectionHeadingLevel: a,
50810
50810
  ctaVariant: i
50811
50811
  }) => {
50812
- const { i18n: o } = he(), { document: r } = ve();
50812
+ const { i18n: o } = he(), { document: r } = ye();
50813
50813
  return /* @__PURE__ */ c.jsxs(
50814
50814
  bt,
50815
50815
  {
@@ -50861,7 +50861,7 @@ const Kye = ({
50861
50861
  );
50862
50862
  }, CKe = (e) => {
50863
50863
  var d, u;
50864
- const { i18n: t } = he(), n = t.language, { data: a, styles: i } = e, o = ve(), r = Se(o, a.events, n), s = me(
50864
+ const { i18n: t } = he(), n = t.language, { data: a, styles: i } = e, o = ye(), r = Se(o, a.events, n), s = me(
50865
50865
  Se(o, a.heading, n),
50866
50866
  t.language
50867
50867
  ), l = (d = i == null ? void 0 : i.heading) != null && d.align ? {
@@ -51112,7 +51112,7 @@ const Kye = ({
51112
51112
  )
51113
51113
  }, AKe = ({ data: e, styles: t }) => {
51114
51114
  var p, m, g, b;
51115
- const { t: n, i18n: a } = he(), i = a.language, o = ve(), r = me(
51115
+ const { t: n, i18n: a } = he(), i = a.language, o = ye(), r = me(
51116
51116
  Se(
51117
51117
  o,
51118
51118
  e == null ? void 0 : e.businessName,
@@ -51515,7 +51515,7 @@ const Kye = ({
51515
51515
  );
51516
51516
  }, OKe = ({ data: e, styles: t }) => {
51517
51517
  var l, d;
51518
- const { i18n: n } = he(), a = n.language, i = ve(), o = Se(
51518
+ const { i18n: n } = he(), a = n.language, i = ye(), o = Se(
51519
51519
  i,
51520
51520
  e.insights,
51521
51521
  a
@@ -51840,7 +51840,7 @@ const Kye = ({
51840
51840
  contentEndpointIdEnvVar: n
51841
51841
  }) => {
51842
51842
  var b, S, w;
51843
- const a = ve(), { i18n: i } = he(), o = i.language, r = Se(
51843
+ const a = ye(), { i18n: i } = he(), o = i.language, r = Se(
51844
51844
  a,
51845
51845
  t == null ? void 0 : t.coordinate,
51846
51846
  o
@@ -52087,7 +52087,7 @@ const IKe = {
52087
52087
  sectionHeadingLevel: a,
52088
52088
  ctaVariant: i
52089
52089
  }) => {
52090
- const { i18n: o } = he(), { document: r } = ve();
52090
+ const { i18n: o } = he(), { document: r } = ye();
52091
52091
  return /* @__PURE__ */ c.jsxs(
52092
52092
  bt,
52093
52093
  {
@@ -52148,7 +52148,7 @@ const IKe = {
52148
52148
  );
52149
52149
  }, zKe = ({ data: e, styles: t }) => {
52150
52150
  var l, d;
52151
- const { i18n: n } = he(), a = n.language, i = ve(), o = Se(
52151
+ const { i18n: n } = he(), a = n.language, i = ye(), o = Se(
52152
52152
  i,
52153
52153
  e.products,
52154
52154
  a
@@ -52327,7 +52327,7 @@ const IKe = {
52327
52327
  )
52328
52328
  }, VKe = ({ data: e, styles: t }) => {
52329
52329
  var r, s;
52330
- const { i18n: n } = he(), a = ve(), i = Jhe(
52330
+ const { i18n: n } = he(), a = ye(), i = Jhe(
52331
52331
  a,
52332
52332
  e == null ? void 0 : e.promo,
52333
52333
  n.language
@@ -53392,7 +53392,7 @@ const Fu = "https://placehold.co/1000x570/png", po = ({
53392
53392
  data: e,
53393
53393
  styles: t
53394
53394
  }) => {
53395
- const { t: n, i18n: a } = he(), i = a.language, o = ve(), r = me(
53395
+ const { t: n, i18n: a } = he(), i = a.language, o = ye(), r = me(
53396
53396
  Se(o, e.heading, i),
53397
53397
  a.language
53398
53398
  ), l = (Se(o, e.images, i) || []).filter(
@@ -53652,7 +53652,7 @@ const Fu = "https://placehold.co/1000x570/png", po = ({
53652
53652
  )
53653
53653
  }, rYe = ({ data: e, styles: t }) => {
53654
53654
  var d, u, f, h;
53655
- const { i18n: n } = he(), a = n.language, i = ve(), o = me(
53655
+ const { i18n: n } = he(), a = n.language, i = ye(), o = me(
53656
53656
  Se(i, e == null ? void 0 : e.heading, a),
53657
53657
  n.language
53658
53658
  ), r = Se(i, e == null ? void 0 : e.faqs, a), s = Hc(), l = (d = t == null ? void 0 : t.heading) != null && d.align ? {
@@ -53780,7 +53780,7 @@ const Fu = "https://placehold.co/1000x570/png", po = ({
53780
53780
  )
53781
53781
  }, dYe = (e) => {
53782
53782
  var S, w, C;
53783
- const t = ve(), n = (S = t == null ? void 0 : t._env) == null ? void 0 : S.YEXT_VISUAL_EDITOR_REVIEWS_APP_API_KEY;
53783
+ const t = ye(), n = (S = t == null ? void 0 : t._env) == null ? void 0 : S.YEXT_VISUAL_EDITOR_REVIEWS_APP_API_KEY;
53784
53784
  if (!n)
53785
53785
  return console.warn(
53786
53786
  "Missing YEXT_VISUAL_EDITOR_REVIEWS_APP_API_KEY, unable to access reviews content endpoint."
@@ -53866,7 +53866,7 @@ const Fu = "https://placehold.co/1000x570/png", po = ({
53866
53866
  if (Array.isArray(e.comments) && e.comments.length > 0) {
53867
53867
  const o = e.comments[0].content, r = e.comments[0].commentDate;
53868
53868
  i = {
53869
- businessName: ve().name || "",
53869
+ businessName: ye().name || "",
53870
53870
  content: o,
53871
53871
  date: r,
53872
53872
  index: t
@@ -53880,7 +53880,7 @@ const Fu = "https://placehold.co/1000x570/png", po = ({
53880
53880
  ] })
53881
53881
  ] }) });
53882
53882
  }, eve = ({ author: e, date: t }) => {
53883
- const n = ve();
53883
+ const n = ye();
53884
53884
  return /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col gap-2", children: [
53885
53885
  /* @__PURE__ */ c.jsx(tt, { variant: "lg", className: "font-bold", children: e }),
53886
53886
  /* @__PURE__ */ c.jsx(
@@ -54155,7 +54155,7 @@ const Fu = "https://placehold.co/1000x570/png", po = ({
54155
54155
  styles: t
54156
54156
  }) => {
54157
54157
  var l, d;
54158
- const { i18n: n } = he(), a = n.language, i = ve(), o = Se(
54158
+ const { i18n: n } = he(), a = n.language, i = ye(), o = Se(
54159
54159
  i,
54160
54160
  e.testimonials,
54161
54161
  a
@@ -54409,7 +54409,7 @@ const Fu = "https://placehold.co/1000x570/png", po = ({
54409
54409
  ] });
54410
54410
  }, CYe = ({ data: e, styles: t }) => {
54411
54411
  var l, d;
54412
- const { i18n: n } = he(), a = n.language, i = ve(), o = Se(i, e.people, a), r = me(
54412
+ const { i18n: n } = he(), a = n.language, i = ye(), o = Se(i, e.people, a), r = me(
54413
54413
  Se(i, e.heading, a),
54414
54414
  n.language
54415
54415
  ), s = (l = t == null ? void 0 : t.heading) != null && l.align ? {
@@ -54806,7 +54806,7 @@ const NYe = {
54806
54806
  address: e,
54807
54807
  showGetDirections: t
54808
54808
  }) => {
54809
- const { t: n, i18n: a } = he(), i = ve(), o = Se(i, e, a.language), r = wh(
54809
+ const { t: n, i18n: a } = he(), i = ye(), o = Se(i, e, a.language), r = wh(
54810
54810
  o,
54811
54811
  void 0,
54812
54812
  void 0,
@@ -54869,7 +54869,7 @@ const NYe = {
54869
54869
  })
54870
54870
  }, ove = k.forwardRef(
54871
54871
  ({ text: e, ...t }, n) => {
54872
- const { t: a, i18n: i } = he(), o = ve();
54872
+ const { t: a, i18n: i } = he(), o = ye();
54873
54873
  return /* @__PURE__ */ c.jsx(
54874
54874
  le,
54875
54875
  {
@@ -54913,7 +54913,7 @@ const RYe = {
54913
54913
  variant: t,
54914
54914
  className: n
54915
54915
  }) => {
54916
- const { t: a, i18n: i } = he(), o = ve(), r = Se(o, e, i.language);
54916
+ const { t: a, i18n: i } = he(), o = ye(), r = Se(o, e, i.language);
54917
54917
  return /* @__PURE__ */ c.jsx(
54918
54918
  le,
54919
54919
  {
@@ -54967,7 +54967,7 @@ const RYe = {
54967
54967
  listLength: n
54968
54968
  }) => {
54969
54969
  var s;
54970
- const { t: a, i18n: i } = he(), o = ve();
54970
+ const { t: a, i18n: i } = he(), o = ye();
54971
54971
  let r = Se(
54972
54972
  o,
54973
54973
  e,
@@ -55032,7 +55032,7 @@ const RYe = {
55032
55032
  variant: e,
55033
55033
  coordinate: t
55034
55034
  }) => {
55035
- const { t: n, i18n: a } = he(), i = ve(), o = Se(
55035
+ const { t: n, i18n: a } = he(), i = ye(), o = Se(
55036
55036
  i,
55037
55037
  t,
55038
55038
  a.language
@@ -55077,7 +55077,7 @@ const RYe = {
55077
55077
  },
55078
55078
  render: (e) => /* @__PURE__ */ c.jsx(WYe, { ...e })
55079
55079
  }, rve = k.forwardRef(({ text: e, ...t }, n) => {
55080
- const a = ve(), { i18n: i } = he();
55080
+ const a = ye(), { i18n: i } = he();
55081
55081
  return /* @__PURE__ */ c.jsx(
55082
55082
  le,
55083
55083
  {
@@ -55157,7 +55157,7 @@ const GYe = {
55157
55157
  showAdditionalHoursText: a,
55158
55158
  alignment: i
55159
55159
  }) => {
55160
- const { t: o, i18n: r } = he(), s = ve(), l = Se(s, e, r.language), { additionalHoursText: d } = s;
55160
+ const { t: o, i18n: r } = he(), s = ye(), l = Se(s, e, r.language), { additionalHoursText: d } = s;
55161
55161
  return /* @__PURE__ */ c.jsxs("div", { className: `flex flex-col ${i}`, children: [
55162
55162
  l && /* @__PURE__ */ c.jsx(
55163
55163
  le,
@@ -55241,7 +55241,7 @@ const GYe = {
55241
55241
  showDayNames: i,
55242
55242
  dayOfWeekFormat: o
55243
55243
  }) => {
55244
- const r = ve(), { t: s, i18n: l } = he(), d = Se(r, e, l.language);
55244
+ const r = ye(), { t: s, i18n: l } = he(), d = Se(r, e, l.language);
55245
55245
  return d ? /* @__PURE__ */ c.jsx(
55246
55246
  le,
55247
55247
  {
@@ -55317,7 +55317,7 @@ const GYe = {
55317
55317
  aspectRatio: t,
55318
55318
  width: n
55319
55319
  }) => {
55320
- const { t: a, i18n: i } = he(), o = ve(), r = Se(
55320
+ const { t: a, i18n: i } = he(), o = ye(), r = Se(
55321
55321
  o,
55322
55322
  e,
55323
55323
  i.language
@@ -55413,7 +55413,7 @@ const sve = ({
55413
55413
  zoom: n = 14,
55414
55414
  mapStyle: a = "light-v11"
55415
55415
  }) => {
55416
- const { t: i, i18n: o } = he(), r = ve(), [s, l] = cZe(), d = Se(
55416
+ const { t: i, i18n: o } = he(), r = ye(), [s, l] = cZe(), d = Se(
55417
55417
  r,
55418
55418
  t,
55419
55419
  o.language
@@ -55477,7 +55477,7 @@ const sve = ({
55477
55477
  format: t,
55478
55478
  includeHyperlink: n
55479
55479
  }) => {
55480
- const { t: a, i18n: i } = he(), o = ve(), r = Se(
55480
+ const { t: a, i18n: i } = he(), o = ye(), r = Se(
55481
55481
  o,
55482
55482
  e,
55483
55483
  i.language
@@ -55523,7 +55523,7 @@ const sve = ({
55523
55523
  list: e
55524
55524
  }) => {
55525
55525
  var o;
55526
- const { t, i18n: n } = he(), a = ve();
55526
+ const { t, i18n: n } = he(), a = ye();
55527
55527
  let i = Se(
55528
55528
  a,
55529
55529
  e,
@@ -57088,7 +57088,7 @@ const gQe = {
57088
57088
  enableLanguageSelector: t
57089
57089
  }) => {
57090
57090
  var o, r, s;
57091
- const n = ve(), a = ((r = (o = n._site) == null ? void 0 : o.header) == null ? void 0 : r.links) ?? [], i = ((s = n._site) == null ? void 0 : s.logo) ?? gQe;
57091
+ const n = ye(), a = ((r = (o = n._site) == null ? void 0 : o.header) == null ? void 0 : r.links) ?? [], i = ((s = n._site) == null ? void 0 : s.logo) ?? gQe;
57092
57092
  return /* @__PURE__ */ c.jsx(
57093
57093
  vQe,
57094
57094
  {
@@ -57416,7 +57416,7 @@ const gQe = {
57416
57416
  const { primaryHeader: n, secondaryHeader: a } = e, {
57417
57417
  primaryHeader: i,
57418
57418
  secondaryHeader: o
57419
- } = t, { t: r } = he(), s = ve(), {
57419
+ } = t, { t: r } = he(), { document: s } = ye(), {
57420
57420
  logo: l,
57421
57421
  links: d,
57422
57422
  primaryCTA: u,
@@ -57501,7 +57501,6 @@ const gQe = {
57501
57501
  (h || p) && /* @__PURE__ */ c.jsx(
57502
57502
  Dv,
57503
57503
  {
57504
- document: s,
57505
57504
  primaryCTA: u,
57506
57505
  secondaryCTA: f,
57507
57506
  primaryVariant: C,
@@ -57601,7 +57600,6 @@ const gQe = {
57601
57600
  (h || p) && /* @__PURE__ */ c.jsx(De, { verticalPadding: "sm", background: S, children: /* @__PURE__ */ c.jsx(
57602
57601
  Dv,
57603
57602
  {
57604
- document: s,
57605
57603
  primaryCTA: u,
57606
57604
  secondaryCTA: f,
57607
57605
  primaryVariant: C,
@@ -57618,7 +57616,7 @@ const gQe = {
57618
57616
  links: e,
57619
57617
  type: t = "Primary"
57620
57618
  }) => {
57621
- const { i18n: n } = he(), { document: a } = ve(), i = 5, o = t === "Secondary", r = (s, l, d) => /* @__PURE__ */ c.jsx(
57619
+ const { i18n: n } = he(), { document: a } = ye(), i = 5, o = t === "Secondary", r = (s, l, d) => /* @__PURE__ */ c.jsx(
57622
57620
  Xe,
57623
57621
  {
57624
57622
  variant: t === "Primary" ? "headerFooterMainLink" : "headerFooterSecondaryLink",
@@ -57660,17 +57658,17 @@ const gQe = {
57660
57658
  aspectRatio: e.aspectRatio || e.logo.image.width / e.logo.image.height
57661
57659
  }
57662
57660
  ) }) }), Dv = (e) => {
57663
- const { i18n: t } = he(), {
57664
- primaryCTA: n,
57665
- secondaryCTA: a,
57666
- primaryVariant: i,
57667
- secondaryVariant: o,
57668
- showPrimaryCTA: r,
57669
- showSecondaryCTA: s
57661
+ const { i18n: t } = he(), { document: n } = ye(), {
57662
+ primaryCTA: a,
57663
+ secondaryCTA: i,
57664
+ primaryVariant: o,
57665
+ secondaryVariant: r,
57666
+ showPrimaryCTA: s,
57667
+ showSecondaryCTA: l
57670
57668
  } = e;
57671
- if (!(!n && !a))
57669
+ if (!(!a && !i))
57672
57670
  return /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col md:flex-row gap-4 md:gap-2 md:items-center", children: [
57673
- r && (n == null ? void 0 : n.link) && (n == null ? void 0 : n.label) && /* @__PURE__ */ c.jsx(
57671
+ s && (a == null ? void 0 : a.link) && (a == null ? void 0 : a.label) && /* @__PURE__ */ c.jsx(
57674
57672
  le,
57675
57673
  {
57676
57674
  constantValueEnabled: !0,
@@ -57679,19 +57677,19 @@ const gQe = {
57679
57677
  Xe,
57680
57678
  {
57681
57679
  eventName: "primaryCta",
57682
- variant: i,
57680
+ variant: o,
57683
57681
  label: me(
57684
- n == null ? void 0 : n.label,
57682
+ a == null ? void 0 : a.label,
57685
57683
  t.language,
57686
- document
57684
+ n
57687
57685
  ),
57688
- link: n.link,
57689
- linkType: n.linkType
57686
+ link: a.link,
57687
+ linkType: a.linkType
57690
57688
  }
57691
57689
  )
57692
57690
  }
57693
57691
  ),
57694
- s && (a == null ? void 0 : a.link) && (a == null ? void 0 : a.label) && /* @__PURE__ */ c.jsx(
57692
+ l && (i == null ? void 0 : i.link) && (i == null ? void 0 : i.label) && /* @__PURE__ */ c.jsx(
57695
57693
  le,
57696
57694
  {
57697
57695
  constantValueEnabled: !0,
@@ -57700,14 +57698,14 @@ const gQe = {
57700
57698
  Xe,
57701
57699
  {
57702
57700
  eventName: "secondaryCta",
57703
- variant: o,
57701
+ variant: r,
57704
57702
  label: me(
57705
- a.label,
57703
+ i.label,
57706
57704
  t.language,
57707
- document
57705
+ n
57708
57706
  ),
57709
- link: a.link,
57710
- linkType: a.linkType
57707
+ link: i.link,
57708
+ linkType: i.linkType
57711
57709
  }
57712
57710
  )
57713
57711
  }
@@ -57839,7 +57837,7 @@ const gQe = {
57839
57837
  }
57840
57838
  }, AQe = (e) => {
57841
57839
  var s, l, d, u, f, h, p, m, g, b;
57842
- const t = ve(), { backgroundColor: n = be.background1.value, puck: a } = e, i = ((l = (s = t == null ? void 0 : t._site) == null ? void 0 : s.footer) == null ? void 0 : l.links) ?? [], o = (d = t == null ? void 0 : t._site) == null ? void 0 : d.copyrightMessage, r = [
57840
+ const t = ye(), { backgroundColor: n = be.background1.value, puck: a } = e, i = ((l = (s = t == null ? void 0 : t._site) == null ? void 0 : s.footer) == null ? void 0 : l.links) ?? [], o = (d = t == null ? void 0 : t._site) == null ? void 0 : d.copyrightMessage, r = [
57843
57841
  {
57844
57842
  name: "facebook",
57845
57843
  link: (u = t == null ? void 0 : t._site) == null ? void 0 : u.facebookPageUrl,
@@ -58292,7 +58290,7 @@ const gQe = {
58292
58290
  label: v("components.locator", "Locator"),
58293
58291
  render: (e) => /* @__PURE__ */ c.jsx(zQe, { ...e })
58294
58292
  }, zQe = (e) => {
58295
- const t = ve(), { searchAnalyticsConfig: n, searcher: a } = k.useMemo(() => {
58293
+ const t = ye(), { searchAnalyticsConfig: n, searcher: a } = k.useMemo(() => {
58296
58294
  const i = MCe(
58297
58295
  t,
58298
58296
  e.experienceKeyEnvVar
@@ -58514,7 +58512,7 @@ const gQe = {
58514
58512
  const { t: o } = he(), r = typeof document > "u" ? void 0 : document.getElementById("preview-frame");
58515
58513
  if (r != null && r.contentDocument && !((d = r.contentWindow) != null && d.mapboxgl))
58516
58514
  return /* @__PURE__ */ c.jsx("div", { className: "flex items-center justify-center w-full h-full", children: /* @__PURE__ */ c.jsx("div", { className: "border border-gray-300 rounded-lg p-6 bg-white shadow-md", children: /* @__PURE__ */ c.jsx("span", { className: "text-gray-700 text-lg font-medium font-body-fontFamily", children: o("loadingMap", "Loading Map...") }) }) });
58517
- const s = ve();
58515
+ const s = ye();
58518
58516
  let l = (u = s._env) == null ? void 0 : u.YEXT_MAPBOX_API_KEY;
58519
58517
  return r != null && r.contentDocument && ((f = s._env) != null && f.YEXT_EDIT_LAYOUT_MODE_MAPBOX_API_KEY) && (l = s._env.YEXT_EDIT_LAYOUT_MODE_MAPBOX_API_KEY), /* @__PURE__ */ c.jsx(
58520
58518
  Nke,
@@ -58654,7 +58652,7 @@ const gQe = {
58654
58652
  );
58655
58653
  }, UQe = (e) => {
58656
58654
  var n;
58657
- const t = ve();
58655
+ const t = ye();
58658
58656
  if (!t._pageset && e)
58659
58657
  return ((n = t._env) == null ? void 0 : n[e]) || Mu;
58660
58658
  try {
@@ -59008,7 +59006,7 @@ const XQe = "https://placehold.co/100", QQe = {
59008
59006
  } = o, {
59009
59007
  backgroundColor: U,
59010
59008
  linksAlignment: ee
59011
- } = r, { i18n: Y } = he(), { document: re } = ve();
59009
+ } = r, { i18n: Y } = he(), { document: re } = ye();
59012
59010
  return /* @__PURE__ */ c.jsxs(bt, { className: "mt-auto", ref: n.dragRef, as: "footer", children: [
59013
59011
  /* @__PURE__ */ c.jsxs(
59014
59012
  De,
@@ -59176,7 +59174,7 @@ const XQe = "https://placehold.co/100", QQe = {
59176
59174
  links: e,
59177
59175
  type: t = "Primary"
59178
59176
  }) => {
59179
- const { i18n: n } = he(), { document: a } = ve();
59177
+ const { i18n: n } = he(), { document: a } = ye();
59180
59178
  return /* @__PURE__ */ c.jsx(
59181
59179
  "ul",
59182
59180
  {
@@ -59202,7 +59200,7 @@ const XQe = "https://placehold.co/100", QQe = {
59202
59200
  links: e,
59203
59201
  label: t
59204
59202
  }) => {
59205
- const { i18n: n } = he(), { document: a } = ve();
59203
+ const { i18n: n } = he(), { document: a } = ye();
59206
59204
  return /* @__PURE__ */ c.jsxs("ul", { className: "flex flex-col items-center md:items-start gap-4 w-full", children: [
59207
59205
  /* @__PURE__ */ c.jsx("li", { className: "w-full", children: /* @__PURE__ */ c.jsx(tt, { className: "break-words", children: t }) }),
59208
59206
  e.map((i, o) => /* @__PURE__ */ c.jsx("li", { className: "w-full", children: /* @__PURE__ */ c.jsx(
@@ -59552,7 +59550,7 @@ const XQe = "https://placehold.co/100", QQe = {
59552
59550
  ]
59553
59551
  })
59554
59552
  }, pJe = (e) => {
59555
- const { background: t, sectionHeading: n } = e, a = ve(), { i18n: i } = he(), o = i.language, r = me(
59553
+ const { background: t, sectionHeading: n } = e, a = ye(), { i18n: i } = he(), o = i.language, r = me(
59556
59554
  Se(
59557
59555
  a,
59558
59556
  n.text,
@@ -60097,7 +60095,7 @@ export {
60097
60095
  RSe as themeManagerTwMergeConfiguration,
60098
60096
  AJe as themeResolver,
60099
60097
  Ls as useBackground,
60100
- ve as useDocument,
60098
+ ye as useDocument,
60101
60099
  zc as useEntityFields,
60102
60100
  $Je as usePlatformBridgeDocument,
60103
60101
  CJe as usePlatformBridgeEntityFields,