import{a as e,r as t,t as n}from"./i18n-CjHYiQIU.js";import{t as r}from"./ChapterMosaic-CDsadeeR.js";var i=e();function a({chapters:e,vaultTheme:a,onBack:o}){let{strings:s}=n(),{collection:c}=s;return(0,i.jsxs)(`main`,{className:`screen thorn-screen collection-screen rework-panel-screen`,"data-vault-theme":a,children:[(0,i.jsxs)(`header`,{className:`screen-heading`,children:[(0,i.jsxs)(`div`,{children:[(0,i.jsx)(`p`,{className:`eyebrow`,children:c.eyebrow}),(0,i.jsx)(`h1`,{children:c.title})]}),(0,i.jsx)(`button`,{onClick:o,children:c.back})]}),(0,i.jsx)(`ul`,{className:`riddle-grid chapter-grid`,children:e.map(e=>(0,i.jsxs)(`li`,{className:`chapter-card${e.revealed?` revealed`:` locked`}`,children:[(0,i.jsx)(r,{image:e.image,thumb:e.thumb,solved:e.solved,total:e.total,revealed:e.revealed,compact:!0}),(0,i.jsx)(`span`,{className:`card-number`,children:String(e.index).padStart(2,`0`)}),(0,i.jsx)(`strong`,{children:t(c.chapterTitle,{index:e.index})}),(0,i.jsx)(`span`,{children:e.revealed?c.revealed:t(c.locked,{solved:e.solved,total:e.total})})]},e.id))})]})}export{a as CollectionScreen};