(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
"use strict";

Vue.component('wpcfto_number', {
    mixins: [window.validationMixin],
    props: ['fields', 'field_label', 'field_name', 'field_id', 'field_value', 'field_data', 'required'],
    data: function data() {
      return {
        value: '',
        step: 1
      };
    },
    template: `
      <div class="wpcfto_generic_field wpcfto_generic_field_flex_input wpcfto_generic_field__number">
        <wpcfto_fields_aside_before 
          :fields="fields" 
          :field_label="field_label"
          :required="fields.required === true">
        </wpcfto_fields_aside_before>
        <div class="wpcfto-field-content">
          <input type="number"
            :name="field_name"
            :placeholder="fields.placeholder ? fields.placeholder : 'Enter numbers...'"
            :id="field_id"
            :step="step"
            v-model="value"
            :required="fields.required === true"
          />
        </div>
        <wpcfto_fields_aside_after :fields="fields"></wpcfto_fields_aside_after>
      </div>
    `,
    mounted: function mounted() {
      this.value = this.field_value;
      if (typeof this.field_data.step !== 'undefined') this.step = this.field_data.step;
    },
    watch: {
      value: function value(_value) {
        this.$emit('wpcfto-get-value', _value);
      }
    }
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZha2VfZjBhMzJjYzQuanMiXSwibmFtZXMiOlsiVnVlIiwiY29tcG9uZW50IiwicHJvcHMiLCJkYXRhIiwidmFsdWUiLCJzdGVwIiwidGVtcGxhdGUiLCJtb3VudGVkIiwiZmllbGRfdmFsdWUiLCJmaWVsZF9kYXRhIiwibWV0aG9kcyIsIndhdGNoIiwiX3ZhbHVlIiwiJGVtaXQiXSwibWFwcGluZ3MiOiJBQUFBOztBQUVBQSxHQUFHLENB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