const r={mounted(){var c;(c=this.customScripts)==null||c.forEach(t=>{const o=new RegExp(t==null?void 0:t.route_pattern),n=this.$route.path;if(o.test(n)){if(t!=null&&t.header_script){const e=document.createElement("script");e.textContent=t==null?void 0:t.header_script_code,document.head.appendChild(e)}if(t!=null&&t.body_script){const e=document.createElement("script");e.textContent=t==null?void 0:t.body_script_code,document.body.appendChild(e)}}})}};export{r as g};
