"use strict";(self.webpackChunktainacan=self.webpackChunktainacan||[]).push([[451,2832],{49825(t,a,e){e.d(a,{A:()=>m});const m={props:{itemMetadatum:Object,value:[String,Number,Array],disabled:!1},emits:["update:value","blur","mobile-special-focus"],data:function(){return{isInputValid:!0}},computed:{getStep:function(){return this.itemMetadatum&&this.itemMetadatum.metadatum.metadata_type_options&&this.itemMetadatum.metadatum.metadata_type_options.step?this.itemMetadatum.metadatum.metadata_type_options.step:.01},getMin:function(){return this.itemMetadatum&&this.itemMetadatum.metadatum.metadata_type_options&&null!==this.itemMetadatum.metadatum.metadata_type_options.min&&void 0!==this.itemMetadatum.metadatum.metadata_type_options.min&&""!==this.itemMetadatum.metadatum.metadata_type_options.min?Number(this.itemMetadatum.metadatum.metadata_type_options.min):void 0},getMax:function(){return this.itemMetadatum&&this.itemMetadatum.metadatum.metadata_type_options&&null!==this.itemMetadatum.metadatum.metadata_type_options.max&&void 0!==this.itemMetadatum.metadatum.metadata_type_options.max&&""!==this.itemMetadatum.metadatum.metadata_type_options.max?Number(this.itemMetadatum.metadatum.metadata_type_options.max):void 0}},methods:{onInput:function(t){var a=this.$refs["tainacan-item-metadatum_id-"+this.itemMetadatum.metadatum.id+(this.itemMetadatum.parent_meta_id?"_parent_meta_id-"+this.itemMetadatum.parent_meta_id:"")];a&&(this.isInputValid=a.checkHtml5Validity(),!this.isInputValid)||(t=null==t||""===t?"":Number(t),this.changeValue(t))},changeValue:_.debounce((function(t){this.$emit("update:value",t)}),800),onBlur:function(){this.$emit("blur")},onMobileSpecialFocus:function(){this.$emit("mobile-special-focus")}}}},7802(t,a,e){e.d(a,{X:()=>i});var m=e(6934);function i(t,a,e,i,n,d){var u=(0,m.g2)("b-numberinput");return(0,m.uX)(),(0,m.Wv)(u,{id:"tainacan-item-metadatum_id-"+e.itemMetadatum.metadatum.id+(e.itemMetadatum.parent_meta_id?"_parent_meta_id-"+e.itemMetadatum.parent_meta_id:""),ref:"tainacan-item-metadatum_id-"+e.itemMetadatum.metadatum.id+(e.itemMetadatum.parent_meta_id?"_parent_meta_id-"+e.itemMetadatum.parent_meta_id:""),disabled:e.disabled,placeholder:e.itemMetadatum.metadatum.placeholder?e.itemMetadatum.metadatum.placeholder:"","model-value":0===e.value||e.value?Number(e.value):null,"data-is-danger":!n.isInputValid,lang:"en",min:d.getMin,max:d.getMax,step:d.getStep,"controls-position":"compact","controls-alignment":"right",expanded:"","onUpdate:modelValue":a[0]||(a[0]=function(t){return d.onInput(t)}),onBlur:d.onBlur,onFocus:d.onMobileSpecialFocus},null,8,["id","disabled","placeholder","model-value","data-is-danger","min","max","step","onBlur","onFocus"])}},28782(t,a,e){e.d(a,{A:()=>u});var m=e(31601),i=e.n(m),n=e(76314),d=e.n(n)()(i());d.push([t.id,"\n.b-numberinput[data-v-70a3ee72] {\n        border-bottom-width: 0px !important;\n        margin-inline-start: 0 !important;\n}\n",""]);const u=d},11649(t,a,e){var m=e(85072),i=e.n(m),n=e(97825),d=e.n(n),u=e(77659),o=e.n(u),s=e(55056),p=e.n(s),l=e(10540),r=e.n(l),_=e(63494),c=e.n(_),h=e(28782),M={};M.styleTagTransform=c(),M.setAttributes=p(),M.insert=o().bind(null,"head"),M.domAPI=d(),M.insertStyleElement=r();i()(h.A,M),h.A&&h.A.locals&&h.A.locals},60451(t,a,e){e.r(a),e.d(a,{default:()=>n});var m=e(32139),i=e(56696);e(30858);const n=(0,e(66262).A)(i.A,[["render",m.X],["__scopeId","data-v-70a3ee72"]])},56696(t,a,e){e.d(a,{A:()=>m.A});var m=e(49825)},32139(t,a,e){e.d(a,{X:()=>m.X});var m=e(7802)},30858(t,a,e){e(11649)}}]);