(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-38ae11e3"],{"04cd":function(t,s,e){"use strict";e.r(s);var a=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"default-main"},[a("div",{staticClass:"page"},[a("div",{staticClass:"page-title-box"},[a("img",{staticClass:"page-logo",attrs:{src:e("e347")}}),a("div",{staticClass:"page-title"},[t._v("Artshiney")])]),t.status===t.enums.statusEnum.DOING?a("div",{staticClass:"page-status"},[a("i",{staticClass:"el-icon-loading"}),a("div",{staticClass:"status-text"},[t._v("Connecting... Please wait for a few second")])]):t._e(),t.status===t.enums.statusEnum.SUCCESS?a("div",{staticClass:"page-status"},[a("i",{staticClass:"el-icon-success",staticStyle:{color:"#7367F0"}}),a("div",{staticClass:"status-text"},[t._v("Connect woocommerce shop success!")])]):t._e(),t.status===t.enums.statusEnum.FAIL?a("div",{staticClass:"page-status"},[a("i",{staticClass:"el-icon-error",staticStyle:{color:"#FF4D4F"}}),a("div",{staticClass:"status-text"},[t._v("Connect woocommerce shop fail!")])]):t._e()])])},n=[],i=e("35f2"),c=e("ed08"),r={DOING:1,SUCCESS:2,FAIL:3},o={name:"WooInstall",data(){return{status:r.DOING,enums:{statusEnum:r}}},inject:["reload"],async mounted(){var t=this.getQueryString("success"),s=this.getQueryString("user_id");if(t&&1===parseInt(t))for(;;){var e=await Object(i["i"])({userId:s});if(200===e.code){if(2===e.data.status)return this.status=r.SUCCESS,this.$message.success("connect woocommerce shop success!"),void this.callNewPage("/SetUp/Stores");if(3===e.data.status)return this.status=r.FAIL,this.$message.warning("connect woocommerce shop cancel!"),void this.callNewPage("/SetUp/Stores")}else this.status=r.FAIL,this.$message.error(e.msg);await Object(c["e"])(1e3)}else this.status=r.FAIL,this.$message.warning("connect woocommerce shop cancel!"),this.callNewPage("/SetUp/Stores")},methods:{getQueryString(t){var s=new RegExp("(^|&)"+t+"=([^&]*)(&|$)","i"),e=window.location.search.substr(1).match(s);return null!=e?unescape(e[2]):null}}},u=o,l=(e("8e63"),e("2877")),d=Object(l["a"])(u,a,n,!1,null,"aad51d30",null);s["default"]=d.exports},"3f39":function(t,s,e){},"8e63":function(t,s,e){"use strict";e("3f39")},ed08:function(t,s,e){"use strict";e.d(s,"b",(function(){return a})),e.d(s,"a",(function(){return n})),e.d(s,"c",(function(){return i})),e.d(s,"e",(function(){return c})),e.d(s,"d",(function(){return r}));e("b7ef"),e("907a"),e("3c5d"),e("fa9e"),e("77d9");const a=t=>{const s=t.split(","),e=s[0].match(/:(.*?);/)[1],a=atob(s[1]);let n=a.length;const i=new Uint8Array(n);while(n--)i[n]=a.charCodeAt(n);return new Blob([i],{type:e})},n=(t,s)=>(t.lastModifiedDate=new Date,t.name=s,t);function i(t,s){var e=t.split(","),a=e[0].match(/:(.*?);/)[1],n=atob(e[1]),i=n.length,c=new Uint8Array(i);while(i--)c[i]=n.charCodeAt(i);return new File([c],s,{type:a})}async function c(t){return new Promise(s=>{setTimeout(s,t)})}function r(t,s=2){if(isNaN(Number(t)))return t;const e=Number(t).toFixed(s);return Number(e.substring(0,e.toString().length-1))}}}]);