PageSourceSearch

https://elenco.elencodigital.com.br/1703.8546ff51e673dddc.js

js elencodigital.com.br collected 2026-09-24 21:30:12 UTC 57,190 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkelenco=self.webpackChunkelenco||[]).push([[1703],{21703:(R,E,r)=>{r.r(E),r.d(E,{VideosRoutes:()=>Ne});var s=r(97582),o=r(19212),T=r(6593),l=r(90590),f=r(41449),C=r(86509),b=r(25368),A=r(58763),g=r(12051),m=r(60095),V=r(78645),P=r(1805),w=r(89597),U=r(75072),L=r(59773),Y=r(20304),u=r(37398),v=r(37282),p=r(96814),h=r(40193);function Z(t,i){1&t&&(o.TgZ(0,"div"),o._uU(1," O campo t\xedtulo \xe9 obrigat\xf3rio "),o.qZA())}function go(t,i){if(1&t&&(o.TgZ(0,"div",19),o.YNc(1,Z,2,0,"div"),o.qZA()),2&t){const e=o.oxw();o.xp6(1),o.um2(1,e.fg.get("titulo").errors.required?1:-1)}}function ho(t,i){1&t&&(o.TgZ(0,"div"),o._uU(1," O campo descri\xe7\xe3o \xe9 obrigat\xf3rio "),o.qZA())}function xo(t,i){if(1&t&&(o.TgZ(0,"div",19),o.YNc(1,ho,2,0,"div"),o.qZA()),2&t){const e=o.oxw();o.xp6(1),o.um2(1,e.fg.get("descricao").errors.required?1:-1)}}function Co(t,i){1&t&&(o.TgZ(0,"div"),o._uU(1," O campo link \xe9 obrigat\xf3rio "),o.qZA())}function bo(t,i){1&t&&(o.TgZ(0,"div"),o._uU(1," O link \xe9 inv\xe1lido "),o.qZA())}function To(t,i){if(1&t&&(o.TgZ(0,"div",19),o.YNc(1,Co,2,0,"div")(2,bo,2,0,"div"),o.qZA()),2&t){const e=o.oxw();o.xp6(1),o.um2(1,e.fg.get("link").errors.required?1:-1),o.xp6(1),o.um2(2,e.fg.get("link").errors.link_invalido?2:-1)}}function Zo(t,i){1&t&&(o.TgZ(0,"div",13)(1,"p",14),o._uU(2,"Exibir no Perfil P\xfablico?"),o.qZA(),o.TgZ(3,"div",20)(4,"label",16),o._uU(5,"Sim"),o.qZA(),o.TgZ(6,"label",16),o._uU(7,"N\xe3o"),o.qZA()()()),2&t&&(o.xp6(4),o.Q6J("btnRadio",!0),o.xp6(2),o.Q6J("btnRadio",!1))}function Ao(t,i){1&t&&(o.TgZ(0,"div"),o._uU(1," Preencha a senha do v\xeddeo privado "),o.qZA())}function Mo(t,i){1&t&&(o.TgZ(0,"div"),o._uU(1," A senha deve ter pelo menos 4 caracteres "),o.qZA())}function So(t,i){if(1&t&&(o.TgZ(0,"div",19),o.YNc(1,Ao,2,0,"div")(2,Mo,2,0,"div"),o.qZA()),2&t){const e=o.oxw(2);o.xp6(1),o.um2(1,e.fg.get("senha").errors.required?1:-1),o.xp6(1),o.um2(2,e.fg.get("senha").errors.minlength?2:-1)}}const j=t=>({"is-invalid":t});function Eo(t,i){if(1&t&&(o.TgZ(0,"div",21)(1,"label"),o._uU(2,"Senha:"),o.qZA(),o._UZ(3,"input",22),o.YNc(4,So,3,2,"div",9),o.qZA()),2&t){const e=o.oxw();o.xp6(3),o.Q6J("ngClass",o.VKq(2,j,e.fg.get("senha").errors&&(e.state.submitted||e.fg.get("senha").dirty))),o.xp6(1),o.um2(4,e.fg.get("senha").errors?4:-1)}}function Vo(t,i){if(1&t&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&t){const e=o.oxw();o.xp6(1),o.hij("",e.state.editMode?"Editando":"Adicionando"," V\xeddeo")}}function yo(t,i){if(1&t&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&t){const e=o.oxw();o.xp6(1),o.hij("",e.state.editMode?"Editar":"Adicionar"," V\xeddeo")}}let W=(()=>{var t;class i{constructor(n,a,d,c,M,_,y){this.modalRef=n,this.formBuilder=a,this.videoService=d,this.toastr=c,this.authService=M,this.elencoAssinaturaService=_,this.pessoaService=y,this.video=new C.u,this.active=!1,this.submitted=!1,this.state={isSaving:!1,isLoading:!1,submitted:!1,editMode:!1}}ngOnInit(){this.video.id&&(this.state.editMode=!0),this.fg=this.formBuilder.group({id:[this.video.id],titulo:[this.video.titulo,[m.kI.required,m.kI.maxLength(80)]],descricao:[this.video.descricao,[m.kI.maxLength(80)]],link:[this.video.link,[m.kI.required,t=>{let i=t.value;return i?new RegExp(/^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$/i).test(i)?null:{link_invalido:!0}:null}]],apresentacao:[this.video.apresentacao],privado:[!1],senha:[this.video.senha],publico:[this.video.publico],atuacao:[this.video.atuacao]}),this.fg.get("privado").valueChanges.subscribe(n=>{n?this.fg.get("senha").setValidators([m.kI.required,m.kI.minLength(4)]):(this.fg.get("senha").setValidators([]),this.fg.get("senha").setValue("")),this.fg.updateValueAndValidity()}),this.fg.get("privado").setValue(this.video.privado||!1),this.onClose=new V.x,this.isElenco=this.authService.isElenco,this.isElencoPremium$=this.elencoAssinaturaService.getIsSubscriptionActive(this.authService.getId()).pipe((0,L.R)(this.onClose)),this.perfilPublicoHabilitado$=this.pessoaService.getStatusPerfilPublico().pipe((0,L.R)(this.onClose),(0,Y.d)(1),(0,u.U)(n=>!!n))}onSubmit(){this.state.submitted=!0;let n=this.fg.getRawValue();if(this.active=!1,this.state.submitted=!0,this.fg.invalid)return this.toastr.error("Preencha todos os campos corretamente","Verifique os campos destacados em vermelho"),!1;this.state.isSaving=!0,(this.state.editMode?this.videoService.editar(this.authService.getId(),n):this.videoService.adicionar(this.authService.getId(),n)).subscribe(d=>{this.onClose.next(d),this.modalRef.hide(),this.state.isSaving=!1},d=>{this.state.isSaving=!1,this.toastr.error(d.error&&d.error.message)})}}return(t=i).\u0275fac=function(n){return new(n||t)(o.Y36(g.UZ),o.Y36(m.QS),o.Y36(b.k),o.Y36(A._W),o.Y36(P.e),o.Y36(w.H),o.Y36(U.N))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-modal--video"]],standalone:!0,features:[o.jDz],decls:39,vars:25,consts:[[1,"modal-header"],[1,"modal-title","pull-left"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[3,"formGroup","ngSubmit"],["f","ngForm"],[1,"row"],[1,"col-12","mb-3"],["type","text","formControlName","titulo","placeholder","Nome do trabalho ou natureza do registro","maxlength","80",1,"form-control",3,"ngClass"],["class","invali
1d-feedback"],["type","text","formControlName","descricao","placeholder","Detalhes da cena, do trabalho ou minuto em que voc\xea aparece","maxlength","80",1,"form-control",3,"ngClass"],["type","text","formControlName","link","placeholder","Copie e cole exatamente o link do v\xeddeo",1,"form-control",3,"ngClass"],["class","col-12 col-md-auto mb-3"],[1,"col-12","col-md-auto","mb-3"],[1,"mb-2"],["btnRadioGroup","","formControlName","privado",1,"btn-group"],["role","button",1,"btn","btn-outline-primary",3,"btnRadio"],["class","col-12 col-md-12 mb-3"],["type","submit",1,"btn","btn-outline-success","float-end",3,"disabled"],[1,"invalid-feedback"],["btnRadioGroup","","formControlName","publico",1,"btn-group"],[1,"col-12","col-md-12","mb-3"],["type","text","formControlName","senha","placeholder","Senha",1,"form-control",3,"ngClass"]],template:function(n,a){1&n&&(o.TgZ(0,"div",0)(1,"h4",1),o._uU(2),o.qZA(),o.TgZ(3,"button",2),o.NdJ("click",function(){return a.modalRef.hide()}),o.qZA()(),o.TgZ(4,"div",3)(5,"form",4,5),o.NdJ("ngSubmit",function(){return a.onSubmit()}),o.TgZ(7,"div",6)(8,"div",7)(9,"label"),o._uU(10,"*T\xedtulo:"),o.qZA(),o._UZ(11,"input",8),o.YNc(12,go,2,1,"div",9),o.qZA(),o.TgZ(13,"div",7)(14,"app-label"),o._uU(15,"Descri\xe7\xe3o:"),o.qZA(),o._UZ(16,"input",10),o.YNc(17,xo,2,1,"div",9),o.qZA(),o.TgZ(18,"div",7)(19,"label"),o._uU(20,"*Link do v\xeddeo:"),o.qZA(),o._UZ(21,"input",11),o.YNc(22,To,3,2,"div",9),o.qZA(),o.YNc(23,Zo,8,2,"div",12),o.ALo(24,"async"),o.ALo(25,"async"),o.TgZ(26,"div",13)(27,"p",14),o._uU(28,"Possui senha?"),o.qZA(),o.TgZ(29,"div",15)(30,"label",16),o._uU(31,"Sim"),o.qZA(),o.TgZ(32,"label",16),o._uU(33,"N\xe3o"),o.qZA()()(),o.YNc(34,Eo,5,4,"div",17),o.TgZ(35,"div",7)(36,"button",18),o.YNc(37,Vo,2,1,"span")(38,yo,2,1,"span"),o.qZA()()()()()),2&n&&(o.xp6(2),o.hij(" ",a.state.editMode?"Editar":"Adicionar"," LINKS de V\xeddeo "),o.xp6(3),o.Q6J("formGroup",a.fg),o.xp6(6),o.Q6J("ngClass",o.VKq(19,j,a.fg.get("titulo").errors&&(a.state.submitted||a.fg.get("titulo").dirty))),o.xp6(1),o.um2(12,a.fg.get("titulo").errors?12:-1),o.xp6(4),o.Q6J("ngClass",o.VKq(21,j,a.fg.get("descricao").errors&&(a.state.submitted||a.fg.get("descricao").dirty))),o.xp6(1),o.um2(17,a.fg.get("descricao").errors?17:-1),o.xp6(4),o.Q6J("ngClass",o.VKq(23,j,a.fg.get("link").errors&&(a.state.submitted||a.fg.get("link").dirty))),o.xp6(1),o.um2(22,a.fg.get("link").errors?22:-1),o.xp6(1),o.um2(23,a.isElenco&&o.lcZ(24,15,a.isElencoPremium$)&&o.lcZ(25,17,a.perfilPublicoHabilitado$)?23:-1),o.xp6(7),o.Q6J("btnRadio",!0),o.xp6(2),o.Q6J("btnRadio",!1),o.xp6(2),o.um2(34,a.fg.get("privado").value?34:-1),o.xp6(2),o.Q6J("disabled",a.state.isSaving),o.xp6(1),o.um2(37,a.state.isSaving?37:-1),o.xp6(1),o.um2(38,a.state.isSaving?-1:38))},dependencies:[m.u5,m._Y,m.Fj,m.JJ,m.JL,m.nD,m.UX,m.sg,m.u,p.mk,v.Fq,v.lz,v.pj,p.Ov,h._]}),i})(),Po=(()=>{var t;class i{constructor(n,a){this.modalRef=n,this.domSanitizer=a,this.video=new C.u}ngOnInit(){this.iframe_html=this.domSanitizer.bypassSecurityTrustHtml(null!=this.video.linkCrawler&&""!=this.video.linkCrawler?'<video width="100%" height="500" autoplay controls><source src="'+this.video.linkCrawler+'" type="video/mp4"></video>':this.video.embed)}}return(t=i).\u0275fac=function(n){return new(n||t)(o.Y36(g.UZ),o.Y36(T.H7))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-modal-video-player"]],standalone:!0,features:[o.jDz],decls:1,vars:1,consts:[[1,"modal-body",3,"innerHtml"]],template:function(n,a){1&n&&o._UZ(0,"div",0),2&n&&o.Q6J("innerHtml",a.iframe_html,o.oJD)},styles:[".modal-body[_ngcontent-%COMP%]{padding:0;height:500px;background:black}.modal-body[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%!important;height:100%!important}  iframe{width:100%;height:100%}"]}),i})();var X=r(22096),oo=r(96244),eo=r(26306),H=r(64190),x=r(86825),Q=r(91641),N=r(34423),to=r(16672),io=r(50596);function wo(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"div",4),o.NdJ("click",function(){const d=o.CHM(e).$implicit,c=o.oxw();return o.KtG(c.selecionar(d))}),o.TgZ(1,"figure",5),o._UZ(2,"img",6),o.qZA(),o.TgZ(3,"div")(4,"strong"),o._uU(5),o.qZA(),o.TgZ(6,"p",7),o._uU(7),o.qZA()()()}if(2&t){const e=i.$implicit;o.xp6(2),o.Q6J("src",e.videoThumb,o.LSH),o.xp6(3),o.Oqu(e.titulo),o.xp6(2),o.Oqu(e.descricao)}}let no=(()=>{var t;class i{constructor(n,a,d){this._bsModalRef=n,this.videoService=a,this.authService=d,this.showNoButton=!1}ngOnInit(){this.onClose=new V.x,this.videos$=this.videoService.get(this.authService.getId()).pipe((0,u.U)(n=>n.data.filter(a=>a.elenco_pode_ver)))}selecionar(n){this.onClose.next(n),this._bsModalRef.hide()}onCancel(){this.onClose.next(null),this._bsModalRef.hide()}}return(t=i).\u0275fac=function(n){return new(n||t)(o.Y36(g.UZ),o.Y36(b.k),o.Y36(P.e))},t.\u0275cmp=o.Xpm({type:t,selectors:[["app-modal-selecionar-video-do-acervo"]],standalone:!0,features:[o.jDz],decls:8,vars:2,consts:[[1,"modal-header"],[1,"modal-title","pull-left"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[1,"video","d-flex","gap-3","mb-3","rounded","border","p-3",3,"click"],[1,"foto","mb-0"],["alt","",3,"src"],[1,"text-muted","mb-0"],["class","video d-flex gap-3 mb-3 rounded border p-3"]],template:function(n,a){1&n&&(o.TgZ(0,"div",0)(1,"h4",1),o._uU(2,"Escolha um v\xeddeo"),o.qZA(),o.TgZ(3,"button",2),o.NdJ("click",function(){return a.onCancel()}),o.qZA()(),o.TgZ(4,"div",3),o.SjG(5,wo,8,3,"div",8,o.x6l),o.ALo(7,"async"),o.qZA()),2&n&&(o.xp6(5),o.wJu(o.lcZ(7,0,a.videos$)))},dependencies:[p.Ov],styles:[".modal-body[_ngcontent-%COMP%]{max-height:calc(100vh - 85px);overflow:scroll}.video[_ngcontent-%COMP%]{background:#ffffff;cursor:pointer}.video[_ngcontent-%COMP%]:hover{background:#f8f6f9}.video[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:140px;height:80px;object-fit:cover;object-position:center}"]}),i})();var B=r(51791),ao=r(17549),Oo=r(5227),Do=r(93329),ko=r(74380),F=r(40581),z=r(62816),so={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(i){return i<0?Math.ceil(i):Math.floor(i)}},No="trunc";var Jo=r(98555),ro=r(48292),co=r(45351),K=43200;function Ro(t,i,e){var n,a;(0,z.Z)(2,arguments);var d=(0,Oo.j)(),c=null!==(n=null!==(a=e?.locale)&&void 0!==a?a:d.locale)&&void 0!==n?n:Jo.Z;
1if(!c.formatDistance)throw new RangeError("locale must contain formatDistance property");var M=(0,Do.Z)(t,i);if(isNaN(M))throw new RangeError("Invalid time value");var y,D,_=(0,ro.Z)(function Lo(t){return(0,ro.Z)({},t)}(e),{addSuffix:!!e?.addSuffix,comparison:M});M>0?(y=(0,F.Z)(i),D=(0,F.Z)(t)):(y=(0,F.Z)(t),D=(0,F.Z)(i));var J,O=function qo(t,i,e){(0,z.Z)(2,arguments);var n=function Uo(t,i){return(0,z.Z)(2,arguments),(0,F.Z)(t).getTime()-(0,F.Z)(i).getTime()}(t,i)/1e3;return function Fo(t){return t?so[t]:so[No]}(e?.roundingMethod)(n)}(D,y),G=((0,co.Z)(D)-(0,co.Z)(y))/1e3,S=Math.round((O-G)/60);if(S<2)return null!=e&&e.includeSeconds?O<5?c.formatDistance("lessThanXSeconds",5,_):O<10?c.formatDistance("lessThanXSeconds",10,_):O<20?c.formatDistance("lessThanXSeconds",20,_):O<40?c.formatDistance("halfAMinute",0,_):c.formatDistance(O<60?"lessThanXMinutes":"xMinutes",1,_):0===S?c.formatDistance("lessThanXMinutes",1,_):c.formatDistance("xMinutes",S,_);if(S<45)return c.formatDistance("xMinutes",S,_);if(S<90)return c.formatDistance("aboutXHours",1,_);if(S<1440){var Fe=Math.round(S/60);return c.formatDistance("aboutXHours",Fe,_)}if(S<2520)return c.formatDistance("xDays",1,_);if(S<K){var qe=Math.round(S/1440);return c.formatDistance("xDays",qe,_)}if(S<86400)return J=Math.round(S/K),c.formatDistance("aboutXMonths",J,_);if((J=(0,ko.Z)(D,y))<12){var Je=Math.round(S/K);return c.formatDistance("xMonths",Je,_)}var fo=J%12,$=Math.floor(J/12);return fo<3?c.formatDistance("aboutXYears",$,_):fo<9?c.formatDistance("overXYears",$,_):c.formatDistance("almostXYears",$+1,_)}var q,jo=r(55086),Bo=r(18446),po=r(30641),uo=r(46458),mo=r(2268),_o=r(62130);function zo(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"button",15),o.NdJ("click",function(){o.CHM(e);const a=o.oxw();return o.KtG(a.adicionarVideo())}),o._uU(1," Adicionar V\xeddeo "),o.qZA()}}function Qo(t,i){if(1&t&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&t){const e=o.oxw();o.xp6(1),o.AsE(" Quantidades: LIMITE: ",e.limiteDeVideos," / ATUAL: ",e.totalElencoPodeVer,"* ")}}function Ko(t,i){1&t&&(o.TgZ(0,"span"),o._uU(1," Clique e arraste para alterar a ordem de exibi\xe7\xe3o"),o.qZA())}function Go(t,i){if(1&t&&(o.TgZ(0,"span"),o._uU(1,"(ou "),o.TgZ(2,"a",18),o._uU(3,"assine Premium"),o.qZA(),o._uU(4,")"),o.qZA()),2&t){const e=o.oxw(2);o.xp6(2),o.MGl("routerLink","/elenco/",e.id,"/elenco-premium")}}function $o(t,i){if(1&t&&(o.TgZ(0,"div",16)(1,"strong",17),o._uU(2,"O limite de v\xeddeos do elenco foi atingido!"),o.qZA(),o._uU(3," (*) Exclua antigos para incluir novos "),o.YNc(4,Go,5,1,"span"),o.ALo(5,"async"),o.qZA()),2&t){const e=o.oxw();o.xp6(4),o.um2(4,o.lcZ(5,1,e.isElencoPremium$)?-1:4)}}function Wo(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"div",20)(1,"div",21)(2,"strong",22),o._UZ(3,"fa-icon",8),o._uU(4," V\xeddeo de Apresenta\xe7\xe3o"),o.qZA(),o.TgZ(5,"div",23)(6,"div"),o._UZ(7,"img",24),o.qZA(),o.TgZ(8,"div",25)(9,"small",26),o._uU(10,"T\xedtulo do V\xeddeo"),o.qZA(),o.TgZ(11,"strong"),o._uU(12),o.qZA()(),o.TgZ(13,"div",27)(14,"button",28),o.NdJ("click",function(){o.CHM(e);const a=o.oxw(2);return o.KtG(a.escolherVideoPadrao())}),o._uU(15," Escolher Outro "),o.qZA(),o.TgZ(16,"button",29),o.NdJ("click",function(){o.CHM(e);const a=o.oxw(2);return o.KtG(a.removerVideoPadrao(a.videoPadrao))}),o._uU(17," Remover "),o.qZA()()()()()}if(2&t){const e=o.oxw(2);o.xp6(3),o.Q6J("icon",e.faStar),o.xp6(4),o.Q6J("src",e.videoPadrao.videoThumbSanitized,o.LSH),o.xp6(5),o.Oqu(e.videoPadrao.titulo)}}function Xo(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"div",20)(1,"div",25)(2,"strong"),o._UZ(3,"fa-icon",8),o._uU(4," V\xeddeo de Apresenta\xe7\xe3o"),o.qZA(),o.TgZ(5,"p",30),o._uU(6," Escolha um v\xeddeo para se apresentar aos diretores e ag\xeancias. "),o.TgZ(7,"a",31),o.NdJ("click",function(a){o.CHM(e);const d=o.oxw(2);return o.KtG(d.videoApresentacaoHelper(a))}),o._uU(8," Saiba Mais "),o.qZA()()(),o.TgZ(9,"div",32)(10,"button",33),o.NdJ("click",function(){o.CHM(e);const a=o.oxw(2);return o.KtG(a.escolherVideoPadrao())}),o._uU(11," Escolher "),o.qZA()()()}if(2&t){const e=o.oxw(2);o.xp6(3),o.Q6J("icon",e.faStar)}}function oe(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"div",20)(1,"div",21)(2,"strong",22),o._UZ(3,"fa-icon",8),o._uU(4," V\xeddeo de Atua\xe7\xe3o"),o.qZA(),o.TgZ(5,"div",23)(6,"div"),o._UZ(7,"img",24),o.qZA(),o.TgZ(8,"div",25)(9,"small",26),o._uU(10,"T\xedtulo do V\xeddeo"),o.qZA(),o.TgZ(11,"strong"),o._uU(12),o.qZA()(),o.TgZ(13,"div",27)(14,"button",28),o.NdJ("click",function(){o.CHM(e);const a=o.oxw(2);return o.KtG(a.escolherVideoDeAtuacao())}),o._uU(15," Escolher Outro "),o.qZA(),o.TgZ(16,"button",29),o.NdJ("click",function(){o.CHM(e);const a=o.oxw(2);return o.KtG(a.removerVideoDeAtuacao(a.videoAtuacao))}),o._uU(17," Remover "),o.qZA()()()()()}if(2&t){const e=o.oxw(2);o.xp6(3),o.Q6J("icon",e.iconeAtuacao),o.xp6(4),o.Q6J("src",e.videoAtuacao.videoThumbSanitized,o.LSH),o.xp6(5),o.Oqu(e.videoAtuacao.titulo)}}function ee(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"div",34)(1,"div",25)(2,"strong"),o._UZ(3,"fa-icon",8),o._uU(4," V\xeddeo de Atua\xe7\xe3o"),o.qZA(),o.TgZ(5,"p",30),o._uU(6," Destaque um v\xeddeo de conte\xfado art\xedstico, atua\xe7\xe3o ou em cena. "),o.TgZ(7,"a",31),o.NdJ("click",function(a){o.CHM(e);const d=o.oxw(2);return o.KtG(d.videoAtuacaoHelper(a))}),o._uU(8," Saiba Mais "),o.qZA()()(),o.TgZ(9,"div",32)(10,"button",33),o.NdJ("click",function(){o.CHM(e);const a=o.oxw(2);return o.KtG(a.escolherVideoDeAtuacao())}),o._uU(11," Escolher "),o.qZA()()()}if(2&t){const e=o.oxw(2);o.xp6(3),o.Q6J("icon",e.iconeAtuacao)}}function te(t,i){if(1&t&&o.YNc(0,Wo,18,3,"div",19)(1,Xo,12,1)(2,oe,18,3,"div",19)(3,ee,12,1),2&t){const e=o.oxw();
1o.um2(0,e.videoPadrao?0:1),o.xp6(2),o.um2(2,e.videoAtuacao?2:3)}}function ie(t,i){1&t&&o._UZ(0,"img",50)}function ne(t,i){1&t&&(o.TgZ(0,"span",51),o._uU(1," V\xeddeo de Apresenta\xe7\xe3o "),o.qZA())}function ae(t,i){1&t&&(o.TgZ(0,"span",52),o._uU(1," V\xeddeo de Atua\xe7\xe3o "),o.qZA())}const se=t=>({video:t}),vo=(t,i)=>({"text-success":t,"text-danger":i});function re(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"div")(1,"a",53),o.NdJ("click",function(){o.CHM(e);const a=o.oxw().$implicit,d=o.oxw(2);return o.KtG(d.alterarPrivacidade(a))}),o.TgZ(2,"small"),o._UZ(3,"fa-icon",54),o.TgZ(4,"span",55),o._uU(5),o.qZA()()()()}if(2&t){const e=o.oxw().$implicit,n=o.oxw(2),a=o.MAs(25);o.xp6(1),o.Q6J("popover",a)("popoverContext",o.VKq(7,se,e))("outsideClick",!0),o.xp6(2),o.Q6J("icon",e.publico?n.faVisivelNoPerfilPublico:n.faNaoVisivelNoPerfilPublico)("ngClass",o.WLB(9,vo,e.publico,!e.publico)),o.xp6(1),o.Q6J("ngClass",o.WLB(12,vo,e.publico,!e.publico)),o.xp6(1),o.hij(" ",e.publico?"P\xfablico":"Privado","")}}function de(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"div",37),o.NdJ("cdkDropListEntered",function(a){o.CHM(e);const d=o.oxw(2);return o.KtG(d.onDropListEntered(a))})("cdkDropListDropped",function(){o.CHM(e);const a=o.oxw(2);return o.KtG(a.onDropListDropped())}),o.TgZ(1,"div",38)(2,"div",39),o.NdJ("click",function(){const d=o.CHM(e).$implicit,c=o.oxw(2);return o.KtG(c.playVideo(d))}),o.TgZ(3,"div",40)(4,"button",41),o.NdJ("click",function(a){const c=o.CHM(e).$implicit;return o.oxw(2).deletarVideo(c),o.KtG(a.stopPropagation())}),o._UZ(5,"fa-icon",8),o.qZA(),o.TgZ(6,"button",42),o.NdJ("click",function(a){const c=o.CHM(e).$implicit;return o.oxw(2).editarVideo(c),o.KtG(a.stopPropagation())}),o._UZ(7,"fa-icon",8),o.qZA()(),o.TgZ(8,"button",43),o._UZ(9,"fa-icon",8),o.qZA(),o.YNc(10,ie,1,0,"img",44),o.qZA(),o.TgZ(11,"div",45),o._uU(12),o.qZA(),o.TgZ(13,"div",46),o._uU(14),o.qZA(),o.TgZ(15,"div",47),o.YNc(16,ne,2,0,"span",48)(17,ae,2,0,"span",49),o.qZA(),o.YNc(18,re,6,15,"div"),o.ALo(19,"async"),o.ALo(20,"async"),o.qZA()()}if(2&t){const e=i.$implicit,n=o.oxw(2);o.xp6(2),o.Udp("background-image",e.videoThumbSanitized),o.xp6(3),o.Q6J("icon",n.faTrash),o.xp6(2),o.Q6J("icon",n.faEdit),o.xp6(2),o.Q6J("icon",n.faArrowsAlt),o.xp6(1),o.um2(10,"outros"!==e.servico?10:-1),o.xp6(2),o.Oqu(e.titulo),o.xp6(2),o.Oqu(e.descricao),o.xp6(2),o.um2(16,e.apresentacao?16:-1),o.xp6(1),o.um2(17,e.atuacao?17:-1),o.xp6(1),o.um2(18,o.lcZ(19,11,n.isElencoPremium$)&&o.lcZ(20,13,n.perfilPublicoHabilitado$)?18:-1)}}function ce(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"div",35)(1,"div",36),o.NdJ("cdkDropListEntered",function(a){o.CHM(e);const d=o.oxw();return o.KtG(d.onDropListEntered(a))})("cdkDropListDropped",function(){o.CHM(e);const a=o.oxw();return o.KtG(a.onDropListDropped())}),o.qZA(),o.SjG(2,de,21,15,"div",56,o.QCX().trackById),o.qZA()}if(2&t){const e=o.oxw();o.xp6(1),o.Q6J("cdkDropListAutoScrollStep",10),o.xp6(1),o.wJu(e.videos)}}function le(t,i){if(1&t&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&t){const e=o.oxw(2);o.xp6(1),o.hij("Removendo ",e.videosMarcadosCount()," V\xeddeos")}}function pe(t,i){if(1&t&&(o.TgZ(0,"span"),o._uU(1),o.qZA()),2&t){const e=o.oxw(2);o.xp6(1),o.hij("Remover ",e.videosMarcadosCount()," V\xeddeos")}}function ue(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"div",57)(1,"button",58),o.NdJ("click",function(){o.CHM(e);const a=o.oxw();return o.KtG(a.removerMarcadosDefinitivo())}),o.YNc(2,le,2,1,"span")(3,pe,2,1),o.qZA(),o.TgZ(4,"button",59),o.NdJ("click",function(){o.CHM(e);const a=o.oxw();return o.KtG(a.desmarcarTodos())}),o._uU(5,"Cancelar"),o.qZA()()}if(2&t){const e=o.oxw();o.xp6(1),o.Q6J("disabled",e.isRemoving()),o.xp6(1),o.um2(2,e.isRemoving()?2:3)}}function me(t,i){1&t&&o._UZ(0,"hr",66)}function _e(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"button",67),o.NdJ("click",function(){o.CHM(e);const a=o.oxw(3);return o.KtG(a.exibirTodosOsVideos=!a.exibirTodosOsVideos)}),o._uU(1),o.TgZ(2,"span",68),o._uU(3),o.qZA()()}if(2&t){const e=o.oxw().$implicit,n=o.oxw(2);o.xp6(1),o.lnq(" ",n.exibirTodosOsVideos?"Esconder":"Exibir"," ",e.titulo," (",e.videos.length,") "),o.xp6(2),o.Oqu(n.exibirTodosOsVideos?"keyboard_arrow_up":"keyboard_arrow_down")}}function ve(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"div",69)(1,"label",70)(2,"input",71,72),o.NdJ("change",function(){o.CHM(e);const a=o.MAs(3),d=o.oxw().$implicit,c=o.oxw(2);return o.KtG(c.marcarAlbum(d,a.checked))}),o.qZA(),o._uU(4),o.qZA()()}if(2&t){const e=o.MAs(3),n=o.oxw().$implicit;o.xp6(4),o.AsE(" ",e.checked?"Desmarcar ":"Marcar"," ",n.titulo,"")}}function fe(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"button",41),o.NdJ("click",function(a){o.CHM(e);const d=o.oxw().$implicit;return o.oxw(4).deletarVideo(d),o.KtG(a.stopPropagation())}),o._UZ(1,"fa-icon",8),o.qZA()}if(2&t){const e=o.oxw(5);o.xp6(1),o.Q6J("icon",e.faTrash)}}function ge(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"button",83),o.NdJ("click",function(a){o.CHM(e);const d=o.oxw(2).$implicit;return o.oxw(4).desmarcar(d),o.KtG(a.stopPropagation())}),o.TgZ(1,"span",84),o._uU(2,"check_circle"),o.qZA()()}}function he(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"button",85),o.NdJ("click",function(a){o.CHM(e);const d=o.oxw(2).$implicit;return o.oxw(4).marcar(d),o.KtG(a.stopPropagation())}),o.TgZ(1,"span",86),o._uU(2,"check_circle"),o.qZA()()}}function xe(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"button",81),o.NdJ("click",function(a){o.CHM(e);const d=o.oxw().$implicit;return o.oxw(4).deletarVideoDefinitivo(d),o.KtG(a.stopPropagation())}),o._UZ(1,"fa-icon",8),o.qZA(),o.YNc(2,ge,3,0,"button",82)(3,he,3,0)}if(2&t){const e=o.oxw().$implicit,n=o.oxw(4);o.xp6(1),o.Q6J("icon",n.faTimes),o.xp6(1),o.um2(2,n.videosMarcados()[e.id]?2:3)}}function Ce(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"button",87),o.NdJ("click",function(a){o.CHM(e);const d=o.oxw().$implicit;return o.oxw(4).voltarParaOAcervo(d),o.KtG(a.stopPropagation())}),o._UZ(1,"fa-icon",8),o.qZA()}if(2&t){const e=o.oxw(5);o.xp6(1),o.Q6J("icon",e.faPlus)}}function be(t,i){1&t&&(o.TgZ(0,"span",51),o._uU(1," V\xeddeo de Apresenta\xe7\xe3o "),o.qZA())}function Te(t,i){1&t&&(o.TgZ(0,"span",52),o._uU(1," V\xeddeo de Atua\xe7\xe3o "),o.qZA())}function Ze(t,i){if(1&t&&o._UZ(0,"fa-icon",93),2&t){const e=o.oxw(6);o.Q6J("icon",e.faEye)}}function Ae(t,i){if(1&t&&o._UZ(0,"fa-icon",94),2&t){const e=o.oxw(6);o.Q6J("icon",e.faEyeSlash)}}
1function Me(t,i){if(1&t&&(o.TgZ(0,"div",88)(1,"div",89)(2,"small"),o.YNc(3,Ze,1,1,"fa-icon",90)(4,Ae,1,1,"fa-icon",91),o.qZA()(),o.TgZ(5,"small",92),o._uU(6),o.qZA()()),2&t){const e=o.oxw().$implicit;o.xp6(3),o.um2(3,e.elenco_pode_ver?3:-1),o.xp6(1),o.um2(4,e.elenco_pode_ver?-1:4),o.xp6(2),o.Oqu(e.dataFromNow)}}function Se(t,i){if(1&t&&(o.TgZ(0,"small",95),o._uU(1),o.qZA()),2&t){const e=o.oxw().$implicit;let n;o.xp6(1),o.hij(" Por: ",null!==(n=null==e.empresa_responsavel?null:e.empresa_responsavel.nome)&&void 0!==n?n:"Pr\xf3prio Elenco"," ")}}const Ee=(t,i)=>({"video-wrapper--apresentacao":t,item__marcado:i}),Ve=t=>({backgroundImage:t});function ye(t,i){if(1&t){const e=o.EpF();o.TgZ(0,"div")(1,"div",74)(2,"div",75),o.NdJ("click",function(a){const c=o.CHM(e).$implicit;return o.oxw(4).playVideo(c),o.KtG(a.stopPropagation())}),o._UZ(3,"div",76),o.TgZ(4,"div",40),o.YNc(5,fe,2,1,"button",77)(6,xe,4,2)(7,Ce,2,1,"button",78),o.TgZ(8,"button",42),o.NdJ("click",function(a){const c=o.CHM(e).$implicit;return o.oxw(4).editarVideo(c),o.KtG(a.stopPropagation())}),o._UZ(9,"fa-icon",8),o.qZA()()(),o.TgZ(10,"div",45),o._uU(11),o.qZA(),o.TgZ(12,"div",46),o._uU(13),o.qZA(),o.TgZ(14,"div",47),o.YNc(15,be,2,0,"span",48)(16,Te,2,0,"span",49),o.qZA(),o.YNc(17,Me,7,3,"div",79)(18,Se,2,1,"small",80),o.qZA()()}if(2&t){const e=i.$implicit,n=o.oxw(4);o.xp6(2),o.Q6J("ngClass",o.WLB(16,Ee,e.apresentacao,n.videosMarcados()[e.id])),o.xp6(1),o.Gre("video-embed video--",e.servico,""),o.Q6J("innerHTML",e.embedSanitized,o.oJD)("ngStyle",o.VKq(19,Ve,"outros"==e.servico?"url("+e.videoThumb+")":"")),o.xp6(2),o.um2(5,n.isAdmin?-1:5),o.xp6(1),o.um2(6,n.isAdmin?6:-1),o.xp6(1),o.um2(7,n.isAdmin&&!e.elenco_pode_ver?7:-1),o.xp6(2),o.Q6J("icon",n.faEdit),o.xp6(2),o.Oqu(e.titulo),o.xp6(2),o.Oqu(e.descricao),o.xp6(2),o.um2(15,e.apresentacao?15:-1),o.xp6(1),o.um2(16,e.atuacao?16:-1),o.xp6(1),o.um2(17,n.isAdmin||n.isAssinanteDashboard?17:-1),o.xp6(1),o.um2(18,n.isAdmin?18:-1)}}function Pe(t,i){if(1&t&&(o.TgZ(0,"div",73),o.SjG(1,ye,19,21,"div",null,o.QCX().trackById),o.qZA()),2&t){const e=o.oxw().$implicit;o.xp6(1),o.wJu(null==e?null:e.videos)}}function we(t,i){if(1&t&&(o.YNc(0,me,1,0,"hr",60),o.TgZ(1,"div",61)(2,"div",62),o.YNc(3,_e,4,4,"button",63)(4,ve,5,2,"div",64),o.qZA(),o.YNc(5,Pe,3,0,"div",65),o.qZA()),2&t){const e=i.$implicit,n=i.$index,a=o.oxw(2);o.um2(0,n>0?0:-1),o.xp6(3),o.um2(3,e.elenco_pode_ver?-1:3),o.xp6(1),o.um2(4,a.isAdmin?4:-1),o.xp6(1),o.um2(5,e.elenco_pode_ver||a.exibirTodosOsVideos?5:-1)}}function Oe(t,i){if(1&t&&o.SjG(0,we,6,4,"div",96,o.x6l),2&t){const e=o.oxw();o.wJu(e.videosAgrupados)}}function De(t,i){if(1&t&&(o.TgZ(0,"p",97),o._uU(1),o.qZA()),2&t){const e=i.video;o.xp6(1),o.hij(" ",e.publico?"Vis\xedvel no perfil p\xfablico.":"Somente voc\xea, os diretores de elenco e suas ag\xeancias podem ver este v\xeddeo."," ")}}let I=((q=class{constructor(i,e,n,a,d,c,M,_,y,D,O){this.videoService=i,this.toastr=e,this.sanitizer=n,this.modalService=a,this.route=d,this.router=c,this.authService=M,this.viewportRuler=_,this.elencoAssinaturaService=y,this.pessoaService=D,this.privacidadeService=O,this.videos=[],this.faVideo=l.IyC,this.faTrash=l.$aW,this.faStar=l.Tab,this.faArrowsAlt=l.Qg3,this.faTimes=l.NBC,this.faPlus=l.r8p,this.faEye=f.Mdf,this.faEyeSlash=f.Aq,this.faVisivelNoPerfilPublico=l._1N,this.faNaoVisivelNoPerfilPublico=l.byT,this.iconeAtuacao=l.Zl2,this.faChevronUp=l.mTx,this.faChevronDown=l.ptq,this.faEdit=l.Xcf,this.exibirTodosOsVideos=!1,this.faQuestionCircle=l.Fuz,this.limiteDeVideos=0,this.videosMarcados=(0,o.tdS)({}),this.target=null,this.source=null,this.dragRef=null,this.boxWidth=300,this.boxHeight=200,this.state={isSaving:!1},this.videosAgrupados=[],this.videosMarcadosCount=(0,o.Flj)(()=>Object.values(this.videosMarcados()).filter(G=>!!G).length),this.isRemoving=(0,o.tdS)(!1),this.isElenco=this.authService.isElenco,this.isAdmin=this.authService.isAdmin,this.isAssinanteDashboard=this.authService.isAssinanteDashboard}ngOnInit(){this.isElencoPremium$=this.elencoAssinaturaService.getIsSubscriptionActive(this.authService.getId()).pipe((0,B.t)(this)),this.perfilPublicoHabilitado$=this.pessoaService.getStatusPerfilPublico().pipe((0,B.t)(this),(0,Y.d)(1),(0,u.U)(i=>
1!!i)),this.getVideos(),this.id=this.authService.getId()}ngAfterViewInit(){this.initPlaceholderDragDrop()}initPlaceholderDragDrop(){if(!this.placeholder)return;const i=this.placeholder.element.nativeElement;i.style.display="none",i.parentNode.removeChild(i)}sanitized(i){return this.sanitizer.bypassSecurityTrustStyle(`url(${i})`)}getVideos(){this.videoSubscription&&this.videoSubscription.unsubscribe(),this.videoSubscription=this.videoService.get(this.authService.getId()).pipe((0,u.U)(i=>({...i,data:i.data.map(e=>(e.dataFromNow=function Yo(t,i){return(0,z.Z)(1,arguments),Ro(t,Date.now(),i)}((0,jo.Z)(e.data)),e.videoThumbSanitized=this.sanitized(e.videoThumb),e.embedSanitized=this.sanitizer.bypassSecurityTrustHtml(e.embed),e))}))).subscribe(i=>{this.getLimites(),this.videos=i.data,this.videoPadrao=i.padrao?{...i.padrao,videoThumbSanitized:this.sanitizer.bypassSecurityTrustUrl(i.padrao.thumb)}:null,this.videoAtuacao=i.atuacao?{...i.atuacao,videoThumbSanitized:this.sanitizer.bypassSecurityTrustUrl(i.atuacao.thumb)}:null;const e=i.data.reduce((n,a)=>{const d=a.album.id;return d in n||(n[d]={...a.album,videos:[]}),n[a.album.id].videos.push(a),n},{});this.videosAgrupados=Object.values(e)})}getLimites(){this.videoService.getLimites(this.authService.getId()).pipe((0,B.t)(this)).subscribe(i=>{this.limiteDeVideos=i.limite,this.totalElencoPodeVer=i.total_elenco_pode_ver})}adicionarVideo(){this.modalRef=this.modalService.show(W,{class:"modal-md",backdrop:"static"}),this.modalRef.content.onClose.subscribe(i=>{})}editarVideo(i){this.modalRef=this.modalService.show(W,{initialState:{video:i},class:"modal-md",backdrop:"static"}),this.modalRef.content.onClose.subscribe(e=>{})}deletarVideoDefinitivo(i){this.videoService.deleteDefinitivo(i).subscribe(e=>{this.videos=this.videos.filter(n=>
1i.id!=n.id)})}deletarVideo(i){this.modalRef=this.modalService.show(oo.b,{animated:!1}),this.modalRef.content.showConfirmationModal({title:"Aten\xe7\xe3o! Remover Link de V\xeddeo?",body:`O v\xeddeo <em>${i.titulo}</em> ser\xe1 removido. Consulte a <a href="https://ajuda.elencodigital.com.br" rel="noopener noreferrer" target="_BLANK">Central de Ajuda</a> do nosso site sobre as regras de visualiza\xe7\xe3o, por tipo de usu\xe1rio.`,yes:"Remover V\xeddeo",mainActionClass:"btn-danger"}),this.modalRef.content.onClose.subscribe(e=>{e&&this.videoService.delete(i).subscribe(n=>{this.videos=this.videos.filter(a=>i.id!=a.id)})})}voltarParaOAcervo(i){this.modalRef=this.modalService.show(oo.b,{animated:!1}),this.modalRef.content.showConfirmationModal({title:"Exibir v\xeddeo no acervo?",body:`O v\xeddeo ${i.titulo} ser\xe1 exibido para todos os usu\xe1rios`,yes:"Exibir v\xeddeo no acervo",mainActionClass:"btn-danger"}),this.modalRef.content.onClose.subscribe(e=>{e&&this.videoService.voltarParaOAcervo(i).subscribe(n=>{this.toastr.success("V\xeddeo adicionado ao acervo do Elenco")})})}definirPadrao(i){if(!i.apresentacao){if(i.atuacao)return void this.toastr.error(`O v\xeddeo '${i.titulo}' j\xe1 foi definido como atua\xe7\xe3o e n\xe3o pode ser definido como v\xeddeo de apresenta\xe7\xe3o`);this.videoService.definirVideoApresentacao(this.authService.getId(),i).pipe((0,eo.K)(e=>(this.toastr.success("Houve um problema ao definir este v\xeddeo como apresenta\xe7\xe3o"),(0,X.of)(null)))).subscribe(e=>{e&&this.toastr.success(`'${i.titulo}' foi definido como seu v\xeddeo de apresenta\xe7\xe3o`)})}}playVideo(i){"outros"!=i.servico?this.authService.isElenco&&(this.modalRef=this.modalService.show(Po,{initialState:{video:i},class:"modal-lg"})):window.open(i.link,"_blank","noopener")}videoHelper(){this.modalService.show(Q.Z,{animated:!1,class:"modal-lg"}).content.showHelperModal({title:"Ajuda: Como fazer para cadastrar um v\xeddeo",body:'\n<p>S\xe3o aceitos links de v\xeddeos v\xe1lidos, hospedados em sites ou reposit\xf3rios web, como Youtube, Vimeo, WeTransfer, GoogleDrive, Dropbox, etc. Desde que configurados com privacidade "compartilhar".</p>\n<p>Utilize o link de um \xfanico v\xeddeo, n\xe3o de playlists ou p\xe1ginas que contenham o v\xeddeo.</p>\n<p>Copie e cole o link no campo \u201cLink do V\xeddeo\u201d</p>'})}videoApresentacaoHelper(i){i.stopPropagation(),i.preventDefault(),this.modalService.show(Q.Z,{animated:!1,class:"modal-dialog-centered"}).content.showHelperModal({title:"AJUDA: V\xeddeo Padr\xe3o - SUA APRESENTA\xc7\xc3O PESSOAL",body:"<p>O v\xeddeo padr\xe3o \xe9 uma oportunidade adicional para sua apresenta\xe7\xe3o pessoal e profissional. Tamb\xe9m \xe9 uma importante alternativa para discorrer sobre seu minicurr\xedculo, ao explicar resumidamente suas experi\xeancias, estudos e forma\xe7\xe3o. Para isso, grave um v\xeddeo de at\xe9 1 minuto em boa luz e \xe1udio (pode ser um self-video). Voc\xea pode adicionar em seu canal Youtube ou Vimeo e registrar seu link como indicado. Se desejar proteg\xea-lo como privado, basta informar sua senha.</p>"})}alterarPrivacidade(i){i.publico=!i.publico;const e={campo:"video",publico:i.publico,video:{id:i.id}};this.privacidadeService.alterarPrivacidade(this.authService.getId(),e).subscribe(n=>{})}proximaTela(){this.router.navigate(["../arquivos"],{relativeTo:this.route.parent})}trackById(i,e){return e.id}definirVideoAtuacao(i){if(!i.atuacao){if(i.apresentacao)return void this.toastr.error(`O v\xeddeo '${i.titulo}' j\xe1 foi definido como apresenta\xe7\xe3o  e n\xe3o pode ser definido como v\xeddeo de atua\xe7\xe3o`);this.videoService.definirVideoAtuacao(this.authService.getId(),i).pipe((0,eo.K)(e=>(this.toastr.error(e.error&&e.error.message||"N\xe3o foi poss\xedvel definir video de atua\xe7\xe3o"),(0,X.of)(null)))).subscribe(e=>{e&&this.toastr.success(`'${i.titulo}' foi definido como seu v\xeddeo de atua\xe7\xe3o`)})}}videoAtuacaoHelper(i){i.preventDefault(),i.stopPropagation(),this.modalService.show(Q.Z,{animated:!1,class:"modal-dialog-centered"}).content.showHelperModal({title:"AJUDA: V\xeddeo de Atua\xe7\xe3o",body:"<p>O v\xeddeo de atua\xe7\xe3o ajuda aos diretores de elenco terem dispon\xedvel um conte\xfado em v\xeddeo com sua atua\xe7\xe3o em cena / encena\xe7\xe3o art\xedstica de alguma pe\xe7a, roteiro ou trabalho que tenha feito. Isso ajuda no tempo de avalia\xe7\xe3o de seu potencial talento, sem a necessidade de pedir material espec\xedfico adicional.</p>"})}escolherVideoDeAtuacao(){this.modalService.show(no,{class:"modal-lg",ignoreBackdropClick:!0}).content.onClose.subscribe(e=>{e&&this.definirVideoAtuacao(e)})}escolherVideoPadrao(){this.modalService.show(no,{class:"modal-lg",ignoreBackdropClick:!0}).content.onClose.subscribe(e=>{e&&this.definirPadrao(e)})}removerVideoDeAtuacao(i){this.videoService.removerVideoDeAtuacao(this.authService.getId(),i).subscribe()}removerVideoPadrao(i){i.apresentacao=!0,this.videoService.removerVideoDeApresentacao(this.authService.getId(),i).subscribe()}onDropListDropped(){if(!this.target)return;const i=this.placeholder.element.nativeElement,e=i.parentElement;i.style.display="none",e.removeChild(i),e.appendChild(i),e.insertBefore(this.source.element.nativeElement,e.children[this.sourceIndex]),this.placeholder._dropListRef.isDragging()&&this.placeholder._dropListRef.exit(this.dragRef),this.target=null,this.source=null,this.dragRef=null,this.sourceIndex!==this.targetIndex&&((0,N.bA)(this.videos,this.sourceIndex,this.targetIndex),this.videoService.setOrdemVideos(this.authService.getId(),this.videos).subscribe(()=>{this.state.isSaving=!1}))}onDropListEntered({item:i,container:e}){if(e==this.placeholder)return;const n=this.placeholder.element.nativeElement,a=i.dropContainer.element.nativeElement,d=e.element.nativeElement,c=Array.prototype.indexOf.call(d.parentElement.children,this.source?n:a),M=Array.prototype.indexOf.call(d.parentElement.children,d);this.source||(this.sourceIndex=c,this.source=i.dropContainer,n.style.width=this.boxWidth+"px",n.style.height=this.boxHeight+40+"px",a.parentElement.removeChild(a)),this.targetIndex=M,this.target=e,this.dragRef=i._dragRef,n.style.display="",d.parentElement.insertBefore(n,M>c?d.nextSibling:d),this.placeholder._dropListRef.enter(i._dragRef,i.element.nativeElement.offsetLeft,i.element.nativeElement.offsetTop)}marcar(i){this.videosMarcados.update(e=>({...e,[i.id]:i}))}desmarcar(i){this.videosMarcados.update(e=>({...e,[i.id]:!1}))}removerMarcadosDefinitivo(){const i=Object.values(this.videosMarcados()).filter(e=>!!e).map(e=>e);this.isRemoving.set(!0),this.videoService.deleteMany(i).subscribe(()=>{this.desmarcarTodos(),this.isRemoving.set(!1)})}desmarcarTodos(){this.videosMarcados.set({})}marcarAlbum(i,e){i.videos.forEach(n=>e?this.marcar(n):this.desmarcar(n))}}).\u0275fac=function(i){return new(i||q)(o.Y36(b.k),o.Y36(A._W),o.Y36(T.H7),o.Y36(g.tT),o.Y36(H.gz),o.Y36(H.F0),o.Y36(P.e),o.Y36(to.rL),o.Y36(w.H),o.Y36(U.N),o.Y36(io.z))},q.\u0275cmp=o.Xpm({type:q,selectors:[["app-videos"]],viewQuery:function(i,e){if(1&i&&o.Gf(N.Wj,5),2&i){let n;o.iGM(n=o.CRH())&&(e.placeholder=n.first)}},standalone:!0,features:[o.jDz],decls:26,vars:12,consts:[[1,"row","mb-3"],[1,"col-12","col-md-9"],[1,"main-content--icon",3,"icon"],[1,"col-12","col-md-3","text-center","text-md-end"],["class","btn btn-primary btn-sm float-end"],[1,"col-12"],[1,"mb-2"],["tooltip","Ajuda sobre links de v\xeddeo",1,"ms-1","helper",3,"click"],[3,"icon"],[1,"mb-0"],["class","alert alert-danger mt-3"],["cdkDropListGroup","","class","grid--container mt-3","id","videos"],["class","d-flex gap-1 p-2 bg-gray-50 toolbar sticky-top"],["nextActionText","Curr\xedculo","saveText","Salvar",1,"row","align-items-center","position-sticky","app-saver","sticky-bottom",3,"showSaveButton","isSaving","nextAction"],["popPrivacidade",""],[1,"btn","btn-primary","btn-sm","float-end",3,"click"],[1,"alert","alert-danger","mt-3"],[1,"d-block"],[3,"routerLink"],["class","d-flex align-items-center gap-3 border rounded p-3 bg-white mb-3 videos-em-destaque"],[1,"d-flex","align-items-center","gap-3","border","rounded","p-3","bg-white","mb-3","videos-em-destaque"],[1,"d-flex","flex-column","w-100"],[1,"d-block","mb-2"],[1,"d-flex","gap-3","flex-column","flex-md-row"],["width","140px","height","80px",1,"rounded",2,"object-fit","cover",3,"src"],[1,"w-100"],[1,"text-muted","d-block","text-uppercase"],[1,"videos-em-destaque__opcoes","d-grid","gap-2"],[1,"btn","btn-sm","btn-tonal-purple","text-nowrap",3,"click"],[1,"btn","btn-sm","btn-tonal-red","text-nowrap",3,"click"],[1,"text-muted","mb-0"],["href","#",3,"click"],[1,"videos-em-destaque__opcoes"],[1,"btn","btn-sm","btn-tonal-purple",3,"click"],[1,"d-flex","align-items-center","gap-3","border","rounded","p-3","bg-white","videos-em-destaque"],["cdkDropListGroup","","id","videos",1,"grid--container","mt-3"],["cdkDropList","",3,"cdkDropListAutoScrollStep","cdkDropListEntered","cdkDropListDropped"],["cdkDropList","",3,"cdkDropListEntered","cdkDropListDropped"],["cdkDrag","",1,"grid--item-container"],[1,"video-wrapper","rounded",3,"click"],[1,"video-opcoes"],["tooltip","Remover","container","body","placement","right",1,"btn","btn-danger","btn-sm","btn-video-opcao","video-remover",3,"click"],["tooltip","Editar","container","body","placement","right",1,"btn","btn-warning","btn-sm","btn-video-opcao","video-editar",3,"click"],["cdkDragHandle","","tooltip","Mudar ordem","container","body","placement","right",1,"btn","btn-light","btn-sm","btn-video-opcao","video-ordenar"],["class","video-player","src","assets/player-video.png"],[1,"video-titulo"],[1,"video-descricao"],[1,"mb-1"],["class","badge bg-warning text-dark me-1"],["class","badge bg-primary text-light"],["src","assets/player-video.png",1,"video-player"],[1,"badge","bg-warning","text-dark","me-1"],[1,"badge","bg-primary","text-light"],["href","javascript:void(0)","triggers","mouseenter:mouseleave",1,"text-decoration-none",3,"popover","popoverContext","outsideClick","click"],[3,"icon","ngClass"],[3,"ngClass"],["cdkDropList",""],[1,"d-flex","gap-1","p-2","bg-gray-50","toolbar","sticky-top"],[1,"btn","btn-sm","btn-outline-danger",3,"disabled","click"],[1,"btn","btn-sm","btn-outline-info",3,"click"],["class","mt-4"],[1,"my-4"],[1,"d-flex","justify-content-between","mb-3"],["class","btn btn-outline-primary"],["class","form-check ms-auto"],["class","grid--container","id","videos"],[1,"mt-4"],[1,"btn","btn-outline-primary",3,"click"],[1,"material-symbols-rounded","md-18","fill-1"],[1,"form-check","ms-auto"],[1,"form-check-label"],["type","checkbox",1,"form-check-input",3,"change"],["marcar",""],["id","videos",1,"grid--container"],[1,"grid--item-container","rounded"],[1,"video-wrapper","rounded",3,"ngClass","click"],[3,"innerHTML","ngStyle"],["class","btn btn-danger btn-sm btn-video-opcao video-remover","tooltip","Remover","container","body","placement","right"],["class","btn btn-success btn-sm btn-video-opcao video-voltar-acervo","tooltip","Exibir no acervo","container","body","placement","right"],["class","d-flex justify-content-between"],["class","mt-1 foto-galeria--data text-muted fw-semibold text-balance"],["tooltip","Remover definitivo","container","body","placement","right",1,"btn","btn-danger","btn-sm","btn-video-opcao","video-remover-definitivo",3,"click"],["class","btn btn-info btn-sm btn-video-opcao video-remover-definitivo","tooltip","Desmarcar","container","body","placement","right"],["tooltip","Desmarcar","container","body","placement","right",1,"btn","btn-info","btn-sm","btn-video-opcao","video-remover-definitivo",3,"click"],["translate","no",1,"material-symbols-rounded","md-18","fill-1"],["tooltip","Marcar","container","body","placement","right",1,"btn","btn-info","btn-sm","btn-video-opcao","video-remover-definitivo",3,"click"],["translate","no",1,"material-symbols-rounded","md-18"],["tooltip","Exibir no acervo","container","body","placement","right",1,"btn","btn-success","btn-sm","btn-video-opcao","video-voltar-acervo",3,"click"],[1,"d-flex","justify-content-between"],[1,"d-flex"],["class","text-success","tooltip","Elenco pode ver",3,"icon"],["class","text-danger","tooltip","Elenco n\xe3o pode ver",3,"icon"],[1,"text-muted"],["tooltip","Elenco pode ver",1,"text-success",3,"icon"],["tooltip","Elenco n\xe3o pode ver",1,"text-danger",3,"icon"],[1,"mt-1","foto-galeria--data","text-muted","fw-semibold","text-balance"],["class","my-4"],[1,"text-dark","mb-2"]],template:function(i,e){1&i&&(o.TgZ(0,"div",0)(1,"div",1)(2,"h4")(3,"small"),o._UZ(4,"fa-icon",2),o.qZA(),o._uU(5,"Acervo de V\xeddeos "),o.qZA()(),o.TgZ(6,"div",3),o.YNc(7,zo,2,0,"button",4),o.qZA(),o.TgZ(8,"div",5)(9,"p",6)(10,"small"),o.YNc(11,Qo,2,2,"span"),o.TgZ(12,"a",7),o.NdJ("click",function(){return e.videoHelper()}),o._uU(13," Entenda "),o._UZ(14,"fa-icon",8),o.qZA()()(),o.TgZ(15,"p",9)(16,"small"),o.YNc(17,Ko,2,0,"span")(18,$o,6,3,"div",10),o.qZA()()()(),o.YNc(19,te,4,2)(20,ce,4,1,"div",11)(21,ue,6,2,"div",12)(22,Oe,2,0),o.TgZ(23,"app-saver",13),o.NdJ("nextAction",function(){return e.proximaTela()}),o.qZA(),o.YNc(24,De,2,1,"ng-template",null,14,o.W1O)),2&i&&(o.xp6(4),o.Q6J("icon",e.faVideo),o.xp6(3),o.um2(7,-1==e.limiteDeVideos||e.totalElencoPodeVer<e.limiteDeVideos?7:-1),o.xp6(4),o.um2(11,e.limiteDeVideos>=0?11:-1),o.xp6(3),o.Q6J("icon",e.faQuestionCircle),o.xp6(3),o.um2(17,e.totalElencoPodeVer>1&&e.isElenco?17:-1),o.xp6(1),o.um2(18,e.limiteDeVideos>=0&&e.totalElencoPodeVer>=e.limiteDeVideos?18:-1),o.xp6(1),o.um2(19,e.videos.length?19:-1),o.xp6(1),o.um2(20,e.isElenco?20:-1),o.xp6(1),o.um2(21,e.isAdmin&&e.videosMarcadosCount()?21:-1),o.xp6(1),o.um2(22,e.isElenco?-1:22),o.xp6(1),o.Q6J("showSaveButton",!1)("isSaving",e.state.isSaving))},dependencies:[_o.uH,_o.BN,mo.z8,mo.i9,uo.d8,uo.jG,H.rH,N.Fd,N.Wj,N.Zt,N.Bh,po.UU,po.k5,p.mk,p.PC,Bo.k,p.Ov],styles:["h2[_ngcontent-%COMP%]{font-size:.8rem;font-weight:800;text-transform:uppercase}.video-wrapper[_ngcontent-%COMP%]{width:100%;display:inline-block;position:relative;background-size:cover;background-position:center;cursor:pointer;overflow:hidden;height:200px}.video-wrapper[_ngcontent-%COMP%]     iframe{height:100%;width:100%}.video-wrapper.item__marcado[_ngcontent-%COMP%]{background:var(--bs-blue-50)}.video-wrapper.item__marcado[_ngcontent-%COMP%]   .video-embed[_ngcontent-%COMP%]{scale:.9;border-radius:6px;overflow:hidden;background-color:var(--bs-gray-900)}.video-embed[_ngcontent-%COMP%]{height:200px;transition:all .15s ease-in-out;background-size:cover;background-position:center}.video--outros[_ngcontent-%COMP%]{padding-bottom:56%;background-size:cover;background-position:center}.video-player[_ngcontent-%COMP%]{width:70px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}h6[_ngcontent-%COMP%]{font-size:1rem}.video-titulo[_ngcontent-%COMP%]{font-weight:700;font-size:.9rem}.video-descricao[_ngcontent-%COMP%]{font-size:.9rem}.video[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{transition:all .2s}.video-opcoes[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{transition:.1s ease-out}.video-ordenar[_ngcontent-%COMP%]{right:5px;top:5px;left:auto}.video-principal[_ngcontent-%COMP%]{margin-top:15px}.video-principal[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#674578;color:#fff!important;height:100%;padding:10px}.video-principal[_ngcontent-%COMP%]   .video-wrapper[_ngcontent-%COMP%]{padding-left:0;padding-right:0;margin:0}.video-principal[_ngcontent-%COMP%]   .text-muted[_ngcontent-%COMP%]{color:#ffffff80!important}.helper[_ngcontent-%COMP%]{cursor:pointer}.cdk-drag-preview[_ngcontent-%COMP%]{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;padding:10px}.video-opcoes[_ngcontent-%COMP%]{transition:all ease-in-out .1s;display:flex;flex-direction:column-reverse;left:5px;position:absolute;top:5px;gap:5px}@media screen and (min-width: 480px){.video-wrapper[_ngcontent-%COMP%]:hover   .video-opcoes[_ngcontent-%COMP%]   .video-padrao[_ngcontent-%COMP%], .video-wrapper[_ngcontent-%COMP%]:hover   .video-opcoes[_ngcontent-%COMP%]   .video-editar[_ng
1content-%COMP%], .video-wrapper[_ngcontent-%COMP%]:hover   .video-opcoes[_ngcontent-%COMP%]   .video-remover[_ngcontent-%COMP%], .video-wrapper[_ngcontent-%COMP%]:hover   .video-opcoes[_ngcontent-%COMP%]   .video-remover-definitivo[_ngcontent-%COMP%], .video-wrapper[_ngcontent-%COMP%]:hover   .video-opcoes[_ngcontent-%COMP%]   .video-voltar-acervo[_ngcontent-%COMP%]{transform:translate(0);opacity:1}.video-wrapper[_ngcontent-%COMP%]:hover   .video-ordenar[_ngcontent-%COMP%]{opacity:1;transform:translate(0)}.video-opcoes[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{transform:translate(calc(-100% - 20px));display:flex;align-items:center;justify-content:center}.video-opcoes[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:nth-child(1){transition-delay:0s}.video-opcoes[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:nth-child(2){transition-delay:.05s}.video-opcoes[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:nth-child(3){transition-delay:.08s}.video-opcoes[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:nth-child(4){transition-delay:.11s}.video-ordenar[_ngcontent-%COMP%]{transform:translate(50px)}}.btn-video-opcao[_ngcontent-%COMP%]{width:33px;height:33px;transition:all ease-in-out .1s}.video-ordenar[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px}.cdk-drop-list[_ngcontent-%COMP%]{display:flex}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[class][_ngcontent-%COMP%]{opacity:.4}.cdk-drag-placeholder[class][_ngcontent-%COMP%]   .foto-galeria--opcao[_ngcontent-%COMP%]{display:none}.cdk-drag-preview[_ngcontent-%COMP%]{box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.3}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.grid--container[_ngcontent-%COMP%]{display:grid;grid-template-rows:min-content;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));justify-content:center;grid-gap:15px}.grid--item-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;will-change:transform;border-radius:3px;width:100%;background-color:#f9fafb;background-size:cover;background-position:center center;position:relative;cursor:pointer;transition:opacity .2s ease-out}.grid--item-container[_ngcontent-%COMP%]:active{opacity:.6}.videos-em-destaque[_ngcontent-%COMP%]   .videos-em-destaque__opcoes[_ngcontent-%COMP%]{opacity:.7;filter:saturate(0);text-align:right}.videos-em-destaque[_ngcontent-%COMP%]:hover   .videos-em-destaque__opcoes[_ngcontent-%COMP%]{opacity:1;filter:saturate(1)}.item__marcado[_ngcontent-%COMP%]{outline:3px solid var(--bs-blue-500)}.toolbar[_ngcontent-%COMP%]{top:155px}"],data:{animation:[(0,x.X$)("listAnimation",[(0,x.eR)("* => *",[(0,x.IO)(":enter",(0,x.oB)({opacity:0}),{optional:!0}),(0,x.IO)(":enter",(0,x.EY)("100ms",[(0,x.jt)("0.2s ease-in",(0,x.F4)([(0,x.oB)({opacity:0,offset:0}),(0,x.oB)({opacity:1,offset:1})]))]),{optional:!0}),(0,x.IO)(":leave",(0,x.EY)("100ms",[(0,x.jt)("0.2s ease-in",(0,x.F4)([(0,x.oB)({opacity:1,transform:"scale(1)",offset:0}),(0,x.oB)({opacity:.5,transform:"scale(1.01)",offset:.3}),(0,x.oB)({opacity:0,transform:"scale(0)",offset:1})]))]),{optional:!0})])])]}}),q);(0,s.gn)([(0,ao.z)({title:"Remover V\xeddeo?",body:"O v\xeddeo ser\xe1 removido para todos os usu\xe1rios",yes:"Remover V\xeddeo",mainActionClass:"btn-danger"}),(0,s.w6)("design:type",Function),(0,s.w6)("design:paramtypes",[C.u]),(0,s.w6)("design:returntype",void 0)],I.prototype,"deletarVideoDefinitivo",null),(0,s.gn)([(0,ao.z)({title:"Aten\xe7\xe3o! Remover para todos os perfis?",body:"Os v\xeddeos marcadas ser\xe3o removidos para todos os perfis",yes:"Remover V\xeddeos",mainActionClass:"btn-danger"}),(0,s.w6)("design:type",Function),(0,s.w6)("design:paramtypes",[]),(0,s.w6)("design:returntype",void 0)],I.prototype,"removerMarcadosDefinitivo",null),I=(0,s.gn)([(0,B.c)(),(0,s.w6)("design:paramtypes",[b.k,A._W,T.H7,g.tT,H.gz,H.F0,P.e,to.rL,w.H,U.N,io.z])],I);var ke=r(48326),Ue=r(94261);const Ne=[{path:"",component:I,canActivate:[ke.p,Ue.X]}]},91641:(R,E,r)=>{r.d(E,{Z:()=>C});var s=r(78645),o=r(90590),T=r(62130),l=r(19212),f=r(12051);let C=(()=>{var b;class A{constructor(m){this._bsModalRef=m,this.faQuestionCircle=o.Fuz}ngOnInit(){this.onClose=new s.x}showHelperModal(m){this.title=m.title,this.body=m.body}hideConfirmationModal(){this.onClose.next(null),this._bsModalRef.hide()}}return(b=A).\u0275fac=function(m){return new(m||b)(l.Y36(f.UZ))},b.\u0275cmp=l.Xpm({type:b,selectors:[["app-modal-helper"]],standalone:!0,features:[l.jDz],decls:7,vars:3,consts:[[1,"modal-header"],[1,"modal-title","pull-left"],[3,"icon"],["type","button","aria-label","Close",1,"btn-close",3,"click"],[1,"modal-body"],[3,"innerHTML"]],template:function(m,V){1&m&&(l.TgZ(0,"div",0)(1,"h4",1),l._UZ(2,"fa-icon",2),l._uU(3),l.qZA(),l.TgZ(4,"button",3),l.NdJ("click",function(){return V.hideConfirmationModal()}),l.qZA()(),l.TgZ(5,"div",4),l._UZ(6,"p",5),l.qZA()),2&m&&(l.xp6(2),l.Q6J("icon",V.faQuestionCircle),l.xp6(1),l.hij(" ",V.title," "),l.xp6(3),l.Q6J("innerHTML",V.body,l.oJD))},dependencies:[T.uH,T.BN],styles:["h4[_ngcontent-%COMP%]{color:#531f69}"]}),A})()},40193:(R,E,r)=>{r.d(E,{_:()=>l});var s=r(19212);function o(f,C){1&f&&(s.TgZ(0,"span",1),s._uU(1,"(Opcional)"),s.qZA())}const T=["*"];let l=(()=>{var f;class C{constructor(){this.required=!1,this.for=""}}return(f=C).\u0275fac=function(A){return new(A||f)},f.\u0275cmp=s.Xpm({type:f,selectors:[["app-label"]],inputs:{required:"required",for:"for"},standalone:!0,features:[s.jDz],ngContentSelectors:T,decls:3,vars:2,consts:[["class","ps-2"],[1,"ps-2"]],template:function(A,g){1&A&&(s.F$t(),s.TgZ(0,"label"),s.Hsn(1),s.YNc(2,o,2,0,"span",0),s.qZA()),2&A&&(s.uIk("for",g.for),s.xp6(2),s.um2(2,g.required?-1:2))},styles:["label[_ngcontent-%COMP%]{width:100%}label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{opacity:.5;font-size:.8rem;line-height:1.5rem;font-style:italic;float:right}"]}),C})()},18446:(R,E,r)=>{r.d(E,{k:()=>Y});var s=r(19212),o=r(41449),T=r(90590),l=r(62130),f=r(2268),C=r(70924);function b(u,v){if(1&u&&(s.TgZ(0,"p",1),s._UZ(1,"fa-icon",2),s.qZA()),2&u){const p=s.oxw();s.xp6(1),s.s9C("tooltip",p.savingText),s.Q6J("icon",p.faSpinner)}}function A(u,v){if(1&u&&(s.TgZ(0,"p",1),s._UZ(1,"fa-icon",3),s.qZA()),2&u){const p=s.oxw();s.xp6(1),s.s9C("tooltip",p.savedText),s.Q6J("icon",p.faCheckDouble)}}function g(u,v){if(1&u&&(s.TgZ(0,"p",1),s._UZ(1,"fa-icon",4),s.qZA()),2&u){const p=s.oxw();s.xp6(1),s.s9C("tooltip",p.needsToSaveText),s.Q6J("icon",p.faClock)}}let m=(()=>{var u;class v{constructor(h){this.appState=h,this.faSpinner=T.LM3,this.faCheckDouble=T.FFp,this.faClock=T.SZw,this.isSaving=!1,this.needsToSave=!1,this.needsToSaveText="Suas informa\xe7\xf5es N\xc3O est\xe3o salvas",this.savingText="Salvando suas informa\xe7\xf5es",this.savedText="Suas Informa\xe7\xf5es est\xe3o salvas"}ngOnInit(){}}return(u=v).\u0275fac=function(h){return new(h||u)(s.Y36(C.Z))},u.\u0275cmp=s.Xpm({type:u,selectors:[["app-saver-status"]],inputs:{isSaving:"isSaving",needsToSave:"needsToSave",needsToSaveText:"needsToSaveText",savingText:"savingText",savedText:"savedText"},standalone:!0,features:[s.jDz],decls:3,vars:3,consts:[["class","mb-0"],[1,"mb-0"],[1,"animation-rotation",3,"icon","tooltip"],["container","body","placement","top",1,"text-success",3,"icon","tooltip"],["container","body","placement","top",1,"text-warning",3,"icon","tooltip"]],template:function(h,Z){1&h&&s.YNc(0,b,2,2,"p",0)(1,A,2,2,"p",0)(2,g,2,2,"p",0),2&h&&(s.um2(0,Z.isSaving&&!Z.needsToSave?0:-1),s.xp6(1),s.um2(1,Z.isSaving||Z.needsToSave?-1:1),s.xp6(1),s.um2(2,Z.needsToSave?2:-1))},dependencies:[l.uH,l.BN,f.z8,f.i9],styles:["[_nghost-%COMP%]{color:#4c5563;padding-right:.5rem}fa-icon[_ngcontent-%COMP%], p[_ngcontent-%COMP%]{display:inline-block}"]}),v})();var V=r(96814);function k(u,v){if(1&u&&(s.TgZ(0,"div",4),s._UZ(1,"app-saver-status",5),s.qZA()),2&u){const p=s.oxw();s.xp6(1),s.Q6J("isSaving",p.isSaving)("needsToSave",p.needsToSave)}
1}const P=(u,v)=>({"me-2":u,"order-1":v});function w(u,v){if(1&u){const p=s.EpF();s.TgZ(0,"button",6),s.NdJ("click",function(){s.CHM(p);const Z=s.oxw();return s.KtG(Z.salvarPerfil())}),s._UZ(1,"fa-icon",7),s._uU(2),s.qZA()}if(2&u){const p=s.oxw();s.Q6J("ngClass",s.WLB(4,P,!p.nextButtonBefore,p.nextButtonBefore))("disabled",!p.canSave),s.xp6(1),s.Q6J("icon",p.faSave),s.xp6(1),s.hij(" ",p.saveText," ")}}function U(u,v){if(1&u&&s._UZ(0,"fa-icon",7),2&u){const p=s.oxw(2);s.Q6J("icon",p.faChevronRight)}}function L(u,v){if(1&u){const p=s.EpF();s.TgZ(0,"button",8),s.NdJ("click",function(){s.CHM(p);const Z=s.oxw();return s.KtG(Z.triggerNextAction())}),s._uU(1),s.YNc(2,U,1,1,"fa-icon",7),s.qZA()}if(2&u){const p=s.oxw();s.Q6J("ngClass",s.WLB(3,P,p.nextButtonBefore,!p.nextButtonBefore)),s.xp6(1),s.hij(" ",p.nextActionText," "),s.xp6(1),s.um2(2,p.showNextActionIcon?2:-1)}}let Y=(()=>{var u;class v{constructor(h){this.appState=h,this.faSave=o.r6l,this.faChevronRight=T._tD,this.save=new s.vpe,this.nextAction=new s.vpe,this.saveText="Salvar",this.isSaving=!1,this.canSave=!1,this.needsToSave=!1,this.nextActionText="Pr\xf3ximo",this.showNextActionIcon=!0,this.nextButtonBefore=!1,this.showSaverStatus=!0,this.showNextActionButton=!0,this.showSaveButton=!0}ngOnInit(){}salvarPerfil(){this.save.emit("Salvar")}triggerNextAction(){this.nextAction.emit("Salvar")}}return(u=v).\u0275fac=function(h){return new(h||u)(s.Y36(C.Z))},u.\u0275cmp=s.Xpm({type:u,selectors:[["app-saver"]],inputs:{saveText:"saveText",isSaving:"isSaving",canSave:"canSave",needsToSave:"needsToSave",nextActionText:"nextActionText",showNextActionIcon:"showNextActionIcon",nextButtonBefore:"nextButtonBefore",showSaverStatus:"showSaverStatus",showNextActionButton:"showNextActionButton",showSaveButton:"showSaveButton"},outputs:{save:"save",nextAction:"nextAction"},standalone:!0,features:[s.jDz],decls:4,vars:3,consts:[["class","col-12 col-sm-auto d-none d-sm-block"],[1,"d-flex","col-12","col-sm-auto","ms-auto"],["data-js","salvarPerfil","type","submit","class","btn btn-primary btn-sm",3,"ngClass","disabled"],["data-js","triggerNextAction","type","button","class","btn btn-sm btn-outline-primary",3,"ngClass"],[1,"col-12","col-sm-auto","d-none","d-sm-block"],[3,"isSaving","needsToSave"],["data-js","salvarPerfil","type","submit",1,"btn","btn-primary","btn-sm",3,"ngClass","disabled","click"],[3,"icon"],["data-js","triggerNextAction","type","button",1,"btn","btn-sm","btn-outline-primary",3,"ngClass","click"]],template:function(h,Z){1&h&&(s.YNc(0,k,2,2,"div",0),s.TgZ(1,"div",1),s.YNc(2,w,3,7,"button",2)(3,L,3,6,"button",3),s.qZA()),2&h&&(s.um2(0,Z.showSaverStatus?0:-1),s.xp6(2),s.um2(2,Z.showSaveButton?2:-1),s.xp6(1),s.um2(3,Z.showNextActionButton?3:-1))},dependencies:[m,V.mk,l.uH,l.BN],styles:["[_nghost-%COMP%]{margin:1rem -15px 0;padding:15px;z-index:1070;background:#f9fafb;border-top:1px solid #d1d5db}@media screen and (min-width: 480px){[_nghost-%COMP%]{padding:10px 0}}@media screen and (min-width: 768px){[_nghost-%COMP%]{margin:1rem -10px 0 -30px;padding:20px 0 20px 15px}}.btn[_ngcontent-%COMP%]{width:100%}@media screen and (min-width: 480px){.btn[_ngcontent-%COMP%]{width:auto}}"]}),v})()},17549:(R,E,r)=>{r.d(E,{z:()=>f});var s=r(15861),o=r(81374),T=r(96244),l=r(87006);function f(C){return(b,A,g)=>{const m=g.value;return C={title:"Deseja continuar?",body:"",yes:"Sim",no:"N\xe3o",showNoButton:!0,...C},g.value=(0,s.Z)(function*(...k){const w=l.U.getModalService().show(T.b,{animated:!1});if(w.content.showConfirmationModal(C),yield w.content.onClose.pipe((0,o.P)()).toPromise())return m.apply(this,k)}),g}}}}]);

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.