1import{i4 as T,z as D,c7 as o,h as b,w as y,dQ as w,dR as S,i as v}from"./commonChunk.BIjOjUCX.js";import{M as a}from"../vendors/vendor-stable.BZTOV27i.js";import"./vendorChunk.B6ure_9S.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()-o().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:()=>(o().updateVersionTips("lastActionTime"),!0),onConfirm:()=>{o().updateVersionTips("lastActionTime");const i=new URL(window.location.href),s=i.searchParams;m&&s.set("fixed.version",String(Date.now())),i.search=s.toString(),window.location.href=i.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.