%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Nisof Was Here
NisofShell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.162
Web Server : Apache
System : Linux webm002.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : wellingtpa ( 97533)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/w/e/l/wellingtpa/www/wp-content/plugins/kata-plus/assets/src/js/backend/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /home/w/e/l/wellingtpa/www/wp-content/plugins/kata-plus/assets/src/js/backend/elementor-editor.js
/**
 * Theme Scripts.
 *
 * @author  ClimaxThemes
 * @package	Kata Plus Lite
 * @since	1.0.0
 */
'use strict';

var Kata_Plus_Lite_Scripts = (function ($) {
	/**
	 * Global variables.
	 *
	 * @since	1.0.0
	 */
	var $window = $(window);
	var content = '';
	var layout = false;
	var runOnceTime = false;

	return {
		/**
		 * Init.
		 *
		 * @author ClimaxThemes
		 * @since	1.0.0
		 */
		init: function () {
			this.PageTitle();
			this.DarkORLight();
			this.applyDataDeviceMode();
			this.ElementorPerfectScrollBar();
			this.ProWidgets();
			this.ClearInstagramCache();
			this.pageOptions();
		},

		/**
		 * Editor Page Title Display
		 *
		 * @author ClimaxThemes
		 * @since 1.0.0
		 */
		PageTitle: function () {
			var $elementor_panel_footer = $(
					'#tmpl-elementor-panel-footer-content'
				),
				title = elementor.settings.page.model.attributes.post_title;
			if (title.indexOf('Kata ') != '-1') {
				title = title.replace('Kata ', '');
			}
			var page_title =
				'<div class="kata-page-name"> Editing: <span>' +
				title +
				'</span> </div>';
			$elementor_panel_footer.text(
				$elementor_panel_footer.text() + page_title
			);
		},

		/**
		 * Dark and light mode detector
		 *
		 * @author ClimaxThemes
		 * @since 1.0.0
		 */
		DarkORLight: function () {
			$(document).on(
				'change',
				'.elementor-control-ui_theme select[data-setting="ui_theme"]',
				function () {
					if (
						$(this).find('option:selected').attr('value') == 'dark'
					) {
						if ($('#kata-elementor-admin-light-css').length > 0) {
							console.log($('#kata-elementor-admin-light-css'));
							var url = $('#kata-elementor-admin-light-css').attr(
								'href'
							);
							url = url.replace(
								'elementor-editor.css',
								'elementor-editor-dark.css'
							);
							$('#kata-elementor-admin-light-css').after(
								'<link rel="stylesheet" id="kata-elementor-admin-dark-css" href="' +
									url +
									'" media="all">'
							);
							setTimeout(function () {
								$('#kata-elementor-admin-light-css').remove();
							}, 100);
						}
					} else if (
						$(this).find('option:selected').attr('value') == 'light'
					) {
						if ($('#kata-elementor-admin-dark-css').length > 0) {
							console.log($('#kata-elementor-admin-dark-css'));
							var url = $('#kata-elementor-admin-dark-css').attr(
								'href'
							);
							url = url.replace(
								'elementor-editor-dark.css',
								'elementor-editor.css'
							);
							$('#kata-elementor-admin-dark-css').after(
								'<link rel="stylesheet" id="kata-elementor-admin-light-css" href="' +
									url +
									'" media="all">'
							);
							setTimeout(function () {
								$('#kata-elementor-admin-dark-css').remove();
							}, 100);
						}
					} else {
						if (
							$(this).find('option:selected').attr('value') ==
								'auto' &&
							window.matchMedia('(prefers-color-scheme: dark)')
								.matches
						) {
							if (
								$('#kata-elementor-admin-light-css').length > 0
							) {
								var url = $(
									'#kata-elementor-admin-light-css'
								).attr('href');
								url = url.replace(
									'elementor-editor.css',
									'elementor-editor-dark.css'
								);
								$('#kata-elementor-admin-light-css').after(
									'<link rel="stylesheet" id="kata-elementor-admin-dark-css" href="' +
										url +
										'" media="all">'
								);
								setTimeout(function () {
									$(
										'#kata-elementor-admin-light-css'
									).remove();
								}, 100);
							}
						} else {
							if (
								$('#kata-elementor-admin-dark-css').length > 0
							) {
								console.log(
									$('#kata-elementor-admin-dark-css')
								);
								var url = $(
									'#kata-elementor-admin-dark-css'
								).attr('href');
								url = url.replace(
									'elementor-editor-dark.css',
									'elementor-editor.css'
								);
								$('#kata-elementor-admin-dark-css').after(
									'<link rel="stylesheet" id="kata-elementor-admin-light-css" href="' +
										url +
										'" media="all">'
								);
								setTimeout(function () {
									$(
										'#kata-elementor-admin-dark-css'
									).remove();
								}, 100);
							}
						}
					}
				}
			);
		},

		applyDataDeviceMode: function () {
			$window.on('load', function () {
				jQuery(document).on(
					'click',
					'.e-responsive-bar-switcher__option',
					function () {
						var $this = jQuery(this),
							$input = $this.children('[type="radio"]');

						$this
							.attr('aria-selected', 'true')
							.siblings()
							.attr('aria-selected', 'false');
						setTimeout(function () {
							jQuery('#elementor-preview-iframe')
								.contents()
								.find('body')
								.attr(
									'data-elementor-device-mode',
									$input.attr('value')
								);
						}, 300);
					}
				);
			});
		},

		ElementorPerfectScrollBar: function () {
			$window.on('load', function () {
				var ps = new PerfectScrollbar(
					'#elementor-panel-content-wrapper'
				);
				ps.destroy();
				$('#elementor-panel-content-wrapper').niceScroll({
					cursorcolor: '#ccc', // change cursor color in hex
					cursoropacitymin: 0, // change opacity when cursor is inactive (scrollabar "hidden" state), range from 1 to 0
					cursoropacitymax: 1, // change opacity when cursor is active (scrollabar "visible" state), range from 1 to 0
					cursorwidth: '6px', // cursor width in pixel (you can also write "5px")
					cursorborder: 'none', // css definition for cursor border
					cursorborderradius: '5px', // border radius in pixel for cursor
					scrollspeed: 60, // scrolling speed
					mousescrollstep: 40, // scrolling speed with mouse wheel (pixel)
					hwacceleration: true, // use hardware accelerated scroll when supported
					gesturezoom: true, // (only when boxzoom=true and with touch devices) zoom activated when pinch out/in on box
					grabcursorenabled: true, // (only when touchbehavior=true) display "grab" icon
					autohidemode: true, // how hide the scrollbar works, possible values:
					spacebarenabled: true, // enable page down scrolling when space bar has pressed
					railpadding: {
						top: 0,
						right: 1,
						left: 0,
						bottom: 0,
					}, // set padding for rail bar
					disableoutline: true, // for chrome browser, disable outline (orange highlight) when selecting a div with nicescroll
					horizrailenabled: false, // nicescroll can manage horizontal scroll
					railalign: 'right', // alignment of vertical rail
					railvalign: 'bottom', // alignment of horizontal rail
					enablemousewheel: true, // nicescroll can manage mouse wheel events
					enablekeyboard: true, // nicescroll can manage keyboard events
					smoothscroll: true, // scroll with ease movement
					cursordragspeed: 0.3, // speed of selection when dragged with cursor
				});
			});
		},

		ProWidgets: function () {
			if (KataPlusPro) {
				return;
			}
			elementor.widgetsCache = JSON.stringify(elementor.widgetsCache);
			var ProWidgets = JSON.stringify(KataProWidgets);
			ProWidgets = ProWidgets.replace('{"kata-plus-', '{"kata-plus-');
			ProWidgets = ProWidgets.replace('}}', '}');
			elementor.widgetsCache = elementor.widgetsCache.replace(
				',"kata-plus-text"',
				',' + ProWidgets + ',"kata-plus-text"'
			);
			elementor.widgetsCache = elementor.widgetsCache.replaceAll(
				'},{"kata-plus',
				'},"kata-plus'
			);
			elementor.widgetsCache = JSON.parse(elementor.widgetsCache);

			$(document).on(
				'click',
				'.elementor-element:not([draggable="true"])',
				function (e) {
					var $this = $(this),
						$msg = $('#elementor-element--promotion__dialog');
					if (e.currentTarget.className == 'elementor-element') {
						console.log(e.currentTarget.offsetParent.id);
						if (
							e.currentTarget.offsetParent.id ==
								'elementor-panel-category-kata_plus_elementor' ||
							e.currentTarget.offsetParent.id ==
								'elementor-panel-category-kata_plus_elementor_blog_and_post' ||
							e.currentTarget.offsetParent.id ==
								'elementor-panel-category-kata_plus_elementor_header'
						) {
							$msg.find('.dialog-buttons-wrapper').html(
								'<a href="https://my.climaxthemes.com/buy/" target="_blank" class="kata-plus-pro-button dialog-button dialog-action dialog-buttons-action elementor-button elementor-button-success">Kata Pro</a>'
							);
						} else {
							$msg.find('.dialog-buttons-wrapper').html(
								'<button class="dialog-button dialog-action dialog-buttons-action elementor-button elementor-button-success">See it in Action</button>'
							);
						}
					}
				}
			);
		},

		/**
		 * Fetch Instagram Images.
		 *
		 * @author ClimaxThemes
		 * @since	1.0.0
		 */
		ClearInstagramCache: function () {
			elementor.channels.editor.on(
				'clearinstagramcache',
				function (view) {
					var changed = view.container.settings,
						spiner =
							'<span class="elementor-state-icon" style="display: inline-block;"> <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i> </span>';
					$('[data-event="clearinstagramcache"]').prepend(spiner);
					if (changed.attributes.update_images == 'updated') {
						$('input[data-setting="update_images"]')
							.val('update')
							.trigger('input');
					}
					if (changed.attributes.update_images == 'update') {
						$e.internal('document/save/set-is-modified', {
							status: true,
							force: true,
						});
						$e.internal('document/save/save', {
							force: true,
							onSuccess: function () {
								$('input[data-setting="update_images"]')
									.val('updated')
									.trigger('input');
								$e.run('document/save/publish', {
									force: true,
								});
								elementor.reloadPreview();
							},
						});
					}
				}
			);
		},

		/**
		 * Page Options.
		 *
		 * @author ClimaxThemes
		 * @since	1.0.0
		 */
		pageOptions: function () {
			elementor.channels.editor.on('applychanges', function (view) {
				var changed = view.container.settings,
					spiner =
						'<span class="elementor-state-icon" style="display: inline-block;"> <i class="eicon-loading eicon-animation-spin" aria-hidden="true"></i> </span>';
				$('[data-event="applychanges"]').prepend(spiner);
				$e.internal('document/save/set-is-modified', {
					status: true,
					force: true,
				});
				$e.internal('document/save/save', {
					force: true,
					onSuccess: function () {
						$.ajax({
							action: 'save_builder',
							complete: function () {
								$e.run('document/save/publish');
								elementor.reloadPreview();
								elementor.once('preview:loaded', function () {
									console.log(1);
									$e.route('panel/page-settings/settings');
									console.log(2);
								});
							},
						});
					},
				});
			});
		},
	};
})(jQuery);

// Frontend
jQuery(document).ready(function () {
	Kata_Plus_Lite_Scripts.init();
});

Anon7 - 2022
AnonSec Team