PageSourceSearch

https://academy.lidiabaer.de/chunk-B5-qnxZZ.js

js lidiabaer.de collected 2026-09-25 03:29:08 UTC 13,140 bytes, 1 lines download raw bytes

1import {W}from'./chunk-C6BmM9DR.js';import {E as E$1}from'./chunk-BdKCpw8H.js';import {g,go as t$1,gp as n,O as On,iN as _,Y as YG,al as w,q as qd,e as qS,h as ta,i as Vv,P as Pd,ah as jv,u as uT,iO as g$1,b8 as $E,iP as M,a5 as ie,eq as qE,c as Es,_ as L,X as X8,bG as bt,ab as yt,aI as kt,F as gv,l as le,j as QM,D as eM,G as Gd,H as tM,I as cN,au as $,iQ as Q,iR as E,iS as v,iT as y1,aj as yM,y as yD,as as oM,db as rM,at as iM,M as Ma}from'./main-WSOJHSS4.js';function ce(e,d){if(e&1&&(ta(0,"p",4),QM(1),Pd()),e&2){let t=yM();uT(),Gd(" ",t.title()," ");}}function ue(e,d){if(e&1&&(ta(0,"p",5),QM(1),Pd()),e&2){let t=yM();uT(),Gd(" ",t.excerpt()," ");}}function ge(e,d){if(e&1&&(ta(0,"span",7),QM(1),Pd()),e&2){let t=yM();uT(),yD(t.authorName());}}var ae=(()=>{class e{constructor(){this.post=X8.required(),this.link=X8.required(),this.title=qd(()=>this.post().title||""),this.excerpt=qd(()=>v(this.post().content)),this.authorName=qd(()=>this.post().user?.name??""),this.authorPhoto=qd(()=>this.post().user?.photoUrl??""),this.commentCount=qd(()=>this.post().commentCount??0),this.likeCount=qd(()=>this.post().reactionsCount??0);}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-standard-feed-card"]],hostAttrs:[1,"block"],inputs:{post:[1,"post"],link:[1,"link"]},features:[cN([$({heroChatBubbleOvalLeft:E,heroHandThumbUp:y1})])],decls:14,vars:8,consts:[[1,"border-mspot-neutral-200","group/feed-card","bg-backgrounds-surface-raised","flex","gap-3","rounded-lg","border","p-3","no-underline","backdrop-blur-sm","transition-all","duration-200","ease-out","hover:-translate-y-0.5","hover:shadow-md",3,"routerLink"],[1,"size-10","shrink-0","overflow-hidden","rounded-full"],["size","lg",1,"block","transition-transform","duration-200","ease-out","motion-safe:group-hover/feed-card:scale-110",3,"src","alt"],[1,"flex","min-w-0","flex-1","flex-col","gap-1"],[1,"text-mspot-neutral-900","line-clamp-1","text-sm","font-medium","leading-5"],[1,"text-mspot-neutral-600","line-clamp-2","text-xs","leading-5"],[1,"text-mspot-neutral-500","mt-0.5","flex","items-center","gap-3","text-xs","leading-4"],[1,"truncate","font-medium"],[1,"flex","items-center","gap-1"],["name","heroHandThumbUp",1,"text-sm"],["name","heroChatBubbleOvalLeft",1,"text-sm"]],template:function(i,n){i&1&&(ta(0,"a",0)(1,"div",1),Vv(2,"mspot-avatar",2),Pd(),ta(3,"div",3),eM(4,ce,2,1,"p",4),eM(5,ue,2,1,"p",5),ta(6,"div",6),eM(7,ge,2,1,"span",7),ta(8,"span",8),Vv(9,"ng-icon",9),QM(10),Pd(),ta(11,"span",8),Vv(12,"ng-icon",10),QM(13),Pd()()()()),i&2&&(jv("routerLink",n.link()),uT(2),jv("src",n.authorPhoto())("alt",n.authorName()||"Avatar image"),uT(2),tM(n.title()?4:-1),uT(),tM(n.excerpt()?5:-1),uT(2),tM(n.authorName()?7:-1),uT(3),Gd(" ",n.likeCount()," "),uT(3),Gd(" ",n.commentCount()," "));},dependencies:[E$1,le,kt],encapsulation:2});}}return e})();function fe(e,d){if(e&1&&(ta(0,"span",11),Vv(1,"span",12),QM(2),Pd()),e&2){let t=yM();uT(),Ma("background-color",t.color||null),uT(),Gd(" ",t.label," ");}}function he(e,d){e&1&&eM(0,fe,3,3,"span",11),e&2&&tM(d.label?0:-1);}function ve(e,d){if(e&1&&(ta(0,"span",10),QM(1),Pd()),e&2){let t=yM();uT(),yD(t.authorName());}}var re=(()=>{class e{constructor(){this.post=X8.required(),this.link=X8.required(),this.status=X8(null),this.upvoteCount=qd(()=>this.post().reactionsCount??0),this.authorName=qd(()=>this.post().user?.name??""),this.commentCount=qd(()=>this.post().commentCount??0),this.title=qd(()=>this.post().title||"");}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-upvote-feed-card"]],hostAttrs:[1,"block"],inputs:{post:[1,"post"],link:[1,"link"],status:[1,"status"]},features:[cN([$({heroChatBubbleOvalLeft:E,heroChevronUp:Q})])],decls:15,vars:6,consts:[[1,"border-mspot-neutral-200","group/feed-card","bg-backgrounds-surface-raised","flex","gap-3","rounded-lg","border","p-3","no-underline","backdrop-blur-sm","transition-all","duration-200","ease-out","hover:-translate-y-0.5","hover:shadow-md",3,"routerLink"],[1,"bg-client-primary-10","flex","h-12","w-10","shrink-0","items-center","justify-center","overflow-hidden","rounded-md","leading-none","text-[var(--client-primary)]"],[1,"flex","flex-col","items-center","gap-0.5","transition-transform","duration-200","ease-out","motion-safe:group-hover/feed-card:scale-110"],["name","heroChevronUp",1,"text-lg"],[1,"text-sm","font-semibold","leading-none"],[1,"flex","min-w-0","flex-1","flex-col","gap-1"],[1,"text-mspot-neutral-900","line-clamp-1","text-sm","font-medium","leading-5"],[1,"text-mspot-neutral-500","flex","items-center","gap-3","text-xs","leading-4"],[1,"flex","items-center","gap-1"],["name","heroChatBubbleOvalLeft",1,"text-sm"],[1,"truncate"],[1,"inline-flex","items-center","gap-1.5","font-medium"],[1,"border-mspot-neutral-300","inline-block","h-2.5","w-2.5","shrink-0","rounded-full","border"]],template:function(i,n){if(i&1&&(ta(0,"a",0)(1,"div",1)(2,"div",2),Vv(3,"ng-icon",3),ta(4,"span",4),QM(5),Pd()()(),ta(6,"div",5)(7,"p",6),QM(8),Pd(),ta(9,"div",7),eM(10,he,1,1),ta(11,"span",8),Vv(12,"ng-icon",9),QM(13),Pd(),eM(14,ve,2,1,"span",10),Pd()()()),i&2){let C;jv("routerLink",n.link()),uT(5),Gd(" ",n.upvoteCount()," "),uT(3),Gd(" ",n.title()," "),uT(2),tM((C=n.status())?10:-1,C),uT(3),Gd(" ",n.commentCount()," "),uT(),tM(n.authorName()?14:-1);}},dependencies:[le,kt],encapsulation:2});}}return e})();var _e=(e,d)=>d.id;function Ce(e,d){if(e&1&&(ta(0,"h3",6),QM(1),Pd()),e&2){let t=yM(3);uT(),Gd(" ",t.title()," ");}}function xe(e,d){if(e&1&&(ta(0,"a",7),QM(1),ta(2,"span",8),QM(3,"\u2192"),Pd()()),e&2){let t=yM(2).$implicit;
1jv("routerLink",d),uT(),Gd(" ",t("common.showMore")," ");}}function ye(e,d){if(e&1&&(ta(0,"div",2),eM(1,Ce,2,1,"h3",6),eM(2,xe,4,2,"a",7),Pd()),e&2){let t,i=yM(2);uT(),tM(i.title()?1:-1),uT(),tM((t=i.viewAllLink())?2:-1,t);}}function be(e,d){e&1&&(ta(0,"div",9),Vv(1,"div",10),ta(2,"div",11),Vv(3,"div",12)(4,"div",13),Pd()());}function Me(e,d){if(e&1&&(ta(0,"div",3),oM(1,be,5,0,"div",9,rM),Pd()),e&2){let t=yM(2);uT(),iM(t.skeletonRange);}}function ke(e,d){if(e&1&&Vv(0,"mspot-upvote-feed-card",14),e&2){let t=yM().$implicit,i=yM(3);jv("post",t)("link",i.postLink(t))("status",i.resolveStatus(t));}}function we(e,d){if(e&1&&Vv(0,"mspot-standard-feed-card",15),e&2){let t=yM().$implicit,i=yM(3);jv("post",t)("link",i.postLink(t));}}function De(e,d){if(e&1&&eM(0,ke,1,3,"mspot-upvote-feed-card",14)(1,we,1,2,"mspot-standard-feed-card",15),e&2){let t=yM(3);tM(t.isUpvoteSpace()?0:1);}}function Se(e,d){if(e&1&&(ta(0,"div",4),oM(1,De,2,1,null,null,_e),Pd()),e&2){let t=yM(2);uT(),iM(t.posts());}}function Fe(e,d){if(e&1&&(ta(0,"p",5),QM(1),Pd()),e&2){let t=yM().$implicit;uT(),Gd(" ",t("common.noData")," ");}}function Ie(e,d){if(e&1&&(ta(0,"div",1),eM(1,ye,3,2,"div",2),eM(2,Me,3,0,"div",3)(3,Se,3,0,"div",4)(4,Fe,2,1,"p",5),Pd()),e&2){let t=yM();uT(),tM(t.title()||t.viewAllLink()?1:-1),uT(),tM(t.loading()&&t.posts().length===0?2:t.posts().length>0?3:t.empty()?4:-1);}}var se=(()=>{class e{constructor(){this.posts=X8.required(),this.isUpvoteSpace=X8(false),this.statusById=X8(new Map),this.title=X8(""),this.viewAllLink=X8(null),this.empty=X8(false),this.loading=X8(false),this.skeletonRange=[0,1,2];}postLink(t){return ["/community",t.spaceId,t.id]}resolveStatus(t){let i=t.attachments?.find(n=>n.type==="upvote");return i?.statusId?this.statusById().get(i.statusId)??null:null}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-community-feed-list"]],inputs:{posts:[1,"posts"],isUpvoteSpace:[1,"isUpvoteSpace"],statusById:[1,"statusById"],title:[1,"title"],viewAllLink:[1,"viewAllLink"],empty:[1,"empty"],loading:[1,"loading"]},decls:1,vars:0,consts:[["class","community-feed-list flex flex-col gap-4",4,"transloco"],[1,"community-feed-list","flex","flex-col","gap-4"],[1,"flex","items-center","justify-between","gap-2"],["aria-busy","true",1,"community-feed-list__grid","gap-3"],[1,"community-feed-list__grid","gap-3"],[1,"text-mspot-neutral-500","text-sm"],[1,"text-mspot-neutral-900","text-2xl","font-semibold","tracking-tight"],[1,"text-mspot-neutral-700","flex","items-center","gap-1","whitespace-nowrap","text-sm","font-medium","no-underline","hover:text-[var(--client-primary)]",3,"routerLink"],["aria-hidden","true"],[1,"border-mspot-neutral-200","bg-backgrounds-surface-raised","flex","animate-pulse","gap-3","rounded-lg","border","p-3","backdrop-blur-sm"],[1,"bg-mspot-neutral-200","h-12","w-10","shrink-0","rounded-md"],[1,"flex","min-w-0","flex-1","flex-col","gap-2","py-1"],[1,"bg-mspot-neutral-200","h-3","w-3/4","rounded"],[1,"bg-mspot-neutral-200","h-2.5","w-1/2","rounded"],[3,"post","link","status"],[3,"post","link"]],template:function(i,n){i&1&&gv(0,Ie,5,2,"div",0);},dependencies:[bt,yt,kt,re,ae],styles:["[_nghost-%COMP%]{display:block}.community-feed-list[_ngcontent-%COMP%]{container-type:inline-size}.community-feed-list__grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr}@container (min-width: 480px){.community-feed-list__grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,minmax(0,1fr))}}@container (min-width: 900px){.community-feed-list__grid[_ngcontent-%COMP%]{grid-template-columns:repeat(3,minmax(0,1fr))}}"]});}}return e})();var de=(()=>{class e{constructor(){this._api=g(g$1),this._logger=g($E),this._memberArea=YG(g(M));}getSpaceForWidget({schoolId:t,spaceId:i,previewMode:n}){let C=ie(()=>({queryKey:["portal-community-feed-data",t(),n()],enabled:!!i()&&this._communityEnabled(t(),n()),queryFn:async()=>{let p=t();if(!p)throw new Error("schoolId required");return qE(this._api.getCommunityData(p,n()))}})),S=qd(()=>C.data()),b=qd(()=>{let p=i(),M=S();return !p||!M?null:M.spaces?.find(D=>D.id===p)??null}),w=qd(()=>C.error()??null);return Es(()=>{let p=w();p&&this._logger.error({err:p},"community-feed widget: community-data query failed");}),{space:b,error:w}}getFeed({schoolId:t,spaceId:i,postCount:n,sort:C,statusFilter:S,previewMode:b}){let w=qd(()=>{let x=this._memberArea();
1return !b()&&!!t()&&x?.schoolId===t()&&!x.spacesActive}),p=ie(()=>({queryKey:["portal-community-feed",t(),i()??"__user-feed__",C(),S()??[],n(),b()],enabled:this._communityEnabled(t(),b()),queryFn:async()=>{let x=t();if(!x)throw new Error("schoolId required");return qE(this._api.getFeed({schoolId:x,spaceId:i()??void 0,pageSize:n(),sort:C(),statusFilter:S(),previewMode:b()}))}})),M=qd(()=>p.data()??[]),D=qd(()=>p.error()??null);Es(()=>{let x=D();x&&this._logger.error({err:x},"community-feed widget: feed query failed");});let me=qd(()=>p.isSuccess()&&M().length>0),le=qd(()=>(w()||p.isSuccess()||!!D())&&M().length===0),pe=qd(()=>p.isPending()&&p.fetchStatus()!=="idle");return {posts:M,hasContent:me,isEmpty:le,isLoading:pe,isDisabled:w,error:D}}_communityEnabled(t,i){let n=this._memberArea();return !!t&&(i||n?.schoolId===t&&!!n.spacesActive)}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275prov=L({token:e,factory:e.\u0275fac,providedIn:"root"});}}return e})();var _t=(()=>{class e{constructor(){this._tanstack=g(de),this.widget=g(t$1),this.showWidgetHeading=g(n),this._previewMode=On(g(_)),this._schoolId=YG(g(w),{initialValue:null}),this._spaceId=qd(()=>this.widget.spaceId?this.widget.spaceId:null),this._postCount=qd(()=>this.widget.postCount??3),this._sort=qd(()=>this.widget.sort??"newest"),this._statusFilter=qd(()=>this.widget.statusFilter),this._spaceQuery=this._tanstack.getSpaceForWidget({schoolId:this._schoolId,spaceId:this._spaceId,previewMode:this._previewMode}),this.space=this._spaceQuery.space,this._feed=this._tanstack.getFeed({schoolId:this._schoolId,spaceId:this._spaceId,postCount:this._postCount,sort:this._sort,statusFilter:this._statusFilter,previewMode:this._previewMode}),this.posts=this._feed.posts,this.isEmpty=this._feed.isEmpty,this.isLoading=this._feed.isLoading,this.isUpvoteSpace=qd(()=>this.space()?.requiredAttachmentType==="upvote"),this.statusById=qd(()=>{let t=this.space()?.postStatuses??[];return new Map(t.map(i=>[i.id,i]))}),this.viewAllLink=qd(()=>{if(this._feed.isDisabled()||this._previewMode()||this.widget.showViewAllLink===false)return null;let t=this.widget.spaceId;return t?["/community",t]:["/community"]});}static{this.\u0275fac=function(i){return new(i||e)};}static{this.\u0275cmp=qS({type:e,selectors:[["mspot-community-feed-widget"]],decls:2,vars:9,consts:[[3,"widget","showWidgetHeading"],[3,"posts","isUpvoteSpace","statusById","title","viewAllLink","empty","loading"]],template:function(i,n){i&1&&(ta(0,"mspot-base-client-widget-layout",0),Vv(1,"mspot-community-feed-list",1),Pd()),i&2&&(jv("widget",n.widget)("showWidgetHeading",n.showWidgetHeading),uT(),jv("posts",n.posts())("isUpvoteSpace",n.isUpvoteSpace())("statusById",n.statusById())("title",n.widget.title??"")("viewAllLink",n.viewAllLink())("empty",n.isEmpty())("loading",n.isLoading()));},dependencies:[W,se],styles:["[_nghost-%COMP%]{display:block;height:100%}"]});}}return e})();export{_ as COMMUNITY_FEED_PREVIEW_MODE,se as CommunityFeedListComponent,_t as CommunityFeedWidgetComponent,ae as StandardFeedCardComponent,re as UpvoteFeedCardComponent};

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.