PageSourceSearch

https://behmalt.com/_next/static/chunks/43958.9c1841477124e4aa.js

js behmalt.com collected 2026-09-25 10:24:45 UTC 40,451 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43958],{2859:(e,r,t)=>{"use strict";t.d(r,{F:()=>l,M:()=>a});let l=[{value:"cards-grid",label:"کارت‌های شبکه‌ای"},{value:"cards-carousel",label:"کاروسل کارت‌ها"},{value:"showcase-carousel",label:"کارتی ویترینی"},{value:"editorial-grid",label:"شبکه خبری"},{value:"feature-grid",label:"خبر شاخص + فرعی"},{value:"compact-list",label:"فهرست فشرده"},{value:"media-list",label:"فهرست رسانه‌ای"},{value:"mosaic-grid",label:"شبکه موزاییکی"},{value:"trending-slider",label:"ترندینگ اسلایدر"},{value:"professional-slider",label:"اسلایدر حرفه‌ای"},{value:"half-hero-slider",label:"اسلایدر نیم‌صفحه"}];function a(e){return e?.displayMode?e.displayMode:e?.layout==="list"?"compact-list":e?.layout==="masonry"?"editorial-grid":"cards-grid"}},43958:(e,r,t)=>{"use strict";t.r(r),t.d(r,{default:()=>M});var l=t(95155),a=t(39092),i=t.n(a),s=t(12115),o=t(98500),n=t.n(o),d=t(30677),c=t(30992);t(33520),t(55214);var x=t(22356),h=t(9339);let m=(0,h.createServerReference)("7823ad22f1bbd93c5679768ed8b95c660e076887ce",h.callServer,void 0,h.findSourceMapURL,"GetPosts");var f=t(54067),u=t(61566),g=t(77721),p=t(76368),b=t(82842),y=t(6576),j=t(75073),w=t(2859);function v(e){return{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:e,overflow:"hidden"}}let N={"16/9":"16 / 9","9/16":"9 / 16","4/3":"4 / 3","3/4":"3 / 4","3/2":"3 / 2","2/3"
1:"2 / 3","1/1":"1 / 1"},C=["fa","ar","ur","he","ps","ku"];function k(e,r){return"center"===r?"center":"rtl"===e?"right":"left"}function $(e,r){return"center"===r?"center":"right"===r?"rtl"===e?"flex-start":"flex-end":"left"===r&&"rtl"===e?"flex-end":"flex-start"}function F(e){let r=!!(e.showArchiveLink&&e.archiveHref&&e.archiveText);if(!e.showHeader||!e.tagline&&!e.title&&!e.highlight&&!r)return null;let t=$(e.dir,e.textAlign),a=[e.title?(0,l.jsx)("span",{dir:e.dir,children:e.title},"title"):null,e.highlight?(0,l.jsx)("span",{dir:e.dir,style:{color:e.accentColor},children:e.highlight},"highlight"):null].filter(Boolean),i=r?(0,l.jsx)(n(),{href:e.archiveHref,className:"inline-flex shrink-0 items-center justify-center rounded-full border px-4 py-2 text-sm font-semibold transition-transform duration-200 hover:-translate-y-0.5",style:{fontFamily:e.fontFamily,textDecoration:"none",whiteSpace:"nowrap",...function(e,r,t){switch(e){case"solid":return{backgroundColor:r,borderColor:r,color:"#ffffff",boxShadow:t?"0 12px 24px rgba(0,0,0,0.22)":"0 12px 24px rgba(15,23,42,0.12)"};case"soft":return{backgroundColor:`${r}14`,borderColor:`${r}30`,color:r};case"link":return{backgroundColor:"transparent",borderColor:"transparent",color:r,paddingInline:0,boxShadow:"none"};default:return{backgroundColor:t?"rgba(15, 23, 42, 0.45)":"#ffffff",borderColor:`${r}55`,color:r}}}(e.archiveButtonStyle,e.accentColor,e.isDark)},children:e.archiveText}):null;return(0,l.jsxs)("div",{className:"flex w-full flex-col gap-3",style:{marginBottom:`${e.bottomGap}px`,textAlign:e.textAlign,direction:e.dir,alignItems:"stretch"},children:[e.tagline?(0,l.jsx)("div",{className:"flex w-full",dir:e.dir,style:{direction:e.dir,justifyContent:t},children:(0,l.jsx)("span",{className:"inline-flex items-center rounded-full px-3 py-1 text-xs font-semibold tracking-[0.24em] uppercase",style:{color:e.accentColor,backgroundColor:e.isDark?"rgba(148, 163, 184, 0.1)":"rgba(15, 23, 42, 0.05)",fontFamily:e.fontFamily},children:e.tagline})}):null,e.title||e.highlight?(0,l.jsxs)("div",{className:"flex w-full flex-wrap items-center justify-between gap-3",dir:e.dir,style:{direction:e.dir},children:[(0,l.jsx)("h2",{className:"flex min-w-0 flex-1 flex-wrap gap-x-2 gap-y-1 text-2xl font-black leading-tight md:text-4xl",dir:e.dir,style:{color:e.headingColor,direction:e.dir,justifyContent:t,textAlign:e.textAlign,fontFamily:e.fontFamily},children:a}),i]}):i?(0,l.jsx)("div",{className:"flex w-full",dir:e.dir,style:{direction:e.dir,justifyContent:t},children:i}):null]})}function S(e){return e.showAuthor||e.showDate?(0,l.jsxs)("div",{dir:e.dir||"ltr",className:`flex flex-wrap items-center gap-x-4 gap-y-2 text-xs font-medium uppercase tracking-[0.16em] ${e.compact?"":"opacity-90"}`,style:{color:e.color,justifyContent:$(e.dir||"ltr",e.align||"left"),direction:e.dir||"ltr",fontFamily:e.fontFamily},children:[e.showAuthor?(0,l.jsxs)("span",{className:"inline-flex items-center gap-2",style:{flexDirection:"rtl"===e.dir?"row-reverse":"row"},children:[(0,l.jsx)("i",{className:"far fa-user-circle"}),e.authorName]}):null,e.showDate?(0,l.jsxs)("span",{className:"inline-flex items-center gap-2",style:{flexDirection:"rtl"===e.dir?"row-reverse":"row"},children:[(0,l.jsx)("i",{className:"far fa-calendar-alt"}),e.date]}):null]}):null}function A(e){return e.show&&e.label?(0,l.jsx)("span",{className:"inline-flex w-fit items-center rounded-sm px-2.5 py-1 text-[10px] font-extrabold uppercase tracking-[0.2em] text-white",style:{backgroundColor:e.accentColor,color:e.textColor||"#ffffff",fontFamily:e.fontFamily},children:e.label}):null}function M(e){var r,t,a;let o,h,M,{getValue:_}=(0,f.K)(),{node:T,dir:D}=e,B=!0===e.isDark,I=T.defaultProps||{},H=window.location.pathname.split("/").filter(Boolean)[0],z=e.language?.slug||e.page.language?.slug||H,L=(r=D,t=z,a=I.contentDirection||"auto",h=window.location.pathname.split("/").filter(Boolean)[0],M=r||((o=String(t||h||"").trim().toLowerCase(),C.some(e=>o===e||o.startsWith(`${e}-`)))?"rtl":"ltr"),"rtl"===a||"ltr"===a?a:M),P="rtl"===L,R="fa"===(z||"").toLowerCase().split(/[-_]/)[0],E=R?"fa-IR":(0,j.jX)(L,e.page,e.language),K=I.primaryColor||(B?p.K.primary:"#ef4444"),G=(0,w.M)(I),O=Math.max(1,I.pageSize??6),V=!1!==I.showHeader,U=!1!==I.showDate,q=!1!==I.showAuthor,W=!1!==I.showCategory,X=!1!==I.showExcerpt,Z=!1!==I.showReadMore,Y=!1!==I.showImage,J=!1!==I.showTicker,Q=!1!==I.showThumbnails,ee=!1!==I.autoplay,er=I.excerptLength??150,et=Math.max(260,I.heroHeight??480),el=Math.max(60,I.compactImageSize??96),ea=I.c
1olumns??("editorial-grid"===G?2:3),ei=I.carouselColumns??3,es=N[I.imageRatio||"16/9"]||"16 / 9",eo=I.imageFit||"cover",en=k(L,I.textAlign),ed=Math.max(1500,I.autoplayDelay??4500),ec=k(L,I.cardContentAlign||I.textAlign),ex=Math.max(14,I.titleFontSize??22),eh=Math.max(10,I.excerptFontSize??14),em=(0,s.useMemo)(()=>`pc-blog-widget-${String(T.id||"blog").replace(/[^a-zA-Z0-9_-]/g,"")}`,[T.id]),ef=(0,s.useMemo)(()=>{let e=_("widgets","BlogDefaults")||{};return{tagline:e.tagline||(R?"نوشته‌ها":"Articles"),title:e.title||(R?"آخرین":"Latest"),highlight:e.highlight||(R?"مطالب":"Updates"),readMoreText:e.readMoreText||(R?"بیشتر بخوانید":"Read More"),emptyText:e.emptyText||(R?"هیچ مقاله‌ای یافت نشد":"No posts found"),detailsHref:"/posts",archiveHref:"/posts",archiveText:R?"آرشیو خبرها":"News Archive",authorText:e.authorText||(R?"تحریریه سایت":"Editorial Team"),categoryFallback:e.categoryFallback||(R?"عمومی":"General"),tickerLabel:R?"مطالب منتخب":"Featured"}},[_,R]),eu=I.tagline??ef.tagline,eg=I.title??ef.title,ep=I.highlight??ef.highlight,eb=I.readMoreText??ef.readMoreText,ey=I.archiveText??ef.archiveText,ej=I.emptyText??ef.emptyText,ew=I.tickerLabel??ef.tickerLabel,ev=!1!==I.showArchiveLink,eN=z||e.language?.slug||"fa",eC=(0,b.cO)(eN,I.detailsHref??ef.detailsHref).replace(/\/+$/,""),ek=(0,b.cO)(eN,I.archiveHref??ef.archiveHref),[e$,eF]=(0,s.use
1State)([]),[eS,eA]=(0,s.useState)(!0),[eM,e_]=(0,s.useState)(null),[eT,eD]=(0,s.useState)(0),eB=(0,s.useRef)(null);(0,s.useEffect)(()=>{let e=!0;return(async()=>{try{eA(!0);let r=z||"fa",t=await m(r,I.category,1,O);if(!e)return;eF(t?Array.isArray(t)?t:Array.isArray(t.items)?t.items:Array.isArray(t.datas)?t.datas:Array.isArray(t.data)?t.data:t.data&&Array.isArray(t.data.items)?t.data.items:[]:[])}catch{if(!e)return;eF([])}finally{if(!e)return;eA(!1)}})(),()=>{e=!1}},[z,I.category,O]),(0,s.useEffect)(()=>{let e=!0;return(async()=>{try{let{data:r}=await x.FH.get("/Home/GetAppSettings");if(!e)return;e_(r||null)}catch{if(!e)return;e_(null)}})(),()=>{e=!1}},[]),(0,s.useEffect)(()=>{eD(0)},[e$.length,G]);let eI=R?eM?.authorName?.trim()||eM?.author?.trim()||ef.authorText:eM?.authorName?.trim()||eM?.author?.trim()||"Author",eH=(0,s.useMemo)(()=>e$.map((e,r)=>{var t,l;let a,i=e?.id||`post-${r}`;return{id:i,title:e?.title||"—",excerpt:(t=e?.abstract||"",!t||t.length<=er?t:`${t.substring(0,er).trim()}...`),category:(l=ef.categoryFallback,e?.categories?.[0]?.title||e?.postCategories?.[0]?.title||l),date:R?function(e){if(!e)return"-";let r=e instanceof Date?e:new Date(e);if(Number.isNaN(r.getTime()))return"-";try{let e=new Intl.DateTimeFormat("fa-IR-u-ca-persian",{day:"numeric",month:"long",year:"numeric"}).formatToParts(r),t=e.find(e=>"day"===e.type)?.value||"",l=e.find(e=>"month"===e.type)?.value||"",a=e.find(e=>"year"===e.type)?.value||"";return[t,l,a].filter(Boolean).join("/ ")}catch{return r.toLocaleDateString("fa-IR-u-ca-persian",{day:"numeric",month:"long",year:"numeric"})}}((0,u.sA)(e)):function(e,r){let t=(0,u.sA)(e);if(!t)return"—";let l=new Date(t);return Number.isNaN(l.getTime())?"—":l.toLocaleDateString(r,{year:"numeric",month:"short",day:"numeric"})}(e,E),image:(a=e?.previewImage?.filePath)?(0,y.IB)(a):"",href:`${eC}/${i}`}}),[eC,ef.categoryFallback,er,E,e$,R]),ez=(0,s.useMemo)(()=>"minimal"===I.cardStyle?{surface:I.cardBackgroundColor||(B?"rgba(15, 23, 42, 0.45)":"#ffffff"),border:I.cardBorderColor||(B?"rgba(148, 163, 184, 0.16)":"rgba(148, 163, 184, 0.18)"),shadow:"none"}:"modern"===I.cardStyle?{surface:I.cardBackgroundColor||(B?"rgba(15, 23, 42, 0.88)":"#ffffff"),border:I.cardBorderColor||(B?"rgba(148, 163, 184, 0.18)":"rgba(226, 232, 240, 1)"),shadow:B?"0 20px 40px rgba(2, 6, 23, 0.35)":"0 18px 45px rgba(15, 23, 42, 0.08)"}:{surface:I.cardBackgroundColor||(B?"rgba(15, 23, 42, 0.82)":"#ffffff"),border:I.cardBorderColor||(B?"rgba(71, 85, 105, 0.9)":"rgba(226, 232, 240, 1)"),shadow:B?"0 16px 34px rgba(2, 6, 23, 0.28)":"0 12px 30px rgba(15, 23, 42, 0.06)"},[B,I.cardBackgroundColor,I.cardBorderColor,I.cardStyle]),eL=B?p.K.heading:"#0f172a",eP=I.metaColor||(B?p.K.text:"#475569"),eR=I.metaColor||(B?p.K.muted:"#64748b"),eE=I.sectionBackgroundColor||"transparent",eK=I.headerTitleColor||eL,eG=I.titleColor||eL,eO=I.excerptColor||(B?p.K.text:"#475569"),eV=I.badgeTextColor||"#ffffff",eU=I.headerFontFamily?(0,g.az)(I.headerFontFamily):void 0,eq=I.titleFontFamily?(0,g.az)(I.titleFontFamily):void 0,eW=I.excerptFontFamily?(0,g.az)(I.excerptFontFamily):void 0,eX=I.metaFontFamily?(0,g.az)(I.metaFontFamily):void 0,eZ=I.badgeFontFamily?(0,g.az)(I.badgeFontFamily):void 0,eY=Math.max(0,I.sectionPaddingY??100),eJ=Math.max(0,I.sectionPaddingX??0),eQ=Math.max(0,I.cardPadding??20),e0=Math.max(0,I.cardContentGap??16),e1=Math.max(0,I.gridGap??24),e2=Math.max(0,I.headerBottomGap??32),e3={color:eG,fontSize:`${ex}px`,fontFamily:eq,lineHeight:1.35},e4={color:eO,fontSize:`${eh}px`,fontFamily:eW,lineHeight:1.9},e5={...{color:eG,fontSize:`${Math.max(ex+8,ex)}px`,fontFamily:eq,lineHeight:1.15},color:I.titleColor||"#ffffff"},e8={...{color:eG,fontSize:`${Math.max(ex+16,ex)}px`,fontFamily:eq,lineHeight:1.1},color:I.titleColor||"#ffffff"},e6={...{color:eO,fontSize:`${eh}px`,fontFamily:eW,lineHeight:1.9},color:I.excerptColor||"#e2e8f0"},e9=eH[0],e7=eH.slice(1,5),re=eH.slice(0,O),rr=eH.slice(0,Math.max(O,4)),rt=eH[eT]||eH[0],rl=eH.filter((e,r)=>r!==eT).slice(0,4);function ra(e,r,t,a){return Y?(0,l.jsxs)("div",{className:`relative overflow-hidden ${r||""}`,style:{aspectRatio:"number"==typeof a?void 0:es,height:"number"==typeof a?`${a}
1px`:a,backgroundColor:B?"rgba(30, 41, 59, 0.8)":"#e2e8f0"},children:[e.image?(0,l.jsx)("img",{src:e.image,alt:e.title,className:"h-full w-full transition-transform duration-300",style:{objectFit:eo},loading:"lazy"}):(0,l.jsx)("div",{className:"h-full w-full"}),t]}):null}function ri(e,r="h-full w-full",t=!1){return e.image?(0,l.jsx)("img",{src:e.image,alt:e.title,className:`${r}${t?" transition duration-500 group-hover:scale-105":""}`,style:{objectFit:eo},loading:"lazy"}):null}function rs(e,r,t,a,i,s=!1){return X&&e.excerpt.trim().length>0?(0,l.jsx)("p",{className:i,style:{...r,...a,...v(t)},children:e.excerpt}):s?(0,l.jsx)("p",{"aria-hidden":"true",className:i,style:{...r,...a,visibility:"hidden",pointerEvents:"none",userSelect:"none"},children:"\xa0"}):null}function ro(e,r="light"){return Z?(0,l.jsx)("div",{className:"flex",dir:L,style:{direction:L,justifyContent:$(L,ec)},children:(0,l.jsxs)(n(),{href:e,className:"inline-flex items-center gap-2 text-sm font-bold transition-opacity hover:opacity-80",dir:L,style:{color:"dark"===r?"#ffffff"
1:K,direction:L,fontFamily:eX},children:[eb,(0,l.jsx)("i",{className:`fas ${P?"fa-arrow-left":"fa-arrow-right"}`})]})}):null}function rn(e){return(0,l.jsx)("div",{className:"flex",dir:L,style:{direction:L,justifyContent:$(L,ec)},children:(0,l.jsx)(A,{show:W,label:e,accentColor:K,textColor:eV,fontFamily:eZ})})}function rd(e,r){if(!U)return null;let t=r?.tone||"default",a=r?.pill===!0;return(0,l.jsxs)("span",{className:`inline-flex items-center gap-2 text-xs font-semibold ${a?"rounded-full px-3 py-1.5":""}`,dir:L,style:{color:"light"===t?"#ffffff":eR,backgroundColor:a?"light"===t?"rgba(15, 23, 42, 0.62)":"rgba(148, 163, 184, 0.12)":"transparent",backdropFilter:a?"blur(10px)":void 0,justifyContent:$(L,r?.align||ec),flexDirection:"rtl"===L?"row-reverse":"row",fontFamily:eX},children:[(0,l.jsx)("i",{className:"far fa-calendar-alt"}),e]})}function rc(e=!1){let r=e?"rgba(255,255,255,0.28)":"rgba(226,232,240,0.92)",t=e?"#ffffff":eP,a=e?"rgba(255,255,255,0.08)":"rgba(248,250,252,1)";return(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[(0,l.jsx)("button",{type:"button",className:"flex h-11 w-11 items-center justify-center rounded-full border transition-colors",style:{borderColor:r,color:t},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=a},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},onClick:()=>eB.current?.slidePrev(),children:(0,l.jsx)("i",{className:`fas ${P?"fa-chevron-right":"fa-chevron-left"}`})}),(0,l.jsx)("button",{type:"button",className:"flex h-11 w-11 items-center justify-center rounded-full border transition-colors",style:{borderColor:r,color:t},onMouseEnter:e=>{e.currentTarget.style.backgroundColor=a},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="transparent"},onClick:()=>eB.current?.slideNext(),children:(0,l.jsx)("i",{className:`fas ${P?"fa-chevron-left":"fa-chevron-right"}`})})]})}function rx(e,r){let t=r?.stretch!==!1,a=r?.clampHeight!==!1,i=Math.max(1,r?.titleLines??2),s=Math.max(1,r?.excerptLines??4),o=a?`${1.7*i}rem`:void 0,d=a?`${1.9*s}rem`:void 0;return(0,l.jsxs)("article",{className:`flex flex-col overflow-hidden rounded-[28px] border${t?" h-full":""}`,style:{backgroundColor:ez.surface,borderColor:ez.border,boxShadow:ez.shadow},children:[ra(e,"",(0,l.jsxs)("div",{className:"absolute inset-x-4 top-4 flex justify-between",dir:L,style:{direction:L,flexDirection:P?"row-reverse":"row"},children:[(0,l.jsx)(A,{show:W,label:e.category,accentColor:K,textColor:eV,fontFamily:eZ}),U?(0,l.jsx)("span",{className:"rounded-full px-3 py-1 text-[11px] font-semibold",style:{color:"#ffffff",backgroundColor:"rgba(15, 23, 42, 0.68)",backdropFilter:"blur(8px)"},children:e.date}):null]})),(0,l.jsxs)("div",{className:`flex flex-col${t?" h-full":""}`,style:{gap:`${e0}px`,padding:`${eQ}px`,textAlign:ec,direction:L},children:[(0,l.jsx)(S,{showAuthor:q,showDate:!Y&&U,authorName:eI,date:e.date,color:eR,align:ec,dir:L,fontFamily:eX}),(0,l.jsx)("h3",{className:"font-black",style:{...e3,...v(i),minHeight:o},children:(0,l.jsx)(n(),{href:e.href,style:{color:"inherit"},children:e.title})}),rs(e,e4,s,{minHeight:d},void 0,!t),(0,l.jsx)("div",{className:t?"mt-auto":void 0,children:ro(e.href)})]})]})}return(0,l.jsxs)("div",{dir:L,style:{backgroundColor:eE,direction:L,paddingBlock:`${eY}px`,paddingInline:`${eJ}px`},className:i().dynamic([["678de3971f6616f1",[em,em,em,em,em,em,em,em,em,em,em,em,em,em,em,em,B?"rgba(148,163,184,0.35)":"rgba(148,163,184,0.45)",em,K,em,em]]])+" "+`${em} blog-area`,children:[(0,l.jsxs)("div",{className:i().dynamic([["678de3971f6616f1",[em,em,em,em,em,em,em,em,em,em,em,em,em,em,em,em,B?"rgba(148,163,184,0.35)":"rgba(148,163,184,0.45)",em,K,em,em]]])+" container",children:[(0,l.jsx)(F,{showHeader:V&&"editorial-grid"!==G,tagline:eu,title:eg,highlight:ep,showArchiveLink:ev,archiveHref:ek,archiveText:e
1y,archiveButtonStyle:I.archiveButtonStyle,textAlign:en,isDark:B,accentColor:K,headingColor:eK,fontFamily:eU,bottomGap:e2,dir:"rtl"===L?"rtl":"ltr"}),function(){if(eS)return"compact-list"===G?(0,l.jsx)("div",{className:"overflow-hidden rounded-[28px] border",style:{backgroundColor:ez.surface,borderColor:ez.border},children:Array.from({length:Math.min(O,4)}).map((e,r)=>(0,l.jsxs)("div",{className:"grid gap-4 p-4 sm:grid-cols-[96px_minmax(0,1fr)]",children:[(0,l.jsx)("div",{className:"h-20 rounded-xl bg-slate-200/70 animate-pulse"}),(0,l.jsxs)("div",{className:"space-y-3",children:[(0,l.jsx)("div",{className:"h-4 w-20 rounded bg-slate-200/70 animate-pulse"}),(0,l.jsx)("div",{className:"h-5 w-4/5 rounded bg-slate-200/70 animate-pulse"}),(0,l.jsx)("div",{className:"h-4 w-full rounded bg-slate-100/90 animate-pulse"})]})]},r))}):(0,l.jsx)("div",{className:"grid gap-6 md:grid-cols-2 xl:grid-cols-3",children:Array.from({length:Math.min(O,3)}).map((e,r)=>(0,l.jsxs)("div",{className:"overflow-hidden rounded-[28px] border",style:{backgroundColor:ez.surface,borderColor:ez.border},children:[(0,l.jsx)("div",{className:"aspect-[16/9] animate-pulse bg-slate-200/70"}),(0,l.jsxs)("div",{className:"space-y-4 p-5",children:[(0,l.jsx)("div",{className:"h-4 w-24 rounded bg-slate-200/70 animate-pulse"}),(0,l.jsx)("div",{className:"h-6 w-4/5 rounded bg-slate-200/70 animate-pulse"}),(0,l.jsx)("div",{className:"h-16 rounded bg-slate-100/90 animate-pulse"})]})]},r))});if(!eH.length)return(0,l.jsx)("div",{className:"rounded-[28px] border px-6 py-10 text-center text-base",style:{backgroundColor:ez.surface,borderColor:ez.border,color:eP},children:ej});switch(G){case"cards-carousel":let e;return e=2===ei?2:4===ei?4:3,(0,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-4",dir:L,style:{direction:L},children:[(0,l.jsx)("div",{className:"text-sm font-semibold",style:{color:eR},children:R?"ورق بزنید و خبرها را ببینید":"Swipe through the latest stories"}),rc(!1)]}),(0,l.jsx)(d.RC,{modules:[c.Ij],autoplay:!!ee&&{delay:ed,disableOnInteraction:!1},spaceBetween:24,onSwiper:e=>{eB.current=e},className:`${em}-cards-carousel`,breakpoints:{0:{slidesPerView:1.1},640:{slidesPerView:1.5},992:{slidesPerView:Math.min(e-.4,e)},1280:{slidesPerView:e}},dir:L,children:eH.map(e=>(0,l.jsx)(d.qr,{className:"h-auto",children:rx(e)},e.id))})]});case"showcase-carousel":let r;return r=2===ei?2:4===ei?4:3,(0,l.jsxs)("div",{className:"space-y-6",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-4",dir:L,style:{direction:L},children:[(0,l.jsx)("div",{className:"text-sm font-medium",style:{color:eR,fontFamily:eX},children:R?"مرور سریع تازه‌ترین خبرها":"Browse the latest headlines"}),rc(!1)]}),(0,l.jsx)(d.RC,{modules:[c.Ij,c.dK],autoplay:!!ee&&{delay:ed,disableOnInteraction:!1},pagination:{clickable:!0},spaceBetween:Math.max(18,e1),onSwiper:e=>{eB.current=e},className:`${em}-showcase-carousel`,breakpoints:{0:{slidesPerView:1.06},640:{slidesPerView:1.45},992:{slidesPerView:Math.max(1,r-.35)},1280:{slidesPerView:r}},dir:L,children:eH.map(e=>(0,l.jsx)(d.qr,{className:"h-auto",children:(0,l.jsxs)("article",{className:"group flex h-full flex-col overflow-hidden rounded-[30px] border",style:{backgroundColor:ez.surface,borderColor:ez.border,boxShadow:ez.shadow},children:[Y?(0,l.jsx)(n(),{href:e.href,className:"block",children:ra(e,"",void 0)}):null,(0,l.jsxs)("div",{className:"flex h-full flex-col",style:{gap:`${Math.max(12,e0-2)}px`,padding:`${Math.max(18,eQ)}px`,textAlign:ec,direction:L},children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",dir:L,style:{direction:L,flexDirection:P?"row-reverse":"row"},children:[W?(0,l.jsx)(A,{show:W,label:e.category,accentColor:K,textColor:eV,fontFamily:eZ}):(0,l.jsx)("span",{}),rd(e.date,{align:ec})]}),(0,l.jsx)("h3",{className:"font-black leading-[1.55]",style:{...e3,...v(3),minHeight:"4.9rem"},children:(0,l.jsx)(n(),{href:e.href,style:{color:"inherit"},children:e.title})}),rs(e,e4,3,{minHeight:"5.9rem"}),(0,l.jsxs)("div",{className:"mt-auto flex flex-wrap items-center justify-between gap-3",dir:L,style:{direction:L},children:[(0,l.jsx)(S,{showAuthor:q,showDate:!1,authorName:eI,date:e.date,color:eR,compact:!0,align:ec,dir:L,fontFamily:eX}),ro(e.href)]})]})]})},e.id))})]});case"editorial-grid":return(0,l.jsxs)("div",{className:"space-y-5",children:[(0,l.jsx)("div",{className:"flex flex-wrap items-center justify-between gap-4 border-b pb-4",dir:L,style:{borderColor:ez.border,direction:L},children:(0,l.jsxs)("div",{className:"flex items-center gap-3",dir:L,style:{direction:L},children:[(0,l.jsx)("span",{className:"inline-flex items-center rounded-sm px-4 py-2 text-xs font-extrabold uppercase tracking-[0.22em] text-white",style:{backgroundColor:K},children:ep||ew}),(0,l.jsx)("span",{className:"text-sm font-medium",style:{color:eR},children:eg||ef.title})]})}),(0,l.jsx)("div",{className:"grid md:grid-cols-2",style:{gap:`${Math.max(12,e1-4)}px`},children:rr.map(e=>(0,l.jsxs)("article",{className:"flex h-full flex-col gap-3",children:[ra(e,"rounded-sm",(0,l.jsx)("div",{className:"absolute inset-x-3 bottom-3",children:(0,l.jsx)(A,{show:W,label:e.category,accentColor:K,textColor:eV,fontFamily:eZ})})),(0,l.jsxs)("div",{className:"flex flex-1 flex-col gap-3",style:{textAlign:ec,direction:L},children:[!Y&&W?rn(e.category):null,(0,l.jsx)("h3",{className:"font-black",style:{...e3,...v(2),minHeight:"3.3rem"},children:(0,l.jsx)(n(),{href:e.href,style:{color:"inherit"},children:e.title})}
1),rs(e,e4,3),(0,l.jsx)(S,{showAuthor:q,showDate:U,authorName:eI,date:e.date,color:eR,compact:!0,align:ec,dir:L,fontFamily:eX})]})]},e.id))})]});case"feature-grid":return e9?(0,l.jsxs)("div",{className:"grid lg:grid-cols-2",style:{gap:`${Math.max(12,e1-4)}px`},children:[(0,l.jsx)("article",{className:"relative overflow-hidden rounded-[30px] border",style:{backgroundColor:ez.surface,borderColor:ez.border,boxShadow:ez.shadow},children:ra(e9,"",(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(180deg, rgba(15,23,42,0.08) 0%, rgba(15,23,42,0.82) 100%)"}}),(0,l.jsxs)("div",{className:"absolute inset-x-0 bottom-0 flex flex-col gap-4 p-6 text-white md:p-8",style:{textAlign:ec,direction:L},children:[rn(e9.category),(0,l.jsx)("h3",{className:"font-black",style:{...e5,...v(3)},children:(0,l.jsx)(n(),{href:e9.href,style:{color:"inherit"},children:e9.title})}),rs(e9,e6,3,void 0,"max-w-2xl"),(0,l.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-4",dir:L,style:{direction:L},children:[(0,l.jsx)(S,{showAuthor:q,showDate:U,authorName:eI,date:e9.date,color:"#e2e8f0",align:ec,dir:L,fontFamily:eX}),ro(e9.href,"dark")]})]})]}),et)}),(0,l.jsx)("div",{className:"grid",style:{gap:`${Math.max(12,e1-4)}px`},children:e7.map(e=>(0,l.jsxs)("article",{className:"grid overflow-hidden rounded-[24px] border sm:grid-cols-[150px_minmax(0,1fr)]",style:{backgroundColor:ez.surface,borderColor:ez.border,boxShadow:ez.shadow},children:[ra(e,"h-full",void 0,"100%"),(0,l.jsxs)("div",{className:"flex h-full flex-col",style:{gap:`${Math.max(8,e0-4)}px`,padding:`${eQ}px`,textAlign:ec,direction:L},children:[rn(e.category),(0,l.jsx)("h4",{className:"font-black",style:{...e3,...v(2)},children:(0,l.jsx)(n(),{href:e.href,style:{color:"inherit"},children:e.title})}),rs(e,e4,3),(0,l.jsx)(S,{showAuthor:q,showDate:U,authorName:eI,date:e.date,color:eR,compact:!0,align:ec,dir:L,fontFamily:eX})]})]},e.id))})]}):null;case"compact-list":return(0,l.jsx)("div",{className:"overflow-hidden rounded-[28px] border",style:{backgroundColor:ez.surface,borderColor:ez.border,boxShadow:ez.shadow},children:re.map((e,r)=>(0,l.jsxs)("article",{className:"grid gap-4 p-4 sm:grid-cols-[auto_minmax(0,1fr)] sm:items-start",style:{borderBottom:r===re.length-1?"none":`1px solid ${B?"rgba(71,85,105,0.6)":"rgba(226,232,240,1)"}`},children:[Y?(0,l.jsx)(n(),{href:e.href,className:"overflow-hidden rounded-xl",style:{width:`${el}px`,height:`${.8*el}
1px`,backgroundColor:B?"rgba(30, 41, 59, 0.8)":"#e2e8f0"},children:ri(e)}):null,(0,l.jsxs)("div",{className:"flex min-w-0 flex-col gap-2",style:{textAlign:ec,direction:L},children:[rn(e.category),(0,l.jsx)("h3",{className:"font-black",style:{...e3,...v(2)},children:(0,l.jsx)(n(),{href:e.href,style:{color:"inherit"},children:e.title})}),(0,l.jsx)(S,{showAuthor:q,showDate:U,authorName:eI,date:e.date,color:eR,compact:!0,align:ec,dir:L,fontFamily:eX}),rs(e,e4,2)]})]},e.id))});case"media-list":return(0,l.jsx)("div",{className:"grid gap-x-10 gap-y-5 xl:grid-cols-2",children:re.map((e,r)=>(0,l.jsxs)("article",{className:"grid gap-4 border-b pb-5 last:border-b-0 sm:items-center",style:{gridTemplateColumns:Y?`minmax(0,1fr) ${Math.max(120,el+34)}px`:"minmax(0,1fr)",borderColor:r===re.length-1?"transparent":ez.border},children:[(0,l.jsxs)("div",{className:"min-w-0 space-y-3",style:{textAlign:ec,direction:L},children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-2 text-xs font-medium",dir:L,style:{color:eR,direction:L,justifyContent:$(L,ec),fontFamily:eX},children:[rd(e.date,{align:ec}),W?(0,l.jsxs)("span",{className:"inline-flex items-center gap-2",style:{flexDirection:"rtl"===L?"row-reverse":"row"},children:[(0,l.jsx)("span",{className:"inline-block h-1.5 w-1.5 rounded-full",style:{backgroundColor:K}}),e.category]}):null]}),(0,l.jsx)("h3",{className:"font-black leading-[1.7]",style:{...e3,...v(2),fontSize:`${Math.max(ex+2,20)}px`},children:(0,l.jsx)(n(),{href:e.href,style:{color:"inherit"},children:e.title})}),rs(e,e4,2,{fontSize:`${Math.max(eh-1,13)}px`})]}),Y?(0,l.jsx)(n(),{href:e.href,className:"block overflow-hidden rounded-[18px] bg-slate-200",style:{aspectRatio:"4 / 3"},children:ri(e,"h-full w-full",!0)}):null]},e.id))});case"mosaic-grid":return eH.length?(0,l.jsx)("div",{className:"grid auto-rows-fr gap-5 md:grid-cols-2 xl:grid-cols-4",children:eH.map((e,r)=>0===r?(0,l.jsx)("article",{className:"relative overflow-hidden rounded-[30px] border md:col-span-2 xl:col-span-2",style:{backgroundColor:ez.surface,borderColor:ez.border,boxShadow:ez.shadow},children:ra(e,"",(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(180deg, rgba(15,23,42,0.08) 0%, rgba(15,23,42,0.84) 100%)"}}),(0,l.jsxs)("div",{className:"absolute inset-x-0 top-0 flex items-start justify-between gap-3 p-4 md:p-5",dir:L,style:{direction:L},children:[rd(e.date,{tone:"light",pill:!0,align:ec}),W?(0,l.jsx)(A,{show:W,label:e.category,accentColor:K,textColor:eV,fontFamily:eZ}):null]}),(0,l.jsxs)("div",{className:"absolute inset-x-0 bottom-0 flex flex-col gap-3 p-5 text-white md:p-8",style:{textAlign:ec,direction:L},children:[(0,l.jsx)("h3",{className:"font-black",style:{...e5,...v(2)},children:(0,l.jsx)(n(),{href:e.href,style:{color:"inherit"},children:e.title})}),rs(e,e6,2,void 0,"max-w-2xl")]})]}),et)},e.id):(0,l.jsxs)("article",{className:"group flex h-full flex-col overflow-hidden rounded-[26px] border",style:{backgroundColor:ez.surface,borderColor:ez.border,boxShadow:ez.shadow},children:[Y?(0,l.jsx)(n(),{href:e.href,className:"block",children:ra(e,"",void 0)}):null,(0,l.jsxs)("div",{className:"flex h-full flex-col justify-between",style:{gap:`${Math.max(10,e0-4)}px`,padding:`${Math.max(16,eQ-2)}px`,textAlign:ec,direction:L},children:[(0,l.jsx)("h3",{className:"font-black leading-[1.6]",style:{...e3,...v(3),fontSize:`${Math.max(ex-1,16)}px`},children:(0,l.jsx)(n(),{href:e.href,style:{color:"inherit"},children:e.title})}),(0,l.jsxs)("div",{className:"mt-auto flex flex-wrap items-center justify-between gap-3",dir:L,style:{direction:L},children:[rd(e.date,{align:ec}),W?(0,l.jsx)("span",{className:"text-xs font-semibold",style:{color:K,fontFamily:eZ},children:e.category}):null]})]})]},e.id))}):null;case"trending-slider":return eH.length?(0,l.jsxs)("div",{className:"overflow-hidden rounded-[28px] border p-3 md:p-4",style:{backgroundColor:ez.surface,borderColor:ez.border,boxShadow:ez.shadow},children:[J&&rt?(0,l.jsxs)("div",{className:"mb-4 grid items-center overflow-hidden rounded-xl border md:grid-cols-[auto_minmax(0,1fr)_auto]",style:{borderColor:"rgba(226,232,240,0.9)"},children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 px-4 py-3 text-xs font-black uppercase tracking-[0.24em] text-white",style:{backgroundColor:K},children:[(0,l.jsx)("i",{className:"fas fa-bolt"}),ew]}),(0,l.jsx)("div",{className:"min-w-0 px-4 py-3 text-sm font-medium",style:{color:eP},children:(0,l.jsx)("span",{className:"block truncate",children:rt.title})}),(0,l.jsxs)("div",{className:"flex items-center justify-end gap-2 px-3 py-2",dir:L,style:{direction:L},children:[(0,l.jsx)("span",{className:"hidden text-xs font-semibold md:block",style:{color:eR},children:rt.date}),(0,l.jsx)("button",{type:"button",className:"flex h-9 w-9 items-center justify-center rounded-lg border transition-colors hover:bg-slate-50",style:{borderColor:"rgba(226,232,240,0.9)",color:eP},onClick:()=>eB.current?.slidePrev(),children:(0,l.jsx)("i",{className:`fas ${P?"fa-chevron-right":"fa-chevron-left"}`})}),(0,l.jsx)("button",{type:"button",className:"flex h-9 w-9 items-center justify-center rounded-lg border transition-colors hover:bg-slate-50",style:{borderColor:"rgba(226,232,240,0.9)",color:eP},onClick:()=>eB.current?.slideNext(),children:(0,l.jsx)("i",{className:`fas ${P?"fa-chevron-left":"fa-chevron-right"}`})})]})]}):null,(0,l.jsx)(d.RC,{modules:[c.Ij],autoplay:!!ee&&{delay:ed,disableOnInteraction:!1},onSwiper:e=>{eB.current=e},onSlideChange:e=>eD(e.activeIndex),className:`${em}-trending-swiper`,dir:L,children:eH.map(e=>(0,l.jsx)(d.qr,{children:(0,l.jsx)("article",{className:"overflow-hidden rounded-[24px]",children:ra(e,"",(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(180deg, rgba(15,23,42,0.08) 0%, rgba(15,23,42,0.82) 100%)"}}),(0,l.jsxs)("div",{className:"absolute inset-x-0 bottom-0 flex max-h-full flex-col gap-4 overflow-hidden p-6 text-white md:p-8",style:{textAlign:ec,direction:L},children:[rn(e.category),(0,l.jsx)("h3",{className:"max-w-3xl font-black",style:{...e8,...v(3)},children:(0,l.jsx)(n(),{href:e.href,style:{color:"inherit"},children:e.title})}),(0,l.jsx)(S,{showAuthor:q,showDate:U,authorName:eI,date:e.date,color:"#f8fafc",align:ec,dir:L,fontFamily:eX}
1),rs(e,e6,3,void 0,"max-w-2xl"),ro(e.href,"dark")]})]}),et)})},e.id))}),Q?(0,l.jsx)("div",{className:"mt-4 grid grid-cols-3 gap-3 md:grid-cols-6",children:eH.slice(0,6).map((e,r)=>{let t=r===eT;return(0,l.jsx)("button",{type:"button",className:"overflow-hidden rounded-xl border p-0 transition-transform hover:-translate-y-0.5",dir:L,style:{borderColor:t?K:"rgba(226,232,240,0.9)",boxShadow:t?`0 0 0 2px ${K}22`:"none"},onClick:()=>eB.current?.slideTo(r),children:(0,l.jsx)("div",{className:"aspect-[1.15/1] bg-slate-100",children:ri(e)})},e.id)})}):null]}):null;case"professional-slider":return eH.length?(0,l.jsx)("div",{className:"overflow-hidden rounded-[32px] border",style:{background:B?"linear-gradient(135deg, rgba(2,6,23,0.95) 0%, rgba(15,23,42,0.92) 100%)":"linear-gradient(135deg, #ffffff 0%, #f8fafc 100%)",borderColor:ez.border,boxShadow:ez.shadow},children:(0,l.jsxs)("div",{className:"grid gap-0 lg:grid-cols-[minmax(0,1fr)_360px]",children:[(0,l.jsxs)("div",{className:"relative min-w-0 p-3 md:p-5",children:[(0,l.jsx)(d.RC,{modules:[c.Ij,c.dK],autoplay:!!ee&&{delay:ed,disableOnInteraction:!1},pagination:{clickable:!0},onSwiper:e=>{eB.current=e},onSlideChange:e=>eD(e.activeIndex),className:`${em}-professional-swiper`,dir:L,children:eH.map(e=>(0,l.jsx)(d.qr,{children:(0,l.jsx)("article",{className:"relative overflow-hidden rounded-[28px]",children:ra(e,"",(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(180deg, rgba(15,23,42,0.02) 0%, rgba(15,23,42,0.88) 100%)"}}),(0,l.jsxs)("div",{className:"absolute inset-x-0 bottom-0 flex max-h-full flex-col gap-4 overflow-hidden p-6 text-white md:p-8",style:{textAlign:ec,direction:L,paddingBottom:"5.75rem"},children:[rn(e.category),(0,l.jsx)("h3",{className:"max-w-3xl font-black",style:{...e8,...v(3)},children:(0,l.jsx)(n(),{href:e.href,style:{color:"inherit"},children:e.title})}),(0,l.jsx)(S,{showAuthor:q,showDate:U,authorName:eI,date:e.date,color:"#f8fafc",align:ec,dir:L,fontFamily:eX}),rs(e,e6,3,void 0,"max-w-2xl"),ro(e.href,"dark")]})]}),et)})},e.id))}),(0,l.jsx)("div",{className:"pointer-events-none absolute inset-x-8 bottom-8 z-10 flex items-end justify-between",dir:L,style:{direction:L},children:(0,l.jsx)("div",{className:"pointer-events-auto",children:rc(!0)})})]}),(0,l.jsxs)("aside",{className:"flex h-full flex-col gap-3 border-t p-4 lg:border-t-0 lg:border-s",style:{borderColor:B?"rgba(71,85,105,0.75)":"rgba(226,232,240,1)"},children:[(0,l.jsxs)("div",{className:"flex items-center justify-between gap-3 pb-3",dir:L,style:{borderBottom:`1px solid ${B?"rgba(71,85,105,0.75)":"rgba(226,232,240,1)"}`,direction:L},children:[(0,l.jsx)("h3",{className:"text-sm font-black uppercase tracking-[0.24em]",style:{color:eL},children:R?"خبرهای بعدی":"Up Next"}),(0,l.jsxs)("span",{className:"text-xs font-semibold",style:{color:eR},children:[String(eT+1).padStart(2,"0")," / ",String(eH.length).padStart(2,"0")]})]}),rl.map((e,r)=>{let t=eH.findIndex(r=>
1r.id===e.id);return(0,l.jsx)("button",{type:"button",className:"grid gap-3 rounded-2xl border p-3 transition-transform hover:-translate-y-0.5",dir:L,style:{borderColor:B?"rgba(71,85,105,0.75)":"rgba(226,232,240,1)",backgroundColor:B?"rgba(15,23,42,0.55)":"#ffffff"},onClick:()=>eB.current?.slideTo(t),children:(0,l.jsxs)("div",{className:"grid gap-3 sm:grid-cols-[112px_minmax(0,1fr)]",children:[(0,l.jsx)("div",{className:"overflow-hidden rounded-xl bg-slate-200",style:{aspectRatio:"4 / 3"},children:ri(e)}),(0,l.jsxs)("div",{className:"flex flex-col justify-between gap-2",style:{textAlign:ec,direction:L},children:[(0,l.jsxs)("div",{className:"text-[11px] font-black uppercase tracking-[0.2em]",style:{color:K},children:[String(r+1).padStart(2,"0")," ",W?`\xb7 ${e.category}`:""]}),(0,l.jsx)("div",{className:"font-black leading-snug",style:{color:eL,fontSize:`${Math.max(ex-2,14)}px`,...v(2)},children:e.title}),(0,l.jsx)("div",{className:"text-xs font-medium",style:{color:eR},children:e.date})]})]})},e.id)})]})]})}):null;case"half-hero-slider":return eH.length?(0,l.jsxs)("div",{className:"grid items-start lg:grid-cols-[minmax(0,1.08fr)_minmax(280px,0.92fr)]",style:{gap:`${Math.max(18,e1)}px`},children:[(0,l.jsx)("div",{className:"min-w-0 overflow-hidden rounded-[30px]",children:(0,l.jsx)(d.RC,{modules:[c.Ij,c.dK],autoplay:!!ee&&{delay:ed,disableOnInteraction:!1},pagination:{clickable:!0},onSwiper:e=>{eB.current=e},onSlideChange:e=>eD(e.activeIndex),className:`${em}-half-hero-swiper`,dir:L,children:eH.map(e=>(0,l.jsx)(d.qr,{children:(0,l.jsx)("article",{className:"relative min-h-full overflow-hidden rounded-[30px] border",style:{backgroundColor:ez.surface,borderColor:ez.border,boxShadow:ez.shadow},children:ra(e,"",(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"absolute inset-0",style:{background:"linear-gradient(180deg, rgba(15,23,42,0.06) 0%, rgba(15,23,42,0.82) 100%)"}}),(0,l.jsxs)("div",{className:"absolute inset-x-0 bottom-0 flex max-h-full flex-col gap-3 overflow-hidden p-5 text-white md:gap-4 md:p-8",style:{textAlign:ec,direction:L},children:[rn(e.category),(0,l.jsx)("h3",{className:"font-black",style:{...e5,...v(3)},children:(0,l.jsx)(n(),{href:e.href,style:{color:"inherit"},children:e.title})}),rs(e,e6,3,void 0,"max-w-xl"),(0,l.jsx)(S,{showAuthor:q,showDate:U,authorName:eI,date:e.date,color:"#f8fafc",align:ec,dir:L,fontFamily:eX}),ro(e.href,"dark")]})]}),et)})},e.id))})}),(0,l.jsxs)("div",{className:"flex min-w-0 flex-col",style:{gap:`${Math.max(12,e0)}px`},children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",dir:L,style:{direction:L},children:[(0,l.jsx)("h3",{className:"min-w-0 text-sm font-black uppercase tracking-[0.18em] md:text-base",style:{color:eL,fontFamily:eU},children:R?"آخرین سرفصل‌ها":"Latest Headlines"}),rc(!1)]}),(0,l.jsx)("div",{className:"grid",style:{gap:`${Math.max(10,e0-2)}px`},children:eH.slice(0,4).map((e,r)=>{let t=r===eT;return(0,l.jsxs)("article",{className:"relative grid min-w-0 gap-3 rounded-[22px] border p-3 transition-transform hover:-translate-y-0.5 sm:grid-cols-[104px_minmax(0,1fr)] md:p-4",dir:L,style:{borderColor:t?K:ez.border,backgroundColor:ez.surface,boxShadow:t?`0 0 0 2px ${K}22`:ez.shadow,gridTemplateColumns:Y?void 0:"minmax(0, 1fr)"},children:[(0,l.jsx)("button",{type:"button",className:"absolute inset-0 z-0 cursor-pointer rounded-[22px] border-0 bg-transparent",onClick:()=>eB.current?.slideTo(r),"aria-label":`${R?"نمایش خبر":"Show story"}: ${e.title}`}),Y?(0,l.jsx)("div",{className:"pointer-events-none relative z-[1] overflow-hidden rounded-2xl bg-slate-200",style:{aspectRatio:"4 / 3"},children:ri(e)}):null,(0,l.jsxs)("div",{className:"pointer-events-none relative z-[1] flex min-w-0 flex-col gap-2",style:{textAlign:ec,direction:L},children:[(0,l.jsx)("div",{className:"text-[11px] font-black uppercase tracking-[0.2em]",style:{color:K},children:e.category}),(0,l.jsx)("h4",{className:"font-black leading-snug",style:{color:eL,fontSize:`${Math.max(ex-1,15)}px`,...v(2)},children:(0,l.jsx)(n(),{href:e.href,className:"pointer-events-auto relative z-[2] no-underline hover:underline",style:{color:"inherit"},children:e.title})}),(0,l.jsx)("div",{className:"text-xs font-medium",style:{color:eR},children:e.date}),rs(e,e4,2,{fontSize:`${Math.max(eh-1,12)}px`})]})]},e.id)})})]})]}):null;default:return(0,l.jsx)("div",{className:`grid ${2===ea?"md:grid-cols-2":4===ea?"md:grid-cols-2 xl:grid-cols-4":"md:grid-cols-2 xl:grid-cols-3"}`,style:{gap:`${e1}px`,alignItems:"start"},children:eH.map(e=>(0,l.jsx)("div",{className:"self-start",children:rx(e,{stretch:!1,clampHeight:!0,titleLines:2,excerptLines:2})},e.id))})}}()]}),(0,l.jsx)(i(),{id:"678de3971f6616f1",dynamic:[em,em,em,em,em,em,em,em,em,em,em,em,em,em,em,em,B?"rgba(148,163,184,0.35)":"rgba(148,163,184,0.45)",em,K,em,em],children:`.${em}.__jsx-style-dynamic-selector .swiper{overflow:visible}.${em}.__jsx-style-dynamic-selector .swiper-slide{height:auto}.${em}.__jsx-style-dynamic-selector .${em}-trending-swiper,.${em}.__jsx-style-dynamic-selector .${em}-professional-swiper,.${em}.__jsx-style-dynamic-selector .${em}-half-hero-swiper{overflow:hidden}.${em}.__jsx-style-dynamic-selector .${em}-trending-swiper .swiper-wrapper,.${em}.__jsx-style-dynamic-selector .${em}-professional-swiper .swiper-wrapper,.${em}.__jsx-style-dynamic-selector .${em}-half-hero-swiper .swiper-wrapper{align-items:stretch}.${em}.__jsx-style-dynamic-selector .swiper-pagination{position:static;margin-top:18px;display:flex;justify-content:center;gap:8px}.${em}.__jsx-style-dynamic-selector .swiper-pagination-bullet{width:10px;height:10px;opacity:1;background:${B?"rgba(148,163,184,0.35)":"rgba(148,163,184,0.45)"}}.${em}.__jsx-style-dynamic-selector .swiper-pagination-bullet-active{background:${K}}.${em}.__jsx-style-dynamic-selector a.__jsx-style-dynamic-selector{text-decoration:none}.${em}.__jsx-style-dynamic-selector img.__jsx-style-dynamic-selector{display:block}`})]})}},55214:()=>{},61566:(e,r,t)=>{"use strict";t.d(r,{Ls:()=>a,sA:()=>i,xX:()=>s});var l,a=((l={})[l.DISABLED=0]="DISABLED",l[l.PUBLIC=1]="PUBLIC",l[l.AUTHENTICATED=2]="AUTHENTICATED",l);function i(e){if(e)return e.createdDateTime||e.createdAt||e.createDate||e.date||void 0}function s(e,r){let t=String(e||"").trim();if(!t){let e=String(r||"").trim().slice(0,10);return e?`${e}T12:00:00.000Z`:void 0}return`${t.slice(0,10)}T12:00:00.000Z`}}}]);

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.