PageSourceSearch

https://www.bibleserver.com/build/TagList-BJ18fu4S.js

js bibleserver.com collected 2026-09-24 08:40:01 UTC 6,709 bytes, 2 lines download raw bytes

1import{O as W}from"./Overlay--zPS9tw1.js";import{g as F,s as S,v as j,B as k,A as D,i as C,bZ as O,I as q,bW as E,e9 as G,dV as H,ai as K,_ as z,b as o,j as c,w as y,e as P,D as r,aD as B,c as g,ae as R,K as I,F as M,t as L,L as b,G as _,m as Z,$ as J,y as Q,a as X,ax as Y,x as $,N as n,dT as ee,ea as te,dU as ae,eb as oe}from"./app-BV_MRGiY.js";import{_ as ie}from"./ButtonListGrid-CnhQ7tZy.js";import{u as U,a as se}from"./tag-BB6OJnKt.js";import{u as re}from"./useComponentIsActive-BbxelIBr.js";import{L as ne}from"./LoadingDummyCustom-TdSBOfeM.js";import{_ as le}from"./H1Title-BjtlhM4U.js";import{_ as me}from"./SearchFilter-Dop2d7qF.js";import{_ as de}from"./SwitchFilter-Bfn_FLGI.js";import{_ as ce}from"./SortOptions-HO1ZAMm3.js";import{I as ge}from"./InfiniteScroll-BvDY9Btf.js";import{V as A}from"./VSpacer-BDYNWQQy.js";import{V as ue}from"./VChip-B_kE1aRF.js";import"./VContainer-D4zTugS6.js";import"./VRow-DyK-XPgq.js";import"./VCol-B_mXRjjw.js";import"./_commonjsHelpers-DaWZu8wl.js";import"./BsBtnIcon-BwuiuhRj.js";import"./_constants-Ctdjha7I.js";import"./LoadingDummy-DMOrQAEG.js";import"./LoadingDummyH1-WBYPd09P.js";import"./LoadingDummySelect-_qPalW43.js";import"./VTextField-3nhT-124.js";import"./autofocus-DtFVnfki.js";import"./index-Bk9Q9kfu.js";import"./LoadingDummySwitch-Beu6PGh6.js";import"./VSelect-D7rLlSXQ.js";import"./VList-DMgWQMMo.js";import"./createSimpleFunctional-B9jd2Nfg.js";import"./VAvatar-DsqQT6G4.js";import"./VImg-BCkp8k9d.js";import"./VDivider-DsDIMz2A.js";import"./VMenu-BTZHY328.js";import"./dialog-transition-CzwNLyXj.js";import"./VSheet-Cv_MRrpF.js";import"./VCheckboxBtn-DwjNB8Hn.js";import"./VSlideGroup-kMqE1MF0.js";function pe(){let i=F(),t=U(i),{tags:T,reload:e,search:l}=S(t),{messagesLoaded:m,asyncStatus:w,updateData:x}=j({actions:[{item:T,action:t.getTags,payload:{page:1}}],loadAsyncMessages:["tag","common"]}),{componentIsActive:h}=re();k(e,async(s,N)=>{s&&s!==N&&h&&(await x(),t.reload=!1)});const u=D(l.value);k(u,E(s=>l.value=s,300),{immediate:!0}),k(l,()=>{t.reload=!1,setTimeout(()=>{t.reload=!0})});const p=C(O("tag/list/my"));k(p,()=>t.reload=!0);let{getUserOption:v}=q(),V=D(v("tag/list/my"));k(V,E(s=>{p.value=s,d.value===G&&(d.value=H)},300),{immediate:!0});const d=C(O("tag/list/sort"));k(d,()=>t.reload=!0);const f=C(O("tag/gridView")),a=C(()=>w.value===K);return{messagesLoaded:m,asyncStatusLoaded:a,tags:T,debouncedSearch:u,my:V,componentIsActive:h,sort:d,gridView:f}}const fe={name:"TagList",components:{InfiniteScroll:ge,SortOptions:ce,SwitchFilter:de,SearchFilter:me,H1Title:le,LoadingDummyCustom:ne,ButtonListGrid:ie,Overlay:W},setup(){J({titleKey:"async.tag.list.title"});const i=F(),{page:t,maxPages:T}=S(U(i)),{loggedIn:e}=S(Q(i)),{backToList:l}=S(se(i)),{printing:m}=S(X(i)),{messagesLoaded:w,asyncStatusLoaded:x,tags:h,debouncedSearch:u,my:p,componentIsActive:v,sort:V,gridView:d}=pe();return{page:t,maxPages:T,loggedIn:e,backToList:l,printing:m,messagesLoaded:w,asyncStatusLoaded:x,tags:h,debouncedSearch:u,my:p,componentIsActive:v,sort:V,gridView:d,...$(),colors:Y,sortEnum:C(()=>{let f=[H,ee,te,ae];
1return p.value&&f.push(G),u.value.length!==0&&f.push(oe),f})}},data(){return{loadingNext:!1,gridDummyCount:50}},computed:{randomTagWidth:function(){return new Array(this.gridDummyCount).fill(0).map(()=>Math.floor(Math.random()*121+50)+"px")}},methods:{...Z(U,["getTags"]),getColor:function(i){if(typeof i.user_tags<"u"){let t=i.user_tags[0].color;if(typeof t<"u")return t}return""},getMoreResults(){if(this.page===this.maxPages)return;this.loadingNext=!0;let i=this.page+1,t=this;this.getTags({page:i}).then(()=>{t.loadingNext=!1,this.$bsa&&this.$bsa.event({eventCategory:"load more",eventAction:"Tags nachladen",eventLabel:i})})}}},ye={class:"d-flex mb-7"},_e={class:"d-flex align-center mb-7"},he={key:0,class:"d-flex flex-wrap"},ve={key:0},Ve={key:1};function ke(i,t,T,e,l,m){const w=n("h1-title"),x=n("button-list-grid"),h=n("search-filter"),u=n("switch-filter"),p=n("sort-options"),v=n("router-link"),V=n("infinite-scroll"),d=n("loading-dummy-custom"),f=n("overlay");return o(),c(f,{"class-name":"tag-list"},{default:y(()=>[P("div",ye,[r(w,{"title-key":"async.tag.list.title"}),r(A),r(x,{"grid-view":e.gridView,onToggle:t[0]||(t[0]=a=>e.gridView=!e.gridView)},null,8,["grid-view"])]),r(h,{modelValue:e.debouncedSearch,"onUpdate:modelValue":t[1]||(t[1]=a=>e.debouncedSearch=a),"label-key":"async.tag.list.filter_placeholder"},null,8,["modelValue"]),P("div",_e,[r(u,{modelValue:e.my,"onUpdate:modelValue":t[2]||(t[2]=a=>e.my=a),disabled:!e.loggedIn,"label-key":"async.tag.list.only_my"},null,8,["modelValue","disabled"]),r(A),r(p,{modelValue:e.sort,"onUpdate:modelValue":t[3]||(t[3]=a=>e.sort=a),types:e.sortEnum},null,8,["modelValue","types"])]),e.gridView?_("",!0):(o(),c(B,{key:0,name:"scale-trans",tag:"div",class:"d-flex flex-wrap tag-list"},{default:y(()=>[(o(!0),g(b,null,R(e.tags,(a,s)=>(o(),c(v,{key:"list-item"+a.id,class:I([{first:s===0},"tag-list-item",m.getColor(a)]),to:e.my?{path:`/tag/${encodeURIComponent(a.key)}`,query:{filter:"my"}}:{path:`/tag/${encodeURIComponent(a.key)}`},onClick:t[4]||(t[4]=N=>e.backToList=!0)},{default:y(()=>[M(L(a.key),1)]),_:2},1032,["class","to"]))),128))]),_:1})),e.gridView?(o(),c(B,{key:1,name:"scale-trans",tag:"div",class:"d-flex flex-wrap tag-grid"},{default:y(()=>[(o(!0),g(b,null,R(e.tags,a=>(o(),c(v,{key:"grid-item"+a.id,to:e.my?{path:`/tag/${encodeURIComponent(a.key)}`,query:{filter:"my"}}:{path:`/tag/${encodeURIComponent(a.key)}`},onClick:t[5]||(t[5]=s=>e.backToList=!0)},{default:y(()=>[r(ue,{class:I(["tag-grid-item",m.getColor(a)]),label:""},{default:y(()=>[M(L(a.key),1)]),_:2},1032,["class"])]),_:2},1032,["to"]))),128)),r(A,{key:"spacer"})]),_:1})):_("",!0),e.page<e.maxPages&&!e.printing&&e.asyncStatusLoaded?(o(),g(b,{key:2},[(o(!0),g(b,null,R(e.gridView?l.gridDummyCount:10,a=>(o(),c(d,{key:"tag_dummy_"+a,height:e.gridView?"32px":"24px",width:e.gridView?m.randomTagWidth[a]:"100%",margin:e.gridView?"4px":"12px"},{default:y(()=>[a===1?(o(),c(V,{key:0,handler:m.getMoreResults,"should-handle":!l.loadingNext&&e.componentIsActive,class:I(["layout","wrap","hidden-print-only",{"justify-space-between":e.gridView}]),style:{margin:"4px -4px"}},null,8,["handler","should-handle","class"])):_("",!0)]),_:2},1032,["height","width","margin"]))),128)),e.gridView?(o(),c(A,{key:0})):_("",!0)],64)):_("",!0),e.messagesLoaded?(o(),g(b,{key:3},[e.tags.length===0&&e.debouncedSearch.length!==0?(o(),g("div",he,[e.my?(o(),g("p",ve,L(i.t("async.tag.list.no_my_items")),1)):(o(),g("p",Ve,L(i.t("async.tag.list.no_filtered_items")),1))])):_("",!0)],64)):_("",!0)]),_:1})}const st=z(fe,[["render",ke]]);export{st as default};
2//# sourceMappingURL=TagList-BJ18fu4S.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.