PageSourceSearch

https://phuongthoian.gov.vn/_nuxt/DBXnF1QA.js

js phuongthoian.gov.vn collected 2026-10-02 22:59:21 UTC 6,975 bytes, 1 lines download raw bytes

1import{_ as nt}from"./D3dYU9mG.js";import{_ as P}from"./8exnoi5x.js";import ot from"./AVPcf8WD.js";import at from"./C2Oby8Nc.js";import{d as st,$ as lt,B as rt,r as u,k as g,a2 as it,o as ut,I as ct,L as dt,K as gt,M as m,z as c,N as o,O as p,R as $,S as I,D as i,U as S,V as mt,a1 as E,x as U,P as L,Q as z,T,ag as pt}from"./B00EGIqs.js";import{_ as ft}from"./ou5d3iGw.js";import{M as ht}from"./DC2yBve4.js";import{u as vt}from"./B57sNQph.js";import{u as xt}from"./CMIfITui.js";import{u as _t}from"./B0-ALmGj.js";import{u as wt}from"./BvMzzcOV.js";import{u as bt}from"./14bktukK.js";import"./zx20rs4A.js";import"./_o7FD_rs.js";import"./cpk3Tx9J.js";import"./DVppwHMb.js";const yt={class:"lg:container mx-auto lg:mt-0"},kt={class:"w-full"},Ct={class:"flex flex-row justify-start py-4 lg:justify-between lg:py-16 px-2 relative"},It={class:"font-utm-impact uppercase text-white flex flex-col gap-3"},St={class:"text-sm md:text-lg"},Lt={class:"text-3xl md:text-4xl lg:text-6xl"},Mt={key:0,class:"absolute top-2 right-2"},Bt={id:"main-nav",class:"font-semibold uppercase flex w-full flex-nowrap items-center justify-between text-primary-500 shadow-lg hover:text-primary-500 focus:text-primary-500 lg:flex-wrap lg:justify-start bg-primary transition-all duration-300"},Vt={class:"xl:container px-2 mx-auto flex w-full flex-wrap items-center justify-between"},jt={class:"bg-transparent lg:bg-primary-700 flex justify-start items-center py-3 w-full sm:w-auto"},Dt={class:"list-style-none flex flex-col lg:flex-row lg:justify-around w-full"},Nt={key:0,class:"text-white hover:text-primary-300 cursor-pointer font-semibold text-lg lg:w-[160px] lg:shrink-0 lg:flex lg:items-center lg:justify-end"},Ht=st({__name:"v03",props:{variant:{type:String,default:"v03"}},setup(Pt){const A=lt(),r=vt(),{fetchHighlights:F}=xt(),{canManageHighlight:O}=_t(),{buildCategoryUrl:R,loadCategories:W}=wt();rt();const{portalInfo:_,fetchPortalInfo:q}=bt(),h=u(!1),M=u([]),B=u([]),w=u(null),V=g(()=>r.mainMenus),G=g(()=>r.staticLinks),K=g(()=>G.value.filter(t=>!V.value.some(s=>{const l=r.menuItems.find(d=>d.name===s);return l&&l.type==="link"&&((l.link||"#")===t.path||l.name.toLowerCase()===t.text.toLowerCase())}))),Q=t=>{let e=[];const s=r.menuItems.find(n=>n.name===t),l=s==null?void 0:s.featureId,d=r.getMenuChildren(t);if(d&&d.length>0&&(e=[...d]),l&&b.value[l]&&b.value[l].length>0){const n=b.value[l].map(a=>({id:a.id,name:a.title||a.name,path:Y(a,l),isCategory:!0}));e=[...e,...n]}if(e.length===0)return[{id:-1,name:"Chưa có bài viết",isStatic:!0}];const C=e.filter(n=>n.children&&n.children.length>0),x=e.filter(n=>!n.children||n.children.length===0);return[...C,...x]},Y=(t,e)=>{switch(e){case"intro":return`/gioi-thieu?filter[category][equals]=${t.id}`;case"blog":return R(t.id);case"document":return t.path||"#";default:return`/other?filter[category][equals]=${t.id}`}},j=it(),D=async()=>{try{const t=j.blog.value;if(!t||!Array.isArray(t))throw new Error("Invalid data format");M.value=t.map(e=>({id:e.id??0,name:e.name??"Unknown"}))}catch(t){console.error("Failed to fetch blog categories:",t)}},N=async()=>{try{const t=j.introduce.value;if(!t||!Array.isArray(t))throw new Error("Invalid data format");B.value=t.map(e=>({id:e.id??0,name:e.name??"Unknown",title:""}))}catch(t){console.error("Failed to fetch introduce categories:",t)}},J=t=>{w.value=w.value===t?null:t};ut(async()=>{await q(),await W(),await D(),await N(),await F(),await r.fetchMenuItems();const t=document.getElementById("main-nav");if(!t)return;const e=t.offsetTop,s=()=>{window.scrollY>=e?t.classList.add("fixed","top-0","left-0","right-0","z-50"):t.classList.remove("fixed","top-0","left-0","right-0")};window.addEventListener("scroll",s),ct(()=>{window.removeEventListener("scroll",s)})}),u({name:"Thành Phố Bến Cát",banner:"https://bencat.binhduong.gov.vn/governmentDefault/images/logo.png"});const X=u([{id:1,name:"Văn bản pháp luật",path:"/van-ban-phap-luat"},{id:2,name:"Lấy ý kiến người dân về dự thảo VBPL",path:"/du-thao-vbpl"}]),b=g(()=>{const t={};return r.menuItems.forEach(e=>{if(e.featureId)switch(e.featureId){case"intro":t[e.featureId]=B.value;break;case"blog":t[e.featureId]=M.value;break;case"document":t[e.featureId]=X.value;break;default:t[e.featureId]=[]}}),t}),{highlights:v}=dt(gt()),y=u(!1),H=u(null);function Z(t){H.value=t||null,y.value=!0}const k=g(()=>{var t,e,s;return(t=v.value)!=null&&t.length&&((s=(e=v.value[0])==null?void 0:e.banners)!=null&&s.length)?v.value[0].banners[0].image_url:null}),tt=g(()=>k.value?{backgroundImage:`url(${k.value})`,backgroundSize:"cover",backgroundPosition:"center"}:{});return D(),N(),(t,e)=>{const s=nt,l=P,d=ot,C=at,x=P;return c(),m(L,null,[o("header",{class:E({"bg-primary-100":!k.value}),style:mt(tt.value)},[o("div",yt,[o("div",kt,[o("div",Ct,[p(l,{to:"/",class:"flex items-center gap-4"},{default:I(()=>{var n,a,f;return[p(s,{src:(n=i(_))==null?void 0:n.logo,alt:"logo",class:"w-16 md:w-20 h-16 md:h-20"},null,8,["src"]),o("h1",It,[o("span",St,S((a=i(_))==null?void 0:a.portal_type),1),o("span",Lt,S((f=i(_))==null?void 0:f.name),1)])]}),_:1}),i(O)()?(c(),m("div",Mt,[p(d,{id:"highlight-image-btn",onClick:e[0]||(e[0]=n=>{var a;return Z((a=i(v))==null?void 0:a[0])})})])):$("",!0)])])]),p(C,{modelValue:y.value,"onUpdate:modelValue":e[1]||(e[1]=n=>y.value=n),highlight:H.value,class:"z-[10000]"},null,8,["modelValue","highlight"])],6),o("nav",Bt,[o("div",Vt,[o("div",jt,[e[4]||(e[4]=o("a",{href:"/",class:"px-7 hidden lg:block text-white"},[o("i",{class:"pi pi-home"})],-1)),o("button",{class:"block border-0 bg-transparent px-2 text-white lg:hidden",onClick:e[2]||(e[2]=n=>h.value=!h.value)},e[3]||(e[3]=[o("span",{class:"[&>svg]:w-7"},[o("i",{class:"pi pi-bars"})],-1)]))]),o("div",{class:E(["mt-2 grow flex-wrap basis-[100%] items-center lg:mt-0 lg:basis-auto text-sm lg:justify-between lg:!flex",{hidden:!h.value,flex:h.value}])},[o("div",Dt,[(c(!0),m(L,null,z(V.value,(n,a)=>{var f;return c(),m("div",{key:a,class:"relative mb-4 pl-2 lg:mb-0 lg:pl-0 lg:pr-1 text-lg menu-dropdown-container"},[p(ht,{title:n,items:Q(n),"active-dropdown":w.value,path:((f=i(r).menuItems.find(et=>et.name===n))==null?void 0:f.link)||"#",onToggle:J},null,8,["title","items","active-dropdown","path"])])}),128)),(c(!0),m(L,null,z(K.value,(n,a)=>(c(),U(x,{key:a,to:n.path||"#",target:n.path&&n.path.startsWith("http")?"_blank":void 0,class:"text-lg mb-4 pl-2 lg:mb-0 lg:pl-0 lg:pr-1 p-0 font-semibold text-white hover:opacity-70"},{default:I(()=>[T(S(n.text),1)]),_:2},1032,["to","target"]))),128)),i(r).showLoginButton&&i(A).userData?(c(),m("div",Nt,[p(ft)])):i(r).showLoginButton?(c(),U(x,{key:1,to:"/auth/login",class:"mb-4 pl-2 lg:mb-0 lg:pl-0 lg:pr-1 p-0 font-semibold text-white hover:opacity-70 text-lg lg:w-[160px] lg:shrink-0 lg:flex lg:items-center lg:justify-end"},{default:I(()=>e[5]||(e[5]=[T(" ĐĂNG NHẬP ")])),_:1,__:[5]})):$("",!0)])],2)])])],64)}}}),Xt=pt(Ht,[["__scopeId","data-v-c8085bf1"]]);export{Xt 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.