import{t as e}from"./ofetch-Dl6dVB_5.mjs";import{t}from"./cache-DUthuMSu.mjs";import{t as n}from"./parse-date-BdYTmLpo.mjs";import{t as r}from"./timezone-keeL11Io.mjs";import{load as i}from"cheerio";const a=async(a,o)=>{let s=i(await e(a)),c=s(o.selector).toArray().map(e=>{let t=s(e),i=t.find(`p.text-m-height`).text(),a=t.find(`a`).attr(`href`),c=o.date?r(n(t.find(`div.text-light p`).first().text()),0):``,l=t.find(`img`).attr(`src`),u=[t.find(`p.pt025`).text()];return{title:i,link:`https://insider.finology.in${a}`,pubDate:c,itunes_item_image:l,category:u}}),l=(await Promise.allSettled(c.map(r=>r.link===void 0?r:t.tryGet(r.link,async()=>{let t=i(await e(r.link||``)),a=t(`div.w60.flex.flex-wrap-badge`);return r.author=a.find(`div a p`).text(),r.updated=o.date?n(a.find(`p:contains("Updated on") span`).text()):``,r.description=t(`div#main-wrapper div#insiderhead`).find(`div.flex.flex-col.w100.align-center`).children(`div.m-position-r`).remove().end().find(`a[href="https://quest.finology.in/"]`).remove().end().find(`div.blur-wall-wrap`).remove().end().html()??``,r})))).map((e,t)=>e.status===`fulfilled`?e.value:{...c[t],description:`Website did not load within Timeout Limits. <a href="${c[t].link}">Check with Website if the page is slow</a>`}),u=s(`h1.font-heading.fs1875`)?.text();return{items:l.filter(e=>e!==null&&typeof e!=`string`),topicName:u}},o={path:`/category/:category`,categories:[`finance`],url:`insider.finology.in/business`,example:`/finology/success-stories`,parameters:{category:`Refer Table below or find in URL`},radar:[{source:[`insider.finology.in/:category`]}],name:`Category`,maintainers:[`Rjnishant530`],handler:s,description:`::: info Category
| Category              | Link               |
| --------------------- | ------------------ |
| **Business**          | business           |
| Big Shots             | entrepreneurship   |
| Startups              | startups-india     |
| Brand Games           | success-stories    |
| Juicy Scams           | juicy-scams        |
| **Finance**           | finance            |
| Macro Moves           | economy            |
| News Platter          | market-news        |
| Tax Club              | tax                |
| Your Money            | your-money         |
| **Invest**            | investing          |
| Stock Market          | stock-market       |
| Financial Ratios      | stock-ratios       |
| Investor's Psychology | behavioral-finance |
| Mutual Funds          | mutual-fund        |
:::`};async function s(e){let{category:t}=e.req.param();return await c(`https://insider.finology.in`,`/${t}`,{description:e=>`Articles for your research and knowledge under ${e}`,date:!0,selector:`div.card`})}async function c(e,t,n){let{items:r,topicName:i}=await a(`${e}${t}`,n);return{title:`${i} - Finology Insider`,link:`${e}${t}`,item:r,description:n.description(i||``),logo:`https://insider.finology.in/Images/favicon/favicon.ico`,icon:`https://insider.finology.in/Images/favicon/favicon.ico`,language:`en-us`}}export{o as n,c as t};