contentful 10.12.2 → 10.12.3

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.
@@ -5065,7 +5065,7 @@ function createClient(params) {
5065
5065
  environment: 'master',
5066
5066
  };
5067
5067
  const config = Object.assign(Object.assign({}, defaultConfig), params);
5068
- const userAgentHeader = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(`contentful.js/${"10.12.2"}`, config.application, config.integration);
5068
+ const userAgentHeader = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(`contentful.js/${"10.12.3"}`, config.application, config.integration);
5069
5069
  config.headers = Object.assign(Object.assign({}, config.headers), { 'Content-Type': 'application/vnd.contentful.delivery.v1+json', 'X-Contentful-User-Agent': userAgentHeader });
5070
5070
  const http = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.createHttpClient)(axios__WEBPACK_IMPORTED_MODULE_4__["default"], config);
5071
5071
  if (!http.defaults.baseURL) {
@@ -5411,7 +5411,7 @@ function createContentfulApi({ http, getGlobalOptions }, options) {
5411
5411
  http.defaults.baseURL = getGlobalOptions().environmentBaseUrl;
5412
5412
  }
5413
5413
  return {
5414
- version: "10.12.2",
5414
+ version: "10.12.3",
5415
5415
  getSpace,
5416
5416
  getContentType,
5417
5417
  getContentTypes,
@@ -16969,11 +16969,10 @@ __webpack_require__.r(__webpack_exports__);
16969
16969
  var R = { 0: 8203, 1: 8204, 2: 8205, 3: 8290, 4: 8291, 5: 8288, 6: 65279, 7: 8289, 8: 119155, 9: 119156, a: 119157, b: 119158, c: 119159, d: 119160, e: 119161, f: 119162 }, x = { 0: 8203, 1: 8204, 2: 8205, 3: 65279 }, k = new Array(4).fill(String.fromCodePoint(x[0])).join(""), M = "\0";
16970
16970
  function _(e) {
16971
16971
  let t = JSON.stringify(e);
16972
- return `${k}${Array.from(t).map((o) => {
16973
- let n = o.charCodeAt(0);
16974
- if (n > 255)
16975
- throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${t} on character ${o} (${n})`);
16976
- return Array.from(n.toString(4).padStart(4, "0")).map((r) => String.fromCodePoint(x[r])).join("");
16972
+ return `${k}${Array.from(t).map((r) => {
16973
+ let o = r.charCodeAt(0);
16974
+ if (o > 255) throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${t} on character ${r} (${o})`);
16975
+ return Array.from(o.toString(4).padStart(4, "0")).map((n) => String.fromCodePoint(x[n])).join("");
16977
16976
  }).join("")}`;
16978
16977
  }
16979
16978
  function B(e) {
@@ -16987,57 +16986,51 @@ function D(e) {
16987
16986
  }
16988
16987
  return !0;
16989
16988
  }
16990
- function Q(e, t, o = "auto") {
16991
- return o === !0 || o === "auto" && (B(e) || D(e)) ? e : `${e}${_(t)}`;
16989
+ function Q(e, t, r = "auto") {
16990
+ return r === !0 || r === "auto" && (B(e) || D(e)) ? e : `${e}${_(t)}`;
16992
16991
  }
16993
16992
  var z = Object.fromEntries(Object.entries(x).map((e) => e.reverse())), J = Object.fromEntries(Object.entries(R).map((e) => e.reverse())), G = `${Object.values(R).map((e) => `\\u{${e.toString(16)}}`).join("")}`, N = new RegExp(`[${G}]{4,}`, "gu");
16994
16993
  function Z(e) {
16995
16994
  let t = e.match(N);
16996
- if (t)
16997
- return H(t[0], !0)[0];
16995
+ if (t) return H(t[0], !0)[0];
16998
16996
  }
16999
16997
  function H(e, t = !1) {
17000
- let o = Array.from(e);
17001
- if (o.length % 2 === 0) {
17002
- if (o.length % 4 || !e.startsWith(k))
17003
- return K(o, t);
17004
- } else
17005
- throw new Error("Encoded data has invalid length");
17006
- let n = [];
17007
- for (let r = o.length * 0.25; r--; ) {
17008
- let s = o.slice(r * 4, r * 4 + 4).map((i) => z[i.codePointAt(0)]).join("");
17009
- n.unshift(String.fromCharCode(parseInt(s, 4)));
16998
+ let r = Array.from(e);
16999
+ if (r.length % 2 === 0) {
17000
+ if (r.length % 4 || !e.startsWith(k)) return K(r, t);
17001
+ } else throw new Error("Encoded data has invalid length");
17002
+ let o = [];
17003
+ for (let n = r.length * 0.25; n--; ) {
17004
+ let s = r.slice(n * 4, n * 4 + 4).map((i) => z[i.codePointAt(0)]).join("");
17005
+ o.unshift(String.fromCharCode(parseInt(s, 4)));
17010
17006
  }
17011
17007
  if (t) {
17012
- n.shift();
17013
- let r = n.indexOf(M);
17014
- return r === -1 && (r = n.length), [JSON.parse(n.slice(0, r).join(""))];
17008
+ o.shift();
17009
+ let n = o.indexOf(M);
17010
+ return n === -1 && (n = o.length), [JSON.parse(o.slice(0, n).join(""))];
17015
17011
  }
17016
- return n.join("").split(M).filter(Boolean).map((r) => JSON.parse(r));
17012
+ return o.join("").split(M).filter(Boolean).map((n) => JSON.parse(n));
17017
17013
  }
17018
17014
  function K(e, t) {
17019
- var o;
17020
- let n = [];
17015
+ var r;
17016
+ let o = [];
17021
17017
  for (let c = e.length * 0.5; c--; ) {
17022
- let f = `${J[e[c * 2].codePointAt(0)]}${J[e[c * 2 + 1].codePointAt(0)]}`;
17023
- n.unshift(String.fromCharCode(parseInt(f, 16)));
17018
+ let a = `${J[e[c * 2].codePointAt(0)]}${J[e[c * 2 + 1].codePointAt(0)]}`;
17019
+ o.unshift(String.fromCharCode(parseInt(a, 16)));
17024
17020
  }
17025
- let r = [], s = [n.join("")], i = 10;
17021
+ let n = [], s = [o.join("")], i = 10;
17026
17022
  for (; s.length; ) {
17027
17023
  let c = s.shift();
17028
17024
  try {
17029
- if (r.push(JSON.parse(c)), t)
17030
- return r;
17031
- } catch (f) {
17032
- if (!i--)
17033
- throw f;
17034
- let l = +((o = f.message.match(/\sposition\s(\d+)$/)) == null ? void 0 : o[1]);
17035
- if (!l)
17036
- throw f;
17037
- s.unshift(c.substring(0, l), c.substring(l));
17025
+ if (n.push(JSON.parse(c)), t) return n;
17026
+ } catch (a) {
17027
+ if (!i--) throw a;
17028
+ let u = +((r = a.message.match(/\sposition\s(\d+)$/)) == null ? void 0 : r[1]);
17029
+ if (!u) throw a;
17030
+ s.unshift(c.substring(0, u), c.substring(u));
17038
17031
  }
17039
17032
  }
17040
- return r;
17033
+ return n;
17041
17034
  }
17042
17035
  function X(e) {
17043
17036
  var t;
@@ -17055,137 +17048,137 @@ function se(e) {
17055
17048
  function ce(e) {
17056
17049
  return X(e);
17057
17050
  }
17058
- var Y = Object.prototype.hasOwnProperty, q = Object.prototype.toString, ee = function(t, o, n) {
17059
- if (q.call(o) !== "[object Function]")
17051
+ var Y = Object.prototype.hasOwnProperty, q = Object.prototype.toString, ee = function(t, r, o) {
17052
+ if (q.call(r) !== "[object Function]")
17060
17053
  throw new TypeError("iterator must be a function");
17061
- var r = t.length;
17062
- if (r === +r)
17063
- for (var s = 0; s < r; s++)
17064
- o.call(n, t[s], s, t);
17054
+ var n = t.length;
17055
+ if (n === +n)
17056
+ for (var s = 0; s < n; s++)
17057
+ r.call(o, t[s], s, t);
17065
17058
  else
17066
17059
  for (var i in t)
17067
- Y.call(t, i) && o.call(n, t[i], i, t);
17068
- }, te = ee, y = a;
17069
- function a(e, t, o) {
17060
+ Y.call(t, i) && r.call(o, t[i], i, t);
17061
+ }, te = ee, y = f;
17062
+ function f(e, t, r) {
17070
17063
  if (arguments.length === 3)
17071
- return a.set(e, t, o);
17064
+ return f.set(e, t, r);
17072
17065
  if (arguments.length === 2)
17073
- return a.get(e, t);
17074
- var n = a.bind(a, e);
17075
- for (var r in a)
17076
- a.hasOwnProperty(r) && (n[r] = a[r].bind(n, e));
17077
- return n;
17066
+ return f.get(e, t);
17067
+ var o = f.bind(f, e);
17068
+ for (var n in f)
17069
+ f.hasOwnProperty(n) && (o[n] = f[n].bind(o, e));
17070
+ return o;
17078
17071
  }
17079
- a.get = function(t, o) {
17080
- for (var n = Array.isArray(o) ? o : a.parse(o), r = 0; r < n.length; ++r) {
17081
- var s = n[r];
17072
+ f.get = function(t, r) {
17073
+ for (var o = Array.isArray(r) ? r : f.parse(r), n = 0; n < o.length; ++n) {
17074
+ var s = o[n];
17082
17075
  if (!(typeof t == "object" && s in t))
17083
17076
  throw new Error("Invalid reference token: " + s);
17084
17077
  t = t[s];
17085
17078
  }
17086
17079
  return t;
17087
17080
  };
17088
- a.set = function(t, o, n) {
17089
- var r = Array.isArray(o) ? o : a.parse(o), s = r[0];
17090
- if (r.length === 0)
17081
+ f.set = function(t, r, o) {
17082
+ var n = Array.isArray(r) ? r : f.parse(r), s = n[0];
17083
+ if (n.length === 0)
17091
17084
  throw Error("Can not set the root object");
17092
- for (var i = 0; i < r.length - 1; ++i) {
17093
- var c = r[i];
17094
- typeof c != "string" && typeof c != "number" && (c = String(c)), !(c === "__proto__" || c === "constructor" || c === "prototype") && (c === "-" && Array.isArray(t) && (c = t.length), s = r[i + 1], c in t || (s.match(/^(\d+|-)$/) ? t[c] = [] : t[c] = {}), t = t[c]);
17085
+ for (var i = 0; i < n.length - 1; ++i) {
17086
+ var c = n[i];
17087
+ typeof c != "string" && typeof c != "number" && (c = String(c)), !(c === "__proto__" || c === "constructor" || c === "prototype") && (c === "-" && Array.isArray(t) && (c = t.length), s = n[i + 1], c in t || (s.match(/^(\d+|-)$/) ? t[c] = [] : t[c] = {}), t = t[c]);
17095
17088
  }
17096
- return s === "-" && Array.isArray(t) && (s = t.length), t[s] = n, this;
17089
+ return s === "-" && Array.isArray(t) && (s = t.length), t[s] = o, this;
17097
17090
  };
17098
- a.remove = function(e, t) {
17099
- var o = Array.isArray(t) ? t : a.parse(t), n = o[o.length - 1];
17100
- if (n === void 0)
17091
+ f.remove = function(e, t) {
17092
+ var r = Array.isArray(t) ? t : f.parse(t), o = r[r.length - 1];
17093
+ if (o === void 0)
17101
17094
  throw new Error('Invalid JSON pointer for remove: "' + t + '"');
17102
- var r = a.get(e, o.slice(0, -1));
17103
- if (Array.isArray(r)) {
17104
- var s = +n;
17105
- if (n === "" && isNaN(s))
17106
- throw new Error('Invalid array index: "' + n + '"');
17107
- Array.prototype.splice.call(r, s, 1);
17095
+ var n = f.get(e, r.slice(0, -1));
17096
+ if (Array.isArray(n)) {
17097
+ var s = +o;
17098
+ if (o === "" && isNaN(s))
17099
+ throw new Error('Invalid array index: "' + o + '"');
17100
+ Array.prototype.splice.call(n, s, 1);
17108
17101
  } else
17109
- delete r[n];
17102
+ delete n[o];
17110
17103
  };
17111
- a.dict = function(t, o) {
17112
- var n = {};
17113
- return a.walk(t, function(r, s) {
17114
- n[s] = r;
17115
- }, o), n;
17104
+ f.dict = function(t, r) {
17105
+ var o = {};
17106
+ return f.walk(t, function(n, s) {
17107
+ o[s] = n;
17108
+ }, r), o;
17116
17109
  };
17117
- a.walk = function(t, o, n) {
17118
- var r = [];
17119
- n = n || function(s) {
17110
+ f.walk = function(t, r, o) {
17111
+ var n = [];
17112
+ o = o || function(s) {
17120
17113
  var i = Object.prototype.toString.call(s);
17121
17114
  return i === "[object Object]" || i === "[object Array]";
17122
17115
  }, function s(i) {
17123
- te(i, function(c, f) {
17124
- r.push(String(f)), n(c) ? s(c) : o(c, a.compile(r)), r.pop();
17116
+ te(i, function(c, a) {
17117
+ n.push(String(a)), o(c) ? s(c) : r(c, f.compile(n)), n.pop();
17125
17118
  });
17126
17119
  }(t);
17127
17120
  };
17128
- a.has = function(t, o) {
17121
+ f.has = function(t, r) {
17129
17122
  try {
17130
- a.get(t, o);
17131
- } catch (n) {
17123
+ f.get(t, r);
17124
+ } catch (o) {
17132
17125
  return !1;
17133
17126
  }
17134
17127
  return !0;
17135
17128
  };
17136
- a.escape = function(t) {
17129
+ f.escape = function(t) {
17137
17130
  return t.toString().replace(/~/g, "~0").replace(/\//g, "~1");
17138
17131
  };
17139
- a.unescape = function(t) {
17132
+ f.unescape = function(t) {
17140
17133
  return t.replace(/~1/g, "/").replace(/~0/g, "~");
17141
17134
  };
17142
- a.parse = function(t) {
17135
+ f.parse = function(t) {
17143
17136
  if (t === "")
17144
17137
  return [];
17145
17138
  if (t.charAt(0) !== "/")
17146
17139
  throw new Error("Invalid JSON pointer: " + t);
17147
- return t.substring(1).split(/\//).map(a.unescape);
17140
+ return t.substring(1).split(/\//).map(f.unescape);
17148
17141
  };
17149
- a.compile = function(t) {
17150
- return t.length === 0 ? "" : "/" + t.map(a.escape).join("/");
17142
+ f.compile = function(t) {
17143
+ return t.length === 0 ? "" : "/" + t.map(f.escape).join("/");
17151
17144
  };
17152
17145
  const ne = ({
17153
17146
  pointer: e,
17154
17147
  mappings: t,
17155
- data: o,
17156
- hiddenStrings: n
17148
+ data: r,
17149
+ hiddenStrings: o
17157
17150
  }) => {
17158
- const r = t[e];
17151
+ const n = t[e];
17159
17152
  delete t[e];
17160
- const s = F(o, e);
17153
+ const s = F(r, e);
17161
17154
  for (const i of s) {
17162
- t[i] = r;
17163
- const c = y.get(o, i), f = O(c, n);
17164
- y.set(o, i, f);
17155
+ t[i] = n;
17156
+ const c = y.get(r, i), a = O(c, o);
17157
+ y.set(r, i, a);
17165
17158
  }
17166
17159
  }, F = (e, t = "") => {
17167
- const o = [], n = y.get(e, t);
17168
- if (n.content)
17169
- for (let r = 0; r < n.content.length; r++)
17170
- n.content[r].nodeType === "text" ? o.push(`${t}/content/${r}/value`) : o.push(...F(e, `${t}/content/${r}`));
17171
- return o;
17160
+ const r = [], o = y.get(e, t);
17161
+ if (o.content)
17162
+ for (let n = 0; n < o.content.length; n++)
17163
+ o.content[n].nodeType === "text" ? r.push(`${t}/content/${n}/value`) : r.push(...F(e, `${t}/content/${n}`));
17164
+ return r;
17172
17165
  }, I = ({
17173
17166
  entityId: e,
17174
17167
  entityType: t,
17175
- space: o,
17176
- environment: n,
17177
- field: r,
17168
+ space: r,
17169
+ environment: o,
17170
+ field: n,
17178
17171
  locale: s,
17179
17172
  editorInterface: i,
17180
17173
  fieldType: c,
17181
- targetOrigin: f
17174
+ targetOrigin: a
17182
17175
  }) => ({
17183
17176
  origin: "contentful.com",
17184
- href: `${`${f || "https://app.contentful.com"}/spaces/${o}/environments/${n}`}/${t === "Entry" ? "entries" : "assets"}/${e}/?focusedField=${r}&focusedLocale=${s}`,
17177
+ href: `${`${a || "https://app.contentful.com"}/spaces/${r}/environments/${o}`}/${t === "Entry" ? "entries" : "assets"}/${e}/?focusedField=${n}&focusedLocale=${s}`,
17185
17178
  contentful: {
17186
- space: o,
17187
- environment: n,
17188
- field: r,
17179
+ space: r,
17180
+ environment: o,
17181
+ field: n,
17189
17182
  locale: s,
17190
17183
  entity: e,
17191
17184
  entityType: t,
@@ -17211,12 +17204,12 @@ const re = [
17211
17204
  "multipleLine",
17212
17205
  "markdown"
17213
17206
  ];
17214
- function C(e, t, o, n, r, s, i) {
17207
+ function C(e, t, r, o, n, s, i) {
17215
17208
  const c = i ? t[i] : t;
17216
17209
  switch (e) {
17217
17210
  case "Symbol": {
17218
- const f = O(c, o);
17219
- y.set(n, r, f);
17211
+ const a = O(c, r);
17212
+ y.set(o, n, a);
17220
17213
  break;
17221
17214
  }
17222
17215
  case "RichText": {
@@ -17224,13 +17217,13 @@ function C(e, t, o, n, r, s, i) {
17224
17217
  pointer: "",
17225
17218
  mappings: s,
17226
17219
  data: c,
17227
- hiddenStrings: o
17220
+ hiddenStrings: r
17228
17221
  });
17229
17222
  break;
17230
17223
  }
17231
17224
  case "Array": {
17232
- const f = c.map((l) => typeof l == "string" ? O(l, o) : l);
17233
- y.set(n, r, f);
17225
+ const a = c.map((u) => typeof u == "string" ? O(u, r) : u);
17226
+ y.set(o, n, a);
17234
17227
  break;
17235
17228
  }
17236
17229
  }
@@ -17241,24 +17234,24 @@ const ie = (e, t) => {
17241
17234
  "GraphQL response does not contain Content Source Maps information.",
17242
17235
  e
17243
17236
  ), e;
17244
- const o = U(
17237
+ const r = U(
17245
17238
  e
17246
17239
  ), {
17247
- spaces: n,
17248
- environments: r,
17240
+ spaces: o,
17241
+ environments: n,
17249
17242
  editorInterfaces: s,
17250
17243
  fields: i,
17251
17244
  locales: c,
17252
- entries: f,
17253
- assets: l,
17245
+ entries: a,
17246
+ assets: u,
17254
17247
  mappings: m,
17255
17248
  fieldTypes: g
17256
- } = o.extensions.contentSourceMaps, p = o;
17249
+ } = r.extensions.contentSourceMaps, p = r;
17257
17250
  for (const d in m) {
17258
- const { source: u } = m[d], h = "entry" in u ? f[u.entry] : l[u.asset], b = "entry" in u ? "Entry" : "Asset";
17251
+ const { source: l } = m[d], h = "entry" in l ? a[l.entry] : u[l.asset], b = "entry" in l ? "Entry" : "Asset";
17259
17252
  if (!h)
17260
- return o;
17261
- const v = n[h.space], w = r[h.environment], A = h.id, S = i[u.field], E = c[u.locale], T = s[u.editorInterface], P = g[u.fieldType];
17253
+ return r;
17254
+ const v = o[h.space], w = n[h.environment], A = h.id, S = i[l.field], E = c[l.locale], T = s[l.editorInterface], P = g[l.fieldType];
17262
17255
  if (!(V(T.widgetNamespace) && !W(T.widgetId)))
17263
17256
  if (y.has(p, d)) {
17264
17257
  const L = y.get(p, d);
@@ -17279,28 +17272,28 @@ const ie = (e, t) => {
17279
17272
  } else
17280
17273
  console.error(`Pointer ${d} not found in GraphQL data or href could not be generated.`);
17281
17274
  }
17282
- return o;
17283
- }, $ = (e, t, o, n) => {
17275
+ return r;
17276
+ }, $ = (e, t, r, o) => {
17284
17277
  if (!e.fields)
17285
17278
  return;
17286
- const { contentSourceMaps: r } = e.sys;
17287
- if (!r) {
17279
+ const { contentSourceMaps: n } = e.sys;
17280
+ if (!n) {
17288
17281
  console.error("Content source maps data is missing");
17289
17282
  return;
17290
17283
  }
17291
- const { mappings: s } = r;
17284
+ const { mappings: s } = n;
17292
17285
  for (const i in s) {
17293
- const { source: c } = s[i], f = e.sys.space.sys.id, l = e.sys.environment.sys.id, m = e.sys.id, g = e.sys.type, p = t[c.fieldType], d = o[c.editorInterface];
17286
+ const { source: c } = s[i], a = e.sys.space.sys.id, u = e.sys.environment.sys.id, m = e.sys.id, g = e.sys.type, p = t[c.fieldType], d = r[c.editorInterface];
17294
17287
  if (V(d.widgetNamespace) && !W(d.widgetId))
17295
17288
  continue;
17296
- const u = i.startsWith("/") ? i : `/${i}`;
17297
- if (y.has(e, u)) {
17298
- const h = y.get(e, u);
17289
+ const l = i.startsWith("/") ? i : `/${i}`;
17290
+ if (y.has(e, l)) {
17291
+ const h = y.get(e, l);
17299
17292
  if (h === null)
17300
17293
  return;
17301
- const v = u.split("/").pop();
17294
+ const v = l.split("/").pop();
17302
17295
  if (!v) {
17303
- console.error("Field name could not be extracted from the pointer", u);
17296
+ console.error("Field name could not be extracted from the pointer", l);
17304
17297
  return;
17305
17298
  }
17306
17299
  const w = e.sys.locale;
@@ -17308,34 +17301,34 @@ const ie = (e, t) => {
17308
17301
  const A = I({
17309
17302
  entityId: m,
17310
17303
  entityType: g,
17311
- space: f,
17312
- environment: l,
17304
+ space: a,
17305
+ environment: u,
17313
17306
  field: v,
17314
17307
  locale: w,
17315
17308
  editorInterface: d,
17316
17309
  fieldType: p,
17317
- targetOrigin: n
17310
+ targetOrigin: o
17318
17311
  });
17319
- C(p, h, A, e, u, s);
17312
+ C(p, h, A, e, l, s);
17320
17313
  } else
17321
17314
  Object.keys(h).forEach((S) => {
17322
17315
  const E = I({
17323
17316
  entityId: m,
17324
17317
  entityType: g,
17325
- space: f,
17326
- environment: l,
17318
+ space: a,
17319
+ environment: u,
17327
17320
  field: v,
17328
17321
  locale: S,
17329
17322
  editorInterface: d,
17330
17323
  fieldType: p,
17331
- targetOrigin: n
17324
+ targetOrigin: o
17332
17325
  });
17333
17326
  C(
17334
17327
  p,
17335
17328
  h,
17336
17329
  E,
17337
17330
  e,
17338
- `${u}/${S}`,
17331
+ `${l}/${S}`,
17339
17332
  s,
17340
17333
  S
17341
17334
  );
@@ -17344,23 +17337,24 @@ const ie = (e, t) => {
17344
17337
  console.error("Pointer not found in the target", i, e);
17345
17338
  }
17346
17339
  }, ae = (e, t) => {
17347
- const o = U(
17340
+ var o;
17341
+ const r = U(
17348
17342
  e
17349
17343
  );
17350
- if (o.sys.type === "Array") {
17351
- const n = o;
17352
- if (!n.sys.contentSourceMapsLookup)
17344
+ if (r.sys && "items" in r) {
17345
+ const n = r;
17346
+ if (!((o = n.sys) != null && o.contentSourceMapsLookup))
17353
17347
  return console.error("Content source maps lookup data is missing"), n;
17354
17348
  const {
17355
- contentSourceMapsLookup: { fieldTypes: r, editorInterfaces: s }
17356
- } = n.sys, { items: i, includes: c } = n;
17357
- i.forEach((f) => $(f, r, s, t)), c && c.Entry && c.Entry.forEach(
17358
- (f) => $(f, r, s, t)
17359
- ), c && c.Asset && c.Asset.forEach(
17360
- (f) => $(f, r, s, t)
17349
+ contentSourceMapsLookup: { fieldTypes: s, editorInterfaces: i }
17350
+ } = n.sys, { items: c, includes: a } = n;
17351
+ c.forEach((u) => $(u, s, i, t)), a && a.Entry && a.Entry.forEach(
17352
+ (u) => $(u, s, i, t)
17353
+ ), a && a.Asset && a.Asset.forEach(
17354
+ (u) => $(u, s, i, t)
17361
17355
  );
17362
17356
  } else {
17363
- const n = o;
17357
+ const n = r;
17364
17358
  if (!n.sys.contentSourceMapsLookup)
17365
17359
  return console.error("Content source maps lookup data is missing"), n;
17366
17360
  $(
@@ -17370,7 +17364,7 @@ const ie = (e, t) => {
17370
17364
  t
17371
17365
  );
17372
17366
  }
17373
- return o;
17367
+ return r;
17374
17368
  };
17375
17369
 
17376
17370
  //# sourceMappingURL=index.js.map