import{aT as w,aU as f,j as e}from"./react-vendor-xYZnmIII.js";import{I as d}from"./input-error-_LAmvivg.js";import{L as y}from"./loading-button-D7aXR3K4.js";import{a as k,L as m,I as _,T as c}from"./ui-components-CQM92IK3.js";import{o as l}from"./inertia-FIn3q7f1.js";import"./inertia-vendor-cBbDTmhJ.js";import"./ui-vendor-Ds9iwIxa.js";import"./interactive-vendor-B1OgcAgP.js";const D=()=>{const{props:p}=w(),{translate:g}=p,{dashboard:a,input:o,button:h}=g,{tab:x,course:t}=p,{data:i,setData:r,post:j,errors:n,processing:u}=f({tab:x,meta_title:t.meta_title,meta_keywords:t.meta_keywords,meta_description:t.meta_description,og_title:t.og_title,og_description:t.og_description}),v=s=>{s.preventDefault(),j(route("courses.update",{id:t.id}))};return e.jsx(k,{className:"p-4 sm:p-6",children:e.jsxs("form",{onSubmit:v,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(m,{children:a.meta_title}),e.jsx(_,{name:"meta_title",value:i.meta_title,onChange:s=>l(s,r),placeholder:o.meta_title}),e.jsx(d,{message:n.meta_title})]}),e.jsxs("div",{children:[e.jsx(m,{children:a.meta_keywords}),e.jsx(c,{rows:3,name:"meta_keywords",value:i.meta_keywords,onChange:s=>l(s,r),placeholder:o.meta_keywords}),e.jsx(d,{message:n.meta_keywords})]}),e.jsxs("div",{children:[e.jsx(m,{children:a.meta_description}),e.jsx(c,{rows:3,name:"meta_description",value:i.meta_description,onChange:s=>l(s,r),placeholder:o.meta_description}),e.jsx(d,{message:n.meta_description})]}),e.jsxs("div",{children:[e.jsx(m,{children:a.og_title}),e.jsx(_,{name:"og_title",value:i.og_title,onChange:s=>l(s,r),placeholder:o.og_title}),e.jsx(d,{message:n.og_title})]}),e.jsxs("div",{children:[e.jsx(m,{children:a.og_description}),e.jsx(c,{rows:3,name:"og_description",value:i.og_description,onChange:s=>l(s,r),placeholder:o.og_description}),e.jsx(d,{message:n.og_description})]}),e.jsx("div",{className:"mt-8",children:e.jsx(y,{loading:u,children:h.save_changes})})]})})};export{D as default};
