1import{i as u,t as i}from"./react-C6JdJxIB.js";import{t as s}from"./jsx-runtime-CGXBp6bb.js";import{t as n}from"./FormOffcanvas-Dh4a-3SG.js";var h=u(i(),1),c=s(),d=[{name:"code",label:"Language Code (2 chars)",required:!0,placeholder:"en",half:!0},{name:"name",label:"Language Name",required:!0,placeholder:"English",half:!0},{name:"direction",label:"Direction",type:"select",required:!0,options:[{value:"ltr",label:"LTR (Left to Right)"},{value:"rtl",label:"RTL (Right to Left)"}],half:!0},{name:"flag",label:"Flag (emoji)",placeholder:"ð¬ð§",half:!0},{name:"sort_order",label:"Sort Order",type:"number",placeholder:"0",half:!0},{name:"is_active",label:"Status",type:"checkbox",checkboxLabel:"Active",half:!0}];function b({isOpen:r,onClose:a,form:e,title:t="Add Language",submitLabel:l="Create Language"}){return(0,c.jsx)(n,{isOpen:r,onClose:a,title:t,fields:d,data:e.data,setData:e.setData,onSubmit:o=>{o.preventDefault(),e.post(route("admin.languages.store"),{onSuccess:()=>{a(),e.reset()}})},processing:e.processing,errors:e.errors,submitLabel:l})}export{b 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.