PageSourceSearch

https://cloudanswers.com/_next/static/chunks/pages/account/cleaner/old_index-c6454583331da1e6.js

js cloudanswers.com collected 2026-10-04 00:30:51 UTC 7,101 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6821],{92651:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/cleaner/old_index",function(){return r(27467)}])},10627:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(85893),l=r(67294);function o(){let[e,t]=(0,l.useState)(!1),r=(0,l.useMemo)(()=>()=>{t(!0),fetch("/api/make_duplicates").then(e=>e.json()).then(e=>console.log({res:e})).finally(()=>t(!1))},[]);return e?(0,n.jsx)("div",{className:"spinner-border m-2",role:"status",children:(0,n.jsx)("span",{className:"visually-hidden",children:"Loading..."})}):(0,n.jsx)("button",{className:"btn btn-secondary mx-2 mb-4",onClick:r,children:"Create Duplicates for testing (only works in dev orgs)"})}},27467:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return y},default:function(){return w}});var n=r(85893),l=r(41664),o=r.n(l),i=r(67294),s=r(30381),a=r.n(s),c=r(10627),d=r(45697),u=r.n(d),h=["color","size","title"];function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var p=(0,i.forwardRef)(function(e,t){var r=e.color,n=e.size,l=e.title,o=function(e,t){if(null==e)return{};var r,n,l=function(e,t){if(null==e)return{};var r,n,l={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,h);return i.createElement("svg",f({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},o),l?i.createElement("title",null,l):null,i.createElement("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),i.createElement("path",{d:"M5 6.25a1.25 1.25 0 1 1 2.5 0v3.5a1.25 1.25 0 1 1-2.5 0v-3.5zm3.5 0a1.25 1.25 0 1 1 2.5 0v3.5a1.25 1.25 0 1 1-2.5 0v-3.5z"}))});p.propTypes={color:u().string,size:u().oneOfType([u().string,u().number]),title:u().string},p.defaultProps={color:"currentColor",size:"1em",title:null};var v=["color","size","title"];function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var m=(0,i.forwardRef)(function(e,t){var r=e.color,n=e.size,l=e.title,o=function(e,t){if(null==e)return{};var r,n,l=function(e,t){if(null==e)return{};var r,n,l={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,v);return i.createElement("svg",j({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},o),l?i.createElement("title",null,l):null,i.createElement("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),i.createElement("path",{d:"M6.271 5.055a.5.5 0 0 1 .52.038l3.5 2.5a.5.5 0 0 1 0 .814l-3.5 2.5A.5.5 0 0 1 6 10.5v-5a.5.5 0 0 1 .271-.445z"}))});m.propTypes={color:u().string,size:u().oneOfType([u().string,u().number]),title:u().string},m.defaultProps={color:"currentColor",size:"1em",title:null};var b=["color","size","title"];function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var g=(0,i.forwardRef)(function(e,t){var r=e.color,n=e.size,l=e.title,o=function(e,t){if(null==e)return{};var r,n,l=function(e,t){if(null==e)return{};var r,n,l={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(l[r]=e[r]);return l}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(l[r]=e[r])}return l}(e,b);return i.createElement("svg",x({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:n,height:n,fill:r},o),l?i.createElement("title",null,l):null,i.createElement("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"}),i.createElement("path",{d:"M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z"}))});
1g.propTypes={color:u().string,size:u().oneOfType([u().string,u().number]),title:u().string},g.defaultProps={color:"currentColor",size:"1em",title:null};var y=!0;function w(e){let{user:t}=e,[r,l]=(0,i.useState)(!1),[s,d]=(0,i.useState)(null),[u,h]=(0,i.useState)(null);return(0,i.useEffect)(()=>{l(!0),Promise.all([fetch("/api/jobs").then(e=>e.json()).then(d),fetch("/api/organization").then(e=>e.json()).then(e=>h(e.OrganizationType.includes("Developer")))]).finally(()=>l(!1))},[]),(0,n.jsx)("div",{children:(0,n.jsxs)("main",{children:[(0,n.jsx)("h2",{className:"display-6 text-center mb-4",children:"cleaning jobs"}),(0,n.jsxs)("div",{className:"text-center",children:[(0,n.jsx)(o(),{href:"/add",className:"btn btn-primary mb-4",children:"add new cleanup job"}),u&&(0,n.jsx)(c.Z,{})]}),(0,n.jsxs)("div",{className:"table-responsive",children:[(0,n.jsxs)("table",{className:"table ",children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{scope:"col",children:"#"}),(0,n.jsx)("th",{scope:"col",children:"Object"}),(0,n.jsx)("th",{scope:"col",children:"Last-Updated"}),(0,n.jsx)("th",{scope:"col",children:"Records"}),(0,n.jsx)("th",{scope:"col",children:"Duplicates"}),(0,n.jsx)("th",{scope:"col",children:"Fields"})]})}),(0,n.jsx)("tbody",{children:null==s?void 0:s.filter(e=>{var t;return null===(t=e.object)||void 0===t?void 0:t.name}).map((e,t)=>{var r,l,i,s,c;return(0,n.jsxs)("tr",{children:[(0,n.jsxs)("th",{scope:"row",children:[(0,n.jsx)(o(),{href:"/jobs/".concat(e.id),children:Math.random()>.5?(0,n.jsx)(p,{}):Math.random()>.5?(0,n.jsx)(m,{}):(0,n.jsx)(g,{color:"red"})})," "]}),(0,n.jsx)("td",{children:null===(r=e.object)||void 0===r?void 0:r.name}),(0,n.jsx)("td",{children:(0,n.jsx)("time",{dateTime:e.createdDate,children:a()(e.createdDate).fromNow()})}),(0,n.jsx)("td",{children:Math.floor(1e3*Math.random())}),(0,n.jsx)("td",{children:Math.floor(100*Math.random())}),(0,n.jsx)("td",{children:(null===(i=e.postBody)||void 0===i?void 0:null===(l=i.field)||void 0===l?void 0:l.join)?null===(s=e.postBody)||void 0===s?void 0:s.field.join(", "):null===(c=e.postBody)||void 0===c?void 0:c.field})]},e.id)})})]}),(0,n.jsxs)("div",{className:"w-100 text-center",children:[!r&&s&&0===s.length&&"no existing data cleanup jobs",r&&(0,n.jsx)("div",{class:"spinner-border m-2",role:"status",children:(0,n.jsx)("span",{class:"visually-hidden",children:"Loading..."})})]})]})]})})}}},function(e){e.O(0,[4885,2888,9774,179],function(){return e(e.s=92651)}),_N_E=e.O()}]);
2//# sourceMappingURL=old_index-c6454583331da1e6.js.map

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.