(function(){var l=[],t=0;window.generate_the_wcmp=function(m){function q(a){let d=a.closest(".wcmp-single-player"),b=d.find(".wcmp-first-player");c("audio").each(function(){this.pause();this.currentTime=0});d.find(".wcmp-player-container:not(.wcmp-first-player)").hide();a.hasClass(".wcmp-first-player")||(a.show().offset(b.offset()).outerWidth(b.outerWidth()),a.find("audio")[0].play())}function h(a,d){if(a+1');var f=c(this).find(".wcmp-player-visualizer-bars-container")[0],n=c(this).next("audio")[0];for(b=0;b<64;b++){const u=document.createElement("div");u.className="wcmp-player-visualizer-bar";f.appendChild(u)}var e=Array.from(f.children),g,k,x,w,B,y=null;n.addEventListener("play",function(){g||(g=new(window.AudioContext||window.webkitAudioContext),k=g.createAnalyser(),k.fftSize=2048,k.smoothingTimeConstant=.6,x=g.createMediaElementSource(n),x.connect(k),k.connect(g.destination),w=new Uint8Array(k.frequencyBinCount),B=(new Float32Array(32)).fill(0));g.state==="suspended"&&g.resume();y||a()});n.addEventListener("pause",d);n.addEventListener("ended",d)}})})();var z=typeof wcmp_global_settings!="undefined"?wcmp_global_settings.play_all:!0,r=typeof wcmp_global_settings!="undefined"?!(wcmp_global_settings.play_simultaneously*1):!0,I=typeof wcmp_global_settings!="undefined"?wcmp_global_settings.fade_out*1:!0,J=typeof wcmp_global_settings!="undefined"&&"ios_controls"in wcmp_global_settings&&wcmp_global_settings.ios_controls*1?!0:!1;m=c("audio.wcmp-player:not(.track):not([playernumber])");var L=c("audio.wcmp-player.track:not([playernumber])"),C={pauseOtherPlayers:r,iPadUseNativeControls:J,iPhoneUseNativeControls:J,success:function(a,d){var b=c(d).data("duration"),f=c(d).data("estimated_duration"),n=c(d).attr("playernumber");typeof f!="undefined"&&(a.getDuration=function(){return f});typeof b!="undefined"&&setTimeout(function(e,g){return function(){l[e].updateDuration=function(){c(this.media).closest(".wcmp-player").find(".mejs-duration").html(g)};l[e].updateDuration()}}(n,b),50);c(d).attr("volume")&&(a.setVolume(parseFloat(c(d).attr("volume"))),a.volume==0&&a.setMuted(!0));a.addEventListener("playing",function(e){var g=c(a),k=g.closest(".wcmp-single-player");try{let x=c(e.detail.target).attr("data-product");if(typeof x!="undefined"){let w=window.location.protocol+"//"+window.location.host+"/"+window.location.pathname.replace(RegExp("^/","g"),"").replace(RegExp("/$","g"),"")+"?wcmp-action=play&wcmp-product="+x;c.get(w)}}catch(x){}k.length&&(e=g.closest(".wcmp-player-container").attr("data-wcfm-pair"),k.find('.wcmp-player-title[data-wcfm-pair="'+e+'"]').addClass("wcmp-playing"))});a.addEventListener("timeupdate",function(e){e=a.getDuration();isNaN(a.currentTime)||isNaN(e)||(I&&e-a.currentTime<4?a.setVolume(a.volume-a.volume/3):a.currentTime&&(typeof a.bkVolume=="undefined"&&(a.bkVolume=parseFloat(c(a).find("audio,video").attr("volume")||a.volume)),a.setVolume(a.bkVolume),a.bkVolume==0&&a.setMuted(!0)))});a.addEventListener("volumechange",function(e){e=a.getDuration();isNaN(a.currentTime)||isNaN(e)||!(e-a.currentTime>4)&&I||!a.currentTime||(a.bkVolume=a.volume)});a.addEventListener("ended",function(e){e=c(a);var g=e.closest('[data-loop="1"]');e[0].currentTime=0;e.closest(".wcmp-single-player").length&&e.closest(".wcmp-single-player").find(".wcmp-playing").removeClass("wcmp-playing");if(z*1||g.length){var k=e.attr("playernumber")*1;isNaN(k)&&(k=e.find("[playernumber]").attr("playernumber")*1);h(k,g.length)}})}};r=".product-type-grouped :regex(name,quantity\\[\\d+\\])";m.each(function(){var a=c(this);a.find("source").attr("src");a.attr("playernumber",t);C.audioVolume="vertical";try{l[t]=new MediaElementPlayer(a[0],C)}catch(d){"console"in window&&console.log(d)}t++});L.each(function(){var a=c(this);a.find("source").attr("src");a.attr("playernumber",t);C.features=["playpause"];try{l[t]=new MediaElementPlayer(a[0],C)}catch(d){"console"in window&&console.log(d)}t++;v(a);c(window).on("resize",function(){v(a)})});c(r).length||(r=".product-type-grouped [data-product_id]");c(r).length||(r=".woocommerce-grouped-product-list [data-product_id]");c(r).length||(r='.woocommerce-grouped-product-list [id*="product-"]');c(r).each(function(){try{var a=c(this),d=(a.data("product_id")||a.attr("name")||a.attr("id")).replace(/[^\d]/g,""),b=c(".wcmp-player-list.merge_in_grouped_products .product-"+d+":first .wcmp-player-title"),f=c("
");b.length&&!b.closest(".wcmp-first-in-product").length&&(b.closest("tr").addClass("wcmp-first-in-product"),b.closest("form").length==0&&b.closest(".wcmp-player-list").prependTo(a.closest("form")),f.append(a.closest("tr").prepend(""+b.html()+"")),b.html("").append(f))}catch(n){}});c(document).on("click","[data-wcfm-pair]",function(){let a=c(this),d=a.closest(".wcmp-single-player"),b;d.length&&(c(".wcmp-player-title").removeClass("wcmp-playing"),b=a.attr("data-wcfm-pair"),a.addClass("wcmp-playing"),q(d.find('.wcmp-player-container[data-wcfm-pair="'+b+'"]')))})}};window.wcmp_force_init=function(){delete window.generated_the_wcmp;generate_the_wcmp(!0)};jQuery(generate_the_wcmp);jQuery(window).on("load",function(){generate_the_wcmp(!0);var m=jQuery,q=window.navigator.userAgent;m("[data-lazyloading]").each(function(){var h=m(this);h.attr("preload",h.data("lazyloading"))});if(q.match(/iPad/i)||q.match(/iPhone/i))if(typeof wcmp_global_settings!="undefined"?wcmp_global_settings.play_all:1)m(".wcmp-player .mejs-play button").one("click",function(){if("undefined"==typeof wcmp_preprocessed_players){wcmp_preprocessed_players=!0;var h=m(this);m(".wcmp-player audio").each(function(){this.play();this.pause()});setTimeout(function(){h.trigger("click")},500)}})}).on("popstate",function(){jQuery("audio[data-product]:not([playernumber])").length&&wcmp_force_init()});(new MutationObserver(function(m){let q=!1;for(let v=0;v0)for(let z=0;z0:!1;h&&(q=!0)}}q&&wcmp_force_init()})).observe(document,{childList:!0,subtree:!0})})(); jQuery(function(){jQuery('.wc-block-all-products').each(function(){(new MutationObserver(function(mutationsList,observer){for(let k in mutationsList){let mutation=mutationsList[k];if(mutation.type==='childList'){if(mutation.addedNodes.length){try{var l=jQuery('.wc-block-grid__product-title:hidden','.wc-block-all-products');if(l.length){l.each(function(){var e=jQuery('a',this);if(e.length)e.html(e.text()).parent().show();});wcmp_force_init()}}catch(err){console.log(err)}}}}})).observe(this,{childList:!0,subtree:!0})})}); /*! * jQuery blockUI plugin * Version 2.70.0-2014.11.23 * Requires jQuery v1.7 or later * * Examples at: http://malsup.com/jquery/block/ * Copyright (c) 2007-2013 M. Alsup * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Thanks to Amir-Hossein Sobhi for some excellent contributions! */ !function(){"use strict";function e(e){e.fn._fadeIn=e.fn.fadeIn;var t=e.noop||function(){},o=/MSIE/.test(navigator.userAgent),n=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),i=(document.documentMode,"function"==typeof document.createElement("div").style.setExpression&&document.createElement("div").style.setExpression);e.blockUI=function(e){d(window,e)},e.unblockUI=function(e){a(window,e)},e.growlUI=function(t,o,n,i){var s=e('
');t&&s.append("

"+t+"

"),o&&s.append("

"+o+"

"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.on("mouseover",function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).on("mouseout",function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(t){if(this[0]===window)return e.blockUI(t),this;var o=e.extend({},e.blockUI.defaults,t||{});return this.each(function(){var t=e(this);o.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,d(this,t)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){a(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"

Please wait...

",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var s=null,l=[];function d(d,c){var u,b,h=d==window,k=c&&c.message!==undefined?c.message:undefined;if(!(c=e.extend({},e.blockUI.defaults,c||{})).ignoreIfBlocked||!e(d).data("blockUI.isBlocked")){if(c.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,c.overlayCSS||{}),u=e.extend({},e.blockUI.defaults.css,c.css||{}),c.onOverlayClick&&(c.overlayCSS.cursor="pointer"),b=e.extend({},e.blockUI.defaults.themedCSS,c.themedCSS||{}),k=k===undefined?c.message:k,h&&s&&a(window,{fadeOut:0}),k&&"string"!=typeof k&&(k.parentNode||k.jquery)){var y=k.jquery?k[0]:k,m={};e(d).data("blockUI.history",m),m.el=y,m.parent=y.parentNode,m.display=y.style.display,m.position=y.style.position,m.parent&&m.parent.removeChild(y)}e(d).data("blockUI.onUnblock",c.onUnblock);var g,v,I,w,U=c.baseZ;g=o||c.forceIframe?e(''):e(''),v=c.theme?e(''):e(''),c.theme&&h?(w='"):c.theme?(w='"):w=h?'':'',I=e(w),k&&(c.theme?(I.css(b),I.addClass("ui-widget-content")):I.css(u)),c.theme||v.css(c.overlayCSS),v.css("position",h?"fixed":"absolute"),(o||c.forceIframe)&&g.css("opacity",0);var x=[g,v,I],C=e(h?"body":d);e.each(x,function(){this.appendTo(C)}),c.theme&&c.draggable&&e.fn.draggable&&I.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var S=i&&(!e.support.boxModel||e("object,embed",h?null:d).length>0);if(n||S){if(h&&c.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(n||!e.support.boxModel)&&!h)var E=p(d,"borderTopWidth"),O=p(d,"borderLeftWidth"),T=E?"(0 - "+E+")":0,M=O?"(0 - "+O+")":0;e.each(x,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)h?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+c.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),h?o.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),M&&o.setExpression("left",M),T&&o.setExpression("top",T);else if(c.centerY)h&&o.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),o.marginTop=0;else if(!c.centerY&&h){var n="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(c.css&&c.css.top?parseInt(c.css.top,10):0)+') + "px"';o.setExpression("top",n)}})}if(k&&(c.theme?I.find(".ui-widget-content").append(k):I.append(k),(k.jquery||k.nodeType)&&e(k).show()),(o||c.forceIframe)&&c.showOverlay&&g.show(),c.fadeIn){var B=c.onBlock?c.onBlock:t,j=c.showOverlay&&!k?B:t,H=k?B:t;c.showOverlay&&v._fadeIn(c.fadeIn,j),k&&I._fadeIn(c.fadeIn,H)}else c.showOverlay&&v.show(),k&&I.show(),c.onBlock&&c.onBlock.bind(I)();if(r(1,d,c),h?(s=I[0],l=e(c.focusableElements,s),c.focusInput&&setTimeout(f,20)):function(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-p(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-p(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0");o&&(i.top=l>0?l+"px":"0")}(I[0],c.centerX,c.centerY),c.timeout){var z=setTimeout(function(){h?e.unblockUI(c):e(d).unblock(c)},c.timeout);e(d).data("blockUI.timeout",z)}}}function a(t,o){var n,i,d=t==window,a=e(t),u=a.data("blockUI.history"),f=a.data("blockUI.timeout");f&&(clearTimeout(f),a.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),r(0,t,o),null===o.onUnblock&&(o.onUnblock=a.data("blockUI.onUnblock"),a.removeData("blockUI.onUnblock")),i=d?e(document.body).children().filter(".blockUI").add("body > .blockUI"):a.find(">.blockUI"),o.cursorReset&&(i.length>1&&(i[1].style.cursor=o.cursorReset),i.length>2&&(i[2].style.cursor=o.cursorReset)),d&&(s=l=null),o.fadeOut?(n=i.length,i.stop().fadeOut(o.fadeOut,function(){0==--n&&c(i,u,o,t)})):c(i,u,o,t)}function c(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function r(t,o,n){var i=o==window,l=e(o);if((t||(!i||s)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).on(d,n,u):e(document).off(d,u)}}function u(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&s&&t.data.constrainTabKey){var o=l,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){f(i)},10),!1}var d=t.data,a=e(t.target);return a.hasClass("blockOverlay")&&d.onOverlayClick&&d.onOverlayClick(t),a.parents("div."+d.blockMsgClass).length>0||0===a.parents().children().filter("div.blockUI").length}function f(e){if(l){var t=l[!0===e?l.length-1:0];t&&t.trigger("focus")}}function p(t,o){return parseInt(e.css(t,o),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}();; jQuery(function(t){if("undefined"==typeof wc_add_to_cart_params)return!1;var a=function(){this.requests=[],this.addRequest=this.addRequest.bind(this),this.run=this.run.bind(this),this.$liveRegion=this.createLiveRegion(),t(document.body).on("click",".add_to_cart_button:not(.wc-interactive)",{addToCartHandler:this},this.onAddToCart).on("keydown",".add_to_cart_button:not(.wc-interactive)",{addToCartHandler:this},t=>{" "===t.key&&(t.preventDefault(),t.target.click())}).on("click",".remove_from_cart_button",{addToCartHandler:this},this.onRemoveFromCart).on("keydown",".remove_from_cart_button",this.onKeydownRemoveFromCart).on("added_to_cart",{addToCartHandler:this},this.onAddedToCart).on("removed_from_cart",{addToCartHandler:this},this.onRemovedFromCart).on("ajax_request_not_sent.adding_to_cart",this.updateButton)};a.prototype.addRequest=function(t){this.requests.push(t),1===this.requests.length&&this.run()},a.prototype.run=function(){var a=this,e=a.requests[0].complete;a.requests[0].complete=function(){"function"==typeof e&&e(),a.requests.shift(),a.requests.length>0&&a.run()},t.ajax(this.requests[0])},a.prototype.onAddToCart=function(a){var e=t(this);if(e.is(".ajax_add_to_cart")){if(!e.attr("data-product_id"))return!0;if(a.data.addToCartHandler.$liveRegion.text("").removeAttr("aria-relevant"),a.preventDefault(),e.removeClass("added"),e.addClass("loading"),!1===t(document.body).triggerHandler("should_send_ajax_request.adding_to_cart",[e]))return t(document.body).trigger("ajax_request_not_sent.adding_to_cart",[!1,!1,e]),!0;var r={};t.each(e.data(),function(t,a){r[t]=a}),t.each(e[0].dataset,function(t,a){r[t]=a}),t(document.body).trigger("adding_to_cart",[e,r]),a.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","add_to_cart"),data:r,success:function(a){a&&(a.error&&a.product_url?window.location=a.product_url:"yes"!==wc_add_to_cart_params.cart_redirect_after_add?t(document.body).trigger("added_to_cart",[a.fragments,a.cart_hash,e]):window.location=wc_add_to_cart_params.cart_url)},dataType:"json"})}},a.prototype.onRemoveFromCart=function(a){var e=t(this),r=e.closest(".woocommerce-mini-cart-item");a.data.addToCartHandler.$liveRegion.text("").removeAttr("aria-relevant"),a.preventDefault(),r.block({message:null,overlayCSS:{opacity:.6}}),a.data.addToCartHandler.addRequest({type:"POST",url:wc_add_to_cart_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_from_cart"),data:{cart_item_key:e.data("cart_item_key")},success:function(a){a&&a.fragments?t(document.body).trigger("removed_from_cart",[a.fragments,a.cart_hash,e]):window.location=e.attr("href")},error:function(){window.location=e.attr("href")},dataType:"json"})},a.prototype.onKeydownRemoveFromCart=function(a){" "===a.key&&(a.preventDefault(),t(this).trigger("click"))},a.prototype.updateButton=function(a,e,r,o){if(o=void 0!==o&&o){if(o.removeClass("loading"),e&&o.addClass("added"),e&&!wc_add_to_cart_params.is_cart&&0===o.parent().find(".added_to_cart").length){var d=document.createElement("a");d.href=wc_add_to_cart_params.cart_url,d.className="added_to_cart wc-forward",d.title=wc_add_to_cart_params.i18n_view_cart,d.textContent=wc_add_to_cart_params.i18n_view_cart,o.after(d)}t(document.body).trigger("wc_cart_button_updated",[o])}},a.prototype.updateFragments=function(a,e){e&&(t.each(e,function(a){t(a).addClass("updating").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}})}),t.each(e,function(a,e){t(a).replaceWith(e),t(a).stop(!0).css("opacity","1").unblock()}),t(document.body).trigger("wc_fragments_loaded"))},a.prototype.alertCartUpdated=function(t,a,e,r){if(r=void 0!==r&&r){var o=r.data("success_message");if(!o)return;t.data.addToCartHandler.$liveRegion.delay(1e3).text(o).attr("aria-relevant","all")}},a.prototype.createLiveRegion=function(){var a=t(".widget_shopping_cart_live_region");return a.length?a:t('
').appendTo("body")},a.prototype.onAddedToCart=function(t,a,e,r){t.data.addToCartHandler.updateButton(t,a,e,r),t.data.addToCartHandler.updateFragments(t,a),t.data.addToCartHandler.alertCartUpdated(t,a,e,r)},a.prototype.onRemovedFromCart=function(t,a,e,r){t.data.addToCartHandler.updateFragments(t,a),t.data.addToCartHandler.alertCartUpdated(t,a,e,r)},new a});; /*! js-cookie v3.0.5 | MIT */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,function(){"use strict";function e(e){for(var t=1;t=0&&parseFloat(e(this).val())'),e(".woocommerce form input").filter(":password").parent("span").addClass("password-input"),e(".password-input").each(function(){const o=e(this).find("input").attr("id");e(this).append('')}),e(".show-password-input").on("click",function(o){o.preventDefault(),e(this).hasClass("display-password")?(e(this).removeClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_show)):(e(this).addClass("display-password"),e(this).attr("aria-label",woocommerce_params.i18n_password_hide)),e(this).hasClass("display-password")?e(this).siblings(['input[type="password"]']).prop("type","text"):e(this).siblings('input[type="text"]').prop("type","password"),e(this).siblings("input").focus()}),e("a.coming-soon-footer-banner-dismiss").on("click",function(o){var t=e(o.target);e.ajax({type:"post",url:t.data("rest-url"),data:{woocommerce_meta:{coming_soon_banner_dismissed:"yes"}},beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",t.data("rest-nonce"))},complete:function(){e("#coming-soon-footer-banner").hide()}})}),"undefined"==typeof wc_add_to_cart_params&&e(document.body).on("keydown",".remove_from_cart_button",on_keydown_remove_from_cart),e(document.body).on("item_removed_from_classic_cart updated_wc_div",focus_populate_live_region)}),document.addEventListener("DOMContentLoaded",on_document_ready);; (()=>{var O=(e,t,n)=>new Promise((o,c)=>{var s=u=>{try{l(n.next(u))}catch(d){c(d)}},i=u=>{try{l(n.throw(u))}catch(d){c(d)}},l=u=>u.done?o(u.value):Promise.resolve(u.value).then(s,i);l((n=n.apply(e,t)).next())});const r=window._ckyConfig,W=window._ckyStyles;r._backupNodes=[];r._resetConsentID=!1;r._bannerState=!1;r._preferenceOriginTag=!1;r._optoutSuccessCountdownInterval=null;r._optoutSuccessAutoCloseTimer=null;r._optoutSuccessSubtextTemplate="";const ue=15e3,V=15;window.cookieyes=window.cookieyes||{};const a=window.cookieyes;a._ckyConsentStore=new Map;a._ckyGetCookieMap=function(){const e={};try{document.cookie.split(";").map(t=>{const[n,o]=t.split("=");if(n)return e[n.trim()]=o,o})}catch(t){}return e};const de=a._ckyGetCookieMap();a._ckyGetFromStore=function(e){return a._ckyConsentStore.get(e)||""};a._ckySetInStore=function(e,t){a._ckyConsentStore.set(e,t);let n=[];for(const[c,s]of a._ckyConsentStore)n.push(`${c}:${s}`);const o=r&&r._expiry?r._expiry:365;a._ckySetCookie("cookieyes-consent",n.join(","),o)};const ye=(de["cookieyes-consent"]||"").split(",").reduce((e,t)=>{if(!t)return e;const[n,o]=t.split(":");return e[n]=o,e},{});["consentid","consent","action"].concat(r._categories.map(({slug:e})=>e)).map(e=>a._ckyConsentStore.set(e,ye[e]||""));a._ckyGetCookie=function(e){const t=new RegExp(`${e}=([^;]+)`).exec(document.cookie);return t&&Array.isArray(t)&&t[1]?unescape(t[1]):null};a._ckySetCookie=function(e,t,n=0,o=r._rootDomain){const c=new Date;o&&(o=`domain=${o}`);const s=n===0?0:c.setTime(c.getTime()+n*24*60*60*1e3);document.cookie=`${e}=${t}; expires=${new Date(s).toUTCString()}; path=/;${o}; SameSite=Strict;`};function fe(){if(a._ckyGetFromStore("consentid"))return;const t=a._ckyRandomString(32);a._ckySetInStore("consentid",t),r._resetConsentID=!0}const E=function(){p()==="classic"&&$(),P(),Ae()};function f(e){const t=document.querySelector("[data-cky-tag="+e+"]");return t||!1}function ke(e){return e.replace(/[.*+?^${}()[\]\\]/g,"\\$&")}function y(e,t){const n=q(e);n&&n.addEventListener("click",t)}function Y(){return N("add",...arguments)}function x(){return N("remove",...arguments)}function Q(){return N("toggle",...arguments)}function N(e,t,n,o=!0){const c=q(t,o);return c&&c.classList[e](n)}function q(e,t){let n=e;switch(!0){case e.startsWith("="):n=`[data-cky-tag="${e.substring(1)}"]`;break;default:break}const o=document.querySelector(n);return!o||t&&!o.parentElement?null:t?o.parentElement:o}function z(e){const t=new CustomEvent("cookieyes_consent_update",{detail:e});document.dispatchEvent(t)}function pe(){const e=document.getElementById("cky-style-inline");e&&e.remove()}a._ckyRandomString=function(e,t=!0){const n=`${t?"0123456789":""}ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghiklmnopqrstuvwxyz`,o=[];for(let c=0;cdocument.getElementById(`ckyCategory${e}`).classList.toggle("cky-tab-active"));y("=settings-button",()=>P("settings-button")),y("=detail-close",()=>v()),y("=optout-cancel-button",()=>v()),y("=close-button",()=>Fe()),y("=donotsell-button",()=>P("donotsell-button")),y("=reject-button",b("reject")),y("=accept-button",b("all")),y("=detail-accept-button",b("all")),y("=detail-save-button",b()),y("=detail-category-preview-save-button",b()),y("=optout-confirm-button",qe()),y("=detail-reject-button",b("reject")),y("=revisit-consent",()=>E()),y("=optout-close",()=>Ge())}function we(){if(!r._bannerConfig.config.auditTable.status)return;const e=r._categories.map(({slug:t})=>t);e.map(t=>{const n=`#ckyDetailCategory${t}`,o=`${n} .cky-accordion-btn`,c=document.querySelector(o);if(c){const s=c.closest(".cky-accordion");if(s){const i=s.querySelector(".cky-accordion-body");if(i){let l=i.id;l||(l=`ckyDetailCategory${s.id.replace("ckyDetailCategory","")}Body`,i.id=l),c.setAttribute("aria-controls",l)}}}return m(o,"false"),y(n,({target:{id:s}})=>{if(s===`ckySwitch${t}`||!Q(n,"cky-accordion-active",!1)){m(o,"false");return}m(o,"true"),e.filter(i=>i!==t).map(i=>(x(`#ckyDetailCategory${i}`,"cky-accordion-active",!1),m(`#ckyDetailCategory${i} .cky-accordion-btn`,"false"),i))}),t})}function Ae(e=!1){const t=Z();t&&(e===!0?_ckyRevisitHide():t.classList.toggle("cky-revisit-hide"))}function k(){return r._bannerConfig.settings.applicableLaw}function p(){return r._bannerConfig.settings.type}function S(){return p()==="classic"?"pushdown":r._bannerConfig.settings.preferenceCenterType}function G(){const e=f("notice"),t=e&&e.closest(".cky-consent-container")||!1;return t&&t||!1}function H(){const e=G();e&&e.classList.add("cky-hide")}function $(){const e=G();e&&e.classList.remove("cky-hide")}function J(){const e=document.querySelector(".cky-overlay");e&&e.classList.add("cky-hide")}function X(){const e=document.querySelector(".cky-overlay");e&&e.classList.remove("cky-hide")}function Le(){const e=document.querySelector(".cky-overlay");e&&e.classList.toggle("cky-hide")}function F(){if(p()==="classic")return G();let e=k()==="ccpa"?f("optout-popup"):f("detail");return e&&e.closest(".cky-modal")||!1}function v(){Ne();const e=F();e&&e.classList.remove(h()),p()!=="classic"?(J(),a._ckyGetFromStore("action")||$()):(m("=settings-button","false"),x("=notice","cky-consent-bar-expand")),a._ckyGetFromStore("action")&&R();const t=r._preferenceOriginTag;t&&ae(t)}function Te(){const e=F();if(e&&e.classList.add(h()),e){const t=e.querySelector(".cky-preference-center");if(t){const n=k()==="ccpa"?"ckyOptoutPreferenceCenter":"ckyPreferenceCenter";t.setAttribute("id",n),t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true");const o=k()==="ccpa"?"Opt-out Preferences":"Customise Consent Preferences";t.setAttribute("aria-label",o)}}p()!=="classic"?(X(),H()):(m("=settings-button"),Y("=notice","cky-consent-bar-expand"))}function Ee(){const e=F();if(!e)return;e.classList.toggle(h()),S()!=="pushdown"&&Le();const t=e.classList.contains(h());if(e.classList.toggle(h()),p()==="classic"){const o=e.querySelector(".cky-preference-center");if(o){const c=k()==="ccpa"?"ckyOptoutPreferenceCenter":"ckyPreferenceCenter";o.setAttribute("id",c),o.setAttribute("role","dialog"),o.setAttribute("aria-modal","true");const s=k()==="ccpa"?"Opt-out Preferences":"Customise Consent Preferences";o.setAttribute("aria-label",s)}m("=settings-button"),Q("=notice","cky-consent-bar-expand")}else t?(J(),a._ckyGetFromStore("action")||$()):(X(),H());a._ckyGetFromStore("action")&&R();const n=r._preferenceOriginTag;n&&ae(n)}function h(){return S()==="pushdown"?"cky-consent-bar-expand":"cky-modal-open"}function Z(){const e=f("revisit-consent");return e&&e||!1}function R(){const e=Z();e&&e.classList.remove("cky-revisit-hide")}function P(e=!1){r._preferenceOriginTag=e,p()==="classic"?(Ee(),m("=settings-button")):Te()}function K(e){const t=document.querySelector(`[data-cky-tag="${e}"]`);if(!t)return[];const n=Array.from(t.querySelectorAll('a:not([disabled]), button:not([disabled]), [tabindex]:not([disabled]):not([tabindex="-1"])')).filter(o=>o.style.display!=="none");return n.length<=0?[]:[n[0],n[n.length-1]]}function xe(){const e=k(),t=p();if(t==="classic")return;if(t==="popup"){const[c,s]=K("notice");w(c,s,!0),w(s,c)}const[n,o]=K(e==="ccpa"?"optout-popup":"detail");w(n,o,!0),w(o,n)}function w(e,t,n=!1){!e||!t||e.addEventListener("keydown",o=>{o.which!==9||n&&!o.shiftKey||!n&&o.shiftKey||(o.preventDefault(),t.focus())})}function Ie(e){const t=e.querySelector('[data-cky-tag="detail"] .cky-footer-shadow'),n=e.querySelector('[data-cky-tag="detail"]');if(!t)return;const o=n&&n.style.backgroundColor||"#ffffff";t.style.background=`linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, ${o} 100%)`}function ee({cookies:e}){const t=a._ckyGetCookieMap();for(const{cookieID:n,domain:o}of e)t[n]&&[o,""].map(c=>a._ckySetCookie(n,"",0,c))}function te(e=!1){for(const t of r._categories){const n=a._ckyGetFromStore(t.slug),o=n==="yes"||!n&&t.defaultConsent[k()]||t.isNecessary,c=t.isNecessary,i=r._shortCodes.find(l=>l.key==="cky_category_toggle_label").content.replace("[cky_preference_{{category_slug}}_title]",t.name);$e(t,o,c,i,e),Me(t)}}function $e(e,t,n,o,c=!1){const s=r._bannerConfig.config.preferenceCenter.toggle,i=s.states.active.styles["background-color"],l=s.states.inactive.styles["background-color"];["ckyCategoryDirect","ckySwitch"].map(u=>{const d=document.getElementById(`${u}${e.slug}`);if(d&&(Be(d,e,c),d.checked=t,d.disabled=n,d.style.backgroundColor=t?i:l,A(d,t,o),!c))return d.addEventListener("change",({currentTarget:g})=>{const _=g.checked;g.style.backgroundColor=_?i:l,A(d,_,o)}),d})}function Be(e,t={},n=!1){if(!n&&(e.parentElement.getAttribute("data-cky-tag")==="detail-category-toggle"?Oe(e,t):e.parentElement.getAttribute("data-cky-tag")==="detail-category-preview-toggle"&&Pe(e,t),!t.isNecessary)){const o=t.name,c=document.querySelector(`[data-cky-tag="detail-category-title"][aria-label="${o}"]`);if(c){const i=c.closest(".cky-accordion-item").querySelector(".cky-always-active");i&&i.remove()}}}function Oe(e,t){let n=e.closest(".cky-accordion-item");if(!n)return;const o=n.querySelector(".cky-switch");t.isNecessary?o&&o.remove():(p()==="classic"&&r._bannerConfig.config.categoryPreview.status||t.cookies&&t.cookies.length===0)&&o&&o.remove()}function Me(e){if(r._bannerConfig.config.auditTable.status===!1){const t=document.querySelector(`#ckyDetailCategory${e.slug} [data-cky-tag="audit-table"]`);t&&t.remove();const n=document.querySelector(`#ckyDetailCategory${e.slug} .cky-accordion-chevron`);n&&n.classList.add("cky-accordion-chevron-hide")}}function Pe(e,t){t.cookies&&t.cookies.length===0&&!t.isNecessary&&e.parentElement.parentElement.remove()}function A(e,t,n,o=!1){if(!e)return;const c=t?"disable":"enable",s=`cky_${c}_${o?"optout":"category"}_label`,i=r._shortCodes.find(u=>u.key===s);if(!i)return;const l=n.replace(/{{status}}/g,c).replace(`[${s}]`,i.content);e.setAttribute("aria-label",l)}function ne(){r._optoutSuccessCountdownInterval&&(clearInterval(r._optoutSuccessCountdownInterval),r._optoutSuccessCountdownInterval=null),r._optoutSuccessAutoCloseTimer&&(clearTimeout(r._optoutSuccessAutoCloseTimer),r._optoutSuccessAutoCloseTimer=null)}function oe(){const e=f("optout-success");return!!(e&&!e.classList.contains("cky-hide"))}function L(){I(),v(),ie()}function De(){ne();const e=f("optout-buttons"),t=f("optout-success"),n=f("optout-success-subtext"),o=document.getElementById("ckyCCPAOptOut");if(!e||!t){L();return}e.style.display="none",t.classList.remove("cky-hide"),t.setAttribute("aria-live","polite"),t.focus(),o&&(o.disabled=!0),Y("=optout-option","cky-disabled",!1);const c=n&&n.querySelector("#ckyCountdownTimer")||document.getElementById("ckyCountdownTimer");let s=V;n&&!c&&!r._optoutSuccessSubtextTemplate&&(r._optoutSuccessSubtextTemplate=n.textContent||`Banner closes automatically in ${V} s...`);const i=r._optoutSuccessSubtextTemplate,l=i&&/\d+/.test(i),u=()=>{if(n){if(c){c.textContent=String(s);return}n.textContent=l?i.replace(/\d+/,String(s)):`Banner closes automatically in ${s} s...`}};u(),r._optoutSuccessCountdownInterval=setInterval(()=>{s-=1,s>=0&&u()},1e3),r._optoutSuccessAutoCloseTimer=setTimeout(L,ue)}function Ne(){ne();const e=f("optout-buttons"),t=f("optout-success"),n=f("optout-success-subtext"),o=document.getElementById("ckyCCPAOptOut");e&&(e.style.display=""),t&&t.classList.add("cky-hide"),o&&(o.disabled=!1),x("=optout-option","cky-disabled",!1);const c=n&&n.querySelector("#ckyCountdownTimer")||document.getElementById("ckyCountdownTimer");c?c.textContent="":n&&r._optoutSuccessSubtextTemplate&&(n.textContent=r._optoutSuccessSubtextTemplate)}function qe(){return()=>{if(k()!=="ccpa"||!T()){b()();return}ce(),De()}}function Ge(){if(oe()){a._ckySetInStore("action","yes"),L();return}v()}function He(){const t=document.getElementById("ckyBannerTemplate").innerHTML,n=new DOMParser().parseFromString(t,"text/html");Ie(n),document.body.insertAdjacentHTML("afterbegin",n.body.innerHTML),p()==="classic"&&m("=settings-button","false"),te(),we(),ve(),st(),tt(),Qe(),D(),ze(),Je(),pe(),Ce(),nt(),ot(),xe(),be()}function b(e="custom"){return()=>{ce(e),I(),v(),ie()}}function Fe(){if(a._ckySetInStore("action","yes"),oe()){L();return}I()}function ce(e="all"){const t=k(),n=T();a._ckySetInStore("action","yes"),t==="gdpr"?a._ckySetInStore("consent",e==="reject"?"no":"yes"):a._ckySetInStore("consent",n?"yes":"no");const o={accepted:[],rejected:[]};for(const c of r._categories){let s="no";t==="gdpr"?s=!c.isNecessary&&(e==="reject"||e==="custom"&&!T(c.slug))?"no":"yes":s=n&&!c.defaultConsent.ccpa?"no":"yes",a._ckySetInStore(`${c.slug}`,s),s==="no"?(o.rejected.push(c.slug),ee(c)):o.accepted.push(c.slug)}re(),z(o)}function Re(){const e=k(),t=r._shortCodes.find(C=>C.key==="cky_show_desc"),n=r._shortCodes.find(C=>C.key==="cky_hide_desc");if(!t||!n)return;const o=n.content,c=t.content,s=window.innerWidth<376?150:300,i=document.querySelector(`[data-cky-tag="${e==="gdpr"?"detail":"optout"}-description"]`);if(!i||i.textContent.length p");if(g.length<=1)return;let _="";for(let C=0;Cs&&B.insertAdjacentHTML("beforeend",`... ${c}`),_=`${_}${B.outerHTML}`,_.length>s)break}function le(){i.innerHTML=`${u}${o}`,y("=hide-desc-button",U),D()}function U(){i.innerHTML=_,y("=show-desc-button",le),D()}U()}function je(){const e=r._tags;Array.prototype.forEach.call(e,function(t){document.querySelectorAll("[data-cky-tag="+t.tag+"]").forEach(function(n){let o="";for(const c in t.styles)o+=`${c}: ${t.styles[c]};`;n.style.cssText=o})})}const Ue=document.createElement;document.createElement=(...e)=>{const t=Ue.call(document,...e);if(t.nodeName.toLowerCase()!=="script")return t;const n=t.setAttribute.bind(t);return Object.defineProperties(t,{src:{get:function(){return t.getAttribute("src")},set:function(o){return M(t,o)&&n("type","javascript/blocked"),n("src",o),!0}},type:{get:function(){return t.getAttribute("type")},set:function(o){return o=M(t)?"javascript/blocked":o,n("type",o),!0}}}),t.setAttribute=(o,c)=>{if(o==="type"||o==="src")return t[o]=c;n(o,c),o==="data-cookieyes"&&!M(t)&&n("type","text/javascript")},t};function We(e){for(const{addedNodes:t}of e)for(const n of t)if(!(!n.src||!n.nodeName||!["script","iframe"].includes(n.nodeName.toLowerCase())))try{const o=n.src.startsWith("//")?`${window.location.protocol}${n.src}`:n.src,{hostname:c,pathname:s}=new URL(o),i=Ye(`${c}${s}`);if(Ve(n,i),!j(i))continue;const l=a._ckyRandomString(8,!1);if(n.nodeName.toLowerCase()==="iframe")Ze(n,l);else{n.type="javascript/blocked";const d=function(g){g.preventDefault(),n.removeEventListener("beforescriptexecute",d)};n.addEventListener("beforescriptexecute",d)}const u=document.head.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY?"head":"body";n.remove(),r._backupNodes.push({position:u,node:n.cloneNode(),uniqueID:l})}catch(o){}}function re(){if(navigator.doNotTrack===1)return;const e=a._ckyGetFromStore("consent");k()==="gdpr"&&(!e||e!=="yes")||(r._backupNodes=r._backupNodes.filter(({position:t,node:n,uniqueID:o})=>{try{if(j(n.src))return!0;if(n.nodeName.toLowerCase()==="script"){const c=document.createElement("script");c.src=n.src,c.type="text/javascript",document[t].appendChild(c)}else{const c=document.getElementById(o);if(!c)return!1;const s=document.createElement("iframe");s.src=n.src,s.width=c.offsetWidth,s.height=c.offsetHeight,c.parentNode.insertBefore(s,c),c.parentNode.removeChild(c)}return!1}catch(c){return console.error(c),!1}}))}function Ve(e,t){const n=e.hasAttribute("data-cookieyes")&&e.getAttribute("data-cookieyes");if(!n)return;const o=n.replace("cookieyes-","");for(const s of r._categories)if(s.isNecessary&&s.slug===o)return;const c=r._providersToBlock.find(({re:s})=>s===t);c?c.isOverridden?c.categories.includes(o)||c.categories.push(o):(c.categories=[o],c.isOverridden=!0):r._providersToBlock.push({re:t,categories:[o],fullPath:!1})}const Ke=new MutationObserver(We);Ke.observe(document.documentElement,{childList:!0,subtree:!0});function Ye(e){return e.replace(/^www./,"")}function se(e){const t=a._ckyGetFromStore(e);return t==="no"||!t&&r._categories.some(n=>n.slug===e&&!n.isNecessary)}function j(e){const t=r._providersToBlock.find(({re:n})=>new RegExp(ke(n)).test(e));return t&&t.categories.some(n=>se(n))}function M(e,t){return e.hasAttribute("data-cookieyes")&&se(e.getAttribute("data-cookieyes").replace("cookieyes-",""))||j(t||e.src)}function Qe(){const e=r._shortCodes.find(s=>s.key==="cky_readmore");if(!e.status)return;const t=e.content,n=r._bannerConfig.config.readMore.styles,o=document.querySelector('[data-cky-tag="description"]');if(!o)return;if(o.childNodes.length>1){const s=document.querySelector('[data-cky-tag="description"] p:last-child');s&&s.insertAdjacentHTML("beforeend",` ${t}`)}else o.insertAdjacentHTML("beforeend",` ${t}`);const c=document.querySelectorAll('[data-cky-tag="readmore-button"]');c.length<1||Array.from(c).forEach(s=>{for(const i in n)n[i]&&(s.style[i]=n[i])})}function D(){if(!r._bannerConfig.config.showMore||!r._bannerConfig.config.showLess)return;const e=r._bannerConfig.config.showMore.styles,t=r._bannerConfig.config.showLess.styles;if(e){const n=document.querySelectorAll('[data-cky-tag="show-desc-button"]');n.length>0&&Array.from(n).forEach(o=>{for(const c in e)e[c]&&(o.style[c]=e[c])})}if(t){const n=document.querySelectorAll('[data-cky-tag="hide-desc-button"]');n.length>0&&Array.from(n).forEach(o=>{for(const c in t)t[c]&&(o.style[c]=t[c])})}}function ze(){if(!r._bannerConfig.config.alwaysActive)return;const e=r._bannerConfig.config.alwaysActive.styles;if(!e)return;const t=document.querySelectorAll(".cky-always-active");t.length<1||Array.from(t).forEach(n=>{for(const o in e)e[o]&&(n.style[o]=e[o])})}function Je(){if(!r._bannerConfig.config.manualLinks)return;const e=r._bannerConfig.config.manualLinks.styles;if(!e)return;const t=document.querySelectorAll('.cky-link, a.cky-link, [data-cky-tag="detail"] a, [data-cky-tag="optout-popup"] a, [data-cky-tag="notice"] a');t.length<1||Array.from(t).forEach(n=>{if(n.getAttribute("data-cky-tag")!=="readmore-button"){for(const o in e)e[o]&&(n.style[o]=e[o]);e.color&&(n.style.textDecorationColor=e.color)}})}function ie(){k()==="gdpr"&&te(!0),r._bannerConfig.behaviours.reloadBannerOnAccept===!0&&window.location.reload()}function Xe(){document.getElementById("cky-style")||!W||document.head.insertAdjacentHTML("beforeend",` `)}function T(e=""){return(e?["ckySwitch","ckyCategoryDirect"]:["ckyCCPAOptOut"]).some(n=>{const o=document.getElementById(`${n}${e}`);return o&&o.checked})}function Ze(e,t){const o=r._shortCodes.find(d=>d.key==="cky_video_placeholder").content,{offsetWidth:c,offsetHeight:s}=e;if(c===0||s===0)return;e.insertAdjacentHTML("beforebegin",`${o}`.replace("[UNIQUEID]",t));const i=document.getElementById(t);i.style.width=`${c}px`,i.style.height=`${s}px`;const l=document.querySelector(`#${t} .video-placeholder-text-normal`);l.style.display="none";const u=et(e.src);u&&(i.classList.replace("video-placeholder-normal","video-placeholder-youtube"),i.style.backgroundImage=`linear-gradient(rgba(76,72,72,.7),rgba(76,72,72,.7)),url('https://img.youtube.com/vi/${u}/maxresdefault.jpg')`,l.classList.replace("video-placeholder-text-normal","video-placeholder-text-youtube"))}function et(e){const t=e.match(/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return t&&Array.isArray(t)&&t[2]&&t[2].length===11?t[2]:!1}function tt(){const e=r._bannerConfig.config.videoPlaceholder.status,t=r._bannerConfig.config.videoPlaceholder.styles;if(!e||!e)return;const n=document.querySelectorAll('[data-cky-tag="placeholder-title"]');n.length<1||Array.from(n).forEach(o=>{o.style.display="block",o.addEventListener("click",()=>{a._ckyGetFromStore("action")&&E()});for(const c in t)t[c]&&(o.style[c]=t[c])})}function nt(){if(!r._rtl)return;["notice","detail","optout-popup","revisit-consent","video-placeholder"].forEach(function(t){f(t)&&f(t).classList.add("cky-rtl")})}function ae(e){const t=f(e);t&&t.focus()}function ot(){let e="flex-end";["detail-powered-by","optout-powered-by"].map(t=>{const n=document.querySelector(`[data-cky-tag="${t}"]`);if(n)return n.style.display="flex",n.style.justifyContent=e,n.style.alignItems="center",n})}function ct(){document.querySelector("body").addEventListener("click",e=>{const t=".cky-banner-element, .cky-banner-element *";(e.target.matches?e.target.matches(t):e.target.msMatchesSelector(t))&&E()})}function rt(){for(const e of r._categories)a._ckyGetFromStore(e.slug)!=="yes"&&ee(e)}function st(){const e=r._bannerConfig.config.optOption.toggle,t=e.states.active.styles["background-color"],n=e.states.inactive.styles["background-color"];x("=optout-option","cky-disabled",!1);const o=r._shortCodes.find(l=>l.key==="cky_optout_toggle_label"),c=r._shortCodes.find(l=>l.key==="cky_optout_option_title"),s=o.content.replace("[cky_optout_option_title]",c.content),i=a._ckyGetFromStore("consent")==="yes";it(document.getElementById("ckyCCPAOptOut"),s,{checked:i,disabled:!1,addListeners:!0},{activeColor:t,inactiveColor:n},!0)}function it(e,t,{checked:n,disabled:o,addListeners:c},{activeColor:s,inactiveColor:i},l=!1){e&&(l&&c&&y("=optout-option-title",()=>e.click()),e.checked=n,e.disabled=o,e.style.backgroundColor=n?s:i,A(e,n,t,l),c&&e.addEventListener("change",({currentTarget:u})=>{const d=u.checked;u.style.backgroundColor=d?s:i,A(e,d,t,l)}))}window.revisitCkyConsent=()=>E();window.getCkyConsent=function(){const e={activeLaw:"",categories:{},isUserActionCompleted:!1,consentID:"",languageCode:""};try{e.activeLaw=k(),r._categories.forEach(t=>{e.categories[t.slug]=a._ckyGetFromStore(t.slug)==="yes"}),e.isUserActionCompleted=a._ckyGetFromStore("action")==="yes",e.consentID=a._ckyGetFromStore("consentid")||"",e.languageCode=r._language||""}catch(t){}return e};})(); ; jQuery(document).ready(function($){(function(){$('.xoo-aff-input-date').each(function(index,dateEl){var $dateEl=$(dateEl),dateData=$dateEl.data('date');$dateEl.datepicker(dateData)})}());var all_states=xoo_aff_localize.states?JSON.parse(xoo_aff_localize.states):{};var countries_locale=xoo_aff_localize.countries_locale?JSON.parse(xoo_aff_localize.countries_locale):{};var SelectCountry=function($select){var self=this;self.$selectCountry=$select;self.id=self.$selectCountry.attr('name');self.$form=self.$selectCountry.closest('form');self.$selectState=self.$form.find('.xoo-aff-states[data-country_field="'+self.id+'"]');self.$selectPhoneCode=self.$form.find('.xoo-aff-phone_code[data-country_field="'+self.id+'"]');self.statesHandler=self.$selectState.length?self.states():!1;self.$selectCountry.on('change',{country:self},this.onChange);self.$selectCountry.trigger('change')} SelectCountry.prototype.onChange=function(event){var self=event.data.country;if(self.statesHandler){self.statesHandler.updateStateField(event)} if(self.$selectPhoneCode.length){self.updatePhoneCodeField()}} SelectCountry.prototype.updatePhoneCodeField=function(){var country=this,$codeOption=country.$selectPhoneCode.find('option[data-country_code="'+country.$selectCountry.val()+'"]');if($codeOption){$codeOption.prop('selected','selected')} country.$selectPhoneCode.trigger('change')} SelectCountry.prototype.states=function(){var country=this,$selectState=country.$selectState,defaultValue=country.$selectState.data('default_state');var Handler={init:function(){Handler.$statePlaceholder=$selectState.find('option[value="placeholder"]');Handler.$selectStateCont=$selectState.parent();Handler.$inputState=Handler.createStateInput()},getStates:function(){var states=all_states[country.$selectCountry.val()];return states===undefined||states.length===0?null:states},createStateInput:function(){$stateInput=$('').prop('name',$selectState.attr('name')).prop('placeholder',Handler.$statePlaceholder.html()).addClass($selectState.attr('class'));var excludeID=['select2','select2Id','country_field'];$.each($selectState.data(),function(id,value){if(!excludeID.includes(id)){$stateInput.attr('data-'+id,value)}});return $stateInput},updateStateField:function(event){var country=event.data.country,countryVal=country.$selectCountry.val();$selectState.find('option').not(Handler.$statePlaceholder).remove();var active_states=Handler.getStates();if(!active_states){Handler.$selectStateCont.find('.select2-container').remove();Handler.$selectStateCont.append(Handler.$inputState)}else{Handler.$inputState.remove();Handler.$selectStateCont.append($selectState);$.each(active_states,function(state_key,label){$selectState.append('')}) if(defaultValue){Handler.$selectStateCont.find('option[value='+defaultValue+']').prop('selected','selected')} if($selectState.attr('select2')==='yes'){$selectState.select2()}}}} Handler.init();return Handler} $.each($('select.xoo-aff-country'),function(index,el){new SelectCountry($(el))});var password_strength_meter={init:function(){$(document.body).on('keyup change','input.xoo-aff-password[check_strength="yes"]',this.strengthMeter)},strengthMeter:function(){var wrapper=$(this).parents('.xoo-aff-group'),form=wrapper.parents('form');submit=form.length?$('button[type="submit"]',form):!1,field=$(this),strength=1,passStrength=$(this).attr('strength_pass').length?$(this).attr('strength_pass'):xoo_aff_localize.password_strength.min_password_strength,fieldValue=field.val();password_strength_meter.includeMeter(wrapper,field);strength=password_strength_meter.checkPasswordStrength(wrapper,field,passStrength);if(submit&&fieldValue.length>0&&strength');$(document.body).trigger('xoo-aff-password-strength-added')}else{meter.show();$(document.body).trigger('xoo-aff-password-strength-show')}},checkPasswordStrength:function(wrapper,field,passStrength){var meter=wrapper.find('.xoo-aff-password-strength'),hint=wrapper.find('.xoo-aff-password-hint'),hint_html=''+xoo_aff_localize.password_strength.i18n_password_hint+'',strength=wp.passwordStrength.meter(field.val(),wp.passwordStrength.userInputBlacklist()),error='';meter.removeClass('short bad good strong');hint.remove();if(meter.is(':hidden')){return strength} if(strength'+''+state.text+'');return $state};$('select.xoo-aff-phone_code[select2="yes"]').each(function(key,el){$(el).select2({templateResult:formatState,templateSelection:formatState,dropdownCssClass:"xoo-aff-select2-dropdown"})})} $('body').on('click','.xoo-aff-pw-toggle',function(){var $password=$(this).closest('.xoo-aff-group').find('input.xoo-aff-password');$(this).toggleClass('active');if($(this).hasClass('active')){$password.attr('type','text');$(this).find('.xoo-aff-pwtog-hide').show();$(this).find('.xoo-aff-pwtog-show').hide()}else{$password.attr('type','password');$(this).find('.xoo-aff-pwtog-show').show();$(this).find('.xoo-aff-pwtog-hide').hide()}}) $('body').on('change','.xoo-aff-file-profile input[type="file"]',function(){var file=this.files[0],$cont=$(this).closest('.xoo-aff-group');if(file){const reader=new FileReader();reader.onload=function(e){profileImage.init($cont,e.target.result);profileImage.onImageLoad();if($cont.find('.xoo-ff-file-remove')){$cont.find('.xoo-ff-files').remove()}};reader.readAsDataURL(file)}else{profileImage.init($cont,'');profileImage.onImageRemove()}});var profileImage={init:function($cont,imgSrc=''){this.$cont=$cont;this.imgSrc=imgSrc;this.$preview=$cont.find('.xoo-ff-file-preview');this.$icon=$cont.find('.xoo-aff-input-icon ');this.$checkIcon=$cont.find('.xoo-ff-file-plcheck');this.$addIcon=$cont.find('.xoo-ff-file-pladd')},onImageLoad:function(){this.$preview.attr('src',profileImage.imgSrc).show();this.$icon.hide();this.$addIcon.hide();this.$checkIcon.show()},onImageRemove:function(){this.$icon.show();this.$checkIcon.hide();this.$addIcon.show();this.$preview.attr('src','').hide()}} $('.xoo-aff-file-profile-cont').each(function(index,el){var $el=$(el),$attachedFiled=$el.find('.xoo-ff-file-link');if($attachedFiled.length){profileImage.init($el,$attachedFiled.attr('href'));profileImage.onImageLoad()}}) $('body').on('click','.xoo-aff-file-profile-cont .xoo-ff-file-remove',function(){var $cont=$(this).closest('.xoo-aff-file-profile-cont');profileImage.init($cont);profileImage.onImageRemove()});$('body').on('click','.xoo-ff-file-remove',function(){$(this).closest('div').remove()});class AutoComplete{constructor($input){this.$input=$input;this.$form=$input.closest('form');this.hasParts=this.$form.find('[data-autocompad_parent="'+this.$input.attr('name')+'"]').length;this.inputInit=!1;this.$browserFetch=this.$input.closest('.xoo-aff-group').find('.xoo-aff-auto-fetch-loc');this.events()} events(){this.$input.on('focus',this.init.bind(this));if(this.$browserFetch.length){this.$browserFetch.on('click',{handler:this},this.browserGetLocation)}} browserGetLocation(event){var handler=event.data.handler;if(!navigator.geolocation){$(this).html('Not supported by browser');return} var $fetchEl=$(this);navigator.geolocation.getCurrentPosition((position)=>{handler.googleReverseGeolocate(position.coords.latitude,position.coords.longitude)},(error)=>{$fetchEl.find('span').text(error.message)})} googleReverseGeolocate(lat,long){const geocoder=new google.maps.Geocoder();const latlng={lat:parseFloat(lat),lng:parseFloat(long)};var autocompleteHandler=this;geocoder.geocode({location:latlng},function(results,status){if(status==="OK"){if(results[0]){autocompleteHandler.fillAddress(results[0].address_components,results[0].formatted_address)}else{console.log("No results found")}}else{autocompleteHandler.$browserFetch.find('span').text(status)}})} init(){if(this.inputInit)return;var placesArgs={fields:["address_components"],types:["address"],} if(xoo_aff_localize.geolocate_countries){placesArgs.componentRestrictions={country:xoo_aff_localize.geolocate_countries}} this.location=new google.maps.places.Autocomplete(this.$input.get(0),placesArgs);if(this.hasParts){this.location.addListener('place_changed',this.onAddressChange.bind(this))} this.inputInit=!0} onAddressChange(){this.fillAddress(this.location.getPlace().address_components)} fillAddress(components,formatted_address=''){var autocompleteHandler=this,$form=this.$form,addressParts={country:'',postal_code:'',address:'',states:'',city:'',states_longname:'',country_longname:''};$.each(components,function(index,component){var componentType=component.types[0];switch(componentType){case 'country':addressParts.country=component.short_name;addressParts.country_longname=component.long_name;break;case "postal_code_suffix":addressParts.postal_code+=component.long_name;break;case "postal_code":addressParts.postal_code+=component.long_name;break;case "locality":case "postal_town":case "administrative_area_level_3":addressParts.city=component.long_name;break;case 'administrative_area_level_1':addressParts.states=component.short_name;addressParts.states_longname=component.long_name;break;default:addressParts.address+=(component.long_name+' ');break}});if(!addressParts.city&&addressParts.states&&(!countries_locale[addressParts.country]||!countries_locale[addressParts.country].state||countries_locale[addressParts.country].state.hidden)){addressParts.city=addressParts.states;addressParts.states=null} var partsNotUsed={},partsUsedCounter=0;$.each(addressParts,function(part,value){var $inputParts=$form.find('[data-autocompad_type="'+part+'"][data-autocompad_parent="'+autocompleteHandler.$input.attr('name')+'"]');if(!$inputParts.length){partsNotUsed[part]=value;return!0} partsUsedCounter++;$inputParts.each(function(index,inputPart){var $inputPart=$(inputPart);if((part==='states'||part==='country')&&$inputPart.is('input')){$inputPart.val(addressParts[part+'_longname'])}else{if(part==='states'&&!$inputPart.find('option[value="'+value+'"]').length){var optionFound;$inputPart.find('option').each(function(index,option){var $option=$(option);if($option.val().includes('-'+value)){optionFound=$option;return!1}}) if(!optionFound){optionFound=$inputPart.find("option:contains('"+addressParts.states_longname+"')")} if(optionFound.length){$inputPart.val(optionFound.val())}}else{$inputPart.val(value)} $inputPart.trigger('change')}})});if(partsUsedCounter>0){var inputAddress=addressParts.address;$.each(['city','states','postal_code','country'],function(index,leftPart){if(partsNotUsed[leftPart]){var partLongName=partsNotUsed[leftPart+'_longname'];partLongName=partLongName?partLongName:partsNotUsed[leftPart];inputAddress+=(', '+partLongName)}});this.$input.val(inputAddress)}else if(formatted_address){this.$input.val(formatted_address)}}} if(xoo_aff_localize.geolocate_apikey){$('input[data-autocompadd="yes"]').each(function(){new AutoComplete($(this))})} $('.xoo-aff-group').on('focusin','input, textarea, select',function(){$(this).closest('.xoo-aff-group').addClass('xoo-aff-isfocused')});$('.xoo-aff-group').on('focusout','input, textarea, select',function(){$(this).closest('.xoo-aff-group').removeClass('xoo-aff-isfocused')})}); function switchFeature(name){var feature=getCookie('_pre-assistant-config-'+name);if(!feature||feature==='0'){setCookie('_pre-assistant-config-'+name,1)}else{setCookie('_pre-assistant-config-'+name,0)} window.location.reload()} function setCookie(param,value,exdays){var date=new Date();date.setTime(date.getTime()+(exdays*24*60*60*1000));var expires='expires='+date.toUTCString();document.cookie=param+'='+value+';'+expires+';path=/'} function getCookie(param){var name=param+'=';var cookie_list=document.cookie.split(';');for(var i=0;i