1import{L as $}from"./LoadingDummyH1-WBYPd09P.js";import{L as T}from"./LoadingDummyH2-DrIjme9F.js";import{L as U}from"./LoadingDummy-DMOrQAEG.js";import{bX as M,ax as B,n as N,q as P,p as A,aB as E,aC as O,g as C,s as w,a0 as H,v as F,B as j,o as q,i as h,ai as z,am as G,x as V,Z as X,ao as Z,an as J,b as a,j as d,w as p,h as e,c as i,t as r,F as g,e as K,D as b,V as Q,G as x,L as D,ae as W,N as Y}from"./app-BV_MRGiY.js";import{L as I}from"./LoadingDummyCustom-TdSBOfeM.js";import{L as k}from"./LoadingDummyP-BfvEowfj.js";import{O as ee}from"./Overlay--zPS9tw1.js";/* empty css */import{V as R}from"./VCol-B_mXRjjw.js";import{V as te}from"./VRow-DyK-XPgq.js";import"./_commonjsHelpers-DaWZu8wl.js";import"./VContainer-D4zTugS6.js";const f={props:["visible"],render(){let l=typeof this.visible<"u"?this.visible:!0;return M(U,{itemsPerRow:[[{height:"16px",width:"200px",margin:"12px 0",background:this.$vuetify.theme.current.dark?B.dark.grey:B.grey,visible:l}]]})}},ae=N("bibleintro",{state:()=>({introBible:{}}),actions:{async getIntroBible({abbr:l}){try{let n=!0,s=await P({url:`/api/bible/${l}/introduction`,options:{headers:A({useCache:n})},useCache:n,tags:[`bible.${l}`]});if(E(s))throw new Error("Fehler in Api-Response");this.introBible=s.data}catch(n){O(n,!0)}}}});function ne(){let l=ae(C());const{introBible:n}=w(l);let s=H();const{messagesLoaded:_,updateData:o,asyncStatus:t}=F({actions:[{item:n,action:l.getIntroBible,payload:function(){return{abbr:encodeURIComponent(s.params.abbreviation),id:s.params.id}}}],loadAsyncMessages:["bible","common"]});j(()=>s.params.abbreviation,async(m,y)=>{m!==y&&await o()}),q(()=>{n.value={}});const u=h(()=>t.value===z);return{messagesLoaded:_,introBible:n,asyncStatusLoaded:u}}const oe=()=>{const{messagesLoaded:l}=G(["bible"]),{t:n}=V(),{params:s}=H(),_=C(),{bibles:o}=w(X(_)),t=h(()=>{let m="";try{m=o.value[u.value].name}catch{try{m=o.value[decodeURIComponent(s.abbreviation)].name}catch{}}return m}),c=h(()=>l.value?`${n("async.bible.title")} â ${t.value} (${u.value})`:""),u=h(()=>decodeURIComponent(s.abbreviation).toUpperCase());return Z(J({title:t,description:c})),{title:t,abbr:u}},ie={key:0,class:"bible-introduction__top-heading"},se={key:2,class:"bible-introduction__heading"},re={key:4,class:"bible-introduction__sub-heading"},le=["href"],ce=["innerHTML"],de=["innerHTML"],ue={key:0},be={key:2},me={key:4},pe={key:6},Re={__name:"BibleIntroduction",setup(l){const{t:n}=V(),{title:s,abbr:_}=oe(),{messagesLoaded:o,introBible:t,asyncStatusLoaded:c}=ne(),u=h(()=>"["+t.value.language.international_name+"]");return(m,y)=>{const v=Y("router-link");return a(),d(e(ee),{"class-name":"bible-introduction"},{default:p(()=>[e(o)?(a(),i("h2",ie,r(e(n)("async.bible.title")),1)):(a(),d(e(T),{key:1})),e(o)?(a(),i("h1",se,r(e(s))+" ("+r(e(_))+") ",1)):(a(),d(e($),{key:3,margin:"0"}
1)),e(c)&&e(t).publisher&&e(o)?(a(),i("h3",re,[g(r(e(n)("async.bible.publisher"))+": ",1),K("a",{href:e(t).publisher.url,target:"_blank",rel:"noopener"},r(e(t).publisher.name),9,le)])):(a(),d(e(f),{key:5,visible:!e(c)},null,8,["visible"])),b(te,{"no-gutters":""},{default:p(()=>[b(R,{cols:"12",md:"9"},{default:p(()=>[e(c)&&e(o)?(a(),d(Q,{key:0,size:"large",class:"bible-introduction__read",color:"primary",title:e(n)("async.bible.read")+": "+e(t).read_link.title,to:`/${encodeURIComponent(e(t).abbreviation)}/${e(t).read_link.link}`},{default:p(()=>[g(r(e(n)("async.bible.read")),1)]),_:1},8,["title","to"])):(a(),d(e(I),{key:1,width:"110px",height:"44px",margin:"0 0 48px 0"})),e(c)?(a(),i("article",{key:2,class:"bible-introduction__text",innerHTML:e(t).introduction},null,8,ce)):x("",!0),e(c)?(a(),i("article",{key:3,class:"bible-introduction__copyright",innerHTML:e(t).copyright.replace(/(?:\r\n|\r|\n)/g,"<br>")},null,8,de)):(a(),i(D,{key:4},[b(e(k),{count:"3"}),b(e(I),{background:"transparent"}),b(e(k),{count:"6","key-prefix":"LoadingDummyPII"})],64))]),_:1}),b(R,{cols:"12",md:"3",class:"bible-introduction__related"},{default:p(()=>[e(o)?(a(),i("h3",ue,r(e(n)("async.bible.language"))+": ",1)):(a(),d(e(f),{key:1})),e(c)?(a(),i("p",be,r(e(t).language.name)+" "+r(u.value),1)):(a(),d(e(k),{key:3})),e(o)&&e(t).related_bibles&&e(t).related_bibles.length>0?(a(),i("h3",me,r(e(n)("async.bible.more_publisher"))+": ",1)):(a(),d(e(f),{key:5,visible:!e(o)},null,8,["visible"])),e(t).related_bibles&&e(t).related_bibles.length>0?(a(),i("ul",pe,[(a(!0),i(D,null,W(e(t).related_bibles,(L,S)=>(a(),i("li",{key:"bible_"+S},[b(v,{to:{path:"/bible/"+encodeURIComponent(L.abbreviation)}},{default:p(()=>[g(r(L.name),1)]),_:2},1032,["to"])]))),128))])):x("",!0)]),_:1})]),_:1})]),_:1})}}};export{Re as default}; 2//# sourceMappingURL=BibleIntroduction-C8ooNy6Q.js.map
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.