import{j as e}from"./index-bIIEL2MP.js";import{useMDXComponents as n}from"./index-CO-0pc0F.js";import{M as c,C as t}from"./index-Z-6k0Xrj.js";import{R as i,D as l,B as p}from"./ReferralBlock.stories-CQ3fF4Xy.js";import"./_commonjsHelpers-D6-XlEtG.js";import"./iframe-CzjIX-qr.js";import"./index-aQYXhgXp.js";import"./index-DrFu-skq.js";import"./props-b4vEeO_8.js";import"./runtime-C3rQLW--.js";import"./lifecycle-F2p_Qkk3.js";import"./create-runtime-stories-7AWWVphH.js";import"./snippet-C5kbqVpq.js";import"./svelte-component-C8Ginrj8.js";import"./get-C3XmtPLd.js";import"./ReferralBlock-BGN_l1hf.js";import"./index-client-BAw8T8-V.js";import"./each-CVpBMMjG.js";import"./attributes-Cg6aLqN3.js";import"./style-DvJ3IcV1.js";import"./size-DMdj3-I9.js";import"./time-7uMnD1vs.js";import"./advancedFormat-DF-l3-BJ.js";import"./dayjs.min-CfWDS3UC.js";import"./Block-D3Ui8rd-.js";function s(o){const r={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...n(),...o.components};return e.jsxs(e.Fragment,{children:[e.jsx(c,{of:i}),` `,e.jsx(r.h1,{id:"referralblock",children:"ReferralBlock"}),` `,e.jsxs(r.p,{children:["The ",e.jsx(r.code,{children:"ReferralBlock"})," component creates a set of referral links from recent Reuters.com stories using the ",e.jsx(r.a,{href:"https://www.reuters.com/pf/api/v3/content/fetch/recent-stories-by-sections-v1?query=%7B%22section_ids%22%3A%22%2Fworld%2F%22%2C%22size%22%3A20%2C%22website%22%3A%22reuters%22%7D",rel:"nofollow",children:"recent stories by section API"}),"."]}),` `,e.jsxs(r.blockquote,{children:[` `,e.jsxs(r.p,{children:["Note: The ",e.jsx(r.code,{children:"section"})," or ",e.jsx(r.code,{children:"collection"})," prop determines which section or collection stories are from."]}),` `,e.jsxs(r.p,{children:["You can get the section ID from the URL for the Reuters.com section pages. For example, the section ID for ",e.jsx(r.a,{href:"https://www.reuters.com/world/europe/",rel:"nofollow",children:"World - Europe"})," stories at ",e.jsx(r.code,{children:"www.reuters.com/world/europe/"})," would be ",e.jsx(r.code,{children:"/world/europe/"}),". (The leading and trailing slashes are required!)"]}),` `,e.jsx(r.p,{children:"You should get the collection alias from the dotcom team."}),` `]}),` `,e.jsx(r.pre,{children:e.jsx(r.code,{className:"language-svelte",children:`