1"use strict";(self.webpackChunkokx_nav=self.webpackChunkokx_nav||[]).push([[2133],{86095:(t,n,e)=>{e.r(n),e.d(n,{NetworkBadNotification:()=>B,initNetworkMonitoring:()=>b,startFlow:()=>T});var o,i=e(92901),a=e(23029),r=e(89379),s=(e(41594),e(13798)),c=e(917),l=e(29905),u=e(32401),f=e(86516),d=e(96088),v=e(22241),m=(e(49825),e(11694),e(47185)),w=e.n(m),p=e(89644),h=e(13734),A=e(10867),_=e(19919),g="networkBadNotificationStatus",k="netNotifyFlow",x=0,C=1,y=2,D=3,N=15552e6,j=864e5,I=null,S=!1,T=function(){var t=s.A.init({project:"nav"}),n={startTime:Date.now(),events:["init"]};t.set(k,n),S=!1},E=function(t){if(!S)try{var n=s.A.init({project:"nav"}),e=n.get(k);e&&(e.events.push(t),e.endTime=Date.now(),e.duration=e.endTime-e.startTime,c.v.info("NetNotifyFlow",(0,r.A)((0,r.A)({},e),{},{flowPath:e.events.join(" -> "),customConfig:p.Xz})),n.remove(k),S=!0)}catch(o){}},B=(0,i.A)(function t(){(0,a.A)(this,t)});o=B,B.notificationInstance=null,B.show=function(){o.notificationInstance||(0,f.V)(A.D).then(function(t){!function(t){var n=s.A.init({project:"nav"});try{var e=n.get(k);e&&(e.events.push(t),n.set(k,e))}catch(o){}}("show"),o.notificationInstance=function(t){var n=function(){return(0,_.jsx)("span",{children:(0,h.Tl)("nav_okxalert_dns_title_slow_network_download")})},e=function(){return(0,_.jsx)(d.A,{type:d.A.TYPE.primary,size:d.A.SIZE.sm,children:(0,h.Tl)("nav_okxalert_dns_btn_download")})},o=function(){return(0,_.jsx)(d.A,{type:d.A.TYPE.gray,size:d.A.SIZE.sm,children:(0,h.Tl)("nav_okxalert_dns_btn_installed")})};return v.A.info({title:(0,_.jsx)(u.A,{localeData:t,fetchConfig:A.D,children:(0,_.jsx)(n,{})}),duration:0,onConfirm:function(){E("download");var t={status:D,timestamp:Date.now()};localStorage.setItem(g,JSON.stringify(t)),(0,l.u)("/download","_self"),B.closeAndCleanup()},onCancel:function(){E("not_need");var t={status:C,timestamp:Date.now()};localStorage.setItem(g,JSON.stringify(t)),B.closeAndCleanup()},onClose:function(){if(S)B.closeAndCleanup();else{E("close");var t={status:y,timestamp:Date.now()};localStorage.setItem(g,JSON.stringify(t)),B.closeAndCleanup()}},confirmText:(0,_.jsx)(u.A,{localeData:t,fetchConfig:A.D,children:(0,_.jsx)(e,{})}),cancelText:(0,_.jsx)(u.A,{localeData:t,fetchConfig:A.D,children:(0,_.jsx)(o,{})})})}(t)})},B.closeAndCleanup=function(){o.notificationInstance&&(o.notificationInstance.destroy(),o.notificationInstance=null),I&&w().event&&(w().event.removeListener(w().event.type.NET_BAD,I),I=null)};var b=function(){try{var t;if(!function(){try{var t=localStorage.getItem(g),n=t?JSON.parse(t):{status:x,timestamp:0};return n.status!==C&&!(n.status===y&&Date.now()-n.timestamp<N)&&!(n.status===D&&Date.now()-n.timestamp<j)}catch(e){return c.v.info("networkBadNotificationStorageCheckError",{error:(null===e||void 0===e?void 0:e.message)||"Unknown error",customConfig:p.Xz}),!1}}())return;I=null===(t=w().event)||void 0===t?void 0:t.addListener(w().event.type.NET_BAD,function(){B.show()});window.addEventListener("storage",function(t){t.key===g&&B.closeAndCleanup()})}catch(n){c.v.info("networkBadNotificationInitError",{error:(null===n||void 0===n?void 0:n.message)||"Unknown error",customConfig:p.Xz})}}},67409:()=>{},79480:()=>{},31618:()=>{},31293:()=>{},11694:()=>{},99559:()=>{},8653:()=>{},49825:()=>{},11947:()=>{},10867:t=>{t.exports=JSON.parse('{"D":{"project":"okx_web_navigation_header_footer","site":"okx"}}')}}]); 2//# sourceMappingURL=https://static-daily.okg.com/crash/okfe/okx-nav/common/2133.40ed7c81.js.map
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.