PageSourceSearch

https://inapem.gov.ao/chunk-S3MJXWTP.js

js inapem.gov.ao collected 2026-10-05 01:12:44 UTC 67,884 bytes, 1 lines download raw bytes

1import{a as ye}from"./chunk-URHBEPQF.js";import{a as D}from"./chunk-V76IHCDB.js";import{b as we}from"./chunk-WFQOHT5Y.js";import{a as Me}from"./chunk-JTVXRCDG.js";import{a as Ee}from"./chunk-OERYTBUP.js";import{a as ae}from"./chunk-ZE4VIXNO.js";import"./chunk-NR6DCKSI.js";import{a as be}from"./chunk-SF7DMI5Q.js";import{c as le,e as de,f as se,g as ce,h as me,i as pe,j as ue,k as _e,p as ge,q as xe,r as fe,s as Ce,t as ve,w as he}from"./chunk-ORCFHS3R.js";import{b as re}from"./chunk-2SQ67MXH.js";import{a as Fe}from"./chunk-NAORKSQG.js";import{a as Se}from"./chunk-RCRXJUEH.js";import"./chunk-6O4V6SO4.js";import"./chunk-2FUHYV4I.js";import"./chunk-M4EVYTK4.js";import"./chunk-PMPLIMIK.js";import"./chunk-JWBEBIV2.js";import"./chunk-NOJJ6WJB.js";import{u as I}from"./chunk-2P7Y6ZIL.js";import{Eb as _,Ga as X,Gb as s,I as O,La as r,Nb as Y,Ob as ee,Pb as te,Qb as ie,R as A,Sb as y,Tb as a,Ub as b,Vb as F,W as p,Wb as L,X as u,Y as v,Z as S,Za as V,cc as j,d as Q,gc as oe,ha as m,ja as K,kb as f,lb as C,mb as N,nb as P,ob as E,pb as w,pc as M,qb as g,ra as B,rb as t,sb as i,sc as ne,tb as x,tc as k,uc as G,x as W,zb as h}from"./chunk-EOFU4CRV.js";import"./chunk-USOD3V74.js";var De=()=>({label:"Licen\xE7a comercial?",key:"tem_licenca"}),Be=()=>({label:"Conta banc\xE1ria empresarial?",key:"tem_conta_bancaria"}),Ne=()=>({label:"Contabilidade organizada?",key:"tem_contabilidade"}),Le=()=>({label:"Certificado INAPEM?",key:"tem_certificado_inapem"}),ke=()=>({label:"Plano de neg\xF3cio?",key:"tem_plano_negocio"}),Ie=()=>({label:"Projecto de investimento?",key:"tem_projecto_investimento"}),He=(o,n,e,l,d,c)=>[o,n,e,l,d,c],Re=(o,n)=>n.numero,Oe=(o,n)=>n.nome,Ge=(o,n)=>n.key;function qe(o,n){if(o&1&&(t(0,"p",3),a(1),i()),o&2){let e,l=s();r(),b((e=l.programa())==null?null:e.titulo)}}function Ze(o,n){if(o&1){let e=h();t(0,"div",5)(1,"div",6),v(),t(2,"svg",7),x(3,"circle",8)(4,"path",9),i()(),S(),t(5,"div",10)(6,"h3",11),a(7,"Ficha enviada com sucesso!"),i(),t(8,"p",12),a(9," A sua solicita\xE7\xE3o de ades\xE3o foi submetida. A equipa do INAPEM ir\xE1 analis\xE1-la e entrar\xE1 em contacto brevemente. "),i()(),t(10,"button",13),_("click",function(){p(e);let d=s();return u(d.fecharSucesso())}),a(11," OK, Fechar "),i()()}}function $e(o,n){o&1&&(v(),t(0,"svg",28),x(1,"path",29),i())}function ze(o,n){if(o&1&&(t(0,"span"),a(1),i()),o&2){let e=s().$implicit;r(),b(e.numero)}}function Ue(o,n){if(o&1){let e=h();t(0,"button",27),_("click",function(){let d=p(e).$implicit,c=s(2);return u(c.irParaPasso(d.numero))}),f(1,$e,2,0,":svg:svg",28)(2,ze,2,1,"span"),a(3),i()}if(o&2){let e=n.$implicit,l=s(2);y(l.passoActual()===e.numero?"bg-[#B11E23] text-white":l.passoActual()>e.numero?"bg-[#DCFCE7] text-[#15803D]":"bg-[#F1F5F9] text-[#94A3B8]"),r(),C(l.passoActual()>e.numero?1:2),r(2),F(" ",e.titulo," ")}}function Je(o,n){if(o&1){let e=h();t(0,"label",33)(1,"input",42),_("ngModelChange",function(d){p(e);let c=s(3);return u(c.tipo_entidade.set(d))}),i(),t(2,"span",43),a(3),i()()}if(o&2){let e=n.$implicit,l=s(3);r(),g("value",e)("ngModel",l.tipo_entidade()),r(2),b(e)}}function Qe(o,n){if(o&1&&(t(0,"span",37),a(1),i()),o&2){let e=s(3);r(),b(e.erroNif())}}function We(o,n){o&1&&(t(0,"span",38),v(),t(1,"svg",44),x(2,"path",45),i(),a(3," NIF v\xE1lido "),i())}function Ke(o,n){if(o&1&&(t(0,"span",37),a(1),i()),o&2){let e=s(3);r(),b(e.erroDataConstituicao())}}function Xe(o,n){if(o&1){let e=h();t(0,"label",33)(1,"input",46),_("ngModelChange",function(d){p(e);let c=s(3);return u(c.sector_actividade.set(d))}),i(),t(2,"span",43),a(3),i()()}if(o&2){let e=n.$implicit,l=s(3);r(),g("value",e)("ngModel",l.sector_actividade()),r(2),b(e)}}function Ye(o,n){if(o&1){let e=h();t(0,"input",47),_("ngModelChange",function(d){p(e);let c=s(3);return u(c.sector_outro.set(d))}),i()}if(o&2){let e=s(3);g("ngModel",e.sector_outro())}}function et(o,n){if(o&1){let e=h();t(0,"fieldset",21)(1,"legend",30),a(2," 1. Identifica\xE7\xE3o do Benefici\xE1rio "),i(),t(3,"div",14)(4,"label",31),a(5,"Tipo de Entidade"),i(),t(6,"div",32),E(7,Je,4,3,"label",33,P),i()(),t(9,"div",1)(10,"label",31),a(11,"Nome da Entidade / Neg\xF3cio"),i(),t(12,"input",34),_("ngModelChange",function(d){p(e);let c=s(2);return u(c.nome_entidade.set(d))}),i()(),t(13,"div",35)(14,"div",1)(15,"label",31),a(16,"NIF da Empresa"),i(),t(17,"input",36),_("ngModelChange",function(d){p(e);let c=s(2);return u(c.nif.set(d))})("blur",function(){p(e);let d=s(2);return u(d.nifTocado.set(!0))}),i(),f(18,Qe,2,1,"span",37),f(19,We,4,0,"span",38),i(),t(20,"div",1)(21,"label",31),a(22,"N\xBA de Registo Comercial"),i(),t(23,"input",39),_("ngModelChange",function(d){p(e);let c=s(2);return u(c.numero_registo.set(d))}),i()()(),t(24,"div",1)(25,"label",31),a(26,"Data de Constitui\xE7\xE3o"),i(),t(27,"input",40),_("ngModelChange",function(d){p(e);let c=s(2);return u(c.data_constituicao.set(d))})("blur",function(){p(e);let d=s(2);return u(d.dataConstituicaoTocado.set(!0))}),i(),f(28,Ke,2,1,"span",37),i(),t(29,"div",14)(30,"label",31),a(31,"Sector de Actividade"),i(),t(32,"div",32),E(33,Xe,4,3,"label",33,P),i(),f(35,Ye,1,1,"input",41),i()()}if(o&2){let e=s(2);r(7),w(e.tipos_entidade),r(5),g("ngModel",e.nome_entidade()),r(5),y(e.erroNif()?"border-red-400 focus:border-red-400 focus:ring-red-400":"border-[#
1E2E8F0] focus:border-[#B11E23] focus:ring-[#B11E23]"),g("ngModel",e.nif()),r(),C(e.erroNif()?18:-1),r(),C(!e.erroNif()&&e.nif()?19:-1),r(4),g("ngModel",e.numero_registo()),r(4),y(e.erroDataConstituicao()?"border-red-400 focus:border-red-400 focus:ring-red-400":"border-[#E2E8F0] focus:border-[#B11E23] focus:ring-[#B11E23]"),g("ngModel",e.data_constituicao())("max",e.hoje),r(),C(e.erroDataConstituicao()?28:-1),r(5),w(e.sectores),r(2),C(e.sector_actividade()==="Outro"?35:-1)}}function tt(o,n){if(o&1&&(t(0,"option",50),a(1),i()),o&2){let e=n.$implicit;g("value",e.nome),r(),b(e.nome)}}function it(o,n){if(o&1&&(t(0,"option",50),a(1),i()),o&2){let e=n.$implicit;g("value",e),r(),b(e)}}function ot(o,n){if(o&1){let e=h();t(0,"fieldset",21)(1,"legend",30),a(2," 2. Localiza\xC3\xA7\xC3\xA3o da Actividade "),i(),t(3,"div",35)(4,"div",1)(5,"label",31),a(6,"Prov\xEDncia"),i(),t(7,"select",48),_("ngModelChange",function(d){p(e);let c=s(2);return c.provincia.set(d),u(c.municipio.set(""))}),t(8,"option",49),a(9,"Seleccione a prov\xEDncia..."),i(),E(10,tt,2,2,"option",50,Oe),i()(),t(12,"div",1)(13,"label",31),a(14,"Munic\xEDpio"),i(),t(15,"select",51),_("ngModelChange",function(d){p(e);let c=s(2);return u(c.municipio.set(d))}),t(16,"option",49),a(17),i(),E(18,it,2,2,"option",50,P),i()()(),t(20,"div",1)(21,"label",31),a(22,"Comuna / Bairro"),i(),t(23,"input",52),_("ngModelChange",function(d){p(e);let c=s(2);return u(c.comuna_bairro.set(d))}),i()(),t(24,"div",1)(25,"label",31),a(26,"Endere\xE7o Completo"),i(),t(27,"textarea",53),_("ngModelChange",function(d){p(e);let c=s(2);return u(c.endereco.set(d))}),i()()()}if(o&2){let e=s(2);r(7),g("ngModel",e.provincia()),r(3),w(e.listaProv()),r(5),g("ngModel",e.municipio())("disabled",!e.provincia()),r(2),b(e.provincia()?"Seleccione o munic\xEDpio...":"Seleccione a prov\xEDncia primeiro"),r(),w(e.municipiosDaProvincia()),r(5),g("ngModel",e.comuna_bairro()),r(4),g("ngModel",e.endereco())}}function nt(o,n){if(o&1&&(t(0,"span",37),a(1),i()),o&2){let e=s(3);r(),b(e.erroRepNome())}}function rt(o,n){if(o&1&&(t(0,"span",37),a(1),i()),o&2){let e=s(3);r(),b(e.erroRepBi())}}function at(o,n){if(o&1&&(t(0,"span",37),a(1),i()),o&2){let e=s(3);r(),b(e.erroRepTelefone())}}function lt(o,n){if(o&1&&(t(0,"span",37),a(1),i()),o&2){let e=s(3);r(),b(e.erroRepEmail())}}function dt(o,n){if(o&1){let e=h();t(0,"fieldset",21)(1,"legend",30),a(2," 3. Dados do Representante Legal "),i(),t(3,"div",1)(4,"label",31),a(5,"Nome Completo"),i(),t(6,"input",54),_("ngModelChange",function(d){p(e);let c=s(2);return u(c.rep_nome.set(d))})("blur",function(){p(e);let d=s(2);return u(d.repNomeTocado.set(!0))}),i(),f(7,nt,2,1,"span",37),i(),t(8,"div",35)(9,"div",1)(10,"label",31),a(11,"Fun\xE7\xE3o"),i(),t(12,"input",55),_("ngModelChange",function(d){p(e);let c=s(2);return u(c.rep_funcao.set(d))}),i()(),t(13,"div",1)(14,"label",31),a(15,"Bilhete de Identidade"),i(),t(16,"input",56),_("ngModelChange",function(d){p(e);let c=s(2);return u(c.rep_bi.set(d))})("blur",function(){p(e);let d=s(2);return u(d.repBiTocado.set(!0))}),i(),f(17,rt,2,1,"span",37),i()(),t(18,"div",35)(19,"div",1)(20,"label",31),a(21,"Telefone"),i(),t(22,"input",57),_("ngModelChange",function(d){p(e);let c=s(2);return u(c.rep_telefone.set(d))})("blur",function(){p(e);let d=s(2);return u(d.repTelefoneTocado.set(!0))}),i(),f(23,at,2,1,"span",37),i(),t(24,"div",1)(25,"label",31),a(26,"Email"),i(),t(27,"input",58),_("ngModelChange",function(d){p(e);let c=s(2);return u(c.rep_email.set(d))})("blur",function(){p(e);let d=s(2);return u(d.repEmailTocado.set(!0))}),i(),f(28,lt,2,1,"span",37),i()()()}if(o&2){let e=s(2);r(6),y(e.erroRepNome()?"border-red-400 focus:border-red-400 focus:ring-red-400":"border-[#E2E8F0] focu
1s:border-[#B11E23] focus:ring-[#B11E23]"),g("ngModel",e.rep_nome()),r(),C(e.erroRepNome()?7:-1),r(5),g("ngModel",e.rep_funcao()),r(4),y(e.erroRepBi()?"border-red-400 focus:border-red-400 focus:ring-red-400":"border-[#E2E8F0] focus:border-[#B11E23] focus:ring-[#B11E23]"),g("ngModel",e.rep_bi()),r(),C(e.erroRepBi()?17:-1),r(5),y(e.erroRepTelefone()?"border-red-400 focus:border-red-400 focus:ring-red-400":"border-[#E2E8F0] focus:border-[#B11E23] focus:ring-[#B11E23]"),g("ngModel",e.rep_telefone()),r(),C(e.erroRepTelefone()?23:-1),r(4),y(e.erroRepEmail()?"border-red-400 focus:border-red-400 focus:ring-red-400":"border-[#E2E8F0] focus:border-[#B11E23] focus:ring-[#B11E23]"),g("ngModel",e.rep_email()),r(),C(e.erroRepEmail()?28:-1)}}function st(o,n){if(o&1){let e=h();t(0,"label",33)(1,"input",61),_("ngModelChange",function(d){p(e);let c=s(3);return u(c.num_trabalhadores.set(d))}),i(),t(2,"span",43),a(3),i()()}if(o&2){let e=n.$implicit,l=s(3);r(),g("value",e)("ngModel",l.num_trabalhadores()),r(2),b(e)}}function ct(o,n){if(o&1){let e=h();t(0,"label",33)(1,"input",62),_("ngModelChange",function(d){p(e);let c=s(3);return u(c.volume_facturacao.set(d))}),i(),t(2,"span",43),a(3),i()()}if(o&2){let e=n.$implicit,l=s(3);r(),g("value",e)("ngModel",l.volume_facturacao()),r(2),b(e)}}function mt(o,n){if(o&1){let e=h();t(0,"label",33)(1,"input",63),_("ngModelChange",function(d){p(e);let c=s(3);return u(c.tempo_existencia.set(d))}),i(),t(2,"span",43),a(3),i()()}if(o&2){let e=n.$implicit,l=s(3);r(),g("value",e)("ngModel",l.tempo_existencia()),r(2),b(e)}}function pt(o,n){if(o&1&&(t(0,"fieldset",22)(1,"legend",30),a(2," 4. Dimens\xE3o do Neg\xF3cio "),i(),t(3,"div",10)(4,"label",31),a(5,"N\xFAmero de Trabalhadores"),i(),t(6,"div",32),E(7,st,4,3,"label",33,P),i()(),t(9,"div",10)(10,"label",31),a(11,"Volume Anual de Factura\xE7\xE3o"),i(),t(12,"div",59),E(13,ct,4,3,"label",33,P),i()(),t(15,"div",10)(16,"label",31),a(17,"Tempo de Exist\xEAncia"),i(),t(18,"div",60),E(19,mt,4,3,"label",33,P),i()()()),o&2){let e=s(2);r(7),w(e.opcoes_trabalhadores),r(6),w(e.opcoes_facturacao),r(6),w(e.opcoes_tempo)}}function ut(o,n){if(o&1&&(t(0,"fieldset",21)(1,"legend",30),a(2," 5. Projecto / Programa Pretendido "),i(),t(3,"div",10)(4,"label",31),a(5,"Projecto selecionado"),i(),t(6,"div",64),x(7,"div",65),t(8,"span",66),a(9),i(),t(10,"span",67),a(11,"Pr\xE9-selecionado"),i()()()()),o&2){let e=s(2);r(9),b(e.projecto_pretendido())}}function _t(o,n){if(o&1){let e=h();t(0,"label",69)(1,"input",72),_("change",function(){let d=p(e).$implicit,c=s(3);return u(c.toggleApoio(d))}),i(),t(2,"span",43),a(3),i()()}if(o&2){let e=n.$implicit,l=s(3);r(),g("value",e)("checked",l.tipo_apoio().includes(e)),r(2),b(e)}}function gt(o,n){if(o&1){let e=h();t(0,"input",73),_("ngModelChange",function(d){p(e);let c=s(3);return u(c.tipo_apoio_outro.set(d))}),i()}if(o&2){let e=s(3);g("ngModel",e.tipo_apoio_outro())}}function xt(o,n){if(o&1){let e=h();t(0,"fieldset",21)(1,"legend",30),a(2," 6. Tipo de Apoio Solicitado "),i(),t(3,"div",10)(4,"label",31),a(5,"Tipo de apoio "),t(6,"span",68),a(7,"(pode seleccionar v\xE1rios)"),i()(),t(8,"div",59),E(9,_t,4,3,"label",69,P),i(),f(11,gt,1,1,"input",70),i(),t(12,"div",1)(13,"label",31),a(14,"Descri\xE7\xE3o da Necessidade"),i(),t(15,"textarea",71),_("ngModelChange",function(d){p(e);let c=s(2);return u(c.descricao_necessidade.set(d))}),i()()()}if(o&2){let e=s(2);r(9),w(e.tipos_apoio_opcoes),r(2),C(e.tipo_apoio().includes("Outro")?11:-1),r(4),g("ngModel",e.descricao_necessidade())}}function ft(o,n){if(o&1){let e=h();t(0,"div",75)(1,"span",76),a(2),i(),t(3,"div",77)(4,"label",78)(5,"input",79),_("ngModelChange",function(d){let c=p(e).$implicit,T=s(3);return u(T.setSituacao(c.key,d))}),i(),t(6,"span",80),a(7,"Sim"),i()(),t(8,"label",78)(9,"input",81),_("ngModelChange",function(d){let c=p(e).$implicit,T=s(3);return u(T.setSituacao(c.key,d))}),i(),t(10,"span",80),a(11,"N\xE3o"),i()()()()}if(o&2){let e=n.$implicit,l=s(3);r(2),b(e.label),r(3),g("name",e.key)("ngModel",l.getSituacao(e.key)()),r(4),g("name",e.key)("ngModel",l.getSituacao(e.key)())}}function Ct(o,n){o&1&&(t(0,"fieldset",21)(1,"legend",30),a(2," 7. Situa\xE7\xE3o Actual da Empresa "),i(),t(3,"p",4),a(4,"A entidade possui:"),i(),t(5,"div",74),E(6,ft,12,5,"div",75,Ge),i()()),o&2&&(r(6),w(oe(6,He,j(0,De),j(1,Be),j(2,Ne),j(3,Le),j(4,ke),j(5,Ie))))}function vt(o,n){if(o&1){let e=h();t(0,"label",69)(1,"input",72),_("change",function(){let d=p(e).$implicit,c=s(3);return u(c.toggleImpacto(d))}),i(),t(2,"span",43),a(3),i()()}if(o&2){let e=n.$implicit,l=s(3);r(),g("value",e)("checked",l.impacto_esperado().includes(e)),r(2),b(e)}}function ht(o,n){if(o&1&&(t(0,"div",84),v(),t(1,"svg",85),x(2,"circle",86)(3,"path",87),i(),a(4),i()),o&2){let e=s(3);r(4),F(" ",e.erroEnvio()," ")}}function bt(o,n){if(o&1){let e=h();t(0,"fieldset",21)(1,"legend",30),a(2," 8. Impacto Esperado com o Apoio "),i(),t(3,"div",10)(4,"label",31),a(5,"Com o apoio do INAPEM pretende "),t(6,"span",68),a(7,"(pode seleccionar v\xE1rios)"),i()(),t(8,"div",59),E(9,vt,4,3,"label",69,P),i()(),t(11,"div",1)(12,"label",31),a(13,"N\xFAmero estimado de empregos a criar"),i(),t(14,"input",82),_("ngModelChange",function(d){p(e);let c=s(2);return u(c.empregos_a_criar.set(d))}),i()(),t(15,"div",83)(16,"strong"),a(17,"Declara\xE7\xE3o:"),i(),a(18," Declaro que as informa\xE7\xF5es prestadas nesta ficha correspondem \xE0 verdade e autorizo o INAP
1EM a proceder \xE0 an\xE1lise da presente solicita\xE7\xE3o de apoio. "),i(),f(19,ht,5,1,"div",84),i()}if(o&2){let e=s(2);r(9),w(e.impacto_opcoes),r(5),g("ngModel",e.empregos_a_criar()),r(5),C(e.erroEnvio()?19:-1)}}function Et(o,n){if(o&1){let e=h();t(0,"button",88),_("click",function(){p(e);let d=s(2);return u(d.recuar())}),v(),t(1,"svg",89),x(2,"path",90),i(),a(3," Anterior "),i()}}function wt(o,n){o&1&&x(0,"span")}function Mt(o,n){if(o&1&&(t(0,"button",91),a(1," Pr\xF3ximo "),v(),t(2,"svg",89),x(3,"path",92),i()()),o&2){let e=s(2);y(e.passoValido()?"bg-[#B11E23] text-white hover:bg-[#8f1519]":"bg-[#E2E8F0] text-[#94A3B8]"),g("disabled",!e.passoValido())}}function St(o,n){o&1&&(v(),t(0,"svg",93),x(1,"circle",94)(2,"path",95),i(),a(3," A enviar... "))}function Ft(o,n){o&1&&(a(0," Submeter Ficha "),v(),t(1,"svg",89),x(2,"path",92),i())}function yt(o,n){if(o&1&&(t(0,"button",26),f(1,St,4,0)(2,Ft,3,0),i()),o&2){let e=s(2);g("disabled",e.enviando()||!e.passoValido()),r(),C(e.enviando()?1:2)}}function At(o,n){if(o&1){let e=h();t(0,"div",14)(1,"div",15)(2,"span"),a(3),i(),t(4,"span"),a(5),i()(),t(6,"div",16),x(7,"div",17),i()(),t(8,"div",18),E(9,Ue,4,4,"button",19,Re),i(),t(11,"form",20),_("ngSubmit",function(){p(e);let d=s();return u(d.passoActual()===d.totalPassos?d.submeter():d.avancar())}),f(12,et,36,13,"fieldset",21),f(13,ot,28,6,"fieldset",21),f(14,dt,29,17,"fieldset",21),f(15,pt,21,0,"fieldset",22),f(16,ut,12,1,"fieldset",21),f(17,xt,16,2,"fieldset",21),f(18,Ct,8,13,"fieldset",21),f(19,bt,20,2,"fieldset",21),t(20,"div",23),f(21,Et,4,0,"button",24)(22,wt,1,0,"span"),f(23,Mt,4,3,"button",25)(24,yt,3,2,"button",26),i()()}if(o&2){let e=s();r(3),L("Passo ",e.passoActual()," de ",e.totalPassos),r(2),F("",e.progressoPct(),"% conclu\xEDdo"),r(2),ie("width",e.progressoPct(),"%"),r(2),w(e.passos),r(3),C(e.passoActual()===1?12:-1),r(),C(e.passoActual()===2?13:-1),r(),C(e.passoActual()===3?14:-1),r(),C(e.passoActual()===4?15:-1),r(),C(e.passoActual()===5?16:-1),r(),C(e.passoActual()===6?17:-1),r(),C(e.passoActual()===7?18:-1),r(),C(e.passoActual()===8?19:-1),r(2),C(e.passoActual()>1?21:22),r(2),C(e.passoActual()<e.totalPassos?23:24)}}var Ae=[{numero:1,titulo:"Identifica\xE7\xE3o"},{numero:2,titulo:"Localiza\xE7\xE3o"},{numero:3,titulo:"Representante"},{numero:4,titulo:"Dimens\xE3o"},{numero:5,titulo:"Projecto"},{numero:6,titulo:"Apoio"},{numero:7,titulo:"Situa\xE7\xE3o"},{numero:8,titulo:"Impacto"}],H=class o{servicoProjectos=A(D);gestaUsuario=A(re);servicoPartilhado=A(Me);validacoes=A(be);programa=k(null);registoSucesso=ne();passos=Ae;totalPassos=Ae.length;passoActual=m(1);enviando=m(!1);sucesso=m(!1);erroEnvio=m("");listaProv=m([]);municipiosDaProvincia=M(()=>this.listaProv().find(n=>n.nome===this.provincia())?.municipios??[]);nifTocado=m(!1);dataConstituicaoTocado=m(!1);repNomeTocado=m(!1);repBiTocado=m(!1);repTelefoneTocado=m(!1);repEmailTocado=m(!1);hoje=new Date().toISOString().split("T")[0];erroDataConstituicao=M(()=>this.dataConstituicaoTocado()?this.data_constituicao()?this.data_constituicao()<=this.hoje?"":"A data n\xE3o pode ser no futuro.":"Data obrigat\xF3ria.":"");erroNif=M(()=>this.nifTocado()?this.validacoes.validarNifEmpresa(this.nif())?"":"NIF inv\xE1lido (9 a 10 d\xEDgitos num\xE9ricos).":"");erroRepNome=M(()=>this.repNomeTocado()?this.validacoes.validarNomeCompleto(this.rep_nome())?"":"Introduza o nome completo (m\xEDnimo dois nomes).":"");erroRepBi=M(()=>this.repBiTocado()?this.validacoes.validarBI(this.rep_bi())?"":"BI inv\xE1lido. Ex: 005123456LA041":"");erroRepTelefone=M(()=>this.repTelefoneTocado()?this.validacoes.validarTelefone(this.rep_telefone())?"":"Telefone inv\xE1lido (9 d\xEDgitos num\xE9ricos).":"");erroRepEmail=M(()=>this.repEmailTocado()?this.validacoes.validarEmail(this.rep_email())?"":"Email inv\xE1lido.":"");passoValido=M(()=>{switch(this.passoActual()){case 1:return!!(this.tipo_entidade()&&this.nome_entidade().trim()&&this.validacoes.validarNifEmpresa(this.nif())&&this.numero_registo().trim()&&this.data_constituicao()&&this.data_constituicao()<=this.hoje&&this.sector_actividade()&&(this.sector_actividade()!=="Outro"||this.sector_outro().trim()));case 2:return!!(this.provincia()&&this.municipio()&&this.comuna_bairro().trim()&&this.endereco().trim());case 3:return!!(this.validacoes.validarNomeCompleto(this.rep_nome())&&this.rep_funcao().trim()&&this.validacoes.validarBI(this.rep_bi())&&this.validacoes.validarTelefone(this.rep_telefone())&&this.validacoes.validarEmail(this.rep_email()));case 4:return!!(this.num_trabalhadores()&&this.volume_facturacao()&&this.tempo_existencia());case 5:return!!this.projecto_pretendido();case 6:return!!(this.tipo_apoio().length>0&&(!this.tipo_apoio().includes("Outro")||this.tipo_apoio_outro().trim())&&this.descricao_necessidade().trim());case 7:return!!(this.tem_licenca()&&this.tem_conta_bancaria()&&this.tem_contabilidade()&&this.tem_certificado_inapem()&&this.tem_plano_negocio()&&this.tem_projecto_investimento());case 8:return this.impacto_esperado().length>
10&&String(this.empregos_a_criar()).trim()!=="";default:return!0}});progressoPct=M(()=>Math.round(this.passoActual()/this.totalPassos*100));tipo_entidade=m("");nome_entidade=m("");nif=m("");numero_registo=m("");data_constituicao=m("");sector_actividade=m("");sector_outro=m("");provincia=m("");municipio=m("");comuna_bairro=m("");endereco=m("");rep_nome=m("");rep_funcao=m("");rep_bi=m("");rep_telefone=m("");rep_email=m("");num_trabalhadores=m("");volume_facturacao=m("");tempo_existencia=m("");projecto_pretendido=m("");projecto_outro=m("");tipo_apoio=m([]);tipo_apoio_outro=m("");descricao_necessidade=m("");tem_licenca=m("");tem_conta_bancaria=m("");tem_contabilidade=m("");tem_certificado_inapem=m("");tem_plano_negocio=m("");tem_projecto_investimento=m("");impacto_esperado=m([]);empregos_a_criar=m("");tipos_entidade=["Microempresa","Pequena Empresa","M\xE9dia Empresa","Cooperativa","Startup","Empreendedor Individual"];sectores=["Agricultura","Agroind\xFAstria","Com\xE9rcio","Ind\xFAstria","Servi\xE7os","Economia Criativa","Tecnologia","Turismo","Outro"];opcoes_trabalhadores=["1 \u2013 5","6 \u2013 10","11 \u2013 20","21 \u2013 50","Mais de 50"];opcoes_facturacao=["2 - 5 milh\xF5es AOA","5 \u2013 25 milh\xF5es AOA","25 \u2013 50 milh\xF5es AOA","Acima de 100 milh\xF5es AOA"];opcoes_tempo=["Menos de 1 ano","1 \u2013 3 anos","4 \u2013 7 anos","Mais de 7 anos"];projectos=["REPLICA \u2013 Replica\xE7\xE3o de Pequenos Neg\xF3cios","CENAGRO \u2013 Centro de Inova\xE7\xE3o do Agroneg\xF3cio","BONASE \u2013 Bolsa Nacional das Associa\xE7\xF5es Empresariais","RECRIA \u2013 Apoio ao Empreendedorismo Criativo","PROMOVE \u2013 Moderniza\xE7\xE3o de Cooperativas","INCLUI \u2013 Inclus\xE3o Empreendedora","CISU \u2013 Centro de Inova\xE7\xE3o Startup Universit\xE1ria","EMPREETUR \u2013 Empreendedorismo Tur\xEDstico","RDE \u2013 Jovem Empreendedor","PROAPI \u2013 Apoio \xE0s Pequenas Ind\xFAstrias","CONECTAR \u2013 Plataforma de Conex\xE3o Investidores e Startups, MPME","PROFECOL \u2013 Projecto de Fomento Empresarial no Corredor do Lobito","GAEL / BAEL \u2013 Gabinete de Apoio ao Empreendedor Local","ECO MPME \u2013 Apoio \xE0s MPME sustent\xE1vel","RJE Angola \u2013 Rede Jovem Empreendedor","Outro"];tipos_apoio_opcoes=["Formaliza\xE7\xE3o do neg\xF3cio","Capacita\xE7\xE3o empresarial","Elabora\xE7\xE3o de plano de neg\xF3cio","Assist\xEAncia t\xE9cnica","Incuba\xE7\xE3o","Acelera\xE7\xE3o","Acesso ao financiamento","Apoio \xE0 comercializa\xE7\xE3o","Transforma\xE7\xE3o digital","Consultoria de gest\xE3o","Outro"];impacto_opcoes=["Criar novos empregos","Expandir produ\xE7\xE3o","Melhorar gest\xE3o","Aumentar vendas","Entrar em novos mercados","Melhorar qualidade","Exportar produtos","Formalizar actividade"];sim_nao=["Sim","N\xE3o"];constructor(){K(()=>{let n=this.programa()?.titulo;n&&this.projecto_pretendido.set(n)})}ngOnInit(){this.gestaUsuario.dadosUsuario().subscribe({next:n=>{let e=n?.user?.empresa?.nif;e&&this.nif.set(e)},error:()=>{}}),this.servicoPartilhado.getProvinciasComMunicipios().subscribe({next:n=>this.listaProv.set(n.data),error:n=>console.error("Erro ao buscar prov\xEDncias:",n)})}avancar(){this.passoActual()<this.totalPassos&&this.passoActual.update(n=>n+1)}recuar(){this.passoActual()>1&&this.passoActual.update(n=>n-1)}irParaPasso(n){n>=1&&n<=this.totalPassos&&this.passoActual.set(n)}toggleApoio(n){let e=this.tipo_apoio();this.tipo_apoio.set(e.includes(n)?e.filter(l=>l!==n):[...e,n])}toggleImpacto(n){let e=this.impacto_esperado();this.impacto_esperado.set(e.includes(n)?e.filter(l=>l!==n):[...e,n])}situacaoMap={tem_licenca:this.tem_licenca,tem_conta_bancaria:this.tem_conta_bancaria,tem_contabilidade:this.tem_contabilidade,tem_certificado_inapem:this.tem_certificado_inapem,tem_plano_negocio:this.tem_plano_negocio,tem_projecto_investimento:this.tem_projecto_investimento};getSituacao(n){return this.situacaoMap[n]}setSituacao(n,e){this.situacaoMap[n]?.set(e)}submeter(){let n={tipo_entidade:this.tipo_entidade(),nome_entidade:this.nome_entidade(),nif:this.nif(),numero_registo:this.numero_registo(),data_constituicao:this.data_constituicao(),sector_actividade:this.sector_actividade(),sector_outro:this.sector_outro(),provincia:this.provincia(),municipio:this.municipio(),comuna_bairro:this.comuna_bairro(),endereco:this.endereco(),rep_nome:this.rep_nome(),rep_funcao:this.rep_funcao(),rep_bi:this.rep_bi(),rep_telefone:this.rep_telefone(),rep_email:this.rep_email(),num_trabalhadores:this.num_trabalhadores(),volume_facturacao:this.volume_facturacao(),tempo_existencia:this.tempo_existencia(),projecto_pretendido:this.projecto_pretendido(),projecto_outro:this.projecto_outro(),tipo_apoio:this.tipo_apoio(),tipo_apoio_outro:this.tipo_apoio_outro(),descricao_necessidade:this.descricao_necessidade(),tem_licenca:this.tem_licenca(),tem_conta_bancaria:this.tem_conta_bancaria(),tem_contabilidade:this.tem_contabilidade(),tem_certificado_inapem:this.tem_certificado_inapem(),tem_plano_negocio:this.tem_plano_negocio(),tem_projecto_investimento:this.tem_projecto_investimento(),impacto_esperado:this.impacto_esperado(),empregos_a_criar:this.empregos_a_criar()};console.log("[FormAdesaoProjecto] Payload a enviar:",n),this.enviando.set(!0),this.erroEnvio.set(""),this.servicoProjectos.candidatarSe(this.programa().id,n).subscribe({next:e=>{this.enviando.set(!1),this.sucesso.set(!0),console.log("inscricao em projectos",e)},error:e=>{this.enviando.set(!1),this.erroEnvio.set(e?.error?.message??e?.message??"Erro desconhecido ao submeter a ficha."),console.error("[FormAdesaoProjecto] Erro:",e)}})}fecharSucesso(){this.registoSucesso.emit()}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=V({type:o,selectors:[["app-form-adesao-projecto"]],inputs:{programa:[1,"programa"]},outputs:{registoSucesso:"registoSucesso"},decls:9,vars:2,consts:[[1,"grid","grid-cols-1","gap-6"],[1,"grid","grid-cols-1","gap-1"],[1,"font-bold","text-xl","md:text-2xl","text-[#0F172A]"],[1,"text-sm","text-[#B11E23]","font-semibold"],[1,"text-xs","text-[#94A3B8]"],[1,"flex","flex-col","items-center","justify-center","gap-5","py-10","text-center"],[1,"w-16","h-16","rounded-full","bg-green-100","flex","items-center","justify-center"],["width","32","height","32","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg","aria-hidden","true"],["cx","12","cy","12","r","10","fill","#DCFCE7"],["d","M7 12.5l3.5 3.5 6.5-7","stroke","#16A34A","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"grid","grid-cols-1","gap-2"],[1,"font-bold","text-xl","text-[#0F172A]"],[1,"text-sm","text-[#475569]","max-w-72","mx-auto"],["type","button",1,"px-6","py-2.5","bg-[#B11E23]","text-white","text-sm","font-bold","rounded-lg","hover:bg-[#8f1519]","transition","cursor-pointer",3,"click"],[1,"grid","grid-cols-1","gap-1.5"],[1,"flex","items-center","justify-between","text-xs","text-[#94A3B8]"],[1,"w-full","h-1.5","bg-[#F1F5F9]","rounded-full","overflow-hidden"],[1,"h-full","bg-linear-to-r","from-[#BB1F2A]","to-[#F18026]","rounded-full","transition-all","duration-500"],[1,"flex","items-center","gap-1.5","flex-wrap"],["type","button",1,"flex","items-center","gap-1","px-2.5","py-1","rounded-full","text-[10px]","font-bold","transition","cursor-pointer",3,"class"],[1,"grid","grid-cols-1","gap-5",3,"ngSubmit"],[1,"grid","grid-cols-1","gap-4"],[1,"grid","grid-cols-1","gap-5"],[1,"flex","items-center","justify-between","pt-2","border-t","border-[#F1F5F9]"],["type","button",1,"flex","items-center","gap-1.5","px-4","py-2","rounded-lg","border","border-[#
1E2E8F0]","text-sm","font-semibold","text-[#475569]","hover:border-[#CBD5E1]","hover:text-[#0F172A]","transition","cursor-pointer"],["type","submit",1,"flex","items-center","gap-1.5","px-5","py-2.5","rounded-lg","text-sm","font-bold","transition","cursor-pointer","disabled:opacity-40","disabled:cursor-not-allowed",3,"disabled","class"],["type","submit",1,"flex","items-center","gap-2","px-5","py-2.5","rounded-lg","bg-linear-to-r","from-[#BB1F2A]","to-[#F18026]","text-white","text-sm","font-bold","hover:opacity-90","transition","cursor-pointer","disabled:opacity-60","disabled:cursor-not-allowed",3,"disabled"],["type","button",1,"flex","items-center","gap-1","px-2.5","py-1","rounded-full","text-[10px]","font-bold","transition","cursor-pointer",3,"click"],["width","10","height","10","viewBox","0 0 10 10","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M2 5.5l2.5 2.5 4-5","stroke","#15803D","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"font-bold","text-base","text-[#0F172A]","pb-1","border-b","border-[#F1F5F9]","w-full","mb-2"],[1,"text-sm","font-semibold","text-[#0F172A]"],[1,"grid","grid-cols-2","sm:grid-cols-3","gap-2"],[1,"flex","items-center","gap-2","cursor-pointer","group"],["type","text","name","nome_entidade","placeholder","Ex. Angola Tech Solutions, Lda","required","",1,"w-full","px-3","py-2.5","rounded-lg","border","border-[#E2E8F0]","text-sm","text-[#0F172A]","focus:outline-none","focus:border-[#B11E23]","focus:ring-1","focus:ring-[#B11E23]","transition",3,"ngModelChange","ngModel"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-4"],["type","text","name","nif","placeholder","5401234567","required","",1,"w-full","px-3","py-2.5","rounded-lg","border","text-sm","text-[#0F172A]","focus:outline-none","focus:ring-1","transition",3,"ngModelChange","blur","ngModel"],[1,"text-xs","text-red-600"],[1,"text-xs","text-green-600","flex","items-center","gap-1"],["type","text","name","numero_registo","placeholder","Ex. RC/LDA/12345","required","",1,"w-full","px-3","py-2.5","rounded-lg","border","border-[#E2E8F0]","text-sm","text-[#0F172A]","focus:outline-none","focus:border-[#B11E23]","focus:ring-1","focus:ring-[#B11E23]","transition",3,"ngModelChange","ngModel"],["type","date","name","data_constituicao","required","",1,"w-full","px-3","py-2.5","rounded-lg","border","text-sm","text-[#0F172A]","focus:outline-none","focus:ring-1","transition",3,"ngModelChange","blur","ngModel","max"],["type","text","name","sector_outro","placeholder","Especifique o sector",1,"w-full","mt-1","px-3","py-2.5","rounded-lg","border","border-[#E2E8F0]","text-sm","focus:outline-none","focus:border-[#B11E23]","focus:ring-1","focus:ring-[#B11E23]","transition",3,"ngModel"],["type","radio","name","tipo_entidade",1,"accent-[#B11E23]","w-4","h-4","shrink-0",3,"ngModelChange","value","ngModel"],[1,"text-xs","text-[#475569]","group-hover:text-[#0F172A]","transition"],["width","10","height","10","viewBox","0 0 10 10","fill","none"],["d","M2 5.5l2.5 2.5 4-5","stroke","currentColor","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["type","radio","name","sector_actividade",1,"accent-[#B11E23]","w-4","h-4","shrink-0",3,"ngModelChange","value","ngModel"],["type","text","name","sector_outro","placeholder","Especifique o sector",1,"w-full","mt-1","px-3","py-2.5","rounded-lg","border","border-[#E2E8F0]","text-sm","focus:outline-none","focus:border-[#B11E23]","focus:ring-1","focus:ring-[#B11E23]","transition",3,"ngModelChange","ngModel"],["name","provincia","required","",1,"w-full","px-3","py-2.5","rounded-lg","border","border-[#E2E8F0]","text-sm","text-[#0F172A]","focus:outline-none","focus:border-[#B11E23]","focus:ring-1","focus:ring-[#B11E23]","transition","bg-white",3,"ngModelChange","ngModel"],["value",""],[3,"value"],["name","municipio","required","",1,"w-full","px-3","py-2.5","rounded-lg","border","border-[#E2E8F0]","text-sm","text-[#0F172A]","focus:outline-none","focus:border-[#B11E23]","focus:ring-1","focus:ring-[#B11E23]","transition","bg-white","disabled:opacity-50","disabled:cursor-not-allowed",3,"ngModelChange","ngModel","disabled"],["type","text","name","comuna_bairro","placeholder","Ex. Bairro dos Minist\xE9rios","required","",1,"w-full","px-3","py-2.5","rounded-lg","border","border-[#
1E2E8F0]","text-sm","text-[#0F172A]","focus:outline-none","focus:border-[#B11E23]","focus:ring-1","focus:ring-[#B11E23]","transition",3,"ngModelChange","ngModel"],["name","endereco","rows","3","placeholder","Rua, n\xFAmero, refer\xEAncia...","required","",1,"w-full","px-3","py-2.5","rounded-lg","border","border-[#E2E8F0]","text-sm","text-[#0F172A]","focus:outline-none","focus:border-[#B11E23]","focus:ring-1","focus:ring-[#B11E23]","transition","resize-none",3,"ngModelChange","ngModel"],["type","text","name","rep_nome","placeholder","Ex. Jo\xE3o Manuel Silva","required","",1,"w-full","px-3","py-2.5","rounded-lg","border","text-sm","text-[#0F172A]","focus:outline-none","focus:ring-1","transition",3,"ngModelChange","blur","ngModel"],["type","text","name","rep_funcao","placeholder","Ex. Director Geral","required","",1,"w-full","px-3","py-2.5","rounded-lg","border","border-[#E2E8F0]","text-sm","text-[#0F172A]","focus:outline-none","focus:border-[#B11E23]","focus:ring-1","focus:ring-[#B11E23]","transition",3,"ngModelChange","ngModel"],["type","text","name","rep_bi","placeholder","Ex. 005123456LA041","required","",1,"w-full","px-3","py-2.5","rounded-lg","border","text-sm","text-[#0F172A]","focus:outline-none","focus:ring-1","transition",3,"ngModelChange","blur","ngModel"],["type","tel","name","rep_telefone","placeholder","Ex. 923000000","required","",1,"w-full","px-3","py-2.5","rounded-lg","border","text-sm","text-[#0F172A]","focus:outline-none","focus:ring-1","transition",3,"ngModelChange","blur","ngModel"],["type","email","name","rep_email","placeholder","[email protected]","required","",1,"w-full","px-3","py-2.5","rounded-lg","border","text-sm","text-[#0F172A]","focus:outline-none","focus:ring-1","transition",3,"ngModelChange","blur","ngModel"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-2"],[1,"grid","grid-cols-2","gap-2"],["type","radio","name","num_trabalhadores",1,"accent-[#B11E23]","w-4","h-4","shrink-0",3,"ngModelChange","value","ngModel"],["type","radio","name","volume_facturacao",1,"accent-[#B11E23]","w-4","h-4","shrink-0",3,"ngModelChange","value","ngModel"],["type","radio","name","tempo_existencia",1,"accent-[#B11E23]","w-4","h-4","shrink-0",3,"ngModelChange","value","ngModel"],[1,"flex","items-center","gap-3","px-4","py-3","rounded-lg","bg-[#FFF5F5]","border","border-[#FECACA]"],[1,"w-2","h-2","rounded-full","bg-[#B11E23]","shrink-0"],[1,"text-sm","font-semibold","text-[#B11E23]"],[1,"ml-auto","text-[10px]","font-bold","text-white","bg-[#B11E23]","px-2","py-0.5","rounded-full","uppercase","tracking-wide"],[1,"text-[#94A3B8]","font-normal"],[1,"flex","items-center","gap-2","cursor-pointer","group","p-2","rounded-lg","hover:bg-[#FFF5F5]","transition"],["type","text","name","tipo_apoio_outro","placeholder","Especifique o tipo de apoio",1,"w-full","px-3","py-2.5","rounded-lg","border","border-[#E2E8F0]","text-sm","focus:outline-none","focus:border-[#B11E23]","focus:ring-1","focus:ring-[#B11E23]","transition",3,"ngModel"],["name","descricao_necessidade","rows","4","placeholder","Descreva resumidamente o apoio pretendido...","required","",1,"w-full","px-3","py-2.5","rounded-lg","border","border-[#E2E8F0]","text-sm","text-[#0F172A]","focus:outline-none","focus:border-[#B11E23]","focus:ring-1","focus:ring-[#B11E23]","transition","resize-none",3,"ngModelChange","ngModel"],["type","checkbox",1,"accent-[#B11E23]","w-4","h-4","shrink-0",3,"change","value","checked"],["type","text","name","tipo_apoio_outro","placeholder","Especifique o tipo de apoio",1,"w-full","px-3","py-2.5","rounded-lg","border","border-[#E2E8F0]","text-sm","focus:outline-none","focus:border-[#B11E23]","focus:ring-1","focus:ring-[#B11E23]","transition",3,"ngModelChange","ngModel"],[1,"grid","grid-cols-1","gap-3"],[1,"flex","items-center","justify-between","py-2","px-3","rounded-lg","bg-[#F8FAFC]","border","border-[#F1F5F9]"],[1,"text-sm","text-[#0F172A]","font-medium"],[1,"flex","items-center","gap-3"],[1,"flex","items-center","gap-1.5","cursor-pointer"],["type","radio","value","Sim",1,"accent-[#B11E23]","w-4","h-4",3,"ngModelChange","name","ngModel"],[1,"text-xs","text-[#475569]"],["type","radio","value","N\xC3\xA3o",1,"accent-[#B11E23]","w-4","h-4",3,"ngModelChange","name","ngModel"],["type","number","name","empregos_a_criar","placeholder","Ex. 5","min","0","required","",1,"w-full","px-3","py-2.5","rounded-lg","border","border-[#
1E2E8F0]","text-sm","text-[#0F172A]","focus:outline-none","focus:border-[#B11E23]","focus:ring-1","focus:ring-[#B11E23]","transition",3,"ngModelChange","ngModel"],[1,"rounded-lg","bg-[#FFF5F5]","border","border-[#FECACA]","p-4","text-xs","text-[#7F1D1D]","leading-relaxed"],[1,"rounded-lg","bg-red-50","border","border-red-200","p-3","text-xs","text-red-700","flex","items-start","gap-2"],["width","14","height","14","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",1,"shrink-0","mt-0.5"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","1.8"],["d","M12 8v4M12 16h.01","stroke","currentColor","stroke-width","1.8","stroke-linecap","round"],["type","button",1,"flex","items-center","gap-1.5","px-4","py-2","rounded-lg","border","border-[#E2E8F0]","text-sm","font-semibold","text-[#475569]","hover:border-[#CBD5E1]","hover:text-[#0F172A]","transition","cursor-pointer",3,"click"],["width","14","height","14","viewBox","0 0 10 10","fill","none","xmlns","http://www.w3.org/2000/svg","aria-hidden","true"],["d","M2.89792 5.25H10V4.08333H2.89792L6.16458 0.816667L5.33333 0L0.666667 4.66667L5.33333 9.33333L6.16458 8.51667L2.89792 5.25Z","fill","currentColor"],["type","submit",1,"flex","items-center","gap-1.5","px-5","py-2.5","rounded-lg","text-sm","font-bold","transition","cursor-pointer","disabled:opacity-40","disabled:cursor-not-allowed",3,"disabled"],["d","M7.10208 5.25H0V4.08333H7.10208L3.83542 0.816667L4.66667 0L9.33333 4.66667L4.66667 9.33333L3.83542 8.51667L7.10208 5.25Z","fill","currentColor"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","aria-hidden","true",1,"animate-spin","h-4","w-4"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z",1,"opacity-75"]],template:function(e,l){if(e&1&&(t(0,"div",0)(1,"div",1)(2,"h2",2),a(3,"Ficha de Ades\xE3o ao Projecto"),i(),f(4,qe,2,1,"p",3),t(5,"p",4),a(6,"Todos os campos s\xE3o obrigat\xF3rios"),i()(),f(7,Ze,12,0,"div",5)(8,At,25,15),i()),e&2){let d;r(4),C((d=l.programa())!=null&&d.titulo?4:-1),r(3),C(l.sucesso()?7:8)}},dependencies:[he,pe,xe,fe,le,ue,ge,_e,de,se,ve,Ce,me,ce],encapsulation:2,changeDetection:0})};var Pt=["modalDetalhes"],jt=["modalInscrever"];function Tt(o,n){o&1&&(v(),t(0,"svg",65),x(1,"path",18),i())}function Vt(o,n){o&1&&(v(),t(0,"svg",66),x(1,"path",67),i())}function Dt(o,n){if(o&1){let e=h();t(0,"div",2)(1,"div",57),x(2,"img",58),i(),t(3,"div",59)(4,"div",60)(5,"h3",61),a(6),i(),t(7,"h4",62),a(8),i(),t(9,"p",63),a(10),i()(),t(11,"button",64),_("click",function(){p(e);let d=s();return u(d.maisDetalhesPrograma())}),a(12),f(13,Tt,2,0,":svg:svg",65)(14,Vt,2,0,":svg:svg",66),i()()()}if(o&2){let e=s();r(2),g("src",e.programa().imagem,X)("alt",e.programa().titulo),r(4),b(e.programa().titulo),r(2),F(" ",e.programa().sector?e.programa().sector:"Agroneg\xF3cio"," "),r(2),b(e.programa().objectivo),r(),y(e.programa().estado==="activo"?"bg-[#B11E23] text-white":"bg-[#E2E8F0] text-[#7B7B7B]"),r(),F(" ",e.programa().estado==="activo"?"Ver Mais":"Ver Hist\xF3rico"," "),r(),C(e.programa().estado==="activo"?13:14)}}function Bt(o,n){if(o&1&&(t(0,"li",68),v(),t(1,"svg",69),x(2,"path",70),i(),a(3),i()),o&2){let e=n.$implicit;r(3),F(" ",e," ")}}function Nt(o,n){if(o&1&&(t(0,"ul",43),E(1,Bt,4,1,"li",68,N),i()),o&2){let e=s();r(),w(e.ganhos())}}function Lt(o,n){o&1&&(t(0,"div",44),v(),t(1,"svg",71),x(2,"circle",72)(3,"path",73),i(),S(),t(4,"p",74),a(5,"Sem ganhos registados"),i(),t(6,"p",75),a(7,"Os ganhos operacionais deste programa ainda n\xE3o foram definidos."),i()())}function kt(o,n){if(o&1&&(t(0,"div",76)(1,"div",77)(2,"p",78),a(3),i(),v(),t(4,"svg",79),x(5,"path",80),i()()()),o&2){let e=n.$implicit;r(3),F(" ",e," ")}}function It(o,n){if(o&1&&E(0,kt,6,1,"div",76,N),o&2){let e=s();w(e.pAlvo())}}function Ht(o,n){o&1&&(t(0,"div",47),v(),t(1,"svg",71),x(2,"path",81)(3,"circle",82)(4,"path",83),i(),S(),t(5,"p",84),a(6,"Sem p\xFAblico definido"),i(),t(7,"p",85),a(8,"O p\xFAblico-alvo deste programa ainda n\xE3o foi especificado."),i()())}function Rt(o,n){if(o&1&&(t(0,"div",86)(1,"div",22)(2,"div",87),v(),t(3,"svg",88),x(4,"path",89),i()(),S(),t(5,"p",90),a(6),i()()()),o&2){let e=n.$implicit;r(6),b(e)}}function Ot(o,n){if(o&1&&E(0,Rt,7,1,"div",86,N),o&2){let e=s();w(e.parceiros())}}function Gt(o,n){o&1&&(t(0,"div",54),v(),t(1,"svg",71),x(2,"path",91)(3,"path",92),i(),S(),t(4,"p",84),a(5,"Sem parceiros listados"),i(),t(6,"p",85),a(7,"Ainda n\xE3o h\xE1 parceiros associados a este programa."),i()())}function qt(o,n){if(o&1){let e=h();t(0,"app-form-adesao-projecto",93),_("registoSucesso",function(){p(e),s();let d=te(87);return u(d.fecharModal())}),i()}if(o&2){let e=s();g("programa",e.programa())}}function Zt(o,n){if(o&1){let e=h();t(0,"app-login-inapem",94),_("loginSucesso",function(){p(e);let d=s();return u(d.candidatarSe())}),i()}}var R=class o{programa=k(null);ganhos=M(()=>this.programa()?.ganhos?.split(",").map(n=>
1n.trim()).filter(Boolean)??[]);pAlvo=M(()=>this.programa()?.p_alvo?.split(",").map(n=>n.trim()).filter(Boolean)??[]);parceiros=M(()=>this.programa()?.parceiros?.split(",").map(n=>n.trim()).filter(Boolean)??[]);modalDetalhes=G("modalDetalhes");modalInscrever=G("modalInscrever");auth=A(ae);servicoProjectos=A(D);platformId=A(B);eLogado=this.auth.eLogado;maisDetalhesPrograma(){this.programa()&&this.modalDetalhes()?.abrirModal()}candidatarSe(){console.log("programa"),this.programa()&&(this.programa().url&&I(this.platformId)?window.open(this.programa().url,"_blank"):(this.modalDetalhes()?.fecharModal(),this.modalInscrever()?.abrirModal()))}inscreverSe(){this.servicoProjectos.candidatarSe(this.programa().id,{}).subscribe({next:n=>{console.log("inscricao em projectos",n)},error:n=>{console.log("Erro ao inscrever em projectos",n)}})}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=V({type:o,selectors:[["app-card-programa"]],viewQuery:function(e,l){e&1&&Y(l.modalDetalhes,Pt,5)(l.modalInscrever,jt,5),e&2&&ee(2)},inputs:{programa:[1,"programa"]},decls:90,vars:15,consts:[["modalDetalhes",""],["modalInscrever",""],[1,"group","h-full","rounded-lg","md:rounded-xl","grid","grid-cols-1"],["maxWidth","4xl"],[1,"detalhes","grid","grid-cols-1","gap-6"],[1,"grid","grid-cols-1","gap-2"],[1,"text-lg","sm:text-xl","md:text-2xl","xl:text-3xl","font-extrabold","text-[#1A1C1C]","leading-tight"],[1,"text-xs","md:text-sm","text-[#475569]","leading-relaxed"],[1,"grid","grid-cols-1","gap-1"],[1,"text-base","sm:text-lg","md:text-xl","font-bold","text-[#1A1C1C]"],[1,"flex","flex-col","sm:flex-row","items-start","sm:items-center","justify-between","gap-3","pt-1"],["aria-label","Organiza\xE7\xE3o respons\xE1vel: INAPEM",1,"flex","items-center","gap-1.5","text-xs","text-[#94A3B8]"],["width","13","height","13","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg","aria-hidden","true"],["cx","12","cy","8","r","4","stroke","currentColor","stroke-width","1.8"],["d","M4 20c0-4 3.582-7 8-7s8 3 8 7","stroke","currentColor","stroke-width","1.8","stroke-linecap","round"],["type","button",1,"group/btn","relative","flex","items-center","justify-center","gap-2","w-full","sm:w-auto","px-5","py-2.5","rounded-lg","bg-[#B11E23]","text-white","text-xs","font-bold","cursor-pointer","overflow-hidden","transition-all","duration-300","ease-out","hover:bg-[#8f1519]","hover:shadow-lg","hover:shadow-[#B11E23]/30","hover:scale-105","hover:-translate-y-0.5","focus-visible:outline-2","focus-visible:outline-offset-2","focus-visible:outline-[#B11E23]","active:scale-95","active:translate-y-0",3,"click"],[1,"relative","z-10","transition-transform","duration-300","group-hover/btn:translate-x-0.5"],["viewBox","0 0 10 10","fill","none","xmlns","http://www.w3.org/2000/svg","aria-hidden","true",1,"relative","z-10","w-3.5","h-3.5","transition-transform","duration-300","group-hover/btn:translate-x-1"],["d","M7.10208 5.25H0V4.08333H7.10208L3.83542 0.816667L4.66667 0L9.33333 4.66667L4.66667 9.33333L3.83542 8.51667L7.10208 5.25Z","fill","white"],[1,"absolute","inset-0","bg-white/10","translate-y-full","transition-transform","duration-300","group-hover/btn:translate-y-0","rounded-lg"],[1,"grid","grid-cols-1","sm:grid-cols-2","gap-4","border-t","border-[#F1F5F9]","py-4","md:py-6"],[1,"rounded-md","md:rounded-lg","border-l-2","md:border-l-4","border-[#B11E23]","p-4","md:p-5","flex","flex-col","gap-4"],[1,"flex","items-center","gap-2"],[1,"w-8","h-8","md:w-8","md:h-8","p-2","shrink-0","rounded-md","bg-[#B11E23]/10","flex","items-center","justify-center"],["width","18","height","18","viewBox","0 0 18 18","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4 14H6V9H4V14ZM12 14H14V4H12V14ZM8 14H10V11H8V14ZM8 9H10V7H8V9ZM2 18C1.45 18 0.979167 17.8042 0.5875 17.4125C0.195833 17.0208 0 16.55 0 16V2C0 1.45 0.195833 0.979167 0.5875 0.5875C0.979167 0.195833 1.45 0 2 0H16C16.55 0 17.0208 0.195833 17.4125 0.5875C17.8042 0.979167 18 1.45 18 2V16C18 16.55 17.8042 17.0208 17.4125 17.4125C17.0208 17.8042 16.55 18 16 18H2Z","fill","#B11E23"],[1,"grid","grid-cols-1","gap-0","md:gap-1"],[1,"text-xs","
1sm:text-sm","md:text-base","text-[#475569]","leading-relaxed","flex-1"],[1,"grid","grid-cols-2","gap-3","md:gap-6","pt-2","border-t","border-[#F5F5F5]"],[1,"grid","grid-cols-1","gap-0.5"],[1,"flex","items-center","gap-1.5"],["width","22","height","21","viewBox","0 0 22 21","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M7.6 21L5.7 17.8L2.1 17L2.45 13.3L0 10.5L2.45 7.7L2.1 4L5.7 3.2L7.6 0L11 1.45L14.4 0L16.3 3.2L19.9 4L19.55 7.7L22 10.5L19.55 13.3L19.9 17L16.3 17.8L14.4 21L11 19.55L7.6 21ZM8.45 18.45L11 17.35L13.6 18.45L15 16.05L17.75 15.4L17.5 12.6L19.35 10.5L17.5 8.35L17.75 5.55L15 4.95L13.55 2.55L11 3.65L8.4 2.55L7 4.95L4.25 5.55L4.5 8.35L2.65 10.5L4.5 12.6L4.25 15.45L7 16.05L8.45 18.45ZM9.95 14.05L15.6 8.4L14.2 6.95L9.95 11.2L7.8 9.1L6.4 10.5L9.95 14.05Z","fill","#B11E23"],[1,"text-xs","md:text-sm","font-bold","text-[#1A1C1C]"],[1,"text-[9px]","md:text-xs","text-[#737373]","leading-relaxed"],["width","20","height","12","viewBox","0 0 20 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M1.4 12L0 10.6L7.4 3.15L11.4 7.15L16.6 2H14V0H20V6H18V3.4L11.4 10L7.4 6L1.4 12Z","fill","#B11E23"],[1,"rounded-xl","bg-linear-to-br","from-[#BB1F2A]","to-[#F18026]","p-4","md:p-5","flex","flex-col","gap-4","md:gap-6"],[1,"grid","grid-cols-1","gap-2","md:gap-4"],[1,"shrink-0"],["width","30","height","24","viewBox","0 0 30 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M12.675 17.25C13.275 17.85 14.05 18.1438 15 18.1313C15.95 18.1187 16.65 17.775 17.1 17.1L25.5 4.5L12.9 12.9C12.225 13.35 11.8688 14.0375 11.8313 14.9625C11.7937 15.8875 12.075 16.65 12.675 17.25ZM15 0C16.475 0 17.8938 0.20625 19.2563 0.61875C20.6187 1.03125 21.9 1.65 23.1 2.475L20.25 4.275C19.425 3.85 18.5688 3.53125 17.6812 3.31875C16.7937 3.10625 15.9 3 15 3C11.675 3 8.84375 4.16875 6.50625 6.50625C4.16875 8.84375 3 11.675 3 15C3 16.05 3.14375 17.0875 3.43125 18.1125C3.71875 19.1375 4.125 20.1 4.65 21H25.35C25.925 20.05 26.3438 19.0625 26.6063 18.0375C26.8688 17.0125 27 15.95 27 14.85C27 13.95 26.8937 13.075 26.6812 12.225C26.4688 11.375 26.15 10.55 25.725 9.75L27.525 6.9C28.275 8.075 28.8687 9.325 29.3062 10.65C29.7437 11.975 29.975 13.35 30 14.775C30.025 16.2 29.8625 17.5625 29.5125 18.8625C29.1625 20.1625 28.65 21.4 27.975 22.575C27.7 23.025 27.325 23.375 26.85 23.625C26.375 23.875 25.875 24 25.35 24H4.65C4.125 24 3.625 23.875 3.15 23.625C2.675 23.375 2.3 23.025 2.025 22.575C1.375 21.45 0.875 20.2563 0.525 18.9937C0.175 17.7312 0 16.4 0 15C0 12.925 0.39375 10.9812 1.18125 9.16875C1.96875 7.35625 3.04375 5.76875 4.40625 4.40625C5.76875 3.04375 7.3625 1.96875 9.1875 1.18125C11.0125 0.39375 12.95 0 15 0Z","fill","white"],[1,"text-base","sm:text-lg","md:text-xl","font-bold","text-white"],[1,"flex","flex-col","gap-2.5"],[1,"sms","flex","flex-col","items-center","justify-center","gap-2","py-4","md:py-6","text-center"],[1,"grid","grid-cols-1","sm:grid-cols-3","gap-4"],[1,"flex","flex-col","gap-2","bg-[#F3F3F3]","rounded-lg","p-4","md:p-5"],[1,"p_alvo","flex","flex-col","items-center","justify-center","gap-2","py-4","md:py-6","text-center"],[1,"text-xs","md:text-sm","text-[#5A403C]","leading-relaxed"],[1,"mt-auto","rounded-lg","bg-[#F1F5F9]","flex","flex-col","items-center","justify-center","gap-2","py-5","px-3"],["width","22","height","22","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg","aria-hidden","true"],["d","M3 11l19-9-9 19-2-8-8-2z","stroke","#CBD5E1","stroke-width","1.6","stroke-linecap","round","stroke-linejoin","round"],[1,"text-[9px]","font-bold","text-[#CBD5E1]","uppercase","tracking-wider","text-center"],[1,"flex","flex-col","gap-3","bg-[#FAFAFA]","rounded-lg","p-4","md:p-5"],[1,"parc","flex","flex-col","items-center","justify-center","gap-2","py-4","md:py-6","text-center"],[3,"maxWidth"],[3,"programa"],[1,"w-full","max-w-82","h-16","sm:h-22","md:h-28","xl:h-36","pt-2","sm:pt-6","px-6","md:pt-12","md:px-12","overflow-hidden","rounded-t-xl","md:rounded-t-2xl","bg-white"],[1,"w-full","h-full","object-contain",3,"src","alt"],[1,"flex","flex-col","justify-between","gap-2","md:gap-4","p-2"],[1,"grid","grid-cols-1","gap-1","md:gap-2"],[1,"text-[#0F172A]","font-bold","text-base","sm:text-xs","md:text-lg","lg:text-xl"],[1,"w-full","max-w-max","bg-[#BB1F2A]/15","px-3","py-1","rounded-xl","lg:rounded-2xl","capitalize","text-[#B11E23]","font-bold","text-[10px]","md:text-xs"],[1,"text-[#475569]","text-xs","lg:text-sm","leading-relaxed","line-clamp-2"],[1,"flex","items-center","justify-center","gap-2","w-full","transition-transform","duration-200","hover:scale-105","rounded-lg","px-4","py-2.5","text-xs","md:text-ms","xl:text-base","font-bold","cursor-pointer",3,"click"],["width","10","height","10","viewBox","0 0 10 10","fill","none","xmlns","http://www.w3.org/2000/svg"],["width","11","height","11","viewBox","0 0 11 11","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M5.25 10.5C3.90833 10.5 2.73924 10.0552 1.74271 9.16562C0.746181 8.27604 0.175 7.16528 0.0291667 5.83333H1.225C1.36111 6.84444 
11.81076 7.68056 2.57396 8.34167C3.33715 9.00278 4.22917 9.33333 5.25 9.33333C6.3875 9.33333 7.35243 8.93715 8.14479 8.14479C8.93715 7.35243 9.33333 6.3875 9.33333 5.25C9.33333 4.1125 8.93715 3.14757 8.14479 2.35521C7.35243 1.56285 6.3875 1.16667 5.25 1.16667C4.57917 1.16667 3.95208 1.32222 3.36875 1.63333C2.78542 1.94444 2.29444 2.37222 1.89583 2.91667H3.5V4.08333H0V0.583333H1.16667V1.95417C1.6625 1.33194 2.26771 0.850694 2.98229 0.510417C3.69688 0.170139 4.45278 0 5.25 0C5.97917 0 6.66215 0.138542 7.29896 0.415625C7.93576 0.692708 8.48993 1.06701 8.96146 1.53854C9.43299 2.01007 9.80729 2.56424 10.0844 3.20104C10.3615 3.83785 10.5 4.52083 10.5 5.25C10.5 5.97917 10.3615 6.66215 10.0844 7.29896C9.80729 7.93576 9.43299 8.48993 8.96146 8.96146C8.48993 9.43299 7.93576 9.80729 7.29896 10.0844C6.66215 10.3615 5.97917 10.5 5.25 10.5ZM6.88333 7.7L4.66667 5.48333V2.33333H5.83333V5.01667L7.7 6.88333L6.88333 7.7Z","fill","#7B7B7B"],[1,"flex","items-start","gap-2","text-white","text-xs","md:text-sm","leading-relaxed"],["width","12","height","12","viewBox","0 0 12 12","fill","none","xmlns","http://www.w3.org/2000/svg",1,"mt-1"],["d","M5.01667 8.51667L9.12917 4.40417L8.3125 3.5875L5.01667 6.88333L3.35417 5.22083L2.5375 6.0375L5.01667 8.51667ZM5.83333 11.6667C5.02639 11.6667 4.26806 11.5135 3.55833 11.2073C2.84861 10.901 2.23125 10.4854 1.70625 9.96042C1.18125 9.43542 0.765625 8.81806 0.459375 8.10833C0.153125 7.39861 0 6.64028 0 5.83333C0 5.02639 0.153125 4.26806 0.459375 3.55833C0.765625 2.84861 1.18125 2.23125 1.70625 1.70625C2.23125 1.18125 2.84861 0.765625 3.55833 0.459375C4.26806 0.153125 5.02639 0 5.83333 0C6.64028 0 7.39861 0.153125 8.10833 0.459375C8.81806 0.765625 9.43542 1.18125 9.96042 1.70625C10.4854 2.23125 10.901 2.84861 11.2073 3.55833C11.5135 4.26806 11.6667 5.02639 11.6667 5.83333C11.6667 6.64028 11.5135 7.39861 11.2073 8.10833C10.901 8.81806 10.4854 9.43542 9.96042 9.96042C9.43542 10.4854 8.81806 10.901 8.10833 11.2073C7.39861 11.5135 6.64028 11.6667 5.83333 11.6667ZM5.83333 10.5C7.13611 10.5 8.23958 10.0479 9.14375 9.14375C10.0479 8.23958 10.5 7.13611 10.5 5.83333C10.5 4.53056 10.0479 3.42708 9.14375 2.52292C8.23958 1.61875 7.13611 1.16667 5.83333 1.16667C4.53056 1.16667 3.42708 1.61875 2.52292 2.52292C1.61875 3.42708 1.16667 4.53056 1.16667 5.83333C1.16667 7.13611 1.61875 8.23958 2.52292 9.14375C3.42708 10.0479 4.53056 10.5 5.83333 10.5Z","fill","#FCA5A5"],["width","32","height","32","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg","aria-hidden","true",1,"md:w-10","md:h-10"],["cx","12","cy","12","r","10","stroke","white","stroke-width","1.6","stroke-opacity","0.4"],["d","M12 8v4M12 16h.01","stroke","white","stroke-width","1.8","stroke-linecap","round"],[1,"text-xs","md:text-sm","font-semibold","text-white/80"],[1,"text-[10px]","md:text-xs","text-white/55","leading-relaxed","max-w-[18ch]"],[1,"flex","flex-col","gap-1.5"],[1,"flex","items-center","gap-1","justify-between","rounded-lg","bg-white","px-3","py-2"],[1,"text-xs","md:text-sm","font-medium","text-[#1A1C1C]"],["width","24","height","12","viewBox","0 0 24 12","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M0 12V10.425C0 9.70833 0.366667 9.125 1.1 8.675C1.83333 8.225 2.8 8 4 8C4.21667 8 4.425 8.00417 4.625 8.0125C4.825 8.02083 5.01667 8.04167 5.2 8.075C4.96667 8.425 4.79167 8.79167 4.675 9.175C4.55833 9.55833 4.5 9.95833 4.5 10.375V12H0ZM6 12V10.375C6 9.84167 6.14583 9.35417 6.4375 8.9125C6.72917 8.47083 7.14167 8.08333 7.675 7.75C8.20833 7.41667 8.84583 7.16667 9.5875 7C10.3292 6.83333 11.1333 6.75 12 6.75C12.8833 6.75 13.6958 6.83333 14.4375 7C15.1792 7.16667 15.8167 7.41667 16.35 7.75C16.8833 8.08333 17.2917 8.47083 17.575 8.9125C17.8583 9.35417 18 9.84167 18 10.375V12H6ZM19.5 12V10.375C19.5 9.94167 19.4458 9.53333 19.3375 9.15C19.2292 8.76667 19.0667 8.40833 18.85 8.075C19.0333 8.04167 19.2208 8.02083 19.4125 8.0125C19.6042 8.00417 19.8 8 20 8C21.2 8 22.1667 8.22083 22.9 8.6625C23.6333 9.10417 24 9.69167 24 10.425V12H19.5ZM8.125 10H15.9C15.7333 9.66667 15.2708 9.375 14.5125 9.125C13.7542 8.875 12.9167 8.75 12 8.75C11.0833 8.75 10.2458 8.875 9.4875 9.125C8.72917 9.375 8.275 9.66667 8.125 10ZM4 7C3.45 7 2.97917 6.80417 2.5875 6.4125C2.19583 6.02083 2 5.55 2 5C2 4.43333 2.19583 3.95833 2.5875 3.575C2.97917 3.19167 3.45 3 4 3C4.56667 3 5.04167 3.19167 5.425 3.575C5.80833 3.95833 6 4.43333 6 5C6 5.55 5.80833 6.02083 5.425 6.4125C5.04167 6.80417 4.56667 7 4 7ZM20 7C19.45 7 18.9792 6.80417 18.5875 6.4125C18.1958 6.02083 18 5.55 18 5C18 4.43333 18.1958 3.95833 18.5875 3.575C18.9792 3.19167 19.45 3 20 3C20.5667 3 21.0417 3.19167 21.425 3.575C21.8083 3.95833 22 4.43333 22 5C22 5.55 21.8083 6.02083 21.425 6.4125C21.0417 6.80417 20.5667 7 20 7ZM12 6C11.1667 6 10.4583 5.70833 9.875 5.125C9.29167 4.54167 9 3.83333 9 3C9 2.15 9.29167 1.4375 9.875 0.8625C10.4583 0.2875 11.1667 0 12 0C12.85 0 13.5625 0.2875 14.1375 0.8625C14.7125 1.4375 15 2.15 15 3C15 3.83333 14.7125 4.54167 14.1375 5.125C13.5625 5.70833 12.85 6 12 6ZM12 4C12.2833 4 12.5208 3.90417 12.7125 3.7125C12.9042 3.52083 13 3.28333 13 3C13 2.71667 12.9042 2.47917 12.7125 2.2875C12.5208 2.09583 12.2833 2 12 2C11.7167 2 11.4792 2.09583 11.2875 2.2875C11.0958 2.47917 11 2.71667 11 3C11 3.28333 11.0958 3.52083 11.2875 3.7125C11.4792 3.90417 11.7167 4 12 4Z","fill","#D4D4D4"],["d","M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2","stroke","#D4D4D4","stroke-width","1.6","stroke-linecap","round"],["cx","9","cy","7","r","4","stroke","#D4D4D4","stroke-width","1.6"],["d","M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75","stroke","#D4D4D4","stroke-width","1.6","stroke-linecap","round"],[1,"text-xs","md:text-sm","font-semibold","text-[#9CA3AF]"],[1,"text-[10px]","md:text-xs","text-[#D4D4D4]","leading-relaxed","max-w-[20ch]"],[1,"flex","flex-col","gap-2"],[1,"w-6","h-6","shrink-0","rounded-md","bg-white","flex","items-center","justify-center"],["width","19","height","25","viewBox","0 0 19 25","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.375 25C8.6875 25 8.09896 24.7552 7.60938 24.2656C7.11979 23.776 6.875 23.1875 6.875 22.5H11.875C11.875 23.1875 11.6302 23.776 11.1406 24.2656C10.651 24.7552 10.0625 25 9.375 25ZM4.375 21.25V18.75H14.375V21.25H4.375ZM4.6875 17.5C3.25 16.6458 2.10938 15.5 1.26562 14.0625C0.421875 12.625 0 11.0625 0 9.375C0 6.77083 0.911458 4.55729 2.73438 2.73438C4.55729 0.911458 6.7
17083 0 9.375 0C11.9792 0 14.1927 0.911458 16.0156 2.73438C17.8385 4.55729 18.75 6.77083 18.75 9.375C18.75 11.0625 18.3281 12.625 17.4844 14.0625C16.6406 15.5 15.5 16.6458 14.0625 17.5H4.6875ZM5.4375 15H13.3125C14.25 14.3333 14.974 13.5104 15.4844 12.5312C15.9948 11.5521 16.25 10.5 16.25 9.375C16.25 7.45833 15.5833 5.83333 14.25 4.5C12.9167 3.16667 11.2917 2.5 9.375 2.5C7.45833 2.5 5.83333 3.16667 4.5 4.5C3.16667 5.83333 2.5 7.45833 2.5 9.375C2.5 10.5 2.75521 11.5521 3.26562 12.5312C3.77604 13.5104 4.5 14.3333 5.4375 15Z","fill","#BD0F0F"],[1,"text-xs","text-[#1A1C1C]"],["d","M12 2L2 7l10 5 10-5-10-5z","stroke","#D4D4D4","stroke-width","1.6","stroke-linecap","round","stroke-linejoin","round"],["d","M2 17l10 5 10-5M2 12l10 5 10-5","stroke","#D4D4D4","stroke-width","1.6","stroke-linecap","round","stroke-linejoin","round"],[3,"registoSucesso","programa"],[3,"loginSucesso"]],template:function(e,l){if(e&1&&(f(0,Dt,15,9,"div",2),t(1,"app-modal-geral",3,0)(3,"div",4)(4,"div",5)(5,"h1",6),a(6),i(),t(7,"p",7),a(8),i(),t(9,"div",8)(10,"h3",9),a(11," Objectivo do Projecto "),i(),t(12,"p",7),a(13),i()(),t(14,"div",10)(15,"span",11),v(),t(16,"svg",12),x(17,"circle",13)(18,"path",14),i(),a(19," INAPEM "),i(),S(),t(20,"button",15),_("click",function(){return l.candidatarSe()}),t(21,"span",16),a(22," Participar do Projecto "),i(),v(),t(23,"svg",17),x(24,"path",18),i(),S(),x(25,"span",19),i()()(),t(26,"div",20)(27,"div",21)(28,"div",22)(29,"div",23),v(),t(30,"svg",24),x(31,"path",25),i()(),S(),t(32,"h3",9),a(33,"Impacto & Import\xE2ncia"),i()(),t(34,"div",26)(35,"p",27),a(36),i(),t(37,"p",27),a(38),i()(),t(39,"div",28)(40,"div",29)(41,"div",30),v(),t(42,"svg",31),x(43,"path",32),i(),S(),t(44,"h4",33),a(45,"Metas"),i()(),t(46,"p",34),a(47),i()(),t(48,"div",29)(49,"div",30),v(),t(50,"svg",35),x(51,"path",36),i(),S(),t(52,"h4",33),a(53,"Sector"),i()(),t(54,"p",34),a(55),i()()()(),t(56,"div",37)(57,"div",38)(58,"div",39),v(),t(59,"svg",40),x(60,"path",41),i()(),S(),t(61,"h3",42),a(62,"Ganhos Operacionais"),i()(),f(63,Nt,3,0,"ul",43)(64,Lt,8,0,"div",44),i()(),t(65,"div",45)(66,"div",46)(67,"h3",9),a(68,"P\xFAblico-alvo"),i(),f(69,It,2,0)(70,Ht,9,0,"div",47),i(),t(71,"div",46)(72,"h3",9),a(73,"Zona de Implementa\xE7\xE3o"),i(),t(74,"p",48),a(75),i(),t(76,"div",49),v(),t(77,"svg",50),x(78,"path",51),i(),S(),t(79,"p",52),a(80,"Visualiza\xE7\xE3o Geo-Espacial"),i()()(),t(81,"div",53)(82,"p",33),a(83,"Parceiros Estrat\xE9gicos"),i(),f(84,Ot,2,0)(85,Gt,8,0,"div",54),i()()()(),t(86,"app-modal-geral",55,1),f(88,qt,1,1,"app-form-adesao-projecto",56)(89,Zt,1,0,"app-login-inapem"),i()),e&2){let d,c,T,Z,$,z,U,J;C(l.programa()?0:-1),r(6),L(" ",(d=l.programa())==null?null:d.titulo," ",(d=l.programa())!=null&&d.subtitulo?`- ${(d=l.programa())==null?null:d.subtitulo}`:""," "),r(2),b((c=l.programa())==null?null:c.descricao),r(5),b((T=l.programa())==null?null:T.objectivo),r(23),F(" ",((Z=l.programa())==null?null:Z.importancia)||""," "),r(2),F(" ",(($=l.programa())==null?null:$.impacto)||""," "),r(9),F(" ",((z=l.programa())==null?null:z.meta)||"Metas a definir"," "),r(8),F(" ",((U=l.programa())==null?null:U.sector)||"Sector a definir"," "),r(8),C(l.ganhos().length?63:64),r(6),C(l.pAlvo().length?69:70),r(6),F(" ",((J=l.programa())==null?null:J.zona_implem)||"Cobertura total em todos os munic\xEDpios das 18 prov\xEDncias de Angola."," "),r(9),C(l.parceiros().length?84:85),r(2),g("maxWidth",l.eLogado()?"3xl":"md"),r(2),C(l.eLogado()?88:89)}},dependencies:[Se,Ee,H],encapsulation:2,changeDetection:0})};var $t=(o,n)=>n.value,zt=(o,n)=>n.id;function Ut(o,n){if(o&1){let e=h();t(0,"button",15),_("click",function(){let d=p(e).$implicit,c=s();return u(c.aplicarFiltro(d.value))}),a(1),i()}if(o&2){let e=n.$implicit,l=s();y(l.filtroActivo()===e.value?"px-3 py-1 md:px-4 md:py-2 rounded-xl sm:rounded-2xl xl:rounded-3xl text-xs lg:text-sm font-semibold transition-transform duration-200 hover:scale-105 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#B11E23] focus-visible:ring-offset-2 cursor-pointer bg-[#BD0F0F] text-white":"px-3 py-1 md:px-4 md:py-2 rounded-xl sm:rounded-2xl xl:rounded-3xl text-xs lg:text-sm font-semibold transition-transform duration-200 hover:scale-105 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#B11E23] focus-visible:ring-offset-2 cursor-pointer bg-transparent text-[#585959] border border-[#
1E2E8F0] hover:border-[#BD0F0F]"),r(),F(" ",e.label," ")}}function Jt(o,n){o&1&&(t(0,"div",11),v(),t(1,"svg",16),x(2,"circle",17)(3,"path",18),i()())}function Qt(o,n){o&1&&a(0," De momento n\xE3o existem projectos encerrados. Os projectos conclu\xEDdos ser\xE3o listados aqui assim que dispon\xEDveis. ")}function Wt(o,n){o&1&&a(0," N\xE3o foi encontrado nenhum projecto correspondente \xE0 sua pesquisa. Tente um termo diferente ou ajuste os filtros. ")}function Kt(o,n){if(o&1&&(t(0,"div",12),v(),t(1,"svg",19),x(2,"path",20)(3,"animateTransform",21),i(),S(),t(4,"div",22)(5,"p",23),a(6,"Nenhum projecto encontrado"),i(),t(7,"p",24),f(8,Qt,1,0)(9,Wt,1,0),i()()()),o&2){let e=s();r(8),C(e.filtroActivo()==="inactivo"?8:9)}}function Xt(o,n){if(o&1&&(t(0,"div",25),x(1,"app-card-programa",26),i()),o&2){let e=n.$implicit;r(),g("programa",e)}}function Yt(o,n){if(o&1&&(t(0,"div",13),E(1,Xt,2,1,"div",25,zt),i()),o&2){let e=s();r(),w(e.projectosVisiveis())}}function ei(o,n){if(o&1){let e=h();t(0,"div",14)(1,"button",27),_("click",function(){p(e);let d=s();return u(d.alternarVerMais())}),a(2),i()()}if(o&2){let e=s();r(2),F(" ",e.verMais()?"Ver Menos":"Ver Todos"," ")}}var Te=6,ti=1e3;function q(o){return o.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim()}var Ve=class o{servicoProjectos=A(D);ngOnInit(){this.buscarTodosProjectos()}buscarTodosProjectos(){this.carregando.set(!0),this.servicoProjectos.getProjectos().subscribe({next:n=>{this.listaDeProjectos.set(n.data??[]),this.carregando.set(!1)},error:n=>{this.carregando.set(!1)}})}platformId=A(B);listaDeProjectos=m([]);filtroActivo=m("todos");verMais=m(!1);carregando=m(!1);pesquisando=m(!1);buscaSubject=new Q;termoBusca=we(this.buscaSubject.pipe(O(()=>this.pesquisando.set(!0)),W(ti),O(()=>this.pesquisando.set(!1))),{initialValue:""});listaDeFiltros=[{label:"Todos",value:"todos"},{label:"Activos",value:"activo"},{label:"Encerrados",value:"inactivo"}];projectosFiltrados=M(()=>{let n=this.filtroActivo(),e=q(this.termoBusca());return this.listaDeProjectos().filter(l=>{let d=n==="todos"||l.estado===n,c=!e||q(l.titulo??"").includes(e)||q(l.objectivo??"").includes(e);return d&&c})});projectosVisiveis=M(()=>{let n=this.projectosFiltrados();return this.verMais()?n:n.slice(0,Te)});temMaisItems=M(()=>this.projectosFiltrados().length>Te);aplicarFiltro(n){this.filtroActivo.set(n),this.verMais.set(!1)}onBusca(n){this.buscaSubject.next(n.target.value)}scrollToTop(){I(this.platformId)&&window.scrollTo({top:0,behavior:"smooth"})}alternarVerMais(){if(this.verMais()){this.verMais.set(!1),this.scrollToTop();return}this.carregando.set(!0),setTimeout(()=>{this.verMais.set(!0),this.carregando.set(!1),this.scrollToTop()},800)}static \u0275fac=function(e){return new(e||o)};static \u0275cmp=V({type:o,selectors:[["app-projectos"]],decls:16,vars:2,consts:[[1,"grid","grid-cols-1","gap-0","border-b","border-[#585959]/50","pb-12","mb-24"],["imagem","estudantes.jpg","txt_chamada","Inicio > Projectos","titulo1","Nossos ","titulo2","Projectos ","titulo3","Estrat\xE9gicos","descricao","Acompanhe as iniciativas estrat\xE9gicas focadas no desenvolvimento econ\xF3mico sustent\xE1vel, diversifica\xE7\xE3o da produ\xE7\xE3o nacional e melhoria do bem-estar social dos cidad\xE3os angolanos."],["data-aos","fade-up","data-aos-delay","200",1,"dja","grid","grid-cols-1","gap-4","lg:gap-8","p-2","md:p-4","py-4","md:py-8"],["titulo","Programas e projectos INAPEM","descricao","Saiba dos principais programas do mundo das Micro, M\xE9dias e pequenas empresas em Angola"],[1,"w-full","flex","flex-col","sm:flex-row","items-start","sm:items-center","justify-between","gap-2"],[1,"flex","items-center","gap-2","md:gap-4"],[3,"class"],[1,"relative","w-[95%]","max-w-85","sm:max-w-64"],["width","12","height","12","viewBox","0 0 11 11","fill","none","xmlns","http://www.w3.org/2000/svg","aria-hidden","true",1,"absolute","left-2","top-1/2","-translate-y-1/2","pointer-events-none"],["d","M9.68333 10.5L6.00833 6.825C5.71667 7.05833 5.38125 7.24306 5.00208 7.37917C4.62292 7.51528 4.21944 7.58333 3.79167 7.58333C2.73194 7.58333 1.83507 7.21632 1.10104 6.48229C0.367014 5.74826 0 4.85139 0 3.79167C0 2.73194 0.367014 1.83507 1.10104 1.10104C1.83507 0.367014 2.73194 0 3.79167 0C4.85139 0 5.74826 0.367014 6.48229 1.10104C7.21632 1.83507 7.58333 2.73194 7.58333 3.79167C7.58333 4.21944 7.51528 4.62292 7.37917 5.00208C7.24306 5.38125 7.05833 5.71667 6.825 6.00833L10.5 9.68333L9.68333 10.5ZM3.79167 6.41667C4.52083 6.41667 5.14062 6.16146 5.65104 5.65104C6.16146 5.14062 6.41667 4.52083 6.41667 3.79167C6.41667 3.0625 6.16146 2.44271 5.
165104 1.93229C5.14062 1.42188 4.52083 1.16667 3.79167 1.16667C3.0625 1.16667 2.44271 1.42188 1.93229 1.93229C1.42188 2.44271 1.16667 3.0625 1.16667 3.79167C1.16667 4.52083 1.42188 5.14062 1.93229 5.65104C2.44271 6.16146 3.0625 6.41667 3.79167 6.41667Z","fill","#94A3B8"],["type","text","placeholder","Pesquisar por Programas","aria-label","Pesquisar por Programas",1,"w-full","max-w-86","pl-7","pr-2","py-2","border","border-[#E2E8F0]","rounded-xl","md:rounded-3xl","font-regular","text-xs","md:text-sm","text-[#6B7280]","outline-none",3,"input"],[1,"flex","justify-center","items-center","py-16"],["role","status","aria-live","polite",1,"flex","flex-col","items-center","justify-center","gap-5","py-16","text-center"],[1,"grid","grid-cols-2","md:grid-cols-3","gap-4","lg:gap-8"],[1,"flex","justify-center","mt-2"],[3,"click"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","aria-label","A carregar",1,"animate-spin","h-10","w-10","text-[#BD0F0F]"],["cx","12","cy","12","r","10","stroke","currentColor","stroke-width","4",1,"opacity-25"],["fill","currentColor","d","M4 12a8 8 0 018-8v4a4 4 0 00-4 4H4z",1,"opacity-75"],["xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 24 24","stroke","currentColor","stroke-width","1","aria-hidden","true",1,"w-16","h-16","text-[#E2E8F0]"],["stroke-linecap","round","stroke-linejoin","round","d","M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v8.25m19.5 0A2.25 2.25 0 0 1 19.5 21H4.5a2.25 2.25 0 0 1-2.25-2.25V6.75"],["attributeName","transform","type","translate","values","0 0; 0 -4; 0 0","dur","3s","repeatCount","indefinite"],[1,"flex","flex-col","gap-2"],[1,"text-base","font-semibold","text-[#1a1a1a]"],[1,"text-sm","text-[#585959]","max-w-sm"],[1,"border","border-[#F1F5F9]","rounded-lg","md:rounded-xl"],[3,"programa"],[1,"px-6","py-2","rounded-3xl","text-sm","font-semibold","border","border-[#BD0F0F]","text-[#BD0F0F]","hover:bg-[#BD0F0F]","hover:text-white","transition-colors","duration-200","cursor-pointer","focus-visible:outline-none","focus-visible:ring-2","focus-visible:ring-[#B11E23]","focus-visible:ring-offset-2",3,"click"]],template:function(e,l){e&1&&(t(0,"main",0),x(1,"app-banner-geral",1),t(2,"section",2),x(3,"app-titulo-de-seccao",3),t(4,"div",4)(5,"div",5),E(6,Ut,2,3,"button",6,$t),i(),t(8,"div",7),v(),t(9,"svg",8),x(10,"path",9),i(),S(),t(11,"input",10),_("input",function(c){return l.onBusca(c)}),i()()(),f(12,Jt,4,0,"div",11)(13,Kt,10,1,"div",12)(14,Yt,3,0,"div",13),f(15,ei,3,1,"div",14),i()()),e&2&&(r(6),w(l.listaDeFiltros),r(6),C(l.carregando()||l.pesquisando()?12:l.projectosVisiveis().length===0?13:14),r(3),C(l.temMaisItems()?15:-1))},dependencies:[Fe,ye,R],encapsulation:2,changeDetection:0})};export{Ve as Projectos};

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.