(function(n,t,i){"use strict";var r;n.Slider={slidesToShow:i,slidesToShift:1,showButtons:i,showPaging:i,infinite:i,breakpoint:i,breakpoints:i,container:i,view:i,wrapper:i,slides:i,index:0,posX1:0,posX2:0,startPos:0,endPos:0,limit:50,allowShift:!0,slideSize:0,slidesLength:0,slidesToLoad:0,prev:i,next:i,paging:i,build:function(n,t,i){if(n&&t){if(this.breakpoints=JSON.parse(JSON.stringify(n)),this.slidesToShow=n[0].slidesToShow,this.slidesToShift=n[0].slidesToShift||1,this.showButtons=n[0].showButtons,this.showPaging=n[0].showPaging,this.infinite=n[0].infinite,this.breakpoint=n[0].breakpoint,this.container=document.querySelector(t.container),this.view=document.querySelector(t.view),this.wrapper=document.querySelector(t.wrapper),this.slides=this.wrapper.querySelectorAll(t.slides),this.index=0,this.posX1=0,this.posX2=0,this.startPos=0,this.endPos=0,this.limit=50,this.allowShift=!0,this.slideSize=0,this.slidesLength=0,this.slidesToLoad=i||this.slidesLength,this.slideSize=Number(getComputedStyle(this.slides[0]).marginLeft.replace("px",""))+Number(getComputedStyle(this.slides[0]).marginRight.replace("px",""))+Number(getComputedStyle(this.slides[0]).width.replace("px","")),this.slidesLength=this.slides.length,this.wrapper.style.width=String(this.slideSize*this.slidesToLoad)+"px",!isNaN(this.slidesToLoad)&&this.slidesToLoad!=null&&this.slidesToLoad=this.slidesToLoad&&this.slides[r].remove();this.slidesLength=this.slidesToLoad}this.wrapper.style.left="0px";this.view.style.width=this.slideSize*this.slidesToShow+"px";this.showButtons&&(this.prev="undefined",this.next="undefined",this.buildButtons());this.showPaging&&(this.paging="undefined",this.buildPaging());this.initDragEvents();this.handleBreakpoints();this.container.classList.add("loaded")}},handleBreakpoints:function(){var n,t;if(this.breakpoints.length>1)for(n=0;nthis.breakpoints[n+1].breakpoint&&(t=JSON.parse(JSON.stringify(this.breakpoints[n])),this.resizeSlider(t)):window.innerWidth<=this.breakpoints[n].breakpoint&&window.innerWidth>0&&(t=JSON.parse(JSON.stringify(this.breakpoints[n])),this.resizeSlider(t));else this.breakpoints.push({slidesToShow:1,slidesToShift:1,showButtons:this.showButtons,showPaging:this.showPaging,infinite:this.infinite,breakpoint:500}),this.handleBreakpoints()},resizeSlider:function(n){var t,i;this.container.classList.remove("loaded");this.slidesToShow=n.slidesToShow;this.slidesToShift=n.slidesToShift||1;this.showButtons=n.showButtons;this.showPaging=n.showPaging;this.infinite=n.infinite;this.breakpoint=n.breakpoint;this.index=0;this.posX1=0;this.posX2=0;this.startPos=0;this.endPos=0;this.limit=50;this.allowShift=!0;this.slideSize=0;this.slideSize=Number(getComputedStyle(this.slides[0]).marginLeft.replace("px",""))+Number(getComputedStyle(this.slides[0]).marginRight.replace("px",""))+Number(getComputedStyle(this.slides[0]).width.replace("px",""));console.log(this.slideSize);this.wrapper.style.width=String(this.slideSize*this.slidesToLoad)+"px";this.wrapper.style.left="0px";this.view.style.width=this.slideSize*this.slidesToShow+"px";this.showButtons&&(t=this.container.querySelectorAll(".control"),t.length&&t.forEach(function(n){n.remove()}),this.buildButtons());this.showPaging&&(i=this.container.querySelector(".paging"),i&&i.remove(),this.buildPaging());this.container.classList.add("loaded")},initKeysEvents:function(n){this.view.addEventListener("keydown",function(t){if(t.key==="Tab"){var i=t.target;n.forEach(function(n){n===i.name&&(t.preventDefault(),this.shiftSlide(1))})}})},initDragEvents:function(){var i=function(i){var r,u;this.view.classList.add("grabbing");this.startPos=this.wrapper.offsetLeft;i.type==="touchstart"?(r=i,this.posX1=r.touches[0].clientX):i.type==="mousedown"&&(u=i,this.posX1=u.clientX,document.addEventListener("mouseup",t),document.addEventListener("mousemove",n))},n=function(n){var t,i;n.type==="touchmove"?(t=n,this.posX2=this.posX1-t.touches[0].clientX,this.posX1=t.touches[0].clientX):n.type==="mousemove"&&(i=n,this.posX2=this.posX1-i.clientX,this.posX1=i.clientX);this.wrapper.style.left=this.wrapper.offsetLeft-this.posX2+"px"},t=function(){this.view.classList.remove("grabbing");this.endPos=this.wrapper.offsetLeft;this.endPos-this.startPos<-this.limit?this.shiftSlide(1,"drag"):this.endPos-this.startPos>this.limit?this.shiftSlide(-1,"drag"):this.wrapper.style.left=this.startPos+"px";document.removeEventListener("mouseup",t);document.removeEventListener("mousemove",n)};i=i.bind(this);n=n.bind(this);t=t.bind(this);this.view.addEventListener("mousedown",i);this.view.addEventListener("touchstart",i);this.view.addEventListener("touchmove",n);this.view.addEventListener("touchend",t);this.view.addEventListener("transitionend",function(){this.checkIndex()}.bind(this));window.addEventListener("resize",function(){this.handleBreakpoints()}.bind(this))},hideButton:function(){this.infinite||(this.index==0?this.prev&&this.prev.classList.add("hide"):this.prev&&this.prev.classList.contains("hide")&&this.prev.classList.remove("hide"),this.index==this.slidesLength-1-(this.slidesLength-1)%this.slidesToShift?this.next&&this.next.classList.add("hide"):this.next&&this.next.classList.contains("hide")&&this.next.classList.remove("hide"))},shiftLimit:function(){this.infinite?this.index<0?this.slidesLength%this.slidesToShift!=0?(this.wrapper.style.left=-((this.slidesLength-this.slidesLength%this.slidesToShift)*this.slideSize)+"px",this.index=this.slidesLength-this.slidesLength%this.slidesToShift):(this.wrapper.style.left=-((this.slidesLength-this.slidesToShift)*this.slideSize)+"px",this.index=this.slidesLength-this.slidesToShift):this.index>=this.slidesLength&&(this.wrapper.style.left="0px",this.index=0):this.index<0?(this.wrapper.style.left="0px",this.index=0):this.index>=this.slidesLength&&(this.slidesLength%this.slidesToShift!=0?(this.wrapper.style.left=-((this.slidesLength-this.slidesLength%this.slidesToShift)*this.slideSize)+"px",this.index=this.slidesLength-this.slidesLength%this.slidesToShift):(this.wrapper.style.left=-((this.slidesLength-this.slidesToShift)*this.slideSize)+"px",this.index=this.slidesLength-this.slidesToShift))},shiftSlide:function(n,t){this.wrapper.classList.add("shifting");this.allowShift&&(this.allowShift=!1,t||(this.startPos=this.wrapper.offsetLeft),n===1?(this.wrapper.style.left=this.startPos-this.slideSize*this.slidesToShift+"px",this.index+=this.slidesToShift):n==-1&&(this.wrapper.style.left=this.startPos+this.slideSize*this.slidesToShift+"px",this.index-=this.slidesToShift));this.shiftLimit()},checkIndex:function(){this.wrapper.classList.remove("shifting");this.showPaging&&this.updatePagingIndex(this.index);this.showButtons&&this.hideButton();var n=parseInt(this.wrapper.style.left);n%this.slideSize!=0&&this.jumpSlide(this.index);this.allowShift=!0},updatePagingIndex:function(n){this.paging&&this.paging.querySelectorAll(".index").forEach(function(t){var i=Number(t.classList.toString().replace(/\D/g,""));i===n?t.classList.contains("active")||t.classList.add("active"):t.classList.contains("active")&&t.classList.remove("active")})},jumpSlide:function(n){this.wrapper.classList.add("shifting");this.allowShift=!1;n<0&&this.infinite?n=this.slidesLength-1:n>=this.slidesLength&&this.infinite?n=0:n<0?n=0:n>=this.slidesLength&&(n=this.slidesLength-1);this.wrapper.style.left=-(n*this.slideSize)+"px";this.index=n},buildPaging:function(){var n,t;for(this.paging=document.createElement("div"),this.paging.classList.add("paging"),n=0;n0&&(n.Slider.build([{slidesToShow:3,slidesToShift:3,showButtons:!0,showPaging:!0,infinite:!0,breakpoint:9999},{slidesToShow:2,slidesToShift:2,showButtons:!0,showPaging:!0,infinite:!0,breakpoint:990},{slidesToShow:1,slidesToShift:1,showButtons:!0,showPaging:!0,infinite:!0,breakpoint:690}],{container:".yv-testimonial__container",view:".yv-testimonial__container__view",wrapper:".yv-testimonial__container__view__wrapper",slides:".yv-slide"},u),t.show())})}},startStoreReview:function(){var t,i;if(n.storeReviews.loadStampModal(),t=r(".yv-storereviews"),t&&t.length!=0){if(i=t.data("debug"),i&&i==!0&&n.utils.qs["yv-debug"]!="true"){n.utils.safeLog("Debugging mode for store reviews but no yv-debug querystring. Store reviews will not load");return}n.utils.toggleLoading(!1,".yv-store-review");r.jsonpx(n.uriBuilder.general("/storereview/reviews"),function(t){n.storeReviews.loadStoreReviewResult(t);n.utils.toggleLoading(!0,".yv-store-review")})}},loadStoreReviewResult:function(t){var i=r(".yv-storereviews");i.html(t.html);n.commom.loadPaging(n.storeReviews.loadStoreReviewResult,n.storeReviews.loadStoreReviewResult,".yv-store-review")},loadStoreReview:function(){var t=r(".yv-storereviews"),i;if(t&&t.length!=0){if(i=t.data("debug"),i&&i==!0&&n.utils.qs["yv-debug"]!="true"){n.utils.safeLog("Debugging mode for store reviews but no yv-debug querystring. Store reviews will not load");return}n.utils.toggleLoading(!1,".yv-store-review");r.jsonpx(n.uriBuilder.general("/storereview/reviews"),function(t){n.storeReviews.loadStoreReviewResult(t);n.utils.toggleLoading(!0,".yv-store-review")})}},loadStampModal:function(){var t="https://www.lojaconfiavel.com/trustedstore/modal/";r('[data-lcname],img[title="Loja Confiável"][src*="Footer.jpg"],img[title="Loja Confiável"][src*="Footer.jpg"]').click(function(i){var u="",s=r(i.target),e,f,o,h;return s[0].hasAttribute("data-lcname")?u=r(s).attr("data-lcname"):(e=r(i.target).parent(),e&&(f=e.attr("href"),f&&(f.indexOf("?")>-1?u=f.split("utm_source=")[1]:(o=f.split("/"),u=o[o.length-1])))),u!=""?(r(".yv-trustedstore-modal").length||(h="