HOME


Mini Shell 1.0
DIR: /home/dhnidqcz/africaprag.org/wp-content/themes/yuki/dist/js/
Upload File :
Current File : //home/dhnidqcz/africaprag.org/wp-content/themes/yuki/dist/js/customizer-preview.min.js
/*! For license information please see customizer-preview.min.js.LICENSE.txt */
(()=>{var e={690:function(){(function(){Date.shortMonths=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Date.longMonths=["January","February","March","April","May","June","July","August","September","October","November","December"],Date.shortDays=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Date.longDays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];var e={d:function(){var e=this.getDate();return(e<10?"0":"")+e},D:function(){return Date.shortDays[this.getDay()]},j:function(){return this.getDate()},l:function(){return Date.longDays[this.getDay()]},N:function(){var e=this.getDay();return 0===e?7:e},S:function(){var e=this.getDate();return e%10==1&&11!==e?"st":e%10==2&&12!==e?"nd":e%10==3&&13!==e?"rd":"th"},w:function(){return this.getDay()},z:function(){var e=new Date(this.getFullYear(),0,1);return Math.ceil((this-e)/864e5)},W:function(){var e=new Date(this.valueOf()),t=(this.getDay()+6)%7;e.setDate(e.getDate()-t+3);var n=e.valueOf();e.setMonth(0,1),4!==e.getDay()&&e.setMonth(0,1+(4-e.getDay()+7)%7);var r=1+Math.ceil((n-e)/6048e5);return r<10?"0"+r:r},F:function(){return Date.longMonths[this.getMonth()]},m:function(){var e=this.getMonth();return(e<9?"0":"")+(e+1)},M:function(){return Date.shortMonths[this.getMonth()]},n:function(){return this.getMonth()+1},t:function(){var e=this.getFullYear(),t=this.getMonth()+1;return 12===t&&(e=e++,t=0),new Date(e,t,0).getDate()},L:function(){var e=this.getFullYear();return e%400==0||e%100!=0&&e%4==0},o:function(){var e=new Date(this.valueOf());return e.setDate(e.getDate()-(this.getDay()+6)%7+3),e.getFullYear()},Y:function(){return this.getFullYear()},y:function(){return(""+this.getFullYear()).substr(2)},a:function(){return this.getHours()<12?"am":"pm"},A:function(){return this.getHours()<12?"AM":"PM"},B:function(){return Math.floor(1e3*((this.getUTCHours()+1)%24+this.getUTCMinutes()/60+this.getUTCSeconds()/3600)/24)},g:function(){return this.getHours()%12||12},G:function(){return this.getHours()},h:function(){var e=this.getHours();return((e%12||12)<10?"0":"")+(e%12||12)},H:function(){var e=this.getHours();return(e<10?"0":"")+e},i:function(){var e=this.getMinutes();return(e<10?"0":"")+e},s:function(){var e=this.getSeconds();return(e<10?"0":"")+e},v:function(){var e=this.getMilliseconds();return(e<10?"00":e<100?"0":"")+e},e:function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},I:function(){for(var e=null,t=0;t<12;++t){var n=new Date(this.getFullYear(),t,1).getTimezoneOffset();if(null===e)e=n;else{if(n<e){e=n;break}if(n>e)break}}return this.getTimezoneOffset()===e|0},O:function(){var e=this.getTimezoneOffset();return(-e<0?"-":"+")+(Math.abs(e/60)<10?"0":"")+Math.floor(Math.abs(e/60))+(0===Math.abs(e%60)?"00":(Math.abs(e%60)<10?"0":"")+Math.abs(e%60))},P:function(){var e=this.getTimezoneOffset();return(-e<0?"-":"+")+(Math.abs(e/60)<10?"0":"")+Math.floor(Math.abs(e/60))+":"+(0===Math.abs(e%60)?"00":(Math.abs(e%60)<10?"0":"")+Math.abs(e%60))},T:function(){var e=this.toLocaleTimeString(navigator.language,{timeZoneName:"short"}).split(" ");return e[e.length-1]},Z:function(){return 60*-this.getTimezoneOffset()},c:function(){return this.format("Y-m-d\\TH:i:sP")},r:function(){return this.toString()},U:function(){return Math.floor(this.getTime()/1e3)}};Date.prototype.format=function(t){var n=this;return t.replace(/(\\?)(.)/g,(function(t,r,o){return""===r&&e[o]?e[o].call(n):o}))}}).call(this)},697:()=>{jQuery.extend(jQuery.expr[":"],{focusable:function(e){return jQuery(e).is("a, button, :input, [tabindex]")}})}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(()=>{"use strict";n(697),n(690);function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var t=function t(n,r){function o(t,o,i){if("undefined"!=typeof document){"number"==typeof(i=e({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var u in i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(o,t)+a}}return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],r={},o=0;o<t.length;o++){var i=t[o].split("="),a=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(r[u]=n.read(a,u),e===u)break}catch(e){}}return e?r[e]:r}},remove:function(t,n){o(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const r=t;function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}const i=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),window.particlesJS&&t(".yuki-particles-canvas").each((function(e,r){var o=t(r),i=JSON.parse(o.attr("data-yuki-particles"));particlesJS(o.attr("id"),n.overrideConfig(o,i))}))}var t,n,r;return t=e,(n=[{key:"overrideConfig",value:function(e,t){var n=e.data("yuki-particle-detect-on"),r=Number(e.data("yuki-particle-quantity")),o=Number(e.data("yuki-particle-speed")),i=Number(e.data("yuki-particle-size")),a=e.data("yuki-particle-shape"),u=this.getColorValue(e.data("yuki-particle-color")),c=this.getColorValue(e.data("yuki-particle-line-color")||u);return"default"!==n&&""!==n&&void 0!==n&&(t.interactivity.detect_on=n),""!==i&&void 0!==i&&i>0&&(t.particles.size.value=i),""!==r&&void 0!==r&&r>0&&(t.particles.number.value=r),""!==u&&void 0!==u&&(t.particles.color.value=u),""!==c&&void 0!==c&&(t.particles.line_linked?t.particles.line_linked.color=c:t.particles.links?t.particles.links.color=c:t.particles.links={color:c}),"default"!==a&&""!==a&&void 0!==a&&(t.particles.shape.type=a),""!==o&&void 0!==o&&o>0&&(t.particles.move.speed=o),t.background={},t.fullScreen={enable:!1},t}},{key:"getColorValue",value:function(e){if(!e||""===e||"__INITIAL_VALUE__"===e)return"";if(e.indexOf("var")>-1){var t=getComputedStyle(document.documentElement).getPropertyValue(e.replace(/var\(/,"").replace(/\)/,"")).trim().replace(/\s/g,"");return-1===t.indexOf("#")&&-1===t.indexOf("rgb")?"rgb(".concat(t,")"):t}return e}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}const u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=this,o=r.get("yuki-color-mode"),i=jQuery(document.documentElement).attr("data-yuki-theme");"yes"===jQuery(document.documentElement).attr("data-save-color-scheme")&&o!==i&&jQuery(document.documentElement).attr("data-yuki-theme",o),t(".yuki-theme-switch").each((function(){var e=t(this);e.hasClass("yuki-theme-switch-initialized")||(e.addClass("yuki-theme-switch-initialized"),e.on("click",n.toggle.bind(n)))}))}var t,n,o;return t=e,(n=[{key:"toggle",value:function(){var e=jQuery(document.documentElement).attr("data-yuki-theme");"dark"===e?this.setLightMode():this.setDarkMode(),wp.customize&&wp.customize.preview.send("yuki-theme-changed","dark"===e?"light":"dark"),new i(jQuery)}},{key:"setLightMode",value:function(){this.setGlobalTransition(),jQuery(document.documentElement).attr("data-yuki-theme","light"),"yes"===jQuery(document.documentElement).attr("data-save-color-scheme")&&r.set("yuki-color-mode","light",{expires:365})}},{key:"setDarkMode",value:function(){this.setGlobalTransition(),jQuery(document.documentElement).attr("data-yuki-theme","dark"),"yes"===jQuery(document.documentElement).attr("data-save-color-scheme")&&r.set("yuki-color-mode","dark",{expires:365})}},{key:"setGlobalTransition",value:function(){document.body.classList.add("transition-force-none"),setTimeout((function(){document.body.classList.remove("transition-force-none")}),50)}}])&&a(t.prototype,n),o&&a(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}const l=s((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t("ul.sf-menu").superfish({animation:{opacity:"show",marginTop:"0"},animationOut:{opacity:"hide",marginTop:"10"},speed:300,speedOut:150})}));function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}const p=d((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=t(".card-list");n.masonry&&n.masonry({itemSelector:".card-wrapper"})}));function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}const v=y((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t(".yuki-collapsable-menu.collapsable").each((function(e,n){t(n).find(".menu-item-has-children, .page_item_has_children").each((function(e,n){var r=t(n).find("> .sub-menu, > .children"),o=t(n).find("> a .yuki-dropdown-toggle");r.hide(),o.on("click",(function(e){e.stopPropagation(),e.preventDefault(),o.toggleClass("active"),r.slideToggle(300)}))}))}))}));function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}const g=b((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t("[data-redirect-focus]").each((function(){var e=t(this),n=t(e.data("redirect-focus"));e.on("keydown",(function(t){var r=9===t.keyCode,o=t.shiftKey,i=e.find(":focusable:visible:not(.lotta-customizer-shortcut)"),a=i.last(),u=i.first(),c=document.activeElement;r&&!o&&a.is(c)&&(t.preventDefault(),n.focus()),r&&o&&u.is(c)&&(t.preventDefault(),n.focus())})),n.on("keydown",(function(t){if(e.is(":visible")){var n=9===t.keyCode,r=t.shiftKey,o=e.find(":focusable:visible"),i=o.last(),a=o.first();n&&!r&&(t.preventDefault(),a.focus()),n&&r&&(t.preventDefault(),i.focus())}}))}))}));function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}const j=k((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=window.innerWidth-document.documentElement.clientWidth;n>0&&document.body.style.setProperty("--scrollbar-width","".concat(n,"px")),t("[data-toggle-target]").each((function(){var e=t(this);e.hasClass("yuki-toggleable")||(e.addClass("yuki-toggleable"),t(this).on("click",(function(){var e=t(this),n=t(e.data("toggle-target")),r=t(e.data("toggle-show-focus")),o=t(e.data("toggle-hidden-focus"));n.toggleClass("active"),n.hasClass("active")?(t(document.body).addClass("yuki-modal-visible"),r&&r.first()&&setTimeout((function(){return r.first().focus()}),100)):(setTimeout((function(){t(document.body).removeClass("yuki-modal-visible")}),300),o&&o.first()&&setTimeout((function(){return o.first().focus()}),100))})))}))}));function D(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t,n){return t&&D(e.prototype,t),n&&D(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}const O=C((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=t("#scroll-top");t(window).on("scroll",(function(){t(this).scrollTop()>200?n.addClass("active"):n.removeClass("active")})),n.on("click",(function(){return t("html, body").scrollTop(0),!1}))}));function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t,n){return t&&T(e.prototype,t),n&&T(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}const P=M((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t(".yuki-local-time").each((function(){var e=t(this).data("time-format");t(this).text((new Date).format(e))}))}));function Q(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}const E=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initSlick(),t(window).on("elementor/frontend/init",(function(){window.elementorFrontend&&elementorFrontend.hooks.addAction("frontend/element_ready/global",n.initSlick)}))}var t,n,r;return t=e,(n=[{key:"initSlick",value:function(){var e=jQuery;void 0!==e().slick&&e("[data-yuki-slick]").each((function(t,n){var r=e(n),o=r.parent();r.hasClass("slick-initialized")||r.slick({appendArrows:o.find(".yuki-slider-controls"),appendDots:o.find(".yuki-slider-dots"),customPaging:function(e,t){return'<span class="yuki-slider-dot"></span>'}})}))}}])&&Q(t.prototype,n),r&&Q(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t,n){return t&&z(e.prototype,t),n&&z(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}const x=S((function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t("[data-popup-target]").each((function(){var e=t(this),n=t(e.data("popup-target")),r=function(){n.stop().animate({opacity:"show",marginTop:"0"},300)},o=function(){n.stop().animate({opacity:"hide",marginTop:"10"},150)};e.data("popup-on-hover")?e.hover(r,o):e.click(r,o)}))}));wp.customize&&wp.customize.selectiveRefresh&&(wp.customize.selectiveRefresh.bind("partial-content-rendered",(function(){window.ScrollReveal&&ScrollReveal().sync(),new p(jQuery),new u(jQuery),new l(jQuery),new v(jQuery),new g(jQuery),new j(jQuery),new O(jQuery),new P(jQuery),new E(jQuery),new x(jQuery),new i(jQuery)})),wp.customize("yuki_card_content_spacing",(function(e){e.bind((function(){new p(jQuery)}))})),wp.customize.bind("preview-ready",(function(){wp.customize.preview.bind("lotta-panel-open",(function(e){"yuki_global_preloader"===e&&(jQuery(".yuki-preloader-wrap > div").fadeIn(150),jQuery(".yuki-preloader-wrap").fadeIn(375))})),wp.customize.preview.bind("lotta-panel-close",(function(e){"yuki_global_preloader"===e&&(jQuery(".yuki-preloader-wrap > div").fadeOut(150),jQuery(".yuki-preloader-wrap").fadeOut(375))}))})))})()})();