PageSourceSearch

https://almanaraa.com/chunk-MFVPSH7E.js

js almanaraa.com collected 2026-09-24 09:21:31 UTC 12,844 bytes, 3 lines download raw bytes

1import{a as X}from"./chunk-XO2372UL.js";import{a as V}from"./chunk-UEGPIFIF.js";import{a as G}from"./chunk-KKME56CC.js";import{b as Q}from"./chunk-AMOYNWB4.js";import{a as J}from"./chunk-VNEZLIZ4.js";import"./chunk-N46BQ2H5.js";import{c as q}from"./chunk-GTIGCD5X.js";import"./chunk-36JN3LZY.js";import"./chunk-DH3H2W5M.js";import{a as N,b as W,w as U}from"./chunk-FOXXQ2KU.js";import{a as K}from"./chunk-YYXN4DMB.js";import{b as R,c as y,d as w}from"./chunk-KDMA6YFJ.js";import{e as B,g as H,h as F}from"./chunk-WQJ4XIKV.js";import{B as $,g as j,n as z}from"./chunk-KEE7UY6E.js";import{$b as d,Cb as M,Dc as v,Eb as m,Ec as h,Fb as g,Hb as O,Ib as x,Jb as _,Kb as p,Lb as r,Mb as a,Nb as s,R as D,Ua as A,Xa as n,Zb as T,ic as I,jb as u,kc as P,lc as l,mc as b,nc as f,ob as S,yc as E}from"./chunk-5P567FUB.js";import{i as L}from"./chunk-Z2O5QKTL.js";function ie(i,t){if(i&1&&(r(0,"li",10)(1,"span",11),s(2,"hugeicons-icon",4),a(),r(3,"span",12),l(4),v(5,"translate"),a()()),i&2){let e=t.$implicit,o=d();n(2),p("icon",o.TickDouble01Icon)("size",24)("strokeWidth",1.5),n(2),f(" ",h(5,4,e)," ")}}var k=class i{sub;TickDouble01Icon=U;ArrowDown01Icon=W;isOpen=!1;ngOnInit(){this.isOpen=this.sub.defaultOpen??!1}toggle(){this.isOpen=!this.isOpen}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=S({type:i,selectors:[["app-service-accordion-card"]],inputs:{sub:"sub"},decls:16,vars:14,consts:[["role","button","tabindex","0",1,"flex","cursor-pointer","select-none","flex-col","self-stretch","overflow-clip","rounded-[12px]","border","border-[#E5E7ED]","bg-white","p-8",3,"click","keydown.enter","keydown.space"],[1,"accordion-header","flex","w-full","shrink-0","items-center","justify-between","gap-4","self-stretch"],[1,"accordion-title"],["aria-hidden","true",1,"accordion-chevron","inline-flex","shrink-0","items-center","justify-center","text-orange"],["color","currentColor",3,"icon","size","strokeWidth"],[1,"service-accordion"],[1,"service-accordion__inner"],[1,"service-accordion__content","flex","w-full","flex-col","items-start","gap-8","self-stretch",3,"click"],[1,"w-full","leading-[24px]"],[1,"flex","w-full","flex-col","items-start","gap-4","self-stretch"],[1,"flex","w-full","items-center","gap-2","self-stretch"],["aria-hidden","true",1,"inline-flex","shrink-0","text-orange"],[1,"flex","h-6","flex-[1_0_0]","flex-col","justify-center","leading-[24px]"]],template:function(e,o){e&1&&(r(0,"div",0),T("click",function(){return o.toggle()})("keydown.enter",function(){return o.toggle()})("keydown.space",function(C){return C.preventDefault(),o.toggle()}),r(1,"div",1)(2,"span",2),l(3),v(4,"translate"),a(),r(5,"span",3),s(6,"hugeicons-icon",4),a()(),r(7,"div",5)(8,"div",6)(9,"div",7),T("click",function(C){return C.stopPropagation()}),r(10,"p",8),l(11),v(12,"translate"),a(),r(13,"ul",9),x(14,ie,6,6,"li",10,O),a()()()()()),e&2&&(M("aria-expanded",o.isOpen),n(3),b(h(4,10,o.sub.title)),n(2),I("is-open",o.isOpen),n(),p("icon",o.ArrowDown01Icon)("size",24)("strokeWidth",1.5),n(),I("is-open",o.isOpen),n(4),b(h(12,12,o.sub.description)),n(3),_(o.sub.features))},dependencies:[w,N,y],styles:["[_nghost-%COMP%]{display:block}.accordion-title[_ngcontent-%COMP%]{font-weight:700;font-size:18px;line-height:26px;transition:font-size .35s ease}[_nghost-%COMP%] > div[aria-expanded=true][_ngcontent-%COMP%]   .accordion-title[_ngcontent-%COMP%]{font-size:20px}.accordion-chevron[_ngcontent-%COMP%]{transition:transform .35s ease}.accordion-chevron.is-open[_ngcontent-%COMP%]{transform:rotate(180deg)}.service-accordion[_ngcontent-%COMP%]{display:grid;grid-template-rows:0fr;transition:grid-template-rows .35s ease}.service-accordion.is-open[_ngcontent-%COMP%]{grid-template-rows:1fr}.service-accordion__inner[_ngcontent-%COMP%]{overflow:hidden;min-height:0}.service-accordion__content[_ngcontent-%COMP%]{padding-top:0;transition:padding-top .35s ease}.service-accordion.is-open[_ngcontent-%COMP%]   .service-accordion__content[_ngcontent-%COMP%]{padding-top:32px}"]})};var ne=(i,t,e)=>["/",i,"services",t,e],re=(i,t)=>t.id,oe=(i,t)=>t._id;function ae(i,t){if(i&1&&s(0,"app-service-accordion-card",7),i&2){let e=t.$implicit;p("sub",e)}}function se(i,t){if(i&1&&(r(0,"section",0)(1,"div",2)(2,"div",3)(3,"h1",4),l(4),v(5,"translate"),a(),r(6,"p",5),l(7),v(8,"translate"),a()(),r(9,"div",6),x(10,ae,1,1,"app-service-accordion-card",7,re),a()()()),i&2){let e=d();n(4),f(" ",h(5,2,e.category.title)," "),n(3),f(" ",h(8,4,e.category.subtitle)," "),n(3),_(e.category.subServices)}}function ce(i,t){if(i&1&&(r(0,"p",12),l(1),a()),i&2){let e=d(2);n(),f(" ",e.translateSubtitle(e.getData)," ")}}function le(i,t){i&1&&(r(0,"div",13),s(1,"p-skeleton",20)(2,"p-skeleton",21)(3,"p-skeleton",21),a())}function pe(i,t){if(i&1&&s(0,"div",17),i&2){let e=d(2);p("innerHTML",e.safeContentHtml,A)}}function de(i,t){i&1&&(r(0,"div",18),s(1,"p-skeleton",22)(2,"p-skeleton",23)(3,"p-skeleton",24)(4,"p-skeleton",25)(5,"p-skeleton",26),a())}function me(i,t){if(i&1&&(r(0,"a",27),s(1,"i"),r(2,"h3",29),l(3),a()()),i&2){let e=t.$implicit,o=t.$index,c=d(3);p("delay",o*100)("routerLink",E(5,ne,c.t.currentLang,c.translateTitle(e),e._id)),n(),P(e.icon+" text-[100px] relative"),n(2),b(c.translateTitle(e))}}function ge(i,t){i&1&&s(0,"p-progress-spinner",28)}function ue(i,t){if(i&1&&(r(0,"div",19),x(1,me,4,9,"a",27,oe),m(3,ge,1,0,"p-progress-spinner",28),a()),i&2){let e=d(2);n(),_(e.items),n(2),g(e.loading?3:-1)}}function fe(i,t){if(i&1&&(r(0,"section",1)(1,"div",8)(2,"div",9)(3,"h1",10),l(4),a(),r(5,"div",11),m(6,ce,2,1,"p",12),m(7,le,4,0,"div",13),s(8,"app-bread-crumbs",14),a()()(),r(9,"div",15)(10,"div",16),m(11,pe,1,1,"div",17),m(12,de,6,0,"div",18),m(13,ue,4,1,"div",19),a()()()),i&2){let e=d();
1n(3),p("ngClass",e.t.currentLang==="ar"?"bg-linear-to-l":"bg-linear-to-r"),n(),f(" ",e.isLoading?". . . ":e.title," "),n(2),g(e.isLoading?-1:6),n(),g(e.isLoading?7:-1),n(),p("breadCrumbs",e.breadCrumbs),n(3),g(e.isLoading?-1:11),n(),g(e.isLoading?12:-1),n(),g(e.isLoading?-1:13)}}var Y=class i{constructor(t,e,o,c,C,ve){this.route=t;this.apiService=e;this.t=o;this.sanitizer=c;this.seoService=C;this.router=ve;this.breadCrumbs=[{label:"Home"},{label:"Services"}]}id;getData;items;loading=!1;isLoading=!1;breadCrumbs=[];title="";subtitle="";safeContentHtml="";currentLang="";isServicesPage=!1;category=null;routeSub;langSub;ngOnInit(){this.isServicesPage=this.route.snapshot.routeConfig?.path?.startsWith("services")??!1,this.isServicesPage?this.initStaticService():this.initCmsArticle()}ngOnDestroy(){this.routeSub?.unsubscribe(),this.langSub?.unsubscribe()}initStaticService(){this.routeSub=this.route.paramMap.subscribe(t=>{this.id=t.get("id");let e=Q(this.id);if(!e){this.router.navigate(["/",this.t.currentLang,"error-404"]);return}this.category=e,this.updateStaticSeo()}),this.langSub=this.t.onLangChange.subscribe(()=>{this.updateStaticSeo()})}updateStaticSeo(){if(!this.category)return;let t=this.t.instant(this.category.title),e=this.t.instant(this.category.subtitle);this.seoService.updateSeoTags({title:`${t} | Almanara`,description:e,keywords:e,canonicalUrl:`https://almanaraa.com/${this.t.currentLang}/services/${encodeURIComponent(t)}/${this.category.id}`})}initCmsArticle(){this.routeSub=this.route.paramMap.pipe(D(t=>(this.id=t.get("id"),this.isLoading=!0,this.apiService.get("/article/getArticle/"+this.id,{})))).subscribe({next:t=>{this.getData=t,this.id=t._id,this.updateSafeContent(),this.langSub=this.t.onLangChange.subscribe(()=>{this.currentLang!==this.t.currentLang&&this.updateSafeContent()}),this.getSimilar()},error:t=>{console.error("Error loading service:",t),this.isLoading=!1,(t.error?.statusCode===404||t.error?.statusCode===500)&&this.router.navigate(["/",this.t.currentLang,"error-404"])}})}updateSafeContent(){this.getData&&(this.safeContentHtml=this.translateContent(this.getData),this.currentLang=this.t.currentLang,this.title=this.translateTitle(this.getData),this.subtitle=this.translateSubtitle(this.getData),this.seoService.updateSeoTags({title:this.translateTitle(this.getData)+" | Almanara",description:this.translateSubtitle(this.getData),keywords:this.translateSubtitle(this.getData),canonicalUrl:`https://almanaraa.com/${this.t.currentLang}/${this.route.snapshot.url[0].path}/${this.translateTitle(this.getData)}/${this.getData._id}`}))}translateTitle(t){return this.t.currentLang==="ar"?t.title_ar:this.t.currentLang==="en"?t.title_en:this.t.currentLang==="tr"?t.title_tr:""}translateSubtitle(t){return this.t.currentLang==="ar"?t.subtitle_ar:this.t.currentLang==="en"?t.subtitle_en:this.t.currentLang==="tr"?t.subtitle_tr:""}getSimilar(){return L(this,null,function*(){this.loading=!0;try{let t=yield this.apiService.get("/article/getAllArticles?mainCategory=Features&fatherId="+this.id,{});this.items=t.map(e=>({title_ar:e.title_ar,title_en:e.title_en,title_tr:e.title_tr,icon:e.icon,content_en:e.content_en,content_ar:e.content_ar,content_tr:e.content_tr,_id:e._id}))}finally{this.loading=!1,this.isLoading=!1}})}getSafeHtml(t){return this.sanitizer.bypassSecurityTrustHtml(t)}translateContent(t){let e=this.t.currentLang,c={ar:t?.content_ar,en:t?.content_en,tr:t?.content_tr}[e];return this.sanitizer.bypassSecurityTrustHtml(c)}static \u0275fac=function(e){return new(e||i)(u(B),u(q),u(R),u($),u(K),u(H))};static \u0275cmp=S({type:i,selectors:[["app-service"]],decls:2,vars:1,consts:[[1,"bg-white","self-stretch"],[1,"overflow-hidden"],[1,"flex","flex-col","justify-center","items-center","gap-8","xl:gap-16","w-full","max-w-layout","mx-auto","p-6","sm:p-10","xl:p-section","pt-page"],[1,"flex","flex-col","justify-center","items-center","gap-4"],[1,"font-semibold","text-[32px]","leading-[32px]","text-center"],[1,"max-w-[636px]","text-center","text-[16px]","leading-[24px]","text-gray-subtitle"],[1,"flex","flex-col","items-start","gap-8","self-stretch"],[1,"self-stretch","w-full",3,"sub"],[1,"w-screen","px-14","sm:px-18","md:px-26","lg:px-32","md:pb-12","pt-24","h-[55vh]","flex","flex-col","justify-center","bg-cover","bg-[50%_80%]",2,"background-image",`linear-gradient(360deg, #000000e3, transparent),
2          linear-gradient(to right, color-mix(in srgb, var(--orange) 52%, transparent), transparent),
3          linear-gradient(to left, #003574eb, transparent), url('shipping.webp')`],[1,"container","mx-auto","lg:px-12"],[1,"p-[10px]","mx-auto","sm:mx-0","w-fit","flex","items-center","text-white","font-semibold","text-[24px]","leading-[32px]","md:text-[32px]","border-s","border-s-orange","from-orange/13","to-orange/0",3,"ngClass"],[1,"flex","flex-col","text-center","sm:text-start","sm:flex-row","gap-14","sm:gap-0","justify-between","items-center"],[1,"text-white","font-medium","text-sm","sm:text-normal","md:text-base","lg:text-xl","w-full","sm:w-4/6","mt-6","sm:mt-4","ps-4"],[1,"w-1/2","mt-6"],["pageTitle","Service",3,"breadCrumbs"],[1,"md:w-[80%]","mx-auto","p-8","lg:-translate-y-[80px]","bg-white","rounded-[12px]","shadow-[0_4px_112px_-20px_color-mix(in_srgb,var(--orange)_13%,transparent)]","mb
3-8","lg:mb-0","min-h-[550px]"],[1,"container","mx-auto","service-page"],[1,"content",3,"innerHTML"],[1,"flex","flex-col","justify-start","mb-4","flex-wrapper","w-full"],[1,"grid","lg:grid-cols-3","md:grid-cols-2","grid-cols-1","gap-10","pt-16"],[1,"mb-2","block"],[1,"mb-2","mb-2","block"],["styleClass","mb-3",1,"w-1/4"],["styleClass","mb-3",1,"w-2/4"],["styleClass","mb-3",1,"w-3/4"],["height","2rem","styleClass","mb-3"],["height","4rem"],["appFadeInOnScroll","",1,"hover:shadow-lg","text-blue","transition","cursor-pointer","px-8","py-6","rounded-[12px]","bg-gray","flex","flex-col","items-center","justify-center","text-center","card",3,"delay","routerLink"],["ariaLabel","loading",1,"lg:col-span-3","md:col-span-2","mx-auto"],[1,"font-semibold","text-[24px]","leading-[32px]"]],template:function(e,o){e&1&&m(0,se,12,6,"section",0)(1,fe,14,8,"section",1),e&2&&g(o.isServicesPage&&o.category?0:o.isServicesPage?-1:1)},dependencies:[G,F,z,j,w,V,X,J,k,y],styles:[".content{font-family:IBM Plex Sans Arabic!important;word-break:normal;word-break:break-word;-webkit-hyphens:none;hyphens:none;overflow-wrap:unset}  .content li{font-family:IBM Plex Sans Arabic!important;display:list-item;list-style-type:disc}  .content h2{font-family:IBM Plex Sans Arabic!important;margin-bottom:5px!important;margin-top:20px!important;color:var(--blue);font-size:21px!important}  .content a{text-decoration:underline!important;color:var(--orange)!important;transition:color .2s ease!important}  .content a:hover{color:var(--dark-orange)!important}  .content h1{font-family:IBM Plex Sans Arabic!important;color:var(--blue);font-size:32px!important}  .content ol{padding-inline-start:20px!important;margin-top:10px!important}  .content ul{padding-inline-start:20px!important;margin-top:10px!important}  .content p{min-height:24px!important;width:100%!important}"]})};export{Y as ServiceComponent};

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.