import{U as e,aI as a,bw as s,r as t,a3 as n,j as r,o,b as l,h as i,t as u,u as m,q as A,I as c,F as p,y as g,n as d,al as h,am as v}from"./vendor-jA_NIjzi.js";import{u as w,m as f,n as y}from"./common-utils-8H8K2JPG.js";/* empty css              */import{_ as C}from"./common-store-e_1WBubm.js";import"./vendor-crypto-Vtl7-GZS.js";import"./vendor-mqtt-lYGapirz.js";const U=""+new URL("../asset/png/00-VKzs9H3I.png",import.meta.url).href,I=""+new URL("../asset/png/0-u2rTdzUN.png",import.meta.url).href,S=""+new URL("../asset/png/h-00-Btlk6aG3.png",import.meta.url).href,M=""+new URL("../asset/png/h-0-_smnrsiH.png",import.meta.url).href,k={class:"screen_top"},B={class:"screen_box"},R=C({__name:"PwaIosPop",props:{frompage:{type:String,default:""}},setup(C,{expose:R}){const{t:b}=e(),{theme:X}=w(),_=C,{frompage:j}=a(_),Q=new s,Y=t(Q.getBrowser().name||(navigator.userAgent.includes("Chrome")?"Chrome":"")),E=t(!1),T=t(null),H=!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);E.value=["Mobile Safari","Safari","Mobile Chrome","CriOS"].includes(Y.value)&&("WebKit"===Q.getEngine().name||"Blink"===Q.getEngine().name||"Safari"===Q.getEngine().name||"Chrome"===Q.getEngine().name)&&!("Safari"===Q.getBrowser().name&&/MicroMessenger/i.test(navigator.userAgent));const F=t(!1),K=t(null),O=t(0),x=[b("保存网页版至桌面端"),b("添加主屏幕教程描述1"),b("添加主屏幕教程描述2"),b("添加主屏幕教程描述3"),b("添加主屏幕教程描述4")],V=e=>{O.value=e};n((()=>F.value),(e=>{const a=document.querySelector(".footer-bar-container");e?a&&(a.style.display="none"):(a&&(a.style.display="flex"),sessionStorage.setItem("isFirstOpen","1"),T.value&&(clearTimeout(T.value),T.value=null))}),{deep:!0});const W=()=>{const e=sessionStorage.getItem("isFirstOpen");f()||y()||!e&&H&&"download"===j.value&&E.value&&(T.value=setTimeout((()=>{const e=document.querySelector(".footer-bar-container");F.value=!0,e&&(e.style.display="none")}),200))};return r((()=>{W()})),R({screenShow:F,init:W}),(e,a)=>{const s=h,t=v;return o(),l("div",{class:d(["screen_wrap",{show:F.value}])},[i("div",k,[i("span",null,u(m(b)("点击添加添加到主屏幕按钮")),1),i("span",null,u(x[O.value]),1)]),i("img",{class:"screen-close",onClick:a[0]||(a[0]=e=>F.value=!1),src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFrSURBVHgB7dc9TsMwFAfw91IhMXIE7wQYiJjpDTpmYOiIuATlCCyoY7tEWXsCYCYDojlAjtAdgWtHGVrJn++16uL/klRxnn5K7TwHICUl5bhB18Xy4ekZpZzKMzmuF/MOGCmnjwJ/8R0lLqrq7cU2bgRuzEydXuA/TvLbYtV+NxtgYNSpUI/g/vrqDtbrr0/T2MxWRD+ZnZ99QV0YOJghEvdqh4HknxyrQwcMlAmjaw61jXHPoVIVHBkKBswpF6au7fc6QVQUFRMEikVxMMGgUBQXEwXyofpiTEw0yIUajoKDIYEcKOBiyCAPiozRyYCac+I1T2h/mXk17aajNuT4SW1Z2sNRcFFxy97Tm6hthgQKeelxel8UKOYNzEX5myuhHXBQeGgMF4XHwHBQ9i3sARqlHmvbedrusW9hUS45GBdK7deXtvHWr472p/nIbwpEQMHpTX2tttnkl8UKM5wozGtVzWeQkpJyomwB9t9gP5vA5vAAAAAASUVORK5CYII=",alt:""}),i("div",B,[A(t,{ref_key:"screenSwipeRef",ref:K,loop:!1,"show-indicators":!1,onChange:V},{default:c((()=>[["light","whiteGold"].includes(m(X))?(o(),l(p,{key:0},[["Mobile Chrome","Chrome","CriOS"].includes(Y.value)?(o(),g(s,{key:0},{default:c((()=>a[1]||(a[1]=[i("img",{src:U,alt:""},null,-1)]))),_:1})):(o(),g(s,{key:1},{default:c((()=>a[2]||(a[2]=[i("img",{src:I,alt:""},null,-1)]))),_:1}))],64)):(o(),l(p,{key:1},[["Mobile Chrome","Chrome","CriOS"].includes(Y.value)?(o(),g(s,{key:0},{default:c((()=>a[3]||(a[3]=[i("img",{src:S,alt:""},null,-1)]))),_:1})):(o(),g(s,{key:1},{default:c((()=>a[4]||(a[4]=[i("img",{src:M,alt:""},null,-1)]))),_:1}))],64))])),_:1},512)])],2)}}},[["__scopeId","data-v-a44c29d4"],["__file","PwaIosPop.vue"]]);export{R as default};
