PageSourceSearch

https://www.idntimes.com/_next/static/chunks/8482-a7d9b4793a9aeeba.js

js idntimes.com collected 2026-09-24 08:57:15 UTC 22,674 bytes, 21 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0210de14-23ae-4d7f-af36-0577da0233bb",e._sentryDebugIdIdentifier="sentry-dbid-0210de14-23ae-4d7f-af36-0577da0233bb")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8482],{78482:function(e,t,i){i.d(t,{t:function(){return Z}});var l=i(69087),r=i(72947),n=i(47465),o=i(10909),a=i(89195),d=i(77728),s=i(68937),u=i(77363),c=i(84215),p=i(31877),f=i(99198),g=i(91757),v=i(85333),h=i(44964),m=i(23329),y=i(98409),b=i(94459),w=i(38117);let S=(e,t)=>({id:String(e.id),href:e.full_url,pollKey:e.key,title:e.title,options:e.options.map(e=>({id:String(e.id),text:e.name,voteCount:e.votes_count,votePercentage:e.votes_percentage})),totalVotes:e.total_voters,endAt:e.end_at,voteUrl:window.location.href,selectedOptionId:e.voted?String(e.voted.option_id):void 0,hasVoted:!!e.voted,isExpired:1e3*e.end_at<Date.now(),publisher:t}),x=(0,n.Z)("div",{target:"e13kv7qb0"})("display:grid;grid-template-columns:1fr;gap:1.25rem;width:100%;@media (min-width:768px){grid-template-columns:repeat(",e=>{let{columns:t}=e;return t||3},",1fr);}"),Z=e=>{var t,i,n;let{title:Z,type:C,slug:k,publisher:L,skeletonCount:F=3,sectionIndex:T=0,loadMoreMode:I=!1,gridColumns:_,apiUrl:P,seeMoreUrl:D}=e,{isMobile:O}=(0,g.F)(),W=(0,r.u)(),z=(0,m.useRef)(null),B=(0,m.useId)(),M=Z?`section-title-${B}`:void 0,[q,X]=(0,m.useState)(1),[$,j]=(0,m.useState)([]),[E,A]=(0,m.useState)(1),[K,V]=(0,m.useState)(0),[R,N]=(0,m.useState)(!1),{data:H,isLoading:U}=(0,h.a)({queryKey:["/api/poll/trending",L,k,T],queryFn:()=>v.Z.getTrendingPolling({publisher:L}),refetchOnWindowFocus:!1,enabled:"trending-poll"===k&&!P}),{data:J,isLoading:Y}=(0,h.a)({queryKey:["/api/poll/latest",L,k,T,q],queryFn:()=>v.Z.getLatestPolling({publisher:L,page:q,limit:20}),refetchOnWindowFocus:!1,enabled:"latest-poll"===k&&!I&&!P}),{isLoading:Q}=(0,h.a)({queryKey:["/api/poll/latest/load-more-init",L,k,T],queryFn:async()=>{let e=await v.Z.getLatestPolling({publisher:L,page:1,limit:20});if(null==e?void 0:e.data){var t,i,l;j(null!==(i=e.data.data)&&void 0!==i?i:[]),V(null!==(l=null===(t=e.data.meta)||void 0===t?void 0:t.total_page)&&void 0!==l?l:0),A(1)}return e},refetchOnWindowFocus:!1,enabled:"latest-poll"===k&&I&&!P}),{data:G,isLoading:ee}=(0,h.a)({queryKey:["poll-section-api-url",P,T],queryFn:async()=>{var e,t;let i=new URL(P,window.location.origin),l=Number(i.searchParams.get("page"))||1,r=Number(i.searchParams.get("limit"))||4,n=await v.Z.getLatestPolling({publisher:L,page:l,limit:r});return null!==(t=null==n?void 0:null===(e=n.data)||void 0===e?void 0:e.data)&&void 0!==t?t:[]},refetchOnWindowFocus:!1,enabled:!!P}),et=P?ee:"trending-poll"===k?U:I?Q:Y,ei=(0,m.useMemo)(()=>{var e,t,i;return P?null!=G?G:[]:"trending-poll"===k?null!==(t=null==H?void 0:H.data)&&void 0!==t?t:[]:I?$:null!==(i=null==J?void 0:null===(e=J.data)||void 0===e?void 0:e.data)&&void 0!==i?i:[]},[k,H,J,I,$,P,G]),el=(0,m.useMemo)(()=>{var e,t,i;return P||"latest-poll"!==k?0:I?K:null!==(i=null==J?void 0:null===(t=J.data)||void 0===t?void 0:null===(e=t.meta)||void 0===e?void 0:e.total_page)&&void 0!==i?i:0},[k,J,I,K,P]),er=(0,m.useCallback)(async()=>{if(!R&&!(E>=K)){N(!0);try{var e,t,i;let l=E+1,r=await v.Z.getLatestPolling({publisher:L,page:l,limit:20});(null==r?void 0:null===(e=r.data)||void 0===e?void 0:e.data)&&(j(e=>[...e,...r.data.data]),A(l),V(null!==(i=null===(t=r.data.meta)||void 0===t?void 0:t.total_page)&&void 0!==i?i:K))}catch{}finally{N(!1)}}},[R,E,K,L]);if(et){let e=Array.from({length:F},(e,t)=>t);return(0,l.BX)(o.x,{width:"full",boxSizing:"border-box",children:[(0,l.tZ)(c.O,{width:"48",height:"6",borderRadius:"md"}),(0,l.tZ)(o.x,{marginTop:"4",padding:"2",children:"carousel"===C?(0,l.tZ)(a.Carousel,{itemsToShow:O?1.3:4.2,itemSpacing:"4",arrow:!O,dots:O,children:e.map(e=>(0,l.tZ)(o.x,{children:(0,l.tZ)(b.I,{})},e))}):(0,l.tZ)(x,{columns:_,children:e.map(e=>(0,l.tZ)(b.I,{},e))})})]})}if(!ei.length)return null;
1let en=ei.map(e=>S(e,L));return(0,l.BX)(o.x,{width:"full",ref:z,gap:"4",as:Z?"section":"div","aria-labelledby":M,children:[(0,l.BX)(s.k,{alignItems:"center",marginBottom:"4",justifyContent:"space-between",children:[(0,l.tZ)(s.k,{dataCy:"ds-title",gap:"2",children:(0,l.tZ)(e=>{var t,i,n;let{title:o,prefix:a,suffix:d,as:u,titleId:c}=e,g=(0,r.u)();return(0,l.BX)(s.k,{gap:"2",children:[a&&(0,l.tZ)(f.p,{icon:a.icon,size:a.size,id:`prefix-icon-${o}`,dataTestId:`prefix-icon-${o}`}),(0,l.tZ)(p.x,{as:u,fontSize:{sm:"md",md:"2xl"},color:null===(t=g.sectionTitle)||void 0===t?void 0:t.title.color,fontFamily:null===(i=g.sectionTitle)||void 0===i?void 0:i.title.fontFamily,fontWeight:null===(n=g.sectionTitle)||void 0===n?void 0:n.title.fontWeight,id:c,children:o}),d&&(0,l.tZ)(f.p,{icon:d.icon,size:d.size,id:`suffix-icon-${o}`,dataTestId:`suffix-icon-${o}`})]})},{titleId:M,title:Z,as:"h2"})}),D&&(0,l.tZ)(d.x,{href:D,passHref:!0,children:(0,l.tZ)(p.x,{dataCy:"ds-seemore",fontSize:"xs",color:null===(t=W.sectionTitle)||void 0===t?void 0:t.seeMoreLabel.color,fontFamily:null===(i=W.sectionTitle)||void 0===i?void 0:i.seeMoreLabel.fontFamily,fontWeight:null===(n=W.sectionTitle)||void 0===n?void 0:n.seeMoreLabel.fontWeight,children:"See More"})})]}),"carousel"===C?(0,l.tZ)(a.Carousel,{itemsToShow:O?1.3:4.2,itemSpacing:"1",arrow:!O,dots:O,children:en.map(e=>(0,l.tZ)(o.x,{padding:"2",children:(0,l.tZ)(w.F,{...e})},e.id))}):(0,l.BX)(l.HY,{children:[(0,l.tZ)(x,{columns:_,children:en.map(e=>(0,l.tZ)(w.F,{...e},e.id))}),I?E<el&&(0,l.tZ)(s.k,{justifyContent:"center",marginTop:"6",children:(0,l.tZ)(o.x,{width:"full",children:(0,l.tZ)(y.a,{isLoading:R,onClick:er,children:"Load More"})})}):el>1&&(0,l.tZ)(s.k,{justifyContent:"center",marginTop:"6",children:(0,l.tZ)(u.t,{currentPage:q,totalPages:el,onPageChange:e=>{if(X(e),z.current){let e=z.current.getBoundingClientRect().top+window.scrollY-80;window.scrollTo({top:e,behavior:"smooth"})}}})})]})]})}},38117:function(e,t,i){i.d(t,{F:function(){return M}});var l=i(69087),r=i(72947),n=i(47465),o=i(10909),a=i(77728),d=i(68937),s=i(31877),u=i(61378),c=i(8512),p=i(33168),f=i(72222),g=i(38108),v=i(85333),h=i(53362),m=i(82268),y=i(47336),b=i(44964),w=i(73570),S=i(23329),x=i(63642);let Z=["Arka","Bima","Citra","Daffa","Elya","Fahri","Gia","Hana","Irfan","Jasmine"],C=e=>{let t=e.split(/[\s']/)[0];return t.length<=1?t:t[0].toUpperCase()+"*".repeat(t.length-1)},k=(e,t)=>t>=3&&e.length>=3?e.slice(0,3).map(e=>e.name_masked?e.name_masked:C(e.name)):[...Z].sort(()=>Math.random()-.5).slice(0,3).map(C),L=(0,n.Z)("div",{target:"e1db8ujj0"})("position:relative;width:100%;height:0;overflow:visible;"),F=(0,n.Z)(o.x,{target:"e1db8ujj1"})("position:absolute;top:80%;left:-2%;width:104%;z-index:10;pointer-events:none;"),T=(0,n.Z)("div",{target:"e1db8ujj2"})("z-index:999;position:absolute;display:inline-flex;align-items:center;justify-content:center;padding:0.375rem 0.75rem;border-radius:1rem;background-color:",e=>{let{bgColor:t}=e;return t},";white-space:nowrap;transition:all ",400,"ms ease;",e=>{let{animState:t,isOlder:i}=e;switch(t){case"enter-left":return`
2          top: 0;
3          left: 0;
4          transform: translateX(-110%);
5          opacity: 0;
6        `;case"visible":return`
7          top: 0;
8          left: 0;
9          transform: translateX(0);
10          opacity: ${i?.4:1};
11        `;case"shift-up":return`
12          top: -1.75rem;
13          left: 0;
14          transform: translateX(0);
15          opacity: 0.4;
16        `;case"exit-up":return`
17          top: -3.5rem;
18          left: 0;
19          transform: translateX(0);
20          opacity: 0;
21        `;default:return""}}),I=e=>{var t,i;let{voters:n,totalVoters:o}=e,a=(0,r.u)(),[d,c]=(0,S.useState)([]),p=(0,S.useRef)(0),f=(0,S.useRef)(0),g=(0,S.useRef)(null),v=(0,S.useRef)(null),[h,m]=(0,S.useState)(!1),y=(0,S.useMemo)(()=>k(n,o),[n.length,o]),b=u.O9[null===(t=a.color)||void 0===t?void 0:t.secondary]||u.O9[null===(i=a.brand)||void 0===i?void 0:i.color]||"#e0e0e0";return((0,S.useEffect)(()=>{let e=v.current;if(!e)return;let t=new IntersectionObserver(e=>{let[t]=e;m(t.isIntersecting)},{threshold:.1});return t.observe(e),()=>t.disconnect()},[]),(0,S.useEffect)(()=>{h||(g.current&&(clearTimeout(g.current),g.current=null),c([]))},[h]),(0,S.useEffect)(()=>
21{if(!h||0===y.length)return;p.current=0,f.current=0,c([]);let e=Math.min(y.length,3),t=()=>{if(p.current>=e)return null;let t=y[p.current];return p.current++,t},i=()=>{let l=t();if(!l)return;let r=++f.current;c(e=>[...e.map(e=>({...e,animState:"shift-up"})),{name:l,id:r,animState:"enter-left"}]),requestAnimationFrame(()=>{requestAnimationFrame(()=>{c(e=>e.map(e=>e.id===r?{...e,animState:"visible"}:e))})}),setTimeout(()=>{c(e=>{if(e.length<=1)return e;let[t,...i]=e;return[{...t,animState:"exit-up"},...i]})},400),setTimeout(()=>{c(e=>e.filter(e=>"exit-up"!==e.animState))},800),p.current<e?g.current=setTimeout(i,2400):g.current=setTimeout(()=>{c(e=>e.map(e=>({...e,animState:"exit-up"}))),setTimeout(()=>{c([])},400)},2e3)},l=t();if(!l)return;let r=++f.current;return c([{name:l,id:r,animState:"enter-left"}]),requestAnimationFrame(()=>{requestAnimationFrame(()=>{c(e=>e.map(e=>e.id===r?{...e,animState:"visible"}:e))})}),p.current<e?g.current=setTimeout(i,2e3):g.current=setTimeout(()=>{c(e=>e.map(e=>({...e,animState:"exit-up"}))),setTimeout(()=>{c([])},400)},2e3),()=>{g.current&&clearTimeout(g.current)}},[h,y,b]),0===y.length)?null:(0,l.tZ)(F,{ref:v,children:(0,l.tZ)(L,{"data-cy":"polling-toast-container",children:d.map((e,t)=>{var i;return(0,l.tZ)(T,{bgColor:b,animState:e.animState,isOlder:d.length>1&&0===t,"data-cy":`polling-toast-${e.id}`,children:(0,l.BX)(s.x,{fontSize:"xs",fontWeight:"semibold",color:"greyscale0",fontFamily:null===(i=a.articleListCard)||void 0===i?void 0:i.category.fontFamily,children:[e.name," has voted"]})},e.id)})})})},_=e=>e.toLocaleString("id-ID"),P=e=>{let t=1e3*e-Date.now();if(t<=0)return"Ended";let i=Math.floor(t/864e5),l=Math.floor(t%864e5/36e5);return i>0?`${i} Days Left`:l>0?`${l} Hours Left`:"Less than 1 hour"},D=e=>({options:e.options.map(e=>({id:String(e.id),text:e.name,voteCount:e.votes_count,votePercentage:e.votes_percentage})),totalVotes:e.total_voters,endAt:e.end_at,selectedOptionId:e.voted?String(e.voted.option_id):void 0}),O=(0,n.Z)(o.x,{target:"e1a5avwq0"})("border-color:transparent;transition:border-color 0.2s ease;&:hover{border-color:",e=>{let{hoverBorderColor:t}=e;return t},";}"),W=(0,n.Z)("div",{target:"e1a5avwq1"})("position:relative;width:100%;border-radius:20px;overflow:hidden;min-height:2.5rem;display:flex;align-items:center;border:1px solid ",e=>{let{brandColor:t}=e;return t},";transition:opacity 0.2s ease,border-color 0.2s ease;opacity:",e=>{let{isDisabled:t,showResult:i}=e;return t&&!i?.55:1},";pointer-events:",e=>{let{isDisabled:t,showResult:i}=e;return t&&!i?"none":"auto"},";&:hover{background:",e=>{let{hoverColor:t}=e;return t},";",e=>{let{showResult:t,hoverColor:i}=e;return!t&&`border: 1px solid ${i};`},"}"),z=(0,n.Z)("div",{target:"e1a5avwq2"})("position:absolute;top:0;left:0;height:100%;width:",e=>{let{percentage:t}=e;return t},"%;background-color:",e=>{let{fillColor:t}=e;return t},";border-radius:0px;transition:width 1s cubic-bezier(0.25,0.46,0.45,0.94);will-change:width;"),B=(0,n.Z)(d.k,{target:"e1a5avwq3"})("position:relative;z-index:1;display:flex;align-items:center;width:100%;padding:0.5rem 1rem;min-width:0;overflow:hidden;word-break:break-word;"),M=e=>{var t,n,Z,C,k,L,F,T,M,q,X,$,j,E,A,K,V,R,N,H,U,J,Y;let{id:Q,title:G,options:ee,totalVotes:et,endAt:ei,voteUrl:el,selectedOptionId:er,hasVoted:en=!1,isExpired:eo=!1,pollKey:ea,publisher:ed,titleSection:es=!1,isDisabled:eu=!1,href:ec,seeMoreHref:ep}=e,ef=(0,w.usePathname)(),[eg]=(0,S.useState)(ef.endsWith("/preview")),ev=(0,r.u)(),{isLogin:eh}=(0,p.a)(),em=(0,m.NL)(),[ey,eb]=(0,S.useState)(en),[ew,eS]=(0,S.useState)(eo),[ex,eZ]=(0,S.useState)(ec),[eC,ek]=(0,S.useState)(ee),[eL,eF]=(0,S.useState)(et),[eT,eI]=(0,S.useState)(ei),[e_,eP]=(0,S.useState)(er),[eD,eO]=(0,S.useState)([]),eW=ey||ew,[ez,eB]=(0,S.useState)(eW),[eM,eq]=(0,S.useState)(eW),eX=(0,S.useRef)(eW),[e$,ej]=(0,S.useState)(null),[eE,eA]=(0,S.useState)(!1),[eK,eV]=(0,S.useState)(null),[eR,eN]=(0,S.useState)(!1),eH=(0,c.V)();(0,S.useEffect)(()=>{if(!(null==ee?void 0:ee.length))return;ek(ee),eF(et),eI(ei),eP(er);let e=!!ei&&1e3*ei<Date.now();eS(e),en&&(eb(!0),eX.current=!0,eq(!0),eB(!0)),e&&(eX.current=!0,eq(!0),eB(!0))},[en,eo,er,et,ei]),(0,S.useEffect)(()=>
21{if(ez&&!eM){if(eX.current){eq(!0);return}let e=setTimeout(()=>{eq(!0),eX.current=!0},50);return()=>clearTimeout(e)}},[ez,eM]);let{mutate:eU,isPending:eJ}=(0,y.D)({mutationKey:[`/vote/${ea}/poll`],mutationFn:async e=>{let{data:t}=await v.Z.PostPoll({body:{option_id:parseInt(e),publisher:ed,vote_url:el},key:ea});return t},onSuccess:e=>{if(e){let t=D(e);ek(t.options),eF(t.totalVotes),eI(t.endAt),t.selectedOptionId&&eP(t.selectedOptionId),eB(!0),em.invalidateQueries({queryKey:["/api/poll/trending"]}),em.invalidateQueries({queryKey:["/api/poll/latest"]})}},onError:async()=>{eP(void 0),eB(!1),eq(!1),eX.current=!1;let{PollingReloadModal:e}=await i.e(8968).then(i.bind(i,78968));eV(()=>e),eN(!0)}}),eY=!ey&&!ew&&!ez&&!eJ,eQ=async e=>{if(eY){if((async()=>{try{let t=await (0,f.M)();if(!t)return;let i="";try{let e=localStorage.getItem("userData");if(e){let t=JSON.parse(e);i=(null==t?void 0:t.uuid)||""}}catch{}let l=(0,g.Yo)({pollKey:ea,optionId:e,isLogin:eh,currentUrl:window.location.href,fingerprintId:t,userId:i});l&&h.Z.postTracker({pollKey:l.pollKey,optionId:l.optionId,isLogin:l.isLogin,currentUrl:l.currentUrl,clickedAt:l.clickAt,fingerprintId:l.fingerprintId,userId:l.userId})}catch{}})(),!eh){let{PollingLoginModal:e}=await i.e(4016).then(i.bind(i,34016));ej(()=>e),eA(!0);return}eP(e),eU(e)}},eG=e=>{var t;return e===e_&&(null===(t=ev.color)||void 0===t?void 0:t.primaryLight)||"greyscale20"},{data:e0,isPending:e1}=(0,b.a)({queryKey:[`/poll/${ea}/public`,ea],queryFn:async()=>await v.Z.getDetailPolling({key:ea,publisher:eH.publisher||"idntimes"}),enabled:!!ea&&!(null==ee?void 0:ee.length)});return((0,S.useEffect)(()=>{var e;if(!(null==e0?void 0:e0.data))return;let{options:t,end_at:i,total_voters:l,voters:r,voted:n,url:o}=e0.data,a=1e3*i<Date.now();ek(t.map(e=>({id:e.id,text:e.name,voteCount:e.votes_count,votePercentage:e.votes_percentage}))),eP(null===(e=e0.data.voted)||void 0===e?void 0:e.option_id),eI(i),eF(l),eS(a),ec||eZ(o),r&&eO(r),n&&eb(!0),(n||a)&&eB(!0)},[e0]),e1&&ea&&!(null==ee?void 0:ee.length))?(0,l.tZ)(x.I,{}):(0,l.BX)(S.Fragment,{children:[es&&(0,l.tZ)(o.x,{children:(0,l.tZ)(s.x,{as:"h2",color:"greyscale70",fontFamily:null===(t=ev.articleListCard)||void 0===t?void 0:t.title.fontFamily,fontWeight:null===(n=ev.articleListCard)||void 0===n?void 0:n.title.fontWeight,fontSize:"lg",children:null==e0?void 0:null===(Z=e0.data)||void 0===Z?void 0:Z.subtitle})}),(0,l.BX)(O,{width:"full",borderRadius:"xl",padding:"4",boxShadow:"3xl",boxSizing:"border-box",dataCy:`polling-card-${Q}`,border:"1",hoverBorderColor:(null===(C=ev.brand)||void 0===C?void 0:C.color)?u.O9[ev.brand.color]:"transparent",children:[(0,l.tZ)("div",{id:Q,style:{display:"block",position:"relative",top:"-120px",visibility:"hidden"}}),(0,l.BX)(d.k,{direction:"column",gap:"3",width:"full",children:[ex?(0,l.BX)(d.k,{alignItems:"center",justifyContent:"space-between",width:"full",gap:"2",children:[(0,l.tZ)(a.x,{href:ex,passHref:!0,children:(0,l.tZ)(s.x,{as:"h3",fontFamily:null===(k=ev.articleListCard)||void 0===k?void 0:k.title.fontFamily,fontWeight:null===(L=ev.articleListCard)||void 0===L?void 0:L.title.fontWeight,color:null===(F=ev.articleListCard)||void 0===F?void 0:F.title.color,fontSize:"md",letterSpacing:"wide",dataCy:"polling-title",children:G})}),ep&&(0,l.tZ)(a.x,{href:ep,passHref:!0,children:(0,l.tZ)(s.x,{dataCy:"ds-seemore",fontSize:"xs",color:null===(T=ev.sectionTitle)||void 0===T?void 0:T.seeMoreLabel.color,fontFamily:null===(M=ev.sectionTitle)||void 0===M?void 0:M.seeMoreLabel.fontFamily,fontWeight:null===(q=ev.sectionTitle)||void 0===q?void 0:q.seeMoreLabel.fontWeight,whiteSpace:"nowrap",children:"See More"})})]}):(0,l.BX)(d.k,{alignItems:"center",justifyContent:"space-between",width:"full",children:[(0,l.tZ)(s.x,{as:"h3",fontFamily:null===(X=ev.articleListCard)||void 0===X?void 0:X.title.fontFamily,fontWeight:null===($=ev.articleListCard)||void 0===$?void 0:$.title.fontWeight,color:null===(j=ev.articleListCard)||void 0===j?void 0:j.title.color,fontSize:"md",letterSpacing:"wide",dataCy:"polling-title",children:G}),ep&&(0,l.tZ)(a.x,{href:ep,passHref:!0,children:(0,l.tZ)(s.x,{dataCy:"ds-seemore",fontSize:"xs",color:null===(E=ev.sectionTitle)||void 0===E?void 0:E.seeMoreLabel.color,fontFamily:null===(A=ev.sectionTitle)||void 0===A?void 0:A.seeMoreLabel.fontFamily,fontWeight:null===(K=ev.sectionTitle)||void 0===K?void 0:K.seeMoreLabel.fontWeight,children:"See More"})})]}),(0,l.tZ)(d.k,{direction:"column",gap:"2",boxSizing:"border-box",width:"full",children:null==eC?void 0:eC.map((e,t)=>{var i,r,n,a,c,p;let f=e.votePercentage,g=eG(e.id),v=0===t&&!!ea&&!(null==ee?void 0:ee.length),h=(0,l.BX)(W,{brandColor:ez&&e.id===e_?u.O9[null===(i=ev.brand)||void 0===i?void 0:i.color]:ez&&e.id!==e_?u.O9.greyscale80:u.O9[null===(r=ev.brand)||void 0===r?void 0:r.color],showResult:ez,isDisabled:eJ||ew,onClick:()=>eg?null:eQ(e.id),role:"button","aria-label":`Vote for ${e.text}`,tabIndex:eY?0:-1,onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),eQ(e.id))},style:{cursor:eY?"pointer":"default"},"data-cy":`polling-option-${e.id}`,hoverColor:ez?void 0:u.O9[null===(n=ev.color)||void 0===n?void 0:n.primaryLight],children:[ez&&(0,l.tZ)(z,{percentage:eM?f:0,fillColor:u.O9[g]}),!ez&&(0,l.tZ)(z,{percentage:100,fillColor:"transparent"}),(0,l.BX)(B,{width:"full",justifyContent:ez?"space-between":"center",gap:"2",children:[(0,l.tZ)(d.k,{alignItems:"center",textAlign:ez?"left"
21:"center",gap:"2",minWidth:"0",children:(0,l.tZ)(s.x,{fontFamily:null===(a=ev.articleListCard)||void 0===a?void 0:a.category.fontFamily,fontWeight:ez?"normal":"bold",color:ez&&e.id===e_?"black":ez&&e.id!==e_?"greyscale60":ez||ew?"greyscale60":null===(c=ev.brand)||void 0===c?void 0:c.color,fontSize:"sm",children:e.text})}),ez&&(0,l.tZ)(o.x,{display:"flex",children:(0,l.BX)(s.x,{fontFamily:null===(p=ev.articleListCard)||void 0===p?void 0:p.category.fontFamily,fontWeight:"bold",color:ez&&e.id===e_?"black":(ez&&e.id,"greyscale50"),fontSize:"sm",dataCy:`polling-percentage-${e.id}`,wordBreak:"normal",children:[f,"%"]})})]})]},e.id);return!eu&&v?(0,l.BX)(o.x,{position:"relative",width:"full",children:[h,(0,l.tZ)(I,{voters:eD,totalVoters:eL||0})]},e.id):h})}),(0,l.BX)(d.k,{justifyContent:"space-between",alignItems:"center",width:"full",children:[(0,l.BX)(s.x,{fontFamily:null===(V=ev.articleListCard)||void 0===V?void 0:V.publishDate.fontFamily,fontWeight:null===(R=ev.articleListCard)||void 0===R?void 0:R.publishDate.fontWeight,color:null===(N=ev.articleListCard)||void 0===N?void 0:N.publishDate.color,fontSize:"xs",dataCy:"polling-vote-count",children:[!eL||eL<50?"< 50":_(eL)," ","Voters"]}),(0,l.tZ)(s.x,{fontFamily:null===(H=ev.articleListCard)||void 0===H?void 0:H.publishDate.fontFamily,fontWeight:null===(U=ev.articleListCard)||void 0===U?void 0:U.publishDate.fontWeight,color:ew?null===(J=ev.articleListCard)||void 0===J?void 0:J.publishDate.color:null===(Y=ev.articleListCard)||void 0===Y?void 0:Y.publishDate.color,fontSize:"xs",dataCy:"polling-expiry",children:eT&&P(eT)})]})]}),eE&&e$&&(0,l.tZ)(e$,{alert:{title:"Your vote matters",message:"Log in to submit your vote and help shape the results."},onClose:()=>eA(!1)})]}),eR&&eK&&(0,l.tZ)(eK,{open:eR,onClose:()=>eN(!1)})]})}},72222:function(e,t,i){i.d(t,{M:function(){return n}}),i(23329);let l=null,r=null;async function n(){return l||(r||(r=(async()=>{try{let e=await i.e(4991).then(i.bind(i,64991)).then(e=>e.default),t=await e.load();return l=(await t.get()).visitorId}catch(e){return console.error("Failed to generate fingerprint:",e),r=null,null}})()),r)}},38108:function(e,t,i){i.d(t,{Yo:function(){return n}});let l="vote_poll_tracker";function r(){if("undefined"==typeof localStorage)return{};try{let e=localStorage.getItem(l);return e?JSON.parse(e):{}}catch(e){return console.error("Failed to parse poll tracker storage:",e),{}}}function n(e){let{pollKey:t,optionId:i,isLogin:n,currentUrl:o,fingerprintId:a,userId:d}=e;if(!function(e,t){let i=r()[`${e}_${t}`];return!i||Date.now()-i.clickAt>=15e3}(t,a))return null;let s={pollKey:t,optionId:i,isLogin:n,currentUrl:o,clickAt:Date.now(),fingerprintId:a,userId:d};return!function(e){var t,i;let n=r();n[t=e.pollKey,i=e.fingerprintId,`${t}_${i}`]=e,function e(t){if("undefined"!=typeof localStorage)try{localStorage.setItem(l,JSON.stringify(t))}catch(i){if(console.error("Failed to save poll tracker storage:",i),i instanceof Error&&"QuotaExceededError"===i.name){!function(){let t=r(),i=Date.now(),l=!1;Object.keys(t).forEach(e=>{i-t[e].clickAt>=15e3&&(delete t[e],l=!0)}),l&&e(t)}();try{localStorage.setItem(l,JSON.stringify(t))}catch(e){console.error("Failed to save poll tracker storage after cleanup:",e)}}}}(n)}(s),s}},53362:function(e,t,i){var l=i(71544),r=i(59497);class n{async postTracker(e){try{let t=(0,l.VD)(e),{data:i}=await (0,r.Z)({method:"POST",url:"/poll-tracker",data:t});return{status:i.status,data:i.data}}catch(e){return null}}async readExperienceTracker(e){try{let t=(0,l.VD)(e),{data:i}=await (0,r.Z)({method:"POST",url:"/analytic-read-experience",data:t});return i}catch(e){return null}}}t.Z=new n},85333:function(e,t,i){var l=i(71544),r=i(80880),n=i(504);class o{async PostPoll(e){let{body:t,key:i}=e,r=(0,l.VD)(t);try{let{data:e}=await n.Z.post("/poll/vote",r,{params:{key:i}});return e}catch(e){return Promise.reject(e)}}async getLatestPolling(e){let{publisher:t,page:i,limit:l}=e;try{let{data:e}=await n.Z.get("/poll/latest",{params:{publisher:t,page:i,limit:l}});return e}catch(e){return Promise.reject(e)}}async getTrendingPolling(e){let{publisher:t}=e;try{let{data:e}=await n.Z.get("/poll/trending",{params:{publisher:t}});return e}catch(e){return Promise.reject(e)}}async getDetailPolling(e){let{key:t,publisher:i}=e;try{let{data:e}=await n.Z.get("/poll/public",{params:{key:t,publisher:i}});return{status:e.status,data:e.data}}catch(e){return Promise.reject(e)}}async getPublicPolling(e){let{key:t,publisher:i}=e;try{let{data:e}=await r.Z.get(`/v1/poll/${t}/public`,{params:{publisher:i}});return{status:e.status,data:e.data}}catch(e){return Promise.reject(e)}}}t.Z=new o}}]);

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.