import{a as h,C as q,b as i,m as d,g as s,p as o,f as x,q as c,M as F,L as k,D as S,u as r,U as T,I as V}from"./convert-case-to-camel-case.utils-DDUpNI96.js";import{a as N,w,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"},D={class:"ccb-order-field__label"},O={key:0,class:"ccb-order-required-mark"},I=["placeholder"],H=h({__name:"OrderName",props:{field:{}},setup(u){const m=u,{field:e}=q(m),{checkFieldRequired:p}=w(),f=B(),_=N(),v=i(()=>{var a,t;return((t=(a=_.getWarningTexts)==null?void 0:a.formFields)==null?void 0:t.nameField)||f.getTranslations.requiredField}),b=a=>{const{updateValue:t}=y(),g=a.target.value;t(e.value.id,g)},l=i(()=>e.value.required?p(e.value):!1);return(a,t)=>(s(),d("div",{class:V(["ccb-order-field ccb-order-name",{[`ccb-col-${r(e).fieldWidth}`]:!0,"ccb-order-field--required":l.value}])},[o("div",R,[l.value?(s(),x(C,{key:0,text:v.value},null,8,["text"])):c("",!0),o("label",D,[k(S(r(e).label)+" ",1),r(e).required?(s(),d("span",O,"*")):c("",!0)]),F(o("input",{type:"text",placeholder:r(e).placeholder,onInput:b,"onUpdate:modelValue":t[0]||(t[0]=n=>r(e).value=n)},null,40,I),[[T,r(e).value]])])],2))}});export{H as default};
//# sourceMappingURL=OrderName-DW-o7nfc.js.map
