1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1432],{8065:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/analytics",function(){return s(41709)}])},39593:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var a=s(37876);s(14232);var r=s(10825),i=s(63311);let l=e=>{let{onStartTour:t}=e,{isExpanded:s,setIsExpanded:l}=(0,i.c)();return(0,a.jsxs)("div",{className:"hidden sm:flex justify-between items-center w-full px-6 pt-4 rounded-2xl relative",children:[(0,a.jsx)("div",{className:"flex items-center gap-2",children:(0,a.jsx)("img",{className:"relative h-10",alt:"Back",src:"/images/dashboard_logo.svg"})}),(0,a.jsx)("div",{className:"flex items-center gap-3",children:t&&(0,a.jsx)("button",{className:"p-2 bg-[#1F1F1F] rounded-full border-2 border-white/30 shadow-lg hover:bg-[#2a2a2a] transition-colors",onClick:t,"aria-label":"Start tour",title:"Start guided tour",children:(0,a.jsx)(r.A,{size:20,color:"white"})})})]})}},41709:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>K});var a=s(37876),r=s(14232),i=s(60737),l=s(80448),n=s(5068),o=s(26101),d=s(3381),c=s(50665),m=s(58011),x=s(46293),h=s(47798),p=s(30860),g=s(28113),u=s(93336),f=s(93990),b=s(74253),v=s(63311),w=s(39593),j=s(7346),N=s(59199),y=s(54551),k=s(95161),_=s(81949);let F={token:{colorBgContainer:"transparent",colorText:"white",colorBorder:"transparent",fontFamily:"Fira, sans-serif",borderRadius:0},components:{Select:{borderRadius:12,controlHeight:48,colorBgDropdown:"rgba(255, 106, 0, 0.1)",colorTextDropdown:"white",colorTextPlaceholder:"rgba(255, 255, 255, 0.5)",colorBgHover:"rgba(255, 106, 0, 0.2)",borderRadiusLG:12,borderRadiusSM:12,optionSelectedBg:"rgba(255, 106, 0, 0.25)",optionActiveBg:"rgba(255, 106, 0, 0.2)"}}},C=e=>{let{isLoadingUserConfigs:t,selectedConfigId:s,setSelectedConfigId:r,userConfigs:i,selectedPlatform:l,accountDropdownOpen:n,setAccountDropdownOpen:o,refreshUserConfigs:d,showLabel:c=!0}=e;return(0,a.jsx)("div",{children:t?(0,a.jsx)("div",{className:"text-white/70 text-sm",children:"Loading accounts..."}):(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center gap-2 sm:gap-3",children:[c&&(0,a.jsx)("label",{className:"text-white/70 text-sm font-Fira whitespace-nowrap",children:"Select account:"}),(0,a.jsx)(k.Ay,{theme:F,children:(0,a.jsx)("div",{className:"relative w-full",children:(0,a.jsx)(_.A,{value:s||void 0,onChange:e=>{r&&r(e||null)},placeholder:"Select account",options:i.filter(e=>{var t;return(null==(t=e.platform)?void 0:t.toLowerCase())===l.toLowerCase()}).map(e=>({value:e.id,label:e.config_name||e.account_id||e.wa_mobile_number_id||"".concat(e.platform," - ").concat(e.id)})),open:n,onDropdownVisibleChange:o,suffixIcon:n?(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M18 15L12 9L6 15",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M6 9L12 15L18 9",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),popupClassName:"custom-dropdown rounded-xl text-white",className:"fading-border !text-white font-Fira h-[48px] outline-none rounded-xl w-full",style:{background:"radial-gradient(100.17% 110.88% at 26.56% 107.7%, #FF4500 2.29%, #FF6308 50%, #FF4500 100%)"}})})}),(0,a.jsx)("button",{onClick:()=>{d&&d()},className:"text-white/60 hover:text-white text-xs sm:text-sm font-Fira transition-colors whitespace-nowrap",children:"Refresh"})]})})},A={buttonBorder:{content:'""',position:"absolute",inset:0,borderRadius:"12px",padding:"3px",background:"linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%)",WebkitMask:"linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)",WebkitMaskComposite:"xor",maskComposite:"exclude",pointerEvents:"none"}},S=e=>{let{selectedPlatform:t,onPlatformChange:s,userConfigs:r,setSelectedConfigId:i,selectedConfig:l}=e;return(0,a.jsxs)("div",{className:"flex flex-row gap-2 w-full md:w-auto",children:[(0,a.jsxs)("button",{className:"px-3 py-2 md:px-4 md:py-2 font-Fira font-bold text-white text-xs md:text-sm transition-all duration-200 ".concat("instagram"===t?"hover:translate-y-1 hover:shadow-md":"opacity-50"," relative flex-1 md:flex-initial whitespace-nowrap"),style:{background:"instagram"===t?"radial-gradient(100.17% 110.88% at 26.56% 107.7%, #FF4500 2.29%, #FF6308 50%, #FF4500 100%)":"rgba(255, 255, 255, 0.1)",border:"3px solid transparent",borderImageSlice:1,boxShadow:"instagram"===t?"0px 10px 0px 0px #B84D00":"none",borderRadius:"12px",position:"relative",isolation:"isolate"},onClick:()=>{var e;s("instagram");let t=r.filter(e=>{var t;return(null==(t=e.platform)?void 0:t.toLowerCase())==="instagram"});t.length>0&&(!l||(null==(e=l.platform)?void 0:e.toLowerCase())!=="instagram")&&i(t[0].id)},children:["instagram"===t&&(0,a.jsx)("div",{style:A.buttonBorder}),(0,a.jsxs)("div",{className:"flex items-center gap-1 md:gap-2 justify-center",children:[(0,a.jsx)("img",{src:"/images/instagram.svg",alt:"Instagram",className:"w-4 h-4 md:w-5 md:h-5"}),(0,a.jsx)("span",{className:"truncate",children:"INSTAGRAM"})]})]}),(0,a.jsxs)("button",{className:"px-3 py-2 md:px-4 md:py-2 font-Fira font-bold text-white text-xs md:text-sm transition-all duration-200 ".concat("whatsapp"===t?"hover:translate-y-1 hover:shadow-md":"opacity-50"," relative flex-1 md:flex-initial whitespace-nowrap"),style:{background:"whatsapp"===t?"radial-gradient(100.17% 110.88% at 26.56% 107.7%, #FF4500 2.29%, #FF6308 50%, #FF4500 100%)":"rgba(255, 255, 255, 0.1)",border:"3px solid transparent",borderImageSlice:1,boxShadow:"whatsapp"===t?"0px 10px 0px 0px #B84D00":"none",borderRadius:"12px",position:"relative",isolation:"isolate"},onClick:()=>{var e;s("whatsapp");let t=r.filter(e=>{var t;return(null==(t=e.platform)?void 0:t.toLowerCase())==="whatsapp"});t.length>0&&(!l||(null==(e=l.platform)?void 0:e.toLowerCase())!=="whatsapp")&&i(t[0].id)},children:["whatsapp"===t&&(0,a.jsx)("div",{style:A.buttonBorder}),(0,a.jsxs)("div",{className:"flex items-center gap-1 md:gap-2 justify-center",children:[(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-4 h-4 md:w-5 md:h-5",children:[(0,a.jsx)("path",{d:"M14.9582 12.7379C14.7265 12.2252 14.4827 12.2149 14.2623 12.2059C14.0937 12.1986 13.9024 12.1987 13.7099 12.1987L13.6695 12.1987C13.4633 12.1987 13.1281 12.276 12.8449 12.5839C12.8267 12.6036 12.8064 12.6252 12.7844 12.6486C12.4622 12.9907 11.7622 13.7339 11.7622 15.1518C11.7622 16.6562 12.8554 18.1106 13.0218 18.3319L13.0251 18.3364C13.0368 18.3519 13.0591 18.3848 13.0916 18.4327C13.4878 19.0173 15.4035 21.8435 18.3086 22.984C20.6702 23.9111 21.3316 23.8335 21.8557 23.7721C21.9114 23.7655 21.9656 23.7592 22.0201 23.7542C22.5872 23.703 23.8501 23.0096 24.1077 22.2906C24.3656 21.5717 24.3656 20.9555 24.2882 20.8267C24.226 20.7234 24.0801 20.6533 23.8641 20.5495C23.8119 20.5245 23.7556 20.4974 23.6954 20.4675C23.3861 20.3135 21.8654 19.5685 21.5819 19.4658C21.2983 19.3631 21.0921 19.3119 20.8859
119.6202C20.6796 19.928 20.0873 20.6214 19.9068 20.8267C19.7264 21.0325 19.5459 21.0582 19.2367 20.9042C19.1859 20.8788 19.1166 20.8488 19.031 20.8119C18.5952 20.6235 17.7371 20.2528 16.7493 19.376C15.8298 18.5599 15.2091 17.552 15.0287 17.2437C14.8482 16.9359 15.0093 16.769 15.1644 16.6156C15.2568 16.5238 15.3632 16.3951 15.4696 16.2663C15.5232 16.2014 15.5768 16.1365 15.6286 16.0763C15.7596 15.9236 15.8164 15.8081 15.8938 15.6509C15.9075 15.623 15.9219 15.5938 15.9374 15.5628C16.0407 15.3573 15.989 15.1775 15.9118 15.0235C15.8788 14.9579 15.7511 14.6446 15.594 14.2593C15.3819 13.7391 15.1162 13.0876 14.9582 12.7379Z",fill:"currentColor"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18 36C27.9411 36 36 27.9411 36 18C36 8.05887 27.9411 0 18 0C8.05887 0 0 8.05887 0 18C0 27.9411 8.05887 36 18 36ZM6.10003 17.8919C6.09944 19.9876 6.6495 22.0339 7.69541 23.8375L6 30L12.3349 28.3464C14.0871 29.296 16.0502 29.7935 18.0452 29.7937H18.0505C24.6362 29.7937 29.9972 24.4587 30 17.9012C30.0013 14.7237 28.7594 11.7358 26.503 9.48778C24.2471 7.24 21.2468 6.00145 18.05 6C11.4634 6 6.10275 11.3347 6.10003 17.8919Z",fill:"currentColor"})]}),(0,a.jsx)("span",{className:"truncate",children:"WHATSAPP"})]})]})]})},L=e=>{let{selectedPlatform:t,onPlatformChange:s,isLoadingUserConfigs:r,selectedConfigId:i,setSelectedConfigId:l,userConfigs:n,accountDropdownOpen:o,setAccountDropdownOpen:d,refreshUserConfigs:c,selectedConfig:m}=e;return(0,a.jsx)("div",{className:"w-full p-3 sm:p-4 md:p-5 lg:p-6",style:{background:"linear-gradient(90deg, rgba(119, 37, 0, 0.56) 0%, rgba(70, 23, 0, 0.56) 100%)",border:"5px solid rgba(255, 255, 255, 0.25)",borderBottom:"5px solid rgba(255, 255, 255, 0.25)",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",boxShadow:"0px 2px 20px 0px rgba(255, 106, 0, 0.1) inset, 0px 3px 28px 0px rgba(255, 255, 255, 0.25) inset"},children:(0,a.jsxs)("div",{className:"flex flex-col gap-4 sm:gap-5 lg:gap-6",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center w-full",children:[(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)("h2",{className:"text-white text-2xl sm:text-3xl md:text-4xl lg:text-[40px] font-Fira font-bold leading-tight",children:"ANALYTICS DASHBOARD"})}),(0,a.jsx)("div",{className:"w-64",children:(0,a.jsx)(C,{isLoadingUserConfigs:r,selectedConfigId:i,setSelectedConfigId:l,userConfigs:n,selectedPlatform:t,accountDropdownOpen:o,setAccountDropdownOpen:d,refreshUserConfigs:c,showLabel:!1})})]}),(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)("p",{className:"text-white/70 text-xs sm:text-sm font-Fira mt-1 sm:mt-2",children:"Track your Instagram auto-reply performance, engagement metrics, and insights to optimize your automated responses and grow your audience."})}),(0,a.jsx)("div",{className:"w-full md:w-auto md:flex-shrink-0",children:(0,a.jsx)(S,{selectedPlatform:t,onPlatformChange:s,userConfigs:n,setSelectedConfigId:l,selectedConfig:m})})]})})},T=e=>{let{message:t,submessage:s}=e;return(0,a.jsx)("div",{className:"flex items-center justify-center h-64",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)("p",{className:"text-white text-lg mb-2",children:t}),(0,a.jsx)("p",{className:"text-white/60 text-sm",children:s})]})})};var I=s(41180);let R=e=>{var t,s;let{metric:r}=e;return(0,a.jsxs)("div",{className:"bg-[#1A1A1A] rounded-xl overflow-hidden border border-white/10 hover:border-orange-500/30 transition-colors",style:{boxShadow:"0 4px 20px rgba(0, 0, 0, 0.2)"},children:[(0,a.jsx)("div",{className:"p-4 sm:p-3",style:{background:"linear-gradient(135deg, rgba(119, 37, 0, 0.56) 0%, rgba(70, 23, 0, 0.56) 100%)",borderBottom:"1px solid rgba(255, 255, 255, 0.1)"},children:(0,a.jsx)("div",{className:"flex items-center justify-between",children:(0,a.jsxs)("div",{className:"flex items-center gap-3 sm:gap-2",children:[(0,a.jsx)("div",{className:"p-2 sm:p-1.5 rounded-lg bg-white/10",children:r.icon}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-white font-Fira font-bold text-base sm:text-sm",children:r.title}),(0,a.jsx)("p",{className:"text-white/40 text-xs font-Fira",children:r.period})]})]})})}),(0,a.jsxs)("div",{className:"p-4 sm:p-3",children:[(0,a.jsx)("div",{className:"flex items-baseline gap-2 mb-3 sm:mb-2",children:(0,a.jsx)("p",{className:"text-white text-4xl sm:text-3xl font-Fira font-bold",children:((null==(s=r.values)||null==(t=s[0])?void 0:t.value)!==void 0?r.values[0].value:r.value||0).toLocaleStr
1ing()})}),(0,a.jsx)("p",{className:"text-white/60 text-sm sm:text-xs font-Fira leading-relaxed",children:r.description})]})]})},W=e=>{let{displayData:t,analyticsData:s}=e;return(0,a.jsxs)("div",{className:"mb-8 sm:mb-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between mb-6 sm:mb-4",children:[(0,a.jsx)("h2",{className:"text-white text-2xl sm:text-xl font-Fira font-bold",children:"INSTAGRAM AUTO-REPLY INSIGHTS"}),s.length>0&&(0,a.jsxs)("div",{className:"flex items-center gap-2 px-3 py-1.5 rounded-full bg-gradient-to-r from-orange-500/20 to-orange-600/20 border border-orange-500/30",children:[(0,a.jsx)(I.A,{size:16,className:"text-orange-400"}),(0,a.jsx)("span",{className:"text-orange-400 text-xs font-Fira font-semibold",children:"Live Data"})]})]}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3 gap-4",children:t.map(e=>(0,a.jsx)(R,{metric:e},e.id))})]})};var M=s(54587),D=s.n(M),P=s(89099),z=s(61533);let E=e=>{let{images:t}=e,[s,i]=(0,r.useState)(0);return(0,a.jsxs)("div",{className:"relative h-48 w-full",children:[(0,a.jsx)(D(),{src:t[s],alt:"Carousel image ".concat(s+1),fill:!0,className:"object-cover"}),t.length>1&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("button",{onClick:e=>{e.stopPropagation(),i(e=>0===e?t.length-1:e-1)},className:"absolute left-2 top-1/2 transform -translate-y-1/2 bg-black/50 text-white p-1 rounded-full hover:bg-black/70 transition",children:"â¹"}),(0,a.jsx)("button",{onClick:e=>{e.stopPropagation(),i(e=>e===t.length-1?0:e+1)},className:"absolute right-2 top-1/2 transform -translate-y-1/2 bg-black/50 text-white p-1 rounded-full hover:bg-black/70 transition",children:"âº"})]})]})},B=e=>{let{instagramPosts:t,isLoadingPosts:s}=e,r=(0,P.useRouter)();return console.log("\uD83C\uDFAF Rendering check - instagramPosts:",t.length),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"my-12 border-t-4 border-[#ff6a00]"}),(0,a.jsxs)("div",{className:"mt-8 p-6 rounded-2xl",style:{background:"rgba(26, 26, 26, 0.8)",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.3)"},children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-6",children:[(0,a.jsx)(d.A,{size:32,className:"text-[#FFFF]"}),(0,a.jsxs)("h2",{className:"text-white text-2xl sm:text-3xl font-Fira font-bold uppercase tracking-wider",children:["YOUR POSTS (",t.length,")"]})]}),s?(0,a.jsxs)("div",{className:"flex justify-center items-center py-12",children:[(0,a.jsx)(z.A,{size:"large"}),(0,a.jsx)("p",{className:"text-white/60 font-Fira ml-4",children:"Loading posts..."})]}):0===t.length?(0,a.jsx)("div",{className:"p-6 rounded-lg text-center",style:{background:"rgba(255, 106, 0, 0.1)",border:"1px solid rgba(255, 106, 0, 0.3)"},children:(0,a.jsx)("p",{className:"text-white/60 font-Fira",children:"No posts found for this account."})}):(0,a.jsx)("div",{className:"grid grid-cols-3 md:grid-cols-2 lg:grid-cols-3 gap-4",children:t.map(e=>(0,a.jsxs)("div",{className:"rounded-xl overflow-hidden cursor-pointer transition-transform hover:scale-105",style:{background:"linear-gradient(135deg, rgba(119, 37, 0, 0.56) 0%, rgba(70, 23, 0, 0.56) 100%)",border:"1px solid rgba(255, 255, 255, 0.15)"},onClick:()=>{var t;let s=(null==(t=e.api_response)?void 0:t.id)||e.published_id;r.push("/analytics/post/".concat(s))},children:["CAROUSEL"===e.media_type&&e.carousel_items?(0,a.jsx)(E,{images:e.carousel_items}):"VIDEO"===e.media_type&&e.media_url?(0,a.jsx)("div",{className:"relative h-48 w-full",children:(0,a.jsx)("video",{src:e.media_url,className:"w-full h-full object-cover",controls:!0,muted:!0,preload:"metadata"})}):e.media_url?(0,a.jsx)("div",{className:"relative h-48 w-full",children:(0,a.jsx)(D(),{src:e.media_url,alt:e.caption||"Instagram post",fill:!0,className:"object-cover"})}):null,(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,a.jsxs)("span",{className:"text-[#ff6a00] font-Fira text-xs font-semibold",children:["@",e.username]}),(0,a.jsx)("span",{className:"px-2 py-0.5 rounded-full bg-green-500/20 text-green-400 text-[10px] font-Fira font-semibold",children:e.status})]}),(0,a.jsx)("p",{className:"text-white text-sm font-Fira line-clamp-2 mb-3",children:e.caption||e.post_content||"No caption"}),(0,a.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,a.jsx)("span",{className:"text-white/40 text-xs font-Fira",children:new Date(e.published_at).toLocaleStr
1ing("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}),(0,a.jsx)("span",{className:"text-white/60 text-xs font-Fira px-2 py-1 rounded bg-white/5",children:e.media_type})]}),(void 0!==e.like_count||void 0!==e.comments_count)&&(0,a.jsxs)("div",{className:"flex items-center gap-3 text-xs font-Fira",children:[void 0!==e.like_count&&(0,a.jsxs)("span",{className:"text-white/60 flex items-center gap-1",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"})}),e.like_count]}),void 0!==e.comments_count&&(0,a.jsxs)("span",{className:"text-white/60 flex items-center gap-1",children:[(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:(0,a.jsx)("path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"})}),e.comments_count]})]})]})]},e._id))})]})]})},U=e=>{let{message:t}=e;return(0,a.jsx)("div",{className:"flex items-center justify-center h-64",children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsx)(z.A,{size:"large"}),(0,a.jsx)("p",{className:"text-white mt-4",children:t})]})})};var O=s(65113),G=s(6226);let H=e=>{let{displayData:t,type:s,whatsappMetrics:r=[]}=e;return(0,a.jsxs)("div",{className:"p-6 sm:p-4 rounded-xl border border-white/20",style:{background:"rgba(26, 26, 26, 0.8)",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.3)"},children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 sm:gap-2 mb-6 sm:mb-4",children:[(0,a.jsx)("div",{className:"text-4xl sm:text-3xl",children:(0,a.jsx)(O.Foo,{
1className:"text-white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-white text-2xl sm:text-xl font-Fira font-bold",children:"PERFORMANCE SUMMARY"}),(0,a.jsx)("p",{className:"text-white/60 text-sm font-Fira",children:"instagram"===s?"Lifetime performance metrics":"WhatsApp messaging performance metrics"})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 gap-4 mb-6 sm:mb-4",children:[(0,a.jsxs)("div",{className:"p-4 sm:p-3 rounded-lg",style:{background:"linear-gradient(135deg, rgba(119, 37, 0, 0.3) 0%, rgba(70, 23, 0, 0.2) 100%)",border:"1px solid rgba(255, 106, 0, 0.3)"},children:[(0,a.jsx)("p",{className:"text-white/50 text-sm font-Fira mb-2",children:"instagram"===s?"Total Engagement":"Total Messages"}),(0,a.jsx)("p",{className:"text-white text-4xl sm:text-3xl font-Fira font-bold",children:"instagram"===s?("instagram"===s?t.filter(e=>["likes","comments","shares","saved"].includes(e.name)).reduce((e,t)=>{var s;return e+((null==(s=t.values[0])?void 0:s.value)||0)},0):0).toLocaleString():(()=>{if("whatsapp"===s){let e=r.find(e=>"total_messages"===e.name);return(null==e?void 0:e.value)||0}return 0})().toLocaleString()})]}),(0,a.jsxs)("div",{className:"p-4 sm:p-3 rounded-lg",style:{background:"linear-gradient(135deg, rgba(119, 37, 0, 0.3) 0%, rgba(70, 23, 0, 0.2) 100%)",border:"1px solid rgba(255, 106, 0, 0.3)"},children:[(0,a.jsx)("p",{className:"text-white/50 text-sm font-Fira mb-2",children:"instagram"===s?"Accounts Reached":"Delivery Success Rate"}),(0,a.jsx)("p",{className:"text-white text-4xl sm:text-3xl font-Fira font-bold",children:"instagram"===s?(()=>{if("instagram"===s){var e;let s=t.find(e=>"reach"===e.name);return(null==s||null==(e=s.values[0])?void 0:e.value)||0}return 0})().toLocaleString():"".concat((()=>{if("whatsapp"===s){let e=r.find(e=>"delivery_rate"===e.name);return(null==e?void 0:e.value)||0}return 0})(),"%")})]})]}),(0,a.jsx)("div",{className:"p-4 sm:p-3 rounded-lg",style:{background:"rgba(255, 106, 0, 0.1)",border:"1px solid rgba(255, 106, 0, 0.3)"},children:(0,a.jsxs)("div",{className:"flex gap-3 sm:gap-2",children:[(0,a.jsx)("div",{className:"text-2xl sm:text-xl flex-shrink-0",children:(0,a.jsx)(G.td3,{className:"text-white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-white font-Fira font-semibold mb-1 sm:text-sm",children:"About These Metrics"}),(0,a.jsx)("p",{className:"text-white/60 text-sm sm:text-xs font-Fira",children:"instagram"===s?"These analytics represent lifetime performance data for your Instagram auto-reply posts. Data is updated periodically and reflects engagement from all automated responses.":"These analytics represent WhatsApp messaging performance for the selected account. Message counts include all sent, delivered, read, and failed messages during the specified time period."})]})]})})]})},Y=e=>{let{whatsappTaskAnalytics:t}=e;return 0===t.length?null:(0,a.jsxs)("div",{className:"mt-8",children:[(0,a.jsx)("h2",{className:"text-white text-2xl sm:text-xl font-Fira font-bold mb-6 sm:mb-4",children:"CAMPAIGN ANALYTICS"}),(0,a.jsx)("div",{className:"space-y-6",children:t.map(e=>(0,a.jsxs)("div",{className:"rounded-xl border border-white/10 overflow-hidden",style:{background:"rgba(26, 26, 26, 0.8)",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.3)"},children:[(0,a.jsxs)("div",{className:"p-4 border-b border-white/10",style:{background:"linear-gradient(135deg, rgba(119, 37, 0, 0.4) 0%, rgba(70, 23, 0, 0.3) 100%)"},children:[(0,a.jsx)("h3",{className:"text-white font-Fira font-bold text-lg mb-1",children:e.template_name||e.heading||"Campaign"}),(0,a.jsxs)("p",{className:"text-white/60 text-xs font-Fira",children:["Task ID: ",e.task_id]})]}),(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 mb-4",children:[(0,a.jsxs)("div",{className:"p-3 rounded-lg text-center",style:{background:"rgba(34, 197, 94, 0.1)",border:"1px solid rgba(34, 197, 94, 0.3)"},children:[(0,a.jsx)("p",{className:"text-green-400 text-xs font-Fira mb-1",children:"Sent"}),(0,a.jsx)("p",{className:"text-white text-xl font-Fira font-bold",children:e.analytics.total_sent})]}),(0,a.jsxs)("div",{className:"p-3 rounded-lg text-center",style:{background:"rgba(59, 130, 246, 0.1)",border:"1px solid rgba(59, 130, 246, 0.3)"},children:[(0,a.jsx)("p",{className:"text-blue-400 text-xs font-Fira mb-1",children:"Delivered"}),(0,a.jsx)("p",{className:"text-white text-xl font-Fira font-bold",children:e.analytics.total_delivered})]}),(0,a.jsxs)("div",{className:"p-3 rounded-lg text-center",style:{background:"rgba(168, 85, 247, 0.1)",border:"1px solid rgba(168, 85, 247, 0.3)"},children:[(0,a.jsx)("p",{className:"text-purple-400 text-xs font-Fira mb-1",children:"Read"}),(0,a.jsx)("p",{className:"text-white text-xl font-Fira font-bold",children:e.analytics.total_read})]}),(0,a.jsxs)("div",{className:"p-3 rounded-lg text-center",style:{background:"rgba(239, 68, 68, 0.1)",border:"1px solid rgba(239, 68, 68, 0.3)"},children:[(0,a.jsx)("p",{className:"text-red-400 text-xs font-Fira mb-1",children:"Failed"}),(0,a.jsx)("p",{className:"text-white text-xl font-Fira font-bold",children:e.analytics.total_failed})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3",children:[(0,a.jsxs)("div",{className:"p-3 rounded-lg text-center",style:{background:"rgba(34, 197, 94, 0.1)",border:"1px solid rgba(34, 197, 94, 0.3)"},children:[(0,a.jsx)("p",{className:"text-green-400 text-xs font-Fira mb-1",children:"Delivery Rate"}),(0,a.jsxs)("p",{className:"text-white text-xl font-Fira font-bold",children:[Math.round(100*e.anal
1ytics.delivery_rate),"%"]})]}),(0,a.jsxs)("div",{className:"p-3 rounded-lg text-center",style:{background:"rgba(59, 130, 246, 0.1)",border:"1px solid rgba(59, 130, 246, 0.3)"},children:[(0,a.jsx)("p",{className:"text-blue-400 text-xs font-Fira mb-1",children:"Read Rate"}),(0,a.jsxs)("p",{className:"text-white text-xl font-Fira font-bold",children:[Math.round(100*e.analytics.read_rate),"%"]})]}),(0,a.jsxs)("div",{className:"p-3 rounded-lg text-center",style:{background:"rgba(239, 68, 68, 0.1)",border:"1px solid rgba(239, 68, 68, 0.3)"},children:[(0,a.jsx)("p",{className:"text-red-400 text-xs font-Fira mb-1",children:"Failure Rate"}),(0,a.jsxs)("p",{className:"text-white text-xl font-Fira font-bold",children:[Math.round(100*e.analytics.failure_rate),"%"]})]})]}),e.analytics.messages_by_date.length>0&&(0,a.jsxs)("div",{className:"mt-4 pt-4 border-t border-white/10",children:[(0,a.jsx)("p",{className:"text-white/70 text-xs font-Fira mb-2",children:"Messages Sent By Date:"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:e.analytics.messages_by_date.map((e,t)=>(0,a.jsxs)("div",{className:"px-3 py-1 rounded-full bg-[#232323] border border-white/10",children:[(0,a.jsxs)("span",{className:"text-white/60 text-xs font-Fira",children:[new Date(e.date).toLocaleDateString("en-US",{month:"short",day:"numeric"}),":"," "]}),(0,a.jsx)("span",{className:"text-white text-xs font-Fira font-bold",children:e.count})]},t))})]})]})]},e.task_id))})]})},V=e=>{let{whatsappMetrics:t}=e;return(0,a.jsxs)("div",{className:"mb-8 sm:mb-6",children:[(0,a.jsx)("h2",{className:"text-white text-2xl sm:text-xl font-Fira font-bold mb-6 sm:mb-4",children:"WHATSAPP MESSAGE INSIGHTS"}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-2 xl:grid-cols-3 gap-4",children:t.map(e=>(0,a.jsx)(R,{metric:e},e.id))})]})},q={data:[{name:"likes",period:"lifetime",values:[{value:0}],title:"Likes",description:"The number of likes on your post.",id:"17987088731858632/insights/likes/lifetime",icon:(0,a.jsx)(o.A,{size:28,className:"text-white",strokeWidth:2.5})},{name:"comments",period:"lifetime",values:[{value:0}],title:"Comments",description:"The number of comments on your post.",id:"17987088731858632/insights/comments/lifetime",icon:(0,a.jsx)(d.A,{size:28,className:"text-white",strokeWidth:2.5})},{name:"shares",period:"lifetime",values:[{value:0}],title:"Shares",description:"The number of shares of your post.",id:"17987088731858632/insights/shares/lifetime",icon:(0,a.jsx)(c.A,{size:28,className:"text-white",strokeWidth:2.5})},{name:"saved",period:"lifetime",values:[{value:0}],title:"Saved",description:"The number of saves of your post.",id:"17987088731858632/insights/saved/lifetime",icon:(0,a.jsx)(m.A,{size:28,className:"text-white",strokeWidth:2.5})},{name:"reach",period:"lifetime",values:[{value:0}],title:"Accounts reached",description:"The number of unique accounts that have seen this post at least once. Reach is different from impressions, which may include multiple views of your post by the same accounts. This metric is estimated.",id:"17987088731858632/insights/reach/lifetime",icon:(0,a.jsx)(x.A,{size:28,className:"text-white",strokeWidth:2.5})},{name:"total_interactions",period:"lifetime",values:[{value:0}],title:"Post interactions",description:"The number of likes, saves, comments and shares on your post minus the number of unlikes, unsaves and deleted comments.",id:"17987088731858632/insights/total_interactions/lifetime",icon:(0,a.jsx)(h.A,{size:28,className:"text-white",strokeWidth:2.5})}]},Z=()=>{let{api:e}=(0,y.I)({enforceAuth:!0}),{isExpanded:t}=(0,v.c)(),[s,c]=(0,r.useState)("instagram"),[m,k]=(0,r.useState)(!1),[_,F]=(0,r.useState)([]),[C,A]=(0,r.useState)([]),[S,I]=(0,r.useState)([]),[R,M]=(0,r.useState)(!1),[D,P]=(0,r.useState)([]),[z,E]=(0,r.useState)(!1),{userConfigs:O=[],isLoadingUserConfigs:G=!1,selectedConfigId:Z,setSelectedConfigId:K,refreshUserConfigs:X}=(0,b.EI)()||{},J=O.find(e=>e.id===Z);(0,r.useEffect)(()=>{(async()=>{!G&&0===O.length&&X&&await X()})()},[]),(0,r.useEffect)(()=>{if(!Z&&O.length>0&&K){let t=O.filter(e=>{var t;let s=null==(t=e.platform)?void 0:t.toLowerCase();return"instagram"===s||"whatsapp"===s});if(t.length>0){var e;let s=t[0];
1K(s.id);let a=null==(e=s.platform)?void 0:e.toLowerCase();("instagram"===a||"whatsapp"===a)&&c(a),console.log("\uD83C\uDFAF Auto-selected first analytics account:",s)}}},[O,Z,K]),(0,r.useEffect)(()=>{(async()=>{var e;if(J&&(null==(e=J.platform)?void 0:e.toLowerCase())==="instagram"){if(!J.ig_id||!J.access_token){console.error("Missing ig_id or access_token for Instagram insights"),l.Ay.error("Instagram account configuration is incomplete");return}M(!0);try{let e=await n.A.get("https://graph.instagram.com/v24.0/".concat(J.ig_id,"/insights"),{params:{metric:"reach,follower_count,profile_views,accounts_engaged,total_interactions",period:"day",access_token:J.access_token}});console.log("\uD83D\uDCCA Instagram Insights Response:",e.data);let t=(e.data.data||[]).map(e=>{let t=e.title||e.name,s=e.description||"",r=(0,a.jsx)(h.A,{size:28,className:"text-white",strokeWidth:2.5}),i=0;switch(e.values&&e.values.length>0&&(i="follower_count"===e.name?e.values[e.values.length-1].value:e.values.reduce((e,t)=>e+(t.value||0),0)),console.log("\uD83D\uDCC8 ".concat(e.name,":"),{rawValues:e.values,finalValue:i,calculationMethod:"follower_count"===e.name?"latest":"sum"}),e.name){case"reach":t="Accounts Reached",s="The number of unique accounts that have seen your content.",r=(0,a.jsx)(x.A,{size:28,className:"text-white",strokeWidth:2.5});break;case"follower_count":t="Followers",s="Total number of followers on your account.",r=(0,a.jsx)(x.A,{size:28,className:"text-white",strokeWidth:2.5});break;case"profile_views":t="Profile Views",s="Number of times your profile was viewed.",r=(0,a.jsx)(p.A,{size:28,className:"text-white",strokeWidth:2.5});break;case"accounts_engaged":t="Accounts Engaged",s="Number of unique accounts that interacted with your content.",r=(0,a.jsx)(o.A,{size:28,className:"text-white",strokeWidth:2.5});break;case"total_interactions":t="Total Interactions",s="Total engagement including likes, comments, saves, and shares.",r=(0,a.jsx)(h.A,{size:28,className:"text-white",strokeWidth:2.5})}return{name:e.name,period:e.period||"day",values:[{value:i}],title:t,description:s,icon:r,id:e.id||"insight-".concat(e.name)}});console.log("⨠Transformed Instagram Data:",t),F(t)}catch(e){console.error("Error fetching Instagram insights:",e),l.Ay.error("Failed to fetch Instagram analytics. Using default data."),F([])}finally{M(!1)}}})()},[Z,J]),(0,r.useEffect)(()=>{(async()=>{var t;if(J&&(null==(t=J.platform)?void 0:t.toLowerCase())==="whatsapp"){if(!J.id){console.error("Missing config_id for WhatsApp analytics"),l.Ay.error("WhatsApp account configuration is incomplete");return}M(!0);try{let t=await e.get("/analytics/whatsapp?config_id=".concat(J.id));if(console.log("\uD83D\uDCCA WhatsApp Analytics Response:",t.data),!t.data||!t.data.overall){console.warn("No WhatsApp analytics data received"),A([]),I([]),M(!1);return}let s=t.data.overall,r=t.data.task_wise||[];I(r);let i=e=>{try{return new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch(e){return"N/A"}},l="".concat(i(s.date_from)," - ").concat(i(s.date_to)),n=[{id:"total_messages",name:"total_messages",value:s.total_messages||0,title:"Total Messages",description:"Total number of messages sent and received via WhatsApp.",icon:(0,a.jsx)(d.A,{size:28,className:"text-white",strokeWidth:2.5}),period:l},{id:"total_sent",name:"total_sent",value:s.total_sent||0,title:"Messages Sent",description:"Total number of messages sent from your WhatsApp account.",icon:(0,a.jsx)(g.A,{size:28,className:"text-white",strokeWidth:2.5}),period:l},{id:"total_delivered",name:"total_delivered",value:s.total_delivered||0,title:"Messages Delivered",description:"Total number of messages successfully delivered to recipients.",icon:(0,a.jsx)(u.A,{size:28,className:"text-white",strokeWidth:2.5}),period:l},{id:"total_read",name:"total_read",value:s.total_read||0,title:"Messages Read",description:"Total number of messages read by recipients.",icon:(0,a.jsx)(p.A,{size:28,className:"text-white",strokeWidth:2.5}),period:l},{id:"total_failed",name:"total_failed",value:s.total_failed||0,title:"Messages Failed",description:"Total number of messages that failed to send.",icon:(0,a.jsx)(f.A,{size:28,className:"text-white",strokeWidth:2.5}),period:l},{id:"delivery_rate",name:"delivery_rate",value:Math.round(100*(s.delivery_rate||0)),title:"Delivery Rate",description:"Percentage of messages successfully delivered.",icon:(0,a.jsx)(u.A,{size:28,className:"text-white",strokeWidth:2.5}),period:l},{id:"read_rate",name:"read_rate",value:Math.round(100*(s.read_rate||0)),title:"Read Rate",description:"Percentage of delivered messages that were read.",icon:(0,a.jsx)(p.A,{size:28,className:"text-white",strokeWidth:2.5}),period:l}];A(n)}
1catch(e){console.error("Error fetching WhatsApp analytics:",e),l.Ay.error("Failed to fetch WhatsApp analytics. Please try again."),A([])}finally{M(!1)}}})()},[Z,J]),(0,r.useEffect)(()=>{(async()=>{if("instagram"!==s.toLowerCase()||!(null==J?void 0:J.ig_id)||!(null==J?void 0:J.access_token))return P([]);E(!0);try{console.log("\uD83D\uDD0D Fetching Instagram posts from Graph API for ig_id:",J.ig_id);let e=await n.A.get("https://graph.instagram.com/".concat(J.ig_id,"/media"),{params:{fields:"id,caption,media_type,media_url,permalink,timestamp,like_count,comments_count",access_token:J.access_token,limit:50}});if(console.log("\uD83D\uDCCA Instagram Graph API posts response:",e.data),e.data&&e.data.data&&Array.isArray(e.data.data)){let t=e.data.data.map(e=>({_id:e.id,user_id:J.user_id||"",config_id:J.id,account_id:J.ig_id,ig_user_id:J.ig_id,username:J.user_name||"Instagram User",media_type:e.media_type,caption:e.caption||"",media_url:e.media_url,creation_id:e.id,published_id:e.id,post_content:e.caption||"",publish_type:"instagram",scheduled_at:e.timestamp,published_at:e.timestamp,status:"published",api_response:{id:e.id},created_at:e.timestamp,permalink:e.permalink,like_count:e.like_count,comments_count:e.comments_count}));console.log("â
Found Instagram posts:",t.length),P(t)}else console.log("â ï¸ No posts data or not an array"),P([])}catch(e){console.error("Error fetching Instagram posts from Graph API:",e),l.Ay.error("Failed to fetch Instagram posts. Please try again."),P([])}finally{E(!1)}})()},[Z,J,s]);let Q=_.length>0?_:q.data;return(0,a.jsxs)("div",{className:"flex h-screen overflow-hidden",style:{background:"radial-gradient(90.07% 47.01% at 50% 100%, #181818 0%, #000000 100%)"},children:[(0,a.jsx)(i.A,{styles:{"*::-webkit-scrollbar":{width:"8px",height:"8px"},"*::-webkit-scrollbar-track":{background:"transparent"},"*::-webkit-scrollbar-thumb":{background:"rgba(255, 255, 255, 0.2)",borderRadius:"4px"},"*::-webkit-scrollbar-thumb:hover":{background:"rgba(255, 255, 255, 0.3)"},".custom-scrollbar":{scrollbarWidth:"thin",scrollbarColor:"rgba(255, 255, 255, 0.2) transparent"}}}),(0,a.jsx)(j.A,{}),(0,a.jsxs)("main",{className:"flex-1 pl-20 md:pl-20 pr-3 pt-4 md:px-10 sm:px-4 flex flex-col h-full overflow-hidden ".concat(t?"ml-[220px]":"ml-[40px]"),children:[(0,a.jsx)(w.A,{}),(0,a.jsx)(N.A,{links:[{text:"Dashboard",url:"/dashboard"},{text:"ANALYTICS"}],backUrl:"/dashboard"}),(0,a.jsx)("div",{className:"flex-grow flex flex-col mt-4 mb-4 overflow-hidden sm:mb-2",children:(0,a.jsxs)("div",{className:"w-full h-full rounded-2xl border flex flex-col overflow-hidden",style:{background:"radial-gradient(90.07% 39.8% at 50% 100%, #4B1800 0%, #000000 100%)",border:"1px solid rgba(255, 255, 255, 0.2)",borderRadius:"16px"},children:[(0,a.jsx)(L,{selectedPlatform:s,onPlatformChange:c,isLoadingUserConfigs:G,selectedConfigId:Z,setSelectedConfigId:K,userConfigs:O,accountDropdownOpen:m,setAccountDropdownOpen:k,refreshUserConfigs:X,selectedConfig:J}),(0,a.jsxs)("div",{className:"flex-grow p-6 sm:p-4 overflow-y-auto custom-scrollbar",children:["instagram"===s&&(0,a.jsx)(a.Fragment,{children:Z?R?(0,a.jsx)(U,{message:"Loading Instagram analytics..."}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(W,{displayData:Q,analyticsData:_}),(0,a.jsx)(H,{displayData:Q,type:"instagram"}),(0,a.jsx)(B,{instagramPosts:D,isLoadingPosts:z})]}):(0,a.jsx)(T,{message:"Please select an account to view analytics.",submessage:"Use the account selector above to choose which connected account analytics you want to see."})}),"whatsapp"===s&&(0,a.jsx)(a.Fragment,{children:Z?R?(0,a.jsx)(U,{message:"Loading WhatsApp analytics..."}):0===C.length?(0,a.jsx)(T,{message:"No WhatsApp analytics data available.",submessage:"There is no messaging activity for this account yet. Analytics will appear once messages are sent."}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(V,{whatsappMetrics:C}),(0,a.jsx)(H,{displayData:Q,type:"whatsapp",whatsappMetrics:C}),(0,a.jsx)(Y,{whatsappTaskAnalytics:S})]}):(0,a.jsx)(T,{message:"Please select an account to view analytics.",submessage:"Use the account selector above to choose which connected WhatsApp account analytics you want to see."})})]})]})})]})]})};function K(){return(0,a.jsx)(Z,{})}K.getSeo=()=>({title:"Analytics | Krosspost.ai",description:"Track your Instagram auto-reply performance, engagement metrics, and insights with our comprehensive analytics dashboard.",canonical:"https://krosspost.ai/analytics",openGraph:{title:"Analytics | Krosspost.ai"}})},59199:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var a=s(37876),r=s(14232),i=s(89099);let l=e=>{let{links:t,backUrl:s="/"}=e,l=(0,i.useRouter)();return(0,a.jsxs)("div",{className:"sm:hidden flex pl-10 flex-row items-center gap-3 p-4 py-4 rounded-[16px] relative",style:{background:"#1F1F1F",height:"54px",width:"100%",boxSizing:"border-box",border:"1px solid rgba(255, 255, 255, 0.1)",backdropFilter:"blur(12px)",boxShadow:"0px 4px 4px 0px #00000040"},children:[(0,a.jsx)("div",{onClick:()=>{s?l.push(s):l.back()},className:"flex flex-col w-8 h-8 justify-center gap-1 mt-[-5.00px] mb-[-5.00px] bg-[#ffffff1a] rounded-md overflow-hidden border-[none] items-center relative cursor-pointer",children:(0,a.jsx)("img",{className:"relative w-4 h-4",alt:"Back",src:"/images/lets-icons-back.svg"})}),(0,a.jsx)("div",{className:"inline-flex gap-2 flex-[0_0_auto] mt-[-1.00px] mb-[-1.00px] items-center relative",children:t.map((e,t)=>(0,a.jsxs)(r.Fragment,{children:[t>0&&(0,a.jsx)("img",{className:"relative w-4 h-4",alt:"Chevron",src:"/images/bxs-chevron-up.svg"}),e.url?(0,a.jsx)("div",{onClick:()=>l.push(e.url||"/"),className:"relative w-fit mt-[-1.00px] font-Fira font-extrabold text-white text-xl text-center tracking-[0] leading-[normal] whitespace-nowrap cursor-pointer",children:e.text}):(0,a.jsx)("div",{className:"relative w-fit mt-[-1.00px] font-Fira font-extrabold text-white text-xl text-center tracking-[0] leading-[normal] whitespace-nowrap",children:e.text})]},t))})]})}}},e=>{e.O(0,[8585,8511,289,4938,3302,3835,8230,9505,8455,4587,9641,6265,4317,9007,12
118,543,335,7213,1949,1533,4348,5111,4584,5541,7346,636,6593,8792],()=>e(e.s=8065)),_N_E=e.O()}]);
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.