PageSourceSearch

https://www.lbank.info/static-client/lbank-front-trade/_next/stati…/domain-switch-9a4a2ec0cd87ea4d.js

js lbank.info collected 2026-10-03 19:49:59 UTC 14,603 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3600],{81910:(t,n,e)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/trade-tools/domain-switch",function(){return e(36487)}])},36487:(t,n,e)=>{"use strict";e.r(n),e.d(n,{default:()=>ts});var i=e(58474),r=e(63159),o=e(53886),l=e.n(o),d=e(79011),s=e.n(d),a=e(31052),c=e(13892),p=e(39107),u=e(23040),h=e(197);function x(){let t=(0,i._)(["\n  min-height: calc(100vh - 48px);\n  padding-top: 48px;\n  padding-bottom: 72px;\n  color: ",";\n"]);return x=function(){return t},t}function b(){let t=(0,i._)(["\n  margin-bottom: 24px;\n\n  h1 {\n    margin: 0 0 8px;\n    font-size: 28px;\n    line-height: 38px;\n  }\n\n  p {\n    margin: 0;\n    color: ",";\n    font-size: 14px;\n    line-height: 22px;\n  }\n"]);return b=function(){return t},t}function w(){let t=(0,i._)(["\n  padding: 24px;\n  border: 1px solid ",";\n  border-radius: 12px;\n  background: ",";\n"]);return w=function(){return t},t}function k(){let t=(0,i._)(["\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 16px;\n  margin-bottom: 20px;\n\n  h2 {\n    margin: 0;\n    font-size: 18px;\n    line-height: 26px;\n  }\n"]);return k=function(){return t},t}function v(){let t=(0,i._)(["\n  flex-shrink: 0;\n  padding: 4px 10px;\n  border-radius: 999px;\n  color: ",";\n  background: ",";\n  font-size: 12px;\n  font-weight: 600;\n"]);return v=function(){return t},t}function f(){let t=(0,i._)(["\n  display: grid;\n  grid-template-columns: 1fr;\n  gap: 14px;\n"]);return f=function(){return t},t}function m(){let t=(0,i._)(["\n  padding: 16px;\n  border-radius: 8px;\n  background: ",";\n"]);return m=function(){return t},t}function g(){let t=(0,i._)(["\n  margin-bottom: 6px;\n  color: ",";\n  font-size: 12px;\n  line-height: 18px;\n"]);return g=function(){return t},t}function A(){let t=(0,i._)(["\n  display: block;\n  overflow-wrap: anywhere;\n  color: ",";\n  font-size: 14px;\n  line-height: 22px;\n"]);return A=function(){return t},t}function j(){let t=(0,i._)(["\n  margin-top: 18px;\n  color: ",";\n  font-size: 13px;\n  line-height: 21px;\n\n  code {\n    color: ",";\n  }\n"]);return j=function(){return t},t}function y(){let t=(0,i._)(["\n  margin-top: 16px;\n  padding: 12px 14px;\n  border-radius: 8px;\n  color: #d94b4b;\n  background: rgba(217, 75, 75, 0.1);\n  font-size: 13px;\n  line-height: 20px;\n"]);return y=function(){return t},t}function z(){let t=(0,i._)(["\n  display: flex;\n  flex-wrap: wrap;\n  align-items: center;\n  gap: 16px;\n  margin-top: 24px;\n"]);return z=function(){return t},t}function _(){let t=(0,i._)(["\n  min-width: 180px;\n  height: 42px;\n  padding: 0 20px;\n  border: 0;\n  border-radius: 8px;\n  color: #fff;\n  background: #0d8a61;\n  font-size: 14px;\n  font-weight: 600;\n  cursor: pointer;\n\n  &:hover:not(:disabled) {\n    background: #087a55;\n  }\n\n  &:disabled {\n    cursor: not-allowed;\n    opacity: 0.45;\n  }\n"]);return _=function(){return t},t}function T(){let t=(0,i._)(["\n  color: ",";\n  font-size: 14px;\n  text-decoration: none;\n\n  &:hover {\n    text-decoration: underline;\n  }\n"]);return T=function(){return t},t}function L(){let t=(0,i._)(["\n  margin: 18px 0 0;\n  color: ",";\n  font-size: 12px;\n  line-height: 20px;\n"]);return L=function(){return t},t}function S(){let t=(0,i._)(["\n  position: fixed;\n  inset: 0;\n  z-index: 1000;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 20px;\n  background: rgba(0, 0, 0, 0.64);\n"]);return S=function(){return t},t}function C(){let t=(0,i._)(["\n  width: min(520px, 100%);\n  padding: 24px;\n  border: 1px solid ",";\n  border-radius: 12px;\n  background: ",";\n  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.35);\n\n  h2 {\n    margin: 0 0 8px;\n    color: ",";\n    font-size: 20px;\n    line-height: 28px;\n  }\n\n  p {\n    margin: 0;\n    color: ",";\n    font-size: 14px;\n    line-height: 22px;\n  }\n"]);return C=function(){return t},t}function B(){let t=(0,i._)(["\n  display: grid;\n  gap: 10px;\n  margin-top: 18px;\n"]);return B=function(){return t},t}function P(){let t=(0,i._)(["\n  padding: 12px;\n  border-radius: 8px;\n  background: ",";\n\n  span {\n    display: block;\n    margin-bottom: 4px;\n    color: ",";\n    font-size: 12px;\n  }
1\n\n  code {\n    overflow-wrap: anywhere;\n    color: ",";\n    font-size: 13px;\n    line-height: 20px;\n  }\n"]);return P=function(){return t},t}function H(){let t=(0,i._)(["\n  display: flex;\n  justify-content: flex-end;\n  gap: 12px;\n  margin-top: 24px;\n"]);return H=function(){return t},t}function U(){let t=(0,i._)(["\n  height: 40px;\n  padding: 0 18px;\n  border: 1px solid ",";\n  border-radius: 8px;\n  color: ",";\n  background: transparent;\n  font-size: 14px;\n  cursor: pointer;\n\n  &:hover {\n    background: ",";\n  }\n"]);return U=function(){return t},t}let E={apiUrl:a.IW,wsUrl:u.A.cfdWsUrl},W=(0,c.Ay)(p.A.Main)(x(),t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizText.text1}),F=c.Ay.header(b(),t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizText.text3}),I=c.Ay.section(w(),t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizLine.line2},t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizBackground[1]}),M=c.Ay.div(k()),D=c.Ay.span(v(),t=>{var n;return t.$isLBank?"#0d8a61":null===(n=t.theme.palette)||void 0===n?void 0:n.bizText.text3},t=>{var n;return t.$isLBank?"rgba(11, 191, 131, 0.14)":null===(n=t.theme.palette)||void 0===n?void 0:n.bizBackground[2]}),O=c.Ay.div(f()),N=c.Ay.div(m(),t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizBackground[2]}),$=c.Ay.div(g(),t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizText.text3}),Q=c.Ay.code(A(),t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizText.text1}),R=c.Ay.div(j(),t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizText.text3},t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizText.text2}),G=c.Ay.div(y()),J=c.Ay.div(z()),K=c.Ay.button(_()),X=c.Ay.a(T(),t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizText.text5}),q=c.Ay.p(L(),t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizText.text3}),V=c.Ay.div(S()),Y=c.Ay.div(C(),t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizLine.line2},t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizBackground[1]},t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizText.text1},t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizText.text3}),Z=c.Ay.div(B()),tt=c.Ay.div(P(),t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizBackground[2]},t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizText.text3},t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizText.text1}),tn=c.Ay.div(H()),te=c.Ay.button(U(),t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizLine.line2},t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizText.text2},t=>{var n;return null===(n=t.theme.palette)||void 0===n?void 0:n.bizBackground[2]}),ti=t=>t===h.M6.LBank?"LBank Channel":"Environment Default Channel",tr=t=>t===h.M6.LBank?h.M6.Default:h.M6.LBank,to=(t,n)=>n?"Switching...":t?"Switch to ".concat(ti(t)):"Loading...",tl=t=>{let{config:n}=t;return(0,r.jsxs)(O,{children:[(0,r.jsxs)(N,{children:[(0,r.jsx)($,{children:"Futures API"}),(0,r.jsx)(Q,{children:n.apiUrl})]}),(0,r.jsxs)(N,{children:[(0,r.jsx)($,{children:"Futures WebSocket"}),(0,r.jsx)(Q,{children:n.wsUrl})]})]})};function td(){let[t,n]=l().useState(null),[e,i]=l().useState(!1),[o,d]=l().useState(!1),[a,c]=l().useState(!1),[p,u]=l().useState("");l().useEffect(()=>{n((0,h.qg)()),i((0,h.jh)())},[]);let x=t?(0,h.x0)(t,E):null,b=t?tr(t):null,w=b?(0,h.x0)(b,E):null;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s(),{children:(0,r.jsx)("title",{children:"Futures Endpoint Switch Tool"})}),(0,r.jsxs)(W,{children:[(0,r.jsxs)(F,{children:[(0,r.jsx)("h1",{children:"Futures Endpoint Switch Tool"}),(0,r.jsx)("p",{children:"Switch the client-side futures API and WebSocket endpoints together."})]}),(0,r.jsxs)(I,{children:[(0,r.jsxs)(M,{children:[(0,r.jsx)("h2",{children:"Current Configuration"}),x?(0,r.jsx)(D,{$isLBank:x.mode===h.M6.LBank,children:ti(x.mode)}):null]}),x?(0,r.jsx)(tl,{config:x}):(0,r.jsx)(N,{children:"Loading the current configuration..."}),w?(0,r.jsxs)(R,{children:["After switching, the following endpoints will be used:"," ",(0,r.jsx)("code",{children:w.apiUrl})," and ",(0,r.jsx)("code",{children:w.wsUrl})]}):null,e||!t||p?null:(0,r.jsx)(G,{children:"localStorage is unavailable in this browser, so persistent endpoint switching is disabled. Please check your browser privacy settings."}),p?(0,r.jsx)(G,{children:p}):null,(0,r.jsxs)(J,{children:[(0,r.jsx)(K,{type:"button",disabled:!t||!e||a,onClick:()=>{x&&w&&b&&e&&d(!0)},children:to(b,a)}),(0,r.jsx)(X,{href:"/trade-tools/diagnostics",children:"Open Endpoint Diagnostics"})]}),(0,r.jsx)(q,{children:"This setting is saved in localStorage for 7 days and persists after the browser is closed. It only affects client-side futures API and WebSocket connections. Server-side rendering continues to use the default endpoints for the current environment."})]})]}),o&&x&&w&&b?(0,r.jsx)(V,{children:(0,r.jsxs)(Y,{role:"dialog","aria-modal":"true","aria-labelledby":"domain-switch-dialog-title",children:[(0,r.jsx)("h2",{id:"domain-switch-dialog-title",children:"Confirm Endpoint Switch"}),(0,r.jsxs)("p",{children:["Switch from ",ti(x.mode)," to ",ti(b),". The current configuration will update immediately after the switch succeeds."]}),(0,r.jsxs)(Z,{children:[(0,r.jsxs)(tt,{children:[(0,r.jsx)("span",{children:"Futures API"}),(0,r.jsxs)("code",{children:[x.apiUrl," → ",w.apiUrl]})]}),(0,r.jsxs)(tt,{children:[(0,r.jsx)("span",{children:"Futures WebSocket"}),(0,r.jsxs)("code",{children:[x.wsUrl," → ",w.wsUrl]})]})]}),(0,r.jsxs)(tn,{children:[(0,r.jsx)(te,{type:"button",onClick:()=>d(!1),children:"Cancel"}),(0,r.jsx)(K,{type:"button",onClick:()=>
1{if(b){if(d(!1),c(!0),u(""),!(0,h.Sw)(b)){c(!1),i(!1),u("Unable to write to localStorage. The endpoints were not switched. Please check your browser privacy settings.");return}n(b),c(!1)}},children:"Confirm Switch"})]})]})}):null]})}td.createLayout=()=>p.A;let ts=td},31052:(t,n,e)=>{"use strict";e.d(n,{IW:()=>d,s$:()=>s});var i,r,o=e(52768),l=(i={staticAssetHost:{local:"https://static-cdn.lbk.world",act:"https://static-cdn.lbk.world",dev:"https://static-cdn.lbk.world",test:"https://static-cdn.lbk.world",pre:"https://static-cdn.lbktech.com",prod:"https://static-cdn.lbank.com"},publicAssetHost:{local:"https://static-cdn.lbk.world",act:"https://static-cdn.lbk.world",dev:"https://static-cdn.lbk.world",test:"https://static-cdn.lbk.world",pre:"https://static-cdn.lbktech.com",prod:"https://static-cdn.lbank.com"},imageCdnHost:{local:"https://static-cdn.lbk.world",act:"https://static-cdn.lbk.world",dev:"https://static-cdn.lbk.world",test:"https://static-cdn.lbk.world",pre:"https://static-cdn.lbktech.com",prod:"https://static-cdn.lbank.com"},cfdBasePath:{local:"https://uuapi.lbk.world",act:"https://uuapi.lbk.world",dev:"https://uuapi-dev1.lbk.world",test:"https://uuapi.lbk.world",pre:"https://uuapi.lbktech.com",prod:"https://uuapi.rerrkvifj.com"},ssrCfdBasePath:{local:"https://uuapi.lbk.world",act:"https://uuapi.lbk.world",dev:"https://aliyun2aws-uuapi-dev1.lbk.world",test:"https://uuapi.lbk.world",pre:"https://uuapi.lbktech.com",prod:"https://uuapi.rerrkvifj.com"},basePath:{local:"https://ccapi.lbk.world",act:"https://ccapi.lbk.world",dev:"https://ccapi-dev.lbk.world",test:"https://ccapi.lbk.world",pre:"https://ccapi.lbktech.com",prod:"https://ccapi.rerrkvifj.com"},ssrBasePath:{local:"https://ccapi.lbk.world",act:"http://ccapi.test.com",dev:"http://ccapi-dev1.test.com",test:"http://ccapi.test.com",pre:"http://ccapi.pre.com",prod:"http://ccapi.prod.com"},siteUrl:{local:"https://www-dev1.lbk.world",act:"https://dev.lbk.world",dev:"https://www-dev1.lbk.world",test:"https://www.lbk.world",pre:"https://www.lbktech.com",prod:"https://www.lbank.com"},dexBasePath:{local:"https://dexapi.lbk.world/omni",act:"https://dexapi.lbk.world/omni",dev:"https://dexapi.lbk.world/omni",test:"https://dexapi.lbk.world/omni",pre:"https://dexapi.lbkwork.com/omni",prod:"https://dexapi.rerrkvifj.com/omni"},dexWsUrl:{local:"wss://dexws.lbk.world/omni/dex-binsocket-center/v1",act:"wss://dexws.lbk.world/omni/dex-binsocket-center/v1",dev:"wss://dexws.lbk.world/omni/dex-binsocket-center/v1",test:"wss://dexws.lbk.world/omni/dex-binsocket-center/v1",pre:"wss://dexws.lbkwork.com/omni/dex-binsocket-center/v1",prod:"wss://ddws.lbank.com/omni/dex-binsocket-center/v1"},ossMediaHost:{local:"https://jid.lbk.world",act:"https://jid.lbk.world",dev:"https://jid.lbk.world",test:"https://jid.lbk.world",pre:"https://jid.rerrkvifj.com",prod:"https://jid.rerrkvifj.com"},wsHost:{local:"wss://ws-oc.lbk.world",act:"wss://ws-oc.lbk.world",dev:"wss://ws-oc.lbk.world",test:"wss://ws-oc.lbk.world",pre:"wss://www.lbktech.com",prod:"wss://www.lbank.com"},siteKeyGoogleScore:{local:"6Lc5DyojAAAAAHtCneAp5gC7389QTnzLH5al4Ac9",act:"6Lc5DyojAAAAAHtCneAp5gC7389QTnzLH5al4Ac9",dev:"6Lc5DyojAAAAAHtCneAp5gC7389QTnzLH5al4Ac9",test:"6Lc5DyojAAAAAHtCneAp5gC7389QTnzLH5al4Ac9",pre:"6LfC6REjAAAAABTfzhLhAfAnrtRkJgbflWpFFId-",prod:"6LfC6REjAAAAABTfzhLhAfAnrtRkJgbflWpFFId-"},lbkApiPath:{local:"https://www.lbk.world/lbk-api",act:"/lbk-api",dev:"/lbk-api",test:"/lbk-api",pre:"/lbk-api",prod:"/lbk-api"},lbkApiOmniPath:{local:"https://dexapi.lbk.world/omni",act:"https://dexapi.lbk.world/omni",dev:"https://dexapi.lbk.world/omni",test:"/lbapi/omni",pre:"/lbapi/omni",prod:"/lbapi/omni"},gifoApiPath:{local:"https://testing.gifocard.xyz/gifo-api",act:"/gifo-api",dev:"https://testing.gifocard.xyz/gifo-api",test:"/gifo-api",pre:"/gifo-api",prod:"/gifo-api"},lbkSSrBasePath:{local:"https://www.lbk.world/lbk-api",act:"http://www.test.com/lbk-api",dev:"http://www-dev1.test.com/lbk-api",test:"http://www.test.com/lbk-api",pre:"http://www.pre.com/lbk-api",prod:"http://www.prod.com/lbk-api"}},r=e(61118).$W.env||"prod",Object.fromEntries(Object.entries(i).map(function(t){var n=(0,o.A)(t,2);return[n[0],n[1][r]]})));l.basePath,l.ssrBasePath;var d=l.cfdBasePath;l.staticAssetHost,l.imageCdnHost;var s=l.dexBasePath;l.dexWsUrl,l.ossMediaHost,l.wsHost,l.siteKeyGoogleScore,l.lbkApiPath,l.lbkApiOmniPath,l.gifoApiPath},79011:(t,n,e)=>{t.exports=e(75391)}},t=>{var n=n=>t(t.s=n);t.O(0,[636,6593,8792],()=>n(81910)),_N_E=t.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.