

<script>
/* eslint-disable */
// sd-skip-auto-import
import loginService from"@/login/login-service";import components from"./_import-components/sd-link-render-import";var _render=function t(){var e=this,n=e._self._c;return n("a-button",{attrs:{type:"link"},on:{click:e.openLink}},[e._v(e._s(e.$attrs.caption))])};var staticRenderFns=[];_render._withStripped=true;export default{name:"SdLinkRender",components:components,data(){return{}},methods:{openLink(){this.SdFormContext.getValueByFormula(this.$attrs.formulaData||this.$parent.field?.attr.formulaData).then((t=>{if(!/^(http|https):\/\//.test(t)||t.startsWith(location.origin)){let e="?";if(t.match(/\?([^=&#]+)=([^&#]*)/g)?.length)e="&";t=`${t}${e}access_token=${encodeURIComponent(loginService.getTokens().access_token)}`}window.open(t,"_blank")}))}},inject:{SdFormContext:{default:()=>({})}},render:_render,staticRenderFns:staticRenderFns};</script>

<style module lang="scss">
@use '@/common/design' as *;
</style>
