PageSourceSearch

https://www.lojahirota.com.br/chunk-OAJOCVQR.js

js lojahirota.com.br collected 2026-10-02 00:00:36 UTC 10,511 bytes, 1 lines download raw bytes

1import{a as we}from"./chunk-DKYIXITO.js";import"./chunk-CLFZNWPC.js";import{a as ge,c as ve,d as be}from"./chunk-DQ4342IW.js";import"./chunk-ZJ3STXA6.js";import"./chunk-QUZJ3OIF.js";import{c as fe,d as he}from"./chunk-GZ7D4REA.js";import"./chunk-DY7KCS2V.js";import"./chunk-C5D2EMZG.js";import"./chunk-X5JKUMEL.js";import{b as Ce,e as _e}from"./chunk-36IFBKI4.js";import"./chunk-GBGMYMMZ.js";import"./chunk-KDNJLU5Y.js";import"./chunk-PJGIDPOM.js";import"./chunk-IKDYDYLY.js";import"./chunk-GBY45XSZ.js";import"./chunk-E53XIIYU.js";import"./chunk-VOBB2LIP.js";import"./chunk-EIAUIXF5.js";import"./chunk-UVP224XB.js";import"./chunk-M66YKMTL.js";import"./chunk-A22RHTTZ.js";import"./chunk-EID5MXGJ.js";import"./chunk-RBFGX7YO.js";import"./chunk-QA6HJCCZ.js";import{a as ue}from"./chunk-WLIGRYPT.js";import"./chunk-RIPYEU3D.js";import"./chunk-FGP3WLWP.js";import"./chunk-JTRELACD.js";import{b as l,c as le}from"./chunk-LCX335OS.js";import{d as E}from"./chunk-BGACPJEH.js";import{e as k,j as de}from"./chunk-C2CDXU6N.js";import"./chunk-TCH4VHL2.js";import"./chunk-KN2LCKD4.js";import"./chunk-VWFSV7YU.js";import"./chunk-5UU2TPQY.js";import"./chunk-FHHVH7EE.js";import"./chunk-EU3LBJ3X.js";import"./chunk-DMHGHPGA.js";import"./chunk-FJ5X6WTX.js";import"./chunk-UFT7GGJF.js";import"./chunk-TRB7D4VV.js";import"./chunk-IOI4FBOZ.js";import"./chunk-JCU4FLMX.js";import"./chunk-T7GW5XRG.js";import"./chunk-L4IEZB4E.js";import{S as se,T as me,a as P,b as p,ha as M,ia as T,wa as $}from"./chunk-P757UJDS.js";import"./chunk-M4VBCXRN.js";import{Ac as ie,Bb as B,Bc as I,Cb as z,Db as n,Hc as D,I as _,Jb as W,Kb as X,Lb as Y,Mb as Z,Oa as f,Ob as ee,Oc as ae,Oe as d,Pa as a,Qb as te,Qc as ne,Qe as R,Rd as F,Se as ce,Xa as x,Ya as G,Zb as A,ab as h,gb as H,hb as m,hc as C,ia as q,ic as b,jc as oe,kd as pe,l as w,m as S,nc as re,qc as y,sa as c,ta as s,u as N,vb as g,wb as v,xb as O,yb as J,zb as K}from"./chunk-CA3SU4MX.js";import"./chunk-A6NAT7J4.js";import"./chunk-5Z4AYYDF.js";import"./chunk-KLBUMNC4.js";import"./chunk-S4NCJKJW.js";import"./chunk-SQFOS72N.js";import"./chunk-HEUNYMKC.js";import"./chunk-UJZYFSKP.js";import"./chunk-WTWECZY6.js";import"./chunk-7UHV3KU6.js";import"./chunk-XE6OGKVL.js";import"./chunk-B5PDLB3A.js";import"./chunk-ZEEPLCMG.js";import"./chunk-BNINSQUO.js";import"./chunk-B2IEJXTH.js";import"./chunk-UBSOUGXN.js";import"./chunk-I6H75TGI.js";import{h as L}from"./chunk-B4AJQJMI.js";var xe=()=>[];function ke(i,t){if(i&1){let e=B();J(0),g(1,"section",2)(2,"div",3)(3,"h1",4),C(4,"currency"),ee(5),v()(),g(6,"vip-compra-desktop",5),C(7,"async"),z("rastrearCompra",function(r){c(e);let u=n();return s(u.handleRastrearCompra(r))})("repetirCompra",function(){c(e);let r=n();return s(r.handleRepetirCompra())})("cancelarCompra",function(){c(e);let r=n();return s(r.handleCancelarCompraDesktop(r.compra.id,r.compra.compra_status_id))}),v()(),K()}if(i&2){let e=n();f(3),H("aria-label","Detalhes da Compra "+e.compra.id+", total "+oe(4,10,e.compra.valor_final,"BRL")),f(2),te(" Compra #",e.compra.id," "),f(),m("compra",e.compra)("perguntas",b(7,13,e.perguntas$)||A(15,xe))("endereco",e.compra.tipo_entrega.retirada?e.compraEnderecoIsRetirada:e.compra.endereco)("isDesktop",!0)("resumoFinal",!1)("temRespostas",!0)("tipoEntrega",e.compra.tipo_entrega)("isRetirada",e.compra.tipo_entrega.retirada)}}function Ee(i,t){if(i&1){let e=B();g(0,"vip-compra",6),C(1,"async"),z("rastrearCompra",function(r){c(e);let u=n();return s(u.handleRastrearCompra(r))})("repetirCompra",function(){c(e);let r=n();return s(r.handleRepetirCompra())})("cancelarCompra",function(r){c(e);let u=n();return s(u.handleCancelarCompraMobile(r.compraId,r.compra_status_id,r.observacao))})("verProdutos",function(){c(e);let r=n();return s(r.handleVerProdutos())})("realizarPagamento",function(){c(e);let r=n();return s(r.handleRealizarPagamento())}),v()}if(i&2){let e=n();m("compra",e.compra)("perguntas",b(1,2,e.perguntas$)||A(4,xe))}}var V=class U{constructor(t,e,o,r,u,ye,Ie,De,Pe,Fe){this.compraFacade=t,this.activatedRoute=e,this.router=o,this.dialogService=r,this.substituirProdutoService=u,this.compraEmProcessoService=ye,this.changeDetector=Ie,this.layoutUtilsService=De,this.modalService=Pe,this.cd=Fe,this.compra$=this.compraFacade.compra$.pipe(N(Re=>Re||null)),this.compra=null,this.perguntas$=this.compraFacade.perguntas$,this.isDesktop$=this.layoutUtilsService.isDesktop$,this.compraEnderecoIsRetirada=null}ngOnInit(){let t=this.activatedRoute.snapshot.params.compra;this.compraFacade.selectCompra(t),this.compraFacade.getPerguntasCompraComResposta(t),this.compraFacade.compra$.pipe(_(1),p(this)).subscribe(e=>{e||this.compraFacade.getCompra(t)}),this.compra$.pipe(p(this)).subscribe(e=>{this.compra=e,this.compra&&this.compra.tipo_entrega.retirada&&this.getCdIsRetirada(this.compra.centro_distribuicao_id),this.changeDetector.detectChanges()})}getCdIsRetirada(t){return L(this,null,function*(){this.cd.getCentroDistribuicaoById(t).pipe(p(this)).subscribe(e=>{this.compra&&(this.compraEnderecoIsRetirada={bairro:e.data.endereco.bairro,complemento:e.data.endereco.complemento,endereco_formatado:`${e.data.endereco.logradouro}, nr. ${e.data.endereco.numero} - ${e.data.endereco.bairro} - ${e.data.endereco.cidade}/${e.data.endereco.estado}`,id:e.data.id,logradouro:e.data.endereco.logradouro,numero:e.data.endereco.numero,titulo:e.data.nome},this.changeDetector.detectChanges())})})}handleRepetirCompra(){this.compraEmProcessoService.temCompraEmProcesso||this.compraFacade.compra$.pipe(_(1),p(this)).subscribe(t=>
1{if(t){let e=t.id;this.dialogService.openDialog({open:!0,disabled:!1,title:"Deseja repetir a compra?",subTitle:`Deseja fazer novamente a compra dos ${this.getQuantidadeItens(t)} itens?`,buttonCancelText:"Cancelar",buttonConfirmText:"Repetir a compra"}),this.dialogService.dialogClick.pipe(p(this)).subscribe(o=>{this.dialogService.clearDialog().then(()=>{o&&this.compraFacade.repetirCompra(e),this.subscribeFinalizouSubstituir()})})}})}subscribeFinalizouSubstituir(){this.substituirProdutoService.limparFinalizarSubstituirProdutos(),this.substituirProdutoService.finalizouSubstituirProduto$.pipe(p(this),_(1)).subscribe(t=>{t&&this.compraFacade.repetirCompraSuccess()})}handleRastrearCompra(t){pe.isApp?ue.open({url:t}):window.open(t,"_blank")}getQuantidadeItens(t){return t.produtos.reduce((e,o)=>e+o.quantidade,0)}handleVerProdutos(){this.router.navigateByUrl(`/minha-conta/detalhes-compra/${this.activatedRoute.snapshot.params.compra}/itens`)}handleCancelarCompraMobile(t,e,o){this.compraFacade.cancelarCompra(t,e,o??"")}handleRealizarPagamento(){this.compraEmProcessoService.redirecionarParaPagamento()}handleTrocaDevolucao(t){this.router.navigateByUrl(`minha-conta/pedidos/solicitar-troca-ou-devolucao/${t}`)}handleCancelarCompraDesktop(t,e){this.modalService.openModal(we)?.instance.confirmarCancelamento.pipe(p(this)).subscribe({next:r=>{this.compraFacade.cancelarCompra(t,e,r??""),this.modalService.clearModal()}})}onDropdownFocusOut(t){let e=t.currentTarget,o=t.relatedTarget;(!o||!e.contains(o))&&this.dropdowns.find(r=>r.getNativeElement()===e)?.close()}static{this.\u0275fac=function(e){return new(e||U)(a(l),a(d),a(R),a(M),a(E),a(k),a(y),a(F),a(T),a($))}}static{this.\u0275cmp=x({type:U,selectors:[["vip-compra-container"]],viewQuery:function(e,o){if(e&1&&W(fe,5),e&2){let r;X(r=Y())&&(o.dropdowns=r)}},standalone:!1,decls:4,vars:4,consts:[["mobileTemplate",""],[4,"ngIf","ngIfElse"],[1,"vip-compra-desktop-wrapper"],[1,"flex","justify-between","items-baseline"],["tabindex","0",1,"vip-color-first-default","text-lg","font-bold","mb-4"],[3,"rastrearCompra","repetirCompra","cancelarCompra","compra","perguntas","endereco","isDesktop","resumoFinal","temRespostas","tipoEntrega","isRetirada"],[1,"vip-page-content",3,"rastrearCompra","repetirCompra","cancelarCompra","verProdutos","realizarPagamento","compra","perguntas"]],template:function(e,o){if(e&1&&(h(0,ke,8,16,"ng-container",1),C(1,"async"),h(2,Ee,2,5,"ng-template",null,0,re)),e&2){let r=Z(3);m("ngIf",b(1,2,o.isDesktop$)&&o.compra)("ngIfElse",r)}},dependencies:[I,ge,ve,D,ae],styles:[".vip-compra-desktop-wrapper[_ngcontent-%COMP%]{border-radius:5px;padding:1.25rem;box-shadow:0 1px 3px #0003}li[_ngcontent-%COMP%]{cursor:pointer}li[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.75rem;line-height:1.17}li[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:.625rem;font-size:.875rem;line-height:1.17}.dropdown-content[_ngcontent-%COMP%]{transform:translate(-9.9rem,-1.7rem)}.dropdown-content.translate[_ngcontent-%COMP%]{transform:translate(-11.5rem,-4.9rem)}.vip-dropdown[_ngcontent-%COMP%]{padding:.938rem}"],changeDetection:0})}};V=w([P(),S("design:paramtypes",[l,d,R,M,E,k,y,F,T,$])],V);function Ve(i,t){if(i&1&&O(0,"vip-lista-produtos-selecionados",4),i&2){let e=t.$implicit;m("produtosAgrupados",e)("showIconDelete",!1)("showSpin",!1)("showCombos",!1)("showPromotions",!1)("editable",!1)}}function je(i,t){if(i&1&&(g(0,"div",1),O(1,"vip-screen-title",2),h(2,Ve,1,6,"vip-lista-produtos-selecionados",3),v()),i&2){let e=t.ngIf,o=n();f(2),m("ngForOf",e)("ngForTrackBy",o.trackByFnDepartamento)}}var j=class Q{constructor(t,e){this.compraFacade=t,this.activatedRoute=e,this.produtosCompraSelecionada$=this.compraFacade.produtosCompraSelecionada$}ngOnInit(){let t=this.activatedRoute.snapshot.params.compra;this.compraFacade.selectCompra(t),this.compraFacade.compra$.pipe(_(1),p(this)).subscribe(e=>{e||this.compraFacade.getCompra(t)})}trackByFnDepartamento(t,e){return e.departamento}static{this.\u0275fac=function(e){return new(e||Q)(a(l),a(d))}}static{this.\u0275cmp=x({type:Q,selectors:[["vip-compra-itens-container"]],standalone:!1,decls:2,vars:3,consts:[["class","vip-page-content",4,"ngIf"],[1,"vip-page-content"],["title","Produtos","leftIcon","icon-arrow_back","leftIconColor","secondary"],[3,"produtosAgrupados","showIconDelete","showSpin","showCombos","showPromotions","editable",4,"ngFor","ngForOf","ngForTrackBy"],[3,"produtosAgrupados","showIconDelete","showSpin","showCombos","showPromotions","editable"]],template:function(e,o){e&1&&(h(0,je,3,2,"div",0),C(1,"async")),e&2&&m("ngIf",b(1,1,o.produtosCompraSelecionada$))},dependencies:[ie,I,Ce,se,D],encapsulation:2,changeDetection:0})}};j=w([P(),S("design:paramtypes",[l,d])],j);var Ft=(()=>
1{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275mod=G({type:i})}static{this.\u0275inj=q({imports:[ne,be,le,de,ce.forChild([{path:"",component:V},{path:"itens",component:j}]),_e,me,he]})}}return i})();export{Ft as CompraContainerModule};

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.