@yext/pages-components 1.1.7 → 1.1.8

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.
@@ -1050,7 +1050,7 @@ const ny = {
1050
1050
  countryCode: "localizedCountryName"
1051
1051
  }[e];
1052
1052
  return r && t[r];
1053
- }, US = (e, t = [], n, r = {
1053
+ }, GS = (e, t = [], n, r = {
1054
1054
  route: !1
1055
1055
  }, l) => {
1056
1056
  const d = "Failed to construct query for maps service.";
@@ -1128,7 +1128,7 @@ const ny = {
1128
1128
  if (!e.length) return "";
1129
1129
  const t = e.filter(Boolean).join(", ");
1130
1130
  return encodeURI(t);
1131
- }, GS = ({
1131
+ }, YS = ({
1132
1132
  address: e,
1133
1133
  lines: t,
1134
1134
  separator: n = ",",
@@ -1547,8 +1547,8 @@ const Wy = (e) => {
1547
1547
  default:
1548
1548
  return "";
1549
1549
  }
1550
- }, lp = Nc(null), Ky = q_(() => import("./debugger-DrRgTaNB.js"));
1551
- function YS(e) {
1550
+ }, lp = Nc(null), Ky = q_(() => import("./debugger-j6XliS2e.js"));
1551
+ function VS(e) {
1552
1552
  const {
1553
1553
  children: t,
1554
1554
  apiKey: n,
@@ -1692,7 +1692,7 @@ class zy {
1692
1692
  }
1693
1693
  }
1694
1694
  const Gu = Nc({ name: "" }), ap = () => co(Gu).name;
1695
- function VS(e) {
1695
+ function jS(e) {
1696
1696
  var f;
1697
1697
  const t = ap(), [n] = Nr({
1698
1698
  name: op(t, e.name)
@@ -1731,13 +1731,13 @@ function ca() {
1731
1731
  }
1732
1732
  };
1733
1733
  }
1734
- const jS = () => {
1734
+ const qS = () => {
1735
1735
  var e;
1736
1736
  return (e = ca()) == null ? void 0 : e.track;
1737
- }, qS = () => {
1737
+ }, ZS = () => {
1738
1738
  var e;
1739
1739
  return (e = ca()) == null ? void 0 : e.pageView;
1740
- }, ZS = () => {
1740
+ }, JS = () => {
1741
1741
  var e;
1742
1742
  return (e = ca()) == null ? void 0 : e.identify;
1743
1743
  }, so = {
@@ -1940,7 +1940,7 @@ const jS = () => {
1940
1940
  return !1;
1941
1941
  }
1942
1942
  return t.protocol === "http:" || t.protocol === "https:";
1943
- }, JS = ({
1943
+ }, XS = ({
1944
1944
  image: e,
1945
1945
  className: t,
1946
1946
  width: n,
@@ -3601,7 +3601,7 @@ let pp = class {
3601
3601
  }
3602
3602
  };
3603
3603
  const Cc = Nc(null);
3604
- function QS() {
3604
+ function ew() {
3605
3605
  const e = co(Cc);
3606
3606
  if (!e || e.map === void 0)
3607
3607
  throw new Error("Attempted to call useMapContext() outside of <Map>.");
@@ -3693,7 +3693,7 @@ const xN = ({
3693
3693
  ), ud = Nc(
3694
3694
  null
3695
3695
  );
3696
- function ew() {
3696
+ function tw() {
3697
3697
  const e = co(ud);
3698
3698
  if (!e)
3699
3699
  throw new Error(
@@ -3701,7 +3701,7 @@ function ew() {
3701
3701
  );
3702
3702
  return e;
3703
3703
  }
3704
- const tw = ({
3704
+ const nw = ({
3705
3705
  clusterRadius: e = 50,
3706
3706
  children: t,
3707
3707
  ClusterTemplate: n = vN
@@ -3842,7 +3842,7 @@ const tw = ({
3842
3842
  }), X_(m, v);
3843
3843
  }
3844
3844
  return null;
3845
- }, nw = ({
3845
+ }, rw = ({
3846
3846
  children: e,
3847
3847
  coordinate: t,
3848
3848
  linkSameTab: n,
@@ -24640,7 +24640,7 @@ const Ru = {
24640
24640
  "editor-inner": "_editor-inner_1mmqo_6",
24641
24641
  "no-border": "_no-border_1mmqo_10"
24642
24642
  };
24643
- function rw({
24643
+ function iw({
24644
24644
  serializedAST: e,
24645
24645
  nodeClassNames: t
24646
24646
  }) {
@@ -25100,22 +25100,22 @@ rs.throws = function(e, t, n) {
25100
25100
  typeof t == "function" ? ii(!t(r), !0, !1, "not.throws", !1, "Expected function not to throw matching exception", n) : t instanceof RegExp ? ii(!t.test(r.message), !0, !1, "not.throws", !1, `Expected function not to throw exception matching \`${String(t)}\` pattern`, n) : t || ii(!1, !0, !1, "not.throws", !1, "Expected function not to throw", n);
25101
25101
  }
25102
25102
  };
25103
- const hE = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, iw = Os(/[A-Za-z]/), pg = Os(/[\dA-Za-z]/), sw = Os(/[#-'*+\--9=?A-Z^-~]/);
25104
- function ow(e) {
25103
+ const hE = /[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/, sw = Os(/[A-Za-z]/), pg = Os(/[\dA-Za-z]/), ow = Os(/[#-'*+\--9=?A-Z^-~]/);
25104
+ function lw(e) {
25105
25105
  return (
25106
25106
  // Special whitespace codes (which have negative values), C0 and Control
25107
25107
  // character DEL
25108
25108
  e !== null && (e < 32 || e === 127)
25109
25109
  );
25110
25110
  }
25111
- const lw = Os(/\d/), aw = Os(/[\dA-Fa-f]/), cw = Os(/[!-/:-@[-`{-~]/);
25112
- function uw(e) {
25111
+ const aw = Os(/\d/), cw = Os(/[\dA-Fa-f]/), uw = Os(/[!-/:-@[-`{-~]/);
25112
+ function dw(e) {
25113
25113
  return e !== null && e < -2;
25114
25114
  }
25115
25115
  function gE(e) {
25116
25116
  return e !== null && (e < 0 || e === 32);
25117
25117
  }
25118
- function dw(e) {
25118
+ function fw(e) {
25119
25119
  return e === -2 || e === -1 || e === 32;
25120
25120
  }
25121
25121
  const pE = Os(hE), mE = Os(/\s/);
@@ -25985,7 +25985,7 @@ function Tg(e) {
25985
25985
  return String(e || "").toUpperCase();
25986
25986
  }
25987
25987
  const gc = {}.hasOwnProperty;
25988
- function fw(e, t) {
25988
+ function hw(e, t) {
25989
25989
  const n = t || {}, r = n.allowDangerousHtml || !1, l = {};
25990
25990
  return f.dangerous = r, f.clobberPrefix = n.clobberPrefix === void 0 || n.clobberPrefix === null ? "user-content-" : n.clobberPrefix, f.footnoteLabel = n.footnoteLabel || "Footnotes", f.footnoteLabelTagName = n.footnoteLabelTagName || "h2", f.footnoteLabelProperties = n.footnoteLabelProperties || {
25991
25991
  className: ["sr-only"]
@@ -26090,14 +26090,14 @@ const bT = (e, t) => e(t, "i", ss(e, t)), LT = (e, t) => e(t, "b", ss(e, t)), IT
26090
26090
  strikethrough: kT,
26091
26091
  subscript: PT,
26092
26092
  superscript: $T
26093
- }, hw = (e) => {
26093
+ }, gw = (e) => {
26094
26094
  const [t, n] = Nr();
26095
26095
  let r;
26096
26096
  return tr(() => {
26097
26097
  (async () => {
26098
26098
  if (!r)
26099
26099
  try {
26100
- r = (await import("./index-B5KCvNJE.js")).default;
26100
+ r = (await import("./index-DOAw7xqq.js")).default;
26101
26101
  } catch {
26102
26102
  throw new Error(
26103
26103
  "Failed to import React Markdown, cannot properly render LegacyRichText."
@@ -31639,7 +31639,7 @@ class e_ {
31639
31639
  let d = n;
31640
31640
  d = d.plus({ days: l });
31641
31641
  const f = this.getHours(d);
31642
- f && !f.isClosed && r.push(
31642
+ f != null && f.openIntervals && !f.isClosed && r.push(
31643
31643
  ...f.openIntervals.map(
31644
31644
  (p) => new Xg(d, p, this.timezone)
31645
31645
  )
@@ -31796,7 +31796,7 @@ function jv(e, t) {
31796
31796
  f(e)
31797
31797
  ] });
31798
31798
  }
31799
- const qv = { minHeight: `${1.5}em` }, gw = (e) => {
31799
+ const qv = { minHeight: `${1.5}em` }, pw = (e) => {
31800
31800
  const [t, n] = Nr(!1), [r, l] = Nr(!1);
31801
31801
  tr(() => {
31802
31802
  l(!0);
@@ -31854,7 +31854,7 @@ function Xv(e, t, n) {
31854
31854
  }
31855
31855
  return r;
31856
31856
  }
31857
- const pw = (e) => {
31857
+ const mw = (e) => {
31858
31858
  const [t, n] = Nr(!1);
31859
31859
  tr(() => {
31860
31860
  n(!0);
@@ -31912,13 +31912,16 @@ const pw = (e) => {
31912
31912
  S.dayName
31913
31913
  );
31914
31914
  }) }) : /* @__PURE__ */ at.jsx("div", { style: E }) });
31915
- }, mw = (e) => `<script type="application/ld+json">
31915
+ }, _w = (e) => `<script type="application/ld+json">
31916
31916
  ${JSON.stringify(e)}
31917
- <\/script>`, Ld = (e, t) => ({
31918
- "@context": "https://schema.org",
31919
- "@type": t,
31920
- name: e.name
31921
- }), Qv = (e) => typeof e != "object" ? !1 : "name" in e || "address" in e, eS = (e) => typeof e != "object" ? !1 : "line1" in e || "city" in e || "region" in e || "postalCode" in e || "countryCode" in e, t_ = (e) => eS(e) && {
31917
+ <\/script>`, Ld = (e, t) => {
31918
+ if (!(!e.name || typeof e.name != "string"))
31919
+ return {
31920
+ "@context": "https://schema.org",
31921
+ "@type": t,
31922
+ name: e.name
31923
+ };
31924
+ }, Qv = (e) => typeof e != "object" ? !1 : !!e.name || !!e.address, eS = (e) => typeof e != "object" ? !1 : !!e.line1 || !!e.city || !!e.region || !!e.postalCode || !!e.countryCode, t_ = (e) => eS(e) && {
31922
31925
  address: {
31923
31926
  "@type": "PostalAddress",
31924
31927
  streetAddress: e.line1,
@@ -31931,7 +31934,7 @@ const pw = (e) => {
31931
31934
  "@type": "Place",
31932
31935
  name: e.name,
31933
31936
  ...t_(e.address)
31934
- }, n_ = (e) => typeof e != "object" || !("image" in e) ? !1 : "url" in e.image, Id = (e) => {
31937
+ }, n_ = (e) => typeof e != "object" || !("image" in e) ? !1 : "url" in e.image && typeof e.image.url == "string", Id = (e) => {
31935
31938
  if (!e)
31936
31939
  return {};
31937
31940
  const t = new Array();
@@ -31940,9 +31943,9 @@ const pw = (e) => {
31940
31943
  return {
31941
31944
  image: t
31942
31945
  };
31943
- }, _w = (e) => n_(e) && {
31946
+ }, yw = (e) => n_(e) && {
31944
31947
  image: e.image.url
31945
- }, nS = (e) => typeof e != "object" ? !1 : "url" in e || "name" in e, rS = (e) => Array.isArray(e), iS = (e) => rS(e) && {
31948
+ }, nS = (e) => typeof e != "object" ? !1 : !!e.name, rS = (e) => Array.isArray(e) && e.length > 0, iS = (e) => rS(e) && {
31946
31949
  performer: {
31947
31950
  "@type": "PerformingGroup",
31948
31951
  name: e.join(" and ")
@@ -31951,9 +31954,22 @@ const pw = (e) => {
31951
31954
  organizer: {
31952
31955
  "@type": "Organization",
31953
31956
  name: e.name,
31954
- url: e.url
31955
- }
31956
- }, oS = (e) => typeof e != "object" ? !1 : "url" in e || "priceCurrency" in e || "price" in e || "priceValidUntil" in e || "itemCondition" in e || "availability" in e, r_ = (e) => oS(e) && {
31957
+ ...e.url && { url: e.url }
31958
+ }
31959
+ }, oS = [
31960
+ "BackOrder",
31961
+ "Discontinued",
31962
+ "InStock",
31963
+ "InStoreOnly",
31964
+ "LimitedAvailability",
31965
+ "MadeToOrder",
31966
+ "OnlineOnly",
31967
+ "OutOfStock",
31968
+ "PreOrder",
31969
+ "PreSale",
31970
+ "Reserved",
31971
+ "SoldOut"
31972
+ ], lS = (e) => typeof e != "object" ? !1 : "priceCurrency" in e && "price" in e && "availability" in e && oS.includes(e.availability), r_ = (e) => lS(e) && {
31957
31973
  offers: {
31958
31974
  "@type": "Offer",
31959
31975
  url: e.url,
@@ -31963,32 +31979,35 @@ const pw = (e) => {
31963
31979
  itemCondition: e.itemCondition,
31964
31980
  availability: e.availability
31965
31981
  }
31966
- }, yw = (e, t) => ({
31967
- ...Ld(e, t ?? "Event"),
31968
- ...Id(e.photoGallery),
31969
- ...tS({
31982
+ }, Nw = (e, t) => {
31983
+ const n = tS({
31970
31984
  name: e.geomodifier,
31971
31985
  address: e.address
31972
- }),
31973
- startDate: e.c_startDate,
31974
- endDate: e.c_endDate,
31975
- description: e.description,
31976
- eventAttendanceMode: e.attendance,
31977
- eventStatus: e.eventStatus,
31978
- ...iS(e.performers),
31979
- ...sS({
31980
- name: e.organizerName
31981
- }),
31982
- ...r_({
31983
- url: "",
31984
- priceCurrency: e.c_currency,
31985
- price: e.price,
31986
- priceValidUntil: e.expirationDate,
31987
- itemCondition: e.stockStatus,
31988
- availability: e.availabilityDate
31989
- })
31990
- }), lS = (e) => typeof e != "object" ? !1 : "monday" in e || "tuesday" in e || "wednesday" in e || "thursday" in e || "friday" in e || "saturday" in e || "sunday" in e, aS = (e) => typeof e == "object" && "isClosed" in e && Array.isArray(e.openIntervals) ? e.openIntervals.length === 0 ? !0 : e.openIntervals.every((t) => typeof t == "object" && "start" in t && "end" in t) : !1, cS = (e) => {
31991
- if (!lS(e))
31986
+ });
31987
+ return {
31988
+ ...Ld(e, t ?? "Event"),
31989
+ ...Id(e.photoGallery),
31990
+ ...n && { location: n },
31991
+ ...iS(e.performers),
31992
+ ...sS({
31993
+ name: e.organizerName
31994
+ }),
31995
+ ...r_({
31996
+ url: "",
31997
+ priceCurrency: e.c_currency,
31998
+ price: e.price,
31999
+ priceValidUntil: e.expirationDate,
32000
+ itemCondition: e.condition,
32001
+ availability: e.stockStatus
32002
+ }),
32003
+ ...e.c_startDate && { startDate: e.c_startDate },
32004
+ ...e.c_endDate && { endDate: e.c_endDate },
32005
+ ...e.description && { description: e.description },
32006
+ ...e.attendance && { eventAttendanceMode: e.attendance },
32007
+ ...e.eventStatus && { eventStatus: e.eventStatus }
32008
+ };
32009
+ }, aS = (e) => typeof e != "object" ? !1 : "monday" in e || "tuesday" in e || "wednesday" in e || "thursday" in e || "friday" in e || "saturday" in e || "sunday" in e, cS = (e) => typeof e != "object" ? !1 : e.isClosed ? !0 : "openIntervals" in e && Array.isArray(e.openIntervals) && e.openIntervals.length ? e.openIntervals.every((t) => typeof t == "object" && "start" in t && "end" in t) : !1, uS = (e) => {
32010
+ if (!aS(e))
31992
32011
  return {};
31993
32012
  let t = /* @__PURE__ */ new Map();
31994
32013
  t = no(e.monday, t, "Mo"), t = no(e.tuesday, t, "Tu"), t = no(e.wednesday, t, "We"), t = no(e.thursday, t, "Th"), t = no(e.friday, t, "Fr"), t = no(e.saturday, t, "Sa"), t = no(e.sunday, t, "Su");
@@ -32001,7 +32020,9 @@ const pw = (e) => {
32001
32020
  openingHours: n
32002
32021
  };
32003
32022
  }, no = (e, t, n) => {
32004
- if (!aS(e) || e.isClosed) {
32023
+ if (!cS(e))
32024
+ return t;
32025
+ if (e.isClosed || !e.openIntervals) {
32005
32026
  const r = "00:00-00:00", l = t.get(r) ?? [];
32006
32027
  return l.push(n), t.set(r, l), t;
32007
32028
  }
@@ -32010,16 +32031,16 @@ const pw = (e) => {
32010
32031
  d.push(n), t.set(l, d);
32011
32032
  }
32012
32033
  return t;
32013
- }, Nw = (e, t) => ({
32034
+ }, Cw = (e, t) => ({
32014
32035
  ...Ld(e, t ?? "LocalBusiness"),
32015
32036
  // default, if schemaType is nil, set to LocalBusiness
32016
32037
  ...t_(e.address),
32017
- ...cS(e.hours),
32038
+ ...uS(e.hours),
32018
32039
  ...Id(e.photoGallery),
32019
32040
  description: e.description,
32020
32041
  telephone: e.mainPhone,
32021
32042
  email: e.email
32022
- }), uS = (e) => typeof e != "object" ? !1 : "ratingValue" in e || "bestRating" in e || "author" in e, dS = (e) => typeof e != "object" ? !1 : "ratingValue" in e || "reviewCount" in e, fS = (e) => uS(e) && {
32043
+ }), dS = (e) => typeof e != "object" ? !1 : "ratingValue" in e, fS = (e) => typeof e != "object" ? !1 : "ratingValue" in e && "reviewCount" in e, hS = (e) => dS(e) && {
32023
32044
  review: {
32024
32045
  "@type": "Review",
32025
32046
  reviewRating: {
@@ -32027,38 +32048,42 @@ const pw = (e) => {
32027
32048
  ratingValue: e.ratingValue,
32028
32049
  bestRating: e.bestRating
32029
32050
  },
32030
- author: {
32031
- "@type": "Person",
32032
- name: e.author
32051
+ ...e.author && {
32052
+ author: {
32053
+ "@type": "Person",
32054
+ name: e.author
32055
+ }
32033
32056
  }
32034
32057
  }
32035
- }, hS = (e) => dS(e) ? {
32058
+ }, gS = (e) => fS(e) ? {
32036
32059
  aggregateRating: {
32037
32060
  "@type": "AggregateRating",
32038
32061
  ratingValue: e.ratingValue,
32039
32062
  reviewCount: e.reviewCount
32040
32063
  }
32041
- } : void 0, Cw = (e, t) => ({
32064
+ } : void 0, Ew = (e, t) => ({
32042
32065
  ...Ld(e, t ?? "Product"),
32043
32066
  ...Id(e.photoGallery),
32044
- ...fS(e.c_reviews),
32045
- ...hS(e.c_aggregateRating),
32067
+ ...hS(e.c_reviews),
32068
+ ...gS(e.c_aggregateRating),
32046
32069
  ...r_({
32047
32070
  url: "",
32048
32071
  priceCurrency: e.c_currency,
32049
32072
  price: e.price,
32050
32073
  priceValidUntil: e.expirationDate,
32051
- itemCondition: e.stockStatus,
32052
- availability: e.availabilityDate
32074
+ itemCondition: e.condition,
32075
+ availability: e.stockStatus
32053
32076
  }),
32054
32077
  description: e.description,
32055
32078
  sku: e.sku,
32056
32079
  mpn: e.mpn,
32057
- brand: {
32058
- "@type": "Brand",
32059
- name: e.brand
32080
+ ...e.brand && {
32081
+ brand: {
32082
+ "@type": "Brand",
32083
+ name: e.brand
32084
+ }
32060
32085
  }
32061
- }), gS = (e) => typeof e != "object" ? !1 : "question" in e && "answer" in e, pS = (e) => typeof e != "object" ? !1 : "question" in e && "answerV2" in e ? "json" in e.answerV2 && typeof e.answerV2.json == "object" : !1;
32086
+ }), pS = (e) => !e || typeof e != "object" ? !1 : "question" in e && "answer" in e, mS = (e) => !e || typeof e != "object" ? !1 : "question" in e && "answerV2" in e ? "json" in e.answerV2 && typeof e.answerV2.json == "object" : !1;
32062
32087
  function rd(e, t) {
32063
32088
  for (const n in e)
32064
32089
  if (typeof e[n] == "object")
@@ -32070,33 +32095,37 @@ function rd(e, t) {
32070
32095
  else
32071
32096
  n === "text" && t.push(e[n]);
32072
32097
  }
32073
- function mS(e) {
32098
+ function _S(e) {
32074
32099
  if (e.json) {
32075
32100
  const t = [];
32076
32101
  return rd(e.json, t), t.join("");
32077
32102
  }
32078
32103
  return "";
32079
32104
  }
32080
- const Ew = (e) => ({
32081
- "@context": "http://www.schema.org",
32082
- "@type": "FAQPage",
32083
- mainEntity: e.map((t) => {
32084
- if (gS(t) || pS(t))
32105
+ const Tw = (e) => {
32106
+ const t = e.map((n) => {
32107
+ if (pS(n) || mS(n))
32085
32108
  return {
32086
32109
  "@type": "Question",
32087
- name: t.question,
32110
+ name: n.question,
32088
32111
  acceptedAnswer: {
32089
32112
  "@type": "Answer",
32090
- text: "answer" in t ? t.answer : mS(t.answerV2)
32113
+ text: "answer" in n ? n.answer : _S(n.answerV2)
32091
32114
  }
32092
32115
  };
32093
- })
32094
- }), id = Math.log2(1.6745627884839434), _S = 4, yS = 19, sd = "js-baidu-neg-lng-fix";
32116
+ }).filter(Boolean);
32117
+ if (t.length)
32118
+ return {
32119
+ "@context": "http://www.schema.org",
32120
+ "@type": "FAQPage",
32121
+ mainEntity: t
32122
+ };
32123
+ }, id = Math.log2(1.6745627884839434), yS = 4, NS = 19, sd = "js-baidu-neg-lng-fix";
32095
32124
  let i_;
32096
- const NS = new Promise((e) => i_ = e), CS = "https://api.map.baidu.com/geoconv/v1/";
32125
+ const CS = new Promise((e) => i_ = e), ES = "https://api.map.baidu.com/geoconv/v1/";
32097
32126
  let Xl = [];
32098
- const ES = "gcj02ToBD09Callback_b872c21c";
32099
- let TS = 0, Qg;
32127
+ const TS = "gcj02ToBD09Callback_b872c21c";
32128
+ let xS = 0, Qg;
32100
32129
  async function s_(e) {
32101
32130
  return await new Promise((t, n) => {
32102
32131
  Xl.push({ coordinates: e, resolve: t, reject: n }), Xl.length === 1 && (Qg = setTimeout(r, 100)), Xl.length > 40 && (clearTimeout(Qg), r());
@@ -32105,7 +32134,7 @@ async function s_(e) {
32105
32134
  Xl = [];
32106
32135
  const d = [].concat(
32107
32136
  ...l.map((_) => _.coordinates)
32108
- ), f = ES + "_" + TS++, p = document.createElement("script");
32137
+ ), f = TS + "_" + xS++, p = document.createElement("script");
32109
32138
  window[f] = (_) => {
32110
32139
  var S;
32111
32140
  if (_.status) {
@@ -32126,7 +32155,7 @@ async function s_(e) {
32126
32155
  )
32127
32156
  );
32128
32157
  }), delete window[f], (S = p.parentNode) == null || S.removeChild(p);
32129
- }, NS.then((_) => {
32158
+ }, CS.then((_) => {
32130
32159
  const T = {
32131
32160
  ak: _,
32132
32161
  callback: f,
@@ -32136,12 +32165,12 @@ async function s_(e) {
32136
32165
  from: 3,
32137
32166
  to: 5
32138
32167
  };
32139
- p.src = CS + "?" + Object.entries(T).map(([E, S]) => E + "=" + S).join("&"), document.head.appendChild(p);
32168
+ p.src = ES + "?" + Object.entries(T).map(([E, S]) => E + "=" + S).join("&"), document.head.appendChild(p);
32140
32169
  });
32141
32170
  }
32142
32171
  });
32143
32172
  }
32144
- class xS extends nl {
32173
+ class vS extends nl {
32145
32174
  constructor(n) {
32146
32175
  super(n);
32147
32176
  Ie(this, "_wrapper");
@@ -32205,7 +32234,7 @@ class xS extends nl {
32205
32234
  });
32206
32235
  }
32207
32236
  }
32208
- class vS extends rl {
32237
+ class SS extends rl {
32209
32238
  constructor(n) {
32210
32239
  super(n);
32211
32240
  Ie(this, "_wrapper");
@@ -32285,8 +32314,8 @@ class vS extends rl {
32285
32314
  return `${this._originalWrapperClass} ${this._negativeLngFix ? sd : ""} ${this._wrapperClass}`;
32286
32315
  }
32287
32316
  }
32288
- const SS = "https://api.map.baidu.com/getscript";
32289
- function wS(e, t, n, { params: r = {}, version: l = "3.0" } = {}) {
32317
+ const wS = "https://api.map.baidu.com/getscript";
32318
+ function OS(e, t, n, { params: r = {}, version: l = "3.0" } = {}) {
32290
32319
  window.BMAP_PROTOCOL = "https", window.BMap_loadScriptTime = (/* @__PURE__ */ new Date()).getTime();
32291
32320
  const d = n, f = {
32292
32321
  ak: d,
@@ -32295,18 +32324,18 @@ function wS(e, t, n, { params: r = {}, version: l = "3.0" } = {}) {
32295
32324
  };
32296
32325
  i_(d);
32297
32326
  const p = document.createElement("script");
32298
- p.src = SS + "?" + Object.entries(f).map(([E, S]) => E + "=" + S).join("&"), p.onload = () => e(), document.head.appendChild(p);
32327
+ p.src = wS + "?" + Object.entries(f).map(([E, S]) => E + "=" + S).join("&"), p.onload = () => e(), document.head.appendChild(p);
32299
32328
  let _ = "";
32300
- for (let E = _S; E <= yS; E++) {
32329
+ for (let E = yS; E <= NS; E++) {
32301
32330
  const S = 2 ** (E - id + 7);
32302
32331
  _ += `[data-baidu-zoom="${E}"] .${sd}{transform:translateX(-${S}px);}`;
32303
32332
  }
32304
32333
  const T = document.createElement("style");
32305
32334
  T.appendChild(document.createTextNode(_)), document.head.appendChild(T);
32306
32335
  }
32307
- const Tw = new uo().withLoadFunction(wS).withMapClass(xS).withPinClass(vS).withProviderName("Baidu").build();
32336
+ const xw = new uo().withLoadFunction(OS).withMapClass(vS).withPinClass(SS).withProviderName("Baidu").build();
32308
32337
  let o_;
32309
- function OS() {
32338
+ function DS() {
32310
32339
  class e extends Microsoft.Maps.CustomOverlay {
32311
32340
  constructor() {
32312
32341
  super({ beneathLabels: !1 });
@@ -32351,7 +32380,7 @@ function OS() {
32351
32380
  }
32352
32381
  o_ = e;
32353
32382
  }
32354
- class DS extends nl {
32383
+ class AS extends nl {
32355
32384
  constructor(n) {
32356
32385
  super(n);
32357
32386
  Ie(this, "wrapper");
@@ -32442,10 +32471,10 @@ class l_ extends rl {
32442
32471
  }
32443
32472
  }
32444
32473
  Ie(l_, "_pinId");
32445
- const ep = "BingMapsCallback_593d7d33", AS = "https://www.bing.com/api/maps/mapcontrol";
32446
- function MS(e, t, n, { params: r = {} } = {}) {
32474
+ const ep = "BingMapsCallback_593d7d33", MS = "https://www.bing.com/api/maps/mapcontrol";
32475
+ function RS(e, t, n, { params: r = {} } = {}) {
32447
32476
  window[ep] = () => {
32448
- OS(), e();
32477
+ DS(), e();
32449
32478
  };
32450
32479
  const l = {
32451
32480
  callback: ep,
@@ -32453,11 +32482,11 @@ function MS(e, t, n, { params: r = {} } = {}) {
32453
32482
  ...r
32454
32483
  };
32455
32484
  dp(
32456
- AS + "?" + Object.entries(l).map(([d, f]) => d + "=" + f).join("&")
32485
+ MS + "?" + Object.entries(l).map(([d, f]) => d + "=" + f).join("&")
32457
32486
  );
32458
32487
  }
32459
- const xw = new uo().withLoadFunction(MS).withMapClass(DS).withPinClass(l_).withProviderName("Bing").build();
32460
- class RS extends nl {
32488
+ const vw = new uo().withLoadFunction(RS).withMapClass(AS).withPinClass(l_).withProviderName("Bing").build();
32489
+ class bS extends nl {
32461
32490
  constructor(n) {
32462
32491
  var r, l, d;
32463
32492
  super(n);
@@ -32516,7 +32545,7 @@ class RS extends nl {
32516
32545
  this.map && this.map[l ? "easeTo" : "jumpTo"]({ center: d, zoom: n - 1 });
32517
32546
  }
32518
32547
  }
32519
- class bS extends rl {
32548
+ class LS extends rl {
32520
32549
  constructor(n) {
32521
32550
  super(n);
32522
32551
  Ie(this, "pin");
@@ -32546,7 +32575,7 @@ class bS extends rl {
32546
32575
  (d = this.pin) == null || d.remove();
32547
32576
  }
32548
32577
  }
32549
- function LS(e, t, n, { version: r = "v1.13.0" } = {}) {
32578
+ function IS(e, t, n, { version: r = "v1.13.0" } = {}) {
32550
32579
  const l = `https://api.mapbox.com/mapbox-gl-js/${r}/mapbox-gl`, d = document.createElement("link");
32551
32580
  d.rel = "stylesheet", d.href = l + ".css";
32552
32581
  const f = document.createElement("script");
@@ -32554,7 +32583,7 @@ function LS(e, t, n, { version: r = "v1.13.0" } = {}) {
32554
32583
  mapboxgl.accessToken = n, e();
32555
32584
  }, document.head.appendChild(d), document.head.appendChild(f);
32556
32585
  }
32557
- const vw = new uo().withLoadFunction(LS).withMapClass(RS).withPinClass(bS).withProviderName("Mapbox").build();
32586
+ const Sw = new uo().withLoadFunction(IS).withMapClass(bS).withPinClass(LS).withProviderName("Mapbox").build();
32558
32587
  var ao;
32559
32588
  let a_ = (ao = class extends nl {
32560
32589
  constructor(n) {
@@ -32616,7 +32645,7 @@ let a_ = (ao = class extends nl {
32616
32645
  };
32617
32646
  d.accessToken = ao.apiKey, this.map && L.tileLayer(l, d).addTo(this.map);
32618
32647
  }
32619
- }, Ie(ao, "apiKey"), ao), IS = class extends ad {
32648
+ }, Ie(ao, "apiKey"), ao), kS = class extends ad {
32620
32649
  constructor(n) {
32621
32650
  super(n);
32622
32651
  Ie(this, "pin");
@@ -32654,7 +32683,7 @@ let a_ = (ao = class extends nl {
32654
32683
  ), this.pin.setZIndexOffset(n.getZIndex());
32655
32684
  }
32656
32685
  };
32657
- function kS(e, t, n, { version: r = "1.7.1" } = {}) {
32686
+ function PS(e, t, n, { version: r = "1.7.1" } = {}) {
32658
32687
  const l = `https://unpkg.com/leaflet@${r}/dist/leaflet`;
32659
32688
  a_.apiKey = n;
32660
32689
  const d = document.createElement("link");
@@ -32662,8 +32691,8 @@ function kS(e, t, n, { version: r = "1.7.1" } = {}) {
32662
32691
  const f = document.createElement("script");
32663
32692
  f.src = l + ".js", f.onload = () => e(), document.head.appendChild(d), document.head.appendChild(f);
32664
32693
  }
32665
- const c_ = new uo().withLoadFunction(kS).withMapClass(a_).withPinClass(IS).withProviderName("Leaflet").build(), PS = c_.getMapClass(), $S = c_.getPinClass();
32666
- class FS extends PS {
32694
+ const c_ = new uo().withLoadFunction(PS).withMapClass(a_).withPinClass(kS).withProviderName("Leaflet").build(), $S = c_.getMapClass(), FS = c_.getPinClass();
32695
+ class BS extends $S {
32667
32696
  constructor() {
32668
32697
  super(...arguments);
32669
32698
  Ie(this, "map");
@@ -32685,9 +32714,9 @@ class FS extends PS {
32685
32714
  });
32686
32715
  }
32687
32716
  }
32688
- class BS extends $S {
32717
+ class HS extends FS {
32689
32718
  }
32690
- function HS(e, t, n, { version: r = "v1.3.2" } = {}) {
32719
+ function WS(e, t, n, { version: r = "v1.3.2" } = {}) {
32691
32720
  const l = `https://api.mqcdn.com/sdk/mapquest-js/${r}/mapquest-maps`, d = document.createElement("link");
32692
32721
  d.rel = "stylesheet", d.href = l + ".css";
32693
32722
  const f = document.createElement("script");
@@ -32695,78 +32724,79 @@ function HS(e, t, n, { version: r = "v1.3.2" } = {}) {
32695
32724
  L.mapquest.key = n, e();
32696
32725
  }, document.head.appendChild(d), document.head.appendChild(f);
32697
32726
  }
32698
- const ww = new uo().withLoadFunction(HS).withMapClass(FS).withPinClass(BS).withProviderName("MapQuest").build();
32727
+ const Ow = new uo().withLoadFunction(WS).withMapClass(BS).withPinClass(HS).withProviderName("MapQuest").build();
32699
32728
  export {
32700
- Nw as $,
32701
- GS as A,
32702
- jS as B,
32703
- qS as C,
32704
- ZS as D,
32705
- YS as E,
32729
+ Cw as $,
32730
+ YS as A,
32731
+ qS as B,
32732
+ ZS as C,
32733
+ JS as D,
32734
+ VS as E,
32706
32735
  Uu as F,
32707
32736
  ap as G,
32708
- VS as H,
32709
- JS as I,
32737
+ jS as H,
32738
+ XS as I,
32710
32739
  so as J,
32711
32740
  cN as K,
32712
32741
  ny as L,
32713
32742
  cf as M,
32714
32743
  xN as N,
32715
- QS as O,
32744
+ ew as O,
32716
32745
  mp as P,
32717
- tw as Q,
32718
- ew as R,
32719
- nw as S,
32720
- rw as T,
32721
- hw as U,
32722
- gw as V,
32723
- pw as W,
32746
+ nw as Q,
32747
+ tw as R,
32748
+ rw as S,
32749
+ iw as T,
32750
+ gw as U,
32751
+ pw as V,
32752
+ mw as W,
32724
32753
  an as X,
32725
- mw as Y,
32754
+ _w as Y,
32726
32755
  Ld as Z,
32727
- yw as _,
32728
- fw as a,
32729
- Cw as a0,
32730
- Ew as a1,
32731
- t_ as a2,
32732
- tS as a3,
32733
- cS as a4,
32734
- r_ as a5,
32735
- iS as a6,
32736
- sS as a7,
32737
- Id as a8,
32738
- _w as a9,
32739
- fS as aa,
32740
- hS as ab,
32741
- Tw as ac,
32756
+ Nw as _,
32757
+ hw as a,
32758
+ Ew as a0,
32759
+ Tw as a1,
32760
+ _S as a2,
32761
+ t_ as a3,
32762
+ tS as a4,
32763
+ uS as a5,
32764
+ r_ as a6,
32765
+ iS as a7,
32766
+ sS as a8,
32767
+ Id as a9,
32768
+ yw as aa,
32769
+ gS as ab,
32770
+ hS as ac,
32742
32771
  xw as ad,
32743
- CN as ae,
32744
- vw as af,
32745
- c_ as ag,
32746
- ww as ah,
32747
- fn as ai,
32772
+ vw as ae,
32773
+ CN as af,
32774
+ Sw as ag,
32775
+ c_ as ah,
32776
+ Ow as ai,
32777
+ fn as aj,
32748
32778
  rp as b,
32749
32779
  oa as c,
32750
- uw as d,
32780
+ dw as d,
32751
32781
  fc as e,
32752
- iw as f,
32782
+ sw as f,
32753
32783
  sa as g,
32754
32784
  pg as h,
32755
- ow as i,
32785
+ lw as i,
32756
32786
  at as j,
32757
- sw as k,
32758
- cw as l,
32759
- dw as m,
32787
+ ow as k,
32788
+ uw as l,
32789
+ fw as m,
32760
32790
  ua as n,
32761
- aw as o,
32791
+ cw as o,
32762
32792
  Zl as p,
32763
- lw as q,
32793
+ aw as q,
32764
32794
  yE as r,
32765
32795
  _d as s,
32766
32796
  gE as t,
32767
32797
  iE as u,
32768
32798
  Xp as v,
32769
- US as w,
32799
+ GS as w,
32770
32800
  zy as x,
32771
32801
  lp as y,
32772
32802
  ca as z