1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,20077,55618,86090,25703,81229,79857,e=>{"use strict";var t=e.i(43476),a=e.i(71645),s=e.i(22016),r=e.i(18566),l=e.i(45125),i=e.i(57688),n=e.i(51240),d=e.i(89703),o=e.i(88425);e.s(["default",0,function({articles:e,data:c,categoryName:m,isCategoryPage:x,loading:h}){let g=(0,r.useParams)(),u=g?.lang||"english",[p,f]=(0,a.useState)(null),[b,j]=(0,a.useState)("latest"),y=Array.isArray(c?.brandArticles)?c.brandArticles.filter(Boolean):[],[N,w]=(0,a.useState)(y),[v,k]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(Array.isArray(c?.brandArticles)){let e=c.brandArticles.filter(Boolean);e.length>0&&w(e)}},[c?.brandArticles]),(0,a.useEffect)(()=>{let e=Array.isArray(c?.brandArticles)&&c.brandArticles.filter(Boolean).length>0;"brand"!==b||0!==N.length||e||(async()=>{k(!0);try{let e=await o.default.get("/story/public/list?categorySlug=sponsored&allLanguages=true&authorLanguage=english&limit=5");e.data?.status===1&&Array.isArray(e.data.data)&&w(e.data.data)}catch(e){console.error("Failed to fetch brand features/spotlight stories:",e)}finally{k(!1)}})()},[b,N.length,c?.brandArticles]),(0,a.useEffect)(()=>{(async()=>{try{if(x){let e=await o.default.get("/ads-listing");if(e.data?.status===1){let t=e.data.data.find(e=>"category_sidebar"===e.slotKey);f(t||null)}}else if(c)if(c.adId){let e=await o.default.get(`/ads/${c.adId}`);e.data?.status===1?f({adId:e.data.data,status:!1!==c.adStatus,googleScript:c.googleScript||""}):f({adId:null,status:!1!==c.adStatus,googleScript:c.googleScript||""})}else f({adId:null,status:!1!==c.adStatus,googleScript:c.googleScript||""});else f(null)}catch(e){console.error("Failed to fetch ad details for Layout5 section:",e)}})()},[c,x]);let $=e=>{if(!e||!e.scheduleAt)return"";let t=(0,l.formatDateTime)(e.scheduleAt);return"N/A"!==t.date?`${t.date} ${t.time}`:""},S=e=>{if(!e)return"#";let t="general";return e.categoryId&&(Array.isArray(e.categoryId)&&e.categoryId.length>0?t=e.categoryId[0].categorySlug||e.categoryId[0].slug||"general":"object"==typeof e.categoryId&&(t=e.categoryId.categorySlug||e.categoryId.slug||"general")),`/${u}/${t}/${e.slug||e._id}`};if(h||!e||0===e.length)return(0,t.jsx)(n.Layout5Skeleton,{isCategoryPage:x});let A=e[0],I=e.slice(1,6),L="latest"===b?I:N,R=e=>{if(!e)return"Unknown Author";let a=null;if(Array.isArray(e)&&e.length>0?a=e[0]:"object"==typeof e&&(a=e),a){let e=a.localizedName||`${a.firstName||""} ${a.lastName||""}`.trim()||a.username||"Unknown Author",r=a.slug||a.username||a._id;return r?(0,t.jsx)(s.default,{href:`/${u}/authors/${r}`,className:"hover:underline hover:text-red-700",children:e}):e}return"string"==typeof e?e:"Unknown Author"};return(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-5 md:gap-8 min-w-0 overflow-hidden",children:[(0,t.jsx)("div",{className:"lg:col-span-8 space-y-3 md:space-y-4 min-w-0",children:A?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.default,{href:S(A),className:"block",children:(0,t.jsx)("h2",{className:"text-sm md:text-[34px] font-bold font-heading text-textMain leading-snug md:leading-tight tracking-tight hover:text-brandRed transition",children:A.heading})}),(0,t.jsx)("div",{className:"w-full bg-slate-50 border border-gray-100 rounded overflow-hidden mt-3 md:mt-4",children:(0,t.jsx)(s.default,{href:S(A),className:"block w-full",children:(0,t.jsx)(i.default,{src:A.bannerImage||A.banner_image||"assets/img/hero.jpg",alt:A.heading,className:"w-full h-[220px] sm:h-[320px] md:h-[420px] lg:h-[440px] object-cover",width:800,height:500})})}),(0,t.jsxs)("div",{className:"space-y-2 md:space-y-3",children:[(0,t.jsx)(s.default,{href:S(A),className:"block",children:(0,t.jsx)("p",{className:"text-xs md:text-base text-textMuted leading-normal md:leading-[1.9]",children:A.shortDescription||A.short_description})}),(0,t.jsxs)("div",{className:"flex justify-between items-center text-[11px] sm:text-[12px] md:text-[14px] pt-1 md:pt-1.5 border-t border-gray-100 gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center",children:[(0,t.jsx)("span",{className:"text-brandRed font-bold",children:R(A.authorId||A.author)}),(0,t.jsx)("span",{className:"text-gray-300 mx-1.5 md:mx-2",children:(0,t.jsx)("i",{className:"bi bi-dot text-gray-400"})}),(0,t.jsx)("span",{className:"text-gray-400",children:$(A)})]}),(0,t.jsx)("div",{className:"w-6 h-6 md:w-8 md:h-8 bg-gray-100 flex items-center justify-center font-bold text-xs md:text-base cursor-pointer hover:opacity-90 rounded-sm flex-shrink-0",children:(0,t.jsx)("i",{className:"bi bi-share-fill text-[10px] md:text-sm"})})]})]})]}):(0,t.jsx)("div",{className:"h-full flex items-center justify-center text-gray-400",children:"No main article selected"})}),(0,t.jsxs)("div",{className:"lg:col-span-4 flex flex-col gap-4 min-w-0",children:[(0,t.jsxs)("div",{className:"bg-bgMeta border-t lg:border-t-0 lg:border-l border-borderLight p-3 md:p-4 roun
1ded min-w-0",children:[(0,t.jsxs)("div",{className:"flex border-b border-gray-200 mb-2.5 md:mb-3 text-center text-[11px] md:text-[12px] font-bold uppercase tracking-wider select-none",children:[(0,t.jsx)("button",{onClick:()=>j("latest"),className:`w-1/2 pb-1.5 font-heading focus:outline-none transition-all duration-200 cursor-pointer ${"latest"===b?"text-brandRed border-b-2 border-brandRed font-bold":"text-gray-400 hover:text-textMain"}`,children:"Latest"}),(0,t.jsx)("button",{onClick:()=>j("brand"),className:`w-1/2 pb-1.5 font-heading focus:outline-none transition-all duration-200 cursor-pointer ${"brand"===b?"text-brandRed border-b-2 border-brandRed font-bold":"text-gray-400 hover:text-textMain"}`,children:"Brand Features"})]}),(0,t.jsx)("div",{className:"divide-y divide-gray-200/80 space-y-2 md:space-y-2.5",children:v&&"brand"===b?(0,t.jsx)("div",{className:"py-8 text-center text-gray-400 text-sm animate-pulse",children:"Loading Brand Features..."}):0===L.length?(0,t.jsx)("div",{className:"py-8 text-center text-gray-400 text-sm",children:"No stories found."}):L.map((e,a)=>e?(0,t.jsxs)("div",{className:`${0===a?"pt-1":"pt-1 pb-0.5"} flex gap-2 items-start`,children:[(0,t.jsx)("span",{className:"text-[14px] md:text-[20px] w-4 md:w-5 flex-shrink-0 font-bold text-gray-300 leading-none font-heading mt-0.5 select-none",children:a+1}),(0,t.jsxs)("div",{className:"space-y-0.5 flex-grow min-w-0",children:[(0,t.jsx)(s.default,{href:S(e),title:e.heading,className:"text-[12px] md:text-[13px] font-bold text-textMain leading-snug block truncate hover:text-brandRed transition",children:e.heading}),(0,t.jsxs)("div",{className:"flex justify-between text-[10px] md:text-[11px] text-gray-400 gap-2 items-center",children:[(0,t.jsxs)("span",{className:"text-brandRed text-[10px] md:text-[11px] block truncate pr-1",children:[R(e.authorId||e.author),(0,t.jsx)("i",{className:"bi bi-dot text-gray-400 mx-1"}),(0,t.jsx)("em",{className:"text-gray-400 not-italic font-normal",children:$(e)})]}),(0,t.jsx)("div",{className:"w-5 h-5 md:w-6 md:h-6 bg-gray-100 flex items-center justify-center font-bold cursor-pointer hover:opacity-90 rounded-sm flex-shrink-0",children:(0,t.jsx)("i",{className:"bi bi-share-fill text-[8px] md:text-[9px] text-gray-500"})})]})]})]},e._id||a):null)}),"brand"===b&&L.length>0&&(0,t.jsx)("div",{className:"pt-3 text-center border-t border-gray-100/70 mt-2.5 md:mt-3",children:(0,t.jsxs)(s.default,{href:`/${u}/sponsored`,className:"inline-flex items-center gap-1 text-[11px] md:text-[12px] font-bold text-brandRed hover:text-red-700 transition",children:["More Articles ",(0,t.jsx)("i",{className:"bi bi-arrow-right-short text-[16px] leading-none"})]})})]}),p&&(0,t.jsx)(d.default,{placement:p,height:250,className:"my-0"})]})]})}],20077),e.s(["default",0,function({articles:e,data:c,categoryName:m,isCategoryPage:x,loading:h}){let g=(0,r.useParams)(),[u,p]=(0,a.useState)(null);if((0,a.useEffect)(()=>{(async()=>{try{if(x){let e=await o.default.get("/ads-listing");if(e.data?.status===1){let t=e.data.data.find(e=>"category_sidebar"===e.slotKey);p(t||null)}}else if(c)if(c.adId){let e=await o.default.get(`/ads/${c.adId}`);e.data?.status===1?p({adId:e.data.data,status:!1!==c.adStatus,googleScript:c.googleScript||""}):p({adId:null,status:!1!==c.adStatus,googleScript:c.googleScript||""})}else p({adId:null,status:!1!==c.adStatus,googleScript:c.googleScript||""});else p(null)}catch(e){console.error("Failed to fetch ad details for Layout1 section:",e)}})()},[c,x]),h||!e||0===e.length)return(0,t.jsx)(n.Layout1Skeleton,{isCategoryPage:x});let f=g?.lang||"english",b=m||c?.title||c?.categoryName||"Community",j=c?.categorySlug||(m||c?.title||c?.categoryName?(m||c?.title||c?.categoryName).toLowerCase().replace(/\s+/g,"-"):"general"),y=e=>{if(!e||!e.scheduleAt)return"";let t=(0,l.formatDateTime)(e.scheduleAt);return"N/A"!==t.date?`${t.date} ${t.time}`:""},N=e=>{if(!e)return"#";let t=e.categoryId?.[0]?.categorySlug||e.categoryId?.categorySlug||j;return`/${f}/${t}/${e.slug||e._id}`},w=e[0],v=e.slice(1,6),k=!!(u&&(u.adId||u.googleScript)&&!1!==u.status),$=e.slice(6,6+(k?3:4)),S=e=>{if(!e)return"Unknown Author";let a=null;if(Array.isArray(e)&&e.length>0?a=e[0]:"object"==typeof e&&(a=e),a){let e=a.localizedName||`${a.firstName||""} ${a.lastName||""}`.trim()||a.username||"Unknown Author",r=a.slug||a.username||a._id;return r?(0,t.jsx)(s.default,{href:`/${f}/authors/${r}`,className:"hover:underline hover:text-red-700",children:e}):e}return"string"==typeof e?e:"Unknown Author"};return(0,t.jsxs)("section",{id:"Layout1",className:"space-y-6 min-w-0 overflow-hidden",children:[!x&&(0,t.jsxs)("div",{className:"border-b border-borderLight pb-2 md:pb-3 flex justify-between items-end gap-4 mb-4 md:mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 border-b-2 border-transparent pb-1 -mb-[9px] md:-mb-[13px]",children:[(0,t.jsx)("span",{className:"w-1.5 h-6 sm:h-8 md:h-14 bg-brandRed inline-block"}),(0,t.jsx)("h2",{className:"text-sm md:text-[32px] font-bold font-heading text-[#0f172a] tracking-tight leading-none",children:b})]}),(0,t.jsxs)(s.default,{href:`/${f}/${j}
1`,className:"text-[12px] md:text-[16px] font-medium text-brandRed hover:underline flex items-center gap-1 mb-0.5 md:mb-1 whitespace-nowrap",children:["View all",(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2.5",stroke:"currentColor",className:"w-3.5 h-3.5 md:w-4 md:h-4",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"})})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-5 md:gap-8 min-w-0 overflow-hidden",children:[(0,t.jsx)("div",{className:"lg:col-span-8 space-y-3 md:space-y-4 min-w-0",children:w?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"w-full overflow-hidden bg-gray-100 rounded-sm",children:(0,t.jsx)(s.default,{href:N(w),className:"block w-full",children:(0,t.jsx)(i.default,{src:w.bannerImage||w.banner_image,alt:w.heading,className:"w-full h-[200px] sm:h-[280px] md:h-[360px] object-cover",width:800,height:400})})}),(0,t.jsx)(s.default,{href:N(w),children:(0,t.jsx)("h3",{className:"text-sm md:text-[30px] font-bold font-heading text-textMain leading-snug md:leading-tight tracking-tight hover:text-brandRed transition",children:w.heading})}),(0,t.jsx)("p",{className:"text-xs md:text-base text-gray-500 leading-normal md:leading-relaxed md:pr-8",children:w.shortDescription||w.short_description}),(0,t.jsxs)("div",{className:"flex justify-between items-center text-[11px] md:text-[12px] pt-1 gap-2",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center",children:[(0,t.jsx)("span",{className:"text-brandRed font-medium",children:S(w.authorId||w.author)}),(0,t.jsx)("span",{className:"text-gray-400 mx-1",children:"â¢"}),(0,t.jsx)("span",{className:"text-gray-400",children:y(w)})]}),(0,t.jsx)("div",{className:"w-6 h-6 md:w-7 md:h-7 bg-gray-100 hover:bg-gray-200 transition cursor-pointer rounded flex items-center justify-center flex-shrink-0",children:(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-3 h-3 md:w-3.5 md:h-3.5 text-gray-600",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.217 10.9
107a2.25 2.25 0 1 0 0 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186 9.566-5.314m-9.566 7.5 9.566 5.314m0 0a2.25 2.25 0 1 0 3.935 2.186 2.25 2.25 0 0 0-3.935-2.186Zm0-12.814a2.25 2.25 0 1 0 3.933-2.185 2.25 2.25 0 0 0-3.933 2.185Z"})})})]})]}):(0,t.jsx)("div",{className:"h-[360px] flex items-center justify-center bg-gray-50 text-gray-400 rounded-sm",children:"No main article"})}),(0,t.jsx)("div",{className:"lg:col-span-4 flex flex-col min-w-0",children:(0,t.jsx)("div",{className:"divide-y divide-gray-200/80 space-y-3 md:space-y-4",children:v.map((e,a)=>e?(0,t.jsxs)("div",{className:`pt-${0===a?"0":"2 md:3"} flex gap-2.5 md:gap-3 items-start`,children:[(0,t.jsx)("span",{className:"text-[16px] md:text-[24px] w-5 md:w-6 flex-shrink-0 font-bold text-gray-300 leading-none font-heading mt-0.5 select-none",children:a+1}),(0,t.jsxs)("div",{className:"space-y-1 flex-1 min-w-0",children:[(0,t.jsx)(s.default,{href:N(e),className:"text-[12px] sm:text-[13px] md:text-[15px] font-bold text-textMain leading-snug block hover:text-brandRed transition",children:e.heading}),(0,t.jsxs)("div",{className:"flex justify-between items-center text-[10px] sm:text-[11px] md:text-[13px] gap-2 pt-0.5 md:pt-1 text-gray-400",children:[(0,t.jsxs)("span",{className:"text-brandRed truncate pr-1",children:[S(e.authorId||e.author),(0,t.jsx)("i",{className:"bi bi-dot text-gray-400"}),(0,t.jsx)("em",{className:"text-gray-400 not-italic font-normal",children:y(e)})]}),(0,t.jsx)("div",{className:"w-6 h-6 md:w-7 md:h-7 bg-gray-100 flex items-center justify-center font-bold text-xs cursor-pointer hover:opacity-90 rounded-sm flex-shrink-0",children:(0,t.jsx)("i",{className:"bi bi-share-fill text-[9px] md:text-sm"})})]})]})]},`${e._id||"right"}-${a}`):null)})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 pt-4 md:pt-6",children:[$.map((e,a)=>e?(0,t.jsxs)("div",{className:"space-y-2 relative group cursor-pointer w-full",children:[(0,t.jsxs)(s.default,{href:N(e),className:"group block",children:[(0,t.jsx)("div",{className:"relative overflow-hidden w-full aspect-[16/10] rounded-sm bg-gray-100",children:(0,t.jsx)(i.default,{src:e.bannerImage||e.banner_image||"assets/img/immi-2.jpg",alt:e.heading,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-500",sizes:"(max-width: 640px) 100vw, 300px"})}),(0,t.jsx)("div",{className:"pt-1.5 md:pt-2",children:(0,t.jsx)("h3",{className:"text-[12px] md:text-[14px] leading-[17px] md:leading-[20px] text-textMain font-medium mb-1 hover:text-brandRed transition line-clamp-2",children:e.heading})})]}),(0,t.jsxs)("div",{className:"flex justify-between items-center text-[10px] md:text-[12px] text-gray-400 gap-2",children:[(0,t.jsxs)("span",{className:"text-brandRed truncate pr-1",children:[S(e.authorId||e.author)," ",(0,t.jsx)("i",{className:"bi bi-dot text-gray-400"}),(0,t.jsx)("em",{className:"text-gray-400 not-italic font-normal",children:y(e)})]}),(0,t.jsx)("div",{className:"w-5 h-5 md:w-6 md:h-6 bg-gray-100 flex items-center justify-center font-bold text-xs cursor-pointer hover:opacity-90 rounded-sm flex-shrink-0",children:(0,t.jsx)("i",{className:"bi bi-share-fill text-[9px] md:text-[10px]"})})]})]},`${e._id||"bottom"}-${a}`):null),k&&(0,t.jsx)("div",{className:"w-full flex flex-col justify-start",children:(0,t.jsx)(d.default,{placement:u,height:250,className:"w-full"})})]})]})}],55618);var c=e.i(80401),m=e.i(72225);e.s(["default",0,function({articles:e,data:a,categoryName:d,isCategoryPage:o,loading:x}){let h=(0,r.useParams)();if(x||!e||0===e.length)return(0,t.jsx)(n.Layout3Skeleton,{isCategoryPage:o});let g=h?.lang||"english",u=d||a?.title||a?.categoryName||"Features",p=a?.categorySlug||(d||a?.title||a?.categoryName?(d||a?.title||a?.categoryName).toLowerCase().replace(/\s+/g,"-"):"general"),f=e=>{if(!e)return"#";let t=e.categoryId?.[0]?.categorySlug||e.categoryId?.categorySlug||p;return`/${g}/${t}/${e.slug||e._id}`};return(0,t.jsxs)("section",{className:"space-y-6",children:[!o&&(0,t.jsxs)("div",{className:"border-b border-borderLight pb-2 md:pb-3 flex justify-between items-end mb-4 md:mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 border-b-2 border-transparent pb-1 -mb-[9px] md:-mb-[13px]",children:[(0,t.jsx)("span",{className:"w-1.5 h-6 sm:h-8 md:h-14 bg-brandRed inline-block"}),(0,t.jsx)("h2",{className:"text-sm md:text-[32px] font-bold font-heading text-[#0f172a] tracking-tight leading-none text-capitalize",children:u})]}),(0,t.jsxs)(s.default,{href:`/${g}/${p}
1`,className:"text-[12px] md:text-[16px] font-medium text-brandRed hover:underline flex items-center gap-1 mb-0.5 md:mb-1 whitespace-nowrap",children:["View all",(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2.5",stroke:"currentColor",className:"w-3.5 h-3.5 md:w-4 md:h-4",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"})})]})]}),(0,t.jsx)("div",{children:(0,t.jsx)(c.Swiper,{modules:[m.Autoplay],spaceBetween:16,slidesPerView:2.2,breakpoints:{640:{slidesPerView:2.2,spaceBetween:20},768:{slidesPerView:3,spaceBetween:24},1024:{slidesPerView:4,spaceBetween:24}},autoplay:{delay:3e3,disableOnInteraction:!1},className:"w-full pt-1 pb-3 md:pt-2 md:pb-4",loop:!0,children:e.filter(Boolean).map((e,a)=>(0,t.jsx)(c.SwiperSlide,{children:(0,t.jsxs)("div",{className:"flex flex-col h-full space-y-2 md:space-y-3 group cursor-pointer",children:[(0,t.jsx)(s.default,{href:f(e),className:"block relative overflow-hidden aspect-[4/3] rounded-sm shrink-0",children:(0,t.jsx)(i.default,{src:e.bannerImage||e.banner_image||"https://images.unsplash.com/photo-1543351611-58f69d7c1781?auto=format&fit=crop&w=600&q=80",alt:e.heading,className:"w-full h-full object-cover bg-gray-100 group-hover:scale-105 transition-transform duration-700",width:500,height:500})}),(0,t.jsx)(s.default,{href:f(e),className:"block",children:(0,t.jsx)("h4",{className:"text-sm md:text-[16px] leading-[18px] sm:leading-[20px] md:leading-[22px] font-medium group-hover:text-brandRed transition-colors line-clamp-3",children:e.heading})}),(0,t.jsxs)("div",{className:"flex justify-between items-end text-[11px] sm:text-[12px] md:text-[14px] text-gray-400 mt-auto pt-1 md:pt-2",children:[(0,t.jsxs)("span",{className:"text-brandRed text-[11px] sm:text-[12px] md:text-[14px] truncate pr-2",children:[(e=>{if(!e)return"Unknown Author";let a=null;if(Array.isArray(e)&&e.length>0?a=e[0]:"object"==typeof e&&(a=e),a){let e=a.localizedName||`${a.firstName||""} ${a.lastName||""}`.trim()||a.username||"Unknown Author",r=a.slug||a.username||a._id;return r?(0,t.jsx)(s.default,{href:`/${g}/authors/${r}`,className:"hover:underline hover:text-red-700",children:e}):e}return"string"==typeof e?e:"Unknown Author"})(e.authorId||e.author),(0,t.jsx)("i",{className:"bi bi-dot text-gray-400 mx-1"}),(0,t.jsx)("em",{className:"text-gray-400 not-italic font-normal",children:(e=>{if(!e||!e.scheduleAt)return"";let t=(0,l.formatDateTime)(e.scheduleAt);return"N/A"!==t.date?`${t.date} ${t.time}`:""})(e)})]}),(0,t.jsx)("div",{className:"w-5 h-5 md:w-6 md:h-6 bg-gray-100 flex items-center justify-center font-bold text-xs md:text-base hover:opacity-90 rounded-sm shrink-0",children:(0,t.jsx)("i",{className:"bi bi-share-fill text-[9px] md:text-[12px]"})})]})]})},e._id||a))})})]})}],86090),e.s(["default",0,function({articles:e,data:a,categoryName:i,isCategoryPage:d,loading:o}){let c=(0,r.useParams)();if(o||!e||0===e.length)return(0,t.jsx)(n.Layout2Skeleton,{isCategoryPage:d});let m=c?.lang||"english",x=i||a?.title||a?.categoryName||"Layout2",h=a?.categorySlug||(i||a?.title||a?.categoryName?(i||a?.title||a?.categoryName).toLowerCase().replace(/\s+/g,"-"):"general");return(0,t.jsxs)("section",{className:"space-y-6",children:[!d&&(0,t.jsxs)("div",{className:"border-b border-borderLight pb-2 md:pb-3 flex justify-between items-end mb-4 md:mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 border-b-2 border-transparent pb-1 -mb-[9px] md:-mb-[13px]",children:[(0,t.jsx)("span",{className:"w-1.5 h-6 sm:h-8 md:h-14 bg-brandRed inline-block"}),(0,t.jsx)("h2",{className:"text-sm md:text-[32px] font-bold font-heading text-[#0f172a] tracking-tight leading-none text-capitalize",children:x})]}),(0,t.jsxs)(s.default,{href:`/${m}/${h}`,className:"text-[12px] md:text-[16px] font-medium text-brandRed hover:underline flex items-center gap-1 mb-0.5 md:mb-1 whitespace-nowrap",children:["View all",(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2.5",stroke:"currentColor",className:"w-3.5 h-3.5 md:w-4 md:h-4",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"})})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-2 lg:grid-cols-3 gap-2.5 sm:gap-3 md:gap-6",children:e.filter(Boolean).slice(0,10).map((e,a)=>(0,t.jsxs)("div",{className:"bg-white border border-gray-100 shadow-sm p-2.5 sm:p-3 md:p-6 hover:shadow-md transition duration-200 flex flex-col h-full rounded-sm",children:[(0,t.jsxs)(s.default,{href:(e=>{if(!e)return"#";let t=e.categoryId?.[0]?.categorySlug||e.categoryId?.categorySlug||h;return`/${m}/${t}/${e.slug||e._id}`})(e),className:"block flex-grow",children:[(0,t.jsx)("h3",{className:"text-sm md:text-[18px] font-bold font-heading text-textMain leading-snug mb-1 md:mb-3 hover:text-brandRed transition line-clamp-3",children:e.heading}),(0,t.jsx)("p",{className:"text-xs md:text-[15px] text-gray-500 leading-normal md:leading-relaxed line-clamp-2 md:line-clamp-4",children:e.shortDe
1scription||e.short_description})]}),(0,t.jsx)("div",{className:"mt-2 pt-1.5 sm:mt-3 sm:pt-2 md:mt-6 md:pt-4 border-t border-gray-100 flex justify-between items-center text-[9px] sm:text-[10px] md:text-[13px] text-gray-400",children:(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-1 gap-y-0.5",children:[(0,t.jsx)("span",{className:"font-medium text-brandRed truncate max-w-[65px] sm:max-w-none",children:(e=>{if(!e)return"Unknown Author";let a=null;if(Array.isArray(e)&&e.length>0?a=e[0]:"object"==typeof e&&(a=e),a){let e=a.localizedName||`${a.firstName||""} ${a.lastName||""}`.trim()||a.username||"Unknown Author",r=a.slug||a.username||a._id;return r?(0,t.jsx)(s.default,{href:`/${m}/authors/${r}`,className:"hover:underline hover:text-red-700",children:e}):e}return"string"==typeof e?e:"Unknown Author"})(e.authorId||e.author)}),(0,t.jsx)("span",{className:"text-gray-300",children:"â¢"}),(0,t.jsx)("span",{className:"truncate",children:(e=>{if(!e||!e.scheduleAt)return"";let t=(0,l.formatDateTime)(e.scheduleAt);return"N/A"!==t.date?`${t.date} ${t.time}`:""})(e)})]})})]},e._id||a))})]})}],25703);var x=e.i(79053);e.s(["default",0,function({articles:e,data:h,categoryName:g,isCategoryPage:u,loading:p}){let f=(0,r.useParams)(),[b,j]=(0,a.useState)(null);if((0,a.useEffect)(()=>{(async()=>{try{if(u){let e=await o.default.get("/ads-listing");if(e.data?.status===1){let t=e.data.data.find(e=>"category_sidebar"===e.slotKey);j(t||null)}}else if(h)if(h.adId){let e=await o.default.get(`/ads/${h.adId}`);e.data?.status===1?j({adId:e.data.data,status:!1!==h.adStatus,googleScript:h.googleScript||""}):j({adId:null,status:!1!==h.adStatus,googleScript:h.googleScript||""})}else j({adId:null,status:!1!==h.adStatus,googleScript:h.googleScript||""});else j(null)}catch(e){console.error("Failed to fetch ad details for section:",e)}})()},[h,u]),p||!e||0===e.length)return(0,t.jsx)(n.Layout4Skeleton,{isCategoryPage:u});let y=f?.lang||"english",N=g||h?.title||h?.categoryName||"Layout4",w=h?.categorySlug||(g||h?.title||h?.categoryName?(g||h?.title||h?.categoryName).toLowerCase().replace(/\s+/g,"-"):"general"),v=e=>{if(!e||!e.scheduleAt)return"";let t=(0,l.formatDateTime)(e.scheduleAt);return"N/A"!==t.date?`${t.date} ${t.time}`:""},k=e=>{if(!e)return"#";let t=e.categoryId?.[0]?.categorySlug||e.categoryId?.categorySlug||w;return`/${y}/${t}/${e.slug||e._id}`},$=e=>{if(!e)return"Unknown Author";let a=null;if(Array.isArray(e)&&e.length>0?a=e[0]:"object"==typeof e&&(a=e),a){let e=a.localizedName||`${a.firstName||""} ${a.lastName||""}`.trim()||a.username||"Unknown Author",r=a.slug||a.username||a._id;return r?(0,t.jsx)(s.default,{href:`/${y}/authors/${r}`,className:"hover:underline hover:text-red-700",children:e}):e}return"string"==typeof e?e:"Unknown Author"},S=e[0],A=e.slice(1,5),I=e.slice(5,11).filter(Boolean),L=!!(b&&(b.adId||b.googleScript)&&!1!==b.status),R=(0,a.useRef)(null),_=(0,a.useRef)(null);return(0,t.jsxs)("section",{id:"Layout4",className:"space-y-6 min-w-0 overflow-hidden",children:[!u&&(0,t.jsxs)("div",{className:"border-b border-borderLight pb-2 md:pb-3 flex justify-between items-end mb-4 md:mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 md:gap-3 border-b-2 border-transparent pb-1 -mb-[9px] md:-mb-[13px]",children:[(0,t.jsx)("span",{className:"w-1.5 h-6 sm:h-8 md:h-14 bg-brandRed inline-block"}),(0,t.jsx)("h2",{className:"text-sm md:text-[32px] font-bold font-heading text-[#0f172a] tracking-tight leading-none text-capitalize",children:N})]}),(0,t.jsxs)(s.default,{href:`/${y}/${w}`,className:"text-[12px] md:text-[16px] font-medium text-brandRed hover:underline flex items-center gap-1 mb-0.5 md:mb-1 whitespace-nowrap",children:["View all",(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2.5",stroke:"currentColor",className:"w-3.5 h-3.5 md:w-4 md:h-4",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"})})]})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-5 md:gap-8 min-w-0 overflow-hidden",children:[(0,t.jsx)("div",{className:"lg:col-span-8 space-y-3 md:space-y-4 min-w-0",children:S?(0,t.jsxs)("div",{className:"block group cursor-pointer",children:[(0,t.jsx)(s.default,{href:k(S),className:"block w-full overflow-hidden bg-gray-100 rounded-sm mb-3 md:mb-4",children:(0,t.jsx)(i.default,{src:S.bannerImage||S.banner_image||"https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?auto=format&fit=crop&w=1000&q=80",alt:S.heading,className:"w-full h-[200px] sm:h-[280px] md:h-[360px] object-cover group-hover:scale-105 transition-transform duration-700",width:500,height:500})}),(0,t.jsx)(s.default,{href:k(S),className:"block",children:(0,t.jsx)("h3",{className:"text-sm md:text-[30px] lg:text-[32px] font-bold font-heading text-textMain leading-snug md:leading-tight lg:leading-[42px] tracking-tight pr-2 md:pr-4 group-hover:text-brandRed transition-colors",children:S.heading})}),(0,t.jsx)("p",{className:"text-xs md:text-base text-gray-500 leading-normal md:leading-relaxed pr-2 md:pr-8 mt-1.5 md:mt-2 line-clamp-2",children:S.shortDescription}),(0,t.jsxs)("div",{className:"flex justify-between items-center text-[11px] sm:text-[12px] md:text-[14px] text-gray-400 mt-2 md:mt-4",children:[(0,t.jsxs)("span",{className:"text-brandRed text-[11px] sm:text-[12px] md:text-[14px]",children:[$(S.authorId||S.author),(0,t.jsx)("i",{className:"bi bi-dot text-gray-400 mx-1"}),(0,t.jsx)("em",{className:"text-gray-400 not-italic font-normal",children:v(S)})]}),(0,t.jsx)("div",{className:"w-5 h-5 md:w-6 md:h-6 bg-gray-100 flex items-center justify-center font-bold text-xs md:text-base hover:opacity-90 rounded-sm",children:(0,t.jsx)("i",{className:"bi bi-share-fill text-[9px] md:text-[12px]"})})]})]}):(0,t.jsx)("div",{className:"w-full h-[360px] bg-gray-100 flex items-center justify-center rounded-sm",children:(0,t.jsx)("span",{className:"text-gray-400",children:"No main article selected"})})}),(0,t.jsx)("div",{className:"lg:col-span-4 min-w-0",children:(0,t.jsx)("div",{className:"grid grid-cols-2 gap-3 md:gap-4",children:A.map((e,a)=>e?(0,t.jsxs)("div",{className:"space-y-1.5 md:space-y-2 group cursor-pointer",children:[(0,t.jsx)(s.default,{href:k(e),className:"block relative w-full aspect-[16/10] bg-gray-100 overflow-hidden rounded-sm",children:(0,t.jsx)(i.default,{src:e.bannerImage||e.banner_image||"https://images.unsplash.com/photo-1543351611-58f69d7c1781?auto=format&fit=crop&w=600&q=80",alt:e.heading,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-500",sizes:"(max-width: 640px) 50vw, 200px"})}),(0,t.jsx)(s.default,{href:k(e),className:"block",children:(0,t.jsx)("h4",{className:"text-xs md:text-[14px] font-bold text-textMain leading-snug group-hover:text-brandRed transition-colors line-clamp-2",children:e.heading})}),(0,t.jsx)("div",{className:"flex justify-between items-center text-[9px] sm:text-[10px] md:text-[12px] text-gray-400",children:(0,t.jsxs)("span",{className:"text-brandRed truncate pr-1",children:[$(e.authorId||e.author),(0,t.jsx)("i",{className:"bi bi-dot text-gray-400 mx-1"}),(0,t.jsx)("em",{className:"text-gray-400 not-italic font-normal font-sans",children:v(e)})]})})]},`${e._id||"right"}-${a}`):null)})})]}),(I.length>0||L)&&(0,t.jsxs)("div",{className:`mt-6 md:mt-8 ${L?"grid grid-cols-1 lg:grid-cols-12 gap-6 items-start":""}`,children:[(0,t.jsx)("div",{className:`${L?"lg:col-span-9":"w-full"} custom-slider relative min-w-0`,children:I.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{ref:R,className:"slider-prev absolute left-2 sm:left-4 top-1/2 -translate-y-1/2 z-30 w-7 h-9 sm:w-8 sm:h-10 rounded bg-white/80 backdrop-blur-sm shadow-md hover:bg-white hover:shadow-lg flex items-center justify-center transition-all duration-300",children:(0,t.jsx)("i",{className:"bi bi-chevron-left text-textMain text-sm sm:text-base"})}),(0,t.jsx)("button",{ref:_,className:"slider-next absolute right-2 sm:right-4 top-1/2 -translate-y-1/2 z-30 w-7 h-9 sm:w-8 sm:h-10 rounded bg-white/80 backdrop-blur-sm shadow-md hover:bg-white hover:shadow-lg flex items-center justify-center transition-all duration-300",children:(0,t.jsx)("i",{className:"bi bi-chevron-right text-textMain text-sm sm:text-base"})}),(0,t.jsx)(c.Swiper,{modules:[x.Navigation,m.Autoplay],spaceBetween:16,slidesPerView:2.2,breakpoints:{640:{slidesPerView:2,spaceBetween:20},768:{slidesPerView:L?2.5:3,spaceBetween:20},1024:{slidesPerView:L?3:4,spaceBetween:20}},navigation:{prevEl:R.current,nextEl:_.current},onBeforeInit:e=>{e.params.navigation.prevEl=R.current,e.params.navigation.nextEl=_.current},autoplay:{delay:3500,disableOnInteraction:!1},loop:!0,className:"w-full",children:I.map((e,a)=>(0,t.jsx)(c.SwiperSlide,{children:(0,t.jsxs)("div",{className:"flex flex-col h-full space-y-2 group cursor-pointer",children:[(0,t.jsx)(s.default,{href:k(e),className:"block relative overflow-hidden aspect-[4/3] rounded-sm shrink-0 bg-gray-100",children:(0,t.jsx)(i.default,{src:e.bannerImage||e.banner_image||"https://images.unsplash.com/photo-1543351611-58f69d7c1781?auto=format&fit=crop&w=600&q=80",alt:e.heading,fill:!0,className:"object-cover group-hover:scale-105 transition-transform duration-500",sizes:"(max-width: 640px) 100v
1w, 300px"})}),(0,t.jsx)(s.default,{href:k(e),className:"block",children:(0,t.jsx)("h4",{className:"text-xs md:text-[14px] leading-[17px] md:leading-[20px] font-medium group-hover:text-brandRed transition-colors line-clamp-2",children:e.heading})}),(0,t.jsx)("div",{className:"flex justify-between items-center text-[10px] md:text-[12px] text-gray-400 mt-0.5",children:(0,t.jsxs)("span",{className:"text-brandRed text-[10px] md:text-[12px] truncate pr-1",children:[$(e.authorId||e.author),(0,t.jsx)("i",{className:"bi bi-dot text-gray-400 mx-1"}),(0,t.jsx)("em",{className:"text-gray-400 not-italic font-normal font-sans",children:v(e)})]})})]})},e._id||a))})]})}),L&&(0,t.jsx)("div",{className:"lg:col-span-3 w-full flex flex-col justify-start",children:(0,t.jsx)(d.default,{placement:b,height:250,className:"w-full"})})]})]})}],81229),e.s(["default",0,function({data:e,categoryName:r,isCategoryPage:l}){let[n,d]=(0,a.useState)([]),[c,m]=(0,a.useState)(!0);if((0,a.useEffect)(()=>{(async()=>{try{if(!e?.classifiedIds||0===e.classifiedIds.length)return void m(!1);let t=e.classifiedIds.join(","),a=await o.default.get(`/classified-listing?ids=${t}&limit=4`);if(a.data?.success||a.data?.status===1){let t=a.data.data,s=[];e.classifiedIds.forEach(e=>{let a=t.find(t=>t._id===e);a&&s.push(a)}),d(s)}}catch(e){console.error("Failed to fetch classifieds:",e)}finally{m(!1)}})()},[e]),c)return(0,t.jsxs)("section",{className:"space-y-6 pt-4 animate-pulse",children:[(0,t.jsx)("div",{className:"border-b border-borderLight pb-3 flex justify-between items-end mb-6",children:(0,t.jsxs)("div",{className:"flex items-center gap-3 border-b-2 border-transparent pb-1 -mb-[13px]",children:[(0,t.jsx)("span",{className:"w-1.5 h-10 md:h-14 bg-gray-300 inline-block"}),(0,t.jsx)("div",{className:"h-6 bg-gray-300 w-36 rounded md:h-8 md:w-48"})]})}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6",children:[1,2,3,4].map(e=>(0,t.jsx)("div",{className:"h-64 bg-gray-200 rounded"},e))})]});if(0===n.length)return null;let x=r||e?.title||e?.categoryName||"Classifieds";return(0,t.jsxs)("section",{className:"space-y-6 ",children:[!l&&(0,t.jsxs)("div",{className:"border-b border-borderLight pb-3 flex justify-between items-end mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-3 border-b-2 border-transparent pb-1 -mb-[13px]",children:[(0,t.jsx)("span",{className:"w-1.5 h-10 md:h-14 bg-brandRed inline-block"}),(0,t.jsx)("h2",{className:"text-[24px] md:text-[32px] font-bold font-heading text-[#0f172a] tracking-tight leading-none",children:x})]}),(0,t.jsxs)(s.default,{href:"/ads",className:"text-[14px] md:text-[16px] font-medium text-brandRed hover:underline flex items-center gap-1 mb-1 whitespace-nowrap",children:["View all",(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2.5",stroke:"currentColor",className:"w-4 h-4",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 4.5 21 12m0 0-7.5 7.5M21 12H3"})})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6",children:n.map(e=>(0,t.jsxs)(s.default,{href:`/ads/${e.slug||e._id}`,className:"group cursor-pointer flex flex-col space-y-3 min-w-0 pb-2",children:[(0,t.jsx)("div",{className:"relative aspect-[16/10] sm:aspect-[4/3] w-full overflow-hidden mb-2 rounded-sm bg-gray-100",children:e.image?(0,t.jsx)(i.default,{src:e.image,alt:e.title||"Classified Image",fill:!0,className:"object-cover transition-transform duration-500 group-hover:scale-105",sizes:"(max-width: 768px) 100vw, 350px"}):(0,t.jsx)("div",{className:"w-full h-full bg-gray-200 flex items-center justify-center text-gray-400",children:(0,t.jsx)("i",{className:"bi bi-image fs-1"})})}),(0,t.jsx)("h3",{className:"text-[16px] md:text-xl font-bold font-heading text-textDark leading-snug line-clamp-2 group-hover:text-brandRed transition-colors",children:e.title}),(0,t.jsxs)("div",{className:"flex flex-col space-y-2 mt-auto pt-1",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 text-[12px] md:text-sm text-gray-500 font-medium",children:[(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",className:"w-4 h-4",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"})]}),(0,t.jsx)("span",{children:e.city?`${e.city}, ${e.state||""}`:"Location TBA"})]}),(0,t.jsxs)("div",{className:"font-bold text-[15px] md:text-lg text-textDark",children:["$",e.price,e.priceType&&e.priceType.toLowerCase().includes("mo")&&"/mo"]})]})]},e._id))})]})}],79857)}]);
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.