PageSourceSearch

https://aivana.com/_next/static/chunks/4377-03a6e50580a6afc0.js

js aivana.com collected 2026-10-07 04:03:18 UTC 71,491 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4377],{4377:(e,t,i)=>{i.r(t),i.d(t,{default:()=>eM});var o=i(37876),r=i(14232),s=i(95065),l=i(35582),n=i(83455),a=i(11054),x=i(46520),d=i(86378),p=i(61428),c=i(94527),h=i(83679),g=i(25121),m=i(46059),u=i(36854),f=i(41072),A=i(54587),b=i.n(A);let y={src:"/_next/static/media/slack.440fe640.png",height:194,width:259,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAARVBMVEXy8vKK2vDw5enw3K+v3crrqb3x7ef79PXy+Prn7+/wzoiV1bbnianjOGx8zahMwI+y4/Oy4vDtvExRyvDmeJvr27Cu4fGNi2ACAAAACXBIWXMAAAsTAAALEwEAmpwYAAAANUlEQVR4nAXBCQKAIAgAwVVBQCu1w/8/tRmw2BIGxExDAmw9qV9iuL5Hu4tD1rOVCnjWrzo/KE4BbraDhDYAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6},j=function({toolData:e,userData:t,sharePopupRef:i,setShareHovered:s,shareIconPosition:l,handleShareVia:A,isImageLoading:j,toolImage:w,tool:v}){let[k,S]=(0,r.useState)(0),[C,_]=(0,r.useState)(!1),[R,I]=(0,r.useState)(!1),W=(0,n.A)("(max-width:479.95px)")?3:5,[z,F]=(0,r.useState)(0);(0,r.useLayoutEffect)(()=>{let e=i.current;if(!e)return;let t=document.documentElement.clientWidth,o=e.getBoundingClientRect(),r=o.left-z,s=o.right-z,l=0;s>t-8&&(l=t-8-s),r+l<8&&(l=8-r),l!==z&&F(l)},[l.x,l.y,k,z,i]);let D=()=>{let t=window.location.origin,i=e?.tool_id||v?.tool_id;return`${t}/searchView?tool=${i}`},E=[{key:"copy_link",label:R?"Copied!":"Copy link",icon:R?(0,o.jsx)(h.CMH,{size:18,color:"#10b981"}):C?(0,o.jsx)(g.hyQ,{size:18,color:"#3b82f6"}):(0,o.jsx)(g.hyQ,{size:18,color:"#6b7280"}),bgcolor:R?"#dcfce7":C?"#dbeafe":"#f3f4f6",textColor:R?"#059669":C?"#2563eb":"#374151",onClick:()=>{let i=D();navigator.clipboard.writeText(i),I(!0),setTimeout(()=>I(!1),2e3),u.default.capture("tool_share_event",{tool_id:e?.tool_id||v?.tool_id,user:t?.id,platform:"copy_link"})},onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1)},{key:"linkedin",label:"LinkedIn",icon:(0,o.jsx)(h.QEs,{size:18,color:"#ffffff"}),bgcolor:"#0077b5",onClick:()=>{let i=D(),o=e?.tool_name||v?.tool_name||"AI Tool",r=e?.description||v?.description||"Check out this amazing AI tool!",s=`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(i)}&title=${encodeURIComponent(o)}&summary=${encodeURIComponent(r)}`;window.open(s,"_blank","width=600,height=400"),u.default.capture("tool_share_event",{tool_id:e?.tool_id||v?.tool_id,user:t?.id,platform:"linkedin"})}},{key:"instagram",label:"Instagram",icon:(0,o.jsx)(h.ao$,{size:18,color:"#ffffff"}),bgcolor:"linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%)",onClick:()=>{let i=D();navigator.clipboard.writeText(i),u.default.capture("tool_share_event",{tool_id:e?.tool_id||v?.tool_id,user:t?.id,platform:"instagram"})}},{key:"facebook",label:"Facebook",icon:(0,o.jsx)(h.iYk,{size:18,color:"#ffffff"}),bgcolor:"#1877f2",onClick:()=>{let i=D(),o=`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(i)}`;window.open(o,"_blank","width=600,height=400"),u.default.capture("tool_share_event",{tool_id:e?.tool_id||v?.tool_id,user:t?.id,platform:"facebook"})}},{key:"twitter",label:"X",icon:(0,o.jsx)(m.TCj,{size:18,color:"#ffffff"}),bgcolor:"#000000",onClick:()=>{let i=D(),o=e?.tool_name||v?.tool_name||"AI Tool",r=`https://twitter.com/intent/tweet?url=${encodeURIComponent(i)}&text=${encodeURIComponent(`Check out ${o} on Aivana AI Marketplace!`)}`;window.open(r,"_blank","width=600,height=400"),u.default.capture("tool_share_event",{tool_id:e?.tool_id||v?.tool_id,user:t?.id,platform:"twitter"})}},{key:"reddit",label:"Reddit",icon:(0,o.jsx)(h.Fhi,{size:18,color:"#ffffff"}),bgcolor:"#fd4504",onClick:()=>{let i=D(),o=e?.tool_name||v?.tool_name||"AI Tool",r=`https://www.reddit.com/submit?url=${encodeURIComponent(i)}&title=${encodeURIComponent(`Check out ${o} - Amazing AI Tool!`)}`;window.open(r,"_blank","width=600,height=400"),u.default.capture("tool_share_event",{tool_id:e?.tool_id||v?.tool_id,user:t?.id,platform:"reddit"})}},{key:"slack",label:"Slack",icon:(0,o.jsx)(b(),{loading:"lazy",src:y,alt:"Slack team collaboration platform logo",width:18,height:18,style:{borderRadius:"50%"}}),bgcolor:"#f5f5f5",onClick:()=>{let i=D();navigator.clipboard.writeText(i),u.default.capture("tool_share_event",{tool_id:e?.tool_id||v?.tool_id,user:t?.id,platform:"slack"})}},{key:"whatsapp",label:"WhatsApp",icon:(0,o.jsx)(h.EcP,{size:18,color:"#ffffff"}),bgcolor:"#25D366",onClick:()=>{A("whatsapp"),u.default.capture("tool_share_event",{tool_id:e.tool_id,user:t?.id,platform:"whatsapp"})}}],B=E.slice(k,k+W),T=k>0,L=k<E.length-W;return(0,o.jsxs)(a.A,{ref:i,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),elevation:3,sx:{position:"fixed",bgcolor:f.A.palette.common.white,borderRadius:"12px",p:2,zIndex:9999,width:"fit-content",top:`${l.y}px`,left:{xs:`${l.x-100+z}px`,md:`${l.x+z}px`},maxWidth:"calc(100vw - 16px)",boxShadow:"0 8px 32px rgba(0,0,0,0.12)",border:"1px solid rgba(0,0,0,0.08)",transform:"translate(-50%, -100%)"},children:[(0,o.jsx)(x.A,{sx:{position:"absolute",bottom:"-8px",left:`calc(50% - ${z}px)`,transform:"translateX(-50%)",width:0,height:0,borderLeft:"8px solid transparent",borderRight:"8px solid transparent",borderTop:"8px solid white",zIndex:1e3}}),(0,o.jsx)(x.A,{sx:{position:"absolute",bottom:"-9px",left:`calc(50% - ${z}px)`,transform:"translateX(-50%)",width:0,height:0,borderLeft:"9px solid transparent",borderRight:"9px solid transparent",borderTop:"9px solid rgba(0,0,0,0.08)",zIndex:999}}),(0,o.jsx)(x.A,{sx:{position:"relative",display:"flex",alignItems:"flex-start",justifyContent:"center"},children:(0,o.jsx)(x.A,{sx:{width:{xs:64,lg:72},height:{xs:64,lg:72},borderRadius:"8px",overflow:"hidden"},children:j?(0,o.jsx)(d.A,{variant:"rectangular",width:"100%",height:"100%"}):(0,o.jsx)(x.A,{component:"img",src:w||v?.tool_image||"https://encrypted-tbn0.gstatic.
1com/images?q=tbn:ANd9GcTsMmqkOKOIVTy7eKWX7hA3EL3s4EAzCQBUDg&s",alt:v?.tool_name,sx:{width:"100%",height:"100%",objectFit:"cover"},onError:e=>{let t=e.target;t.onerror=null,t.src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTsMmqkOKOIVTy7eKWX7hA3EL3s4EAzCQBUDg&s"}})})}),(0,o.jsx)(x.A,{sx:{textAlign:"center",mb:2},children:(0,o.jsx)(p.A,{variant:"body1",sx:{fontSize:"0.9rem",fontWeight:500,color:"#374151",mt:1},children:"Share with community"})}),(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:1,position:"relative"},children:[T&&(0,o.jsx)(c.A,{onClick:()=>{S(e=>Math.max(0,e-1))},sx:{width:"32px",height:"32px",borderRadius:"100px",background:"#FFF",boxShadow:"0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)",zIndex:1e3,position:"absolute",left:"0","&:hover":{background:"#FFF"}},children:(0,o.jsx)(h._Jj,{size:12,color:"#6b7280"})}),(0,o.jsx)(x.A,{sx:{display:"flex",justifyContent:"center",gap:1},children:B.map(e=>(0,o.jsx)(x.A,{children:(0,o.jsxs)(c.A,{onClick:e.onClick,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,sx:{dis
1play:"flex",flexDirection:"column",alignItems:"center",p:1,minWidth:"fit-content",color:"inherit","&:hover":{background:"none"}},children:[(0,o.jsx)(x.A,{sx:{width:"40px",height:"40px",bgcolor:e.bgcolor.includes("gradient")?void 0:e.bgcolor,background:e.bgcolor.includes("gradient")?e.bgcolor:void 0,borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",mb:.5,transition:"all 0.2s ease-in-out"},children:e.icon}),(0,o.jsx)(p.A,{variant:"caption",sx:{fontSize:"0.75rem",color:e.textColor||"#374151",transition:"color 0.2s ease-in-out"},children:e.label})]})},e.key))}),L&&(0,o.jsx)(c.A,{onClick:()=>{S(e=>Math.min(E.length-W,e+1))},sx:{width:"32px",height:"32px",borderRadius:"100px",background:"#FFF",boxShadow:"0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)","&:hover":{background:"#FFF"},zIndex:1e3,position:"absolute",right:"0"},children:(0,o.jsx)(h.X6T,{size:16,color:"#6b7280"})})]})]})};var w=i(43831),v=i(32643),k=i(98477),S=i(65965),C=i(87263),_=i(9749);let R=({tool:e,isLoading:t=!1})=>t||!e?(0,o.jsx)(x.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:{xs:"300px",sm:"350px",md:"400px",lg:"450px"},height:{xs:"300px",sm:"350px",md:"400px",lg:"450px"},p:{xs:"12px 8px",sm:"16px 12px",md:"20px 16px",lg:"24px 20px"}},children:(0,o.jsx)(S.A,{})}):(0,o.jsxs)(x.A,{sx:{display:"flex",width:"100%",p:{xs:"24px 16px",md:"20px 16px",lg:"24px 20px",xl:"32px 24px"},flexDirection:"column",alignItems:"flex-start",gap:{xs:"16px",sm:"20px",md:"24px",lg:"32px",xl:"40px"},flex:"1 0 0"},children:[(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:{xs:"4px",sm:"6px",md:"8px"},alignSelf:"stretch"},children:[(0,o.jsx)(p.A,{variant:"h6",sx:{fontSize:{xs:"18px",lg:"20px"},fontWeight:f.A.typography.fontWeightMedium,lineHeight:{xs:"24px",sm:"26px",md:"28px",lg:"32px"},letterSpacing:"0.15px",mb:"8px"},children:"Description"}),(0,o.jsx)(p.A,{variant:"body1",sx:{fontSize:{xs:"16px"},fontWeight:f.A.typography.fontWeightRegular,lineHeight:{xs:"24px"},letterSpacing:"0.15px",mb:{xs:.75,sm:1,md:1.25,lg:1.5}},children:e?.long_description})]}),(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:{xs:"8px",sm:"10px",md:"12px",lg:"15px"}},children:[(0,o.jsx)(p.A,{variant:"h6",sx:{fontSize:{xs:"18px",lg:"20px"},fontWeight:f.A.typography.fontWeightMedium,lineHeight:{xs:"24px",sm:"26px",md:"28px",lg:"32px"},letterSpacing:"0.15px"},children:"Key Features"}),(0,o.jsx)(C.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:{xs:"6px",sm:"8px",md:"10px",lg:"12px"}},children:e?.key_features?.map((t,i)=>o.jsxs(x.A,{sx:{display:"flex",alignItems:"flex-start",gap:{xs:.5,sm:.75,md:1},alignSelf:"stretch"},children:[o.jsx(_.mcb,{style:{color:"#388E3C",width:"18px",height:"18px",minWidth:"18px",display:"flex",alignItems:"flex-start",marginTop:"2px"}}),o.jsxs(x.A,{children:[o.jsx(p.A,{sx:{fontSize:{xs:"16px"},fontWeight:f.A.typography.fontWeightMedium,lineHeight:{xs:"18px",sm:"20px",md:"22px",lg:"24px"},letterSpacing:"0.17px",mb:{xs:.25,sm:.5,md:.75,lg:1}},children:t}),o.jsx(p.A,{variant:"body1",sx:{fontSize:{xs:"14px"},fontWeight:f.A.typography.fontWeightRegular,lineHeight:{xs:"20px",lg:"22px",xl:"24px"},letterSpacing:"0.15px",color:{xs:f.A.palette.text.secondary,md:f.A.palette.text.primary}},children:e.key_features_description?.[t]||""})]})]},i))})]}),(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",gap:{xs:"4px",sm:"6px",md:"8px"},alignSelf:"stretch"},children:[(0,o.jsx)(p.A,{variant:"h6",sx:{fontSize:{xs:"18px",lg:"20px"},fontWeight:f.A.typography.fontWeightMedium,lineHeight:{xs:"24px",sm:"26px",md:"28px",lg:"32px"},letterSpacing:"0.15px"},children:"About the Publisher"}),(0,o.jsx)(p.A,{variant:"body1",sx:{fontSize:{xs:"14px"},fontWeight:f.A.typography.fontWeightRegular,lineHeight:{xs:"20px",md:"22px",lg:"24px"},letterSpacing:"0.15px"},children:e?.about_publisher})]})]}),I=function(){return(0,o.jsxs)(x.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",width:"100%",minHeight:{xs:"200px",sm:"250px",md:"300px",lg:"350px"},height:{xs:"250px",sm:"300px",md:"350px",lg:"400px"},p:{xs:"16px 12px",sm:"20px 16px",md:"24px 20px",lg:"28px 24px"},gap:3,mb:2},children:[(0,o.jsx)(S.A,{size:48}),(0,o.jsx)(p.A,{variant:"body1",sx:{color:f.A.palette.text.secondary,fontSize:{xs:"15px",sm:"16px",md:"17px"},textAlign:"center",fontWeight:500},children:"Demo content is pending from the publisher"})]})};var W=i(90350),z=i(50992),F=i(39112),D=i(7504),E=i(65621),B=i(73816),T=i(61259),L=i(13085),M=i(97916),H=i(14596),P=i(70887),N=i(84075),U=i(20937),$=i(67268),V=i(91011),O=i(89848),X=i(17589),Y=i(21907),G=i(58475),K=i(216),q=i(10173),Q=i(84030),J=i(34260),Z=i(18847),ee=i.n(Z),et=i(54927);let ei=ee()(async()=>(await i.e(713).then(i.bind(i,33339))).MdInfo,{ssr:!1}),eo=({tool:e})=>{let t=(0,s.j)(),i=(0,Y.s)(),l=(0,s.G)(e=>e.tools.existingReviewGeneratedSummary),a=(0,n.A)(f.A.breakpoints.down("sm")),{reviews:d,searchSession:h}=(0,s.G)(e=>e.tools),{isAuthenticated:g,user:m}=(0,s.G)(e=>e.auth),[u]=(0,r.useState)(null),[A,y]=(0,r.useState)({}),[j,w]=(0,r.useState)({}),[k,C]=(0,r.useState)(!1),[_,R]=(0,r.useState)(!1),[I,Z]=(0,r.useState)(null),[ee,eo]=(0,r.useState)(null),[er,es]=(0,r.useState)(null),[el,en]=(0,r.useState)(!1),[ea,ex]=(0,r.useState)(new Set),[ed,ep]=(0,r.useState)(new Set),[ec,eh]=(0,r.useState)(!1),[eg,em]=(0,r.useState)(!1),[eu,ef]=(0,r.useState)({isLiked:!1,isDisliked:!1,likeLoa
1ding:!1,dislikeLoading:!1}),eA=i=>{let o=e?.id||e?.tool_id;o&&(t((0,K.NG)(i)),t((0,K.D2)()),t((0,K.oA)({toolId:o,filterType:i,isInitial:!0,totalReviews:e?e.full_trust_score?.total_reviews??0:10,from_filter:!0})))},eb=()=>{if(!g){i.openSignup();return}C(!0)},ey=(e,t)=>{if(!g){i.openSignup();return}Z(e),eo(t.currentTarget),R(!0)},ej=()=>{R(!1),Z(null),eo(null)},ew=()=>{en(!1),es(null)},ev=(0,r.useCallback)(async()=>{let e=!eu.isLiked;ef(t=>({...t,isLiked:e,isDisliked:!1,likeLoading:!0}));let t=h?.message_id;if(!t){console.warn("No message_id → skipping API call"),ef(e=>({...e,likeLoading:!1}));return}try{let i=await $.apiClient.post("/api/v1/chat_bot/message_like_dislike",{like_status:+!!e,message_id:t});if(200===i.status)ef(e=>({...e,likeLoading:!1}));else throw Error("Failed to send feedback")}catch(t){ef(t=>({...t,isLiked:!e,likeLoading:!1}))}},[eu.isLiked,h?.message_id]),ek=(0,r.useCallback)(async()=>{let e=!eu.isDisliked;ef(t=>({...t,isDisliked:e,isLiked:!1,dislikeLoading:!0}));let t=h?.message_id;if(!t){console.warn("No message_id → skipping API call"),ef(e=>({...e,dislikeLoading:!1}));return}try{let e=await $.apiClient.post("/api/v1/chat_bot/message_like_dislike",{like_status:0,message_id:t});if(200!==e.status)throw Error("Failed to send feedback")}catch(t){console.error("Error sending dislike feedback:",t),ef(t=>({...t,isDisliked:!e}))}finally{ef(e=>({...e,dislikeLoading:!1}))}},[eu.isDisliked,h?.message_id]),eS=(0,r.useCallback)(async i=>{try{let o=e?.id||e?.tool_id;o&&(t((0,K.vF)({toolId:o})),await t((0,K.oA)({toolId:o,filterType:d.filterType,isInitial:!0,totalReviews:e?(e.full_trust_score?.total_reviews??0)+1:10,from_filter:!0}))),ex(e=>new Set(Array.from(e).concat(i.id))),setTimeout(()=>{ex(e=>{let t=new Set(e);return t.delete(i.id),t})},1e4)}catch(e){O.oR.error(e?.message||"Failed to update reviews. Please try again.")}},[t,e,d.filterType]);(0,r.useEffect)(()=>{let i=e?.id||e?.tool_id;i&&i!==d.currentToolId&&t((0,K.oA)({toolId:i,filterType:d.filterType,isInitial:!0,totalReviews:e?e.full_trust_score?.total_reviews??0:10}))},[e,t,d.currentToolId,d.filterType]);let eC=e=>!!m?.id&&!!e.voted_users&&e.voted_users.includes(m.id),e_=async(e,o)=>{if(!A[e.id]){if(!g){i.openSignup();return}if(eC(e)){O.oR.info("You have already voted on this review");return}try{y(t=>({...t,[e.id]:!0}));let i={review_id:e.id,review_type:e.origin?e.origin:e.review_type},r=await $.apiClient.post("/api/v1/user/user-vote-to-tool-review",i);if(200===r.status)w(t=>({...t,[e.id]:!0})),t((0,K.jn)({reviewId:e.id,userId:m?.id})),es(o.currentTarget),en(!0),setTimeout(()=>{ew()},3e3);else throw Error("Failed to submit vote")}catch(t){w(t=>({...t,[e.id]:!1})),t?.status===401?i.openSignup():O.oR.error("Failed to submit vote. Please try again.")}finally{y(t=>({...t,[e.id]:!1}))}}},eR=e=>{try{return new Date(e).toLocaleDateString("en-US",{day:"2-digit",month:"short",year:"numeric"})}catch{return e}},eI=e=>{try{let t=parseFloat(e.split("/")[0]);return isNaN(t)?0:t}catch{return 0}},eW=e=>e.isNewlyAdded||ea.has(e.id);return d.loading&&0===d.data.length?(0,o.jsx)(x.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",backgroundColor:"common.white",minHeight:{xs:"300px",sm:"350px",md:"400px",lg:"450px"},height:{xs:"300px",sm:"350px",md:"400px",lg:"450px"},p:{xs:"12px 8px",sm:"16px 12px",md:"20px 16px",lg:"24px 20px"}},children:(0,o.jsx)(S.A,{})}):k?(0,o.jsx)(V.A,{tool:e,onBack:()=>{C(!1)},onSubmitSuccess:eS}):(0,o.jsxs)(x.A,{sx:{py:{xs:3,lg:4,xl:5},px:{xs:1.5,sm:2,md:2.5,lg:3},backgroundColor:"common.white",minHeight:{xs:"300px",sm:"350px",md:"400px",lg:"450px"},width:"100%"},children:[(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:{xs:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",md:"flex-start"},mb:{xs:1.5,sm:2,md:2.5,lg:3},gap:{xs:1.5,sm:2,md:0}},children:[(0,o.jsxs)(x.A,{sx:{flex:1},children:[(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[(0,o.jsx)(p.A,{variant:"h6",sx:{fontWeight:f.A.typography.fontWeightMedium,color:f.A.palette.text.primary,fontSize:{xs:"16px",sm:"17px",md:"18px",lg:"20px"}},children:"Reviews"}),(0,o.jsx)(W.A,{in:!0,timeout:800,children:(0,o.jsx)(x.A,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",ga
1p:1},children:(0,o.jsx)(z.A,{in:!0,timeout:1200,children:(0,o.jsx)(x.A,{sx:{color:f.A.palette.primary.main,borderRadius:1,px:.75,py:.25,fontSize:"0.825rem"},children:(0,o.jsx)(F.x,{onClickAway:()=>a&&eh(!1),children:(0,o.jsx)(D.A,{title:(0,o.jsx)("span",{style:{fontWeight:f.A.typography.fontWeightRegular},children:"Here's what users are saying. Reviews listed here include reviews submitted to Aivana directly as well as reviews from external sources (Google, Trustpilot) where available."}),placement:"bottom",arrow:!0,open:a?ec:void 0,disableHoverListener:a,disableFocusListener:a,disableTouchListener:a,PopperProps:{modifiers:[{name:"offset",options:{offset:[0,8]}}],sx:{"& .MuiTooltip-tooltip":{backgroundColor:"rgba(97,97,97,0.9)",color:"#fff",borderRadius:1,padding:"8px 12px",fontSize:{xs:13,sm:14,md:15},maxWidth:{xs:270,sm:300,md:320},boxShadow:"0 2px 8px rgba(0,0,0,0.18)",lineHeight:1.5,fontWeight:f.A.typography.fontWeightRegular}}},children:(0,o.jsx)(x.A,{component:"span",sx:{display:"inline-flex",cursor:"pointer"},onClick:()=>a&&eh(e=>!e),children:(0,o.jsx)(ei,{size:20,color:"#BDBDBD"})})})})})})})})]}),(0,o.jsx)(p.A,{variant:"h2",sx:{fontWeight:f.A.typography.fontWeightBold,fontSize:{xs:"24px",md:"34px"},lineHeight:1,color:f.A.palette.text.primary},children:e?.total_reviews??e?.full_trust_score?.total_reviews??0})]}),(0,o.jsxs)(x.A,{sx:{flex:1},children:[(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[(0,o.jsx)(p.A,{variant:"h6",sx:{fontWeight:f.A.typography.fontWeightMedium,color:f.A.palette.text.primary,fontSize:{xs:"16px"}},children:"Average Rating"}),(0,o.jsx)(W.A,{in:!0,timeout:800,children:(0,o.jsx)(x.A,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},children:(0,o.jsx)(z.A,{in:!0,timeout:1200,children:(0,o.jsx)(x.A,{sx:{color:f.A.palette.primary.main,borderRadius:3,padding:"3px 6px",fontSize:"0.825rem"},children:(0,o.jsx)(F.x,{onClickAway:()=>a&&em(!1),children:(0,o.jsx)(D.A,{open:a?eg:void 0,disableHoverListener:a,disableFocusListener:a,disableTouchListener:a,placement:"bottom",arrow:!0,componentsProps:{tooltip:{sx:{backgroundColor:"rgba(97, 97, 97, 0.90)",color:"#fff",fontSize:{xs:13,sm:14,md:15},borderRadius:1,boxShadow:"0 2px 8px 0 rgba(0,0,0,0.18)",px:2.5,py:1.5,maxWidth:{xs:270,sm:300,md:320},fontWeight:f.A.typography.fontWeightRegular,lineHeight:1.5}},arrow:{sx:{color:"#555"}}},title:(0,o.jsx)("span",{style:{fontWeight:f.A.typography.fontWeightRegular},children:"Here's how users are rating their experience. Average rating is a weighted average of internal and external scoring from users."}),children:(0,o.jsx)(x.A,{component:"span",sx:{display:"inline-flex",cursor:"pointer"},onClick:()=>a&&em(e=>!e),children:(0,o.jsx)(ei,{size:20,color:"#BDBDBD"})})})})})})})})]}),(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",gap:{xs:"4px",md:"8px"}},children:[(0,o.jsx)(p.A,{variant:"h2",sx:{fontWeight:f.A.typography.fontWeightBold,fontSize:{xs:"24px",lg:"31px",xl:"34px"},lineHeight:1,color:f.A.palette.text.primary},children:e?.full_trust_score?.average_rating?.toFixed(1)||"0.0"}),(0,o.jsx)(p.A,{sx:{fontSize:{xs:"16px",lg:"20px"},color:f.A.palette.text.secondary,alignSelf:"flex-end",mb:.5},children:"/ 5"}),(0,o.jsx)(x.A,{sx:{alignSelf:"flex-end",mb:1},children:(0,o.jsx)(P.G,{tool:e,showReviews:!1,size:a?18:30})})]})]})]}),d.reviewGeneratedSummary||d.from_filter&&l?(0,o.jsx)(x.A,{sx:{mb:{xs:2,sm:2.5,md:3,lg:4},px:{xs:1.5,sm:2,md:2.5,lg:3},py:{xs:1.25,sm:1.5,md:1.75,lg:2},borderRadius:"16px",backgroundColor:"rgba(23, 145, 255, 0.04)"},children:(0,o.jsxs)(x.A,{children:[(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:1},children:[(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",gap:1,mb:{xs:1.25,sm:1.5,md:1.75,lg:2},flexWrap:"wrap"},children:[(0,o.jsx)(b(),{loading:"lazy",alt:"aiIcon",src:N.A,width:a?20:24,height:a?20:24}),(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"}},children:[(0,o.jsx)(p.A,{variant:"h6",sx:{color:f.A.palette.primary.main,fontWeight:f.A.typography.fontWeightMedium,fontSize:{xs:"18px",lg:"20px"}},children:"Summary"}),(0,o.jsx)(p.A,{variant:"body2",sx:{color:f.A.palette.primary.main,ml:{xs:0,sm:1},mt:{xs:.5,sm:0},fontSize:"14px",fontWeight:f.A.typography.fontWeightRegular},children:"Generated by AivanaAI"})]})]}),(0,o.jsxs)(x.A,{sx:{display:"flex",gap:.5},children:[(0,o.jsx)(D.A,{title:eu.likeLoading?"Processing...":eu.isLiked?"Remove like":"Like this summary",children:(0,o.jsx)(c.A,{size:"small",onClick:ev,disabled:eu.likeLoading||eu.dislikeLoading,children:eu.likeLoading?(0,o.jsx)(S.A,{size:20}):(0,o.jsx)(G.AnD,{size:20,color:eu.isLiked?f.A.palette.primary.main:"#BDBDBD"})})}),(0,o.jsx)(D.A,{title:eu.dislikeLoading?"Processing...":eu.isDisliked?"Remove dislike":"Dislike this summary",children:(0,o.jsx)(c.A,{size:"small",onClick:ek,disabled:eu.likeLoading||eu.dislikeLoading,children:eu.dislikeLoading?(0,o.jsx)(S.A,{size:20}):(0,o.jsx)(G.WFn,{size:20,color:eu.isDisliked?f.A.palette.primary.main:"#BDBDBD"})})})]})]}),(0,o.jsx)(p.A,{variant:"body1",sx:{color:f.A.palette.text.primary,lineHeight:"150%",fontSize:"16px"},children:d.reviewGeneratedSummary||l})]})}):null,0===d.data.length&&!d.loading&&!u&&(0,o.jsx)(x.A,{sx:{mb:{xs:2,sm:2.5,md:3,lg:4},px:{xs:1.5,sm:2,md:2.5,lg:3},py:{xs:1.25,sm:1.5,md:1.75,lg:2},borderRadius:"16px",backgroundColor:"rgba(23, 145, 255, 0.04)"},onClick:eb,children:(0,o.jsx)(x.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",cursor:"pointer"},onClick:eb,children:(0,o.jsx)(p.A,{variant:"body1",sx:{color:f.A.palette.primary.main},children:"Click here to be the first to review this tool"})})}),u&&(0,o.jsx)(x.A,{sx:{textAlign:"center",py:4},children:(0,o.jsx)(p.A,{color:"error",variant:"body1",children:u})}),(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:{xs:"column",sm:"column",md:"row"},justifyContent:{xs:"stretch",md:"space-between"},alignItems:{xs:"stretch",md:"center"},gap:{xs:1.5,sm:2,md:2.5},mb:3},children:[(0,o.jsx)(v.A,{variant:"outlined",onClick:eb,sx:{borderColor:f.A.palette.primary.main,color:f.A.palette.primary.main,textTransform:"none",fontWeight:500,px:{xs:1.5,sm:2,md:2.5,lg:3},py:{xs:.5,sm:.75,md:1},borderRadius:"20px",fontSize:{xs:"13px",sm:"14px",md:"15px",lg:"16px"},width:{xs:"50%",sm:"auto"},"&:hover":{borderColor:"primary.dark",backgroundColor:"rgba(23, 145, 255, 0.04)"}},children:"Write a Review"}),d.data.length>0&&(0,o.jsxs)(x.A,{sx:{borderRadius:"100px",border:"1px solid #E0E0E0",background:"#FFF",display:"flex",alignItems:"center",gap:1,padding:"4px 1px 4px 10px",width:{xs:"fit-content",md:"auto"}},children:[(0,o.jsx)(Q.vRG,{size:20,color:f.A.palette.text.secondary}),(0,o.jsx)(p.A,{sx:{fontSize:"14px",fontWeight:500,color:"#666",flexShrink:0},children:"Sort by:"}),(0,o.jsx)(E.A,{size:"small",sx:{minWidth:120}
1,children:(0,o.jsxs)(B.A,{value:d.filterType,onChange:e=>eA(e.target.value),displayEmpty:!0,IconComponent:J.pte,sx:{fontSize:"14px",fontWeight:f.A.typography.fontWeightMedium,color:f.A.palette.text.primary,"& .MuiOutlinedInput-notchedOutline":{border:"none"},"& .MuiSelect-select":{padding:"4px 8px"}},MenuProps:{PaperProps:{sx:{borderRadius:"24px",maxHeight:300},className:"hide-scrollbar"}},children:[(0,o.jsx)(T.A,{value:"by_vote",sx:{fontSize:"14px",py:1},children:(0,o.jsx)(p.A,{sx:{fontSize:"14px"},children:"Most Helpful"})}),(0,o.jsx)(T.A,{value:"by_date",sx:{fontSize:"14px",py:1},children:(0,o.jsx)(p.A,{sx:{fontSize:"14px"},children:"Most Recent"})})]})})]})]}),d.data.length>0?(0,o.jsx)(x.A,{sx:{display:"flex",flexDirection:"column",gap:{xs:1.5,sm:2,md:2.5,lg:3}},children:d.data.map((t,i)=>(0,o.jsxs)(r.Fragment,{children:[(0,o.jsxs)(x.A,{sx:{position:"relative"},children:[eW(t)&&(0,o.jsx)(x.A,{sx:{position:"absolute",top:-8,right:0,zIndex:1},children:(0,o.jsx)(L.A,{label:"New",size:"small",sx:{backgroundColor:f.A.palette.primary.main,color:"white",fontSize:"10px",height:"20px",fontWeight:f.A.typography.fontWeightMedium}})}),(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:"column",gap:2},children:[(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},justifyContent:"space-between",alignItems:{xs:"flex-start",sm:"center"},gap:1.5},children:[(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},alignItems:{xs:"flex-start",sm:"center"},gap:1.5,flexWrap:"wrap"},children:[(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:"center"},children:[(0,o.jsx)(p.A,{sx:{fontWeight:f.A.typography.fontWeightMedium,fontSize:"24px",lineHeight:"20px",mr:.3},children:eI(t.review_start_count).toFixed(1)}),(0,o.jsx)(p.A,{sx:{fontWeight:f.A.typography.fontWeightRegular,fontSize:"16px",lineHeight:"20px",color:f.A.palette.text.secondary},children:"/ 5"})]}),(0,o.jsx)(P.G,{tool:e,allReviews:t,showReviews:!1,size:18})]}),(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.reviewer_profile?(0,o.jsx)("img",{src:t.reviewer_profile,alt:"reviewer profile",style:{width:24,height:24,borderRadius:"50%",objectFit:"cover"}}):(0,o.jsx)(et.A,{sx:{width:24,height:24}}),(0,o.jsx)(p.A,{variant:"body2",children:t.reviewer_name}),(0,o.jsx)(p.A,{variant:"body2",color:"text.secondary",children:eR(t.review_date)})]})]}),(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",gap:2,flexWrap:"wrap"},children:[(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",gap:.5,cursor:eC(t)?"default":"pointer",opacity:eC(t)?.7:1},onClick:e=>e_(t,e),children:[A[t.id]?(0,o.jsx)(S.A,{size:18}):(0,o.jsx)(U.xp2,{size:18,color:eC(t)||j[t.id]?"#FF9800":"#9e9e9e"}),(0,o.jsxs)(p.A,{variant:"body2",children:["Helpful (",t.helpfull_text||"0",")"]})]}),(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",gap:.5,cursor:"pointer"},onClick:e=>ey(t.id,e),children:[(0,o.jsx)(U.Bg0,{size:18,color:"#9e9e9e"}),(0,o.jsx)(p.A,{variant:"body2",children:ed.has(t.id)?"Reported":"Report"})]})]})]}),t.review_text_head&&(0,o.jsx)(p.A,{variant:"h6",sx:{fontWeight:"medium"},children:t.review_text_head}),(0,o.jsx)(p.A,{variant:"body1",sx:{lineHeight:1.6},children:t.review_text_body})]})]}),i<d.data.length-1&&(0,o.jsx)(M.A,{})]},t.id))}):u||d.loading?null:(0,o.jsx)(x.A,{sx:{textAlign:"center",py:4},children:(0,o.jsx)(p.A,{variant:"h6",color:"text.secondary",children:"No reviews available yet"})}),d.loading&&d.data.length>0&&(0,o.jsx)(x.A,{sx:{display:"flex",justifyContent:"center",py:4},children:(0,o.jsx)(S.A,{size:24})}),I&&(0,o.jsx)(q.A,{review:d.data.find(e=>e.id===I),open:_,onClose:ej,onReportSuccess:e=>{ep(t=>new Set(Array.from(t).concat(e))),ej()},reviewId:I,toolId:e?.id||e?.tool_id||"",anchorEl:ee}),(0,o.jsx)(H.Ay,{open:el,onClose:ew,anchorEl:er,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,o.jsxs)(x.A,{sx:{p:2,textAlign:"center"},children:[(0,o.jsx)(b(),{loading:"lazy",src:X.A,alt:"thumbs up",width:40,height:40}),(0,o.jsx)(p.A,{variant:"body1",sx:{mt:1}
1,children:"Thank you for your feedback!"})]})})]})};var er=i(37040);let es=function({tool:e,preloadedData:t,preloadedLoading:i=!1}){let[s,l]=(0,r.useState)([]),[n,a]=(0,r.useState)(!0),[d,c]=(0,r.useState)(null);(0,r.useEffect)(()=>{t&&!i?(200===t.status&&t.data?.search_result?(l(t.data.search_result),c(null)):(c("No alternative tools found"),l([])),a(!1)):t||i||(async()=>{if(!e?.short_description){c("Tool description not available"),a(!1);return}try{a(!0),c(null);let t=await $.apiClient.post("/api/v1/search/tools/get_alternate_tools",{short_description:e.short_description});200===t.data.status&&t.data.data.search_result?l(t.data.data.search_result):c("No alternative tools found")}catch(e){console.error("Error fetching alternative tools:",e),c("Failed to fetch alternative tools"),O.oR.error("Failed to load alternative tools")}finally{a(!1)}})()},[t,i,e?.short_description]),(0,r.useEffect)(()=>{void 0!==i&&a(i)},[i]);let h=e=>{},g=e=>{},m=e=>{if(e){let t=new URL(window.location.href);t.searchParams.set("tool",e),window.open(t.toString(),"_blank")}};return n?(0,o.jsx)(x.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:{xs:"300px",sm:"350px",md:"400px",lg:"450px"},height:{xs:"300px",sm:"350px",md:"400px",lg:"450px"},p:{xs:"12px 8px",sm:"16px 12px",md:"20px 16px",lg:"24px 20px"}},children:(0,o.jsx)(S.A,{})}):d?(0,o.jsx)(x.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:{xs:"300px",sm:"350px",md:"400px",lg:"450px"},height:{xs:"300px",sm:"350px",md:"400px",lg:"450px"},p:{xs:"12px 8px",sm:"16px 12px",md:"20px 16px",lg:"24px 20px"}},children:(0,o.jsx)(p.A,{variant:"body1",color:f.A.palette.text.secondary,sx:{fontSize:{xs:"13px",sm:"14px",md:"15px",lg:"16px"}},children:d})}):0===s.length?(0,o.jsx)(x.A,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",minHeight:{xs:"300px",sm:"350px",md:"400px",lg:"450px"},height:{xs:"300px",sm:"350px",md:"400px",lg:"450px"},p:{xs:"12px 8px",sm:"16px 12px",md:"20px 16px",lg:"24px 20px"}},children:(0,o.jsx)(p.A,{variant:"body1",color:f.A.palette.text.secondary,sx:{fontSize:{xs:"13px",sm:"14px",md:"15px",lg:"16px"}},children:"No alternative tools found"})}):(0,o.jsxs)(x.A,{sx:{p:{xs:"24px 16px",md:"20px 16px",lg:"24px 20px"},minHeight:{xs:"300px",sm:"350px",md:"400px",lg:"450px"},width:"100%"},children:[(0,o.jsxs)(p.A,{variant:"h6",sx:{mb:{xs:1.5,sm:2,md:2.5,lg:3},fontWeight:f.A.typography.fontWeightMedium,fontSize:{xs:"18px",lg:"20px"}},children:["Similar tools (",s.length,")"]}),(0,o.jsx)(x.A,{sx:{display:"grid",gridTemplateColumns:{xs:"minmax(0, 1fr)",md:"repeat(2, minmax(0, 1fr))",lg:"repeat(2, minmax(0, 1fr))"},gap:{xs:1.5,sm:2,md:2.5,lg:3},width:"100%",maxWidth:"100%",overflowX:"hidden","& > *":{minWidth:0,maxWidth:"100%",overflowX:"hidden"}},children:s.map((e,t)=>(0,o.jsx)(er.J,{tool:e,onCompare:h,compareTools:[],isImageLoading:!1,onDetailsClick:m,handleAddFavorite:g,posthog:u.default,similorToolCard:!1,isAlternativeMode:!0},e.tool_id||t))})]})};var el=i(79695);let en=e=>{if(!(e.pricing_mode&&e.pricing_mode.length>0))return{monthly:[{title:"Contact for Pricing",price:"Custom",period:"",features:["Custom pricing available","Contact sales team","Enterprise solutions"]}],annual:[{title:"Contact for Pricing",price:"Custom",period:"",features:["Custom pricing available","Contact sales team","Enterprise solutions"]}]};let t=t=>{let i=e.key_features||["Core functionality","Standard support","Regular updates"],o=(t||"").toLowerCase();return o.includes("basic")||o.includes("starter")?[...i.slice(0,3),"Email support","Basic features"]:o.includes("pro")||o.includes("professional")?[...i,"Priority support","Advanced features","API access"]:o.includes("enterprise")||o.includes("business")?[...i,"24/7 dedicated support","Enterprise features","Custom integrations","SLA guarantee","Advanced security"]:i},i=e=>"string"==typeof e?.price?e.price:"";return{monthly:e.pricing_mode?.map(e=>{let o=i(e);return{title:e.plan,price:o.split("/")[0],period:o.includes("/")?`/${o.split("/")[1]}`:"",features:t(e.plan)}}),annual:e.pricing_mode?.map(e=>{let o=i(e),r=Math.round(.8*parseFloat(o.replace(/[^0-9.]/g,"")));return{title:e.plan,price:isNaN(r)?o.split("/")[0]:`$${r}`,period:o.includes("/")?`/${o.split("/")[1]}`:"",features:[...t(e.plan),"20% annual discount","Yearly billing"]}})}},ea=function({tool:e}){return en(e),(0,o.jsxs)(x.A,{sx:{p:2},children:[(0,o.jsx)(x.A,{sx:{backgroundColor:"#FFF3E0",borderRadius:"12px",padding:"8px 16px",mb:2,mt:{xs:2,md:0}},children:(0,o.jsx)(x.A,{textAlign:"center",children:(0,o.jsxs)(p.A,{variant:"caption",sx:{fontSize:"12px",color:"#F57C00",fontWeight:f.A.typography.fontWeightRegular},children:["Pricing of AI Tools can change frequently. Visit the tool"," ",(0,o.jsx)(x.A,{component:"span",sx:{textDecoration:"underline",cursor:"pointer"},onClick:()=>{e?.tool_link?window.open(e.tool_link,"_blank"):O.oR.error("No link found for this tool")},children:"website"})," ","to confirm pricing information."]})})}),(0,o.jsxs)(x.A,{sx:{backgroundColor:"rgba(23, 145, 255, 0.04)",borderRadius:"12px",padding:{xs:"16px 16px",sm:"20px 24px"},mb:1.5},children:[(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:{xs:"flex-start",sm:"center"},flexDirection:{xs:"column",sm:"row"},mb:1,gap:{xs:0,md:2}},children:[(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,o.jsx)(b(),{loading:"lazy",src:el.A,height:20,width:20,alt:"Upgrade Icon"}),(0,o.jsx)(p.A,{variant:"h6",sx:{fontWeight:f.A.typography.fontWeightMedium,fontSize:{xs:"18px",sm:"20px"},color:"#1791FF",display:"flex",alignItems:"center"},children:"Pricing Overview"})]}),(0,o.jsx)(p.A,{variant:"body2",sx:{fontSize:"14px",color:"#1791FF",fontWeight:f.A.typography.fontWeightRegular,ml:{xs:"25px",md:0},mt:{xs:"4px",sm:0}},children:"Generated by AivanaAI"})]}),(0,o.jsx)(p.A,{variant:"body1",sx:{fontSize:"16px",color:f.A.palette.text.primary,lineHeight:1.6,fontWeight:f.A.typography.fontWeightRegular},children:e?.plan_info})]}),(0,o.jsx)(p.A,{variant:"caption",sx:{fontSize:"12px",color:f.A.palette.text.secondary,fontWeight:f.A.typography.fontWeightRegular,textAlign:"center",display:"block",mt:4},children:"Disclaimer: AivanaAI can make mistakes. Please verify important pricing information via the tool website."})]})};var ex=i(57947),ed=i(31777),ep=i(45360),ec=i(71129),eh=i(48780),eg=i(57647),em=i(65657),eu=i(34293),ef=i(40510),eA=i(29281),eb=i(14024),ey=i(97444),ej=i(11359),ew=i(93890),ev=i(92924),ek=i(94515),eS=i(29454),eC=i(5211),e_=i(6796),eR=i(33803);let eI={src:"/_next/static/media/thumb.40d60c07.png",height:104,width:104,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAG1BMVEUUkP8Wkf8Xkv8Wk/8XlP8Wk/8Wlv8Vkv8
1Xlv+1i+j+AAAACXRSTlMBcVoZTINEKqF8Xy2RAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAMklEQVR4nC3IwQ0AIAzDQCdNKftPjED4dTKAw6u6P2QB0y2kYRnIXtTd3gG5ShdYSuYAEGIAi2N/c0YAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8};var eW=i(82318);let ez=function({tool:e,onClose:t,isFavorited:i,handleShare:l,handleShareHover:n}){let a=(0,ed.d4)(e=>e.auth.user),{isAuthenticated:d}=(0,s.G)(e=>e.auth),c=(0,Y.s)(),[h,g]=(0,r.useState)(!1),[m,u]=(0,r.useState)(!1),[A,y]=(0,r.useState)(null),j=(0,r.useRef)(null),w=(0,ed.wA)(),[C,_]=(0,r.useState)(!1),[R,I]=(0,r.useState)({top:0,left:0}),[W,z]=(0,r.useState)({top:0,left:0}),[F,D]=(0,r.useState)({top:0,left:0}),[E,B]=(0,r.useState)(!1),[T,L]=(0,r.useState)(!1),[M,H]=(0,r.useState)(!1),[P,N]=(0,r.useState)([]),[U,V]=(0,r.useState)(""),[X,G]=(0,r.useState)(""),[q,Q]=(0,r.useState)(""),[Z,ee]=(0,r.useState)(!1),et=window.innerWidth<=600,ei=async(t,i)=>{try{ee(!0);let o={description:i.feedback,origin:"report"===t?"aivana_tool_modal_report":"aivana_tool_modal_claim",tool_id:e?.tool_id,tool_name:e?.tool_name,user_id:a?.id};"report"===t?o.tags=P:o.role=i.role;let r=await $.apiClient.post("/api/v1/chat_bot/user_review_feedback",o);if(200===r.status)"report"===t?(B(!1),N([]),Q("")):(H(!1),V(""),G("")),L(!0);else throw Error(`Failed to submit ${t}`)}catch(e){console.error(`Error submitting ${t}:`,e),O.oR.error(`Failed to submit ${t}`)}finally{ee(!1)}},eo=e=>{N(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])},er=(e,t)=>Math.max(8,Math.min(e,window.innerWidth-t-8)),es=e=>Math.max(8,Math.round((window.innerWidth-e)/2)),el=()=>{_(!1)},en=async()=>{if(!e){O.oR.error("Tool information not available");return}if(!a){eS.A.set("favoriteToolPending",JSON.stringify({tool_id:e?.tool_id}),{expires:1}),eS.A.set("redirectAfterOnboarding","/squad",{expires:1}),t();return}if(i)try{g(!0),await $.apiClient.get(`/api/v1/user/remove_tool_from_myai_squad/${e?.tool_id}`),w((0,K.wy)(e?.tool_id));let t=(a.myai_squad||[]).filter(t=>t!==e?.tool_id);w((0,e_.gV)({...a,myai_squad:t}))}catch(e){console.error("Failed to save to localStorage:",e)}finally{g(!1);return}g(!0);try{await $.apiClient.post("/api/v1/myai-squad/add_tool",{tool_id:e?.tool_id});let t=[...a?.myai_squad||[],e?.tool_id];w((0,e_.gV)({...a,myai_squad:t}));try{localStorage.setItem("myai_squad",JSON.stringify(t))}catch(e){console.error("Failed to save to localStorage:",e)}}catch(e){console.error("Error adding favorite:",e),e?.status===401||e?.response?.status===401?(c.openSignup(),O.oR.error("Please sign in to add favorites")):O.oR.error("Failed to add to favorites")}finally{g(!1)}};return(0,o.jsxs)(x.A,{className:"rounded-b-[25px]",sx:{background:`${e?.is_featured?"#E8F1F8":"#F0F0F0"}`,display:"flex",alignItems:"center",borderTop:"1px solid lightgray"},children:[(0,o.jsxs)(x.A,{sx:{position:"relative",display:"flex",alignItems:"center",flex:1,borderRadius:"0px",justifyContent:"center",p:{xs:"10px 8px",lg:"13px 10px"},fontSize:{xs:"12px",sm:"13px",md:"14px"},fontWeight:f.A.typography.fontWeightMedium,color:f.A.palette.text.secondary,cursor:"pointer",lineHeight:"24px",letterSpacing:"0.4px"},onClick:()=>{e?.tool_link?window.open(e?.tool_link,"_blank"):O.oR.error("No link found for this tool")},children:[et?"Visit":"Visit website",(0,o.jsx)(eC.bBb,{fill:f.A.palette.text.secondary,style:{fontSize:et?"15px":"20px",marginLeft:4}})]}),(0,o.jsxs)(x.A,{sx:{position:"relative"},children:[(0,o.jsx)(v.A,{ref:j,onClick:()=>{if(d)en();else{c.openSignup();return}},onMouseEnter:()=>{if(j.current){let e=j.current.getBoundingClientRect();y({top:e.bottom+window.scrollY+0,left:e.left+e.width/2+window.scrollX}),u(!0)}},onMouseLeave:()=>{u(!1),y(null)},sx:{position:"relative",display:"flex",alignItems:"center",flex:1,borderRadius:"0px",borderRight:"1px solid lightgray",borderLeft:"1px solid lightgray",justifyContent:"center",p:{xs:"10px 8px",lg:"13px 10px"},fontSize:{xs:"12px",sm:"13px",md:"14px"},fontWeight:f.A.typography.fontWeightMedium,color:f.A.palette.text.secondary,cursor:"pointer",lineHeight:"24px",letterSpacing:"0.4px"},children:h?(0,o.jsx)(S.A,{size:16,thickness:4,color:"inherit"}):(0,o.jsx)(eW.A,{fill:i?"red":"#0000008F",style:{fontSize:24,marginBottom:4}})}),m&&A&&(0,k.createPortal)((0,o.jsxs)(x.A,{sx:{position:"absolute",top:A.top,left
1:A.left,transform:"translate(-50%, 0)",zIndex:9999,pointerEvents:"none"},children:[(0,o.jsx)(x.A,{sx:{bgcolor:"#6B7280",color:f.A.palette.common.white,p:{xs:"3px 6px",sm:"4px 8px"},borderRadius:"24px",fontSize:{xs:"0.5rem",sm:"0.625rem"},fontWeight:f.A.typography.fontWeightBold,whiteSpace:"nowrap",display:"flex",alignItems:"center",gap:1},children:i?"Remove from My AI Library":"Save to My AI Library"}),(0,o.jsx)(x.A,{sx:{position:"absolute",bottom:"100%",left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderBottom:"6px solid #6B7280"}})]}),document.body)]}),(0,o.jsx)(v.A,{sx:{position:"relative",display:"flex",alignItems:"center",borderRadius:"0px",borderRight:"1px solid lightgray",justifyContent:"center",p:{xs:"10px 8px",lg:"13px 10px"},fontSize:{xs:"12px",sm:"13px",md:"14px"},fontWeight:f.A.typography.fontWeightMedium,color:f.A.palette.text.secondary,cursor:"pointer",lineHeight:"24px",letterSpacing:"0.4px"},onClick:l,onMouseEnter:n,children:(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(eC.M2P,{fill:f.A.palette.text.secondary,style:{fontSize:20,marginBottom:4}})})}),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v.A,{onClick:e=>{e.stopPropagation();let t=e.currentTarget.getBoundingClientRect();I({top:t.top+window.scrollY+t.height-150,left:er(et?170:t.left+window.scrollX-10,220)}),_(!0)},sx:{position:"relative",display:"flex",alignItems:"center",borderRadius:"0px",justifyContent:"center",p:{xs:"10px 8px",lg:"13px 10px"},fontSize:{xs:"12px",sm:"13px",md:"14px"},fontWeight:f.A.typography.fontWeightMedium,color:f.A.palette.text.secondary,cursor:"pointer",lineHeight:"24px",letterSpacing:"0.4px"},children:(0,o.jsx)(J.rBu,{fontSize:22})}),(0,o.jsx)(em.A,{open:C,onClose:el,hideBackdrop:!1,disablePortal:!1,PaperProps:{sx:{position:"fixed",top:`${R.top}px`,left:`${R.left}px`,width:220,borderRadius:"12px",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.1)",p:0,m:0,backgroundColor:"#FFF",zIndex:1300}},BackdropProps:{sx:{backgroundColor:"transparent"}},children:(0,o.jsx)(eu.A,{sx:{p:0},children:(0,o.jsxs)(ef.A,{disablePadding:!0,children:[(0,o.jsx)(eA.Ay,{disablePadding:!0,children:(0,o.jsxs)(eb.A,{onClick:e=>{e.stopPropagation(),el();let t=e.currentTarget.getBoundingClientRect();z({top:et?t.top+window.scrollY+t.height-460:t.top+window.scrollY+t.height-450,left:et?es(300):er(t.left+window.scrollX-10,300)}),B(!0)},sx:{fontWeight:f.A.typography.fontWeightRegular,py:1.5,px:2,gap:1,color:f.A.palette.text.primary,fontSize:16},children:[(0,o.jsx)(J.QcU,{fontSize:20,color:f.A.palette.text.secondary}),"Report an issue"]})}),(0,o.jsx)(eA.Ay,{disablePadding:!0,children:(0,o.jsxs)(eb.A,{onClick:e=>{e.stopPropagation(),el();let t=e.currentTarget.getBoundingClientRect();D({top:et?t.top+window.scrollY+t.height-410:t.top+window.scrollY+t.height-420,left:et?es(320):er(t.left+window.scrollX-30,320)}),H(!0)},sx:{fontWeight:f.A.typography.fontWeightRegular,py:1.5,px:2,gap:1,color:f.A.palette.text.primary,fontSize:16},children:[(0,o.jsx)(eR.A,{color:f.A.palette.text.secondary}),"Claim tool"]})})]})})}),(0,o.jsxs)(em.A,{open:E,onClose:()=>B(!1),hideBackdrop:!0,maxWidth:"xs",PaperProps:{sx:{borderRadius:"16px",width:300,py:3,position:"absolute",top:`${W.top}px`,left:`${W.left}px`,boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.1)",p:0,m:0,backgroundColor:"#FFF"}},children:[(0,o.jsx)(ey.A,{variant:"body1",sx:{fontSize:16,fontWeight:f.A.typography.fontWeightMedium,textAlign:"center",color:f.A.palette.text.primary},children:"Report an issue"}),(0,o.jsx)(eu.A,{children:(0,o.jsxs)(ej.A,{children:[[{label:"Inaccurate Information",sub:"Details are misleading"},{label:"Broken Link",sub:"Tool does not open/load"},{label:"Spam/Phishing Concern",sub:"Tool behaves like a scam"},{label:"Inappropriate or Offensive",sub:"Potentially harmful content"},{label:"Other",sub:"Something else"}].map((e,t)=>(0,o.jsx)(ew.A,{control:(0,o.jsx)(ev.A,{checked:P.includes(e.label),onChange:()=>eo(e.label)}),label:(0,o.jsxs)(x.A,{children:[(0,o.jsx)(p.A,{variant:"body2",sx:{fontWeight:f.A.typography.fontWeightRegular,fontSize:14,color:f.A.palette.text.primary},children:e.label}),(0,o.jsx)(p.A,{variant:"caption",sx:{mt:.5,fontWeight:f.A.typography.fontWeightRegular,fontSize:12,color:f.A.palette.text.secondary,display:"block"},children:e.sub})]}),sx:{alignItems:"start",mb:1}},t)),(0,o.jsx)(ek.A,{multiline:!0,minRows:3,placeholder:"Tell us what happened (optional)",variant:"outlined",fullWidth:!0,sx:{mt:2},value:q,onChange:e=>Q(e.target.value)}),(0,o.jsx)(x.A,{sx:{display:"flex",justifyContent:"flex-end",mt:2},children:(0,o.jsx)(v.A,{variant:"contained",color:"primary",sx:{borderRadius:"30px",textTransform:"none",minWidth:"70px"},disabled:0===P.length,onClick:()=>{0!==P.length&&ei("report",{feedback:q||"User reported issues"})},children:Z?(0,o.jsx)(S.A,{size:20,sx:{color:"white"}}):"Submit"})})]})})]}),(0,o.jsx)(em.A,{open:T,onClose:()=>L(!1),hideBackdrop:!0,PaperProps:{sx:{borderRadius:"16px",width:320,textAlign:"center",px:3,py:3,left:-130,top:220}},children:(0,o.jsx)(eu.A,{children:(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[(0,o.jsx)(b(),{loading:"lazy",src:eI,alt:"Thumb",style:{width:"50px",height:"52px"},placeholder:"blur"}),(0,o.jsx)(p.A,{variant:"body1",fontWeight:500,sx:{fontSize:16,px:1,borderRadius:"4px",color:f.A.palette.text.primary}
1,children:"Thank you for your report!"}),(0,o.jsx)(p.A,{variant:"body2",sx:{color:f.A.palette.text.primary,fontSize:14,fontWeight:f.A.typography.fontWeightRegular},children:"We'll check if this tool meets our policies. If it doesn't, we'll remove it."})]})})}),(0,o.jsx)(em.A,{open:M,onClose:()=>H(!1),hideBackdrop:!0,PaperProps:{sx:{borderRadius:"16px",width:320,py:3,px:2,position:"absolute",top:`${F.top}px`,left:`${F.left}px`,boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.1)",backgroundColor:"#FFF"}},children:(0,o.jsx)(eu.A,{sx:{p:0},children:(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:"column",gap:2},children:[(0,o.jsx)(x.A,{sx:{borderRadius:"16px",px:1,py:.5,textAlign:"center"},children:(0,o.jsxs)(p.A,{variant:"body1",fontWeight:f.A.typography.fontWeightMedium,fontSize:"16px",lineHeight:"20px",color:f.A.palette.text.primary,children:["Are you the owner or publisher of",(0,o.jsx)("br",{}),"this tool?"]})}),(0,o.jsxs)(x.A,{children:[(0,o.jsx)(p.A,{fontSize:"14px",fontWeight:f.A.typography.fontWeightRegular,color:f.A.palette.text.primary,textAlign:"left",children:"What is your role?"}),(0,o.jsx)(ek.A,{value:U,onChange:e=>V(e.target.value),variant:"outlined",fullWidth:!0,sx:{"& .MuiOutlinedInput-root":{borderRadius:"30px"},mt:.5}})]}),(0,o.jsxs)(x.A,{children:[(0,o.jsx)(p.A,{fontSize:"14px",fontWeight:f.A.typography.fontWeightRegular,color:f.A.palette.text.primary,textAlign:"left",children:"What would you like us to know?"}),(0,o.jsx)(ek.A,{value:X,onChange:e=>G(e.target.value),multiline:!0,minRows:3,variant:"outlined",fullWidth:!0,sx:{"& .MuiOutlinedInput-root":{borderRadius:"16px"},mt:.5}})]}),(0,o.jsx)(x.A,{sx:{display:"flex",justifyContent:"flex-end"},children:(0,o.jsx)(v.A,{variant:"contained",color:"primary",sx:{borderRadius:"30px",textTransform:"none",minWidth:"70px",px:2},disabled:!U.trim()||!X.trim(),onClick:()=>{U.trim()&&X.trim()&&ei("claim",{feedback:X,role:U})},children:Z?(0,o.jsx)(S.A,{size:20,sx:{color:"white"}}):"Submit"})})]})})})]})]})};var eF=i(13911),eD=i(92834);let eE=(0,ex.Ay)(x.A)(()=>({padding:"8px 16px",borderRadius:"24px",display:"flex",alignItems:"center",gap:8,fontSize:"0.75rem"})),eB=function({tool:e,onClose:t,isImageLoading:i,toolImage:r,handleShare:s,handleShareHover:l}){let c=(0,ed.d4)(e=>e.auth.user),h=(0,n.A)(f.A.breakpoints.down("sm"));if(!e)return null;let g=c?.myai_squad?.includes(e?.tool_id),m=e=>{switch(e){case"Recently Added":return{icon:(0,o.jsx)(b(),{src:ep.A,alt:"Recently added tool",style:{width:16,height:16,marginBottom:2}}),text:"Recently Added",gradient:"linear-gradient(90deg, #5DA022 0%, #25B2A9 100%)"};case"Top Choice":return{icon:(0,o.jsx)(b(),{src:ec.A,alt:"Top choice tool",style:{width:16,height:16,marginBottom:2}}),text:"Top Choice",gradient:"linear-gradient(90deg, #E91E4D 0%, #E91EA2 100%)"};case"Trending Now":return{icon:(0,o.jsx)(b(),{src:eh.A,alt:"Trending tools",style:{width:16,height:16,marginBottom:2}}),text:"Trending Now",gradient:"linear-gradient(90deg, #F03900 0%, #FF8922 100%)"};case"Community Favorite":return{icon:(0,o.jsx)(b(),{src:eg.A,alt:"Community favorite tool",style:{width:16,height:16,marginBottom:2}}),text:"Community Favorite",gradient:"linear-gradient(to right, #7E57C2, #5767C2)"};case"No Badge":return{icon:(0,o.jsx)(eF.A,{sx:{fontSize:16,mb:"2px"},className:"icon-margin-bottom",titleAccess:"No Badge"}),text:"No Badge",gradient:"linear-gradient(to right, #B0BEC5, #CFD8DC)"};default:return null}};return(0,o.jsxs)(a.A,{sx:{boxShadow:"none",position:"relative",width:{xs:"100%",sm:"100%",md:"30%",xl:"25%"},height:{xs:"auto",sm:"auto",md:"auto"},minHeight:{xs:"auto"},maxHeight:{xs:"100vh"},backgroundColor:e?.is_featured?"#F3F7FC":h?"#FFF":"#F5F5F5",display:"flex",flexDirection:"column",borderRadius:h?"0px":"24px"},className:"hide-scrollbar",children:[(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",justifyContent:e?.is_featured?"space-between":"flex-end",width:"100%",mt:h?"8px":"none"},children:[e?.is_featured&&(0,o.jsxs)(eE,{sx:{color:f.A.palette.primary.main,borderRadius:"0px",bgcolor:"#1791FF1A",borderTopLeftRadius:"24px",borderBottomRightRadius:"18px"},children:[(0,o.jsx)(eD.A,{fill:f.A.palette.primary.main,style:{fontSize:14,marginBottom:2}}),"Featured"]}),e?.badge&&(0,o.jsxs)(eE,{sx:{mt:h?"8px":"none",position:"absolute",top:0,right:0,color:"#ffffff",borderRadius:"0px",background:m(e?.badge)?.gradient,borderTopRightRadius:"24px",borderBottomLeftRadius:"18px",display:"flex",alignItems:"center",gap:.5,zIndex:1,fontSize:{xs:"0.625rem",sm:"0.7rem",md:"0.75rem"},padding:{xs:"6px 12px",sm:"7px 14px",md:"8px 16px"}},children:[m(e?.badge)?.icon,m(e?.badge)?.text]})]}),(0,o.jsxs)(x.A,{sx:{flex:1,display:"flex",flexDirection:"column",paddingBottom:{xs:"60px",sm:"130px",md:"200px"},overflowY:"hidden"},className:"hide-scrollbar",children:[(0,o.jsx)(x.A,{sx:{width:"100%",display:"flex",flexDirection:"column",mt:{xs:3,sm:4,md:5},px:{xs:1.5,sm:2,md:2.5,lg:3}},children:(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:"column",gap:{xs:1,sm:1.25,md:1.5,lg:2},px:{xs:1.5,sm:2,md:2.5,lg:3}},children:[(0,o.jsx)(x.A,{sx:{position:"relative",display:"flex",alignItems:"flex-start",justifyContent:"center",pt:h?"16px":"none"},children:(0,o.jsx)(x.A,{sx:{width:{xs:48,sm:56,md:64,lg:72},height:{xs:48,sm:56,md:64,lg:72},borderRadius:"8px",overflow:"hidden"},children:i?(0,o.jsx)(d.A,{variant:"rectangular",width:"100%",height:"100%"}):(0,o.jsx)(x.A,{component:"img",src:r||e?.tool_image||"https://encrypted-tbn0.gstatic.
1com/images?q=tbn:ANd9GcTsMmqkOKOIVTy7eKWX7hA3EL3s4EAzCQBUDg&s",alt:e?.tool_name,sx:{width:"100%",height:"100%",objectFit:"cover"},onError:e=>{let t=e.target;t.onerror=null,t.src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTsMmqkOKOIVTy7eKWX7hA3EL3s4EAzCQBUDg&s"}})})}),(0,o.jsxs)(x.A,{children:[(0,o.jsx)(p.A,{variant:"h4",sx:{fontSize:{xs:"1rem",lg:"1.25rem"},textAlign:"center",fontWeight:600,color:f.A.palette.text.primary,mb:.5},children:e?.tool_name}),(0,o.jsx)(p.A,{variant:"body2",sx:{fontSize:{xs:13,sm:14,md:15,lg:16},color:f.A.palette.text.secondary,mb:"6px",fontWeight:f.A.typography.fontWeightRegular,textAlign:"center"},children:e?.publisher_name}),(0,o.jsx)(x.A,{sx:{px:{xs:1.5,sm:2,md:2.5,lg:3},display:"flex",alignItems:"center",justifyContent:"center"},children:(0,o.jsx)(P.G,{tool:e,size:24})})]})]})}),(0,o.jsx)(x.A,{sx:{display:"flex",flexDirection:"column",my:3,width:"90%",mx:"auto",backgroundColor:e?.is_featured?"#F3F7FC":h?"#FFF":"#F5F5F5",minHeight:"1px",px:{xs:1.5,sm:2,md:2.5,lg:3}}}),(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:"column",gap:{xs:1.5,sm:1.75,md:2},px:{xs:1.5,sm:2,md:2.5,lg:3},pb:{xs:1.5,sm:2,md:0}},children:[(0,o.jsxs)(x.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,o.jsx)(p.A,{variant:"body2",sx:{fontWeight:f.A.typography.fontWeightRegular,fontSize:"14px",color:f.A.palette.text.secondary,lineHeight:"143%",letterSpacing:"0.17px"},children:"Launch Date"}),(0,o.jsx)(p.A,{sx:{fontWeight:f.A.typography.fontWeightRegular,fontSize:"14px",color:f.A.palette.text.primary,lineHeight:"143%",letterSpacing:"0.17px"},children:e?.release_date?(()=>{let t,i;let o=e.release_date.trim();if(o.includes("-"))[t,i]=o.split("-");else if(o.includes("/")){let e=o.split("/");isNaN(e[0]),[i,t]=e}if(!i||!t)return"Not specified";try{let e=new Date(`${i} 1, ${t}`).toLocaleString("en-US",{month:"short"});return`${e}, ${t}`}catch{return"Not specified"}})():"Not specified"})]}),(0,o.jsxs)(x.A,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,o.jsx)(x.A,{children:(0,o.jsx)(p.A,{variant:"body2",sx:{fontWeight:f.A.typography.fontWeightRegular,fontSize:"14px",color:f.A.palette.text.secondary,lineHeight:"143%",letterSpacing:"0.17px"},children:"Pricing Model"})}),(0,o.jsx)(x.A,{sx:{display:"flex",flexWrap:"wrap",gap:1,alignItems:"center",justifyContent:"flex-end"},children:e?.price_type&&e?.price_type?.length>0?e?.price_type?.map((e,t)=>o.jsx(L.A,{label:e,size:"small",sx:{fontSize:"13px",px:"10px",py:"3px",backgroundColor:"#BBDEFB",color:f.A.palette.text.primary,minHeight:"24px",maxHeight:"24px"}},t)):(0,o.jsx)(L.A,{label:"Not specified",size:"small",sx:{fontSize:"13px",px:"10px",py:"3px",backgroundColor:"#BBDEFB",color:f.A.palette.text.primary,minHeight:"24px",maxHeight:"24px"}})})]}),(0,o.jsxs)(x.A,{children:[(0,o.jsx)(x.A,{children:(0,o.jsx)(p.A,{variant:"body2",component:"h3",sx:{fontWeight:f.A.typography.fontWeightRegular,fontSize:"14px",color:f.A.palette.text.secondary,mb:1,lineHeight:"143%",letterSpacing:"0.17px"},children:"Best for categories"})}),(0,o.jsx)(x.A,{sx:{display:{xs:"flex",md:"grid"},flexWrap:"wrap",gap:1,justifyItems:{sx:"none",md:"flex-start"}},children:e?.aspiration_categories?.map((e,t)=>o.jsx(L.A,{label:e,size:"small",sx:{fontSize:"13px",padding:"3px 4px",backgroundColor:"rgba(0, 0, 0, 0.08)",color:f.A.palette.text.primary,minHeight:"24px",maxHeight:"24px",lineHeight:"143%",letterSpacing:"0.17px"}},t))})]})]})]}),(0,o.jsxs)(x.A,{sx:{position:h?"none":"absolute",bottom:0,left:0,right:0,display:"flex",flexDirection:"column",backgroundColor:e?.is_featured?"#F3F7FC":h?"FFF":"#F5F5F5",borderBottomLeftRadius:12,borderBottomRightRadius:12,zIndex:2*!h},children:[(0,o.jsx)(x.A,{sx:{display:"flex",flexDirection:"column",my:{xs:.75,sm:1,md:1.5,lg:2},width:"90%",mx:"auto",backgroundColor:"rgba(0, 0, 0, 0.07)",minHeight:"1px",px:{xs:1.5,sm:2,md:2.5,lg:3}}}),(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:"column",gap:{xs:.5},width:"100%",px:{xs:1.5,sm:2,md:2.5,lg:3},mb:h?10:2,pt:{xs:.75,sm:1,md:1.5,lg:2}},children:[(0,o.jsx)(p.A,{variant:"body2",sx:{fontWeight:f.A.typography.fontWeightRegular,fontSize:"14px",color:f.A.palette.text.secondary,lineHeight:"143%",letterSpacing:"0.17px",mt:"8px"},children:"Estimated Pricing"}),(0,o.jsxs)(x.A,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,o.jsx)(x.A,{sx:{display:"flex",alignItems:"center",gap:{xs:.5,sm:1}},children:e?.pricing_mode?.length>0?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p.A,{sx:{fontSize:"20px",fontWeight:f.A.typography.fontWeightMedium,color:f.A.palette.text.primary,lineHeight:"143%",letterSpacing:"0.15px"},children:(()=>{let t=e.pricing_mode.map(e=>{let t=(e.price||"").match(/\$?(\d+)/);return t?parseInt(t[1]):0}).sort((e,t)=>
1e-t),i=e.pricing_mode.some(e=>(e.price||"").toLowerCase().includes("free"));return i&&0===t[t.length-1]?"Free":i?`Free - $${t[t.length-1]}`:t[0]===t[t.length-1]?`$${t[0]}`:`$${t[0]} - $${t[t.length-1]}`})()}),(0,o.jsx)(p.A,{component:"span",sx:{fontSize:"16px",fontWeight:f.A.typography.fontWeightRegular,color:f.A.palette.text.secondary,lineHeight:"143%",letterSpacing:"0.15px"},children:"/month"})]}):(0,o.jsx)(p.A,{sx:{fontSize:"20px",fontWeight:f.A.typography.fontWeightMedium,color:f.A.palette.text.primary,lineHeight:"143%",letterSpacing:"0.15px"},children:"N/A"})}),(0,o.jsx)(L.A,{label:"Free trial",size:"small",sx:{padding:"3px 4px",backgroundColor:"#C8E6C9",color:f.A.palette.text.primary,fontSize:"13px",minHeight:"24px",maxHeight:"24px",lineHeight:"143%",letterSpacing:"0.17px"}})]})]}),!h&&(0,o.jsx)(ez,{tool:e,onClose:t,isImageLoading:i,toolImage:r,isFavorited:g,handleShare:s,handleShareHover:l})]})]})};var eT=i(75449),eL=i(79409);function eM({open:e,onClose:t,toolId:i,onNavigate:p,canNavigatePrev:h,canNavigateNext:g,activeTab:m,setActiveTab:u}){let A=(0,s.j)(),[b,y]=(0,r.useState)(null),[S,C]=(0,r.useState)(!1),[_,W]=(0,r.useState)(!1),[z,F]=(0,r.useState)(null),[D]=(0,r.useState)(!1),{user:E}=(0,s.G)(e=>e.auth),[B,T]=(0,r.useState)(!1),[L,M]=(0,r.useState)({x:0,y:0}),H=(0,r.useRef)(null),P=(0,n.A)(f.A.breakpoints.down("sm")),[N,U]=(0,r.useState)(0),[V,O]=(0,r.useState)(null),[X,Y]=(0,r.useState)(!1),G=(0,r.useRef)(null),q=(0,r.useRef)(0),Q=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{if(B){let t=H.current?.getBoundingClientRect();t&&!(e.clientX>=t.left-20&&e.clientX<=t.right+20&&e.clientY>=t.top-20&&e.clientY<=t.bottom+20+100)&&T(!1)}};return document.addEventListener("mousemove",e),()=>{document.removeEventListener("mousemove",e)}},[B]);let[J,Z]=(0,r.useState)(!1),[ee,et]=(0,r.useState)(null),ei=E?.myai_squad?.includes(b?.tool_id);(0,r.useEffect)(()=>(i&&e?(A((0,K.D2)()),Q.current=null,y(null),F(null),O(null),Y(!1),er(),A((0,K.TE)(i))):e||(Q.current=null,A((0,K.D2)()),O(null),Y(!1)),()=>{q.current+=1}),[i,e,A]),(0,r.useEffect)(()=>{b&&Q.current===i&&b?.full_trust_score?.total_reviews&&i&&A((0,K.oA)({toolId:i,filterType:"by_date",isInitial:!0,totalReviews:b?.full_trust_score?.total_reviews||0,from_filter:!1}))},[b,i,A]);let er=async()=>{let e=++q.current;try{C(!0);let t=await $.apiClient.get(`/api/v1/ai-tool?tool_id=${i}`);if(e!==q.current)return;Q.current=i,y(t.data),C(!1),el(t.data,e)}catch(i){if(e!==q.current)return;console.error("Error fetching tool details:",i),C(!1),t()}},el=async(e,t)=>{if(e?.short_description)try{Y(!0);let i=await $.apiClient.post("/api/v1/search/tools/get_alternate_tools",{short_description:e.short_description});if(t!==q.current)return;O(i.data)}catch(e){console.error("Error preloading alternatives:",e)}finally{t===q.current&&Y(!1)}},en=()=>{W(!_)},ex=e=>{T(!0);let t=e.currentTarget.getBoundingClientRect();M({x:t.left+t.width/2,y:t.top-10})},ed=["Details","Demo","Reviews","Pricing","Alternatives"];P&&(ed=["Info",...ed.filter(e=>"Demo"!==e)]);let ep=P?3:ed.length,ec=P?ed.slice(N,N+ep):ed;(0,r.useEffect)(()=>{e&&(u(P?"Info":"Details"),U(0))},[e,P,u]);let eh=(0,r.useCallback)(e=>{let i=e.target;i?.closest?.("input, textarea, select, [contenteditable='true']")&&"Escape"!==e.key||("ArrowLeft"===e.key&&h?p("prev"):"ArrowRight"===e.key&&g?p("next"):"Escape"===e.key&&t())},[h,g,p,t]);if((0,r.useEffect)(()=>{if(e)return document.addEventListener("keydown",eh),()=>{document.removeEventListener("keydown",eh)}},[e,eh]),!e)return null;let eg=()=>{if(G.current){let e=G.current.getBoundingClientRect();et({top:e.bottom+window.scrollY+0,left:e.left+e.width/2+window.scrollX}),Z(!0)}},em=()=>{Z(!1),et(null)};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(w.A,{open:e,onClose:t,closeAfterTransition:!0,BackdropProps:{sx:{backgroundColor:"rgba(0, 0, 0, 0.8)",backdropFilter:"none"}},sx:{"& .MuiBackdrop-root":{backgroundColor:"rgba(0, 0, 0, 0.8)",backdropFilter:"none"}},children:(0,o.jsxs)(x.A,{sx:{position:"relative",width:"100%",height:"100%",transform:"translateZ(0)",WebkitTransform:"translateZ(0)",backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden"},children:[(0,o.jsx)(c.A,{onClick:()=>p("prev"),disabled:!h,sx:{position:"absolute",left:{xs:8,sm:16,md:32,lg:50},top:"50%",transform:"translateZ(0) translateY(-50%)",zIndex:1e3,backgroundColor:"rgba(255, 255, 255, 0.95)",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",width:{xs:32,sm:36,md:40,lg:48},height:{xs:32,sm:36,md:40,lg:48},display:{xs:"flex",md:"flex",lg:"flex"},"&:hover":{backgroundColor:"rgba(255, 255, 255, 1)",boxShadow:"0 6px 16px rgba(0,0,0,0.2)",transform:"translateZ(0) translateY(-50%) scale(1.05)"},"&:disabled":{opacity:.3,backgroundColor:"rgba(255, 255, 255, 0.5)"},transition:"all 0.2s ease-in-out",backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},children:(0,o.jsx)(eT.A,{sx:{fontSize:20,paddingLeft:4}})}),(0,o.jsx)(c.A,{onClick:()=>p("next"),disabled:!g,sx:{position:"absolute",right:{xs:8,sm:16,md:32,lg:50},top:"50%",transform:"translateZ(0) translateY(-50%)",zIndex:1e3,backgroundColor:"rgba(255, 255, 255, 0.95)",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",border:"1px solid rgba(0,0,0,0.1)",width:{xs:32,sm:36,md:40,lg:48},height:{xs:32,sm:36,md:40,lg:48},display:{xs:"flex",md:"flex",lg:"flex"},"&:hover":{backgroundColor:"rgba(255, 255, 255, 1)",boxShadow:"0 6px 16px rgba(0,0,0,0.2)",transform:"translateZ(0) translateY(-50%) scale(1.05)"},"&:disabled":{opacity:.3,backgroundColor:"rgba(255, 255, 255, 0.5)"},transition:"all 0.2s ease-in-out",backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},children:(0,o.jsx)(eL.A,{sx:{fontSize:18}})}),(0,o.jsx)(c.A,{onClick:t,sx:{position:"absolute",right:{xs:"2%",sm:"3%",md:"4%"},top:{xs:"2%",sm:"3%",md:"4%"},zIndex:1e3,backgroundColor:"rgba(0, 0, 0, 0.7)",color:"#fff",boxShadow:"0 2px 8px rgba(0,0,0,0.2)",border:"1px solid rgba(255, 255, 255, 0.2)",width:40,height:40,"&:hover":{backgroundColor:"rgba(0, 0, 0, 0.85)"},backfaceVisibility:"hidden",WebkitBackfaceVisibility:"hidden",transform:"translateZ(0)",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},children:(0,o.jsx)(l.A,{fontSize:P?"small":"medium"})}),(0,o.jsx)(x.A,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translateZ(0) translate(-50%, -50%)",width:{xs:"95%",
1sm:"90%",md:"calc(100% - 100px)",lg:"calc(100% - 160px)",xl:"calc(100% - 240px)"},height:{xs:"691px",sm:"85dvh",md:"90dvh",lg:"90dvh",xl:"calc(100dvh - 144px)"},bgcolor:"background.paper",borderRadius:{xs:1,md:"24px"},boxShadow:24,outline:"none",overflow:"hidden",display:"flex",flexDirection:{xs:"column",sm:"column",md:"row"},maxHeight:"100dvh"},children:S?(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:{xs:"column",sm:"column",md:"row"},width:"100%",height:"100%",padding:{xs:1,sm:1,md:2,lg:3},overflow:"hidden",gap:3},children:[!P&&(0,o.jsxs)(x.A,{sx:{width:{md:320,lg:360},flexShrink:0,display:"flex",flexDirection:"column",alignItems:"center",background:"#F5F5F5",borderRadius:2,gap:2},children:[(0,o.jsx)(d.A,{variant:"rectangular",width:60,height:60,sx:{mt:2,p:3,borderRadius:.5}}),(0,o.jsx)(d.A,{variant:"rectangular",width:"80%",height:20,sx:{borderRadius:1,mt:2}}),(0,o.jsx)(d.A,{variant:"rectangular",width:"50%",height:14,sx:{borderRadius:1}}),(0,o.jsxs)(x.A,{sx:{width:"100%",mt:3,p:3},children:[(0,o.jsx)(d.A,{variant:"rectangular",width:"100%",height:10,sx:{borderRadius:1,mb:1}}),(0,o.jsx)(d.A,{variant:"rectangular",width:"100%",height:10,sx:{borderRadius:1,mb:1}}),(0,o.jsx)(d.A,{variant:"rectangular",width:"100%",height:10,sx:{borderRadius:1,mb:1}})]}),(0,o.jsxs)(x.A,{sx:{width:"100%",mt:"auto",p:3},children:[(0,o.jsx)(d.A,{variant:"rectangular",width:"40%",height:12,sx:{borderRadius:1,mb:1}}),(0,o.jsx)(d.A,{variant:"rectangular",width:"60%",height:32,sx:{borderRadius:5}})]}),(0,o.jsx)(x.A,{sx:{width:"100%",backgroundColor:"#F0F0F0",borderTop:"2px solid #d3d3d3",borderBottomLeftRadius:30,borderBottomRightRadius:30},children:(0,o.jsx)(d.A,{variant:"rectangular",width:"100%",height:50})})]}),(0,o.jsxs)(x.A,{sx:{flex:1,display:"flex",flexDirection:"column",minHeight:0},children:[(0,o.jsx)(a.A,{elevation:0,sx:{borderRadius:{xs:"16px",md:"25px"},backgroundColor:"#F5F5F5",mb:1,px:1},children:(0,o.jsx)(x.A,{sx:{display:"flex",gap:1,alignItems:"center",p:1,pointerEvents:"none"},children:(P?["Info","Details","Reviews","Pricing","Alternatives"]:["Details","Demo","Reviews","Pricing","Alternatives"]).map((e,t)=>(0,o.jsxs)(x.A,{sx:{position:"relative",flex:1,minWidth:80,height:40,borderRadius:40,overflow:"hidden",backgroundColor:0===t?"rgba(23, 145, 255, 0.15)":"transparent"},children:[(0,o.jsx)(d.A,{variant:"rectangular",animation:"wave",height:"100%",width:"100%",sx:{borderRadius:40,position:"absolute",top:0,left:0,opacity:.3}}),(0,o.jsx)(x.A,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:0===t?"#1F1F1F":"#999",fontSize:{xs:"14px",xl:"16px"},fontWeight:500,whiteSpace:"nowrap",zIndex:1},children:e})]},t))})}),(0,o.jsxs)(x.A,{sx:{flex:1,overflow:"auto",p:1},children:[(0,o.jsx)(d.A,{variant:"text",width:120,height:30}),(0,o.jsx)(d.A,{variant:"rectangular",width:469,height:12,sx:{mt:1,borderRadius:1}}),(0,o.jsx)(d.A,{variant:"rectangular",width:615,height:12,sx:{mt:.5,borderRadius:1}}),(0,o.jsx)(d.A,{variant:"rectangular",width:288,height:12,sx:{mt:.5,borderRadius:1}}),(0,o.jsx)(d.A,{variant:"rectangular",width:506,height:12,sx:{mt:.5,borderRadius:1}}),(0,o.jsx)(d.A,{variant:"rectangular",width:469,height:12,sx:{mt:.5,borderRadius:1}}),(0,o.jsx)(d.A,{variant:"rectangular",width:615,height:12,sx:{mt:.5,borderRadius:1}}),(0,o.jsx)(d.A,{variant:"rectangular",width:288,height:12,sx:{mt:.5,borderRadius:1}}),(0,o.jsx)(d.A,{variant:"rectangular",width:506,height:12,sx:{mt:.5,borderRadius:1}})]})]})]}):(0,o.jsxs)(x.A,{sx:{display:"flex",flexDirection:{xs:"column",sm:"column",md:"row"},width:"100%",height:"100%",padding:{xs:"0px",sm:"0px",md:"12px",lg:"16px",xl:"20px 32px 20px 20px"},px:{xs:"6px",lg:"none"},pt:{xs:"6px",lg:"none"},overflow:"hidden"},children:[!P&&(0,o.jsx)(eB,{tool:b,onClose:t,isImageLoading:D,toolImage:z||"",isFavorited:ei,setShowSharePopup:W,handleShare:en,handleShareHover:ex,setShareHovered:T}),(0,o.jsxs)(x.A,{sx:{flex:1,backgroundColor:f.A.palette.background.paper,overflow:"hidden",display:"flex",flexDirection:"column",mt:{xs:.5,sm:.75,md:0},ml:{xs:0,sm:0,md:1,lg:1.5},height:{xs:"auto",sm:"auto",md:"auto"},minHeight:{xs:"250px",sm:"300px",md:"auto"}},children:[(0,o.jsx)(a.A,{elevation:0,sx:{borderRadius:{xs:"16px",sm:"20px",md:"25px",lg:"30px",xl:"40px"},backgroundColor:"#F5F5F5",mx:{xs:"10px",xl:2},mb:{xs:.25,sm:.5,md:1,lg:1.5,xl:2},mt:{xs:"10px",lg:"0px"},boxShadow:"none",border:"none",flexShrink:0},children:(0,o.jsxs)(x.A,{sx:{position:"relative",display:"flex",alignItems:"center",gap:{xs:.125,sm:.25,md:.5,lg:.75,xl:1},overflowX:"hidden",boxShadow:"none",border:"none",py:{xs:.125,sm:.25,md:.375,lg:.375,xl:.5},px:{xs:.125,sm:.25,md:.5,lg:.75,xl:1}},children:[P&&N>0&&(0,o.jsx)(v.A,{onClick:()=>{U(Math.max(0,N-1))},sx:{flexShrink:0,px:{xs:.25,sm:.5,md:1,lg:1.5,xl:2},py:{xs:.375,sm:.5,md:.75,lg:.875,xl:1},minHeight:{xs:40,sm:"auto"},fontSize:{xs:"0.75rem",sm:"0.875rem",md:"0.875rem",lg:"0.875rem",xl:"1rem"},fontWeight:500,borderRadius:{xs:"12px",sm:"15px",md:"20px",lg:"25px",xl:"40px"},textTransform:"none",whiteSpace:"nowrap",minWidth:"fit-content",border:"none",boxShadow:"none",cursor:"pointer",color:"#6b7280",backgroundColor:"transparent","&:hover":{backgroundColor:"rgba(107, 114, 128, 0.1)",color:"#374151"},transition:"all 0.2s ease-in-out",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,o.jsx)(eT.A,{sx:{fontSize:"inherit",color:"inherit"}})}),(0,o.jsx)(x.A,{sx:{flex:1,display:"flex",overflowX:"auto",overflowY:"hidden",gap:{xs:.125,sm:.25,md:.5,lg:.75,xl:1},width:"100%",scrollbarWidth:"thin",scrollbarColor:"#ccc transparent","&::-webkit-scrollbar":{height:"6px"},"&::-webkit-scrollbar-track":{backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#ccc",borderRadius:"24px"}},children:ec.map(e=>(0,o.jsx)(v.A,{ref:"Demo"===e?G:null,onClick:()=>{"Demo"===e||u(e)},onMouseEnter:()=>{"Demo"===e&&eg()},onMouseLeave:()=>{"Demo"===e&&em()},sx:{flexShrink:P?void 0:0,flex:1,px:{xs:"24px",xl:2},py:{xs:"6px",xl:1},minHeight:{xs:40,xl:"auto"},fontSize:{xs:"16px",xl:"1rem"},fontWeight:f.A.typography.fontWeightRegular,borderRadius:{xs:"100px",xl:"40px"},textTransform:"none",whiteSpace:"nowrap",minWidth:"fit-content",border:"none",boxShadow:"none",cursor:"Demo"===e?"default":"pointer",...m===e?{backgroundColor:"rgba(23, 145, 255, 0.20)",color:"#1F1F1F"}:{color:"Demo"===e?f.A.palette.text.disabled:f.A.palette.text.primary}},children:e},e))}),P&&N+ep<ed.length&&(0,o.jsx)(v.A,{onClick:()=>{let e=N+1;e>ed.length-ep&&(e=ed.length-ep),U(e)},sx:{flexShrink:0,px:{xs:.25,sm:.5,md:1,lg:1.5,xl:2},py:{xs:.375,sm:.5,md:.75,lg:.875,xl:1},minHeight:{xs:40,sm:"auto"},fontSize:{xs:"0.75rem",sm:"0.875rem",md:"0.875rem",lg:"0.875rem",xl:"1rem"},fontWeight:500,borderRadius:{xs:"12px",sm:"15px",md:"20px",lg:"25px",xl:"40px"},textTransform:"none",whiteSpace:"nowrap",minWidth:"fit-content",border:"none",boxShadow:"none",cursor:"pointer",color:"#6b7280",backgroundColor:"transparent","&:hover":{backgroundColor:"rgba(107, 114, 128, 0.1)",color:"#374151"},transition:"all 0.2s ease-in-out",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,o.jsx)(eL.A,{sx:{fontSize:"inherit",color:"inherit"}})}),J&&ee&&(0,k.createPortal)((0,o.jsxs)(x.A,{sx:{position:"absolute",top:ee.top,left
1:ee.left,transform:"translate(-50%, 0)",zIndex:9999,pointerEvents:"none"},children:[(0,o.jsx)(x.A,{sx:{bgcolor:f.A.palette.text.secondary,color:f.A.palette.common.white,p:{xs:"3px 6px",sm:"4px 8px",md:"6px 10px"},borderRadius:{xs:"10px",sm:"12px",md:"16px",lg:"20px",xl:"24px"},fontSize:{xs:"0.4rem",sm:"0.5rem",md:"0.625rem"},fontWeight:f.A.typography.fontWeightMedium,whiteSpace:"nowrap",display:"flex",alignItems:"center",gap:1,boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",maxWidth:{xs:"100px",sm:"120px",md:"150px"}},children:"Pending From Publisher"}),(0,o.jsx)(x.A,{sx:{position:"absolute",top:"-6px",left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderBottom:`6px solid ${f.A.palette.text.secondary}`}})]}),document.body)]})}),(0,o.jsxs)(x.A,{sx:{px:{xs:.25,sm:.5,md:1,lg:1.5,xl:2},pb:{xs:.25,sm:.5,md:1,lg:1.5,xl:2},flex:1,overflowY:"Info"===m?"hidden":"auto",scrollbarWidth:"thin",scrollbarColor:"#EEE transparent","&::-webkit-scrollbar":{width:{xs:"2px",sm:"3px",md:"4px",lg:"6px",xl:"8px"}},"&::-webkit-scrollbar-track":{backgroundColor:"#EEE",borderRadius:"24px"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#ccc",borderRadius:"24px"},WebkitOverflowScrolling:"touch",minHeight:{xs:"200px",sm:"250px",md:"300px",lg:"350px"},height:{xs:"calc(100% - 60px)",sm:"calc(100% - 70px)",md:"calc(100% - 80px)",lg:"calc(100% - 90px)"},position:"relative"},children:[(0,o.jsxs)(x.A,{sx:{width:"100%",height:"100%",overflow:"auto"},children:[P&&"Info"===m&&b&&(0,o.jsx)(eB,{tool:b,onClose:t,isImageLoading:D,toolImage:z||"",isFavorited:ei,setShowSharePopup:W,handleShare:en,handleShareHover:ex,setShareHovered:T}),"Details"===m&&b&&(0,o.jsx)(R,{tool:b,isLoading:S}),"Demo"===m&&(0,o.jsx)(I,{}),"Reviews"===m&&(0,o.jsx)(eo,{tool:b}),"Pricing"===m&&(0,o.jsx)(ea,{tool:b}),"Alternatives"===m&&(0,o.jsx)(es,{tool:b,preloadedData:V,preloadedLoading:X})]}),["Info","Details","Demo","Reviews","Pricing","Alternatives"].includes(m)&&P&&b&&(0,o.jsx)(x.A,{sx:{position:"sticky",bottom:0,backgroundColor:"background.paper",zIndex:10},children:(0,o.jsx)(ez,{tool:b,onClose:t,isImageLoading:D,toolImage:z||"",isFavorited:ei,setShowSharePopup:W,handleShare:en,handleShareHover:ex,setShareHovered:T})})]})]})]})})]})}),B&&(0,k.createPortal)((0,o.jsx)(j,{toolData:b,userData:E,isImageLoading:D,toolImage:z||"",tool:b,sharePopupRef:H,setShareHovered:T,shareIconPosition:L,shareTitle:b?.tool_name,handleShareVia:()=>{T(!1)}}),document.body)]})}},57647:(e,t,i)=>{i.d(t,{A:()=>o});let o={src:"/_next/static/media/communityFavrioute.7aa9be2a.png",height:48,width:48,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJFBMVEVMaXFrO71nOrdnObdnObZnOrhpOrxlNLdmPLVrPb5nOrpyQMtvwZFCAAAAC3RSTlMA/vl2mE3JGlCvSqidzaMAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAAxSURBVHicRYvJEQAgDITYTTzTf7+OH+ULwGNE2zGALKkn0GV7AVF2xY1SugZo869wABZ2AIy/Cku6AAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},79695:(e,t,i)=>{i.d(t,{A:()=>o});let o={src:"/_next/static/media/Sparkle.2104b857.png",height:40,width:40,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAIVBMVEUMlv8YlP8XkP8XkP8Wkv8Xkv8Ylf8Wkv8Xkv4Xkv8ajv+hmoBFAAAAC3RSTlMBDlQlt2z9lMp2RFz5IbsAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAAwSURBVHicLYrHEQAwDMKQS9r+A+cch5cQSJK5KvAhg4aTzAfyPbIctkZY34PeqH4BDxIAazrETZ8AAAAASUVORK5CYII=",blurWidth:8,blurHeight:8}}}]);

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.