1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="5a6a0c70-2826-4f18-9b9b-dce45b2701d2",e._sentryDebugIdIdentifier="sentry-dbid-5a6a0c70-2826-4f18-9b9b-dce45b2701d2")}catch(D){}import{cI as e,c0 as l,dD as n,c3 as a,c7 as i,cA as t,cB as s,b$ as d,c1 as r,c9 as o,ca as u,cb as c,ce as g,cx as f,cs as v,ct as p,cy as y,d1 as b,cc as I}from"./index.061e774e.js";import{C as L}from"./ContentfulField.50bca384.js";import"./useContentfulLivePreview.bf395284.js";const m=e` 2 query RELATED_LINKS($groupingId: String!) { 3 browsePageListByGroupingId(groupingId: $groupingId) { 4 title 5 slug 6 groupingId 7 } 8 } 9`;const w={name:"ContentfulRelatedLinks",components:{ContentfulField:L},props:{...t},async setup(e,i){var t,o,u,c,g;const{data:f,init:v}=s("relatedLinks",e,i),p=d(),{data:y,loading:b,init:I}=function(e="",i=12,t=""){const[s,d,r]=l((async()=>{try{const l=await n(m,{groupingId:e});if(null==l?void 0:l.browsePageListByGroupingId)return l.browsePageListByGroupingId.filter((e=>e.slug!==t)).slice(0,i);throw new Error(`contentful useRelatedLinks failed for groupingId ${e}`)}catch(l){a.sentryCaptureError(l)}}),null);return{data:s,loading:d,init:r}}(null==(t=null==f?void 0:f.value)?void 0:t.groupingId,(null==(o=null==f?void 0:f.value)?void 0:o.maxLinks)||12,null==(g=null==(c=null==(u=null==p?void 0:p.currentRoute)?void 0:u.value)?void 0:c.params)?void 0:g.slug);await Promise.all([v,I]);const L=r((()=>{var e,l;return(null==(e=null==f?void 0:f.value)?void 0:e.ctaTarget)&&(null==(l=null==y?void 0:y.value)?void 0:l.length)>0})),w=r((()=>{var e;return(null==(e=null==f?void 0:f.value)?void 0:e.ctaLabel)||"See All"}));return{data:f,relatedLinks:y,displaySeeAll:L,seeAllLinkLabel:w}}},k={class:"items-container"},h=["id","href"],_={key:0,class:"all-links"},A=["href"];var C=i(w,[["render",function(e,l,n,a,i,t){var s;const d=o("ContentfulField");return u(),c(d,{component:"div","entry-id":null==(s=e.sys)?void 0:s.id,"field-id":"slug",class:"container"},{default:g((()=>[f("div",k,[(u(!0),v(p,null,y(a.relatedLinks,((e,l)=>(u(),v("div",{key:l,class:"items"},[f("a",{id:e.slug,href:e.slug},b(e.title),9,h)])))),128))]),a.displaySeeAll?(u(),v("div",_,[f("a",{href:a.data.ctaTarget},b(a.seeAllLinkLabel),9,A)])):I("",!0)])),_:1},8,["entry-id"])}],["__scopeId","data-v-1e70ee6e"]]);export{C as default}; 10//# sourceMappingURL=ContentfulRelatedLinks.b214cff8.js.map
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.