import{d as B,i as $,j as N,c as y,A as g,a as D,o as E,b as n,g as _,p as l,q as r,t as c,u as s,B as d,C as p,n as m,_ as A}from"./index-BPhyrT9l.js";import F from"./confirmation-dialog-N1tRE5ry.js";const b=B({__name:"restore-fs-entities-dialog",props:{entityNames:{default:()=>[]}},emits:["close","select","confirm"],setup(k,{emit:v}){const i=k,a=v,{$tr:t}=$(N),x=y(()=>g(i.entityNames)>1?t("fs.entity.restore.plural.main.text",{name:i.entityNames.join(", ")}):t("fs.entity.restore.single.main.text",{name:i.entityNames[0]})),C=y(()=>g(i.entityNames)>1?t("fs.entity.restore.plural.question"):t("fs.entity.restore.single.question"));function u(o){a("select",o),a("confirm")}return(o,e)=>(E(),D("div",{class:m(o.$style.restoreFsEntitiesDialog)},[n(F,{"dialog-text":x.value,"additional-dialog-text":C.value},null,8,["dialog-text","additional-dialog-text"]),_("div",{class:m(o.$style.dialogActions)},[n(s(p),{type:"secondary",onClick:e[0]||(e[0]=d(f=>a("close"),["stop","prevent"]))},{default:l(()=>[r(c(s(t)("dialog.cancel.button.default")),1)]),_:1}),_("div",{class:m(o.$style.actionsBlock)},[n(s(p),{type:"secondary",onClick:e[1]||(e[1]=d(f=>u("keep"),["stop","prevent"]))},{default:l(()=>[r(c(s(t)("fs.entity.restore.keep.button")),1)]),_:1}),n(s(p),{onClick:e[2]||(e[2]=d(f=>u("replace"),["stop","prevent"]))},{default:l(()=>[r(c(s(t)("fs.entity.restore.replace.button")),1)]),_:1})],2)],2)],2))}}),j="_restoreFsEntitiesDialog_1a5oy_1",q="_dialogActions_1a5oy_5",M="_actionsBlock_1a5oy_13",T={restoreFsEntitiesDialog:j,dialogActions:q,actionsBlock:M},V={$style:T},S=A(b,[["__cssModules",V]]);export{S as default};
