import{_ as U,a as I,b as M,c as j,d as z,e as E,f as K,g as G,h as J,i as O,j as Q,k as T,l as V,m as W,n as X,o as Y,p as Z,q as aa,r as sa,s as ea,t as ia,u as ta,v as na,w as ma,x as ca,y as _a,z as oa,A as ra,B as la,C as ya,D as fa,E as d,F as ua,G as Aa,H as pa,I as $a,J as da,K as Sa,L as ga,M as va,N as ka,O as ha,P as Ca,Q as Ha,R as xa,S as Ba,T as La}from"./CvnYa_Ca.js";import{_ as ba}from"./Dh2Iwyy5.js";import{_ as Fa,a as Ra}from"./CdA74PDI.js";import{_ as wa}from"./CgGwVO9K.js";import{_ as Da}from"./BET59fY2.js";import{u as Na,A as Pa,B as qa,f as S,C as Ua,g as Ia,i as Ma,j as g,o as a,c as m,m as s,d as n,p as r,F as _,a9 as v,b as k,r as ja,s as za,K as Ea,D as Ka,q as Ga}from"./C_yW9YRN.js";import{_ as Ja}from"./CIQ2CjnD.js";import"./CiGiHfhf.js";import"./CXViUzUT.js";import"./C7I-j3S9.js";import"./CcDrlLcw.js";import"./iQ7bPJE9.js";import"./Dr4acodI.js";const Oa={class:"bg-gradient-to-b"},cs={__name:"[slug]",async setup(Qa){let o,u;const h={AlamiyaHeader:U,AlamiyaHeader1:I,AlamiyaHeader2:M,AlamiyaHeader3:j,AlamiyaHeader4:z,AlamiyaHeader5:E,AlamiyaHeader6:K,AlamiyaHeader7:G,AlamiyaHeader8:J,AlamiyaHeader9:O,AlamiyaHeader10:Q,AlamiyaHeader11:T},C={AboutCards:ba,HomePartners:Fa,AlamiyaSection:V,AlamiyaSection1:W,AlamiyaSection2:X,AlamiyaSection3:Y,AlamiyaSection4:Z,AlamiyaSection5:aa,AlamiyaSection6:sa,AlamiyaSection7:ea,AlamiyaSection8:ia,AlamiyaSection9:ta,AlamiyaBestServices1:na,AlamiyaBrand:ma,AlamiyaCardSection:ca,AlamiyaCardSection1:_a,AlamiyaContactSection:oa,AlamiyaContactSection1:ra,AlamiyaContactSection2:la,AlamiyaContactSection3:ya,AlamiyaContactSection4:fa,AlamiyaFaq:d,AlamiyaFeatures:ua,AlamiyaFeatures1:Aa,AlamiyaProgress:pa,AlamiyaProgress1:$a,AlamiyaProgress2:da,AlamiyaServiceStatistics:Sa,AlamiyaStatistics:ga,AlamiyaStatistics1:va,AlamiyaCardSwiper:ka,AlamiyaBestServices:ha,AlamiyaBestServicesSwiper:Ca,AlamiyaBestServicesSwiper1:Ha,AlamiyaBestServicesSwiper2:xa,AlamiyaBestServicesSwiper3:Ba},A=Ga(),{locale:l}=Na(),p=Pa(),H=qa(),y=S(null),c=S(!1),x=Ua(),$=Ia().$axios,{data:e,error:B,pending:L}=([o,u]=Ma(()=>za("system",()=>$.get(`systems/${encodeURI(p.params.slug)}`,{baseURL:A.public.baseURL,headers:{"Accept-Language":l.value}}).then(i=>i.data.data).catch(i=>i))),o=await o,u(),o);g(()=>e.value,(i,f)=>{f&&f.id==i.id&&p.params.slug!=i.slug&&H.push(x(`/system/${i.slug}`)),c.value=!0,e.value&&b()},{immediate:!0,deep:!0}),g(()=>l.value,()=>{Ea("system")});function b(){$.get(`systems/${e.value.id}/sections`,{baseURL:A.public.baseURL,headers:{"Accept-Language":l.value}}).then(i=>{y.value=i.data.data,c.value=!1}).catch(()=>c.value=!1)}return(i,f)=>{const F=wa,R=Da,w=Ka,D=Ja,N=Ra,P=La,q=d;return a(),m("div",Oa,[s(e)&&s(e).metas?(a(),n(F,{key:0,metas:s(e).metas},null,8,["metas"])):r("",!0),s(L)?(a(),n(R,{key:1})):(a(),m(_,{key:2},[s(B)?(a(),n(w,{key:0})):(a(),m(_,{key:1},[s(e)?(a(),n(v(h[s(e).type]),{key:0,item:s(e)},null,8,["item"])):r("",!0)],64)),s(c)?(a(),m(_,{key:2},[k(D),k(N)],64)):r("",!0),!s(c)&&s(y)?(a(!0),m(_,{key:3},ja(s(y),t=>(a(),m(_,{key:t.id},[t[0].type=="AlamiyaMultiSection"?(a(),n(P,{key:0,items:t},null,8,["items"])):t[0].type=="AlamiyaFaq"?(a(),n(q,{key:1,item:t[0],"main-data":s(e)},null,8,["item","main-data"])):(a(),n(v(C[t[0].type]),{key:2,item:t[0]},null,8,["item"]))],64))),128)):r("",!0)],64))])}}};export{cs as default};
