PageSourceSearch

https://ndrrma.gov.np/assets/PhotoGallery.dd2bc252.js

js ndrrma.gov.np collected 2026-10-02 10:09:37 UTC 1,926 bytes, 1 lines download raw bytes

1import{L as P,u as v,a as N,V as w,r as i,ak as b,ae as C,c as l,P as D,j as s,Z as S}from"./index.af7661b9.js";import{a as j}from"./index.esm.431f870e.js";import A from"./PhotoDetails.d1008b1d.js";import{P as k}from"./index.53dd0779.js";const B="https://ndrrma.gov.np/api/v1",E=()=>{var r;(r=P().state)==null||r.category;const u=v(),{photo:a}=N(w),{data:o}=a,[d,m]=i.exports.useState(null),p={offset:0,limit:6},[c,h]=i.exports.useState(p),f=e=>{h(n=>({...n,offset:e*6}))},x=e=>{f(e.selected)};i.exports.useEffect(()=>{u(b(c))},[c]);const g=Math.ceil((a==null?void 0:a.count)/6),t=C(e=>e.pageDataReducer.language);return l(D,{children:[d?s(A,{}):l("div",{className:"container flex flex-col gap-5 pb-2 mt-6",children:[s("h1",{className:"text-2xl font-bold",children:t==="en"?"Albums":"\u090F\u0932\u094D\u092C\u092E\u0939\u0930\u0942"}),s("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-12 p-13",children:o==null?void 0:o.map((e,n)=>l("div",{className:"flex flex-col rounded-lg shadow-xl w",children:[s("img",{src:`${B}/imageresizer/?src=${e.image}&width=500&height=500`,className:"rounded-t-lg h-[80%] object-cover aspect-square",alt:"image",loading:"lazy"}),s("div",{className:"flex flex-col flex-1 gap-4 p-4",children:s("h1",{className:"font-bold text-xl line-clamp-1",children:t==="en"?e==null?void 0:e.title:e==null?void 0:e.title_ne})}),s(S,{to:`/${t}/photoGallery/${e.id}`,children:l("div",{className:"flex items-center gap-2 relative bottom-0 p-4 hover:cursor-pointer",onClick:()=>m(e==null?void 0:e.gallery),children:[s("p",{className:"text-greenTwo",children:t==="en"?"View All Photos":"\u0938\u092C\u0948 \u092B\u094B\u091F\u094B\u0939\u0930\u0942 \u0939\u0947\u0930\u094D\u0928\u0941\u0939\u094B\u0938\u094D"}),s(j,{className:"text-greenTwo w-4 h-4"})]})})]},n))})]}),s("div",{className:"flex items justify-center my-5",children:s(k,{pageCount:g,handlePageClick:x})})]})};export{E as default};

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.