1import{ii as d,z as D,cb as o,h as b,w as y,e8 as w,e9 as S,i as v}from"./commonChunk.Dhe5lqYh.js";import{R as a}from"../vendors/vendor-stable.B8ub4Ug6.js";import"./vendorChunk.BdsO83GQ.js";import"../vendors/vendor-swiper.T_wbf2QY.js";const M=({version:n,disabled:c,force:r,byServer:m,closable:f=!0,onClose:t})=>{if(!c&&!d()&&(n||r)){const p=a(D().getHtmlTemplateVersion()).format("YYYY-MM-DD HH:mm"),l=a(n).format("YYYY-MM-DD HH:mm"),u=1e3*60*60*24,g=Date.now()-o().versionTips.lastActionTime>u;if(p!==l&&g||r){const{t:e}=b(),{navigateToServicePage:T}=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(),T({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.