import{a as l}from"./index-D92x6h1h.js";import{u as d}from"./useEditorMode-DvyB-mon.js";import{m as o}from"./localDay-CoEbUe3O.js";import{D as e}from"./dvrFieldDefs-BDfuZvpU.js";function u(t){const i=l(),r=o(()=>!!i.data?.label_formatting),a=d({editList:t.editList,urlSync:t.urlSync??!1});return{kodiFmt:r,...a}}function _(t,i={}){const r=[{field:"disp_title",...e.disp_title,format:t},{field:"disp_extratext",...e.disp_extratext,format:t},{field:"episode_disp",...e.episode_disp},{field:"channel",...e.channel},{field:"start_real",...e.start_real},{field:"stop_real",...e.stop_real},{field:"duration",...e.duration},...i.filesize?[{field:"filesize",...e.filesize}]:[],...i.status?[{field:"status",...e.status}]:[],{field:"sched_status",...e.sched_status},{field:"comment",...e.comment},...i.playcount?[{field:"playcount",...e.playcount}]:[],{field:"config_name",...e.config_name},{field:"copyright_year",...e.copyright_year},{field:"owner",...e.owner},{field:"creator",...e.creator},{field:"errors",...e.errors},{field:"data_errors",...e.data_errors},...i.filename?[{field:"filename",...e.filename}]:[]];if(!i.phoneFields?.length)return r;const a=new Set(i.phoneFields);return r.map(s=>a.has(s.field)?{...s,minVisible:"phone"}:s)}export{_ as d,u};
