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