1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[609],{866:(t,e,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/latest",function(){return a(5468)}])},3991:(t,e,a)=>{"use strict";a.d(e,{E:()=>j,A:()=>I});var i=a(7876),s=a(2781),n=a(3145),r=a(1846),o=a(7525),l=a(7394),p=a(7404),d=a(4724);class c extends p.A{async getIndonesianBundle(){let t=(await this.api.getAppsList("apps",0,8,void 0,void 0,void 0,void 0,void 0,"15802811")).datalist.list.map(t=>new r.A(o.A.adapt(t,this.api.client.getLanguage())));return new d.c("Aplikasi Lokal Teratas",t)}async getAppsGamesList(t,e,a,i,s,n){let p=await this.api.getAppsGamesList(t,e,a,i,s,n),d=p.datalist.list.map(t=>new r.A(o.A.adapt(t,this.api.client.getLanguage()))),{total:c,next:g,offset:m,count:h}=p.datalist;return new l.A(d,g,m,h,c)}async getLastAppsGames(t,e,a,i,s){let n=(await this.api.getAppsGamesList(t,e,a,i,s)).datalist.list.map(t=>new r.A(o.A.adapt(t,this.api.client.getLanguage())));return new d.c("Last Updates",n)}async getListApps(t,e,a,i,s,n){let l=(await this.api.listApps(t,e,a,i,s,void 0,void 0,n)).datalist.list.map(t=>new r.A(o.A.adapt(t,this.api.client.getLanguage())));return new d.c("latest"===i?"Latest":"Rankings",l)}async getListGridApps(t,e,a,i,s,n){let p=await this.api.listApps(n,t,e,a,i,void 0,void 0,s||"main"),d=p.datalist.list.map(t=>new r.A(o.A.adapt(t,this.api.client.getLanguage()))),{total:c,next:g,offset:m,count:h}=p.datalist;return new l.A(d,g,m,h,c)}}(0,n._)(c,"storeName","apps");var g=a(5177),m=a(4517),h=a(4232),f=a(6513),u=a.n(f),w=a(2828),x=a(3476);let b=x.Ay.div.withConfig({componentId:"sc-113064ec-0"})(["margin-top:1rem;display:flex;align-items:center;flex-wrap:wrap;width:100%;","{grid-template-columns:repeat(auto-fill,116px);justify-content:space-between;display:grid;grid-auto-flow:row;}@media screen and (min-width:250px) and (max-width:365px){grid-template-columns:repeat(auto-fill,96px);}"],(0,w.down)("md")),v=x.Ay.div.withConfig({componentId:"sc-113064ec-1"})(["width:100%;display:flex;flex-direction:column;align-items:center;margin-top:1.5rem;"]),A=x.Ay.div.withConfig({componentId:"sc-113064ec-2"})(["display:flex;align-items:center;"]),y=x.Ay.a.withConfig({componentId:"sc-113064ec-3"})(["background:#ffffff;border:1px solid #ebebeb;box-sizing:border-box;border-radius:50%;font-family:Roboto;font-style:normal;font-weight:normal;font-size:12px;line-height:16px;color:#171717;margin-right:0.5rem;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;cursor:pointer;",";& :hover{border:2px solid #ebebeb;}"],t=>t.active&&(0,x.AH)(["background:#fe6446;color:#ffffff;"])),j=t=>{var e=parseInt(t.pageNumber);let a=()=>{let e=[1];for(var a=50,i=2;a<t.total;)e.push(i),i+=1,a+=50;return 1===e.length?[]:e},s=(0,h.useCallback)(()=>{var i=!1,s=t.total/50;if(50*e+50>t.total&&(i=!0),i&&e<=6)return a();if(e<=6)if(s<6)return a();else if(t.total<300)return[1,2,3,4,5,6];else if(t.total<400)return[1,2,3,4,5,6,7];else return[1,2,3,4,5,6,7,8];return e+2>s?e+1>s||i?[1,2,3,e-4,e-3,e-2,e-1,e]:[1,2,3,e-3,e-2,e-1,e,e+1]:[1,2,3,e-2,e-1,e,e+1,e+2]},[e,t.total]);return(0,i.jsx)(v,{page:t.page,children:(0,i.jsx)(A,{children:s().map(a=>(0,i.jsx)(y,{href:a>1?g.A.getURL(`${t.path}`,{page:a}):g.A.getURL(t.path),active:a==e,children:a},`paginator-number-${49*Math.random()+1}`))})})},$=t=>(0,i.jsx)(b,{children:Array.from(new Map(t.list.map(t=>[t.uname,t])).values()).map((e,a)=>(0,i.jsx)(s.A,{name:e.name,icon:e.icon,score:e.score,url:g.A.getAppURL(e.uname,void 0,void 0,m.Ru.language),size:e.size,eventName:t.eventName?t.eventName:void 0,parsedName:e.parsedName,cardType:t.cardType,index:a,page:t.page,main:t.main,uname:e.uname,appcoins:e.appcoins,package:e.package},`${a}-grid-card-id`))}),I=t=>{let e=new c(t.mature,t.language,t.beta,t.country),a=new l.A,[s,n]=(0,h.useState)(t.initialApps||a),[r,o]=(0,h.useState)(!0),[p,d]=(0,h.useState)(t.offset||0),g="apps"===t.catID?"applications":"games",[m,f]=(0,h.useState)(!1),[w,x]=(0,h.useState)(0),[b,v]=(0,h.useState)(0);(0,h.useEffect)(()=>{s.list.length>0&&t.countApps&&t.countApps(s.total,50)},[s]);let A=async a=>{m||p===b&&0!=p&&"downloads60d"===t.sort||setTimeout(async()=>{let i=await e.getListGridApps(p,50,a,g,t.appc?"appc":"main",t.storeName?t.storeName:void 0);i.mergeList(s),n(i),x(i.total),v(p),d(i.next),n(i)},0)},y=async()=>{m||setTimeout(async()=>{let a=await e.getAppsGamesList("apps",p,50,t.category,g);a.mergeList(s),x(a.total),d(a.next),n(a)},0)},I=async()=>{t.sort?A(t.sort):y()};return(0,h.useEffect)(()=>(r&&(o(!1),I()),()=>{n(a),d(0),f(!1),x(0),v(0)}),[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(u(),{next:()=>I(),hasMore:!0,dataLength:s.list.length,loader:null,scrollThreshold:.5,children:(0,i.jsx)($,{cardType:"vertical-xl",page:"infinite-grid",list:s.list,category:t.category,content:t.content})}),s.total?(0,i.jsx)(j,{path:t.path,pageNumber:t.pageNumber.toString(),total:s.total}):(0,i.jsx)("div",{})]})}},4333:(t,e,a)=>{"use strict";a.d(e,{A:()=>g});var i=a(7876),s=a(8230),n=a.n(s),r=a(7626),o=a(8011),l=a(2828),p=a(3476);let d=p.Ay.span.withConfig({componentId:"sc-4197143c-0"})(["font-family:Roboto;font-style:normal;font-weight:normal;font-size:16px;line-height:24px;text-align:center;color:",";margin-right:2rem;display:flex;align-items:center;justify-content:center;cursor:pointer;border-bottom:",";white-space:pre;padding-top:",";","{margin-right:1.5rem;}"],t=>t.hover?"#FE6446":"#6F6F6F",t=>t.hover&&"1px solid #FE6446",t=>t.hover&&"1px",(0,l.down)("sm")),c=p.Ay.div.withConfig({componentId:"sc-4197143c-1"})(["display:flex;align-items:center;","{padding-left:1rem;padding-top:0;overflow-x:scroll;width:100%;-ms-overflow-style:none;scrollbar-width:none;& ::-webkit-scrollbar{display:none;}}"],(0,l.down)("md")),g=t=>{let{categoryId:e}=t,a=(0,o.d4)(t=>t.categories.subcategoryTab),{t:s}=(0,r.B)("categories"),l=[{id:"all",title:s(`categories:tabs.all_${"apps"===e?"apps":"games"}`),link:`/group/${"apps"===e?"applications":"games"}`,as:`/categories?id=${"apps"===e?"applications":"games"}`},{id:"rankings",title:s("categories:tabs.rankings"),link:`/${e}`,as:`/rankings?id=${e}`},{id:"latest",title:s("categories:tabs.latest"),link:`/${e}/latest`,as:`/latest?id=${e}&sort=latest`},{id:"trending",title:s("categories:tabs.trending"),link:`/${e}/trending`,as:`/trending?id=${e}&sort=trending`},{id:"discover",title:s("categories:tabs.discover"),link:`/${e}/discover`,as:`/discover?id=${e}&sort=discover`}];return(0,i.jsx)(c,{children:l.map((t,e)=>(0,i.jsx)(n(),{href:t.as,as:t.link,children:(0,i.jsx)(d,{hover:a===t.id,children:t.title},`${1e4*Math.random()+0}-categories-tab`)},`${1e4*Math.random()+0}-tab-link`))},`tabs-container-${l}`)}},5069:(t,e,a)=>{"use strict";a.r(e),a.d(e,{default:()=>u});var i=a(7876),s=a(8230),n=a.n(s),r=a(2828),o=a(3476);let l=o.Ay.section.withConfig({componentId:"sc-3536a4d-0"})(["align-items:center;justify-content:space-between;padding:0.5rem;padding-left:0;padding-bottom:",";padding-top:0;",";",";",";",";",";",";",";"],t=>"app-view"===t.page&&"0",t=>"apps-games"===t.page&&(0,o.AH)(["","{margin-left:0.75rem;}"],(0,r.down)("md")),t=>"app-view"===t.page&&(0,o.AH)(["","{margin-left:0.75rem;}"],(0,r.down)("md")),t=>"rankings"===t.page&&(0,o.AH)(["","{margin-left:0.75rem;}"],(0,r.down)("md")),t=>"store"===t.page&&(0,o.AH)(["","{margin-left:0.25rem;}"],(0,r.down)("md")),t=>"editorials"===t.page&&(0,o.AH)(["padding-bottom:0;","{margin-left:0.75rem;padding-bottom:0.5rem;padding-left:0.25rem;}"],(0,r.down)("md")),t=>"store-view"===t.page&&(0,o.AH)(["","{margin-left:0.75rem;}"],(0,r.down)("md")),t=>"latest"===t.page&&(0,o.AH)(["","{margin-left:0.75rem;}"],(0,r.down)("md"))),p=o.Ay.nav.withConfig({componentId:"sc-3536a4d-1"})(["position:relative;margin-bottom:0;&:not(:last-child){margin-bottom:0;}"]),d=o.Ay.ul.withConfig({componentId:"sc-3536a4d-2"})([""]),c=o.Ay.li.withConfig({componentId:"sc-3536a4d-3"})(["display:inline-flex;flex-direction:row;justify-content:flex-start;width:auto;margin-left:",";","{margin-left:0.25rem;}& :first-child{padding-left:0;}"],t=>t.first?"0":"0.25rem",(0,r.down)("md")),g=o.Ay.div.withConfig({componentId:"sc-3536a4d-4"})(["font-size:15px;height:1rem;width:auto;margin-left:0.5rem;padding-left:2%;&:first-child{margin-left:0;padding-left:0;}&li::before{color:#fe6446;}","{font-size:12px;height:1rem;width:auto;&:first-child{margin-left:0;}}"],(0,r.down)("md")),m=o.Ay.span.withConfig({componentId:"sc-3536a4d-5"}
1)(["height:auto;line-height:1.5rem;margin-left:0.25rem;color:#ff6946;"]),h=o.Ay.a.withConfig({componentId:"sc-3536a4d-6"})(["line-height:1.5rem;color:",";text-transform:capitalize;font-size:",";font-weight:",";& :hover{color:#ff6946;text-decoration:",";text-decoration-color:",";}","{font-size:10px;}"," &:last-child{display:block;}"],t=>t.last?"#ff6946":"#7e7e7e",t=>t.last?"0.82rem":"0.75rem",t=>t.last&&"bold",t=>!t.last&&"underline !important",t=>!t.last&&"#ff6946 !important",(0,r.down)("md"),t=>t.isactive&&(0,o.AH)(["pointer-events:visible;"])),f=o.Ay.span.withConfig({componentId:"sc-3536a4d-7"})(["line-height:1.5rem;color:",";text-transform:capitalize;font-size:",";font-weight:",";& :hover{color:#ff6946;text-decoration:",";text-decoration-color:",";}","{font-size:10px;}"," &:last-child{display:block;}"],t=>t.last?"#ff6946":"#7e7e7e",t=>t.last?"0.82rem":"0.75rem",t=>t.last&&"bold",t=>!t.last&&"underline !important",t=>!t.last&&"#ff6946 !important",(0,r.down)("md"),t=>t.isactive&&(0,o.AH)(["pointer-events:visible;"])),u=t=>{let e=t.breadcrumbs.length-1,a=t.breadcrumbs.map((a,s)=>{let r=s<e;return(0,i.jsxs)(c,{first:0===s,children:[(0,i.jsx)(g,{last:!r,children:t.absolute?(0,i.jsxs)(h,{title:a.name,isactive:!0,href:a.url,last:!r,children:[" ",a.name]}):(0,i.jsx)(n(),{href:a.path,as:a.url,children:(0,i.jsx)(f,{title:a.name,last:!r,isactive:!0,children:a.name})})}),r&&(0,i.jsxs)(m,{children:[" ",">"," "]})]},s)});return(0,i.jsx)(l,{page:t.page,children:(0,i.jsx)(p,{children:(0,i.jsxs)(d,{children:[" ",a," "]})})})}},5468:(t,e,a)=>{"use strict";a.r(e),a.d(e,{LatestOthersContainer:()=>j,OthersHeader:()=>$,__N_SSP:()=>y,default:()=>I});var i=a(7876),s=a(7814),n=a(3991),r=a(4333),o=a(5069),l=a(5945),p=a(7294),d=a(9906),c=a(8246),g=a(5177),m=a(9284),h=a(4232),f=a(7626),u=a(8011),w=a(6638),x=a(9778),b=a(2828),v=a(3476);let A=v.Ay.div.withConfig({componentId:"sc-dcfc14f2-0"})(["width:100%;","{margin-top:0.5rem;}"],(0,b.down)("md"));var y=!0;let j=v.Ay.div.withConfig({componentId:"sc-dcfc14f2-1"})(["width:780px;","{width:100%;padding:0 0.5rem;}"],(0,b.down)("md")),$=v.Ay.h2.withConfig({componentId:"sc-dcfc14f2-2"})(["font-family:Roboto;font-style:normal;font-weight:500;font-size:14px;line-height:20px;color:#171717;margin-left:0.5rem;"]),I=t=>{let{t:e}=(0,f.B)(["bundles","apps-list","common"]),a=(0,u.wA)(),b=(0,u.d4)(t=>t.sideNav.tabPage),v=(0,u.d4)(t=>t.sideNav.moreTab);(0,h.useEffect)(()=>{v?(0,c.q)():(0,c.i)()},[v]),(0,h.useEffect)(()=>{a((0,w.M)("latest")),a((0,x.FM)(t.catID))},[]);let y="apps"==t.catID?"apps":"games",I=(0,h.useCallback)(()=>[new d.Q(e("common:homepage"),"index","/"),new d.Q(e(`common:category.${t.catID}`),`/categories?id=${"apps"==t.catID?"applications":"games"}`,`/group/${"apps"==t.catID?"applications":"games"}`),new d.Q(e("common:category.latest"),`/categories?id=${t.catID}&sort=latest`,`/${y}/latest`)],[t.catID]),k=(0,h.useCallback)(()=>{let{language:a,pageNumber:i,catID:s}=t,n=i>1?e(`apps-list:${s}.meta.latest.title_pagination`,{page:i}):e(`apps-list:${s}.meta.latest.title`),r=i>1?e(`apps-list:${s}.meta.latest.description_pagination`,{page:i}):e(`apps-list:${s}.meta.latest.description`),o=e(`apps-list:${s}.meta.latest.keywords`,{returnObjects:!0});return{title:n,description:r,keywords:o,url:g.A.getURL(`/${s}/latest${1!==t.pageNumber?`?page=${t.pageNumber}`:""}`,void 0,a),alternate:g.A.getURLMaskWithLang(`/${s}/latest${1!==t.pageNumber?`?page=${t.pageNumber}`:""}`)}},[t.catID]);return(0,i.jsx)(i.Fragment,{children:"more"!=b?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{title:k().title,description:k().description,keywords:k().keywords,url:k().url,alternate:k().alternate,canonical:k().url,prevNextPaginator:(0,p.A)(t.totalApps,50,t.pageNumber,`/${t.catID}/latest`)}),(0,i.jsx)(o.default,{page:"latest",breadcrumbs:I()}),(0,i.jsx)(m.TitleH1,{marginBottom:"8px",children:e(`apps-list:titles.latest_${t.catID}`)}),(0,i.jsx)(r.A,{categoryId:t.catID}),(0,i.jsx)(A,{children:(0,i.jsx)(l.A,{title:t.lastBundles.title,link:{path:"",url:""},bundleList:t.lastBundles,page:"new-highlight-appsgames",cardType:"highlight-main-slider",main:!0,mobile:t.mobile,entryPoint:"categories-latest",content:y+"-latest",isFeatureGraphic:!0},`${t.lastBundles.id}-highlight-categories`)}),(0,i.jsxs)(j,{children:[(0,i.jsx)($,{children:e("common:others")}),(0,i.jsx)(n.A,{mature:t.mature,language:t.language,beta:t.beta,country:t.country,mobile:t.mobile,catID:t.catID,offset:t.offset,category:"latest",content:y+"-latest",path:`/${t.catID}/latest`,pageNumber:t.pageNumber,userAgent:t.userAgent,sort:"latest",storeName:"aptoide-web",initialApps:t.gridApps})]})]}):(0,i.jsx)(i.Fragment,{})})}},6638:(t,e,a)=>{"use strict";a.d(e,{M:()=>s});var i=a(4748);function s(t){return{type:i.c,payload:t}}},7294:(t,e,a)=>{"use strict";a.d(e,{A:()=>i});let i=(t,e,a,i)=>{let s={};return a>1&&(s={...s,prev:{path:i,pageTo:a-1}}),a*e<t&&(s={...s,next:{path:i,pageTo:Number(a)+1}}),s}},9906:(t,e,a)=>{"use strict";a.d(e,{Q:()=>s});var i=a(3145);class s{constructor(t,e,a,s,n){(0,i._)(this,"name",void 0),(0,i._)(this,"path",void 0),(0,i._)(this,"url",void 0),(0,i._)(this,"app",void 0),(0,i._)(this,"isactive",void 0),this.name=t,this.path=e,this.url=a,this.app=s,this.isactive=n}}}},t=>{t.O(0,[504,9284,8243,5387,1979,8221,636,3180,9895,8792],()=>t(t.s=866)),_N_E=t.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.