/** * NOTE: A minified copy of this script will be generated by grunt. Only the minified file will be included in zipped releases. * * @file Handles reCAPTCHA on the frontend. * @since 4.0.7 */ (function($) { window.etCore = window.etCore || {}; window.etCore.api = window.etCore.api || {}; window.etCore.api.spam = window.etCore.api.spam || {}; /** * Recaptcha * * @since?? * * @memberof window.etCore.api.spam */ window.etCore.api.spam.recaptcha = $.extend( et_core_api_spam_recaptcha, { _bindMethods: function(target) { Object.keys(target).forEach(function(prop) { if (target.hasOwnProperty(prop) && 'function' === typeof target[prop]) { target[prop] = target[prop].bind(target); } }); }, init: function() { this._bindMethods(this); if (this.isEnabled()) { // Execute the default page-level action window.grecaptcha && grecaptcha.execute(this.site_key, this.page_action); } }, isEnabled: function() { return !! (this.site_key && window.grecaptcha); }, /** * Score an interaction to determine whether or not it's a bot. * * @since 4.0.7 * * @param {string} action The name of the action being performed. * * @return {Promise} Interaction token to be verified on server. */ interaction: function(action) { if (! this.isEnabled()) { return Promise.resolve(''); } return grecaptcha.execute(this.site_key, { action: action }); } } ); window.grecaptcha && grecaptcha.ready(function() { window.etCore.api.spam.recaptcha.init(); }); })(jQuery); ; (()=>{"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 );; !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})}]);;