PageSourceSearch

https://www.folembray.fr/chunk-XN7BCF5Z.js

js folembray.fr collected 2026-10-02 21:47:22 UTC 1,978 bytes, 1 lines download raw bytes

1import{a as u,b as l}from"./chunk-MD7DXZS7.js";function x(t){return t==="upcoming"||t==="ongoing"||t==="past"?t:"all"}function y(t){return{all:"Tous",upcoming:"\xC0 venir",ongoing:"En cours",past:"Pass\xE9s"}[t]}function T(t){return t==="en_cours"||t==="planifie"||t==="termine"?t:"all"}function A(t){return{filter:t==="all"?null:t}}function E(t,i=new Date){let n=r=>{let e=f(r.startDate,r.endDate,i);return e==="ongoing"?0:e==="soon"?1:e==="upcoming"?2:3};return[...t].sort((r,e)=>{let s=n(r),o=n(e);if(s!==o)return s-o;let p=r.startDate?a(r.startDate).getTime():0,c=e.startDate?a(e.startDate).getTime():0;return s===3?c-p:p-c})}function S(t,i=new Date){return[...t].filter(n=>f(n.startDate,n.endDate,i)!=="past").sort((n,r)=>{let e=n.startDate?a(n.startDate).getTime():Number.MAX_SAFE_INTEGER,s=r.startDate?a(r.startDate).getTime():Number.MAX_SAFE_INTEGER;return e-s})}var m=7;function a(t){if(/^\d{4}-\d{2}-\d{2}$/.test(t)){let[n,r,e]=t.split("-").map(Number);return new Date(n,r-1,e)}return new Date(t)}function g(t,i){if(!t)return null;let n=u(a(t));if(i){let r=u(a(i));return l(r<n?n:r)}return l(n)}function f(t,i,n=new Date){if(!t)return"upcoming";let r=u(n),e=u(a(t)),s=g(t,i);return s<r?"past":e<=r&&s>=r?"ongoing":Math.ceil((e.getTime()-r.getTime())/864e5)<=m?"soon":"upcoming"}function v(t){return{past:"Pass\xE9",ongoing:"En cours",soon:"Bient\xF4t",upcoming:"\xC0 venir"}[t]}function d(t,i,n,r=new Date){if(t==="termine")return"termine";let e=u(r);if(i){let s=u(a(i)),o=g(i,n);if(o&&o<e)return"expire";if(s>e)return"planifie";if(o&&s<=e&&o>=e)return t==="planifie"?"planifie":"en_cours"}else if(n&&u(a(n))<e)return"expire";return t}function b(t){return{en_cours:"En cours",planifie:"Planifi\xE9",termine:"Termin\xE9",expire:"Expir\xE9"}[t]}function _(t,i,n,r=new Date){let e=d(n??"en_cours",t,i,r);return e==="expire"||e==="termine"?"expired":e==="planifie"?"upcoming":"ongoing"}export{x as a,y as b,T as c,A as d,E as e,S as f,f as g,v as h,d as i,b as j,_ as k};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.