import{d as B,i as C,z as N,c as y,s as g,a as D,o as E,b as n,f as _,j as l,k as r,t as c,u as s,q as d,v as p,n as u,_ as F}from"./index-DSRztm3-.js";import b from"./confirmation-dialog-BlG79hdZ.js";const q=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 m(o){a("select",o),a("confirm")}return(o,e)=>(E(),D("div",{class:u(o.$style.restoreFsEntitiesDialog)},[n(b,{"dialog-text":x.value,"additional-dialog-text":$.value},null,8,["dialog-text","additional-dialog-text"]),_("div",{class:u(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:u(o.$style.actionsBlock)},[n(s(p),{type:"secondary",onClick:e[1]||(e[1]=d(f=>m("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=>m("replace"),["stop","prevent"]))},{default:l(()=>[r(c(s(t)("fs.entity.restore.replace.button")),1)]),_:1})],2)],2)],2))}}),z="_restoreFsEntitiesDialog_1a5oy_1",A="_dialogActions_1a5oy_5",j="_actionsBlock_1a5oy_13",M={restoreFsEntitiesDialog:z,dialogActions:A,actionsBlock:j},T={$style:M},S=F(q,[["__cssModules",T]]);export{S as default};
