(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0b65d6"],{"1d9f":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Loader",{attrs:{isLoading:e.isLoading}}),e._m(0),a("div",{staticClass:"categorie_area"},[a("div",{staticClass:"container"},[a("div",{staticClass:"categorie_heading"},[a("h1",[e._v("MEPC CATEGORIES")]),a("ImageItem",{attrs:{src:"images/line.png"}}),a("p",{staticStyle:{"font-size":"18px"}},[e._v(" Now post/view surplus pre-owned inventory here. One-stop solution to the pre-owned construction material. Authenticate the material via listed material inspectors Reduce your overheads. ")])],1),a("div",{staticClass:"row"},e._l(e.category,(function(t){return a("div",{key:t.id,staticClass:"my-3 col-lg-3 col-md-6"},[a("div",{staticClass:"categorie_box d-flex justify-content-between flex-column pb-0",staticStyle:{"border-top":"3px solid"},style:{color:t.color}},[a("div",[a("div",{staticClass:"categorie_image",style:{background:t.color}},[a("ImageItem",{attrs:{src:e.imgsrc+t.img}})],1),a("h4",[e._v(e._s(t.name))]),e._l(e.subcategory,(function(n){return a("div",{key:n.id},[n.parent_id==t.id?a("div",[a("p",[e._v(" "+e._s(n.name)+" "),a("span",[e._v("(1)")])])]):e._e()])}))],2),a("router-link",{staticClass:"nav-link post-btn",attrs:{to:{name:"product-listing",query:{category:t.id}}}},[a("i",{staticStyle:{"border-top":"1px solid"},style:{color:t.color}}),e._v("VIEW ALL")])],1)])})),0)])])],1)},r=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"commen-hader"},[a("div",{staticClass:"container"},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-sm-12"},[a("h2",[e._v("CATEGORIES")]),a("p",[e._v("Top Categories in MEPC")])])])])])}],i=(a("96cf"),a("1da1")),s=a("bc3a"),o=a.n(s),c=a("555f"),l=a("525b"),d=a("df9f"),u={name:"categories",components:{Loader:c["a"],ImageItem:d["a"]},data:function(){return{imgsrc:o.a.defaults.uploadURL,category:null,subcategory:null,isLoading:!1}},created:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.isLoading=!0,t.prev=1,t.next=4,o.a.get("/api/categories");case 4:return a=t.sent,e.category=a.data,t.next=8,o.a.get("/api/category");case 8:a=t.sent,e.subcategory=a.data,t.next=15;break;case 12:t.prev=12,t.t0=t["catch"](1),console.log("Erorr in loadinng category information");case 15:e.isLoading=!1;case 16:case"end":return t.stop()}}),t,null,[[1,12]])})))()},mounted:function(){return Object(i["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:Object(l["a"])();case 1:case"end":return e.stop()}}),e)})))()},beforeDestroy:function(){this.isLoading=!0,console.log("categories unmounting")}},g=u,p=a("2877"),m=Object(p["a"])(g,n,r,!1,null,null,null);t["default"]=m.exports}}]); //# sourceMappingURL=chunk-2d0b65d6.33483e46.js.map