1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[491,5564],{10491:(e,t,i)=>{i.r(t),i.d(t,{default:()=>b});var n=i(66352),r=i(95132),a=i(4113),l=i(71924),o=i(44258);let d=l.Ay.div.withConfig({componentId:"sc-5bc70442-0"})(["display:flex;background:",";border-radius:16px;"],({theme:e})=>e.default.color.backgrounds.offWhite),s=l.Ay.div.withConfig({componentId:"sc-5bc70442-1"})(["display:grid;grid-template-columns:1fr 1fr;column-gap:16px;row-gap:16px;@media (max-width:","){grid-template-columns:1fr;margin-bottom:16px;}"],o.KL.medium),p=l.Ay.div.withConfig({componentId:"sc-5bc70442-2"})(["background-color:",";color:white;align-items:center;padding:0.5rem 1rem;display:flex;font-family:",";font-weight:800;border-radius:16px 0 0 16px;h1{margin:0;font-size:52px;line-height:60px;}"],({theme:e})=>e.default.color.primary,({theme:e})=>e.default.fontFamily.primaryFont),c=l.Ay.div.withConfig({componentId:"sc-5bc70442-3"})(["color:",";text-transform:uppercase;font-size:12px;font-style:normal;font-weight:800;line-height:12px;text-transform:uppercase;"],({theme:e})=>e.default.color.primary),m=l.Ay.div.withConfig({componentId:"sc-5bc70442-4"})(["padding:8px;a{margin:0;font-size:14px;font-style:normal;font-weight:700;line-height:16px;cursor:pointer;&:hover{text-decoration:underline;}}"]);var f=i(30664);let g=({number:e,article:t})=>t?(0,n.jsxs)(d,{children:[(0,n.jsx)(p,{children:(0,n.jsx)("h1",{children:e})}),(0,n.jsxs)(m,{children:[(0,n.jsxs)(c,{children:[t.premium&&(0,n.jsx)(f.A,{}),t.articleTypes&&t.articleTypes[0]&&t.articleTypes[0].name&&t.articleTypes[0].name]}),(0,n.jsx)("a",{style:{textAlign:"left"},href:t.path&&t.path,children:t.titleShort&&t.titleShort})]})]}):null,h=l.Ay.div.withConfig({componentId:"sc-4f6c7692-0"})(["display:grid;grid-template-columns:1fr 300px;column-gap:28px;margin-top:16px;align-items:center;padding-bottom:31px;@media (max-width:","){grid-template-columns:1fr;column-gap:24px;padding-bottom:20px;}"],o.KL.medium);var u=i(64028),x=i(59085),y=i(95564);let b=({mpu_id:e})=>{let[t,i]=(0,r.useState)(),{publication:l}=(0,r.useContext)(x.I),o=(0,r.useCallback)(async()=>{try{let e=await u.A.get(`/api/most_popular?publication=${l}&number=6`);e?.status!==404&&Array.isArray(e.data)?i(e.data):i(null)}catch(e){console.error("Error fetching data:",e),i(null)}},[l]);return((0,r.useEffect)(()=>{o()},[o]),t)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.A,{type:"section",children:"Most Read"}),(0,n.jsxs)(h,{children:[(0,n.jsx)(s,{children:t&&t?.map((e,t)=>(0,n.jsx)(g,{article:e,number:t+1},t))}),(0,n.jsx)(y.default,{className:"most_read_item",num:e})]})]}):null}},30664:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(66352),r=i(71924);let a={sm:{fontSize:"11px",padding:"2px 8px",borderRadius:"0",marginRight:"6px",alignSelf:"flex-start"},lg:{fontSize:"14px",padding:"6px 12px",borderRadius:"0",marginRight:"0",alignSelf:"auto"}},l=r.Ay.span.withConfig({componentId:"sc-225f9c21-0"})(["display:inline-flex;align-items:center;align-self:",";background-color:",";color:#ffffff;font-family:",";font-size:",";font-weight:700;line-height:16px;letter-spacing:0.05em;text-transform:uppercase;padding:",";border-radius:",";margin-right:",";white-space:nowrap;"],({$size:e})=>a[e].alignSelf,({theme:e})=>e.default.color.primary,({theme:e})=>e.default.fontFamily.primaryFont,({$size:e})=>a[e].fontSize,({$size:e})=>a[e].padding,({$size:e})=>a[e].borderRadius,({$size:e})=>a[e].marginRight),o=({className:e,size:t="sm"})=>(0,n.jsx)(l,{$size:t,className:`premium_capsule${e?` ${e}`:""}`,children:"PREMIUM"})},95564:(e,t,i)=>{i.r(t),i.d(t,{default:()=>d});var n=i(66352),r=i(54533),a=i(71924);let l=a.Ay.div.withConfig({componentId:"sc-9bfb18a2-0"})(["width:100%;display:flex;justify-content:center;min-height:250px;"]),o=a.Ay.div.withConfig({componentId:"sc-9bfb18a2-1"})(["width:100%;text-align:center;"]),d=({num:e=1,className:t,type:i="mpu"})=>(0,n.jsx)(l,{children:(0,n.jsx)(o,{children:(0,n.jsx)(r.default,{className:t,id:`${i}${e}`,width:"100%",height:"200"})})})}}]);
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.