PageSourceSearch

https://www.licious.in/_next/static/chunks/pages/gom-city-battles-2acda0c120281330.js

js licious.in collected 2026-10-01 11:44:54 UTC 13,462 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6347],{4681:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/gom-city-battles",function(){return a(99989)}])},5463:(e,t,a)=>{"use strict";a.d(t,{Ms:()=>l,Ze:()=>s,yP:()=>i});let i="gom_city_battles_gamearena_visited",l={CAMPAIGN_NAME:"GOM City Battles",CAMPAIGN_FULL_NAME:"Game of Meat - City Battles",SCORE_LABEL:"RUNS",VIEW_CART:"View Cart",HOW_TO_PLAY:"How to Play",CITY_LEADERBOARD:"City Leaderboard",COUPON_APPLY_TEXT:"Copy and paste code at checkout",PLAY_SCORE_WIN:"PLAY. SCORE. WIN.",TERMS_AND_CONDITIONS:"Terms & Conditions"},s={plus:{url:"/image/rebranding/svg/Plus.svg",alt:"Increase quantity",type:"image"},minus:{url:"/image/rebranding/svg/Minus.svg",alt:"Decrease quantity",type:"image"},infoIcon:{url:"/image/rebranding/svg/info_icon.svg",alt:"Info Icon",type:"image"},whiteArrow:{url:"/image/white_arrow.svg",alt:"View Cart",type:"image"},groundBg:{url:"/image/campaigns/gom-city-battles/city-battles-ground.webp",alt:"GOM Progress Background",type:"image"},groundFadeBg:{url:"/image/campaigns/gom-city-battles/city-battles-ground-fade.webp",alt:"GOM Progress Background Fade",type:"image"},giftIcon:{url:"/image/campaigns/gom-city-battles/gift-icon.gif",alt:"Gift",type:"image"},footerBg:{url:"/image/campaigns/gom-city-battles/footer-bg.png",alt:"Footer Background",type:"image"},appUpdateRequiredBg:{url:"/image/campaigns/gom-city-battles/update-required-bg.webp",alt:"App Update Required Icon",type:"image"},goldBadge:{url:"/image/campaigns/gom-city-battles/gold-badge.svg",alt:"Gold Badge",type:"image"},silverBadge:{url:"/image/campaigns/gom-city-battles/silver-badge.svg",alt:"Silver Badge",type:"image"},predictWinButton:{url:"/image/campaigns/gom-city-battles/predict-play-button.png",alt:"Predict Win Button",type:"image"},lockIcon:{url:"https://assets.licious.in/oms/105c2f75-4847-aad2-95ff-3a1f17bb3f91/original/1774894420990.png",alt:"Lock Icon",type:"image"},checkIcon:{url:"https://assets.licious.in/oms/b467605b-125e-42ae-cff4-592cf63b4afe/original/1774447725520.webp",alt:"Completed",type:"image"},lockedBadge:{url:"https://assets.licious.in/oms/9909d6a8-a2f8-cdd6-8525-e53743b9aaf2/original/1774447810291.webp",alt:"Locked",type:"image"},claimedBadge:{url:"https://assets.licious.in/oms/2da635de-e674-a328-7b3e-6751903c616a/original/1774447828792.webp",alt:"Claimed",type:"image"},scrollIcon:{url:"https://assets.licious.in/oms/ba61f6ec-c551-f80f-896c-c35e08723529/original/1774617249095.png",alt:"Scroll Icon",type:"image"},warningIcon:{url:"https://assets.licious.in/oms/c873eec5-c2fc-26aa-ee51-05467f96c63e/original/1774385790855.webp",alt:"Warning",type:"image"},copyToClipboard:{url:"https://assets.licious.in/oms/068e76d7-5560-6adb-c207-e9e2f76a6b00/original/1774162006997.webp",alt:"Copy to Clipboard",type:"image"},whiteBackArrow:{url:"https://assets.licious.in/oms/fe389b7d-842f-6c8a-f583-3aaefb460923/original/1774073540396.webp",alt:"White Back Arrow",type:"image"},scoreDigitTile:{url:"https://assets.licious.in/oms/641a9ce4-c853-0c90-760b-79c9c0856e32/original/1774381655400.png",alt:"Order score digit tile",type:"image"},ball:{url:"https://assets.licious.in/oms/4f6550ae-8e24-a7f8-c59c-3d2a8840f2ea/original/1774444019322.webp",alt:"Ball",type:"image"},selectedMark:{url:"https://assets.licious.in/oms/57855a62-192b-6625-473a-edb13dc1d44c/original/1774544409006.webp",alt:"Selected",type:"image"},chevron:{url:"https://assets.licious.in/oms/0ebfa465-2dbc-9346-11d1-6cef31a1e590/original/1774025425478.webp",alt:"Link Icon",type:"image"},trackChevron:{url:"https://assets.licious.in/oms/51cbef5c-dfe4-588f-8a91-839f307e9707/original/1774415101448.png",alt:"Track Chevron",type:"image"},helmetStumpsBg:{url:"https://assets.licious.in/oms/91a0a15e-6bb3-089a-f6b5-c43350298fa0/original/1774415593250.webp",alt:"Scorecard Offer Background",type:"image"},gomLogo:{url:"https://assets.licious.in/oms/0aa0f72d-d006-d850-d630-90d2f72ad956/original/1774543436004.png",alt:"Game Of Meat - City Battles",type:"image"}}},18774:e=>{e.exports={gom_city_battles_main:"styles_gom_city_battles_main__XeJzS",debug_container:"styles_debug_container__waJ6R"}},99989:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>M,default:()=>L,useGOMCityBattlesContext:()=>G});var i=a(37876),l=a(14232),s=a(77328),o=a.n(s),n=a(18847),r=a.n(n),u=a(18774),c=a.n(u),d=a(14993),g=
1a(5463),m=a(39496),p=a(49434),b=a(38533),f=a(47274),y=a(58110);let _=e=>null==e?"":String(e),h=function(){var e,t;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=((null==a?void 0:a.data)&&"object"==typeof a.data?a.data:void 0)||a;return{lat:_(null!=(e=null==i?void 0:i.lat)?e:null==i?void 0:i.latitude),lng:_(null!=(t=null==i?void 0:i.lng)?t:null==i?void 0:i.longitude)}},v=function(){var e,t;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=a.serviceable_areas||[],l=a.child_to_parent_hub_mapping||{},s=a.hub_ids||[],o=(null==(e=Object.entries(l).find(e=>{let[t]=e;return!!t}))?void 0:e[0])||"",n=o?i.find(e=>Array.isArray(null==e?void 0:e.hub_ids)&&e.hub_ids.some(e=>_(e)===_(o))):1===i.length?i[0]:void 0,r=o?_(o):_(null==n||null==(t=n.hub_ids)?void 0:t.find(Boolean));return{hub_ids:s,hub_id:r||_(null==s?void 0:s[0]),hubid:r||_(null==s?void 0:s[0]),city_id:_(null==n?void 0:n.city_id)||_(null==a?void 0:a.city_id),kml_id:_(null==n?void 0:n.id)||_(null==a?void 0:a.id)}},w=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(null==e?void 0:e.lat)||"",a=(null==e?void 0:e.lng)||"";if(!t||!a){let i=await fetch("/api/events/campaigns/gom-city-battles/get-location-details",{method:"POST",headers:{"Content-Type":"application/json",...e},body:JSON.stringify({customer_key:(null==e?void 0:e.customer_key)||"",updateCookie:!1})}),l=h(await i.json());t=l.lat||"12.967864",a=l.lng||"77.65403"}if(!t||!a)return{lat:t,lng:a};let i=await fetch("/api/events/campaigns/gom-city-battles/get-kml-details",{method:"POST",headers:{"Content-Type":"application/json",...e},body:JSON.stringify({latitude:t,longitude:a})}),l=v(await i.json());(0,b.vF)("info","resolveGomLocationHeaders",JSON.stringify(l));let s=l.hub_ids.length?JSON.stringify(l.hub_ids):"";return{lat:t,lng:a,city_id:l.city_id,kml_id:l.kml_id,hub_id:l.hub_id,hubid:l.hubid,"hub-ids":s,hub_ids:s}};var k=a(55305);let E=r()(()=>Promise.all([a.e(6908),a.e(4985),a.e(766)]).then(a.bind(a,70766)),{loadableGenerated:{webpack:()=>[70766]}}),A=r()(()=>Promise.all([a.e(6678),a.e(4985),a.e(948)]).then(a.bind(a,60948)),{loadableGenerated:{webpack:()=>[60948]}}),C=r()(()=>Promise.all([a.e(3088),a.e(4985),a.e(2498)]).then(a.bind(a,2498)),{loadableGenerated:{webpack:()=>[2498]}}),S=r()(()=>Promise.all([a.e(9473),a.e(4985),a.e(693)]).then(a.bind(a,10693)),{loadableGenerated:{webpack:()=>[10693]}}),I=r()(()=>Promise.all([a.e(2097),a.e(4985),a.e(7001)]).then(a.bind(a,57001)),{loadableGenerated:{webpack:()=>[57001]}}),P=r()(()=>Promise.all([a.e(3960),a.e(6908),a.e(4985),a.e(8218)]).then(a.bind(a,88218)),{loadableGenerated:{webpack:()=>[88218]}}),O=r()(()=>Promise.all([a.e(9342),a.e(4985),a.e(5856)]).then(a.bind(a,35856)),{loadableGenerated:{webpack:()=>[35856]}}),N=(0,l.createContext)({});var M=!0;let G=()=>(0,l.useContext)(N),L=e=>{var t;let{parsedCookies:a}=e,[s,n]=(0,l.useState)(null),[r,u]=(0,l.useState)(""),[_,h]=(0,l.useState)(null),[v,M]=(0,l.useState)(!0),[G,L]=(0,l.useState)(!1),[T,B]=(0,l.useState)(!0),[R,j]=(0,l.useState)(null),[x,D]=(0,l.useState)([]),[W,U]=(0,l.useState)({noOfItems:0,total:0}),[V,J]=(0,l.useState)(null!=a?a:{}),F=(0,l.useCallback)(async()=>{try{B(!0),j(null);let e={};if((0,f.me)()){e={...a};let t=await w(null!=a?a:{});e={...e,...Object.fromEntries(Object.entries(t).filter(e=>{let[,t]=e;return!!t}))},J(e)}else e={...a,customer_key:localStorage.getItem("LS_cust_key")||"",hub_id:localStorage.getItem("hub")||""},J(e);let t=await fetch("/api/events/campaigns/gom-city-battles/get-city-battle-details",{method:"POST",headers:{"Content-Type":"application/json",...e},body:JSON.stringify({customer_key:(null==a?void 0:a.customer_key)||localStorage.getItem("LS_cust_key")||"",hub_id:(null==a?void 0:a.hub_id)||localStorage.getItem("hub")||"",updateCookie:(0,f.me)()})}),i=await t.json();if(i.data)n(i.data),u(i.data.pageType),B(!1);else throw Error(i.message||"Failed to fetch campaign data")}catch(t){let e=t instanceof Error?t.message:"An unknown error occurred";j(e),(0,y.P)({eventType:"PAGE_VIEWED",pageName:"IplCampaignPage",context:JSON.stringify({failure_event:!0,error:e})})}finally{B(!1)}},[a]);(0,l.useEffect)(()=>{(null==a?void 0:a.customer_key)&&localStorage.setItem("LS_cust_key",null==a?void 0:a.customer_key),(null==a?void 0:a.hub_id)&&localStorage.setItem("hub",null==a?void 0:a.hub_id)},[a]),(0,l.useEffect)(()=>
1{if((0,f.me)()&&(!(null==a?void 0:a.customer_key)||a.customer_key.startsWith("g_"))){u("APP_UPDATE_REQUIRED"),B(!1);return}F()},[F,null==a?void 0:a.customer_key]),(0,l.useEffect)(()=>{if("GAME_PAGE"===r){if("true"===localStorage.getItem(g.yP))return void M(!1);M(!0),localStorage.setItem(g.yP,"true")}},[r]);let q=(0,l.useCallback)(async()=>{try{var e,t,a;let i=Number(null==V?void 0:V.lat)||void 0,l=Number(null==V?void 0:V.lng)||void 0,{lat:s,lng:o}=(0,f.me)()?{lat:i,lng:l}:(0,p.uI)(),n=(0,f.me)()?V:{},r=await m.mx.LiGetCart({lat:s,lng:o},n);if((null==r?void 0:r.status)==="stale")return;if((null==r||null==(e=r.status)?void 0:e.toLowerCase())!=="success"){U({noOfItems:0,total:0}),D([]);return}let u=null!=(t=null==r?void 0:r.products)?t:[],{noOfItems:c,total:d}=u.reduce((e,t)=>({noOfItems:e.noOfItems+Number((null==t?void 0:t.quantity)||0),total:e.total+Number((null==t?void 0:t.total)||0)}),{noOfItems:0,total:0});U({noOfItems:c,total:d}),D(null!=(a=u.filter(e=>(null==e?void 0:e.product_class)==="PRODUCT"))?a:[])}catch(e){U({noOfItems:0,total:0}),D([])}},[V]);(0,l.useEffect)(()=>{if("GAME_PAGE"!==r||!s)return;let e=window.setTimeout(()=>{q()},400);return()=>{window.clearTimeout(e)}},[r,s,q]);let H=(0,l.useCallback)(()=>{var e,t,a;let i=window;if((null==i?void 0:i.ReactNativeWebView)&&"function"==typeof i.ReactNativeWebView.postMessage)return void i.ReactNativeWebView.postMessage(JSON.stringify({close:[]}));if((null==i?void 0:i.LiciousAndroid)&&"function"==typeof i.LiciousAndroid.postMessage)return void i.LiciousAndroid.postMessage("close");if(null==i||null==(a=i.webkit)||null==(t=a.messageHandlers)||null==(e=t.liciousApp)?void 0:e.postMessage)try{i.webkit.messageHandlers.liciousApp.postMessage("closeWebView");return}catch(e){(0,b.vF)("error","GOMCityBattles >> closeWebView",e)}},[]),Y=(0,l.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"8.74.2";if(!(0,f.Jr)())return!1;let t=(null==a?void 0:a.app_version)||"";return!t||0>(0,k.R)(t,e,{zeroExtend:!0})},[null==a?void 0:a.app_version]);(0,l.useEffect)(()=>{let e=window,t=!!(null==e?void 0:e.ReactNativeWebView)&&"function"==typeof e.ReactNativeWebView.postMessage;L(!!(null==e?void 0:e.LiciousAndroid)&&"function"==typeof e.LiciousAndroid.postMessage&&!t&&Y("8.74.2"))},[Y]);let X=(0,l.useCallback)(e=>{if(e&&!G)return void(0,f.W)(e);H()},[H,G]),Q=(0,l.useRef)(!1);(0,l.useEffect)(()=>{Q.current||window.history.pushState(null,"",window.location.href),Q.current=!1;let e=()=>{Q.current=!0,"TEAM_SELECTION"!==r&&"GAME_PAGE"!==r?(u("GAME_PAGE"),window.history.pushState(null,"",window.location.href)):X()};return window.addEventListener("popstate",e),()=>{window.removeEventListener("popstate",e)}},[r,X]);let Z=(0,l.useCallback)(e=>{Q.current=!1,u(e)},[]),z=(0,l.useMemo)(()=>({currentScreen:r,setCurrentScreen:u,navigateToScreen:Z,selectedTeam:_,setSelectedTeam:h,isOldAndroidNative:G,isFirstGameArenaVisit:v,cityBattleDetails:s,setCityBattleDetails:n,cartProducts:x,cartSummary:W,refreshCartSummary:q,gomCookies:V,closeWebView:X,refreshCityBattleDetails:F}),[r,u,_,Z,G,v,s,n,x,W,q,V,X,F]),K=null!=(t=({TEAM_SELECTION:E,GAME_PAGE:A,CITY_LEADERBOARD:S,GRAND_PRIZE_QUIZ:C,TERMS_AND_CONDITIONS:I,APP_UPDATE_REQUIRED:P})[r])?t:null;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(o(),{children:[(0,i.jsxs)("title",{children:[g.Ms.CAMPAIGN_FULL_NAME," | Licious"]}),(0,i.jsx)("meta",{name:"description",content:"Game of Meat - City Battles campaign"}),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"}),(0,i.jsx)("link",{rel:"preconnect",href:"https://assets.licious.in"}),(0,i.jsx)("link",{rel:"preload",href:"/image/campaigns/gom-city-battles/city-battles-ground.webp",as:"image"}),(0,i.jsx)("link",{rel:"preload",href:"https://assets.licious.in/oms/d0725bba-5447-c105-cacc-256b7837be0e/original/1774542127652.webp",as:"image"})]}),(0,i.jsx)(N.Provider,{value:z,children:(0,i.jsxs)("main",{className:c().gom_city_battles_main,children:[T&&(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"70vh"},children:(0,i.jsx)(d.A,{})}),!T&&R&&(0,i.jsx)(O,{message:R,onRetry:F}),!T&&!R&&K&&(0,i.jsx)(K,{})]})})]})}}},e=>{e.O(0,[9111,582,8625,4309,8285,182,2655,3283,7033,7906,2031,9178,8762,6182,7550,7585,5924,513,2874,9758,2357,9777,9779,9200,5624,8437,5269,4889,5443,4917,3168,4853,9106,6061,5311,5885,675,555,873,8477,4146,5089,7507,6364,3110,2034,682,4296,4359,2372,9112,4536,4716,4752,487,2617,2186,192,4593,9390,5228,6980,1102,9618,5025,777,818,8127,4635,8367,6299,9255,6494,1621,9626,4276,4551,1062,2505,1555,2004,6076,317,3645,9982,5718,5279,6238,9517,151],(
1)=>e(e.s=4681)),_N_E=e.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.