PageSourceSearch

https://vastedge.com/_next/static/chunks/pages/deleted-page-list-content-6beb05e4b2d1de4b.js

js vastedge.com collected 2026-09-24 12:24:47 UTC 17,113 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4174],{20803:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/deleted-page-list-content",function(){return n(17846)}])},14448:function(e,t,n){"use strict";n.d(t,{De:function(){return c},El:function(){return d},ej:function(){return x},h9:function(){return o},jd:function(){return u},oO:function(){return l},x6:function(){return i},zw:function(){return s}});var r=n(29061),a=n(20700);function o(e,t){var n=(0,a.XP)(t);return r.Z.get("".concat(a.FH,"/getpageinfo").concat(n),{headers:{authorization:e}})}function l(e,t){return r.Z.patch("".concat(a.FH,"/restorePageinfobyid/").concat(t),{},{headers:{authorization:e}})}function s(e,t){return r.Z.get("".concat(a.FH,"/getpageinfobyid/").concat(e),{headers:{authorization:t}})}function i(e,t){return r.Z.post(a.FH+"/insertpageinfo",e,{headers:{Authorization:t}})}function d(e,t){return r.Z.post(a.FH+"/pageinfouploadfile",e,{headers:{authorization:t}})}function c(e,t,n){return r.Z.patch("".concat(a.FH,"/pageinfoUpdateid/").concat(e),t,{headers:{authorization:n}})}function u(e,t){return r.Z.delete(a.FH+"/deletePageinfobyid/".concat(e),{headers:{Authorization:t}})}function x(e,t,n){return r.Z.patch(a.FH+"/categoryUpdatebyid/".concat(e),n,{headers:{Authorization:t}})}},74258:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(47568),a=n(97582),o=n(85893),l=n(67294),s=n(47009);function i(e){var t=e.nameSearch,n=e.columns,i=e.perPage,d=e.getTableRows,c=e.onInputSearch,u=e.order,x=e.deleteList,p=e.startDate,h=e.endDate,f=function(){g(function(e){return e+1})},v=(0,l.useState)(0),m=v[0],g=v[1],w=(0,l.useState)(null),b=w[0],j=w[1],y=function(e){j(e.api)};return(0,l.useEffect)(function(){if(b){var e,t={getRows:(e=(0,r.Z)(function(e){var t,n,r,o;return(0,a.__generator)(this,function(a){switch(a.label){case 0:return null==b||b.showLoadingOverlay(),[4,d(i,e.endRow-i)];case 1:return n=(t=a.sent()).rows,r=t.total,o=t.error,null==b||b.hideOverlay(),o?null==e||e.successCallback([],0):null==e||e.successCallback(n,r),[2]}})}),function(t){return e.apply(this,arguments)})};null==b||b.setDatasource(t)}},[b,c,u,x,m,p,h,t,i]),(0,o.jsx)("div",{"aria-live":"polite","aria-busy":!1,className:"ag-theme-material",children:(0,o.jsx)(s.AgGridReact,{columnDefs:n,pagination:!0,rowModelType:"infinite",paginationPageSize:i,cacheBlockSize:i,onGridReady:y,onSortChanged:f,domLayout:"autoHeight",defaultColDef:{resizable:!0,flex:1}})})}},67153:function(e,t,n){"use strict";var r=n(85893);n(67294),t.Z=function(e){return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:"bg-[#fff] p-[10px] w-[full] rounded-[5px] flex",children:[(0,r.jsx)("input",{className:"focus-visible:outline-none none text-[#000] w-[100%]",placeholder:e.placeholder,value:e.value,onChange:function(t){e.searchUrl(t.target.value)}}),(0,r.jsx)("span",{className:"cursor-pointer",children:e.value.length>0?(0,r.jsx)("svg",{xmlns:"https://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-6 h-6 text-[#00000078] hover:bg-[#00000021] hover:rounded-[100px]",onClick:function(){return e.searchUrl("")},children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}):(0,r.jsx)("svg",{xmlns:"https://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-6 h-6 text-[#00000078]",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"})})})]})})}},17846:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var r=n(47568),a=n(97582),o=n(85893),l=n(67153),s=n(67294),i=n(41664),d=n.n(i),c=n(9473),u=n(86501),x=n(14448),p=n(60278),h=n(74258),f=n(9198),v=n.n(f);n(18698);var m=n(30381),g=n.n(m);function w(){var e=(0,c.v9)(function(e){return e.login}).data,t=(0,c.I0)(),n=(0,s.useState)(""),i=n[0],f=n[1],m=(0,s.useState)(""),w=m[0],y=m[1],N=(0,s.useState)(""),k=N[0],L=N[1],C=(0,s.use
1State)(""),R=C[0],D=C[1],z=(0,s.useState)(""),M=z[0],S=z[1],P=(0,s.useState)(10),_=P[0],U=P[1],T=(0,s.useState)(""),Y=T[0],Z=T[1],A=(0,s.useState)({id:"",status:!1,page:""}),B=A[0],F=A[1],H=(0,s.useState)(!1),E=H[0],I=H[1],W=(0,s.useState)(0),O=W[0],X=W[1],G=(0,s.useRef)(null),V=function(e){f(e.toLowerCase())};function q(){return(q=(0,r.Z)(function(n,r){var o,l,s,d,c,h;return(0,a.__generator)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,(0,x.h9)(null==e?void 0:e.token,{url:i,limit:n,offset:r,sortBy:Y,datefrom:w?g()(w).format("YYYY-MM-DD"):"",dateto:k?g()(k).format("YYYY-MM-DD"):"",name:R,pageType:M,pagestatus:"inactive"})];case 1:return s=a.sent().data,t((0,p.H2)(s)),[2,{rows:(null==s?void 0:null===(o=s.data)||void 0===o?void 0:o.pageinfo)||[],total:parseInt((null==s?void 0:null===(l=s.data)||void 0===l?void 0:l.total)||"0"),error:!1}];case 2:return d=a.sent(),console.error("Inactive page list error:",d),u.Am.error((null==d?void 0:null===(c=d.response)||void 0===c?void 0:null===(h=c.data)||void 0===h?void 0:h.msg)||(null==d?void 0:d.message)||"Unable to load inactive pages"),[2,{rows:[],total:0,error:!0}];case 3:return[2]}})})).apply(this,arguments)}function J(){return(J=(0,r.Z)(function(){var t,n,r,o,l,s,d;return(0,a.__generator)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,(0,x.h9)(null==e?void 0:e.token,{url:i,limit:"",offset:"",sortBy:Y,datefrom:w?g()(w).format("YYYY-MM-DD"):"",dateto:k?g()(k).format("YYYY-MM-DD"):"",name:R,pageType:M,exportdata:"y",pagestatus:"inactive"})];case 1:return t=a.sent().data,n=new Blob([t],{type:"text/csv;charset=utf-8;"}),r=window.URL.createObjectURL(n),(o=document.createElement("a")).href=r,o.setAttribute("download","Inactive Pages List ".concat(Date.now(),".csv")),document.body.appendChild(o),o.click(),document.body.removeChild(o),window.URL.revokeObjectURL(r),[3,3];case 2:return l=a.sent(),console.error("Inactive page export error:",l),u.Am.error((null==l?void 0:null===(s=l.response)||void 0===s?void 0:null===(d=s.data)||void 0===d?void 0:d.msg)||(null==l?void 0:l.message)||"Unable to export inactive pages"),[3,3];case 3:return[2]}})})).apply(this,arguments)}var K=function(e){e.target.checked?Z("asc"):Z("desc")};function Q(){return(Q=(0,r.Z)(function(t){var n,r,o,l,s,i,d;return(0,a.__generator)(this,function(n){switch(n.label){case 0:if(!t||E)return[2];I(!0),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,(0,x.oO)(null==e?void 0:e.token,t)];case 2:return(null==(r=n.sent().data)?void 0:r.status)?(u.Am.success((null==r?void 0:r.msg)||"Restored successfully"),F({id:"",status:!1,page:""}),X(function(e){return e+1})):u.Am.error((null==r?void 0:r.msg)||"Unable to restore page"),[3,5];case 3:return o=n.sent(),console.error("Restore API Error:",o),u.Am.error((null==o?void 0:null===(l=o.response)||void 0===l?void 0:null===(s=l.data)||void 0===s?void 0:s.msg)||(null==o?void 0:null===(i=o.response)||void 0===i?void 0:null===(d=i.data)||void 0===d?void 0:d.message)||(null==o?void 0:o.message)||"Unable to restore page"),[3,5];case 4:return I(!1),[7];case 5:return[2]}})})).apply(this,arguments)}var $=function(){f(""),y(""),L(""),S(""),D(""),Z("")};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"flex w-full justify-end gap-2 mb-3"}),(0,o.jsxs)("div",{className:"flex w-full gap-2",children:[(0,o.jsx)("div",{className:"w-3/12 2xl:w-4/12 xl:w-4/12 md:w-4/12 xs:w-12/12",children:(0,o.jsx)(l.Z,{value:i,searchUrl:function(e){V(e)},setSearchUrl:f,placeholder:"search by url.."})}),(0,o.jsx)("div",{className:"w-3/12 2xl:w-4/12 xl:w-4/12 md:w-4/12 xs:w-12/12",children:(0,o.jsx)(l.Z,{value:R,searchUrl:function(e){D(e.toLowerCase())},setSearchUrl:D,placeholder:"search by name.."})}),(0,o.jsxs)("div",{className:"w-2/12 2xl:w-4/12 xl:w-4/12 md:w-4/12 xs:w-12/12 flex gap-2 items-center",children:[(0,o.jsx)("label",{className:"text-[#000000ce] text-sm font-semibold whitespace-nowrap",children:"Filter By Page :"}),(0,o.jsxs)("select",{className:"focus-visible:outline-none text-[#000] w-[100%] rounded-[5px] py-[5px] px-[10px]",value:M,onChange:function(e){return S(e.target.value)},children:[(0,o.jsx)("option",{value:"",children:"All Pages"}),(0,o.jsx)("option",{value:"yes",children:"Redirect Pages"}),(0,o.jsx)("option",{value:"landing",children:"Landing Pages"}),(0,o.jsx)("option",{value:"sitemap",children:"SiteMap Pages"})]})]}),(0,o.jsxs)("div",{className:"w-3/12 flex",children:[(0,o.jsx)(v(),{dateFormat:"yyyy-MM-dd",placeholderText:"start date...",showIcon:!0,className:"w-full h-[41px] p-[10px] rounded-[5px] focus-visible:outline-none text-[#000]",selected:w,onChange:function(e){return y(e)}}),(0,o.jsx)("span",{className:"mx-1 text-[#000] flex justify-center items-center font-medium",children:"To"})]}),(0,o.jsx)("div",{className:"w-3/12",children:(0,o.jsx)(v(),{dateFormat:"yyyy-MM-dd",placeholderText:"end date...",showIcon:!0,className:"w-full h-[41px] p-[10px] rounded-[5px] focus-visible:outline-none text-[#000]",selected:k,onChange:function(e){return L(e)}})}),i||w||k||R||M?(0,o.jsx)("div",{className:"w-1/12 flex items-center",children:(0,o.jsx)("button",{type:"button",onClick:$,className:"text-[#fff] font-medium bg-[#000] hover:bg-[#ef4747] h-[40p
1x] rounded-[5px] px-[10px] py-[5px]",children:"RESET"})}):null,(0,o.jsx)("div",{className:"w-2/12",children:(0,o.jsxs)("button",{type:"button",onClick:function(){var e;return null==G?void 0:null===(e=G.current)||void 0===e?void 0:e.click()},className:"bg-[#3f63ea] text-[#fff] capitalize h-[90%] p-[5px] text-sm font-normal rounded-[5px] w-[120px] flex items-center justify-center hover:bg-[#002D62]",children:[(0,o.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",viewBox:"0 0 16 16",children:[(0,o.jsx)("path",{fillRule:"evenodd",d:"M10.082 5.629 9.664 7H8.598l1.789-5.332h1.234L13.402 7h-1.12l-.419-1.371h-1.781zm1.57-.785L11 2.687h-.047l-.652 2.157h1.351z"}),(0,o.jsx)("path",{d:"M12.96 14H9.028v-.691l2.579-3.72v-.054H9.098v-.867h3.785v.691l-2.567 3.72v.054h2.645V14zM4.5 2.5a.5.5 0 0 0-1 0v9.793l-1.146-1.147a.5.5 0 0 0-.708.708l2 1.999.007.007a.497.497 0 0 0 .7-.006l2-2a.5.5 0 0 0-.707-.708L4.5 12.293V2.5z"})]}),"Sort By URL",(0,o.jsx)("input",{style:{display:"none"},ref:G,type:"checkbox",onClick:K})]})}),(0,o.jsx)("div",{className:"w-2/12",children:(0,o.jsx)("button",{type:"button",onClick:function(){return J.apply(this,arguments)},className:"bg-[#3f63ea] text-[#fff] capitalize h-[90%] p-[5px] text-sm font-normal rounded-[5px] w-[120px] flex items-center justify-center hover:bg-[#002D62]",children:"Export Pages"})}),(0,o.jsx)("div",{className:"w-2/12",children:(0,o.jsx)(d(),{href:"/add-page-content",passHref:!0,legacyBehavior:!0,children:(0,o.jsxs)("a",{className:"bg-[#00308F] h-[45px] text-[#fff] font-semibold capitalize p-[5px] text-sm rounded-[5px] w-[150px] flex items-center justify-center hover:bg-[#002D62]",children:[(0,o.jsx)("svg",{fill:"none",stroke:"currentColor",strokeWidth:"1.5",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",className:"h-[25px]",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L6.832 19.82a4.5 4.5 0 01-1.897 1.13l-2.685.8.8-2.685a4.5 4.5 0 011.13-1.897L16.863 4.487zm0 0L19.5 7.125"})}),"add new page"]})})})]}),(0,o.jsx)("div",{className:"w-full col-span-2 py-[10px]",children:(0,o.jsx)(h.Z,{getTableRows:function(e,t){return q.apply(this,arguments)},columns:[{headerName:"Page Url",field:"url",resizable:!0,wrapText:!0,minWidth:300,flex:1,cellRenderer:function(e){var t,n=(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.url)||"";return(0,o.jsx)("div",{title:n,className:"truncate",children:n.length>70?"".concat(n.substring(0,69),"..."):n})}},{headerName:"Deleted By",field:"deletedbyname",resizable:!0,wrapText:!0,minWidth:180,flex:1,cellRenderer:function(e){var t,n;return(0,o.jsx)("div",{title:(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.deletedbyname)||"",children:(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.deletedbyname)||""})}},{headerName:"Deleted Date",field:"deleted_at",resizable:!0,wrapText:!0,minWidth:220,flex:1,cellRenderer:function(e){var t,n=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.deleted_at;if(!n)return"";var r=new Date(n);return isNaN(r.getTime())?n:(0,o.jsx)("div",{children:r.toLocaleString("en-US",{year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"})})}},{headerName:"Action",field:"id",resizable:!1,sortable:!1,minWidth:140,maxWidth:160,cellRenderer:function(e){return(0,o.jsx)(b,{TData:e,restoreLoading:E,setRestorePopup:F})}},],perPage:_,onInputSearch:i||M,order:Y,deleteList:!1,startDate:w,endDate:k,nameSearch:R},"inactive-pages-".concat(O))}),B.status?(0,o.jsx)(j,{restoreLoading:E,RestorePopup:B,setModal:F,handleRestore:function(e){return Q.apply(this,arguments)}}):null,(0,o.jsxs)("div",{className:"w-full flex justify-end items-center gap-3",children:[(0,o.jsx)("p",{className:"text-[#000] text-base",children:"Table Limit"}),(0,o.jsxs)("select",{value:_,className:"text-black",onChange:function(e){return U(Number(e.target.value))},children:[(0,o.jsx)("option",{value:10,children:"10"}),(0,o.jsx)("option",{value:50,children:"50"}),(0,o.jsx)("option",{value:150,children:"150"}),(0,o.jsx)("option",{value:250,children:"250"}),(0,o.jsx)("option",{value:350,children:"350"}),(0,o.jsx)("option",{value:450,children:"450"}),(0,o.jsx)("option",{value:550,children:"550"}),(0,o.jsx)("option",{value:650,children:"650"}),(0,o.jsx)("option",{value:750,children:"750"})]})]})]})}var b=function(e){var t,n,r=e.TData,a=e.restoreLoading,l=e.setRestorePopup,s=null==r?void 0:null===(t=r.data)||void 0===t?void 0:t.id,i=(null==r?void 0:null===(n=r.data)||void 0===n?void 0:n.url)||"";return(0,o.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,o.jsxs)("button",{type:"button",disabled:a,onClick:function(){if(!s){u.Am.error("Page ID is missing");return}l({id:s,status:!0,page:i})},className:"flex items-center justify-center gap-1 rounded-[5px] bg-[#3f63ea] px-3 py-2 text-[13px] font-medium text-white hover:bg-[#002D62] disabled:opacity-50",children:[(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.8",stroke:"currentColor",className:"h-4 w-4",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 15L4 10m0 0l5-5M4 10h11a5 5 0 010 10h-1"})}),"Restore"]})})},j=function(e){var t=e.restoreLoading,n=e.RestorePopup,r=e.setModal,a=e.handleRestore,l=function(){!t&&r({id:"",status:!1,page:""})};return(0,o.jsxs)("div",{className:"fixed inset-0 z-[999999999999] overflow-y-auto",role:"dialog","aria-modal":"true","aria-labelledby":"restore-modal-title",children:[(0,o.jsx)("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75"}),(0,o.jsx)("div",{className:"fixed inset-0 z-[999999999999] flex items-center justify-center bg-[#00000052] p-4",children:(0,o.jsxs)("div",{className:"relative w-full max-w-lg overflow-hidden rounded-lg bg-white shadow-xl",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between border-b px-5 py-4",children:[(0,o.jsx)("h3",{id:"restore-modal-title",className:"text-lg font-semibold text-gray-900",children:"Restore Page"}),(0,o.jsx)("button",{type:"button",onClick:l,disabled:t,"aria-label":"Close restore popup",className:"text-[22px] font-bold text-gray-500 hover:text-black disabled:cursor-not-allowed disabled:opacity-50",children:"\xd7"})]}),(0,o.jsxs)("div",{className:"px-5 py-8 text-center",children:[(0,o.jsx)("div",{className:"mb-5 flex justify-center",children:(0,o.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-full bg-blue-100",children:(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.8",stroke:"currentColor",className:"h-7 w-7 text-[#3f63ea]",children:(0,o.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 15L4 10m0 0l5-5M4 10h11a5 5 0 010 10h-1"})})})}),(0,o.jsx)("p",{className:"text-[16px] font-semibold text-gray-900",children:"Do you really want to restore this page?"}),(null==n?void 0:n.page)?(0,o.jsx)("div",{className:"mx-auto mt-4 max-w-[450px] break-all rounded-md bg-gray-100 px-3 py-2 text-sm text-gray-600",title:n.page,children:n.page}):null]}),(0,o.jsxs)("div",{className:"flex justify-end gap-3 border-t px-5 py-4",children:[(0,o.jsx)("button",{type:"button",onClick:function(){return a(null==n?void 0:n.id)}
1,disabled:t,className:"rounded-[15px] border border-[#3f63ea] px-5 py-2 text-[14px] font-bold text-[#3f63ea] hover:bg-[#3f63ea] hover:text-white disabled:cursor-not-allowed disabled:opacity-50",children:t?"Restoring...":"Yes"}),(0,o.jsx)("button",{type:"button",onClick:l,disabled:t,className:"rounded-[15px] border border-black px-5 py-2 text-[14px] font-bold text-black hover:bg-black hover:text-white disabled:cursor-not-allowed disabled:opacity-50",children:"No"})]})]})})]})}}},function(e){e.O(0,[9774,2153,4885,7009,696,4544,2888,179],function(){return e(e.s=20803)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.