@yext/pages-components 1.0.7 → 1.0.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.
@@ -1053,7 +1053,7 @@ const ry = {
1053
1053
  countryCode: "localizedCountryName"
1054
1054
  }[e];
1055
1055
  return r && t[r];
1056
- }, VS = (e, t = [], n, r = {
1056
+ }, qS = (e, t = [], n, r = {
1057
1057
  route: !1
1058
1058
  }, l) => {
1059
1059
  const d = "Failed to construct query for maps service.";
@@ -1131,7 +1131,7 @@ const ry = {
1131
1131
  if (!e.length) return "";
1132
1132
  const t = e.filter(Boolean).join(", ");
1133
1133
  return encodeURI(t);
1134
- }, qS = ({
1134
+ }, ZS = ({
1135
1135
  address: e,
1136
1136
  lines: t,
1137
1137
  separator: n = ",",
@@ -1616,8 +1616,8 @@ const tN = (e) => {
1616
1616
  default:
1617
1617
  return "";
1618
1618
  }
1619
- }, lp = Nc(null), nN = Z_(() => import("./debugger-rZtaKqX7.js"));
1620
- function ZS(e) {
1619
+ }, lp = Nc(null), nN = Z_(() => import("./debugger-XdM5KrVj.js"));
1620
+ function JS(e) {
1621
1621
  const {
1622
1622
  children: t,
1623
1623
  apiKey: n,
@@ -1755,7 +1755,7 @@ class rN {
1755
1755
  }
1756
1756
  }
1757
1757
  const Gu = Nc({ name: "" }), ap = () => us(Gu).name;
1758
- function JS(e) {
1758
+ function XS(e) {
1759
1759
  var f;
1760
1760
  const t = ap(), [n] = Cr({
1761
1761
  name: sp(t, e.name)
@@ -1794,13 +1794,13 @@ function ca() {
1794
1794
  }
1795
1795
  };
1796
1796
  }
1797
- const XS = () => {
1797
+ const QS = () => {
1798
1798
  var e;
1799
1799
  return (e = ca()) == null ? void 0 : e.track;
1800
- }, QS = () => {
1800
+ }, ew = () => {
1801
1801
  var e;
1802
1802
  return (e = ca()) == null ? void 0 : e.pageView;
1803
- }, ew = () => {
1803
+ }, tw = () => {
1804
1804
  var e;
1805
1805
  return (e = ca()) == null ? void 0 : e.identify;
1806
1806
  }, ss = {
@@ -2003,7 +2003,7 @@ const XS = () => {
2003
2003
  return !1;
2004
2004
  }
2005
2005
  return t.protocol === "http:" || t.protocol === "https:";
2006
- }, tw = ({
2006
+ }, nw = ({
2007
2007
  image: e,
2008
2008
  className: t,
2009
2009
  width: n,
@@ -2215,7 +2215,7 @@ const sa = /* @__PURE__ */ rp(dN), yf = (e) => e.linkType === "Email" || !e.link
2215
2215
  };
2216
2216
  return I != null && I.getDebugEnabled() && (re["data-ya-action"] = k, re["data-ya-scopeoverride"] = _, re["data-ya-eventname"] = G), /* @__PURE__ */ ft.jsx("a", { ...v, ...re, suppressHydrationWarning: !0, children: l || r.label || j });
2217
2217
  }
2218
- ), nw = {
2218
+ ), rw = {
2219
2219
  URL: "URL",
2220
2220
  Email: "Email",
2221
2221
  Phone: "Phone"
@@ -3624,7 +3624,7 @@ let mp = class {
3624
3624
  }
3625
3625
  };
3626
3626
  const Cc = Nc(null);
3627
- function iw() {
3627
+ function ow() {
3628
3628
  const e = us(Cc);
3629
3629
  if (!e || e.map === void 0)
3630
3630
  throw new Error("Attempted to call useMapContext() outside of <Map>.");
@@ -3716,7 +3716,7 @@ const ON = ({
3716
3716
  ), ud = Nc(
3717
3717
  null
3718
3718
  );
3719
- function ow() {
3719
+ function sw() {
3720
3720
  const e = us(ud);
3721
3721
  if (!e)
3722
3722
  throw new Error(
@@ -3724,7 +3724,7 @@ function ow() {
3724
3724
  );
3725
3725
  return e;
3726
3726
  }
3727
- const sw = ({
3727
+ const lw = ({
3728
3728
  clusterRadius: e = 50,
3729
3729
  children: t,
3730
3730
  ClusterTemplate: n = DN
@@ -3865,7 +3865,7 @@ const sw = ({
3865
3865
  }), Q_(m, v);
3866
3866
  }
3867
3867
  return null;
3868
- }, lw = ({
3868
+ }, aw = ({
3869
3869
  children: e,
3870
3870
  coordinate: t,
3871
3871
  linkSameTab: n,
@@ -24658,7 +24658,7 @@ const Ru = {
24658
24658
  "editor-inner": "_editor-inner_1mmqo_6",
24659
24659
  "no-border": "_no-border_1mmqo_10"
24660
24660
  };
24661
- function aw({
24661
+ function cw({
24662
24662
  serializedAST: e,
24663
24663
  nodeClassNames: t
24664
24664
  }) {
@@ -25118,22 +25118,22 @@ ro.throws = function(e, t, n) {
25118
25118
  typeof t == "function" ? ri(!t(r), !0, !1, "not.throws", !1, "Expected function not to throw matching exception", n) : t instanceof RegExp ? ri(!t.test(r.message), !0, !1, "not.throws", !1, `Expected function not to throw exception matching \`${String(t)}\` pattern`, n) : t || ri(!1, !0, !1, "not.throws", !1, "Expected function not to throw", n);
25119
25119
  }
25120
25120
  };
25121
- const NE = /[!-\/:-@\[-`\{-~\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]/, cw = Do(/[A-Za-z]/), gg = Do(/[\dA-Za-z]/), uw = Do(/[#-'*+\--9=?A-Z^-~]/);
25122
- function dw(e) {
25121
+ const NE = /[!-\/:-@\[-`\{-~\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]/, uw = Do(/[A-Za-z]/), gg = Do(/[\dA-Za-z]/), dw = Do(/[#-'*+\--9=?A-Z^-~]/);
25122
+ function fw(e) {
25123
25123
  return (
25124
25124
  // Special whitespace codes (which have negative values), C0 and Control
25125
25125
  // character DEL
25126
25126
  e !== null && (e < 32 || e === 127)
25127
25127
  );
25128
25128
  }
25129
- const fw = Do(/\d/), hw = Do(/[\dA-Fa-f]/), gw = Do(/[!-/:-@[-`{-~]/);
25130
- function pw(e) {
25129
+ const hw = Do(/\d/), gw = Do(/[\dA-Fa-f]/), pw = Do(/[!-/:-@[-`{-~]/);
25130
+ function mw(e) {
25131
25131
  return e !== null && e < -2;
25132
25132
  }
25133
25133
  function CE(e) {
25134
25134
  return e !== null && (e < 0 || e === 32);
25135
25135
  }
25136
- function mw(e) {
25136
+ function _w(e) {
25137
25137
  return e === -2 || e === -1 || e === 32;
25138
25138
  }
25139
25139
  const EE = Do(NE), TE = Do(/\s/);
@@ -26003,7 +26003,7 @@ function Eg(e) {
26003
26003
  return String(e || "").toUpperCase();
26004
26004
  }
26005
26005
  const gc = {}.hasOwnProperty;
26006
- function _w(e, t) {
26006
+ function yw(e, t) {
26007
26007
  const n = t || {}, r = n.allowDangerousHtml || !1, l = {};
26008
26008
  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 || {
26009
26009
  className: ["sr-only"]
@@ -26108,14 +26108,14 @@ const FT = (e, t) => e(t, "i", oo(e, t)), BT = (e, t) => e(t, "b", oo(e, t)), HT
26108
26108
  strikethrough: WT,
26109
26109
  subscript: KT,
26110
26110
  superscript: zT
26111
- }, yw = (e) => {
26111
+ }, Nw = (e) => {
26112
26112
  const [t, n] = Cr();
26113
26113
  let r;
26114
26114
  return nr(() => {
26115
26115
  (async () => {
26116
26116
  if (!r)
26117
26117
  try {
26118
- r = (await import("./index-VbkIXtJn.js")).default;
26118
+ r = (await import("./index-B47Uqwbc.js")).default;
26119
26119
  } catch {
26120
26120
  throw new Error(
26121
26121
  "Failed to import React Markdown, cannot properly render LegacyRichText."
@@ -31655,7 +31655,7 @@ class t_ {
31655
31655
  let d = n;
31656
31656
  d = d.plus({ days: l });
31657
31657
  const f = this.getHours(d);
31658
- f && !f.isClosed && r.push(
31658
+ f != null && f.openIntervals && !f.isClosed && r.push(
31659
31659
  ...f.openIntervals.map(
31660
31660
  (p) => new Xg(d, p, this.timezone)
31661
31661
  )
@@ -31812,7 +31812,7 @@ function Qv(e, t) {
31812
31812
  f(e)
31813
31813
  ] });
31814
31814
  }
31815
- const Nw = (e) => {
31815
+ const Cw = (e) => {
31816
31816
  const [t, n] = Cr(!1), [r, l] = Cr(!1);
31817
31817
  nr(() => {
31818
31818
  l(!0);
@@ -31870,7 +31870,7 @@ function nS(e, t, n) {
31870
31870
  }
31871
31871
  return r;
31872
31872
  }
31873
- const Cw = (e) => {
31873
+ const Ew = (e) => {
31874
31874
  const [t, n] = Cr(!1);
31875
31875
  nr(() => {
31876
31876
  n(!0);
@@ -31923,13 +31923,16 @@ const Cw = (e) => {
31923
31923
  E.dayName
31924
31924
  );
31925
31925
  }) }) });
31926
- }, Ew = (e) => `<script type="application/ld+json">
31926
+ }, Tw = (e) => `<script type="application/ld+json">
31927
31927
  ${JSON.stringify(e)}
31928
- <\/script>`, Ld = (e, t) => ({
31929
- "@context": "https://schema.org",
31930
- "@type": t,
31931
- name: e.name
31932
- }), rS = (e) => typeof e != "object" ? !1 : "name" in e || "address" in e, iS = (e) => typeof e != "object" ? !1 : "line1" in e || "city" in e || "region" in e || "postalCode" in e || "countryCode" in e, n_ = (e) => iS(e) && {
31928
+ <\/script>`, Ld = (e, t) => {
31929
+ if (!(!e.name || typeof e.name != "string"))
31930
+ return {
31931
+ "@context": "https://schema.org",
31932
+ "@type": t,
31933
+ name: e.name
31934
+ };
31935
+ }, rS = (e) => typeof e != "object" ? !1 : !!e.name || !!e.address, iS = (e) => typeof e != "object" ? !1 : !!e.line1 || !!e.city || !!e.region || !!e.postalCode || !!e.countryCode, n_ = (e) => iS(e) && {
31933
31936
  address: {
31934
31937
  "@type": "PostalAddress",
31935
31938
  streetAddress: e.line1,
@@ -31942,7 +31945,7 @@ const Cw = (e) => {
31942
31945
  "@type": "Place",
31943
31946
  name: e.name,
31944
31947
  ...n_(e.address)
31945
- }, r_ = (e) => typeof e != "object" || !("image" in e) ? !1 : "url" in e.image, Id = (e) => {
31948
+ }, r_ = (e) => typeof e != "object" || !("image" in e) ? !1 : "url" in e.image && typeof e.image.url == "string", Id = (e) => {
31946
31949
  if (!e)
31947
31950
  return {};
31948
31951
  const t = new Array();
@@ -31951,9 +31954,9 @@ const Cw = (e) => {
31951
31954
  return {
31952
31955
  image: t
31953
31956
  };
31954
- }, Tw = (e) => r_(e) && {
31957
+ }, xw = (e) => r_(e) && {
31955
31958
  image: e.image.url
31956
- }, sS = (e) => typeof e != "object" ? !1 : "url" in e || "name" in e, lS = (e) => Array.isArray(e), aS = (e) => lS(e) && {
31959
+ }, sS = (e) => typeof e != "object" ? !1 : !!e.name, lS = (e) => Array.isArray(e) && e.length > 0, aS = (e) => lS(e) && {
31957
31960
  performer: {
31958
31961
  "@type": "PerformingGroup",
31959
31962
  name: e.join(" and ")
@@ -31962,9 +31965,22 @@ const Cw = (e) => {
31962
31965
  organizer: {
31963
31966
  "@type": "Organization",
31964
31967
  name: e.name,
31965
- url: e.url
31966
- }
31967
- }, uS = (e) => typeof e != "object" ? !1 : "url" in e || "priceCurrency" in e || "price" in e || "priceValidUntil" in e || "itemCondition" in e || "availability" in e, i_ = (e) => uS(e) && {
31968
+ ...e.url && { url: e.url }
31969
+ }
31970
+ }, uS = [
31971
+ "BackOrder",
31972
+ "Discontinued",
31973
+ "InStock",
31974
+ "InStoreOnly",
31975
+ "LimitedAvailability",
31976
+ "MadeToOrder",
31977
+ "OnlineOnly",
31978
+ "OutOfStock",
31979
+ "PreOrder",
31980
+ "PreSale",
31981
+ "Reserved",
31982
+ "SoldOut"
31983
+ ], dS = (e) => typeof e != "object" ? !1 : "priceCurrency" in e && "price" in e && "availability" in e && uS.includes(e.availability), i_ = (e) => dS(e) && {
31968
31984
  offers: {
31969
31985
  "@type": "Offer",
31970
31986
  url: e.url,
@@ -31974,32 +31990,35 @@ const Cw = (e) => {
31974
31990
  itemCondition: e.itemCondition,
31975
31991
  availability: e.availability
31976
31992
  }
31977
- }, xw = (e, t) => ({
31978
- ...Ld(e, t ?? "Event"),
31979
- ...Id(e.photoGallery),
31980
- ...oS({
31993
+ }, vw = (e, t) => {
31994
+ const n = oS({
31981
31995
  name: e.geomodifier,
31982
31996
  address: e.address
31983
- }),
31984
- startDate: e.c_startDate,
31985
- endDate: e.c_endDate,
31986
- description: e.description,
31987
- eventAttendanceMode: e.attendance,
31988
- eventStatus: e.eventStatus,
31989
- ...aS(e.performers),
31990
- ...cS({
31991
- name: e.organizerName
31992
- }),
31993
- ...i_({
31994
- url: "",
31995
- priceCurrency: e.c_currency,
31996
- price: e.price,
31997
- priceValidUntil: e.expirationDate,
31998
- itemCondition: e.stockStatus,
31999
- availability: e.availabilityDate
32000
- })
32001
- }), dS = (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, fS = (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, hS = (e) => {
32002
- if (!dS(e))
31997
+ });
31998
+ return {
31999
+ ...Ld(e, t ?? "Event"),
32000
+ ...Id(e.photoGallery),
32001
+ ...n && { location: n },
32002
+ ...aS(e.performers),
32003
+ ...cS({
32004
+ name: e.organizerName
32005
+ }),
32006
+ ...i_({
32007
+ url: "",
32008
+ priceCurrency: e.c_currency,
32009
+ price: e.price,
32010
+ priceValidUntil: e.expirationDate,
32011
+ itemCondition: e.condition,
32012
+ availability: e.stockStatus
32013
+ }),
32014
+ ...e.c_startDate && { startDate: e.c_startDate },
32015
+ ...e.c_endDate && { endDate: e.c_endDate },
32016
+ ...e.description && { description: e.description },
32017
+ ...e.attendance && { eventAttendanceMode: e.attendance },
32018
+ ...e.eventStatus && { eventStatus: e.eventStatus }
32019
+ };
32020
+ }, fS = (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, hS = (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, gS = (e) => {
32021
+ if (!fS(e))
32003
32022
  return {};
32004
32023
  let t = /* @__PURE__ */ new Map();
32005
32024
  t = rs(e.monday, t, "Mo"), t = rs(e.tuesday, t, "Tu"), t = rs(e.wednesday, t, "We"), t = rs(e.thursday, t, "Th"), t = rs(e.friday, t, "Fr"), t = rs(e.saturday, t, "Sa"), t = rs(e.sunday, t, "Su");
@@ -32012,7 +32031,9 @@ const Cw = (e) => {
32012
32031
  openingHours: n
32013
32032
  };
32014
32033
  }, rs = (e, t, n) => {
32015
- if (!fS(e) || e.isClosed) {
32034
+ if (!hS(e))
32035
+ return t;
32036
+ if (e.isClosed || !e.openIntervals) {
32016
32037
  const r = "00:00-00:00", l = t.get(r) ?? [];
32017
32038
  return l.push(n), t.set(r, l), t;
32018
32039
  }
@@ -32021,16 +32042,16 @@ const Cw = (e) => {
32021
32042
  d.push(n), t.set(l, d);
32022
32043
  }
32023
32044
  return t;
32024
- }, vw = (e, t) => ({
32045
+ }, Sw = (e, t) => ({
32025
32046
  ...Ld(e, t ?? "LocalBusiness"),
32026
32047
  // default, if schemaType is nil, set to LocalBusiness
32027
32048
  ...n_(e.address),
32028
- ...hS(e.hours),
32049
+ ...gS(e.hours),
32029
32050
  ...Id(e.photoGallery),
32030
32051
  description: e.description,
32031
32052
  telephone: e.mainPhone,
32032
32053
  email: e.email
32033
- }), gS = (e) => typeof e != "object" ? !1 : "ratingValue" in e || "bestRating" in e || "author" in e, pS = (e) => typeof e != "object" ? !1 : "ratingValue" in e || "reviewCount" in e, mS = (e) => gS(e) && {
32054
+ }), pS = (e) => typeof e != "object" ? !1 : "ratingValue" in e, mS = (e) => typeof e != "object" ? !1 : "ratingValue" in e && "reviewCount" in e, _S = (e) => pS(e) && {
32034
32055
  review: {
32035
32056
  "@type": "Review",
32036
32057
  reviewRating: {
@@ -32038,38 +32059,42 @@ const Cw = (e) => {
32038
32059
  ratingValue: e.ratingValue,
32039
32060
  bestRating: e.bestRating
32040
32061
  },
32041
- author: {
32042
- "@type": "Person",
32043
- name: e.author
32062
+ ...e.author && {
32063
+ author: {
32064
+ "@type": "Person",
32065
+ name: e.author
32066
+ }
32044
32067
  }
32045
32068
  }
32046
- }, _S = (e) => pS(e) ? {
32069
+ }, yS = (e) => mS(e) ? {
32047
32070
  aggregateRating: {
32048
32071
  "@type": "AggregateRating",
32049
32072
  ratingValue: e.ratingValue,
32050
32073
  reviewCount: e.reviewCount
32051
32074
  }
32052
- } : void 0, Sw = (e, t) => ({
32075
+ } : void 0, ww = (e, t) => ({
32053
32076
  ...Ld(e, t ?? "Product"),
32054
32077
  ...Id(e.photoGallery),
32055
- ...mS(e.c_reviews),
32056
- ..._S(e.c_aggregateRating),
32078
+ ..._S(e.c_reviews),
32079
+ ...yS(e.c_aggregateRating),
32057
32080
  ...i_({
32058
32081
  url: "",
32059
32082
  priceCurrency: e.c_currency,
32060
32083
  price: e.price,
32061
32084
  priceValidUntil: e.expirationDate,
32062
- itemCondition: e.stockStatus,
32063
- availability: e.availabilityDate
32085
+ itemCondition: e.condition,
32086
+ availability: e.stockStatus
32064
32087
  }),
32065
32088
  description: e.description,
32066
32089
  sku: e.sku,
32067
32090
  mpn: e.mpn,
32068
- brand: {
32069
- "@type": "Brand",
32070
- name: e.brand
32091
+ ...e.brand && {
32092
+ brand: {
32093
+ "@type": "Brand",
32094
+ name: e.brand
32095
+ }
32071
32096
  }
32072
- }), yS = (e) => typeof e != "object" ? !1 : "question" in e && "answer" in e, NS = (e) => typeof e != "object" ? !1 : "question" in e && "answerV2" in e ? "json" in e.answerV2 && typeof e.answerV2.json == "object" : !1;
32097
+ }), NS = (e) => !e || typeof e != "object" ? !1 : "question" in e && "answer" in e, CS = (e) => !e || typeof e != "object" ? !1 : "question" in e && "answerV2" in e ? "json" in e.answerV2 && typeof e.answerV2.json == "object" : !1;
32073
32098
  function rd(e, t) {
32074
32099
  for (const n in e)
32075
32100
  if (typeof e[n] == "object")
@@ -32081,33 +32106,37 @@ function rd(e, t) {
32081
32106
  else
32082
32107
  n === "text" && t.push(e[n]);
32083
32108
  }
32084
- function CS(e) {
32109
+ function ES(e) {
32085
32110
  if (e.json) {
32086
32111
  const t = [];
32087
32112
  return rd(e.json, t), t.join("");
32088
32113
  }
32089
32114
  return "";
32090
32115
  }
32091
- const ww = (e) => ({
32092
- "@context": "http://www.schema.org",
32093
- "@type": "FAQPage",
32094
- mainEntity: e.map((t) => {
32095
- if (yS(t) || NS(t))
32116
+ const Ow = (e) => {
32117
+ const t = e.map((n) => {
32118
+ if (NS(n) || CS(n))
32096
32119
  return {
32097
32120
  "@type": "Question",
32098
- name: t.question,
32121
+ name: n.question,
32099
32122
  acceptedAnswer: {
32100
32123
  "@type": "Answer",
32101
- text: "answer" in t ? t.answer : CS(t.answerV2)
32124
+ text: "answer" in n ? n.answer : ES(n.answerV2)
32102
32125
  }
32103
32126
  };
32104
- })
32105
- }), id = Math.log2(1.6745627884839434), ES = 4, TS = 19, od = "js-baidu-neg-lng-fix";
32127
+ }).filter(Boolean);
32128
+ if (t.length)
32129
+ return {
32130
+ "@context": "http://www.schema.org",
32131
+ "@type": "FAQPage",
32132
+ mainEntity: t
32133
+ };
32134
+ }, id = Math.log2(1.6745627884839434), TS = 4, xS = 19, od = "js-baidu-neg-lng-fix";
32106
32135
  let o_;
32107
- const xS = new Promise((e) => o_ = e), vS = "https://api.map.baidu.com/geoconv/v1/";
32136
+ const vS = new Promise((e) => o_ = e), SS = "https://api.map.baidu.com/geoconv/v1/";
32108
32137
  let Xl = [];
32109
- const SS = "gcj02ToBD09Callback_b872c21c";
32110
- let wS = 0, Qg;
32138
+ const wS = "gcj02ToBD09Callback_b872c21c";
32139
+ let OS = 0, Qg;
32111
32140
  async function s_(e) {
32112
32141
  return await new Promise((t, n) => {
32113
32142
  Xl.push({ coordinates: e, resolve: t, reject: n }), Xl.length === 1 && (Qg = setTimeout(r, 100)), Xl.length > 40 && (clearTimeout(Qg), r());
@@ -32116,7 +32145,7 @@ async function s_(e) {
32116
32145
  Xl = [];
32117
32146
  const d = [].concat(
32118
32147
  ...l.map((_) => _.coordinates)
32119
- ), f = SS + "_" + wS++, p = document.createElement("script");
32148
+ ), f = wS + "_" + OS++, p = document.createElement("script");
32120
32149
  window[f] = (_) => {
32121
32150
  var S;
32122
32151
  if (_.status) {
@@ -32137,7 +32166,7 @@ async function s_(e) {
32137
32166
  )
32138
32167
  );
32139
32168
  }), delete window[f], (S = p.parentNode) == null || S.removeChild(p);
32140
- }, xS.then((_) => {
32169
+ }, vS.then((_) => {
32141
32170
  const T = {
32142
32171
  ak: _,
32143
32172
  callback: f,
@@ -32147,12 +32176,12 @@ async function s_(e) {
32147
32176
  from: 3,
32148
32177
  to: 5
32149
32178
  };
32150
- p.src = vS + "?" + Object.entries(T).map(([E, S]) => E + "=" + S).join("&"), document.head.appendChild(p);
32179
+ p.src = SS + "?" + Object.entries(T).map(([E, S]) => E + "=" + S).join("&"), document.head.appendChild(p);
32151
32180
  });
32152
32181
  }
32153
32182
  });
32154
32183
  }
32155
- class OS extends nl {
32184
+ class DS extends nl {
32156
32185
  constructor(n) {
32157
32186
  super(n);
32158
32187
  Ie(this, "_wrapper");
@@ -32216,7 +32245,7 @@ class OS extends nl {
32216
32245
  });
32217
32246
  }
32218
32247
  }
32219
- class DS extends rl {
32248
+ class AS extends rl {
32220
32249
  constructor(n) {
32221
32250
  super(n);
32222
32251
  Ie(this, "_wrapper");
@@ -32296,8 +32325,8 @@ class DS extends rl {
32296
32325
  return `${this._originalWrapperClass} ${this._negativeLngFix ? od : ""} ${this._wrapperClass}`;
32297
32326
  }
32298
32327
  }
32299
- const AS = "https://api.map.baidu.com/getscript";
32300
- function MS(e, t, n, { params: r = {}, version: l = "3.0" } = {}) {
32328
+ const MS = "https://api.map.baidu.com/getscript";
32329
+ function RS(e, t, n, { params: r = {}, version: l = "3.0" } = {}) {
32301
32330
  window.BMAP_PROTOCOL = "https", window.BMap_loadScriptTime = (/* @__PURE__ */ new Date()).getTime();
32302
32331
  const d = n, f = {
32303
32332
  ak: d,
@@ -32306,18 +32335,18 @@ function MS(e, t, n, { params: r = {}, version: l = "3.0" } = {}) {
32306
32335
  };
32307
32336
  o_(d);
32308
32337
  const p = document.createElement("script");
32309
- p.src = AS + "?" + Object.entries(f).map(([E, S]) => E + "=" + S).join("&"), p.onload = () => e(), document.head.appendChild(p);
32338
+ p.src = MS + "?" + Object.entries(f).map(([E, S]) => E + "=" + S).join("&"), p.onload = () => e(), document.head.appendChild(p);
32310
32339
  let _ = "";
32311
- for (let E = ES; E <= TS; E++) {
32340
+ for (let E = TS; E <= xS; E++) {
32312
32341
  const S = 2 ** (E - id + 7);
32313
32342
  _ += `[data-baidu-zoom="${E}"] .${od}{transform:translateX(-${S}px);}`;
32314
32343
  }
32315
32344
  const T = document.createElement("style");
32316
32345
  T.appendChild(document.createTextNode(_)), document.head.appendChild(T);
32317
32346
  }
32318
- const Ow = new ds().withLoadFunction(MS).withMapClass(OS).withPinClass(DS).withProviderName("Baidu").build();
32347
+ const Dw = new ds().withLoadFunction(RS).withMapClass(DS).withPinClass(AS).withProviderName("Baidu").build();
32319
32348
  let l_;
32320
- function RS() {
32349
+ function bS() {
32321
32350
  class e extends Microsoft.Maps.CustomOverlay {
32322
32351
  constructor() {
32323
32352
  super({ beneathLabels: !1 });
@@ -32362,7 +32391,7 @@ function RS() {
32362
32391
  }
32363
32392
  l_ = e;
32364
32393
  }
32365
- class bS extends nl {
32394
+ class LS extends nl {
32366
32395
  constructor(n) {
32367
32396
  super(n);
32368
32397
  Ie(this, "wrapper");
@@ -32453,10 +32482,10 @@ class a_ extends rl {
32453
32482
  }
32454
32483
  }
32455
32484
  Ie(a_, "_pinId");
32456
- const ep = "BingMapsCallback_593d7d33", LS = "https://www.bing.com/api/maps/mapcontrol";
32457
- function IS(e, t, n, { params: r = {} } = {}) {
32485
+ const ep = "BingMapsCallback_593d7d33", IS = "https://www.bing.com/api/maps/mapcontrol";
32486
+ function kS(e, t, n, { params: r = {} } = {}) {
32458
32487
  window[ep] = () => {
32459
- RS(), e();
32488
+ bS(), e();
32460
32489
  };
32461
32490
  const l = {
32462
32491
  callback: ep,
@@ -32464,11 +32493,11 @@ function IS(e, t, n, { params: r = {} } = {}) {
32464
32493
  ...r
32465
32494
  };
32466
32495
  fp(
32467
- LS + "?" + Object.entries(l).map(([d, f]) => d + "=" + f).join("&")
32496
+ IS + "?" + Object.entries(l).map(([d, f]) => d + "=" + f).join("&")
32468
32497
  );
32469
32498
  }
32470
- const Dw = new ds().withLoadFunction(IS).withMapClass(bS).withPinClass(a_).withProviderName("Bing").build();
32471
- class kS extends nl {
32499
+ const Aw = new ds().withLoadFunction(kS).withMapClass(LS).withPinClass(a_).withProviderName("Bing").build();
32500
+ class PS extends nl {
32472
32501
  constructor(n) {
32473
32502
  var r, l, d;
32474
32503
  super(n);
@@ -32527,7 +32556,7 @@ class kS extends nl {
32527
32556
  this.map && this.map[l ? "easeTo" : "jumpTo"]({ center: d, zoom: n - 1 });
32528
32557
  }
32529
32558
  }
32530
- class PS extends rl {
32559
+ class $S extends rl {
32531
32560
  constructor(n) {
32532
32561
  super(n);
32533
32562
  Ie(this, "pin");
@@ -32557,7 +32586,7 @@ class PS extends rl {
32557
32586
  (d = this.pin) == null || d.remove();
32558
32587
  }
32559
32588
  }
32560
- function $S(e, t, n, { version: r = "v1.13.0" } = {}) {
32589
+ function FS(e, t, n, { version: r = "v1.13.0" } = {}) {
32561
32590
  const l = `https://api.mapbox.com/mapbox-gl-js/${r}/mapbox-gl`, d = document.createElement("link");
32562
32591
  d.rel = "stylesheet", d.href = l + ".css";
32563
32592
  const f = document.createElement("script");
@@ -32565,7 +32594,7 @@ function $S(e, t, n, { version: r = "v1.13.0" } = {}) {
32565
32594
  mapboxgl.accessToken = n, e();
32566
32595
  }, document.head.appendChild(d), document.head.appendChild(f);
32567
32596
  }
32568
- const Aw = new ds().withLoadFunction($S).withMapClass(kS).withPinClass(PS).withProviderName("Mapbox").build();
32597
+ const Mw = new ds().withLoadFunction(FS).withMapClass(PS).withPinClass($S).withProviderName("Mapbox").build();
32569
32598
  var cs;
32570
32599
  let c_ = (cs = class extends nl {
32571
32600
  constructor(n) {
@@ -32627,7 +32656,7 @@ let c_ = (cs = class extends nl {
32627
32656
  };
32628
32657
  d.accessToken = cs.apiKey, this.map && L.tileLayer(l, d).addTo(this.map);
32629
32658
  }
32630
- }, Ie(cs, "apiKey"), cs), FS = class extends ad {
32659
+ }, Ie(cs, "apiKey"), cs), BS = class extends ad {
32631
32660
  constructor(n) {
32632
32661
  super(n);
32633
32662
  Ie(this, "pin");
@@ -32665,7 +32694,7 @@ let c_ = (cs = class extends nl {
32665
32694
  ), this.pin.setZIndexOffset(n.getZIndex());
32666
32695
  }
32667
32696
  };
32668
- function BS(e, t, n, { version: r = "1.7.1" } = {}) {
32697
+ function HS(e, t, n, { version: r = "1.7.1" } = {}) {
32669
32698
  const l = `https://unpkg.com/leaflet@${r}/dist/leaflet`;
32670
32699
  c_.apiKey = n;
32671
32700
  const d = document.createElement("link");
@@ -32673,8 +32702,8 @@ function BS(e, t, n, { version: r = "1.7.1" } = {}) {
32673
32702
  const f = document.createElement("script");
32674
32703
  f.src = l + ".js", f.onload = () => e(), document.head.appendChild(d), document.head.appendChild(f);
32675
32704
  }
32676
- const u_ = new ds().withLoadFunction(BS).withMapClass(c_).withPinClass(FS).withProviderName("Leaflet").build(), HS = u_.getMapClass(), WS = u_.getPinClass();
32677
- class KS extends HS {
32705
+ const u_ = new ds().withLoadFunction(HS).withMapClass(c_).withPinClass(BS).withProviderName("Leaflet").build(), WS = u_.getMapClass(), KS = u_.getPinClass();
32706
+ class zS extends WS {
32678
32707
  constructor() {
32679
32708
  super(...arguments);
32680
32709
  Ie(this, "map");
@@ -32696,9 +32725,9 @@ class KS extends HS {
32696
32725
  });
32697
32726
  }
32698
32727
  }
32699
- class zS extends WS {
32728
+ class US extends KS {
32700
32729
  }
32701
- function US(e, t, n, { version: r = "v1.3.2" } = {}) {
32730
+ function GS(e, t, n, { version: r = "v1.3.2" } = {}) {
32702
32731
  const l = `https://api.mqcdn.com/sdk/mapquest-js/${r}/mapquest-maps`, d = document.createElement("link");
32703
32732
  d.rel = "stylesheet", d.href = l + ".css";
32704
32733
  const f = document.createElement("script");
@@ -32706,79 +32735,80 @@ function US(e, t, n, { version: r = "v1.3.2" } = {}) {
32706
32735
  L.mapquest.key = n, e();
32707
32736
  }, document.head.appendChild(d), document.head.appendChild(f);
32708
32737
  }
32709
- const Rw = new ds().withLoadFunction(US).withMapClass(KS).withPinClass(zS).withProviderName("MapQuest").build();
32738
+ const bw = new ds().withLoadFunction(GS).withMapClass(zS).withPinClass(US).withProviderName("MapQuest").build();
32710
32739
  export {
32711
- xw as $,
32712
- qS as A,
32713
- XS as B,
32714
- QS as C,
32715
- ew as D,
32716
- ZS as E,
32740
+ vw as $,
32741
+ ZS as A,
32742
+ QS as B,
32743
+ ew as C,
32744
+ tw as D,
32745
+ JS as E,
32717
32746
  Uu as F,
32718
32747
  ap as G,
32719
- JS as H,
32720
- tw as I,
32748
+ XS as H,
32749
+ nw as I,
32721
32750
  ss as J,
32722
32751
  hN as K,
32723
32752
  ry as L,
32724
32753
  cf as M,
32725
- nw as N,
32754
+ rw as N,
32726
32755
  ON as O,
32727
- iw as P,
32756
+ ow as P,
32728
32757
  _p as Q,
32729
- sw as R,
32730
- ow as S,
32731
- lw as T,
32732
- aw as U,
32733
- yw as V,
32734
- Nw as W,
32735
- Cw as X,
32758
+ lw as R,
32759
+ sw as S,
32760
+ aw as T,
32761
+ cw as U,
32762
+ Nw as V,
32763
+ Cw as W,
32764
+ Ew as X,
32736
32765
  sn as Y,
32737
- Ew as Z,
32766
+ Tw as Z,
32738
32767
  Ld as _,
32739
- _w as a,
32740
- vw as a0,
32741
- Sw as a1,
32742
- ww as a2,
32743
- n_ as a3,
32744
- oS as a4,
32745
- hS as a5,
32746
- i_ as a6,
32747
- aS as a7,
32748
- cS as a8,
32749
- Id as a9,
32750
- Tw as aa,
32751
- mS as ab,
32752
- _S as ac,
32753
- Ow as ad,
32768
+ yw as a,
32769
+ Sw as a0,
32770
+ ww as a1,
32771
+ Ow as a2,
32772
+ ES as a3,
32773
+ n_ as a4,
32774
+ oS as a5,
32775
+ gS as a6,
32776
+ i_ as a7,
32777
+ aS as a8,
32778
+ cS as a9,
32779
+ Id as aa,
32780
+ xw as ab,
32781
+ yS as ac,
32782
+ _S as ad,
32754
32783
  Dw as ae,
32755
- vN as af,
32756
- Aw as ag,
32757
- u_ as ah,
32758
- Rw as ai,
32759
- un as aj,
32784
+ Aw as af,
32785
+ vN as ag,
32786
+ Mw as ah,
32787
+ u_ as ai,
32788
+ bw as aj,
32789
+ un as ak,
32760
32790
  rp as b,
32761
32791
  sa as c,
32762
- pw as d,
32792
+ mw as d,
32763
32793
  fc as e,
32764
- cw as f,
32794
+ uw as f,
32765
32795
  oa as g,
32766
32796
  gg as h,
32767
- dw as i,
32797
+ fw as i,
32768
32798
  ft as j,
32769
- uw as k,
32770
- gw as l,
32771
- mw as m,
32799
+ dw as k,
32800
+ pw as l,
32801
+ _w as m,
32772
32802
  ua as n,
32773
- fw as o,
32803
+ hw as o,
32774
32804
  Zl as p,
32775
- hw as q,
32805
+ gw as q,
32776
32806
  vE as r,
32777
32807
  _d as s,
32778
32808
  CE as t,
32779
32809
  uE as u,
32780
32810
  Qp as v,
32781
- VS as w,
32811
+ qS as w,
32782
32812
  rN as x,
32783
32813
  lp as y,
32784
32814
  ca as z