PageSourceSearch

https://www.regio-tv.de/wp-content/themes/cmms-theme-regio_tv/assets/dist/1.77/Bookmarks.js

js regio-tv.de collected 2026-10-02 03:50:29 UTC 3,183 bytes, 1 lines download raw bytes

1import _ from"./PostShortcutList.js";import{f as t,g as o,_ as d,S as p,h as b}from"./app.js";import"./swiper.js";const w={name:"BookmarksPostShortcutList",extends:_,data(){},computed:{elementType(){return"soylent"},elementSubtype(){return"postShortcutList"},bookmarkedPosts(){return t().has(o)?this.$store.getters["BookmarksOnlineStore/allBookmarks"]:this.$store.getters["bookmarks/bookmarkedPosts"]},bookmarks(){if(t().has(o))return this.$store.getters["BookmarksOnlineStore/allBookmarks"];{let s=this.$store.getters["bookmarks/allBookmarks"];return Object.values(s).filter(r=>r.type==="post"||r.type==="cmms_media")}}},watch:{bookmarkedPosts:{deep:!0,handler:async function(){await this.setDataSettings()}}},methods:{async setDataSettings(){if(this.pageItems=[],t().has(o)){let s=await this.$store.dispatch("BookmarksOnlineStore/fetchBookmarkedPosts");this.pageItems=s}else this.pageItems=await this.$store.dispatch("bookmarks/fetchBookmarkedPosts",!0)}},mounted(){this.setDataSettings()}},f={name:"Bookmarks",components:{SoylentLink:p,BookmarksPostShortcutList:w},props:["element"],data(){return{fakeElement:{type:"soylent",subtype:"postShortcutList"},requiresAuth:!0}},computed:{isAuth(){return t().has(o)?this.$store.getters["sso/auth"]:!0},profilePageUrl(){return"profile_page"in window.soylent_settings?window.soylent_settings.profile_page:null},bookmarkCount(){return t().has(o)?this.$store.getters["BookmarksOnlineStore/bookmarkCount"]:this.bookmarks.length},bookmarks(){if(t().has(o))return this.$store.getters["BookmarksOnlineStore/allBookmarks"];{let s=this.$store.getters["bookmarks/allBookmarks"];return Object.values(s).filter(r=>r.type==="post"||r.type==="cmms_media")}},label(){return this.bookmarks.length===1,"Lesezeichen"}},async mounted(){t().has(o)&&this.$store.getters["sso/auth"]&&(await b.importOldBookmarks(),this.$store.dispatch("BookmarksOnlineStore/fetchBookmarks"))}},l=window.Vue.toDisplayString,n=window.Vue.createElementVNode,B=window.Vue.createTextVNode,a=window.Vue.openBlock,i=window.Vue.createElementBlock,k=window.Vue.createCommentVNode,c=window.Vue.resolveComponent,g=window.Vue.createBlock,y=window.Vue.withCtx,S=window.Vue.createVNode,V={class:"bookmarks"},P={key:0,class:"bookmarks__headline"},C={key:2,class:"bookmarks__no-content"},L={key:3,class:"sso-auth__card --with-icon --poll"},O=n("span",{class:"iconSet sso-auth__card__icon"},null,-1),x=n("h3",{class:"sso-auth__card__headline"},"Bitte einloggen, um Lesezeichen zu nutzen",-1),v=n("span",{class:"sso-auth__card__button__label"},[n("span",{class:"sso-auth__card__button__text"},"Anmelden")],-1);function N(s,r,$,z,m,e){const u=c("BookmarksPostShortcutList"),h=c("soylent-link");return a(),i("div",V,[e.bookmarks&&e.bookmarkCount?(a(),i("h4",P,[n("span",null,l(e.bookmarkCount),1),B(" "+l(e.label),1)])):k("",!0),e.bookmarks&&e.bookmarkCount?(a(),g(u,{key:1,element:m.fakeElement},null,8,["element"])):k("",!0),!e.bookmarkCount&&e.isAuth?(a(),i("span",C,"Keine Lesezeichen vorhanden")):k("",!0),e.isAuth?k("",!0):(a(),i("div",L,[O,x,S(h,{url:e.profilePageUrl,class:"sso-auth__card__button"},{default:y(()=>[v]),_:1},8,["url"])]))])}const I=d(f,[["render",N]]);export{I 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.