module.exports=[918622,(e,t,r)=>{t.exports=e.x("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js",()=>require("next/dist/compiled/next-server/app-page-turbo.runtime.prod.js"))},556704,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},832319,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},324725,(e,t,r)=>{t.exports=e.x("next/dist/server/app-render/after-task-async-storage.external.js",()=>require("next/dist/server/app-render/after-task-async-storage.external.js"))},270406,(e,t,r)=>{t.exports=e.x("next/dist/compiled/@opentelemetry/api",()=>require("next/dist/compiled/@opentelemetry/api"))},193695,(e,t,r)=>{t.exports=e.x("next/dist/shared/lib/no-fallback-error.external.js",()=>require("next/dist/shared/lib/no-fallback-error.external.js"))},696117,e=>{"use strict";let t=(process.env.NEXT_PUBLIC_AAU_API_BASE_URL||process.env.AAU_API_BASE_URL||"https://edu.yemenfrappe.com").replace(/\/$/,"");function r(e){let r=String(e||"").trim();if(!r)return"";if(/^https?:\/\/assets\//i.test(r)&&(r=r.replace(/^https?:\/\/assets\//i,"/assets/")),/^\/\/assets\//i.test(r)&&(r=r.replace(/^\/\/assets\//i,"/assets/")),/^(https?:)?\/\//i.test(r))return r.startsWith("//")?`https:${r}`:r;if(/^(data|blob):/i.test(r))return r;let a=r.startsWith("/")?r:`/${r}`;return a.startsWith("/assets/")||a.startsWith("/files/")||a.startsWith("/private/files/")?`${t}${a}`:a}e.s(["resolveMediaUrl",()=>r])},808594,e=>{"use strict";var t=e.i(696117);let r=(process.env.NEXT_PUBLIC_AAU_API_BASE_URL||process.env.AAU_API_BASE_URL||"https://edu.yemenfrappe.com").replace(/\/$/,"");function a(e){return e?.ok&&e?.data!==void 0?e.data:e?.data?.ok&&e?.data?.data!==void 0?e.data.data:e?.data??e}function n(e){return{id:String(e?.id||e?.name||""),titleAr:String(e?.title_ar||e?.titleAr||""),titleEn:String(e?.title_en||e?.titleEn||e?.title_ar||e?.titleAr||""),descAr:String(e?.desc_ar||e?.descAr||""),descEn:String(e?.desc_en||e?.descEn||e?.desc_ar||e?.descAr||""),image:(0,t.resolveMediaUrl)(e?.image),category:e?.category||"other",validUntil:e?.valid_until||e?.validUntil||"",detailsAr:String(e?.details_ar||e?.detailsAr||""),detailsEn:String(e?.details_en||e?.detailsEn||e?.details_ar||e?.detailsAr||""),targetAudienceAr:String(e?.target_audience_ar||e?.targetAudienceAr||""),targetAudienceEn:String(e?.target_audience_en||e?.targetAudienceEn||e?.target_audience_ar||e?.targetAudienceAr||""),benefitsAr:String(e?.benefits_ar||e?.benefitsAr||""),benefitsEn:String(e?.benefits_en||e?.benefitsEn||e?.benefits_ar||e?.benefitsAr||""),durationAr:String(e?.duration_ar||e?.durationAr||""),durationEn:String(e?.duration_en||e?.durationEn||e?.duration_ar||e?.durationAr||""),locationAr:String(e?.location_ar||e?.locationAr||""),locationEn:String(e?.location_en||e?.locationEn||e?.location_ar||e?.locationAr||""),requirementsAr:String(e?.requirements_ar||e?.requirementsAr||""),requirementsEn:String(e?.requirements_en||e?.requirementsEn||e?.requirements_ar||e?.requirementsAr||""),applyLink:String(e?.apply_link||e?.applyLink||"")}}async function i(){try{let e=await fetch(`${r}/api/offers`,{headers:{Accept:"application/json"},cache:"no-store"});if(!e.ok)return[];let t=await e.json(),i=a(t);return(Array.isArray(i)?i:Array.isArray(i?.data)?i.data:[]).map(n)}catch{return[]}}async function s(e){try{let t=await fetch(`${r}/api/offers/${encodeURIComponent(e)}`,{headers:{Accept:"application/json"},cache:"no-store"});if(!t.ok)return null;let i=await t.json();return n(a(i))}catch{return null}}e.s(["getOfferById",()=>s,"getOffersList",()=>i])}];

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