1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1137],{4541:(e,t,i)=>{"use strict";i.d(t,{A:()=>r});var n=i(95155);function r({lines:e=3}){return(0,n.jsxs)("div",{className:"animate-pulse rounded-2xl border border-white/5 bg-white/5 p-4",children:[(0,n.jsx)("div",{className:"h-4 w-1/3 rounded bg-white/20"}),(0,n.jsx)("div",{className:"mt-3 space-y-2",children:Array.from({length:e}).map((e,t)=>(0,n.jsx)("div",{className:"h-3 rounded bg-white/10"},t))})]})}},12346:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var n=i(95155),r=i(12115),a=i(77561);let s=function(){for(var e,t,i=0,n="",r=arguments.length;i<r;i++)(e=arguments[i])&&(t=function e(t){var i,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(i=0;i<a;i++)t[i]&&(n=e(t[i]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}(e))&&(n&&(n+=" "),n+=t);return n},l=(0,r.forwardRef)(({variant:e="primary",loading:t=!1,className:i,children:r,...l},o)=>(0,n.jsxs)(a.P.button,{ref:o,whileHover:{scale:1.05},whileTap:{scale:.95},disabled:t||l.disabled,className:s("inline-flex min-h-[44px] items-center justify-center gap-2 rounded-full px-5 text-sm font-dm-sans font-semibold transition focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white/60","primary"===e&&"bg-white text-black hover:bg-white/90 disabled:bg-white/40","secondary"===e&&"bg-white/10 text-white hover:bg-white/20 disabled:text-white/40","ghost"===e&&"text-white/80 hover:text-white",i),...l,children:[t&&(0,n.jsx)("span",{className:"h-4 w-4 animate-spin rounded-full border-2 border-white/30 border-t-white"}),r]}));l.displayName="AppButton";let o=l},28307:(e,t,i)=>{Promise.resolve().then(i.bind(i,37710))},37710:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>p});var n=i(95155),r=i(12115),a=i(77561),s=i(98500),l=i.n(s),o=i(55606),c=i(12346),u=i(4541),d=i(96998),m=i(73547);let h=[{id:"upcoming",label:"\xc0 venir"},{id:"played",label:"Jou\xe9s"}];function p(){let[e,t]=(0,r.useState)("upcoming"),{matches:i,loading:s}=(0,d.Mb)(),{matches:p,loading:f}=(0,d.J2)(),x="upcoming"===e?i:p,w="upcoming"===e?s:f;return(0,n.jsxs)(o.A,{title:"Matchs",children:[(0,n.jsx)("div",{className:"flex gap-3 rounded-full border border-white/10 bg-white/5 p-1 text-sm",children:h.map(i=>(0,n.jsx)("button",{onClick:()=>t(i.id),className:`flex-1 rounded-full px-4 py-2 font-semibold transition ${e===i.id?"bg-white text-black":"text-white/70"}`,children:i.label},i.id))}),(0,n.jsx)(c.A,{variant:"secondary",className:"w-full justify-center",onClick:()=>window.open("https://billetterie.amiensfootball.com/Pages/PSpectacles.aspx","_blank","noopener,noreferrer"),children:"R\xc9SERVER MES PLACES"}),(0,n.jsx)(a.P.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},className:"space-y-4",children:w&&!x.length?Array.from({length:3}).map((e,t)=>(0,n.jsx)(u.A,{lines:3},t)):x.length?x.map(t=>{let i=(0,m.a7)(t),r=i.isHome?`Amiens SC vs ${(0,m.oD)(i.opponentTeam)}`:`${(0,m.oD)(i.opponentTeam)} vs Amiens SC`,a=(0,m.pB)(t),s=(0,m.DK)(t.matchDate,{weekday:"short",day:"numeric",month:"short"}),o=(0,m.kg)(t.matchDate);return(0,n.jsxs)(l(),{href:`/app/matchs/${t._id}`,className:"block rounded-2xl border border-white/10 bg-white/5 p-4 transition hover:border-white/30",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between text-xs uppercase tracking-[0.3em] text-white/60",children:[(0,n.jsx)("span",{children:(0,m.Pn)(t.competition)}),(0,n.jsx)("span",{children:i.isHome?"DOMICILE":"EXT\xc9RIEUR"})]}),(0,n.jsxs)("div",{className:"mt-3 flex items-center justify-between",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-sm text-white/70",children:s}),(0,n.jsx)("p",{className:"text-lg font-bold text-white",children:r})]}),(0,n.jsxs)("div",{className:"text-right text-sm text-white/70",children:["upcoming"===e?o:a.display,(0,n.jsx)("p",{className:"text-xs text-white/40",children:"upcoming"===e?(0,m.Tb)(t.venue,t.awayVenue):"Termin\xe9"})]})]})]},t._id)}):(0,n.jsxs)("div",{className:"rounded-2xl border border-white/10 bg-white/5 p-4 text-sm text-white/70",children:["Aucun match ","upcoming"===e?"\xe0 venir":"jou\xe9"," pour le moment."]})},e)]})}},42869:(e,t,i)=>{"use strict";i.d(t,{A:()=>n});let n=(0,i(78340).A)("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]])},55606:(e,t,i)=>{"use strict";i.d(t,{A:()=>c});var n=i(95155),r=i(77561),a=i(42869),s=i(98500),l=i.n(s),o=i(83391);
1function c({title:e,subtitle:t,children:i,actionSlot:s}){return(0,n.jsxs)(r.P.section,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.25},className:"flex flex-col gap-6 px-4 pb-28",children:[(0,n.jsx)("header",{className:"sticky top-0 z-30 -mx-4 border-b border-white/10 bg-black/60 px-4 backdrop-blur",children:(0,n.jsxs)("div",{className:"flex items-center justify-between py-4",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("div",{className:"relative h-11 w-11 overflow-hidden rounded-2xl bg-white/10 p-2",children:(0,n.jsx)(o.default,{src:"/android-chrome-192x192.png",alt:"Amiens SC",fill:!0,className:"object-contain",sizes:"44px",priority:!0})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("p",{className:"text-xs uppercase tracking-[0.4em] text-white/60",children:"Amiens SC"}),(0,n.jsx)("h1",{className:"text-xl font-semibold tracking-optima text-white",children:e}),t&&(0,n.jsx)("p",{className:"text-sm text-white/70",children:t})]})]}),(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[s,(0,n.jsx)(l(),{href:"/app/compte",className:"rounded-full border border-white/20 p-2 text-white/80 transition hover:border-white/40 hover:text-white",children:(0,n.jsx)(a.A,{className:"h-5 w-5"})})]})]})}),(0,n.jsx)("div",{className:"flex flex-col gap-6",children:i})]})}},73547:(e,t,i)=>{"use strict";i.d(t,{DK:()=>o,KV:()=>s,Pn:()=>a,Tb:()=>l,a7:()=>d,iA:()=>u,kg:()=>c,oD:()=>p,op:()=>f,pB:()=>m,yh:()=>x});let n=["amiens sc","amiens","amiens sporting club"];function r(e){if(!e)return!1;let t=(e.shortName||e.name||"").toLowerCase();return n.some(e=>t.includes(e))}function a(e){return e?({ligue2:"Ligue 2 BKT","ligue 2":"Ligue 2 BKT",ligue3:"Ligue 3","ligue 3":"Ligue 3","coupe-france":"Coupe de France","coupe-ligue":"Coupe de la Ligue",friendly:"Match amical"})[e]||e:"Match"}function s(e,t){return"stade-licorne"===e?{name:"Stade Cr\xe9dit Agricole la Licorne",location:"Amiens, France"}:"away"===e?{name:t?.name||"Ext\xe9rieur",location:[t?.city,t?.country].filter(Boolean).join(", ")||null}:e?{name:e,location:null}:{name:t?.name||"Lieu \xe0 confirmer",location:null}}function l(e,t){let{name:i,location:n}=s(e,t);return n?`${i} ⢠${n}`:i}function o(e,t={weekday:"long",day:"numeric",month:"long"}){if(!e)return"Date \xe0 confirmer";try{return new Intl.DateTimeFormat("fr-FR",t).format(new Date(e))}catch{return"Date \xe0 confirmer"}}function c(e){if(!e)return"--:--";try{return new Intl.DateTimeFormat("fr-FR",{hour:"2-digit",minute:"2-digit"}).format(new Date(e))}catch{return"--:--"}}function u(e){if(!e)return null;let t=new Date(e),i=new Date,n=Math.ceil((t.getTime()-i.getTime())/864e5);return Number.isNaN(n)?null:n<=0?t.toDateString()===i.toDateString()?"Aujourdâhui":"Match jou\xe9":`J-${n}`}function d(e){if(!e)return{amiensSide:null,opponentTeam:null,isHome:null};let t=r(e.homeTeam),i=r(e.awayTeam),n=t?"home":i?"away":null,a="home"===n?e.awayTeam:e.homeTeam;return{amiensSide:n,opponentTeam:a,isHome:"home"===n}}function m(e){if(!e?.score)return{amiens:null,opponent:null,display:"â"};let{amiensSide:t}=d(e);if(!t)return{amiens:e.score.home??null,opponent:e.score.away??null,display:h(e.score.home,e.score.away)};let i="home"===t?e.score.home??null:e.score.away??null,n="home"===t?e.score.away??null:e.score.home??null;return{amiens:i,opponent:n,display:h(i,n)}}function h(e,t){return`${"number"==typeof e?e:"-"}-${"number"==typeof t?t:"-"}`}function p(e,t="---"){return e?.shortName||e?.name||t}function f(e){if(!e?.goals)return null;let{amiensSide:t}=d(e);if(!t)return null;let i=e.goals.find(e=>e.team===t&&e.player);return i?.player||null}function x(e){return!!e&&(!!(e.category?.title?.toLowerCase?.()||"").includes("vid")||!!Array.isArray(e.tags)&&e.tags.some(e=>(e?.title||"").toLowerCase().includes("vid\xe9o")))}}},e=>{e.O(0,[9743,7561,2274,5772,6998,8441,8928,7358],()=>e(e.s=28307)),_N_E=e.O()}]);
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.