@datagouv/components-next 1.0.2-dev.230 → 1.0.2-dev.231

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.
@@ -261,16 +261,13 @@ function V(e) {
261
261
  function H(e, t) {
262
262
  return `${e.page}${V(t) ? "/community-resources" : ""}?resource_id=${t.id}`;
263
263
  }
264
- function U(e) {
265
- return e.geopf?.push_status != null || typeof e.geopf?.offering_id == "string";
266
- }
267
- function W(e, t, n) {
264
+ function U(e, t, n) {
268
265
  return n ? n(t) : H(e, t);
269
266
  }
270
- function G(e) {
267
+ function W(e) {
271
268
  return e.filesize ? e.filesize : "analysis:content-length" in e.extras ? e.extras["analysis:content-length"] : null;
272
269
  }
273
- var K = [
270
+ var G = [
274
271
  "png",
275
272
  "jpg",
276
273
  "jpeg",
@@ -278,27 +275,27 @@ var K = [
278
275
  "gif",
279
276
  "webp"
280
277
  ];
281
- function q(e) {
282
- return e ? K.includes(e.toLowerCase()) : !1;
278
+ function K(e) {
279
+ return e ? G.includes(e.toLowerCase()) : !1;
283
280
  }
284
- function J(e) {
281
+ function q(e) {
285
282
  let t = e.extras["analysis:parsing:error"];
286
283
  if (typeof t != "string" || !t) return null;
287
284
  let [n] = t.split(":", 1);
288
285
  return n ?? null;
289
286
  }
290
- function Y(e) {
287
+ function J(e) {
291
288
  let t = e.extras["analysis:parsing:error"];
292
289
  if (typeof t != "string" || !t) return null;
293
290
  let n = t.indexOf(":");
294
291
  return n === -1 ? t : t.slice(n + 1);
295
292
  }
296
- var X = ["pmtiles_export", "geojson_export"];
297
- function Z(e) {
298
- let t = J(e);
299
- return t !== null && !X.includes(t);
293
+ var Y = ["pmtiles_export", "geojson_export"];
294
+ function X(e) {
295
+ let t = q(e);
296
+ return t !== null && !Y.includes(t);
300
297
  }
301
- var Q = (e) => {
298
+ var Z = (e) => {
302
299
  let n = e.extras;
303
300
  if (!n || !("check:cors:allow-origin" in n)) return "unknown";
304
301
  let r = n["check:cors:allow-origin"], i = n["check:cors:allow-methods"], a = t().trustedDomains ?? [], o = r === "*", s = r ? a.some((e) => {
@@ -312,4 +309,4 @@ var Q = (e) => {
312
309
  return c && u ? "allowed" : "blocked";
313
310
  };
314
311
  //#endregion
315
- export { q as _, Y as a, H as c, P as d, R as f, U as g, V as h, B as i, G as l, Z as m, L as n, J as o, F as p, I as r, Q as s, z as t, N as u, W as v, c as y };
312
+ export { U as _, J as a, H as c, P as d, R as f, K as g, V as h, B as i, W as l, X as m, L as n, q as o, F as p, I as r, Z as s, z as t, N as u, c as v };