PageSourceSearch

https://studentinsight.co.il/static/js/6402.458af767.chunk.js

js studentinsight.co.il collected 2026-10-02 01:56:17 UTC 165,865 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunkcourse_review_frontend=globalThis.webpackChunkcourse_review_frontend||[]).push([[6402],{6402(e,s,i){i.r(s),i.d(s,{default:()=>Hs});var t=i(9950),r=i(39375),n=i(40859),l=i(94073),a=i(40011),o=i(61056),c=i(8243),d=i(48207),u=i(13578),m=i(3278),h=i(73353),p=i(65253),x=i(49208),v=i(71057),g=i(86433),j=i(42074),f=i(34911),b=(i(20649),i(2761)),y=i(44414);const N=e=>{let{starredCourses:s,onStarClick:i}=e;const r=(0,t.useRef)(null);return(0,t.useEffect)(()=>{r.current&&(0,b.Ay)(r.current)},[s]),s?s&&i&&0!==s.length?(0,y.jsxs)("div",{children:[(0,y.jsx)("div",{className:"card-header bg-c-secondary",children:(0,y.jsx)("h4",{className:"card-title mb-0",children:"\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05de\u05d5\u05e2\u05d3\u05e4\u05d9\u05dd"})}),(0,y.jsx)("ul",{ref:r,className:"list-group list-group-flush starred-list",children:s.map(e=>(0,y.jsxs)(j.N_,{to:`/course/${e._id}`,className:"list-group-item list-group-item-action d-flex justify-content-between align-items-center",style:{cursor:"pointer"},children:[e.name,(0,y.jsx)("i",{className:"fa fa-star",onClick:s=>{s.preventDefault(),s.stopPropagation(),i(e._id)}})]},e._id))})]}):null:(0,y.jsx)(f.A,{count:10})};var C=i(80342),w=i(13675),S=i(44767),A=i(38845),k=i(96841),z=i(13301),_=i(97937),$=i(33341),E=i(56790),I=i(90661),M=i(37488),q=i(37841),P=i(38284),F=i(81317),B=i(8966),T=i(5216),L=i(28429);const H=e=>{let{children:s}=e;const{user:i}=(0,t.useContext)(r.R),n=null===i||void 0===i?void 0:i.isPremium,l=(0,L.Zp)(),a=e=>t.Children.map(e,e=>{if(!t.isValidElement(e))return e;let s={};return"string"!==typeof e.type||"input"!==e.type&&"select"!==e.type&&"textarea"!==e.type&&"button"!==e.type?e.props.children&&(s.children=a(e.props.children)):s={disabled:!0},(0,t.cloneElement)(e,s)});return(0,y.jsx)(B.A,{className:"premium-accordion mb-4",flush:!0,children:(0,y.jsxs)(B.A.Item,{eventKey:"0",children:[(0,y.jsx)(B.A.Header,{children:"\u05de\u05e1\u05e0\u05e0\u05d9\u05dd \u05de\u05ea\u05e7\u05d3\u05de\u05d9\u05dd"}),(0,y.jsx)(B.A.Body,{children:(0,y.jsx)(T.A.Body,{className:"position-relative p-0",children:n?(0,y.jsx)("div",{className:"premium-grid ",style:{gap:"15px"},children:s}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"premium-overlay",children:[(0,y.jsx)("p",{className:"m-0",children:"\u05db\u05d3\u05d9 \u05dc\u05d4\u05e9\u05ea\u05de\u05e9 \u05d1\u05de\u05e1\u05e0\u05e0\u05d9\u05dd \u05de\u05ea\u05e7\u05d3\u05de\u05d9\u05dd \u05e2\u05dc\u05d9\u05da \u05dc\u05d4\u05d9\u05d5\u05ea \u05de\u05e9\u05ea\u05de\u05e9 \u05ea\u05d5\u05e8\u05dd"}),(0,y.jsx)("button",{className:"upgrade-button mt-3",onClick:()=>l("/upgrade"),children:"\u05ea\u05e8\u05de\u05d5 \u05db\u05e2\u05ea"})]}),(0,y.jsx)("div",{className:"premium-grid blurred-content",style:{gap:"15px"},children:a(s)})]})})})]})})};var Y=i(15460);const R=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(Boolean).map(e=>"object"===typeof e&&e.value?e:{value:String(e),label:String(e)})},O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const i=new Set;return[...e,...s].filter(e=>!(null===e||void 0===e||!e.value||i.has(e.value))&&(i.add(e.value),!0))},D=R(["\u05d0'","\u05d1'","\u05d0' \u05d0\u05d5 \u05d1'","\u05e7\u05d5\u05e8\u05e1 \u05e7\u05d9\u05e5","\u05e7\u05d5\u05e8\u05e1 \u05e9\u05e0\u05ea\u05d9"]),U=R(["\u05dc\u05dc\u05d0 \u05d1\u05d7\u05d9\u05e0\u05d4","\u05e4\u05e8\u
105d5\u05d9\u05e7\u05d8","\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e1\u05de\u05d9\u05e0\u05e8\u05d9\u05d5\u05e0\u05d9\u05ea","\u05d1\u05d7\u05d9\u05e0\u05d4 \u05d1\u05db\u05ea\u05d1","\u05e2\u05d1\u05d5\u05d3\u05d4 \u05d1\u05db\u05ea\u05d1","\u05e2. \u05e1\u05de\u05d9\u05e0\u05e8\u05d9\u05d5\u05df \u05de\u05e6\u05d5\u05de\u05e6\u05de\u05ea","\u05e8\u05e4\u05e8\u05d8","\u05de\u05e2\u05d1\u05d3\u05d4","\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e9\u05d5\u05d8\u05e4\u05ea","\u05de\u05d1\u05d7\u05df \u05d1\u05d9\u05ea","\u05e4\u05e8\u05d5\u05e1\u05de\u05d9\u05e0\u05e8\u05d9\u05d5\u05df"]),G=R(["\u05d1\u05d5\u05d2\u05e8","\u05de\u05d5\u05e1\u05de\u05da"]),V=R(["\u05e2\u05d1\u05e8\u05d9\u05ea","\u05d0\u05e0\u05d2\u05dc\u05d9\u05ea","\u05d0\u05e0\u05d2\u05dc\u05d9\u05ea \u05d5\u05e2\u05d1\u05e8\u05d9\u05ea","\u05e2\u05e8\u05d1\u05d9\u05ea","\u05e1\u05e4\u05e8\u05d3\u05d9\u05ea","\u05d0\u05d9\u05d8\u05dc\u05e7\u05d9\u05ea","\u05e8\u05d5\u05e1\u05d9\u05ea","\u05e4\u05d5\u05e8\u05d8\u05d5\u05d2\u05dc\u05d9\u05ea","\u05d8\u05d5\u05e8\u05e7\u05d9\u05ea","\u05dc\u05d0 \u05e6\u05d5\u05d9\u05df"]),J=[{value:"available",label:"\u05e0\u05dc\u05de\u05d3 \u05d4\u05e9\u05e0\u05d4"},{value:"unavailable",label:"\u05dc\u05d0 \u05e0\u05dc\u05de\u05d3 \u05d4\u05e9\u05e0\u05d4"}],K=[{value:"rating",label:"\u05d3\u05d9\u05e8\u05d5\u05d2"},{value:"reviews",label:"\u05de\u05e1\u05e4\u05e8 \u05d1\u05d9\u05e7\u05d5\u05e8\u05d5\u05ea"},{value:"points",label:'\u05e0"\u05d6'},{value:"averageGrade",label:"\u05e6\u05d9\u05d5\u05df \u05de\u05de\u05d5\u05e6\u05e2"},{value:"difficulty",label:"\u05e7\u05d5\u05e9\u05d9"},{value:"courseSymbol",label:"\u05de\u05e1\u05e4\u05e8 \u05e7\u05d5\u05e8\u05e1"},{value:"name",label:"\u05e9\u05dd \u05e7\u05d5\u05e8\u05e1"}],W=[{value:"desc",label:"\u05d2\u05d1\u05d5\u05d4 \u05dc\u05e0\u05de\u05d5\u05da"},{value:"asc",label:"\u05e0\u05de\u05d5\u05da \u05dc\u05d2\u05d1\u05d5\u05d4"}],Z=Object.entries(Y.p0).map(e=>{let[s,i]=e;return{value:s,label:i}}),Q=e=>{let{departments:s,filters:i,setFilters:l,setPage:a,setSearchTerm:o,totalCourses:d,variant:u,academicYear:m}=e;const{user:h}=(0,t.useContext)(r.R),[x,v]=(0,t.useState)({}),[g,j]=(0,t.useState)(!1),[f,b]=(0,t.useState)(()=>({departments:R(s),faculties:[],semesters:D,examTypes:U,degreeTypes:G,courseLanguages:V,campuses:[]})),N="home"===u,C=(null===h||void 0===h?void 0:h.isPremium)&&(!(null!==h&&void 0!==h&&h.premiumExpiresAt)||new Date(h.premiumExpiresAt)>new Date);(0,t.useEffect)(()=>{if(!g)return;const e=e=>{"Escape"===e.key&&j(!1)};return document.body.classList.add("course-filter-sheet-open"),window.addEventListener("keydown",e),()=>{document.body.classList.remove("course-filter-sheet-open"),window.removeEventListener("keydown",e)}},[g]),(0,t.useEffect)(()=>{b(e=>({...e,departments:O(e.departments,R(s))}))},[s]),(0,t.useEffect)(()=>{const e=new AbortController;return(async()=>{try{const s=m?`?year=${m}`:"",i=await fetch(`https://api.studentinsight.co.il/courses/filter-options${s}`,{headers:{Authorization:`Bearer ${localStorage.getItem("jwtToken")}`},signal:e.signal});if(!i.ok)return;const t=await i.json();b(e=>({departments:O(R(t.departments),e.departments),faculties:O(R(t.faculties),e.faculties),semesters:O(R(t.semesters),D),examTypes:O(R(t.examTypes),U),degreeTypes:O(R(t.degreeTypes),G),courseLanguages:O(R(t.courseLanguages),V),campuses:O(R(t.campuses),e.campuses)}))}catch(s){"AbortError"!==s.name&&console.error("Error loading course filter options:",s)}})(),()=>e.abort()},[m]),(0,t.useEffect)(()=>{0===Object.keys(i).length&&v({})},[i]);const w=(0,t.useMemo)(()=>(0,Y.Wb)(i,f),[i,f]),S=(0,t.useMemo)(()=>(0,Y.gS)(i,f),[i,f]),A=e=>{l(s=>{const i="function"===typeof e?e(s):e;return(0,Y.Hl)(i)}),a(1)},k=(e,s)=>{A(i=>({...i,[e]:s}))},B=()=>{l({}),o(""),v({}),a(1)},T=e=>{let{id:s,label:t,options:r,placeholder:n,isMulti:l=!0,disabled:a=!1}=e;const o=i[s]||("sortBy"===s?"reviews":"sortOrder"===s?"desc":void 0),c=l?r.filter(e=>(o||[]).includes(e.value)):r.find(e=>e.value===o)||null;return(0,y.jsxs)("div",{className:"filter "+(N?"home-filter-field":""),children:[(0,y.jsx)("label",{htmlFor:s,children:t}),(0,y.jsx)(z.Ay,{menuPortalTarget:document.body,styles:{menuPortal:e=>({...e,zIndex:10030})},inputId:s,className:"searchable-select "+(N?"home-searchable-select":""),classNamePrefix:"searchable-select",placeholder:n||"\u05d1\u05d7\u05e8\u05d5",value:c,onChange:e=>{const i=l?(e||[]).map(e=>e.value):(null===e||void 0===e?void 0:e.value)||"";k(s,i)},options:r,isClearable:!0,isDisabled:a,isMulti:l,isSearchable:!0})]})},L=function(e,s){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,y.jsxs)("div",{className:"filter d-flex flex-column align-items-start justify-content-start "+(N?"home-filter-field home-filter-switch":""),children:[(0,y.jsx)("label",{htmlFor:e,children:s}),(0,y.jsx)("div",{className:"form-check form-switch",children:(0,y.jsx)("input",{checked:Boolean(i[e]),className:"form-check-input",disabled:t,id:e,onChange:s=>k(e,s.target.checked),role:"switch",type:"checkbox"})})]})},Q=function(e){var s,t;let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Y.Y4[e],l=x[e]||[null!==(s=i[n.minKey])&&void 0!==s?s:n.defaultMin,null!==(t=i[n.maxKey])&&void 0!==t?t:n.defaultMax];return(0,y.jsxs)("div",{className:"filter d-flex justify-content-start align-items-start flex-column "+(N?"home-filter-field home-filter-range":""),children:[(0,y.jsx)("label",{children:`${n.label}: ${l[0]}-${l[1]}`}),(0,y.jsx)("div",{className:"range-container",children:(0,y.jsx)(F.Ay,{disabled:r,marks:[{value:n.defaultMin,label:n.defaultMin.toString()},{value:n.defaultMax,label:n.defaultMax.toString()}],max:n.defaultMax,min:n.defaultMin,onChange:(s,i)=>v(s=>({...s,[e]:i})),onChangeCommitted:()=>{const s=x[e]||l;A(e=>({...e,[n.minKey]:s[0],[n.maxKey]:s[1]}))},step:"courseDifficulty"===e?.5:1,sx:{color:N?"#2458d3":"#5e49e2",margin:"auto",marginBottom:"1em","& .MuiSl
1ider-thumb":{color:"#fff",border:"2px solid "+(N?"#2458d3":"#5e49e2")}},value:l,valueLabelDisplay:"auto"})})]})},X=function(e,s,t){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,y.jsxs)("div",{className:"filter d-flex justify-content-start align-items-start flex-column "+(N?"home-filter-field":""),children:[(0,y.jsx)("label",{htmlFor:e,children:s}),(0,y.jsx)("input",{className:"form-control",disabled:r,id:e,min:"0",onChange:s=>k(e,s.target.value),placeholder:t,type:"number",value:i[e]||""})]})},ee=(e,s)=>(0,y.jsxs)("div",{className:"filter d-flex justify-content-start align-items-start flex-column "+(N?"home-filter-field":""),children:[(0,y.jsx)("label",{htmlFor:e,children:s}),(0,y.jsx)("input",{className:"form-control",id:e,onChange:s=>k(e,s.target.value),type:"time",value:i[e]||""})]}),se=(e,s,i)=>(0,y.jsxs)("details",{className:"home-filter-details",children:[(0,y.jsx)("summary",{children:(0,y.jsxs)("span",{className:"home-filter-section-title",children:[s,(0,y.jsx)("span",{children:e})]})}),(0,y.jsx)("div",{className:"filters "+(N?"home-filters-grid":""),children:i})]});return(0,y.jsxs)("div",{className:N?"home-filter-panel "+(g?"is-sheet-open":""):void 0,"data-onboarding-target":N?"course-filters":void 0,children:[N&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("button",{className:"home-mobile-filter-trigger",onClick:()=>j(!0),type:"button","aria-haspopup":"dialog",children:[(0,y.jsxs)("span",{children:[(0,y.jsx)($.A,{size:18}),"\u05de\u05e1\u05e0\u05e0\u05d9\u05dd"]}),(0,y.jsx)("strong",{children:S>0?`${S} \u05e4\u05e2\u05d9\u05dc\u05d9\u05dd`:`${Number(d||0).toLocaleString("he-IL")} \u05ea\u05d5\u05e6\u05d0\u05d5\u05ea`})]}),(0,y.jsx)("button",{className:"home-mobile-filter-backdrop",onClick:()=>j(!1),type:"button","aria-label":"\u05e1\u05d2\u05d9\u05e8\u05ea \u05d4\u05de\u05e1\u05e0\u05e0\u05d9\u05dd",tabIndex:g?0:-1})]}),(0,y.jsxs)("div",{className:N?"home-filter-sheet":void 0,role:N&&g?"dialog":void 0,"aria-modal":N&&g?"true":void 0,"aria-labelledby":N?"course-filter-sheet-title":void 0,children:[N&&(0,y.jsxs)("div",{className:"home-mobile-filter-sheet-head",children:[(0,y.jsx)("span",{className:"home-mobile-filter-handle","aria-hidden":"true"}),(0,y.jsxs)("div",{children:[(0,y.jsx)("strong",{id:"course-filter-sheet-title",children:"\u05e1\u05d9\u05e0\u05d5\u05df \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd"}),(0,y.jsxs)("span",{children:[Number(d||0).toLocaleString("he-IL")," \u05ea\u05d5\u05e6\u05d0\u05d5\u05ea"]})]}),(0,y.jsx)("button",{onClick:()=>j(!1),type:"button","aria-label":"\u05e1\u05d2\u05d9\u05e8\u05ea \u05d4\u05de\u05e1\u05e0\u05e0\u05d9\u05dd",children:(0,y.jsx)(E.A,{size:20})})]}),N?(0,y.jsxs)("div",{className:"home-filter-heading",children:[(0,y.jsxs)("div",{className:"home-section-title",children:[(0,y.jsx)($.A,{size:18}),(0,y.jsxs)("div",{children:[(0,y.jsx)("h3",{children:"\u05e1\u05d9\u05e0\u05d5\u05df \u05d7\u05db\u05dd"}),(0,y.jsx)("p",{children:"\u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05ea\u05de\u05e7\u05d3 \u05dc\u05e4\u05d9 \u05de\u05e1\u05dc\u05d5\u05dc, \u05d6\u05de\u05d9\u05e0\u05d5\u05ea, \u05e2\u05d5\u05de\u05e1 \u05d5\u05e0\u05ea\u05d5\u05e0\u05d9 \u05e7\u05d4\u05d9\u05dc\u05d4."})]})]}),(0,y.jsxs)("div",{className:"home-filter-summary",children:[(0,y.jsx)("span",{className:"home-filter-count",children:S>0?`${S} \u05e1\u05d9\u05e0\u05d5\u05e0\u05d9\u05dd \u05e4\u05e2\u05d9\u05dc\u05d9\u05dd`:"\u05dc\u05dc\u05d0 \u05e1\u05d9\u05e0\u05d5\u05df \u05e4\u05e2\u05d9\u05dc"}),Number.isFinite(d)&&(0,y.jsxs)("span",{className:"home-filter-count",children:[d.toLocaleString("he-IL")," \u05ea\u05d5\u05e6\u05d0\u05d5\u05ea"]}),S>0&&(0,y.jsxs)(_.A,{className:"home-reset-button home-reset-button-summary",onClick:B,type:"button",children:[(0,y.jsx)(I.A,{size:15})," \u05d0\u05d9\u05e4\u05d5\u05e1 (",S,")"]})]})]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("h6",{className:"text-muted",children:"\u05e1\u05d9\u05e0\u05d5\u05df"}),(0,y.jsx)("p",{className:"text-muted",children:"\u05e0\u05d9\u05ea\u05df \u05dc\u05d7\u05e4\u05e9 \u05d1\u05e4\u05d9\u05dc\u05d8\u05e8\u05d9\u05dd \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d4\u05e7\u05dc\u05d3\u05d4"})]}),w.length>0&&(0,y.jsx)("div",{className:"home-active-filters","aria-label":"\u05e1\u05d9\u05e0\u05d5\u05e0\u05d9\u05dd \u05e4\u05e2\u05d9\u05dc\u05d9\u05dd",children:w.map(e=>(0,y.jsxs)("button",{className:"home-filter-chip",onClick:()=>{return s=e.clearKeys,void A(e=>{const i={...e};
1return s.forEach(e=>{delete i[e]}),i});var s},type:"button",children:[(0,y.jsx)("span",{children:e.label}),(0,y.jsx)(E.A,{size:14})]},e.key))}),(0,y.jsxs)("div",{className:"home-filter-sections",children:[(ie="\u05e1\u05d9\u05e0\u05d5\u05df \u05de\u05d4\u05d9\u05e8",te=(0,y.jsx)(p.A,{size:16}),re=(0,y.jsxs)(y.Fragment,{children:[T({id:"departments",label:"\u05de\u05d7\u05dc\u05e7\u05d5\u05ea",options:f.departments,placeholder:"\u05d1\u05d7\u05e8\u05d5 \u05de\u05d7\u05dc\u05e7\u05d5\u05ea"}),T({id:"semesters",label:"\u05e1\u05de\u05e1\u05d8\u05e8\u05d9\u05dd",options:f.semesters,placeholder:"\u05d1\u05d7\u05e8\u05d5 \u05e1\u05de\u05e1\u05d8\u05e8\u05d9\u05dd"}),Q("points"),T({id:"available",label:"\u05d6\u05de\u05d9\u05e0\u05d5\u05ea",options:J,placeholder:"\u05db\u05dc \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd",isMulti:!1}),T({id:"sortBy",label:"\u05de\u05d9\u05d5\u05df \u05dc\u05e4\u05d9",options:K,placeholder:"\u05d1\u05e8\u05d9\u05e8\u05ea \u05de\u05d7\u05d3\u05dc",isMulti:!1}),T({id:"sortOrder",label:"\u05db\u05d9\u05d5\u05d5\u05df \u05de\u05d9\u05d5\u05df",options:W,placeholder:"\u05d2\u05d1\u05d5\u05d4 \u05dc\u05e0\u05de\u05d5\u05da",isMulti:!1}),!N&&(0,y.jsx)("div",{className:"filter d-flex flex-column align-items-start justify-content-end",children:(0,y.jsxs)(_.A,{className:"btn-c-secondary me-1 mb-1",onClick:B,type:"button",children:[(0,y.jsx)(I.A,{size:15})," \u05d0\u05d9\u05e4\u05d5\u05e1"," ",S>0?`(${S})`:""]})})]}),(0,y.jsxs)("section",{className:"home-filter-section",children:[(0,y.jsxs)("div",{className:"home-filter-section-title",children:[te,(0,y.jsx)("span",{children:ie})]}),(0,y.jsx)("div",{className:"filters "+(N?"home-filters-grid":""),children:re})]})),(0,y.jsxs)("div",{className:"home-filter-details-grid",children:[se("\u05ea\u05d7\u05d5\u05dd \u05d5\u05e9\u05e4\u05d4",(0,y.jsx)(n.A,{size:16}),(0,y.jsxs)(y.Fragment,{children:[T({id:"faculties",label:"\u05e4\u05e7\u05d5\u05dc\u05d8\u05d5\u05ea",options:f.faculties,placeholder:"\u05d1\u05d7\u05e8\u05d5 \u05e4\u05e7\u05d5\u05dc\u05d8\u05d5\u05ea"}),T({id:"degreeTypes",label:"\u05ea\u05d0\u05e8\u05d9\u05dd",options:f.degreeTypes,placeholder:"\u05d1\u05d7\u05e8\u05d5 \u05ea\u05d0\u05e8\u05d9\u05dd"}),T({id:"courseLanguages",label:"\u05e9\u05e4\u05d5\u05ea",options:f.courseLanguages,placeholder:"\u05d1\u05d7\u05e8\u05d5 \u05e9\u05e4\u05d5\u05ea"})]})),se("\u05de\u05e2\u05e8\u05db\u05ea \u05d5\u05d6\u05de\u05d9\u05e0\u05d5\u05ea",(0,y.jsx)(M.A,{size:16}),(0,y.jsxs)(y.Fragment,{children:[T({id:"campuses",label:"\u05e7\u05de\u05e4\u05d5\u05e1\u05d9\u05dd",options:f.campuses,placeholder:"\u05d1\u05d7\u05e8\u05d5 \u05e7\u05de\u05e4\u05d5\u05e1\u05d9\u05dd"}),T({id:"days",label:"\u05d9\u05de\u05d9 \u05dc\u05d9\u05de\u05d5\u05d3",options:Z,placeholder:"\u05d1\u05d7\u05e8\u05d5 \u05d9\u05de\u05d9\u05dd"}),ee("startTime","\u05de\u05e9\u05e2\u05d4"),ee("endTime","\u05e2\u05d3 \u05e9\u05e2\u05d4"),L("hasSchedule","\u05e2\u05dd \u05de\u05e2\u05e8\u05db\u05ea \u05e9\u05e2\u05d5\u05ea"),L("hasSyllabus","\u05e2\u05dd \u05e1\u05d9\u05dc\u05d1\u05d5\u05e1")]})),se("\u05d4\u05e2\u05e8\u05db\u05d4 \u05d5\u05d3\u05e8\u05d9\u05e9\u05d5\u05ea",(0,y.jsx)(q.A,{size:16}),(0,y.jsxs)(y.Fragment,{children:[T({id:"examTypes",label:"\u05e1\u05d5\u05d2\u05d9 \u05d4\u05e2\u05e8\u05db\u05d4",options:f.examTypes,placeholder:"\u05d1\u05d7\u05e8\u05d5 \u05e1\u05d5\u05d2\u05d9\u05dd"}),L("hasExams","\u05e2\u05dd \u05de\u05d5\u05e2\u05d3\u05d9 \u05d1\u05d7\u05d9\u05e0\u05d5\u05ea"),L("hasPrerequisites","\u05e2\u05dd \u05d3\u05e8\u05d9\u05e9\u05d5\u05ea \u05e7\u05d3\u05dd")]})),se("\u05e1\u05d2\u05dc",(0,y.jsx)(P.A,{size:16}),(0,y.jsx)(y.Fragment,{children:function(e,s,t){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return(0,y.jsxs)("div",{className:"filter d-flex justify-content-start align-items-start flex-column "+(N?"home-filter-field":""),children:[(0,y.jsx)("label",{htmlFor:e,children:s}),(0,y.jsx)("input",{className:"form-control",disabled:r,id:e,onChange:s=>k(e,s.target.value),placeholder:t,type:"text",value:i[e]||""})]})}("staffName","\u05de\u05e8\u05e6\u05d4 \u05d0\u05d5 \u05de\u05ea\u05e8\u05d2\u05dc","\u05e9\u05dd \u05d0\u05d9\u05e9 \u05e1\u05d2\u05dc")}))]})]}),(0,y.jsx)(H,{children:(0,y.jsxs)("div",{className:"home-filter-section home-filter-section-premium",children:[(0,y.jsxs)("div",{className:"home-filter-section-title",children:[(0,y.jsx)(c.A,{size:16}),(0,y.jsx)("span",{children:"\u05ea\u05d5\u05d1\u05e0\u05d5\u05ea \u05e4\u05e8\u
105d9\u05de\u05d9\u05d5\u05dd"})]}),(0,y.jsxs)("div",{className:"filters "+(N?"home-filters-grid":""),children:[Q("averageGrade",!C),Q("courseDifficulty",!C),Q("attendance",!C),X("minRating","\u05d3\u05d9\u05e8\u05d5\u05d2 \u05de\u05d9\u05e0\u05d9\u05de\u05dc\u05d9","\u05dc\u05d3\u05d5\u05d2\u05de\u05d4 4",!C),X("minReviews","\u05de\u05e1\u05e4\u05e8 \u05d1\u05d9\u05e7\u05d5\u05e8\u05d5\u05ea","\u05dc\u05d3\u05d5\u05d2\u05de\u05d4 5",!C),L("stats","\u05e8\u05e7 \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e2\u05dd \u05e1\u05d8\u05d8\u05d9\u05e1\u05d8\u05d9\u05e7\u05d5\u05ea",!C)]})]})}),N&&(0,y.jsxs)("div",{className:"home-mobile-filter-sheet-footer",children:[S>0&&(0,y.jsxs)("button",{className:"home-mobile-filter-reset",onClick:B,type:"button",children:[(0,y.jsx)(I.A,{size:16})," \u05d0\u05d9\u05e4\u05d5\u05e1"]}),(0,y.jsxs)("button",{className:"home-mobile-filter-apply",onClick:()=>j(!1),type:"button",children:["\u05d4\u05e6\u05d2\u05ea ",Number(d||0).toLocaleString("he-IL")," \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd"]})]})]})]});var ie,te,re};var X=i(4695),ee=i.n(X),se=i(31515),ie=i(9176);var te=i(19360),re=i(59403);const ne=()=>{const[e,s]=(0,t.useState)(!0),[i,r]=(0,t.useState)(null),[n,l]=(0,t.useState)(!0),[a,o]=(0,t.useState)(!1);if((0,t.useEffect)(()=>{const e=localStorage.getItem("jwtToken");(async()=>{try{const s=await fetch("https://api.studentinsight.co.il/api/info/site-message",{headers:{Authorization:`Bearer ${e}`}});if(!s.ok)throw new Error(`HTTP error! status: ${s.status}`);const i=await s.json();i.isVisible&&r(i)}catch(s){console.error("Failed to fetch site message:",s)}finally{l(!1)}})()},[]),n)return(0,y.jsx)("div",{className:"border-0",children:(0,y.jsxs)(te.A,{variant:"light",className:"mb-0 h-100",children:[(0,y.jsx)(te.A.Heading,{children:(0,y.jsx)(f.A,{width:150,height:20})}),(0,y.jsx)(f.A,{count:3})]})});if(!i||!e)return null;const c=!1!==i.isExpandable&&String(i.content||"").length>220;return(0,y.jsx)("div",{className:"border-0 h-100",children:(0,y.jsxs)(te.A,{variant:i.color,onClose:()=>s(!1),className:"mb-0 h-100",children:[(0,y.jsxs)(te.A.Heading,{children:["success"===i.color&&(0,y.jsx)("i",{className:"fa-solid fa-circle-check ms-2"}),"warning"===i.color&&(0,y.jsx)("i",{className:"fa-solid fa-triangle-exclamation ms-2"}),"info"===i.color&&(0,y.jsx)("i",{className:"fa-solid fa-circle-info ms-2"}),"danger"===i.color&&(0,y.jsx)("i",{className:"fa-solid fa-triangle-exclamation ms-2"}),(0,y.jsx)("span",{children:"\u05d4\u05d5\u05d3\u05e2\u05ea \u05de\u05e2\u05e8\u05db\u05ea:"})]}),(0,y.jsx)("div",{style:c&&!a?{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:3,overflow:"hidden"}:void 0,children:(0,y.jsx)(re.A,{content:i.content})}),c&&(0,y.jsx)("button",{type:"button",className:"btn btn-link p-0 mt-2 fw-bold",onClick:()=>o(e=>!e),"aria-expanded":a,children:a?"\u05d4\u05e6\u05d2 \u05e4\u05d7\u05d5\u05ea":"\u05e7\u05e8\u05d0 \u05e2\u05d5\u05d3..."})]})})};var le=i(29246),ae=i(87765),oe=i(95942);const ce=()=>{var e,s,i;const[r,n]=(0,t.useState)(null),[l,a]=(0,t.useState)([]),[o,c]=(0,t.useState)(-1),[d,u]=(0,t.useState)(!1),[m,h]=(0,t.useState)(!0);(0,t.useEffect)(()=>{(async()=>{try{const e=await le.A.get("https://api.studentinsight.co.il/api/polls/latest",{headers:{Authorization:`Bearer ${localStorage.getItem("jwtToken")}`}});n(e.data.poll),u(e.data.alreadyParticipated)}catch(e){console.error("Error fetching the latest poll:",e)}finally{h(!1)}})()},[]);const p=(e,s)=>{a(i=>{const t=[...i],r=t.findIndex(s=>s.questionId===e);return r>=0?t[r].response=s:t.push({questionId:e,response:s}),t})};if(m)return(0,y.jsx)("div",{className:"poll-container",children:(0,y.jsxs)("div",{className:"poll-card p-3",children:[(0,y.jsx)("h2",{className:"poll-title",children:(0,y.jsx)(f.A,{width:200,height:30})}),(0,y.jsx)("p",{className:"poll-description",children:(0,y.jsx)(f.A,{count:3})})]})});if(!r)return;if(d)return(0,y.jsx)("div",{className:"poll-container",children:(0,y.jsxs)("div",{className:"poll-card bg-c-secondary p-3",children:[(0,y.jsxs)("h2",{className:"poll-title text-white",children:[(0,y.jsx)("i",{className:"fas fa-poll poll-icon text-c-variance"})," \u05e1\u05e7\u05e8:"," ",r.title]}),(0,y.jsxs)("div",{className:"d-flex",children:[(0,y.jsx)("i",{className:"fas fa-check-circle poll-icon text-c-variance ms-2",style:{marginTop:"2px"}}),(0,y.jsx)("p",{className:"poll-description text-white",children:"\u05db\u05d1\u05e8 \u05d4\u05e9\u05ea\u05ea\u05e4\u05ea \u05d1\u05e1\u05e7\u05e8 \u05d6\u05d4."})]})]})});const x=r.questions.length,v=()=>{for(let e=0;e<x;e++){const s=l.find(s=>
1s.questionId===r.questions[e]._id);if(!s||""===s.response||0===s.response.length)return!1}return!0};return(0,y.jsx)("div",{className:"poll-container",children:(0,y.jsx)("div",{className:"poll-card",children:-1===o?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("h2",{className:"poll-title",children:[(0,y.jsx)("i",{className:"fas fa-poll poll-icon text-c-secondary"})," \u05e1\u05e7\u05e8:"," ",r.title]}),(0,y.jsx)("p",{className:"poll-description",children:r.description}),(0,y.jsx)("button",{className:"poll-button poll-start-button mt-1",onClick:()=>c(0),children:"\u05e2\u05d1\u05d5\u05e8 \u05dc\u05e1\u05e7\u05e8"})]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"poll-progress",children:["\u05e9\u05d0\u05dc\u05d4 ",o+1,"/",x]}),(0,y.jsxs)("div",{className:"poll-question",children:[(0,y.jsx)("h3",{className:"poll-question-text",children:r.questions[o].question}),"text"===r.questions[o].type&&(0,y.jsx)("textarea",{className:"poll-text-input",value:(null===(e=l.find(e=>e.questionId===r.questions[o]._id))||void 0===e?void 0:e.response)||"",minLength:5,maxLength:500,onChange:e=>p(r.questions[o]._id,e.target.value)}),"rating"===r.questions[o].type&&(0,y.jsx)(F.Ay,{"aria-label":"Rating",defaultValue:3,valueLabelDisplay:"auto",step:1,marks:!0,min:1,max:5,value:(null===(s=l.find(e=>e.questionId===r.questions[o]._id))||void 0===s?void 0:s.response)||3,onChange:(e,s)=>p(r.questions[o]._id,s)}),"range"===r.questions[o].type&&(0,y.jsx)(F.Ay,{"aria-label":"Custom range",defaultValue:r.questions[o].minRange,valueLabelDisplay:"auto",step:r.questions[o].step||1,marks:!0,min:r.questions[o].minRange,max:r.questions[o].maxRange,value:(null===(i=l.find(e=>e.questionId===r.questions[o]._id))||void 0===i?void 0:i.response)||r.questions[o].minRange,onChange:(e,s)=>p(r.questions[o]._id,s)}),"multipleChoice"===r.questions[o].type&&(0,y.jsx)("div",{className:"poll-options-container",children:r.questions[o].options.map((e,s)=>{var i;return(0,y.jsxs)("div",{className:"poll-option",children:[(0,y.jsx)("input",{id:`multipleChoice-${r.questions[o]._id}-${s}`,type:"checkbox",className:"poll-checkbox",checked:(null===(i=l.find(e=>e.questionId===r.questions[o]._id))||void 0===i?void 0:i.response.includes(e))||!1,onChange:()=>((e,s)=>{const i=[...l],t=i.findIndex(s=>s.questionId===e);if(t>-1){const e=i[t].response||[];e.includes(s)?i[t].response=e.filter(e=>e!==s):i[t].response=[...e,s]}else i.push({questionId:e,response:[s]});a(i)})(r.questions[o]._id,e)}),(0,y.jsx)("label",{htmlFor:`multipleChoice-${r.questions[o]._id}-${s}`,children:e})]},s)})}),"singleChoice"===r.questions[o].type&&(0,y.jsx)("div",{className:"poll-options-container",children:r.questions[o].options.map((e,s)=>{var i;return(0,y.jsxs)("div",{className:"poll-option",children:[(0,y.jsx)("input",{id:`singleChoice-${r.questions[o]._id}-${s}`,className:"poll-radio",type:"radio",name:`singleChoice-${r.questions[o]._id}`,checked:(null===(i=l.find(e=>e.questionId===r.questions[o]._id))||void 0===i?void 0:i.response)===e,onChange:()=>p(r.questions[o]._id,e)}),(0,y.jsx)("label",{htmlFor:`singleChoice-${r.questions[o]._id}-${s}`,children:e})]},s)})})]}),(0,y.jsxs)("div",{className:"poll-navigation",children:[(0,y.jsx)("button",{className:"poll-button previous",onClick:()=>c(e=>Math.max(-1,e-1)),disabled:0===o,children:"\u05d4\u05e7\u05d5\u05d3\u05dd"}),o<x-1?(0,y.jsx)("button",{className:"poll-button next",onClick:()=>c(e=>e+1),children:"\u05d4\u05d1\u05d0"}):(0,y.jsx)(ae.A,{placement:"top",overlay:(0,y.jsx)(oe.A,{id:"tooltip-submit",children:v()?"\u05e9\u05dc\u05d9\u05d7\u05d4":"\u05e0\u05d0 \u05dc\u05e2\u05e0\u05d5\u05ea \u05e2\u05dc \u05db\u05dc \u05d4\u05e9\u05d0\u05dc\u05d5\u05ea"}),children:(0,y.jsx)("span",{className:"d-inline-block",children:(0,y.jsx)("button",{className:"poll-button submit",onClick:async()=>{if(r.questions.filter(e=>{const s=l.find(s=>s.questionId===e._id);return!s||""===s.response||0===s.response.length}).length>0)ee().fire({icon:"warning",title:"\u05d0\u05d5\u05e4\u05e1...",text:"\u05e2\u05dc\u05d9\u05da \u05dc\u05e2\u05e0\u05d5\u05ea \u05e2\u05dc \u05db\u05dc \u05d4\u05e9\u05d0\u05dc\u05d5\u05ea."});else try{await le.A.post(`https://api.studentinsight.co.il/api/polls/submit-response/${r._id}`,{responses:l},{headers:{Authorization:`Bearer ${localStorage.getItem("jwtToken")}`}}).then(()=>{ee().fire({icon:"success",title:"\u05ea\u05d5\u05d3\u05d4!",text:"\u05d4\u05ea\u05e9\u05d5\u05d1\u05d5\u05ea \u05e0\u05e9\u05dc\u05d7\u05d5 \u05d1\u05d4\u05e6\u05dc\u05d7\u05d4."}),u(!0)})}catch(e){e.response&&e.response.data.alreadyParticipated?u(!0):400===e.status?ee().fire({icon:"info",title:"\u05e9\u05d2\u05d9\u05d0\u05d4!",text:e.response.data.message}):ee().fire({icon:"error",title:"\u05e9\u05d2\u05d9\u05d0\u05d4!",text:"\u05d0\u05d9\u05e8\u
105e2\u05d4 \u05e9\u05d2\u05d9\u05d0\u05d4 \u05d1\u05e2\u05ea \u05e9\u05dc\u05d9\u05d7\u05ea \u05d4\u05ea\u05e9\u05d5\u05d1\u05d5\u05ea."})}},disabled:!v(),style:{pointerEvents:v()?"auto":"none"},children:"\u05e9\u05dc\u05d9\u05d7\u05d4"})})})]})]})})})};var de=i(80676),ue=i(60731),me=i(33412),he=i(15243),pe=i(2599);const xe=()=>{const[e,s]=(0,t.useState)([]),[i,r]=(0,t.useState)(!0),[n,l]=(0,t.useState)(null),[a,o]=(0,t.useState)(!1),c=(0,L.Zp)(),d=(0,t.useCallback)(async function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?o(!0):r(!0),l(null);try{const e=localStorage.getItem("jwtToken");if(!e)throw new Error("\u05e0\u05d3\u05e8\u05e9 \u05d0\u05d9\u05de\u05d5\u05ea");const i=await le.A.get("https://api.studentinsight.co.il/courses/reviews/suggest-reviews",{headers:{Authorization:`Bearer ${e}`}});s(i.data||[])}catch(t){var e,i;console.error("\u05e9\u05d2\u05d9\u05d0\u05d4 \u05d1\u05d8\u05e2\u05d9\u05e0\u05ea \u05d4\u05e6\u05e2\u05d5\u05ea \u05dc\u05d1\u05d9\u05e7\u05d5\u05e8\u05ea:",t),l((null===(e=t.response)||void 0===e||null===(i=e.data)||void 0===i?void 0:i.error)||t.message||"\u05dc\u05d0 \u05e0\u05d9\u05ea\u05df \u05dc\u05d8\u05e2\u05d5\u05df \u05d4\u05e6\u05e2\u05d5\u05ea")}finally{r(!1),o(!1)}},[]);(0,t.useEffect)(()=>{d()},[d]);const u=()=>d(!0),m=e=>{c(`/course/${e}?s=1&tab=reviews`)};return(0,y.jsxs)("div",{className:"review-card",dir:"rtl",children:[(0,y.jsxs)("div",{className:"review-card-header",children:[(0,y.jsxs)("div",{className:"review-card-header-title",children:[(0,y.jsxs)("div",{className:"d-flex",children:[(0,y.jsx)(ue.A,{color:"#524be7",size:22}),(0,y.jsx)("h2",{className:"me-1",children:"\u05d3\u05e8\u05d2\u05d5 \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd"})]}),(0,y.jsxs)("p",{children:[" ","\u05e2\u05d6\u05e8\u05d5 \u05dc\u05e1\u05d8\u05d5\u05d3\u05e0\u05d8\u05d9\u05dd \u05d0\u05d7\u05e8\u05d9\u05dd \u05e2\u05dd \u05d4\u05d1\u05d7\u05d9\u05e8\u05d5\u05ea \u05e9\u05dc\u05d4\u05dd \u05e2\u05dc \u05d9\u05d3\u05d9 \u05d3\u05d9\u05e8\u05d5\u05d2 \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e9\u05db\u05d1\u05e8 \u05dc\u05de\u05d3\u05ea\u05dd"]})]}),(0,y.jsx)("button",{onClick:u,disabled:i||a,className:"review-card-refresh "+(a?"refreshing":""),"aria-label":"\u05e8\u05e2\u05e0\u05df \u05d4\u05e6\u05e2\u05d5\u05ea",children:(0,y.jsx)(me.A,{size:18})})]}),(0,y.jsx)("div",{className:"review-card-content",children:i&&!a?(0,y.jsxs)("div",{className:"review-card-loading",children:[(0,y.jsx)("div",{className:"review-card-spinner",children:(0,y.jsx)(me.A,{size:20})}),(0,y.jsx)("p",{children:"\u05d8\u05d5\u05e2\u05df \u05d4\u05e6\u05e2\u05d5\u05ea..."})]}):n?(0,y.jsxs)("div",{className:"review-card-error",children:[(0,y.jsx)(he.A,{size:20}),(0,y.jsx)("p",{children:n}),(0,y.jsx)("button",{onClick:u,className:"review-card-try-again",children:"\u05e0\u05e1\u05d4 \u05e9\u05d5\u05d1"})]}):0===e.length?(0,y.jsx)("div",{className:"review-card-empty",children:(0,y.jsxs)("p",{children:[" ","\u05d0\u05d9\u05df \u05dc\u05da \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05dc\u05d3\u05e8\u05d2! \u05e0\u05e8\u05d0\u05d4 \u05e9\u05db\u05d1\u05e8 \u05d3\u05d9\u05e8\u05d2\u05ea \u05d0\u05ea \u05db\u05dc \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e2\u05d1\u05d5\u05e8\u05dd \u05e9\u05d9\u05ea\u05e4\u05ea \u05e1\u05d8\u05d8\u05d9\u05e1\u05d8\u05d9\u05e7\u05d5\u05ea"]})}):(0,y.jsx)("ul",{className:"review-card-list",children:e.map(e=>(0,y.jsx)("li",{onClick:()=>m(e.courseSymbol),className:"review-card-item",children:(0,y.jsxs)("div",{className:"review-card-item-inner",children:[(0,y.jsxs)("div",{className:"review-card-course",children:[(0,y.jsx)("h3",{children:e.name}),e.academicPoints>=0&&(0,y.jsx)("div",{className:"review-card-meta",children:(0,y.jsxs)("span",{className:"review-card-points",children:[e.academicPoints,' \u05e0"\u05d6']})})]}),(0,y.jsxs)("button",{onClick:()=>m(e.courseSymbol),className:"review-card-button",children:["\u05d3\u05d9\u05e8\u05d5\u05d2 ",(0,y.jsx)(pe.A,{size:14})]})]})},e._id))})}),!i&&!n&&e.length>0&&(0,y.jsx)("div",{className:"review-card-footer",children:(0,y.jsx)("p",{children:"\u05d4\u05d1\u05d9\u05e7\u05d5\u05e8\u05d5\u05ea \u05e9\u05dc\u05da \u05e2\u05d5\u05d6\u05e8\u05d5\u05ea \u05dc\u05e1\u05d8\u05d5\u05d3\u05e0\u05d8\u05d9\u05dd \u05d0\u05d7\u05e8\u05d9\u05dd \u05dc\u05e7\u05d1\u05dc \u05d4\u05d7\u05dc\u05d8\u05d5\u05ea \u05d8\u05d5\u05d1\u05d5\u05ea \u05d9\u05d5\u05ea\u05e8"})})]})};var ve=i(86681),ge=i(265),je=i(74504),fe=i(64345),be=i(84860),ye=i(43738),Ne=i(33135);const Ce=e=>{let{className:s=""}=e;const[i,r]=(0,t.useState)(!1),[n,l]=(0,t.useState)(new Set),a=(0,t.useRef)(null),o=(0,t.useRef)(0),d=[{version:"1.6",date:"2026-08-09",type:"minor",badge:"\u05d7\u05d3\u05e9",badgeColor:"success",changes:[{type:"feature",isNew:!0,icon:c.A,title:"\u05de\u05ea\u05db\u05e0\u05df \u05e1\u05de\u05e1\u05d8\u05e8 \u05de\u05e9\u05d5\u05dc\u05d1 \u05d5\u05de\u05e4\u05d5\u05e8\u05d8",description:"\u05ea\u05d4\u05dc\u05d9\u05da \u05d7\u05d3\u05e9 \u05de\u05ea\u05db\u05e0\u05df \u05e1\u05de\u05e1\u05d8\u05e8 \u05de\u05dc\u05d0 \u05dc\u05e4\u05d9 \u05d9\u05e2\u05d3 \u05e0\u05e7\u05d5\u05d3\u05d5\u05ea \u05d6\u05db\u05d5\u05ea, \u05d3\u05e8\u
105d9\u05e9\u05d5\u05ea \u05d4\u05ea\u05d5\u05d0\u05e8, \u05e7\u05d5\u05e8\u05e1\u05d9 \u05d7\u05d5\u05d1\u05d4 \u05d5\u05d7\u05d5\u05d1\u05ea \u05d1\u05d7\u05d9\u05e8\u05d4, \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e9\u05d4\u05d5\u05e9\u05dc\u05de\u05d5 \u05d5\u05d3\u05e8\u05d9\u05e9\u05d5\u05ea \u05e7\u05d3\u05dd. \u05e0\u05d9\u05ea\u05df \u05dc\u05e0\u05e2\u05d5\u05dc, \u05dc\u05d4\u05e1\u05d9\u05e8 \u05d5\u05dc\u05d4\u05d7\u05dc\u05d9\u05e3 \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd, \u05dc\u05e6\u05e4\u05d5\u05ea \u05d1\u05de\u05e2\u05e8\u05db\u05ea \u05d4\u05e9\u05d1\u05d5\u05e2\u05d9\u05ea \u05d5\u05dc\u05d0\u05e9\u05e8 \u05d0\u05ea \u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05dc\u05de\u05e2\u05e8\u05db\u05ea \u05d4\u05e9\u05e2\u05d5\u05ea \u05d5\u05dc\u05ea\u05db\u05e0\u05d5\u05df \u05d4\u05ea\u05d5\u05d0\u05e8 \u05d9\u05d7\u05d3."},{type:"feature",isNew:!0,icon:c.A,title:"\u05e9\u05d9\u05ea\u05d5\u05e3 \u05d5\u05d4\u05e9\u05d5\u05d5\u05d0\u05ea \u05de\u05e2\u05e8\u05db\u05d5\u05ea \u05e2\u05dd \u05d7\u05d1\u05e8\u05d9\u05dd",description:"\u05e0\u05d9\u05ea\u05df \u05dc\u05d9\u05e6\u05d5\u05e8 \u05e7\u05d9\u05e9\u05d5\u05e8 \u05e6\u05e4\u05d9\u05d9\u05d4 \u05d1\u05dc\u05d1\u05d3 \u05e2\u05dd \u05d4\u05d2\u05d3\u05e8\u05d5\u05ea \u05e4\u05e8\u
105d8\u05d9\u05d5\u05ea, \u05dc\u05d4\u05d5\u05e8\u05d9\u05d3 \u05d0\u05ea \u05d4\u05de\u05e2\u05e8\u05db\u05ea \u05db\u05ea\u05de\u05d5\u05e0\u05d4, \u05dc\u05d4\u05e6\u05d9\u05d2 \u05de\u05e2\u05e8\u05db\u05ea \u05e9\u05dc \u05d7\u05d1\u05e8 \u05db\u05e9\u05db\u05d1\u05d4 \u05e2\u05dc \u05d4\u05dc\u05d5\u05d7 \u05d5\u05dc\u05de\u05e6\u05d5\u05d0 \u05d7\u05dc\u05d5\u05e0\u05d5\u05ea \u05e4\u05e0\u05d5\u05d9\u05d9\u05dd \u05de\u05e9\u05d5\u05ea\u05e4\u05d9\u05dd. \u05dc\u05d7\u05d9\u05e6\u05d4 \u05e2\u05dc \u05e7\u05d5\u05e8\u05e1 \u05de\u05e9\u05d5\u05ea\u05e3 \u05de\u05d0\u05e4\u05e9\u05e8\u05ea \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d0\u05d5\u05ea\u05d5 \u05e2\u05dd \u05d0\u05d5\u05ea\u05df \u05e7\u05d1\u05d5\u05e6\u05d5\u05ea \u05e9\u05d9\u05e2\u05d5\u05e8 \u05d5\u05ea\u05e8\u05d2\u05d5\u05dc."},{type:"improvement",icon:ve.A,title:"\u05d7\u05d9\u05d1\u05d5\u05e8 \u05d7\u05db\u05dd \u05d1\u05d9\u05df \u05de\u05e2\u05e8\u05db\u05ea \u05d4\u05e9\u05e2\u05d5\u05ea, \u05ea\u05db\u05e0\u05d5\u05df \u05d4\u05ea\u05d5\u05d0\u05e8 \u05d5\u05de\u05e2\u05e7\u05d1 \u05d4\u05ea\u05d5\u05d0\u05e8",description:"\u05e4\u05e2\u05d5\u05dc\u05d5\u05ea \u05ea\u05db\u05e0\u05d5\u05df \u05de\u05e1\u05d5\u05e0\u05db\u05e8\u05e0\u05d5\u05ea \u05d1\u05d9\u05df \u05d7\u05dc\u05e7\u05d9 \u05d4\u05d0\u05ea\u05e8 \u05d1\u05dc\u05d9 \u05dc\u05d9\u05e6\u05d5\u05e8 \u05db\u05e4\u05d9\u05dc\u05d5\u05d9\u05d5\u05ea. \u05db\u05d0\u05e9\u05e8 \u05d4\u05d5\u05e1\u05e4\u05d4 \u05e2\u05e9\u05d5\u05d9\u05d4 \u05dc\u05d4\u05e9\u05e4\u05d9\u05e2 \u05d2\u05dd \u05e2\u05dc \u05d0\u05d6\u05d5\u05e8 \u05e0\u05d5\u05e1\u05e3, StudentInsight \u05de\u05e6\u05d9\u05d2 \u05d1\u05d7\u05d9\u05e8\u05d4 \u05d1\u05e8\u05d5\u05e8\u05d4 \u05d1\u05de\u05e7\u05d5\u05dd \u05dc\u05d1\u05e6\u05e2 \u05e9\u05d9\u05e0\u05d5\u05d9 \u05d0\u05d5\u05d8\u05d5\u05de\u05d8\u05d9 \u05e9\u05e2\u05dc\u05d5\u05dc \u05dc\u05d1\u05dc\u05d1\u05dc \u05ea\u05d5\u05db\u05e0\u05d9\u05d5\u05ea \u05e7\u05d9\u05d9\u05de\u05d5\u05ea."},{type:"improvement",icon:ve.A,title:"\u05e9\u05de\u05d9\u05e8\u05d4 \u05d0\u05d5\u05d8\u05d5\u05de\u05d8\u05d9\u05ea \u05d9\u05e6\u05d9\u05d1\u05d4 \u05d9\u05d5\u05ea\u05e8 \u05d1\u05ea\u05db\u05e0\u05d5\u05df \u05d4\u05ea\u05d5\u05d0\u05e8",description:"\u05e9\u05d9\u05e0\u05d5\u05d9\u05d9\u05dd \u05d1\u05ea\u05db\u05e0\u05d5\u05df \u05e0\u05e9\u05de\u05e8\u05d9\u05dd \u05d1\u05e6\u05d5\u05e8\u05d4 \u05e8\u05e6\u05d9\u05e4\u05d4 \u05d5\u05d1\u05e8\u05d5\u05e8\u05d4 \u05d9\u05d5\u05ea\u05e8, \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05de\u05ea\u05d5\u05db\u05e0\u05e0\u05d9\u05dd \u05e0\u05e9\u05d0\u05e8\u05d9\u05dd \u05e0\u05d9\u05ea\u05e0\u05d9\u05dd \u05dc\u05e2\u05e8\u05d9\u05db\u05d4, \u05d5\u05e1\u05de\u05e1\u05d8\u05e8 \u05e8\u05d9\u05e7 \u05e0\u05de\u05d7\u05e7 \u05d0\u05d5\u05d8\u05d5\u05de\u05d8\u05d9\u05ea \u05dc\u05d0\u05d7\u05e8 \u05d4\u05e1\u05e8\u05ea \u05d4\u05e7\u05d5\u05e8\u05e1 \u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05de\u05de\u05e0\u05d5."},{type:"feature",isNew:!0,icon:c.A,title:"\u05d4\u05de\u05dc\u05e6\u05d5\u05ea \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d5\u05ea\u05e6\u05d5\u05d2\u05d4 \u05de\u05d4\u05d9\u05e8\u05d4 \u05d1\u05de\u05e8\u05db\u05d6 \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd",description:"\u05e0\u05d5\u05e1\u05e4\u05d5 \u05d4\u05de\u05dc\u05e6\u05d5\u05ea \u05dc\u05e4\u05d9 \u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05d4\u05dc\u05d9\u05de\u05d5\u05d3\u05d9\u05dd \u05d5\u05d4\u05e9\u05e0\u05d4 \u05e9\u05dc \u05d4\u05e1\u05d8\u05d5\u05d3\u05e0\u05d8, \u05ea\u05e6\u05d5\u05d2\u05d4 \u05de\u05d4\u05d9\u05e8\u05d4 \u05e9\u05dc \u05e4\u05e8\u
105d8\u05d9 \u05e7\u05d5\u05e8\u05e1 \u05de\u05ea\u05d5\u05da \u05d4\u05e8\u05e9\u05d9\u05de\u05d4 \u05d5\u05d0\u05d6\u05d5\u05e8 \u05d4\u05de\u05dc\u05e6\u05d5\u05ea \u05d0\u05d9\u05e9\u05d9 \u05e9\u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e8\u05d7\u05d9\u05d1 \u05d5\u05dc\u05e6\u05de\u05e6\u05dd \u05d1\u05d3\u05e3 \u05d4\u05d1\u05d9\u05ea."},{type:"improvement",icon:ve.A,title:"\u05d7\u05d5\u05d5\u05d9\u05d9\u05ea \u05de\u05d5\u05d1\u05d9\u05d9\u05dc \u05de\u05d4\u05d9\u05e8\u05d4 \u05d5\u05e0\u05e7\u05d9\u05d9\u05d4 \u05d9\u05d5\u05ea\u05e8",description:"\u05d4\u05d7\u05d9\u05e4\u05d5\u05e9 \u05d5\u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d4\u05d5\u05e2\u05d1\u05e8\u05d5 \u05dc\u05e8\u05d0\u05e9 \u05d4\u05e2\u05de\u05d5\u05d3, \u05d4\u05de\u05e1\u05e0\u05e0\u05d9\u05dd \u05e0\u05e4\u05ea\u05d7\u05d9\u05dd \u05db\u05d7\u05dc\u05d5\u05e0\u05d9\u05ea \u05ea\u05d7\u05ea\u05d5\u05e0\u05d4, \u05e0\u05d5\u05e1\u05e3 \u05e0\u05d9\u05d5\u05d5\u05d8 \u05ea\u05d7\u05ea\u05d5\u05df \u05e7\u05d1\u05d5\u05e2 \u05d5\u05d4\u05d0\u05d6\u05d5\u05e8\u05d9\u05dd \u05d4\u05de\u05e9\u05e0\u05d9\u05d9\u05dd \u05e6\u05d5\u05de\u05e6\u05de\u05d5 \u05db\u05d3\u05d9 \u05dc\u05e9\u05de\u05d5\u05e8 \u05d0\u05ea \u05d4\u05e4\u05e2\u05d5\u05dc\u05d5\u05ea \u05d4\u05de\u05e8\u05db\u05d6\u05d9\u05d5\u05ea \u05de\u05e2\u05dc \u05d4\u05e7\u05e4\u05dc."},{type:"improvement",icon:ge.A,title:"\u05de\u05e2\u05d1\u05e8 \u05e9\u05e0\u05ea \u05dc\u05d9\u05de\u05d5\u05d3 \u05d5\u05de\u05e2\u05e7\u05d1 \u05d0\u05e7\u05d3\u05de\u05d9 \u05de\u05d3\u05d5\u05d9\u05e7\u05d9\u05dd \u05d9\u05d5\u05ea\u05e8",description:"\u05e9\u05e0\u05ea \u05d4\u05dc\u05d9\u05de\u05d5\u05d3 \u05e9\u05dc \u05d4\u05e1\u05d8\u05d5\u05d3\u05e0\u05d8 \u05de\u05ea\u05e7\u05d3\u05de\u05ea \u05d1\u05e6\u05d5\u05e8\u05d4 \u05de\u05d1\u05d5\u05e7\u05e8\u05ea \u05e2\u05dd \u05d4\u05e4\u05e2\u05dc\u05ea \u05e9\u05e0\u05ea\u05d5\u05df \u05d7\u05d3\u05e9, \u05d5\u05d3\u05e8\u05d9\u05e9\u05d5\u05ea \u05d4\u05ea\u05d5\u05d0\u05e8 \u05de\u05d1\u05d7\u05d9\u05e0\u05d5\u05ea \u05d8\u05d5\u05d1 \u05d9\u05d5\u05ea\u05e8 \u05d1\u05d9\u05df \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e9\u05d4\u05d5\u05e9\u05dc\u05de\u05d5, \u05e0\u05db\u05e9\u05dc\u05d5, \u05de\u05ea\u05d5\u05db\u05e0\u05e0\u05d9\u05dd \u05d0\u05d5 \u05d7\u05e1\u05d5\u05de\u05d9\u05dd."},{type:"bugfix",icon:je.A,title:"\u05ea\u05d9\u05e7\u05d5\u05e0\u05d9 \u05e9\u05d9\u05d1\u05d5\u05e5, \u05e0\u05e7\u05d5\u05d3\u05d5\u05ea \u05d6\u05db\u05d5\u05ea \u05d5\u05d3\u05e8\u05d9\u05e9\u05d5\u05ea \u05e7\u05d3\u05dd",description:"\u05ea\u05d5\u05e7\u05e0\u05d5 \u05d1\u05d7\u05d9\u05e8\u05ea \u05e7\u05d1\u05d5\u05e6\u05d5\u05ea \u05d5\u05e9\u05e2\u05d5\u05ea, \u05d0\u05d9\u05de\u05d5\u05ea \u05e7\u05d1\u05d5\u05e6\u05d5\u05ea \u05de\u05d5\u05dc \u05d4\u05e9\u05e8\u05ea, \u05d7\u05d9\u05e9\u05d5\u05d1 \u05d9\u05e2\u05d3 \u05e0\u05e7\u05d5\u05d3\u05d5\u05ea \u05d4\u05d6\u05db\u05d5\u05ea, \u05d4\u05ea\u05e2\u05dc\u05de\u05d5\u05ea \u05de\u05e7\u05d5\u05e8\u05e1\u05d9 0 \u05e0\u05f4\u05d6, \u05d4\u05e6\u05d2\u05ea \u05d7\u05d5\u05d1\u05d5\u05ea \u05d7\u05e1\u05d5\u05de\u05d5\u05ea \u05d5\u05d4\u05d8\u05d9\u05e4\u05d5\u05dc \u05d1\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05d7\u05dc\u05e7\u05d9\u05ea \u05d0\u05d5 \u05d1\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05e2\u05dd \u05d4\u05ea\u05e0\u05d2\u05e9\u05d5\u05d9\u05d5\u05ea."}]},{version:"1.5.1",date:"2026-08-07",type:"minor",badge:"\u05d7\u05d3\u05e9",badgeColor:"success",changes:[{type:"feature",isNew:!0,icon:c.A,title:"\u05ea\u05de\u05d9\u05db\u05d4 \u05de\u05dc\u05d0\u05d4 \u05d1\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd",description:"\u05d0\u05e4\u05e9\u05e8 \u05dc\u05e2\u05d1\u05d5\u05e8 \u05d1\u05d9\u05df \u05e7\u05d8\u05dc\u05d5\u05d2\u05d9 \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e9\u05dc \u05e9\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05e9\u05d5\u05e0\u05d9\u05dd \u05de\u05d1\u05dc\u05d9 \u05dc\u05d0\u05d1\u05d3 \u05de\u05d9\u05d3\u05e2. "},{type:"feature",isNew:!0,icon:c.A,title:"\u05de\u05e2\u05e8\u05db\u05d5\u05ea \u05e9\u05e2\u05d5\u05ea \u05e0\u05e4\u05e8\u
105d3\u05d5\u05ea \u05dc\u05db\u05dc \u05e9\u05e0\u05ea\u05d5\u05df",description:"\u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d5\u05d4\u05de\u05e2\u05e8\u05db\u05d5\u05ea \u05e0\u05e9\u05de\u05e8\u05d9\u05dd \u05dc\u05e4\u05d9 \u05e9\u05e0\u05ea\u05d5\u05df. \u05d4\u05de\u05e2\u05e8\u05db\u05d5\u05ea \u05e9\u05dc \u05d4\u05e9\u05e0\u05ea\u05d5\u05df \u05d4\u05e4\u05e2\u05d9\u05dc \u05e0\u05d9\u05ea\u05e0\u05d5\u05ea \u05dc\u05e2\u05e8\u05d9\u05db\u05d4, \u05d5\u05de\u05e2\u05e8\u05db\u05d5\u05ea \u05de\u05e9\u05e0\u05d9\u05dd \u05e7\u05d5\u05d3\u05de\u05d5\u05ea \u05e0\u05e9\u05d0\u05e8\u05d5\u05ea \u05d6\u05de\u05d9\u05e0\u05d5\u05ea \u05dc\u05e6\u05e4\u05d9\u05d9\u05d4, \u05dc\u05d4\u05e9\u05d5\u05d5\u05d0\u05d4 \u05d5\u05dc\u05d9\u05d9\u05e6\u05d5\u05d0."},{type:"feature",isNew:!0,icon:c.A,title:"\u05d1\u05d5\u05e8\u05e8 \u05e9\u05e0\u05ea\u05d5\u05df \u05d7\u05d3\u05e9 \u05d1\u05e1\u05e8\u05d2\u05dc \u05d4\u05e2\u05dc\u05d9\u05d5\u05df",description:"\u05d1\u05d5\u05e8\u05e8 \u05e9\u05e0\u05ea\u05d5\u05df \u05de\u05e2\u05d5\u05e6\u05d1 \u05d5\u05e0\u05d2\u05d9\u05e9 \u05e0\u05d5\u05e1\u05e3 \u05dc\u05e1\u05e8\u05d2\u05dc \u05d4\u05e2\u05dc\u05d9\u05d5\u05df \u05d5\u05de\u05d0\u05e4\u05e9\u05e8 \u05dc\u05e2\u05d1\u05d5\u05e8 \u05d1\u05de\u05d4\u05d9\u05e8\u05d5\u05ea \u05d1\u05d9\u05df \u05d4\u05e7\u05d8\u05dc\u05d5\u05d2 \u05d4\u05e4\u05e2\u05d9\u05dc \u05dc\u05e7\u05d8\u05dc\u05d5\u05d2\u05d9\u05dd \u05d4\u05d9\u05e1\u05d8\u05d5\u05e8\u05d9\u05d9\u05dd \u05de\u05db\u05dc \u05e2\u05de\u05d5\u05d3 \u05e8\u05dc\u05d5\u05d5\u05e0\u05d8\u05d9."},{type:"improvement",icon:ve.A,title:"\u05e1\u05e0\u05db\u05e8\u05d5\u05df \u05de\u05dc\u05d0 \u05d5\u05de\u05d3\u05d5\u05d9\u05e7 \u05de\u05d5\u05dc \u05d4\u05e9\u05e0\u05ea\u05d5\u05df",description:"\u05e0\u05ea\u05d5\u05e0\u05d9 2027 \u05db\u05d5\u05dc\u05dc\u05d9\u05dd \u05db\u05e2\u05ea \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd, \u05ea\u05db\u05e0\u05d9\u05d5\u05ea, \u05e7\u05d1\u05d5\u05e6\u05d5\u05ea \u05d4\u05d5\u05e8\u05d0\u05d4, \u05de\u05e2\u05e8\u05db\u05d5\u05ea, \u05de\u05e8\u05e6\u05d9\u05dd, \u05de\u05ea\u05e8\u05d2\u05dc\u05d9\u05dd \u05d5\u05de\u05d5\u05e2\u05d3\u05d9 \u05d1\u05d7\u05d9\u05e0\u05d5\u05ea \u2014 \u05d1\u05dc\u05d9 \u05dc\u05de\u05d7\u05d5\u05e7 \u05d0\u05d5 \u05dc\u05e9\u05e0\u05d5\u05ea \u05de\u05d9\u05d3\u05e2 \u05de\u05e9\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05e7\u05d5\u05d3\u05de\u05d9\u05dd."},{type:"feature",icon:ge.A,title:"\u05d4\u05e4\u05e2\u05dc\u05ea \u05e9\u05e0\u05ea\u05d5\u05df \u05d1\u05e9\u05dc\u05d9\u05d8\u05ea \u05de\u05e0\u05d4\u05dc \u05d4\u05d0\u05ea\u05e8",description:"\u05de\u05e0\u05d4\u05dc \u05d4\u05d0\u05ea\u05e8 \u05d9\u05db\u05d5\u05dc \u05dc\u05d4\u05db\u05d9\u05df \u05e9\u05e0\u05ea\u05d5\u05df, \u05dc\u05e2\u05e7\u05d5\u05d1 \u05d0\u05d7\u05e8 \u05d4\u05d4\u05ea\u05e7\u05d3\u05de\u05d5\u05ea \u05d5\u05d4\u05db\u05e9\u05dc\u05d9\u05dd \u05d5\u05dc\u05d4\u05e4\u05e2\u05d9\u05dc \u05d0\u05d5\u05ea\u05d5 \u05e8\u05e7 \u05db\u05e9\u05d4\u05e7\u05d8\u05dc\u05d5\u05d2 \u05de\u05d5\u05db\u05df. \u05d4\u05e4\u05e2\u05dc\u05d4 \u05e9\u05d5\u05dc\u05d7\u05ea \u05dc\u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05d4\u05ea\u05e8\u05d0\u05d4 \u05de\u05d9\u05d5\u05d7\u05d3\u05ea, \u05d5\u05d4\u05de\u05dc\u05e6\u05ea HUJI \u05e0\u05e9\u05d0\u05e8\u05ea \u05d1\u05d2\u05d3\u05e8 \u05d4\u05de\u05dc\u05e6\u05d4 \u05d1\u05dc\u05d1\u05d3."},{type:"improvement",icon:ve.A,title:"\u05e8\u05e9\u05d9\u05de\u05d5\u05ea \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05de\u05d4\u05d9\u05e8\u05d5\u05ea \u05d5\u05d9\u05e6\u05d9\u05d1\u05d5\u05ea \u05d9\u05d5\u05ea\u05e8",description:"\u05d8\u05e2\u05d9\u05e0\u05ea \u05e8\u05e9\u05d9\u05de\u05d5\u05ea \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d4\u05d5\u05d0\u05e6\u05d4 \u05de\u05e9\u05de\u05e2\u05d5\u05ea\u05d9\u05ea \u05d5\u05ea\u05d5\u05e7\u05df \u05d4\u05d4\u05d1\u05d4\u05d5\u05d1 \u05e9\u05d4\u05e6\u05d9\u05d2 \u05d1\u05d8\u05e2\u05d5\u05ea \u05d4\u05d5\u05d3\u05e2\u05ea \u2018\u05dc\u05d0 \u05de\u05e6\u05d0\u05e0\u05d5 \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd\u2019 \u05d1\u05d6\u05de\u05df \u05e9\u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05e2\u05d3\u05d9\u05d9\u05df \u05e0\u05d8\u05e2\u05e0\u05d5."}]},{version:"1.5.0",date:"2026-06-26",type:"major",badge:"\u05e2\u05d3\u05db\u05d5\u05df \u05d2\u05d3\u05d5\u05dc",badgeColor:"primary",changes:[{type:"feature",isNew:!0,icon:c.A,title:"\u05e2\u05d9\u05e6\u05d5\u05d1 \u05de\u05d7\u05d3\u05e9 \u05e9\u05dc \u05d4\u05d0\u05ea\u05e8 \u05d5\u05ea\u05d9\u05e7\u05d5\u05e0\u05d9\u05dd",description:"\u05d4\u05d0\u05ea\u05e8 \u05e2\u05d5\u05e6\u05d1 \u05de\u05d7\u05d3\u05e9 \u05d1\u05d0\u05d5\u05e4\u05df \u05d2\u05d5\u05e8\u05e3, \u05db\u05d5\u05dc\u05dc \u05e9\u05d9\u05e4\u05d5\u05e8\u05d9\u05dd \u05d5\u05ea\u05d9\u05e7\u05d5\u05e0\u05d9 \u05d1\u05d0\u05d2\u05d9\u05dd"},{type:"feature",isNew:!0,icon:ge.A,title:"\u05e4\u05d9\u05ea\u05d5\u05d7 \u05d0\u05d9\u05d6\u05d5\u05e8 \u05ea\u05db\u05e0\u05d5\u05df \u05d4\u05ea\u05d5\u05d0\u05e8 \u05de\u05d7\u05d3\u05e9",description:"\u05d0\u05d9\u05d6\u05d5\u05e8 \u05ea\u05db\u05e0\u05d5\u05df \u05d4\u05ea\u05d5\u05d0\u05e8 \u05e2\u05d1\u05e8 \u05e4\u05d9\u05ea\u05d5\u05d7 \u05de\u05d7\u05d3\u05e9 \u05db\u05d3\u05d9 \u05dc\u05d4\u05e4\u05d5\u05da \u05d0\u05d5\u05ea\u05d5 \u05dc\u05e0\u05d5\u05d7 \u05d5\u05d1\u05e8\u05d5\u05e8 \u05d9\u05d5\u05ea\u05e8."}]},{version:"1.4.0",date:"2026-02-06",type:"major",badge:"\u05e2\u05d3\u05db\u05d5\u05df \u05d2\u05d3\u05d5\u05dc",badgeColor:"primary",changes:[{type:"feature",isNew:!0,icon:c.A,title:"\u05e2\u05d5\u05d6\u05e8 AI \u05d0\u05e7\u05d3\u05de\u05d9 \u05dc\u05de\u05e9\u05ea\u05de\u05e9\u05d9 \u05e4\u05e8\u
105de\u05d9\u05d5\u05dd",description:"\u05e2\u05d5\u05d6\u05e8 AI \u05d7\u05db\u05dd \u05de\u05d1\u05d5\u05e1\u05e1 Gemini \u05e9\u05de\u05e1\u05e4\u05e7 \u05d9\u05d9\u05e2\u05d5\u05e5 \u05d0\u05e7\u05d3\u05de\u05d9 \u05de\u05d5\u05ea\u05d0\u05dd \u05d0\u05d9\u05e9\u05d9\u05ea - \u05de\u05de\u05dc\u05d9\u05e5 \u05e2\u05dc \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd, \u05de\u05e9\u05d5\u05d5\u05d4 \u05d5\u05de\u05e0\u05ea\u05d7 \u05d1\u05d9\u05e7\u05d5\u05e8\u05d5\u05ea, \u05d1\u05d5\u05d3\u05e7 \u05d4\u05ea\u05e0\u05d2\u05e9\u05d5\u05d9\u05d5\u05ea \u05d1\u05de\u05e2\u05e8\u05db\u05ea \u05e9\u05e2\u05d5\u05ea, \u05e2\u05d5\u05d6\u05e8 \u05d1\u05ea\u05db\u05e0\u05d5\u05df \u05ea\u05d5\u05d0\u05e8 \u05d5\u05de\u05e2\u05e7\u05d1 \u05e6\u05d9\u05d5\u05e0\u05d9\u05dd. \u05ea\u05d5\u05de\u05da \u05d1\u05e2\u05d1\u05e8\u05d9\u05ea \u05d5\u05d0\u05e0\u05d2\u05dc\u05d9\u05ea \u05e2\u05dd \u05d4\u05d9\u05e1\u05d8\u05d5\u05e8\u05d9\u05d9\u05ea \u05e9\u05d9\u05d7\u05d4."},{type:"feature",isNew:!0,icon:c.A,title:"\u05de\u05e2\u05e8\u05db\u05ea \u05ea\u05e9\u05dc\u05d5\u05de\u05d9\u05dd \u05d5\u05de\u05e0\u05d5\u05d9\u05d9\u05dd \u05d7\u05d3\u05e9\u05d4",description:"\u05d4\u05d5\u05e1\u05e4\u05ea \u05de\u05e2\u05e8\u05db\u05ea \u05ea\u05e9\u05dc\u05d5\u05de\u05d9\u05dd \u05d7\u05d3\u05e9\u05d4 \u05e2\u05dd \u05d0\u05e4\u05e9\u05e8\u05d5\u05d9\u05d5\u05ea \u05de\u05e0\u05d5\u05d9 \u05d7\u05d5\u05d3\u05e9\u05d9\u05d5\u05ea \u05d5\u05e9\u05e0\u05ea\u05d9\u05d5\u05ea, \u05db\u05d5\u05dc\u05dc \u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05dc\u05ea\u05de\u05d9\u05db\u05d4 \u05d1\u05e1\u05db\u05d5\u05dd \u05dc\u05d1\u05d7\u05d9\u05e8\u05ea \u05d4\u05de\u05e9\u05ea\u05de\u05e9. \u05d4\u05de\u05e2\u05e8\u05db\u05ea \u05d4\u05d7\u05d3\u05e9\u05d4 \u05de\u05d0\u05e4\u05e9\u05e8\u05ea \u05d2\u05de\u05d9\u05e9\u05d5\u05ea \u05e8\u05d1\u05d4 \u05d9\u05d5\u05ea\u05e8 \u05dc\u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05dc\u05d1\u05d7\u05d5\u05e8 \u05d0\u05ea \u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05d4\u05de\u05e0\u05d5\u05d9 \u05e9\u05de\u05ea\u05d0\u05d9\u05de\u05d4 \u05dc\u05d4\u05dd \u05d5\u05db\u05d5\u05dc\u05dc\u05ea \u05d2\u05dd \u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05dc\u05ea\u05de\u05d9\u05db\u05d4 \u05d7\u05d3-\u05e4\u05e2\u05de\u05d9\u05ea. \u05d1\u05e0\u05d5\u05e1\u05e3 \u05e0\u05d9\u05ea\u05df \u05dc\u05e8\u05d0\u05d5\u05ea \u05d0\u05ea \u05e8\u05e9\u05d9\u05de\u05ea \u05d4\u05ea\u05d5\u05de\u05db\u05d9\u05dd \u05d4\u05de\u05d5\u05d1\u05d9\u05dc\u05d9\u05dd \u05d1\u05d0\u05ea\u05e8 \u05d5\u05dc\u05e7\u05e0\u05d5\u05ea \u05de\u05e0\u05d5\u05d9 \u05dc\u05e1\u05d8\u05d5\u05d3\u05e0\u05d8 \u05d0\u05d7\u05e8 \u05d1\u05de\u05ea\u05e0\u05d4."}]},{version:"1.3.3",date:"2026-01-31",type:"minor",badgeColor:"success",changes:[{type:"feature",isNew:!0,icon:c.A,title:"\u05ea\u05de\u05d9\u05db\u05d4 \u05d1\u05de\u05e1\u05e4\u05e8 \u05de\u05e2\u05e8\u05db\u05d5\u05ea \u05e9\u05e2\u05d5\u05ea \u05d5\u05d4\u05e9\u05d5\u05d5\u05d0\u05d4 \u05d1\u05d9\u05e0\u05d9\u05d4\u05df",description:"\u05e0\u05d5\u05e1\u05e4\u05d4 \u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05dc\u05d9\u05e6\u05d5\u05e8 \u05de\u05e1\u05e4\u05e8 \u05de\u05e2\u05e8\u05db\u05d5\u05ea \u05e9\u05e2\u05d5\u05ea \u05e9\u05d5\u05e0\u05d5\u05ea \u05d5\u05dc\u05d4\u05e9\u05d5\u05d5\u05ea \u05d1\u05d9\u05e0\u05d9\u05d4\u05df. \u05e0\u05d9\u05ea\u05df \u05dc\u05d4\u05e9\u05d5\u05d5\u05ea \u05e2\u05d3 3 \u05de\u05e2\u05e8\u05db\u05d5\u05ea \u05d1\u05d5-\u05d6\u05de\u05e0\u05d9\u05ea, \u05dc\u05e8\u05d0\u05d5\u05ea \u05d4\u05e9\u05d5\u05d5\u05d0\u05d4 \u05d5\u05d9\u05d6\u05d5\u05d0\u05dc\u05d9\u05ea \u05e9\u05dc \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d5\u05d4\u05e9\u05e2\u05d5\u05ea, \u05d5\u05dc\u05d1\u05d7\u05d5\u05e8 \u05d0\u05ea \u05d4\u05de\u05e2\u05e8\u05db\u05ea \u05d4\u05d8\u05d5\u05d1\u05d4 \u05d1\u05d9\u05d5\u05ea\u05e8 \u05e2\u05d1\u05d5\u05e8\u05db\u05dd. \u05d1\u05e0\u05d5\u05e1\u05e3, \u05e0\u05d9\u05ea\u05df \u05dc\u05de\u05d7\u05d5\u05e7 \u05de\u05e2\u05e8\u05db\u05d5\u05ea \u05d9\u05e9\u05e0\u05d5\u05ea \u05d5\u05dc\u05e9\u05de\u05d5\u05e8 \u05e2\u05dc \u05e0\u05d9\u05d4\u05d5\u05dc \u05de\u05e1\u05d5\u05d3\u05e8 \u05e9\u05dc \u05db\u05dc \u05d4\u05de\u05e2\u05e8\u
105db\u05d5\u05ea \u05e9\u05dc\u05db\u05dd."},{type:"feature",icon:c.A,isNew:!0,title:"\u05e1\u05d9\u05e0\u05d5\u05df \u05d1\u05d9\u05e7\u05d5\u05e8\u05d5\u05ea \u05dc\u05e4\u05d9 \u05e1\u05de\u05e1\u05d8\u05e8",description:"\u05e0\u05d5\u05e1\u05e4\u05d4 \u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05dc\u05e1\u05e0\u05df \u05d1\u05d9\u05e7\u05d5\u05e8\u05d5\u05ea \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05dc\u05e4\u05d9 \u05e1\u05de\u05e1\u05d8\u05e8 - \u05e0\u05d9\u05ea\u05df \u05dc\u05e8\u05d0\u05d5\u05ea \u05d1\u05d9\u05e7\u05d5\u05e8\u05d5\u05ea \u05d7\u05d3\u05e9\u05d5\u05ea \u05d9\u05d5\u05ea\u05e8 (\u05de\u05e1\u05de\u05e1\u05d8\u05e8\u05d9\u05dd \u05d0\u05d7\u05e8\u05d5\u05e0\u05d9\u05dd) \u05d0\u05d5 \u05d1\u05d9\u05e7\u05d5\u05e8\u05d5\u05ea \u05d9\u05e9\u05e0\u05d5\u05ea \u05d9\u05d5\u05ea\u05e8. \u05de\u05d0\u05e4\u05e9\u05e8 \u05dc\u05e7\u05d1\u05dc \u05ea\u05de\u05d5\u05e0\u05d4 \u05de\u05d3\u05d5\u05d9\u05e7\u05ea \u05d9\u05d5\u05ea\u05e8 \u05e9\u05dc \u05d4\u05e7\u05d5\u05e8\u05e1 \u05d1\u05ea\u05e7\u05d5\u05e4\u05d5\u05ea \u05e9\u05d5\u05e0\u05d5\u05ea."}]},{version:"1.3.2",date:"2025-10-26",type:"minor",badgeColor:"success",changes:[{type:"feature",icon:c.A,title:"\u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05d7\u05d3\u05e9\u05d4 \u05dc\u05d9\u05d9\u05e6\u05d5\u05d0 \u05d5\u05dc\u05e1\u05e0\u05db\u05e8\u05d5\u05df \u05de\u05e2\u05e8\u05db\u05ea \u05d4\u05e9\u05e2\u05d5\u05ea",description:"\u05e0\u05d5\u05e1\u05e4\u05d4 \u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05dc\u05d1\u05d7\u05d5\u05e8 \u05d1\u05d9\u05df \u05e9\u05e0\u05d9 \u05de\u05e6\u05d1\u05d9\u05dd: \u05d4\u05d5\u05e8\u05d3\u05ea \u05e7\u05d5\u05d1\u05e5 \u200eICS\u200e \u05dc\u05e6\u05d5\u05e8\u05da \u05d9\u05d9\u05d1\u05d5\u05d0 \u05d7\u05d3-\u05e4\u05e2\u05de\u05d9 \u05dc\u05db\u05dc \u05d0\u05e4\u05dc\u05d9\u05e7\u05e6\u05d9\u05d9\u05ea \u05d9\u05d5\u05de\u05df, \u05d0\u05d5 \u05e1\u05e0\u05db\u05e8\u05d5\u05df \u05d0\u05d5\u05d8\u05d5\u05de\u05d8\u05d9 \u05d3\u05e8\u05da \u05db\u05ea\u05d5\u05d1\u05ea URL \u05e9\u05de\u05ea\u05e2\u05d3\u05db\u05e0\u05ea \u05d1\u05d6\u05de\u05df \u05d0\u05de\u05ea \u05d1\u05db\u05dc \u05e9\u05d9\u05e0\u05d5\u05d9 \u05d1\u05de\u05e2\u05e8\u05db\u05ea \u05d4\u05e9\u05e2\u05d5\u05ea. \u05e0\u05d9\u05ea\u05df \u05dc\u05d1\u05d7\u05d5\u05e8 \u05d0\u05ea \u05d4\u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05d4\u05e8\u05e6\u05d5\u05d9\u05d4 \u05d1\u05de\u05e1\u05da \u05d4\u05e1\u05e0\u05db\u05e8\u05d5\u05df \u05d4\u05d7\u05d3\u05e9. \u05ea\u05d5\u05d3\u05d4 \u05dc-Reuven Smbatyan \u05e2\u05dc \u05d4\u05d4\u05de\u05dc\u05e6\u05d4."}]},{version:"1.3.1",date:"2025-10-20",type:"patch",badgeColor:"info",changes:[{type:"feature",icon:c.A,title:"\u05e1\u05e0\u05db\u05e8\u05d5\u05df \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05de\u05d4\u05e9\u05e0\u05ea\u05d5\u05df \u05d4\u05d0\u05e7\u05d3\u05de\u05d9",description:"\u05e0\u05d5\u05e1\u05e4\u05d4 \u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05dc\u05e1\u05e0\u05db\u05e8\u05df \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05de\u05d4\u05e9\u05e0\u05ea\u05d5\u05df \u05d1\u05d0\u05d5\u05e4\u05df \u05e2\u05e6\u05de\u05d0\u05d9. \u05d4\u05d3\u05d1\u05e8 \u05de\u05d0\u05e4\u05e9\u05e8 \u05dc\u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e9\u05d0\u05d9\u05e0\u05dd \u05e7\u05d9\u05d9\u05de\u05d9\u05dd \u05d1\u05de\u05e2\u05e8\u05db\u05ea \u05d0\u05d5 \u05dc\u05e2\u05d3\u05db\u05df \u05db\u05d0\u05dc\u05d4 \u05e9\u05d0\u05d9\u05e0\u05dd \u05de\u05e1\u05d5\u05e0\u05db\u05e8\u05e0\u05d9\u05dd \u05e2\u05dd \u05d4\u05e9\u05e0\u05ea\u05d5\u05df \u05de\u05e1\u05d9\u05d1\u05d5\u05ea \u05e9\u05d5\u05e0\u05d5\u05ea."}]},{version:"1.3.0.2",date:"2025-08-19",type:"patch",badgeColor:"info",changes:[{type:"improvement",icon:ve.A,title:"\u05e4\u05d9\u05dc\u05d8\u05e8\u05d9\u05dd \u05d7\u05d3\u05e9\u05d9\u05dd \u05dc\u05de\u05e2\u05e8\u05db\u05ea \u05d4\u05e9\u05e2\u05d5\u05ea",description:"\u05d4\u05d5\u05e1\u05e4\u05ea \u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05dc\u05e1\u05d9\u05e0\u05d5\u05df \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05dc\u05e4\u05d9 \u05e9\u05e4\u05ea \u05d4\u05d4\u05d5\u05e8\u05d0\u05d4 \u05d5\u05d0\u05d7\u05d5\u05d6 \u05d4\u05e0\u05d5\u05db\u05d7\u05d5\u05ea \u05d4\u05e0\u05d3\u05e8\u
105e9. \u05de\u05d0\u05e4\u05e9\u05e8 \u05dc\u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05dc\u05d4\u05ea\u05d0\u05d9\u05dd \u05d0\u05ea \u05de\u05e2\u05e8\u05db\u05ea \u05d4\u05e9\u05e2\u05d5\u05ea \u05dc\u05e6\u05e8\u05db\u05d9\u05d4\u05dd \u05d4\u05d0\u05d9\u05e9\u05d9\u05d9\u05dd."},{type:"bugfix",icon:je.A,title:"\u05ea\u05d9\u05e7\u05d5\u05df \u05d1\u05d0\u05d2\u05d9\u05dd \u05e7\u05d8\u05e0\u05d9\u05dd",description:"\u05e4\u05ea\u05e8\u05d5\u05df \u05d1\u05e2\u05d9\u05ea \u05ea\u05e6\u05d5\u05d2\u05d4 \u05d1\u05e8\u05d6\u05d5\u05dc\u05d5\u05e6\u05d9\u05d5\u05ea \u05de\u05e1\u05d5\u05d9\u05d9\u05de\u05d5\u05ea, \u05e2\u05d3\u05db\u05d5\u05df \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e9\u05dc\u05d0 \u05d4\u05d5\u05e4\u05d9\u05e2\u05d5 \u05d1\u05d0\u05ea\u05e8."}]},{version:"1.3",date:"2025-08-15",type:"major",badgeColor:"success",changes:[{type:"improvement",icon:ve.A,title:"\u05e2\u05d3\u05db\u05d5\u05df \u05d9\u05e6\u05d9\u05e8\u05ea \u05de\u05e2\u05e8\u05db\u05ea \u05d0\u05d5\u05e4\u05d8\u05d9\u05de\u05dc\u05d9\u05ea",description:"\u05e9\u05d9\u05e4\u05d5\u05e8\u05d9\u05dd \u05d1\u05d0\u05dc\u05d2\u05d5\u05e8\u05d9\u05ea\u05dd \u05dc\u05d9\u05e6\u05d9\u05e8\u05ea \u05de\u05e2\u05e8\u05db\u05ea \u05e9\u05e2\u05d5\u05ea \u05d0\u05d5\u05e4\u05d8\u05d9\u05de\u05dc\u05d9\u05ea, \u05de\u05ea\u05df \u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05dc\u05de\u05e9\u05ea\u05de\u05e9\u05d9\u05dd \u05ea\u05d5\u05e8\u05de\u05d9\u05dd \u05dc\u05d4\u05d2\u05d3\u05d9\u05e8 \u05d4\u05e2\u05d3\u05e4\u05d5\u05ea \u05d0\u05d9\u05e9\u05d9\u05d5\u05ea \u05d5\u05db\u05df \u05d4\u05e6\u05d2\u05ea \u05de\u05e1\u05e4\u05e8 \u05d0\u05d5\u05e4\u05e6\u05d9\u05d5\u05ea \u05e9\u05d5\u05e0\u05d5\u05ea \u05dc\u05de\u05e2\u05e8\u05db\u05ea \u05d4\u05e9\u05e2\u05d5\u05ea."},{type:"feature",icon:c.A,title:"\u05d4\u05e6\u05d2\u05ea Changelog",description:"\u05d4\u05d5\u05e1\u05e4\u05ea \u05d0\u05d9\u05d6\u05d5\u05e8 \u05dc\u05ea\u05d9\u05e2\u05d5\u05d3 \u05e9\u05dc \u05db\u05dc \u05d4\u05e2\u05d3\u05db\u05d5\u05e0\u05d9\u05dd \u05d5\u05d4\u05e4\u05d9\u05e6'\u05e8\u05d9\u05dd \u05d4\u05d7\u05d3\u05e9\u05d9\u05dd \u05d1\u05beStudentInsight."},{type:"bugfix",icon:je.A,title:"\u05ea\u05d9\u05e7\u05d5\u05e0\u05d9 \u05d1\u05d0\u05d2\u05d9\u05dd",description:"\u05e4\u05ea\u05e8\u05d5\u05df \u05d1\u05d0\u05d2\u05d9\u05dd \u05d1\u05de\u05e2\u05e8\u05db\u05ea \u05d4\u05e9\u05e2\u05d5\u05ea \u05d5\u05d1\u05e2\u05d9\u05d5\u05ea \u05ea\u05e6\u05d5\u05d2\u05d4."}]},{version:"gap",isGap:!0},{version:"1.0",date:"2023-12-14",type:"major",badge:"\u05d4\u05e9\u05e7\u05d4",badgeColor:"primary",changes:[{type:"feature",icon:c.A,title:"\u05d4\u05e9\u05e7\u05d4 \u05e8\u05d0\u05e9\u05d5\u05e0\u05d4",description:"\u05d2\u05e8\u05e1\u05ea \u05d4\u05d1\u05db\u05d5\u05e8\u05d4 \u05e9\u05dc StudentInsight",isNew:!1}]}],u=e=>{switch(e){case"feature":return{icon:c.A,color:"text-success"};case"improvement":return{icon:ve.A,color:"text-primary"};case"bugfix":return{icon:je.A,color:"text-danger"};case"security":return{icon:ge.A,color:"text-warning"};default:return{icon:fe.A,color:"text-secondary"}}},h=e=>{switch(e){case"success":return"bg-success";case"warning":return"bg-warning";case"primary":default:return"bg-primary";case"info":return"bg-info";case"secondary":return"bg-secondary"}};(0,t.useLayoutEffect)(()=>{a.current&&(a.current.scrollTop=o.current)},[n]);const p=d[0],x=p.changes.slice(0,2),v=()=>(0,y.jsxs)("div",{className:`card border-0 mb-2 ${s}`,children:[(0,y.jsx)("div",{className:"card-header border-0 text-white position-relative overflow-hidden",style:{background:"#5e49e2",cursor:"pointer"},onClick:()=>r(!0),children:(0,y.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,y.jsxs)("div",{children:[(0,y.jsxs)("h6",{className:"mb-0 fw-bold",children:[(0,y.jsx)(c.A,{size:15,className:" ms-1 mb-0"}),"\u05de\u05d4 \u05d7\u05d3\u05e9?"]}),(0,y.jsxs)("small",{className:"opacity-75",children:["\u05d2\u05e8\u05e1\u05d4 ",p.version]})]}),(0,y.jsx)("span",{className:`badge ${h(p.badgeColor)}`,children:p.badge})]})}),(0,y.jsxs)("div",{className:"card-body p-3",children:[x.map((e,s)=>{const{icon:i,color:t}=u(e.type);return(0,y.jsxs)("div",{className:"d-flex align-items-start mb-2",children:[(0,y.jsx)("div",{className:"me-2 mt-1",children:(0,y.jsx)("div",{className:`rounded-circle ms-2 d-flex align-items-center justify-content-center ${t}`,style:{width:"24px",height:"24px",backgroundColor:"rgba(var(--bs-primary-rgb), 0.1)"},children:(0,y.jsx)(i,{size:12})})}),(0,y.jsxs)("div",{className:"flex-grow-1",children:[(0,y.jsxs)("div",{className:"d-flex align-items-center",children:[(0,y.jsx)("span",{className:"fw-semibold small text-dark",children:e.title}),e.isNew&&(0,y.jsx)("span",{className:"badge bg-danger me-1",style:{fontSize:"0.6rem"},children:"\u05d7\u05d3\u05e9!"})]}),(0,y.jsxs)("p",{className:"mb-0 text-muted",style:{fontSize:"0.75rem"},children:[e.description.substring(0,60),"..."]})]})]},s)}),(0,y.jsx)("div",{className:"text-center mt-3",children:(0,y.jsxs)("button",{className:"btn btn-outline-primary btn-sm w-100",onClick:()=>r(!0),children:[(0,y.jsx)(be.A,{size:14,className:"ms-1"}
1),"\u05e8\u05d0\u05d4 \u05d0\u05ea \u05db\u05dc \u05d4\u05e2\u05d3\u05db\u05d5\u05e0\u05d9\u05dd"]})})]})]}),g=()=>i?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"position-fixed w-100 h-100",style:{top:0,left:0,zIndex:1050,backgroundColor:"rgba(0, 0, 0, 0.5)",backdropFilter:"blur(4px)"},onClick:()=>r(!1)}),(0,y.jsxs)("div",{className:"position-fixed top-50 start-50 translate-middle bg-white rounded-4 shadow-lg",style:{zIndex:1051,width:"90vw",maxWidth:"700px",maxHeight:"80vh",overflow:"hidden"},onClick:e=>e.stopPropagation(),children:[(0,y.jsx)("div",{className:"border-bottom p-4 bg-gradient",style:{background:"linear-gradient(135deg, #667eea 0%, #764ba2 100%)"},children:(0,y.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,y.jsxs)("div",{className:"text-dark",children:[(0,y.jsxs)("h4",{className:"mb-1 fw-bold",children:[(0,y.jsx)(c.A,{className:"me-2",size:24}),"\u05de\u05d4 \u05d7\u05d3\u05e9 \u05d1-StudentInsight?"]}),(0,y.jsx)("p",{className:"mb-0 opacity-75",children:"\u05e2\u05d3\u05db\u05d5\u05e0\u05d9\u05dd \u05d5\u05e9\u05d9\u05e4\u05d5\u05e8\u05d9\u05dd \u05d0\u05d7\u05e8\u05d5\u05e0\u05d9\u05dd"})]}),(0,y.jsx)("button",{className:"btn btn-link text-dark p-0",onClick:()=>r(!1),style:{fontSize:"1.5rem",textDecoration:"none"},children:(0,y.jsx)(E.A,{size:24})})]})}),(0,y.jsxs)("div",{ref:a,className:"p-0",style:{maxHeight:"60vh",overflowY:"auto",overflowAnchor:"none"},children:[d.map((e,s)=>{if(e.isGap)return(0,y.jsxs)("div",{className:"position-relative",children:[(0,y.jsxs)("div",{className:"d-flex align-items-center justify-content-center py-4",children:[(0,y.jsx)("div",{className:"border-top border-warning border-2 flex-grow-1 opacity-50",style:{borderStyle:"dashed !important"}}),(0,y.jsx)("div",{className:"mx-3 px-3 py-2 bg-warning bg-opacity-10 rounded-pill border border-warning border-opacity-50",children:(0,y.jsxs)("div",{className:"d-flex align-items-center",children:[(0,y.jsx)(ye.A,{size:16,className:"me-2 text-warning"}),(0,y.jsx)("small",{className:"text-warning fw-semibold",children:"\u05e2\u05d3\u05db\u05d5\u05e0\u05d9\u05dd \u05dc\u05d0 \u05de\u05ea\u05d5\u05e2\u05d3\u05d9\u05dd"})]})}),(0,y.jsx)("div",{className:"border-top border-warning border-2 flex-grow-1 opacity-50",style:{borderStyle:"dashed !important"}})]}),(0,y.jsx)("div",{className:"position-absolute top-100 start-50 translate-middle",children:(0,y.jsxs)("div",{className:"d-flex gap-2",children:[(0,y.jsx)("div",{className:"rounded-circle bg-warning opacity-75",style:{width:"8px",height:"8px"}}),(0,y.jsx)("div",{className:"rounded-circle bg-warning opacity-50",style:{width:"6px",height:"6px"}}),(0,y.jsx)("div",{className:"rounded-circle bg-warning opacity-25",style:{width:"4px",height:"4px"}})]})})]},"gap");const i=n.has(e.version),t=0===s;return(0,y.jsxs)("div",{className:"border-bottom",children:[(0,y.jsx)("div",{className:"p-4 cursor-pointer "+(t?"bg-light":""),style:{cursor:"pointer"},onClick:()=>{return s=e.version,a.current&&(o.current=a.current.scrollTop),void l(e=>{if(e.has(s)){const i=new Set(e);return i.delete(s),i}return new Set([s])});var s},children:(0,y.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,y.jsx)("div",{className:"d-flex align-items-center",children:(0,y.jsxs)("div",{className:"me-1",children:[(0,y.jsxs)("h5",{className:"mb-0 fw-bold",children:["\u05d2\u05e8\u05e1\u05d4 ",e.version,(0,y.jsx)("span",{className:`badge ${h(e.badgeColor)} me-2 small ms-2`,children:e.badge})]}),(0,y.jsx)("small",{className:"text-muted",children:(r=e.date,new Date(r).toLocaleDateString("he-IL",{year:"numeric",month:"long",day:"numeric"}))})]})}),(0,y.jsxs)("div",{className:"d-flex align-items-center",children:[(0,y.jsxs)("span",{className:"badge bg-light text-dark me-2",children:[e.changes.length," \u05e2\u05d3\u05db\u05d5\u05e0\u05d9\u05dd"]}),i?(0,y.jsx)(Ne.A,{size:20}):(0,y.jsx)(m.A,{size:20})]})]})}),i&&(0,y.jsx)("div",{className:"px-4 pb-4",children:e.changes.map((e,s)=>{const{icon:i,color:t}=u(e.type);return(0,y.jsxs)("div",{className:"d-flex p-3 rounded-3 mb-2 "+(s%2===0?"bg-light":""),children:[(0,y.jsx)("div",{className:"me-1 mt-1",children:(0,y.jsx)("div",{className:`rounded-circle ms-2 d-flex align-items-center justify-content-center ${t}`,style:{width:"32px",height:"32px",backgroundColor:"rgba(var(--bs-primary-rgb), 0.1)"},children:(0,y.jsx)(i,{size:16})})}),(0,y.jsxs)("div",{className:"flex-grow-1",children:[(0,y.jsxs)("div",{className:"d-flex align-items-center mb-1",children:[(0,y.jsx)("h6",{className:"mb-0 fw-semibold",children:e.title}),e.isNew&&(0,y.jsx)("span",{className:"badge bg-danger me-2 small",children:"\u05d7\u05d3\u05e9!"})]}),(0,y.jsx)("p",{className:"mb-0 small text-muted",children:e.description})]})]},s)})})]}
1,e.version);var r}),(0,y.jsx)("div",{className:"alert alert-warning m-3 border-0 rounded-3",children:(0,y.jsxs)("div",{className:"d-flex align-items-center",children:[(0,y.jsx)(he.A,{size:20,className:"me-2 text-warning"}),(0,y.jsxs)("div",{children:[(0,y.jsx)("strong",{children:"\u05d4\u05e2\u05e8\u05d4: "}),"\u05d4\u05e9\u05d9\u05e0\u05d5\u05d9\u05d9\u05dd \u05e9\u05d1\u05d5\u05e6\u05e2\u05d5 \u05d1\u05d9\u05df \u05d2\u05e8\u05e1\u05d0\u05d5\u05ea 1.0 \u05dc\u05be1.3 \u05dc\u05d0 \u05ea\u05d5\u05e2\u05d3\u05d5 \u05d1\u05d0\u05d5\u05e4\u05df \u05e1\u05d3\u05d5\u05e8. \u05d4\u05d7\u05dc \u05de\u05d2\u05e8\u05e1\u05d4 1.3 \u05d0\u05e9\u05ea\u05d3\u05dc \u05dc\u05d1\u05e6\u05e2 \u05ea\u05d9\u05e2\u05d5\u05d3 \u05de\u05e4\u05d5\u05e8\u05d8 \u05e9\u05dc \u05d4\u05e2\u05d3\u05db\u05d5\u05e0\u05d9\u05dd. \u05d1\u05ea\u05e7\u05d5\u05e4\u05d4 \u05d6\u05d5 \u05d1\u05d5\u05e6\u05e2\u05d5 \u05de\u05d0\u05d5\u05ea Commits, \u05e9\u05db\u05dc\u05dc\u05d5 \u05ea\u05d5\u05e1\u05e4\u05d5\u05ea \u05dc\u05de\u05e2\u05e8\u05db\u05ea, \u05ea\u05d9\u05e7\u05d5\u05e0\u05d9 \u05d1\u05d0\u05d2\u05d9\u05dd \u05d5\u05e9\u05d9\u05e4\u05d5\u05e8 \u05d7\u05d5\u05d5\u05d9\u05d9\u05ea \u05d4\u05de\u05e9\u05ea\u05de\u05e9."]})]})})]})]})]}):null;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(v,{}),(0,y.jsx)(g,{})]})};i(96114);var we=i(30534),Se=i(5637),Ae=i(17026),ke=i(24513),ze=i(42861),_e=i(33540),$e=i(76591),Ee=i(47288),Ie=i(36696),Me=i(53958),qe=i(36493),Pe=i(9712),Fe=i(63692),Be=i(87663),Te=i(61224),Le=i(91658),He=i(38338),Ye=i(19858),Re=i(70543);const Oe=["grades","lighter_load","lecturer_quality","interesting_content","schedule_convenience"],De=e=>{const s=Number(e);return Number.isFinite(s)?s:null},Ue=e=>String((null===e||void 0===e?void 0:e.courseCode)||(null===e||void 0===e?void 0:e.courseSymbol)||"").trim(),Ge=e=>{var s;return Math.max(0,De(null!==(s=null===e||void 0===e?void 0:e.academicPoints)&&void 0!==s?s:null===e||void 0===e?void 0:e.points)||0)},Ve=e=>(0,Fe.Lr)(e)||Ue(e),Je=e=>(null===e||void 0===e?void 0:e.semester)||(null===e||void 0===e?void 0:e.coursePeriodName)||"",Ke=(e,s,i)=>{if(!e)return null;if("COURSE"===e.type){const t=String(e.courseCode||"");if(i.has(t))return!0;const r=s.get(t);if(!r)return!1;const n=De(e.minGrade);return null===n||null===r.grade||r.grade>=n}const t=(e.children||[]).map(e=>Ke(e,s,i));return t.length?"OR"===e.type?t.some(Boolean):t.every(Boolean):null},We=function(e){var s;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Set;const r=null===e||void 0===e||null===(s=e.requirements)||void 0===s?void 0:s.positiveRequirements;if(!r)return{status:"none",missingCourses:[]};const n=(0,Re.DM)(r);if(!n)return{status:"unknown",missingCourses:[]};const l=t instanceof Set?t:new Set((t||[]).map(String)),a=function(){return new Map((arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(e=>!["failed","planned"].includes(null===e||void 0===e?void 0:e.status)).map(e=>{var s;const i=Ue(e),t=null!==(s=null===e||void 0===e?void 0:e.decryptedGrade)&&void 0!==s?s:null===e||void 0===e?void 0:e.grade,r=De(t);return i?[i,{...e,grade:r}]:null}).filter(Boolean))}(i);if(Ke(n,a,l))return{status:"met",missingCourses:[]};const o=e=>{if(!e)return[];if("COURSE"===e.type){var s,i;const t=String(e.courseCode||"");return l.has(t)||Ke(e,a,l)?[]:[{courseCode:t,courseName:(null===(s=e.courseName)||void 0===s?void 0:s.he)||(null===(i=e.courseName)||void 0===i?void 0:i.en)||"",minGrade:e.minGrade}]}const t=e.children||[];return"OR"===e.type&&t.some(e=>Ke(e,a,l))?[]:t.flatMap(o)};return{status:"unmet",missingCourses:[...new Map(o(n).filter(e=>e.courseCode).map(e=>[e.courseCode,e])).values()]}},Ze=function(){return We(...arguments).status},Qe=e=>Array.isArray(null===e||void 0===e?void 0:e.groups)&&e.groups.some(e=>((null===e||void 0===e?void 0:e.studySessions)||[]).some(e=>void 0!==(null===e||void 0===e?void 0:e.startTime)&&void 0!==(null===e||void 0===e?void 0:e.endTime))),Xe=e=>{var s,i,t,r,n;return Boolean((null===e||void 0===e?void 0:e.description)||(null===e||void 0===e||null===(s=e.syllabus)||void 0===s||null===(i=s.courseDescription)||void 0===i?void 0:i.he)||(null===e||void 0===e||null===(t=e.syllabus)||void 0===t||null===(r=t.courseContent)||void 0===r?void 0:r.he)||(null===e||void 0===e||null===(n=e.reviewSummary)||void 0===n?void 0:n.summary))},es=e=>e.reliability>=5||e.reviewCount>=10?"high":e.reliability>=2||e.reviewCount>=3?"medium":"limited",ss=e=>{var s;
1let{course:i,profile:t={},takenCourses:r=[],ignoredPrerequisiteCourseCodes:n=new Set}=e;const l=null!==(s=t.coursePriorities)&&void 0!==s&&s.length?t.coursePriorities:Oe,a=(0,Te.C0)(i),o=(0,Te.Gi)(i).value,c=(0,Te._i)(i).value,d=(0,Te.KK)(i).value,u=Ze(i,r,n),m=Qe(i);let h=!1===(null===i||void 0===i?void 0:i.availableThisYear)?-30:24;h+=Math.min(a.reliability,7),h+=null!==d?d/5*5:0,l.includes("grades")&&null!==o&&(h+=o/100*18),l.includes("lighter_load")&&null!==c&&(h+=(6-Math.min(5,c))/5*18),l.includes("lecturer_quality")&&null!==d&&(h+=d/5*16+Math.min(a.reviewCount,20)/4),l.includes("interesting_content")&&Xe(i)&&(h+=10),l.includes("schedule_convenience")&&m&&(h+=12),(t.goals||[]).includes("build_schedule")&&m&&(h+=5),(t.goals||[]).includes("plan_degree")&&(h+=4),"met"===u&&(h+=5),"unmet"===u&&(h-=80);const p=l.map(e=>(e=>{let{priority:s,grade:i,difficulty:t,rating:r,course:n}=e;return"grades"===s&&null!==i?`\u05de\u05de\u05d5\u05e6\u05e2 \u05e6\u05d9\u05d5\u05e0\u05d9\u05dd ${Math.round(i)}`:"lighter_load"===s&&null!==t?`\u05e7\u05d5\u05e9\u05d9 \u05de\u05de\u05d5\u05e6\u05e2 ${t.toFixed(1)}/5`:"lecturer_quality"===s&&null!==r?`\u05d3\u05d9\u05e8\u05d5\u05d2 \u05e1\u05d8\u05d5\u05d3\u05e0\u05d8\u05d9\u05dd ${r.toFixed(1)}/5`:"interesting_content"===s&&Xe(n)?"\u05de\u05d9\u05d3\u05e2 \u05e2\u05e9\u05d9\u05e8 \u05e2\u05dc \u05ea\u05d5\u05db\u05df \u05d4\u05e7\u05d5\u05e8\u05e1":"schedule_convenience"===s&&Qe(n)?"\u05de\u05e2\u05e8\u05db\u05ea \u05e9\u05e2\u05d5\u05ea \u05e4\u05d5\u05e8\u05e1\u05de\u05d4":null})({priority:e,grade:o,difficulty:c,rating:d,course:i})).filter(Boolean).slice(0,2);return"met"===u&&p.push("\u05d3\u05e8\u05d9\u05e9\u05d5\u05ea \u05d4\u05e7\u05d3\u05dd \u05d4\u05d5\u05e9\u05dc\u05de\u05d5"),p.length||p.push("\u05de\u05ea\u05d0\u05d9\u05dd \u05dc\u05e9\u05e0\u05ea \u05d4\u05dc\u05d9\u05de\u05d5\u05d3 \u05d5\u05dc\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05e9\u05d4\u05d5\u05d2\u05d3\u05e8\u05d5"),{course:i,score:h,reasons:p.slice(0,3),prerequisiteStatus:u,confidence:es(a),metrics:{grade:o,difficulty:c,rating:d,reviewCount:a.reviewCount,schedulePublished:m}}},is=e=>{let{courses:s=[],profile:i={},takenCourses:t=[],limit:r=4}=e;const n=new Set(s.filter(e=>0===Ge(e)).map(Ue).filter(Boolean)),l=new Set(t.filter(e=>!["failed","planned"].includes(null===e||void 0===e?void 0:e.status)).map(Ue).filter(Boolean));return s.filter(e=>Ge(e)>0).filter(e=>!l.has(Ue(e))).map(e=>ss({course:e,profile:i,takenCourses:t,ignoredPrerequisiteCourseCodes:n})).filter(e=>["none","met"].includes(e.prerequisiteStatus)).sort((e,s)=>s.score-e.score).slice(0,r)},ts=(e,s)=>{const i=(0,Le.lw)(Je(e));return!s||"both"===s||!i.length||i.includes("B"===s?Le.OF:Le.Vh)},rs=(e,s)=>{const i="B"===s?Le.OF:Le.Vh;return((null===e||void 0===e?void 0:e.groups)||[]).some(e=>{var t,r;const n=(null===e||void 0===e||null===(t=e.periodName)||void 0===t?void 0:t.he)||(null===e||void 0===e||null===(r=e.periodName)||void 0===r?void 0:r.en)||"",l=(0,Le.lw)(n);return(!s||"both"===s||!l.length||l.includes(i))&&((null===e||void 0===e?void 0:e.studySessions)||[]).some(e=>void 0!==(null===e||void 0===e?void 0:e.startTime)&&void 0!==(null===e||void 0===e?void 0:e.endTime))})},ns=(e,s)=>{var i,t;const{metrics:r}=e,n=Number(null===(i=e.requirement)||void 0===i?void 0:i.priority)||0,l=Number(null!==(t=e.preferenceScore)&&void 0!==t?t:e.score-n)||0,a=n*Ge(e.course);return"lighter"===s?a+l+(null===r.difficulty?0:5*(6-r.difficulty)):"trusted"===s?a+l+1.2*Math.min(r.reviewCount,25):a+l},ls=e=>{var s;return String((null===e||void 0===e||null===(s=e.course)||void 0===s?void 0:s._id)||Ue(null===e||void 0===e?void 0:e.course))},as=(e,s,i)=>{const t=e.requirement;if(null===t||void 0===t||!t.key||"Compulsory"===t.type||!Number.isFinite(t.remainingCredits))return 0;const r=[...i,...s].filter(e=>{var s;return(null===(s=e.requirement)||void 0===s?void 0:s.key)===t.key}).reduce((e,s)=>e+Ge(s.course),0),n=r+Ge(e.course),l=Math.max(0,r-t.remainingCredits),a=Math.max(0,n-t.remainingCredits),o="CompulsoryElective"===t.type?140:60;return(a-l)*Math.max(0,t.priority-o)},os=function(e,s,i){let{fixedPoints:t=0,lockedCourseIds:r=[]}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const n=[...e].sort((e,s)=>ns(s,i)-ns(e,i)),l=new Set(r.map(String)),a=n.filter(e=>l.has(ls(e))),o=n.filter(e=>!l.has(ls(e))),c=a.reduce((e,s)=>e+Ge(s.course),0),d=Math.max(0,10-a.length);let u=[{items:[],points:0,score:0}];
1o.forEach(e=>{const r=Ge(e.course);if(!r)return;const n=[...u];u.forEach(l=>{if(l.items.length>=d)return;t+c+l.points+r>Number(s)+2||n.push({items:[...l.items,e],points:l.points+r,score:l.score+ns(e,i)-as(e,l.items,a)})});const l=new Map;n.forEach(e=>{const s=`${e.points.toFixed(2)}:${e.items.length}`,i=l.get(s);(!i||e.score>i.score)&&l.set(s,e)}),u=[...l.values()].sort((e,s)=>s.score-e.score).slice(0,600)});const m=e=>{const i=t+c+e.points,r=i>=Number(s)-2&&i<=Number(s)+2,n=(e=>{let s=0;const i=new Map;e.forEach(e=>{const t=e.requirement||{},r=Ge(e.course);if("Compulsory"===t.type&&!t.isFuture)return void(s+=r*(Number(t.priority)||400));if("CompulsoryElective"!==t.type)return;const n=t.key||ls(e),l=i.get(n)||{credits:0,limit:Number.isFinite(t.remainingCredits)?t.remainingCredits:1/0,priority:Number(t.priority)||260};l.credits+=r,i.set(n,l)});const t=[...i.values()].reduce((e,s)=>e+Math.min(s.credits,s.limit)*s.priority,0);return{compulsory:s,requiredElective:t}})([...a,...e.items]);return{...e,...n,complete:r,total:i,distance:Math.abs(Number(s)-i)}},h=u.map(m).sort((e,s)=>Number(s.complete)-Number(e.complete)||(e.complete&&s.complete?s.compulsory-e.compulsory||s.requiredElective-e.requiredElective||e.distance-s.distance||s.score-e.score:e.distance-s.distance||s.score-e.score)||s.total-e.total)[0]||m({items:[],points:0,score:0});return{selected:[...a,...h.items],points:h.total,isComplete:h.complete}},cs=(e,s)=>{const i=e.map(e=>{var i;return null===(i=e.metrics)||void 0===i?void 0:i[s]}).filter(e=>null!==e&&void 0!==e);return i.length?i.reduce((e,s)=>e+s,0)/i.length:null},ds=[{key:"balanced",title:"\u05d4\u05d4\u05ea\u05d0\u05de\u05d4 \u05d4\u05d8\u05d5\u05d1\u05d4 \u05d1\u05d9\u05d5\u05ea\u05e8",description:"\u05de\u05d0\u05d6\u05df \u05d1\u05d9\u05df \u05d4\u05d4\u05e2\u05d3\u05e4\u05d5\u05ea, \u05d0\u05d9\u05db\u05d5\u05ea \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d5\u05d4\u05ea\u05e7\u05d3\u05de\u05d5\u05ea \u05d1\u05ea\u05d5\u05d0\u05e8."},{key:"lighter",title:"\u05e1\u05de\u05e1\u05d8\u05e8 \u05e8\u05d2\u05d5\u05e2 \u05d9\u05d5\u05ea\u05e8",description:"\u05e0\u05d5\u05ea\u05df \u05e2\u05d3\u05d9\u05e4\u05d5\u05ea \u05dc\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e2\u05dd \u05e2\u05d5\u05de\u05e1 \u05d5\u05e7\u05d5\u05e9\u05d9 \u05de\u05ea\u05d5\u05e0\u05d9\u05dd \u05d9\u05d5\u05ea\u05e8."},{key:"trusted",title:"\u05d1\u05d7\u05d9\u05e8\u05d4 \u05e2\u05dd \u05d9\u05d5\u05ea\u05e8 \u05d5\u05d3\u05d0\u05d5\u05ea",description:"\u05de\u05e2\u05d3\u05d9\u05e3 \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e2\u05dd \u05d9\u05d5\u05ea\u05e8 \u05d1\u05d9\u05e7\u05d5\u05e8\u05d5\u05ea \u05d5\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05ea\u05d5\u05de\u05db\u05d9\u05dd."}],us={Compulsory:"\u05d7\u05d5\u05d1\u05d4",CompulsoryElective:"\u05d7\u05d5\u05d1\u05ea \u05d1\u05d7\u05d9\u05e8\u05d4",Elective:"\u05d1\u05d7\u05d9\u05e8\u05d4",Cornerstone:"\u05d0\u05d1\u05e0\u05d9 \u05e4\u05d9\u05e0\u05d4",Supplementary:"\u05de\u05e9\u05dc\u05d9\u05de\u05d9\u05dd"},ms=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,t=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];const r=new Map,n=Number(i),l=new Map(t.filter(e=>"failed"!==(null===e||void 0===e?void 0:e.status)).map(e=>[Ue(e),e]).filter(e=>{let[s]=e;return Boolean(s)}));(0,Fe.dG)(e||{}).forEach((e,s)=>{let{scope:i,threshold:t}=e;const a=(0,Fe.mZ)(t),o=(0,Fe.k)(t),c=Number(t.minNaz),d=(t.courses||[]).reduce((e,s)=>e+(l.has((0,Fe.n)(s))?Ge(s):0),0),u=Number.isFinite(c)&&c>0?Math.max(0,c-d):1/0,m=`${i}:${s}:${a}`;(t.courses||[]).forEach(e=>{const s=(0,Fe.n)(e);if(!s)return;const t=Number.isFinite(n)&&Number.isFinite(o)&&o>n;let l="Compulsory"===a?t?180:400:"CompulsoryElective"===a?260:140;0===u&&"Compulsory"!==a&&(l="CompulsoryElective"===a?100:60);const c={type:a,label:us[a],scope:i,year:o,priority:l,isFuture:t,key:m,remainingCredits:u},d=r.get(s);(!d||c.priority>d.priority)&&r.set(s,c)})});return(0,Ye.So)(s).forEach((e,s)=>{r.has(s)||r.set(s,{type:"Cornerstone",label:us.Cornerstone,scope:"degree",year:1/0,priority:120,isFuture:!1})}),r},hs=e=>{let{courses:s=[],cornerstoneCourses:i=[],existingCourses:t=[],excludedCourseIds:r=[],lockedCourseIds:n=[],program:l=null,profile:a={},takenCourses:o=[],targetPoints:c=18,semester:d="A"}=e;const u=new Set(r.map(String)),m=new Set(t.map(e=>String(e.courseId||e._id))),h=ms(l,i,a.studyYear,o),p=is({courses:s.filter(e=>ts(e,d)).filter(e=>rs(e,d)),profile:a,takenCourses:o,limit:s.length}).filter(e=>!m.has(ls(e))&&!u.has(ls(e))).map(e=>{const s=h.get(Ue(e.course))||{type:"Supplementary",label:us.Supplementary,scope:"degree",year:1/0,priority:60,isFuture:!1};return{...e,requirement:s,preferenceScore:e.score,score:e.score+s.priority,reasons:[`\u05de\u05e7\u05d3\u05dd \u05d3\u05e8\u
105d9\u05e9\u05ea ${s.label}`,...e.reasons].slice(0,3)}}),x=new Set,v=t.reduce((e,s)=>e+Ge(s),0);return ds.map(e=>{const{selected:s,points:i,isComplete:r}=os(p,Number(c),e.key,{fixedPoints:v,lockedCourseIds:n}),l=s.reduce((e,s)=>{var i;const t=(null===(i=s.requirement)||void 0===i?void 0:i.type)||"Supplementary";return e[t]=(e[t]||0)+Ge(s.course),e},{});return{...e,courses:s,existingCourses:t,points:i,isComplete:r,creditGap:Math.max(0,Number(c)-i),requirementBreakdown:l,averageDifficulty:cs(s,"difficulty"),averageGrade:cs(s,"grade"),coursesWithSchedule:s.filter(e=>e.metrics.schedulePublished).length}}).filter(e=>{if(!e.courses.length&&!e.existingCourses.length)return!1;const s=`${function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(e=>{let{course:s}=e;return String((null===s||void 0===s?void 0:s._id)||Ue(s))}).sort().join("|")}(e.courses)}|${t.map(e=>e.courseId).sort().join("|")}`;return!x.has(s)&&(x.add(s),!0)})},ps=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;if(!s||"both"===s)return e;const i="B"===s?Le.OF:Le.Vh;return e.filter(e=>{var s,t;const r=(null===e||void 0===e||null===(s=e.periodName)||void 0===s?void 0:s.he)||(null===e||void 0===e||null===(t=e.periodName)||void 0===t?void 0:t.en)||"",n=(0,Le.lw)(r);return!n.length||n.includes(i)})},xs="https://api.studentinsight.co.il",vs=async function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=await fetch(e,{...s,headers:{Authorization:`Bearer ${localStorage.getItem("jwtToken")}`,...s.headers||{}}}),t=await i.json().catch(()=>({}));if(!i.ok){const e=new Error(t.message||"\u05dc\u05d0 \u05d4\u05e6\u05dc\u05d7\u05e0\u05d5 \u05dc\u05d8\u05e2\u05d5\u05df \u05d0\u05ea \u05e0\u05ea\u05d5\u05e0\u05d9 \u05d4\u05ea\u05db\u05e0\u05d5\u05df.");throw e.status=i.status,e}return t},gs=async(e,s)=>{const i=await vs(`${xs}/programs/cornerstones?activeYear=${encodeURIComponent(s)}`).catch(()=>[]),t=[...(0,Fe.IG)(e)],r=i.map(Fe.n).filter(Boolean),n=[...new Set([...t,...r])],l=n.length?await(async(e,s)=>{const i=[];for(let t=0;t<e.length;t+=100)i.push(e.slice(t,t+100));return(await Promise.all(i.map(e=>{const i=new URLSearchParams({courseCodes:e.join(","),page:"1",limit:String(e.length),view:"full",available:"available",sortBy:"courseSymbol",sortOrder:"asc",year:String(s)});return vs(`${xs}/courses?${i}`)}))).flatMap(e=>e.data||[])})(n,s):[];return{courses:l,cornerstoneCourses:i}},js={high:"\u05d0\u05de\u05d9\u05e0\u05d5\u05ea \u05d2\u05d1\u05d5\u05d4\u05d4",medium:"\u05d0\u05de\u05d9\u05e0\u05d5\u05ea \u05d1\u05d9\u05e0\u05d5\u05e0\u05d9\u05ea",limited:"\u05de\u05d9\u05d3\u05e2 \u05d7\u05dc\u05e7\u05d9"},fs=[{value:"A",label:"\u05e1\u05de\u05e1\u05d8\u05e8 \u05d0\u05f3"},{value:"B",label:"\u05e1\u05de\u05e1\u05d8\u05e8 \u05d1\u05f3"},{value:"both",label:"\u05e9\u05e0\u05ea\u05d9 / \u05d2\u05de\u05d9\u05e9"}],bs=[15,20,25,30,35],ys={},Ns=[],Cs=()=>(0,y.jsxs)("div",{className:"personalized-course-card is-loading","aria-hidden":"true",children:[(0,y.jsx)("span",{}),(0,y.jsxs)("div",{children:[(0,y.jsx)("i",{}),(0,y.jsx)("i",{})]})]}),ws=e=>{let{recommendation:s,academicYear:i}=e;const{course:t,reasons:r,confidence:n,prerequisiteStatus:l,metrics:a}=s,c=new URLSearchParams({s:"1"});return i&&c.set("year",String(i)),(0,y.jsxs)("article",{className:"personalized-course-card",children:[(0,y.jsxs)("div",{className:"personalized-course-card__top",children:[(0,y.jsx)("span",{className:"personalized-course-code",children:Ue(t)}),(0,y.jsxs)("span",{className:`personalized-confidence is-${n}`,children:[(0,y.jsx)(o.A,{size:13}),js[n]]})]}),(0,y.jsxs)("div",{className:"personalized-course-card__copy",children:[(0,y.jsx)("h3",{children:t.name}),(0,y.jsx)("p",{children:t.department||t.departmentName||"\u05e7\u05d5\u05e8\u05e1 \u05d1\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05d4\u05dc\u05d9\u05de\u05d5\u05d3\u05d9\u05dd"})]}),(0,y.jsx)("div",{className:"personalized-reason-list","aria-label":r.join(". "),children:r.slice(0,1).map(e=>(0,y.jsxs)("span",{children:[(0,y.jsx)(Ae.A,{size:13}),e]},e))}),(0,y.jsxs)("div",{className:"personalized-course-card__footer",children:[(0,y.jsxs)("div",{children:[(0,y.jsxs)("span",{children:[t.academicPoints||0," \u05e0\u05f4\u05d6"]}),null!==a.rating?(0,y.jsxs)("span",{className:"personalized-rating-chip",children:[a.rating.toFixed(1)," \u05d3\u05d9\u05e8\u
105d5\u05d2"]}):null,"none"===l?(0,y.jsx)("span",{className:"personalized-prerequisite-chip",children:"\u05dc\u05dc\u05d0 \u05d3\u05e8\u05d9\u05e9\u05d5\u05ea \u05e7\u05d3\u05dd"}):null]}),(0,y.jsxs)(j.N_,{to:`/course/${encodeURIComponent(Ue(t))}?${c}`,children:["\u05dc\u05e4\u05e8\u05d8\u05d9\u05dd ",(0,y.jsx)(pe.A,{size:15})]})]})]})},Ss=e=>{let{plan:s,selected:i,onSelect:t}=e;return(0,y.jsxs)("button",{type:"button",className:"semester-plan-card "+(i?"is-selected":""),onClick:t,"aria-pressed":i,children:[(0,y.jsxs)("div",{className:"semester-plan-card__heading",children:[(0,y.jsx)("span",{className:"semester-plan-radio",children:i?(0,y.jsx)(Ae.A,{size:14}):null}),(0,y.jsxs)("div",{children:[(0,y.jsx)("strong",{children:s.title}),(0,y.jsx)("small",{children:s.description})]}),(0,y.jsxs)("b",{className:s.isComplete?"is-complete":"is-short",children:[s.points," \u05e0\u05f4\u05d6"]})]}),(0,y.jsxs)("div",{className:"semester-plan-metrics",children:[(0,y.jsxs)("span",{children:[(0,y.jsx)(n.A,{size:14}),s.courses.length," \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd"]}),(0,y.jsxs)("span",{children:[(0,y.jsx)(ke.A,{size:14}),null===s.averageDifficulty?"\u05e7\u05d5\u05e9\u05d9 \u05dc\u05d0 \u05d9\u05d3\u05d5\u05e2":`\u05e7\u05d5\u05e9\u05d9 ${s.averageDifficulty.toFixed(1)}`]}),(0,y.jsxs)("span",{children:[(0,y.jsx)(M.A,{size:14}),s.coursesWithSchedule," \u05e2\u05dd \u05de\u05e2\u05e8\u05db\u05ea"]}),(0,y.jsxs)("span",{className:s.isComplete?"is-plan-complete":"is-plan-short",children:[(0,y.jsx)(ze.A,{size:14}),s.isComplete?"\u05e2\u05d5\u05de\u05d3 \u05d1\u05d9\u05e2\u05d3":`\u05d7\u05e1\u05e8\u05d5\u05ea ${s.creditGap} \u05e0\u05f4\u05d6`]})]}),(0,y.jsx)("ul",{children:s.courses.map(e=>{let{course:s}=e;return(0,y.jsxs)("li",{children:[(0,y.jsx)("span",{children:Ue(s)}),(0,y.jsx)("strong",{children:s.name}),(0,y.jsxs)("small",{children:[s.academicPoints||0," \u05e0\u05f4\u05d6"]})]},s._id)})})]})},As=e=>{let{courses:s}=e;return s.length?(0,y.jsxs)("section",{className:"integrated-blocked-requirements","aria-label":"\u05d7\u05d5\u05d1\u05d5\u05ea \u05d7\u05e1\u05d5\u05de\u05d5\u05ea",children:[(0,y.jsxs)("header",{children:[(0,y.jsx)(he.A,{size:19}),(0,y.jsxs)("div",{children:[(0,y.jsx)("strong",{children:"\u05d7\u05d5\u05d1\u05d5\u05ea \u05d7\u05e1\u05d5\u05de\u05d5\u05ea"}),(0,y.jsx)("span",{children:"\u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d4\u05d0\u05dc\u05d4 \u05e0\u05d3\u05e8\u05e9\u05d9\u05dd \u05dc\u05ea\u05d5\u05d0\u05e8, \u05d0\u05da \u05d0\u05d9 \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d0\u05d5\u05ea\u05dd \u05dc\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05d4\u05e0\u05d5\u05db\u05d7\u05d9\u05ea."})]}),(0,y.jsx)("b",{children:s.length})]}),(0,y.jsx)("div",{children:s.map(e=>{let{course:s,courseCode:i,reason:t}=e;return(0,y.jsxs)("article",{children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("strong",{children:s.name}),(0,y.jsxs)("span",{children:[i," \xb7 ",Ge(s)," \u05e0\u05f4\u05d6 \xb7 \u05d7\u05d5\u05d1\u05d4"]})]}),(0,y.jsxs)("p",{children:[(0,y.jsx)(he.A,{size:14}),t]})]},i)})})]}):null},ks=["\u05d0\u05f3","\u05d1\u05f3","\u05d2\u05f3","\u05d3\u05f3","\u05d4\u05f3","\u05d5\u05f3","\u05d6\u05f3"],zs=(e,s)=>{const i=Math.max(0,Number(e||1)-1);return`\u05e9\u05e0\u05d4 ${ks[i]||String(i+1)} \u05e1\u05de\u05e1\u05d8\u05e8 ${"B"===s?"\u05d1\u05f3":"\u05d0\u05f3"}`},_s=(e,s)=>"both"===s||Boolean((e=>{const s=String(e||"").replace(/[\s'\u05f3\u05f4"]/g,"").toLowerCase();if(s.includes("\u05e9\u05e0\u05ea\u05d9")||s.includes("annual"))return 3;let i=0;return(s.includes("\u05d0")||s.includes("semester1"))&&(i|=1),(s.includes("\u05d1")||s.includes("semester2"))&&(i|=2),i||3})(e)&("B"===s?2:1)),$s=(e,s)=>(e||[]).flatMap(e=>(e.selectedSchedules||[]).flatMap(i=>(i.days||[]).map(t=>({...t,courseId:e.courseId,courseName:s.get(String(e.courseId))||e.courseId,group:i.group,semester:i.semester,type:i.type})))),Es=e=>{let{coursePlans:s,courseNames:i}=e;const t=$s(s,i);return(0,y.jsx)("div",{className:"integrated-plan-calendar","aria-label":"\u05ea\u05e6\u05d5\u05d2\u05d4 \u05de\u05e7\u05d3\u05d9\u05de\u05d4 \u05e9\u05dc \u05d4\u05de\u05e2\u05e8\u
105db\u05ea",children:["\u05d0","\u05d1","\u05d2","\u05d3","\u05d4"].map(e=>(0,y.jsxs)("section",{children:[(0,y.jsxs)("strong",{children:["\u05d9\u05d5\u05dd ",e]}),t.filter(s=>s.day===e).length?t.filter(s=>s.day===e).sort((e,s)=>e.startHour.localeCompare(s.startHour)).map(e=>(0,y.jsxs)("span",{children:[(0,y.jsxs)("b",{children:[e.startHour,"\u2013",e.endHour]}),(0,y.jsx)("em",{children:e.courseName}),(0,y.jsxs)("small",{children:[e.type," \xb7 \u05e7\u05d1\u05d5\u05e6\u05d4 ",e.group]})]},`${e.courseId}-${e.type}-${e.group}-${e.startHour}`)):(0,y.jsx)("i",{children:"\u05d9\u05d5\u05dd \u05e4\u05e0\u05d5\u05d9"})]},e))})},Is=e=>((null===e||void 0===e?void 0:e.selectedSchedules)||[]).map(e=>{const s=(e.days||[]).map(e=>`\u05d9\u05d5\u05dd ${e.day} ${e.startHour}\u2013${e.endHour}`).join(", ");return`${e.type} \xb7 \u05e7\u05d1\u05d5\u05e6\u05d4 ${e.group}${s?` \xb7 ${s}`:""}`}).join(" | "),Ms=e=>{let{conflicts:s=[],overlapCount:i=0}=e;return i?(0,y.jsxs)("div",{className:"integrated-schedule-conflict-warning",role:"alert",children:[(0,y.jsx)(he.A,{size:19}),(0,y.jsxs)("div",{children:[(0,y.jsx)("strong",{children:"\u05dc\u05d0 \u05e0\u05de\u05e6\u05d0\u05d4 \u05de\u05e2\u05e8\u05db\u05ea \u05dc\u05dc\u05d0 \u05d7\u05e4\u05d9\u05e4\u05d5\u05ea"}),(0,y.jsx)("span",{children:"\u05e0\u05d1\u05d7\u05e8 \u05d4\u05e9\u05d9\u05d1\u05d5\u05e5 \u05e2\u05dd \u05de\u05e1\u05e4\u05e8 \u05d4\u05d7\u05e4\u05d9\u05e4\u05d5\u05ea \u05d4\u05e0\u05de\u05d5\u05da \u05d1\u05d9\u05d5\u05ea\u05e8. \u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05de\u05e9\u05d9\u05da \u05dc\u05d0\u05d9\u05e9\u05d5\u05e8 \u05d5\u05dc\u05e9\u05e0\u05d5\u05ea \u05e7\u05d1\u05d5\u05e6\u05d5\u05ea \u05d0\u05d7\u05e8 \u05db\u05da \u05d1\u05d1\u05d5\u05e0\u05d4 \u05d4\u05de\u05e2\u05e8\u05db\u05ea."}),s.length?(0,y.jsx)("ul",{children:s.slice(0,5).map((e,s)=>(0,y.jsxs)("li",{children:[e.firstCourseName," \u05de\u05d5\u05dc ",e.secondCourseName,e.day?` \xb7 \u05d9\u05d5\u05dd ${e.day}`:"",e.minutes?` \xb7 ${e.minutes} \u05d3\u05e7\u05d5\u05ea`:""]},`${e.firstCourseName}-${e.secondCourseName}-${e.day}-${s}`))}):null]})]}):null},qs=e=>{let{coursePlans:s,overlapCount:i=0}=e;const t=$s(s,new Map),r=[...new Set(t.map(e=>e.day))],n=t.map(e=>e.startHour).sort()[0],l=t.map(e=>e.endHour).sort().at(-1),a=r.reduce((e,s)=>{const i=t.filter(e=>e.day===s).sort((e,s)=>e.startHour.localeCompare(s.startHour));return e+i.slice(1).filter((e,s)=>e.startHour>i[s].endHour).length},0);return(0,y.jsxs)("div",{className:"integrated-schedule-summary",children:[(0,y.jsxs)("span",{children:[(0,y.jsx)("b",{children:r.length})," \u05d9\u05de\u05d9 \u05dc\u05d9\u05de\u05d5\u05d3"]}),(0,y.jsxs)("span",{children:[(0,y.jsx)("b",{children:n&&l?`${n}\u2013${l}`:"\u2014"})," \u05d8\u05d5\u05d5\u05d7 \u05e9\u05e2\u05d5\u05ea"]}),(0,y.jsxs)("span",{children:[(0,y.jsx)("b",{children:a})," \u05d7\u05dc\u05d5\u05e0\u05d5\u05ea \u05e9\u05d1\u05d5\u05e2\u05d9\u05d9\u05dd"]}),(0,y.jsxs)("span",{className:i?"is-warning":"is-valid",children:[(0,y.jsx)("b",{children:i})," \u05d7\u05e4\u05d9\u05e4\u05d5\u05ea"]})]})},Ps=e=>{var s,i;let{activeAcademicYear:n,academicYear:l,onHide:a,profile:c,show:d,takenCourses:u,user:m}=e;const h=(0,L.Zp)(),{fetchUser:x=async()=>{}}=(0,t.useContext)(r.R)||{},[v,g]=(0,t.useState)("A"),[j,f]=(0,t.useState)(25),[b,N]=(0,t.useState)(1),[C,w]=(0,t.useState)(0),[S,A]=(0,t.useState)(null),[k,z]=(0,t.useState)([]),[_,$]=(0,t.useState)([]),[I,q]=(0,t.useState)(!1),[P,F]=(0,t.useState)(""),[B,T]=(0,t.useState)(""),[H,Y]=(0,t.useState)(""),[R,O]=(0,t.useState)(!1),[D,U]=(0,t.useState)([]),[G,V]=(0,t.useState)([]),[J,K]=(0,t.useState)(null),[W,Z]=(0,t.useState)([]),[Q,X]=(0,t.useState)({conflicts:[],overlapCount:0,overlapMinutes:0}),[ee,se]=(0,t.useState)(""),[ie,te]=(0,t.useState)(null),[re,ne]=(0,t.useState)(!1),[le,ae]=(0,t.useState)(""),oe=Boolean(n&&l&&Number(n)!==Number(l)),ce=(0,t.useCallback)(async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A";q(!0),ae("");try{var i,t,r,n;const a=await function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const i=new URLSearchParams({year:String(e)});return s&&i.set("timelineName",s),vs(`${xs}/user/semester-planner-context?${i}`)}(l,e);if(!a.program)throw new Error("\u05d9\u05e9 \u05dc\u05d4\u05d2\u05d3\u05d9\u05e8 \u05de\u05e1\u05dc\u05d5\u05dc \u05dc\u05d9\u05de\u05d5\u05d3\u05d9\u05dd \u05dc\u05e4\u05e0\u05d9 \u05d9\u05e6\u05d9\u05e8\u
105ea \u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05e1\u05de\u05e1\u05d8\u05e8\u05d9\u05d0\u05dc\u05d9\u05ea.");const o=await gs(a.program,l),d=new Map(o.courses.map(e=>[String(e._id),e]));((null===(i=a.activeSchedule)||void 0===i?void 0:i.courses)||[]).forEach(e=>{var s;const i=d.get(String(e.courseId))||{},t=e.coursePeriodName;d.set(String(e.courseId),{...e,...i,_id:e.courseId,courseCode:i.courseCode||e.courseCode,courseSymbol:i.courseSymbol||e.courseCode,name:i.name||e.name,semester:i.semester||("object"===typeof t?(null===t||void 0===t?void 0:t.he)||(null===t||void 0===t?void 0:t.en):t),availableThisYear:!0,groups:null!==(s=i.groups)&&void 0!==s&&s.length?i.groups:e.groups||[]})}),A(a),z([...d.values()]),$(o.cornerstoneCourses),F((null===(t=a.timeline)||void 0===t?void 0:t.name)||"__new__"),T((null===(r=a.timeline)||void 0===r?void 0:r.name)||"\u05d4\u05ea\u05db\u05e0\u05d5\u05df \u05e9\u05dc\u05d9");const u=zs(c.studyYear,s),m=((null===(n=a.timeline)||void 0===n?void 0:n.semestersOrder)||[]).find(e=>e===u);Y(m||u),w(0),K(null),U([]),V([]),O(!1)}catch(a){ae(a.message||"\u05dc\u05d0 \u05d4\u05e6\u05dc\u05d7\u05e0\u05d5 \u05dc\u05d4\u05db\u05d9\u05df \u05d0\u05ea \u05e0\u05ea\u05d5\u05e0\u05d9 \u05d4\u05ea\u05db\u05e0\u05d5\u05df.")}finally{q(!1)}},[l,c.studyYear]);(0,t.useEffect)(()=>{d&&"guest"!==(null===m||void 0===m?void 0:m.role)&&(N(1),te(null),O(!1),ce())},[ce,d,null===m||void 0===m?void 0:m.role]);const de=(0,t.useMemo)(()=>{return((null===(e=null===S||void 0===S?void 0:S.timeline)||void 0===e?void 0:e.semesters)||[]).flatMap(e=>(e.courses||[]).map(s=>({...s,semester:e.title})));var e},[null===S||void 0===S?void 0:S.timeline]),ue=(0,t.useMemo)(()=>[...(null===S||void 0===S?void 0:S.takenCourses)||u||[],...de],[null===S||void 0===S?void 0:S.takenCourses,u,de]),xe=(0,t.useMemo)(()=>new Set(k.filter(e=>0===Ge(e)).map(Ue).filter(Boolean)),[k]),ve=(0,t.useMemo)(()=>new Map(k.filter(e=>Ge(e)>0).map(e=>[Ue(e),e])),[k]),ge=(0,t.useMemo)(()=>{var e;return((null===S||void 0===S||null===(e=S.activeSchedule)||void 0===e?void 0:e.courses)||[]).filter(e=>Ge(e)>0).filter(e=>{var s;if(null!==(s=e.selectedSchedules)&&void 0!==s&&s.length)return e.selectedSchedules.some(e=>_s(e.semester,v));const i=e.coursePeriodName;return _s("object"===typeof i?(null===i||void 0===i?void 0:i.he)||(null===i||void 0===i?void 0:i.en):i,v)})},[null===S||void 0===S||null===(s=S.activeSchedule)||void 0===s?void 0:s.courses,v]),je=(0,t.useMemo)(()=>ge.filter(e=>{var s;return null===(s=e.selectedSchedules)||void 0===s?void 0:s.length}),[ge]),fe=(0,t.useMemo)(()=>{const e=ge.filter(e=>{var s;return!(null!==(s=e.selectedSchedules)&&void 0!==s&&s.length)}).map(e=>String(e.courseId));return de.filter(e=>"planned"===e.status&&e.semester===H).forEach(s=>{const i=ve.get(Ue(s));null!==i&&void 0!==i&&i._id&&e.push(String(i._id))}),[...new Set(e)]},[ve,ge,de,H]),be=(0,t.useMemo)(()=>{const e=[];return de.filter(e=>"planned"===e.status&&e.semester!==H).forEach(s=>{const i=ve.get(Ue(s));null!==i&&void 0!==i&&i._id&&e.push(String(i._id))}),e},[ve,de,H]),ye=(0,t.useMemo)(()=>[...new Set([...fe,...D])],[fe,D]),Ne=(0,t.useMemo)(()=>[...new Set([...be,...G])],[be,G]),Ce=(0,t.useMemo)(()=>hs({courses:k,cornerstoneCourses:_,existingCourses:je,excludedCourseIds:Ne,lockedCourseIds:ye,program:null===S||void 0===S?void 0:S.program,profile:c,takenCourses:ue,semester:v,targetPoints:j}),[Ne,ye,_,je,null===S||void 0===S?void 0:S.program,k,ue,c,v,j]),we=Ce[C]||Ce[0],ke=((null===we||void 0===we?void 0:we.courses)||[]).map(e=>{let{course:s}=e;return String(s._id)}).join("|");(0,t.useEffect)(()=>{K(null)},[C,ke]);const Me=J||(null===we||void 0===we?void 0:we.courses)||Ns,qe=(0,t.useMemo)(()=>(e=>{let{courses:s=[],existingCourses:i=[],excludedCourseIds:t=[],program:r=null,selectedCourses:n=[],semester:l="A",studyYear:a,takenCourses:o=[]}=e;if(!r)return[];const c=(0,Fe.dG)(r||{}),d=c.flatMap(e=>{let{threshold:s}=e;return s.courses||[]}),u=new Map(s.map(e=>[Ue(e),e]).filter(e=>{let[s]=e;return s})),m=new Set([...s,...d].filter(e=>0===Ge(e)).map(Ue).filter(Boolean)),h=new Set(o.filter(e=>"failed"!==(null===e||void 0===e?void 0:e.status)).map(Ue).filter(
1Boolean)),p=new Set(n.map(e=>Ue(e.course||e)).filter(Boolean)),x=new Set(i.map(Ue).filter(Boolean)),v=new Set(t.map(String)),g=Number(a),j=new Map;return c.forEach((e,s)=>{let{scope:i,threshold:t}=e;if("Compulsory"!==(0,Fe.mZ)(t))return;const r=(0,Fe.k)(t);Number.isFinite(g)&&Number.isFinite(r)&&r>g||(t.courses||[]).forEach(e=>{const t=(0,Fe.n)(e);if(!t||j.has(t))return;const n=u.get(t),a=n||e;if(0===Ge(a)||h.has(t)||p.has(t)||x.has(t))return;let c="",d="";if(n&&v.has(String(n._id)))c="excluded",d="\u05d4\u05d5\u05e1\u05e8 \u05de\u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05d4\u05e0\u05d5\u05db\u05d7\u05d9\u05ea";else if(n)if(ts(n,l)){const e=We(n,o,m);"unmet"===e.status?(c="prerequisites",d=`\u05d3\u05e8\u05d9\u05e9\u05d5\u05ea \u05e7\u05d3\u05dd \u05d7\u05e1\u05e8\u05d5\u05ea: ${e.missingCourses.map(e=>[e.courseCode,e.courseName].filter(Boolean).join(" \u2013 ")).join(" / ")}`):"unknown"===e.status?(c="prerequisites_unknown",d="\u05dc\u05d0 \u05e0\u05d9\u05ea\u05df \u05dc\u05e4\u05e2\u05e0\u05d7 \u05d0\u05ea \u05d3\u05e8\u05d9\u05e9\u05d5\u05ea \u05d4\u05e7\u05d3\u05dd \u05e9\u05dc \u05d4\u05e7\u05d5\u05e8\u05e1"):rs(n,l)||(c="schedule",d="\u05dc\u05d0 \u05e4\u05d5\u05e8\u05e1\u05de\u05d5 \u05e7\u05d1\u05d5\u05e6\u05d5\u05ea \u05d5\u05e9\u05e2\u05d5\u05ea \u05ea\u05e7\u05d9\u05e0\u05d5\u05ea \u05d1\u05e1\u05de\u05e1\u05d8\u05e8 \u05e9\u05e0\u05d1\u05d7\u05e8")}else{const e=Je(n);c="semester",d=e?`\u05d0\u05d9\u05e0\u05d5 \u05de\u05d5\u05e6\u05e2 \u05d1\u05e1\u05de\u05e1\u05d8\u05e8 \u05e9\u05e0\u05d1\u05d7\u05e8; \u05de\u05d5\u05e6\u05e2 \u05d1${"object"===typeof e?e.he||e.en:e}`:"\u05d0\u05d9\u05e0\u05d5 \u05de\u05d5\u05e6\u05e2 \u05d1\u05e1\u05de\u05e1\u05d8\u05e8 \u05e9\u05e0\u05d1\u05d7\u05e8"}else c="unavailable",d="\u05d0\u05d9\u05e0\u05d5 \u05de\u05d5\u05e6\u05e2 \u05d1\u05e9\u05e0\u05ea \u05d4\u05dc\u05d9\u05de\u05d5\u05d3\u05d9\u05dd \u05e9\u05e0\u05d1\u05d7\u05e8\u05d4";c&&j.set(t,{course:{...a,name:Ve(a)},courseCode:t,reason:d,reasonCode:c,requirement:{key:`${i}:${s}:Compulsory`,label:us.Compulsory,type:"Compulsory",year:r}})})}),[...j.values()].sort((e,s)=>Number(e.requirement.year||1/0)-Number(s.requirement.year||1/0)||e.courseCode.localeCompare(s.courseCode,"he",{numeric:!0}))})({courses:k,existingCourses:je,excludedCourseIds:Ne,program:null===S||void 0===S?void 0:S.program,selectedCourses:Me,semester:v,studyYear:c.studyYear,takenCourses:ue}),[Ne,Me,je,null===S||void 0===S?void 0:S.program,k,ue,c.studyYear,v]),Pe=(0,t.useMemo)(()=>je.reduce((e,s)=>e+Ge(s),Me.reduce((e,s)=>e+Ge(s.course),0)),[Me,je]),Be=(0,t.useMemo)(()=>{const e=new Set,s=((null===S||void 0===S?void 0:S.takenCourses)||u||[]).filter(e=>"failed"!==e.status&&"planned"!==e.status).reduce((s,i)=>{const t=Ue(i);return!t||e.has(t)?s:(e.add(t),s+Ge(i))},0),i=de.reduce((s,i)=>{const t=Ue(i);return!t||"planned"!==i.status||e.has(t)?s:(e.add(t),s+Ge(i))},0),t=[...je,...Me.map(e=>{let{course:s}=e;return s})].reduce((s,i)=>{const t=Ue(i);return!t||e.has(t)?s:(e.add(t),s+Ge(i))},0),r=(0,Fe.XC)((0,Fe.P_)(null===S||void 0===S?void 0:S.program)),n=s+i,l=n+t;return{additions:t,after:l,before:n,target:r,beforePercent:r?Math.min(100,Math.round(n/r*100)):null,afterPercent:r?Math.min(100,Math.round(l/r*100)):null}},[Me,je,null===S||void 0===S?void 0:S.program,null===S||void 0===S?void 0:S.takenCourses,u,de]),Te=Pe>=Number(j)-2&&Pe<=Number(j)+2,Le=(0,t.useMemo)(()=>ms(null===S||void 0===S?void 0:S.program,_,c.studyYear,ue),[_,null===S||void 0===S?void 0:S.program,ue,c.studyYear]),Ye=(0,t.useMemo)(()=>{const e=new Map;return je.forEach(s=>e.set(String(s.courseId),s.name)),Me.forEach(s=>{let{course:i}=s;return e.set(String(i._id),i.name)}),e},[Me,je]),Re=(0,t.useMemo)(()=>new Map(W.map(e=>[String(e.courseId),e])),[W]);(0,t.useEffect)(()=>{if(b<2||!Me.length&&!je.length)return Z([]),void X({conflicts:[],overlapCount:0,overlapMinutes:0});try{const e=(e=>{var s,i;let{fixedCoursePlans:t=[],planCourses:r=[],semester:n="A"}=e;const l=r.map(e=>(null===e||void 0===e?void 0:e.course)||e).filter(Boolean);if(!l.length&&!t.length)return{conflicts:[],coursePlans:[],isRelaxed:!1,overlapCount:0,overlapMinutes:0};const a=[...t.map(e=>({course:e.courseId,courseName:e.name||e.courseCode||e.courseId,groups:[],locked:!0,selectedSchedules:e.selectedSchedules||[]})),...l.map(e=>({...e,course:e._id,courseName:e.name,groups:ps(e.groups||[],n),selectedSchedules:[]}))],o=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const s=(0,He.ae)({courses:a,preferences:{},relaxed:e});let i=s.getResult();const t=performance.now()+180;for(;!i.candidates.length&&!s.done&&performance.now()<t;)i=s.runFor(18);return i.candidates[0]||null},c=o(!1)||o(!0),d=null===c||void 0===c?void 0:c.combination;if(null===d||void 0===d||!d.length)throw new Error("\u05dc\u05d0 \u05e0\u05de\u05e6\u05d0\u05d5 \u05e7\u05d1\u05d5\u05e6\u05d5\u05ea \u05d5\u05e9\u05e2\u05d5\u05ea \u05de\u05dc\u05d0\u05d5\u05ea \u05dc\u05db\u05dc \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d1\u05e1\u05de\u05e1\u05d8\u05e8 \u05e9\u05e0\u05d1\u05d7\u05e8.");const u=[...t.map(e=>String(e.courseId)),...l.map(e=>String(e._id))].map(e=>({courseId:e,selectedSchedules:d.filter(s=>String(s.courseId)===e).map(s=>((e,s)=>{var i;if(null===e||void 0===e||null===(i=e.schedules)||void 0===i||!i.length)return null;const t=e.schedules[0].semester,r=`${t}-${e.type}-${e.group}`;return{courseId:s,group:e.group,groupId:e.schedules[0].groupId,type:e.type,semester:t,days:e.schedules.map(e=>({day:e.day,startHour:e.startHour,endHour:e.endHour,teacher:e.teacher,hall:e.hall,specialType:e.specialType,sessionId:e.sessionId,groupId:e.groupId,identifier:r}))}}
1)(s,e)).filter(Boolean)}));if(u.some(e=>!e.selectedSchedules.length))throw new Error("\u05dc\u05d7\u05dc\u05e7 \u05de\u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d0\u05d9\u05df \u05e7\u05d1\u05d5\u05e6\u05d5\u05ea \u05dc\u05d9\u05de\u05d5\u05d3 \u05d6\u05de\u05d9\u05e0\u05d5\u05ea \u05d1\u05e1\u05de\u05e1\u05d8\u05e8 \u05e9\u05e0\u05d1\u05d7\u05e8.");return{conflicts:(c.violations||[]).filter(e=>"OVERLAP"===e.code),coursePlans:u,isRelaxed:Boolean(c.relaxed),overlapCount:Number((null===(s=c.metrics)||void 0===s?void 0:s.overlapPairs)||0),overlapMinutes:Number((null===(i=c.metrics)||void 0===i?void 0:i.overlapMinutes)||0)}})({fixedCoursePlans:je,planCourses:Me,semester:v});Z(e.coursePlans),X({conflicts:e.conflicts,overlapCount:e.overlapCount,overlapMinutes:e.overlapMinutes}),se("")}catch(e){Z([]),X({conflicts:[],overlapCount:0,overlapMinutes:0}),se(e.message)}},[Me,je,v,b]);return(0,y.jsxs)(Se.A,{centered:!0,dialogClassName:"semester-planner-dialog",onHide:a,show:d,size:"xl",children:[(0,y.jsx)(Se.A.Header,{closeButton:!0,children:(0,y.jsxs)("div",{className:"semester-planner-title",children:[(0,y.jsx)("span",{children:(0,y.jsx)(_e.A,{size:21})}),(0,y.jsxs)("div",{children:[(0,y.jsx)(Se.A.Title,{as:"h2",children:"\u05ea\u05db\u05e0\u05e0\u05d5 \u05dc\u05d9 \u05d0\u05ea \u05d4\u05e1\u05de\u05e1\u05d8\u05e8"}),(0,y.jsx)("p",{children:"\u05de\u05ea\u05db\u05e0\u05d5\u05df \u05d4\u05d3\u05e8\u05d9\u05e9\u05d5\u05ea \u05d5\u05e2\u05d3 \u05de\u05e2\u05e8\u05db\u05ea \u05e9\u05e2\u05d5\u05ea \u05de\u05dc\u05d0\u05d4 \u05d5\u05de\u05e2\u05e7\u05d1 \u05ea\u05d5\u05d0\u05e8 \u05de\u05e1\u05d5\u05e0\u05db\u05e8\u05df."})]})]})}),(0,y.jsxs)(Se.A.Body,{children:[(0,y.jsx)("nav",{className:"integrated-planner-steps","aria-label":"\u05e9\u05dc\u05d1\u05d9 \u05d4\u05ea\u05db\u05e0\u05d5\u05df",children:["\u05d4\u05d2\u05d3\u05e8\u05d5\u05ea","\u05d1\u05e0\u05d9\u05d9\u05ea \u05ea\u05d5\u05db\u05e0\u05d9\u05ea","\u05d0\u05d9\u05e9\u05d5\u05e8"].map((e,s)=>(0,y.jsxs)("span",{className:b===s+1?"is-active":b>s+1?"is-done":"",children:[(0,y.jsx)("b",{children:b>s+1?(0,y.jsx)(Ae.A,{size:14}):s+1}),e]},e))}),1===b?(0,y.jsxs)("div",{className:"integrated-planner-setup",children:[(0,y.jsxs)("div",{className:"semester-planner-controls",children:[(0,y.jsxs)("fieldset",{children:[(0,y.jsx)("legend",{children:"\u05d0\u05d9\u05d6\u05d4 \u05e1\u05de\u05e1\u05d8\u05e8?"}),(0,y.jsx)("div",{children:fs.map(e=>(0,y.jsx)("button",{type:"button",className:v===e.value?"is-active":"",onClick:()=>{return s=e.value,g(s),Y(zs(c.studyYear,s)),w(0),K(null),void ae("");var s},children:e.label},e.value))})]}),(0,y.jsxs)("fieldset",{children:[(0,y.jsx)("legend",{children:"\u05d9\u05e2\u05d3 \u05e0\u05e7\u05d5\u05d3\u05d5\u05ea \u05d6\u05db\u05d5\u05ea"}),(0,y.jsx)("div",{children:bs.map(e=>(0,y.jsx)("button",{type:"button",className:j===e?"is-active":"",onClick:()=>{f(e),w(0)},children:e},e))})]})]}),(0,y.jsxs)("div",{className:"integrated-planner-destination",children:[(0,y.jsxs)("label",{children:[(0,y.jsx)("span",{children:"\u05ea\u05db\u05e0\u05d5\u05df \u05ea\u05d5\u05d0\u05e8"}),(0,y.jsxs)("select",{value:P,onChange:e=>(async e=>{if(F(e),"__new__"===e)return T("\u05d4\u05ea\u05db\u05e0\u05d5\u05df \u05e9\u05dc\u05d9"),A(e=>e?{...e,timeline:null,revision:{...e.revision,timelineUpdatedAt:null}}:e),void Y(zs(c.studyYear,v));await ce(e,v)})(e.target.value),disabled:I,children:[((null===S||void 0===S?void 0:S.timelines)||[]).map(e=>(0,y.jsx)("option",{value:e.name,children:e.name},e.name)),(0,y.jsx)("option",{value:"__new__",children:"\u05d9\u05e6\u05d9\u05e8\u05ea \u05ea\u05db\u05e0\u05d5\u05df \u05d7\u05d3\u05e9"})]})]}),"__new__"===P?(0,y.jsxs)("label",{children:[(0,y.jsx)("span",{children:"\u05e9\u05dd \u05d4\u05ea\u05db\u05e0\u05d5\u05df \u05d4\u05d7\u05d3\u05e9"}),(0,y.jsx)("input",{value:B,onChange:e=>T(e.target.value)})]}):null,(0,y.jsxs)("label",{children:[(0,y.jsx)("span",{children:"\u05e1\u05de\u05e1\u05d8\u05e8 \u05d1\u05ea\u05db\u05e0\u05d5\u05df"}),(0,y.jsx)("input",{list:"planner-semester-options",value:H,onChange:e=>Y(e.target.value)}),(0,y.jsx)("datalist",{id:"planner-semester-options",children:((null===S||void 0===S||null===(i=S.timeline)||void 0===i?void 0:i.semestersOrder)||[]).map(e=>(0,y.jsx)("option",{value:e},e))})]})]}),(0,y.jsxs)("label",{className:"integrated-planner-sync-choice",children:[(0,y.jsx)("input",{type:"checkbox",checked:R,onChange:e=>O(e.target.checked)}),(0,y.jsxs)("span",{children:[(0,y.jsx)("strong",{children:"\u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d2\u05dd \u05dc\u05de\u05e2\u05e7\u05d1 \u05d4\u05ea\u05d5\u05d0\u05e8"}),(0,y.jsx)("small",{children:"\u05d0\u05d5\u05e4\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9. \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d9\u05d5\u05e4\u05d9\u05e2\u05d5 \u05d1\u05de\u05e2\u05e7\u05d1 \u05db\u05de\u05ea\u05d5\u05db\u05e0\u05e0\u05d9\u05dd;
1 \u05db\u05e9\u05d4\u05d0\u05e4\u05e9\u05e8\u05d5\u05ea \u05db\u05d1\u05d5\u05d9\u05d4 \u05d4\u05dd \u05d9\u05d9\u05e9\u05de\u05e8\u05d5 \u05e8\u05e7 \u05d1\u05de\u05e2\u05e8\u05db\u05ea \u05d5\u05d1\u05ea\u05db\u05e0\u05d5\u05df \u05d4\u05ea\u05d5\u05d0\u05e8."})]})]}),(0,y.jsxs)("div",{className:"integrated-planner-context-summary",children:[(0,y.jsxs)("span",{children:[(0,y.jsx)(p.A,{size:18}),(0,y.jsx)("b",{children:ue.filter(e=>"taken"===e.status).length})," \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d4\u05d5\u05e9\u05dc\u05de\u05d5"]}),(0,y.jsxs)("span",{children:[(0,y.jsx)($e.A,{size:18}),(0,y.jsx)("b",{children:je.length})," \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e7\u05d9\u05d9\u05de\u05d9\u05dd \u05e0\u05e9\u05de\u05e8\u05d9\u05dd"]}),(0,y.jsxs)("span",{children:[(0,y.jsx)(ze.A,{size:18}),(0,y.jsxs)("b",{children:[j," \u05e0\u05f4\u05d6"]})," \u05d9\u05e2\u05d3 \u05de\u05d7\u05d9\u05d9\u05d1 \xb12"]})]}),(0,y.jsxs)("div",{className:"integrated-degree-progress",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("span",{children:"\u05d4\u05ea\u05e7\u05d3\u05de\u05d5\u05ea \u05d1\u05ea\u05d5\u05d0\u05e8 \u05dc\u05e4\u05e0\u05d9 \u05d4\u05d4\u05d7\u05dc\u05d4"}),(0,y.jsxs)("strong",{children:[Be.before," \u05e0\u05f4\u05d6",null!==Be.beforePercent?` \xb7 ${Be.beforePercent}%`:""]})]}),(0,y.jsx)(pe.A,{size:20}),(0,y.jsxs)("div",{className:"is-after",children:[(0,y.jsx)("span",{children:"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05ea"}),(0,y.jsxs)("strong",{children:[Be.after," \u05e0\u05f4\u05d6",null!==Be.afterPercent?` \xb7 ${Be.afterPercent}%`:""]}),(0,y.jsxs)("small",{children:["\u05ea\u05d5\u05e1\u05e4\u05ea \u05e9\u05dc ",Be.additions," \u05e0\u05f4\u05d6 \u05dc\u05ea\u05db\u05e0\u05d5\u05df \u05d4\u05ea\u05d5\u05d0\u05e8"]})]})]}),I?(0,y.jsxs)("div",{className:"integrated-planner-loading",children:[(0,y.jsx)(Ee.A,{className:"is-spinning"}),"\u05d8\u05d5\u05e2\u05e0\u05d9\u05dd \u05d3\u05e8\u05d9\u05e9\u05d5\u05ea, \u05ea\u05db\u05e0\u05d5\u05df \u05d5\u05de\u05e2\u05e8\u05db\u05ea \u05e7\u05d9\u05d9\u05de\u05ea..."]}):null]}):null,2===b&&Ce.length?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"semester-plan-grid",children:Ce.map((e,s)=>(0,y.jsx)(Ss,{plan:e,selected:(Ce[C]||Ce[0])===e,onSelect:()=>w(s)},e.key))}),(0,y.jsxs)("div",{className:"integrated-plan-workspace",children:[(0,y.jsxs)("header",{children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("small",{children:"\u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05d4\u05e0\u05d1\u05d7\u05e8\u05ea"}),(0,y.jsxs)("strong",{children:[Pe," / ",j," \u05e0\u05f4\u05d6"]})]}),(0,y.jsx)("div",{className:"integrated-plan-breakdown",children:Object.entries((null===we||void 0===we?void 0:we.requirementBreakdown)||{}).map(e=>{let[s,i]=e;return(0,y.jsxs)("span",{children:["Compulsory"===s?"\u05d7\u05d5\u05d1\u05d4":"CompulsoryElective"===s?"\u05d7\u05d5\u05d1\u05ea \u05d1\u05d7\u05d9\u05e8\u05d4":"Elective"===s?"\u05d1\u05d7\u05d9\u05e8\u05d4":"\u05e0\u05d5\u05e1\u05e3"," \xb7 ",i," \u05e0\u05f4\u05d6"]},s)})}),(0,y.jsxs)("button",{type:"button",onClick:()=>K(null),children:[(0,y.jsx)(me.A,{size:15}),"\u05d7\u05d9\u05e9\u05d5\u05d1 \u05de\u05d7\u05d3\u05e9"]})]}),Te?null:(0,y.jsxs)("div",{className:"integrated-plan-gap",role:"alert",children:[(0,y.jsx)(he.A,{size:18}),(0,y.jsxs)("div",{children:[(0,y.jsx)("strong",{children:"\u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05e2\u05d3\u05d9\u05d9\u05df \u05dc\u05d0 \u05e2\u05d5\u05de\u05d3\u05ea \u05d1\u05d9\u05e2\u05d3"}),(0,y.jsxs)("span",{children:["\u05d7\u05e1\u05e8\u05d5\u05ea ",Math.max(0,j-Pe)," \u05e0\u05f4\u05d6. \u05e0\u05e1\u05d5 \u05d7\u05dc\u05d5\u05e4\u05d4 \u05d0\u05d7\u05e8\u05ea, \u05e9\u05d7\u05e8\u05e8\u05d5 \u05e0\u05e2\u05d9\u05dc\u05d4 \u05d0\u05d5 \u05d4\u05d7\u05dc\u05d9\u05e4\u05d5 \u05e7\u05d5\u05e8\u05e1."]})]})]}),(0,y.jsxs)("div",{className:"integrated-plan-course-list",children:[je.map(e=>(0,y.jsxs)("article",{className:"is-existing",children:[(0,y.jsx)($e.A,{size:16}),(0,y.jsxs)("div",{children:[(0,y.jsx)("strong",{children:e.name}),(0,y.jsxs)("span",{children:[e.courseCode," \xb7 ",e.academicPoints," \u05e0\u05f4\u05d6"]}),(0,y.jsx)("small",{children:"\u05e7\u05d9\u05d9\u05dd \u05d1\u05de\u05e2\u05e8\u
105db\u05ea \u05d5\u05e0\u05e9\u05de\u05e8 \u05dc\u05dc\u05d0 \u05e9\u05d9\u05e0\u05d5\u05d9"}),(0,y.jsx)("small",{className:"integrated-course-times",children:Is(Re.get(String(e.courseId)))})]})]},e.courseId)),Me.map(e=>{var s;const i=String(e.course._id),t=ye.includes(i),r=(e=>{var s;const i=new Set(Me.map(e=>String(e.course._id))),t=null===(s=e.requirement)||void 0===s?void 0:s.type;return k.filter(e=>{const s=String(e._id),r=Le.get(Ue(e));return Ge(e)>0&&!i.has(s)&&!Ne.includes(s)&&_s(e.semester||e.coursePeriodName,v)&&(null===r||void 0===r?void 0:r.type)===t&&["none","met"].includes(Ze(e,ue,xe))}).slice(0,12)})(e),n=Ze(e.course,ue,xe);return(0,y.jsxs)("article",{children:[(0,y.jsx)("button",{type:"button",className:"integrated-course-lock",onClick:()=>(e=>{const s=String(e);U(e=>e.includes(s)?e.filter(e=>e!==s):[...e,s])})(i),"aria-label":t?"\u05e9\u05d7\u05e8\u05d5\u05e8 \u05e7\u05d5\u05e8\u05e1":"\u05e0\u05e2\u05d9\u05dc\u05ea \u05e7\u05d5\u05e8\u05e1",children:t?(0,y.jsx)($e.A,{size:16}):(0,y.jsx)(Ie.A,{size:16})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("strong",{children:e.course.name}),(0,y.jsxs)("span",{children:[Ue(e.course)," \xb7 ",Ge(e.course)," \u05e0\u05f4\u05d6 \xb7 ",null===(s=e.requirement)||void 0===s?void 0:s.label]}),(0,y.jsx)("small",{children:e.reasons.join(" \xb7 ")}),(0,y.jsx)("small",{className:"integrated-course-prerequisites",children:"none"===n?"\u05dc\u05dc\u05d0 \u05d3\u05e8\u05d9\u05e9\u05d5\u05ea \u05e7\u05d3\u05dd":"met"===n?"\u05d3\u05e8\u05d9\u05e9\u05d5\u05ea \u05d4\u05e7\u05d3\u05dd \u05d4\u05d5\u05e9\u05dc\u05de\u05d5":"\u05e0\u05d3\u05e8\u05e9\u05ea \u05d1\u05d3\u05d9\u05e7\u05ea \u05d3\u05e8\u05d9\u05e9\u05d5\u05ea \u05e7\u05d3\u05dd"}),(0,y.jsx)("small",{className:"integrated-course-times",children:Is(Re.get(i))||"\u05d1\u05d5\u05d7\u05e8\u05d9\u05dd \u05e7\u05d1\u05d5\u05e6\u05d4 \u05d5\u05e9\u05e2\u05d5\u05ea..."})]}),(0,y.jsxs)("select",{defaultValue:"",onChange:e=>{((e,s)=>{var i;const t=k.find(e=>String(e._id)===String(s));if(!t)return;const r=ss({course:t,profile:c,takenCourses:ue,ignoredPrerequisiteCourseCodes:xe});r.requirement=Le.get(Ue(t)),r.reasons=[`\u05de\u05e7\u05d3\u05dd \u05d3\u05e8\u05d9\u05e9\u05ea ${(null===(i=r.requirement)||void 0===i?void 0:i.label)||"\u05d4\u05ea\u05d5\u05d0\u05e8"}`,...r.reasons].slice(0,3),K(Me.map(s=>String(s.course._id)===String(e)?r:s)),U(s=>s.filter(s=>String(s)!==String(e)))})(i,e.target.value),e.target.value=""},"aria-label":`\u05d4\u05d7\u05dc\u05e4\u05ea ${e.course.name}`,children:[(0,y.jsx)("option",{value:"",children:"\u05d4\u05d7\u05dc\u05e4\u05d4..."}),r.map(e=>(0,y.jsxs)("option",{value:e._id,children:[e.name," (",Ge(e)," \u05e0\u05f4\u05d6)"]},e._id))]}),(0,y.jsx)("button",{type:"button",className:"integrated-course-remove",disabled:t,onClick:()=>(e=>{const s=String(e);V(e=>[...new Set([...e,s])]),U(e=>e.filter(e=>e!==s)),K(null),w(0)})(i),"aria-label":`\u05d4\u05e1\u05e8\u05ea ${e.course.name}`,children:(0,y.jsx)(E.A,{size:16})})]},i)})]}),(0,y.jsx)(As,{courses:qe}),(0,y.jsx)(Ms,{...Q}),ee?(0,y.jsxs)("div",{className:"semester-planner-error",role:"alert",children:[(0,y.jsx)(he.A,{size:16}),ee]}):null,W.length?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(qs,{coursePlans:W,overlapCount:Q.overlapCount}),(0,y.jsx)(Es,{coursePlans:W,courseNames:Ye})]}):null]})]}):2===b?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{className:"semester-planner-empty",children:[(0,y.jsx)(he.A,{size:30}),(0,y.jsx)("strong",{children:"\u05dc\u05d0 \u05e0\u05de\u05e6\u05d0\u05d4 \u05db\u05e8\u05d2\u05e2 \u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05de\u05ea\u05d0\u05d9\u05de\u05d4"}),(0,y.jsx)("span",{children:"\u05d0\u05d9\u05df \u05de\u05e1\u05e4\u05d9\u05e7 \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05de\u05d5\u05e6\u05e2\u05d9\u05dd \u05e9\u05e2\u05d5\u05de\u05d3\u05d9\u05dd \u05d1\u05d3\u05e8\u05d9\u05e9\u05d5\u05ea \u05d4\u05e7\u05d3\u05dd \u05d5\u05d1\u05d0\u05d9\u05dc\u05d5\u05e6\u05d9 \u05d4\u05de\u05e1\u05dc\u05d5\u05dc. \u05d7\u05d6\u05e8\u05d5 \u05dc\u05d4\u05d2\u05d3\u05e8\u05d5\u05ea \u05d5\u05e9\u05e0\u05d5 \u05e1\u05de\u05e1\u05d8\u05e8 \u05d0\u05d5 \u05d9\u05e2\u05d3."})]}),(0,y.jsx)(As,{courses:qe})]}):null,3===b?(0,y.jsxs)("div",{className:"integrated-plan-confirmation",children:[(0,y.jsx)("span",{className:"integrated-plan-confirmation__icon",children:(0,y.jsx)(o.A,{size:28})}),(0,y.jsx)("h3",{children:"\u05d4\u05db\u05d5\u05dc \u05de\u05d5\u05db\u05df \u05dc\u05d4\u05d7\u05dc\u05d4"}
1),(0,y.jsx)("p",{children:R?"\u05d4\u05de\u05e2\u05e8\u05db\u05ea, \u05ea\u05db\u05e0\u05d5\u05df \u05d4\u05ea\u05d5\u05d0\u05e8 \u05d5\u05de\u05e2\u05e7\u05d1 \u05d4\u05ea\u05d5\u05d0\u05e8 \u05d9\u05e2\u05d5\u05d3\u05db\u05e0\u05d5 \u05d9\u05d7\u05d3. \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e7\u05d9\u05d9\u05de\u05d9\u05dd \u05d9\u05d9\u05e9\u05de\u05e8\u05d5 \u05d5\u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d4\u05d7\u05d3\u05e9\u05d9\u05dd \u05d9\u05ea\u05d5\u05d5\u05e1\u05e4\u05d5 \u05db\u05de\u05ea\u05d5\u05db\u05e0\u05e0\u05d9\u05dd.":"\u05d4\u05de\u05e2\u05e8\u05db\u05ea \u05d5\u05ea\u05db\u05e0\u05d5\u05df \u05d4\u05ea\u05d5\u05d0\u05e8 \u05d9\u05e2\u05d5\u05d3\u05db\u05e0\u05d5 \u05d9\u05d7\u05d3. \u05dc\u05d0 \u05d9\u05ea\u05d5\u05d5\u05e1\u05e4\u05d5 \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d7\u05d3\u05e9\u05d9\u05dd \u05dc\u05de\u05e2\u05e7\u05d1 \u05d4\u05ea\u05d5\u05d0\u05e8."}),(0,y.jsxs)("div",{children:[(0,y.jsxs)("span",{children:[(0,y.jsx)("b",{children:Pe})," \u05e0\u05f4\u05d6 \u05d1\u05e1\u05de\u05e1\u05d8\u05e8"]}),(0,y.jsxs)("span",{children:[(0,y.jsx)("b",{children:W.length})," \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e2\u05dd \u05e9\u05e2\u05d5\u05ea"]}),(0,y.jsxs)("span",{children:[(0,y.jsx)("b",{children:B})," \xb7 ",H]})]}),(0,y.jsx)(Ms,{...Q}),(0,y.jsx)(qs,{coursePlans:W,overlapCount:Q.overlapCount}),(0,y.jsx)(Es,{coursePlans:W,courseNames:Ye})]}):null,4===b&&ie?(0,y.jsxs)("div",{className:"integrated-plan-success",children:[(0,y.jsx)("span",{children:(0,y.jsx)(Ae.A,{size:30})}),(0,y.jsx)("h3",{children:"\u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05e0\u05e9\u05de\u05e8\u05d4 \u05d1\u05d4\u05e6\u05dc\u05d7\u05d4"}),(0,y.jsxs)("p",{children:[ie.totalCredits," \u05e0\u05f4\u05d6 \u05e0\u05d5\u05e1\u05e4\u05d5 \u05dc\u05de\u05e2\u05e8\u05db\u05ea \u05d5\u05dc\u05ea\u05db\u05e0\u05d5\u05df \u201c",B,"\u201d",ie.degreeProgressSynced?" \u05d5\u05d2\u05dd \u05dc\u05de\u05e2\u05e7\u05d1 \u05d4\u05ea\u05d5\u05d0\u05e8 \u05db\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05de\u05ea\u05d5\u05db\u05e0\u05e0\u05d9\u05dd.":". \u05dc\u05d0 \u05e0\u05d5\u05e1\u05e4\u05d5 \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d7\u05d3\u05e9\u05d9\u05dd \u05dc\u05de\u05e2\u05e7\u05d1 \u05d4\u05ea\u05d5\u05d0\u05e8."]}),(0,y.jsxs)("div",{children:[(0,y.jsx)("button",{type:"button",onClick:()=>{a(),h(`/schedule?year=${l}`)},children:"\u05d4\u05de\u05e2\u05e8\u05db\u05ea \u05e9\u05dc\u05d9"}),(0,y.jsx)("button",{type:"button",onClick:()=>{a(),h("/degree-planner")},children:"\u05ea\u05db\u05e0\u05d5\u05df \u05d4\u05ea\u05d5\u05d0\u05e8"}),ie.degreeProgressSynced?(0,y.jsx)("button",{type:"button",onClick:()=>{a(),h("/progress")},children:"\u05de\u05e2\u05e7\u05d1 \u05d4\u05ea\u05d5\u05d0\u05e8"}):null]})]}):null]}),(0,y.jsxs)(Se.A.Footer,{children:[(0,y.jsx)("div",{className:"semester-planner-feedback",children:le?(0,y.jsxs)("span",{className:"semester-planner-error",role:"alert",children:[(0,y.jsx)(he.A,{size:16}),le]}):re?(0,y.jsxs)("span",{role:"status",children:[(0,y.jsx)(Ee.A,{className:"is-spinning",size:16}),"\u05e9\u05d5\u05de\u05e8\u05d9\u05dd \u05d0\u05ea \u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05ea..."]}):(0,y.jsx)("small",{children:"\u05d4\u05d4\u05e6\u05e2\u05d4 \u05de\u05d1\u05d5\u05e1\u05e1\u05ea \u05e2\u05dc \u05e0\u05ea\u05d5\u05e0\u05d9 StudentInsight \u05d5\u05d0\u05d9\u05e0\u05d4 \u05de\u05d7\u05dc\u05d9\u05e4\u05d4 \u05d9\u05d9\u05e2\u05d5\u05e5 \u05d0\u05e7\u05d3\u05de\u05d9."})}),4===b?(0,y.jsx)("button",{type:"button",className:"semester-planner-primary",onClick:a,children:"\u05e1\u05d9\u05d5\u05dd"}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("button",{type:"button",className:"semester-planner-secondary",onClick:1===b?a:()=>N(e=>Math.max(1,e-1)),children:1===b?"\u05d1\u05d9\u05d8\u05d5\u05dc":"\u05d7\u05d6\u05e8\u05d4"}),1===b?(0,y.jsxs)("button",{type:"button",className:"semester-planner-primary",disabled:I||!(null!==S&&void 0!==S&&S.program)||!B.trim()||!H.trim(),onClick:()=>N(2),children:[(0,y.jsx)(_e.A,{size:17}),"\u05d9\u05e6\u05d9\u05e8\u05ea \u05ea\u05d5\u05db\u05e0\u05d9\u05d5\u05ea \u05de\u05dc\u05d0\u05d5\u05ea"]}):null,2===b?(0,y.jsxs)("button",{type:"button",className:"semester-planner-primary",disabled:!Te||!W.length||Boolean(ee),onClick:()=>N(3),children:[(0,y.jsx)(pe.A,{size:17}
1),"\u05e1\u05e7\u05d9\u05e8\u05d4 \u05d5\u05d0\u05d9\u05e9\u05d5\u05e8"]}):null,3===b?(0,y.jsxs)("button",{type:"button",className:"semester-planner-primary",disabled:re,onClick:async()=>{if("guest"!==(null===m||void 0===m?void 0:m.role)){if(we&&Te&&W.length&&!ee)if(oe)ae(`\u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e8\u05e7 \u05dc\u05e9\u05e0\u05ea\u05d5\u05df \u05d4\u05e4\u05e2\u05d9\u05dc (${n}). \u05e2\u05d1\u05e8\u05d5 \u05d0\u05dc\u05d9\u05d5 \u05d5\u05e0\u05e1\u05d5 \u05e9\u05d5\u05d1.`);else{ne(!0),ae("");try{var e,s,i,t;const n=await(r={academicYear:l,timelineName:B.trim(),timelineSemester:H.trim(),programId:S.program._id,selectedCombinationId:null===(e=S.program.selectedCombination)||void 0===e?void 0:e.id,selectedSpecializationId:null===(s=S.program.selectedSpecialization)||void 0===s?void 0:s.id,targetCredits:j,allowConflicts:Q.overlapCount>0,syncToDegreeProgress:R,courses:W,expectedScheduleUpdatedAt:null===(i=S.revision)||void 0===i?void 0:i.scheduleUpdatedAt,expectedTimelineUpdatedAt:"__new__"===P?null:null===(t=S.revision)||void 0===t?void 0:t.timelineUpdatedAt},vs(`${xs}/user/apply-semester-plan`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)}));await x(!0),window.dispatchEvent(new CustomEvent("studentinsight:planning-updated",{detail:{academicYear:l,timelineName:B,timelineSemester:H}})),te(n),N(4)}catch(a){ae(a.message||"\u05dc\u05d0 \u05d4\u05e6\u05dc\u05d7\u05e0\u05d5 \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05d0\u05ea \u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05dc\u05de\u05e2\u05e8\u05db\u05ea.")}finally{ne(!1)}var r}}else h("/login")},children:[re?(0,y.jsx)(Ee.A,{className:"is-spinning",size:17}):(0,y.jsx)(M.A,{size:17}),re?"\u05e9\u05d5\u05de\u05e8\u05d9\u05dd...":R?"\u05d4\u05d7\u05dc\u05d4 \u05d1\u05de\u05e2\u05e8\u05db\u05ea, \u05d1\u05ea\u05db\u05e0\u05d5\u05df \u05d5\u05d1\u05de\u05e2\u05e7\u05d1":"\u05d4\u05d7\u05dc\u05d4 \u05d1\u05de\u05e2\u05e8\u05db\u05ea \u05d5\u05d1\u05ea\u05db\u05e0\u05d5\u05df"]}):null]})]})]})},Fs=e=>{let{activeAcademicYear:s,academicYear:i,fallbackCourses:r=[],user:n}=e;const l=(0,L.Zp)(),[a,o]=(0,t.useState)(!1),[d,u]=(0,t.useState)(()=>"true"===sessionStorage.getItem("studentinsight:recommendations-expanded"));(0,t.useEffect)(()=>{sessionStorage.setItem("studentinsight:recommendations-expanded",String(d))},[d]);const h=(0,t.useMemo)(()=>(null===n||void 0===n?void 0:n.studentProfile)||ys,[null===n||void 0===n?void 0:n.studentProfile]),x=n&&"guest"!==n.role,v=()=>{window.dispatchEvent(new CustomEvent("studentinsight:open-onboarding",{detail:{editing:!0}}))},{courses:g,error:f,hasProgram:b,isLoading:N,reload:C}=(0,Pe.Ay)({studentProfile:h,academicYear:i,studyYear:h.studyYear,enabled:x,view:"full"}),w=b?g:r,S=(0,t.useMemo)(()=>is({courses:w,profile:h,takenCourses:(null===n||void 0===n?void 0:n.takenCourses)||[],limit:4}),[h,w,null===n||void 0===n?void 0:n.takenCourses]),A=(h.coursePriorities||[]).map(e=>(0,Be.ed)(Be.m8,e)).slice(0,3);return(0,y.jsxs)("section",{className:"personalized-planning "+(d?"is-expanded":"is-collapsed"),"data-onboarding-target":"personalized-planning",children:[(0,y.jsxs)("div",{className:"personalized-planning__header",children:[(0,y.jsxs)("div",{className:"personalized-planning__title",children:[(0,y.jsx)("span",{children:(0,y.jsx)(c.A,{size:20})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("small",{children:"\u05de\u05d5\u05ea\u05d0\u05dd \u05dc\u05e4\u05e8\u
105d5\u05e4\u05d9\u05dc \u05e9\u05dc\u05db\u05dd"}),(0,y.jsx)("h2",{children:"\u05d4\u05d1\u05d7\u05d9\u05e8\u05d5\u05ea \u05d4\u05de\u05d5\u05de\u05dc\u05e6\u05d5\u05ea \u05d1\u05e9\u05d1\u05d9\u05dc\u05db\u05dd"}),(0,y.jsx)("p",{children:b?`${(0,Be.vU)(h)} \xb7 \u05e9\u05e0\u05d4 ${h.studyYear||"\u05dc\u05d0 \u05d4\u05d5\u05d2\u05d3\u05e8\u05d4"}`:"\u05d4\u05de\u05dc\u05e6\u05d5\u05ea \u05dc\u05e4\u05d9 \u05d4\u05d4\u05e2\u05d3\u05e4\u05d5\u05ea \u05d5\u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05d4\u05d6\u05de\u05d9\u05e0\u05d9\u05dd \u05db\u05e8\u05d2\u05e2"})]})]}),(0,y.jsxs)("div",{className:"personalized-planning__actions",children:[(0,y.jsxs)("button",{type:"button",className:"personalized-plan-button",disabled:N||!w.length,onClick:()=>x?o(!0):l("/login"),children:[(0,y.jsx)(_e.A,{size:17}),"\u05ea\u05db\u05e0\u05e0\u05d5 \u05dc\u05d9 \u05d0\u05ea \u05d4\u05e1\u05de\u05e1\u05d8\u05e8"]}),x?(0,y.jsxs)("button",{type:"button",className:"personalized-preferences-button",onClick:v,"aria-haspopup":"dialog",children:[(0,y.jsx)(Me.A,{size:16}),"\u05e2\u05e8\u05d9\u05db\u05ea \u05d4\u05e2\u05d3\u05e4\u05d5\u05ea"]}):(0,y.jsxs)(j.N_,{to:"/login",children:[(0,y.jsx)(Me.A,{size:16}),"\u05d4\u05ea\u05d7\u05d1\u05e8\u05d5\u05ea"]})]})]}),A.length?(0,y.jsxs)("div",{className:"personalized-priorities","aria-label":"\u05d4\u05e2\u05d3\u05e4\u05d5\u05ea \u05e9\u05e9\u05d9\u05de\u05e9\u05d5 \u05dc\u05d3\u05d9\u05e8\u05d5\u05d2",children:[(0,y.jsx)("span",{children:"\u05d3\u05d5\u05e8\u05d2 \u05dc\u05e4\u05d9:"}),A.map(e=>(0,y.jsx)("b",{children:e},e))]}):null,(N||S.length>0)&&(0,y.jsxs)("div",{className:"personalized-planning__summary",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)(p.A,{size:19}),(0,y.jsxs)("span",{children:[(0,y.jsx)("strong",{children:N?"\u05de\u05db\u05d9\u05e0\u05d9\u05dd \u05d4\u05de\u05dc\u05e6\u05d5\u05ea \u05de\u05d5\u05ea\u05d0\u05de\u05d5\u05ea\u2026":S.length?`${S.length} \u05d4\u05de\u05dc\u05e6\u05d5\u05ea \u05dc\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05de\u05d5\u05db\u05e0\u05d5\u05ea`:"\u05d4\u05de\u05dc\u05e6\u05d5\u05ea \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d4\u05d0\u05d9\u05e9\u05d9\u05d5\u05ea"}),(0,y.jsx)("small",{children:d?"\u05e0\u05d9\u05ea\u05df \u05dc\u05e2\u05d1\u05d5\u05e8 \u05e2\u05dc \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d5\u05dc\u05e4\u05ea\u05d5\u05d7 \u05d0\u05ea \u05d4\u05e2\u05de\u05d5\u05d3 \u05d4\u05de\u05dc\u05d0 \u05e9\u05dc \u05db\u05dc \u05d0\u05d7\u05d3.":"\u05d4\u05e8\u05d7\u05d9\u05d1\u05d5 \u05db\u05d3\u05d9 \u05dc\u05e8\u05d0\u05d5\u05ea \u05dc\u05de\u05d4 \u05db\u05dc \u05e7\u05d5\u05e8\u05e1 \u05de\u05ea\u05d0\u05d9\u05dd \u05dc\u05e4\u05e8\u
105d5\u05e4\u05d9\u05dc \u05e9\u05dc\u05db\u05dd."})]})]}),(0,y.jsxs)("button",{type:"button","aria-expanded":d,"aria-controls":"personalized-recommendations-content",onClick:()=>u(e=>!e),children:[d?"\u05e6\u05de\u05e6\u05d5\u05dd":"\u05d4\u05e6\u05d2\u05ea \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd",(0,y.jsx)(m.A,{size:17})]})]}),N?d?(0,y.jsx)("div",{className:"personalized-course-grid",id:"personalized-recommendations-content",children:[0,1,2,3].map(e=>(0,y.jsx)(Cs,{},e))}):null:f&&!S.length?(0,y.jsxs)("div",{className:"personalized-planning__state",children:[(0,y.jsx)(he.A,{size:24}),(0,y.jsxs)("div",{children:[(0,y.jsx)("strong",{children:"\u05dc\u05d0 \u05d4\u05e6\u05dc\u05d7\u05e0\u05d5 \u05dc\u05d8\u05e2\u05d5\u05df \u05d0\u05ea \u05e7\u05d5\u05e8\u05e1\u05d9 \u05d4\u05ea\u05d5\u05db\u05e0\u05d9\u05ea"}),(0,y.jsx)("span",{children:f})]}),(0,y.jsx)("button",{type:"button",onClick:C,children:"\u05e0\u05e1\u05d5 \u05e9\u05d5\u05d1"})]}):S.length?d?(0,y.jsx)("div",{className:"personalized-course-grid personalized-recommendations-content",id:"personalized-recommendations-content",children:S.map(e=>(0,y.jsx)(ws,{academicYear:i,recommendation:e},e.course._id))}):null:(0,y.jsxs)("div",{className:"personalized-planning__state",children:[(0,y.jsx)(p.A,{size:25}),(0,y.jsxs)("div",{children:[(0,y.jsx)("strong",{children:x?"\u05d4\u05d2\u05d3\u05d9\u05e8\u05d5 \u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05dc\u05d9\u05de\u05d5\u05d3\u05d9\u05dd \u05db\u05d3\u05d9 \u05dc\u05e7\u05d1\u05dc \u05d4\u05ea\u05d0\u05de\u05d4 \u05de\u05dc\u05d0\u05d4":"\u05d4\u05ea\u05d7\u05d1\u05e8\u05d5 \u05dc\u05e7\u05d1\u05dc\u05ea \u05d4\u05de\u05dc\u05e6\u05d5\u05ea \u05d0\u05d9\u05e9\u05d9\u05d5\u05ea"}),(0,y.jsx)("span",{children:"\u05e0\u05e9\u05ea\u05de\u05e9 \u05d1\u05e9\u05e0\u05ea \u05d4\u05dc\u05d9\u05de\u05d5\u05d3, \u05d1\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e9\u05db\u05d1\u05e8 \u05d4\u05e9\u05dc\u05de\u05ea\u05dd \u05d5\u05d1\u05d4\u05e2\u05d3\u05e4\u05d5\u05ea \u05e9\u05d1\u05d7\u05e8\u05ea\u05dd."})]}),x?(0,y.jsxs)("button",{type:"button",onClick:v,children:["\u05d4\u05d2\u05d3\u05e8\u05ea \u05e4\u05e8\u
105d5\u05e4\u05d9\u05dc ",(0,y.jsx)(qe.A,{size:15})]}):(0,y.jsxs)(j.N_,{to:"/login",children:["\u05d4\u05d2\u05d3\u05e8\u05ea \u05e4\u05e8\u05d5\u05e4\u05d9\u05dc ",(0,y.jsx)(qe.A,{size:15})]})]}),(0,y.jsx)(Ps,{activeAcademicYear:s,academicYear:i,courses:w,onHide:()=>o(!1),profile:h,show:a,takenCourses:(null===n||void 0===n?void 0:n.takenCourses)||[],user:n})]})},Bs="https://api.studentinsight.co.il",Ts=ee().mixin({toast:!0,position:"top-start",showConfirmButton:!1,timer:3e3,timerProgressBar:!0,didOpen:e=>{e.addEventListener("mouseenter",ee().stopTimer),e.addEventListener("mouseleave",ee().resumeTimer)}}),Ls=["\u05d4\u05db\u05dc","\u05db\u05dc\u05db\u05dc\u05d4","\u05d7\u05e9\u05d1\u05d5\u05e0\u05d0\u05d5\u05ea","\u05d0\u05de\u05d9\u05e8\u05d9\u05dd - \u05ea\u05db\u05e0\u05d9\u05ea \u05de\u05e6\u05d8\u05d9\u05d9\u05e0\u05d9\u05dd - \u05de\u05d7\u05e9\u05d1\u05d9\u05dd","\u05dc\u05d9\u05de\u05d5\u05d3\u05d9\u05dd \u05e1\u05e4\u05e8\u05d3\u05d9\u05d9\u05dd \u05d5\u05dc\u05d8\u05d9\u05e0\u05d5-\u05d0\u05de\u05e8\u05d9\u05e7\u05e0\u05d9\u05d9\u05dd","\u05de\u05db\u05d9\u05e0\u05d4 \u05d7\u05e8\u05d3\u05d9\u05ea - \u05de\u05d3\u05e2\u05d9 \u05d4\u05d8\u05d1\u05e2","\u05de\u05d3\u05e2\u05d9 \u05d4\u05ea\u05d6\u05d5\u05e0\u05d4","\u05d1\u05d9\u05d5\u05d8\u05db\u05e0\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4","\u05d4\u05ea\u05db\u05e0\u05d9\u05ea \u05dc\u05dc\u05d9\u05de\u05d5\u05d3\u05d9 \u05d1\u05d5\u05d2\u05e8","\u05dc\u05d9\u05de\u05d5\u05d3\u05d9\u05dd \u05e8\u
105d5\u05de\u05d0\u05e0\u05d9\u05d9\u05dd","\u05d2\u05d9\u05d3\u05d5\u05dc\u05d9 \u05e9\u05d3\u05d4 \u05d5\u05d9\u05e8\u05e7\u05d5\u05ea","\u05dc\u05d9\u05de\u05d5\u05d3\u05d9 \u05d4\u05d5\u05e8\u05d0\u05d4 - \u05ea\u05e2\u05d5\u05d3\u05ea \u05d4\u05d5\u05e8\u05d0\u05d4","\u05ea\u05db\u05e0\u05d9\u05ea \u05e0\u05ea\u05d9\u05d1","\u05e1\u05e4\u05e8\u05d5\u05ea \u05e2\u05d1\u05e8\u05d9\u05ea","\u05ea\u05d5\u05db\u05e0\u05d9\u05d5\u05ea \u05d7\u05d9\u05e6\u05d5\u05e0\u05d9\u05d5\u05ea \u05de\u05d9\u05d5\u05d7\u05d3\u05d5\u05ea","\u05d1\u05e8\u05d9\u05d0\u05d5\u05ea \u05e6\u05d9\u05d1\u05d5\u05e8 \u05d5\u05d8\u05e8\u05d9\u05e0\u05e8\u05d9\u05ea","\u05e8\u05e4\u05d5\u05d0\u05d4 - \u05d4\u05de\u05e1\u05dc\u05d5\u05dc \u05d4\u05e6\u05d1\u05d0\u05d9 - \u05e6\u05de\u05e8\u05ea","\u05e4\u05d9\u05e1\u05d9\u05e7\u05d4","\u05d0\u05e0\u05d2\u05dc\u05d9\u05ea","\u05de\u05d3\u05e2\u05d9 \u05d4\u05db\u05d9\u05de\u05d9\u05d4 \u05d5\u05d4\u05d1\u05d9\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4","\u05e8\u05e4\u05d5\u05d0\u05d4","\u05d7\u05e7\u05e8 \u05e1\u05db\u05e1\u05d5\u05db\u05d9\u05dd, \u05e0\u05d9\u05d4\u05d5\u05dc\u05dd \u05d5\u05d9\u05d9\u05e9\u05d5\u05d1\u05dd","\u05db\u05d9\u05de\u05d9\u05d4",'\u05db\u05dc\u05db\u05dc\u05d4: \u05ea\u05db\u05e0\u05d9\u05ea \u05de\u05e9\u05d5\u05ea\u05e4\u05ea \u05e2\u05dd \u05d0\u05d5\u05e0. \u05ea"\u05d0','\u05e0\u05d9\u05d4\u05d5\u05dc \u05de\u05dc\u05db"\u05e8\u
105d9\u05dd \u05d5\u05d0\u05e8\u05d2\u05d5\u05e0\u05d9\u05dd \u05e7\u05d4\u05d9\u05dc\u05ea\u05d9\u05d9\u05dd',"\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05d4\u05e2\u05e9\u05e8\u05d4 \u05dc\u05ea\u05dc\u05de\u05d9\u05d3\u05d9 \u05ea\u05d9\u05db\u05d5\u05df","\u05d2\u05e0\u05d8\u05d9\u05e7\u05d4 \u05d5\u05d4\u05e9\u05d1\u05d7\u05d4","\u05d0\u05d1\u05e0\u05d9 \u05e4\u05d9\u05e0\u05d4","\u05de\u05d3\u05e2\u05d9 \u05d1\u05e2\u05dc\u05d9 \u05d7\u05d9\u05d9\u05dd - \u05ea\u05db\u05e0\u05d9\u05ea \u05d1\u05d9\u05e0\u05dc\u05d0\u05d5\u05de\u05d9\u05ea","\u05d4\u05de\u05db\u05d9\u05e0\u05d4 \u05dc\u05e2\u05d1\u05e8\u05d9\u05ea \u05dc\u05ea\u05dc\u05de\u05d9\u05d3\u05d9\u05dd \u05de\u05df \u05d4\u05de\u05e0\u05d9\u05d9\u05df","\u05ea\u05db\u05e0\u05d9\u05ea \u05e7\u05d3\u05dd \u05d0\u05e7\u05d3\u05de\u05d0\u05d9\u05ea","\u05d0\u05d9\u05db\u05d5\u05ea \u05d4\u05e1\u05d1\u05d9\u05d1\u05d4 \u05d5\u05de\u05e9\u05d0\u05d1\u05d9 \u05d8\u05d1\u05e2 \u05d1\u05d7\u05e7\u05dc\u05d0\u05d5\u05ea","\u05de\u05e0\u05d4\u05dc \u05e2\u05e1\u05e7\u05d9\u05dd","\u05e7\u05e8\u05d9\u05de\u05d9\u05e0\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4","\u05ea\u05db\u05e0\u05d9\u05ea \u05d4\u05e1\u05d1\u05d4 \u05dc\u05d0 \u05d0\u05e7\u05d3\u05de\u05d9\u05ea \u05dc\u05e1\u05d9\u05e2\u05d5\u05d3","\u05d1\u05d9\u05d5\u05db\u05d9\u05de\u05d9\u05d4 \u05de\u05d1\u05e0\u05d9\u05ea \u05d5\u05de\u05d5\u05dc\u05e7\u05d5\u05dc\u05e8\u05d9\u05ea",'\u05d1\u05e8\u05d9\u05d0\u05d5\u05ea \u05d4\u05e6\u05d9\u05d1\u05d5\u05e8 \u05d5\u05e8\u05e4\u05d5\u05d0\u05d4 \u05e7\u05d4\u05d9\u05dc\u05ea\u05d9\u05ea - \u05ea\u05db\u05e0\u05d9\u05ea \u05d1\u05d9\u05e0"\u05dc',"\u05dc\u05d9\u05de\u05d5\u05d3\u05d9 \u05d9\u05e9\u05e8\u05d0\u05dc","\u05de\u05d9\u05e0\u05d4\u05dc \u05e2\u05e1\u05e7\u05d9\u05dd \u05d1\u05d4\u05ea\u05de\u05d7\u05d5\u05ea \u05de\u05d9\u05de\u05d5\u05df \u05e0\u05d3\u05dc\u05df","\u05dc\u05d9\u05de\u05d5\u05d3\u05d9 \u05d0\u05e1\u05d9\u05d4","\u05de\u05db\u05d9\u05e0\u05d4 35+","\u05de\u05d2\u05de\u05d4 \u05dc\u05d7\u05d9\u05e0\u05d5\u05da \u05d9\u05d4\u05d5\u05d3\u05d9",'\u05d1\u05d9\u05d4"\u05e1 \u05dc\u05e1\u05e4\u05e8\u
105d5\u05d9\u05d5\u05ea \u05e2\u05ea\u05d9\u05e7\u05d5\u05ea \u05d5\u05d7\u05d3\u05e9\u05d5\u05ea',"\u05de\u05d3\u05e2\u05d9 \u05db\u05d3\u05d5\u05e8 \u05d4\u05d0\u05e8\u05e5","\u05de\u05d3\u05e2\u05d9 \u05d4\u05e6\u05de\u05d7 \u05d1\u05d7\u05e7\u05dc\u05d0\u05d5\u05ea",'\u05e1\u05d9\u05e2\u05d5\u05d3 - "\u05e7\u05e4\u05dc\u05df"',"\u05e7\u05d3\u05dd \u05de\u05db\u05d9\u05e0\u05d4 \u05dc\u05e2\u05ea\u05d9\u05d3\u05d9\u05dd",'\u05de\u05db\u05d9\u05e0\u05d4 \u05dc\u05ea\u05dc\u05de\u05d9\u05d3\u05d9\u05dd \u05de\u05d7\u05d5"\u05dc',"\u05d4\u05dc\u05e9\u05d5\u05df \u05d4\u05e2\u05d1\u05e8\u05d9\u05ea","\u05d2\u05dc\u05d5\u05e7\u05dc \u05e4\u05d9\u05ea\u05d5\u05d7 \u05d1\u05d9\u05df-\u05dc\u05d0\u05d5\u05de\u05d9","\u05d2\u05d9\u05d0\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4","\u05de\u05d3\u05e2\u05d9 \u05d4\u05de\u05d7\u05e9\u05d1 \u05d5\u05d1\u05d9\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4 \u05d7\u05d9\u05e9\u05d5\u05d1\u05d9\u05ea","\u05d4\u05e7\u05d5\u05dc\u05d2' \u05d4\u05d9\u05e8\u05d5\u05e9\u05dc\u05de\u05d9","\u05e8\u05e4\u05d5\u05d0\u05ea \u05e9\u05d9\u05e0\u05d9\u05d9\u05dd","\u05d7\u05d9\u05e0\u05d5\u05da \u05d9\u05d4\u05d5\u05d3\u05d9","\u05de\u05d3\u05d9\u05e0\u05d9\u05d5\u05ea \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05ea","\u05d0\u05de\u05d9\u05e8\u05d9\u05dd - \u05ea\u05db\u05e0\u05d9\u05ea \u05de\u05e6\u05d8\u05d9\u05d9\u05e0\u05d9\u05dd - \u05de\u05d3\u05e2\u05d9 \u05d4\u05d7\u05e7\u05dc\u05d0\u05d5\u05ea",'\u05ea\u05db\u05e0\u05d9\u05ea "\u05e8\u05d1\u05d9\u05d1\u05d9\u05dd"',"\u05de\u05d3\u05e2\u05d9 \u05d4\u05e7\u05d5\u05d2\u05e0\u05d9\u05e6\u05d9\u05d4 \u05d5\u05d4\u05de\u05d5\u05d7","\u05de\u05d3\u05e2\u05d9 \u05d4\u05e8\u05d5\u05d7 - \u05ea\u05db\u05e0\u05d9\u05ea \u05de\u05d9\u05d5\u05d7\u05d3\u05ea","\u05ea\u05db\u05e0\u05d9\u05ea \u05d1\u05dc\u05d9\u05de\u05d5\u05d3\u05d9 \u05d0\u05d9\u05e8\u05d5\u05e4\u05d4","\u05d4\u05d9\u05d7\u05d9\u05d3\u05d4 \u05dc\u05dc\u05d9\u05de\u05d5\u05d3\u05d9 \u05e9\u05e4\u05d5\u05ea","\u05d9\u05d7\u05e1\u05d9\u05dd \u05d1\u05d9\u05df-\u05dc\u05d0\u05d5\u05de\u05d9\u05d9\u05dd","\u05d2\u05d9\u05d3\u05d5\u05dc\u05d9 \u05e9\u05d3\u05d4 \u05d5\u05d9\u05e8\u05e7\u05d5\u05ea - \u05ea\u05db\u05e0\u05d9\u05ea \u05d1\u05d9\u05e0\u05dc\u05d0\u05d5\u05de\u05d9\u05ea","\u05de\u05d3\u05e2\u05d9 \u05d4\u05e6\u05de\u05d7 \u05d1\u05d7\u05e7\u05dc\u05d0\u05d5\u05ea \u05d5\u05d1\u05d9\u05d5\u05d8\u05db\u05e0\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4","\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e1\u05d5\u05e6\u05d9\u05d0\u05dc\u05d9\u05ea-\u05d4\u05e9\u05dc\u05de\u05d4 \u05dc\u05de\u05d5\u05e1\u05de\u05da \u05dc\u05d1\u05d5\u05d2\u05e8\u05d9 \u05ea\u05d7\u05d5\u05de\u05d9\u05dd \u05d0\u05d7\u05e8\u05d9\u05dd","\u05ea\u05d5\u05dc\u05d3\u05d5\u05ea \u05d4\u05ea\u05d0\u05d8\u05e8\u05d5\u05df","\u05de\u05d3\u05e2\u05d9 \u05d4\u05d8\u05d1\u05e2 - \u05ea\u05db\u05e0\u05d9\u05ea \u05de\u05d9\u05d5\u05d7\u05d3\u05ea","\u05de\u05d3\u05e2\u05d9 \u05d4\u05de\u05d7\u05e9\u05d1","\u05dc\u05d9\u05de\u05d5\u05d3\u05d9 \u05d4\u05d0\u05e1\u05dc\u05d0\u05dd \u05d5\u05d4\u05de\u05d6\u05e8\u05d7 \u05d4\u05ea\u05d9\u05db\u05d5\u05df","\u05de\u05d3\u05e2\u05d9 \u05d4\u05e1\u05d1\u05d9\u05d1\u05d4","\u05e8\u05d5\u05e7\u05d7\u05d5\u05ea \u05e7\u05dc\u05d9\u05e0\u05d9\u05ea","\u05ea\u05db\u05e0\u05d9\u05ea \u05ea\u05dc\u05e4\u05d9\u05d5\u05ea","\u05e8\u05e4\u05d5\u05d0\u05ea \u05d4\u05de\u05e9\u05e4\u05d7\u05d4","\u05de\u05ea\u05de\u05d8\u05d9\u05e7\u05d4","\u05d0\u05e8\u05db\u05d9\u05d0\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4 \u05d5\u05d4\u05de\u05d6\u05e8\u05d7 \u05d4\u05e7\u05e8\u05d5\u05d1 \u05d5\u05d4\u05e7\u05d3\u05d5\u05dd","\u05dc\u05d9\u05de\u05d5\u05d3\u05d9\u05dd \u05e7\u05dc\u05d0\u05e1\u05d9\u05d9\u05dd","\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05e7\u05d9\u05d3\u05de\u05d4",'\u05d1\u05d9\u05d4"\u05e1 \u05dc\u05d0\u05de\u05e0\u05d5\u05d9\u05d5\u05ea',"\u05de\u05e7\u05e8\u05d0","\u05d0\u05d2\u05e8\u05d5\u05d0\u05e7\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4 \u05d5\u05d1\u05e8\u05d9\u05d0\u05d5\u05ea \u05d4\u05e6\u05de\u05d7","\u05d4\u05de\u05e7\u05e8\u05d0 \u05d5\u05d4\u05de\u05d6\u05e8\u05d7 \u05d4\u05e7\u05e8\u05d5\u05d1 \u05d4\u05e7\u05d3\u05d5\u05dd","\u05e1\u05e4\u05e8\u
105d5\u05ea \u05db\u05dc\u05dc\u05d9\u05ea \u05d5\u05d4\u05e9\u05d5\u05d5\u05d0\u05ea\u05d9\u05ea","\u05ea\u05db\u05e0\u05d9\u05ea \u05dc\u05dc\u05d9\u05de\u05d5\u05d3\u05d9\u05dd \u05de\u05ea\u05e7\u05d3\u05de\u05d9\u05dd","\u05d1\u05d9\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4 \u05ea\u05d0\u05d9\u05ea \u05d5\u05d4\u05ea\u05e4\u05ea\u05d7\u05d5\u05ea\u05d9\u05ea","\u05d3\u05d5\u05e7\u05d8\u05d5\u05e8\u05d8 \u05de\u05e9\u05d5\u05ea\u05e3","\u05e1\u05d5\u05e6\u05d9\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4 \u05d5\u05d0\u05e0\u05ea\u05e8\u05d5\u05e4\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4","\u05db\u05dc\u05db\u05dc\u05ea \u05e1\u05d1\u05d9\u05d1\u05d4 \u05d5\u05e0\u05d9\u05d4\u05d5\u05dc","\u05e8\u05d5\u05e7\u05d7\u05d5\u05ea","\u05e4\u05e1\u05d9\u05db\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4","\u05de\u05d3\u05e2\u05d9 \u05d4\u05d7\u05d1\u05e8\u05d4 - \u05ea\u05db\u05e0\u05d9\u05ea \u05de\u05d9\u05d5\u05d7\u05d3\u05ea","\u05dc\u05d9\u05de\u05d5\u05d3\u05d9\u05dd \u05de\u05e7\u05d5\u05d5\u05e0\u05d9\u05dd \u05de\u05e9\u05d5\u05ea\u05e4\u05d9\u05dd","\u05de\u05d3\u05e2\u05d9 \u05d1\u05e2\u05dc\u05d9 \u05d4\u05d7\u05d9\u05d9\u05dd \u05d5\u05d4\u05d5\u05d5\u05d8\u05e8\u05d9\u05e0\u05e8\u05d9\u05d4","\u05ea\u05d5\u05dc\u05d3\u05d5\u05ea \u05d4\u05d0\u05de\u05e0\u05d5\u05ea","\u05de\u05d3\u05e2\u05d9 \u05d4\u05d0\u05d8\u05de\u05d5\u05e1\u05e4\u05d9\u05e8\u05d4","\u05d1\u05dc\u05e9\u05e0\u05d5\u05ea","\u05d0\u05de\u05d9\u05e8\u05d9\u05dd - \u05ea\u05db\u05e0\u05d9\u05ea \u05de\u05e6\u05d8\u05d9\u05d9\u05e0\u05d9\u05dd","\u05e4\u05d9\u05e1\u05d9\u05e7\u05d4 \u05d9\u05d9\u05e9\u05d5\u05de\u05d9\u05ea","\u05de\u05db\u05d9\u05e0\u05d4 \u05de\u05e1\u05dc\u05d5\u05dc \u05de\u05d3\u05e2\u05d9 \u05d4\u05d8\u05d1\u05e2 \u05d5\u05d4\u05d7\u05d9\u05d9\u05dd","\u05e9\u05e4\u05d4 \u05d5\u05e1\u05e4\u05e8\u
105d5\u05ea \u05d2\u05e8\u05de\u05e0\u05d9\u05ea","\u05d4\u05d9\u05e1\u05d8\u05d5\u05e8\u05d9\u05d4",'\u05de\u05d8"\u05e8 - \u05de\u05de\u05e9\u05e7\u05d9 \u05d8\u05db\u05e0\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4, \u05d7\u05d1\u05e8\u05d4 \u05d5\u05e8\u05e9\u05ea\u05d5\u05ea','\u05d1\u05d9"\u05e1 \u05d4\u05d0\u05d5\u05e0\u05d9\u05d1\u05e8\u05e1\u05d9\u05d8\u05d0\u05d9 \u05dc\u05dc\u05d9\u05de\u05d5\u05d3\u05d9 \u05d4\u05e1\u05d1\u05d9\u05d1\u05d4',"\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05d4\u05e8\u05d1 \u05ea\u05d7\u05d5\u05de\u05d9\u05ea \u05d1\u05de\u05d3\u05e2\u05d9 \u05d4\u05e8\u05d5\u05d7","\u05de\u05d8\u05e2\u05d9\u05dd \u05d5\u05e6\u05de\u05d7\u05d9 \u05e0\u05d5\u05d9","\u05d4\u05d5\u05e8\u05d0\u05ea \u05d4\u05ea\u05db\u05e0\u05d5\u05ea","\u05d2\u05e0\u05d8\u05d9\u05e7\u05d4","\u05de\u05d3\u05e2\u05d9 \u05d4\u05e6\u05de\u05d7","\u05e9\u05e4\u05d4 \u05d5\u05e1\u05e4\u05e8\u05d5\u05ea \u05e2\u05e8\u05d1\u05d9\u05ea","\u05de\u05d3\u05e2\u05d9 \u05d4\u05e7\u05e8\u05e7\u05e2 \u05d5\u05d4\u05de\u05d9\u05dd","\u05d2\u05d9\u05dc \u05d4\u05e8\u05da","\u05d7\u05e7\u05e8 \u05e4\u05d5\u05dc\u05e7\u05dc\u05d5\u05e8 \u05d5\u05ea\u05e8\u05d1\u05d5\u05ea \u05e2\u05de\u05de\u05d9\u05ea","\u05e2\u05e8\u05d9\u05dd \u05d7\u05db\u05de\u05d5\u05ea \u05d5\u05d0\u05d9\u05e0\u05e4\u05d5\u05e8\u05de\u05d8\u05d9\u05e7\u05d4 \u05d0\u05d5\u05e8\u05d1\u05e0\u05d9\u05ea","\u05d4\u05ea\u05de\u05d7\u05d5\u05ea \u05d1\u05de\u05d3\u05e2\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d4\u05d3\u05d9\u05d2\u05d9\u05d8\u05dc\u05d9\u05d9\u05dd","\u05e4\u05d9\u05dc\u05d5\u05e1\u05d5\u05e4\u05d9\u05d4","\u05de\u05e9\u05e4\u05d8\u05d9\u05dd","\u05d7\u05d8\u05d9\u05d1\u05d4 \u05dc\u05e2\u05d9\u05e6\u05d5\u05d1 \u05d5\u05e4\u05d9\u05ea\u05d5\u05d7 \u05de\u05e9\u05d7\u05e7\u05d9 \u05de\u05d7\u05e9\u05d1","\u05d7\u05e7\u05dc\u05d0\u05d5\u05ea - \u05ea\u05db\u05e0\u05d9\u05ea \u05de\u05d9\u05d5\u05d7\u05d3\u05ea","\u05de\u05d5\u05e1\u05de\u05da \u05d1\u05de\u05d2\u05d3\u05e8 \u05d5\u05de\u05d2\u05d5\u05d5\u05df","\u05de\u05d3\u05e2\u05d9 \u05d1\u05e2\u05dc\u05d9 \u05d4\u05d7\u05d9\u05d9\u05dd","\u05de\u05d3\u05e2\u05d9 \u05d4\u05de\u05d7 \u05d5\u05d4\u05d4\u05ea\u05e0\u05d4\u05d2\u05d5\u05ea","\u05e0\u05d9\u05d4\u05d5\u05dc \u05de\u05dc\u05d5\u05e0\u05d0\u05d5\u05ea, \u05de\u05e9\u05d0\u05d1\u05d9 \u05de\u05d6\u05d5\u05df \u05d5\u05ea\u05d9\u05d9\u05e8\u05d5\u05ea","\u05de\u05db\u05d9\u05e0\u05d4 \u05de\u05e1\u05dc\u05d5\u05dc \u05de\u05d3\u05e2\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d5\u05d4\u05d7\u05d1\u05e8\u05d4 \u05de\u05d5\u05d2\u05d1\u05e8","\u05dc\u05d9\u05de\u05d5\u05d3\u05d9 \u05e2\u05d1\u05e8\u05d9\u05ea - \u05d7\u05d9\u05e6\u05d5\u05e0\u05d9\u05d9\u05dd","\u05d4\u05ea\u05de\u05d7\u05d5\u05ea \u05d1\u05dc\u05d9\u05de\u05d5\u05d3\u05d9\u05dd \u05e2\u05d9\u05e8\u05d5\u05e0\u05d9\u05d9\u05dd \u05d5\u05d0\u05d6\u05d5\u05e8\u05d9\u05d9\u05dd","\u05dc\u05d9\u05de\u05d5\u05d3\u05d9 \u05d2\u05e8\u05de\u05e0\u05d9\u05d4 \u05d1\u05ea \u05d9\u05de\u05d9\u05e0\u05d5: \u05e4\u05d5\u05dc\u05d9\u05d8\u05d9\u05e7\u05d4, \u05d7\u05d1\u05e8\u05d4 \u05d5\u05ea\u05e8\u05d1\u05d5\u05ea","\u05de\u05d3\u05e2 \u05d4\u05d3\u05ea\u05d5\u05ea","\u05e7\u05d3\u05dd \u05de\u05db\u05d9\u05e0\u05d4 \u05d7\u05e1\u05e8\u05d9 \u05d1\u05d2\u05e8\u05d5\u05ea",'\u05e0\u05d9\u05d4\u05d5\u05dc \u05de\u05dc\u05db"\u05e8\u
105d9\u05dd \u05d5\u05de\u05e0\u05d4\u05d9\u05d2\u05d5\u05ea',"\u05e1\u05d8\u05d8\u05d9\u05e1\u05d8\u05d9\u05e7\u05d4","\u05ea\u05e7\u05e9\u05d5\u05e8\u05ea \u05d5\u05e2\u05d9\u05ea\u05d5\u05e0\u05d0\u05d5\u05ea","\u05d1\u05d9\u05d5\u05db\u05d9\u05de\u05d9\u05d4 \u05d5\u05de\u05d3\u05e2\u05d9 \u05d4\u05de\u05d6\u05d5\u05df","\u05de\u05d3\u05e2\u05d9 \u05d4\u05ea\u05d6\u05d5\u05e0\u05d4 - \u05ea\u05db\u05e0\u05d9\u05ea \u05d1\u05d9\u05e0\u05dc\u05d0\u05d5\u05de\u05d9\u05ea","\u05d0\u05d7\u05e8","\u05e2\u05d1\u05d5\u05d3\u05d4 \u05e1\u05d5\u05e6\u05d9\u05d0\u05dc\u05d9\u05ea","\u05d0\u05de\u05d9\u05e8\u05d9\u05dd \u2013 \u05ea\u05db\u05e0\u05d9\u05ea \u05de\u05e6\u05d8\u05d9\u05d9\u05e0\u05d9\u05dd - \u05de\u05d3\u05e2\u05d9 \u05d4\u05d8\u05d1\u05e2","\u05d4\u05d3\u05d2\u05e9 \u05d1\u05de\u05d3\u05e2\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d4\u05d3\u05d9\u05d2\u05d9\u05d8\u05dc\u05d9\u05d9\u05dd","\u05ea\u05dc\u05de\u05d5\u05d3 \u05d5\u05d4\u05dc\u05db\u05d4","\u05d4\u05d9\u05e1\u05d8\u05d5\u05e8\u05d9\u05d4 \u05e9\u05dc \u05e2\u05dd \u05d9\u05e9\u05e8\u05d0\u05dc \u05d5\u05d9\u05d4\u05d3\u05d5\u05ea \u05d6\u05de\u05e0\u05e0\u05d5","\u05dc\u05d9\u05de\u05d5\u05d3\u05d9\u05dd \u05d1\u05d9\u05df-\u05d0\u05d5\u05e0\u05d9\u05d1\u05e8\u05e1\u05d9\u05d8\u05d0\u05d9\u05d9\u05dd \u05dc\u05de\u05d3\u05e2\u05d9 \u05d4\u05d9\u05dd \u05d1\u05d0\u05d9\u05dc\u05ea","\u05de\u05db\u05d9\u05e0\u05ea \u05e9\u05d5\u05d8\u05e8\u05d9\u05dd","\u05d7\u05d8\u05d9\u05d1\u05d4 \u05d1\u05de\u05d3\u05e2\u05d9 \u05d4\u05de\u05d5\u05d7 \u05d1\u05d3\u05d2\u05e9 \u05d7\u05d9\u05e9\u05d5\u05d1\u05d9","\u05de\u05d5\u05e1\u05d9\u05e7\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4","\u05de\u05d3\u05d9\u05e0\u05d9\u05d5\u05ea \u05e6\u05d9\u05d1\u05d5\u05e8\u05d9\u05ea-\u05e6\u05d5\u05e2\u05e8\u05d9\u05dd \u05dc\u05e9\u05d9\u05e8\u05d5\u05ea \u05d4\u05de\u05d3\u05d9\u05e0\u05d4","\u05de\u05d3\u05e2\u05d9\u05dd \u05d1\u05d9\u05d5\u05e8\u05e4\u05d5\u05d0\u05d9\u05d9\u05dd","\u05d0\u05d5\u05e7\u05d9\u05d9\u05e0\u05d5\u05d2\u05e8\u05e4\u05d9\u05d4","\u05d4\u05d5\u05e8\u05d0\u05ea \u05d4\u05de\u05d3\u05e2\u05d9\u05dd","\u05d0\u05e7\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4, \u05d0\u05d1\u05d5\u05dc\u05d5\u05e6\u05d9\u05d4 \u05d5\u05d4\u05ea\u05e0\u05d4\u05d2\u05d5\u05ea",'\u05e1\u05d9\u05e2\u05d5\u05d3 - "\u05d0\u05e1\u05e3 \u05d4\u05e8\u05d5\u05e4\u05d0"',"\u05de\u05db\u05d9\u05e0\u05d4 \u05d7\u05e8\u05d3\u05d9\u05ea - \u05de\u05d3\u05e2\u05d9 \u05d4\u05d7\u05d1\u05e8\u05d4",'\u05de\u05d3\u05e2\u05d9\u05dd \u05d1\u05d9\u05d5-\u05e8\u05e4\u05d5\u05d0\u05d9\u05d9\u05dd \u05d1\u05e8\u05e4\u05d5"\u05e9',"\u05d1\u05e8\u05d9\u05d0\u05d5\u05ea \u05d4\u05e6\u05d9\u05d1\u05d5\u05e8 \u05d5\u05e8\u05e4\u05d5\u05d0\u05d4 \u05e7\u05d4\u05d9\u05dc\u05ea\u05d9\u05ea","\u05e8\u05e4\u05d5\u05d0\u05d4 \u05d5\u05d8\u05e8\u05d9\u05e0\u05e8\u05d9\u05ea","\u05de\u05db\u05d9\u05e0\u05d4 \u05de\u05e1\u05dc\u05d5\u05dc \u05de\u05d3\u05e2\u05d9 \u05d4\u05d8\u05d1\u05e2 \u05d5\u05d4\u05d7\u05d9\u05d9\u05dd \u05de\u05d5\u05d2\u05d1\u05e8",'\u05d1\u05d9\u05d4"\u05e1 \u05dc\u05de\u05d3\u05e2\u05d9 \u05d4\u05dc\u05e9\u05d5\u05df',"\u05e0\u05d9\u05d4\u05d5\u05dc \u05de\u05e2\u05e8\u05db\u05d5\u05ea \u05d1\u05e8\u05d9\u05d0\u05d5\u05ea","\u05d1\u05d9\u05d5\u05db\u05d9\u05de\u05d9\u05d4, \u05de\u05d3\u05e2\u05d9 \u05d4\u05de\u05d6\u05d5\u05df \u05d5\u05d4\u05ea\u05d6\u05d5\u05e0\u05d4","\u05e8\u05e4\u05d5\u05d0\u05d4 - \u05dc\u05d9\u05de\u05d5\u05d3\u05d9\u05dd \u05db\u05dc\u05dc\u05d9\u05d9\u05dd","\u05d7\u05d9\u05e0\u05d5\u05da","\u05e1\u05d9\u05e2\u05d5\u05d3","\u05e8\u05d9\u05e4\u05d5\u05d9 \u05d1\u05e2\u05d9\u05e1\u05d5\u05e7","\u05ea\u05db\u05e0\u05d9\u05ea \u05dc\u05de\u05e1\u05d8\u05e8\u05e0\u05d8\u05d9\u05dd \u05de\u05e6\u05d8\u05d9\u05d9\u05e0\u05d9\u05dd","\u05de\u05d7\u05e9\u05d1\u05ea \u05d9\u05e9\u05e8\u05d0\u05dc","\u05d2\u05d0\u05d5\u05d2\u05e8\u05e4\u05d9\u05d4","\u05e7\u05e8\u05d9\u05de\u05d9\u05e0\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4 \u05dc\u05db\u05d5\u05d7\u05d5\u05ea \u05d4\u05d1\u05d9\u05d8\u05d7\u05d5\u05df","\u05d0\u05e8\u05db\u05d0\u05d5\u05dc\u05d5\u05d2\u05d9\u05d4 \u05d5\u05d4\u05de\u05d6\u05e8\u05d7 \u05d4\u05e7\u05e8\u05d5\u05d1 \u05d4\u05e7\u05d3\u05d5\u05dd","\u05de\u05d3\u05e2\u05d9 \u05d4\u05d9\u05d4\u05d3\u05d5\u05ea","\u05de\u05d3\u05e2\u05d9 \u05d4\u05de\u05d5\u05d7: \u05d7\u05d9\u05e9\u05d5\u05d1 \u05d5\u05e2\u05d9\u05d1\u05d5\u05d3 \u05de\u05d9\u05d3\u05e2",'\u05d1\u05d9\u05d4"\u05e1 \u05dc\u05d4\u05d9\u05e1\u05d8\u05d5\u05e8\u05d9\u05d4 - \u05ea\u05db\u05e0\u05d9\u05ea \u05de\u05e6\u05d8\u05d9\u05d9\u05e0\u05d9\u05dd','\u05e4\u05d9\u05dc\u05d5\u05e1\u05d5\u05e4\u05d9\u05d4,\u05db\u05dc\u05db\u05dc\u05d4,\u05de\u05d3\u05e2 \u05d4\u05de\u05d3\u05d9\u05e0\u05d4 (\u05e4\u05db"\u05de)','\u05d4\u05e1\u05d1\u05ea \u05d0\u05e7\u05d3\u05de\u05d0\u05d9\u05dd \u05dc\u05ea\u05d5\u05d0\u05e8 \u05d1\u05d5\u05d2\u05e8 \u05d1\u05e1\u05d9\u05e2\u05d5\u05d3 "\u05e9\u05de\u05d9\u05e8" (\u05d0\u05e1\u05e3-\u05d4\u05e8\u
105d5\u05e4\u05d0)',"\u05d1\u05d9\u05d5-\u05d4\u05e0\u05d3\u05e1\u05d4","\u05e1\u05d9\u05e2\u05d5\u05d3 \u05e7\u05dc\u05d9\u05e0\u05d9","\u05de\u05db\u05d9\u05e0\u05d4 \u05de\u05e1\u05dc\u05d5\u05dc \u05de\u05d3\u05e2\u05d9 \u05d4\u05e8\u05d5\u05d7 \u05d5\u05d4\u05d7\u05d1\u05e8\u05d4","\u05d9\u05d9\u05d3\u05d9\u05e9","\u05e8\u05d5\u05e7\u05d7\u05d5\u05ea \u2013 \u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05de\u05e6\u05d5\u05d9\u05e0\u05d5\u05ea, \u05de\u05e1\u05dc\u05d5\u05dc \u05de\u05d5\u05d0\u05e5 \u05dc\u05ea\u05d5\u05d0\u05e8 \u05e9\u05dc\u05d9\u05e9\u05d9","\u05de\u05d3\u05e2 \u05d4\u05de\u05d3\u05d9\u05e0\u05d4","\u05e6\u05e2\u05d9\u05e8\u05d9\u05dd \u05d1\u05d0\u05e7\u05d3\u05de\u05d9\u05d4","\u05dc\u05d9\u05de\u05d5\u05d3\u05d9\u05dd \u05e8\u05d5\u05e1\u05d9\u05d9\u05dd \u05d5\u05e1\u05dc\u05d0\u05d5\u05d5\u05d9\u05d9\u05dd","\u05d0\u05d2\u05e8\u05d5-\u05d0\u05d9\u05e0\u05e4\u05d5\u05e8\u05de\u05d8\u05d9\u05e7\u05d4","\u05ea\u05d5\u05db\u05e0\u05d9\u05ea \u05d2\u05de\u05dc\u05d0","\u05d0\u05e0\u05d2\u05dc\u05d9\u05ea \u05e9\u05e4\u05d4 \u05d6\u05e8\u05d4","\u05de\u05d3\u05e2\u05d9 \u05d4\u05d7\u05d9\u05d9\u05dd","\u05dc\u05d9\u05de\u05d5\u05d3\u05d9 \u05ea\u05e8\u05d1\u05d5\u05ea-\u05ea\u05db\u05e0\u05d9\u05ea \u05d0\u05d9\u05e9\u05d9\u05ea"],Hs=()=>{var e,s,i,f;const[b,z]=(0,j.ok)(),{activeYear:_}=(0,we.A)(),$=Number(b.get("year"))||_,{user:E,fetchAndSetUserRank:I}=(0,t.useContext)(r.R),M=function(e){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();if(null===e||void 0===e||!e.isPremium)return!1;if(!e.premiumExpiresAt)return!0;const i=Date.parse(e.premiumExpiresAt);return Number.isFinite(i)&&i>=Number(s)}(E),{filters:q,setFilters:P,searchTerm:F,setSearchTerm:B}=(0,ie.R)(),[T,L]=(0,t.useState)([]),[H,Y]=(0,t.useState)(!1),[R,O]=(0,t.useState)(!1),D=(0,t.useRef)(!1),[U,G]=(0,t.useState)(1),[V]=(0,t.useState)([Ls[0],...Ls.slice(1).sort()]),{courses:J,isLoading:K,totalCourses:W}=(0,S.A)(F,U,10,q,!0,E?E.starredCourses:[],(null===E||void 0===E?void 0:E.role)||"guest","summary",$);(0,t.useEffect)(()=>{if(!_||b.get("year"))return;const e=new URLSearchParams(b);e.set("year",String(_)),z(e,{replace:!0})},[_,b,z]);const{data:Z}=(0,A.A)(null!==E&&void 0!==E&&E._id&&"guest"!==(null===E||void 0===E?void 0:E.role)?`${Bs}/courses/starred`:null,{headers:{Authorization:`Bearer ${localStorage.getItem("jwtToken")}`}});(0,t.useEffect)(()=>{document.title="StudentInsight - \u05de\u05e8\u05db\u05d6 \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd"},[]),(0,t.useEffect)(()=>{E&&E._id&&!D.current&&(I(E._id).catch(e=>{console.error("Error fetching user rank:",e)}),D.current=!0)},[E,I]),(0,t.useEffect)(()=>{Z&&L(Z)},[Z]),(0,t.useEffect)(()=>{const e=sessionStorage.getItem("paymentSuccess"),s=sessionStorage.getItem("paymentDetails");if(console.log(e,s),"true"===e){Y(!0);let e=JSON.parse(s).planType;"semesterial"===e?e="\u05e1\u05de\u05e1\u05d8\u05e8\u05d9\u05d0\u05dc\u05d9":"yearly"===e?e="\u05e9\u05e0\u05ea\u05d9":"forever"===e&&(e="\u05ea\u05de\u05d9\u05d3\u05d9"),ee().fire({icon:"success",title:"\u05d4\u05de\u05e0\u05d5\u05d9 \u05e0\u05e8\u05db\u05e9 \u05d1\u05d4\u05e6\u05dc\u05d7\u05d4! \ud83c\udf89",html:s?`\n            <p>\u05e9\u05dc\u05d5\u05dd ${JSON.parse(s).buyerName},</p>\n            <p>\u05d4\u05de\u05e0\u05d5\u05d9 \u05e9\u05dc\u05da \u05de\u05e1\u05d5\u05d2 <strong>${e}</strong> \u05e0\u05db\u05e0\u05e1 \u05dc\u05ea\u05d5\u05e7\u05e3 \u05e2\u05d3 <strong>${JSON.parse(s).expirationDate}</strong>.</p>\n            <p>\u05de\u05d6\u05d4\u05d4 \u05d4\u05e8\u05db\u05d9\u05e9\u05d4 \u05e9\u05dc\u05da \u05d4\u05d5\u05d0: <strong>${JSON.parse(s).captureId}</strong></p>\n            <p>\u05ea\u05d5\u05d3\u05d4 \u05e2\u05dc \u05d4\u05d1\u05e2\u05ea \u05d4\u05d0\u05de\u05d5\u05df! \ud83d\ude80</p>\n          `:"\u05d4\u05de\u05e0\u05d5\u05d9 \u05e9\u05dc\u05da \u05d4\u05d5\u05e4\u05e2\u05dc \u05d1\u05d4\u05e6\u05dc\u05d7\u05d4!",confirmButtonText:"\u05d4\u05de\u05e9\u05da",didClose:()=>{Y(!1)},didDestroy:()=>{Y(!1)}}),sessionStorage.removeItem("paymentSuccess"),sessionStorage.removeItem("paymentDetails")}},[]);const X=Math.ceil(W/10),te=e=>{e<1||e>X||G(e)};const re=async e=>{const s=T.some(s=>s._id===e),i=J.find(s=>
1s._id===e),t=s?T.filter(s=>s._id!==e):[...T,i];L(t);try{const s=await fetch(`${Bs}/user/star-course/${e}`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("jwtToken")}`},body:JSON.stringify({user:E})}),i=await s.json();if(!s.ok)throw new Error(i.message||"Failed to toggle starred course")}catch(r){console.error("Error toggling starred status:",r),L(s?[...T]:T.filter(s=>s._id!==e)),Ts.fire({icon:"error",title:"\u05d0\u05d5\u05e4\u05e1...",text:"\u05d7\u05dc\u05d4 \u05e9\u05d2\u05d9\u05d0\u05d4 \u05d1\u05e0\u05d9\u05e1\u05d9\u05d5\u05df \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05dc\u05de\u05d5\u05e2\u05d3\u05e4\u05d9\u05dd"})}},le=function(e,s){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const t=[],r=2*i+1;let n=Math.max(1,e-i),l=Math.min(s,e+i);e-i<=1&&(l=Math.min(r,s)),e+i>=s&&(n=Math.max(1,s-r+1));for(let a=n;a<=l;a++)t.push(a);return n>2?(t.unshift("..."),t.unshift(1)):2===n&&t.unshift(1),l<s-1?(t.push("..."),t.push(s)):l===s-1&&t.push(s),t}(U,X),ae=(null===E||void 0===E||null===(e=E.submittedStatsCourses)||void 0===e?void 0:e.length)||0,oe=(null===E||void 0===E||null===(s=E.takenCourses)||void 0===s?void 0:s.length)||0,ue=(null===T||void 0===T?void 0:T.length)||0,me=ae>0,he=(null===E||void 0===E||null===(i=E.displayName)||void 0===i||null===(f=i.split(" "))||void 0===f?void 0:f[0])||(null===E||void 0===E?void 0:E.displayName)||"",pe=!me&&oe>0,[ve,ge]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{ge(pe)},[pe]),(0,y.jsxs)(y.Fragment,{children:[H&&(0,y.jsx)(de.A,{recycle:!0,numberOfPieces:300,gravity:.1}),(0,y.jsxs)("div",{className:"home-page-shell",dir:"rtl",children:[E&&(0,y.jsxs)("section",{className:"home-hero-panel "+(ve?"is-community-expanded":""),children:[(0,y.jsxs)("div",{className:"home-hero-copy",children:[(0,y.jsxs)("div",{className:"home-kicker",children:[(0,y.jsxs)("span",{children:[(0,y.jsx)(n.A,{size:15}),"\u05de\u05e8\u05db\u05d6 \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd"]}),(0,y.jsxs)("span",{children:[W.toLocaleString("he-IL")," \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d1\u05de\u05d0\u05d2\u05e8"]})]}),(0,y.jsxs)("h1",{children:["\u05e9\u05dc\u05d5\u05dd, ",(0,y.jsx)("span",{children:he})]}),(0,y.jsx)("p",{children:me?"\u05d9\u05e9 \u05dc\u05db\u05dd \u05e6\u05d9\u05d5\u05e0\u05d9\u05dd \u05d7\u05d3\u05e9\u05d9\u05dd? \u05e9\u05d9\u05ea\u05d5\u05e3 \u05e7\u05e6\u05e8 \u05d9\u05e2\u05d6\u05d5\u05e8 \u05dc\u05db\u05d5\u05dc\u05dd \u05dc\u05e7\u05d1\u05dc \u05ea\u05de\u05d5\u05e0\u05d4 \u05de\u05d3\u05d5\u05d9\u05e7\u05ea \u05d9\u05d5\u05ea\u05e8 \u05e2\u05dc \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd.":"\u05e2\u05d3\u05d9\u05d9\u05df \u05dc\u05d0 \u05e9\u05d9\u05ea\u05e4\u05ea\u05dd \u05e1\u05d8\u05d8\u05d9\u05e1\u05d8\u05d9\u05e7\u05d5\u05ea. \u05d2\u05dd \u05e9\u05d9\u05ea\u05d5\u05e3 \u05e7\u05d8\u05df \u05e2\u05d5\u05d6\u05e8 \u05dc\u05e7\u05d4\u05d9\u05dc\u05d4 \u05dc\u05d4\u05d1\u05d9\u05df \u05d8\u05d5\u05d1 \u05d9\u05d5\u05ea\u05e8 \u05d0\u05d9\u05da \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d1\u05d0\u05de\u05ea \u05e0\u05e8\u05d0\u05d9\u05dd."}),(0,y.jsxs)("div",{className:"home-hero-actions",children:[(0,y.jsxs)("button",{className:"home-primary-action",onClick:()=>O(!0),type:"button",children:[(0,y.jsx)(l.A,{size:17}),"\u05d0\u05d9\u05da \u05de\u05e9\u05ea\u05e4\u05d9\u05dd \u05e0\u05ea\u05d5\u05e0\u05d9\u05dd?"]}),(0,y.jsxs)("span",{className:"home-trust-pill",children:[(0,y.jsx)(a.A,{size:15}
1),"\u05d4\u05e4\u05e8\u05d8\u05d9\u05d5\u05ea \u05e0\u05e9\u05de\u05e8\u05ea"]})]}),(0,y.jsxs)("div",{className:"home-hero-badges",children:[(0,y.jsxs)("span",{children:[(0,y.jsx)(o.A,{size:15}),"\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05de\u05d4\u05e7\u05d4\u05d9\u05dc\u05d4"]}),(0,y.jsxs)("span",{children:[(0,y.jsx)(c.A,{size:15}),"\u05ea\u05d5\u05d1\u05e0\u05d5\u05ea \u05dc\u05e4\u05e0\u05d9 \u05e8\u05d9\u05e9\u05d5\u05dd \u05dc\u05e7\u05d5\u05e8\u05e1"]}),(0,y.jsxs)("span",{children:[(0,y.jsx)(d.A,{size:15}),"\u05d1\u05d7\u05d9\u05e8\u05d4 \u05d7\u05db\u05de\u05d4 \u05d9\u05d5\u05ea\u05e8"]})]})]}),(0,y.jsxs)("div",{className:"home-rank-panel",children:[(0,y.jsxs)("div",{className:"home-rank-heading",children:[(0,y.jsx)("span",{className:"home-rank-icon",children:(0,y.jsx)(u.A,{size:19})}),(0,y.jsxs)("div",{children:[(0,y.jsx)("span",{children:"\u05d4\u05ea\u05e8\u05d5\u05de\u05d4 \u05e9\u05dc\u05db\u05dd \u05dc\u05e7\u05d4\u05d9\u05dc\u05d4"}),(0,y.jsx)("strong",{children:me?"\u05db\u05d1\u05e8 \u05ea\u05e8\u05de\u05ea\u05dd":"\u05d0\u05e4\u05e9\u05e8 \u05dc\u05d4\u05ea\u05d7\u05d9\u05dc \u05db\u05d0\u05df"})]}),(0,y.jsx)("button",{className:"home-community-toggle",onClick:()=>ge(e=>!e),type:"button","aria-expanded":ve,"aria-label":ve?"\u05e6\u05de\u05e6\u05d5\u05dd \u05d0\u05d6\u05d5\u05e8 \u05d4\u05ea\u05e8\u05d5\u05de\u05d4 \u05dc\u05e7\u05d4\u05d9\u05dc\u05d4":"\u05d4\u05e8\u05d7\u05d1\u05ea \u05d0\u05d6\u05d5\u05e8 \u05d4\u05ea\u05e8\u05d5\u05de\u05d4 \u05dc\u05e7\u05d4\u05d9\u05dc\u05d4",children:(0,y.jsx)(m.A,{size:19})})]}),(0,y.jsx)("div",{className:"home-rank-body",children:E._id&&(0,y.jsx)(se.A,{userId:E._id,showExtendedFormat:!0})}),(0,y.jsxs)("div",{className:"home-rank-metrics","aria-label":"\u05de\u05d3\u05d3\u05d9 \u05ea\u05e8\u05d5\u05de\u05d4",children:[(0,y.jsxs)("span",{children:[(0,y.jsx)(h.A,{size:15}),(0,y.jsx)("strong",{children:ae}),"\u05e9\u05d9\u05ea\u05d5\u05e4\u05d9\u05dd"]}),(0,y.jsxs)("span",{children:[(0,y.jsx)(p.A,{size:15}),(0,y.jsx)("strong",{children:oe}),"\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd"]}),(0,y.jsxs)("span",{children:[(0,y.jsx)(x.A,{size:15}),(0,y.jsx)("strong",{children:ue}),"\u05de\u05d5\u05e2\u05d3\u05e4\u05d9\u05dd"]})]}),(0,y.jsxs)("div",{className:"home-rank-callout "+(me?"is-active":""),children:[(0,y.jsx)(v.A,{size:16}),(0,y.jsx)("span",{children:me?"\u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05e9\u05db\u05d1\u05e8 \u05e9\u05d9\u05ea\u05e4\u05ea\u05dd \u05e2\u05d5\u05d6\u05e8\u05d9\u05dd \u05dc\u05e1\u05d8\u05d5\u05d3\u05e0\u05d8\u05d9\u05dd \u05d0\u05d7\u05e8\u05d9\u05dd \u05dc\u05e7\u05d1\u05dc \u05d4\u05d7\u05dc\u05d8\u05d5\u05ea \u05d8\u05d5\u05d1\u05d5\u05ea \u05d9\u05d5\u05ea\u05e8.":"\u05e9\u05d9\u05ea\u05d5\u05e3 \u05e8\u05d0\u05e9\u05d5\u05df \u05d9\u05e2\u05d6\u05d5\u05e8 \u05dc\u05d1\u05e0\u05d5\u05ea \u05ea\u05de\u05d5\u05e0\u05d4 \u05d0\u05de\u05d9\u05e0\u05d4 \u05d5\u05e9\u05d9\u05de\u05d5\u05e9\u05d9\u05ea \u05d9\u05d5\u05ea\u05e8 \u05e9\u05dc \u05d4\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd."})]})]}),(0,y.jsx)(k.A,{show:R,setShow:O,showButton:!0})]}),(0,y.jsxs)("div",{className:"home-layout-grid",children:[(0,y.jsxs)("main",{className:"home-main-column",children:[(0,y.jsx)(Fs,{activeAcademicYear:_,academicYear:$,fallbackCourses:J,user:E}),(0,y.jsxs)("section",{className:"home-panel home-discovery-panel","data-onboarding-target":"course-discovery",children:[(0,y.jsxs)("div",{className:"home-panel-head",children:[(0,y.jsxs)("div",{className:"home-section-title",children:[(0,y.jsx)(v.A,{size:18}),(0,y.jsxs)("div",{children:[(0,y.jsx)("h2",{children:"\u05de\u05d5\u05e6\u05d0\u05d9\u05dd \u05d0\u05ea \u05d4\u05e7\u05d5\u05e8\u05e1 \u05d4\u05d1\u05d0"}),(0,y.jsx)("p",{children:"\u05e1\u05e0\u05e0\u05d5, \u05d4\u05e9\u05d5\u05d5, \u05e2\u05d1\u05e8\u05d5 \u05dc\u05e2\u05de\u05d5\u05d3\u05d9 \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05d5\u05e9\u05de\u05e8\u05d5 \u05de\u05d5\u05e2\u05d3\u05e4\u05d9\u05dd \u05dc\u05d4\u05de\u05e9\u05da."})]})]}),(0,y.jsxs)("span",{children:[U," / ",X]})]}),(0,y.jsx)(Q,{departments:V,filters:q,setFilters:P,setSearchTerm:B,setPage:G,totalCourses:W,variant:"home",academicYear:$}),(0,y.jsx)("div",{"data-onboarding-target":"course-results",children:(0,y.jsx)(w.A,{courses:J,starredCourses:T,toggleStarredCourse:re,searchTerm:F,setSearchTerm:B,to:!0,isLoading:K,onboardingSearchTarget:"course-search",setPage:G,enableComparison:M,enableQuickGlance:!0,variant:"home"})}),(0,y.jsxs)(C.A,{className:"home-pagination",children:[(0,y.jsx)(C.A.First,{disabled:U<=1,onClick:()=>te(1)}),(0,y.jsx)(C.A.Prev,{disabled:U<=1,onClick:()=>te(U-1)}),le.map((e,s)=>"..."===e?(0,y.jsx)(C.A.Ellipsis,{},`ellipsis-${s}`):(0,y.jsx)(C.A.Item,{active:e===U,onClick:()=>te(e),children:e},e)),(0,y.jsx)(C.A.Next,{disabled:U>=X,onClick:()=>te(U+1)}),(0,y.jsx)(C.A.Last,{disabled:U>=X,onClick:()=>te(X)})]})]})]}),(0,y.jsxs)("aside",{className:"home-activity-rail","aria-label":"\u05e2\u05d3\u05db\u05d5\u05e0\u05d9\u05dd \u05d5\u05e4\u05e2\u05d9\u05dc\u05d5\u05ea",children:[(0,y.jsx)("div",{className:"home-rail-card home-site-message-card",children:(0,y.jsx)(ne,{})}),(null===E||void 0===E?void 0:E._id)&&"guest"!==(null===E||void 0===E?void 0:E.role)&&(0,y.jsx)("div",{className:"home-rail-card home-poll-card",children:(0,y.jsx)(ce,{})}),(0,y.jsxs)("section",{className:"home-panel home-favorites-card",children:[(0,y.jsxs)("div",{className:"home-card-title",children:[(0,y.jsxs)("span",{children:[(0,y.jsx)(x.A,{size:17}),"\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05de\u05d5\u05e2\u05d3\u05e4\u05d9\u05dd"]}),(0,y.jsx)("small",{children:ue})]}),ue>0?(0,y.jsx)(N,{starredCourses:T,onStarClick:re}):(0,y.jsxs)("div",{className:"home-empty-state",children:[(0,y.jsx)(x.A,{size:28}),(0,y.jsx)("strong",{children:"\u05e2\u05d3\u05d9\u05d9\u05df \u05d0\u05d9\u05df \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05de\u05d5\u05e2\u05d3\u05e4\u05d9\u05dd"}),(0,y.jsx)("span",{children:"\u05e1\u05de\u05e0\u05d5 \u05db\u05d5\u05db\u05d1 \u05dc\u05d9\u05d3 \u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e9\u05de\u05e2\u05e0\u05d9\u05d9\u05e0\u05d9\u05dd \u05d0\u05ea\u05db\u05dd, \u05d5\u05d4\u05dd \u05d9\u05e8\u
105d5\u05db\u05d6\u05d5 \u05db\u05d0\u05df."})]})]}),(0,y.jsx)(Ce,{className:"home-changelog-preview"}),(null===E||void 0===E?void 0:E._id)&&"guest"!==(null===E||void 0===E?void 0:E.role)&&(0,y.jsxs)("div",{className:"home-review-suggestion-wrap",children:[(0,y.jsx)("div",{className:"home-card-title",children:(0,y.jsxs)("span",{children:[(0,y.jsx)(g.A,{size:17}),"\u05e7\u05d5\u05e8\u05e1\u05d9\u05dd \u05e9\u05de\u05d7\u05db\u05d9\u05dd \u05dc\u05d1\u05d9\u05e7\u05d5\u05e8\u05ea \u05e9\u05dc\u05db\u05dd"]})}),(0,y.jsx)(xe,{})]})]})]})]})]})}},19858(e,s,i){i.d(s,{So:()=>d,Yr:()=>u,iP:()=>m});var t=i(63692);const r={humanities:{key:"humanities",labelHe:"\u05d0\u05d1\u05e0\u05d9 \u05e4\u05d9\u05e0\u05d4 \u05e8\u05d5\u05d7",labelEn:"Cornerstones Program: Humanities",shortLabelHe:"\u05e8\u05d5\u05d7"},experimental:{key:"experimental",labelHe:"\u05d0\u05d1\u05e0\u05d9 \u05e4\u05d9\u05e0\u05d4 \u05e0\u05d9\u05e1\u05d5\u05d9\u05d9",labelEn:"Cornerstones Program: Experimental Fields",shortLabelHe:"\u05e0\u05d9\u05e1\u05d5\u05d9\u05d9"},social:{key:"social",labelHe:"\u05d0\u05d1\u05e0\u05d9 \u05e4\u05d9\u05e0\u05d4 \u05d7\u05d1\u05e8\u05d4",labelEn:"Cornerstones Program: Social Sciences",shortLabelHe:"\u05d7\u05d1\u05e8\u05d4"}},n=["humanities","experimental","social"],l=e=>e?"string"===typeof e?e:e.he||e.en||"":"",a=e=>{if(!e)return null;const s="string"===typeof e?{labelHe:e}:e,i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s=String(e.key||e.id||e.category||"").trim().toLowerCase(),i=[e.labelHe,e.labelEn,e.shortLabelHe,l(e.label),e.he,e.en].filter(Boolean).join(" ");return r[s]?s:i.includes("\u05e8\u05d5\u05d7")||i.includes("Humanities")?"humanities":i.includes("\u05e0\u05d9\u05e1\u05d5\u05d9\u05d9")||i.includes("Experimental")?"experimental":i.includes("\u05d7\u05d1\u05e8\u05d4")||i.includes("Social")?"social":s}(s),t=r[i]||{},n=s.labelHe||s.he||l(s.label)||t.labelHe,a=s.labelEn||s.en||t.labelEn||"",o=s.shortLabelHe||t.shortLabelHe||n;return i||n||a?{key:i||n||a,labelHe:n,labelEn:a,shortLabelHe:o}:null},o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const s=new Map;return e.map(a).filter(Boolean).forEach(e=>{s.set(e.key,e)}),Array.from(s.values()).sort((e,s)=>(n.indexOf(e.key)<0?n.length:n.indexOf(e.key))-(n.indexOf(s.key)<0?n.length:n.indexOf(s.key)))},c=e=>e&&"object"===typeof e?Array.isArray(e.categories)?e.categories:Array.isArray(e.cornerstoneCategories)?e.cornerstoneCategories:e.category?[e.category]:[]:[],d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const s=new Map;return(e||[]).forEach(e=>{const i=(e=>{const s="object"===typeof e?(0,t.n)(e):String(e||"");return s?{..."object"===typeof e?e:{},code:s,courseCode:s,categories:o(c(e))}:null})(e);if(!i)return;const r=s.get(i.code);s.set(i.code,{...r||{},...i,categories:o([...(null===r||void 0===r?void 0:r.categories)||[],...i.categories])})}),s},u=e=>{const s=o(null===e||void 0===e?void 0:e.categories).map(e=>e.shortLabelHe).filter(Boolean);return s.length?`\u05d0\u05d1\u05df ${s.join(" / ")}`:"\u05d0\u05d1\u05df"},m=e=>{const s=o(null===e||void 0===e?void 0:e.categories).map(e=>e.labelHe||e.labelEn).filter(Boolean);return s.length?s.join(" / "):"\u05d0\u05d1\u05df \u05e4\u05d9\u05e0\u05d4"}},59403(e,s,i){i.d(s,{A:()=>a});var t=i(9950),r=i(44414);const n=/(\[([^\]\n]+)\]\((https?:\/\/[^\s)]+)\)|\*\*([^*\n]+)\*\*|_([^_\n]+)_)/g,l=e=>{const s=[];let i,t=0;for(;null!==(i=n.exec(e));)i.index>t&&s.push(e.slice(t,i.index)),i[2]&&i[3]?s.push((0,r.jsx)("a",{href:i[3],target:"_blank",rel:"noreferrer",children:i[2]},`${i.index}-link`)):i[4]?s.push((0,r.jsx)("strong",{children:i[4]},`${i.index}-bold`)):i[5]&&s.push((0,r.jsx)("em",{children:i[5]},`${i.index}-italic`)),t=n.lastIndex;return t<e.length&&s.push(e.slice(t)),s},a=e=>{let{content:s=""}=e;return(0,r.jsx)("span",{className:"site-message-content",children:String(s).split("\n").map((e,s,i)=>(0,r.jsxs)(t.Fragment,{children:[l(e),s<i.length-1&&(0,r.jsx)("br",{})]},`${s}-${e}`))})}},38845(e,s,i){i.d(s,{A:()=>r});var t=i(9950);const r=(e,s)=>{const[i,r]=(0,t.useState)(null),[n,l]=(0,t.useState)(!0),[a,o]=(0,t.useState)(null),[c,d]=(0,t.useState)(0),u=(0,t.useCallback)(()=>{l(!0),d(e=>e+1)},[]),m=JSON.stringify(s);return(0,t.useEffect)(()=>
1{if(!e)return r(null),o(null),void l(!1);(async()=>{try{const i=await fetch(e,s),t=await i.json();if(!i.ok)throw new Error(t.error||"Failed to fetch data");r(t)}catch(i){o(i)}finally{l(!1)}})()},[e,m,c]),{data:i,isLoading:n,error:a,refetch:u}}}}]);

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.