PageSourceSearch

https://aibr.org/build/assets/UpdateTagForm-vtAX3Equ.js

js aibr.org collected 2026-10-01 11:47:05 UTC 1,302 bytes, 1 lines download raw bytes

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 a}from"./Lang-BxT6IC8I.js";import{q as j}from"./transition-QhzdKtqK.js";const F=s=>{const{tag:r}=s,{data:m,setData:o,post:n,errors:i,processing:l,recentlySuccessful:c}=x({name:r.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:a("Tag")})}),e.jsxs("form",{onSubmit:u,className:"mt-6 space-y-6",children:[e.jsxs("div",{children:[e.jsx(p,{htmlFor:"name",value:a("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:a("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:a("Saved")})})]})]})]})};export{F as UpdateTagForm};

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.