1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4904,7107,2828,6332],{44171:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/specialities/s",function(){return i(90607)}])},90607:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return b}});var s=i(74817),a=i(71248),n=i(98821),r=i.n(n),l=i(36497),o=i(67833),c=i(52442);let u=r()(()=>Promise.all([i.e(2564),i.e(7117),i.e(7518),i.e(8735),i.e(6018),i.e(8158),i.e(274)]).then(i.bind(i,10274)),{loadableGenerated:{webpack:()=>[10274]},ssr:!0}),p=r()(()=>i.e(7987).then(i.bind(i,67987)),{loadableGenerated:{webpack:()=>[67987]},ssr:!0}),d=r()(()=>Promise.all([i.e(7518),i.e(4842)]).then(i.bind(i,54842)),{loadableGenerated:{webpack:()=>[54842]},ssr:!0}),m=r()(()=>Promise.all([i.e(9980),i.e(2756)]).then(i.bind(i,72756)),{loadableGenerated:{webpack:()=>[72756]},ssr:!0}),f=r()(()=>Promise.all([i.e(7518),i.e(9980),i.e(236),i.e(6258)]).then(i.bind(i,49106)),{loadableGenerated:{webpack:()=>[49106]},ssr:!0}),g=r()(()=>Promise.all([i.e(7518),i.e(8735),i.e(236),i.e(3997)]).then(i.bind(i,43997)),{loadableGenerated:{webpack:()=>[43997]},ssr:!0}),w=r()(()=>i.e(1629).then(i.bind(i,91629)),{loadableGenerated:{webpack:()=>[91629]},ssr:!0}),h=r()(()=>Promise.all([i.e(8735),i.e(1260),i.e(236),i.e(7603)]).then(i.bind(i,17603)),{loadableGenerated:{webpack:()=>[17603]},ssr:!0});var b=!0;t.default=()=>{let e=(0,a.useRef)(),{query:t}=(0,l.useRouter)(),i=(0,l.useRouter)(),{t:n}=(0,o.Z)("speciality"),{t:r,lang:b}=(0,o.Z)("common"),[y,_]=(0,a.useState)([]),[v,k]=(0,a.useState)(!1),[j,x]=(0,a.useState)(),[E,L]=(0,a.useState)(!1),[S,G]=(0,a.useState)(1);(0,a.useEffect)(()=>{i.isReady&&t&&(S=1,G(1),_([]),P())},[i.isReady,i.asPath,t.type,t.skills,t.cost,t.market,t.term]),(0,a.useEffect)(()=>{t&&S>1&&P()},[S]);let P=async()=>{if(!S)return;k(!0);let e={count:12,page:S};t.type&&(e.type=t.type),t.cost&&(e.cost=t.cost),t.skills&&(e.skills=t.skills),t.market&&(e.market=t.market),t.term&&(e.term=t.term);let i=await (0,c._L)(e);L((null==i?void 0:i.result.total_pages)>S),_(e=>e.concat(null==i?void 0:i.result.items)),x(null==i?void 0:i.result.total_items),k(!1)},I=(0,a.useCallback)(async t=>{!v&&(e.current&&e.current.disconnect(),e.current=new IntersectionObserver(()=>{E&&G(S++)},{root:null,rootMargin:"20px",threshold:0}),t&&e.current.observe(t))},[v,E]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(m,{title:n("filter"),description:r("specialities-seo-description"),url:"/specialities/s?",preloadImage:"/media/images/hero.svg",jsonLd:{"@context":"https://schema.org","@graph":[{"@type":"SearchResultsPage","@id":"https://www.for9a.com/specialities/s#webpage",url:"https://www.for9a.com/specialities/s",name:`${r("specialities-seo-title")} - ${n("filter")}`,description:r("specialities-seo-description"),isPartOf:{"@id":"https://www.for9a.com/#website"},inLanguage:"en"===b?"en-US":"ar-SA"},{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"en"===b?"Home":"Ø§ÙØ±Ø¦ÙØ³ÙØ©",item:"https://www.for9a.com"},{"@type":"ListItem",position:2,name:r("specialities-seo-title"),item:"https://www.for9a.com/specialities"},{"@type":"ListItem",position:3,name:n("filter"),item:"https://www.for9a.com/specialities/s"}]}]}}),(0,s.jsx)(f,{slotIdMobile:"4110115685",slotId:"6544707333",image:"/r-assets/images/jobsBG.webp",title:n("university-specialities-guide"),desc:n("university-specialities-guide")+" "+n("future-specialities")}),(0,s.jsx)(u,{}),(0,s.jsx)(h,{}),(!y||v&&1==S)&&(0,s.jsx)("div",{className:"container sm:grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-1 mt-5 ",children:[1,2,3,4,5,6,7,8].map(e=>(0,s.jsx)(w,{ukey:`${e}-arti-load`},`loading-${e}`))}),(0,s.jsxs)("div",{className:"container global mb-12",children:[j>0&&(0,s.jsx)("div",{className:`sm:grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 lg:gap-3.5 2 gap-x-2.5 gap-y-5 justify-evenly content-center`,children:null==y?void 0:y.map((e,t)=>(0,s.jsx)(g,{item:e,author:!1,priority:t<3},t))}),0==j&&(0,s.jsx)(d,{link:"/specialities"}),(0,s.jsx)("div",{ref:I}),v&&S>1&&(0,s.jsx)(p,{})]})]})}},47107:function(e,t,i){"use strict";i.d(t,{G:function(){return o}});var s=i(58496),a=i.n(s),n=i(36497),r=i.n(n),l=i(90185).Buffer;let o=async e=>{var t,i;let s=(null===r()||void 0===r()?void 0:null===(t=r().router)||void 0===t?void 0:t.locale)||a().get("NEXT_LOCALE")||"en",n="";if(e){if(a().get("_F_uAu")){let e=a().get("_F_uAu"),t="undefined"!=typeof atob?atob(e):l.from(e,"base64").toString("ascii");n=localStorage.getItem("MOBILE_USER__TOKEN")?localStorage.getItem("MOBILE_USER__TOKEN"):t}else{let e=await fetch("/api/auth/session"),t=e.ok?await e.json():null;n=null==t?void 0:null===(i=t.user)||void 0===i?void 0:i.key}}return{headers:{Accept:"application/json",lang:s,...e&&n&&{Authentication:n}}}}},52442:function(e,t,i){"use strict";i.d(t,{L$:function(){return l},Ox:function(){return o},_L:function(){return c}});var s=i(34506),a=i(47107),n=i(12828);
2let r=s.Z.create({baseURL:"https://api.for9a.com"}),l=async e=>{let t=`https://api.for9a.com/speciality?count=12&page=1&type=${e.type}`;return await r.get(t,await (0,a.G)(!0)).then(e=>e.data)},o=async(e,t)=>{let i=`https://api.for9a.com/speciality?type=${e.type}&page=${t}&count=12`;return await r.get(i,await (0,a.G)(!0)).then(e=>e.data)},c=async e=>{let t=`https://api.for9a.com/speciality?${(0,n.Y)(e)}`;return await r.get(t,await (0,a.G)(!0)).then(e=>e.data)}},12828:function(e,t,i){"use strict";i.d(t,{Y:function(){return s}});let s=e=>{var t=[];for(let i in e)e.hasOwnProperty(i)&&t.push(i+"="+encodeURIComponent(e[i]));return t.join("&")}}},function(e){e.O(0,[2545,2888,9774,179],function(){return e(e.s=44171)}),_N_E=e.O()}]);
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.