1"use strict";(self.webpackChunksite_camaras_novo=self.webpackChunksite_camaras_novo||[]).push([[985],{3985:(U,g,d)=>{d.r(g),d.d(g,{AgendaAdminModule:()=>y});var c=d(6814),m=d(874),p=d(5861),l=d(9347),n=d(9212),u=d(6896),s=d(95);function _(t,F){if(1&t&&(n.TgZ(0,"span"),n._UZ(1,"i",22),n._uU(2),n.qZA()),2&t){const o=n.oxw();n.xp6(2),n.hij("",o.eventAdd.id?"Salvar":"Adicionar"," ")}}function A(t,F){1&t&&(n.TgZ(0,"span"),n._UZ(1,"i",23),n._uU(2,"Salvando... "),n.qZA())}let v=(()=>{class t{constructor(o,a,e){if(this.dialog=o,this.agendaS=a,this.data=e,this.load=!1,this.errorForm=!1,this.eventAdd={date:"",init:null,end:null,text:""},this.eventAdd.date=e?.date||this.agendaS.formatDate(new Date),e?.id){this.eventAdd.id=e.id;const i=this.agendaS.agenda?.[this.eventAdd.date]?.[e.id];i&&(this.eventAdd={...i})}}ngOnInit(){}add(){var o=this;return(0,p.Z)(function*(){o.eventAdd.date&&o.eventAdd.init&&""!==o.eventAdd.text.trim()?(o.load=!0,yield o.agendaS.add(o.eventAdd),alert("Evento adicionado com sucesso!"),o.close()):o.errorForm=!0})()}close(){this.dialog.closeAll()}static#n=this.\u0275fac=function(a){return new(a||t)(n.Y36(l.uw),n.Y36(u.i),n.Y36(l.WI))};static#e=this.\u0275cmp=n.Xpm({type:t,selectors:[["app-form-agenda-admin"]],decls:44,vars:15,consts:[[1,"form-agenda"],[1,"form-agenda__header","d-flex","align-items-center","gap-3"],[1,"btn","btn-sm","btn-light","rounded-circle","p-0","form-agenda__back",3,"click"],[1,"fas","fa-angle-left"],[1,"form-agenda__title"],[1,"form-agenda__body"],[1,"form-agenda__field"],[1,"form-agenda__label"],[1,"fa-regular","fa-calendar","me-2"],["type","date",1,"form-control","form-agenda__input",3,"ngModel","ngModelChange"],[1,"invalid-feedback"],[1,"row","g-3"],[1,"col-6"],[1,"fa-regular","fa-clock","me-2"],["type","time",1,"form-control","form-agenda__input",3,"ngModel","ngModelChange"],[1,"form-agenda__optional"],[1,"fa-regular","fa-file-lines","me-2"],["placeholder","Descreva o evento...","rows","4",1,"form-control","form-agenda__input","form-agenda__textarea",3,"ngModel","ngModelChange"],[1,"form-agenda__footer"],[1,"btn","btn-light","form-agenda__btn-cancel",3,"disabled","click"],[1,"btn","form-agenda__btn-save",3,"disabled","click"],[4,"ngIf"],[1,"fas","fa-check","me-2"],[1,"fas","fa-circle-notch","fa-spin","me-2"]],template:function(a,e){1&a&&(n.TgZ(0,"div",0)(1,"div",1)(2,"button",2),n.NdJ("click",function(){return e.close()}),n._UZ(3,"i",3),n.qZA(),n.TgZ(4,"span",4),n._uU(5),n.qZA()(),n.TgZ(6,"div",5)(7,"div",6)(8,"label",7),n._UZ(9,"i",8),n._uU(10,"Data "),n.qZA(),n.TgZ(11,"input",9),n.NdJ("ngModelChange",function(r){return e.eventAdd.date=r}),n.qZA(),n.TgZ(12,"div",10),n._uU(13,"Campo obrigat\xf3rio"),n.qZA()(),n.TgZ(14,"div",11)(15,"div",12)(16,"div",6)(17,"label",7),n._UZ(18,"i",13),n._uU(19,"In\xedcio "),n.qZA(),n.TgZ(20,"input",14),n.NdJ("ngModelChange",function(r){return e.eventAdd.init=r}),n.qZA(),n.TgZ(21,"div",10),n._uU(22,"Campo obrigat\xf3rio"),n.qZA()()(),n.TgZ(23,"div",12)(24,"div",6)(25,"label",7),n._UZ(26,"i",13),n._uU(27,"T\xe9rmino "),n.TgZ(28,"span",15),n._uU(29,"opcional"),n.qZA()(),n.TgZ(30,"input",14),n.NdJ("ngModelChange",function(r){return e.eventAdd.end=r}),n.qZA()()()(),n.TgZ(31,"div",6)(32,"label",7),n._UZ(33,"i",16),n._uU(34,"Descri\xe7\xe3o "),n.qZA(),n.TgZ(35,"textarea",17),n.NdJ("ngModelChange",function(r){return e.eventAdd.text=r}),n.qZA(),n.TgZ(36,"div",10),n._uU(37,"Campo obrigat\xf3rio"),n.qZA()()(),n.TgZ(38,"div",18)(39,"button",19),n.NdJ("click",function(){return e.close()}),n._uU(40," Cancelar "),n.qZA(),n.TgZ(41,"button",20),n.NdJ("click",function(){return e.add()}),n.YNc(42,_,3,1,"span",21)(43,A,3,0,"span",21),n.qZA()()()),2&a&&(n.xp6(5),n.hij(" ",e.eventAdd.id?"Editar evento":"Novo evento"," "),n.xp6(6),n.ekj("is-invalid",e.errorForm&&!e.eventAdd.date),n.Q6J("ngModel",e.eventAdd.date),n.xp6(9),n.ekj("is-invalid",e.errorForm&&!e.eventAdd.init),n.Q6J("ngModel",e.eventAdd.init),n.xp6(10),n.Q6J("ngModel",e.eventAdd.end),n.xp6(5),n.ekj("is-invalid",e.errorForm&&!(null!=e.eventAdd.text&&e.eventAdd.text.trim())),n.Q6J("ngModel",e.eventAdd.text),n.xp6(4),n.Q6J("disabled",e.load),n.xp6(2),n.Q6J("disabled",e.load),n.xp6(1),n.Q6J("ngIf",!e.load),n.xp6(1),n.Q6J("ngIf",e.load))},dependencies:[c.O5,s.Fj,s.JJ,s.On],styles:[".form-agenda[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;background:#fff}.form-agenda__header[_ngcontent-%COMP%]{padding:16px 20px;
1border-bottom:1px solid #f0f0f0;flex-shrink:0}.form-agenda__back[_ngcontent-%COMP%]{width:32px;height:32px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.form-agenda__title[_ngcontent-%COMP%]{font-size:.95rem;font-weight:600;color:#212529}.form-agenda__body[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:24px 20px;display:flex;flex-direction:column;gap:20px}.form-agenda__field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.form-agenda__label[_ngcontent-%COMP%]{font-size:.75rem;font-weight:600;color:#6c757d;text-transform:uppercase;letter-spacing:.05em;margin:0}.form-agenda__optional[_ngcontent-%COMP%]{font-size:.65rem;font-weight:400;color:#adb5bd;text-transform:lowercase;letter-spacing:0;margin-left:4px}.form-agenda__input[_ngcontent-%COMP%]{border:1.5px solid #e9ecef;border-radius:8px;font-size:.9rem;color:#212529;padding:10px 12px;background-color:#f8f9fa;transition:border-color .2s,background-color .2s,box-shadow .2s}.form-agenda__input[_ngcontent-%COMP%]:focus{background-color:#fff;border-color:#adb5bd;box-shadow:0 0 0 3px #0000000a;outline:none}.form-agenda__input.is-invalid[_ngcontent-%COMP%]{border-color:#dc3545;background-color:#fff8f8}.form-agenda__textarea[_ngcontent-%COMP%]{resize:vertical;min-height:100px}.form-agenda__footer[_ngcontent-%COMP%]{padding:16px 20px;border-top:1px solid #f0f0f0;display:flex;justify-content:flex-end;gap:10px;flex-shrink:0}.form-agenda__btn-cancel[_ngcontent-%COMP%]{font-size:.85rem;font-weight:500;color:#6c757d;border-radius:8px;padding:8px 18px}.form-agenda__btn-save[_ngcontent-%COMP%]{font-size:.85rem;font-weight:600;color:#fff;background-color:#212529;border-radius:8px;padding:8px 22px;transition:background-color .2s,opacity .2s}.form-agenda__btn-save[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#343a40;color:#fff}.form-agenda__btn-save[_ngcontent-%COMP%]:disabled{opacity:.6}"]})}return t})();var h=d(5987),f=d(2296),b=d(1274);const x=[{path:"",component:(()=>{class t{constructor(o){this.dialog=o}ngOnInit(){}openDialog(o){this.dialog.open(v,{width:"90%",height:"90%",disableClose:!0,data:{id:o}}).afterClosed().subscribe(e=>{})}static#n=this.\u0275fac=function(a){return new(a||t)(n.Y36(l.uw))};static#e=this.\u0275cmp=n.Xpm({type:t,selectors:[["app-agenda-admin"]],decls:11,vars:1,consts:[["color","primary",1,"mat-toolbar-sm"],["mat-fab","",2,"opacity","0"],[1,"bg-warning",2,"margin","10px","padding","10px","border-radius","5px"],[1,"fas","fa-exclamation-triangle"],[3,"isAdmin"],["mat-mini-fab","",1,"bg-primary","text-white","add-button",3,"click"],[1,"fas","fa-plus"]],template:function(a,e){1&a&&(n.TgZ(0,"mat-toolbar",0)(1,"button",1),n._uU(2,"\xa0"),n.qZA(),n.TgZ(3,"span"),n._uU(4," Agenda "),n.qZA()(),n.TgZ(5,"div",2),n._UZ(6,"i",3),n._uU(7," Os eventos anteriores a 7 dias da data atual ser\xe3o apagados automaticamente pelo sistema, caso queira renovar o evento, voc\xea ter\xe1 6 dias ap\xf3s o vencimento do evento para atualizar a sua data.\n"),n.qZA(),n._UZ(8,"a
1pp-agenda",4),n.TgZ(9,"button",5),n.NdJ("click",function(){return e.openDialog()}),n._UZ(10,"i",6),n.qZA()),2&a&&(n.xp6(8),n.Q6J("isAdmin",!0))},dependencies:[h.L,f.nh,f.cs,b.Ye],styles:[".add-button[_ngcontent-%COMP%]{position:fixed;bottom:15px;right:15px;z-index:2}"]})}return t})()}];let Z=(()=>{class t{static#n=this.\u0275fac=function(a){return new(a||t)};static#e=this.\u0275mod=n.oAB({type:t});static#t=this.\u0275inj=n.cJS({imports:[m.Bz.forChild(x),m.Bz]})}return t})();var C=d(9142),M=d(2598),T=d(2898);let y=(()=>{class t{static#n=this.\u0275fac=function(a){return new(a||t)};static#e=this.\u0275mod=n.oAB({type:t});static#t=this.\u0275inj=n.cJS({imports:[c.ez,Z,T.D,M.K,C.m]})}return t})()}}]);
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.