Files
vuefilemanager/public/chunks/user.js
Čarodej 9d52da4e3a - paystack test
- FEB
2021-11-08 09:27:50 +01:00

1 line
18 KiB
JavaScript
Vendored

(window.webpackJsonp=window.webpackJsonp||[]).push([[71],{"+Pqb":function(t,e,a){"use strict";var i={name:"ProgressBar",props:["progress"]},s=(a("NQIx"),a("KHd+")),o=Object(s.a)(i,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"progress-bar"},[e("span",{staticClass:"bg-theme",style:{width:this.progress+"%"}})])}),[],!1,null,"39123ae4",null);e.a=o.exports},"1zsi":function(t,e,a){var i=a("TnXf");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,s);i.locals&&(t.exports=i.locals)},"2Sb1":function(t,e,a){"use strict";var i={name:"PageHeader",props:["title","canBack"],components:{ChevronLeftIcon:a("CjXH").h}},s=(a("xdXa"),a("KHd+")),o=Object(s.a)(i,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page-header"},[t.canBack?a("div",{staticClass:"go-back",on:{click:function(e){return t.$router.back()}}},[a("chevron-left-icon",{attrs:{size:"17"}})],1):t._e(),t._v(" "),a("div",{staticClass:"content"},[a("h1",{staticClass:"title"},[t._v(t._s(t.title))])])])}),[],!1,null,"52888952",null);e.a=o.exports},"3OWm":function(t,e,a){"use strict";a.r(e);var i=a("CjXH"),s=a("xnZf"),o=a("D62o"),r=a("THmQ"),n=a("2Sb1"),d=a("kPoH"),l=a("zTYo"),c=a("L2JU"),m=a("vDqi"),v=a.n(m);function p(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function g(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?p(Object(a),!0).forEach((function(e){f(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):p(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function f(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var u={name:"Profile",components:{StorageItemDetail:s.a,CreditCardIcon:i.p,HardDriveIcon:i.F,SectionTitle:r.a,FileTextIcon:i.z,MobileHeader:o.a,PageHeader:n.a,ColorLabel:d.a,Trash2Icon:i.ib,UserIcon:i.nb,LockIcon:i.N,Spinner:l.a},computed:g(g({},Object(c.b)(["config"])),{},{admin:function(){return this.$store.getters.user?this.$store.getters.user:void 0}}),data:function(){return{isLoading:!0,user:void 0}},methods:{fetchUser:function(){var t=this;v.a.get("/api/admin/users/"+this.$route.params.id).then((function(e){t.user=e.data,t.isLoading=!1}))}},created:function(){this.fetchUser()}},b=(a("iqg3"),a("KHd+")),h=Object(b.a)(u,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"single-page"}},[t.isLoading?t._e():a("div",{attrs:{id:"page-content"}},[a("MobileHeader",{attrs:{title:t.$t(t.$router.currentRoute.meta.title)}}),t._v(" "),a("PageHeader",{attrs:{"can-back":!0,title:t.$t(t.$router.currentRoute.meta.title)}}),t._v(" "),a("div",{staticClass:"content-page"},[a("div",{staticClass:"user-thumbnail"},[a("div",{staticClass:"avatar"},[a("img",{attrs:{src:t.user.data.relationships.settings.data.attributes.avatar.sm,alt:t.user.data.relationships.settings.data.attributes.name}})]),t._v(" "),a("div",{staticClass:"info"},[a("b",{staticClass:"name"},[t._v("\n "+t._s(t.user.data.relationships.settings.data.attributes.name)+"\n "),a("ColorLabel",{attrs:{color:"purple"}},[t._v("\n "+t._s(t.user.data.attributes.role)+"\n ")])],1),t._v(" "),a("span",{staticClass:"email"},[t._v(t._s(t.user.data.attributes.email))])])]),t._v(" "),a("div",{staticClass:"menu-list-wrapper horizontal"},[a("router-link",{staticClass:"menu-list-item link border-bottom-theme",attrs:{replace:"",to:{name:"UserDetail"}}},[a("div",{staticClass:"icon text-theme"},[a("user-icon",{attrs:{size:"17"}})],1),t._v(" "),a("div",{staticClass:"label text-theme"},[t._v("\n "+t._s(t.$t("admin_page_user.tabs.detail"))+"\n ")])]),t._v(" "),a("router-link",{staticClass:"menu-list-item link border-bottom-theme",attrs:{replace:"",to:{name:"UserStorage"}}},[a("div",{staticClass:"icon text-theme"},[a("hard-drive-icon",{attrs:{size:"17"}})],1),t._v(" "),a("div",{staticClass:"label text-theme"},[t._v("\n "+t._s(t.$t("admin_page_user.tabs.storage"))+"\n ")])]),t._v(" "),t.config.isSaaS?a("router-link",{staticClass:"menu-list-item link border-bottom-theme",attrs:{replace:"",to:{name:"UserSubscription"}}},[a("div",{staticClass:"icon text-theme"},[a("credit-card-icon",{attrs:{size:"17"}})],1),t._v(" "),a("div",{staticClass:"label text-theme"},[t._v("\n "+t._s(t.$t("admin_page_user.tabs.subscription"))+"\n ")])]):t._e(),t._v(" "),t.config.isSaaS?a("router-link",{staticClass:"menu-list-item link border-bottom-theme",attrs:{replace:"",to:{name:"UserInvoices"}}},[a("div",{staticClass:"icon text-theme"},[a("file-text-icon",{attrs:{size:"17"}})],1),t._v(" "),a("div",{staticClass:"label text-theme"},[t._v("\n "+t._s(t.$t("admin_page_user.tabs.invoices"))+"\n ")])]):t._e(),t._v(" "),a("router-link",{staticClass:"menu-list-item link border-bottom-theme",attrs:{replace:"",to:{name:"UserPassword"}}},[a("div",{staticClass:"icon text-theme"},[a("lock-icon",{attrs:{size:"17"}})],1),t._v(" "),a("div",{staticClass:"label text-theme"},[t._v("\n "+t._s(t.$t("admin_page_user.tabs.password"))+"\n ")])]),t._v(" "),t.admin&&t.user.data.relationships.settings.data.attributes.name!==t.admin.data.relationships.settings.data.attributes.name?a("router-link",{staticClass:"menu-list-item link border-bottom-theme",attrs:{replace:"",to:{name:"UserDelete"}}},[a("div",{staticClass:"icon text-theme"},[a("trash2-icon",{attrs:{size:"17"}})],1),t._v(" "),a("div",{staticClass:"label text-theme"},[t._v("\n "+t._s(t.$t("admin_page_user.tabs.delete"))+"\n ")])]):t._e()],1),t._v(" "),a("router-view",{attrs:{user:t.user},on:{"reload-user":t.fetchUser}})],1)],1),t._v(" "),t.isLoading?a("div",{attrs:{id:"loader"}},[a("Spinner")],1):t._e()])}),[],!1,null,"30f85c94",null);e.default=h.exports},D62o:function(t,e,a){"use strict";a("xCqy");var i=a("CjXH"),s={name:"MobileHeader",props:["title"],components:{ChevronLeftIcon:i.h,MenuIcon:i.P},methods:{goBack:function(){this.$router.back()}}},o=(a("lpU+"),a("KHd+")),r=Object(o.a)(s,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("header",{staticClass:"mobile-header"},[a("div",{staticClass:"go-back",on:{click:t.goBack}},[a("chevron-left-icon",{staticClass:"icon",attrs:{size:"17"}})],1),t._v(" "),a("div",{staticClass:"location-name"},[t._v(t._s(t.title))]),t._v(" "),a("div",{staticClass:"mobile-menu",on:{click:function(e){return t.$showMobileMenu("user-navigation")}}},[a("menu-icon",{staticClass:"icon",attrs:{size:"17"}})],1)])}),[],!1,null,"0da6bf54",null);e.a=r.exports},Dwrf:function(t,e,a){"use strict";a("1zsi")},EeBR:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".page-header[data-v-52888952]{display:flex;align-items:center;background:#fff;z-index:9;width:100%;position:sticky;top:0;padding-top:20px;padding-bottom:20px}.page-header .title[data-v-52888952]{font-size:1.125em;font-weight:700;color:#1b2539}.page-header .go-back[data-v-52888952]{margin-right:10px;cursor:pointer}.page-header .go-back svg[data-v-52888952]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:960px){.page-header .title[data-v-52888952]{font-size:1.125em}}@media only screen and (max-width:690px){.page-header[data-v-52888952]{display:none}}.dark .page-header[data-v-52888952]{background:#151515}.dark .page-header .title[data-v-52888952]{color:#bec6cf}.dark .page-header .icon path[data-v-52888952]{fill:#00bc7e}",""])},IZWy:function(t,e,a){var i=a("aQc7");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,s);i.locals&&(t.exports=i.locals)},KJww:function(t,e,a){var i=a("c6IS");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,s);i.locals&&(t.exports=i.locals)},KutZ:function(t,e,a){var i=a("EeBR");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,s);i.locals&&(t.exports=i.locals)},NEz6:function(t,e,a){"use strict";a("KJww")},NQIx:function(t,e,a){"use strict";a("IZWy")},PVSD:function(t,e,a){var i=a("hv9L");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,s);i.locals&&(t.exports=i.locals)},Qak4:function(t,e,a){var i=a("qESJ");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,s);i.locals&&(t.exports=i.locals)},S7o3:function(t,e,a){"use strict";a("hwI8")},THmQ:function(t,e,a){"use strict";var i={name:"SectionTitle"},s=(a("NEz6"),a("KHd+")),o=Object(s.a)(i,(function(){var t=this.$createElement;return(this._self._c||t)("b",{staticClass:"text-label"},[this._t("default")],2)}),[],!1,null,"9cac37aa",null);e.a=o.exports},TnXf:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".color-label[data-v-ce9835ba]{text-transform:capitalize;font-size:.75em;display:inline-block;border-radius:6px;font-weight:700;padding:4px 6px}.color-label.purple[data-v-ce9835ba]{color:#9d66fe;background:rgba(157,102,254,.1)}.color-label.yellow[data-v-ce9835ba]{color:#ffbd2d;background:rgba(255,189,45,.1)}.color-label.green[data-v-ce9835ba]{color:#00bc7e;background:rgba(0,188,126,.1)}.color-label.red[data-v-ce9835ba]{color:#fd397a;background:rgba(253,57,122,.1)}",""])},aQc7:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".progress-bar[data-v-39123ae4]{width:100%;height:5px;background:#f4f5f6;margin-top:6px;border-radius:10px}.progress-bar span[data-v-39123ae4]{display:block;height:100%;border-radius:10px;max-width:100%}.dark .progress-bar[data-v-39123ae4]{background:#1e2024}@media only screen and (min-width:680px){.dark .progress-bar[data-v-39123ae4]{background:#1e2024}}",""])},c6IS:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".text-label[data-v-9cac37aa]{font-size:.75em;color:#afafaf;font-weight:700;display:block;margin-bottom:20px}.dark .text-label[data-v-9cac37aa]{color:#00bc7e}",""])},hv9L:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".user-thumbnail[data-v-30f85c94]{display:flex;align-items:center;cursor:pointer;padding-bottom:10px;padding-top:15px}.user-thumbnail .avatar[data-v-30f85c94]{margin-right:20px;position:relative}.user-thumbnail .avatar img[data-v-30f85c94]{line-height:0;width:62px;height:62px;border-radius:12px;z-index:1;position:relative}.user-thumbnail .avatar img.blurred[data-v-30f85c94]{position:absolute;left:0;top:2px;z-index:0;filter:blur(8px);opacity:.5;top:0}.user-thumbnail .info .name[data-v-30f85c94]{display:block;font-size:1.0625em;line-height:1}.user-thumbnail .info .email[data-v-30f85c94]{color:rgba(27,37,57,.7);font-size:.875em}.dark .user-thumbnail .info .email[data-v-30f85c94]{color:#7d858c}",""])},hwI8:function(t,e,a){var i=a("n1yv");"string"==typeof i&&(i=[[t.i,i,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,s);i.locals&&(t.exports=i.locals)},iqg3:function(t,e,a){"use strict";a("PVSD")},kPoH:function(t,e,a){"use strict";var i={name:"ColorLabel",props:["color"]},s=(a("Dwrf"),a("KHd+")),o=Object(s.a)(i,(function(){var t=this.$createElement;return(this._self._c||t)("b",{staticClass:"color-label",class:this.color},[this._t("default")],2)}),[],!1,null,"ce9835ba",null);e.a=o.exports},"lpU+":function(t,e,a){"use strict";a("Qak4")},n1yv:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".detail-storage-item[data-v-038f9062]{margin-bottom:35px}.detail-storage-item.disk .icon circle[data-v-038f9062],.detail-storage-item.disk .icon line[data-v-038f9062],.detail-storage-item.disk .icon path[data-v-038f9062],.detail-storage-item.disk .icon polygon[data-v-038f9062],.detail-storage-item.disk .icon polyline[data-v-038f9062],.detail-storage-item.disk .icon rect[data-v-038f9062]{stroke:#1b2539}.detail-storage-item.disk .storage-progress[data-v-038f9062] span{background:#1b2539}.detail-storage-item.images .icon circle[data-v-038f9062],.detail-storage-item.images .icon line[data-v-038f9062],.detail-storage-item.images .icon path[data-v-038f9062],.detail-storage-item.images .icon polygon[data-v-038f9062],.detail-storage-item.images .icon polyline[data-v-038f9062],.detail-storage-item.images .icon rect[data-v-038f9062]{stroke:#9d66fe}.detail-storage-item.images .storage-progress[data-v-038f9062] span{background:#9d66fe}.detail-storage-item.videos .icon circle[data-v-038f9062],.detail-storage-item.videos .icon line[data-v-038f9062],.detail-storage-item.videos .icon path[data-v-038f9062],.detail-storage-item.videos .icon polygon[data-v-038f9062],.detail-storage-item.videos .icon polyline[data-v-038f9062],.detail-storage-item.videos .icon rect[data-v-038f9062]{stroke:#ffbd2d}.detail-storage-item.videos .storage-progress[data-v-038f9062] span{background:#ffbd2d}.detail-storage-item.audios .icon circle[data-v-038f9062],.detail-storage-item.audios .icon line[data-v-038f9062],.detail-storage-item.audios .icon path[data-v-038f9062],.detail-storage-item.audios .icon polygon[data-v-038f9062],.detail-storage-item.audios .icon polyline[data-v-038f9062],.detail-storage-item.audios .icon rect[data-v-038f9062]{stroke:#fe66a1}.detail-storage-item.audios .storage-progress[data-v-038f9062] span{background:#fe66a1}.detail-storage-item.documents .icon circle[data-v-038f9062],.detail-storage-item.documents .icon line[data-v-038f9062],.detail-storage-item.documents .icon path[data-v-038f9062],.detail-storage-item.documents .icon polygon[data-v-038f9062],.detail-storage-item.documents .icon polyline[data-v-038f9062],.detail-storage-item.documents .icon rect[data-v-038f9062]{stroke:#fe6057}.detail-storage-item.documents .storage-progress[data-v-038f9062] span{background:#fe6057}.detail-storage-item.others .icon circle[data-v-038f9062],.detail-storage-item.others .icon line[data-v-038f9062],.detail-storage-item.others .icon path[data-v-038f9062],.detail-storage-item.others .icon polygon[data-v-038f9062],.detail-storage-item.others .icon polyline[data-v-038f9062],.detail-storage-item.others .icon rect[data-v-038f9062]{stroke:#1b2539}.detail-storage-item.others .storage-progress[data-v-038f9062] span{background:#1b2539}.header-storage-item[data-v-038f9062]{display:flex;align-items:flex-start;margin-bottom:10px}.header-storage-item .icon[data-v-038f9062]{width:35px}.header-storage-item .type[data-v-038f9062]{font-size:.9375em;color:#1b2539}.header-storage-item .total-size[data-v-038f9062]{font-size:.625em;display:block;color:rgba(27,37,57,.7)}.dark .header-storage-item .type[data-v-038f9062]{color:#bec6cf}.dark .header-storage-item .total-size[data-v-038f9062]{color:#7d858c}.dark .detail-storage-item.disk .icon circle[data-v-038f9062],.dark .detail-storage-item.disk .icon line[data-v-038f9062],.dark .detail-storage-item.disk .icon path[data-v-038f9062],.dark .detail-storage-item.disk .icon polygon[data-v-038f9062],.dark .detail-storage-item.disk .icon polyline[data-v-038f9062],.dark .detail-storage-item.disk .icon rect[data-v-038f9062],.dark .detail-storage-item.others .icon circle[data-v-038f9062],.dark .detail-storage-item.others .icon line[data-v-038f9062],.dark .detail-storage-item.others .icon path[data-v-038f9062],.dark .detail-storage-item.others .icon polygon[data-v-038f9062],.dark .detail-storage-item.others .icon polyline[data-v-038f9062],.dark .detail-storage-item.others .icon rect[data-v-038f9062]{stroke:#41454e}.dark .detail-storage-item.disk .storage-progress[data-v-038f9062] span,.dark .detail-storage-item.others .storage-progress[data-v-038f9062] span{background:#41454e}",""])},qESJ:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".mobile-header[data-v-0da6bf54]{padding:10px 0;text-align:center;background:#fff;position:sticky;display:none;z-index:6;top:0}.mobile-header>div[data-v-0da6bf54]{flex-grow:1;align-self:center;white-space:nowrap}.mobile-header .go-back[data-v-0da6bf54]{text-align:left}.mobile-header .location-name[data-v-0da6bf54]{line-height:1;text-align:center;width:100%;vertical-align:middle;font-size:.9375em;color:#1b2539;font-weight:700;max-width:220px;overflow:hidden;text-overflow:ellipsis;display:inline-block}.mobile-header .mobile-menu[data-v-0da6bf54]{text-align:right}.mobile-header .icon[data-v-0da6bf54]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:690px){.mobile-header[data-v-0da6bf54]{display:flex;margin-bottom:15px}}.dark .mobile-header[data-v-0da6bf54]{background:#151515}.dark .mobile-header .location-name[data-v-0da6bf54]{color:#bec6cf}",""])},xdXa:function(t,e,a){"use strict";a("KutZ")},xnZf:function(t,e,a){"use strict";var i=a("+Pqb"),s=a("CjXH"),o={name:"StorageItemDetail",props:["percentage","title","type","used"],components:{HardDriveIcon:s.F,FileTextIcon:s.z,ProgressBar:i.a,MusicIcon:s.U,VideoIcon:s.rb,ImageIcon:s.H,FileIcon:s.y}},r=(a("S7o3"),a("KHd+")),n=Object(r.a)(o,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("article",{staticClass:"detail-storage-item",class:t.type},[a("div",{staticClass:"header-storage-item"},[a("div",{staticClass:"icon"},["images"==t.type?a("image-icon",{attrs:{size:"23"}}):t._e(),t._v(" "),"videos"==t.type?a("video-icon",{attrs:{size:"23"}}):t._e(),t._v(" "),"audios"==t.type?a("music-icon",{attrs:{size:"23"}}):t._e(),t._v(" "),"documents"==t.type?a("file-text-icon",{attrs:{size:"23"}}):t._e(),t._v(" "),"others"==t.type?a("file-icon",{attrs:{size:"23"}}):t._e(),t._v(" "),"disk"==t.type?a("hard-drive-icon",{attrs:{size:"23"}}):t._e()],1),t._v(" "),a("div",{staticClass:"title"},[a("b",{staticClass:"type"},[t._v(t._s(t.title))]),t._v(" "),a("span",{staticClass:"total-size"},[t._v(t._s(t.used))])])]),t._v(" "),a("ProgressBar",{staticClass:"storage-progress",attrs:{progress:t.percentage}})],1)}),[],!1,null,"038f9062",null);e.a=n.exports}}]);