1import{j as I,q as M,f as R,n as U,o as k,u as q,_ as w}from"./DazS2Sdg.js";import{_ as x}from"./BBZTP3fr.js";import{a4 as L,l as N,Q as h,R as p,U as O,S as b,u as i,a3 as P,M as D,X as G}from"./qUzZosh9.js";const V={key:1,class:"container"},z={class:"mb-6 md:mb-10"},K={__name:"[region]",async setup(Q){var y,g;let r,_;const A=[{title:"Offices",link:I()("office")}],n=[{key:"asia-pacific",title:"Asia/Pacific",code:"ap"},{key:"europa-middle-east-asia",title:"Europe, Middle East, Africa",code:"emea"},{key:"north-america",title:"North America",code:"na"},{key:"latin-america",title:"Latin America",code:"la"}],c=M(),C=R` 2 query getOffices { 3 offices(first: 1000) { 4 nodes { 5 id 6 title 7 slug 8 featuredImage { 9 node { 10 sourceUrl(size: MEDIUM_LARGE) 11 } 12 } 13 officesConfiguration { 14 officeInfo { 15 address 16 country 17 email 18 lat 19 lon 20 phone 21 region 22 timezone 23 alternativeGoogleMapsLink 24 } 25 } 26 } 27 } 28 } 29`,{data:o,error:v,status:B}=([r,_]=L(()=>U(C)),r=await r,_(),r);if(v.value)throw k({statusCode:500});if(B.value==="success"&&!((y=o.value)!=null&&y.offices))throw k({statusCode:404});const E=N(()=>{var m,f,l;return((l=(f=(m=o==null?void 0:o.value)==null?void 0:m.offices)==null?void 0:f.nodes)==null?void 0:l.filter(s=>{var e;return s.officesConfiguration.officeInfo.region===((e=n.find(t=>t.key===c.params.region))==null?void 0:e.code)})).sort(function(s,e){const t=s.title.toUpperCase(),a=e.title.toUpperCase();return t<a?-1:t>a?1:0})});return q({title:`${(g=n.find(u=>u.key===c.params.region))==null?void 0:g.title}`}),(u,m)=>{var s,e,t,a;const f=w,l=x;return p(),h("div",null,[(s=i(o))!=null&&s.offices?(p(),O(f,{key:0,crumbs:[...A,{title:(e=n.find(d=>d.key===i(c).params.region))==null?void 0:e.title}]},null,8,["crumbs"])):b("",!0),(t=i(o))!=null&&t.offices?(p(),h("div",V,[P("h1",z,G((a=n.find(d=>d.key===i(c).params.region))==null?void 0:a.title),1),D(l,{class:"py-5 md:py-10 md:mb-24",offices:i(E)},null,8,["offices"])])):b("",!0)])}}};export{K 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.