PageSourceSearch

https://ndrrma.gov.np/assets/FireEngine.ca42809d.js

js ndrrma.gov.np collected 2026-10-02 10:09:36 UTC 4,728 bytes, 2 lines download raw bytes

1import{T as w}from"./TableHaderData.a316efb1.js";import{H as C}from"./index.esm.018ece09.js";import{u as F,a as _,V as j,ae as P,ag as H,e as T,r as $,ah as S,ai as B,aj as L,j as i,P as R,c as o}from"./index.af7661b9.js";const J=()=>{const g=F(),{fireengineContent:u}=_(j),p=P(r=>r.pageDataReducer.language),{districts:m,municipalities:y,provinces:a}=_(H),N=r=>{if(m){const l=m.find(c=>c.id===r);if(l)return p==="en"?l.title:l.title_ne}return""},D=r=>{const l=(a==null?void 0:a.length)>0&&(a==null?void 0:a.find(c=>c.id===r));return l?p==="en"?l==null?void 0:l.title:l==null?void 0:l.title_ne:""},b=r=>{if(y){const l=y.find(c=>c.id===r);if(l)return p==="en"?l.title:l.title_ne}return""},{t:v}=T(),d=[];for(const r of u)d.includes(r==null?void 0:r.province)||d.push(r==null?void 0:r.province);$.exports.useEffect(()=>{u.length<=0&&g(S({})),g(B({})),g(L({}))},[]);const k=(r,l=",",c=`
2`,x="")=>{if(!r||r.length<=0)return;let e="";return r.forEach(n=>{for(let s=0;s<n.length;s++)e+=n[s],s===n.length-1?e+=c:e+=l;e+=c}),e},E=r=>{const l=[],c=[];c.push("Districts"),w[0].subHeader.forEach(e=>{c.push(e.headerData)}),l.push(c),u.forEach(e=>{if(r===e.province.id){const n=[];n.push(e.district.title),n.push(e.id),n.push(e.municipality.title),n.push(e.municipality.title),n.push(e.vehicle),n.push(e.driver),n.push(e.contact),n.push(e.alt_contact),n.push(e.condition.replaceAll(",",",")),l.push(n)}});const x=l.length>0&&k(l);if(x){let e=new Blob([x],{type:"text/csv;charset=utf-8"}),n=URL.createObjectURL(e),s=document.createElement("a");s.href=n,s.download="test.csv",document.body.appendChild(s),s.click()}};return i(R,{children:i("div",{className:"container flex flex-col gap-y-9",children:d.map((r,l)=>{var x;const c=[];for(const e of u)(e==null?void 0:e.province)===r&&!c.includes(e==null?void 0:e.district)&&c.push(e==null?void 0:e.district);return o("div",{children:[o("div",{className:"flex items-center justify-between mb-2 pt-10 pb-4",children:[i("h1",{className:"text-greenOne font-bold text-xl",children:`${r?D(r):p==="en"?"Province N/A":"\u092A\u094D\u0930\u0926\u0947\u0936 \u0928\u092D\u090F\u0915\u093E"}- ${c.length} ${p==="en"?"District":"\u091C\u093F\u0932\u094D\u0932\u093E"}`}),o("div",{className:"flex items-center  text-greenTwo font-bold text-base cursor-pointer ",onClick:()=>E(r),children:[i("p",{className:"font-base font-semibold hidden md:flex",children:v("Download")}),i(C,{className:"w-5 h-5"})]})]}),i("div",{className:"flex flex-col overflow-x-auto",children:o("table",{className:"w-auto bg-[#F4F4F4] overflow-x-scroll",children:[(x=w)==null?void 0:x.map((e,n)=>{var s;return e.headerData==="Districts"?o("tr",{className:"bg-[#BECA74]",children:[i("th",{className:"text-white text-left px-[9px] py-[6px] w-[300px]",children:p==="en"?e.headerData:e.headerData_nepali}),i("tr",{className:"grid grid-cols-[1fr_1fr_1fr_1fr_1fr_1fr_1.3fr_1fr]",children:(s=w)==null?void 0:s.map(t=>{var f;return(f=t==null?void 0:t.subHeader)==null?void 0:f.map((h,A)=>i("th",{className:"text-white text-left px-[9px] py-[6px]  w-[200px] lg:w-auto",children:p==="en"?h==null?void 0:h.headerData:h==null?void 0:h.headerData_nepali},A))})})]},n):null}),c.map((e,n)=>{const s=u.filter(t=>(t==null?void 0:t.district)===e);return o("tr",{style:{borderBottom:"3px solid white"},children:[i("td",{className:"text-black px-[9px] py-[6px] text-left align-top w-[300px]",children:e?N(e):"---"}),s.map((t,f)=>o("tr",{className:"grid grid-cols-[1fr_1fr_1fr_1fr_1fr_1fr_1.3fr_1fr]",children:[i("td",{className:"text-black px-[9px] py-[6px] text-left align-top w-[200px] lg:w-auto",children:f+1}),i("td",{className:"text-black px-[9px] py-[6px] text-left align-top w-[200px] lg:w-auto",children:t!=null&&t.municipality?b(t==null?void 0:t.municipality):"---"}),i("td",{className:"text-black px-[9px] py-[6px] text-left align-top w-[200px] lg:w-auto",children:t!=null&&t.ownership?p==="en"?t.ownership:t.ownership_ne:"---"}),i("td",{className:"text-black px-[9px] py-[6px] text-left align-top w-[200px] lg:w-auto whitespace-nowrap",children:t!=null&&t.vehicle?p==="en"?t.vehicle:t.vehicle_ne:"---"}),i("td",{className:"text-black px-[9px] py-[6px] text-left align-top w-[200px] lg:w-auto",children:t!=null&&t.driver?p==="en"?t.driver:t.driver_ne:"---"}),i("td",{className:"text-black px-[9px] py-[6px] text-left align-top w-[200px] lg:w-auto",children:t.contact?t.contact:"---"}),i("td",{className:"text-black px-[9px] py-[6px] text-left align-top w-[200px] lg:w-auto",children:t.alt_contact?t.alt_contact:"---"}),i("td",{className:"text-black px-[9px] py-[6px] text-left align-top w-[200px] lg:w-auto",children:t!=null&&t.condition?p==="en"?t.condition:t.condition_ne:"---"})]},`${l}-${f}`))]},n)})]})},l)]},l)})})})};export{J 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.