import{d as B,i as C,$ as N,c as y,x as g,a as D,o as E,b as n,f as _,l,m as r,t as c,u as s,z as d,A as p,n as m,_ as A}from"./index-DEdVXyss.js";import F from"./confirmation-dialog-CrFkmCgS.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}=C(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]})),$=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":$.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))}}),q="_restoreFsEntitiesDialog_1a5oy_1",z="_dialogActions_1a5oy_5",M="_actionsBlock_1a5oy_13",T={restoreFsEntitiesDialog:q,dialogActions:z,actionsBlock:M},V={$style:T},S=A(b,[["__cssModules",V]]);export{S as default};
