PageSourceSearch

https://www.vefogix.com/_next/static/chunks/53986.0c6b01bc0f900547.js

js vefogix.com collected 2026-09-24 09:33:30 UTC 5,978 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[53986],{53986:function(e,t,r){r.r(t);var a=r(57437),s=r(99551),l=r(29436),n=r(42264),i=r(28297),d=r(79326),o=r(10353),c=r(95616),u=r(83464),x=r(64131),p=r(2265),g=r(37780),h=r(70457),b=r(45168),m=r(63400),f=r(91730);t.default=e=>{let{showHeader:t=!0}=e,[r,y]=(0,p.useState)([]),[j,k]=(0,p.useState)(!1),[v,w]=(0,p.useState)({current:1,pageSize:10,total:0}),[_,N]=(0,p.useState)(!1),[S,C]=(0,p.useState)(null),R=e=>{C(e),N(!0)},P=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;k(!0);let r=x.default.get("login_access_token");try{let a=await u.default.get("".concat(s.BASE_URL,"press-release-task/?report=true&page=").concat(e,"&page_size=").concat(t),{headers:{Authorization:"Bearer ".concat(r)}});y(a.data.results),w({current:e,pageSize:t,total:a.data.count})}catch(e){console.error("Failed to fetch PR Tasks:",e),n.ZP.error("Failed to fetch press releases")}finally{k(!1)}};(0,p.useEffect)(()=>{P()},[]);let I=e=>({filterDropdown:t=>{let{setSelectedKeys:r,selectedKeys:s,confirm:l,clearFilters:n}=t;return(0,a.jsxs)("div",{style:{padding:8},children:[(0,a.jsx)(i.default,{placeholder:"Search ".concat(Array.isArray(e)?e.join("."):e),value:s[0],onChange:e=>r(e.target.value?[e.target.value]:[]),onPressEnter:()=>l(),style:{width:188,marginBottom:8,display:"block"}}),(0,a.jsxs)("div",{style:{display:"flex",gap:"5px"},children:[(0,a.jsx)("button",{onClick:()=>l(),style:{padding:"5px",backgroundColor:"#1677ff",color:"white",border:"none",cursor:"pointer",borderRadius:"4px"},children:"Search"}),(0,a.jsx)("button",{onClick:()=>{n(),r([]),l()},style:{padding:"5px",backgroundColor:"gray",color:"white",border:"none",cursor:"pointer",borderRadius:"4px"},children:"Reset"})]})]})},filterIcon:e=>(0,a.jsx)(l.Z,{style:{color:e?"blue":"#fff",transition:"all ease 0.3s",fontSize:"18px"}}),onFilter:(t,r)=>{let a=Array.isArray(e)?e.reduce((e,t)=>null==e?void 0:e[t],r):r[e];return!!a&&a.toString().toLowerCase().includes(t.toLowerCase())}}),[z,A]=(0,p.useState)([{title:"ID",dataIndex:"id",key:"id",render:e=>(0,a.jsxs)("span",{className:"font-medium",children:["#",e]}),...I("id"),visible:!0},{title:"PR Title",dataIndex:"title",key:"title",...I("title"),visible:!0},{title:"PR Package Name",dataIndex:["pr_type_details","title"],key:"pr_type_title",...I(["pr_type_details","title"]),visible:!0},{title:"Created At",dataIndex:"created_at",key:"created_at",render:e=>new Date(e).toLocaleDateString(),visible:!0},{title:"Published",dataIndex:"publish",key:"publish",render:e=>(0,a.jsx)("span",{className:"px-2 py-1 rounded-full text-xs ".concat(e?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800"),children:e?"Yes":"No"}),visible:!1},{title:"PR Status",dataIndex:"pr_status",key:"pr_status",render:(e,t)=>{let r=(0,a.jsx)("span",{className:"px-2 py-1 rounded-full ".concat("published"===e?"bg-green-100 text-green-800":"rejected"===e?"bg-red-100 text-red-800":"draft"===e?"bg-yellow-100 text-yellow-800":"pending_for_report"===e?"bg-blue-100 text-blue-800":"bg-gray-100 text-gray-800"),children:(e=>{switch(e){case"rejected":return"Rejected";case"draft":return"Draft";case"published":return"Published";
1case"pending_for_report":return"Pending for Report";default:return e}})(e)});return"rejected"===e?(0,a.jsx)(d.Z,{content:(0,a.jsx)("div",{className:"max-w-sm",children:(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:t.rejected_note}})}),title:"Rejection Note",trigger:"hover",children:(0,a.jsxs)("p",{className:"flex items-center justify-center",children:[r,(0,a.jsx)(h.l3d,{className:"text-red-600 ml-1 text-lg"})]})}):r},visible:!0},{title:"Actions",key:"actions",align:"center",width:450,render:(e,t)=>{var r;let s=(null==t?void 0:null===(r=t.messages)||void 0===r?void 0:r.length)||0;return(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2 w-full flex-wrap",children:[(0,a.jsxs)("button",{onClick:()=>R(t),className:"inline-flex items-center gap-1.5 px-3 py-1 bg-gradient-to-r from-blue-600 to-indigo-600 text-white font-medium text-xs rounded-md transition-all duration-300 hover:shadow-md hover:from-blue-700 hover:to-indigo-700",children:[(0,a.jsx)(m.e$J,{className:"text-base"}),(0,a.jsx)("span",{children:"Chat"}),s>0&&(0,a.jsx)("span",{className:"ml-1 bg-white text-blue-700 text-[10px] font-bold px-1.5 py-0.2 rounded-full",children:s})]}),(0,a.jsxs)("a",{href:"/press-release/".concat(t.slug),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 px-3 py-1 border border-primarydark text-primarydark font-semibold text-xs rounded-md transition-all duration-300 hover:bg-primarydark/10",children:[(0,a.jsx)(g.mke,{className:"text-base"}),"Preview"]}),(null==t?void 0:t.pr_status)==="published"&&(0,a.jsxs)("a",{href:"/report/".concat(t.slug),target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 px-3 py-1 border border-primarydark text-primarydark font-semibold text-xs rounded-md transition-all duration-300 hover:bg-primarydark/10",children:[(0,a.jsx)(b.xaK,{className:"text-base"}),"View Reports"]})]})},visible:!0}]),D=z.filter(e=>e.visible);return(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsxs)("div",{className:"h-[150px] md:h-[100px] text-black w-full bg-white mb-4 rounded-lg flex flex-col gap-2 py-4 dark:bg-dark dark:text-white ",children:[(0,a.jsx)("h1",{className:"text-center text-lg md:text-xl font-bold",children:"Reports"}),(0,a.jsx)("p",{className:"text-center ",children:"Manage Your Reports."})]}),(0,a.jsx)("div",{className:"",children:(0,a.jsx)(o.Z,{spinning:j,children:(0,a.jsx)(c.Z,{dataSource:r,columns:D,rowKey:"id",className:"shadow-md rounded-lg bg-white",pagination:v,onChange:e=>{P(e.current,e.pageSize)},loading:j,scroll:{x:"max-content"},bordered:!0,size:"small"})})}),S&&(0,a.jsx)(f.Z,{open:_,onClose:()=>N(!1),taskData:S,isPublisher:!1,onMessageSent:()=>P(v.current,v.pageSize)})]})}}}]);

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.