"use strict";function imgLazy(e,o){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 ".concat(e," ").concat(o,"'%3E%3C/svg%3E")}function slickReinitLazy(e,o,t){var a;0"+e()+""),t.html(o),pBuyCurTimer=setInterval(function(){t.html(t.html().replace(/.*<\/span>/g,""+e()+""))},15e3))}function initStockView(){var e,o,t,a=$(".produto-estoque");0"+o+"")).replace(/.*<\/span>/g,""+o+""),a.find(".md-text").html(t))}function initCountdown(){var e,o,t,a=$(".countdown");0").concat(o.num_parcela,"x de R$ ").concat(formatMoneyBR(o.valor_parcela),"").concat(e)),p):(p.hide(),m.html("".concat(o.num_parcela,"x de R$ ").concat(formatMoneyBR(o.valor_parcela),"").concat(e)),m)).css("opacity",1))},t=function(e){void 0!==(b=a(e))&&(console.log("Variante: "+b.sku),c.data("variant",b.sku),u.val(b.sku),""!=b.image_id&&n(b.image_id),r.hide(),0R$ "+formatMoneyBR(Number(b.old_price))),r.show()),s.html("R$ "+formatMoneyBR(Number(b.sale_price))),$(".v-price").text("R$ "+formatMoneyBR(Number(b.sale_price))),$(".produto-det-preco-total").html("ou R$ "+formatMoneyBR(Number(b.sale_price))+" à vista"),p.css("opacity",0),m.css("opacity",0),1sem juros":"",t=o.sem_juros?"Em até":"Ou em",($(".produto-colunas").hasClass("destaque-total")?(a.html("".concat(t," ").concat(o.num_parcela,"x de R$ ").concat(formatMoneyBR(o.valor_parcela),"").concat(e)),a):(n.html("".concat(o.num_parcela,"x de R$ ").concat(formatMoneyBR(o.valor_parcela),"
").concat(e)),n)).css("opacity",1))}a.css("opacity",0),n.css("opacity",0),1R$ "+formatMoneyBR(s.sale_price)+" à vista"),0\n '.concat(e.num_parcela,"x de R$ ").concat(formatMoneyBR(e.valor_parcela),"").concat(o,'\n Total: R$ ').concat(formatMoneyBR(e.valor_total),"\n "))})}function alreadyInCart(o){var e=null==cartInfos||null==(e=cartInfos.result)?void 0:e.items;return!!("object"===_typeof(cartInfos)&&e&&0').concat(e["flag-text"],"
")),"");if(1=a?"active":"";t+='')}t+=""}var i="",r=(0R$ '.concat(formatMoneyBR(e.old_price),"")),"");e.parcelamento&&(r='
'.concat(mdParse(e.parcelamento,!0),"
")),s.append('\n \n
\n
\n ').concat(e.title,'\n ').concat(o,'\n
\n
\n ').concat(t,'\n
').concat(e.title,'
\n
\n ').concat(i,'\n R$ ').concat(formatMoneyBR(e.sale_price),"\n
\n ").concat(r,"\n
\n
\n
"))}),i.addClass("d-none")}0=n&&(t("show"),clearInterval(s))},500)},(h=document.createElement("script")).src="https://www.youtube.com/iframe_api",(g=document.getElementsByTagName("script")[0]).parentNode.insertBefore(h,g),window.ytVideoID=m,window.onYouTubeIframeAPIReady=function(){window.ytPlayer=new YT.Player("v-player",{videoId:window.ytVideoID,playerVars:{controls:0,disablekb:1,modestbranding:1,color:"white",playsinline:1,rel:0,playlist:window.ytVideoID,loop:1},events:{onReady:l}})}),"vimeo"===o&&(h=e.find("iframe")[0],(d=new Vimeo.Player(h)).on("play",function(){void 0===u&&(u=setInterval(function(){d.getCurrentTime().then(function(e){n<=e&&(t("show"),clearInterval(u))})},500))})),"panda"===o&&(g="https://player.pandavideo.com.br/api.v2.js",p=e.find("iframe").attr("id"),document.querySelector("script[src='".concat(g,"']"))||((m=document.createElement("script")).src=g,m.async=!0,document.head.appendChild(m)),window.pandascripttag=window.pandascripttag||[],window.pandascripttag.push(function(){var e=new PandaPlayer(p,{onReady:function(){e.onEvent(function(e){var o;"panda_timeupdate"===e.message&&(o=e.currentTime,e.isMutedIndicator||(o=n&&t("show")})}()),"wistia"===o)&&(g="object"===("undefined"==typeof wistiaEmbeds?"undefined":_typeof(wistiaEmbeds))&&wistiaEmbeds[0]?wistiaEmbeds[0].data.media.hashedId:(h=e.find("script").first().attr("src").split("/"))[h.length-1].split(".")[0],v=!1,window._wq=window._wq||[],_wq.push({id:g,onReady:function(e){e.bind("secondchange",function(){e.time()>=n&&!0!==v&&(v=!0,t("show"))})}}))}();var $bonusCarrosel=$("#carrosel-bonus");function bonusDestroySlick(){$bonusCarrosel.hasClass("slick-slider")&&$bonusCarrosel.slick("unslick")}function bonusInitSlick(){$bonusCarrosel.hasClass("slick-initialized")||$bonusCarrosel.slick({slidesToShow:4,slidesToScroll:1,infinite:!0,autoplay:!1,adaptiveHeight:!0,responsive:[{breakpoint:960,settings:{slidesToShow:3}},{breakpoint:768,settings:"unslick"}]})}bonusInitSlick(),slickReinitLazy($bonusCarrosel,bonusInitSlick,bonusDestroySlick); //# sourceMappingURL=script.min.js.map