PageSourceSearch

https://tabunghaji.gov.my/_nuxt/X1Vw5HUb.js

js tabunghaji.gov.my collected 2026-09-24 22:52:39 UTC 3,202 bytes, 1 lines download raw bytes

1import{_ as z}from"./C299k_0l.js";import{r as L,Y as c,l as i,i as k,F as p,a3 as y,M as _,az as O,au as D,O as h,j as v,ab as b,k as $,h as N}from"./BAiINMoj.js";import{_ as V}from"./DlAUqK2U.js";import"./DHp53ExX.js";const W={class:"table-container"},Y={key:0,class:"data-table"},q=["colspan","rowspan"],x={key:1,class:"text-content"},A={key:1,class:"cell-text"},G={key:1,class:"text-content"},J={key:2,class:"cell-image"},K=["src","alt"],Q=L({__name:"Table",props:{content:{},lastRowIsFooter:{type:Boolean}},setup(g){const f=g,w=e=>f.content.columns[e]?.width||150,M=(e,t,s)=>{const l={width:w(t)+"px"},o=`${e}-${t}`,n=u.value.get(o);return n?.isHidden||(n?.isMerged&&!n.isHidden&&(n.backgroundColor||n.textColor)?(n.backgroundColor&&(l.backgroundColor=n.backgroundColor),n.textColor&&(l.color=n.textColor)):(s.backgroundColor&&(l.backgroundColor=s.backgroundColor),s.textColor&&(l.color=s.textColor))),l},H=(e,t)=>{const s=`${e}-${t}`,l=u.value.get(s),o={};return l?.textColor&&(o.color=l.textColor),o},R=e=>e===0?"header-row":f.lastRowIsFooter&&f.content.rows.length-1===e?"footer-row":e%2===1?"even-row":"odd-row",u=N(()=>{const e=new Map;return f.content.rows.forEach((t,s)=>{t.cells.forEach((l,o)=>{const n=`${s}-${o}`;e.set(n,{isHidden:!1,colspan:1,rowspan:1,isMerged:!1})})}),Object.values(f.content.mergedCells).forEach(t=>{if(t.cells.length===0)return;const s=t.cells.reduce((a,d)=>d.row<a.row||d.row===a.row&&d.col<a.col?d:a),l=Math.min(...t.cells.map(a=>a.row)),o=Math.max(...t.cells.map(a=>a.row)),n=Math.min(...t.cells.map(a=>a.col)),r=Math.max(...t.cells.map(a=>a.col)),F=o-l+1,j=r-n+1;t.cells.forEach(a=>{const d=`${a.row}-${a.col}`,m=a.row===s.row&&a.col===s.col;e.set(d,{isHidden:!m,colspan:m?j:1,rowspan:m?F:1,isMerged:!0,content:m?t.content:void 0,backgroundColor:m?t.backgroundColor:void 0,textColor:m?t.textColor:void 0})})}),e}),B=(e,t)=>{const s=`${e}-${t}`;let o=u.value.get(s)?.isMerged?"merged-cell":"";return e===0&&(o+=" header-cell"),e>0&&t>0&&(o+=" center-align"),o.trim()},E=(e,t)=>{const s=`${e}-${t}`;return u.value.get(s)?.isHidden||!1},S=(e,t)=>{const s=`${e}-${t}`;return u.value.get(s)?.colspan||1},T=(e,t)=>{const s=`${e}-${t}`;return u.value.get(s)?.rowspan||1},C=(e,t)=>{const s=`${e}-${t}`;return u.value.get(s)?.content||null};return(e,t)=>{const s=z;return c(),i("div",W,[g.content?(c(),i("table",Y,[k("tbody",null,[(c(!0),i(p,null,y(g.content.rows,(l,o)=>(c(),i("tr",{key:l.id,class:_(R(o))},[(c(!0),i(p,null,y(l.cells,(n,r)=>O((c(),i("td",{key:n.id,style:h(M(o,r,n)),colspan:S(o,r),rowspan:T(o,r),class:_(["data-cell",B(o,r)])},[C(o,r)?(c(),i("div",{key:0,class:"cell-text",style:h(H(o,r))},[o>0?(c(),v(s,{key:0,content:C(o,r)},null,8,["content"])):(c(),i("div",x,b(C(o,r)),1))],4)):n.type==="text"?(c(),i("div",A,[o>0&&n.content?(c(),v(s,{key:0,class:"font-bold",content:n.content},null,8,["content"])):(c(),i("div",G,b(n.content),1))])):n.type==="image"&&n.image?(c(),i("div",J,[k("img",{src:n.image.url,alt:n.image.name,class:_(o===0?"header-image":"content-image")},null,10,K)])):$("",!0)],14,q)),[[D,!E(o,r)]])),128))],2))),128))])])):$("",!0)])}}}),I=Object.assign(V(Q,[["__scopeId","data-v-0d679b85"]]),{__name:"MainTable"});export{I 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.