import{S as X,i as Z,s as $,v as le,d as R,t as C,w as se,h as T,x as re,f as I,D as ne,g as q,m as M,j as O,z as A,o as k,b as m,O as oe,r as y,P as ie,V as ae,k as N,e as p,A as E,F as Y,C as F}from"./index-85f88930.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-fa95313f.js";import{e as V}from"./each-e59479a4.js";import{B as ue}from"./Block-d1b8152c.js";import{g as W}from"./time-8562ae1b.js";import{b as de,w as _e}from"./withParams-47e2ab71.js";import"./advancedFormat-ebff0a45.js";import"./_commonjsHelpers-de833af9.js";import"./dayjs.min-1b995edc.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