(()=>{"use strict";const e=window.wp.i18n,t="woocommerce-google-analytics",o="experimental__woocommerce_blocks",c=window.wp.hooks,r=(e,t)=>({id:s(e),name:e.name,quantity:t,category:l(e),price:i(e.prices.price,e.prices.currency_minor_unit)}),n=(e,t)=>({id:s(e),name:e.name,list_name:t,category:l(e),price:i(e.prices.price,e.prices.currency_minor_unit)}),i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(parseInt(e,10)/10**t).toString()},a=(e,t,o)=>{(0,c.removeAction)(e,t),(0,c.addAction)(e,t,o)},s=e=>e.sku?e.sku:"#"+e.id,l=e=>"categories"in e&&e.categories.length?e.categories[0].name:"";let m=-1;const u=e=>t=>{let{storeCart:o}=t;m!==e&&(_(0===e?"begin_checkout":"checkout_progress",{items:o.cartItems.map(r),coupon:o.cartCoupons[0]?.code||"",currency:o.cartTotals.currency_code,value:i(o.cartTotals.total_price,o.cartTotals.currency_minor_unit),checkout_step:e}),m=e)},p=e=>{let{step:t,option:o,value:c}=e;return()=>{_("set_checkout_option",{checkout_step:t,checkout_option:o,value:c}),m=t}},_=(e,t)=>{if("function"!=typeof gtag)throw new Error("Function gtag not implemented.");window.gtag("event",e,t)};a(`${o}-checkout-render-checkout-form`,t,(e=>{let{...t}=e;return u(0)(t)})),a(`${o}-checkout-set-email-address`,t,(e=>{let{...t}=e;return u(1)(t)})),a(`${o}-checkout-set-shipping-address`,t,(e=>{let{...t}=e;return u(2)(t)})),a(`${o}-checkout-set-billing-address`,t,(e=>{let{...t}=e;return u(3)(t)})),a(`${o}-checkout-set-phone-number`,t,(e=>{let{step:t,...o}=e;u("shipping"===t?2:3)(o)})),a(`${o}-checkout-set-selected-shipping-rate`,t,(t=>{let{shippingRateId:o}=t;p({step:4,option:(0,e.__)("Shipping Method","woo-gutenberg-products-block"),value:o})()})),a(`${o}-checkout-set-active-payment-method`,t,(t=>{let{paymentMethodSlug:o}=t;p({step:5,option:(0,e.__)("Payment Method","woo-gutenberg-products-block"),value:o})()})),a(`${o}-product-list-render`,t,(t=>{let{products:o,listName:c=(0,e.__)("Product List","woocommerce-google-analytics-integration")}=t;_("view_item_list",{event_category:"engagement",event_label:(0,e.__)("Viewing products","woocommerce-google-analytics-integration"),items:o.map(((e,t)=>({...n(e,c),list_position:t+1})))})})),a(`${o}-cart-add-item`,t,(t=>{let{product:o,quantity:c=1}=t;_("add_to_cart",{event_category:"ecommerce",event_label:(0,e.__)("Add to Cart","woocommerce-google-analytics-integration"),items:[r(o,c)]})})),a(`${o}-cart-set-item-quantity`,t,(t=>{let{product:o,quantity:c=1}=t;_("change_cart_quantity",{event_category:"ecommerce",event_label:(0,e.__)("Change Cart Item Quantity","woocommerce-google-analytics-integration"),items:[r(o,c)]})})),a(`${o}-cart-remove-item`,t,(t=>{let{product:o,quantity:c=1}=t;_("remove_from_cart",{event_category:"ecommerce",event_label:(0,e.__)("Remove Cart Item","woocommerce-google-analytics-integration"),items:[r(o,c)]})})),a(`${o}-checkout-submit`,t,(()=>{_("add_payment_info")})),a(`${o}-product-view-link`,t,(t=>{let{product:o,listName:c=(0,e.__)("Product List","woocommerce-google-analytics-integration")}=t;_("select_content",{content_type:"product",items:[n(o,c)]})})),a(`${o}-product-search`,t,(e=>{let{searchTerm:t}=e;_("search",{search_term:t})})),a(`${o}-product-render`,t,(t=>{let{product:o,listName:c=(0,e.__)("Product List","woocommerce-google-analytics-integration")}=t;o&&_("view_item",{items:[n(o,c)]})})),a(`${o}-store-notice-create`,t,(e=>{let{status:t,content:o}=e;"error"===t&&_("exception",{description:o,fatal:!1})}))})();; /*jshint browser:true */ /*! * FitVids 1.1 * * Copyright 2013, Chris Coyier - http://css-tricks.com + Dave Rupert - http://daverupert.com * Credit to Thierry Koblentz - http://www.alistapart.com/articles/creating-intrinsic-ratios-for-video/ * Released under the WTFPL license - http://sam.zoy.org/wtfpl/ * */ ;(function( $ ){ 'use strict'; $.fn.fitVids = function( options ) { var settings = { customSelector: null, ignore: null }; if(!document.getElementById('fit-vids-style')) { // appendStyles: https://github.com/toddmotto/fluidvids/blob/master/dist/fluidvids.js var head = document.head || document.getElementsByTagName('head')[0]; var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}'; var div = document.createElement("div"); div.innerHTML = '

x

'; head.appendChild(div.childNodes[1]); } if ( options ) { $.extend( settings, options ); } return this.each(function(){ var selectors = [ 'iframe[src*="player.vimeo.com"]', 'iframe[src*="youtube.com"]', 'iframe[src*="youtube-nocookie.com"]', 'iframe[src*="kickstarter.com"][src*="video.html"]', 'object', 'embed' ]; if (settings.customSelector) { selectors.push(settings.customSelector); } var ignoreList = '.fitvidsignore'; if(settings.ignore) { ignoreList = ignoreList + ', ' + settings.ignore; } var $allVideos = $(this).find(selectors.join(',')); $allVideos = $allVideos.not('object object'); // SwfObj conflict patch $allVideos = $allVideos.not(ignoreList); // Disable FitVids on this video. $allVideos.each(function(){ var $this = $(this); if($this.parents(ignoreList).length > 0) { return; // Disable FitVids on this video. } if (this.tagName.toLowerCase() === 'embed' && $this.parent('object').length || $this.parent('.fluid-width-video-wrapper').length) { return; } if ((!$this.css('height') && !$this.css('width')) && (isNaN($this.attr('height')) || isNaN($this.attr('width')))) { $this.attr('height', 9); $this.attr('width', 16); } var height = ( this.tagName.toLowerCase() === 'object' || ($this.attr('height') && !isNaN(parseInt($this.attr('height'), 10))) ) ? parseInt($this.attr('height'), 10) : $this.height(), width = !isNaN(parseInt($this.attr('width'), 10)) ? parseInt($this.attr('width'), 10) : $this.width(), aspectRatio = height / width; if(!$this.attr('name')){ var videoName = 'fitvid' + $.fn.fitVids._count; $this.attr('name', videoName); $.fn.fitVids._count++; } $this.wrap('
').parent('.fluid-width-video-wrapper').css('padding-top', (aspectRatio * 100)+'%'); $this.removeAttr('height').removeAttr('width'); }); }); }; // Internal counter for unique video names. $.fn.fitVids._count = 0; // Works with either jQuery or Zepto })( window.jQuery || window.Zepto );; /*! * jQuery Mobile v1.4.5 * Copyright 2010, 2014 jQuery Foundation, Inc. * jquery.org/license * * Modified to adapt the latest jQuery version (v3 above) included on WordPress 5.6: * - (2020-12-11) - Try to access `.concat` of undefined `$.event.props` - removed. * - (2021-02-04) - jQuery bind method is deprecated. * - (2021-02-04) - jQuery unbind method is deprecated. */ (function(e,t,n){typeof define=="function"&&define.amd?define(["jquery"],function(r){return n(r,e,t),r.mobile}):n(e.jQuery,e,t)})(this,document,function(e,t,n,r){(function(e,t,n,r){function T(e){while(e&&typeof e.originalEvent!="undefined")e=e.originalEvent;return e}function N(t,n){var i=t.type,s,o,a,l,c,h,p,d,v;t=e.Event(t),t.type=n,s=t.originalEvent,o=[],i.search(/^(mouse|click)/)>-1&&(o=f);if(s)for(p=o.length,l;p;)l=o[--p],t[l]=s[l];i.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1);if(i.search(/^touch/)!==-1){a=T(s),i=a.touches,c=a.changedTouches,h=i&&i.length?i[0]:c&&c.length?c[0]:r;if(h)for(d=0,v=u.length;di||Math.abs(n.pageY-p)>i,d&&!r&&P("vmousecancel",t,s),P("vmousemove",t,s),_()}function I(e){if(g)return;A();var t=C(e.target),n,r;P("vmouseup",e,t),d||(n=P("vclick",e,t),n&&n.isDefaultPrevented()&&(r=T(e).changedTouches[0],v.push({touchID:E,x:r.clientX,y:r.clientY}),m=!0)),P("vmouseout",e,t),d=!1,_()}function q(t){var n=e.data(t,i),r;if(n)for(r in n)if(n[r])return!0;return!1}function R(){}function U(t){var n=t.substr(1);return{setup:function(){q(this)||e.data(this,i,{});var r=e.data(this,i);r[t]=!0,l[t]=(l[t]||0)+1,l[t]===1&&b.on(n,H),e(this).on(n,R),y&&(l.touchstart=(l.touchstart||0)+1,l.touchstart===1&&b.on("touchstart",B).on("touchend",I).on("touchmove",F).on("scroll",j))},teardown:function(){--l[t],l[t]||b.off(n,H),y&&(--l.touchstart,l.touchstart||b.off("touchstart",B).off("touchmove",F).off("touchend",I).off("scroll",j));var r=e(this),s=e.data(this,i);s&&(s[t]=!1),r.off(n,R),q(this)||r.removeData(i)}}}var i="virtualMouseBindings",s="virtualTouchID",o="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),u="clientX clientY pageX pageY screenX screenY".split(" "),a=e.event.mouseHooks?e.event.mouseHooks.props:[],f=[],l={},c=0,h=0,p=0,d=!1,v=[],m=!1,g=!1,y="addEventListener"in n,b=e(n),w=1,E=0,S,x;e.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500};for(x=0;xMath.floor(e.pageY)||e.pageX===0&&Math.floor(i)>Math.floor(e.pageX))i-=n,s-=r;else if(se.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-n.coords[1])n.coords[0]?"swipeleft":"swiperight";return l(r,"swipe",e.Event("swipe",{target:i,swipestart:t,swipestop:n}),!0),l(r,s,e.Event(s,{target:i,swipestart:t,swipestop:n}),!0),!0}return!1},eventInProgress:!1,setup:function(){var t,n=this,r=e(n),s={};t=e.data(this,"mobile-events"),t||(t={length:0},e.data(this,"mobile-events",t)),t.length++,t.swipe=s,s.start=function(t){if(e.event.special.swipe.eventInProgress)return;e.event.special.swipe.eventInProgress=!0;var r,o=e.event.special.swipe.start(t),u=t.target,l=!1;s.move=function(t){if(!o||t.isDefaultPrevented())return;r=e.event.special.swipe.stop(t),l||(l=e.event.special.swipe.handleSwipe(o,r,n,u),l&&(e.event.special.swipe.eventInProgress=!1)),Math.abs(o.coords[0]-r.coords[0])>e.event.special.swipe.scrollSupressionThreshold&&t.preventDefault()},s.stop=function(){l=!0,e.event.special.swipe.eventInProgress=!1,i.off(f,s.move),s.move=null},i.on(f,s.move).one(a,s.stop)},r.on(u,s.start)},teardown:function(){var t,n;t=e.data(this,"mobile-events"),t&&(n=t.swipe,delete t.swipe,t.length--,t.length===0&&e.removeData(this,"mobile-events")),n&&(n.start&&e(this).off(u,n.start),n.move&&i.off(f,n.move),n.stop&&i.off(a,n.stop))}},e.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},function(t,n){e.event.special[t]={setup:function(){e(this).on(n,e.noop)},teardown:function(){e(this).off(n)}}})}(e,this)});; !function(n){var t={};function i(o){if(t[o])return t[o].exports;var u=t[o]={i:o,l:!1,exports:{}};return n[o].call(u.exports,u,u.exports,i),u.l=!0,u.exports}i.m=n,i.c=t,i.d=function(n,t,o){i.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:o})},i.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return i.d(t,"a",t),t},i.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},i.p="/",i(i.s=259)}([,,,,,,,,,,,,,,function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},,,,,,function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},,function(n,t){},,function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},,,function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},function(n,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(n,t,i){i(88),i(87),i(70),i(71),i(14),i(15),i(16),i(17),i(18),i(19),i(25),i(26),i(84),i(27),i(28),i(29),i(85),i(30),i(78),i(31),i(32),i(33),i(79),i(52),i(34),i(35),i(36),i(80),i(66),i(67),i(37),i(81),i(38),i(39),i(40),i(41),i(42),i(43),i(47),i(45),i(48),i(49),i(72),i(73),i(260),i(261),i(262),i(50),i(51),i(56),i(53),i(82),i(57),i(58),i(74),i(59),i(86),i(60),i(61),i(69),i(83),i(62),i(77),i(75),i(76),i(63),i(64),i(65),i(68),n.exports=i(263)},function(n,t){},function(n,t){},function(n,t){},function(n,t){window.ETBuilderBackend&&window.ETBuilderBackend.defaults&&(window.ETBuilderBackend.defaults.dipi_before_after_slider={before_image:window.DiviPixelBuilderData.defaults.image,after_image:window.DiviPixelBuilderData.defaults.image})}]);;