1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9999],{31674:(e,l,t)=>{t.d(l,{Al:()=>s.Al,Gw:()=>s.Gw,Ko:()=>s.Ko,Mz:()=>s.Mz,SA:()=>i.SA,do:()=>s.do,vp:()=>s.vp,zv:()=>s.zv});var i=t(53423),s=t(60704)},49999:(e,l,t)=>{t.r(l),t.d(l,{SelectedBlogsSection:()=>j});var i=t(95155),s=t(12115),r=t(15239),a=t(52619),n=t.n(a),c=t(87531),x=t(37707),d=t(12694),o=t(89792),m=t(22619),h=t(45921),u=t(31674),g=t(17028);function p(e,l,t){return e?l||t||"":t||l||""}function f(e){return e?e.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim():""}function v(e){var l;let t=[];if(e.media&&t.push(e.media),Array.isArray(e.additional_media)&&t.push(...e.additional_media),Array.isArray(e.entity_media)){for(let l of e.entity_media)if(l&&"object"==typeof l){if("url"in l)t.push(l);else if("media"in l){let e=l.media;e&&t.push(e)}}}let i=null!=(l=t.find(e=>(function(e,l){let t=(e||"").toLowerCase();return!!t.startsWith("image/")||!t.startsWith("video/")&&/\.(avif|webp|png|jpe?g|gif|svg)(\?|$)/i.test(l||"")})(e.type,e.url)&&e.url))?l:t.find(e=>!!e.url);return(0,d.aN)(null==i?void 0:i.url)}function j(e){var l,t;let{config:a,posts:d,locale:j,direction:y,sectionId:b}=e,w=j.toLowerCase().startsWith("ur"),N=!!a.disableAutoFetch,_=(0,s.useMemo)(()=>{let e=(null!=d?d:[]).filter(e=>"blog"===(e.category||"").toLowerCase()),l=a.limit&&a.limit>0?Math.min(a.limit,g.hzo):g.hzo;return e.slice(0,l)},[d,a.limit]),k=_.slice(0,2),F=_.slice(2,g.hzo),z=a.title?p(w,a.title.ur,a.title.en):w?"ÛÙ
Ø§Ø±Û Ø¨ÙØ§Ú¯Ø²":"Our Blogs",A=(null==(l=a.cta)?void 0:l.text)?p(w,a.cta.text.ur,a.cta.text.en):w?"Ù
Ø²ÛØ¯ دÛÚ©Ú¾ÛÚº":"View more",C=(null==(t=a.cta)?void 0:t.link)||"/".concat(j,"/posts");return _.length?(0,i.jsx)("section",{id:b,className:"relative isolate bg-white",style:{backgroundColor:a.backgroundColor||"#FFFFFF"},children:(0,i.jsxs)("div",{className:(0,c.cn)("mx-auto flex w-full flex-col items-center isolate",g.nu4,g.pZ0,g.lQA,g.opW),children:[(0,i.jsx)("div",{className:u.do,children:(0,i.jsx)("h2",{className:(0,m.R_)(w,"sectionTitle","w-full text-center"),children:z})}),(0,i.jsxs)("div",{className:(0,c.cn)("grid w-full grid-cols-1","lg:grid-cols-[2fr_1fr] lg:items-stretch",g.RS4,g.zS6),children:[(0,i.jsx)("div",{className:(0,c.cn)("flex min-h-0 flex-col lg:h-full lg:min-h-0",g.I$y,g.GFD),children:k.map(e=>{var l,t;let s=p(w,e.title_ur,e.title),a=v(e),d=p(w,e.tagline_ur,e.tagline)||(0,x.E)(f(p(w,e.content_ur,e.content)),110),u=(t=e.publish_date||e.createdAt,t?new Date(t).toLocaleDateString(w?"ur-PK":"en-US",{month:"short",day:"numeric"}):""),g=e.slug?(0,o.J)(e.slug,e.category,j):"",y=(0,i.jsxs)("article",{className:"grid h-full min-h-0 grid-cols-1 overflow-hidden rounded-[5px] border border-[#DCEEFF] bg-white sm:grid-cols-[240px_1fr] lg:min-h-0",children:[(0,i.jsx)("div",{className:"relative h-[200px] w-full min-h-0 sm:h-full sm:min-h-[200px]",children:a?(0,i.jsx)(r.default,{src:a,alt:s,fill:!0,className:"object-cover",sizes:"(max-width: 1024px) 100vw, 240px"}):(0,i.jsx)("div",{className:"h-full w-full bg-gray-100"})}),(0,i.jsxs)("div",{className:(0,c.cn)("flex min-h-0 flex-col gap-4 p-5","sm:p-6","md:p-6","lg:min-h-0","2xl:gap-6 2xl:p-8",m.$B),children:[(0,i.jsx)("span",{className:(0,m.aV)(w,"inline-flex w-fit rounded-full border border-gray-300 px-2 py-0.5 text-xs text-gray-700","2xl:px-3 2xl:py-1 2xl:text-base"),children:(null==(l=e.category)?void 0:l.replace(/_/g," "))||"Category"}),(0,i.jsx)("h3",{...(0,h.mr)(e.slug),className:(0,m.aV)(w,"line-clamp-2 font-semibold leading-[1.15] text-[#1F2937] underline decoration-[#111827]/60 underline-offset-4","text-[20px] md:text-2xl","2xl:text-4xl"),children:s}),(0,i.jsx)("p",{className:(0,m.aV)(w,"line-clamp-2 text-[#111827]","text-base md:text-lg","2xl:text-2xl"),children:d}),(0,i.jsxs)("p",{className:(0,m.aV)(w,"mt-auto pt-1 font-medium text-[#111827]","text-[14px] md:text-[16px]","2xl:text-xl"),children:[function(e,l){let t=f(e.content),i=Math.max(1,Math.round((t?t.split(" ").length:0)/220));return l?"".concat(i," Ù
ÙÙ¹"):"".concat(i," min read")}(e,w)," . ",u]})]})]});return g?(0,i.jsx)(n(),{href:g,className:"block lg:flex lg:min-h-0 lg:flex-1 lg:flex-col",children:y},e.id):(0,i.jsx)("div",{className:"lg:flex lg:min-h-0 lg:flex-1 lg:flex-col",children:y},e.id)})}
1),(0,i.jsx)("div",{className:(0,c.cn)("flex min-h-0 flex-col lg:h-full lg:min-h-0 lg:justify-between",g.vlz,g.j2n),children:F.map(e=>{var l;let t=p(w,e.title_ur,e.title),s=v(e),a=e.slug?(0,o.J)(e.slug,e.category,j):"",x=(0,i.jsxs)("article",{className:(0,c.cn)("grid items-center","grid-cols-[76px_1fr] gap-3 sm:gap-4","2xl:grid-cols-[128px_1fr] 2xl:gap-6"),children:[(0,i.jsx)("div",{className:(0,c.cn)("relative shrink-0 overflow-hidden rounded-lg","h-[76px] w-[76px]","2xl:h-32 2xl:w-32 2xl:rounded-[5px]"),children:s?(0,i.jsx)(r.default,{src:s,alt:t,fill:!0,className:"object-cover",sizes:"(max-width: 1535px) 76px, 128px"}):(0,i.jsx)("div",{className:"h-full w-full bg-gray-100"})}),(0,i.jsxs)("div",{className:(0,c.cn)("flex min-h-[76px] min-w-0 flex-col justify-center gap-2 py-1","sm:gap-2.5 sm:py-0","2xl:min-h-32 2xl:gap-4 2xl:py-2",m.$B),children:[(0,i.jsx)("span",{className:(0,m.aV)(w,"inline-flex w-fit rounded-full border border-gray-300 px-2 py-0.5 text-[10px] text-gray-700","2xl:px-3.5 2xl:py-1.5 2xl:text-sm"),children:(null==(l=e.category)?void 0:l.replace(/_/g," "))||"Category"}),(0,i.jsx)("h4",{className:(0,m.aV)(w,"line-clamp-2 font-semibold leading-snug text-[#1F2937]","text-lg","2xl:text-[1.65rem] 2xl:leading-tight"),children:t})]})]});return a?(0,i.jsx)(n(),{href:a,className:"block shrink-0",children:x},e.id):(0,i.jsx)("div",{className:"shrink-0",children:x},e.id)})})]}),(0,i.jsx)("div",{className:"flex w-full justify-center",children:(0,i.jsx)(n(),{href:C,className:(0,m.aV)(w,"inline-flex items-center justify-center rounded-[5px] bg-emerald-primary font-semibold text-white transition hover:bg-emerald-dark","h-11 min-w-[240px] px-8 text-base","2xl:h-16 2xl:min-w-[320px] 2xl:rounded-[5px] 2xl:px-14 2xl:text-2xl"),children:A})})]})}):N?(0,i.jsx)("section",{id:b,className:"flex min-h-[200px] items-center justify-center border border-dashed border-gray-300 bg-gray-50 px-6 py-16 text-center",dir:y,children:(0,i.jsx)("p",{className:"max-w-md text-sm text-gray-500",children:"Select blog posts in Content to preview this section."})}):null}}}]);
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.