PageSourceSearch

https://isthmus.com.br/chunk-HD3K7XVY.js

js isthmus.com.br collected 2026-10-02 13:41:36 UTC 46,480 bytes, 1 lines download raw bytes

1import{a as De}from"./chunk-3AF7XM3M.js";import{a as F}from"./chunk-ERNJSAOL.js";import{a as ke}from"./chunk-MTTKT2KD.js";import{a as ye}from"./chunk-KKEFIE4E.js";import{a as ve,b as Oe,c as Re,d as we}from"./chunk-3XLH4CNI.js";import{a as ne}from"./chunk-36FWKOJP.js";import{a as $}from"./chunk-SU33HO3G.js";import{a as Ve}from"./chunk-GO73M6DT.js";import{a as xe}from"./chunk-6IBOLJAJ.js";import{a as Me}from"./chunk-ZEU3EMRX.js";import{c as he,d as be}from"./chunk-ZU53GXBU.js";import"./chunk-HGJUNFER.js";import{b as fe}from"./chunk-YR6QUFVK.js";import{a as Pe}from"./chunk-4KAY36PT.js";import{C as ue,F as _e,b as ce,c as le,g as de,n as me,p as se,q as pe,x as ge,y as Ce}from"./chunk-KTHA6EGB.js";import{a as Ee}from"./chunk-4AODGOPC.js";import{a as Se}from"./chunk-KY6LGEE3.js";import{a as re}from"./chunk-2LWC3PRO.js";import{a as ae}from"./chunk-GWFLCW5X.js";import{_ as oe}from"./chunk-KHUV4MM7.js";import"./chunk-EXQURIUN.js";import{G as ee,J as te,S as ie,c as K,g as Y,j as Z,na as T}from"./chunk-W2DDVCBR.js";import{Ac as S,Fb as U,Hb as C,Hc as X,Ib as u,Kb as k,Lb as V,Lc as O,Mb as D,Mc as J,Nb as _,Nc as j,Ob as o,Pb as n,Pc as y,Qb as s,Ub as Q,Va as z,Vb as G,Wa as q,Zb as P,_a as l,dc as f,fc as d,ga as v,la as p,ma as g,nb as N,sc as B,tc as c,uc as I,vc as M,wc as H,yc as R,zc as w}from"./chunk-WFD3KZYX.js";import{g as b}from"./chunk-TSRGIXR5.js";var Ie=(a,m)=>({"text-success":a,"text-danger":m});function Te(a,m){if(a&1){let e=P();o(0,"div",4)(1,"h2",10),c(2,"Confirmar Compra Recorrente?"),n(),s(3,"hr"),o(4,"p"),c(5," Revise as prefer\xEAncias abaixo e confirme a cria\xE7\xE3o desta Compra Recorrente, clicando no bot\xE3o abaixo. "),n(),s(6,"hr"),o(7,"a",11),f("click",function(t){p(e);let r=d();return t.preventDefault(),g(r.salvarCompraRecorrente())}),s(8,"i",12),c(9," Criar Compra Recorrente "),n()()}}function Fe(a,m){if(a&1){let e=P();o(0,"li",14)(1,"span"),c(2,"Status*"),n(),o(3,"div",15)(4,"div",23)(5,"input",24),S("ngModelChange",function(t){p(e);let r=d(2);return w(r.compraRecorrente.ativo,t)||(r.compraRecorrente.ativo=t),g(t)}),n(),s(6,"label",25),o(7,"span",26),c(8),n()()()()}if(a&2){let e=d(2);l(5),R("ngModel",e.compraRecorrente.ativo),l(2),_("ngClass",X(3,Ie,e.compraRecorrente.ativo,!e.compraRecorrente.ativo)),l(),M(" ",e.compraRecorrente.ativo?"Ativa":"Inativa"," ")}}function Ae(a,m){if(a&1){let e=P();o(0,"li",18)(1,"span"),c(2,"A\xE7\xF5es"),n(),o(3,"div",15)(4,"a",27),f("click",function(t){p(e);let r=d(2);return t.preventDefault(),g(r.pularProximaCompra())}),s(5,"i",28),c(6," Pular pr\xF3xima "),n(),o(7,"a",29),f("click",function(t){p(e);let r=d(2);return t.preventDefault(),g(r.realizarCompra())}),s(8,"i",30),c(9," Antecipar compra "),n(),o(10,"a",31),f("click",function(t){p(e);let r=d(2);return t.preventDefault(),g(r.removerCompraRecorrente())}),s(11,"i",32),c(12," Excluir "),n()()()}}function ze(a,m){if(a&1&&(o(0,"p"),c(1),n()),a&2){let e=m.$implicit;l(),H(" (",e.codigo,") ",e.descricao," ")}}function qe(a,m){if(a&1&&(o(0,"li")(1,"span"),c(2,"Cart\xE3o Escolhido"),n(),o(3,"div",15)(4,"p"),s(5,"img",33),c(6),n()()()),a&2){let e=d(2);l(5),_("src",e.compraRecorrente.dadosCartao==null?null:e.compraRecorrente.dadosCartao.logotipo,q)("alt","Logotipo do Cart\xE3o "+(e.compraRecorrente.dadosCartao==null?null:e.compraRecorrente.dadosCartao.ultimosDigitos)),l(),M(" ",e.compraRecorrente.dadosCartao==null?null:e.compraRecorrente.dadosCartao.ultimosDigitos)}}function Be(a,m){if(a&1){let e=P();o(0,"li")(1,"span"),c(2,"D\xEDgitos de Seguran\xE7a do Cart\xE3o (CVV)*"),n(),o(3,"div",15)(4,"input",34),S("ngModelChange",function(t){p(e);let r=d(2);return w(r.compraRecorrente.codigoSegurancaCartao,t)||(r.compraRecorrente.codigoSegurancaCartao=t),g(t)}),n()()()}if(a&2){let e=d(2);l(4),R("ngModel",e.compraRecorrente.codigoSegurancaCartao)}}function je(a,m){if(a&1){let e=P();o(0,"li",18)(1,"span"),c(2,"A\xE7\xF5es"),n(),o(3,"div",15)(4,"a",27),f("click",function(t){p(e);let r=d(2);return t.preventDefault(),g(r.reprocessarCarrinho())}),s(5,"i",35),c(6," Alterar escolhas "),n()()()}}function $e(a,m){if(a&1){let e=P();o(0,"div",21)(1,"input",36),S("ngModelChange",function(t){p(e);let r=d(2);return w(r.formaDefinicaoMaximoSelecionada,t)||(r.formaDefinicaoMaximoSelecionada=t),g(t)}),n(),o(2,"label",37),c(3),n()()}if(a&2){let e=m.$implicit,i=m.$index,t=d(2);l(),_("id","semMaximoCompra"+i)("value",e),R("ngModel",t.formaDefinicaoMaximoSelecionada),U("aria-label","Limitar Valor da Compra por "+e.descricao),l(),_("for","semMaximoCompra"+i),l(),I(e.descricao)}}function We(a,m){if(a&1){let e=P();o(0,"li")(1,"span"),c(2,"Valor M\xE1ximo do Frete*"),n(),o(3,"div",15)(4,"input",38),f("ngModelChange",function(t){p(e);let r=d(2);return g(r.onValorMaximoFreteChange(t))}),n()()()}if(a&2){let e=d(2);l(4),_("ngModel",e.compraRecorrente.valorMaximoFrete)}}function Le(a,m){if(a&1){let e=P();o(0,"p")(1,"a",39),f("click",function(t){p(e);let r=d(2);return t.preventDefault(),g(r.salvarCompraRecorrente())}),s(2,"i",12),c(3," Salvar Prefer\xEAncias "),n()()}}function Ne(a,m){if(a&1){let e=P();o(0,"div",7)(1,"ul",13),C(2,Fe,9,6,"li",14),o(3,"li")(4,"span"),c(5,"Dias de Intervalo entre as Compras*"),n(),o(6,"div",15)(7,"input",16),S("ngModelChange",function(t){p(e);let r=d();return w(r.compraRecorrente.diasRecorrenciaCompra,t)||(r.compraRecorrente.diasRecorrenciaCompra=t),g(t)}),n()()(),o(8,"li")(9,"span"),c(10,"Data da Pr\xF3xima Compra"),n(),o(11,"div",15)(12,"p"),s(13,"i",17),c(14),O(15,"date"),n()()(),C(16,Ae,13,0,"li",18),n(),o(17,"ul",13)(18,"li")(19,"span"),c(20,"Forma de Pagamento"),n(),o(21,"div",15),s(22,"p",19),n()(),o(23,"li")(24,"span"),c(25,"Plano de Pagamento"),n(),o(26,"div",20),V(27,ze,2,2,"p",null,k),n()(),C(29,qe,7,3,"li"),C(30,Be,5,1,"li"),C(31,je,7,0,"li",18),n(),o(32,"ul",13)(33,"li")(34,"span"),c(35,"Limitar Valor da Compra por:*"),n(),o(36,"div",15),V(37,$e,4,6,"div",21,k),n()(),o(39,"li")(40,"span"),c(41,"Valor M\xE1ximo do Pedido*"),n(),o(42,"div",15)(43,"input",22),f("ngModelChange",function(t){p(e);let r=d();return g(r.onValorMaximoPedidoChange(t))}),n()()(),C(44,We,5,1,"li"),n(),C(45,Le,4,0,"p"),n()}if(a&2){let e=d();l(2),u((e.compraRecorrente==null?null:e.compraRecorrente.id)>0?2:-1),l(5),R("ngModel",e.compraRecorrente.diasRecorrenciaCompra),l(7),M(" ",j(15,12,e.dataProximaCompra(),"dd/MM/yyyy")," "),l(2),u((e.compraRecorrente==null?null:e.compraRecorrente.id)>0?16:-1),l(6),_("innerHtml",e.formaPagamento(),z),l(5),D(e.compraRecorrente.planosPagamento),l(2),u(e.compraRecorrente.dadosCartao?29:-1),l(),u(e.compraRecorrente.dadosCartao?30:-1),l(),u((e.compraRecorrente==null?null:e.compraRecorrente.id)>0?31:-1),l(6),D(e.formasDefinicaoMaximo),l(6),_("disabled",e.formaDefinicaoMaximoSelecionada.identificador!=2)("ngModel",e.compraRecorrente.valorMaximoPedido),l(),u(e.compraRecorrente.calcularFreteSite?44:-1),l(),u(e.compraRecorrente.id>0?45:-1)}}function Ue(a,m){a&1&&(o(0,"p",8),c(1,"Atualizando prefer\xEAncias. Aguarde..."),n())}function Qe(a,m){if(a&1&&(Q(0,3),o(1,"div",50)(2,"div",51)(3,"h4",52),s(4,"i",53),c(5," Falha ao realizar \xFAltima compra! "),n(),s(6,"p",19),n()(),G()),a&2){let e=d(2);l(6),_("innerHtml",e.compraRecorrente.erroValidacaoUltimaCompra,z)}}function Ge(a,m){if(a&1){let e=P();o(0,"div",40)(1,"div",54)(2,"a",55),f("click",function(t){p(e);let r=d(2);return t.preventDefault(),g(r.reprocessarCarrinho())}),s(3,"i",56),c(4," Adicionar ou Remover Itens "),n()(),o(5,"div",57)(6,"a",58),f("click",function(t){p(e);let r=d(2);return t.preventDefault(),g(r.salvarCompraRecorrente())}),s(7,"i",12),c(8," Salvar altera\xE7\xF5es nos Itens "),n()()()}}function He(a,m){if(a&1&&(o(0,"th",46),c(1),n()),a&2){let e=d(2);l(),I(e.configuracoesSistema.renomearEmbalagem)}}function Xe(a,m){a&1&&(o(0,"th",47),c(1,"Pre\xE7o M\xE1ximo para Compra"),n())}
1function Je(a,m){if(a&1&&(c(0),O(1,"currency")),a&2){let e=d().$implicit,i=d(2);M(" ",e.precoAtual>0?y(1,1,e.precoAtual,"BRL","symbol-narrow","1."+i.configuracoesSistema.casasDecimaisExibicao):""," ")}}function Ke(a,m){a&1&&(o(0,"span",66),s(1,"mat-spinner",67),n())}function Ye(a,m){if(a&1){let e=P();o(0,"td",47)(1,"input",68),f("ngModelChange",function(t){p(e);let r=d().$implicit,h=d(2);return g(h.onPrecoMaximoItemChange(r,t))}),n()()}if(a&2){let e=d().$implicit;l(),_("ngModel",e.precoMaximoCompra)}}function Ze(a,m){if(a&1&&(c(0),O(1,"currency")),a&2){let e=d().$implicit,i=d(2);M(" ",e.precoAtual>0?y(1,1,e.precoAtual*e.quantidade,"BRL","symbol-narrow","1."+i.configuracoesSistema.casasDecimaisExibicao):"Esgotado"," ")}}function et(a,m){a&1&&(o(0,"span",66),s(1,"mat-spinner",67),n())}function tt(a,m){if(a&1){let e=P();o(0,"tr")(1,"td",44)(2,"a",59),f("click",function(){let t=p(e).$implicit,r=d(2);return g(r.detalhes(t))}),s(3,"img",60),O(4,"safe"),n()(),o(5,"td")(6,"span",61),f("click",function(){let t=p(e).$implicit,r=d(2);return g(r.detalhes(t))}),c(7),s(8,"br"),o(9,"span",48),c(10),n()()(),o(11,"td",62)(12,"div",63)(13,"input",64),S("ngModelChange",function(t){let r=p(e).$implicit;return w(r.quantidade,t)||(r.quantidade=t),g(t)}),f("change",function(){let t=p(e).$implicit,r=d(2);return g(r.operacaoQuantidade(t))}),n()()(),o(14,"td",62)(15,"div",63)(16,"input",65),S("ngModelChange",function(t){let r=p(e).$implicit;return w(r.quantidadeMinimaCompra,t)||(r.quantidadeMinimaCompra=t),g(t)}),f("change",function(){let t=p(e).$implicit,r=d(2);return g(r.operacaoQuantidade(t))}),n()()(),o(17,"td",47),C(18,Je,2,6)(19,Ke,2,0,"span",66),n(),C(20,Ye,2,1,"td",47),o(21,"td",47),C(22,Ze,2,6)(23,et,2,0,"span",66),n()()}if(a&2){let e=m.$implicit,i=d(2);l(3),_("src",J(4,16,e.urlImagem),q)("alt","Imagem do Produto "+e.nomeProduto),l(4),M(" ",e.nomeProduto," "),l(3),M("C\xF3digo ",e.codigoProduto),l(3),_("step",e.multiplo)("value",e.quantidade),R("ngModel",e.quantidade),_("disabled",!0),l(3),_("step",e.multiplo)("value",e.quantidadeMinimaCompra),R("ngModel",e.quantidadeMinimaCompra),_("min",0)("max",e.quantidade),l(2),u(i.loadingPreco?19:18),l(2),u(i.formaDefinicaoMaximoSelecionada.identificador==3?20:-1),l(2),u(i.loadingPreco?23:22)}}function nt(a,m){a&1&&s(0,"td")}function ot(a,m){if(a&1&&(o(0,"td",47),c(1),O(2,"currency"),n()),a&2){let e=d(2);l(),M(" ",y(2,1,e.maximoPrevisto(),"BRL","symbol-narrow","1."+e.configuracoesSistema.casasDecimaisExibicao)," ")}}function it(a,m){if(a&1&&(s(0,"br"),o(1,"span",48),c(2),n()),a&2){let e=d().$implicit;l(2),M(" ",e.observacao," ")}}function at(a,m){if(a&1){let e=P();o(0,"tr")(1,"td"),c(2),n(),o(3,"td"),c(4),C(5,it,3,1),n(),o(6,"td",46),c(7),O(8,"date"),n(),o(9,"td",47),c(10),O(11,"currency"),n(),o(12,"td")(13,"p",73),s(14,"i"),c(15),n()(),o(16,"td",74)(17,"div",75)(18,"a",76),f("click",function(){let t=p(e).$implicit,r=d(3);return g(r.detalhesPedido(t))}),s(19,"i",77),c(20," Detalhes "),n()()()()}if(a&2){let e=m.$implicit,i=d(3);l(2),I(e.numeroPedido>0?e.numeroPedido:""),l(2),M(" ",e.numeroPedidoIntegracao>0?e.numeroPedidoIntegracao:""," "),l(),u(e.observacao?5:-1),l(2),M(" ",j(8,10,e.dataPedido,"dd/MM/yyyy")," "),l(3),M(" ",y(11,13,e.valorAtendido>0?e.valorAtendido:e.valorPedido,"BRL","symbol-narrow","1.2-2")," "),l(3),B(i.corStatusPedido(e)),l(),B(i.iconeStatusPedido(e)),l(),M(" ",i.descricaoStatusPedido(e)," ")}}function rt(a,m){if(a&1&&(o(0,"div",49)(1,"h2"),c(2," Pedidos gerados por esta Compra Recorrente "),n(),o(3,"div",42)(4,"table",69)(5,"thead")(6,"tr")(7,"th",70),c(8,"N\xFAmero"),n(),o(9,"th",70),c(10,"N\xFAmero do Site"),n(),o(11,"th",71),c(12,"Data"),n(),o(13,"th",72),c(14,"Valor"),n(),o(15,"th",70),c(16,"Status"),n(),s(17,"th",70),n()(),o(18,"tbody"),V(19,at,21,18,"tr",null,k),n()()()()),a&2){let e=d(2);l(19),D(e.compraRecorrente.pedidosGerados)}}function ct(a,m){if(a&1&&(o(0,"div",9),C(1,Qe,7,1,"ng-container",3),o(2,"h3",5),c(3,"Itens da Compra"),n(),C(4,Ge,9,0,"div",40),o(5,"div",41)(6,"div",42)(7,"table",43)(8,"thead")(9,"tr"),s(10,"th",44),o(11,"th",45),c(12,"Produto"),n(),C(13,He,2,1,"th",46),o(14,"th",46),c(15,"Qtd. Desejada"),n(),o(16,"th",46),c(17,"Qtd. M\xEDnima para Compra"),n(),o(18,"th",47),c(19,"Pre\xE7o Atual"),n(),C(20,Xe,2,0,"th",47),o(21,"th",47),c(22,"Total"),n(),s(23,"th"),n()(),o(24,"tbody"),V(25,tt,24,18,"tr",null,k),n(),o(27,"tfoot")(28,"tr"),s(29,"td")(30,"td"),C(31,nt,1,0,"td"),s(32,"td")(33,"td")(34,"td"),C(35,ot,3,6,"td",47),o(36,"td",47),c(37),O(38,"currency"),n()()()()()(),o(39,"span",48),c(40," Obs.: Voc\xEA pode criar aqui uma compra recorrente de acordo com seu carrinho atual. Caso deseje alterar formas de pagamento, quantidade, promo\xE7\xF5es, etc, deve ser realizado o processo dentro do carrinho de compras. "),s(41,"br"),c(42," Voc\xEA pode definir alguns par\xE2metros para a compra recorrente acontecer, como um pre\xE7o m\xE1ximo para um produto ou uma quantidade m\xEDnima a ser comprada caso o estoque no momento seja insuficiente. "),s(43,"br"),c(44," Todos os valores apresentado aqui s\xE3o dependetes de valida\xE7\xE3o no momento da gera\xE7\xE3o da compra. "),s(45,"br"),c(46," Caso n\xE3o seja poss\xEDvel enviar o pedido devido a algum motivo voc\xEA ser\xE1 notificado por email. "),n(),C(47,rt,21,0,"div",49),n()),a&2){let e=d();l(),u((e.compraRecorrente.erroValidacaoUltimaCompra==null?null:e.compraRecorrente.erroValidacaoUltimaCompra.length)>0?1:-1),l(3),u(e.compraRecorrenteId>0?4:-1),l(9),u(e.configuracoesSistema.vendaPorEmbalagem?13:-1),l(7),u(e.formaDefinicaoMaximoSelecionada.identificador==3?20:-1),l(5),D(e.compraRecorrente.itensCompraRecorrente),l(6),u(e.configuracoesSistema.vendaPorEmbalagem?31:-1),l(4),u(e.formaDefinicaoMaximoSelecionada.identificador==3?35:-1),l(2),I(y(38,8,e.totalPrevisto(),"BRL","symbol-narrow","1."+e.configuracoesSistema.casasDecimaisExibicao)),l(10),u((e.compraRecorrente.pedidosGerados==null?null:e.compraRecorrente.pedidosGerados.length)>0?47:-1)}}var W=(()=>{class a{constructor(){this.distribuidoraService=v(Pe),this.activedRoute=v(ee),this.router=v(te),this.carrinhoService=v(re),this.resumoCarrinhoService=v(ae),this.toastService=v(oe),this.produtoService=v(he),this.confirmationDialogService=v(Me),this.compraRecorrenteService=v(ye),this.loading=!1,this.imagensProdutos=[],this.listaBreadCrumb=[],this.limparCarrinho=!0,this.loadingPreco=!1,this.formasDefinicaoMaximo=[{identificador:1,descricao:"N\xE3o Limitar"},{identificador:2,descricao:"Total do Pedido"},{identificador:3,descricao:"Total dos Itens"}]}parseMoeda(e){return e&&parseFloat(String(e).replace(/\./g,"").replace(",","."))||0}onValorMaximoPedidoChange(e){!e||e.endsWith(",")||(this.compraRecorrente.valorMaximoPedido=this.parseMoeda(e))}onValorMaximoFreteChange(e){!e||e.endsWith(",")||(this.compraRecorrente.valorMaximoFrete=this.parseMoeda(e))}onPrecoMaximoItemChange(e,i){!i||i.endsWith(",")||(e.precoMaximoCompra=this.parseMoeda(i))}ngOnInit(){return b(this,null,function*(){this.nomeVirtual=this.activedRoute.parametro(ie),this.distribuidora=yield this.distribuidoraService.dadosDistribuidora(this.nomeVirtual),this.configuracoesSistema=yield this.distribuidoraService.configuracoesSistema(this.distribuidora.id),this.compraRecorrenteId=Number(this.activedRoute.parametro(T)??"0"),this.compraRecorrente=null,this.listaBreadCrumb=[{titulo:"In\xEDcio",url:`${this.distribuidora.nomeVirtual}/compras`},{titulo:this.compraRecorrenteId>0?"Compras recorrentes":"Carrinho compras",url:this.compraRecorrenteId>0?`${this.distribuidora.nomeVirtual}/compras/compras-recorrentes`:`${this.distribuidora.nomeVirtual}/compras/carrinho`},{titulo:"Compra recorrente",url:"#"}],this.compraRecorrenteId>0?this.editarCompraRecorrente():this.criarCompraRecorrente()})}editarCompraRecorrente(){this.loading=!0,this.compraRecorrenteService.obterCompraRecorrente(this.compraRecorrenteId).then(e=>{this.compraRecorrente=e,this.formaDefinicaoMaximoSelecionada=this.formasDefinicaoMaximo[0],this.compraRecorrente.valorMaximoPedido>0?this.formaDefinicaoMaximoSelecionada=this.formasDefinicaoMaximo[1]:this.compraRecorrente.itensCompraRecorrente.some(i=>i.precoMaximoCompra>0)&&(this.formaDefinicaoMaximoSelecionada=this.formasDefinicaoMaximo[2]),this.buscarImagemProdutos(),this.buscarPrecos()}).catch(e=>
1{this.toastService.mensagemErro("Falha ao encontrar compra recorrente!"),history.back()}).finally(()=>this.loading=!1)}criarCompraRecorrente(){this.loading=!0,this.carrinho=null,this.compraRecorrente=null,this.formaDefinicaoMaximoSelecionada=this.formasDefinicaoMaximo[0],this.carrinhoService.buscarCarrinhoCompras().toPromise().then(e=>{this.loading=!1,this.carrinho=e;var i=[];this.carrinho.agrupamentoItens.forEach(x=>x.filiais.forEach(E=>E.itensCarrinho.forEach(A=>{i.push({itemCarrinho:A,codigoFilial:E.codigoFilial,codigoRegiao:E.codigoRegiao,planoPagamento:x.planoPagamento})})));var t=this.carrinho.totalCarrinho+this.carrinho.totalCarrinho*10/100,r=this.carrinho?.totalFrete??0+(this.carrinho?.totalFrete??10)/100,h=new Date,L=new Date;L.setDate(h.getDate()+30),this.compraRecorrente={id:0,dataCriacao:h,dataUltimaCompra:h,dataProximaCompra:L,ativo:!0,compraConfirmada:!1,planosPagamento:this.carrinho.agrupamentoItens.map(x=>x.planoPagamento),dadosCartao:this.carrinho.dadosCartao,codigoTransportadoraFrete:this.carrinho.frete?.freteId??0,diasRecorrenciaCompra:30,calcularFreteSite:!0,opcaoPagamento:this.carrinho.opcaoPagamento,valorMaximoFrete:r,valorMaximoPedido:t,itensCompraRecorrente:i.map(x=>{var E=x.itemCarrinho.precoVenda+x.itemCarrinho.precoVenda*10/100,A={id:0,codigoFilial:x.codigoFilial,codigoRegiao:x.codigoRegiao,quantidade:x.itemCarrinho.quantidade,quantidadeMinimaCompra:0,precoAtual:x.itemCarrinho.precoVenda,multiplo:x.itemCarrinho.multiplo,precoMaximoCompra:E,codigoProduto:x.itemCarrinho.codigoProduto,produtoId:x.itemCarrinho.produtoId,nomeProduto:x.itemCarrinho.nomeProduto,urlImagem:x.itemCarrinho.urlImagem};return A})},this.buscarImagemProdutos()},e=>{this.loading=!1})}operacaoQuantidade(e){if(!$.IsMultiploValido(e.quantidade,e.multiplo)){e.quantidade=$.MultiploValido(e.quantidade,e.multiplo),this.toastService.mensagemErro(`Produto pode ser vendido apenas em multiplos de ${e.multiplo}`,2e3);return}}realizarCompra(){this.confirmationDialogService.confirm("Comprar Agora!","Deseja fazer esta compra agora?").then(e=>b(this,null,function*(){e&&(this.loading=!0,this.compraRecorrenteService.realizarCompra(this.compraRecorrente.id).then(i=>{this.toastService.mensagemPadrao(i)}).finally(()=>this.loading=!1))}))}adicionarItensCarrinho(){this.confirmationDialogService.confirm("Adicionar ao Carrinho","Deseja adicionar estes itens ao seu carrinho de compras?").then(e=>b(this,null,function*(){if(e){this.loading=!0,this.limparCarrinho&&(yield this.carrinhoService.limparCarrinhoCompras().toPromise());var i=this.compraRecorrente.itensCompraRecorrente.map(t=>new Ve(t.produtoId,t.codigoProduto,t.quantidade,t.codigoRegiao,t.codigoFilial,0,t.embalagem));this.carrinhoService.inserirItensCarrinho(i).toPromise().then(t=>{var r;t.every(h=>!h.sucesso)?r={sucesso:!1,titulo:"",mensagem:"Infelizmente n\xE3o conseguimos adicionar os itens! Tente adicionando os itens separadamente."}:t.some(h=>!h.sucesso)?r={sucesso:!0,titulo:"",mensagem:"Infelizmente n\xE3o conseguimos adicionar todos os itens! Tente adicion\xE1-los separadamente."}:r={sucesso:!0,titulo:"",mensagem:"Itens inseridos com sucesso!"},r.sucesso?this.toastService.mensagemSucesso(r.mensagem):this.toastService.mensagemErro(r.mensagem),this.resumoCarrinhoService.notificarAlteracao()}).finally(()=>this.loading=!1)}}))}salvarCompraRecorrente(){switch(this.formaDefinicaoMaximoSelecionada.identificador){case 1:this.compraRecorrente.valorMaximoPedido=0,this.compraRecorrente.itensCompraRecorrente.forEach(e=>e.precoMaximoCompra=0);break;case 2:this.compraRecorrente.itensCompraRecorrente.forEach(e=>e.precoMaximoCompra=0);break;case 3:this.compraRecorrente.valorMaximoPedido=0;break}this.confirmationDialogService.confirm("Salvar Altera\xE7\xF5es",this.compraRecorrenteId>0?"Salvar altera\xE7\xF5es nas informa\xE7\xF5es desta Compra Recorrente?":"Ser\xE1 criada uma nova Compra Recorrente").then(e=>b(this,null,function*(){e&&(this.loading=!0,this.compraRecorrenteService.salvarCompraRecorrente(this.compraRecorrente).then(i=>{this.toastService.mensagemPadrao(i),this.compraRecorrenteId==0&&this.router.navegar(`${this.nomeVirtual}/compras/compras-recorrentes`)}).finally(()=>this.loading=!1))}))}removerCompraRecorrente(){this.compraRecorrenteId!=0&&this.confirmationDialogService.confirm("Remover Compra Recorrente","A compra ser\xE1 removida em definitivo, n\xE3o ser\xE1 mais executada nem poder\xE1 ser recuperada! <br /><br /> Confirmar?").then(e=>b(this,null,function*(){e&&(this.loading=!0,this.compraRecorrenteService.removerCompraRecorrente(this.compraRecorrenteId).then(i=>{this.toastService.mensagemPadrao(i),i.sucesso&&this.router.navegar(`${this.nomeVirtual}/compras/compras-recorrentes`)}).finally(()=>this.loading=!1))}))}reprocessarCarrinho(){this.compraRecorrenteId!=0&&this.confirmationDialogService.confirm("Alterar Escolhas","Voc\xEA poder\xE1 alterar Itens, Quantidades, Forma de Pagamento, Prazos e Frete desta Compra Recorrente.").then(e=>b(this,null,function*(){e&&(this.loading=!0,this.compraRecorrenteService.recuperarCarrinhoCompraRecorrente(this.compraRecorrenteId).then(i=>{this.toastService.mensagemPadrao(i),i.sucesso&&(this.resumoCarrinhoService.n
1otificarAlteracao(),this.router.navegar(`${this.nomeVirtual}/compras/carrinho`))}).finally(()=>this.loading=!1))}))}resetarDataCompra(){if(this.compraRecorrenteId!=0){var e=new Date;e.setDate(e.getDate()+this.compraRecorrente.diasRecorrenciaCompra);var i=e.toLocaleDateString("pt-BR");this.confirmationDialogService.confirm("Resetar data de pr\xF3xima compra","Caso confirmado, a pr\xF3xima data de compra deixar\xE1 de considerar a ultima compra efetuada e passar\xE1 a considerar o dia de hoje! <br />Nesse caso a pr\xF3xima data de compra ser\xE1 "+i).then(t=>b(this,null,function*(){t&&(this.loading=!0,this.compraRecorrenteService.resetarDataCompraRecorrente(this.compraRecorrenteId).then(r=>{this.toastService.mensagemPadrao(r),r.sucesso&&(this.compraRecorrente.dataUltimaCompra=new Date)}).finally(()=>this.loading=!1))}))}}pularProximaCompra(){if(this.compraRecorrenteId!=0){var e=this.dataProximaCompra();e.setDate(e.getDate()+this.compraRecorrente.diasRecorrenciaCompra);var i=e.toLocaleDateString("pt-BR");this.confirmationDialogService.confirm("Pular Pr\xF3xima Data de Compra","Deseja ignorar a pr\xF3xima compra? <br /> Neste caso, a pr\xF3xima compra ser\xE1 em "+i).then(t=>b(this,null,function*(){t&&(this.loading=!0,this.compraRecorrenteService.pularProximaCompraRecorrente(this.compraRecorrenteId).then(r=>{this.toastService.mensagemPadrao(r),r.sucesso&&(this.compraRecorrente.dataUltimaCompra=this.dataProximaCompra())}).finally(()=>this.loading=!1))}))}}dataProximaCompra(){let e=new Date;return this.compraRecorrente&&(e=new Date(this.compraRecorrente.dataUltimaCompra)>new Date(this.compraRecorrente.dataCriacao)?new Date(this.compraRecorrente.dataUltimaCompra):new Date(this.compraRecorrente.dataCriacao)),e.setDate(e.getDate()+(this.compraRecorrente?.diasRecorrenciaCompra??30)),e}totalFilialExibicao(e){return this.configuracoesSistema.ocultarValorStPrecoVenda?e.totalFilial-e.totalStFilial:e.totalFilial}buscarPrecos(){return b(this,null,function*(){this.loadingPreco=!0;var e=this.compraRecorrente.itensCompraRecorrente.map(t=>t.produtoId),i=yield this.produtoService.precos(this.distribuidora.id,e);this.loadingPreco=!1,this.compraRecorrente.itensCompraRecorrente.forEach(t=>{var r=i.find(h=>h.codigoProduto==t.codigoProduto&&h.codigoFilial==t.codigoFilial&&h.codigoRegiao==t.codigoRegiao);r!=null&&(t.precoAtual=r.precoVenda)})})}formaPagamento(){switch(this.compraRecorrente.opcaoPagamento){case F.Boleto:return'<i class="fa fa-barcode"></i> Boleto';case F.CartaoCredito:return'<i class="far fa-credit-card"></i> Cart\xE3o de cr\xE9dito';case F.Pix:return'<i class="fa fa-qrcode"></i> PIX';default:return""}}totalPrevisto(){return this.compraRecorrente.itensCompraRecorrente.map(e=>e.precoAtual*e.quantidade).reduce((e,i)=>e+i,0)}maximoPrevisto(){return this.compraRecorrente.itensCompraRecorrente.map(e=>e.precoMaximoCompra*e.quantidade).reduce((e,i)=>e+i,0)}buscarImagemProdutos(){return b(this,null,function*(){var e=this.compraRecorrente.itensCompraRecorrente.map(t=>new be(t.codigoProduto,null,null,null));if(e.length>0){var i=yield this.produtoService.buscarImagemProdutos(this.distribuidora.id,e).toPromise();i&&i.length>0&&(this.imagensProdutos=i,this.compraRecorrente.itensCompraRecorrente.forEach(t=>{var r=i.find(h=>h.codigoProduto==t.codigoProduto);(r?.imagens?.length??0)>0&&(t.urlImagem=r.imagens[0].urlImagem)}))}})}detalhes(e){let i=e.nomeProduto.normalizar();this.router.navegar(`${this.nomeVirtual}/compras/produto/${i}/${e.produtoId}`)}imagemProduto(e){if(!this.imagensProdutos||this.imagensProdutos.length==0)return"";var i=this.imagensProdutos.find(t=>t.codigoProduto==e.codigoProduto)?.imagens??[];return i?.length>0?i[0].urlImagem:""}detalhesPedido(e){e.statusPedido==ve.Cancelado?this.router.navegar(`${this.distribuidora.nomeVirtual}/compras/detalhes-pedidos/${e.id}/0`):this.router.navegar(`${this.distribuidora.nomeVirtual}/compras/detalhes-pedidos/${e.id}/${e.numeroPedido}`)}descricaoStatusPedido(e){return Oe.Get(e.statusPedido)}iconeStatusPedido(e){return we.Get(e.statusPedido)}corStatusPedido(e){return Re.Get(e.statusPedido)}static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275cmp=N({type:a,selectors:[["isthmus-compra-recorrente"]],decls:16,vars:5,consts:[[1,"container"],[3,"listaBreadCrumb"],[3,"show"],[1,"mb-3"],[1,"alert","alert-success","text-center","p-2","mb-3"],[1,"mb-0"],[1,"text-muted","small","mb-1"],[1,"mt-2"],[1,"text-center","text-muted","small","mt-4"],[1,"mt-4","cartContent","clearfix"],[1,"p2","text-success"],["href","","aria-label","Criar Compra Recorrente",1,"btn","btn-md","btn-success",3,"click"],[1,"fa","fa-check"],[1,"info"],[1,"mr-3",2,"min-width","95px"],[1,"body"],["type","number","aria-label","Dias de Intervalo entre as Compras",1,"form-control",3,"ngModelChange","ngModel"],[1,"far","fa-calendar"],[1,"acoes"],[3,"innerHtml"],[1,"body",2,"max-width","335px"],[1,"custom-control","custom-radio","custom-control-inline"],["type","text","mask","separator.2","thous
1andSeparator",".","decimalMarker",",","prefix","R$ ","aria-label","Valor M\xE1ximo do Pedido",1,"form-control",3,"ngModelChange","disabled","ngModel"],[1,"custom-control","custom-switch","pointer"],["type","checkbox","id","compraAtiva","aria-label","Ativar Compra Recorrente",1,"custom-control-input","pointer",3,"ngModelChange","ngModel"],["for","compraAtiva",1,"custom-control-label","pointer"],["for","compraAtiva",3,"ngClass"],["href","",1,"text-info",3,"click"],[1,"fas","fa-step-forward"],["href","",1,"text-success",3,"click"],[1,"fa","fa-shopping-basket"],["href","",1,"text-danger",3,"click"],[1,"fa","fa-trash"],["width","50",3,"src","alt"],["type","password","maxlength","4","value","***","aria-label","D\xEDgitos de Seguran\xE7a do Cart\xE3o (CVV)",1,"form-control",3,"ngModelChange","ngModel"],[1,"fas","fa-sync-alt"],["type","radio","name","maximoCompra",1,"custom-control-input",3,"ngModelChange","id","value","ngModel"],[1,"custom-control-label","custom","small",3,"for"],["type","text","mask","separator.2","thousandSeparator",".","decimalMarker",",","prefix","R$ ","aria-label","Valor M\xE1ximo do Frete",1,"form-control",3,"ngModelChange","ngModel"],["href","",1,"btn","btn-md","btn-success",3,"click"],[1,"row"],[1,"card-default-carrinho","mt-2",2,"background-color","white"],[1,"table-responsive"],[1,"table","table-hover"],[1,"text-center","imagem-lista"],[1,"text-left"],[1,"text-center"],[1,"text-right"],[1,"text-muted","small"],[1,"card-default-pedidos","mobile","mt-4"],[1,"row","text-center"],["role","alert",1,"alert","alert-danger","w-100p"],[1,"alert-heading"],[1,"fas","fa-exclamation-triangle"],[1,"col-lg-6"],["href","","aria-label","Adicionar ou Remover Itens",1,"btn","btn-md","btn-info","text-white",3,"click"],[1,"fa","fa-plus"],[1,"col-lg-6","text-right"],["href","","aria-label","Salvar altera\xE7\xF5es nos Itens",1,"btn","btn-md","btn-success",3,"click"],[3,"click"],["image-404","",3,"src","alt"],[1,"nome-produto","pointer",3,"click"],[1,"text-center","quantidade"],[1,"qty","pb-0"],["type","number","aria-label","Quantidade do Produto",1,"form-control-sm",3,"ngModelChange","change","step","value","ngModel","disabled"],["type","number","aria-label","Quantidade M\xEDnima para Compra",1,"form-control-sm",3,"ngModelChange","change","step","value","ngModel","min","max"],[1,"alinhar-centro"],["diameter","22","strokeWidth","3"],["type","text","mask","separator.2","thousandSeparator",".","decimalMarker",",","prefix","R$ ","aria-label","Pre\xE7o M\xE1ximo de Compra",1,"form-control",2,"max-width","150px","height","initial !important","padding","5px","float","right",3,"ngModelChange","ngModel"],[1,"table","table-striped","table-hover","pd-default"],["scope","col"],["scope","col",1,"text-center"],["scope","col",1,"text-right"],[2,"margin","0px"],[1,"text-white",2,"text-align","end"],[1,"d-inline-flex"],["aria-label","Ver Detalhes do Pedido",1,"btn","button","btn-info","btn-sm","m-1",3,"click"],[1,"fa","fa-search"]],template:function(i,t){i&1&&(o(0,"section")(1,"div",0),s(2,"isthmus-breadcrumb",1)(3,"app-loading",2),o(4,"h1",3),c(5,"Compra Recorrente"),n(),C(6,Te,10,0,"div",4),o(7,"h3",5),c(8,"Prefer\xEAncias da Compra"),n(),o(9,"p",6),c(10," Altera\xE7\xF5es nos valores dos campos marcados por '*' somente ser\xE3o confirmadas "),o(11,"strong"),c(12,"ap\xF3s serem salvas"),n()(),C(13,Ne,46,15,"div",7)(14,Ue,2,0,"p",8),C(15,ct,48,13,"div",9),n()()),i&2&&(l(2),_("listaBreadCrumb",t.listaBreadCrumb),l(),_("show",t.loading),l(3),u(t.compraRecorrenteId==0?6:-1),l(7),u(!t.loading&&t.compraRecorrente?13:14),l(2),u(t.compraRecorrente?15:-1))},dependencies:[De,ne,_e,le,se,ce,pe,de,ue,Ce,ge,me,K,fe,Se,xe,Z,Y,Ee],styles:[".label-end[_ngcontent-%COMP%]{display:flex;align-items:flex-end}.info[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#6c757d;font-size:smaller}.info-cliente[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{margin-bottom:0}.espaco-entre[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.text-end[_ngcontent-%COMP%]{text-align:end}.btn-remover[_ngcontent-%COMP%]{background-color:#bf3100!important}ul.info[_ngcontent-%COMP%]{display:flex;list-style:none;padding:5px;margin:0 0 5px;background-color:#f0f0f0;border-radius:5px;justify-content:flex-start}ul.info[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{margin-right:5px;background-color:#fff;border-radius:5px;padding:10px}ul.info[_ngcontent-%COMP%]   li.acoes[_ngcontent-%COMP%]{background-color:#f0f0f0}ul.info[_ngcontent-%COMP%]   li.acoes[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:small;margin-right:15px}ul.info[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}ul.info[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   input.form-control[_ngcontent-%COMP%]{height:auto!important;padding:5px;font-size:small}ul.info[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]{min-height:32px;align-items:center;display:flex}.custom-control-label.custom[_ngcontent-%COMP%]:before{top:2px;left:-19px}.custom-control-label.custom[_ngcontent-%COMP%]:after{top:2px;left:-19px}","tr.para-excluir[_ngcontent-%COMP%]{color:#ccc!important}tr.para-excluir[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{background-color:#f0f0f0}tr.para-excluir[_ngcontent-%COMP%]   .qty[_ngcontent-%COMP%], tr.para-excluir[_ngcontent-%COMP%]   .btn-remover[_ngcontent-%COMP%]{pointer-events:none;cursor:default;opacity:.6}tr.alterar-qtd[_ngcontent-%COMP%]   .qty[_ngcontent-%COMP%]{background-color:#fcf3ab;border:4px solid #ffce00;border-radius:10px}.imagem-lista[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:80px;max-height:80px}.cartContent[_ngcontent-%COMP%]   .qty[_ngcontent-%COMP%]{float:inherit;width:auto;font-size:inherit;padding:0}table.table[_ngcontent-%COMP%]{margin:0;display:inline-table}table.table[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], table.table[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding:2px}table.table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], table.table[_ngcontent-%COMP%]   tfoot[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding-top:5px;padding-bottom:5px}table.table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%], table.table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], table.table[_ngcontent-%COMP%]   tfoot[_ngcontent-%COMP%]{background-color:#f9f9f9;font-weight:700}.alinhar-centro[_ngcontent-%COMP%]{text-align:center;justify-content:center;align-items:center;display:flex}.cardTotal[_ngcontent-%COMP%]{display:flex;width:100%;font-weight:700}.cardTotal[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{flex:1;margin:0}.cardCupom[_ngcontent-%COMP%]{width:100%;font-weight:700}.cardCupom[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{flex:1;margin:0}  .tr .td{border-bottom:none!important;margin-bottom:4px}.nome-produto-lista[_ngcontent-%COMP%]{justify-content:flex-start!important}.totais[_ngcontent-%COMP%]{font-weight:700}.totais[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{float:right}.aplicar-alteracoes[_ngcontent-%COMP%]{background-color:#fff}
1.aplicar-alteracoes[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{font-weight:700}.aplicar-alteracoes[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%], .aplicar-alteracoes[_ngcontent-%COMP%]{color:#ffc107}.aplicar-alteracoes[_ngcontent-%COMP%]   .btn.btn-warning[_ngcontent-%COMP%]{color:#fff;border-radius:50px}.card-default-carrinho[_ngcontent-%COMP%]{border-radius:10px;margin-bottom:10px;padding:10px}@media only screen and (max-width:450px){.card-default-carrinho[_ngcontent-%COMP%]{padding:4px 4px 10px!important}}.card-default-carrinho[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0 0 10px;font-weight:700}.corpo-carrinho[_ngcontent-%COMP%]{padding:0}@media only screen and (max-width:450px){.corpo-carrinho[_ngcontent-%COMP%]{padding:10px}}.card-default-carrinho[_ngcontent-%COMP%],   .mat-expansion-panel:not([class*=mat-elevation-z]){-webkit-box-shadow:0 0 18px rgba(0,0,0,.06);box-shadow:0 0 18px #0000000f}  snack-bar-container.style-error{background:red;color:#fff}  snack-bar-container.style-error button{color:#fff}@media only screen and (max-width:780px){.margin-compactada[_ngcontent-%COMP%]{margin-bottom:20px!important;padding:0!important}}.carrinho-vazio[_ngcontent-%COMP%]{text-align:center;padding:30px 0 50px;color:#f0f0f0!important}.carrinho-vazio[_ngcontent-%COMP%]   i.fa[_ngcontent-%COMP%]{font-size:100px}.carrinho-vazio[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:30px;display:block;padding-top:20px}[_nghost-%COMP%]     .mat-mdc-form-field-flex>.mat-mdc-form-field-infix{padding:.4em 0!important}[_nghost-%COMP%]     .mat-mdc-form-field .mat-mdc-text-field-wrapper{max-width:unset!important}[_nghost-%COMP%]     .mat-expansion-panel:not([class*=mat-elevation-z]){-webkit-box-shadow:0 0 18px rgba(0,0,0,.06);box-shadow:0 0 18px #0000000f}button.cupom[_ngcontent-%COMP%]{height:35px;padding:5px;margin-top:3px;font-size:small}.btn.btn-outline-warning[_ngcontent-%COMP%]:hover{color:#fff}ul.opcoes[_ngcontent-%COMP%]{padding:0;margin:0;list-style:none;display:flex;justify-content:flex-start;flex-direction:row;text-align:center;align-items:center}.switch[_ngcontent-%COMP%]{margin-bottom:0}.scrollItens[_ngcontent-%COMP%]{height:450px;overflow-y:scroll;margin-bottom:10px}*[_ngcontent-%COMP%]{scrollbar-width:thin;scrollbar-color:#ddd #f0f0f0}*[_ngcontent-%COMP%]::-webkit-scrollbar{width:12px}*[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#f0f0f0}*[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#ddd;border-radius:20px;border:3px solid #f0f0f0}span.de[_ngcontent-%COMP%]{font-size:smaller;text-decoration:line-through;color:#6c757d}.alert[_ngcontent-%COMP%]{padding:2px;margin:0}.produto-badges[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-right:2px}ul.ganhar-cashback[_ngcontent-%COMP%]{list-style:none;padding:3px;margin:3px 0 5px;display:flex;justify-content:flex-start;flex-direction:row;text-align:center;align-items:center;border-radius:50px}ul.gatilhos-cupom-desconto[_ngcontent-%COMP%]{list-style:none;padding:3px;margin:3px 0 5px;display:flex;justify-content:flex-start;flex-direction:row;text-align:center;align-items:center;border-radius:50px;background-color:#02eaff;color:#43494e}ul.gatilhos-cupom-desconto[_ngcontent-%COMP%]   li.menor[_ngcontent-%COMP%]{line-height:15px}ul.ganhar-cashback[_ngcontent-%COMP%]   li.w-30[_ngcontent-%COMP%]{width:30%!important}ul.ganhar-cashback[_ngcontent-%COMP%]   li.menor[_ngcontent-%COMP%]{line-height:15px}ul.ganhar-cashback[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .bg-soft-light[_ngcontent-%COMP%]{background-color:#ecf2f540!important;padding:7px}ul.ganhar-cashback[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .bg-soft-light[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:25px}ul.ganhar-cashback[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span.small[_ngcontent-%COMP%]{font-size:70%!important}ul.cupons-disponiveis[_ngcontent-%COMP%]{list-style:none;padding:3px;margin:3px 0 5px;display:flex;justify-content:space-between;flex-direction:row;text-align:center;align-items:center;color:#ffc107;background-color:#fcf3ab;border:4px solid #ffc107;border-radius:50px}ul.cupons-disponiveis[_ngcontent-%COMP%]   li.w-30[_ngcontent-%COMP%]{width:30%!important}ul.cupons-disponiveis[_ngcontent-%COMP%]   li.menor[_ngcontent-%COMP%]{line-height:15px}ul.cupons-disponiveis[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .bg-soft-light[_ngcontent-%COMP%]{background-color:#ffc107!important;padding:7px}ul.cupons-disponiveis[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .bg-soft-light[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:25px}ul.cupons-disponiveis[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   span.small[_ngcontent-%COMP%]{font-size:70%!important}ul.cupons-disponiveis[_ngcontent-%COMP%]   li.botao-direita[_ngcontent-%COMP%]{margin-right:1px}ul.frete[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0 0 10px;display:flex;flex-direction:column;font-size:smaller}ul.frete[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{float:right}ul.frete.strong[_ngcontent-%COMP%]{font-weight:700}.endereco-entrega[_ngcontent-%COMP%]{border-top:1px solid #ccc;padding-top:10px;margin-top:10px}
1.endereco-entrega[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{margin-bottom:0;font-weight:700;font-size:small}.endereco-entrega[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#6c757d;font-size:small}.endereco-entrega[_ngcontent-%COMP%]   a.btn[_ngcontent-%COMP%]{color:#fff}[_nghost-%COMP%]     .input-cupom .mat-mdc-form-field .mat-mdc-form-field-subscript-wrapper{margin-bottom:4px;padding-bottom:0}.banner-frete-gratis[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1;margin:-.75rem -1rem .5rem;padding:14px;font-size:.95rem;font-weight:400;text-align:center;border-radius:2px}",".table[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;font-size:.8rem;margin:.5rem;line-height:1.5;border-bottom:1px solid #d0d0d0;flex:1 1 auto}.tr[_ngcontent-%COMP%]{width:100%;display:flex;flex-flow:row nowrap}.tr[_ngcontent-%COMP%]:nth-of-type(2n){background-color:#f2f2f2}.tr[_ngcontent-%COMP%]:nth-of-type(odd){background-color:#fff}.th[_ngcontent-%COMP%], .td[_ngcontent-%COMP%]{display:flex;flex-flow:row nowrap;flex-grow:1;flex-basis:0;padding:2px;word-break:break-word;overflow:hidden;text-overflow:ellipsis;min-width:60px;border-bottom:1px solid #d0d0d0;align-items:center;justify-content:start}@media only screen and (max-width:600px){.th[_ngcontent-%COMP%], .td[_ngcontent-%COMP%]{white-space:unset;min-width:auto}}.td.nome-produto-lista[_ngcontent-%COMP%]{overflow:visible}.th.codigo-produto-lista[_ngcontent-%COMP%], .td.codigo-produto-lista[_ngcontent-%COMP%], .th.info-medicamento[_ngcontent-%COMP%], .td.info-medicamento[_ngcontent-%COMP%]{min-width:65px;word-break:inherit}.th.center[_ngcontent-%COMP%], .td.center[_ngcontent-%COMP%], .th.text-center[_ngcontent-%COMP%], .td.text-center[_ngcontent-%COMP%]{justify-content:center}.th[_ngcontent-%COMP%]{padding:10px 2px;background-color:#f2f2f2;font-weight:700}.th.left[_ngcontent-%COMP%], .td.left[_ngcontent-%COMP%]{justify-content:start;text-align:left}.th.right[_ngcontent-%COMP%], .td.right[_ngcontent-%COMP%]{justify-content:flex-end;text-align:right}@media(max-width:768px){.th.left[_ngcontent-%COMP%], .td.left[_ngcontent-%COMP%], .th.right[_ngcontent-%COMP%], .td.right[_ngcontent-%COMP%]{justify-content:unset;text-align:unset}}.th.nome-produto-lista[_ngcontent-%COMP%], .td.nome-produto-lista[_ngcontent-%COMP%]{flex-grow:2}.th.embalagem-lista[_ngcontent-%COMP%], .td.embalagem-lista[_ngcontent-%COMP%]{min-width:120px}@media(max-width:768px){.th.embalagem-lista[_ngcontent-%COMP%], .td.embalagem-lista[_ngcontent-%COMP%]{min-width:40px}}.td.imagem-lista[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:60px;max-height:60px}@media only screen and (max-width:1000px){.td.botao-comprar[_ngcontent-%COMP%], .td.imagem-lista[_ngcontent-%COMP%], .td.prec
1o-lista[_ngcontent-%COMP%], .td.info-medicamento[_ngcontent-%COMP%]{min-width:fit-content;height:auto}}@media only screen and (max-width:768px){.th.imagem-lista[_ngcontent-%COMP%]{flex:0 1 auto;padding-right:10px}}@media only screen and (max-width:768px){.th.codigo-produto-lista[_ngcontent-%COMP%], .th.marca-lista[_ngcontent-%COMP%], .th.embalagem-lista[_ngcontent-%COMP%], .td.marca-lista[_ngcontent-%COMP%], .th.info-medicamento[_ngcontent-%COMP%], .td.imagem-lista[_ngcontent-%COMP%], .td.codigo-produto-lista[_ngcontent-%COMP%], .td.embalagem-lista[_ngcontent-%COMP%], .t.info-medicamento[_ngcontent-%COMP%]{min-width:fit-content;height:auto}}@media only screen and (max-width:768px){.th.marca-lista[_ngcontent-%COMP%], .td.marca-lista[_ngcontent-%COMP%], .ocultar-xs[_ngcontent-%COMP%]{display:none}}@media only screen and (max-width:768px){.th.preco-lista.info-medicamento[_ngcontent-%COMP%], .td.preco-lista.info-medicamento[_ngcontent-%COMP%]{display:inherit}}.mostrar-xs[_ngcontent-%COMP%]{display:none}.nome-produto-lista[_ngcontent-%COMP%]   .mostrar-xs[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{flex-basis:100%;height:0;font-size:smaller}@media only screen and (max-width:768px){.mostrar-xs[_ngcontent-%COMP%]{display:inherit}}@media only screen and (max-width:768px){.th[_ngcontent-%COMP%], .nome-produto-lista[_ngcontent-%COMP%]{font-size:smaller;line-height:13px}}@media only screen and (max-width:768px){.fonte-smaller[_ngcontent-%COMP%]{font-size:smaller!important}}.card-botao[_ngcontent-%COMP%]{background-color:var(--font-button-comprar-color);color:var(--background-button-comprar-color);border-radius:3px;padding:5px;min-width:86px;text-align:center;text-transform:uppercase;font-size:smaller}@media only screen and (max-width:600px){.card-botao[_ngcontent-%COMP%]{min-width:fit-content}}@media only screen and (max-width:768px){  section div.row>div.lista-produtos{margin-bottom:10px}}.row.lista-produtos[_ngcontent-%COMP%]   .tr[_ngcontent-%COMP%]{margin-bottom:0}.selo-lista[_ngcontent-%COMP%]{display:inline-block;padding:1px 5px;border-radius:50px;margin-bottom:3px;margin-right:1px;text-align:center;font-size:10px;font-weight:400}.card-promocao[_ngcontent-%COMP%]{background:#f83636;color:#ffffe0;border-radius:6px 6px 0 0;padding:0 3px;z-index:1;opacity:.8;font-size:9pt;font-weight:100}.lista-quantidade-caixa[_ngcontent-%COMP%]{display:flex;margin:5px;justify-content:center;font-size:xx-small}.quantidade-lista-caixa[_ngcontent-%COMP%]{display:inline;justify-items:center}  .mobile-checkbox-layout .mdc-form-field{flex-direction:column;align-items:center}.texto-checkbox[_ngcontent-%COMP%]{white-space:nowrap}@media(max-width:768px){.texto-checkbox[_ngcontent-%COMP%]{white-space:normal;line-height:1;margin:0;padding:0;display:inline-block}.nowrap[_ngcontent-%COMP%]{white-space:nowrap}}",'.alinhar-centro[_ngcontent-%COMP%]{text-align:center;justify-content:center;align-items:center;display:flex}ul.precos[_ngcontent-%COMP%]{list-style:none;display:flex;justify-content:center;align-items:center;flex-direction:row;height:100%;margin-bottom:6px;padding:5px}@media only screen and (max-width:768px){ul.precos[_ngcontent-%COMP%]{flex-direction:column;font-size:smaller!important}}ul.precos[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{width:100%;padding:3px}ul.precos[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:hover{cursor:pointer}ul.precos[_ngcontent-%COMP%]   li.selecionado[_ngcontent-%COMP%]{background-color:#f0f0f0;border-radius:5px}ul.precos[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   input[type=radio][_ngcontent-%COMP%]{display:none}.preco-vertical[_ngcontent-%COMP%]{flex-direction:column!important}.p-card[_ngcontent-%COMP%]{padding:10px}.card-botao-disable[_ngcontent-%COMP%]{opacity:.8}.desconto-financeiro[_ngcontent-%COMP%]{background:#f83636;color:#fff;border-radius:4px;opacity:.9}.texto-limitado-1l[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:1!important;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;font-size:small;height:26px;min-height:26px!important;line-height:13px}.texto-limitado-1l[_ngcontent-%COMP%]:hover{text-overflow:ellipsis;overflow:hidden;display:block;height:unset!important}ul.selos-produto[_ngcontent-%COMP%]   li.li-com-faixa-popup[_ngcontent-%COMP%]{overflow:visible}.faixa-badge[_ngcontent-%COMP%]{position:relative;cursor:default}.faixa-popup[_ngcontent-%COMP%]{display:none;position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%);background:#fff;color:#333;border-radius:6px;box-shadow:0 4px 16px #00000026;padding:8px 12px;white-space:nowrap;z-index:200;min-width:160px}.faixa-popup[_ngcontent-%COMP%]:after{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border:6px solid transparent;border-top-color:#fff}.faixa-popup[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}.faixa-popup[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:4px 0;margin:0;font-size:12px}.faixa-popup[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{border-bottom:none}.faixa-badge[_ngcontent-%COMP%]:hover   .faixa-popup[_ngcontent-%COMP%]{display:block}']})}}return a})();var Bt=[{path:"",pathMatch:"full",component:W,canActivate:[ke]},{path:`:${T}`,pathMatch:"full",component:W}];export{Bt as COMPRA_RECORRENTE_ROUTES};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.