PageSourceSearch

https://www.fosterindustrial.co.uk/_nuxt/CWVuQsf7.js

js fosterindustrial.co.uk collected 2026-10-08 01:19:36 UTC 10,201 bytes, 61 lines download raw bytes

1import L from"./CETXgZmw.js";import{_ as I}from"./Ds0WhXo5.js";import{_ as T}from"./D-Di55Nb.js";import $ from"./BxHO7x-y.js";import P from"./C2GqF3J7.js";import{_ as U,a as A}from"./C1ITnI9x.js";import{_ as G,y as H,m as w,V as O,c as C,a as p,f as N,u as s,e as S,d as D,b as v,F as z,r as Q,n as j,S as J,o,w as M,t as y}from"./DQGiOTCX.js";import{_ as K}from"./DplpujwI.js";import{p as W}from"./H-EnUTRd.js";import"./C7-ShyhL.js";import"./DjVIQ-vh.js";import"./B5SuqUN-.js";import"./D0KN5_xm.js";const X=`#import '../fragments/matrix/hero.gql'
2#import '../pagebuilder.gql'
3
4query Page($slug: [String], $retourUrl: String) {
5  entry (slug: $slug, section: "Learn") {
6    id,
7    title,
8    parent {
9      title
10      uri
11      children {
12        id
13        title
14        slug
15        uri
16      }
17    }
18    children {
19      id
20      title
21      slug
22      uri
23    	...on learn_Entry {
24        featuredImage {
25          title
26          url
27        }
28        hero {
29          ...hero
30        }
31      }
32    }
33    ...on learn_Entry {
34      featuredImage {
35        title
36        url
37        focalPoint
38      }
39      hero {
40        ...hero
41      }
42      heroSimple {
43        html
44      }
45      pageBuilder {
46       ...pageBuilderBlocks
47      }
48    }
49    seomatic(asArray: true) {
50      metaTitleContainer
51      metaLinkContainer
52      metaScriptContainer
53      metaJsonLdContainer
54      metaTagContainer
55    }
56  }
57  retourResolveRedirect(uri: $retourUrl) {
58    redirectDestUrl
59    redirectHttpCode
60  }
61}`,f={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Page"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"retourUrl"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"entry"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}},{kind:"Argument",name:{kind:"Name",value:"section"},value:{kind:"StringValue",value:"Learn",block:!1}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"parent"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"uri"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"children"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"uri"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"children"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"slug"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"uri"},arguments:[],directives:[]},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"learn_Entry"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"featuredImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"hero"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hero"},directives:[]}]}}]}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"learn_Entry"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"featuredImage"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"focalPoint"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"hero"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"hero"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"heroSimple"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"html"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"pageBuilder"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pageBuilderBlocks"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"seomatic"},arguments:[{kind:"Argument",name:{kind:"Name",value:"asArray"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"metaTitleContainer"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"metaLinkContainer"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"metaScriptContainer"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"metaJsonLdContainer"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"metaTagContainer"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"retourResolveRedirect"},arguments:[{kind:"Argument",name:{kind:"Name",value:"uri"},value:{kind:"Variable",name:{kind:"Name",value:"retourUrl"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"redirectDestUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"redirectHttpCode"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:1028,source:{name:"GraphQL request",locationOffset:{line:1,column:1},body:X}}},R=m=>{const a={};return m.filter(function(r){if(r.kind!=="FragmentDefinition")return!0;const u=r.name.value;return a[u]?!1:(a[u]=!0,!0)})};f.definitions=R(f.definitions.concat(K.definitions));f.definitions=R(f.definitions.concat(U.definitions));const Y=(m,a)=>{const r=(e,i)=>{if(e.kind==="FragmentSpread")i.add(e.name.value);else if(e.kind==="VariableDefinition"){const n=e.type;n.kind==="NamedType"&&i.add(n.name.value)}return e&&"selectionSet"in e&&e.selectionSet&&e.selectionSet.selections.forEach(n=>{r(n,i)}),e&&"variableDefinitions"in e&&e.variableDefinitions&&e.variableDefinitions.forEach(n=>{r(n,i)}),e&&"definitions"in e&&e.definitions&&e.definitions.forEach(n=>{r(n,i)}),i},u=e=>{const i={};return e.definitions.forEach(function(n){"name"in n&&n.name&&(i[n.name.value]=r(n,new Set))}),i},_=(e,i)=>{for(let n=0;n<e.definitions.length;n++){const l=e.definitions[n];if(l&&"name"in l&&l.name&&l.name.value==i)return l}},k=u(m),t=Object.assign({},m,{definitions:[_(m,a)]}),h=k[a]||new Set,g=new Set;let c=new Set;
61for(h.forEach(e=>{c.add(e)});c.size>0;){const e=c;c=new Set,e.forEach(i=>{g.has(i)||(g.add(i),(k[i]||new Set).forEach(l=>{c.add(l)}))})}return g.forEach(e=>{const i=_(m,e);i&&t.definitions.push(i)}),t};Y(f,"Page");const Z={key:0,class:"learn-entry"},ee={key:2,class:"container mx-auto mb-12"},ie={class:"grid grid-cols md:grid-cols-3 justify-center"},ne={class:"flex flex-col border border-grey-150 h-full max-w-md"},te={class:"w-full categories__card__image"},ae={class:"flex flex-col h-full p-5"},re={class:"text-foster-dark text-xl md:text-2xl text-center leading-tight pb-5 font-heading font-bold uppercase"},se={key:0,class:"text-center text-grey-foster mb-8 font-body flex-grow"},le={class:"w-full md:w-3/5 mx-auto"},de={class:"btn btn--auto-width text-center font-bold uppercase"},oe={key:3},ce={__name:"[...slug]",async setup(m){var g,c;let a,r;const u=H(),_={320:{w:260,h:180},640:{w:520,h:340}},{data:k}=([a,r]=w(()=>j({query:f,variables:{slug:u.params.slug,retourUrl:"/"+u.path.replace(/^\/+/g,"")}})),a=await a,r(),a);if(!k.value.entry){const e=(g=k.value)==null?void 0:g.retourResolveRedirect;if(e!=null&&e.redirectDestUrl)[a,r]=w(()=>J(e.redirectDestUrl,{redirectCode:e.redirectHttpCode,external:!0})),await a,r();else throw O({statusCode:404,statusMessage:"Page not found"})}W((c=k.value)==null?void 0:c.entry.seomatic);const t=C(()=>{var e;return((e=k.value)==null?void 0:e.entry)||null}),h=C(()=>{var i;const e=[{url:"guides",title:"Guides"}];return(i=t.value)!=null&&i.parent&&e.push({url:t.value.parent.uri,title:t.value.parent.title}),e});return(e,i)=>{const n=L,l=I,E=T,V=$,q=P,B=A;return s(t)?(o(),p("div",Z,[s(t).hero[0].heading?(o(),S(n,{key:0,block:s(t).hero},null,8,["block"])):(o(),S(l,{key:1,title:s(t).title,copy:s(t).heroSimple},null,8,["title","copy"])),D(E,{links:s(h),current:s(t).title,class:"px-2 md:px-0"},null,8,["links","current"]),s(t).children.length?(o(),p("div",ee,[v("div",ie,[(o(!0),p(z,null,Q(s(t).children,d=>(o(),S(q,{key:d.id,to:"/"+d.uri,class:"m-4 categories__card"},{default:M(()=>{var F,b,x;return[v("div",ne,[v("div",te,[(F=d.featuredImage)!=null&&F.length?(o(),S(V,{key:0,src:d.featuredImage[0].url,alt:d.featuredImage[0].title,sizes:_,"img-class":"img--responsive"},null,8,["src","alt"])):N("",!0)]),v("div",ae,[v("div",re,y(d.title),1),(x=(b=d.hero)==null?void 0:b[0])!=null&&x.copy?(o(),p("div",se,y(d.hero[0].copy),1)):N("",!0),v("div",le,[v("div",de,y(d.buttonLabel||"View Guide"),1)])])])]}),_:2},1032,["to"]))),128))])])):(o(),p("div",oe,[D(B,{ctx:s(t).pageBuilder},null,8,["ctx"])]))])):N("",!0)}}},be=G(ce,[["__scopeId","data-v-fb516f2c"]]);export{be 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.