server/dist/core-profile.js

3 lines
21 KiB
JavaScript
Raw Permalink Normal View History

/*! For license information please see core-profile.js.license?v=4f4df043f1387eac52e3 */
(()=>{"use strict";var t,e,n,i={68933:(t,e,n)=>{var i=n(92457),a=n(85471),r=n(85168),o=n(61338),s=n(38613),A=n(53334),l=n(63814),d=n(24764),c=n(10700),p=n(18195),u=n(41944),C=n(9518),_=n(22378),h=n(10833);const f={name:"AccountIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var g=n(14486);const m=(0,g.A)(f,(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon account-icon",attrs:{"aria-hidden":!t.title||null,"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}}},x=(0,g.A)(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||null,"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 b=n(93919),y=n(96763);const k=(0,a.pM)({name:"Profile",components:{AccountIcon:m,MapMarkerIcon:x,NcActionLink:c.A,NcActions:d.A,NcAppContent:p.A,NcAvatar:u.A,NcButton:C.A,NcContent:_.A,NcEmptyContent:h.A,PencilIcon:b.A},data:()=>({...(0,s.C)("core","profileParameters",{userId:null,displayname:null,address:null,organisation:null,role:null,headline:null,biography:null,actions:[],isUserAvatarVisible:!1}),status:(0,s.C)("core","status",{}),sections:window.OCA.Core.ProfileSections.getSections()}),computed:{isCurrentUser(){var t;return(null===(t=(0,i.HW)())||void 0===t?void 0:t.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.Jv)("/settings/user"),emptyProfileMessage(){return this.isCurrentUser?(0,A.Tl)("core","You have not added any info yet"):(0,A.Tl)("core","{user} has not added any info yet",{user:this.displayname||this.userId})}},mounted(){document.title="".concat(this.displayname||this.userId," - ").concat(document.title),(0,o.B1)("user_status:status.updated",this.handleStatusUpdate)},beforeDestroy(){(0,o.al)("user_status:status.updated",this.handleStatusUpdate)},methods:{t:A.Tl,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.Qg)((0,A.Tl)("core","Error opening the user status modal, try hard refreshing the page")))}}});var w=n(85072),B=n.n(w),S=n(97825),E=n.n(S),D=n(77659),I=n.n(D),O=n(55056),U=n.n(O),j=n(10540),N=n.n(j),P=n(41113),M=n.n(P),z=n(86098),T={};T.styleTagTransform=M(),T.setAttributes=U(),T.insert=I().bind(null,"head"),T.domAPI=E(),T.insertStyleElement=N(),B()(z.A,T),z.A&&z.A.locals&&z.A.locals;const $=(0,g.A)(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||
//# sourceMappingURL=core-profile.js.map?v=4f4df043f1387eac52e3