import{b as h}from"./vendor-vue-runtime-dom-B2rky8vu.js";import{r as q,l as s}from"./fieldsStore-CQRN0FvQ.js";import{u as x}from"./translationsStore-D6vLzgNA.js";import{_ as V}from"./RequiredHint.vue_vue_type_style_index_0_lang-DGTCbwUk.js";import{d as N,e as g,f as d,i as l,x as o,k as B,t as u,z as C,B as F}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as y,u as t}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as O,a as R}from"./vendor-vue-shared-DrzsEcag.js";import{_ as T}from"./vendor-vue3-html2pdf-KR020wX8.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";import"./vendor-html2pdf.js-B-tok4Ns.js";import"./vendor-html2canvas-BfYXEYrK.js";const w={class:"ccb-order-field__title"},S=["for"],z={key:0,class:"ccb-order-required-mark"},D={class:"ccb-order-field__wrapper"},I=["id","placeholder"],P=N({__name:"OrderNumber",props:{field:{}},setup(n){const m=n,{field:e}=y(m),{checkFieldRequired:p}=q(),f=x(),i=g(()=>e.value.required?p(e.value):!1),_=a=>{const{updateValue:r}=s(),k=a.target.value;r(e.value.id,k)},v=()=>{const{updateValue:a}=s();let r=Number(e.value.value||0);a(e.value.id,r+1)},b=()=>{const{updateValue:a}=s();let r=Number(e.value.value||0);a(e.value.id,r-1||0)};return(a,r)=>(l(),d("div",{class:R(["ccb-order-field ccb-order-number",{[`ccb-col-${t(e).fieldWidth}`]:!0,"ccb-order-field--required":i.value}])},[o("div",w,[i.value?(l(),B(V,{key:0,text:t(f).getTranslations.requiredField},null,8,["text"])):u("",!0),o("label",{for:"number_"+t(e).id,class:"ccb-order-field__label"},[C(O(t(e).label)+" ",1),t(e).required?(l(),d("span",z,"*")):u("",!0)],8,S)]),o("div",D,[F(o("input",{type:"number",id:"number_"+t(e).id,placeholder:t(e).placeholder,onInput:_,"onUpdate:modelValue":r[0]||(r[0]=c=>t(e).value=c)},null,40,I),[[h,t(e).value]]),o("div",{class:"ccb-input-counter up",onClick:v},r[1]||(r[1]=[o("i",{class:"ccb-icon-Path-3486"},null,-1)])),o("div",{class:"ccb-input-counter down",onClick:b},r[2]||(r[2]=[o("i",{class:"ccb-icon-Path-3485"},null,-1)]))])],2))}}),oe=T(P,[["__scopeId","data-v-764aaf63"]]);export{oe as default};
//# sourceMappingURL=OrderNumber-H7fJwkka.js.map
