text: !function(e){function t(i){if(o[i])return o[i].exports;var n=o[i]={exports:{},id:i,loaded:!1};return e[i].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var o={};return t.m=e,t.c=o,t.p="",t(0)}([function(e,t){if("undefined"==typeof AFRAME)throw new Error("Component attempted to register before AFRAME was available.");AFRAME.registerComponent("href",{schema:{"default":""},boundClickHandler:void 0,clickHandler:function(){var e=this.data,t=this.el.getAttribute("target");if(console.log("link to "+e),e&&"#"===e[0]){var o=document.querySelector(e),i=document.querySelectorAll("a-camera");if(o&&i){var n=o.getAttribute("position");console.log("focus camera to position:"+JSON.stringify(n)),i[0].setAttribute("position",n),window.location.hash=e}else console.log("#id or a-camera is not defined")}else if(t)switch(console.log("target to "+t),t){case"_blank":window.open(e);break;case"window":default:window.location.href=e}else window.location.href=e},init:function(){this.boundClickHandler=this.clickHandler.bind(this),this.el.addEventListener("click",this.boundClickHandler)},remove:function(){this.el.removeEventListener("click",this.boundClickHandler)}})}]);