PageSourceSearch

https://www.sportproducers.com/assets/BlocksRenderer-BhQMdFCK.js

js sportproducers.com collected 2026-10-03 02:40:17 UTC 2,701 bytes, 1 lines download raw bytes

1import{j as r,r as d}from"./components-OrkcSABy.js";const f=e=>{const n=e.split(/\r?\n|\r/g);return r.jsx(r.Fragment,{children:n.map((s,o)=>r.jsxs(d.Fragment,{children:[o>0&&r.jsx("br",{}),s]},o))})},g=({text:e,...n})=>{const{modifiers:s,missingModifierTypes:o}=m();return Object.keys(n).reduce((i,t)=>{if(!n[t])return i;const c=s[t];return c?r.jsx(c,{children:i}):(o.includes(t)||(console.warn(`[@strapi/block-react-renderer] No component found for modifier "${t}"`),o.push(t)),i)},f(e))},k=["image"],y=e=>{const{children:n,type:s,...o}=e;if(s==="code"){const l=i=>i.reduce((t,c)=>c.type==="text"?t.concat(c.text):c.type==="link"?t.concat(l(c.children)):t,"");return{...o,plainText:l(e.children)}}return o},p=({content:e})=>{const{children:n,type:s,...o}=e,{blocks:l,missingBlockTypes:i}=m(),t=l[s];if(!t)return i.includes(s)||(console.warn(`[@strapi/block-react-renderer] No component found for block type "${s}"`),i.push(s)),null;if(k.includes(s))return r.jsx(t,{...o});if(s==="paragraph"&&n.length===1&&n[0].type==="text"&&n[0].text==="")return r.jsx("br",{});const c=y(e);return r.jsx(t,{...c,children:n.map((a,x)=>{if(a.type==="text"){const{type:T,...j}=a;return d.createElement(g,{...j,key:x})}return r.jsx(p,{content:a},x)})})},u={blocks:{paragraph:e=>r.jsx("p",{children:e.children}),quote:e=>r.jsx("blockquote",{children:e.children}),code:e=>r.jsx("pre",{children:r.jsx("code",{children:e.plainText})}),heading:({level:e,children:n})=>{switch(e){case 1:return r.jsx("h1",{children:n});case 2:return r.jsx("h2",{children:n});case 3:return r.jsx("h3",{children:n});case 4:return r.jsx("h4",{children:n});case 5:return r.jsx("h5",{children:n});case 6:return r.jsx("h6",{children:n})}},link:e=>r.jsx("a",{href:e.url,children:e.children}),list:e=>e.format==="ordered"?r.jsx("ol",{children:e.children}):r.jsx("ul",{children:e.children}),"list-item":e=>r.jsx("li",{children:e.children}),image:e=>r.jsx("img",{src:e.image.url,alt:e.image.alternativeText||void 0})},modifiers:{bold:e=>r.jsx("strong",{children:e.children}),italic:e=>r.jsx("em",{children:e.children}),underline:e=>r.jsx("u",{children:e.children}),strikethrough:e=>r.jsx("del",{children:e.children}),code:e=>r.jsx("code",{children:e.children})},missingBlockTypes:[],missingModifierTypes:[]},h=d.createContext(u),b=({children:e,value:n=u})=>{const s=d.useMemo(()=>n,[n]);return r.jsx(h.Provider,{value:s,children:e})};function m(){return d.useContext(h)}const B=e=>{const n={...u.blocks,...e.blocks},s={...u.modifiers,...e.modifiers},o=d.useRef([]),l=d.useRef([]);return r.jsx(b,{value:{blocks:n,modifiers:s,missingBlockTypes:o.current,missingModifierTypes:l.current},children:e.content.map((i,t)=>r.jsx(p,{content:i},t))})};export{B};

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.