1import{d as w,a as I,i as h,j as p,k as y,c,C as b,l as i,v as d,u as t,W as N,s as T,A as V,F as S}from"./vendor-vue-Bt0gNhgV.js";import{u as D,h as E,au as k,e as F,aD as R}from"./index-cJrhAE3g.js";import{a as x,u as A}from"./useForm-Gytiv7Mt.js";import{c as C}from"./settings-save-CX5wBzoD.js";import{_ as B}from"./FormActions.vue_vue_type_script_setup_true_lang-ngTP4qQt.js";import"./vendor-moment-Bfy5ykKt.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"1037"}}catch{}})();try{(function(){var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new e.Error().stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="ce97ea64-cefc-4211-969a-084ba516afd2",e._sentryDebugIdIdentifier="sentry-dbid-ce97ea64-cefc-4211-969a-084ba516afd2")})()}catch{}const Q={class:"mt-3"},q={class:"row"},G={type:"submit",class:"btn btn-primary"},W=w({__name:"InventoryTypesForm",setup(e){const{t:s}=D(),{query:_}=x(),o=F(),{data:u}=E(R(_)),{mutateAsync:g}=C("inventory_types"),r=I(!1),v=h(()=>{if(o.params.id&&u.value?.page_items)return u.value.page_items.find(f=>f.id===Number(o.params.id))}),{submit:l,handleReset:m}=A(v,g,"inventory-types");return(f,a)=>(p(),y(S,null,[c(B,{modelValue:r.value,"onUpdate:modelValue":a[0]||(a[0]=n=>r.value=n),type:"inventory-types"},{formName:b(()=>[i("h5",Q,d(t(s)("Inventory Types")),1)]),_:1},8,["modelValue"]),r.value||t(o).params.id?(p(),y("form",{key:0,onSubmit:a[1]||(a[1]=(...n)=>t(l)&&t(l)(...n)),onReset:a[2]||(a[2]=N((...n)=>t(m)&&t(m)(...n),["prevent"]))},[i("div",q,[c(k,{name:"name",required:"",class:"col"},{default:b(()=>[T(d(t(s)("Name")),1)]),_:1})]),i("button",G,d(t(s)("Save")),1)],32)):V("",!0)],64))}});export{W as default}; 2//# sourceMappingURL=InventoryTypesForm-Cq6tThm-.js.map
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.