PageSourceSearch

https://www.bergesinstitutespanish.com/build/assets/PastVisits-ZwO8N3Ea.js

js bergesinstitutespanish.com collected 2026-10-02 03:02:02 UTC 3,015 bytes, 1 lines download raw bytes

1import{L as f}from"./Loader-Baqe17Om.js";import{S as C}from"./SwitchClassModal-h2JZUcFF.js";import{r as h,o,c as a,a as n,t,f as l,b as c,F as $,e as y,h as r,d as k,g as i}from"./vue-router-CSEP06dd.js";import{_ as b}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Modal-TGyeVepA.js";import"./ClassInfo-B9tfuNTI.js";const S={components:{Loader:f,SwitchClassModal:C},data(){return{switchModalShown:!1,selectedVisit:null}},mounted(){this.addTitleAndDescription(this.$t("pastClasses"),"")},methods:{showSwitchModal(s){this.selectedVisit=s,this.switchModalShown=!0},hideSwitchModal(){this.selectedVisit=null,this.switchModalShown=!1},redirectToUpcomingClasses(){window.location.href=this.$path("upcoming")}}},M={class:"p-4 border-bottom"},g={class:"h3 mb-0"},v={key:0,class:"p-4 border-bottom"},V={class:"p-4 border-bottom"},L={key:0},N={class:"small text-muted"},T={key:0},B={key:0,class:"mt-3 small fw-bold"},P=["onClick"],D={class:"mt-3 small fw-bold"},F={key:0},R={key:1},U={key:1,class:"mt-3 small fw-bold"},A={key:0},E={key:1};function W(s,Y,j,q,_,m){const u=h("loader"),d=h("router-link"),w=h("switch-class-modal");return o(),a("div",null,[n("div",M,[n("h1",g,t(s.$t("pastClasses")),1)]),l(u,{show:!s.$root.past_visits_ready},null,8,["show"]),n("div",null,[s.$root.past_visits_ready&&(!s.$root.auth_user.past_visits||s.$root.auth_user.past_visits.length===0)?(o(),a("div",v,t(s.$t("noPastClasses")),1)):c("",!0),(o(!0),a($,null,y(s.$root.auth_user.past_visits,e=>{var p;return o(),a("div",V,[n("div",null,[r(t(e.name),1),e.type==="class"&&!s.isConversationCategory((p=e.level)==null?void 0:p.category)?(o(),a("span",L,", "+t(s.$t("class"))+" #"+t(e.class_number),1)):c("",!0),r(" "+t(s.$t("with").toLowerCase())+" "+t(e.external_sub_name||e.instructor.name),1)]),n("div",N,t(e.datetimeLocalWithYear),1),e.type==="class"?(o(),a("div",T,[e.attended?c("",!0):(o(),a("div",B,[n("a",{href:"",onClick:k(z=>m.showSwitchModal(e),["prevent"])},t(s.$t("switchPast")),9,P)])),n("div",D,[e.class_comments_count>0?(o(),a("span",F,[l(d,{to:s.$path("comments")+"/"+e.class_id},{default:i(()=>[r(t(e.class_comments_count)+" "+t(s.$tc("comment",e.class_comments_count).toLowerCase()),1)]),_:2},1032,["to"])])):(o(),a("span",R,[l(d,{to:s.$path("comments")+"/"+e.class_id},{default:i(()=>[r(t(s.$t("writeComment")),1)]),_:1},8,["to"])]))])])):e.type==="private"?(o(),a("div",U,[e.private_lesson_comments_count>0?(o(),a("span",A,[l(d,{to:s.$path("private-lesson-discussion")+"/"+e.id},{default:i(()=>[r(t(e.private_lesson_comments_count)+" "+t(s.$tc("comment",e.private_lesson_comments_count).toLowerCase()),1)]),_:2},1032,["to"])])):(o(),a("span",E,[l(d,{to:s.$path("private-lesson-discussion")+"/"+e.id},{default:i(()=>[r(t(s.$t("writeComment")),1)]),_:1},8,["to"])]))])):c("",!0)])}),256))]),l(w,{makeup:!0,shown:_.switchModalShown,visit:_.selectedVisit,onClosed:m.hideSwitchModal,onRefresh:m.redirectToUpcomingClasses},null,8,["shown","visit","onClosed","onRefresh"])])}const Q=b(S,[["render",W]]);export{Q 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.