PageSourceSearch

https://www.vefogix.com/_next/static/chunks/92531.ae711f0759797dd1.js

js vefogix.com collected 2026-09-24 09:33:28 UTC 108,543 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92531],{88753:function(e,t,s){s.d(t,{u:function(){return i}});var a=s(57437);s(2265);let r={default:"bg-gray-900 text-white",outline:"border border-gray-300 text-gray-800 bg-transparent dark:text-gray-300 dark:border-gray-600",success:"bg-green-500/20 text-green-950 border border-transparent dark:text-green-200",warning:"bg-amber-50 text-amber-700 border border-amber-100",destructive:"bg-red-50 text-red-700 border border-red-100",muted:"bg-gray-500/20 text-gray-950 border border-transparent dark:text-gray-200"};function n(e){let{variant:t="default",className:s,...n}=e,l=["inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",r[t],s].filter(Boolean).join(" ");return(0,a.jsx)("span",{className:l,...n})}let l=e=>null==e||""===e?null:"string"==typeof e?"true"===e.toLowerCase():!!e,i=e=>{let{value:t}=e,s=l(t);return null===s?(0,a.jsx)(n,{variant:"outline",className:"shrink-0 whitespace-nowrap font-semibold",children:"N/A"}):(0,a.jsx)(n,{variant:s?"success":"muted",className:"shrink-0 whitespace-nowrap font-semibold",children:s?"Yes":"No"})}},92531:function(e,t,s){s.r(t),s.d(t,{default:function(){return eC}});var a=s(57437),r=s(29),n=s.n(r),l=s(88753),i=s(23595),o=s(93148),d=s(26548),c=s(99551),m=s(21239),x=s(29332),u=s(40103),h=s(15424),f=s(70464),p=s(15327),g=s(77565),b=s(77076),j=s(67504),v=s(99981),y=s(79326),w=s(5545),N=s(10353),k=s(11412),_=s(61994),S=s(50337),M=s(73705),C=s(867),A=s(19015),D=s(95616),T=s(1829),I=s(63134),R=s(29967),P=s(28297),Z=s(83464),L=s(48614),F=s(3462),E=s(64131),O=s(40217),B=s(33145),z=s(27648),K=s(99376),U=s(2265),G=s(75186),W=s(11140),H=s(61273),Y=s(37996),J=s(43257),V=s(45202),q=s(22744),Q=s(76417),X=s(45168),$=s(96622),ee=s(71931),et=s(71096),es=s.n(et),ea=s(45721),er=s.n(ea),en=s(13257),el=s.n(en),ei=s(14296),eo=s(16488),ed=s(56940),ec=s(97059),em=s(62994),ex=s(88822),eu=s(52797),eh=s(77719),ef=s(99119),ep=s(21465);let{Option:eg}=b.default,{RangePicker:eb}=j.default,ej=e=>{let{value:t,max:s=100,color:r,label:n,size:l=80}=e,i=Math.max(0,Math.min(Number(t)||0,s)),o=Math.max(1,Number(s)||100),d=Math.max(0,Math.min(100,i/o*100)),c="#ff6b35"===r?["#ff6b35","#ff8c42","#ffa726","#ffb74d"]:"#3b82f6"===r?["#3b82f6","#4f9eff","#64b5f6","#81c784"]:"#fbbf24"===r?["#fbbf24","#fcd34d","#fde68a","#fef3c7"]:[r,r,r,r];return(0,a.jsx)("div",{className:"z-50",style:{backgroundColor:"transparent",border:"none",boxShadow:"none"},children:(0,a.jsxs)("div",{className:"flex flex-col items-center",style:{width:"100%",minWidth:"".concat(l,"px")},children:[(0,a.jsxs)("div",{className:"recharts-wrapper",role:"region",style:{position:"relative",cursor:"default",width:"100%",maxWidth:"".concat(l,"px"),height:"auto"},children:[(()=>{try{return(0,a.jsx)(ef.Z,{id:"gauge-chart-".concat(n.replace(/\s+/g,"-").toLowerCase(),"-").concat(Date.now()),nrOfLevels:20,percent:d/100,colors:c,arcWidth:.2,needleColor:"#374151",needleBaseColor:"#6b7280",textColor:"transparent",animate:!0,animateDuration:1e3,style:{width:"100%",maxWidth:"".concat(l,"px"),height:"auto",margin:"0 auto"}})}catch(e){return console.error("GaugeChart rendering error:",e),(0,a.jsx)("div",{className:"flex items-center justify-center",style:{minWidth:"".concat(l,"px"),height:"auto",padding:"10px"},children:(0,a.jsxs)("div",{className:"text-center",children:[(0,a.jsxs)("div",{className:"text-lg font-bold text-gray-900",children:[i,"/",o]}),(0,a.jsx)("div",{className:"text-xs text-gray-600",children:n})]})})}})(),(0,a.jsx)("div",{className:"absolute inset-0 pointer-events-none flex flex-col items-center justify-center px-2",children:(0,a.jsxs)("div",{className:"text-xl font-bold text-gray-900 dark:text-white leading-none mb-1 text-center",children:[i,"/",o]})}),(0,a.jsxs)("div",{className:"absolute top-1 right-2 text-xs font-bold text-gray-400 dark:text-gray-500",children:[Math.round(d),"%"]})]}),(0,a.jsx)("div",{className:"flex flex-col items-center justify-center px-2 mt-2",children:(0,a.jsx)("div",{className:"text-xs font-medium text-gray-600 dark:text-gray-300 text-center px-1",children:n})})]})})},ev=e=>{let{src:t,alt:s}=e,[r,n]=(0,U.useState)(!1);return r?(0,a.jsx)("div",{className:"flex items-center justify-center w-4 h-4",children:(0,a.jsx)(W.Za_,{className:"text-primarydark w-full h-full"})}):(0,a.jsx)(B.default,{src:t||"/placeholder.svg",alt:s||"project image",height:16,width:16,className:"flex items-center justify-center rounded-full",onError:()=>{n(!0)}})},ey=()=>(0,a.jsxs)("div",{className:"absolute -top-2 -right-2 bg-amber-500 text-white text-xs px-1 rounded-md flex items-center gap-1 animate-pulse shadow-md z-10",children:[(0,a.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",children:(0,a.jsx)("path",{d:"M7 17L17 7M17 7H7M17 7V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,a.jsx)("span",{children:"Top"})]}),ew=()=>(0,a.jsxs)("div",{className:"absolute -top-2 -right-2 bg-green-500 text-white text-xs px-1 rounded-md flex items-center gap-1 animate-pulse shadow-md z-10",children:[(0,a.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",children:(0,a.jsx)("path",{d:"M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z",fill:"currentColor"})}),(0,a.jsx)("span",{children:"New"})]}),eN=()=>(0,a.jsx)(v.Z,{title:(0,a.jsx)("span",{className:"text-white font-medium text-xs tracking-wide",children:"Press Releases Sites"}),color:"#6366f1",overlayInnerStyle:{background:"linear-gradient(to right, #6366f1, #2563eb)",borderRadius:"6px",boxShadow:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",padding:"4px 8px",border:"none"},children:(0,a.jsx)("span",{className:"inline-flex items-center justify-center bg-gradient-to-r from-indigo-500 to-blue-600 text-white px-1.5 py-[2px] rounded text-[10px] font-bold uppercase tracking-wider shrink-0 ml-1 shadow-sm cursor-help transition-all duration-200 hover:shadow-md hover:-translate-y-[1px]",children:"PR"})}),ek=e=>{if("number"==typeof e)return e;if("string"==typeof e){let t=parseFloat(e.replace(/[≈<~>]/g,"").trim());return isNaN(t)?0:t}return 0},e_=e=>{let{countryCode:t,countryName:s}=e;try{return(0,a.jsx)($.Z,{countryCode:t,svg:!0,style:{width:"16px",height:"12px",borderRadius:"2px",objectFit:"cover"},title:s})}catch(e){return(0,a.jsx)(W.Za_,{className:"w-4 h-4 text-gray-400",title:s})}},eS=e=>{var t,s;let{data:r,countryData:n}=e,l=(0,U.useMemo)(()=>
1{if(!r||0===r.length)return[];let e=new Date,t=e.getMonth();if(e.getFullYear(),0===t)return[];let s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],a=[];for(let e=0;e<t;e++)a.push({month:s[e],monthIndex:e,sortOrder:e});let n=new Map;return r.forEach(e=>{e.month&&void 0!==e.traffic&&n.set(e.month,e.traffic)}),a.map(e=>{let t=n.get(e.month);return void 0===t&&(t=0),{month:e.month,traffic:t,monthIndex:e.monthIndex}})},[r]),i=l.length>0&&(null===(t=l[l.length-1])||void 0===t?void 0:t.traffic)||0,o=l.length>1&&(null===(s=l[l.length-2])||void 0===s?void 0:s.traffic)||0,d=o>0?(i-o)/o*100:0,c=e=>{let t=Array.isArray(e)?e[0]:e,s="number"==typeof t?t:Number(null!=t?t:0);return Number.isFinite(s)?s>=1e6?"".concat((s/1e6).toFixed(1),"M"):s>=1e3?"".concat((s/1e3).toFixed(1),"K"):s.toString():"0"},m=(0,U.useMemo)(()=>n&&0!==n.length?[...n].sort((e,t)=>t.percentage-e.percentage).slice(0,5):[],[n]),h=n&&n.length>5?n.slice(5):[],f=h.reduce((e,t)=>e+t.percentage,0);return 0===l.length?(0,a.jsx)("div",{className:"w-[600px] bg-white rounded-lg pt-0 px-3 pb-3",children:(0,a.jsx)("div",{className:"text-center py-8 text-gray-500",children:"No data available for current year"})}):(0,a.jsxs)("div",{className:"w-[600px] bg-white rounded-lg pt-0 px-3 pb-3",children:[(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsxs)("div",{className:"flex items-baseline justify-between mb-1",children:[(0,a.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,a.jsx)("div",{className:"w-4 h-4 bg-orange-500 rounded-sm flex items-center justify-center mt-1",children:(0,a.jsx)("div",{className:"w-2 h-2 bg-white rounded-sm"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-800",children:"Ahrefs Organic traffic"})]}),(0,a.jsx)("div",{className:"text-2xl font-bold text-gray-900",children:i>0?c(i):"0"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("p",{className:"text-sm text-gray-500 flex items-center gap-2",children:[(0,a.jsx)(B.default,{src:"/images/logs/Ahrefs-icon.jpeg",alt:"Ahrefs Icon",height:20,width:20}),"According to ahrefs.com"]}),(0,a.jsxs)("div",{className:"text-sm font-semibold flex items-center gap-1 ".concat(d>=0?"text-green-600":"text-red-600"),children:[d>=0?(0,a.jsx)(x.Z,{className:"text-sm"}):(0,a.jsx)(u.Z,{className:"text-sm"}),d>=0?"+":"",d.toFixed(1),"%"]})]})]}),(0,a.jsxs)("div",{className:"flex gap-4",children:[l&&l.length>0?(0,a.jsxs)("div",{className:"flex-[3]",children:[(0,a.jsx)("div",{className:"mb-2",children:(0,a.jsxs)("h4",{className:"text-sm font-medium text-gray-700",children:[new Date().getFullYear()," Data (Jan - ",(()=>{let e=new Date().getMonth()-1;return e>=0?["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e]:""})(),")"]})}),(0,a.jsx)("div",{className:"h-56 w-full -ml-2",children:(0,a.jsx)(ei.h,{width:"100%",height:"100%",children:(0,a.jsxs)(eo.c,{data:l,margin:{top:10,right:10,left:0,bottom:10},children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"ahrefsTrafficGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"#1e40af",stopOpacity:.8}),(0,a.jsx)("stop",{offset:"100%",stopColor:"#1e40af",stopOpacity:.2})]})}),(0,a.jsx)(ed.q,{stroke:"#e5e7eb",vertical:!1}),(0,a.jsx)(ec.K,{dataKey:"month",tick:{fontSize:10},axisLine:!1,tickLine:!1,tickMargin:8,interval:0}),(0,a.jsx)(em.B,{tick:{fontSize:10},axisLine:!1,tickLine:!1,tickFormatter:c,tickMargin:4,width:50}),(0,a.jsx)(ex.uN,{type:"monotone",dataKey:"traffic",stroke:"none",fill:"url(#ahrefsTrafficGradient)",strokeWidth:0,connectNulls:!1}),(0,a.jsx)(eu.x1,{type:"monotone",dataKey:"traffic",stroke:"#3b82f6",strokeWidth:2,dot:{fill:"#3b82f6",strokeWidth:2,r:4},activeDot:{r:5,stroke:"#3b82f6",strokeWidth:2},connectNulls:!1}),(0,a.jsx)(eh.u,{content:e=>{let{active:t,payload:s,label:r}=e;return t&&s&&s.length?(0,a.jsxs)("div",{className:"bg-gray-800 text-white px-3 py-2 rounded-lg shadow-lg",children:[(0,a.jsx)("p",{className:"font-semibold text-sm",children:r}),(0,a.jsx)("p",{className:"text-xs",children:c(s[0].value)})]}):null},cursor:{stroke:"#e5e7eb",strokeWidth:1,strokeDasharray:"3 3"}})]})})})]}):null,(0,a.jsx)("div",{className:l&&l.length>0?"flex-1 min-w-[180px] max-w-[200px]":"w-full",children:(0,a.jsxs)("div",{className:"h-56 flex flex-col",children:[(0,a.jsx)("h4",{className:"text-sm font-medium text-gray-700 mb-2",children:"Traffic by Country"}),(0,a.jsx)("div",{className:"flex-1 space-y-1 overflow-y-auto",children:m.length>0?(0,a.jsxs)(a.Fragment,{children:[m.map((e,t)=>(0,a.jsx)("div",{className:"flex items-center justify-between py-1 px-1.5 rounded hover:bg-gray-50 transition-colors",children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(e_,{countryCode:e.code,countryName:e.n
1ame}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsxs)("span",{className:"text-xs font-medium text-gray-900",children:[e.percentage,"%"]}),(0,a.jsx)("span",{className:"text-xs text-gray-600 truncate max-w-[100px]",children:e.name})]})]})},t)),h.length>0&&f>0&&(0,a.jsx)("div",{className:"flex items-center justify-between py-1 px-1.5 rounded hover:bg-gray-50 transition-colors",children:(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(W.Za_,{className:"w-4 h-4 text-gray-400",title:"Others"}),(0,a.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,a.jsxs)("span",{className:"text-xs font-medium text-gray-900",children:[f.toFixed(1),"%"]}),(0,a.jsx)("span",{className:"text-xs text-gray-600",children:"Others"})]})]})})]}):(0,a.jsx)("div",{className:"text-sm text-gray-500 text-center",children:"No country data available"})})]})})]})]})},eM=e=>{var t,s;let{data:r,countryData:n,trafficSourceData:l}=e,i=r||[],o=i&&i.length>0?null===(t=i[i.length-1])||void 0===t?void 0:t.traffic:0,d=i&&i.length>1?null===(s=i[i.length-2])||void 0===s?void 0:s.traffic:0,c=d>0?(o-d)/d*100:0,m=e=>{let t=Array.isArray(e)?e[0]:e,s="number"==typeof t?t:Number(null!=t?t:0);return Number.isFinite(s)?s>=1e6?"".concat((s/1e6).toFixed(1),"M"):s>=1e3?"".concat((s/1e3).toFixed(1),"K"):s.toString():"0"};return(0,a.jsxs)("div",{className:"w-full bg-white rounded-lg pt-0 px-3 pb-3",children:[(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsxs)("div",{className:"flex items-baseline justify-between mb-1",children:[(0,a.jsxs)("div",{className:"flex items-baseline gap-3",children:[(0,a.jsx)("div",{className:"w-4 h-4 bg-blue-500 rounded-sm flex items-center justify-center mt-1",children:(0,a.jsx)("div",{className:"w-2 h-2 bg-white rounded-sm"})}),(0,a.jsx)("h3",{className:"text-lg font-semibold text-gray-800",children:"Traffic per month"})]}),(0,a.jsx)("div",{className:"text-2xl font-bold text-gray-900",children:o>0?m(o):"0"})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("p",{className:"text-sm text-gray-500 flex items-center gap-2",children:[(0,a.jsx)(B.default,{src:"/images/icon/icons8-analytics-90.png",alt:"Analytics Icon",height:20,width:20}),"According to Semrush",(0,a.jsx)(B.default,{src:"/images/logs/semrush_238729.webp",alt:"SEMrush Icon",height:20,width:20})]}),(0,a.jsxs)("div",{className:"text-sm font-semibold flex items-center gap-1 ".concat(c>=0?"text-green-600":"text-red-600"),children:[c>=0?(0,a.jsx)(x.Z,{className:"text-sm"}):(0,a.jsx)(u.Z,{className:"text-sm"}),c>=0?"+":"",c.toFixed(1),"%"]})]})]}),(0,a.jsxs)("div",{className:"flex gap-6",children:[i&&i.length>0?(0,a.jsxs)("div",{className:"flex-[3]",children:[(0,a.jsx)("div",{className:"h-56 w-full -ml-2",children:(0,a.jsx)(ei.h,{width:"100%",height:"100%",children:(0,a.jsxs)(eo.c,{data:i,margin:{top:10,right:10,left:0,bottom:10},children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"trafficGradientChart",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"#f97316",stopOpacity:.6}),(0,a.jsx)("stop",{offset:"100%",stopColor:"#f97316",stopOpacity:.1})]})}),(0,a.jsx)(ed.q,{stroke:"#e5e7eb",vertical:!1}),(0,a.jsx)(ec.K,{dataKey:"month",tick:{fontSize:10},axisLine:!1,tickLine:!1,tickMargin:8}),(0,a.jsx)(em.B,{tick:{fontSize:10},axisLine:!1,tickLine:!1,tickFormatter:m,tickMargin:4,width:50}),(0,a.jsx)(ex.uN,{type:"monotone",dataKey:"traffic",stroke:"none",fill:"url(#trafficGradientChart)",strokeWidth:0,connectNulls:!1}),(0,a.jsx)(eu.x1,{type:"monotone",dataKey:"traffic",stroke:"#f97316",strokeWidth:2,dot:{fill:"#f97316",strokeWidth:2,r:4},activeDot:{r:5,stroke:"#f97316",strokeWidth:2},connectNulls:!1}),(0,a.jsx)(eh.u,{content:e=>{let{active:t,payload:s,label:r}=e;return t&&s&&s.length?(0,a.jsxs)("div",{className:"bg-gray-800 text-white px-3 py-2 rounded-lg shadow-lg",children:[(0,a.jsx)("p",{className:"font-semibold text-sm",children:r}),(0,a.jsx)("p",{className:"text-xs",children:m(s[0].value)})]}):null},cursor:{stroke:"#e5e7eb",strokeWidth:1,strokeDasharray:"3 3"}})]})})}),(0,a.jsxs)("div",{className:"text-xs text-gray-500 mt-2 text-center",children:["Last ",i.length," months"]})]}):null,(0,a.jsxs)("div",{className:i&&i.length>0?"flex-1 min-w-[200px]":"w-full",children:[(0,a.jsxs)("div",{className:"mb-3",children:[(0,a.jsx)("h4",{className:"text-xs font-medium text-gray-700 mb-1",children:"Traffic by Country"}),(0,a.jsx)("div",{className:"space-y-0.5",children:n&&n.length>0?(()=>{let e=100-n.reduce((e,t)=>
1e+t.percentage,0),t=n.slice(0,4);return(0,a.jsxs)(a.Fragment,{children:[t.map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)(e_,{countryCode:e.code,countryName:e.name}),(0,a.jsx)("span",{className:"text-xs text-gray-700",children:e.name})]}),(0,a.jsxs)("span",{className:"text-xs font-semibold text-gray-800",children:[e.percentage,"%"]})]},t)),e>0&&(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("div",{className:"w-4 h-3 bg-gray-300 rounded-sm flex items-center justify-center",children:(0,a.jsx)("span",{className:"text-xs text-gray-600",children:"\uD83C\uDF0D"})}),(0,a.jsx)("span",{className:"text-xs text-gray-700",children:"Others"})]}),(0,a.jsxs)("span",{className:"text-xs font-semibold text-gray-800",children:[e,"%"]})]})]})})():(0,a.jsx)("div",{className:"text-xs text-gray-500",children:"No country data available"})})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-xs font-medium text-gray-700 mb-1",children:"Traffic by Source"}),(0,a.jsx)("div",{className:"space-y-0.5",children:l&&l.length>0?(()=>{let e=100-l.reduce((e,t)=>e+t.percentage,0),t=l.slice(0,4);return(0,a.jsxs)(a.Fragment,{children:[t.map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("div",{className:"w-2 h-2 rounded-full ".concat("search"===e.name?"bg-blue-500":"direct"===e.name?"bg-green-500":"social"===e.name?"bg-purple-500":"referral"===e.name?"bg-orange-500":"bg-gray-500")}),(0,a.jsx)("span",{className:"text-xs text-gray-700 capitalize",children:e.name})]}),(0,a.jsxs)("span",{className:"text-xs font-semibold text-gray-800",children:[e.percentage,"%"]})]},t)),e>0&&(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("div",{className:"w-2 h-2 rounded-full bg-gray-400"}),(0,a.jsx)("span",{className:"text-xs text-gray-700",children:"Others"})]}),(0,a.jsxs)("span",{className:"text-xs font-semibold text-gray-800",children:[e,"%"]})]})]})})():(0,a.jsx)("div",{className:"text-xs text-gray-500",children:"No traffic source data available"})})]})]})]})]})};function eC(e){var t,s;let{apiEndpoint:r,title:x,description:u,showExport:j=!1,exportEndpoint:W,allowedExportProfiles:$=[],onRowClick:et,additionalActions:ea,customColumns:en=[],hideColumns:ei=[],showPublishedExamplesColumn:eo=!1,showExtraFilters:ed=!0,defaultActiveFilter:ec=null,initialFiltersOpen:em=!0,hideHeader:ex=!1}=e,eu=(0,K.useRouter)(),eh=(0,K.useSearchParams)(),ef=(0,K.usePathname)(),eC=null==ef?void 0:ef.includes("press-release-dashboard"),{commonDetails:eA}=(0,d.n)(),[eD,eT]=(0,U.useState)([]),[eI,eR]=(0,U.useState)(),eP=(0,U.useRef)(new Map),[eZ,eL]=(0,U.useState)(0),eF=(0,U.useCallback)(async e=>{var t,s,a,r,n,l;let i=null!==(l=null!==(n=null!==(r=null==e?void 0:e.website_id)&&void 0!==r?r:null==e?void 0:null===(s=e.published_sites)||void 0===s?void 0:null===(t=s.website)||void 0===t?void 0:t.uid)&&void 0!==n?n:null==e?void 0:null===(a=e.website)||void 0===a?void 0:a.uid)&&void 0!==l?l:null==e?void 0:e.uid;if(!(!i||eP.current.has(String(i)))){eP.current.set(String(i),"__loading__"),eL(e=>e+1);try{let e=E.default.get("login_access_token"),t=await Z.default.get("".concat(c.BASE_URL,"project-publishers/").concat(i),{headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}}),s=Array.isArray(t.data)?t.data[0]:t.data,a=(null==s?void 0:s.delivery_time_message)||"No recent delivery performance is available for this publisher and website.";eP.current.set(String(i),a)}catch(e){eP.current.set(String(i),"Unable to load delivery performance right now.")}finally{eL(e=>e+1)}}},[]),eE=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),[eO,eB]=(0,U.useState)([]),[ez,eK]=(0,U.useState)([]),[eU,eG]=(0,U.useState)([]),[eW,eH]=(0,U.useState)({categories:[],language:"",linkType:"",countries:[],minDaRange:"",maxDa
1Range:"",minDrRange:"",maxDrRange:"",minTrafficRange:"",maxTrafficRange:"",minPriceRange:"",maxPriceRange:"",is_indexable:"",is_sponsored:""}),[eY,eJ]=(0,U.useState)(""),[eV,eq]=(0,U.useState)(!1),[eQ,eX]=(0,U.useState)(!1);(0,U.useRef)(!0);let e$=(0,U.useRef)(!1),e0=(0,U.useRef)(!1);(0,U.useRef)(eW);let[e1]=(0,ee.Nr)(eW,1e3),[e2,e5]=(0,U.useState)([]),[e9,e4]=(0,U.useState)(em),[e7,e8]=(0,U.useState)(!1),[e6,e3]=(0,U.useState)(""),[te,tt]=(0,U.useState)(""),[ts,ta]=(0,U.useState)(),[tr,tn]=(0,U.useState)(1),[tl,ti]=(0,U.useState)(10),[to,td]=(0,U.useState)(!0),[tc,tm]=(0,U.useState)(!1),[tx,tu]=(0,U.useState)(""),[th,tf]=(0,U.useState)(""),[tp,tg]=(0,U.useState)(!1),[tb,tj]=(0,U.useState)(!1),[tv,ty]=(0,U.useState)(!1),[tw,tN]=(0,U.useState)(""),[tk,t_]=(0,U.useState)(""),[tS,tM]=(0,U.useState)(ec),[tC,tA]=(0,U.useState)(""),[tD,tT]=(0,U.useState)("asc"),[tI,tR]=(0,U.useState)([]),[tP,tZ]=(0,U.useState)(!1),[tL,tF]=(0,U.useState)(!1),[tE,tO]=(0,U.useState)(null),[tB,tz]=(0,U.useState)([]),[tK,tU]=(0,U.useState)(!1),[tG,tW]=(0,U.useState)(""),[tH,tY]=(0,U.useState)({min_deals:"",max_deals:"",domain_age_years_min:"",domain_age_years_max:"",tat_min:"",tat_max:"",min_ahref_traffic:"",max_ahref_traffic:"",min_semrush_traffic:"",max_semrush_traffic:"",min_semrush_score:"",max_semrush_score:"",min_spam_score:"",max_spam_score:"",top_country:"",addedDateRange:null}),[tJ]=(0,ee.Nr)(tH,1e3),tV=(0,U.useRef)(!0),tq=e=>Array.isArray(null==e?void 0:e.sample_posts)&&e.sample_posts.length>0?e.sample_posts:[],tQ=e=>(null==e?void 0:e.title)&&String(e.title).trim()?e.title:(null==e?void 0:e.snippet)&&String(e.snippet).trim()?String(e.snippet).slice(0,80)+"...":(null==e?void 0:e.post_url)||"Sample post",tX=e=>{var t;return((null==e?void 0:null===(t=e.website)||void 0===t?void 0:t.domain)||(null==e?void 0:e.domain)||(null==e?void 0:e.website_url)||"").toString().trim()},t$=async e=>{var t,s,a;let r=tX(e);if(!r){tz([]),tW("Domain not available for this website.");return}tU(!0),tW(""),tz([]);try{let e=E.default.get("login_access_token"),s=new URLSearchParams({q:r,type:"linkinsertion",page:"1",page_size:"10"}),a=await Z.default.get("".concat(c.BASE_URL,"ai/loadmore/?").concat(s.toString()),{headers:e?{Authorization:"Bearer ".concat(e)}:{}}),n=Array.isArray(null==a?void 0:null===(t=a.data)||void 0===t?void 0:t.results)?a.data.results.map(e=>({post_id:null==e?void 0:e.post_id,post_url:null==e?void 0:e.post_url,title:null==e?void 0:e.title,snippet:(null==e?void 0:e.snippet)||""})):[];tz(n)}catch(e){tW((null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(s=a.data)||void 0===s?void 0:s.detail)||"Failed to load more posts."),tz([])}finally{tU(!1)}},t0=async e=>{tO(e),tF(!0),await t$(e)},t1=()=>{e8(!1),e3(""),tt("")};(0,U.useEffect)(()=>{eA&&!eQ&&(eB(eA.language||[]),eK(eA.link_type||[]),eG(eA.categories||[]),e5(eA.countries||[]),eX(!0))},[eA,eQ]),(0,U.useEffect)(()=>{if(!eQ||e$.current)return;let e=new URLSearchParams(eh.toString()),t={...eW};Object.keys(t).forEach(s=>{if("categories"===s)return;let a=e.get(s);a&&(t[s]=a)});let s=e.get("categories");if(s&&eU.length>0){let e=s.split(",").map(e=>e.trim()).filter(Boolean).map(e=>{var t;return null===(t=eU.find(t=>eE(t.title)===e))||void 0===t?void 0:t.uid}).filter(Boolean);e.length>0&&(t.categories=e)}eH(t);let a=(0,ep.G)(e.get("search")||"");a&&(eJ(a),si(a));let r=e.get("bulk_search");if(r){let e=(0,ep.G)(r).split(",").map(e=>(0,ep.G)(e)).filter(Boolean);e.length>0&&(tN(e.join(",")),t_(e.join("\n")),tj(!0))}let n=e.get("filter");n&&tM(n);let l=e.get("page");l&&tn(Number(l));let i=e.get("page_size");i&&ti(Number(i));let o=e.get("sort_by"),d=e.get("sort_order");if(o&&d){let e=o.split(","),t=d.split(",");tR(e.map((e,s)=>({field:e,order:t[s]})))}let c={...tH};Object.keys(c).forEach(t=>{if("addedDateRange"===t){let s=e.get("added_date_after"),a=e.get("added_date_before");s&&a&&(c[t]=[es()(s),es()(a)])}else{let s=e.get(t);s&&(c[t]=s)}}),tY(c),e$.current=!0,eq(!0)},[eh,eQ]);let t2=(e,t)=>{eH({...eW,[e]:""===t?"":t}),tn(1)},t5=(e,t)=>{tY(s=>({...s,[e]:t})),tn(1)},t9=(e,t)=>
1{t2(e,t)},t4=()=>{tY({min_deals:"",max_deals:"",domain_age_years_min:"",domain_age_years_max:"",tat_min:"",tat_max:"",min_ahref_traffic:"",max_ahref_traffic:"",min_semrush_traffic:"",max_semrush_traffic:"",min_semrush_score:"",max_semrush_score:"",min_spam_score:"",max_spam_score:"",top_country:"",addedDateRange:null})},t7=function(e,t,s,a){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],n={page:e,page_size:t,search:a};return Object.entries(s).forEach(e=>{let[t,s]=e;if("categories"===t){if(Array.isArray(s)&&s.length>0){let e=s.map(e=>{let t=eU.find(t=>t.uid===e);return t?eE(t.title):null}).filter(Boolean);e.length>0&&(n.categories=e.join(","))}return}if("countries"===t){Array.isArray(s)&&s.length>0&&(n.countries=s.join(","));return}""===s||null==s||(Array.isArray(s)&&s.length>0?n[t]=s.join(","):Array.isArray(s)||(n[t]=s))}),Object.entries(tH).forEach(e=>{let[t,s]=e;if(""!==s&&null!=s){if("addedDateRange"===t&&Array.isArray(s)&&2===s.length){var a,r;n.added_date_range_after=null===(a=s[0])||void 0===a?void 0:a.format("YYYY-MM-DD"),n.added_date_range_before=null===(r=s[1])||void 0===r?void 0:r.format("YYYY-MM-DD")}else Array.isArray(s)?s.length>0&&(n[t]=s.join(",")):n[t]=s}}),r.length>0&&(n.sort_by=r.map(e=>e.field).join(","),n.sort_order=r.map(e=>e.order).join(",")),"top_selling"===tS?n.top_selling=!0:"newly_added"===tS&&(n.newly_add=!0),n},t8=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],l=arguments.length>5?arguments[5]:void 0,i=E.default.get("login_access_token");if(!i){alert("You need to log in first.");return}if(!eV&&!l)return;let o=l||Z.default.CancelToken.source();td(!0);try{let l=await Z.default.get("".concat(c.BASE_URL).concat(r),{params:t7(e,t,s,a,n),headers:{Authorization:"Bearer ".concat(i)},cancelToken:o.token});if(tV.current){r.includes("linkInsertionSites")||r.includes("forbiddenSites")?eR(l.data.count):eR(l.data.fake_count||l.data.count);let e=l.data.results||[];r.includes("publisher-sites/premium")&&(e=e.filter(e=>{var t;return(null===(t=e.website)||void 0===t?void 0:t.status)===!0})),eT(e),ta(l.data.count),e0.current||(e0.current=!0)}}catch(e){Z.default.isCancel(e)||tV.current&&console.error("Failed to fetch websites:",e)}finally{tV.current&&td(!1)}if(!l)return{cancelRequest:()=>o.cancel("Request cancelled by user")}},t6=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";arguments.length>4&&void 0!==arguments[4]&&arguments[4],arguments.length>5&&void 0!==arguments[5]&&arguments[5];let n=E.default.get("login_access_token");if(!n){alert("You need to log in first.");return}tm(!0);try{let l=await Z.default.get("".concat(c.BASE_URL).concat(W||"".concat(r,"?export=csv")),{params:t7(e,t,s,a||tw),headers:{Authorization:"Bearer ".concat(n)},responseType:"blob"}),i=window.URL.createObjectURL(new Blob([l.data])),o=document.createElement("a");o.href=i,o.download="exported_data.csv",document.body.appendChild(o),o.click(),document.body.removeChild(o)}catch(e){console.error("Failed to export websites:",e)}finally{tm(!1)}},t3=e=>({content_p_price:"price",da:"da",dr:"dr",traffic:"traffic",semrush_score:"semrush_score"})[e]||e,{selectedRecord:se,setSelectedRecord:st}=(0,o.a)(),ss=(e,t)=>{if(et){et(e);return}let s=window.location.pathname;if(localStorage.setItem("previousPage",s),s.includes("all-publisher-sites")?localStorage.setItem("selectedMenu",'"all publisher sites"'):s.includes("premium-sites")?localStorage.setItem("selectedMenu",'"premium sites"'):s.includes("top-selling")?localStorage.setItem("selectedMenu",'"all publisher sites"'):s.includes("trusted-sites")?localStorage.setItem("selectedMenu",'"all publisher sites"'):s.includes("owner-sites")?localStorage.setItem("selectedMenu",'"owner sites"'):s.includes("verified-websites")?localStorage.setItem("selectedMenu",'"verified sites"'):s.includes("favorite-sites")?localStorage.setItem("selectedMenu",'"favourite sites"'):s.includes("blacklisted-sites")?localStorage.setItem("selectedMenu",'"blacklisted sites"'):s.includes("my-platform")?localStorage.setItem("selectedMenu",'"my platform"'):s.includes("link-insertion-sites")?localStorage.setItem("selectedMenu",'"link insertion sites"'):s.includes("forbidden-sites")?localStorage.setItem("selectedMenu",'"forbidden sites"'):s.includes("press-release-dashboard")&&localStorage.setItem("selectedMenu",'"press releases"'),e&&localStorage.setItem("selectedRecord",JSON.stringify(e)),st(e),t&&String(t).trim()){localStorage.setItem("selectedPostType","insertion"),localStorage.setItem("prefilledInsertionPostUrl",String(t).trim()),window.open("/task-create","_blank");return}window.open("/project-publisher-site","_blank")},sa=async e=>{let t=E.default.get("login_access_token");try{let s=await Z.default.post("".concat(c.BASE_URL,"favourite-sites/"),{site_id:e.uid,status:!0},{headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"}});return G.default.success("Added Favourite Site"),t8(),s}catch(e){console.error("Error adding website:",e.response||e)}},sr=async e=>{let t=E.default.get("login_access_token");try{let s=await Z.default.post("".concat(c.BASE_URL,"favourite-sites/"),{site_id:e.uid,status:!1},{headers:{Authorization:"Bearer ".concat(t),"Content-Type":"application/json"}});return G.default.success("Added Blacklisted Site"),t8(),s}catch(e){console.error("Error adding website:",e.response||e)}},sn=async()=>{let e=E.default.get("login_access_token");tg(!0);try{let t=await Z.default.post("".concat(c.BASE_URL,"publisher-site-report/"),{uid:se.uid,user_id:se.user_id,report_comment:te||e6},{headers:{Authorization:"Bearer ".concat(e),"Content-Type":"application/json"}});return G.default.success("Reported Successfully"),t8(),t1(),t}catch(e){console.error("Error Reporting website:",e.response||e)}finally{tg(!1)}},[sl,si]=(0,U.useState)((()=>{let e=localStorage.getItem("selectedWebsite");if(e){let t=JSON.parse(e);if(new Date().getTime()<t.expiry)return t.value;localStorage.removeItem("selectedWebsite")}return""})()),[so]=(0,ee.Nr)(sl,1e3),sd=(0,U.useRef)(null);es().extend(er()),es().extend(el());let sc=e=>{let t=es()(),s=es()(e),a=t.diff(s,"year"),r=t.diff(s.add(a,"year"),"month"),n=t.diff(s.add(a,"year").add(r,"year"),"day"),l="";return a>0&&(l+="".concat(a,"Y ").concat(""," ")),r>0&&(l+="".concat(r,"M ").concat(""," ")),n>0&&(l+="".concat(n,"D ").concat(""," ")),l.trim()},sm=(e,t,s)=>{eJ((0,ep.G)(sl)),tn(1)},sx=e=>{e&&e(),si(""),tN(""),eJ("")},su=()=>{tj(!0)},sh=()=>{tj(!1),t_("")},sf=e=>{if("top_selling"===e){let e="".concat(window.location.origin).concat(window.location.pathname,"?filter=top_selling");window.open(e,"_blank");return}if("newly_added"===e){let e="".concat(window.location.origin).concat(window.location.pathname,"?filter=newly_added");window.open(e,"_blank");return}if("digital_pr"===e){eu.push("/press-release-dashboard");return}tS===e?tM(null):tM(e),tn(1)},sp=()=>{tZ(!1)};(0,U.useEffect)(()=>
1{if(!eV||!eQ)return;let e=Z.default.CancelToken.source(),t=setTimeout(()=>{t8(tr,tl,e1,eY||tw||"",tI,e)},100);return()=>{clearTimeout(t),e.cancel("Request cancelled by component unmount")}},[tr,tl,e1,eY,tw,tI,tS,tJ,eV,eQ]);let{fetchUsers:sg,userdata:sb}=(0,i.U)(),[sj,sv]=(0,U.useState)([]);(0,U.useEffect)(()=>{let e=()=>{let e=document.querySelector(".ant-table-body")||document.querySelector(".ant-table-content")||document.querySelector(".table-container");if(e){let t=e.scrollLeft,s=document.querySelectorAll('[id^="domain-"]');t>0?s.forEach(e=>{e.style.opacity="1"}):s.forEach(e=>{e.style.opacity="0"})}},t=setTimeout(()=>{let t=document.querySelector(".ant-table-body")||document.querySelector(".ant-table-content")||document.querySelector(".table-container");if(t)return t.addEventListener("scroll",e),window.addEventListener("scroll",e),()=>{t.removeEventListener("scroll",e),window.removeEventListener("scroll",e)}},1e3);return()=>{clearTimeout(t)}},[eD]);let sy=(0,U.useCallback)(()=>{if(!e0.current)return;let e=new URLSearchParams(eh.toString());Object.entries(e1).forEach(t=>{let[s,a]=t;"categories"!==s&&(null==a||""===a||Array.isArray(a)&&0===a.length?e.delete(s):e.set(s,String(a)))});let t=Array.isArray(e1.categories)?e1.categories.filter(Boolean):e1.categories?[e1.categories]:[];if(t.length>0){let s=t.map(e=>{let t=eU.find(t=>t.uid===e);return t?eE(t.title):null}).filter(Boolean);s.length>0?e.set("categories",s.join(",")):e.delete("categories")}else e.delete("categories");eY?e.set("search",eY):e.delete("search"),tw?e.set("bulk_search",tw):e.delete("bulk_search"),tS?e.set("filter",tS):e.delete("filter"),tI.length>0?(e.set("sort_by",tI.map(e=>e.field).join(",")),e.set("sort_order",tI.map(e=>e.order).join(","))):(e.delete("sort_by"),e.delete("sort_order")),Ob
1ject.entries(tJ).forEach(t=>{let[s,a]=t;if(""!==a&&null!=a){if("addedDateRange"===s&&Array.isArray(a)&&2===a.length){var r,n;e.set("added_date_after",null===(r=a[0])||void 0===r?void 0:r.format("YYYY-MM-DD")),e.set("added_date_before",null===(n=a[1])||void 0===n?void 0:n.format("YYYY-MM-DD"))}else e.set(s,String(a))}else"addedDateRange"===s?(e.delete("added_date_after"),e.delete("added_date_before")):e.delete(s)}),window.history.replaceState(null,"","".concat(ef,"?").concat(e.toString()))},[e1,eY,tw,tS,tr,tl,tI,tJ,ef,eh]);(0,U.useEffect)(()=>{if(!e0.current)return;let e=setTimeout(()=>{sy()},500);return()=>clearTimeout(e)},[sy]),(0,U.useEffect)(()=>{if(null==sb?void 0:sb.id){ty((null==sb?void 0:sb.export)||!1);let e=[{title:"Price",dataIndex:"content_p_price",key:"content_p_price",width:150,fixed:"left",align:"center",sorter:(e,t)=>(e.content_p_price||e.content_cp_price||e.link_insert_price||0)-(t.content_p_price||t.content_cp_price||t.link_insert_price||0),onCell:()=>({style:{background:"#fff",zIndex:20,position:"sticky",left:0}}),onHeaderCell:()=>({style:{background:"#fff",zIndex:20,position:"sticky",left:0}}),render:(e,t)=>{var s;let r=window.location.pathname,n=r.includes("/forbidden-sites")?"N/A"!==t.cbd_p_price?t.cbd_p_price:0:r.includes("/link-insertion-sites")?"N/A"!==t.link_insert_price?t.link_insert_price:0:"N/A"!==t.content_p_price?t.content_p_price:"N/A"!==t.content_cp_price?t.content_cp_price:"N/A"!==t.link_insert_price?t.link_insert_price:0;return r.includes("/link-insertion-sites"),(0,a.jsx)("div",{className:"flex flex-col gap-2 p-2",children:(0,a.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,a.jsx)("div",{className:"text-gray-800 text-xs font-medium truncate max-w-[120px] opacity-0 transition-opacity duration-300",id:"domain-".concat(t.website_id),children:(null===(s=t.website)||void 0===s?void 0:s.domain)||"N/A"}),(0,a.jsxs)("div",{className:"flex gap-2 items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,a.jsx)("button",{className:"bg-blue-500 hover:bg-blue-600 text-white font-semibold px-3 py-1.5 rounded text-sm transition-colors duration-200 w-16",onClick:()=>ss(t),children:"Buy Now"}),(0,a.jsxs)("span",{className:"text-gray-800 text-sm font-medium",children:[n," USD"]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(y.Z,{title:"Add To Favorites",trigger:"hover",placement:"top",zIndex:100010,destroyOnHidden:!0,getPopupContainer:e=>document.body,autoAdjustOverflow:!0,children:(0,a.jsx)(w.ZP,{className:"p-1 h-6 w-6 flex items-center justify-center bg-white border border-gray-300 hover:border-orange-400 transition-colors duration-200",onClick:()=>sa(t),children:t.is_favourite?(0,a.jsx)(q.Yqy,{className:"text-sm text-orange-500"}):(0,a.jsx)(q.iqB,{className:"text-sm text-orange-400"})})}),(0,a.jsx)(y.Z,{title:"Add To Blacklist",trigger:"hover",placement:"top",zIndex:100010,destroyOnHidden:!0,getPopupContainer:e=>document.body,autoAdjustOverflow:!0,children:(0,a.jsx)(w.ZP,{className:"p-1 h-6 w-6 flex items-center justify-center bg-white border border-gray-300 hover:border-red-400 transition-colors duration-200",onClick:()=>sr(t),children:(0,a.jsx)(H.wQ2,{className:"text-sm text-gray-500 hover:text-red-500 transition-colors duration-200"})})})]})]})]})})},visible:!0},{title:"Website",dataIndex:"website",key:"website",align:"center",width:320,render:(e,t)=>{var s,r,n;let l="top_selling"===tS,i="newly_added"===tS,o=(()=>{var e,s,a,r,n;let l=(null==t?void 0:null===(s=t.country_detail)||void 0===s?void 0:null===(e=s[0])||void 0===e?void 0:e.name)||"WorldWide",i=null==t?void 0:null===(n=t.website)||void 0===n?void 0:null===(r=n.semrush_data)||void 0===r?void 0:null===(a=r.ahrefs_data)||void 0===a?void 0:a.top_country,o=null,d=null;if(i&&"object"==typeof i){let e=Object.keys(i)[0],t=null==e?void 0:e.toUpperCase();if(t&&e){o=(0,m.Fh)(t)||t;let s=i[e];if(s){let e=Number(s);d=!isNaN(e)&&isFinite(e)?(0,O.ZP)(e):"N/A"}}}return"WorldWide"!==l?l:o?d?"WorldWide | ".concat(o," (").concat(d,")"):"WorldWide | ".concat(o):"WorldWide"})(),d=((null==t?void 0:null===(s=t.country_detail)||void 0===s?void 0:s.length)||0)>1;return(0,a.jsxs)("div",{className:"flex flex-col items-start gap-0.5 relative",children:[l&&(0,a.jsx)(ey,{}),i&&(0,a.jsx)(ew,{}),(0,a.jsx)("div",{className:"flex gap-2 items-center",children:(0,a.jsxs)("div",{className:"flex items-center gap-2 dark:text-primarydark",children:[(0,a.jsx)(y.Z,{title:"Example Site",trigger:"hover",placement:"top",zIndex:100010,getPopupContainer:()=>document.body,children:(0,a.jsx)("a",{href:t.gp_site1?t.gp_site1.startsWith("http://")||t.gp_site1.startsWith("https://")?t.gp_site1:"http://".concat(t.gp_site1):"#",target:"_blank",rel:"noopener noreferrer nofollow",className:"text-primarydark text-lg cursor-pointer",children:(0,a.jsx)(V.$OI,{})})}),(0,a.jsx)(ev,{src:"https://www.google.com/s2/favicons?domain=".concat(e.domain),alt:e.domain}),(0,a.jsx)(y.Z,{title:(null==sb?void 0:sb.email_is_verify)?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(z.default,{href:"/profile",className:"text-primarydark font-medium",children:"Verify your email"})," to view full domain"]}),zIndex:100010,getPopupContainer:()=>document.body,children:(0,a.jsxs)("div",{className:"website text-sm font-bold text-primarydark truncate cursor-pointer hover:text-primarydark flex items-center gap-1",onClick:()=>
1{if(et)et(t);else{let e=window.location.pathname;localStorage.setItem("previousPage",e),e.includes("all-publisher-sites")?localStorage.setItem("selectedMenu",'"all publisher sites"'):e.includes("premium-sites")?localStorage.setItem("selectedMenu",'"premium sites"'):e.includes("top-selling")?localStorage.setItem("selectedMenu",'"all publisher sites"'):e.includes("trusted-sites")?localStorage.setItem("selectedMenu",'"all publisher sites"'):e.includes("owner-sites")?localStorage.setItem("selectedMenu",'"owner sites"'):e.includes("verified-websites")?localStorage.setItem("selectedMenu",'"verified sites"'):e.includes("favorite-sites")?localStorage.setItem("selectedMenu",'"favourite sites"'):e.includes("blacklisted-sites")?localStorage.setItem("selectedMenu",'"blacklisted sites"'):e.includes("my-platform")?localStorage.setItem("selectedMenu",'"my platform"'):e.includes("link-insertion-sites")?localStorage.setItem("selectedMenu",'"link insertion sites"'):e.includes("forbidden-sites")?localStorage.setItem("selectedMenu",'"forbidden sites"'):e.includes("press-release-dashboard")&&localStorage.setItem("selectedMenu",'"press releases"'),t&&localStorage.setItem("selectedRecord",JSON.stringify(t)),st(t),window.open("/project-publisher-site","_blank")}},children:[(0,a.jsx)("span",{className:"truncate",children:(null==sb?void 0:sb.email_is_verify)?e.domain:"".concat(e.domain.slice(0,3),"...")}),(null==t?void 0:t.is_press)&&(0,a.jsx)(eN,{})]})})]})}),(0,a.jsxs)("div",{className:"flex items-center text-sm",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(X.YdF,{className:"text-primarydark text-lg"}),(0,a.jsx)("span",{className:"inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs font-semibold bg-sky-500/20 border-transparent text-sky-950 dark:text-sky-200 shrink-0 whitespace-nowrap",children:"Max:"})]}),(0,a.jsx)("span",{className:"text-sm text-black font-semibold px-1",children:null==t?void 0:t.max_link}),(null==t?void 0:null===(r=t.linktype_detail)||void 0===r?void 0:r.title)&&(0,a.jsxs)("span",{className:"text-sm text-black font-semibold ",children:[null==t?void 0:null===(n=t.linktype_detail)||void 0===n?void 0:n.title," ",(null==t?void 0:t.max_link)>1?"Links":"Link"," "]})]}),(0,a.jsxs)("div",{className:"flex items-center text-sm","data-delivery-msg-version":eZ,children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(q.dKE,{className:"text-primarydark text-lg"}),(0,a.jsx)("span",{className:"inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs font-semibold bg-amber-500/20 border-transparent text-amber-950 dark:text-amber-200 shrink-0 whitespace-nowrap",children:"Turnaround Time:"})]}),(0,a.jsx)(v.Z,{title:(()=>{var e,s,r,n,l,i;let o=null!==(i=null!==(l=null!==(n=null==t?void 0:t.website_id)&&void 0!==n?n:null==t?void 0:null===(s=t.published_sites)||void 0===s?void 0:null===(e=s.website)||void 0===e?void 0:e.uid)&&void 0!==l?l:null==t?void 0:null===(r=t.website)||void 0===r?void 0:r.uid)&&void 0!==i?i:null==t?void 0:t.uid,d=o?eP.current.get(String(o)):void 0,c="__loading__"===d;return(0,a.jsxs)("div",{className:"relative min-w-[235px] max-w-[305px] rounded-2xl overflow-hidden bg-gradient-to-br from-indigo-50 via-sky-50 to-violet-50 border border-white",style:{boxShadow:"0 22px 48px -12px rgba(99, 102, 241, 0.28), 0 6px 16px -6px rgba(15, 23, 42, 0.12)"},children:[(0,a.jsx)("div",{className:"pointer-events-none absolute -top-8 -right-8 w-24 h-24 rounded-full bg-gradient-to-br from-fuchsia-200/60 to-pink-200/40 blur-2xl"}),(0,a.jsx)("div",{className:"pointer-events-none absolute -bottom-10 -left-8 w-28 h-28 rounded-full bg-gradient-to-br from-sky-200/50 to-cyan-200/30 blur-2xl"}),(0,a.jsxs)("div",{className:"relative px-4 pt-3.5 pb-3.5",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2.5 pb-2.5 mb-2.5 border-b border-white/70",children:[(0,a.jsx)("span",{className:"flex items-center justify-center w-7 h-7 rounded-xl bg-gradient-to-br from-indigo-400 via-violet-400 to-fuchsia-400 shrink-0 ring-2 ring-white/80",style:{boxShadow:"0 4px 10px -2px rgba(129, 89, 217, 0.45)"},children:(0,a.jsx)(q.dKE,{className:"text-white text-[13px]"})}),(0,a.jsxs)("div",{className:"flex flex-col leading-none",children:[(0,a.jsx)("span",{className:"text-[11px] font-bold uppercase tracking-wider bg-gradient-to-r from-indigo-600 via-violet-600 to-fuchsia-600 bg-clip-text text-transparent",children:"Delivery Performance"}),(0,a.jsx)("span",{className:"text-[9.5px] font-medium text-indigo-400/80 mt-0.5",children:"Publisher insight"})]})]}),c?(0,a.jsxs)("span",{className:"flex items-center gap-2 text-[12.5px] text-slate-500",children:[(0,a.jsx)(N.Z,{size:"small"})," Fetching latest performance..."]}
1):(0,a.jsx)("p",{className:"text-[12.5px] leading-relaxed text-slate-800 m-0",children:d||"Hover to view this publisher's recent delivery performance."})]})]})})(),placement:"top",overlayClassName:"custom-tooltip",onOpenChange:e=>e&&eF(t),zIndex:100010,getPopupContainer:()=>document.body,children:(0,a.jsx)("span",{className:"text-sm text-black font-semibold px-1 cursor-help border-b border-dashed border-gray-400 hover:border-primarydark hover:text-primarydark transition-colors",children:(()=>{let e=(null==t?void 0:t.recent_delivery_time_days)==null||isNaN(Number(t.recent_delivery_time_days))?null:Number(t.recent_delivery_time_days),s=(null==t?void 0:t.delivery_time)==null||isNaN(Number(t.delivery_time))?null:Number(t.delivery_time),a=null!=e?e:s;return null!=a?"".concat(a," ").concat(a>1?"Days":"Day"):"N/A"})()})})]}),(0,a.jsxs)("div",{className:"flex items-center text-sm",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)(Q.JS8,{className:"text-primarydark text-lg"}),(0,a.jsx)("span",{className:"inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs font-semibold bg-emerald-500/20 border-transparent text-emerald-950 dark:text-emerald-200 shrink-0 whitespace-nowrap",children:"Country:"})]}),d?(0,a.jsx)(y.Z,{trigger:"hover",placement:"top",zIndex:100010,getPopupContainer:()=>document.body,content:(0,a.jsxs)("div",{className:"max-w-[280px]",children:[(0,a.jsxs)("div",{className:"mb-2 text-xs font-semibold text-gray-500",children:["Available in ",t.country_detail.length," Countries"]}),(0,a.jsx)("div",{className:"max-h-[240px] overflow-y-auto flex flex-col gap-1.5 pr-1",children:t.country_detail.map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center gap-2 text-sm text-gray-800",children:[(0,a.jsx)(e_,{countryCode:"string"==typeof(null==e?void 0:e.name)&&e.name?(0,m.so)(e.name):"",countryName:"string"==typeof(null==e?void 0:e.name)?e.name:""}),(0,a.jsx)("span",{children:"string"==typeof(null==e?void 0:e.name)&&e.name?e.name:"Unknown"})]},t))})]}),children:(0,a.jsxs)("span",{className:"text-sm text-black font-semibold px-1 cursor-help border-b border-dashed border-gray-400 hover:border-primarydark hover:text-primarydark transition-colors",children:[o," +".concat(t.country_detail.length-1," Others")]})}):(0,a.jsx)("span",{className:"text-sm text-black font-semibold px-1",children:o})]})]})},visible:!0},...eo?[{title:"Published Examples",dataIndex:"sample_posts",key:"sample_posts",align:"center",width:360,render:(e,t)=>{var s;let r=tq(t),n=r[0],l=!!((null==n?void 0:n.post_url)&&(null==n?void 0:n.post_url)!=="-"),i=Number(null!==(s=null==t?void 0:t.total_available_posts)&&void 0!==s?s:0),o=!!Number.isFinite(i)&&i>r.length,d=ef.includes("/link-insertion-sites"),c=l&&(r.length>1||o||d);return l?(0,a.jsxs)("div",{className:"flex flex-col items-start gap-1.5",children:[l?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"w-full flex items-start gap-2",children:[(0,a.jsx)("a",{href:n.post_url,target:"_blank",rel:"noopener noreferrer nofollow",className:"text-xs text-primarydark hover:underline break-all text-left",children:tQ(n)},n.post_id||n.post_url),l&&(0,a.jsx)("button",{type:"button",className:"bg-blue-500 hover:bg-blue-600 text-white font-semibold px-2.5 py-1 rounded text-xs transition-colors duration-200 shrink-0 mt-0.5",onClick:()=>ss(t,null==n?void 0:n.post_url),children:"Buy Now"})]}),(0,a.jsx)("a",{href:n.post_url,target:"_blank",rel:"noopener noreferrer nofollow",className:"text-xs text-gray-500 hover:underline break-all text-left",children:n.post_url})]}):(0,a.jsx)("span",{className:"text-xs text-gray-500",children:"-"}),c&&(0,a.jsx)("div",{className:"w-full flex items-center justify-start",children:(0,a.jsx)("button",{type:"button",className:"text-xs text-green-700 font-semibold hover:underline",onClick:()=>{t0(t)},children:"Load More"})})]}):d?(0,a.jsxs)("div",{className:"flex flex-col items-start gap-1.5",children:[(0,a.jsx)("span",{className:"text-xs text-gray-500",children:"-"}),(0,a.jsx)("div",{className:"w-full flex items-center justify-start",children:(0,a.jsx)("button",{type:"button",className:"text-xs text-green-700 font-semibold hover:underline",onClick:()=>t0(t),children:"Load More"})})]}):(0,a.jsx)("span",{className:"text-xs text-gray-500"})}}]:[],{title:"Category",dataIndex:"category_detail",key:"category_detail",align:"center",render:e=>(0,a.jsx)("div",{className:"flex flex-wrap flex-col gap-1 items-center justify-center",children:e&&e.map((e,t)=>(0,a.jsx)("span",{className:"category-tag w-fit bg-[#d5e5fa] rounded px-2 py-1 text-sm text-primarydark font-medium",children:null==e?void 0:e.title},t))}),visible:!0},{title:"Traffic",dataIndex:"traffic",key:"traffic",align:"center",render:(e,t)=>{var s,r,n,l;let i=null==t?void 0:null===(r=t.website)||void 0===r?void 0:null===(s=r.semrush_data)||void 0===s?void 0:s.collaborator_data,o=null==t?void 0:null===(l=t.website)||void 0===l?void 0:null===(n=l.semrush_data)||void 0===n?void 0:n.adsy_data,d=o&&o.traffic&&o.traffic.chart&&Ob
1ject.keys(o.traffic.chart).length>0,c=[],x=[],u=[],h=!1;if(d)h=!1;else if(i){if(i&&(!i.traffic||0===Object.keys(i.traffic).length)){if(h=!0,c=[],i.top_country){let e=(x=Object.entries(i.top_country).sort((e,t)=>{let[,s]=e,[,a]=t;return ek(a)-ek(s)}).slice(0,5).map(e=>{let[t,s]=e;return{name:t,code:(0,m.so)(t),percentage:ek(s)}})).reduce((e,t)=>e+t.percentage,0);e<100&&x.push({name:"Others",code:"\uD83C\uDF0D",percentage:100-e})}if(i.traffic_source){let e=(u=Object.entries(i.traffic_source).map(e=>{let[t,s]=e;return{name:t,percentage:ek(s)}}).sort((e,t)=>t.percentage-e.percentage)).reduce((e,t)=>e+t.percentage,0);e<100&&u.push({name:"Others",percentage:100-e})}}else if(i&&i.traffic&&Object.keys(i.traffic).length>0){h=!0;let e=i.traffic,t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];if(c=Object.entries(e).map(e=>{let[t,s]=e;return{month:t,traffic:Number(s)}}).sort((e,s)=>t.indexOf(e.month)-t.indexOf(s.month)),i.top_country){let e=(x=Object.entries(i.top_country).sort((e,t)=>{let[,s]=e,[,a]=t;return ek(a)-ek(s)}).slice(0,5).map(e=>{let[t,s]=e;return{name:t,code:(0,m.so)(t),percentage:ek(s)}})).reduce((e,t)=>e+t.percentage,0);e<100&&x.push({name:"Others",code:"\uD83C\uDF0D",percentage:100-e})}if(i.traffic_source){let e=(u=Object.entries(i.traffic_source).map(e=>{let[t,s]=e;return{name:t,percentage:ek(s)}}).sort((e,t)=>t.percentage-e.percentage)).reduce((e,t)=>e+t.percentage,0);e<100&&u.push({name:"Others",percentage:100-e})}}}else h=!1;return(0,a.jsx)("div",{className:"flex items-center justify-center",children:(0,a.jsxs)("div",{className:"flex flex-col gap-1 items-start",children:[h?(0,a.jsx)(y.Z,{content:(0,a.jsx)("div",{className:"w-[600px] max-w-[90vw]",children:(0,a.jsx)(eM,{data:c,countryData:x,trafficSourceData:u})}),trigger:"hover",placement:"top",zIndex:100010,getPopupContainer:()=>document.body,destroyOnHidden:!0,autoAdjustOverflow:!0,children:(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-[120px]",children:[(0,a.jsx)("div",{className:"w-[20px] flex-shrink-0",children:(0,a.jsx)(B.default,{src:"/images/logs/semrush_238729.webp",alt:"SEMrush Icon",height:20,width:20})}),(0,a.jsx)("span",{className:"font-semibold",children:t.website.semrush_traffic&&Number(t.website.semrush_traffic)>500?(()=>{let e=Number(t.website.semrush_traffic);return!isNaN(e)&&isFinite(e)?(0,O.ZP)(e):"less than 500"})():"less than 500"})]})}):(0,a.jsx)(y.Z,{title:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{children:"Maximum estimated monthly visitors by Semrush"}),(0,a.jsx)(B.default,{src:"/images/logs/semrush_238729.webp",alt:"SEMrush Icon",height:20,width:20})]}),trigger:"hover",placement:"top",zIndex:100010,getPopupContainer:()=>document.body,children:(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-[120px]",children:[(0,a.jsx)("div",{className:"w-[20px] flex-shrink-0",children:(0,a.jsx)(B.default,{src:"/images/logs/semrush_238729.webp",alt:"SEMrush Icon",height:20,width:20})}),(0,a.jsx)("span",{className:"font-semibold",children:t.website.semrush_traffic&&t.website.semrush_traffic>500?(0,O.ZP)(t.website.semrush_traffic):"less than 500"})]})}),(()=>{var e,s,r;let n=null==t?void 0:null===(s=t.website)||void 0===s?void 0:null===(e=s.semrush_data)||void 0===e?void 0:e.adsy_data;if(!(n&&n.traffic&&n.traffic.chart&&Object.keys(n.traffic.chart).length>0))return(0,a.jsx)(y.Z,{title:(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{children:"Maximum estimated monthly visitors by Ahrefs"}),(0,a.jsx)(B.default,{src:"/images/logs/Ahrefs-icon.jpeg",alt:"Ahrefs Icon",height:20,width:20})]}),trigger:"hover",placement:"bottom",zIndex:100010,getPopupContainer:()=>document.body,children:(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-[120px]",children:[(0,a.jsx)("div",{className:"w-[20px] flex-shrink-0",children:(0,a.jsx)(B.default,{src:"/images/logs/Ahrefs-icon.jpeg",alt:"Ahrefs Icon",height:20,width:20})}),(0,a.jsx)("span",{className:"font-semibold",children:(()=>{let e=Number.parseFloat(t.website.traffic);return e>=100&&!isNaN(e)&&isFinite(e)?(0,O.ZP)(e):"less than 100"})()})]})});{let e=n.traffic.chart,s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],l=Object.entries(e).map(e=>{let[t,s]=e;return{month:t,traffic:Number(s)}}).sort((e,t)=>
1s.indexOf(e.month)-s.indexOf(t.month)),i=(null===(r=n.traffic.details)||void 0===r?void 0:r.regions)?Object.entries(n.traffic.details.regions).map(e=>{let[t,s]=e;return{name:Array.isArray(s)?s[1]:"",code:(0,m.so)(Array.isArray(s)?s[1]:""),percentage:Array.isArray(s)?s[0]:0}}).sort((e,t)=>t.percentage-e.percentage):[];return(0,a.jsx)(y.Z,{content:(0,a.jsx)("div",{className:"w-[600px] max-w-[90vw]",children:(0,a.jsx)(eS,{data:l,countryData:i})}),trigger:"hover",placement:"top",zIndex:100010,getPopupContainer:()=>document.body,destroyOnHidden:!0,autoAdjustOverflow:!0,children:(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-[120px]",children:[(0,a.jsx)("div",{className:"w-[20px] flex-shrink-0",children:(0,a.jsx)(B.default,{src:"/images/logs/Ahrefs-icon.jpeg",alt:"Ahrefs Icon",height:20,width:20})}),(0,a.jsx)("span",{className:"font-semibold",children:(()=>{let e=Number.parseFloat(t.website.traffic);return e>=100&&!isNaN(e)&&isFinite(e)?(0,O.ZP)(e):"less than 100"})()})]})})}})()]})})},visible:!0},{title:(0,a.jsx)(v.Z,{title:(0,a.jsxs)("div",{className:"space-y-2 bg-gradient-to-br from-blue-100 via-purple-100 to-pink-100 p-4 rounded-lg shadow-xl border border-blue-200",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold text-blue-800",children:"Domain Rating (DR):"}),(0,a.jsx)("p",{className:"text-xs text-gray-700",children:"A metric (0–100) by Ahrefs that shows the strength of a website's backlink profile."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold text-purple-800",children:"Domain Authority (DA):"}),(0,a.jsx)("p",{className:"text-xs text-gray-700",children:"A metric (0–100) by Moz that predicts how well a website will rank."})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("span",{className:"font-semibold text-pink-800",children:"Authority Score (AS):"}),(0,a.jsx)("p",{className:"text-xs text-gray-700",children:"A metric (0–100) by Semrush that measures a website's overall quality and SEO strength."})]})]}),placement:"right",rootClassName:"custom-tooltip",overlayInnerStyle:{background:"transparent",boxShadow:"none",border:"none"},getPopupContainer:e=>document.body,children:(0,a.jsxs)("div",{className:"flex flex-row items-center justify-center gap-1",children:[(0,a.jsx)("button",{className:"px-2 py-1 rounded text-sm font-semibold transition-colors hover:bg-[#9fd1ea]",onClick:e=>{e.stopPropagation()},children:"DR"}),(0,a.jsx)("span",{className:" text-sm",children:"|"}),(0,a.jsx)("button",{className:"px-2 py-1 rounded text-sm font-semibold transition-colors hover:bg-[#9fd1ea]",onClick:e=>{e.stopPropagation()},children:"DA"}),(0,a.jsx)("span",{className:" text-sm",children:"|"}),(0,a.jsx)("button",{className:"px-2 py-1 rounded text-sm font-semibold transition-colors hover:bg-[#9fd1ea]",onClick:e=>{e.stopPropagation()},children:"AS"})]})}),key:"metrics",align:"center",width:120,render:(e,t)=>{var s,r,n,l,i,o,d,c,m,x;let u=null==t?void 0:null===(r=t.website)||void 0===r?void 0:null===(s=r.semrush_data)||void 0===s?void 0:s.domain_overview;return u&&"object"==typeof u&&u.response&&"object"==typeof u.response&&Object.entries(u.response).map(e=>{let[t,s]=e;return{country:t,rank:Number(null==s?void 0:s.Rank)}}).filter(e=>!isNaN(e.rank)).sort((e,t)=>t.rank-e.rank),(0,a.jsxs)("div",{className:"flex flex-col gap-3 items-center",children:[(0,a.jsx)(y.Z,{content:(0,a.jsx)("div",{style:{backgroundColor:"transparent",border:"none",boxShadow:"none",padding:0},children:(0,a.jsx)(ej,{value:Number(null===(n=t.website)||void 0===n?void 0:n.dr)||0,color:"#fbbf24",label:"Domain Rating",size:225})}),trigger:"hover",placement:"rightTop",zIndex:100010,rootClassName:"metric-popover-dr",destroyOnHidden:!0,getPopupContainer:e=>document.body,mouseEnterDelay:.2,mouseLeaveDelay:.1,autoAdjustOverflow:!0,children:(0,a.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer relative z-10",onMouseEnter:e=>e.stopPropagation(),onMouseLeave:e=>e.stopPropagation(),children:[(0,a.jsx)("strong",{children:"DR"}),(0,a.jsx)(B.default,{src:"/images/logs/Ahrefs-icon.jpeg",alt:"Ahrefs Icon",width:18,height:18}),(0,a.jsx)("div",{className:"inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 cursor-default bg-amber-500/20 border-transparent text-amber-950 dar
1k:text-amber-200 font-semibold shrink-0 whitespace-nowrap",children:(null===(l=t.website)||void 0===l?void 0:l.dr)||"N/A"})]})},"dr-popover-".concat((null===(i=t.website)||void 0===i?void 0:i.id)||t.id||Math.random())),(0,a.jsx)(y.Z,{content:(0,a.jsx)("div",{style:{backgroundColor:"transparent",border:"none",boxShadow:"none",padding:0},children:(0,a.jsx)(ej,{value:Number(null===(o=t.website)||void 0===o?void 0:o.da)||0,color:"#3b82f6",label:"Domain Authority",size:225})}),trigger:"hover",placement:"rightTop",zIndex:100010,rootClassName:"metric-popover-da",destroyOnHidden:!0,getPopupContainer:e=>document.body,mouseEnterDelay:.2,mouseLeaveDelay:.1,autoAdjustOverflow:!0,children:(0,a.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer relative z-10",onMouseEnter:e=>e.stopPropagation(),onMouseLeave:e=>e.stopPropagation(),children:[(0,a.jsx)("strong",{children:"DA"}),(0,a.jsx)(B.default,{src:"/images/logs/unnamed (1).png",alt:"Moz Icon",width:18,height:18}),(0,a.jsx)("div",{className:"inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 cursor-default bg-blue-500/20 border-transparent text-blue-950 dark:text-blue-200 font-semibold shrink-0 whitespace-nowrap",children:(null===(d=t.website)||void 0===d?void 0:d.da)||"N/A"})]})},"da-popover-".concat((null===(c=t.website)||void 0===c?void 0:c.id)||t.id||Math.random())),(0,a.jsx)(y.Z,{content:(0,a.jsx)("div",{style:{backgroundColor:"transparent",border:"none",boxShadow:"none",padding:0},children:(()=>{var e,s;let r=Number(null==t?void 0:null===(e=t.website)||void 0===e?void 0:e.semrush_score)||0;try{return(0,a.jsx)(ej,{value:r,color:"#ff6b35",label:"Authority Score",size:225})}catch(e){return console.error("Gauge chart error for score:",r,"Record:",null==t?void 0:null===(s=t.website)||void 0===s?void 0:s.website_name,e),(0,a.jsx)("div",{style:{backgroundColor:"transparent",border:"none",boxShadow:"none",width:"100%",minWidth:"".concat(225,"px"),height:"auto"},children:(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsxs)("div",{className:"relative w-full bg-gray-200 rounded-full h-2 mb-3",style:{maxWidth:"".concat(225,"px")},children:[(0,a.jsx)("div",{className:"bg-orange-500 h-2 rounded-full transition-all duration-300",style:{width:"".concat(r,"%")}}),(0,a.jsx)("div",{className:"absolute inset-0 pointer-events-none flex items-center justify-center",children:(0,a.jsxs)("div",{className:"text-sm font-bold text-orange-600 bg-white px-2 rounded",children:[r,"/100"]})})]}),(0,a.jsx)("div",{className:"flex flex-col items-center justify-center px-2",children:(0,a.jsx)("div",{className:"text-xs text-gray-600",children:"Authority Score"})}),(0,a.jsxs)("div",{className:"absolute top-1 right-2 text-xs font-bold text-gray-400",children:[r,"%"]})]})})}})()}),trigger:"hover",placement:"rightTop",zIndex:100010,rootClassName:"metric-popover-as",destroyOnHidden:!0,getPopupContainer:e=>document.body,mouseEnterDelay:.2,mouseLeaveDelay:.1,autoAdjustOverflow:!0,children:(0,a.jsxs)("div",{className:"flex items-center gap-2 cursor-pointer relative z-10",onMouseEnter:e=>e.stopPropagation(),onMouseLeave:e=>e.stopPropagation(),children:[(0,a.jsx)("strong",{children:" AS"}),(0,a.jsx)(B.default,{src:"/images/logs/semrush_238729.webp",alt:"Semrush Icon",width:18,height:18}),(0,a.jsx)("div",{className:"inline-flex items-center border rounded-full px-2.5 py-0.5 text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 cursor-default bg-orange-500/20 border-transparent text-orange-950 dar
1k:text-orange-200 font-semibold shrink-0 whitespace-nowrap",children:(null===(m=t.website)||void 0===m?void 0:m.semrush_score)||"N/A"})]})},"as-popover-".concat((null===(x=t.website)||void 0===x?void 0:x.id)||t.id||Math.random()))]})},visible:!0},{title:(0,a.jsxs)("div",{className:"flex items-center justify-center gap-1",children:[(0,a.jsx)("span",{children:"Backlinks"}),(0,a.jsx)(v.Z,{title:"Indicates the count of DoFollow and NoFollow backlinks as reported by Ahrefs.",getPopupContainer:e=>document.body,children:(0,a.jsx)(h.Z,{className:"text-white-500 cursor-pointer"})})]}),dataIndex:["website","semrush_data","ahrefs_data"],key:"backlinks",align:"center",width:150,render:(e,t)=>{var s,r,n,l,i,o;let d=null==t?void 0:null===(n=t.website)||void 0===n?void 0:null===(r=n.semrush_data)||void 0===r?void 0:null===(s=r.ahrefs_data)||void 0===s?void 0:s.followed,c=null==t?void 0:null===(o=t.website)||void 0===o?void 0:null===(i=o.semrush_data)||void 0===i?void 0:null===(l=i.ahrefs_data)||void 0===l?void 0:l.notfollowed;return(d||c)&&(!d||"N/A"!==c)?(0,a.jsx)(y.Z,{title:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsx)("span",{children:"Backlink Details from Ahrefs"}),(0,a.jsx)(B.default,{src:"/images/logs/Ahrefs-icon.jpeg",alt:"Ahrefs Icon",height:20,width:20})]}),content:(0,a.jsxs)("div",{className:"flex flex-col gap-2 min-w-[200px]",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-green-600 font-medium",children:"Followed:"}),(0,a.jsx)("span",{className:"font-semibold",children:(()=>{let e=Number(d);return d&&!isNaN(e)&&isFinite(e)?(0,O.ZP)(e):"N/A"})()})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-gray-600 font-medium",children:"No followed:"}),(0,a.jsx)("span",{className:"font-semibold",children:(()=>{let e=Number(c);return c&&!isNaN(e)&&isFinite(e)?(0,O.ZP)(e):"N/A"})()})]}),d&&c&&(0,a.jsx)("div",{className:"border-t pt-2 mt-1",children:(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("span",{className:"text-blue-600 font-medium",children:"Total:"}),(0,a.jsx)("span",{className:"font-semibold",children:(()=>{let e=Number(d)+Number(c);return!isNaN(e)&&isFinite(e)?(0,O.ZP)(e):"N/A"})()})]})})]}),trigger:"hover",placement:"top",zIndex:100010,destroyOnHidden:!0,getPopupContainer:e=>document.body,autoAdjustOverflow:!0,children:(0,a.jsxs)("div",{className:"flex flex-col gap-1 items-center",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"text-green-600 font-semibold text-sm",children:d?(0,O.ZP)(Number(d)):"N/A"}),(0,a.jsx)("span",{className:"text-gray-400",children:"/"}),(0,a.jsx)("span",{className:"text-gray-600 font-semibold text-sm",children:c?(0,O.ZP)(Number(c)):"N/A"})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,a.jsx)("span",{className:"inline-flex items-center border rounded-full px-2 py-0.5 text-xs font-semibold bg-green-500/20 border-transparent text-green-950 dark:text-green-200 shrink-0 whitespace-nowrap",children:"Followed"}),(0,a.jsx)("span",{className:"text-gray-400",children:"/"}),(0,a.jsx)("span",{className:"inline-flex items-center border rounded-full px-2 py-0.5 text-xs font-semibold bg-gray-500/20 border-transparent text-gray-950 dark:text-gray-200 shrink-0 whitespace-nowrap",children:"No Followed"})]})]})}):(0,a.jsx)("span",{className:"text-gray-400",children:"N/A"})},visible:!0},{title:(0,a.jsxs)("div",{className:"flex items-center justify-center gap-1",children:[(0,a.jsx)("span",{children:"Domain Info"}),(0,a.jsx)(v.Z,{title:"Indicates the site's listing period and overall Domain Age.",getPopupContainer:e=>document.body,children:(0,a.jsx)(h.Z,{className:"text-white-500 cursor-pointer"})})]}),dataIndex:["website","created_at"],key:"created_at",align:"center",width:180,render:(e,t)=>{var s;let r=sc(e),n=null==t?void 0:null===(s=t.website)||void 0===s?void 0:s.creation_date,l=n?sc(n):null;return(0,a.jsxs)("div",{className:"flex flex-col gap-1 items-center",children:[(0,a.jsx)(v.Z,{title:es()(e).format("YYYY-MM-DD HH:mm:ss"),getPopupContainer:e=>document.body,children:(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("span",{className:"text-xs text-gray-500 font-bold",children:"Added:"}),(0,a.jsx)("span",{className:"font-medium text-sm",children:r})]})}),l?(0,a.jsx)(v.Z,{title:es()(n).format("YYYY-MM-DD HH:mm:ss"),getPopupContainer:e=>document.body,children:(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("span",{className:"text-xs text-gray-500 font-bold",children:"Age:"}),(0,a.jsx)("span",{className:"font-medium text-sm text-gray-700",children:l})]})}):(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("span",{className:"text-xs text-gray-500 font-bold",children:"Age:"}),(0,a.jsx)("span",{className:"text-gray-400 text-sm",children:"N/A"})]})]})},visible:!0},{title:(0,a.jsxs)("div",{className:"flex items-center justify-center gap-1",children:[(0,a.jsx)("span",{children:"No. of Deal"}),(0,a.jsx)(v.Z,{title:"Shows the total number of deals completed for this publisher site.",children:(0,a.jsx)(h.Z,{className:"text-white-500 cursor-pointer"})})]}),dataIndex:"total_deals",key:"total_deals",align:"center",render:e=>(0,a.jsx)("span",{className:"font-semibold",children:e}),visible:!0},{title:"Spam Score",dataIndex:["website","spam_score"],key:"spam_score",align:"center",render:e=>(0,a.jsx)(y.Z,{title:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsx)("span",{children:"Data Collected From Moz "}),(0,a.jsx)(B.default,{src:"/images/logs/unnamed (1).png",alt:"PA Icon",height:20,width:20})]}),trigger:"hover",placement:"top",zIndex:100010,getPopupContainer:()=>document.body,children:(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 dark:text-blue-500 ",children:[(0,a.jsx)(B.default,{src:"/images/logs/unnamed (1).png",alt:"PA Icon",height:20,width:20}),"Spam Score",(0,a.jsx)("span",{className:"font-semibold",children:e?e+"%":"N/A"})]})}),visible:!1},{title:"Language",dataIndex:"language_detail",key:"language_detail",align:"center",render:(e,t)=>(0,a.jsx)("div",{className:"flex items-center justify-center w-full dark:text-blue-500 flex-col-reverse font-semibold",children:(0,a.jsx)("span",{children:null==e?void 0:e.title})}),visible:!1},{title:(0,a.jsxs)("div",{className:"flex items-center justify-center gap-1",children:[(0,a.jsx)("span",{children:"Indexable Tag"}),(0,a.jsx)(v.Z,{title:"Indicates whether this website allows its published content to be indexed by search engines.",getPopupContainer:e=>document.body,children:(0,a.jsx)(h.Z,{className:"text-white-500 cursor-pointer"})})]}),dataIndex:"is_indexable",key:"is_indexable",align:"center",render:e=>(0,a.jsx)(l.u,{value:e}),visible:!1},{title:(0,a.jsxs)("div",{className:"flex items-center justify-center gap-1",children:[(0,a.jsx)("span",{children:"Sponsored Tag"}),(0,a.jsx)(v.Z,{title:"Indicates whether this website requires content to be labeled/marked as sponsored.",getPopupContainer:e=>document.body,children:(0,a.jsx)(h.Z,{className:"text-white-500 cursor-pointer"})})]}),dataIndex:"is_sponsored",key:"is_sponsored",align:"center",render:e=>(0,a.jsx)(l.u,{value:e}),visible:!1},...en].filter(e=>
1!ei.includes(e.key));sv(t=>JSON.stringify(e)!==JSON.stringify(t)?e:t)}},[null==sb?void 0:sb.id,null==sb?void 0:sb.email_is_verify,tS]);let sw=e=>{sv(t=>t.map(t=>t.key===e?{...t,visible:!t.visible}:t))},sN=(0,a.jsx)(k.Z,{children:sj.map(e=>(0,a.jsx)(k.Z.Item,{children:(0,a.jsx)(_.Z,{checked:e.visible,onChange:()=>sw(e.key),children:e.title})},e.key))}),sk=(0,U.useMemo)(()=>sj.filter(e=>e.visible),[sj]),s_={Category:"\n      <p><strong>Category</strong>: Select the primary Niche or topic area of the website (e.g., Health, Tech, Finance).</p>\n    ",Language:"\n      <p><strong>Language</strong>: Filter sites according to their primary publishing Language.</p>\n    ",LinkType:'\n      <p><strong>Link Type</strong>: Specify the type of backlink you prefer — <span class="text-blue-600 font-medium">DoFollow</span> or <span class="text-gray-600 font-medium">NoFollow</span>.</p>\n    ',Countries:"\n      <p><strong>Countries</strong>: Select websites by their main geographic focus or audience Country.</p>\n    ",DAMin:'\n      <p><strong>DA Min</strong>: Set the <span class="text-green-600 font-semibold">minimum</span> <strong> Moz Domain Authority</strong> (0–100) for quality assurance.</p>\n    ',DAMax:'\n      <p><strong>DA Max</strong>: Set the <span class="text-red-600 font-semibold">maximum</span> <strong> Moz Domain Authority</strong> (0–100) to limit reach.</p>\n    ',TrafficMin:"\n      <p><strong>Traffic Min</strong>: Minimum estimated monthly visitors by<strong> Ahrefs</strong> and <strong> Semrush</strong>. Helps filter for high-traffic websites.</p>\n    ",TrafficMax:"\n      <p><strong>Traffic Max</strong>: Maximum estimated monthly visitors by<strong> Ahrefs</strong> and <strong> Semrush</strong>. Helps filter for high-traffic websites.</p>\n    ",DRMin:"\n      <p><strong>DR Min</strong>: Minimum Domain Rating by <strong> Ahrefs</strong>. Higher DR usually means better SEO authority.</p>\n    ",DRMax:"\n      <p><strong>DR Max</strong>: Maximum Domain Rating by <strong> Ahrefs</strong> to restrict to smaller or mid-tier websites.</p>\n    ",PriceMin:"\n      <p><strong>Price Min</strong>: Minimum cost for a guest post in USD. Useful for budget filtering.</p>\n    ",PriceMax:"\n      <p><strong>Price Max</strong>: Maximum budget for guest post in USD. Keeps results within your price range.</p>\n    ",IsIndexable:"\n      <p><strong>Indexable Tag</strong>: Whether this website allows its published content to be indexed by search engines.</p>\n    ",IsSponsored:"\n      <p><strong>Sponsored Tag</strong>: Whether this website requires content to be labeled/marked as sponsored.</p>\n    ",MozSpamScore:'\n      <p><strong>Moz Spam Score</strong>: Percentage of websites flagged by Moz for spam-like signals.</p>\n      <p><span class="text-blue-600 font-medium">1% - 30%</span> is considered a <span class="text-green-600 font-semibold">Low Spam Score</span>.</p>\n    ',DealsMin:"\n      <p><strong>Min Deals</strong>: Shows sites that have completed at least this number of deals.</p>\n    ",DealsMax:"\n      <p><strong>Max Deals</strong>: Shows sites that have completed no more than this number of deals.</p>\n    ",TATMin:"\n      <p><strong>TAT Min (Days)</strong>: Minimum turnaround time (in days) required to deliver an order.</p>\n    ",TATMax:"\n      <p><strong>TAT Max (Days)</strong>: Maximum turnaround time (in days) required to deliver an order.</p>\n    ",AhrefsTrafficMin:"\n      <p><strong>Ahrefs Traffic Min</strong>: Minimum estimated monthly visitors based on Ahrefs data.</p>\n    ",AhrefsTrafficMax:"\n      <p><strong>Ahrefs Traffic Max</strong>: Maximum estimated monthly visitors based on Ahrefs data.</p>\n    ",SemrushTrafficMin:"\n      <p><strong>Semrush Traffic Min</strong>: Minimum estimated monthly visitors based on Semrush data.</p>\n    ",SemrushTrafficMax:"\n      <p><strong>Semrush Traffic Max</strong>: Maximum estimated monthly visitors based on Semrush data.</p>\n    ",ASMin:"\n      <p><strong>AS Min</strong>: Set the minimum Semrush Authority Score (0–100) to filter higher-quality websites.</p>\n    ",ASMax:"\n      <p><strong>AS Max</strong>: Set the maximum Semrush Authority Score (0–100) to limit the range of website quality.</p>\n    ",TopCountry:"\n      <p><strong>Top Country</strong>: Filters websites according to the country from which they receive the highest traffic.</p>\n    ",AddedDateRange:"\n      <p><strong>Added Date Range</strong>: Filters websites based on the date they were added to Vefogix.</p>\n    ",SpamScoreMin:"\n      <p><strong>Spam Score Min</strong>: Set the minimum Moz Spam Score (0–100). Lower values indicate cleaner, less spammy websites.</p>\n    ",SpamScoreMax:"\n      <p><strong>Spam Score Max</strong>: Set the maximum Moz Spam Score (0–100). Helps exclude high-spam websites from results.</p>\n    "},sS=e=>{let{label:t,descKey:s}=e;return(0,a.jsxs)("span",{className:"flex items-center gap-2",children:[t,(0,a.jsx)(y.Z,{content:(0,a.jsx)("div",{className:"max-w-[250px] text-sm text-gray-800 leading-relaxed",children:(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:s_[s]}})}),placement:"bottom",zIndex:100010,destroyOnHidden:!0,getPopupContainer:e=>document.body,autoAdjustOverflow:!0,children:(0,a.jsx)(h.Z,{className:"text-primarydark hover:text-primary transition-colors duration-200 cursor-pointer text-xs"})})]})},sM=null==ef?void 0:ef.includes("/link-insertion-sites");(0,U.useEffect)(()=>()=>{tV.current=!1},[]);let sC=sk.map(e=>{if("content_p_price"===e.key)return{...e,sorter:e.sorter||!0,sortDirections:["ascend","descend"],showSorterTooltip:{title:"Click to sort."}};
1if(["da","dr","traffic","semrush_score"].includes(e.key))return{...e,sorter:!0,sortDirections:["ascend","descend"],showSorterTooltip:{title:"Click to sort."}};let{sorter:t,...s}=e;return s}),sA=ts||0,sD=Math.ceil((ts||0)/tl),sT=(tr-1)*tl+1,sI=Math.min(tr*tl,ts||0);return(0,a.jsxs)(a.Fragment,{children:[!ex&&(0,a.jsxs)("div",{className:"h-[150px] md:h-[100px] w-full bg-white mb-4 rounded-lg flex flex-col gap-2 py-4 dark:bg-dark dark:text-white items-center justify-center text-black",children:[(0,a.jsxs)("h1",{className:"text-center text-lg md:text-xl font-bold",children:[eI||(0,a.jsx)(S.Z.Button,{active:!0,size:"small"})," ",x]}),(0,a.jsx)("p",{className:"text-center",children:u})]}),(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)("main",{className:"mb-10 dark:bg-dark dark:text-white",children:(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 table-container shadow-lg rounded-lg bg-white p-5 dark:bg-dark dark:text-white",children:[ex&&(0,a.jsx)("div",{className:"jsx-1a725fd401928f95 flex items-center justify-between gap-3 mb-4 pb-3 border-b border-gray-100",children:(0,a.jsxs)("h2",{className:"jsx-1a725fd401928f95 text-base md:text-lg font-bold text-gray-900",children:[eI?(0,a.jsx)("span",{className:"jsx-1a725fd401928f95 text-primarydark",children:eI}):(0,a.jsx)(S.Z.Button,{active:!0,size:"small"}),(0,a.jsx)("span",{className:"jsx-1a725fd401928f95 ml-2",children:x})]})}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 "+"w-full flex flex-col gap-4 md:gap-3 lg:flex-row justify-between items-start lg:items-center mb-2 ".concat(sM?"p-1":""),children:[(0,a.jsx)("div",{className:"jsx-1a725fd401928f95 "+"flex flex-col gap-1 w-full ".concat(sM?"":"lg:max-w-[600px]"),children:(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 "+"flex gap-2 items-center w-full justify-between ".concat(sM?"h-[64px] rounded-full border border-[#dfe6f6] bg-white p-2 pl-5 shadow-sm":"rounded-lg shadow border-1 mb-2 h-[42px] p-1 pl-2"),children:[!sM&&(0,a.jsx)(V.CNP,{className:"text-2xl text-primarydark shrink-0"}),(0,a.jsx)("div",{className:"jsx-1a725fd401928f95 "+"w-full h-full flex items-center ".concat(sM?"":"mt-2"),children:(0,a.jsx)("input",{ref:sd,placeholder:sM?"Search websites...":"Search from ".concat(eI||"......"," Websites"),value:sl,onChange:e=>{si(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&sm([sl],()=>{},"")},style:sM?{}:{marginBottom:8,display:"block",color:"blue"},className:"jsx-1a725fd401928f95 "+"outline-none border-none h-full w-full active:outline-none active:border-none focus:outline-none focus:border-none disabled:cursor-not-allowed ".concat(sM?"text-base text-gray-700 placeholder:text-gray-400":"")})}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 flex gap-2 shrink-0",children:[(0,a.jsx)(w.ZP,{className:sM?"h-[48px] px-8 rounded-full !border-0 !text-white font-semibold !bg-[#051129] hover:!text-white hover:!bg-[#000] active:!text-white active:!bg-[#000] focus:!text-white focus:!bg-[#051129]":"text-primarydark border-primarydark border",onClick:()=>{sm([sl],()=>{},"")},children:sM?(0,a.jsxs)("span",{className:"jsx-1a725fd401928f95 inline-flex items-center gap-1.5",children:[(0,a.jsx)(V.CNP,{className:"text-sm"}),"Search"]}):"Search"}),sM&&(0,a.jsx)(w.ZP,{className:"h-[48px] px-4 sm:px-8 rounded-full !border-0 !text-[#475569] font-semibold !bg-[#f1f5f9] hover:!bg-[#e2e8f0] hover:!text-[#0f172a] active:!bg-[#cbd5e1] transition-all",onClick:()=>{sx(),eJ(""),localStorage.removeItem("selectedWebsite")},children:"Clear Search"}),!sM&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.ZP,{className:"text-primarydark border-primarydark border whitespace-nowrap sm:block hidden",onClick:su,children:"Bulk Search"}),(0,a.jsx)(w.ZP,{className:"bg-primarydark text-white whitespace-nowrap",onClick:()=>{sx(),eJ(""),localStorage.removeItem("selectedWebsite")},children:"Clear Search"})]})]})]})}),(0,a.jsx)("div",{className:"jsx-1a725fd401928f95 "+"flex gap-2 sm:gap-3 flex-wrap items-center justify-end w-full ".concat(sM?"lg:w-fit":"lg:w-auto"),children:(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 flex flex-wrap gap-2 items-center justify-end",children:[(0,a.jsx)(w.ZP,{className:sM?"h-10 px-4 roun
1ded-xl border border-[#d5ddec] bg-white text-[#3a4b67] whitespace-nowrap block sm:hidden":"text-primarydark border-primarydark border whitespace-nowrap block sm:hidden",onClick:su,children:"Bulk Search"}),(0,a.jsx)(M.Z,{className:sM?"border rounded-xl border-[#79a6cf] text-[#2b5e89] font-medium text-base bg-white smooth":"border rounded-lg border-primarydark text-primarydark font-medium text-base hover:text-white hover:bg-primarydark smooth",overlay:sN,trigger:["hover"],children:(0,a.jsx)(w.ZP,{className:"text-sm sm:text-base px-2 sm:px-4 whitespace-nowrap",children:"Choose Columns"})}),tv&&(0,a.jsx)(C.Z,{placement:"topLeft",title:"Confirm export with current filters?",onConfirm:()=>t6(tr,tl,eW,eY||tw||""),children:(0,a.jsxs)("button",{disabled:tc,className:"jsx-1a725fd401928f95 border py-0.5 px-2 sm:px-4 rounded-lg border-primarydark text-primarydark font-medium text-sm sm:text-base hover:text-white hover:bg-primarydark smooth whitespace-nowrap",children:[tc?"Exporting":"Export Table",tc&&(0,a.jsx)(N.Z,{className:"ml-2"})]})}),ea,(0,a.jsxs)("button",{type:"button",onClick:()=>e4(!e9),className:"jsx-1a725fd401928f95 "+"inline-flex items-center gap-2 border py-0.5 px-2 sm:px-4 roun
1ded-lg font-medium text-sm sm:text-base smooth whitespace-nowrap transition-colors duration-200 ".concat(sM?"border-[#7eb0da] ".concat(e9?"bg-[#0b6ebd] text-white":"bg-white text-[#0b6ebd] hover:bg-[#0b6ebd] hover:text-white"):"border-primarydark ".concat(e9?"bg-primarydark text-white":"text-primarydark hover:bg-primarydark hover:text-white")),children:[(0,a.jsx)(Y.Ihx,{className:"text-base sm:text-lg"}),"Apply Filter"]})]})})]}),(0,a.jsx)(L.M,{children:e9?(0,a.jsx)(F.E.div,{initial:{height:0,opacity:0,scale:.8},animate:{height:"auto",opacity:1,scale:1},exit:{height:0,opacity:0,scale:.8},transition:{duration:.3,ease:"easeInOut"},className:"filter-section mb-2 p-5 bg-primarydark/[.07] rounded-lg dark:bg-dark dark:text-white text-black",children:(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 grid grid-cols-2 gap-2 md:grid-cols-4 lg:grid-cols-6 ",children:[(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Category",descKey:"Category",className:"jsx-1a725fd401928f95"}),(0,a.jsxs)(b.default,{mode:"multiple",maxTagCount:"responsive",showSearch:!0,placeholder:"Select Categories",onChange:e=>t9("categories",e),value:eW.categories,className:"w-full",optionFilterProp:"children",getPopupContainer:()=>document.body,dropdownStyle:{zIndex:100011},suffixIcon:(0,a.jsx)(f.Z,{style:{color:"#006CD9"}}),filterOption:(e,t)=>(null==t?void 0:t.children).toLowerCase().includes(e.toLowerCase()),children:[(0,a.jsx)(eg,{value:"",children:"All"}),eU.map(e=>(0,a.jsx)(eg,{value:e.uid,children:e.title},e.uid))]})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95  flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Language",descKey:"Language",className:"jsx-1a725fd401928f95"}),(0,a.jsxs)(b.default,{placeholder:"Language",onChange:e=>t2("language",e),value:eW.language,className:"w-full",showSearch:!0,optionFilterProp:"children",getPopupContainer:()=>document.body,dropdownStyle:{zIndex:100011},suffixIcon:(0,a.jsx)(f.Z,{style:{color:"#006CD9"}}),filterOption:(e,t)=>(null==t?void 0:t.children).toLowerCase().includes(e.toLowerCase()),children:[(0,a.jsx)(eg,{value:"",children:"All"}),eO.map(e=>(0,a.jsx)(eg,{value:e.uid,children:e.title},e.uid))]})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95  flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Link Type",descKey:"LinkType",className:"jsx-1a725fd401928f95"}),(0,a.jsxs)(b.default,{placeholder:"Link Type",onChange:e=>t2("linkType",e),value:eW.linkType,className:"w-full",showSearch:!0,optionFilterProp:"children",getPopupContainer:()=>document.body,dropdownStyle:{zIndex:100011},suffixIcon:(0,a.jsx)(f.Z,{style:{color:"#006CD9"}}),filterOption:(e,t)=>(null==t?void 0:t.children).toLowerCase().includes(e.toLowerCase()),children:[(0,a.jsx)(eg,{value:"",children:"All"}),ez.map(e=>(0,a.jsx)(eg,{value:e.uid,children:e.title},e.uid))]})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95  flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Countries",descKey:"Countries",className:"jsx-1a725fd401928f95"}),(0,a.jsx)(b.default,{mode:"multiple",maxTagCount:"responsive",placeholder:"Select Countries",onChange:e=>t2("countries",e),value:eW.countries,className:"w-full",showSearch:!0,optionFilterProp:"children",getPopupContainer:()=>document.body,dropdownStyle:{zIndex:100011},suffixIcon:(0,a.jsx)(f.Z,{style:{color:"#006CD9"}}),filterOption:(e,t)=>(null==t?void 0:t.children).toLowerCase().includes(e.toLowerCase()),children:e2.map(e=>(0,a.jsx)(eg,{value:e.id,children:e.name},e.id))})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95  flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"DA Min",descKey:"DAMin",className:"jsx-1a725fd401928f95"}),(0,a.jsx)(A.Z,{type:"number",placeholder:"DA Min",min:0,max:100,onChange:e=>t2("minDaRange",e),value:eW.minDaRange,className:"w-full"})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95  flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"DA Max",descKey:"DAMax",className:"jsx-1a725fd401928f95"}),(0,a.jsx)(A.Z,{placeholder:"DA Max",min:0,max:100,onChange:e=>t2("maxDaRange",e),value:eW.maxDaRange,className:"w-full"})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Ahrefs Traffic Min",descKey:"AhrefsTrafficMin",className:"jsx-1a725fd401928f95"}),(0,a.jsx)(A.Z,{placeholder:"Min Ahrefs Traffic",min:"0",value:tH.min_ahref_traffic,onChange:e=>t5("min_ahref_traffic",(null==e?void 0:e.toString())||""),className:"w-full"})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Ahrefs Traffic Max",descKey:"AhrefsTrafficMax",className:"jsx-1a725fd401928f95"}),(0,a.jsx)(A.Z,{placeholder:"Max Ahrefs Traffic",min:"0",value:tH.max_ahref_traffic,onChange:e=>t5("max_ahref_traffic",(null==e?void 0:e.toString())||""),className:"w-full"})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Semrush Traffic Min",descKey:"SemrushTrafficMin",className:"jsx-1a725fd401928f95"}),(0,a.jsx)(A.Z,{placeholder:"Min Semrush Traffic",min:"0",value:tH.min_semrush_traffic,onChange:e=>t5("min_semrush_traffic",(null==e?void 0:e.toString())||""),className:"w-full"})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Semrush Traffic Max",descKey:"SemrushTrafficMax",className:"jsx-1a725fd401928f95"}),(0,a.jsx)(A.Z,{placeholder:"Max Semrush Traffic",min:"0",value:tH.max_semrush_traffic,onChange:e=>t5("max_semrush_traffic",(null==e?void 0:e.toString())||""),className:"w-full"})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95  flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"DR Min",descKey:"DRMin",className:"jsx-1a725fd401928f95"}),(0,a.jsx)(A.Z,{placeholder:"DR Min",min:0,max:100,onChange:e=>t2("minDrRange",e),value:eW.minDrRange,className:"w-full"})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95  flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"DR Max",descKey:"DRMax",className:"jsx-1a725fd401928f95"}),(0,a.jsx)(A.Z,{placeholder:"DR Max",min:0,max:100,onChange:e=>t2("maxDrRange",e),value:eW.maxDrRange,className:"w-full"})]}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95  flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Price Min",descKey:"PriceMin",className:"jsx-1a725fd401928f95"}),(0,a.jsx)(A.Z,{placeholder:"Price Min",onChange:e=>t2("minPriceRange",e),value:eW.minPriceRange,className:"w-full"})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95  flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Price Max",descKey:"PriceMa
1x",className:"jsx-1a725fd401928f95"}),(0,a.jsx)(A.Z,{placeholder:"Price Max",onChange:e=>t2("maxPriceRange",e),value:eW.maxPriceRange,className:"w-full"})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Indexable Tag",descKey:"IsIndexable",className:"jsx-1a725fd401928f95"}),(0,a.jsxs)(b.default,{placeholder:"Indexable Tag",onChange:e=>t2("is_indexable",e),value:eW.is_indexable,className:"w-full",getPopupContainer:()=>document.body,dropdownStyle:{zIndex:100011},suffixIcon:(0,a.jsx)(f.Z,{style:{color:"#006CD9"}}),children:[(0,a.jsx)(eg,{value:"",children:"All"}),(0,a.jsx)(eg,{value:"true",children:"Yes"}),(0,a.jsx)(eg,{value:"false",children:"No"})]})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Sponsored Tag",descKey:"IsSponsored",className:"jsx-1a725fd401928f95"}),(0,a.jsxs)(b.default,{placeholder:"Sponsored Tag",onChange:e=>t2("is_sponsored",e),value:eW.is_sponsored,className:"w-full",getPopupContainer:()=>document.body,dropdownStyle:{zIndex:100011},suffixIcon:(0,a.jsx)(f.Z,{style:{color:"#006CD9"}}),children:[(0,a.jsx)(eg,{value:"",children:"All"}),(0,a.jsx)(eg,{value:"true",children:"Yes"}),(0,a.jsx)(eg,{value:"false",children:"No"})]})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"TAT Min (Days)",descKey:"TATMin",className:"jsx-1a725fd401928f95"}),(0,a.jsx)(A.Z,{placeholder:"Min TAT",min:"0",value:tH.tat_min,onChange:e=>t5("tat_min",(null==e?void 0:e.toString())||""),className:"w-full"})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"TAT Max (Days)",descKey:"TATMax",className:"jsx-1a725fd401928f95"}),(0,a.jsx)(A.Z,{placeholder:"Max TAT",min:"0",value:tH.tat_max,onChange:e=>t5("tat_max",(null==e?void 0:e.toString())||""),className:"w-full"})]})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 col-span-full flex flex-wrap gap-3 items-center justify-start mt-6 pt-6 border-t border-gray-200/60",children:[(0,a.jsxs)(w.ZP,{onClick:()=>{tR([]),tM(ec),eH({categories:[],language:"",linkType:"",countries:[],minDaRange:"",maxDaRange:"",minDrRange:"",maxDrRange:"",minTrafficRange:"",maxTrafficRange:"",minPriceRange:"",maxPriceRange:"",is_indexable:"",is_sponsored:""}),tn(1),eJ(""),si(""),tN(""),t4()},className:"bg-primarydark text-white h-10 px-6 rounded-md hover:shadow-lg transition-all duration-300 flex items-center gap-2 w-full sm:w-auto justify-center",children:[(0,a.jsx)(J.pYJ,{}),"Reset Filters"]}),ed&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("button",{onClick:()=>sf("top_selling"),className:"jsx-1a725fd401928f95 "+"group border font-medium h-10 border-primarydark text-sm px-6 py-2 rounded-md transition-all duration-300 ease-in-out flex items-center gap-2 hover:shadow-lg justify-center w-full sm:w-auto ".concat("top_selling"===tS?"bg-primarydark text-white":"text-primarydark hover:text-white hover:bg-primarydark bg-[#d0ebff]"),children:[(0,a.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",className:"jsx-1a725fd401928f95",children:(0,a.jsx)("path",{d:"M7 17L17 7M17 7H7M17 7V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"jsx-1a725fd401928f95"})}),(0,a.jsx)("span",{className:"jsx-1a725fd401928f95 whitespace-nowrap",children:"Top Selling"})]}),(0,a.jsxs)("button",{onClick:()=>sf("newly_added"),className:"jsx-1a725fd401928f95 "+"group border font-medium h-10 text-sm px-6 py-2 rounded-md transition-all duration-300 ease-in-out flex items-center gap-2 hover:shadow-lg justify-center w-full sm:w-auto ".concat("newly_added"===tS?"bg-primarydark text-white border-primarydark":"text-[#2e7d32] hover:text-white hover:bg-primarydark hover:border-primarydark bg-[#e8f5e9] border-[#2e7d32]"),children:[(0,a.jsx)(H.QJe,{className:"text-base"}),(0,a.jsx)("span",{className:"jsx-1a725fd401928f95 whitespace-nowrap",children:"Newly Added"})]}),(0,a.jsxs)("button",{onClick:()=>{eC?(localStorage.setItem("selectedMenu",'"all publisher sites"'),window.open("/all-publisher-sites","_blank")):(localStorage.setItem("selectedMenu",'"press releases"'),window.open("/press-release-dashboard","_blank"))},className:"jsx-1a725fd401928f95 group border font-medium h-10 border-[#c2185b] text-[#c2185b] text-sm px-6 py-2 rounded-md hover:text-white hover:bg-primarydark bg-[#fce4ec] hover:border-primarydark transition-all duration-300 ease-in-out flex items-center justify-center gap-2 hover:shadow-lg w-full sm:w-auto",children:[(0,a.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",className:"jsx-1a725fd401928f95",children:(0,a.jsx)("path",{d:"M12 2C13.1 2 14 2.9 14 4C14 5.1 13.1 6 12 6C10.9 6 10 5.1 10 4C10 2.9 10.9 2 12 2ZM21 9V7L15 4L13.5 7H9L7 14H9L11 22H13L15 14H17L21 9Z",fill:"currentColor",className:"jsx-1a725fd401928f95"})}),(0,a.jsx)("span",{className:"jsx-1a725fd401928f95 whitespace-nowrap",children:eC?"All Publisher Sites":"Digital PR"})]}),(0,a.jsxs)("button",{onClick:()=>{tZ(!0)},className:"jsx-1a725fd401928f95 group border font-medium h-10 border-primarydark text-primarydark text-sm px-6 py-2 rounded-md hover:text-white hover:bg-primarydark bg-white hover:border-primarydark transition-all duration-300 ease-in-out flex items-center justify-center gap-2 hover:shadow-lg w-full sm:w-auto whitespace-nowrap",children:[(0,a.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",className:"jsx-1a725fd401928f95",children:(0,a.jsx)("path",{d:"M10 18H14V16H10V18ZM3 6V8H21V6H3ZM6 13H18V11H6V13Z",fill:"currentColor",className:"jsx-1a725fd401928f95"})}),(0,a.jsx)("span",{className:"jsx-1a725fd401928f95",children:"Advanced Filter"})]})]})]})]})}):""}),(0,a.jsx)(n(),{id:"1a725fd401928f95",children:".sticky-scrollbar.
1jsx-1a725fd401928f95 .ant-table-body.jsx-1a725fd401928f95{overflow-x:auto!important;scrollbar-width:thin;scrollbar-gutter:stable}.sticky-scrollbar.jsx-1a725fd401928f95 .ant-table-body.jsx-1a725fd401928f95::-webkit-scrollbar{height:10px;background-color:#f1f1f1}.sticky-scrollbar.jsx-1a725fd401928f95 .ant-table-body.jsx-1a725fd401928f95::-webkit-scrollbar-track{background:#f1f1f1;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.sticky-scrollbar.jsx-1a725fd401928f95 .ant-table-body.jsx-1a725fd401928f95::-webkit-scrollbar-thumb{background:#888;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.sticky-scrollbar.jsx-1a725fd401928f95 .ant-table-body.jsx-1a725fd401928f95::-webkit-scrollbar-thumb:hover{background:#555}.sticky-scrollbar.jsx-1a725fd401928f95 .ant-table-wrapper.jsx-1a725fd401928f95{position:relative;overflow:visible}"}),(0,a.jsx)(D.Z,{columns:sC,dataSource:eD,rowClassName:"custom-row-hover",pagination:!1,scroll:{x:"max-content"},rowKey:"website_id",loading:to,bordered:!0,size:"small",onChange:(e,t,s)=>{(null==s?void 0:s.field)&&(null==s?void 0:s.order)?tR([{field:t3(s.field),order:"ascend"===s.order?"asc":"desc"}]):tR([])}}),sA>0&&(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 flex flex-col items-center justify-center my-6 space-y-3",children:[(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 flex items-center gap-4 flex-wrap justify-center",children:[(0,a.jsx)(w.ZP,{onClick:()=>{tr>1&&tn(tr-1)},disabled:1===tr||to,icon:(0,a.jsx)(p.Z,{}),className:"flex items-center gap-2",children:"Previous"}),(0,a.jsx)("div",{className:"jsx-1a725fd401928f95 text-center",children:(0,a.jsxs)("span",{className:"jsx-1a725fd401928f95 text-sm font-medium text-gray-700",children:["Page ",tr]})}),(0,a.jsx)(w.ZP,{onClick:()=>{tr<sD&&tn(tr+1)},disabled:tr===sD||0===sD||to,icon:(0,a.jsx)(g.Z,{}),iconPosition:"end",className:"flex items-center gap-2",children:"Next"}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 flex items-center gap-2 ml-4",children:[(0,a.jsx)("span",{className:"jsx-1a725fd401928f95 text-sm text-gray-600",children:"Rows per page:"}),(0,a.jsx)(b.default,{value:tl,onChange:e=>{ti(e),tn(1)},className:"w-20",size:"small",getPopupContainer:()=>document.body,dropdownStyle:{zIndex:100011},suffixIcon:(0,a.jsx)(f.Z,{}),children:[10,20,30,40,50].map(e=>(0,a.jsx)(eg,{value:e,children:e},e))})]})]}),(0,a.jsxs)("div",{className:"jsx-1a725fd401928f95 text-xs text-gray-500",children:["Showing ",sT," to ",sI," entries"]})]})]})})}),(0,a.jsx)(T.Z,{title:"Advanced Filters",open:tP,onCancel:sp,width:800,footer:[(0,a.jsx)(w.ZP,{onClick:t4,children:"Reset"},"reset"),(0,a.jsx)(w.ZP,{type:"primary",onClick:sp,children:"Close"},"close")],children:(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Min Deals",descKey:"DealsMin"}),(0,a.jsx)(A.Z,{placeholder:"Min Deals",min:"0",value:tH.min_deals,onChange:e=>t5("min_deals",(null==e?void 0:e.toString())||""),className:"w-full"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Max Deals",descKey:"DealsMax"}),(0,a.jsx)(A.Z,{placeholder:"Max Deals",min:"0",value:tH.max_deals,onChange:e=>t5("max_deals",(null==e?void 0:e.toString())||""),className:"w-full"})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"AS Min",descKey:"ASMin"}),(0,a.jsx)(A.Z,{placeholder:"Min AS",min:"0",max:"100",value:tH.min_semrush_score,onChange:e=>t5("min_semrush_score",(null==e?void 0:e.toString())||""),className:"w-full"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"AS Max",descKey:"ASMax"}),(0,a.jsx)(A.Z,{placeholder:"Max AS",min:"0",max:"100",value:tH.max_semrush_score,onChange:e=>t5("max_semrush_score",(null==e?void 0:e.toString())||""),className:"w-full"})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Spam Score Min",descKey:"SpamScoreMin"}),(0,a.jsx)(A.Z,{placeholder:"Min Spam Score",min:"0",max:"100",value:tH.min_spam_score,onChange:e=>t5("min_spam_score",(null==e?void 0:e.toString())||""),className:"w-full"})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Spam Score Max",descKey:"SpamScoreMax"}),(0,a.jsx)(A.Z,{placeholder:"Max Spam Score",min:"0",max:"100",value:tH.max_spam_score,onChange:e=>t5("max_spam_score",(null==e?void 0:e.toString())||""),className:"w-full"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,a.jsx)(sS,{label:"Added Date Range",descKey:"AddedDateRange"}),(0,a.jsx)(eb,{value:tH.addedDateRange,onChange:e=>t5("addedDateRange",e),className:"w-full",popupClassName:"responsive-range-popup"})]})]})}),(0,a.jsx)(T.Z,{title:"Live Content: ".concat((null==tE?void 0:null===(t=tE.website)||void 0===t?void 0:t.domain)||(null==tE?void 0:tE.domain)||"Website"),open:tL,onCancel:()=>{tF(!1),tO(null),tz([]),tW(""),tU(!1)},footer:null,width:760,children:(0,a.jsx)("div",{className:"space-y-3 max-h-[60vh] overflow-y-auto pr-1",children:tK?(0,a.jsx)("div",{className:"text-sm text-gray-500 py-6 text-center",children:"Loading posts..."}):tG?(0,a.jsx)("div",{className:"text-sm text-red-500 py-6 text-center",children:tG}):(tB.length>0?tB:tq(tE||{}).slice(1)).map(e=>(0,a.jsxs)("div",{className:"border border-gray-200 rounded-lg p-3 hover:border-primarydark transition-colors",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,a.jsx)("a",{href:e.post_url,target:"_blank",rel:"noopener noreferrer nofollow",className:"text-sm font-semibold text-primarydark line-clamp-2 break-all hover:underline",children:tQ(e)}),(0,a.jsx)("button",{type:"button",className:"bg-blue-500 hover:bg-blue-600 text-white font-semibold px-3 py-1.5 rounded text-sm transition-colors duration-200 whitespace-nowrap",onClick:()=>ss(tE,null==e?void 0:e.post_url),children:"Buy Now"})]}),(0,a.jsx)("a",{href:e.post_url,target:"_blank",rel:"noopener noreferrer nofollow",className:"block text-xs text-gray-500 mt-1 line-clamp-2 break-all hover:underline",children:null==e?void 0:e.post_url})]},e.post_id||e.post_url))})}),(0,a.jsx)(I.Z,{title:"Report ".concat((null==se?void 0:null===(s=se.website)||void 0===s?void 0:s.domain)||"Website"),placement:"right",mask:!0,width:410,onClose:t1,headerStyle:{backgroundColor:"#006CD9",color:"white"},open:e7,closeIcon:(0,a.jsx)("span",{style:{color:"white"},children:"✕"}),children:(0,a.jsxs)("div",{className:"p-4",children:[(0,a.jsx)(R.ZP.Group,{className:"flex flex-col space-y-2",onCh
1ange:e=>{e3(e.target.value),"Other"!==e.target.value&&tt("")},value:e6,children:["The domain name is parked","The website is a Phishing Site","The website is infringing copyright","The site is a fraudulent website","The website includes inappropriate content","The categories and metrics of the website don't match","Other"].map((e,t)=>(0,a.jsx)(R.ZP,{value:e,className:"",children:e},t))}),(0,a.jsxs)("div",{className:"mt-4",children:[(0,a.jsx)("label",{htmlFor:"other-reason",className:"block text-sm font-medium mb-2",children:"Any other reason:"}),(0,a.jsx)(P.default.TextArea,{id:"other-reason",rows:4,placeholder:"Please specify your reason here...",value:te,onChange:e=>tt(e.target.value),disabled:"Other"!==e6,className:"text-sm"})]}),(0,a.jsx)(w.ZP,{type:"primary",className:"w-full mt-6 disabled:!bg-gray-2 disabled:!text-gray-6",style:{backgroundColor:"#ef4444 ",color:"white"},onClick:()=>{sn()},disabled:!e6||"Other"===e6&&!te||tp,loading:tp,children:"Report"})]})}),(0,a.jsx)(T.Z,{title:"Bulk Search URLs",open:tb,onCancel:sh,width:500,footer:[(0,a.jsx)(w.ZP,{onClick:sh,children:"Cancel"},"cancel"),(0,a.jsx)(w.ZP,{type:"primary",onClick:()=>{let e=(0,ep.G)(tk).split(/[\n, ]+/).map(e=>(0,ep.G)(e)).filter(e=>e.length>0),t=[];e.forEach(e=>{t.includes(e)||t.push(e)}),(e=t).length>50&&(G.default.error("Maximum 50 URLs allowed. Only the first 50 will be used."),e=e.slice(0,50));let s=e.filter(e=>e.startsWith("http://")||e.startsWith("https://")||e.includes("."));if(0===s.length){G.default.error("Please enter at least one valid URL.");return}s.length<e.length&&G.default.error("".concat(e.length-s.length," invalid URL(s) were removed.")),tN(s.join()),eJ(""),tj(!1),tn(1),t_("")},disabled:(()=>{let e=tk.split(/[\n, ]+/).map(e=>e.trim()).filter(e=>e.length>0&&(e.startsWith("http://")||e.startsWith("https://")||e.includes(".")));return 0===e.length||e.length>50})(),children:"Search"},"save")],children:(0,a.jsx)("div",{className:"space-y-4 lg:min-w-[400px]",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm text-gray-600 mb-2",children:"Enter URLs (one per line, maximum 50 URLs):"}),(0,a.jsx)(P.default.TextArea,{value:tk,onChange:e=>{let t=e.target.value,s=t.split(/[\n, ]+/).map(e=>e.trim()).filter(e=>e.length>0);s.length>50&&(t=s.slice(0,50).join("\n"),G.default.error("Maximum 50 URLs allowed. Extra URLs have been removed.")),t_(t)},placeholder:"https://example1.com",rows:10,className:"w-full"}),(0,a.jsxs)("div",{className:"flex justify-between items-center mt-2",children:[(0,a.jsx)("span",{className:"text-xs text-gray-500",children:(()=>{let e=tk.split(/[\n, ]+/).map(e=>e.trim()).filter(e=>e.length>0&&(e.startsWith("http://")||e.startsWith("https://")||e.includes(".")));return"".concat(e.length," / 50 URLs")})()}),(()=>{let e=tk.split(/[\n, ]+/).map(e=>e.trim()).filter(e=>e.length>0&&(e.startsWith("http://")||e.startsWith("https://")||e.includes(".")));return e.length>50?(0,a.jsx)("span",{className:"text-xs text-red-500",children:"Too many URLs! Maximum 50 allowed."}):0===e.length?(0,a.jsx)("span",{className:"text-xs text-red-500",children:"Please enter at least one URL."}):e.length>0&&e.filter(e=>!e.startsWith("http://")&&!e.startsWith("https://")&&!e.includes(".")).length>0?(0,a.jsx)("span",{className:"text-xs text-red-500",children:"Some entries don't look like valid 
1URLs."}):null})()]})]})})})]})}},93148:function(e,t,s){s.d(t,{H:function(){return l},a:function(){return i}});var a=s(57437),r=s(2265);let n=(0,r.createContext)(null),l=e=>{let{children:t}=e,[s,l]=(0,r.useState)(()=>{{let e=localStorage.getItem("selectedRecord");return e?JSON.parse(e):null}});return(0,r.useEffect)(()=>{s?localStorage.setItem("selectedRecord",JSON.stringify(s)):localStorage.removeItem("selectedRecord")},[s]),(0,a.jsx)(n.Provider,{value:{selectedRecord:s,setSelectedRecord:l},children:t})},i=()=>(0,r.useContext)(n)},26548:function(e,t,s){s.d(t,{n:function(){return i}});var a=s(2265),r=s(40525),n=s(8606),l=s(99376);let i=()=>{let e=(0,r.T)(),{data:t,loading:s,error:i,lastFetched:o}=(0,r.C)(e=>e.commonDetails),d=(0,l.usePathname)(),c=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{if(!(!d||d.includes("/not-found"))){if(t&&o&&!(Date.now()-o>3e5)){c.current=!0;return}!s&&(c.current||(c.current=!0,e((0,n.hb)())))}},[t,s,o,d,e]),(0,a.useEffect)(()=>{t&&o&&!(Date.now()-o>3e5)&&(c.current=!0)},[t,o]),{commonDetails:t,loading:s,error:i,refetch:()=>{c.current=!1,e((0,n.hb)())}}}},40525:function(e,t,s){s.d(t,{C:function(){return n},T:function(){return r}});var a=s(68575);let r=()=>(0,a.I0)(),n=a.v9},8606:function(e,t,s){s.d(t,{hb:function(){return l}});var a=s(39129),r=s(99551);let n=e=>Date.now()-e>3e5,l=(0,a.hg)("commonDetails/fetchCommonDetails",async(e,t)=>{let{getState:s,rejectWithValue:a}=t;try{let{data:e,lastFetched:t}=s().commonDetails;if(e&&t&&!n(t))return{data:e,fromCache:!0};let a=await fetch("".concat(r.BASE_URL,"common-website-details/"),{method:"GET",headers:{"Content-Type":"application/json"},cache:"no-store"});if(!a.ok)throw Error("Failed to fetch common details: ".concat(a.status));return{data:await a.json(),fromCache:!1}}catch(e){return a(e.message||"Failed to fetch common details")}},{condition:(e,t)=>{let{getState:s}=t,{loading:a,data:r,lastFetched:l,error:i}=s().commonDetails;return!(a||r&&l&&!n(l)||i&&l&&Date.now()-l<3e4)}}),i=(0,a.oM)({name:"commonDetails",initialState:{data:null,loading:!1,error:null,lastFetched:null},reducers:{clearCommonDetails:e=>{e.data=null,e.loading=!1,e.error=null,e.lastFetched=null},updateCommonDetails:(e,t)=>{e.data=t.payload,e.lastFetched=Date.now()}},extraReducers:e=>{e.addCase(l.pending,e=>{(!e.data||!e.lastFetched||n(e.lastFetched))&&(e.loading=!0),e.error=null}).addCase(l.fulfilled,(e,t)=>{e.loading=!1,t.payload.fromCache||(e.data=t.payload.data,e.lastFetched=Date.now()),e.error=null}).addCase(l.rejected,(e,t)=>{e.loading=!1,!e.data||!e.lastFetched||n(e.lastFetched)?e.error=t.payload:e.error=null})}}),{clearCommonDetails:o,updateCommonDetails:d}=i.actions;t.ZP=i.reducer},99551:function(e,t,s){s.r(t),s.d(t,{BASE_URL:function(){return r}});var a=s(83464);let r="https://www.vefogix.com/api/".replace(/^http:\/\//,"https://");a.default.interceptors.request.use(e=>("string"==typeof e.url&&(e.url=e.url.replace(/^http:\/\//,"https://")),e))},21239:function(e,t,s){s.d(t,{Fh:function(){return n},so:function(){return r}});let a={USA:"US","United States":"US","United States of America":"US","United Kingdom":"GB",UK:"GB","Great Britain":"GB",Brazil:"BR",Germany:"DE",Portugal:"PT","South Korea":"KR",Korea:"KR","Korea, Republic of":"KR",Spain:"ES",Mexico:"MX",Argentina:"AR",France:"FR",Italy:"IT",Netherlands:"NL",Sweden:"SE",Norway:"NO",Denmark:"DK",Finland:"FI",Poland:"PL",Russia:"RU",China:"CN",Japan:"JP",Singapore:"SG",Malaysia:"MY",Thailand:"TH",Indonesia:"ID",Philippines:"PH",Vietnam:"VN",Chile:"CL",Colombia:"CO",Peru:"PE","South Africa":"ZA",Egypt:"EG",Nigeria:"NG",Kenya:"KE",Morocco:"MA",Tunisia:"TN",Algeria:"DZ",Ghana:"GH",Ethiopia:"ET",Uganda:"UG",Tanzania:"TZ",Zimbabwe:"ZW",Botswana:"BW",Namibia:"NA",Zambia:"ZM",Malawi:"MW",Mozambique:"MZ",Madagascar:"MG",Mauritius:"MU",Seychelles:"SC",Canada:"CA",Australia:"AU","New Zealand":"NZ",India:"IN",Pakistan:"PK",Bangladesh:"BD","Sri Lanka":"LK",Nepal:"NP",Bhutan:"BT",Maldives:"MV",Afghanistan:"AF",Iran:"IR",Iraq:"IQ",Israel:"IL",Palestine:"PS",Jordan:"JO",Lebanon:"LB",Syria:"SY",Turkey:"TR","Saudi Arabia":"SA",UAE:"AE","United Arab Emirates":"AE",Qatar:"QA",Kuwait:"KW",Bahrain:"BH",Oman:"OM",Yemen:"YE",Iceland:"IS",Ireland:"IE",Belgium:"BE",Switzerland:"CH",Austr
1ia:"AT","Czech Republic":"CZ",Slovakia:"SK",Hungary:"HU",Romania:"RO",Bulgaria:"BG",Croatia:"HR",Serbia:"RS","Bosnia and Herzegovina":"BA",Montenegro:"ME",Albania:"AL",Macedonia:"MK",Greece:"GR",Cyprus:"CY",Malta:"MT",Luxembourg:"LU",Monaco:"MC",Andorra:"AD","San Marino":"SM","Vatican City":"VA",Liechtenstein:"LI",Ukraine:"UA",Belarus:"BY",Moldova:"MD",Lithuania:"LT",Latvia:"LV",Estonia:"EE",Georgia:"GE",Armenia:"AM",Azerbaijan:"AZ",Kazakhstan:"KZ",Uzbekistan:"UZ",Kyrgyzstan:"KG",Tajikistan:"TJ",Turkmenistan:"TM",Mongolia:"MN","North Korea":"KP",Taiwan:"TW","Hong Kong":"HK",Macau:"MO",Myanmar:"MM",Laos:"LA",Cambodia:"KH",Brunei:"BN","East Timor":"TL","Papua New Guinea":"PG",Fiji:"FJ",Samoa:"WS",Tonga:"TO",Vanuatu:"VU","Solomon Islands":"SB",Kiribati:"KI",Tuvalu:"TV",Nauru:"NR",Palau:"PW","Marshall Islands":"MH",Micronesia:"FM","Cook Islands":"CK",Niue:"NU",Tokelau:"TK","American Samoa":"AS",Guam:"GU","Northern Mariana Islands":"MP","Puerto Rico":"PR","US Virgin Islands":"VI","British Virgin Islands":"VG",Anguilla:"AI","Antigua and Barbuda":"AG",Aruba:"AW",Bahamas:"BS",Barbados:"BB",Belize:"BZ",Bermuda:"BM","Cayman Islands":"KY","Costa Rica":"CR",Cuba:"CU",Curaçao:"CW",Dominica:"DM","Dominican Republic":"DO","El Salvador":"SV",Grenada:"GD",Guatemala:"GT",Haiti:"HT",Honduras:"HN",Jamaica:"JM",Nicaragua:"NI",Panama:"PA","Saint Kitts and Nevis":"KN","Saint Lucia":"LC","Saint Vincent and the Grenadines":"VC","Sint Maarten":"SX","Trinidad and Tobago":"TT","Turks and Caicos Islands":"TC",Venezuela:"VE",Guyana:"GY",Suriname:"SR","French Guiana":"GF",Uruguay:"UY",Paraguay:"PY",Bolivia:"BO",Ecuador:"EC","Bolivarian Republic of Venezuela":"VE","Republic of the Congo":"CG","Democratic Republic of the Congo":"CD","Central African Republic":"CF",Chad:"TD",Niger:"NE","Burkina Faso":"BF",Mali:"ML",Senegal:"SN",Gambia:"GM",Guinea:"GN","Guinea-Bissau":"GW","Sierra Leone":"SL",Liberia:"LR","C\xf4te d'Ivoire":"CI","Ivory Coast":"CI",Togo:"TG",Benin:"BJ",Angola:"AO",Gabon:"GA","Equatorial Guinea":"GQ","S\xe3o Tom\xe9 and Pr\xedncipe":"ST",Cameroon:"CM",Rwanda:"RW",Burundi:"BI",Djibouti:"DJ",Somalia:"SO",Eritrea:"ER",Sudan:"SD","South Sudan":"SS",Lesotho:"LS",Swaziland:"SZ",Eswatini:"SZ",Comoros:"KM",Mayotte:"YT",Réunion:"RE","Saint Helena":"SH","Ascension Island":"AC","Tristan da Cunha":"TA"},r=e=>a[e]||e.substring(0,2).toUpperCase(),n=e=>Object.keys(a).find(t=>a[t]===e)},21465:function(e,t,s){s.d(t,{G:function(){return a}});let a=e=>(e||"").replace(/[\u200B-\u200F\u202A-\u202E\u2066-\u2069\uFEFF]/g,"").replace(/[\u00A0\u1680\u2000-\u200A\u202F\u205F\u3000]/g," ").replace(/[\u0000-\u001F\u007F]/g," ").trim()}}]);

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.