/*! For license information please see settings-vue-settings-personal-info.js.LICENSE.txt */ !function(){"use strict";var n,e={30117:function(n,e,r){var a=r(20144),i=r(22200),o=r(16453),s=r(9944),l=(r(73317),r(74854)),c=r(20296),u=r.n(c),d=r(26932),p=r(14625),A=r(89897),f=r(10861),m=r.n(f),v=r(40502),g=r(12945),b=r.n(g),h=r(45400),y=r.n(h),C={name:"FederationControlAction",components:{NcActionButton:y()},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)}}},x=r(93379),E=r.n(x),w=r(7795),O=r.n(w),P=r(90569),I=r.n(P),S=r(3565),_=r.n(S),k=r(19216),L=r.n(k),R=r(44589),D=r.n(R),j=r(43058),B={};B.styleTagTransform=D(),B.setAttributes=_(),B.insert=I().bind(null,"head"),B.domAPI=O(),B.insertStyleElement=L(),E()(j.Z,B),j.Z&&j.Z.locals&&j.Z.locals;var N,T,Z,U,M=r(51900),F=(0,M.Z)(C,(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),V=F.exports;function $(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var H=Object.freeze({ADDRESS:"address",AVATAR:"avatar",BIOGRAPHY:"biography",DISPLAYNAME:"displayname",EMAIL_COLLECTION:"additional_mail",EMAIL:"email",HEADLINE:"headline",NOTIFICATION_EMAIL:"notify_email",ORGANISATION:"organisation",PHONE:"phone",PROFILE_ENABLED:"profile_enabled",ROLE:"role",TWITTER:"twitter",WEBSITE:"website"}),G=Object.freeze({ADDRESS:(0,s.translate)("settings","Location"),AVATAR:(0,s.translate)("settings","Avatar"),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"),WEBSITE:(0,s.translate)("settings","Website")}),q=Object.freeze(($(N={},H.ADDRESS,G.ADDRESS),$(N,H.AVATAR,G.AVATAR),$(N,H.BIOGRAPHY,G.BIOGRAPHY),$(N,H.DISPLAYNAME,G.DISPLAYNAME),$(N,H.EMAIL_COLLECTION,G.EMAIL_COLLECTION),$(N,H.EMAIL,G.EMAIL),$(N,H.HEADLINE,G.HEADLINE),$(N,H.ORGANISATION,G.ORGANISATION),$(N,H.PHONE,G.PHONE),$(N,H.PROFILE_ENABLED,G.PROFILE_ENABLED),$(N,H.ROLE,G.ROLE),$(N,H.TWITTER,G.TWITTER),$(N,H.WEBSITE,G.WEBSITE),N)),z=Object.freeze({PROFILE_VISIBILITY:(0,s.translate)("settings","Profile visibility")}),Y=Object.freeze(($(T={},G.ADDRESS,H.ADDRESS),$(T,G.AVATAR,H.AVATAR),$(T,G.BIOGRAPHY,H.BIOGRAPHY),$(T,G.DISPLAYNAME,H.DISPLAYNAME),$(T,G.EMAIL_COLLECTION,H.EMAIL_COLLECTION),$(T,G.EMAIL,H.EMAIL),$(T,G.HEADLINE,H.HEADLINE),$(T,G.ORGANISATION,H.ORGANISATION),$(T,G.PHONE,H.PHONE),$(T,G.PROFILE_ENABLED,H.PROFILE_ENABLED),$(T,G.ROLE,H.ROLE),$(T,G.TWITTER,H.TWITTER),$(T,G.WEBSITE,H.WEBSITE),T)),W=Object.freeze({LANGUAGE:"language"}),K=Object.freeze({LANGUAGE:(0,s.translate)("settings","Language")}),Q=Object.freeze({PRIVATE:"v2-private",LOCAL:"v2-local",FEDERATED:"v2-federated",PUBLISHED:"v2-published"}),J=Object.freeze(($(Z={},G.ADDRESS,[Q.LOCAL,Q.PRIVATE]),$(Z,G.AVATAR,[Q.LOCAL,Q.PRIVATE]),$(Z,G.BIOGRAPHY,[Q.LOCAL,Q.PRIVATE]),$(Z,G.DISPLAYNAME,[Q.LOCAL]),$(Z,G.EMAIL_COLLECTION,[Q.LOCAL]),$(Z,G.EMAIL,[Q.LOCAL]),$(Z,G.HEADLINE,[Q.LOCAL,Q.PRIVATE]),$(Z,G.ORGANISATION,[Q.LOCAL,Q.PRIVATE]),$(Z,G.PHONE,[Q.LOCAL,Q.PRIVATE]),$(Z,G.PROFILE_ENABLED,[Q.LOCAL,Q.PRIVATE]),$(Z,G.ROLE,[Q.LOCAL,Q.PRIVATE]),$(Z,G.TWITTER,[Q.LOCAL,Q.PRIVATE]),$(Z,G.WEBSITE,[Q.LOCAL,Q.PRIVATE]),Z)),X=Object.freeze([G.BIOGRAPHY,G.HEADLINE,G.ORGANISATION,G.ROLE]),nn="Scope",en=Object.freeze(($(U={},Q.PRIVATE,{name:Q.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"}),$(U,Q.LOCAL,{name:Q.LOCAL,displayName:(0,s.translate)("settings","Local"),tooltip:(0,s.translate)("settings","Only visible to people on this instance and guests"),iconClass:"icon-password"}),$(U,Q.FEDERATED,{name:Q.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 publishing user specific data to the lookup server is not allowed, contact your system administrator if you have any questions"),iconClass:"icon-contacts-dark"}),$(U,Q.PUBLISHED,{name:Q.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"}),U)),tn=Q.LOCAL,rn=Object.freeze({NOT_VERIFIED:0,VERIFICATION_IN_PROGRESS:1,VERIFIED:2}),an=/^(?!(?:(?:\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,on=r(4820),sn=r(79753),ln=r(10128),cn=r.n(ln);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)}))}}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,sn.generateOcsUrl)("cloud/users/{userId}",{userId:r}),n.next=5,cn()();case 5:return n.next=7,on.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,sn.generateOcsUrl)("cloud/users/{userId}",{userId:r}),n.next=4,cn()();case 4:return n.next=6,on.default.put(a,{key:"".concat(e).concat(nn),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)}))}}function gn(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);tn.length)&&(e=n.length);for(var t=0,r=new Array(e);tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=i)&&Object.keys(a.O).every((function(n){return a.O[n](t[l])}))?t.splice(l--,1):(s=!1,i0&&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