You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nextcloud/dist/core-profile.js

3 lines
20 KiB
JavaScript

/*! For license information please see core-profile.js.LICENSE.txt */
(()=>{"use strict";var t,e,n,i={26358:(t,e,n)=>{var i=n(77958),a=n(20144),r=n(64024),o=n(69183),s=n(43554),A=n(31352),l=n(79753),c=n(61057),d=n(87001),p=n(81040),u=n(18519),C=n(54572),_=n(6134),f=n(52506);const h={name:"AccountIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var g=n(51900);const m=(0,g.Z)(h,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon account-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports,v={name:"MapMarkerIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},b=(0,g.Z)(v,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon map-marker-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null).exports;var x=n(77531),y=n(25108);const k=(0,a.aZ)({name:"Profile",components:{AccountIcon:m,MapMarkerIcon:b,NcActionLink:d.Z,NcActions:c.Z,NcAppContent:p.Z,NcAvatar:u.Z,NcButton:C.Z,NcContent:_.Z,NcEmptyContent:f.Z,PencilIcon:x.Z},data:()=>({...(0,s.j)("core","profileParameters",{userId:null,displayname:null,address:null,organisation:null,role:null,headline:null,biography:null,actions:[],isUserAvatarVisible:!1}),status:(0,s.j)("core","status",{}),sections:window.OCA.Core.ProfileSections.getSections()}),computed:{isCurrentUser(){return(0,i.ts)()?.uid===this.userId},allActions(){return this.actions},primaryAction(){return this.allActions.length?this.allActions[0]:null},otherActions(){return y.warn(this.allActions),this.allActions.length>1?this.allActions.slice(1):[]},settingsUrl:()=>(0,l.generateUrl)("/settings/user"),emptyProfileMessage(){return this.isCurrentUser?(0,A.Iu)("core","You have not added any info yet"):(0,A.Iu)("core","{user} has not added any info yet",{user:this.displayname||this.userId})}},mounted(){document.title=`${this.displayname||this.userId} - ${document.title}`,(0,o.Ld)("user_status:status.updated",this.handleStatusUpdate)},beforeDestroy(){(0,o.r1)("user_status:status.updated",this.handleStatusUpdate)},methods:{t:A.Iu,handleStatusUpdate(t){this.isCurrentUser&&t.userId===this.userId&&(this.status=t)},openStatusModal(){const t=document.querySelector(".user-status-menu-item");this.isCurrentUser&&(t?t.click():(0,r.x2)((0,A.Iu)("core","Error opening the user status modal, try hard refreshing the page")))}}});var w=n(93379),B=n.n(w),S=n(7795),E=n.n(S),I=n(90569),j=n.n(I),U=n(3565),D=n.n(U),O=n(19216),P=n.n(O),N=n(44589),M=n.n(N),Z=n(1491),z={};z.styleTagTransform=M(),z.setAttributes=D(),z.insert=j().bind(null,"head"),z.domAPI=E(),z.insertStyleElement=P(),B()(Z.Z,z),Z.Z&&Z.Z.locals&&Z.Z.locals;const $=(0,g.Z)(k,(function(){var t=this,e=t._self._c;return t._self._setupProxy,e("NcContent",{attrs:{"app-name":"profile"}},[e("NcAppContent",[e("div",{staticClass:"profile__header"},[e("div",{staticClass:"profile__header__container"},[e("div",{staticClass:"profile__header__container__placeholder"}),t._v(" "),e("div",{staticClass:"profile__header__container__displayname"},[e("h2",[t._v(t._s(t.displayname||t.userId))]),t._v(" "),t.isCurrentUser?e("NcButton",{attrs:{
//# sourceMappingURL=core-profile.js.map?v=a7a2627769abd0e11cb4