"use strict";var ARPriceElementor=window.ARPriceElementor||function(e,t){var n={},i={init:function(){if("undefined"==typeof elementor)return!1;t(e).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/arprice-element-shortcode.default",i.WidgetARPHandler),elementorFrontend.hooks.addAction("panel/open_editor/widget/arprice-element-shortcode",i.WidgetARPHandler)})},WidgetARPHandler:function(e){},disableEvents:function(e){return e.preventDefault(),e.stopImmediatePropagation(),!1},widgetPanelOpen:function(e,t){n.widgetId=t.attributes.id,n.tableID=t.attributes.settings.attributes.arp_select,i.widgetPanelInit(e),i.widgetPanelObserver.init(e)},widgetPanelInit:function(e){e.$el.find(".elementor-control.elementor-control-arp_select").find("select");e.$el.find(".elementor-control.elementor-control-arp_select").on("change","select",function(){let e=this.value;e="Please select Table"==e?"":e.replace(/(id=)/,"")})},widgetPanelObserver:{init:function(e){var t;n.observerWidgetId!==n.widgetId&&(void 0!==n.observer&&"function"==typeof n.observer.disconnect&&n.observer.disconnect(),t={targetNode:e.$el.find("#elementor-panel-content-wrapper")[0],config:{childList:!0,subtree:!0,attributes:!0}},i.widgetPanelObserver.panel=e,t.observer=new MutationObserver(i.widgetPanelObserver.callback),t.observer.observe(t.targetNode,t.config),n.observerWidgetId=n.widgetId,n.observer=t.observer)},callback:function(e){var t,n,r=!1;for(n in e)if("childList"===(t=e[n]).type&&0<t.addedNodes.length&&(r=i.widgetPanelObserver.callbackMutationChildList(t)),r="attributes"===t.type?i.widgetPanelObserver.callbackMutationAttributes(t):r)return},callbackMutationChildList:function(e){var t,n,r=e.addedNodes||[];for(n in r)if((t=r[n])&&t.classList&&t.classList.contains("elementor-control-arprice_table"))return i.widgetPanelInit(i.widgetPanelObserver.panel),!0;return!1},callbackMutationAttributes:function(e){return!!(e.target&&e.target.classList&&e.target.classList.contains("elementor-tab-control-content"))&&(i.widgetPanelInit(i.widgetPanelObserver.panel),!0)}}};return i}((document,window),jQuery);ARPriceElementor.init();