(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{20063:(e,t,n)=>{"use strict";var r=n(47260);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},25803:(e,t,n)=>{"use strict";n.d(t,{CL:()=>o,NW:()=>i,YZ:()=>r,hh:()=>a,vK:()=>u});let r=["ar","en"],o="nabdh_locale";function a(e){return"ar"===e?"rtl":"ltr"}let i={ar:"ar-SA-u-nu-latn-ca-gregory",en:"en-GB"},u={ar:{native:"العربية",english:"Arabic"},en:{native:"English",english:"English"}}},36819:(e,t,n)=>{"use strict";n.d(t,{LanguageSwitcher:()=>l});var r=n(95155),o=n(20063),a=n(12115),i=n(56502),u=n(25803),s=n(76445);function l(e){let{className:t,compact:n=!1}=e,{locale:l,t:c}=(0,i.s)(),m=(0,o.useRouter)(),[d,h]=(0,a.useTransition)();return(0,r.jsx)("div",{role:"radiogroup","aria-label":c("common.language"),className:(0,s.cn)("inline-flex items-center gap-0.5 rounded-lg border border-border bg-surface-2 p-0.5",d&&"opacity-60",t),children:u.YZ.map(e=>(0,r.jsx)("button",{type:"button",role:"radio","aria-checked":e===l,onClick:()=>{e!==l&&(document.cookie="".concat(u.CL,"=").concat(e,"; path=/; max-age=").concat(31536e3,"; samesite=lax"),h(()=>m.refresh()))},className:(0,s.cn)("rounded-md px-2.5 py-1 text-xs font-medium transition-colors",e===l?"bg-brand/18 text-brand":"text-text-muted hover:bg-surface-3 hover:text-text"),children:n?e.toUpperCase():u.vK[e].native},e))})}},52985:(e,t,n)=>{"use strict";n.d(t,{HM:()=>o,Yq:()=>m,ZV:()=>i,_P:()=>u,a3:()=>d,fU:()=>c,l9:()=>s,om:()=>h,r6:()=>l});var r=n(25803);function o(e){return(t,n)=>{let r=function(e,t){let n=t.split("."),r=e;for(let e of n){if("object"!=typeof r||null===r)return;r=r[e]}return"string"==typeof r?r:void 0}(e,t);return void 0===r?t:n?r.replace(/\{(\w+)\}/g,(e,t)=>t in n?String(n[t]):e):r}}let a=new Map;function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Number.isFinite(t)?(function(e,t){let n="".concat(e,":").concat(JSON.stringify(t)),o=a.get(n);return o||(o=new Intl.NumberFormat(r.NW[e],t),a.set(n,o)),o})(e,n).format(t):"—"}function u(e,t){let n=Math.abs(t),r=n>=1e3||n>=100?0:1;return i(e,t,{maximumFractionDigits:r,minimumFractionDigits:r})}function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return"".concat(i(e,t,{maximumFractionDigits:n,minimumFractionDigits:n}),"%")}function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{dateStyle:"medium",timeStyle:"short"};return new Intl.DateTimeFormat(r.NW[e],{timeZone:"Asia/Riyadh",...n}).format(t)}function c(e,t){return l(e,t,{hour:"2-digit",minute:"2-digit",hour12:!1})}function m(e,t){return l(e,t,{dateStyle:"medium"})}function d(e,t){let n=Math.max(0,Math.round(t));if(n<60)return e("common.duration.minutes",{value:n});let r=Math.floor(n/60),o=n%60;if(n<1440)return 0===o?e("common.duration.hours",{value:r}):e("common.duration.hoursMinutes",{hours:r,minutes:o});let a=Math.floor(n/1440),i=Math.floor(n%1440/60);return 0===i?e("common.duration.days",{value:a}):e("common.duration.daysHours",{days:a,hours:i})}function h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),o=("number"==typeof t?t:t.getTime())-n,a=new Intl.RelativeTimeFormat(r.NW[e],{numeric:"auto"});for(let[e,t]of[["year",31536e6],["month",2592e6],["day",864e5],["hour",36e5],["minute",6e4],["second",1e3]])if(Math.abs(o)>=t||"second"===e)return a.format(Math.round(o/t),e);return a.format(0,"second")}},54627:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,52619,23)),Promise.resolve().then(n.bind(n,36819))},56502:(e,t,n)=>{"use strict";n.d(t,{I18nProvider:()=>s,s:()=>l});var r=n(95155),o=n(12115),a=n(25803),i=n(52985);let u=(0,o.createContext)(null);function s(e){let{locale:t,messages:n,renderedAt:s,children:l}=e,[c,m]=(0,o.useState)(null);(0,o.useEffect)(()=>{m(Date.now());let e=setInterval(()=>m(Date.now()),3e4);return()=>clearInterval(e)},[]);let d=(0,o.useMemo)(()=>{let e=(0,i.HM)(n);return{locale:t,dir:(0,a.hh)(t),t:e,n:(e,n)=>(0,i.ZV)(t,e,n),mw:e=>(0,i._P)(t,e),pct:(e,n)=>(0,i.l9)(t,e,n),dateTime:(e,n)=>(0,i.r6)(t,e,n),date:e=>(0,i.Yq)(t,e),time:e=>(0,i.fU)(t,e),relative:e=>(0,i.om)(t,e,null!=c?c:s),duration:t=>(0,i.a3)(e,t)}},[t,n,c,s]);return(0,r.jsx)(u.Provider,{value:d,children:l})}function l(){let e=(0,o.useContext)(u);if(!e)throw Error("useI18n must be used inside <I18nProvider>");return e}},76445:(e,t,n)=>{"use strict";n.d(t,{cn:()=>a});var r=n(2821),o=n(75889);function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.QP)((0,r.$)(t))}}},e=>{e.O(0,[2619,4909,8441,1255,7358],()=>e(e.s=54627)),_N_E=e.O()}]);