PageSourceSearch

https://www.governor.vic.gov.au/_nuxt/DNK4xOgA.js

js governor.vic.gov.au collected 2026-09-24 23:18:40 UTC 2,261 bytes, 1 lines download raw bytes

1import{_ as h}from"./MZ_NuuXA.js";import{d as m,I as C,o as u,c,h as g,b as l,a4 as b,j as T,C as x,a6 as y,l as f,a1 as S}from"./K8mPX5Ll.js";import{u as w}from"./B9snTVYO.js";const k=m({__name:"TideSearchResultsTable",props:{results:{default:()=>[]},hasSidebar:{type:Boolean,default:!1},perPage:{default:10},loading:{type:Boolean,default:!1},skeleton:{default:"TideSearchResultTableSkeleton"},offset:{default:1},columns:{},headingType:{default:()=>({horizontal:!0,vertical:!1})},extraContent:{default:void 0},showExtraContent:{type:Boolean,default:!1},caption:{default:""},footer:{default:""}},setup(o){const t=o,r=y(!1),d=e=>{if(!t.extraContent)return null;if(t.extraContent?.showContentFn){const a=w(t.extraContent.showContentFn,"resultsTableShowExtraContentFn");if(!(typeof a=="function"?a(e):!0))return null}let n={...t.extraContent};return t.extraContent?.items&&(n.items=t.extraContent.items.map(a=>({...a,component:"TideSearchListingTableLabelValue",props:{component:a?.component,props:a?.props}})).filter(a=>{const s=S(e,a.objectKey,!0);return Array.isArray(s)?s.length:s}),n.items.length||delete n.items),Object.keys(n).length?n:null},i=f(()=>t.loading?Array(t.perPage).fill({}):(t.results||[]).map(e=>({id:e.id,__extraContent:d(e.props?.result),...e.props?.result}))),p=f(()=>t.columns.map(e=>{const n=typeof e.cols=="number"?[`tide-search-listing-table-cols__${e.cols}`]:[];return t.loading?{...e,component:e?.skeleton||"TideSearchResultsTableSkeleton",classes:n}:e.component?{...e,classes:n}:{...e,classes:n,component:"TideSearchListingTableValue"}}));return C(()=>r.value=!0),(e,n)=>{const a=h;return u(),c(x(o.loading?"div":"section"),null,{default:g(()=>[l(i)?.length?(u(),c(a,{key:0,"data-component-type":"search-listing-layout-table",class:b(["tide-search-listing-results-table",{"tide-search-listing-results-table":!0,"tide-search-listing-results-table--mounting":!l(r)}]),columns:l(p),items:l(i),offset:o.offset,caption:o.caption,footer:o.footer,headingType:o.headingType,showExtraContent:o.showExtraContent,hasSidebar:o.hasSidebar},null,8,["class","columns","items","offset","caption","footer","headingType","showExtraContent","hasSidebar"])):T("",!0)]),_:1})}}}),_=Object.assign(k,{__name:"TideSearchResultsTable"});export{_ 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.