"use strict";function gtm4wp_make_sure_is_float(e){return"string"==typeof e?(e=parseFloat(e),isNaN(e)&&(e=0)):"number"!=typeof e&&(e=0),e=e.toFixed(2)}function gtm4wp_push_ecommerce(e,t,r){var n=3div:not(.product-category) a:not(.add_to_cart_button):not(.quick-view-button),.widget-product-item,.woocommerce-grouped-product-list-item__label a");if(c){if("undefined"==typeof google_tag_manager)return!0;var i,_=e.target,r=_.closest(".product,.wc-block-grid__product"),o=(r=(r=r||((r=_.closest(".products li"))||_.closest(".products>div")))||_.closest(".woocommerce-grouped-product-list-item__label"))?r.querySelector(".gtm4wp_productdata"):_,t=gtm4wp_read_json_from_node(o,"gtm4wp_product_data",["internal_id"]);if(!t)return!0;if(t.productlink!=c.getAttribute("href"))return!0;for(i in window.google_tag_manager)if("gtm-"==i.substring(0,4).toLowerCase()){window.gtm4wp_first_container_id=i;break}if(""===window.gtm4wp_first_container_id)return!0;var u,d,p,m,r=2e3;0<(r="undefined"!=typeof gtm4wp_datalayer_max_timeout?gtm4wp_datalayer_max_timeout:r)?(u=e.ctrlKey||e.metaKey,d="_blank"===c.target,(p=e.defaultPrevented)||e.preventDefault(),(u||d)&&(window.productpage_window=window.open("about:blank","_blank")),m=t.productlink,delete t.productlink,gtm4wp_push_ecommerce("select_item",[t],{currency:gtm4wp_currency},function(e){if(void 0!==e&&window.gtm4wp_first_container_id!=e)return!0;p||((d||u)&&productpage_window?productpage_window.location.href=m:document.location.href=m)},r)):(delete t.productlink,gtm4wp_push_ecommerce("select_item",[t],{currency:gtm4wp_currency}))}},{capture:!0}),jQuery(document).on("found_variation",function(e,t){if(void 0!==t&&("interactive"!==document.readyState||!gtm4wp_view_item_fired_during_pageload)){e=e.target;if(!e)return!0;var o,e=e.querySelector("[name=gtm4wp_product_data]");if(!e)return!0;try{o=JSON.parse(e.value)}catch(e){return console&&console.error&&console.error(e.message),!0}o.price=gtm4wp_make_sure_is_float(o.price),o.item_group_id=o.id,o.id=t.variation_id,o.item_id=t.variation_id,o.sku=t.sku,gtm4wp_use_sku_instead&&t.sku&&""!==t.sku&&(o.id=t.sku,o.item_id=t.sku),o.price=gtm4wp_make_sure_is_float(t.display_price);var r,c=[];for(r in t.attributes)c.push(t.attributes[r]);o.item_variant=c.join(","),delete(gtm4wp_last_selected_product_variation=o).internal_id,gtm4wp_push_ecommerce("view_item",[o],{currency:gtm4wp_currency,value:o.price}),"interactive"===document.readyState&&(gtm4wp_view_item_fired_during_pageload=!0)}}),jQuery(".variations select").trigger("change"),jQuery(document).ajaxSuccess(function(e,t,o){void 0!==o&&-1
")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),n=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthW(C(n),C(o))?s.important="horizontal":s.important="vertical",f.using.call(this,t,s)}),r.offset(x.extend(h,{using:t}))})):h.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,n=n.width,s=t.left-e.collisionPosition.marginLeft,r=o-s,l=s+e.collisionWidth-n-o;n",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=c++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,n,o,s=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(n=s[t]=x.widget.extend({},this.options[t]),o=0;o