!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.Bootstrap=n())}(this,(function(){"use strict";var e=FormValidation.utils.classSet,n=FormValidation.utils.hasClass,t=FormValidation.plugins.Framework,o=function(e,n){if(!(e instanceof n)){throw new TypeError("Cannot call a class as a function")}},i=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)},l=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},c=function(t){r(c,t);function c(e){o(this,c);return l(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,Object.assign({},{eleInvalidClass:'is-invalid',eleValidClass:'is-valid',formClass:'fv-plugins-bootstrap',messageClass:'fv-help-block',rowInvalidClass:'has-danger',rowPattern:/^(.*)(col|offset)(-(sm|md|lg|xl))*-[0-9]+(.*)$/,rowSelector:'.form-group',rowValidClass:'has-success'},e)))}i(c,[{key:'onIconPlaced',value:function(t){var o=t.element.parentElement;n(o,'input-group')&&o.parentElement.insertBefore(t.iconElement,o.nextSibling);var i=t.element.getAttribute('type');if('checkbox'===i||'radio'===i){var r=o.parentElement;n(o,'form-check')?(e(t.iconElement,{'fv-plugins-icon-check':!0}),o.parentElement.insertBefore(t.iconElement,o.nextSibling)):n(o.parentElement,'form-check')&&(e(t.iconElement,{'fv-plugins-icon-check':!0}),r.parentElement.insertBefore(t.iconElement,r.nextSibling))}}}]);return c}(t);return c}))
