import{a as v,C as b,b as h,m as c,g as a,p as s,f as q,q as i,M as x,u as r,L as k,D as g,U as V,I as F}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{w as T,t as y}from"./widget-BUAABBRb.js";import{u as B}from"./translationsStore-DBJu9sBR.js";import{_ as C}from"./RequiredHint.vue_vue_type_style_index_0_lang-R4Bqx90z.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./_commonjs-dynamic-modules-TDtrdbi3.js";const R={class:"ccb-order-field__wrapper"},w={class:"ccb-order-field__label"},D={key:0,class:"ccb-order-required-mark"},N=["placeholder"],z=v({__name:"OrderText",props:{field:{}},setup(n){const u=n,{field:e}=b(u),{checkFieldRequired:p}=T(),m=B(),f=l=>{const{updateValue:t}=y(),_=l.target.value;t(e.value.id,_)},o=h(()=>e.value.required?p(e.value):!1);return(l,t)=>(a(),c("div",{class:F(["ccb-order-field ccb-order-text",{[`ccb-col-${r(e).fieldWidth}`]:!0,"ccb-order-field--required":o.value}])},[s("div",R,[o.value?(a(),q(C,{key:0,text:r(m).getTranslations.requiredField},null,8,["text"])):i("",!0),s("label",w,[k(g(r(e).label)+" ",1),r(e).required?(a(),c("span",D,"*")):i("",!0)]),x(s("input",{type:"text",placeholder:r(e).placeholder,onInput:f,"onUpdate:modelValue":t[0]||(t[0]=d=>r(e).value=d)},null,40,N),[[V,r(e).value]])])],2))}});export{z as default};
//# sourceMappingURL=OrderText-C64U3nJX.js.map
