PageSourceSearch

https://isthmus.com.br/chunk-5N6DAOVE.js

js isthmus.com.br collected 2026-10-02 13:40:33 UTC 14,964 bytes, 1 lines download raw bytes

1import{a as j}from"./chunk-GD2JVINH.js";import{b as ct,c as mt,d as _t,e as pt,f as ht,g as ut,h as ft,i as Ct,j as xt,k as St}from"./chunk-HEAGPFKC.js";import{c as A,d as L}from"./chunk-HGJUNFER.js";import{a as V}from"./chunk-4KAY36PT.js";import{G as O,J as N,S as $,c as lt,g as dt,j as M}from"./chunk-W2DDVCBR.js";import{Bc as ot,Fb as et,Fc as at,Gc as rt,Hb as h,Ib as u,Kb as b,Lb as k,Lc as x,Mb as D,Nb as S,Nc as st,Ob as r,Oc as y,Pb as s,Qb as C,Rb as c,Sb as p,Tb as H,Ub as U,Vb as z,Zb as Y,_a as a,ba as B,dc as v,ec as K,fc as d,ga as m,la as P,ma as T,nb as R,rc as it,sb as I,tc as o,uc as F,vc as f,wc as nt}from"./chunk-WFD3KZYX.js";import{g as w}from"./chunk-TSRGIXR5.js";function Et(t,e){if(t&1&&(c(0,"span"),o(1),H(2,"br"),p()),t&2){let i=d().$implicit;a(),f(" ",i.numeroPedido)}}function bt(t,e){if(t&1&&(c(0,"tr")(1,"td")(2,"a"),h(3,Et,3,1,"span"),c(4,"i",13),o(5,"N\xFAmero Site:"),p(),o(6),p()(),c(7,"td",12),o(8),x(9,"currency"),p(),c(10,"td"),o(11),H(12,"br"),c(13,"span",13),o(14),p()()()),t&2){let i=e.$implicit;a(3),u(i.numeroPedido>0?3:-1),a(3),f(" ",i.numeroPedidoIntegracao," "),a(2),f(" ",y(9,6,i.valorFaturadoPedido,"BRL","symbol-narrow")," "),a(3),f(" ",i.motivo," "),a(3),nt(" Campanha ",i.campanhaId,": ",i.campanha," ")}}function kt(t,e){if(t&1&&(c(0,"div")(1,"div",8)(2,"div",9)(3,"div",10)(4,"table",11)(5,"thead")(6,"tr")(7,"th"),o(8,"Pedido"),p(),c(9,"th",12),o(10,"Valor Faturado"),p(),c(11,"th"),o(12,"Motivo"),p()()(),c(13,"tbody"),k(14,bt,15,10,"tr",null,b),p()()()()()()),t&2){let i=d();a(14),D(i.cashBackReceber)}}function Dt(t,e){t&1&&(c(0,"div",5)(1,"span"),o(2,"Aguarde..."),p()())}var yt=(()=>{class t{constructor(){this.activeModal=m(A),this.cashBackService=m(j),this.distribuidoraService=m(V),this.activatedRoute=m(O),this.router=m(N),this.cashBackReceber=[],this.loading=!1}ngOnInit(){return w(this,null,function*(){this.loading=!0,yield this.distribuidoraService.dadosDistribuidora(this.activatedRoute.parametro($)).then(i=>{this.distribuidora=i}),this.cashBackReceber=yield this.cashBackService.obterCashBackReceberNaoAtingidos(),this.loading=!1})}decline(){this.activeModal.close(!1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=R({type:t,selectors:[["isthmus-cash-back-nao-gerados"]],decls:12,vars:1,consts:[[1,"modal-header"],[1,"modal-title","mb-0"],["type","button","aria-label","Fechar",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"alert","alert-warning","text-center"],[1,"modal-footer"],["type","button","aria-label","Fechar",1,"btn","btn-danger",3,"click"],[1,"row"],[1,"col-lg-12"],[1,"table-responsive","mb-3"],[1,"table","table-striped","small"],[1,"text-right"],[1,"small"]],template:function(n,l){n&1&&(c(0,"div",0)(1,"h3",1),o(2,"Cashbacks n\xE3o Atingidos"),p(),c(3,"button",2),K("click",function(){return l.decline()}),c(4,"span",3),o(5,"\xD7"),p()()(),c(6,"div",4),h(7,kt,16,0,"div")(8,Dt,3,0,"div",5),p(),c(9,"div",6)(10,"button",7),K("click",function(){return l.decline()}),o(11,"Fechar"),p()()),n&2&&(a(7),u(l.loading?8:7))},dependencies:[M],encapsulation:2})}}return t})();var me=(()=>{class t{constructor(){this.modalService=m(L)}abrirNaoGerados(i="lg"){return this.modalService.open(yt,{size:i,centered:!0,keyboard:!0,backdrop:"static"}).result}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})();var g=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(g||{}),Ft="*";function X(t,e){return{type:g.Trigger,name:t,definitions:e,options:{}}}function Z(t,e=null){return{type:g.Animate,styles:e,timings:t}}function pe(t,e=null){return{type:g.Sequence,steps:t,options:e}}function G(t){return{type:g.Style,styles:t,offset:null}}function q(t,e,i){return{type:g.State,name:t,styles:e,options:i}}function tt(t,e,i=null){return{type:g.Transition,expr:t,animation:e,options:i}}var J=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,i=0){this.totalTime=e+i}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e
1=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},W=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let i=0,n=0,l=0,_=this.players.length;_==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(E=>{E.onDone(()=>{++i==_&&this._onFinish()}),E.onDestroy(()=>{++n==_&&this._onDestroy()}),E.onStart(()=>{++l==_&&this._onStart()})}),this.totalTime=this.players.reduce((E,vt)=>Math.max(E,vt.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let i=e*this.totalTime;this.players.forEach(n=>{let l=n.totalTime?Math.min(1,i/n.totalTime):1;n.setPosition(l)})}getPosition(){let e=this.players.reduce((i,n)=>i===null||n.totalTime>i.totalTime?n:i,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let i=e=="start"?this._onStartFns:this._onDoneFns;i.forEach(n=>n()),i.length=0}},wt="!";var Bt=()=>["expandedDetail"],Pt=t=>({cortado:t});function Tt(t,e){t&1&&(r(0,"div"),o(1," Data do Uso "),s())}function Rt(t,e){t&1&&(r(0,"div",17),o(1," Valor Usado "),s())}function It(t,e){if(t&1&&(r(0,"th",16),h(1,Tt,2,0,"div"),h(2,Rt,2,0,"div",17),s()),t&2){let i=d().$implicit;a(),u(i==="dataSaida"?1:-1),a(),u(i==="valor"?2:-1)}}function Mt(t,e){t&1&&(C(0,"br"),r(1,"span",19),o(2,"(+) Clique para ver os itens do Pedido"),s())}function Ot(t,e){if(t&1&&(C(0,"br"),r(1,"span",20),C(2,"i",21),o(3),s()),t&2){let i=d(2).$implicit;a(3),f(" ",i.descricao," ")}}function Nt(t,e){if(t&1&&(r(0,"div"),o(1),x(2,"date"),h(3,Mt,3,0)(4,Ot,4,1),s()),t&2){let i=d().$implicit,n=d().$implicit;a(),f(" ",st(2,2,i[n],"dd/MM/yyyy HH:mm")," "),a(2),u(i.estornoADebito?4:3)}}function $t(t,e){if(t&1&&(o(0),x(1,"currency")),t&2){let i=d(2).$implicit;f(" ",y(1,1,i.valor,"BRL","symbol-narrow")," ")}}function At(t,e){if(t&1&&(r(0,"span",22),o(1),x(2,"currency"),s(),C(3,"br"),r(4,"span",20),o(5),x(6,"currency"),s(),C(7,"br"),r(8,"span",22)(9,"strong"),o(10),x(11,"currency"),s()()),t&2){let i=d(2).$implicit;a(),f(" Valor anterior ",y(2,3,i.valorOriginal,"BRL","symbol-narrow")," "),a(4),f(" - ",y(6,7,i.valor,"BRL","symbol-narrow")," "),a(5),f("= ",y(11,11,i.restante,"BRL","symbol-narrow"))}}function Lt(t,e){if(t&1&&(r(0,"div",17),h(1,$t,2,5)(2,At,12,15),s()),t&2){let i=d().$implicit;a(),u(i.estornoADebito?2:1)}}function jt(t,e){if(t&1&&(r(0,"td",18),h(1,Nt,5,5,"div"),h(2,Lt,3,1,"div",17),s()),t&2){let i=d().$implicit;a(),u(i==="dataSaida"?1:-1),a(),u(i==="valor"?2:-1)}}
1function Vt(t,e){if(t&1&&(U(0,9),I(1,It,3,2,"th",15)(2,jt,3,2,"td",11),z()),t&2){let i=e.$implicit;S("matColumnDef",ot(i))}}function Gt(t,e){t&1&&C(0,"i",27)}function qt(t,e){if(t&1){let i=Y();r(0,"tr",25)(1,"td",26),h(2,Gt,1,0,"i",27),s(),r(3,"td")(4,"a",28),v("click",function(){let l=P(i).$implicit,_=d(4);return T(_.detalhes(l.pedidoId,l.numeroPedido))}),o(5),s()(),r(6,"td")(7,"a",28),v("click",function(){let l=P(i).$implicit,_=d(4);return T(_.detalhes(l.pedidoId,l.numeroPedido))}),o(8),s()(),r(9,"td"),o(10),s(),r(11,"td",17),o(12),x(13,"currency"),s()()}if(t&2){let i=e.$implicit;S("ngClass",rt(10,Pt,i.corteTotal)),a(2),u(i.corteTotal?2:-1),a(3),F(i.numeroPedido),a(3),F(i.numeroPedidoIntegracao),a(2),F(i.nomeProduto),a(2),F(y(13,6,i.valorDescontoItem,"BRL","symbol-narrow"))}}function Ht(t,e){if(t&1&&(r(0,"div",23)(1,"table",24)(2,"thead")(3,"tr"),C(4,"th"),r(5,"th"),o(6,"N\xFAmero Pedido"),s(),r(7,"th"),o(8,"N\xFAmero Pedido Site"),s(),r(9,"th"),o(10,"Produto"),s(),r(11,"th",17),o(12,"Desconto"),s()()(),r(13,"tbody"),k(14,qt,14,12,"tr",25,b),s()()()),t&2){let i=d().$implicit,n=d(2);S("@detailExpand",i==n.expandedElement?"expanded":"collapsed"),a(14),D(i.itensPedidos)}}function Ut(t,e){if(t&1&&(r(0,"td",18),h(1,Ht,16,1,"div",23),s()),t&2){let i=e.$implicit,n=d(2);et("colspan",n.columnsToDisplay.length),a(),u(i.estornoADebito?-1:1)}}function zt(t,e){t&1&&C(0,"tr",29)}function Yt(t,e){if(t&1){let i=Y();r(0,"tr",30),v("click",function(){let l=P(i).$implicit,_=d(2);return T(_.expandedElement=_.expandedElement===l?null:l)}),s()}if(t&2){let i=e.$implicit,n=d(2);it("example-expanded-row",n.expandedElement===i)}}function Kt(t,e){t&1&&C(0,"tr",31)}function Qt(t,e){if(t&1&&(r(0,"div")(1,"table",8),k(2,Vt,3,2,"ng-container",9,b),U(4,10),I(5,Ut,2,2,"td",11),z(),I(6,zt,1,0,"tr",12)(7,Yt,1,2,"tr",13)(8,Kt,1,0,"tr",14),s()()),t&2){let i=d();a(),S("dataSource",i.cashBackSaidas),a(),D(i.columnsToDisplay),a(4),S("matHeaderRowDef",i.columnsToDisplay),a(),S("matRowDefColumns",i.columnsToDisplay),a(),S("matRowDefColumns",at(4,Bt))}}function Jt(t,e){t&1&&(r(0,"div",5)(1,"span"),o(2,"Aguarde..."),s()())}var gt=(()=>{class t{constructor(){this.router=m(N),this.activeModal=m(A),this.distribuidoraService=m(V),this.activatedRoute=m(O),this.cashBackService=m(j),this.columnsToDisplay=["dataSaida","valor"],this.cashBackSaidas=[],this.loading=!1}ngOnInit(){return w(this,null,function*(){this.loading=!0;try{this.distribuidora=yield this.distribuidoraService.dadosDistribuidora(this.activatedRoute.parametro($)),this.cashBackSaidas=(yield this.cashBackService.obterSaidas(this.entradaId))??[]}finally{this.loading=!1}})}decline(){this.activeModal.close(!1)}detalhes(i,n){this.router.navegar(`${this.distribuidora.nomeVirtual}/compras/detalhes-pedidos/${i}/0`)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=R({type:t,selectors:[["isthmus-cash-back-saida"]],decls:12,vars:1,consts:[[1,"modal-header"],[1,"modal-title","mb-0"],["type","button","aria-label","Fechar",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"alert","alert-warning","text-center"],[1,"modal-footer"],["type","button","aria-label","Fechar",1,"btn","btn-danger",3,"click"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z8",3,"dataSource"],[3,"matColumnDef"],["matColumnDef","expandedDetail"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","example-element-row","aria-label","Expandir linha",3,"example-expanded-row","click",4,"matRowDef","matRowDefColumns"],["mat-row","","class","example-detail-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-cell",""],[1,"text-right"],["mat-cell",""],[1,"text-info","small"],[1,"small","text-danger"],[1,"fa","fa-exclamation-triangle"],[1,"small","text-muted"],[1,"example-element-detail"],[1,"table","table-hover","small","mt-3","mb-3"],[3,"ngClass"],[1,"text-center"],[1,"fa","fa-scissors"],["aria-label","Ver detalhes do pedido",3,"click"],["mat-header-row",""],["mat-row","","aria-label","Expandir linha",1,"example-element-row",3,"click"],["mat-row","",1,"example-detail-row"]],template:function(n,l){n&1&&(r(0,"div",0)(1,"h3",1),o(2,"Detalhes de uso do Cashback"),s(),r(3,"button",2),v("click",function(){return l.decline()}),r(4,"span",3),o(5,"\xD7"),s()()(),r(6,"div",4),h(7,Qt,9,5,"div")(8,Jt,3,0,"div",5),s(),r(9,"div",6)(10,"button",7),v("click",function(){return l.decline()}),o(11,"Fechar"),s()()),n&2&&(a(7),u(l.loading?8:7))},dependencies:[ct,pt,_t,ht,mt,ut,lt,ft,xt,Ct,St,M,dt],styles:["table[_ngcontent-%COMP%]{width:100%}tr.example-detail-row[_ngcontent-%COMP%]{height:0}tr.example-element-row[_ngcontent-%COMP%]:not(.example-expanded-row):hover{background:#f5f5f5}tr.example-element-row[_ngcontent-%COMP%]:not(.example-expanded-row):active{background:#efefef}.example-element-row[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-bottom-width:0}.example-element-detail[_ngcontent-%COMP%]{overflow:hidden;display:flex}.example-element-diagram[_ngcontent-%COMP%]{min-width:80px;border:2px solid black;padding:8px;font-weight:lighter;margin:8px 0;height:104px}.example-element-symbol[_ngcontent-%COMP%]{font-weight:700;font-size:40px;line-height:normal}.example-element-description[_ngcontent-%COMP%]{padding:16px}.example-element-description-attribution[_ngcontent-%COMP%]{opacity:.5}.cortado[_ngcontent-%COMP%]{text-decoration:line-through;color:#999}"],data:{animation:[X("detailExpand",[q("collapsed",G({height:"0px",minHeight:"0"})),q("expanded",G({height:"*"})),tt("expanded <=> collapsed",Z("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return t})();var je=(()=>{class t{constructor(){this.modalService=m(L)}abrirDetalhes(i,n="lg"){let l=this.modalService.open(gt,{size:n,centered:!0,keyboard:!0,backdrop:"static"});return l.componentInstance.entradaId=i,l.result.catch(()=>!1)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=B({token:t,factory:t.\u0275fac})}}return t})();export{g as a,Ft as b,X as c,Z as d,pe as e,G as f,q as g,tt as h,J as i,W as j,wt as k,me as l,je as m};

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.