PageSourceSearch

https://customer.satlinkonline.com/build/assets/Create-e3f517b7.js

js satlinkonline.com collected 2026-10-08 17:26:39 UTC 2,358 bytes, 1 lines download raw bytes

1import{u as c}from"./useRoute-ed7fc113.js";import{_ as C}from"./AuthenticatedLayout-6847a929.js";import{T as g}from"./app-d19ab1ef.js";import{s as f,X as x,Y as w,Z as b,p as k,d as m,V as y,_ as p,$ as i,a0 as V,x as N,ao as B}from"./vComponents-f260ef60.js";import{r as v,w as T,a0 as $,a1 as F,a2 as e,m as a,O as s,u as r,a3 as A}from"./vendors-a8515af8.js";import"./parse-c3570fb2.js";/* empty css                *//* empty css                */import"./vCore-534ae2df.js";import"./vLabComponents-05dc0430.js";const S={class:"pa-3 flex-fill d-flex justify-end"},q={__name:"Create",setup(U){const _=c(),t=g({name:"",photo:null}),n=v(null);T(n,function(d,l){d&&d.length>0?t.photo=d[0]:t.photo=null});const u=v(!1);return(d,l)=>($(),F(C,null,{default:e(()=>[a(y,{modelValue:u.value,"onUpdate:modelValue":l[2]||(l[2]=o=>u.value=o),width:"500"},{default:e(()=>[a(f,null,{default:e(()=>[a(x,null,{default:e(()=>[s("Add Category")]),_:1}),a(w,null,{default:e(()=>[s(" Are you sure you want to create a new category? ")]),_:1}),a(b,null,{default:e(()=>[a(k),a(m,{variant:"elevated",onClick:l[0]||(l[0]=o=>(r(t).post(r(_)("stock.brands.store"),{onSuccess:()=>{r(t).reset(),n.value=[]}}),u.value=!1))},{default:e(()=>[s("Yes!")]),_:1}),a(m,{color:"primary",onClick:l[1]||(l[1]=o=>u.value=!1)},{default:e(()=>[s("No")]),_:1})]),_:1})]),_:1})]),_:1},8,["modelValue"]),a(V,{class:"pa-0",fluid:""},{default:e(()=>[a(p,null,{default:e(()=>[a(i,{cols:"12",lg:"6"},{default:e(()=>[a(f,null,{title:e(()=>[s(" New Brand ")]),subtitle:e(()=>[s(" Fill in the below information to create a brand. ")]),text:e(()=>[a(V,{class:"pa-0",fluid:""},{default:e(()=>[a(p,null,{default:e(()=>[a(i,{cols:"12"},{default:e(()=>[a(N,{modelValue:r(t).name,"onUpdate:modelValue":l[3]||(l[3]=o=>r(t).name=o),"error-messages":r(t).errors.name,label:"Name",variant:"outlined"},null,8,["modelValue","error-messages"])]),_:1}),a(i,{cols:"12"},{default:e(()=>[a(B,{modelValue:n.value,"onUpdate:modelValue":l[4]||(l[4]=o=>n.value=o),"error-messages":r(t).errors.photo,label:"Photo",variant:"outlined",accept:"image/*"},null,8,["modelValue","error-messages"])]),_:1})]),_:1})]),_:1})]),actions:e(()=>[A("div",S,[a(m,{onClick:l[5]||(l[5]=o=>u.value=!0),variant:"elevated"},{default:e(()=>[s("Create")]),_:1})])]),_:1})]),_:1}),a(i,{cols:"12",lg:"6"})]),_:1})]),_:1})]),_:1}))}};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.