PageSourceSearch

https://www.eyedock.com/build/assets/ContactLensPolymerCreate-DAkeZWRf.js

js eyedock.com collected 2026-09-25 08:01:29 UTC 4,741 bytes, 1 lines download raw bytes

1import{u as v,j as w,e as n,a as l,b as t,h as k,d as r,l as y,x as p,f as i,w as C,V as U,_ as a,p as d,v as N,o as u,c as g,t as b,g as f,s as c,E as h}from"./app-C8sttQnK.js";import{_ as D}from"./AdminLayout-dWxOW1V_.js";import"./SidebarLayout-DtMnoaVb.js";const P={class:"mx-auto max-w-5xl px-4 py-6 sm:px-6 lg:px-8"},S={class:"mb-4 flex items-center justify-between"},T={class:"space-y-6 p-6"},B={class:"grid gap-4 sm:grid-cols-2"},M={class:"sm:col-span-2"},j={key:0,class:"mt-1 text-sm text-red-600"},L={class:"grid gap-3 sm:grid-cols-2"},$={class:"inline-flex items-center gap-2 text-sm text-gray-700"},E={class:"inline-flex items-center gap-2 text-sm text-gray-700"},F={key:0,class:"max-w-xs"},G={key:0,class:"mt-1 text-sm text-red-600"},H={class:"flex items-center justify-end gap-3 pt-2"},W=Object.assign({layout:null},{__name:"ContactLensPolymerCreate",props:{returnTo:{type:String,default:null}},setup(_){const m=_,o=v({name:"",fda_group:"",water_content:"",dk:"",modulus:"",is_silicone_hydrogel:!1,sih_generation:"",is_hidden:!1,description:"",return_to:m.returnTo}),V=()=>{o.post(route("admin.contact-lens-polymers.store"),{preserveScroll:!0})};return(x,e)=>(u(),w(D,{title:"Create Contact Lens Polymer"},{default:n(()=>[l(t(k),{title:"Create Contact Lens Polymer"}),r("div",P,[r("div",S,[e[10]||(e[10]=r("h1",{class:"text-2xl font-semibold text-gray-900"}," New Contact Lens Polymer ",-1)),l(t(y),{href:m.returnTo||x.route("admin.contact-lens-polymers.index")},{default:n(()=>[l(p,{variant:"secondary",icon:"mdi-arrow-left"},{default:n(()=>[...e[9]||(e[9]=[i("Back",-1)])]),_:1})]),_:1},8,["href"])]),r("form",{onSubmit:C(V,["prevent"])},[l(U,null,{default:n(()=>[r("div",T,[e[18]||(e[18]=r("h2",{class:"text-sm font-semibold uppercase text-gray-700"}," Polymer Details ",-1)),r("div",B,[l(a,{modelValue:t(o).name,"onUpdate:modelValue":e[0]||(e[0]=s=>t(o).name=s),label:"Name",error:t(o).errors.name,required:""},null,8,["modelValue","error"]),l(a,{modelValue:t(o).fda_group,"onUpdate:modelValue":e[1]||(e[1]=s=>t(o).fda_group=s),label:"FDA Group",type:"number",min:"1",max:"5",error:t(o).errors.fda_group},null,8,["modelValue","error"]),l(a,{modelValue:t(o).water_content,"onUpdate:modelValue":e[2]||(e[2]=s=>t(o).water_content=s),label:"Water Content (%)",type:"number",step:"0.1",min:"0",max:"100",error:t(o).errors.water_content},null,8,["modelValue","error"]),l(a,{modelValue:t(o).dk,"onUpdate:modelValue":e[3]||(e[3]=s=>t(o).dk=s),label:"Dk",type:"number",step:"0.1",min:"0",error:t(o).errors.dk},null,8,["modelValue","error"]),l(a,{modelValue:t(o).modulus,"onUpdate:modelValue":e[4]||(e[4]=s=>t(o).modulus=s),label:"Modulus",type:"number",step:"0.001",min:"0",error:t(o).errors.modulus},null,8,["modelValue","error"]),r("div",M,[e[11]||(e[11]=r("label",{class:"mb-1 block text-sm font-medium text-gray-700"}," Description ",-1)),d(r("textarea",{"onUpdate:modelValue":e[5]||(e[5]=s=>t(o).description=s),rows:"4",class:"w-full rounded-md border-gray-300 px-3 py-2 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500"},null,512),[[N,t(o).description]]),t(o).errors.description?(u(),g("div",j,b(t(o).errors.description),1)):f("",!0)])]),r("div",L,[r("label",$,[d(r("input",{"onUpdate:modelValue":e[6]||(e[6]=s=>t(o).is_silicone_hydrogel=s),type:"checkbox",class:"h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500"},null,512),[[c,t(o).is_silicone_hydrogel]]),e[12]||(e[12]=i(" Silicone hydrogel ",-1))]),r("label",E,[d(r("input",{"onUpdate:modelValue":e[7]||(e[7]=s=>t(o).is_hidden=s),type:"checkbox",class:"h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500"},null,512),[[c,t(o).is_hidden]]),e[13]||(e[13]=i(" Hidden from selectors ",-1))])]),t(o).is_silicone_hydrogel?(u(),g("div",F,[e[15]||(e[15]=r("label",{class:"mb-1 block text-sm font-medium text-gray-700"}," siH Generation ",-1)),d(r("select",{"onUpdate:modelValue":e[8]||(e[8]=s=>t(o).sih_generation=s),class:"w-full rounded-md border-gray-300 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500"},[...e[14]||(e[14]=[r("option",{value:""},"— Not set —",-1),r("option",{value:1},"1st generation",-1),r("option",{value:2},"2nd generation",-1),r("option",{value:3},"3rd generation",-1)])],512),[[h,t(o).sih_generation]]),t(o).errors.sih_generation?(u(),g("div",G,b(t(o).errors.sih_generation),1)):f("",!0)])):f("",!0),r("div",H,[l(t(y),{href:m.returnTo||x.route("admin.contact-lens-polymers.index")},{default:n(()=>[l(p,{variant:"secondary"},{default:n(()=>[...e[16]||(e[16]=[i("Cancel",-1)])]),_:1})]),_:1},8,["href"]),l(p,{type:"submit",loading:t(o).processing},{default:n(()=>[...e[17]||(e[17]=[i(" Create Polymer ",-1)])]),_:1},8,["loading"])])])]),_:1})],32)])]),_:1}))}});
1export{W 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.