PageSourceSearch

https://cdn-content.qatarliving.com/site-assets/_next/static/chunks/8457-dd9a0e595848252f.js

js qatarliving.com collected 2026-10-01 11:31:09 UTC 52,018 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8457],{9432:(e,t,l)=>{l.d(t,{default:()=>s});var i=l(54568),n=l(91284),a=l(15754),r=l(65310),o=l(25960);let s=e=>{let{maxWidth:t=800,showImage:l=!0}=e;return(0,i.jsx)(n.default,{sx:{maxWidth:t,width:"100%"},children:(0,i.jsxs)(n.default,{sx:{bgcolor:o.l.WHITE,borderRadius:"12px",border:"1px solid ".concat(o.l.GREY[200]),p:3,display:"flex",flexDirection:"column",gap:3},children:[(0,i.jsxs)(a.default,{direction:"row",justifyContent:"space-between",alignItems:"center",children:[(0,i.jsx)(r.default,{variant:"rounded",width:90,height:24,sx:{borderRadius:"999px"}}),(0,i.jsx)(r.default,{variant:"circular",width:32,height:32})]}),(0,i.jsxs)(a.default,{spacing:2,children:[(0,i.jsx)(r.default,{variant:"text",width:"70%",height:32}),l&&(0,i.jsx)(r.default,{variant:"rounded",width:"100%",height:220,sx:{borderRadius:"12px"}}),(0,i.jsxs)(a.default,{spacing:1.5,children:[(0,i.jsx)(r.default,{variant:"text",width:"100%",height:20}),(0,i.jsx)(r.default,{variant:"text",width:"95%",height:20}),(0,i.jsx)(r.default,{variant:"text",width:"85%",height:20})]})]}),(0,i.jsxs)(a.default,{direction:{xs:"column",md:"row"},spacing:{xs:2,md:3},alignItems:{xs:"flex-start",md:"center"},justifyContent:"space-between",children:[(0,i.jsxs)(a.default,{direction:"row",spacing:1.5,alignItems:"center",children:[(0,i.jsx)(r.default,{variant:"circular",width:24,height:24}),(0,i.jsx)(r.default,{variant:"text",width:120,height:20})]}),(0,i.jsxs)(a.default,{direction:"row",spacing:1,flexWrap:"wrap",justifyContent:"flex-end",children:[(0,i.jsx)(r.default,{variant:"rounded",width:68,height:28,sx:{borderRadius:"999px"}}),(0,i.jsx)(r.default,{variant:"rounded",width:68,height:28,sx:{borderRadius:"999px"}}),(0,i.jsx)(r.default,{variant:"rounded",width:68,height:28,sx:{borderRadius:"999px"}}),(0,i.jsx)(r.default,{variant:"rounded",width:68,height:28,sx:{borderRadius:"999px"}})]})]})]})})}},10889:(e,t,l)=>{l.d(t,{default:()=>x});var i=l(54568),n=l(91284),a=l(7620),r=l(27541),o=l(25960),s=l(6491),d=l(97750);let x=e=>{var t,l,x;let{item:c,lng:u}=e,h=(0,r.useRouter)(),f=(0,r.usePathname)(),p=(0,d.FL)(u),[g,m]=(0,a.useState)(!1),b=(0,a.useMemo)(()=>{var e,t;let l=p.find(e=>e.id===c.id);return!!f&&(null!=l&&null!=(e=l.matchers)&&!!e.some(e=>e(f))||((null==l?void 0:l.id)==="home"?f===l.path||f==="".concat(l.path,"/"):f.startsWith(null!=(t=null==l?void 0:l.path)?t:"/")))},[f,c,p]),j=(0,a.useMemo)(()=>b||g?o.l.SECONDARY.MAIN:o.l.PRIMARY.MAIN,[b,g]),v=(0,a.useMemo)(()=>b||g?o.l.SECONDARY.MAIN:o.l.PRIMARY.MAIN,[b,g]),w=null!=(l=null==(t=p.find(e=>e.id===c.id))?void 0:t.path)?l:"";return(0,i.jsxs)(n.default,{component:"a",href:w,onClick:e=>{e.preventDefault(),h.push(w)},onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:0,cursor:"pointer",height:"42px",pb:.5,borderBottom:b?"3px solid ".concat(o.l.SECONDARY.MAIN):"3px solid transparent",transition:"all 0.2s ease",textDecoration:"none",color:"inherit"},children:[(0,i.jsx)(n.default,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:((e,t,l)=>{switch(e){case"daily":break;case"news":return(0,i.jsx)(s.LE,{color:t,size:l});case"events":return(0,i.jsx)(s.Jc,{color:t,size:l});case"community":return(0,i.jsx)(s.zm,{color:t,size:l})}return(0,i.jsx)(s.F7,{color:t,size:l})})(null!=(x=null==c?void 0:c.id)?x:"",j,24)}),(0,i.jsx)(n.default,{component:"span",sx:{fontSize:"12px",fontWeight:500,lineHeight:"18px",color:v,transition:"color 0.2s ease"},children:c.label})]})}},15944:(e,t,l)=>{l.d(t,{default:()=>r});var i=l(54568),n=l(91284),a=l(65310);let r=()=>(0,i.jsxs)(n.default,{sx:{width:"100%",height:"100%",borderRadius:"6px",overflow:"hidden",bgcolor:"background.paper",boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.05)",display:"flex",flexDirection:"column"},children:[(0,i.jsx)(a.default,{variant:"rectangular",width:"100%",height:214,animation:"wave"}),(0,i.jsxs)(n.default,{sx:{p:2,display:"flex",flexDirection:"column",gap:1.5},children:[(0,i.jsx)(a.default,{variant:"text",width:"30%",height:12,animation:"wave"}),(0,i.jsx)(a.default,{variant:"text",width:"90%",height:26,animation:"wave"}),(0,i.jsx)(a.default,{variant:"text",width:"85%",height:22,animation:"wave"}),(0,i.jsx)(a.default,{variant:"text",width:"80%",height:18,animation:"wave"}),(0,i.jsxs)(n.default,{sx:{display:"flex",alignItems:"center",gap:1,mt:1},children:[(0,i.jsx)(a.default,{variant:"circular",width:16,height:16,animation:"wave"}),(0,i.jsx)(a.default,{variant:"text",width:"40%",height:18,animation:"wave"})]}),(0,i.jsx)(a.default,{variant:"text",width:"60%",height:28,animation:"wave"})]})]})},18250:(e,t,l)=>{l.d(t,{default:()=>h});var i=l(54568),n=l(7620),a=l(91284),r=l(48170),o=l(47226),s=l(49809),d=l(32536),x=l(68764),c=l(59199);let u=e=>{let{size:t=16}=e;return(0,i.jsxs)("svg",{width:t,height:t,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M8 1.44c2.136 0 2.389.009 3.233.047.78.036 1.203.166 1.485.276.374.145.64.318.92.598.28.28.453.546.598.92.11.282.24.705.276 1.485.038.844.047 1.097.047 3.233s-.009 2.389-.047 3.233c-.036.78-.166 1.203-.276 1.485-.145.374-.318.64-.598.92-.28.28-.546.453-.92.598-.282.11-.70
15.24-1.485.276-.844.038-1.097.047-3.233.047s-2.389-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.478 2.478 0 0 1-.598-.92c-.11-.282-.24-.705-.276-1.485C1.45 10.39 1.44 10.136 1.44 8s.009-2.389.047-3.233c.036-.78.166-1.203.276-1.485.145-.374.318-.64.598-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276C5.61 1.45 5.864 1.44 8 1.44M8 0C5.827 0 5.555.01 4.702.048 3.85.087 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.917 3.917 0 0 0 .42 2.76c-.198.51-.333 1.09-.372 1.942C.01 5.555 0 5.827 0 8s.01 2.445.048 3.298c.039.852.174 1.433.372 1.942.205.526.478.973.923 1.417.444.445.89.719 1.417.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.445-.01 3.298-.048c.852-.039 1.433-.174 1.942-.372a3.917 3.917 0 0 0 1.417-.923c.445-.444.719-.89.923-1.417.198-.51.333-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.298c-.039-.852-.174-1.433-.372-1.942a3.917 3.917 0 0 0-.923-1.417A3.917 3.917 0 0 0 13.24.42c-.51-.198-1.09-.333-1.942-.372C10.445.01 10.173 0 8 0Z",fill:"#fff"}),(0,i.jsx)("path",{d:"M8 3.892a4.108 4.108 0 1 0 0 8.216 4.108 4.108 0 0 0 0-8.216Zm0 6.775a2.667 2.667 0 1 1 0-5.334 2.667 2.667 0 0 1 0 5.334ZM13.23 3.73a.96.96 0 1 1-1.92 0 .96.96 0 0 1 1.92 0Z",fill:"#fff"})]})},h=e=>{let{id:t,thumbnailUrl:l,videoUrl:h,permalink:f,caption:p,isPlaying:g=!1,onPlayChange:m,follow:b}=e,j=(0,n.useRef)(null);(0,n.useEffect)(()=>{var e,t;g?null==(e=j.current)||e.play():null==(t=j.current)||t.pause()},[g]);let v=e=>{let l=!g;null==m||m(l),l&&y(e.nativeEvent,s.sk.REEL_CLICK,Number(t),null,
1null,null,h)},w=(0,s.gX)({ad_type:"reel",ad_id:t}),{handleClickAnalytics:y}=(0,s.ls)();return(0,i.jsxs)(a.default,{ref:w,sx:{position:"relative",width:232,height:360,borderRadius:"8px",overflow:"hidden",cursor:"pointer",flexShrink:0,transition:"transform 0.2s ease, box-shadow 0.2s ease","&:hover":{transform:"scale(1.02)",boxShadow:"0 8px 24px rgba(0,0,0,0.15)"}},children:[!g&&(0,i.jsx)(d.default,{src:l,alt:p||"Instagram Reel",fill:!0,style:{objectFit:"cover"},sizes:"232px"}),(0,i.jsx)("video",{ref:j,src:h,playsInline:!0,loop:!0,muted:!1,onEnded:()=>{null==m||m(!1)},onClick:v,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",opacity:+!!g,transition:"opacity 0.3s ease"}}),(0,i.jsx)(a.default,{sx:{position:"absolute",inset:0,background:"linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%)",pointerEvents:"none"}}),(0,i.jsx)(r.default,{onClick:v,sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",bgcolor:"rgba(0, 0, 0, 0.5)",width:56,height:56,opacity:+!g,transition:"opacity 0.3s ease","&:hover":{bgcolor:"rgba(0, 0, 0, 0.7)",opacity:1}},children:g?(0,i.jsx)(c.A,{sx:{fontSize:32,color:s.lm.WHITE}}):(0,i.jsx)(x.A,{sx:{fontSize:32,color:s.lm.WHITE}})}),(0,i.jsxs)(a.default,{component:s.A8,href:f,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),sx:{position:"absolute",bottom:10,right:12,bgcolor:s.lm.SECONDARY.MAIN,borderRadius:"4px",px:2,py:1,display:"flex",alignItems:"center",gap:.5,textDecoration:"none",transition:"background-color 0.2s ease","&:hover":{bgcolor:s.lm.SECONDARY[600]}},children:[(0,i.jsx)(u,{size:16}),(0,i.jsx)(o.default,{sx:{fontWeight:500,fontSize:"14px",lineHeight:"22px",color:s.lm.WHITE},children:b})]})]})}},19710:(e,t,l)=>{l.d(t,{default:()=>c});var i=l(54568),n=l(91284),a=l(47226),r=l(47394),o=l(49809),s=l(86873),d=l(7540),x=l(32536);let c=e=>{let{items:t,maxThumbnailWidth:l=124,thumbnailHeight:c=70}=e;if(!t.length)return null;let u=e=>{var u;let{item:h,index:f,showThumbnail:p}=e,{handleClickAnalytics:g}=(0,o.ls)(),m=(0,o.gX)({ad_type:"article",ad_id:h.slug});return(0,i.jsxs)(n.default,{ref:m,sx:{display:"flex",flexDirection:"column",gap:.75},children:[(0,i.jsxs)(n.default,{component:o.A8,href:h.href,onClick:e=>g(e.nativeEvent,o.sk.CARD_CLICK,null,h.slug,null,null,h.href),sx:{display:"flex",alignItems:"center",gap:{xs:1,md:1.5},textDecoration:"none",color:"inherit"},children:[(0,i.jsxs)(n.default,{sx:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:.5},children:[(0,i.jsx)(a.default,{variant:"body2Semibold",sx:{color:o.lm.SECONDARY.MAIN},children:h.category}),(0,i.jsx)(a.default,{variant:"sanSemibold16",component:"h2",sx:{color:o.lm.GREY[900],display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:h.title})]}),p&&(0,i.jsx)(n.default,{sx:{width:l,height:c,borderRadius:"4px",overflow:"hidden",flexShrink:0},children:(0,i.jsx)(x.default,{src:null!=(u=h.thumbnail)?u:s.default.src,alt:h.title,width:l,height:c,loading:"eager",quality:75,style:{objectFit:"cover",width:"100%",height:"100%",display:"block"},sizes:"(max-width: ".concat(d.A.breakpoints.values.md,"px) 25vw, ").concat(l,"px")})})]}),f<t.length-1&&(0,i.jsx)(r.A,{sx:{bgcolor:o.lm.GREY[200]}})]})};return(0,i.jsx)(n.default,{sx:{display:"flex",flexDirection:"column",gap:1.5},children:t.map((e,t)=>(0,i.jsx)(u,{item:e,index:t,showThumbnail:!!e.thumbnail},e.id))})}},22603:(e,t,l)=>{l.d(t,{BP:()=>a,oU:()=>n,rF:()=>r});var i=l(27527);let n=i.pU?1.5:"25px",a=i.pU?.5:"25px",r=i.pU?.25:"10px"},25232:(e,t,l)=>{l.d(t,{default:()=>p});var i=l(54568),n=l(7620),a=l(48801),r=l(15754),o=l(91284),s=l(47394),d=l(25960),x=l(82259),c=l(42381),u=l(69562),h=l(7540);let f={flex:{xs:"0 0 378px",lg:"0 0 calc(33.333% - 16px)"},maxWidth:{xs:"378px",lg:"calc(33.333% - 16px)"},width:{xs:"378px",lg:"calc(33.333% - 16px)"}},p=e=>{let{topic:t,showLabel:l=!1,isMobileStackView:p=!1}=e,g=(0,a.A)(h.A.breakpoints.down("lg")),m=e=>{switch(e.type){case"article":return(0,i.jsx)(x.A,{article:e,showLabel:l});case"event":return(0,i.jsx)(c.A,{event:e,showLabel:l});case"video":return(0,i.jsx)(u.A,{video:e,showLabel:l});default:return null}};return t.items.length?p&&g?(0,i.jsx)(r.default,{spacing:2.5,children:t.items.map(e=>(0,i.jsx)(o.default,{sx:{width:"100%"},children:m(e)},"".concat(e.type,"-").concat(e.id)))}):(0,i.jsx)(o.default,{sx:{display:"flex",gap:0,overflowX:{xs:"auto",lg:"visible"},"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:"#D9D9D9",borderRadius:3}},children:t.items.map((e,l)=>(0,i.jsxs)(n.Fragment,{children:[(0,i.jsx)(o.default,{sx:f,children:m(e)}),l<t.items.length-1&&(0,i.jsx)(s.A,{orientation:"vertical",flexItem:!0,sx:{mx:{xs:1.5,lg:2},bgcolor:d.l.GREY[200],width:"1px"}})]},"".concat(e.type,"-").concat(e.id)))}):null}},27527:(e,t,l)=>{l.d(t,{pU:()=>i});let i=!1},29394:(e,t,l)=>{l.d(t,{default:()=>c});var i=l(54568),n=l(7620),a=l(27541),r=l(91284),o=l(35706),s=l(59528),d=l(47226),x=l(25960);let c=e=>{var t,l;let{items:c,activeId:u,onChange:h}=e,f=(0,a.useRouter)(),p=(0,a.usePathname)(),g=(0,n.useMemo)(()=>{let e=(e=>e?e.endsWith("/")&&e.length>1?e.slice(0,-1):e:"")(p).split("/");return e.length>2?e[2]:void 0},[p]),m=null!=(l=null!=u?u:g)?l:null==(t=c[0])?void 0:t.id;return(0,i.jsx)(r.default,{sx:{py:{xs:1.5,md:5}},children:(0,i.jsx)(o.default,{sx:{maxWidth:"1200px !important",px:{xs:2,xl:0}},children:(0,i.jsx)(r.default,{sx:{display:"flex",justifyContent:"center"},children:(0,i.jsx)(r.default,{sx:{display:"flex",alignItems:"center",justifyContent:{xs:"flex-start",md:"center"},bgcolor:x.l.WHITE,borderRadius:1.5,boxShadow:"0px 3px 6px rgba(0, 0, 0, 0.05)",width:"calc(".concat(c.length," * 138px)"),maxWidth:"100%",px:1,py:1,gap:1,overflowX:"auto",scrollbarWidth:"thin","&::-webkit-scrollbar":{height:4},"&::-webkit-scrollbar-thumb":{backgroundColor:x.l.GREY[200],borderRadius:999}},children:c.map(e=>{let t=e.id===m;return(0,i.jsx)(s.A,{disableRipple:!0,onClick:()=>(e=>{h&&h(e),e.href&&f.push(e.href)})(e),sx:{display:"flex",alignItems:"center",justifyContent:"center",height:44,minWidth:0,flex:"0 0 128px",maxWidth:128,borderRadius:1.5,px:3,bgcolor:t?x.l.SECONDARY.MAIN:x.l.WHITE,color:t?x.l.WHITE:x.l.GREY[700],transition:"all 0.2s ease",whiteSpace:"nowrap","&:hover":{color:t?x.l.WHITE:x.l.SECONDARY.MAIN,bgcolor:t?x.l.SECONDARY.MAIN:((e,t)=>{let l=e.replace("#",""),i=parseInt(3===l.length?l.split("").map(e=>e+e).join(""):l,16);return"rgba(".concat(i>>16&255,", ").concat(i>>8&255,", ").concat(255&i,", ").concat(t,")")})(x.l.SECONDARY.MAIN,.12)}},children:(0,i.jsx)(d.default,{variant:"body2Medium",sx:{color:t?x.l.WHITE:"inherit",fontWeight:600},children:e.label})},e.id)})})})})})}},31895:(e,t,l)=>{l.d(t,{default:()=>d});var i=l(54568),n=l(91284),a=l(47226),r=l(25960),o=l(64648),s=l(22603);let d=e=>{let{title:t="All stocks:",stocks:l,speed:d=30,ltr:x}=e;return l&&0!==l.length?(0,i.jsxs)(n.default,{sx:{display:"flex",flexDirection:"column",gap:s.BP,width:"100%",overflow:"hidden"},children:[t&&(0,i.jsx)(a.default,{sx:{fontWeight:700,fontSize:"16px",lineHeight:"24px",color:r.l.GREY[900]},children:t}),(0,i.jsx)(n.default,{sx:{position:"relative",overflow:"hidden",
1width:"100%",maskImage:"linear-gradient(to right, transparent, black 5%, black 95%, transparent)",WebkitMaskImage:"linear-gradient(to right, transparent, black 5%, black 95%, transparent)"},children:(0,i.jsx)(n.default,{sx:{display:"flex",alignItems:"center",gap:.75,width:"fit-content",animation:"scroll ".concat(d,"s linear infinite"),"@keyframes scroll":{"0%":{transform:"translateX(0)"},"100%":{transform:"ltr"===x?"translateX(-".concat(100/3,"%)"):"translateX(".concat(100/3,"%)")}},"&:hover":{animationPlayState:"paused"}},children:null==l?void 0:l.map((e,t)=>(0,i.jsxs)(n.default,{sx:{display:"flex",alignItems:"center",gap:.75},children:[(0,i.jsx)(o.default,{stock:e,type:Number(e.percent_change)>=0?"gainer":"loser"}),t<(null==l?void 0:l.length)-1&&(0,i.jsx)(n.default,{sx:{width:"1px",height:19,bgcolor:r.l.GREY[200],flexShrink:0}})]},"".concat(e.symbol,"-").concat(t)))})})]}):null}},38862:(e,t,l)=>{l.r(t),l.d(t,{default:()=>b});var i=l(54568),n=l(91284),a=l(48170),r=l(25960),o=l(7620),s=l(99908),d=l(4968),x=l(48801),c=l(47226),u=l(47801),h=l(86873),f=l(7540),p=l(6491),g=l(32536);let m=e=>{var t;let{story:l,index:a,tag:o}=e,{handleClickAnalytics:s}=(0,u.ls)(),d=(0,u.gX)({ad_type:"article",ad_id:l.slug}),m=(0,x.A)(f.A.breakpoints.down("lg"));return(0,i.jsxs)(n.default,{ref:d,onClick:e=>s(e.nativeEvent,u.sk.CARD_CLICK,null,l.slug,null,null,l.url),component:u.A8,href:l.url,target:m?void 0:"_blank",sx:{position:"relative",minWidth:"100%",height:"100%",textDecoration:"none",color:"inherit",display:"block"},children:[(0,i.jsx)(n.default,{sx:{position:"absolute",inset:0,"& img":{objectFit:"cover",width:"100%",height:"100%"}},children:(0,i.jsx)(g.default,{src:null!=(t=l.image)?t:h.default.src,alt:l.title,fill:!0,priority:0===a,loading:0===a?"eager":"lazy",sizes:"(max-width: ".concat(f.A.breakpoints.values.lg,"px) 100vw, 854px"),quality:85,style:{objectFit:"cover"}})}),(0,i.jsx)(n.default,{sx:{position:"absolute",inset:0,background:"linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85) 100%)"}}),(0,i.jsxs)(n.default,{sx:{position:"absolute",bottom:{xs:40,lg:56},left:{xs:16,lg:26},right:{xs:16,lg:26},display:"flex",flexDirection:"column",gap:.25},children:[0===a&&(0,i.jsx)(c.default,{sx:{fontWeight:600,fontSize:"14px",lineHeight:"24px",color:r.l.WHITE},children:o}),(0,i.jsx)(c.default,{sx:{fontWeight:600,fontSize:{xs:"18px",lg:"25px"},lineHeight:{xs:"22px",lg:"26px"},color:r.l.WHITE,display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},children:l.title}),"author"in l&&(0,i.jsx)(n.default,{sx:{display:"flex",alignItems:"center",gap:.5,flexWrap:"wrap"},children:l.source&&(0,i.jsxs)(n.default,{sx:{display:"flex",alignItems:"center",gap:.25},children:[(0,i.jsx)(c.default,{sx:{fontWeight:500,fontSize:"14px",lineHeight:"22px",color:r.l.WHITE},children:l.source}),l.verified&&(0,i.jsx)(p.M3,{color:r.l.WHITE,size:12})]})})]})]},l.id)},b=e=>{let{stories:t,autoSlide:l=!0,autoSlideInterval:x=5e3,showArrows:c=!0,showDots:u=!0,ltr:h,tag:f}=e,[p,g]=(0,o.useState)(0),[b,j]=(0,o.useState)(!1),[v,w]=(0,o.useState)(null),[y,R]=(0,o.useState)(null),C=(0,o.useRef)(null),E=t.length,S=(0,o.useCallback)(()=>{g(e=>(("ltr"===h?e+1:e-1)+E)%E)},[E,h]),I=(0,o.useCallback)(()=>{g(e=>(("ltr"===h?e-1:e+1)+E)%E)},[E,h]),A=(0,o.useCallback)(e=>{g(e)},[]);return((0,o.useEffect)(()=>(l&&!b&&E>1&&(C.current=setInterval(S,x)),()=>{C.current&&clearInterval(C.current)}),[l,x,S,b,E]),t&&0!==t.length)?(0,i.jsxs)(n.default,{sx:{position:"relative",width:"100%",borderRadius:"12px",overflow:"hidden",bgcolor:r.l.GREY[200],height:{xs:"calc(100vw / ".concat(1.875,")"),md:320,lg:480},maxHeight:480,maxWidth:{lg:900}},onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),onTouchStart:e=>{R(null),w(e.targetTouches[0].clientX)},onTouchMove:e=>{R(e.targetTouches[0].clientX)},onTouchEnd:()=>{if(!v||!y)return;let e=v-y;e>50?S():e<-50&&I()},children:[(0,i.jsx)(n.default,{sx:{display:"flex",transition:"transform 0.5s ease-in-out",transform:"ltr"===h?"translateX(-".concat(100*p,"%)"):"translateX(".concat(100*p,"%)"),height:"100%"},children:t.map((e,t)=>(0,i.jsx)(m,{story:e,index:t,tag:f},e.id))}),c&&E>1&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.default,{onClick:e=>{e.preventDefault(),e.stopPropagation(),I()},sx:{position:"absolute",left:16,top:"50%",transform:"translateY(-50%)",bgcolor:"rgba(255, 255, 255, 0.9)",width:40,height:40,opacity:+!!b,transition:"opacity 0.3s ease",display:{xs:"none",lg:"flex"},"&:hover":{bgcolor:r.l.WHITE}},children:(0,i.jsx)(s.A,{sx:{fontSize:18,color:r.l.GREY[800]}})}),(0,i.jsx)(a.default,{onClick:e=>{e.preventDefault(),e.stopPropagation(),S()},sx:{position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",bgcolor:"rgba(255, 255, 255, 0.9)",width:40,height:40,opacity:+!!b,transition:"opacity 0.3s ease",display:{xs:"none",lg:"flex"},"&:hover":{bgcolor:r.l.WHITE}},children:(0,i.jsx)(d.A,{sx:{fontSize:18,color:r.l.GREY[800]}})})]}),u&&E>1&&(0,i.jsx)(n.default,{sx:{position:"absolute",bottom:{xs:12,lg:16}
1,left:"50%",transform:"translateX(-50%)",display:"flex",gap:.625,zIndex:1},children:t.map((e,t)=>(0,i.jsx)(n.default,{component:"button",onClick:e=>{e.preventDefault(),e.stopPropagation(),A(t)},sx:{width:8,height:8,borderRadius:"99px",border:"none",padding:0,cursor:"pointer",bgcolor:t===p?r.l.PRIMARY[900]:r.l.GREY[300],transition:"background-color 0.3s ease","&:hover":{bgcolor:t===p?r.l.PRIMARY[900]:r.l.GREY[400]}}},t))})]}):null}},44281:(e,t,l)=>{l.r(t),l.d(t,{default:()=>f});var i=l(54568),n=l(32536),a=l(48801),r=l(91284),o=l(47226),s=l(43886),d=l(7620),x=l(1324),c=l(54931),u=l(7540),h=l(27541);let f=e=>{let{vertical:t,ltr:l}=e,{Icon:f,img:p,verticalName:g,title:m,tagText:b,count:j,href:v,padding:w}=t,{handleClickAnalytics:y}=(0,s.ls)(),R=(0,a.A)(u.A.breakpoints.down("lg")),{lng:C}=(0,h.useParams)(),E=(0,d.useCallback)(e=>R?"/".concat(C).concat(e):e,[R,C]);return(0,i.jsxs)(r.default,{component:R?"a":s.A8,href:E(v),onClick:e=>y(e.nativeEvent,s.sk.CARD_CLICK,null,null,null,null,v),target:R?void 0:"_blank",sx:{minWidth:"175px",display:"flex",flexDirection:"column",gap:.75,bgcolor:s.lm.PRIMARY[900],borderRadius:"12px",p:2,textDecoration:"none",color:"inherit",cursor:"pointer",transition:"transform 0.2s ease, box-shadow 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:"0 4px 12px rgba(0, 66, 109, 0.3)"}},children:[(0,i.jsxs)(r.default,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[(0,i.jsxs)(r.default,{sx:{display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"rgba(255, 255, 255, 0.1)",borderRadius:"999px",p:+!!w,width:56,height:56},children:[f&&(0,i.jsx)(r.default,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24,color:s.lm.WHITE,"& svg":{width:24,height:24}},children:(0,i.jsx)(f,{})}),p&&(0,i.jsx)(n.default,{src:p,alt:g,width:50,height:50})]}),b&&(0,i.jsx)(r.default,{sx:{bgcolor:s.lm.SECONDARY.MAIN,borderRadius:"4px",px:.75,py:.375,display:"flex",alignItems:"center",justifyContent:"center"},children:(0,i.jsx)(o.default,{sx:{fontWeight:500,fontSize:"14px",lineHeight:"19px",color:s.lm.WHITE},children:b})})]}),(0,i.jsx)(o.default,{sx:{fontWeight:800,fontSize:"16px",lineHeight:"normal",color:s.lm.WHITE},children:g}),(0,i.jsx)(o.default,{sx:{fontWeight:500,fontSize:"12px",lineHeight:"24px",color:s.lm.WHITE},children:m}),(0,i.jsx)(r.default,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:(0,i.jsx)(r.default,{sx:{display:"flex",alignItems:"center",justifyContent:"center",width:24,height:24},children:"ltr"===l?(0,i.jsx)(x.default,{sx:{fontSize:24,color:s.lm.WHITE}}):(0,i.jsx)(c.A,{sx:{fontSize:24,color:s.lm.WHITE}})})})]})}},46326:(e,t,l)=>{l.d(t,{default:()=>u});var i=l(54568),n=l(7620),a=l(27541),r=l(91284),o=l(35706),s=l(59528),d=l(47226),x=l(25960);let c=e=>e?e.endsWith("/")&&e.length>1?e.slice(0,-1):e:"",u=e=>{let{items:t,activeId:l,onChange:u}=e,h=(0,a.useRouter)(),f=(0,a.usePathname)(),p=(0,n.useMemo)(()=>{let e=c(f);return t.find(t=>{let l=c(t.href);return l===e||e.startsWith(l)&&(e.length===l.length||"/"===e.charAt(l.length))})},[t,f]),g=null!=l?l:null==p?void 0:p.id,m=(0,n.useRef)(null),b=(0,n.useRef)(null),j=(0,n.useCallback)(()=>{let e=m.current,t=b.current;if(!e||!t)return null;let l=e.scrollWidth-e.clientWidth;if(l<=0)return null;let i=e.getBoundingClientRect(),n=t.getBoundingClientRect(),a=n.left-i.left-(e.clientWidth-n.width)/2,r="rtl"===getComputedStyle(e).direction;return Math.min(Math.max(e.scrollLeft+a,r?-l:0),r?0:l)},[]);return(0,n.useEffect)(()=>{var e,t;let l=m.current;if(!l)return;let i=j();if(null===i)return;let n=i-l.scrollLeft;if(1>Math.abs(n))return;if(null==(e=(t=window).matchMedia)?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches)return void l.scrollTo({left:i,behavior:"auto"});let a=l.scrollWidth-l.clientWidth,r="rtl"===getComputedStyle(l).direction,o=Math.min(Math.max(i+40*Math.sign(n),r?-a:0),r?0:a),s=[];return s.push(setTimeout(()=>{l.scrollTo({left:o,behavior:"smooth"}),s.push(setTimeout(()=>l.scrollTo({left:i,behavior:"smooth"}),420))},250)),()=>s.forEach(clearTimeout)},[j,g,t.length]),(0,i.jsx)(r.default,{children:(0,i.jsx)(o.default,{sx:{maxWidth:"1200px !important",px:{xs:2,xl:0}},children:(0,i.jsx)(r.default,{sx:{display:"flex",justifyContent:"center"}
1,children:(0,i.jsx)(r.default,{ref:m,sx:{display:"flex",alignItems:"center",borderBottom:"1px solid ".concat(x.l.GREY[200]),width:"calc(180px * ".concat(t.length,")"),maxWidth:"100%",overflowX:"auto",scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}},children:t.map(e=>{let t=e.id===g;return(0,i.jsx)(s.A,{ref:t?b:void 0,disableRipple:!0,onClick:()=>(e=>{u&&u(e),e.href&&h.push(e.href)})(e),sx:{height:44,flex:"0 0 180px",maxWidth:180,px:4,borderRadius:0,borderBottom:t?"2px solid ".concat(x.l.SECONDARY.MAIN):"2px solid transparent",bgcolor:t?x.l.WHITE:"transparent",transition:"color 0.2s ease",color:t?x.l.SECONDARY.MAIN:x.l.GREY[900],whiteSpace:"nowrap",fontWeight:600,"&:hover":{color:x.l.SECONDARY.MAIN}},children:(0,i.jsx)(d.default,{variant:"body2Medium",sx:{fontWeight:600},children:e.label})},e.id)})})})})})}},46415:(e,t,l)=>{l.r(t),l.d(t,{default:()=>c});var i=l(54568),n=l(91284),a=l(47226),r=l(78302),o=l(92622),s=l(25960),d=l(7620),x=l(24802);let c=e=>{let{fontSize:t="16px",labels:l}=e,[c,u]=(0,d.useState)(""),[h,f]=(0,d.useState)(!1),[p,g]=(0,d.useState)(!1),[m,b]=(0,d.useState)(""),{mutateAsync:j}=(0,x.BN)(),v=async e=>{if(e.preventDefault(),b(""),g(!1),!c||!c.includes("@"))return void b(l.invalid_email);f(!0);try{let e=await j({email:c});e.success?g(!0):b(e.message||l.error),u("")}catch(e){b(l.error)}finally{f(!1)}};return(0,i.jsxs)(n.default,{sx:{border:"1px solid ".concat(s.l.GREY[300]),borderRadius:"6px",p:3,display:"flex",flexDirection:"column",gap:1.5,justifyContent:"center",width:"100%",height:"100%"},children:[(0,i.jsx)(a.default,{variant:"bodySemiBold",sx:{color:s.l.GREY[900],textAlign:"center",fontSize:t},children:l.title}),p?(0,i.jsx)(n.default,{sx:{bgcolor:"#D1FAE5",p:1.5,borderRadius:"6px",textAlign:"center"},children:(0,i.jsxs)(a.default,{sx:{fontSize:"14px",fontWeight:600,color:"#065F46"},children:["✓ ",l.success]})}):(0,i.jsxs)(n.default,{component:"form",onSubmit:v,sx:{display:"flex",flexDirection:"column",gap:1.5},children:[(0,i.jsx)(r.default,{fullWidth:!0,placeholder:l.placeholder,type:"email",value:c,onChange:e=>u(e.target.value),disabled:h,error:!!m,helperText:m,sx:{"& .MuiOutlinedInput-root":{borderRadius:"6px",bgcolor:s.l.WHITE,height:"44px",fontSize:"14px"}}}),(0,i.jsx)(o.default,{fullWidth:!0,variant:"contained",type:"submit",disabled:h,sx:{bgcolor:s.l.SECONDARY.MAIN,color:s.l.WHITE,borderRadius:"6px",textTransform:"none",fontWeight:600,fontSize:"16px",height:"44px","&:hover":{bgcolor:s.l.SECONDARY[600]},"&:disabled":{bgcolor:s.l.SECONDARY[700]}},children:h?l.subscribing:l.subscribe})]})]})}},47801:(e,t,l)=>{l.d(t,{A8:()=>n.CustomLink,gX:()=>a.gX,ls:()=>a.ls,sk:()=>i.sk});var i=l(64734),n=l(17636),a=l(67491)},61307:(e,t,l)=>{l.d(t,{default:()=>d});var i=l(54568),n=l(15754),a=l(91284),r=l(47226),o=l(54912),s=l(25960);let d=e=>{let{title:t="Disclaimer:",description:l,icon:d,backgroundColor:x="#FFF8EC",borderColor:c="#FEF0C7"}=e;return(0,i.jsxs)(n.default,{direction:"row",spacing:1.5,alignItems:"center",sx:{width:"100%",bgcolor:x,border:"1px solid ".concat(c),borderRadius:"6px",p:1.5},children:[(0,i.jsx)(a.default,{sx:{width:48,height:48,borderRadius:"9999px",bgcolor:"#FEF0C7",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:null!=d?d:(0,i.jsx)(o.A,{sx:{color:s.l.SECONDARY.MAIN,fontSize:24}})}),(0,i.jsxs)(r.default,{component:"p",sx:{fontFamily:"Public Sans, sans-serif",fontSize:14,fontWeight:500,lineHeight:"22px",color:s.l.GREY[700],wordBreak:"break-word"},children:[(0,i.jsx)(a.default,{component:"span",sx:{fontWeight:700},children:t})," ",l]})]})}},61488:(e,t,l)=>{l.d(t,{default:()=>o});var i=l(54568),n=l(91284),a=l(47226),r=l(25960);let o=e=>{let{date:t,variant:l="blue",position:o="bottom-right"}=e;return(0,i.jsx)(n.default,{sx:{position:"absolute",...{"top-left":{top:8,left:8},"top-right":{top:8,right:8},"bottom-left":{bottom:8,left:8},"bottom-right":{bottom:-.31,right:0}}[o],bgcolor:"blue"===l?r.l.PRIMARY.LIGHT_MEDIUM:r.l.WHITE,px:1,py:.5,borderRadius:"bottom-right"===o?"2px 2px 0 2px":"4px",display:"flex",alignItems:"center",gap:.5},children:(0,i.jsx)(a.default,{variant:"subtitle1Medium",sx:{color:"blue"===l?r.l.WHITE:r.l.GREY[900]},children:t})})}},64648:(e,t,l)=>{l.d(t,{default:()=>x});var i=l(54568),n=l(7620),a=l(91284),r=l(47226),o=l(25960),s=l(32536);let d={src:"https://cdn-content.qatarliving.com/site-assets/_next/static/media/stock-placeholder.7cc93c59.webp"},x=e=>{let{stock:t,type:l}
1=e,x="gainer"===l,[c,u]=(0,n.useState)(!1),h=!t.logo_url||c?d.src:t.logo_url;return(0,i.jsxs)(a.default,{sx:{display:"flex",alignItems:"center",gap:.25,py:.5},children:[(0,i.jsx)(a.default,{sx:{width:33,height:25,borderRadius:"2px",border:"1px solid ".concat(o.l.GREY[200]),overflow:"hidden",position:"relative",flexShrink:0,bgcolor:o.l.WHITE},children:(0,i.jsx)(s.default,{src:h,alt:t.symbol,fill:!0,style:{objectFit:"contain"},sizes:"33px",onError:()=>u(!0)})}),(0,i.jsx)(r.default,{sx:{fontWeight:500,fontSize:{xs:"12px",lg:"11px"},lineHeight:"16px",color:o.l.GREY[900]},children:t.symbol}),(0,i.jsx)(r.default,{sx:{fontWeight:500,fontSize:"10px",lineHeight:"14px",color:o.l.GREY[900]},children:Number(t.price).toFixed(3)}),(0,i.jsxs)(r.default,{sx:{fontWeight:400,fontSize:{xs:"12px",lg:"11px"},lineHeight:"16px",color:x?"#079455":"#F04438"},children:[x?"+":"",Number(t.percent_change).toFixed(2),"%"]})]})}},70819:(e,t,l)=>{l.d(t,{default:()=>f});var i=l(54568),n=l(48801),a=l(91284),r=l(47226),o=l(25960),s=l(45880),d=l(80148),x=l(72671),c=l(32536),u=l(47801),h=l(7540);let f=e=>{let{date:t,category:l,title:f,location:p,image:g,href:m,onClick:b,slug:j,lng:v}=e,{day:w,month:y}=((e,t)=>{let l="string"==typeof e?new Date(e):e,i=t.startsWith("ar")?"ar-QA":"en-US";return{day:(0,s.EU)(new Intl.DateTimeFormat(i,{day:"2-digit"}).format(l)),month:(0,s.EU)(new Intl.DateTimeFormat(i,{month:"short"}).format(l)).toUpperCase()}})(t,v),{handleClickAnalytics:R}=(0,u.ls)(),C=(0,u.gX)({ad_type:"event",ad_id:null!=j?j:f}),E=(0,n.A)(h.A.breakpoints.down("lg"));return(0,i.jsxs)(a.default,{ref:C,component:u.A8,href:m,onClick:e=>{null==b||b(),R(e.nativeEvent,u.sk.CARD_CLICK,null,null!=j?j:f,null,null,m)},target:E?void 0:"_blank",sx:{minWidth:"340px",maxWidth:"340px",height:"100%",display:"flex",flexDirection:"column",borderRadius:"6px",overflow:"hidden",boxShadow:"0px 2px 8px 0px rgba(0, 0, 0, 0.05)",bgcolor:o.l.WHITE,transition:"transform 0.2s ease, box-shadow 0.2s ease",textDecoration:"none",color:"inherit"},children:[(0,i.jsxs)(a.default,{sx:{position:"relative",width:"100%",aspectRatio:"340 / 214",overflow:"hidden"},children:[(0,i.jsx)(c.default,{src:g||x.A.src,alt:f,fill:!0,style:{objectFit:"fill"},sizes:"340px"}),(0,i.jsxs)(a.default,{sx:{position:"absolute",top:8,right:8,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",bgcolor:o.l.WHITE,borderRadius:"6px",px:2,py:1,minWidth:54,gap:.5},children:[(0,i.jsx)(r.default,{sx:{fontWeight:500,fontSize:"24px",lineHeight:"18px",color:o.l.SECONDARY.MAIN},children:w}),(0,i.jsx)(r.default,{sx:{fontWeight:500,fontSize:"12px",lineHeight:"18px",color:o.l.SECONDARY.MAIN},children:y})]})]}),(0,i.jsxs)(a.default,{sx:{display:"flex",flexDirection:"column",gap:1,p:2,bgcolor:o.l.WHITE,flexGrow:1},children:[(0,i.jsx)(r.default,{sx:{fontWeight:500,fontSize:"11px",lineHeight:"12px",color:o.l.GREY[700]},children:l}),(0,i.jsxs)(a.default,{sx:{display:"flex",flexDirection:"column",gap:.75,justifyContent:"space-between",flexGrow:1},children:[(0,i.jsx)(r.default,{sx:{fontWeight:600,fontSize:"18px",lineHeight:"26px",color:o.l.GREY[900],display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis"},children:f}),(0,i.jsxs)(a.default,{sx:{display:"flex",alignItems:"center",gap:.25},children:[(0,i.jsx)(d.A,{sx:{fontSize:14,color:o.l.GREY[700]}}),(0,i.jsx)(r.default,{sx:{fontWeight:600,fontSize:"12px",lineHeight:"20px",color:o.l.GREY[700]},children:p})]})]})]})]})}},72229:(e,t,l)=>{l.d(t,{default:()=>f});var i=l(54568),n=l(91284),a=l(47226),r=l(25960),o=l(92539),s=l(71670),d=l(64648),x=l(22603);let c="#079455",u="#F04438",h=e=>{let{title:t,stocks:l,type:h}=e,f="gainer"===h,p=f?c:u;return(0,i.jsxs)(n.default,{sx:{display:"flex",flexDirection:"column",gap:x.BP,flex:1,minWidth:0},children:[(0,i.jsxs)(n.default,{sx:{display:"flex",alignItems:"center",gap:.5},children:[f?(0,i.jsx)(o.default,{sx:{fontSize:20,color:c}}):(0,i.jsx)(s.default,{sx:{fontSize:20,color:u}}),(0,i.jsx)(a.default,{sx:{fontWeight:600,fontSize:{xs:"16px",lg:"15px"},lineHeight:"24px",color:p},children:t})]}),(0,i.jsx)(n.default,{sx:{display:"flex",flexDirection:"column",gap:x.rF},children:null==l?void 0:l.map((e,t)=>(0,i.jsxs)(n.default,{children:[(0,i.jsx)(d.default,{stock:e,type:h}),t<(null==l?void 0:l.length)-1&&(0,i.jsx)(n.default,{sx:{height:"0.5px",bgcolor:r.l.GREY[300],mt:.25}})]},"".concat(e.symbol,"-").concat(t)))})]})},f=e=>{let{labels:t,topGainers:l,topLosers:a}=e;return l.length||a.length?(0,i.jsxs)(n.default,{sx:{display:"flex",gap:x.oU,width:"100%"},children:[(0,i.jsx)(h,{title:t.topGainers,stocks:l,type:"gainer"}),(0,i.jsx)(n.default,{sx:{width:"0.5px",bgcolor:r.l.GREY[400],alignSelf:"stretch"}}),(0,i.jsx)(h,{title:t.topLosers,stocks:a,type:"loser"})]}):null}},77526:(e,t,l)=>{l.d(t,{buildMainEventDefaultActions:()=>p,default:()=>g});var i=l(54568);l(7620);var n=l(48801),a=l(47226),r=l(91284),o=l(49809),s=l(80148),d=l(72671),x=l(6491),c=l(45880),u=l(32536),h=l(7540);let f={width:32,height:32,display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:"999px"},p=(e,t)=>{let l={...f,backgroundColor:o.lm.SECONDARY.MAIN};return[{node:(0,i.jsx)(r.default,{component:"span",sx:l,onClick:l=>(0,c.cI)(l,e,t),children:(0,i.jsx)(x.zK,{width:18,height:18,strokeColor:o.lm.WHITE})})}]},g=e=>{let{href:t,title:l,image:x,imageAlt:c=l,locationLabel:f,maxWidth:g=800,imagePriority:m=!1,titlePlacement:b="outside",showLocation:j=!0,slug:v,trackImpression:w=!1,ltr:y,headingLevel:R="h1"}=e,C=p(t,l)||[],E=C.length>0,S=!!f,I=(0,n.A)(h.A.breakpoints.down("lg")),{handleClickAnalytics:A}=(0,o.ls)(),k=(0,o.gX)({ad_type:"event",ad_id:v}),W=()=>(0,i.jsx)(a.default,{variant:"h2Semibold",textAlign:"ltr"===y?"left":"right",component:R,sx:{color:o.lm.GREY[900],lineHeight:"26px"},children:l}),D=E?(0,i.jsx)(r.default,{sx:{display:"flex",alignItems:"center",gap:.75},children:C.map((e,t)=>{let{node:l}=e;return(0,i.jsx)(r.default,{sx:{display:"flex",alignItems:"center"},children:l},t)})}):null,Y={component:o.A8,href:t,target:I?void 0:"_blank",rel:I?void 0:"noopener noreferrer"};return(0,i.jsxs)(r.default,{ref:w?k:void 0,sx:{display:"flex",flexDirection:"column",gap:1,maxWidth:g,width:"100%"},children:["outside"===b&&(0,i.jsx)(r.default,{...Y,onClick:e=>A(e.nativeEvent,o.sk.CARD_CLICK,null,v,null,null,t),sx:{textDecoration:"none",color:"inherit"},children:W()}),(0,i.jsxs)(r.default,{sx:{borderRadius:"12px",overflow:"hidden",bgcolor:o.lm.WHITE,border:"1px solid ".concat(o.lm.GREY[200])},children:[(0,i.jsxs)(r.default,{...Y,onClick:e=>A(e.nativeEvent,o.sk.CARD_CLICK,null,v,null,null,t),sx:{textDecoration:"none",color:"inherit",display:"block"},children:["inside"===b&&(0,i.jsx)(r.default,{sx:{px:{xs:1.5,md:2},pt:{xs:1.5,md:2},pb:.75},children:W()}),(0,i.jsx)(r.default,{sx:{position:"relative",width:"100%",aspectRatio:"".concat(1600," / ").concat(900),overflow:"hidden"},children:(0,i.jsx)(u.default,{src:null!=x?x:d.A.src,alt:c,width:1600,height:900,priority:m,loading:"eager",quality:80,style:{objectFit:"cover",width:"100%",height:"100%",display:"block"}
1,sizes:"(max-width: 1200px) 100vw, 800px"})})]}),(S||D)&&(0,i.jsxs)(r.default,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2,flexWrap:"wrap",px:{xs:1.5,md:2},py:1.5},children:[S&&j?(0,i.jsx)(r.default,{...Y,onClick:e=>A(e.nativeEvent,o.sk.CARD_CLICK,null,v,null,null,t),sx:{flexGrow:1,display:"flex",flexDirection:"column",gap:.75,textDecoration:"none",color:"inherit"},children:f?(0,i.jsxs)(r.default,{sx:{display:"flex",alignItems:"center",gap:.75},children:[(0,i.jsx)(s.A,{sx:{fontSize:16,color:o.lm.PRIMARY[900]}}),(0,i.jsx)(a.default,{variant:"caption1Medium",sx:{color:o.lm.PRIMARY[900]},children:f})]}):null}):(0,i.jsx)(r.default,{sx:{flexGrow:1}}),D]})]})]})}},81694:(e,t,l)=>{l.d(t,{default:()=>c});var i=l(54568),n=l(48801),a=l(15754),r=l(65310),o=l(91284),s=l(47394),d=l(25960),x=l(7540);let c=e=>{let{itemsCount:t=3,isMobileStackView:l=!1}=e,c=(0,n.A)(x.A.breakpoints.down("lg"));return l&&c?(0,i.jsx)(a.default,{spacing:2.5,children:Array.from({length:t}).map((e,t)=>(0,i.jsxs)(a.default,{direction:"row",spacing:1.5,sx:{width:"100%"},children:[(0,i.jsx)(r.default,{variant:"rectangular",width:177.5,height:100,sx:{borderRadius:"6px",flexShrink:0}}),(0,i.jsxs)(a.default,{spacing:.75,sx:{flex:1,minWidth:0},children:[(0,i.jsx)(r.default,{variant:"text",width:90,height:20}),(0,i.jsx)(r.default,{variant:"text",height:24}),(0,i.jsx)(r.default,{variant:"text",width:"80%",height:24})]})]},t))}):(0,i.jsx)(o.default,{sx:{display:"flex",gap:0,overflowX:{xs:"auto",lg:"visible"},"&::-webkit-scrollbar":{height:6},"&::-webkit-scrollbar-thumb":{backgroundColor:"#D9D9D9",borderRadius:3}},children:Array.from({length:t}).map((e,l)=>(0,i.jsxs)(o.default,{sx:{display:"flex",alignItems:"stretch",width:"100%"},children:[(0,i.jsxs)(a.default,{direction:"row",spacing:1.5,sx:{pr:l<t-1?{xs:1.5,lg:2}:0},children:[(0,i.jsx)(r.default,{variant:"rectangular",width:177.5,height:100,sx:{borderRadius:"6px",flexShrink:0}}),(0,i.jsxs)(a.default,{spacing:.75,sx:{flex:1,minWidth:0},children:[(0,i.jsx)(r.default,{variant:"text",width:90,height:20}),(0,i.jsx)(r.default,{variant:"text",height:24}),(0,i.jsx)(r.default,{variant:"text",width:"80%",height:24})]})]}),l<t-1&&(0,i.jsx)(s.A,{orientation:"vertical",flexItem:!0,sx:{mx:{xs:1.5,lg:2},bgcolor:d.l.GREY[200],width:"1px"}})]},l))})}},85569:(e,t,l)=>{l.r(t),l.d(t,{buildDefaultPostActions:()=>B,default:()=>q});var i=l(54568),n=l(7620),a=l(71774),r=l(51622),o=l(91284),s=l(31352),d=l(48170),x=l(47226),c=l(56860),u=l(49420),h=l(86782),f=l(17636),p=l(52504),g=l(94816),m=l(45880),b=l(32536),j=l(55953),v=l(82828),w=l(42558),y=l(25403),R=l(685),C=l(68948),E=l(86873),S=l(30877),I=l(65455),A=l(53716),k=l(32353),W=l(29769),D=l(94112),Y=l(27541),z=l(14959),M=l(25960),H=l(72693),T=l(96394),N=l(81876),G=l(59165),F=l(50776),P=l(99568),L=l(21588);let _={BusinessCenter:(0,i.jsx)(H.A,{sx:{fontSize:24}}),SportsBasketball:(0,i.jsx)(T.A,{sx:{fontSize:24}}),FavoriteBorder:(0,i.jsx)(N.A,{sx:{fontSize:24}}),Restaurant:(0,i.jsx)(G.A,{sx:{fontSize:24}}),FlightTakeoff:(0,i.jsx)(F.A,{sx:{fontSize:24}}),Theaters:(0,i.jsx)(P.A,{sx:{fontSize:24}}),ArrowForward:(0,i.jsx)(L.A,{sx:{fontSize:24}}),Warning:(0,i.jsx)(e=>(0,i.jsxs)("svg",{width:13,height:12,viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsx)("path",{d:"M12.0197 9.25811L7.353 1.09144C7.25124 0.911892 7.10368 0.762549 6.92537 0.658646C6.74706 0.554744 6.54437 0.5 6.338 0.5C6.13162 0.5 5.92894 0.554744 5.75063 0.658646C5.57231 0.762549 5.42475 0.911892 5.323 1.09144L0.656331 9.25811C0.553479 9.43623 0.499547 9.63838 0.500003 9.84407C0.500458 10.0498 0.555285 10.2517 0.658925 10.4293C0.762565 10.607 0.911334 10.7541 1.09015 10.8558C1.26897 10.9574 1.47149 11.01 1.67716 11.0081H11.0105C11.2152 11.0079 11.4162 10.9538 11.5934 10.8514C11.7706 10.7489 11.9177 10.6016 12.02 10.4243C12.1222 10.2469 12.176 10.0458 12.176 9.84114C12.1759 9.63645 12.122 9.43538 12.0197 9.25811Z",fill:"white",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsxs)("g",{transform:"translate(6.3, 5)",children:[(0,i.jsx)("path",{d:"M0 0V2.3",stroke:"#FF7F38",strokeWidth:"0.8",strokeLinecap:"round"}),(0,i.jsx)("path",{d:"M0 3.4H0.01",stroke:"#FF7F38",strokeWidth:"1",strokeLinecap:"round"})]})]}),{})},O=e=>{let{text:t,iconName:l,iconPosition:n="left",backgroundColor:a=M.l.WHITE,textColor:r=M.l.GREY[900],borderColor:s="#E3E3E3",onClick:d}=e,c=l?_[l]:null;return(0,i.jsxs)(o.default,{component:"button",onClick:d,sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:1,px:3,py:.75,bgcolor:a,border:"1px solid ".concat(s),borderRadius:"999px",cursor:"pointer",transition:"all 0.2s","&:hover":{bgcolor:a===M.l.WHITE?M.l.GREY[100]:void 0,transform:"translateY(-1px)"}},children:[c&&"left"===n&&(0,i.jsx)(o.default,{sx:{display:"flex",alignItems:"center",color:r},children:c}),(0,i.jsx)(x.default,{sx:{fontSize:"14px",fontWeight:600,lineHeight:"24px",color:r},children:t}),c&&"right"===n&&(0,i.jsx)(o.default,{sx:{display:"flex",alignItems:"center",color:r},children:c})]})};var X=l(39019);let B=function(){let{likeCount:e,dislikeCount:t,shareCount:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[{icon:(0,i.jsx)(w.A,{sx:{fontSize:16}}
1),count:e,ariaLabel:"Like post"},{icon:(0,i.jsx)(R.A,{sx:{fontSize:16}}),count:t,ariaLabel:"Dislike post"},{icon:(0,i.jsx)(X.A,{strokeColor:h.l.PRIMARY.MAIN}),count:l,ariaLabel:"Share post"}]},U={display:"inline-flex",alignItems:"center",gap:.5,px:1.25,py:.5,borderRadius:"999px",border:"1px solid ".concat(h.l.GREY[100]),bgcolor:h.l.GREY[50],color:h.l.PRIMARY[900],fontFamily:"Public Sans, sans-serif",fontSize:12,fontWeight:400,lineHeight:"20px"},K={...U,bgcolor:h.l.WHITE,border:"1px solid ".concat(h.l.GREY[200])},q=e=>{let{ltr:t,lng:l,postId:M,href:H,title:T,chipLabel:N,image:G,imageAlt:F=T,description:P,author:L,authorAvatar:_,timestamp:X,commentCount:q,likeCount:V,dislikeCount:Z,shareCount:Q,maxWidth:J=800,openInNewTab:$=!1,imagePriority:ee=!1,expanded:et=!1,reportLabel:el}=e,ei=(0,a.default)(),en=!!P,ea=(0,A.r)(),{t:er}=(0,g.useTranslation)("community"),eo=(0,Y.usePathname)(),es=(0,Y.useSearchParams)(),{mutate:ed,isPending:ex}=(0,W.default)(),ec=(0,n.useRef)(null),[eu,eh]=(0,n.useState)(null),{mutate:ef}=(0,z.default)(),ep=(0,n.useCallback)(()=>{let e=es.toString(),t="".concat(null!=eo?eo:"").concat(e?"?".concat(e):""),l="".concat(p.$W.ql_login_url).concat(t);window.location.href=l},[eo,es]),eg=(0,n.useCallback)(e=>{if(!ea){var t;null==(t=ec.current)||t.open();return}ex||ed({communityId:M,value:e},{onSuccess:()=>{eh(t=>t===e?null:e)}})},[ex,M,ea,ed]),[em,eb]=(0,n.useState)(null),ej=()=>eb(null),[ev,ew]=(0,n.useState)(!1),ey=()=>{if(ej(),!ea){var e;null==(e=ec.current)||e.open();return}ew(!0)},eR=async e=>{ef({communityId:M,payload:{reason:e}}),ew(!1)},eC={component:f.CustomLink,href:H,target:$?"_blank":void 0,rel:$?"noopener noreferrer":void 0},eE=(0,n.useMemo)(()=>{var e;return null!=(e=B({likeCount:V,dislikeCount:Z,shareCount:Q}))?e:[]},[V,Z,Q]);return(0,i.jsxs)(o.default,{sx:{maxWidth:J,width:"100%"},children:[(0,i.jsxs)(o.default,{sx:{bgcolor:h.l.WHITE,borderRadius:"12px",border:"1px solid ".concat(h.l.GREY[200]),p:3,display:"flex",flexDirection:"column",gap:3,boxShadow:"0px 12px 32px rgba(29, 41, 57, 0.04)"},children:[(0,i.jsxs)(o.default,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:2},children:[N?(0,i.jsx)(s.A,{label:N,size:"small",sx:{bgcolor:h.l.WHITE,color:h.l.SECONDARY.MAIN,border:"1px solid ".concat(h.l.SECONDARY.MAIN),borderRadius:"999px",fontFamily:"Public Sans, sans-serif",fontSize:12,fontWeight:600,lineHeight:"20px",px:1,py:.25,height:"auto"}}):(0,i.jsx)(o.default,{sx:{height:24}}),!et&&(0,i.jsx)(d.default,{"aria-label":"Post options",onClick:e=>{e.preventDefault(),e.stopPropagation(),eb(e.currentTarget)},sx:{width:32,height:32,borderRadius:"50%",border:"1px solid ".concat(h.l.GREY[200]),bgcolor:h.l.WHITE,color:h.l.GREY[900],"&:hover":{bgcolor:h.l.GREY[50]}},children:(0,i.jsx)(j.A,{sx:{fontSize:20}})})]}),(0,i.jsxs)(o.default,{...H?eC:{},sx:{display:"flex",flexDirection:"column",gap:2,textDecoration:"none",color:"inherit"},children:[(0,i.jsx)(x.default,{variant:"h2Semibold",component:"h2",textAlign:"ltr"===t?"left":"right",sx:{fontFamily:"Public Sans, sans-serif",fontSize:25,fontWeight:600,lineHeight:"26px",color:h.l.GREY[900]},children:T}),!!G&&(0,i.jsx)(o.default,{sx:{width:"100%",borderRadius:"12px",overflow:"hidden",aspectRatio:"".concat(1600," / ").concat(900)},children:(0,i.jsx)(b.default,{src:null!=G?G:E.default.src,alt:F,width:1600,height:900,priority:ee,loading:"eager",quality:85,style:{objectFit:"cover",width:"100%",height:"100%",display:"block"},sizes:"(max-width: ".concat(ei.breakpoints.values.md,"px) 100vw, ").concat(J,"px")})}),en&&!et&&(0,i.jsx)(I.default,{content:P,sx:{fontFamily:"Public Sans, sans-serif",fontSize:14,fontWeight:400,lineHeight:"22px",color:h.l.GREY[700],display:et?"block":"-webkit-box",WebkitLineClamp:et?void 0:3,WebkitBoxOrient:et?void 0:"vertical",overflow:et?void 0:"hidden"}})]}),(0,i.jsxs)(o.default,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:{xs:"flex-start",md:"center"},justifyContent:"space-between",gap:{xs:2,md:3}},children:[(0,i.jsxs)(o.default,{...eC,sx:{display:"inline-flex",alignItems:"center",gap:1,textDecoration:"none",color:"inherit",minHeight:24},children:[(()=>{var e,t;return(0,i.jsx)(r.A,{src:null!=_?_:void 0,alt:null!=L?L:"Community member",sx:{width:24,height:24,fontSize:12,fontWeight:600,bgcolor:_?h.l.WHITE:h.l.GREY[200],color:_?h.l.GREY[900]:h.l.PRIMARY[900],border:"1.5px solid ".concat(h.l.WHITE),boxSh
1adow:"0px 0px 0px 1px rgba(0, 0, 0, 0.04)"},children:!_&&(null!=(t=null==L||null==(e=L.charAt(0))?void 0:e.toUpperCase())?t:"C")})})(),(0,i.jsx)(x.default,{component:"span",sx:{fontFamily:"Public Sans, sans-serif",fontSize:14,fontWeight:500,lineHeight:"22px",color:h.l.GREY[900]},children:null!=L?L:"Community Member"}),X&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(x.default,{component:"span",sx:{fontFamily:"Public Sans, sans-serif",fontSize:13,fontWeight:500,lineHeight:"22px",color:h.l.GREY[900]},children:"•"}),(0,i.jsx)(x.default,{component:"span",sx:{fontFamily:"Public Sans, sans-serif",fontSize:12,fontWeight:500,lineHeight:"18px",color:h.l.GREY[900]},children:((e,t)=>{let l=new Date(e.replace(" - "," ")),i=t.startsWith("ar")?"ar-QA":"en-US",n=Intl.DateTimeFormat(i,{day:"numeric",month:"long",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!1}).format(l);return(0,m.EU)(n)})(X,null!=l?l:"en-US")})]})]}),(0,i.jsxs)(o.default,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-end",width:{xs:"100%",md:"auto"},flexWrap:"wrap",gap:1},onClick:e=>{e.preventDefault(),e.stopPropagation()},children:[eE.map((e,t)=>{let{icon:l,count:n,ariaLabel:a,onClick:r}=e,s=(null!=a?a:"").toLowerCase(),d=s.includes("dislike"),x=!d&&s.includes("like"),c=s.includes("share"),u=r;!u&&(d?u=()=>eg(D.m.DISLIKE):x?u=()=>eg(D.m.LIKE):c&&(u=e=>(0,m.cI)(e,H,T)));let f=x&&eu===D.m.LIKE||d&&eu===D.m.DISLIKE,p=l;return x?p=f?(0,i.jsx)(v.A,{sx:{fontSize:16}}):(0,i.jsx)(w.A,{sx:{fontSize:16}}):d&&(p=f?(0,i.jsx)(y.A,{sx:{fontSize:16}}):(0,i.jsx)(R.A,{sx:{fontSize:16}})),(0,i.jsxs)(o.default,{component:u?"button":"div",type:u?"button":void 0,"aria-label":a,onClick:u?e=>{e.preventDefault(),e.stopPropagation(),null==u||u(e)}:void 0,sx:{...U,cursor:u?"pointer":"default",bgcolor:f?h.l.PRIMARY[50]:U.bgcolor,border:f?"1px solid ".concat(h.l.PRIMARY[200]):U.border,color:f?h.l.PRIMARY[900]:U.color},children:[p,void 0!==n&&(0,i.jsx)(o.default,{component:"span",sx:{fontFamily:"Public Sans, sans-serif",fontSize:12,fontWeight:400,lineHeight:"20px"},children:n})]},"post-card-action-".concat(t))}),void 0!==q&&(0,i.jsxs)(o.default,{component:"div",sx:K,children:[(0,i.jsx)(C.A,{sx:{fontSize:16}}),(0,i.jsx)(o.default,{component:"span",sx:{fontFamily:"Public Sans, sans-serif",fontSize:12,fontWeight:400,lineHeight:"20px"},children:q})]})]})]}),et&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.default,{sx:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end"},children:(0,i.jsx)(O,{text:null!=el?el:er("report"),iconPosition:"left",iconName:"Warning",backgroundColor:h.l.SECONDARY.MAIN,textColor:h.l.WHITE,borderColor:h.l.SECONDARY.MAIN,onClick:ey})}),(0,i.jsx)(o.default,{...H?eC:{},sx:{display:"flex",flexDirection:"column",gap:2,textDecoration:"none",color:"inherit"},children:en&&(0,i.jsx)(I.default,{content:P,sx:{fontFamily:"Public Sans, sans-serif",fontSize:14,fontWeight:400,lineHeight:"22px",color:h.l.GREY[700],display:et?"block":"-webkit-box",WebkitLineClamp:et?void 0:3,WebkitBoxOrient:et?void 0:"vertical",overflow:et?void 0:"hidden"}})})]})]}),(0,i.jsx)(c.A,{anchorEl:em,open:!!em,onClose:ej,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{sx:{borderRadius:"12px",border:"1px solid ".concat(h.l.GREY[100]),boxShadow:"0px 12px 32px rgba(29, 41, 57, 0.12)",minWidth:160,py:.5}},children:(0,i.jsx)(u.A,{onClick:ey,sx:{fontFamily:"Public Sans, sans-serif",fontSize:14,fontWeight:500,color:h.l.PRIMARY[900]},children:er("report")})}),(0,i.jsx)(S.A,{open:ev,onClose:()=>ew(!1),postTitle:T,onSubmit:eR}),(0,i.jsx)(k.default,{ref:ec,title:er("post_login_required_title",{defaultValue:"Sign in required"}),description:er("post_login_required_description",{defaultValue:"Please sign in to continue."}),confirmLabel:er("sign_in",{defaultValue:"Sign in"}),cancelLabel:er("cancel",{defaultValue:"Cancel"}),onConfirm:ep})]})}},90590:(e,t,l)=>{l.d(t,{default:()=>o});var i=l(54568),n=l(15754),a=l(91284),r=l(65310);let o=e=>{let{itemsCount:t=5}=e;return(0,i.jsx)(n.default,{spacing:1.5,sx:{minWidth:"100%"},children:Array.from({length:t}).map((e,l)=>(0,i.jsxs)(n.default,{spacing:1,children:[(0,i.jsxs)(a.default,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[(0,i.jsxs)(n.default,{spacing:.5,sx:{flex:1,minWidth:0},children:[(0,i.jsx)(r.default,{variant:"text",width:120,height:18}),(0,i.jsx)(r.default,{variant:"text",height:24}),(0,i.jsx)(r.default,{variant:"text",width:"80%",height:24})]}),(0,i.jsx)(r.default,{variant:"rectangular",width:124,height:70,sx:{borderRadius:"4px",flexShrink:0}})]}),l<t-1&&(0,i.jsx)(r.default,{variant:"rectangular",height:1,sx:{bgcolor:"#E0E0E0"}})]},l))})}},94650:(e,t,l)=>{l.d(t,{default:()=>o});var i=l(54568),n=l(15754),a=l(65310),r=l(91284);let o=()=>(0,i.jsxs)(n.default,{spacing:1.5,sx:{width:"100%"},children:[(0,i.jsx)(a.default,{variant:"rectangular",height:360,sx:{borderRadius:"12px"}}),(0,i.jsxs)(n.default,{spacing:1,children:[(0,i.jsx)(a.default,{variant:"text",width:120,height:24}),(0,i.jsx)(a.default,{variant:"text",height:40,sx:{maxWidth:520}}),(0,i.jsx)(a.default,{variant:"text",height:40,sx:{maxWidth:520}})]}),(0,i.jsxs)(r.default,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[(0,i.jsx)(a.default,{variant:"text",width:220,height:20}),(0,i.jsx)(a.default,{variant:"rounded",width:90,height:32})]})]})},98100:(e,t,l)=>{l.d(t,{default:()=>x});var i=l(54568),n=l(91284),a=l(48170),r=l(25960),o=l(7620),s=l(99908),d=l(4968);let x=function(e){let{items:t,renderItem:l,keyExtractor:x,autoSlide:c=!1,autoSlideInterval:u=5e3,showArrows:h=!0,cardWidth:f=340,gap:p=16,borderRadius:g="12px",bgcolor:m=r.l.GREY[200],rtl:b=!1}=e,j=(0,o.useRef)(null),[v,w]=(0,o.useState)(0),[y,R]=(0,o.useState)(0),[C,E]=(0,o.useState)(!1),S=f+p,I=(0,o.useCallback)(()=>{var e,l;let i=null!=(l=null==(e=j.current)?void 0:e.offsetWidth)?l:0,n=t.length*S-p;R(Math.max(n-i,0)),w(e=>Math.min(e,Math.max(n-i,0)))},[t.length,S,p]);(0,o.useEffect)(()=>(I(),window.addEventListener("resize",I),()=>window.removeEventListener("resize",I)),[I]);let A=e=>{e.preventDefault(),e.stopPropagation(),w(e=>Math.min(e+S,y))},k=e=>{e.preventDefault(),e.stopPropagation(),w(e=>Math.max(e-S,0))},W=(0,o.useRef)(null);return t.length?(0,i.jsxs)(n.default,{ref:j,sx:{position:"relative",overflow:"hidden",
1width:"100%",borderRadius:g,bgcolor:m},onMouseEnter:()=>E(!0),onMouseLeave:()=>E(!1),onTouchStart:e=>{W.current=e.touches[0].clientX},onTouchEnd:e=>{if(null===W.current)return;let t=W.current-e.changedTouches[0].clientX;(b?t<-50:t>50)&&A(e),(b?t>50:t<-50)&&k(e),W.current=null},children:[(0,i.jsx)(n.default,{sx:{display:"flex",gap:"".concat(p,"px"),transform:"translateX(".concat(b?v:-v,"px)"),transition:"transform 0.45s ease",willChange:"transform"},children:t.map((e,t)=>(0,i.jsx)(n.default,{sx:{flex:"0 0 auto",width:"".concat(f,"px")},children:l(e,t)},x(e,t)))}),h&&y>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a.default,{onClick:b?A:k,disabled:b?v>=y:0===v,sx:{position:"absolute",left:12,top:"50%",transform:"translateY(-50%)",opacity:+!!C,display:{xs:"none",lg:"flex"},bgcolor:"rgba(255,255,255,0.9)"},children:(0,i.jsx)(s.A,{fontSize:"small"})}),(0,i.jsx)(a.default,{onClick:b?k:A,disabled:b?0===v:v>=y,sx:{position:"absolute",right:12,top:"50%",transform:"translateY(-50%)",opacity:+!!C,display:{xs:"none",lg:"flex"},bgcolor:"rgba(255,255,255,0.9)"},children:(0,i.jsx)(d.A,{fontSize:"small"})})]})]}):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.