mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
1 line
8.2 KiB
JavaScript
Vendored
1 line
8.2 KiB
JavaScript
Vendored
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6372],{6959:(t,e,r)=>{r.d(e,{Z:()=>n});var a=r(3645),o=r.n(a)()((function(t){return t[1]}));o.push([t.id,".mobile-header[data-v-17905508]{background:#fff;display:none;padding:10px 0;position:sticky;text-align:center;top:0;z-index:6}.mobile-header>div[data-v-17905508]{align-self:center;flex-grow:1;white-space:nowrap}.mobile-header .go-back[data-v-17905508]{text-align:left}.mobile-header .location-name[data-v-17905508]{color:#1b2539;display:inline-block;font-size:.9375em;font-weight:700;line-height:1;max-width:220px;overflow:hidden;text-align:center;text-overflow:ellipsis;vertical-align:middle;width:100%}.mobile-header .mobile-menu[data-v-17905508]{text-align:right}.mobile-header .icon[data-v-17905508]{margin-top:-4px;vertical-align:middle}@media only screen and (max-width:690px){.mobile-header[data-v-17905508]{display:flex;margin-bottom:15px}}.dark .mobile-header[data-v-17905508]{background:#151515}.dark .mobile-header .location-name[data-v-17905508]{color:#bec6cf}",""]);const n=o},8520:(t,e,r)=>{r.d(e,{Z:()=>n});var a=r(3645),o=r.n(a)()((function(t){return t[1]}));o.push([t.id,".color-label.purple[data-v-3ff27c4c]{background:rgba(157,102,254,.1);color:#9d66fe}.color-label.yellow[data-v-3ff27c4c]{background:rgba(255,189,45,.1);color:#ffbd2d}.color-label.green[data-v-3ff27c4c]{background:rgba(0,188,126,.1);color:#00bc7e}.color-label.red[data-v-3ff27c4c]{background:rgba(253,57,122,.1);color:#fd397a}",""]);const n=o},1727:(t,e,r)=>{r.d(e,{Z:()=>n});var a=r(3645),o=r.n(a)()((function(t){return t[1]}));o.push([t.id,".text-label[data-v-2f8a2068]{color:#afafaf;display:block;font-size:.75em;font-weight:700;margin-bottom:20px}.dark .text-label[data-v-2f8a2068]{color:#00bc7e}",""]);const n=o},1589:(t,e,r)=>{r.d(e,{Z:()=>c});r(5399);var a=r(9101);const o={name:"MobileHeader",props:["title"],components:{ChevronLeftIcon:a.wyc,MenuIcon:a.Oqj},methods:{goBack:function(){this.$router.back()}}};var n=r(3379),i=r.n(n),s=r(6959),l={insert:"head",singleton:!1};i()(s.Z,l);s.Z.locals;const c=(0,r(1900).Z)(o,(function(){var t=this,e=t._self._c;return e("header",{staticClass:"mobile-header"},[e("div",{staticClass:"go-back",on:{click:t.goBack}},[e("chevron-left-icon",{staticClass:"icon",attrs:{size:"17"}})],1),t._v(" "),e("div",{staticClass:"location-name"},[t._v(t._s(t.title))]),t._v(" "),e("div",{staticClass:"mobile-menu",on:{click:function(e){return t.$showMobileMenu("user-navigation")}}},[e("menu-icon",{staticClass:"icon",attrs:{size:"17"}})],1)])}),[],!1,null,"17905508",null).exports},7009:(t,e,r)=>{r.d(e,{Z:()=>l});const a={name:"ColorLabel",props:["color"]};var o=r(3379),n=r.n(o),i=r(8520),s={insert:"head",singleton:!1};n()(i.Z,s);i.Z.locals;const l=(0,r(1900).Z)(a,(function(){var t=this;return(0,t._self._c)("b",{staticClass:"color-label inline-block rounded-lg py-1 px-2 text-xs font-bold capitalize",class:t.color},[t._t("default")],2)}),[],!1,null,"3ff27c4c",null).exports},5607:(t,e,r)=>{r.d(e,{Z:()=>l});const a={name:"SectionTitle"};var o=r(3379),n=r.n(o),i=r(1727),s={insert:"head",singleton:!1};n()(i.Z,s);i.Z.locals;const l=(0,r(1900).Z)(a,(function(){return(0,this._self._c)("b",{staticClass:"text-label"},[this._t("default")],2)}),[],!1,null,"2f8a2068",null).exports},3037:(t,e,r)=>{r.d(e,{Z:()=>o});const a={name:"CardNavigation",props:["pages"],computed:{routeName:function(){return this.$route.name}},data:function(){return{fixedNav:!1}},created:function(){var t=this;window.addEventListener("scroll",(function(){var e=document.getElementById("card-navigation");t.fixedNav=e.getBoundingClientRect().top<0}))}};const o=(0,r(1900).Z)(a,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-7",staticStyle:{height:"62px"},attrs:{id:"card-navigation"}},[e("div",{class:{"fixed top-0 left-0 right-0 z-10 rounded-none bg-white bg-opacity-50 px-6 backdrop-blur-lg backdrop-filter dark:bg-dark-foreground":t.fixedNav}},[e("div",{staticClass:"overflow-x-auto whitespace-nowrap"},t._l(t.pages,(function(r,a){return e("router-link",{key:a,staticClass:"border-bottom-theme inline-block border-b-2 border-transparent px-4 py-5 text-sm font-bold",class:{"text-theme":t.routeName===r.route,"text-gray-600 dark:text-gray-100":t.routeName!==r.route},attrs:{to:{name:r.route},replace:""}},[t._v("\n "+t._s(r.title)+"\n ")])})),1)])])}),[],!1,null,null,null).exports},6637:(t,e,r)=>{r.r(e),r.d(e,{default:()=>h});var a=r(3037),o=r(9101),n=r(1589),i=r(5607),s=r(7009),l=r(3592),c=r(5399),d=r(629),u=r(9669),f=r.n(u);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,a)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){m(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function m(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==b(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var a=r.call(t,e||"default");if("object"!==b(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===b(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}const g={name:"Profile",components:{MemberAvatar:r(4509).Z,CardNavigation:a.Z,CreditCardIcon:o.ciH,HardDriveIcon:o.zvn,SectionTitle:i.Z,FileTextIcon:o.zPP,MobileHeader:n.Z,ColorLabel:s.Z,Trash2Icon:o.Bf1,UserIcon:o.tBG,LockIcon:o.mBM,Spinner:l.Z},watch:{"$route.fullPath":function(){this.fetchUser()}},computed:v(v({},(0,d.Se)(["config"])),{},{admin:function(){return this.$store.getters.user?this.$store.getters.user:void 0},pages:function(){return"none"===this.config.subscriptionType?[{title:this.$t("detail"),route:"UserDetail"},{title:this.$t("storage"),route:"UserStorage"},{title:this.$t("password"),route:"UserPassword"},{title:this.$t("delete_account"),route:"UserDelete"}]:[{title:this.$t("detail"),route:"UserDetail"},{title:this.$t("storage"),route:"UserStorage"},{title:this.$t("billing"),route:"UserSubscription"},{title:this.$t("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().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(),c.U.$on("reload:user",(function(){return t.fetchUser()}))}};const h=(0,r(1900).Z)(g,(function(){var t=this,e=t._self._c;return e("div",[t.isLoading?t._e():e("div",{attrs:{id:"page-content"}},[e("div",{staticClass:"card sticky top-0 z-10 pt-4 shadow-card",staticStyle:{"padding-bottom":"0"}},[e("div",{staticClass:"mb-3 flex items-center"},[e("MemberAvatar",{staticClass:"shadow-lg rounded-xl",attrs:{size:64,"is-border":!1,member:t.user}}),t._v(" "),e("div",{staticClass:"ml-4"},[e("b",{staticClass:"text-md block font-bold sm:text-lg"},[t._v("\n "+t._s(t.user.data.relationships.settings.data.attributes.first_name)+"\n "+t._s(t.user.data.relationships.settings.data.attributes.last_name)+"\n\n "),e("ColorLabel",{attrs:{color:"purple"}},[t._v("\n "+t._s(t.$t(t.user.data.attributes.role))+"\n ")])],1),t._v(" "),e("small",{staticClass:"block text-xs text-gray-600 sm:text-sm"},[t._v("\n "+t._s(t.user.data.attributes.email)+"\n ")])])],1),t._v(" "),e("CardNavigation",{staticClass:"-mx-1",attrs:{pages:t.pages}})],1),t._v(" "),e("router-view",{attrs:{user:t.user},on:{"reload-user":t.fetchUser}})],1),t._v(" "),t.isLoading?e("div",{attrs:{id:"loader"}},[e("Spinner")],1):t._e()])}),[],!1,null,null,null).exports}}]); |