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