import{_ as h}from"./index-MIe680eZ.js?v=1773287522785";import{k as u,r as p,o as w,$ as a,Z as x,H as y,S as o,a8 as m,a6 as g}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{c as k,Q as v,cH as M}from"./index-BTglIPU2.js?v=1773287522785";import"./index-B8Pi79Ox.js?v=1773287522785";import"./pay-R5yitMsU.js?v=1773287522785";import"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const I=["src"],b=u({__name:"index",props:{path:{default:""}},setup(r){const t=p("/"+r.path),e=p(null),s=p(996),f=()=>{s.value=998,_()},d=()=>{s.value=998},_=()=>{var i;const n=(i=e.value)==null?void 0:i.contentWindow;n&&n.postMessage("init","*")},l=()=>{window.addEventListener("message",n=>{n.data==="showMainView"&&(s.value=996)})};return w(()=>{l()}),(n,i)=>(a(),x("iframe",{ref_key:"frameRef",ref:e,class:"iframePage",src:o(t),style:y({zIndex:o(s)}),onLoad:f,onMouseenter:d},null,44,I))}}),B=k(b,[["__scopeId","data-v-dd081d53"]]),S=u({__name:"old",setup(r){return window.usePay=v,(c,t)=>{const e=B;return a(),m(e,{path:"btwaf/index"})}}}),H=u({__name:"index",setup(r){const c=M(),{isBuy:t,isInstall:e,isFirstVersion:s}=g(c);return(f,d)=>{const _=h;return!o(t)||!o(e)||o(s)?(a(),m(_,{key:0})):(a(),m(S,{key:1}))}}});export{H as default};