System.register(["../../../../common/index-legacy.DRKniymH.js","../../../../common/PresetControl.vue_vue_type_style_index_0_scoped_c9e2dd9e_lang-legacy.CBGxOGwC.js","../../../../common/Preview.vue_vue_type_style_index_0_scoped_e226939c_lang-legacy.Ceu-Swp9.js","../../../../common/Confirmation.vue_vue_type_script_setup_true_lang-legacy.CIhxBO6H.js","../../../../common/LabelControl.vue_vue_type_script_setup_true_lang-legacy.DL25Ke3f.js","../../../../common/Tooltip.vue_vue_type_script_setup_true_lang-legacy.C9WyNJUi.js","../../../../common/_plugin-vue_export-helper-legacy.DgAO6S8O.js","../../../../common/transition-legacy.DZbCmrRe.js","../../../../common/keyboard-legacy.ItkZdbDJ.js","../../../../common/open-closed-legacy.CWZrlJ6W.js","../../../../common/micro-task-legacy.D9KKWy-6.js"],(function(e,t){"use strict";var l,s,a,i,n,u,o,w,r,c,m,d,p,_,v,g;return{setters:[e=>{l=e.d,s=e.t,a=e.r,i=e.o,n=e.c,u=e.b,o=e.e,w=e.u,r=e.Z,c=e.a0,m=e.H,d=e.Q,p=e.g},null,null,null,e=>{_=e._},e=>{v=e._},e=>{g=e._},null,null,null,null],execute:function(){const t={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-mb-2 stwlite-tw-gap-2"},y={class:"stwlite-tw-flex stwlite-tw-items-center stwlite-tw-mb-2 stwlite-tw-gap-2"},b=["id","name","disabled","placeholder","min","max","step"],f=["innerHTML"];e("default",g(l({__name:"NumberControl",props:{params:{type:Object,required:!0}},emits:["input","fieldData","previewRef"],setup(e,{emit:l}){const g=e,{params:x}=s(g),j=x.value,h=a(j.default??""),C=a(j.step??1),k=a(j.disabled??!1),T=l,D=a([]),H=a([]);""===h.value||k.value||(D.value[j.id]=h.value,T("fieldData",D.value));const L=()=>{D.value[j.id]=h,T("fieldData",D.value),H.value[j.id]=D.value,T("previewRef",H.value)};return(e,l)=>(i(),n("div",null,[u("div",t,[o(w(_),{params:w(j)},null,8,["params"])]),u("div",y,[r(u("input",{"onUpdate:modelValue":l[0]||(l[0]=e=>h.value=e),id:w(j).id,name:w(j).id,disabled:k.value,placeholder:w(j).placeholder,type:"number",onInput:L,min:w(j).min,max:w(j).max,step:C.value,class:m(["stwlite-tw-block stwlite-tw-w-full stwlite-tw-max-w-xs stwlite-tw-px-3 stwlite-tw-py-2 stwlite-tw-border stwlite-tw-border-gray-300 stwlite-tw-rounded-md stwlite-tw-shadow-sm stwlite-tw-placeholder-gray-400 focus:stwlite-tw-outline-none focus:stwlite-tw-ring-2 focus:stwlite-tw-ring-blue-500 focus:stwlite-tw-border-blue-500",k.value?"stwlite-tw-bg-gray-100 stwlite-tw-text-gray-500 stwlite-tw-cursor-not-allowed":"stwlite-tw-bg-white stwlite-tw-text-gray-900"])},null,42,b),[[c,h.value]]),o(w(v),{params:w(j)},null,8,["params"])]),"undefined"!==w(j).description?(i(),n("p",{key:0,class:"stwlite-tw-text-sm stwlite-tw-text-gray-600 stwlite-tw-mt-2",innerHTML:w(d)(w(j)?.description??"")},null,8,f)):p("",!0)]))}}),[["__scopeId","data-v-3a58a2b0"]]))}}}));
