import{I as E}from"./IdnodeGrid-U6EqXqja.js";import{A as k}from"./ActionMenu-B3aKIJFu.js";import{d as A,u as I,e as T,f as o,g as l,h as t,I as C,F as h,o as L,i as B,t as R,_ as S}from"./index-D92x6h1h.js";import{u as x}from"./useDvrRulesView-fU-iDg4T.js";import{T as e}from"./dvrFieldDefs-BDfuZvpU.js";import{a as D}from"./dvrToolbarHelpers-C5M0Cokf.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"./useBulkAction-UV8yZtrd.js";import"./useEditorMode-DvyB-mon.js";import"./BooleanCell-BFiLlZVv.js";/* empty css                                                                      */import"./EnumNameCell-BjJ4chu_.js";const V={class:"timer__empty"},n="name,title,channel,start,stop,weekdays,directory,config_name,comment",N=A({__name:"TimersView",setup(F){const{t:i}=I(),s=[{field:"enabled",...e.enabled,editable:!0},{field:"name",...e.name,editable:!0},{field:"title",...e.title,editable:!0},{field:"channel",...e.channel,editable:!0},{field:"start",...e.start,editable:!0},{field:"stop",...e.stop,editable:!0},{field:"weekdays",...e.weekdays,editable:!0},{field:"pri",...e.pri,editable:!0},{field:"directory",...e.directory,editable:!0},{field:"config_name",...e.config_name,editable:!0},{field:"retention",...e.retention,editable:!0},{field:"removal",...e.removal,editable:!0},{field:"owner",...e.owner,editable:!0},{field:"creator",...e.creator,editable:!0},{field:"comment",...e.comment,editable:!0}],m=D({head:"enabled",base:n,adminExtra:"owner,creator",tail:"pri,retention,removal"}),{editingUuid:a,editingUuids:c,creatingBase:u,gridRef:p,editorLevel:f,editorList:b,openEditor:_,closeEditor:g,flipToEdit:y,buildActions:w}=x({createBase:"dvr/timerec",editList:m,createList:n,entityNoun:i("timer entries"),addTooltip:i("Add a new timer entry")});return(z,d)=>(L(),T(h,null,[o(E,{ref_key:"gridRef",ref:p,endpoint:"dvr/timerec/grid","help-page":"class/dvrtimerec",columns:s,"store-key":"dvr-timerec","default-sort":{key:"name",dir:"ASC"},"virtual-scroller-options":{itemSize:36,lazy:!1},"count-label":"timers","edit-mode":"cell",class:"timer__grid",onRowDblclick:d[0]||(d[0]=r=>t(_)([r]))},{empty:l(()=>[B("p",V,R(t(i)("No timer entries. Click Add to schedule a recurring time-based recording.")),1)]),toolbarActions:l(({selection:r,clearSelection:v})=>[o(k,{actions:t(w)(r,v)},null,8,["actions"])]),_:1},512),o(C,{uuid:t(a),uuids:t(c),"create-base":t(u),level:t(f),list:t(b),title:t(a)?t(i)("Edit Timer"):t(i)("Add Timer"),"inline-enum-multi-fields":["weekdays"],onClose:t(g),onCreated:t(y)},null,8,["uuid","uuids","create-base","level","list","title","onClose","onCreated"])],64))}}),oe=S(N,[["__scopeId","data-v-b3341d56"]]);export{oe as default};
