PageSourceSearch

https://www.lbank.com/static-client/lbank-front-trade/_next/static/chunks/9813-968cc6d2d75c74f5.js

js lbank.com collected 2026-09-24 09:10:12 UTC 21,377 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9813],{835:(e,r,n)=>{n.d(r,{A:()=>A});var i=n(63159),s=n(59678),l=n(53886),a=n(79710),t=n(29853),c=n(16819),o=n(46816),u=n(94402),d=n(84601),m=n(96168),p=n(96657),f=n(46039),g=n(94999),N=n(74039),L=n(62132),v=n(65568);let x=e=>{let{available:r,direction:n,tradeData:i}=e,s=(0,o.Ay)(),x=(0,N.TJ)(),h=(0,N.lS)(),P=(0,N.Ay)(e=>e.marginRateList),A=(0,N.uN)(),T=(0,N.$k)(),_=(0,N.tO)(),b=(0,N.jx)(),y=(0,N.BJ)(),j=(0,N.eg)(),{realAvailable:O="--",reserve:w="--",reserveMode:I}=_||{},S=Number((0,u.Fl)(_,"balance",0)),E=(0,d.A)(),M=(0,l.useMemo)(()=>E.filter(e=>!(0,g.A)(e)),[E]),C=n===a.qq.BUY?null==i?void 0:i.buyOrderAmount:null==i?void 0:i.sellOrderAmount,k=n===a.qq.BUY?null==i?void 0:i.buy:null==i?void 0:i.sell,U=Number((null==k?void 0:k.priceType)===L.SJ.LIMIT?k.price:b)||0,D=(0,l.useMemo)(()=>M.filter(e=>e.instrumentID===(null==x?void 0:x.instrumentID)),[M,null==x?void 0:x.instrumentID]),J=(0,p.A)(Number(C)||0).times(U).toNumber(),R=(0,l.useMemo)(()=>c.A.getMarginRateInfo(P,h===L.iU.ISOLATED?void 0:D,b,J),[P,h,D,b,J]),q=null==R?void 0:R.maintenanceMarginRate,W=null==R?void 0:R.maintenanceMarginQuickAmount;if((0,l.useMemo)(()=>!!(h===L.iU.CROSS&&y===L.CR.SINGLE_WAY&&D.some(e=>!e.copyMemberID&&e.direction!==n)),[D,y,n,h]))return"--";let F=n===a.qq.BUY?Number(null==i?void 0:i.buyMaxAmount):Number(null==i?void 0:i.sellMaxAmount);if((Number(C)||0)>F||!(null==x?void 0:x.instrumentID)||"--"===r||"--"===O||!q||!W||!U||!C)return"--";if(h===L.iU.ISOLATED){let e=x?(0,f.Ay)(s,x,A,M,T):0;return(0,m.A)({currentSymbol:x,walletBalance:J/(Number(n===a.qq.BUY?j.long:j.short)||1),realAvailable:I===v.U9.Enabled?(0,p.A)(Number(O)||0).plus(e).toNumber():void 0,positionList:D,orderDirection:n,orderPosition:C,orderPrice:U,cum1:W,mmr1:q})}let B=I===v.U9.Enabled?w:null==I?"--":0;return"--"===B?"--":(0,t.A)({symbols:s,uplPriceMode:T,currentSymbol:x,walletBalance:S,reserve:
1B,markets:A,positionList:M,orderDirection:n,orderPosition:C,orderPrice:U,mmr1:q,cum1:W})};var h=n(43513),P=n(85830);let A=(0,l.memo)(e=>{let{direction:r,tradeData:n}=e,l=x({available:(0,h.A)({available:n.available}),direction:r,tradeData:n}),{pricePrecision:a}=(0,N.K6)();return(0,i.jsx)(s.A,{className:"value liq_price",change:0,children:(0,P.A)(l,a,r)})})},43513:(e,r,n)=>{n.d(r,{A:()=>a});var i=n(53886),s=n(74039),l=n(84601);let a=e=>{let{available:r}=e,n=(0,s.UM)(),[a,t]=(0,i.useState)(!1),c=(0,s.uN)(),o=(0,l.A)();return(0,i.useEffect)(()=>{!a&&n&&(null==o?void 0:o.every(e=>c[e.instrumentID]))&&t(!0)},[a,o,c]),a&&null!=r?r:"--"}},9813:(e,r,n)=>{n.d(r,{A:()=>_});var i=n(63159),s=n(78961),l=n(46816),a=n(4526),t=n(71655),c=n(53268),o=n(92522),u=n(71787),d=n(63618);let m=()=>{let{modal:e}=(0,u.A)(),{t:r}=(0,s.A)();return(0,d.default)(n=>26006===n.code&&(e.warning({title:r("L0006047提示"),content:r("L0017738根据您参加的活动当前开仓本金无"),okText:r("L0001610我知道了"),closable:!1,maskClosable:!1,onOk:e=>{null==e||e()}}),!0))};var p=n(90101),f=n(10932),g=n(76239),N=n(78925),L=n(62132),v=n(94402);let x=e=>{var r;let{symbolInfo:n,markedPrice:i,params:s,orderOption:l,priceType:a,offsetFlag:t,direction:c,t:o}=e,u=t===L.wH.OPEN&&c===L.qq.BUY||t===L.wH.CLOSE&&c===L.qq.BUY,{priceLimitUpper:d}=null!==(r=n.futuresInstrumentExtend)&&void 0!==r?r:{},m=n.priceLimitUpperValue||0,p=n.priceLimitLowerValue||0,f=Number(i||0),g=(null==n?void 0:n.pricePrecision)||0;if(l===L.wW.LIMIT||l===L.wW.POST_ONLY){if(u){let e=f+f*m,r=d?Math.min(Number(d),e):e;if(s.Price>r)return console.warn("maxPrice",r,d,e),{success:!1,message:o("L0009315下单失败价格不得高于",{0:Number(d)===r?d:(0,v.zJ)(r,g)})}}else{let e=f-f*p;if(s.Price<e)return console.warn("minPrice",e),{success:!1,message:o("L0009316下单失败价格不得低于",{0:(0,v.zJ)(e,g,"ceil")})}}}else if(l===L.wW.PLAN&&a===L.SJ.LIMIT){if(u){let e=s.TriggerPrice+s.TriggerPrice*m,r=d?Math.min(Number(d),e):e;if(s.Price>r)return console.warn("maxPrice",r),{success:!1,message:o("L0009315下单失败价格不得高于",{0:Number(d)===r?d:(0,v.zJ)(r,g)})}}else{let e=s.TriggerPrice-s.TriggerPrice*p;if(s.Price<e)return console.warn("minPrice",e),{success:!1,message:o("L0009316下单失败价格不得低于",{0:(0,v.zJ)(e,g,"ceil")})}}}return d&&(Number(d)<s.Price||l===L.wW.PLAN&&Number(d)<s.TriggerPrice||s.CloseTPTriggerPrice&&Number(d)<Number(s.CloseTPTriggerPrice)||s.CloseSLTriggerPrice&&Number(d)<Number(s.CloseSLTriggerPrice))?{success:!1,message:o("L0010291该合约价格不得超过",{0:"".concat(d)})}:{success:!0}};var h=n(74039),P=n(69128),A=n(99703),T=n(14566);let _=()=>{var e;let{t:r}=(0,s.A)(),{LBPush:n}=(0,N.Cb)(),u=(0,l.Ay)(),d=(0,h.MR)(),v=(0,h.fW)(),_=(0,h.NA)(),b=(0,h.kj)(),y=(0,f.Cf)(),j=(0,f.bp)(e=>{var r,n;return null===(n=null===(r=e.futures)||void 0===r?void 0:r.futuresLiquidateRevokeNotice)||void 0===n||n}),O=null===(e=(0,P.r)())||void 0===e?void 0:e.confirmOrder,w=(0,t.A)(),I=(0,c.p)(),S=(0,o.A)(),E=m(),M=(0,p.A)({type:"createOrder",onOk:()=>{y({type:"openPositionTypeModal"})}});return[async function(e){let s,l,{upl:t,leverages:c,marginMode:o,immediatelyOrder:m,showLiqPrice:p,tradeData:f}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{instrumentID:N}=e;if(!await v())return{success:!1,type:"futures_not_open"};let h=u[N];if(!(null==h?void 0:h.instrumentID))return{success:!1,type:"symbol_not_exists"};let{priceType:P,price:y,direction:C,offsetFlag:k,amountMode:U=L.ws.VALUE,sheetAmount:D,amountPercent:J,instructType:R=L.Z5.NORMAL,orderOption:q,triggerPrice:W,tpsl:F,tradeUnitID:B,tradeUnitIDs:Y,leverage:z,copyMemberID:G,market:K,subAccountID:V}=e,H={InstrumentID:h.instrumentID,ExchangeID:h.exchangeID,Direction:C,OffsetFlag:k,OrderPriceType:P,OrderType:P===L.SJ.MARKET?L.Z5.FAK:q===L.wW.POST_ONLY?L.Z5.ONLY_MAKER:R};if(Y?(H.TradeUnitIDs=Y,H.leverage=z,H.copyMemberID=G):H.TradeUnitID=B,V&&(H.subAccountID=V),q===L.wW.PLAN){if(!Number(W))return{type:"param_error",key:"triggerPrice",success:!1,message:r("L0007198触发价格不能为空")};H.TriggerPrice=Number(W),H.TriggerOrderType=L.Ve.PLAN}if(P===L.SJ.LIMIT){if(!y)return{type:"param_error",key:"price",success:!1,message:r("L0007199委托价格不能为空")};
1H.Price=Number(y)}if((U===L.ws.PERCENT?!J:!D)&&k!==L.wH.CLOSE_ALL)return{type:"param_error",key:"sheetAmount",success:!1,message:r("L0005757委托数量不能为空")};if(H.Volume=D,F&&(s=F.tpTriggerPrice,l=F.slTriggerPrice,H.IsGuaranteedPriceOrder=H.isGuaranteedPriceOrder=Number(F.isGuaranteedPriceOrder)||0,q===L.wW.PLAN?(H.TPTriggerPrice=s,H.SLTriggerPrice=l,H.TPTriggerPriceType=F.tpTriggerPriceType,H.SLTriggerPriceType=F.slTriggerPriceType,H.TriggerOrderType=L.Ve.PLAN,H.TPPrice=F.tpOrderPrice,H.SLPrice=F.slOrderPrice):(H.CloseTPTriggerPrice=s,H.CloseSLTriggerPrice=l,H.CloseTPTriggerPriceType=F.tpTriggerPriceType,H.CloseSLTriggerPriceType=F.slTriggerPriceType,H.TriggerOrderType=L.Ve.ORDER_STOP_PROFIT_LOSS,H.CloseTPPrice=F.tpOrderPrice,H.CloseSLPrice=F.slOrderPrice)),h.priceLimitUpper&&(Number(h.priceLimitUpper)<Number(y)||q===L.wW.PLAN&&Number(h.priceLimitUpper)<Number(W)||s&&Number(h.priceLimitUpper)<Number(s)||l&&Number(h.priceLimitUpper)<Number(l)))return{type:"param_error",key:"triggerPrice",success:!1,message:r("L0010291该合约价格不得超过",{0:"".concat(h.priceLimitUpper)})};let{markedPrice:Q,lastPrice:Z}=K||_.getMarketData(N)||{},$=(await Promise.all([x({symbolInfo:h,markedPrice:Q,params:H,orderOption:q,priceType:P,offsetFlag:k,direction:C,t:r})])).find(e=>!e.success);if($)return{type:"validate_error",...$};B||Y||(H.orderProportion=(U===L.ws.PERCENT?J/100:0).toFixed(4));let X=async()=>{try{let l=await (q===L.wW.PLAN?(0,a.DR)(H):F?(0,a.SF)(H):Y?(0,a.rR)(H):(0,a.OI)(H)),t=(0,T.TG)(l),c=!!Y;I(),q===L.wW.PLAN&&(0,A.A)(b);let o=null==l?void 0:l.tips;if(j&&o&&("101"===o.code||"100"===o.code)){var e,s;null===(e=o.modifyMessages)||void 0===e||e.forEach((e,s)=>{let l=Date.now();null==n||n.show({icon:(0,i.jsx)(g.A,{}),titleRender:r("L0020751委托订单被修改"),content:e,orderId:"".concat(l+s)})}),null===(s=o.cancelMessages)||void 0===s||s.forEach((e,s)=>{let l=Date.now()+1e3;null==n||n.show({icon:(0,i.jsx)(g.A,{}),titleRender:r("L0020752委托订单被撤销"),content:e,orderId:"".concat(l+s)})})}return{success:!0,type:"success",message:c?r("L0001509操作成功"):r("L0005440下单成功"),data:l,orderSysID:t,isBatchClose:c,enableToastFromWs:!c&&!!t}}catch(n){let e=n.message;if(S(n)||E(n)||M(n))return{type:"api_error_abnormal",code:n.code,success:!1,error:n,message:""};return w(n.code),{type:"api_error",code:n.code,success:!1,error:n,message:null!=e?e:r("L0005441下单失败")}}};return m||!O?X():O({symbol:h,orderCreationParams:e,volumeUnitType:d,lastPrice:Z,upl:t,leverages:c,marginMode:o,showLiqPrice:p,tradeData:f},X)}]}},90101:(e,r,n)=>{n.d(r,{A:()=>t});var i=n(78961),s=n(71787),l=n(63618),a=n(53886);let t=e=>{let{type:r,onOk:n}=e,{modal:t}=(0,s.A)(),{t:c}=(0,i.A)(),o=(0,a.useMemo)(()=>"adjustType"===r?{title:c("L0010586设置失败"),okText:c("L0001610我知道了")}:{title:c("L0005441下单失败"),cancelText:c("L0000831关闭"),okText:c("L0002395去设置")},[c,r]);return(0,l.default)(e=>26008===e.code&&(t.warning({content:c("L0018813当前增强赠金模式下仅支持双向仓"),closable:!1,maskClosable:!1,onOk:e=>{null==e||e(),null==n||n()},...o}),!0))}},69128:(e,r,n)=>{n.d(r,{K:()=>F,r:()=>l});var i=n(48315);let s=(0,i.q)(null),l=()=>(0,i.i)(s,e=>e);var a=n(63159),t=n(63618),c=n(53886),o=n(98528),u=n(10932),d=n(58474),m=n(44861),p=n(57478),f=n(13892),g=n(60583),N=n(78961),L=n(94402),v=n(50321),x=n(59678),h=n(31256),P=n(8111),A=n(89312),T=n(65568),_=n(34812),b=n(227),y=n(78928),j=n(62132),O=n(45607),w=n(87287);let I=(0,c.memo)(e=>{let{className:r,priceType:n}=e,{t:i}=(0,N.A)(),s=(0,c.useMemo)(()=>{let e={[j.SJ.LIMIT]:i("L0000258限价"),[j.SJ.ANY]:i("L0002840市价"),[j.SJ.OPPONENT_10]:i("L0007192最优10档"),[j.SJ.OPPONENT]:i("L0006958对手价"),[j.SJ.OPPONENT_5]:i("L0007191最优5档"),[j.SJ.OPPONENT_20]:i("L0007193最优20档"),[j.SJ.OPPONENT_30]:i("L0007194最优30档"),[j.SJ.BEST_MARKER]:i("L0007195最优Marker")};return e[j.SJ.MARKET]=i("L0002840市价"),e[n]||""},[n,i]);return(0,a.jsx)("span",{className:r,children:s})});var S=n(30901),E=n(23447),M=n(74039),C=n(835);function k(){let e=(0,d._)(["\n      .futures_order_confirm_head {\n        .tag {\n          color: ",";\n        }\n      }\n\n      .order_info_list {\n        flex-direction: column;\n        margin-bottom: 12px;
1\n        .order_info_item {\n          flex-direction: row;\n          justify-content: space-between;\n          margin-bottom: 8px;\n        }\n      }\n\n      .order_info_item {\n        width: 100%;\n        max-width: 100%;\n      }\n    "]);return k=function(){return e},e}function U(){let e=(0,d._)(["\n  .futures_order_confirm_head {\n    display: flex;\n    align-items: center;\n    color: ",";\n    margin-bottom: 20px;\n    gap: 4px;\n\n    .img,\n    .img img {\n      width: 20px;\n      height: 20px;\n      border-radius: 50%;\n      display: block;\n    }\n\n    .symbol {\n      font-size: 16px;\n      font-weight: 500;\n      line-height: 19px;\n    }\n  }\n\n  .order_info_list {\n    display: flex;\n    flex-wrap: wrap;\n  }\n  ul.order_info_list:not(:first-of-type) {\n    border-top: 1px solid ",";\n    padding-top: 20px;\n  }\n\n  .order_info_item {\n    margin-bottom: 20px;\n    display: flex;\n    flex-direction: column;\n    font-size: 12px;\n    line-height: 14px;\n    width: 25%;\n    max-width: 25%;\n    padding-right: 8px;\n    .name {\n      color: ",";\n      margin-bottom: 4px;\n      max-width: 100%;\n      white-space: break-spaces;\n    }\n    .value {\n      color: ",";\n      white-space: break-spaces;\n    }\n    .liq_price {\n      color: ",";\n    }\n  }\n\n  ","\n\n  .order_confirmer {\n    .lbank-checkbox-small {\n      width: 100%;\n    }\n    .lbank-checkbox-checker {\n      white-space: break-spaces;\n    }\n  }\n"]);return U=function(){return e},e}function D(){let e=(0,d._)(["\n  ",";\n  ",";\n  margin-bottom: 20px;\n\n  .star-icon {\n    color: ",";\n  }\n"]);return D=function(){return e},e}let J=(0,f.Ay)(p.default)(U(),v.vZ,v.f8,v.fG,v.vZ,v.xY,(0,v.FE)({mobile:(0,g.AH)(k(),v.fG)})),R=f.Ay.div(D(),e=>e.theme.bizTypography.r12,v.FU,v.xY),q=e=>{var r,n,i,s,l,t,o,d,p,f,g,v,k,U,D,q;let{visible:W,symbol:F,orderCreationParams:B,marginMode:Y,leverages:z,lastPrice:G,upl:K,showLiqPrice:V,tradeData:H,volumeUnitType:Q=j.Td.COIN,isPositionCoupon:Z,coupon:$,onCancel:X,onOk:ee}=e,{t:er}=(0,N.A)(),[en,ei]=(0,c.useState)(!1),es=(0,M.eg)(),el=(0,u.Cf)(),ea=(0,M.tO)(),[et,ec]=(0,c.useState)(!1);(0,c.useEffect)(()=>{ec(W),W&&(ei(!1),y.A.d2481())},[W]);let eo=(0,c.useRef)(!1),eu=(0,c.useCallback)(()=>{null==X||X(),y.A.d2482({clickName:"cancel",status:en?"ON":"OFF"})},[X,en]);if(!F||!B)return null;let ed=F.pricePrecision||0,em=null!==(f=F.currencyPrecision)&&void 0!==f?f:4,ep=F.clearCurrency,{price:ef,priceType:eg,direction:eN,amountUnitType:eL=j.Z9.B}=B,{orderOption:ev,tpsl:ex}=B,eh=null===(r=F.futuresInstrumentExtend)||void 0===r?void 0:r.svg,eP=(0,a.jsxs)("div",{className:"futures_order_confirm_head",children:[eh?(0,a.jsx)("img",{className:"img",src:(0,m.m2)(eh),alt:F.instrumentID}):null,(0,a.jsxs)("span",{className:"symbol",children:[(0,_.A)(F)," ",er("L0008309永续")]}),(0,a.jsx)(w.A,{className:"directionTag",type:"default",direction:B.direction,offsetFlag:B.offsetFlag,posiDirection:B.posiDirection}),null==z&&null==Y?null:(0,a.jsxs)(x.A,{className:"tag",type:"default",children:[S.A.getName(Y,er),z?" ".concat(B.direction===j.qq.BUY?z.long:z.short,"x"):""]})]});return(0,a.jsxs)(J,{shouldResponsive:!0,className:"futures_order_confirm",width:680,closable:!0,open:et,title:er("L0001066下单确认"),onCancel:eu,onOk:async()=>{if(!eo.current){eo.current=!0;try{if(en){let e=B.orderOption===j.wW.LIMIT?"limitOrderConfirm":B.orderOption===j.wW.POST_ONLY?"passiveOrderConfirm":B.orderOption===j.wW.PLAN?"limitProfitLossOrderConfirm":"marketOrderConfirm";el({type:"update_futures_config",payload:{[e]:!1}})}await (null==ee?void 0:ee())}finally{eo.current=!1,y.A.d2482({clickName:"confirm",status:en?"ON":"OFF"})}}},children:[eP,(0,a.jsxs)("ul",{className:"order_info_list",children:[ev===j.wW.PLAN&&(0,a.jsxs)("li",{className:"order_info_item",children:[(0,a.jsx)("span",{className:"name",children:er("L0000737触发价")}),(0,a.jsx)("span",{className:"value",children:(0,a.jsxs)(h.A,{children:[(0,L.Qr)((0,L.zJ)(B.triggerPrice,ed)),"\xa0"]})})]}),(0,a.jsxs)("li",{className:"order_info_item",children:[(0,a.jsx)("span",{className:"name",children:er("L0000038价格")}),(0,a.jsx)("span",{className:"value",children:B.priceType===j.SJ.LIMIT?(0,a.jsx)(h.A,{children:"".concat((0,L.Qr)((0,L.zJ)(B.price,ed)))}):(0,a.jsx)(I,{priceType:B.priceType})})]}
1),Z&&$?(0,a.jsxs)("li",{className:"order_info_item",children:[(0,a.jsx)("span",{className:"name",children:er("L0012554名义价值")}),(0,a.jsx)("span",{className:"value",children:(0,a.jsx)(h.A,{children:"".concat(null==$.couponValue?"--":(0,L.LN)($.couponValue)," USDT")})})]}):(0,a.jsxs)("li",{className:"order_info_item",children:[(0,a.jsx)("span",{className:"name",children:E.Ay.getAmountUnitTypeName(eL)}),(()=>{let{coinAmount:e=0}=B,{value:r,unit:n}=E.Ay.convertAmountByType({coinAmount:e,amountUnitType:eL,symbol:F,price:eg===j.SJ.MARKET?G||0:ef,volumeUnitType:Q,lever:eN===j.qq.BUY&&B.offsetFlag===j.wH.OPEN||eN!==j.qq.BUY&&B.offsetFlag!==j.wH.OPEN?null==es?void 0:es.long:null==es?void 0:es.short});return(0,a.jsx)("span",{className:"value",children:B.offsetFlag===j.wH.CLOSE_ALL?"".concat(er("L0000183全部")):(0,a.jsx)(h.A,{children:"".concat(null==r?"--":(0,L.LN)(r)," ").concat(n)})})})()]}),!B.tradeUnitID&&(0,a.jsxs)("li",{className:"order_info_item",children:[(0,a.jsx)("span",{className:"name",children:er("L0000237类型")}),(0,a.jsx)("span",{className:"value",children:ev===j.wW.LIMIT?er("L0000258限价"):ev===j.wW.MARKET?er("L0000552市价"):ev===j.wW.PLAN?er("L0007112计划委托"):er("L6661907被动委托")})]}),ev!==j.wW.PLAN&&B.offsetFlag===j.wH.OPEN&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("li",{className:"order_info_item",children:[(0,a.jsx)("span",{className:"name",children:!Z&&((null==ea?void 0:ea.reserveMode)===T.U9.Enabled||(0,b.A)(ea))?(0,a.jsx)(P.A,{className:"name",placement:"topLeft",popupStyle:{maxWidth:220},title:(0,a.jsxs)("span",{children:[(0,a.jsx)("div",{children:er("L0017669保证金包含本金赠金")}),(0,a.jsxs)("div",{children:["".concat(er("L0018124占用本金"),": "),(0,a.jsxs)("span",{className:"ltr",children:[(0,L.zJ)(H?eN===j.qq.BUY?null!==(g=null===(i=H.occupyBonusInfo)||void 0===i?void 0:null===(n=i.buy)||void 0===n?void 0:n.useCapital)&&void 0!==g?g:0:null!==(v=null===(l=H.occupyBonusInfo)||void 0===l?void 0:null===(s=l.sell)||void 0===s?void 0:s.useCapital)&&void 0!==v?v:0:"0",em,"ceil")," USDT"]})]}),(0,a.jsxs)("div",{children:["".concat(er("L0018326占用赠金"),": "),(0,a.jsxs)("span",{className:"ltr",children:[(0,L.zJ)(H?eN===j.qq.BUY?null!==(k=null===(o=H.occupyBonusInfo)||void 0===o?void 0:null===(t=o.buy)||void 0===t?void 0:t.useReserve)&&void 0!==k?k:0:null!==(U=null===(p=H.occupyBonusInfo)||void 0===p?void 0:null===(d=p.sell)||void 0===d?void 0:d.useReserve)&&void 0!==U?U:0:"0",em,"ceil")," USDT"]})]})]}),children:er("L0001058保证金")}):er("L0001058保证金")}),(0,a.jsx)("span",{className:"value",children:(0,a.jsxs)(h.A,{children:[(0,L.zJ)((0,L.Fl)(B,"margin"),em,"ceil"),"\xa0",ep]})})]}),((null==ea?void 0:ea.reserveMode)===T.U9.Enabled||(null==ea?void 0:ea.reserveMode)===T.U9.Ratio)&&Number(ea.reserve||0)>1e-8?null:V&&H&&(0,a.jsxs)("li",{className:"order_info_item",children:[(0,a.jsx)("span",{className:"name",children:er("L0016583预估强平价")}),(0,a.jsx)("span",{className:"value",children:(0,a.jsxs)(h.A,{className:"liq_price",children:[(0,a.jsx)(C.A,{direction:eN,tradeData:H}),"\xa0",ep]})})]})]}),K&&(0,a.jsxs)("li",{className:"order_info_item",children:[(0,a.jsx)("span",{className:"name",children:er("L0008488预估盈亏")}),(0,a.jsx)("span",{className:"value",children:(0,a.jsx)(h.A,{children:K})})]})]}),ex?(0,a.jsxs)("ul",{className:"order_info_list",children:[ex.tpTriggerPrice?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("li",{className:"order_info_item",children:[(0,a.jsx)("span",{className:"name",children:er("L0007164止盈触发价")}),(0,a.jsx)("span",{className:"value",children:(0,a.jsx)(h.A,{children:(0,L.Qr)((0,L.zJ)(null!==(D=ex.tpTriggerPrice)&&void 0!==D?D:"--",ed))})})]}),(0,a.jsxs)("li",{className:"order_info_item",children:[(0,a.jsx)("span",{className:"name",children:er("L0009771止盈委托价")}),(0,a.jsx)("span",{className:"value",children:(0,a.jsx)(h.A,{children:ex.tpOrderPrice?"".concat((0,L.Qr)((0,L.zJ)(ex.tpOrderPrice,ed))):er("L0000552市价")})})]})]}):null,ex.slTriggerPrice?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("li",{className:"order_info_
1item",children:[(0,a.jsx)("span",{className:"name",children:er("L0007166止损触发价")}),(0,a.jsx)("span",{className:"value",children:(0,a.jsx)(h.A,{children:(0,L.Qr)((0,L.zJ)(null!==(q=ex.slTriggerPrice)&&void 0!==q?q:"--",ed))})})]}),(0,a.jsxs)("li",{className:"order_info_item",children:[(0,a.jsx)("span",{className:"name",children:er("L0009769止损委托价")}),(0,a.jsx)("span",{className:"value",children:(0,a.jsx)(h.A,{children:ex.slOrderPrice?"".concat((0,L.Qr)((0,L.zJ)(ex.slOrderPrice,ed))):er("L0000552市价")})})]})]}):null,null!=ex.isGuaranteedPriceOrder?(0,a.jsxs)("li",{className:"order_info_item",children:[(0,a.jsx)("span",{className:"name",children:er("L0022395保证价格")}),(0,a.jsx)("span",{className:"value",children:ex.isGuaranteedPriceOrder?er("L0006986是"):er("L0006987否")})]}):null]}):null,!Z&&((null==ea?void 0:ea.reserveMode)===T.U9.Enabled||(0,b.A)(ea))?(0,a.jsx)(R,{children:(0,a.jsxs)(A.A,{size:2,align:"start",children:[(0,a.jsx)("i",{className:"star-icon",children:"*"}),(0,a.jsx)("span",{children:(0,b.A)(ea)?er("L6661552您已參與指定活動開倉需使用本金"):er("L0017739您当前已参加指定活动需使用本金")})]})}):null,(0,a.jsx)("div",{className:"order_confirmer",children:(0,a.jsx)(O.A,{size:"small",appearance:"square",checked:en,onChange:(e,r)=>{ei(r)},children:er("L0018172不再提示您可在交易设置下单确认")})})]})},W=function(){let{ModalFactory:e=q}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,u.bp)(e=>e.futures),[n,i,s]=(0,o.A)(e);return[(e,i)=>{var l;let{orderCreationParams:a,symbol:t,volumeUnitType:c,marginMode:o,leverages:u,lastPrice:d,upl:m,...p}=e;return null===(l=null==r?void 0:r[a.orderOption===j.wW.LIMIT?"limitOrderConfirm":a.orderOption===j.wW.POST_ONLY?"passiveOrderConfirm":a.orderOption===j.wW.PLAN?"limitProfitLossOrderConfirm":"marketOrderConfirm"])||void 0===l||l?new Promise(e=>{n({orderCreationParams:a,volumeUnitType:c,symbol:t,marginMode:o,leverages:u,lastPrice:d,upl:m,...p,onOk:async()=>{s(),e(await i())},onCancel:()=>{s(),e({success:!1,type:"user_not_confirmed"})}})}):i()},i]},F=e=>{let{children:r}=e,[n,i]=W(),l=(0,t.default)(n),o=(0,c.useMemo)(()=>({confirmOrder:l}),[]);return(0,a.jsxs)(s.Provider,{value:o,children:[i(),r]})}},30901:(e,r,n)=>{n.d(r,{A:()=>l});var i=n(70509),s=n(62132);let l={getName(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.t;return r(e===s.iU.CROSS?"L6661899全仓":"L0001081逐仓")}}}}]);

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.