%PDF- %PDF-
Direktori : /home/vacivi36/www2]/app/ |
Current File : /home/vacivi36/www2]/app/378.28d2f3ad41d2b30f.js |
"use strict";(self.webpackChunkmaterial=self.webpackChunkmaterial||[]).push([[378],{1378:(se,T,c)=>{c.r(T),c.d(T,{VaccinesModule:()=>re});var d=c(9808),y=c(6696),m=c(8279),A=c(6087),f=c(4847),l=c(3075),p=c(8966),e=c(5e3),h=c(7261),_=c(3088),k=c(4530),u=c(3737),Z=c(7423),v=c(4834),x=c(5899),C=c(4376);function V(t,o){1&t&&e._UZ(0,"mat-progress-bar",27)}function q(t,o){if(1&t&&(e.TgZ(0,"div",28)(1,"span",29),e._uU(2),e.qZA(),e.TgZ(3,"span",30),e._uU(4),e.qZA()()),2&t){const n=o.item;e.xp6(2),e.Oqu(n.name),e.xp6(2),e.hij("C\xf3digo: ",n.code,"")}}let b=(()=>{class t{constructor(n,i,a,r,s,g){this.formBuilder=n,this._snackBar=i,this.vaccineService=a,this.campaignService=r,this.dialog=s,this.data=g,this.campaigns=[],this.loading=!1,this.savedChange=!1,this.vaccine=this.data.vaccine}ngOnInit(){this.initForm(),this.populateForm(this.vaccine),this.downloadCampaigns()}initForm(){this.form=this.formBuilder.group({code:[null,[l.kI.required]],name:[null,[l.kI.required]],batch:[null,[l.kI.required]],quantity:[null,[l.kI.required]],due_date:[null,[l.kI.required]],doses:[null,[l.kI.required]],manufacturing_date:[null],campaign_id:[null,[l.kI.required]],laboratory:[null],application_location:[null],notes:[null]})}save(n){if(this.form.valid){this.loading=!0;let i=this.form.value;this.vaccine?this.vaccineService.update(this.vaccine.id,i).then(a=>{this.vaccine=a,this.savedChange=!0,this.openSnackBar("Salvo com sucesso!","Fechar","success"),n&&this.closeDialog()}).catch(a=>{this.openSnackBar(a.error.message,"Fechar","danger")}).finally(()=>{this.loading=!1}):this.vaccineService.create(i).then(a=>{this.vaccine=a,this.savedChange=!0,this.openSnackBar("Salvo com sucesso!","Fechar","success"),n&&this.closeDialog()}).catch(a=>{this.openSnackBar(a.error.message,"Fechar","danger")}).finally(()=>{this.loading=!1})}}populateForm(n){this.form.patchValue(n)}canSave(){return this.form.valid&&!this.loading}closeDialog(){this.savedChange?this.dialog.close(this.vaccine):this.dialog.close()}openSnackBar(n,i,a){this._snackBar.open(n,i,{horizontalPosition:"right",verticalPosition:"bottom",duration:4e3,panelClass:"snackBar-"+a})}downloadCampaigns(){this.loading=!0,this.campaignService.list().then(n=>{this.campaigns=n}).catch(n=>{this.openSnackBar("Erro ao listar campanhas","Fechar","danger")}).finally(()=>{this.loading=!1})}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.qu),e.Y36(h.ux),e.Y36(_.s),e.Y36(k.U),e.Y36(p.so),e.Y36(p.WI))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-schedule-form-dialog"]],decls:72,vars:6,consts:[[3,"formGroup"],["cdkDrag","","cdkDragRootElement",".cdk-overlay-pane","cdkDragHandle","",1,"d-flex","align-items-center","justify-content-between","cursor-pointer","p-2","mt-2","mx-2"],[1,"mdi","mdi-close","mb-2",3,"click"],["style","height: 3px;","color","accent","mode","indeterminate",4,"ngIf"],[1,"mat-typography","p-4","background-color-form"],[1,"row","mb-3","d-flex","align-items-center"],[1,"col-md-2"],[1,"form-label"],[1,"required"],["type","text","formControlName","code",1,"form-control"],[1,"col-md-6"],["type","text","formControlName","name",1,"form-control"],["type","text","formControlName","batch",1,"form-control"],["type","number","formControlName","doses",1,"form-control"],[1,"col-md-4","mt-3"],["type","number","formControlName","quantity",1,"form-control"],["type","date","formControlName","manufacturing_date",1,"form-control"],["type","date","formControlName","due_date",1,"form-control"],[1,"col-md-12","mt-3"],["bindLabel","name","bindValue","id","type","select","formControlName","campaign_id",1,"style-ng-select","form-select",3,"items","clearable"],["ng-option-tmp",""],[1,"col-md-6","mt-3"],["type","text","formControlName","laboratory",1,"form-control"],["type","text","formControlName","application_location",1,"form-control"],["formControlName","notes","rows","4",1,"form-control"],["cdkDrag","","cdkDragRootElement",".cdk-overlay-pane","cdkDragHandle","","align","end",1,"cursor-pointer","p-2","mt-1","mx-2","mb-1"],["mat-button","","color","accent",3,"disabled","click"],["color","accent","mode","indeterminate",2,"height","3px"],[1,"d-flex","flex-column"],[1,"font-weight-bold"],[1,"small","text-muted"]],template:function(n,i){1&n&&(e.TgZ(0,"form",0)(1,"div",1)(2,"h6"),e._uU(3),e.qZA(),e.TgZ(4,"i",2),e.NdJ("click",function(){return i.closeDialog()}),e.qZA()(),e._UZ(5,"mat-divider"),e.YNc(6,V,1,0,"mat-progress-bar",3),e.TgZ(7,"div",4)(8,"div",5)(9,"div",6)(10,"label",7),e._uU(11,"C\xf3digo"),e.qZA(),e.TgZ(12,"span",8),e._uU(13,"*"),e.qZA(),e._UZ(14,"input",9),e.qZA(),e.TgZ(15,"div",10)(16,"label",7),e._uU(17,"Nome"),e.qZA(),e.TgZ(18,"span",8),e._uU(19,"*"),e.qZA(),e._UZ(20,"input",11),e.qZA(),e.TgZ(21,"div",6)(22,"label",7),e._uU(23,"Lote"),e.qZA(),e.TgZ(24,"span",8),e._uU(25,"*"),e.qZA(),e._UZ(26,"input",12),e.qZA(),e.TgZ(27,"div",6)(28,"label",7),e._uU(29,"Doses"),e.qZA(),e.TgZ(30,"span",8),e._uU(31,"*"),e.qZA(),e._UZ(32,"input",13),e.qZA(),e.TgZ(33,"div",14)(34,"label",7),e._uU(35,"Quantidade"),e.qZA(),e.TgZ(36,"span",8),e._uU(37,"*"),e.qZA(),e._UZ(38,"input",15),e.qZA(),e.TgZ(39,"div",14)(40,"label",7),e._uU(41,"Data de Fabrica\xe7\xe3o"),e.qZA(),e._UZ(42,"input",16),e.qZA(),e.TgZ(43,"div",14)(44,"label",7),e._uU(45,"Data de Vencimento"),e.qZA(),e.TgZ(46,"span",8),e._uU(47,"*"),e.qZA(),e._UZ(48,"input",17),e.qZA(),e.TgZ(49,"div",18)(50,"label",7),e._uU(51,"Campanhas"),e.qZA(),e.TgZ(52,"span",8),e._uU(53,"*"),e.qZA(),e.TgZ(54,"ng-select",19),e.YNc(55,q,5,2,"ng-template",20),e.qZA()(),e.TgZ(56,"div",21)(57,"label",7),e._uU(58,"Laborat\xf3rio"),e.qZA(),e._UZ(59,"input",22),e.qZA(),e.TgZ(60,"div",21)(61,"label",7),e._uU(62,"Local da Aplica\xe7\xe3o"),e.qZA(),e._UZ(63,"input",23),e.qZA(),e.TgZ(64,"div",18)(65,"label",7),e._uU(66,"Observa\xe7\xf5es"),e.qZA(),e._UZ(67,"textarea",24),e.qZA()()(),e._UZ(68,"mat-divider"),e.TgZ(69,"div",25)(70,"button",26),e.NdJ("click",function(){return i.save(!0)}),e._uU(71,"Salvar e Fechar"),e.qZA()()()),2&n&&(e.Q6J("formGroup",i.form),e.xp6(3),e.Oqu(i.vaccine?"Editar Vacina #"+i.vaccine.id:"Adicionar Vacina"),e.xp6(3),e.Q6J("ngIf",i.loading),e.xp6(48),e.Q6J("items",i.campaigns)("clearable",!0),e.xp6(16),e.Q6J("disabled",!i.canSave()))},dependencies:[d.O5,u.Zt,u.Bh,Z.lW,v.d,x.pW,l._Y,l.Fj,l.wV,l.JJ,l.JL,l.sg,l.u,C.w9,C.ir],styles:[".required[_ngcontent-%COMP%]{color:#ea0505;margin-left:5px}.small-toggle[_ngcontent-%COMP%]{transform:scale(.75);margin:0}.small-toggle[_ngcontent-%COMP%] .mat-slide-toggle-thumb[_ngcontent-%COMP%]{width:12px;height:12px}.small-toggle[_ngcontent-%COMP%] .mat-slide-toggle-bar[_ngcontent-%COMP%]{height:14px}input[type=number][_ngcontent-%COMP%]::-webkit-outer-spin-button, input[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}input[type=number][_ngcontent-%COMP%]{-moz-appearance:textfield} ng-select .ng-select-container{font-size:14px!important} ng-select .ng-option{font-size:14px!important} ng-select .ng-value{font-size:14px!important}"]}),t})();var D=c(5969);function F(t,o){1&t&&e._UZ(0,"mat-progress-bar",23)}let N=(()=>{class t{constructor(n,i,a,r,s,g){this.formBuilder=n,this._snackBar=i,this.vaccineService=a,this.alertDialogService=r,this.dialog=s,this.data=g,this.selectedFile=null,this.selectedFileName=null,this.loading=!1}ngOnInit(){this.initForm()}initForm(){this.form=this.formBuilder.group({file:[null,[l.kI.required]]})}onFileSelected(n){var i;const a=n.target;if(a.files&&a.files.length>0){const r=a.files[0],s=null===(i=r.name.split(".").pop())||void 0===i?void 0:i.toLowerCase();if(!["xlsx","xls"].includes(s)||r.size>10485760)return alert("Apenas arquivos .xlsx ou .xls com at\xe9 10MB s\xe3o permitidos."),a.value="",this.selectedFile=null,void(this.selectedFileName=null);this.selectedFile=r,this.selectedFileName=r.name}}importFile(n){this.selectedFile?this.vaccineService.importVaccines(this.selectedFile).then(i=>{n&&(this.closeDialog(),this.openSnackBar("Importado com sucesso!","Fechar","success"))}).catch(i=>{this.alertDialogService.openAlertDialog("Erro",i.error.message)}):this.openSnackBar("Por favor, selecione um arquivo antes de importar.","Fechar","danger")}downloadSheetExample(){const i=document.createElement("a");i.href="/assets/sheets/Planilha Exemplo Importacao Vacinas.xlsx",i.download="Planilha Exemplo Importacao Vacinas.xlsx",i.click()}canSave(){return!!this.selectedFile}closeDialog(){this.dialog.close()}openSnackBar(n,i,a){this._snackBar.open(n,i,{horizontalPosition:"right",verticalPosition:"bottom",duration:4e3,panelClass:"snackBar-"+a})}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(l.qu),e.Y36(h.ux),e.Y36(_.s),e.Y36(D.C),e.Y36(p.so),e.Y36(p.WI))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-schedule-import-dialog"]],decls:39,vars:5,consts:[[3,"formGroup"],["cdkDrag","","cdkDragRootElement",".cdk-overlay-pane","cdkDragHandle","",1,"d-flex","align-items-center","justify-content-between","cursor-pointer","p-2","mt-2","mx-2"],[1,"mdi","mdi-close","mb-2",3,"click"],["style","height: 3px;","color","accent","mode","indeterminate",4,"ngIf"],[1,"mat-typography","p-4","background-color-form"],[1,"row","mb-3","d-flex","align-items-center"],[1,"col-md-12","mb-3"],[1,"text-muted",2,"font-size","13px"],["mat-stroked-button","",1,"mb-2",2,"background-color","#FFFFFF",3,"click"],[1,"mdi","mdi-download",2,"font-size","1.1rem","margin-right","10px"],[2,"font-weight","400"],[1,"col-md-12","mt-3"],[1,"form-label"],[1,"required"],[1,"file-info-text"],[1,"text-muted","small"],[2,"font-weight","600"],[1,"custom-file-upload"],["type","file","id","fileInput","formControlName","file","hidden","","accept",".xlsx, .xls",3,"change"],["for","fileInput",1,"file-label"],[1,"mdi","mdi-file-excel",2,"color","green","font-size","1.1rem"],["cdkDrag","","cdkDragRootElement",".cdk-overlay-pane","cdkDragHandle","","align","end",1,"cursor-pointer","p-2","mt-1","mx-2","mb-1"],["mat-button","","color","accent",3,"disabled","click"],["color","accent","mode","indeterminate",2,"height","3px"]],template:function(n,i){1&n&&(e.TgZ(0,"form",0)(1,"div",1)(2,"h6"),e._uU(3),e.qZA(),e.TgZ(4,"i",2),e.NdJ("click",function(){return i.closeDialog()}),e.qZA()(),e._UZ(5,"mat-divider"),e.YNc(6,F,1,0,"mat-progress-bar",3),e.TgZ(7,"div",4)(8,"div",5)(9,"div",6)(10,"p",7),e._uU(11," Disponibilizamos uma planilha de exemplo para facilitar o processo de importa\xe7\xe3o. Certifique-se de seguir o modelo para garantir que os dados sejam importados corretamente pelo sistema. "),e.qZA(),e.TgZ(12,"button",8),e.NdJ("click",function(){return i.downloadSheetExample()}),e._UZ(13,"i",9),e.TgZ(14,"span",10),e._uU(15,"Baixar Planilha Exemplo"),e.qZA()()(),e._UZ(16,"mat-divider"),e.TgZ(17,"div",11)(18,"label",12),e._uU(19,"Escolha o arquivo"),e.qZA(),e.TgZ(20,"span",13),e._uU(21,"*"),e.qZA(),e.TgZ(22,"div",14)(23,"p",15),e._uU(24,"Apenas arquivos .xlsx ou .xls s\xe3o permitidos."),e.qZA(),e.TgZ(25,"p",15),e._uU(26,"Tamanho m\xe1ximo: "),e.TgZ(27,"span",16),e._uU(28,"10MB."),e.qZA()()(),e.TgZ(29,"div",17)(30,"input",18),e.NdJ("change",function(r){return i.onFileSelected(r)}),e.qZA(),e.TgZ(31,"label",19),e._UZ(32,"i",20),e.TgZ(33,"span"),e._uU(34),e.qZA()()()()()(),e._UZ(35,"mat-divider"),e.TgZ(36,"div",21)(37,"button",22),e.NdJ("click",function(){return i.importFile(!0)}),e._uU(38,"Importar"),e.qZA()()()),2&n&&(e.Q6J("formGroup",i.form),e.xp6(3),e.Oqu("Importar Vacinas"),e.xp6(3),e.Q6J("ngIf",i.loading),e.xp6(28),e.Oqu(i.selectedFileName||"Escolher Arquivo Excel"),e.xp6(3),e.Q6J("disabled",!i.canSave()))},dependencies:[d.O5,u.Zt,u.Bh,Z.lW,v.d,x.pW,l._Y,l.Fj,l.JJ,l.JL,l.sg,l.u],styles:[".required[_ngcontent-%COMP%]{color:#ea0505;margin-left:5px}.small-toggle[_ngcontent-%COMP%]{transform:scale(.75);margin:0}.small-toggle[_ngcontent-%COMP%] .mat-slide-toggle-thumb[_ngcontent-%COMP%]{width:12px;height:12px}.small-toggle[_ngcontent-%COMP%] .mat-slide-toggle-bar[_ngcontent-%COMP%]{height:14px}.file-info-text[_ngcontent-%COMP%]{margin-top:5px}.file-info-text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;line-height:1.4}.custom-file-upload[_ngcontent-%COMP%]{margin-top:18px;position:relative;display:inline-block}.file-label[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 12px;border:1px solid #ccc;border-radius:4px;background-color:#fff;cursor:pointer;transition:background-color .3s ease}.file-label[_ngcontent-%COMP%]:hover{background-color:#f1f1f1}.file-label[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:8px}"]}),t})();var S=c(5664),M=c(6030),B=c(7531),O=c(7238),U=c(5539);function Y(t,o){1&t&&e._UZ(0,"mat-progress-bar",30)}function L(t,o){1&t&&(e.TgZ(0,"th",31),e._uU(1," C\xf3digo"),e.qZA())}function w(t,o){if(1&t&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&t){const n=o.$implicit;e.xp6(1),e.hij(" ",n.code,"")}}function E(t,o){1&t&&(e.TgZ(0,"th",31),e._uU(1," Nome"),e.qZA())}function P(t,o){if(1&t&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&t){const n=o.$implicit;e.xp6(1),e.hij(" ",n.name,"")}}function I(t,o){1&t&&(e.TgZ(0,"th",31),e._uU(1," Doses"),e.qZA())}function J(t,o){if(1&t&&(e.TgZ(0,"td",32)(1,"span",33),e._uU(2),e.qZA()()),2&t){const n=o.$implicit;e.xp6(2),e.Oqu(n.doses)}}function z(t,o){1&t&&(e.TgZ(0,"th",31),e._uU(1," Lote"),e.qZA())}function Q(t,o){if(1&t&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&t){const n=o.$implicit;e.xp6(1),e.hij(" ",n.batch,"")}}function j(t,o){1&t&&(e.TgZ(0,"th",31),e._uU(1," Campanha"),e.qZA())}function H(t,o){if(1&t&&(e.TgZ(0,"td",32),e._uU(1),e.qZA()),2&t){const n=o.$implicit;e.xp6(1),e.hij(" ",n.campaign.name,"")}}function R(t,o){1&t&&(e.TgZ(0,"th",31),e._uU(1," Data de Fabrica\xe7\xe3o"),e.qZA())}function G(t,o){if(1&t&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"date"),e.qZA()),2&t){const n=o.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,n.manufacturing_date,"dd/MM/yyyy"),"")}}function W(t,o){1&t&&(e.TgZ(0,"th",31),e._uU(1," Data de Vencimento"),e.qZA())}function $(t,o){if(1&t&&(e.TgZ(0,"td",32),e._uU(1),e.ALo(2,"date"),e.qZA()),2&t){const n=o.$implicit;e.xp6(1),e.hij(" ",e.xi3(2,1,n.due_date,"dd/MM/yyyy")," ")}}function X(t,o){1&t&&e._UZ(0,"th",34)}function K(t,o){if(1&t){const n=e.EpF();e.TgZ(0,"td",32)(1,"div",35)(2,"button",36),e.NdJ("click",function(){const r=e.CHM(n).$implicit,s=e.oxw();return e.KtG(s.openDialog(r))}),e._UZ(3,"i",37),e.qZA(),e.TgZ(4,"button",38),e.NdJ("click",function(){const r=e.CHM(n).$implicit,s=e.oxw();return e.KtG(s.delete(r.id,r.name))}),e._UZ(5,"i",39),e.qZA()()()}}function ee(t,o){1&t&&e._UZ(0,"tr",40)}function te(t,o){1&t&&e._UZ(0,"tr",41)}function ne(t,o){if(1&t&&(e.TgZ(0,"tr",42)(1,"td",43)(2,"p",44),e._uU(3,"Nenhum registro encontrado."),e.qZA()()()),2&t){const n=e.oxw();e.xp6(1),e.uIk("colspan",n.displayedColumns.length)}}const ie=function(){return[25,50,100]},oe=[{path:"",component:(()=>{class t{constructor(n,i,a,r,s){this._liveAnnouncer=n,this.dialog=i,this.confirmService=a,this._snackBar=r,this.vaccineService=s,this.loading=!1,this.vaccines=[],this.displayedColumns=["code","name","doses","batch","campaign","manufacturing_date","due_date","options"],this.dataSource=new m.by}ngOnInit(){this.downloadVaccines()}ngAfterViewInit(){this.dataSource.sort=this.sort,this.dataSource.paginator=this.paginator}applyFilter(n){this.dataSource.filter=n.target.value.trim().toLowerCase()}sortChange(n){this._liveAnnouncer.announce(n.direction?`Sorted ${n.direction}ending`:"Sorting cleared")}openDialog(n){this.dialog.open(b,{width:"800px",maxHeight:"100vh",panelClass:"dialog",autoFocus:!1,data:{vaccine:n}}).afterClosed().subscribe(a=>{a&&this.downloadVaccines()})}openDialogImport(){this.dialog.open(N,{width:"550px",maxHeight:"100vh",panelClass:"dialog",autoFocus:!1}).afterClosed().subscribe(i=>{this.downloadVaccines()})}downloadVaccines(){this.loading=!0,this.vaccineService.list().then(n=>{this.dataSource.data=n,this.vaccines=n}).catch(n=>{this.openSnackBar("Erro ao listar vacinas","Fechar","danger")}).finally(()=>{this.loading=!1})}delete(n,i){this.confirmService.openConfirmDialog("Excluir","Tem certeza que deseja excluir a vacina "+i+" ?","Cancelar","Excluir").afterClosed().subscribe(a=>{a&&(this.loading=!0,this.vaccineService.delete(n).then(()=>{this.downloadVaccines(),this.openSnackBar("Exclu\xeddo com sucesso!","Fechar","success")}).catch(r=>{this.openSnackBar(r.error.message,"Fechar","danger")}).finally(()=>{this.loading=!1}))})}openSnackBar(n,i,a){this._snackBar.open(n,i,{horizontalPosition:"right",verticalPosition:"bottom",duration:3e3,panelClass:"snackBar-"+a})}}return t.\u0275fac=function(n){return new(n||t)(e.Y36(S.Kd),e.Y36(p.uw),e.Y36(M.x),e.Y36(h.ux),e.Y36(_.s))},t.\u0275cmp=e.Xpm({type:t,selectors:[["app-schedule-list"]],viewQuery:function(n,i){if(1&n&&(e.Gf(A.NW,5),e.Gf(f.YE,5)),2&n){let a;e.iGM(a=e.CRH())&&(i.paginator=a.first),e.iGM(a=e.CRH())&&(i.sort=a.first)}},decls:48,vars:7,consts:[[1,"d-flex","align-items-center","justify-content-between","p-2"],["mat-raised-button","","color","accent",1,"style-button-add",2,"margin-left","auto",3,"click"],[1,"mt-3"],["style","height: 3px;","color","accent","mode","indeterminate",4,"ngIf"],[1,"header-table"],[1,"d-flex","align-items-center","justify-content-between"],[1,"search_input_group","search-table","w-25","mt-4","mb-4"],[1,"mdi","mdi-magnify"],["matInput","","placeholder","Pesquisar",1,"search_input",3,"input"],["input",""],["mat-stroked-button","","color","primary",1,"style-button-add","mx-3",3,"click"],[1,"mdi","mdi-file-excel","mx-1"],[1,"table-responsive"],["mat-table","","matSort","","matTableExporter","",3,"dataSource","matSortChange"],["exporter","matTableExporter"],["matColumnDef","code"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","doses"],["matColumnDef","batch"],["matColumnDef","campaign"],["matColumnDef","manufacturing_date"],["matColumnDef","due_date"],["matColumnDef","options"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef","matHeaderRowDefSticky"],["mat-row","",4,"matRowDef","matRowDefColumns"],["class","mat-row",4,"matNoDataRow"],[1,"mat-paginator",3,"pageSizeOptions"],["color","accent","mode","indeterminate",2,"height","3px"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"badge","bg-secondary"],["mat-header-cell",""],[1,"mat-icon-no-color"],["matTooltip","Editar",1,"icon-options",3,"click"],[1,"mdi","mdi-pencil-outline"],["matTooltip","Excluir",1,"icon-options-delete",3,"click"],[1,"mdi","mdi-trash-can-outline"],["mat-header-row",""],["mat-row",""],[1,"mat-row"],[1,"mat-cell"],[1,"d-flex","align-items-center","justify-content-center","mt-3"]],template:function(n,i){if(1&n){const a=e.EpF();e.TgZ(0,"div",0)(1,"h3"),e._uU(2,"Vacinas"),e.qZA(),e.TgZ(3,"button",1),e.NdJ("click",function(){return i.openDialog()}),e._uU(4,"Adicionar Vacina"),e.qZA()(),e._UZ(5,"mat-divider",2),e.YNc(6,Y,1,0,"mat-progress-bar",3),e.TgZ(7,"div",4)(8,"div",5)(9,"div",6),e._UZ(10,"i",7),e._uU(11,"\xa0 "),e.TgZ(12,"input",8,9),e.NdJ("input",function(s){return i.applyFilter(s)}),e.qZA()(),e.TgZ(14,"button",10),e.NdJ("click",function(){e.CHM(a);const s=e.MAs(19);return e.KtG(s.exportTable("xlsx",{fileName:"Vacinas",sheet:"Vacinas"}))}),e._UZ(15,"i",11),e._uU(16,"Exportar"),e.qZA()(),e.TgZ(17,"div",12)(18,"table",13,14),e.NdJ("matSortChange",function(s){return i.sortChange(s)}),e.ynx(20,15),e.YNc(21,L,2,0,"th",16),e.YNc(22,w,2,1,"td",17),e.BQk(),e.ynx(23,18),e.YNc(24,E,2,0,"th",16),e.YNc(25,P,2,1,"td",17),e.BQk(),e.ynx(26,19),e.YNc(27,I,2,0,"th",16),e.YNc(28,J,3,1,"td",17),e.BQk(),e.ynx(29,20),e.YNc(30,z,2,0,"th",16),e.YNc(31,Q,2,1,"td",17),e.BQk(),e.ynx(32,21),e.YNc(33,j,2,0,"th",16),e.YNc(34,H,2,1,"td",17),e.BQk(),e.ynx(35,22),e.YNc(36,R,2,0,"th",16),e.YNc(37,G,3,4,"td",17),e.BQk(),e.ynx(38,23),e.YNc(39,W,2,0,"th",16),e.YNc(40,$,3,4,"td",17),e.BQk(),e.ynx(41,24),e.YNc(42,X,1,0,"th",25),e.YNc(43,K,6,0,"td",17),e.BQk(),e.YNc(44,ee,1,0,"tr",26),e.YNc(45,te,1,0,"tr",27),e.YNc(46,ne,4,1,"tr",28),e.qZA()(),e._UZ(47,"mat-paginator",29),e.qZA()}2&n&&(e.xp6(6),e.Q6J("ngIf",i.loading),e.xp6(12),e.Q6J("dataSource",i.dataSource),e.xp6(26),e.Q6J("matHeaderRowDef",i.displayedColumns)("matHeaderRowDefSticky",!0),e.xp6(1),e.Q6J("matRowDefColumns",i.displayedColumns),e.xp6(2),e.Q6J("pageSizeOptions",e.DdM(6,ie)))},dependencies:[d.O5,Z.lW,m.BZ,m.fO,m.as,m.w1,m.Dz,m.nj,m.ge,m.ev,m.XQ,m.Gk,m.Ee,B.Nt,v.d,A.NW,x.pW,f.YE,f.nU,O.gM,U.jt,d.uU],styles:['table[_ngcontent-%COMP%]{width:100%}h3[_ngcontent-%COMP%]{font-size:23px}.status-icon[_ngcontent-%COMP%]{font-size:16px;display:flex;align-items:center;color:#0d8a0d}.status-icon-error[_ngcontent-%COMP%]{font-size:16px;display:flex;align-items:center;color:#d00808}.mdi-microsoft-excel[_ngcontent-%COMP%]:before{content:"\\f138f";font-size:14px}.mdi-file-excel[_ngcontent-%COMP%]:before{content:"\\f021b";font-size:16px} .mat-table .mat-row:nth-child(odd){background-color:#f8f8f8} .mat-table .mat-row:nth-child(even){background-color:#fff}.bg-secondary[_ngcontent-%COMP%]{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important;border-radius:3px;width:30px}']}),t})()},{path:"new",component:b},{path:":id/edit",component:b}];let ae=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[y.Bz.forChild(oe),y.Bz]}),t})();var ce=c(4540),le=c(79);let re=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.oAB({type:t}),t.\u0275inj=e.cJS({imports:[d.ez,ae,u._t,ce.m,l.UX,le.Tx,U.JB,C.A0]}),t})()}}]);