(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{624:function(a,b,c){var d=c(736);"string"==typeof d&&(d=[[a.i,d,""]]),d.locals&&(a.exports=d.locals);var e=c(105).default,f=e("0338c328",d,!1,{})},735:function(a,b,c){"use strict";var d=c(624),e=c.n(d)},736:function(){},774: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"},[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"}},[c("h4",[a._v("Ver parcelas disponiveis")]),a._v(" "),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(773),f={name:"BasePopover",props:{data:Object,is_admin:Boolean},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(735),h=c(570),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}}]);