PageSourceSearch

https://serpdino.com/_next/static/chunks/6414-f1757974b60d753f.js

js serpdino.com collected 2026-10-09 03:35:48 UTC 32,071 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6414],{2336:(e,t,r)=>{r.d(t,{A:()=>B});var l=r(37876),a=r(19446),s=r(62002),o=r(14232),n=r(10553),i=r(89099),c=r(28370),d=r(19547),p=r(48230),u=r.n(p),m=r(5050),x=r(61877),h=r(91446),f=r(72732),v=r(762),b=r(19165),g=r(51512),j=r(71077),y=r(57279),w=r(53649),k=r(20863);let N=e=>{let{className:t="",...r}=e;return(0,l.jsxs)("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,l.jsx)("path",{d:"M11.29 18.71a1 1 0 010-1.42L16.59 12l-5.3-5.29a1 1 0 111.42-1.42l6 6a1 1 0 010 1.42l-6 6a1 1 0 01-1.42 0z"}),(0,l.jsx)("path",{d:"M5.29 18.71a1 1 0 010-1.42L10.59 12 5.29 6.71a1 1 0 111.42-1.42l6 6a1 1 0 010 1.42l-6 6a1 1 0 01-1.42 0z",opacity:"0.45"})]})},C=e=>{let{className:t="",...r}=e;return(0,l.jsxs)("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,l.jsx)("path",{d:"M12.71 5.29a1 1 0 010 1.42L7.41 12l5.3 5.29a1 1 0 11-1.42 1.42l-6-6a1 1 0 010-1.42l6-6a1 1 0 011.42 0z"}),(0,l.jsx)("path",{d:"M18.71 5.29a1 1 0 010 1.42L13.41 12l5.3 5.29a1 1 0 11-1.42 1.42l-6-6a1 1 0 010-1.42l6-6a1 1 0 011.42 0z",opacity:"0.45"})]})};var _=r(54401),T=r(18847),S=r.n(T),E=r(60403),P=r(32285),M=r(17047),A=r(94195);let L=S()(()=>r.e(9024).then(r.bind(r,26643)),{loadableGenerated:{webpack:()=>[26643]}}),z=S()(()=>Promise.all([r.e(9944),r.e(2594),r.e(9644),r.e(6176)]).then(r.bind(r,39644)),{loadableGenerated:{webpack:()=>[39644]}}),I=S()(()=>r.e(4657).then(r.bind(r,14657)),{loadableGenerated:{webpack:()=>[14657]}}),R=[{id:"section-keywords",icon:_.Wx,labelKey:"keywords.table_title",fallback:"Keywords Table"},{id:"section-llm",icon:_.i5,labelKey:"llm.section.title",fallback:"AI Visibility"},{id:"section-llm-brands",icon:_.FY,labelKey:"llm.brands.title",fallback:"Brands in the answers"},{id:"section-pages",icon:_.d1,labelKey:"project_pages.title",fallback:"Pages & Tools"},{id:"section-monitor",icon:_.d1,labelKey:"monitor.section.title",fallback:"Page Monitor"},{id:"section-similarweb",icon:_.ZW,labelKey:"similarweb.title",fallback:"SimilarWeb"},{id:"section-competitors",icon:_.FY,labelKey:"competitors.title",fallback:"Competitors Comparison"},{id:"section-pagespeed",icon:_.sF,labelKey:"pagespeed.title",fallback:"PageSpeed Insights"}];function V(e,t){let r=document.getElementById(e);if(!r)return;let l=r.getBoundingClientRect().top+window.scrollY-12;window.scrollTo({top:l,behavior:"smooth"}),null==t||t("sidebar.section.clicked",{section:e})}function B(e){var t,r,p,_;let{currentProjectId:T=null,onProjectUpdate:S=null,refreshTrigger:B=null,onProjectCreated:O=null,updatedProject:F=null,onCollapseChange:$=null,initialCollapsed:K=!1,onNavigate:q=null,hideCollapseButton:D=!1,initialSidebarData:G=null}=e,{t:H}=(0,s.Bd)("dashboard"),U=(0,i.useRouter)(),{data:Y,status:W}=(0,n.useSession)(),{handleApiResponse:Z}=(0,c._Q)(),J=(0,d.dj)(),{track:Q,trackPopup:X}=(0,E.nE)(),[ee,et]=(0,o.useState)((null==G?void 0:G.folders)||[]),[er,el]=(0,o.useState)((null==G?void 0:G.projects)||[]),[ea,es]=(0,o.useState)(!G),[eo,en]=(0,o.useState)(new Set),[ei,ec]=(0,o.useState)(!1),[ed,ep]=(0,o.useState)(!1),[eu,em]=(0,o.useState)(null),[ex,eh]=(0,o.useState)(null),[ef,ev]=(0,o.useState)(K),[eb,eg]=(0,o.useState)(!1),[ej,ey]=(0,o.useState)((null==G||null==(t=G.capacity)?void 0:t.total)||12e3),[ew,ek]=(0,o.useState)((null==G||null==(r=G.capacity)?void 0:r.plan)===M.Ac.FREE),eN=(0,o.useRef)(!!G),eC=(0,o.useRef)(null),e_=(0,o.useRef)(null),eT=(0,o.useRef)(null),eS=(0,o.useRef)(0),eE=(0,o.useCallback)(()=>{ev(e=>{let t=!e;return!function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:365,l=new Date(Date.now()+864e5*r).toUTCString();document.cookie="".concat(e,"=").concat(t,"; expires=").concat(l,"; path=/")}("serpdino_sidebar_collapsed",String(t)),Q("sidebar.collapse.toggled",{collapsed:t}),$&&$(t),t})},[$,Q]),eP=(0,o.useCallback)(async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!Y||"loading"===W)return;fetch("/api/user/capacity").then(e=>e.json()).then(e=>{null!=e.total&&ey(e.total),ek(e.plan===M.Ac.FREE)}).catch(()=>{});let r=null==(e=Y.user)?void 0:e._id;if(t||!eN.current||eC.current!==r)try{es(!0);let[e,t]=await Promise.all([fetch("/api/projects/folders"),fetch("/api/projects")]),l=await e.json(),a=await t.json();l.success&&et(l.folders),a.success&&el(a.projects),eN.current=!0,eC.current=r}catch(e){console.error("Error loading data:",e)}finally{es(!1)}},[Y,W]);(0,o.useEffect)(()=>{eT.current=eP},[eP]),(0,o.useEffect)(()=>{var e;G&&(null==Y||null==(e=Y.user)?void 0:e._id)&&(eC.current=Y.user._id)},[G,null==Y||null==(p=Y.user)?void 0:p._id]),(0,o.useEffect)(()=>{var e;if("authenticated"===W&&(null==Y||null==(e=Y.user)?void 0:e._id)){let e=Y.user._id;eC.current!==e&&(eN.current=!1,eP(!1))}},[null==Y||null==(_=Y.user)?void 0:_._id,W,eP]);let eM=(0,o.useCallback)(()=>{eP(!0)},[eP]);(0,o.useEffect)(()=>{e_.current=eM},[eM]),(0,o.useEffect)(()=>{S&&S(()=>{e_.current&&e_.current()})},[S]),(0,o.useEffect)(()=>{B&&B>0&&B!==eS.current&&(eS.current=B,F?el(e=>e.map(e=>e._id===F._id?{...e,...F}:e)):eP(!0))},[B,eP,F]);let eA=(0,o.useCallback)(e=>{let t=new Set(eo);t.has(e)?t.delete(e):t.add(e),en(t)},[eo]),eL=(0,o.useCallback)(()=>{X("folder-create","opened",{origin:"sidebar"}),em(null),ec(!0)},[X]),ez=(0,o.useCallback)(()=>{X("project-create","opened",{origin:"sidebar"}),ep(!0)},[X]),eI=(0,o.useCallback)((e,t)=>{e.stopPropagation(),X("folder-edit","opened",{folderId:null==t?void 0:t._id,name:null==t?void 0:t.name}),em(t),ec(!0)},[X]),eR=(0,o.useCallback)(async e=>{try{var t,r,l,a;if(eu){let l=await fetch("/api/projects/folders?id=".concat(e._id),{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name})});if(await Z(l))return;let a=await l.json();a.success?(et(t=>t.map(t=>t._id===e._id?a.folder:t)),Q("folder.edit.saved",{folderId:null==(t=a.folder)?void 0:t._id,name:null==(r=a.folder)?void 0:r.name})):J.error(a.message||H("error.onsave.folder"))}else{let t=await fetch("/api/projects/folders",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e.name})});if(await Z(t))return;let r=await t.json();r.success?(et(e=>[...e,r.folder]),Q("folder.created",{folderId:null==(l=r.folder)?void 0:l._id,name:null==(a=r.folder)?void 0:a.name})):J.error(r.message||H("error.onsave.folder"))}}catch(e){J.error(H("error.onsave.folder"))}},[eu,H,Z,Q]),eV=(0,o.useCallback)(async e=>{try{var t;let r=(null==(t=ee.find(t=>t._id===e))?void 0:t.name)||null,l=await fetch("/api/projects/folders?id=".concat(e),{method:"DELETE"});if(await Z(l))return;let a=await l.json();a.success?(a.folders?et(a.folders):et(t=>t.filter(t=>
1t._id!==e)),a.projects?el(a.projects):eP(!0),Q("folder.deleted",{folderId:e,name:r})):J.error(a.message||H("error.ondelete.folder"))}catch(e){J.error(H("error.ondelete.folder"))}},[eP,H,Z,Q]),eB=(0,o.useCallback)(async e=>{try{let l=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(await Z(l))return;let a=await l.json();if(a.success){var t,r;eP(!0),Q("project.created",{projectId:null==(t=a.project)?void 0:t._id,projectName:null==(r=a.project)?void 0:r.name,origin:"sidebar"}),O&&a.project&&O(a.project),U.push("/dashboard/project/".concat(a.project._id))}else J.error(a.message||H("error.onsave.project"))}catch(e){J.error(H("error.onsave.project"))}},[eP,H,O,Q,U]),eO=(0,o.useCallback)(e=>{var t;let{project:r,size:a="md"}=e,s={sm:"w-5 h-5 text-[10px]",md:"w-7 h-7 text-[11px]",lg:"w-8 h-8 text-[12px]"},o=s[a]||s.md,n=(0,P.Y)(r);return n?(0,l.jsx)("div",{className:"".concat(o.split(" ").slice(0,2).join(" ")," rounded-md flex-shrink-0 flex items-center justify-center overflow-hidden bg-[var(--color-surface-2)]"),children:(0,l.jsx)("img",{src:n,alt:"",className:"w-full h-full object-cover",onError:e=>{e.target.style.display="none"}})}):(0,l.jsx)("div",{className:"".concat(o," rounded-md flex-shrink-0 bg-[var(--color-surface-3)] flex items-center justify-center font-medium text-[var(--color-text-tertiary)] uppercase"),children:null==(t=r.name)?void 0:t.charAt(0)})},[]),eF=(0,o.useCallback)(e=>{var t,r;let{project:s,indent:o=!1}=e,n=T===s._id;return ef?(0,l.jsx)(m.A,{content:s.name,placement:"right",children:(0,l.jsx)(u(),{href:"/dashboard/project/".concat(s._id),className:"block",onClick:()=>{Q("sidebar.project.clicked",{projectId:s._id,projectName:s.name}),null==q||q()},children:(0,l.jsx)("div",{className:"\n                            p-1.5 flex items-center justify-center rounded-md transition-all duration-150\n                            ".concat(n?"bg-[var(--color-bg-hover)]":"hover:bg-[var(--color-bg-hover)]","\n                        "),children:(0,l.jsx)(eO,{project:s,size:"sm"})})})}):(0,l.jsx)(u(),{href:"/dashboard/project/".concat(s._id),className:"block group",onClick:()=>{Q("sidebar.project.clicked",{projectId:s._id,projectName:s.name}),null==q||q()},children:(0,l.jsxs)("div",{className:"\n                    flex items-center gap-2.5 py-1.5 px-2 rounded-md transition-all duration-150\n                    ".concat(n?"bg-[var(--color-bg-hover)]":"hover:bg-[var(--color-bg-hover)]","\n                "),children:[(0,l.jsx)(eO,{project:s,size:"sm"}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,l.jsxs)("div",{className:"text-[13px] leading-tight tracking-tight flex items-baseline transition-colors\n                            ".concat(n?"text-[var(--color-text-primary)] font-semibold":"text-[var(--color-text-primary)]"),children:[(0,l.jsx)("span",{className:"truncate",children:s.name}),(0,a.r)(s)>0&&(0,l.jsxs)("span",{className:"flex-shrink-0 font-normal text-[var(--color-text-muted)]",children:["\xa0","\xb7 ",(0,a.r)(s)]})]}),(0,l.jsx)("div",{className:"text-[11px] text-[var(--color-text-muted)] transition-colors",children:"local"===s.type?(0,l.jsxs)("span",{className:"flex items-center gap-1 min-w-0",children:[(0,l.jsx)("img",{src:"/images/location.png",alt:"",className:"w-3 h-3 flex-shrink-0 object-contain"}),(0,l.jsx)("span",{className:"truncate",children:(null==(t=s.business)?void 0:t.website)?s.business.website.replace(/^https?:\/\//,"").replace(/\/$/,""):(null==(r=s.business)?void 0:r.address)||""})]}):"llm"===s.type?(0,l.jsxs)("span",{className:"flex items-center gap-1 min-w-0",children:[(0,l.jsx)("span",{className:"px-1 rounded text-[9px] font-bold flex-shrink-0 bg-[var(--color-surface-3)] text-[var(--color-text-tertiary)]",children:"AI"}),(0,l.jsx)("span",{className:"truncate",children:s.domain})]}):"monitor"===s.type?(0,l.jsxs)("span",{className:"flex items-center gap-1 min-w-0",children:[(0,l.jsx)("span",{className:"px-1 rounded text-[9px] font-bold flex-shrink-0 bg-[var(--color-surface-3)] text-[var(--color-text-tertiary)]",children:"MON"}),(0,l.jsx)("span",{className:"truncate",children:s.domain})]}):(0,l.jsx)("span",{className:"block truncate",children:s.domain})})]})]})})},[T,ef,eO,q,Q]),e$=(0,o.useCallback)(e=>{let{folder:t,projects:r}=e,a=eo.has(t._id),s=ex===t._id,o=r.length;return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 py-1 px-2 rounded-md cursor-pointer transition-all duration-150 hover:bg-[var(--color-bg-hover)]",onClick:()=>eA(t._id),onMouseEnter:()=>eh(t._id),onMouseLeave:()=>eh(null),children:[(0,l.jsx)("span",{className:"text-[var(--color-text-muted)] flex-shrink-0",children:a?(0,l.jsx)(f.V,{className:"w-3.5 h-3.5"}):(0,l.jsx)(v.r,{className:"w-3.5 h-3.5"})}),(0,l.jsx)("span",{className:"text-[10px] text-[var(--color-text-muted)] tabular-nums",children:o}),(0,l.jsx)("span",{className:"flex-1 text-[12px] font-semibold text-[var(--color-text-secondary)]",children:t.name}),(0,l.jsx)("button",{onClick:e=>eI(e,t),className:"p-0.5 rounded hover:bg-[var(--color-surface-3)] transition-opacity ".concat(s?"opacity-100":"opacity-0"),children:(0,l.jsx)(b.G,{className:"w-3.5 h-3.5 text-[var(--color-text-muted)]"})})]}),!a&&r.length>0&&(0,l.jsx)("div",{className:"ml-[15px] pl-2.5 border-l-2 border-[var(--color-border-medium)] space-y-0.5",children:r.map(e=>(0,l.jsx)(eF,{project:e},e._id))})]})},[eo,ex,eA,eI,eF]),eK=(0,o.useMemo)(()=>{let e=(0,A.og)(er),t=e.reduce((e,t)=>
1e+t.booked,0);return{projects:(null==er?void 0:er.length)||0,keywords:e.reduce((e,t)=>e+t.keywordCount,0),booked:t,total:ej,available:Math.max(0,ej-t)}},[er,ej]),eq=(0,o.useMemo)(()=>{if(ea)return(0,l.jsx)("div",{className:"flex items-center justify-center py-6",children:(0,l.jsx)("div",{className:"text-[12px] text-[var(--color-text-muted)]",children:ef?"...":H("loading.data.msg")})});let e=er.filter(e=>!e.folder),t=e=>er.filter(t=>{var r;return(null==(r=t.folder)?void 0:r._id)===e});if(!(ee.length>0||e.length>0))return(0,l.jsx)("div",{className:"flex flex-col items-center justify-center py-6 px-3",children:(0,l.jsx)("div",{className:"text-[12px] text-[var(--color-text-muted)] text-center",children:ef?"":H("empty.projects.msg")})});if(ef){let r=[];return ee.forEach(e=>{t(e._id).forEach(e=>r.push(e))}),e.forEach(e=>r.push(e)),(0,l.jsx)("div",{className:"space-y-0.5",children:r.map(e=>(0,l.jsx)(eF,{project:e},e._id))})}return(0,l.jsxs)("div",{className:"space-y-0.5",children:[ee.map(e=>(0,l.jsx)(e$,{folder:e,projects:t(e._id)},e._id)),e.length>0&&(0,l.jsxs)("div",{className:ee.length>0?"pt-2 mt-2 border-t border-[var(--color-border)]":"",children:[ee.length>0&&(0,l.jsx)("div",{className:"text-[10px] text-[var(--color-text-muted)] uppercase tracking-wider px-2 mb-1",children:H("projects.without.folder")}),(0,l.jsx)("div",{className:"space-y-0.5",children:e.map(e=>(0,l.jsx)(eF,{project:e},e._id))})]})]})},[ea,ee,er,eo,eF,e$,H,ef]),eD=(null==U?void 0:U.pathname)==="/dashboard/keyword-research",eG=h.du.purple,eH=e=>"color-mix(in srgb, ".concat(eG," ").concat(e,"%, transparent)");ef?(m.A,H("keyword_research.sidebar.label"),u(),eH(eD?18:10),g.Z):(u(),eH(eD?20:10),eH(22),g.Z,H("keyword_research.sidebar.label"),eH(28),H("keyword_research.sidebar.subtitle"));let eU=(0,o.useMemo)(()=>{var e,t=(null==F?void 0:F._id)===T?null==F?void 0:F.type:null==(e=er.find(e=>e._id===T))?void 0:e.type;let r=(0,a.y)(t).sections;return R.filter(e=>r.includes(e.id))},[F,T,er]),eY=T?ef?(0,l.jsx)("div",{className:"rounded-xl bg-white p-1 mb-2 flex flex-col gap-0.5",children:eU.map(e=>{let{id:t,icon:r,labelKey:a,fallback:s}=e;return(0,l.jsx)(m.A,{content:H(a)||s,placement:"right",delay:200,closeDelay:0,children:(0,l.jsx)("button",{type:"button","data-ts-btn":!0,onClick:()=>V(t,Q),className:"p-2 flex items-center justify-center rounded-md bg-transparent hover:bg-[var(--color-bg-hover)] transition-colors border-0",children:(0,l.jsx)(r,{className:"w-4 h-4 text-[var(--color-text-primary)]"})})},t)})}):(0,l.jsxs)("div",{className:"rounded-xl bg-white mb-2",children:[(0,l.jsx)("div",{className:"flex items-center px-3 py-2",children:(0,l.jsx)("h3",{className:"text-[13px] font-semibold text-[var(--color-text-primary)]",children:H("sidebar.sections.label")})}),(0,l.jsx)("div",{className:"flex flex-col gap-0.5 px-1.5 pb-1.5",children:eU.map(e=>{let{id:t,icon:r,labelKey:a,fallback:s}=e;return(0,l.jsxs)("button",{type:"button","data-ts-btn":!0,onClick:()=>V(t,Q),className:"flex items-center gap-2 px-2 py-1.5 rounded-md bg-transparent hover:bg-[var(--color-bg-hover)] transition-colors text-left border-0",children:[(0,l.jsx)(r,{className:"w-4 h-4 shrink-0 text-[var(--color-text-primary)]"}),(0,l.jsx)("span",{className:"text-[13px] truncate text-[var(--color-text-primary)]",children:H(a)||s})]},t)})})]}):null;return(0,l.jsxs)(l.Fragment,{children:[!ef&&eK&&(()=>{let e=eK.total>0?Math.min(100,Math.round(eK.booked/eK.total*100)):0,t=eK.booked>eK.total;return(0,l.jsx)("div",{className:"rounded-xl bg-white px-3 pt-2.5 pb-3 mb-2 flex flex-col gap-2.5",children:(0,l.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,l.jsxs)("div",{className:"flex items-center",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,l.jsx)("h3",{className:"text-[13px] font-semibold text-[var(--color-text-tertiary)]",children:H(ew?"capacity.label_free":"capacity.label")}),(0,l.jsx)(m.A,{content:H("capacity.view_details"),placement:"top",delay:300,closeDelay:0,children:(0,l.jsx)("button",{onClick:()=>{X("capacity-details","opened"),eg(!0)},className:"flex items-center justify-center w-3.5 h-3.5 rounded-full hover:bg-white/[0.08] transition-colors",children:(0,l.jsx)(j.G,{className:"w-3.5 h-3.5 text-[var(--color-text-muted)] hover:text-[var(--color-text-secondary)] transition-colors"})})})]}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5 ml-auto",children:[(0,l.jsxs)("span",{className:"text-[11px] text-[var(--color-text-secondary)] tabular-nums",children:[(0,l.jsx)("span",{className:"font-bold text-[var(--color-text-secondary)]",children:eK.booked.toLocaleStr
1ing()}),(0,l.jsx)("span",{className:"text-[var(--color-text-muted)] mx-0.5",children:"/"}),(0,l.jsx)("span",{children:eK.total.toLocaleString()})]}),(0,l.jsx)("span",{className:"text-[var(--color-text-muted)] text-[11px]",children:"\xb7"}),(0,l.jsxs)("span",{className:"text-[11px] font-bold tabular-nums",style:{color:t?"var(--color-accent-primary)":"var(--color-text-primary)"},children:[e,"%"]})]})]}),(0,l.jsx)("div",{className:"w-full h-[6px] rounded-full overflow-hidden",style:{background:"rgba(0,0,0,0.09)"},children:(0,l.jsx)("div",{className:"h-full rounded-full transition-all duration-500",style:{width:"".concat(Math.min(e,100),"%"),background:t?"var(--color-accent-primary)":e>80?"var(--color-warning-fg)":"var(--color-border-medium)"}})}),e>=80&&(0,l.jsxs)("a",{href:"/dashboard/settings",className:"flex items-center gap-1.5 mt-1.5 px-2 py-1.5 rounded-lg transition-colors",style:{background:"rgba(252, 152, 103, 0.10)"},children:[(0,l.jsx)(y.i,{className:"w-3 h-3 flex-shrink-0",style:{color:"var(--color-warning-fg)"}}),(0,l.jsx)("span",{className:"text-[10px] font-medium",style:{color:"var(--color-warning-fg)"},children:H("capacity.upgrade_hint")})]})]})})})(),eY,(0,l.jsxs)("div",{className:"relative flex flex-col rounded-xl bg-white min-h-[250px] flex-1 transition-all duration-200 group/sidebar ".concat(ef?"w-[52px] sidebar-collapsed":"w-full"),children:[!ef&&(0,l.jsxs)("div",{className:"flex items-center justify-between px-3 py-2",children:[(0,l.jsx)("h3",{className:"text-[13px] font-semibold text-[var(--color-text-primary)]",children:H("sidebar.projects.label")}),(0,l.jsxs)("div",{className:"flex items-center gap-1",children:[(0,l.jsx)(m.A,{content:H("folder.create.label"),placement:"bottom",children:(0,l.jsx)("div",{children:(0,l.jsx)(x.K,{variant:"success",size:"sm",onClick:eL,children:(0,l.jsx)(w.O,{className:"w-4 h-4"})})})}),(0,l.jsx)(x.A,{size:"sm",variant:"success",onClick:ez,startContent:(0,l.jsx)(k.I,{className:"w-4 h-4"}),children:H("project.add.label")})]})]}),ef&&(0,l.jsxs)("div",{className:"flex flex-col gap-0.5 px-1.5 pt-1.5 pb-1",children:[(0,l.jsx)(m.A,{content:H("folder.create.label"),placement:"right",children:(0,l.jsx)("button",{onClick:eL,className:"p-2 bg-[var(--color-surface-2)] hover:bg-[var(--color-surface-3)] flex items-center justify-center transition-colors rounded-md",children:(0,l.jsx)(w.O,{className:"w-4 h-4 text-[var(--color-accent-primary)]"})})}),(0,l.jsx)(m.A,{content:H("project.add.label"),placement:"right",children:(0,l.jsx)("button",{onClick:ez,className:"p-2 bg-[var(--color-surface-2)] hover:bg-[var(--color-surface-3)] flex items-center justify-center transition-colors rounded-md",children:(0,l.jsx)(k.I,{className:"w-4 h-4 text-[var(--color-accent-primary)]"})})})]}),(0,l.jsx)("div",{className:"flex-1 overflow-y-auto py-1 ".concat(ef?"px-1":"px-1.5"),children:eq}),!D&&(0,l.jsx)(m.A,{content:ef?H("sidebar.expand")||"Expand":H("sidebar.collapse")||"Collapse",placement:"right",children:(0,l.jsx)("button",{onClick:eE,className:"absolute top-12 -right-3 w-6 h-10 rounded-lg flex items-center justify-center opacity-0 group-hover/sidebar:opacity-100 transition-opacity duration-200 hover:opacity-100",style:{background:"var(--color-bg-hover)"},children:ef?(0,l.jsx)(N,{className:"w-3.5 h-3.5 text-[var(--color-text-secondary)]"}):(0,l.jsx)(C,{className:"w-3.5 h-3.5 text-[var(--color-text-secondary)]"})})})]}),(0,l.jsx)(I,{showPopup:eb,setShowPopup:eg,projects:er,tokenLimit:ej,isFree:ew}),(0,l.jsx)(L,{showPopup:ei,setShowPopup:ec,folderData:eu,onSave:eR,onDelete:eV,isEdit:!!eu}),(0,l.jsx)(z,{showPopup:ed,setShowPopup:ep,folders:ee,onSave:eB})]})}},19165:(e,t,r)=>{r.d(t,{G:()=>a});var l=r(37876);let a=e=>{let{className:t="",...r}=e;return(0,l.jsxs)("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,l.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25z"}),(0,l.jsx)("path",{d:"M20.71 7.04a1 1 0 000-1.41l-2.34-2.34a1 1 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z",opacity:"0.6"})]})}},19446:(e,t,r)=>{r.d(t,{r:()=>o,y:()=>s});let l={serp:{keywordTracking:!0,serpTracking:!0,localTracking:!1,llmTracking:!1,monitorTracking:!1,sections:["section-keywords","section-pages","section-sim
1ilarweb","section-competitors","section-pagespeed"]},local:{keywordTracking:!0,serpTracking:!1,localTracking:!0,llmTracking:!1,monitorTracking:!1,sections:["section-keywords","section-similarweb","section-pagespeed"]},llm:{keywordTracking:!1,serpTracking:!1,localTracking:!1,llmTracking:!0,monitorTracking:!1,sections:["section-llm","section-llm-brands","section-similarweb","section-competitors","section-pagespeed"]},monitor:{keywordTracking:!1,serpTracking:!1,localTracking:!1,llmTracking:!1,monitorTracking:!0,sections:["section-monitor"]}},a={keywordTracking:!1,serpTracking:!1,localTracking:!1,llmTracking:!1,monitorTracking:!1,sections:[]};function s(e){return l[e||"serp"]||a}function o(e){var t;return(null==e?void 0:e.type)==="llm"?e.llmPromptCount||0:(null==e?void 0:e.type)==="monitor"?e.pageCount||0:(null==e||null==(t=e.keywords)?void 0:t.length)||0}},19989:(e,t,r)=>{r.d(t,{A:()=>a});var l=r(37876);let a=e=>{let{className:t="",...r}=e;return(0,l.jsxs)("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,l.jsx)("path",{d:"M3 5a2 2 0 012-2h4.17a2 2 0 011.42.59l1.41 1.41H19a2 2 0 012 2V9H3V5z",opacity:"0.5"}),(0,l.jsx)("path",{d:"M3 9h18v10a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"})]})}},24622:(e,t,r)=>{r.d(t,{A:()=>p});var l=r(37876),a=r(14232),s=r(98477),o=r(62002),n=r(19989),i=r(72732),c=r(54684),d=r(2336);function p(e){let{currentProjectId:t=null,refreshTrigger:r=null,updatedProject:p=null,onCollapseChange:u=null,onProjectCreated:m=null,initialSidebarData:x=null}=e,{t:h}=(0,o.Bd)("dashboard"),[f,v]=(0,a.useState)(!1);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("button",{onClick:()=>v(!0),className:"mobile-sidebar-btn items-center justify-between w-full p-4 rounded-xl bg-white",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)(n.A,{className:"w-5 h-5",style:{color:"var(--color-accent-primary)"}}),(0,l.jsx)("span",{className:"text-sm font-medium",style:{color:"var(--color-text-primary)"},children:h("sidebar.projects.label")})]}),(0,l.jsx)(i.V,{className:"w-5 h-5",style:{color:"var(--color-text-secondary)"}})]}),f&&"undefined"!=typeof document&&(0,s.createPortal)((0,l.jsx)("div",{className:"panel-parent overflow-y-auto",style:{background:"var(--color-bg-primary)",position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:9999,display:"block",minHeight:"auto"},children:(0,l.jsxs)("div",{className:"p-3",children:[(0,l.jsx)("div",{className:"flex justify-end mb-2",children:(0,l.jsx)("button",{onClick:()=>v(!1),className:"p-2 rounded-lg transition-colors",style:{background:"var(--color-bg-tertiary)"},children:(0,l.jsx)(c.l,{className:"w-5 h-5",style:{color:"var(--color-text-secondary)"}})})}),(0,l.jsx)(d.A,{currentProjectId:t,refreshTrigger:r,updatedProject:p,onCollapseChange:u,onProjectCreated:m,initialCollapsed:!1,onNavigate:()=>v(!1),hideCollapseButton:!0,initialSidebarData:x})]})}),document.body)]})}},28370:(e,t,r)=>{r.d(t,{C:()=>u,_Q:()=>m});var l=r(37876),a=r(14232),s=r(62002),o=r(48230),n=r.n(o),i=r(97616),c=r(61877),d=r(51512);let p=(0,a.createContext)(null);function u(e){let{children:t}=e,{t:r}=(0,s.Bd)("dashboard"),[o,u]=(0,a.useState)(null),m=(0,a.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;u(e||"")},[]),x=(0,a.useCallback)(()=>u(null),[]),h=(0,a.useCallback)(async e=>{if(403===e.status)try{let t=await e.clone().json();if(t.planRequired)return m(t.message),!0}catch(e){}return!1},[m]),f=(0,a.useCallback)(async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=await fetch(e,t);return{blocked:await h(r),response:r}},[h]);return(0,l.jsxs)(p.Provider,{value:{showUpgradeModal:m,handleApiResponse:h,fetchWithPlanCheck:f},children:[t,(0,l.jsxs)(i.Ay,{isOpen:null!==o,onClose:x,placement:"center",classNames:{backdrop:"bg-black/60 backdrop-blur-sm",base:"bg-[var(--color-bg-secondary)] border border-[rgba(255,255,255,0.08)]",header:"border-b border-[rgba(255,255,255,0.08)]",body:"py-6",footer:"border-t border-[rgba(255,255,255,0.08)]"},children:[(0,l.jsxs)(i.rQ,{className:"flex items-center gap-3",children:[(0,l.jsx)("div",{className:"w-10 h-10 rounded-lg bg-[var(--color-accent-bg)] flex items-center justify-center",children:(0,l.jsx)(d.Z,{className:"w-5 h-5 text-[var(--color-accent-primary)]"})}),(0,l.jsx)("span",{className:"font-semibold text-[var(--color-text-primary)]",children:r("plan_gate.title")})]}),(0,l.jsx)(i.cw,{children:(0,l.jsx)("p",{className:"text-[var(--color-text-secondary)]",children:o||r("plan_gate.description")})}),(0,l.jsxs)(i.jl,{children:[(0,l.jsx)(c.A,{variant:"flat",onClick:x,className:"bg-[var(--color-bg-tertiary)]",children:r("cancel")}),(0,l.jsx)(n(),{href:"/dashboard/billing",children:(0,l.jsx)(c.A,{onClick:x,style:{background:"var(--gradient-accent)",color:"white"},children:r("plan_gate.cta")})})]})]})]})}function m(){let e=(0,a.useContext)(p);if(!e)throw Error("usePlanGate must be used within a PlanGateProvider");return e}},53649:(e,t,r)=>{r.d(t,{O:()=>a});var l=r(37876);let a=e=>{let{className:t="",...r}=e;
1return(0,l.jsxs)("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,l.jsx)("path",{d:"M3 5a2 2 0 012-2h4.17a2 2 0 011.42.59l1.41 1.41H19a2 2 0 012 2V9H3V5z",opacity:"0.45"}),(0,l.jsx)("path",{d:"M3 9h18v10a2 2 0 01-2 2H5a2 2 0 01-2-2V9z",opacity:"0.3"}),(0,l.jsx)("path",{d:"M12 12v6M9 15h6",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round"})]})}},72732:(e,t,r)=>{r.d(t,{V:()=>a});var l=r(37876);let a=e=>{let{className:t="",...r}=e;return(0,l.jsxs)("svg",{className:t,viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...r,children:[(0,l.jsx)("path",{d:"M9.29 18.71a1 1 0 010-1.42L14.59 12 9.29 6.71a1 1 0 111.42-1.42l6 6a1 1 0 010 1.42l-6 6a1 1 0 01-1.42 0z"}),(0,l.jsx)("path",{d:"M9.29 18.71a1 1 0 010-1.42L14.59 12 9.29 6.71a1 1 0 111.42-1.42l6 6a1 1 0 010 1.42l-6 6a1 1 0 01-1.42 0z",opacity:"0.3"})]})}},91747:(e,t,r)=>{r.d(t,{_:()=>i});var l=r(14232);r(37876);var a=e=>!e.firstChild||e.firstChild.offsetParent===e,s=null;"undefined"!=typeof CSS&&CSS.supports&&(CSS.supports("position","sticky")?s="sticky":CSS.supports("position","-webkit-sticky")&&(s="-webkit-sticky"));var o=!1;try{let e=Object.defineProperty({},"passive",{get(){o={passive:!0}}}),t=()=>{};window.addEventListener("testPassive",t,e),window.removeEventListener("testPassive",t,e)}catch(e){}var n=e=>{let{el:t,onChange:r,unsubs:l,measure:a}=e;if(t===window){let e=()=>({top:0,left:0,height:window.innerHeight,width:window.innerWidth}),t=a(e()),s=()=>{Object.assign(t,a(e())),r()};return window.addEventListener("resize",s,o),l.push(()=>window.removeEventListener("resize",s)),t}{let e=a(t.getBoundingClientRect()),s=new ResizeObserver(()=>{Object.assign(e,a(t.getBoundingClientRect())),r()});return s.observe(t),l.push(()=>s.disconnect()),e}},i=({offsetTop:e=0,offsetBottom:t=0,bottom:r=!1}={})=>{let[i,c]=(0,l.useState)(null);return(0,l.useEffect)(()=>{if(!i||!s)return;let l=[];return((e,t,r)=>{let{bottom:l,offsetBottom:i,offsetTop:c}=r,d=(e=>{let t=e;for(;t=t.parentElement;){let e=getComputedStyle(t,null).getPropertyValue("overflow-y");if(t===document.body)break;if("auto"===e||"scroll"===e||"overlay"===e)return t}return window})(e),p=!1,u=()=>{p||requestAnimationFrame(()=>{let t=h();if(t!==k)N(t);else if(1!==t||l){if(2===t){let{height:t,offsetTop:r}=v,{height:a,naturalTop:s}=j,{height:o}=y,n=Math.max(0,r+m+t-(s+o+i));if(l){let t=Math.max(0,a-o-n);e.style.bottom=`${t}px`}else e.style.top=`${n}px`}}else{let{height:t}=v,{height:r}=y;e.style.top=`${t-r-i}px`}p=!1}),p=!0},m=d===window?window.scrollY:d.scrollTop,x=e=>{let{offsetTop:t,height:r}=v,{naturalTop:l}=j,{height:a}=y;return e+t+r>=l+a+w+i},h=()=>{let{height:e}=v,{height:t}=y;return t+c+i<=e?3:x(m)?1:2},f=d!==window&&a(d),v=n({el:d,onChange:u,unsubs:t,measure:({height:e,top:t})=>({height:e,offsetTop:f?t:0})}),b=(e=>{let t=e.parentElement;for(;t&&"contents"===getComputedStyle(t,null).getPropertyValue("display");)t=t.parentElement;return t||window})(e),g=b===window?{top:0,bottom:0}:(e=>{let t=getComputedStyle(e,null);return{top:parseInt(t.getPropertyValue("padding-top"),10),bottom:parseInt(t.getPropertyValue("padding-bottom"),10)}})(b),j=n({el:b,onChange:u,unsubs:t,measure:({height:e})=>({height:e-g.top-g.bottom,naturalTop:b===window?0:((e,t)=>{let r=e,l=0;a(t)||(l+=e.offsetTop-t.offsetTop,t=e.offsetParent,l+=-e.offsetTop);do l+=r.offsetTop,r=r.offsetParent;while(r&&r!==t);return l})(b,d)+g.top+v.offsetTop})}),y=n({el:e,onChange:u,unsubs:t,measure:({height:e})=>({height:e})}),w=0,k=h(),N=t=>{let r=k;if(k=t,2===r&&(w=-1),3===t){e.style.position=s,l?e.style.bottom=`${i}px`:e.style.top=`${c}px`;return}let{height:a,offsetTop:o}=v,{height:n,naturalTop:d}=j,{height:p}=y;if(2===t)if(e.style.position="relative",w=0===r?Math.max(0,o+m-d+c):Math.max(0,o+m+a-(d+p+i)),l){let t=Math.max(0,n-p-w);e.style.bottom=`${t}px`}else e.style.top=`${w}px`;else e.style.position=s,1===t?l?e.style.bottom=`${i}px`:e.style.top=`${a-p-i}px`:l?e.style.bottom=`${a-p-i}px`:e.style.top=`${c}px`};N(k);let C=e=>{if(e===m)return;let t=e-m;if(m=e,3===k)return;let{offsetTop:r,height:l}=v,{naturalTop:a,height:s}=j,{height:o}=y;if(t>0)if(0===k){if(e+r+c>a){let t=Math.max(0,r+m-a+c);e+r+l<=a+o+t+i?N(2):N(1)}}else 2===k&&x(e)&&N(1);else if(1===k){if(r+e+l<a+s+i){let t=Math.max(0,r+m+l-(a+o+i));r+e+c>=a+t?N(2):N(0)}}else 2===k&&r+e+c<a+w&&N(0)},_=d===window?()=>C(window.scrollY):()=>C(d.scrollTop);d.addEventListener("scroll",_,o),d.addEventListener("mousewheel",_,o),t.push(()=>d.removeEventListener("scroll",_),()=>d.removeEventListener("mousewheel",_))})(i,l,{offsetBottom:t,offsetTop:e,bottom:r}),()=>
1{l.forEach(e=>e())}},[i,t,e,r]),c}},94195:(e,t,r)=>{r.d(t,{$K:()=>a,og:()=>n,om:()=>s,q1:()=>o});var l=r(37467);let a={daily:"project.frequency.daily",every3days:"project.frequency.every3days",weekly:"project.frequency.weekly",biweekly:"project.frequency.biweekly",ondemand:"project.frequency.ondemand",custom:"project.frequency.custom"};function s(e){var t;return"llm"===e.type?{count:e.llmDimensionCount||0,perUpdate:(0,l.R0)(e),kind:"llm",promptCount:e.llmPromptCount||0}:"monitor"===e.type?{count:e.pageCount||0,perUpdate:(0,l.R0)(e),kind:"monitor"}:{count:(null==(t=e.keywords)?void 0:t.length)||0,perUpdate:(0,l.R0)(e),kind:"local"===e.type?"local":"serp"}}function o(e){let t=2===(0,l.vv)(e)?" \xd72":"";if("custom"===e.updateFrequency){var r;let a=(null==(r=e.customUpdateDays)?void 0:r.length)||0;return"".concat(a,"d/wk \xd7 ").concat((l.x_/7).toFixed(1)).concat(t)}let a=l.V2[e.updateFrequency];return void 0===a||0===a?"0":"".concat(a%1==0?a:a.toFixed(1)).concat(t)}function n(e){return e&&0!==e.length?e.map(e=>{let t=s(e),r=(0,l.fc)(e)*(0,l.nf)(e)*(0,l.vv)(e);return{...e,keywordCount:t.count,unitKind:t.kind,unitsPerUpdate:t.perUpdate,multiplier:r,booked:(0,l.IZ)(e)}}).sort((e,t)=>t.booked-e.booked):[]}}}]);

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.