(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1ba3f29b"],{"1e3c6":function(t,a,s){"use strict";s.r(a);var e=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"default-main"},[e("div",{staticClass:"page"},[e("div",{staticClass:"page-title-box"},[e("img",{staticClass:"page-logo",attrs:{src:s("e347")}}),e("div",{staticClass:"page-title"},[t._v("Artshiney")])]),e("div",{staticClass:"page-status"},[e("i",{class:[t.currentStatusIcon],style:[{color:t.currentStatusColor}]}),e("div",{staticClass:"status-text"},[t._v(t._s(t.currentStatusText))])])])])},i=[],n=s("1faf"),u=s("3c9c"),r={name:"PaymentStatus",data(){return{paymentStatus:1,paymentStatusOption:[{status:1,icon:"el-icon-loading",color:"#7367F0",text:"Please wait while paying!"},{status:2,icon:"el-icon-success",color:"#7367F0",text:"Congratulations on your successful payment!"},{status:3,icon:"el-icon-error",color:"#FF4D4F",text:"Payment failed,please try to pay again!"}]}},computed:{currentStatusText(){var t;return null===(t=this.paymentStatusOption.find(t=>t.status===this.paymentStatus))||void 0===t?void 0:t.text},currentStatusIcon(){var t;return null===(t=this.paymentStatusOption.find(t=>t.status===this.paymentStatus))||void 0===t?void 0:t.icon},currentStatusColor(){var t;return null===(t=this.paymentStatusOption.find(t=>t.status===this.paymentStatus))||void 0===t?void 0:t.color}},created(){var t=this.getQueryString("charge_id");t&&this.queryShopifyApplicationChargeStatus(t)},methods:{queryShopifyApplicationChargeStatus(t){var a=this;setTimeout((function(){Object(n["g"])({id:t}).then(s=>{if(200===s.code){var e=s.data.status;a.paymentStatus=e,1===e?a.queryShopifyApplicationChargeStatus(t):u["a"].dispatch("user/INIT_USER_INFO").then(()=>{a.callNewPage("/Subscription")})}else a.$message.error(s.msg)})}),3e3)},getQueryString(t){var a=new RegExp("(^|&)"+t+"=([^&]*)(&|$)","i"),s=window.location.search.substr(1).match(a);return null!=s?unescape(s[2]):null}}},o=r,c=(s("233c"),s("2877")),l=Object(c["a"])(o,e,i,!1,null,"0bde6348",null);a["default"]=l.exports},"233c":function(t,a,s){"use strict";s("b7b6")},b7b6:function(t,a,s){}}]);