PageSourceSearch

https://www.fortuneidn.com/_next/static/chunks/8753-66bccdfcda26676c.js

js fortuneidn.com collected 2026-10-02 17:06:19 UTC 13,254 bytes, 1 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]="5b5c178a-8bf5-4520-bb02-e2d5bd292bb0",e._sentryDebugIdIdentifier="sentry-dbid-5b5c178a-8bf5-4520-bb02-e2d5bd292bb0")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8753],{15153:function(e,t,i){i.d(t,{W:function(){return m}});var l=i(69087),a=i(72947),o=i(47465),r=i(10909),n=i(77728),d=i(68937),s=i(31877),c=i(99198),u=i(61378),g=i(23329),h=i(97516);let v=(0,o.Z)("div",{target:"e1pbdb7w0"})("@media (max-width:767px){display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:3;}"),f=(0,o.Z)(r.x,{target:"e1pbdb7w1"})("width:",u.Q0["1"],";aspect-ratio:1;border-radius:50%;background:",u.O9.greyscale50,";"),m=e=>{var t,i,o,u,m,p,y,b,w,x,C,Z,S,k,L,_,P,z;let F=(0,a.u)(),{type:D,image:W,publisher:I,title:R,publishDate:$,category:j,isCsc:B,polls:T,href:X,hrefCategory:V="#",aspectRatio:q,widthImage:M,widthContent:N,titleFontSize:O,titleHeading:U="h3",countView:A,variant:H="default",city:E,types:Q,rel:K="",prefixItem:G,analytics:Y,isQuiz:J=!1,onTracker:ee,dataCy:et,isPaid:ei,tier:el,articleKe
1y:ea}=e,eo=null==Q?void 0:Q.some(e=>{let{slug:t}=e;return"article-self-serve"===t}),er=Math.floor(Date.now()/1e3),en="horizontal"===D?"base":"vertical-rounded"===D?"xlTop":"mdTop",ed={href:X,passHref:!0,...K?{rel:K}:{}},es={href:V,passHref:!0,...K?{rel:K}:{}},ec=e=>{Y&&ee&&ee(Y,e,{tier:el,articleKey:ea,publisher:Y.content_publisher||I,href:X})};return(0,l.tZ)(r.x,{as:"article",width:"full",borderRadius:en,height:"full",dataCy:et,children:(0,l.BX)(d.k,{justifyContent:"space-between",direction:"column",height:"full",children:[(0,l.BX)(d.k,{direction:"horizontal"===D?"row":"column",gap:"3",width:"full",children:[G&&G,"no-image"!==H&&(0,l.tZ)(r.x,{dataCy:"ds-card-article-image",width:M||"72",children:(0,l.tZ)(n.x,{onClick:ec,...ed,children:(0,l.tZ)(h.z,{src:(null==W?void 0:W.src)||"",alt:(null==W?void 0:W.alt)||"",borderRadius:en,publisher:I,isCsc:B,polls:T,aspectRatio:q,city:eo?E:void 0,sizes:(null==W?void 0:W.sizes)||"(max-width: 640px) 144px, 256px",isPaid:ei})})}),(0,l.BX)(d.k,{width:N||"full",direction:"column",gap:"1",children:[(0,l.tZ)(n.x,{onClick:ec,...ed,children:(0,l.tZ)(v,{children:(0,l.tZ)(s.x,{dataTestId:"title-article",dataCy:"ds-card-article-title",as:U,fontFamily:null===(t=F.articleListCard)||void 0===t?void 0:t.title.fontFamily,fontWeight:null===(i=F.articleListCard)||void 0===i?void 0:i.title.fontWeight,color:null===(o=F.articleListCard)||void 0===o?void 0:o.title.color,fontSize:{sm:(null==O?void 0:O.sm)||"sm",lg:(null==O?void 0:O.lg)||"md"},letterSpacing:"wide",wordWrap:"break-word",wordBreak:"break-word",children:R})})}),$&&(0,l.tZ)(s.x,{dataCy:"ds-card-article-pubdate",dataTestId:"publish-date-article",fontFamily:null===(u=F.articleListCard)||void 0===u?void 0:u.publishDate.fontFamily,fontWeight:null===(m=F.articleListCard)||void 0===m?void 0:m.publishDate.fontWeight,color:null===(p=F.articleListCard)||void 0===p?void 0:p.publishDate.color,fontSize:"xs",children:$}),j&&(0,l.BX)(d.k,{alignItems:"center",gap:"2",position:"relative",width:"0",children:[(0,l.tZ)(n.x,{...es,children:(0,l.tZ)(s.x,{dataCy:"ds-card-article-category",whiteSpace:"nowrap",fontFamily:null===(y=F.articleListCard)||void 0===y?void 0:y.category.fontFamily,fontWeight:null===(b=F.articleListCard)||void 0===b?void 0:b.category.fontWeight,color:null===(w=F.articleListCard)||void 0===w?void 0:w.category.color,fontSize:"xs",children:j})}),T&&T.some(e=>e.end_at>er)&&(0,l.BX)(d.k,{gap:"2",alignItems:"center",position:"relative",boxSizing:"border-box",children:[(0,l.tZ)(f,{}),(0,l.BX)(r.x,{display:"flex",gap:"1",children:[(0,l.tZ)(c.p,{size:"md",icon:"ic-chart",color:"greyscale50"}),(0,l.tZ)(s.x,{dataCy:"ds-card-article-polls",whiteSpace:"nowrap",fontFamily:null===(x=F.articleListCard)||void 0===x?void 0:x.publishDate.fontFamily,fontWeight:null===(C=F.articleListCard)||void 0===C?void 0:C.publishDate.fontWeight,color:null===(Z=F.articleListCard)||void 0===Z?void 0:Z.publishDate.color,fontSize:"xs",children:"Polls"})]})]})]}),(0,l.tZ)(d.k,{gap:"1",children:A&&(0,l.BX)(g.Fragment,{children:[(0,l.tZ)(c.p,{size:"lg",icon:"eye-visible",color:"greyscale50"}),(0,l.tZ)(s.x,{dataTestId:"count-view-article",fontFamily:null===(S=F.articleListCard)||void 0===S?void 0:S.countView.fontFamily,fontWeight:null===(k=F.articleListCard)||void 0===k?void 0:k.countView.fontWeight,color:null===(L=F.articleListCard)||void 0===L?void 0:L.countView.color,fontSize:"xs",children:A})]})})]})]}),J&&(0,l.tZ)(r.x,{width:"full",children:(0,l.tZ)(n.x,{onClick:ec,href:X,passHref:!0,children:(0,l.tZ)(r.x,{display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"full",backgroundColor:null===(_=F.brand)||void 0===_?void 0:_.color,paddingX:"4",paddingY:"2",cursor:"pointer",width:"full",boxSizing:"border-box",children:(0,l.tZ)(s.x,{color:null===(P=F.buttonLoadmore)||void 0===P?void 0:P.color,fontFamily:null===(z=F.buttonLoadmore)||void 0===z?void 0:z.fontFamily,fontWeight:"bold",fontSize:"sm",children:"Play Quiz"})})})})]})})}},98409:function(e,t,i){i.d(t,{a:function(){return c}});var l=i(69087),a=i(72947),o=i(10909),r=i(16742),n=i(68937),d=i(31877),s=i(60332);let c=e=>{var t,i,c,u;let{children:g,isLoading:h,onClick:v,variant:f,color:m,width:p,backgroundColor:y}=e,b=(0,a.u)();return(0,l.tZ)(o.x,{children:h?(0,l.tZ)(n.k,{justifyContent:"center",children:(0,l.tZ)(s.g,{})}):(0,l.tZ)(r.z,{onClick:v,borderRadius:"full",variant:f||"solid",color:m||"greyscale30",backgroundColor:y||(null===(t=b.buttonLoadmore)||void 0===t?void 0:t.button.color),width:p||"full",children:(0,l.tZ)(d.x,{color:m||(null===(i=b.buttonLoadmore)||void 0===i?void 0:i.color),fontFamily:null===(c=b.buttonLoadmore)||void 0===c?void 0:c.fontFamily,fontWeight:null===(u=b.buttonLoadmore)||void 0===u?void 0:u.fontWeight,fontSize:"sm",children:g})})})}},26618:function(e,t,i){i.d(t,{l:function(){return o}});var l=i(69087),a=i(94075);let o=e=>{let{option:t,onChange:i,defaultValue:o}=e;return(0,l.tZ)(a.P,{"data-testid":"dropdown-filter",padding:"1.5",borderRadius:"base",borderColor:"greyscale30",onChange:i,defaultValue:o,...e,children:null==t?void 0:t.map((e,t)=>(0,l.tZ)("option",{value:e.id,children:e.name},t))})}},63150:function(e,t,i){i.d(t,{q:function(){return r}});var l=i(69087),a=i(68937),o=i(31877);let r=()=>(0,l.BX)(a.k,{textAlign:"center",direction:"column",justifyContent:"start",alignItems:"center",gap:"4",padding:"4",minHeight:"1/4-screen",children:[(0,l.tZ)(o.x,{as:"h1",fontWeight:"bold",fontSize:"3xl",fontFamily:"system-ui",children:"Ooops! Something Went Wrong...."}),(0,l.tZ)(o.x,{as:"p",fontFamily:"system-ui",children:"It seems like there's nothing to see here yet. Check back later or try to refresh"})]})},11252:function(e,t,i){i.d(t,{O:function(){return y}});var l=i(69087),a=i(47465),o=i(26618),r=i(10909),n=i(61378),d=i(71544),s=i(59497),c=i(504);
1class u{async getCategories(e){let{publisherName:t,regional:i}=e;try{let{data:e}=await s.Z.get("/article/categories",{params:{...t&&{publisher_name:t},...i&&{regional:i}}});return e}catch(e){return Promise.reject(e)}}async postArticle(e){let{method:t,url:i,body:l}=e,a=(0,d.VD)(l);try{let{data:e}=await (0,c.Z)({url:i,data:a,method:t});return e}catch(e){return Promise.reject(e)}}async getValidateCode(e){let{code:t}=e;try{let{data:e}=await (0,c.Z)({url:"/event/validation",params:{code:t}});return e}catch(e){return Promise.reject(e)}}async getArticle(e){try{let{data:t}=await (0,c.Z)({url:`/community/post/${e}`,params:{key:e,publisher:"idntimes"}});return t}catch(e){return Promise.reject(e)}}}var g=new u,h=i(44964),v=i(73570),f=i(23329),m=e=>{let{publisher:t,regional:i}=e,l=(0,v.useRouter)(),a=(0,v.usePathname)(),o=(0,v.useSearchParams)(),r=(0,f.useMemo)(()=>new URLSearchParams(o),[o]),n=r.get("date"),d=r.get("category"),s=r.get("page"),[c,u]=(0,f.useState)(new Date),[m,p]=(0,f.useState)(""),{data:y}=(0,h.a)({queryKey:["/categories"],queryFn:async()=>await g.getCategories({publisherName:t,regional:i})}),{categories:b}=(0,f.useMemo)(()=>{var e;return{categories:[{id:"all",name:"All Category"},...(null==y?void 0:null===(e=y.data)||void 0===e?void 0:e.filter(e=>{let{id:t}=e;return"0193f7d9-ef4c-7a18-b14c-709cfee0f8ab"!==t}).map(e=>({id:e.slug,name:e.name})))||[]]}},[y]),w=e=>e&&/[A-Z]/.test(e)?e.toLowerCase():e;return(0,f.useEffect)(()=>{let e=new URLSearchParams(o.toString()),t=!1;for(let[i,l]of e.entries()){let a=w(l);a!==l&&(e.set(i,a),t=!0)}d?p(d):(e.set("category","all"),p("all"),t=!0),n?u(new Date(n)):(e.set("date",new Date().toISOString().split("T")[0]),u(new Date),t=!0),s||(e.set("page","1"),t=!0),t&&l.replace(`${a}?${e.toString()}`)},[d,n,r,s,l,o,a]),{categories:b,date:c,onDateChange:e=>{u(e);let t=new URLSearchParams(o.toString());e?t.set("date",e.toISOString().split("T")[0]):t.delete("date"),t.set("page","1"),window.open(`${a}?${t.toString()}`,"_self")},onCategoryChange:e=>{p(e);let t=new URLSearchParams(o.toString());t.set("category",e),t.set("page","1"),window.open(`${a}?${t.toString()}`,"_self")},category:m}};let p=(0,i(25630).default)(()=>Promise.all([i.e(7651),i.e(5933),i.e(8661),i.e(2700),i.e(3002)]).then(i.bind(i,3002)).then(e=>e.CustomDatePicker),{loadableGenerated:{webpack:()=>[3002]},ssr:!1}),y=e=>{let{publisher:t,regional:i}=e,{categories:a,category:o,date:n,onCategoryChange:d,onDateChange:s}=m({publisher:t,regional:i});return(0,l.tZ)(r.x,{width:"full",display:"flex",justifyContent:"flex-end",marginBottom:"2",children:(0,l.BX)(b,{children:[(0,l.tZ)(w,{value:o,defaultValue:o,onChange:e=>d(e.currentTarget.value),option:a,backgroundColor:"white",borderColor:"greyscale70"}),(0,l.tZ)(p,{onDateChange:s,value:n})]})})},b=(0,a.Z)(r.x,{target:"e1engye20"})("display:flex;justify-content:space-between;gap:",n.RZ["2"],";width:100%;align-items:center;@media (min-width:768px){justify-content:flex-end;}"),w=(0,a.Z)(o.l,{target:"e1engye21"})("width:100%;border-width:1px;@media (min-width:768px){width:",n.RZ["32"],";}")},64553:function(e,t,i){i.d(t,{B:function(){return c}});var l=i(8512),a=i(91757),o=i(59497),r=i(31131),n=i(73570),d=i(23329),s=i(78322);let c=(e,t,i,c,u,g)=>{var h;let v=(0,n.useSearchParams)(),f=(null==c?void 0:c.current_page)||1,m=(0,n.usePathname)(),{isMobile:p}=(0,a.F)(),y=(0,l.V)().domain||"",b=g||20,w=(0,d.useCallback)(e=>{let t=new URLSearchParams(v.toString());t.set("page",e.toString()),window.open(`${m}?${t.toString()}`,"_self")},[m,v]),{data:x,fetchNextPage:C,hasNextPage:Z,isFetched:S,isLoading:k,error:L}=(0,r.N)({queryKey:["/api/section"],queryFn:t=>{let{pageParam:i}=t;return o.Z.get("/section",{params:{api_url:e,page:i}})},initialPageParam:2,enabled:!1,refetchOnWindowFocus:!1,getNextPageParam:(e,t)=>{var i,l,a,o,r;let n=e.data.data,d=null!==(a=null==n?void 0:null===(i=n.data)||void 0===i?void 0:i.meta)&&void 0!==a?a:null==n?void 0:n.meta,s=null!==(r=null!==(o=null==n?void 0:null===(l=n.data)||void 0===l?void 0:l.items)&&void 0!==o?o:null==n?void 0:n.items)&&void 0!==r?r:[];if((null==d?void 0:d.next_page)!==null&&!(s.length<b))return t.length+2}}),_=(0,d.useMemo)(()=>{let e=t;if("loadmore"===i){var l;let i=null==x?void 0:null===(l=x.pages)||void 0===l?void 0:l.flatMap(t=>{var i,l,a,o,r;return(null!==(r=null!==(o=null===(l=t.data.data)||void 0===l?void 0:null===(i=l.data)||void 0===i?void 0:i.items)&&void 0!==o?o:null===(a=t.data.data)||void 0===a?void 0:a.items)&&void 0!==r?r:[]).map((t,i)=>{var l,a,o,r,n,d,c,g,h,v,f,m;let b=null===(l=t.regional)||void 0===l?void 0:l.slug,w="";if(b&&y)try{let e=new URL(y),t=e.hostname.split(".");"www"===t[0]&&t.shift(),e.hostname=`${b}.${t.join(".")}`,w=e.origin}catch{w=y}else y&&(w=y);let x=(null===(a=t.category)||void 0===a?void 0:a.slug)||"";return{title:t.title,publishDate:t.release_date_txt,publishTime:t.release_date_txt,category:u&&(null===(o=t.subcategory)||void 0===o?void 0:o.name)!==""?null===(r=t.subcategory)||void 0===r?void 0:r.name:null===(n=t.category)||void 0===n?void 0:n.name,image:{src:t.cover_image,alt:t.title,source:t.title,priority:!1},isCsc:null===(d=t.types)||void 0===d?void 0:d.some(e=>{let{slug:t}=e;return["article-commercial","quiz-commercial"].includes(t)}),href:t.link,hrefCategory:x?`${w}/${x}${u&&(null===(c=t.subcategory)||void 0===c?void 0:c.slug)?`/${t.subcategory.slug}`:""}`:w,analytics:{...(0,s.ZH)(t,e.length+i+1,{name:"",metaTitle:t.title||""},p),page_type:"",screen_name:t.title||""},isQuiz:(null===(g=t.model)||void 0===g?void 0:g.slug)==="quiz",isPaid:(null===(h=t.tier)||void 0===h?void 0:h.post_tier)==="paid",city:(null===(v=t.types)||void 0===v?void 0:v.some(e=>{let{slug:t}=e;return"article-self-serve"===t}))?null===(f=t.regional)||void 0===f?void 0:f.name:null===(m=t.city)||void 0===m?void 0:m.name,types:t.types||[]}})||[]});i&&(e=[...t,...i])}return e},[i,x,t,u,p,y]),P=(null==x?void 0:null===(h=x.pages)||void 0===h?void 0:h.length)?Z:(null==c?void 0:c.next_page)!=null||(null==c?void 0:c.next_page)!==null&&!((null==_?void 0:_.length)<b);return{data:_,isLoading:k,error:L,currentPage:f,hasNextPage:P,isFetched:S,handleLoadMore:()=>{C()},handlePagination:w}}}}]);

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.