403Webshell
Server IP : 10.19.1.101  /  Your IP : 216.73.216.158
Web Server : Apache
System : Linux web1f13.kinghost.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User : schererimoveisrs ( 170628)
PHP Version : 7.4.33
Disable Function : apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/schererimoveisrs/www/wp-content/plugins/elementor/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/schererimoveisrs/www/wp-content/plugins/elementor/assets/js/design-system-sync.js
/******/ (() => { // webpackBootstrap
/******/ 	"use strict";
/*!*****************************************************************************!*\
  !*** ../modules/design-system-sync/assets/js/design-system-sync-handler.js ***!
  \*****************************************************************************/


(function () {
  'use strict';

  var SYNC_ENDPOINT = wpApiSettings.root + 'elementor/v1/design-system-sync/stylesheet';
  var SYNC_STYLESHEET_ID = 'elementor-design-system-sync-css';
  var DEBOUNCE_MS = 500;
  var syncTimeout;
  function syncDesignSystem() {
    fetch(SYNC_ENDPOINT, {
      method: 'POST',
      headers: {
        'X-WP-Nonce': wpApiSettings.nonce
      }
    }).then(function (response) {
      if (!response.ok) {
        return;
      }
      if (204 === response.status) {
        return;
      }
      return response.json();
    }).then(function (data) {
      if (!data) {
        return;
      }
      refreshGlobals();
      reloadCanvasDesignSyncStyles(data);
    });
  }
  function refreshGlobals() {
    var globals = $e.components.get('globals');
    globals === null || globals === void 0 || globals.refreshGlobalData();
    globals === null || globals === void 0 || globals.populateGlobalData();
  }
  function reloadCanvasDesignSyncStyles(_ref) {
    var url = _ref.url;
    var previewFrame = document.getElementById('elementor-preview-iframe');
    if (!(previewFrame !== null && previewFrame !== void 0 && previewFrame.contentDocument)) {
      return;
    }
    var link = previewFrame.contentDocument.getElementById(SYNC_STYLESHEET_ID);
    if (!link) {
      link = previewFrame.contentDocument.createElement('link');
      link.id = SYNC_STYLESHEET_ID;
      link.rel = 'stylesheet';
      previewFrame.contentDocument.head.appendChild(link);
    }
    link.href = url;
  }
  function onClassesUpdated(event) {
    var context = event.detail.context;
    if (context !== 'frontend') {
      return;
    }
    clearTimeout(syncTimeout);
    syncTimeout = setTimeout(syncDesignSystem, DEBOUNCE_MS);
  }
  window.addEventListener('classes:updated', onClassesUpdated);
  window.addEventListener('variables:updated', function () {
    clearTimeout(syncTimeout);
    syncTimeout = setTimeout(syncDesignSystem, DEBOUNCE_MS);
  });
})();
/******/ })()
;
//# sourceMappingURL=design-system-sync.js.map

Youez - 2016 - github.com/yon3zu
LinuXploit