import{t as e}from"./parse-date-BdYTmLpo.mjs";import{Fragment as t,jsx as n,jsxs as r}from"hono/jsx/jsx-runtime";import{renderToString as i}from"hono/jsx/dom/server";const a=[`fb7bb23f03b6994dafc674c074d01761`,`e55425032d3d0f371fc776f302e7c09b`,`8301a21598f8b45668d5711a814f01f6`,`8cf43ad9c085135b9479ad5cf6bbcbda`,`da63548086e399ffc910fbc08526df05`,`13e53ff644a8bd4ba37b3e1044ad24f3`,`269890f657dddf4635473cf4cf456576`,`a2f888b27315e62e471b2d587048f32e`,`8476a7ab80ad76f0936744df0430e67c`,`5622cafbfe8f8cfe358a29c53e19bba0`,`ae4bd1b6fce2a5648671bfc171d15ba4`,`257654f35e3dff105574f97fb4b97035`,`2f4038e83265214a0dcd6ec2eb3276f5`,`9e43f45f94705cc8e1d5a0400d19a7b7`,`af6887753365e14160254ac7f4345dd2`,`06f10fc8741a672af455421c239a1ffc`,`fb7bb23f03b6994dafc674c074d01761`,`09ad8ace66eec34302943272db0e8d2c`],o=()=>a[Math.floor(Math.random()*a.length)],s=e=>{let a=e.poster_path??e.still_path,o=a?`https://image.tmdb.org/t/p/original${a}`:null,s=e.overview.trim();return i(r(t,{children:[o?n(`img`,{src:o}):null,r(`p`,{children:[`User Score: `,e.vote_average,n(`br`,{}),`Vote Count: `,e.vote_count]}),n(`p`,{children:s})]}))},c=(t,n)=>({title:n?t.title:t.original_title,link:`https://www.themoviedb.org/movie/${t.id}`,description:s(t),pubDate:t.release_date?e(t.release_date):void 0}),l={tv:(t,n)=>({title:n?t.name:t.original_name,link:`https://www.themoviedb.org/tv/${t.id}`,description:s(t),pubDate:t.first_air_date?e(t.first_air_date):void 0}),movie:c};export{o as i,s as n,c as r,l as t};