import{a as e,r as t,t as n}from"./i18n-CjHYiQIU.js";var r=e();function i({score:e,showRatingPrompt:i,onDismissRating:a,onNextCampaign:o,onMenu:s}){let{language:c,strings:l}=n(),{campaignComplete:u}=l,d=e.toLocaleString(c===`de`?`de-DE`:`en-US`);return(0,r.jsx)(`main`,{className:`screen result-screen rework-panel-screen`,children:(0,r.jsxs)(`div`,{className:`result-panel`,children:[(0,r.jsx)(`p`,{className:`eyebrow`,children:u.eyebrow}),(0,r.jsx)(`div`,{className:`reward-icon`,children:`★`}),(0,r.jsx)(`h1`,{children:u.title}),(0,r.jsx)(`p`,{children:t(u.score,{score:d})}),i&&(0,r.jsxs)(`aside`,{className:`rating-prompt`,children:[(0,r.jsx)(`p`,{children:u.ratingPrompt}),(0,r.jsx)(`button`,{type:`button`,onClick:a,children:u.dismissRating})]}),(0,r.jsx)(`button`,{className:`primary`,onClick:o,children:u.nextCampaign}),(0,r.jsx)(`button`,{onClick:s,children:u.mainMenu})]})})}export{i as CampaignCompleteScreen};