PageSourceSearch

https://marmof.com/build/assets/Create-11dc0e5c.js

js marmof.com collected 2026-10-04 00:30:56 UTC 2,234 bytes, 1 lines download raw bytes

1import{T as x,E as b,j as g,o as k,c as y,w as n,a as t,h as i,b as s,u as o}from"./app-49265ad1.js";import{_ as f}from"./InputError-98916ca9.js";import{_}from"./InputLabel-16e10e51.js";import{_ as C}from"./TextInput-4d216ebd.js";import{_ as V}from"./Button-7c0475a9.js";import{_ as N}from"./DialogModal-7811a101.js";import{u as $}from"./useNotification-78c43030.js";import{_ as j}from"./Textarea-0dacd7ae.js";import"./Modal-6a8dce15.js";const S={class:"flex items-center justify-between"},B=t("div",null,"New data",-1),E=["onClick"],D=t("span",{class:"i-bytesize:close block"},null,-1),T=[D],U=["onSubmit"],z={class:"mt-1 flex"},I=t("div",{class:"flex items-center justify-center rounded-l-lg border border-r-0 bg-gray-100/70 px-3 text-xl text-secondary-1000"}," # ",-1),M={class:"mt-4"},q=t("span",null," Create",-1),Q={__name:"Create",props:{show:!1},emits:["close"],setup(p,{emit:h}){const w=$(),c=h,v=p,e=x({name:"",info:""}),m=b({show:!1}),d=()=>{e.reset(),e.clearErrors(),c("close")};g(v,l=>{m.show=l.show});function u(){e.post(route("data-hub.store"),{preserveScroll:!0,onSuccess(l){e.reset(),c("close",l.props.new_record_id),w.success({message:"Data created successfully."})}})}return(l,a)=>(k(),y(N,{show:m.show,onClose:d},{title:n(()=>[t("div",S,[B,t("div",null,[t("button",{onClick:i(d,["prevent"])},T,8,E)])])]),content:n(()=>[t("form",{onSubmit:i(u,["prevent"])},[t("div",null,[s(_,{for:"title",value:"Name"}),t("div",z,[I,s(C,{id:"title",modelValue:o(e).name,"onUpdate:modelValue":a[0]||(a[0]=r=>o(e).name=r),type:"text",class:"block w-full rounded-l-none",autocomplete:"title",placeholder:"Data Name"},null,8,["modelValue"])]),s(f,{message:o(e).errors.name,class:"mt-2"},null,8,["message"])]),t("div",M,[s(_,{for:"title",value:"Info"}),s(j,{id:"title",modelValue:o(e).info,"onUpdate:modelValue":a[1]||(a[1]=r=>o(e).info=r),type:"text",rows:"3",class:"mt-1 block w-full",autocomplete:"title",placeholder:"Enter Text"},null,8,["modelValue"]),s(f,{message:o(e).errors.info,class:"mt-2"},null,8,["message"])])],40,U)]),footer:n(()=>[s(V,{onClick:i(u,["prevent"]),class:"flex justify-center text-center",loading:o(e).processing},{default:n(()=>[q]),_:1},8,["onClick","loading"])]),_:1},8,["show"]))}};export{Q 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.