import{t as e}from"./parse-date-BdYTmLpo.mjs";import{t}from"./got-BBDj7u1e.mjs";import{t as n}from"./timezone-keeL11Io.mjs";import{t as r}from"./utils-gPF6hGYo.mjs";import{t as i}from"./comment-B6h6049R.mjs";import{load as a}from"cheerio";const o={path:`/apps/:lang?/comment/:id`,categories:[`anime`],example:`/qoo-app/apps/en/comment/7675`,parameters:{lang:"Language, see the table below, empty means `中文`",id:`Game ID, can be found in URL`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`Game Store - Review`,maintainers:[`TonyRL`],handler:s,description:`| 中文 | English | 한국어 | Español | 日本語 | ไทย | Tiếng Việt |
| ---- | ------- | ------ | ------- | ------ | --- | ---------- |
|      | en      | ko     | es      | ja     | th  | vi         |`};async function s(o){let{id:s,lang:c=``}=o.req.param(),l=`${r}${c?`/${c}`:``}/app-comment/${s}`,{data:u}=await t(l,{searchParams:{sort:`create`}}),d=a(u),f=d(`.qoo-post-item`).toArray().map(t=>{t=d(t);let r=t.find(`.qoo-clearfix .name a`).eq(0).text();return{title:`${r} ▶ ${t.find(`.qoo-clearfix .name a`).eq(1).text()}`,link:t.find(`a.bg-click-wrap`).attr(`href`),description:i({rating:t.find(`.qoo-rating-bar`).text().trim(),text:t.find(`.text-view`).html()}),pubDate:n(e(t.find(`time`).text(),`YYYY-MM-DD HH:mm:ss`),8),author:r}});return{title:d(`head title`).text(),link:l,language:d(`html`).attr(`lang`),item:f}}export{o as route};