1"use strict";(self.webpackChunkshops=self.webpackChunkshops||[]).push([[5780],{95687:(w,f,a)=>{a.d(f,{p:()=>t});var n=a(14042),v=a(17705),o=a(65849);let t=(()=>{var g;class l{constructor(h){(0,n.A)(this,"voucherGamesRepository",void 0),this.voucherGamesRepository=h}execute(h){return this.voucherGamesRepository.GetProductVersion(h)}}return g=l,(0,n.A)(l,"\u0275fac",function(h){return new(h||g)(v.KVO(o.y))}),(0,n.A)(l,"\u0275prov",v.jDH({token:g,factory:g.\u0275fac,providedIn:"root"})),l})()},89436:(w,f,a)=>{a.d(f,{H:()=>g});var n=a(14042),v=a(21413),o=a(84412),t=a(17705);let g=(()=>{var l;class d{constructor(){(0,n.A)(this,"dataSource",new v.B),(0,n.A)(this,"dataProduct",new o.t(null)),(0,n.A)(this,"dataCategory",new o.t(null)),(0,n.A)(this,"selectedFlashSale",new o.t(null)),(0,n.A)(this,"product$",this.dataProduct.asObservable()),(0,n.A)(this,"category$",this.dataCategory.asObservable())}getDataSource(){return this.dataSource.asObservable()}setDataSource(c){return this.dataSource.next(c)}getFlashSale(){return this.selectedFlashSale.asObservable()}setFlashSale(c){return this.selectedFlashSale.next(c)}setProductList(c){this.dataProduct.next(c)}setCategoryList(c){this.dataCategory.next(c)}removeDuplicateList(c,x){return[...new Map(c.map(_=>[_[x],_])).values()]}}return l=d,(0,n.A)(d,"\u0275fac",function(c){return new(c||l)}),(0,n.A)(d,"\u0275prov",t.jDH({token:l,factory:l.\u0275fac,providedIn:"root"})),d})()},3277:(w,f,a)=>{a.d(f,{B:()=>g});var n=a(14042),v=a(60177),o=a(17705),t=a(12524);let g=(()=>{var l;class d{constructor(c){(0,n.A)(this,"dialogRef",void 0),this.dialogRef=c}close(){this.dialogRef.close()}}return l=d,(0,n.A)(d,"\u0275fac",function(c){return new(c||l)(o.rXU(t.CP))}),(0,n.A)(d,"\u0275cmp",o.VBU({type:l,selectors:[["ng-component"]],standalone:!0,features:[o.aNF],decls:13,vars:0,consts:[[1,"container-maintenance"],[1,"maintenance-wrapper"],[1,"image-wrapper"],["loading","lazy","src","assets/images/payment-notice.png","alt","Telkomsel Payment Notice",1,""],[1,"text-wrapper"],[1,"text-1"],[1,"maintenance-text"],[1,"button-wrapper"],[1,"btn-primary-submit",3,"click"]],template:function(c,x){1&c&&(o.j41(0,"div",0)(1,"div",1)(2,"div",2),o.nrm(3,"img",3),o.k0s(),o.j41(4,"div",4)(5,"span",5),o.EFF(6,"Maaf, produk sedang dalam perbaikan"),o.k0s(),o.j41(7,"div",6)(8,"p"),o.EFF(9," Produk yang anda cari sedang dalam perbaikan dan akan segera kembali "),o.k0s()()(),o.j41(10,"div",7)(11,"button",8),o.bIt("click",function(){return x.close()}),o.EFF(12," OK "),o.k0s()()()())},dependencies:[v.MD],styles:[".container-maintenance[_ngcontent-%COMP%] .maintenance-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center}.container-maintenance[_ngcontent-%COMP%] .maintenance-wrapper .image-wrapper{display:flex}@media (min-width: 768px){.container-maintenance[_ngcontent-%COMP%] .maintenance-wrapper .image-wrapper{margin-top:1.5rem}}.container-maintenance[_ngcontent-%COMP%] .maintenance-wrapper .text-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center}.container-maintenance[_ngcontent-%COMP%] .maintenance-wrapper .text-wrapper .text-1{margin-bottom:.75rem;display:flex;width:100%;justify-content:center;text-align:center;font-family:poppins-bold,Arial,sans-serif;font-size:16px;--tw-text-opacity: 1;color:rgb(0 26 65 / var(--tw-text-opacity, 1));line-height:24px;font-style:normal;letter-spacing:-1px}@media (min-width: 768px){.container-maintenance[_ngcontent-%COMP%] .maintenance-wrapper .text-wrapper .text-1{margin-top:.5rem;font-size:24px;line-height:32px;letter-spacing:0}}.container-maintenance[_ngcontent-%COMP%] .maintenance-wrapper .text-wrapper .maintenance-text{margin-bottom:.75rem;display:flex;justify-content:center;text-align:center;font-size:16px;line-height:24px}
1.container-maintenance[_ngcontent-%COMP%] .maintenance-wrapper .text-wrapper .maintenance-text p{color:#4e5764}.container-maintenance[_ngcontent-%COMP%] .maintenance-wrapper .button-wrapper{margin-top:1.5rem;display:flex;width:100%;justify-content:center}.container-maintenance[_ngcontent-%COMP%] .maintenance-wrapper .button-wrapper button{margin:0;width:100%;outline:2px solid transparent;outline-offset:2px}@media (min-width: 768px){.container-maintenance[_ngcontent-%COMP%] .maintenance-wrapper .button-wrapper button{width:11rem}}"]})),d})()},15780:(w,f,a)=>{a.d(f,{x:()=>R});var n=a(14042),v=a(47987),o=a(60177),t=a(17705),g=a(73955),l=a(94822),d=a(3277),h=a(22752),c=a(82546),x=a(12524),_=a(65849);let O=(()=>{var r;class m{constructor(i){(0,n.A)(this,"voucherGamesRepository",void 0),this.voucherGamesRepository=i}execute(i){return this.voucherGamesRepository.GetThumbnail(i)}}return r=m,(0,n.A)(m,"\u0275fac",function(i){return new(i||r)(t.KVO(_.y))}),(0,n.A)(m,"\u0275prov",t.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})),m})();var C=a(95687),M=a(89436),y=a(52168);let A=(()=>{var r;class m{constructor(i){(0,n.A)(this,"voucherGamesRepository",void 0),this.voucherGamesRepository=i}execute(i){return this.voucherGamesRepository.GetVoucherGamesList(i)}}return r=m,(0,n.A)(m,"\u0275fac",function(i){return new(i||r)(t.KVO(_.y))}),(0,n.A)(m,"\u0275prov",t.jDH({token:r,factory:r.\u0275fac,providedIn:"root"})),m})();var G=a(96106);function D(r,m){if(1&r&&(t.j41(0,"span",15),t.EFF(1),t.k0s()),2&r){const s=t.XpG(2).$implicit;t.Y8G("ngClass",s.isMaintenance?"maintenance-state":"promo-state"),t.R7$(1),t.JRh(s.ribbonTextId)}}function T(r,m){if(1&r&&(t.j41(0,"div",7),t.DNE(1,D,2,2,"span",8),t.j41(2,"div",9),t.nrm(3,"img",10),t.k0s(),t.j41(4,"div",11)(5,"div",12)(6,"div",13),t.EFF(7),t.k0s(),t.j41(8,"p",14),t.EFF(9),t.k0s()()()()),2&r){const s=t.XpG().$implicit,i=t.XpG();t.R7$(1),t.Y8G("ngIf",s.ribbonTextId),t.R7$(2),t.Y8G("ngClass",s.isShowForm?"active-thumbnail":"")("lazyImage",s.imageProduct)("alt",s.metaTagName)("fallbackSrc",i.fallBackSrc),t.R7$(4),t.JRh(s.gameName),t.R7$(2),t.JRh(s.short_description)}}function E(r,m){if(1&r){const s=t.RV6();t.j41(0,"div",5),t.bIt("click",function(){const e=t.eBV(s),u=e.index,p=e.$implicit,b=t.XpG();return t.Njj(b.getProductVersion(u,p))}),t.DNE(1,T,10,7,"div",6),t.k0s()}if(2&r){const s=m.$implicit;t.R7$(1),t.Y8G("ngIf",s.imageProduct)}}function S(r,m){if(1&r){const s=t.RV6();t.j41(0,"div",16)(1,"button",17),t.bIt("click",function(){t.eBV(s);const e=t.XpG();return t.Njj(e.loadMoreData())}),t.EFF(2,"Load More"),t.k0s()()}}const U=function(r){return{"no-padding":r}};let R=(()=>{var r;class m{constructor(i,e,u,p,b,P,V,I,k){(0,n.A)(this,"platformId",void 0),(0,n.A)(this,"dialog",void 0),(0,n.A)(this,"getThumbnailUsecase",void 0),(0,n.A)(this,"getProductVersionUsecase",void 0),(0,n.A)(this,"passingDataService",void 0),(0,n.A)(this,"router",void 0),(0,n.A)(this,"activatedRoute",void 0),(0,n.A)(this,"getVoucherGamesListUsecase",void 0),(0,n.A)(this,"windowService",void 0),(0,n.A)(this,"showTitle",!0),(0,n.A)(this,"showDetail",!0),(0,n.A)(this,"noPadding",!1),(0,n.A)(this,"showAllProduct",void 0),(0,n.A)(this,"listOfProduct",[]),(0,n.A)(this,"listOfProductShowed",void 0),(0,n.A)(this,"showedIndex",void 0),(0,n.A)(this,"selectedDataThumbnail",void 0),(0,n.A)(this,"positionPopup",void 0),(0,n.A)(this,"fromFlashSale",!1),(0,n.A)(this,"selectedFlashSale",null),(0,n.A)(this,"prevIndex",void 0),(0,n.A)(this,"totalPages",void 0),(0,n.A)(this,"currentPage",1),(0,n.A)(this,"fallBackSrc",h.$.fromGlobal(c.b.DUNIA_GAMES_LOGO)),this.platformId=i,this.dialog=e,this.getThumbnailUsecase=u,this.getProductVersionUsecase=p,this.passingDataService=b,this.router=P,this.activatedRoute=V,this.getVoucherGamesListUsecase=I,this.windowService=k,(0,o.UE)(this.platformId)&&window.innerWidth<1024&&(this.positionPopup={bottom:"0px"})}ngOnInit(){this.getVoucherGamesList(),this.passingDataService.getFlashSale().subscribe(e=>{if(e){this.selectedFlashSale=e;const u=this.listOfProductShowed.find(b=>b.id===e.product.id.toString()),p=this.listOfProductShowed.findIndex(b=>b.id===e.product.id.toString());this.fromFlashSale=!0,this.getProductVersion(p,u)}});const i=this.activatedRoute.snapshot.queryParams.product;if(i){const e=this.listOfProduct.find(u=>u.slug===i);this.getProductVersion(e.id,e)}}getVoucherGamesList(){this.selectedFlashSale=null,this.getVoucherGamesListUsecase.execute({page:this.currentPage,perPage:10}).subscribe(e=>{if(this.totalPages=e.meta.pagination.totalPages,this.currentPage=e.meta.pagination.currentPage,this.listOfProductShowed=e.data,this.listOfProduct=e.data,this.activatedRoute.snapshot.queryParams){const u=this.activatedRoute.snapshot.queryParams.slug,p=this.activatedRoute.snapshot.queryParams.index,b=this.listOfProductShowed.find(P=>(null==P?void 0:P.slug)===u);this.getProductVersion(p,b)}})}loadMoreData(){this.currentPage>=this.totalPages||this.getVoucherGamesListUsecase.execute({page:this.currentPage+1,perPage:10}).subscribe({next:e=>{const u=e.data.filter(p=>"telco"!==p.type);this.listOfProduct=[...this.listOfProduct,...u],this.listOfProductShowed=this.listOfProduct,this.currentPage=e.meta.pagination.currentPage,this.totalPages=e.meta.pagination.totalPages},error:e=>{console.error("Error loading more products:",e)},complete:()=>{}})}getProductVersion(i,e){this.showDetail?null!=e&&e.isHaveRedirectPage&&null!=e&&e.urlRedirect?this.windowService.href(e.urlRedirect):((this.prevIndex||0===this.prevIndex)&&(this.listOfProductShowed[this.prevIndex].isShowForm=!1),this.prevIndex=i,null!=e&&e.isMaintenance?this.dialog.open(d.B,{data:e,height:"auto",width:"100%",maxWidth:"637px",panelClass:"custom-border",scrollStrategy:new v.t0,position:this.positionPopup,backdropClass:"custom-backdrop-mat-dialog"}):this.getProductVersionUsecase.execute({productName:null==e?void 0:e.slug}).subscribe(u=>{this.getThumbnailDetail(u.data.version,null==e?void 0:e.slug,i)})):this.router.navigate(["/voucher-games"],{queryParams:{slug:e.slug,version:e.version,index:i}})}getThumbnailDetail(i,e,u){this.router.navigate(["/voucher-games/".concat(e)
1],{queryParams:{version:i,index:u}})}closeForm(i){i.isShowForm=!1}}return r=m,(0,n.A)(m,"\u0275fac",function(i){return new(i||r)(t.rXU(t.Agw),t.rXU(x.bZ),t.rXU(O),t.rXU(C.p),t.rXU(M.H),t.rXU(y.Ix),t.rXU(y.nX),t.rXU(A),t.rXU(G.s7s))}),(0,n.A)(m,"\u0275cmp",t.VBU({type:r,selectors:[["thumbnail-voucher-games"]],inputs:{showTitle:"showTitle",showDetail:"showDetail",noPadding:"noPadding",showAllProduct:"showAllProduct"},standalone:!0,features:[t.aNF],decls:5,vars:5,consts:[[1,"voucher-games-container",3,"ngClass"],[1,"thumbnail-container"],[1,"thumbnail-item-list"],[3,"click",4,"ngFor","ngForOf"],["class","thumbnail-action",4,"ngIf"],[3,"click"],["class","item-thumbnail",4,"ngIf"],[1,"item-thumbnail"],["class","thumbnail-state",3,"ngClass",4,"ngIf"],[1,"item-img"],["loading","lazy",3,"ngClass","lazyImage","alt","fallbackSrc"],[1,"item-text"],[1,"item-content"],[1,"text-title","truncate-multiline"],[1,"text-desc","truncate-text"],[1,"thumbnail-state",3,"ngClass"],[1,"thumbnail-action"],[1,"btn-primary-submit","w-32",3,"click"]],template:function(i,e){1&i&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.DNE(3,E,2,1,"div",3),t.k0s(),t.DNE(4,S,3,0,"div",4),t.k0s()()),2&i&&(t.Y8G("ngClass",t.eq3(3,U,e.noPadding)),t.R7$(3),t.Y8G("ngForOf",e.listOfProductShowed),t.R7$(1),t.Y8G("ngIf",e.totalPages!==e.currentPage))},dependencies:[o.MD,o.YU,o.Sq,o.bT,g.h,l.h],styles:[".voucher-games-container[_ngcontent-%COMP%]{max-width:1440px;margin-left:auto;margin-right:auto}@media (min-width: 640px){.voucher-games-container[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem}}@media (min-width: 768px){.voucher-games-container[_ngcontent-%COMP%]{padding-left:.75rem;padding-right:.75rem}}@media (min-width: 1024px){.voucher-games-container[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}.voucher-games-container.no-padding[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.voucher-games-container[_ngcontent-%COMP%] .line-wrapper{display:flex;justify-content:center}.voucher-games-container[_ngcontent-%COMP%] .line-wrapper .line-header{margin-top:1.5rem;margin-bottom:1.5rem;display:flex;width:8rem;justify-content:center;border-top:6px solid #ed0226}@media (min-width: 768px){.voucher-games-container[_ngcontent-%COMP%] .line-wrapper .line-header{margin-top:2.75rem;margin-bottom:2.75rem;width:12rem}}.voucher-games-container[_ngcontent-%COMP%] .header-thumbnail{padding-left:1.5rem;padding-right:1.5rem;padding-bottom:.75rem;text-align:center;font-family:telkomsel-batik-bold,Arial,sans-serif;font-size:32px;--tw-text-opacity: 1;color:rgb(0 26 65 / var(--tw-text-opacity, 1))}@media (min-width: 1280px){.voucher-games-container[_ngcontent-%COMP%] .header-thumbnail{padding-left:0;padding-right:0;padding-bottom:2.5rem}}@media (min-width: 768px){.voucher-games-container[_ngcontent-%COMP%] .header-thumbnail{font-size:56px}}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container{position:relative;display:flex;flex-direction:column}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list{margin-top:2.5rem;margin-bottom:2.5rem;display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:1rem}@media (min-width: 640px){.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width: 768px){.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width: 1024px){.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width: 1280px){.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list{grid-template-columns:repeat(5,minmax(0,1fr))}}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail{position:relative;margin-left:1.25rem;margin-right:1.25rem;display:flex;cursor:pointer;border-radius:1.5rem;box-shadow:0 4px 6px -4px #0003}@media (min-width: 640px){.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail{margin:0;flex-direction:column}}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail .thumbnail-state{position:absolute;z-index:50;display:flex;width:auto;flex-direction:row;align-items:center;padding:.5rem .75rem;font-family:poppins-bold,Arial,sans-serif;font-size:10px;min-width:90px;border-radius:20px 0}@media (min-width: 640px){.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail .thumbnail-state{align-items:center;justify-content:center;padding:8px 16px}}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail .thumbnail-state.maintenance-state{left:0;z-index:10;--tw-bg-opacity: 1;background-color:rgb(237 2 38 / var(--tw-bg-opacity, 1));color:#fff}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail .thumbnail-state.promo-state{left:0;z-index:10;--tw-bg-opacity: 1;background-color:rgb(253 162 43 / var(--tw-bg-opacity, 1))}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail .item-img{height:7rem;width:7rem;border-top-right-radius:1.5rem;border-top-left-radius:1.5rem}@media (min-width: 640px){.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail .item-img{height:auto;width:100%}}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail .item-img img{min-height:7rem;min-width:7rem;border-top-left-radius:1.5rem;border-bottom-left-radius:1.5rem;object-fit:cover}@media (min-width: 640px){.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail .item-img img{min-height:228px;width:100%;border-top-left-radius:1.5rem;border-top-right-radius:1.5rem;border-bottom-left-radius:0}}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail .item-text{height:7rem;width:100%;padding:1rem}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail .item-text .item-content{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:.5rem}@media (min-width: 640px){.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail .item-text .item-content{align-items:flex-start;justify-content:center}}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail .item-text .item-content .text-title{font-family:telkomsel-batik-bold,Arial,sans-serif;font-size:18px;line-height:1.5rem;--tw-text-opacity: 1;color:rgb(0 26 65 / var(--tw-text-opacity, 1))}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail .item-text .item-content .text-desc{font-family:poppins-regular,Arial,sans-serif;font-size:12px;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(0 26 65 / var(--tw-text-opacity, 1))}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail .truncate-multiline{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail .truncate-text{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-item-list .item-thumbnail:hover .item-img img{border-width:3px;--tw-border-opacity: 1;border-color:rgb(237 2 38 / var(--tw-border-opacity, 1))}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-action{margin-top:0;margin-bottom:5rem;display:flex;justify-content:center}.voucher-games-container[_ngcontent-%COMP%] .thumbnail-container .thumbnail-action button{height:3.5rem;width:13rem;--tw-border-opacity: 1;border-color:rgb(255 0 37 / var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 0 37 / var(--tw-text-opacity, 1));border:2px solid #ed0226;box-sizing:border-box;border-radius:36px}"]})),m})()}}]);
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.