(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d8a37f72"],{"01d0":function(t,e,s){"use strict";s.r(e);var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"text-left"},[t.loading?e("BaseLoading",{staticStyle:{"min-height":"400px",height:"90vh"}}):e("div",[e("BaseHeader",{attrs:{title:(t.profile.type_desc||"User")+" Profile"}}),e("div",{staticClass:"card has-shadow mt-5"},[e("div",{staticClass:"card-body"},[e("div",{staticClass:"media"},[e("div",{staticClass:"media-body"},[e("div",{staticClass:"d-flex align-items-sm-center align-items-start flex-sm-row flex-column justify-content-sm-between justify-content-start"},[e("div",{staticClass:"d-flex border-right-sm mr-3 align-items-center justify-content-start flex-row w-50"},[e("div",{},[e("div",{staticClass:"mr-2 p-sm-5 p-4 mb-sm-4 mb-2 rounded-full text-capitalize bg-slate-200 dark:bg-darkmode-400 flex items-center justify-center text-base font-medium"},[t._v(" "+t._s(t.profile.first_name.charAt(0)||"")+t._s(t.profile.last_name.charAt(0)||"")+" ")])]),e("div",{staticClass:"d-flex flex-column mx-2 align-items-start"},[e("h3",{staticClass:"mt-0 text-2xl font-medium"},[t._v(" "+t._s(t.profile.first_name||"")+" "+t._s(t.profile.last_name||"")+" ")]),e("p",{staticClass:"my-1 d-flex align-items-center justify-content-start"},[e("i",{staticClass:"icon-envelope mr-2"}),t._v(t._s(t.profile.email||"")+" ")])])]),e("div",{staticClass:"d-flex mx-sm-4 my-sm-0 my-4 align-items-center justify-content-start flex-row w-50"},[e("div",{staticClass:"d-flex flex-column mx-2 align-items-start"},[e("h4",{staticClass:"my-1"},[e("span",{staticClass:"text-primary"},[t._v("#")]),t._v(" "+t._s(t.profile.id||"")+" ")]),e("h4",{staticClass:"my-1"},[e("i",{staticClass:"icon-phone mr-2 text-primary"}),t._v(t._s(t.profile.phone||"")+" ")])]),e("div",{staticClass:"d-flex flex-column px-4 align-items-start"},[e("h4",{staticClass:"my-1"},[e("i",{staticClass:"icon-pin mr-2 text-primary"}),t._v(" "+t._s(t.profile.country||"")+" ")]),e("h4",{staticClass:"my-1"},[e("i",{staticClass:"icon-link mr-2 text-primary"}),t._v(" "+t._s(t.profile.site||"")+" ")])])])])])])])]),e("div",{staticClass:"mt-4"},[e("v-card-title",{staticClass:"d-flex flex-row p-3 card"},[e("h2",{staticClass:"mt-3 card-title w-50 font-weight-black text-capitalize"},[t._v(t._s(t.profile.type_desc||"User")+" Orders")]),e("v-spacer"),e("v-text-field",{attrs:{dense:"",outlined:"",label:"Search",name:"url",type:"text","hide-details":""},model:{value:t.$store.state.search,callback:function(e){t.$set(t.$store.state,"search",e)},expression:"$store.state.search"}})],1),t.userType==t.userTypes.editor?e("editor-orders-table",{attrs:{orders:t.orders}}):e("user-orders-table",{attrs:{orders:t.orders}})],1)],1)],1)},i=[],a=s("2f62"),n=function(){var t=this,e=t._self._c;return e("v-data-table",{attrs:{"mobile-breakpoint":0,headers:t.editorOrdersTableHeaders,items:t.orders,search:t.$store.state.search},scopedSlots:t._u([{key:"item.id",fn:function({item:s}){return[e("router-link",{attrs:{to:{name:"Order",params:{id:s.id}}}},[t._v(t._s(s.id||""))])]}},{key:"item.title",fn:function({item:s}){return[e("router-link",{attrs:{to:{name:"Order",params:{id:s.id}}}},[e("span",{domProps:{innerHTML:t._s(s.title)}})])]}},{key:"item.client_name",fn:function({item:s}){return[s.client_id?e("router-link",{attrs:{to:{name:"ClientProfile",params:{id:s.client_id}}}},[t._v(t._s(s.client_name||""))]):t._e()]}},{key:"item.status_desc",fn:function({item:s}){return[e("span",{staticClass:"badge badge-secondary"},[t._v(" "+t._s(s.status_desc||"")+" ")])]}},{key:"item.actions",fn:function({item:s}){return[e("v-btn-toggle",[e("router-link",{staticClass:"white--text v-btn v-btn--contained v-btn--fab v-btn--round theme--light v-size--x-small success",attrs:{to:{name:"Order",params:{id:s.id}}}},[e("v-icon",{staticClass:"white--text",attrs:{small:""}},[t._v("mdi-eye")])],1)],1)]}}],null,!0)})},l=[],o={props:{orders:{type:Array}},computed:{...Object(a["e"])("orders",["editorOrdersTableHeaders"])}},d=o,c=s("2877"),m=Object(c["a"])(d,n,l,!1,null,null,null),u=m.exports,f=s("e6ec"),p={name:"WriterProfile",data:()=>({}),components:{UserOrdersTable:f["a"],EditorOrdersTable:u},computed:{...Object(a["e"])("writers",["loading"]),...Object(a["c"])("writers",["profile","orders","wallet_entires"]),...Object(a["c"])("auth",["userType","userTypes"])},methods:{...Object(a["b"])("writers",["getWriter"])},mounted(){this.getWriter(this.$route.params.id).then(t=>console.log(t)).catch(t=>console.log(t))}},_=p,v=Object(c["a"])(_,r,i,!1,null,null,null);e["default"]=v.exports},e6ec:function(t,e,s){"use strict";var r=function(){var t=this,e=t._self._c;return e("v-data-table",{attrs:{"mobile-breakpoint":0,headers:t.userOrdersTableHeaders,items:t.numberedOrders,search:t.$store.state.search},scopedSlots:t._u([{key:"item.no",fn:function({item:e}){return[t._v(" "+t._s(e.no)+" ")]}},{key:"item.id",fn:function({item:s}){return[e("router-link",{attrs:{to:{name:"Order",params:{id:s.id}}}},[t._v(t._s(s.id||""))])]}},{key:"item.title",fn:function({item:s}){return[e("router-link",{attrs:{to:{name:"Order",params:{id:s.id}}}},[t._v(t._s(s.title||""))])]}},{key:"item.client_name",fn:function({item:s}){return[s.client_id?e("router-link",{attrs:{to:{name:"ClientProfile",params:{id:s.client_id}}}},[t._v(t._s(s.client_name||""))]):t._e()]}},{key:"item.status_desc",fn:function({item:s}){return[e("v-chip",{attrs:{outlined:"",color:"primary",small:""}},[t._v(" "+t._s(s.status_desc||"")+" ")])]}},{key:"item.actions",fn:function({item:s}){return[e("router-link",{staticClass:"white--text v-btn v-btn--contained v-btn--fab v-btn--round theme--light v-size--small",attrs:{to:{name:"Order",params:{id:s.id}}}},[e("v-icon",{staticClass:"primary--text"},[t._v("mdi-eye")])],1)]}}],null,!0)})},i=[],a=s("2f62"),n={props:{orders:{type:Array}},computed:{...Object(a["e"])("orders",["userOrdersTableHeaders"]),numberedOrders(){return this.orders.map((t,e)=>({...t,no:e+1}))}}},l=n,o=s("2877"),d=Object(o["a"])(l,r,i,!1,null,null,null);e["a"]=d.exports}}]);
//# sourceMappingURL=chunk-d8a37f72.b8ac18eb.js.map