PageSourceSearch

https://mof.gov.vn/assets/CategoryLayoutLinkView-CLwnpKHw.js

js mof.gov.vn collected 2026-10-02 06:01:59 UTC 3,098 bytes, 1 lines download raw bytes

1import{k as d,p as x,aX as b,f as a,o as t,e as c,g as o,F as _,G as v,t as C,Q as k,i as A,m as w,b as $,y as B}from"./index-B1UYKE73.js";/* empty css                                                                           */import{T as V}from"./TreeCategories-B6Y-g46Q.js";import{_ as h}from"./Categories-DgpecGZk.js";import{_ as S}from"./Breadcrumb-C2KytFdD.js";import{_ as I}from"./BlockHeader-CmD3Qwho.js";import"./BlockHeader2-DwpaDm6O.js";const L={class:"flex flex-col"},M=["href","target"],D={class:"flex-1 flex flex-col gap-2"},F={class:"line-clamp-2 hover:text-primary hover:underline"},N={__name:"ArticleLinkView",props:{catIndex:{type:Number,default:-1},item:{type:Object,default:{}}},setup(u){const m=u;d(null);const r=d([]),e=s=>{const l=new DOMParser().parseFromString(s,"text/html").querySelectorAll("table td");r.value=Array.from(l).map(i=>{const f=i.querySelectorAll("ol > li > a");return Array.from(f).map((n,y)=>({index:y+1,href:n.getAttribute("href"),target:n.getAttribute("target")||null,text:n.textContent.trim()}))})};return x(async()=>{const s=await b(m.item.slug);e(s)}),(s,g)=>(t(),a("div",L,[c(I,{items:[{slug:"#",name:u.item.title}]},null,8,["items"]),o("div",{class:k(`list-none grid grid-cols-${r.value.length} gap-3 pl-4`)},[(t(!0),a(_,null,v(r.value,(p,l)=>(t(),a("ul",{key:l},[(t(!0),a(_,null,v(p,i=>(t(),a("li",{key:i.index,class:"relative pl-8 pb-3 mt-3 before:content-[''] before:absolute before:left-4 before:top-1.5 before:w-[6px] before:h-[6px] before:bg-[var(--btc-blue)] border-b"},[o("a",{href:i.href,class:"flex gap-2",target:i.target},[o("div",D,[o("span",F,C(i.text),1)])],8,M)]))),128))]))),128))],2)]))}},q={class:"grid lg:grid-cols-12 gap-3"},O={class:"col-span-12 lg:col-span-8 xl:col-span-9 flex flex-col gap-3 shadow-lg"},T={class:"flex flex-col"},j={class:"col-span-12 lg:col-span-4 xl:col-span-3 shadow-lg"},z={key:0},E={key:1},G={key:2},U={__name:"CategoryLayoutLinkView",props:{modelValue:{type:Array,default:""}},setup(u){const m=u,r=A(),e=d({contents:r.categoryBlockMap.get("contents"),customCategories:r.categoryBlockMap.get("customCategories"),additionsCategories:r.categoryBlockMap.get("additionsCategories")}),s=d([]),g=d([]);async function p(){if(s.value.length>0){const l=await B(s.value[0].id,0,10);l&&(g.value=l.data)}}return w(()=>m.modelValue,async()=>{s.value=m.modelValue,await p()},{deep:!0,immediate:!0}),(l,i)=>(t(),a("div",q,[o("div",O,[c(S),o("div",null,[o("div",T,[(t(!0),a(_,null,v(g.value,(f,n)=>(t(),$(N,{key:n,catIndex:n,item:f},null,8,["catIndex","item"]))),128))])])]),o("div",j,[e.value.customCategories&&e.value.customCategories.data&&Array.isArray(e.value.customCategories.data)&&e.value.customCategories.data.length>0?(t(),a("div",z,[c(V,{items:e.value.customCategories.data,level:0},null,8,["items"])])):e.value.additionsCategories&&e.value.additionsCategories.data&&Array.isArray(e.value.additionsCategories.data)&&e.value.additionsCategories.data.length>0?(t(),a("div",E,[c(h,{additionItems:e.value.additionsCategories.data},null,8,["additionItems"])])):(t(),a("div",G,[c(h)]))])]))}};export{U 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.