(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_fields_aside_before', {
    props: {
        fields: Object,
        field_label: String,
        required: {
          type: Boolean,
          default: false
        }
      },
  data: function data() {
    return {
      fields: {}
    };
  },
  computed: {
    labelWithAsterisk() {
      if (this.fields.required) {
        return this.field_label + ' <span class="required-asterisk">*</span>';
      }
      return this.field_label;
    }
  },
  template: `
    <div class="wpcfto-field-aside" v-if="field_label || fields.preview || fields.description || fields.hint">
      <label class="wpcfto-field-aside__label">
        <span v-html="field_label"></span>
        <span v-if="required" class="required-asterisk" style="color: red; margin-left: 4px;">*</span>
      </label>

      <div v-if="fields && fields.hint" class="wpcfto_field_hint text">
        <i class="fa fa-info-circle"></i>
        <div v-html="fields.hint" class="hint"></div>
      </div>
               
      <div v-if="fields && fields.preview" class="wpcfto_preview">
        <span class="wpcfto_preview__text">Preview</span>
        <span class="wpcfto_preview__popup">
          <img :src="fields.preview" />
        </span>
      </div>
      
      <div v-if="fields && fields.description" v-html="fields.description" class="wpcfto-field-description wpcfto-field-description__before description"></div>
    </div>
  `
});
Vue.component('wpcfto_fields_aside_after', {
    props: ['fields', 'isInvalid', 'errorMessage'],
    template: `
      <div class="wpcfto_fields_aside_after" :class="{ 'has-error': isInvalid }">
        <span v-if="isInvalid" class="validation-error">{{ errorMessage || 'This field is required' }}</span>
        <slot></slot>
      </div>
    `
});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZha2VfZjA4NjJlMTAuanMiXSwibmFtZXMiOlsiVnVlIiwiY29t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