1import{d as I,h as S,I as w,O as P,L as R,J as B,P as j,H as q,a as n,o,x as g,u as e,F as b,l as y,m as _,Q as z,R as k,k as x,j as D,z as M}from"./PT-rzF8Y.js";import{_ as N}from"./B6KF80zu.js";import{u as $,a as O}from"./Dq--eZuk.js";import{C as T}from"./CrQNDdoN.js";import{S as A}from"./D6SwQOSS.js";import{S as L}from"./-o-4cUk1.js";import{S as V}from"./DWoeE3E0.js";import{u as E}from"./BG05NUQ8.js";import{a as F}from"./DyXYRGbu.js";import"./lBTRcVEB.js";import"./35A4dlO9.js";import"./BUEGLFtH.js";import"./B_QxZoss.js";import"./BAp0j5io.js";import"./DVZKIcOr.js";import"./K1f122Tk.js";import"./BBBzIorB.js";import"./KbTb0xe6.js";import"./8G7dC_c3.js";import"./D8gvQTxJ.js";try{(function(){var a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new a.Error().stack;r&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[r]="88ebdba3-f8d9-486b-9062-e56ab68cdbf3",a._sentryDebugIdIdentifier="sentry-dbid-88ebdba3-f8d9-486b-9062-e56ab68cdbf3")})()}catch{}const G={class:"flex-1 !px-0 md:!px-20 md:!pr-56 relative"},H={key:0,class:"text-dark text-2xl font-semibold"},J={key:2,class:"flex flex-col mt-64 items-center gap-12 text-center"},Q={key:3,class:"flex items-center mt-40 text-center justify-center mb-20 pb-20"},fe=I({__name:"recommended-courses",setup(a){const r=S(!1),p=w([]);let i=P({page:1,count:0,previous:null,next:null,queries:{},pageSize:10,totalPage:0});const{$api:h}=R(),c=B(),m=j("blockRef"),{onBlockObserve:v,trackBlockInteraction:f}=$("dashboard_recommended");return E(m,{},v),q(async()=>{try{r.value=!0;const s={...c.query},t=await F(h,s),u=c.query.page?+c.query.page:1;p.value=t.results,i={count:t.count,totalPage:Math.ceil(t.count/8),next:t.next,pageSize:8,previous:t.previous,page:u,queries:c.query}}catch{}finally{r.value=!1}}),(s,t)=>{const u=M,C=N;return o(),n("section",G,[s.$device.isMobile?g("",!0):(o(),n("h2",H," Ø¯ÙØ±ÙâÙØ§Û Ù¾ÛØ´ÙÙØ§Ø¯Û Ù
Ù ")),e(r)||e(p)?.length?(o(),n("div",{key:1,ref_key:"blockRef",ref:m,class:"flex flex-wrap justify-start gap-16 mt-24",onClickOnce:t[0]||(t[0]=(...l)=>e(f)&&e(f)(...l))},[e(r)?(o(!0),n(b,{key:1},y(Array(8).fill(0),(l,d)=>(o(),_(k(s.$device.isMobile?V:L),{key:d,index:d},null,8,["index"]))),128)):(o(!0),n(b,{key:0},y(e(p),(l,d)=>(o(),_(k(s.$device.isMobile?A:T),{key:l.id,course:l,index:("helperPaginatedIndex"in s?s.helperPaginatedIndex:e(z))(d,e(i).page,e(i).pageSize),container:"dashboard_recommended"},null,8,["course","index"]))),128))],544)):(o(),n("div",J,[x(u,{name:"profile-new-recommended",color:e(O),size:96},null,8,["color"]),t[1]||(t[1]=D("h4",{class:"text-lightgrey"}," Ø¯Ø±ØØ§Ù ØØ§Ø¶Ø± Ø¯ÙØ±Ù Ù¾ÛØ´ÙÙØ§Ø¯ÛâØ§Û Ø¨Ø±Ø§Û Ø´Ù
ا ÙØ¬Ùد ÙØ¯Ø§Ø±Ø¯ ",-1))])),e(i).totalPage&&e(i).totalPage>1?(o(),n("div",Q,[x(C,{"paginator-object":e(i)},null,8,["paginator-object"])])):g("",!0)])}}});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.