import{t as e}from"./got-BBDj7u1e.mjs";import{Fragment as t,jsx as n,jsxs as r}from"hono/jsx/jsx-runtime";import{load as i}from"cheerio";import{renderToString as a}from"hono/jsx/dom/server";function o(e){return(e/100).toLocaleString(`en-US`,{style:`currency`,currency:`USD`})}const s={path:`/regear/new-arrivals`,categories:[`shopping`],example:`/arcteryx/regear/new-arrivals`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`regear.arcteryx.com/shop/new-arrivals`,`regear.arcteryx.com/`]}],name:`Regear New Arrivals`,maintainers:[`EthanWng97`],handler:c,url:`regear.arcteryx.com/shop/new-arrivals`};async function c(){let s=`https://www.regear.arcteryx.com/shop/new-arrivals`,c=(await e({method:`get`,url:s})).data,l=i(c)(`script:contains("window.__PRELOADED_STATE__")`).text(),u=JSON.parse(l.match(/{.*}/)[0]).shop.items;return u=u.filter(e=>e.availableSizes.length!==0),{title:`Arcteryx - Regear - New Arrivals`,link:s,description:`Arcteryx - Regear - New Arrivals`,item:u.map(e=>{let i=JSON.parse(e.imageUrls).front,s=o(e.originalPrice),c=e.priceRange[0]===e.priceRange[1]?o(e.priceRange[0]):`${o(e.priceRange[0])} - ${o(e.priceRange[1])}`;return{title:e.displayTitle,link:e.pdpLink.url,description:a(r(`div`,{children:[`Available Sizes:\xA0`,e.availableSizes.map(e=>r(t,{children:[e,`\xA0`]})),n(`br`,{}),`Color: `,e.color,n(`br`,{}),`Original Price: `,s,n(`br`,{}),`Regear Price: `,c,n(`br`,{}),n(`img`,{src:i}),n(`br`,{}),n(`br`,{})]}))}})}}export{s as route};