Files
vuefilemanager/public/chunks/user.js
2021-07-23 16:15:56 +00:00

1 line
18 KiB
JavaScript
Vendored

(window.webpackJsonp=window.webpackJsonp||[]).push([[64],{"+Pqb":function(e,t,a){"use strict";var i={name:"ProgressBar",props:["progress"]},o=(a("q0mz"),a("KHd+")),s=Object(o.a)(i,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"progress-bar"},[t("span",{staticClass:"bg-theme",style:{width:this.progress+"%"}})])}),[],!1,null,"7f729d8c",null);t.a=s.exports},"+rRx":function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".page-header[data-v-3a05f200]{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-3a05f200]{font-size:1.125em;font-weight:700;color:#1b2539}.page-header .go-back[data-v-3a05f200]{margin-right:10px;cursor:pointer}.page-header .go-back svg[data-v-3a05f200]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:960px){.page-header .title[data-v-3a05f200]{font-size:1.125em}}@media only screen and (max-width:690px){.page-header[data-v-3a05f200]{display:none}}.dark-mode .page-header[data-v-3a05f200]{background:#131414}.dark-mode .page-header .title[data-v-3a05f200]{color:#bec6cf}.dark-mode .page-header .icon path[data-v-3a05f200]{fill:#00bc7e}",""])},"/8V/":function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".color-label[data-v-f48d7f1e]{text-transform:capitalize;font-size:.75em;display:inline-block;border-radius:6px;font-weight:700;padding:4px 6px}.color-label.purple[data-v-f48d7f1e]{color:#9d66fe;background:rgba(157,102,254,.1)}.color-label.yellow[data-v-f48d7f1e]{color:#ffbd2d;background:rgba(255,189,45,.1)}.color-label.green[data-v-f48d7f1e]{color:#00bc7e;background:rgba(0,188,126,.1)}.color-label.red[data-v-f48d7f1e]{color:#fd397a;background:rgba(253,57,122,.1)}",""])},"0Jwr":function(e,t,a){var i=a("D7al");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,o);i.locals&&(e.exports=i.locals)},"2Sb1":function(e,t,a){"use strict";var i={name:"PageHeader",props:["title","canBack"],components:{ChevronLeftIcon:a("CjXH").h}},o=(a("5AGk"),a("KHd+")),s=Object(o.a)(i,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page-header"},[e.canBack?a("div",{staticClass:"go-back",on:{click:function(t){return e.$router.back()}}},[a("chevron-left-icon",{attrs:{size:"17"}})],1):e._e(),e._v(" "),a("div",{staticClass:"content"},[a("h1",{staticClass:"title"},[e._v(e._s(e.title))])])])}),[],!1,null,"3a05f200",null);t.a=s.exports},"3OWm":function(e,t,a){"use strict";a.r(t);var i=a("CjXH"),o=a("xnZf"),s=a("D62o"),r=a("THmQ"),d=a("2Sb1"),n=a("kPoH"),l=a("zTYo"),c=a("L2JU"),f=a("vDqi"),m=a.n(f);function v(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function p(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?v(Object(a),!0).forEach((function(t){g(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):v(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function g(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var u={name:"Profile",components:{StorageItemDetail:o.a,CreditCardIcon:i.p,HardDriveIcon:i.F,SectionTitle:r.a,FileTextIcon:i.z,MobileHeader:s.a,PageHeader:d.a,ColorLabel:n.a,Trash2Icon:i.ib,UserIcon:i.mb,LockIcon:i.N,Spinner:l.a},computed:p(p({},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 e=this;m.a.get("/api/admin/users/"+this.$route.params.id).then((function(t){e.user=t.data,e.isLoading=!1}))}},created:function(){this.fetchUser()}},b=(a("ILX/"),a("KHd+")),h=Object(b.a)(u,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"single-page"}},[e.isLoading?e._e():a("div",{attrs:{id:"page-content"}},[a("MobileHeader",{attrs:{title:e.$t(e.$router.currentRoute.meta.title)}}),e._v(" "),a("PageHeader",{attrs:{"can-back":!0,title:e.$t(e.$router.currentRoute.meta.title)}}),e._v(" "),a("div",{staticClass:"content-page"},[a("div",{staticClass:"user-thumbnail"},[a("div",{staticClass:"avatar"},[a("img",{attrs:{src:e.user.data.relationships.settings.data.attributes.avatar,alt:e.user.data.relationships.settings.data.attributes.name}})]),e._v(" "),a("div",{staticClass:"info"},[a("b",{staticClass:"name"},[e._v("\n "+e._s(e.user.data.relationships.settings.data.attributes.name)+"\n "),a("ColorLabel",{attrs:{color:"purple"}},[e._v("\n "+e._s(e.user.data.attributes.role)+"\n ")])],1),e._v(" "),a("span",{staticClass:"email"},[e._v(e._s(e.user.data.attributes.email))])])]),e._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),e._v(" "),a("div",{staticClass:"label text-theme"},[e._v("\n "+e._s(e.$t("admin_page_user.tabs.detail"))+"\n ")])]),e._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),e._v(" "),a("div",{staticClass:"label text-theme"},[e._v("\n "+e._s(e.$t("admin_page_user.tabs.storage"))+"\n ")])]),e._v(" "),e.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),e._v(" "),a("div",{staticClass:"label text-theme"},[e._v("\n "+e._s(e.$t("admin_page_user.tabs.subscription"))+"\n ")])]):e._e(),e._v(" "),e.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),e._v(" "),a("div",{staticClass:"label text-theme"},[e._v("\n "+e._s(e.$t("admin_page_user.tabs.invoices"))+"\n ")])]):e._e(),e._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),e._v(" "),a("div",{staticClass:"label text-theme"},[e._v("\n "+e._s(e.$t("admin_page_user.tabs.password"))+"\n ")])]),e._v(" "),e.admin&&e.user.data.relationships.settings.data.attributes.name!==e.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),e._v(" "),a("div",{staticClass:"label text-theme"},[e._v("\n "+e._s(e.$t("admin_page_user.tabs.delete"))+"\n ")])]):e._e()],1),e._v(" "),a("router-view",{attrs:{user:e.user},on:{"reload-user":e.fetchUser}})],1)],1),e._v(" "),e.isLoading?a("div",{attrs:{id:"loader"}},[a("Spinner")],1):e._e()])}),[],!1,null,"07690e4c",null);t.default=h.exports},"4eR2":function(e,t,a){var i=a("+rRx");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,o);i.locals&&(e.exports=i.locals)},"5AGk":function(e,t,a){"use strict";a("4eR2")},"69Ve":function(e,t,a){var i=a("m2iI");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,o);i.locals&&(e.exports=i.locals)},AIiR:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".progress-bar[data-v-7f729d8c]{width:100%;height:5px;background:#f4f5f6;margin-top:6px;border-radius:10px}.progress-bar span[data-v-7f729d8c]{display:block;height:100%;border-radius:10px;max-width:100%}.dark-mode .progress-bar[data-v-7f729d8c]{background:#1e2024}@media only screen and (min-width:680px){.dark-mode .progress-bar[data-v-7f729d8c]{background:#1e2024}}",""])},At9m:function(e,t,a){var i=a("gv5K");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,o);i.locals&&(e.exports=i.locals)},D62o:function(e,t,a){"use strict";var i=a("xCqy"),o=a("CjXH"),s={name:"MobileHeader",props:["title"],components:{ChevronLeftIcon:o.h,MenuIcon:o.P},methods:{showMobileNavigation:function(){i.a.$emit("mobile-menu:show","user-navigation")},goBack:function(){this.$router.back()}}},r=(a("pTcH"),a("KHd+")),d=Object(r.a)(s,(function(){var e=this.$createElement,t=this._self._c||e;return t("header",{staticClass:"mobile-header"},[t("div",{staticClass:"go-back",on:{click:this.goBack}},[t("chevron-left-icon",{staticClass:"icon",attrs:{size:"17"}})],1),this._v(" "),t("div",{staticClass:"location-name"},[this._v(this._s(this.title))]),this._v(" "),t("div",{staticClass:"mobile-menu",on:{click:this.showMobileNavigation}},[t("menu-icon",{staticClass:"icon",attrs:{size:"17"}})],1)])}),[],!1,null,"c5a69c44",null);t.a=d.exports},D7al:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".user-thumbnail[data-v-07690e4c]{display:flex;align-items:center;cursor:pointer;padding-bottom:10px;padding-top:15px}.user-thumbnail .avatar[data-v-07690e4c]{margin-right:20px;position:relative}.user-thumbnail .avatar img[data-v-07690e4c]{line-height:0;width:62px;height:62px;border-radius:12px;z-index:1;position:relative}.user-thumbnail .avatar img.blurred[data-v-07690e4c]{position:absolute;left:0;top:2px;z-index:0;filter:blur(8px);opacity:.5;top:0}.user-thumbnail .info .name[data-v-07690e4c]{display:block;font-size:1.0625em;line-height:1}.user-thumbnail .info .email[data-v-07690e4c]{color:rgba(27,37,57,.7);font-size:.875em}.dark-mode .user-thumbnail .info .email[data-v-07690e4c]{color:#7d858c}",""])},"ILX/":function(e,t,a){"use strict";a("0Jwr")},OKRq:function(e,t,a){var i=a("AIiR");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,o);i.locals&&(e.exports=i.locals)},THmQ:function(e,t,a){"use strict";var i={name:"SectionTitle"},o=(a("Vfyq"),a("KHd+")),s=Object(o.a)(i,(function(){var e=this.$createElement;return(this._self._c||e)("b",{staticClass:"text-label"},[this._t("default")],2)}),[],!1,null,"50ba9e3a",null);t.a=s.exports},Vfyq:function(e,t,a){"use strict";a("At9m")},fxw1:function(e,t,a){"use strict";a("jdsL")},gv5K:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".text-label[data-v-50ba9e3a]{font-size:.75em;color:#afafaf;font-weight:700;display:block;margin-bottom:20px}.dark-mode .text-label[data-v-50ba9e3a]{color:#00bc7e}",""])},ieN9:function(e,t,a){var i=a("lfOe");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,o);i.locals&&(e.exports=i.locals)},jdsL:function(e,t,a){var i=a("/8V/");"string"==typeof i&&(i=[[e.i,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(i,o);i.locals&&(e.exports=i.locals)},kPoH:function(e,t,a){"use strict";var i={name:"ColorLabel",props:["color"]},o=(a("fxw1"),a("KHd+")),s=Object(o.a)(i,(function(){var e=this.$createElement;return(this._self._c||e)("b",{staticClass:"color-label",class:this.color},[this._t("default")],2)}),[],!1,null,"f48d7f1e",null);t.a=s.exports},lfOe:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".detail-storage-item[data-v-fd1f866e]{margin-bottom:35px}.detail-storage-item.disk .icon circle[data-v-fd1f866e],.detail-storage-item.disk .icon line[data-v-fd1f866e],.detail-storage-item.disk .icon path[data-v-fd1f866e],.detail-storage-item.disk .icon polygon[data-v-fd1f866e],.detail-storage-item.disk .icon polyline[data-v-fd1f866e],.detail-storage-item.disk .icon rect[data-v-fd1f866e]{stroke:#1b2539}.detail-storage-item.disk .storage-progress[data-v-fd1f866e] span{background:#1b2539}.detail-storage-item.images .icon circle[data-v-fd1f866e],.detail-storage-item.images .icon line[data-v-fd1f866e],.detail-storage-item.images .icon path[data-v-fd1f866e],.detail-storage-item.images .icon polygon[data-v-fd1f866e],.detail-storage-item.images .icon polyline[data-v-fd1f866e],.detail-storage-item.images .icon rect[data-v-fd1f866e]{stroke:#9d66fe}.detail-storage-item.images .storage-progress[data-v-fd1f866e] span{background:#9d66fe}.detail-storage-item.videos .icon circle[data-v-fd1f866e],.detail-storage-item.videos .icon line[data-v-fd1f866e],.detail-storage-item.videos .icon path[data-v-fd1f866e],.detail-storage-item.videos .icon polygon[data-v-fd1f866e],.detail-storage-item.videos .icon polyline[data-v-fd1f866e],.detail-storage-item.videos .icon rect[data-v-fd1f866e]{stroke:#ffbd2d}.detail-storage-item.videos .storage-progress[data-v-fd1f866e] span{background:#ffbd2d}.detail-storage-item.audios .icon circle[data-v-fd1f866e],.detail-storage-item.audios .icon line[data-v-fd1f866e],.detail-storage-item.audios .icon path[data-v-fd1f866e],.detail-storage-item.audios .icon polygon[data-v-fd1f866e],.detail-storage-item.audios .icon polyline[data-v-fd1f866e],.detail-storage-item.audios .icon rect[data-v-fd1f866e]{stroke:#fe66a1}.detail-storage-item.audios .storage-progress[data-v-fd1f866e] span{background:#fe66a1}.detail-storage-item.documents .icon circle[data-v-fd1f866e],.detail-storage-item.documents .icon line[data-v-fd1f866e],.detail-storage-item.documents .icon path[data-v-fd1f866e],.detail-storage-item.documents .icon polygon[data-v-fd1f866e],.detail-storage-item.documents .icon polyline[data-v-fd1f866e],.detail-storage-item.documents .icon rect[data-v-fd1f866e]{stroke:#fe6057}.detail-storage-item.documents .storage-progress[data-v-fd1f866e] span{background:#fe6057}.detail-storage-item.others .icon circle[data-v-fd1f866e],.detail-storage-item.others .icon line[data-v-fd1f866e],.detail-storage-item.others .icon path[data-v-fd1f866e],.detail-storage-item.others .icon polygon[data-v-fd1f866e],.detail-storage-item.others .icon polyline[data-v-fd1f866e],.detail-storage-item.others .icon rect[data-v-fd1f866e]{stroke:#1b2539}.detail-storage-item.others .storage-progress[data-v-fd1f866e] span{background:#1b2539}.header-storage-item[data-v-fd1f866e]{display:flex;align-items:flex-start;margin-bottom:10px}.header-storage-item .icon[data-v-fd1f866e]{width:35px}.header-storage-item .type[data-v-fd1f866e]{font-size:.9375em;color:#1b2539}.header-storage-item .total-size[data-v-fd1f866e]{font-size:.625em;display:block;color:rgba(27,37,57,.7)}.dark-mode .header-storage-item .type[data-v-fd1f866e]{color:#bec6cf}.dark-mode .header-storage-item .total-size[data-v-fd1f866e]{color:#7d858c}.dark-mode .detail-storage-item.disk .icon circle[data-v-fd1f866e],.dark-mode .detail-storage-item.disk .icon line[data-v-fd1f866e],.dark-mode .detail-storage-item.disk .icon path[data-v-fd1f866e],.dark-mode .detail-storage-item.disk .icon polygon[data-v-fd1f866e],.dark-mode .detail-storage-item.disk .icon polyline[data-v-fd1f866e],.dark-mode .detail-storage-item.disk .icon rect[data-v-fd1f866e],.dark-mode .detail-storage-item.others .icon circle[data-v-fd1f866e],.dark-mode .detail-storage-item.others .icon line[data-v-fd1f866e],.dark-mode .detail-storage-item.others .icon path[data-v-fd1f866e],.dark-mode .detail-storage-item.others .icon polygon[data-v-fd1f866e],.dark-mode .detail-storage-item.others .icon polyline[data-v-fd1f866e],.dark-mode .detail-storage-item.others .icon rect[data-v-fd1f866e]{stroke:#41454e}.dark-mode .detail-storage-item.disk .storage-progress[data-v-fd1f866e] span,.dark-mode .detail-storage-item.others .storage-progress[data-v-fd1f866e] span{background:#41454e}",""])},m2iI:function(e,t,a){(e.exports=a("I1BE")(!1)).push([e.i,".mobile-header[data-v-c5a69c44]{padding:10px 0;text-align:center;background:#fff;position:sticky;display:none;z-index:6;top:0}.mobile-header>div[data-v-c5a69c44]{flex-grow:1;align-self:center;white-space:nowrap}.mobile-header .go-back[data-v-c5a69c44]{text-align:left}.mobile-header .location-name[data-v-c5a69c44]{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-c5a69c44]{text-align:right}.mobile-header .icon[data-v-c5a69c44]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:690px){.mobile-header[data-v-c5a69c44]{display:flex;margin-bottom:15px}}.dark-mode .mobile-header[data-v-c5a69c44]{background:#131414}.dark-mode .mobile-header .location-name[data-v-c5a69c44]{color:#bec6cf}",""])},pTcH:function(e,t,a){"use strict";a("69Ve")},q0mz:function(e,t,a){"use strict";a("OKRq")},wj3F:function(e,t,a){"use strict";a("ieN9")},xnZf:function(e,t,a){"use strict";var i=a("+Pqb"),o=a("CjXH"),s={name:"StorageItemDetail",props:["percentage","title","type","used"],components:{HardDriveIcon:o.F,FileTextIcon:o.z,ProgressBar:i.a,MusicIcon:o.U,VideoIcon:o.pb,ImageIcon:o.H,FileIcon:o.y}},r=(a("wj3F"),a("KHd+")),d=Object(r.a)(s,(function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("article",{staticClass:"detail-storage-item",class:e.type},[a("div",{staticClass:"header-storage-item"},[a("div",{staticClass:"icon"},["images"==e.type?a("image-icon",{attrs:{size:"23"}}):e._e(),e._v(" "),"videos"==e.type?a("video-icon",{attrs:{size:"23"}}):e._e(),e._v(" "),"audios"==e.type?a("music-icon",{attrs:{size:"23"}}):e._e(),e._v(" "),"documents"==e.type?a("file-text-icon",{attrs:{size:"23"}}):e._e(),e._v(" "),"others"==e.type?a("file-icon",{attrs:{size:"23"}}):e._e(),e._v(" "),"disk"==e.type?a("hard-drive-icon",{attrs:{size:"23"}}):e._e()],1),e._v(" "),a("div",{staticClass:"title"},[a("b",{staticClass:"type"},[e._v(e._s(e.title))]),e._v(" "),a("span",{staticClass:"total-size"},[e._v(e._s(e.used))])])]),e._v(" "),a("ProgressBar",{staticClass:"storage-progress",attrs:{progress:e.percentage}})],1)}),[],!1,null,"fd1f866e",null);t.a=d.exports}}]);