(window.webpackJsonp=window.webpackJsonp||[]).push([[25],{683:function(a,b,c){var d=c(826);"string"==typeof d&&(d=[[a.i,d,""]]),d.locals&&(a.exports=d.locals);var e=c(108).default,f=e("4546fc70",d,!1,{})},825:function(a,b,c){"use strict";var d=c(683),e=c.n(d)},826:function(){},862:function(a,b,c){"use strict";c.r(b);var d=function(){var a=this,b=a.$createElement,c=a._self._c||b;return c("div",{staticClass:"popover-container"},[c("span",{staticClass:"popover-table-price"},[a.is_icon?c("span",[c("i",{staticClass:"icon-info fas fa-info-circle",attrs:{id:"text"}})]):c("span",{class:a.is_admin?"text-price-admin":"text-price",attrs:{id:"text"}},[a._v("Ver parcelas disponiveis "),c("i",{staticClass:"fa fa-chevron-down"})]),a._v(" "),c("div",{staticClass:"popover-content",attrs:{id:"tooltip"}},[a.is_icon?c("h4",[a._v("Tabela de parcelas e valores.")]):c("h4",[a._v("Ver parcelas disponiveis")]),a._v(" "),a.is_icon?c("p",{staticClass:"bottom-margin-small"},[a._v("Na tabela abaixo, voc\xEA poder\xE1 observar a simula\xE7\xE3o da quantidade de parcelas e seus respectivos valores conforme configurado pelo mesmo. Vale lembrar que essa tabela \xE9 apenas uma simula\xE7\xE3o das parcelas para o modelo personalizado, e n\xE3o ser\xE1 exibido na p\xE1gina do produto. Caso queira essa op\xE7\xE3o, basta selecionar o modelo parcelado.")]):c("p",[a._v("Voc\xEA poder\xE1 escolher o n\xFAmero de parcelas no momento de concluir a compra.")]),a._v(" "),c("table",[a._m(0),a._v(" "),a.data.amount_parcels&&a.data.parcel_with_no_fees?c("tbody",a._l(a.showParcels,function(b){return c("tr",[c("th",[a._v("\n                            "+a._s(b.text)+"\n                        ")]),a._v(" "),c("th",[a._v("\n                            "+a._s(b.value)+"\n                        ")]),a._v(" "),c("th",[a._v("\n                            "+a._s(b.total)+"\n                        ")])])}),0):a._e()]),a._v(" "),c("div",{attrs:{id:"arrow","data-popper-arrow":""}})])])])};d._withStripped=!0;var e=c(861),f={name:"BasePopover",props:{data:Object,is_admin:Boolean,is_icon:{type:Boolean,default:!1}},data:function(){return{text:null,tooltip:null,popperInstance:null}},computed:{showParcels:function(){var a=[],b=this.data.parcel_with_discounts,c=this.data.parcel_with_no_fees,d=this.data.discount_parcels_value,e=this.data.increase_value,f=+this.data.parcels.length,g=+this.data.parcel_with_no_fees+ +b;if(b&&c&&g<=f){for(var h=0;h<b;h++)a.push({text:"".concat(+h+1,"x com desconto (").concat(d,")"),value:this.data.parcels[h].value,total:this.data.parcels[h].total});for(var j=b;j<g;j++)a.push({text:"".concat(+j+1,"x sem juros"),value:this.data.parcels[j].value,total:this.data.parcels[j].total});for(var k=g;k<f;k++)a.push({text:"".concat(+k+1,"x com juros (").concat(e," a.m)"),value:this.data.parcels[k].value,total:this.data.parcels[k].total})}return a}},methods:{show:function(){this.tooltip.setAttribute("data-show",""),this.popperInstance.update()},hide:function(){this.tooltip.removeAttribute("data-show")}},mounted:function(){var a=this;this.$nextTick(function(){a.text=document.querySelector("#text"),a.tooltip=document.querySelector("#tooltip");a.popperInstance=Object(e.a)(a.text,a.tooltip,{modifiers:[{name:"offset",options:{offset:[0,8]}}]}),["mouseenter","focus"].forEach(function(b){a.text.addEventListener(b,a.show)}),["mouseleave","blur"].forEach(function(b){a.text.addEventListener(b,a.hide)})})}},g=c(825),h=c(577),i=Object(h.a)(f,d,[function(){var a=this,b=a.$createElement,c=a._self._c||b;return c("thead",[c("tr",[c("th",[a._v("Prazo")]),a._v(" "),c("th",[a._v("Valor Mensal (R$)")]),a._v(" "),c("th",[a._v("Total (R$)")])])])}],!1,null,"33e8c7fa",null);i.options.__file="assets/components/elements/BasePopover/index.vue";b["default"]=i.exports}}]);