1import{P as $}from"./PageLayout-pRPPiC0Z.js";import{s as b,v as I,a8 as N,i as w,B as F,o as s,e as p,a as f,w as h,u as r,d as S,c as y,j as _,F as v,g as P,b as V,aq as D,_ as j}from"./main-CGEc23yE.js";import{T as q}from"./Teacher-C1hQZqUR.js";import{_ as O}from"./Heading3-C6hUZ2o_.js";import{_ as z}from"./NoEntriesIconParagraph-BR-8eBO-.js";import{T as B}from"./TeacherSummaryCard-D4Wn-AQU.js";import{_ as A}from"./Division-DJxQAU8g.js";import"./StagingHint-DGxLODnK.js";import"./openSupportChat-BQXwobUu.js";import"./LoadingSpinner-CMbZyu96.js";import"./Anchor-B_Zi-ROg.js";import"./SkeletonText-C6jd2Pay.js";import"./TeacherListAvatarV2-mvXtuo1f.js";const E={class:"et-1-columns teacher-summary-grid"},G={__name:"MyFavoriteTeachers",props:{...b("favoriteTeacher"),useLegacyProfileRef:{type:Boolean,default:!1}},setup(T){const i=I(),u=N.instance.isLoadingPage,C=w(()=>i.value?(i.value??[]).map(e=>new q(e)):null),l=F(new Set),n=w(()=>{var e;return(e=C.value)==null?void 0:e.filter(a=>!l.value.has(a.teacherRef))}),m=new Map,d=F();function L(e,a){a?m.set(e,a):m.delete(e)}async function M({teacherRef:e}){var g,R,k,x;const a=n.value??[],t=a.findIndex(o=>o.teacherRef===e);if(t<0)return;const c=((g=a[t+1])==null?void 0:g.teacherRef)??((R=a[t-1])==null?void 0:R.teacherRef);if(l.value=new Set([...l.value,e]),await D(),c)(k=m.get(c))==null||k.focusOptionsButton();else{const o=((x=d.value)==null?void 0:x.$el)??d.value;o==null||o.focus()}}return(e,a)=>(s(),p(v,null,[f(r(O),{class:"my-favorite-teachers-title",weight:"bold"},{default:h(()=>a[0]||(a[0]=[V("Meine favorisierten Tutor:innen")])),_:1}),S("div",E,[n.value&&!n.value.length?(s(),y(r(z),{key:0,ref_key:"emptyState",ref:d,tabindex:"-1"},null,512)):_("",!0),r(u)?_("",!0):(s(!0),p(v,{key:1},P(n.value,t=>(s(),y(r(B),{key:t.teacherRef,ref_for:!0,ref:c=>L(t.teacherRef,c),"profile-ref":T.useLegacyProfileRef?t._refId:void 0,teacher:t,onTeacherRemovedFromFavorites:M},null,8,["profile-ref","teacher"]))),128)),r(u)?(s(),p(v,{key:2},P(5,t=>f(r(B),{key:t,skeleton:!0})),64)):_("",!0)])],64))}},H={__name:"MyFavoriteTeachers",setup(T){return(i,u)=>(s(),y(r($),null,{default:h(()=>[f(r(A),{class:"my-favorite-teachers-page"},{default:h(()=>[f(r(G))]),_:1})]),_:1}))}},oe=j(H,[["__scopeId","data-v-8e5f26ef"]]);export{oe 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.