1import{b as U,c as F}from"./chunk-72GGKWPE.js";import{a as k}from"./chunk-YASVH6IG.js";import{p as $,q as L}from"./chunk-4RIR7WXT.js";import{e as S}from"./chunk-A6TC6UF3.js";import{b as N,f as R,j as H}from"./chunk-U7C2VJFE.js";import{a as V}from"./chunk-TRQH7RF7.js";import"./chunk-INSLQN5H.js";import{n as D}from"./chunk-WA7XMA53.js";import{j,v as w}from"./chunk-REJHG727.js";import{$b as l,$c as I,Mc as C,Oc as h,ab as A,ac as m,db as z,fc as u,gc as s,ha as M,hb as a,hc as c,ic as _,sd as O,tb as o,xc as d,ya as g,zb as E}from"./chunk-DQAZAY3R.js";import{a as P}from"./chunk-HGJ4MBLN.js";var W=i=>({container:i});function X(i,p){i&1&&(s(0,"div",1),_(1,"app-loading"),c())}function Y(i,p){if(i&1&&(s(0,"h2",4),C(1),c()),i&2){let e,t=d(2);a(),h(" ",t.lang()=="ar"?(e=t.staticContent())==null?null:e.title_ar:(e=t.staticContent())==null?null:e.title_en," ")}}function Z(i,p){if(i&1&&(s(0,"div",2),l(1,Y,2,1,"h2",4),_(2,"div",5),c()),i&2){let e,t=d();u("ngClass",I(3,W,!t.router.url.includes("nstall"))),a(),m(t.staticContent().show_title?1:-1),a(),u("innerHTML",t.lang()=="ar"?(e=t.staticContent())==null?null:e.content_ar:(e=t.staticContent())==null?null:e.content_en,A)}}function tt(i,p){if(i&1&&(s(0,"h2",4),C(1),c()),i&2){let e,t=d(2);a(),h(" ",t.lang()=="ar"?(e=t.staticContent())==null?null:e.title_ar:(e=t.staticContent())==null?null:e.title_en," ")}}function et(i,p){if(i&1&&(s(0,"div",3),l(1,tt,2,1,"h2",4),_(2,"iframe",6),c()),i&2){let e,t=d();a(),m(t.staticContent().show_title?1:-1),a(),u("src",t.lang()=="ar"?(e=t.staticContent())==null?null:e.iframe_url_ar:(e=t.staticContent())==null?null:e.iframe_url_en,z)}}var vt=(()=>{class i{pagesService;route;embryoService;router;metaService;confgServ;sanitizer;storage;staticContent=g(null);slug="";lang=M(L).currentLanguage;loading=g(!1);environmentVariables=g(null);constructor(e,t,r,y,q,B,G,J){this.pagesService=e,this.route=t,this.embryoService=r,this.router=y,this.metaService=q,this.confgServ=B,this.sanitizer=G,this.storage=J,this.confgServ.getenvConfig().subscribe(n=>{this.environmentVariables.set(n)}),y.events.subscribe(n=>{n instanceof N&&(this.slug=this.route.snapshot.params.slug,this.slug!=""&&this.router.url.includes(this.slug)&&this.getStaticPages())}),O(()=>{let n=this.staticContent(),f=this.environmentVariables();if(n&&f){let b=this.lang(),x=b=="en",K=x?`${n?.title_en} - ${f?.APP_NAME}`:`${n?.title_ar} - ${f?.APP_NAME_AR}`,Q=x?n?.meta_title||n?.meta_tag_title_en:n?.meta_title_ar||n?.meta_tag_title_ar,v=U(n,b),T=Q||K;this.metaService.setTitle(T),this.metaService.updateTag({property:"og:title",content:T}),v&&(this.metaService.updateTag({name:"description",content:v}),this.metaService.updateTag({property:"og:description",content:v}))}})}ngOnInit(){this.route.params.subscribe(e=>{this.slug=e.slug,this.getStaticPages()})}getStaticPages(){this.loading.set(!0),this.pagesService.getStaticPage("terms-and-conditions","non-general").subscribe(e=>{if(e.data){let t=P({},e.data);t.iframe_url_ar&&(t.iframe_url_ar=this.sanitizer.bypassSecurityTrustResourceUrl(t.iframe_url_ar)),t.iframe_url_en&&(t.iframe_url_en=this.sanitizer.bypassSecurityTrustResourceUrl(t.iframe_url_en)),t.content_ar&&(t.content_ar=this.sanitizer.bypassSecurityTrustHtml(t.content_ar)),t.content_en&&(t.content_en=this.sanitizer.bypassSecurityTrustHtml(t.content_en)),this.staticContent.set(t)}else this.router.navigate([`/${this.lang()}/not-found`]);this.loading.set(!1)},e=>{this.loading.set(!1)})}static \u0275fac=function(t){return new(t||i)(o(S),o(R),o($),o(H),o(F),o(S),o(D),o(V))};static \u0275cmp=E({type:i,selectors:[["app-terms-and-conditions"]],decls:4,vars:3,consts:[[1,"staticPage"],[1,"position-absolute","loading"],[3,"ngClass"],[1,"iframe-type"],[1,"text-center"],[1,"content",3,"innerHTML"],["loading","lazy","frameborder","0",3,"src"]],template:function(t,r){t&1&&(s(0,"div",0),l(1,X,2,0,"div",1),l(2,Z,3,5,"div",2),l(3,et,3,2,"div",3),c()),t&2&&(a(),m(r.loading()?1:-1),a(),m(r.staticContent()&&r.staticContent().type!="iframe_url"?2:-1),a(),m(r.staticContent()&&r.staticContent().type=="iframe_url"?3:-1))},dependencies:[w,j,k],styles:[".staticPage[_ngcontent-%COMP%]{font-family:var(--font-family-en);position:relative;padding:30px 0;min-height:400px}.staticPage[_ngcontent-%COMP%] .loading[_ngcontent-%COMP%]{z-index:1000}.content[_ngcontent-%COMP%]{margin:15px 0}.section-gap[_ngcontent-%COMP%]{padding:25px 0}.iframe-type[_ngcontent-%COMP%]{margin-bottom:-35px;width:100%}.iframe-type[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{width:100%;height:400px}.container[_ngcontent-%COMP%]{width:100%!important;overflow-wrap:break-word!important}"]})}return i})();export{vt as TermsAndConditionsComponent};
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.