PageSourceSearch

https://www.tapbit.com/_next_app/price/0.1.227/_next/static/chunks/futures-h5-shell.b7ece32387826517.js

js tapbit.com collected 2026-10-03 21:40:33 UTC 27,047 bytes, 1 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="1492b361-690b-4669-82b5-1336372f5cc4",e._sentryDebugIdIdentifier="sentry-dbid-1492b361-690b-4669-82b5-1336372f5cc4")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[214],{18006:(e,t,s)=>{s.d(t,{useMutation:()=>d});var a=s(38113),n=s(7833),i=s(47682),l=s(75547),r=s(59475),c=class extends l.Q{#e;#t=void 0;#s;#a;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,r.f8)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,r.EN)(t.mutationKey)!==(0,r.EN)(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(e){this.#n(),this.#i(e)}getCurrentResult(){return this.#t}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#n(),this.#i()}mutate(e,t){return this.#a=t,this.#s?.removeObserver(this),this.#s=this.#e.getMutationCache().build(this.#e,this.options),this.#s.addObserver(this),this.#s.execute(e)}#n(){let e=this.#s?.state??(0,n.$)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#i(e){i.jG.batch(()=>{if(this.#a&&this.hasListeners()){let t=this.#t.variables,s=this.#t.context,a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#a.onSuccess?.(e.data,t,s,a)}catch(e){Promise.reject(e)}try{this.#a.onSettled?.(e.data,null,t,s,a)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#a.onError?.(e.error,t,s,a)}catch(e){Promise.reject(e)}try{this.#a.onSettled?.(void 0,e.error,t,s,a)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},o=s(14275);function d(e,t){let s=(0,o.useQueryClient)(t),[n]=a.useState(()=>new c(s,e));a.useEffect(()=>{n.setOptions(e)},[n,e]);let l=a.useSyncExternalStore(a.useCallback(e=>n.subscribe(i.jG.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),d=a.useCallback((e,t)=>{n.mutate(e,t).catch(r.lQ)},[n]);if(l.error&&(0,r.GU)(n.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:d,mutateAsync:l.mutate}}},34273:(e,t,s)=>{s.d(t,{v:()=>b});var a=s(79237),n=s(51186),i=s(66960),l=s(19490),r=s(69534),c=s(66541),o=s(51025),d=s(38113),x=s(51924),m=s(90477);let u="handelHidenMaintenanceSimul",h={startTime:void 0,endTime:void 0,hours:"00",minutes:"00",seconds:"00"};function p(e){return e<10?"0".concat(e):"".concat(e)}function f(e){let{tone:t,icon:s,children:n,onClose:i,mode:l="pc"}=e;return(0,a.jsxs)("div",{className:(0,m.cn)("h5"===l?"text-cm12 rounded-r2 mx-4 my-3 flex items-start justify-between gap-3 px-4 py-3":"text-bm14 mt-[3px] flex w-full items-center justify-between gap-4 px-4 py-[10px]","danger"===t?"bg-p3/10 text-p3":"h5"===l?"bg-p1/10 text-p1":"bg-p1/10 text-t1"),children:[(0,a.jsxs)("div",{className:(0,m.cn)("flex min-w-0 flex-1","h5"===l?"items-start":"items-center"),children:[s,(0,a.jsx)("div",{className:(0,m.cn)("ml-2 min-w-0","h5"===l?void 0:"leading-4"),children:n})]}),i?(0,a.jsx)("button",{type:"button","aria-label":"close notice",className:(0,m.cn)("shrink-0 cursor-pointer","h5"===l?"mt-[2px]":void 0),onClick:i,children:(0,a.jsx)(x.U,{className:"size-3"})}):null]})}function g(e){let{mode:t="pc"}=e,{$t:s}=(0,i.B)(),x=(0,o.k)(e=>e.user),m=!!(null==x?void 0:x.userId),[g,b]=(0,d.useState)(!1),[j,v]=(0,d.useState)(()=>!0===r.Ay.getItem(u)),[N,y]=(0,d.useState)(0),[w,k]=(0,d.useState)(h),C=(0,d.useRef)(null);(0,d.useEffect)(()=>{let e=()=>{C.current&&(clearInterval(C.current),C.current=null)},t=async()=>{e();let t=m?c.YK:c.Jk;try{let s=await t({params:{module:"USDT"}});if((null==s?void 0:s.code)!==200||!(null==s?void 0:s.data)){b(!1),y(0),k(h);return}let a=s.data.startTime-s.data.serverTime,n=s.data.endTime-s.data.serverTime,i=()=>
1{if(a-=1e3,(n-=1e3)<0){e(),b(!1),y(0),k(h);return}if(a<0){b(!0),y(2),k(h),v(!1),r.Ay.setItem(u,!1);return}let t=Math.floor(a/864e5),i=Math.floor(a/36e5%24),l=p(Math.floor(a/6e4%60)),c=p(Math.floor(a/1e3%60));b(!0),y(1),k({startTime:s.data.startTime,endTime:s.data.endTime,hours:p(i+24*t),minutes:l,seconds:c})};i(),C.current=setInterval(i,1e3)}catch(e){b(!1),y(0),k(h)}},s=()=>{document.hidden||t()};return t(),document.addEventListener("visibilitychange",s),()=>{e(),document.removeEventListener("visibilitychange",s)}},[m]);let T=(0,d.useMemo)(()=>{if(!w.startTime||!w.endTime)return"";let e=(0,l.yS)({value:w.startTime,unit:"ms",format:"YYYY-MM-DD"}),t=(0,l.yS)({value:w.endTime,unit:"ms",format:"YYYY-MM-DD"}),s=(0,l.yS)({value:w.startTime,unit:"ms",format:"YYYY-MM-DD HH:mm"}),a=e===t?(0,l.yS)({value:w.endTime,unit:"ms",format:"HH:mm"}):(0,l.yS)({value:w.endTime,unit:"ms",format:"YYYY-MM-DD HH:mm"});return"".concat(s," - ").concat(a)},[w.endTime,w.startTime]);return!g||j?null:(0,a.jsx)(f,{tone:"danger",icon:(0,a.jsx)(n.u,{className:"h5"===t?"size-4 shrink-0":"size-5 shrink-0"}),mode:t,onClose:1===N?()=>{r.Ay.setItem(u,!0),v(!0),b(!1)}:void 0,children:1===N?s("Perpetual Maintenance Notice: Maintenance: {0}.  Countdown to maintenance: {1}.",{0:T||"--",1:"".concat(w.hours," : ").concat(w.minutes," : ").concat(w.seconds)}):s("USDT perpetual is under maintenance. If you have any questions, please contact the customer service staff. Thank y
1ou for your understanding and support.")})}function b(e){let{mode:t="pc"}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(g,{mode:t})})}},45843:(e,t,s)=>{s.r(t),s.d(t,{H5Shell:()=>er});var a=s(79237),n=s(13603),i=s(30511),l=s(66960),r=s(12407),c=s(38113),o=s(22697),d=s(95370),x=s(37901),m=s(47776),u=s(47317),h=s(749),p=s(90477),f=s(17449),g=s(39824),b=s(70783),j=s(78493),v=s(72219),N=s(43231),y=s(9106),w=s(87052),k=s(24800),C=s(19698),T=s(58454),P=s(20757),S=s(65652),M=s(36506),O=s(43129);function z(){let e=(0,O.J)(e=>e.activeContractTab),{showHideOther:t,hideOtherChecked:s,onHideOtherChange:n,showBulkAction:i,bulkActionLabel:l,openBulkActionDialog:r}=(0,M.kk)(e);return(0,a.jsx)(S._,{showHideOther:t,hideOtherChecked:s,onHideOtherChange:n,showBulkAction:i,bulkActionLabel:l,openBulkActionDialog:r})}var A=s(29153),B=s(812),H=s(48157),R=s(60886),_=s(89505),D=s(86617),E=s(8188),Y=s(41387),L=s(3529),I=s(12733),J=s(56233),U=s(39450),K=s(50048),V=s(76656),F=s(40249),Z=s(27644),G=s(53303);let Q={all:"sell",sell:"buy",buy:"all"};function q(){let{summary:e}=(0,j.b)(),t="--"===e.markPrice?"--":"≈$".concat(e.markPrice),s="text-p2"===e.lastPriceClassName?E.K:"text-p3"===e.lastPriceClassName?Y.Z:null;return(0,a.jsxs)("div",{className:"flex flex-col items-start justify-center py-px",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("div",{className:(0,p.cn)("text-tm16",e.lastPriceClassName),children:e.lastPrice}),s?(0,a.jsx)(s,{className:(0,p.cn)("size-4",e.lastPriceClassName)}):null]}),(0,a.jsx)("div",{className:"mt-px flex flex-col items-start",children:(0,a.jsx)("div",{className:"text-c12 text-t3 leading-4 whitespace-nowrap",children:t})})]})}function $(){let e=(0,O.J)(e=>e.orderBookView),t=(0,O.J)(e=>e.setOrderBookView);return(0,a.jsx)("button",{type:"button","aria-label":"Order book display mode",onClick:()=>{t(Q[e])},className:"relative size-6 shrink-0",children:(0,a.jsx)("span",{className:"absolute inset-[4px]",children:(0,a.jsx)(J.g,{view:e})})})}function X(){var e,t;let{$t:s}=(0,l.B)(),n=(0,c.useRef)(null),i=(0,b.A)(n),r=(0,c.useRef)(null),o=(0,b.A)(r),{symbol:d,visibleAskList:x,visibleBidList:m,max:u,showAskList:h,showBidList:p,handleDepthFill:f}=(0,F.f)({panelHeight:null!=(e=null==i?void 0:i.height)?e:0,centerHeight:null!=(t=null==o?void 0:o.height)?t:38,rowHeight:20,dualSideFallbackRows:8,singleSideFallbackRows:16}),{getQuantity:g,precision:j,unit:v}=(0,Z.A)({symbol:d}),N=(0,I.bZ)(e=>{var t;return null==(t=e.symbolsConfigBySymbol[d])?void 0:t.precision}),{mergedPrec:y,setMergedPrec:w,clearMergedPrec:k}=(0,O.J)((0,V.k)(e=>({mergedPrec:e.mergedPrec,setMergedPrec:e.setMergedPrec,clearMergedPrec:e.clearMergedPrec}))),[,C="USDT"]=(0,L.A2)(d,"-").split("-");return(0,a.jsxs)("section",{className:"gap-s2 flex h-full min-h-0 w-full flex-col overflow-hidden rounded-md",children:[(0,a.jsx)("div",{className:"shrink-0",children:(0,a.jsx)(G.E,{})}),(0,a.jsxs)("div",{className:"text-c11 text-t3 flex shrink-0 items-center gap-3 leading-[1.4]",children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-start justify-center pb-px",children:[(0,a.jsx)("span",{className:"w-full truncate",children:s("Price")}),(0,a.jsxs)("span",{className:"w-full truncate",children:["(",C,")"]})]}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-start justify-center pb-px text-right",children:[(0,a.jsx)("span",{className:"w-full truncate",children:s("key_qty_1_3_11_copy")}),(0,a.jsxs)("span",{className:"w-full truncate",children:["(",v,")"]})]})]}),(0,a.jsx)("div",{ref:n,className:"flex min-h-0 flex-1 flex-col",children:(0,a.jsx)(U.E,{variant:"h5",asks:x,bids:m,showAskList:h,showBidList:p,max:u,onDepthFill:f,precision:j,getQuantity:g,centerSlot:(0,a.jsx)("div",{ref:r,className:"shrink-0",children:(0,a.jsx)(q,{})})})}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,a.jsx)("div",{className:"min-w-0 flex-1",children:(0,a.jsx)(K.y,{symbol:d,pricePrecision:N,mergedPrec:y,setMergedPrec:w,clearMergedPrec:k,triggerSize:"s",triggerClassName:"bg-bg2 !text-cm12 text-t1 h-[28px] rounded-[6px] border-none 
1!px-[8px] !py-[4px] shadow-none focus:border-none focus:ring-0 data-[state=open]:border-none data-[state=open]:ring-0",valueContainerClassName:"justify-start text-left",valueClassName:"!text-cm12 text-t1 text-left"})}),(0,a.jsx)($,{})]})]})}function W(e){let{className:t}=e;return(0,a.jsx)("div",{className:(0,p.cn)("bg-bg6 h-3 rounded-full",t)})}function ee(){let{actions:e,summary:t,state:s}=(0,j.b)(),{$t:n}=(0,l.B)(),i="light"===s.theme?d.g:x.r,r=t.isTradfi,c=t.isPreIpo?(0,a.jsx)("span",{className:"ml-[2px] shrink-0",onPointerDown:e=>e.stopPropagation(),onClick:e=>e.stopPropagation(),children:(0,a.jsx)(y.b,{})}):null;return(0,a.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-4 px-4 pt-3 pb-2",children:[(0,a.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-1",children:(0,a.jsxs)("div",{className:"flex max-w-full min-w-0 flex-1 flex-col items-start justify-center gap-[2px]",children:[(0,a.jsx)(w.T,{trigger:(0,a.jsxs)("button",{type:"button",className:"flex max-w-full min-w-0 cursor-pointer items-center gap-1 text-left rtl:text-right",children:[(0,a.jsx)("span",{className:"text-t16 text-t1 min-w-0 truncate font-semibold",children:t.displaySymbol}),(0,a.jsx)("span",{className:"bg-bg2 text-cm11 text-t3 rounded-r1 px-1 py-0.5 leading-[1.4]",children:n("Perp")}),(0,a.jsx)(m.C,{className:"text-t3 size-3 shrink-0"})]})}),r?(0,a.jsxs)("span",{className:"text-mm12 flex w-full max-w-full min-w-0 items-center justify-start gap-1 leading-4",children:[(0,a.jsx)(N.K,{}),t.contractBrief?(0,a.jsx)("span",{className:"text-t3 min-w-0 truncate text-left rtl:text-right",title:t.contractBrief,children:t.contractBrief}):null,c]}):(0,a.jsxs)("span",{className:"text-mm12 flex w-full max-w-full min-w-0 items-center gap-1 leading-4",children:[(0,a.jsx)("span",{className:(0,p.cn)("shrink-0",t.changeClassName),children:t.changePercentText}),c]})]})}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-4",children:[(0,a.jsx)("button",{type:"button",onClick:e.handleThemeClick,className:"text-t1 flex size-[18px] items-center justify-center",children:(0,a.jsx)(i,{className:"size-[18px]"})}),(0,a.jsx)("button",{type:"button","aria-label":n("Settings"),onClick:e.handleSettingsClick,className:"text-t1 flex size-[18px] items-center justify-center",children:(0,a.jsx)(u.Z,{className:"size-[18px]"})})]})]})}function et(){let e=(0,c.useRef)(null),t=(0,b.A)(e),s=null==t?void 0:t.height;return(0,a.jsxs)("div",{className:"mb-s4 grid grid-cols-5 items-stretch gap-3 px-4",children:[(0,a.jsx)("div",{className:"col-span-2 flex min-h-0 min-w-0 overflow-hidden",style:s?{height:s}:void 0,children:(0,a.jsx)(X,{})}),(0,a.jsx)("div",{className:"col-span-3 min-w-0",children:(0,a.jsx)("div",{ref:e,className:"min-h-[420px]",children:(0,a.jsx)(k._,{})})})]})}function es(){return(0,a.jsx)("div",{className:'after:bg-l3 relative after:absolute after:right-0 after:bottom-px after:left-0 after:h-px after:content-[""]',children:(0,a.jsx)(C.k,{listClassName:"h-10 w-full justify-start gap-4 overflow-x-auto bg-transparent px-0",triggerClassName:"!text-mm14 data-[state=active]:!text-tm14"})})}function ea(e){let{title:t}=e;return(0,a.jsxs)(f.p,{title:t,description:"持仓卡片骨架",className:"rounded-none",bodyClassName:"space-y-3 p-4",children:[(0,a.jsx)("div",{className:"grid grid-cols-2 gap-x-4 gap-y-3",children:Array.from({length:6}).map((e,t)=>(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(W,{className:"w-16"}),(0,a.jsx)(W,{className:"w-24"})]},"field-".concat(t)))}),(0,a.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,a.jsx)("div",{className:"bg-bg6 text-c12 text-t1 rounded-md py-2 text-center",children:"TP/SL"}),(0,a.jsx)("div",{className:"bg-bg6 text-c12 text-t1 rounded-md py-2 text-center",children:"Close"}),(0,a.jsx)("div",{className:"bg-bg6 text-c12 text-t1 rounded-md py-2 text-center",children:"Reverse"})]})]})}function en(){let e=(0,O.J)(e=>e.activeContractTab),t=(0,O.J)(e=>e.strategyMode),s=(0,v.Z)(),n=t===h.n1.Grid;return(0,a.jsxs)("div",{children:[(0,a.jsx)(ee,{}),(0,a.jsx)(et,{}),n?(0,a.jsx)(P.I,{mode:"h5"}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(es,{}),(0,a.jsx)(z,{}),(0,a.jsx)(g.E,{...s,children:"positions"===e?(0,a.jsx)(H.X,{mode:"h5"}):"openOrders"===e?(0,a.jsx)(A.o,{mode:"h5"}):"triggerOrders"===e?(0,a.jsx)(D.o,{mode:"h5"}):"ordersHistory"===e?(0,a.jsx)(B.Y,{mode:"h5"}):"tpsl"===e?(0,a.jsx)(R.a,{mode:"h5"}):"transactionHistory"===e?(0,a.jsx)(_.BV,{mode:"h5"}):"copyTrade"===e?(0,a.jsx)(T.e,{mode:"h5"}):(0,a.jsxs)("div",{className:"space-y-0 overflow-hidden rounded-md",children:[(0,a.jsx)(ea,{title:"Position Card Slot A"}),(0,a.jsx)(ea,{title:"Position Card Slot B"})]})})]})]})}let ei=["trade","chart"],el=(0,r.default)(()=>Promise.all([s.e(464),s.e(4799),s.e(9037)]).then(s.bind(s,31913)).then(e=>e.ContractTradingView),{loadableGenerated:{webpack:()=>[31913]},ssr:!1});function er(e){let{themeReady:t}=e,{$t:s}=(0,l.B)(),[r,d]=(0,c.useState)("trade"),[x,m]=(0,c.useState)(!1);(0,c.useEffect)(()=>
1{if(!t)return},[t]);let u=e=>{if(d(e),"chart"===e)return void m(!0)};return(0,a.jsx)("div",{"data-component":"H5Shell",className:"bg-bg7 flex h-full min-h-0 flex-col overflow-hidden",children:t?(0,a.jsxs)(n.Tabs,{value:r,onValueChange:e=>u(e),variant:"text",size:"m",className:"flex min-h-0 flex-1 flex-col bg-transparent",showUnderline:!0,children:[(0,a.jsxs)("div",{className:"bg-bg7 sticky top-0 z-20 flex h-11 shrink-0 items-center px-4",children:[(0,a.jsx)("div",{className:"border-l1 dark:border-l3 pointer-events-none absolute inset-x-0 bottom-[2px] border-b"}),(0,a.jsx)(n.TabsList,{className:"relative z-10 h-full bg-transparent",underlineClassName:"border-transparent",children:ei.map(e=>(0,a.jsx)(n.TabsTrigger,{value:e,className:"data-[state=active]:text-t16 data-[state=inactive]:text-t16",children:"trade"===e?s("Trade"):s("Chart")},e))})]}),(0,a.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto [overscroll-behavior-y:contain] pb-[calc(47px+env(safe-area-inset-bottom,0px)+var(--spacing-s3))]",children:[(0,a.jsx)(o.v,{mode:"h5"}),(0,a.jsx)(n.TabsContent,{value:"trade",className:"mt-0 min-h-0",children:(0,a.jsx)(en,{})}),x?(0,a.jsx)(n.TabsContent,{value:"chart",forceMount:!0,className:"mt-0 h-full min-h-0",children:(0,a.jsx)("div",{className:"bg-bg7 space-y-2 pb-3",children:(0,a.jsx)(el,{mode:"h5",onTradeClick:()=>u("trade")})})}):null]})]}):(0,a.jsx)("div",{className:"bg-bg7 flex min-h-0 flex-1 items-center justify-center",role:"status","aria-busy":"true",children:(0,a.jsx)(i.t,{type:"global",size:"l"})})})}},65652:(e,t,s)=>{s.d(t,{_:()=>r});var a=s(79237),n=s(24626),i=s(66960),l=s(90477);function r(e){let{showHideOther:t,hideOtherChecked:s,onHideOtherChange:r,showBulkAction:c,bulkActionLabel:o,openBulkActionDialog:d}=e,{$t:x}=(0,i.B)();return t||c?(0,a.jsxs)("div",{"data-component":"H5ContractActionBar",className:"bg-bg7 flex min-h-10 items-center justify-between gap-3 px-4 pt-4 pb-2",children:[t?(0,a.jsxs)(n.Checkbox.Label,{className:"h-6 gap-1",children:[(0,a.jsx)(n.Checkbox.Control,{checked:s,onCheckedChange:e=>r(!0===e)}),(0,a.jsx)(n.Checkbox.Text,{className:"text-cm12 text-t3 leading-6 whitespace-nowrap",children:x("Hide Other Symbols")})]}):(0,a.jsx)("div",{}),c?(0,a.jsx)("button",{type:"button",className:(0,l.cn)("bg-bt2 text-cm12 text-t1 rounded-rb1 flex h-6 shrink-0 items-center px-2 whitespace-nowrap"),onClick:d,children:o}):null]}):null}},79410:(e,t,s)=>{s.r(t),s.d(t,{H5Shell:()=>et});var a=s(79237),n=s(13603),i=s(30511),l=s(66960),r=s(12407),c=s(38113),o=s(34273),d=s(95370),x=s(37901),m=s(47776),u=s(47317),h=s(90477),p=s(17449),f=s(39824),g=s(70783),b=s(559),j=s(74709),v=s(15977),N=s(32371),y=s(57625),w=s(65652),k=s(26560),C=s(2639);function T(){let e=(0,C.J)(e=>e.activeContractTab),{showHideOther:t,hideOtherChecked:s,onHideOtherChange:n,showBulkAction:i,bulkActionLabel:l,openBulkActionDialog:r}=(0,k.kk)(e);return(0,a.jsx)(w._,{showHideOther:t,hideOtherChecked:s,onHideOtherChange:n,showBulkAction:i,bulkActionLabel:l,openBulkActionDialog:r})}var P=s(84137),S=s(74526),M=s(50962),O=s(46420),z=s(52612),A=s(8188),B=s(41387),H=s(3529),R=s(52293),_=s(56233),D=s(39450),E=s(50048),Y=s(76656),L=s(16591),I=s(97430),J=s(26811);let U={all:"sell",sell:"buy",buy:"all"};function K(){let{summary:e}=(0,b.b)(),t="--"===e.markPrice?"--":"≈$".concat(e.markPrice),s="text-p2"===e.lastPriceClassName?A.K:"text-p3"===e.lastPriceClassName?B.Z:null;return(0,a.jsxs)("div",{className:"flex flex-col items-start justify-center py-px",children:[(0,a.jsxs)("div",{className:"flex items-center gap-1",children:[(0,a.jsx)("div",{className:(0,h.cn)("text-tm16",e.lastPriceClassName),children:e.lastPrice}),s?(0,a.jsx)(s,{className:(0,h.cn)("size-4",e.lastPriceClassName)}):null]}),(0,a.jsx)("div",{className:"mt-px flex flex-col items-start",children:(0,a.jsx)("div",{className:"text-c12 text-t3 leading-4 whitespace-nowrap",children:t})})]})}function V(){let e=(0,C.J)(e=>e.orderBookView),t=(0,C.J)(e=>e.setOrderBookView);return(0,a.jsx)("button",{type:"button","aria-label":"Order book display mode",onClick:()=>{t(U[e])},className:"relative size-6 shrink-0",children:(0,a.jsx)("span",{className:"absolute inset-[4px]",children:(0,a.jsx)(_.g,{view:e})})})}function F(){var e,t;let{$t:s}=(0,l.B)(),n=(0,c.useRef)(null),i=(0,g.A)(n),r=(0,c.useRef)(null),o=(0,g.A)(r),{symbol:d,visibleAskList:x,visibleBidList:m,max:u,showAskList:h,showBidList:p,handleDepthFill:f}=(0,L.f)({panelHeight:null!=(e=null==i?void 0:i.height)?e:0,centerHeight:null!=(t=null==o?void 0:o.height)?t:38,rowHeight:20,dualSideFallbackRows:8,singleSideFallbackRows:16}),{getQuantity:b,precision:j,unit:v}
1=(0,I.A)({symbol:d}),N=(0,R.bZ)(e=>{var t;return null==(t=e.symbolsConfigBySymbol[d])?void 0:t.precision}),{mergedPrec:y,setMergedPrec:w,clearMergedPrec:k}=(0,C.J)((0,Y.k)(e=>({mergedPrec:e.mergedPrec,setMergedPrec:e.setMergedPrec,clearMergedPrec:e.clearMergedPrec}))),[,T="USDT"]=(0,H.A2)(d,"-").split("-");return(0,a.jsxs)("section",{className:"gap-s2 flex h-full min-h-0 w-full flex-col overflow-hidden rounded-md",children:[(0,a.jsx)("div",{className:"shrink-0",children:(0,a.jsx)(J.E,{})}),(0,a.jsxs)("div",{className:"text-c11 text-t3 flex shrink-0 items-center gap-3 leading-[1.4]",children:[(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-start justify-center pb-px",children:[(0,a.jsx)("span",{className:"w-full truncate",children:s("Price")}),(0,a.jsxs)("span",{className:"w-full truncate",children:["(",T,")"]})]}),(0,a.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-start justify-center pb-px text-right",children:[(0,a.jsx)("span",{className:"w-full truncate",children:s("key_qty_1_3_11_copy")}),(0,a.jsxs)("span",{className:"w-full truncate",children:["(",v,")"]})]})]}),(0,a.jsx)("div",{ref:n,className:"flex min-h-0 flex-1 flex-col",children:(0,a.jsx)(D.E,{variant:"h5",asks:x,bids:m,showAskList:h,showBidList:p,max:u,onDepthFill:f,precision:j,getQuantity:b,centerSlot:(0,a.jsx)("div",{ref:r,className:"shrink-0",children:(0,a.jsx)(K,{})})})}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-1",children:[(0,a.jsx)("div",{className:"min-w-0 flex-1",children:(0,a.jsx)(E.y,{symbol:d,pricePrecision:N,mergedPrec:y,setMergedPrec:w,clearMergedPrec:k,triggerSize:"s",triggerClassName:"bg-bg2 !text-cm12 text-t1 h-[28px] rounded-[6px] border-none !px-[8px] !py-[4px] shadow-none focus:border-none focus:ring-0 data-[state=open]:border-none data-[state=open]:ring-0",valueContainerClassName:"justify-start text-left",valueClassName:"!text-cm12 text-t1 text-left"})}),(0,a.jsx)(V,{})]})]})}function Z(e){let{className:t}=e;return(0,a.jsx)("div",{className:(0,h.cn)("bg-bg6 h-3 rounded-full",t)})}function G(){let{actions:e,state:t,summary:s}=(0,b.b)(),{$t:n}=(0,l.B)(),i="light"===t.theme?d.g:x.r;return(0,a.jsxs)("div",{className:"mb-2 flex items-center justify-between gap-4 px-4 pt-3 pb-2",children:[(0,a.jsx)("div",{className:"flex min-w-0 flex-1 items-center gap-1",children:(0,a.jsx)(v.T,{trigger:(0,a.jsx)("button",{type:"button",className:"flex w-full max-w-full min-w-0 cursor-pointer items-center gap-1",children:(0,a.jsxs)("span",{className:"flex max-w-full min-w-0 flex-1 flex-col items-start justify-center gap-[2px]",children:[(0,a.jsxs)("span",{className:"flex w-full max-w-full min-w-0 items-center gap-1",children:[(0,a.jsx)("span",{className:"text-t16 text-t1 min-w-0 truncate font-semibold",children:s.displaySymbol}),(0,a.jsx)("span",{className:"bg-bg2 text-cm11 text-t3 rounded-r1 px-1 py-0.5 leading-[1.4]",children:n("Demo")}),(0,a.jsx)(m.C,{className:"text-t3 size-3 shrink-0"})]}),(0,a.jsx)("span",{className:(0,h.cn)("text-mm12 leading-4",s.changeClassName),children:s.changePercentText})]})})})}),(0,a.jsxs)("div",{className:"flex shrink-0 items-center gap-4",children:[(0,a.jsx)("button",{type:"button",onClick:e.handleThemeClick,className:"text-t1 flex size-[18px] items-center justify-center",children:(0,a.jsx)(i,{className:"size-[18px]"})}),(0,a.jsx)("button",{type:"button","aria-label":n("Settings"),onClick:e.handleSettingsClick,className:"text-t1 flex size-[18px] items-center justify-center",children:(0,a.jsx)(u.Z,{className:"size-[18px]"})})]})]})}function Q(){let e=(0,c.useRef)(null),t=(0,g.A)(e),s=null==t?void 0:t.height;return(0,a.jsxs)("div",{className:"mb-s4 grid grid-cols-5 items-stretch gap-3 px-4",children:[(0,a.jsx)("div",{className:"col-span-2 flex min-h-0 min-w-0 overflow-hidden",style:s?{height:s}:void 0,children:(0,a.jsx)(F,{})}),(0,a.jsx)("div",{className:"col-span-3 min-w-0",children:(0,a.jsx)("div",{ref:e,className:"min-h-[420px]",children:(0,a.jsx)(N._,{})})})]})}function q(){return(0,a.jsx)("div",{className:'after:bg-l3 relative after:absolute after:right-0 after:bottom-px after:left-0 after:h-px after:content-[""]',children:(0,a.jsx)(y.k,{listClassName:"h-10 w-full justify-start gap-4 overflow-x-auto bg-transparent px-0",triggerClassName:"!text-mm14 data-[state=active]:!text-tm14"})})}function $(e){let{title:t}=e;return(0,a.jsxs)(p.p,{title:t,description:"持仓卡片骨架",className:"rounded-none",bodyClassName:"space-y-3 p-4",children:[(0,a.jsx)("div",{className:"grid grid-cols-2 gap-x-4 gap-y-3",children:Array.from({length:6}).map((e,t)=>(0,a.jsxs)("div",{className:"space-y-1.5",children:[(0,a.jsx)(Z,{className:"w-16"}),(0,a.jsx)(Z,{className:"w-24"})]},"field-".concat(t)))}),(0,a.jsxs)("div",{className:"grid grid-cols-3 gap-2",children:[(0,a.jsx)("div",{className:"bg-bg6 text-c12 text-t1 rounded-md py-2 text-center",children:"TP/SL"}),(0,a.jsx)("div",{className:"bg-bg6 text-c12 text-t1 rounded-md py-2 text-center",children:"Close"}),(0,a.jsx)("div",{className:"bg-bg6 text-c12 text-t1 rounded-md py-2 text-center",children:"Leverage"})]})]})}function X(){let e=(0,C.J)(e=>e.activeContractTab),t=(0,j.Z)();return(0,a.jsxs)("div",{children:[(0,a.jsx)(G,{}),(0,a.jsx)(Q,{}),(0,a.jsx)(q,{}),(0,a.jsx)(T,{}),(0,a.jsx)(f.E,{...t,children:"positions"===e?(0,a.jsx)(M.X,{mode:"h5"}):"openOrders"===e?(0,a.jsx)(P.o,{mode:"h5"}):"triggerOrders"===e?(0,a.jsx)(z.o,{mode:"h5"}):"ordersHistory"===e?(0,a.jsx)(S.Y,{mode:"h5"}):"tpsl"===e?(0,a.jsx)(O.a,{mode:"h5"}):(0,a.jsxs)("div",{className:"space-y-0 overflow-hidden rounded-md",children:[(0,a.jsx)($,{title:"Position Card Slot A"}),(0,a.jsx)($,{title:"Position Card Slot B"})]})})]})}let W=["trade","chart"],ee=(0,r.default)(()=>Promise.all([s.e(464),s.e(4799),s.e(9037)]).then(s.bind(s,21415)).then(e=>e.ContractTradingView),{loadableGenerated:{webpack:()=>[21415]},ssr:!1});function et(e){let{themeReady:t}=e,{$t:s}=(0,l.B)(),[r,d]=(0,c.useState)("trade"),[x,m]=(0,c.useState)(!1),u=e=>{d(e),"chart"===e&&m(!0)};return(0,a.jsx)("div",{"data-component":"H5Shell",className:"bg-bg7 flex h-full min-h-0 flex-col overflow-hidden",children:t?(0,a.jsxs)(n.Tabs,{value:r,onValueChange:e=>u(e),variant:"text",size:"m",className:"flex min-h-0 flex-1 flex-col bg-transparent",showUnderline:!0,children:[(0,a.jsxs)("div",{className:"bg-bg7 sticky top-0 z-20 flex h-11 shrink-0 items-center px-4",children:[(0,a.jsx)("div",{className:"border-l1 dark:border-l3 pointer-events-none absolute inset-x-0 bottom-[2px] border-b"}),(0,a.jsx)(n.TabsList,{className:"relative z-10 h-full bg-transparent",underlineClassName:"border-transparent",children:W.map(e=>(0,a.jsx)(n.TabsTrigger,{value:e,className:"data-[state=active]:text-t16 data-[state=inactive]:text-t16",children:"trade"===e?s("Trade"):s("Chart")},e))})]}),(0,a.jsxs)("div",{className:"min-h-0 flex-1 overflow-y-auto [overscroll-behavior-y:contain] pb-[calc(47px+env(safe-area-inset-bottom,0px)+var(--spacing-s3))]",children:[(0,a.jsx)(o.v,{mode:"h5"}),(0,a.jsx)(n.TabsContent,{value:"trade",className:"mt-0 min-h-0",children:(0,a.jsx)(X,{})}),x?(0,a.jsx)(n.TabsContent,{value:"chart",forceMount:!0,className:"mt-0 h-full min-h-0",children:(0,a.jsx)("div",{className:"bg-bg7 space-y-2 pb-3",children:(0,a.jsx)(ee,{mode:"h5",onTradeClick:()=>u("trade")})})}):null]})]}):(0,a.jsx)("div",{className:"bg-bg7 flex min-h-0 flex-1 items-center justify-center",role:"status","aria-busy":"true",children:(0,a.jsx)(i.t,{type:"global",size:"l"})})})}}}]);

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.