import{I as k}from"./IdnodeGrid-U6EqXqja.js";import{A as x}from"./ActionMenu-B3aKIJFu.js";import{d as D,u as A,a as b,e as h,f as r,g as c,h as e,I as w,F as I,k as C,o as F,i as S,t as V,_ as B}from"./index-D92x6h1h.js";import{u as m}from"./useBulkAction-UV8yZtrd.js";import{u as L,d as z}from"./dvrEntryColumns-BRmCkPKX.js";import{c as N}from"./dvrToolbarHelpers-C5M0Cokf.js";import{a as P}from"./dvrFieldDefs-BDfuZvpU.js";import"./DataGrid-CbtTsx8d.js";import"./index-BG9mM10J.js";import"./index-7HNOjfAo.js";import"./localDay-CoEbUe3O.js";import"./SearchInput-DBHWpJgW.js";import"./useGridLayout-DCIiMD42.js";import"./CollapsibleSection.vue_vue_type_style_index_0_lang-Cq2AVc9p.js";import"./sliders-horizontal-Am8f4Xsv.js";import"./useStaleDataRecovery-BuNK-94T.js";import"./useEditorMode-DvyB-mon.js";import"./BooleanCell-BFiLlZVv.js";/* empty css                                                                      */import"./EnumNameCell-BjJ4chu_.js";function U(i){return N(i)}const G={class:"removed__empty"},M=D({__name:"RemovedView",setup(i){const{t}=A(),u=b(),s=C(()=>u.data?.admin?"retention,owner,disp_title,disp_extratext,episode_disp,comment":"retention,comment"),{kodiFmt:p,editingUuid:f,editingUuids:_,gridRef:g,editorLevel:v,openEditor:n,closeEditor:y}=L({editList:s}),E=z(p,{status:!0}),d=m({endpoint:"idnode/delete",confirmText:t("Do you really want to delete the selected recordings?"),confirmSeverity:"danger",failPrefix:t("Failed to delete")}),l=m({endpoint:"dvr/entry/rerecord/toggle",failPrefix:t("Failed to toggle re-record")});return(O,a)=>(F(),h(I,null,[r(k,{ref_key:"gridRef",ref:g,endpoint:"dvr/entry/grid_removed","help-page":"class/dvrentry",columns:e(E),"store-key":"dvr-removed","default-sort":{key:"start_real",dir:"DESC"},"virtual-scroller-options":{itemSize:36,lazy:!1},"phone-item-size":64,"count-label":"recordings","groupable-fields":e(P),class:"removed__grid",onRowDblclick:a[0]||(a[0]=o=>e(n)([o]))},{empty:c(()=>[S("p",G,V(e(t)("No removed recordings.")),1)]),toolbarActions:c(({selection:o,clearSelection:R})=>[r(x,{actions:e(U)({selection:o,clearSelection:R,deleting:e(d).inflight.value,rerecording:e(l).inflight.value,onEdit:e(n),onDelete:e(d).run,onRerecord:e(l).run})},null,8,["actions"])]),_:1},8,["columns","groupable-fields"]),r(w,{uuid:e(f),uuids:e(_),level:e(v),list:s.value,title:e(t)("Edit Recording"),onClose:e(y)},null,8,["uuid","uuids","level","list","title","onClose"])],64))}}),le=B(M,[["__scopeId","data-v-f515a85c"]]);export{le as default};
