1import{W as x,j as e}from"./app-belrbPXN.js";import{I as p}from"./InputLabel-Q_Wu-unK.js";import{T as d}from"./TextInput-f29lzoJX.js";import{I as f}from"./InputError-OZY4xCw_.js";import{P as h}from"./PrimaryButton-ZU7A18o6.js";import{_ as s}from"./Lang-BxT6IC8I.js";import{q as j}from"./transition-QhzdKtqK.js";const F=r=>{const{tag:a}=r,{data:m,setData:o,post:n,errors:i,processing:l,recentlySuccessful:c}=x({name:a==null?void 0:a.name}),u=t=>{t.preventDefault(),n(route("backoffice.tag.store"))};return e.jsxs("section",{className:"max-w-xl",children:[e.jsx("header",{children:e.jsx("h2",{className:"text-lg font-medium text-gray-900",children:s("Tag")})}),e.jsxs("form",{onSubmit:u,className:"mt-6 space-y-6",children:[e.jsxs("div",{children:[e.jsx(p,{htmlFor:"name",value:s("Name")}),e.jsx(d,{id:"name",className:"mt-1 block w-full",value:m.name,onChange:t=>o("name",t.target.value),required:!0,isFocused:!0,autoComplete:"name"}),e.jsx(f,{className:"mt-2",message:i.name})]}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(h,{disabled:l,children:s("Save")}),e.jsx(j,{show:c,enter:"transition ease-in-out",enterFrom:"opacity-0",leave:"transition ease-in-out",leaveTo:"opacity-0",children:e.jsx("p",{className:"text-sm text-gray-600",children:s("Saved")})})]})]})]})};export{F as CreateTagForm};
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.