1import{_ as v}from"./D1dMu6QJ.js";import{d as h,av as $,z as m,Q as p,B as d,u as s,f as g,D as k,c as u,e as r}from"./-DLWNC6n.js";import{f as A,m as B}from"#entry";import{u as b}from"./B4PA2jcZ.js";import"./U4mgRV-M.js";import"./CVxDngRZ.js";import"./DJ587K6K.js";import"./CS6sMY72.js";import"./Dh5mzWV7.js";import"./Xq-tkkbV.js";import"./KXDfhFVj.js";import"./EBY1djgu.js";import"./DlAUqK2U.js";import"./poOW0nuE.js";import"./C90W3vFq.js";import"./CxCcfHXN.js";import"./B7nunhTo.js";import"./CVoKLib-.js";const w={class:"mx-auto max-w-3xl space-y-6 px-4 py-6",dir:"rtl"},C={class:"text-2xl font-bold text-[rgb(var(--color-text))]"},D={key:0,class:"flex justify-center py-12"},N={class:"text-[rgb(var(--color-text-muted))]"},T=h({__name:"edit",async setup(j){let o,n;const l=A(),{$api:_}=B(),a=u(()=>String(l.params.id||"").trim()),i=u(()=>{const t=a.value;return/^\d+$/.test(t)?t:t.match(/-(\d+)$/)?.[1]||t});function f(t){if(t!==null&&typeof t=="object"&&"data"in t){const e=t.data;if(e!==void 0)return e}return t}const{data:c,status:x}=([o,n]=$(async()=>b(()=>`ad-edit-${a.value}`,async()=>{const t=await _(`ads/${i.value}/`);return f(t)},{watch:[a,i]})),o=await o,n(),o);return(t,e)=>{const y=v;return r(),m("div",w,[p("h1",C,d(t.$t("ads.edit")),1),s(x)==="pending"?(r(),m("div",D,[p("span",N,d(t.$t("common.loading")),1)])):s(c)?(r(),g(y,{key:1,"initial-ad":s(c)},null,8,["initial-ad"])):k("",!0)])}}});export{T as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.