(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_button_group', {
        mixins: [window.validationMixin],
        props: ['fields', 'field_label', 'field_name', 'field_id', 'field_value', 'required'],
        data() {
            return {
                value: ''
            };
        },
        mounted() {
            if (typeof this.field_value !== 'undefined' && this.field_value !== null) {
                this.value = this.field_value;
            }
        },
        template: `
          <div class="wpcfto_generic_field wpcfto_generic_field_button_group" :class="field_id">
            <wpcfto_fields_aside_before 
              :fields="fields" 
              :field_label="field_label"
              :required="fields.required === true"
            ></wpcfto_fields_aside_before>
      
            <div class="wpcfto-field-content">
              <div 
                class="wpcfto_button_group" 
                role="radiogroup" 
                :aria-labelledby="field_id + '_label'"
              >
                <label 
                  v-for="(option, key) in fields.options" 
                  :key="key"
                  :class="{ active: value === key }"
                  role="radio"
                  :aria-checked="value === key ? 'true' : 'false'"
                  tabindex="0"
                  @keydown.enter.prevent="value = key"
                  @keydown.space.prevent="value = key"
                >
                  <input 
                    type="radio" 
                    :name="field_name" 
                    v-model="value" 
                    :value="key" 
                    :required="fields.required === true"
                    style="display:none;"
                  />
                  {{ option }}
                </label>
              </div>
            </div>
      
            <wpcfto_fields_aside_after :fields="fields"></wpcfto_fields_aside_after>
          </div>
        `,
        watch: {
            value(newVal) {
                this.$emit('wpcfto-get-value', newVal);
            }
        }
    });
      
    //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZha2VfNmZkMTc3NDkuanMiXSwibmFtZXMiOlsiVnVlIiwiY29tcG9uZW50IiwicHJvcHMiLCJkY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