const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor-vue3-toastify-DHXAGmwn.css","./Buttons-XVVf_qvN.css"])))=>i.map(i=>d[i]);
import{_ as p}from"./convert-case-to-camel-case.utils-CK5dBN7n.js";import{d as q,e as i,$ as f,f as a,i as s,x as l,k as x,t as o,v as C}from"./vendor-vue-runtime-core-DwK6Ry68.js";import{t as E,u as t}from"./vendor-vue-reactivity-CheHbvBM.js";import{t as d,a as M}from"./vendor-vue-shared-DrzsEcag.js";const V={class:"ccb-field__label"},B={key:0,class:"ccb-required-tooltip"},D={class:"ccb-field__title"},I=["id"],R={key:0,class:"ccb-field-required-mark"},S={key:1,class:"ccb-field__hidden"},A={class:"ccb-field__descriptions ccb-after"},P={key:0,class:"ccb-field__description"},g={key:1,class:"ccb-field__description"},z=q({__name:"Quantity",props:{field:{}},setup(m){const v=m,{field:e}=E(v),c=i(()=>!1),r=i(()=>"quantity-label"),b=i(()=>e.value.default||e.value.min||0),y=i(()=>"quantity-input"),h=i(()=>Math.random()),u=i(()=>{var n;return(n=e.value.styles)==null?void 0:n.style}),k=i(()=>{if(u.value==="default")return f(()=>p(()=>import("./Default-DpxiGLhV.js"),[],import.meta.url));if(u.value==="buttons")return f(()=>p(()=>import("./Buttons-DU3HFcaH.js"),__vite__mapDeps([0,1]),import.meta.url))});return(n,_)=>(s(),a("div",{class:M(["ccb-field ccb-field-quantity",{required:c.value,"ccb-field-disabled":t(e).disabled,[t(e).additionalStyles||""]:!!t(e).additionalStyles}])},[l("div",V,[c.value?(s(),a("div",B)):o("",!0),l("div",D,[l("span",{id:r.value},d(t(e).label),9,I),t(e).required?(s(),a("span",R,"*")):o("",!0)]),t(e).hidden?(s(),a("div",S,_[0]||(_[0]=[l("i",{class:"ccb-icon-ic_eye_crossed"},null,-1)]))):o("",!0)]),(s(),x(C(k.value),{field:t(e),value:b.value,"input-id":y.value,"aria-labelledby":r.value,key:h.value},null,8,["field","value","input-id","aria-labelledby"])),l("div",A,[t(e).hideMinMax?o("",!0):(s(),a("div",P," Min: "+d(t(e).min)+" - Max: "+d(t(e).max),1)),t(e).description?(s(),a("div",g,d(t(e).description),1)):o("",!0)])],2))}});export{z as default};
//# sourceMappingURL=Quantity-DfjseKda.js.map
