1import{g as z,v as M,x as N,z as P,A as D,i as F,U as J,u as V,o as s,f as u,w as q,a as E,j as r,m as o,c as h,t as I,T as W,q as _,p as n}from"./DuTjZyGd.js";import{_ as G}from"./BbjuGwdX.js";import{t as K,s as Q}from"./aGVPlBmt.js";import{_ as X}from"./Dgsv0kkW.js";import{u as Y,_ as Z}from"./CPy1Fl4r.js";import{b as ee,a as te,u as ae,d as se,e as re}from"./Cz8kOcL3.js";const oe={key:1,class:"flex flex-col"},ne=["innerHTML"],le={key:3,class:"h-[100vh] flex justify-center items-center"},_e={__name:"PagesHomePage",async setup(ie){let c,x;const{defaultStatics:T,currentStatics:$,currentIsoCode:g}=z(),b=_([]),d=_(!1),l=_(""),i=_({}),p=n(()=>b.value.filter(t=>t).sort((t,e)=>t.order-e.order).map(t=>t.type==="group"&&t.children?{...t,innerHTML:t.children.filter(e=>e).sort((e,a)=>e.order-a.order)}:t)),w=D(),{data:y,pending:k,error:f}=([c,x]=M(()=>N(()=>`pages-home-${g.value}`,()=>ee("/api/v1/pages/home"),{server:w.public.asyncDataSSR,lazy:!0,watch:[g]})),c=await c,x(),c),{setAlternates:A,clearAlternates:B}=te();A("index"),P(B),Y();const{public:{siteBase:ue}}=D();F(y,t=>{!t||f.value||(b.value=(t.data?.meta?.components??[]).filter(e=>{if(!e.data||e.data.length===0||e.visibility===0)return!1;try{const a=JSON.parse(e.data);return a&&Object.keys(a).length>0}catch{return!1}}).map((e,a)=>({type:e.slug,props:{data:K(JSON.parse(e.data)),products:e.products,forms:e.forms,projects:e.projects,blogs:e.blogs},order:e.order||a})),l.value=t?.data?.body||"",t?.data?.seo&&(i.value=t.data.seo),d.value=!0)},{immediate:!0});const C=n(()=>y.value?.data?.title),H=n(()=>y.value?.data?.description),S=n(()=>i.value?.metaTitle||C.value),j=n(()=>i.value?.metaDescription||H.value),{localizedUrl:O}=ae(),L=n(()=>`https://farahoush.com${O(null,g.value,"index")}`.replace(/\/$/,"/"));return J(),V(()=>{const t=i.value?.metaRobots||{},e=i.value?.advancedSettings||{},a=Object.keys(t).filter(v=>t[v]),R=Object.entries(e).filter(([v,m])=>m?.active&&m?.value!=="").map(([v,m])=>`${v}:${m.value}`),U=[...a,...R].join(", ");return{title:S.value,meta:[{name:"description",content:j.value},{property:"og:title",content:S.value},{property:"og:description",content:j.value},{name:"robots",content:U||"noindex, nofollow"}],link:[{rel:"canonical",href:L.value}]}}),se([re()]),(t,e)=>(s(),u(W,{name:"fade",mode:"out-in"},{default:q(()=>[E("div",null,[(r(k)||!d.value)&&!r(f)?(s(),u(Q,{key:0})):o("",!0),d.value&&!r(k)&&!r(f)?(s(),h("div",oe,[p.value?.length?(s(),u(G,{key:0,data:p.value},null,8,["data"])):o("",!0),l.value?(s(),h("div",{key:1,class:"py-[150px]",innerHTML:l.value},null,8,ne)):o("",!0),p.value?.length||l.value?(s(),u(X,{key:2,class:"min-[1300px]:px-[150px] mx-[25px] min-[1000px]:py-[80px] py-[40px]"})):o("",!0),d.value&&!l.value&&p.value?.length===0?(s(),h("div",le,I(r($)?.no_results_found||r(T)?.no_results_found||"Ù
ØØªÙاÛÛ ÛØ§Ùت ÙØ´Ø¯..."),1)):o("",!0)])):o("",!0),r(f)?(s(),u(Z,{key:2})):o("",!0)])]),_:1}))}};export{_e as _};
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.