1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[83951],{6590:function(e,t,a){a.d(t,{Z:function(){return i}});var l=a(57437),r=a(33145),n=a(27648),s=a(16016);function i(e){var t,a;let{blog:i,fullImageUrl:o,fallbackTypeSlug:c="blog",sizes:d="(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw",variant:m="featured"}=e,x="featured"===m,g=(null===(t=i.authorName)||void 0===t?void 0:t.trim())||"Admin",p=i.authorImageUrl||"",u=(null===(a=i.headingHtml)||void 0===a?void 0:a.replace(/<[^>]*>/g,""))||i.title||"Article";return(0,l.jsx)(n.default,{href:"/".concat((0,s.CG)(i.blogType)||c,"/").concat(i.slug,"/"),className:"block",children:(0,l.jsxs)("article",{className:"group relative cursor-pointer overflow-hidden rounded-[8px] bg-white shadow-[0_4px_6px_-1px_rgba(0,0,0,0.1),0_2px_4px_-1px_rgba(0,0,0,0.06)] transition-all duration-300 hover:shadow-[0_20px_25px_-5px_rgba(0,0,0,0.1),0_10px_10px_-5px_rgba(0,0,0,0.04)]",children:[(0,l.jsx)("div",{className:"relative h-[320px] w-full overflow-hidden will-change-transform",children:(0,l.jsx)(r.default,{src:o,alt:i.slug||u,fill:!0,sizes:d,className:"object-cover transition-transform duration-700 ease-[cubic-bezier(0.22,1,0.36,1)] group-hover:scale-110 group-hover:brightness-110"})}),i.category&&(0,l.jsx)("span",{className:"absolute left-3 top-3 z-10 truncate rounded-full bg-black/70 px-3 py-1 text-center text-[11px] font-semibold text-white backdrop-blur-sm ".concat(x?"max-w-[calc(55%-18px)]":"max-w-[calc(100%-24px)]"),children:i.category}),x&&(0,l.jsxs)("span",{className:"absolute right-3 top-3 z-10 inline-flex max-w-[45%] items-center gap-1.5 overflow-hidden rounded-full bg-black/60 px-2 py-1 text-[11px] font-semibold text-white backdrop-blur-sm",children:[p?(0,l.jsx)(r.default,{src:p,alt:"",width:16,height:16,className:"h-4 w-4 shrink-0 rounded-full object-cover","aria-hidden":"true"}):(0,l.jsx)("span",{className:"flex h-4 w-4 shrink-0 items-center justify-center rounded-full bg-[#7CBBE3] text-[9px] font-bold text-[#002D53]","aria-hidden":"true",children:g.charAt(0).toUpperCase()}),(0,l.jsx)("span",{className:"min-w-0 truncate",children:g})]}),(0,l.jsx)("div",{className:"pointer-events-none absolute inset-0",style:{background:x?"linear-gradient(181deg, rgba(255,255,255,0.00) 34.09%, rgba(77,77,77,0.30) 58.91%, rgba(36,36,36,0.50) 66.83%, rgba(0,0,0,0.75) 90.91%)":"linear-gradient(181deg, rgba(255,255,255,0.00) 34.09%, rgba(77,77,77,0.70) 58.91%, rgba(36,36,36,0.86) 66.83%, #000 99.91%)"}}),x&&(0,l.jsx)("div",{className:"pointer-events-none absolute bottom-0 left-0 right-0 z-[5] h-[120px] backdrop-blur-[2px]",style:{WebkitMaskImage:"linear-gradient(to top, black 80%, transparent 100%)",maskImage:"linear-gradient(to top, black 80%, transparent 100%)"}}),(0,l.jsxs)("div",{className:"absolute bottom-0 z-10 w-full p-4 text-white",children:[(0,l.jsx)("h3",{className:"line-clamp-2 text-[17px] font-semibold leading-snug ".concat(x?"min-h-[48px]":"mb-3"),children:u}),!x&&(0,l.jsxs)("div",{className:"flex items-center justify-between text-[12px] font-semibold text-white",children:[(0,l.jsx)("span",{children:g}),(0,l.jsx)("span",{children:new Date(i.updatedAt).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"})})]})]})]})})}},83951:function(e,t,a){a.r(t),a.d(t,{default:function(){return h}});var l=a(57437),r=a(2265),n=a(4011),s=a(16016),i=a(33145),o=a(27648);let c=e=>e?e.replace(/<!--[\s\S]*?-->/g,"").replace(/<[^>]*>/g,"").replace(/\s+/g," ").trim():"";var d=e=>{var t;let{blog:a,fullImageUrl:r}=e,n=c(null==a?void 0:a.descriptionHtml);return console.log(a),(0,l.jsx)(o.default,{href:"/".concat((0,s.CG)(a.blogType)||"blog","/").concat(a.slug,"/"),className:"block",children:(0,l.jsxs)("article",{className:"rounded-2xl h-[350px] overflow-hidden shadow-md hover:shadow-xl transition-shadow duration-300 bg-white border border-gray-300 cursor-pointer group max-w-sm",children:[(0,l.jsx)("div",{className:"relative w-full h-[200px] overflow-hidden",children:(0,l.jsx)(i.default,{src:r,alt:a.slug||"Blog image",fill:!0,sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 25vw",className:"object-cover transition-transform duration-500 ease-out group-hover:scale-105"})}),(0,l.jsxs)("div",{className:"p-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[a.category&&(0,l.jsxs)("span",{className:"flex items-center gap-1.5 text-[13px] font-semibold text-[#0040C1]",children:[(0,l.jsx)("span",{className:"w-2 h-2 rounded-full bg-[#0040C1] inline-block"}),a.category]}),(0,l.jsx)("span",{className:"text-[12.5px] text-[#0040C1] font-semibold ml-auto",children:new Date(a.updatedAt).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"2-digit",year:"numeric"})})]}),(0,l.jsx)("h3",{className:"text-[16px] font-bold text-gray-900 leading-snug line-clamp-2 mb-2",children:(null===(t=a.headingHtml)||void 0===t?void 0:t.replace(/<[^>]*>/g,""))||a.title}),a.excerpt&&(0,l.jsx)("p",{className:"text-[13px] text-gray-500 leading-relaxed line-clamp-2",children:a.excerpt}),n&&(0,l.jsx)("p",{className:"text-[13px] text-gray-500 leading-relaxed line-clamp-2",children:n})]})]})},a.id)},m=a(44771),x=a.n(m),g=a(6590);let p="https://peniel-blogs.elateapps.com",u={};function h(e){let{title:t="Section",description:a="",viewAllUrl:i,blogTypeProp:o,searchKeyWord:c="",searchBy:m="category",latestBlogCard:h=!1,enableYellowLine:f,homeTitle1:b,homeTitle2:v,isHomePage:w,xlColumns:j=3,maxCards:N=3}=e,[y,_]=(0,r.useState)(null),k="string"==typeof c?c.trim():"";return((0,r.useEffect)(()=>
1{let e=JSON.stringify({page:1,pageSize:N,blogType:o||"Blog",searchBy:m,searchKeyWord:k});if(u[e]){_(u[e]);return}let t=!0;return async function(){try{let a=await (0,s.J$)({page:1,pageSize:N,blogType:o||"Blog",headingContains:"title"===m&&k?k:void 0,categoryContains:"category"===m&&k?k:void 0}),l=(0,s.nm)(a).slice(0,N);u[e]=l,t&&_(l)}catch(e){console.error("Blog fetch error:",e),t&&_([])}}(),()=>{t=!1}},[k,o,m,N]),y&&0!==y.length)?(0,l.jsxs)("section",{className:"pt-8",children:[(0,l.jsxs)("div",{className:"mb-8 flex flex-col md:flex-row md:items-center md:justify-between",children:[(0,l.jsxs)("div",{className:"md:max-w-[65%] lg:max-w-[85%]",children:[(0,l.jsxs)("h2",{className:"text-2xl md:text-4xl ".concat(w?"font-medium text-[#002D53]":"font-semibold text-[#002D53]"),children:[w&&b&&v?(0,l.jsxs)(l.Fragment,{children:[b,(0,l.jsx)("span",{className:"bg-[linear-gradient(90deg,#297ADB_0%,#073B78_100%)] bg-clip-text text-transparent ".concat(x().className," font-normal italic"),children:v})]}):t,f&&(0,l.jsx)("div",{className:"w-28 h-1 bg-yellow mt-3"})]}),(0,l.jsx)("p",{className:"text-[17px] font-medium text-[#5A7184] mt-4",children:a})]}),i&&(0,l.jsx)("div",{className:"mt-5 flex w-full justify-center md:mt-0 md:w-auto md:justify-end",children:(0,l.jsx)(n.default,{href:i})})]}),(0,l.jsx)("div",{className:"grid py-6 ".concat(h?"max-sm:place-items-center":""," grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 ").concat(3===j?"xl:grid-cols-3":"xl:grid-cols-4"," gap-7"),children:y.map(e=>{let t=e.imageUrl?"".concat(p).concat(e.imageUrl):"/placeholder-image.jpg",a=e.authorImageUrl?e.authorImageUrl.startsWith("http")?e.authorImageUrl:"".concat(p).concat(e.authorImageUrl):"";return h?(0,l.jsx)(d,{blog:e,fullImageUrl:t},e.id):(0,l.jsx)(g.Z,{blog:{...e,authorImageUrl:a},fullImageUrl:t,sizes:"(max-width: 640px) 100vw, (max-width: 1024px) 50vw, 33vw"},e.id)})})]}):(0,l.jsx)("div",{className:"w-full px-4 pt-12 py-6 xl:px-12",children:(0,l.jsxs)("div",{className:"text-left",children:[(0,l.jsxs)("h2",{className:"text-2xl md:text-4xl ".concat(w?"font-medium text-[#002D53]":"font-semibold text-[#002D53]"),children:[w&&b&&v?(0,l.jsxs)(l.Fragment,{children:[b,(0,l.jsx)("span",{className:"bg-[linear-gradient(90deg,#297ADB_0%,#073B78_100%)] bg-clip-text text-transparent ".concat(x().className," font-normal italic"),children:v})]}):t,f&&(0,l.jsx)("div",{className:"w-28 h-1 bg-yellow mt-3"})]}),(0,l.jsx)("p",{className:"text-[17px] font-medium text-[#5A7184] mt-4",children:a})]})})}},16016:function(e,t,a){a.d(t,{CG:function(){return n},J$:function(){return s},YH:function(){return r},nm:function(){return i}});let l={Blog:"blog","Success Story":"success-story",Infographic:"infographic",Video:"video"};Object.entries(l).reduce((e,t)=>{let[a,l]=t;return e[l]=a,e},{});let r=16;function n(e){return l[e]||null}async function s(){let{page:e=1,pageSize:t=r,blogType:a,headingContains:l,categoryContains:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=new URLSearchParams({"sort[0]":"createdAt:desc","pagination[page]":e.toString(),"pagination[pageSize]":t.toString(),populate:"*","filters[slug][$ne]":"abez-name-meaning"});a&&s.append("filters[BlogType][$eq]",a),l&&s.append("filters[Heading][$containsi]",l),n&&s.append("filters[Category][$containsi]",n);let i=await fetch("".concat("https://peniel-blogs.elateapps.com","/api/blogs-ae-penieltech?").concat(s.toString()));return await i.json()}function i(e){return((null==e?void 0:e.data)||[]).map(e=>{var t,a,l,r,n,s;let i=e.attributes||{};return{id:e.id,slug:i.slug,headingHtml:i.Heading||"",descriptionHtml:i.Description||"",category:i.Category.trim()||"",updatedAt:i.updatedAt||new Date().toISOString(),authorName:i.authorName||"",authorImageUrl:(null===(l=i.authorImage)||void 0===l?void 0:null===(a=l.data)||void 0===a?void 0:null===(t=a.attributes)||void 0===t?void 0:t.url)||"",imageUrl:(null===(s=i.blogImage)||void 0===s?void 0:null===(n=s.data)||void 0===n?void 0:null===(r=n.attributes)||void 0===r?void 0:r.url)||"",blogType:i.BlogType||"Blog"}})}}}]);
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.