PageSourceSearch

https://cdn1.housecreep.com/0c516d2/_next/static/chunks/pages/account/classifieds-9fb194b92839273f.js

js housecreep.com collected 2026-10-03 20:22:40 UTC 4,920 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8458],{67019:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/account/classifieds",function(){return c(18910)}])},18910:function(a,b,c){"use strict";c.r(b),c.d(b,{"__N_SSP":function(){return D},default:function(){return E}});var d=c(47568),e=c(34051),f=c.n(e),g=c(85893),h=c(28485),i=c(49519),j=c(11972),k=c(42437),l=c(65457),m=c(92760),n=c(13922),o=c(57784),p=c(30381),q=c.n(p),r=c(11163),s=c(67294),t=c(25617),u=c(6685),v=c.n(u);c(96486);var w=c(19976),x=c(56530),y=c(62744),z=c(70015),A=c(65710),B=c(93886),C=c(63750),D=!0;function E(){var a,b,c,e,p,u,D,E,F,G,H=(0,t.v9)(function(a){return a.content}),I=(0,r.useRouter)(),J=(0,t.I0)(),K=(0,i.pm)(),L=H.my_classifieds.data.promotions,M=(0,s.useState)(parseInt(null!==(a=I.query.i)&& void 0!==a?a:0)> -1&&parseInt(null!==(b=I.query.i)&& void 0!==b?b:0)<L.length?parseInt(null!==(c=I.query.i)&& void 0!==c?c:0):0),N=M[0],O=M[1],P=(0,s.useState)(!1),Q=(P[0],P[1]);(0,d.Z)(f().mark(function a(){return f().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,J(A.global.actions.setBusy({busy:!0})),Q(!0),a.next=5,(0,y.vY)();case 5:Q(!1),(0,z.rm)({router:I,dispatch:J}),J(A.global.actions.setBusy({busy:!1})),a.next=16;break;case 10:a.prev=10,a.t0=a.catch(0),J(A.global.actions.setBusy({busy:!1})),K({description:"Oops, something went wrong. Please try again later.",status:"error",duration:9e3,isClosable:!0}),Q(!1);case 16:case"end":return a.stop()}},a,null,[[0,10]])}));var R=function(){I.push("/classifieds/create")},S=L.map(function(a){return{title:(0,g.jsx)(g.Fragment,{children:a.headline?(0,g.jsx)(j.xv,{children:a.headline}):(0,g.jsx)(j.xv,{children:"Submit form to publish your ad"})}),excerpt:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)(j.xv,{as:"span",display:"block",children:[" ",v()(a.content,180)," "]}),a.tier>0?(0,g.jsxs)(j.Ct,{colorScheme:0==a.tier?"black":"blue",my:2,children:["Boosted x",a.tier]}):""]}),id:a._id,publishedAt:q()(a.meta.created_at).format("MMM D, YYYY"),flairs:(0,g.jsxs)(j.Ug,{children:["published"==a.meta.status.toLowerCase()?(0,g.jsxs)(j.Ug,{children:[" ",(0,g.jsx)(w.T,{color:"green.500",w:16,h:16}),(0,g.jsx)(j.Ct,{colorScheme:"green",children:"Live"})]}):"","submitted"==a.meta.status.toLowerCase()?(0,g.jsx)(j.Ct,{colorScheme:"orange",children:"Pending Review"}):"","draft"==a.meta.status.toLowerCase()?(0,g.jsx)(j.Ct,{colorScheme:"blue",children:"Draft"}):"","setup incomplete"==a.meta.status.toLowerCase()?(0,g.jsx)(j.Ct,{colorScheme:"orange",children:"Setup Incomplete"}):"","deleted"==a.meta.status.toLowerCase()?(0,g.jsx)(j.Ct,{colorScheme:"red",children:"Deleted"}):"","error"==a.meta.status.toLowerCase()?(0,g.jsx)(j.Ct,{colorScheme:"yellow",children:"Pending Correction"}):""]})}}),T={page:null!==(e=H.my_classifieds.query.page)&& void 0!==e?e:1,q:null!==(p=H.my_classifieds.query.q)&& void 0!==p?p:"",sort:null!==(u=H.my_classifieds.query.sort)&& void 0!==u?u:""};return(0,s.useEffect)(function(){var a,b,c;O(parseInt(null!==(a=I.query.i)&& void 0!==a?a:0)> -1&&parseInt(null!==(b=I.query.i)&& void 0!==b?b:0)<L.length?parseInt(null!==(c=I.query.i)&& void 0!==c?c:0):0)},[I.query]),(0,g.jsx)(m.A,{title:"My Classified Ads",footer:0,extraBodyPadding:"0",children:(0,g.jsx)(o.A,{selectedIndex:N,permanentHeading:1,section:(0,g.jsxs)(g.Fragment,{children:[0==H.my_classifieds.data.total?(0,g.jsxs)(j.Ug,{children:[(0,g.jsx)(h.WarningIcon,{})," ",(0,g.jsx)(j.xv,{children:"No Ads Found"})]}):"",H.my_classifieds.data.total>0?(0,g.jsxs)(j.Ug,{children:[(0,g.jsx)(j.xv,{children:"My Classifieds"})," ",(0,g.jsxs)(j.xv,{opacity:.6,children:[" ",((null!==(D=H.my_classifieds.query.page)&& void 0!==D?D:1)-1)*H.my_classifieds.query.limit+1," ","-"," ",H.my_classifieds.data.total<H.my_classifieds.query.limit?H.my_classifieds.data.total:((null!==(E=H.my_classifieds.query.page)&& void 0!==E?E:1)-1)*H.my_classifieds.query.limit+H.my_classifieds.query.limit," ","of ",H.my_classifieds.data.total]})]}):""]}),article:S.length>0?S[N].title:"",sidebar:S,sidebarHeaderButton:(0,g.jsx)(B.du,{onClick:R,leftIcon:(0,g.jsx)(C.FOy,{}),children:"Create New Ad"}),sidebarActions:(0,g.jsx)(l.p,{query:T,dynamic:1,children:(0,g.jsx)(k.I,{query:T,options:{"submitted-1":"Most Recent",submitted:"Oldest"}})}),pagination:(0,g.jsx)(n.t,{dynamic:1,total:H.my_classifieds.data.total,active:null!==(F=H.my_classifieds.query.page)&& void 0!==F?F:1,query:T,nextPrev:0,page_length:15}),sidebarFooter:(0,g.jsx)(j.gC,{w:"full",px:"2",children:(0,g.jsx)(j.M5,{textAlign:"center",children:(0,g.jsx)(j.xv,{fontSize:"sm",color:"fg.muted",children:"If you encounter any technical difficulties, please contact [email protected]."})})}),children:L.length>0?(0,g.jsx)(x.E,{data:L[N]},"report-"+L[N]._id):""})})}}},function(a){a.O(0,[9866,3662,6556,1141,6398,7557,5364,2639,2437,3334,9987,2468,4317,5151,9774,2888,179],function(){var b;return a(a.s=67019)}),_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.