PageSourceSearch

https://hub.wam.org.au/assets/Resource.b1c12290.js

js wam.org.au collected 2026-10-02 08:13:37 UTC 2,583 bytes, 1 lines download raw bytes

1import{_ as $,ab as B,S as R,D as S,E as h,a7 as I,r as L,c as t,a as f,I as e,L as d,R as N,U as i,O as c,P as g,ad as D,N as T,X as V,Y as C,m as M,o as a}from"./vendor.ca933e86.js";import{B as U}from"./Banner.bfe938a3.js";const x=l=>(V("data-v-97e8955c"),l=l(),C(),l),E={class:"relative w-11/12 max-w-7xl mx-auto px-4 pt-8 pb-8"},H={class:"grid grid-cols-12 md:gap-10"},j={class:"col-span-12 md:col-span-9 rounded bg-gray-100 shadow min-h-500 px-4 md:px-8 py-3 md:py-8 flex flex-col flex-grow mb-6 md:mb-0 mt-0 -mt-110 md:-mt-64"},F={class:"col-span-12 pb-4"},O={class:"text-3xl py-2"},P={key:0,class:"py-2"},X=["src"],Y={key:1,class:"w-full"},q={class:"w-full",controls:"",style:{"max-height":"calc(100vh - 200px)"}},z=["src"],A={key:2,class:"flex-grow"},G=["innerHTML"],J={key:3,class:"mt-4"},K=x(()=>e("h2",{class:"font-bold"}," Download: ",-1)),Q=["href"],W={class:"col-span-12 md:col-span-3"},Z={class:"bg-white shadow overflow-hidden"},ee={class:"border-t bg-default-1000 hover:bg-default-500 border-gray-200 px-4 p-0 cursor-pointer"},se=x(()=>e("dl",{class:"sm:divide-y sm:divide-gray-400"},[e("div",{class:"py-4"},[e("dt",{class:"font-semibold text-white text-center text-base uppercase"}," Back to Resources ")])],-1)),te={setup(l){const{S3URL:n}=B(),u=R(),y=S(),r=h(!1),s=h({}),b=async o=>{r.value=!0,M.get(`https://api.wamusic.app/v1/public/resources/${o}`).then(_=>{r.value=!1,s.value=_.data}).catch(()=>{r.value=!1})};return I(async()=>{var o;(o=u.params)!=null&&o.id?await b(u.params.id):y.error("Unable to load resource")}),(o,_)=>{var p,m;const w=L("router-link");return a(),t(g,null,[f(U,{img:"../../resources-banner.jpg"},null,8,["img"]),e("div",E,[e("div",H,[e("div",j,[e("div",F,[e("h1",O,d(s.value.heading),1),N(" "+d((p=s.value.type)==null?void 0:p.name),1)]),s.value.image&&!s.value.video?(a(),t("div",P,[e("img",{src:`${i(n)}/${s.value.image.path}`,alt:"image"},null,8,X)])):c("",!0),s.value.video?(a(),t("div",Y,[e("video",q,[e("source",{src:`${i(n)}/${s.value.video.path}`,type:"video/mp4"},null,8,z)])])):c("",!0),s.value.content?(a(),t("div",A,[e("p",{class:"pt-4",innerHTML:s.value.content},null,8,G)])):c("",!0),(m=s.value.files)!=null&&m.length?(a(),t("div",J,[K,e("ul",null,[(a(!0),t(g,null,D(s.value.files,(v,k)=>(a(),t("li",{key:k},[e("a",{href:`${i(n)}/${v.path}`,target:"_blank",class:"text-default-500 hover:text-default-800"},d(v.filename),9,Q)]))),128))])])):c("",!0)]),e("div",W,[e("div",Z,[e("div",ee,[f(w,{to:"/resources"},{default:T(()=>[se]),_:1})])])])])])],64)}}};var le=$(te,[["__scopeId","data-v-97e8955c"]]);export{le 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.