PageSourceSearch

https://www.webevo.ai/_next/static/chunks/4874.ba25bdc5ac2cda36.js

js webevo.ai collected 2026-10-05 14:57:29 UTC 22,865 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4874],{1743:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(4983);let r=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M72,104a16,16,0,1,1,16,16A16,16,0,0,1,72,104Zm96,16a16,16,0,1,0-16-16A16,16,0,0,0,168,120Zm68-40V192a36,36,0,0,1-36,36H56a36,36,0,0,1-36-36V80A36,36,0,0,1,56,44h60V16a12,12,0,0,1,24,0V44h60A36,36,0,0,1,236,80Zm-24,0a12,12,0,0,0-12-12H56A12,12,0,0,0,44,80V192a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12Zm-12,82a30,30,0,0,1-30,30H86a30,30,0,0,1,0-60h84A30,30,0,0,1,200,162Zm-80-6v12h16V156ZM86,168H96V156H86a6,6,0,0,0,0,12Zm90-6a6,6,0,0,0-6-6H160v12h10A6,6,0,0,0,176,162Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M200,56H56A24,24,0,0,0,32,80V192a24,24,0,0,0,24,24H200a24,24,0,0,0,24-24V80A24,24,0,0,0,200,56ZM164,184H92a20,20,0,0,1,0-40h72a20,20,0,0,1,0,40Z",opacity:"0.2"}),l.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Zm4,28H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48ZM172,96a12,12,0,1,1-12,12A12,12,0,0,1,172,96ZM96,184H80a16,16,0,0,1,0-32H96ZM84,120a12,12,0,1,1,12-12A12,12,0,0,1,84,120Zm60,64H112V152h32Zm32,0H160V152h16a16,16,0,0,1,0,32Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M200,50H134V16a6,6,0,0,0-12,0V50H56A30,30,0,0,0,26,80V192a30,30,0,0,0,30,30H200a30,30,0,0,0,30-30V80A30,30,0,0,0,200,50Zm18,142a18,18,0,0,1-18,18H56a18,18,0,0,1-18-18V80A18,18,0,0,1,56,62H200a18,18,0,0,1,18,18ZM74,108a10,10,0,1,1,10,10A10,10,0,0,1,74,108Zm88,0a10,10,0,1,1,10,10A10,10,0,0,1,162,108Zm2,30H92a26,26,0,0,0,0,52h72a26,26,0,0,0,0-52Zm-22,12v28H114V150ZM78,164a14,14,0,0,1,14-14h10v28H92A14,14,0,0,1,78,164Zm86,14H154V150h10a14,14,0,0,1,0,28Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M200,48H136V16a8,8,0,0,0-16,0V48H56A32,32,0,0,0,24,80V192a32,32,0,0,0,32,32H200a32,32,0,0,0,32-32V80A32,32,0,0,0,200,48Zm16,144a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V80A16,16,0,0,1,56,64H200a16,16,0,0,1,16,16Zm-52-56H92a28,28,0,0,0,0,56h72a28,28,0,0,0,0-56Zm-24,16v24H116V152ZM80,164a12,12,0,0,1,12-12h8v24H92A12,12,0,0,1,80,164Zm84,12h-8V152h8a12,12,0,0,1,0,24ZM72,108a12,12,0,1,1,12,12A12,12,0,0,1,72,108Zm88,0a12,12,0,1,1,12,12A12,12,0,0,1,160,108Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M200,52H132V16a4,4,0,0,0-8,0V52H56A28,28,0,0,0,28,80V192a28,28,0,0,0,28,28H200a28,28,0,0,0,28-28V80A28,28,0,0,0,200,52Zm20,140a20,20,0,0,1-20,20H56a20,20,0,0,1-20-20V80A20,20,0,0,1,56,60H200a20,20,0,0,1,20,20ZM76,108a8,8,0,1,1,8,8A8,8,0,0,1,76,108Zm88,0a8,8,0,1,1,8,8A8,8,0,0,1,164,108Zm0,32H92a24,24,0,0,0,0,48h72a24,24,0,0,0,0-48Zm-20,8v32H112V148ZM76,164a16,16,0,0,1,16-16h12v32H92A16,16,0,0,1,76,164Zm88,16H152V148h12a16,16,0,0,1,0,32Z"}))]])},20914:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(4983);let r=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M228,128a100,100,0,0,1-98.66,100H128a99.39,99.39,0,0,1-68.62-27.29,12,12,0,0,1,16.48-17.45,76,76,0,1,0-1.57-109c-.13.13-.25.25-.39.37L54.89,92H72a12,12,0,0,1,0,24H24a12,12,0,0,1-12-12V56a12,12,0,0,1,24,0V76.72L57.48,57.06A100,100,0,0,1,228,128Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),l.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L60.63,81.29l17,17A8,8,0,0,1,72,112H24a8,8,0,0,1-8-8V56A8,8,0,0,1,29.66,50.3L49.31,70,60.25,60A96,96,0,0,1,224,128Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M222,128a94,94,0,0,1-92.74,94H128a93.43,93.43,0,0,1-64.5-25.65,6,6,0,1,1,8.24-8.72A82,82,0,1,0,70,70l-.19.19L39.44,98H72a6,6,0,0,1,0,12H24a6,6,0,0,1-6-6V56a6,6,0,0,1,12,0V90.34L61.63,61.4A94,94,0,0,1,222,128Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M224,128a96,96,0,0,1-94.71,96H128A95.38,95.38,0,0,1,62.1,197.8a8,8,0,0,1,11-11.63A80,80,0,1,0,71.43,71.39a3.07,3.07,0,0,1-.26.25L44.59,96H72a8,8,0,0,1,0,16H24a8,8,0,0,1-8-8V56a8,8,0,0,1,16,0V85.8L60.25,60A96,96,0,0,1,224,128Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M220,128a92,92,0,0,1-90.77,92H128a91.47,91.47,0,0,1-63.13-25.1,4,4,0,1,1,5.5-5.82A84,84,0,1,0,68.6,68.57l-.13.12L34.3,100H72a4,4,0,0,1,0,8H24a4,4,0,0,1-4-4V56a4,4,0,0,1,8,0V94.89l35-32A92,92,0,0,1,220,128Z"}))]])},22775:(e,a,t)=>{t.d(a,{A:()=>r});
1var l=t(4983);let r=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M228,48V96a12,12,0,0,1-12,12H168a12,12,0,0,1,0-24h19l-7.8-7.8a75.55,75.55,0,0,0-53.32-22.26h-.43A75.49,75.49,0,0,0,72.39,75.57,12,12,0,1,1,55.61,58.41a99.38,99.38,0,0,1,69.87-28.47H126A99.42,99.42,0,0,1,196.2,59.23L204,67V48a12,12,0,0,1,24,0ZM183.61,180.43a75.49,75.49,0,0,1-53.09,21.63h-.43A75.55,75.55,0,0,1,76.77,179.8L69,172H88a12,12,0,0,0,0-24H40a12,12,0,0,0-12,12v48a12,12,0,0,0,24,0V189l7.8,7.8A99.42,99.42,0,0,0,130,226.06h.56a99.38,99.38,0,0,0,69.87-28.47,12,12,0,0,0-16.78-17.16Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M216,128a88,88,0,1,1-88-88A88,88,0,0,1,216,128Z",opacity:"0.2"}),l.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1-5.66-13.66L180.65,72a79.48,79.48,0,0,0-54.72-22.09h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27,96,96,0,0,1,192,60.7l18.36-18.36A8,8,0,0,1,224,48ZM186.41,183.29A80,80,0,0,1,75.35,184l18.31-18.31A8,8,0,0,0,88,152H40a8,8,0,0,0-8,8v48a8,8,0,0,0,13.66,5.66L64,195.3a95.42,95.42,0,0,0,66,26.76h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M222,48V96a6,6,0,0,1-6,6H168a6,6,0,0,1,0-12h33.52L183.47,72a81.51,81.51,0,0,0-57.53-24h-.46A81.5,81.5,0,0,0,68.19,71.28a6,6,0,1,1-8.38-8.58,93.38,93.38,0,0,1,65.67-26.76H126a93.45,93.45,0,0,1,66,27.53l18,18V48a6,6,0,0,1,12,0ZM187.81,184.72a81.5,81.5,0,0,1-57.29,23.34h-.46a81.51,81.51,0,0,1-57.53-24L54.48,166H88a6,6,0,0,0,0-12H40a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V174.48l18,18.05a93.45,93.45,0,0,0,66,27.53h.52a93.38,93.38,0,0,0,65.67-26.76,6,6,0,1,0-8.38-8.58Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M220,48V96a4,4,0,0,1-4,4H168a4,4,0,0,1,0-8h38.34L184.89,70.54A84,84,0,0,0,66.8,69.85a4,4,0,1,1-5.6-5.72,92,92,0,0,1,129.34.76L212,86.34V48a4,4,0,0,1,8,0ZM189.2,186.15a83.44,83.44,0,0,1-58.68,23.91h-.47a83.52,83.52,0,0,1-58.94-24.6L49.66,164H88a4,4,0,0,0,0-8H40a4,4,0,0,0-4,4v48a4,4,0,0,0,8,0V169.66l21.46,21.45A91.43,91.43,0,0,0,130,218.06h.51a91.45,91.45,0,0,0,64.28-26.19,4,4,0,1,0-5.6-5.72Z"}))]])},46576:(e,a,t)=>{t.d(a,{K:()=>i});var l=t(4983),r=t(2767),n=t(88776);let s=l.forwardRef((e,a)=>l.createElement(r.A,{ref:a,...e,weights:n.A}));s.displayName="UserIcon";let i=s},48551:(e,a,t)=>{t.d(a,{d:()=>i});var l=t(4983),r=t(2767),n=t(1743);let s=l.forwardRef((e,a)=>l.createElement(r.A,{ref:a,...e,weights:n.A}));s.displayName="RobotIcon";let i=s},54320:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(4983);let r=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M230.14,25.86a20,20,0,0,0-19.57-5.11l-.22.07L18.44,79a20,20,0,0,0-3.06,37.25L99,157l40.71,83.65a19.81,19.81,0,0,0,18,11.38c.57,0,1.15,0,1.73-.07A19.82,19.82,0,0,0,177,237.56L235.18,45.65a1.42,1.42,0,0,0,.07-.22A20,20,0,0,0,230.14,25.86ZM156.91,221.07l-34.37-70.64,46-45.95a12,12,0,0,0-17-17l-46,46L34.93,99.09,210,46Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M223.69,42.18l-58.22,192a8,8,0,0,1-14.92,1.25L108,148,20.58,105.45a8,8,0,0,1,1.25-14.92l192-58.22A8,8,0,0,1,223.69,42.18Z",opacity:"0.2"}),l.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l
1-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M231.4,44.34s0,.1,0,.15l-58.2,191.94a15.88,15.88,0,0,1-14,11.51q-.69.06-1.38.06a15.86,15.86,0,0,1-14.42-9.15L107,164.15a4,4,0,0,1,.77-4.58l57.92-57.92a8,8,0,0,0-11.31-11.31L96.43,148.26a4,4,0,0,1-4.58.77L17.08,112.64a16,16,0,0,1,2.49-29.8l191.94-58.2.15,0A16,16,0,0,1,231.4,44.34Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M225.88,30.12a13.83,13.83,0,0,0-13.7-3.58l-.11,0L20.14,84.77A14,14,0,0,0,18,110.85l85.56,41.64L145.12,238a13.87,13.87,0,0,0,12.61,8c.4,0,.81,0,1.21-.05a13.9,13.9,0,0,0,12.29-10.09l58.2-191.93,0-.11A13.83,13.83,0,0,0,225.88,30.12Zm-8,10.4L159.73,232.43l0,.11a2,2,0,0,1-3.76.26l-40.68-83.58,49-49a6,6,0,1,0-8.49-8.49l-49,49L23.15,100a2,2,0,0,1,.31-3.74l.11,0L215.48,38.08a1.94,1.94,0,0,1,1.92.52A2,2,0,0,1,217.92,40.52Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M224.47,31.52a11.87,11.87,0,0,0-11.82-3L20.74,86.67a12,12,0,0,0-1.91,22.38L105,151l41.92,86.15A11.88,11.88,0,0,0,157.74,244c.34,0,.69,0,1,0a11.89,11.89,0,0,0,10.52-8.63l58.21-192,0-.08A11.85,11.85,0,0,0,224.47,31.52Zm-4.62,9.54-58.23,192a4,4,0,0,1-7.48.59l-41.3-84.86,50-50a4,4,0,1,0-5.66-5.66l-50,50-84.9-41.31a3.88,3.88,0,0,1-2.27-4,3.93,3.93,0,0,1,3-3.54L214.9,36.16A3.93,3.93,0,0,1,216,36a4,4,0,0,1,2.79,1.19A3.93,3.93,0,0,1,219.85,41.06Z"}))]])},54744:(e,a,t)=>{t.d(a,{M:()=>i});var l=t(4983),r=t(2767),n=t(54320);let s=l.forwardRef((e,a)=>l.createElement(r.A,{ref:a,...e,weights:n.A}));s.displayName="PaperPlaneTiltIcon";let i=s},88776:(e,a,t)=>{t.d(a,{A:()=>r});var l=t(4983);let r=new Map([["bold",l.createElement(l.Fragment,null,l.createElement("path",{d:"M234.38,210a123.36,123.36,0,0,0-60.78-53.23,76,76,0,1,0-91.2,0A123.36,123.36,0,0,0,21.62,210a12,12,0,1,0,20.77,12c18.12-31.32,50.12-50,85.61-50s67.49,18.69,85.61,50a12,12,0,0,0,20.77-12ZM76,96a52,52,0,1,1,52,52A52.06,52.06,0,0,1,76,96Z"}))],["duotone",l.createElement(l.Fragment,null,l.createElement("path",{d:"M192,96a64,64,0,1,1-64-64A64,64,0,0,1,192,96Z",opacity:"0.2"}),l.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["fill",l.createElement(l.Fragment,null,l.createElement("path",{d:"M230.93,220a8,8,0,0,1-6.93,4H32a8,8,0,0,1-6.92-12c15.23-26.33,38.7-45.21,66.09-54.16a72,72,0,1,1,73.66,0c27.39,8.95,50.86,27.83,66.09,54.16A8,8,0,0,1,230.93,220Z"}))],["light",l.createElement(l.Fragment,null,l.createElement("path",{d:"M229.19,213c-15.81-27.32-40.63-46.49-69.47-54.62a70,70,0,1,0-63.44,0C67.44,166.5,42.62,185.67,26.81,213a6,6,0,1,0,10.38,6C56.4,185.81,90.34,166,128,166s71.6,19.81,90.81,53a6,6,0,1,0,10.38-6ZM70,96a58,58,0,1,1,58,58A58.07,58.07,0,0,1,70,96Z"}))],["regular",l.createElement(l.Fragment,null,l.createElement("path",{d:"M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"}))],["thin",l.createElement(l.Fragment,null,l.createElement("path",{d:"M227.46,214c-16.52-28.56-43-48.06-73.68-55.09a68,68,0,1,0-51.56,0c-30.64,7-57.16,26.53-73.68,55.09a4,4,0,0,0,6.92,4C55,184.19,89.62,164,128,164s73,20.19,92.54,54a4,4,0,0,0,3.46,2,3.93,3.93,0,0,0,2-.54A4,4,0,0,0,227.46,214ZM68,96a60,60,0,1,1,60,60A60.07,60.07,0,0,1,68,96Z"}))]])},94874:(e,a,t)=>{t.r(a),t.d(a,{ReportChatAgent:()=>u});var l=t(1087),r=t(4983),n=t(2767),s=t(20914);let i=r.forwardRef((e,a)=>r.createElement(n.A,{ref:a,...e,weights:s.A}));i.displayName="ArrowCounterClockwiseIcon";var c=t(99167),o=t(86347),m=t(54744),d=t(48551),h=t(46576),p=t(35623);function u({reportId:e,isOpen:a,onClose:t,onOpen:n,initialSeed:s,userTier:u="Free"}){let g="Free"===u||"free"===u,[x,f]=(0,r.useState)([]),[A,Z]=(0,r.useState)(""),[w,E]=(0,r.useState)(!1),[H,b]=(0,r.useState)(!a),v=(0,r.useRef)(null),y=(0,r.useRef)(null),V=(0,r.useRef)(a);(0,r.useEffect)(()=>{V.current!==a&&(V.current=a,a?b(!1):b(!0))},[a]),(0,r.useEffect)(()=>{a&&s&&(0===x.length?f([{id:"seed-1",role:"assistant",content:s,timestamp:new Date}]):x.some(e=>e.content===s&&"assistant"===e.role)||f(e=>[...e,{id:`seed-${Date.now()}`,role:"assistant",content:s,timestamp:new Date}]))},[a,s]),(0,r.useEffect)(()=>
1{a||(f([]),Z(""))},[a]),(0,r.useEffect)(()=>{v.current?.scrollIntoView({behavior:"smooth"})},[x]),(0,r.useEffect)(()=>{a&&y.current?.focus()},[a]);let M=async()=>{if(!A.trim()||w)return;let a={id:Date.now().toString(),role:"user",content:A.trim(),timestamp:new Date};f(e=>[...e,a]),Z(""),E(!0);try{let a=x.map(e=>({role:e.role,content:e.content})),t=await fetch(`/api/reports/${e}/chat`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:[...a,{role:"user",content:A.trim()}],initialSeed:s&&0===x.length?s:void 0})});if(!t.ok){let e=await t.json();if("CONVERSATION_LIMIT_REACHED"===e.code)throw Error(e.message||"Conversation limit reached. Close this chat and reopen it to start a new conversation. For support, email [email protected]");throw Error(e.error||e.message||"Failed to get response")}let l=await t.json(),r={id:(Date.now()+1).toString(),role:"assistant",content:l.message,timestamp:new Date};f(e=>[...e,r])}catch(a){let e={id:(Date.now()+1).toString(),role:"assistant",content:a instanceof Error?a.message:"Sorry, I encountered an error. Please try again.",timestamp:new Date};f(a=>[...a,e])}finally{E(!1)}},j=!a||H;return(0,l.jsx)("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col items-end gap-2 pointer-events-none",children:j?(0,l.jsxs)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),!a&&n?requestAnimationFrame(()=>{n()}):H&&b(!1)},className:"pointer-events-auto w-14 h-14 bg-gradient-to-r from-purple-600 to-teal-600 rounded-full shadow-2xl transition-all duration-300 transform hover:scale-110 flex items-center justify-center relative",title:"Open WebEvo.ai Assistant",children:[(0,l.jsx)(o.l,{className:"w-6 h-6 text-white",weight:"fill"}),x.length>0&&(0,l.jsx)("span",{className:"absolute -top-1 -right-1 w-5 h-5 bg-red-500 rounded-full flex items-center justify-center text-xs text-white font-bold",children:x.length})]},"chat-button"):(0,l.jsxs)("div",{className:"bg-slate-900 border border-slate-700 rounded-xl shadow-2xl w-full sm:w-[420px] md:w-[500px] h-[600px] md:h-[700px] flex flex-col pointer-events-auto animate-in slide-in-from-bottom-5 duration-300",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between p-4 border-b border-slate-700",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:"p-2 bg-purple-500/10 rounded-lg",children:(0,l.jsx)(o.l,{className:"w-5 h-5 text-purple-400",weight:"fill"})}),(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{className:"text-lg font-semibold text-white",children:"WebEvo.ai Assistant"}),(0,l.jsx)("p",{className:"text-xs text-gray-400",children:"Support & data analyst"})]})]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("button",{onClick:()=>{f([]),Z("")},className:"p-2 hover:bg-slate-800 rounded-lg transition-colors",title:"Start new conversation",children:(0,l.jsx)(i,{className:"w-5 h-5 text-gray-400"})}),(0,l.jsx)("button",{onClick:()=>b(!0),className:"p-2 hover:bg-slate-800 rounded-lg transition-colors",title:"Minimize",children:(0,l.jsx)(p.X,{className:"w-5 h-5 text-gray-400"})})]})]}),(0,l.jsxs)("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[0===x.length&&(0,l.jsxs)("div",{className:"text-center py-8",children:[(0,l.jsx)("div",{className:"p-4 bg-purple-500/10 rounded-lg inline-block mb-4",children:(0,l.jsx)(o.l,{className:"w-8 h-8 text-purple-400",weight:"fill"})}),(0,l.jsx)("p",{className:"text-gray-300 mb-4 font-medium",children:"I'm your WebEvo.ai support & data analyst assistant!"}),g&&(0,l.jsxs)("div",{className:"mb-4 px-4 py-3 bg-gradient-to-r from-purple-600/20 to-teal-600/20 border border-purple-500/30 rounded-lg",children:[(0,l.jsx)("p",{className:"text-sm text-purple-300 font-medium mb-1",children:"✨ Upgrade to unlock unlimited scans!"}),(0,l.jsx)("p",{className:"text-xs text-gray-400",children:"Get access to all 9 modules, automated monitoring, and more features."})]}),(0,l.jsx)("p",{className:"text-sm text-gray-400 mb-4",children:"I can help you with:"}),(0,l.jsxs)("div",{className:"space-y-2 text-left max-w-sm mx-auto",children:[(0,l.jsx)("button",{onClick:()=>Z("Show me all my scans"),className:"w-full text-left px-3 py-2 text-sm bg-slate-800/50 hover:bg-slate-800 rounded-lg transition-colors text-gray-300",children:"\uD83D\uDCCA Show me all my scans"}),(0,l.jsx)("button",{onClick:()=>Z("What is my account status and credit balance?"),className:"w-full text-left px-3 py-2 text-sm bg-slate-800/50 hover:bg-slate-800 rounded-lg transition-colors text-gray-300",children:"\uD83D\uDCB3 Check my account & credits"}),g&&(0,l.jsx)("button",{onClick:()=>Z("What are the WebEvo.ai pricing plans and what do I get if I upgrade?"),className:"w-full text-left px-3 py-2 text-sm bg-gradient-to-r from-purple-600/20 to-teal-600/20 border border-purple-500/30 hover:border-purple-400/50 rounded-lg transition-colors text-purple-300 font-medium",children:"⭐ Upgrade Plans & Benefits"}),!g&&(0,l.jsx)("button",{onClick:()=>Z("What are the WebEvo.ai pricing plans?"),className:"w-full text-left px-3 py-2 text-sm bg-slate-800/50 hover:bg-slate-800 rounded-lg transition-colors text-gray-300",children:"\uD83D\uDCB0 View pricing plans"}),(0,l.jsx)("button",{onClick:()=>Z("Analyze trends in my scan scores over the last 30 days"),className:"w-full text-left px-3 py-2 text-sm bg-slate-800/50 hover:bg-slate-800 rounded-lg transition-colors text-gray-300",children:"\uD83D\uDCC8 Analyze scan trends"}),e&&(0,l.jsx)("button",{onClick:()=>Z("Explain the recommendations in this report"),className:"w-full text-left px-3 py-2 text-sm bg-slate-800/50 hover:bg-slate-800 rounded-lg transition-colors text-gray-300",children:"\uD83D\uDCA1 Explain this report"})]})]}),x.map(e=>(0,l.jsxs)("div",{className:`flex gap-3 ${"user"===e.role?"justify-end":"justify-start"}`,children:["assistant"===e.role&&(0,l.jsx)("div",{className:"flex-shrink-0 w-8 h-8 bg-purple-500/10 rounded-full flex items-center justify-center",children:(0,l.jsx)(d.d,{className:"w-4 h-4 text-purple-400",weight:"fill"})}),(0,l.jsxs)("div",{className:`max-w-[80%] rounded-lg p-3 ${"user"===e.role?"bg-teal-600 text-white":"bg-slate-800 text-gray-200"}`,children:[(0,l.jsx)("p",{className:"text-sm leading-relaxed whitespace-pre-wrap",children:e.content}),(0,l.jsx)("p",{className:"text-xs opacity-70 mt-1",children:new Date(e.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]}),"user"===e.role&&(0,l.jsx)("div",{className:"flex-shrink-0 w-8 h-8 bg-teal-600/10 rounded-full flex items-center justify-center",children:(0,l.jsx)(h.K,{className:"w-4 h-4 text-teal-400",weight:"fill"})})]},e.id)),w&&(0,l.jsxs)("div",{className:"flex gap-3 justify-start",children:[(0,l.jsx)("div",{className:"flex-shrink-0 w-8 h-8 bg-purple-500/10 rounded-full flex items-center justify-center",children:(0,l.jsx)(d.d,{className:"w-4 h-4 text-purple-400",weight:"fill"})}),(0,l.jsx)("div",{className:"bg-slate-800 rounded-lg p-3",children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(c.P,{className:"w-4 h-4 text-purple-400 animate-spin"}),(0,l.jsx)("span",{className:"text-sm text-gray-400",children:"Thinking..."})]})})]}),(0,l.jsx)("div",{ref:v})]}),(0,l.jsx)("div",{className:"p-4 border-t border-slate-700",children:(0,l.jsxs)("div",{className:"flex gap-2",children:[(0,l.jsx)("textarea",{ref:y,value:A,onChange:e=>Z(e.target.value),onKeyPress:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),M())},placeholder:"Ask about your report...",disabled:w,rows:2,className:"flex-1 bg-slate-800 border border-slate-700 rounded-lg px-4 py-2 text-white placeholder-gray-400 resize-none focus:outline-none focus:ring-2 focus:ring-purple-500 disabled:opacity-50"}),(0,l.jsxs)("button",{onClick:M,disabled:w||!A.trim(),className:"px-4 py-2 bg-purple-600 hover:bg-purple-700 text-white rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed flex items-center gap-2",children:[(0,l.jsx)(m.M,{className:"w-4 h-4"}),"Send"]})]})})]},"chat-modal")})}},99167:(e,a,t)=>{t.d(a,{P:()=>i});
1var l=t(4983),r=t(2767),n=t(22775);let s=l.forwardRef((e,a)=>l.createElement(r.A,{ref:a,...e,weights:n.A}));s.displayName="ArrowsClockwiseIcon";let i=s}}]);

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.