import{G as a,l as e,q as s,_ as l}from"./common-utils-8H8K2JPG.js";import{U as o,a4 as n,R as p,a as t,r as i,G as u,a3 as r,o as d,b as c,q as m,I as v,u as w,h as g,t as f,f as h,y as _,F as b,ae as P,af as T}from"./vendor-jA_NIjzi.js";import{_ as C,b as y}from"./common-store-e_1WBubm.js";import"./vendor-crypto-Vtl7-GZS.js";import"./vendor-mqtt-lYGapirz.js";const E={class:"popup-header"},I=["src"],R=["src"],S={class:"content"},D={class:"head"},L=["src"],U={class:"info"},k={class:"title"},j={class:"des"},G={class:"main"},M={class:"top"},O=["innerHTML"],x=["src"],A=["src"],F={class:"tips1"},H=["innerHTML"],q={class:"tips2"},N={class:"title"},W={class:"des"},V=C({__name:"index",setup(C){const V=P((()=>l((()=>import("./PwaIosPop-jRTRjLKE.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url))),X=!!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),{t:z}=o(),B=n(),J=p(),K=y(),{downloadGuideConfig:Q,pwaConfig:Y}=t(K),Z=i(!1),$=i(null),aa=u((()=>{let a={downloadUrl:""};return a=Q.value.appDownloadUrls.find((a=>1===a.isEnabled&&1===a.type)),a.downloadUrl})),ea=()=>{Z.value=!1,la(),B.push("/customerService")},sa=()=>{Z.value=!1,la()},la=()=>{const a=(new Date).getTime();K.SET_PWA_CONFIG({pwaLastShowTime:a,isRecharge:Y.value.isRecharge})},oa=()=>{Z.value=!1,la(),X?(sessionStorage.setItem("isFirstOpen","0"),$.value&&($.value.screenShow=!0,$.value.init())):2===Q.value.androidInstallType?window.open(aa.value):window.deferredPromptPrompt()},na=()=>{let e=!1;const s=Y.value.pwaLastShowTime,l=(new Date).getTime();e=l-s>5*Q.value.popupInterval*60*1e3;let o=!1;1===Q.value.popupTriggerPoint?o=!!a.includes(J.name):(o=Y.value.isRecharge,e=!0),1===Q.value.popupEnabled&&e&&o?(Z.value=!0,K.SET_PWA_CONFIG({pwaLastShowTime:l,isRecharge:!1})):Z.value=!1};return r((()=>Q.value.popupEnabled),(a=>{"number"==typeof a&&(1===a?na():Z.value=!1)}),{immediate:!0}),r((()=>Y.value.isRecharge),(a=>{a&&"number"==typeof Q.value.popupEnabled&&(1===Q.value.popupEnabled?na():Z.value=!1)}),{immediate:!0}),r((()=>Y.value.isRecharge),(a=>{a&&"number"==typeof Q.value.popupEnabled&&(1===Q.value.popupEnabled?na():Z.value=!1)}),{immediate:!0}),r((()=>J.name),(e=>{a.includes(e)&&na()}),{immediate:!0}),(a,l)=>{const o=T;return d(),c(b,null,[m(o,{class:"pwa-pop",show:Z.value,"onUpdate:show":l[0]||(l[0]=a=>Z.value=a),position:"bottom",style:{width:"100%","min-height":"50%"}},{default:v((()=>[g("div",E,[g("img",{class:"icon",src:w(e)("appDownloadPage/pwa/kefu.png"),alt:"",onClick:ea},null,8,I),g("img",{class:"btn",onClick:sa,src:w(e)("appDownloadPage/pwa/close.png"),alt:""},null,8,R)]),g("div",S,[g("div",D,[g("img",{class:"logo",src:w(Q).logoImageUrl,alt:""},null,8,L),g("div",U,[g("div",k,f(w(Q).name),1),g("p",j,f(w(Q).popupContent),1)])]),g("div",G,[g("div",M,[g("p",{class:"des2",innerHTML:w(Q).popupContent2},null,8,O)]),g("div",{class:"btn",onClick:oa},[X?h("",!0):(d(),c("img",{key:0,class:"icon1",src:w(e)("appDownloadPage/pwa/android.png"),alt:""},null,8,x)),g("span",null,f(w(Q).popupContent4),1),g("img",{class:"icon2",src:w(e)("appDownloadPage/pwa/download.png"),alt:""},null,8,A)]),g("div",F,[g("p",{innerHTML:w(Q).popupContent3},null,8,H)]),g("div",q,[g("div",N,"① "+f(w(z)("友情提示"))+":",1),g("p",W,f(w(z)("此应用程序已通过 Google 安全认证"))+".",1)])])])])),_:1},8,["show"]),w(s)()?h("",!0):(d(),_(w(V),{key:0,ref_key:"pwaIosPopComRef",ref:$,frompage:"pwa"},null,512))],64)}}},[["__scopeId","data-v-d9f4483c"],["__file","index.vue"]]);export{V as default};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = ["./PwaIosPop-jRTRjLKE.js","./vendor-jA_NIjzi.js","../asset/css/vendor-6Cac1bRU.css","./common-utils-8H8K2JPG.js","./common-store-e_1WBubm.js","./vendor-mqtt-lYGapirz.js","../asset/css/common-store-amwnRAmh.css","./vendor-crypto-Vtl7-GZS.js","../asset/css/common-utils-JJPMhzsF.css","../asset/css/PwaIosPop-GWrwd_0h.css","../asset/css/theme-N91c3Oze.css"]
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}