PageSourceSearch

https://bookelya.com/build/assets/index-D9GKYyi-.js

js bookelya.com collected 2026-10-02 00:28:34 UTC 6,558 bytes, 1 lines download raw bytes

1import{c as V,u as q,a as R,j as s,H as F,L as I,b as M}from"./app-DvVnfpwo.js";import{B as G}from"./badge-C-fNGz42.js";import{B as J}from"./button-BX8D9jk3.js";import{A as K}from"./admin-layout-CwTUI3mC.js";import{P as O}from"./plus-DCAf7thv.js";import{P as Q}from"./pencil-jdbroSdf.js";import{T as U}from"./trash-2-D1he4ZgC.js";/* empty css            */import"./index-DGHGK_LE.js";import"./utils-DE7BuFSi.js";import"./index-BVVbh8PK.js";import"./app-logo-icon-C-Y_aYCy.js";import"./index-7GXKiMn0.js";import"./building-2-BOtPilW1.js";import"./createLucideIcon-C0ue8h9P.js";import"./globe-8qzMlIBB.js";import"./users-dWgKZO70.js";import"./credit-card-CkTcp7LR.js";import"./file-text-CuFmZHHI.js";import"./mail-PwVDtaCn.js";import"./send-BEQeKIS1.js";import"./megaphone-u4myz_3w.js";import"./arrow-left-2IxmJTK9.js";import"./x-ZHQHsdFi.js";import"./menu-CZdLfx2w.js";function ye(){const e=V.c(79),{t,locale:$}=q(),{changelogs:l}=R().props,z=R().props.flash;let i;e[0]!==t?(i=t("Changelog - Admin"),e[0]=t,e[1]=i):i=e[1];let a;e[2]!==i?(a=s.jsx(F,{title:i}),e[2]=i,e[3]=a):a=e[3];let o;e[4]!==t?(o=t("Changelog"),e[4]=t,e[5]=o):o=e[5];let d;e[6]!==o?(d=s.jsx("h1",{className:"font-serif text-2xl font-semibold tracking-tight",children:o}),e[6]=o,e[7]=d):d=e[7];let n;e[8]!==l.total||e[9]!==t?(n=l.total===1?t(":count entrée",{count:l.total}):t(":count entrées",{count:l.total}),e[8]=l.total,e[9]=t,e[10]=n):n=e[10];let m;e[11]!==n?(m=s.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:n}),e[11]=n,e[12]=m):m=e[12];let c;e[13]!==d||e[14]!==m?(c=s.jsxs("div",{children:[d,m]}),e[13]=d,e[14]=m,e[15]=c):c=e[15];let D;e[16]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(O,{className:"mr-2 size-4"}),e[16]=D):D=e[16];let x;e[17]!==t?(x=t("Nouvelle version"),e[17]=t,e[18]=x):x=e[18];let u;e[19]!==x?(u=s.jsx(J,{asChild:!0,children:s.jsxs(I,{href:"/admin/changelog/create",children:[D,x]})}),e[19]=x,e[20]=u):u=e[20];let p;e[21]!==c||e[22]!==u?(p=s.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[c,u]}),e[21]=c,e[22]=u,e[23]=p):p=e[23];let f;e[24]!==z?(f=z?.success&&s.jsx("div",{className:"rounded-lg border border-green-200 bg-green-50 px-4 py-3 text-sm text-green-800 dark:border-green-800 dark:bg-green-950 dark:text-green-200",children:z.success}),e[24]=z,e[25]=f):f=e[25];let h;e[26]!==t?(h=t("Version"),e[26]=t,e[27]=h):h=e[27];let g;e[28]!==h?(g=s.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium tracking-wider text-muted-foreground uppercase",children:h}),e[28]=h,e[29]=g):g=e[29];let j;e[30]!==t?(j=t("Titre"),e[30]=t,e[31]=j):j=e[31];let N;e[32]!==j?(N=s.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium tracking-wider text-muted-foreground uppercase",children:j}),e[32]=j,e[33]=N):N=e[33];let b;e[34]!==t?(b=t("Statut"),e[34]=t,e[35]=b):b=e[35];let v;e[36]!==b?(v=s.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium tracking-wider text-muted-foreground uppercase",children:b}),e[36]=b,e[37]=v):v=e[37];let y;e[38]!==t?(y=t("Date"),e[38]=t,e[39]=y):y=e[39];let _;e[40]!==y?(_=s.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium tracking-wider text-muted-foreground uppercase",children:y}),e[40]=y,e[41]=_):_=e[41];let w;e[42]!==t?(w=t("Actions"),e[42]=t,e[43]=w):w=e[43];let k;e[44]!==w?(k=s.jsx("th",{className:"px-4 py-3 text-right text-xs font-medium tracking-wider text-muted-foreground uppercase",children:w}),e[44]=w,e[45]=k):k=e[45];let A;e[46]!==g||e[47]!==N||e[48]!==v||e[49]!==_||e[50]!==k?(A=s.jsx("thead",{children:s.jsxs("tr",{className:"border-b bg-muted/50",children:[g,N,v,_,k]})}),e[46]=g,e[47]=N,e[48]=v,e[49]=_,e[50]=k,e[51]=A):A=e[51];let C;e[52]!==l.data.length||e[53]!==t?(C=l.data.length===0&&s.jsx("tr",{children:s.jsx("td",{colSpan:5,className:"px-4 py-12 text-center text-sm text-muted-foreground",children:t("Aucun changelog pour le moment.")})}),e[52]=l.data.length,e[53]=t,e[54]=C):C=e[54];let P;if(e[55]!==l.data||e[56]!==$||e[57]!==t){let E;e[59]!==$||e[60]!==t?(E=r=>s.jsxs("tr",{className:"hover:bg-muted/30",children:[s.jsx("td",{className:"px-4 py-3",children:s.jsxs("span",{className:"rounded-md bg-muted px-2 py-0.5 font-mono text-sm font-medium",children:["v",r.version]})}),s.jsx("td",{className:"px-4 py-3",children:s.jsx(I,{href:`/admin/changelog/${r.id}/edit`,className:"text-sm font-medium hover:underline",children:r.title})}),s.jsx("td",{className:"px-4 py-3",children:s.jsx(G,{variant:r.is_published?"default":"secondary",children:r.is_published?t("Publié"):t("Brouillon")})}),s.jsx("td",{className:"px-4 py-3 text-sm text-muted-foreground",children:r.published_at?new Date(r.published_at).toLocaleDateString($,{day:"numeric",month:"short",year:"numeric"}):"—"}),s.jsx("td",{className:"px-4 py-3 text-right",children:s.jsxs("div",{className:"flex justify-end gap-1",children:[s.jsx(I,{href:`/admin/changelog/${r.id}/edit`,className:"rounded-md p-1.5 text-muted-foreground hover:bg-muted hover:text-foreground",children:s.jsx(Q,{className:"size-4"})}),s.jsx("button",{type:"button",onClick:()=>{confirm(t("Supprimer cette entrée ?"))&&M.delete(`/admin/changelog/${r.id}`)},className:"rounded-md p-1.5 text-muted-foreground hover:bg-destructive/10 hover:text-destructive",children:s.jsx(U,{className:"size-4"})})]})})]},r.id),e[59]=$,e[60]=t,e[61]=E):E=e[61],P=l.data.map(E),e[55]=l.data,e[56]=$,e[57]=t,e[58]=P}else P=e[58];let S;e[62]!==C||e[63]!==P?(S=s.jsxs("tbody",{className:"divide-y",children:[C,P]}),e[62]=C,e[63]=P,e[64]=S):S=e[64];let B;e[65]!==A||e[66]!==S?(B=s.jsx("div",{className:"max-w-full overflow-x-auto rounded-xl border",children:s.jsxs("table",{className:"w-full",children:[A,S]})}),e[65]=A,e[66]=S,e[67]=B):B=e[67];let L;e[68]!==l.last_page||e[69]!==l.links?(L=l.last_page>1&&s.jsx("div",{className:"flex flex-wrap items-center justify-center gap-1 pt-6",children:l.links.map(W)}),e[68]=l.last_page,e[69]=l.links,e[70]=L):L=e[70];let T;e[71]!==p||e[72]!==f||e[73]!==B||e[74]!==L?(T=s.jsxs("div",{className:"space-y-6",children:[p,f,B,L]}),e[71]=p,e[72]=f,e[73]=B,e[74]=L,e[75]=T):T=e[75];let H;return e[76]!==a||e[77]!==T?(H=s.jsxs(K,{children:[a,T]}),e[76]=a,e[77]=T,e[78]=H):H=e[78],H}function W(e,t){return s.jsx("button",{disabled:!e.url||e.active,onClick:()=>e.url&&M.get(e.url),className:`rounded-md px-3 py-1.5 text-sm transition-colors ${e.active?"bg-primary text-primary-foreground":e.url?"text-muted-foreground hover:bg-muted hover:text-foreground":"cursor-not-allowed text-muted-foreground
1/40"}`,dangerouslySetInnerHTML:{__html:e.label}},t)}export{ye as default};

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.