function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = ["./PagePreview.BQ1gEpd8.js","./PagePreview.vue.n8JFaC2y.js","./Image.vue.NJXRPlQC.js","./Image.vue.CPCAhc4E.js","./entry.Ddy3dMw-.js","./entry.CgkFUY7k.css","./image.Ca_qe83Z.js","./Video.vue.CoJ9SN4r.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } import{g as F,h as M,r as h,x as q,M as j,o as a,c,a as t,m as e,L as $,n as m,t as C,j as v,w as d,d as A,b as p,a1 as Y,F as R,A as I,a2 as B,T as Z,R as D,K as ee,C as W,a3 as te,i as oe,s as ae,y as se,D as ne,k as re,H as le,I as ie}from"./entry.Ddy3dMw-.js";import{V as E}from"./vue3-slide-up-down.CNta260n.js";import{_ as ue}from"./Section.yx9Eiag9.js";import{_ as ce}from"./Contact.vue.CEV6ESl6.js";import{_ as de}from"./FullWidth.vue.BnnvC3aM.js";import{_ as me}from"./Page.CmHHJXlr.js";import{u as _e}from"./pagination.4ttdWwDo.js";import{g as pe}from"./index.CcnDKlv-.js";import{k as fe}from"./image.Ca_qe83Z.js";import{w as ye}from"./home.DFk1FaXE.js";const ve={class:"flex flex-col justify-center md:px-[1em] px-[0.5em] text-center bg-white pointer-events-auto rounded-xl relative z-10"},ge={key:0,class:"font-normal h3 md:h5"},he={key:1},ke={key:0,class:"font-normal h3 md:h5"},xe={key:0,class:"absolute right-4"},we={class:"md:w-[0.9em] w-[0.65em] translate-y-[0.05em] md:group-hover:text-thonik-darkgrey transition-colors"},be={class:"flex flex-col gap-[0.5em] mt-[0.5em] pb-6"},qe={class:"font-normal md:h5 h3"},$e=F({__name:"Navigation",props:{values:{},dictionary:{}},setup(y){const n=M(),o=h(!1);return q(()=>n.query.category,s=>{s&&(o.value=!1)}),(s,r)=>{const l=j("RouterLink"),f=Z;return a(),c(R,null,[t("div",ve,[t("div",{class:"relative flex items-center justify-center py-[0.75em] cursor-pointer group",onClick:r[0]||(r[0]=i=>o.value=!e(o))},[t("div",{class:$(["transition-colors",{"md:group-hover:text-thonik-darkgrey":!e(o)}])},[e(n).query.category?m("",!0):(a(),c("div",ge," a lot ")),e(n).query.category?(a(),c("span",he,[e(o)?m("",!0):(a(),c("div",ke,C(s.dictionary[e(n).query.category].title),1)),e(o)?(a(),v(l,{key:1,to:{query:{category:void 0}},class:"font-normal h3 md:h5 text-thonik-darkgrey md:hover:text-black"},{default:d(()=>[A("a lot")]),_:1})):m("",!0)])):m("",!0)],2),p(Y,{name:"fade"},{default:d(()=>[e(o)?m("",!0):(a(),c("div",xe,[t("div",we,[p(f)])]))]),_:1})]),p(e(E),{modelValue:e(o),"onUpdate:modelValue":r[1]||(r[1]=i=>B(o)?o.value=i:null),duration:350,"opacity-closed":1},{default:d(()=>[t("div",be,[(a(!0),c(R,null,I(s.values,(i,u)=>(a(),v(l,{key:u,class:$(["transition-colors md:hover:text-black",{"text-thonik-darkgrey":i!==e(n).query.category}]),to:{query:{category:i}}},{default:d(()=>[t("div",qe,C(s.dictionary[i].title),1)]),_:2},1032,["class","to"]))),128))])]),_:1},8,["modelValue"])]),e(o)?(a(),c("div",{key:0,class:"fixed top-0 left-0 z-0 w-full h-full pointer-events-auto",onClick:r[2]||(r[2]=i=>o.value=!1)})):m("",!0)],64)}}}),Ce={class:"max-w-full lowercase"},Re={class:"flex items-center gap-2 pb-2"},Ve=["innerHTML"],Pe=t("div",{class:"block w-4 h-[0.1em] bg-black"},null,-1),Le={class:"flex flex-wrap gap-2 leading-none"},Ae=F({__name:"Navigation",props:{title:{},values:{},dictionary:{}},setup(y){const n=M(),o=D(),s=h(!1),r=ee(()=>o.currentRoute.value.query.field);return q(r,()=>{s.value=!1}),(l,f)=>{const i=j("RouterLink");return a(),c("div",Ce,[t("div",Re,[t("div",{innerHTML:l.title},null,8,Ve),Pe,t("button",{class:"underline lowercase",onClick:f[0]||(f[0]=u=>s.value=!e(s))},C(l.dictionary[e(r)]?l.dictionary[e(r)].title:"All"),1)]),p(e(E),{modelValue:e(s),"onUpdate:modelValue":f[1]||(f[1]=u=>B(s)?s.value=u:null),duration:300,"opacity-closed":1},{default:d(()=>[t("div",Le,[p(i,{class:$(["transition-colors md:hover:text-black",{"text-thonik-darkgrey":e(n).query.field}]),to:{query:{field:void 0}}},{default:d(()=>[A("all")]),_:1},8,["class"]),(a(!0),c(R,null,I(l.values,(u,g)=>(a(),v(i,{key:g,to:{query:{field:u}},class:$(["truncate transition-colors md:hover:text-black",{"text-thonik-darkgrey":u!==e(n).query.field}])},{default:d(()=>[A(C(l.dictionary[u].title),1)]),_:2},1032,["to","class"]))),128))])]),_:1},8,["modelValue"])])}}}),Fe={text:"page.text.kt",children:!1,fields:{query:"page.children.listed",select:{fields:'page.fields.split(",")'}},categories:{query:"page.children.listed",select:{categories:'page.services.split(",")'}},thumbnails:{query:"page.children.listed",select:{thumbnail:{query:"page.getThumbnail",select:fe}}}};function Ie(){return{query:'page("work")',select:{...W,...Fe}}}const Ne=(y,n,o="all",s="all")=>pe(`page('work').getFilteredChildren('${o}', '${s}')`,{...ye,...W},y,n),Qe=le(()=>ie(()=>import("./PagePreview.BQ1gEpd8.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url).then(y=>y.default||y)),Se=t("h4",{class:"hidden mb-4 text-center md:block"},"we love to do",-1),Te=t("h3",{class:"mb-4 text-center md:hidden"},"we love to do",-1),ze={class:"sticky z-20 pb-32 pointer-events-none md:top-3 top-4"},Me={class:"absolute z-10 w-full"},je={class:"md:max-w-[18em] max-w-[18em] mx-auto"},Be={class:"mb-em caption"},De={class:"grid grid-cols-1 gap-gap-half md:grid-cols-2"},Ze=F({__name:"index",async setup(y){var N;let n,o;const s=()=>{const _=l.currentRoute.value.query;g.value=_.category,k.value=_.field},r=te(),l=D(),{data:f,error:i}=([n,o]=oe(()=>re(Ie())),n=await n,o(),n);if(i.value)throw i.value;const u=(N=f.value)==null?void 0:N.result;ae(u);const g=h(void 0),k=h(void 0),H=new Set(u.fields.flatMap(_=>_.fields).flat()),U=new Set(u.categories.flatMap(_=>_.categories).flat());s();const{paginationState:V,loadMore:K}=_e(10,Ne),x=h([]),P=async()=>{var w,b;const{data:_}=await K(g.value,k.value),L=(b=(w=_.value)==null?void 0:w.result)==null?void 0:b.data;L&&(x.value=[...x.value,...L])};return se(async()=>{await ne(),P()}),q(()=>l.currentRoute.value.query,()=>{g.value=l.currentRoute.value.query.category,k.value=l.currentRoute.value.query.field}),q(()=>[g.value,k.value],()=>{x.value=[],P()}),(_,L)=>{const w=$e,b=Ae,G=Qe,Q=ue,O=ce,J=de,X=me;return e(u)?(a(),v(X,{key:0},{default:d(()=>{var S;return[Se,Te,t("div",ze,[t("div",Me,[t("div",je,[(S=e(r).filters)!=null&&S.work.categories?(a(),v(w,{key:0,values:e(U),dictionary:e(r).filters.work.categories},null,8,["values","dictionary"])):m("",!0)])])]),p(Q,null,{default:d(()=>{var T;return[t("div",Be,[(T=e(r).filters)!=null&&T.work.fields?(a(),v(b,{key:0,title:"Fields",values:e(H),dictionary:e(r).filters.work.fields},null,8,["values","dictionary"])):m("",!0)]),t("div",De,[(a(!0),c(R,null,I(e(x),z=>(a(),c("div",{key:z.id},[p(G,{item:z},null,8,["item"])]))),128))])]}),_:1}),e(V)&&e(V).page<e(V).pages?(a(),v(Q,{key:0},{default:d(()=>[t("div",{class:"flex items-center justify-center mt-gap-2"},[t("button",{class:"px-4 py-2 bg-white rounded",onClick:P}," Show more ")])]),_:1})):m("",!0),p(J,null,{default:d(()=>[p(O)]),_:1})]}),_:1})):m("",!0)}}});export{Ze as default};