(()=>{function r(r,e){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var e=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=e){var n,a,o,i,c=[],u=!0,l=!1;try{if(o=(e=e.call(r)).next,0===t){if(Object(e)!==e)return;u=!1}else for(;!(u=(n=o.call(e)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(r){l=!0,a=r}finally{try{if(!u&&null!=e.return&&(i=e.return(),Object(i)!==i))return}finally{if(l)throw a}}return c}}(r,e)||function(r,e){if(r){if("string"==typeof r)return t(r,e);var n={}.toString.call(r).slice(8,-1);return"Object"===n&&r.constructor&&(n=r.constructor.name),"Map"===n||"Set"===n?Array.from(r):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(r,e):void 0}}(r,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=Array(t);e<t;e++)n[e]=r[e];return n}jQuery(document).ready((function(t){function e(e,n){var a=t(n).data("events"),o={};Array.isArray(e)||(e=[e]),e.forEach((function(t){a[t]&&Object.entries(a[t]).forEach((function(t){var e=r(t,2),n=e[0],a=e[1];o[n]||(o[n]=[]),o[n]=o[n].concat(a)}))})),Object.entries(o).forEach((function(e){var n=r(e,2),a=n[0],o=n[1];(Array.isArray(o)?o:[o]).forEach((function(r){"show"===a?t(r).show():"hide"===a&&t(r).hide()}))}))}t(".hbp-disabler-form-wrap form .hbp-disabler-form-field").each((function(){!function(r){var n=t(r).prop("tagName").toLowerCase();switch(n){case"input":var a=t(r).attr("type");switch(a){case"radio":t(r).on("change",(function(){e(t(this).val(),r)})).filter(":checked").trigger("change");break;case"checkbox":t(r).on("change",(function(){e(this.checked.toString(),r)})).trigger("change");break;default:console.error("Unsupported input type:",a)}break;case"select":var o=t(r).prop("multiple");t(r).on("change",(function(){e(o?t(this).val():[t(this).val()],r)})).trigger("change");break;default:console.error("Unsupported field type:",n)}}(this)}))}))})();