1"use strict";(self.webpackChunkportal_client=self.webpackChunkportal_client||[]).push([[809],{7809:(tt,p,i)=>{i.r(p),i.d(p,{MesajSiteModule:()=>P});var l=i(9808),m=i(4406),o=i(3075),Z=i(8929),u=i(1737),x=i(567),F=i(2986),d=i(7625),g=i(7221),t=i(5e3),A=i(520);let M=(()=>{class e{constructor(r){this.http=r}create(r){return this.http.post("api/v1/mesajesite",r)}}return e.\u0275fac=function(r){return new(r||e)(t.LFG(A.eN))},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var C=i(4971),S=i(2290),f=i(2272),T=i(2765),h=i(2313),j=i(1528),N=i(9444);function L(e,n){if(1&e&&(t.TgZ(0,"small",30),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&e){const r=t.oxw();t.xp6(1),t.AsE(" ",t.lcZ(2,2,"app.NotNullMessage")," ",t.xi3(3,4,"app.SizeMaxmessage",r.paramMax100)," ")}}function I(e,n){if(1&e&&(t.TgZ(0,"small",30),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&e){const r=t.oxw();t.xp6(1),t.AsE(" ",t.lcZ(2,2,"app.NotNullMessage")," ",t.xi3(3,4,"app.SizeMaxmessage",r.paramMax100)," ")}}function U(e,n){if(1&e&&(t.TgZ(0,"small",30),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&e){const r=t.oxw();
1t.xp6(1),t.AsE(" ",t.lcZ(2,2,"app.NotNullMessage")," ",t.xi3(3,4,"app.SizeMaxmessage",r.paramMax100)," ")}}function q(e,n){if(1&e&&(t.TgZ(0,"small",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e){const r=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,1,"app.SizeMaxmessage",r.paramMax100)," ")}}function b(e,n){if(1&e&&(t.TgZ(0,"small",30),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&e){const r=t.oxw();t.xp6(1),t.AsE(" ",t.lcZ(2,2,"app.NotNullMessage")," ",t.xi3(3,4,"app.SizeMaxmessage",r.paramMax50)," ")}}function J(e,n){if(1&e&&(t.TgZ(0,"small",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e){const r=t.oxw();t.xp6(1),t.hij(" ",t.xi3(2,1,"app.SizeMaxmessage",r.paramMax50)," ")}}function E(e,n){if(1&e&&(t.TgZ(0,"small",30),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.ALo(4,"translate"),t.qZA()),2&e){const r=t.oxw();t.xp6(1),t.lnq(" ",t.lcZ(2,3,"app.NotNullMessage")," ",t.lcZ(3,5,"app.EmailMessage")," ",t.xi3(4,7,"app.SizeMaxmessage",r.paramMax100)," ")}}function z(e,n){if(1&e&&(t.TgZ(0,"small",30),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&e){const r=t.oxw();
1t.xp6(1),t.AsE(" ",t.lcZ(2,2,"app.NotNullMessage")," ",t.xi3(3,4,"app.SizeMaxmessage",r.paramMax100)," ")}}function Q(e,n){if(1&e&&(t.TgZ(0,"option",16),t._uU(1),t.qZA()),2&e){const r=n.$implicit;t.Q6J("value",r.id),t.xp6(1),t.hij("",r.denTara," ")}}function _(e,n){1&e&&(t.TgZ(0,"small",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"app.NotNullMessage")," "))}function k(e,n){if(1&e&&(t.TgZ(0,"small",30),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&e){const r=t.oxw();t.xp6(1),t.AsE(" ",t.lcZ(2,2,"app.NotNullMessage")," ",t.xi3(3,4,"app.SizeMaxmessage",r.paramMax300)," ")}}function y(e,n){if(1&e&&(t.TgZ(0,"small",30),t._uU(1),t.ALo(2,"translate"),t.ALo(3,"translate"),t.qZA()),2&e){const r=t.oxw();t.xp6(1),t.AsE(" ",t.lcZ(2,2,"app.NotNullMessage")," ",t.xi3(3,4,"app.SizeMaxmessage",r.paramMax2000)," ")}}function Y(e,n){1&e&&(t.TgZ(0,"small",30),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&e&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"app.NotNullMessage")," "))}const s=function(e){return{"is-invalid":e}},w=function(){return["fas","save"]},K=function(){return["fas","ban"]},R=[{path:"",component:(()=>{class e{constructor(r,a,c,G,$,B,W,X,H){this.apiService=r,this.taraApi=a,this.toastrService=c,this.translateService=G,this.router=$,this.route=B,this.languageService=W,this.titleService=X,this.metaTagService=H,this.isLoading=!1,this.isSaving=!1,this.paramMax100={max:100},this.paramMax50={max:50},this.paramMax300={max:300},this.paramMax2000={max:2e3},this.msgInformare="",this.msgOperatieSucces="",this.unsubscribe$=new Z.xQ,this.titleContactRo="Portul Constanta \u2013 Contact",this.titleContactEn="Port of Constanta \u2013 Contact",this.descContactRo="Formular si date de contact pentru Administratia Portului Constanta",this.descContactEn="Contact info and form for the Port of Constanta Administration",this.translateService.get(["app.operatie_succes","app.informare"]).pipe((0,F.q)(1)).subscribe(v=>{this.msgOperatieSucces=v["app.operatie_succes"],this.msgInformare=v["app.informare"]})}ngOnInit(){this.route.paramMap.pipe((0,d.R)(this.unsubscribe$)).subscribe(()=>{this.isLoading=!0,this.lang=this.languageService.getCurrentLanguage(),this.loadCboList(),this.buildForm(),this.setSeo()})}onCancel(){this.recordForm.reset()}setSeo(){this.lang=this.languageService.getCurrentLanguage(),"ro"===this.lang?(this.titleService.setTitle(this.titleContactRo),this.metaTagService.updateTag({name:"description",content:this.descContactRo})):(this.titleService.setTitle(this.titleContactEn),this.metaTagService.updateTag({name:"description",content:this.descContactEn}))}onSubmit(){if(!this.recordForm.valid)return;const r={fkTara:+this.recordForm.get("fkTara").value,nume:this.recordForm.get("nume").value,prenume:this.recordForm.get("prenume").value,denFirma:this.recordForm.get("denFirma").value,pozitiaFirma:this.recordForm.get("pozitiaFirma").value,telefon:this.recordForm.get("telefon").value,fax:this.recordForm.get("fax").value,emailUtilizator:this.recordForm.get("emailUtilizator").value,orasFirma:this.recordForm.get("orasFirma").value,titluMesaj:this.recordForm.get("titluMesaj").value,continutMesaj:this.recordForm.get("continutMesaj").value,captcha:this.recordForm.get("captcha").value,bifaGDPR:this.recordForm.get("bifaGDPR").value?1:0};this.apiService.create(r).pipe((0,g.K)(a=>(this.isSaving=!1,(0,u._)(a)))).subscribe(()=>{this.isSaving=!1,this.toastrService.info(this.msgOperatieSucces,this.msgInformare),this.onCancel()})}buildForm(){this.recordForm=new o.cw({id:new o.NI(null),fkTara:new o.NI(null,[o.kI.required]),nume:new o.NI(null,[o.kI.required,o.kI.maxLength(100)]),prenume:new o.NI(null,[o.kI.required,o.kI.maxLength(100)]),pozitiaFirma:new o.NI(null,[o.kI.maxLength(100)]),denFirma:new o.NI(null,[o.kI.required,o.kI.maxLength(100)]),telefon:new o.NI(null,[o.kI.required,o.kI.maxLength(50)]),fax:new o.NI(null,[o.kI.maxLength(50)]),emailUtilizator:new o.NI(null,[o.kI.required,o.kI.email,o.kI.maxLength(100)]),orasFirma:new o.NI(null,[o.kI.required,o.kI.maxLength(100)]),titluMesaj:new o.NI(null,[o.kI.required,o.kI.maxLength(300)]),continutMesaj:new o.NI(null,[o.kI.required,o.kI.maxLength(2e3)]),captcha:new o.NI(null,[o.kI.required]),bifaGDPR:new o.NI(null,[o.kI.requiredTrue])})}loadCboList(){this.requestDataFromMultipleSources().pipe((0,g.K)(r=>(this.isLoading=!1,(0,u._)(r))),(0,d.R)(this.unsubscribe$)).subscribe(r=>{this.isLoading=!1,this.tari=r[0]})}
1requestDataFromMultipleSources(){const r=this.taraApi.findAll();return(0,x.D)([r])}navToEpetition(){this.router.navigate(["/",this.lang,"epetitie"])}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}}return e.\u0275fac=function(r){return new(r||e)(t.Y36(M),t.Y36(C.j),t.Y36(S._W),t.Y36(f.sK),t.Y36(m.F0),t.Y36(m.gz),t.Y36(T.T),t.Y36(h.Dx),t.Y36(h.h_))},e.\u0275cmp=t.Xpm({type:e,selectors:[["apmc-mesaj-site-edit"]],decls:113,vars:104,consts:[[1,"row"],[1,"col-12"],[3,"formGroup","ngSubmit"],[1,"form-group","form-row"],[1,"col-sm-2","col-form-label","col-form-label-sm","offset-md-3"],[1,"col-sm-4"],["type","text","formControlName","nume",1,"form-control","form-control-sm",3,"ngClass"],["class","form-text text-info",4,"ngIf"],["type","text","formControlName","prenume",1,"form-control","form-control-sm",3,"ngClass"],["type","text","formControlName","denFirma",1,"form-control","form-control-sm",3,"ngClass"],["type","text","formControlName","pozitiaFirma",1,"form-control","form-control-sm",3,"ngClass"],["type","text","formControlName","telefon",1,"form-control","form-control-sm",3,"ngClass"],["type","text","formControlName","fax",1,"form-control","form-control-sm",3,"ngClass"],["type","text","formControlName","emailUtilizator",1,"form-control","form-control-sm",3,"ngClass"],["type","text","formControlName","orasFirma",1,"form-control","form-control-sm",3,"ngClass"],["formControlName","fkTara",1,"form-control","form-control-sm",3,"ngClass"],[3,"value"],[3,"value",4,"ngFor","ngForOf"],["type","text","formControlName","titluMesaj",1,"form-control","form-control-sm",3,"ngClass"],["rows","10","formControlName","continutMesaj",1,"form-control","form-control-sm",3,"ngClass"],["type","text","formControlName","captcha",1,"form-control","form-control-sm",3,"ngClass"],[1,"col-sm-12"],[1,"form-check"],["type","checkbox","formControlName","bifaGDPR",1,"form-check-input"],[1,"form-check-label"],[1,"col-form-label-sm"],[1,"col-12","text-center"],["type","submit",1,"btn","btn-outline-primary",3,"disabled"],[3,"icon"],["type","button",1,"btn","btn-outline-secondary",3,"disabled","click"],[1,"form-text","text-info"]],template:function(r,a){1&r&&(t.TgZ(0,"div",0)(1,"div",1)(2,"h4"),t._uU(3),t.ALo(4,"translate"),t.qZA()()(),t.TgZ(5,"div",0)(6,"div",1)(7,"form",2),t.NdJ("ngSubmit",function(){return a.onSubmit()}),t.TgZ(8,"div",3)(9,"label",4),t._uU(10),t.ALo(11,"translate"),t.qZA(),t.TgZ(12,"div",5),t._UZ(13,"input",6),t.YNc(14,L,4,7,"small",7),t.qZA()(),t.TgZ(15,"div",3)(16,"label",4),t._uU(17),t.ALo(18,"translate"),t.qZA(),t.TgZ(19,"div",5),t._UZ(20,"input",8),t.YNc(21,I,4,7,"small",7),t.qZA()(),t.TgZ(22,"div",3)(23,"label",4),t._uU(24),t.ALo(25,"translate"),t.qZA(),t.TgZ(26,"div",5),t._UZ(27,"input",9),t.YNc(28,U,4,7,"small",7),t.qZA()(),t.TgZ(29,"div",3)(30,"label",4),t._uU(31),t.ALo(32,"translate"),t.qZA(),t.TgZ(33,"div",5),t._UZ(34,"input",10),t.YNc(35,q,3,4,"small",7),t.qZA()(),t.TgZ(36,"div",3)(37,"label",4),t._uU(38),t.ALo(39,"translate"),t.qZA(),t.TgZ(40,"div",5),t._UZ(41,"input",11),t.YNc(42,b,4,7,"small",7),t.qZA()(),t.TgZ(43,"div",3)(44,"label",4),t._uU(45),t.ALo(46,"translate"),t.qZA(),t.TgZ(47,"div",5),t._UZ(48,"input",12),t.YNc(49,J,3,4,"small",7),t.qZA()(),t.TgZ(50,"div",3)(51,"label",4),t._uU(52),t.ALo(53,"translate"),t.qZA(),t.TgZ(54,"div",5),t._UZ(55,"input",13),t.YNc(56,E,5,10,"small",7),t.qZA()(),t.TgZ(57,"div",3)(58,"label",4),t._uU(59),t.ALo(60,"translate"),t.qZA(),t.TgZ(61,"div",5),t._UZ(62,"input",14),t.YNc(63,z,4,7,"small",7),t.qZA()(),t.TgZ(64,"div",3)(65,"label",4),t._uU(66),t.ALo(67,"translate"),t.qZA(),t.TgZ(68,"div",5)(69,"select",15),t._UZ(70,"option",16),t.YNc(71,Q,2,2,"option",17),t.qZA(),t.YNc(72,_,3,3,"small",7),t.qZA()(),t.TgZ(73,"div",3)(74,"label",4),t._uU(75),t.ALo(76,"translate"),t.qZA(),t.TgZ(77,"div",5),t._UZ(78,"input",18),t.YNc(79,k,4,7,"small",7),t.qZA()(),t.TgZ(80,"div",3)(81,"label",4),t._uU(82),t.ALo(83,"translate"),t.qZA(),t.TgZ(84,"div",5),t._UZ(85,"textarea",19),t.YNc(86,y,4,7,"small",7),t.qZA()(),t._UZ(87,"apmc-simple-captcha"),t.TgZ(88,"div",3)(89,"label",4),t._uU(90),t.ALo(91,"translate"),t.qZA(),t.TgZ(92,"div",5),t._UZ(93,"input",20),t.YNc(94,Y,3,3,"small",7),t.qZA()(),t.TgZ(95,"div",3)(96,"div",21)(97,"div",22),t._UZ(98,"input",23),t.TgZ(99,"label",24)(100,"span",25),t._uU(101),t.ALo(102,"translate"),t.qZA()()()()(),t.TgZ(103,"div",0)(104,"div",26)(105,"button",27),t._UZ(106,"fa-icon",28),t._uU(107),t.ALo(108,"translate"),t.qZA(),t.TgZ(109,"button",29),t.NdJ("click",function(){return a.onCancel()}),t._UZ(110,"fa-icon",28),t._uU(111),t.ALo(112,"translate"),t.qZA()()()()()()),2&r&&(t.xp6(3),t.Oqu(t.lcZ(4,46,"contact.Compania")),t.xp6(4),t.Q6J("formGroup",a.recordForm),t.xp6(3),t.hij("",t.lcZ(11,48,"contact.nume")," *"),t.xp6(3),t.Q6J("ngClass",t.VKq(78,s,!a.recordForm.get("nume").valid&&a.recordForm.get("nume").touched)),t.xp6(1),t.Q6J("ngIf",!a.recordForm.get("nume").valid&&a.recordForm.get("nume").touched),t.xp6(3),t.hij("",t.lcZ(18,50,"contact.prenume")," *"),t.xp6(3),t.Q6J("ngClass",t.VKq(80,s,!a.recordForm.get("prenume").valid&&a.recordForm.get("prenume").touched)),t.xp6(1),t.Q6J("ngIf",!a.recordForm.get("prenume").valid&&a.recordForm.get("prenume").touched),t.xp6(3),t.hij("",t.lcZ(25,52,"contact.compania")," *"),t.xp6(3),t.Q6J("ngClass",t.VKq(82,s,!a.recordForm.get("denFirma").valid&&a.recordForm.get("denFirma").touched)),t.xp6(1),t.Q6J("ngIf",!a.recordForm.get("denFirma").valid&&a.recordForm.get("denFirma").touched),t.xp6(3),t.Oqu(t.lcZ(32,54,"contact.pozitia")),t.xp6(3),t.Q6J("ngClass",t.VKq(84,s,!a.recordForm.get("pozitiaFirma").valid&&a.recordForm.get("pozitiaFirma").touched)),t.xp6(1),t.Q6J("ngIf",!a.recordForm.get("pozitiaFirma").valid&&a.recordForm.get("pozitiaFirma").touched),t.xp6(3),t.hij("",t.lcZ(39,56,"contact.telefon")," *"),t.xp6(3),t.Q6J("ngClass",t.VKq(86,s,!a.recordForm.get("telefon").valid&&a.recordForm.get("telefon").touched)),t.xp6(1),t.Q6J("ngIf",!a.recordForm.get("telefon").valid&&a.recordForm.get("telefon").touched),t.xp6(3),t.Oqu(t.lcZ(46,58,"contact.fax")),t.xp6(3),t.Q6J("ngClass",t.VKq(88,s,!a.recordForm.get("fax").valid&&a.recordForm.get("fax").touched)),t.xp6(1),t.Q6J("ngIf",!a.recordForm.get("fax").valid&&a.recordForm.get("fax").touched),t.xp6(3),t.hij("",t.lcZ(53,60,"contact.email")," * "),t.xp6(3),t.Q6J("ngClass",t.VKq(90,s,!a.recordForm.get("emailUtilizator").valid&&a.recordForm.get("emailUtilizator").touched)),t.xp6(1),t.Q6J("ngIf",!a.recordForm.get("emailUtilizator").valid&&a.recordForm.get("emailUtilizator").touched),t.xp6(3),t.hij("",t.lcZ(60,62,"contact.oras")," *"),t.xp6(3),t.Q6J("ngClass",t.VKq(92,s,!a.recordForm.get("orasFirma").valid&&a.recordForm.get("orasFirma").touched)),t.xp6(1),t.Q6J("ngIf",!a.recordForm.get("orasFirma").valid&&a.recordForm.get("orasFirma").touched),t.xp6(3),t.hij("",t.lcZ(67,64,"contact.tara")," *"),t.xp6(3),t.Q6J("ngClass",t.VKq(94,s,!a.recordForm.get("fkTara").valid&&a.recordForm.get("fkTara").touched)),t.xp6(2),t.Q6J("ngForOf",a.tari),t.xp6(1),t.Q6J("ngIf",!a.recordForm.get("fkTara").valid&&a.recordForm.get("fkTara").touched),t.xp6(3),t.hij("",t.lcZ(76,66,"contact.titlu")," *"),t.xp6(3),t.Q6J("ngClass",t.VKq(96,s,!a.recordForm.get("titluMesaj").valid&&a.recordForm.get("titluMesaj").touched)),t.xp6(1),t.Q6J("ngIf",!a.recordForm.get("titluMesaj").valid&&a.recordForm.get("titluMesaj").touched),t.xp6(3),t.hij("",t.lcZ(83,68,"contact.continut")," *"),t.xp6(3),t.Q6J("ngClass",t.VKq(98,s,!a.recordForm.get("continutMesaj").valid&&a.recordForm.get("continutMesaj").touched)),t.xp6(1),t.Q6J("ngIf",!a.recordForm.get("continutMesaj").valid&&a.recordForm.get("continutMesaj").touched),t.xp6(4),t.hij("",t.lcZ(91,70,"contact.capcha")," *"),t.xp6(3),t.Q6J("ngClass",t.VKq(100,s,!a.recordForm.get("captcha").valid&&a.recordForm.get("captcha").touched)),t.xp6(1),t.Q6J("ngIf",!a.recordForm.get("captcha").valid&&a.recordForm.get("captcha").touched),t.xp6(7),t.Oqu(t.lcZ(102,72,"contact.bifa")),t.xp6(4),t.Q6J("disabled",!a.recordForm.valid||a.isSaving),t.xp6(1),t.Q6J("icon",t.DdM(102,w)),t.xp6(1),t.hij("\xa0",t.lcZ(108,74,"app.trimite")," "),t.xp6(2),t.Q6J("disabled",a.isSaving),t.xp6(1),t.Q6J("icon",t.DdM(103,K)),t.xp6(1),t.hij("\xa0",t.lcZ(112,76,"app.anuleaza")," "))},directives:[o._Y,o.JL,o.sg,o.Fj,o.JJ,o.u,l.mk,l.O5,o.EJ,o.YN,o.Kr,l.sg,j.h,o.Wl,N.BN],pipes:[f.X$],styles:[""]}),e})()}];let O=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[m.Bz.forChild(R)],m.Bz]}),e})();var V=i(4466),D=i(9185);let P=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[l.ez,D.S,V.m,O]]}),e})()}}]);
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.