PageSourceSearch

https://phuongthoian.gov.vn/_nuxt/Cb-Pyvxm.js

js phuongthoian.gov.vn collected 2026-09-25 09:34:48 UTC 3,222 bytes, 1 lines download raw bytes

1import{_ as V}from"./Bo85fSlW.js";import{d as z,o as f,k as d,r as w,I as O,x as y,M as o,z as a,S as m,T as p,U as l,N as n,a3 as R,R as $,a1 as _,a4 as q,P as b,Q as k,O as P,ag as j}from"./BUdAmU-I.js";import{u as F}from"./DYd6g36G.js";const G={key:0,class:"ml-2"},H={class:"absolute z-[1000] float-right m-0 min-w-max list-none rounded-lg bg-white text-gray-800 shadow-lg overflow-y-auto scrollbar-thin scrollbar-thumb-rounded scrollbar-thumb-neutral-200 scrollbar-track-neutral-50"},K={key:0,class:"submenu-parent"},Q={class:"flex items-center justify-between cursor-pointer px-4 py-2"},A={class:"submenu bg-white shadow-lg rounded-lg"},J={key:1,class:"block whitespace-nowrap text-sm text-gray-500 px-4 py-2"},W=z({__name:"MenuCategoryDropdown",props:{title:{},items:{},activeDropdown:{},path:{}},emits:["toggle"],setup(x,{emit:C}){const{buildCategoryUrl:I,loadCategories:N}=F(),e=x,i=C;f(async()=>{await N()});const h=d(()=>e.activeDropdown===e.title),S=d(()=>e.path&&e.path!=="#"&&(e.items.length===0||e.items.length===1&&e.items[0].isStatic)),D=w(null),M=t=>{if(t.path)return t.path;switch(e.title){case"GIỚI THIỆU":return`/gioi-thieu?filter[category][equals]=${t.id}`;case"TIN TỨC":case"TIN TỨC - SỰ KIỆN":return I(t.id);default:return`/other?filter[category][equals]=${t.id}`}},T=t=>t.children&&t.children.length>0,r=w(null),L=()=>{i("toggle",e.title)},U=t=>{r.value&&!r.value.contains(t.relatedTarget)&&i("toggle",null)},v=t=>{r.value&&!r.value.contains(t.target)&&h.value&&(i("toggle",null),D.value=null)};f(()=>{document.addEventListener("click",v)}),O(()=>{document.removeEventListener("click",v)});const E=d(()=>e.items.length>0&&!e.items[0].isStatic),B=d(()=>e.items.length===0||e.items.length===1&&e.items[0].isStatic);return(t,u)=>{const g=V;return S.value?(a(),y(g,{key:0,to:e.path,class:"text-white transition duration-200 hover:opacity-80"},{default:m(()=>[p(l(t.title),1)]),_:1},8,["to"])):(a(),o("div",{key:1,class:"relative font-medium",ref_key:"dropdownRef",ref:r,onMouseenter:L,onMouseleave:U},[n("button",{class:"flex items-center text-white transition duration-200 hover:opacity-80",onClick:u[0]||(u[0]=s=>i("toggle",t.title))},[p(l(t.title)+" ",1),E.value?(a(),o("span",G,[n("i",{class:_(["pi pi-angle-down transition-transform duration-300",{"rotate-180":h.value}])},null,2)])):$("",!0)]),R(n("ul",H,[(a(!0),o(b,null,k(e.items,s=>(a(),o("li",{key:s.id,class:"px-2 py-1 hover:bg-neutral-100 relative"},[T(s)?(a(),o("div",K,[n("div",Q,[n("span",null,l(s.title||s.name),1),u[1]||(u[1]=n("i",{class:"pi pi-angle-right ml-2"},null,-1))]),n("ul",A,[(a(!0),o(b,null,k(s.children,c=>(a(),o("li",{key:c.id,class:"px-4 py-2 hover:bg-neutral-100"},[P(g,{to:c.path||"#",class:"block w-full whitespace-nowrap px-4 py-2 text-sm"},{default:m(()=>[p(l(c.title||c.name),1)]),_:2},1032,["to"])]))),128))])])):s.isStatic?(a(),o("span",J,l(s.title||s.name),1)):(a(),y(g,{key:2,to:M(s),class:_(["block w-full whitespace-nowrap px-4 py-2 text-sm hover:bg-neutral-100 text-primary",{"font-semibold":s.isCategory}])},{default:m(()=>[p(l(s.title||s.name),1)]),_:2},1032,["to","class"]))]))),128))],512),[[q,h.value&&!B.value]])],544))}}}),ee=j(W,[["__scopeId","data-v-0b10307a"]]);export{ee 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.