import{I as me}from"./IdnodeGrid-U6EqXqja.js";import{A as fe}from"./ActionMenu-B3aKIJFu.js";import{B as ge,l as be,m as ve,Q as ye,V as we,n as Se,$ as ke,o as S,e as k,i as m,p as L,q as A,d as ie,a as De,v as Pe,r as H,w as N,x as Ee,y as U,h as u,z as F,t as R,f as _,A as xe,C as W,D as Le,E as Ae,F as ae,G as _e,H as Q,J as Z,k as y,_ as re,u as Me,g as $,I as Te}from"./index-D92x6h1h.js";import{u as Ie}from"./useDvrRulesView-fU-iDg4T.js";import{A as d}from"./dvrFieldDefs-BDfuZvpU.js";import{a as Be}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";var Ve=`
    .p-slider {
        display: block;
        position: relative;
        background: dt('slider.track.background');
        border-radius: dt('slider.track.border.radius');
    }

    .p-slider-handle {
        cursor: grab;
        touch-action: none;
        user-select: none;
        display: flex;
        justify-content: center;
        align-items: center;
        height: dt('slider.handle.height');
        width: dt('slider.handle.width');
        background: dt('slider.handle.background');
        border-radius: dt('slider.handle.border.radius');
        transition:
            background dt('slider.transition.duration'),
            color dt('slider.transition.duration'),
            border-color dt('slider.transition.duration'),
            box-shadow dt('slider.transition.duration'),
            outline-color dt('slider.transition.duration');
        outline-color: transparent;
    }

    .p-slider-handle::before {
        content: '';
        width: dt('slider.handle.content.width');
        height: dt('slider.handle.content.height');
        display: block;
        background: dt('slider.handle.content.background');
        border-radius: dt('slider.handle.content.border.radius');
        box-shadow: dt('slider.handle.content.shadow');
        transition: background dt('slider.transition.duration');
    }

    .p-slider:not(.p-disabled) .p-slider-handle:hover {
        background: dt('slider.handle.hover.background');
    }

    .p-slider:not(.p-disabled) .p-slider-handle:hover::before {
        background: dt('slider.handle.content.hover.background');
    }

    .p-slider-handle:focus-visible {
        box-shadow: dt('slider.handle.focus.ring.shadow');
        outline: dt('slider.handle.focus.ring.width') dt('slider.handle.focus.ring.style') dt('slider.handle.focus.ring.color');
        outline-offset: dt('slider.handle.focus.ring.offset');
    }

    .p-slider-range {
        display: block;
        background: dt('slider.range.background');
        border-radius: dt('slider.track.border.radius');
    }

    .p-slider.p-slider-horizontal {
        height: dt('slider.track.size');
    }

    .p-slider-horizontal .p-slider-range {
        inset-block-start: 0;
        inset-inline-start: 0;
        height: 100%;
    }

    .p-slider-horizontal .p-slider-handle {
        inset-block-start: 50%;
        margin-block-start: calc(-1 * calc(dt('slider.handle.height') / 2));
        margin-inline-start: calc(-1 * calc(dt('slider.handle.width') / 2));
    }

    .p-slider-vertical {
        min-height: 100px;
        width: dt('slider.track.size');
    }

    .p-slider-vertical .p-slider-handle {
        inset-inline-start: 50%;
        margin-inline-start: calc(-1 * calc(dt('slider.handle.width') / 2));
        margin-block-end: calc(-1 * calc(dt('slider.handle.height') / 2));
    }

    .p-slider-vertical .p-slider-range {
        inset-block-end: 0;
        inset-inline-start: 0;
        width: 100%;
    }
