(function($){'use strict';function login_dropdown(){$('.site-header-account').mouseenter(function(){if(!$('.account-dropdown',this).has('.account-wrap').length){$('.account-dropdown',this).append($('.account-wrap'))}})} function handleWindow(){var body=document.querySelector('body');if(window.innerWidth>body.clientWidth+5){body.classList.add('has-scrollbar');body.setAttribute('style','--scroll-bar: '+(window.innerWidth-body.clientWidth)+'px')}else{body.classList.remove('has-scrollbar')}} function minHeight(){var $body=$('body'),bodyHeight=$(window).outerHeight(),headerHeight=$('header.header-1').outerHeight(),footerHeight=$('footer.site-footer').outerHeight(),$adminBar=$('#wpadminbar');if($adminBar.length>0){headerHeight+=$adminBar.height()} if($body.find('header.header-1').length){$('.site-content').css({'min-height':bodyHeight-headerHeight-footerHeight-90})}} function setPositionLvN($item){var sub=$item.children('.sub-menu'),offset=$item.offset(),width=$item.outerWidth(),screen_width=$(window).width(),sub_width=sub.outerWidth();var align_delta=offset.left+width+sub_width-screen_width;if(align_delta>0){if($item.parents('.menu-item-has-children').length){sub.css({left:'auto',right:'100%'})}else{sub.css({left:'auto',right:'0'})}}else{sub.css({left:'',right:''})}} function initSubmenuHover(){$('.site-header .primary-navigation .menu-item-has-children').hover(function(event){var $item=$(event.currentTarget);setPositionLvN($item)})} function backtotop(){$('.scrollup').on('click',function(){$("html, body").animate({scrollTop:0},600);return!1})} initSubmenuHover();minHeight();handleWindow();login_dropdown();backtotop()})(jQuery); /*! This file is auto-generated */ /*! * imagesLoaded PACKAGED v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ !function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})), /*! * imagesLoaded v5.0.0 * JavaScript is all like "You images are done yet or what?" * MIT License */ function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));; !function(){"use strict";var e=-1 *').text();$(this).find('.elementor-text-editor > *').attr('data-hover',$text)})} text_editor_hover()})(jQuery); (function($){'use strict';$(document).ready(function(){$('.menu-mobile-nav-button').on('click',function(e){e.preventDefault();$('html').toggleClass('mobile-nav-active')});$('.digitaz-overlay, .mobile-nav-close').on('click',function(e){e.preventDefault();$('html').toggleClass('mobile-nav-active')});var $menu_mobile=$('.handheld-navigation');if($menu_mobile.length>0){$menu_mobile.find('.menu-item-has-children > a, .page_item_has_children > a').each((index,element)=>{var $dropdown=$('');$dropdown.insertAfter(element);$dropdown.on('click',function(e){e.preventDefault();$dropdown.toggleClass('toggled-on');$dropdown.siblings('ul').stop().slideToggle(400)})})} $('.mobile-nav-tabs li').on('click',function(){if($(this).hasClass('active'))return;var menuName=$(this).data('menu');$(this).parent().find('.active').removeClass('active');$(this).addClass('active');$('.mobile-menu-tab').removeClass('active');$('.mobile-'+menuName+'-menu').addClass('active')})})})(jQuery); (function($){$(function(){$('.main-navigation .has-mega-menu.has-stretchwidth').hover(function(e){let $body=$('body'),pleft=$(this).offset().left,bodyleft=$body.offset().left;$('.mega-stretchwidth',this).css({left:-pleft+bodyleft,width:$body.width()})});$('.main-navigation .has-mega-menu.has-containerwidth').hover(function(e){let $parent=$(this).closest('.container , .elementor-container, .col-full, .header-container'),pleft=$parent.offset().left+parseInt($parent.css('padding-left')),cleft=$(this).offset().left;$('.mega-containerwidth',this).css({left:pleft-cleft,width:$parent.width()})});$('.main-navigation .has-mega-menu').has('ul.custom-subwidth').hover(function(e){let pleft=parseFloat($(this).children('a').css('padding-left')),$oleft=$(this).offset().left+pleft,$itemwidth=parseInt($(this).children('.custom-subwidth').css('width')),$bodywidth=$('body').width();let $offset=$oleft+$itemwidth-$bodywidth;if($offset>=0){$('.mega-menu.custom-subwidth',this).css({left:-$offset+pleft})}else{$('.mega-menu.custom-subwidth',this).css({left:pleft})}})})})(jQuery); (function($){'use strict';$('body').on('click','.digitaz-login-form-ajax button[type="submit"]',(event)=>{var $this=$(event.currentTarget);var $form=$this.closest('form');$.ajax({type:'POST',url:digitazAjax.ajaxurl,data:$form.serialize(),beforeSend:()=>{$form.addClass('loading');$form.find('input,button').prop('disabled',!0)},success:(response)=>{if(response.status){$form.find('.result-error').remove();location.reload()}else{if($form.find('.result-error').length<=0){$form.prepend(`
${response.msg}
`)}}},complete:function(){$form.find('input,button').prop('disabled',!1);$form.removeClass('loading')}});return!1})})(jQuery); ((c,r,d)=>{d={$div:null,settings:null,store:null,chatbox:!1,showed_at:0,is_ready:!1,is_mobile:/Mobile|Android|iPhone|iPad/i.test(navigator.userAgent),can_qr:c.QrCreator&&"function"==typeof QrCreator.render,...d},(c.joinchat_obj=d).$=function(t){return this.$div.querySelector(t)},d.$$=function(t){return this.$div.querySelectorAll(t)},d.send_event=function(n){if((n={event_category:"JoinChat",event_label:"",event_action:"",chat_channel:"whatsapp",chat_id:"--",is_mobile:this.is_mobile?"yes":"no",page_location:location.href,page_title:r.title||"no title",...n}).event_label=n.event_label||n.link||"",n.event_action=n.event_action||n.chat_channel+": "+n.chat_id,delete n.link,r.dispatchEvent(new CustomEvent("joinchat:event",{detail:n,cancelable:!0}))){let t=c[this.settings.data_layer]||c[c.gtm4wp_datalayer_name]||c.dataLayer;if("object"==typeof t){"undefined"==typeof gtag&&(c.gtag=function(){t.push(arguments)});let e=this.settings.ga_event||"generate_lead",s={transport_type:"beacon",...n},a=(Object.keys(s).forEach(t=>{"page_location"===t?s[t]=s[t].substring(0,1e3):"page_referrer"===t?s[t]=s[t].substring(0,420):"page_title"===t?s[t]=s[t].substring(0,300):"string"==typeof s[t]&&(s[t]=s[t].substring(0,100))}),[]),i=t=>{a.includes(t)||(t.startsWith("G-")||t.startsWith("GT-"))&&(a.push(t),gtag("event",e,{send_to:t,...s}))};if(c.google_tag_data&&google_tag_data.tidr&&google_tag_data.tidr.destination)for(var o in google_tag_data.tidr.destination)i(o);t.forEach(t=>{"config"===t[0]&&t[1]&&i(t[1])}),this.settings.gads&>ag("event","conversion",{send_to:this.settings.gads})}var e=n.event_category;delete n.event_category,"object"==typeof t&&t.push({event:e,...n}),"function"==typeof fbq&&fbq("trackCustom",e,n)}},d.get_wa_link=function(t,e,s){e=void 0!==e?e:this.settings.message_send||"",s=void 0!==s?s:this.settings.whatsapp_web&&!this.is_mobile;s=new URL((s?"https://web.whatsapp.com/send?phone=":"https://wa.me/")+(t||this.settings.telephone));return e&&s.searchParams.set("text",e),s.toString()},d.show=function(t){this.$div.removeAttribute("hidden"),this.$div.classList.add("joinchat--show"),t&&this.$div.classList.add("joinchat--tooltip")},d.hide=function(){this.$div.classList.remove("joinchat--show")},d.chatbox_show=function(){this.chatbox||(this.chatbox=!0,this.showed_at=Date.now(),this.$div.classList.add("joinchat--chatbox"),this.settings.message_badge&&this.$(".joinchat__badge").classList.replace("joinchat__badge--in","joinchat__badge--out"),r.dispatchEvent(new Event("joinchat:show")))},d.chatbox_hide=function(){this.chatbox&&(this.chatbox=!1,this.$div.classList.remove("joinchat--chatbox","joinchat--tooltip"),this.settings.message_badge&&this.$(".joinchat__badge").classList.remove("joinchat__badge--out"),r.dispatchEvent(new Event("joinchat:hide")))},d.save_hash=function(){var t;!this.settings.message_hash||this.settings.message_delay<0||(t=(this.store.getItem("joinchat_hashes")||"").split(",").filter(Boolean)).includes(this.settings.message_hash)||(t.push(this.settings.message_hash),this.store.setItem("joinchat_hashes",t.join(",")))},d.open_whatsapp=function(t,e){t=t||this.settings.telephone,e=void 0!==e?e:this.settings.message_send||"";t={link:this.get_wa_link(t,e),chat_channel:"whatsapp",chat_id:t,chat_message:e};r.dispatchEvent(new CustomEvent("joinchat:open",{detail:t,cancelable:!0}))&&(this.send_event(t),c.open(t.link,"joinchat","noopener"))},d.need_optin=function(){return this.$div.classList.contains("joinchat--optout")},d.use_qr=function(){return!!this.settings.qr&&this.can_qr&&!this.is_mobile},d.open=function(t,e,s){t&&!this.need_optin()||!d.$(".joinchat__chatbox")?Date.now(){var e=t.children;t.replaceWith(e[Math.floor(Math.random()*e.length)].innerHTML)})},d.qr=function(t,e){var s=r.createElement("CANVAS");return QrCreator.render(Object.assign({text:t,radius:.4,background:"#FFF",size:200*(c.devicePixelRatio||1)},this.settings.qr||{},e||{}),s),s};var t=()=>{if(d.$div=r.querySelector(".joinchat"),d.$div){d.settings=JSON.parse(d.$div.dataset.settings);try{localStorage.test=2,d.store=localStorage}catch(t){d.store={_data:{},setItem:function(t,e){this._data[t]=String(e)},getItem:function(t){return this._data.hasOwnProperty(t)?this._data[t]:null}}}if(d.settings&&d.settings.telephone){if(d.is_mobile||!d.settings.mobile_only){r.dispatchEvent(new Event("joinchat:starting"));var i=1e3*d.settings.button_delay,n=Math.max(0,1e3*d.settings.message_delay);let t=!!d.settings.message_hash;var o=parseInt(d.store.getItem("joinchat_views")||1)>=d.settings.message_views,h=(d.store.getItem("joinchat_hashes")||"").split(",").filter(Boolean);let s=void 0!==d.settings.cta_viewed?d.settings.cta_viewed:-1!==h.indexOf(d.settings.message_hash||"none"),e=!s&&(d.settings.message_badge||!t||!n||!o),a=(setTimeout(()=>d.show(e),i),()=>d.open());if(t&&!s&&n){let t;d.settings.message_badge?t=setTimeout(()=>d.$(".joinchat__badge").classList.add("joinchat__badge--in"),i+n):o&&(t=setTimeout(a,i+n)),r.addEventListener("joinchat:show",()=>clearTimeout(t),{once:!0})}if(h=d.$(".joinchat__button"),!d.is_mobile){let t;h.addEventListener("mouseenter",()=>{d.$(".joinchat__chatbox")&&(t=setTimeout(a,1500))}),h.addEventListener("mouseleave",()=>{clearTimeout(t)})}if(h.addEventListener("click",a),d.$(".joinchat__open")?.addEventListener("click",()=>d.open(!0)),d.$(".joinchat__close")?.addEventListener("click",()=>d.close()),d.$("#joinchat_optin")?.addEventListener("change",t=>d.$div.classList.toggle("joinchat--optout",!t.target.checked)),d.$(".joinchat__scroll")?.addEventListener("wheel",function(t){t.preventDefault(),this.scrollTop+=t.deltaY},{passive:!1}),d.is_mobile){let e,t,s=()=>{var t=(r.activeElement.type||"").toLowerCase();["date","datetime","email","month","number","password","search","tel","text","textarea","time","url","week"].includes(t)?d.chatbox?(d.chatbox_hide(),setTimeout(()=>d.hide(),400)):d.hide():d.show()};["focusin","focusout"].forEach(t=>r.addEventListener(t,t=>{t.target.matches("input, textarea")&&!d.$div.contains(t.target)&&(clearTimeout(e),e=setTimeout(s,200))})),c.addEventListener("resize",()=>{clearTimeout(t),t=setTimeout(()=>{d.$div.style.setProperty("--vh",c.innerHeight+"px")},200)}),c.dispatchEvent(new Event("resize"))}if(d.use_qr()?d.$(".joinchat__qr").appendChild(d.qr(d.get_wa_link(void 0,void 0,!1))):d.$(".joinchat__qr")?.remove(),n&&!o&&d.store.setItem("joinchat_views",parseInt(d.store.getItem("joinchat_views")||0)+1),r.addEventListener("joinchat:show",()=>{let s=d.$(".joinchat__scroll"),e=d.$(".joinchat__chat"),a=d.$$(".joinchat__bubble");if(!e)return;if(t&&d.rand_text(e),a.length<=1||c.matchMedia("(prefers-reduced-motion)").matches)return void setTimeout(()=>e.dispatchEvent(new Event("joinchat:bubbles")),1);a.forEach(t=>t.classList.add("joinchat--hidden")),d.$(".joinchat__optin")?.classList.add("joinchat--hidden");let i=0,n=(t,e)=>Math.round(Math.random()*(e-t)+t),o=(t,e)=>{d.$(".joinchat__bubble--loading")?.remove(),t.classList.remove("joinchat--hidden"),s.scrollTop=s.scrollHeight,setTimeout(h,e)},h=()=>{if(i>=a.length)d.$(".joinchat__optin")?.classList.remove("joinchat--hidden"),e.dispatchEvent(new Event("joinchat:bubbles"));else{let t=a[i++];t.classList.contains("joinchat__bubble--note")?o(t,100):(e.insertAdjacentHTML("beforeend",'
'),s.scrollTop=s.scrollHeight,setTimeout(()=>o(t,n(400,600)),60*t.textContent.split(/\s+/).length+n(100,200)))}};h()},{once:!0}),"#joinchat"!==(i=new URL(c.location)).hash&&!i.searchParams.has("joinchat")||(h=1e3*(parseInt(i.searchParams.get("joinchat"))||0),setTimeout(()=>d.show(),h),setTimeout(()=>d.chatbox_show(),700+h)),r.addEventListener("click",t=>{var e;t.target.closest('.joinchat_open, .joinchat_app, a[href="#joinchat"], a[href="#whatsapp"]')&&(t.preventDefault(),e=!!t.target.closest('.joinchat_app, a[href="#whatsapp"]'),d.open(e,t.target.dataset.phone,t.target.dataset.message))}),r.addEventListener("click",t=>{t.target.closest(".joinchat_close")&&(t.preventDefault(),d.close())}),n=r.querySelectorAll(".joinchat_show, .joinchat_force_show"),t&&n&&"IntersectionObserver"in c){let e=new IntersectionObserver(t=>{t.forEach(t=>{t.intersectionRatio<=0||s&&!t.target.classList.contains("joinchat_force_show")||(e.disconnect(),a())})});n.forEach(t=>e.observe(t))}d.is_ready=!0,r.dispatchEvent(new Event("joinchat:start"))}else d.hide(),r.addEventListener("click",t=>{t.target.closest('.joinchat_open, .joinchat_app, a[href="#joinchat"], a[href="#whatsapp"]')&&(t.preventDefault(),d.open_whatsapp(t.target.dataset.phone,t.target.dataset.message))});if(d.can_qr&&!d.is_mobile?r.querySelectorAll(".joinchat-button__qr").forEach(t=>t.appendChild(d.qr(d.get_wa_link(t.dataset.phone,t.dataset.message,!1)))):r.querySelectorAll(".wp-block-joinchat-button figure").forEach(t=>t.remove()),void 0!==d.settings.sku&&"function"==typeof jQuery){let a=d.settings.message_send;jQuery("form.variations_form").on("found_variation reset_data",function(t,e){let s=e&&e.sku||d.settings.sku;d.$$(".joinchat__chat jc-sku").forEach(t=>t.textContent=s),d.settings.message_send=a.replace(/.*<\/jc-sku>/g,s)})}}}};"loading"!==r.readyState?t():r.addEventListener("DOMContentLoaded",t)})(window,document,window.joinchat_obj||{});; !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.sbjs=e()}}(function(){return function e(t,r,n){function a(s,o){if(!r[s]){if(!t[s]){var c="function"==typeof require&&require;if(!o&&c)return c(s,!0);if(i)return i(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var p=r[s]={exports:{}};t[s][0].call(p.exports,function(e){var r=t[s][1][e];return a(r||e)},p,p.exports,e,t,r,n)}return r[s].exports}for(var i="function"==typeof require&&require,s=0;s0))return r=s.getHost(e),!0;for(var t=0;t0)for(var i=0;i0)for(var s=0;se.split(".").reduce((t,e)=>t&&t[e],t)),s=()=>null,i=t=>null===t||t===undefined?"":t,o="wc/store/checkout";function a(t){window.wp&&window.wp.data&&window.wp.data.dispatch&&window.wc&&window.wc.wcBlocksData&&window.wp.data.dispatch(window.wc.wcBlocksData.CHECKOUT_STORE_KEY).setExtensionData("woocommerce/order-attribution",t,!0)}function r(){return"undefined"!=typeof sbjs}function c(){if(window.wp&&window.wp.data&&"function"==typeof window.wp.data.subscribe){const e=window.wp.data.subscribe(function(){e(),a(t.getAttributionData())},o)}}t.getAttributionData=function(){const i=e.allowTracking&&r()?n:s,o=r()?sbjs.get:{},a=Object.entries(t.fields).map(([t,e])=>[t,i(o,e)]);return Object.fromEntries(a)},t.setOrderTracking=function(n){if(e.allowTracking=n,n){if(!r())return;sbjs.init({lifetime:Number(e.lifetime),session_length:Number(e.session),base64:Boolean(e.base64),timezone_offset:"0"})}else!function(){const t=window.location.hostname;["sbjs_current","sbjs_current_add","sbjs_first","sbjs_first_add","sbjs_session","sbjs_udata","sbjs_migrations","sbjs_promo"].forEach(e=>{document.cookie=`${e}=; path=/; max-age=-999; domain=.${t};`})}();const s=t.getAttributionData();!function(t){for(const e of document.querySelectorAll("wc-order-attribution-inputs"))e.values=t}(s),a(s)},t.setOrderTracking(e.allowTracking),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",c):c(),window.customElements.define("wc-order-attribution-inputs",class extends HTMLElement{constructor(){if(super(),this._fieldNames=Object.keys(t.fields),this.hasOwnProperty("_values")){let t=this.values;delete this.values,this.values=t||{}}}connectedCallback(){this.innerHTML="";const t=new DocumentFragment;for(const n of this._fieldNames){const s=document.createElement("input");s.type="hidden",s.name=`${e.prefix}${n}`,s.value=i(this.values&&this.values[n]||""),t.appendChild(s)}this.appendChild(t)}set values(t){if(this._values=t,this.isConnected)for(const t of this._fieldNames){const n=this.querySelector(`input[name="${e.prefix}${t}"]`);n?n.value=i(this.values[t]):console.warn(`Field "${t}" not found. `+"Most likely, the '' element was manipulated.")}}get values(){return this._values}})}(window.wc_order_attribution);; document.body.classList.contains("woocommerce-cart")||document.body.classList.contains("woocommerce-checkout")||window.innerWidth<768||!document.getElementById("site-header-cart")||window.addEventListener("load",function(){document.querySelector(".site-header-cart").addEventListener("mouseover",function(){var e=window.outerHeight,t=this.querySelector(".widget_shopping_cart_content").getBoundingClientRect().bottom+this.offsetHeight,o=this.querySelector(".cart_list");e .list-wrapper",n),d("body").on("click",function(){a.hide(),s.slideUp(100),n.removeClass("dd-shown")}),d(".input-dropdown-inner > a").on("click",function(e){return e.preventDefault(),n.hasClass("dd-shown")?(n.removeClass("dd-shown"),s.slideUp(100)):(n.addClass("dd-shown"),s.slideDown(100)),a.hide(),!1}),d(".input-dropdown-inner > .list-wrapper").on("click","a",function(e){e.preventDefault();var n=d(this).data("val"),e=d(this).text();d(".input-dropdown-inner > .list-wrapper").find(".current-item").removeClass("current-item"),d(this).parent().addClass("current-item"),0!=n?s.find("ul:not(.children) > li:first-child").show():0==n&&s.find("ul:not(.children) > li:first-child").hide(),d(".input-dropdown-inner > a span").text(e),d(".input-dropdown-inner > select").val(n).trigger("cat_selected"),s.slideUp(100),r.trigger("search",[t.val(),n])}),d(".input-dropdown-inner > select").change(function(){var e=d(this).val(),n=d(this).find("option:selected").text();d(".input-dropdown-inner > .list-wrapper").find(".current-item").removeClass("current-item"),d(this).parent().addClass("current-item"),0!=e?s.find("ul:not(.children) > li:first-child").show():0==e&&s.find("ul:not(.children) > li:first-child").hide(),d(".input-dropdown-inner > a span").text(n)}),t.length&&t.keyup(function(){var e=d('select[name="product_cat"]',r).val();r.trigger("search",[this.value,e])}).on("click",function(e){e.stopPropagation()}).on("focus",function(e){s.slideUp(100),n.removeClass("dd-shown"),2 a"),i=o.find("> ul.children");i.length&&(o.hasClass("closed")?(i.hide(),t.before('')):(o.hasClass("opened")||o.addClass("opened"),t.before('')),o.find("i").on("click",function(t){i.slideToggle("slow"),o.hasClass("closed")?(o.removeClass("closed").addClass("opened"),o.find(">i").removeClass("icon-plus").addClass("icon-minus")):(o.removeClass("opened").addClass("closed"),o.find(">i").removeClass("icon-minus").addClass("icon-plus")),t.stopImmediatePropagation()}),o.on("click",function(t){s(t.target).filter("a").length||(i.slideToggle("slow"),o.hasClass("closed")?(o.removeClass("closed").addClass("opened"),o.find("i").removeClass("icon-plus").addClass("icon-minus")):(o.removeClass("opened").addClass("closed"),o.find("i").removeClass("icon-minus").addClass("icon-plus")),t.stopImmediatePropagation())}))}),s("body").on("mouseenter",".product-list .product-caption .woosw-btn:not(.tooltipstered), .product-list .product-caption .woosq-btn:not(.tooltipstered), .product-list .product-caption .woosc-btn:not(.tooltipstered)",function(){var t=s(this);void 0!==s.fn.tooltipster&&t.tooltipster({position:"top",functionBefore:function(t,o){t.content(t._$origin.text())},theme:"opal-product-tooltipster",delay:0,animation:"grow"}).tooltipster("show")}),s(document).on("added_to_wishlist removed_from_wishlist",function(){var o=s(".header-wishlist .count, .footer-wishlist .count, .header-wishlist .wishlist-count-item");s.ajax({url:yith_wcwl_l10n.ajax_url,data:{action:"yith_wcwl_update_wishlist_count"},dataType:"json",success:function(t){o.html(t.count),s(".wishlist-count-text").html(t.text)}})}),s("body").on("woosw_change_count",function(t,o){var i=s(".header-wishlist .count, .footer-wishlist .count, .header-wishlist .wishlist-count-item");s.ajax({url:woosw_vars.ajax_url,data:{action:"woosw_ajax_update_count"},dataType:"json",success:function(t){s(".wishlist-count-text").html(t.text)}}),i.html(o)}),s(document).ready(function(){s(".product-block").each(function(t,o){var i=s(".product-caption-bottom",this).outerHeight();s(".content-product-imagin",this).css({marginBottom:-i})})})}(jQuery);; !function(o){"use strict";function t(){var t=o(".quantity:not(.buttons_added):not(.hidden)").find(".qty");t&&"date"!=t.prop("type")&&(t.parent().addClass("buttons_added").prepend(''),t.addClass("input-text").after(''),o("input.qty:not(.product-quantity input.qty)").each(function(){var t=parseFloat(o(this).attr("min"));t&&0{"use strict";const t=window.wp.hooks,e=(t,e)=>{const a={id:"gla_"+t.id,quantity:e,google_business_vertical:"retail"};return t.name&&(a.name=t.name),t?.categories?.length&&(a.category=t.categories[0].name),t?.prices?.price&&(a.price=parseInt(t.prices.price,10)/10**t.prices.currency_minor_unit),a},a=(t,a=1)=>{((t,e)=>{if("function"!=typeof gtag)throw new Error("Function gtag not implemented.");window.gtag("event","add_to_cart",{send_to:"GLA",...e})})(0,{ecomm_pagetype:"cart",event_category:"ecommerce",items:[e(t,a)]})},n=t=>{var e;return glaGtagData.products[t.id]&&(t.name=glaGtagData.products[t.id].name,t.prices=(e=glaGtagData.products[t.id].price,{price:Math.round(e*10**glaGtagData.currency_minor_unit),currency_minor_unit:glaGtagData.currency_minor_unit})),t};(0,t.addAction)("experimental__woocommerce_blocks-cart-add-item","google-listings-and-ads",(({product:t,quantity:e=1})=>{a(t,e)}));const r=function(t){const e=t.currentTarget.dataset,r=n({id:e.product_id});a(r,e.quantity||1)},o=function(t){const e=t.target.closest("form.cart");if(!e)return;const r=e.querySelector("[name=add-to-cart]");if(!r)return;const o=e.querySelector("[name=variation_id]"),c=e.querySelector("[name=quantity]"),i=n({id:parseInt(o?o.value:r.value,10)});a(i,c?parseInt(c.value,10):1)};document.defaultView.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".add_to_cart_button:not( .product_type_variable ):not( .product_type_grouped ):not( .wc-block-components-product-button__button )").forEach((t=>{t.addEventListener("click",r)})),document.querySelectorAll('[data-block-name="woocommerce/product-button"] > .add_to_cart_button:not( .product_type_variable ):not( .product_type_grouped )').forEach((t=>{t.addEventListener("click",r)})),document.querySelectorAll(".single_add_to_cart_button").forEach((t=>{t.addEventListener("click",o)}))})),"function"==typeof jQuery&&jQuery(document).on("found_variation","form.cart",(function(t,e){(t=>{t?.variation_id&&(glaGtagData.products[t.variation_id]={name:t.display_name,price:t.display_price})})(e)}))})();