1import{N as B,d as et,ha as nt,q as it,y as O}from"./chunk-OPJF5E2Z.js";import"./chunk-7P6MHYY6.js";import"./chunk-ULLWZYVW.js";import{Ba as P,Da as x,Eb as p,Fb as m,Ha as v,Na as b,O as $,Oa as q,Qa as J,Ra as K,S as k,Sa as n,T as _,Ta as a,Tc as T,Ua as f,Uc as j,V as y,Vc as Y,Wc as w,X as I,Y as M,_a as h,_c as l,ac as W,ad as Z,bb as E,cd as z,dd as tt,h as S,hc as X,i as C,jb as r,kb as s,lb as Q,lc as F,oa as G,pa as N,qa as V,rc as U,ta as o,tb as L,ua as d,zc as A}from"./chunk-6JVWBWXY.js";import"./chunk-QDSGMOWV.js";var u=class R extends Z{constructor(c,t,i){super(c),this.routingService=t,this.http=i}loadContactUs(){return this.bag().get()}loadPageContent(c){return this.bag().get().pipe(Y())}static{this.\u0275fac=function(t){return new(t||R)(y(w),y(l),y(F))}}static{this.\u0275prov=k({token:R,factory:R.\u0275fac})}};S([z("contact-us"),C("design:type",Function),C("design:paramtypes",[]),C("design:returntype",void 0)],u.prototype,"loadContactUs",null);S([z("page-content/:url"),C("design:type",Function),C("design:paramtypes",[String]),C("design:returntype",void 0)],u.prototype,"loadPageContent",null);u=S([tt("content"),C("design:paramtypes",[w,l,F])],u);function pt(e,c){if(e&1&&(n(0,"a",15),p(1,"translate"),f(2,"i",16),n(3,"span"),r(4),a()()),e&2){let t=h().$implicit;E("title",m(1,3,"Labels.Email")),v("href","mailto:"+t.email,N),o(4),s(t.email)}}function mt(e,c){if(e&1&&(n(0,"a",15),p(1,"translate"),f(2,"i",17),n(3,"span"),r(4),a()()),e&2){let t=h().$implicit;E("title",m(1,3,"Labels.Phone")),v("href","tel:"+t.phone,N),o(4),s(t.phone)}}function dt(e,c){if(e&1&&(n(0,"a",18),p(1,"translate"),f(2,"i",19),n(3,"span"),r(4),a()()),e&2){let t=h().$implicit;E("title",m(1,2,"Labels.Fax")),o(4),s(t.fax)}}function ft(e,c){if(e&1&&(n(0,"div",10)(1,"p"),r(2),a(),x(3,pt,5,5,"a",13)(4,mt,5,5,"a",13)(5,dt,5,4,"a",14),a()),e&2){let t=c.$implicit;o(2),s(t.title),o(),v("ngIf",t.email&&t.email.trim()!==""),o(),v("ngIf",t.phone&&t.phone.trim()!==""),o(),v("ngIf",t.fax&&t.fax.trim()!=="")}}function ut(e,c){if(e&1&&(n(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"h1")(5,"span"),r(6),p(7,"translate"),a()()(),n(8,"div",4)(9,"div",5)(10,"h3",6)(11,"span"),r(12),p(13,"translate"),a()(),n(14,"div",7),f(15,"i",8),n(16,"span"),r(17),a()()(),f(18,"br"),n(19,"div",9),J(20,ft,6,4,"div",10,q),a()()(),n(22,"div",11),f(23,"iframe",12),a()()()),e&2){let t=h();o(6),s(m(7,4,"Labels.ContactUs")),o(6),s(m(13,6,"Labels.Address")),o(5),s(t.resultModel.address),o(3),K(t.resultModel.contacts),o(3),v("src",t.selectedCourtLocation,V)}}var rt=(()=>{class e extends B{constructor(t,i,g,H){super(t,i,g),this.service=H,this.resultModel=void 0,this.selectedCourtLocation=null}ngOnInit(){super.ngOnInit(),this.loadData()}loadData(){this.service.loadContactUs().subscribe(t=>{this.resultModel=t.result,this.selectedCourtLocation=this.getMapUrl(t.result.location.lat,t.result.location.long)})}static{this.\u0275fac=function(i){return new(i||e)(d(j),d(l),d(T),d(u))}}static{this.\u0275cmp=I({type:e,selectors:[["app-contact-us"]],features:[L([],[l]),P],decls:1,vars:1,consts:[[1,"contact-us-container"],[1,"contact-us","contact-style-cont","section-spacing"],[1,"c1"],[1,"title"],[1,"contact-info-content"],[1,"contact-section",2,"margin-bottom","20px"],[1,"subtitle","pt-sm-3"],[1,"d-flex","align-items-center","icon-item","gap-3","gap-md-4"],[1,"fad","fa-map-marker-alt","fa-lg","address-icon",2,"color","#C9993C"],[1,"row","c-row"],[1,"col-md-6","contact-section"],[1,"c2"],["width","606","height","705","allowfullscreen","","loading","lazy","referrerpolicy","no-referrer-when-downgrade",2,"border","0",3,"src"],["class","d-flex align-items-center icon-item gap-3 gap-md-4",3,"href","title",4,"ngIf"],["class","d-flex align-items-center icon-item gap-3 gap-md-4",3,"title",4,"ngIf"],[1,"d-flex","align-items-center","icon-item","gap-3","gap-md-4",3,"href","title"],[1,"fad","fa-envelope","fa-lg",2,"color","#C9993C"],[1,"fad","fa-phone","fa-lg",2,"color","#C9993C"],[1,"d-flex","align-items-center","icon-item","gap-3","gap-md-4",3,"title"],[1,"fad","fa-fax","fa-lg",2,"color","#C9993C"]],template:function(i,g){i&1&&x(0,ut,24,8,"div",0),i&2&&b(g.resultModel?0:-1)},dependencies:[W,U],encapsulation:2})}}return e})();function vt(e,c){e&1&&(n(0,"div",0)(1,"div",2)(2,"span",3),r(3),p(4,"translate"),a()()()),e&2&&(o(3),s(m(4,1,"Labels.Loading")))}function gt(e,c){if(e&1&&(n(0,"div",1)(1,"div",4)(2,"div",5),f(3,"img",6),n(4,"div",7)(5,"h2",8)(6,"span"),r(7),p(8,"translate"),a()(),n(9,"h1"),r(10),a()()()(),n(11,"div",9)(12,"div",10),f(13,"div",11),p(14,"safeHtml"),a()()()),e&2){let t=h();o(7),s(m(8,3,"EgyGov")),o(3),s(t.resultModel.title),o(3),v("innerHTML",m(14,5,t.resultModel.content),G)}}function Ct(e,c){e&1&&(n(0,"div",0),r(1),p(2,"translate"),a()),e&2&&(o(),Q(" ",m(2,1,"Labels.NoDataFound"),` 2`))}var ct=(()=>{class e extends B{constructor(t,i,g,H){super(t,i,g),this.service=H,this.resultModel=null,this.isLoading=!0}
2ngOnInit(){super.ngOnInit(),this.route("pageName").pipe($(this.destroy$)).subscribe(t=>{this.loadContent(t)})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}loadContent(t){this.isLoading=!0,this.service.loadPageContent(t).pipe($(this.destroy$)).subscribe({next:i=>{if(this.isLoading=!1,!i.result){this.notFound();return}this.resultModel=i.result,this.titleService.setTitle(this.resultModel.title)},error:i=>{this.isLoading=!1,console.error("Error loading content:",i),this.notFound()}})}static{this.\u0275fac=function(i){return new(i||e)(d(j),d(l),d(T),d(u))}}static{this.\u0275cmp=I({type:e,selectors:[["app-static-content"]],features:[L([],[l]),P],decls:3,vars:1,consts:[[1,"text-center"],[1,"about-minister-cont"],["role","status",1,"spinner-border"],[1,"visually-hidden"],[1,"page-header","page-header-lg"],[1,"header-title"],["src","../../../../../../assets/img/globe-secondary-lg.svg","alt",""],[1,"d-flex","flex-column","w-100"],[1,"header-subtitle"],[1,"section-spacing","inner-content-map-cont","center-maps"],[1,"inner-page-main"],[3,"innerHTML"]],template:function(i,g){i&1&&x(0,vt,5,3,"div",0)(1,gt,15,7,"div",1)(2,Ct,3,3,"div",0),i&2&&b(g.isLoading?0:g.resultModel?1:2)},dependencies:[U,et],encapsulation:2})}}return e})();var ht=[{path:it.StaticPagePrefix,children:[{path:O.ContactUs.route,component:rt,data:{title:"PageTitles.ContactUs"}},{path:O.ContentPublicPageViewer.route,component:ct}]}],st=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=M({type:e})}static{this.\u0275inj=_({imports:[A.forChild(ht),A]})}}return e})();var se=(()=>{class e{static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275mod=M({type:e})}static{this.\u0275inj=_({providers:[u],imports:[X,st,nt]})}}return e})();export{se as StaticPagesContentModule};
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.