1import{a8 as a,m,j as t,L as n,s as d}from"./index-Bu_qGu7n.js";import{C as p,P as u}from"./ProductForm-Dp7EdcHV.js";import"./button-CRt62nev.js";import"./label-2UGQn-GE.js";import"./textarea-lWyQDPTN.js";import"./switch-BGz0ux5w.js";import"./index-B9qJ-czE.js";import"./select-DCoiv0ai.js";import"./Combination-DS8eIzf_.js";import"./uploadImage-Bvf0xxGH.js";import"./plus-CMVHNqqR.js";import"./loader-circle-C29i5Jdf.js";import"./upload-BoZwtoWq.js";function q(){const{id:r}=a.useParams(),{data:e,isLoading:s}=m({queryKey:["product",r],queryFn:async()=>{const{data:i,error:o}=await d.from("products").select("*").eq("id",r).single();if(o)throw o;return i}});return t.jsxs("div",{children:[t.jsxs(n,{to:"/admin/products",className:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground",children:[t.jsx(p,{size:14})," Kembali"]}),t.jsx("h1",{className:"mt-2 font-display text-2xl font-bold",children:"Edit Produk"}),t.jsx("div",{className:"mt-6",children:s?t.jsx("p",{className:"text-muted-foreground",children:"Memuatâ¦"}):e&&t.jsx(u,{initial:e})})]})}export{q as component};
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.