import{b as v}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{r as b,l as x}from"./fieldsStore-CNpVuoPu.js";import{u as h}from"./translationsStore-D6vLzgNA.js";import{_ as k}from"./RequiredHint.vue_vue_type_style_index_0_lang-DGTCbwUk.js";import{d as q,e as V,f as d,i as o,x as a,k as g,t as c,B,z as F}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as T,u as r}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as y,a as R}from"./vendor-vue-shared-DrzsEcag.js";import"./vendor-pinia-BSPefQhS.js";import"./settingsStore-8bwiLMEn.js";import"./convert-case-to-camel-case.utils-CK5dBN7n.js";import"./appStore-CFAkQG2b.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"},N={class:"ccb-order-field__label"},O={key:0,class:"ccb-order-required-mark"},S=["placeholder"],P=q({__name:"OrderText",props:{field:{}},setup(n){const u=n,{field:e}=T(u),{checkFieldRequired:p}=b(),m=h(),f=l=>{const{updateValue:t}=x(),_=l.target.value;t(e.value.id,_)},s=V(()=>e.value.required?p(e.value):!1);return(l,t)=>(o(),d("div",{class:R(["ccb-order-field ccb-order-text",{[`ccb-col-${r(e).fieldWidth}`]:!0,"ccb-order-field--required":s.value}])},[a("div",C,[s.value?(o(),g(k,{key:0,text:r(m).getTranslations.requiredField},null,8,["text"])):c("",!0),a("label",N,[F(y(r(e).label)+" ",1),r(e).required?(o(),d("span",O,"*")):c("",!0)]),B(a("input",{type:"text",placeholder:r(e).placeholder,onInput:f,"onUpdate:modelValue":t[0]||(t[0]=i=>r(e).value=i)},null,40,S),[[v,r(e).value]])])],2))}});export{P as default};
//# sourceMappingURL=OrderText-BnKt3wW3.js.map
