var w=(o,i)=>()=>(i||o((i={exports:{}}).exports,i),i.exports);var P=w((d,p)=>{(function(o,i){typeof d=="object"&&typeof p<"u"?p.exports=i():typeof define=="function"&&define.amd?define(i):(o=typeof globalThis<"u"?globalThis:o||self,o.FormValidation=o.FormValidation||{},o.FormValidation.plugins=o.FormValidation.plugins||{},o.FormValidation.plugins.Foundation=i())})(void 0,function(){function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(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 y(t,e,r){return e&&i(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 a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},a(t)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,f){return n.__proto__=f,n},s(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 v(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(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 v(t)}function _(t){var e=b();return function(){var n=a(t),f;if(e){var c=a(this).constructor;f=Reflect.construct(n,arguments,c)}else f=n.apply(this,arguments);return h(this,f)}}var O=FormValidation.plugins.Framework,g=function(t){m(r,t);var e=_(r);function r(n){return o(this,r),e.call(this,Object.assign({},{formClass:"fv-plugins-foundation",messageClass:"form-error",rowInvalidClass:"fv-row__error",rowPattern:/^.*((small|medium|large)-[0-9]+)\s.*(cell).*$/,rowSelector:".grid-x",rowValidClass:"fv-row__success"},n))}return y(r,[{key:"onIconPlaced",value:function(f){var c=f.element.getAttribute("type");if(c==="checkbox"||c==="radio"){var u=f.iconElement.nextSibling;if(u.nodeName==="LABEL")u.parentNode.insertBefore(f.iconElement,u.nextSibling);else if(u.nodeName==="#text"){var l=u.nextSibling;l&&l.nodeName==="LABEL"&&l.parentNode.insertBefore(f.iconElement,l.nextSibling)}}}}]),r}(O);return g})});export default P();
