PageSourceSearch

https://rocketeers.app/build/assets/Form-DkCfb8QU.js

js rocketeers.app collected 2026-10-04 19:31:58 UTC 1,558 bytes, 3 lines download raw bytes

1import{u as b,r as p,R as e,c as g}from"./app-7KgZdLvB.js";import{L as h}from"./Layout-DMoSPRoj.js";import{L as v}from"./LoadingButton-BboAabvL.js";import{T as x}from"./TextInput-CvwkqlLT.js";import{C as E}from"./index-CEEu2j9b.js";import"./matchbrackets-B4TBRfVL.js";import"./index-BvCrh6qf.js";import"./Button-evrIg-lJ.js";import"./extends-gSXMKZJJ.js";const V=()=>{const{snippet:t,errors:n}=b().props,[u,m]=p.useState(!1),[r,o]=p.useState({name:t?t.name:"",value:t?t.value:`#!/bin/bash
2
3`});function i(a){const l=a.target.name,s=a.target.value;o(f=>({...f,[l]:s}))}function c(a,l){o(s=>({...s,contents:a}))}function d(a){a.preventDefault(),m(!0),g.post(t?route("snippets.update",{snippet:t.uuid}):route("snippets.store"),r).then(()=>{m(!1)})}return e.createElement(h,null,e.createElement("div",null,e.createElement("h1",{className:"mb-8 text-3xl font-bold"},"Create Snippet"),e.createElement("div",{className:"max-w-3xl"},e.createElement("form",{onSubmit:d},e.createElement("div",{className:"flex flex-wrap p-8 -mb-8 -mr-6"},e.createElement(x,{className:"w-full pb-8 pr-6",label:"Name",name:"name",errors:n==null?void 0:n.name,defaultValue:r.name,onChange:i}),e.createElement(E,{value:r.value,onChange:c,theme:"light",className:"form-input mt-1 w-full shadow-sm border-gray-300 p-2.5 border rounded-md mb-8 text-base"})),e.createElement("div",{className:"flex items-center justify-end px-8 py-4 border-t border-gray-200 bg-gray-50"},e.createElement(v,{loading:u,type:"submit",className:""},t?"Update Snippet":"Create Snippet"))))))};export{V 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.