1var ddd_full_stop=0,json_counters_array=[];jQuery(document).ready(function(d){const{__:t,_x:e,_n:a,_nx:s}=wp.i18n;d("#ddpdm-success-report").hide(),new Clipboard("#ddpdm-copy-report").on("success",function(){d("#ddpdm-success-report").show()}),new Clipboard("#ddpdm-copy-url").on("success",function(){d("#ddpdm-success-url").show()}),d(".ddpdm-assistant .nav-tab.ddpdm_wl, .ddpdm-assistant .nav-tab.ddpdm_options").wrapAll('<div class="nav-tabs-subtabs"></div>'),d(".ddpdm-assistant .nav-tab.ddpdm_divi_theme_builder, .ddpdm-assistant .nav-tab.ddpdm_settings").wrapAll('<div class="nav-tabs-subtabs-theme-builder"></div>'),jQuery(".wrap.ddpdm-assistant:not(.activated) a.nav-tab:not(.divi_den_pro_dashboard):not(.ddpdm_assistant_system_status):not(.ddpdm_assistant_help_faq):not(.ddpdm_start_here):not(.ddpdm_latest_feed):not(.ddpdm_missing_order):not(.ddpdm_subscription_expired):not(.ddpdm_key_not_found):not(.ddpdm_key_disabled):not(.ddpdm_general_api_error)").addClass("disabled"),jQuery("table.ddpdm-report-table td a, table.ddpdm-report-table th a").on("click touch",function(d){d.preventDefault()}),jQuery("#wp-ddpdm_wp_content-wrap").appendTo("tr#wp-ddpdm-column td:not(.ddpdm-save-buttons)").show(),jQuery(".form-table.ddpdm_wl label input[name=ddpdm_plugin_name]").length>0&&(ddpdm_n=jQuery(".form-table.ddpdm_wl label input[name=ddpdm_plugin_name]").val(),ddpdm_n=ddpdm_n.replace(/\s+/g,"_").toLowerCase(),ddpdm_url_path=window.location.pathname,jQuery(".new_admin_url").html(window.location.protocol+"//"+window.location.hostname+ddpdm_url_path+"?page="+ddpdm_n+"_dashboard<strong>_wl</strong>")),jQuery(".form-table.ddpdm_wl label input[name=ddpdm_plugin_name]").on("keyup",function(){ddpdm_n=d(this).val(),ddpdm_n=ddpdm_n.replace(/\s+/g,"_").toLowerCase(),ddpdm_url_path=window.location.pathname,jQuery(".new_admin_url").html(window.location.protocol+"//"+window.location.hostname+ddpdm_url_path+"?page="+ddpdm_n+"_dashboard<strong>_wl</strong>")}),jQuery(".ddpdm-breadcrumbs--end").text(jQuery("a.nav-tab-active").text()),jQuery("p.submit.ddpdm_wl.save_settings input").on("click touch",function(t){t.preventDefault(),ddd_full_stop=0,jQuery(".form-table.ddpdm_wl label input, .form-table.ddpdm_wl label textarea, #wp-ddpdm_wp_content-wrap").each(function(){"wp-ddpdm_wp_content-wrap"!==d(this).attr("id")&&"ddpdm_plugin_icon"!==d(this).attr("name")&&""===d(this).val()&&(ddd_full_stop=1,d(this).addClass("not-filled"),d(this).siblings(".ddpdm-error-message").remove(),d(this).after('<span class="ddpdm-error-message">This field is required</span>'))}),0===ddd_full_stop?(d(this).next().hide(),jQuery(".form-table.ddpdm_wl label input, .form-table.ddpdm_wl label textarea, #wp-ddpdm_wp_content-wrap").each(function(){if("wp-ddpdm_wp_content-wrap"===d(this).attr("id")?(ajax_option="ddpdm_wp_content",ajax_val=jQuery(".ddpdm_wl_settings #wp-ddpdm_wp_content-wrap").hasClass("tmce-active")?tinymce.get("ddpdm_wp_content").getContent():jQuery("#ddpdm_wp_content").val()):(ajax_option=d(this).attr("name"),ajax_val=d(this).val()),"ddpdm_plugin_name"===ajax_option){ajax_val;var t=ajax_val.replace(/\s+/g,"_").toLowerCase();jQuery("input[name=ddpdm_wl]").is(":checked")?redirect_link=window.location.pathname+"?page="+t+"_dashboard_wl&tab=ddpdm_wl":redirect_link=window.location.pathname+"?page=divi_den_pro_dm_dashboard&tab=ddpdm_wl",jQuery("input[name=ddpdm_hide_menu]").is(":checked")&&(redirect_link=window.location.pathname.replace("admin.php",""))}jQuery.ajax({type:"POST",url:ajaxurl,data:"action=ddpdm_update_option&ddpdm_option="+ajax_option+"&ddpdm_option_val="+ajax_val+"&ddpdm_nonce="+ddpdm_wl_options_for_js.ddpdm_nonce,success:function(d){redirect_link?window.location.replace(redirect_link):window.location.reload()},error:function(d){}})})):d(this).next().show()}),jQuery("p input#submit_wl.submit_wl_disabled, p input#submit_wl.submit_wl_enabled").on("click",function(e){e.preventDefault(),ddd_full_stop=0;let a='<div class="ddpdm_wl_loaded"><p>'+t("One moment please... Activating white label mode","ddprodm")+"</p></div>",s='<div class="ddpdm_wl_loaded"><p>'+t("One moment please... Deactivating white label mode","ddprodm")+"</p></div>";d(this).hasClass("submit_wl_disabled")&&d("#ddpdm-wl-pop-up").html(a),d(this).hasClass("submit_wl_enabled")&&d("#ddpdm-wl-pop-up").html(s),jQuery(".form-table.ddpdm_wl label input, .form-table.ddpdm_wl label textarea, #wp-ddpdm_wp_content-wrap").each(function(){"wp-ddpdm_wp_content-wrap"!==d(this).attr("id")&&"ddpdm_plugin_icon"!==d(this).attr("name")&&""===d(this).val()&&(ddd_full_stop=1,d(this).addClass("not-filled"),d(this).siblings(".ddpdm-error-message").remove(),d(this).after('<span class="ddpdm-error-message">This field is required</span>'))}),0===ddd_full_stop?(d(this).next().hide(),d(".ddpdm_wl_hidden .et-box-content .et_pb_button_slider").click(),d(".submit.ddpdm_wl.save_settings input").click()):d(this).next().show()})}),jQuery(document).ready(function(d){function t(){var t=document.getElementById("ondemanIframe");d("#et_pb_loading_animation").remove(),jQuery.ajax({type:"GET",url:ajaxurl,data:"action=ddpdm_get_option",success:function(d){"enabled"===d+""?null!==t&&t.contentWindow.postMessage("pro_membership_activated","*"):null!==t&&t.contentWindow.postMessage("pro_membership_deactivated","*")}});(function(){for(var d,t=[],e=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),a=0;a<e.length;a++)d=e[a].split("="),t.push(d[0]),t[d[0]]=d[1];return t})().post;var a=window.addEventListener?"addEventListener":"attachEvent",s=window[a],i="attachEvent"===a?"onmessage":"message";d("ul.et_pb_saved_layouts_list").length>0&&d("ul.et_pb_saved_layouts_list li:not(.added_image)").each(function(){this_title=d(this).find("a").text(),this_class=this_title.replace(/-+/g,"").replace(/\s+/g,"-").toLowerCase(),d(this).addClass(this_class),d(this).addClass("added_image"),jQuery.ajax({type:"POST",url:ajaxurl,data:"action=ddpdm_show_featured_image&ddpdm_title_image="+this_title+"&ddpdm_nonce="+ddpdm_wl_options_for_js.ddpdm_nonce,success:function(t){""!==t&&(img_link=t.substring(t.indexOf("|")+1),img_post_title=t.replace(img_link,"").replace("|",""),d("ul.et_pb_saved_layouts_list li:not(.with-image)").each(function(){this_title=d(this).find("a").text(),this_title===img_post_title&&(d(this).find("a").before('<img src="'+img_link+'" class="ddpdm_preview" />'),d(this).addClass("with-image"))}))},error:function(d){}})}),setInterval(function(){d("div.et-fb-settings-options-tab-modules_library ul:not(.ddpdm_images_sent)").length>0&&d("div.et-fb-settings-options-tab-modules_library ul li:not(.added_image):not(.with-image)").each(function(){this_title=d(this).find("span.et_module_title").text().trim(),this_class=this_title.replace(/-+/g,"").replace(/\s+/g,"-").toLowerCase(),d(this).addClass(this_class),d(this).addClass("added_image"),jQuery.ajax({type:"POST",url:ajaxurl,data:"action=ddpdm_show_featured_image&ddpdm_title_image="+this_title+"&ddpdm_nonce="+ddpdm_wl_options_for_js.ddpdm_nonce,success:function(t){""!==t&&(img_link=t.substring(t.indexOf("|")+1),img_post_title=t.replace(img_link,"").replace("|",""),d("div.et-fb-settings-options-tab-modules_library ul li:not(.with-image)").each(function(){this_title=d(this).find("span.et_module_title").text().trim(),this_title===img_post_title&&0===d(this).find("img.ddpdm_preview").length&&(d(this).find("span.et_module_title").after('<img src="'+img_link+'" class="ddpdm_preview" />'),d(this).addClass("with-image"))}))},error:function(d){}})})},10);s(i,function(a){var s;if("https://ondemand.divi-den.com"===a.origin&&"string"===jQuery.type(a.data))if(~a.data.indexOf("context")){d("body .ddpdm-assistant .saving_message").show();var i="off";if(jQuery("#et_pb_main_container > .et_pb_section .et_pb_module_block").length<=0&&(i="on"),s=jQuery.parseJSON(a.data))if(d(t).hasClass("settingsIframe")||d(t).hasClass("vbIframe")||"et_builder"!==s.context)"et_builder_layouts"===s.context||d(t).hasClass("settingsIframe")?(response_data=encodeURIComponent(JSON.stringify(s)),jQuery.ajax({type:"POST",url:ajaxurl,data:"action=ddpdm_import_posts&posts="+response_data+"&ddpdm_nonce="+ddpdm_wl_options_for_js.ddpdm_nonce,success:function(t){if(0===d("div.sectionSaved").length){d(".ddpdm-tab-section, .ddpdm-tab-module").html('<div class="sectionSaved"> <p>'+l("<strong>Success!</strong> Your section/module is being saved to your local Divi library.","ddprodm")+"</p> <h3>"+l("Choose your next step...","ddprodm")+"</h3> <p>"+l("1. Find new modules and save to your library","ddprodm")+'</p> <a href="#" class="ddpdm_close">
1'+l("Find New Pro Modules","ddprodm")+"</a> <p>"+l('2. Begin editing - Use the "Add From Library" tab to load sections/modules from local Divi Library',"ddprodm")+'</p> <a href="#" class="ddpdm_reload">'+l("To Continue - Save and Reload Page","ddprodm")+"</a> "+l("(please do it manually if you are in Divi Frontend Builder or Divi Theme Builder)","ddprodm")+"</div>"),d("body .ddpdm-tab-section a.ddpdm_reload, body .ddpdm-tab-module a.ddpdm_reload").on("click",function(t){t.preventDefault(),d("div.sectionSaved").html('<h3 class="ddpdm_loading_text">Reloading...</h3>'),d("input.button-primary#publish").click(),d("button.et-fb-button--publish").click(),d("li#wp-admin-bar-et-disable-visual-builder a.ab-item").click()});var a=Math.floor(1e6*Math.random()+1);"enabled"===ddpdm_wl_options_for_js.ddpdm_status&&"yes"!==ddpdm_wl_options_for_js.ddpdm_expired_status?(ddpdm_sections_link="https://ondemand.divi-den.com/sections-search-api-ljljdfre935/?uid="+a,ddpdm_modules_link="https://ondemand.divi-den.com/modules-search-api-fdge43y/?uid="+a):(ddpdm_sections_link="https://ondemand.divi-den.com/sections-search-no-api-asdfv324/?uid="+a,ddpdm_modules_link="https://ondemand.divi-den.com/modules-search-no-api-33jwer3/?uid="+a),d("body .ddpdm-tab-section a.ddpdm_close").on("click",function(t){t.preventDefault(),d("div.sectionSaved").html('<h3 class="ddpdm_loading_text">Loading...</h3>'),d(".ddpdm-tab-section").html('<iframe id="ondemanIframe" name="ondemandIframe" class="sectionsIframe" style="width: 100%;height: 100%;" src="'+ddpdm_sections_link+'"></iframe>'),e()}),d("body .ddpdm-tab-module a.ddpdm_close").on("click",function(t){t.preventDefault(),d("div.sectionSaved").html('<h3 class="ddpdm_loading_text">Loading...</h3>'),d(".ddpdm-tab-module").html('<iframe id="ondemanIframe" name="ondemandIframe" class="sectionsIframe" style="width: 100%;height: 100%;" src="'+ddpdm_modules_link+'"></iframe>'),e()})}d("body .ddpdm-assistant .saving_message").hide(),d("body .ddpdm-assistant .loaded_message").show(),setTimeout(function(){d("body .ddpdm-assistant .loaded_message").hide()},5500)},error:function(d){console.log(d)}})):s.context;else{layout=JSON.stringify(s);var n=jQuery(".et-pb-all-modules-tab .et-pb-load-layouts"),o=n.children("li").last().clone(!0);o.addClass("layout_here"),o.appendTo(n),jQuery(".layout_here").data("layout_id",{layout:layout,replace_content:i}),jQuery(".layout_here .et_pb_layout_button_load").click()}}else~a.data.indexOf(".")?d("input#_et_pb_custom_css").val(a.data):(~a.data.indexOf(",jpg")||~a.data.indexOf(",png"))&&(ddpdm_featured_image_url=a.data.replace(/\,/g,"."),setTimeout(function(){jQuery.ajax({type:"POST",url:ajaxurl,data:"action=ddpdm_import_featured_image&ddpdm_featured_image="+ddpdm_featured_image_url+"&ddpdm_nonce="+ddpdm_wl_options_for_js.ddpdm_nonce,success:function(d){},error:function(d){}})},5e3))},!1)}function e(){setTimeout(function(){d("iframe#ondemanIframe").height()>0?t():d("iframe#ondemanIframe").on("load",function(){t()})},300)}function a(){for(var d,t=[],e=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),a=0;a<e.length;a++)d=e[a].split("="),t.push(d[0]),t[d[0]]=d[1];return t}d("#ddpdm-preview-window").insertAfter("body > :last-child"),d("#ddpdm-wl-pop-up").insertBefore("body > #ddpdm-preview-window"),jQuery.fn.center=function(){return this.css("position","absolute"),this.css("top",jQuery(window).height()/10+ +jQuery(window).scrollTop()+"px"),this.css("left",(jQuery(window).width()-this.outerWidth())/2+jQuery(window).scrollLeft()+"px"),this},d("#ddpdm-preview").on("click",function(){d("button#ddpdm_wp_content-tmce")[0].click(),d("#ddpdm-preview-window .ddpdm_wl_contact_page").html('<div id="ddpdm-preview-close">Ã</div>'),d("#ddpdm-preview-window .ddpdm_wl_contact_page #ddpdm-preview-close").after(tinymce.get("ddpdm_wp_content").getContent()),jQuery("#ddpdm-preview-window").center(),d("#ddpdm-preview-window").show(),d("#ddpdm-preview-close").on("click",function(){d("#ddpdm-preview-window").hide()})}),d("#ddpdm-preview-close").on("click",function(){d("#ddpdm-preview-window").hide()}),d("#submit_wl_pop_up").on("click",function(t){t.preventDefault(),ddd_full_stop=0,jQuery(".form-table.ddpdm_wl label input, .form-table.ddpdm_wl label textarea, #wp-ddpdm_wp_content-wrap").each(function(){"wp-ddpdm_wp_content-wrap"!==d(this).attr("id")&&"ddpdm_plugin_icon"!==d(this).attr("name")&&""===d(this).val()&&(ddd_full_stop=1,d(this).addClass("not-filled"),d(this).siblings(".ddpdm-error-message").remove(),d(this).after('<span class="ddpdm-error-message">This field is required</span>'))}),0===ddd_full_stop?(d(this).next().hide(),jQuery("#ddpdm-wl-pop-up").center(),d("#ddpdm-wl-pop-up").show()):d(this).next().show()}),d("#ddpdm-wl-pop-up-close, #ddpdm-wl-pop-up-close-cancel").on("click",function(){d("#ddpdm-wl-pop-up").hide()}),d("body .ddpdm-assistant .loaded_message span.close").on("click",function(){d("body .ddpdm-assistant .loaded_message").hide()}),d("body .ddpdm-assistant .saving_message span.close").on("click",function(){d("body .ddpdm-assistant .saving_message").hide()}),"undefined"==typeof ajaxurl&&(ajaxurl=ddpdm_wl_options_for_js.ddpdm_ajax_url),(d("body").hasClass("et-fb")||d("body").hasClass("wp-admin"))&&jQuery.ajax({type:"GET",url:ajaxurl,data:"action=ddpdm_get_option_wl",success:function(t){"disabled"===t+""?(e(),d(document).on("mouseup",".et-pb-layout-buttons-load",function(){setTimeout(function(){var t=Math.floor(1e6*Math.random()+1);"enabled"===ddpdm_wl_options_for_js.ddpdm_status&&"yes"!==ddpdm_wl_options_for_js.ddpdm_expired_status?ddpdm_layouts_link="https://ondemand.divi-den.com/new-api-layouts-search-ghaser65/?uid="+t:ddpdm_layouts_link="https://ondemand.divi-den.com/new-no-api-layouts-search-dngfh4q2/?uid="+t;var e=d(".et-pb-saved-modules-switcher");"on"===ddpdm_wl_options_for_js.ddpdm_plugin_setting_tab_position?e.length&&(e.append('<li class="ddpdm" data-open_tab="ddpdm-tab" data-layout_type="layout"><a href="#"><img height="25" src="'+ddpdm_wl_options_for_js.ddpdm_wl_i_for_js+'" /> <span>'+ddpdm_wl_options_for_js.ddpdm_wl_pn_for_js+"</span></a></li>"),d(".et_pb_modal_settings").append('<div class="et-pb-main-settings et-pb-main-settings-full ddpdm-tab ddpdm-tab-layout"> <div class="et-dlib-load-options ddpdm-replace-content et-fb-checkboxes-category-wrap"><p> '+l("Important: if you're replacing the content, please manually clear the layout and update the page, then load the new layout.","ddprodm")+'</p></div> <iframe id="ondemanIframe" name="ondemandIframe" class="layoutsIframe" src="'+ddpdm_layouts_link+'"></iframe></div>')):(d("li.et-pb-options-tabs-links-active").removeClass("et-pb-options-tabs-links-active"),d("div.active-container").removeClass("active-container").css("opacity",0),e.prepend('<li class="ddpdm et-pb-options-tabs-links-active" data-open_tab="ddpdm-tab" data-layout_type="layout"><a href="#"><img height="25" src="'+ddpdm_wl_options_for_js.ddpdm_wl_i_for_js+'" /> <span>'+ddpdm_wl_options_for_js.ddpdm_wl_pn_for_js+"</span></a></li>"),d(".et_pb_modal_settings").append('<div class="et-pb-main-settings et-pb-main-settings-full ddpdm-tab ddpdm-tab-layout active-container" style="opacity: 1;"> <div class="et-dlib-load-options ddpdm-replace-content et-fb-checkboxes-category-wrap"><p> '+l("Important: if you're replacing the content, please manually clear the layout and update the page, then load the new layout.","ddprodm")+'</p></div> <iframe id="ondemanIframe" name="ondemandIframe" class="layoutsIframe" src="'+ddpdm_layouts_link+'"></iframe></div>'))},200),e()}),d(document).on("mouseup",".et-pb-section-add-saved",function(){setTimeout(function(){jQuery(".et_pb_modal_settings.et_pb_modal_no_tabs").removeClass("et_pb_modal_no_tabs");var t=Math.floor(1e6*Math.random()+1);"enabled"===ddpdm_wl_options_for_js.ddpdm_status&&"yes"!==ddpdm_wl_options_for_js.ddpdm_expired_status?ddpdm_sections_link="https://ondemand.divi-den.com/sections-search-api-ljljdfre935/?uid="+t:ddpdm_sections_link="https://ondemand.divi-den.com/sections-search-no-api-asdfv324/?uid="+t,"on"===ddpdm_wl_options_for_js.ddpdm_plugin_setting_tab_position?jQuery(".et_pb_modal_settings_container h3").after(' <ul class="et-pb-options-tabs-links et-pb-saved-modules-switcher"> <li class="et-pb-saved-module et-pb-options-tabs-links-active"" data-open_tab="et-pb-saved-modules-tab" > <a href="#">'+l("Add From Library","ddprodm")+'</a> </li> <li class="ddpdm" data-open_tab="ddpdm-tab" data-layout_type="section"><a href="#"> <img height="25" src="'+ddpdm_wl_options_for_js.ddpdm_wl_i_for_js+'" /> <span>'+ddpdm_wl_options_for_js.ddpdm_wl_pn_for_js+'</span></a></li> </ul> <div class="et-pb-main-settings et-pb-main-settings-full ddpdm-tab ddpdm-tab-section" style="display:block !important;" ><iframe id="ondemanIframe" name="ondemandIframe" class="sectionsIframe" src="'+ddpdm_sections_link+'"></iframe></div>'):(d("li.et-pb-options-tabs-links-active").removeClass("et-pb-options-tabs-links-active"),d("div.active-container").removeClass("active-container").css("opacity",0),jQuery(".et_pb_modal_settings_container h3").after(' <ul class="et-pb-options-tabs-links et-pb-saved-modules-switcher"> <li class="ddpdm et-pb-options-tabs-links-active" data-open_tab="ddpdm-tab" data-layout_type="section" style="opacity: 1;"><a href="#"> <img height="25" src="'+ddpdm_wl_options_for_js.ddpdm_wl_i_for_js+'" /> <span>'+ddpdm_wl_options_for_js.ddpdm_wl_pn_for_js+'</span></a></li> <li class="et-pb-saved-module" data-open_tab="et-pb-saved-modules-tab" > <a href="#">'+l("Add From Library","ddprodm")+'</a> </li> </ul> <div class="et-pb-main-settings et-pb-main-settings-full ddpdm-tab ddpdm-tab-section active-container" style="display:block !important; opacity: 1 !important;" ><iframe id="ondemanIframe" name="ondemandIframe" class="sectionsIframe" src="'+ddpdm_sections_link+'"></iframe></div>'))},200),e()}),d(document).on("mouseup",".et-pb-column .et-pb-insert-module",function(){setTimeout(function(){jQuery(".et_pb_modal_settings.et_pb_modal_no_tabs").removeClass("et_pb_modal_no_tabs");var t=Math.floor(1e6*Math.random()+1);"enabled"===ddpdm_wl_options_for_js.ddpdm_status&&"yes"!==ddpdm_wl_options_for_js.ddpdm_expired_status?ddpdm_modules_link="https://ondemand.divi-den.com/modules-search-api-fdge43y/?uid="+t:ddpdm_modules_link="https://ondemand.divi-den.com/modules-search-no-api-33jwer3/?uid="+t,d(".et-pb-options-tabs-links.et-pb-saved-modules-switcher").remove(),"on"===ddpdm_wl_options_for_js.ddpdm_plugin_setting_tab_position?jQuery(".et_pb_modal_settings_container h3").after('<ul class="et-pb-options-tabs-links et-pb-saved-modules-switcher"><li class="et-pb-new-module et-pb-options-tabs-links-active data-open_tab="et-pb-all-modules-tab"><a href="#">'+l("New Module","ddprodm")+'</a></li><li class="et-pb-saved-module" data-open_tab="et-pb-saved-modules-tab" ><a href="#">'+l("Add From Library","ddprodm")+'</a></li> <li class="ddpdm" data-open_tab="ddpdm-tab" data-layout_type="section"><a href="#"><img height="25" src="'+ddpdm_wl_options_for_js.ddpdm_wl_i_for_js+'" /> <span>'+ddpdm_wl_options_for_js.ddpdm_wl_pn_for_js+'</span></a></li></ul> <div class="et-pb-main-settings et-pb-main-settings-full ddpdm-tab ddpdm-tab-module" style="display:block !important;" ><iframe id="ondemanIframe" name="ondemandIframe" class="sectionsIframe" src="'+ddpdm_modules_link+'"></iframe></div>'):(d("li.et-pb-options-tabs-links-active").removeClass("et-pb-options-tabs-links-active"),d("div.active-container").removeClass("active-container").css("opacity",0),jQuery(".et_pb_modal_settings_container h3").after(' <ul class="et-pb-options-tabs-links et-pb-saved-modules-switcher"> <li class="ddpdm et-pb-options-tabs-links-active" data-open_tab="ddpdm-tab" data-layout_type="section"><a href="#"> <img height="25" src="'+ddpdm_wl_options_for_js.ddpdm_wl_i_for_js+'" /> <span>'+ddpdm_wl_options_for_js.ddpdm_wl_pn_for_js+'</span></a></li> <li class="et-pb-new-module data-open_tab="et-pb-all-modules-tab"> <a href="#">'+l("New Module","ddprodm")+'</a> </li> <li class="et-pb-saved-module" data-open_tab="et-pb-saved-modules-tab" > <a href="#">'+l("Add From Library","ddprodm")+'</a> </li> </ul> <div class="et-pb-main-settings et-pb-main-settings-full ddpdm-tab ddpdm-tab-module active-container" style="display:block !important; opacity: 1 !important;" ><iframe id="ondemanIframe" name="ondemandIframe" class="sectionsIframe" src="'+ddpdm_modules_link+'"></iframe></div> '))},200),e()}),setInterval(function(){if(this_column_parent=d("a.modules_all").parents("div#et-fb-settings-column"),d(".ddpdm").length<=0&&this_column_parent.hasClass("et-fb-modal-settings--modules_all")&&!this_column_parent.hasClass("et-fb-tooltip-modal--load_layout")&&!this_column_parent.hasClass("et_fb_add_row_modal")){var t=Math.floor(1e6*Math.random()+1);"enabled"===ddpdm_wl_options_for_js.ddpdm_status&&"yes"!==ddpdm_wl_options_for_js.ddpdm_expired_status?(ddpdm_sections_link="https://ondemand.divi-den.com/sections-search-api-ljljdfre935/?uid="+t,ddpdm_modules_link="https://ondemand.divi-den.com/modules-search-api-fdge43y/?uid="+t):(ddpdm_sections_link="https://ondemand.divi-den.com/sections-search-no-api-asdfv324/?uid="+t,ddpdm_modules_link="https://ondemand.divi-den.com/modules-search-no-api-33jwer3/?uid="+t),"on"===ddpdm_wl_options_for_js.ddpdm_plugin_setting_tab_position?(d("a.modules_all").parents(".et-fb-settings-tabs-nav").append('<li class="ddpdm et-fb-settings-tabs-nav-item" data-open_tab="ddpdm-tab" data-layout_type="layout"><a href="#"> <img width="20" style=" margin-bottom: -5px;margin-right: 5px; margin-top: -3px;" src="'+ddpdm_wl_options_for_js.ddpdm_wl_i_for_js+'" /> <span>'+ddpdm_wl_options_for_js.ddpdm_wl_pn_for_js+"</span></a></li>"),this_column_parent.hasClass("et_fb_add_section_modal")&&d(".et-fb-settings-options-wrap > .et-fb-settings-options").append('<div class="et-fb-settings-options-tab et-fb-all-modules et-fb-modules-list et-fb-settings-options ddpdm-tab ddpdm-tab-section"> <iframe id="ondemanIframe" name="ondemandIframe" class="layoutsIframe" src="'+ddpdm_sections_link+'" style="width: 100%;height: 100%;"></iframe></div>'),!this_column_parent.hasClass("et-fb-modal-add-module-container")||this_column_parent.hasClass("et_fb_add_row_modal")||this_column_parent.hasClass("et_fb_add_section_modal")||d(".et-fb-settings-options-wrap > .et-fb-settings-options").append('<div class="et-fb-settings-options-tab et-fb-all-modules et-fb-modules-list et-fb-settings-options ddpdm-tab ddpdm-tab-section ddpdm-tab-module"> <iframe id="ondemanIframe" name="ondemandIframe" class="layoutsIframe" src="'+ddpdm_modules_link+'" style="width: 100%;height: 100%;"></iframe></div>')):(d("a.modules_all").parents(".et-fb-settings-tabs-nav").prepend('<li class="ddpdm et-fb-settings-tabs-nav-item et-fb-settings-tabs-nav-item--active" data-open_tab="ddpdm-tab" data-layout_type="layout"><a href="#"> <img width="20" style=" mar
1gin-bottom: -5px;margin-right: 5px; margin-top: -3px;" src="'+ddpdm_wl_options_for_js.ddpdm_wl_i_for_js+'" /> <span>'+ddpdm_wl_options_for_js.ddpdm_wl_pn_for_js+"</span></a></li>"),this_column_parent.hasClass("et_fb_add_section_modal")&&d(".et-fb-settings-options-wrap > .et-fb-settings-options").prepend('<div class="et-fb-settings-options-tab et-fb-all-modules et-fb-modules-list et-fb-settings-options et-fb-settings-options-tab--active ddpdm-tab ddpdm-tab-section"> <iframe id="ondemanIframe" name="ondemandIframe" class="layoutsIframe" src="'+ddpdm_sections_link+'" style="width: 100%;height: 100%; opacity:"></iframe></div>'),!this_column_parent.hasClass("et-fb-modal-add-module-container")||this_column_parent.hasClass("et_fb_add_row_modal")||this_column_parent.hasClass("et_fb_add_section_modal")||d(".et-fb-settings-options-wrap > .et-fb-settings-options").prepend('<div class="et-fb-settings-options-tab et-fb-all-modules et-fb-modules-list et-fb-settings-options et-fb-settings-options-tab--active ddpdm-tab ddpdm-tab-section ddpdm-tab-module"> <iframe id="ondemanIframe" name="ondemandIframe" class="layoutsIframe" src="'+ddpdm_modules_link+'" style="width: 100%;height: 100%;"></iframe></div>'),d(".ddpdm-tab-section").siblings("div").removeClass("et-fb-settings-options-tab--active"),d(".et-fb-settings-tabs-nav li.ddpdm a").parent("li").siblings().removeClass("et-fb-settings-tabs-nav-item--active"),d(".ddpdm").parents(".et-fb-settings-tabs-nav").addClass("ddpdm-tab-parent"),d(".ddpdm-tab-section").parents("div.et-fb-settings-options").removeClass("ddpdm-option-parent")),e()}d('li[data-open_tab="ddpdm-tab"]').length>0&&(d("li.et-fb-settings-options_tab_modules_library").hasClass("et-fb-settings-tabs-nav-item--active")?d("li.et-fb-settings-options_tab_modules_library.et-fb-settings-tabs-nav-item--active").parents("#et-fb-settings-column").find("div.et-fb-settings-options-tab-modules_library").addClass("et-fb-settings-options-tab--active"):d("li.et-fb-settings-options_tab_modules_library.et-fb-settings-tabs-nav-item--active").parents("#et-fb-settings-column").find("div.et-fb-settings-options-tab-modules_library").removeClass("et-fb-settings-options-tab--active"),d("li.et-fb-settings-options_tab_modules_all").hasClass("et-fb-settings-tabs-nav-item--active")?d("li.et-fb-settings-options_tab_modules_all.et-fb-settings-tabs-nav-item--active").parents("#et-fb-settings-column").find("div.et-fb-settings-options-tab-modules_all").addClass("et-fb-settings-options-tab--active"):d("li.et-fb-settings-options_tab_modules_all.et-fb-settings-tabs-nav-item--active").parents("#et-fb-settings-column").find("div.et-fb-settings-options-tab-modules_all").removeClass("et-fb-settings-options-tab--active")),d(".et-fb-main-settings--add_new_module .et-fb-settings-tabs-nav li:not(.ddpdm) a").on("click",function(){d(".ddpdm-tab-section").removeClass("et-fb-settings-options-tab--active"),d(this).parent("li.et-fb-settings-tabs-nav-item").siblings("li").removeClass("et-fb-settings-tabs-nav-item--active"),d(this).parent("li.et-fb-settings-tabs-nav-item").addClass("et-fb-settings-tabs-nav-item--active"),d(this).parents(".et-fb-main-settings").find(".ddpdm-option-parent").removeClass("ddpdm-option-parent"),d("a.modules_all").parents("#et-fb-settings-column").removeClass("ddpdm-column-parent"),d(this).parents(".et-fb-settings-tabs-nav").removeClass("ddpdm-tab-parent")}),d(".et-fb-main-settings--add_new_module .et-fb-settings-tabs-nav li.ddpdm a").on("click",function(t){t.preventDefault(),d(this).parent("li.et-fb-settings-tabs-nav-item").siblings().removeClass("et-fb-settings-tabs-nav-item--active"),d(".ddpdm-tab-section").siblings("div").removeClass("et-fb-settings-options-tab--active"),d(this).parent("li.et-fb-settings-tabs-nav-item ").addClass("et-fb-settings-tabs-nav-item--active"),d(".ddpdm-tab-section").addClass("et-fb-settings-options-tab--active"),d(".ddpdm-tab-section").parents("div.et-fb-settings-options-wrap").addClass("ddpdm-option-parent"),d("a.modules_all").parents("#et-fb-settings-column").addClass("ddpdm-column-p
1arent"),d(this).parents(".et-fb-settings-tabs-nav").addClass("ddpdm-tab-parent")}),d(".et-fb-main-settings--add_new_module .et-fb-settings-tabs-nav li.ddpdm").hasClass("et-fb-settings-tabs-nav-item--active")?(d(".ddpdm-tab-section").parents("div.et-fb-settings-options-wrap").hasClass("ddpdm-option-parent")||d(".ddpdm-tab-section").parents("div.et-fb-settings-options-wrap").addClass("ddpdm-option-parent"),d("a.modules_all").parents("#et-fb-settings-column").hasClass("ddpdm-column-parent")||d("a.modules_all").parents("#et-fb-settings-column").addClass("ddpdm-column-parent"),d(".et-fb-main-settings--add_new_module .et-fb-settings-tabs-nav li.ddpdm").parents(".et-fb-settings-tabs-nav").hasClass("ddpdm-tab-parent")||d(".et-fb-main-settings--add_new_module .et-fb-settings-tabs-nav li.ddpdm").parents(".et-fb-settings-tabs-nav").addClass("ddpdm-tab-parent")):(d(".ddpdm-tab-section").parents("div.et-fb-settings-options-wrap").hasClass("ddpdm-option-parent")&&d(".ddpdm-tab-section").parents("div.et-fb-settings-options-wrap").removeClass("ddpdm-option-parent"),d("a.modules_all").parents("#et-fb-settings-column").hasClass("ddpdm-column-parent")&&d("a.modules_all").parents("#et-fb-settings-column").removeClass("ddpdm-column-parent"),d(".et-fb-main-settings--add_new_module .et-fb-settings-tabs-nav li.ddpdm").parents(".et-fb-settings-tabs-nav").hasClass("ddpdm-tab-parent")&&d(".et-fb-main-settings--add_new_module .et-fb-settings-tabs-nav li.ddpdm").parents(".et-fb-settings-tabs-nav").addClass("ddpdm-tab-parent"))},300)):e()},error:function(d){}}),setInterval(function(){d("iframe#ondemandIframe.settingsIframe").length&&e()},1e3),d(".ddpdm-assistant .yes_no_button").each(function(){var t=d(this),e=t.is(":checked"),a=e?"et_pb_on_state":"et_pb_off_state",s=d(d("#epanel-yes-no-button-template").html()).find(".et_pb_yes_no_button").addClass(a);t.hide().after(s),"et_pb_static_css_file"===t.attr("id")&&(t.parent().addClass(a).next().addClass("et_pb_clear_static_css").on("click",function(){epanel_clear_static_css(!1,!0)}),e||t.parents(".et-epanel-box").next().hide())}),d(".ddpdm_settings.save_settings input#submit").on("click",function(t){t.preventDefault(),d(".ddpdm-archive-settings .et-epanel-box select").each(function(){var t=d(this).attr("id"),e=d(this).val();jQuery.ajax({type:"POST",url:ajaxurl,data:"action=ddpdm_update_option&ddpdm_option="+t+"&ddpdm_option_val="+e+"&ddpdm_nonce="+ddpdm_wl_options_for_js.ddpdm_nonce,success:function(d){window.location.reload()},error:function(d){}})})}),d(".ddpdm-assistant .et-box-content").on("click",".et_pb_yes_no_button",function(t){t.preventDefault();var a=d(this),s=a.parents(".et-box-content"),i=s.find('input[type="checkbox"]'),n=s.find(".et_pb_yes_no_button");if($ddpdm_option=s.find("input").attr("name"),n.toggleClass("et_pb_on_state et_pb_off_state"),i.is(":checked")?i.prop("checked",!1):i.prop("checked",!0),a.hasClass("et_pb_on_state")){if(ajax_value="enabled",a.hasClass("ddpdm_enable")){var o=Math.floor(1e6*Math.random()+1);"enabled"===ddpdm_wl_options_for_js.ddpdm_status&&"yes"!==ddpdm_wl_options_for_js.ddpdm_expired_status?ddpdm_layouts_link="https://ondemand.divi-den.com/new-api-layouts-search-ghaser65/?uid="+o:ddpdm_layouts_link="https://ondemand.divi-den.com/new-no-api-layouts-search-dngfh4q2/?uid="+o,d('<iframe id="ondemanIframe" name="ondemandIframe" src="'+ddpdm_layouts_link+'"></iframe>').insertAfter(".ddpdm-assistant hr"),e()}}else ajax_value="disabled";0===ddd_full_stop&&jQuery.ajax({type:"POST",url:ajaxurl,data:"action=ddpdm_update_option&ddpdm_option="+$ddpdm_option+"&ddpdm_option_val="+ajax_value+"&ddpdm_nonce="+ddpdm_wl_options_for_js.ddpdm_nonce,success:function(d){},error:function(d){}})}),d(".main > div:not(.ddpdm-wl-dash) .ddpdm-accordion .ddpdm-accordion-header").click(function(){d(this).next(".ddpdm-accordion-content").slideToggle("fast"),d(this).parent(".ddpdm-accordion").toggleClass("closed").toggleClass("opened"),d(".ddpdm-accordion.opened h3 span").html("â"),d(".ddpdm-accordion.closed h3 span").html("+")}),d(".main > div.ddpdm-wl-dash .ddpdm-accordion .ddpdm-accordion-header .et-box-title").click(function(){d(this).parents(".ddpdm-accordion-header").next(".ddpdm-accordion-content").slideToggle("fast"),d(this).parents(".ddpdm-accordion").toggleClass("closed").toggleClass("opened"),d(".ddpdm-accordion.opened h3 span").html("â"),d(".ddpdm-accordion.closed h3 span").html("+")}),setTimeout(function(){d(".ddpdm-assistant.activated h2.nav-tab-wrapper").length>0&&(d("div[data-dismissible=disable-ddpro-cache-notice-forever]").remove(),d("div[data-dismissible=disable-ddpdm-cache-notice-forever]").insertAfter(".ddpdm-assistant.activated h2.nav-tab-wrapper"),d("div[data-dismissible=disable-ddpdm-cache-notice-forever]").show())},300),setInterval(function(){d("iframe#ondemanIframe").length>0&&(d("div[data-dismissible=disable-ddpro-cache-notice-forever]").remove(),d("div[data-dismissible=disable-ddpro-cache-notice-forever]").removeClass("shown"),d("div[data-dismissible=disable-ddpdm-cache-notice-forever]:not(.shown)").insertBefore("iframe#ondemanIframe"),d("div[data-dismissible=disable-ddpdm-cache-notice-forever]:not(.shown)").show(),d("div[data-dismissible=disable-ddpdm-cache-notice-forever]").addClass("shown"))},100),d('input[name="ddpdm_plugin_name"]').alphanum({allowSpace:!0,allowUpper:!0}),d("input#ddpdm_plugin_setting_tab_position").length>0&&(jQuery.ajax({type:"GET",url:ajaxurl,data:"action=ddpdm_get_option_ddpdm_plugin_setting_tab_position",success:function(t){"on"===t?d("input#ddpdm_plugin_setting_tab_position").prop("checked",!0):d("input#ddpdm_plugin_setting_tab_position").prop("checked",!1)},error:function(d){}}),d("input#ddpdm_plugin_setting_tab_position").on("change",function(){var t=d(this).attr("id");!0===d(this).prop("checked")?d(this).val("on"):d(this).val("off");var e=d(this).val();jQuery.ajax({type:"POST",url:ajaxurl,data:"action=ddpdm_update_option&ddpdm_option="+t+"&ddpdm_option_val="+e+"&ddpdm_nonce="+ddpdm_wl_options_for_js.ddpdm_nonce,success:function(d){},error:function(d){}})}
1));var s=a().tab,i=a().page;if(d(".toplevel_page_divi_den_pro_dm_dashboard ul.wp-submenu-wrap li a").each(function(){d(this).removeClass("current"),d(this).closest("li").removeClass("current"),d(this).attr("href").split("&tab=")[1]===s&&void 0!==s&&(d(this).addClass("current"),d(this).closest("li").addClass("current")),"divi_den_pro_dashboard"===i&&void 0===s&&d("li.toplevel_page_divi_den_pro_dashboard li.wp-first-item").addClass("current")}),d(".ddpdm-assistant .nav-tabs-subtabs a").each(function(){d(this).hasClass("nav-tab-active")&&(d(".ddpdm-assistant .nav-tab.ddpdm_advanced").addClass("nav-tab-active"),d(".ddpdm-assistant .nav-tabs-subtabs").show())}),d(".ddpdm-assistant .nav-tab.ddpdm_advanced").hasClass("nav-tab-active")?d(".ddpdm-assistant .nav-tabs-subtabs").show():d(".ddpdm-assistant .nav-tabs-subtabs").hide(),d(".ddpdm-assistant .nav-tabs-subtabs-theme-builder a").each(function(){d(this).hasClass("nav-tab-active")&&(d(".ddpdm-assistant .nav-tab.ddpdm_theme_builder").addClass("nav-tab-active"),d(".ddpdm-assistant .nav-tabs-subtabs--theme-builder").show())}),d(".ddpdm-assistant .nav-tab.ddpdm_theme_builder").hasClass("nav-tab-active")?d(".ddpdm-assistant .nav-tabs-subtabs-theme-builder").show():d(".ddpdm-assistant .nav-tabs-subtabs-theme-builder").hide(),d(".ddpdm-assistant .nav-tab.ddpdm_advanced").length>0){if(o=d(".ddpdm-assistant .nav-tab.ddpdm_advanced").attr("href"))var n=o.replace("ddpdm_advanced","ddpdm_wl");d(".ddpdm-assistant .nav-tab.ddpdm_advanced").attr("href",n)}if(d(".ddpdm-assistant .nav-tab.ddpdm_theme_builder").length>0){if(o=d(".ddpdm-assistant .nav-tab.ddpdm_theme_builder").attr("href"))n=o.replace("ddpdm_theme_builder","ddpdm_divi_theme_builder");d(".ddpdm-assistant .nav-tab.ddpdm_theme_builder").attr("href",n)}if(d(".ddpdm-assistant.expired:not(.activated) .nav-tab.ddpdm_subscription_expired").length>0){var o;if(o=d(".ddpdm-assistant .nav-tab.ddpdm_theme_builder").attr("href"))n=o.replace("ddpdm_divi_theme_builder","ddpdm_subscription_expired");d(".ddpdm-assistant .nav-tab.ddpdm_theme_builder").attr("href",n)}if(d(".ddpdm-assistant.expired:not(.activated) .nav-tab.ddpdm_subscription_expired").length>0){if("ddpdm_divi_theme_builder"===s){let d=window.location.href.replace("ddpdm_divi_theme_builder","ddpdm_subscription_expired");window.location.href=d}if("ddpdm_settings"===s){let d=window.location.href.replace("ddpdm_settings","ddpdm_subscription_expired");window.location.href=d}}function p(){if(d(".ddpdm-assistant").width()>0){let t=0,e=d("body").height(),a=d(".ddpdm-assistant > h1").outerHeight(),s=d(".ddpdm-assistant > h2").outerHeight(),i=d("#wpfooter").outerHeight();if(d(".ddpdm-php-templates").width()>0){let n=d(".nav-tabs-subtabs").outerHeight();t=e-a-s-i-(d(".ddpdm-first-column > p").outerHeight()+d(".ddpdm-first-column > a").outerHeight()+40)-n-60}else t=e-a-s-i-10;0!==t&&d("body .ddpdm-assistant div.main iframe:not(.ddpdm-youtube):not(.ddpdm-support-frame):not(#ddpdm_wp_content_ifr)").height(t)}}d(".ddpdm-assistant.expired.activated.inactive_expired .nav-tab.ddpdm_subscription_expired").length>0&&d(".ddpdm-assistant.expired.activated.inactive_expired .nav-tab.ddpdm_subscription_expired").remove(),p(),window.addEventListener("resize",function(d){p()}),d(".form-table.ddpdm_wl th div.ddpdm-info-icon").on("click",function(){d(this).siblings("span").toggleClass("ddpdm-info-span-show")});const{__:l,_x:m,_n:_,_nx:r}=wp.i18n;d(".ddpdm-assistant.activated:not(.inactive_expired) .ddpdm-api-dash p.submit input#submit").val(l("Remove this domain","ddprodm")),d(".ddpdm-assistant.activated .ddpdm-api-dash p.submit input#submit").addClass("ddpdm-api-deactivate"),d(".ddpdm-assistant.activated .ddpdm-api-dash p.submit input#submit.ddpdm-api-deactivate").on("click",function(){d(".ddpdm-assistant.activated .ddpdm-api-dash .et_pb_on_value")[0].click()}),d(".ddpdm-assistant .ddpdm_divi_latest_feed").length>0&&d(".ddpdm-assistant .ddpdm_divi_latest_feed .ddpdm-first-column").masonry({itemSelector:".ddpdm-latest-feed-item"}),(d(".ddpdm_theme_builder").hasClass("nav-tab-active")||d(".ddpdm_advanced").hasClass("nav-tab-active")||d(".ddpdm_subscription_expired").length)&&d(".cache-warning").remove(),d('body.toplevel_page_et_divi_options > .notice, body[class*="divi_page_"] > .notice').insertBefore("#wpbody-content #wrapper")});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.