PageSourceSearch

https://www.bergesinstitutespanish.com/build/assets/PersonProfile-BhGuXBwA.js

js bergesinstitutespanish.com collected 2026-10-02 03:01:49 UTC 4,218 bytes, 1 lines download raw bytes

1import{R as y}from"./Reviews-C2cOQMZa.js";import{L as w}from"./Loader-Baqe17Om.js";import{B as k}from"./BookableClass-CG4tRiWu.js";import{B as P}from"./BookableCourse-wi32ihrj.js";import{r as g,o as r,c as i,f as c,a as s,t as n,w as L,j as D,F as m,e as d,b as a,d as B}from"./vue-router-CSEP06dd.js";import{_ as x}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./_commonjsHelpers-_d1bhYXs.js";import"./ClassInfo-B9tfuNTI.js";import"./CourseInfo-WHQjPdus.js";import"./SwitchClassModal-h2JZUcFF.js";import"./Modal-TGyeVepA.js";import"./PriceDisplay-YTHL-zwA.js";import"./index-CNRiTe65.js";const O={components:{BookableCourse:P,BookableClass:k,Reviews:y,Loader:w},data(){return{timezone:"",ready:!1,user:null,level_slug:null,level:null,courses:[],pricingOption:null,status:"",currentPage:0,totalPages:0}},mounted(){this.timezone=this.guessTimezone(),axios.get("/single-instructor/"+this.$route.params.slug).then(t=>{this.user=t.data.data,this.addTitleAndDescription(this.user.first_name+" "+this.user.last_name,this.$t("descriptionPersonProfile",{firstname:this.user.first_name,lastname:this.user.last_name})),this.ready=!0,this.$root.levels?this.getDefaultData():this.getLevels(()=>this.getDefaultData())})},methods:{getDefaultData(){this.status="loading",axios.get("/levels/"+this.grammarLevels()[0].slug).then(t=>{this.level=t.data.data,this.level_slug=this.level.slug,this.getCourses()})},getCourses(){let t="/all-courses?page=1&instructor_id="+this.user.id+"&level_id="+this.level.id;axios.get(t).then(o=>{this.currentPage++,this.totalPages=o.data.meta.last_page,this.courses=o.data.data,this.courses.forEach(u=>{u.classes.forEach(p=>this.addFrontEndClassProperties(p))}),this.getAuthToken()?this.status="":axios.get("/pricing-options/courses?currency="+this.getCurrency()).then(u=>{this.pricingOption=this.levelPricingOption(u.data.data,this.level),this.status=""})})},clearCourses(){this.courses=[],this.currentPage=0,this.totalPages=0,this.pricingOption=null},onLevelChange(){this.status="loading",axios.get("/levels/"+this.level_slug).then(t=>{this.clearCourses(),this.level=t.data.data,this.getCourses()})}}},z={key:0},M={class:"p-4 border-bottom"},T={class:"h3 mb-0"},E={class:"p-4 border-bottom"},V={class:"mb-4"},F=["src","alt"],N=["innerHTML"],R={class:"p-4 border-bottom"},S={class:"h4 my-1"},A={key:0},H={class:"p-4 border-bottom"},j=["label"],I=["value"],U={class:"mb-2"},q={href:"",class:"small"},G={key:3,class:"p-4",style:{height:"600px"}};function J(t,o,u,p,e,h){const _=g("loader"),b=g("reviews"),C=g("bookable-course");return r(),i("div",null,[c(_,{show:!e.ready},null,8,["show"]),e.ready?(r(),i("div",z,[s("div",M,[s("h1",T,n(e.user.first_name)+" "+n(e.user.last_name),1),s("div",null,[c(b,{reviewable:e.user},null,8,["reviewable"])])]),s("div",E,[s("div",V,[s("img",{src:e.user.photo,class:"rounded-circle border",style:{width:"200px",height:"auto"},width:"200",height:"200",alt:e.user.name+" "+e.user.last_name+", Spanish language instructor at Berges Institute"},null,8,F)]),s("div",{class:"w-100",innerHTML:e.user.bio},null,8,N)]),s("div",R,[s("h2",S,n(t.$t("upcomingCourses")),1)]),this.$root.levels?(r(),i("div",A,[s("div",H,[L(s("select",{class:"form-select","onUpdate:modelValue":o[0]||(o[0]=l=>e.level_slug=l),onChange:o[1]||(o[1]=(...l)=>h.onLevelChange&&h.onLevelChange(...l))},[(r(!0),i(m,null,d(t.$root.levels,(l,v)=>(r(),i("optgroup",{key:v,label:v},[(r(!0),i(m,null,d(l,f=>(r(),i("option",{key:e.level_slug,value:f.slug},n(f.name),9,I))),128))],8,j))),128))],544),[[D,e.level_slug]])])])):a("",!0),e.status?a("",!0):(r(!0),i(m,{key:1},d(e.courses,l=>(r(),i("div",U,[c(C,{course:l,timezone:e.timezone,level:e.level,pricingOption:e.pricingOption},null,8,["course","timezone","level","pricingOption"])]))),256)),c(_,{show:e.status,style:{height:"600px"}},null,8,["show"]),!e.status&&e.courses.length>0&&e.currentPage<e.totalPages?(r(),i("div",{key:2,class:"p-4",onClick:o[2]||(o[2]=B((...l)=>h.getCourses&&h.getCourses(...l),["prevent"]))},[s("a",q,n(t.$t("loadMore")),1)])):a("",!0),!e.status&&e.courses.length===0?(r(),i("div",G,n(t.$t("noResults")),1)):a("",!0),o[3]||(o[3]=s("div",{class:"mb-5"},null,-1))])):a("",!0)])}const le=x(O,[["render",J]]);export{le 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.