(function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={i:d,l:!1,exports:{}};return a[d].call(e.exports,e,e.exports,b),e.l=!0,e.exports}var c={};return b.m=a,b.c=c,b.d=function(a,c,d){b.o(a,c)||Object.defineProperty(a,c,{enumerable:!0,get:d})},b.r=function(a){'undefined'!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:'Module'}),Object.defineProperty(a,'__esModule',{value:!0})},b.t=function(a,c){if(1&c&&(a=b(a)),8&c)return a;if(4&c&&'object'==typeof a&&a&&a.__esModule)return a;var d=Object.create(null);if(b.r(d),Object.defineProperty(d,'default',{enumerable:!0,value:a}),2&c&&'string'!=typeof a)for(var e in a)b.d(d,e,function(b){return a[b]}.bind(null,e));return d},b.n=function(a){var c=a&&a.__esModule?function(){return a['default']}:function(){return a};return b.d(c,'a',c),c},b.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)},b.p='public',b(b.s=377)})({377:function(){$(document).ready(function(){$('.ftr-js-btn-cart-all').on('click',function(){var a=[],b=$(this);$('.ftr-js-grid-color .ftr-js-quantity').each(function(){if(0<$(this).val()){var b={};b.quantity=$(this).val(),b.product_id=$(this).data('product-id'),a.push(b)}}),$('.ftr-js-product-card__notification').remove(),$('[class^=ftr-grid]').removeClass('ftr-outline--red ftr-outline--green'),$('.ftr-loading-bar').removeClass('ftr-none'),$('.ftr-js-btn-cart-all').prop('disabled',!0),$.ajax({url:'index.php?route=checkout/cart/addlistcolor',type:'post',data:objectToParam(a),dataType:'json',error:function(){alert('Erro!')},success:function(a){a.error&&($.each(a.error,function(a,b){var c=$('.ftr-js-grid-color .ftr-js-quantity[data-product-id = '+a+']');c.closest('[class^=ftr-grid]').addClass('ftr-outline--red'),c.closest('[class^=ftr-grid]').prepend('<div class="ftr-product-card__notification ftr-js-product-card__notification hide">'+b+'<div class="ftr-text--center"><i class="material-icons">&#xe316;</i></div></div>'),setTimeout(function(){$('.ftr-js-product-card__notification').removeClass('hide')},100)}),$('.ftr-js-product-card__notification').on('click',function(){$(this).hasClass('retract')?$(this).removeClass('retract'):$(this).addClass('retract')})),a.success&&($.each(a.success,function(a){var b=$('.ftr-js-grid-color .ftr-js-quantity[data-product-id = '+a+']');b.closest('[class^=ftr-grid]').addClass('ftr-outline--green'),b.val(0)}),updateCartApp(a.total_qtd)),$('.ftr-loading-bar').addClass('ftr-none'),$('.ftr-js-btn-cart-all').removeAttr('disabled')}})})})}});