import{b as x}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{r as h,l as k}from"./fieldsStore-CNpVuoPu.js";import{u as q}from"./translationsStore-D6vLzgNA.js";import{u as F}from"./settingsStore-8bwiLMEn.js";import{_ as S}from"./RequiredHint.vue_vue_type_style_index_0_lang-DGTCbwUk.js";import{d as T,e as n,f as d,i as a,x as s,k as V,t as c,B,z as N}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as y,u as t}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as R,a as w}from"./vendor-vue-shared-DrzsEcag.js";import"./vendor-pinia-BSPefQhS.js";import"./appStore-CFAkQG2b.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.js";import"./vendor-moment-Cv92BTSA.js";import"./vendor-bootstrap-CCU-90um.js";import"./vendor-jspdf-UFhKzYHA.js";import"./vendor-php-date-formatter-DSpPwBF8.js";import"./callbackStore-BhxBUA6V.js";const C={class:"ccb-order-field__wrapper"},O={class:"ccb-order-field__label"},z={key:0,class:"ccb-order-required-mark"},D=["placeholder"],Y=T({__name:"OrderName",props:{field:{}},setup(u){const m=u,{field:e}=y(m),{checkFieldRequired:p}=h(),f=q(),_=F(),v=n(()=>{var o,r;return((r=(o=_.getWarningTexts)==null?void 0:o.formFields)==null?void 0:r.nameField)||f.getTranslations.requiredField}),b=o=>{const{updateValue:r}=k(),g=o.target.value;r(e.value.id,g)},i=n(()=>e.value.required?p(e.value):!1);return(o,r)=>(a(),d("div",{class:w(["ccb-order-field ccb-order-name",{[`ccb-col-${t(e).fieldWidth}`]:!0,"ccb-order-field--required":i.value}])},[s("div",C,[i.value?(a(),V(S,{key:0,text:v.value},null,8,["text"])):c("",!0),s("label",O,[N(R(t(e).label)+" ",1),t(e).required?(a(),d("span",z,"*")):c("",!0)]),B(s("input",{type:"text",placeholder:t(e).placeholder,onInput:b,"onUpdate:modelValue":r[0]||(r[0]=l=>t(e).value=l)},null,40,D),[[x,t(e).value]])])],2))}});export{Y as default};
//# sourceMappingURL=OrderName-CShVD7b7.js.map
