1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,460935,306206,e=>{"use strict";var t=e.i(186532),r=e.i(466557);function a(e){let t=(0,r.slugifyToolName)(e);return t?t.length<=72?t:t.slice(0,72).replace(/-+$/,""):"discussion"}function i(e){var t,r;let i=e.slug?.trim().toLowerCase();return i?i:(t=e.title,r=e.id,`${a(t||"discussion")}-${r.slice(0,8)}`)}function s(e,t){let r=a(e);if(!t.has(r))return r;let i=2;for(;t.has(`${r}-${i}`);)i+=1;return`${r}-${i}`}async function o(e){return s(e,new Set((await l()).map(e=>i(e))))}async function l(){try{let{data:e,errors:r}=await t.amplifyClient.models.Discussion.list({limit:100});if(r?.length)return console.warn("[community] list discussions error",r),[];return e??[]}catch(e){return console.warn("[community] list discussions failed",e),[]}}e.s(["discussionDetailPath",0,function(e){return`/community/${i(e)}`},"ensureUniqueDiscussionSlug",0,s,"getDiscussionSlug",0,i],306206),e.s(["generateDiscussionSlug",0,o],460935)},740686,e=>{"use strict";let t=e=>e.createdAt?new Date(e.createdAt).getTime():0,r=(e,r=Date.now())=>Math.log10(Math.max((e.upvotes??0)+(e.commentCount??0)*1.5,1))-.4*(e.createdAt?Math.max(0,(r-t(e))/864e5):1)+1.2*!!e.hot;e.s(["compactNumber",0,e=>{let t=e??0;return t<1e3?String(t):t<1e4?`${(t/1e3).toFixed(1)}K`:t<1e6?`${Math.round(t/1e3)}K`:`${(t/1e6).toFixed(1)}M`},"formatRelativeTime",0,e=>{if(!e)return"";let t=new Date(e).getTime();if(Number.isNaN(t))return"";let r=Date.now()-t;if(r<6e4)return"just now";let a=Math.floor(r/6e4);if(a<60)return`${a} minute${1===a?"":"s"} ago`;let i=Math.floor(a/60);if(i<24)return`${i} hour${1===i?"":"s"} ago`;let s=Math.floor(i/24);if(s<7)return`${s} day${1===s?"":"s"} ago`;let o=Math.floor(s/7);if(o<5)return`${o} week${1===o?"":"s"} ago`;let l=Math.floor(s/30);if(l<12)return`${l} month${1===l?"":"s"} ago`;let n=Math.floor(s/365);return`${n} year${1===n?"":"s"} ago`},"sortDiscussionsByHot",0,e=>{let a=Date.now();return[...e].sort((e,i)=>{let s=r(i,a)-r(e,a);return 0!==s?s:t(i)-t(e)})}])},263676,e=>{"use strict";var t=e.i(814387);e.s(["X",()=>t.default])},77071,e=>{"use strict";let t=(0,e.i(456420).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,t],77071)},144716,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["default",0,t])},456539,e=>{"use strict";var t=e.i(144716);e.s(["ChevronUp",()=>t.default])},328623,e=>{"use strict";let t=(0,e.i(456420).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
1],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);e.s(["Sparkles",0,t],328623)},357338,e=>{"use strict";var t=e.i(647163);let r="text-[26px] font-bold text-[#0A0A0A] sm:text-[30px] dark:text-foreground",a=(0,t.cn)(r,"text-center"),i="text-[22px] font-bold tracking-[-0.02em] text-[#0A0A0A] sm:text-[26px] dark:text-foreground",s=(0,t.cn)(i,"mt-1");e.s(["PAGE_TITLE",0,r,"PAGE_TITLE_CENTER",0,a,"PROFILE_SECTION_EYEBROW",0,"text-[12px] font-semibold uppercase tracking-[0.28px] text-[#64748B] dark:text-[#94A3B8]","PROFILE_SECTION_TITLE",0,i,"PROFILE_TAB_TITLE",0,s,"SECTION_TITLE",0,"text-[22px] font-semibold tracking-[-0.03em] text-[#0A0A0A] sm:text-[24px] dark:text-foreground"])},566595,e=>{"use strict";let t=(0,e.i(456420).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,t],566595)},466557,e=>{"use strict";e.s(["slugifyToolName",0,function(e){return e.toLowerCase().replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-")}])},632781,e=>{"use strict";var t=e.i(758379);e.s(["Loader2",()=>t.default])},157073,e=>{"use strict";var t=e.i(462265),r=e.i(482500),a=e.i(524729);let i="community-tool-logos";function s(e){return/^https?:\/\//i.test(e?.trim()??"")}function o(e){let t=e?.trim();return!!t&&t.startsWith(`${i}/`)}let l=new Set(["image/jpeg","image/png","image/webp","image/gif"]);async function n(e){let t=e?.trim();if(t){if(s(t))return t;if(o(t)){let{url:e}=await (0,r.getUrl)({path:t});return e.toString()}return t}}async function c(e){if(!l.has(e.type))throw Error("Logo must be a JPG, PNG, WebP, or GIF image.");if(e.size>2097152)throw Error("Logo must be 2 MB or smaller.");let r=await (0,t.fetchAuthSession)(),s=r.identityId?.trim();if(!s)throw Error("Sign in to upload a tool image.");let o=function(e){switch(e){case"image/jpeg":return"jpg";case"image/png":default:return"png";case"image/webp":return"webp";case"image/gif":return"gif"}}(e.type),n=`${i}/${s}/${crypto.randomUUID()}.${o}`;return await (0,a.uploadData)({path:n,data:e,options:{contentType:e.type}}).result,n}e.s(["discussionToolLogoProps",0,function(e,t){let r=e.toolWebsiteUrl?.trim(),a=e.toolLogoUrl?.trim(),i=a&&(o(a)||s(a))?a:void 0;return i||r||a?{websiteUrl:r||void 0,logoUrl:i||a||void 0}:{}},"isHttpLogoUrl",0,s,"isStorageLogoPath",0,o,"resolveCommunityToolL
1ogoDisplayUrl",0,n,"uploadCommunityToolLogo",0,c])},854875,e=>{"use strict";function t(e){let t=e.replace(/^https?:\/\//,"").replace(/^www\./,"").split("/")[0]??e;return`https://www.google.com/s2/favicons?domain=${encodeURIComponent(t)}&sz=128`}function r(e){try{return new URL(e.startsWith("http")?e:`https://${e}`).hostname.replace(/^www\./,"")||null}catch{return null}}let a={"open assistant":"openassistant.org",harvey:"harvey.ai",chatgpt:"openai.com",claude:"claude.ai",cursor:"cursor.com",midjourney:"midjourney.com",perplexity:"perplexity.ai",runway:"runwayml.com","notion ai":"notion.so",notion:"notion.so","github copilot":"github.com",gemini:"gemini.google.com","google gemini":"gemini.google.com","gemini ai":"gemini.google.com","perplexity ai":"perplexity.ai","chat gpt":"openai.com","openai chatgpt":"openai.com","microsoft copilot":"copilot.microsoft.com","bing chat":"copilot.microsoft.com",elevenlabs:"elevenlabs.io",jasper:"jasper.ai",replit:"replit.com",linear:"linear.app",framer:"framer.com","framer ai":"framer.com",calendly:"calendly.com","reclaim ai":"reclaim.ai",intercom:"intercom.com",zendesk:"zendesk.com",langchain:"langchain.com",huggingface:"huggingface.co","hugging face":"huggingface.co",stability:"stability.ai","stable diffusion":"stability.ai",dalle:"openai.com","dall-e":"openai.com",sora:"openai.com",anthropic:"anthropic.com",mistral:"mistral.ai",grok:"x.ai",deepl:"deepl.com",otter:"otter.ai",fireflies:"fireflies.ai",descript:"descript.com",synthesia:"synthesia.io",copyai:"copy.ai",writesonic:"writesonic.com",grammarly:"grammarly.com",canva:"canva.com",figma:"figma.com",zapier:"zapier.com",make:"make.com",n8n:"n8n.io",pinecone:"pinecone.io",weaviate:"weaviate.io",tabnine:"tabnine.com",codeium:"codeium.com",windsurf:"codeium.com",v0:"v0.dev",bolt:"bolt.new",lovable:"lovable.dev"};function i(e){let t,r,i;for(let s of(r=(t=e.trim().toLowerCase().replace(/\([^)]*\)/g,"").replace(/['']/g,"").replace(/\s+/g," ").trim()).replace(/\s+ai$/i,"").trim(),i=t.split(" by ")[0]?.trim()??"",[...new Set([t,r,i].filter(Boolean))])){if(a[s])return a[s];for(let[e,t]of Object.entries(a))if(s.includes(e)||e.includes(s))return t}return null}e.s(["domainFromUrl",0,r,"duckDuckGoFaviconUrl",0,function(e){let t=e.replace(/^https?:\/\//,"").replace(/^www\./,"").split("/")[0]??e;return`https://icons.duckduckgo.com/ip3/${encodeURIComponent(t)}.ico`},"guessDomainForTool",0,i,"resolveToolLogoUrl",0,function(e,a){let s=a?.logoUrl?.trim();if(s&&(s.startsWith("community-tool-logos/")||s.startsWith("profile-avatars/")||/^https?:\/\//i.test(s)))return s;let o=a?.websiteUrl?r(a.websiteUrl):null;if(o)return t(o);if(s)return s;let l=i(e);if(l)return t(l)}])},31505,e=>{"use strict";var t=e.i(843476),r=e.i(271645),a=e.i(595),i=e.i(157073),s=e.i(854875),o=e.i(647163);let l={xs:"size-5 rounded-md text-[10px]",sm:"size-8 rounded-[10px] text-xs",md:"size-10 rounded-xl text-sm"};e.s(["default",0,function({name:e,logoUrl:n,websiteUrl:c,size:d="md",className:u}){let m=(0,s.resolveToolLogoUrl)(e,{logoUrl:n,websiteUrl:c}),p=(0,r.useMemo)(()=>c?(0,s.domainFromUrl)(c):(0,s.guessDomainForTool)(e),[e,c]),[x,g]=(0,r.useState)(()=>{if(m&&((0,i.isHttpLogoUrl)(m)||!(0,i.isStorageLogoPath)(m)))return m}),[h,f]=(0,r.useState)(!m);return(0,r.useEffect)(()=>{let e=n?.trim();if(e&&(0,i.isStorageLogoPath)(e)){let t=!1;
1return(0,i.resolveCommunityToolLogoDisplayUrl)(e).then(e=>{t||(g(e),f(!e))}),()=>{t=!0}}g(m),f(!m)},[n,m,e]),(0,t.jsx)("div",{className:(0,o.cn)("box-border flex shrink-0 flex-none items-center justify-center overflow-hidden border border-slate-900/8 bg-white font-semibold text-[#0A0A0A] dark:border-white/10 dark:bg-[#2A2D3D] dark:text-[#ECECF3]",l[d],u),children:!h&&x?(0,t.jsx)("img",{src:x,alt:"",className:"size-full object-cover",onError:()=>{p&&x?.includes("google.com/s2/favicons")?g((0,s.duckDuckGoFaviconUrl)(p)):f(!0)}}):(0,a.getToolInitials)(e)})}])},46980,e=>{"use strict";let t=(e,t)=>`aipub-v2:cache:v1:${e}:${t}`;e.s(["CACHE_TTL",0,{ONE_HOUR:36e5,SIX_HOURS:216e5,TWELVE_HOURS:432e5,ONE_DAY:864e5,SEVEN_DAYS:6048e5},"readCache",0,(e,r,a)=>{if(void 0===window.localStorage)return null;try{let i=window.localStorage.getItem(t(e,r));if(!i)return null;let s=JSON.parse(i);if(!s||"number"!=typeof s.writtenAt)return null;if(Date.now()-s.writtenAt>a)return window.localStorage.removeItem(t(e,r)),null;return s.value}catch{return null}},"writeCache",0,(e,r,a)=>{if(void 0!==window.localStorage)try{let i={value:a,writtenAt:Date.now()};window.localStorage.setItem(t(e,r),JSON.stringify(i))}catch{}}])},375775,e=>{"use strict";let t=(0,e.i(456420).default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",0,t],375775)},686190,e=>{"use strict";let t=(0,e.i(456420).default)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);e.s(["default",0,t])},24071,e=>{"use strict";var t=e.i(686190);e.s(["ChevronLeft",()=>t.default])},276657,e=>{"use strict";var t=e.i(843476),r=e.i(24071),a=e.i(522016),i=e.i(647163);e.s(["default",0,function({href:e,children:s,className:o}){return(0,t.jsxs)(a.default,{href:e,className:(0,i.cn)("group mb-2 inline-flex w-fit max-w-full items-center gap-1.5 rounded-md text-sm font-bold text-[#5C5C66] outline-none ring-offset-background transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 dark:text-muted-foreground",o),children:[(0,t.jsx)(r.ChevronLeft,{size:18,strokeWidth:2.5,className:"shrink-0 text-[#5C5C66] transition-transform group-hover:-translate-x-0.5 dark:text-muted-foreground","aria-hidden":!0}),s]})}])},786563,e=>{"use strict";let t=(0,e.i(456420).default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);e.s(["Star",0,t],786563)},733042,e=>{"use strict";var t=e.i(843476),r=e.i(276657),a=e.i(632781),i=e.i(566595),s=e.i(328623),o=e.i(271645),l=e.i(375775),n=e.i(786563),c=e.i(522016),d=e.i(31505),u=e.i(225913),m=e.i(586011),p=e.i(647163);let x=(0,u.cva)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function g({className:e,variant:r="default",asChild:a=!1,...i}){let s=a?m.Slot.Root:"span";return(0,t.jsx)(s,{"data-slot":"badge","data-variant":r,className:(0,p.cn)(x({variant:r}),e),...i})}var h=e.i(466557);function f({tool:e}){return(0,t.jsxs)("article",{className:"flex h-full flex-col justify-between rounded-[18px] border border-slate-900/7 bg-white p-3 shadow-sm dark:border-white/10 dark:bg-[#1E1F28]",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mb-2 flex min-w-0 items-start gap-2",children:[(0,t.jsx)(d.default,{name:e.name,logoUrl:e.logoUrl,websiteUrl:e.websiteUrl,size:"md"}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("h3",{className:"truncate text-[15px] font-semibold tracking-[-0.02em] text-[#0A0A0A] dark:text-[#ECECF3]",children:e.name}),e.trending&&(0,t.jsx)("span",{className:"text-[14px] text-amber-500",children:"ð¥"})]}),(0,t.jsx)("p",{className:"text-[14px] text-[#8B8B96]",children:e.category})]}),e.badge?(0,t.jsx)(g,{className:"rounded-lg border border-emerald-700/20 bg-emerald-50 px-2 py-1 text-[12px] tracking-[0.04em] text-emerald-700 dark:border-emerald-500/35 dar
1k:bg-emerald-500/12 dark:text-emerald-300",children:e.badge}):null]}),(0,t.jsx)("p",{className:"mb-2 text-[14px] leading-[1.55] text-[#5C5C68] dark:text-[#A8ABBA]",children:e.description}),(0,t.jsx)("div",{className:"mb-2 flex flex-wrap gap-1.5",children:e.tags.map(e=>(0,t.jsx)("span",{className:"rounded-full border border-slate-900/6 bg-slate-900/5 px-2 py-1 text-[12px] text-[#6B6B78] dark:border-white/10 dark:bg-white/8 dark:text-[#C2C6D3]",children:e},e))})]}),(0,t.jsxs)("div",{className:"mt-3 flex items-center justify-between pt-2",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,t.jsx)("div",{className:"flex items-center gap-0.5",children:Array.from({length:5}).map((r,a)=>{let i=Number(e.rating),s=!Number.isNaN(i)&&a<Math.round(i);return(0,t.jsx)(n.Star,{size:12,className:(0,p.cn)(s?"fill-amber-400 text-amber-400":"fill-zinc-300 text-zinc-300 dark:fill-zinc-600 dark:text-zinc-600")},a)})}),(0,t.jsxs)("span",{className:"text-[14px] text-[#5C5C68] dark:text-[#A8ABBA]",children:[e.rating," (",e.reviews,")"]})]}),(0,t.jsxs)(c.default,{href:e.websiteUrl?.startsWith("/")?e.websiteUrl:`/tools/${(0,h.slugifyToolName)(e.name)}?name=${encodeURIComponent(e.name)}&category=${encodeURIComponent(e.category)}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-[15px] font-medium text-emerald-700 hover:opacity-80 dark:text-emerald-300",children:["View",(0,t.jsx)(l.ArrowUpRight,{size:14})]})]})]})}var b=e.i(167881);function w({filters:e,activeFilter:r,onFilterChange:a,variant:i="default"}){let s="catalog"===i;return(0,t.jsx)("div",{className:"flex w-full gap-2 overflow-x-auto pb-1",children:e.map(e=>{let i=e.key===r;return(0,t.jsxs)(b.Button,{variant:"ghost",onClick:()=>a(e.key),className:(0,p.cn)("h-auto shrink-0 rounded-lg border text-[14px]",s?"px-[11px] py-[9px] font-bold md:min-w-0 md:flex-1 md:justify-center":"px-[10px] py-2 font-medium",s&&i?"border-transparent bg-black text-white shadow-[0px_4px_14px_rgba(37,99,235,0.28)] hover:bg-black hover:text-white dark:bg-[#0F0F10] dark:hover:bg-[#1a1a1b]":s&&!i?"border-[#0F172A12] bg-[#FFFFFF8C] text-[#4B4B55] hover:bg-white/90 dark:border-white/10 dark:bg-white/8 dark:text-[#C9CBD3] dark:hover:bg-white/12":!s&&i?"border-transparent bg-[#0F0F10] text-white dark:bg-[#2A2D3D]":"border-slate-900/8 bg-white/55 text-[#4B4B55] hover:bg-white dark:border-white/10 dark:bg-white/6 dark:text-[#C9CBD3] dark:hover:bg-white/12"),children:[(0,t.jsx)("span",{className:(0,p.cn)(s?"truncate":""),children:e.label}),(0,t.jsx)(g,{className:(0,p.cn)("h-5 shrink-0 rounded-full px-1.5 text-[12px] font-bold leading-none",s&&i?"bg-[#FFFFFF33] text-white hover:bg-[#FFFFFF33]":s&&!i?"border-0 bg-[#0F172A0D] text-[#4B4B55] dark:bg-white/10 dark:text-[#BFC2CF]":i?"bg-white/22 text-white":"bg-slate-900/6 text-[#5C5C68] dark:bg-white/10 dark:text-[#BFC2CF]"),children:e.count})]},e.key)})})}var v=e.i(357338);function y({totalTools:e}){return(0,t.jsxs)("div",{className:"flex w-full flex-wrap items-end justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:v.SECTION_TITLE,children:"All AI Tools"}),(0,t.jsxs)("p",{className:"mt-1 text-[17px] leading-[26px] text-[#6B6B78] dark:text-muted-foreground",children:[e," tools available"]})]}),(0,t.jsxs)(c.default,{href:"/compare",className:"group inline-flex shrink-0 items-center gap-1.5 text-[15px] font-medium text-emerald-700 transition-colors hover:text-emerald-800 dark:text-emerald-300 dark:hover:text-emerald-200",children:["Compare Tools",(0,t.jsx)(l.ArrowUpRight,{className:"size-4 transition-transform group-hover:translate-x-0.5","aria-hidden":!0})]})]})}var k=e.i(716327);function j({href:e="/tools",className:r}){return(0,t.jsx)(c.default,{href:e,className:r??"group mx-auto flex w-full max-w-full flex-col items-center gap-1.5 rounded-xl px-3 py-2 outline-none ring-offset-background transition-colors hover:text-[#0A0A0A] focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 dark:hover:text-foreground","aria-label":"View more tools - open the full AI tools catalog",children:(0,t.jsxs)("span",{className:"animate-explore-jump flex flex-col items-center gap-1.5",children:[(0,t.jsx)("span",{className:"text-sm font-semibold text-[#7C7C8A] transition-colors group-hover:text-[#0A0A0A] dark:group-hover:text-foreground",children:"View more tools"}),(0,t.jsx)(k.ChevronDown,{size:12,className:"text-[#A1A1AD] transition-colors group-hover:text-[#6B6B78] dark:text-[#A1A1AA] dark:group-hover:text-[#C9CBD3]","aria-hidden":!0})]})})}var C=e.i(186532),N=e.i(46980);let A="discoverTools-v2",E=N.CACHE_TTL.ONE_DAY,S="searchTools-v2",F=N.CACHE_TTL.ONE_DAY,T=(e,t)=>
1`${e}:${t}`,_=e=>e.trim().toLowerCase(),L=[{key:"language-models",label:"Language Models"},{key:"image-generation",label:"Image Generation"},{key:"developer-tools",label:"Developer Tools"},{key:"productivity",label:"Productivity"},{key:"video-audio",label:"Video & Audio"},{key:"content-creation",label:"Content Creation"},{key:"search-research",label:"Search & Research"}],B=L[0].key,D=(e,t)=>e?.name?.trim()&&e?.description?.trim()?{name:e.name.trim(),category:(e.category??"").trim()||t.label,description:e.description.trim(),tags:e.tags?.filter(e=>"string"==typeof e&&e.trim().length>0).map(e=>e.trim()).slice(0,4)??[],rating:(e.rating??"").trim()||"4.6",reviews:(e.reviews??"").trim()||"AI sourced",badge:(e.badge??"").trim()||void 0,trending:!!e.trending,categoryKey:(e.categoryKey??"").trim()||t.key,websiteUrl:(e.websiteUrl??"").trim()||void 0,logoUrl:(e.logoUrl??"").trim()||void 0}:null,$=async(e,t)=>{let r=await C.amplifyClient.queries.discoverTools({categoryLabel:e.label,categoryKey:e.key,limit:t});if(r.errors?.length)throw Error(r.errors[0]?.message||`Failed to load ${e.label}`);return(r.data??[]).map(t=>D(t,e)).filter(e=>!!e)};e.s(["default",0,function({mode:e="discover",initialCategory:l}){let[n,c]=(0,o.useState)(B),[d,u]=(0,o.useState)({}),[m,x]=(0,o.useState)(new Set),[g,h]=(0,o.useState)(null),[b,k]=(0,o.useState)(""),U="catalog"===e;(0,o.useEffect)(()=>{if(!l)return;let e=L.find(e=>e.key===l);e&&c(e.key)},[l]);let[M,I]=(0,o.useState)([]),[R,z]=(0,o.useState)(""),[O,P]=(0,o.useState)(!1),[W,V]=(0,o.useState)(null),G=(0,o.useRef)({}),H=(0,o.useRef)(0),K=(0,o.useCallback)((e,t)=>{x(r=>{let a=new Set(r);return t?a.add(e):a.delete(e),a})},[]),q=(0,o.useCallback)(async(e,t)=>{let r=G.current[e.key]??0;if(r>=t)return;let a=(0,N.readCache)(A,T(e.key,t),E);if(a&&a.length){G.current[e.key]=t,u(t=>({...t,[e.key]:a}));return}G.current[e.key]=t,K(e.key,!0);try{let r=await $(e,t);u(t=>({...t,[e.key]:r})),r.length&&(0,N.writeCache)(A,T(e.key,t),r)}catch(a){let t=a instanceof Error?a.message:"Failed to load tools";console.error(`[AllToolsSection] ${e.key}:`,a),h(t),G.current[e.key]=r}finally{K(e.key,!1)}},[K]);(0,o.useEffect)(()=>{h(null);let e=U?20:8;L.forEach(t=>{q(t,e)})},[q,U]),(0,o.useEffect)(()=>{if(!U)return;let e=L.find(e=>e.key===n);e&&q(e,20)},[n,U,q]),(0,o.useEffect)(()=>{let e=b.trim();if(e.length<3){P(!1),V(null),I([]),z("");return}let t=(0,N.readCache)(S,_(e),F);if(t){P(!1),V(null),I(t),z(e);return}V(null),P(!0);let r=++H.current,a=setTimeout(async()=>{try{let t=await C.amplifyClient.queries.searchTools({query:e,limit:12});if(r!==H.current)return;if(t.errors?.length)throw Error(t.errors[0]?.message||"Web search failed.");let a=(t.data??[]).map(e=>D(e,{key:"search-web",label:"AI Tool"})).filter(e=>!!e);I(a),z(e),a.length&&(0,N.writeCache)(S,_(e),a)}catch(a){if(r!==H.current)return;let t=a instanceof Error?a.message:"Web search failed.";console.warn("[AllToolsSection] searchTools failed:",a),V(t),I([]),z(e)}finally{r===H.current&&P(!1)}},600);return()=>clearTimeout(a)},[b]);let Y=(0,o.useMemo)(()=>L.map(e=>({key:e.key,label:e.label,count:d[e.key]?.length??0})),[d]),J=(0,o.useMemo)(()=>L.reduce((e,t)=>e+(d[t.key]?.length??0),0),[d]),X=(0,o.useMemo)(()=>d[n]??[],[n,d]),Q=(0,o.useMemo)(()=>{let e=b.trim().toLowerCase();return e?X.filter(t=>!!(t.name.toLowerCase().includes(e)||t.category.toLowerCase().includes(e)||t.description.toLowerCase().includes(e))||t.tags.some(t=>t.toLowerCase().includes(e))):X},[X,b]),Z=b.trim(),ee=(0,o.useMemo)(()=>U||Z?Q:Q.slice(0,8),[U,Q,Z]),et=m.has(n),er=(0,o.useMemo)(()=>new Set(X.map(e=>e.name.toLowerCase())),[X]),ea=b.trim().length>=3&&(O||R===b.trim()||W),ei=(0,o.useMemo)(()=>M.filter(e=>!er.has(e.name.toLowerCase())),[M,er]),es=X.length>0,eo=Z?`${Q.length} local ⢠${ei.length} from web`:`${X.length} tools`;return(0,t.jsx)("section",{id:"all-tools",className:(0,p.cn)("scroll-mt-28 mx-auto w-full max-w-[1320px] px-4 pb-16 sm:px-6",U?"pt-10 sm:pt-12":""),children:(0,t.jsxs)("div",{className:"mx-auto flex w-full max-w-[1240px] flex-col gap-5",children:[U?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{href:"/",children:"Back to Discover"}),(0,t.jsxs)("div",{className:"flex flex-col gap-7",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("h1",{className:v.PAGE_TITLE,children:"All AI tools"}),(0,t.jsx)("p",{className:"max-w-[622px] text-[17px] leading-[26px] text-[#7A7A86] dark:text-muted-foreground",children:"Same catalog as Discover-search by name, category, description, or tags, then filter by type."})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-4 gap-y-3",children:[(0,t.jsxs)("label",{className:"flex min-h-[46px] min-w-[min(100%,280px)] flex-1 cursor-text items-center gap-2.5 rounded-full border border-[#0F172A1A] bg-white py-3 pl-[17px] pr-4 shadow-[0px_1px_4px_#0F172A0D] dark:border-white/12 dark:bg-[#1E1F28] dark:shadow-none",children:[(0,t.jsx)(i.Search,{className:"size-[18px] shrink-0 text-[#8B8B96]","aria-hidden":!0}),(0,t.jsx)("input",{type:"search",value:b,onChange:e=>k(e.target.value),placeholder:"Search toolsâ¦",autoComplete:"off",className:"min-w-0 flex-1 bg-transparent text-[15px] text-foreground outline-none placeholder:text-[#8B8B96]","aria-label":"Search tools by name, category, description, or tags"})]}),(0,t.jsx)("span",{className:"text-[14px] font-bold text-[#8B8B96] dark:text-[#9B9EAA]",children:eo})]})]})]}):(0,t.jsx)(y,{totalTools:J}),(0,t.jsx)(w,{filters:Y,activeFilter:n,onFilterChange:c,variant:U?"catalog":"default"}),g?(0,t.jsx)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 px-3 py-2 text-[14px] text-amber-700 dark:text-amber-300",children:g}):null,et&&!es?((e=4)=>(0,t.jsx)("div",{className:"grid gap-3 md:grid-cols-2 lg:grid-cols-4",children:Array.from({length:e}).map((e,r)=>(0,t.jsx)("div",{className:"h-[220px] animate-pulse rounded-[18px] border border-slate-900/7 bg-white/40 dark:border-white/10 dark:bg-white/5"},r))}))(U?8:6):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"grid gap-3 md:grid-cols-2 lg:grid-cols-4",children:ee.map(e=>(0,t.jsx)(f,{tool:e},`local-${e.categoryKey}-${e.name}`))}),U||Z||!(ee.length>0)?null:(0,t.jsx)(j,{href:`/tools?category=${encodeURIComponent(n)}`})]}),et||!es||Q.length||g||ea?null:(0,t.jsxs)("div",{className:"rounded-xl border border-slate-900/10 bg-white px-4 py-3 text-[14px] text-[#4B5563] dark:border-white/15 dark:bg-[#1E1F28] dark:text-[#B8BCC8]",children:["No tools match â",Z,"â in our catalog. Showing similar tools from the web below."]}),et||es||g||ea?null:(0,t.jsx)("div",{className:"rounded-xl border border-slate-900/10 bg-white px-4 py-3 text-[14px] text-[#4B5563] dark:border-white/15 dark:bg-[#1E1F28] dark:text-[#B8BCC8]",children:U?"No tools were returned for this category yet. Try another category or refresh the page.":"No tools were returned yet. Refresh the page or open the full catalog."}),ea?(0,t.jsxs)("div",{className:"mt-4 flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-2.5",children:[(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full border border-violet-300/60 bg-violet-50 px-3 py-1 text-[12px] font-bold uppercase tracking-wide text-violet-700 dark:border-violet-400/40 dark:bg-violet-500/10 dark:text-violet-300",children:[(0,t.jsx)(s.Sparkles,{size:12}),"AI web search"]}),(0,t.jsxs)("h2",{className:"text-[17px] font-bold text-neutral-950 dar
1k:text-foreground",children:["Similar AI tools from the web",Z?(0,t.jsxs)("span",{className:"text-[#7A7A86] dark:text-[#9B9EAA]",children:[" ","for â",Z,"â"]}):null]}),O?(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-[14px] text-[#7A7A86] dark:text-[#9B9EAA]",children:[(0,t.jsx)(a.Loader2,{size:12,className:"animate-spin"}),"Searching the webâ¦"]}):null]}),O&&0===ei.length?(0,t.jsx)("div",{className:"grid gap-3 md:grid-cols-2 lg:grid-cols-4",children:Array.from({length:4}).map((e,r)=>(0,t.jsx)("div",{className:"h-[220px] animate-pulse rounded-[18px] border border-slate-900/7 bg-white/40 dark:border-white/10 dark:bg-white/5"},`web-skeleton-${r}`))}):ei.length>0?(0,t.jsx)("div",{className:"grid gap-3 md:grid-cols-2 lg:grid-cols-4",children:ei.map(e=>(0,t.jsx)(f,{tool:e},`web-${e.categoryKey}-${e.name}`))}):W?(0,t.jsxs)("div",{className:"rounded-xl border border-amber-500/30 bg-amber-500/10 px-4 py-3 text-[14px] text-amber-700 dark:text-amber-300",children:["Couldn't reach the web search just now: ",W]}):(0,t.jsxs)("div",{className:"rounded-xl border border-slate-900/10 bg-white px-4 py-3 text-[14px] text-[#4B5563] dark:border-white/15 dark:bg-[#1E1F28] dark:text-[#B8BCC8]",children:["No similar tools found on the web for â",Z,"â. Try a different search."]})]}):null]})})}],733042)},446782,e=>{"use strict";var t=e.i(271645);let r=new Map,a=new Map;e.s(["useCachedResource",0,function(e,i,s={}){let{enabled:o=!0,staleTime:l=0}=s,n=(0,t.useRef)(i);(0,t.useEffect)(()=>{n.current=i});let[,c]=(0,t.useState)(0),d=(0,t.useCallback)(()=>c(e=>e+1),[]),[u,m]=(0,t.useState)({}),[p,x]=(0,t.useState)(!1),g=(0,t.useCallback)(async e=>{let t=a.get(e);if(t){try{await t}catch{}d();return}r.has(e)&&x(!0);let i=(async()=>{let t=await n.current();return r.set(e,{data:t,updatedAt:Date.now()}),t})();a.set(e,i);try{await i,m(t=>t[e]?{...t,[e]:null}:t)}catch(r){let t=r instanceof Error?r:Error("Failed to load.");m(r=>({...r,[e]:t}))}finally{a.delete(e),x(!1),d()}},[d]);(0,t.useEffect)(()=>{if(!e||!o)return;let t=r.get(e);(!t||Date.now()-t.updatedAt>=l)&&g(e)},[e,o,l,g]);let h=e?r.get(e):void 0,f=h?.data,b=e?u[e]??null:null,w=o&&null!==e&&void 0===f&&null===b;return{data:f,isLoading:w,isRefreshing:p,error:b,refresh:(0,t.useCallback)(async()=>{e&&await g(e)},[e,g]),mutate:(0,t.useCallback)(t=>{if(!e)return;let a=r.get(e)?.data,i="function"==typeof t?t(a):t;void 0!==i&&(r.set(e,{data:i,updatedAt:Date.now()}),d())},[e,d])}}])},730274,e=>{"use strict";let t=(0,e.i(456420).default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,t],730274)},394714,e=>{"use strict";var t=e.i(271645);let r=()=>{let e=window;return e.SpeechRecognition??e.webkitSpeechRecognition??null},a={"not-allowed":"Microphone access was denied. Enable it in your browser settings to use voice.","service-not-allowed":"Voice input is blocked in this context.","audio-capture":"No microphone was found.",network:"Voice input needs an internet connection.",aborted:"","no-speech":""};e.s(["useSpeechRecognition",0,function({lang:e,continuous:i=!0,onTranscript:s}){let o=(0,t.useRef)(null),l=(0,t.useRef)(s),[n,c]=(0,t.useState)(!1),[d,u]=(0,t.useState)(!1),[m,p]=(0,t.useState)(null);(0,t.useEffect)(()=>{l.current=s},[s]),(0,t.useEffect)(()=>(u(null!==r()),()=>{o.current?.abort(),o.current=null}),[]);let x=(0,t.useCallback)(()=>{o.current?.stop()},[]);return{isListening:n,isSupported:d,error:m,start:(0,t.useCallback)(()=>{let t=r();if(!t)return void p("Voice input is not supported in this browser.");if(o.current)return;let s=new t;s.lang=e??("u">typeof navigator?navigator.language:"en-US"),s.continuous=i,s.interimResults=!0,s.maxAlternatives=1,s.onstart=()=>{c(!0),p(null)},s.onresult=e=>{let t="",r="";for(let a=e.resultIndex;a<e.results.length;a+=1){let i=e.results[a];if(!i)continue;let s=i[0]?.transcript??"";i.isFinal?t+=s:r+=s}t?l.current(t,{isFinal:!0}):r&&l.current(r,{isFinal:!1})},s.onerror=e=>{let t=a[e.error];void 0===t?p(e.message||`Voice input error: ${e.error}`):t&&p(t)},s.onend=()=>{o.current=null,c(!1)};try{s.start(),o.current=s}catch(e){console.warn("[speech] start() failed:",e),o.current=null,c(!1)}},[e,i]),stop:x,clearError:(0,t.useCallback)(()=>p(null),[])}}])},638292,401788,e=>{"use strict";var t=e.i(456420);let r=(0,t.default)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);e.s(["Mic",0,r],638292);let a=(0,t.default)("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]]);e.s(["MicOff",0,a],401788)},879391,e=>{"use strict";var t=e.i(843476),r=e.i(647163);let a="block truncate text-[13px] leading-5 text-[#C5C5CF] sm:text-[15px] sm:leading-normal";var i=e.i(553282),s=e.i(394714),o=e.i(271645),l=e.i(618566),n=e.i(638292),c=e.i(401788),d=e.i(77071),u=e.i(730274);let m=["Enter a website URL to get recommended AI tools","Enter your business idea to get recommended tools"],p=[{label:"Marketing Automation",prompt:"I want tools for marketing automation"},{label:"Legal Tech",prompt:"I need AI tools for legal tech workflows"},{label:"E-commerce Boosters",prompt:"Show AI tools that can boost e-commerce growth"},{label:"Customer Support AI",prompt:"I want tools to automate customer support"},{label:"Content Strategy",prompt:"Recommend AI tools for content strategy and planning"}];e.s(["default",0,function({className:e}){let x=(0,l.useRouter)(),[g,h]=(0,o.useState)(""),[f,b]=(0,o.useState)(!1),[w,v]=(0,o.useState)(null),y=!g&&!f,k=function(e,t){let[r,a]=(0,o.useState)(e[0]??""),[i,s]=(0,o.useState)(0),[l,n]=(0,o.useState)(!1),[c,d]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=()=>d(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,o.useEffect)(()=>{t&&(a(""),s(0),n(!1))},[t]),(0,o.useEffect)(()=>
1{if(!t||!e.length||!c)return;a(e[0]??"");let r=0,i=window.setInterval(()=>{r=(r+1)%e.length,a(e[r]??"")},3e3);return()=>window.clearInterval(i)},[t,e,c]),(0,o.useEffect)(()=>{if(!t||!e.length||c)return;let o=e[i]??"";if(!l&&r===o){let e=window.setTimeout(()=>n(!0),2200);return()=>window.clearTimeout(e)}if(l&&""===r){s((i+1)%e.length),n(!1);return}let d=window.setTimeout(()=>{a(t=>{let r=e[i]??"";return l?r.slice(0,Math.max(0,t.length-1)):r.slice(0,t.length+1)})},l?28:45);return()=>window.clearTimeout(d)},[l,t,i,e,c,r]),r}(m,y),j=(0,o.useRef)("");(0,o.useEffect)(()=>{let e=(0,i.consumeRefineQuery)();e&&(h(e),j.current=e)},[]);let C=(0,o.useCallback)((e,t)=>{let r=j.current,a=e.replace(/\s+/g," ").trimStart(),i=r&&!r.endsWith(" ")?" ":"",s=`${r}${i}${a}`;h(s),v(null),t.isFinal&&(j.current=s)},[]),N=(0,s.useSpeechRecognition)({onTranscript:C});return(0,t.jsxs)("div",{className:(0,r.cn)("w-full max-w-[960px] rounded-3xl bg-white px-3 pb-3 pt-3 shadow-[0_22px_56px_0_rgba(100,130,200,0.12),0_8px_28px_0_rgba(15,23,42,0.06),0_2px_8px_0_rgba(15,23,42,0.04)] sm:rounded-[28px] sm:px-6 sm:pb-[18px] sm:pt-4 dark:bg-[#1E1F28] dark:shadow-[0_22px_56px_0_rgba(0,0,0,0.35),0_8px_28px_0_rgba(0,0,0,0.22)]",e),children:[(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),N.isListening&&N.stop();let t=g.trim();t?(v(null),(0,i.markRecommendationsAllowed)(t),x.push(`/recommendations?q=${encodeURIComponent(t)}`)):v("Please enter a business idea or website URL.")},className:"flex w-full items-center gap-2 pb-0 sm:gap-3 sm:border-b sm:border-black/5 sm:pb-3.5 dark:sm:border-white/8",children:[(0,t.jsx)("button",{type:"button",className:"flex h-7 w-7 cursor-pointer items-center justify-center rounded-2xl bg-[#EDE9FE] text-[#6D28D9] shadow-[inset_0_1px_0_0_rgba(255,255,255,0.9)] transition-colors hover:bg-[#DDD6FE] sm:h-8 sm:w-8 dark:bg-violet-500/20 dark:text-violet-200 dark:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.06)] dark:hover:bg-violet-500/25","aria-label":"Add",title:"Add website or prompt",children:(0,t.jsx)(d.Plus,{size:14,className:"sm:size-4",strokeWidth:2.5})}),(0,t.jsxs)("div",{className:"relative min-h-[36px] flex-1 overflow-hidden px-1 py-[6px] sm:py-[9px]",children:[y?(0,t.jsxs)("span",{className:(0,r.cn)(a,"pointer-events-none absolute inset-x-1 inset-y-[6px] flex items-center truncate sm:inset-y-[9px]"),"aria-hidden":!0,children:[k,(0,t.jsx)("span",{className:"ml-px inline-block w-[2px] animate-pulse bg-[#C5C5CF] dark:bg-[#6B6B78]"})]}):null,(0,t.jsx)("input",{type:"text",className:(0,r.cn)(a,"relative w-full border-0 bg-transparent p-0 text-foreground outline-none focus-visible:ring-0 dark:text-[#ECECF3]",!g&&!f&&"caret-transparent"),placeholder:f?"Enter a website URL or describe your business needâ¦":void 0,"aria-label":"Website URL or business requirement",value:g,onFocus:()=>b(!0),onBlur:()=>b(!1),onChange:e=>{h(e.target.value),w&&v(null)}})]}),N.isSupported?(0,t.jsx)("button",{type:"button",onClick:()=>N.isListening?N.stop():void(j.current=g,N.start()),"aria-label":N.isListening?"Stop voice input":"Use voice input","aria-pressed":N.isListening,title:N.isListening?"Stop voice input":"Use voice input",className:(0,r.cn)("relative flex h-8 w-8 cursor-pointer items-center justify-center rounded-[17px] transition-colors sm:h-[34px] sm:w-[34px]",N.isListening?"bg-red-500/15 text-red-600 ring-1 ring-inset ring-red-400/40 hover:bg-red-500/20 dark:bg-red-500/20 dark:text-red-300 dark:ring-red-400/40":"text-[#C5C8D4] hover:text-[#9fa3b2] dark:text-[#C5C5D3] dark:hover:text-[#E8ECF1]"),children:N.isListening?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Mic,{size:16,className:"sm:size-[18px]","aria-hidden":!0}),(0,t.jsx)("span",{className:"pointer-events-none absolute -right-0.5 -top-0.5 inline-flex size-2 rounded-full bg-red-500 ring-2 ring-white dark:ring-[#1E1F28]","aria-hidden":!0,children:(0,t.jsx)("span",{className:"absolute inset-0 animate-ping rounded-full bg-red-500/60"})})]}):(0,t.jsx)(n.Mic,{size:16,className:"sm:size-[18px]","aria-hidden":!0})}):(0,t.jsx)("button",{type:"button",disabled:!0,"aria-label":"Voice input not supported in this browser",title:"Voice input is not supported in this browser",className:"flex h-8 w-8 cursor-not-allowed items-center justify-center rounded-[17px] text-[#E4E7EE] sm:h-[34px] sm:w-[34px] dark:text-[#3D414F]",children:(0,t.jsx)(c.MicOff,{size:16,className:"sm:size-[18px]","aria-hidden":!0})}),(0,t.jsx)("button",{type:"submit",className:"flex h-10 w-10 cursor-pointer items-center justify-center rounded-[20px] bg-[#0F0F10] text-white shadow-[0_5px_16px_0_rgba(10,10,12,0.26),0_2px_5px_0_rgba(10,10,12,0.10)] transition-opacity hover:opacity-90 sm:h-11 sm:w-11 sm:rounded-[22px]","aria-label":"Submit",title:"Get recommendations",children:(0,t.jsx)(u.Send,{size:16,className:"sm:size-[18px]"})})]}),w?(0,t.jsx)("p",{className:"pt-2 text-xs text-amber-700 dark:text-amber-300",children:w}):null,N.error?(0,t.jsxs)("p",{className:"flex items-center gap-2 pt-2 text-xs text-rose-700 dark:text-rose-300",children:[(0,t.jsx)(n.Mic,{className:"size-3.5 shrink-0","aria-hidden":!0}),N.error,(0,t.jsx)("button",{type:"button",onClick:N.clearError,className:"ml-auto rounded-md px-1 py-0.5 text-[11px] font-semibold underline-offset-2 hover:underline",children:"Dismiss"})]}):null,(0,t.jsx)("div",{className:(0,r.cn)("hidden sm:flex","flex-wrap items-center gap-2 overflow-hidden pb-0.5 pt-3"),children:p.map(e=>(0,t.jsx)("button",{type:"button",onClick:()=>h(e.prompt),title:`Use ${e.label}`,className:"flex w-fit cursor-pointer items-center rounded-lg bg-[#0F0F10] px-[13px] py-1.5 text-white transition-opacity hover:opacity-90 dark:bg-[#2A2D3D] dark:text-[#F4F4F5]",children:(0,t.jsx)("p",{className:"text-xs font-semibold",children:e.label})},e.label))})]})}],879391)}]);
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.