1import{_ as x}from"./BwEyG_db.js";import{_ as F}from"./DYTHKMR3.js";import{d as S,o as T,c as N,a0 as k,h as w,g as C,b as a,l as s,a1 as o}from"./DDPjZhl-.js";import{u as G}from"./CpoIuUBE.js";import"./DyfCSHI7.js";import"./s9ck8gda.js";import"./BlJ4ISr-.js";const c=e=>isNaN(parseFloat(e))?e:parseFloat(e),l=e=>typeof e=="number"&&e>0,d=e=>new Intl.NumberFormat("en-AU",{minimumFractionDigits:0,style:"currency",currency:"AUD"}).format(e),U=(e,r)=>{let t=c(e),n=c(r);return t=l(t)||l(n)&&t===0?d(t):t,n=l(n)?d(n):n,t===0&&n===0?"Free entry":t&&!n||t===n?t:t&&n?`${t} - ${n}`:null},A=(e=[])=>{if(!e||e.length===0)return"";const r=[...new Set(e)].map(t=>{const n=t.name?t.name:t;if(n)switch(n){case"Individual":return"individuals";case"Business":return"businesses";default:return n.toLowerCase()}}).join(", ");return`${r.charAt(0).toUpperCase()+r.slice(1)}`},B=S({__name:"TideGrantSearchResult",props:{result:{},displayMeta:{type:Boolean,default:!0}},setup(e){const r=e,{title:t,url:n,updated:m,summary:_}=G(r.result),f=s(()=>A(o(r.result,"field_audience_name",!0))),p=s(()=>{const u=o(r.result,"funding_level_from"),i=o(r.result,"funding_level_to");return u||i?U(u,i):null}),g=s(()=>o(r.result,"field_node_on_going")??!1),h=s(()=>o(r.result,"field_node_dates_start_value")),y=s(()=>o(r.result,"field_node_dates_end_value")),R=s(()=>o(r.result,"field_node_link")||n.value);return(u,i)=>{const b=x,v=F;return T(),N(v,{class:"tide-grant-search-result",title:a(t),url:a(R),content:a(_),updated:e.displayMeta?void 0:a(m),"data-component":"grant-search-result"},k({_:2},[e.displayMeta?{name:"details",fn:w(()=>[C(b,{variant:"inline",audience:a(f),funding:a(p),dateFrom:a(h),dateTo:a(y),ongoing:a(g)},null,8,["audience","funding","dateFrom","dateTo","ongoing"])]),key:"0"}:void 0]),1032,["title","url","content","updated"])}}}),I=Object.assign(B,{__name:"TideGrantSearchResult"});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.