import{H as e,It as t,Mt as n,Q as r,W as i,Z as a,_t as o,at as s,d as c,ft as l,ht as u,jt as d,mt as f,ot as p,pt as m,s as h,tt as g,yt as _}from"../chunks/BA99CCI5.js";import{a as v}from"../chunks/DP37y6wO.js";import"../chunks/xihTtKlq.js";import"../chunks/DGo8yE5j.js";import"../chunks/BymfG72d2.js";import{t as y}from"../chunks/CEQEwD8g.js";import{t as b}from"../chunks/DCohNkHF.js";import{t as x}from"../chunks/N3ty8_862.js";var S=i(`<!> <div class="p-4 md:p-8"><!></div> <!>`,1);function C(i,C){n(C,!1);let w=u(),T=h(C,`data`,8);function E(){v(`/delay-profiles/${T().currentDatabase.id}`)}s(()=>a(T()),()=>{o(w,{name:T().delayProfile.name,preferredProtocol:T().delayProfile.preferred_protocol,usenetDelay:T().delayProfile.usenet_delay??0,torrentDelay:T().delayProfile.torrent_delay??0,bypassIfHighestQuality:T().delayProfile.bypass_if_highest_quality,bypassIfAboveCfScore:T().delayProfile.bypass_if_above_custom_format_score,minimumCfScore:T().delayProfile.minimum_custom_format_score??0})}),p(),c();var D=S(),O=m(D);{let e=_(()=>(a(T()),g(()=>`${T().delayProfile.name} · General`)));b(O,{get title(){return r(e)}})}var k=f(O,2),A=l(k);{let e=_(()=>(a(T()),g(()=>T().currentDatabase?.name))),t=_(()=>(a(T()),g(()=>[{label:T().currentDatabase.name,href:`/delay-profiles/${T().currentDatabase.id}`}])));x(A,{mode:`edit`,get databaseName(){return r(e)},get canWriteToBase(){return a(T()),g(()=>T().canWriteToBase)},actionUrl:`?/update`,get initialData(){return r(w)},onCancel:E,get breadcrumbItems(){return r(t)},get breadcrumbCurrent(){return a(T()),g(()=>T().delayProfile.name)}})}t(k);var j=f(k,2);y(j,{}),e(i,D),d()}export{C as component};