!function(a){"use strict";var b={initialize:function(){a("#text-search, #filter-form").on("submit",function(){a("#text-search [name='sp[f]']").val(a("#filter-form [name='sp[f]']").val()),a("#text-search [name='sp[t]']").val(a("#filter-form [name='sp[t]']").val()),a("#text-search [name='category_name']").val(a("#filter-form [name='category_name']").val()),a("#text-search [name='post_type']").val(a("#filter-form [name='post_type']").val())}),a("#filter-apply").on("click",function(){a("#text-search").trigger("submit")}),a("#filter-apply").on("keydown",function(b){"Enter"===b.key&&a("#text-search").trigger("submit")}),a("#icon-search").on("click",function(){a("#text-search").trigger("submit")}),a("#icon-search").on("keydown",function(b){"Enter"===b.key&&a("#text-search").trigger("submit")}),a("#dates").change(function(){"date-all"!==a(this).attr("id")?(a("#filter-form [name='sp[f]']").val(a(this).val()),a("#filter-form [name='sp[t]']").val(a.datepicker.formatDate("yy-mm-dd",new Date))):(a("#filter-form [name='sp[f]']").val(""),a("#filter-form [name='sp[t]']").val(""))}),a("#categories").change(function(){"categories-all"!==a(this).attr("id")&&a("#filter-form [name='category_name']").val(a(this).val())});var b=a("#date-end"),c=a("#date-start");c.datepicker({dateFormat:"yy-mm-dd",defaultDate:0,maxDate:b.val(),onClose:function(a){b.datepicker("option","minDate",a)}}),b.datepicker({dateFormat:"yy-mm-dd",defaultDate:0,minDate:c.val(),onClose:function(a){c.datepicker("option","maxDate",a)}}),a("#filter-form").on("submit",function(){a("#filter-form [name='s']").val(a("#text-search [name='s']").val())}),a("[name='date']").on("click",function(){"date-all"!==a(this).attr("id")?(a("#filter-form [name='sp[f]']").val(a(this).val()),a("#filter-form [name='sp[t]']").val(a.datepicker.formatDate("yy-mm-dd",new Date))):(a("#filter-form [name='sp[f]']").val(""),a("#filter-form [name='sp[t]']").val("")),a("#filter-form [name='s']").val(a("#text-search [name='s']").val()),a("#filter-form").trigger("submit")})}};a(function(){b.initialize()})}(jQuery); //# sourceMappingURL=site-search.min.js.map; "use strict";!function(t){var i=new Image,o=t(".custom-logo").find("img"),t=o.attr("src");i.onload=function(){o.prop("width",i.width),o.prop("height",i.height)},i.src=t}(jQuery);; !function(){"use strict";({initialize:function(){let e=this;e.initializeLoadAssets(),document.addEventListener("DOMContentLoaded",(function(){e.REVmutationObserver()}))},debug:function(){let e=!1;return"undefined"!=typeof DFM_AD_MODS_DEBUG&&(e=!0),e},initializeLoadAssets:function(){this.debug()&&console.log("DEBUG: initializeLoadAssets success");let e=localStorage.getItem("hhsl");return"undefined"!=typeof MNGAuthentication&&"function"==typeof MNGAuthentication.isUserAdFree&&MNGAuthentication.isUserAdFree()?(this.debug()&&console.log("DEBUG: MNGAuthentication is initialized and indicated that the user is ad free; returning false for ad-free experience"),this.listenForREV=!0,this.addOrRemoveElement("remove"),!1):void 0!==e&&"access"===e?(this.debug()&&console.log('DEBUG: hhsl localstorage is not undefined and does include "access"; returning false for ad-free experience'),this.listenForREV=!0,this.addOrRemoveElement("remove"),!1):(this.debug()&&console.log("DEBUG: NO access detected, load ad scripts function"),this.listenForREV=!1,this.addOrRemoveElement("add"),void this.loadAdsScripts())},loadAdsScripts:function(){this.debug()&&console.log("DEBUG: loadAdsScripts success");let e=document.createElement("script");e.defer=!0,e.type="text/javascript",e.src="https://s.ntv.io/serve/load.js",document.getElementsByTagName("body")[0].appendChild(e),this.debug()&&console.log("DEBUG: nativo script written"),document.getElementById("mobile-adhesion").classList.remove("closed"),this.debug()&&console.log("DEBUG: mobile adhesion banner showing")},addOrRemoveElement:function(e){let t=document.querySelectorAll(".dfp-ad");const i=document.querySelectorAll(".revcon-footer");"remove"===e?(t.forEach((function(e){return e.remove()})),i.forEach((function(e){return e.remove()}))):(t.forEach((function(e){return e.style.visibility="visible"})),i.forEach((function(e){return e.style.visibility="visible"})))},REVmutationObserver:function(){new MutationObserver(function(e){e.forEach(function(e){this.listenForREV&&document.querySelectorAll(".revcon-footer").length>0&&this.addOrRemoveElement("remove")}.bind(this))}.bind(this)).observe(document.body,{childList:!0,subtree:!0})}}).initialize()}(); ; "use strict";({initialize:function(){this.initializeS2nVideo()},initializeS2nVideo:function(){var i=localStorage.getItem("hhsl"),e=document.querySelector("stn-player");if(null!=e)if(void 0!==i&&"access"===i||"undefined"!=typeof MNGAuthentication&&"function"==typeof MNGAuthentication.isUserAdFree&&MNGAuthentication.isUserAdFree())try{e.remove()}catch(i){}else try{e.style.display="block"}catch(i){}}}).initialize(); ; "use strict";({initialize:function(){this.initializeSpotIm()},initializeSpotIm:function(){var e=localStorage.getItem("hhsl"),i=document.querySelector("section.AdRunner__container--2k4hS");if(null!=i)if(void 0!==e&&"access"===e||"undefined"!=typeof MNGAuthentication&&"function"==typeof MNGAuthentication.isUserAdFree&&MNGAuthentication.isUserAdFree())try{i.remove()}catch(e){}else try{i.style.display="block"}catch(e){}}}).initialize();;