PageSourceSearch

https://boxofficega.me/_next/static/chunks/pages/transfer-5d09388faa399c5c.js

js boxofficega.me collected 2026-10-04 00:25:05 UTC 10,258 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[117],{2070:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/transfer",function(){return r(7892)}])},7892:function(e,n,r){"use strict";r.r(n);var a=r(4051),t=r.n(a),s=r(5893),o=r(5988),d=r.n(o),i=r(7294),c=r(1664),l=r(7814),x=r(1436),p=r(1078);function u(e,n,r,a,t,s,o){try{var d=e[s](o),i=d.value}catch(c){return void r(c)}d.done?n(i):Promise.resolve(i).then(a,t)}function b(e){return function(){var n=this,r=arguments;return new Promise((function(a,t){var s=e.apply(n,r);function o(e){u(s,a,t,o,d,"next",e)}function d(e){u(s,a,t,o,d,"throw",e)}o(void 0)}))}}n.default=function(){var e=(0,i.useState)(""),n=e[0],r=e[1],a=(0,i.useState)(""),o=a[0],u=a[1],f=(0,i.useState)(""),m=f[0],g=f[1],j=(0,i.useState)(""),h=j[0],w=j[1],k=(0,i.useState)(!1),y=k[0],v=k[1],N=(0,i.useState)(!1),S=N[0],C=N[1],T=function(){var e=b(t().mark((function e(){var n,a,s,o;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v(!0),g(""),e.prev=2,n=localStorage.getItem(p.ou)){e.next=8;break}return g("No game history found. Play some games first!"),v(!1),e.abrupt("return");case 8:return a=JSON.parse(n),e.next=11,fetch("/api/transfer/upload",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({gameHistory:a})});case 11:return s=e.sent,e.next=14,s.json();case 14:o=e.sent,s.ok?(r(o.code),g("Success! Your transfer code is: ".concat(o.code))):g("Error: ".concat(o.error)),e.next=22;break;case 18:e.prev=18,e.t0=e.catch(2),g("Error uploading game history. Please try again."),console.error("Upload error:",e.t0);case 22:return e.prev=22,v(!1),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[2,18,22,25]])})));return function(){return e.apply(this,arguments)}}(),_=function(){var e=b(t().mark((function e(){var n,r;return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(C(!0),w(""),e.prev=2,o.trim()){e.next=7;break}return w("Please enter a transfer code."),C(!1),e.abrupt("return");case 7:return e.next=9,fetch("/api/transfer/download",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:o})});case 9:return n=e.sent,e.next=12,n.json();case 12:r=e.sent,n.ok?(localStorage.setItem(p.ou,JSON.stringify(r.gameHistory)),w("Success! Your game history has been restored.")):w("Error: ".concat(r.error)),e.next=20;break;case 16:e.prev=16,e.t0=e.catch(2),w("Error downloading game history. Please try again."),console.error("Download error:",e.t0);case 20:return e.prev=20,C(!1),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[2,16,20,23]])})));return function(){return e.apply(this,arguments)}}();return(0,s.jsxs)("div",{className:"jsx-d145444ead72e523 App",children:[(0,s.jsxs)("div",{className:"jsx-d145444ead72e523 transfer-container",children:[(0,s.jsx)("h1",{className:"jsx-d145444ead72e523 transfer-title",children:"Transfer Game History"}),(0,s.jsx)("p",{className:"jsx-d145444ead72e523 transfer-subtitle",children:"Move your game progress between devices"}),(0,s.jsxs)("div",{className:"jsx-d145444ead72e523 transfer-section",children:[(0,s.jsxs)("h2",{className:"jsx-d145444ead72e523 section-title",children:[(0,s.jsx)(l.G,{icon:x.cf$})," Upload from This Device"]}),(0,s.jsx)("p",{className:"jsx-d145444ead72e523 section-description",children:"Generate a 4-character code to transfer your game history to another device."}),(0,s.jsx)("button",{onClick:T,disabled:y,className:"jsx-d145444ead72e523 transfer-button upload-button",children:y?"Uploading...":"Generate Transfer Code"}),m&&(0,s.jsxs)("div",{className:"jsx-d145444ead72e523 "+"status-message ".concat(n?"success":"error"),children:[m,n&&(0,s.jsxs)("button",{onClick:function(){n&&(navigator.clipboard.writeText(n),g("Code ".concat(n," copied to clipboard!")))},className:"jsx-d145444ead72e523 copy-button",children:[(0,s.jsx)(l.G,{icon:x.kZ_})," Copy Code"]})]})]}),(0,s.jsx)("div",{className:"jsx-d145444ead72e523 transfer-divider"}),(0,s.jsxs)("div",{className:"jsx-d145444ead72e523 transfer-section",children:[(0,s.jsxs)("h2",{className:"jsx-d145444ead72e523 section-title",children:[(0,s.jsx)(l.G,{icon:x.q7m})," Download to This Device"]}),(0,s.jsx)("p",{className:"jsx-d145444ead72e523 section-description",children:"Enter your 4-character transfer code to restore your game history."}),(0,s.jsxs)("div",{className:"jsx-d145444ead72e523 input-group",children:[(0,s.jsx)("input",{type:"text",value:o,onChange:function(e){return u(e.target.value.toUpperCase())},placeholder:"Enter code (e.g., A3B7)",maxLength:4,className:"jsx-d145444ead72e523 code-input"}),(0,s.jsx)("button",{onClick:_,disabled:S||!o.trim(),className:"jsx-d145444ead72e523 transfer-button download-button",children:S?"Downloading...":"Download History"})]}),h&&(0,s.jsx)("div",{className:"jsx-d145444ead72e523 "+"status-message ".concat(h.includes("Success")?"success":"error"),children:h})]}),(0,s.jsxs)("div",{className:"jsx-d145444ead72e523 transfer-info",children:[(0,s.jsx)("h3",{className:"jsx-d145444ead72e523",children:"How it works:"}),(0,s.jsxs)("ol",{className:"jsx-d145444ead72e523",children:[(0,s.jsx)("li",{className:"jsx-d145444ead72e523",children:'O
1n your old device, click "Generate Transfer Code"'}),(0,s.jsx)("li",{className:"jsx-d145444ead72e523",children:"Copy or write down the 4-character code"}),(0,s.jsx)("li",{className:"jsx-d145444ead72e523",children:'On your new device, enter the code and click "Download History"'}),(0,s.jsx)("li",{className:"jsx-d145444ead72e523",children:"Your game history will be restored!"})]}),(0,s.jsx)("p",{className:"jsx-d145444ead72e523 note",children:"Note: Transfer codes can be used multiple times and do not expire."})]}),(0,s.jsx)(c.default,{href:"/",children:(0,s.jsx)("a",{className:"jsx-d145444ead72e523 back-link",children:"\u2190 Back to Game"})})]}),(0,s.jsx)(d(),{id:"d145444ead72e523",children:".transfer-container.jsx-d145444ead72e523{max-width:600px;\nwidth:100%;\npadding:20px;\nmargin:40px auto}\n.transfer-title.jsx-d145444ead72e523{font-size:2rem;\nmargin-bottom:10px;\ntext-align:center}\n.transfer-subtitle.jsx-d145444ead72e523{text-align:center;\ncolor:#a8b2b9;\nmargin-bottom:40px}\n.transfer-section.jsx-d145444ead72e523{background-color:rgb(25, 39, 52);\nborder:1px solid rgb(56, 68, 77);\nborder-radius:8px;\npadding:24px;\nmargin-bottom:20px}\n.section-title.jsx-d145444ead72e523{font-size:1.4rem;\nmargin-bottom:12px;\ndisplay:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex;\n-webkit-align-items:center;\n-webkit-box-align:center;\n-ms-flex-align:center;\nalign-items:center;\ngap:10px}\n.section-description.jsx-d145444ead72e523{color:#a8b2b9;\nmargin-bottom:20px;\nline-height:1.5}\n.transfer-button.jsx-d145444ead72e523{background-color:#1d9bf0;\ncolor:white;\nborder:none;\npadding:12px 24px;\nfont-size:1rem;\nborder-radius:6px;\ncursor:pointer;\n-webkit-transition:background-color 0.2s;\ntransition:background-color 0.2s;\nfont-weight:600}\n.transfer-button.jsx-d145444ead72e523:hover:not(:disabled){background-color:#1a8cd8}\n.transfer-button.jsx-d145444ead72e523:disabled{background-color:#4a5c6a;\ncursor:not-allowed;\nopacity:0.6}\n.upload-button.jsx-d145444ead72e523{width:100%}\n.input-group.jsx-d145444ead72e523{display:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex;\ngap:10px;\nmargin-bottom:16px}\n.code-input.jsx-d145444ead72e523{-webkit-flex:1;\n-ms-flex:1;\nflex:1;\npadding:12px;\nfont-size:1.2rem;\nborder:1px solid rgb(56, 68, 77);\nborder-radius:6px;\nbackground-color:rgb(15, 29, 42);\ncolor:white;\ntext-align:center;\ntext-transform:uppercase;\nletter-spacing:0.2em;\nfont-weight:600}\n.code-input.jsx-d145444ead72e523::placeholder{color:#6b7c8a;\nletter-spacing:normal}\n.status-message.jsx-d145444ead72e523{margin-top:16px;\npadding:12px;\nborder-radius:6px;\ndisplay:-webkit-box;\ndisplay:-webkit-flex;\ndisplay:-ms-flexbox;\ndisplay:flex;\n-webkit-align-items:center;\n-webkit-box-align:center;\n-ms-flex-align:center;\nalign-items:center;\n-webkit-box-pack:justify;\n-webkit-justify-content:space-between;\njustify-content:space-between;\ngap:10px;\nflex-wrap:wrap}\n.status-message.success.jsx-d145444ead72e523{background-color:rgba(0, 200, 100, 0.1);\nborder:1px solid rgba(0, 200, 100, 0.3);\ncolor:#00c864}\n.status-message.error.jsx-d145444ead72e523{background-color:rgba(240, 80, 80, 0.1);\nborder:1px solid rgba(240, 80, 80, 0.3);\ncolor:#f05050}\n.copy-button.jsx-d145444ead72e523{background-color:rgba(255, 255, 255, 0.1);\ncolor:white;\nborder:1px solid rgba(255, 255, 255, 0.2);\npadding:8px 16px;\nborder-radius:4px;\ncursor:pointer;\nfont-size:0.9rem;\n-webkit-transition:background-color 0.2s;\ntransition:background-color 0.2s}\n.copy-button.jsx-d145444ead72e523:hover{background-color:rgba(255, 255, 255, 0.2)}\n.transfer-divider.jsx-d145444ead72e523{height:1px;\nbackground-color:rgb(56, 68, 77);\nmargin:30px 0}\n.transfer-info.jsx-d145444ead72e523{background-color:rgba(29, 155, 240, 0.05);\nborder:1px solid rgba(29, 155, 240, 0.2);\nborder-radius:8px;\npadding:20px;\nmargin-top:30px}\n.transfer-info.jsx-d145444ead72e523 h3.jsx-d145444ead72e523{margin-top:0;\nmargin-bottom:12px;\ncolor:#1d9bf0}\n.transfer-info.jsx-d145444ead72e523 ol.jsx-d145444ead72e523{margin:12px 0;\npadding-left:20px;\nline-height:1.8}\n.transfer-info.jsx-d145444ead72e523 li.jsx-d145444ead72e523{margin-bottom:8px}\n.note.jsx-d145444ead72e523{margin-top:16px;\ncolor:#a8b2b9;\nfont-size:0.9rem;\nfont-style:italic}\n.back-link.jsx-d145444ead72e523{display:inline-block;\nmargin-top:30px;\ncolor:#1d9bf0;\n-webkit-text-decoration:none;\ntext-decoration:none;\n-webkit-transition:color 0.2s;\ntransition:color 0.2s}
1\n.back-link.jsx-d145444ead72e523:hover{color:#1a8cd8;\ntext-decoration:underline}\n@media (max-width:600px) {.transfer-container.jsx-d145444ead72e523{padding:16px;\nmargin:20px auto}\n.transfer-title.jsx-d145444ead72e523{font-size:1.6rem}\n.section-title.jsx-d145444ead72e523{font-size:1.2rem}\n.input-group.jsx-d145444ead72e523{-webkit-flex-direction:column;\n-ms-flex-direction:column;\nflex-direction:column}\n.download-button.jsx-d145444ead72e523{width:100%}}"})]})}}},function(e){e.O(0,[523,916,346,78,774,888,179],(function(){return n=2070,e(e.s=n);var n}));var n=e.O();_N_E=n}]);

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.