PageSourceSearch

https://consumidor2.procon.sp.gov.br/chunk-GGGKY4ZL.js

js procon.sp.gov.br collected 2026-09-27 20:55:00 UTC 10,868 bytes, 1 lines download raw bytes

1import{a as le}from"./chunk-VFYKRPLX.js";import{a as re}from"./chunk-67CQE4GX.js";import{a as se,b as ce}from"./chunk-W4YIALSM.js";import{$ as Z,$a as ne,D as J,J as K,S as Q,X as W,Y as X,Z as Y,a as H,aa as ee,b as v,ba as te,c as R,e as G,h,jb as oe,l as U,lb as ae,na as ie}from"./chunk-BXNZQW2D.js";import{$b as $,Ab as g,Bb as c,Cb as V,Db as L,Lb as b,Mb as l,Nb as A,Ob as f,Pa as k,Qa as a,Ua as S,Vb as q,Yb as B,Za as T,Zb as F,_b as N,db as m,h as D,jb as p,ob as d,oc as j,pb as M,qa as y,qb as O,ra as _,rb as E,sa as x,sb as o,tb as r,ub as u,uc as z,ya as P,yb as C}from"./chunk-SPB3D6FE.js";function de(){return new G({atendimentoId:new h(void 0),perguntaId:new h(null),descricao:new h(null),linksDeDocumentos:new h(void 0)})}var w=class{static apply(s){return s.controls.descricao.withMaxLength(2e3).addValidators([v.required,v.minLength(50),v.maxLength(2e3)]),s}};var me=["*"],pe=()=>[".pdf",".png",".jpeg",".jpg",".csv",".xlsx"],ue=(i,s,e)=>({self:i,importante:s,"font-medium text-lg":e});function _e(i,s){if(i&1&&u(0,"app-label",8),i&2){let e=c(2);p("text",e.pergunta.descricao)}}function xe(i,s){if(i&1){let e=C();o(0,"div"),m(1,_e,1,1,"app-label",8),o(2,"mat-form-field",9)(3,"textarea",10,0),g("focus",function(){_(e);let n=c();return x(n.descricaoInteracaoControl.markAsUntouched())}),r(),u(5,"mat-divider",11)(6,"carregador-anexos",12,1),o(8,"div",13)(9,"button",14),g("click",function(){_(e);let n=b(7),I=c();return x(I.enviarInteracao(n))}),l(10," Enviar mensagem "),o(11,"mat-icon"),l(12,"send"),r()()(),o(13,"mat-error"),l(14),F(15,"errorMessage"),r(),o(16,"mat-hint"),l(17),r()()()}if(i&2){let e,t=b(4),n=c();a(),d(n.pergunta?1:-1),a(2),p("maxLength",n.descricaoInteracaoControl.maxLength)("formControl",n.descricaoInteracaoControl),a(3),p("extensoes",q(9,pe))("maximoDeAnexos",n.maximoDeAnexos),a(8),A(N(15,7,n.descricaoInteracaoControl.errors)),a(3),f("",((e=n.descricaoInteracaoControl.maxLength)!==null&&e!==void 0?e:0)-t.value.length," caracteres restantes")}}function ge(i,s){i&1&&(o(0,"div"),l(1,"Nenhuma intera\xE7\xE3o registrada"),r())}function fe(i,s){if(i&1&&(o(0,"audio",21),u(1,"source",23),l(2," Seu navegador n\xE3o suporta este arquivo de \xE1udio. "),r()),i&2){let e=c().$implicit,t=c(3);a(),p("src",e,k)("type",t.identificarFormatoDeAudio(e))}}function he(i,s){i&1&&(o(0,"mat-icon"),l(1," attachment "),r())}function Ce(i,s){i&1&&(o(0,"div",26),u(1,"mat-progress-spinner",28),r()),i&2&&(a(),p("diameter",20))}function ve(i,s){if(i&1){let e=C();o(0,"mat-chip",24),g("click",function(){_(e);let n=c().$implicit,I=c(3);return x(I.download(n))}),o(1,"div",25),m(2,he,2,0,"mat-icon")(3,Ce,2,1,"div",26),o(4,"div",27),l(5),r()()()}if(i&2){let e=c().$implicit,t=c(3);a(2),d(t.anexosEmDownload.indexOf(e)<0?2:-1),a(),d(t.anexosEmDownload.indexOf(e)>=0?3:-1),a(2),f(" ",t.obterNome(e)," ")}}function we(i,s){if(i&1&&m(0,fe,3,2,"audio",21)(1,ve,6,3,"mat-chip",22),i&2){let e=s.$implicit,t=c(3);d(t.ehArquivoDeAudio(e)?0:-1),a(),d(t.ehArquivoDeAudio(e)?-1:1)}}function Ie(i,s){if(i&1&&(o(0,"div",20)(1,"div",11),u(2,"mat-divider"),r(),o(3,"mat-chip-set"),O(4,we,2,2,null,null,M),r()()),i&2){let e=c().$implicit;a(4),E(e.linksDosDocumentos)}}function De(i,s){if(i&1&&(o(0,"div",7)(1,"div",15)(2,"div",16)(3,"div",17),l(4),r(),o(5,"div",18),l(6),F(7,"date"),r()(),o(8,"div",19),l(9),r(),m(10,Ie,6,0,"div",20),r()()),i&2){let e=s.$implicit,t=c();p("ngClass",B(8,ue,e.souRemetente,e.importante,e.tramiteId===t.TramiteId.AudienciaAgendada)),a(4),A(e.autor),a(2),f("",$(7,5,e.criadoEm,"short")," "),a(3),f(" ",e.descricao," "),a(),d(e.linksDosDocumentos!=null&&e.linksDosDocumentos.length?10:-1)}}function Pe(i,s){if(i&1){let e=C();o(0,"div"),u(1,"mat-divider"),o(2,"button",29),g("click",function(){_(e);let n=c();return x(n.mostrarMaisInteracoes())}),l(3," Ver intera\xE7\xF5es mais antigas "),r()()}}var Xe=(()=>{class i{get descricaoInteracaoControl(){return this.interacaoForm.controls.descricao}constructor(e){this.helpers=e,this.TramiteId=re,this.interacaoForm=w.apply(de()),this.interacaoCriada=new P,this.anexosAdicionados=new P,this.interacoesTotais=[],this.interacoesVisiveis=[],this.maximoDeAnexos=3,this.anexosEmDownload=[],this.obterNome=se,this.interacaoForm.controls.descricao.setValidators(()=>{let t=(this.interacaoForm.controls.descricao.value??"").trim();for(;t.includes("  ");)t=t.replace("  "," ");return t.length>=50?null:{minlength:`utilize mais ${50-t.length} caracteres.`}})}ngOnChanges(){if(this.interacoesTotais=[],this.interacoesVisiveis=[],this.atendimentoOuProcesso){this.interacoesTotais=this.atendimentoOuProcesso?.interacoes?.filter(t=>!!t.descricao)??[],this.interacoesVisiveis=this.interacoesTotais.slice(0,10);let e=this.interacoesTotais.filter(t=>t.pendenteDeResposta).reverse();this.pergunta=e[0]}}enviarInteracao(e){return D(this,null,function*(){if(yield this.interacaoForm.assertIsValidAsync(),e.assertIsValid(),!(yield this.helpers.confirmar({titulo:"Enviar intera\xE7\xE3o",mensagem:"Tem certeza que deseja enviar esta mensagem?"})))return;let n;"reclamacaoId"in this.atendimentoOuProcesso?n=this.criarHandleParaProcessoAdministrativo(this.atendimentoOuProcesso.reclamacaoId,e.urlsValidas):n=this.criarHandleParaAtendimento(this.atendimentoOuProcesso.atendimentoId,e.urlsValidas),yield n.showBusy("Enviando mensagem").showSuccess("Mensagem enviada").showError(),e.limpar(),this.interacaoCriada.emit(),this.interacaoForm.reset()})}
1criarHandleParaProcessoAdministrativo(e,t){return this.codigoDeAcesso?i.criarInteracaoDoProcessoAdministrativoPorCodigoDeAcesso({body:{descricao:this.interacaoForm.controls.descricao.value,perguntaId:this.pergunta?.id??null,linksDeDocumentos:t,codigoDeAcesso:this.codigoDeAcesso}}):i.criarInteracaoDoProcessoAdministrativo({body:{descricao:this.interacaoForm.controls.descricao.value,perguntaId:this.pergunta?.id??null,linksDeDocumentos:t,reclamacaoId:e}})}criarHandleParaAtendimento(e,t){return this.codigoDeAcesso?i.criarInteracaoDoAtendimentoPorCodigoDeAcesso({body:{descricao:this.interacaoForm.controls.descricao.value,perguntaId:this.pergunta?.id??null,linksDeDocumentos:t,codigoDeAcesso:this.codigoDeAcesso}}):i.criarInteracaoDoAtendimento({body:{descricao:this.interacaoForm.controls.descricao.value,perguntaId:this.pergunta?.id??null,linksDeDocumentos:t,atendimentoId:e}})}download(e){return D(this,null,function*(){try{this.anexosEmDownload.push(e),yield ce(e)}catch(t){throw this.helpers.mostrarErro(t),t}finally{let t=this.anexosEmDownload.indexOf(e);t>=0&&this.anexosEmDownload.splice(t,1)}})}ehArquivoDeAudio(e){return e.includes(".ogg")||e.includes(".mp3")||e.includes(".wav")}identificarFormatoDeAudio(e){return e.includes(".ogg")?"audio/ogg":e.includes(".mp3")?"audio/mpeg":e.includes(".wav")?"audio/wav":""}mostrarMaisInteracoes(){let e=this.interacoesVisiveis.length,t=this.interacoesTotais.slice(e,e+10).map(n=>n);this.interacoesVisiveis.push(...t)}static{this.\u0275fac=function(t){return new(t||i)(S(Q))}}static{this.\u0275cmp=T({type:i,selectors:[["interacoes"]],inputs:{atendimentoOuProcesso:"atendimentoOuProcesso",codigoDeAcesso:"codigoDeAcesso"},outputs:{interacaoCriada:"interacaoCriada",anexosAdicionados:"anexosAdicionados"},standalone:!1,features:[y],ngContentSelectors:me,decls:14,vars:3,consts:[["txt",""],["carregadorAnexos",""],[1,"app-stack","app-padding"],[1,"flex","flex-wrap","mb-4"],[1,"mat-h3"],[1,"ml-auto"],[1,"interacoes","app-stack"],[1,"interacao",3,"ngClass"],[3,"text"],["appearance","outline",1,"!w-full","no-label"],["aria-label","Escreva sua mensagem","rows","5","placeholder","Escreva sua mensagem...","matInput","",3,"focus","maxLength","formControl"],[1,"!my-4"],[3,"extensoes","maximoDeAnexos"],[1,"flex","mt-4"],["mat-button","","color","primary",1,"ml-auto",3,"click"],[1,"caixa","mat-elevation-z16"],[1,"titulo"],[1,"app-h2"],[1,"data-hora","text-xs"],[1,"mensagem"],[1,"anexos"],["controls","","controlsList","nodownload",1,"w-full"],[1,"mat-elevation-z1","!w-full","cursor-pointer"],[3,"src","type"],[1,"mat-elevation-z1","!w-full","cursor-pointer",3,"click"],[1,"flex","flex-row","gap-2","cursor-pointer"],[1,"progress"],[1,"nome-anexo","pt-0.5"],["mode","indeterminate",3,"diameter"],["mat-button","","color","primary",1,"!mx-auto","!mt-4","!block",3,"click"]],template:function(t,n){t&1&&(V(),o(0,"div",2)(1,"div")(2,"div",3)(3,"div",4),l(4," Intera\xE7\xF5es & Respostas "),r(),o(5,"div",5),L(6),r()(),m(7,xe,18,10,"div"),r(),m(8,ge,2,0,"div"),o(9,"div")(10,"div",6),O(11,De,11,12,"div",7,M),m(13,Pe,4,0,"div"),r()()()),t&2&&(a(7),d(n.interacaoForm&&(n.atendimentoOuProcesso!=null&&n.atendimentoOuProcesso.podeEnviarInteracao)?7:-1),a(),d(n.interacoesVisiveis.length?-1:8),a(3),E(n.interacoesVisiveis),a(2),d(n.interacoesVisiveis.length<n.interacoesTotais.length?13:-1))},dependencies:[J,Z,ee,te,Y,X,W,ne,ie,K,j,oe,H,R,U,le,z,ae],styles:['[_nghost-%COMP%]{display:contents}.interacoes[_ngcontent-%COMP%]{position:relative}.nome-arquivo[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:196px}.interacao[_ngcontent-%COMP%]{display:flex;position:relative}.interacao.importante[_ngcontent-%COMP%]:not(.self)   .caixa[_ngcontent-%COMP%]{background-color:#fc0;color:#000}.interacao.importante[_ngcontent-%COMP%]:not(.self)   .anexos[_ngcontent-%COMP%]   mat-divider[_ngcontent-%COMP%]{border-color:#c79c00}.interacao[_ngcontent-%COMP%]   .caixa[_ngcontent-%COMP%]{max-width:100%;display:inline-block;background-color:#4d71c5;color:#fff;padding:16px;border-radius:8px;overflow:hidden}.interacao[_ngcontent-%COMP%]   .caixa[_ngcontent-%COMP%]   .titulo[_ngcontent-%COMP%]{display:flex}.interacao[_ngcontent-%COMP%]   .caixa[_ngcontent-%COMP%]   .titulo[_ngcontent-%COMP%]   .data-hora[_ngcontent-%COMP%]{margin-left:auto;padding-left:32px}.interacao[_ngcontent-%COMP%]   .caixa[_ngcontent-%COMP%]   .mensagem[_ngcontent-%COMP%]{white-space:pre-wrap}.interacao.self[_ngcontent-%COMP%]   .caixa[_ngcontent-%COMP%]{background-color:#004694;margin-left:auto}.interacao.self[_ngcontent-%COMP%]   .anexos[_ngcontent-%COMP%]   mat-divider[_ngcontent-%COMP%]{border-color:#4d71c5}.interacao[_ngcontent-%COMP%]:not(.self):before{content:"";position:absolute;width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-right:10px solid #4d71c5;left:-10px;top:16px}.interacao.importante[_ngcontent-%COMP%]:not(.self):before{border-right-color:#fc0}.interacao.self[_ngcontent-%COMP%]:after{content:"";position:absolute;width:0;height:0;border-top:10px solid transparent;border-bottom:10px solid transparent;border-left:10px solid #004694;right:-10px;top:16px}.interacao[_ngcontent-%COMP%]:not(.self)   .anexos[_ngcontent-%COMP%]   mat-divider[_ngcontent-%COMP%]{border-color:#004694}.nome-anexo[_ngcontent-%COMP%]{max-width:100%;overflow:hidden;text-overflow:ellipsis}.progress[_ngcontent-%COMP%]{width:24px}']}
1)}}return i})();export{Xe as a};

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.