(function(){var a,b,c=function(a,b){return function(){return a.apply(b,arguments)}},d=[].slice;b=window||exports,b.EVENT_HISTORY||(b.EVENT_HISTORY={}),a=function(){function a(){this.generateSelectors=c(this.generateSelectors,this),this.triggerProductEvent=c(this.triggerProductEvent,this),this.bindProductEvent=c(this.bindProductEvent,this)}return a.prototype.bindProductEvent=function(a,b,c){var e,f,g,h,i,j;if(null==c&&(c=0),e=function(a,b,e){var f;if($(window).on(a,function(){var a,f,g;if(f=arguments[0],a=2<=arguments.length?d.call(arguments,1):[],g=a[c],e===g)return b.apply(null,[f].concat(d.call(a)))}),null!=(null!=(f=EVENT_HISTORY[e])?f[a]:void 0))return b.apply(null,EVENT_HISTORY[e][a])},this.options.multipleProductIds){for(i=this.productId,j=[],g=0,h=i.length;g
Resumo do Carrinho
")}function c(a,b){return a.write('
').section(b._get(!1,["showShippingOptions"]),b,{block:e},null).write('').section(b._get(!1,["items"]),b,{block:v},null).write('
ProdutoPreçoQuantidadeExcluir
Total').reference(b._get(!1,["totalCart"]),b,"h").write('
')}function d(a,b){return a.write("loading-minicart")}function e(a,b){return a.write('

").section(b._get(!1,["isScheduledSla"]),b,{block:i},null).section(b._get(!1,["isLoading"]),b,{block:t},null).write('

Próximas entregas disponíveis:

').section(b._get(!1,["slas"]),b,{block:u},null).write("
")}function f(a,b){return a.write('disabled="disabled"')}function g(a,b){return a.write('")}function h(a,b){return a.write('selected="selected"')}function i(a,b){return a.write('

").section(b._get(!1,["selectedDeliveryWindow"]),b,{block:m},null)}function j(a,b){return a.write('disabled="disabled"')}function k(a,b){return a.write('")}function l(a,b){return a.write('selected="selected"')}function m(a,b){return a.write('

').helper("cond_write",b,{else:n,block:r},{key:b._get(!1,["timetable","length"]),value:1}).write("

")}function n(a,b){return a.write('")}function o(a,b){return a.write('disabled="disabled"')}function p(a,b){return a.write('")}function q(a,b){return a.write('selected="selected"')}function r(a,b){return a.section(b._get(!1,["timetable"]),b,{block:s},null)}function s(a,b){return a.write('

Das ').helper("formatMoment",b,{},{date:b._get(!1,["startDateUtc"])}).write(" às ").helper("formatMoment",b,{},{date:b._get(!1,["endDateUtc"])}).write(" - ").reference(b._get(!1,["totalPriceInCurrency"]),b,"h").write("

")}function t(a,b){return a.write('Carregando...')}function u(a,b){return a.write("

").reference(b._get(!1,["name"]),b,"h").write(": ").reference(b._get(!1,["estimateDeliveryLabel"]),b,"h").write("

")}function v(a,b){return a.write('').reference(b._get(!1,[

').reference(b._get(!1,["name"]),b,"h").write('

').reference(b._get(!1,["availabilityMessage"]),b,"h").write('

').reference(b._get(!1,["formattedPrice"]),b,"h").write('
').reference(b._get(!1,["quantity"]),b,"h").write('
')}return dust.register("minicart",a),a}(),function(){var a,b,c=function(a,b){return function(){return a.apply(b,arguments)}},d=[].slice;a=window.jQuery,b=function(){function g(b,d){var e=this;this.element=b,this.options=d,this.getAvailabilityMessage=c(this.getAvailabilityMessage,this),this.getAvailabilityCode=c(this.getAvailabilityCode,this),this.deleteItem=c(this.deleteItem,this),this.slide=c(this.slide,this),this.render=c(this.render,this),this.prepareCart=c(this.prepareCart,this),this.sendShippingDataAttachment=c(this.sendShippingDataAttachment,this),this.prepareDeliveryOptionsSelectors=c(this.prepareDeliveryOptionsSelectors,this),this.setDeliveryOptionsSelectorsState=c(this.setDeliveryOptionsSelectorsState,this),this.setTimetablesSelectorOptions=c(this.setTimetablesSelectorOptions,this),this.setupMinicart=c(this.setupMinicart,this),this.handleOrderForm=c(this.handleOrderForm,this),this.updateCart=c(this.updateCart,this),this.bindEvents=c(this.bindEvents,this),this.getOrderFormUpdateURL=c(this.getOrderFormUpdateURL,this),this.getOrderFormURL=c(this.getOrderFormURL,this),this.startHelpers=c(this.startHelpers,this),this.EXPECTED_ORDER_FORM_SECTIONS=["items","paymentData","totalizers","shippingData","sellers"],this.hoverContext=this.element.add(".show-minicart-on-hover"),this.cartData={},this.base=a(".minicartListBase").remove(),this.select={amountProducts:function(){return a(".amount-products-em",e.element)},amountItems:function(){return a(".amount-items-em",e.element)},totalCart:function(){return a(".total-cart-em",e.element)}},this.startHelpers(),this.bindEvents(),this.updateCart(!1),a(window).trigger("minicartLoaded")}var b,e,f=this;return g.prototype.startHelpers=function(){return dust.helpers.formatDate=function(a,c,d,e){var f;return f=e.date,a.write(b(f))},dust.helpers.formatMoment=function(a,b,c,d){var f;return f=d.date,a.write(e(f))},dust.helpers.cond_write=function(a,b,c,d){return d.key===d.value?c.block(a,b):c.else(a,b)}},e=function(a){var b,c,d,e,f,g;return b=new Date(a),g=b.toUTCString(),e=g.match(/\d\d:\d\d:\d\d/)[0],f=e.split(":"),c=f[0],d=f[1],""+c+":"+d},b=function(a){var b,c,d,e,f,g,h,i,j,k;return j={Sun:"Domingo",Mon:"Segunda-feira",Tue:"Terça-feira",Wed:"Quarta-feira",Thu:"Quinta-feira",Fri:"Sexta-feira",Sat:"Sábado"},f={Jan:"Janeiro",Feb:"Fevereiro",Mar:"Março",Apr:"Abril",May:"Maio",Jun:"Junho",Jul:"Julho",Aug:"Agosto",Sep:"Setembro",Oct:"Outubro",Nov:"Novembro",Dec:"Dezembro"},b=new Date(a),c=b.toString().split(" "),i=c[0],h=j[i],e=c[1],g=f[e],d=c[2],k=c[3],""+h+", "+d+" de "+g+" de "+k},g.prototype.getOrderFormURL=function(){return this.options.orderFormURL},g.prototype.getOrderFormUpdateURL=function(){return this.getOrderFormURL()+this.cartData.orderFormId+"/items/update/"},g.prototype.bindEvents=function(){var b=this;return this.hoverContext.on("mouseover",function(){return a(window).trigger("minicartMouseOver"),b.element.trigger("vtex.minicart.mouseOver"),a(window).trigger("minicartMouseOver.vtex")}),this.hoverContext.on("mouseout",function(){return a(window).trigger("minicartMouseOut"),b.element.trigger("vtex.minicart.mouseOut"),a(window).trigger("minicartMouseOut.vtex")}),a(window).on("minicartMouseOver.vtex",function(){var c;if((null!=(c=b.cartData.items)?c.length:void 0)>0)return a(".vtexsc-cart").slideDown(),clearTimeout(b.timeoutToHide)}),a(window).on("minicartMouseOut.vtex",function(){return clearTimeout(b.timeoutToHide),b.timeoutToHide=setTimeout(function(){return a(".vtexsc-cart").stop(!0,!0).slideUp()},800)}),a(window).on("cartUpdated",function(){var a,c;return c=arguments[0],a=2<=arguments.length?d.call(arguments,1):[],b.updateCart.apply(b,a)}),a(window).on("cartProductAdded.vtex",function(){var a,c;return c=arguments[0],a=2<=arguments.length?d.call(arguments,1):[],b.updateCart.apply(b,a)}),a(window).on("cartProductRemoved.vtex",function(){var a,c;return c=arguments[0],a=2<=arguments.length?d.call(arguments,1):[],b.updateCart.apply(b,a)}),a(window).on("orderFormUpdated.vtex",function(){var a,c;return c=arguments[0],a=2<=arguments.length?d.call(arguments,1):[],b.handleOrderForm.apply(b,a)})},g.prototype.updateCart=function(a){var b=this;return null==a&&(a=!0),this.element.addClass("amount-items-in-cart-loading"),vtexjs.checkout.getOrderForm(this.EXPECTED_ORDER_FORM_SECTIONS).done(function(c){return b.element.removeClass("amount-items-in-cart-loading"),b.element.trigger("vtex.minicart.updated"),b.element.trigger("minicartUpdated.vtex"),b.handleOrderForm(c,a)})},g.prototype.handleOrderForm=function(a){if(this.cartData.orderFormId=null!=a?a.orderFormId:void 0,this.cartData.totalizers=null!=a?a.totalizers:void 0,this.cartData.shippingData=null!=a?a.shippingData:void 0,this.cartData.sellers=null!=a?a.sellers:void 0,null!=(null!=a?a.items:void 0))return this.cartData.items=a.items,this.setupMinicart()},g.prototype.setupMinicart=function(a){if(null==a&&(a=!0),this.prepareCart(),this.cartData.showShippingOptions&&this.setDeliveryOptionsSelectorsState(),this.render(),a)return this.slide()},g.prototype.setTimetablesSelectorOptions=function(b){var c,d;return c=a(".available-timetables"),d=_.toArray(_.filter(f.cartData.deliveryWindows,function(a){var c;return c=new Date(a.startDateUtc),c.getDate()===b.getDate()})),c.empty(),_.each(d,function(b,d){var f,g,h,i;return h=e(b.startDateUtc),f=e(b.endDateUtc),i="Das "+h+" às "+f,g=a("