import{r as e}from"./chunk-DECur_0Z.js";import{B as t,F as n,H as r,N as i,P as a,Q as o,St as s,Tt as c,j as l,m as u,ot as d,p as f,q as p,t as m,w as h,xt as g,z as _}from"./_plugin-vue_export-helper-Df3QK1RS.js";import{t as v}from"./size-Cqi62uTb.js";var y=e(v(),1),b=m(r({__name:`restore-fs-entities-dialog`,props:{entityNames:{default:()=>[]},dialogProps:{default:()=>({})}},emits:[`action`],setup(e,{emit:r}){let m=e,v=r,{t:b}=h(),x=i(()=>b(`dialog.restore.text`,{name:(0,y.default)(m.entityNames)>1?m.entityNames.join(`, `):m.entityNames[0]},(0,y.default)(m.entityNames))),S=i(()=>b(`dialog.restore.question`,(0,y.default)(m.entityNames)===1?1:2));function C(e){v(`action`,{event:`confirm`,data:e})}return(r,i)=>(o(),n(g(f),p(e.dialogProps,{onAction:i[3]||=e=>v(`action`,e)}),{body:d(()=>[a(`div`,{class:s(r.$style.restoreFsEntitiesDialog)},[_(c(x.value)+` `,1),a(`span`,null,c(S.value),1)],2)]),actions:d(()=>[a(`div`,{class:s(r.$style.dialogActions)},[t(g(u),{type:`secondary`,onClick:i[0]||=l(e=>v(`action`,{event:`close`}),[`stop`,`prevent`])},{default:d(()=>[_(c(g(b)(`dialog.button.cancel`)),1)]),_:1}),a(`div`,{class:s(r.$style.actionsBlock)},[t(g(u),{type:`secondary`,onClick:i[1]||=l(e=>C(`keep`),[`stop`,`prevent`])},{default:d(()=>[_(c(g(b)(`fs.entity.button.restore_keep`)),1)]),_:1}),t(g(u),{onClick:i[2]||=l(e=>C(`replace`),[`stop`,`prevent`])},{default:d(()=>[_(c(g(b)(`fs.entity.button.restore_replace`)),1)]),_:1})],2)],2)]),_:1},16))}}),[[`__cssModules`,{$style:{restoreFsEntitiesDialog:`_restoreFsEntitiesDialog_8jltl_1`,dialogActions:`_dialogActions_8jltl_16`,actionsBlock:`_actionsBlock_8jltl_24`}}]]);export{b as default};