1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3705],{5772:(e,t,r)=>{"use strict";r.d(t,{default:()=>s.a});var a=r(97651),s=r.n(a);r.o(a,"getImageProps")&&r.d(t,{getImageProps:function(){return a.getImageProps}})},6296:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(90425).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},8950:(e,t,r)=>{"use strict";r.d(t,{u:()=>l});var a=r(40980);r(41463),r(41463);let s=`${a.o2}/api/odoo`;async function l(e,t={}){let{method:d="GET",body:i,token:n,headers:c,signal:o}=t,m={"Content-Type":"application/json",...c};n&&(m.Authorization=`Bearer ${n}`);try{let c=e.startsWith("/")?e:`/${e}`,u=`${s}${c}`,h=await fetch(u,{method:d,headers:m,body:i?JSON.stringify(i):void 0,signal:o??AbortSignal.timeout(1e4),cache:"no-store"}),x=await h.text(),f=x.trimStart();if(f.startsWith("<")||f.startsWith("<!"))return{success:!1,error:`Server error (HTTP ${h.status})`,code:"SERVER_HTML_ERROR"};let g=JSON.parse((0,a.fR)(x));if(!h.ok){if(401===h.status&&n&&!t._retried)try{let{useAuthStore:a}=await Promise.all([r.e(5528),r.e(2507)]).then(r.bind(r,55528));if(await a.getState().refreshAccessToken()){let r=a.getState().accessToken;if(r)return l(e,{...t,token:r,_retried:!0})}}catch{}return{success:!1,error:g.error||`HTTP ${h.status}`,code:g.code}}return{success:!0,data:g}}catch(e){return{success:!1,error:e instanceof Error?e.message:"Network error",code:"NETWORK_ERROR"}}}},15197:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(90425).A)("newspaper",[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]])},15573:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(90425).A)("server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]])},21362:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(90425).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},24538:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(90425).A)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},31942:(e,t,r)=>{"use strict";r.d(t,{W:()=>x});var a=r(95155),s=r(33418),l=r(40980),d=r(90549),i=r(94928),n=r(15197),c=r(24538),o=r(15573),m=r(41585),u=r(91958);let h={store:d.A,matches:i.A,news:n.A,addresses:c.A,default:o.A};function x({message:e,onRetry:t,context:r}){let d="ar"===(0,s.Ym)(),i=h[r||"default"];return(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 px-4",children:[(0,a.jsxs)("div",{className:"relative mb-6",children:[(0,a.jsx)("div",{className:"w-20 h-20 bg-red-50 dark:bg-red-900/10 rounded-2xl flex items-center justify-center",children:(0,a.jsx)(i,{className:"w-9 h-9 text-red-300 dark:text-red-400/60"})}),(0,a.jsx)("div",{className:"absolute -bottom-2 -end-2 w-8 h-8 bg-white dark:bg-dark-card rounded-full border-2 border-red-100 dark:border-red-900/30 flex items-center justify-center shadow-sm",children:(0,a.jsx)(m.A,{className:"w-4 h-4 text-red-400"})})]}),(0,a.jsx)("p",{className:"text-fateh-muted dark:text-dark-muted text-center max-w-sm mb-1",children:e||(d?"ØØ¯Ø« خطأ Ù٠تØÙ
ÙÙ Ø§ÙØ¨ÙØ§ÙØ§Øª":"Failed to load data")}),(0,a.jsx)("p",{className:"text-fateh-muted/50 dark:text-dark-muted/50 text-xs text-center mb-5",children:d?"ÙØ±Ø¬Ù اÙÙ
ØØ§ÙÙØ© Ù
رة أخرÙ":"Please try again"}),t&&(0,a.jsxs)("button",{onClick:t,className:(0,l.cn)("inline-flex items-center gap-2 px-6 py-2.5 rounded-xl text-sm font-semibold transition-all","bg-fateh-green hover:bg-fateh-green-dark text-white","shadow-lg shadow-fateh-green/20 hover:shadow-fateh-green/30","btn-press"),children:[(0,a.jsx)(u.A,{className:"w-4 h-4"}),d?"إعادة اÙÙ
ØØ§ÙÙØ©":"Retry"]})]})}},33210:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(90425).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
1],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},33324:(e,t,r)=>{"use strict";r.d(t,{n:()=>a});let a={auth:{emailStart:"/auth/email/start",emailVerify:"/auth/email/verify",phoneStart:"/auth/phone/start",phoneVerify:"/auth/phone/verify",tokenIssue:"/auth/token/issue",tokenRefresh:"/auth/token/refresh",logout:"/auth/logout"},profile:{me:"/user/profile",update:"/user/profile",imageUpload:"/user/profile/image",imageDelete:"/user/profile/image",changeEmail:"/user/change-email",verifyNewEmail:"/user/verify-new-email",deleteAccount:"/account/delete",barcode:"/user/profile/barcode"},hr:{me:"/hr/me",documents:"/hr/documents"},store:{products:"/store/products",featuredProducts:"/store/featured-products",product:e=>`/store/products/${e}`,categories:"/store/categories",search:"/store/search",cartCreate:"/store/cart",cartGet:e=>`/store/cart/${e}`,cartAddItem:e=>`/store/cart/${e}/items`,cartUpdateItem:(e,t)=>`/store/cart/${e}/items/${t}`,cartDeleteItem:(e,t)=>`/store/cart/${e}/items/${t}`,cartClear:e=>`/store/cart/${e}`,cartAddress:e=>`/store/cart/${e}/address`,cartPromo:e=>`/store/cart/${e}/promo`,cartReview:e=>`/store/cart/${e}/review`,cartCheckout:e=>`/store/cart/${e}/checkout`,cart:"/store/cart",cartAdd:"/store/cart/add",orders:"/store/orders",order:e=>`/store/orders/${e}`},news:{list:"/news",detail:e=>`/news/${e}`,byUrl:"/news/by_url"},events:{list:"/events",event:e=>`/events/${e}`,register:e=>`/events/${e}/register`,tickets:"/events/tickets"},loyalty:{wallets:"/loyalty/wallets",walletHistory:e=>`/loyalty/wallets/${e}/history`,redemptionCodes:"/loyalty/redemption-codes",balance:"/loyalty/balance",history:"/loyalty/history",tiers:"/loyalty/tiers"},spin:{active:"/spin/active",play:"/spin/play",myPrizes:"/spin/my-prizes",verify:"/spin/verify",claim:"/spin/claim"},gym:{plans:"/gym/plans",plan:e=>`/gym/plans/${e}`,subscribe:"/gym/subscribe",subscriptions:"/gym/subscriptions",subscription:e=>`/gym/subscriptions/${e}`,autoRenew:e=>`/gym/subscriptions/${e}/auto-renew`,renew:e=>`/gym/subscriptions/${e}/renew`,cancel:e=>`/gym/subscriptions/${e}/cancel`}
1,facilities:{list:"/facilities",detail:e=>`/facilities/${e}`,slots:e=>`/facilities/${e}/slots`,book:e=>`/facilities/${e}/book`,bookings:"/bookings",booking:e=>`/bookings/${e}`},children:{list:"/children",create:"/children",update:e=>`/children/${e}`,delete:e=>`/children/${e}`,enrollments:e=>`/children/${e}/enrollments`,documents:e=>`/children/${e}/documents`,deleteDocument:(e,t)=>`/children/${e}/documents/${t}`},addresses:{list:"/user/addresses",create:"/user/addresses",update:e=>`/user/addresses/${e}`,delete:e=>`/user/addresses/${e}`},nationalAddress:{search:"/address/search",verify:"/address/verify",geocode:"/address/geocode",regions:"/address/regions",cities:e=>`/address/cities/${e}`,districts:e=>`/address/districts/${e}`},notifications:{list:"/notifications",inbox:"/notifications/inbox",inboxRead:e=>`/notifications/inbox/${e}/read`,inboxReadAll:"/notifications/inbox/read-all",inboxUnreadCount:"/notifications/inbox/unread-count",markRead:e=>`/notifications/${e}/read`,settings:"/notifications/settings"},delivery:{options:e=>`/store/cart/${e}/delivery/options`,select:e=>`/store/cart/${e}/delivery/select`},payment:{intent:"/payment/intent",paytabsIntent:"/payment/paytabs/intent",methods:"/payment/methods",status:e=>`/payment/order/${e}/status`,retry:e=>`/payment/order/${e}/retry`,cancel:e=>`/payment/order/${e}/cancel`,callback:"/payment/callback"},feedback:{submit:"/feedback/submit"},cms:{heroSlides:"/cms/hero-slides",banners:"/cms/banners",sponsors:"/cms/sponsors",announcements:"/cms/announcements",quickLinks:"/cms/quick-links",featuredSections:"/cms/featured-sections",settings:"/cms/settings",legal:"/cms/legal"},worldcup:{config:"/worldcup/config",overview:"/worldcup/overview",fixtures:"/worldcup/fixtures",standings:"/worldcup/standings",bracket:"/worldcup/bracket",teams:"/worldcup/teams",team:e=>`/worldcup/team/${e}`,topscorers:"/worldcup/topscorers"},appManagement:{version:"/app/version",status:"/app/status"},health:{check:"/health",version:"/version"}}},33819:(e,t,r)=>{Promise.resolve().then(r.bind(r,94564))},34462:(e,t,r)=>{"use strict";r.d(t,{V7:()=>i,XT:()=>n,xh:()=>d});var a=r(95155),s=r(40980);function l({className:e}){return(0,a.jsx)("div",{className:(0,s.cn)("rounded-lg bg-gradient-to-r from-gray-200 via-gray-100 to-gray-200 dark:from-dark-border dark:via-dark-surface dark:to-dark-border bg-[length:200%_100%] animate-skeleton-shimmer",e)})}function d(){return(0,a.jsxs)("div",{className:"bg-white dark:bg-dark-card rounded-2xl border border-gray-100 dark:border-dark-border overflow-hidden",children:[(0,a.jsx)(l,{className:"h-10 rounded-none"}),(0,a.jsx)("div",{className:"p-6",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex-1 flex flex-col items-center gap-2",children:[(0,a.jsx)(l,{className:"w-16 h-16 rounded-full"}),(0,a.jsx)(l,{className:"w-20 h-4"})]}),(0,a.jsx)(l,{className:"w-24 h-10"}),(0,a.jsxs)("div",{className:"flex-1 flex flex-col items-center gap-2",children:[(0,a.jsx)(l,{className:"w-16 h-16 rounded-full"}),(0,a.jsx)(l,{className:"w-20 h-4"})]})]})})]})}function i(){return(0,a.jsxs)("div",{className:"bg-white dark:bg-dark-card rounded-xl overflow-hidden border border-gray-100 dark:border-dark-border",children:[(0,a.jsx)(l,{className:"aspect-video"}),(0,a.jsxs)("div",{className:"p-5 space-y-3",children:[(0,a.jsx)(l,{className:"h-5 w-3/4"}),(0,a.jsx)(l,{className:"h-4 w-full"}),(0,a.jsx)(l,{className:"h-3 w-1/3"})]})]})}function n(){return(0,a.jsxs)("div",{className:"bg-white dark:bg-dark-card rounded-2xl border border-gray-100 dark:border-dark-border overflow-hidden",children:[(0,a.jsx)(l,{className:"h-14 rounded-none"}),(0,a.jsx)("div",{className:"p-4 space-y-3",children:Array.from({length:8}).map((e,t)=>(0,a.jsx)(l,{className:"h-10 w-full"},t))})]})}},35483:(e,t,r)=>{"use strict";r.d(t,{N_:()=>l,a8:()=>i,rd:()=>n});var a=r(82430);let s=(0,r(93474).A)({locales:["ar","en"],defaultLocale:"ar"}),{Link:l,redirect:d,usePathname:i,useRouter:n,getPathname:c}=(0,a.A)(s)},40980:(e,t,r)=>{"use strict";r.d(t,{O5:()=>m,WQ:()=>c,cn:()=>d,fR:()=>h,j5:()=>o,o2:()=>i,wH:()=>u,zw:()=>n});var a=r(29722),s=r(622),l=r(41463);function d(...e){return(0,s.QP)((0,a.$)(e))}let i="",n=`url('${i}/background-blue.webp')`,c=`url('${i}/background-white.webp')`,o=`${l.env.NEXT_PUBLIC_SITE_URL||"https://fatehclub.com"}/odoo`,m=l.env.NEXT_PUBLIC_ODOO_URL||"https://fatehclub.com",u={logo:`${m}/web/image/website/4/logo/%D9%86%D8%A7%D8%AF%D9%8A%20%D8%A7%D9%84%D9%81%D8%AA%D8%AD?unique=44f62a2`,defaultNewsBg:`${m}/web/image/410650-cfb3a90f/bgd.png`};function h(e){return e.replace(/https?:\/\/(?:dev\.|store\.|www\.)?fatehclub\.com/g,m).replace(/\/web\/image\/fateh_cms_(\w+)\//g,(e,t)=>`/web/image/fateh.cms.${t.replace(/_/g,".")}/`)}},41585:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(90425).A)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},41641:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(90425).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},50910:(e,t,r)=>{"use strict";r.d(t,{c:()=>l});var a=r(33418);function s(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let l=s(0,a.c3);s(0,a.kc)},57420:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(90425).A)("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]])},61878:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(90425).A)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]])},82430:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var a=r(73321),s=r(12115),l=r.t(s,2),d=r(33418),i=l["use".trim()],n=r(92651),c=r(76558),o=r(6144),m=r(95155),u=r(9780);function h(e){let{Link:t,config:r,getPathname:l,...h}=function(e,t){var r,l,d;let u={...r=t||{},localePrefix:"object"==typeof(d=r.localePrefix)?d:{mode:d||"always"}
1,localeCookie:!!((l=r.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof l&&l},localeDetection:r.localeDetection??!0,alternateLinks:r.alternateLinks??!0},h=u.pathnames,x=(0,s.forwardRef)(function({href:t,locale:r,...a},s){let l,d;"object"==typeof t?(l=t.pathname,d=t.params):l=t;let o=(0,n._x)(t),x=e(),g=(0,n.yL)(x)?i(x):x,p=o?f({locale:r||g,href:null==h?l:{pathname:l,params:d},forcePrefix:null!=r||void 0}):l;return(0,m.jsx)(c.default,{ref:s,href:"object"==typeof t?{...t,pathname:p}:p,locale:r,localeCookie:u.localeCookie,...a})});function f(e){let t,{forcePrefix:r,href:a,locale:s}=e;return null==h?"object"==typeof a?(t=a.pathname,a.query&&(t+=(0,o.Zn)(a.query))):t=a:t=(0,o.FP)({locale:s,...(0,o.TK)(a),pathnames:u.pathnames}),(0,o.x3)(t,s,u,r)}function g(e){return function(t,...r){return e(f(t),...r)}}return{config:u,Link:x,redirect:g(a.redirect),permanentRedirect:g(a.permanentRedirect),getPathname:f}}(d.Ym,e);return{...h,Link:t,usePathname:function(){let e,t,l=(e=(0,a.usePathname)(),t=(0,d.Ym)(),(0,s.useMemo)(()=>{if(!e)return e;let a=e,s=(0,n.XP)(t,r.localePrefix);if((0,n.wO)(s,e))a=(0,n.MY)(e,s);else if("never"!==r.localePrefix.mode&&r.localePrefix.prefixes){let r=(0,n.bL)(t);(0,n.wO)(r,e)&&(a=(0,n.MY)(e,r))}return a},[r.localePrefix,t,e])),i=(0,d.Ym)();return(0,s.useMemo)(()=>l&&r.pathnames?(0,o.aM)(i,l,r.pathnames):l,[i,l])},useRouter:function(){let e=(0,a.useRouter)(),t=(0,d.Ym)(),i=(0,a.usePathname)();return(0,s.useMemo)(()=>{function a(e){return function(a,s){let{locale:d,...n}=s||{},c=[l({href:a,locale:d||t,forcePrefix:null!=d||void 0})];Object.keys(n).length>0&&c.push(n),(0,u.A)(r.localeCookie,i,t,d),e(...c)}}return{...e,push:a(e.push),replace:a(e.replace),prefetch:a(e.prefetch)}},[t,i,e])},getPathname:l}}},84980:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(90425).A)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},90549:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(90425).A)("shopping-bag",[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]])},91958:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(90425).A)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]])},93474:(e,t,r)=>{"use strict";function a(e){return e}r.d(t,{A:()=>a})},94564:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>_});var a=r(95155),s=r(50910),l=r(35483),d=r(33418),i=r(12115),n=r(5772),c=r(57420),o=r(84980),m=r(61878),u=r(33210),h=r(6296),x=r(21362),f=r(41641),g=r(40980),p=r(26708),b=r(8950),k=r(33324),y=r(34462),v=r(31942);let w=["all","football","sports","social","commercial"];function j(e,t){return e?new Date(e).toLocaleDateString("ar"===t?"ar-SA-u-ca-gregory":"en-US",{year:"numeric",month:"long",day:"numeric"}):""}function N({post:e,locale:t}){let r=(0,s.c)("news");return(0,a.jsx)(l.N_,{href:`/news/${e.id}`,className:"group block",children:(0,a.jsxs)("article",{className:"bg-white dark:bg-dark-card rounded-xl overflow-hidden border border-gray-100 dark:border-dark-border hover:border-fateh-green/30 transition-all duration-300 hover:shadow-lg",children:[(0,a.jsxs)("div",{className:"aspect-video relative overflow-hidden",children:[e.featured_image?(0,a.jsx)(n.default,{src:e.featured_image,alt:e.title,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-500"}):(0,a.jsx)("div",{className:"w-full h-full bg-gradient-to-br from-fateh-green/20 to-fateh-green/5"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/70 to-transparent"}),(0,a.jsx)("div",{className:"absolute bottom-3 start-3",children:(0,a.jsx)("span",{className:"px-3 py-1 bg-fateh-green text-white text-xs font-medium rounded-full",children:e.category})})]}),(0,a.jsxs)("div",{className:"p-5",children:[(0,a.jsx)("h3",{className:"text-lg font-bold text-fateh-black dark:text-dark-text mb-2 line-clamp-2 group-hover:text-fateh-green transition-colors",children:e.title}),e.subtitle&&(0,a.jsx)("p",{className:"text-sm text-fateh-muted dark:text-dark-muted mb-3 line-clamp-2",children:e.subt
1itle}),(0,a.jsxs)("div",{className:"flex items-center gap-4 text-xs text-fateh-muted dark:text-dark-muted",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(c.A,{className:"w-3.5 h-3.5"}),j(e.published_date,t)]}),e.reading_time_seconds>0&&(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(o.A,{className:"w-3.5 h-3.5"}),r("readTime",{minutes:Math.ceil(e.reading_time_seconds/60)})]})]})]})]})})}function A({post:e,locale:t}){let r=(0,s.c)("news");return(0,a.jsxs)(l.N_,{href:`/news/${e.id}`,className:"group block",children:[(0,a.jsxs)("article",{className:"sm:hidden bg-white dark:bg-dark-card rounded-2xl overflow-hidden border border-gray-100 dark:border-dark-border hover:border-fateh-green/30 transition-all duration-300 hover:shadow-lg",children:[(0,a.jsxs)("div",{className:"aspect-[16/9] relative overflow-hidden",children:[e.featured_image?(0,a.jsx)(n.default,{src:e.featured_image,alt:e.title,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-500"}):(0,a.jsx)("div",{className:"w-full h-full bg-gradient-to-br from-fateh-green/25 to-fateh-green/10"}),(0,a.jsx)("div",{className:"absolute bottom-3 start-3",children:(0,a.jsx)("span",{className:"px-3 py-1 bg-fateh-green text-white text-xs font-medium rounded-full",children:e.category})})]}),(0,a.jsxs)("div",{className:"p-5",children:[(0,a.jsx)("h2",{className:"text-xl font-bold text-fateh-black dark:text-dark-text mb-2 line-clamp-2 group-hover:text-fateh-green transition-colors",children:e.title}),e.subtitle&&(0,a.jsx)("p",{className:"text-sm text-fateh-muted dark:text-dark-muted mb-3 line-clamp-2",children:e.subt
1itle}),(0,a.jsxs)("div",{className:"flex items-center gap-4 text-xs text-fateh-muted dark:text-dark-muted",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(c.A,{className:"w-3.5 h-3.5"}),j(e.published_date,t)]}),e.reading_time_seconds>0&&(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(o.A,{className:"w-3.5 h-3.5"}),r("readTime",{minutes:Math.ceil(e.reading_time_seconds/60)})]})]})]})]}),(0,a.jsx)("article",{className:"hidden sm:block relative rounded-2xl overflow-hidden border border-gray-100 dark:border-dark-border hover:border-fateh-green/30 transition-all duration-300 hover:shadow-lg",children:(0,a.jsxs)("div",{className:"aspect-[2/1] md:aspect-[3/1] relative",children:[e.featured_image?(0,a.jsx)(n.default,{src:e.featured_image,alt:e.title,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-500"}):(0,a.jsx)("div",{className:"w-full h-full bg-gradient-to-br from-fateh-green/25 to-fateh-green/10"}),(0,a.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent"}),(0,a.jsxs)("div",{className:"absolute bottom-0 start-0 end-0 p-6 md:p-8",children:[(0,a.jsx)("span",{className:"px-3 py-1 bg-fateh-green text-white text-xs font-medium rounded-full mb-3 inline-block",children:e.category}),(0,a.jsx)("h2",{className:"text-2xl md:text-3xl font-bold text-white mb-2 group-hover:text-fateh-green-light transition-colors",children:e.title}),e.subtitle&&(0,a.jsx)("p",{className:"text-white/70 mb-3 max-w-2xl",children:e.subt
1itle}),(0,a.jsxs)("div",{className:"flex items-center gap-4 text-sm text-white/60",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(c.A,{className:"w-4 h-4"}),j(e.published_date,t)]}),e.reading_time_seconds>0&&(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(o.A,{className:"w-4 h-4"}),r("readTime",{minutes:Math.ceil(e.reading_time_seconds/60)})]})]})]})]})})]})}function $(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"sm:hidden rounded-2xl overflow-hidden border border-gray-100 dark:border-dark-border bg-white dark:bg-dark-card",children:[(0,a.jsx)("div",{className:"aspect-[16/9] animate-pulse bg-gray-200 dark:bg-dark-surface"}),(0,a.jsxs)("div",{className:"p-5 space-y-3",children:[(0,a.jsx)("div",{className:"h-5 bg-gray-200 dark:bg-dark-surface rounded w-3/4"}),(0,a.jsx)("div",{className:"h-4 bg-gray-200 dark:bg-dark-surface rounded w-1/2"})]})]}),(0,a.jsx)("div",{className:"hidden sm:block rounded-2xl overflow-hidden border border-gray-100 dark:border-dark-border bg-white dark:bg-dark-card",children:(0,a.jsx)("div",{className:"aspect-[2/1] md:aspect-[3/1] animate-pulse bg-gray-200 dark:bg-dark-surface"})})]})}function _(){let e=(0,s.c)("news"),t=(0,d.Ym)(),r="ar"===t,[l,n]=(0,i.useState)("all"),[c,o]=(0,i.useState)(1),[j,_]=(0,i.useState)(""),M=function(e,t){let[r,a]=(0,i.useState)(e);return(0,i.useEffect)(()=>{let t=setTimeout(()=>a(e),400);return()=>clearTimeout(t)},[e,400]),r}(j,0),P=M.length>=2?M:"",R=j.length>=2&&j!==M,S=(0,i.useRef)(null),{data:C,isLoading:L,isError:T,refetch:E}=function(e=1,t=10){let r=(0,d.Ym)();return(0,p.I)({queryKey:["news",e,t,r],queryFn:async()=>{let a=new URLSearchParams({page:String(e),limit:String(t),lang:r});return(await (0,b.u)(`${k.n.news.list}?${a}`)).data??null},staleTime:0,refetchOnMount:"always"})}(c,10),O=C?.results??[],D=C?.has_more??!1,z={football:["ÙØ±Ø© اÙÙØ¯Ù
"],sports:["Ø§ÙØ£ÙادÙÙ
ÙØ©","Ø§ÙØ±Ùاضة"],social:["اÙÙ
سؤÙÙÙØ© Ø§ÙØ§Ø¬ØªÙ
Ø§Ø¹ÙØ©"],commercial:["Ø§ÙØªØ¬Ø§Ø±Ù"]},I="all"===l?O:O.filter(e=>!!e.category&&z[l]?.includes(e.category)),q=P?I.filter(e=>{let t=P.toLowerCase(),r=e.title.toLowerCase().includes(t),a="string"==typeof e.subtitle&&e.subtitle.toLowerCase().includes(t);return r||a}):I,H=(0,i.useCallback)(()=>{_(""),S.current?.focus()},[]),[U,...V]=q;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("section",{className:"bg-fateh-blue pt-12 pb-12 px-4 relative overflow-hidden",children:[(0,a.jsx)("div",{className:"absolute inset-0 opacity-15 pointer-events-none",style:{backgroundImage:g.WQ,backgroundSize:"cover",backgroundPosition:"center"}}),(0,a.jsxs)("div",{className:"max-w-7xl mx-auto relative z-10",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,a.jsx)("div",{className:"w-1 h-8 bg-fateh-green rounded-full"}),(0,a.jsx)("h1",{className:"text-3xl md:text-4xl font-bold text-white",children:e("title")})]}),(0,a.jsx)("p",{className:"text-white/60 text-lg ms-4",children:e("subtitle")})]})]}),(0,a.jsx)("section",{className:"bg-gray-50 dark:bg-dark-bg px-4 py-10",children:(0,a.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,a.jsxs)("div",{className:"mb-6",children:[(0,a.jsxs)("div",{className:"relative max-w-md",children:[(0,a.jsx)(m.A,{className:"absolute start-4 top-1/2 -translate-y-1/2 w-5 h-5 text-fateh-muted dark:text-dark-muted pointer-events-none"}),(0,a.jsx)("input",{ref:S,type:"text",value:j,onChange:e=>_(e.target.value),placeholder:e("searchPlaceholder"),className:(0,g.cn)("w-full ps-12 pe-10 py-3 rounded-xl border border-gray-200 dark:border-dark-border","bg-white dark:bg-dark-card text-fateh-black dark:text-dark-text","placeholder:text-fateh-muted dark:placeholder:text-dark-muted","focus:outline-none focus:ring-2 focus:ring-fateh-green/30 focus:border-fateh-green","transition-all text-sm")}),j&&(0,a.jsx)("button",{onClick:H,className:"absolute end-3 top-1/2 -translate-y-1/2 p-1 rounded-full hover:bg-gray-100 dark:hover:bg-dark-surface transition-colors text-fateh-muted dark:text-dark-muted",children:(0,a.jsx)(u.A,{className:"w-4 h-4"})})]}),R&&(0,a.jsxs)("div",{className:"flex items-center gap-2 mt-2 text-sm text-fateh-muted dark:text-dark-muted",children:[(0,a.jsx)(h.A,{className:"w-4 h-4 animate-spin"}),(0,a.jsx)("span",{children:e("searching")})]}),P&&!R&&!L&&(0,a.jsx)("p",{className:"mt-2 text-sm text-fateh-muted dark:text-dark-muted",children:e("searchResults",{count:q.length})})]}),(0,a.jsx)("div",{className:"flex gap-2 overflow-x-auto pb-6 scrollbar-hide",children:w.map(t=>(0,a.jsx)("button",{onClick:()=>n(t),className:(0,g.cn)("px-5 py-2.5 rounded-xl text-sm font-medium whitespace-nowrap transition-all",l===t?"bg-fateh-green text-white shadow-lg shadow-fateh-green/20":"bg-white dark:bg-dark-card text-fateh-gray dark:text-dark-muted hover:bg-gray-50 dark:hover:bg-dark-surface border border-gray-200 dark:border-dark-border"),children:e(`categories.${t}`)},t))}),L&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"pb-8",children:(0,a.jsx)($,{})}),(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:Array.from({length:6}).map((e,t)=>(0,a.jsx)(y.V7,{},t))})]}),T&&(0,a.jsx)(v.W,{message:e("title"),onRetry:()=>E()}),!L&&!T&&(0,a.jsxs)(a.Fragment,{children:[U&&(0,a.jsx)("div",{className:"pb-8",children:(0,a.jsx)(A,{post:U,locale:t})}),V.length>0?(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:V.map(e=>(0,a.jsx)(N,{post:e,locale:t},e.id))}):!U&&(0,a.jsx)("div",{className:"text-center py-16 text-fateh-muted dark:text-dark-muted",children:P?(0,a.jsxs)("div",{children:[(0,a.jsx)(m.A,{className:"w-12 h-12 text-fateh-muted/30 mx-auto mb-3"}),(0,a.jsx)("p",{children:e("noSearchResults")})]}):e("categories.all")}),(D||c>1)&&(0,a.jsxs)("div",{className:"flex items-center justify-center gap-4 mt-12",children:[(0,a.jsxs)("button",{onClick:()=>o(e=>Math.max(1,e-1)),disabled:c<=1,className:(0,g.cn)("flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-medium transition-all",c<=1?"bg-gray-100 dark:bg-dark-surface text-gray-400 cursor-not-allowed":"bg-white dark:bg-dark-card text-fateh-gray dark:text-dark-muted border border-gray-200 dark:border-dark-border hover:bg-gray-50 dark:hover:bg-dark-surface"),children:[r?(0,a.jsx)(x.A,{className:"w-4 h-4"}):(0,a.jsx)(f.A,{className:"w-4 h-4"}),e("categories.all")&&(r?"Ø§ÙØ³Ø§Ø¨Ù":"Previous")]}),(0,a.jsx)("span",{className:"text-sm text-fateh-muted font-medium",children:c}),(0,a.jsxs)("button",{onClick:()=>o(e=>e+1),disabled:!D,className:(0,g.cn)("flex items-center gap-2 px-5 py-2.5 rounded-xl text-sm font-medium transition-all",D?"bg-white dark:bg-dark-card text-fateh-gray dark:text-dark-muted border border-gray-200 dark:border-dark-border hover:bg-gray-50 dark:hover:bg-dark-surface":"bg-gray-100 dark:bg-dark-surface text-gray-400 cursor-not-allowed"),children:[e("categories.all")&&(r?"Ø§ÙØªØ§ÙÙ":"Next"),r?(0,a.jsx)(f.A,{className:"w-4 h-4"}):(0,a.jsx)(x.A,{className:"w-4 h-4"})]})]})]})]})})]})}},94928:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(90425).A)("trophy",[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]])},97651:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var a={default:function(){return o},getImageProps:function(){return c}};for(var s in a)Object.defineProperty(t,s,{enumerable:!0,get:a[s]});let l=r(31836),d=r(95413),i=r(38437),n=l._(r(36095));function c(e){let{props:t}=(0,d.getImgProps)(e,{defaultLoader:n.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920],imageSizes:[16,32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let o=i.Image}},e=>{e.O(0,[3418,8409,6558,8437,476,8441,3794,7358],()=>e(e.s=33819)),_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.