PageSourceSearch

https://app.elumia.io/_next/static/chunks/3604.c5f53b98de4d4500.js

js elumia.io collected 2026-10-01 13:56:16 UTC 8,563 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3604],{66242:function(e,t,r){r.d(t,{Z:function(){return p}});var n=r(87462),i=r(63366),o=r(67294),a=r(86010),l=r(27192),d=r(11496),c=r(33616),u=r(55113),s=r(28979);function g(e){return(0,s.Z)("MuiCard",e)}(0,r(76087).Z)("MuiCard",["root"]);var h=r(85893);const f=["className","raised"],m=(0,d.ZP)(u.Z,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"})));var p=o.forwardRef((function(e,t){const r=(0,c.Z)({props:e,name:"MuiCard"}),{className:o,raised:d=!1}=r,u=(0,i.Z)(r,f),s=(0,n.Z)({},r,{raised:d}),p=(e=>{const{classes:t}=e;return(0,l.Z)({root:["root"]},g,t)})(s);return(0,h.jsx)(m,(0,n.Z)({className:(0,a.Z)(p.root,o),elevation:d?8:void 0,ref:t,ownerState:s},u))}))},93604:function(e,t,r){r.r(t);var n=r(35944),i=r(67294),o=r(87357),a=r(86886),l=r(66242),d=r(26447),c=r(15861),u=r(25675),s=r(5152),g=r(28367),h=r(36828),f=r(13162);function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o=[],a=!0,l=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);a=!0);}catch(d){l=!0,i=d}finally{try{a||null==r.return||r.return()}finally{if(l)throw i}}return o}}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"===typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m(e,t):void 0}}var Z=(0,s.default)((function(){return Promise.all([r.e(9351),r.e(1107)]).then(r.bind(r,41107))}),{loadableGenerated:{webpack:function(){return[41107]}}}),w=(0,s.default)((function(){return Promise.all([r.e(129),r.e(1383)]).then(r.bind(r,2486))}),{loadableGenerated:{webpack:function(){return[2486]}}}),x=(0,s.default)((function(){return r.e(1283).then(r.bind(r,91283))}),{loadableGenerated:{webpack:function(){return[91283]}}}),C=((0,s.default)((function(){return Promise.all([r.e(4885),r.e(5689)]).then(r.bind(r,45689))}),{loadableGenerated:{webpack:function(){return[45689]}}}),[{cardColor:"#18250C",rarity:"bronze",name:"BRONZE CHESTS",img:"/img/chests/bronze-chest.png",cardImg:"/img/character-chest-card/img-bronze-chests.png",price:"-",quantity:0,gradientColor:"linear-gradient(160deg, #206A42 -3.96%, #45DB8A 72.09%)"},{cardColor:"#154FD9",rarity:"gold",name:"GOLD CHESTS",img:"/img/chests/gold-chest.png",cardImg:"/img/character-chest-card/img-gold-chests.png",price:"-",quantity:0,gradientColor:"linear-gradient(148.26deg, #154FD9 24.28%, #C16EEF 76.45%)"},{cardColor:"#521AA8 ",rarity:"platinum",name:"PLATINUM CHESTS",img:"/img/chests/platinum-chest.png",cardImg:"/img/character-chest-card/img-platinum-chests.png",price:"-",quantity:0,gradientColor:"linear-gradient(148.26deg, #53247A 24.28%, #C16EEF 76.45%)"},{cardColor:"#0E4352",rarity:"diamond",name:"DIAMOND CHESTS",img:"/img/chests/diamond-chest.png",cardImg:"/img/character-chest-card/img-diamond-chests.png",price:"-",quantity:0,gradientColor:"linear-gradient(154.58deg, #227581 -17.29%, #6DD5E4 52.18%)"}]);t.default=function(e){var t,r=e.isOpenChest,s=e.upgradableTime,m=e.rewards,y=e.rewardPools,F=e.upgradeRewardPlans,E=e.refetch,A=!1,k=((null===s||void 0===s?void 0:s.length)&&(t=Math).min.apply(t,v(s)),(0,i.use
1State)(C)),B=k[0],S=k[1],I=(0,i.useState)(),P=I[0],O=I[1],j=b((0,g.Z)(),3),D=j[0],M=j[1],N=j[2],R=b((0,g.Z)(),3),T=R[0],q=R[1],z=R[2];(0,i.useEffect)((function(){S(C.map((function(e,t){var r;return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){p(e,t,r[t])}))}return e}({},e,{rewardToken:h.Bo[t]},(null===m||void 0===m?void 0:m.length)&&{quantity:(null===(r=null===m||void 0===m?void 0:m.find((function(e){return e.address==h.Bo[t].address})))||void 0===r?void 0:r.tokenBalance)||"0"})})))}),[m]);var H=function(e){return(0,n.tZ)(Z,{variant:"contained",size:"large",sx:{background:"linear-gradient(to right, #FFB522, #FFDA92, #B87B01)",fontFamily:"KEVLAR",textTransform:"uppercase",color:"text.secondary",px:"3rem","&.Mui-disabled":{background:"#212430",color:"#434861"},"&:hover":{background:"linear-gradient(0deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)), linear-gradient(97.64deg, #FFB522 0%, #FFDA92 49.17%, #B87B01 92.55%)"}},disabled:0===parseInt(null===e||void 0===e?void 0:e.quantity),onClick:function(){r?q():M(),O(e)},children:r?"OPEN":"UPGRADE"})};return(0,n.BX)(n.HY,{children:[(0,n.tZ)(o.Z,{position:"relative",textAlign:"center",mb:4,children:(0,n.tZ)(o.Z,{sx:{position:"relative"},children:(0,n.tZ)(u.default,{src:"/img/header/Header-my-chests.png",alt:"Elumia Chest",layout:"intrinsic",width:467,height:72,objectFit:"contain"})})}),!r&&A,(0,n.tZ)(a.ZP,{container:!0,spacing:2,children:null===B||void 0===B?void 0:B.map((function(e,t){return(0,n.tZ)(a.ZP,{item:!0,xs:12,sm:6,md:3,children:(0,n.tZ)(l.Z,{sx:{position:"relative",minHeight:"220px",overflow:"visible",background:t<1?"linear-gradient(to right, #FFB52290, #FFDA9290, #B87B0190)":"#transparent",padding:"3px",borderRadius:"8px","&:hover":{background:t<1?"linear-gradient(to right, #FFB522, #FFDA92, #B87B01)":"#transparent"},height:"100%"},children:t<1?(0,n.BX)(o.Z,{position:"relative",sx:{backgroundColor:null===e||void 0===e?void 0:e.cardColor,borderRadius:"6px",p:3,backgroundSize:"cover",backgroundPosition:"center",backgroundBlendMode:"color-dodge",height:"100%"},children:[(0,n.tZ)(o.Z,{sx:{position:"absolute",opacity:"0.3",height:"100%",width:"100%",top:"0",left:"0",overflow:"hidden"},children:(0,n.tZ)(u.default,{src:"/bg/bg-3.jpg",alt:"Elumia Banner",layout:"responsive",width:"100%",height:"100%",objectFit:"cover"})}),(0,n.BX)(d.Z,{alignItems:"center",sx:{height:"100%",position:"relative"},children:[(0,n.tZ)(c.Z,{variant:"body2",color:"text.primary",mb:1,sx:{fontFamily:"KEVLAR"},children:null===e||void 0===e?void 0:e.name}),(0,n.tZ)(o.Z,{position:"relative",sx:{zIndex:"0",width:"100%",mx:"auto",maxWidth:"120px"},children:(0,n.tZ)(u.default,{src:null===e||void 0===e?void 0:e.img,alt:"Elumia Icon",layout:"responsive",width:211,height:150,objectFit:"contain"})}),(0,n.BX)(c.Z,{variant:"body1",color:"text.primary",mb:1,sx:{fontWeight:"700"},children:["You own: ",(0,f.FK)(null===e||void 0===e?void 0:e.quantity)||0]}),r?H(e):A]})]}):(0,n.tZ)(o.Z,{sx:{backgroundColor:"primary.darker",borderRadius:"6px",p:3,height:"100%"},children:(0,n.tZ)(d.Z,{justifyContent:"center",alignItems:"center",sx:{height:"100%"},children:(0,n.tZ)(o.Z,{position:"relative",sx:{zIndex:"0",width:"100%",mx:"auto",maxWidth:"60px"},children:(0,n.tZ)(u.default,{src:"/icon/ic-question.png",alt:"Elumia Icon",layout:"responsive",width:211,height:150,objectFit:"contain"})})})})})},t)}))}),(0,n.tZ)(x,{isOpen:D,onClose:M,showModal:N,data:B,selectedData:P,upgradeRewardPlans:F,rewardPools:y,refetch:E}),(0,n.tZ)(w,{isOpen:T,onClose:q,showModal:z,data:P,refetch:E})]})}},13162:function(e,t,r){r.d(t,{JT:function(){return o},WN:function(){return a},s$:function(){return l},e_:function(){return d},FK:function(){return c}});r(96486);var n=r(92077),i=r.n(n);r(46087);function o(e){var t,r;return(null===(t=e.toString().split("."))||void 0===t||null===(r=t[1])||void 0===r?void 0:r.length)||0}function a(e){return i()(e).format("0,0.[000000000]")}function l(e){return i()(e).format(Number.isInteger(e)?"0,0":"0,0.[000000000]")}function d(e){return i()(e).format(Number.isInteger(e)?"0,0":"0,0.00")}function c(e){return i()(e).format()}i().locale("th")}}]);

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.