1import{a as f,s as H,h as T,i as x,_ as I,u as N}from"./pOl03b5N.js";import{l as t,m as o,k as e,n as c,p as S,q as l,r as j,t as k,d as b,u as Q,a as A,w as C,e as P,o as w,g as D,h as m,i as M,j as q,f as p,_ as v}from"./BuZu9ToP.js";const d="sliceHomeHero",V="SliceHomeHero",B=o` 2_type == "${d}" => { 3 "type": "${d}", 4 "componentName": "${V}", 5 anchor, 6 title, 7 description, 8 duration, 9 autoplay, 10 "slides": slides[] { 11 "image": image { 12 ${t} 13 }, 14 slideTitle 15 }, 16} 17`,$="sliceHomeAgency",E="SliceHomeAgency",L=o` 18_type == "${$}" => { 19 "type": "${$}", 20 "componentName": "${E}", 21 anchor, 22 title, 23 "description": description[] { 24 ${e} 25 }, 26 "firstCrossText": firstCrossText[] { 27 ${e} 28 }, 29 "secondCrossText": secondCrossText[] { 30 ${e} 31 }, 32 "image1": image1 { 33 ${t} 34 }, 35 "image2": image2 { 36 ${t} 37 }, 38 "image3": image3 { 39 ${t} 40 }, 41 "image4": image4 { 42 ${t} 43 }, 44} 45`,u="sliceHomeVision",O="SliceHomeVision",F=o` 46_type == "${u}" => { 47 "type": "${u}", 48 "componentName": "${O}", 49 anchor, 50 title, 51 "description": description[] { 52 ${e} 53 }, 54 "crossText": crossText[] { 55 ${e} 56 }, 57 "quoteText": quoteText[] { 58 ${e} 59 }, 60 "image1": image1 { 61 ${t} 62 }, 63 "image2": image2 { 64 ${t} 65 }, 66 "button": button[0] { 67 ${c} 68 }, 69} 70`,g="sliceHomeInspiration",K="SliceHomeInspiration",R=o` 71_type == "${g}" => { 72 "type": "${g}", 73 "componentName": "${K}", 74 anchor, 75 title, 76 "description": description[] { 77 ${e} 78 }, 79 "media1": media1 { 80 ${S} 81 }, 82 "introText": introText[] { 83 ${e} 84 }, 85 "button": button[0] { 86 ${c} 87 }, 88 "accordionSections": accordionSections[] { 89 sectionTitle, 90 "crossText": crossText[] { 91 ${e} 92 }, 93 "images": images[] { 94 "image": image { 95 ${t} 96 }, 97 title, 98 "ratio": ratio 99 }, 100 }, 101} 102`,y="sliceHomeProjects",W="SliceHomeProjects",z=o` 103_type == "${y}" => { 104 "type": "${y}", 105 "componentName": "${W}", 106 anchor, 107 displayMode, 108 "projects": select( 109 displayMode == 'all' => *[ 110 _type == "project" && 111 language == ^.^.language && 112 // Prefer drafts: include drafts OR published without a draft 113 (_id in path("drafts.**") || !defined(*[_id == "drafts." + ^._id][0])) 114 ] | order(_createdAt desc) { 115 "title": title, 116 "slug": slug.current, 117 "link": {${l("project")}}, 118 "thumnailImage1": thumnailImage1 { 119 ${t} 120 }, 121 "thumnailImage2": thumnailImage2 { 122 ${t} 123 }, 124 place, 125 year, 126 surface, 127 "description": select( 128 defined(shortDescription) && length(shortDescription) > 0 => shortDescription[] { 129 ${e} 130 }, 131 description[] { 132 ${e} 133 } 134 ) 135 }, 136 displayMode == 'manual' => projects[]-> { 137 "title": title, 138 "slug": slug.current, 139 "link": {${l("project")}}, 140 "thumnailImage1": thumnailImage1 { 141 ${t} 142 }, 143 "thumnailImage2": thumnailImage2 { 144 ${t} 145 }, 146 place, 147 year, 148 surface, 149 "description": select( 150 defined(shortDescription) && length(shortDescription) > 0 => shortDescription[] { 151 ${e} 152 }, 153 description[] { 154 ${e} 155 } 156 ) 157 } 158 ), 159 "button": button[0] {${c}} 160} 161`,G=o`*[_type == "pageHome" && language == $language][0]`,J=o`*[_type == "pageHome" && language == $language][0]{ 162 "title": title, 163 "headerTheme": headerTheme, 164 "slices": slices[] { 165 ${B}, 166 ${L}, 167 ${F}, 168 ${R}, 169 ${z}, 170 ${f}, 171 ${H}, 172 }, 173 ${j}, 174 ${k} 175}`,U=async(r,i)=>{const s=await r.fetch(J,i);return s&&(s.slices=s.slices?.filter(T("type")).filter(n=>!x(n)),s.seo||(s.seo={title:s.title,description:s.title})),s},X={class:"Home"},Y=b({__name:"index",async setup(r){let i,s;const n=Q(),{setPageType:h}=A(),{data:a}=([i,s]=C(()=>N(G,U,"home")),i=await i,s(),i);return h("pageHome"),a.value?.seo&&P(a.value.seo),w(()=>{n.setHeaderTheme(a.value.headerTheme)}),(Z,ee)=>{const _=I;
175return p(),D("main",X,[m(a)?(p(),M(_,{key:0,slices:m(a).slices},null,8,["slices"])):q("",!0)])}}}),oe=v(Y,[["__scopeId","data-v-8ee09482"]]);export{oe as default};
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.