(window.webpackJsonp=window.webpackJsonp||[]).push([[43],{433:function(t,n,e){"use strict";e.r(n);var r={head:function(){return{title:"Track Orders"}},data:function(){return{orderId:"",trackingLink:"",trackingId:"",isFind:!1,headingContent:""}},methods:{onFind:function(){var t=this;this.$nuxt.$loading.start(),this.$axios.get("https://supover.com/api/tracking",{params:{id:this.orderId}}).then((function(n){var data=n.data;t.isFind=!0,t.trackingLink=data.tracking,t.$nuxt.$loading.finish()})).catch((function(){t.isFind=!0,t.trackingLink=null,t.$nuxt.$loading.finish()}))},onLoadConfigTracking:function(){var t=this;this.$axios.$get("/store/tracking/get-config/".concat(this.$store.state.store.id)).then((function(n){n.data.hTrackingPage&&(t.headingContent=n.data.hTrackingPage),t.$nuxt.$loading.finish()})).catch((function(){t.$nuxt.$loading.finish()}))}},mounted:function(){this.onLoadConfigTracking()}},o=e(9),component=Object(o.a)(r,(function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("main",{staticClass:"font-roboto"},[e("Container",{attrs:{padding:"px-4 2xl:px-10"}},[e("div",{staticClass:"my-5"},[e("h1",{staticClass:"text-center uppercase font-bold"},[t._v("\n          track my order\n        ")]),t._v(" "),e("div",[e("section",{staticClass:"pb-10"},[e("div",{},[t.headingContent.length>0?e("p",{staticClass:"text-center"},[t._v("\n                "+t._s(t.headingContent)+"\n              ")]):e("p",{staticClass:"text-center"},[t._v("\n                Looking for how to track your order? When your order is shipped, you\n                will receive a Shipping Confirmation email from\n                "+t._s(t.$store.state.store.email)+"\n                with your tracking number in it.\n              ")]),t._v(" "),e("div",{staticClass:"input-group flex justify-center my-5"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.orderId,expression:"orderId"}],staticClass:"input w-full",staticStyle:{width:"350px"},attrs:{placeholder:"Order number here...",required:""},domProps:{value:t.orderId},on:{input:function(n){n.target.composing||(t.orderId=n.target.value)}}}),t._v(" "),e("button",{staticClass:"btn bg-dark-purple",on:{click:t.onFind}},[e("i",{staticClass:"d-icon-search"}),t._v(" Find\n                  ")])]),t._v(" "),e("div",{staticClass:"overflow-x-auto"},[t.isFind?e("table",{staticClass:"table w-full"},[e("thead",[e("tr",[e("th"),t._v(" "),e("th",[t._v("Name")]),t._v(" "),e("th",[t._v("Link")])])]),t._v(" "),e("tbody",[e("tr",[e("th"),t._v(" "),e("td",[t._v("Tracking Link")]),t._v(" "),e("td",[t.trackingLink&&t.trackingLink.length>0?e("a",{attrs:{href:t.trackingLink}},[t._v("\n                        "+t._s(t.trackingLink)+"\n                      ")]):e("span",[t._v("Order is in production. Please contact us:\n              "+t._s(t.$store.state.store.email))])])])])]):t._e()]),t._v(" "),e("p",{staticClass:"text-center mt-5"},[t._v("\n                Can't find your email? Send us a quick note at\n                "+t._s(t.$store.state.store.email)+", and we will help you with that.\n              ")])])])])])])],1)])}),[],!1,null,null,null);n.default=component.exports}}]);