import{a as e,r as t,t as n}from"./i18n-CjHYiQIU.js";var r=e();function i({outcome:e,unavailableReason:i,onNextRun:a,onDaily:o,onMenu:s}){let{strings:c}=n();if(i)return(0,r.jsx)(`main`,{className:`screen result-screen rework-panel-screen`,children:(0,r.jsxs)(`div`,{className:`result-panel run-complete-panel`,children:[(0,r.jsx)(`p`,{className:`eyebrow`,children:c.run.endEyebrow}),(0,r.jsx)(`div`,{className:`reward-icon`,"aria-hidden":`true`,children:`★`}),(0,r.jsx)(`h1`,{children:i===`exhausted`?c.run.exhaustedTitle:c.run.protectedTitle}),(0,r.jsx)(`p`,{role:`status`,children:i===`exhausted`?c.run.exhaustedBody:c.run.protectedBody}),(0,r.jsx)(`button`,{className:`primary`,onClick:o,children:c.run.playDaily}),(0,r.jsx)(`button`,{onClick:s,children:c.run.mainMenu})]})});if(!e)return null;let l=e.kind===`completed`?c.run.completedTitle:e.kind===`failed`?c.run.failedTitle:c.run.securedTitle;return(0,r.jsx)(`main`,{className:`screen result-screen rework-panel-screen`,children:(0,r.jsxs)(`div`,{className:`result-panel run-complete-panel`,children:[(0,r.jsx)(`p`,{className:`eyebrow`,children:c.run.endEyebrow}),(0,r.jsx)(`div`,{className:`reward-icon`,"aria-hidden":`true`,children:`★`}),(0,r.jsx)(`h1`,{children:l}),(0,r.jsx)(`p`,{children:t(e.seals===1?c.run.sealsOne:c.run.sealsOther,{count:e.seals})}),e.penalty>0&&(0,r.jsx)(`p`,{role:`status`,children:t(c.run.penalty,{penalty:e.penalty})}),(0,r.jsxs)(`dl`,{className:`result-stats`,children:[(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`dt`,{children:c.run.points}),(0,r.jsx)(`dd`,{children:e.score})]}),(0,r.jsxs)(`div`,{children:[(0,r.jsx)(`dt`,{children:c.run.best}),(0,r.jsx)(`dd`,{children:e.bestScore})]})]}),(0,r.jsx)(`button`,{className:`primary`,onClick:a,children:c.run.nextRun}),(0,r.jsx)(`button`,{onClick:s,children:c.run.mainMenu})]})})}export{i as RunCompleteScreen};