PageSourceSearch

https://www.homespun.com/assets/2.4.1/MediaTabs.29627025.js

js homespun.com collected 2026-10-02 05:17:30 UTC 2,274 bytes, 1 lines download raw bytes

1import{v as f,x as o,y as c,j as l,D as m,I as u,O as d,J as h,F as p,U as x,Y as O,C as M,aL as v,M as b,a1 as _,a2 as g}from"./index.ccd35ebd.js";import{a as y,Q as S}from"./QTabs.d9b687db.js";const N={name:"MediaTabs",data(){return{tab:"",tabs:[]}},computed:{customMediaOptions(){return this.$store.state.eJSON.globalProps.customMediaOptions},pathPrefix(){const t=this.$route.path.match(/^\/[^/]+(\/[^/]+(\/)?)?/);return t?t[0]:"/"},pathSuffix(){return this.$route.path.replace(this.pathPrefix,"/")}},methods:{iconSrc(t){return t?t.includes("http://")||t.includes("https://")?t:this.$join(this.$store.state.deliveryDomain,t):!1}},created(){this.tabs=[]},beforeUnmount(){this.tabs=[]},mounted(){const t=this.$store.state.contentMetaData.xJSON.pages,s=["video","audio","pdf","zip","files"];this.tabs=t.sort((r,n)=>s.indexOf(r.meta.name)-s.indexOf(n.meta.name));let i=this.pathSuffix==="/"?null:this.pathSuffix;this.$store.state.contentMetaData.xJSON.pages.some(r=>r.meta.path===i)||(i=null),this.tab=i||this.tabs[0].meta.path}},k={class:"q-pa-xs"},C={class:"flex justify-center items-center self-start justify-center full-height"},V={key:0,class:"q-mr-sm"};function j(t,s,i,r,n,a){return o(),c("div",k,[l(y,{modelValue:n.tab,"onUpdate:modelValue":[s[0]||(s[0]=e=>n.tab=e),s[1]||(s[1]=e=>t.navigateIfNeeded(a.pathPrefix.replace(/\/$/,"")+"/"+e.replace(/^\//,"")))],"inline-label":""},{default:m(()=>[u("div",C,[l(d,{icon:"fa fa-chevron-left",size:"md",flat:"",onClick:t.exitContentPlay},null,8,["onClick"])]),l(h,{appear:"","enter-active-class":"animated flash","leave-active-class":"animated flash"},{default:m(()=>[u("div",{class:O(["full-width flex row justify-center",t.$q.screen.lt.sm?"":"q-pr-xl"])},[(o(!0),c(p,null,x(n.tabs,e=>(o(),M(S,{key:e.meta.name,name:e.meta.path},{default:m(()=>[a.customMediaOptions&&a.customMediaOptions[e.meta.name]&&a.customMediaOptions[e.meta.name].icon?(o(),c("div",V,[l(v,{fit:"contain",width:"24px",src:a.iconSrc(a.customMediaOptions[e.meta.name].icon)},null,8,["src"])])):b("",!0),_(" "+g(e.meta.label||a.customMediaOptions&&a.customMediaOptions[e.meta.name]&&a.customMediaOptions[e.meta.name].text||e.meta.name),1)]),_:2},1032,["name"]))),128))],2)]),_:1})]),_:1},8,["modelValue"])])}var P=f(N,[["render",j]]);export{P 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.