PageSourceSearch

https://www.realitatea.net/_nuxt/BcwHe3eZ.js

js realitatea.net collected 2026-09-24 17:39:17 UTC 2,805 bytes, 1 lines download raw bytes

1const g={Politică:"politica",Economie:"economie",Sport:"sport",Cultură:"cultura",Tech:"tech",Sănătate:"sanatate",Video:"video"},y=()=>{const e=t=>t?typeof t=="string"?g[t]||t.toLowerCase():t.slug||g[t.name]||t.name.toLowerCase():"";return{getCategorySlug:e,getCategoryName:t=>t?typeof t=="string"?t:t.name:"",getCategoryUrl:t=>{const a=e(t);return a?`/stiri/${a}`:"#"},getArticleUrl:t=>{if(!t.slug)return"#";const a=e(t.category);return a?`/stiri/${a}/${t.slug}`:"#"},categorySlugMap:g}},d=e=>{if(!e)return null;const r=new Date(e);return isNaN(r.getTime())?null:r.toLocaleDateString("ro-RO",{day:"numeric",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit",timeZone:"Europe/Bucharest"})};function f(){const e=o=>d(o)||"",r=o=>(o??"").trim(),u=(o,s)=>({name:o||"",slug:s||""}),n=o=>{if(!o)return;const s=o.sources?.find(l=>l.provider==="youtube"&&l.isPrimary&&l.status==="ready")??o.sources?.find(l=>l.provider==="youtube"&&l.status==="ready");if(s)return{embedId:s.providerId,name:r(o.title)||void 0,description:r(o.description)||void 0,duration:o.duration??void 0,width:o.width??void 0,height:o.height??void 0,thumbnail:o.media?.url||void 0}};return{formatDate:e,fromTitleOnly:o=>({photo:"",title:r(o.title),slug:o.slug,category:u("",o.categorySlug),time:e(o.publishedAt),videoId:o.videoId}),fromTitleCategory:o=>({photo:"",title:r(o.title),slug:o.slug,category:u(o.category?.name,o.category?.slug||o.categorySlug),time:e(o.publishedAt),videoId:o.videoId}),fromImageTime:o=>({photo:o.photo?.url||"",title:r(o.title),slug:o.slug,category:u(o.category?.name,o.category?.slug||o.categorySlug),time:e(o.publishedAt),videoId:o.videoId}),fromCard:o=>({photo:o.photo?.url||"",photoAlt:o.photoAlt||void 0,title:r(o.title),slug:o.slug,category:u(o.category?.name,o.category?.slug||o.categorySlug),author:o.author?.name,authorSlug:o.author?.slug,time:e(o.publishedAt),videoId:o.videoId}),fromDetail:o=>({photo:o.photo?.url||"",photoAlt:o.photoAlt||void 0,photoWidth:o.photo?.width??void 0,photoHeight:o.photo?.height??void 0,title:r(o.title),slug:o.slug,excerpt:r(o.excerpt),metaDescription:r(o.metaDescription)||void 0,category:u(o.category?.name,o.category?.slug||o.categorySlug),author:o.author?.name,authorSlug:o.author?.slug,authorImage:o.author?.image?.url,isNewsroomAuthor:o.author?.isRootAuthor,time:e(o.publishedAt),publishedAt:o.publishedAt||void 0,updatedAt:o.updatedAt||void 0,tags:o.tags,keywords:o.keywords||void 0,body:o.body||void 0,video:n(o.video),source:o.source||void 0}),fromFeatured:o=>o?{photo:o.photo?.url||"",photoAlt:o.photoAlt||void 0,title:r(o.title),slug:o.slug,excerpt:r(o.excerpt),category:u(o.category?.name,o.category?.slug||o.categorySlug),author:o.author?.name,authorSlug:o.author?.slug,time:e(o.publishedAt),videoId:o.videoId}:null}}export{f as a,d as f,y as u};

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.