1import{io as T,z as D,c8 as i,h as b,w as y,dP as w,dQ as S,i as v}from"./commonChunk.ClFq2l8G.js";import{M as a}from"../vendors/vendor-stable.B-qaYwd4.js";import"./vendorChunk.B0S1SHvJ.js";const M=({version:n,disabled:c,force:r,byServer:m,closable:f=!0,onClose:t})=>{if(!c&&!T()&&(n||r)){const l=a(D().getHtmlTemplateVersion()).format("YYYY-MM-DD HH:mm"),p=a(n).format("YYYY-MM-DD HH:mm"),u=1e3*60*60*24,d=Date.now()-i().versionTips.lastActionTime>u;if(l!==p&&d||r){const{t:e}=b(),{navigateToServicePage:g}=y();w(S.LOBBY_VERSION_UPDATE,{title:()=>e("lobby.common.tips.title"),type:"info",message:()=>e("lobby.error.upgradedMsg"),showCancelButton:f,confirmButtonText:()=>e("lobby.error.upgradedBtn"),cancelButtonText:()=>e("lobby.common.tips.contactService"),beforeClose:()=>(i().updateVersionTips("lastActionTime"),!0),onConfirm:()=>{i().updateVersionTips("lastActionTime");const o=new URL(window.location.href),s=o.searchParams;m&&s.set("fixed.version",String(Date.now())),o.search=s.toString(),window.location.href=o.toString(),v()&&location.reload()},onCancel:()=>{t==null||t(),g({openType:"overlay"})}})}}};export{M as createLobbyVersionUpdate};
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.