var E=(i,f)=>()=>(f||i((f={exports:{}}).exports,f),f.exports);var j=E((y,s)=>{(function(i,f){typeof y=="object"&&typeof s<"u"?s.exports=f():typeof define=="function"&&define.amd?define(f):(i=typeof globalThis<"u"?globalThis:i||self,i.FormValidation=i.FormValidation||{},i.FormValidation.plugins=i.FormValidation.plugins||{},i.FormValidation.plugins.Bootstrap=f())})(void 0,function(){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function h(t,e,r){return e&&f(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function v(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},c(t)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},u(t,e)}function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g(t)}function O(t){var e=b();return function(){var n=c(t),o;if(e){var a=c(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return _(this,o)}}var p=FormValidation.utils.classSet,l=FormValidation.utils.hasClass,w=FormValidation.plugins.Framework,P=function(t){v(r,t);var e=O(r);function r(n){return i(this,r),e.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"},n))}return h(r,[{key:"onIconPlaced",value:function(o){var a=o.element.parentElement;l(a,"input-group")&&a.parentElement.insertBefore(o.iconElement,a.nextSibling);var d=o.element.getAttribute("type");if(d==="checkbox"||d==="radio"){var m=a.parentElement;l(a,"form-check")?(p(o.iconElement,{"fv-plugins-icon-check":!0}),a.parentElement.insertBefore(o.iconElement,a.nextSibling)):l(a.parentElement,"form-check")&&(p(o.iconElement,{"fv-plugins-icon-check":!0}),m.parentElement.insertBefore(o.iconElement,m.nextSibling))}}}]),r}(w);return P})});export default j();
