/
home
/
vianto5
/
hidalgoresidences.mx
/
wp-content
/
plugins
/
elementor-pro
/
assets
/
js
/
/home/vianto5/hidalgoresidences.mx/wp-content/plugins/elementor-pro/assets/js
mkdir
upload
Name
Size
Mode
Actions
notes/
-
0755
rm
packages/
-
0755
rm
8b11be0d97d58e135d30.bundle.js
62863
0644
edit
dl
rm
0726b2d81686a5392236.bundle.min.js
23229
0644
edit
dl
rm
0726b2d81686a5392236.bundle.min.js.LICENSE.txt
188
0644
edit
dl
rm
1644e3d37816d939acca.bundle.js
6367
0644
edit
dl
rm
admin.js
58840
0644
edit
dl
rm
admin.min.js
29210
0644
edit
dl
rm
ajax-pagination.2090b5f4906bcda1dcc2.bundle.min.js
2814
0644
edit
dl
rm
ajax-pagination.2390838f542f1a8d5ed4.bundle.js
5178
0644
edit
dl
rm
animated-headline.32baaa2ad2ea939224d5.bundle.js
12206
0644
edit
dl
rm
animated-headline.c009d6fa482515df23f8.bundle.min.js
7765
0644
edit
dl
rm
app.js
415943
0644
edit
dl
rm
app.min.js
136796
0644
edit
dl
rm
archive-posts.6e398ddd4a81a78bcea3.bundle.js
15895
0644
edit
dl
rm
archive-posts.16a93245d08246e5e540.bundle.min.js
8106
0644
edit
dl
rm
carousel.298f1fc9c115422aad0e.bundle.js
10166
0644
edit
dl
rm
carousel.3620fca501cb18163600.bundle.min.js
5014
0644
edit
dl
rm
code-highlight.d4867c919d0858f748df.bundle.js
1022
0644
edit
dl
rm
code-highlight.d86022c8668c4b072592.bundle.min.js
472
0644
edit
dl
rm
contact-buttons-var-10.0dc9f4c9e85e7c4baa3a.bundle.min.js
7865
0644
edit
dl
rm
contact-buttons-var-10.49a45dadc9c2facb4972.bundle.js
14530
0644
edit
dl
rm
contact-buttons.6f0dc663eb685c187fea.bundle.js
23539
0644
edit
dl
rm
contact-buttons.33ec3b540b7caec4d0f5.bundle.min.js
13843
0644
edit
dl
rm
countdown.0e9e688751d29d07a8d3.bundle.min.js
2688
0644
edit
dl
rm
countdown.6e87ca40d36793d92aea.bundle.js
4941
0644
edit
dl
rm
custom-code.js
180453
0644
edit
dl
rm
custom-code.min.js
42786
0644
edit
dl
rm
display-conditions.js
251972
0644
edit
dl
rm
display-conditions.min.js
79359
0644
edit
dl
rm
e3f4acef69f217322320.bundle.min.js
3319
0644
edit
dl
rm
e8eba20060a4b0fa29dc.bundle.js
12405
0644
edit
dl
rm
editor.js
395457
0644
edit
dl
rm
editor.min.js
157270
0644
edit
dl
rm
elements-handlers.js
116233
0644
edit
dl
rm
elements-handlers.min.js
44670
0644
edit
dl
rm
floating-bars-var-2.1a487dc027431fb485cd.bundle.min.js
14546
0644
edit
dl
rm
floating-bars-var-2.c6f25c32db86d04f5e8b.bundle.js
13112
0644
edit
dl
rm
floating-bars-var-3.6cef001471f04cdb931e.bundle.js
13008
0644
edit
dl
rm
floating-bars-var-3.acd1ad79ebb515e353c9.bundle.min.js
14031
0644
edit
dl
rm
form-submission-admin.js
357252
0644
edit
dl
rm
form-submission-admin.min.js
104695
0644
edit
dl
rm
form.5fb35271b8ba3fb1e7d6.bundle.min.js
19784
0644
edit
dl
rm
form.a7e78a23dbf43d6f2639.bundle.js
34777
0644
edit
dl
rm
frontend.js
54678
0644
edit
dl
rm
frontend.min.js
24288
0644
edit
dl
rm
gallery.1628df47530ab42dafba.bundle.min.js
5977
0644
edit
dl
rm
gallery.b7d55bc976e04f751975.bundle.js
9718
0644
edit
dl
rm
hotspot.d513dd152bf605a2ffbf.bundle.js
5011
0644
edit
dl
rm
hotspot.fa04300164c35a866a51.bundle.min.js
2821
0644
edit
dl
rm
jszip.vendor.a3c65615c1de5560962d.bundle.js
97933
0644
edit
dl
rm
jszip.vendor.eba4ace24dcc63eadac0.bundle.min.js
98185
0644
edit
dl
rm
jszip.vendor.eba4ace24dcc63eadac0.bundle.min.js.LICENSE.txt
383
0644
edit
dl
rm
load-more.8b46f464e573feab5dd7.bundle.min.js
5346
0644
edit
dl
rm
load-more.f5ecc1c66872d0bd2d17.bundle.js
9668
0644
edit
dl
rm
loop-carousel.5108cb72ebb124297adb.bundle.js
2838
0644
edit
dl
rm
loop-carousel.f8067ec0c24b628c786e.bundle.min.js
1357
0644
edit
dl
rm
loop-filter-editor.46a4c013b80a381a50c9.bundle.js
7191
0644
edit
dl
rm
loop-filter-editor.be7377d717e2499f4676.bundle.min.js
3355
0644
edit
dl
rm
loop.4a16d82b8b5e3e00f25e.bundle.min.js
9365
0644
edit
dl
rm
loop.da94e53412e56933f721.bundle.js
17694
0644
edit
dl
rm
lottie.a02a01f29c0733918ac7.bundle.js
24991
0644
edit
dl
rm
lottie.e74a53bfa4c0bd939250.bundle.min.js
14409
0644
edit
dl
rm
media-carousel.04412cb9b4479aa37408.bundle.js
13358
0644
edit
dl
rm
media-carousel.afbaabb756a7c18ddb09.bundle.min.js
7003
0644
edit
dl
rm
mega-menu-editor.a6e92bb2ec3d58f8438a.bundle.min.js
8623
0644
edit
dl
rm
mega-menu-editor.e043cd3d7fd180995eb9.bundle.js
19842
0644
edit
dl
rm
mega-menu-stretch-content.0d76e4a3b7bf65ff6f9b.bundle.js
1868
0644
edit
dl
rm
mega-menu-stretch-content.480e081cebe071d683e8.bundle.min.js
1122
0644
edit
dl
rm
mega-menu.1344912ff0c40681bb13.bundle.js
51975
0644
edit
dl
rm
mega-menu.b9f434b612d371d24d50.bundle.min.js
28544
0644
edit
dl
rm
menu-title-keyboard-handler.54fb596274a9cc06267d.bundle.min.js
7699
0644
edit
dl
rm
menu-title-keyboard-handler.c3673f59d6c5e47d2431.bundle.js
12310
0644
edit
dl
rm
nav-menu.0edc0c22e9f3101552ed.bundle.min.js
5301
0644
edit
dl
rm
nav-menu.f1ec837bbdc0a90accc6.bundle.js
9317
0644
edit
dl
rm
nested-carousel-editor.0df35e0e1a284d4bd18b.bundle.js
1880
0644
edit
dl
rm
nested-carousel-editor.6d7500036d0766bbe2fc.bundle.min.js
623
0644
edit
dl
rm
nested-carousel.4d07ea83632034f2e72e.bundle.js
6804
0644
edit
dl
rm
nested-carousel.776ab95ca4daa003622e.bundle.min.js
3378
0644
edit
dl
rm
off-canvas-editor.3bc6e394bd20d4fd64dc.bundle.min.js
2698
0644
edit
dl
rm
off-canvas-editor.d20b8e528d36b21a024c.bundle.js
6583
0644
edit
dl
rm
off-canvas.02e30e192bc782084e8a.bundle.js
11019
0644
edit
dl
rm
off-canvas.41d355285c19e4440547.bundle.min.js
6947
0644
edit
dl
rm
page-transitions.js
117803
0644
edit
dl
rm
page-transitions.min.js
32707
0644
edit
dl
rm
paypal-button.55ffb013a3fe565f55a5.bundle.js
1577
0644
edit
dl
rm
paypal-button.f4f64e46173f50701949.bundle.min.js
871
0644
edit
dl
rm
popup.996738ad83c089bcc0b9.bundle.js
1543
0644
edit
dl
rm
popup.f7b15b2ca565b152bf98.bundle.min.js
752
0644
edit
dl
rm
portfolio.4cd5da34009c30cb5d70.bundle.min.js
7271
0644
edit
dl
rm
portfolio.5727b56368be256d0893.bundle.js
12994
0644
edit
dl
rm
posts.aec59265318492b89cb5.bundle.min.js
3317
0644
edit
dl
rm
posts.e99f84b83c36d4568ffe.bundle.js
5941
0644
edit
dl
rm
preview.js
93367
0644
edit
dl
rm
preview.min.js
19512
0644
edit
dl
rm
product-add-to-cart.51a22e1fbd8f914ab3d5.bundle.min.js
3506
0644
edit
dl
rm
product-add-to-cart.d5883897e035f9c53c5e.bundle.js
7339
0644
edit
dl
rm
progress-tracker.8cccdda9737c272489fc.bundle.min.js
5237
0644
edit
dl
rm
progress-tracker.fd1d31a26340ed74e10a.bundle.js
9433
0644
edit
dl
rm
screenshot.js
12009
0644
edit
dl
rm
screenshot.min.js
5902
0644
edit
dl
rm
search-form.8941aba5c12cdb05fb7c.bundle.js
4503
0644
edit
dl
rm
search-form.b7065999d77832a1b764.bundle.min.js
2124
0644
edit
dl
rm
search.3db30c59360e14bb4448.bundle.min.js
13526
0644
edit
dl
rm
search.5c7852be6fc67209b3a8.bundle.js
21093
0644
edit
dl
rm
share-buttons.63d984f8c96d1e053bc0.bundle.min.js
1577
0644
edit
dl
rm
share-buttons.fda49c1691f4a352c7ef.bundle.js
4372
0644
edit
dl
rm
slides.bcd16bbde90338846bd7.bundle.js
7567
0644
edit
dl
rm
slides.c0029640cbdb48199471.bundle.min.js
3926
0644
edit
dl
rm
social.ac16c075939dcb93f70c.bundle.js
1991
0644
edit
dl
rm
social.f215e8a3efafbdbeb7ef.bundle.min.js
1022
0644
edit
dl
rm
stripe-button.49130d6eecb5ebc8afbd.bundle.min.js
2015
0644
edit
dl
rm
stripe-button.cb4b1cf19f1c46430f76.bundle.js
4283
0644
edit
dl
rm
table-of-contents.339d2b8b27914b2a038a.bundle.min.js
8362
0644
edit
dl
rm
table-of-contents.430b97825da33e6685ed.bundle.js
16125
0644
edit
dl
rm
taxonomy-filter.ce05524d53c2d4c5aa24.bundle.js
16157
0644
edit
dl
rm
taxonomy-filter.e839f2be32b7ea832b34.bundle.min.js
7671
0644
edit
dl
rm
video-playlist.9e1bbc4fcb37864c89d6.bundle.js
50181
0644
edit
dl
rm
video-playlist.af20fd9fd8778929829e.bundle.min.js
22679
0644
edit
dl
rm
webpack-pro.runtime.js
16759
0644
edit
dl
rm
webpack-pro.runtime.min.js
6248
0644
edit
dl
rm
woocommerce-cart.79b5dc500681930471c6.bundle.js
10767
0644
edit
dl
rm
woocommerce-cart.d0d01530f5be6736b5d2.bundle.min.js
5199
0644
edit
dl
rm
woocommerce-checkout-page.943b06275712cd4b96a5.bundle.min.js
6633
0644
edit
dl
rm
woocommerce-checkout-page.470384546c61ebcaa89d.bundle.js
12159
0644
edit
dl
rm
woocommerce-menu-cart.81f5bafc26b94cc86238.bundle.js
8919
0644
edit
dl
rm
woocommerce-menu-cart.eb61fe086245485310a4.bundle.min.js
4731
0644
edit
dl
rm
woocommerce-my-account.4e940a8b4a52d1c98c5c.bundle.min.js
6227
0644
edit
dl
rm
woocommerce-my-account.7a9d36b2c12b970c6616.bundle.js
11634
0644
edit
dl
rm
woocommerce-notices.bcee9b5e1c8f65ac7927.bundle.min.js
1937
0644
edit
dl
rm
woocommerce-notices.ee407e8319d2ee060119.bundle.js
3113
0644
edit
dl
rm
woocommerce-purchase-summary.3676ccd8c29ef0924b84.bundle.min.js
3500
0644
edit
dl
rm
woocommerce-purchase-summary.c8767542fa302a7f351f.bundle.js
7506
0644
edit
dl
rm
Edit:
/home/vianto5/hidalgoresidences.mx/wp-content/plugins/elementor-pro/assets/js/screenshot.js
(12009B)
/*! elementor-pro - v3.32.0 - 29-09-2025 */ /******/ (() => { // webpackBootstrap /******/ "use strict"; /*!**************************************************************!*\ !*** ../modules/screenshots/assets/js/preview/screenshot.js ***! \**************************************************************/ /* global ElementorScreenshotConfig */ class Screenshot extends elementorModules.ViewModule { getDefaultSettings() { return { empty_content_headline: 'Empty Content.', crop: { width: 1200, height: 1500 }, excluded_external_css_urls: ['https://kit-pro.fontawesome.com'], external_images_urls: ['https://i.ytimg.com' // Youtube images domain. ], timeout: 15000, // Wait until screenshot taken or fail in 15 secs. render_timeout: 5000, // Wait until all the element will be loaded or 5 sec and then take screenshot. timerLabel: null, timer_label: `${ElementorScreenshotConfig.post_id} - timer`, image_placeholder: 'data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=', isDebug: elementorCommonConfig.isElementorDebug, isDebugSvg: false, ...ElementorScreenshotConfig }; } getDefaultElements() { const $elementor = jQuery(ElementorScreenshotConfig.selector); const $sections = $elementor.find('.elementor-section-wrap > .elementor-section, .elementor > .elementor-section'); return { $elementor, $sections, $firstSection: $sections.first(), $notElementorElements: elementorCommon.elements.$body.find('> *:not(style, link)').not($elementor), $head: jQuery('head') }; } onInit() { super.onInit(); this.log('Screenshot init', 'time'); /** * Hold the timeout timer * * @type {number|null} */ this.timeoutTimer = setTimeout(this.screenshotFailed.bind(this), this.getSettings('timeout')); return this.captureScreenshot(); } /** * The main method for this class. */ captureScreenshot() { if (!this.elements.$elementor.length) { elementorCommon.helpers.consoleWarn('Screenshots: The content of this page is empty, the module will create a fake conent just for this screenshot.'); this.createFakeContent(); } this.removeUnnecessaryElements(); this.handleIFrames(); this.removeFirstSectionMargin(); this.handleLinks(); this.loadExternalCss(); this.loadExternalImages(); return Promise.resolve().then(this.createImage.bind(this)).then(this.createImageElement.bind(this)).then(this.cropCanvas.bind(this)).then(this.save.bind(this)).then(this.screenshotSucceed.bind(this)).catch(this.screenshotFailed.bind(this)); } /** * Fake content for documents that dont have any content. */ createFakeContent() { this.elements.$elementor = jQuery('<div>').css({ height: this.getSettings('crop.height'), width: this.getSettings('crop.width'), display: 'flex', alignItems: 'center', justifyContent: 'center' }); this.elements.$elementor.append(jQuery('<h1>').css({ fontSize: '85px' }).html(this.getSettings('empty_content_headline'))); document.body.prepend(this.elements.$elementor); } /** * CSS from another server cannot be loaded with the current dom to image library. * this method take all the links from another domain and proxy them. */ loadExternalCss() { const excludedUrls = [this.getSettings('home_url'), ...this.getSettings('excluded_external_css_urls')]; const notSelector = excludedUrls.map(url => `[href^="${url}"]`).join(', '); jQuery('link').not(notSelector).each((index, el) => { const $link = jQuery(el), $newLink = $link.clone(); $newLink.attr('href', this.getScreenshotProxyUrl($link.attr('href'))); this.elements.$head.append($newLink); $link.remove(); }); } /** * Make a proxy to images urls that has some problems with cross origin (like youtube). */ loadExternalImages() { const selector = this.getSettings('external_images_urls').map(url => `img[src^="${url}"]`).join(', '); jQuery(selector).each((index, el) => { const $img = jQuery(el); $img.attr('src', this.getScreenshotProxyUrl($img.attr('src'))); }); } /** * Html to images libraries can not snapshot IFrames * this method convert all the IFrames to some other elements. */ handleIFrames() { this.elements.$elementor.find('iframe').each((index, el) => { const $iframe = jQuery(el), $iframeMask = jQuery('<div />', { css: { background: 'gray', width: $iframe.width(), height: $iframe.height() } }); $iframe.before($iframeMask); $iframe.remove(); }); } /** * Remove all the sections that should not be in the screenshot. */ removeUnnecessaryElements() { let currentHeight = 0; this.elements.$sections.filter((index, el) => { let shouldBeRemoved = false; if (currentHeight >= this.getSettings('crop.height')) { shouldBeRemoved = true; } currentHeight += jQuery(el).outerHeight(); return shouldBeRemoved; }).each((index, el) => { el.remove(); }); // Some 3rd party plugins inject elements into the dom, so this method removes all // the elements that was injected, to make sure that it capture a screenshot only of the post itself. this.elements.$notElementorElements.remove(); } /** * Some urls make some problems to the svg parser. * this method convert all the urls to just '/'. */ handleLinks() { elementorCommon.elements.$body.find('a').attr('href', '/'); } /** * Remove unnecessary margin from the first element of the post (singles and footers). */ removeFirstSectionMargin() { this.elements.$firstSection.css({ marginTop: 0 }); } /** * Creates a png image. * * @return {Promise<unknown>} URI containing image data */ createImage() { const pageLoadedPromise = new Promise(resolve => { window.addEventListener('load', () => { resolve(); }); }); const timeOutPromise = new Promise(resolve => { setTimeout(() => { resolve(); }, this.getSettings('render_timeout')); }); return Promise.race([pageLoadedPromise, timeOutPromise]).then(() => { this.log('Start creating screenshot.'); if (this.getSettings('isDebugSvg')) { domtoimage.toSvg(document.body, { imagePlaceholder: this.getSettings('image_placeholder') }).then(svg => this.download(svg)); return Promise.reject('Debug SVG.'); } // TODO: Extract to util function. const isSafari = /^((?!chrome|android).)*safari/i.test(window.userAgent); // Safari browser has some problems with the images that dom-to-images // library creates, so in this specific case the screenshot uses html2canvas. // Note that dom-to-image creates more accurate screenshot in "not safari" browsers. if (isSafari) { this.log('Creating screenshot with "html2canvas"'); return html2canvas(document.body).then(canvas => { return canvas.toDataURL('image/png'); }); } this.log('Creating screenshot with "dom-to-image"'); return domtoimage.toPng(document.body, { imagePlaceholder: this.getSettings('image_placeholder') }); }); } /** * Download a uri, use for debugging the svg that created from dom to image libraries. * * @param {string} uri */ download(uri) { const $link = jQuery('<a/>', { href: uri, download: 'debugSvg.svg', html: 'Download SVG' }); elementorCommon.elements.$body.append($link); $link.trigger('click'); } /** * Creates fake image element to get the size of the image later on. * * @param {string} dataUrl * @return {Promise<HTMLImageElement>} Image Element */ createImageElement(dataUrl) { const image = new Image(); image.src = dataUrl; return new Promise(resolve => { image.onload = () => resolve(image); }); } /** * Crop the image to requested sizes. * * @param {HTMLImageElement} image * @return {Promise<unknown>} Canvas */ cropCanvas(image) { const width = this.getSettings('crop.width'); const height = this.getSettings('crop.height'); const cropCanvas = document.createElement('canvas'), cropContext = cropCanvas.getContext('2d'), ratio = width / image.width; cropCanvas.width = width; cropCanvas.height = height > image.height ? image.height : height; cropContext.drawImage(image, 0, 0, image.width, image.height, 0, 0, image.width * ratio, image.height * ratio); return Promise.resolve(cropCanvas); } /** * Send the image to the server. * * @param {HTMLCanvasElement} canvas * @return {Promise<unknown>} Screenshot URL */ save(canvas) { return new Promise((resolve, reject) => { elementorCommon.ajax.addRequest('screenshot_save', { data: { post_id: this.getSettings('post_id'), screenshot: canvas.toDataURL('image/png') }, success: url => { this.log(`Screenshot created: ${encodeURI(url)}`); resolve(url); }, error: () => { this.log('Failed to create screenshot.'); reject(); } }); }); } /** * Mark this post screenshot as failed. */ markAsFailed() { return new Promise((resolve, reject) => { elementorCommon.ajax.addRequest('screenshot_failed', { data: { post_id: this.getSettings('post_id') }, success: () => { this.log(`Marked as failed.`); resolve(); }, error: () => { this.log('Failed to mark this screenshot as failed.'); reject(); } }); }); } /** * @param {string} url * @return {string} Screenshot Proxy URL */ getScreenshotProxyUrl(url) { return `${this.getSettings('home_url')}?screenshot_proxy&nonce=${this.getSettings('nonce')}&href=${url}`; } /** * Notify that the screenshot has been succeed. * * @param {string} imageUrl */ screenshotSucceed(imageUrl) { this.screenshotDone(true, imageUrl); } /** * Notify that the screenshot has been failed. * * @param {Error} e */ screenshotFailed(e) { this.log(e, null); this.markAsFailed().then(() => this.screenshotDone(false)); } /** * Final method of the screenshot. * * @param {boolean} success * @param {string} imageUrl */ screenshotDone(success) { let imageUrl = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null; clearTimeout(this.timeoutTimer); this.timeoutTimer = null; // Send the message to the parent window and not to the top. // e.g: The `Theme builder` is loaded into an iFrame so the message of the screenshot // should be sent to the `Theme builder` window and not to the top window. window.parent.postMessage({ name: 'capture-screenshot-done', success, id: this.getSettings('post_id'), imageUrl }, '*'); this.log(`Screenshot ${success ? 'Succeed' : 'Failed'}.`, 'timeEnd'); } /** * Log messages for debugging. * * @param {any} message * @param {string?} timerMethod */ log(message) { let timerMethod = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'timeLog'; if (!this.getSettings('isDebug')) { return; } // eslint-disable-next-line no-console console.log('string' === typeof message ? `${this.getSettings('post_id')} - ${message}` : message); if (timerMethod) { // eslint-disable-next-line no-console console[timerMethod](this.getSettings('timer_label')); } } } jQuery(() => { new Screenshot(); }); /******/ })() ; //# sourceMappingURL=screenshot.js.map
Save
cmd:
run