"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[1149],{39822:function(e,t,n){n.d(t,{C:function(){return b},o:function(){return y}});var r=n(77159),o=n(54733),i=n(20573),a=n(58092),l=n(87098),s=n(51973),c=n(56323),d=n(31182),u=n(25221),m=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))};const f=(0,i.P1)(r.globalsSelector,(e=>e?`${e.system.apiUrl}socialAuth`:"")),p=(0,i.P1)(r.globalsSelector,(e=>e?`${e.system.apiUrl}socialAuth/bind`:"")),g=(0,i.P1)(r.globalsSelector,(e=>e?e.system.socialAuthSingleRedirect:"")),h=["portal.local","localhost"];function v(e){return h.find((e=>e===window.location.hostname))?`${window.location.origin}${e}`:e}const y=e=>w(e,f),b=e=>w(e,p);function w(e,t){return(n,i)=>m(this,void 0,void 0,(function*(){const f=i(),p=(0,r.globalsSelector)(f),h=(0,r.localeSelector)(f).id,y=g(f),b=t(f),w=(0,o.U2)(p,"headers.app_id",null);let E=(0,o.U2)(p,`auth.${e}.appid`,null);E||"twitch"!==e||(E="jowo3foxmhq02ez1o82mvf1ph53qai");const x={clientId:E,redirectURL:v(y),state:{t:c.Ly.PORTAL,language_id:h,app_id:w,iru:v(b)}};console.debug("[socialAuth][authenticate] start",Object.assign({providerName:e},x));try{const t=yield(e=>{switch(e){case"fb":return c.ad;case"gp":return c.DF;case"twitch":return c.qv;default:throw new Error("Unkwonwn provider")}})(e)(x);if(console.debug("[socialAuth][authenticate] response",t),t.ok&&t.data){yield n(function(){return(e,t)=>m(this,void 0,void 0,(function*(){yield(0,a.refreshEdgeData)(),yield e((0,d.L)()),yield(0,s.Z)((0,l.userSpecificSelector)(t()))}))}());const t=yield(0,u.aJ)(e);return(0,u.m5)({socialAccount:t}),{ok:!0}}if(t.canceled)return{ok:!1,canceled:!0};if(t.errors&&t.errors[0]&&t.errors[0].data&&t.errors[0].data.length){const e=Object.assign(Object.assign({},t.errors[0]),{data:JSON.parse(t.errors[0].data)});return{ok:!1,socialBindError:{email:e.data.Email,authData:e.data.AuthData,message:e.message,data:e.data}}}const r=e=>({ok:!1,errorMessage:e});return t.errors&&t.errors[0]?r(t.errors[0].message):t.error&&t.error.message?r(t.error.message):r("Unknown response")}catch(e){throw console.debug("[socialAuth][authenticate] error",e),e}}))}},99950:function(e,t,n){n.d(t,{c:function(){return o}});var r=n(5758);const o=e=>{let{type:t,message:n}=e;return e=>{return o=void 0,i=void 0,l=function*(){const o=Date.now(),i={signal:!0,id:o,createdDate:o,type:t,message:n};return r.N4&&setTimeout((()=>{var t;e((t=o,{type:r.Zw,payload:t}))}),r.N4),e({type:r.PA,payload:[i]})},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{s(l.next(e))}catch(e){t(e)}}function r(e){try{s(l.throw(e))}catch(e){t(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}s((l=l.apply(o,i||[])).next())}));var o,i,a,l}}},2210:function(e,t,n){n.d(t,{$J:function(){return i},C0:function(){return a},MC:function(){return o}});var r=n(71745);const o=e=>Promise.all([(0,r.Z)(`user/public/${e}/`),(0,r.Z)(`user/public/${e}/level`),(0,r.Z)("user/level/info")]).then((e=>{let[t,n,r]=e;const o=r.find((e=>e.level===n.level)),i=r.find((e=>e.level===n.level+1)).experience-o.experience;return Promise.resolve(Object.assign(Object.assign(Object.assign({},t),n),{maxExperience:i}))})),i=e=>{let{userId:t,count:n=42,offset:o=0,filter:i=""}=e;return(0,r.Z)(`user/public/${t}/friends/?count=${n}&offset=${o}&name=${i}`)},a=e=>{let{userId:t,offset:n=0,count:o=42}=e;return(0,r.Z)(`user/public/${t}/friends/mutual?offset=${n}&count=${o}`)}},4244:function(e,t,n){n.d(t,{Cm:function(){return m},RD:function(){return l},cg:function(){return c},cz:function(){return p},eT:function(){return i},gL:function(){return s},ku:function(){return f},lv:function(){return d},qP:function(){return o},qY:function(){return u},s3:function(){return a},wn:function(){return r}});const r="account",o="privacy",i="payment",a="friends",l="sessions",s="requests",c="outgoing",d="mutual",u=2e3,m="away",f="online",p="offline"},25349:function(e,t,n){n.d(t,{m:function(){return i}});var r=n(2210),o=n(75838);const i=e=>{let{userId:t,offset:n,filter:i}=e;return e=>{return a=void 0,l=void 0,c=function*(){const{data:a,total:l}=yield(0,r.$J)({userId:t,offset:n,filter:i,count:20});e({type:o.iQ,payload:{friends:a,userId:t,total:l}})},new((s=void 0)||(s=Promise))((function(e,t){function n(e){try{o(c.next(e))}catch(e){t(e)}}function r(e){try{o(c.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof s?o:new s((function(e){e(o)}))).then(n,r)}o((c=c.apply(a,l||[])).next())}));var a,l,s,c}}},75838:function(e,t,n){n.d(t,{ET:function(){return u},F_:function(){return d},W5:function(){return l},aA:function(){return o},h9:function(){return c},iQ:function(){return r},qw:function(){return m},sk:function(){return s},yc:function(){return i},zw:function(){return a}});const r="FRIENDS_LOADED",o="FRIENDS_LOADED_MORE",i="MUTUAL_FRIENDS_LOADED",a="MUTUAL_FRIENDS_LOADED_MORE",l="SUGGESTED_FRIENDS_LOADED",s="SUGGESTED_FRIENDS_LOADED_MORE",c="SUGGESTED_FRIEND_CANCELLED",d="REQUEST_FRIENDSHIP",u="OUTGOING_REQUESTS_LOADED",m="OUTGOING_REQUESTS_LOADED_MORE"},34409:function(e,t,n){n.d(t,{$w:function(){return d},CN:function(){return l},DY:function(){return a},Fm:function(){return s},LD:function(){return u},_$:function(){return f},lf:function(){return m},sx:function(){return c}});var r=n(20573),o=n(83627);const i=e=>e.newProfile.profile,a=(0,r.P1)([i],(e=>e.profileByUserId)),l=(0,r.P1)([i],(e=>e.loadingState)),s=(0,r.P1)([i],(e=>e.updatingState)),c=(0,r.P1)([i],(e=>e.reportModalState)),d=(0,r.P1)([i],(e=>e.reportUserId)),u=(0,r.P1)([i],(e=>e.profileUserId)),m=(0,r.P1)([u,a],((e,t)=>t[e])),f=(0,r.P1)([u,o.dY],((e,t)=>!(!e||!t||e!==t)))},53492:function(e,t,n){n.d(t,{A:function(){return i}});var r=n(43263),o=n(20818);const i=e=>{let{userId:t,friendId:n}=e;return e=>(0,r.A)({userId:n}).then((()=>{e({type:o.Kf,payload:{userId:t,friendId:n}})}))}},71233:function(e,t,n){n.d(t,{D:function(){return i}});var r=n(43263),o=n(20818);const i=e=>{let{userId:t,friendId:n}=e;return e=>{return i=void 0,a=void 0,s=function*(){yield(0,r.DV)({userId:n}),e({type:o.hs,payload:{userId:t,friendId:n}})},new((l=void 0)||(l=Promise))((function(e,t){function n(e){try{o(s.next(e))}catch(e){t(e)}}function r(e){try{o(s.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof l?o:new l((function(e){e(o)}))).then(n,r)}o((s=s.apply(i,a||[])).next())}));var i,a,l,s}}},55123:function(e,t,n){n.d(t,{e:function(){return l}});var r=n(54733),o=n(20818);const i={incomingRequests:[],incomingRequestsTotal:0},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.SJ:return Object.assign(Object.assign({},e),{incomingRequests:t.payload.incomingFriends,incomingRequestsTotal:t.payload.total});case o.FU:return Object.assign(Object.assign({},e),{incomingRequests:(0,r.mN)([...e.incomingRequests,...t.payload.incomingFriends],"id"),incomingRequestsTotal:t.payload.total});case o.Kf:return Object.assign(Object.assign({},e),{incomingRequests:e.incomingRequests.map((e=>e.id===t.payload.friendId?Object.assign(Object.assign({},e),{accepted:!0}):e))});case o.hs:return Object.assign(Object.assign({},e),{incomingRequests:e.incomingRequests.map((e=>e.id===t.payload.friendId?Object.assign(Object.assign({},e),{declined:!0}):e))});default:return e}};function l(){return{id:"requests-dynamic-module",reducerMap:{requestsV3:a}}}},5810:function(e,t,n){n.d(t,{L:function(){return s},Ry:function(){return l},hD:function(){return d},l3:function(){return c}});var r=n(20573),o=n(83627),i=n(34409);const a=e=>e.requestsV3,l=(0,r.P1)([a,o.dY],(e=>e.incomingRequests)),s=(0,r.P1)([a,o.dY],(e=>e.incomingRequestsTotal)),c=(0,r.P1)([a,i.LD],(e=>e.incomingRequests)),d=(0,r.P1)([a,i.LD],(e=>e.incomingRequestsTotal))},51973:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(77744);function o(e){var t,o,i,a,l;return o=this,i=void 0,l=function*(){(0,r.n)()&&(yield n.e(9938).then(n.bind(n,53416))).raise("userSpecificLoadedUsingAuthorization",{userId:(null===(t=e.id)||void 0===t?void 0:t.toString())||""})},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{s(l.next(e))}catch(e){t(e)}}function r(e){try{s(l.throw(e))}catch(e){t(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}s((l=l.apply(o,i||[])).next())}))}},4393:function(e,t,n){n.d(t,{C:function(){return o}});var r=n(28216);function o(e,t){return(0,r.useSelector)(e,t)}},63319:function(e,t,n){n.d(t,{Co:function(){return o},I2:function(){return l},OJ:function(){return s},lz:function(){return i},uA:function(){return a}});var r=n(20573);const o=e=>(e=>e.userInfo)(e).userInfo,i=(0,r.P1)(o,(e=>e.userServers)),a=(0,r.P1)(o,(e=>"socialNetworkWithoutEmail"===e.registrationStatus)),l=(0,r.P1)(o,(e=>"socialNetworkWithEmail"===e.registrationStatus)),s=(0,r.P1)(o,(e=>"full"===e.registrationStatus))},97033:function(e,t,n){n.d(t,{EV:function(){return l},K2:function(){return a},Zq:function(){return i}});var r=n(77159),o=n(87098);const i=e=>(0,r.systemSelector)(e).profilePageUrl,a=(e,t)=>t.userId?`${i(e)}${t.userId}/`:"",l=e=>{const t=(0,o.userSpecificSelector)(e);return t&&t.id?a(e,{userId:t.id}):""}},25701:function(e,t,n){n.d(t,{Z:function(){return l}});var r=n(67294),o=n(73935),i=n(45697),a=n.n(i);class l extends r.Component{constructor(e){super(e),this.node=null,this.debounceCheck=null,this.interval=null,this.getContainer=()=>this.props.containment||window,this.addEventListener=(e,t,n,r)=>{this.debounceCheck||(this.debounceCheck={});let o,i=null;const a=()=>{i=null,this.check()};o=r>-1?()=>{i||(i=window.setTimeout(a,r||0))}:()=>{i&&window.clearTimeout(i),i=window.setTimeout(a,n||0)};const l={target:e,fn:o,getLastTimeout:()=>i};e.addEventListener(t,l.fn),this.debounceCheck[t]=l},this.startWatching=()=>{console.info("[VisibilitySensor] startWatching"),this.debounceCheck||this.interval||(this.props.intervalCheck&&(this.interval=window.setInterval(this.check,this.props.intervalDelay)),this.check())},this.stopWatching=()=>{if(this.debounceCheck)for(let e in this.debounceCheck)if(this.debounceCheck.hasOwnProperty(e)){const t=this.debounceCheck[e];clearTimeout(t.getLastTimeout()),t.target.removeEventListener(e,t.fn),this.debounceCheck[e]=null}this.debounceCheck=null,this.interval&&(window.clearInterval(this.interval),this.interval=null)},this.check=()=>{const e=this.node;let t,n;if(!e)return this.state;if(e.getBoundingClientRect(),t=function(e){return void 0===e.width&&(e.width=e.right-e.left),void 0===e.height&&(e.height=e.bottom-e.top),e}(this.roundRectDown(e.getBoundingClientRect())),this.props.containment){const e=this.props.containment.getBoundingClientRect();n={top:e.top,left:e.left,bottom:e.bottom,right:e.right}}else n={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};const r=this.props.offset||{};"object"==typeof r&&(n.top+=r.top||0,n.left+=r.left||0,n.bottom-=r.bottom||0,n.right-=r.right||0);const o={top:t.top>=n.top,left:t.left>=n.left,bottom:t.bottom<=n.bottom,right:t.right<=n.right},i=t.height>0&&t.width>0;let a=i&&o.top&&o.left&&o.bottom&&o.right;if(i&&this.props.partialVisibility){let e=t.top<=n.bottom&&t.bottom>=n.top&&t.left<=n.right&&t.right>=n.left;"string"==typeof this.props.partialVisibility&&(e=o[this.props.partialVisibility]),a=this.props.minTopValue?e&&t.top<=n.bottom-this.props.minTopValue:e}"string"==typeof r.direction&&"number"==typeof r.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",r.direction,r.value),a=function(e,t,n){var r=e.direction,o=e.value;switch(r){case"top":return n.top+ot.bottom&&n.leftt.right;case"left":return n.left+ot.bottom&&n.topt.right;case"bottom":return n.bottom-o>t.bottom&&n.leftt.right&&n.topt.right&&n.leftt.bottom}}(r,t,n));let l=this.state;return this.state.isVisible!==a&&(l={isVisible:a,visibilityRect:o},this.setState(l),this.props.onChange&&this.props.onChange(a)),l},this.state={isVisible:null,visibilityRect:{}}}componentDidMount(){this.node=o.findDOMNode(this),this.props.active&&this.startWatching()}componentWillUnmount(){this.stopWatching()}componentDidUpdate(e){this.node=o.findDOMNode(this),this.props.active&&!e.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}roundRectDown(e){return{top:Math.floor(e.top),left:Math.floor(e.left),bottom:Math.floor(e.bottom),right:Math.floor(e.right)}}render(){return this.props.children instanceof Function?this.props.children({isVisible:!!this.state.isVisible,visibilityRect:this.state.visibilityRect}):r.Children.only(this.props.children)}}l.defaultProps={active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,offset:{},containment:null,children:()=>r.createElement("span",null,"none")},l.propTypes={onChange:a().func,active:a().bool,partialVisibility:a().oneOfType([a().bool,a().oneOf(["top","right","bottom","left"])]),offset:a().oneOfType([a().shape({top:a().number,left:a().number,bottom:a().number,right:a().number}),a().shape({direction:a().oneOf(["top","right","bottom","left"]),value:a().number})]),scrollCheck:a().bool,scrollDelay:a().number,scrollThrottle:a().number,resizeDelay:a().number,resizeThrottle:a().number,intervalCheck:a().bool,intervalDelay:a().number,containment:"undefined"!=typeof window?a().instanceOf(window.Element):a().any,children:a().oneOfType([a().element,a().func]),minTopValue:a().number}},60856:function(e,t,n){n.r(t),n.d(t,{default:function(){return lm}});var r,o=n(77159),i=n(67294),a=n(28216),l=n(56778),s=n(85002),c=n(55123),d=n(14890);!function(e){e[e.None=0]="None",e[e.Loading=1]="Loading",e[e.Loaded=2]="Loaded",e[e.Failed=3]="Failed"}(r||(r={}));const u="LOAD_PROFILE",m="UPDATE_PROFILE",f="LOADING_STATE_CHANGE",p="UPDATING_STATE_CHANGE",g="PROFILE_USER_ID_CHANGE",h="SET_REPORT_MODAL_STATE",v="SET_REPORT_USER_ID",y="OPEN",b="CLOSED",w={profileByUserId:{},profileUserId:0,reportUserId:0,loadingState:r.None,updatingState:r.None,loadingErrorMessage:"",updateErrorMessage:"",reportModalState:b},E=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u:return Object.assign(Object.assign({},e),{profileUserId:t.payload.id,profileByUserId:Object.assign(Object.assign({},e.profileByUserId),{[t.payload.id]:Object.assign(Object.assign({},e.profileByUserId[t.payload.id]),t.payload)})});case m:return Object.assign(Object.assign({},e),{profileUserId:t.payload.userId,profileByUserId:Object.assign(Object.assign({},e.profileByUserId),{[t.payload.userId]:Object.assign(Object.assign({},e.profileByUserId[t.payload.userId]),t.payload.data)})});case f:return Object.assign(Object.assign({},e),{loadingState:t.payload});case p:return Object.assign(Object.assign({},e),{updatingState:t.payload});case h:return Object.assign(Object.assign({},e),{reportModalState:t.payload});case v:return Object.assign(Object.assign({},e),{reportUserId:t.payload});case g:return Object.assign(Object.assign({},e),{profileUserId:t.payload});default:return e}},x="SET_PROFILE_EDIT_DATA",C="SET_PROFILE_EDIT_DATA_FIELD",P="SET_PROFILE_EDIT_MODAL_STATE",_="OPEN",O="CLOSED",k={profileEditModalState:O,profileEditModel:{}},S=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case P:return Object.assign(Object.assign({},e),{profileEditModalState:t.payload});case x:return Object.assign(Object.assign({},e),{profileEditModel:t.payload});case C:return Object.assign(Object.assign({},e),{profileEditModel:Object.assign(Object.assign({},e.profileEditModel),{[t.payload.field]:t.payload.value})});default:return e}},I="COVER_DATA_LOAD",j="LOADING_STATE_CHANGE",N="SET_COVER_MODAL_STATE",M="CLOSED",Z={coversData:[],coverLoadingState:!1,coverModalState:M},A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case I:return Object.assign(Object.assign({},e),{coversData:t.payload});case j:return Object.assign(Object.assign({},e),{coverLoadingState:t.payload});case N:return Object.assign(Object.assign({},e),{coverModalState:t.payload});default:return e}},T="AVATARS_DATA_LOAD",R="AVATARS_LOADING_STATE_CHANGE",z="AVATARS_MODAL_STATE_CHANGE",L={avatarData:[],avatarLoadingState:!1,avatarModalState:!1},D=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:L,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case T:return Object.assign(Object.assign({},e),{avatarData:t.payload});case R:return Object.assign(Object.assign({},e),{avatarLoadingState:t.payload});case z:return Object.assign(Object.assign({},e),{avatarModalState:t.payload});default:return e}};var F=n(54733),B=n(75838);const U={friends:{},friendsTotal:{},mutualFriends:{},mutualFriendsTotal:{},suggestedFriends:[],outgoingRequests:{},outgoingRequestsTotal:{}},q=e=>(0,F.mN)(e,"id"),$=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case B.iQ:return Object.assign(Object.assign({},e),{friends:Object.assign(Object.assign({},e.friends),{[t.payload.userId]:q(t.payload.friends)}),friendsTotal:Object.assign(Object.assign({},e.friendsTotal),{[t.payload.userId]:t.payload.total})});case B.aA:return Object.assign(Object.assign({},e),{friends:Object.assign(Object.assign({},e.friends),{[t.payload.userId]:q([...e.friends[t.payload.userId]||[],...t.payload.friends])}),friendsTotal:Object.assign(Object.assign({},e.friendsTotal),{[t.payload.userId]:t.payload.total})});case B.yc:return Object.assign(Object.assign({},e),{mutualFriends:Object.assign(Object.assign({},e.mutualFriends),{[t.payload.userId]:q(t.payload.mutualFriends)}),mutualFriendsTotal:Object.assign(Object.assign({},e.mutualFriendsTotal),{[t.payload.userId]:t.payload.total})});case B.zw:return Object.assign(Object.assign({},e),{mutualFriends:Object.assign(Object.assign({},e.mutualFriends),{[t.payload.userId]:q([...e.mutualFriends[t.payload.userId]||[],...t.payload.mutualFriends])}),mutualFriendsTotal:Object.assign(Object.assign({},e.mutualFriendsTotal),{[t.payload.userId]:t.payload.total})});case B.W5:return Object.assign(Object.assign({},e),{suggestedFriends:t.payload});case B.sk:return Object.assign(Object.assign({},e),{suggestedFriends:(0,F.mN)([...e.suggestedFriends,...t.payload],"id")});case B.h9:return Object.assign(Object.assign({},e),{suggestedFriends:e.suggestedFriends.map((e=>e.id===t.payload.friendId?Object.assign(Object.assign({},e),{cancelled:!0}):e))});case B.F_:return Object.assign(Object.assign({},e),{suggestedFriends:e.suggestedFriends.map((e=>e.id===t.payload.friendId?Object.assign(Object.assign({},e),{requested:!0}):e))});case B.ET:return Object.assign(Object.assign({},e),{outgoingRequests:Object.assign(Object.assign({},e.outgoingRequests),{[t.payload.userId]:(0,F.mN)(t.payload.outgoingFriends,"id")}),outgoingRequestsTotal:Object.assign(Object.assign({},e.outgoingRequestsTotal),{[t.payload.userId]:t.payload.total})});case B.qw:return Object.assign(Object.assign({},e),{outgoingRequests:Object.assign(Object.assign({},e.outgoingRequests),{[t.payload.userId]:(0,F.mN)([...e.outgoingRequests[t.payload.userId]||[],...t.payload.outgoingFriends],"id")}),outgoingRequestsTotal:Object.assign(Object.assign({},e.outgoingRequestsTotal),{[t.payload.userId]:t.payload.total})});default:return e}},H="CHANGE_FRIENDS_SEARCH_ENABLED_STATE",V="SET_FRIENDS_SEARCH_REQUEST",W="SET_FRIENDS_SEARCH_RESULTS",G="SET_FRIENDS_SEARCH_IS_LOADING",Y={isEnabled:!1,searchRequest:"",searchResults:[],isLoading:!1},Q=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case H:return Object.assign(Object.assign({},e),{isEnabled:t.payload});case V:return Object.assign(Object.assign({},e),{searchRequest:t.payload});case W:return Object.assign(Object.assign({},e),{searchResults:t.payload});case G:return Object.assign(Object.assign({},e),{isLoading:t.payload});default:return e}},J="profile/deviceActivity/setNotificationEnableStatus",X="profile/deviceActivity/setCurrentSession",K="profile/deviceActivity/setActiveSessions",ee="profile/deviceActivity/setUserSessionsLoadingState",te={isNotificationOn:!1,activeSessions:[],currentSession:null,loading:!1},ne=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ee:return Object.assign(Object.assign({},e),{loading:t.payload});case J:return Object.assign(Object.assign({},e),{isNotificationOn:t.payload});case X:return Object.assign(Object.assign({},e),{currentSession:t.payload});case K:return Object.assign(Object.assign({},e),{activeSessions:t.payload});default:return e}},re="PRIVACY_SETTINGS_INFO_SET",oe={info:{email:0,gender:0,dateOfBirth:0,friends:0,messagesPrivacy:0},isLoaded:!1},ie=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe,t=arguments.length>1?arguments[1]:void 0;return t.type===re?Object.assign(Object.assign({},e),{info:Object.assign(Object.assign({},e.info),t.payload),isLoaded:!0}):e},ae="PAYMENT_CARDS_SET",le="PAYMENT_COUNTRIES_SET",se="PAYMENT_COUNTRIES_CURRENT_SET",ce={cards:[],countries:[],currentCountry:void 0},de=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ce,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ae:return Object.assign(Object.assign({},e),{cards:[...t.payload]});case le:return Object.assign(Object.assign({},e),{countries:[...t.payload]});case se:return Object.assign(Object.assign({},e),{currentCountry:t.payload});default:return e}};var ue,me=n(77874),fe=n(65514);!function(e){e.Info="info",e.Friends="friends",e.Settings="settings"}(ue||(ue={}));const pe=ue.Info;function ge(e){const t=e.pathname.split("/").find((e=>parseInt(e,10)>0));return t?parseInt(t,10):0}const he=/^(.*\/profile\/)([0-9]*\/)([a-z-]*\/?)(\/?.*)$/;function ve(e){const t=e.pathname.match(he);return t&&t[3]?t[3].replace("/",""):pe}function ye(e){const t=e.pathname.match(he);return t&&t[4]?t[4].replace("/",""):""}let be=null;function we(e,t){return Ee(),`${be}${e}/${t}/`}function Ee(){if(!be)throw new Error("Profile base path is not set, please call setProfileBasePath in application bootstrap")}function xe(e,t,n,r){if(e.pathname.match(he)){const o=n&&n!==pe?`${n}/`:`${pe}`,i=r?`${r}/`:"";return`${e.pathname.replace(he,`$1${t}/${o}${i}`)}${e.search}${e.hash}`}return Ee(),`${be}${t}/${n}${e.search}${e.hash}`}var Ce=n(34409),Pe=n(2210);const _e=e=>t=>{return n=void 0,r=void 0,i=function*(){if(!e)return Promise.reject("User id is not provided");const n=yield Pe.MC(e);return t({type:u,payload:n}),n},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function l(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,l)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i},Oe=e=>t=>{t({type:g,payload:e})};var ke=n(63319),Se=n(31182),Ie=function(){const e=(0,fe.T)(),t=(0,a.useSelector)(ke.Co,a.shallowEqual),n=(0,a.useSelector)(Ce.DY,a.shallowEqual),o=(0,a.useSelector)(Ce.CN),l=(0,a.useSelector)(Ce.Fm),s=ge(me.Z.location),c=ve(me.Z.location),d=ye(me.Z.location),[u,m]=i.useState(s),[f,p]=i.useState(null),[g,h]=i.useState(c),[v,y]=i.useState(d),[b,w]=i.useState(!0),E=t.id===f,x=i.useCallback((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return xe(me.Z.location,e,t,n)}),[]),C=i.useCallback((e=>{const t=ge(e);m(t)}),[m]),P=i.useCallback((e=>{const t=ve(e),n=ye(e);h(t),y(n)}),[h,y]);i.useEffect((()=>me.Z.listen((e=>{e.pathname.match(/[a-z]{2}\/profile/)&&(C(e),P(e))}))),[P,C]),i.useEffect((()=>{E&&e((0,Se.L)())}),[e,E]),i.useEffect((()=>{u&&(w(!0),e(_e(u)).then((()=>{p(u),w(!1)})),e(Oe(u)))}),[e,u]);const _=f&&n[f]?n[f]:null,O=()=>{e(_e(u)),e(Oe(u))},k=function(e,t,n){return i.useCallback((()=>{e&&n!==r.Loading&&t(e)}),[e,t,n])}(f,O,o);return function(e,t){const n=i.useRef(t);n.current=t,i.useEffect((()=>{n.current&&n.current()}),[e])}(t.id,k),{locationProfileUserId:u,profileUserId:f,sectionId:g,subSectionId:v,getSectionUrl:x,updateUserId:C,updateSectionId:P,isMyProfile:E,profileUserData:_,loadingState:o,updatingState:l,loadProfile:O,isLoading:b}},je=n(83627),Ne=n(59479),Me=n(10586);const Ze=Me.ZP.div.withConfig({displayName:"ProfileContentstyled__ProfileContentWrapper",componentId:"sc-1fvnqab-0"})(["padding-bottom:3rem;position:relative;min-height:calc(100vh - 12.5rem);"]);var Ae=n(77e3),Te=n(35166);const Re=(0,i.createContext)({});var ze=n(23257);const Le=Me.ZP.div.withConfig({displayName:"Headerstyled__Header",componentId:"sc-j98hh5-0"})(["position:relative;width:100%;margin-bottom:3.5rem;height:18rem;@media screen and (min-width:1650px) and (max-width:1920px){height:20rem;}@media screen and (min-width:1921px){height:22rem;}"]),De=Me.ZP.div.withConfig({displayName:"Headerstyled__CoverContainer",componentId:"sc-j98hh5-1"})(["position:relative;display:flex;height:100%;overflow:hidden;&::before{content:'';position:absolute;width:100%;height:100%;bottom:0;background-color:rgba(0,0,0,0.3);z-index:4;}"]),Fe=(0,Me.ZP)(ze.Z).withConfig({displayName:"Headerstyled__CoverImage",componentId:"sc-j98hh5-2"})(["position:absolute;display:flex;width:100%;height:100%;object-fit:cover;"]),Be=Me.ZP.div.withConfig({displayName:"Headerstyled__WrapperUserInfo",componentId:"sc-j98hh5-3"})(["background:#fff;padding:0.75rem 1rem 0.75rem 0;border-radius:0.3rem;box-shadow:0 1rem 2rem -0.5rem rgba(43,42,42,0.2),0 0.2rem 1rem -0.7rem rgba(0,0,0,0.4);display:flex;justify-content:space-between;margin:0;position:absolute;width:calc(100% - 2rem);left:1rem;bottom:-2.25rem;min-height:4rem;z-index:505;@media only screen and (min-width:1350px){width:100%;max-width:65.5rem;left:50%;transform:translateX(-50%);}"]),Ue=Me.ZP.div.withConfig({displayName:"Headerstyled__Avatar",componentId:"sc-j98hh5-4"})(["position:absolute;left:1rem;bottom:calc(50% - 75px);border-radius:50%;background:#eaeaea;border:0.25rem solid #fff;overflow:hidden;"]),qe=(0,Me.ZP)(ze.Z).withConfig({displayName:"Headerstyled__AvatarImg",componentId:"sc-j98hh5-5"})(["display:block;width:7.5rem;height:7.5rem;border-radius:50%;object-fit:cover;position:relative;z-index:9;"]),$e=Me.ZP.div.withConfig({displayName:"Headerstyled__UserInfo",componentId:"sc-j98hh5-6"})(["display:flex;flex-direction:column;justify-content:center;margin-left:10.25rem;max-width:30%;"]),He=Me.ZP.div.withConfig({displayName:"Headerstyled__NickName",componentId:"sc-j98hh5-7"})(["font-size:1.2rem;font-weight:700;line-height:2rem;color:#2d2d30;text-align:left;user-select:text;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;"]),Ve=Me.ZP.div.withConfig({displayName:"Headerstyled__NavigationSection",componentId:"sc-j98hh5-8"})(["display:flex;align-items:center;flex-shrink:0;"]);var We=e=>{const t=function(){const e=(0,Ae.Z)(Te.U.Profile),t=(0,a.useSelector)(o.globalsSelector,a.shallowEqual),n=(0,a.useSelector)(Ce.lf,a.shallowEqual),{profileUserData:r,isMyProfile:l}=i.useContext(Re),s=(0,a.useSelector)(ke.Co,a.shallowEqual),c=t&&t.system.defaultAvatar,d=n.avatar,u=l?s.firstName:null==r?void 0:r.firstName;return{backgroundProfile:e.images.coverBackgroundProfile.src,avatar:d||c,firstName:u}}();return i.createElement(Le,null,i.createElement(De,null,i.createElement(Fe,{src:t.backgroundProfile})),i.createElement(Be,null,i.createElement(Ue,null,i.createElement(qe,{src:t.avatar})),i.createElement($e,null,i.createElement(He,null,t.firstName)),i.createElement(Ve,null,e.children)))},Ge=n(29985);const Ye=(0,Me.iv)(["display:flex;align-items:center;justify-content:center;min-width:1.5rem;font-size:0.7rem;padding:0 0.3rem;border-radius:0.5rem;height:1rem;line-height:1rem;background-color:#615b7e;color:#fff;font-weight:400;"]),Qe=Me.ZP.div.withConfig({displayName:"Counterstyled__CounterElement",componentId:"sc-vo7r57-0"})(["",";border-radius:0.3rem;background-color:#b7b7b7;color:#fff;"],Ye),Je=Me.ZP.div.withConfig({displayName:"Counterstyled__Dark",componentId:"sc-vo7r57-1"})(["",";"],Ye),Xe=Me.ZP.div.withConfig({displayName:"Counterstyled__Gray",componentId:"sc-vo7r57-2"})(["",";background-color:grey;"],Ye),Ke=Me.ZP.div.withConfig({displayName:"Counterstyled__Light",componentId:"sc-vo7r57-3"})(["",";background-image:linear-gradient(to top,#05a8af,#05bdbf);"],Ye),et=Me.ZP.div.withConfig({displayName:"Counterstyled__LightReversed",componentId:"sc-vo7r57-4"})(["",";background-color:#fff;color:#07aeb4;"],Ye),tt=Me.ZP.div.withConfig({displayName:"Counterstyled__Transparent",componentId:"sc-vo7r57-5"})(["font-size:0.7rem;line-height:1rem;align-self:center;display:inline-block;background-color:transparent;padding:0;margin-left:0.25rem;height:auto;color:rgba(0,0,0,0.5);font-weight:400;transition:color 0.2s ease;"]),nt=Me.ZP.div.withConfig({displayName:"Counterstyled__Blue",componentId:"sc-vo7r57-6"})(["",";background-color:#4e82d7;"],Ye),rt=()=>i.createElement(Qe,null);rt.Dark=Je,rt.LightReversed=et,rt.Light=Ke,rt.Gray=Xe,rt.Transparent=tt,rt.Blue=nt;var ot=rt;const it=(0,Me.iv)(["display:flex;border:1px solid #dbdbdb;background-color:#fff;margin:0 auto;border-radius:0.3rem;overflow:hidden;"]),at=(0,Me.iv)(["display:flex;flex-wrap:wrap;align-items:center;position:relative;background-color:#fff;font-weight:500;cursor:pointer;text-decoration:none;"]),lt=Me.ZP.span.withConfig({displayName:"Tabsstyled__TabItemTitle",componentId:"sc-5lpmjj-0"})(["font-size:0.8rem;line-height:1rem;"]),st=Me.ZP.div.withConfig({displayName:"Tabsstyled__TabItemContainer",componentId:"sc-5lpmjj-1"})(["",";color:#2d2d30;padding:0.25rem 0.75rem;transition:background-color 0.2s ease,color 0.2s ease;"," "," &:hover{background-color:#ddd;color:#2d2d30;"," ","{color:#4e4964;}","}&:first-child{padding-left:0.95rem;}&:last-child{padding-right:0.95rem;}"],at,(e=>e.active&&(0,Me.iv)(["background-color:#65646e;color:#fff;","{color:rgba(255,255,255,0.6);}"],ot.Transparent)),(e=>e.disabled&&(0,Me.iv)(["background-color:#eee;color:#555;cursor:no-drop;"])),(e=>e.disabled&&(0,Me.iv)(["background-color:#eee;color:#555;"])),ot.Transparent,(e=>e.active&&(0,Me.iv)(["background-color:#65646e;color:#fff;","{color:rgba(255,255,255,0.6);}"],ot.Transparent))),ct=Me.ZP.div.withConfig({displayName:"Tabsstyled__TabItemContainerVertical",componentId:"sc-5lpmjj-2"})(["",";max-width:100%;width:100%;","{line-height:1rem;color:rgba(45,45,48,0.7);}"," "," &:hover{","{color:rgba(45,45,48,1);}","}"],at,lt,(e=>e.active&&(0,Me.iv)(["","{font-weight:600;color:rgba(45,45,48,1);}"],lt)),(e=>e.disabled&&(0,Me.iv)(["background-color:#ddd;color:#555;cursor:no-drop;"])),lt,(e=>e.disabled&&(0,Me.iv)(["background-color:#ddd;","{color:#555;}"],lt))),dt=Me.ZP.div.withConfig({displayName:"Tabsstyled__TabsH",componentId:"sc-5lpmjj-3"})(["",";border-radius:0.25rem;"],it),ut=Me.ZP.div.withConfig({displayName:"Tabsstyled__TabsV",componentId:"sc-5lpmjj-4"})(["",";border-radius:0.2rem;flex-direction:column;border:none;margin:0 0 1.25rem;padding:1rem;& a{margin-bottom:0.75rem;&:last-child{margin-bottom:0;}}"],it),mt=Me.ZP.div.withConfig({displayName:"Tabsstyled__TabsTr",componentId:"sc-5lpmjj-5"})(["display:flex;width:100%;margin:0;background-color:transparent;"]),ft=Me.ZP.div.withConfig({displayName:"Tabsstyled__TabItemContainerRounded",componentId:"sc-5lpmjj-6"})(["display:flex;flex-wrap:wrap;align-items:center;position:relative;font-weight:500;cursor:pointer;text-decoration:none;padding:0.25rem 0.75rem;background-color:transparent;margin-right:0.25rem;border-radius:0.75rem;transition:background-color 0.2s ease,color 0.2s ease;",",","{font-weight:600;margin-left:0.25rem;transition:background-color 0.15s ease,color 0.15s ease;}","{font-weight:500;color:rgba(45,45,48,0.9);line-height:1rem;}&:hover{background-color:#fff;box-shadow:0 0.25rem 0.5rem -0.35rem rgba(0,0,0,0.2);","{color:#333337;}}"," "," ",""],ot.Blue,ot.Gray,lt,lt,(e=>e.active&&(0,Me.iv)(["background-color:#fff;box-shadow:0 0.25rem 0.5rem -0.35rem rgba(0,0,0,0.2);","{color:#333337;}"],lt)),(e=>e.disabled&&(0,Me.iv)(["background-color:#eee;color:#555;cursor:no-drop;"])),(e=>e.hasChildren&&(0,Me.iv)(["padding:0.25rem 0.25rem 0.25rem 0.75rem;"])));var pt=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{children:t}=e,n=pt(e,["children"]);return i.createElement(ut,Object.assign({},n),t)},ht=e=>{var{children:t}=e,n=pt(e,["children"]);return i.createElement(mt,Object.assign({},n),t)};var vt=e=>{let{children:t}=e;return i.createElement(dt,null,t)};const yt=Me.ZP.div.withConfig({displayName:"StickyTabsstyled__StickyTabsContainer",componentId:"sc-17h1z9n-0"})(["display:flex;justify-content:center;align-items:center;position:sticky;top:2.75rem;width:100%;padding:0.25rem 0 0.75rem;border-bottom:1px solid;border-color:transparent;transition:border-color 0.15s ease,background-color 0.15s ease,padding 0.25s ease;","{height:1.75rem;align-items:center;padding:0.15rem 0;border-radius:1rem;& a{display:block;height:100%;margin:0 0.075rem;&:first-child{margin:0 0.075rem 0 0.15rem;}&:last-child{margin:0 0.15rem 0 0.075rem;}}}","{border-radius:1rem;padding-top:0;padding-bottom:0;height:100%;}",""],dt,st,(e=>e.sticky&&(0,Me.iv)(["border-color:#dbdbdb;background-color:#f0f0f1;padding:0.5rem 0;z-index:510;"])));var bt=n(87804),wt=n(59754);const Et=e=>i.createElement(st,Object.assign({},e),i.createElement(lt,null,e.title),e.children);Et.Vertical=e=>i.createElement(ct,Object.assign({},e),i.createElement(lt,null,e.title),e.children),Et.Rounded=e=>i.createElement(ft,Object.assign({hasChildren:!!e.children},e),i.createElement(lt,null,e.title),e.children);var xt=Et,Ct=e=>{let{url:t,label:n,isActive:r,qaLabel:o}=e;return i.createElement(wt.Z,Object.assign({href:t},bt.A("newProfile.stickyTabs",{tabName:o})),i.createElement(xt,{title:n,active:r}))},Pt=()=>{const[e,t]=i.useState(!1),[n,r]=i.useState(76),o=i.useRef(null);(0,Ge.R)((()=>{const e=o.current&&o.current.getBoundingClientRect();r(e?e.top:0)}),[]),i.useEffect((()=>{t(n<=75)}),[n]);const l=(()=>{const e=(0,a.useSelector)(Ce.LD),t=(0,i.useContext)(Re),n=(0,Ae.Z)(Te.U.Profile),r=(0,a.useSelector)(Ce._$),o=[{id:`profileStickyTab-${n.strings.tabProfile}`,label:n.strings.tabProfile,qaLabel:"profile",url:we(e.toString(),ue.Info),isActive:t.sectionId===ue.Info},{id:`profileStickyTab-${n.strings.tabFriends}`,label:n.strings.tabFriends,qaLabel:"friends",url:we(e.toString(),ue.Friends),isActive:t.sectionId===ue.Friends}];if(r){const r={id:`profileStickyTab-${n.strings.tabSettings}`,label:n.strings.tabSettings,qaLabel:"settings",url:we(e.toString(),ue.Settings),isActive:t.sectionId===ue.Settings};return[...o,r]}return o})();return i.createElement(yt,{sticky:e,ref:o},i.createElement(vt,null,l.map((e=>i.createElement(Ct,{key:e.id,label:e.label,url:e.url,isActive:e.isActive,qaLabel:e.qaLabel})))))},_t=e=>i.createElement("svg",Object.assign({},e,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"}),i.createElement("path",{d:"M12.19 4.01l3.662 3.675L5.592 17.98l-3.66-3.675L12.192 4.01zm6.44-.886l-1.633-1.64a1.616 1.616 0 00-2.289 0l-1.564 1.57 3.661 3.675L18.63 4.9c.489-.492.489-1.284 0-1.775zM1.01 18.477a.417.417 0 00.504.498l4.08-.993-3.66-3.675-.924 4.17z",fill:"#837F91",fillRule:"nonzero"})),Ot=n(96826);const kt=i.forwardRef(((e,t)=>{var{icon:n=null,children:r}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({type:P,payload:e}),Nt=()=>jt(_);var Mt=()=>{const e=(0,Ae.Z)(Te.U.Profile),t=(0,a.useDispatch)();return i.createElement(St,Object.assign({icon:_t,color:It.Tt.defaultNormal,size:It.Ph.medium,isIcon:!0,isNoBoxShadow:!0,onClick:()=>{t(Nt())}},bt.A("newProfile.header.editProfile")),e.strings.edit)},Zt=n(36987),At=n(99950),Tt=n(5758),Rt=()=>{const e=(0,i.useRef)(`userCheck-${window.performance.now()}`);return i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},i.createElement("defs",null,i.createElement("linearGradient",{id:`${e.current}`,x1:"-14.554%",x2:"100%",y1:"-57.1828%",y2:"238.199%"},i.createElement("stop",{offset:"0%",stopColor:"#A3A0AD"}),i.createElement("stop",{offset:"100%",stopColor:"#4E4964"}))),i.createElement("g",{fill:`url(#${e.current})`,stroke:"none",fillRule:"evenodd",strokeWidth:"1"},i.createElement("path",{d:"M7.2222 10.3924c-2.3218 0-4.204-1.8787-4.204-4.1962S4.9004 2 7.2222 2c2.3218 0 4.204 1.8787 4.204 4.1962s-1.8822 4.1962-4.204 4.1962zM5.1742 19H2.5876a3.1726 3.1726 0 0 1-1.1306-.2077c-.4128-.1575-.7127-.3434-.9-.5575-.654-.7483-.9937-2.2311.495-4.131.9925-1.2664 2.675-2.1967 4.122-2.2339 1.447-.037 2.6-.037 4.0962 0 1.4962.0372 3.1296.9675 4.122 2.234 1.4888 1.8998 1.1491 3.3826.495 4.1309-.1872.2141-.4872.4-.9.5575A3.1726 3.1726 0 0 1 11.8569 19H5.174zM15.5386 4.9537l-2.1244-2.1243L12 4.2436l2.1244 2.1244 1.4142 1.4142 4.2436-4.2436-1.4142-1.4142-2.8294 2.8293z",fillRule:"nonzero"})))},zt=n(72703),Lt=n(71745);const Dt=e=>{let{offset:t,count:n=10}=e;return(0,Lt.Z)(`user/me/friends/suggested?offset=${t}&count=${n}`)},Ft={fb:"facebook",vk:"vKontakte",mr:"mailRu",cm:"classmates",gp:"google",twitch:"twitch"};var Bt=n(25349);const Ut=()=>(e,t)=>{return n=void 0,r=void 0,i=function*(){const n=(0,Ce.LD)(t()),r=(0,Ce._$)(t()),o=(0,je.WO)(t());if(r||!o)return;const i=yield(0,Pe.C0)({userId:n});e({type:B.yc,payload:{mutualFriends:i.data,total:i.total,userId:n}})},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function l(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,l)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i};const qt=e=>(t,n)=>{return r=void 0,o=void 0,a=function*(){const r=(0,Ce.LD)(n()),o=(0,je.dY)(n());yield(e=>{let{userId:t}=e;return(0,Lt.Z)(`user/me/friends/${t}/`,{method:"DELETE"})})({userId:e}),yield t((0,Bt.m)({userId:r})),r!==o&&(yield t(Ut())),t(_e(r))},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{s(a.next(e))}catch(e){t(e)}}function l(e){try{s(a.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,l)}s((a=a.apply(r,o||[])).next())}));var r,o,i,a};var $t=n(10593);const Ht="[data-popper-placement^='top']",Vt="[data-popper-placement^='bottom']",Wt="[data-popper-placement^='left']",Gt="[data-popper-placement^='right']",Yt=Me.ZP.span.withConfig({displayName:"elements__Arrow",componentId:"sc-yqm04m-0"})(["position:absolute;width:8px;height:8px;z-index:-1;&::before{position:absolute;width:8px;height:8px;z-index:-1;content:'';transform:rotate(45deg);background:#333;}&::after{position:absolute;width:8px;height:8px;z-index:1;content:'';transform:rotate(45deg);background:#fff;}"]),Qt=Me.ZP.span.withConfig({displayName:"elements__Container",componentId:"sc-yqm04m-1"})(["&"," > ","{bottom:-4px;&::after{bottom:1px;}}&"," > ","{top:-4px;&::after{top:1px;}}&"," > ","{right:-4px;&::after{right:1px;}}&"," > ","{left:4px;&::after{left:1px;}}"],Ht,Yt,Vt,Yt,Wt,Yt,Gt,Yt),Jt=(0,Me.ZP)(Yt).withConfig({displayName:"PopperDropdownelements__DropdownArrow",componentId:"sc-alvft7-0"})(["width:0.8rem;height:0.8rem;&::before{width:100%;height:100%;background:#d4d8dc;}&::after{width:100%;height:100%;background:#fff;}"]),Xt=(0,Me.iv)(["display:flex;flex-direction:column;align-items:flex-start;min-width:11.25rem;position:absolute;padding:0.75rem 0;box-shadow:0 1rem 2rem -0.75rem rgba(0,0,0,0.5);background-color:#2b2c30;border-radius:0.3rem;z-index:2000;cursor:default;opacity:1;&"," > ","{bottom:-0.4rem;}&"," > ","{top:-0.4rem;}&"," > ","{right:-0.4rem;}&"," > ","{left:-0.4rem;}&.anim-enter{opacity:0;}&.anim-enter-active{opacity:1;transition:opacity 0.2s;}&.anim-enter-done{opacity:1;transition:opacity 0.2s;}&.anim-exit{opacity:1;}&.anim-exit-active{opacity:0;transition:opacity 0.2s;}&.anim-exit-done{opacity:0;}"],Ht,Jt,Vt,Jt,Wt,Jt,Gt,Jt),Kt=(0,Me.ZP)(Qt).withConfig({displayName:"PopperDropdownelements__LightContainer",componentId:"sc-alvft7-1"})(["",";background-color:#fff;border:solid 1px #d4d8dc;padding:0.75rem 0.5rem;"],Xt),en=(0,Me.ZP)(Qt).withConfig({displayName:"PopperDropdownelements__DarkContainer",componentId:"sc-alvft7-2"})(["",""],Xt);var tn=n(17211);const nn=i.forwardRef(((e,t)=>{let{children:n,targetRef:r,modifiers:o=[],placement:a="auto",strategy:l="absolute",arrowComponent:s,containerComponent:c,onMount:d}=e;const u=function(){for(var e=arguments.length,t=new Array(e),n=0;n{t.forEach((e=>{e&&("function"==typeof e?e(r.current):e.current=r.current)}))}),[t]),r}(t,i.useRef(null)),m=i.useRef(null),f=i.useRef({strategy:l,placement:a,modifiers:o});i.useEffect((()=>{if(u&&r&&u.current&&r.current)return m.current&&(m.current.destroy(),m.current=null),m.current=(0,tn.fi)(r.current,u.current,f.current),()=>{m.current&&(m.current.destroy(),m.current=null)}}),[r,u]),i.useEffect((()=>{m.current&&(f.current=Object.assign(Object.assign({},f.current),{placement:a}),m.current.setOptions(f.current))}),[a]);const p=c||Qt,g=s||i.Fragment;return i.useEffect((()=>{d&&d()}),[d]),i.createElement(p,{ref:u},i.createElement(g,{"data-popper-arrow":!0}),n)}));var rn=nn;const on=(0,i.forwardRef)(((e,t)=>{let{isOpen:n,children:r,targetRef:o,isLight:a=!1,onMount:l}=e;const s=(0,i.useMemo)((()=>"function"!=typeof getComputedStyle?0:1*parseFloat(getComputedStyle(document.documentElement).fontSize)),[]),c=(0,i.useMemo)((()=>(e=>[{name:"offset",options:{offset:[0,e]}},{name:"preventOverflow",options:{padding:e}},{name:"computeStyles",options:{adaptive:!1}}])(s)),[s]);return i.createElement($t.Z,{in:n,unmountOnExit:!0,classNames:"anim",timeout:{enter:200,exit:200}},i.createElement(rn,{ref:t,placement:"bottom",modifiers:c,targetRef:o,containerComponent:a?Kt:en,arrowComponent:Jt,onMount:l},r))}));on.displayName="PopperDropdown";var an=on,ln=Me.ZP.div.withConfig({displayName:"RelativeWrapper",componentId:"sc-1d1q4y1-0"})(["position:relative;"]);const sn=Me.ZP.div.withConfig({displayName:"Dropdownstyled__DropdownItem",componentId:"sc-1ybk5tx-0"})(["display:flex;width:100%;margin-bottom:0.25rem;&:empty{display:none;}&:last-child{margin-bottom:0;}"]),cn=(0,Me.iv)(["display:flex;justify-content:space-between;align-items:center;border:none;background:transparent;font-size:0.8rem;font-weight:400;line-height:1rem;color:#fff;padding:0.25rem 1rem;width:100%;text-align:left;position:relative;cursor:pointer;&::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:#565264;opacity:0;z-index:-1;transition:opacity 0.3s ease;}&:hover{&::before{opacity:1;}}"]),dn=(0,Me.ZP)(wt.Z).withConfig({displayName:"Dropdownstyled__ChildLink",componentId:"sc-1ybk5tx-1"})(["",""],cn),un=Me.ZP.button.withConfig({displayName:"Dropdownstyled__ChildBtn",componentId:"sc-1ybk5tx-2"})([""," "," &:disabled{color:rgba(255,255,255,0.7);cursor:not-allowed;}"],cn,(e=>e.isLight&&(0,Me.iv)(["color:#2b2c30;border-radius:0.2rem;&::before{background-color:rgba(104,104,106,0.1);}"]))),mn=Me.ZP.span.withConfig({displayName:"Dropdownstyled__ChildLabel",componentId:"sc-1ybk5tx-3"})(["",";cursor:default;&::before{content:none;}"],cn),fn=Me.ZP.span.withConfig({displayName:"Dropdownstyled__ChildInfo",componentId:"sc-1ybk5tx-4"})(["",";cursor:default;padding:0.5rem 1rem 0;font-size:0.6rem;color:rgba(255,255,255,0.6);&::before{content:none;}"],cn),pn=Me.ZP.div.withConfig({displayName:"Dropdownstyled__Divider",componentId:"sc-1ybk5tx-5"})(["width:100%;height:1px;background-color:rgba(255,255,255,0.15);"]),gn=Me.ZP.div.withConfig({displayName:"Dropdownstyled__Menu",componentId:"sc-1ybk5tx-6"})(["display:flex;flex-direction:column;align-items:flex-start;width:11.25rem;position:absolute;padding:0.75rem 0;box-shadow:0 1rem 2rem -0.75rem rgba(0,0,0,0.5);background-color:#2b2c30;border-radius:0.3rem;z-index:3;cursor:default;&.underDropdown-enter{opacity:0.01;transform:translateY(-0.5rem);}&.underDropdown-enter-active{opacity:1;transition:opacity 0.2s,transform 0.2s;transform:translateY(0);}&.underDropdown-exit{opacity:1;transform:translateY(0);}&.underDropdown-exit-active{opacity:0.01;transition:opacity 0.2s,transform 0.2s;transform:translateY(-0.5rem);}&.overDropdown-enter{opacity:0.01;transform:translateY(0.5rem);}&.overDropdown-enter-active{opacity:1;transition:opacity 0.2s,transform 0.2s;transform:translateY(0);}&.overDropdown-exit{opacity:1;transform:translateY(0);}&.overDropdown-exit-active{opacity:0.01;transition:opacity 0.2s,transform 0.2s;transform:translateY(0.5rem);}&::before{content:'';position:absolute;top:-0.45rem;right:1.25rem;width:0;height:0;border-left:0.45rem solid transparent;border-right:0.45rem solid transparent;border-bottom:0.45rem solid #2b2c30;}"]);var hn=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30",viewBox:"0 0 30 30"},i.createElement("defs",null,i.createElement("linearGradient",{id:"a",x1:"50%",x2:"50%",y1:"0%",y2:"100%"},i.createElement("stop",{offset:"0%",stopColor:"#8F8C9C"}),i.createElement("stop",{offset:"100%",stopColor:"#767286"}))),i.createElement("path",{fill:"url(#a)",fillRule:"nonzero",d:"M9.27 9.87c1.496.037 3.13.967 4.122 2.234 1.49 1.9 1.15 3.383.495 4.13-.187.215-.487.4-.9.558-.359.137-.743.208-1.13.208h-9.27c-.387 0-.77-.07-1.13-.208-.413-.157-.713-.343-.9-.557-.654-.748-.994-2.231.495-4.131.993-1.267 2.675-2.197 4.122-2.234 1.447-.037 2.6-.037 4.096 0zM7.204 0a4.2 4.2 0 014.204 4.196 4.2 4.2 0 01-4.204 4.196A4.2 4.2 0 013 4.196 4.2 4.2 0 017.204 0zm9.553 0c.132 0 .256.055.35.154l.296.315c.093.1.144.233.144.374a.545.545 0 01-.144.374l-1.904 2.031h4.006l-.014-.003c.273 0 .509.23.509.52v.447c0 .29-.23.54-.502.54h-4.02l1.925 2.042a.54.54 0 010 .737l-.296.315a.477.477 0 01-.7 0l-3.263-3.473A.54.54 0 0113 4a.54.54 0 01.144-.373L16.407.154a.476.476 0 01.35-.154z",transform:"translate(5 7)"})),vn=n(53492),yn=n(71233),bn=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))};const wn=e=>{let{friendId:t}=e;return()=>{return e=void 0,n=void 0,o=function*(){t&&(yield(e=>{let{userId:t}=e;return(0,Lt.Z)(`user/me/friends/${t}/requests`,{method:"DELETE"})})({userId:t}))},new((r=void 0)||(r=Promise))((function(t,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,l)}s((o=o.apply(e,n||[])).next())}));var e,n,r,o}};var En=()=>{const e=(0,i.useRef)(`userArrow-${window.performance.now()}`),t=(0,i.useRef)(`userArrow-${window.performance.now()}-1`);return i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",version:"1.1",viewBox:"0 0 20 20"},i.createElement("defs",null,i.createElement("linearGradient",{id:`${e.current}`,x1:"3.3956%",x2:"86.0972%",y1:"-57.1828%",y2:"238.199%"},i.createElement("stop",{offset:"0%",stopColor:"#A3A0AD"}),i.createElement("stop",{offset:"100%",stopColor:"#4E4964"})),i.createElement("linearGradient",{id:`${t.current}`,x1:".5758%",x2:"88.2813%",y1:"-57.1828%",y2:"238.199%"},i.createElement("stop",{offset:"0%",stopColor:"#A3A0AD"}),i.createElement("stop",{offset:"100%",stopColor:"#4E4964"}))),i.createElement("g",{fill:"none",fillRule:"nonzero",stroke:"none",strokeWidth:"1"},i.createElement("path",{fill:`url(#${e.current})`,d:"M7.204 10.3924C4.8822 10.3924 3 8.5137 3 6.1962S4.8822 2 7.204 2c2.3218 0 4.204 1.8787 4.204 4.1962s-1.8822 4.1962-4.204 4.1962zM5.174 19H2.5877a3.1726 3.1726 0 0 1-1.1306-.2077c-.4128-.1575-.7127-.3434-.9-.5575-.654-.7483-.9937-2.2311.495-4.131.9925-1.2664 2.675-2.1967 4.122-2.2339 1.447-.037 2.6-.037 4.0962 0 1.4962.0372 3.1296.9675 4.122 2.234 1.4888 1.8998 1.1491 3.3826.495 4.1309-.1872.2141-.4872.4-.9.5575A3.1726 3.1726 0 0 1 11.8569 19H5.174z"}),i.createElement("path",{fill:`url(#${t.current})`,d:"M6.4913 3.2447l.0142.0033H2.4993l1.9035-2.0306c.0932-.0991.1444-.2334.1444-.3744 0-.141-.0512-.2743-.1444-.3736L4.1066.154C4.0135.0548 3.8894 0 3.757 0c-.1324 0-.2566.0544-.3497.1536L.1443 3.6264c-.0935.0995-.1447.232-.1443.373-.0004.1419.0508.2746.1443.374l3.263 3.473c.0931.0991.2172.1536.3497.1536.1324 0 .2565-.0546.3496-.1536l.2962-.3154c.0932-.099.1444-.2311.1444-.372a.5226.5226 0 0 0-.1444-.3652l-1.925-2.042h4.0203c.2727 0 .5019-.2501.5019-.5403v-.446c0-.2902-.236-.5208-.5087-.5208z",transform:"matrix(-1 0 0 1 20 2)"})))};const xn=e=>i.createElement(gn,Object.assign({},e,{onClick:e=>e.preventDefault()}));xn.Item=sn,xn.Link=e=>i.createElement(dn,Object.assign({},e)),xn.Button=e=>i.createElement(un,Object.assign({},e)),xn.Label=e=>i.createElement(mn,Object.assign({},e)),xn.Info=e=>i.createElement(fn,Object.assign({},e)),xn.Divider=pn;var Cn=xn;const Pn=e=>{let{friendId:t}=e;return e=>(e=>{let{userId:t}=e;return(0,Lt.Z)(`user/me/friends/requests/${t}`,{method:"POST"})})({userId:t}).then((()=>{e({type:B.F_,payload:{friendId:t}})}))};var _n=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},i.createElement("g",{fillRule:"evenodd"},i.createElement("path",{fill:"#FFF",stroke:"none",d:"M7.2222 10.3924c-2.3218 0-4.204-1.8787-4.204-4.1962S4.9004 2 7.2222 2c2.3218 0 4.204 1.8787 4.204 4.1962s-1.8822 4.1962-4.204 4.1962zM5.1742 19H2.5876a3.1726 3.1726 0 0 1-1.1306-.2077c-.4128-.1575-.7127-.3434-.9-.5575-.654-.7483-.9937-2.2311.495-4.131.9925-1.2664 2.675-2.1967 4.122-2.2339 1.447-.037 2.6-.037 4.0962 0 1.4962.0372 3.1296.9675 4.122 2.234 1.4888 1.8998 1.1491 3.3826.495 4.1309-.1872.2141-.4872.4-.9.5575A3.1726 3.1726 0 0 1 11.8569 19H5.174zM17.5 4.55H20v1.7h-2.5V8.8h-1.6667V6.25h-2.5v-1.7h2.5V2H17.5v2.55z",fillRule:"nonzero",strokeWidth:"1"}))),On=n(32134);const kn=()=>i.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",version:"1",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M8 16l-1 1-4 1 1-2 1-1c-3-2-4-4-4-6 0-4 4-7 9-7s9 3 9 7-4 7-9 7H8z",fill:"#fff",fillRule:"nonzero"}));var Sn=()=>{const e=(0,Ae.Z)(Te.U.Profile),t=(0,fe.T)(),n=ge(me.Z.location);return i.createElement(St,Object.assign({color:It.Tt.secondary,icon:kn,onClick:e=>{e.preventDefault(),t((0,On.Wb)({userId:n}))},size:It.Ph.medium,isNoBoxShadow:!0,isIcon:!0},bt.A("newProfile.header.chat")),e.strings.sendMessage)};const In={1:i.createElement((()=>{const e=(0,fe.T)(),t=ge(me.Z.location),n=(0,Ae.Z)(Te.U.Profile),r=i.useRef(null),o=i.useRef(null),[a,l]=i.useState(!1);return(0,Zt.Z)(r,(()=>{a&&l(!1)})),i.createElement(ln,{ref:r},i.createElement(St,Object.assign({ref:o,icon:Rt,onClick:e=>{e.preventDefault(),l(!0)},color:It.Tt.defaultNormal,size:It.Ph.medium,isNoBoxShadow:!0,isIcon:!0},bt.A("newProfile.header.friend")),n.strings.friend),i.createElement(an,{isLight:!0,isOpen:a,targetRef:o},i.createElement(sn,null,i.createElement(un,Object.assign({isLight:!0,onClick:()=>{return r=void 0,o=void 0,a=function*(){l(!1),yield e(qt(t)),e((0,At.c)({type:Tt.H_,message:n.strings.notificationFriendRemove})),e(_e(t))},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{s(a.next(e))}catch(e){t(e)}}function l(e){try{s(a.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,l)}s((a=a.apply(r,o||[])).next())}));var r,o,i,a}},bt.A("newProfile.header.unfriend")),n.strings.unfriend))))}),null),50:i.createElement((()=>{const e=(0,fe.T)(),t=(0,Ae.Z)(Te.U.Profile),n=(0,a.useSelector)(je.dY),r=ge(me.Z.location),o=(0,i.useRef)(null),l=(0,i.useRef)(null),[s,c]=(0,i.useState)(!1),d=(0,i.useCallback)((e=>{e.preventDefault(),c(!0)}),[]),u=(0,i.useCallback)((()=>bn(void 0,void 0,void 0,(function*(){try{yield e((0,vn.A)({userId:n,friendId:r})),e((0,At.c)({type:Tt.H_,message:t.strings.notificationFriendRequestAccepted})),yield e((0,Bt.m)({userId:n})),yield e(_e(r))}catch(t){e((0,At.c)({type:Tt.pn,message:t.errors[0].message}))}}))),[e,n,r,t.strings.notificationFriendRequestAccepted]),m=(0,i.useCallback)((()=>bn(void 0,void 0,void 0,(function*(){yield e((0,yn.D)({userId:n,friendId:r})),e((0,At.c)({type:Tt.H_,message:t.strings.notificationFriendRequestDecline})),yield e(_e(r))}))),[e,n,r,t.strings.notificationFriendRequestDecline]);return(0,Zt.Z)(o,(()=>{s&&c(!1)})),i.createElement(ln,{ref:o},i.createElement(St,Object.assign({ref:l,icon:hn,onClick:d,color:It.Tt.defaultNormal,size:It.Ph.medium,isNoBoxShadow:!0,isIcon:!0},bt.A("newProfile.header.incomingRequest")),t.strings.incomingRequest),i.createElement(an,{isLight:!0,isOpen:s,targetRef:l},i.createElement(sn,null,i.createElement(un,Object.assign({isLight:!0,onClick:u},bt.A("newProfile.header.acceptRequest")),t.strings.accept)),i.createElement(sn,null,i.createElement(un,Object.assign({isLight:!0,onClick:m},bt.A("newProfile.header.declineRequest")),t.strings.rejectFriendRequest))))}),null),51:i.createElement((()=>{const e=(0,Ae.Z)(Te.U.Profile),t=(0,fe.T)(),n=ge(me.Z.location),r=i.useRef(null),o=i.useRef(null),[a,l]=i.useState(!1),s=i.useCallback((()=>{return e=void 0,r=void 0,i=function*(){yield t(wn({friendId:n})),yield t(_e(n))},new((o=void 0)||(o=Promise))((function(t,n){function a(e){try{s(i.next(e))}catch(e){n(e)}}function l(e){try{s(i.throw(e))}catch(e){n(e)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,l)}s((i=i.apply(e,r||[])).next())}));var e,r,o,i}),[t,n]);return(0,Zt.Z)(r,(()=>{l(!1)})),i.createElement(ln,{ref:r},i.createElement(St,Object.assign({icon:En,color:It.Tt.defaultNormal,size:It.Ph.medium,isIcon:!0,isNoBoxShadow:!0,onClick:e=>{e.preventDefault(),l(!0)},ref:o},bt.A("newProfile.header.outgoingRequest")),e.strings.outgoingRequest),i.createElement(an,{isLight:!0,isOpen:a,targetRef:o},i.createElement(Cn.Item,null,i.createElement(Cn.Button,Object.assign({isLight:!0,onClick:s},bt.A("newProfile.header.cancelOutgoingRequest")),e.strings.btnCancelOutgoingRequest))))}),null),100:i.createElement((()=>{const e=(0,Ae.Z)(Te.U.Profile),t=(0,fe.T)(),n=ge(me.Z.location);return i.createElement(St,Object.assign({icon:_n,onClick:r=>{return o=void 0,i=void 0,l=function*(){r.preventDefault();try{yield t(Pn({friendId:n})),t((0,At.c)({type:Tt.H_,message:e.strings.notificationFriendRequestSent})),yield t(_e(n))}catch(e){t((0,At.c)({type:Tt.pn,message:e.errors[0].message}))}},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{s(l.next(e))}catch(e){t(e)}}function r(e){try{s(l.throw(e))}catch(e){t(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}s((l=l.apply(o,i||[])).next())}));var o,i,a,l},color:It.Tt.secondary,size:It.Ph.medium,isNoBoxShadow:!0,isIcon:!0},bt.A("newProfile.header.addFriend")),e.strings.addFriend)}),null)};var jn=()=>{const{isMyProfile:e}=i.useContext(Re),t=(0,a.useSelector)(Ce.lf,a.shallowEqual);return i.createElement(i.Fragment,null,e?i.createElement(Mt,null):i.createElement(i.Fragment,null,i.createElement(Sn,null),t&&In[t.userRelationship]))};const Nn=e=>({type:h,payload:e}),Mn=e=>{const t=(0,fe.T)();return{openReportModal:()=>{t((e=>({type:v,payload:e}))(e)),t(Nn(y))}}};var Zn=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30"},e),i.createElement("path",{d:"M17 22a2 2 0 11-3.999.001A2 2 0 0117 22zm0-7a2 2 0 11-3.999.001A2 2 0 0117 15zm0-7a2 2 0 11-3.999.001A2 2 0 0117 8z",fill:"#68686A",fillRule:"nonzero"}));const An=Me.ZP.button.withConfig({displayName:"UserActionsButtonstyled__Button",componentId:"sc-62l9u1-0"})(["background-color:transparent;border:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:30px;height:40px;svg{opacity:0.35;fill:#68686a;transition:opacity 0.25s ease;}&:hover{svg{opacity:0.8;}}",""],(e=>e.isBgColor&&(0,Me.iv)(["background-color:#f0f0f0;opacity:0.8;border-radius:4px;svg{opacity:0.75;}"])));const Tn=i.forwardRef(((e,t)=>{var{withBackgroundColor:n=!1}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{actionItem:t}=e;const{setDropdownState:n}=i.useContext(Dn);return t.isHide?null:i.createElement(Cn.Button,Object.assign({isLight:!0,onClick:()=>{t.action(),n(Ln.CLOSE)}},bt.A("newProfile.userActions.action",{actionName:t.qaLabel})),t.label)},Bn=e=>{let{actions:t}=e;const{dropdownState:n,popperDropdownRef:r,name:o}=i.useContext(Dn);return t.length?i.createElement(an,{isLight:!0,isOpen:n===Ln.OPEN,targetRef:r},t.map((e=>i.createElement(Fn,{key:`${o}-${e.label}`,actionItem:e})))):null},Un=e=>{let{actions:t,name:n,withBackgroundColor:r=!1,marginLeft:o="0"}=e;const a=i.useRef(null),l=i.useRef(null),[s,c]=i.useState(Ln.CLOSE);return(0,Zt.Z)(a,(()=>{s===Ln.OPEN&&c(Ln.CLOSE)})),i.createElement(Dn.Provider,{value:{dropdownState:s,setDropdownState:c,name:n,popperDropdownRef:l}},i.createElement(zn,Object.assign({ref:a,style:{marginLeft:o}},bt.A("newProfile.userActions")),i.createElement(Rn,{onClick:()=>{c(Ln.OPEN)},ref:l,withBackgroundColor:r}),i.createElement(Bn,{actions:t})))},qn=()=>{const e=(0,Ae.Z)(Te.U.Profile),{isMyProfile:t}=i.useContext(Re),n=(0,a.useSelector)(Ce.LD),{openReportModal:r}=Mn(n),o=[{label:e.strings.report,qaLabel:"report",action:r}];return i.createElement(i.Fragment,null,t?null:i.createElement(Un,{actions:o,name:"HeaderActions",withBackgroundColor:!0,marginLeft:"0.5rem"}))},$n=n(35437),Hn=n(95564);const Vn=Me.ZP.div.withConfig({displayName:"CoverModalstyled__Body",componentId:"sc-f2zjaj-0"})(["width:37.25rem;background-color:rgb(238,238,238);"]),Wn=Me.ZP.div.withConfig({displayName:"CoverModalstyled__Header",componentId:"sc-f2zjaj-1"})(["position:relative;padding:0.5rem 1.5rem 0.75rem;background:rgb(255,255,255);border-radius:0.6rem 0.6rem 0 0;z-index:100;text-align:center;"]),Gn=Me.ZP.h2.withConfig({displayName:"CoverModalstyled__Title",componentId:"sc-f2zjaj-2"})(["font-size:22px;font-weight:600;line-height:25px;margin-bottom:0;color:rgba(45,45,48,0.8);"]),Yn=Me.ZP.button.withConfig({displayName:"CoverModalstyled__Close",componentId:"sc-f2zjaj-3"})(["width:25px;height:25px;position:absolute;top:10px;right:10px;border-radius:2px;background-color:transparent;border:none;cursor:pointer;z-index:2;"]),Qn=Me.ZP.div.withConfig({displayName:"CoverModalstyled__CoverList",componentId:"sc-f2zjaj-4"})(["position:relative;overflow:auto;height:29rem;padding:1rem 1.25rem;&::-webkit-scrollbar{width:6px;}&::-webkit-scrollbar-track{background:transparent;}&::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.4);border-radius:10px;}&::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,0.55);}&::-webkit-scrollbar-thumb:focus{background:rgba(0,0,0,0.7);}"]),Jn=Me.ZP.button.withConfig({displayName:"Coverstyled__SaveCoverButton",componentId:"sc-12x8y09-0"})(["outline:0;height:11rem;cursor:pointer;border:none;background:none;border-radius:0.3rem;margin-bottom:0.75rem;overflow:hidden;&:last-child{margin-bottom:0;}"]),Xn=Me.ZP.img.withConfig({displayName:"Coverstyled__Image",componentId:"sc-12x8y09-1"})(["display:block;width:100%;height:100%;object-fit:cover;"]);var Kn=e=>i.createElement(Jn,{onClick:e.handleClick},i.createElement(Xn,{alt:"cover",src:e.image})),er=n(20573);const tr=e=>e.newProfile.covers,nr=(0,er.P1)(tr,(e=>e.coversData)),rr=(0,er.P1)(tr,(e=>e.coverModalState));const or=()=>({type:N,payload:"CLOSED"});var ir=n(4393),ar=()=>{const e=(0,Ae.Z)(Te.U.Profile),t=(0,fe.T)(),n=(0,ir.C)(nr,a.shallowEqual),r=(0,a.useSelector)(rr,a.shallowEqual);i.useEffect((()=>{t((e=>{return t=void 0,n=void 0,o=function*(){e({type:j,payload:!0}),e({type:I,payload:[{url:"//cdn01.x-plarium.com/browser/content/portal/common/profile/games/pp-1.jpg"},{url:"//cdn01.x-plarium.com/browser/content/portal/common/profile/games/pp2.jpg"},{url:"//cdn01.x-plarium.com/browser/content/portal/common/profile/games/raid1.jpg"},{url:"//cdn01.x-plarium.com/browser/content/portal/common/profile/games/raid2.jpg"},{url:"//cdn01.x-plarium.com/browser/content/portal/common/profile/games/vkn.jpg"},{url:"//cdn01.x-plarium.com/browser/content/portal/common/profile/games/vkn_2.jpg"},{url:"//cdn01.x-plarium.com/browser/content/portal/common/profile/games/thr.jpg"},{url:"//cdn01.x-plarium.com/browser/content/portal/common/profile/games/thr-2.jpg"},{url:"//cdn01.x-plarium.com/browser/content/portal/common/profile/games/sp.jpg"}]}),e({type:j,payload:!1})},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,l)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o}))}),[t]);const o=()=>{t(or()),t(Nt())};return i.createElement($n.Z,{isOpen:"OPEN"===r,onClose:o},i.createElement(Vn,null,i.createElement(Wn,null,i.createElement(Gn,null,e.strings.selectCover),i.createElement(Yn,{onClick:o},i.createElement(Hn.Z,null))),i.createElement(Qn,null,n.map((e=>i.createElement(Kn,{key:e.url,image:e.url,handleClick:()=>{(e=>{console.log(e,"coverImage"),t(or()),t(Nt())})(e)}}))))))};const lr=e=>e.newProfile.avatars,sr=(0,er.P1)(lr,(e=>e.avatarData)),cr=(0,er.P1)(lr,(e=>e.avatarModalState)),dr=e=>({type:z,payload:e}),ur=()=>dr(!1),mr=Me.ZP.div.withConfig({displayName:"UploadAvatarstyled__Wrapper",componentId:"sc-z8va0j-0"})(["user-select:none;background:#fff;border-radius:0 0 0.6rem 0.6rem;"]);var fr=n(94398),pr=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},i.createElement("path",{fill:"#6D6D6F",d:"M8 8V5c0-.5523.4477-1 1-1h2c.5523 0 1 .4477 1 1v3h3c.5523 0 1 .4477 1 1v2c0 .5523-.4477 1-1 1h-3v3c0 .5523-.4477 1-1 1H9c-.5523 0-1-.4477-1-1v-3H5c-.5523 0-1-.4477-1-1V9c0-.5523.4477-1 1-1h3z",fillRule:"evenodd"})),gr=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},i.createElement("path",{fill:"#6D6D6F",d:"M4 9v2c0 .5523.4477 1 1 1h10c.5523 0 1-.4477 1-1V9c0-.5523-.4477-1-1-1H5c-.5523 0-1 .4477-1 1z",fillRule:"evenodd"}));const hr=Me.ZP.div.withConfig({displayName:"UploadAvatarControlsstyled__Controls",componentId:"sc-ysviye-0"})(["width:12rem;margin:0 auto;display:flex;align-items:center;padding:0.75rem 0 0.25rem;"]),vr=(0,Me.ZP)(St).withConfig({displayName:"UploadAvatarControlsstyled__ControlButton",componentId:"sc-ysviye-1"})(["padding:0;width:1.25rem;height:1.25rem;border-radius:0.2rem;box-shadow:0 0.1rem 0.25rem -0.1rem rgba(0,0,0,0.15);border:solid 0.05rem #e0e0e0;min-height:auto;min-width:auto;color:transparent;&:disabled{background-color:#eaeaea;}& i{margin-right:0;}& svg{width:0.75rem;}"]),yr=Me.ZP.div.withConfig({displayName:"UploadAvatarControlsstyled__Slider",componentId:"sc-ysviye-2"})(["margin:0 0.75rem;width:8rem;"]),br=Me.ZP.div.withConfig({displayName:"UploadAvatarControlsstyled__Track",componentId:"sc-ysviye-3"})(["position:relative;touch-action:none;height:0.2rem;border-radius:0.15rem;background-color:rgb(210,210,210);"]),wr=Me.ZP.div.withConfig({displayName:"UploadAvatarControlsstyled__Thumb",componentId:"sc-ysviye-4"})(["cursor:pointer;display:inline-block;position:absolute;outline:none;width:1rem !important;height:1rem !important;top:-1px;border-radius:1.5rem;transform:translate3d(-50%,-50%,0);background-color:#fff !important;box-shadow:0 0.1rem 0.25rem -0.15rem rgba(0,0,0,0.15);border:solid 0.05rem #e0e0e0;transition:background-color 0.3s;"]),Er=Me.ZP.div.withConfig({displayName:"UploadAvatarControlsstyled__SliderBlank",componentId:"sc-ysviye-5"})(["height:0.2rem;border-radius:0.15rem;background-color:#eaeaea;width:100%;position:relative;cursor:not-allowed;&::before{content:'';display:inline-block;position:absolute;outline:none;width:1rem;height:1rem;border-radius:1.5rem;left:0.5rem;top:50%;transform:translate3d(-50%,-50%,0);background-color:#eaeaea;}"]),xr={position:{x:.5,y:.5},scale:1,rotate:0,border:[192.5,35],borderRadius:500,width:300,height:300,color:[41,41,41,.6]};var Cr=e=>{let{hasImage:t,onScaleChange:n,setNewScale:r,scale:o}=e;return i.createElement(hr,null,i.createElement(vr,{size:"small",icon:gr,onClick:()=>{n(-1)},disabled:!t}),i.createElement(yr,null,t?i.createElement(fr.Range,{min:1,max:5,step:.1,values:o,onChange:e=>{r(e)},renderTrack:e=>{let{props:t,children:n}=e;return i.createElement(br,Object.assign({},t),n)},renderThumb:e=>{let{props:t}=e;return i.createElement(wr,Object.assign({},t))}}):i.createElement(Er,null)),i.createElement(vr,{size:"small",icon:pr,onClick:()=>{n(1)},disabled:!t}))},Pr=n(15937);const _r=Me.ZP.div.withConfig({displayName:"UploadAvatarFooterstyled__FooterElement",componentId:"sc-14k5tmv-0"})(["display:flex;justify-content:center;text-align:center;padding-top:1.25rem;padding-bottom:2rem;position:relative;background:#fff;border-radius:0 0 0.6rem 0.6rem;"]),Or=Me.ZP.div.withConfig({displayName:"UploadAvatarFooterstyled__WrapperButtons",componentId:"sc-14k5tmv-1"})(["margin:0 0.5rem;"]);var kr=e=>{let{cancelString:t,saveAvatar:n,saveString:r,setAvatar:o}=e;const a=(0,fe.T)(),l=ge(me.Z.location);return i.createElement(_r,null,i.createElement(Or,null,i.createElement(Pr.ZP,{onClick:()=>{o(null)},color:It.Tt.defaultNormal,size:It.Ph.medium,isNoBoxShadow:!0},t)),i.createElement(Or,null,i.createElement(Pr.ZP,{onClick:()=>{return e=void 0,t=void 0,o=function*(){yield n(),a(Nt()),a(_e(l)),a((0,Se.L)())},new((r=void 0)||(r=Promise))((function(n,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,l)}s((o=o.apply(e,t||[])).next())}));var e,t,r,o},color:It.Tt.secondary,size:It.Ph.medium},r)))},Sr=n(27011),Ir=n.n(Sr);const jr=Me.ZP.button.withConfig({displayName:"UploadAvatarCanvasstyled__PhotoContainer",componentId:"sc-4wx51y-0"})(["display:flex;justify-content:center;align-items:center;cursor:pointer;position:relative;border:none;margin:0 auto;border-radius:0.3rem;overflow:hidden;"]),Nr=Me.ZP.div.withConfig({displayName:"UploadAvatarCanvasstyled__CanvasWrapper",componentId:"sc-4wx51y-1"})(["font-size:0;position:relative;width:34.25rem;height:18.5rem;"]),Mr=(0,Me.ZP)(Ir()).withConfig({displayName:"UploadAvatarCanvasstyled__AvatarEditor",componentId:"sc-4wx51y-2"})(["position:absolute;top:0;left:0;width:100% !important;height:100% !important;"]),Zr=i.forwardRef(((e,t)=>{let{handlePositionChange:n,image:r,scale:o,position:a}=e;return i.createElement(jr,{type:"button"},i.createElement(Nr,null,i.createElement(Mr,{ref:t,crossOrigin:"anonymous",onPositionChange:n,color:xr.color,border:xr.border,borderRadius:xr.borderRadius,width:xr.width,height:xr.height,position:a,rotate:xr.rotate,scale:o[0],image:r})))}));Zr.displayName="UploadAvatarCanvas";var Ar=Zr,Tr=n(23493);let Rr;const zr=n.n(Tr)()((e=>{Rr((e=>Math.max(-1,Math.min(1,-e.deltaY||-e.detail)))(e))}),20),Lr=e=>{e.stopPropagation(),e.preventDefault(),zr(e)};var Dr;!function(e){e.CUSTOM="CUSTOM",e.DEFAULT="DEFAULT"}(Dr||(Dr={}));const Fr=e=>{let{id:t,imageLink:n,isResized:r}=e;return e=>{return o=void 0,i=void 0,l=function*(){var o;r?yield(o=n,(0,Lt.Z)("user/me/avatar/custom",{data:o,method:"PUT"})):yield((e,t)=>(0,Lt.Z)("user/me/avatar",{data:{id:t,link:e},method:"PUT"}))(n,t),e(ur())},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{s(l.next(e))}catch(e){t(e)}}function r(e){try{s(l.throw(e))}catch(e){t(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}s((l=l.apply(o,i||[])).next())}));var o,i,a,l}};var Br=n(56740);const Ur=new(n.n(Br)());var qr=e=>{let{avatar:t,setAvatar:n}=e;const{strings:r}=(0,Ae.Z)(Te.U.Profile),o=i.useRef(null),[a,l]=i.useState(xr.position),[s,c]=i.useState(!1),{setScale:d,onScaleChange:u,scale:m}=(()=>{const[e,t]=i.useState([1]),n=i.useRef(e);n.current=e;const r=i.useCallback((e=>{const r=n.current[0]+.1*e;r<1||r>5||t([r])}),[t]);return{setScale:t,onScaleChange:r,scale:e}})(),{saveAvatar:f}=((e,t,n)=>{const r=(0,fe.T)(),o=(0,Ae.Z)(Te.U.Profile);return{saveAvatar:()=>{return i=void 0,a=void 0,s=function*(){if(e.current)try{if(!n&&t.type===Dr.DEFAULT)return void(yield r(Fr(t)));const o=e.current.getImage(),i="image/jpeg",a=yield((e,t,n)=>{const r=document.createElement("canvas");return r.width=t,r.height=n,Ur.resize(e,r,{alpha:!0}).then((()=>r))})(o,150,150);return yield r(Fr({imageLink:a.toDataURL(i),isResized:!0,type:t.type})),Promise.resolve()}catch(e){r((0,At.c)({type:Tt.pn,message:o.strings.inappropriateAvatar}))}},new((l=void 0)||(l=Promise))((function(e,t){function n(e){try{o(s.next(e))}catch(e){t(e)}}function r(e){try{o(s.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof l?o:new l((function(e){e(o)}))).then(n,r)}o((s=s.apply(i,a||[])).next())}));var i,a,l,s}}})(o,t,s);return i.useEffect((()=>{return o.current?(e=o.current.canvas,Rr=u,e.addEventListener("mousewheel",Lr),e.addEventListener("DOMMouseScroll",Lr),()=>{e.removeEventListener("mousewheel",Lr),e.removeEventListener("DOMMouseScroll",Lr)}):F.ZT;var e}),[u]),i.createElement(mr,null,i.createElement(Ar,{handlePositionChange:e=>{l(e),c(!0)},image:t.imageLink,scale:m,position:a,ref:o}),i.createElement(Cr,{hasImage:!!t.imageLink,onScaleChange:u,setNewScale:e=>{d(e),c(!0)},scale:m}),i.createElement(kr,{saveAvatar:f,setAvatar:n,cancelString:r.cancel,saveString:r.save}))},$r=n(69983),Hr=n.n($r);const Vr=()=>e=>{return t=void 0,n=void 0,o=function*(){e({type:R,payload:!0}),yield(0,Lt.Z)("avatars").then((t=>e({type:T,payload:t}))),e({type:R,payload:!1})},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,l)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o},Wr=Me.ZP.button.withConfig({displayName:"Avatarstyled__Avatar",componentId:"sc-1m46djm-0"})(["max-width:6.45rem;width:100%;height:auto;outline:0;cursor:pointer;border:none;transition:transform 0.25s;background:none;margin:0 0.25rem 1rem;&:hover{transform:scale(1.05);}"]),Gr=Me.ZP.img.withConfig({displayName:"Avatarstyled__Image",componentId:"sc-1m46djm-1"})(["display:block;width:100%;height:100%;border-radius:0.3rem;"]);var Yr=e=>{var{src:t,onClick:n}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{avatars:t,clickHandler:n}=e;return i.createElement(Qr,null,t.map((e=>i.createElement(Yr,Object.assign({key:e.id,src:e.imageLink,id:e.id,onClick:()=>n(e)},bt.A("newProfile.prodileEditModal.editAvatarModal.avatar",{avatarId:e.id}))))))};const Xr=Me.ZP.div.withConfig({displayName:"SelectAvatarstyled__Body",componentId:"sc-mctajt-0"})(["position:relative;flex-basis:25.5rem;height:10rem;overflow:auto;&::-webkit-scrollbar{width:6px;cursor:pointer;}&::-webkit-scrollbar-track{background:transparent;}&::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.4);border-radius:10px;}&::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,0.55);}&::-webkit-scrollbar-thumb:focus{background:rgba(0,0,0,0.7);}"]);var Kr=e=>{let{onAvatarSelect:t}=e;const n=(0,fe.T)(),r=(0,ir.C)(sr,a.shallowEqual);i.useEffect((()=>{r.length||n(Vr())}),[r,n]);const o=i.useMemo((()=>Hr()(r.reduce(((e,t)=>[...e,...t.avatars]),[]))),[r]);return i.createElement(Xr,null,i.createElement(Jr,{avatars:o,clickHandler:e=>{t(e)}}))};const eo=Me.ZP.section.withConfig({displayName:"Avatarsstyled__Wrapper",componentId:"sc-wm3hoh-0"})(["display:flex;flex-direction:column;position:relative;"]),to=Me.ZP.div.withConfig({displayName:"Avatarsstyled__Heading",componentId:"sc-wm3hoh-1"})(["position:relative;padding:1.25rem 1.5rem;background:#fff;border-radius:0.6rem 0.6rem 0 0;"]),no=Me.ZP.p.withConfig({displayName:"Avatarsstyled__Title",componentId:"sc-wm3hoh-2"})(["color:#2d2d30;opacity:0.8;font-size:1.1rem;line-height:1.25rem;font-weight:600;text-align:center;margin:0;"]),ro=(0,Me.ZP)(Pr.ZP).withConfig({displayName:"Avatarsstyled__UploadButton",componentId:"sc-wm3hoh-3"})(["margin-top:1rem;"]),oo=Me.ZP.input.withConfig({displayName:"Avatarsstyled__Input",componentId:"sc-wm3hoh-4"})(["display:none;"]),io=(e,t)=>{let{id:n,imageLink:r}=e;return{id:n,imageLink:r,type:t}};var ao=()=>{const[e,t]=i.useState(null),n=(0,Ae.Z)(Te.U.Profile),r=(0,a.useSelector)(ke.Co,a.shallowEqual),o=i.useRef(null);return i.createElement(eo,null,i.createElement(to,null,i.createElement(no,null,n.strings.selectAvatar),!e&&i.createElement(ro,Object.assign({onClick:()=>{o.current&&o.current.click()},disabled:r.isLockedToChangeAvatar,size:It.Ph.large,color:It.Tt.secondary,fluid:!0},bt.A("newProfile.prodileEditModal.editAvatarModal.upload")),n.strings.uploadImage),i.createElement(oo,{type:"file",accept:"image/*",name:"newImage",onChange:e=>{t(io({imageLink:e.target.files[0]},Dr.CUSTOM))},ref:o})),e?i.createElement(qr,{avatar:e,setAvatar:t}):i.createElement(Kr,{onAvatarSelect:e=>{t(io(e,Dr.DEFAULT))}}))};const lo=Me.ZP.div.withConfig({displayName:"AvatarModalstyled__Wrapper",componentId:"sc-1kg8hk0-0"})(["width:38rem;min-height:1rem;background-color:rgb(238,238,238);"]),so=Me.ZP.button.withConfig({displayName:"AvatarModalstyled__Close",componentId:"sc-1kg8hk0-1"})(["width:25px;height:25px;position:absolute;top:10px;right:10px;border-radius:2px;background-color:transparent;border:none;cursor:pointer;z-index:2;"]);var co=()=>{const e=(0,a.useDispatch)(),t=(0,a.useSelector)(cr,a.shallowEqual),n=()=>{e(ur())};return i.createElement($n.Z,{isOpen:t,onClose:n,shouldCloseOnOverlayClick:!1,topPosition:7},i.createElement(lo,null,i.createElement(ao,null),i.createElement(so,Object.assign({onClick:n},bt.A("newProfile.prodileEditModal.editAvatarModal.close")),i.createElement(Hn.Z,null))))};const uo={mainBorder:"#d4d8dc",mainBackground:"#fff",titleColor:"#3e3e4b",hoverTitleColor:"#fff",circle:"#000"};var mo=n(37257);const fo=Me.ZP.div.withConfig({displayName:"Selectstyled__Option",componentId:"sc-d0de87-0"})(["position:relative;display:flex;padding:0.5rem 0 0.5rem 1.15rem;"," &:hover,&:focus{background-image:linear-gradient(to right,rgba(96,92,116,0.5) 0%,rgba(115,111,132,0.5) 100%);color:",";}"],(e=>(e.isFocused||e.isSelected)&&(0,Me.iv)(["background-image:linear-gradient(to right,rgba(96,92,116,0.5) 0%,rgba(115,111,132,0.5) 100%);color:",";"],e.theme.hoverTitleColor)),(e=>e.theme.hoverTitleColor)),po=Me.ZP.img.withConfig({displayName:"Selectstyled__OptionIcon",componentId:"sc-d0de87-1"})(["display:block;height:1rem;width:auto;border-radius:0.2rem;object-fit:cover;"]),go=Me.ZP.div.withConfig({displayName:"Selectstyled__Indicator",componentId:"sc-d0de87-2"})(["display:flex;height:100%;align-items:center;padding:0.5rem 0.75rem;box-sizing:border-box;& svg{opacity:0.8;}"]),ho=Me.ZP.div.withConfig({displayName:"Selectstyled__OptionLabel",componentId:"sc-d0de87-3"})(["font-size:0.8rem;font-weight:400;line-height:1rem;color:",";"],(e=>e.theme.titleColor)),vo=Me.ZP.div.withConfig({displayName:"Selectstyled__SingleValue",componentId:"sc-d0de87-4"})(["display:flex;flex:1 1 auto;"]),yo=(0,Me.ZP)(mo.ZP).withConfig({displayName:"Selectstyled__SelectStyled",componentId:"sc-d0de87-5"})(["display:flex;flex-direction:column;justify-content:flex-end;width:100%;height:2rem;& .Select__control{height:2rem;border-radius:0.2rem;background-color:",";border:solid 1px ",";transition:none;&:hover,&:focus{border-color:",";}}& .Select__value-container{padding:0 0.25rem 0 0.5rem;height:calc(2rem - 0.1rem);flex-wrap:nowrap;}& .Select__option--is-selected{display:none;position:relative;left:0;background-color:",";color:",";&:hover{background-color:#565264;}}& .Select__control--menu-is-open{position:relative;border-radius:0.2rem 0.2rem 0 0;height:2.25rem;padding-top:0.25rem;","{display:none;}&::after{content:none;position:absolute;top:-0.25rem;width:calc(100% + 0.1rem);height:0.3rem;left:-1px;background:",";border-radius:0.2rem 0.2rem 0 0;border-top:1px solid ",";border-left:1px solid ",";border-right:1px solid ",";}&.Select__control{border-bottom-color:transparent !important;}& .Select__value-container{padding-left:1.1rem;}& .Select__dropdown-indicator{display:none;}& .Select__value-container--has-value{&::before{content:'';position:absolute;top:calc(50% - 0.1rem);left:0.45rem;width:0.25rem;height:0.25rem;border-radius:50%;background:",";}&:hover{background-color:#565264;&::before{background:#fff;}& .Select__single-value{color:",";}}}}& .Select__control--is-focused{border-color:"," !important;box-shadow:none;}& .Select__control--is-disabled{opacity:0.5;& .Select__indicators{display:none;}}& .Select__placeholder{position:static;top:initial;transform:none;margin:0;font-size:0.8rem;font-weight:400;line-height:1rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:",";}& .Select__single-value{font-size:0.8rem;font-weight:400;line-height:1rem;color:",";}& .Select__indicators{color:hsl(0,0,40%);& .Select__indicator{padding:0;height:100%;width:1.75rem;align-items:center;justify-content:center;}}& .Select__indicator-separator{display:none;}& .Select__menu{margin-top:0;margin-bottom:0;border-radius:0 0 0.2rem 0.2rem;background-color:",";border-left:1px solid ",";border-right:1px solid ",";border-bottom:1px solid ",";box-shadow:0 1.75rem 2.25rem -1rem rgba(0,0,0,0.3);}& .Select__menu-list{text-align:left;color:",";padding-top:0;padding-bottom:0.25rem;height:10rem;&::-webkit-scrollbar{width:6px;cursor:pointer;}&::-webkit-scrollbar-track{background:transparent;}&::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.4);border-radius:10px;}&::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,0.55);}&::-webkit-scrollbar-thumb:focus{background:rgba(0,0,0,0.7);}}& .Select__option{padding-left:1.15rem;font-size:0.8rem;font-weight:400;line-height:1rem;color:",";background-color:transparent;& .option--is-selected,& .option--is-focused{background-color:#565264;color:",";}&:hover,&:focus{background-color:#565264;color:",";}}& ",":first-child{display:none;}}"],(e=>e.theme.mainBackground),(e=>e.theme.mainBorder),(e=>e.theme.mainBorder),(e=>e.theme.mainBackground),(e=>e.theme.titleColor),go,(e=>e.theme.mainBackground),(e=>e.theme.mainBorder),(e=>e.theme.mainBorder),(e=>e.theme.mainBorder),(e=>e.theme.circle),(e=>e.theme.hoverTitleColor),(e=>e.theme.mainBorder),(e=>e.theme.titleColor),(e=>e.theme.titleColor),(e=>e.theme.mainBackground),(e=>e.theme.mainBorder),(e=>e.theme.mainBorder),(e=>e.theme.mainBorder),(e=>e.theme.titleColor),(e=>e.theme.titleColor),(e=>e.theme.hoverTitleColor),(e=>e.theme.hoverTitleColor),fo),bo=e=>{let{id:t,theme:n=uo,options:r,onChange:o,onFocus:a,isDisabled:l=!1,placeholder:s,defaultValue:c,components:d,className:u,onMenuOpen:m,value:f}=e;return i.createElement(Me.f6,{theme:n},i.createElement(yo,{id:t,options:r,placeholder:s,defaultValue:c,value:f,components:d,onChange:o,classNamePrefix:"Select",blurInputOnSelect:!0,openMenuOnFocus:!0,isSearchable:!1,isDisabled:l,className:u,onMenuOpen:m,onFocus:a}))};bo.Option=fo,bo.OptionLabel=ho,bo.OptionIcon=po,bo.SingleValue=vo;var wo=bo;const Eo=Me.ZP.div.withConfig({displayName:"ReportModalstyled__Wrapper",componentId:"sc-hsnto2-0"})(["width:21rem;background-color:rgb(255,255,255);"]),xo=Me.ZP.h2.withConfig({displayName:"ReportModalstyled__Title",componentId:"sc-hsnto2-1"})(["font-size:18px;font-weight:600;line-height:20px;text-align:center;color:rgba(45,45,48,0.8);padding-top:25px;"]),Co=Me.ZP.button.withConfig({displayName:"ReportModalstyled__Close",componentId:"sc-hsnto2-2"})(["width:25px;height:25px;position:absolute;top:10px;right:10px;border-radius:2px;background-color:transparent;border:none;cursor:pointer;z-index:2;"]),Po=Me.ZP.div.withConfig({displayName:"ReportModalstyled__WrapperSelect",componentId:"sc-hsnto2-3"})(["padding:0 1.5rem;"]),_o=Me.ZP.div.withConfig({displayName:"ReportModalstyled__Actions",componentId:"sc-hsnto2-4"})(["display:flex;justify-content:center;align-items:center;margin-top:35px;text-align:center;padding-bottom:40px;& button{margin:0 7.5px;}"]);const Oo=()=>Nn(b);var ko=()=>{const e=(0,fe.T)(),t=(0,Ae.Z)(Te.U.Profile),n=(0,a.useSelector)(Ce.sx),r=(0,a.useSelector)(Ce.$w,a.shallowEqual),o=(()=>{const e=(0,Ae.Z)(Te.U.Profile);return i.useMemo((()=>[{label:e.strings.inappropriateUsername,value:"nickname"},{label:e.strings.inappropriateAvatar,value:"avatar"}]),[e.strings.inappropriateAvatar,e.strings.inappropriateUsername])})(),[l,s]=i.useState(o[0]),c=()=>{e(Oo())};return i.createElement($n.Z,{isOpen:y===n,onClose:F.ZT,shouldCloseOnOverlayClick:!1},i.createElement(Eo,null,i.createElement(xo,null,t.strings.selectReason),i.createElement(Co,{onClick:c},i.createElement(Hn.Z,null)),i.createElement(Po,null,i.createElement(wo,{onChange:e=>{s(e)},options:o,value:l})),i.createElement(_o,null,i.createElement(Pr.ZP,{size:It.Ph.medium,color:It.Tt.defaultNormal,onClick:c,isNoBoxShadow:!0},t.strings.cancel),i.createElement(Pr.ZP,{size:It.Ph.medium,color:It.Tt.secondary,onClick:()=>{var n,o;(n=r,o=l.value,(e=>{let{userId:t,value:n}=e;return(0,Lt.Z)(`user/me/reports/${t}/${n}`,{method:"POST"})})({userId:n,value:o})).then((()=>e((0,At.c)({type:Tt.H_,message:t.strings.reportSuccessMessage}))),(t=>{e((0,At.c)({type:Tt.pn,message:t.errors.map((e=>e.message)).join(" ")}))})),e(Oo())}},t.strings.report))))},So=n(81474),Io=n(21426),jo=e=>{var{botOffset:t=0}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{children:t}=e;return i.createElement(Ao,null,t)};const Ro=Me.ZP.div.withConfig({displayName:"ProfileInformationRowstyled__Wrapper",componentId:"sc-b2iysa-0"})(["margin-bottom:1rem;&:last-child{margin-bottom:0.5rem;}"]),zo=Me.ZP.div.withConfig({displayName:"ProfileInformationRowstyled__Details",componentId:"sc-b2iysa-1"})(["font-size:0.9rem;font-weight:500;line-height:1.25rem;color:#2d2d30;text-align:left;user-select:text;word-wrap:break-word;margin-left:0;margin-right:auto;"]),Lo=Me.ZP.div.withConfig({displayName:"ProfileInformationRowstyled__Row",componentId:"sc-b2iysa-2"})(["display:flex;"]);var Do,Fo=e=>{var{label:t,details:n,children:r}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o[{title:e.male,id:Do.Male},{title:e.none,id:Do.None},{title:e.female,id:Do.Female}];var qo=n(97033),$o=()=>{const e=(0,Ae.Z)(Te.U.Profile),t=function(){const e=(0,Ae.Z)(Te.U.Profile),{isMyProfile:t}=i.useContext(Re),n=(0,a.useSelector)(ke.Co,a.shallowEqual),r=(0,a.useSelector)(qo.EV,a.shallowEqual),o=(0,a.useSelector)(Ce.lf,a.shallowEqual),l=(0,a.useSelector)(qo.Zq,a.shallowEqual),s=i.useMemo((()=>o?`${l}${o.id}`:l),[l,o]),c=e=>(0,F.kC)(`${(0,Bo.Ne)(new Date(e))}, ${(0,Bo.NE)(new Date(e))}`),d=n&&n.dateOfBirth&&c(n.dateOfBirth)||"",u=o&&o.dateOfBirth&&c(o.dateOfBirth)||"",m=t?n.gender:null==o?void 0:o.gender,f=Uo(e.strings),p=f&&f.find((e=>{let{id:t}=e;return t===m}));return{userNickname:t?n.firstName:o.firstName,userId:t?n.id:o.id,gender:p,shareLink:t?r:s,dateOfBirth:t?d:u,about:(t?n.about:null==o?void 0:o.about)||""}}(),[n,r]=i.useState(!1),o=i.useRef();return i.useEffect((()=>()=>{o&&o.current&&clearTimeout(o.current)}),[]),t?i.createElement(i.Fragment,null,i.createElement(Mo,null,e.strings.personal),i.createElement(Fo,Object.assign({label:e.strings.nickName,details:t.userNickname},bt.A("newProfile.info.nickName"))),i.createElement(Fo,Object.assign({label:e.strings.profileId,details:String(t.userId)},bt.A("newProfile.info.profileId")),i.createElement(No.CopyToClipboard,{text:t.shareLink,onCopy:()=>{r(!0),o.current=setTimeout((()=>{r(!1)}),3e3)}},i.createElement(Zo,Object.assign({type:"button"},bt.A("newProfile.info.shareMyProfile")),n?e.strings.copyLinkSuccess:e.strings.shareMyProfile))),t.gender&&t.gender.id>0&&i.createElement(Fo,Object.assign({label:e.strings.gender,details:t.gender.title},bt.A("newProfile.info.gender"))),t.dateOfBirth&&i.createElement(Fo,Object.assign({label:e.strings.dateOfBirth,details:t.dateOfBirth},bt.A("newProfile.info.dateOfBirth"))),t.about&&i.createElement(Fo,Object.assign({label:e.strings.about,details:t.about},bt.A("newProfile.info.about")))):null},Ho=n(82526);const Vo=(0,Me.F4)(["from{width:13rem;}to{width:14rem;}"]),Wo=(0,Me.ZP)(wt.Z).withConfig({displayName:"GameCardMediastyled__Wrapper",componentId:"sc-yhbwfv-0"})(["outline:0;margin:1.75rem 0 0.25rem;padding:0 0.75rem;border:0;position:relative;text-decoration:none;display:block;border-radius:0.3rem;box-shadow:0 0.1rem 0.4rem -0.2rem rgba(0,0,0,0.3);background-color:#fff;cursor:pointer;height:16.5rem;"]),Go=Me.ZP.div.withConfig({displayName:"GameCardMediastyled__PlayButton",componentId:"sc-yhbwfv-1"})(["position:absolute;width:3rem;height:3rem;top:50%;left:50%;border-radius:50%;background-color:transparent;backdrop-filter:blur(1rem);transform:scale(1) translate(-50%,-50%);transform-origin:top left;transition:transform 0.25s ease,backdrop-filter 0.25s ease;z-index:10;& svg{width:100%;height:auto;}"]),Yo=Me.ZP.div.withConfig({displayName:"GameCardMediastyled__PlayAction",componentId:"sc-yhbwfv-2"})(["display:flex;align-items:center;justify-content:flex-end;position:absolute;right:0;top:50%;border-radius:0.3rem;transform:translateY(-50%);width:13rem;height:100%;background:transparent;z-index:10;transition:width 0.25s ease;&::before{content:'';display:block;position:absolute;top:0;right:0;width:100%;height:100%;background-image:linear-gradient(to left,#fff,#fff 72%,rgba(255,255,255,0));opacity:0;transition:opacity 0.25s ease;}& button{margin-right:0.5rem;opacity:0;transform:translateY(-0.25rem);transition:transform 0.25s ease,opacity 0.25s ease;}"]),Qo=Me.ZP.img.withConfig({displayName:"GameCardMediastyled__Preview",componentId:"sc-yhbwfv-3"})(["position:absolute;top:0;left:0;display:block;width:100%;height:100%;opacity:1;object-fit:cover;transition:opacity 0.25s ease;z-index:2;"]),Jo=Me.ZP.img.withConfig({displayName:"GameCardMediastyled__Image",componentId:"sc-yhbwfv-4"})(["position:absolute;top:0;left:0;display:block;width:100%;height:100%;object-fit:cover;z-index:2;"]),Xo=Me.ZP.div.withConfig({displayName:"GameCardMediastyled__Media",componentId:"sc-yhbwfv-5"})(["position:relative;height:13.25rem;overflow:hidden;background-color:",";border-radius:0.3rem;z-index:11;box-shadow:0 0.5rem 1.5rem -0.5rem rgba(0,0,0,0),0 0.5rem 1.5rem -0.6rem rgba(0,0,0,0.3),0 0.25rem 1rem -0.5rem rgba(0,0,0,0.6);transition:0.25s ease;&::before{content:'';position:absolute;left:0;top:0;right:0;bottom:0;background-color:rgba(0,0,0,0.1);z-index:5;}"],(e=>{let{theme:t}=e;return t.color.gray})),Ko=Me.ZP.div.withConfig({displayName:"GameCardMediastyled__Container",componentId:"sc-yhbwfv-6"})(["position:relative;transform:translateY(-1rem);&:hover{","{width:14rem;animation:"," 0.25s ease;&::before{opacity:1;}& button{opacity:1;transform:translateY(0);}}","{box-shadow:0 0.5rem 1.5rem -0.5rem rgba(0,0,0,0.15),0 0.5rem 1.5rem -0.6rem rgba(0,0,0,0.3),0 0.25rem 1rem -0.5rem rgba(0,0,0,0.6);transform:translateY(-0.25rem);","{opacity:0;}","{opacity:0;transform:scale(1.5) translate(-50%,-50%);}}}"],Yo,Vo,Xo,Qo,Go),ei=Me.ZP.div.withConfig({displayName:"GameCardMediastyled__Info",componentId:"sc-yhbwfv-7"})(["display:flex;flex-direction:row;align-items:center;position:relative;text-align:left;padding:0.75rem 0.5rem 1rem;overflow:hidden;"]),ti=Me.ZP.h2.withConfig({displayName:"GameCardMediastyled__Title",componentId:"sc-yhbwfv-8"})(["font-size:1rem;font-weight:600;line-height:1.5rem;color:rgba(45,45,48,0.9);margin:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]),ni=Me.ZP.div.withConfig({displayName:"GameCardMediastyled__Subtitle",componentId:"sc-yhbwfv-9"})(["font-size:0.8rem;font-weight:500;line-height:1rem;color:rgba(0,0,0,0.5);margin:0;padding:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"]),ri=Me.ZP.div.withConfig({displayName:"GameCardMediastyled__Details",componentId:"sc-yhbwfv-10"})(["display:flex;flex-direction:column;margin-right:0.5rem;"]);var oi=e=>{let{title:t,subTitle:n,preview:r,link:o,children:a}=e;return i.createElement(Wo,{"aria-hidden":!0,href:o},i.createElement(Ko,null,i.createElement(Xo,null,i.createElement(Jo,{src:r.src})),i.createElement(ei,null,i.createElement(ri,null,i.createElement(ti,null,t),i.createElement(ni,null,n)),i.createElement(Yo,null,a))))};const ii=Me.ZP.div.withConfig({displayName:"LastPlayedGamestyled__Title",componentId:"sc-13nwkip-0"})(["padding:0.75rem 0.75rem;border-radius:0.2rem;background-color:#fff;color:rgba(45,45,48,0.7);line-height:1rem;font-size:0.75rem;font-weight:500;"]);var ai=()=>{const e=(0,Ae.Z)(Te.U.GlobalStaticV3),t=(0,Ae.Z)(Te.U.GameInfoCardV3),n=(0,Ae.Z)(Te.U.Profile),r=function(e){const t=(0,a.useSelector)(Ce.lf,a.shallowEqual);return i.useMemo((()=>{if(t.userServers&&t.userServers.length){const n=[...t.userServers].sort(((e,t)=>e.order-t.order));return e.find((e=>n[0].gameId===parseInt(e.options.gameId,10)))}return null}),[e,t.userServers])}(t.repeaters.gameInfo);return(0,F.xb)(r)?i.createElement(ii,null,n.strings.playedGamesEmpty):i.createElement(i.Fragment,null,i.createElement(ii,null,n.strings.lastPlayedGameTitle),r&&i.createElement(oi,{preview:{src:r.images.mainImage.src,alt:"lastPlayedGame"},title:r.strings.gameHeaderTitle,subTitle:r.strings.gameHeaderSubTitle,link:r.links.gameHeaderGamePage},i.createElement(Ho.Z,{size:It.Ph.medium,color:It.Tt.primary,href:r.links.gameHeaderGamePage},e.strings.readMore)))},li=n(59298),si=n(39822);const ci=Me.ZP.div.withConfig({displayName:"ModalConfirmstyled__Content",componentId:"sc-1j7xqzc-0"})(["display:flex;flex-direction:column;position:relative;border-radius:4px;max-width:100%;box-shadow:rgb(0 0 0 / 40%) 0 2rem 3rem -0.75rem;cursor:default;width:21rem;background-color:rgb(255,255,255);padding:1.25rem 1.5rem 2rem;"]),di=Me.ZP.div.withConfig({displayName:"ModalConfirmstyled__Title",componentId:"sc-1j7xqzc-1"})(["font-size:1.1rem;text-align:center;color:rgba(45,45,48,0.8);font-weight:600;line-height:1.25rem;margin-bottom:1rem;"]),ui=Me.ZP.div.withConfig({displayName:"ModalConfirmstyled__Description",componentId:"sc-1j7xqzc-2"})(["font-size:0.9rem;font-weight:500;text-align:center;color:rgb(64,64,64);margin-bottom:1.75rem;"]),mi=Me.ZP.div.withConfig({displayName:"ModalConfirmstyled__Controls",componentId:"sc-1j7xqzc-3"})(["display:flex;justify-content:center;align-items:center;text-align:center;& button{margin:0 0.25rem;}"]);var fi=e=>i.createElement($n.Z,{isOpen:e.isOpen,shouldCloseOnOverlayClick:!1,isHeaderAbove:!0,onClose:e.onClose},i.createElement(ci,null,e.title?i.createElement(di,null,e.title):null,e.description?i.createElement(ui,null,e.description):null,i.createElement(mi,null,e.rejectText?i.createElement(Pr.ZP,Object.assign({color:It.Tt.defaultNormal,onClick:e.onReject},bt.A("modalConfirm.reject")),e.rejectText):null,e.resolveText?i.createElement(Pr.ZP,Object.assign({color:It.Tt.secondary},bt.A("modalConfirm.resolve"),{onClick:()=>{e.onResolve(e.network)}}),e.resolveText):null))),pi=n(99484),gi=n(30820),hi=n(58267);const vi=Me.ZP.h2.withConfig({displayName:"SocialConnectstyled__Title",componentId:"sc-h6x2xv-0"})(["font-size:1.1rem;font-weight:600;line-height:1.25rem;color:rgba(45,45,48,0.8);margin-top:0;margin-bottom:20px;text-align:left;"]),yi=Me.ZP.div.withConfig({displayName:"SocialConnectstyled__NetworkElement",componentId:"sc-h6x2xv-1"})(["display:flex;flex-direction:row;margin-bottom:25px;align-items:center;&:last-child{margin-bottom:0.5rem;}"]),bi=Me.ZP.div.withConfig({displayName:"SocialConnectstyled__NetworkIcon",componentId:"sc-h6x2xv-2"})(["z-index:1;width:2rem;height:2rem;flex-shrink:0;& svg{width:100%;height:auto;vertical-align:middle;}"]),wi=Me.ZP.div.withConfig({displayName:"SocialConnectstyled__NetworkLabel",componentId:"sc-h6x2xv-3"})(["opacity:1;font-size:0.9rem;font-weight:500;line-height:1.25rem;color:#2d2d30;text-align:left;flex-grow:2;align-self:center;margin-left:0.5rem;user-select:text;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;",""],(e=>e.disabled&&(0,Me.iv)(["opacity:0.6;"]))),Ei={fb:pi.Z,gp:gi.Z,twitch:hi.Z};var xi=e=>{const t=(0,Ae.Z)(Te.U.Profile),n=Ei[e.socialName],r=e.isLinked?It.Tt.defaultNormal:It.Tt.secondary,o=e.userSocialName||t.strings.notLinkedSocial;return i.createElement(yi,null,n?i.createElement(bi,null,i.createElement(n,null)):null,i.createElement(wi,{disabled:!e.isLinked},o),i.createElement(Pr.ZP,Object.assign({color:r,size:It.Ph.extraSmall,onClick:e.onClick,isNoBoxShadow:!0},bt.A("newProfile.info.socialConnect",{socialName:e.socialName})),e.isLinked?t.strings.unlinked:t.strings.linked))},Ci={twitch:{languages:["ru","int"]},fb:{languages:["ru","int"]},gp:{languages:["ru","int"]}},Pi=()=>{const e=(0,Ae.Z)(Te.U.Profile),t=(0,a.useSelector)(li.xI,a.shallowEqual),n=(0,a.useSelector)(ke.Co,a.shallowEqual),r=(0,fe.T)(),[o,l]=i.useState(!1),[s,c]=i.useState(""),d=i.useCallback((()=>{l(!1)}),[]),u=i.useCallback((e=>{l(!0),e&&c(e)}),[]),m=i.useCallback((t=>{r((0,si.C)(t)).then((t=>{t.ok&&(r((0,Se.L)()),r((0,At.c)({type:Tt.H_,message:e.strings.notificationSocialBind}))),!t.ok&&t.errorMessage&&r((0,At.c)({type:Tt.pn,message:t.errorMessage}))}),(e=>{r((0,At.c)({type:Tt.pn,message:e}))}))}),[r,e.strings.notificationSocialBind]),f=i.useCallback((t=>{return n=void 0,o=void 0,a=function*(){try{const n=Ft[t]||"";yield(e=>{let{network:t}=e;return(0,Lt.Z)("socialAuth/unbind",{method:"POST",data:{providerType:t}})})({network:n}),r((0,Se.L)()),r((0,At.c)({type:Tt.H_,message:e.strings.notificationSocialUnbind})),d()}catch(e){r((0,At.c)({type:Tt.pn,message:e.errors.map((e=>e.message)).join(" ")})),d()}},new((i=void 0)||(i=Promise))((function(e,t){function r(e){try{s(a.next(e))}catch(e){t(e)}}function l(e){try{s(a.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(r,l)}s((a=a.apply(n,o||[])).next())}));var n,o,i,a}),[r,d,e.strings.notificationSocialUnbind]),p=i.useCallback((e=>()=>{const t=Ft[e]||"";return(0,F.cq)(n.authMethods,t)>=0?u(e):m(e)}),[m,u,n.authMethods]),g=i.useMemo((()=>"fb, gp, twitch".split(",").map((e=>{const r=e.trim();if(!function(){if(!Ci[r])return!0;const e=(0,F.cq)(Ci[r].languages,"int")>=0,n=(0,F.cq)(Ci[r].languages,"ru")>=0;return t?n:e}())return null;const o=Ft[r]||"",a=(0,F.cq)(n.authMethods,o)>=0;return i.createElement(xi,{key:r,socialName:r,userSocialName:n.socialNetworkNames[Ft[r]],isLinked:a,onClick:p(r)})}))),[p,t,n.authMethods,n.socialNetworkNames]);return i.createElement(i.Fragment,null,i.createElement(vi,null,e.strings.connectSocialAccounts),g,o&&i.createElement(fi,{network:s,isOpen:o,title:e.strings.unlinkPopupTitle,description:e.strings.confirmUnbindSocialAccount,resolveText:e.strings.yes,rejectText:e.strings.no,onResolve:f,onReject:d,onClose:d}))};const _i=(0,Me.iv)(["width:100%;@media only screen and (min-width:1650px){max-width:","px;}@media only screen and (min-width:1440px) and (max-width:1649px){max-width:1080px;}@media only screen and (min-width:1280px) and (max-width:1439px){max-width:980px;}@media only screen and (max-width:1279px){max-width:870px;}"],(e=>e.large?1400:1200)),Oi=(Me.ZP.div.withConfig({displayName:"ExtraContainerstyled__ContainerElement",componentId:"sc-lfqo72-0"})(["margin-left:0;margin-right:auto;",""],_i),Me.ZP.div.withConfig({displayName:"ExtraContainerstyled__CenteredContainer",componentId:"sc-lfqo72-1"})(["margin-left:auto;margin-right:auto;",""],_i)),ki=e=>{let{large:t,children:n}=e;return i.createElement(Oi,{large:t},n)},Si=(0,Me.iv)(["border-radius:0.3rem;background-color:#fff;"]),Ii=(Me.ZP.div.withConfig({displayName:"ContentWrapperstyled__CommonWrapper",componentId:"sc-fwsvd9-0"})(["",";padding:1.5rem 1.5rem 1.75rem 1.25rem;margin:1rem 0.5rem;"],Si),Me.ZP.div.withConfig({displayName:"ContentWrapperstyled__ProfileWrapper",componentId:"sc-fwsvd9-1"})(["",";padding:1.5rem 1.25rem;margin:0 0 0.5rem;border-radius:0.2rem;width:100%;max-width:",";"],Si,(e=>e.isTrimmedWidth?"30rem":"100%"))),ji=e=>{let{isTrimmedWidth:t,children:n}=e;return i.createElement(Ii,{isTrimmedWidth:t},n)};var Ni=e=>{let{paddLeft:t=0,paddRight:n=0,paddTop:r=0,paddBottom:o=0,children:a}=e;const l=`${t}rem`,s=`${n}rem`,c=`${r}rem`,d=`${o}rem`;return i.createElement("div",{style:{paddingLeft:l,paddingRight:s,paddingTop:c,paddingBottom:d}},a)},Mi=()=>{const{isMyProfile:e}=i.useContext(Re);return i.createElement(i.Fragment,null,i.createElement(Ni,{paddLeft:1.75,paddRight:1.75},i.createElement(ki,null,i.createElement(So.Z,{indents:.5,cols:2},i.createElement(jo,null,i.createElement(ji,null,i.createElement($o,null))),i.createElement(jo,null,e?i.createElement(ji,null,i.createElement(Pi,null)):i.createElement(ai,null))))))},Zi=n(58092);const Ai=Me.ZP.div.withConfig({displayName:"ContentWithAsidestyled__Aside",componentId:"sc-hoblxs-0"})(["max-width:14.5rem;margin-left:1rem;padding:0 0.5rem;flex:1;position:sticky;top:125px;"]),Ti=Me.ZP.div.withConfig({displayName:"ContentWithAsidestyled__Main",componentId:"sc-hoblxs-1"})(["width:100%;padding:0 0.5rem;flex:1;"]);var Ri=e=>{let{aside:t,content:n}=e;return i.createElement(Ni,{paddLeft:1.75,paddRight:1.75},i.createElement(ki,null,i.createElement(So.Z,{indents:.5},i.createElement(Ai,null,t),i.createElement(Ti,null,n))))},zi=n(4244),Li=e=>{let{height:t,backgroundColor:n="transparent"}=e;return i.createElement("div",{style:{height:`${t}rem`,width:"100%",backgroundColor:n}})},Di=n(1472),Fi=n(88169),Bi=(e,t)=>{const n=(e=>{const t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,((e,t,n,r)=>t+t+n+n+r+r)),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null})(e);return n?`rgba(${n.r}, ${n.g}, ${n.b}, ${t})`:e};const Ui=Me.ZP.span.withConfig({displayName:"Elements__FieldError",componentId:"sc-10r3tt-0"})(["display:flex;color:#e35a59;font-size:0.7rem;line-height:0.75rem;margin-top:0.25rem;min-height:1.1rem;&:empty{display:none;}"]),qi=Me.ZP.button.withConfig({displayName:"Elements__TextButton",componentId:"sc-10r3tt-1"})(["display:flex;font-size:0.7rem;font-weight:500;color:#027aff;background:transparent;border:none;cursor:pointer;&:hover{color:#268eff;}"]),$i=Me.ZP.p.withConfig({displayName:"Elements__Text",componentId:"sc-10r3tt-2"})(["font-size:0.8rem;color:#2d2d30;line-height:1.25rem;font-weight:500;margin-bottom:0;"]),Hi=(0,Me.ZP)($n.Z).withConfig({displayName:"Elements__SettingsLightModal",componentId:"sc-10r3tt-3"})([".Modal{width:26.75rem;background-color:#fff;padding:1.75rem 1.75rem 2.25rem;border-radius:0.6rem;box-shadow:0 2rem 3rem -0.75rem rgba(0,0,0,0.4);}","{margin-top:0.75rem;}","{margin-top:0.75rem;font-size:0.7rem;line-height:normal;}"],qi,$i),Vi=Me.ZP.div.withConfig({displayName:"Accountstyled__EditButtonsWrapper",componentId:"sc-sg4lax-0"})(["display:flex;justify-content:flex-end;align-items:center;width:100%;margin:0;& button{margin-left:0.75rem;}"]),Wi=Me.ZP.div.withConfig({displayName:"Accountstyled__TitleWrapper",componentId:"sc-sg4lax-1"})(["display:flex;align-items:center;justify-content:space-between;width:100%;",""],(e=>e.isShifted&&(0,Me.iv)(["margin-top:-0.25rem;"]))),Gi=(0,Me.ZP)(Di.lf).withConfig({displayName:"Accountstyled__Title",componentId:"sc-sg4lax-2"})(["margin:0;"]),Yi=(0,Me.ZP)(Di.lf).withConfig({displayName:"Accountstyled__ModalTitle",componentId:"sc-sg4lax-3"})(["text-align:center;margin:0 0 1rem;"]),Qi=(0,Me.ZP)(Fi.Z).withConfig({displayName:"Accountstyled__Description",componentId:"sc-sg4lax-4"})(["font-size:0.8rem;line-height:1rem;font-weight:400;color:",";margin-bottom:0.25rem;text-align:",";"],(e=>{let{theme:t}=e;return Bi(t.color.dark,.8)}),(e=>e.textAlign?e.textAlign:"")),Ji=(0,Me.ZP)(Pr.ZP).attrs({size:It.Ph.small,color:It.Tt.defaultNormal}).withConfig({displayName:"Accountstyled__EditButton",componentId:"sc-sg4lax-5"})(["box-shadow:none;min-width:85px;"]),Xi=Me.ZP.p.withConfig({displayName:"Accountstyled__EmailValueContainer",componentId:"sc-sg4lax-6"})(["font-size:0.8rem;font-weight:500;line-height:1.25rem;margin:0;color:",";",""],(e=>{let{theme:t}=e;return Bi(t.color.dark,.7)}),(e=>e.isEditState&&(0,Me.iv)(["color:",";"],(e=>{let{theme:t}=e;return Bi(t.color.dark,1)})))),Ki=Me.ZP.div.withConfig({displayName:"Accountstyled__SettingsInfoBar",componentId:"sc-sg4lax-7"})(["display:flex;align-items:center;padding:0.5rem 0.75rem;position:relative;border-radius:0.2rem;border:1px solid #dadee1;background-color:#f9f9f9;overflow:hidden;margin-bottom:",";"," "," ","{font-size:0.8rem;}"],(e=>`${e.marginBottom||0}rem`),(e=>e.isTransparent&&(0,Me.iv)(["padding:0;background-color:transparent;border:none;"])),(e=>e.isStripted&&(0,Me.iv)(["&::before{content:'';top:0;left:0;display:block;position:absolute;width:0.2rem;height:100%;background-color:#fdab02;}"])),qi),ea=Me.ZP.span.withConfig({displayName:"Accountstyled__SettingsInfoLabel",componentId:"sc-sg4lax-8"})(["font-size:0.8rem;font-weight:500;line-height:1rem;color:",";margin-right:0.25rem;"],(e=>{let{theme:t}=e;return Bi(t.color.dark,.9)})),ta=Me.ZP.div.withConfig({displayName:"Accountstyled__ModalButtonsWrapper",componentId:"sc-sg4lax-9"})(["display:flex;justify-content:center;align-items:center;text-align:center;width:100%;margin:1.75rem auto 0;& button{margin:0 0.5rem;}"]),na=Me.ZP.div.withConfig({displayName:"Accountstyled__DescriptionBlock",componentId:"sc-sg4lax-10"})(["border-radius:0.3rem;border:solid 1px #dadee1;background:#f9f9f9;padding:1rem;margin:1rem 0;p{margin:0;padding:0;text-align:center;}"]),ra=(0,Me.ZP)(Pr.ZP).attrs({color:It.Tt.defaultNormal,type:"button",isNoBoxShadow:!0}).withConfig({displayName:"Accountstyled__DefaultButton",componentId:"sc-sg4lax-11"})([""]),oa=(0,Me.ZP)(Pr.ZP).attrs({color:It.Tt.secondary,type:"submit",isNoBoxShadow:!0}).withConfig({displayName:"Accountstyled__SubmitButton",componentId:"sc-sg4lax-12"})([""]),ia=Me.ZP.div.withConfig({displayName:"Accountstyled__FieldWrapper",componentId:"sc-sg4lax-13"})(["width:100%;margin-bottom:0.75rem;","{margin-bottom:0.25rem;}&:last-child{margin-bottom:0.5rem;}"],Ao),aa=Me.ZP.button.withConfig({displayName:"Accountstyled__DeactivateAccountButton",componentId:"sc-sg4lax-14"})(["font-size:16px;font-weight:500;line-height:20px;letter-spacing:normal;color:#ff6159;background:none;border:none;cursor:pointer;"]);var la=n(87642),sa=n(22504);const ca=Me.ZP.div.withConfig({displayName:"DefaultInputstyled__InputWrapper",componentId:"sc-1qsm7sn-0"})(["position:relative;display:block;width:100%;"]),da=Me.ZP.input.withConfig({displayName:"DefaultInputstyled__Input",componentId:"sc-1qsm7sn-1"})(["font-size:0.8rem;line-height:1rem;position:relative;display:block;width:100%;height:2rem;padding-right:0.5rem;padding-left:0.5rem;color:#3e3e4b;border:1px solid #d4d8dc;border-radius:0.2rem;background-color:#fff;font-family:inherit;font-weight:500;&:-webkit-autofill{color:#526173 !important;box-shadow:inset 0 0 0 2.5rem #f7ebf3 !important;}&::placeholder{color:rgba(0,0,0,0.3);}&:disabled{background-color:#eeeff1;color:#c8ccd1;}&:hover{border-color:#bdbdbd;}&:active,&:focus{border-color:#526173;}",""],(e=>e.hasError&&(0,Me.iv)(["border-color:#e35a59;"])));const ua=i.forwardRef(((e,t)=>{var{children:n}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{disableFocusOnMount:n=!1}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{!n&&o&&o.current&&o.current.focus()}),[o,n]),i.createElement(ma,Object.assign({},r,{ref:o}))}));fa.displayName="AutofocusedInput";var pa=fa,ga=e=>{const[t,n]=i.useState(0),r=e.replace(/\${timeout}/g,String(t));return i.useEffect((()=>{let e;return t>0&&(e=setTimeout((()=>n((e=>e-1))),1e3)),()=>{e&&clearTimeout(e)}}),[t,n]),{lockString:r,lockTime:t,setLockTime:n}},ha=n(10649);const va={email:[ha.jQ.required,ha.jQ.email],password:[ha.jQ.required,ha.jQ.password],code:[ha.jQ.required,ha.jQ.code]},ya={email:"",password:"",code:""};var ba=e=>{const[t,n]=i.useState(ya),r={required:e.required,email:e.email,password:e.password,code:e.code},o=(0,ha.Te)(va,r),a=e=>{return t=void 0,r=void 0,a=function*(){try{return n(ya),yield o(e),Promise.resolve()}catch(e){return n(e),Promise.reject(e)}},new((i=void 0)||(i=Promise))((function(e,n){function o(e){try{s(a.next(e))}catch(e){n(e)}}function l(e){try{s(a.throw(e))}catch(e){n(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(o,l)}s((a=a.apply(t,r||[])).next())}));var t,r,i,a};return{validate:a,validateDebounced:(0,F.Ds)(a,150),errors:t}},wa=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))};const Ea="settingsEmail";var xa=e=>{let{twoFactorMethod:t,isOpen:n,modalPlacement:r,onReject:o,onSubmit:a,onResendCode:l}=e;const[s,c]=i.useState(""),[d,u]=i.useState(""),[m,f]=i.useState(!1),p=(0,fe.T)(),{profileUserData:g}=i.useContext(Re),h=(0,Ae.Z)(Te.U.Profile),v=t===sa.zh.GOOGLE,y=t&&t in sa.zh,b=r===Ea,{lockString:w,lockTime:E,setLockTime:x}=ga(h.strings.lockSendVerificationCode),C=i.useMemo((()=>v?h.strings.codeModalTFAAuthAppDescription:g&&h.strings.codeModalTFAEmailDescription.replace(/\${usermail}/g,g.email)),[v,g,h.strings.codeModalTFAAuthAppDescription,h.strings.codeModalTFAEmailDescription]),P=i.useMemo((()=>b?i.createElement(i.Fragment,null,i.createElement(Di.nv,null,C),i.createElement(Li,{height:.5}),i.createElement(Di.nv,null,h.strings.codeModalTFAWarning)):i.createElement(Di.nv,null,C)),[C,b,h.strings]),_=i.useMemo((()=>y?P:g&&i.createElement(Di.nv,null,h.strings.codeModalDescription.replace(/\${usermail}/g,g.email))),[P,y,g,h.strings.codeModalDescription]),{validateDebounced:O,validate:k,errors:S}=ba({required:h.strings.errorRequired,code:h.strings.errorCode}),I=i.useCallback((()=>wa(void 0,void 0,void 0,(function*(){try{l(),x(59)}catch(e){const t=(0,la.b)(e),n=t.code||t.common;n&&p((0,At.c)({type:Tt.pn,message:n})),o()}}))),[p,o,l,x]),j=i.useMemo((()=>v?null:E?i.createElement($i,null,w):i.createElement(qi,Object.assign({type:"button",onClick:I},bt.A("newProfile.settings.codeModal.resend")),h.strings.sendAgainVerificationCode)),[v,E,w,I,h.strings.sendAgainVerificationCode]);return i.createElement(Hi,{isOpen:n,onClose:F.ZT},i.createElement("form",{onSubmit:e=>wa(void 0,void 0,void 0,(function*(){e.preventDefault(),m||f(!0),yield k({code:s});try{yield a(s)}catch(e){u(e)}})),autoComplete:"off"},i.createElement(Yi,null,h.strings.settingsModalVerificationTitle),i.createElement(na,null,_),i.createElement(Qi,{html:h.strings.settingsModalVerificationLabel}),i.createElement(pa,Object.assign({name:"code",type:"text",maxLength:6,value:s,onChange:e=>wa(void 0,void 0,void 0,(function*(){const t=e.target.value;m?(yield O({code:t}),u(""),c(t)):c(t)}))},bt.A("newProfile.settings.codeModal.input")),i.createElement(Ui,Object.assign({},bt.A("newProfile.settings.codeModal.inputError")),S.code||d)),j,i.createElement(ta,null,i.createElement(ra,Object.assign({onClick:()=>{o()}},bt.A("newProfile.settings.codeModal.cancel")),h.strings.cancel),i.createElement(oa,Object.assign({disabled:!!S.password},bt.A("newProfile.settings.codeModal.save")),h.strings.verifyButtonCode))))};function Ca(e,t){const n=(0,la.b)(e);return n[t]||n.common||""}var Pa=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},_a=e=>{let{isOpen:t,onPasswordModalReject:n,onSubmit:r}=e;const o=(0,Ae.Z)(Te.U.Profile),l=(0,a.useSelector)(ke.Co,a.shallowEqual),s=i.useRef(null),{lockString:c,lockTime:d,setLockTime:u}=ga(o.strings.lockSendRestorePassword),[m,f]=i.useState(""),[p,g]=i.useState(""),[h,v]=i.useState(!1),y=(0,fe.T)(),{validateDebounced:b,validate:w,errors:E}=ba({required:o.strings.errorRequired,password:o.strings.errorPassword}),x=()=>{f("")},C=()=>{x(),v(!1),n()};return i.createElement(Hi,{isOpen:t,onClose:F.ZT},i.createElement("form",{onSubmit:e=>Pa(void 0,void 0,void 0,(function*(){var t,n;e.preventDefault(),h||v(!0),yield w({password:m});try{yield r(m),x()}catch(e){g(e),null===(t=s.current)||void 0===t||t.focus(),null===(n=s.current)||void 0===n||n.setSelectionRange(0,s.current.value.length)}})),autoComplete:"off"},i.createElement(Yi,null,o.strings.settingsModalPasswordTitle),i.createElement(Qi,{html:o.strings.settingsModalPasswordDescription}),i.createElement(pa,Object.assign({ref:s,value:m,name:"password",type:"password",onChange:e=>Pa(void 0,void 0,void 0,(function*(){const t=e.target.value;h?(yield b({password:t}),g(""),f(t)):f(t)}))},bt.A("newProfile.settings.confirmPassword.input")),i.createElement(Ui,Object.assign({},bt.A("newProfile.settings.confirmPassword.inputError")),E.password||p)),d?i.createElement($i,null,c):i.createElement(qi,Object.assign({type:"button",onClick:()=>Pa(void 0,void 0,void 0,(function*(){try{yield sa.iW({email:l.email}),u(299)}catch(e){C();const t=Ca(e,"password");y((0,At.c)({type:Tt.pn,message:t||o.strings.notificationRestorePasswordError}))}}))},bt.A("newProfile.settings.confirmPassword.restorePassword")),o.strings.forgotPasswordQuestion),i.createElement(ta,null,i.createElement(ra,Object.assign({},bt.A("newProfile.settings.confirmPassword.cancel"),{onClick:()=>{C()}}),o.strings.cancel),i.createElement(oa,Object.assign({disabled:!!E.password},bt.A("newProfile.settings.confirmPassword.save")),o.strings.settingsModalPasswordBtnSave))))};const Oa=Me.ZP.div.withConfig({displayName:"ContentDividerstyled__DividerElement",componentId:"sc-9fg7l3-0"})(["width:100%;height:2px;background:#f0f0f0;margin:",";"],(e=>e.margin?`${e.margin}rem 0`:"1rem 0;"));var ka=e=>{let{margin:t}=e;return i.createElement(Oa,{margin:t})},Sa=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},Ia=e=>{let{inputEmailRef:t,closeEditForm:n,onSubmit:r,codeModalState:o}=e;const a=(0,Ae.Z)(Te.U.Profile),[l,s]=i.useState(""),[c,d]=i.useState(""),[u,m]=i.useState(!1),{validateDebounced:f,validate:p,errors:g}=ba({required:a.strings.errorRequired,email:a.strings.errorEmail});return i.createElement("form",{autoComplete:"off",onSubmit:e=>Sa(void 0,void 0,void 0,(function*(){e.preventDefault(),u||m(!0),yield p({email:l});try{yield r(l)}catch(e){d(e)}}))},i.createElement(ka,null),i.createElement(ia,null,i.createElement(To,null,a.strings.settingsEmailLabel),i.createElement(Li,{height:.25}),i.createElement(pa,Object.assign({ref:t,value:l,name:"email",type:"text",onChange:e=>Sa(void 0,void 0,void 0,(function*(){const t=e.target.value;u?(yield f({email:t}),d(""),s(t)):s(t)}))},bt.A("newProfile.settings.editEmail.newEmailInput")),i.createElement(Ui,Object.assign({},bt.A("newProfile.settings.editEmail.newEmailInput.error")),g.email||c))),i.createElement(Li,{height:.75}),i.createElement(Vi,null,i.createElement(ra,Object.assign({onClick:n},bt.A("newProfile.settings.editEmail.cancel")),a.strings.cancel),i.createElement(oa,Object.assign({disabled:!!g.email||!!c||o},bt.A("newProfile.settings.editEmail.save")),a.strings.saveChanges)))},ja=e=>{let{onEditableStateReject:t,onPasswordModalReject:n,onCodeModalReject:r,codeModalState:o,passwordModalState:a,onEmailSubmit:l,onPasswordSubmit:s,onCodeSubmit:c,onSubmitResendCode:d}=e;return i.createElement(i.Fragment,null,i.createElement(Ia,{closeEditForm:t,codeModalState:o,onSubmit:l}),i.createElement(_a,{isOpen:a,onPasswordModalReject:n,onSubmit:s}),o?i.createElement(xa,{isOpen:o,modalPlacement:Ea,onSubmit:c,onReject:r,onResendCode:d}):null)},Na=n(54209),Ma=()=>{const e=(0,fe.T)(),t=(0,Ae.Z)(Te.U.Profile),n=(0,a.useSelector)(ke.Co,a.shallowEqual),r=i.useCallback((()=>{return n=void 0,r=void 0,i=function*(){try{yield(0,sa.ds)(),e((0,Na.gS)({isApproveEmailSent:!0})),e((0,At.c)({type:Tt.H_,message:t.strings.notificationEmailConfirmationSent}))}catch(t){const n=Ca(t,"email");e((0,At.c)({type:Tt.pn,message:n}))}},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function l(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,l)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i}),[e,t.strings.notificationEmailConfirmationSent]);return i.createElement(i.Fragment,null,i.createElement(Li,{height:.5}),i.createElement(Ki,{isStripted:!0},n.isApproveEmailSent?i.createElement(ea,null,t.strings.emailSent):i.createElement(i.Fragment,null,i.createElement(ea,null,t.strings.notVerified),i.createElement(qi,Object.assign({type:"button",onClick:r},bt.A("newProfile.settings.sendConfirmationEmail")),t.strings.sendVerificationEmail))))},Za=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))};var Aa=()=>{const e=(0,Ae.Z)(Te.U.Profile),{profileUserData:t}=i.useContext(Re),n=(0,a.useSelector)(ke.Co,a.shallowEqual),{isEditState:r,setIsEditState:o,passwordModalState:l,onPasswordModalReject:s,onCodeModalReject:c,codeModalState:d,onEmailSubmit:u,onPasswordSubmit:f,onCodeSubmit:p,onSubmitResendCode:g}=function(){const[e,t]=i.useState(!1),[n,r]=i.useState(!1),[o,l]=i.useState(!1),[s,c]=i.useState(""),[d,u]=i.useState(""),f=(0,Ae.Z)(Te.U.Profile),p=(0,fe.T)(),g=(0,a.useSelector)(ke.Co,a.shallowEqual);return{isEditState:e,setIsEditState:t,passwordModalState:n,onPasswordModalReject:()=>r(!1),onCodeModalReject:()=>{l(!1)},codeModalState:o,onEmailSubmit:e=>Za(this,void 0,void 0,(function*(){u(e);try{return yield sa.k9(e),r(!0),Promise.resolve()}catch(e){return Promise.reject(Ca(e,"email"))}})),onPasswordSubmit:e=>Za(this,void 0,void 0,(function*(){c(e);const t=yield(0,zt._)({password:e});try{return yield sa.Z3({password:t.password}),r(!1),l(!0),Promise.resolve()}catch(e){return Promise.reject(Ca(e,"password"))}})),onCodeSubmit:e=>Za(this,void 0,void 0,(function*(){try{return yield sa.Uk({email:d,password:s,code:e}),p((0,Na.gS)({email:d})),l(!1),yield p((n=g.id,r={email:d},e=>n?(e({type:m,payload:{userId:n,data:r}}),Promise.resolve({userId:n,data:r})):Promise.reject("User id is not provided"))),t(!1),p((0,At.c)({type:Tt.H_,message:f.strings.notificationChangeEmailSuccess})),Promise.resolve()}catch(e){return Promise.reject(Ca(e,"newEmail"))}var n,r})),onSubmitResendCode:()=>Za(this,void 0,void 0,(function*(){const e=yield(0,zt._)({password:s});sa.Z3(e)}))}}(),h=!n.isApproved&&!r&&!l;return i.createElement(ji,null,i.createElement(Wi,{isShifted:!r},i.createElement(Gi,null,e.strings.email),r?null:i.createElement(Ji,Object.assign({onClick:()=>o(!0)},bt.A("newProfile.settings.emailEditButton")),e.strings.edit)),r?i.createElement(i.Fragment,null,i.createElement(Li,{height:1}),i.createElement(To,null,e.strings.settingsEmailCurrent)):null,t&&t.email?i.createElement(Xi,{isEditState:r},t.email):null,h?i.createElement(Ma,null):null,r?i.createElement(ja,{onEditableStateReject:()=>o(!1),onPasswordModalReject:s,onCodeModalReject:c,codeModalState:d,passwordModalState:l,onEmailSubmit:u,onPasswordSubmit:f,onCodeSubmit:p,onSubmitResendCode:g}):null)};const Ta=i.forwardRef(((e,t)=>{var{children:n}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);or.invalid?r.error:null),[r.error,r.invalid]);return i.createElement(ma,Object.assign({},r,{ref:o}),i.createElement(Ui,Object.assign({},bt.A("newProfile.settings.editPassword.customError",{error:r.type})),a),n)}));Ta.displayName="CustomInput";var Ra=Ta;const za={oldPassword:[ha.jQ.required,ha.jQ.password],newPassword:[ha.jQ.required,ha.jQ.password],code:[ha.jQ.required,ha.jQ.code]};var La=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},Da=e=>{let{closeEditForm:t}=e;const n=(0,fe.T)(),r=(0,Ae.Z)(Te.U.Profile),o=(0,a.useSelector)(ke.Co,a.shallowEqual),[l,s]=i.useState(void 0),[c,d]=i.useState(""),[u,m]=i.useState(""),[f,p]=i.useState(""),[g,h]=i.useState(!1),[v,y]=i.useState(""),b=i.useRef(null),{validate:w,validateDebounced:E,errors:x}=function(e){const t=(0,Ae.Z)(Te.U.Profile),[n,r]=i.useState({code:"",oldPassword:"",newPassword:"",newPasswordConfirm:""}),o=i.useRef(n);o.current=n;const a=(0,i.useRef)(e);a.current=e;const l=(0,i.useMemo)((()=>({required:t.strings.errorRequired,code:t.strings.errorCode,password:t.strings.errorPassword,isEqual:t.strings.errorConfirmPassword})),[t.strings.errorCode,t.strings.errorConfirmPassword,t.strings.errorPassword,t.strings.errorRequired]),s=(0,i.useCallback)((e=>(0,ha.Xy)(e,a.current)),[]),c=(0,i.useCallback)((0,ha.Te)(Object.assign(Object.assign({},za),{newPasswordConfirm:[s,...za.newPassword]}),l),[l,s]),d=(0,i.useCallback)((e=>{return t=this,n=void 0,a=function*(){const t=Object.assign({},o.current);Object.keys(e).forEach((e=>{t[e]=""})),r(t);try{return yield c(e),Promise.resolve()}catch(e){return r(Object.assign(Object.assign({},t),e)),Promise.reject(e)}},new((i=void 0)||(i=Promise))((function(e,r){function o(e){try{s(a.next(e))}catch(e){r(e)}}function l(e){try{s(a.throw(e))}catch(e){r(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(o,l)}s((a=a.apply(t,n||[])).next())}));var t,n,i,a}),[c]),u=(0,i.useMemo)((()=>(0,F.Ds)(d,150)),[d]);return{validate:d,validateDebounced:u,errors:n}}(u),C=()=>{d(""),m(""),p("")},P={oldPassword:d,newPassword:m,newPasswordConfirm:p},_=e=>La(void 0,void 0,void 0,(function*(){v&&y("");const{name:t,value:n}=e.target;(0,P[t])(n),g&&(yield E({[t]:n}))})),O=()=>{s(void 0)};return i.createElement(i.Fragment,null,i.createElement("form",{onSubmit:e=>La(void 0,void 0,void 0,(function*(){var o,i,a;e.preventDefault(),g||h(!0),yield w({oldPassword:c,newPassword:u,newPasswordConfirm:f});try{const e=yield sa.Cp({oldPassword:c,newPassword:u,newPasswordConfirm:f});if(e.twoFactorMethod&&e.needTwoFactorCode)return void s(e.twoFactorMethod);t(),n((0,At.c)({type:Tt.H_,message:r.strings.notificationPasswordChanged})),C()}catch(e){null===(o=b.current)||void 0===o||o.focus(),null===(i=b.current)||void 0===i||i.setSelectionRange(0,null===(a=b.current)||void 0===a?void 0:a.value.length);const t=Ca(e,"password");y(t)}})),autoComplete:"off"},i.createElement(ia,null,i.createElement(Li,{height:.75}),i.createElement(To,null,r.strings.currentPassword),i.createElement(Li,{height:.25}),i.createElement(pa,Object.assign({ref:b,value:c,name:"oldPassword",onChange:_,type:"password"},bt.A("newProfile.settings.editPassword.oldPassword")),i.createElement(Ui,Object.assign({},bt.A("newProfile.settings.editPassword.oldPasswordError")),v||x.oldPassword))),i.createElement(qi,Object.assign({},bt.A("newProfile.settings.editPassword.forgotPassword"),{type:"button",onClick:()=>La(void 0,void 0,void 0,(function*(){try{yield sa.iW({email:o.email}),n((0,At.c)({type:Tt.H_,message:r.strings.restorePasswordSent}))}catch(e){const t=Ca(e,"password");n((0,At.c)({type:Tt.pn,message:t||r.strings.notificationRestorePasswordError}))}})),tabIndex:-1}),r.strings.forgotPassword),i.createElement(Li,{height:1}),i.createElement(ia,null,i.createElement(To,null,r.strings.newPassword),i.createElement(Li,{height:.25}),i.createElement(Ra,Object.assign({type:"password",value:u,name:"newPassword",onChange:_,error:x.newPassword,invalid:!!x.newPassword},bt.A("newProfile.settings.editPassword.newPassword")))),i.createElement(ia,null,i.createElement(To,null,r.strings.newPasswordConfirm),i.createElement(Li,{height:.25}),i.createElement(Ra,Object.assign({type:"password",value:f,name:"newPasswordConfirm",onChange:_,error:x.newPasswordConfirm,invalid:!!x.newPasswordConfirm},bt.A("newProfile.settings.editPassword.newPasswordConfirm")))),i.createElement(Li,{height:.75}),i.createElement(Vi,null,i.createElement(ra,Object.assign({onClick:t},bt.A("newProfile.settings.editPassword.cancel")),r.strings.cancel),i.createElement(oa,Object.assign({disabled:!!x.oldPassword||!!x.newPassword||!!x.newPasswordConfirm},bt.A("newProfile.settings.editPassword.save")),r.strings.saveChanges)),i.createElement(Li,{height:.5})),l?i.createElement(xa,{isOpen:!!l,twoFactorMethod:l,modalPlacement:"settingsTFA",onSubmit:e=>La(void 0,void 0,void 0,(function*(){try{return l&&(yield sa.E6({twoFactorCode:e,twoFactorMethod:l,oldPassword:c,newPassword:u,newPasswordConfirm:f})),O(),C(),t(),n((0,At.c)({type:Tt.H_,message:r.strings.notificationPasswordChanged})),Promise.resolve()}catch(e){return Promise.reject(e)}})),onReject:O,onResendCode:()=>sa.Kb()}):null)},Fa=()=>{const e=(0,Ae.Z)(Te.U.Profile),[t,n]=i.useState(!1);return i.createElement(ji,null,i.createElement(Wi,{isShifted:!t},i.createElement(Gi,null,t?e.strings.changePassword:e.strings.password),t?null:i.createElement(Ji,Object.assign({onClick:()=>n(!0)},bt.A("newProfile.settings.passwordEditButton")),e.strings.edit)),t?i.createElement(Da,{closeEditForm:()=>n(!1)}):null)},Ba=e=>{let{isOpen:t,onReject:n,onConfirm:r}=e;const o=(0,Ae.Z)(Te.U.Profile),{email:l}=(0,a.useSelector)(ke.Co,a.shallowEqual),s=o.strings.deactivationModalText.replace(/\${userEmail}/g,l);return i.createElement(Hi,{isOpen:t,onClose:F.ZT},i.createElement(Yi,null,o.strings.deactivationModalTitle),i.createElement(Qi,{textAlign:"center",html:s}),i.createElement(ta,null,i.createElement(ra,Object.assign({onClick:n},bt.A("newProfile.settings.deactivateAccountModalRejectButton")),o.strings.cancel),i.createElement(Pr.ZP,Object.assign({type:"button",color:It.Tt.secondary,isNoBoxShadow:!0,onClick:r},bt.A("newProfile.settings.deactivateAccountModalButton")),o.strings.deactivate)))},Ua=n(25221),qa=n(17867),$a=()=>{const e=(0,Ae.Z)(Te.U.Profile),[t,n]=i.useState(!1);return i.createElement(ji,null,i.createElement(Wi,null,i.createElement(Gi,null,e.strings.deactivationTitle)),i.createElement(Li,{height:.5}),i.createElement(Qi,{textAlign:"left",html:e.strings.deactivationDescription}),i.createElement(Li,{height:.5}),i.createElement(aa,Object.assign({onClick:()=>n(!0)},bt.A("newProfile.settings.deactivateAccountButton")),e.strings.settingsDeactivateAccount),i.createElement(Ba,{isOpen:t,onReject:()=>n(!1),onConfirm:()=>{return t=void 0,r=void 0,i=function*(){yield(0,sa.jd)({deletedUserName:e.strings.deletedUserName}),(0,Ua.EG)(qa.hi.RemoveAccount),n(!1)},new((o=void 0)||(o=Promise))((function(e,n){function a(e){try{s(i.next(e))}catch(e){n(e)}}function l(e){try{s(i.throw(e))}catch(e){n(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,l)}s((i=i.apply(t,r||[])).next())}));var t,r,o,i}}))};const Ha={email:[ha.jQ.required,ha.jQ.email],password:[ha.jQ.required,ha.jQ.password]},Va={email:"",password:"",confirmPassword:""},Wa={email:"",setEmail:()=>null,password:"",setPassword:()=>null,confirmPassword:"",setConfirmPassword:()=>null,errors:Va,isStartValidateOnChange:!1},Ga=i.createContext(Wa),Ya=Ga.Provider,Qa=()=>i.useContext(Ga);var Ja=e=>{let{serverError:t="",clearServerError:n,disabled:r}=e;const o=(0,Ae.Z)(Te.U.Profile),a=i.useRef(null),{email:l,setEmail:s,errors:c,isStartValidateOnChange:d,validate:u}=Qa(),m=(0,F.Ds)((e=>{return t=void 0,n=void 0,o=function*(){u&&(yield u({email:e}))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,l)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o}),150);return i.useEffect((()=>{d&&m(l)}),[l]),i.createElement(ia,null,i.createElement(To,null,o.strings.enterYourEmail),i.createElement(Li,{height:.25}),i.createElement(pa,Object.assign({ref:a,value:l,name:"email",type:"text",onChange:e=>{t&&n(),s(e.target.value)},disabled:r},bt.A("newProfile.settings.registrationWithoutEmail.email")),i.createElement(Ui,null,c.email||t)))},Xa=()=>{const e=(0,Ae.Z)(Te.U.Profile),{password:t,setPassword:n,errors:r,isStartValidateOnChange:o,validate:a}=Qa(),l=(0,F.Ds)((e=>{return t=void 0,n=void 0,o=function*(){a&&(yield a({password:e}))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,l)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o}),150);return i.useEffect((()=>{o&&l(t)}),[t]),i.createElement(ia,null,i.createElement(To,null,e.strings.createPassword),i.createElement(Li,{height:.25}),i.createElement(Ra,Object.assign({type:"password",name:"password",value:t,onChange:e=>{n(e.target.value)},error:r.password,invalid:!!r.password},bt.A("newProfile.settings.registrationWithoutEmail.password"))))},Ka=()=>{const e=(0,Ae.Z)(Te.U.Profile),{confirmPassword:t,setConfirmPassword:n,errors:r,isStartValidateOnChange:o,validate:a}=Qa(),l=(0,F.Ds)((e=>{return t=void 0,n=void 0,o=function*(){a&&(yield a({confirmPassword:e}))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,l)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o}),150);return i.useEffect((()=>{o&&l(t)}),[t]),i.createElement(ia,null,i.createElement(To,null,e.strings.newPasswordConfirm),i.createElement(Li,{height:.25}),i.createElement(Ra,Object.assign({type:"password",name:"confirmPassword",value:t,onChange:e=>{n(e.target.value)},error:r.confirmPassword,invalid:!!r.confirmPassword},bt.A("newProfile.settings.registrationWithoutEmail.confirmPassword"))))},el=e=>{let{disabled:t}=e;const n=(0,Ae.Z)(Te.U.Profile);return i.createElement(Vi,null,i.createElement(oa,Object.assign({disabled:t},bt.A("newProfile.settings.registrationWithoutEmail.saveChanges")),n.strings.saveChanges))},tl=()=>{const e=(0,Ae.Z)(Te.U.Profile),t=(0,fe.T)(),n=(0,a.useSelector)(ke.Co,a.shallowEqual),r=(0,a.useSelector)(ke.I2),o=(0,a.useSelector)(ke.uA),[l,s]=i.useState(!1),[c,d]=i.useState(""),[u,m]=i.useState(n.email),[f,p]=i.useState(""),[g,h]=i.useState(""),{validate:v,errors:y}=function(e){const t=(0,Ae.Z)(Te.U.Profile),[n,r]=i.useState(Va),o=i.useMemo((()=>({required:t.strings.errorRequired,password:t.strings.errorPassword,confirmPassword:t.strings.errorConfirmPassword,email:t.strings.errorEmail})),[t.strings.errorConfirmPassword,t.strings.errorEmail,t.strings.errorPassword,t.strings.errorRequired]),a=i.useCallback((t=>(0,ha.Xy)(t,e)),[e]),l=i.useCallback((0,ha.Te)(Object.assign(Object.assign({},Ha),{confirmPassword:[...Ha.password,a]}),o),[o,a]);return{validate:e=>{return t=this,o=void 0,a=function*(){const t=Object.assign({},n);Object.keys(e).forEach((e=>{t[e]=""})),r(t);try{return yield l(e),Promise.resolve()}catch(e){return r(Object.assign(Object.assign({},t),e)),Promise.reject(e)}},new((i=void 0)||(i=Promise))((function(e,n){function r(e){try{s(a.next(e))}catch(e){n(e)}}function l(e){try{s(a.throw(e))}catch(e){n(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(r,l)}s((a=a.apply(t,o||[])).next())}));var t,o,i,a},errors:n}}(f),b=i.useMemo((()=>!!(y.email||y.password||y.confirmPassword||c)),[y,c]);return i.createElement(Ya,{value:{email:u,setEmail:m,password:f,setPassword:p,confirmPassword:g,setConfirmPassword:h,errors:y,validate:v,isStartValidateOnChange:l}},i.createElement(ji,null,i.createElement(Wi,{isShifted:!0},i.createElement(Gi,null,e.strings.accountAndSecurity)),i.createElement(Li,{height:.75}),i.createElement("form",{autoComplete:"off",onSubmit:n=>{return r=void 0,i=void 0,c=function*(){if(n.preventDefault(),l||s(!0),yield v({email:u,password:f,confirmPassword:g}),o)try{yield sa.k9(u)}catch(e){const t=Ca(e,"email")||"";return void d(t)}try{const n={password:f};o&&(n.email=u),yield(e=>{let{email:t,password:n}=e;return r=void 0,o=void 0,a=function*(){const e={newPassword:n,newPasswordConfirm:n};return t&&(e.newEmail=t),(0,Lt.Z)("user/me/finishSignup",{method:"POST",data:yield(0,zt._)(e)})},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{s(a.next(e))}catch(e){t(e)}}function l(e){try{s(a.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,l)}s((a=a.apply(r,o||[])).next())}));var r,o,i,a})(n),t((0,At.c)({type:Tt.H_,message:e.strings.finishSocialRegistrationSuccess})),t((0,Se.L)())}catch(e){const n=Ca(e,"common");n&&t((0,At.c)({type:Tt.pn,message:n}))}},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{l(c.next(e))}catch(e){t(e)}}function o(e){try{l(c.throw(e))}catch(e){t(e)}}function l(t){var r;t.done?e(t.value):(r=t.value,r instanceof a?r:new a((function(e){e(r)}))).then(n,o)}l((c=c.apply(r,i||[])).next())}));var r,i,a,c}},i.createElement(Ja,{serverError:c,disabled:r,clearServerError:()=>d("")}),i.createElement(Li,{height:.75}),i.createElement(Xa,null),i.createElement(Li,{height:.75}),i.createElement(Ka,null),i.createElement(Li,{height:.25}),i.createElement(el,{disabled:b}))))},nl=()=>{const{loadingState:e}=i.useContext(Re),t=(0,a.useSelector)(ke.uA),n=(0,a.useSelector)(ke.I2),o=(0,a.useSelector)(ke.OJ);return e===r.Loading?null:i.createElement(i.Fragment,null,o?i.createElement(i.Fragment,null,i.createElement(Aa,null),i.createElement(Fa,null),i.createElement($a,null)):null,t||n?i.createElement(tl,null):null)};const rl=(0,er.P1)((e=>e.newProfile.privacySettings),(e=>e.info)),ol=e=>{let{email:t,gender:n,dateOfBirth:r,friends:o}=e;return(0,Lt.Z)("user/me/privacysettings",{method:"PUT",data:{email:t,gender:n,dateOfBirth:r,friends:o}})},il=e=>{let{messagesPrivacy:t}=e;return(0,Lt.Z)("user/me/chatsettings",{method:"PUT",data:{messagesPrivacy:t}})};var al=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))};const ll=Me.ZP.div.withConfig({displayName:"SettingsFieldstyled__Container",componentId:"sc-pu3t8q-0"})(["text-align:left;width:11.25rem;margin-right:0.75rem;"]),sl=Me.ZP.div.withConfig({displayName:"SettingsFieldstyled__FieldElement",componentId:"sc-pu3t8q-1"})(["display:flex;align-items:center;"]),cl=Me.ZP.div.withConfig({displayName:"SettingsFieldstyled__Message",componentId:"sc-pu3t8q-2"})(["color:#007aff;font-size:0.8rem;transition:opacity 0.3s;opacity:",";"],(e=>e.isVisible?1:0));var dl=e=>{var{isMessageVisible:t,message:n,automationLabel:r=""}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{titleName:t,description:n,showSaved:r,children:o}=e;const a=(0,Ae.Z)(Te.U.Profile);return i.createElement(So.Z,null,i.createElement(jo,{ratio:9},i.createElement(ul,null,t),i.createElement(ml,null,n),i.createElement(dl,{isMessageVisible:r,message:a.strings.saved,automationLabel:"saved"},o)))};function pl(e){return t=>{const n={value:0,label:t.strings.onlyMe},r={value:1,label:t.strings.myFriends},o={value:100,label:t.strings.anyone};return"messagesPrivacy"===e?[r,o]:[n,r,o]}}var gl=()=>{const[e,t]=i.useState(""),n=(0,Ae.Z)(Te.U.Profile),r=(0,a.useSelector)(rl,a.shallowEqual),o=i.useRef(null),l=(0,fe.T)();return i.useEffect((()=>(l((e=>al(void 0,void 0,void 0,(function*(){const t=yield Promise.all([(0,Lt.Z)("user/me/privacysettings",{method:"GET"}),(0,Lt.Z)("user/me/chatsettings",{method:"GET"})]);e({type:re,payload:Object.assign(Object.assign({},t[0]),t[1])})})))),()=>{o&&o.current&&clearTimeout(o.current)})),[l]),i.createElement(ji,null,i.createElement(Di.lf,null,n.strings.privacyTitle),(e=>[{name:"gender",title:e.strings.gender,description:e.strings.privacyGender,automationLabel:"newProfile.privacy.select.gender",options:pl()(e)},{name:"dateOfBirth",title:e.strings.dateOfBirth,description:e.strings.privacyDateOfBirth,automationLabel:"newProfile.privacy.select.dateOfBirth",options:pl()(e)},{name:"friends",title:e.strings.friendsLabel,description:e.strings.privacyFriendsList,automationLabel:"newProfile.privacy.select.friends",options:pl()(e)},{name:"messagesPrivacy",title:e.strings.messages,description:e.strings.privacyMessages,automationLabel:"newProfile.privacy.select.messages",options:pl("messagesPrivacy")(e)}])(n).map(((n,a)=>{const s=n.options.find((e=>e.value===r[n.name]));return i.createElement(i.Fragment,{key:n.name},a?i.createElement(ka,null):null,i.createElement(fl,{titleName:n.title,description:n.description,showSaved:e===n.name},i.createElement("div",Object.assign({},bt.A(n.automationLabel)),i.createElement(wo,{id:n.name,value:s,options:n.options,onChange:e=>((e,n)=>{let{value:i}=n;const a={[e]:parseInt(i,10)};var s;t(e),o.current=setTimeout((()=>t("")),3e3),l((s=Object.assign(Object.assign({},r),a),e=>al(void 0,void 0,void 0,(function*(){const{email:t,gender:n,dateOfBirth:r,friends:o,messagesPrivacy:i}=s;e({type:re,payload:s}),yield Promise.all([ol({email:t,gender:n,dateOfBirth:r,friends:o}),il({messagesPrivacy:i})])}))))})(n.name,e)}))))})))};function hl(){return e=>{return t=this,n=void 0,o=function*(){const{billingInfoDto:t,country:n}=yield(0,Lt.Z)("checkout"),r=(yield(0,Lt.Z)("checkout/country/sortedByName")).map((e=>({label:e.englishName,value:e.twoLetterISORegionName}))),o=r.find((e=>e.value===n))||r.find((e=>"US"===e.value))||ce.currentCountry;e({type:ae,payload:t.creditCards}),e({type:le,payload:r}),e({type:se,payload:o})},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,l)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o}}const vl=e=>e.newProfile.payment,yl=(0,er.P1)(vl,(e=>e.cards)),bl=(0,er.P1)(vl,(e=>e.countries)),wl=(0,er.P1)(vl,(e=>e.currentCountry));function El(e){return t=>{return n=this,r=void 0,i=function*(){var n;yield(n=e.value,(0,Lt.Z)("checkout/country",{method:"PUT",data:{country:n}})),t({type:se,payload:e})},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function l(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,l)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i}}const xl=Me.ZP.div.withConfig({displayName:"SelectCountrystyled__Wrapper",componentId:"sc-w64r8q-0"})(["display:flex;"]),Cl=(0,Me.ZP)(Fi.Z).withConfig({displayName:"SelectCountrystyled__Text",componentId:"sc-w64r8q-1"})(["& p{font-size:16px;line-height:20px;font-weight:400;}"]),Pl=Me.ZP.div.withConfig({displayName:"SelectCountrystyled__SelectWrapper",componentId:"sc-w64r8q-2"})(["min-width:226px;flex-shrink:0;margin-left:30px;"]);var _l=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},Ol=()=>{const e=(0,fe.T)(),t=(0,Ae.Z)(Te.U.Profile),n=(0,a.useSelector)(bl),r=(0,a.useSelector)(wl),[o,l]=i.useState(!0),s=()=>_l(void 0,void 0,void 0,(function*(){try{yield(0,Lt.Z)("checkout/country/check",{method:"PUT"}),l(!1)}catch(e){l(!0)}}));return i.useEffect((()=>{s()}),[e]),r&&n.length?i.createElement(xl,null,i.createElement(Cl,{html:t.strings.choicePaymentCountryLabel}),i.createElement(Pl,null,i.createElement(wo,{isDisabled:o,options:n,defaultValue:r,onChange:n=>_l(void 0,void 0,void 0,(function*(){yield e(El(n)).then((()=>{e((0,At.c)({type:Tt.H_,message:t.strings.saved}))}),(t=>{l(!0),e((0,At.c)({type:Tt.pn,message:t.message}))})),yield s()}))}))):null};const kl=Me.ZP.div.withConfig({displayName:"PaymentCardstyled__Wrapper",componentId:"sc-1xph6nk-0"})(["display:flex;align-items:center;width:100%;background-color:#fff;padding:1rem 0;border-bottom:1px solid #eee;"]),Sl=Me.ZP.span.withConfig({displayName:"PaymentCardstyled__Number",componentId:"sc-1xph6nk-1"})(["margin-right:1.25rem;opacity:0.9;color:#2d2d30;font-size:0.9rem;line-height:1.5rem;font-weight:500;min-width:4.5rem;"]),Il=Me.ZP.span.withConfig({displayName:"PaymentCardstyled__Date",componentId:"sc-1xph6nk-2"})(["margin-right:1.25rem;opacity:0.7;color:#2d2d30;font-size:0.9rem;line-height:1.5rem;font-weight:500;",""],(e=>e.isOutdated&&(0,Me.iv)(["color:#f3576b;"]))),jl=(0,Me.ZP)(St).withConfig({displayName:"PaymentCardstyled__RemoveBtn",componentId:"sc-1xph6nk-3"})(["display:inline-flex;margin-right:0;margin-left:auto;background:transparent;padding:0 0.5rem;& svg{& path{fill:#2d2d30;transition:all 0.25s ease;}}&:hover{& svg{& path{fill:#f3576b;}}}"]),Nl=Me.ZP.div.withConfig({displayName:"PaymentIconstyled__Wrapper",componentId:"sc-1xjo41x-0"})(["margin-right:1rem;width:2rem;height:1.5rem;& svg{width:100%;height:auto;border-radius:0.2rem;}"]);var Ml=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"33",height:"25",viewBox:"0 0 33 25"},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("rect",{width:"33",height:"25",fill:"#EBEBEB",rx:"2"}),i.createElement("path",{fill:"#A2AAB2",d:"M0 5h33v5H0z"}),i.createElement("rect",{width:"7",height:"2",x:"4",y:"19",fill:"#A2AAB2",rx:"1",transform:"matrix(1 0 0 -1 0 40)"}),i.createElement("rect",{width:"4",height:"2",x:"13",y:"19",fill:"#A2AAB2",rx:"1",transform:"matrix(1 0 0 -1 0 40)"})));const Zl={mc:()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"24",fill:"none",viewBox:"0 0 32 24"},i.createElement("rect",{width:"32",height:"24",fill:"#EEE",rx:"2"}),i.createElement("path",{fill:"#FE5D1C",d:"M12.3735 5.6892h6.9475v12.4176h-6.9475V5.6892z"}),i.createElement("path",{fill:"#E90022",d:"M12.8146 11.8981c0-2.523 1.191-4.7608 3.0216-6.2088C14.4909 4.6363 12.7926 4 10.9399 4 6.5509 4 3 7.5322 3 11.8981s3.551 7.8981 7.9399 7.8981c1.8527 0 3.551-.6362 4.8963-1.6893-1.8306-1.4261-3.0216-3.6858-3.0216-6.2088z"}),i.createElement("path",{fill:"#F69C32",d:"M28.6945 11.8981c0 4.3659-3.5509 7.8981-7.9399 7.8981-1.8527 0-3.5509-.6362-4.8963-1.6893 1.8526-1.448 3.0216-3.6858 3.0216-6.2088s-1.191-4.7608-3.0216-6.2088C17.2037 4.6363 18.9019 4 20.7546 4c4.389 0 7.9399 3.5541 7.9399 7.8981z"})),visa:()=>{const e=(0,i.useRef)(`visa-${window.performance.now()}`),t=(0,i.useRef)(`visa-${window.performance.now()}-1`);return i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"24",fill:"none",viewBox:"0 0 32 24"},i.createElement("rect",{width:"32",height:"24",fill:"#EEE",rx:"2"}),i.createElement("mask",{id:`${e.current}`,width:"7",height:"9",x:"15",y:"8","mask-type":"alpha",maskUnits:"userSpaceOnUse"},i.createElement("path",{fill:"#fff",d:"M15.063 8h6.6266v8.7458H15.063V8z"})),i.createElement("g",{mask:`url(#${e.current})`},i.createElement("path",{fill:"#18296C",fillRule:"evenodd",d:"M21.2846 13.7386a1.9256 1.9256 0 0 0-.1749-.7511c-.1642-.3578-.4229-.638-.7323-.8729a4.888 4.888 0 0 0-.8613-.5255c-.2311-.1099-.4547-.2359-.6779-.3618-.1696-.0953-.3259-.21-.4558-.3583-.2049-.2335-.202-.5135.01-.7395.0969-.1037.2149-.175.3442-.2298.2795-.1182.5762-.1204.8719-.129.0634-.0022.1274.0103.1911.0124.1582.0051.314.031.469.0586.3559.064.6969.175 1.0384.328.1286-.5972.2557-1.189.3826-1.7784-.0181-.0111-.027-.019-.0372-.0224-.526-.186-1.0649-.3122-1.6233-.347-.0208-.0014-.0464.0076-.0567-.0221h-.6779c-.0071.0237-.027.0224-.0454.0224-.1461-.0008-.2892.0297-.4325.05-.4974.0704-.9742.2135-1.4165.4576-.4004.2208-.7457.506-1.0076.8861a2.4065 2.4065 0 0 0-.415 1.1062c-.0219.1906-.0265.3847.0027.5751.071.4682.3059.851.644 1.1734.2932.2797.6293.499.9873.6866.2625.1377.533.2595.7852.4164.1685.1045.3321.2133.4598.3691.1604.1954.186.4101.0937.6393-.074.1828-.2165.3027-.3888.3891-.2387.1201-.4946.1747-.7592.1879-.1504.0073-.3014.003-.4515.0043-.3296-.0278-.6569-.0704-.9758-.1631-.315-.0918-.6131-.2276-.9188-.3653-.132.624-.2665 1.2334-.3931 1.8463.5333.2246 1.0797.3321 1.637.3958.2128.0243.4261.0438.6407.0459.016.0003.0287.0051.033.023h.2484c.0113-.0376.0421-.0206.065-.0227.0837-.0084.1699.0078.2522-.0203.155.0044.3067-.0205.4593-.0432.5438-.0804 1.0649-.2284 1.5363-.5213.202-.1253.3964-.2617.567-.4293.0769-.0759.1528-.1526.2165-.2403.0851-.1164.1793-.2266.2492-.3532.2366-.4288.3321-.8902.317-1.377z",clipRule:"evenodd"})),i.createElement("mask",{id:`${t.current}`,width:"11",height:"9",x:"2",y:"8","mask-type":"alpha",maskUnits:"userSpaceOnUse"},i.createElement("path",{fill:"#fff",d:"M2 8.1585v8.4294h10.2472V8.1584H2z"})),i.createElement("g",{mask:`url(#${t.current})`},i.createElement("path",{fill:"#18296C",fillRule:"evenodd",d:"M9.9546 8.1666c-.7544 1.9045-1.5074 3.8059-2.2656 5.7205-.0126-.043-.0232-.0702-.0283-.0989-.0994-.5273-.1985-1.0549-.2973-1.5822-.1015-.5424-.2014-1.0851-.3032-1.627-.0948-.5057-.1933-1.0103-.2862-1.516-.1072-.5819-.5381-.9075-1.079-.9045-1.1787.0067-2.3573.0019-3.5356.0024-.0367 0-.075-.0103-.115.013-.0189.072-.0391.1466-.0448.2257a.2401.2401 0 0 0 .0778.0297c.4843.1056.96.2419 1.4253.4123.2362.0866.4666.1868.6874.3088.2052.113.343.2776.411.5004a5.797 5.797 0 0 1 .0726.26c.2287.8823.457 1.7644.6852 2.647.2922 1.1292.5838 2.2586.876 3.388.055.2136.112.4269.169.6421h2.3076l3.5354-8.4213H9.9546z",clipRule:"evenodd"})),i.createElement("path",{fill:"#18296C",fillRule:"evenodd",d:"M15.3626 8.1735c-.0427-.0221-.081-.0124-.1175-.0127-.2629-.001-.5262-.001-.7889-.0002-.1277.0002-.2554.0035-.3826.0054h-.8891c-.601 2.8047-1.2018 5.6087-1.8036 8.4183h2.1843c.0818-.388.1612-.7698.2427-1.1507.1707-.7963.3427-1.592.5138-2.3877.1348-.6269.2703-1.2541.4026-1.8819.0348-.1649.0786-.3285.0986-.4965.0313-.0386.0175-.0883.0315-.1312.0119-.0543.0335-.1067.0322-.1634.007-.017.0167-.0337.0205-.0518.1274-.5926.2546-1.1853.3812-1.7782.0259-.1231.0497-.247.0743-.3694z",clipRule:"evenodd"}),i.createElement("mask",{id:"c",width:"8",height:"9",x:"21",y:"8","mask-type":"alpha",maskUnits:"userSpaceOnUse"},i.createElement("path",{fill:"#fff",d:"M29 8.16v8.4273h-7.808V8.1599H29z"})),i.createElement("g",{mask:"url(#c)"},i.createElement("path",{fill:"#18296C",fillRule:"evenodd",d:"M24.5526 13.5948l1.1375-3.1336c.0567.169.6528 3.0437.652 3.135-.0969.014-1.6794.014-1.7895-.0014zm2.6878-5.4329c-.6426 0-1.2714-.006-1.9002.0027-.2908.0038-.5349.1285-.7288.351-.1053.1215-.1636.2654-.2238.4096-.2519.6007-.5025 1.202-.7538 1.8031-.3554.8486-.7107 1.6974-1.0665 2.5461-.4504 1.0748-.9016 2.1497-1.3522 3.2251-.0108.0259-.0343.0505-.0167.0878h2.2688c.1514-.4169.3018-.8314.4506-1.242h2.8031l.2622 1.2393H29l-1.7596-8.4227z",clipRule:"evenodd"})))},jcb:()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"24",fill:"none",viewBox:"0 0 32 24"},i.createElement("rect",{width:"32",height:"24",fill:"#EEE",rx:"2"}),i.createElement("path",{fill:"#004F9E",fillRule:"evenodd",d:"M8.3866 9.3331v.157c0 1.139.005 2.2779-.0047 3.4169-.0014.2078-.031.4259-.1.6211-.2005.5682-.6448.854-1.2258.9301-.6881.0901-1.3562-.0376-2.0069-.25-.3268-.1067-.6415-.2513-.9627-.3759-.0642-.025-.0859-.0612-.0859-.1303.002-2.5371-.0047-5.0741.0043-7.6112C4.01 4.61 5.0455 3.3628 6.5042 3.0676c.2784-.0565.5697-.0663.8552-.067 1.402-.0028 2.8039.0047 4.2057.0087.1551.0004.1553.0006.1553.1554 0 5.1143-.0059 10.2287.0038 15.343.0026 1.4332-.926 2.5917-2.1168 2.9888-.309.1032-.626.1648-.9507.1658-1.523.0046-3.0465.0037-4.5697.0044-.0221 0-.044-.0019-.0755-.0033v-6.5375c.2296.0476.4579.099.6878.1422 1.0121.1893 2.0337.2696 3.0625.2241.6664-.0296 1.3244-.123 1.943-.392.7282-.3161 1.2139-.8355 1.3522-1.6312.0334-.1928.0473-.3913.0483-.5876.0042-1.1314.0021-2.2633.0021-3.3949 0-.1552-.0005-.1552-.1558-.1552-.8055.0007-1.6115.0014-2.4172.0018h-.1478z",clipRule:"evenodd"}),i.createElement("path",{fill:"#C51030",fillRule:"evenodd",d:"M12.6982 21.6661v-7.1483c.0167.0051.0282.0058.0352.0114.5954.4756 1.2922.7113 2.0316.8376 1.1508.1964 2.3043.181 3.4552.0037.4095-.063.8149-.151 1.2224-.2252.0814-.0149.111-.0502.1096-.1375-.0057-.3649-.0024-.7297-.0024-1.0947v-.1159c-.0496.0217-.0855.0357-.1198.0525-.7061.3421-1.446.5689-2.2319.6277-.5321.0399-1.0581.0096-1.5562-.2084-.6691-.2928-1.0364-.8139-1.1434-1.5222-.058-.3862-.0444-.7727.0712-1.1484.2268-.736.7496-1.1549 1.4845-1.332.628-.1512 1.2548-.0929 1.8788.0331.5101.1032.9942.281 1.4612.5062.0398.0189.0799.0369.1201.0544.0059.0028.0141.0004.0294.0004.0021-.0312.0057-.0625.0059-.0938.0002-.3684-.0028-.7369.0023-1.1054.0015-.0877-.0293-.1167-.1114-.1358-1.2381-.2856-2.4892-.424-3.7602-.3337-.754.0536-1.4974.1703-2.1877.495-.2506.1175-.4788.281-.7173.4237-.0235.0143-.0461.0306-.0835.0556v-.1109c0-1.3026-.0058-2.6052.0019-3.9078.0064-1.0663.4426-1.9267 1.3094-2.56.5469-.3998 1.1704-.5827 1.8469-.5839 1.4811-.0023 2.9621.0012 4.443-.0035.1398-.0005.1199.0763.1199.1596-.0003 4.9622.0007 9.9249-.0026 14.8871 0 .3566-.0012.7176-.056 1.0685-.1896 1.2219-1.2125 2.2564-2.4356 2.4837a3.8254 3.8254 0 0 1-.6781.0642c-1.4626.0056-2.9252.003-4.3878.003h-.1546z",clipRule:"evenodd"}),i.createElement("path",{fill:"#009B28",fillRule:"evenodd",d:"M28.777 3.1527c0-.145-.0005-.1455-.1453-.1458-1.4547-.003-2.9092-.0105-4.3636-.0049-.2737.0012-.5544.024-.8191.0886-1.4363.3505-2.383 1.5693-2.3894 3.0586-.0042 1.0188-.0007 2.0379-.0005 3.0567 0 .039.004.0783.0069.124h.141c1.4618-.0007 2.9238-.0023 4.3858-.0014.4465.0003.8795.0664 1.2752.289.5405.304.7955.8679.6646 1.4677-.1152.5265-.4593.85-.9491 1.0375-.1345.0514-.2767.0825-.4359.1287.0438.0061.0681.0103.0923.0129.3785.0385.735.1427 1.0543.3532.5356.3529.7609.9394.586 1.5464-.1394.4856-.4821.7895-.9369.9829-.3584.152-.7371.1925-1.1219.1918-1.5392-.0026-3.0784-.0064-4.6177-.0099-.1446-.0002-.1448.0003-.1448.143V21.6667h.1161c1.5025-.0009 3.0047.0026 4.507-.007.2475-.0016.4997-.0385.7407-.0967 1.3508-.3268 2.3623-1.5731 2.359-3.0493-.0118-5.1203-.0047-10.2407-.0047-15.361z",clipRule:"evenodd"}),i.createElement("path",{fill:"#009B28",fillRule:"evenodd",d:"M22.7656 12.6555c-.0312 0-.0624.0032-.0989.0053v1.591c.0191.0042.0328.0097.0464.0097.5773 0 1.1551.0085 1.7323-.0032.5936-.012.8947-.5189.7671-1.024-.0881-.3482-.4002-.5753-.7894-.5772-.5526-.0027-1.1049-.0016-1.6575-.0016zM24.202 10.4057c-.4804-.0051-.9607-.0028-1.441-.0031-.0297 0-.0594.0053-.0943.0086v1.5906c.0292.0041.046.0083.0628.0083.5074-.001 1.0153.0068 1.5224-.0063.4666-.0121.769-.5149.6363-1.0343-.089-.3487-.3407-.5603-.6862-.5638z",clipRule:"evenodd"})),diners:()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"24",fill:"none",viewBox:"0 0 32 24"},i.createElement("rect",{width:"32",height:"24",fill:"#EEE",rx:"2"}),i.createElement("path",{fill:"#006095",fillRule:"evenodd",d:"M18.3029 20.9999c4.9168.0237 9.4048-4.0119 9.4048-8.9217 0-5.3686-4.488-9.0797-9.4048-9.0782h-4.2316C9.0956 2.9985 5 6.7104 5 12.0782c0 4.9109 4.0956 8.9454 9.0713 8.9217h4.2316z",clipRule:"evenodd"}),i.createElement("path",{fill:"#FFFFFE",fillRule:"evenodd",d:"M15.6901 17.0166V7.3014c1.9504.7491 3.3352 2.64 3.3387 4.8574-.0035 2.2177-1.3883 4.1072-3.3387 4.8578zm-7.0574-4.8578c.0042-2.2162 1.387-4.1056 3.3363-4.857v9.7126c-1.9493-.7506-3.3321-2.639-3.3363-4.8556zM13.83 3.9475c-4.5288.0015-8.1984 3.6764-8.1992 8.2113.0008 4.5342 3.6704 8.2084 8.1992 8.2098 4.5298-.0014 8.2001-3.6756 8.2008-8.2098-.0007-4.5348-3.671-8.2098-8.2008-8.2113z",clipRule:"evenodd"})),maestro:()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"24",fill:"none",viewBox:"0 0 32 24"},i.createElement("rect",{width:"32",height:"24",fill:"#EEE",rx:"2"}),i.createElement("path",{fill:"#7278CC",d:"M12.3735 5.6892h6.9475v12.4176h-6.9475V5.6892z"}),i.createElement("path",{fill:"#E90022",d:"M12.8146 11.8981c0-2.523 1.191-4.7608 3.0216-6.2088C14.4909 4.6363 12.7926 4 10.9399 4 6.5509 4 3 7.5322 3 11.8981s3.551 7.8981 7.9399 7.8981c1.8527 0 3.551-.6362 4.8963-1.6893-1.8306-1.4261-3.0216-3.6858-3.0216-6.2088z"}),i.createElement("path",{fill:"#0BA4E2",d:"M28.6945 11.8981c0 4.3659-3.5509 7.8981-7.9399 7.8981-1.8527 0-3.5509-.6362-4.8963-1.6893 1.8526-1.448 3.0216-3.6858 3.0216-6.2088s-1.191-4.7608-3.0216-6.2088C17.2037 4.6363 18.9019 4 20.7546 4c4.389 0 7.9399 3.5541 7.9399 7.8981z"})),discover:()=>{const e=(0,i.useRef)(`discover-${window.performance.now()}`);return i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"24",fill:"none",viewBox:"0 0 32 24"},i.createElement("rect",{width:"32",height:"24",fill:"#EEE",rx:"2"}),i.createElement("path",{fill:"#E7792B",fillRule:"evenodd",d:"M7.42 23.9998h22.73c.85 0 1.85-.9998 1.8495-1.8475V15.04S23.3189 21.2284 7.42 23.9998z",clipRule:"evenodd"}),i.createElement("path",{fill:"#0B1015",fillRule:"evenodd",d:"M4.3547 13.4625c-.2731.249-.6247.3565-1.1834.3565h-.232v-2.9601h.232c.5587 0 .8968.1008 1.1834.3622.2988.2685.477.6842.477 1.1135 0 .4302-.1782.8605-.477 1.1279zm-1.01-3.3614h-1.27v4.4756H3.338c.6703 0 1.1551-.1605 1.5804-.5164.5045-.4228.8038-1.0604.8038-1.7193 0-1.3213-.977-2.2399-2.3775-2.2399zM6.121 14.5767h.8631v-4.4756h-.863v4.4756zM9.0972 11.8179c-.5187-.1942-.6714-.3223-.6714-.5631 0-.282.2718-.4966.6444-.4966.259 0 .4715.1073.698.3615l.4511-.5963c-.3719-.3295-.8169-.497-1.3022-.497-.783 0-1.3812.5505-1.3812 1.2813 0 .618.2787.9331 1.0893 1.2291.339.1202.5113.2004.5978.2551.1727.1142.2594.2746.2594.4624 0 .363-.2859.631-.6717.631-.4118 0-.7436-.2078-.943-.597l-.5572.5442c.3977.5897.876.8523 1.5343.8523.8966 0 1.5273-.6048 1.5273-1.4702 0-.7115-.2916-1.0339-1.2749-1.3967zM10.6443 12.3409c0 1.3168 1.0232 2.3366 2.3388 2.3366.3718 0 .6907-.0743 1.083-.2614v-1.0274c-.3459.3493-.6515.4899-1.0436.4899-.8699 0-1.4881-.6377-1.4881-1.5441 0-.8586.6374-1.5365 1.4487-1.5365.4111 0 .7238.1475 1.083.5032v-1.0273c-.3786-.194-.6913-.2739-1.0633-.2739-1.3089 0-2.3585 1.0404-2.3585 2.3409zM21.0667 13.1075l-1.1824-3.0064h-.9433l1.8805 4.5899h.4646l1.9133-4.5899h-.9363l-1.1964 3.0064zM23.5922 14.5767h2.4507v-.7577h-1.5873v-1.2089h1.5266v-.7578h-1.5266v-.9934h1.5873v-.7578h-2.4507v4.4756zM27.7291 12.161h-.2513v-1.3562h.2651c.5393 0 .8314.2289.8314.6644 0 .4494-.2921.6918-.8452.6918zm1.7339-.7391c0-.8384-.5705-1.3208-1.5675-1.3208h-1.2821v4.4756h.8644v-1.7988h.1131l1.195 1.7988h1.0629l-1.3959-1.8853c.652-.1347 1.0101-.5845 1.0101-1.2695z",clipRule:"evenodd"}),i.createElement("path",{fill:"#1A1919",fillRule:"evenodd",d:"M29.9095 10.4879h-.0173v-.1026h.0181c.046 0 .0693.0169.0693.0505 0 .0345-.0242.0521-.0701.0521zm.1629-.0537c0-.0784-.0519-.121-.147-.121h-.1257v.3942h.0925v-.1533l.1091.1533h.1158l-.1297-.1629c.0547-.0146.085-.0553.085-.1103z",clipRule:"evenodd"}),i.createElement("path",{fill:"#1A1919",fillRule:"evenodd",d:"M29.9436 10.7919c-.1512 0-.273-.1259-.273-.2818 0-.1574.1209-.2825.273-.2825.147 0 .2683.1275.2683.2825 0 .1548-.1213.2818-.2683.2818zm.0004-.6271c-.1889 0-.3406.1535-.3406.3444 0 .191.1525.3444.3406.3444.1852 0 .3365-.155.3365-.3444 0-.1888-.1513-.3444-.3365-.3444z",clipRule:"evenodd"}),i.createElement("path",{fill:`url(#${e.current})`,d:"M16.7559 10.0171c1.3234 0 2.3559 1.0233 2.3559 2.3264 0 1.3109-1.0395 2.334-2.3559 2.334-1.3502 0-2.3624-1.0097-2.3624-2.3605 0-1.2705 1.0582-2.2999 2.3624-2.2999z"}),i.createElement("defs",null,i.createElement("radialGradient",{id:`${e.current}`,cx:"0",cy:"0",r:"1",gradientTransform:"matrix(0 2.33022 -2.35912 0 16.7526 12.3473)",gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:"#FED"}),i.createElement("stop",{offset:"1",stopColor:"#E77A2C"}))))},bcmc:()=>{const e=(0,i.useRef)(`bancontact-${window.performance.now()}`);return i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"24",fill:"none",viewBox:"0 0 32 24"},i.createElement("rect",{width:"32",height:"24",fill:"#EEE",rx:"2"}),i.createElement("path",{fill:"#00539A",fillRule:"evenodd",d:"M24.1391 9.1295c-.7657.8697-1.5314 1.7389-2.2969 2.6086-.5296.6016-1.0449 1.2162-1.5917 1.8012-.5538.5928-1.2581.9233-2.0688.9254-4.6381.0114-9.2765.0065-13.915.0047-.7308-.0006-1.2643-.5437-1.2646-1.2746-.0005-.8676-.0015-1.7352.0003-2.6028.0013-.631.4232-1.1341 1.0358-1.2402a.7445.7445 0 0 1 .1225-.011c1.2131-.0004 2.4263-.0002 3.6392-.0002.0203 0 .0408.0034.0611.0052-.0226.0289-.044.0593-.0684.0866-.5959.6744-1.1926 1.3481-1.7877 2.0228-.0526.0598-.1155.1123-.1597.203h.157c2.566 0 5.1319-.0005 7.6981.0019.0908 0 .1501-.0268.2099-.0947 1.3759-1.553 2.7547-3.1041 4.1303-4.6576.0575-.0648.1131-.0892.1989-.0892 2.5907.0023 5.1813.0018 7.772.0018h.1364c-.0322.039-.0494.0606-.0673.0809-.4607.525-.923 1.0486-1.3819 1.575-.1882.2164-.39.421-.5595.6532z",clipRule:"evenodd"}),i.createElement("mask",{id:`${e.current}`,width:"25",height:"8",x:"5",y:"4","mask-type":"alpha",maskUnits:"userSpaceOnUse"},i.createElement("path",{fill:"#fff",d:"M5.8453 4H29v7.66H5.8453V4z"})),i.createElement("g",{mask:`url(#${e.current})`},i.createElement("path",{fill:"#FFD900",fillRule:"evenodd",d:"M24.1391 9.129c.1695-.2321.3713-.4367.5595-.653.4589-.5266.9212-1.0502 1.3819-1.5751.018-.0203.0351-.0419.0674-.0809h-.1365c-2.5907 0-5.1813.0005-7.7719-.0018-.0858 0-.1415.0244-.1989.0892-1.3757 1.5535-2.7545 3.1046-4.1304 4.6576-.0598.0679-.1191.0946-.2098.0946-2.5662-.0023-5.1322-.0018-7.6981-.0018h-.157c.0442-.0907.107-.1432.1596-.203.5951-.6747 1.1918-1.3484 1.7877-2.0228.0245-.0273.0458-.0578.0684-.0866.3773-.4233.7553-.8455 1.1313-1.2701.9292-1.0489 1.8447-2.1104 2.7908-3.144.5497-.6003 1.2603-.922 2.0808-.923 4.622-.007 9.2441.0016 13.8658-.0088.6612-.0013 1.2727.5205 1.2704 1.2712-.0029.8717.0002 1.7435-.0011 2.6153a1.2453 1.2453 0 0 1-.9885 1.221 1.0818 1.0818 0 0 1-.2202.0244c-1.2171.0003-2.4341-.0013-3.6512-.0023z",clipRule:"evenodd"})),i.createElement("path",{fill:"#00539A",fillRule:"evenodd",d:"M3.8488 17.4612c0 .1191-.0008.2382.0005.3572.0003.0344-.0122.0832.0463.0812.2491-.0104.5023.0369.747-.0375.197-.0598.2561-.1708.251-.4347-.0037-.1794-.0856-.2873-.2653-.3375-.2371-.0663-.4802-.0491-.722-.0458-.0538.0008-.0577.0318-.0575.0721.0005.1149 0 .2301 0 .345zm0 1.4958v.3819c0 .0364-.0062.0775.0518.0752.2168-.0086.4355.0226.6508-.0229.2828-.0601.393-.2184.3624-.5159-.0242-.2329-.1888-.3733-.4503-.3777-.1766-.0029-.3534.0031-.5296-.0021-.0741-.0024-.089.0257-.0864.092.0047.123.0013.2462.0013.3695zm1.4695-.7582c.4202.2522.4759.6264.4088 1.0421-.0632.3926-.3074.6362-.6732.7597-.3837.1295-.7828.1326-1.1822.111-.2046-.0111-.4103-.0137-.6123-.0561-.202-.0427-.2576-.1061-.2584-.3229-.0018-.5219-.0006-1.0439-.0006-1.566 0-.4688-.0002-.9373 0-1.4059.0003-.2717.0492-.338.318-.3668.569-.0611 1.1407-.1058 1.7004.0572.6235.182.901.8421.6113 1.423-.0676.1354-.1682.2389-.3117.3247zM9.8089 17.441c.2168-.1482.4391-.2338.6871-.2489.6074-.0369.9433.2486.9808.8565.0384.6279.0085 1.2571.0153 1.8858.001.0956-.0468.1435-.1443.1427-.1685-.0013-.3372-.0042-.5057.001-.1175.0032-.1591-.0462-.1583-.1622.0036-.5096.0026-1.0195.0007-1.5293a2.2269 2.2269 0 0 0-.0169-.2577c-.0205-.1747-.0956-.2436-.2704-.26-.1804-.0169-.3369.051-.493.1282-.0675.0335-.049.0881-.049.1378-.0011.5879-.0006 1.1755-.0008 1.7636-.0003.1583-.0195.1776-.1774.1781-.1604.0005-.3208-.0016-.481.0008-.104.0013-.1492-.0476-.1492-.1501.0008-.8509.0013-1.7017-.0003-2.5529-.0002-.1066.0455-.1459.1503-.1417.1394.006.2795.0016.4191.0016.1844 0 .1844 0 .193.2067zM17.95 17.437c.2433-.1729.5023-.249.7857-.2485.5083.0008.8021.2647.8645.7714.0372.3034.0205.6079.0231.9118.0032.3495-.001.6992.0019 1.0489.0007.1105-.0476.1575-.1555.1565a16.414 16.414 0 0 0-.506.0002c-.1126.0024-.1513-.0514-.151-.1586.0015-.5553.0044-1.1107-.0026-1.6655-.0045-.3349-.1454-.4389-.4758-.3739a.4958.4958 0 0 0-.0476.0122c-.2881.085-.2954.0947-.2954.3921 0 .5346 0 1.0694-.0002 1.6042 0 .1604-.0276.1882-.1833.1885-.1607.0005-.3209-.001-.4813.0005-.1032.0011-.1472-.0452-.1469-.1503a603.927 603.927 0 0 0 0-2.5539c-.0003-.1004.039-.1423.1391-.1394.1399.0036.2798.001.4196.001.1909 0 .1937.0024.2117.2028zM15.8678 18.6562c.0026-.168.0099-.3373-.0462-.4995-.064-.1846-.1974-.2769-.3911-.2766-.1893.0005-.3427.0954-.3895.2784-.0842.33-.086.6669.0016.9969.0499.1874.2083.2839.4017.2795.1906-.0042.318-.1022.3801-.2912.0523-.1592.045-.3235.0434-.4875zm-1.6868-.0117c-.0016-.1891.0023-.3781.0444-.5637.1188-.5229.514-.8489 1.0738-.8877.2153-.015.428.0011.6321.0747.4352.1573.6606.4875.7233.9297.0432.3055.0463.617-.0013.922-.1139.7277-.638 1.0267-1.2878.9984-.6172-.0271-1.0002-.3326-1.1357-.8731-.0494-.1971-.0499-.3988-.0488-.6003zM23.6339 19.1311c0-.0658-.0008-.1313.0002-.1968.0008-.0408-.0041-.0733-.0577-.0707-.1466.007-.2953-.0187-.4402.0239-.1903.0556-.2956.3838-.1736.5416.0098.0125.0218.026.0361.0325.1999.0923.3957.0496.5798-.0398.1131-.0549.0335-.1771.0554-.2662.0018-.0078 0-.0164 0-.0245zm.0322.78c-.1789.103-.3463.1836-.5392.2023a1.259 1.259 0 0 1-.3921-.0198c-.3169-.0678-.513-.2618-.578-.5808a1.304 1.304 0 0 1-.0041-.5026c.0621-.3276.2904-.5182.6754-.5876.2275-.0408.4571-.0517.6872-.0434.0788.0029.1165-.0169.1038-.1009-.0042-.0283 0-.0577-.0008-.0863-.0047-.2205-.0926-.3156-.3151-.3219-.2546-.0067-.5094-.0018-.7634.0219a2.3842 2.3842 0 0 1-.1227.0088c-.0707.0023-.1069-.0309-.1064-.1035a30.424 30.424 0 0 0 .0003-.3822c-.0005-.0621.0281-.1055.0868-.1183.4522-.098.9069-.1674 1.3648-.0444.4282.1151.6573.424.6617.8938.0054.5918 0 1.1838.0026 1.7758.0005.11-.0411.1586-.1524.1558a7.0556 7.0556 0 0 0-.4191.0002c-.1105.0034-.2005-.0109-.1893-.1669zM7.665 19.1419c0-.0696.0003-.1391 0-.2087-.0002-.0325.0034-.07-.0457-.0687-.1589.0044-.3206-.0236-.4756.0294-.1708.0588-.2613.3923-.1482.5361a.1064.1064 0 0 0 .0367.0315c.1953.0897.3856.0491.5684-.0333.1294-.0588.0387-.1833.0644-.2738.001-.0039 0-.008 0-.0125zm.0377.7582c-.1942.1352-.3957.2129-.6185.2187-.2878.0072-.57-.032-.749-.2866-.23-.3265-.2263-.6856-.0692-1.041.0754-.1703.2335-.26.406-.3175.2812-.0941.5726-.1034.8646-.0936.1.0034.1212-.0288.1193-.1224-.0062-.3058-.084-.3887-.389-.3887-.2542 0-.5088.0013-.7622.0301-.1326.0149-.1586-.0122-.1592-.1458-.0002-.1066.0037-.2137-.0013-.3203-.0034-.0806.0333-.1261.1064-.1417.3993-.0856.8016-.143 1.2092-.0721.5229.0916.7876.3981.801.9597.0139.5832.003 1.1669.0037 1.7503 0 .1025-.0473.15-.151.1482-.148-.0026-.2962-.0047-.4438.0008-.1168.0039-.1836-.0341-.167-.1781zM27.6743 18.7016c0-.287-.0024-.5335.0015-.78.0011-.066-.0166-.0938-.085-.1001-.0939-.0083-.1867-.0278-.2795-.0442-.0879-.0153-.1365-.06-.1357-.158.0041-.4397-.0395-.3864.3661-.382.1081.0013.1513-.0249.1336-.1347-.0065-.0403-.001-.0821-.001-.1232 0-.2356 0-.2363.2272-.2774.1453-.0265.2912-.0489.4365-.0754.1061-.0195.1534.0169.1482.1297-.0059.1311.0013.2629-.0026.3944-.0018.0624.0149.0887.0822.0851.0983-.005.1971.0015.2956-.0021.0884-.0034.1305.0338.13.1219-.0005.1194-.0018.2387.0008.3578.0018.0894-.0442.1282-.1271.13a4.8653 4.8653 0 0 1-.2959-.0003c-.0614-.0026-.0863.0133-.0858.0811.0039.4686.0018.9371.0062 1.4056.0013.156.0294.1778.1818.1794.3723.0039.3244-.0499.3278.3271.0003.0411-.001.0824 0 .1232.0018.0681-.0281.1058-.0967.1196-.2441.0494-.4896.0596-.7342.0117-.2824-.0554-.4366-.2467-.4735-.5676-.0333-.2865-.0151-.5746-.0205-.8216zM20.4633 18.7198c0-.2951-.0044-.538.0023-.7805.0024-.0845-.0239-.1144-.1055-.1212-.0897-.0068-.1786-.0247-.2676-.0416-.0806-.0156-.1341-.0538-.1281-.1495.0057-.0902.0013-.181.0013-.2714 0-.0809.0392-.1217.1209-.1212.0946.0003.1895-.0055.2836.0016.0793.0059.0991-.0245.0944-.0981-.0057-.0902.0031-.1809-.0023-.2711-.0055-.0882.0379-.1303.1164-.1449.1859-.0335.3721-.0663.558-.0977.0926-.0154.1399.0218.1378.1206-.0029.136.0021.2717-.0018.4074-.0021.065.0205.0864.0847.0832.0986-.0046.1976.0006.2962-.0015.0816-.0016.123.033.1222.1167-.0013.1235-.0016.247 0 .3703.001.0845-.0458.1193-.1222.1214a6.3417 6.3417 0 0 1-.3084.001c-.0522-.001-.0723.0164-.072.0702.0023.4857.0031.9709.0029 1.456 0 .1009.0517.1402.1458.1396.0822-.0005.1643.0024.2465-.0007.0783-.0029.1152.0327.1157.1089.0005.1152.001.2304 0 .3453-.0008.0658-.0309.1035-.1006.1172-.2405.0484-.4818.0575-.7226.0125-.2701-.0502-.4256-.2246-.4729-.5135-.0499-.3029-.0109-.6079-.0247-.859zM12.0026 18.647c-.0049-.1893-.0034-.3783.0351-.5645.1087-.5259.4592-.8424.9914-.8881.2636-.0226.5244.0109.7826.0678.0803.0177.1191.0583.1162.1443a6.6646 6.6646 0 0 0-.0003.382c.0024.0923-.04.1269-.1281.1183-.1839-.0172-.3679-.0338-.5531-.031-.2405.0037-.3707.103-.4084.3396a2.8032 2.8032 0 0 0-.0013.8707c.0379.2455.1692.3513.4144.3471.1805-.0026.3609-.0156.5408-.0306.0954-.0081.1381.0241.1357.1219a5.8684 5.8684 0 0 0 .0006.3822c.0031.0814-.0351.124-.1077.1391-.3109.064-.6242.1079-.9409.0478-.475-.0897-.8011-.4568-.8578-.9544-.0187-.1638-.0231-.3279-.0192-.4922zM24.9554 18.6477c-.0112-.1887-.0195-.3775.0184-.5649.1066-.5224.46-.8443.9912-.8887.2639-.0219.5249.0109.7833.0681.0809.0179.117.0595.1131.1459a3.9404 3.9404 0 0 0-.0002.3702c.0049.1063-.0414.1375-.1412.1282a6.8223 6.8223 0 0 0-.4672-.0294c-.3313-.0078-.4519.0853-.4901.415-.0302.2607-.0336.5254.0078.7865.04.2501.1705.359.4214.3549.1766-.0026.3531-.0146.5289-.0299.1014-.0089.1451.0231.1404.1287a5.1872 5.1872 0 0 0-.0003.3824c.0021.0692-.0249.1108-.0905.1251-.3598.079-.7212.13-1.0834.019-.417-.128-.6916-.4816-.7295-.9431-.013-.1549-.0021-.3117-.0021-.468z",clipRule:"evenodd"}))},cup:()=>{const e=(0,i.useRef)(`cup-${window.performance.now()}`),t=(0,i.useRef)(`cup-${window.performance.now()}-1`);return i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"24",fill:"none",viewBox:"0 0 32 24"},i.createElement("rect",{width:"32",height:"24",fill:"#EEE",rx:"2"}),i.createElement("mask",{id:`${e.current}`,width:"14",height:"18",x:"2",y:"3","mask-type":"alpha",maskUnits:"userSpaceOnUse"},i.createElement("path",{fill:"#fff",d:"M2 3.0002h13.8746v17.5624H2V3.0002z"})),i.createElement("g",{mask:`url(#${e.current})`},i.createElement("path",{fill:"#DC062B",fillRule:"evenodd",d:"M7.4834 3h6.9887c.9755 0 1.5823.7973 1.3547 1.7788l-3.2537 14.0075c-.2296.9781-1.2064 1.7761-2.1826 1.7761h-6.988c-.9742 0-1.5823-.798-1.3548-1.7761L5.3028 4.7788C5.5304 3.7973 6.5066 3 7.4834 3z",clipRule:"evenodd"})),i.createElement("mask",{id:`${t.current}`,width:"15",height:"18",x:"8",y:"3","mask-type":"alpha",maskUnits:"userSpaceOnUse"},i.createElement("path",{fill:"#fff",d:"M8.4077 3h14.1259v17.5623H8.4076V3z"})),i.createElement("g",{mask:`url(#${t.current})`},i.createElement("path",{fill:"#00437A",fillRule:"evenodd",d:"M13.8906 2.9998h8.0368c.9754 0 .5356.7973.3061 1.7787l-3.2532 14.0076c-.2282.978-.157 1.776-1.1345 1.776H9.809c-.9774 0-1.5823-.798-1.3527-1.776l3.2531-14.0076c.231-.9814 1.2051-1.7787 2.1812-1.7787z",clipRule:"evenodd"})),i.createElement("path",{fill:"#007482",fillRule:"evenodd",d:"M21.6086 3h6.9887c.9769 0 1.5837.7973 1.3542 1.7788l-3.2532 14.0075c-.2296.9781-1.207 1.7761-2.1838 1.7761h-6.9854c-.9775 0-1.5837-.798-1.3548-1.7761L19.428 4.7788C19.6556 3.7973 20.6312 3 21.6086 3z",clipRule:"evenodd"}),i.createElement("path",{fill:"#FEFEFE",fillRule:"evenodd",d:"M22.7538 13.3417l-.8524 2.827h.2303l-.1784.5839h-.2276l-.054.18h-.811l.0552-.18h-1.6462l.1644-.5405h.1676l.8637-2.8704.1723-.5785h.8265l-.0865.2916s.2203-.1587.4291-.2129c.2083-.0553 1.4067-.0753 1.4067-.0753l-.177.5751h-.2827zm-1.4573 0l-.2189.7225s.2461-.1113.3786-.1481c.1358-.036.3387-.048.3387-.048l.1584-.5264h-.6568zm-.328 1.0802l-.2263.7521s.2509-.1282.3846-.169c.1358-.0305.342-.0567.342-.0567l.1598-.5264h-.6601zm-.5263 1.7535h.6587l.1889-.6346h-.6567l-.1909.6346z",clipRule:"evenodd"}),i.createElement("path",{fill:"#FEFEFE",fillRule:"evenodd",d:"M23.1184 12.7666h.8836l.0087.3297c-.006.056.0419.0819.1451.0819h.1797l-.1644.5446h-.4771c-.4126.0294-.5696-.1483-.5589-.3483l-.0167-.6079zM23.2355 15.3494h-.8416l.1442-.4844h.9623l.1363-.4431h-.9495l.1616-.5464h2.6424l-.1644.5464h-.8863l-.1383.4431h.8889l-.1477.4844h-.9601l-.171.2041h.3899l.0951.6106c.0107.0607.0107.1006.0306.1268.02.0213.1371.0326.2049.0326h.1184l-.1802.5939h-.3001c-.0459 0-.1152-.0034-.2109-.0074-.0893-.008-.1525-.0608-.2136-.0913-.0552-.0262-.1372-.0928-.1571-.2069l-.0938-.6093-.4371.5999c-.1385.1901-.3261.335-.6434.335h-.6109l.1603-.5306h.2335c.068 0 .1264-.0266.1711-.0493.0446-.0186.0845-.042.1291-.108l.6374-.9001zM14.021 14.0225h2.2291l-.1651.5324h-.8909l-.1391.455h.9116l-.1664.5498h-.9108l-.2216.7393c-.0266.0815.2168.092.3047.092l.4552-.0626-.183.6091h-1.0268c-.0831 0-.1443-.012-.2336-.032-.0865-.022-.125-.0608-.163-.1194-.0373-.0601-.0957-.1095-.0558-.2389l.2953-.9781h-.5062l.1683-.5592h.5076l.1351-.455h-.5063l.1617-.5324zM15.5202 13.0642h.9142l-.1656.5572h-1.2491l-.1349.1173c-.0586.0567-.0785.0335-.1545.0742-.0705.0353-.2182.106-.4105.106h-.4l.1611-.5351h.1205c.1012 0 .171-.0094.2063-.0314.0398-.026.0845-.0827.1337-.1741l.2308-.4183h.9076l-.1596.3042zM16.827 12.7666h.7785l-.1138.393s.2463-.1974.4185-.2683c.171-.0634.5591-.1208.5591-.1208l1.2602-.0073-.4291 1.4339c-.0726.2449-.1571.4036-.2097.4764-.0472.0728-.1031.1361-.2123.1962-.1058.0573-.2029.0894-.2921.0988-.0831.006-.2109.008-.3879.0106H16.984l-.3413 1.1329c-.0326.1128-.0479.1667-.0266.1975.0172.0261.0584.0567.1157.0567l.5357-.0507-.1836.6219h-.5983c-.1909 0-.3294-.0046-.4265-.012-.0925-.008-.1889 0-.2542-.0494-.0552-.0493-.1403-.1147-.1383-.1808.006-.0614.0319-.1635.0705-.3042l1.0899-3.6244zm1.6528 1.4472h-1.2755l-.0785.2575h1.1045c.1298-.0152.157.0034.1684-.0026l.0811-.2549zm-1.2063-.2329s.2495-.2287.6767-.3029c.0971-.0181.7034-.0119.7034-.0119l.0925-.307h-1.2863l-.1863.6218z",clipRule:"evenodd"}),i.createElement("path",{fill:"#FEFEFE",fillRule:"evenodd",d:"M19.0973 15.0793l-.0725.3444c-.0305.1079-.0573.1881-.1383.2574-.0852.0728-.185.1489-.4186.1489l-.4325.018-.0034.3889c-.0046.1095.0247.0987.0419.1162.0199.0199.038.0273.0566.0353l.1371-.008.4126-.0227-.1711.5679h-.4737c-.3315 0-.5776-.008-.6575-.0714-.0799-.0507-.0905-.1141-.0891-.2236l.0305-1.5173h.756l-.0106.3104h.1816c.0625 0 .1044-.0062.1305-.0227.0232-.0174.0398-.0407.0504-.0788l.076-.2429h.5941zM8.3098 7.4731c-.0259.1242-.511 2.3673-.5124 2.3693-.1044.4537-.1802.7774-.4384.9862-.1463.1213-.3174.1801-.5156.1801-.3188 0-.5044-.1587-.5358-.4597l-.006-.1035s.0972-.6077.0972-.6111c0 0 .5091-2.0444.6002-2.3146.0046-.0152.006-.0233.0074-.0306-.991.0087-1.1665 0-1.1785-.016-.0066.022-.0313.1487-.0313.1487l-.5197 2.3039-.0445.1955-.0865.6392c0 .1894.0373.3443.111.475.237.4151.9124.4771 1.2943.4771.4923 0 .9541-.1047 1.2662-.2962.5417-.321.6834-.8226.8098-1.2684l.0586-.2289s.5243-2.123.6136-2.3993c.0032-.0152.0046-.0233.0092-.0306-.7186.0073-.931 0-.9988-.016zM11.211 11.6903c-.3507-.006-.4757-.0059-.8863.0161l-.0153-.0314c.0353-.1575.0739-.3116.1092-.4704l.0506-.2149c.0758-.3329.1495-.7205.1582-.8394.008-.0707.0327-.2481-.1703-.2481-.0852 0-.1743.0413-.2647.0835-.0494.1774-.1491.6759-.1971.9027-.1017.4782-.1078.5338-.1537.77l-.0293.0319c-.362-.006-.4883-.0059-.9048.0161l-.0188-.0361c.0692-.2835.1385-.5705.205-.8547.175-.7713.217-1.0662.2642-1.4585l.0339-.0227c.4066-.0574.505-.0694.9449-.1589l.0373.0415-.0678.2455c.0751-.0448.1463-.0893.2214-.1281.2077-.1022.4386-.1327.565-.1327.1935 0 .4046.054.4923.2775.0833.1995.028.4443-.0817.9273l-.0566.247c-.1124.537-.1312.6358-.1944 1.0049l-.0412.0319zM12.6389 11.6904c-.2122-.0013-.3493-.006-.4817-.0013-.1323.0013-.2615.008-.4586.0174l-.0105-.0174-.0126-.0187c.0538-.2036.0831-.2743.1097-.3469.0272-.0727.0519-.1448.0998-.3517.062-.2702.0998-.4584.1245-.6238.0293-.1602.0445-.2963.0665-.4538l.0153-.012.0167-.0153c.2109-.0294.3446-.0494.4817-.0714.1383-.018.2775-.046.4957-.088l.008.0186.006.02c-.0399.1669-.0818.3336-.1218.503-.0385.1703-.0797.3364-.117.5032-.0786.355-.1106.4877-.1292.5839-.0185.0893-.0233.1387-.0538.3223l-.0201.0165-.0186.0154zM15.7963 10.4761c.1231-.5418.0272-.7946-.0932-.9489-.183-.2348-.5064-.3102-.8417-.3102-.2017 0-.682.02-1.0573.367-.2695.2502-.394.5897-.4691.9155-.076.3315-.163.9286.3846 1.1509.169.0727.4124.0927.5695.0927.4013 0 .8125-.1107 1.1219-.4397.2383-.2669.3473-.6639.3853-.8273zm-.9209-.0388c-.0174.0915-.0973.4311-.2049.5759-.0753.1068-.1644.1714-.2629.1714-.0293 0-.2037 0-.2063-.2595-.0013-.1281.0246-.2589.0566-.401.0925-.4103.2015-.7547.4804-.7547.2182 0 .2342.2562.1371.6679zM24.3894 11.7266c-.4245-.0034-.5463-.0034-.9383.0133l-.0245-.0319c.1058-.4045.2122-.8074.3073-1.2164.1231-.5305.1511-.756.1909-1.0663l.0321-.026c.4219-.06.5389-.0774.9774-.1588l.0126.0367c-.0804.3336-.1589.6653-.2375 1.0002-.1609.6992-.2195 1.0541-.2814 1.4198l-.0386.0294z",clipRule:"evenodd"}),i.createElement("path",{fill:"#FEFEFE",fillRule:"evenodd",d:"M24.5909 10.5241c.1232-.5384-.3739-.048-.4524-.2254-.1211-.2776-.046-.8394-.5337-1.0276-.1877-.0742-.6282.0213-1.0067.367-.2663.2469-.394.5851-.4666.9094-.0765.3269-.1642.9241.3807 1.1369.1736.0741.3293.096.4877.0881.5477-.0293.9649-.8595 1.2744-1.1871.2381-.2601.28.0976.3166-.0613zm-.8384-.04c-.0213.088-.1019.4303-.2095.5738-.0719.1021-.2429.1655-.3414.1655-.0279 0-.2003 0-.2063-.2548-.0013-.127.0246-.2576.0573-.4011.0938-.4029.2015-.744.481-.744.2189 0 .3128.2483.2189.6606zM18.1971 11.6903c-.3526-.006-.4731-.0059-.885.0161l-.0153-.0314c.0353-.1575.0751-.3116.1118-.4704l.0478-.2149c.0772-.3329.1511-.7205.1584-.8394.008-.0707.0326-.2481-.1689-.2481-.0879 0-.1757.0413-.2663.0835-.0479.1774-.1497.6759-.199.9027-.0984.4782-.1057.5338-.1502.77l-.0313.0319c-.3613-.006-.4859-.0059-.903.0161l-.0186-.0361c.0692-.2835.1383-.5705.2049-.8547.175-.7713.215-1.0662.2642-1.4585l.0312-.0227c.4059-.0574.5064-.0694.9463-.1589l.0339.0415-.0632.2455a3.7485 3.7485 0 0 1 .2202-.1281c.2063-.1022.4385-.1327.565-.1327.191 0 .4032.054.4937.2775.0818.1995.0259.4443-.0845.9273l-.0552.247c-.1158.537-.1325.6358-.1943 1.0049l-.0426.0319zM21.6226 8.7867c-.0619.281-.2436.517-.4772.6312-.1923.0968-.4277.1049-.6706.1049h-.1571l.012-.0634s.2894-1.2625.2882-1.2578l.0092-.0648.0041-.0493.1156.012s.5969.0513.6109.0527c.2356.0914.3327.327.2649.6345zm-.3799-1.3164l-.2928.0028c-.7599.0092-1.0647.0066-1.1899-.0087-.0105.0553-.0305.154-.0305.154s-.2722 1.265-.2722 1.267l-.682 2.8163c.6635-.0078.9355-.0078 1.05.0048.026-.1267.1797-.8781.181-.8781 0 0 .131-.551.139-.5712 0 0 .0413-.0574.0825-.0799h.0606c.5722 0 1.2183 0 1.7248-.3737.3446-.2562.5801-.6346.6853-1.0942a1.6507 1.6507 0 0 0 .0473-.3811c0-.1761-.0353-.3502-.1371-.4863-.2583-.3623-.7725-.369-1.366-.3717zM27.8614 9.237l-.0339-.0388c-.4338.0882-.5124.1022-.911.1562l-.0293.0293c-.0013.0048-.0025.0122-.0046.0188l-.0013-.0066c-.2968.6864-.2881.5384-.5296 1.0788-.0014-.0246-.0014-.04-.0028-.0661l-.0604-1.1716-.038-.0388c-.4545.0882-.4652.1022-.8849.1562l-.0328.0293c-.0046.014-.0046.0294-.0073.0462l.0027.006c.0525.2688.0399.2088.0925.6331.0246.2082.0573.4176.0818.6233.0414.3442.0646.5136.1152 1.0388-.2835.4691-.3506.6465-.6235 1.0582l.0174.0386c.4091-.0152.5042-.0152.8077-.0152l.0658-.0755c.2296-.4957 1.9763-3.5002 1.9763-3.5002zM13.0235 9.5273c.2329-.162.2622-.3857.0666-.5018-.1982-.1173-.5463-.08-.7805.0822-.2335.1588-.2603.3843-.0627.503.1951.114.5445.0801.7766-.0834z",clipRule:"evenodd"}),i.createElement("path",{fill:"#FEFEFE",fillRule:"evenodd",d:"M25.8546 12.7788l-.3414.5866c-.1078.2007-.3082.3501-.6269.3515l-.5429-.0094.1585-.5276h.1064c.0552 0 .0951-.0028.1257-.0181.028-.0093.0479-.0313.0699-.0634l.2017-.3196h.849z",clipRule:"evenodd"}))},amex:()=>{const e=(0,i.useRef)(`amex-${window.performance.now()}`);return i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"24",fill:"none",viewBox:"0 0 32 24"},i.createElement("rect",{width:"32",height:"24",fill:"#1F8CCB",rx:"2"}),i.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M.0001 11.2484h1.5365l.3465-.8358h.7756l.3456.8358h3.0232v-.639l.2698.6416h1.5695l.2698-.6512v.6486H15.65l-.0035-1.372h.1453c.1018.0035.1316.013.1316.181v1.191h3.886v-.3194c.3133.168.8008.3194 1.4423.3194h1.6348l.3498-.8358h.7757l.3421.8358h3.1503v-.7941l.4771.7941h2.5245V6h-2.4984v.6198L27.6576 6H25.094v.6198L24.7728 6h-3.4629c-.5796 0-1.0892.081-1.5006.3064V6h-2.3898v.3064C17.1576 6.074 16.8007 6 16.4038 6H7.6735l-.5858 1.3556L6.4862 6H3.7363v.6198L3.4343 6H1.089L0 8.4954v2.753h.0001zm29.7041-.7391h-1.2743l-1.7046-2.8245v2.8245h-1.8315l-.3499-.8394h-1.8681l-.3396.8394h-1.0523c-.4371 0-.9905-.0967-1.304-.4163-.316-.3196-.4804-.7523-.4804-1.4366 0-.558.0982-1.0684.4849-1.4714.2906-.3003.7459-.439 1.3656-.439h.8707v.8064h-.8525c-.3281 0-.5135.049-.692.223-.1533.1585-.2585.458-.2585.8524 0 .403.0802.6939.2474.8838.1384.1489.3899.194.6267.194h.4038l1.2676-2.9594h1.3475l1.5225 3.5594V6.7462h1.3692l1.5807 2.6209V6.746h.9211v3.7632zm-11.5629 0h.9176V6.7462h-.9176v3.7631zm-.5215-2.7497c0 .6-.4004.91-.6337 1.003.1968.075.3648.2073.445.317.1268.1871.1487.3543.1487.6904v.7393h-.907l-.0034-.4746c0-.2264.0217-.552-.142-.7331-.1314-.1324-.3317-.161-.6554-.161h-.9654v1.3687h-.8992V6.7461h2.0684c.4596 0 .7982.0122 1.0889.1802.2845.1682.4551.4135.4551.8333zm-4.2358 2.7497h-3.0041V6.7461h3.0041v.7837h-2.1047v.6782h2.0542v.7715h-2.0542v.7514h2.1047v.7784zm-3.6742 0h-.922l-.0034-2.9474-1.304 2.9474h-.7896L5.3834 7.5594v2.9499H3.5543l-.3455-.8394H1.3363l-.349.8394H.0106l1.6103-3.7632h1.3362l1.5294 3.5629V6.746h1.4678l1.1769 2.553 1.0811-2.553h1.4974v3.7633zm14.5276-1.6238l-.6224-1.5002-.6188 1.5002h1.2412zm-7.7936-.5975c-.1236.0751-.2698.0776-.4449.0776h-1.0924v-.8358h1.1073c.1567 0 .3203.007.4265.0678.1166.0549.1888.1716.1888.3327 0 .1645-.0687.2969-.1853.3577zm-13.5597.5975l-.6155-1.5002-.612 1.5002H2.884z",clipRule:"evenodd"}),i.createElement("mask",{id:`${e.current}`,width:"26",height:"6",x:"6",y:"12","mask-type":"alpha",maskUnits:"userSpaceOnUse"},i.createElement("path",{fill:"#fff",d:"M32 17.5022v-5.1721H6.259v5.1721H32z"})),i.createElement("g",{mask:`url(#${e.current})`},i.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M17.3742 14.2876c0 1.0293-.7832 1.2417-1.5728 1.2417h-1.1267v1.2427h-1.7554l-1.112-1.2264-1.1556 1.2264H7.0744v-3.705h3.6322l1.1111 1.2144 1.1488-1.2144h2.8858c.7167 0 1.5219.1945 1.5219 1.2206zm-7.1797 1.7123H7.9741v-.7371h1.9826v-.7559H7.974v-.6736h2.2642l.9878 1.0797-1.0316 1.0869zm3.5807.4351l-1.3865-1.5091 1.3865-1.4612v2.9703zm2.0666-1.6582h-1.1671v-.9434h1.1776c.326 0 .5522.1303.5522.4542 0 .3205-.2157.4892-.5627.4892zm6.0931-1.7098h3.0141v.7663h-2.1149v.6736h2.0633v.7559h-2.0633v.7371l2.1149.0033v.7688h-3.0141v-3.705zm-1.1409 1.9832c.2009.0729.3654.2032.4424.3111.1275.1808.146.3496.1495.6763v.7344h-.9065v-.4636c0-.2227.0217-.5529-.146-.725-.132-.1329-.3331-.1646-.6627-.1646h-.965v1.3532h-.9075v-3.705h2.0851c.4571 0 .79.0198 1.0866.175.285.1687.4642.3999.4642.8226-.0001.5913-.4024.8931-.6401.9856zm-.5454-.4611c-.1209.0703-.2702.0764-.4459.0764h-1.0971v-.8321h1.1119c.1609 0 .3218.0034.4311.0668.1171.06.1869.1749.1869.3333 0 .1587-.0698.2862-.1869.3556zm8.1489.229c.1759.1783.2702.4035.2702.7848 0 .797-.5079 1.1691-1.4188 1.1691h-1.7588v-.7944h1.7519c.1713 0 .2926-.0222.3688-.0918a.3256.3256 0 0 0 .1068-.2416c0-.108-.0483-.1937-.1102-.2451-.0692-.0565-.1644-.0822-.3216-.0822-.8446-.0282-1.9024.0257-1.9024-1.1467 0-.5374.3445-1.1031 1.2912-1.1031h1.8106v.7887h-1.6567c-.1642 0-.2709.0059-.3619.0668-.0988.0601-.1355.149-.1355.2666 0 .1398.084.2348.1976.276.0953.0325.1975.0419.3515.0419l.4861.0129c.4902.0118.8268.0949 1.0312.2981zm3.6026 1.4801c-.2194.3145-.6469.4738-1.2256.4738h-1.7441v-.7944h1.7369c.1724 0 .293-.0222.3655-.0918a.3228.3228 0 0 0 .1069-.2416c0-.108-.044-.1936-.1104-.2451-.0654-.0565-.1608-.0822-.3182-.0822-.8479-.0282-1.9057.0257-1.9057-1.1467 0-.5374.3479-1.1031 1.2957-1.1031h1.7988l.0002-.737h-1.6715c-.5044 0-.8709.1184-1.1303.3025v-.3025h-2.4722c-.3952 0-.8594.0959-1.0787.3025v-.3025h-4.4147v.3025c-.3514-.2484-.9442-.3025-1.2177-.3025h-2.9119v.3025c-.278-.264-.8961-.3025-1.2729-.3025h-3.259l-.7456.7912-.6985-.7912H6.259v5.1695h4.7765l.7683-.8036.724.8036 2.9443.0026v-1.216h.2895c.3905.0058.8512-.0096 1.2578-.1818v1.3952h2.4284v-1.3475h.1173c.1494 0 .1642.0062.1642.1527v1.1946h7.3772c.4685 0 .9581-.1175 1.2292-.3308v.3308h2.34c.4869 0 .9625-.0669 1.3244-.2383v-.9629zm0-2.4426H30.354c-.1642 0-.2734.006-.3655.0668-.0952.0601-.1319.149-.1319.2665 0 .1399.0804.2349.1976.2761.0953.0325.1976.0419.3479.0419l.4895.0128c.4939.0121.8237.0952 1.0246.2984.0367.0281.0586.0599.0839.0916v-1.0541z",clipRule:"evenodd"})))}};var Al=e=>{let{cardType:t}=e;const n=Zl[t];return i.createElement(Nl,null,n?i.createElement(n,null):i.createElement(Ml,null))},Tl=n(27003);function Rl(e,t){return n=>{return r=this,o=void 0,a=function*(){yield((e,t)=>(0,Lt.Z)(`checkout/cards?paymentProviderId=${e}&token=${t}`,{method:"DELETE"}))(e,t),yield n(hl())},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{s(a.next(e))}catch(e){t(e)}}function l(e){try{s(a.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,l)}s((a=a.apply(r,o||[])).next())}));var r,o,i,a}}var zl=()=>i.createElement("svg",{width:"50",height:"50",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M25 10.714a2.857 2.857 0 0 1 2.857 2.857v14.286a2.857 2.857 0 0 1-5.714 0V13.571A2.857 2.857 0 0 1 25 10.714zm0 22.857a2.857 2.857 0 1 1 0 5.715 2.857 2.857 0 0 1 0-5.715zM24.98 0c13.797 0 24.98 11.184 24.98 24.98 0 13.797-11.183 24.98-24.98 24.98C11.184 49.96 0 38.778 0 24.98 0 11.184 11.184 0 24.98 0zm0 45.44c11.3 0 20.46-9.16 20.46-20.46-.014-11.293-9.166-20.445-20.46-20.459-11.299 0-20.459 9.16-20.459 20.46 0 11.299 9.16 20.458 20.46 20.458z",fill:"#FDAB02",fillRule:"nonzero"})),Ll=n(89407);const Dl=Me.ZP.div.withConfig({displayName:"RemoveModalstyled__Wrapper",componentId:"sc-1drh9uh-0"})(["display:flex;position:relative;flex-direction:column;padding:40px 50px 60px;"]),Fl=Me.ZP.button.withConfig({displayName:"RemoveModalstyled__Close",componentId:"sc-1drh9uh-1"})(["display:flex;justify-content:center;align-items:center;position:absolute;top:10px;right:10px;width:24px;height:24px;background:rgb(13,13,16);border:0;border-radius:50%;outline:0;cursor:pointer;& svg{transition:opacity 0.3s;}&:hover svg{opacity:0.7;}"]),Bl=Me.ZP.div.withConfig({displayName:"RemoveModalstyled__IconContainer",componentId:"sc-1drh9uh-2"})(["display:flex;justify-content:center;margin-bottom:0.75rem;& svg{width:3rem;height:3rem;}"]),Ul=Me.ZP.h2.withConfig({displayName:"RemoveModalstyled__Title",componentId:"sc-1drh9uh-3"})(["font-size:1.1rem;font-weight:600;margin-bottom:5px;text-align:center;color:rgba(255,255,255,0.7);"]),ql=Me.ZP.div.withConfig({displayName:"RemoveModalstyled__Description",componentId:"sc-1drh9uh-4"})(["font-size:0.9rem;font-weight:500;text-align:center;color:rgba(255,255,255,0.7);"]),$l=Me.ZP.div.withConfig({displayName:"RemoveModalstyled__WrapperButtons",componentId:"sc-1drh9uh-5"})(["display:flex;justify-content:center;align-items:center;text-align:center;margin-top:50px;& button{margin:0 7px;}"]);var Hl=e=>{const t=(0,fe.T)(),n=(0,Ae.Z)(Te.U.Profile);return i.createElement($n.Z,{isOpen:e.isOpen,onClose:e.closeModal,shouldCloseOnOverlayClick:!1},i.createElement(Dl,null,i.createElement(Fl,{type:"button",onClick:e.closeModal},i.createElement(Ll.Z,null)),i.createElement(Bl,null,i.createElement(zl,null)),i.createElement(Ul,null,n.strings.removeCardConfirmedTitle),i.createElement(ql,null,n.strings.removeCardConfirmedDescription),i.createElement($l,null,i.createElement(It.ZP,{isNoBoxShadow:!0,color:It.Tt.dark,onClick:e.closeModal},n.strings.removeCardCancel),i.createElement(It.ZP,{isNoBoxShadow:!0,onClick:()=>{t(Rl(e.paymentProviderId,e.token)),e.closeModal()}},n.strings.removeCardConfirm))))},Vl=()=>i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20"},i.createElement("path",{fill:"#2d2d30",d:"M10 8.5858l3.5355-3.5355c.3906-.3906 1.0237-.3906 1.4142 0s.3906 1.0236 0 1.4142L11.4142 10l3.5355 3.5355c.3906.3906.3906 1.0237 0 1.4142s-1.0236.3906-1.4142 0L10 11.4142l-3.5355 3.5355c-.3906.3906-1.0237.3906-1.4142 0s-.3906-1.0236 0-1.4142L8.5858 10 5.0503 6.4645c-.3906-.3906-.3906-1.0237 0-1.4142s1.0236-.3906 1.4142 0L10 8.5858z",fillRule:"evenodd"})),Wl=e=>{const[t,n]=i.useState(!1),r=((e,t)=>{const n=new Date,r=new Date(Number(e),Number(t));return(0,Tl.Z)(n,r)>0})(e.expiryYear,e.expiryMonth);return i.createElement(kl,null,i.createElement(Al,{cardType:e.cardType}),i.createElement(Sl,null,`**** ${e.lastFour}`),i.createElement(Il,{isOutdated:r},`${e.expiryMonth}/${e.expiryYear}`),i.createElement(jl,{isIcon:!0,icon:Vl,onClick:()=>{n(!0)}}),i.createElement(Hl,{isOpen:t,paymentProviderId:e.paymentProviderId,token:e.token,closeModal:()=>{n(!1)}}))};const Gl=Me.ZP.div.withConfig({displayName:"PaymentCardsstyled__Wrapper",componentId:"sc-q9zs84-0"})(["margin-top:35px;"]);var Yl=()=>{const e=(0,Ae.Z)(Te.U.Profile),t=(0,a.useSelector)(yl);return i.createElement(Gl,null,i.createElement(Di.L9,null,e.strings.paymentCardsTitle),t.map((e=>i.createElement(Wl,{key:e.token,cardType:e.cardType,expiryMonth:e.expiryMonth,expiryYear:e.expiryYear,lastFour:e.lastFour,paymentProviderId:e.paymentProviderId,token:e.token}))))},Ql=()=>{const e=(0,fe.T)(),t=(0,Ae.Z)(Te.U.Profile);return i.useEffect((()=>{e(hl())}),[e]),i.createElement(ji,null,i.createElement(Di.lf,null,t.strings.paymentTitle),i.createElement(Ol,null),i.createElement(Yl,null))};const Jl=e=>e.newProfile.deviceActivity,Xl=(0,er.P1)(Jl,(e=>e.loading)),Kl=(0,er.P1)(Jl,(e=>e.activeSessions)),es=(0,er.P1)(Jl,(e=>e.currentSession)),ts=(0,er.P1)(Jl,(e=>e.isNotificationOn)),ns=e=>({type:J,payload:e});const rs=e=>t=>{return n=void 0,r=void 0,i=function*(){const n=e.map((e=>Object.assign(Object.assign({},e),{date:(0,Bo.cs)(e.date)})));t({type:K,payload:n})},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function l(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,l)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i};const os=e=>({type:ee,payload:e});const is=()=>e=>{return t=void 0,n=void 0,o=function*(){e(os(!0));const{isNotificationOn:t,active:n,current:r}=yield(0,Lt.Z)("device");e(os(!1)),e(ns(t)),e(rs(n)),e((e=>t=>{return n=void 0,r=void 0,i=function*(){if(!e)return;const n=Object.assign(Object.assign({},e),{date:(0,Bo.cs)(e.date)});t({type:X,payload:n})},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function l(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,l)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i})(r))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,l)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o};const as=()=>e=>{return t=void 0,n=void 0,o=function*(){const t=yield(0,Lt.Z)("device/notifications/on");e(ns(t))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,l)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o};const ls=()=>e=>{return t=void 0,n=void 0,o=function*(){const t=yield(0,Lt.Z)("device/notifications/off");e(ns(t))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,l)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o},ss=Me.ZP.p.withConfig({displayName:"NotificationNoticesstyled__TurnOffNotificationNotice",componentId:"sc-1brto8f-0"})(["padding-left:1.25rem;margin:0;max-width:28rem;line-height:1.1;"]),cs=Me.ZP.span.withConfig({displayName:"NotificationNoticesstyled__TextTurnOff",componentId:"sc-1brto8f-1"})(["margin:0;font-size:0.8rem;color:",";"],(e=>{let{theme:t}=e;return Bi(t.color.dark,.8)})),ds=(0,Me.ZP)(Fi.Z).withConfig({displayName:"NotificationNoticesstyled__TextTurnOn",componentId:"sc-1brto8f-2"})(["display:inline;font-size:0.8rem;font-weight:400;color:",";margin-right:0.25rem;"],(e=>{let{theme:t}=e;return Bi(t.color.dark,.9)})),us=(0,Me.ZP)(qi).withConfig({displayName:"NotificationNoticesstyled__Button",componentId:"sc-1brto8f-3"})(["display:inline;font-size:16px;font-weight:400;"]),ms=(0,Me.ZP)(Ki).withConfig({displayName:"NotificationNoticesstyled__TurnNotificationOn",componentId:"sc-1brto8f-4"})(["display:block;"]),fs=e=>{let{notificationsAreOffBeforeActionText:t,notificationsAreOffAfterActionText:n,turnNotificationOnText:r,turnNotificationsOn:o}=e;return i.createElement(ms,{isStripted:!0,marginBottom:1},i.createElement(ds,{html:t}," "),i.createElement(us,Object.assign({onClick:o},bt.A("newProfile.settings.deviceActivity.turnNotificationOn")),r," "),i.createElement(ds,{html:n}))},ps=e=>{let{turnOffText:t,turnNotificationOffBeforeActionText:n,turnNotificationOffAfterActionText:r,turnNotificationsOff:o}=e;return i.createElement(ss,null,i.createElement(cs,null,n," "),i.createElement(us,Object.assign({onClick:o},bt.A("newProfile.settings.deviceActivity.turnNotificationOff")),t," "),i.createElement(cs,null,r))};const gs=e=>t=>{return n=void 0,r=void 0,i=function*(){const{active:n}=yield(e=>(0,Lt.Z)(`device/${e}/logout`,{method:"PUT"}))(e);t(rs(n))},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function l(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,l)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i},hs=(0,Me.iv)(["display:inline-flex;width:0.4rem;height:0.4rem;margin-top:-1px;border-radius:50%;vertical-align:middle;"]),vs=Me.ZP.div.withConfig({displayName:"StatusCirclestyled__Circle",componentId:"sc-fe7fm-0"})(["",";"," "," ",""],hs,(e=>e.status===zi.ku&&(0,Me.iv)(["background-color:#29c93f;"])),(e=>e.status===zi.cz&&(0,Me.iv)(["background-color:#b26548;"])),(e=>e.status===zi.Cm&&(0,Me.iv)(["background-color:#aeabb2;"]))),ys=(Me.ZP.div.withConfig({displayName:"StatusCirclestyled__HasNotification",componentId:"sc-fe7fm-1"})(["",";background-color:#05a8af;align-self:flex-start;"],hs),Me.ZP.div.withConfig({displayName:"SessionItemstyled__Wrapper",componentId:"sc-h4w76h-0"})(["display:flex;"])),bs=Me.ZP.div.withConfig({displayName:"SessionItemstyled__LeftArea",componentId:"sc-h4w76h-1"})(["display:flex;flex-direction:column;"]),ws=Me.ZP.div.withConfig({displayName:"SessionItemstyled__RightArea",componentId:"sc-h4w76h-2"})(["display:flex;flex-direction:column;margin-left:auto;"]),Es=Me.ZP.p.withConfig({displayName:"SessionItemstyled__Text",componentId:"sc-h4w76h-3"})(["margin:0;font-size:0.8rem;color:",";line-height:21px;",""],(e=>{let{theme:t}=e;return Bi(t.color.dark,.8)}),(e=>e.capitalize&&(0,Me.iv)(["text-transform:capitalize;"]))),xs=(0,Me.ZP)(Es).withConfig({displayName:"SessionItemstyled__Title",componentId:"sc-h4w76h-4"})(["color:",";font-weight:600;"],(e=>{let{theme:t}=e;return t.color.dark})),Cs=Me.ZP.div.withConfig({displayName:"SessionItemstyled__TitleWrapper",componentId:"sc-h4w76h-5"})(["display:flex;align-items:center;"]),Ps=(0,Me.ZP)(vs).withConfig({displayName:"SessionItemstyled__CurrentSessionCircle",componentId:"sc-h4w76h-6"})(["width:6px;height:6px;margin-left:0.2rem;"]),_s=(0,Me.ZP)(Es).withConfig({displayName:"SessionItemstyled__Date",componentId:"sc-h4w76h-7"})(["font-size:0.65rem;align-self:flex-end;"]),Os=Me.ZP.button.withConfig({displayName:"SessionItemstyled__LogoutButton",componentId:"sc-h4w76h-8"})(["background:none;color:#007aff;font-size:0.8rem;border:none;margin-top:1rem;align-self:flex-end;cursor:pointer;&:disabled{opacity:0.5;}"]);const ks=e=>{var{deviceName:t,location:n,ipAddress:r,date:o,id:a,isCurrent:l,onLogout:s}=e,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{s&&(m(!0),s(a))},disabled:u},bt.A("newProfile.settings.deviceActivity.activeSession.logout",{sessionId:a})),d.strings.logout)))},Ss=e=>{let{activeSessions:t}=e;const n=(0,fe.T)(),r=(0,Ae.Z)(Te.U.Profile),o=e=>{n(gs(e))};return i.createElement(i.Fragment,null,i.createElement(Di.L9,null,r.strings.activeSessions),i.createElement(ka,{margin:.5}),t.map((e=>i.createElement(i.Fragment,{key:`${e.id}${e.date}`},i.createElement(ks,Object.assign({deviceName:e.deviceName,location:e.location,ipAddress:e.ipAddress,date:e.date,id:e.id,onLogout:o},bt.A("newProfile.settings.deviceActivity.activeSession",{sessionId:e.id}))),i.createElement(ka,{margin:.5})))))};const Is=e=>t=>{return n=void 0,r=void 0,i=function*(){const{active:n}=yield(r=e,(0,Lt.Z)(`device/${r}/logout/all`,{method:"PUT"}));var r;t(rs(n))},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function l(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,l)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i},js=Me.ZP.div.withConfig({displayName:"CurrentSessionstyled__LogoutNotice",componentId:"sc-12psra-0"})(["display:flex;"]),Ns=Me.ZP.p.withConfig({displayName:"CurrentSessionstyled__Text",componentId:"sc-12psra-1"})(["margin:0;font-size:0.7rem;line-height:20px;color:",";"],(e=>{let{theme:t}=e;return t.color.dark})),Ms=Me.ZP.button.withConfig({displayName:"CurrentSessionstyled__LogoutButton",componentId:"sc-12psra-2"})(["background:none;color:#e6495d;font-size:0.7rem;border:none;margin-left:auto;cursor:pointer;&:disabled{opacity:0.5;}"]),Zs=e=>{let{currentSession:t,showLogoutNotice:n}=e;const r=(0,Ae.Z)(Te.U.Profile),o=(0,fe.T)(),[a,l]=i.useState(!1);return i.createElement(i.Fragment,null,i.createElement(Di.L9,null,r.strings.currentSession),i.createElement(ka,{margin:.5}),t&&i.createElement(ks,Object.assign({deviceName:t.deviceName,location:t.location,ipAddress:t.ipAddress,id:t.id,date:r.strings.online,isCurrent:!0},bt.A("newProfile.settings.deviceActivity.currentSession"))),i.createElement(ka,{margin:.5}),n&&i.createElement(js,null,i.createElement(Ns,null,r.strings.logoutAllOtherDevicesLabel),i.createElement(Ms,Object.assign({onClick:()=>{l(!0),t&&o(Is(t.id))},disabled:a},bt.A("newProfile.settings.deviceActivity.logoutAllOtherDevices")),r.strings.logoutAllOtherDevices)))},As=(0,Me.F4)(["0%{transform:translateX(-100%);}100%{transform:translateX(100%);}"]),Ts=Me.ZP.div.withConfig({displayName:"SessionItemBlankstyled__BlankWrapper",componentId:"sc-6tsecx-0"})(["display:flex;position:relative;overflow:hidden;opacity:",";"],(e=>e.opacity||1)),Rs=Me.ZP.div.withConfig({displayName:"SessionItemBlankstyled__BlankLeftArea",componentId:"sc-6tsecx-1"})(["display:flex;flex-direction:column;"]),zs=Me.ZP.div.withConfig({displayName:"SessionItemBlankstyled__BlankRightArea",componentId:"sc-6tsecx-2"})(["display:flex;flex-direction:column;margin-left:auto;"]),Ls=Me.ZP.div.withConfig({displayName:"SessionItemBlankstyled__BlankItem",componentId:"sc-6tsecx-3"})(["width:","rem;height:0.75rem;border-radius:0.65rem;background-color:#ebebeb;margin-top:","rem;"],(e=>e.width),(e=>e.marginTop)),Ds=Me.ZP.div.withConfig({displayName:"SessionItemBlankstyled__BlankOverlay",componentId:"sc-6tsecx-4"})(["position:absolute;width:100%;height:100%;transform:translateX(-100%);background-image:linear-gradient(90deg,rgba(255,255,255,0) 0%,#ffffff 50%,rgba(255,255,255,0) 100%);animation:"," 2s ease infinite;"],As),Fs=e=>{let{opacity:t}=e;return i.createElement(Ts,{opacity:t},i.createElement(Ds,null),i.createElement(Rs,null,i.createElement(Ls,{width:5,marginTop:0}),i.createElement(Ls,{width:7,marginTop:.5}),i.createElement(Ls,{width:3.5,marginTop:.5})),i.createElement(zs,null,i.createElement(Ls,{width:5,marginTop:0}),i.createElement(Ls,{width:3.5,marginTop:1.5})))},Bs=()=>{const e=(3,Array.from({length:3},((e,t)=>(3-t)/3)));return i.createElement(i.Fragment,null,e.map((e=>i.createElement(i.Fragment,{key:e},i.createElement(Fs,{opacity:e}),i.createElement(ka,{margin:.5})))))},Us=(0,Me.ZP)(Fi.Z).withConfig({displayName:"DeviceActivitystyled__Description",componentId:"sc-jqdsxf-0"})(["font-size:16px;line-height:20px;color:#000;"]);var qs=()=>{const e=(0,fe.T)(),t=(0,Ae.Z)(Te.U.Profile),n=(0,a.useSelector)(ts),r=(0,a.useSelector)(Xl),o=(0,a.useSelector)(Kl,a.shallowEqual),l=(0,a.useSelector)(es,a.shallowEqual);i.useEffect((()=>{e(is())}),[e]);const s=!r&&!n,c=!r&&n,d=!!o.length;return i.createElement(i.Fragment,null,i.createElement(ji,null,s&&i.createElement(fs,{notificationsAreOffBeforeActionText:t.strings.notificationsAreOffNoticeBeforeAction,notificationsAreOffAfterActionText:t.strings.notificationsAreOffNoticeAfterAction,turnNotificationOnText:t.strings.turnNotificationOn,turnNotificationsOn:()=>{e(as())}}),i.createElement(Di.lf,null,t.strings.deviceActivityTitle),i.createElement(Us,{html:t.strings.deviceActivityDescription}),i.createElement(Li,{height:1.25}),r?i.createElement(Bs,null):i.createElement(i.Fragment,null,i.createElement(Zs,{currentSession:l,showLogoutNotice:d}),d&&i.createElement(i.Fragment,null,i.createElement(Li,{height:1.75}),i.createElement(Ss,{activeSessions:o})))),c&&i.createElement(ps,{turnNotificationOffBeforeActionText:t.strings.turnNotificationsOffNoticeBeforeAction,turnNotificationOffAfterActionText:t.strings.turnNotificationsOffNoticeAfterAction,turnOffText:t.strings.turnOff,turnNotificationsOff:()=>{e(ls())}}))},$s=()=>{switch(i.useContext(Re).subSectionId){case zi.qP:return i.createElement(gl,null);case zi.wn:return i.createElement(nl,null);case zi.RD:return i.createElement(qs,null);case zi.eT:return i.createElement(Ql,null);default:return i.createElement(nl,null)}};function Hs(e){const t=(0,a.useSelector)(Ce.LD);return(0,i.useCallback)((n=>`${we(t.toString(),e)}${n||""}`),[e,t])}var Vs=()=>{const e=(0,Ae.Z)(Te.U.Profile),{subSectionId:t}=i.useContext(Re),n=Hs(ue.Settings),r=[{href:n(zi.wn),label:e.strings.accountAndSecurity,qaLabel:"accountAndSecurity",isActive:t===zi.wn||""===t},{href:n(zi.qP),label:e.strings.privacyTitle,qaLabel:"privacy",isActive:t===zi.qP},{href:n(zi.RD),label:e.strings.deviceActivityTitle,qaLabel:"deviceActivity",isActive:t===zi.RD},{href:n(zi.eT),label:e.strings.paymentTitle,qaLabel:"payment",isActive:t===zi.eT}];return i.createElement(gt,null,r.map((e=>e.href&&e.label?i.createElement(wt.Z,Object.assign({href:e.href,key:`tabUrl-${e.label}`},bt.A("newProfile.settings.settingsTab",{tabName:e.qaLabel})),i.createElement(xt.Vertical,{title:e.label,active:e.isActive})):null)))},Ws=()=>{const e=Ie(),t=(0,a.useSelector)(Ce._$),n=(0,a.useSelector)(Ce.LD);i.useEffect((()=>{if(!e.isLoading&&!t){const e=we(n.toString(),ue.Info);(0,Zi.pushState)(e)}}),[t,e.isLoading,n]);const r=i.createElement(Vs,null),o=i.createElement($s,null);return t?i.createElement(Ri,{aside:r,content:o}):null},Gs=n(38296),Ys=n(77571),Qs=n(43263);const Js=12,Xs=e=>{let{count:t=Js,userId:n}=e;return(e,r)=>{return o=void 0,i=void 0,l=function*(){const o=(0,je.WO)(r());if(!n||!o)return;const i=yield(0,Qs.W2)({count:t});e({type:B.ET,payload:{outgoingFriends:i.data,total:i.total,userId:n}})},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{s(l.next(e))}catch(e){t(e)}}function r(e){try{s(l.throw(e))}catch(e){t(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}s((l=l.apply(o,i||[])).next())}));var o,i,a,l}};var Ks=n(10713),ec=n(62051),tc=n(51801);const nc=e=>e.newProfile.friends,rc=(0,er.P1)([nc,Ce.LD],((e,t)=>e.friends?e.friends[t]:[])),oc=(0,er.P1)([nc,Ce.LD],((e,t)=>e.friendsTotal?e.friendsTotal[t]:0)),ic=(0,er.P1)([nc,Ce.LD],((e,t)=>e.mutualFriends&&e.mutualFriends[t]||[])),ac=(0,er.P1)([nc,Ce.LD],((e,t)=>e.mutualFriendsTotal?e.mutualFriendsTotal[t]:0)),lc=(0,er.P1)([nc],(e=>e.suggestedFriends?e.suggestedFriends:[])),sc=(0,er.P1)([lc],(e=>e.length)),cc=(0,er.P1)([nc,Ce.LD],((e,t)=>e.outgoingRequests&&e.outgoingRequests[t]||[])),dc=(0,er.P1)([nc,Ce.LD],((e,t)=>e.outgoingRequestsTotal?e.outgoingRequestsTotal[t]:0));const uc=e=>{let{friendId:t}=e;return e=>{return n=void 0,r=void 0,i=function*(){yield(e=>{let{userId:t}=e;return(0,Lt.Z)(`user/me/friends/suggested/block/${t}/`,{method:"POST"})})({userId:t}),e({type:B.h9,payload:{friendId:t}})},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function l(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,l)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i}},mc="default",fc="declined",pc="requested";var gc=e=>i.createElement("svg",{className:e.className,xmlns:"http://www.w3.org/2000/svg",width:"29",height:"29",viewBox:"0 0 29 29"},i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("rect",{width:"29",height:"29",fill:"#FFF",rx:"14.5"}),i.createElement("path",{fill:"#1877F2",d:"M27 14.5C27 7.596 21.404 2 14.5 2S2 7.596 2 14.5c0 6.24 4.571 11.41 10.547 12.348v-8.735H9.373V14.5h3.174v-2.754c0-3.133 1.866-4.863 4.721-4.863 1.368 0 2.798.244 2.798.244v3.076H18.49c-1.553 0-2.037.964-2.037 1.952V14.5h3.467l-.554 3.613h-2.913v8.735C22.43 25.91 27 20.74 27 14.5"})));const hc=Me.ZP.button.withConfig({displayName:"UserTitleCardstyled__Remove",componentId:"sc-1m67gtx-0"})(["position:absolute;right:0.25rem;top:0.25rem;border:none;height:1.25rem;width:1.25rem;background:transparent;opacity:0;visibility:hidden;transition:all 0.3s ease;z-index:3;cursor:pointer;& svg{height:auto;width:100%;}"]),vc=Me.ZP.div.withConfig({displayName:"UserTitleCardstyled__SocialIconWrapper",componentId:"sc-1m67gtx-1"})(["display:flex;align-items:center;justify-content:center;border-radius:50%;position:absolute;left:0.25rem;top:0.25rem;height:1.25rem;width:1.25rem;box-shadow:0 0.1rem 0.25rem -0.1rem rgba(0,0,0,0.3);z-index:3;& svg{height:auto;width:100%;}"]),yc=Me.ZP.div.withConfig({displayName:"UserTitleCardstyled__Backdrop",componentId:"sc-1m67gtx-2"})(["position:absolute;top:0;left:0;z-index:1;background-color:#fff;width:100%;height:100%;border-radius:0.3rem;transition:all 0.3s ease;"]),bc=Me.ZP.span.withConfig({displayName:"UserTitleCardstyled__RequestResult",componentId:"sc-1m67gtx-3"})(["font-size:0.8rem;font-weight:500;line-height:1.25rem;text-align:center;cursor:default;"]),wc=Me.ZP.div.withConfig({displayName:"UserTitleCardstyled__Wrapper",componentId:"sc-1m67gtx-4"})(["position:relative;width:100%;max-width:8rem;height:9.5rem;margin:0 auto;"," "," "," &:hover{","{opacity:0.7;visibility:visible;&:hover{opacity:1;}}","{transform:scale(1.03);box-shadow:0 0.5rem 1rem -0.5rem rgba(0,0,0,0.3);}}"],(e=>e.status===mc&&(0,Me.iv)(["","{border:1px solid #e6e6e5;}"],yc)),(e=>e.status===pc&&(0,Me.iv)(["","{border:1px solid rgba(0,122,255,0.5);}","{color:#007aff;}"],yc,bc)),(e=>e.status===fc&&(0,Me.iv)(["","{border:1px solid rgba(208,46,45,0.5);}","{color:#d02e2d;}"],yc,bc)),hc,yc),Ec=Me.ZP.div.withConfig({displayName:"UserTitleCardstyled__Content",componentId:"sc-1m67gtx-5"})(["display:flex;flex-direction:column;align-items:center;padding:0.75rem 0.5rem 0.5rem;position:relative;z-index:2;height:100%;& button{position:relative;overflow:hidden;margin:auto 0 0;& span{position:relative;z-index:2;}&::before{content:'';position:absolute;left:0;top:0;z-index:1;width:100%;height:100%;background-image:linear-gradient(to bottom,#5b8fe5,#4779cb);opacity:0;}&:hover{color:#fff;&::before{opacity:1;}}}"]),xc=(0,Me.ZP)(wt.Z).withConfig({displayName:"UserTitleCardstyled__Avatar",componentId:"sc-1m67gtx-6"})(["width:4.5rem;height:4.5rem;border-radius:50%;overflow:hidden;margin-bottom:0.75rem;background:#eaeaea;"]),Cc=Me.ZP.img.withConfig({displayName:"UserTitleCardstyled__Picture",componentId:"sc-1m67gtx-7"})(["width:100%;max-height:4.5rem;height:100%;object-fit:cover;"]),Pc=(0,Me.ZP)(wt.Z).withConfig({displayName:"UserTitleCardstyled__Name",componentId:"sc-1m67gtx-8"})(["font-size:0.8rem;font-weight:500;line-height:1rem;text-align:center;color:#2d2d30;margin-bottom:0.5rem;cursor:pointer;height:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;&:hover{color:#2d2d30;}"]);var _c=e=>{let{status:t,userId:n,nickName:r,avatar:l,isFacebook:s,requestSuggestedFriendship:c,cancelSuggestedFriend:d}=e;const u=(0,Ae.Z)(Te.U.Profile),m=function(e){return Ee(),`${be}${e}/`}(n),f=(0,a.useSelector)(o.globalsSelector,a.shallowEqual),p=f&&f.system.defaultAvatar,g=()=>{c()};return i.createElement(wc,{status:t},i.createElement(yc,null),s?i.createElement(vc,null,i.createElement(gc,null)):null,t===mc?i.createElement(hc,Object.assign({onClick:()=>{d()}},bt.A("profile.suggested.friends.carousel.decline")),i.createElement(Hn.Z,null)):null,i.createElement(Ec,null,i.createElement(xc,Object.assign({href:m},bt.A("profile.suggested.friends.carousel.avatar")),i.createElement(Cc,{src:l,onError:e=>{e.target.onerror=null,e.target.src=p}})),i.createElement(Pc,Object.assign({href:m},bt.A("profile.suggested.friends.carousel.name")),r),(e=>{switch(e){case pc:return i.createElement(bc,null,u.strings.suggestedFriendRequested);case fc:return i.createElement(bc,null,u.strings.suggestedFriendDeclined);default:return i.createElement(Pr.ZP,Object.assign({isNoBoxShadow:!0,size:It.Ph.small,color:It.Tt.defaultNormal,fluid:!0,onClick:g},bt.A("profile.suggested.friends.carousel.addFriend")),i.createElement("span",null,u.strings.addFriend))}})(t)))},Oc=e=>{let{friend:t}=e;const n=(0,fe.T)(),r=(0,Ae.Z)(Te.U.Profile),o=(0,a.useSelector)(je.dY),l=i.useMemo((()=>t.requested?pc:t.cancelled?fc:mc),[t]);return i.createElement(_c,{status:l,nickName:t.firstName,avatar:t.avatar,userId:t.id,requestSuggestedFriendship:()=>{return e=void 0,i=void 0,l=function*(){try{yield n(Pn({friendId:t.id})),yield n(Xs({userId:o})),n((0,At.c)({type:Tt.H_,message:r.strings.notificationFriendRequestSent}))}catch(e){n((0,At.c)({type:Tt.pn,message:e.errors[0].message}))}},new((a=void 0)||(a=Promise))((function(t,n){function r(e){try{s(l.next(e))}catch(e){n(e)}}function o(e){try{s(l.throw(e))}catch(e){n(e)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof a?n:new a((function(e){e(n)}))).then(r,o)}s((l=l.apply(e,i||[])).next())}));var e,i,a,l},cancelSuggestedFriend:()=>{t.requested||n(uc({friendId:t.id}))},isFacebook:t.isFacebook})};const kc=Me.ZP.div.withConfig({displayName:"SuggestedFriendsCarouselstyled__Wrapper",componentId:"sc-blma08-0"})(["padding:1rem 0 0.5rem;width:950px;margin:0 auto;position:relative;& .swiper-wrapper{padding-bottom:0;}& .swiper-pointer-events{position:static;}& .swiper-container{padding:0.5rem 15px 1rem;position:static;}& .swiper-pagination{display:none;}& .swiper-container-free-mode{& > .swiper-wrapper{padding-bottom:0;}}& .swiper-button-prev,& .swiper-button-next{display:flex;justify-content:center;align-items:center;width:1.25rem;height:2rem;z-index:1;border:none;box-shadow:none;border-radius:0.2rem;background-image:none;background-color:transparent;transition:background-color 0.25s ease;top:50%;&:hover{background-color:rgba(0,0,0,0.04);}&::before{content:'';display:block;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:contain;}&::after{content:none;}}& .swiper-button-prev{left:-2.25rem;&::before{transform:rotate(180deg);background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE2LjcxMiAxMy4xNDRsLTYuMDM0IDUuNTlhMS4wMzggMS4wMzggMCAwIDEtMS4zOSAwIC44NjQuODY0IDAgMCAxIDAtMS4yODhsNC43Mi00Ljk0Ni00LjcyLTQuOTQ2YS44NjQuODY0IDAgMCAxIDAtMS4yODcgMS4wMzkgMS4wMzkgMCAwIDEgMS4zOSAwbDYuMDM0IDUuNTljLjE5Mi4xNzcuMjg4LjQxLjI4OC42NDNhLjg3NS44NzUgMCAwIDEtLjI4OC42NDR6IiBmaWxsPSIjNGU0OTY0Ii8+PC9zdmc+);}}& .swiper-button-next{right:-2.25rem;&::before{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE2LjcxMiAxMy4xNDRsLTYuMDM0IDUuNTlhMS4wMzggMS4wMzggMCAwIDEtMS4zOSAwIC44NjQuODY0IDAgMCAxIDAtMS4yODhsNC43Mi00Ljk0Ni00LjcyLTQuOTQ2YS44NjQuODY0IDAgMCAxIDAtMS4yODcgMS4wMzkgMS4wMzkgMCAwIDEgMS4zOSAwbDYuMDM0IDUuNTljLjE5Mi4xNzcuMjg4LjQxLjI4OC42NDNhLjg3NS44NzUgMCAwIDEtLjI4OC42NDR6IiBmaWxsPSIjNGU0OTY0Ii8+PC9zdmc+);}}"]);ec.ZP.use([ec.W_]);var Sc=()=>{const e=(0,fe.T)(),t=(0,a.useSelector)(je.dY),n=(0,a.useSelector)(lc,a.shallowEqual);return i.useEffect((()=>{(0,Ks.Z)({url:"https://cdnjs.cloudflare.com/ajax/libs/Swiper/7.2.0/swiper-bundle.css",name:"swiper"}),e((e=>{return t=void 0,n=void 0,o=function*(){const{data:t}=yield Dt({offset:0,count:10});e({type:B.W5,payload:t})},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,l)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o}))}),[e,t]),n&&n.length?i.createElement(kc,null,i.createElement(tc.t,{slidesPerView:4,slidesPerGroup:4,spaceBetween:30,slidesOffsetBefore:0,slidesOffsetAfter:0,threshold:5,loop:!1,watchOverflow:!1,navigation:{prevEl:".swiper-button-prev",nextEl:".swiper-button-next"},breakpoints:{1160:{slidesPerView:5,slidesPerGroup:5}},onReachEnd:()=>{e(((e,t)=>{return n=void 0,r=void 0,i=function*(){const n=sc(t()),{data:r}=yield Dt({offset:n,count:5});e({type:B.sk,payload:r})},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{s(i.next(e))}catch(e){t(e)}}function l(e){try{s(i.throw(e))}catch(e){t(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,l)}s((i=i.apply(n,r||[])).next())}));var n,r,o,i}))}},n.map((e=>i.createElement(tc.o,{key:e.id},i.createElement(Oc,{friend:e,key:e.id})))),i.createElement("div",{className:"swiper-button-prev"}),i.createElement("div",{className:"swiper-button-next"}))):null};const Ic=e=>e.newProfile.friendsSearch,jc=(0,er.P1)([Ic],(e=>e.isEnabled)),Nc=(0,er.P1)([Ic],(e=>e.searchRequest)),Mc=(0,er.P1)([Ic],(e=>e.searchResults)),Zc=(0,er.P1)([Ic],(e=>e.isLoading));const Ac=e=>{let{userId:t,offset:n}=e;return(e,r)=>{return o=void 0,i=void 0,l=function*(){const o=rc(r()),i=oc(r());if(!o.length||n>=i)return;const{data:a,total:l}=yield(0,Pe.$J)({userId:t,offset:n,count:10});e({type:B.aA,payload:{friends:a,userId:t,total:l}})},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{s(l.next(e))}catch(e){t(e)}}function r(e){try{s(l.throw(e))}catch(e){t(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}s((l=l.apply(o,i||[])).next())}));var o,i,a,l}},Tc=e=>i.createElement("svg",Object.assign({width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},e),i.createElement("path",{d:"M1.034 18.83c.728-1.477 1.536-3.507 1.495-4.92C1.548 12.701 1 10.304 1 8.72 1 4.254 5.247 1 10 1c4.724 0 9 3.23 9 7.721 0 4.047-2.009 8.643-11.484 7.885-1.172 1.434-4.074 2.224-6.482 2.224z",fill:"#fff",fillRule:"nonzero"})),Rc=(0,Me.ZP)(Pr.ZP).attrs({color:It.Tt.secondary,type:"button"}).withConfig({displayName:"ChatButton__ChatButtonElement",componentId:"sc-16i42v6-0"})(["border-radius:50%;padding:0;width:40px;height:40px;min-width:0;& svg{opacity:0.9;transition:opacity 0.15s ease;}&:hover{& svg{opacity:1;}}"]);var zc=e=>{let{onClick:t}=e;return i.createElement(Rc,Object.assign({},bt.A("newProfile.chatButton")),i.createElement(Tc,{onClick:t}))},Lc=n(50308),Dc=n.n(Lc);const Fc=(0,Me.iv)(["border-radius:50%;overflow:hidden;display:block;flex:0 0 auto;"]),Bc=Me.ZP.div.withConfig({displayName:"Avatarstyledtsx__Avatar",componentId:"sc-119dso-0"})(["",";border:0.15rem solid #d7d8d8;width:3.5rem;height:3.5rem;"],Fc),Uc=Me.ZP.img.withConfig({displayName:"Avatarstyledtsx__Image",componentId:"sc-119dso-1"})(["width:100%;height:100%;display:block;object-fit:cover;"]);const qc=(0,Me.ZP)(Pr.ZP).withConfig({displayName:"UserCardstyled__RoundedActionButton",componentId:"sc-1lmdoix-0"})(["border-radius:50%;margin-left:0.5rem;padding:0;width:2rem;"," ",""],(e=>"default"===e.color&&(0,Me.iv)(["& svg{opacity:0.9;transition:opacity 0.15s ease;}&:hover{background-color:",";& svg{opacity:1;}}"],e.theme.color.gray)),(e=>"secondary"===e.color&&(0,Me.iv)(["& svg{opacity:0.9;transition:opacity 0.15s ease;}&:hover{& svg{opacity:1;}}"]))),$c=(0,Me.ZP)(Pr.ZP).withConfig({displayName:"UserCardstyled__MenuButton",componentId:"sc-1lmdoix-1"})(["padding:0;line-height:1.5rem;min-height:1.5rem;min-width:1.5rem;& svg{opacity:0.35;}"]),Hc=Me.ZP.div.withConfig({displayName:"UserCardstyled__Wrapper",componentId:"sc-1lmdoix-2"})(["display:flex;width:100%;align-items:center;padding-right:0.75rem;min-width:17.25rem;position:relative;border-radius:0.3rem;box-shadow:0 0.1rem 0.4rem -0.2rem rgba(0,0,0,0.3);background-color:#fff;transition:0.1s ease;","{opacity:0;transition:opacity 0.15s ease;}&:focus,&:active{box-shadow:0 0.25rem 0.5rem -0.25rem rgba(0,0,0,0.3);}&:hover{box-shadow:0 0.25rem 0.75rem -0.3rem rgba(0,0,0,0.2);","{opacity:1;}","{& svg{opacity:0.5;}&:hover{& svg{opacity:0.8;}}}}"],Rc,Rc,$c),Vc=Me.ZP.div.withConfig({displayName:"UserCardstyled__UserMenu",componentId:"sc-1lmdoix-3"})(["display:flex;align-items:center;justify-content:center;margin-left:0.25rem;","{top:3.75rem;right:-0.25rem;}"],gn),Wc=Me.ZP.div.withConfig({displayName:"UserCardstyled__Content",componentId:"sc-1lmdoix-4"})(["display:flex;flex-direction:column;align-items:flex-start;overflow:hidden;flex:1;"]),Gc=(0,Me.ZP)(wt.Z).withConfig({displayName:"UserCardstyled__ContentLink",componentId:"sc-1lmdoix-5"})(["display:flex;flex-direction:column;align-items:flex-start;overflow:hidden;flex:1;"]),Yc=(0,Me.ZP)((e=>{var{img:t,onError:n}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{userId:t,children:n,avatar:r,nickName:o,additionalControls:a=null,onClickProfileLink:l=Dc(),onAvatarError:s=Dc()}=e;const c=we(t.toString(),ue.Info),d=e=>{l(e),(0,Zi.pushState)(c)};return i.createElement(Hc,null,i.createElement(ed,Object.assign({onClick:d},bt.A("newProfile.friendCard.avatar")),r?i.createElement(Yc,{img:{src:r,alt:o},onError:s}):i.createElement(Qc,null)),a?i.createElement(Wc,null,i.createElement(td,Object.assign({href:c,onClick:d},bt.A("newProfile.friendCard.nickName")),i.createElement(Jc,null,o)),a):i.createElement(Gc,Object.assign({href:c,onClick:d},bt.A("newProfile.friendCard.nickName")),i.createElement(Xc,null,o)),n)};nd.RoundedActionButton=qc,nd.UserMenu=Vc,nd.MenuButton=$c,nd.Controls=Kc;var rd=nd,od=e=>{let{friend:t,onClickProfileLink:n,isHideUnfriendAction:r=!1}=e;const o=(0,a.useSelector)(je.dY),l=(0,a.useSelector)(je.WO),s=i.useMemo((()=>o===t.id),[t.id,o]),{handleOpenChat:c,friendCardActions:d}=((e,t)=>{const n=(0,Ae.Z)(Te.U.Profile),r=(0,fe.T)(),o=(0,a.useSelector)(Ce.LD),l=we(e.toString(),ue.Info),{openReportModal:s}=Mn(e),c=i.useCallback((()=>{r((0,On.Wb)({userId:e}))}),[r,e]),d=i.useCallback((()=>{(0,Zi.pushState)(l)}),[l]),u=i.useCallback((()=>{return t=void 0,i=void 0,l=function*(){e&&(r(qt(e)),r((0,At.c)({type:Tt.H_,message:n.strings.notificationFriendRemove})),yield r((0,Bt.m)({userId:o})))},new((a=void 0)||(a=Promise))((function(e,n){function r(e){try{s(l.next(e))}catch(e){n(e)}}function o(e){try{s(l.throw(e))}catch(e){n(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof a?n:new a((function(e){e(n)}))).then(r,o)}s((l=l.apply(t,i||[])).next())}));var t,i,a,l}),[e,r,n.strings.notificationFriendRemove,o]),m=i.useMemo((()=>{const e=[{label:n.strings.message,qaLabel:"message",action:c},{label:n.strings.profile,qaLabel:"profile",action:d},{label:n.strings.report,qaLabel:"report",action:s}];return t&&e.push({label:n.strings.unfriend,qaLabel:"unfriend",action:u}),e}),[d,c,u,t,s,n.strings.message,n.strings.profile,n.strings.report,n.strings.unfriend]);return{friendCardActions:m,handleOpenChat:c}})(t.id,t.isYourFriend);return i.createElement(rd,{avatar:t.avatar,userId:t.id,nickName:t.firstName,onClickProfileLink:n},!s&&l?i.createElement(zc,{onClick:c}):null,s||!l||r?null:i.createElement(Un,{actions:d,name:"FriendCard",marginLeft:"0.25rem"}))};const id=Me.ZP.div.withConfig({displayName:"EmptyMessagestyled__EmptyMessageElement",componentId:"sc-4gu7xu-0"})(["display:flex;justify-content:center;align-items:center;max-width:32rem;width:100%;margin:1.25rem auto 0;background:#fff;border-radius:0.2rem;padding:1.25rem 1.5rem;"]),ad=Me.ZP.h2.withConfig({displayName:"EmptyMessagestyled__Message",componentId:"sc-4gu7xu-1"})(["margin:0;color:#2d2d30;line-height:1.25rem;font-size:1.1rem;opacity:0.8;"]);var ld=e=>{var{children:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o div{width:calc(50% - 10px);margin-bottom:10px;}"],(e=>e.centerContent?"center":"space-between")),md=Me.ZP.h3.withConfig({displayName:"Friendsstyled__SectionTitle",componentId:"sc-f9gdpx-4"})(["color:#2d2d30;line-height:1rem;font-size:0.8rem;margin:0 0 0.5rem;opacity:0.8;"]);var fd=n(25701),pd=e=>{let{children:t,loadMoreAction:n,loadMoreOffset:r,centerContent:o=!1}=e;const{onLoadMoreVisible:l}=(e=>{let{action:t,offset:n}=e;const r=(0,fe.T)(),o=(0,a.useSelector)(Ce.LD);return{onLoadMoreVisible:()=>{r(t({userId:o,offset:n}))}}})({action:n,offset:r});return i.createElement(ud,{centerContent:o},t,i.createElement(fd.Z,{partialVisibility:!0,onChange:e=>{return t=void 0,n=void 0,o=function*(){e&&l()},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,l)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o}},i.createElement(Li,{height:1})))},gd=()=>{const e=(0,ir.C)(rc,a.shallowEqual),t=(()=>{const e=(0,Ae.Z)(Te.U.Profile),t=(0,a.useSelector)(Ce.LD),n=(0,a.useSelector)(Ce.DY,a.shallowEqual)[t],r=(0,a.useSelector)(Ce._$),o=(0,a.useSelector)(rc,a.shallowEqual);return i.useMemo((()=>r?e.strings.newProfilePrivateFriendsEmpty:n.friendsCount>0&&o&&0===o.length?e.strings.profileFriendsPrivacyRestricted:e.strings.newProfilePublicFriendsEmpty),[o,r,n.friendsCount,e.strings.newProfilePrivateFriendsEmpty,e.strings.newProfilePublicFriendsEmpty,e.strings.profileFriendsPrivacyRestricted])})(),n=e&&e.length;return i.createElement(pd,{loadMoreAction:Ac,loadMoreOffset:e.length,centerContent:!n},n?i.createElement(i.Fragment,null,e.map((e=>i.createElement(od,{key:e.id,friend:e})))):i.createElement(ld,Object.assign({},bt.A("newProfile.friends.allFriends.emptyMessage")),t))},hd=n(5810),vd=n(6232),yd=n(20818);const bd=e=>{let{userId:t,offset:n}=e;return(e,r)=>{return o=void 0,i=void 0,l=function*(){const o=(0,hd.l3)(r()),i=(0,hd.hD)(r());if(!o.length||n>=i)return;const{data:a,total:l}=yield(0,Qs._e)({offset:n,count:10});e({type:yd.FU,payload:{incomingFriends:a,userId:t,total:l}})},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{s(l.next(e))}catch(e){t(e)}}function r(e){try{s(l.throw(e))}catch(e){t(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}s((l=l.apply(o,i||[])).next())}));var o,i,a,l}},wd=Me.ZP.div.withConfig({displayName:"IncomingFriendCardButtonsstyled__ButtonsWrapper",componentId:"sc-mi5f4u-0"})(["display:flex;align-items:center;margin-top:10px;button{&:first-child{margin-right:10px;}}"]);var Ed=e=>{let{accept:t,decline:n}=e;const r=(0,Ae.Z)(Te.U.Profile);return i.createElement(wd,null,i.createElement(Pr.ZP,Object.assign({type:"button",color:It.Tt.secondary,size:It.Ph.extraSmall,isNoBoxShadow:!0,onClick:t},bt.A("newProfile.friends.incoming.accept")),r.strings.accept),i.createElement(Pr.ZP,Object.assign({type:"button",color:It.Tt.defaultNormal,size:It.Ph.extraSmall,isNoBoxShadow:!0,onClick:n},bt.A("newProfile.friends.incoming.decline")),r.strings.decline))};const xd=Me.ZP.span.withConfig({displayName:"IncomingFriendCardstyled__AcceptedLabel",componentId:"sc-5oep94-0"})(["font-size:0.8rem;font-weight:500;line-height:1.25rem;text-align:center;cursor:default;color:#007aff;"]),Cd=Me.ZP.span.withConfig({displayName:"IncomingFriendCardstyled__DeclinedLabel",componentId:"sc-5oep94-1"})(["font-size:0.8rem;font-weight:500;line-height:1.25rem;text-align:center;cursor:default;color:#d02e2d;"]);var Pd=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},_d=e=>{let{incomingFriend:t,onClickProfileLink:n,isHideUnfriendAction:r=!1}=e;const o=(0,Ae.Z)(Te.U.Profile),l=(0,fe.T)(),s=(0,a.useSelector)(je.dY),c=i.useMemo((()=>s===t.id),[t.id,s]),{actions:d}=(e=>{const t=(0,Ae.Z)(Te.U.Profile),n=we(e.toString(),ue.Info),{openReportModal:r}=Mn(e),o=i.useCallback((()=>{(0,Zi.pushState)(n)}),[n]);return{actions:[{label:t.strings.profile,qaLabel:"profile",action:o},{label:t.strings.report,qaLabel:"report",action:r}]}})(t.id),u=i.useCallback((()=>Pd(void 0,void 0,void 0,(function*(){try{yield l((0,vn.A)({userId:s,friendId:t.id})),setTimeout((()=>{l((0,Bt.m)({userId:s})),l((0,vd.i)({userId:s}))}),zi.qY)}catch(e){l((0,At.c)({type:Tt.pn,message:e.errors[0].message}))}}))),[l,t.id,s]),m=i.useCallback((()=>Pd(void 0,void 0,void 0,(function*(){yield l((0,yn.D)({userId:s,friendId:t.id})),setTimeout((()=>{l((0,vd.i)({userId:s}))}),zi.qY)}))),[l,t.id,s]),f=i.useMemo((()=>t.accepted?i.createElement(xd,null,o.strings.incomingRequestAccepted):t.declined?i.createElement(Cd,null,o.strings.incomingRequestDeclined):i.createElement(Ed,{accept:u,decline:m})),[t.accepted,t.declined,u,m,o.strings.incomingRequestAccepted,o.strings.incomingRequestDeclined]);return i.createElement(rd,{avatar:t.avatar,userId:t.id,nickName:t.firstName,onClickProfileLink:n,additionalControls:f},c||r?null:i.createElement(Un,{actions:d,name:"IncomingFriendCard",marginLeft:"0.25rem"}))};function Od(e,t){(0,i.useEffect)((()=>{if(e){const e=we(t.toString(),ue.Friends);(0,Zi.pushState)(e)}}),[e,t])}var kd=()=>{const e=(0,fe.T)(),t=(0,a.useSelector)(Ce.LD),n=(0,a.useSelector)(hd.hD),r=(0,ir.C)(hd.l3,a.shallowEqual),o=(0,a.useSelector)(Ce._$),l=r&&r.length;return Od(!n||!o,t),i.useEffect((()=>{e((0,vd.i)({userId:t}))}),[e,t]),i.createElement(pd,{loadMoreAction:bd,loadMoreOffset:r.length},l&&r.map((e=>e.id?i.createElement(_d,{key:e.id+e.date,incomingFriend:e}):null)))},Sd=e=>{var{width:t=15,height:n=15}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o({type:G,payload:e}),jd=e=>({type:W,payload:e});const Nd=e=>({type:H,payload:e}),Md=e=>({type:V,payload:e});const Zd=Me.ZP.div.withConfig({displayName:"SearchMessagestyled__Wrapper",componentId:"sc-fo8l9x-0"})(["display:flex;flex-direction:column;align-items:center;justify-content:flex-start;margin:4rem auto 0;max-width:25rem;width:100%;text-align:center;"]),Ad=Me.ZP.div.withConfig({displayName:"SearchMessagestyled__IconWrapper",componentId:"sc-fo8l9x-1"})(["display:flex;align-items:center;justify-content:center;margin:0 0 1rem;width:2.4rem;height:auto;& svg{width:36px;height:auto;}"]),Td=Me.ZP.h2.withConfig({displayName:"SearchMessagestyled__Title",componentId:"sc-fo8l9x-2"})(["color:#2d2d30;line-height:1.25rem;font-size:1.1rem;margin:0 0 0.5rem;opacity:0.8;"]),Rd=(0,Me.ZP)(Fi.Z).withConfig({displayName:"SearchMessagestyled__Description",componentId:"sc-fo8l9x-3"})(["display:block;& p{color:#2d2d30;line-height:1.25rem;font-size:0.9rem;margin:0 0 1rem;opacity:0.75;}& a{display:inline-block;font-size:0.9rem;font-weight:500;line-height:1rem;color:#007aff;text-decoration:none;opacity:0.9;&:hover{color:#57a5ff;}}"]);var zd=e=>{let{icon:t,title:n,description:r}=e;return i.createElement(Zd,null,t?i.createElement(Ad,null,i.createElement(t,{width:"36",height:"36"})):null,i.createElement(Td,null,n),r&&i.createElement(Rd,{tagName:"div",html:r}))},Ld=e=>{var{width:t=40,height:n=48}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe.opacity||1)),Ud=Me.ZP.div.withConfig({displayName:"BlankFriendCardstyled__Line",componentId:"sc-1m989w3-2"})(["position:relative;display:block;height:2rem;width:7.25rem;margin-left:0.75rem;&::before{content:'';position:absolute;left:0;display:block;height:0.6rem;border-radius:0.65rem;}&::before{background-color:#ebebeb;width:7.25rem;top:50%;transform:translateY(-50%);}"]);var qd=e=>i.createElement(Bd,{opacity:e.opacity},i.createElement(Fd,null),i.createElement(Ud,null)),$d=()=>i.createElement(So.Z,{cols:2,indents:.5},i.createElement(jo,null,i.createElement(qd,null)),i.createElement(jo,null,i.createElement(qd,null)),i.createElement(jo,null,i.createElement(qd,{opacity:.8})),i.createElement(jo,null,i.createElement(qd,{opacity:.8})),i.createElement(jo,null,i.createElement(qd,{opacity:.6})),i.createElement(jo,null,i.createElement(qd,{opacity:.6})),i.createElement(jo,null,i.createElement(qd,{opacity:.4})),i.createElement(jo,null,i.createElement(qd,{opacity:.4})),i.createElement(jo,null,i.createElement(qd,{opacity:.2})),i.createElement(jo,null,i.createElement(qd,{opacity:.2}))),Hd=()=>{const e=(0,Ae.Z)(Te.U.Profile),t=(0,ir.C)(Mc,a.shallowEqual),n=(0,a.useSelector)(Zc);return!n&&(0,F.xb)(t)?i.createElement(zd,{icon:Ld,title:e.strings.searchNoResultsMessageBoxTitle,description:e.strings.searchMessageBoxDescription}):n&&(0,F.xb)(t)?i.createElement(i.Fragment,null,i.createElement(md,null,e.strings.searchResultsSectionTitle),i.createElement($d,null)):i.createElement(i.Fragment,null,i.createElement(md,null,e.strings.searchResultsSectionTitle),i.createElement(ud,null,t.map((e=>i.createElement(od,{key:e.id,friend:e})))))},Vd=()=>{const e=(0,fe.T)(),t=(0,Ae.Z)(Te.U.Profile),n=(0,a.useSelector)(Nc),r=(0,a.useSelector)(je.dY),o=!n.trim(),l=i.useMemo((()=>(0,F.Ds)((()=>{e((e=>{let{userId:t}=e;return(e,n)=>{return r=void 0,o=void 0,a=function*(){const r=Nc(n()).trim();if(!r)return;const{data:o}=yield(0,Pe.$J)({userId:t,filter:r});e(jd(o)),e(Id(!1))},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{s(a.next(e))}catch(e){t(e)}}function l(e){try{s(a.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,l)}s((a=a.apply(r,o||[])).next())}));var r,o,i,a}})({userId:r}))}),1e3)),[e,r]);return i.useEffect((()=>{n.trim()&&(e(jd([])),e(Id(!0)),l())}),[e,l,n]),i.useEffect((()=>()=>{e((e=>{return t=void 0,n=void 0,o=function*(){e(Nd(!1)),e(Md("")),e(jd([]))},new((r=void 0)||(r=Promise))((function(e,i){function a(e){try{s(o.next(e))}catch(e){i(e)}}function l(e){try{s(o.throw(e))}catch(e){i(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,l)}s((o=o.apply(t,n||[])).next())}));var t,n,r,o}))}),[e]),o?i.createElement(Ni,{paddLeft:1.75,paddRight:1.75},i.createElement(ki,null,i.createElement(zd,{icon:Sd,title:t.strings.searchEmptyMessageBoxTitle,description:t.strings.searchEmptyMessageBoxDescription}))):i.createElement(Hd,null)};const Wd=e=>{let{offset:t}=e;return(e,n)=>{return r=void 0,o=void 0,a=function*(){const r=(0,Ce.LD)(n()),o=ic(n()),i=ac(n());if(!o.length||t>=i)return;const a=yield(0,Pe.C0)({userId:r,offset:0,count:10});e({type:B.zw,payload:{mutualFriends:a.data,total:a.total,userId:r}})},new((i=void 0)||(i=Promise))((function(e,t){function n(e){try{s(a.next(e))}catch(e){t(e)}}function l(e){try{s(a.throw(e))}catch(e){t(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof i?r:new i((function(e){e(r)}))).then(n,l)}s((a=a.apply(r,o||[])).next())}));var r,o,i,a}};var Gd=()=>{const e=(0,ir.C)(ic,a.shallowEqual),t=(0,a.useSelector)(ac),n=(0,a.useSelector)(Ce.LD),r=e&&e.length;return Od(!t,n),i.createElement(pd,{loadMoreAction:Wd,loadMoreOffset:e.length},r&&e.map((e=>e.id?i.createElement(od,{key:`mutualFriend-${e.id}`,friend:e}):null)))};const Yd=e=>{let{userId:t,offset:n}=e;return(e,r)=>{return o=void 0,i=void 0,l=function*(){const o=cc(r()),i=dc(r());if(!o.length||n>=i)return;const{data:a,total:l}=yield(0,Qs.W2)({offset:n,count:10});e({type:B.qw,payload:{outgoingFriends:a,userId:t,total:l}})},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{s(l.next(e))}catch(e){t(e)}}function r(e){try{s(l.throw(e))}catch(e){t(e)}}function s(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,r)}s((l=l.apply(o,i||[])).next())}));var o,i,a,l}};var Qd=()=>{const e=(0,i.useRef)(`userArrow-${window.performance.now()}`),t=(0,i.useRef)(`userArrow-${window.performance.now()}-1`);return i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",version:"1.1",viewBox:"0 0 20 20"},i.createElement("defs",null,i.createElement("linearGradient",{id:`${e.current}`,x1:"3.3956%",x2:"86.0972%",y1:"-57.1828%",y2:"238.199%"},i.createElement("stop",{offset:"0%",stopColor:"#A3A0AD"}),i.createElement("stop",{offset:"100%",stopColor:"#4E4964"})),i.createElement("linearGradient",{id:`${t.current}`,x1:".5758%",x2:"88.2813%",y1:"-57.1828%",y2:"238.199%"},i.createElement("stop",{offset:"0%",stopColor:"#A3A0AD"}),i.createElement("stop",{offset:"100%",stopColor:"#4E4964"}))),i.createElement("g",{fill:"none",fillRule:"nonzero",stroke:"none",strokeWidth:"1"},i.createElement("path",{fill:`url(#${e.current})`,d:"M7.204 10.3924C4.8822 10.3924 3 8.5137 3 6.1962S4.8822 2 7.204 2c2.3218 0 4.204 1.8787 4.204 4.1962s-1.8822 4.1962-4.204 4.1962zM5.174 19H2.5877a3.1726 3.1726 0 0 1-1.1306-.2077c-.4128-.1575-.7127-.3434-.9-.5575-.654-.7483-.9937-2.2311.495-4.131.9925-1.2664 2.675-2.1967 4.122-2.2339 1.447-.037 2.6-.037 4.0962 0 1.4962.0372 3.1296.9675 4.122 2.234 1.4888 1.8998 1.1491 3.3826.495 4.1309-.1872.2141-.4872.4-.9.5575A3.1726 3.1726 0 0 1 11.8569 19H5.174z"}),i.createElement("path",{fill:`url(#${t.current})`,d:"M6.4913 3.2447l.0142.0033H2.4993l1.9035-2.0306c.0932-.0991.1444-.2334.1444-.3744 0-.141-.0512-.2743-.1444-.3736L4.1066.154C4.0135.0548 3.8894 0 3.757 0c-.1324 0-.2566.0544-.3497.1536L.1443 3.6264c-.0935.0995-.1447.232-.1443.373-.0004.1419.0508.2746.1443.374l3.263 3.473c.0931.0991.2172.1536.3497.1536.1324 0 .2565-.0546.3496-.1536l.2962-.3154c.0932-.099.1444-.2311.1444-.372a.5226.5226 0 0 0-.1444-.3652l-1.925-2.042h4.0203c.2727 0 .5019-.2501.5019-.5403v-.446c0-.2902-.236-.5208-.5087-.5208z",transform:"matrix(-1 0 0 1 20 2)"})))};const Jd=Me.ZP.div.withConfig({displayName:"OutgoingFriendCard__UserOutgoingIconWrapper",componentId:"sc-fsish-0"})(["display:flex;align-items:center;justify-content:center;flex-shrink:0;width:2rem;min-height:2rem;margin-left:0.5rem;padding:0px;color:rgb(85,85,87);background-color:rgb(240,240,241);border:none;border-radius:50%;"]);var Xd=e=>{let{outgoingFriend:t,onClickProfileLink:n,isHideUnfriendAction:r}=e;const o=(0,a.useSelector)(je.dY),l=i.useMemo((()=>o===t.id),[t.id,o]),{actions:s,handleOpenChat:c}=(e=>{const t=(0,Ae.Z)(Te.U.Profile),n=(0,fe.T)(),r=(0,a.useSelector)(je.dY),o=we(e.toString(),ue.Info),{openReportModal:l}=Mn(e),s=i.useCallback((()=>{(0,Zi.pushState)(o)}),[o]),c=i.useCallback((()=>{return t=void 0,o=void 0,a=function*(){yield n(wn({friendId:e})),yield n(Xs({userId:r}))},new((i=void 0)||(i=Promise))((function(e,n){function r(e){try{s(a.next(e))}catch(e){n(e)}}function l(e){try{s(a.throw(e))}catch(e){n(e)}}function s(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(r,l)}s((a=a.apply(t,o||[])).next())}));var t,o,i,a}),[n,e,r]),d=i.useCallback((()=>{n((0,On.Wb)({userId:e}))}),[n,e]);return{actions:[{label:t.strings.message,qaLabel:"message",action:d},{label:t.strings.profile,qaLabel:"profile",action:s},{label:t.strings.btnCancelOutgoingRequest,qaLabel:"btnCancelOutgoingRequest",action:c},{label:t.strings.report,qaLabel:"report",action:l}],handleOpenChat:d}})(t.id);return i.createElement(rd,{avatar:t.avatar,userId:t.id,nickName:t.firstName,onClickProfileLink:n},l?null:i.createElement(zc,{onClick:c}),i.createElement(Jd,null,i.createElement(Qd,null)),l||r?null:i.createElement(Un,{actions:s,name:"OutgoingFriendCard",marginLeft:"0.25rem"}))},Kd=()=>{const e=(0,fe.T)(),t=(0,a.useSelector)(Ce.LD),n=(0,ir.C)(cc,a.shallowEqual),r=(0,a.useSelector)(dc),o=n&&n.length,l=(0,a.useSelector)(Ce._$);return Od(!r||!l,t),i.useEffect((()=>{e(Xs({userId:t}))}),[e,t]),i.createElement(pd,{loadMoreAction:Yd,loadMoreOffset:n.length},o&&n.map((e=>e.id?i.createElement(Xd,{key:e.id+e.date,outgoingFriend:e}):null)))},eu=()=>{const e=i.useContext(Re);if((0,a.useSelector)(jc))return i.createElement(Vd,null);switch(e.subSectionId){case zi.gL:return i.createElement(kd,null);case zi.cg:return i.createElement(Kd,null);case zi.lv:return i.createElement(Gd,null);default:return i.createElement(gd,null)}},tu=e=>i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20"},e),i.createElement("defs",null,i.createElement("linearGradient",{id:"a",x1:"50%",x2:"50%",y1:"0%",y2:"92.936%"},i.createElement("stop",{offset:"0%",stopColor:"#F3576B"}),i.createElement("stop",{offset:"100%",stopColor:"#DC3F52"}))),i.createElement("path",{d:"M10 3a1 1 0 011 1v5h5a1 1 0 010 2h-5v5a1 1 0 01-2 0v-5H4a1 1 0 010-2h5V4a1 1 0 011-1z",transform:"rotate(-45 10 10)",fill:"url(#a)",fillRule:"evenodd",opacity:".805"}));const nu=Me.ZP.button.withConfig({displayName:"SearchInputstyled__SearchButton",componentId:"sc-gk335s-0"})(["position:absolute;display:inline-flex;justify-content:center;align-items:center;width:1.5rem;height:1.5rem;transition:right 0.3s ease,background-color 0.3s ease;padding:0;border-radius:50%;background-color:transparent;border:none;box-shadow:0 5px 10px -7px rgba(0,0,0,0.2);cursor:pointer;"]),ru=Me.ZP.input.withConfig({displayName:"SearchInputstyled__Input",componentId:"sc-gk335s-1"})(["font-size:0.8rem;line-height:1.5rem;position:relative;display:block;width:calc(1.5rem - 1px);height:1.5rem;transform:translateX(-1px);color:#000;border-radius:0.75rem;background-color:transparent;font-family:inherit;border:none;opacity:0.01;transition:width 0.2s ease,background-color 0.2s ease,opacity 0.2s;&::-webkit-input-placeholder{font-size:0.7rem;}&:focus{&::-webkit-input-placeholder{color:#2d2d30;opacity:0.8;}}"]),ou=Me.ZP.div.withConfig({displayName:"SearchInputstyled__Wrapper",componentId:"sc-gk335s-2"})(["display:flex;justify-content:flex-end;position:relative;min-width:1.5rem;width:100%;"," ",""],(e=>e.isSearchExpanded&&(0,Me.iv)(["overflow:hidden;","{width:335px;padding-right:1.75rem;padding-left:0.75rem;border:1px solid #e6e6e5;background-color:#fff;visibility:visible;opacity:1;}","{right:0.25rem;box-shadow:none;}"],ru,nu)),(e=>!e.isSearchExpanded&&(0,Me.iv)(["","{background-color:#fff;box-shadow:0 0.25rem 0.5rem -0.35rem rgba(0,0,0,0.2);}"],nu)));var iu=e=>{var{onSearchOpen:t,onClear:n,isSearchExpanded:r}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{t&&!r&&t(),a&&a.current&&a.current.focus()}),[t,r]),s=i.useCallback((()=>{a&&a.current&&(n(),a.current.focus())}),[n]),c=i.useMemo((()=>r?i.createElement(nu,{onClick:s},i.createElement(tu,null)):i.createElement(nu,{onClick:l},i.createElement(Sd,null))),[r,s,l]);return i.createElement(ou,Object.assign({isSearchExpanded:r},bt.A("newProfile.friends.searchInputWrapper")),i.createElement(ru,Object.assign({},o,{ref:a,maxLength:30})),c)},au=()=>{const e=(0,fe.T)(),t=(0,a.useSelector)(jc),n=(0,a.useSelector)(Nc);return i.createElement(iu,{isSearchExpanded:t,onSearchOpen:()=>{e(Nd(!0))},onClear:()=>{e(Nd(!1))},onChange:t=>{const n=t.target.value;e(Md(n))},value:n})};const lu=Me.ZP.span.withConfig({displayName:"FriendsTabsstyled__TabsItemCounter",componentId:"sc-bnq93g-0"})(["min-width:30px;height:20px;margin-left:5px;padding:0 8px;border-radius:10px;background-color:",";height:20px;font-size:14px;font-weight:600;line-height:20px;letter-spacing:normal;color:#ffffff;text-align:center;"],(e=>e.isActive?"rgba(104, 104, 106, 0.5)":"rgb(78, 130, 215)"));var su=e=>{let{tab:t}=e;const n=(0,a.useSelector)(Ce._$),r=!!t.isPrivate&&!n,o=!t.count||t.count<1;return t.isMainTab||!r&&!o?i.createElement(wt.Z,Object.assign({href:t.href},bt.A("newProfile.friends.friendsTabs.tabItem",{tabName:t.qaLabel})),i.createElement(xt.Rounded,{title:t.label,active:t.isActive},i.createElement(lu,{isActive:t.isActive},t.count))):null},cu=()=>{const e=(()=>{const e=(0,Ae.Z)(Te.U.Profile),{subSectionId:t}=(0,i.useContext)(Re),n=(0,a.useSelector)(oc),r=(0,a.useSelector)(hd.hD),o=(0,a.useSelector)(ac),l=(0,a.useSelector)(dc),s=Hs(ue.Friends);return(0,i.useMemo)((()=>[{href:s(),label:e.strings.allFriends,isActive:""===t,count:n,isMainTab:!0,qaLabel:"allFriends"},{href:s(zi.gL),label:e.strings.incomingFriendRequests,isActive:t===zi.gL,count:r,isPrivate:!0,qaLabel:"incomingFriendRequests"},{href:s(zi.cg),label:e.strings.outgoingFriendRequests,isActive:t===zi.cg,count:l,isPrivate:!0,qaLabel:"outgoingFriendRequests"},{href:s(zi.lv),label:e.strings.tabMutualFriends,isActive:t===zi.lv,count:o,qaLabel:"tabMutualFriends"}]),[n,s,r,o,l,t,e.strings.allFriends,e.strings.incomingFriendRequests,e.strings.outgoingFriendRequests,e.strings.tabMutualFriends])})();return i.createElement(i.Fragment,null,e.map((e=>i.createElement(su,{key:e.href,tab:e}))))},du=()=>i.createElement("div",null,i.createElement(ht,Object.assign({},bt.A("newProfile.friends.friendsTabs")),i.createElement(cu,null)));const uu=Me.ZP.div.withConfig({displayName:"TabsAndSearchstyled__Wrapper",componentId:"sc-nx0g5-0"})(["display:flex;justify-content:space-between;margin-bottom:15px;& > div:first-child{margin-right:20px;flex-shrink:0;}"]);var mu=()=>{const e=(0,Ae.Z)(Te.U.Profile),t=(0,a.useSelector)(jc),n=(0,a.useSelector)(Nc),r=(0,a.useSelector)(Ce._$),o=i.useMemo((()=>n.length<=0?e.strings.searchLabelEmpty:e.strings.searchLabel.replace("${searchRequest}",n)),[e.strings.searchLabel,e.strings.searchLabelEmpty,n]);return i.createElement(uu,null,t?i.createElement(dd,{tagName:"h2",html:o}):i.createElement(du,null),r?i.createElement(au,null):null)},fu=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},pu=()=>{const e=(0,a.useSelector)(Ce._$),{isLoading:t}=(()=>{const e=(0,fe.T)(),t=(0,a.useSelector)(Ce.LD),n=(0,a.useSelector)(Ce._$),[r,o]=(0,i.useState)(!0),l=(0,i.useCallback)((()=>fu(void 0,void 0,void 0,(function*(){yield Promise.all([e((0,Bt.m)({userId:t})),e(Ut())]),o(!1)}))),[e,t]),s=(0,i.useCallback)((()=>fu(void 0,void 0,void 0,(function*(){yield Promise.all([e((0,Bt.m)({userId:t})),e((0,vd.i)({userId:t})),e(Xs({userId:t})),e(Ut())]),o(!1)}))),[e,t]);return(0,i.useEffect)((()=>{t&&(n?s():l())}),[e,n,s,l,t]),{isLoading:r}})();return(()=>{const e=(0,fe.T)(),t=(0,a.useSelector)(je.dY),n=i.useCallback((n=>{207===JSON.parse(n).type&&(e(Xs({userId:t})),e((0,Bt.m)({userId:t})))}),[e,t]);(0,Gs.$)(Ys.V.Notification,n)})(),i.createElement(i.Fragment,null,e?i.createElement(sd,null,i.createElement(Sc,null)):null,i.createElement(cd,null,i.createElement(mu,null),t?null:i.createElement(eu,null)))};const gu=e=>e.newProfile.profileEdit,hu=(0,er.P1)([gu],(e=>e.profileEditModalState)),vu=(0,er.P1)([gu],(e=>e.profileEditModel)),yu=()=>jt(O);function bu(e,t){let{errors:n,setErrors:r,username:o,about:a}=e;const l=i.useMemo((()=>{const e={username:[ha.jQ.required,ha.jQ.username],about:[ha.jQ.about]},n={username:t.errorNicknameInvalid,about:t.errorAboutInvalid,required:t.errorRequired};return(0,ha.Te)(e,n)}),[t.errorAboutInvalid,t.errorNicknameInvalid,t.errorRequired]);return()=>{return e=this,t=void 0,s=function*(){try{yield function(){return l(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).then((()=>(r({username:"",about:""}),Promise.resolve())),(e=>(r(Object.assign(Object.assign({},n),e)),Promise.reject(e))))}({username:o,about:a})}catch(e){return!1}return!0},new((i=void 0)||(i=Promise))((function(n,r){function o(e){try{l(s.next(e))}catch(e){r(e)}}function a(e){try{l(s.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,a)}l((s=s.apply(e,t||[])).next())}));var e,t,i,s}}const wu=e=>{const t={firstName:e.firstName,about:e.about||"",dateOfBirth:e.dateOfBirth,gender:e.gender||"0",day:void 0,month:void 0};return{type:x,payload:t}};function Eu(e,t){return{type:C,payload:{field:e,value:t}}}var xu=n(50111);const Cu=e=>({daysList:(0,xu.AT)(e),monthsList:(0,xu.YN)()}),Pu=e=>{const t=e&&(0,xu.QO)(e),n=(0,xu.YN)();if(t){const{day:e,month:r}=t;return{day:{label:e,value:e},month:n.find((e=>e.value===r))||n[0]}}return{day:{label:"0",value:"0"},month:n[0]}},_u=(e,t)=>{const n=(e=>{const t=e&&(0,xu.QO)(e);if(t){const{year:e}=t;return e}{const{year:e}=(0,xu.QO)("");return e}})(t),r=Pu(t);return!e.day&&e.month?`${n}-${`0${e.month.value+1}`.slice(-2)}-${`0${r.day.value}`.slice(-2)}T00:00:00Z`:e.day&&!e.month?`${n}-${`0${r.month.value+1}`.slice(-2)}-${`0${e.day.value}`.slice(-2)}T00:00:00Z`:e.day&&e.month?`${n}-${`0${e.month.value+1}`.slice(-2)}-${`0${e.day.value}`.slice(-2)}T00:00:00Z`:t||"1980-01-31T00:00:00Z"};const Ou=Me.ZP.label.withConfig({displayName:"ProfileEditstyled__LabelElement",componentId:"sc-1lgvasg-0"})(["display:flex;font-size:0.8rem;font-weight:500;line-height:1rem;color:#000;"]),ku=Me.ZP.div.withConfig({displayName:"ProfileEditstyled__OverFlowWrapper",componentId:"sc-1lgvasg-1"})(["@media (max-width:1440px){height:295px;overflow-y:scroll;&::-webkit-scrollbar{width:10px;cursor:pointer;}&::-webkit-scrollbar-track{background:transparent;cursor:pointer;}&::-webkit-scrollbar-thumb{background:rgba(0,0,0,0.2);border-radius:5px;}&::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,0.3);}&::-webkit-scrollbar-thumb:focus{background:rgba(0,0,0,0.4);}}"]),Su=Me.ZP.div.withConfig({displayName:"ProfileEditstyled__FieldWrapper",componentId:"sc-1lgvasg-2"})(["width:455px;margin:0 auto 0.75rem;","{margin-bottom:0.25rem;}&:last-child{margin-bottom:0.5rem;@media (max-width:1440px){margin-bottom:1.5rem;}}"],Ou),Iu=Me.ZP.div.withConfig({displayName:"ProfileEditstyled__Wrapper",componentId:"sc-1lgvasg-3"})(["display:flex;flex-direction:column;width:630px;border-radius:12px;box-shadow:0 40px 60px -15px rgba(0,0,0,0.4);background-color:#f0f0f1;"]),ju=Me.ZP.div.withConfig({displayName:"ProfileEditstyled__Header",componentId:"sc-1lgvasg-4"})(["display:flex;flex-direction:column;position:relative;background-color:var(--bg-white);justify-content:center;"]),Nu=Me.ZP.h2.withConfig({displayName:"ProfileEditstyled__Title",componentId:"sc-1lgvasg-5"})(["font-size:22px;font-weight:600;line-height:25px;text-align:center;padding:15px 0 10px;color:rgba(45,45,48,0.8);margin-bottom:0;"]),Mu=Me.ZP.div.withConfig({displayName:"ProfileEditstyled__Body",componentId:"sc-1lgvasg-6"})(["padding-top:55px;"]),Zu=Me.ZP.div.withConfig({displayName:"ProfileEditstyled__EditInfo",componentId:"sc-1lgvasg-7"})([""]),Au=Me.ZP.form.withConfig({displayName:"ProfileEditstyled__Form",componentId:"sc-1lgvasg-8"})([""]),Tu=(0,Me.ZP)(ze.Z).withConfig({displayName:"ProfileEditstyled__Cover",componentId:"sc-1lgvasg-9"})(["display:flex;flex-direction:column;justify-content:center;width:100%;height:210px;cursor:pointer;"]),Ru=Me.ZP.button.withConfig({displayName:"ProfileEditstyled__AvatarWrapper",componentId:"sc-1lgvasg-10"})(["outline:none;display:flex;position:absolute;left:70px;bottom:-40px;justify-content:center;width:110px;height:110px;border-radius:50%;border:solid 4px #fff;background-color:#737880;cursor:pointer;",";"],(e=>e.image&&(0,Me.iv)(["background:url(",") 50% 50%;background-size:cover;"],e.image))),zu=Me.ZP.div.withConfig({displayName:"ProfileEditstyled__AvatarIcon",componentId:"sc-1lgvasg-11"})(["display:flex;align-self:center;justify-content:center;width:50px;height:50px;border-radius:50%;backdrop-filter:blur(20px);background-color:rgba(25,27,31,0.23);"]),Lu=(0,Me.ZP)((e=>i.createElement("svg",Object.assign({},e,{xmlns:"http://www.w3.org/2000/svg",width:"30",height:"30"}),i.createElement("defs",null,i.createElement("linearGradient",{id:"b22",x1:"3.36%",x2:"86.125%",y1:"-57.183%",y2:"238.199%"},i.createElement("stop",{offset:"0%",stopColor:"#A3A0AD"}),i.createElement("stop",{offset:"100%",stopColor:"#4E4964"})),i.createElement("filter",{id:"a222",colorInterpolationFilters:"auto"},i.createElement("feColorMatrix",{in:"SourceGraphic",values:"0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 0 1.000000 0 0 0 1.000000 0"}))),i.createElement("g",{filter:"url(#a222)",transform:"translate(-40 -40)",fill:"none",fillRule:"evenodd"},i.createElement("path",{d:"M10.464 0c3.98 0 7.245 3.125 7.518 7.076v.278c.004.858.014 3.56.017 6.043v2.332c-.002 1.315-.009 2.276-.023 2.377-.105.72-.87 2.003-1.865 1.887-1.577-.185-1.557-1.1-3.282-1.116-1.007-.01-1.718 1.058-2.862 1.063-.032 0-.063 0-.093-.003-1.499-.098-1.769-.926-2.857-.953-1.294-.031-2.15 1.02-3.194.859-.637-.099-.54-.268-1.299-.75-.385-.244-1.05-.26-1.429-.246a.094.094 0 01-.062-.166c.685-.606 1.202-1.41 1.57-2.39a4.85 4.85 0 00.318-1.728l.002-.704v-.417l.001-.222v-.464l.001-.24v-.745l.001-.252.001-1.487v-2.42C2.928 3.411 6.306 0 10.465 0zm-.89 6.567c-.783 0-1.42.642-1.42 1.434 0 .791.637 1.434 1.42 1.434.784 0 1.42-.643 1.42-1.434 0-.792-.636-1.434-1.42-1.434zm4.858 0c-.784 0-1.42.642-1.42 1.434 0 .791.636 1.434 1.42 1.434.783 0 1.42-.643 1.42-1.434 0-.792-.637-1.434-1.42-1.434z",fill:"url(#b22)",fillRule:"nonzero",transform:"translate(45 45)"}))))).withConfig({displayName:"ProfileEditstyled__GhostIcon",componentId:"sc-1lgvasg-12"})(["align-self:center;"]),Du=Me.ZP.div.withConfig({displayName:"ProfileEditstyled__Footer",componentId:"sc-1lgvasg-13"})(["display:flex;justify-content:center;background:var(--bg-white);margin-top:65px;@media (max-width:1440px){margin-top:0;}"]),Fu=Me.ZP.div.withConfig({displayName:"ProfileEditstyled__ActionFooterButton",componentId:"sc-1lgvasg-14"})(["margin:0 7.5px;padding:15px 0;"]);const Bu=(0,Me.ZP)(wo).withConfig({displayName:"styled__StyledSelect",componentId:"sc-4vm7y7-0"})([".Select__menu-list{max-height:10rem;}"]),Uu=Me.ZP.div.withConfig({displayName:"styled__FieldContent",componentId:"sc-4vm7y7-1"})([""]),qu=Me.ZP.span.withConfig({displayName:"styled__FieldError",componentId:"sc-4vm7y7-2"})(["display:flex;color:#e35a59;font-size:0.7rem;line-height:0.75rem;margin-top:0.25rem;min-height:1.1rem;&:empty{display:none;}"]);const $u=e=>{var{name:t,value:n,onChange:r,onBlur:o,disabled:a,error:l}=e,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{value:t,onChange:n,options:r}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{let{day:t,month:n,monthsOptions:r,daysOptions:o,onDayChange:l,onMonthChange:s}=e;const c=(0,Ae.Z)(Te.U.Profile),d=(0,a.useSelector)(li.SS,a.shallowEqual),u=(0,i.useMemo)((()=>i.createElement(jo,null,i.createElement(To,null,c.strings.dateOfBirth),i.createElement(Hu,Object.assign({options:o,value:t,onChange:l},bt.A("newProfile.prodileEditModal.select.date.day"))))),[c.strings.dateOfBirth,o,l,t]),m=(0,i.useMemo)((()=>i.createElement(jo,null,i.createElement(To,null,c.strings.monthOfBirth),i.createElement(Hu,Object.assign({options:r,value:n,onChange:s},bt.A("newProfile.prodileEditModal.select.date.month"))))),[c.strings.monthOfBirth,r,s,n]);return i.useEffect((()=>{if(!((e,t)=>e.find((e=>e.value===t.value)))(o,t)){const e=o.length-1;l(o[e])}}),[o,t,l]),i.createElement(So.Z,{cols:2,indents:.25},d?m:u,d?u:m)},Wu=Me.ZP.textarea.withConfig({displayName:"elements__TextareaElement",componentId:"sc-1rcea5h-0"})(["font-size:0.8rem;line-height:1rem;position:relative;display:block;max-width:100%;width:100%;padding:0.5rem;color:#3e3e4b;min-height:4.5rem;border:1px solid #d4d8dc;border-radius:0.2rem;background-color:#fff;font-family:inherit;font-weight:500;resize:none;&:-webkit-autofill{color:#526173 !important;box-shadow:inset 0 0 0 2.5rem #f7ebf3 !important;}&::placeholder{color:rgba(0,0,0,0.2);}&:disabled{background-color:#eeeff1;border-color:#eeeff1;color:#c8ccd1;}&:hover{border-color:#bdbdbd;}&:active,&:focus{border-color:#526173;}"]);var Gu=e=>i.createElement(Wu,e);const Yu=e=>{let{name:t,value:n,rows:r,error:o,onChange:a,onBlur:l}=e;return i.createElement(Uu,null,i.createElement(Gu,{name:t,rows:r,spellCheck:"true",onChange:a,onBlur:l,value:n}),i.createElement(qu,Object.assign({},bt.A("newProfile.profileEdit.textArea.error")),o))};var Qu=()=>{const e=(0,Ae.Z)(Te.U.Profile),t=(0,a.useSelector)(ke.Co,a.shallowEqual),n=(0,a.useSelector)(vu,a.shallowEqual),r=(0,fe.T)(),[o,l]=i.useState({about:"",username:""}),[s,c]=i.useState(!1),d=i.useMemo((()=>{return t=e.strings,Uo(t).map((e=>{let{title:t,id:n}=e;return{label:t,value:n}}));var t}),[e.strings]),u=(m=d,f=n.gender,m.find((e=>{let{value:t}=e;return t===f}))||m.find((e=>{let{value:t}=e;return t===Do.None})));var m,f;const p=(()=>{const e=(0,Ae.Z)(Te.U.Profile);return i.useMemo((()=>({errorNicknameInvalid:e.strings.errorNickName,errorAboutInvalid:e.strings.errorAbout,errorRequired:e.strings.errorRequired})),[e.strings.errorAbout,e.strings.errorNickName,e.strings.errorRequired])})(),g=(e=>{if(e.month)return Cu(e.month.value);const t=e.dateOfBirth&&(0,xu.QO)(e.dateOfBirth);if(t){const{month:e}=t;return Cu(e)}{const{month:e}=(0,xu.QO)("");return Cu(e)}})(n),h=Pu(t.dateOfBirth);i.useEffect((()=>{t.id&&(0,F.xb)(n)&&r(wu(t))}),[r,n,t]);const v=bu({errors:o,setErrors:l,username:n.firstName,about:n.about},p),y=(0,F.Ds)((()=>{v().then((e=>{c(!e)}))}),150),b=(0,F.Ds)((()=>{v().then((e=>{c(!e)}))}),150);return i.createElement(Au,{onSubmit:o=>{o.preventDefault(),v().then((o=>{return i=void 0,a=void 0,s=function*(){if(c(!o),o){const o={firstName:n.firstName.trim(),about:n.about.trim(),dateOfBirth:_u(n,t.dateOfBirth),gender:n.gender},i=yield sa.gS(o);r((0,Na.gS)(i)),r(Eu("firstName",n.firstName.trim())),r(yu()),r((0,At.c)({type:Tt.H_,message:e.strings.save}))}},new((l=void 0)||(l=Promise))((function(e,t){function n(e){try{o(s.next(e))}catch(e){t(e)}}function r(e){try{o(s.throw(e))}catch(e){t(e)}}function o(t){var o;t.done?e(t.value):(o=t.value,o instanceof l?o:new l((function(e){e(o)}))).then(n,r)}o((s=s.apply(i,a||[])).next())}));var i,a,l,s}))}},i.createElement(ku,null,i.createElement(Su,null,i.createElement(To,null,e.strings.nickName),i.createElement($u,Object.assign({name:"nickName",value:n.firstName,onChange:e=>{r(Eu("firstName",e.target.value)),y()},onBlur:e=>{r(Eu("firstName",e.target.value)),y()},error:null==o?void 0:o.username,disabled:t.isLockedToChangeName},bt.A("newProfile.prodileEditModal.input.nickname")))),u&&i.createElement(Su,null,i.createElement(To,null,e.strings.gender),i.createElement(Hu,Object.assign({value:u,options:d,onChange:e=>{r(Eu("gender",e.value))}},bt.A("newProfile.prodileEditModal.select.gender")))),i.createElement(Su,null,g&&h&&i.createElement(Vu,{monthsOptions:g.monthsList,daysOptions:g.daysList,day:n.day||h.day,month:n.month||h.month,onDayChange:e=>{r(Eu("day",e))},onMonthChange:e=>{r(Eu("month",e))}})),i.createElement(Su,null,i.createElement(To,null,e.strings.about),i.createElement(Yu,{name:"about",value:n.about,onChange:e=>{r(Eu("about",e.target.value)),b()},onBlur:e=>{r(Eu("about",e.target.value)),b()},rows:3,error:null==o?void 0:o.about}))),i.createElement(Du,null,i.createElement(Fu,null,i.createElement(Pr.ZP,Object.assign({color:It.Tt.defaultNormal,isNoBoxShadow:!0,onClick:()=>{r(yu()),r(wu(t))}},bt.A("newProfile.prodileEditModal.cancel"),{type:"button"}),e.strings.cancel)),i.createElement(Fu,null,i.createElement(Pr.ZP,Object.assign({color:It.Tt.secondary,isNoBoxShadow:!0,disabled:s},bt.A("newProfile.prodileEditModal.save"),{type:"submit"}),e.strings.save))))},Ju=()=>{const e=(0,Ae.Z)(Te.U.Profile);return i.createElement(Tu,{src:e.images.coverBackgroundProfile.src})},Xu=()=>{const e=(0,a.useDispatch)(),t=(0,a.useSelector)(o.globalsSelector,a.shallowEqual),n=(0,a.useSelector)(ke.Co,a.shallowEqual),r=t&&t.system.defaultAvatar,l=n.avatar;return i.createElement(Ru,Object.assign({onClick:()=>{e(yu()),e(dr(!0))},image:l||r},bt.A("newProfile.prodileEditModal.editAvatar")),i.createElement(zu,null,i.createElement(Lu,null)))},Ku=()=>{const e=(0,Ae.Z)(Te.U.Profile),t=(0,a.useSelector)(hu,a.shallowEqual);return i.createElement($n.Z,{isOpen:t===_,onClose:F.ZT,shouldCloseOnOverlayClick:!1,borderRValue:12,topPosition:7},i.createElement(Iu,null,i.createElement(ju,null,i.createElement(Nu,null,e.strings.editProfile),i.createElement(Ju,null),i.createElement(Xu,null)),i.createElement(Mu,null,i.createElement(Zu,null,i.createElement(Qu,null)))))},em=()=>{const e=i.useContext(Re),t=(0,a.useSelector)(je.WO),n={[ue.Info]:i.createElement(Mi,null),[ue.Friends]:i.createElement(pu,null),[ue.Settings]:i.createElement(Ws,null)},r=i.useMemo((()=>n[e.sectionId]),[n,e.sectionId]);return i.createElement(Ze,null,i.createElement(We,null,t&&i.createElement(i.Fragment,null,i.createElement(jn,null),i.createElement(qn,null))),i.createElement(Pt,null),r||null,i.createElement(Ku,null),i.createElement(ar,null),i.createElement(co,null),i.createElement(ko,null),i.createElement(Ne.Z,{renderOnlyModal:!0}))};const tm=Me.ZP.div.withConfig({displayName:"Skeletonstyled__Cover",componentId:"sc-1udqpmp-0"})(["width:100%;height:18rem;background-color:#dedede;"]),nm=Me.ZP.div.withConfig({displayName:"Skeletonstyled__Content",componentId:"sc-1udqpmp-1"})(["position:relative;&::after{content:'';position:absolute;width:604px;height:35px;border-radius:4px;background-color:#fff;top:40px;left:calc(50% - 302px);}"]),rm=Me.ZP.div.withConfig({displayName:"Skeletonstyled__Header",componentId:"sc-1udqpmp-2"})(["position:relative;width:calc(100% - 2rem);margin-left:1rem;margin-top:-1.5rem;height:4rem;border-radius:6px;background-color:#fff;&::after{content:'';position:absolute;top:calc(50% - 3.75rem);left:1rem;width:7.5rem;height:7.5rem;background-color:#ebebeb;border-radius:50%;}&::before{content:'';position:absolute;top:calc(50% - 0.35rem);left:9.5rem;width:8.85rem;height:14px;border-radius:13px;background-color:#ebebeb;}"]);var om=()=>i.createElement(i.Fragment,null,i.createElement(tm,null),i.createElement(rm,null),i.createElement(nm,null));function im(){const e=Ie();return e.isLoading?i.createElement(om,null):i.createElement(Re.Provider,{value:e},i.createElement(em,null))}function am(){return i.createElement(s.DynamicModuleLoader,{modules:[{id:"profile-dynamic-module",reducerMap:{newProfile:(0,d.combineReducers)({profile:E,profileEdit:S,covers:A,avatars:D,friends:$,friendsSearch:Q,deviceActivity:ne,privacySettings:ie,payment:de})}},(0,c.e)()],children:i.createElement(im)})}var lm=()=>{const{profilePageUrl:e}=(0,a.useSelector)(o.systemSelector);return i.useEffect((()=>{be=e}),[e]),(0,l.SL)(l.iY.Profile),i.createElement(am,null)}},96826:function(e,t,n){n.d(t,{Rp:function(){return d},ZP:function(){return c},zx:function(){return s}});var r=n(10586),o=n(94737),i=n(59754),a=n(57139);const l=e=>(0,r.iv)(["position:relative;display:inline-flex;justify-content:center;align-items:center;font-weight:600;line-height:1rem;letter-spacing:normal;color:#ffffff;text-align:center;border:none;border-radius:4px;transition:0.2s;cursor:pointer;box-shadow:0 15px 20px -10px rgba(0,0,0,0.3);&:disabled{cursor:not-allowed;}"," ",";"," "," "," "," "," "," "," "," "," &.game-header-details-button{margin-top:0.25rem;margin-bottom:0.5rem;}"," ",""],e.size===a.Ph.extraSmall&&(0,r.iv)(["min-height:1.5rem;font-size:0.75rem;line-height:1.5rem;font-weight:400;padding:0 1rem;min-width:6.5rem;"]),e.size===a.Ph.small&&(0,r.iv)(["min-width:110px;min-height:35px;padding:0 25px;font-size:16px;line-height:35px;"]),e.size===a.Ph.medium&&(0,r.iv)(["min-width:120px;min-height:40px;padding:0 25px;font-size:18px;line-height:40px;@media ","{min-width:5rem;min-height:35px;line-height:35px;padding:0 10px;font-size:16px;}"],o.Z.mobileOrTablet),e.size===a.Ph.large&&(0,r.iv)(["min-width:140px;min-height:50px;line-height:50px;padding:0 30px;font-size:20px;"]),e.color===a.Tt.default&&(0,r.iv)(["background-color:var(--bg-white);color:#1f7cdf;border-radius:6px;box-shadow:0 8px 10px -10px rgba(0,0,0,0.4);&.log-in-button{min-height:35px;min-width:0;padding:0 17px;font-size:15px;color:#1f7cdf;&:hover,&:active,&:disabled{color:#1f7cdf;}@media ","{padding:0 22px;}}&:hover,&:active,&:disabled{color:#1f7cdf;}&:hover{background-color:var(--button-default-hover);}&:active{background-color:var(--button-default-press);}&:disabled{background-color:var(--button-default-disablet);}"],o.Z.mobileOrTablet),e.color===a.Tt.dark&&(0,r.iv)(["background-color:#635c7c;background:linear-gradient(to bottom,#635c7c,#514b67 97%);&:hover{background-color:#6f6985;background:linear-gradient(to bottom,#6f6985,#635c7c 97%);}&:active{background-color:#635c7c;background:linear-gradient(to bottom,#635c7c,#514b67 97%);}&:disabled{background:#a9a6b5;}"]),e.color===a.Tt.primary&&(0,r.iv)(["background-color:#fa5400;background:linear-gradient(to bottom,#fa5400 -7%,#fa3e00 105%);&:hover{background-color:#ff681b;background:linear-gradient(to bottom,#ff681b -7%,#ff5118 104%);}&:active{background-color:#f04600;background:linear-gradient(to bottom,#f04600 -7%,#dd3700 101%);}&:disabled{background:#ffa582;}"]),e.color===a.Tt.secondary&&(0,r.iv)(["background-color:#5b8fe5;background:linear-gradient(to bottom,#5b8fe5,#4779cb 99%);&:hover{background-color:#619cff;background:linear-gradient(to bottom,#619cff,#558ce6);}&:active{background-color:#578adf;background:linear-gradient(to bottom,#578adf,#406cb5 99%);}&:disabled{background:#7daeff;}"]),e.color===a.Tt.defaultNormal&&(0,r.iv)(["background-color:#f0f0f0;color:#555557;&:hover{background-color:#f4f4f4;color:#555557;}&:active{background-color:#f4f4f4;color:#555557;}&:disabled{background:#d2d2d2;color:#555557;}"]),e.color===a.Tt.purple&&(0,r.iv)(["background-color:#7c4795;background:linear-gradient(to bottom,#7c4795,#5d2a7e 100%);&:hover{background-color:#8f61a4;background:linear-gradient(to bottom,#8f61a4,#744890 100%);}&:active{background-color:#6a3c7f;background:linear-gradient(to bottom,#6a3c7f,#4f246c 100%);}&:disabled{background-color:#bfa5cb;background:linear-gradient(to bottom,#bfa5cb,#ae94be 100%);}"]),e.fluid&&(0,r.iv)(["width:100%;padding:0;"]),e.isIcon&&(0,r.iv)(["padding:0 1.25rem 0 1rem;"]),e.isNoBoxShadow&&(0,r.iv)(["box-shadow:none;"])),s=r.ZP.button.withConfig({displayName:"Buttonstyled__Button",componentId:"sc-1rihoin-0"})([""," ",""],(e=>l(e)),(e=>e.isIcon&&(0,r.iv)(["margin-left:0.5rem;"]))),c=(0,r.ZP)(i.Z).withConfig({displayName:"Buttonstyled__ButtonLink",componentId:"sc-1rihoin-1"})(["",""],(e=>l(e))),d=r.ZP.i.withConfig({displayName:"Buttonstyled__IconContent",componentId:"sc-1rihoin-2"})(["display:flex;align-items:center;justify-content:center;margin-right:0.5rem;width:1rem;height:auto;& svg{width:100%;height:auto;}"])},57139:function(e,t,n){n.d(t,{Ph:function(){return a},Tt:function(){return i}});var r=n(67294),o=n(96826);const i={default:"default",defaultNormal:"defaultNormal",dark:"dark",primary:"primary",secondary:"secondary",purple:"purple"},a={extraSmall:"extraSmall",small:"small",medium:"medium",large:"large"};t.ZP=e=>{var{children:t,onClick:n,color:l=i.primary,size:s=a.medium}=e,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o{var{children:t,onClick:n,href:a,target:l,color:s=o.Tt.primary,size:c=o.Ph.medium}=e,d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe.onClick===t.onClick&&e.href===t.href&&e.target===t.target))},15937:function(e,t,n){var r=n(57139);t.ZP=r.ZP},21426:function(e,t,n){n.d(t,{E:function(){return o},c:function(){return i}});var r=n(10586);const o=r.ZP.div.withConfig({displayName:"FlexGridstyled__CellElement",componentId:"sc-1fhxw6o-0"})(["display:flex;flex-direction:column;width:100%;margin-bottom:","rem;"],(e=>e.botOffset)),i=r.ZP.div.withConfig({displayName:"FlexGridstyled__RowElement",componentId:"sc-1fhxw6o-1"})(["display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:flex-start;margin-right:-","rem;margin-left:-","rem;","{padding-left:","rem;padding-right:","rem;max-width:calc(100% / ",");}"],(e=>e.indents),(e=>e.indents),o,(e=>e.indents),(e=>e.indents),(e=>e.cols))},81474:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(67294),o=n(21426),i=e=>{let{indents:t=0,cols:n=1,children:i}=e;return r.createElement(o.c,{cols:n,indents:t},i)}},95564:function(e,t,n){var r=n(67294);t.Z=e=>r.createElement("svg",{className:e.className,width:"25",height:"25"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{fill:"#68686A",d:"M7.05 16.95a.875.875 0 010-1.238L10.763 12 7.05 8.288A.875.875 0 018.288 7.05L12 10.763l3.712-3.713a.875.875 0 011.238 1.238L13.237 12l3.713 3.712a.875.875 0 01-1.238 1.238L12 13.237 8.288 16.95a.875.875 0 01-1.238 0z"}),r.createElement("rect",{width:"21",height:"21",rx:"10.5",fill:"#EBEBEB",transform:"translate(2 2)"}),r.createElement("path",{fill:"#68686A",d:"M7.904 17.096a.813.813 0 010-1.15l3.447-3.445-3.448-3.448a.813.813 0 011.15-1.15l3.447 3.449 3.448-3.448a.812.812 0 111.148 1.15L13.65 12.5l3.446 3.446a.812.812 0 11-1.149 1.15L12.5 13.65l-3.446 3.446a.812.812 0 01-1.15 0z"})))},30944:function(e,t,n){var r=n(67294);t.Z=e=>r.createElement("svg",Object.assign({},e,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"}),r.createElement("path",{fill:"#737387",fillRule:"evenodd",d:"M10 9.221l5.06-5.06a.55.55 0 1 1 .779.779L10.779 10l5.06 5.06a.55.55 0 1 1-.779.779L10 10.779l-5.06 5.06a.55.55 0 1 1-.779-.779L9.221 10l-5.06-5.06a.55.55 0 1 1 .779-.779L10 9.221z"}))},99484:function(e,t,n){var r=n(67294);t.Z=e=>r.createElement("svg",{className:e.className,width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("rect",{fill:"#3E5294",width:"100%",height:"100%",rx:"6"}),r.createElement("path",{d:"M32.2679 44.75V27.068h5.8963l.8836-6.8916h-6.78v-4.3948c0-2.0008.5438-3.3518\n 3.3985-3.3518h3.6194V6.2736C38.657 6.1881 36.499 6 34.0011 6c-5.2337\n 0-8.802 3.215-8.802 9.0975v5.079h-5.9134v6.8915h5.9134V44.75h7.0688z",fill:"#FFF"})))},30820:function(e,t,n){var r=n(67294);t.Z=e=>{let{className:t}=e;return r.createElement("svg",{className:t||"",width:"45",height:"45",viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("rect",{fill:"#F5F5F5",width:"100%",height:"100%",rx:"6"}),r.createElement("path",{d:"M22.9891 16.0891c2.1125 0 3.5375.9125 4.35 1.675l3.175-3.1c-1.95-1.8125-4.4875-2.925-7.525-2.925-4.4 0-8.2 2.525-10.05 6.2l3.6375 2.825c.9125-2.7125 3.4375-4.675 6.4125-4.675z",fill:"#EA4335"}),r.createElement("path",{d:"M33.7891 23.2391c0-.925-.075-1.6-.2375-2.3H22.9891v4.175h6.2c-.125 1.0375-.8 2.6-2.3 3.65l3.55 2.75c2.125-1.9625 3.35-4.85 3.35-8.275z",fill:"#4285F4"}),r.createElement("path",{d:"M16.5891 25.2141c-.2375-.7-.375-1.45-.375-2.225 0-.775.1375-1.525.3625-2.225l-3.6375-2.825c-.7625 1.525-1.2 3.2375-1.2 5.05s.4375 3.525 1.2 5.05l3.65-2.825z",fill:"#FBBC05"}),r.createElement("path",{d:"M22.9891 34.2391c3.0375 0 5.5875-1 7.45-2.725l-3.55-2.75c-.95.6625-2.225 1.125-3.9 1.125-2.975 0-5.5-1.9625-6.4-4.675l-3.6375 2.825c1.85 3.675 5.6375 6.2 10.0375 6.2z",fill:"#34A853"})))}},58267:function(e,t,n){var r=n(67294);t.Z=()=>r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40"},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("rect",{width:"100%",height:"100%",fill:"#9146FF",rx:"4.214"}),r.createElement("g",{fillRule:"nonzero"},r.createElement("path",{fill:"#FFF",d:"M20.952 12.381L17.143 16.19 13.333 16.19 10 19.524 10 16.19 5.714 16.19 5.714 1.905 20.952 1.905z",transform:"translate(8.444 7.556)"}),r.createElement("g",{fill:"#000"},r.createElement("path",{d:"M4.762 0L0 4.762v17.143h5.714v4.762l4.762-4.762h3.81l8.571-8.572V0H4.762zm16.19 12.381l-3.81 3.81h-3.809L10 19.523V16.19H5.714V1.905h15.238V12.38z",transform:"translate(8.444 7.556)"}),r.createElement("path",{d:"M16.19 5.238H18.095000000000002V10.952000000000002H16.19zM10.952 5.238H12.857V10.952000000000002H10.952z",transform:"translate(8.444 7.556)"})))))},35437:function(e,t,n){n.d(t,{Z:function(){return E}});var r=n(67294),o=n(83253),i=n.n(o),a=n(10586),l=n(94737),s=n(25596),c=n(30944);const d=a.ZP.header.withConfig({displayName:"styled__Header",componentId:"sc-1th4zc2-0"})(["position:relative;display:flex;align-items:center;justify-content:center;padding:0.5rem 0;@media ","{padding:1rem 0 0;}"],l.Z.desktop),u=(0,a.ZP)((e=>{var{className:t,modalClassName:n}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);oe.isHeaderAbove?"5001":"9999"),(e=>e.bgImage&&(0,a.iv)(["&::after,&::before{content:'';position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;}&::after{z-index:0;background-image:url(",");background-size:cover;background-position:50% 50%;}&::before{z-index:1;backdrop-filter:blur(4px);background-color:rgba(216,216,216,0.15);}"],e.bgImage)),l.Z.desktop,(e=>e.topPosition?`${e.topPosition}vh auto 1rem`:"20vh auto 1rem"),(e=>e.isBgColor&&e.theme.color.semidark),(e=>e.borderRValue?`${e.borderRValue}px`:"4px"),(e=>e.adaptiveModal&&(0,a.iv)(["","{background-color:",";}@media ","{top:0;right:0;display:flex;flex-direction:column;transform:initial;height:100%;width:18.5rem;position:absolute;}@media ","{height:initial;width:fit-content;border-radius:8px;box-shadow:0 40px 60px -15px rgba(0,0,0,0.88);background-color:#2b2c30;","{background-color:",";}}"],d,(e=>e.theme.color.superdark),l.Z.tablet,l.Z.desktop,d,(e=>e.theme.color.regular))),l.Z.mobileOrTablet),m=a.ZP.span.withConfig({displayName:"styled__Title",componentId:"sc-1th4zc2-2"})(["font-size:15px;font-weight:600;cursor:default;color:",";text-transform:uppercase;line-height:1.25rem;"],(e=>e.theme.color.superBright)),f=a.ZP.button.withConfig({displayName:"styled__CloseButton",componentId:"sc-1th4zc2-3"})(["cursor:pointer;position:absolute;right:0.65rem;width:1rem;height:1rem;align-self:center;border:0;background:none;@media ","{right:0.8rem;}"],l.Z.desktop),p=(0,a.ZP)(c.Z).withConfig({displayName:"styled__CrossIcon",componentId:"sc-1th4zc2-4"})(["width:1rem;height:1rem;"]),g=(0,a.iv)(["display:flex;flex-direction:column;margin:1rem 0;padding:0 1rem;flex-grow:1;"]),h=a.ZP.div.withConfig({displayName:"styled__Content",componentId:"sc-1th4zc2-5"})(["",";overflow:hidden;"],g),v=(0,a.ZP)(s.Z).withConfig({displayName:"styled__ContentWithScroll",componentId:"sc-1th4zc2-6"})(["",";"],g),y=a.ZP.footer.withConfig({displayName:"styled__Footer",componentId:"sc-1th4zc2-7"})(["display:flex;flex-direction:column;align-items:center;margin:auto 1rem 1rem;"]),b=e=>{let{onClick:t}=e;return r.createElement(f,{onClick:t},r.createElement(p,null))},w=e=>{let{children:t,isOpen:n,onClose:o,className:i,adaptiveModal:a,shouldCloseOnOverlayClick:l=!0,isBgColor:s=!0,isHeaderAbove:c=!1,bgImage:d="",closeTimeoutMS:m,borderRValue:f,topPosition:p}=e;return r.createElement(u,{className:i,isOpen:n,onRequestClose:o,adaptiveModal:a,shouldCloseOnOverlayClick:l,isBgColor:s,bgImage:d,isHeaderAbove:c,closeTimeoutMS:m,borderRValue:f,topPosition:p},t)};w.Header=e=>{let{title:t,onClose:n,children:o}=e;return r.createElement(d,null,o,t&&r.createElement(m,null,t),n&&r.createElement(b,{onClick:n}))},w.Content=h,w.ContentWithScroll=v,w.Footer=y;var E=w},25596:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(67294),o=n(95891),i=n.n(o);const a=(0,n(10586).vJ)([".ps{touch-action:auto;overflow:hidden !important;-ms-overflow-style:none;}@supports (-ms-overflow-style:none){.ps{overflow:auto !important;}}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){.ps{overflow:auto !important;}}.ps.ps--active-x > .ps__scrollbar-x-rail,.ps.ps--active-y > .ps__scrollbar-y-rail{display:block;background-color:transparent;}.ps.ps--in-scrolling.ps--x > .ps__scrollbar-x-rail{background-color:#eee;opacity:0.9;}.ps.ps--in-scrolling.ps--x > .ps__scrollbar-x-rail > .ps__scrollbar-x{background-color:#999;height:11px;}.ps.ps--in-scrolling.ps--y > .ps__scrollbar-y-rail{background-color:#eee;opacity:0.9;}.ps.ps--in-scrolling.ps--y > .ps__scrollbar-y-rail > .ps__scrollbar-y{background-color:#999;}.ps > .ps__scrollbar-x-rail{display:none;position:absolute;opacity:0;transition:background-color 0.2s linear,opacity 0.2s linear;bottom:0;height:15px;}.ps > .ps__scrollbar-x-rail > .ps__scrollbar-x{position:absolute;background-color:#aaa;border-radius:6px;transition:background-color 0.2s linear,height 0.2s linear,width 0.2s ease-in-out,border-radius 0.2s ease-in-out;bottom:2px;height:6px;}.ps > .ps__scrollbar-x-rail:hover > .ps__scrollbar-x,.ps > .ps__scrollbar-x-rail:active > .ps__scrollbar-x{height:11px;}.ps > .ps__scrollbar-y-rail{display:none;position:absolute;opacity:0;border-radius:4px;transition:background-color 0.2s linear,opacity 0.2s linear;right:3px;width:8px;}.ps > .ps__scrollbar-y-rail > .ps__scrollbar-y{position:absolute;background-color:#aaa;border-radius:6px;transition:background-color 0.2s linear,height 0.2s linear,width 0.2s ease-in-out,border-radius 0.2s ease-in-out;right:0;width:8px;}.ps > .ps__scrollbar-y-rail:hover > .ps__scrollbar-y,.ps > .ps__scrollbar-y-rail:active > .ps__scrollbar-y{width:8px;}.ps:hover.ps--in-scrolling.ps--x > .ps__scrollbar-x-rail{background-color:#eee;opacity:0.9;}.ps:hover.ps--in-scrolling.ps--x > .ps__scrollbar-x-rail > .ps__scrollbar-x{background-color:#999;height:11px;}.ps:hover.ps--in-scrolling.ps--y > .ps__scrollbar-y-rail{background-color:#eee;opacity:0.9;}.ps:hover.ps--in-scrolling.ps--y > .ps__scrollbar-y-rail > .ps__scrollbar-y{background-color:#999;width:8px;}.ps:hover > .ps__scrollbar-x-rail,.ps:hover > .ps__scrollbar-y-rail{opacity:0.9;}.ps:hover > .ps__scrollbar-x-rail:hover{opacity:0.9;}.ps:hover > .ps__scrollbar-x-rail:hover > .ps__scrollbar-x{background-color:#999;}.ps:hover > .ps__scrollbar-y-rail:hover{opacity:0.9;}.ps:hover > .ps__scrollbar-y-rail:hover > .ps__scrollbar-y{background-color:#999;}"]),l={wheelSpeed:1,wheelPropagation:!1,minScrollbarLength:20};class s extends r.Component{constructor(){super(...arguments),this.state={isActive:!1},this.element=r.createRef()}componentDidMount(){this.activateScrollBar(this.element)}componentDidUpdate(){this.activateScrollBar(this.element)}activateScrollBar(e){const{options:t}=this.props,{isActive:n}=this.state;return e.current?n?i().update(e.current):(i().initialize(e.current,Object.assign({},l,t)),this.setState({isActive:!0})):this.setState({isActive:!1})}render(){return r.createElement(r.Fragment,null,r.createElement(a,null),r.createElement("div",{className:this.props.className,ref:this.element},this.props.children))}}s.defaultProps={className:null,options:l};var c=s},1472:function(e,t,n){n.d(t,{L9:function(){return i},NZ:function(){return o},lf:function(){return l},nv:function(){return a}});var r=n(10586);const o=r.ZP.h2.withConfig({displayName:"Typographystyled__SectionTitle",componentId:"sc-1uhqtdk-0"})(["margin-bottom:1rem;font-size:22px;font-weight:700;line-height:25px;letter-spacing:normal;color:#2d2d30;"]),i=r.ZP.h4.withConfig({displayName:"Typographystyled__TitleSmallRegular",componentId:"sc-1uhqtdk-1"})(["font-size:0.9rem;font-weight:500;line-height:1rem;color:#2d2d30;text-align:left;"]),a=r.ZP.p.withConfig({displayName:"Typographystyled__Paragraph",componentId:"sc-1uhqtdk-2"})(["font-size:0.8rem;font-weight:400;line-height:1rem;color:#2d2d30;text-align:left;"]),l=r.ZP.h2.withConfig({displayName:"Typographystyled__TitleMediumSemi",componentId:"sc-1uhqtdk-3"})(["font-size:1.1rem;font-weight:600;line-height:1.25rem;color:rgba(45,45,48,0.8);margin-top:0;margin-bottom:0.75rem;text-align:left;"])},29985:function(e,t,n){n.d(t,{R:function(){return a}});var r=n(67294);const o="undefined"!=typeof window;function i(e){if(!o)return{x:0,y:0};const t=(e||document.body).getBoundingClientRect();return{x:t.left,y:t.top}}function a(e,t){const n=r.useRef(i()),a=r.useCallback((()=>{const t=i();e({prevPos:n.current,currentPos:t}),n.current=t}),[e]);r.useEffect((()=>{if(o)return window.addEventListener("scroll",a),()=>window.removeEventListener("scroll",a)}),t)}},46855:function(e,t,n){n.d(t,{NE:function(){return p},Ne:function(){return g},am:function(){return f},b8:function(){return v},cs:function(){return y},hA:function(){return m},jH:function(){return h}});var r=n(38661),o=n(50111),i=n(35661);const a=(e,t)=>(0,r.Z)(e,t,{locale:(0,i.Wx)()});var l;!function(e){e.default="default",e.en="en-US",e.ru="ru",e.de="de",e.fr="fr",e.it="it",e.es="es",e.pt="pt",e.ja="ja",e.ko="ko",e.zh="en-US",e.tw="en-US",e.tr="tr",e.uk="uk",e.hi="hi",e.nl="nl"}(l||(l={}));const s={[l.default]:"dd.MM.yy",[l.ja]:"MM/dd/yy",[l.en]:"MM/dd/yy"},c={[l.default]:"HH:mm",[l.en]:"hh:mm a"},d={[l.default]:"dd MMM y",[l.en]:"y MMM dd",[l.ru]:"DD MMM Y",[l.de]:"DD MMM Y",[l.fr]:"DD MMM Y",[l.it]:"DD MMM Y",[l.es]:"DD MMM Y",[l.tr]:"DD MMM Y",[l.ja]:"Y MMM DD",[l.ko]:"DD MMM Y"},u={[l.default]:"hh:mm a",[l.ru]:"kk:mm"},m=e=>a(e,s[(0,i.BH)()]||s.default),f=e=>a(e,c[(0,i.BH)()]||c.default),p=e=>a(e,"d"),g=e=>a(e,"LLLL"),h=e=>a(e,d[(0,i.BH)()]||d.default),v=()=>a(new Date,u[(0,i.BH)()]||u.default),y=e=>{const t=(0,o.Bk)(new Date(e));return a(t,"d MMM, yyyy HH:mm")}},87642:function(e,t,n){function r(e){const t={};return e?"string"==typeof e?(t.common=e,t):(n=e)&&"object"==typeof n&&n.errors&&e.errors.length?(e.errors.forEach((e=>{t[e.property]=e.message})),t):(function(e){return!!e&&"object"==typeof e&&!!e.message}(e)&&(t.common=e.message),t):t;var n}n.d(t,{b:function(){return r}})},10713:function(e,t,n){n.d(t,{Z:function(){return o}});const r={existing:[]};function o(e){let{url:t,name:n}=e;if("undefined"==typeof window||r.existing.includes(n))return;const o=window.document.getElementsByTagName("link")[0],i=window.document.createElement("link");i.rel="stylesheet",i.href=t,i.crossOrigin="anonymous",o.parentNode&&(o.parentNode.insertBefore(i,o),r.existing.push(n))}},10649:function(e,t,n){n.d(t,{Te:function(){return o},Xy:function(){return a},jQ:function(){return i}});var r=n(1801);function o(e,t){return(0,r.setErrorMessages)(t),function(t){return(0,r.validate)(t,e)}}(0,r.setErrorMessages)({required:"This field is required.",email:"Please enter a valid email address.",password:"Password must be between 6-40 alphanumeric characters",terms:"Please agree on the rules",username:"Use 3-30 alphanumeric characters.",website:"Please enter a valid website URL",countryCode:"Invalid country code. You may use a maximum of 3 numbers",isEqual:"Field do not match",contactNumber:"Invalid phone number. You may use up to 17 characters.\n Including numbers 0-9 and characters +. () and -",code:"Invalid code. Must be 6 numbers"});const i=Object.assign(Object.assign({},r.rules),{terms:e=>e?Promise.resolve():Promise.reject((0,r.getErrorMessage)("terms")),countryCode:e=>e&&e.length&&e.length<=3?Promise.resolve():Promise.reject((0,r.getErrorMessage)("countryCode")),about:e=>e.length>360?Promise.reject((0,r.getErrorMessage)("about")):Promise.resolve(),code:e=>e&&e.length&&6!==e.length?Promise.reject((0,r.getErrorMessage)("code")):Promise.resolve()}),a=(e,t)=>e!==t?Promise.reject((0,r.getErrorMessage)("isEqual")):Promise.resolve()}}]);