1import{_ as x}from"./BUEGLFtH.js";import{_ as D,a as v,b as k}from"./DPad6owi.js";import{d as C,L as N,J as I,w as $,U as q,a as T,x as r,u as o,o as l,j as i,m as d,k as V,Y as _,V as A,E as B}from"./PT-rzF8Y.js";import{u as j}from"./8G7dC_c3.js";import"./Dq--eZuk.js";import"./35A4dlO9.js";import"./DVZKIcOr.js";import"./BG05NUQ8.js";import"./ByEwjjPY.js";import"./vG3RDWy7.js";import"./6Xnqul5z.js";import"./DyXYRGbu.js";import"./BAp0j5io.js";import"./D6SwQOSS.js";import"./BBBzIorB.js";import"./KbTb0xe6.js";import"./D8gvQTxJ.js";import"./B_QxZoss.js";import"./lBTRcVEB.js";import"./K1f122Tk.js";import"./B6KF80zu.js";try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="c507fede-3792-411b-aa2c-f5e8f795859b",t._sentryDebugIdIdentifier="sentry-dbid-c507fede-3792-411b-aa2c-f5e8f795859b")})()}catch{}const O=(t,a)=>t(`/organization/${a}/`),S=(t,a,s={})=>t(`/organization/${a}/courses`,{params:s}),E={key:0,class:"teacher-profile w-full flex min-h-screen flex-col relative bg-black-75 md:bg-white z-1 overflow-hidden"},P={class:"w-full bg-black-75 md:px-92 md:py-40"},L={class:"w-full mx-auto flex flex-col md:flex-row md:items-start md:gap-64",style:{"max-width":"1124px"}},R={class:"organization-content-container w-full md:pb-56"},U={class:"w-full mx-auto",style:{"max-width":"1124px"}},J={class:"organization-main-content w-full flex flex-col gap-8 mt-8"},M=C({__name:"[organization_slug]",async setup(t){let a,s;const{$api:m}=N(),c=I(),p=j(),u=c.params.organization_slug,{data:e,pending:f}=([a,s]=$(async()=>A(u,async()=>{try{const[n,g]=await Promise.all([O(m,u),S(m,u,{...c.query,page_size:"12"})]);return{organizationDetails:n,organizationCourses:g}}catch{return{organizationDetails:null,organizationCourses:{}}}},{watch:[()=>c.query.page]})),a=await a,s(),a);function h(n){p.$patch({teacherName:n?"":e.value?.organizationDetails?.name||""})}return q(()=>p.$patch({teacherName:""})),(n,g)=>{const z=x,y=D,b=v,w=k;return o(e)?.organizationDetails?(l(),T("section",E,[i("div",P,[i("div",L,[o(e).organizationDetails.image?(l(),d(z,{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-organization",alt:o(e).organizationDetails.name,width:160,height:160,src:o(e).organizationDetails.image},null,8,["alt","src"])):r("",!0),V(y,{class:"w-full md:min-w-0 md:flex-1","teacher-details":o(e).organizationDetails,onNameVisibilityChange:h},null,8,["teacher-details"])])]),i("div",R,[i("div",U,[i("div",J,[o(e).organizationDetails?.description?(l(),d(b,{key:0,"teacher-details":o(e).organizationDetails},null,8,["teacher-details"])):r("",!0),o(e).organizationCourses.results?.length?(l(),d(w,{key:1,"teacher-courses":o(e).organizationCourses.results,"teacher-details":o(e).organizationDetails,"is-loading":o(f),"paginator-object":{queries:(n._.provides[_]||n.$route).query,page:(n._.provides[_]||n.$route).query.page||1,pageSize:12,totalPage:Math.ceil(o(e).organizationCourses.count/12),next:o(e).organizationCourses.next,previous:o(e).organizationCourses.previous,count:o(e).organizationCourses.count}},null,8,["teacher-courses","teacher-details","is-loading","paginator-object"])):r("",!0)])])])])):r("",!0)}}}),me=B(M,[["__scopeId","data-v-bc3539f3"]]);export{me 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.