`,ze={handle:{position:"absolute"},range:{position:"absolute"}},Ce={root:function(e){var n=e.instance,l=e.props;return["p-slider p-component",{"p-disabled":l.disabled,"p-invalid":n.$invalid,"p-slider-horizontal":l.orientation==="horizontal","p-slider-vertical":l.orientation==="vertical"}]},range:"p-slider-range",handle:"p-slider-handle"},He=ge.extend({name:"slider",style:Ve,classes:Ce,inlineStyles:ze}),Re={name:"BaseSlider",extends:be,props:{min:{type:Number,default:0},max:{type:Number,default:100},orientation:{type:String,default:"horizontal"},step:{type:Number,default:null},range:{type:Boolean,default:!1},tabindex:{type:Number,default:0},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:He,provide:function(){return{$pcSlider:this,$parentInstance:this}}};function M(t){"@babel/helpers - typeof";return M=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(t)}function Ke(t,e,n){return(e=Ne(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ne(t){var e=Ue(t,"string");return M(e)=="symbol"?e:e+""}function Ue(t,e){if(M(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var l=n.call(t,e);if(M(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Fe(t){return Ye(t)||Xe(t)||Oe(t)||We()}function We(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oe(t,e){if(t){if(typeof t=="string")return j(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(t,e):void 0}}function Xe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ye(t){if(Array.isArray(t))return j(t)}function j(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,l=Array(e);n<e;n++)l[n]=t[n];return l}var le={name:"Slider",extends:Re,inheritAttrs:!1,emits:["change","slideend"],dragging:!1,handleIndex:null,initX:null,initY:null,barWidth:null,barHeight:null,dragListener:null,dragEndListener:null,beforeUnmount:function(){this.unbindDragListeners()},methods:{updateDomData:function(){var e=this.$el.getBoundingClientRect();this.initX=e.left+Se(),this.initY=e.top+ke(),this.barWidth=this.$el.offsetWidth,this.barHeight=this.$el.offsetHeight},setValue:function(e){var n,l=e.touches?e.touches[0].pageX:e.pageX,o=e.touches?e.touches[0].pageY:e.pageY;this.orientation==="horizontal"?we(this.$el)?n=(this.initX+this.barWidth-l)*100/this.barWidth:n=(l-this.initX)*100/this.barWidth:n=(this.initY+this.barHeight-o)*100/this.barHeight;var a=(this.max-this.min)*(n/100)+this.min;if(this.step){var s=this.range?this.value[this.handleIndex]:this.value,D=a-s;D<0?a=s+Math.ceil(a/this.step-s/this.step)*this.step:D>0&&(a=s+Math.floor(a/this.step-s/this.step)*this.step)}else a=Math.floor(a);this.updateModel(e,a)},updateModel:function(e,n){var l=Math.round(n*100)/100,o;this.range?(o=this.value?Fe(this.value):[],this.handleIndex==0?(l<this.min?l=this.min:l>=this.max&&(l=this.max),o[0]=l):(l>this.max?l=this.max:l<=this.min&&(l=this.min),o[1]=l)):(l<this.min?l=this.min:l>this.max&&(l=this.max),o=l),this.writeValue(o,e),this.$emit("change",o)},onDragStart:function(e,n){this.disabled||(this.$el.setAttribute("data-p-sliding",!0),this.dragging=!0,this.updateDomData(),this.range&&this.value[0]===this.max?this.handleIndex=0:this.handleIndex=n,e.currentTarget.focus())},onDrag:function(e){this.dragging&&this.setValue(e)},onDragEnd:function(e){this.dragging&&(this.dragging=!1,this.$el.setAttribute("data-p-sliding",!1),this.$emit("slideend",{originalEvent:e,value:this.value}))},onBarClick:function(e){this.disabled||ye(e.target,"data-pc-section")!=="handle"&&(this.updateDomData(),this.setValue(e))},onMouseDown:function(e,n){this.bindDragListeners(),this.onDragStart(e,n)},onKeyDown:function(e,n){switch(this.handleIndex=n,e.code){case"ArrowDown":case"ArrowLeft":this.decrementValue(e,n),e.preventDefault();break;case"ArrowUp":case"ArrowRight":this.incrementValue(e,n),e.preventDefault();break;case"PageDown":this.decrementValue(e,n,!0),e.preventDefault();break;case"PageUp":this.incrementValue(e,n,!0),e.preventDefault();break;case"Home":this.updateModel(e,this.min),e.preventDefault();break;case"End":this.updateModel(e,this.max),e.preventDefault();break}},onBlur:function(e,n){var l,o;(l=(o=this.formField).onBlur)===null||l===void 0||l.call(o,e)},decrementValue:function(e,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o;this.range?this.step?o=this.value[n]-this.step:o=this.value[n]-1:this.step?o=this.value-this.step:!this.step&&l?o=this.value-10:o=this.value-1,this.updateModel(e,o),e.preventDefault()},incrementValue:function(e,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o;this.range?this.step?o=this.value[n]+this.step:o=this.value[n]+1:this.step?o=this.value+this.step:!this.step&&l?o=this.value+10:o=this.value+1,this.updateModel(e,o),e.preventDefault()},bindDragListeners:function(){this.dragListener||(this.dragListener=this.onDrag.bind(this),document.addEventListener("mousemove",this.dragListener)),this.dragEndListener||(this.dragEndListener=this.onDragEnd.bind(this),document.addEventListener("mouseup",this.dragEndListener))},unbindDragListeners:function(){this.dragListener&&(document.removeEventListener("mousemove",this.dragListener),this.dragListener=null),this.dragEndListener&&(document.removeEventListener("mouseup",this.dragEndListener),this.dragEndListener=null)},rangeStyle:function(){if(this.range){var e=this.rangeEndPosition>this.rangeStartPosition?this.rangeEndPosition-this.rangeStartPosition:this.rangeStartPosition-this.rangeEndPosition,n=this.rangeEndPosition>this.rangeStartPosition?this.rangeStartPosition:this.rangeEndPosition;return this.horizontal?{"inset-inline-start":n+"%",width:e+"%"}:{bottom:n+"%",height:e+"%"}}else return this.horizontal?{width:this.handlePosition+"%"}:{height:this.handlePosition+"%"}},handleStyle:function(){return this.horizontal?{"inset-inline-start":this.handlePosition+"%"}:{bottom:this.handlePosition+"%"}},rangeStartHandleStyle:function(){return this.horizontal?{"inset-inline-start":this.rangeStartPosition+"%"}:{bottom:this.rangeStartPosition+"%"}},rangeEndHandleStyle:function(){return this.horizontal?{"inset-inline-start":this.rangeEndPosition+"%"}:{bottom:this.rangeEndPosition+"%"}}},computed:{value:function(){var e;if(this.range){var n,l,o,a;return[(n=(l=this.d_value)===null||l===void 0?void 0:l[0])!==null&&n!==void 0?n:this.min,(o=(a=this.d_value)===null||a===void 0?void 0:a[1])!==null&&o!==void 0?o:this.max]}return(e=this.d_value)!==null&&e!==void 0?e:this.min},horizontal:function(){return this.orientation==="horizontal"},vertical:function(){return this.orientation==="vertical"},handlePosition:function(){return this.value<this.min?0:this.value>this.max?100:(this.value-this.min)*100/(this.max-this.min)},rangeStartPosition:function(){return this.value&&this.value[0]!==void 0?this.value[0]<this.min?0:(this.value[0]-this.min)*100/(this.max-this.min):0},rangeEndPosition:function(){return this.value&&this.value.length===2&&this.value[1]!==void 0?this.value[1]>this.max?100:(this.value[1]-this.min)*100/(this.max-this.min):100},dataP:function(){return ve(Ke({},this.orientation,this.orientation))}}},je=["data-p"],Ge=["data-p"],qe=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","aria-labelledby","aria-label","aria-orientation","data-p"],Je=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","aria-labelledby","aria-label","aria-orientation","data-p"],Qe=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","aria-labelledby","aria-label","aria-orientation","data-p"];function Ze(t,e,n,l,o,a){return S(),k("div",L({class:t.cx("root"),onClick:e[18]||(e[18]=function(){return a.onBarClick&&a.onBarClick.apply(a,arguments)})},t.ptmi("root"),{"data-p-sliding":!1,"data-p":a.dataP}),[m("span",L({class:t.cx("range"),style:[t.sx("range"),a.rangeStyle()]},t.ptm("range"),{"data-p":a.dataP}),null,16,Ge),t.range?A("",!0):(S(),k("span",L({key:0,class:t.cx("handle"),style:[t.sx("handle"),a.handleStyle()],onTouchstartPassive:e[0]||(e[0]=function(s){return a.onDragStart(s)}),onTouchmovePassive:e[1]||(e[1]=function(s){return a.onDrag(s)}),onTouchend:e[2]||(e[2]=function(s){return a.onDragEnd(s)}),onMousedown:e[3]||(e[3]=function(s){return a.onMouseDown(s)}),onKeydown:e[4]||(e[4]=function(s){return a.onKeyDown(s)}),onBlur:e[5]||(e[5]=function(s){return a.onBlur(s)}),tabindex:t.tabindex,role:"slider","aria-valuemin":t.min,"aria-valuenow":t.d_value,"aria-valuemax":t.max,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-orientation":t.orientation},t.ptm("handle"),{"data-p":a.dataP}),null,16,qe)),t.range?(S(),k("span",L({key:1,class:t.cx("handle"),style:[t.sx("handle"),a.rangeStartHandleStyle()],onTouchstartPassive:e[6]||(e[6]=function(s){return a.onDragStart(s,0)}),onTouchmovePassive:e[7]||(e[7]=function(s){return a.onDrag(s)}),onTouchend:e[8]||(e[8]=function(s){return a.onDragEnd(s)}),onMousedown:e[9]||(e[9]=function(s){return a.onMouseDown(s,0)}),onKeydown:e[10]||(e[10]=function(s){return a.onKeyDown(s,0)}),onBlur:e[11]||(e[11]=function(s){return a.onBlur(s,0)}),tabindex:t.tabindex,role:"slider","aria-valuemin":t.min,"aria-valuenow":t.d_value?t.d_value[0]:null,"aria-valuemax":t.max,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-orientation":t.orientation},t.ptm("startHandler"),{"data-p":a.dataP}),null,16,Je)):A("",!0),t.range?(S(),k("span",L({key:2,class:t.cx("handle"),style:[t.sx("handle"),a.rangeEndHandleStyle()],onTouchstartPassive:e[12]||(e[12]=function(s){return a.onDragStart(s,1)}),onTouchmovePassive:e[13]||(e[13]=function(s){return a.onDrag(s)}),onTouchend:e[14]||(e[14]=function(s){return a.onDragEnd(s)}),onMousedown:e[15]||(e[15]=function(s){return a.onMouseDown(s,1)}),onKeydown:e[16]||(e[16]=function(s){return a.onKeyDown(s,1)}),onBlur:e[17]||(e[17]=function(s){return a.onBlur(s,1)}),tabindex:t.tabindex,role:"slider","aria-valuemin":t.min,"aria-valuenow":t.d_value?t.d_value[1]:null,"aria-valuemax":t.max,"aria-labelledby":t.ariaLabelledby,"aria-label":t.ariaLabel,"aria-orientation":t.orientation},t.ptm("endHandler"),{"data-p":a.dataP}),null,16,Qe)):A("",!0)],16,je)}le.render=Ze;const $e={class:"ifld start-window-picker"},et=["id"],tt=["aria-labelledby"],nt={class:"start-window-picker__any"},it={key:0,class:"start-window-picker__body"},at={class:"start-window-picker__ticks","aria-hidden":"true"},rt={class:"start-window-picker__inputs"},lt={class:"start-window-picker__input-label"},st=["disabled","onKeydown"],ot={class:"start-window-picker__input-label"},dt=["disabled","onKeydown"],ut={key:0,class:"start-window-picker__next-day","aria-label":"next day"},ht={class:"start-window-picker__duration"},O="start",X="start_window",Y=10,ee=0,te=1430,ct=1200,pt=1320,mt=ie({__name:"StartWindowRangePicker",props:{groupProps:{},groupValues:{},disabled:{type:Boolean}},emits:["update"],setup(t,{emit:e}){const n=De(),l=Pe(),o=t,a=e,s=/^(\d{1,2}):(\d{2})$/;function D(i){if(typeof i!="string"||i.length===0||!/^\d/.test(i))return null;const r=s.exec(i);if(!r){const v=Number(i);return!Number.isFinite(v)||v<0||v>=1440?null:Math.round(v)}const g=Number(r[1]),p=Number(r[2]);return g<0||g>=24||p<0||p>=60?null:g*60+p}function f(i){const r=Math.floor(i/60),g=i%60;return`${r.toString().padStart(2,"0")}:${g.toString().padStart(2,"0")}`}function E(i){const r=Math.max(ee,Math.min(te,i));return Math.round(r/Y)*Y}const T=y(()=>o.groupProps[O]),I=y(()=>o.groupProps[X]),h=y(()=>D(o.groupValues[O])),c=y(()=>D(o.groupValues[X])),x=H(h.value===null||c.value===null),b=H({start:h.value??ct,stop:c.value??pt});N(()=>[h.value,c.value],([i,r])=>{x.value=i===null||r===null,i!==null&&r!==null&&(b.value={start:i,stop:r})});const B=y(()=>[h.value??b.value.start,c.value??b.value.stop]),w=H(h.value===null?"":f(h.value)),P=H(c.value===null?"":f(c.value));N(h,i=>{w.value=i===null?"":f(i)}),N(c,i=>{P.value=i===null?"":f(i)});function V(i){a("update",O,i===null?null:f(i))}function z(i){a("update",X,i===null?null:f(i))}function se(i){x.value=i,i?(V(null),z(null)):(V(b.value.start),z(b.value.stop))}function oe(i){if(!Array.isArray(i)||i.length!==2)return;const[r,g]=i,p=E(r),v=E(g);b.value={start:p,stop:v},p!==h.value&&V(p),v!==c.value&&z(v)}function G(){const i=D(w.value);if(i===null){w.value=h.value===null?"":f(h.value);return}const r=E(i);w.value=f(r),r!==h.value&&(b.value={...b.value,start:r},V(r))}function q(){const i=D(P.value);if(i===null){P.value=c.value===null?"":f(c.value);return}const r=E(i);P.value=f(r),r!==c.value&&(b.value={...b.value,stop:r},z(r))}const de=y(()=>{const i=h.value,r=c.value;if(i===null||r===null)return"";if(i===r)return`0 min · matches only events starting at exactly ${f(i)}`;const g=i<r?r-i:1440-i+r,p=Math.floor(g/60),v=g%60,J=p>0?`${p} h ${v} min`:`${v} min`;return i>r?`${J} · crosses midnight`:J}),ue=[0,3,6,9,12,15,18,21],C=y(()=>!!o.disabled||!!T.value?.rdonly||!!I.value?.rdonly),he=y(()=>"Time window"),ce=y(()=>T.value?.description??I.value?.description??""),K=y(()=>{const i=h.value,r=c.value;return i!==null&&r!==null&&i>r}),pe=y(()=>{if(!K.value||h.value===null||c.value===null)return;const i=h.value/1440*100,r=c.value/1440*100;return{"--wrap-start":`${i}%`,"--wrap-stop":`${r}%`}});return(i,r)=>{const g=Ee("tooltip");return S(),k("div",$e,[m("div",{id:u(l),class:"ifld__label"},[U((S(),k("span",null,[F(R(he.value),1)])),[[g,u(n).quicktips&&ce.value||"",void 0,{right:!0}]])],8,et),m("div",{class:"start-window-picker__control",role:"group","aria-labelledby":u(l)},[m("div",nt,[_(u(xe),{"model-value":x.value,binary:"",disabled:C.value,"input-id":"start-window-any","onUpdate:modelValue":se},null,8,["model-value","disabled"]),r[3]||(r[3]=m("label",{for:"start-window-any",class:"start-window-picker__any-label"}," Any time ",-1))]),x.value?A("",!0):(S(),k("div",it,[_(u(le),{"model-value":B.value,min:ee,max:te,step:Y,disabled:C.value,range:"",class:Ae(["start-window-picker__slider",{"start-window-picker__slider--wraps":K.value}]),style:Le(pe.value),onMousedown:r[0]||(r[0]=W(()=>{},["prevent"])),"onUpdate:modelValue":oe},null,8,["model-value","disabled","class","style"]),m("div",at,[(S(),k(ae,null,_e(ue,p=>m("span",{key:p,class:"start-window-picker__tick"},R(p.toString().padStart(2,"0")),1)),64))]),m("div",rt,[m("label",lt,[r[4]||(r[4]=F(" From ",-1)),U(m("input",{"onUpdate:modelValue":r[1]||(r[1]=p=>w.value=p),type:"text",inputmode:"numeric",class:"start-window-picker__input",disabled:C.value,"aria-label":"Start after",onBlur:G,onKeydown:Z(W(G,["prevent"]),["enter"])},null,40,st),[[Q,w.value]])]),m("label",ot,[r[5]||(r[5]=F(" To ",-1)),U(m("input",{"onUpdate:modelValue":r[2]||(r[2]=p=>P.value=p),type:"text",inputmode:"numeric",class:"start-window-picker__input",disabled:C.value,"aria-label":"Start before",onBlur:q,onKeydown:Z(W(q,["prevent"]),["enter"])},null,40,dt),[[Q,P.value]]),K.value?(S(),k("span",ut," +1d ")):A("",!0)])]),m("p",ht,R(de.value),1)]))],8,tt)])}}}),ft=re(mt,[["__scopeId","data-v-8b455b30"]]),gt={class:"autorec__empty"},ne="name,title,fulltext,mergetext,channel,start,start_window,weekdays,record,tag,btype,content_type,cat1,cat2,cat3,minduration,maxduration,minyear,maxyear,minseason,maxseason,star_rating,directory,config_name,pri,serieslink,comment",bt=ie({__name:"AutorecsView",setup(t){const{t:e}=Me(),n=[{keys:["start","start_window"],component:ft}],l=[{field:"enabled",...d.enabled,editable:!0},{field:"name",...d.name,editable:!0},{field:"title",...d.title,editable:!0},{field:"fulltext",...d.fulltext,editable:!0},{field:"mergetext",...d.mergetext,editable:!0},{field:"channel",...d.channel,editable:!0},{field:"tag",...d.tag,editable:!0},{field:"start",...d.start,editable:!0},{field:"start_window",...d.start_window,editable:!0},{field:"weekdays",...d.weekdays,editable:!0},{field:"minduration",...d.minduration,editable:!0},{field:"maxduration",...d.maxduration,editable:!0},{field:"record",...d.record,editable:!0},{field:"btype",...d.btype,editable:!0},{field:"content_type",...d.content_type,editable:!0},{field:"cat1",...d.cat1,editable:!0},{field:"cat2",...d.cat2,editable:!0},{field:"cat3",...d.cat3,editable:!0},{field:"star_rating",...d.star_rating,editable:!0},{field:"pri",...d.pri,editable:!0},{field:"directory",...d.directory,editable:!0},{field:"config_name",...d.config_name,editable:!0},{field:"minseason",...d.minseason,editable:!0},{field:"maxseason",...d.maxseason,editable:!0},{field:"minyear",...d.minyear,editable:!0},{field:"maxyear",...d.maxyear,editable:!0},{field:"owner",...d.owner,editable:!0},{field:"creator",...d.creator,editable:!0},{field:"comment",...d.comment,editable:!0},{field:"serieslink",...d.serieslink,editable:!0}],o=Be({head:"enabled,start_extra,stop_extra",base:ne,adminExtra:"owner,creator",tail:"retention,removal,maxcount,maxsched"}),{editingUuid:a,editingUuids:s,creatingBase:D,gridRef:f,editorLevel:E,editorList:T,openEditor:I,closeEditor:h,flipToEdit:c,buildActions:x}=Ie({createBase:"dvr/autorec",editList:o,createList:ne,entityNoun:e("autorec entries"),addTooltip:e("Add a new autorec entry")});return(b,B)=>(S(),k(ae,null,[_(me,{ref_key:"gridRef",ref:f,endpoint:"dvr/autorec/grid","help-page":"class/dvrautorec",columns:l,"store-key":"dvr-autorec","default-sort":{key:"name",dir:"ASC"},"virtual-scroller-options":{itemSize:36,lazy:!1},"count-label":"autorecs","edit-mode":"cell",class:"autorec__grid",onRowDblclick:B[0]||(B[0]=w=>u(I)([w]))},{empty:$(()=>[m("p",gt,R(u(e)("No autorec entries. Click Add to schedule recordings against EPG broadcasts.")),1)]),toolbarActions:$(({selection:w,clearSelection:P})=>[_(fe,{actions:u(x)(w,P)},null,8,["actions"])]),_:1},512),_(Te,{uuid:u(a),uuids:u(s),"create-base":u(D),level:u(E),list:u(T),title:u(a)?u(e)("Edit Autorec"):u(e)("Add Autorec"),"inline-enum-multi-fields":["weekdays"],"field-groups":n,onClose:u(h),onCreated:u(c)},null,8,["uuid","uuids","create-base","level","list","title","onClose","onCreated"])],64))}}),Rt=re(bt,[["__scopeId","data-v-9d850d1d"]]);export{Rt as default};
