(()=>{var e="object"==typeof e?e:{};e["events-pro"]=e["events-pro"]||{},e["events-pro"]["admin-additional-fields"]=function(e){const t={};function n(o){if(t[o])return t[o].exports;const r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;const o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(const t in e)n.d(o,t,function(t){return e[t]}.bind(null,t));return o},n.n=function(e){const t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=464)}({464:function(e,t,n){"use strict";n.r(t),n.d(t,"toggleInput",(function(){return o})),n.d(t,"toggleButton",(function(){return r})),n.d(t,"attachBehavior",(function(){return c})),n.d(t,"init",(function(){return i}));const o=(e,t)=>(e.setAttribute("value",t?"0":"1"),e),r=(e,t)=>(t?e.classList.remove("tribe-custom-field-gutenberg-checkbox--checked"):e.classList.add("tribe-custom-field-gutenberg-checkbox--checked"),e),c=e=>t=>{if(t._attached)return;t._attached=!0;const n=t.parentNode.querySelector('input[type="hidden"]');n&&(e&&(o(n,!1),r(t,!1)),t.addEventListener("click",(()=>{const e="1"===n.getAttribute("value");o(n,e),r(t,e)})))},i=e=>()=>{[].slice.call(document.querySelectorAll(".tribe-custom-field-gutenberg-checkbox")).map(c(e))};(()=>{const e=document.querySelector(".add-another-field.tribe-add-post.button");e&&e.addEventListener("click",(()=>setTimeout(i(!0)))),i(!1)()})()}}),window.tec=window.tec||{},window.tec.eventsPro=window.tec.eventsPro||{},window.tec.eventsPro.admin=window.tec.eventsPro.admin||{},window.tec.eventsPro.admin.adminAdditionalFields={}})();