PageSourceSearch

https://www.tedbingo.com/app/chunk-M63OHZG3.js

js tedbingo.com collected 2026-10-09 23:48:10 UTC 6,372 bytes, 1 lines download raw bytes

1import{B as y,E as J}from"./chunk-MCTXPPDD.js";import{e as q}from"./chunk-TYHNJDIL.js";import{Ba as D,Ca as Y}from"./chunk-FPGJCOAR.js";import{Bc as C,Cb as k,Da as I,Gb as F,Lb as N,Mb as V,Ob as R,Pa as _,Pb as z,Qa as P,Qb as U,Rb as d,Sb as c,Tb as p,Tc as K,Ua as r,Ub as f,Uc as x,V as O,Zb as j,_ as s,ea as B,ec as W,fa as w,gc as g,jb as E,ka as L,n as G,na as b,qb as A,sc as $,tc as M,ya as S,zb as H}from"./chunk-TU7EUU3B.js";import"./chunk-IMPBB4AK.js";var T=(e=>(e.HIDE_BUTTON="0",e.VIEW_MORE="1",e.GO_TO_GAMES="2",e))(T||{});var v=class a{http=s(q);transferState=s(I);platformId=s(S);clientCache=new Map;CACHE_TTL_MS=6e5;async getGames(i){if(!i)return[];let t=i;if(D(this.platformId)){let e=this.clientCache.get(t);if(e&&Date.now()-e.fetchedAt<this.CACHE_TTL_MS)return e.data}if(this.transferState.hasKey(y)){let e=this.transferState.get(y,{});if(t in e){let n=e[t]||[];return D(this.platformId)&&(this.clientCache.set(t,{data:n,fetchedAt:Date.now()}),this.transferState.remove(y)),n}}return Y(this.platformId)?[]:this.fetchFromApi(i)}async fetchFromApi(i){try{let e=(await G(this.http.get(`/api/v3/modules/games/ig/${i}`)))?.data?.games||[];return this.clientCache.set(i,{data:e,fetchedAt:Date.now()}),e}catch(t){return console.warn("[BarcGamesDataService] Failed to fetch games:",i,t),[]}}static \u0275fac=function(t){return new(t||a)};static \u0275prov=O({token:a,factory:a.\u0275fac,providedIn:"root"})};var Z=()=>[import("./chunk-H42WVNBV.js").then(a=>a.BarcGameComponent)];function ee(a,i){if(a&1&&(c(0,"div",5),f(1,"app-barc-game",6),p()),a&2){let t,e,n,m,o=g(),h=o.$implicit,u=o.$index,l=g();r(),d("game",h)("gameIndex",u)("gamesURL",(t=l.appData())==null?null:t.gamesGameUrl)("isMoreInfoBtn",(e=l.appData())==null?null:e.gamesMoreinfoButton)("loaderGif",(n=l.appData())==null?null:n.gamesGameLoaderImage)("imageType",((m=l.appData())==null?null:m.gamesImagesType)||"vertical")}}function te(a,i){if(a&1&&(c(0,"div",5),f(1,"div",7),p()),a&2){let t,e,n=g(2);r(),$("vertical",(((t=n.appData())==null?null:t.gamesImagesType)||"vertical")==="vertical")("horizontal",((e=n.appData())==null?null:e.gamesImagesType)==="horizontal")}}function ae(a,i){a&1&&(A(0,ee,2,6)(1,te,2,4),H(2,0,Z,null,1),F(0,-1),k())}function ne(a,i){if(a&1){let t=j();c(0,"div",4)(1,"button",8),W("click",function(){B(t);let n=g();return w(n.toggleViewMore(n.ButtonAction.VIEW_MORE))}),p()()}if(a&2){let t,e=g();r(),d("innerHTML",(t=e.appData())==null?null:t.gamesButtonText,_)}}function ie(a,i){if(a&1&&(c(0,"div",4),f(1,"a",9),p()),a&2){let t,e,n=g();r(),d("innerHTML",(t=n.appData())==null?null:t.gamesButtonText,_)("href",(e=n.appData())==null?null:e.gamesButtonUrl,P)}}var Q=class a{utilityService=s(J);gamesDataService=s(v);destroyRef=s(L);ButtonAction=T;appData=x(null);id=x("0");gamesButtonAction=b("1");gamesList=b([]);displayedGamesList=b([]);destroyed=!1;constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0}),K(()=>{let i=this.appData(),t=this.id();!i||!t||t==="0"||this.gamesDataService.getGames(t).then(e=>{if(this.destroyed)return;this.gamesList.set(e);let n=Number(i.gamesLimit)||e.length;this.displayedGamesList.set(e.slice(0,n))})})}ngOnInit(){}toggleViewMore(i){let t=this.appData();if(i==="2"){this.utilityService.manualNavigation(t?.gamesButtonUrl);return}let e=Number(t?.gamesViewmoreLimit)||0,n=this.displayedGamesList(),m=this.gamesList(),o=n.length,h=[...n];for(let u=0;u<e;u++){let l=m[o+u];if(l)h.push(l);else{this.gamesButtonAction.set("0");break}}this.displayedGamesList.set(h)}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=E({type:a,selectors:[["app-barc-games"]],inputs:{appData:[1,"appData"],id:[1,"id"]},decls:10,vars:9,consts:[[1,"barc-games-container"],[1,"barc-games-title",3,"innerHTML"],[1,"barc-games-subheading",3,"innerHTML"],[1,"barc-game-gameslist"],[1,"games-link-wrapper"],[1,"game"],[3,"game","gameIndex","gamesURL","isMoreInfoBtn","loaderGif","imageType"],[1,"barc-game-skeleton"],[1,"games_button","general_buttonone","general_button_shadow",3,"click","innerHTML"],[1,"games_button","general_buttonone",3,"innerHTML","href"]],template:function(t,e){if(t&1&&(c(0,"div")(1,"div",0)(2,"div"),f(3,"h2",1)(4,"h3",2),c(5,"div",3),z(6,ae,4,0,null,null,R),p(),N(8,ne,2,1,"div",4)(9,ie,2,2,"div",4),p()()()),t&2){let n,m,o;M(C("module_",e.id())),r(2),M(C("barc-games-content module_",e.id())),r(),d("innerHTML",(n=e.appData())==null?null:n.gamesTitleText,_),r(),d("innerHTML",(m=e.appData())==null?null:m.gamesSubheadingText,_),r(2),U(e.displayedGamesList()),r(2),V(((o=e.appData())==null?null:o.gamesButtonAction)===e.ButtonAction.VIEW_MORE&&e.gamesList()&&e.displayedGamesList()&&e.gamesList().length>
1e.displayedGamesList().length?8:((o=e.appData())==null?null:o.gamesButtonAction)===e.ButtonAction.GO_TO_GAMES?9:-1)}},styles:[".barc-games-content[_ngcontent-%COMP%]{max-width:960px;margin:0 auto;text-align:center;padding:30px 10px}.barc-games-title[_ngcontent-%COMP%], .barc-games-subheading[_ngcontent-%COMP%]{margin:2px 0}.barc-game-gameslist[_ngcontent-%COMP%]{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin:calc(-1 * var(--bs-gutter-y)) calc(-.5 * var(--bs-gutter-x))}.barc-game-gameslist[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{box-sizing:border-box;flex-shrink:0;width:100%;max-width:100%;padding:0 calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.barc-game-gameslist[_ngcontent-%COMP%] > .game[_ngcontent-%COMP%]{flex:0 0 auto;width:25%!important;aspect-ratio:4/4}.barc-game-gameslist.row[_ngcontent-%COMP%]{align-items:center;justify-content:center;--bs-gutter-x: 1rem}.games_button[_ngcontent-%COMP%]{padding:6px 20px;cursor:pointer;border-style:solid;text-decoration:none;font-style:normal;display:inline-block}button.games_button[_ngcontent-%COMP%]{width:auto}.barc-game-skeleton[_ngcontent-%COMP%]{background:#0000000f;border-radius:8px;margin-bottom:20px}.barc-game-skeleton.vertical[_ngcontent-%COMP%]{aspect-ratio:4/4}.barc-game-skeleton.horizontal[_ngcontent-%COMP%]{aspect-ratio:16/9}@media (max-width: 600px){.barc-game-gameslist[_ngcontent-%COMP%]{flex-direction:row;justify-content:space-between;padding:0;margin:15px 0}.barc-game-gameslist[_ngcontent-%COMP%] > .game[_ngcontent-%COMP%]{flex-basis:50%;padding-top:10px;aspect-ratio:4/4}.barc-game-skeleton[_ngcontent-%COMP%]{margin-bottom:5px}}"],changeDetection:0})};export{Q as BarcGamesComponent};

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.