var P=(i,f)=>()=>(f||i((f={exports:{}}).exports,f),f.exports);var j=P((y,p)=>{(function(i,f){typeof y=="object"&&typeof p<"u"?p.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.Bulma=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 m(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&&s(t,e)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},u(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},s(t,e)}function v(){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 b(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 b(t)}function g(t){var e=v();return function(){var n=u(t),o;if(e){var a=u(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return _(this,o)}}var c=FormValidation.utils.classSet,O=FormValidation.plugins.Framework,w=function(t){m(r,t);var e=g(r);function r(n){return i(this,r),e.call(this,Object.assign({},{formClass:"fv-plugins-bulma",messageClass:"help is-danger",rowInvalidClass:"fv-has-error",rowPattern:/^.*field.*$/,rowSelector:".field",rowValidClass:"fv-has-success"},n))}return h(r,[{key:"onIconPlaced",value:function(o){c(o.iconElement,{"fv-plugins-icon":!1});var a=document.createElement("span");a.setAttribute("class","icon is-small is-right"),o.iconElement.parentNode.insertBefore(a,o.iconElement),a.appendChild(o.iconElement);var d=o.element.getAttribute("type"),l=o.element.parentElement;d==="checkbox"||d==="radio"?(c(l.parentElement,{"has-icons-right":!0}),c(a,{"fv-plugins-icon-check":!0}),l.parentElement.insertBefore(a,l.nextSibling)):c(l,{"has-icons-right":!0})}}]),r}(O);return w})});export default j();
