1import{c as Q}from"./chunk-TBMRUA6Z.js";import{a as q}from"./chunk-IEZ7JOWW.js";import{b as J,c as K}from"./chunk-Y4USWBOI.js";import{a as Z}from"./chunk-FHOHGYTL.js";import{p as W,q as Y}from"./chunk-MA3UJZI3.js";import{e as O}from"./chunk-4ZBSEH5M.js";import{b as F,f as V,j as G}from"./chunk-BLUPBYQY.js";import{a as B}from"./chunk-QP2R5HQV.js";import"./chunk-WO4YLV4Q.js";import{n as U}from"./chunk-N5KHQ3PY.js";import{j as R,v as k}from"./chunk-KMKRC7H4.js";import{$b as g,$c as j,Mc as M,Oc as $,ab as D,ac as _,db as L,fc as P,gc as d,ha as T,hb as r,hc as u,ic as b,sd as H,tb as c,xc as f,za as C,zb as w}from"./chunk-WLVJBNFV.js";import{a as z}from"./chunk-HGJ4MBLN.js";var A={"privacy-policy":{name:{en:"Privacy Policy",ar:"\u0633\u064A\u0627\u0633\u0629 \u0627\u0644\u062E\u0635\u0648\u0635\u064A\u0629"},description:{en:"Privacy policy \u2014 how we collect, use and protect customer data.",ar:"\u0635\u0641\u062D\u0629 \u0633\u064A\u0627\u0633\u0629 \u0627\u0644\u062E\u0635\u0648\u0635\u064A\u0629\u060C \u0645\u0639 \u0631\u0648\u0627\u0628\u0637 \u0644\u0633\u064A\u0627\u0633\u0629 \u0645\u0644\u0641\u0627\u062A \u0627\u0644\u0627\u0631\u062A\u0628\u0627\u0637 \u0648\u0627\u0644\u0623\u062D\u0643\u0627\u0645 \u0648\u0627\u0644\u0634\u0631\u0648\u0637."},about:[{en:"Privacy Policy",ar:"\u0633\u064A\u0627\u0633\u0629 \u0627\u0644\u062E\u0635\u0648\u0635\u064A\u0629"},{en:"Customer data protection",ar:"\u062D\u0645\u0627\u064A\u0629 \u0628\u064A\u0627\u0646\u0627\u062A \u0627\u0644\u0639\u0645\u0644\u0627\u0621"}],mentions:["cookie-policy","terms-and-conditions"]},"terms-and-conditions":{name:{en:"Terms and Conditions",ar:"\u0627\u0644\u0623\u062D\u0643\u0627\u0645 \u0648\u0627\u0644\u0634\u0631\u0648\u0637"},description:{en:"Terms and conditions governing the use of the store and its services.",ar:"\u0627\u0644\u0623\u062D\u0643\u0627\u0645 \u0648\u0627\u0644\u0634\u0631\u0648\u0637 \u0627\u0644\u062A\u064A \u062A\u062D\u0643\u0645 \u0627\u0633\u062A\u062E\u062F\u0627\u0645 \u0627\u0644\u0645\u062A\u062C\u0631 \u0648\u062E\u062F\u0645\u0627\u062A\u0647."},about:[{en:"Terms and Conditions",ar:"\u0627\u0644\u0623\u062D\u0643\u0627\u0645 \u0648\u0627\u0644\u0634\u0631\u0648\u0637"}],mentions:["privacy-policy","cookie-policy"]},"cookie-policy":{name:{en:"Cookie Policy",ar:"\u0633\u064A\u0627\u0633\u0629 \u0645\u0644\u0641\u0627\u062A \u0627\u0644\u0627\u0631\u062A\u0628\u0627\u0637"},description:{en:"Cookie policy \u2014 how cookies are used across the store.",ar:"\u0633\u064A\u0627\u0633\u0629 \u0645\u0644\u0641\u0627\u062A \u0627\u0644\u0627\u0631\u062A\u0628\u0627\u0637 \u0648\u0643\u064A\u0641\u064A\u0629 \u0627\u0633\u062A\u062E\u062F\u0627\u0645\u0647\u0627 \u0641\u064A \u0627\u0644\u0645\u062A\u062C\u0631."},about:[{en:"Cookie Policy",ar:"\u0633\u064A\u0627\u0633\u0629 \u0645\u0644\u0641\u0627\u062A \u0627\u0644\u0627\u0631\u062A\u0628\u0627\u0637"}],mentions:["privacy-policy","terms-and-conditions"]}},X=i=>typeof i=="string"&&i.trim().length>0;function nt(i){let s=(i.COUNTRY_CODE||"").trim().toUpperCase();return/^[A-Z]{2}$/.test(s)?s:""}function tt(i,s,e){let t=A[i],n=(e.WEBSITE_URL||"").replace(/\/+$/,"");if(!t||!n)return null;let a=s==="ar"?"ar":"en",p=`${n}/${a}/${i}`,S=`${n}/${a}`,y=nt(e),x=a==="ar"?e.APP_NAME_AR||e.APP_NAME||"":e.APP_NAME||e.APP_NAME_AR||"",h={"@type":"WebPage","@id":`${p}/#webpage`,url:p,name:t.name[a],description:t.description[a],inLanguage:y?`${a}-${y}`:a,isPartOf:{"@id":`${n}/#website`},publisher:{"@id":`${n}/#organization`},about:t.about.map(l=>({"@type":"Thing",name:l[a]})),breadcrumb:{"@id":`${p}/#breadcrumb`}},o=t.mentions.filter(l=>A[l]).map(l=>({"@type":"WebPage",name:A[l].name[a],url:`${n}/${a}/${l}`}));o.length&&(h.mentions=o);let m={"@type":"Organization","@id":`${n}/#organization`,name:x,url:n};X(e.ONLINE_EMAIL)&&(m.email=e.ONLINE_EMAIL),X(e.HOTPHONE)&&(m.telephone=e.HOTPHONE);let v={"@type":"BreadcrumbList","@id":`${p}/#breadcrumb`,itemListElement:[{"@type":"ListItem",position:1,name:a==="ar"?"\u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629":"Home",item:S},{"@type":"ListItem",position:2,name:t.name[a],item:p}]};return{"@context":"https://schema.org","@graph":[h,m,v]}}var at=i=>({container:i});function ot(i,s){i&1&&(d(0,"div",1),b(1,"app-loading"),u())}
1function rt(i,s){if(i&1&&(d(0,"h2",4),M(1),u()),i&2){let e,t=f(2);r(),$(" ",t.lang()=="ar"?(e=t.staticContent())==null?null:e.title_ar:(e=t.staticContent())==null?null:e.title_en," ")}}function ct(i,s){if(i&1&&(d(0,"div",2),g(1,rt,2,1,"h2",4),b(2,"div",5),u()),i&2){let e,t=f();P("ngClass",j(3,at,!t.router.url.includes("nstall"))),r(),_(t.staticContent().show_title?1:-1),r(),P("innerHTML",t.lang()=="ar"?(e=t.staticContent())==null?null:e.content_ar:(e=t.staticContent())==null?null:e.content_en,D)}}function st(i,s){if(i&1&&(d(0,"h2",4),M(1),u()),i&2){let e,t=f(2);r(),$(" ",t.lang()=="ar"?(e=t.staticContent())==null?null:e.title_ar:(e=t.staticContent())==null?null:e.title_en," ")}}function lt(i,s){if(i&1&&(d(0,"div",3),g(1,st,2,1,"h2",4),b(2,"iframe",6),u()),i&2){let e,t=f();r(),_(t.staticContent().show_title?1:-1),r(),P("src",t.lang()=="ar"?(e=t.staticContent())==null?null:e.iframe_url_ar:(e=t.staticContent())==null?null:e.iframe_url_en,L)}}var Ot=(()=>{class i{pagesService;route;embryoService;router;metaService;confgServ;sanitizer;structuredData;storage;notFoundState=T(q);staticContent=C(null);slug="";lang=T(Y).currentLanguage;loading=C(!1);environmentVariables=C(null);constructor(e,t,n,a,p,S,y,x,h){this.pagesService=e,this.route=t,this.embryoService=n,this.router=a,this.metaService=p,this.confgServ=S,this.sanitizer=y,this.structuredData=x,this.storage=h,this.confgServ.getenvConfig().subscribe(o=>{this.environmentVariables.set(o)}),a.events.subscribe(o=>{o instanceof F&&(this.slug=this.route.snapshot.params.slug,this.slug!=""&&this.router.url.includes(this.slug)&&this.getStaticPages())}),H(()=>{let o=this.staticContent(),m=this.environmentVariables();if(o&&m){let v=this.lang(),l=v=="en",et=l?`${o?.title_en} - ${m?.APP_NAME}`:`${o?.title_ar} - ${m?.APP_NAME_AR}`,it=l?o?.meta_title||o?.meta_tag_title_en:o?.meta_title_ar||o?.meta_tag_title_ar,E=J(o,v),I=it||et;this.metaService.setTitle(I),this.metaService.updateTag({property:"og:title",content:I}),E&&(this.metaService.updateTag({name:"description",content:E}),this.metaService.updateTag({property:"og:description",content:E}));let N=tt("privacy-policy",v==="ar"?"ar":"en",m);N&&this.structuredData.emitGraph("page-graph",N)}})}ngOnDestroy(){this.structuredData.clear("page-graph")}ngOnInit(){this.route.params.subscribe(e=>{this.slug=e.slug,this.getStaticPages()})}getStaticPages(){this.loading.set(!0),this.pagesService.getStaticPage("privacy-policy","non-general").subscribe(e=>{if(e.data){let t=z({},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.notFoundState.show(404);this.loading.set(!1)},e=>{this.loading.set(!1)})}static \u0275fac=function(t){return new(t||i)(c(O),c(V),c(W),c(G),c(K),c(O),c(U),c(Q),c(B))};static \u0275cmp=w({type:i,selectors:[["app-privacy-policy"]],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,n){t&1&&(d(0,"div",0),g(1,ot,2,0,"div",1),g(2,ct,3,5,"div",2),g(3,lt,3,2,"div",3),u()),t&2&&(r(),_(n.loading()?1:-1),r(),_(n.staticContent()&&n.staticContent().type!="iframe_url"?2:-1),r(),_(n.staticContent()&&n.staticContent().type=="iframe_url"?3:-1))},dependencies:[k,R,Z],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}"]})}return i})();export{Ot as PrivacyPolicyComponent};
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.