PageSourceSearch

https://dainikamadershomoy.com/_nuxt/LocationNews.ad40763.js

js dainikamadershomoy.com collected 2026-10-02 04:01:02 UTC 3,279 bytes, 1 lines download raw bytes

1import{_ as T}from"./search.ad40763.js";import{Y as M,k as V,j as l,e as U,x as q,o as m,c as d,a as s,n as y,Z as b,f as v,_ as w,F as x,r as k,t as D,i as C,d as z,b as E,q as F}from"./entry.ad40763.js";import{u as I}from"./fetch.ad40763.js";import{_ as R}from"./_plugin-vue_export-helper.ad40763.js";const j=M("locations",()=>{const p=l([]),r=l([]),f=l(!1),_=async()=>{f.value=!0,await I("locations").then(o=>{o&&(p.value=o.data)}).catch(o=>{console.error("Error fetching category news:",o)}).finally(()=>{f.value=!1})},c=V(()=>p.value.map(o=>({id:o.id,name:o.name})));return{fetchLocations:_,getDivisions:c,getDistricts:o=>(r.value=p.value.find(n=>n.id==o).districts,r.value.map(n=>({id:n.id,name:n.name}))),getThanas:o=>r.value.find(n=>n.id==o).thanas.map(n=>({id:n.id,name:n.name}))}}),A={class:"section-content"},G={class:"color-000 text-uppercase mt-20 mb-10 ltspc-1"},O={class:"tc-about-header pl-0"},Y={class:"container p-0"},Z={class:"content"},H={class:"tc-widget-categories-style6 district-news"},J=["value"],K=["value"],P=["value"],Q={__name:"LocationNews",setup(p){const r=j(),{fetchLocations:f}=r,_=l(!0),c=l(0),i=l(0),u=l(0),o=l(),n=l(),g=V(()=>r.getDivisions),L=a=>{i.value=0,u.value=0,o.value=r.getDistricts(a.target.value)},S=a=>{u.value=0,n.value=r.getThanas(a.target.value)};U(async()=>{await f(),_.value=!1});const N=()=>{var a;u.value?a="thana="+u.value:i.value?a="district="+i.value:c.value&&(a="division="+c.value),window.location.href=F().public.base_url+"/country?"+a};return q(()=>{_.value=V(()=>{var a;return((a=g.value)==null?void 0:a.length)==0})}),(a,t)=>{const B=T;return m(),d("div",A,[s("div",G,[s("div",O,[s("div",Y,[s("div",Z,[s("div",H,[s("div",null,[t[10]||(t[10]=s("a",{class:"butn border border-1 mt-10 py-1 px-3 text-center"},[s("div",{class:"fsz-21px ml-20 mr-20"},"জেলার খবর")],-1)),y(s("select",{"onUpdate:modelValue":t[0]||(t[0]=e=>w(c)?c.value=e:null),onChange:t[1]||(t[1]=e=>L(e)),class:"form-select mt-2 district-news-select"},[t[5]||(t[5]=s("option",{value:"0"},"বিভাগ",-1)),g.value?(m(!0),d(x,{key:0},k(g.value,e=>(m(),d("option",{key:"divisions_"+(e==null?void 0:e.id),value:e==null?void 0:e.id},D(e==null?void 0:e.name),9,J))),128)):C("",!0)],544),[[b,v(c)]]),y(s("select",{"onUpdate:modelValue":t[2]||(t[2]=e=>w(i)?i.value=e:null),onChange:t[3]||(t[3]=e=>S(e)),class:"form-select mt-2 district-news-select"},[t[6]||(t[6]=s("option",{value:"0"},"জেলা",-1)),v(o)?(m(!0),d(x,{key:0},k(v(o),e=>(m(),d("option",{key:"districts_"+(e==null?void 0:e.id),value:e==null?void 0:e.id},D(e==null?void 0:e.name),9,K))),128)):C("",!0)],544),[[b,v(i)]]),y(s("select",{"onUpdate:modelValue":t[4]||(t[4]=e=>w(u)?u.value=e:null),class:"form-select mt-2 district-news-select"},[t[7]||(t[7]=s("option",{value:"0"},"উপজেলা",-1)),v(n)?(m(!0),d(x,{key:0},k(v(n),e=>(m(),d("option",{key:"thanas_"+(e==null?void 0:e.id),value:e==null?void 0:e.id},D(e==null?void 0:e.name),9,P))),128)):C("",!0)],512),[[b,v(u)]]),s("button",{class:"form-control mt-1",style:{cursor:"pointer"},onClick:N},[t[8]||(t[8]=s("span",{class:"",style:{"font-size":"18px"}}," খুঁজুন ",-1)),t[9]||(t[9]=z()),E(B,{class:"sOpen-btn ms-2 mt-1"})])])])])])])])])}}},ee=R(Q,[["__scopeId","data-v-a2bfb578"]]);export{ee as _};

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.