PageSourceSearch

https://75pak.ai/assets/installPWA-4aQAAOCL.js

js 75pak.ai collected 2026-10-05 12:56:45 UTC 3,476 bytes, 1 lines download raw bytes

1import{h as a,D as s,f as e}from"./vendor-ionic-DCfJUywR.js";import{a4 as l,c5 as t,ai as n,c6 as i,c7 as o,c8 as d,_ as r}from"./index-C8PG4kWr.js";import{b as v,$ as u,c,o as m,r as w,e as p,d as g,B as I,y as k,K as y,N as h,L as S,I as x,t as f,A as b,Q as P}from"./vendor-vue-C2bVq467.js";import"./vendor-ui-CbgI8NhS.js";import"./vendor-misc-B37Nxpbl.js";import"./vendor-i18n-z_f_yr-S.js";import"./vendor-utils-CLI4rNKq.js";import"./vendor-heavy-C201fLCC.js";function j(){const a=l(),s=t(),e=n(),r=p(()=>e.isPwaVisible&&a.unStandalone),g=w(!1),I=w(0),k=w(0),y=w(0),h=w(null),S=p(()=>s.installStatus),x=p(()=>0==S.value?"ready":1==S.value?"installing":2==S.value?"installed":"checking");v([()=>x.value,()=>k.value],()=>{"installing"==x.value&&1==k.value&&(y.value=setTimeout(()=>{j()},5e3))});const f=()=>{h.value&&(clearInterval(h.value),h.value=null)},b=w(0),P=()=>{0==b.value&&(s.setInstallStatus(1),f(),k.value=0,h.value=window.setInterval(()=>{if(k.value>=1)return k.value=1,void f();k.value=Math.min(k.value+.01,1)},200)),(b.value>0||e.browser===o.SAMSUNG_INTERNET)&&setTimeout(()=>{j()},2e3),b.value+=1},j=()=>{k.value=1,f(),s.setInstallStatus(2),g.value=!1,window.isPwaInstalling=!1};return u(()=>{window.isPwaInstalling=!1,f(),window.removeEventListener("appinstalled",P)}),c(()=>{window.isPwaInstalling=!1,clearTimeout(y.value)}),m(()=>{f(),I.value=0,h.value=window.setInterval(()=>{if(I.value>=1)return I.value=1,f(),s.setInstallStatus(0),void(r.value||s.setInstallStatus(2));I.value=Math.min(I.value+.01,1)},10),window.addEventListener("appinstalled",P)}),{stage:x,checkProgress:I,installProgress:k,loading:g,onButtonClick:()=>{if("ready"===x.value)return window.isPwaInstalling=!0,i(),void(e.browser===o.SAMSUNG_INTERNET&&(g.value=!0));"installed"!==x.value||d()}}}const N={class:"install-modal"},T={class:"pwa-flex install-modal-title"},$={class:"install-modal-desc"},_={class:"pwa-flex install-modal-actived"},E={key:0,class:"pwa-flex install-modal-check"},M={class:"check-text"},A={key:1,class:"install-modal-progress"},L={class:"progress-text"},B={key:1},C={key:2},G=["disabled"],R={class:"text-[1rem]"},U=r(g({__name:"installPWA",setup(l){const{stage:t,checkProgress:n,installProgress:i,loading:o,onButtonClick:d}=j();return(l,r)=>(I(),k("div",N,[y("div",T,[r[1]||(r[1]=y("img",{src:"/static/images/download/pwa-raid-install.png"},null,-1)),h(" "+S(l.$t("viewsSystem.downloadIndex01")),1)]),y("div",$,S(l.$t("viewsSystem.downloadIndex02")),1),y("div",_,[r[2]||(r[2]=y("img",{src:"/static/images/download/pwa-actived.png"},null,-1)),h(" "+S(l.$t("viewsSystem.downloadIndex03")),1)]),"checking"===x(t)?(I(),k("div",E,[f(x(a),{src:"/static/images/download/pwa-loader.svg",class:"check-icon"}),y("span",M,S(Math.round(100*x(n)))+"%",1)])):b("",!0),"installing"===x(t)?(I(),k("div",A,[f(x(s),{class:"progress-bar",value:x(i)},null,8,["value"]),y("div",L,[1==x(i)?(I(),P(x(e),{key:0,class:"text-white mr-1rem",name:"dots"})):b("",!0),1==x(i)?(I(),k("span",B,S(l.$t("viewsSystem.installLater")),1)):(I(),k("span",C,S(Math.round(100*x(i)))+"%",1))])])):b("",!0),"ready"===x(t)||"installed"===x(t)?(I(),k("button",{key:2,disabled:x(o),class:"pwa-flex install-modal-button",onClick:r[0]||(r[0]=(...a)=>x(d)&&x(d)(...a))},[x(o)?(I(),P(x(e),{key:0,class:"text-white mr-1rem",name:"dots"})):b("",!0),y("span",R,S("installed"===x(t)?l.$t("label.launchApp"):l.$t("viewsSystem.install")),1)],8,G)):b("",!0)]))}}),[["__scopeId","data-v-cc004c7d"]]);export{U as default};

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.