PageSourceSearch

https://revixgo.com.br/app/9174.45dfa4f4b9709799.js

js revixgo.com.br collected 2026-10-02 01:22:31 UTC 9,588 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9174],{39174(P,p,l){l.d(p,{MeusEstabelecimentosPageModule:()=>A});var b=l(72200),g=l(89417),i=l(57343),u=l(38132),f=l(10467),e=l(73664),c=l(2615),x=l(78575);const h=()=>[1,2,3];function v(o,s){1&o&&(e.j41(0,"div",20)(1,"div",21),e.nrm(2,"div",22),e.j41(3,"div",23),e.nrm(4,"div",24)(5,"div",25),e.k0s()()())}function _(o,s){1&o&&(e.j41(0,"section",17),e.Z7z(1,v,6,0,"div",20,e.fX1),e.k0s()),2&o&&(e.R7$(),e.Dyx(e.lJ4(0,h)))}function E(o,s){if(1&o){const r=e.RV6();e.j41(0,"section",18),e.nrm(1,"ion-icon",26),e.j41(2,"p",27),e.EFF(3),e.k0s(),e.j41(4,"ion-button",28),e.bIt("click",function(){c.eBV(r);const t=e.XpG();return c.Njj(t.carregarAssociacoes())}),e.EFF(5," Tentar novamente "),e.k0s()()}if(2&o){const r=e.XpG();e.R7$(3),e.SpI(" ",r.mensagemErro," ")}}function F(o,s){1&o&&(e.j41(0,"span",38),e.nrm(1,"ion-icon",45),e.EFF(2," Atualiza\xe7\xf5es ativas "),e.k0s())}function k(o,s){1&o&&(e.nrm(0,"ion-spinner",46),e.EFF(1," Removendo... "))}function C(o,s){1&o&&(e.nrm(0,"ion-icon",47),e.EFF(1," Remover "))}function j(o,s){if(1&o){const r=e.RV6();e.j41(0,"article",29)(1,"div",30)(2,"div",12)(3,"div",13),e.nrm(4,"ion-icon",31),e.k0s(),e.j41(5,"div",32)(6,"h2",33),e.EFF(7),e.k0s(),e.j41(8,"p",34),e.EFF(9),e.k0s(),e.j41(10,"div",35)(11,"span",36),e.nrm(12,"ion-icon",37),e.EFF(13," Associado "),e.k0s(),e.nVh(14,F,3,0,"span",38),e.k0s()()(),e.j41(15,"div",39)(16,"div",40)(17,"div",41),e.nrm(18,"ion-icon",42),e.j41(19,"span",43),e.EFF(20),e.k0s()(),e.j41(21,"ion-button",44),e.bIt("click",function(){const t=c.eBV(r).$implicit,a=e.XpG(2);return c.Njj(a.solicitarRemocao(t))}),e.nVh(22,k,2,0)(23,C,2,0),e.k0s()()()()()}if(2&o){const r=s.$implicit,n=e.XpG(2);e.R7$(7),e.SpI(" ",r.nomeEstabelecimento," "),e.R7$(2),e.SpI(" Cadastro: ",r.nomeCliente," "),e.R7$(5),e.vxM(r.compartilhaAtualizacoes?14:-1),e.R7$(6),e.SpI(" Associado em ",n.formatarData(r.dtAssociacao)," "),e.R7$(),e.Y8G("disabled",n.removendoId===r.idCliente),e.R7$(),e.vxM(n.removendoId===r.idCliente?22:23)}}function y(o,s){if(1&o&&(e.j41(0,"section",17),e.Z7z(1,j,24,6,"article",29,e.BUC().identificarAssociacao,!0),e.k0s()),2&o){const r=e.XpG();e.R7$(),e.Dyx(r.associacoes)}}function M(o,s){1&o&&(e.j41(0,"section",19)(1,"div",48),e.nrm(2,"ion-icon",49),e.k0s(),e.j41(3,"h2",50),e.EFF(4," Nenhum estabelecimento associado "),e.k0s(),e.j41(5,"p",51),e.EFF(6," Use o c\xf3digo ou QR Code recebido em um estabelecimento para conect\xe1-lo \xe0 sua conta. "),e.k0s(),e.j41(7,"ion-button",52),e.nrm(8,"ion-icon",53),e.EFF(9," Associar estabelecimento "),e.k0s()())}const R=[{path:"",component:(()=>{var o;class s{constructor(n,t,a){this.associacaoService=n,this.alertController=t,this.toastController=a,this.associacoes=[],this.carregando=!1,this.removendoId=null,this.mensagemErro=null}ngOnInit(){}ionViewWillEnter(){this.carregarAssociacoes()}carregarAssociacoes(n){n||(this.carregando=!0),this.mensagemErro=null,this.associacaoService.listarAssociacoes().subscribe({next:t=>{this.associacoes=t??[],this.carregando=!1,n&&n.target.complete()},error:t=>{this.carregando=!1,n&&n.target.complete(),this.mensagemErro=t?.error?.message??t?.error?.mensagem??"N\xe3o foi poss\xedvel carregar os estabelecimentos."}})}solicitarRemocao(n){var t=this;return(0,f.A)(function*(){yield(yield t.alertController.create({header:"Remover associa\xe7\xe3o?",message:`O estabelecimento <strong>${t.escaparHtml(n.nomeEstabelecimento)}</strong> deixar\xe1 de receber suas atualiza\xe7\xf5es compartilhadas. Os atendimentos e registros j\xe1 realizados n\xe3o ser\xe3o apagados.`,buttons:[{text:"Cancelar",role:"cancel"},{text:"Remover",role:"destructive",handler:()=>{t.removerAssociacao(n)}}]})).present()})()}removerAssociacao(n){var a,t=this;null===this.removendoId&&(this.removendoId=n.idCliente,this.associacaoService.removerAssociacao(n.idCliente).subscribe({next:(a=(0,f.A)(function*(){t.removendoId=null,t.associacoes=t.associacoes.filter(d=>d.idCliente!==n.idCliente),yield(yield t.toastController.create({message:"Associa\xe7\xe3o removida com sucesso.",duration:2500,position:"bottom",color:"success"})).present()}),function(){return a.apply(this,arguments)}),error:function(){var a=(0,f.A)(function*(m){t.removendoId=null;const d=m?.error?.message??m?.error?.mensagem??"N\xe3o foi poss\xedvel remover a associa\xe7\xe3o.";yield(yield t.toastController.create({message:d,duration:3e3,position:"bottom",color:"danger"})).present()});return function(d){return a.apply(this,arguments)}}()}))}formatarData(n){if(!n)return"Data n\xe3o informada";const t=new Date(n);
1return Number.isNaN(t.getTime())?"Data n\xe3o informada":new Intl.DateTimeFormat("pt-BR",{day:"2-digit",month:"2-digit",year:"numeric"}).format(t)}identificarAssociacao(n,t){return t.idCliente}escaparHtml(n){return String(n??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}static#e=o=()=>(this.\u0275fac=function(t){return new(t||s)(e.rXU(x.W),e.rXU(i.hG),e.rXU(i.K_))},this.\u0275cmp=e.VBU({type:s,selectors:[["app-meus-estabelecimentos"]],standalone:!1,decls:29,vars:4,consts:[[1,"ion-no-border"],[1,"w-full","bg-stone-800","flex","items-center","justify-between","px-4","py-3"],[2,"color","white"],[1,"text-white"],["slot","end"],["routerLink","/associar-estabelecimento","aria-label","Associar novo estabelecimento"],["name","add-circle-outline","slot","icon-only",1,"text-white"],["slot","fixed",3,"ionRefresh"],["pullingText","Puxe para atualizar","refreshingSpinner","crescent"],[1,"pb-24"],[1,"mx-auto","w-full","max-w-2xl","px-4","py-6"],[1,"mb-6"],[1,"flex","items-start","gap-4"],[1,"flex","h-14","w-14","shrink-0","items-center","justify-center","rounded-2xl","bg-amber-100"],["name","business-outline",1,"text-3xl","text-amber-600"],[1,"text-xl","font-bold","text-slate-900"],[1,"mt-1","text-sm","leading-relaxed","text-slate-600"],[1,"space-y-4"],[1,"rounded-3xl","border","border-red-200","bg-red-50","p-5","text-center"],[1,"rounded-3xl","border","border-dashed","border-slate-300","bg-white","p-8","text-center"],[1,"animate-pulse","rounded-3xl","border","border-slate-200","bg-white","p-5"],[1,"flex","items-center","gap-4"],[1,"h-14","w-14","rounded-2xl","bg-slate-200"],[1,"flex-1"],[1,"h-4","w-2/3","rounded","bg-slate-200"],[1,"mt-3","h-3","w-1/2","rounded","bg-slate-100"],["name","alert-circle-outline",1,"text-4xl","text-red-500"],[1,"mt-3","text-sm","font-medium","text-red-700"],["fill","clear","color","danger",1,"mt-2",3,"click"],[1,"overflow-hidden","rounded-3xl","border","border-slate-200","bg-white","shadow-sm"],[1,"p-5"],["name","storefront-outline",1,"text-3xl","text-amber-600"],[1,"min-w-0","flex-1"],[1,"truncate","text-base","font-bold","text-slate-900"],[1,"mt-1","truncate","text-sm","text-slate-500"],[1,"mt-3","flex","flex-wrap","gap-2"],[1,"inline-flex","items-center","gap-1","rounded-full","bg-emerald-100","px-3","py-1","text-xs","font-semibold","text-emerald-700"],["name","checkmark-circle-outline"],[1,"inline-flex","items-center","gap-1","rounded-full","bg-blue-100","px-3","py-1","text-xs","font-semibold","text-blue-700"],[1,"mt-5","border-t","border-slate-100","pt-4"],[1,"flex","items-center","justify-between","gap-3"],[1,"flex","items-center","gap-2"],["name","calendar-outline",1,"text-slate-400"],[1,"text-xs","text-slate-500"],["fill","clear","color","danger","size","small",3,"click","disabled"],["name","sync-outline"],["name","crescent",1,"mr-2"],["name","unlink-outline","slot","start"],[1,"mx-auto","flex","h-20","w-20","items-center","justify-center","rounded-full","bg-slate-100"],["name","business-outline",1,"text-4xl","text-slate-400"],[1,"mt-5","text-lg","font-bold","text-slate-900"],[1,"mx-auto","mt-2","max-w-sm","text-sm","leading-relaxed","text-slate-500"],["routerLink","/associar-estabelecimento","color","warning","shape","round",1,"mt-6","font-semibold"],["name","link-outline","slot","start"]],template:function(t,a){1&t&&(e.j41(0,"ion-header",0)(1,"ion-toolbar")(2,"div",1),e.nrm(3,"ion-back-button",2),e.j41(4,"ion-title",3),e.EFF(5," Meus estabelecimentos "),e.k0s(),e.j41(6,"ion-buttons",4)(7,"ion-button",5),e.nrm(8,"ion-icon",6),e.k0s()()()()(),e.j41(9,"ion-content")(10,"ion-refresher",7),e.bIt("ionRefresh",function(d){return a.carregarAssociacoes(d)}),e.nrm(11,"ion-refresher-content",8),e.k0s(),e.j41(12,"div",9)(13,"div",10)(14,"section",11)(15,"div",12)(16,"div",13),e.nrm(17,"ion-icon",14),e.k0s(),e.j41(18,"div")(19,"h1",15),e.EFF(20," Estabelecimentos conectados "),e.k0s(),e.j41(21,"p",16),e.EFF(22," Consulte os estabelecimentos associados \xe0 sua conta e controle o compartilhamento das suas atualiza\xe7\xf5es. "),e.k0s()()()(),e.nVh(23,_,3,1,"section",17),e.nVh(24,E,6,1,"section",18),e.nV
1h(25,y,3,0,"section",17),e.nVh(26,M,10,0,"section",19),e.k0s(),e.nrm(27,"br")(28,"br"),e.k0s()()),2&t&&(e.R7$(23),e.vxM(a.carregando?23:-1),e.R7$(),e.vxM(!a.carregando&&a.mensagemErro?24:-1),e.R7$(),e.vxM(!a.carregando&&!a.mensagemErro&&a.associacoes.length>0?25:-1),e.R7$(),e.vxM(a.carregando||a.mensagemErro||0!==a.associacoes.length?-1:26))},dependencies:[i.Jm,i.QW,i.W9,i.eU,i.iq,i.To,i.Ki,i.w2,i.BC,i.ai,i.el,i.N7,u.Wk],encapsulation:2}))}return o(),s})()}];let w=(()=>{var o;class s{static#e=o=()=>(this.\u0275fac=function(t){return new(t||s)},this.\u0275mod=e.$C({type:s}),this.\u0275inj=c.G2t({imports:[u.iI.forChild(R),u.iI]}))}return o(),s})(),A=(()=>{var o;class s{static#e=o=()=>(this.\u0275fac=function(t){return new(t||s)},this.\u0275mod=e.$C({type:s}),this.\u0275inj=c.G2t({imports:[b.MD,g.YN,i.bv,w]}))}return o(),s})()}}]);

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.