PageSourceSearch

https://www.bibleserver.com/build/HelpItem-ByYZThEa.js

js bibleserver.com collected 2026-09-24 08:40:25 UTC 9,706 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["HelpFeedback-CwAgiBza.js","app-BV_MRGiY.js","_commonjsHelpers-DaWZu8wl.js","app-C7AzNM7B.css","VTextarea-Bj9DPZYP.js","autofocus-DtFVnfki.js","autofocus-D5HtRqtA.css","index-Bk9Q9kfu.js","VTextarea-5DK_ca-d.css","Overlay--zPS9tw1.js","VContainer-D4zTugS6.js","VContainer-DpAWxlfL.css","VRow-DyK-XPgq.js","VRow-D7cOhVrx.css","VCol-B_mXRjjw.js","Overlay-Bn4qX40m.css","help-C85SjbtB.js","LoadingDummyH1-WBYPd09P.js","LoadingDummy-DMOrQAEG.js","LoadingDummy-BGHs260D.css","LoadingDummyP-BfvEowfj.js","HelpFeedback-BapAikqg.css"])))=>i.map(i=>d[i]);
2import{n as F,g as P,aj as J,q as L,p as H,aB as R,aC as T,s as U,a0 as j,v as q,B as G,o as K,A as z,i as O,dP as B,ai as Q,ao as W,an as X,cf as Y,_ as Z,b as o,j as u,w as d,D as c,T as x,c as h,e as f,V as A,J as D,F as S,t as w,L as _,ae as v,G as ee,aE as g,dQ as I,m as te,X as y,l as ae,x as se,by as ne,ay as ie,az as re,N as k}from"./app-BV_MRGiY.js";import{O as le}from"./Overlay--zPS9tw1.js";import{u as oe}from"./help-C85SjbtB.js";import{L as de}from"./LoadingDummyH1-WBYPd09P.js";import{L as ce}from"./LoadingDummyP-BfvEowfj.js";import{V as C}from"./VCol-B_mXRjjw.js";import{V as pe}from"./VRow-DyK-XPgq.js";const he="/api/help/",me="/api/help/hit",ue="/api/help/voting",N=F("helpItem",{state:()=>({helpItem:{},children:[]}),actions:{async sendVoting({id:e,item:t,message:i,vote:s}){try{let n=e!==0,a=await L({url:`${ue}${n?"/"+e:""}`,options:{method:n?"PATCH":"POST",body:JSON.stringify({item:t,message:i,vote:s}),headers:H({})}});if(R(a))throw new Error("Fehler in Api-Response");return a.data}catch(n){return T(n,!0,!0),!1}},async sendHit({id:e}){try{await L({url:`${me}`,options:{method:"PATCH",body:JSON.stringify({id:e}),headers:{"x-silent-request":!0,...H({})}},loading:!1})}catch(t){T(t,!1,!1)}},async getHelpItem({id:e}){let t=P(),i=J(t);try{let s=!0,n=await L({url:`${he}${e}`,options:{headers:H({useCache:s})},useCache:s,includeTagsInId:!0,tags:["help",`locale.${i.locale}`]});if(R(n))throw new Error("Fehler in Api-Response");this.children=n.data.children||[],this.helpItem=n.data}catch(s){T(s,!0,!0)}}}});function fe(){let e=N(P());const{helpItem:t,children:i}=U(e);let s=j();const{messagesLoaded:n,asyncStatus:a,updateData:r}=q({actions:[{item:t,action:e.getHelpItem,payload:function(){return{id:s.params.id}}}],loadAsyncMessages:["help","common"]});let l=z("");G(()=>s.params.id,()=>{s.hash&&s.hash.trim()!==""&&(l.value=B(s.hash.replace("#",""))),r(!0)});const b=O(()=>a.value===Q);return K(()=>{t.value={},i.value=[]}),{helpItem:t,children:i,messagesLoaded:n,asyncStatusLoaded:b,scrollTo:l}}const ge=({asyncStatusLoaded:e,helpItem:t})=>{const{stripHtml:i}=Y(),s=O(()=>e.value?t.value.title:"Help"),n=O(()=>typeof t.value.message<"u"&&e.value?`${i(t.value.message).replace(/^(.{100}[^\s]*).*/,"$1")} ...`:"");return W(X({title:s,description:n})),{description:n}},_e=ie(()=>re(()=>import("./HelpFeedback-CwAgiBza.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]))),$="bs-help-feedback",E="bs-help-hits",ye={name:"HelpItem",components:{LoadingDummyP:ce,LoadingDummyH1:de,Overlay:le,HelpFeedback:_e},setup(){const{helpItem:e,children:t,messagesLoaded:i,asyncStatusLoaded:s,scrollTo:n}=fe();return{helpItem:e,children:t,messagesLoaded:i,asyncStatusLoaded:s,scrollTo:n,...ge({asyncStatusLoaded:s,helpItem:e}),...ne(),...se()}},data:()=>({notSent:!1}),computed:{...ae(oe,["backToList"]),related:function(){if(!this.asyncStatusLoaded)return[];let e=globalThis.clone(this.helpItem.related_items),t=globalThis.clone(this.helpItem.categories),i={},s=[];return e.forEach(n=>{t.forEach(a=>{let r=[];n.categories.forEach(l=>r.push(l.id)),s.indexOf(n.id)===-1&&r.indexOf(a.id)!==-1&&(typeof i["category_"+a.id]>"u"&&(i["category_"+a.id]=a,i["category_"+a.id].items=[]),i["category_"+a.id].items.push({...n,relatedUrl:this.getRelatedUrl(n)}),s.push(n.id))})}),i=Object.values(i),i.sort((n,a)=>n.name.toLowerCase().localeCompare(a.name.toLowerCase())),i},customHelpItem:function(){return{...this.helpItem,replacedMessage:this.replace(this.helpItem.message)}},customChildren:function(){return this.children.map(e=>({...e,slug:g(e.title),replacedMessage:this.replace(e.message)}))}},watch:{$route:{immediate:!1,handler:function(e,t){if(e.params.id===t.params.id&&e.hash&&e.hash!==t.hash){let i=document.getElementById(e.hash.replace("#",""));i&&window.scrollTo(0,parseInt(i.offsetTop)-(parseInt(document.querySelector(".bs-header-wrapper").clientHeight)+15))}}},asyncStatusLoaded:{immediate:!0,handler:async function(e,t){if(e!==t&&e&&this.scrollTo.trim()!==""){let i=0,s=Date.now();for(;document.getElementById(this.scrollTo)===null&&i<5e3;)await new Promise(a=>setTimeout(a)),i=Date.now()-s;let n=document.getElementById(this.scrollTo);window.scrollTo(0,parseInt(n.offsetTop)-(parseInt(document.querySelector(".bs-header-wrapper").clientHeight)+15))}}}},mounted(){this.$route.hash&&this.$route.hash.trim()!==""&&(this.scrollTo=B(this.$route.hash.replace("#","")));let e=[];y.get(E)&&(e=JSON.parse(y.get(E))),e.includes(this.$route.params.id)||(this.sendHit({id:this.$route.params.id}),e.push(this.$route.params.id),y.set(E,JSON.stringify(e),{expires:365}));let t=[];y.get($)&&(t=JSON.parse(y.get($))),this.notSent=!t.includes(this.$route.params.id)},methods:{...te(N,["sendHit"]),getRelatedUrl(e){return e.parent?"/help/"+g(e.parent.title)+"/"+e.parent.id+"#"+g(e.title):"/help/"+g(e.title)+"/"+e.id},handleLink(e){e.preventDefault(),this.backToList=!1},replace(e){if(typeof e>"u")return"";let t=new RegExp(/###(.[^#]*)###/mg),i=e.match(t);
2i!==null&&i.forEach(a=>{let r=a.substr(3,a.length-6);r.indexOf("#")!==-1?e=e.replace(a,"#"+g(r.replace("#","").trim())):e=e.replace(a,g(r))});let s=new RegExp(/\$\$(.[^$]*)\$\$/mg),n=e.match(s);return n!==null&&(n.filter(r=>r.indexOf("GoogleChrome")!==-1).length>0?(n.forEach(r=>{let l=r.substr(2,r.length-4).replace("Browser","");I["mdi"+l]?e=e.replace(r,`<svg class="${l.toLowerCase()}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="${I["mdi"+l].props.path}"/></svg></div><div>`):e=e.replace(r,"</div><div>")}),e=e.replace("<ul>",'<ul class="help-item__text__browser-list">'),e=e.replace(/<li>/gm,'<li><div class="help-item__text__browser-list__block"><div>'),e=e.replace(/<\/li>/gm,"</div></div></li>")):n.forEach(r=>{let l=r.substr(2,r.length-4);I[l]?e=e.replace(r,`<svg class="${l.toLowerCase()}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="${I[l].props.path}"/></svg>`):e=e.replace(r,"")})),e=e.replace(/§div§/mg,'<div class="help-item__text__hint">'),e=e.replace(/§\/div§/mg,"</div>"),e}}},ke={class:"d-flex mb-4 hidden-print-only"},we=["innerHTML"],Ie=["id"],be=["innerHTML"],Le={key:"trans-dummy-wrapper"};function He(e,t,i,s,n,a){const r=k("loading-dummy-h1"),l=k("loading-dummy-p"),b=k("help-feedback"),V=k("router-link"),M=k("overlay");return o(),u(M,{"class-name":"help-item"},{default:d(()=>[c(pe,{"no-gutters":""},{default:d(()=>[c(C,{cols:"12",md:"9",class:"pr-0 pr-md-6"},{default:d(()=>[c(x,{name:"fade",mode:"out-in"},{default:d(()=>[s.messagesLoaded&&s.asyncStatusLoaded?(o(),h("div",{key:"trans-wrapper"+a.customHelpItem.id},[f("div",ke,[e.backToList?(o(),u(A,{key:0,class:"help-item__back-btn arrow-icon--direction",exact:"",icon:"",variant:"text",title:e.t("async.help.back_btn"),tag:"a",to:"/help",onClick:a.handleLink},{default:d(()=>[c(D,null,{default:d(()=>[...t[2]||(t[2]=[S(" bs:$vuetify.icons.mdiArrowLeft ",-1)])]),_:1})]),_:1},8,["title","onClick"])):(o(),u(A,{key:1,class:"help-item__back-btn",exact:"",icon:"",variant:"text",tag:"a",title:e.t("async.help.overview_btn"),to:"/help",onClick:a.handleLink},{default:d(()=>[c(D,null,{default:d(()=>[...t[3]||(t[3]=[S(" bs:$vuetify.icons.mdiHelpCircle ",-1)])]),_:1})]),_:1},8,["title","onClick"])),f("h1",null,w(a.customHelpItem.title),1)]),(o(),h("div",{key:"text_"+a.customHelpItem.id,class:"help-item__text",onClick:t[0]||(t[0]=(...p)=>e.handleRoutableLink&&e.handleRoutableLink(...p)),innerHTML:a.customHelpItem.replacedMessage},null,8,we)),(o(!0),h(_,null,v(a.customChildren,p=>(o(),h(_,{key:"heading_child_"+p.id},[f("h2",{id:p.slug},w(p.title),9,Ie),f("div",{class:"help-item__text",onClick:t[1]||(t[1]=(...m)=>e.handleRoutableLink&&e.handleRoutableLink(...m)),innerHTML:p.replacedMessage},null,8,be)],64))),128))])):(o(),h("div",Le,[c(r),c(l,{count:"4",height:"18px",margin:"8px 0","key-prefix":"dummy_2"}
2),c(l,{count:"5",height:"18px",margin:"8px 0","key-prefix":"dummy_3"}),c(l,{count:"4",height:"18px",margin:"8px 0","key-prefix":"dummy_4"})]))]),_:1}),c(x,{name:"fade",mode:"out-in"},{default:d(()=>[e.notSent?(o(),u(b,{key:"feedback",loaded:s.messagesLoaded&&s.asyncStatusLoaded},null,8,["loaded"])):ee("",!0)]),_:1})]),_:1}),c(x,{name:"fade",mode:"out-in"},{default:d(()=>[s.messagesLoaded&&s.asyncStatusLoaded&&(a.customHelpItem.related_items||[]).length!==0?(o(),u(C,{key:0,cols:"12",md:"3",class:"help-item__related"},{default:d(()=>[(o(!0),h(_,null,v(a.related,p=>(o(),h(_,{key:"heading_related_"+p.id},[f("h3",null,w(e.t("async.help.related",{category:p.name})),1),f("ul",null,[(o(!0),h(_,null,v(p.items,m=>(o(),h("li",{key:"rel_item_"+m.id},[c(V,{to:{path:m.relatedUrl},title:m.title},{default:d(()=>[S(w(m.title),1)]),_:2},1032,["to","title"])]))),128))])],64))),128))]),_:1})):(o(),u(C,{key:1,cols:"12",md:"3",class:"help-item__related"},{default:d(()=>[c(l,{count:"8",width:"100%",height:"18px",margin:"8px 0","key-prefix":"dummy_5"})]),_:1}))]),_:1})]),_:1})]),_:1})}const Te=Z(ye,[["render",He]]),Ae=Object.freeze(Object.defineProperty({__proto__:null,default:Te},Symbol.toStringTag,{value:"Module"}));export{Ae as H,N as u};
3//# sourceMappingURL=HelpItem-ByYZThEa.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.