https://www.pricefic.com/build/assets/DepartmentForm.vue_vue_type_script_setup_true_lang-DiNSml9U.js
1import{y as m,x as u,c as p,e as i,d as r,s as b,u as a,h as f,F as c,b as _}from"./app-vHN_KEnx.js";import{_ as g}from"./AlertBanner.vue_vue_type_script_setup_true_lang-BGNn5zKW.js";import{F as V}from"./FormButtons-B-bYHkSa.js";import{_ as y}from"./InputGroup.vue_vue_type_script_setup_true_lang-CESffzrF.js";import{_ as d}from"./Select.vue_vue_type_script_setup_true_lang-C4rfCzqY.js";import{_ as v}from"./TextAreaGroup.vue_vue_type_script_setup_true_lang-JDqklQfK.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:"be52e6c5192223f2dbf7972a1ebb74605269b680"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="163c8060-259c-477d-a193-42476a9faf00",e._sentryDebugIdIdentifier="sentry-dbid-163c8060-259c-477d-a193-42476a9faf00")}catch{}})();const w={class:"w-full md:w-1/2"},$=m({__name:"DepartmentForm",props:{department:{},businesses:{},parentDepartments:{},errors:{},submit:{},creditCost:{}},setup(e){const t=e,s=u({business_id:t.department?.business?.hashid??t.department?.business_id??t.businesses[0]?.value??"",parent_id:t.department?.parent?.hashid??t.department?.parent_id??"",name:t.department?.name??"",description:t.department?.description??""}),l=f(()=>[{text:"Save",type:"submit",disabled:s.processing,loading:s.processing,loadingText:"Saving...",creditCost:t.creditCost,action(){}}]);return(D,n)=>(_(),p(c,null,[i(g,{errors:e.errors},null,8,["errors"]),r("div",w,[r("form",{onSubmit:n[4]||(n[4]=b(o=>a(s).post(e.submit),["prevent"]))},[i(d,{label:"Business",options:e.businesses,modelValue:a(s).business_id,"onUpdate:modelValue":n[0]||(n[0]=o=>a(s).business_id=o),name:"business_id",class:"mb-6"},null,8,["options","modelValue"]),i(d,{label:"Parent department",options:e.parentDepartments,modelValue:a(s).parent_id,"onUpdate:modelValue":n[1]||(n[1]=o=>a(s).parent_id=o),name:"parent_id",class:"mb-6"},null,8,["options","modelValue"]),i(y,{label:"Name",modelValue:a(s).name,"onUpdate:modelValue":n[2]||(n[2]=o=>a(s).name=o),name:"name",class:"mb-6"},null,8,["modelValue"]),i(v,{"show-label":"","label-text":"Description",modelValue:a(s).description,"onUpdate:modelValue":n[3]||(n[3]=o=>a(s).description=o),name:"description",class:"mb-6"},null,8,["modelValue"]),i(V,{items:l.value},null,8,["items"])],32)])],64))}});export{$ as _}; 2//# sourceMappingURL=DepartmentForm.vue_vue_type_script_setup_true_lang-DiNSml9U.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.