import{u as j,b as _,j as e}from"./vendor-BKmmeuxg.js";import{I as i}from"./input-error-LaPr_4wd.js";import{L as u}from"./loading-button-BnTVAMJ7.js";import{C as f}from"./card-D9_SJYq6.js";import{I as l}from"./input-DM0goJrn.js";import{L as n}from"./label-HmIcv5Yx.js";import{T as d}from"./textarea-CyndvowL.js";import{o as m}from"./inertia-SZXqLvQm.js";import"./utils-DxSsnXxD.js";import"./button-BpNwv2aE.js";import"./index-WW_1X1qx.js";const I=()=>{const{props:p}=j(),{tab:c,exam:t}=p,{data:a,setData:r,post:x,errors:o,processing:h}=_({tab:c,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||""}),g=s=>{s.preventDefault(),x(route("exams.update",{exam:t.id}))};return e.jsx(f,{className:"p-4 sm:p-6",children:e.jsxs("form",{onSubmit:g,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx(n,{children:"Meta Title"}),e.jsx(l,{name:"meta_title",value:a.meta_title,onChange:s=>m(s,r),placeholder:"Enter meta title for SEO"}),e.jsx(i,{message:o.meta_title})]}),e.jsxs("div",{children:[e.jsx(n,{children:"Meta Keywords"}),e.jsx(d,{rows:3,name:"meta_keywords",value:a.meta_keywords,onChange:s=>m(s,r),placeholder:"Enter meta keywords separated by commas"}),e.jsx(i,{message:o.meta_keywords})]}),e.jsxs("div",{children:[e.jsx(n,{children:"Meta Description"}),e.jsx(d,{rows:3,name:"meta_description",value:a.meta_description,onChange:s=>m(s,r),placeholder:"Enter meta description for search engines"}),e.jsx(i,{message:o.meta_description})]}),e.jsxs("div",{children:[e.jsx(n,{children:"OG Title"}),e.jsx(l,{name:"og_title",value:a.og_title,onChange:s=>m(s,r),placeholder:"Enter Open Graph title"}),e.jsx(i,{message:o.og_title})]}),e.jsxs("div",{children:[e.jsx(n,{children:"OG Description"}),e.jsx(d,{rows:3,name:"og_description",value:a.og_description,onChange:s=>m(s,r),placeholder:"Enter Open Graph description for social media"}),e.jsx(i,{message:o.og_description})]}),e.jsx("div",{className:"mt-8",children:e.jsx(u,{loading:h,children:"Save Changes"})})]})})};export{I as default};
