1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="4bf33335-f3f3-4e75-a7b0-901e49e55681",e._sentryDebugIdIdentifier="sentry-dbid-4bf33335-f3f3-4e75-a7b0-901e49e55681")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2287],{32287:(e,s,a)=>{a.r(s),a.d(s,{CnHkLiquidityBadge:()=>M,CnHkLiquidityPanel:()=>k,default:()=>w});var t=a(79237),n=a(38113),l=a(65375);let i=n.forwardRef((e,s)=>(0,t.jsx)(l.B,{ref:s,viewBox:"0 0 20 20",...e,style:{color:"#E6A800",...e.style},children:(0,t.jsx)("path",{d:"M10.0005 7.07715C12.6848 7.07737 14.8606 9.25413 14.8608 11.9385C14.8608 12.8232 14.6235 13.6526 14.2104 14.3672H16.6714C17.2149 14.3672 17.6555 14.8081 17.6558 15.3516C17.6558 15.8952 17.215 16.3359 16.6714 16.3359H3.32861C2.78496 16.3359 2.34424 15.8952 2.34424 15.3516C2.34446 14.8081 2.7851 14.3672 3.32861 14.3672H5.79053C5.37732 13.6525 5.13921 12.8234 5.13916 11.9385C5.13941 9.254 7.31595 7.07715 10.0005 7.07715ZM2.99658 10.5039C3.44747 10.5041 3.81285 10.8694 3.81299 11.3203C3.81299 11.7713 3.44755 12.1375 2.99658 12.1377H2.31006C1.85893 12.1377 1.49268 11.7714 1.49268 11.3203C1.49281 10.8693 1.85901 10.5039 2.31006 10.5039H2.99658ZM17.6899 10.5039C18.141 10.5039 18.5062 10.8693 18.5063 11.3203C18.5063 11.7714 18.1411 12.1377 17.6899 12.1377H17.0034C16.5524 12.1376 16.187 11.7714 16.187 11.3203C16.1871 10.8694 16.5525 10.504 17.0034 10.5039H17.6899ZM3.9751 6.2373C4.30745 5.88634 4.86642 5.88626 5.19873 6.2373L5.43115 6.48242C5.73852 6.80717 5.7383 7.31574 5.43115 7.64062C5.0988 7.99178 4.53987 7.99177 4.20752 7.64062L3.9751 7.39551C3.66764 7.07064 3.66763 6.56217 3.9751 6.2373ZM14.8169 6.2207C15.1405 5.87876 15.6856 5.87875 16.0093 6.2207C16.3205 6.54988 16.3062 7.06953 15.9771 7.38086L15.6919 7.65039C15.3672 7.95746 14.8546 7.94276 14.5474 7.61816C14.2522 7.30608 14.2522 6.81797 14.5474 6.50586L14.8169 6.2207ZM9.99951 3.63086C10.4264 3.63086 10.7728 3.9765 10.7729 4.40332V5.22656C10.7727 5.65333 10.4263 5.99902 9.99951 5.99902C9.57288 5.9988 9.22731 5.65319 9.22705 5.22656V4.40332C9.22724 3.97664 9.57284 3.63108 9.99951 3.63086Z",fill:"currentColor"})}));i.displayName="CnHkOpeningAuctionIcon";let r=n.forwardRef((e,s)=>(0,t.jsxs)(l.B,{ref:s,viewBox:"0 0 20 20",...e,style:{color:"#00BF75",...e.style},children:[(0,t.jsx)("path",{d:"M15.0001 9.99983C15.0001 12.7612 12.7616 14.9997 10.0003 14.9997C7.23899 14.9997 5.00049 12.7612 5.00049 9.99983C5.00049 7.2385 7.23899 5 10.0003 5C12.7616 5 15.0001 7.2385 15.0001 9.99983Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M15.0003 10.0003C15.0003 7.3253 12.8992 5.14077 10.2575 5.00684L10.0003 5.00033C7.239 5.00033 5.00033 7.239 5.00033 10.0003L5.00684 10.2575C5.13645 12.8141 7.18649 14.8644 9.74316 14.9938L10.0003 15.0003C12.6753 15.0002 14.8599 12.8992 14.9938 10.2575L15.0003 10.0003ZM18.3337 10.0003C18.3336 14.6025 14.6025 18.3336 10.0003 18.3337C5.3981 18.3337 1.66708 14.6025 1.66699 10.0003C1.66699 5.39805 5.39805 1.66699 10.0003 1.66699C14.6025 1.66708 18.3337 5.3981 18.3337 10.0003Z",fill:"currentColor",fillOpacity:"0.15"})]}));r.displayName="CnHkRegularMorningIcon";let d=n.forwardRef((e,s)=>(0,t.jsx)(l.B,{ref:s,viewBox:"0 0 20 20",...e,style:{color:"#A352EF",...e.style},children:(0,t.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 2.5C14.1421 2.5 17.5 5.85794 17.5 10C17.5 14.1421 14.1421 17.5 10 17.5C5.85794 17.5 2.5 14.1421 2.5 10C2.5 5.85794 5.85794 2.5 10 2.5ZM10 5.93155C9.5127 5.93155 9.11752 6.32673 9.11752 6.81403V10.4904C9.11764 10.9776 9.51277 11.3729 10 11.3729H12.7307C13.218 11.3729 13.6131 10.9776 13.6132 10.4904C13.6132 10.0031 13.218 9.60795 12.7307 9.60795H10.8825V6.81403C10.8825 6.32673 10.4873 5.93155 10 5.93155Z",fill:"currentColor"})}));d.displayName="CnHkMiddayBreakIcon";var c=a(30511),o=a(13603),x=a(53951),m=a(70659),u=a(66960),p=a(90477),f=a(11834),h=a(74494);function C(){let{$t:e}=(0,u.B)();return{OPENING_AUCTION:e("key_opening_auction_1_3_12",{defaultValue:"Opening Auction"}),REGULAR_MARKET:e("Regular Market"),MIDDAY_BREAK:e("key_midday_break_1_3_12",{defaultValue:"Midday Break"}),MARKET_CLOSED:e("Market Closed")}}let g={OPENING_AUCTION:"text-p4",REGULAR_MARKET:"text-p2",MIDDAY_BREAK:"text-[#a352ef]",MARKET_CLOSED:"text-p3"},y={auction:i,morning:r,midday:d,afternoon:r};function j(e){let{status:s,sessionId:a}=e;if("MARKET_CLOSED"===s)return(0,t.jsx)("img",{alt:"",src:"https://cdn.tapbit.mobi/next-web/futures/market-closed.png",width:20,height:20,className:"size-5 shrink-0"});let n=y["OPENING_AUCTION"===s?"auction":"MIDDAY_BREAK"===s?"midday":"afternoon"===a?"afternoon":"morning"];
1return(0,t.jsx)(n,{"aria-hidden":!0,className:"!size-5 shrink-0"})}function _(e){let{status:s,level:a,compact:n=!1}=e,{$t:l}=(0,u.B)(),i=(null!=a?a:(0,h.LE)(s))==="HIGH",r=l(n?i?"High":"Low":i?"High Liquidity":"Low Liquidity");return(0,t.jsxs)("span",{className:"text-t3 text-c12 gap-s1 inline-flex shrink-0 items-center whitespace-nowrap",children:[r,(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-4 items-center justify-center gap-[2px]",children:[0,1,2].map(e=>(0,t.jsx)("span",{className:(0,p.cn)("h-2 w-[2px] rounded-[2px]",i?"bg-p2":0===e?"bg-p3":"bg-bg6")},e))})]})}function b(){return(0,t.jsx)("div",{className:"px-s6 py-s8 max-md:px-s5 flex justify-center",children:(0,t.jsx)(c.t,{size:"s"})})}function N(e){let{snapshot:s,onRefresh:a}=e,{$t:n}=(0,u.B)(),l=C(),i=(0,f._)(s,a),r=(0,h.Tl)(s.status),d=(0,h.qv)(s),c="HALF_DAY"===s.specialTag&&"HK"===s.market?"".concat(n("key_half_day_close_1_3_12",{defaultValue:"Half-day Close"}),": 12:00 HKT"):"MARKET_CLOSED"===r&&"HOLIDAY"===s.specialTag?n("Holiday"):"MARKET_CLOSED"===r&&"WEEKEND"===s.specialTag?n("Weekend"):"";return(0,t.jsx)("div",{className:"from-bg2 px-s6 py-s5 bg-gradient-to-r to-transparent",children:(0,t.jsxs)("div",{className:"gap-s3 flex items-start justify-between",children:[(0,t.jsxs)("div",{className:"gap-s2 flex min-w-0 items-start",children:[(0,t.jsx)(j,{status:r,sessionId:s.currentSessionId}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:(0,p.cn)("text-t14",g[r]),children:l[r]}),c&&(0,t.jsx)("div",{className:"bg-bg6 text-t1 text-m12 mt-s2 rounded-r1 px-s2 py-s1 inline-block",children:c}),d&&null!==i.remainingMs&&(0,t.jsx)("div",{className:"text-t3 text-c12 mt-s2",children:n("Next: {0} in {1}",{0:l[d.status],1:(0,h.xM)(i.remainingMs)})})]})]}),(0,t.jsx)(_,{status:r,level:s.liquidityLevel})]})})}function v(e){let{identity:s,config:a,mode:n,snapshot:l}=e,{$t:i}=(0,u.B)(),r=C();if("ready"!==a.state||!(0,h.c3)(a.data,s))return(0,t.jsx)(b,{});let d=a.data.groups[n];return(0,h.qm)(d)?(0,t.jsx)("div",{className:"gap-s4 flex flex-col",children:(0,t.jsx)("ul",{"aria-label":i("Regular Trading Hours"),className:"gap-s4 flex list-none flex-col p-0",children:d.items.map(e=>{let s=h.yf[e.id],a=(null==l?void 0:l.currentSessionId)===e.id&&l.status===s;return(0,t.jsxs)("li",{"aria-current":a?"true":void 0,className:"gap-s3 px-s6 flex min-h-10 items-start justify-between",children:[(0,t.jsxs)("div",{className:"gap-s2 flex min-w-0 items-start",children:[(0,t.jsx)(j,{status:s,sessionId:e.id}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("div",{className:"text-t1 text-mm14",children:r[s]}),(0,t.jsx)("div",{className:"text-t3 text-cm12 mt-s1",children:e.timeRange})]})]}),(0,t.jsx)(_,{status:s,level:e.liquidityLevel,compact:!0})]},e.id)})})}):(0,t.jsx)(b,{})}function k(e){let{$t:s,locale:a}=(0,u.B)(),[l,i]=(0,n.useState)("local"),r="ready"===e.status.state&&(0,h.c3)(e.status.data,e)?e.status.data:null;return(0,t.jsxs)("div",{className:"pb-s6 flex min-h-0 flex-col",children:[(0,t.jsxs)("div",{className:"text-c12 text-t3 px-s6",children:[(0,t.jsxs)("span",{className:"gap-s2 text-t1 inline-flex items-center",children:[(0,t.jsx)("span",{"aria-hidden":!0,children:"CN"===e.market?"\uD83C\uDDE8\uD83C\uDDF3":"\uD83C\uDDED\uD83C\uDDF0"}),(0,t.jsx)("strong",{children:"CN"===e.market?s("key_china_market_1_3_12",{defaultValue:"China Market"}):s("key_hong_kong_market_1_3_12",{defaultValue:"Hong Kong Market"})}),(0,t.jsx)("span",{"aria-hidden":!0,children:"\xb7"})]})," ",s("key_trades_24_7_liquidity_varies_by_market_session_1_3_12",{defaultValue:"Trades 24/7 liquidity varies by market session."})," ",(0,t.jsx)("a",{href:"https://tapbitcex.zendesk.com/hc/".concat("ja"===a?"ja":"zh-TW"===a?"zh-tw":"en-us","/articles/16760214049039"),target:"_blank",rel:"noopener noreferrer",className:"text-p1-dark",children:s("Learn More")})]}),(0,t.jsxs)(o.Tabs,{value:l,onValueChange:e=>{("local"===e||"market"===e)&&i(e)},variant:"capsule",className:"mt-s6",children:[(0,t.jsxs)(o.TabsList,{className:"mx-s6 !h-9 !w-fit",children:[(0,t.jsx)(o.TabsTrigger,{value:"local",children:s("Local")}),(0,t.jsx)(o.TabsTrigger,{value:"market",children:s("Market Time")})]}),(0,t.jsx)("div",{className:"mt-s4",children:r?(0,t.jsx)(N,{snapshot:r,onRefresh:e.onRefreshStatus},"".concat(r.market,":").concat(r.symbol,":").concat(r.contextKey)):(0,t.jsx)(b,{})}),(0,t.jsxs)("div",{className:"gap-s3 px-s6 py-s5 flex w-full items-center",children:[(0,t.jsx)("span",{"aria-hidden":!0,
1className:"h-px min-w-0 flex-1 bg-gradient-to-r from-transparent to-[var(--color-l1)]"}),(0,t.jsx)("span",{className:"text-bm14 text-t3 shrink-0 text-center whitespace-nowrap",children:s("Regular Trading Hours")}),(0,t.jsx)("span",{"aria-hidden":!0,className:"h-px min-w-0 flex-1 bg-gradient-to-r from-[var(--color-l1)] to-transparent"})]}),["local","market"].map(s=>(0,t.jsx)(o.TabsContent,{value:s,className:"!mt-0",children:(0,t.jsx)(v,{identity:e,config:e.config,mode:s,snapshot:r})},s))]})]})}function w(e){let{open:s,onOpenChange:a,...n}=e,{$t:l}=(0,u.B)();return(0,t.jsx)(x.Dialog,{open:s,onOpenChange:a,variant:"drawer",title:l("Liquidity Status"),showClose:!0,onClose:()=>a(!1),footer:!1,className:"!bg-m1 !border-l1 !rounded-r4 shadow-3 w-[420px] !max-w-[calc(100vw_-_var(--spacing-s7))] overflow-hidden !border !p-0 max-md:max-h-[90dvh] max-md:!w-full max-md:!max-w-full max-md:!rounded-b-none max-md:!border-0",headerClassName:"h-11 px-s6 pb-0 pt-[22px]",bodyClassName:"!mt-s3 !px-0 !pb-0 !pt-0",overlayClassName:"bg-p6",children:s&&(0,t.jsx)("div",{className:"max-h-[75dvh] overflow-y-auto",children:(0,t.jsx)(k,{...n},"".concat(n.market,":").concat(n.symbol,":").concat(n.contextKey))})})}function M(e){let{snapshot:s,onClick:a}=e,{$t:n}=(0,u.B)();return(0,t.jsx)(m.$,{variant:"link",size:"s",onClick:a,"aria-label":n("Liquidity Status"),children:(0,t.jsx)(_,{status:(0,h.Tl)(s.status),level:s.liquidityLevel})})}}}]);
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.