import{r as l,u as s,au as u,P as c,f as r,g as f,bQ as _,z as d,o as p,h as w,bR as k,F as v}from"./index-C8qz7c0N.js";const h={__name:"webLink",setup(m){const e=l({});function t(n){try{typeof window!="undefined"&&(window.open(n,"_blank")||(window.location.href=n))}finally{_()}}return s(n=>{if(e.value=n,e.value.link=decodeURIComponent(e.value.link),typeof e.value.link=="string"&&e.value.link.startsWith("http://")){t(e.value.link);return}u({title:decodeURIComponent(e.value.title)||c("webLink.title")})}),(n,a)=>{const o=k,i=d("layout-default-uni");return p(),r(i,null,{default:f(()=>[w(o,{"update-title":!1,src:v(e).link},null,8,["src"])]),_:1})}}};export{h as default};
