mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
1 line
9.9 KiB
JavaScript
Vendored
1 line
9.9 KiB
JavaScript
Vendored
(window.webpackJsonp=window.webpackJsonp||[]).push([[72],{"1xrH":function(t,e,a){var r=a("T25u");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(r,i);r.locals&&(t.exports=r.locals)},"2Sb1":function(t,e,a){"use strict";var r={name:"PageHeader",props:["title","canBack"],components:{ChevronLeftIcon:a("CjXH").j}},i=(a("sksd"),a("KHd+")),o=Object(i.a)(r,(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,"7ea8553f",null);e.a=o.exports},"3OWm":function(t,e,a){"use strict";a.r(e);var r=a("9ZF6"),i=a("CjXH"),o=a("D62o"),n=a("THmQ"),s=a("2Sb1"),l=a("kPoH"),c=a("zTYo"),d=a("xCqy"),u=a("L2JU"),p=a("vDqi"),f=a.n(p);function b(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function v(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?b(Object(a),!0).forEach((function(e){h(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):b(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function h(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var m={name:"Profile",components:{CardNavigation:r.a,CreditCardIcon:i.t,HardDriveIcon:i.M,SectionTitle:n.a,FileTextIcon:i.E,MobileHeader:o.a,PageHeader:s.a,ColorLabel:l.a,Trash2Icon:i.sb,UserIcon:i.xb,LockIcon:i.V,Spinner:c.a},computed:v(v({},Object(u.b)(["config"])),{},{admin:function(){return this.$store.getters.user?this.$store.getters.user:void 0},pages:function(){return"none"===this.config.subscriptionType?[{title:this.$t("admin_page_user.tabs.detail"),route:"UserDetail"},{title:this.$t("Storage"),route:"UserStorage"},{title:this.$t("admin_page_user.tabs.password"),route:"UserPassword"},{title:this.$t("Delete Account"),route:"UserDelete"}]:[{title:this.$t("admin_page_user.tabs.detail"),route:"UserDetail"},{title:this.$t("Storage"),route:"UserStorage"},{title:this.$t("Billing"),route:"UserSubscription"},{title:this.$t("admin_page_user.tabs.password"),route:"UserPassword"},{title:this.$t("Delete Account"),route:"UserDelete"}]}}),data:function(){return{isLoading:!0,user:void 0}},methods:{fetchUser:function(){var t=this;f.a.get("/api/admin/users/"+this.$route.params.id).then((function(e){t.user=e.data,t.isLoading=!1}))}},created:function(){var t=this;this.fetchUser(),d.a.$on("reload:user",(function(){return t.fetchUser()}))}},g=(a("dcrs"),a("KHd+")),x=Object(g.a)(m,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.isLoading?t._e():a("div",{attrs:{id:"page-content"}},[a("div",{staticClass:"card shadow-card pt-4 sticky top-0 z-10",staticStyle:{"padding-bottom":"0"}},[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\t\t\t\t\t\t"+t._s(t.user.data.relationships.settings.data.attributes.name)+"\n\t\t\t\t\t\t\t"),a("ColorLabel",{attrs:{color:"purple"}},[t._v("\n\t\t\t\t\t\t\t\t"+t._s(t.user.data.attributes.role)+"\n\t\t\t\t\t\t\t")])],1),t._v(" "),a("span",{staticClass:"email"},[t._v(t._s(t.user.data.attributes.email))])])]),t._v(" "),a("CardNavigation",{staticClass:"-mx-1",attrs:{pages:t.pages}})],1),t._v(" "),a("router-view",{attrs:{user:t.user},on:{"reload-user":t.fetchUser}})],1),t._v(" "),t.isLoading?a("div",{attrs:{id:"loader"}},[a("Spinner")],1):t._e()])}),[],!1,null,"58047f95",null);e.default=x.exports},"9ZF6":function(t,e,a){"use strict";var r={name:"CardNavigation",props:["pages"],computed:{routeName:function(){return this.$route.name}}},i=a("KHd+"),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"whitespace-nowrap overflow-x-auto"},t._l(t.pages,(function(e,r){return a("router-link",{key:r,staticClass:"inline-block text-sm font-bold px-4 py-5 border-b-2 border-transparent border-bottom-theme",class:{"text-theme":t.routeName===e.route,"dark:text-gray-400 text-gray-600":t.routeName!==e.route},attrs:{to:{name:e.route},replace:""}},[t._v("\n\t\t"+t._s(e.title)+"\n\t")])})),1)}),[],!1,null,null,null);e.a=o.exports},D62o:function(t,e,a){"use strict";a("xCqy");var r=a("CjXH"),i={name:"MobileHeader",props:["title"],components:{ChevronLeftIcon:r.j,MenuIcon:r.Y},methods:{goBack:function(){this.$router.back()}}},o=(a("lpU+"),a("KHd+")),n=Object(o.a)(i,(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=n.exports},KJww:function(t,e,a){var r=a("c6IS");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(r,i);r.locals&&(t.exports=r.locals)},LvO6:function(t,e,a){var r=a("lF1h");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(r,i);r.locals&&(t.exports=r.locals)},NEz6:function(t,e,a){"use strict";a("KJww")},Qak4:function(t,e,a){var r=a("qESJ");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(r,i);r.locals&&(t.exports=r.locals)},T25u:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".color-label.purple[data-v-e1e50194]{color:#9d66fe;background:rgba(157,102,254,.1)}.color-label.yellow[data-v-e1e50194]{color:#ffbd2d;background:rgba(255,189,45,.1)}.color-label.green[data-v-e1e50194]{color:#00bc7e;background:rgba(0,188,126,.1)}.color-label.red[data-v-e1e50194]{color:#fd397a;background:rgba(253,57,122,.1)}",""])},THmQ:function(t,e,a){"use strict";var r={name:"SectionTitle"},i=(a("NEz6"),a("KHd+")),o=Object(i.a)(r,(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},U4PJ:function(t,e,a){"use strict";a("1xrH")},WriA:function(t,e,a){var r=a("io+q");"string"==typeof r&&(r=[[t.i,r,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(r,i);r.locals&&(t.exports=r.locals)},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}",""])},dcrs:function(t,e,a){"use strict";a("WriA")},"io+q":function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".user-thumbnail[data-v-58047f95]{display:flex;align-items:center;cursor:pointer;padding-bottom:10px;padding-top:15px}.user-thumbnail .avatar[data-v-58047f95]{margin-right:20px;position:relative}.user-thumbnail .avatar img[data-v-58047f95]{line-height:0;width:62px;height:62px;border-radius:12px;z-index:1;position:relative}.user-thumbnail .avatar img.blurred[data-v-58047f95]{position:absolute;left:0;top:2px;z-index:0;filter:blur(8px);opacity:.5;top:0}.user-thumbnail .info .name[data-v-58047f95]{display:block;font-size:1.0625em;line-height:1}.user-thumbnail .info .email[data-v-58047f95]{color:rgba(27,37,57,.7);font-size:.875em}.dark .user-thumbnail .info .email[data-v-58047f95]{color:#7d858c}",""])},kPoH:function(t,e,a){"use strict";var r={name:"ColorLabel",props:["color"]},i=(a("U4PJ"),a("KHd+")),o=Object(i.a)(r,(function(){var t=this.$createElement;return(this._self._c||t)("b",{staticClass:"color-label capitalize inline-block text-xs font-bold rounded-lg py-1 px-2",class:this.color},[this._t("default")],2)}),[],!1,null,"e1e50194",null);e.a=o.exports},lF1h:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".page-header[data-v-7ea8553f]{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-7ea8553f]{font-size:1.125em;font-weight:700;color:#1b2539}.page-header .go-back[data-v-7ea8553f]{margin-right:10px;cursor:pointer}.page-header .go-back svg[data-v-7ea8553f]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:960px){.page-header .title[data-v-7ea8553f]{font-size:1.125em}}@media only screen and (max-width:690px){.page-header[data-v-7ea8553f]{display:none}}.dark .page-header[data-v-7ea8553f]{background:#151515}.dark .page-header .title[data-v-7ea8553f]{color:#bec6cf}.dark .page-header .icon path[data-v-7ea8553f]{fill:#00bc7e}",""])},"lpU+":function(t,e,a){"use strict";a("Qak4")},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}",""])},sksd:function(t,e,a){"use strict";a("LvO6")}}]); |