PageSourceSearch

https://www3.swipeclock.com/wp-content/plugins/ddpro/js/ddp-admin.js?ver=5.5.1

js swipeclock.com collected 2026-09-24 09:22:11 UTC 57,194 bytes, 1,426 lines download raw bytes

1var ddd_full_stop = 0,
2	json_counters_array = [];
3
4// Queue for featured image imports to prevent race conditions
5window.ddp_featured_image_queue = [];
6jQuery(document).ready(function (t) {
7	const { __: e, _x: a, _n: d, _nx: s } = wp.i18n;
8	t("#ddp-success-report").hide(),
9		new Clipboard("#ddp-copy-report").on("success", function () {
10			t("#ddp-success-report").show();
11		}),
12		new Clipboard("#ddp-copy-url").on("success", function () {
13			t("#ddp-success-url").show();
14		}),
15		t(
16			".ddp-assistant .nav-tab.ddp_wl, .ddp-assistant .nav-tab.ddp_options"
17		).wrapAll('<div class="nav-tabs-subtabs"></div>'),
18		t(
19			".ddp-assistant .nav-tab.ddp_divi_theme_builder, .ddp-assistant .nav-tab.ddp_settings"
20		).wrapAll('<div class="nav-tabs-subtabs-theme-builder"></div>'),
21		jQuery(
22			".wrap.ddp-assistant:not(.activated) a.nav-tab:not(.divi_den_pro_dashboard):not(.ddp_assistant_system_status):not(.ddp_assistant_help_faq):not(.ddp_start_here):not(.ddp_latest_feed)"
23		).addClass("disabled"),
24		jQuery("table.ddp-report-table td a, table.ddp-report-table th a").on(
25			"click touch",
26			function (t) {
27				t.preventDefault();
28			}
29		),
30		jQuery("#wp-ddp_wp_content-wrap")
31			.appendTo("tr#wp-ddp-column td:not(.ddp-save-buttons)")
32			.show(),
33		jQuery(".form-table.ddp_wl label input[name=ddp_plugin_name]").length > 0 &&
34			((ddp_n = jQuery(
35				".form-table.ddp_wl label input[name=ddp_plugin_name]"
36			).val()),
37			(ddp_n = ddp_n.replace(/\s+/g, "_").toLowerCase()),
38			(ddp_url_path = window.location.pathname),
39			jQuery(".new_admin_url").html(
40				window.location.protocol +
41					"//" +
42					window.location.hostname +
43					ddp_url_path +
44					"?page=" +
45					ddp_n +
46					"_dashboard<strong>_wl</strong>"
47			)),
48		jQuery(".form-table.ddp_wl label input[name=ddp_plugin_name]").on(
49			"keyup",
50			function () {
51				(ddp_n = t(this).val()),
52					(ddp_n = ddp_n.replace(/\s+/g, "_").toLowerCase()),
53					(ddp_url_path = window.location.pathname),
54					jQuery(".new_admin_url").html(
55						window.location.protocol +
56							"//" +
57							window.location.hostname +
58							ddp_url_path +
59							"?page=" +
60							ddp_n +
61							"_dashboard<strong>_wl</strong>"
62					);
63			}
64		),
65		jQuery(".ddp-breadcrumbs--end").text(jQuery("a.nav-tab-active").text()),
66		jQuery("p.submit.ddp_wl.save_settings input").on(
67			"click touch",
68			function (e) {
69				e.preventDefault(),
70					(ddd_full_stop = 0),
71					jQuery(
72						".form-table.ddp_wl label input, .form-table.ddp_wl label textarea, #wp-ddp_wp_content-wrap"
73					).each(function () {
74						"wp-ddp_wp_content-wrap" !== t(this).attr("id") &&
75							"ddp_plugin_icon" !== t(this).attr("name") &&
76							"" === t(this).val() &&
77							((ddd_full_stop = 1),
78							t(this).addClass("not-filled"),
79							t(this).siblings(".ddp-error-message").remove(),
80							t(this).after(
81								'<span class="ddp-error-message">This field is required</span>'
82							));
83					}),
84					0 === ddd_full_stop
85						? (t(this).next().hide(),
86						  jQuery(
87								".form-table.ddp_wl label input, .form-table.ddp_wl label textarea, #wp-ddp_wp_content-wrap"
88						  ).each(function () {
89								if (
90									("wp-ddp_wp_content-wrap" === t(this).attr("id")
91										? ((ajax_option = "ddp_wp_content"),
92										  (ajax_val = jQuery(
93												".ddp_wl_settings #wp-ddp_wp_content-wrap"
94										  ).hasClass("tmce-active")
95												? tinymce.get("ddp_wp_content").getContent()
96												: jQuery("textarea#ddp_wp_content").val()))
97										: ((ajax_option = t(this).attr("name")),
98										  (ajax_val = t(this).val())),
99									"ddp_plugin_name" === ajax_option)
100								) {
101									ajax_val;
102									var e = ajax_val.replace(/\s+/g, "_").toLowerCase();
103									jQuery("input[name=ddp_wl]").is(":checked")
104										? (redirect_link =
105												window.location.pathname +
106												"?page=" +
107												e +
108												"_dashboard_wl&tab=ddp_wl")
109										: (redirect_link =
110												window.location.pathname +
111												"?page=divi_den_pro_dashboard&tab=ddp_wl"),
112										jQuery("input[name=ddp_hide_menu]").is(":checked") &&
113											(redirect_link = window.location.pathname.replace(
114												"admin.php",
115												""
116											));
117								}
118								jQuery.ajax({
119									type: "POST",
120									url: ajaxurl,
121									data:
122										"action=ddp_update_option&ddp_option=" +
123										ajax_option +
124										"&ddp_option_val=" +
125										ajax_val +
126										"&ddp_nonce=" +
127										ddp_wl_options_for_js.ddp_nonce,
128									success: function (t) {
129										redirect_link
130											? window.location.replace(redirect_link)
131											: window.location.reload();
132									},
133									error: function (t) {},
134								});
135						  }))
136						: t(this).next().show();
137			}
138		),
139		jQuery(
140			"p input#submit_wl.submit_wl_disabled, p input#submit_wl.submit_wl_enabled"
141		).on("click", function (a) {
142			a.preventDefault(), (ddd_full_stop = 0);
143			let d =
144					'<div class="ddp_wl_loaded"><p>' +
145					e("One moment please... Activating white label mode", "ddpro") +
146					"</p></div>",
147				s =
148					'<div class="ddp_wl_loaded"><p>' +
149					e("One moment please... Deactivating white label mode", "ddpro") +
150					"</p></div>";
151			t(this).hasClass("submit_wl_disabled") && t("#ddp-wl-pop-up").html(d),
152				t(this).hasClass("submit_wl_enabled") && t("#ddp-wl-pop-up").html(s),
153				jQuery(
154					".form-table.ddp_wl label input, .form-table.ddp_wl label textarea, #wp-ddp_wp_content-wrap"
155				).each(function () {
156					"wp-ddp_wp_content-wrap" !== t(this).attr("id") &&
157						"ddp_plugin_icon" !== t(this).attr("name") &&
158						"" === t(this).val() &&
159						((ddd_full_stop = 1),
160						t(this).addClass("not-filled"),
161						t(this).siblings(".ddp-error-message").remove(),
162						t(this).after(
163							'<span class="ddp-error-message">This field is required</span>'
164						));
165				}),
166				0 === ddd_full_stop
167					? (t(this).next().hide(),
168					  t(".ddp_wl_hidden .et-box-content .et_pb_button_slider").click(),
169					  t(".submit.ddp_wl.save_settings input").click())
170					: t(this).next().show();
171		});
172}),
173	jQuery(document).ready(function (t) {
174		function e() {
175			var e = document.getElementById("ondemanIframe");
176			t("#et_pb_loading_animation").remove(),
177				jQuery.ajax({
178					type: "GET",
179					url: ajaxurl,
180					data: "action=ddp_get_option",
181					success: function (t) {
182						"enabled" == t + ""
183							? null !== e &&
184							  null !== e.contentWindow &&
185							  e.contentWindow.postMessage("pro_membership_activated", "*")
186							: null !== e &&
187							  null !== e.contentWindow &&
188							  e.contentWindow.postMessage("pro_membership_deactivated", "*");
189					},
190				}),
191				(function () {
192					for (
193						var t,
194							e = [],
195							a = window.location.href
196								.slice(window.location.href.indexOf("?") + 1)
197								.split("&"),
198							d = 0;
199						d < a.length;
200						d++
201					)
202						(t = a[d].split("=")), e.push(t[0]), (e[t[0]] = t[1]);
203					return e;
204				})().post;
205			var d = window.addEventListener ? "addEventListener" : "attachEvent",
206				s = window[d],
207				n = "attachEvent" === d ? "onmessage" : "message";
208			t("ul.et_pb_saved_layouts_list").length > 0 &&
209				t("ul.et_pb_saved_layouts_list li:not(.added_image)").each(function () {
210					(this_title = t(this).find("a").text()),
211						(this_class = this_title
212							.replace(/-+/g, "")
213							.replace(/\s+/g, "-")
214							.toLowerCase()),
215						t(this).addClass(this_class),
216						t(this).addClass("added_image"),
217						jQuery.ajax({
218							type: "POST",
219							url: ajaxurl,
220							data:
221								"action=ddp_show_featured_image&ddp_title_image=" +
222								this_title +
223								"&ddp_nonce=" +
224								ddp_wl_options_for_js.ddp_nonce,
225							success: function (e) {
226								"" !== e &&
227									((img_link = e.substring(e.indexOf("|") + 1)),
228									(img_post_title = e.replace(img_link, "").replace("|", "")),
229									t("ul.et_pb_saved_layouts_list li:not(.with-image)").each(
230										function () {
231											(this_title = t(this).find("a").text()),
232												this_title === img_post_title &&
233													(t(this)
234														.find("a")
235														.before(
236															'<img src="' +
237																img_link +
238																'" class="ddp_preview" />'
239														),
240													t(this).addClass("with-image"));
241										}
242									));
243							},
244							error: function (t) {},
245						});
246				}),
247				setInterval(function () {
248					t(
249						"div.et-fb-settings-options-tab-modules_library ul:not(.ddp_images_sent)"
250					).length > 0 &&
251						t(
252							"div.et-fb-settings-options-tab-modules_library ul li:not(.added_image):not(.with-image)"
253						).each(function () {
254							(this_title = t(this).find("span.et_module_title").text().trim()),
255								(this_class = this_title
256									.replace(/-+/g, "")
257									.replace(/\s+/g, "-")
258									.toLowerCase()),
259								t(this).addClass(this_class),
260								t(this).addClass("added_image"),
261								jQuery.ajax({
262									type: "POST",
263									url: ajaxurl,
264									data:
265										"action=ddp_show_featured_image&ddp_title_image=" +
266										this_title +
267										"&ddp_nonce=" +
268										ddp_wl_options_for_js.ddp_nonce,
269									success: function (e) {
270										"" !== e &&
271											((img_link = e.substring(e.indexOf("|") + 1)),
272											(img_post_title = e
273												.replace(img_link, "")
274												.replace("|", "")),
275											t(
276												"div.et-fb-settings-options-tab-modules_library ul li:not(.with-image)"
277											).each(function () {
278												(this_title = t(this)
279													.find("span.et_module_title")
280													.text()
281													.trim()),
282													this_title === img_post_title &&
283														0 === t(this).find("img.ddp_preview").length &&
284														(t(this)
285															.find("span.et_module_title")
286															.after(
287																'<img src="' +
288																	img_link +
289																	'" class="ddp_preview" />'
290															),
291														t(this).addClass("with-image"));
292											}));
293									},
294									error: function (t) {},
295								});
296						});
297				}, 10),
298				s(
299					n,
300					function (d) {
301						var s;
302						if (
303							"https://ondemand.divi-den.com" === d.origin &&
304							"string" === jQuery.type(d.data)
305						)
306							if (~d.data.indexOf("context")) {
307								t("body .ddp-assistant .saving_message").show();
308								var n = "off";
309								if (
310									(jQuery(
311										"#et_pb_main_container > .et_pb_section .et_pb_module_block"
312									).length <= 0 && (n = "on"),
313									(s = jQuery.parseJSON(d.data)))
314								)
315									if (
316										t(e).hasClass("settingsIframe") ||
317										t(e).hasClass("vbIframe") ||
318										"et_builder" !== s.context
319									)
320										"et_builder_layouts" === s.context ||
321										t(e).hasClass("settingsIframe")
322											? ((response_data = encodeURIComponent(
323													JSON.stringify(s)
324											  )),
325											  jQuery.ajax({
326													type: "POST",
327													url: ajaxurl,
328													data:
329														"action=ddp_import_posts&posts=" +
330														response_data +
331														"&ddp_nonce=" +
332														ddp_wl_options_for_js.ddp_nonce,
333													success: function (e) {
334														// Process featured image queue after post import
335														function processFeaturedImageQueue() {
336															if (window.ddp_featured_image_queue.length > 0) {
337																var featured_image_data =
338																	window.ddp_featured_image_queue.shift();
339																var parts = featured_image_data.split("|");
340
341																setTimeout(function () {
342																	jQuery.ajax({
343																		type: "POST",
344																		url: ajaxurl,
345																		data:
346																			"action=ddp_import_featured_image&ddp_featured_image=" +
347																			featured_image_data +
348																			"&ddp_nonce=" +
349																			ddp_wl_options_for_js.ddp_nonce,
350																		success: function (img_data) {
351																			if (
352																				img_data &&
353																				img_data.data &&
354																				img_data.data.placeholder_used
355																			) {
356																				console.warn(
357																					"DDP: Featured image failed, placeholder assigned for:",
358																					parts[0],
359																					"Reason:",
360																					img_data.data.reason
361																				);
362																			}
363																			// Process next item in queue
364																			processFeaturedImageQueue();
365																		},
366																		error: function (img_data) {
367																			console.error(
368																				"DDP: Featured image AJAX error for:",
369																				parts[0]
370																			);
371																			// Process next item even on error
372																			processFeaturedImageQueue();
373																		},
374																	});
375																}, 500);
376															}
377														}
378
379														// Start processing queue
380														processFeaturedImageQueue();
381
382														if (0 === t("div.sectionSaved").length) {
383															t(".ddp-tab-section, .ddp-tab-module").html(
384																'<div class="sectionSaved">                                            <p>' +
385																	l(
386																		"<strong>Success!</strong> Your section/module is being saved to your local Divi library.",
387																		"ddpro"
388																	) +
389																	"</p>                                            <h3>" +
390																	l("Choose your next step...", "ddpro") +
391																	"</h3>                                            <p>" +
392																	l(
393																		"1. Find new modules and save to your library",
394																		"ddpro"
395																	) +
396																	'</p>                                            <a href="#" class="ddp_close">' +
397																	l("Find New Pro Modules", "ddpro") +
398																	"</a>                                            <p>" +
399																	l(
400																		'2. Begin editing - Use the "Add From Library" tab to load sections/modules from local Divi Library',
401																		"ddpro"
402																	) +
403																	'</p>                                            <a href="#" class="ddp_reload">' +
404																	l(
405																		"To Continue - Save and Reload Page",
406																		"ddpro"
407																	) +
408																	"</a>                                            " +
409																	l(
410																		"(please do it manually if you are in Divi Frontend Builder or Divi Theme Builder)",
411																		"ddpro"
412																	) +
413																	"</div>"
414															),
415																t(
416																	"body .ddp-tab-section a.ddp_reload, body .ddp-tab-module a.ddp_reload"
417																).on("click", function (e) {
418																	e.preventDefault(),
419																		t("div.sectionSaved").html(
420																			'<h3 class="ddp_loading_text">Reloading...</h3>'
421																		),
422																		t("input.button-primary#publish").click(),
423																		t("button.et-fb-button--publish").click(),
424																		t(
425																			"li#wp-admin-bar-et-disable-visual-builder a.ab-item"
426																		).click();
427																});
428															var d = Math.floor(1e6 * Math.random() + 1);
429															"enabled" === ddp_wl_options_for_js.ddp_status &&
430															"yes" !==
431																ddp_wl_options_for_js.ddp_on_hold_status.replace(
432																	/\s/g,
433																	""
434																)
435																? ((ddp_sections_link =
436																		"https://ondemand.divi-den.com/sections-search-api-ljljdfre935/?uid=" +
437																		d),
438																  (ddp_modules_link =
439																		"https://ondemand.divi-den.com/modules-search-api-fdge43y/?uid=" +
440																		d))
441																: ((ddp_sections_link =
442																		"https://ondemand.divi-den.com/sections-search-no-api-asdfv324/?uid=" +
443																		d),
444																  (ddp_modules_link =
445																		"https://ondemand.divi-den.com/modules-search-no-api-33jwer3/?uid=" +
446																		d)),
447																t("body .ddp-tab-section a.ddp_close").on(
448																	"click",
449																	function (e) {
450																		e.preventDefault(),
451																			t("div.sectionSaved").html(
452																				'<h3 class="ddp_loading_text">Loading...</h3>'
453																			),
454																			t(".ddp-tab-section").html(
455																				'<iframe id="ondemanIframe" name="ondemandIframe" class="sectionsIframe" style="width: 100%;height: 100%;" src="' +
456																					ddp_sections_link +
457																					'"></iframe>'
458																			),
459																			a();
460																	}
461																),
462																t("body .ddp-tab-module a.ddp_close").on(
463																	"click",
464																	function (e) {
465																		e.preventDefault(),
466																			t("div.sectionSaved").html(
467																				'<h3 class="ddp_loading_text">Loading...</h3>'
468																			),
469																			t(".ddp-tab-module").html(
470																				'<iframe id="ondemanIframe" name="ondemandIframe" class="sectionsIframe" style="width: 100%;height: 100%;" src="' +
471																					ddp_modules_link +
472																					'"></iframe>'
473																			),
474																			a();
475																	}
476																);
477														}
478														t("body .ddp-assistant .saving_message").hide(),
479															t("body .ddp-assistant .loaded_message").show(),
480															setTimeout(function () {
481																t("body .ddp-assistant .loaded_message").hide();
482															}, 5500);
483													},
484													error: function (t) {
485														console.log(t);
486													},
487											  }))
488											: s.context;
489									else {
490										layout = JSON.stringify(s);
491										var i = jQuery(
492												".et-pb-all-modules-tab .et-pb-load-layouts"
493											),
494											o = i.children("li").last().clone(!0);
495										o.addClass("layout_here"),
496											o.appendTo(i),
497											jQuery(".layout_here").data("layout_id", {
498												layout: layout,
499												replace_content: n,
500											}),
501											jQuery(".layout_here .et_pb_layout_button_load").click();
502									}
503							} else
504								~d.data.indexOf(".")
505									? t("input#_et_pb_custom_css").val(d.data)
506									: (~d.data.indexOf(",jpg") || ~d.data.indexOf(",png")) &&
507									  ((ddp_featured_image_url = d.data.replace(/\,/g, ".")),
508									  // Skip if ddp-admin-d5.js is loaded (Divi 5)
509									  !window.ddp_d5_handler_loaded &&
510											(-1 === ddp_featured_image_url.indexOf("|") &&
511												((httpIndex = ddp_featured_image_url.indexOf("http")),
512												httpIndex > 0 &&
513													(ddp_featured_image_url =
514														ddp_featured_image_url.substring(0, httpIndex) +
515														"|" +
516														ddp_featured_image_url.substring(httpIndex))),
517											ddp_featured_image_url &&
518												-1 !== ddp_featured_image_url.indexOf("|") &&
519												((parts = ddp_featured_image_url.split("|")),
520												2 === parts.length &&
521													"" !== parts[0].trim() &&
522													0 === parts[1].indexOf("http") &&
523													// Queue featured image instead of immediate AJAX call
524													window.ddp_featured_image_queue.push(
525														ddp_featured_image_url
526													))));
527					},
528					!1
529				);
530		}
531		function a() {
532			setTimeout(function () {
533				t("iframe#ondemanIframe").height() > 0
534					? e()
535					: t("iframe#ondemanIframe").on("load", function () {
536							e();
537					  });
538			}, 300);
539		}
540		function d() {
541			for (
542				var t,
543					e = [],
544					a = window.location.href
545						.slice(window.location.href.indexOf("?") + 1)
546						.split("&"),
547					d = 0;
548				d < a.length;
549				d++
550			)
551				(t = a[d].split("=")), e.push(t[0]), (e[t[0]] = t[1]);
552			return e;
553		}
554		t("#ddp-preview-window").insertAfter("body > :last-child"),
555			t("#ddp-wl-pop-up").insertBefore("body > #ddp-preview-window"),
556			(jQuery.fn.center = function () {
557				return (
558					this.css("position", "absolute"),
559					this.css(
560						"top",
561						jQuery(window).height() / 10 + +jQuery(window).scrollTop() + "px"
562					),
563					this.css(
564						"left",
565						(jQuery(window).width() - this.outerWidth()) / 2 +
566							jQuery(window).scrollLeft() +
567							"px"
568					),
569					this
570				);
571			}),
572			t("#ddp-preview").on("click", function () {
573				t("button#ddp_wp_content-tmce")[0].click(),
574					t("#ddp-preview-window .ddp_wl_contact_page").html(
575						'<div id="ddp-preview-close">×</div>'
576					),
577					t(
578						"#ddp-preview-window .ddp_wl_contact_page #ddp-preview-close"
579					).after(tinymce.get("ddp_wp_content").getContent()),
580					jQuery("#ddp-preview-window").center(),
581					t("#ddp-preview-window").show(),
582					t("#ddp-preview-close").on("click", function () {
583						t("#ddp-preview-window").hide();
584					});
585			}),
586			t("#ddp-preview-close").on("click", function () {
587				t("#ddp-preview-window").hide();
588			}),
589			t("#submit_wl_pop_up").on("click", function (e) {
590				e.preventDefault(),
591					(ddd_full_stop = 0),
592					jQuery(
593						".form-table.ddp_wl label input, .form-table.ddp_wl label textarea, #wp-ddp_wp_content-wrap"
594					).each(function () {
595						"wp-ddp_wp_content-wrap" !== t(this).attr("id") &&
596							"ddp_plugin_icon" !== t(this).attr("name") &&
597							"" === t(this).val() &&
598							((ddd_full_stop = 1),
599							t(this).addClass("not-filled"),
600							t(this).siblings(".ddp-error-message").remove(),
601							t(this).after(
602								'<span class="ddp-error-message">This field is required</span>'
603							));
604					}),
605					0 === ddd_full_stop
606						? (t(this).next().hide(),
607						  jQuery("#ddp-wl-pop-up").center(),
608						  t("#ddp-wl-pop-up").show())
609						: t(this).next().show();
610			}),
611			t("#ddp-wl-pop-up-close, #ddp-wl-pop-up-close-cancel").on(
612				"click",
613				function () {
614					t("#ddp-wl-pop-up").hide();
615				}
616			),
617			t("body .ddp-assistant .loaded_message span.close").on(
618				"click",
619				function () {
620					t("body .ddp-assistant .loaded_message").hide();
621				}
622			),
623			t("body .ddp-assistant .saving_message span.close").on(
624				"click",
625				function () {
626					t("body .ddp-assistant .saving_message").hide();
627				}
628			),
629			"undefined" == typeof ajaxurl &&
630				(ajaxurl = ddp_wl_options_for_js.ddp_ajax_url),
631			(t("body").hasClass("et-fb") || t("body").hasClass("wp-admin")) &&
632				jQuery.ajax({
633					type: "GET",
634					url: ajaxurl,
635					data: "action=ddp_get_option_wl",
636					success: function (e) {
637						"disabled" == e + ""
638							? (a(),
639							  t(document).on(
640									"mouseup",
641									".et-pb-layout-buttons-load",
642									function () {
643										setTimeout(function () {
644											var e = Math.floor(1e6 * Math.random() + 1);
645											"enabled" === ddp_wl_options_for_js.ddp_status &&
646											"yes" !==
647												ddp_wl_options_for_js.ddp_on_hold_status.replace(
648													/\s/g,
649													""
650												)
651												? (ddp_layouts_link =
652														"https://ondemand.divi-den.com/new-api-layouts-search-ghaser65/?uid=" +
653														e)
654												: (ddp_layouts_link =
655														"https://ondemand.divi-den.com/new-no-api-layouts-search-dngfh4q2/?uid=" +
656														e);
657											var a = t(".et-pb-saved-modules-switcher");
658											"on" ===
659											ddp_wl_options_for_js.ddp_plugin_setting_tab_position
660												? a.length &&
661												  (a.append(
662														'<li class="ddp" data-open_tab="ddp-tab" data-layout_type="layout"><a href="#"><img height="25" src="' +
663															ddp_wl_options_for_js.ddp_wl_i_for_js +
664															'" /> <span>' +
665															ddp_wl_options_for_js.ddp_wl_pn_for_js +
666															"</span></a></li>"
667												  ),
668												  t(".et_pb_modal_settings").append(
669														'<div class="et-pb-main-settings et-pb-main-settings-full ddp-tab ddp-tab-layout">                                <div class="et-dlib-load-options ddp-replace-content et-fb-checkboxes-category-wrap"><p>                                ' +
670															l(
671																"Important: if you're replacing the content, please manually clear the layout and update the page, then load the new layout.",
672																"ddpro"
673															) +
674															'</p></div>                                <iframe id="ondemanIframe" name="ondemandIframe" class="layoutsIframe" src="' +
675															ddp_layouts_link +
676															'"></iframe></div>'
677												  ))
678												: (t("li.et-pb-options-tabs-links-active").removeClass(
679														"et-pb-options-tabs-links-active"
680												  ),
681												  t("div.active-container")
682														.removeClass("active-container")
683														.css("opacity", 0),
684												  a.prepend(
685														'<li class="ddp et-pb-options-tabs-links-active" data-open_tab="ddp-tab" data-layout_type="layout"><a href="#"><img height="25" src="' +
686															ddp_wl_options_for_js.ddp_wl_i_for_js +
687															'" /> <span>' +
688															ddp_wl_options_for_js.ddp_wl_pn_for_js +
689															"</span></a></li>"
690												  ),
691												  t(".et_pb_modal_settings").append(
692														'<div class="et-pb-main-settings et-pb-main-settings-full ddp-tab ddp-tab-layout active-container" style="opacity: 1;">                                <div class="et-dlib-load-options ddp-replace-content et-fb-checkboxes-category-wrap"><p>                                ' +
693															l(
694																"Important: if you're replacing the content, please manually clear the layout and update the page, then load the new layout.",
695																"ddpro"
696															) +
697															'</p></div>                                <iframe id="ondemanIframe" name="ondemandIframe" class="layoutsIframe" src="' +
698															ddp_layouts_link +
699															'"></iframe></div>'
700												  ));
701										}, 200),
702											a();
703									}
704							  ),
705							  t(document).on(
706									"mouseup",
707									".et-pb-section-add-saved",
708									function () {
709										setTimeout(function () {
710											jQuery(
711												".et_pb_modal_settings.et_pb_modal_no_tabs"
712											).removeClass("et_pb_modal_no_tabs");
713											var e = Math.floor(1e6 * Math.random() + 1);
714											"enabled" === ddp_wl_options_for_js.ddp_status &&
715											"yes" !==
716												ddp_wl_options_for_js.ddp_on_hold_status.replace(
717													/\s/g,
718													""
719												)
720												? (ddp_sections_link =
721														"https://ondemand.divi-den.com/sections-search-api-ljljdfre935/?uid=" +
722														e)
723												: (ddp_sections_link =
724														"https://ondemand.divi-den.com/sections-search-no-api-asdfv324/?uid=" +
725														e),
726												"on" ===
727												ddp_wl_options_for_js.ddp_plugin_setting_tab_position
728													? jQuery(".et_pb_modal_settings_container h3").after(
729															'                         <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="#">' +
730																l("Add From Library", "ddpro") +
731																'</a>                                </li>                               <li class="ddp" data-open_tab="ddp-tab" data-layout_type="section"><a href="#">                        <img height="25" src="' +
732																ddp_wl_options_for_js.ddp_wl_i_for_js +
733																'" /> <span>' +
734																ddp_wl_options_for_js.ddp_wl_pn_for_js +
735																'</span></a></li>                         </ul>                           <div class="et-pb-main-settings et-pb-main-settings-full ddp-tab ddp-tab-section"                         style="display:block !important;" ><iframe id="ondemanIframe" name="ondemandIframe" class="sectionsIframe"                         src="' +
736																ddp_sections_link +
737																'"></iframe></div>'
738													  )
739													: (t(
740															"li.et-pb-options-tabs-links-active"
741													  ).removeClass("et-pb-options-tabs-links-active"),
742													  t("div.active-container")
743															.removeClass("active-container")
744															.css("opacity", 0),
745													  jQuery(".et_pb_modal_settings_container h3").after(
746															'                         <ul class="et-pb-options-tabs-links et-pb-saved-modules-switcher">                              <li class="ddp et-pb-options-tabs-links-active" data-open_tab="ddp-tab" data-layout_type="section" style="opacity: 1;"><a href="#">                        <img height="25" src="' +
747																ddp_wl_options_for_js.ddp_wl_i_for_js +
748																'" /> <span>' +
749																ddp_wl_options_for_js.ddp_wl_pn_for_js +
750																'</span></a></li>                         <li class="et-pb-saved-module" data-open_tab="et-pb-saved-modules-tab" >                                 <a href="#">' +
751																l("Add From Library", "ddpro") +
752																'</a>                                </li>                           </ul>                           <div class="et-pb-main-settings et-pb-main-settings-full ddp-tab ddp-tab-section active-container"                         style="display:block !important; opacity: 1 !important;" ><iframe id="ondemanIframe" name="ondemandIframe" class="sectionsIframe"                         src="' +
753																ddp_sections_link +
754																'"></iframe></div>'
755													  ));
756										}, 200),
757											a();
758									}
759							  ),
760							  t(document).on(
761									"mouseup",
762									".et-pb-column .et-pb-insert-module",
763									function () {
764										setTimeout(function () {
765											jQuery(
766												".et_pb_modal_settings.et_pb_modal_no_tabs"
767											).removeClass("et_pb_modal_no_tabs");
768											var e = Math.floor(1e6 * Math.random() + 1);
769											"enabled" === ddp_wl_options_for_js.ddp_status &&
770											"yes" !==
771												ddp_wl_options_for_js.ddp_on_hold_status.replace(
772													/\s/g,
773													""
774												)
775												? (ddp_modules_link =
776														"https://ondemand.divi-den.com/modules-search-api-fdge43y/?uid=" +
777														e)
778												: (ddp_modules_link =
779														"https://ondemand.divi-den.com/modules-search-no-api-33jwer3/?uid=" +
780														e),
781												t(
782													".et-pb-options-tabs-links.et-pb-saved-modules-switcher"
783												).remove(),
784												"on" ===
785												ddp_wl_options_for_js.ddp_plugin_setting_tab_position
786													? jQuery(".et_pb_modal_settings_container h3").after(
787															'<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="#">' +
788																l("New Module", "ddpro") +
789																'</a></li><li class="et-pb-saved-module" data-open_tab="et-pb-saved-modules-tab" ><a href="#">' +
790																l("Add From Library", "ddpro") +
791																'</a></li><li class="ddp" data-open_tab="ddp-tab" data-layout_type="section"><a href="#"><img height="25" src="' +
792																ddp_wl_options_for_js.ddp_wl_i_for_js +
793																'" /> <span>' +
794																ddp_wl_options_for_js.ddp_wl_pn_for_js +
795																'</span></a></li></ul>                       <div class="et-pb-main-settings et-pb-main-settings-full ddp-tab ddp-tab-module"                     style="display:block !important;" ><iframe id="ondemanIframe" name="ondemandIframe" class="sectionsIframe"                     src="' +
796																ddp_modules_link +
797																'"></iframe></div>'
798													  )
799													: (t(
800															"li.et-pb-options-tabs-links-active"
801													  ).removeClass("et-pb-options-tabs-links-active"),
802													  t("div.active-container")
803															.removeClass("active-container")
804															.css("opacity", 0),
805													  jQuery(".et_pb_modal_settings_container h3").after(
806															'                     <ul class="et-pb-options-tabs-links et-pb-saved-modules-switcher">                      <li class="ddp et-pb-options-tabs-links-active" data-open_tab="ddp-tab" data-layout_type="section"><a href="#">                    <img height="25" src="' +
807																ddp_wl_options_for_js.ddp_wl_i_for_js +
808																'" /> <span>' +
809																ddp_wl_options_for_js.ddp_wl_pn_for_js +
810																'</span></a></li>                         <li class="et-pb-new-module data-open_tab="et-pb-all-modules-tab">                            <a href="#">' +
811																l("New Module", "ddpro") +
812																'</a>                        </li>                        <li class="et-pb-saved-module" data-open_tab="et-pb-saved-modules-tab" >                             <a href="#">' +
813																l("Add From Library", "ddpro") +
814																'</a>                            </li>                           </ul>                       <div class="et-pb-main-settings et-pb-main-settings-full ddp-tab ddp-tab-module active-container"                      style="display:block !important; opacity: 1 !important;" ><iframe id="ondemanIframe" name="ondemandIframe" class="sectionsIframe"                     src="' +
815																ddp_modules_link +
816																'"></iframe></div>                 '
817													  ));
818										}, 200),
819											a();
820									}
821							  ),
822							  setInterval(function () {
823									if (
824										((this_column_parent = t("a.modules_all").parents(
825											"div#et-fb-settings-column"
826										)),
827										t(".ddp").length <= 0 &&
828											this_column_parent.hasClass(
829												"et-fb-modal-settings--modules_all"
830											) &&
831											!this_column_parent.hasClass(
832												"et-fb-tooltip-modal--load_layout"
833											) &&
834											!this_column_parent.hasClass("et_fb_add_row_modal"))
835									) {
836										var e = Math.floor(1e6 * Math.random() + 1);
837										"enabled" === ddp_wl_options_for_js.ddp_status &&
838										"yes" !==
839											ddp_wl_options_for_js.ddp_on_hold_status.replace(
840												/\s/g,
841												""
842											)
843											? ((ddp_sections_link =
844													"https://ondemand.divi-den.com/sections-search-api-ljljdfre935/?uid=" +
845													e),
846											  (ddp_modules_link =
847													"https://ondemand.divi-den.com/modules-search-api-fdge43y/?uid=" +
848													e))
849											: ((ddp_sections_link =
850													"https://ondemand.divi-den.com/sections-search-no-api-asdfv324/?uid=" +
851													e),
852											  (ddp_modules_link =
853													"https://ondemand.divi-den.com/modules-search-no-api-33jwer3/?uid=" +
854													e)),
855											"on" ===
856											ddp_wl_options_for_js.ddp_plugin_setting_tab_position
857												? (t("a.modules_all")
858														.parents(".et-fb-settings-tabs-nav")
859														.append(
860															'<li class="ddp et-fb-settings-tabs-nav-item" data-open_tab="ddp-tab" data-layout_type="layout"><a href="#">                                <img width="20" style=" margin-bottom: -5px;margin-right: 5px;     margin-top: -3px;" src="' +
861																ddp_wl_options_for_js.ddp_wl_i_for_js +
862																'" /> <span>' +
863																ddp_wl_options_for_js.ddp_wl_pn_for_js +
864																"</span></a></li>"
865														),
866												  this_column_parent.hasClass(
867														"et_fb_add_section_modal"
868												  ) &&
869														t(
870															".et-fb-settings-options-wrap > .et-fb-settings-options"
871														).append(
872															'<div class="et-fb-settings-options-tab et-fb-all-modules et-fb-modules-list et-fb-settings-options ddp-tab ddp-tab-section">                                        <iframe id="ondemanIframe" name="ondemandIframe" class="layoutsIframe"                                     src="' +
873																ddp_sections_link +
874																'" style="width: 100%;height: 100%;"></iframe></div>'
875														),
876												  !this_column_parent.hasClass(
877														"et-fb-modal-add-module-container"
878												  ) ||
879														this_column_parent.hasClass(
880															"et_fb_add_row_modal"
881														) ||
882														this_column_parent.hasClass(
883															"et_fb_add_section_modal"
884														) ||
885														t(
886															".et-fb-settings-options-wrap > .et-fb-settings-options"
887														).append(
888															'<div class="et-fb-settings-options-tab et-fb-all-modules et-fb-modules-list et-fb-settings-options ddp-tab ddp-tab-section ddp-tab-module">                                    <iframe id="ondemanIframe" name="ondemandIframe" class="layoutsIframe"                                 src="' +
889																ddp_modules_link +
890																'" style="width: 100%;height: 100%;"></iframe></div>'
891														))
892												: (t("a.modules_all")
893														.parents(".et-fb-settings-tabs-nav")
894														.prepend(
895															'<li class="ddp et-fb-settings-tabs-nav-item et-fb-settings-tabs-nav-item--active" data-open_tab="ddp-tab" data-layout_type="layout"><a href="#">                                <img width="20" style=" margin-bottom: -5px;margin-right: 5px;     margin-top: -3px;" src="' +
896																ddp_wl_options_for_js.ddp_wl_i_for_js +
897																'" /> <span>' +
898																ddp_wl_options_for_js.ddp_wl_pn_for_js +
899																"</span></a></li>"
900														),
901												  this_column_parent.hasClass(
902														"et_fb_add_section_modal"
903												  ) &&
904														t(
905															".et-fb-settings-options-wrap > .et-fb-settings-options"
906														).prepend(
907															'<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 ddp-tab ddp-tab-section">                                    <iframe id="ondemanIframe" name="ondemandIframe" class="layoutsIframe"                                     src="' +
908																ddp_sections_link +
909																'" style="width: 100%;height: 100%; opacity:"></iframe></div>'
910														),
911												  !this_column_parent.hasClass(
912														"et-fb-modal-add-module-container"
913												  ) ||
914														this_column_parent.hasClass(
915															"et_fb_add_row_modal"
916														) ||
917														this_column_parent.hasClass(
918															"et_fb_add_section_modal"
919														) ||
920														t(
921															".et-fb-settings-options-wrap > .et-fb-settings-options"
922														).prepend(
923															'<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 ddp-tab ddp-tab-section ddp-tab-module">                                    <iframe id="ondemanIframe" name="ondemandIframe" class="layoutsIframe"                                 src="' +
924																ddp_modules_link +
925																'" style="width: 100%;height: 100%;"></iframe></div>'
926														),
927												  t(".ddp-tab-section")
928														.siblings("div")
929														.removeClass("et-fb-settings-options-tab--active"),
930												  t(".et-fb-settings-tabs-nav li.ddp a")
931														.parent("li")
932														.siblings()
933														.removeClass(
934															"et-fb-settings-tabs-nav-item--active"
935														),
936												  t(".ddp")
937														.parents(".et-fb-settings-tabs-nav")
938														.addClass("ddp-tab-parent"),
939												  t(".ddp-tab-section")
940														.parents("div.et-fb-settings-options")
941														.removeClass("ddp-option-parent")),
942											a();
943									}
944									t('li[data-open_tab="ddp-tab"]').length > 0 &&
945										(t(
946											"li.et-fb-settings-options_tab_modules_library"
947										).hasClass("et-fb-settings-tabs-nav-item--active")
948											? t(
949													"li.et-fb-settings-options_tab_modules_library.et-fb-settings-tabs-nav-item--active"
950											  )
951													.parents("#et-fb-settings-column")
952													.find(
953														"div.et-fb-settings-options-tab-modules_library"
954													)
955													.addClass("et-fb-settings-options-tab--active")
956											: t(
957													"li.et-fb-settings-options_tab_modules_library.et-fb-settings-tabs-nav-item--active"
958											  )
959													.parents("#et-fb-settings-column")
960													.find(
961														"div.et-fb-settings-options-tab-modules_library"
962													)
963													.removeClass("et-fb-settings-options-tab--active"),
964										t("li.et-fb-settings-options_tab_modules_all").hasClass(
965											"et-fb-settings-tabs-nav-item--active"
966										)
967											? t(
968													"li.et-fb-settings-options_tab_modules_all.et-fb-settings-tabs-nav-item--active"
969											  )
970													.parents("#et-fb-settings-column")
971													.find("div.et-fb-settings-options-tab-modules_all")
972													.addClass("et-fb-settings-options-tab--active")
973											: t(
974													"li.et-fb-settings-options_tab_modules_all.et-fb-settings-tabs-nav-item--active"
975											  )
976													.parents("#et-fb-settings-column")
977													.find("div.et-fb-settings-options-tab-modules_all")
978													.removeClass("et-fb-settings-options-tab--active")),
979										t(
980											".et-fb-main-settings--add_new_module .et-fb-settings-tabs-nav li:not(.ddp) a"
981										).on("click", function () {
982											t(".ddp-tab-section").removeClass(
983												"et-fb-settings-options-tab--active"
984											),
985												t(this)
986													.parent("li.et-fb-settings-tabs-nav-item")
987													.siblings("li")
988													.removeClass("et-fb-settings-tabs-nav-item--active"),
989												t(this)
990													.parent("li.et-fb-settings-tabs-nav-item")
991													.addClass("et-fb-settings-tabs-nav-item--active"),
992												t(this)
993													.parents(".et-fb-main-settings")
994													.find(".ddp-option-parent")
995													.removeClass("ddp-option-parent"),
996												t("a.modules_all")
997													.parents("#et-fb-settings-column")
998													.removeClass("ddp-column-parent"),
999												t(this)
1000													.parents(".et-fb-settings-tabs-nav")
1001													.removeClass("ddp-tab-parent");
1002										}),
1003										t(
1004											".et-fb-main-settings--add_new_module .et-fb-settings-tabs-nav li.ddp a"
1005										).on("click", function (e) {
1006											e.preventDefault(),
1007												t(this)
1008													.parent("li.et-fb-settings-tabs-nav-item")
1009													.siblings()
1010													.removeClass("et-fb-settings-tabs-nav-item--active"),
1011												t(".ddp-tab-section")
1012													.siblings("div")
1013													.removeClass("et-fb-settings-options-tab--active"),
1014												t(this)
1015													.parent("li.et-fb-settings-tabs-nav-item ")
1016													.addClass("et-fb-settings-tabs-nav-item--active"),
1017												t(".ddp-tab-section").addClass(
1018													"et-fb-settings-options-tab--active"
1019												),
1020												t(".ddp-tab-section")
1021													.parents("div.et-fb-settings-options-wrap")
1022													.addClass("ddp-option-parent"),
1023												t("a.modules_all")
1024													.parents("#et-fb-settings-column")
1025													.addClass("ddp-column-parent"),
1026												t(this)
1027													.parents(".et-fb-settings-tabs-nav")
1028													.addClass("ddp-tab-parent");
1029										}),
1030										t(
1031											".et-fb-main-settings--add_new_module .et-fb-settings-tabs-nav li.ddp"
1032										).hasClass("et-fb-settings-tabs-nav-item--active")
1033											? (t(".ddp-tab-section")
1034													.parents("div.et-fb-settings-options-wrap")
1035													.hasClass("ddp-option-parent") ||
1036													t(".ddp-tab-section")
1037														.parents("div.et-fb-settings-options-wrap")
1038														.addClass("ddp-option-parent"),
1039											  t("a.modules_all")
1040													.parents("#et-fb-settings-column")
1041													.hasClass("ddp-column-parent") ||
1042													t("a.modules_all")
1043														.parents("#et-fb-settings-column")
1044														.addClass("ddp-column-parent"),
1045											  t(
1046													".et-fb-main-settings--add_new_module .et-fb-settings-tabs-nav li.ddp"
1047											  )
1048													.parents(".et-fb-settings-tabs-nav")
1049													.hasClass("ddp-tab-parent") ||
1050													t(
1051														".et-fb-main-settings--add_new_module .et-fb-settings-tabs-nav li.ddp"
1052													)
1053														.parents(".et-fb-settings-tabs-nav")
1054														.addClass("ddp-tab-parent"))
1055											: (t(".ddp-tab-section")
1056													.parents("div.et-fb-settings-options-wrap")
1057													.hasClass("ddp-option-parent") &&
1058													t(".ddp-tab-section")
1059														.parents("div.et-fb-settings-options-wrap")
1060														.removeClass("ddp-option-parent"),
1061											  t("a.modules_all")
1062													.parents("#et-fb-settings-column")
1063													.hasClass("ddp-column-parent") &&
1064													t("a.modules_all")
1065														.parents("#et-fb-settings-column")
1066														.removeClass("ddp-column-parent"),
1067											  t(
1068													".et-fb-main-settings--add_new_module .et-fb-settings-tabs-nav li.ddp"
1069											  )
1070													.parents(".et-fb-settings-tabs-nav")
1071													.hasClass("ddp-tab-parent") &&
1072													t(
1073														".et-fb-main-settings--add_new_module .et-fb-settings-tabs-nav li.ddp"
1074													)
1075														.parents(".et-fb-settings-tabs-nav")
1076														.addClass("ddp-tab-parent"));
1077							  }, 300))
1078							: a();
1079					},
1080					error: function (t) {
1081						console.log("WL ERROR "), console.log(t);
1082					},
1083				}),
1084			setInterval(function () {
1085				t("iframe#ondemandIframe.settingsIframe").length && a();
1086			}, 1e3),
1087			t(".ddp-assistant .yes_no_button").each(function () {
1088				var e = t(this),
1089					a = e.is(":checked"),
1090					d = a ? "et_pb_on_state" : "et_pb_off_state",
1091					s = t(t("#epanel-yes-no-button-template").html())
1092						.find(".et_pb_yes_no_button")
1093						.addClass(d);
1094				e.hide().after(s),
1095					"et_pb_static_css_file" === e.attr("id") &&
1096						(e
1097							.parent()
1098							.addClass(d)
1099							.next()
1100							.addClass("et_pb_clear_static_css")
1101							.on("click", function () {
1102								epanel_clear_static_css(!1, !0);
1103							}),
1104						a || e.parents(".et-epanel-box").next().hide());
1105			}),
1106			t(".ddp_settings.save_settings input#submit").on("click", function (e) {
1107				e.preventDefault(),
1108					t(".ddp-archive-settings .et-epanel-box select").each(function () {
1109						var e = t(this).attr("id"),
1110							a = t(this).val();
1111						jQuery.ajax({
1112							type: "POST",
1113							url: ajaxurl,
1114							data:
1115								"action=ddp_update_option&ddp_option=" +
1116								e +
1117								"&ddp_option_val=" +
1118								a +
1119								"&ddp_nonce=" +
1120								ddp_wl_options_for_js.ddp_nonce,
1121							success: function (t) {
1122								window.location.reload();
1123							},
1124							error: function (t) {},
1125						});
1126					});
1127			}),
1128			t(".ddp-assistant .et-box-content").on(
1129				"click",
1130				".et_pb_yes_no_button",
1131				function (e) {
1132					e.preventDefault();
1133					var d = t(this),
1134						s = d.parents(".et-box-content"),
1135						n = s.find('input[type="checkbox"]'),
1136						i = s.find(".et_pb_yes_no_button");
1137					if (
1138						(($ddp_option = s.find("input").attr("name")),
1139						i.toggleClass("et_pb_on_state et_pb_off_state"),
1140						n.is(":checked") ? n.prop("checked", !1) : n.prop("checked", !0),
1141						d.hasClass("et_pb_on_state"))
1142					) {
1143						if (((ajax_value = "enabled"), d.hasClass("ddp_enable"))) {
1144							var o = Math.floor(1e6 * Math.random() + 1);
1145							"enabled" === ddp_wl_options_for_js.ddp_status &&
1146							"yes" !==
1147								ddp_wl_options_for_js.ddp_on_hold_status.replace(/\s/g, "")
1148								? (ddp_layouts_link =
1149										"https://ondemand.divi-den.com/new-api-layouts-search-ghaser65/?uid=" +
1150										o)
1151								: (ddp_layouts_link =
1152										"https://ondemand.divi-den.com/new-no-api-layouts-search-dngfh4q2/?uid=" +
1153										o),
1154								t(
1155									'<iframe id="ondemanIframe" name="ondemandIframe" src="' +
1156										ddp_layouts_link +
1157										'"></iframe>'
1158								).insertAfter(".ddp-assistant hr"),
1159								a();
1160						}
1161					} else ajax_value = "disabled";
1162					0 === ddd_full_stop &&
1163						jQuery.ajax({
1164							type: "POST",
1165							url: ajaxurl,
1166							data:
1167								"action=ddp_update_option&ddp_option=" +
1168								$ddp_option +
1169								"&ddp_option_val=" +
1170								ajax_value +
1171								"&ddp_nonce=" +
1172								ddp_wl_options_for_js.ddp_nonce,
1173							success: function (t) {},
1174							error: function (t) {},
1175						});
1176				}
1177			),
1178			t(
1179				".main > div:not(.ddp-wl-dash) .ddp-accordion .ddp-accordion-header"
1180			).click(function () {
1181				t(this).next(".ddp-accordion-content").slideToggle("fast"),
1182					t(this)
1183						.parent(".ddp-accordion")
1184						.toggleClass("closed")
1185						.toggleClass("opened"),
1186					t(".ddp-accordion.opened h3 span").html("–"),
1187					t(".ddp-accordion.closed h3 span").html("+");
1188			}),
1189			t(
1190				".main > div.ddp-wl-dash .ddp-accordion .ddp-accordion-header .et-box-title"
1191			).click(function () {
1192				t(this)
1193					.parents(".ddp-accordion-header")
1194					.next(".ddp-accordion-content")
1195					.slideToggle("fast"),
1196					t(this)
1197						.parents(".ddp-accordion")
1198						.toggleClass("closed")
1199						.toggleClass("opened"),
1200					t(".ddp-accordion.opened h3 span").html("–"),
1201					t(".ddp-accordion.closed h3 span").html("+");
1202			}),
1203			setTimeout(function () {
1204				t(".ddp-assistant.activated h2.nav-tab-wrapper").length > 0 &&
1205					(t(
1206						"div[data-dismissible=disable-ddpro-cache-notice-forever]"
1207					).insertAfter(".ddp-assistant.activated h2.nav-tab-wrapper"),
1208					t("div[data-dismissible=disable-ddpro-cache-notice-forever]").show());
1209			}, 300),
1210			setInterval(function () {
1211				t("iframe#ondemanIframe").length > 0 &&
1212					(t(
1213						"div[data-dismissible=disable-ddpro-cache-notice-forever]:not(.shown)"
1214					).insertBefore("iframe#ondemanIframe"),
1215					t(
1216						"div[data-dismissible=disable-ddpro-cache-notice-forever]:not(.shown)"
1217					).show(),
1218					t(
1219						"div[data-dismissible=disable-ddpro-cache-notice-forever]"
1220					).addClass("shown")),
1221					t("div.ddpdm-active-notice").length > 0 &&
1222						t(
1223							"div[data-dismissible=disable-ddpwpd-active-notice-forever]"
1224						).remove();
1225			}, 100),
1226			t('input[name="ddp_plugin_name"]').alphanum({
1227				allowSpace: !0,
1228				allowUpper: !0,
1229			}),
1230			t("input#ddp_plugin_setting_tab_position").length > 0 &&
1231				(jQuery.ajax({
1232					type: "GET",
1233					url: ajaxurl,
1234					data: "action=ddp_get_option_ddp_plugin_setting_tab_position",
1235					success: function (e) {
1236						"on" === e
1237							? t("input#ddp_plugin_setting_tab_position").prop("checked", !0)
1238							: t("input#ddp_plugin_setting_tab_position").prop("checked", !1);
1239					},
1240					error: function (t) {},
1241				}),
1242				t("input#ddp_plugin_setting_tab_position").on("change", function () {
1243					var e = t(this).attr("id");
1244					!0 === t(this).prop("checked")
1245						? t(this).val("on")
1246						: t(this).val("off");
1247					var a = t(this).val();
1248					jQuery.ajax({
1249						type: "POST",
1250						url: ajaxurl,
1251						data:
1252							"action=ddp_update_option&ddp_option=" +
1253							e +
1254							"&ddp_option_val=" +
1255							a +
1256							"&ddp_nonce=" +
1257							ddp_wl_options_for_js.ddp_nonce,
1258						success: function (t) {},
1259						error: function (t) {},
1260					});
1261				}));
1262		var s,
1263			n = d().tab,
1264			i = d().page;
1265		if (
1266			(t(".toplevel_page_divi_den_pro_dashboard ul.wp-submenu-wrap li a").each(
1267				function () {
1268					t(this).removeClass("current"),
1269						t(this).closest("li").removeClass("current"),
1270						t(this).attr("href").split("&tab=")[1] === n &&
1271							void 0 !== n &&
1272							(t(this).addClass("current"),
1273							t(this).closest("li").addClass("current")),
1274						"divi_den_pro_dashboard" === i &&
1275							void 0 === n &&
1276							t(
1277								"li.toplevel_page_divi_den_pro_dashboard li.wp-first-item"
1278							).addClass("current");
1279				}
1280			),
1281			"API Key" === t(".ddp-assistant .nav-tab-active").text())
1282		) {
1283			const { __: e, _x: a, _n: d, _nx: s } = wp.i18n;
1284			t(".ddp-assistant .main > *").wrapAll(
1285				'<div class="ddp-api-dash"><div class="ddp-columns"></div></div>'
1286			),
1287				t(".ddp-assistant .main .ddp-columns > :nth-child(n+9)").wrapAll(
1288					'<div class="ddp-second-column ddp-hidden"></div>'
1289				),
1290				t(".ddp-assistant .main .ddp-columns > :nth-child(-n+8)").wrapAll(
1291					'<div class="ddp-first-column"></div>'
1292				),
1293				t(
1294					'<p class="ddp-deactivate-warning">' +
1295						e(
1296							"Caution: While a domain is not actively registered, some plugin functions will not be available. Live layouts and modules may be affected. Proceed with caution.",
1297							"ddpro"
1298						) +
1299						"</p>"
1300				).insertAfter(
1301					".ddp-assistant.activated:not(.inactive_on_hold) .ddp-first-column p.submit input#submit"
1302				);
1303		}
1304		if (
1305			(t(".ddp-assistant .nav-tabs-subtabs a").each(function () {
1306				t(this).hasClass("nav-tab-active") &&
1307					(t(".ddp-assistant .nav-tab.ddp_advanced").addClass("nav-tab-active"),
1308					t(".ddp-assistant .nav-tabs-subtabs").show());
1309			}),
1310			t(".ddp-assistant .nav-tab.ddp_advanced").hasClass("nav-tab-active")
1311				? t(".ddp-assistant .nav-tabs-subtabs").show()
1312				: t(".ddp-assistant .nav-tabs-subtabs").hide(),
1313			t(".ddp-assistant .nav-tabs-subtabs-theme-builder a").each(function () {
1314				t(this).hasClass("nav-tab-active") &&
1315					(t(".ddp-assistant .nav-tab.ddp_theme_builder").addClass(
1316						"nav-tab-active"
1317					),
1318					t(".ddp-assistant .nav-tabs-subtabs--theme-builder").show());
1319			}),
1320			t(".ddp-assistant .nav-tab.ddp_theme_builder").hasClass("nav-tab-active")
1321				? t(".ddp-assistant .nav-tabs-subtabs-theme-builder").show()
1322				: t(".ddp-assistant .nav-tabs-subtabs-theme-builder").hide(),
1323			t(".ddp-assistant .nav-tab.ddp_advanced").length > 0)
1324		) {
1325			if ((s = t(".ddp-assistant .nav-tab.ddp_advanced").attr("href")))
1326				var o = s.replace("ddp_advanced", "ddp_wl");
1327			t(".ddp-assistant .nav-tab.ddp_advanced").attr("href", o);
1328		}
1329		(t(".ddp-assistant .nav-tab.ddp_theme_builder").length > 0 &&
1330			((s = t(".ddp-assistant .nav-tab.ddp_theme_builder").attr("href")) &&
1331				(o = s.replace("ddp_theme_builder", "ddp_divi_theme_builder")),
1332			t(".ddp-assistant .nav-tab.ddp_theme_builder").attr("href", o)),
1333		t(
1334			".ddp-assistant.on_hold:not(.activated) .nav-tab.ddp_subscription_on_hold"
1335		).length > 0) &&
1336			((s = t(".ddp-assistant .nav-tab.ddp_theme_builder").attr("href")) &&
1337				(o = s.replace("ddp_divi_theme_builder", "ddp_subscription_on_hold")),
1338			t(".ddp-assistant .nav-tab.ddp_theme_builder").attr("href", o));
1339		if (
1340			t(
1341				".ddp-assistant.on_hold:not(.activated) .nav-tab.ddp_subscription_on_hold"
1342			).length > 0
1343		) {
1344			if ("ddp_divi_theme_builder" === n) {
1345				let t = window.location.href.replace(
1346					"ddp_divi_theme_builder",
1347					"ddp_subscription_on_hold"
1348				);
1349				window.location.href = t;
1350			}
1351			if ("ddp_settings" === n) {
1352				let t = window.location.href.replace(
1353					"ddp_settings",
1354					"ddp_subscription_on_hold"
1355				);
1356				window.location.href = t;
1357			}
1358		}
1359		function p() {
1360			if (t(".ddp-assistant").width() > 0) {
1361				let e = 0,
1362					a = t("body").height(),
1363					d = t(".ddp-assistant > h1").outerHeight(),
1364					s = t(".ddp-assistant > h2").outerHeight(),
1365					n = t("#wpfooter").outerHeight();
1366				if (t(".ddp-php-templates").width() > 0) {
1367					let i = t(".nav-tabs-subtabs").outerHeight();
1368					e =
1369						a -
1370						d -
1371						s -
1372						n -
1373						(t(".ddp-first-column > p").outerHeight() +
1374							t(".ddp-first-column > a").outerHeight() +
1375							40) -
1376						i -
1377						60;
1378				} else e = a - d - s - n - 10;
1379				0 !== e &&
1380					t(
1381						"body .ddp-assistant div.main iframe:not(.ddp-youtube):not(.ddp-support-frame):not(#ddp_wp_content_ifr)"
1382					).height(e);
1383			}
1384		}
1385		t(
1386			".ddp-assistant.on_hold.activated.inactive_on_hold .nav-tab.ddp_subscription_on_hold"
1387		).length > 0 &&
1388			t(
1389				".ddp-assistant.on_hold.activated.inactive_on_hold .nav-tab.ddp_subscription_on_hold"
1390			).remove(),
1391			p(),
1392			window.addEventListener("resize", function (t) {
1393				p();
1394			}),
1395			t(".form-table.ddp_wl th div.ddp-info-icon").on("click", function () {
1396				t(this).siblings("span").toggleClass("ddp-info-span-show");
1397			});
1398		const { __: l, _x: _, _n: r, _nx: c } = wp.i18n;
1399		t(
1400			".ddp-assistant.activated:not(.inactive_on_hold) .ddp-api-dash p.submit input#submit"
1401		).val(l("Remove this domain", "ddpro")),
1402			t(
1403				".ddp-assistant.activated .ddp-api-dash p.submit input#submit"
1404			).addClass("ddp-api-deactivate"),
1405			t(
1406				".ddp-assistant.activated .ddp-api-dash .ddp-first-column p.submit input#submit.ddp-api-deactivate"
1407			).on("click", function (e) {
1408				e.preventDefault(),
1409					confirm(
1410						"Caution: While a domain is not actively registered, some plugin functions will not be available. Live layouts and modules may be affected. Proceed with caution. Remove this domain?"
1411					) &&
1412						(t(
1413							".ddp-assistant.activated .ddp-api-dash .et_pb_on_value"
1414						)[0].click(),
1415						t(
1416							".ddp-assistant.activated .ddp-second-column input.button.ddp-api-deactivate"
1417						)[0].click());
1418			}),
1419			t(".ddp-assistant .ddp_divi_latest_feed").length > 0 &&
1420				t(".ddp-assistant .ddp_divi_latest_feed .ddp-first-column").masonry({
1421					itemSelector: ".ddp-latest-feed-item",
1422				}),
1423			t(
1424				'body.toplevel_page_et_divi_options > .notice, body[class*="divi_page_"] > .notice'
1425			).insertBefore("#wpbody-content #wrapper");
1426	});

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.