PageSourceSearch

https://ersa.ae/_next/static/chunks/pages/media-center/[...params]-116676ed03e0f4e4.js

js ersa.ae collected 2026-10-02 01:11:00 UTC 13,711 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[798],{4479:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/media-center/[...params]",function(){return l(176)}])},7981:function(e,t,l){"use strict";l.d(t,{Z:function(){return a}});var n=l(5893);function a(e){let{id:t,name:l,isPrimary:a,isLoading:r,onClick:s,className:o,children:i}=e;return(0,n.jsx)("button",{id:t,className:"group relative overflow-hidden rounded-lg px-6 py-3 text-[16px] font-medium leading-5 before:absolute before:end-[unset] before:start-0 before:top-0 before:h-[50%] before:w-0 before:transition-all before:duration-300 after:absolute after:bottom-0 after:end-0 after:start-[unset] after:h-[50%] after:w-0 after:transition-all after:duration-300 hover:before:w-full hover:after:w-full lg:py-4 [&:not(:hover)]:before:end-0 [&:not(:hover)]:before:start-[unset] [&:not(:hover)]:after:end-[unset] [&:not(:hover)]:after:start-0 ".concat(a?"bg-[linear-gradient(180deg,#D72526_0%,#D72526_100%)] text-white before:bg-[#EDEEF0] after:bg-[#EDEEF0] hover:text-[#212121]":"bg-[linear-gradient(180deg,#EDEEF0_0%,#D1D5DB_100%)] text-[#212121] before:bg-[linear-gradient(180deg,#D72526_0%,#D72526_100%)] after:bg-[linear-gradient(180deg,#D72526_0%,#D72526_100%)] hover:text-white"," ").concat(o),onClick:s,disabled:r,children:(0,n.jsx)("div",{className:"relative z-[1] transition-all duration-300",children:r?(0,n.jsx)("span",{class:"loading-indicator"}):i})})}},2464:function(e,t,l){"use strict";l.d(t,{_:function(){return n}});let n=(e,t)=>new Date(e).toLocaleDateString(t,{year:"numeric",month:"long",day:"numeric"})},1818:function(e,t,l){"use strict";l.d(t,{m:function(){return n}});let n=e=>{let t=String(e);return(t=(t=(t=(t=null==(t=t.trim())?void 0:t.replaceAll(" ","-")).replaceAll("+","")).replaceAll("--","")).replaceAll("&","")).toLowerCase()}},285:function(e,t,l){"use strict";l.d(t,{Z:function(){return v}});var n=l(5893),a=l(845),r=l(3839),s=l(4216),o=l(1798),i=l(1163),c=l(7294),d=l(259),x=l(7981),m=l(5397),p=l(6975),u=l.n(p),f=l(1524),h=l.n(f),g=l(3535);let j=c.forwardRef((e,t)=>{let{type:l,label:a,classes:r,error:s,countryError:o,control:c,countryRules:d,countryCodePlaceholder:x,countrySearchPlaceholder:m,countryNoResults:p,triggerPhoneValidation:f,name:j,onChange:v,onBlur:b}=e,{locale:w}=(0,i.useRouter)();return(0,n.jsxs)("div",{className:r,children:[(0,n.jsx)("label",{htmlFor:"textInput",className:"sr-only",children:a}),"phone"===j?(0,n.jsx)(g.Z,{id:"footer-contact-phone",label:a,phoneRegistration:{name:j,onChange:v,onBlur:b,ref:t},control:c,countryRules:d,countryCodePlaceholder:x,countrySearchPlaceholder:m,countryNoResults:p,triggerPhoneValidation:f,theme:"dark",containerClassName:"flex h-[56px] w-full rounded-lg border-[0.5px] border-solid border-[rgba(255,255,255,0.5)] bg-[rgba(255,255,255,0.1)] text-[13px] leading-6 text-white",codeClassName:"flex w-[112px] items-center justify-between gap-1 bg-transparent px-3 text-[13px] outline-none",inputClassName:"min-w-0 flex-1 bg-transparent p-4 text-[13px] text-white outline-none placeholder:text-[rgba(255,255,255,0.6)] ".concat("ar"===w?"".concat(u().className," text-right"):h().className)}):"textarea"===l?(0,n.jsx)("textarea",{id:"textInput",placeholder:a,className:"-mb-1 h-[104px] w-full resize-none rounded-lg border-[0.5px] border-solid border-[rgba(255,255,255,0.5)] bg-[rgba(255,255,255,0.1)] p-4 font-[inherit] text-[13px] leading-6 text-white placeholder:font-[inherit] placeholder:font-normal placeholder:leading-6 placeholder:text-[#A7A29F] placeholder:text-[rgba(255,255,255,0.6)] focus:outline-none ".concat("ar"===w?u().className:h().className),name:j,onChange:v,onBlur:b,ref:t}):(0,n.jsx)("input",{type:l,id:"textInput",placeholder:a,className:"h-[56px] w-full rounded-lg border-[0.5px] border-solid border-[rgba(255,255,255,0.5)] bg-[rgba(255,255,255,0.1)] p-4 font-[inherit] text-[13px] leading-6 text-white placeholder:font-[inherit] placeholder:font-normal placeholder:leading-6 placeholder:text-[#A7A29F] placeholder:text-[rgba(255,255,255,0.6)] ".concat("ar"===w?u().className:h().className," ").concat("ar"===w&&"phone"===j?"text-right":""),name:j,onChange:v,onBlur:b,ref:t,dir:"phone"===j?"ltr":"inherit"}),(o||s)&&(0,n.jsx)("div",{className:"mt-[6px] text-[14px] leading-[24px] text-[#D72526]",children:(o||s).message})]})});function v(){let[e,t]=(0,c.useState)(!1),{locale:l}=(0,i.useRouter)(),{t:p}=(0,o.$G)("common"),{handleSubmit:u,reset:f,errors:h,registerName:g,registerPhone:v,control:b,countryRules:w,triggerPhoneValidation:N,registerEmail:y,registerMessage:E}=(0,r.Z)(),{sendRequest:_,isLoading:D,errorMessage:C}=(0,s.Z)("/api/contact-us",()=>t(!0),f),{executeRecaptcha:F}=(0,d.xX)(),A=async e=>{if(!F){console.log("reCAPTCHA not yet available");return}let t=await F("footer_contact_form");await _({data:e,captchaToken:t})};return(0,c.useEffect)(()=>{f()},[l]),(0,n.jsxs)("section",{id:"contact-us-section",className:"relative bg-[linear-gradient(180deg,#1C1D1D_24%,#0C0C0C_100%)] px-5 py-8 md:pb-[58px] md:pt-12",children:[(0,n.jsxs)("div",{className:"mx-auto flex max-w-[1600px] flex-col gap-8 md:justify-between lg:flex-row",children:[(0,n.jsx)("div",{className:"flex flex-col items-start justify-between lg:w-2/4",children:(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"mb-[10px] text-[16px] font-semibold leading-[24px] text-[#D72526]",children:p("contact.title")}),(0,n.jsx)("p",{className:"mb-4 text-[24px] font-[600] leading-10 text-white md:max-w-[560px] md:text-[32px] 2xl:max-w-[600px] 2xl:font-[600] rtl:font-[500] rtl:leading-[48px] rtl:2xl:font-[500]",children:p("contact.leadText")}),(0,n.jsx)("div",{className:"text-base font-light tracking-wide text-[#FFFFFFCC] md:text-[15px]",children:p("contact.para")})]})}),(0,n.jsxs)("form",{className:"grid w-full max-w-[693px] flex-1 grid-cols-2 items-start gap-4",onSubmit:u(A),autoComplete:"off",noValidate:!0,children:[(0,n.jsx)(j,{type:"text",label:p("contact.
1inputName.placeholder"),classes:"col-span-2 md:col-span-1",error:h.name,...g()}),(0,n.jsx)(j,{type:"text",label:p("contact.inputPhone.placeholder"),classes:"col-span-2 md:col-span-1",error:h.phone,countryError:h.countryIso,control:b,countryRules:w,countryCodePlaceholder:p("contact.inputPhone.countryCodePlaceholder"),countrySearchPlaceholder:p("contact.inputPhone.countrySearchPlaceholder"),countryNoResults:p("contact.inputPhone.countryNoResults"),triggerPhoneValidation:N,...v()}),(0,n.jsx)(j,{type:"email",label:p("contact.inputEmail.placeholder"),classes:"col-span-2",error:h.email,...y()}),(0,n.jsx)(j,{type:"textarea",label:p("contact.inputMessage.placeholder"),classes:"col-span-2",error:h.message,...E()}),(0,n.jsx)(x.Z,{id:"contact-us",isLoading:D,className:"col-span-2",children:p("contact.button")}),(0,n.jsx)(a.Z,{dark:!0,className:"col-span-2",children:C})]})]}),e&&(0,n.jsx)(m.Z,{onClose:()=>t(!1)})]})}j.displayName="Input"},7252:function(e,t,l){"use strict";l.d(t,{Z:function(){return d}});var n=l(5893),a=l(1163),r=l(7294),s=l(285),o=l(8733),i=l(1707),c=l(2231);function d(e){let{children:t}=e,[l,d]=(0,r.useState)(!1);return(0,a.useRouter)(),(0,r.useEffect)(()=>{let e=document.getElementById("sticky-header"),t=()=>{let t=document.documentElement.scrollTop;t>=400?null==e||e.classList.remove("-translate-y-full"):t<400&&(null==e||e.classList.add("-translate-y-full"))};return window.addEventListener("scroll",t),()=>window.removeEventListener("scroll",t)},[]),(0,r.useEffect)(()=>{l?document.body.style.overflow="hidden":document.body.style.overflow="auto"},[l]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex min-h-screen flex-col",children:[(0,n.jsx)(c.Z,{layoutName:"inner",isNavMenuOpen:l,setIsNavMenuOpen:d}),(0,n.jsx)(o.Z,{navIsOpen:l}),(0,n.jsx)("main",{className:"grow pt-[46px] lg:pt-[104px]",children:t}),(0,n.jsx)(s.Z,{}),(0,n.jsx)(i.Z,{})]})})}},176:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSP:function(){return b},default:function(){return w}});var n=l(5893),a=l(761),r=l(7252),s=l(1163),o=l(7294),i=l(1664),c=l.n(i),d=l(1798),x=()=>{let{t:e}=(0,d.$G)("media-center");return(0,n.jsx)("div",{className:"flex flex-col gap-[26px] md:max-w-[1600px] md:mx-auto my-0",children:(0,n.jsxs)("div",{className:"flex flex-row items-center mt-6 md:mt-[54px] gap-1",children:[(0,n.jsx)(c(),{href:"/",children:(0,n.jsxs)("span",{className:"text-[#999694] text-sm font-medium !leading-5",children:[e("header.home"),"/"]})}),(0,n.jsx)(c(),{href:"/media-center",children:(0,n.jsx)("span",{className:"text-[#999694] text-sm font-medium !leading-5",children:e("header.title")})})]})})},m=l(1818),p=e=>{let{t}=(0,d.$G)("media-center"),{newsData:l,currentId:a}=e;return(0,n.jsxs)("div",{className:"flex flex-col md:gap-1 w-full md:w-1/4 md:mt-[69px] h-fit relative lg:sticky lg:top-[140px]",children:[(0,n.jsx)("div",{className:"flex flex-row",children:(0,n.jsx)("h2",{className:"text-[#15171A] text-xl md:text-2xl !leading-6 md:!leading-8 font-bold",children:t("details.recommended")})}),(0,n.jsx)("div",{className:"flex flex-col divide-y divide-[#EDEEF0]",children:null==l?void 0:l.map(e=>(null==e?void 0:e.id)!==a?(0,n.jsx)(c(),{href:"/media-center/".concat(e.id,"/").concat((0,m.m)(null==e?void 0:e.title)),children:(0,n.jsxs)("div",{className:"flex flex-row gap-4 items-center py-[16px] md:py-5",children:[(0,n.jsx)("img",{src:null==e?void 0:e.imageUrl,alt:null==e?void 0:e.title,width:"104",height:"56",className:"rounded h-14 w-[104px] min-w-[104px] !object-cover "}),(0,n.jsx)("h2",{className:"text-[#15171A] text-xs md:text-[15px] font-normal !leading-4 md:!leading-6 text-ellipsis overflow-hidden break-words line-clamp-2",children:null==e?void 0:e.title})]})},null==e?void 0:e.id):null)})]})},u=l(2464),f=e=>{var t;let{t:l}=(0,d.$G)("media-center"),{locale:a}=(0,s.useRouter)(),[r,i]=(0,o.useState)(!1),{detailsData:c}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex flex-col w-full gap-4 md:w-3/4",children:[(0,n.jsx)("div",{className:"flex mt-4 md:mt-6 ",children:(0,n.jsx)("h1",{className:"text-[#15171A] text-xl md:text-[32px] !leading-[26px] md:!leading-[48px] font-bold",children:null==c?void 0:c.title})}),(0,n.jsx)("div",{className:"flex justify-between lg:items-center",children:(0,n.jsxs)("div",{className:"flex justify-between gap-2 lg:items-center lg:justify-start lg:flex-row lg:gap-8",children:[(0,n.jsxs)("div",{className:"flex flex-row items-center gap-1",children:[(0,n.jsx)("img",{src:"/assets/images/media-center/calendar.svg",alt:"calendar",className:"w-5 h-5 md:w-6 md:h-6 !object-cover"}),(0,n.jsx)("p",{className:"text-[#5E5E5E] font-medium text-xs md:text-sm !leading-[20px] !lg:leading-[16.71px]",children:(0,u._)(null==c?void 0:c.date,a)})]}),(0,n.jsxs)("p",{className:"text-[#5E5E5E] text-xs md:text-sm flex gap-1.5 !leading-[20px] !lg:leading-[16.71px]",children:[(0,n.jsx)("span",{children:l("details.source")}),(0,n.jsx)("span",{className:"font-bold",children:null==c?void 0:c.sourceTitle})]})]})}),(0,n.jsx)("div",{className:"flex",children:(0,n.jsx)("img",{src:null==c?void 0:c.imageUrl,alt:null==c?void 0:c.title,className:"rounded-2xl w-full !object-cover "})}
1),(null==c?void 0:c.details)&&(0,n.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,n.jsx)("img",{src:"/assets/icons/media-center/Line.svg",alt:"Line",width:"1",height:"64",className:" !object-cover "}),(0,n.jsx)("div",{className:"text-[#5E5E5E] line-clamp-2 text-[12px] md:text-[17px] font-normal leading-8 pt-[2px] italic w-full ps-2",dangerouslySetInnerHTML:{__html:null==c?void 0:null===(t=c.details)||void 0===t?void 0:t.split("</p>")[0].replaceAll("<p>","")}})]}),(0,n.jsx)("div",{className:"flex flex-col",children:(null==c?void 0:c.details)&&(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("span",{className:"text-[#15171A] text-xs md:text-base !leading-5 md:!leading-[26px] font-normal",dangerouslySetInnerHTML:{__html:null==c?void 0:c.details}})})})]})})},h=e=>{let{detailsData:t,upComingData:l}=e;return(0,n.jsxs)("div",{className:"bg-[#F7F7F7] px-5 pb-[100px]",children:[(0,n.jsx)(x,{}),(0,n.jsxs)("div",{className:"relative flex flex-col md:flex-row gap-8 lg:gap-[94px] md:max-w-[1600px] md:mx-auto my-0",children:[(0,n.jsx)(f,{detailsData:t}),(0,n.jsx)(p,{newsData:l,currentId:null==t?void 0:t.id})]})]})},g=l(7163),j=l(9008),v=l.n(j),b=!0;function w(e){let{locale:t,detailsData:l,upComingData:r}=e,{t:s}=(0,d.$G)("media-center"),o=(0,a.bN)(t),i=(0,a.Et)(t),c="".concat(i).concat(g.H.services.index);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(v(),{children:[(0,n.jsx)("title",{children:s("pageTitle")}),(0,n.jsx)("meta",{name:"description",content:s("pageDescription")}),(0,n.jsx)("meta",{property:"og:title",content:s("pageTitle")}),(0,n.jsx)("meta",{property:"og:description",content:s("pageDescription")}),(0,n.jsx)("meta",{property:"og:image",content:o}),(0,n.jsx)("meta",{property:"og:type",content:"website"}),(0,n.jsx)("meta",{property:"og:url",content:c}),(0,n.jsx)("meta",{property:"twitter:title",content:s("pageTitle")}),(0,n.jsx)("meta",{property:"twitter:description",content:s("pageDescription")}),(0,n.jsx)("meta",{property:"twitter:image",content:o}),(0,n.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,n.jsx)("link",{rel:"canonical",href:c}),(0,n.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:"".concat(a.dS,"/en").concat(g.H.services.index)}),(0,n.jsx)("link",{rel:"alternate",hrefLang:"en-AE",href:"".concat(a.dS,"/en").concat(g.H.services.index)}),(0,n.jsx)("link",{rel:"alternate",hrefLang:"ar-AE",href:"".concat(a.dS,"/ar").concat(g.H.services.index)})]}),(0,n.jsx)(h,{detailsData:l,upComingData:r})]})}w.getLayout=function(e){return(0,n.jsx)(r.Z,{children:e})}}},function(e){e.O(0,[815,648,888,774,179],function(){return e(e.s=4479)}),_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.