(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function n(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?t(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(t,n,i){return(n=function(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var r=i.call(t,n||"default");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}var r,o,u;r=jQuery,o=window.ModuleBuilderModal,(u={init:function(){r(document).on("click","#igd-divi-configure",u.initModuleBuilder)},initModuleBuilder:function(){var e=r("#igd-module-data"),t=e.val();Swal.fire({html:'<div id="igd-divi-module-builder" class="igd-module-builder-modal-wrap"></div>',showConfirmButton:!1,customClass:{container:"igd-swal igd-module-builder-modal-container"},didOpen:function(i){var r=JSON.parse(t);r.uniqueId||(r.uniqueId="igd_"+Math.random().toString(36).substring(7)),ReactDOM.render(React.createElement(o,{initData:r,onUpdate:function(t){!function(t){var n=new Event("igd-divi-module-data-update",{bubbles:!0});n.data=t,window.dispatchEvent(n),e.val(JSON.stringify(t)).trigger("change")}(n(n({},t),{},{isInit:!1})),Swal.close()},onClose:function(){return Swal.close()}}),document.getElementById("igd-divi-module-builder"))},willClose:function(e){ReactDOM.unmountComponentAtNode(document.getElementById("igd-divi-module-builder"))}})}}).init(),r(document).ready(u.init)})();