jQuery(document).ready(function(i){function n(){jQuery(".bdt-biggopti-countdown").each(function(){var i=jQuery(this),n=i.find(".countdown-timer"),e=i.data("end-date"),t=i.data("timezone");function a(){var a=new Date(e+" "+t).getTime()-(new Date).getTime();if(a<0)i.hide();else{var s=Math.floor(a/864e5),o=Math.floor(a%864e5/36e5),r=Math.floor(a%36e5/6e4),d=Math.floor(a%6e4/1e3),l="";(s=s<10?"0"+s:s)>0&&(l+='<div class="countdown-item"><span class="number">'+s+'</span><span class="label">days</span></div><span class="separator"></span>'),l+='<div class="countdown-item"><span class="number">'+(o=o<10?"0"+o:o)+'</span><span class="label">hrs</span></div><span class="separator"></span>',l+='<div class="countdown-item"><span class="number">'+(r=r<10?"0"+r:r)+'</span><span class="label">min</span></div><span class="separator"></span>',l+='<div class="countdown-item"><span class="number">'+(d=d<10?"0"+d:d)+'</span><span class="label">sec</span></div>',n.html(l)}}e&&n.length&&(a(),setInterval(a,1e3))})}i(document).on("click",".prime-slider-biggopti.is-dismissible .bdt-biggopti-dismiss",function(){$this=i(this).parents(".prime-slider-biggopti");var n=$this.attr("id")||"",e=$this.attr("dismissible-time")||"",t=$this.attr("dismissible-meta")||"";i.ajax({url:window.PrimeSliderBiggoptiConfig&&PrimeSliderBiggoptiConfig.ajaxurl?PrimeSliderBiggoptiConfig.ajaxurl:"undefined"!=typeof ajaxurl?ajaxurl:"",type:"POST",data:{action:"prime_slider_biggopties",id:n,meta:t,time:e,_wpnonce:PrimeSliderBiggoptiConfig.nonce}})}),n(),jQuery(document).on("DOMNodeInserted",".bdt-biggopti-countdown",function(){n()}),i(window).on("load",function(){setTimeout(function(){try{i.ajax({url:window.PrimeSliderBiggoptiConfig&&PrimeSliderBiggoptiConfig.ajaxurl?PrimeSliderBiggoptiConfig.ajaxurl:"undefined"!=typeof ajaxurl?ajaxurl:"",type:"POST",dataType:"json",data:{action:"ps_fetch_api_biggopties",_wpnonce:PrimeSliderBiggoptiConfig.nonce,current_url:window.location.href}}).done(function(e){if(e&&e.success&&e.data&&e.data.html){var t=i(e.data.html),a=i("#wpbody-content .wrap").first();a.length||(a=i(".wrap").first()),a.length||(a=i("#wpbody-content"));var s=!0;t.each(function(){var n=i(this).attr("id");if(n&&-1!==n.indexOf("bdt-admin-biggopti-api-biggopti-class-")){var e=n.substring(n.indexOf("bdt-admin-biggopti-api-biggopti-class-"));if(i('[id$="'+e+'"]').length>0)return s=!1,!1}}),s&&(a.children("hr.wp-header-end").length?a.children("hr.wp-header-end").first().after(t):a.children("h1").length?a.children("h1").first().after(t):a.prepend(t)),"undefined"!=typeof wp&&wp.a11y&&window.jQuery&&t.each(function(){var n=i(this);if(n.hasClass("is-dismissible")&&!n.find(".bdt-biggopti-dismiss").length){var e=i('<button type="button" class="bdt-biggopti-dismiss dashicons dashicons-dismiss"><span class="screen-reader-text">Dismiss this biggopti.</span></button>');n.append(e),e.on("click",function(){n.fadeTo(100,0,function(){n.slideUp(100,function(){n.remove()})})})}}),n()}}).fail(function(){})}catch(i){}},300)})}),window.CSS.registerProperty({name:"--primaryColor",syntax:"<color>",inherits:!1,initialValue:"#AA00FF"}),window.CSS.registerProperty({name:"--secondaryColor",syntax:"<color>",inherits:!1,initialValue:"#FF2661"});