// source --> https://delikomat.sk/wp-content/plugins/advanced-page-visit-counter/public/js/advanced-page-visit-counter-public.js?ver=8.0.6 
(function ($) {
    'use strict';

    /**
     * All of the code for your public-facing JavaScript source
     * should reside in this file.
     *
     * Note: It has been assumed you will write jQuery code here, so the
     * $ function reference has been prepared for usage within the scope
     * of this function.
     *
     * This enables you to define handlers, for when the DOM is ready:
     *
     * $(function() {
     *
     * });
     *
     * When the window is loaded:
     *
     * $( window ).load(function() {
     *
     * });
     *
     * ...and/or other possibilities.
     *
     * Ideally, it is not considered best practise to attach more than a
     * single DOM-ready or window-load handler for a particular page.
     * Although scripts in the WordPress core, Plugins and Themes may be
     * practising this, we should strive to set a better example in our own work.
     */
    //

    jQuery.ajax({
        type: 'GET',
        url: apvc_rest.ap_rest_url + 'apvc/v1/update_visit',
        beforeSend: function (xhr) {
            xhr.setRequestHeader('X-WP-Nounce', apvc_rest.wp_rest)
        },
        data: {
            ua: navigator.userAgent,
            url: window.location.href,
            referred: document.referrer,
            cpt: apvc_rest.ap_cpt
        },
        success: function (response) {
        }
    });

})(jQuery);
// source --> https://delikomat.sk/wp-content/plugins/download-manager/assets/js/wpdm.min.js?ver=f49fdfaf9da19e7867d60d3579334f93 
(function($){$.fn.modal=function(option){var modal=this;var modalId=modal.attr("id");var $backdrop=null;if(option==="hide"){modal.removeClass("in show");$backdrop=$('.wpdm-modal-backdrop[data-modal="'+modalId+'"]');$backdrop.removeClass("in");setTimeout(function(){modal.css("display","none");$backdrop.remove();$("body").removeClass("modal-open").css("overflow","");modal.trigger("hidden.bs.modal")},250);$(document).off("keydown.wpdmModal");return modal}if(option==="show"||option===undefined){$("body").addClass("modal-open").css("overflow","hidden");$backdrop=$('<div class="modal-backdrop fade wpdm-modal-backdrop" data-modal="'+modalId+'"></div>');$("body").append($backdrop);modal.css({display:"block","z-index":1050});modal[0].offsetHeight;setTimeout(function(){$backdrop.addClass("in");modal.addClass("in show");modal.trigger("shown.bs.modal")},10);modal.find('[data-dismiss="modal"]').off("click.wpdmModal").on("click.wpdmModal",function(e){e.preventDefault();modal.modal("hide")});$backdrop.on("click",function(){if(!modal.data("backdrop")||modal.data("backdrop")!=="static"){modal.modal("hide")}});$(document).off("keydown.wpdmModal").on("keydown.wpdmModal",function(e){if(e.key==="Escape"&&modal.hasClass("in")){if(!modal.data("keyboard")||modal.data("keyboard")!==false){modal.modal("hide")}}})}if(option==="toggle"){if(modal.hasClass("in")){modal.modal("hide")}else{modal.modal("show")}}return modal};$.fn.tooltip=function(options){var settings=$.extend({background:"#333",color:"#fff",padding:"5px 10px",borderRadius:"4px",fontSize:"12px"},options);var $tooltip=$("<div class='simple-tooltip'></div>").css({position:"absolute",maxWidth:"200px",display:"none",zIndex:9999,background:settings.background,color:settings.color,padding:settings.padding,borderRadius:settings.borderRadius,fontSize:settings.fontSize,pointerEvents:"none"}).appendTo("body");return this.each(function(){var $elem=$(this);var title=$elem.attr("title");$elem.on("mouseenter",function(e){if(!title)return;$elem.data("tip-title",title).removeAttr("title");$tooltip.text(title).fadeIn(150);$tooltip.css({top:e.pageY+10,left:e.pageX+10})}).on("mousemove",function(e){$tooltip.css({top:e.pageY+10,left:e.pageX+10})}).on("mouseleave",function(){$tooltip.hide();$elem.attr("title",$elem.data("tip-title"))})})}})(jQuery);jQuery(function($){var $body=$("body");$body.on("click",'.w3eden [data-toggle="collapse"]',function(e){e.preventDefault();var target=$(this).attr("href")||$(this).data("target");$(target).slideToggle(200)});$body.on("click",'.w3eden [data-toggle="modal"], .w3eden[data-toggle="modal"]',function(e){e.preventDefault();var target=$(this).data("target");$(target).modal("show")});$body.on("click",'.w3eden [data-toggle="tab"]',function(e){e.preventDefault();var $this=$(this);var $container=$this.closest(".nav-tabs, .nav-pills");var target=$this.attr("href");$container.find('[data-toggle="tab"]').each(function(){var $tab=$(this);$tab.removeClass("active");$tab.parent("li").removeClass("active");var pane=$tab.attr("href");if(pane){$(pane).removeClass("active in")}});$this.addClass("active");$this.parent("li").addClass("active");if(target){$(target).addClass("active in")}$this.trigger("shown.bs.tab")});$body.on("click",'.w3eden [data-toggle="dropdown"]',function(e){e.preventDefault();e.stopPropagation();var $dropdown=$(this).closest(".dropdown, .btn-group");var isOpen=$dropdown.hasClass("open");$(".w3eden .dropdown, .w3eden .btn-group").removeClass("open");if(!isOpen){$dropdown.addClass("open")}});$(document).on("click",function(e){if(!$(e.target).closest(".dropdown, .btn-group").length){$(".w3eden .dropdown, .w3eden .btn-group").removeClass("open")}})});