module.exports=[193695,(a,b,c)=>{b.exports=a.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},70864,a=>{a.n(a.i(233290))},102894,a=>{a.n(a.i(666188))},13718,a=>{a.n(a.i(685523))},118198,a=>{a.n(a.i(545518))},262212,a=>{a.n(a.i(866114))},365893,a=>{a.n(a.i(868852))},750321,a=>{"use strict";let b=(process.env.NEXT_PUBLIC_AAU_API_BASE_URL||process.env.AAU_API_BASE_URL||"https://edu.yemenfrappe.com").replace(/\/$/,"");function c(a){let c=String(a||"").trim();if(!c)return"";if(/^https?:\/\/assets\//i.test(c)&&(c=c.replace(/^https?:\/\/assets\//i,"/assets/")),/^\/\/assets\//i.test(c)&&(c=c.replace(/^\/\/assets\//i,"/assets/")),/^(https?:)?\/\//i.test(c))return c.startsWith("//")?`https:${c}`:c;if(/^(data|blob):/i.test(c))return c;let d=c.startsWith("/")?c:`/${c}`;return d.startsWith("/assets/")||d.startsWith("/files/")||d.startsWith("/private/files/")?`${b}${d}`:d}a.s(["resolveMediaUrl",()=>c])},683340,a=>{"use strict";var b=a.i(750321);let c=(process.env.NEXT_PUBLIC_AAU_API_BASE_URL||process.env.AAU_API_BASE_URL||"https://edu.yemenfrappe.com").replace(/\/$/,"");function d(a){return a?.ok&&a?.data!==void 0?a.data:a?.data?.ok&&a?.data?.data!==void 0?a.data.data:a?.data??a}function e(a){return{id:String(a?.id||a?.name||""),titleAr:String(a?.title_ar||a?.titleAr||""),titleEn:String(a?.title_en||a?.titleEn||a?.title_ar||a?.titleAr||""),descAr:String(a?.desc_ar||a?.descAr||""),descEn:String(a?.desc_en||a?.descEn||a?.desc_ar||a?.descAr||""),image:(0,b.resolveMediaUrl)(a?.image),category:a?.category||"other",validUntil:a?.valid_until||a?.validUntil||"",detailsAr:String(a?.details_ar||a?.detailsAr||""),detailsEn:String(a?.details_en||a?.detailsEn||a?.details_ar||a?.detailsAr||""),targetAudienceAr:String(a?.target_audience_ar||a?.targetAudienceAr||""),targetAudienceEn:String(a?.target_audience_en||a?.targetAudienceEn||a?.target_audience_ar||a?.targetAudienceAr||""),benefitsAr:String(a?.benefits_ar||a?.benefitsAr||""),benefitsEn:String(a?.benefits_en||a?.benefitsEn||a?.benefits_ar||a?.benefitsAr||""),durationAr:String(a?.duration_ar||a?.durationAr||""),durationEn:String(a?.duration_en||a?.durationEn||a?.duration_ar||a?.durationAr||""),locationAr:String(a?.location_ar||a?.locationAr||""),locationEn:String(a?.location_en||a?.locationEn||a?.location_ar||a?.locationAr||""),requirementsAr:String(a?.requirements_ar||a?.requirementsAr||""),requirementsEn:String(a?.requirements_en||a?.requirementsEn||a?.requirements_ar||a?.requirementsAr||""),applyLink:String(a?.apply_link||a?.applyLink||"")}}async function f(){try{let a=await fetch(`${c}/api/offers`,{headers:{Accept:"application/json"},cache:"no-store"});if(!a.ok)return[];let b=await a.json(),f=d(b);return(Array.isArray(f)?f:Array.isArray(f?.data)?f.data:[]).map(e)}catch{return[]}}async function g(a){try{let b=await fetch(`${c}/api/offers/${encodeURIComponent(a)}`,{headers:{Accept:"application/json"},cache:"no-store"});if(!b.ok)return null;let f=await b.json();return e(d(f))}catch{return null}}a.s(["getOfferById",()=>g,"getOffersList",()=>f])},159057,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/components/OffersPageContent.tsx <module evaluation> from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/OffersPageContent.tsx <module evaluation>","default")},440245,a=>{"use strict";a.s(["default",()=>b]);let b=(0,a.i(211857).registerClientReference)(function(){throw Error("Attempted to call the default export of [project]/components/OffersPageContent.tsx from the server, but it's on the client. It's not possible to invoke a client function from the server, it can only be rendered as a Component or passed to props of a Client Component.")},"[project]/components/OffersPageContent.tsx","default")},313239,a=>{"use strict";a.i(159057);var b=a.i(440245);a.n(b)},903568,a=>{"use strict";var b=a.i(907997),c=a.i(683340),d=a.i(313239);async function e(){let a=await (0,c.getOffersList)();return(0,b.jsx)(d.default,{initialOffers:a})}a.s(["default",()=>e,"dynamic",0,"force-dynamic","metadata",0,{title:"عروض الجامعة | University Offers",description:"أحدث العروض والفرص المتاحة لطلاب جامعة الجيل الجديد - Latest Offers and Opportunities for Al-Jeel Al-Jadeed Students"},"revalidate",0,0])}];

//# sourceMappingURL=%5Broot-of-the-server%5D__737f8102._.js.map