1"use strict";(self.webpackChunkmysports_web=self.webpackChunkmysports_web||[]).push([[2639],{32639:function(e,t,n){n.r(t),n.d(t,{default:function(){return E}});var i,r=n(85608),o=n(31085),s=(n(66303),n(3838)),c=(n(14041),n(48832)),l=n(23495),a=n(58128),d=n(36889),u=n(26802),g=n(99643),f=n(12582),h=n(48444),x=n(74184),m=n(47280),p=n(10252),j=n(55017),b=n(35286),w=n(24369),v=n(10253),k=n(83794),_=n(77890),y=function(){function e(){}return Object.defineProperty(e.prototype,"api",{get:function(){return(0,b.g)(u.j)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disconnectStudio",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return(0,r.__awaiter)(this,void 0,void 0,(function(){return(0,r.__generator)(this,(function(t){return[2,this.api.clientNox.StudioConnectController.disconnectFromStudio(e)]}))}))}}),Object.defineProperty(e.prototype,"deleteAccount",{enumerable:!1,configurable:!0,writable:!0,value:function(){return(0,r.__awaiter)(this,void 0,Promise,(function(){return(0,r.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.api.deleteAccount()];case 1:return e.sent(),[2]}}))}))}}),Object.defineProperty(e.prototype,"init",{enumerable:!1,configurable:!0,writable:!0,value:function(){(0,k.makeAutoObservable)(this)}}),(0,r.__decorate)([_.initialize,(0,r.__metadata)("design:type",Function),(0,r.__metadata)("design:paramtypes",[]),(0,r.__metadata)("design:returntype",void 0)],e.prototype,"init",null),(0,r.__decorate)([(0,_.component)({scope:p.Wu.mySettings()})],e)}(),C=(0,l.Ay)(d.oz).withConfig({displayName:"CenteredMarkdown",componentId:"-16u08v2"}
1)(i||(i=(0,r.__makeTemplateObject)(["\n text-align: center;\n"],["\n text-align: center;\n"]))),P=(0,s.PA)((function(){var e=(0,b.g)(u.j),t=e.userInfo,n=e.clientNox,i=(0,c.useWrapRequest)((function(){return(0,r.__awaiter)(void 0,void 0,void 0,(function(){return(0,r.__generator)(this,(function(e){return[2,n.ContactController.getContactData()]}))}))}),{deps:[]});return t?(0,o.jsxs)(d.PE,{vAlign:"center",between:"8",children:[(0,o.jsx)(d.eu,{type:"circle",src:t.profilePictureUrl,size:70}),(0,o.jsxs)(d.PE,{vAlign:"center",between:"4",stack:!0,children:[(0,o.jsx)(d.QR,{children:t.name}),(0,o.jsx)(d.QR,{children:t.email}),i.result?(0,o.jsxs)(o.Fragment,{children:[i.result.phone?(0,o.jsx)(d.QR,{extent:"XS",weight:"semi",children:i.result.phone}):null,function(e){if(!e)return null;var t=(0,v.BE)(e);return t.length?(0,o.jsx)(d.PE,{children:t.map((function(e,t){return(0,o.jsxs)(d.QR,{extent:"XS",weight:"semi",children:[t>0?(0,o.jsx)(o.Fragment,{children:"Â /Â "}):"",e]},t)}))}):null}(i.result.address)]}):null]})]}):null})),A=(0,s.PA)((function(e){var t=e.studioConnect;return(0,o.jsxs)(d.PE,{vAlign:"center",between:"8",children:[(0,o.jsx)(d.eu,{type:"round-corner",src:(0,v.Qp)(t.studioLogo),size:70}),(0,o.jsx)(d.QR,{children:t.studioName})]})})),E=(0,s.PA)((function(){var e=(0,b.g)(g.t).mobile,t=(0,b.g)(x.F).formatMessage,n=(0,b.g)(w.s),i=(0,b.g)(u.j),s=i.connected,c=i.userInfo,l=(0,b.g)(h.TS),v=(0,b.g)(m.aF),k=(0,b.g)(y),_=(0,b.g)(j.J),E=(0,b.g)(Location,"Location");return(0,o.jsxs)(d.PE,{stretch:!0,stack:!0,children:[(0,o.jsx)(f.p,{title:t({id:"noxweb.settings",defaultMessage:"Settings"})}),(0,o.jsxs)(d.HD,{extent:"1200",children:[(0,o.jsx)(d.PE,{stack:!0,hAlign:"center",padding:["32",0,e?"32":"50"],between:e?"32":"50",children:(0,o.jsx)(d.H2,{children:t({id:"noxweb.settings",defaultMessage:"Settings"})})}),(0,o.jsxs)(d.PE,{between:"50",stack:!0,children:[(0,o.jsxs)(d.PE,{between:"16",stack:!0,children:[(0,o.jsx)(d.H3,{children:t({id:"noxweb.settings.profile",defaultMessage:"My profile"})}),(0,o.jsx)("div",{children:(0,o.jsx)(d.sk,{onClick:function(){(0,a.navigate)(p.yJ.myProfile())},children:(0,o.jsx)(P,{})})})]}),s&&(0,o.jsxs)(d.PE,{between:"16",stack:!0,children:[(0,o.jsx)(d.H3,{children:t({id:"noxweb.settings.studio",defaultMessage:"My studio"})}),(0,o.jsx)(o.Fragment,{children:null==c?void 0:c.studioConnects.map((function(i){return(0,o.jsx)(d.sk,{onClick:function(){return function(e){l.reinit(n.encode("".concat(e.tenant,":").concat(e.studioId))),(0,a.navigate)(p.yJ.studio())}(i)},children:(0,o.jsxs)(d.PE,{vAlign:"center",hAlign:e?"flex-start":"space-between",stretch:!0,between:"32",padding:[0,e?0:"32",0,0],stack:e,children:[(0,o.jsx)(A,{studioConnect:i}),(0,o.jsx)(d.$n,{color:"errorColor",clean:!0,onClick:function(e){e.stopPropagation(),function(e){var n=this;_.trackEvent("msweb-settings-disconnect-studio-click","custom"),v.confirm((0,o.jsx)(d.PE,{hAlign:"center",vAlign:"center",stretch:!0,children:(0,o.jsx)(d.QR,{children:(0,o.jsx)(C,{children:t({id:"nox.profile.disconnect.dialog.message",defaultMessage:"Do you really want to disconnect from your studio?"})})})}),{title:t({id:"nox.profile.disconnect.dialog.title",defaultMessage:"Disconnect from studio"}),confirmColor:"errorColor",confirmAction:function(){return(0,r.__awaiter)(n,void 0,void 0,(function(){return(0,r.__generator)(this,(function(t){switch(t.label){case 0:return[4,k.disconnectStudio(e)];case 1:return t.sent(),E.reload(),[2]}}))}))}})}(i.id)},children:t({id:"nox.profile.disconnect.dialog.title",defaultMessage:"Disconnect from studio"})})]})},i.id)}))})]}),(0,o.jsxs)(d.PE,{between:"16",stack:!0,children:[(0,o.jsx)(d.H3,{children:t({id:"noxweb.settings.more",defaultMessage:"Further settings"})}),(0,o.jsxs)("div",{children:[(0,o.jsx)(d.sk,{onClick:function(){_.trackEvent("msweb-settings-change-password-click","custom"),(0,a.navigate)(p.yJ.changePassword())},children:(0,o.jsx)(d.H4,{color:"textColor",children:t({id:"commons.changepassword",defaultMessage:"Change password"})})}),(0,o.jsx)(d.sk,{onClick:function(){_.trackEvent("msweb-settings-change-email-click","custom"),(0,a.navigate)(p.yJ.emails())},children:(0,o.jsx)(d.H4,{color:"textColor",children:t({id:"nox.profile.change.email",defaultMessage:"Change email"})})}),(0,o.jsx)(d.sk,{onClick:function(){var e=this;
1_.trackEvent("msweb-settings-delete-account-click","custom"),v.confirm((0,o.jsx)(d.PE,{hAlign:"center",vAlign:"center",stretch:!0,children:(0,o.jsx)(d.QR,{children:(0,o.jsx)(C,{children:t({id:"nox.profile.delete.account.message",defaultMessage:"Do you really want to delete your account?"})})})}),{title:t({id:"nox.profile.delete.account.dialog.title",defaultMessage:"Confirmation to delete the account"}),confirmColor:"errorColor",confirmAction:function(){return(0,r.__awaiter)(e,void 0,void 0,(function(){return(0,r.__generator)(this,(function(e){switch(e.label){case 0:return[4,k.deleteAccount()];case 1:return e.sent(),(0,a.navigate)(p.yJ.home()),[2]}}))}))}})},children:(0,o.jsx)(d.H4,{color:"textColor",children:t({id:"nox.profile.delete.account",defaultMessage:"Delete account"})})})]})]})]})]})]})}))}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.