settings-vue-settings-personal-info.js 123 KB

123
  1. /*! For license information please see settings-vue-settings-personal-info.js.LICENSE.txt */
  2. !function(){var n,e={98522:function(n,e,r){"use strict";var a=r(20144),i=r(22200),o=r(16453),s=r(9944),l=(r(36144),r(4820)),c=r(79753),u=r(26932),d=r(78595),p=r(75925),A=r.n(p),f=r(10861),m=r.n(f),v=r(17652),g=(r(74063),r(75843)),h=r(74092),b=r(33691),y=r(40502),C=r(12945),x=r.n(C),E=r(45400),w={name:"FederationControlAction",components:{NcActionButton:r.n(E)()},props:{activeScope:{type:String,required:!0},displayName:{type:String,required:!0},handleScopeChange:{type:Function,default:function(){}},iconClass:{type:String,required:!0},isSupportedScope:{type:Boolean,required:!0},name:{type:String,required:!0},tooltipDisabled:{type:String,default:""},tooltip:{type:String,required:!0}},methods:{updateScope:function(){this.handleScopeChange(this.name)}}},_=r(93379),O=r.n(_),P=r(7795),j=r.n(P),I=r(90569),S=r.n(I),k=r(3565),L=r.n(k),D=r(19216),R=r.n(D),B=r(44589),N=r.n(B),T=r(43058),Z={};Z.styleTagTransform=N(),Z.setAttributes=L(),Z.insert=S().bind(null,"head"),Z.domAPI=j(),Z.insertStyleElement=R(),O()(T.Z,Z),T.Z&&T.Z.locals&&T.Z.locals;var M,U,F,z,V=r(51900),$=(0,V.Z)(w,(function(){var n=this,e=n.$createElement;return(n._self._c||e)("NcActionButton",{staticClass:"federation-actions__btn",class:{"federation-actions__btn--active":n.activeScope===n.name},attrs:{"aria-label":n.isSupportedScope?n.tooltip:n.tooltipDisabled,"close-after-click":!0,disabled:!n.isSupportedScope,icon:n.iconClass,title:n.displayName},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),n.updateScope.apply(null,arguments)}}},[n._v("\n\t"+n._s(n.isSupportedScope?n.tooltip:n.tooltipDisabled)+"\n")])}),[],!1,null,"1249785e",null),H=$.exports;function G(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var q=Object.freeze({ADDRESS:"address",AVATAR:"avatar",BIOGRAPHY:"biography",DISPLAYNAME:"displayname",EMAIL_COLLECTION:"additional_mail",EMAIL:"email",HEADLINE:"headline",NOTIFICATION_EMAIL:"notify_email",FEDIVERSE:"fediverse",ORGANISATION:"organisation",PHONE:"phone",PROFILE_ENABLED:"profile_enabled",ROLE:"role",TWITTER:"twitter",WEBSITE:"website"}),Y=Object.freeze({ADDRESS:(0,s.translate)("settings","Location"),AVATAR:(0,s.translate)("settings","Profile picture"),BIOGRAPHY:(0,s.translate)("settings","About"),DISPLAYNAME:(0,s.translate)("settings","Full name"),EMAIL_COLLECTION:(0,s.translate)("settings","Additional email"),EMAIL:(0,s.translate)("settings","Email"),HEADLINE:(0,s.translate)("settings","Headline"),ORGANISATION:(0,s.translate)("settings","Organisation"),PHONE:(0,s.translate)("settings","Phone number"),PROFILE_ENABLED:(0,s.translate)("settings","Profile"),ROLE:(0,s.translate)("settings","Role"),TWITTER:(0,s.translate)("settings","Twitter"),FEDIVERSE:(0,s.translate)("settings","Fediverse (e.g. Mastodon)"),WEBSITE:(0,s.translate)("settings","Website")}),W=Object.freeze((G(M={},q.ADDRESS,Y.ADDRESS),G(M,q.AVATAR,Y.AVATAR),G(M,q.BIOGRAPHY,Y.BIOGRAPHY),G(M,q.DISPLAYNAME,Y.DISPLAYNAME),G(M,q.EMAIL_COLLECTION,Y.EMAIL_COLLECTION),G(M,q.EMAIL,Y.EMAIL),G(M,q.HEADLINE,Y.HEADLINE),G(M,q.ORGANISATION,Y.ORGANISATION),G(M,q.PHONE,Y.PHONE),G(M,q.PROFILE_ENABLED,Y.PROFILE_ENABLED),G(M,q.ROLE,Y.ROLE),G(M,q.TWITTER,Y.TWITTER),G(M,q.FEDIVERSE,Y.FEDIVERSE),G(M,q.WEBSITE,Y.WEBSITE),M)),K=Object.freeze({PROFILE_VISIBILITY:(0,s.translate)("settings","Profile visibility")}),Q=Object.freeze((G(U={},Y.ADDRESS,q.ADDRESS),G(U,Y.AVATAR,q.AVATAR),G(U,Y.BIOGRAPHY,q.BIOGRAPHY),G(U,Y.DISPLAYNAME,q.DISPLAYNAME),G(U,Y.EMAIL_COLLECTION,q.EMAIL_COLLECTION),G(U,Y.EMAIL,q.EMAIL),G(U,Y.HEADLINE,q.HEADLINE),G(U,Y.ORGANISATION,q.ORGANISATION),G(U,Y.PHONE,q.PHONE),G(U,Y.PROFILE_ENABLED,q.PROFILE_ENABLED),G(U,Y.ROLE,q.ROLE),G(U,Y.TWITTER,q.TWITTER),G(U,Y.FEDIVERSE,q.FEDIVERSE),G(U,Y.WEBSITE,q.WEBSITE),U)),J=Object.freeze({LANGUAGE:"language",LOCALE:"locale"}),X=Object.freeze({LANGUAGE:(0,s.translate)("settings","Language"),LOCALE:(0,s.translate)("settings","Locale")}),nn=Object.freeze({PRIVATE:"v2-private",LOCAL:"v2-local",FEDERATED:"v2-federated",PUBLISHED:"v2-published"}),en=Object.freeze((G(F={},Y.ADDRESS,[nn.LOCAL,nn.PRIVATE]),G(F,Y.AVATAR,[nn.LOCAL,nn.PRIVATE]),G(F,Y.BIOGRAPHY,[nn.LOCAL,nn.PRIVATE]),G(F,Y.DISPLAYNAME,[nn.LOCAL]),G(F,Y.EMAIL_COLLECTION,[nn.LOCAL]),G(F,Y.EMAIL,[nn.LOCAL]),G(F,Y.HEADLINE,[nn.LOCAL,nn.PRIVATE]),G(F,Y.ORGANISATION,[nn.LOCAL,nn.PRIVATE]),G(F,Y.PHONE,[nn.LOCAL,nn.PRIVATE]),G(F,Y.PROFILE_ENABLED,[nn.LOCAL,nn.PRIVATE]),G(F,Y.ROLE,[nn.LOCAL,nn.PRIVATE]),G(F,Y.TWITTER,[nn.LOCAL,nn.PRIVATE]),G(F,Y.FEDIVERSE,[nn.LOCAL,nn.PRIVATE]),G(F,Y.WEBSITE,[nn.LOCAL,nn.PRIVATE]),F)),tn=Object.freeze([Y.BIOGRAPHY,Y.HEADLINE,Y.ORGANISATION,Y.ROLE]),rn="Scope",an=Object.freeze((G(z={},nn.PRIVATE,{name:nn.PRIVATE,displayName:(0,s.translate)("settings","Private"),tooltip:(0,s.translate)("settings","Only visible to people matched via phone number integration through Talk on mobile"),tooltipDisabled:(0,s.translate)("settings","Not available as this property is required for core functionality including file sharing and calendar invitations"),iconClass:"icon-phone"}),G(z,nn.LOCAL,{name:nn.LOCAL,displayName:(0,s.translate)("settings","Local"),tooltip:(0,s.translate)("settings","Only visible to people on this instance and guests"),iconClass:"icon-password"}),G(z,nn.FEDERATED,{name:nn.FEDERATED,displayName:(0,s.translate)("settings","Federated"),tooltip:(0,s.translate)("settings","Only synchronize to trusted servers"),tooltipDisabled:(0,s.translate)("settings","Not available as federation has been disabled for your account, contact your system administrator if you have any questions"),iconClass:"icon-contacts-dark"}),G(z,nn.PUBLISHED,{name:nn.PUBLISHED,displayName:(0,s.translate)("settings","Published"),tooltip:(0,s.translate)("settings","Synchronize to trusted servers and the global and public address book"),tooltipDisabled:(0,s.translate)("settings","Not available as publishing user specific data to the lookup server is not allowed, contact your system administrator if you have any questions"),iconClass:"icon-link"}),z)),on=nn.LOCAL,sn=Object.freeze({NOT_VERIFIED:0,VERIFICATION_IN_PROGRESS:1,VERIFIED:2}),ln=/^(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){255,})(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){65,}@)(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|(?:\x5C[\x00-\x7F]))*\x22))(?:\.(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|(?:\x5C[\x00-\x7F]))*\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-+[a-z0-9]+)*\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)|(?:(?:xn--)[a-z0-9]+))(?:-+[a-z0-9]+)*)|(?:\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))(?:\.(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))){3}))\]))$/i,cn=r(10128);function un(n,e,t,r,a,i,o){try{var s=n[i](o),l=s.value}catch(n){return void t(n)}s.done?e(l):Promise.resolve(l).then(r,a)}function dn(n){return function(){var e=this,t=arguments;return new Promise((function(r,a){var i=n.apply(e,t);function o(n){un(i,r,a,o,s,"next",n)}function s(n){un(i,r,a,o,s,"throw",n)}o(void 0)}))}}r(65509);var pn=function(){var n=dn(regeneratorRuntime.mark((function n(e,t){var r,a,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return"boolean"==typeof t&&(t=t?"1":"0"),r=(0,i.getCurrentUser)().uid,a=(0,c.generateOcsUrl)("cloud/users/{userId}",{userId:r}),n.next=5,(0,cn.confirmPassword)();case 5:return n.next=7,l.default.put(a,{key:e,value:t});case 7:return o=n.sent,n.abrupt("return",o.data);case 9:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}(),An=function(){var n=dn(regeneratorRuntime.mark((function n(e,t){var r,a,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=(0,i.getCurrentUser)().uid,a=(0,c.generateOcsUrl)("cloud/users/{userId}",{userId:r}),n.next=4,(0,cn.confirmPassword)();case 4:return n.next=6,l.default.put(a,{key:"".concat(e).concat(rn),value:t});case 6:return o=n.sent,n.abrupt("return",o.data);case 8:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}(),fn=(0,r(17499).IY)().setApp("settings").detectUser().build();function mn(n,e,t,r,a,i,o){try{var s=n[i](o),l=s.value}catch(n){return void t(n)}s.done?e(l):Promise.resolve(l).then(r,a)}function vn(n){return function(){var e=this,t=arguments;return new Promise((function(r,a){var i=n.apply(e,t);function o(n){mn(i,r,a,o,s,"next",n)}function s(n){mn(i,r,a,o,s,"throw",n)}o(void 0)}))}}var gn=(0,o.loadState)("settings","accountParameters",{}),hn=gn.federationEnabled,bn=gn.lookupServerUploadEnabled,yn={name:"FederationControl",components:{NcActions:x(),FederationControlAction:H},props:{readable:{type:String,required:!0,validator:function(n){return Object.values(Y).includes(n)||Object.values(X).includes(n)||n===K.PROFILE_VISIBILITY}},additional:{type:Boolean,default:!1},additionalValue:{type:String,default:""},disabled:{type:Boolean,default:!1},handleAdditionalScopeChange:{type:Function,default:null},scope:{type:String,required:!0}},data:function(){return{readableLowerCase:this.readable.toLocaleLowerCase(),initialScope:this.scope}},computed:{ariaLabel:function(){return t("settings","Change scope level of {property}, current scope is {scope}",{property:this.readableLowerCase,scope:this.scopeDisplayNameLowerCase})},scopeDisplayNameLowerCase:function(){return an[this.scope].displayName.toLocaleLowerCase()},scopeIcon:function(){return an[this.scope].iconClass},federationScopes:function(){return Object.values(an)},supportedScopes:function(){var n=en[this.readable];return tn.includes(this.readable)||(hn&&n.push(nn.FEDERATED),bn&&n.push(nn.PUBLISHED)),n}},methods:{changeScope:function(n){var e=this;return vn(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.$emit("update:scope",n),e.additional){t.next=6;break}return t.next=4,e.updatePrimaryScope(n);case 4:t.next=8;break;case 6:return t.next=8,e.updateAdditionalScope(n);case 8:case"end":return t.stop()}}),t)})))()},updatePrimaryScope:function(n){var e=this;return vn(regeneratorRuntime.mark((function r(){var a,i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,An(Q[e.readable],n);case 3:o=r.sent,e.handleResponse({scope:n,status:null===(a=o.ocs)||void 0===a||null===(i=a.meta)||void 0===i?void 0:i.status}),r.next=10;break;case 7:r.prev=7,r.t0=r.catch(0),e.handleResponse({errorMessage:t("settings","Unable to update federation scope of the primary {property}",{property:e.readableLowerCase}),error:r.t0});case 10:case"end":return r.stop()}}),r,null,[[0,7]])})))()},updateAdditionalScope:function(n){var e=this;return vn(regeneratorRuntime.mark((function r(){var a,i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,e.handleAdditionalScopeChange(e.additionalValue,n);case 3:o=r.sent,e.handleResponse({scope:n,status:null===(a=o.ocs)||void 0===a||null===(i=a.meta)||void 0===i?void 0:i.status}),r.next=10;break;case 7:r.prev=7,r.t0=r.catch(0),e.handleResponse({errorMessage:t("settings","Unable to update federation scope of additional {property}",{property:e.readableLowerCase}),error:r.t0});case 10:case"end":return r.stop()}}),r,null,[[0,7]])})))()},handleResponse:function(n){var e=n.scope,t=n.status,r=n.errorMessage,a=n.error;"ok"===t?this.initialScope=e:(this.$emit("update:scope",this.initialScope),(0,u.x2)(r),fn.error(r,a))}}},Cn=r(31816),xn={};xn.styleTagTransform=N(),xn.setAttributes=L(),xn.insert=S().bind(null,"head"),xn.domAPI=j(),xn.insertStyleElement=R(),O()(Cn.Z,xn),Cn.Z&&Cn.Z.locals&&Cn.Z.locals;var En=(0,V.Z)(yn,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("NcActions",{class:{"federation-actions":!n.additional,"federation-actions--additional":n.additional},attrs:{"aria-label":n.ariaLabel,"default-icon":n.scopeIcon,disabled:n.disabled}},n._l(n.federationScopes,(function(e){return t("FederationControlAction",{key:e.name,attrs:{"active-scope":n.scope,"display-name":e.displayName,"handle-scope-change":n.changeScope,"icon-class":e.iconClass,"is-supported-scope":n.supportedScopes.includes(e.name),name:e.name,"tooltip-disabled":e.tooltipDisabled,tooltip:e.tooltip}})})),1)}),[],!1,null,"186f12d2",null).exports,wn={name:"HeaderBar",components:{FederationControl:En,NcButton:m(),Plus:y.Z},props:{scope:{type:String,default:null},readable:{type:String,required:!0},inputId:{type:String,default:null},isEditable:{type:Boolean,default:!0},isMultiValueSupported:{type:Boolean,default:!1},isValidSection:{type:Boolean,default:!0}},data:function(){return{localScope:this.scope}},computed:{isProfileProperty:function(){return this.readable===Y.PROFILE_ENABLED},isSettingProperty:function(){return!Object.values(Y).includes(this.readable)&&!Object.values(K).includes(this.readable)}},methods:{onAddAdditional:function(){this.$emit("add-additional")},onScopeChange:function(n){this.$emit("update:scope",n)}}},_n=r(58728),On={};On.styleTagTransform=N(),On.setAttributes=L(),On.insert=S().bind(null,"head"),On.domAPI=j(),On.insertStyleElement=R(),O()(_n.Z,On),_n.Z&&_n.Z.locals&&_n.Z.locals;var Pn=(0,V.Z)(wn,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("h3",{class:{"setting-property":n.isSettingProperty,"profile-property":n.isProfileProperty}},[t("label",{attrs:{for:n.inputId}},[n._v("\n\t\t"+n._s(n.readable)+"\n\t")]),n._v(" "),n.scope?[t("FederationControl",{staticClass:"federation-control",attrs:{readable:n.readable,scope:n.localScope},on:{"update:scope":[function(e){n.localScope=e},n.onScopeChange]}})]:n._e(),n._v(" "),n.isEditable&&n.isMultiValueSupported?[t("NcButton",{attrs:{type:"tertiary",disabled:!n.isValidSection,"aria-label":n.t("settings","Add additional email")},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),n.onAddAdditional.apply(null,arguments)}},scopedSlots:n._u([{key:"icon",fn:function(){return[t("Plus",{attrs:{size:20}})]},proxy:!0}],null,!1,32235154)},[n._v("\n\t\t\t"+n._s(n.t("settings","Add"))+"\n\t\t")])]:n._e()],2)}),[],!1,null,"8094b2e6",null),jn=Pn.exports;function In(n,e,t,r,a,i,o){try{var s=n[i](o),l=s.value}catch(n){return void t(n)}s.done?e(l):Promise.resolve(l).then(r,a)}function Sn(n){return function(){var e=this,t=arguments;return new Promise((function(r,a){var i=n.apply(e,t);function o(n){In(i,r,a,o,s,"next",n)}function s(n){In(i,r,a,o,s,"throw",n)}o(void 0)}))}}function kn(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Ln(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?kn(Object(t),!0).forEach((function(e){Dn(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):kn(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function Dn(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Rn=(0,o.loadState)("settings","personalInfoParameters",{}).avatar,Bn=(0,o.loadState)("settings","accountParameters",{}).avatarChangeSupported,Nn=["image/png","image/jpeg"],Tn=(0,u.fn)(t("settings","Choose your profile picture")).setMultiSelect(!1).setMimeTypeFilter(Nn).setModal(!0).setType(1).allowDirectories(!1).build(),Zn={name:"AvatarSection",components:{Delete:b.Z,Folder:h.default,HeaderBar:jn,NcAvatar:A(),NcButton:m(),Upload:g.Z,VueCropper:v.Z},data:function(){return{avatar:Ln(Ln({},Rn),{},{readable:W[Rn.name]}),avatarChangeSupported:Bn,showCropper:!1,loading:!1,userId:(0,i.getCurrentUser)().uid,displayName:(0,i.getCurrentUser)().displayName,version:oc_userconfig.avatar.version,isGenerated:oc_userconfig.avatar.generated,validMimeTypes:Nn,cropperOptions:{aspectRatio:1,viewMode:1,guides:!1,center:!1,highlight:!1,autoCropArea:1,minContainerWidth:300,minContainerHeight:300}}},created:function(){(0,d.Ld)("settings:display-name:updated",this.handleDisplayNameUpdate)},beforeDestroy:function(){(0,d.r1)("settings:display-name:updated",this.handleDisplayNameUpdate)},computed:{inputId:function(){return"account-property-".concat(this.avatar.name)}},methods:{activateLocalFilePicker:function(){this.$refs.input.value=null,this.$refs.input.click()},onChange:function(n){var e=this;this.loading=!0;var r=n.target.files[0];if(!this.validMimeTypes.includes(r.type))return(0,u.x2)(t("settings","Please select a valid png or jpg file")),void this.cancel();var a=new FileReader;a.onload=function(n){e.$refs.cropper.replace(n.target.result),e.showCropper=!0},a.readAsDataURL(r)},openFilePicker:function(){var n=this;return Sn(regeneratorRuntime.mark((function e(){var r,a,i,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Tn.pick();case 2:return r=e.sent,n.loading=!0,e.prev=4,e.next=7,l.default.post((0,c.generateUrl)("/avatar"),{path:r});case 7:a=e.sent,"success"===(i=a.data).status?n.handleAvatarUpdate(!1):"notsquare"===i.data?(o=(0,c.generateUrl)("/avatar/tmp")+"?requesttoken="+encodeURIComponent(OC.requestToken)+"#"+Math.floor(1e3*Math.random()),n.$refs.cropper.replace(o),n.showCropper=!0):((0,u.x2)(i.data.message),n.cancel()),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),(0,u.x2)(t("settings","Error setting profile picture")),n.cancel();case 16:case"end":return e.stop()}}),e,null,[[4,12]])})))()},saveAvatar:function(){var n=this;this.showCropper=!1,this.loading=!0,this.$refs.cropper.getCroppedCanvas().toBlob(function(){var e=Sn(regeneratorRuntime.mark((function e(r){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==r){e.next=4;break}return(0,u.x2)(t("settings","Error cropping profile picture")),n.cancel(),e.abrupt("return");case 4:return(a=new FormData).append("files[]",r),e.prev=6,e.next=9,l.default.post((0,c.generateUrl)("/avatar"),a);case 9:n.handleAvatarUpdate(!1),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(6),(0,u.x2)(t("settings","Error saving profile picture")),n.handleAvatarUpdate(n.isGenerated);case 16:case"end":return e.stop()}}),e,null,[[6,12]])})));return function(n){return e.apply(this,arguments)}}())},removeAvatar:function(){var n=this;return Sn(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.loading=!0,e.prev=1,e.next=4,l.default.delete((0,c.generateUrl)("/avatar"));case 4:n.handleAvatarUpdate(!0),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(1),(0,u.x2)(t("settings","Error removing profile picture")),n.handleAvatarUpdate(n.isGenerated);case 11:case"end":return e.stop()}}),e,null,[[1,7]])})))()},cancel:function(){this.showCropper=!1,this.loading=!1},handleAvatarUpdate:function(n){this.version=oc_userconfig.avatar.version=Date.now(),this.isGenerated=oc_userconfig.avatar.generated=n,this.loading=!1,(0,d.j8)("settings:avatar:updated",oc_userconfig.avatar.version)},handleDisplayNameUpdate:function(){this.version=oc_userconfig.avatar.version}}},Mn=Zn,Un=r(38087),Fn={};Fn.styleTagTransform=N(),Fn.setAttributes=L(),Fn.insert=S().bind(null,"head"),Fn.domAPI=j(),Fn.insertStyleElement=R(),O()(Un.Z,Fn),Un.Z&&Un.Z.locals&&Un.Z.locals;var zn=(0,V.Z)(Mn,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("section",{attrs:{id:"vue-avatar-section"}},[t("HeaderBar",{attrs:{"input-id":n.avatarChangeSupported?n.inputId:null,readable:n.avatar.readable,scope:n.avatar.scope},on:{"update:scope":function(e){return n.$set(n.avatar,"scope",e)}}}),n._v(" "),n.showCropper?n._e():t("div",{staticClass:"avatar__container"},[t("div",{staticClass:"avatar__preview"},[n.loading?t("div",{staticClass:"icon-loading"}):t("NcAvatar",{key:n.version,attrs:{user:n.userId,"aria-label":n.t("settings","Your profile picture"),"disabled-menu":!0,"disabled-tooltip":!0,"show-user-status":!1,size:180}})],1),n._v(" "),n.avatarChangeSupported?[t("div",{staticClass:"avatar__buttons"},[t("NcButton",{attrs:{"aria-label":n.t("settings","Upload profile picture")},on:{click:n.activateLocalFilePicker},scopedSlots:n._u([{key:"icon",fn:function(){return[t("Upload",{attrs:{size:20}})]},proxy:!0}],null,!1,1329850251)}),n._v(" "),t("NcButton",{attrs:{"aria-label":n.t("settings","Choose profile picture from files")},on:{click:n.openFilePicker},scopedSlots:n._u([{key:"icon",fn:function(){return[t("Folder",{attrs:{size:20}})]},proxy:!0}],null,!1,4270628382)}),n._v(" "),n.isGenerated?n._e():t("NcButton",{attrs:{"aria-label":n.t("settings","Remove profile picture")},on:{click:n.removeAvatar},scopedSlots:n._u([{key:"icon",fn:function(){return[t("Delete",{attrs:{size:20}})]},proxy:!0}],null,!1,2705356561)})],1),n._v(" "),t("span",[n._v(n._s(n.t("settings","png or jpg, max. 20 MB")))]),n._v(" "),t("input",{ref:"input",attrs:{id:n.inputId,type:"file",accept:n.validMimeTypes.join(",")},on:{change:n.onChange}})]:t("span",[n._v("\n\t\t\t"+n._s(n.t("settings","Picture provided by original account"))+"\n\t\t")])],2),n._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:n.showCropper,expression:"showCropper"}],staticClass:"avatar__container"},[t("VueCropper",n._b({ref:"cropper",staticClass:"avatar__cropper"},"VueCropper",n.cropperOptions,!1)),n._v(" "),t("div",{staticClass:"avatar__cropper-buttons"},[t("NcButton",{on:{click:n.cancel}},[n._v("\n\t\t\t\t"+n._s(n.t("settings","Cancel"))+"\n\t\t\t")]),n._v(" "),t("NcButton",{attrs:{type:"primary"},on:{click:n.saveAvatar}},[n._v("\n\t\t\t\t"+n._s(n.t("settings","Set as profile picture"))+"\n\t\t\t")])],1),n._v(" "),t("span",[n._v(n._s(n.t("settings","Please note that it can take up to 24 hours for your profile picture to be updated everywhere.")))])],1)],1)}),[],!1,null,"53d0771f",null).exports,Vn=r(48959),$n=r.n(Vn),Hn=r(1203),Gn=r(8599),qn=(0,o.loadState)("settings","personalInfoParameters",{}),Yn=qn.groups,Wn=qn.quota,Kn=qn.totalSpace,Qn=qn.usage,Jn=qn.usageRelative,Xn={name:"DetailsSection",components:{Account:Hn.Z,CircleSlice:Gn.Z,HeaderBar:jn,NcProgressBar:$n()},computed:{quotaText:function(){return-3===Wn?t("settings","You are using <strong>{usage}</strong>",{usage:Qn}):t("settings","You are using <strong>{usage}</strong> of <strong>{totalSpace}</strong> (<strong>{usageRelative}%</strong>)",{usage:Qn,totalSpace:Kn,usageRelative:Jn})}},data:function(){return{groups:Yn,usageRelative:Jn}}},ne=r(75849),ee={};ee.styleTagTransform=N(),ee.setAttributes=L(),ee.insert=S().bind(null,"head"),ee.domAPI=j(),ee.insertStyleElement=R(),O()(ne.Z,ee),ne.Z&&ne.Z.locals&&ne.Z.locals;var te=(0,V.Z)(Xn,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("section",[t("HeaderBar",{attrs:{readable:n.t("settings","Details")}}),n._v(" "),t("div",{staticClass:"details"},[t("div",{staticClass:"details__groups"},[t("Account",{attrs:{size:20}}),n._v(" "),t("div",{staticClass:"details__groups-info"},[t("p",[n._v(n._s(n.t("settings","You are a member of the following groups:")))]),n._v(" "),t("p",{staticClass:"details__groups-list"},[n._v(n._s(n.groups.join(", ")))])])],1),n._v(" "),t("div",{staticClass:"details__quota"},[t("CircleSlice",{attrs:{size:20}}),n._v(" "),t("div",{staticClass:"details__quota-info"},[t("p",{staticClass:"details__quota-text",domProps:{innerHTML:n._s(n.quotaText)}}),n._v(" "),t("NcProgressBar",{attrs:{size:"medium",value:n.usageRelative,error:n.usageRelative>80}})],1)],1)])],1)}),[],!1,null,"546e7ece",null).exports,re=r(20296),ae=r.n(re),ie=r(1252),oe=r(89897),se=r(14625);function le(n,e,t,r,a,i,o){try{var s=n[i](o),l=s.value}catch(n){return void t(n)}s.done?e(l):Promise.resolve(l).then(r,a)}function ce(n){return function(){var e=this,t=arguments;return new Promise((function(r,a){var i=n.apply(e,t);function o(n){le(i,r,a,o,s,"next",n)}function s(n){le(i,r,a,o,s,"throw",n)}o(void 0)}))}}var ue={name:"AccountPropertySection",components:{AlertCircle:ie.default,AlertOctagon:oe.Z,Check:se.default,HeaderBar:jn},props:{name:{type:String,required:!0},value:{type:String,required:!0},scope:{type:String,required:!0},readable:{type:String,required:!0},placeholder:{type:String,required:!0},type:{type:String,default:"text"},isEditable:{type:Boolean,default:!0},multiLine:{type:Boolean,default:!1},onValidate:{type:Function,default:null},onSave:{type:Function,default:null}},data:function(){return{initialValue:this.value,helperText:null,showCheckmarkIcon:!1,showErrorIcon:!1}},computed:{inputId:function(){return"account-property-".concat(this.name)}},methods:{onPropertyChange:function(n){this.$emit("update:value",n.target.value),this.debouncePropertyChange(n.target.value.trim())},debouncePropertyChange:ae()(function(){var n=ce(regeneratorRuntime.mark((function n(e){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.helperText=null,!this.$refs.input||!this.$refs.input.validationMessage){n.next=4;break}return this.helperText=this.$refs.input.validationMessage,n.abrupt("return");case 4:if(!this.onValidate||this.onValidate(e)){n.next=6;break}return n.abrupt("return");case 6:return n.next=8,this.updateProperty(e);case 8:case"end":return n.stop()}}),n,this)})));return function(e){return n.apply(this,arguments)}}(),500),updateProperty:function(n){var e=this;return ce(regeneratorRuntime.mark((function r(){var a,i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,pn(e.name,n);case 3:o=r.sent,e.handleResponse({value:n,status:null===(a=o.ocs)||void 0===a||null===(i=a.meta)||void 0===i?void 0:i.status}),r.next=10;break;case 7:r.prev=7,r.t0=r.catch(0),e.handleResponse({errorMessage:t("settings","Unable to update {property}",{property:e.readable.toLocaleLowerCase()}),error:r.t0});case 10:case"end":return r.stop()}}),r,null,[[0,7]])})))()},handleResponse:function(n){var e=this,t=n.value,r=n.status,a=n.errorMessage,i=n.error;"ok"===r?(this.initialValue=t,this.onSave&&this.onSave(t),this.showCheckmarkIcon=!0,setTimeout((function(){e.showCheckmarkIcon=!1}),2e3)):(this.$emit("update:value",this.initialValue),(0,u.x2)(a),fn.error(a,i),this.showErrorIcon=!0,setTimeout((function(){e.showErrorIcon=!1}),2e3))}}},de=ue,pe=r(11724),Ae={};Ae.styleTagTransform=N(),Ae.setAttributes=L(),Ae.insert=S().bind(null,"head"),Ae.domAPI=j(),Ae.insertStyleElement=R(),O()(pe.Z,Ae),pe.Z&&pe.Z.locals&&pe.Z.locals;var fe=(0,V.Z)(de,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("section",[t("HeaderBar",{attrs:{scope:n.scope,readable:n.readable,"input-id":n.inputId,"is-editable":n.isEditable},on:{"update:scope":function(e){n.scope=e},"update:readable":function(e){n.readable=e}}}),n._v(" "),n.isEditable?t("div",{staticClass:"property"},[n.multiLine?t("textarea",{attrs:{id:n.inputId,placeholder:n.placeholder,rows:"8",autocapitalize:"none",autocomplete:"off",autocorrect:"off"},domProps:{value:n.value},on:{input:n.onPropertyChange}}):t("input",{ref:"input",attrs:{id:n.inputId,placeholder:n.placeholder,type:n.type,"aria-describedby":n.helperText?n.name+"-helper-text":"",autocapitalize:"none",autocomplete:"on",autocorrect:"off"},domProps:{value:n.value},on:{input:n.onPropertyChange}}),n._v(" "),t("div",{staticClass:"property__actions-container"},[t("transition",{attrs:{name:"fade"}},[n.showCheckmarkIcon?t("Check",{attrs:{size:20}}):n.showErrorIcon?t("AlertOctagon",{attrs:{size:20}}):n._e()],1)],1)]):t("span",[n._v("\n\t\t"+n._s(n.value||n.t("settings","No {property} set",{property:n.readable.toLocaleLowerCase()}))+"\n\t")]),n._v(" "),n.helperText?t("p",{staticClass:"property__helper-text-message property__helper-text-message--error",attrs:{id:n.name+"-helper-text"}},[t("AlertCircle",{staticClass:"property__helper-text-message__icon",attrs:{size:18}}),n._v("\n\t\t"+n._s(n.helperText)+"\n\t")],1):n._e()],1)}),[],!1,null,"2943fbd4",null).exports;function me(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function ve(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?me(Object(t),!0).forEach((function(e){ge(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):me(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function ge(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var he=(0,o.loadState)("settings","personalInfoParameters",{}).displayName,be=(0,o.loadState)("settings","accountParameters",{}).displayNameChangeSupported,ye={name:"DisplayNameSection",components:{AccountPropertySection:fe},data:function(){return{displayName:ve(ve({},he),{},{readable:W[he.name]}),displayNameChangeSupported:be}},methods:{onValidate:function(n){return""!==n},onSave:function(n){oc_userconfig.avatar.generated&&(oc_userconfig.avatar.version=Date.now()),(0,d.j8)("settings:display-name:updated",n)}}},Ce=(0,V.Z)(ye,(function(){var n=this,e=n.$createElement;return(n._self._c||e)("AccountPropertySection",n._b({attrs:{placeholder:n.t("settings","Your full name"),"is-editable":n.displayNameChangeSupported,"on-validate":n.onValidate,"on-save":n.onSave}},"AccountPropertySection",n.displayName,!1,!0))}),[],!1,null,null,null).exports,xe=r(15961);function Ee(n,e,t,r,a,i,o){try{var s=n[i](o),l=s.value}catch(n){return void t(n)}s.done?e(l):Promise.resolve(l).then(r,a)}function we(n){return function(){var e=this,t=arguments;return new Promise((function(r,a){var i=n.apply(e,t);function o(n){Ee(i,r,a,o,s,"next",n)}function s(n){Ee(i,r,a,o,s,"throw",n)}o(void 0)}))}}var _e=function(){var n=we(regeneratorRuntime.mark((function n(e){var t,r,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=(0,i.getCurrentUser)().uid,r=(0,c.generateOcsUrl)("cloud/users/{userId}",{userId:t}),n.next=4,(0,cn.confirmPassword)();case 4:return n.next=6,l.default.put(r,{key:q.EMAIL,value:e});case 6:return a=n.sent,n.abrupt("return",a.data);case 8:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),Oe=function(){var n=we(regeneratorRuntime.mark((function n(e){var t,r,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=(0,i.getCurrentUser)().uid,r=(0,c.generateOcsUrl)("cloud/users/{userId}",{userId:t}),n.next=4,(0,cn.confirmPassword)();case 4:return n.next=6,l.default.put(r,{key:q.EMAIL_COLLECTION,value:e});case 6:return a=n.sent,n.abrupt("return",a.data);case 8:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),Pe=function(){var n=we(regeneratorRuntime.mark((function n(e){var t,r,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=(0,i.getCurrentUser)().uid,r=(0,c.generateOcsUrl)("cloud/users/{userId}",{userId:t}),n.next=4,(0,cn.confirmPassword)();case 4:return n.next=6,l.default.put(r,{key:q.NOTIFICATION_EMAIL,value:e});case 6:return a=n.sent,n.abrupt("return",a.data);case 8:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),je=function(){var n=we(regeneratorRuntime.mark((function n(e){var t,r,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=(0,i.getCurrentUser)().uid,r=(0,c.generateOcsUrl)("cloud/users/{userId}/{collection}",{userId:t,collection:q.EMAIL_COLLECTION}),n.next=4,(0,cn.confirmPassword)();case 4:return n.next=6,l.default.put(r,{key:e,value:""});case 6:return a=n.sent,n.abrupt("return",a.data);case 8:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),Ie=function(){var n=we(regeneratorRuntime.mark((function n(e,t){var r,a,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=(0,i.getCurrentUser)().uid,a=(0,c.generateOcsUrl)("cloud/users/{userId}/{collection}",{userId:r,collection:q.EMAIL_COLLECTION}),n.next=4,(0,cn.confirmPassword)();case 4:return n.next=6,l.default.put(a,{key:e,value:t});case 6:return o=n.sent,n.abrupt("return",o.data);case 8:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}(),Se=function(){var n=we(regeneratorRuntime.mark((function n(e){var t,r,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t=(0,i.getCurrentUser)().uid,r=(0,c.generateOcsUrl)("cloud/users/{userId}",{userId:t}),n.next=4,(0,cn.confirmPassword)();case 4:return n.next=6,l.default.put(r,{key:"".concat(q.EMAIL).concat(rn),value:e});case 6:return a=n.sent,n.abrupt("return",a.data);case 8:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}(),ke=function(){var n=we(regeneratorRuntime.mark((function n(e,t){var r,a,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=(0,i.getCurrentUser)().uid,a=(0,c.generateOcsUrl)("cloud/users/{userId}/{collectionScope}",{userId:r,collectionScope:"".concat(q.EMAIL_COLLECTION).concat(rn)}),n.next=4,(0,cn.confirmPassword)();case 4:return n.next=6,l.default.put(a,{key:e,value:t});case 6:return o=n.sent,n.abrupt("return",o.data);case 8:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}();function Le(n){return"string"==typeof n&&ln.test(n)&&"\n"!==n.slice(-1)&&n.length<=320&&encodeURIComponent(n).replace(/%../g,"x").length<=320}function De(n,e,t,r,a,i,o){try{var s=n[i](o),l=s.value}catch(n){return void t(n)}s.done?e(l):Promise.resolve(l).then(r,a)}function Re(n){return function(){var e=this,t=arguments;return new Promise((function(r,a){var i=n.apply(e,t);function o(n){De(i,r,a,o,s,"next",n)}function s(n){De(i,r,a,o,s,"throw",n)}o(void 0)}))}}var Be={name:"Email",components:{NcActions:xe.O3,NcActionButton:xe.Js,AlertCircle:ie.default,AlertOctagon:oe.Z,Check:se.default,FederationControl:En},props:{email:{type:String,required:!0},index:{type:Number,default:0},primary:{type:Boolean,default:!1},scope:{type:String,required:!0},activeNotificationEmail:{type:String,default:""},localVerificationState:{type:Number,default:sn.NOT_VERIFIED}},data:function(){return{propertyReadable:Y.EMAIL,initialEmail:this.email,localScope:this.scope,saveAdditionalEmailScope:ke,helperText:null,showCheckmarkIcon:!1,showErrorIcon:!1}},computed:{deleteDisabled:function(){return this.primary?""===this.email||this.initialEmail!==this.email:""!==this.initialEmail&&this.initialEmail!==this.email},deleteEmailLabel:function(){return this.primary?t("settings","Remove primary email"):t("settings","Delete email")},setNotificationMailDisabled:function(){return!this.primary&&this.localVerificationState!==sn.VERIFIED},setNotificationMailLabel:function(){return this.isNotificationEmail?t("settings","Unset as primary email"):this.primary||this.localVerificationState===sn.VERIFIED?t("settings","Set as primary email"):t("settings","This address is not confirmed")},federationDisabled:function(){return!this.initialEmail},inputId:function(){return this.primary?"email":"email-".concat(this.index)},inputPlaceholder:function(){return this.primary?t("settings","Your email address"):t("settings","Additional email address {index}",{index:this.index+1})},isNotificationEmail:function(){return this.email&&this.email===this.activeNotificationEmail||this.primary&&""===this.activeNotificationEmail}},mounted:function(){var n=this;this.primary||""!==this.initialEmail||this.$nextTick((function(){var e;return null===(e=n.$refs.email)||void 0===e?void 0:e.focus()}))},methods:{onEmailChange:function(n){this.$emit("update:email",n.target.value),this.debounceEmailChange(n.target.value.trim())},debounceEmailChange:ae()(function(){var n=Re(regeneratorRuntime.mark((function n(e){var t;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.helperText=null,null===(t=this.$refs.email)||void 0===t||!t.validationMessage){n.next=4;break}return this.helperText=this.$refs.email.validationMessage,n.abrupt("return");case 4:if(!Le(e)&&""!==e){n.next=18;break}if(!this.primary){n.next=10;break}return n.next=8,this.updatePrimaryEmail(e);case 8:case 14:n.next=18;break;case 10:if(!e){n.next=18;break}if(""!==this.initialEmail){n.next=16;break}return n.next=14,this.addAdditionalEmail(e);case 16:return n.next=18,this.updateAdditionalEmail(e);case 18:case"end":return n.stop()}}),n,this)})));return function(e){return n.apply(this,arguments)}}(),500),deleteEmail:function(){var n=this;return Re(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.primary){e.next=6;break}return n.$emit("update:email",""),e.next=4,n.updatePrimaryEmail("");case 4:e.next=8;break;case 6:return e.next=8,n.deleteAdditionalEmail();case 8:case"end":return e.stop()}}),e)})))()},updatePrimaryEmail:function(n){var e=this;return Re(regeneratorRuntime.mark((function r(){var a,i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,_e(n);case 3:o=r.sent,e.handleResponse({email:n,status:null===(a=o.ocs)||void 0===a||null===(i=a.meta)||void 0===i?void 0:i.status}),r.next=10;break;case 7:r.prev=7,r.t0=r.catch(0),""===n?e.handleResponse({errorMessage:t("settings","Unable to delete primary email address"),error:r.t0}):e.handleResponse({errorMessage:t("settings","Unable to update primary email address"),error:r.t0});case 10:case"end":return r.stop()}}),r,null,[[0,7]])})))()},addAdditionalEmail:function(n){var e=this;return Re(regeneratorRuntime.mark((function r(){var a,i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Oe(n);case 3:o=r.sent,e.handleResponse({email:n,status:null===(a=o.ocs)||void 0===a||null===(i=a.meta)||void 0===i?void 0:i.status}),r.next=10;break;case 7:r.prev=7,r.t0=r.catch(0),e.handleResponse({errorMessage:t("settings","Unable to add additional email address"),error:r.t0});case 10:case"end":return r.stop()}}),r,null,[[0,7]])})))()},setNotificationMail:function(){var n=this;return Re(regeneratorRuntime.mark((function e(){var t,r,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=n.primary||n.isNotificationEmail?"":n.initialEmail,e.next=4,Pe(a);case 4:i=e.sent,n.handleResponse({notificationEmail:a,status:null===(t=i.ocs)||void 0===t||null===(r=t.meta)||void 0===r?void 0:r.status}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),n.handleResponse({errorMessage:"Unable to choose this email for notifications",error:e.t0});case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))()},updateAdditionalEmail:function(n){var e=this;return Re(regeneratorRuntime.mark((function r(){var a,i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Ie(e.initialEmail,n);case 3:o=r.sent,e.handleResponse({email:n,status:null===(a=o.ocs)||void 0===a||null===(i=a.meta)||void 0===i?void 0:i.status}),r.next=10;break;case 7:r.prev=7,r.t0=r.catch(0),e.handleResponse({errorMessage:t("settings","Unable to update additional email address"),error:r.t0});case 10:case"end":return r.stop()}}),r,null,[[0,7]])})))()},deleteAdditionalEmail:function(){var n=this;return Re(regeneratorRuntime.mark((function e(){var r,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,je(n.initialEmail);case 3:i=e.sent,n.handleDeleteAdditionalEmail(null===(r=i.ocs)||void 0===r||null===(a=r.meta)||void 0===a?void 0:a.status),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),n.handleResponse({errorMessage:t("settings","Unable to delete additional email address"),error:e.t0});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))()},handleDeleteAdditionalEmail:function(n){"ok"===n?this.$emit("delete-additional-email"):this.handleResponse({errorMessage:t("settings","Unable to delete additional email address")})},handleResponse:function(n){var e=this,t=n.email,r=n.notificationEmail,a=n.status,i=n.errorMessage,o=n.error;"ok"===a?(t?this.initialEmail=t:void 0!==r&&this.$emit("update:notification-email",r),this.showCheckmarkIcon=!0,setTimeout((function(){e.showCheckmarkIcon=!1}),2e3)):((0,u.x2)(i),fn.error(i,o),this.showErrorIcon=!0,setTimeout((function(){e.showErrorIcon=!1}),2e3))},onScopeChange:function(n){this.$emit("update:scope",n)}}},Ne=Be,Te=r(98959),Ze={};Ze.styleTagTransform=N(),Ze.setAttributes=L(),Ze.insert=S().bind(null,"head"),Ze.domAPI=j(),Ze.insertStyleElement=R(),O()(Te.Z,Ze),Te.Z&&Te.Z.locals&&Te.Z.locals;var Me=(0,V.Z)(Ne,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",[t("div",{staticClass:"email"},[t("input",{ref:"email",attrs:{id:n.inputId,type:"email",placeholder:n.inputPlaceholder,"aria-describedby":n.helperText?n.inputId+"-helper-text":"",autocapitalize:"none",autocomplete:"on",autocorrect:"off"},domProps:{value:n.email},on:{input:n.onEmailChange}}),n._v(" "),t("div",{staticClass:"email__actions-container"},[t("transition",{attrs:{name:"fade"}},[n.showCheckmarkIcon?t("Check",{attrs:{size:20}}):n.showErrorIcon?t("AlertOctagon",{attrs:{size:20}}):n._e()],1),n._v(" "),n.primary?n._e():[t("FederationControl",{attrs:{readable:n.propertyReadable,additional:!0,"additional-value":n.email,disabled:n.federationDisabled,"handle-additional-scope-change":n.saveAdditionalEmailScope,scope:n.localScope},on:{"update:scope":[function(e){n.localScope=e},n.onScopeChange]}})],n._v(" "),t("NcActions",{staticClass:"email__actions",attrs:{"aria-label":n.t("settings","Email options"),"force-menu":!0}},[t("NcActionButton",{attrs:{"aria-label":n.deleteEmailLabel,"close-after-click":!0,disabled:n.deleteDisabled,icon:"icon-delete"},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),n.deleteEmail.apply(null,arguments)}}},[n._v("\n\t\t\t\t\t"+n._s(n.deleteEmailLabel)+"\n\t\t\t\t")]),n._v(" "),n.primary&&n.isNotificationEmail?n._e():t("NcActionButton",{attrs:{"aria-label":n.setNotificationMailLabel,"close-after-click":!0,disabled:n.setNotificationMailDisabled,icon:"icon-favorite"},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),n.setNotificationMail.apply(null,arguments)}}},[n._v("\n\t\t\t\t\t"+n._s(n.setNotificationMailLabel)+"\n\t\t\t\t")])],1)],2)]),n._v(" "),n.helperText?t("p",{staticClass:"email__helper-text-message email__helper-text-message--error",attrs:{id:n.inputId+"-helper-text"}},[t("AlertCircle",{staticClass:"email__helper-text-message__icon",attrs:{size:18}}),n._v("\n\t\t"+n._s(n.helperText)+"\n\t")],1):n._e(),n._v(" "),n.isNotificationEmail?t("em",[n._v("\n\t\t"+n._s(n.t("settings","Primary email for password reset and notifications"))+"\n\t")]):n._e()])}),[],!1,null,"ce46b900",null),Ue=Me.exports;function Fe(n,e,t,r,a,i,o){try{var s=n[i](o),l=s.value}catch(n){return void t(n)}s.done?e(l):Promise.resolve(l).then(r,a)}function ze(n){return function(){var e=this,t=arguments;return new Promise((function(r,a){var i=n.apply(e,t);function o(n){Fe(i,r,a,o,s,"next",n)}function s(n){Fe(i,r,a,o,s,"throw",n)}o(void 0)}))}}function Ve(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function $e(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Ve(Object(t),!0).forEach((function(e){He(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Ve(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function He(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Ge=(0,o.loadState)("settings","personalInfoParameters",{}).emailMap,qe=Ge.additionalEmails,Ye=Ge.primaryEmail,We=Ge.notificationEmail,Ke=(0,o.loadState)("settings","accountParameters",{}).displayNameChangeSupported,Qe={name:"EmailSection",components:{HeaderBar:jn,Email:Ue},data:function(){var n=this;return{accountProperty:Y.EMAIL,additionalEmails:qe.map((function(e){return $e($e({},e),{},{key:n.generateUniqueKey()})})),displayNameChangeSupported:Ke,primaryEmail:$e($e({},Ye),{},{readable:W[Ye.name]}),savePrimaryEmailScope:Se,notificationEmail:We}},computed:{firstAdditionalEmail:function(){return this.additionalEmails.length?this.additionalEmails[0].value:null},inputId:function(){return"account-property-".concat(this.primaryEmail.name)},isValidSection:function(){return Le(this.primaryEmail.value)&&this.additionalEmails.map((function(n){return n.value})).every(Le)},primaryEmailValue:{get:function(){return this.primaryEmail.value},set:function(n){this.primaryEmail.value=n}}},methods:{onAddAdditionalEmail:function(){this.isValidSection&&this.additionalEmails.push({value:"",scope:on,key:this.generateUniqueKey()})},onDeleteAdditionalEmail:function(n){this.$delete(this.additionalEmails,n)},onUpdateEmail:function(){var n=this;return ze(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==n.primaryEmailValue||!n.firstAdditionalEmail){e.next=7;break}return t=n.firstAdditionalEmail,e.next=4,n.deleteFirstAdditionalEmail();case 4:return n.primaryEmailValue=t,e.next=7,n.updatePrimaryEmail();case 7:case"end":return e.stop()}}),e)})))()},onUpdateNotificationEmail:function(n){var e=this;return ze(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.notificationEmail=n;case 1:case"end":return t.stop()}}),t)})))()},updatePrimaryEmail:function(){var n=this;return ze(regeneratorRuntime.mark((function e(){var r,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,_e(n.primaryEmailValue);case 3:i=e.sent,n.handleResponse(null===(r=i.ocs)||void 0===r||null===(a=r.meta)||void 0===a?void 0:a.status),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),n.handleResponse("error",t("settings","Unable to update primary email address"),e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))()},deleteFirstAdditionalEmail:function(){var n=this;return ze(regeneratorRuntime.mark((function e(){var r,a,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,je(n.firstAdditionalEmail);case 3:i=e.sent,n.handleDeleteFirstAdditionalEmail(null===(r=i.ocs)||void 0===r||null===(a=r.meta)||void 0===a?void 0:a.status),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),n.handleResponse("error",t("settings","Unable to delete additional email address"),e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})))()},handleDeleteFirstAdditionalEmail:function(n){"ok"===n?this.$delete(this.additionalEmails,0):this.handleResponse("error",t("settings","Unable to delete additional email address"),{})},handleResponse:function(n,e,t){"ok"!==n&&((0,u.x2)(e),fn.error(e,t))},generateUniqueKey:function(){return Math.random().toString(36).substring(2)}}},Je=r(38793),Xe={};Xe.styleTagTransform=N(),Xe.setAttributes=L(),Xe.insert=S().bind(null,"head"),Xe.domAPI=j(),Xe.insertStyleElement=R(),O()(Je.Z,Xe),Je.Z&&Je.Z.locals&&Je.Z.locals;var nt=(0,V.Z)(Qe,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("section",[t("HeaderBar",{attrs:{"input-id":n.inputId,readable:n.primaryEmail.readable,"handle-scope-change":n.savePrimaryEmailScope,"is-editable":!0,"is-multi-value-supported":!0,"is-valid-section":n.isValidSection,scope:n.primaryEmail.scope},on:{"update:scope":function(e){return n.$set(n.primaryEmail,"scope",e)},"add-additional":n.onAddAdditionalEmail}}),n._v(" "),n.displayNameChangeSupported?[t("Email",{attrs:{primary:!0,scope:n.primaryEmail.scope,email:n.primaryEmail.value,"active-notification-email":n.notificationEmail},on:{"update:scope":function(e){return n.$set(n.primaryEmail,"scope",e)},"update:email":[function(e){return n.$set(n.primaryEmail,"value",e)},n.onUpdateEmail],"update:activeNotificationEmail":function(e){n.notificationEmail=e},"update:active-notification-email":function(e){n.notificationEmail=e},"update:notification-email":n.onUpdateNotificationEmail}})]:t("span",[n._v("\n\t\t"+n._s(n.primaryEmail.value||n.t("settings","No email address set"))+"\n\t")]),n._v(" "),n.additionalEmails.length?[t("em",{staticClass:"additional-emails-label"},[n._v(n._s(n.t("settings","Additional emails")))]),n._v(" "),n._l(n.additionalEmails,(function(e,r){return t("Email",{key:e.key,attrs:{index:r,scope:e.scope,email:e.value,"local-verification-state":parseInt(e.locallyVerified,10),"active-notification-email":n.notificationEmail},on:{"update:scope":function(t){return n.$set(e,"scope",t)},"update:email":[function(t){return n.$set(e,"value",t)},n.onUpdateEmail],"update:activeNotificationEmail":function(e){n.notificationEmail=e},"update:active-notification-email":function(e){n.notificationEmail=e},"update:notification-email":n.onUpdateNotificationEmail,"delete-additional-email":function(e){return n.onDeleteAdditionalEmail(r)}}})}))]:n._e()],2)}),[],!1,null,"3b8501a7",null).exports,et=r(45004);function tt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function rt(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?tt(Object(t),!0).forEach((function(e){at(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):tt(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function at(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var it=(0,o.loadState)("settings","personalInfoParameters",{}).phone,ot={name:"PhoneSection",components:{AccountPropertySection:fe},data:function(){return{phone:rt(rt({},it),{},{readable:W[it.name]})}},methods:{onValidate:function(n){return(0,et.y)(n)}}},st=(0,V.Z)(ot,(function(){var n=this,e=n.$createElement;return(n._self._c||e)("AccountPropertySection",n._b({attrs:{placeholder:n.t("settings","Your phone number"),type:"tel","on-validate":n.onValidate}},"AccountPropertySection",n.phone,!1,!0))}),[],!1,null,null,null).exports;function lt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function ct(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?lt(Object(t),!0).forEach((function(e){ut(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):lt(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function ut(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var dt=(0,o.loadState)("settings","personalInfoParameters",{}).location,pt={name:"LocationSection",components:{AccountPropertySection:fe},data:function(){return{location:ct(ct({},dt),{},{readable:W[dt.name]})}}},At=(0,V.Z)(pt,(function(){var n=this,e=n.$createElement;return(n._self._c||e)("AccountPropertySection",n._b({attrs:{placeholder:n.t("settings","Your location")}},"AccountPropertySection",n.location,!1,!0))}),[],!1,null,null,null).exports;function ft(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function mt(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?ft(Object(t),!0).forEach((function(e){vt(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ft(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function vt(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var gt=(0,o.loadState)("settings","personalInfoParameters",{}).website,ht={name:"WebsiteSection",components:{AccountPropertySection:fe},data:function(){return{website:mt(mt({},gt),{},{readable:W[gt.name]})}},methods:{onValidate:function(n){return function(n){try{return new URL(n),!0}catch(n){return!1}}(n)}}},bt=(0,V.Z)(ht,(function(){var n=this,e=n.$createElement;return(n._self._c||e)("AccountPropertySection",n._b({attrs:{placeholder:n.t("settings","Your website"),type:"url","on-validate":n.onValidate}},"AccountPropertySection",n.website,!1,!0))}),[],!1,null,null,null).exports;function yt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Ct(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?yt(Object(t),!0).forEach((function(e){xt(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):yt(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function xt(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Et=(0,o.loadState)("settings","personalInfoParameters",{}).twitter,wt={name:"TwitterSection",components:{AccountPropertySection:fe},data:function(){return{twitter:Ct(Ct({},Et),{},{readable:W[Et.name]})}}},_t=(0,V.Z)(wt,(function(){var n=this,e=n.$createElement;return(n._self._c||e)("AccountPropertySection",n._b({attrs:{placeholder:n.t("settings","Your Twitter handle")}},"AccountPropertySection",n.twitter,!1,!0))}),[],!1,null,null,null).exports;function Ot(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Pt(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Ot(Object(t),!0).forEach((function(e){jt(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Ot(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function jt(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var It=(0,o.loadState)("settings","personalInfoParameters",{}).fediverse,St={name:"FediverseSection",components:{AccountPropertySection:fe},data:function(){return{fediverse:Pt(Pt({},It),{},{readable:W[It.name]})}}},kt=(0,V.Z)(St,(function(){var n=this,e=n.$createElement;return(n._self._c||e)("AccountPropertySection",n._b({attrs:{placeholder:n.t("settings","Your handle")}},"AccountPropertySection",n.fediverse,!1,!0))}),[],!1,null,null,null).exports;function Lt(n,e,t,r,a,i,o){try{var s=n[i](o),l=s.value}catch(n){return void t(n)}s.done?e(l):Promise.resolve(l).then(r,a)}function Dt(n){return function(){var e=this,t=arguments;return new Promise((function(r,a){var i=n.apply(e,t);function o(n){Lt(i,r,a,o,s,"next",n)}function s(n){Lt(i,r,a,o,s,"throw",n)}o(void 0)}))}}function Rt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Bt(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Rt(Object(t),!0).forEach((function(e){Nt(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Rt(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function Nt(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Tt(n){return function(n){if(Array.isArray(n))return Zt(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(n){if("string"==typeof n)return Zt(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Zt(n,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zt(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}var Mt={name:"Language",props:{inputId:{type:String,default:null},commonLanguages:{type:Array,required:!0},otherLanguages:{type:Array,required:!0},language:{type:Object,required:!0}},data:function(){return{initialLanguage:this.language}},computed:{allLanguages:function(){return Object.freeze([].concat(Tt(this.commonLanguages),Tt(this.otherLanguages)).reduce((function(n,e){var t=e.code,r=e.name;return Bt(Bt({},n),{},Nt({},t,r))}),{}))}},methods:{onLanguageChange:function(n){var e=this;return Dt(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.constructLanguage(n.target.value),e.$emit("update:language",r),""===(a=r).code||""===a.name||void 0===a.name){t.next=5;break}return t.next=5,e.updateLanguage(r);case 5:case"end":return t.stop()}var a}),t)})))()},updateLanguage:function(n){var e=this;return Dt(regeneratorRuntime.mark((function r(){var a,i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,pn(J.LANGUAGE,n.code);case 3:o=r.sent,e.handleResponse({language:n,status:null===(a=o.ocs)||void 0===a||null===(i=a.meta)||void 0===i?void 0:i.status}),e.reloadPage(),r.next=11;break;case 8:r.prev=8,r.t0=r.catch(0),e.handleResponse({errorMessage:t("settings","Unable to update language"),error:r.t0});case 11:case"end":return r.stop()}}),r,null,[[0,8]])})))()},constructLanguage:function(n){return{code:n,name:this.allLanguages[n]}},handleResponse:function(n){var e=n.language,t=n.status,r=n.errorMessage,a=n.error;"ok"===t?this.initialLanguage=e:((0,u.x2)(r),fn.error(r,a))},reloadPage:function(){location.reload()}}},Ut=r(79818),Ft={};Ft.styleTagTransform=N(),Ft.setAttributes=L(),Ft.insert=S().bind(null,"head"),Ft.domAPI=j(),Ft.insertStyleElement=R(),O()(Ut.Z,Ft),Ut.Z&&Ut.Z.locals&&Ut.Z.locals;var zt=(0,V.Z)(Mt,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"language"},[t("select",{attrs:{id:n.inputId,placeholder:n.t("settings","Language")},on:{change:n.onLanguageChange}},[n._l(n.commonLanguages,(function(e){return t("option",{key:e.code,domProps:{selected:n.language.code===e.code,value:e.code}},[n._v("\n\t\t\t"+n._s(e.name)+"\n\t\t")])})),n._v(" "),t("option",{attrs:{disabled:""}},[n._v("\n\t\t\t──────────\n\t\t")]),n._v(" "),n._l(n.otherLanguages,(function(e){return t("option",{key:e.code,domProps:{selected:n.language.code===e.code,value:e.code}},[n._v("\n\t\t\t"+n._s(e.name)+"\n\t\t")])}))],2),n._v(" "),t("a",{attrs:{href:"https://www.transifex.com/nextcloud/nextcloud/",target:"_blank",rel:"noreferrer noopener"}},[t("em",[n._v(n._s(n.t("settings","Help translate")))])])])}),[],!1,null,"6e196b5c",null).exports,Vt=(0,o.loadState)("settings","personalInfoParameters",{}).languageMap,$t=Vt.activeLanguage,Ht=Vt.commonLanguages,Gt=Vt.otherLanguages,qt={name:"LanguageSection",components:{Language:zt,HeaderBar:jn},data:function(){return{propertyReadable:X.LANGUAGE,commonLanguages:Ht,otherLanguages:Gt,language:$t}},computed:{inputId:function(){return"account-setting-".concat(J.LANGUAGE)},isEditable:function(){return Boolean(this.language)}}},Yt=r(14703),Wt={};Wt.styleTagTransform=N(),Wt.setAttributes=L(),Wt.insert=S().bind(null,"head"),Wt.domAPI=j(),Wt.insertStyleElement=R(),O()(Yt.Z,Wt),Yt.Z&&Yt.Z.locals&&Yt.Z.locals;var Kt=(0,V.Z)(qt,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("section",[t("HeaderBar",{attrs:{"input-id":n.inputId,readable:n.propertyReadable}}),n._v(" "),n.isEditable?[t("Language",{attrs:{"input-id":n.inputId,"common-languages":n.commonLanguages,"other-languages":n.otherLanguages,language:n.language},on:{"update:language":function(e){n.language=e}}})]:t("span",[n._v("\n\t\t"+n._s(n.t("settings","No language set"))+"\n\t")])],2)}),[],!1,null,"92685b76",null).exports,Qt=r(80351),Jt=r.n(Qt);function Xt(n,e,t,r,a,i,o){try{var s=n[i](o),l=s.value}catch(n){return void t(n)}s.done?e(l):Promise.resolve(l).then(r,a)}function nr(n){return function(){var e=this,t=arguments;return new Promise((function(r,a){var i=n.apply(e,t);function o(n){Xt(i,r,a,o,s,"next",n)}function s(n){Xt(i,r,a,o,s,"throw",n)}o(void 0)}))}}function er(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function tr(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?er(Object(t),!0).forEach((function(e){rr(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):er(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function rr(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function ar(n){return function(n){if(Array.isArray(n))return ir(n)}(n)||function(n){if("undefined"!=typeof Symbol&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||function(n,e){if(n){if("string"==typeof n)return ir(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?ir(n,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ir(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}var or={name:"Locale",components:{Web:r(49298).Z},props:{inputId:{type:String,default:null},locale:{type:Object,required:!0},localesForLanguage:{type:Array,required:!0},otherLocales:{type:Array,required:!0}},data:function(){return{initialLocale:this.locale,example:{date:Jt()().format("L"),time:Jt()().format("LTS"),firstDayOfWeek:window.dayNames[window.firstDay]}}},computed:{allLocales:function(){return Object.freeze([].concat(ar(this.localesForLanguage),ar(this.otherLocales)).reduce((function(n,e){var t=e.code,r=e.name;return tr(tr({},n),{},rr({},t,r))}),{}))}},created:function(){setInterval(this.refreshExample,1e3)},methods:{onLocaleChange:function(n){var e=this;return nr(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.constructLocale(n.target.value),e.$emit("update:locale",r),""===(a=r).code||""===a.name||void 0===a.name){t.next=5;break}return t.next=5,e.updateLocale(r);case 5:case"end":return t.stop()}var a}),t)})))()},updateLocale:function(n){var e=this;return nr(regeneratorRuntime.mark((function r(){var a,i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,pn(J.LOCALE,n.code);case 3:o=r.sent,e.handleResponse({locale:n,status:null===(a=o.ocs)||void 0===a||null===(i=a.meta)||void 0===i?void 0:i.status}),e.reloadPage(),r.next=11;break;case 8:r.prev=8,r.t0=r.catch(0),e.handleResponse({errorMessage:t("settings","Unable to update locale"),error:r.t0});case 11:case"end":return r.stop()}}),r,null,[[0,8]])})))()},constructLocale:function(n){return{code:n,name:this.allLocales[n]}},handleResponse:function(n){var e=n.locale,t=n.status,r=n.errorMessage,a=n.error;"ok"===t?this.initialLocale=e:(this.$emit("update:locale",this.initialLocale),(0,u.x2)(r),fn.error(r,a))},refreshExample:function(){this.example={date:Jt()().format("L"),time:Jt()().format("LTS"),firstDayOfWeek:window.dayNames[window.firstDay]}},reloadPage:function(){location.reload()}}},sr=r(59808),lr={};lr.styleTagTransform=N(),lr.setAttributes=L(),lr.insert=S().bind(null,"head"),lr.domAPI=j(),lr.insertStyleElement=R(),O()(sr.Z,lr),sr.Z&&sr.Z.locals&&sr.Z.locals;var cr=(0,V.Z)(or,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"locale"},[t("select",{attrs:{id:n.inputId,placeholder:n.t("settings","Locale")},on:{change:n.onLocaleChange}},[n._l(n.localesForLanguage,(function(e){return t("option",{key:e.code,domProps:{selected:n.locale.code===e.code,value:e.code}},[n._v("\n\t\t\t"+n._s(e.name)+"\n\t\t")])})),n._v(" "),t("option",{attrs:{disabled:""}},[n._v("\n\t\t\t──────────\n\t\t")]),n._v(" "),n._l(n.otherLocales,(function(e){return t("option",{key:e.code,domProps:{selected:n.locale.code===e.code,value:e.code}},[n._v("\n\t\t\t"+n._s(e.name)+"\n\t\t")])}))],2),n._v(" "),t("div",{staticClass:"example"},[t("Web",{attrs:{size:20}}),n._v(" "),t("div",{staticClass:"example__text"},[t("p",[t("span",[n._v(n._s(n.example.date))]),n._v(" "),t("span",[n._v(n._s(n.example.time))])]),n._v(" "),t("p",[n._v("\n\t\t\t\t"+n._s(n.t("settings","Week starts on {firstDayOfWeek}",{firstDayOfWeek:this.example.firstDayOfWeek}))+"\n\t\t\t")])])],1)])}),[],!1,null,"545055d8",null).exports,ur=(0,o.loadState)("settings","personalInfoParameters",{}).localeMap,dr=ur.activeLocale,pr=ur.localesForLanguage,Ar=ur.otherLocales,fr={name:"LocaleSection",components:{Locale:cr,HeaderBar:jn},data:function(){return{propertyReadable:X.LOCALE,localesForLanguage:pr,otherLocales:Ar,locale:dr}},computed:{inputId:function(){return"account-setting-".concat(J.LOCALE)},isEditable:function(){return Boolean(this.locale)}}},mr=r(78172),vr={};vr.styleTagTransform=N(),vr.setAttributes=L(),vr.insert=S().bind(null,"head"),vr.domAPI=j(),vr.insertStyleElement=R(),O()(mr.Z,vr),mr.Z&&mr.Z.locals&&mr.Z.locals;var gr=(0,V.Z)(fr,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("section",[t("HeaderBar",{attrs:{"input-id":n.inputId,readable:n.propertyReadable}}),n._v(" "),n.isEditable?[t("Locale",{attrs:{"input-id":n.inputId,"locales-for-language":n.localesForLanguage,"other-locales":n.otherLocales,locale:n.locale},on:{"update:locale":function(e){n.locale=e}}})]:t("span",[n._v("\n\t\t"+n._s(n.t("settings","No locale set"))+"\n\t")])],2)}),[],!1,null,"84fca724",null).exports,hr={name:"EditProfileAnchorLink",components:{ChevronDownIcon:r(60604).default},props:{profileEnabled:{type:Boolean,required:!0}},computed:{disabled:function(){return!this.profileEnabled}}},br=r(61434),yr={};yr.styleTagTransform=N(),yr.setAttributes=L(),yr.insert=S().bind(null,"head"),yr.domAPI=j(),yr.insertStyleElement=R(),O()(br.Z,yr),br.Z&&br.Z.locals&&br.Z.locals;var Cr=r(77467),xr={};xr.styleTagTransform=N(),xr.setAttributes=L(),xr.insert=S().bind(null,"head"),xr.domAPI=j(),xr.insertStyleElement=R(),O()(Cr.Z,xr),Cr.Z&&Cr.Z.locals&&Cr.Z.locals;var Er=(0,V.Z)(hr,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("a",n._g({class:{disabled:n.disabled},attrs:{href:"#profile-visibility"}},n.$listeners),[t("ChevronDownIcon",{staticClass:"anchor-icon",attrs:{size:22}}),n._v("\n\t"+n._s(n.t("settings","Edit your Profile visibility"))+"\n")],1)}),[],!1,null,"1950be88",null).exports,wr=r(20571);function _r(n,e,t,r,a,i,o){try{var s=n[i](o),l=s.value}catch(n){return void t(n)}s.done?e(l):Promise.resolve(l).then(r,a)}var Or={name:"ProfileCheckbox",components:{NcCheckboxRadioSwitch:r.n(wr)()},props:{profileEnabled:{type:Boolean,required:!0}},data:function(){return{isProfileEnabled:this.profileEnabled,loading:!1}},methods:{saveEnableProfile:function(){var n,e=this;return(n=regeneratorRuntime.mark((function n(){var r,a,i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.loading=!0,n.prev=1,n.next=4,pn(q.PROFILE_ENABLED,e.isProfileEnabled);case 4:i=n.sent,e.handleResponse({isProfileEnabled:e.isProfileEnabled,status:null===(r=i.ocs)||void 0===r||null===(a=r.meta)||void 0===a?void 0:a.status}),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(1),e.handleResponse({errorMessage:t("settings","Unable to update profile enabled state"),error:n.t0});case 11:case"end":return n.stop()}}),n,null,[[1,8]])})),function(){var e=this,t=arguments;return new Promise((function(r,a){var i=n.apply(e,t);function o(n){_r(i,r,a,o,s,"next",n)}function s(n){_r(i,r,a,o,s,"throw",n)}o(void 0)}))})()},handleResponse:function(n){var e=n.isProfileEnabled,t=n.status,r=n.errorMessage,a=n.error;"ok"===t?(0,d.j8)("settings:profile-enabled:updated",e):((0,u.x2)(r),fn.error(r,a)),this.loading=!1}}},Pr=Or,jr=(0,V.Z)(Pr,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"checkbox-container"},[t("NcCheckboxRadioSwitch",{attrs:{type:"switch",checked:n.isProfileEnabled,loading:n.loading},on:{"update:checked":[function(e){n.isProfileEnabled=e},n.saveEnableProfile]}},[n._v("\n\t\t"+n._s(n.t("settings","Enable Profile"))+"\n\t")])],1)}),[],!1,null,null,null).exports,Ir={name:"ProfilePreviewCard",components:{NcAvatar:A()},props:{displayName:{type:String,required:!0},organisation:{type:String,required:!0},profileEnabled:{type:Boolean,required:!0},userId:{type:String,required:!0}},computed:{disabled:function(){return!this.profileEnabled},profilePageLink:function(){return this.profileEnabled?(0,c.generateUrl)("/u/{userId}",{userId:(0,i.getCurrentUser)().uid}):null}}},Sr=r(23567),kr={};kr.styleTagTransform=N(),kr.setAttributes=L(),kr.insert=S().bind(null,"head"),kr.domAPI=j(),kr.insertStyleElement=R(),O()(Sr.Z,kr),Sr.Z&&Sr.Z.locals&&Sr.Z.locals;var Lr=(0,V.Z)(Ir,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("a",{staticClass:"preview-card",class:{disabled:n.disabled},attrs:{href:n.profilePageLink}},[t("NcAvatar",{staticClass:"preview-card__avatar",attrs:{user:n.userId,size:48,"show-user-status":!0,"show-user-status-compact":!1,"disable-menu":!0,"disable-tooltip":!0}}),n._v(" "),t("div",{staticClass:"preview-card__header"},[t("span",[n._v(n._s(n.displayName))])]),n._v(" "),t("div",{staticClass:"preview-card__footer"},[t("span",[n._v(n._s(n.organisation))])])],1)}),[],!1,null,"e1d38ee8",null).exports,Dr=(0,o.loadState)("settings","personalInfoParameters",{}),Rr=Dr.organisation.value,Br=Dr.displayName.value,Nr=Dr.profileEnabled,Tr=Dr.userId,Zr={name:"ProfileSection",components:{EditProfileAnchorLink:Er,HeaderBar:jn,ProfileCheckbox:jr,ProfilePreviewCard:Lr},data:function(){return{propertyReadable:Y.PROFILE_ENABLED,organisation:Rr,displayName:Br,profileEnabled:Nr,userId:Tr}},mounted:function(){(0,d.Ld)("settings:display-name:updated",this.handleDisplayNameUpdate),(0,d.Ld)("settings:organisation:updated",this.handleOrganisationUpdate)},beforeDestroy:function(){(0,d.r1)("settings:display-name:updated",this.handleDisplayNameUpdate),(0,d.r1)("settings:organisation:updated",this.handleOrganisationUpdate)},methods:{handleDisplayNameUpdate:function(n){this.displayName=n},handleOrganisationUpdate:function(n){this.organisation=n}}},Mr=Zr,Ur=r(67964),Fr={};Fr.styleTagTransform=N(),Fr.setAttributes=L(),Fr.insert=S().bind(null,"head"),Fr.domAPI=j(),Fr.insertStyleElement=R(),O()(Ur.Z,Fr),Ur.Z&&Ur.Z.locals&&Ur.Z.locals;var zr=(0,V.Z)(Mr,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("section",[t("HeaderBar",{attrs:{readable:n.propertyReadable}}),n._v(" "),t("ProfileCheckbox",{attrs:{"profile-enabled":n.profileEnabled},on:{"update:profileEnabled":function(e){n.profileEnabled=e},"update:profile-enabled":function(e){n.profileEnabled=e}}}),n._v(" "),t("ProfilePreviewCard",{attrs:{organisation:n.organisation,"display-name":n.displayName,"profile-enabled":n.profileEnabled,"user-id":n.userId}}),n._v(" "),t("EditProfileAnchorLink",{attrs:{"profile-enabled":n.profileEnabled}})],1)}),[],!1,null,"cf64d964",null).exports;function Vr(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function $r(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Vr(Object(t),!0).forEach((function(e){Hr(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Vr(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function Hr(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Gr=(0,o.loadState)("settings","personalInfoParameters",{}).organisation,qr={name:"OrganisationSection",components:{AccountPropertySection:fe},data:function(){return{organisation:$r($r({},Gr),{},{readable:W[Gr.name]})}}},Yr=(0,V.Z)(qr,(function(){var n=this,e=n.$createElement;return(n._self._c||e)("AccountPropertySection",n._b({attrs:{placeholder:n.t("settings","Your organisation")}},"AccountPropertySection",n.organisation,!1,!0))}),[],!1,null,null,null).exports;function Wr(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function Kr(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?Wr(Object(t),!0).forEach((function(e){Qr(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):Wr(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function Qr(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var Jr=(0,o.loadState)("settings","personalInfoParameters",{}).role,Xr={name:"RoleSection",components:{AccountPropertySection:fe},data:function(){return{role:Kr(Kr({},Jr),{},{readable:W[Jr.name]})}}},na=(0,V.Z)(Xr,(function(){var n=this,e=n.$createElement;return(n._self._c||e)("AccountPropertySection",n._b({attrs:{placeholder:n.t("settings","Your role")}},"AccountPropertySection",n.role,!1,!0))}),[],!1,null,null,null).exports;function ea(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function ta(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?ea(Object(t),!0).forEach((function(e){ra(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ea(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function ra(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var aa=(0,o.loadState)("settings","personalInfoParameters",{}).headline,ia={name:"HeadlineSection",components:{AccountPropertySection:fe},data:function(){return{headline:ta(ta({},aa),{},{readable:W[aa.name]})}}},oa=(0,V.Z)(ia,(function(){var n=this,e=n.$createElement;return(n._self._c||e)("AccountPropertySection",n._b({attrs:{placeholder:n.t("settings","Your headline")}},"AccountPropertySection",n.headline,!1,!0))}),[],!1,null,null,null).exports;function sa(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function la(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?sa(Object(t),!0).forEach((function(e){ca(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):sa(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function ca(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var ua=(0,o.loadState)("settings","personalInfoParameters",{}).biography,da={name:"BiographySection",components:{AccountPropertySection:fe},data:function(){return{biography:la(la({},ua),{},{readable:W[ua.name]})}}},pa=(0,V.Z)(da,(function(){var n=this,e=n.$createElement;return(n._self._c||e)("AccountPropertySection",n._b({attrs:{placeholder:n.t("settings","Your biography"),"multi-line":!0}},"AccountPropertySection",n.biography,!1,!0))}),[],!1,null,null,null).exports,Aa=r(98266),fa=r.n(Aa);function ma(n,e,t,r,a,i,o){try{var s=n[i](o),l=s.value}catch(n){return void t(n)}s.done?e(l):Promise.resolve(l).then(r,a)}var va,ga=function(){var n,e=(n=regeneratorRuntime.mark((function n(e,t){var r,a,o;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=(0,i.getCurrentUser)().uid,a=(0,c.generateOcsUrl)("/profile/{userId}",{userId:r}),n.next=4,(0,cn.confirmPassword)();case 4:return n.next=6,l.default.put(a,{paramId:e,visibility:t});case 6:return o=n.sent,n.abrupt("return",o.data);case 8:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,a){var i=n.apply(e,t);function o(n){ma(i,r,a,o,s,"next",n)}function s(n){ma(i,r,a,o,s,"throw",n)}o(void 0)}))});return function(n,t){return e.apply(this,arguments)}}();function ha(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var ba=Object.freeze({SHOW:"show",SHOW_USERS_ONLY:"show_users_only",HIDE:"hide"}),ya=Object.freeze((ha(va={},ba.SHOW,{name:ba.SHOW,label:t("settings","Show to everyone")}),ha(va,ba.SHOW_USERS_ONLY,{name:ba.SHOW_USERS_ONLY,label:t("settings","Show to logged in users only")}),ha(va,ba.HIDE,{name:ba.HIDE,label:t("settings","Hide")}),va));function Ca(n,e,t,r,a,i,o){try{var s=n[i](o),l=s.value}catch(n){return void t(n)}s.done?e(l):Promise.resolve(l).then(r,a)}function xa(n){return function(){var e=this,t=arguments;return new Promise((function(r,a){var i=n.apply(e,t);function o(n){Ca(i,r,a,o,s,"next",n)}function s(n){Ca(i,r,a,o,s,"throw",n)}o(void 0)}))}}var Ea=(0,o.loadState)("settings","personalInfoParameters",!1).profileEnabled,wa={name:"VisibilityDropdown",components:{NcMultiselect:fa()},props:{paramId:{type:String,required:!0},displayId:{type:String,required:!0},visibility:{type:String,required:!0}},data:function(){return{initialVisibility:this.visibility,profileEnabled:Ea}},computed:{disabled:function(){return!this.profileEnabled},inputId:function(){return"profile-visibility-".concat(this.paramId)},visibilityObject:function(){return ya[this.visibility]},visibilityOptions:function(){return Object.values(ya)}},mounted:function(){(0,d.Ld)("settings:profile-enabled:updated",this.handleProfileEnabledUpdate)},beforeDestroy:function(){(0,d.r1)("settings:profile-enabled:updated",this.handleProfileEnabledUpdate)},methods:{onVisibilityChange:function(n){var e=this;return xa(regeneratorRuntime.mark((function t(){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null===n){t.next=6;break}if(r=n.name,e.$emit("update:visibility",r),""===r){t.next=6;break}return t.next=6,e.updateVisibility(r);case 6:case"end":return t.stop()}}),t)})))()},updateVisibility:function(n){var e=this;return xa(regeneratorRuntime.mark((function r(){var a,i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,ga(e.paramId,n);case 3:o=r.sent,e.handleResponse({visibility:n,status:null===(a=o.ocs)||void 0===a||null===(i=a.meta)||void 0===i?void 0:i.status}),r.next=10;break;case 7:r.prev=7,r.t0=r.catch(0),e.handleResponse({errorMessage:t("settings","Unable to update visibility of {displayId}",{displayId:e.displayId}),error:r.t0});case 10:case"end":return r.stop()}}),r,null,[[0,7]])})))()},handleResponse:function(n){var e=n.visibility,t=n.status,r=n.errorMessage,a=n.error;"ok"===t?this.initialVisibility=e:((0,u.x2)(r),fn.error(r,a))},handleProfileEnabledUpdate:function(n){this.profileEnabled=n}}},_a=wa,Oa=r(14930),Pa={};Pa.styleTagTransform=N(),Pa.setAttributes=L(),Pa.insert=S().bind(null,"head"),Pa.domAPI=j(),Pa.insertStyleElement=R(),O()(Oa.Z,Pa),Oa.Z&&Oa.Z.locals&&Oa.Z.locals;var ja=(0,V.Z)(_a,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("div",{staticClass:"visibility-container",class:{disabled:n.disabled}},[t("label",{attrs:{for:n.inputId}},[n._v("\n\t\t"+n._s(n.t("settings","{displayId}",{displayId:n.displayId}))+"\n\t")]),n._v(" "),t("NcMultiselect",{staticClass:"visibility-container__multiselect",attrs:{id:n.inputId,options:n.visibilityOptions,"track-by":"name",label:"label",value:n.visibilityObject},on:{change:n.onVisibilityChange}})],1)}),[],!1,null,"3cddb756",null).exports;function Ia(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}var Sa=(0,o.loadState)("settings","profileParameters",{}).profileConfig,ka=(0,o.loadState)("settings","personalInfoParameters",!1).profileEnabled,La=function(n,e){return n.appId===e.appId||"core"!==n.appId&&"core"!==e.appId?n.displayId.localeCompare(e.displayId):"core"===n.appId?1:-1},Da={name:"ProfileVisibilitySection",components:{HeaderBar:jn,VisibilityDropdown:ja},data:function(){return{heading:K.PROFILE_VISIBILITY,profileEnabled:ka,visibilityParams:Object.entries(Sa).map((function(n){var e,t,r=(t=2,function(n){if(Array.isArray(n))return n}(e=n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,a,i=[],o=!0,s=!1;try{for(t=t.call(n);!(o=(r=t.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(n){s=!0,a=n}finally{try{o||null==t.return||t.return()}finally{if(s)throw a}}return i}}(e,t)||function(n,e){if(n){if("string"==typeof n)return Ia(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);return"Object"===t&&n.constructor&&(t=n.constructor.name),"Map"===t||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ia(n,e):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=r[0],i=r[1];return{id:a,appId:i.appId,displayId:i.displayId,visibility:i.visibility}})).sort(La),marginLeft:window.matchMedia("(min-width: 1600px)").matches?window.getComputedStyle(document.getElementById("vue-avatar-section")).getPropertyValue("width").trim():"0px"}},computed:{disabled:function(){return!this.profileEnabled},rows:function(){return Math.ceil(this.visibilityParams.length/2)}},mounted:function(){var n=this;(0,d.Ld)("settings:profile-enabled:updated",this.handleProfileEnabledUpdate),window.onresize=function(){n.marginLeft=window.matchMedia("(min-width: 1600px)").matches?window.getComputedStyle(document.getElementById("vue-avatar-section")).getPropertyValue("width").trim():"0px"}},beforeDestroy:function(){(0,d.r1)("settings:profile-enabled:updated",this.handleProfileEnabledUpdate)},methods:{handleProfileEnabledUpdate:function(n){this.profileEnabled=n}}},Ra=Da,Ba=r(29568),Na={};Na.styleTagTransform=N(),Na.setAttributes=L(),Na.insert=S().bind(null,"head"),Na.domAPI=j(),Na.insertStyleElement=R(),O()(Ba.Z,Na),Ba.Z&&Ba.Z.locals&&Ba.Z.locals;var Ta=(0,V.Z)(Ra,(function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("section",{style:{marginLeft:n.marginLeft},attrs:{id:"profile-visibility"}},[t("HeaderBar",{attrs:{readable:n.heading}}),n._v(" "),t("em",{class:{disabled:n.disabled}},[n._v("\n\t\t"+n._s(n.t("settings",'The more restrictive setting of either visibility or scope is respected on your Profile. For example, if visibility is set to "Show to everyone" and scope is set to "Private", "Private" is respected.'))+"\n\t")]),n._v(" "),t("div",{staticClass:"visibility-dropdowns",style:{gridTemplateRows:"repeat("+n.rows+", 44px)"}},n._l(n.visibilityParams,(function(e){return t("VisibilityDropdown",{key:e.id,attrs:{"param-id":e.id,"display-id":e.displayId,visibility:e.visibility},on:{"update:visibility":function(t){return n.$set(e,"visibility",t)}}})})),1)],1)}),[],!1,null,"23866271",null).exports;r.nc=btoa((0,i.getRequestToken)());var Za=(0,o.loadState)("settings","profileEnabledGlobally",!0);a.ZP.mixin({methods:{t:s.translate}});var Ma=a.ZP.extend(zn),Ua=a.ZP.extend(te),Fa=a.ZP.extend(Ce),za=a.ZP.extend(nt),Va=a.ZP.extend(st),$a=a.ZP.extend(At),Ha=a.ZP.extend(bt),Ga=a.ZP.extend(_t),qa=a.ZP.extend(kt),Ya=a.ZP.extend(Kt),Wa=a.ZP.extend(gr);if((new Ma).$mount("#vue-avatar-section"),(new Ua).$mount("#vue-details-section"),(new Fa).$mount("#vue-displayname-section"),(new za).$mount("#vue-email-section"),(new Va).$mount("#vue-phone-section"),(new $a).$mount("#vue-location-section"),(new Ha).$mount("#vue-website-section"),(new Ga).$mount("#vue-twitter-section"),(new qa).$mount("#vue-fediverse-section"),(new Ya).$mount("#vue-language-section"),(new Wa).$mount("#vue-locale-section"),Za){var Ka=a.ZP.extend(zr),Qa=a.ZP.extend(Yr),Ja=a.ZP.extend(na),Xa=a.ZP.extend(oa),ni=a.ZP.extend(pa),ei=a.ZP.extend(Ta);(new Ka).$mount("#vue-profile-section"),(new Qa).$mount("#vue-organisation-section"),(new Ja).$mount("#vue-role-section"),(new Xa).$mount("#vue-headline-section"),(new ni).$mount("#vue-biography-section"),(new ei).$mount("#vue-profile-visibility-section")}},38087:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,"section[data-v-53d0771f]{grid-row:1/3}.avatar__container[data-v-53d0771f]{margin:0 auto;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px 0;width:300px}.avatar__container span[data-v-53d0771f]{color:var(--color-text-lighter)}.avatar__preview[data-v-53d0771f]{display:flex;justify-content:center;align-items:center;width:180px;height:180px}.avatar__buttons[data-v-53d0771f]{display:flex;gap:0 10px}.avatar__cropper[data-v-53d0771f]{width:300px;height:300px;overflow:hidden}.avatar__cropper-buttons[data-v-53d0771f]{width:100%;display:flex;justify-content:space-between}.avatar__cropper[data-v-53d0771f] .cropper-view-box{border-radius:50%}input[type=file][data-v-53d0771f]{display:none}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/AvatarSection.vue"],names:[],mappings:"AAsRA,yBACC,YAAA,CAGA,oCACC,aAAA,CACA,YAAA,CACA,qBAAA,CACA,sBAAA,CACA,kBAAA,CACA,UAAA,CACA,WAAA,CAEA,yCACC,+BAAA,CAIF,kCACC,YAAA,CACA,sBAAA,CACA,kBAAA,CACA,WAAA,CACA,YAAA,CAGD,kCACC,YAAA,CACA,UAAA,CAGD,kCACC,WAAA,CACA,YAAA,CACA,eAAA,CAEA,0CACC,UAAA,CACA,YAAA,CACA,6BAAA,CAGD,oDACC,iBAAA,CAKH,kCACC,YAAA",sourcesContent:['\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nsection {\n\tgrid-row: 1/3;\n}\n.avatar {\n\t&__container {\n\t\tmargin: 0 auto;\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tgap: 16px 0;\n\t\twidth: 300px;\n\n\t\tspan {\n\t\t\tcolor: var(--color-text-lighter);\n\t\t}\n\t}\n\n\t&__preview {\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 180px;\n\t\theight: 180px;\n\t}\n\n\t&__buttons {\n\t\tdisplay: flex;\n\t\tgap: 0 10px;\n\t}\n\n\t&__cropper {\n\t\twidth: 300px;\n\t\theight: 300px;\n\t\toverflow: hidden;\n\n\t\t&-buttons {\n\t\t\twidth: 100%;\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: space-between;\n\t\t}\n\n\t\t&::v-deep .cropper-view-box {\n\t\t\tborder-radius: 50%;\n\t\t}\n\t}\n}\n\ninput[type="file"] {\n\tdisplay: none;\n}\n'],sourceRoot:""}]),e.Z=o},75849:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,".details[data-v-546e7ece]{display:flex;flex-direction:column;margin:10px 32px 10px 0;gap:16px 0;color:var(--color-text-lighter)}.details__groups[data-v-546e7ece],.details__quota[data-v-546e7ece]{display:flex;gap:0 10px}.details__groups-info[data-v-546e7ece],.details__quota-info[data-v-546e7ece]{display:flex;flex-direction:column;width:100%;gap:4px 0}.details__groups-list[data-v-546e7ece],.details__quota-list[data-v-546e7ece]{font-weight:bold}.details__groups[data-v-546e7ece] .material-design-icon,.details__quota[data-v-546e7ece] .material-design-icon{align-self:flex-start;margin-top:2px}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/DetailsSection.vue"],names:[],mappings:"AA8FA,0BACC,YAAA,CACA,qBAAA,CACA,uBAAA,CACA,UAAA,CACA,+BAAA,CAEA,mEAEC,YAAA,CACA,UAAA,CAEA,6EACC,YAAA,CACA,qBAAA,CACA,UAAA,CACA,SAAA,CAGD,6EACC,gBAAA,CAGD,+GACC,qBAAA,CACA,cAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.details {\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin: 10px 32px 10px 0;\n\tgap: 16px 0;\n\tcolor: var(--color-text-lighter);\n\n\t&__groups,\n\t&__quota {\n\t\tdisplay: flex;\n\t\tgap: 0 10px;\n\n\t\t&-info {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\twidth: 100%;\n\t\t\tgap: 4px 0;\n\t\t}\n\n\t\t&-list {\n\t\t\tfont-weight: bold;\n\t\t}\n\n\t\t&::v-deep .material-design-icon {\n\t\t\talign-self: flex-start;\n\t\t\tmargin-top: 2px;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),e.Z=o},98959:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,".email[data-v-ce46b900]{display:grid;align-items:center}.email input[data-v-ce46b900]{grid-area:1/1;width:100%}.email .email__actions-container[data-v-ce46b900]{grid-area:1/1;justify-self:flex-end;height:30px;display:flex;gap:0 2px;margin-right:5px}.email .email__actions-container .email__actions[data-v-ce46b900]{opacity:.4 !important}.email .email__actions-container .email__actions[data-v-ce46b900]:hover,.email .email__actions-container .email__actions[data-v-ce46b900]:focus,.email .email__actions-container .email__actions[data-v-ce46b900]:active{opacity:.8 !important}.email .email__actions-container .email__actions[data-v-ce46b900] button{height:30px !important;min-height:30px !important;width:30px !important;min-width:30px !important}.email__helper-text-message[data-v-ce46b900]{padding:4px 0;display:flex;align-items:center}.email__helper-text-message__icon[data-v-ce46b900]{margin-right:8px;align-self:start;margin-top:4px}.email__helper-text-message--error[data-v-ce46b900]{color:var(--color-error)}.fade-enter[data-v-ce46b900],.fade-leave-to[data-v-ce46b900]{opacity:0}.fade-enter-active[data-v-ce46b900]{transition:opacity 200ms ease-out}.fade-leave-active[data-v-ce46b900]{transition:opacity 300ms ease-out}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/EmailSection/Email.vue"],names:[],mappings:"AAuXA,wBACC,YAAA,CACA,kBAAA,CAEA,8BACC,aAAA,CACA,UAAA,CAGD,kDACC,aAAA,CACA,qBAAA,CACA,WAAA,CAEA,YAAA,CACA,SAAA,CACA,gBAAA,CAEA,kEACC,qBAAA,CAEA,yNAGC,qBAAA,CAGD,yEACC,sBAAA,CACA,0BAAA,CACA,qBAAA,CACA,yBAAA,CAKH,6CACC,aAAA,CACA,YAAA,CACA,kBAAA,CAEA,mDACC,gBAAA,CACA,gBAAA,CACA,cAAA,CAGD,oDACC,wBAAA,CAKH,6DAEC,SAAA,CAGD,oCACC,iCAAA,CAGD,oCACC,iCAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.email {\n\tdisplay: grid;\n\talign-items: center;\n\n\tinput {\n\t\tgrid-area: 1 / 1;\n\t\twidth: 100%;\n\t}\n\n\t.email__actions-container {\n\t\tgrid-area: 1 / 1;\n\t\tjustify-self: flex-end;\n\t\theight: 30px;\n\n\t\tdisplay: flex;\n\t\tgap: 0 2px;\n\t\tmargin-right: 5px;\n\n\t\t.email__actions {\n\t\t\topacity: 0.4 !important;\n\n\t\t\t&:hover,\n\t\t\t&:focus,\n\t\t\t&:active {\n\t\t\t\topacity: 0.8 !important;\n\t\t\t}\n\n\t\t\t&::v-deep button {\n\t\t\t\theight: 30px !important;\n\t\t\t\tmin-height: 30px !important;\n\t\t\t\twidth: 30px !important;\n\t\t\t\tmin-width: 30px !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__helper-text-message {\n\t\tpadding: 4px 0;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\n\t\t&__icon {\n\t\t\tmargin-right: 8px;\n\t\t\talign-self: start;\n\t\t\tmargin-top: 4px;\n\t\t}\n\n\t\t&--error {\n\t\t\tcolor: var(--color-error);\n\t\t}\n\t}\n}\n\n.fade-enter,\n.fade-leave-to {\n\topacity: 0;\n}\n\n.fade-enter-active {\n\ttransition: opacity 200ms ease-out;\n}\n\n.fade-leave-active {\n\ttransition: opacity 300ms ease-out;\n}\n"],sourceRoot:""}]),e.Z=o},38793:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,"section[data-v-3b8501a7]{padding:10px 10px}section[data-v-3b8501a7] button:disabled{cursor:default}section .additional-emails-label[data-v-3b8501a7]{display:block;margin-top:16px}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/EmailSection/EmailSection.vue"],names:[],mappings:"AAyMA,yBACC,iBAAA,CAEA,yCACC,cAAA,CAGD,kDACC,aAAA,CACA,eAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nsection {\n\tpadding: 10px 10px;\n\n\t&::v-deep button:disabled {\n\t\tcursor: default;\n\t}\n\n\t.additional-emails-label {\n\t\tdisplay: block;\n\t\tmargin-top: 16px;\n\t}\n}\n"],sourceRoot:""}]),e.Z=o},79818:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,".language[data-v-6e196b5c]{display:grid}.language select[data-v-6e196b5c]{width:100%}.language a[data-v-6e196b5c]{color:var(--color-main-text);text-decoration:none;width:max-content}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/LanguageSection/Language.vue"],names:[],mappings:"AAoJA,2BACC,YAAA,CAEA,kCACC,UAAA,CAGD,6BACC,4BAAA,CACA,oBAAA,CACA,iBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.language {\n\tdisplay: grid;\n\n\tselect {\n\t\twidth: 100%;\n\t}\n\n\ta {\n\t\tcolor: var(--color-main-text);\n\t\ttext-decoration: none;\n\t\twidth: max-content;\n\t}\n}\n"],sourceRoot:""}]),e.Z=o},14703:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,"section[data-v-92685b76]{padding:10px 10px}section[data-v-92685b76] button:disabled{cursor:default}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/LanguageSection/LanguageSection.vue"],names:[],mappings:"AAgFA,yBACC,iBAAA,CAEA,yCACC,cAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nsection {\n\tpadding: 10px 10px;\n\n\t&::v-deep button:disabled {\n\t\tcursor: default;\n\t}\n}\n"],sourceRoot:""}]),e.Z=o},59808:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,".locale[data-v-545055d8]{display:grid}.locale select[data-v-545055d8]{width:100%}.example[data-v-545055d8]{margin:10px 0;display:flex;gap:0 10px;color:var(--color-text-lighter)}.example[data-v-545055d8] .material-design-icon{align-self:flex-start;margin-top:2px}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/LocaleSection/Locale.vue"],names:[],mappings:"AAkLA,yBACC,YAAA,CAEA,gCACC,UAAA,CAIF,0BACC,aAAA,CACA,YAAA,CACA,UAAA,CACA,+BAAA,CAEA,gDACC,qBAAA,CACA,cAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.locale {\n\tdisplay: grid;\n\n\tselect {\n\t\twidth: 100%;\n\t}\n}\n\n.example {\n\tmargin: 10px 0;\n\tdisplay: flex;\n\tgap: 0 10px;\n\tcolor: var(--color-text-lighter);\n\n\t&::v-deep .material-design-icon {\n\t\talign-self: flex-start;\n\t\tmargin-top: 2px;\n\t}\n}\n"],sourceRoot:""}]),e.Z=o},78172:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,"section[data-v-84fca724]{padding:10px 10px}section[data-v-84fca724] button:disabled{cursor:default}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/LocaleSection/LocaleSection.vue"],names:[],mappings:"AAgFA,yBACC,iBAAA,CAEA,yCACC,cAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nsection {\n\tpadding: 10px 10px;\n\n\t&::v-deep button:disabled {\n\t\tcursor: default;\n\t}\n}\n"],sourceRoot:""}]),e.Z=o},61434:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,"html{scroll-behavior:smooth}@media screen and (prefers-reduced-motion: reduce){html{scroll-behavior:auto}}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/ProfileSection/EditProfileAnchorLink.vue"],names:[],mappings:"AA0DA,KACC,sBAAA,CAEA,mDAHD,KAIE,oBAAA,CAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nhtml {\n\tscroll-behavior: smooth;\n\n\t@media screen and (prefers-reduced-motion: reduce) {\n\t\tscroll-behavior: auto;\n\t}\n}\n"],sourceRoot:""}]),e.Z=o},77467:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,"a[data-v-1950be88]{display:block;height:44px;width:290px;line-height:44px;padding:0 16px;margin:14px auto;border-radius:var(--border-radius-pill);opacity:.4;background-color:rgba(0,0,0,0)}a .anchor-icon[data-v-1950be88]{display:inline-block;vertical-align:middle;margin-top:6px;margin-right:8px}a[data-v-1950be88]:hover,a[data-v-1950be88]:focus,a[data-v-1950be88]:active{opacity:.8;background-color:rgba(127,127,127,.25)}a.disabled[data-v-1950be88]{pointer-events:none}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/ProfileSection/EditProfileAnchorLink.vue"],names:[],mappings:"AAoEA,mBACC,aAAA,CACA,WAAA,CACA,WAAA,CACA,gBAAA,CACA,cAAA,CACA,gBAAA,CACA,uCAAA,CACA,UAAA,CACA,8BAAA,CAEA,gCACC,oBAAA,CACA,qBAAA,CACA,cAAA,CACA,gBAAA,CAGD,4EAGC,UAAA,CACA,sCAAA,CAGD,4BACC,mBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\na {\n\tdisplay: block;\n\theight: 44px;\n\twidth: 290px;\n\tline-height: 44px;\n\tpadding: 0 16px;\n\tmargin: 14px auto;\n\tborder-radius: var(--border-radius-pill);\n\topacity: 0.4;\n\tbackground-color: transparent;\n\n\t.anchor-icon {\n\t\tdisplay: inline-block;\n\t\tvertical-align: middle;\n\t\tmargin-top: 6px;\n\t\tmargin-right: 8px;\n\t}\n\n\t&:hover,\n\t&:focus,\n\t&:active {\n\t\topacity: 0.8;\n\t\tbackground-color: rgba(127, 127, 127, .25);\n\t}\n\n\t&.disabled {\n\t\tpointer-events: none;\n\t}\n}\n"],sourceRoot:""}]),e.Z=o},23567:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,".preview-card[data-v-e1d38ee8]{display:flex;flex-direction:column;position:relative;width:290px;height:116px;margin:14px auto;border-radius:var(--border-radius-large);background-color:var(--color-main-background);font-weight:bold;box-shadow:0 2px 9px var(--color-box-shadow)}.preview-card[data-v-e1d38ee8]:hover,.preview-card[data-v-e1d38ee8]:focus,.preview-card[data-v-e1d38ee8]:active{box-shadow:0 2px 12px var(--color-box-shadow)}.preview-card[data-v-e1d38ee8]:focus-visible{outline:var(--color-main-text) solid 1px;outline-offset:3px}.preview-card.disabled[data-v-e1d38ee8]{filter:grayscale(1);opacity:.5;cursor:default;box-shadow:0 0 3px var(--color-box-shadow)}.preview-card.disabled *[data-v-e1d38ee8],.preview-card.disabled[data-v-e1d38ee8] *{cursor:default}.preview-card__avatar[data-v-e1d38ee8]{position:absolute !important;top:40px;left:18px;z-index:1}.preview-card__avatar[data-v-e1d38ee8]:not(.avatardiv--unknown){box-shadow:0 0 0 3px var(--color-main-background) !important}.preview-card__header[data-v-e1d38ee8],.preview-card__footer[data-v-e1d38ee8]{position:relative;width:auto}.preview-card__header span[data-v-e1d38ee8],.preview-card__footer span[data-v-e1d38ee8]{position:absolute;left:78px;overflow:hidden;text-overflow:ellipsis;overflow-wrap:anywhere}@supports(-webkit-line-clamp: 2){.preview-card__header span[data-v-e1d38ee8],.preview-card__footer span[data-v-e1d38ee8]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}}.preview-card__header[data-v-e1d38ee8]{height:70px;border-radius:var(--border-radius-large) var(--border-radius-large) 0 0;background-color:var(--color-primary);background-image:var(--gradient-primary-background)}.preview-card__header span[data-v-e1d38ee8]{bottom:0;color:var(--color-primary-text);font-size:18px;font-weight:bold;margin:0 4px 8px 0}.preview-card__footer[data-v-e1d38ee8]{height:46px}.preview-card__footer span[data-v-e1d38ee8]{top:0;color:var(--color-text-maxcontrast);font-size:14px;font-weight:normal;margin:4px 4px 0 0;line-height:1.3}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/ProfileSection/ProfilePreviewCard.vue"],names:[],mappings:"AA6FA,+BACC,YAAA,CACA,qBAAA,CACA,iBAAA,CACA,WAAA,CACA,YAAA,CACA,gBAAA,CACA,wCAAA,CACA,6CAAA,CACA,gBAAA,CACA,4CAAA,CAEA,gHAGC,6CAAA,CAGD,6CACC,wCAAA,CACA,kBAAA,CAGD,wCACC,mBAAA,CACA,UAAA,CACA,cAAA,CACA,0CAAA,CAEA,oFAEC,cAAA,CAIF,uCAEC,4BAAA,CACA,QAAA,CACA,SAAA,CACA,SAAA,CAEA,gEACC,4DAAA,CAIF,8EAEC,iBAAA,CACA,UAAA,CAEA,wFACC,iBAAA,CACA,SAAA,CACA,eAAA,CACA,sBAAA,CACA,sBAAA,CAEA,iCAPD,wFAQE,mBAAA,CACA,oBAAA,CACA,2BAAA,CAAA,CAKH,uCACC,WAAA,CACA,uEAAA,CACA,qCAAA,CACA,mDAAA,CAEA,4CACC,QAAA,CACA,+BAAA,CACA,cAAA,CACA,gBAAA,CACA,kBAAA,CAIF,uCACC,WAAA,CAEA,4CACC,KAAA,CACA,mCAAA,CACA,cAAA,CACA,kBAAA,CACA,kBAAA,CACA,eAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.preview-card {\n\tdisplay: flex;\n\tflex-direction: column;\n\tposition: relative;\n\twidth: 290px;\n\theight: 116px;\n\tmargin: 14px auto;\n\tborder-radius: var(--border-radius-large);\n\tbackground-color: var(--color-main-background);\n\tfont-weight: bold;\n\tbox-shadow: 0 2px 9px var(--color-box-shadow);\n\n\t&:hover,\n\t&:focus,\n\t&:active {\n\t\tbox-shadow: 0 2px 12px var(--color-box-shadow);\n\t}\n\n\t&:focus-visible {\n\t\toutline: var(--color-main-text) solid 1px;\n\t\toutline-offset: 3px;\n\t}\n\n\t&.disabled {\n\t\tfilter: grayscale(1);\n\t\topacity: 0.5;\n\t\tcursor: default;\n\t\tbox-shadow: 0 0 3px var(--color-box-shadow);\n\n\t\t& *,\n\t\t&::v-deep * {\n\t\t\tcursor: default;\n\t\t}\n\t}\n\n\t&__avatar {\n\t\t// Override Avatar component position to fix positioning on rerender\n\t\tposition: absolute !important;\n\t\ttop: 40px;\n\t\tleft: 18px;\n\t\tz-index: 1;\n\n\t\t&:not(.avatardiv--unknown) {\n\t\t\tbox-shadow: 0 0 0 3px var(--color-main-background) !important;\n\t\t}\n\t}\n\n\t&__header,\n\t&__footer {\n\t\tposition: relative;\n\t\twidth: auto;\n\n\t\tspan {\n\t\t\tposition: absolute;\n\t\t\tleft: 78px;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow-wrap: anywhere;\n\n\t\t\t@supports (-webkit-line-clamp: 2) {\n\t\t\t\tdisplay: -webkit-box;\n\t\t\t\t-webkit-line-clamp: 2;\n\t\t\t\t-webkit-box-orient: vertical;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__header {\n\t\theight: 70px;\n\t\tborder-radius: var(--border-radius-large) var(--border-radius-large) 0 0;\n\t\tbackground-color: var(--color-primary);\n\t\tbackground-image: var(--gradient-primary-background);\n\n\t\tspan {\n\t\t\tbottom: 0;\n\t\t\tcolor: var(--color-primary-text);\n\t\t\tfont-size: 18px;\n\t\t\tfont-weight: bold;\n\t\t\tmargin: 0 4px 8px 0;\n\t\t}\n\t}\n\n\t&__footer {\n\t\theight: 46px;\n\n\t\tspan {\n\t\t\ttop: 0;\n\t\t\tcolor: var(--color-text-maxcontrast);\n\t\t\tfont-size: 14px;\n\t\t\tfont-weight: normal;\n\t\t\tmargin: 4px 4px 0 0;\n\t\t\tline-height: 1.3;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]),e.Z=o},67964:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,"section[data-v-cf64d964]{padding:10px 10px}section[data-v-cf64d964] button:disabled{cursor:default}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/ProfileSection/ProfileSection.vue"],names:[],mappings:"AAkGA,yBACC,iBAAA,CAEA,yCACC,cAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nsection {\n\tpadding: 10px 10px;\n\n\t&::v-deep button:disabled {\n\t\tcursor: default;\n\t}\n}\n"],sourceRoot:""}]),e.Z=o},29568:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,"section[data-v-23866271]{padding:30px;max-width:900px;width:100%}section em[data-v-23866271]{display:block;margin:16px 0}section em.disabled[data-v-23866271]{filter:grayscale(1);opacity:.5;cursor:default;pointer-events:none}section em.disabled *[data-v-23866271],section em.disabled[data-v-23866271] *{cursor:default;pointer-events:none}section .visibility-dropdowns[data-v-23866271]{display:grid;gap:10px 40px}@media(min-width: 1200px){section[data-v-23866271]{width:940px}section .visibility-dropdowns[data-v-23866271]{grid-auto-flow:column}}@media(max-width: 1200px){section[data-v-23866271]{width:470px}}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/ProfileVisibilitySection/ProfileVisibilitySection.vue"],names:[],mappings:"AAyHA,yBACC,YAAA,CACA,eAAA,CACA,UAAA,CAEA,4BACC,aAAA,CACA,aAAA,CAEA,qCACC,mBAAA,CACA,UAAA,CACA,cAAA,CACA,mBAAA,CAEA,8EAEC,cAAA,CACA,mBAAA,CAKH,+CACC,YAAA,CACA,aAAA,CAGD,0BA5BD,yBA6BE,WAAA,CAEA,+CACC,qBAAA,CAAA,CAIF,0BApCD,yBAqCE,WAAA,CAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nsection {\n\tpadding: 30px;\n\tmax-width: 900px;\n\twidth: 100%;\n\n\tem {\n\t\tdisplay: block;\n\t\tmargin: 16px 0;\n\n\t\t&.disabled {\n\t\t\tfilter: grayscale(1);\n\t\t\topacity: 0.5;\n\t\t\tcursor: default;\n\t\t\tpointer-events: none;\n\n\t\t\t& *,\n\t\t\t&::v-deep * {\n\t\t\t\tcursor: default;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t.visibility-dropdowns {\n\t\tdisplay: grid;\n\t\tgap: 10px 40px;\n\t}\n\n\t@media (min-width: 1200px) {\n\t\twidth: 940px;\n\n\t\t.visibility-dropdowns {\n\t\t\tgrid-auto-flow: column;\n\t\t}\n\t}\n\n\t@media (max-width: 1200px) {\n\t\twidth: 470px;\n\t}\n}\n"],sourceRoot:""}]),e.Z=o},14930:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,".visibility-container[data-v-3cddb756]{display:flex;width:max-content}.visibility-container.disabled[data-v-3cddb756]{filter:grayscale(1);opacity:.5;cursor:default;pointer-events:none}.visibility-container.disabled *[data-v-3cddb756],.visibility-container.disabled[data-v-3cddb756] *{cursor:default;pointer-events:none}.visibility-container label[data-v-3cddb756]{color:var(--color-text-lighter);width:150px;line-height:50px}.visibility-container__multiselect[data-v-3cddb756]{width:260px;max-width:40vw}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/ProfileVisibilitySection/VisibilityDropdown.vue"],names:[],mappings:"AAwJA,uCACC,YAAA,CACA,iBAAA,CAEA,gDACC,mBAAA,CACA,UAAA,CACA,cAAA,CACA,mBAAA,CAEA,oGAEC,cAAA,CACA,mBAAA,CAIF,6CACC,+BAAA,CACA,WAAA,CACA,gBAAA,CAGD,oDACC,WAAA,CACA,cAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.visibility-container {\n\tdisplay: flex;\n\twidth: max-content;\n\n\t&.disabled {\n\t\tfilter: grayscale(1);\n\t\topacity: 0.5;\n\t\tcursor: default;\n\t\tpointer-events: none;\n\n\t\t& *,\n\t\t&::v-deep * {\n\t\t\tcursor: default;\n\t\t\tpointer-events: none;\n\t\t}\n\t}\n\n\tlabel {\n\t\tcolor: var(--color-text-lighter);\n\t\twidth: 150px;\n\t\tline-height: 50px;\n\t}\n\n\t&__multiselect {\n\t\twidth: 260px;\n\t\tmax-width: 40vw;\n\t}\n}\n"],sourceRoot:""}]),e.Z=o},11724:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,"section[data-v-2943fbd4]{padding:10px 10px}section[data-v-2943fbd4] button:disabled{cursor:default}section .property[data-v-2943fbd4]{display:grid;align-items:center}section .property textarea[data-v-2943fbd4]{resize:vertical;grid-area:1/1;width:100%}section .property input[data-v-2943fbd4]{grid-area:1/1;width:100%}section .property .property__actions-container[data-v-2943fbd4]{grid-area:1/1;justify-self:flex-end;align-self:flex-end;height:30px;display:flex;gap:0 2px;margin-right:5px;margin-bottom:5px}section .property__helper-text-message[data-v-2943fbd4]{padding:4px 0;display:flex;align-items:center}section .property__helper-text-message__icon[data-v-2943fbd4]{margin-right:8px;align-self:start;margin-top:4px}section .property__helper-text-message--error[data-v-2943fbd4]{color:var(--color-error)}section .fade-enter[data-v-2943fbd4],section .fade-leave-to[data-v-2943fbd4]{opacity:0}section .fade-enter-active[data-v-2943fbd4]{transition:opacity 200ms ease-out}section .fade-leave-active[data-v-2943fbd4]{transition:opacity 300ms ease-out}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/shared/AccountPropertySection.vue"],names:[],mappings:"AAiNA,yBACC,iBAAA,CAEA,yCACC,cAAA,CAGD,mCACC,YAAA,CACA,kBAAA,CAEA,4CACC,eAAA,CACA,aAAA,CACA,UAAA,CAGD,yCACC,aAAA,CACA,UAAA,CAGD,gEACC,aAAA,CACA,qBAAA,CACA,mBAAA,CACA,WAAA,CAEA,YAAA,CACA,SAAA,CACA,gBAAA,CACA,iBAAA,CAIF,wDACC,aAAA,CACA,YAAA,CACA,kBAAA,CAEA,8DACC,gBAAA,CACA,gBAAA,CACA,cAAA,CAGD,+DACC,wBAAA,CAIF,6EAEC,SAAA,CAGD,4CACC,iCAAA,CAGD,4CACC,iCAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nsection {\n\tpadding: 10px 10px;\n\n\t&::v-deep button:disabled {\n\t\tcursor: default;\n\t}\n\n\t.property {\n\t\tdisplay: grid;\n\t\talign-items: center;\n\n\t\ttextarea {\n\t\t\tresize: vertical;\n\t\t\tgrid-area: 1 / 1;\n\t\t\twidth: 100%;\n\t\t}\n\n\t\tinput {\n\t\t\tgrid-area: 1 / 1;\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t.property__actions-container {\n\t\t\tgrid-area: 1 / 1;\n\t\t\tjustify-self: flex-end;\n\t\t\talign-self: flex-end;\n\t\t\theight: 30px;\n\n\t\t\tdisplay: flex;\n\t\t\tgap: 0 2px;\n\t\t\tmargin-right: 5px;\n\t\t\tmargin-bottom: 5px;\n\t\t}\n\t}\n\n\t.property__helper-text-message {\n\t\tpadding: 4px 0;\n\t\tdisplay: flex;\n\t\talign-items: center;\n\n\t\t&__icon {\n\t\t\tmargin-right: 8px;\n\t\t\talign-self: start;\n\t\t\tmargin-top: 4px;\n\t\t}\n\n\t\t&--error {\n\t\t\tcolor: var(--color-error);\n\t\t}\n\t}\n\n\t.fade-enter,\n\t.fade-leave-to {\n\t\topacity: 0;\n\t}\n\n\t.fade-enter-active {\n\t\ttransition: opacity 200ms ease-out;\n\t}\n\n\t.fade-leave-active {\n\t\ttransition: opacity 300ms ease-out;\n\t}\n}\n"],sourceRoot:""}]),e.Z=o},31816:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,".federation-actions[data-v-186f12d2],.federation-actions--additional[data-v-186f12d2]{opacity:.4 !important}.federation-actions[data-v-186f12d2]:hover,.federation-actions[data-v-186f12d2]:focus,.federation-actions[data-v-186f12d2]:active,.federation-actions--additional[data-v-186f12d2]:hover,.federation-actions--additional[data-v-186f12d2]:focus,.federation-actions--additional[data-v-186f12d2]:active{opacity:.8 !important}.federation-actions--additional[data-v-186f12d2] button{padding-bottom:7px;height:30px !important;min-height:30px !important;width:30px !important;min-width:30px !important}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/shared/FederationControl.vue"],names:[],mappings:"AAsMA,sFAEC,qBAAA,CAEA,wSAGC,qBAAA,CAKD,wDAEC,kBAAA,CACA,sBAAA,CACA,0BAAA,CACA,qBAAA,CACA,yBAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.federation-actions,\n.federation-actions--additional {\n\topacity: 0.4 !important;\n\n\t&:hover,\n\t&:focus,\n\t&:active {\n\t\topacity: 0.8 !important;\n\t}\n}\n\n.federation-actions--additional {\n\t&::v-deep button {\n\t\t// TODO remove this hack\n\t\tpadding-bottom: 7px;\n\t\theight: 30px !important;\n\t\tmin-height: 30px !important;\n\t\twidth: 30px !important;\n\t\tmin-width: 30px !important;\n\t}\n}\n"],sourceRoot:""}]),e.Z=o},43058:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,".federation-actions__btn[data-v-1249785e] p{width:150px !important;padding:8px 0 !important;color:var(--color-main-text) !important;font-size:12.8px !important;line-height:1.5em !important}.federation-actions__btn--active[data-v-1249785e]{background-color:var(--color-primary-light) !important;box-shadow:inset 2px 0 var(--color-primary) !important}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/shared/FederationControlAction.vue"],names:[],mappings:"AA0FC,4CACC,sBAAA,CACA,wBAAA,CACA,uCAAA,CACA,2BAAA,CACA,4BAAA,CAIF,kDACC,sDAAA,CACA,sDAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n.federation-actions__btn {\n\t&::v-deep p {\n\t\twidth: 150px !important;\n\t\tpadding: 8px 0 !important;\n\t\tcolor: var(--color-main-text) !important;\n\t\tfont-size: 12.8px !important;\n\t\tline-height: 1.5em !important;\n\t}\n}\n\n.federation-actions__btn--active {\n\tbackground-color: var(--color-primary-light) !important;\n\tbox-shadow: inset 2px 0 var(--color-primary) !important;\n}\n"],sourceRoot:""}]),e.Z=o},58728:function(n,e,t){"use strict";var r=t(87537),a=t.n(r),i=t(23645),o=t.n(i)()(a());o.push([n.id,"h3[data-v-8094b2e6]{display:inline-flex;width:100%;margin:12px 0 0 0;gap:8px;align-items:center;font-size:16px;color:var(--color-text-light)}h3.profile-property[data-v-8094b2e6]{height:38px}h3.setting-property[data-v-8094b2e6]{height:44px}h3 label[data-v-8094b2e6]{cursor:pointer}.federation-control[data-v-8094b2e6]{margin:0}.button-vue[data-v-8094b2e6]{margin:0 0 0 auto !important}","",{version:3,sources:["webpack://./apps/settings/src/components/PersonalInfo/shared/HeaderBar.vue"],names:[],mappings:"AA8HA,oBACC,mBAAA,CACA,UAAA,CACA,iBAAA,CACA,OAAA,CACA,kBAAA,CACA,cAAA,CACA,6BAAA,CAEA,qCACC,WAAA,CAGD,qCACC,WAAA,CAGD,0BACC,cAAA,CAIF,qCACC,QAAA,CAGD,6BACC,4BAAA",sourcesContent:["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nh3 {\n\tdisplay: inline-flex;\n\twidth: 100%;\n\tmargin: 12px 0 0 0;\n\tgap: 8px;\n\talign-items: center;\n\tfont-size: 16px;\n\tcolor: var(--color-text-light);\n\n\t&.profile-property {\n\t\theight: 38px;\n\t}\n\n\t&.setting-property {\n\t\theight: 44px;\n\t}\n\n\tlabel {\n\t\tcursor: pointer;\n\t}\n}\n\n.federation-control {\n\tmargin: 0;\n}\n\n.button-vue {\n\tmargin: 0 0 0 auto !important;\n}\n"],sourceRoot:""}]),e.Z=o},46700:function(n,e,t){var r={"./af":42786,"./af.js":42786,"./ar":30867,"./ar-dz":14130,"./ar-dz.js":14130,"./ar-kw":96135,"./ar-kw.js":96135,"./ar-ly":56440,"./ar-ly.js":56440,"./ar-ma":47702,"./ar-ma.js":47702,"./ar-sa":16040,"./ar-sa.js":16040,"./ar-tn":37100,"./ar-tn.js":37100,"./ar.js":30867,"./az":31083,"./az.js":31083,"./be":9808,"./be.js":9808,"./bg":68338,"./bg.js":68338,"./bm":67438,"./bm.js":67438,"./bn":8905,"./bn-bd":76225,"./bn-bd.js":76225,"./bn.js":8905,"./bo":11560,"./bo.js":11560,"./br":1278,"./br.js":1278,"./bs":80622,"./bs.js":80622,"./ca":2468,"./ca.js":2468,"./cs":5822,"./cs.js":5822,"./cv":50877,"./cv.js":50877,"./cy":47373,"./cy.js":47373,"./da":24780,"./da.js":24780,"./de":59740,"./de-at":60217,"./de-at.js":60217,"./de-ch":60894,"./de-ch.js":60894,"./de.js":59740,"./dv":5300,"./dv.js":5300,"./el":50837,"./el.js":50837,"./en-au":78348,"./en-au.js":78348,"./en-ca":77925,"./en-ca.js":77925,"./en-gb":22243,"./en-gb.js":22243,"./en-ie":46436,"./en-ie.js":46436,"./en-il":47207,"./en-il.js":47207,"./en-in":44175,"./en-in.js":44175,"./en-nz":76319,"./en-nz.js":76319,"./en-sg":31662,"./en-sg.js":31662,"./eo":92915,"./eo.js":92915,"./es":55655,"./es-do":55251,"./es-do.js":55251,"./es-mx":96112,"./es-mx.js":96112,"./es-us":71146,"./es-us.js":71146,"./es.js":55655,"./et":5603,"./et.js":5603,"./eu":77763,"./eu.js":77763,"./fa":76959,"./fa.js":76959,"./fi":11897,"./fi.js":11897,"./fil":42549,"./fil.js":42549,"./fo":94694,"./fo.js":94694,"./fr":94470,"./fr-ca":63049,"./fr-ca.js":63049,"./fr-ch":52330,"./fr-ch.js":52330,"./fr.js":94470,"./fy":5044,"./fy.js":5044,"./ga":29295,"./ga.js":29295,"./gd":2101,"./gd.js":2101,"./gl":38794,"./gl.js":38794,"./gom-deva":27884,"./gom-deva.js":27884,"./gom-latn":23168,"./gom-latn.js":23168,"./gu":95349,"./gu.js":95349,"./he":24206,"./he.js":24206,"./hi":30094,"./hi.js":30094,"./hr":30316,"./hr.js":30316,"./hu":22138,"./hu.js":22138,"./hy-am":11423,"./hy-am.js":11423,"./id":29218,"./id.js":29218,"./is":90135,"./is.js":90135,"./it":90626,"./it-ch":10150,"./it-ch.js":10150,"./it.js":90626,"./ja":39183,"./ja.js":39183,"./jv":24286,"./jv.js":24286,"./ka":12105,"./ka.js":12105,"./kk":47772,"./kk.js":47772,"./km":18758,"./km.js":18758,"./kn":79282,"./kn.js":79282,"./ko":33730,"./ko.js":33730,"./ku":1408,"./ku.js":1408,"./ky":33291,"./ky.js":33291,"./lb":36841,"./lb.js":36841,"./lo":55466,"./lo.js":55466,"./lt":57010,"./lt.js":57010,"./lv":37595,"./lv.js":37595,"./me":39861,"./me.js":39861,"./mi":35493,"./mi.js":35493,"./mk":95966,"./mk.js":95966,"./ml":87341,"./ml.js":87341,"./mn":5115,"./mn.js":5115,"./mr":10370,"./mr.js":10370,"./ms":9847,"./ms-my":41237,"./ms-my.js":41237,"./ms.js":9847,"./mt":72126,"./mt.js":72126,"./my":56165,"./my.js":56165,"./nb":64924,"./nb.js":64924,"./ne":16744,"./ne.js":16744,"./nl":93901,"./nl-be":59814,"./nl-be.js":59814,"./nl.js":93901,"./nn":83877,"./nn.js":83877,"./oc-lnc":92135,"./oc-lnc.js":92135,"./pa-in":15858,"./pa-in.js":15858,"./pl":64495,"./pl.js":64495,"./pt":89520,"./pt-br":57971,"./pt-br.js":57971,"./pt.js":89520,"./ro":96459,"./ro.js":96459,"./ru":21793,"./ru.js":21793,"./sd":40950,"./sd.js":40950,"./se":10490,"./se.js":10490,"./si":90124,"./si.js":90124,"./sk":64249,"./sk.js":64249,"./sl":14985,"./sl.js":14985,"./sq":51104,"./sq.js":51104,"./sr":49131,"./sr-cyrl":79915,"./sr-cyrl.js":79915,"./sr.js":49131,"./ss":85893,"./ss.js":85893,"./sv":98760,"./sv.js":98760,"./sw":91172,"./sw.js":91172,"./ta":27333,"./ta.js":27333,"./te":23110,"./te.js":23110,"./tet":52095,"./tet.js":52095,"./tg":27321,"./tg.js":27321,"./th":9041,"./th.js":9041,"./tk":19005,"./tk.js":19005,"./tl-ph":75768,"./tl-ph.js":75768,"./tlh":89444,"./tlh.js":89444,"./tr":72397,"./tr.js":72397,"./tzl":28254,"./tzl.js":28254,"./tzm":51106,"./tzm-latn":30699,"./tzm-latn.js":30699,"./tzm.js":51106,"./ug-cn":9288,"./ug-cn.js":9288,"./uk":67691,"./uk.js":67691,"./ur":13795,"./ur.js":13795,"./uz":6791,"./uz-latn":60588,"./uz-latn.js":60588,"./uz.js":6791,"./vi":65666,"./vi.js":65666,"./x-pseudo":14378,"./x-pseudo.js":14378,"./yo":75805,"./yo.js":75805,"./zh-cn":83839,"./zh-cn.js":83839,"./zh-hk":55726,"./zh-hk.js":55726,"./zh-mo":99807,"./zh-mo.js":99807,"./zh-tw":74152,"./zh-tw.js":74152};function a(n){var e=i(n);return t(e)}function i(n){if(!t.o(r,n)){var e=new Error("Cannot find module '"+n+"'");throw e.code="MODULE_NOT_FOUND",e}return r[n]}a.keys=function(){return Object.keys(r)},a.resolve=i,n.exports=a,a.id=46700},8738:function(n){"use strict";n.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC"},81490:function(n){"use strict";n.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTYiIHdpZHRoPSIxNiI+CiAgPHBhdGggZD0iTTE0IDEyLjNMMTIuMyAxNCA4IDkuNyAzLjcgMTQgMiAxMi4zIDYuMyA4IDIgMy43IDMuNyAyIDggNi4zIDEyLjMgMiAxNCAzLjcgOS43IDh6Ii8+Cjwvc3ZnPgo="},90888:function(n){"use strict";n.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTYiIHdpZHRoPSIxNiI+CiAgPHBhdGggZD0iTTE0IDEyLjNMMTIuMyAxNCA4IDkuNyAzLjcgMTQgMiAxMi4zIDYuMyA4IDIgMy43IDMuNyAyIDggNi4zIDEyLjMgMiAxNCAzLjcgOS43IDh6IiBzdHlsZT0iZmlsbC1vcGFjaXR5OjE7ZmlsbDojZmZmZmZmIi8+Cjwvc3ZnPgo="}},r={};function a(n){var t=r[n];if(void 0!==t)return t.exports;var i=r[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,a),i.loaded=!0,i.exports}a.m=e,a.amdD=function(){throw new Error("define cannot be used indirect")},a.amdO={},n=[],a.O=function(e,t,r,i){if(!t){var o=1/0;for(u=0;u<n.length;u++){t=n[u][0],r=n[u][1],i=n[u][2];for(var s=!0,l=0;l<t.length;l++)(!1&i||o>=i)&&Object.keys(a.O).every((function(n){return a.O[n](t[l])}))?t.splice(l--,1):(s=!1,i<o&&(o=i));if(s){n.splice(u--,1);var c=r();void 0!==c&&(e=c)}}return e}i=i||0;for(var u=n.length;u>0&&n[u-1][2]>i;u--)n[u]=n[u-1];n[u]=[t,r,i]},a.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return a.d(e,{a:e}),e},a.d=function(n,e){for(var t in e)a.o(e,t)&&!a.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),a.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},a.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},a.nmd=function(n){return n.paths=[],n.children||(n.children=[]),n},a.j=4418,function(){a.b=document.baseURI||self.location.href;var n={4418:0};a.O.j=function(e){return 0===n[e]};var e=function(e,t){var r,i,o=t[0],s=t[1],l=t[2],c=0;if(o.some((function(e){return 0!==n[e]}))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(l)var u=l(a)}for(e&&e(t);c<o.length;c++)i=o[c],a.o(n,i)&&n[i]&&n[i][0](),n[i]=0;return a.O(u)},t=self.webpackChunknextcloud=self.webpackChunknextcloud||[];t.forEach(e.bind(null,0)),t.push=e.bind(null,t.push.bind(t))}(),a.nc=void 0;var i=a.O(void 0,[7874],(function(){return a(98522)}));i=a.O(i)}();
  3. //# sourceMappingURL=settings-vue-settings-personal-info.js.map?v=60a990a840343c1cf542