jQuery(document).ready(function(i){function e(){jQuery(".bdt-biggopti-countdown").each(function(){var i=jQuery(this),e=i.find(".countdown-timer"),n=i.data("end-date"),t=i.data("timezone");function a(){var a=new Date(n+" "+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>',e.html(l)}}n&&e.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 e=$this.attr("id")||"",n=$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:e,meta:t,time:n,_wpnonce:PrimeSliderBiggoptiConfig.nonce}})}),e(),jQuery(document).on("DOMNodeInserted",".bdt-biggopti-countdown",function(){e()}),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}}).done(function(n){if(n&&n.success&&n.data&&n.data.html){var t=i(n.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 e=i(this).attr("id");if(e&&-1!==e.indexOf("bdt-admin-biggopti-api-biggopti-class-")){var n=e.substring(e.indexOf("bdt-admin-biggopti-api-biggopti-class-"));if(i('[id$="'+n+'"]').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 e=i(this);if(e.hasClass("is-dismissible")&&!e.find(".bdt-biggopti-dismiss").length){var n=i('<button type="button" class="bdt-biggopti-dismiss dashicons dashicons-dismiss"><span class="screen-reader-text">Dismiss this biggopti.</span></button>');e.append(n),n.on("click",function(){e.fadeTo(100,0,function(){e.slideUp(100,function(){e.remove()})})})}}),e()}}).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"});