text: !function(e,n){typeof exports==='object'&&typeof module!=='undefined'?module.exports=n():typeof define==='function'&&define.amd?define(n):(e=e||self, (e.FormValidation=e.FormValidation||{}, e.FormValidation.plugins=e.FormValidation.plugins||{}, e.FormValidation.plugins.Spectre=n()))}(this,(function(){"use strict";function e(e,n){if(!(e instanceof n)){throw new TypeError("Cannot call a class as a function")}}function n(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1;o.configurable=!0;"value" in o&&(o.writable=!0);Object.defineProperty(e,o.key,o)}}function t(e,t,o){t&&n(e.prototype,t);o&&n(e,o);return e}function o(e,n){if(typeof n!=="function"&&n!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}});n&&i(e,n)}function r(e){r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)};return r(e)}function i(e,n){i=Object.setPrototypeOf||function(e,n){e.__proto__=n;return e};return i(e,n)}function u(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function c(e,n){if(n&&(typeof n==="object"||typeof n==="function")){return n}return u(e)}var l=FormValidation.utils.classSet,a=FormValidation.utils.hasClass,s=FormValidation.plugins.Framework,f=function(n){o(i,n);function i(n){e(this,i);return c(this,r(i).call(this,Object.assign({},{formClass:'fv-plugins-spectre',messageClass:'form-input-hint',rowInvalidClass:'has-error',rowPattern:/^(.*)(col)(-(xs|sm|md|lg))*-[0-9]+(.*)$/,rowSelector:'.form-group',rowValidClass:'has-success'},n)))}t(i,[{key:"onIconPlaced",value:function(e){var n=e.element.getAttribute('type'),t=e.element.parentElement;('checkbox'===n||'radio'===n)&&(l(e.iconElement,{'fv-plugins-icon-check':!0}),a(t,"form-".concat(n))&&t.parentElement.insertBefore(e.iconElement,t.nextSibling))}}]);return i}(s);return f}))