!function(e,n){typeof exports==='object'&&typeof module!=='undefined'?module.exports=n():typeof define==='function'&&define.amd?define(n):(e.FormValidation=e.FormValidation||{}, e.FormValidation.plugins=e.FormValidation.plugins||{}, e.FormValidation.plugins.Pure=n())}(this,(function(){"use strict";var e=FormValidation.utils.classSet,n=FormValidation.plugins.Framework,t=function(e,n){if(!(e instanceof n)){throw new TypeError("Cannot call a class as a function")}},o=function(){function e(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)}}return function(n,t,o){t&&e(n.prototype,t);o&&e(n,o);return n}}(),r=function(e,n){if(typeof n!=="function"&&n!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof n)}e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}});n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)},i=function(e,n){if(!e){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return n&&(typeof n==="object"||typeof n==="function")?n:e},u=function(n){r(u,n);function u(e){t(this,u);return i(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,Object.assign({},{formClass:'fv-plugins-pure',messageClass:'fv-help-block',rowInvalidClass:'fv-has-error',rowPattern:/^.*pure-control-group.*$/,rowSelector:'.pure-control-group',rowValidClass:'fv-has-success'},e)))}o(u,[{key:'onIconPlaced',value:function(n){var t=n.element.getAttribute('type');if('checkbox'===t||'radio'===t){var o=n.element.parentElement;e(n.iconElement,{'fv-plugins-icon-check':!0});'LABEL'===o.tagName&&o.parentElement.insertBefore(n.iconElement,o.nextSibling)}}}]);return u}(n);return u}))