1import{_ as x}from"./BYrUm7Ur.js";import{_ as D,a as v,b as k}from"./BSyZKtYD.js";import{u as C}from"./BpAYdCVG.js";import{d as T,N,K as I,c as V,w as A,U as B,R as $,a as S,y as l,u as t,o as n,k as r,p as u,l as q,V as z,G as E}from"./BHR2SXiT.js";import{a as K,b as P}from"./DLl_eGw7.js";import{u as R}from"./D0oJfAff.js";import{s as U}from"./CYPwwazp.js";import"./C2K-CSx0.js";import"./pYhbs1cJ.js";import"./CQgxRjYS.js";import"./CrZwRRPN.js";import"./Dqtw0Roq.js";import"./BrCRJHDW.js";import"./Bv5n_oNE.js";import"./NgBfnVcJ.js";import"./DUajTyHk.js";import"./D-WVCWxd.js";import"./7Q4EjnLr.js";import"./_xe8FD64.js";import"./BfTYdIT4.js";import"./YHzIsOoj.js";import"./_yufcFR_.js";try{(function(){var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},s=new a.Error().stack;s&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[s]="935aa8d4-7707-466a-bd8f-c7f0fbba2f9b",a._sentryDebugIdIdentifier="sentry-dbid-935aa8d4-7707-466a-bd8f-c7f0fbba2f9b")})()}catch{}const j={key:0,class:"teacher-profile w-full flex min-h-screen flex-col relative bg-black-75 md:bg-white z-1 overflow-hidden"},G={class:"w-full bg-black-75 md:px-92 md:py-40"},H={class:"w-full mx-auto flex flex-col md:flex-row md:items-start md:gap-64",style:{"max-width":"1124px"}},L={class:"teacher-content-container w-full md:pb-56"},M={class:"w-full mx-auto",style:{"max-width":"1124px"}},F={class:"teacher-main-content w-full flex flex-col gap-8 mt-8"},J=T({__name:"[teacher_slug]",async setup(a){let s,h;const{$api:d}=N(),c=I(),m=C(),_=V(()=>`teacher-${c.params.teacher_slug}`),{data:e,pending:f}=([s,h]=A(async()=>z(_,async()=>{const o=c.params.teacher_slug;try{const[p,i]=await Promise.all([K(d,o),P(d,o)]);return{teacherDetails:p,teacherCourses:i}}catch{return{teacherDetails:null,teacherCourses:[]}}},{watch:[()=>c.query.page]})),s=await s,h(),s);function b(o){m.$patch({teacherName:o?"":e.value?.teacherDetails?.full_name||""})}return B(()=>m.$patch({teacherName:""})),e.value&&e.value?.teacherDetails&&$(R(e.value.teacherDetails.meta_data,!1,()=>U(e.value.teacherDetails,c.path))),(o,p)=>{const i=x,g=D,w=v,y=k;return t(e)?.teacherDetails?(n(),S("section",j,[r("div",G,[r("div",H,[t(e).teacherDetails.image_url?(n(),u(i,{key:0,class:"hidden md:block w-160 h-160 min-w-160 rounded-full overflow-hidden","custom-class":"w-160 h-160 object-cover aspect-square rounded-full","skeleton-custom-class":"w-160 h-160 rounded-full",loading:"lazy",title:"maktabkhooneh-teacher",alt:t(e).teacherDetails.full_name,width:160,height:160,src:t(e).teacherDetails.image_url},null,8,["alt","src"])):l("",!0),q(g,{class:"w-full md:min-w-0 md:flex-1","teacher-details":t(e).teacherDetails,onNameVisibilityChange:b},null,8,["teacher-details"])])]),r("div",L,[r("div",M,[r("div",F,[t(e).teacherDetails?.description?(n(),u(w,{key:0,"teacher-details":t(e).teacherDetails},null,8,["teacher-details"])):l("",!0),t(e).teacherCourses.length?(n(),u(y,{key:1,"teacher-courses":t(e).teacherCourses,"teacher-details":t(e).teacherDetails,"is-loading":t(f)},null,8,["teacher-courses","teacher-details","is-loading"])):l("",!0)])])])])):l("",!0)}}}),fe=E(J,[["__scopeId","data-v-29d0a6fa"]]);export{fe 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.