PageSourceSearch

https://fonds.lv/build/assets/Form-D-z6gsRG.js

js fonds.lv collected 2026-10-01 12:26:27 UTC 5,522 bytes, 1 lines download raw bytes

1import{A as g}from"./AuthenticatedLayout-BgPi6SK7.js";import{i as P,Z as V,r as f,f as r,a as u,w as c,b as e,d as A,l as i,g as m,v as x,o as a,t as l,m as b,F as y,j as U,e as w,T as B}from"./app-BFBm0Bhp.js";import{P as L}from"./PrimaryButton-DQRXstZk.js";import{_ as C}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ApplicationLogo-BDZZhcqx.js";import"./NavLink-XJ1F9B8R.js";import"./TextOutline-DJTNpM16.js";import"./DocumentTextOutline-CSPECrKp.js";import"./InformationCircleOutline-B09VKpeu.js";const j={components:{AuthenticatedLayout:g,Head:V,Link:P,PrimaryButton:L},props:{assessor:{type:Object,default:()=>({})},scholarships:{type:Array,default:()=>[]}},setup(d){const s=B({name:d.assessor.name||"",email:d.assessor.email||"",password:"",setPassword:!d.assessor.id,active:!!d.assessor.active,scholarships:d.assessor.scholarships?d.assessor.scholarships.map(o=>o.id):[]});return{form:s,submit:()=>{d.assessor.id?s.put(route("admin.assessors.update",{assessor:d.assessor.id})):s.post(route("admin.assessors.store"))},scholarships:d.scholarships}}},q={class:"flex"},z={class:"font-semibold text-xl text-gray-800 leading-tight"},E={class:"py-12"},N={class:"max-w-4xl mx-auto sm:px-6 lg:px-8"},S={class:"bg-white overflow-hidden shadow-sm sm:rounded-lg p-6"},F={key:0,class:"text-red-500 text-sm"},H={class:"mb-4"},M={key:0,class:"text-red-500 text-sm"},T={key:1,class:"mb-4"},D={key:0,class:"text-red-500 text-sm"},I={key:2},O={class:"mb-4"},Z={key:0,class:"mb-4"},G=["required"],J={key:0,class:"text-red-500 text-sm"},K={class:"mb-4"},Q={key:0,class:"text-red-500 text-sm"},R={class:"mb-4"},W=["value"],X=["value"],Y={key:0,class:"text-red-500 text-sm"},$={class:"flex justify-end"};function ss(d,s,n,o,os,es){const p=f("Head"),v=f("Link"),k=f("PrimaryButton"),h=f("AuthenticatedLayout");return a(),r(y,null,[u(p,{title:n.assessor.id?"Edit Assessor":"Create Assessor"},null,8,["title"]),u(h,null,{header:c(()=>[e("div",q,[e("h2",z,l(n.assessor.id?"Edit Assessor":"Create Assessor"),1),s[9]||(s[9]=e("div",{class:"flex-grow"},null,-1)),u(v,{class:"btn btn-secondary",href:d.route("admin.assessors.index")},{default:c(()=>[...s[8]||(s[8]=[w(" Atpakaļ uz sarakstu ",-1)])]),_:1},8,["href"])])]),default:c(()=>[e("div",E,[e("div",N,[e("div",S,[e("form",{onSubmit:s[7]||(s[7]=A((...t)=>o.submit&&o.submit(...t),["prevent"]))},[s[16]||(s[16]=e("label",{for:"name",class:"block text-sm font-medium text-gray-700"},"Vārds uzvārds",-1)),i(e("input",{id:"name","onUpdate:modelValue":s[0]||(s[0]=t=>o.form.name=t),type:"text",class:"mt-1 block w-full border-gray-300 rounded-md shadow-sm",required:""},null,512),[[x,o.form.name]]),o.form.errors.name?(a(),r("span",F,l(o.form.errors.name),1)):m("",!0),e("div",H,[s[10]||(s[10]=e("label",{for:"email",class:"block text-sm font-medium text-gray-700"},"Epasts",-1)),i(e("input",{id:"email","onUpdate:modelValue":s[1]||(s[1]=t=>o.form.email=t),type:"email",class:"mt-1 block w-full border-gray-300 rounded-md shadow-sm",required:""},null,512),[[x,o.form.email]]),o.form.errors.email?(a(),r("span",M,l(o.form.errors.email),1)):m("",!0)]),n.assessor.id?(a(),r("div",I,[e("div",O,[s[12]||(s[12]=e("label",{for:"setPassword",class:"block text-sm font-medium text-gray-700"},"Uzstādīt paroli",-1)),i(e("input",{id:"setPassword",type:"checkbox","onUpdate:modelValue":s[3]||(s[3]=t=>o.form.setPassword=t),class:"form-checkbox h-5 w-5 text-indigo-600"},null,512),[[b,o.form.setPassword]])]),o.form.setPassword?(a(),r("div",Z,[s[13]||(s[13]=e("label",{for:"password",class:"block text-sm font-medium text-gray-700"},"Parole",-1)),i(e("input",{id:"password","onUpdate:modelValue":s[4]||(s[4]=t=>o.form.password=t),type:"text",class:"mt-1 block w-full border-gray-300 rounded-md shadow-sm",required:o.form.setPassword},null,8,G),[[x,o.form.password]]),o.form.errors.password?(a(),r("span",J,l(o.form.errors.password),1)):m("",!0)])):m("",!0)])):(a(),r("div",T,[s[11]||(s[11]=e("label",{for:"password",class:"block text-sm font-medium text-gray-700"},"Parole",-1)),i(e("input",{id:"password","onUpdate:modelValue":s[2]||(s[2]=t=>o.form.password=t),type:"text",class:"mt-1 block w-full border-gray-300 rounded-md shadow-sm",required:""},null,512),[[x,o.form.password]]),o.form.errors.password?(a(),r("span",D,l(o.form.errors.password),1)):m("",!0)])),e("div",K,[s[14]||(s[14]=e("label",{for:"active",class:"block text-sm font-medium text-gray-700"},"Aktīvs",-1)),i(e("input",{id:"active",type:"checkbox","onUpdate:modelValue":s[5]||(s[5]=t=>o.form.active=t),class:"form-checkbox h-5 w-5 text-indigo-600"},null,512),[[b,o.form.active]]),o.form.errors.active?(a(),r("span",Q,l(o.form.errors.active),1)):m("",!0)]),e("div",R,[s[15]||(s[15]=e("label",{class:"block text-sm font-medium text-gray-700"},"Stipendijas",-1)),(a(!0),r(y,null,U(o.scholarships,(t,ts)=>(a(),r("div",{key:t.id,class:"flex items-center space-x-4 mb-2"},[i(e("input",{type:"checkbox",value:t.id,"onUpdate:modelValue":s[6]||(s[6]=_=>o.form.scholarships=_),class:"form-checkbox"},null,8,W),[[b,o.form.scholarships]]),e("input",{type:"text",value:t.name,class:"mt-1 block w-full border-gray-300 rounded-md shadow-sm",disabled:""},null,8,X)]))),128)),o.form.errors.scholarships?(a(),r("span",Y,l(o.form.errors.scholarships),1)):m("",!0)]),e("div",$,[u(k,{type:"submit",disabled:o.form.processing},{default:c(()=>[w(l(n.assessor.id?"Saglabāt izmaiņas":"Izveidot vērtētāju"),1)]),_:1},8,["disabled"])])],32)])])])]),_:1})],64)}const cs=C(j,[["render",ss],["__scopeId","data-v-62dbb237"]]);export{cs 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.