PageSourceSearch

https://cdn1.housecreep.com/0c516d2/_next/static/chunks/pages/account/admin/reports-8fe90644844620aa.js

js housecreep.com collected 2026-10-03 20:22:28 UTC 14,227 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4732],{62304:function(a,b,c){"use strict";c.d(b,{Ph:function(){return q}});var d=c(73733),e=c(7601),f=c(94244),g=c(15031),h=c(38554),i=c.n(h),j=c(67294);function k(){return(k=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a}).apply(this,arguments)}function l(a,b){if(null==a)return{};var c,d,e={},f=Object.keys(a);for(d=0;d<f.length;d++)c=f[d],b.indexOf(c)>=0||(e[c]=a[c]);return e}var m=["children","placeholder","className"],n=["rootProps","placeholder","icon","color","height","h","minH","minHeight","iconColor","iconSize","isFullWidth"],o=["children"],p=(0,e.Gp)(function(a,b){var c=a.children,d=a.placeholder,f=a.className,h=l(a,m);return j.createElement(e.m$.select,k({},h,{ref:b,className:(0,g.cx)("chakra-select",f)}),d&&j.createElement("option",{value:""},d),c)});g.Ts&&(p.displayName="SelectField");var q=(0,e.Gp)(function(a,b){var c=(0,e.jC)("Select",a),h=(0,e.Lr)(a),m=h.rootProps,o=h.placeholder,q=h.icon,r=h.color,s=h.height,u=h.h,v=h.minH,w=h.minHeight,x=h.iconColor,y=h.iconSize;h.isFullWidth;var z=l(h,n),A=(0,g.Vl)(z,f.oE),B=A[0],C=A[1],D=(0,d.Yp)(C),E=i()({paddingEnd:"2rem"},c.field,{_focus:{zIndex:"unset"}});return j.createElement(e.m$.div,k({className:"chakra-select__wrapper",__css:{width:"100%",height:"fit-content",position:"relative",color:r}},B,m),j.createElement(p,k({ref:b,height:null!=u?u:s,minH:null!=v?v:w,placeholder:o},D,{__css:E}),a.children),j.createElement(t,k({"data-disabled":(0,g.PB)(D.disabled)},(x||r)&&{color:x||r},{__css:c.icon},y&&{fontSize:y}),q))});g.Ts&&(q.displayName="Select");var r=function(a){return j.createElement("svg",k({viewBox:"0 0 24 24"},a),j.createElement("path",{fill:"currentColor",d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}))},s=(0,e.m$)("div",{baseStyle:{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",top:"50%",transform:"translateY(-50%)"}}),t=function(a){var b=a.children,c=void 0===b?j.createElement(r,null):b,d=l(a,o),e=j.cloneElement(c,{role:"presentation",className:"chakra-select__icon",focusable:!1,"aria-hidden":!0,style:{width:"1em",height:"1em",color:"currentColor"}});return j.createElement(s,k({},d,{className:"chakra-select__icon-wrapper"}),j.isValidElement(c)?e:null)};g.Ts&&(t.displayName="SelectIcon")},47556:function(a,b,c){var d=c(88668),e=c(47443),f=c(1196),g=c(29932),h=c(7518),i=c(74757),j=Math.min;a.exports=function(a,b,c){for(var k=c?f:e,l=a[0].length,m=a.length,n=m,o=Array(m),p=1/0,q=[];n--;){var r=a[n];n&&b&&(r=g(r,h(b))),p=j(r.length,p),o[n]=!c&&(b||l>=120&&r.length>=120)?new d(n&&r):void 0}r=a[0];var s=-1,t=o[0];outer:for(;++s<l&&q.length<p;){var u=r[s],v=b?b(u):u;if(u=c||0!==u?u:0,!(t?i(t,v):k(q,v,c))){for(n=m;--n;){var w=o[n];if(!(w?i(w,v):k(a[n],v,c)))continue outer}t&&t.push(v),q.push(u)}}return q}},5976:function(a,b,c){var d=c(6557),e=c(45357),f=c(30061);a.exports=function(a,b){return f(e(a,b,d),a+"")}},24387:function(a,b,c){var d=c(29246);a.exports=function(a){return d(a)?a:[]}},25325:function(a,b,c){var d=c(29932),e=c(47556),f=c(5976),g=c(24387),h=f(function(a){var b=d(a,g);return b.length&&b[0]===a[0]?e(b):[]});a.exports=h},29246:function(a,b,c){var d=c(98612),e=c(37005);a.exports=function(a){return e(a)&&d(a)}},90930:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/admin/reports",function(){return c(30067)}])},65457:function(a,b,c){"use strict";c.d(b,{p:function(){return r}});var d=c(26042),e=c(69396),f=c(99534),g=c(85893),h=c(11972),i=c(73733),j=c(84597),k=c(51815),l=c(67294),m=c(63750),n=c(11163),o=c(97334),p=c.n(o),q=c(28485),r=function(a){var b=a.searchBar,c=a.query,o=a.children,r=(0,f.Z)(a,["searchBar","query","children"]),s=(0,n.useRouter)(),t=s.asPath.split(/[?#]/)[0],u=(0,l.useState)(c.q||""),v=u[0],w=u[1],x=function(){s.push(t+"?"+p().stringify((0,e.Z)((0,d.Z)({},c),{q:v,page:1})))},y=function(a){"enter"==a.key.toLowerCase()&&x()};return(0,g.jsxs)(h.Kq,(0,e.Z)((0,d.Z)({spacing:"4",direction:{base:"column",md:"row"},justify:"space-between",w:"full"},r),{children:[(void 0===b?1:b)?(0,g.jsxs)(h.Ug,{w:"full",children:[(0,g.jsx)(i.NI,{id:"search",children:(0,g.jsxs)(j.BZ,{size:"sm",w:"full",children:[(0,g.jsx)(i.lX,{srOnly:!0,children:"Search..."}),(0,g.jsx)(j.Z8,{zIndex:"base",pointerEvents:"none",color:"gray.400",children:(0,g.jsx)(m.dVI,{})}),(0,g.jsx)(j.II,{rounded:"base",w:"full",type:"search",defaultValue:v,onCh
1ange:function(a){return w(a.target.value)},onKeyUp:y,placeholder:"Search..."})]})}),(0,g.jsx)(k.hU,{onClick:x,size:"sm",icon:(0,g.jsx)(q.Search2Icon,{})})]}):"",o]}))}},13922:function(a,b,c){"use strict";c.d(b,{t:function(){return u}});var d=c(26042),e=c(69396),f=c(85893),g=c(11163),h=c(58424),i=c(38689),j=c(51815),k=c(11972),l=c(64737),m=c(51649),n=c(60155),o=c(41609),p=c.n(o),q=c(14176),r=c.n(q),s=c(96486),t=c(97334);function u(a){var b=a.active,c=a.total,o=a.query,q=a.dynamic,u=a.basePath,v=a.disabled,w=a.nextPrev,x=a.nextText,y=a.prevText,z=a.allowedParams,A=a.disallowedParams,B=void 0===A?[]:A,C=a.p,D=a.page_length,E=(parseInt(b)||1)-1,F=(0,g.useRouter)(),G=Array.from({length:Math.ceil((c>1e4?1e4:c)/D)},function(a,b){return b+1}),H=E+2>G.length?G.length-2-1>0?G.length-2-1:0:E,I=H+2>G.length?G.length:H+2,J=(0,i.ff)("gray.700","gray.200");(0,i.ff)("white","gray.800"),(0,i.ff)("gray.700","gray.200");var K=function(a){var b,c={bg:(0,i.ff)("gray.600","gray.600"),color:(0,i.ff)("gray.200","gray.200")},g=null!=u?u:F.asPath.split(/[?#]/)[0],k=t.stringify(r()((0,e.Z)((0,d.Z)({},z?(0,s.pick)(o,z):o),{page:a.page}),function(a){return p()((a||"").toString())||B.includes(a)}));return(0,f.jsx)(h.u,{href:[g,k].filter(function(a){return a}).join("?"),shallow:!1,prefetch:!1,scroll:!0,dynamic:q,passHref:!0,children:(0,f.jsx)(j.zx,(0,e.Z)((0,d.Z)({as:"a",variant:"brutalist-dark",rel:null!==(b=a.rel)&& void 0!==b?b:"",mx:1,px:{base:3,md:4},py:{base:1,md:1},fontSize:{base:"sm",md:"inherit"},rounded:"md",opacity:v&&.6,_hover:!v&&c,cursor:v&&"not-allowed"},a.active&&c),{display:C&&!a.active&&{base:"none",sm:"block"},children:a.children}))})};return(0,f.jsx)(k.kC,{w:"full",alignItems:"center",justifyContent:"center",py:8,children:(0,f.jsxs)(k.kC,{wrap:"wrap",children:[E>0?(0,f.jsx)(K,{page:E-1+1,query:o,rel:"prev",children:(0,f.jsx)(k.M5,{h:"full",w:"full",children:(0,f.jsxs)(k.Ug,{children:[(0,f.jsx)(l.JO,{as:m.u1R,color:J,boxSize:4})," ",w?(0,f.jsx)(k.xv,{as:"span",children:void 0===y?"Prev":y}):""]})})}):"",w?"":G.slice(H,I).map(function(a){return(0,f.jsx)(K,{page:a,query:o,active:E==a-1?"active":"",children:a},"pagination_"+a)}),w&E>0?(0,f.jsxs)(k.M5,{px:4,children:[" ",E+1," "]}):"",H<G.length-2&&!w?(0,f.jsxs)(f.Fragment,{children:[I<G.length-1?(0,f.jsx)(k.M5,{width:"32px",children:(0,f.jsx)(l.JO,{as:n.Ppk,bottom:"0"})}):"",(0,f.jsx)(K,{page:G.length,query:o,active:E==G.length-1?"active":"",children:G.length})]}):"",E<G.length-1?(0,f.jsx)(K,{page:E+1+1,rel:"next",children:(0,f.jsx)(k.M5,{h:"full",w:"full",children:(0,f.jsxs)(k.Ug,{children:[w?(0,f.jsx)(k.xv,{as:"span",children:void 0===x?"Next":x}):"",(0,f.jsx)(l.JO,{as:m.hjJ,color:J,boxSize:4})]})})}):""]})})}},57784:function(a,b,c){"use strict";c.d(b,{A:function(){return s}});var d=c(26042),e=c(69396),f=c(85893),g=c(88523),h=c(11972),i=c(38689),j=c(67294),k=c(86893),l=c(93886),m=c(99534),n=function(a){var b=a.children,c=(0,m.Z)(a,["children"]);return(0,f.jsx)(h.xu,(0,e.Z)((0,d.Z)({as:"main"},c),{children:(0,f.jsx)(h.Kq,{spacing:"8",children:b})}))},o=c(60002),p=c(25617),q=function(a){var b=a.posts,c=a.pagination,g=a.selectedIndex,i=void 0===g?0:g,j=a.onItemClick,k=(0,m.Z)(a,["posts","pagination","selectedIndex","onItemClick"]),l=(0,p.v9)(function(a){return a.global});return(0,f.jsxs)(h.Kq,(0,e.Z)((0,d.Z)({opacity:l.busy?.6:1,spacing:{base:"1px",lg:"1"},px:{lg:"3"},py:"3"},k),{children:[(void 0===b?[]:b).map(function(a,b){return(0,f.jsx)(h.xu,{onClick:function(c){return j(c,b,a)},cursor:"pointer","data-index":b,"aria-current":b===i?"page":void 0,_activeLink:{bg:"gray.700",color:"white"},borderRadius:{lg:"lg"},children:(0,f.jsxs)(h.Kq,{spacing:"1",py:{base:"3",lg:"2"},px:{base:"3.5",lg:"3"},fontSize:"sm",lineHeight:"1.25rem",children:[(0,f.jsx)(h.xu,{fontWeight:"bold",children:a.title}),(0,f.jsx)(h.xv,{color:"fg.muted",as:"div",children:a.excerpt}),(0,f.jsxs)(h.Ug,{w:"full",justify:"space-between",children:[(0,f.jsx)(h.xv,{opacity:.6,children:a.publishedAt}),(0,f.jsx)(h.xu,{children:a.flairs})]})]})},a.id)}),c]}))},r=c(11163),s=function(a){var b=a.defaultPane,c=a.section,m=a.sidebarFooter,p=a.article,s=a.sidebar,t=a.pagination,u=a.selectedIndex,v=a.children,w=a.sidebarActions,x=a.sidebarHeaderButton,y=a.permanentHeading,z=(0,j.use
1State)(!1),A=z[0],B=z[1],C=(0,j.useState)(!1),D=C[0],E=C[1],F=(0,j.useState)(void 0===b?2:b),G=F[0],H=F[1],I=(0,g.qY)();I.isOpen,I.onOpen,I.onClose;var J=(0,r.useRouter)(),K=(0,j.useRef)(null),L=(0,j.useRef)(null);return(0,j.useEffect)(function(){var a=function(a,b){L.current&&(L.current.style.opacity=1),K.current&&(K.current.style.opacity=1)},b=function(a,b){L.current&&(L.current.style.opacity=.6,L.current.scrollTop=0),K.current&&(K.current.style.opacity=.6,b.shallow||a===J.asPath||(K.current.scrollTop=0))};return J.events.on("beforeHistoryChange",a),J.events.on("routeChangeStart",b),function(){J.events.off("beforeHistoryChange",a),J.events.off("routeChangeStart",b)}},[]),(0,f.jsxs)(h.kC,{pos:"fixed",bottom:"0",w:"full",left:"0",right:"0",top:{base:"56px",lg:"80px"},children:[(0,f.jsx)(h.xu,{height:"full",width:{md:"13rem",xl:"20rem"},display:{base:"none",lg:"initial"},overflowY:"auto",borderRightWidth:"1px",children:(0,f.jsx)(o.wp,{})}),(0,f.jsxs)(h.xu,{borderRightWidth:"1px",width:{base:"full",md:"20rem",xl:"24rem"},display:{base:2==G?"initial":"none",md:s?"initial":"none"},overflowY:"auto",ref:K,onScroll:function(a){return B(a.currentTarget.scrollTop>32)},children:[(0,f.jsx)(l.x8,{shadow:A?"base":"none",children:(0,f.jsxs)(h.Ug,{justify:"space-between",width:"full",children:[(0,f.jsx)(h.Ug,{spacing:"3",children:(0,f.jsx)(l.qF,{children:c})}),x]})}),(0,f.jsxs)(h.xu,{px:{lg:"3"},py:"3",children:[" ",w]}),(0,f.jsx)(q,{posts:s,pagination:t,selectedIndex:u,onItemClick:function(a,b){H(3),L.current&&(L.current.scrollTop=0);var c=J.query,f=(0,e.Z)((0,d.Z)({},c),{i:b});J.push({pathname:J.pathname,query:f},void 0,{shallow:!0})}}),m]}),(0,f.jsxs)(h.xu,{bg:(0,i.ff)("white","gray.900"),flex:"1",overflowY:"auto",ref:L,onScroll:function(a){return E(a.currentTarget.scrollTop>32)},display:{base:G<3?"none":"initial",md:"initial"},children:[(0,f.jsx)(l.x8,{shadow:D?"base":"none",children:(0,f.jsx)(h.Ug,{justify:"space-between",width:"full",children:(0,f.jsxs)(h.Ug,{spacing:"3",children:[s?(0,f.jsx)(l.A3,{"aria-label":"Navigate back",onClick:function(){return H(G-1)},icon:(0,f.jsx)(k.Ao2,{}),display:{base:s?"inline-flex":"none",md:"none"}}):"",(D||!s||y)&&(0,f.jsx)(l.qF,{children:p})]})})}),(0,f.jsx)(n,{mx:"auto",maxW:"800px",py:"8",px:{base:"4",md:"8"},children:v})]})]})}},30067:function(a,b,c){"use strict";c.r(b),c.d(b,{"__N_SSP":function(){return y},default:function(){return z}});var d=c(26042),e=c(85893),f=c(28485),g=c(11972),h=c(4705),i=c(51450),j=c(42437),k=c(65457),l=c(92760),m=c(13922),n=c(69059),o=c(93886),p=c(57784),q=c(30381),r=c.n(q),s=c(11163),t=c(67294),u=c(63750),v=c(25617),w=c(6685),x=c.n(w),y=!0;function z(){var a,b,c,q,w,y,z=(0,v.v9)(function(a){return a.dashboard}),A=(0,s.useRouter)(),B=z.reports.data.reports.filter(function(a){return a._address}),C=(0,t.useState)(parseInt(null!==(a=A.query.i)&& void 0!==a?a:0)> -1&&parseInt(null!==(b=A.query.i)&& void 0!==b?b:0)<B.length?parseInt(null!==(c=A.query.i)&& void 0!==c?c:0):0),D=C[0],E=C[1],F=B.map(function(a){return{title:(0,e.jsx)(n.E,{address:a._address}),excerpt:x()(a.content,180),id:a._id,publishedAt:r()(a.meta.created_at).format("MMM D, YYYY"),flairs:(0,e.jsxs)(g.Ug,{children:["published"==a.meta.status.toLowerCase()?(0,e.jsx)(g.Ct,{colorScheme:"green",children:"Published"}):"","submitted"==a.meta.status.toLowerCase()?(0,e.jsx)(g.Ct,{colorScheme:"orange",children:"Pending Review"}):"","deleted"==a.meta.status.toLowerCase()?(0,e.jsx)(g.Ct,{colorScheme:"red",children:"Deleted"}):"","spam"==a.meta.status.toLowerCase()?(0,e.jsx)(g.Ct,{colorScheme:"red",children:"Spam"}):""]})}}),G=(0,d.Z)({},z.reports.query);return(0,t.useEffect)(function(){var a,b,c;E(parseInt(null!==(a=A.query.i)&& void 0!==a?a:0)> -1&&parseInt(null!==(b=A.query.i)&& void 0!==b?b:0)<B.length?parseInt(null!==(c=A.query.i)&& void 0!==c?c:0):0)},[A.query]),(0,e.jsx)(l.A,{title:"Manage Reports",footer:0,extraBodyPadding:"0",children:(0,e.jsx)(p.A,{selectedIndex:D,section:(0,e.jsxs)(e.Fragment,{children:[0==z.reports.data.total&&z.reports.query.q?(0,e.jsxs)(g.Ug,{children:[(0,e.jsx)(f.WarningIcon,{})," ",(0,e.jsx)(g.xv,{children:"No Reports Found"})]}):"",z.reports.data.total>0?(0,e.jsxs)(g.Ug,{children:[(0,e.jsx)(g.xv,{children:"Manage Reports"})," ",(0,e.jsxs)(g.xv,{opacity:.6,children:[" ",((null!==(q=z.reports.query.page)&& void 0!==q?q:1)-1)*z.reports.query.limit+1," ","-"," ",z.reports.data.total<z.reports.query.limit?z.reports.data.total:((null!==(w=z.reports.query.page)&& void 0!==w?w:1)-1)*z.reports.query.limit+z.reports.query.limit," ","of ",z.reports.data.total]})]}):""]}),article:F.length>0?F[D].title:"",sidebar:F,sidebarHeaderButton:(0,e.jsx)(i.y,{button:(0,e.jsx)(o.du,{leftIcon:(0,e.jsx)(u.FOy,{}),children:"New Report"})}),sidebarActions:(0,e.jsxs)(k.p,{query:G,dynamic:1,children:[(0,e.jsx)(j.N,{query:G}),(0,e.jsx)(j.I,{query:G,options:{"submitted-1":"Submitted (Desc)",submitted:"Submitted (Asc)","updated-1":"Updated (Desc)",updated:"Updated (Asc)"}})]}),pagination:(0,e.jsx)(m.t,{dynamic:1,total:z.reports.data.total,active:null!==(y=z.reports.query.page)&& void 0!==y?y:1,query:G,nextPrev:0,page_length:15}),children:B.length>0?(0,e.jsx)(h.Y,{bg:"none",commentProps:{bg:"none"},linkAddress:1,keepQueryOnRefresh:1,shadow:"none",border:"0",data:B[D]},"report-"+B[D]._id):""})})}}},function(a){a.O(0,[9866,3662,6556,1141,6398,7557,9035,5927,2437,3334,9987,971,9956,8537,4705,9774,2888,179],function(){var b;return a(a.s=90930)}),_N_E=a.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.