PageSourceSearch

https://dhinaanjal.com/_next/static/chunks/pages/city/%5B%5B...city%5D%5D-7ff7cb2d57389286.js

js dhinaanjal.com collected 2026-10-02 01:28:50 UTC 6,521 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6274],{54655:function(n,t,e){(window.__NEXT_P=window.__NEXT_P||[]).push(["/city/[[...city]]",function(){return e(3713)}])},3713:function(n,t,e){"use strict";e.r(t),e.d(t,{__N_SSP:function(){return k}});var i=e(47568),r=e(828),o=e(29815),c=e(70655),s=e(85893),l=e(67294),u=e(9669),a=e.n(u),d=e(11163),f=e(43056),h=e(75121),p=e(16494),x=e(74963),v=e(1890),j=e(93789),m=e(29630),g=e(80562),y=e(85214),Z=e(81284),b=e(95309),_=e(29901),C=e(14548),w=e(95537),S=e(70983),N=e(66947),E=e(55451),P=(e(9008),"".concat("https://api.dhinaanjal.com","/post"));var k=!0;t.default=function(n){var t,e=n.ssrPosts,u=n.ssrCity,k=n.ssrPage,I=n.cities,T=void 0===I?[]:I;console.log("Post for City>>>>",e);var A=(0,d.useRouter)(),O=null===(t=A.query.city)||void 0===t?void 0:t[0],R=(0,l.useState)([]),W=R[0],B=R[1],X=(0,l.useState)(e||[]),q=X[0],H=X[1],M=(0,l.useState)(k),Y=M[0],D=M[1],F=(0,l.useState)(!1),G=F[0],J=F[1],K=(0,l.useState)(!1),L=K[0],Q=K[1],U=(0,l.useState)((e||[]).length>0),V=U[0],$=U[1],nn=(0,l.useState)(!1),tn=nn[0],en=nn[1],rn=(null===W||void 0===W?void 0:W.find((function(n){return n.slug===O})))||(null===T||void 0===T?void 0:T.find((function(n){return n.slug===O}))),on=(null===rn||void 0===rn?void 0:rn.name)||O||"\u0b85\u0ba9\u0bc8\u0ba4\u0bcd\u0ba4\u0bc1\u0bae\u0bcd",cn=(0,l.useRef)(!1),sn=(0,l.useRef)(null);return(0,l.useEffect)((function(){var n=function(){var n=(0,i.Z)((function(){var n;return(0,c.__generator)(this,(function(t){switch(t.label){case 0:return[4,N.Z.get("/city").then((function(n){return n.data.city}))];case 1:return n=t.sent(),B(n||[]),[2]}}))}));return function(){return n.apply(this,arguments)}}();n()}),[]),(0,l.useEffect)((function(){H(e||[]),D(k),$((e||[]).length>0),J(!1)}),[u,k,e]),(0,l.useEffect)((function(){if(((O||"")!==(u||"")||Y!==k)&&!cn.current){var n=new AbortController;return cn.current=!0,J(!0),a().get("".concat(P,"/city?city=").concat(O||"","&page=").concat(Y,"&limit=").concat(z),{signal:n.signal}).then((function(n){var t=n.data.post||[];H((function(n){return function(n,t){var e=new Set(n.map((function(n){return n._id})));return(0,o.Z)(n).concat((0,o.Z)(t.filter((function(n){return!e.has(n._id)}))))}(n,t)})),$(t.length>0)})).catch((function(n){"AbortError"!==(null===n||void 0===n?void 0:n.name)&&"CanceledError"!==(null===n||void 0===n?void 0:n.name)&&console.log(n)})).finally((function(){cn.current=!1,J(!1),Q(!1)})),function(){return n.abort()}}}),[O,Y,u,k]),(0,l.useEffect)((function(){if(V&&sn.current){var n=3*window.innerHeight||1200,t=new IntersectionObserver((function(n){(0,r.Z)(n,1)[0].isIntersecting&&!cn.current&&(D((function(n){return n+1})),Q(!0))}),{rootMargin:"0px 0px ".concat(n,"px 0px")});return t.observe(sn.current),function(){return t.disconnect()}}}),[V]),(0,s.jsxs)(x.Z,{children:[(0,s.jsx)(h.Z,{type:"website",title:O?"".concat(on," \u0b9a\u0bc6\u0baf\u0bcd\u0ba4\u0bbf\u0b95\u0bb3\u0bcd | \u0ba4\u0bbf\u0ba9 \u0b85\u0b9e\u0bcd\u0b9a\u0bb2\u0bcd"):"\u0bae\u0bbe\u0bb5\u0b9f\u0bcd\u0b9f \u0b9a\u0bc6\u0baf\u0bcd\u0ba4\u0bbf\u0b95\u0bb3\u0bcd | \u0ba4\u0bbf\u0ba9 \u0b85\u0b9e\u0bcd\u0b9a\u0bb2\u0bcd",desc:O?"".concat(on," \u0baa\u0b95\u0bc1\u0ba4\u0bbf\u0baf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}),(0,s.jsxs)(v.Z,{open:tn,fullScreen:!0,children:[(0,s.jsxs)(j.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid",borderColor:"divider",px:2,py:1.5},children:[(0,s.jsx)(m.Z,{variant:"subtitle1",fontWeight:"bold",children:"Select City"}),(0,s.jsx)(g.Z,{onClick:function(){return en(!1)},children:(0,s.jsx)(w.Z,{})})]}),(0,s.jsxs)(j.Z,{sx:{px:2,py:2,overflowY:"auto",flex:1},children:[(0,s.jsx)(m.Z,{onClick:function(){en(!1),A.push("/city")},variant:"subtitle1",fontWeight:"bold",sx:{borderBottom:"1px solid",borderColor:"divider",pb:1,mb:2},children:"All Cities"}),(0,s.jsx)(y.Z,{children:null===W||void 0===W?void 0:W.map((function(n,t){return(0,s.jsx)(Z.ZP,{disablePadding:!0,children:(0,s.jsxs)(b.Z,{onClick:function(){en(!1),A.push("/city/".concat(n.slug))},children:[(0,s.jsx)(_.Z,{sx:{minWidth:30},children:(0,s.jsx)(S.Z,{fontSize:"small",color:n.slug===O?"primary":"disabled"})}),(0,s.jsx)(C.Z,{primary:n.name,primaryTypographyProps:{fontSize:16}})]})},t)}))})]})]}),(0,s.jsxs)("div",{className:"feed-grid",children:[(0,s.jsxs)("div",{className:"city-selector",children:[(0,s.jsx)("h2",{children:"\u0bae\u0bbe\u0bb5\u0b9f\u0bcd\u0b9f \u0b9a\u0bc6\u0baf\u0bcd\u0ba4\u0bbf\u0b95\u0bb3\u0bcd"}),(0,s.jsxs)(j.Z,{className:"drop-down",onClick:function(){return en(!0)},display:"flex",alignItems:"center",justifyContent:"space-between",sx:{m:"
112px 0",p:"5px 10px",gridColumn:"1 / -1"},children:[(0,s.jsx)(m.Z,{variant:"h6",component:"div",children:(0,s.jsx)("span",{children:on})}),(0,s.jsx)(g.Z,{size:"small",children:(0,s.jsx)(E.gPZ,{color:"black",size:15})})]}),(0,s.jsx)("div",{className:"mobile-text",children:"\u0b9a\u0bc6\u0baf\u0bcd\u0ba4\u0bbf\u0b95\u0bb3\u0bcd"})]}),0===(null===q||void 0===q?void 0:q.length)&&!G&&(0,s.jsx)("div",{className:"nopost",style:{marginTop:200,gridColumn:"1 / -1"},children:"No Posts"}),null===q||void 0===q?void 0:q.map((function(n,t){return(0,s.jsx)("div",{className:"feed",children:(0,s.jsx)(f.Z,{post:n})},n._id+t)}))]}),(0,s.jsx)("div",{ref:sn,children:L&&(0,s.jsx)(p.Z,{})})]})};var z=38}},function(n){n.O(0,[8845,1608,9668,5808,4790,4268,9774,2888,179],(function(){return t=54655,n(n.s=t);var t}));var t=n.O();_N_E=t}]);

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.