import{t as e}from"./_plugin-vue2_normalizer-BHc2Ljhs.js";import{o as t}from"./shop-CjthS7Gw.js";var n=e({name:`ShopeeSpyShopByUsername`,data(){return{loading:!0,error:``}},async created(){let e=this.$route.query.username;if(!e){this.loading=!1,this.error=`Missing username`;return}let n=await t(e).catch(()=>null);if(n&&n.shopid){this.$router.replace({path:`/shopee/spy/shop/${n.shopid}`});return}this.loading=!1,this.error=`Không tìm thấy shop: ${e}`}},function(){var e=this,t=e._self._c;return t(`div`,[e.loading?t(`Spin`,{attrs:{size:`large`}}):e._e(),e.error?t(`Alert`,{attrs:{type:`error`}},[e._v(` `+e._s(e.error)+` `)]):e._e()],1)},[],!1,null,null,null,null).exports;export{n as default};