@20minutes/tyr 2.38.1 → 2.38.2

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.
package/dist/index.es.js CHANGED
@@ -70150,7 +70150,7 @@ const g8 = () => {
70150
70150
  {
70151
70151
  componentName: Um.ELECTIONS_AI_ARTICLES_LIST,
70152
70152
  component: OJ,
70153
- expiration: 3600
70153
+ expiration: 300
70154
70154
  }
70155
70155
  ];
70156
70156
  function Hg() {
@@ -70437,13 +70437,14 @@ const FJ = () => {
70437
70437
  url: "https://static.20mn.fr/elections/map-droms.json"
70438
70438
  });
70439
70439
  let h = [];
70440
- try {
70441
- h = await Fa({
70442
- url: `https://static.20mn.fr/elections/mn${e.defaultMapTownsByDepartmentsProps.electionYear}/electeds.json`
70443
- });
70444
- } catch (p) {
70445
- console.log("20mn> Error while loading town results data:", p);
70446
- }
70440
+ if (window.layout === Ae.DESKTOP)
70441
+ try {
70442
+ h = await Fa({
70443
+ url: `https://static.20mn.fr/elections/mn${e.defaultMapTownsByDepartmentsProps.electionYear}/electeds.json`
70444
+ });
70445
+ } catch (p) {
70446
+ console.log("20mn> Error while loading town results data:", p);
70447
+ }
70447
70448
  a((p) => ({
70448
70449
  ...p,
70449
70450
  townsSprite: c,
@@ -78872,7 +78873,7 @@ const kee = ({
78872
78873
  }, t1 = !0, Hee = {
78873
78874
  name: "electionsAiArticles",
78874
78875
  component: MX,
78875
- expiration: 3600 * 24,
78876
+ expiration: 300,
78876
78877
  components: [
78877
78878
  ...rn,
78878
78879
  {