import{S as X,i as Z,s as $,k as le,d as R,t as C,v as se,h as T,w as re,f as I,D as ne,g as q,m as M,j as N,y as A,o as k,b as m,P as oe,r as y,Q as ie,V as ae,z as O,e as p,A as E,F as Y,C as F}from"./index-8e2228d6.js";import{g as x,a as ee}from"./spread-8a54911c.js";import{p as ce,M as fe,T as me,S as J}from"./collect-stories-f2899c5f.js";import{e as Q}from"./each-e59479a4.js";import{B as ue}from"./Block-9ace8085.js";import{g as W}from"./time-f9db70de.js";import{b as de,w as _e}from"./withParams-47e2ab71.js";import"./_commonjsHelpers-de833af9.js";const pe=`The \`ReferralBlock\` component creates a set of referral links from recent dotcom stories using the [recent stories by section API](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) or the [articles by collection API](https://www.reuters.com/pf/api/v3/content/fetch/articles-by-collection-alias-or-id-v1?query=%7B%22collection_alias%22%3A%22x-trump%22%2C%22size%22%3A20%2C%22website%22%3A%22reuters%22%7D). > The \`section\` or \`collection\` prop determines which section or collection stories are from. > > You can get the section ID from the section page on dotcom. For example, the section ID for World - Europe stories at \`www.reuters.com/world/europe/\` would be \`/world/europe/\`. (The leading and trailing slashes are required!) > > You should get a collection alias from the dotcom team. \`\`\`svelte