????JFIF??x?x????'
| Server IP : 104.21.30.238  /  Your IP : 216.73.216.83 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /././home/tempvsty/././peekmysite.com/wp-content/plugins/duplicator/assets/js/ | 
| Upload File : | 
/*! dup tooltip */
(function ($) {
    DuplicatorTooltip = {
        initialized: false,
        messages: {
            'copy': window.hasOwnProperty('l10nDupTooltip') ? l10nDupTooltip.copy : 'Copy to clipboard',
            'copied': window.hasOwnProperty('l10nDupTooltip') ? l10nDupTooltip.copied : 'copied to clipboard',
            'copyUnable': window.hasOwnProperty('l10nDupTooltip') ? l10nDupTooltip.copyUnable : 'Unable to copy'
        },
        messages: Object.assign(
            {}, 
            {
                'copy': 'Copy to Clipboard',
                'copied': 'Copied to Clipboard',
                'copyUnable': 'Unable to Copy'
            }, 
            (typeof l10nDupTooltip === 'object' ? l10nDupTooltip : {})
        ),
        load: function () {
            if (this.initialized) {
                return;
            }
            this.loadSelector('[data-tooltip]');
            this.loadCopySelector('[data-dup-copy-value]');
            this.initialized = true;
        },
        loadSelector: function (selector) {
            $(selector).each(function () {
                if (this._tippy) {
                    // already init
                    return;
                }
                tippy(this, {
                    content: function (ref) {
                        var header = ref.dataset.tooltipTitle;
                        var body = ref.dataset.tooltip;
                        var res = header !== undefined ? '<h3>' + header + '</h3>' : '';
                        res += '<div class="dup-tippy-content">' + body + '</div>';
                        return res;
                    },
                    allowHTML: true,
                    interactive: true,
                    placement: this.dataset.tooltipPlacement ? this.dataset.tooltipPlacement : 'bottom-start',
                    theme: 'duplicator',
                    zIndex: 900000,
                    appendTo: document.body
                });
                $(this).data('dup-tooltip-loaded', true);
            });
        },
        loadCopySelector: function (selector) {
            $(selector).each(function () {
                if (this._tippy) {
                    // already init
                    return;
                }
                var element = $(this);
                if (element.hasClass('disabled')) {
                    return;
                }
                var tippyElement = tippy(this, {
                    allowHTML: true,
                    placement: this.dataset.tooltipPlacement ? this.dataset.tooltipPlacement : 'bottom-start',
                    theme: 'duplicator',
                    zIndex: 900000,
                    hideOnClick: false,
                    trigger: 'manual'
                });
                var copyTitle = element.is('[data-dup-copy-title]') ? element.data('dup-copy-title') : DuplicatorTooltip.messages.copy;
                tippyElement.setContent('<div class="dup-tippy-content">' + copyTitle + '</div>');
                //Have to set manually otherwise might hide on click.
                element.mouseover(function () {
                    tippyElement.show();
                }).mouseout(function () {
                    tippyElement.hide();
                });
                element.click(function () {
                    var valueToCopy = element.data('dup-copy-value');
                    var copiedTitle = element.is('[data-dup-copied-title]') ? element.data('dup-copied-title') : valueToCopy + ' ' + DuplicatorTooltip.messages.copied;
                    var message = DuplicatorTooltip.messages.copyUnable;
                    var tmpArea = jQuery("<textarea></textarea>").css({
                        position: 'absolute',
                        top: '-10000px'
                    }).text(valueToCopy).appendTo("body");
                    tmpArea.select();
                    try {
                        message = document.execCommand('copy') ? copiedTitle : DuplicatorTooltip.messages.copyUnable;
                    } catch (err) {
                        console.log(err);
                    }
                    tippyElement.setContent('<div class="dup-tippy-content">' + message + '</div>');
                    tippyElement.setProps({ theme: 'duplicator-filled' });
                    setTimeout(function () {
                        tippyElement.setContent('<div class="dup-tippy-content">' + copyTitle + '</div>');
                        tippyElement.setProps({ theme: 'duplicator' });
                    }, 2000);
                });
            });
        },
        updateElementContent: function (selector, content) {
            if ($(selector).get(0)) {
                $(selector).get(0)._tippy.setContent('<div class="dup-tippy-content">' + content + '</div>');
            }
        },
        unload: function () {
            var tooltips = document.querySelectorAll('[data-tooltip], [data-dup-copy-value]');
            tooltips.forEach(function (element) {
                if (element._tippy) {
                    element._tippy.destroy();
                    element._tippy = null;
                }
            });
            this.initialized = false;
        },
        reload: function () {
            this.unload();
            this.load();
        }
    }
})(jQuery);