PageSourceSearch

https://somniumspace.com/static/js/5773.84d713de.chunk.js

js somniumspace.com collected 2026-09-24 18:28:32 UTC 40,488 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunksomniumspace=self.webpackChunksomniumspace||[]).push([[5773],{55515:function(e,t,n){n.d(t,{s:function(){return _}});var o=n(4942),a=n(37762),r=n(29439),c=n(47313),i=n(46123),s=n.n(i),u=n(24655),l=n.n(u),d=(n(5978),n(57258)),p=n(46417),_=function(e){var t=e.onChange,n=e.withConfirmIcon,i=e.confirmed,u=e.inputKey,_=e.error,f=e.errorMessage,h=e.disabled,m=e.style,x=(0,c.useState)(0),g=(0,r.Z)(x,2),y=g[0],v=g[1],w=(0,c.useRef)(null);(0,c.useEffect)((function(){if(w.current){var e=w.current.offsetWidth;v(e);var t=new ResizeObserver((function(t){var n,o=(0,a.Z)(t);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(r.contentRect.width===e)return;v(r.contentRect.width),e=r.contentRect.width}}catch(c){o.e(c)}finally{o.f()}}));return t.observe(w.current),function(){w.current&&t.unobserve(w.current)}}}),[w.current]);return(0,p.jsxs)("div",{ref:w,className:s()({reactPhoneInput:!0,reactPhoneInputConfirm:n,reactPhoneInputError:_}),style:m,children:[(0,p.jsx)(l(),{disabled:h,country:"us",onChange:function(e){t(e)},autoFormat:!0,inputProps:{required:!0},dropdownStyle:{width:y||"300px"}},u),n?(0,p.jsx)(d.r,{className:s()("reactPhoneInput-confirm",(0,o.Z)({},"reactPhoneInput-confirmed",i))}):null,_&&f?(0,p.jsx)("div",{className:"errorMessage",children:f}):null]})}},85566:function(e,t,n){n.d(t,{K:function(){return s}});var o=n(29439),a=n(47313),r=n(12327),c=(n(5978),"styles_reactVerificationCodeInputContainer__FaD3g"),i=n(46417),s=function(e){var t=e.onChange,n=e.fields,s=void 0===n?6:n,u=(0,a.useState)(Array.from({length:s},(function(e){return"-"}))),l=(0,o.Z)(u,1)[0];return(0,i.jsx)(r.Z,{type:"number",fields:s,onChange:t,fieldWidth:60,fieldHeight:80,autoFocus:!0,placeholder:l,className:c})}},30019:function(e,t,n){n.r(t),n.d(t,{AccountSecurity:function(){return Qe},default:function(){return et}});var o=n(74165),a=n(15861),r=n(47313),c=n(69279),i=n(60701),s=n(21933),u=n(62563),l=n(82036),d=n(75627),p=n(30358),_=n(87089),f=n(43281),h=n(52295),m="styles_container__jbnsK",x="styles_form__5+mPU",g="styles_inputsBox__JNWkj",y="styles_twoFactorBlock__lS6f-",v="styles_methodsBlock__W38VI",w=n(1413),b=n(29439),k=n(53397),Z=n(16429),j=n(83929),S=n(4942),C=n(63366),N=n(87462),A=n(94146),T=n(67256),F=n(17551),R=n(87086),M=n(97423),P=n(77342),L=n(17592),z=n(43849),I=n(42268);function B(e){return(0,I.Z)("MuiSwitch",e)}var q=(0,z.Z)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),W=n(46417),O=["className","color","edge","size","sx"],G=(0,L.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.edge&&t["edge".concat((0,R.Z)(n.edge))],t["size".concat((0,R.Z)(n.size))]]}})((function(e){var t,n=e.ownerState;return(0,N.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===n.edge&&{marginLeft:-8},"end"===n.edge&&{marginRight:-8},"small"===n.size&&(t={width:40,height:24,padding:7},(0,S.Z)(t,"& .".concat(q.thumb),{width:16,height:16}),(0,S.Z)(t,"& .".concat(q.switchBase),(0,S.Z)({padding:4},"&.".concat(q.checked),{transform:"translateX(16px)"})),t))})),E=(0,L.ZP)(M.Z,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:function(e,t){var n=e.ownerState;return[t.switchBase,(0,S.Z)({},"& .".concat(q.input),t.input),"default"!==n.color&&t["color".concat((0,R.Z)(n.color))]]}})((function(e){var t,n=e.theme;return t={position:"absolute",top:0,left:0,zIndex:1,color:n.vars?n.vars.palette.Switch.defaultColor:"".concat("light"===n.palette.mode?n.palette.common.white:n.palette.grey[300]),transition:n.transitions.create(["left","transform"],{duration:n.transitions.duration.shortest})},(0,S.Z)(t,"&.".concat(q.checked),{transform:"translateX(20px)"}),(0,S.Z)(t,"&.".concat(q.disabled),{color:n.vars?n.vars.palette.Switch.defaultDisabledColor:"".concat("light"===n.palette.mode?n.palette.grey[100]:n.palette.grey[600])}),(0,S.Z)(t,"&.".concat(q.checked," + .").concat(q.track),{opacity:.5}),(0,S.Z)(t,"&.".concat(q.disabled," + .").concat(q.track),{opacity:n.vars?n.vars.opacity.switchTrackDisabled:"".concat("light"===n.palette.mode?.12:.2)}),(0,S.Z)(t,"& .".concat(q.input),{left:"-100%",width:"300%"}),t}),(function(e){var t,n=e.theme,o=e.ownerState;return(0,N.Z)({"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette.action.activeChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,F.Fq)(n.palette.action.active,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==o.color&&(t={},(0,S.Z)(t,"&.".concat(q.checked),(0,S.Z)({color:(n.vars||n).palette[o.
1color].main,"&:hover":{backgroundColor:n.vars?"rgba(".concat(n.vars.palette[o.color].mainChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):(0,F.Fq)(n.palette[o.color].main,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&.".concat(q.disabled),{color:n.vars?n.vars.palette.Switch["".concat(o.color,"DisabledColor")]:"".concat("light"===n.palette.mode?(0,F.$n)(n.palette[o.color].main,.62):(0,F._j)(n.palette[o.color].main,.55))})),(0,S.Z)(t,"&.".concat(q.checked," + .").concat(q.track),{backgroundColor:(n.vars||n).palette[o.color].main}),t))})),D=(0,L.ZP)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:function(e,t){return t.track}})((function(e){var t=e.theme;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),X=(0,L.ZP)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:function(e,t){return t.thumb}})((function(e){var t=e.theme;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),$=r.forwardRef((function(e,t){var n=(0,P.Z)({props:e,name:"MuiSwitch"}),o=n.className,a=n.color,r=void 0===a?"primary":a,c=n.edge,i=void 0!==c&&c,s=n.size,u=void 0===s?"medium":s,l=n.sx,d=(0,C.Z)(n,O),p=(0,N.Z)({},n,{color:r,edge:i,size:u}),_=function(e){var t=e.classes,n=e.edge,o=e.size,a=e.color,r=e.checked,c=e.disabled,i={root:["root",n&&"edge".concat((0,R.Z)(n)),"size".concat((0,R.Z)(o))],switchBase:["switchBase","color".concat((0,R.Z)(a)),r&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},s=(0,T.Z)(i,B,t);return(0,N.Z)({},t,s)}(p),f=(0,W.jsx)(X,{className:_.thumb,ownerState:p});return(0,W.jsxs)(G,{className:(0,A.Z)(_.root,o),sx:l,ownerState:p,children:[(0,W.jsx)(E,(0,N.Z)({type:"checkbox",icon:f,checkedIcon:f,ref:t,ownerState:p},d,{classes:(0,N.Z)({},_,{root:_.switchBase})})),(0,W.jsx)(D,{className:_.track,ownerState:p})]})})),U=(0,L.ZP)((function(e){return(0,W.jsx)($,(0,w.Z)({},e))}))((function(e){e.theme;return{float:"right",marginLeft:"10px",borderRadius:"18px",padding:"3px",boxShadow:"inset -4px -4px 4px 0px rgba(255, 255, 255, 0.05), inset 4px 4px 4px 0px rgba(0, 0, 0, 0.5)","& .MuiSwitch-switchBase":{padding:"3px","&.Mui-checked":{"& + .MuiSwitch-track":{background:"linear-gradient(180deg, #0FF 0%, #02A9F4 100%)",opacity:1}}},"& .MuiSwitch-thumb":{border:"1px solid #FFFFFF",backgroundColor:"#02A9F4",width:18,height:18},"& .MuiSwitch-track":{borderRadius:"18px",border:"2px solid #0F0F0F",background:"linear-gradient(180deg, #4D4D4D 0%, #0F0F0F 100%)",opacity:1}}})),V=function(e){var t=e.label,n=e.checked,o=e.onClick;return(0,W.jsx)(Z.Z,{sx:{width:"100%"},children:(0,W.jsx)(j.Z,{label:t,control:(0,W.jsx)(U,{size:"small",checked:n,onChange:o}),sx:{display:"block",width:"100%",marginLeft:0,marginRight:0,color:"#ffffff","& .MuiFormControlLabel-label":{fontSize:"0.875rem",fontWeight:700,lineHeight:"normal"}}})})},K=n(44758),J=n(81900),Y=n(55515),H=n(87299),Q="styles_form__u-FKV",ee="styles_acceptLabel__Ds5hZ",te=n(73306),ne=(0,i.Pi)((function(e){var t=e.open,n=e.onClose,o=e.onConfirmed,a=(0,te.$G)().t,c=(0,r.useState)(!1),i=(0,b.Z)(c,2),l=i[0],p=i[1],f=s.Ry().shape({phoneNumber:s.Z_().required(a("pages.profile.accountsecurity.twofactorauthentication.sms.phonenumbermodal.index.validation.phone_number_should_be_required_please"))}),h=(0,d.cI)({resolver:(0,u.X)(f)}),m=h.control,x=h.handleSubmit,g=h.formState.errors,y=h.reset;return(0,W.jsx)(J.u,{open:t,onClose:function(){y(),n()},closeButton:!0,disableOutsideClick:!0,scroll:"paper",title:a("pages.profile.accountsecurity.twofactorauthentication.sms.phonenumbermodal.index.title.set_up_your_phone_number"),subTitle:a("pages.profile.accountsecurity.twofactorauthentication.sms.phonenumbermodal.index.content.enter_your_phone_number_to_receive_a_text_message_w"),subTitleSX:{maxWidth:"440px","&&":{display:"block"}},children:(0,W.jsxs)("form",{onSubmit:x((function(e){l&&o(e.phoneNumber)})),className:Q,children:[(0,W.jsx)(d.Qr,{name:"phoneNumber",control:m,defaultValue:"",render:function(e){var t,n=e.field.onChange;return(0,W.jsx)(Y.s,{onChange:function(e){return n(String(e))},error:!!g.phoneNumber,errorMessage:(null===(t=g.phoneNumber)||void 0===t?void 0:t.message)||"",style:{maxWidth:"282px"}})}}),(0,W.jsx)(j.Z,{control:(0,W.jsx)(K.Z,{onChange:function(){return p((function(e){return!e}))},sx:{color:"#1474B8"}}),label:(0,W.jsxs)("div",{className:ee,children:[a("pages.profile.accountsecurity.twofactorauthentication.sms.phonenumbermodal.index.content.ive_read_and_accepted_the")," ",(0,W.jsx)(H.d,{children:function(e){return(0,W.jsx)("a",{onClick:function(t){t.preventDefault(),e()},children:a("pages.profile.accountsecurity.twofactorauthentication.sms.phonenumbermodal.index.content.privacy_policy")})}})]}),sx:{margin:"45px 0 11px -9px",color:"#ffffff"}}),(0,W.jsx)(_.O,{styleType:"blue_4",type:"submit",disabled:!l,sx:{"&&":{fontSize:"1rem"}},children:a("pages.profile.accountsecurity.twofactorauthentication.sms.phonenumbermodal.index.content.add_phone_number")})]})})})),oe=n(41826),ae=n(85566),re="styles_form__ULu2b",ce="styles_resendCode__OVXlR",ie=(0,i.Pi)((function(e){var t=e.open,n=e.onClose,r=e.phoneNumber,c=e.onResendSMS,i=e.onConfirmed,l=e.timer,p=(0,te.$G)().t,f=s.Ry().shape({code:s.Z_().required(p("pages.profile.accountsecurity.twofactorauthentication.sms.smscodemodal.index.validation.confirmation_code_should_be_required_please"))}),h=(0,d.cI)({resolver:(0,u.X)(f)}
1),m=h.control,x=h.handleSubmit,g=h.reset,y=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error("Resend SMS error:",e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(t){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i(t.code);case 3:g(),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error("Confirm Code error:",e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}();return(0,W.jsx)(J.u,{open:t,onClose:function(){g(),n()},closeButton:!0,disableOutsideClick:!0,scroll:"paper",title:p("pages.profile.accountsecurity.twofactorauthentication.sms.smscodemodal.index.title.enter_the_confirmation_code"),subTitle:(0,W.jsxs)(W.Fragment,{children:[p("pages.profile.accountsecurity.twofactorauthentication.sms.smscodemodal.index.content.we_sent_you_a_text_message_with_your_6-digit_code_to"),(0,W.jsx)("br",{}),r||""]}),subTitleSX:{maxWidth:"440px","&&":{display:"block"}},children:(0,W.jsxs)("form",{onSubmit:x(v),className:re,children:[(0,W.jsx)(d.Qr,{name:"code",control:m,defaultValue:"",render:function(e){var t=e.field.onChange;return(0,W.jsx)(ae.K,{onChange:t})}}),(0,W.jsx)("div",{className:ce,children:(0,W.jsx)(oe.Z,{type:"button",onClick:y,variant:"text",size:"small",color:"primary",disabled:l>0,children:l>0?p("pages.profile.accountsecurity.twofactorauthentication.sms.smscodemodal.index.content.resend_code_in",{timer:l}):p("pages.profile.accountsecurity.twofactorauthentication.sms.smscodemodal.index.content.resend_code")})}),(0,W.jsx)(_.O,{styleType:"blue_4",type:"submit",sx:{"&&":{fontSize:"1rem"}},children:p("pages.profile.accountsecurity.twofactorauthentication.sms.smscodemodal.index.content.confirm_code")})]})})})),se="styles_container__RGPeB",ue="styles_switchBox__JYuds",le="styles_description__TSB9V",de=(0,i.Pi)((function(){var e,t=(0,te.$G)().t,n=(0,c.oR)(),i=n.accountStore,s=n.loadingStore,u=(0,r.useState)(!1),d=(0,b.Z)(u,2),p=d[0],_=d[1],f=(0,r.useState)(!1),h=(0,b.Z)(f,2),m=h[0],x=h[1],g=(0,r.useState)(""),y=(0,b.Z)(g,2),v=y[0],Z=y[1],j=!(null===(e=i.account)||void 0===e||!e.IsSMSEnabled),S=(0,k.J7)(),C=S.timer,N=S.resetTimer,A=function(e){return e.replace(/\s+/g,"").startsWith("1")},T=function(){_(!1)},F=function(){x(!1)},R=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(n){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!A(n)){e.next=3;break}return l.Am.error(t("pages.profile.accountsecurity.twofactorauthentication.sms.index.messages.2fa_cant_be_enabled_for_us_numbers")),e.abrupt("return");case 3:return e.prev=3,s.setLoading(!0),e.next=7,i.addPhoneNumberForTwoFactor("+"+n);case 7:T(),x(!0),Z(n),l.Am.success(t("pages.profile.accountsecurity.twofactorauthentication.sms.index.messages.verification_code_has_been_sent")),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(3),l.Am.error(t("pages.profile.accountsecurity.twofactorauthentication.sms.index.messages.error_while_sending_verification_code"));
1case 16:return e.prev=16,s.setLoading(!1),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[3,13,16,19]])})));return function(t){return e.apply(this,arguments)}}(),M=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v){e.next=4;break}return T(),F(),e.abrupt("return");case 4:if(!A(v)){e.next=7;break}return l.Am.error(t("pages.profile.accountsecurity.twofactorauthentication.sms.index.messages.2fa_cant_be_enabled_for_us_numbers")),e.abrupt("return");case 7:return e.prev=7,s.setLoading(!0),e.next=11,i.addPhoneNumberForTwoFactor("+"+v);case 11:N(),l.Am.success(t("pages.profile.accountsecurity.twofactorauthentication.sms.index.messages.verification_code_has_been_resent")),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(7),l.Am.error(t("pages.profile.accountsecurity.twofactorauthentication.sms.index.messages.error_while_resending_verification_code"));case 18:return e.prev=18,s.setLoading(!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[7,15,18,21]])})));return function(){return e.apply(this,arguments)}}(),P=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s.setLoading(!0),e.next=4,i.disableTwoFactorSMS();case 4:i.account&&i.setAccount((0,w.Z)((0,w.Z)({},i.account),{},{IsSMSEnabled:!1})),Z(""),l.Am.success(t("pages.profile.accountsecurity.twofactorauthentication.sms.index.messages.two-factor_sms_authentication_has_been_removed")),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),l.Am.warning(t("pages.profile.accountsecurity.twofactorauthentication.sms.index.messages.two-factor_sms_authentication_has_not_been_removed"));case 12:return e.prev=12,s.setLoading(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,9,12,15]])})));return function(){return e.apply(this,arguments)}}(),L=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(n){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s.setLoading(!0),e.next=4,i.confirmCodeFromMessage(n);case 4:i.account&&i.setAccount((0,w.Z)((0,w.Z)({},i.account),{},{IsSMSEnabled:!0})),F(),l.Am.success(t("pages.profile.accountsecurity.twofactorauthentication.sms.index.messages.verification_code_has_been_confirmed")),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),l.Am.error(t("pages.profile.accountsecurity.twofactorauthentication.sms.index.messages.you_have_entered_wrong_verification_code"));case 12:return e.prev=12,s.setLoading(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,9,12,15]])})));return function(t){return e.apply(this,arguments)}}();return(0,W.jsxs)("div",{className:se,children:[(0,W.jsx)("div",{className:ue,children:(0,W.jsx)(V,{label:t("pages.profile.accountsecurity.twofactorauthentication.sms.index.label.sms_message_sent_to_your_phone"),checked:j,onClick:function(){j?P():_(!0)}})}),(0,W.jsx)("div",{className:le,children:t("pages.profile.accountsecurity.twofactorauthentication.sms.index.content.use_your_mobile_phone_to_receive_a_text_message_with_a_code_")}),p&&(0,W.jsx)(ne,{open:p,onClose:T,onConfirmed:R}),m&&(0,W.jsx)(ie,{open:m,onClose:F,onResendSMS:M,phoneNumber:v,timer:C,onConfirmed:L})]})})),pe="styles_container__ZF0ey",_e="styles_authenticatorScan__n17kn",fe="styles_authenticatorCode__DvND7",he=function(e){var t=e.open,n=e.onClose,i=e.onConfirmed,s=(0,te.$G)().t,u=(0,c.oR)(),d=u.loadingStore,p=u.accountStore,f=(0,r.useState)(""),h=(0,b.Z)(f,2),m=h[0],x=h[1],g=(0,r.useState)(""),y=(0,b.Z)(g,2),v=y[0],w=y[1];(0,r.useEffect)((function(){k()}),[]);var k=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(){var t;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d.setLoading(!0),e.next=4,p.getAuthenticatorAppInfo();case 4:t=e.sent,x(t.Item1),w(t.Item2),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),l.Am.warning(s("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.scanmodal.index.messages.error_while_getting_authenticator_code"));case 12:return e.prev=12,d.setLoading(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,9,12,15]])})));return function(){return e.apply(this,arguments)}}();return(0,W.jsx)(J.u,{open:t,onClose:n,closeButton:!0,disableOutsideClick:!0,scroll:"paper",title:s("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.scanmodal.index.title.link_the_app_to_your_somnium_account"),subTitle:s("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.scanmodal.index.content.use_your_authentication_app_to_scan_this_qr_code_if_"),subTitleSX:{maxWidth:"440px","&&":{display:"block"}},children:(0,W.jsxs)("div",{className:pe,children:[(0,W.jsx)("div",{className:_e,children:(0,W.jsx)("img",{loading:"lazy",decoding:"async",src:m,alt:s("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.scanmodal.index.content.qr_code")})}),(0,W.jsx)("div",{className:fe,children:v}),(0,W.jsx)(_.O,{styleType:"blue_4",type:"button",onClick:i,sx:{"&&":{fontSize:"1rem"}},children:s("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.scanmodal.index.content.done")})]})})},me="styles_form__cGdNt",xe=function(e){var t=e.open,n=e.onClose,c=e.onConfirmed,i=(0,te.$G)().t,l=s.Ry().shape({code:s.Z_().required(i("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.appcodemodal.index.validation.confirmation_code_is_required"))}),f=(0,d.cI)({resolver:(0,u.X)(l)}),h=f.control,m=f.handleSubmit,x=f.formState.errors,g=f.setFocus;(0,r.useEffect)((function(){t&&setTimeout((function(){return g("code")}),0)}),[t,g]);var y=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(t){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c(t.code);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.log("e",e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}();return(0,W.jsx)(J.u,{open:t,onClose:n,closeButton:!0,disableOutsideClick:!0,scroll:"paper",subTitleSX:{maxWidth:"440px"},title:i("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.appcodemodal.index.title.enter_the_confirmation_code"),subTitle:i("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.appcodemodal.index.content.follow_the_instructions_on_the_authentication_app_to"),children:(0,W.jsxs)("form",{onSubmit:m(y),className:me,children:[(0,W.jsx)(p.U,{name:"code",placeholder:i("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.appcodemodal.index.placeholder.confirmation_code"),control:h,errors:x,iconType:"edit",withErrorMessage:!0}),(0,W.jsx)(_.O,{styleType:"blue_4",type:"submit",sx:{"&&":{fontSize:"1rem"}},children:i("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.appcodemodal.index.content.confirm_code")})]})})},ge="styles_container__weQ8K",ye="styles_switchBox__XW4sa",ve="styles_description__h3uF5",
1we=(0,i.Pi)((function(){var e,t=(0,te.$G)().t,n=(0,c.oR)(),i=n.accountStore,s=n.loadingStore,u=(0,r.useState)(!1),d=(0,b.Z)(u,2),p=d[0],_=d[1],f=(0,r.useState)(!1),h=(0,b.Z)(f,2),m=h[0],x=h[1],g=!(null===(e=i.account)||void 0===e||!e.IsAuthenticatorConnected),y=function(){_(!1)},v=function(){x(!1)},k=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{y(),x(!0),l.Am.success(t("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.index.messages.verification_code_has_been_sent"))}catch(n){l.Am.error(t("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.index.messages.error_while_sending_verification_code"))}finally{s.setLoading(!1)}case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Z=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s.setLoading(!0),e.next=4,i.disableTwoFactorAuthenticatorApp();case 4:i.account&&i.setAccount((0,w.Z)((0,w.Z)({},i.account),{},{IsAuthenticatorConnected:!1})),l.Am.success(t("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.index.messages.two-factor_authenticator_has_been_removed")),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),l.Am.warning(t("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.index.messages.two-factor_authenticator_has_not_been_removed"));
1case 11:return e.prev=11,s.setLoading(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])})));return function(){return e.apply(this,arguments)}}(),j=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(n){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!i.account){e.next=8;break}return s.setLoading(!0),e.next=5,i.verifyAuthenticatorCode(i.account.UserName,n);case 5:i.setAccount((0,w.Z)((0,w.Z)({},i.account),{},{IsAuthenticatorConnected:!0})),v(),l.Am.success(t("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.index.messages.authenticator_code_has_been_confirmed"));case 8:e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),l.Am.error(t("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.index.messages.you_have_entered_wrong_verification_code"));case 13:return e.prev=13,s.setLoading(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[0,10,13,16]])})));return function(t){return e.apply(this,arguments)}}();return(0,W.jsxs)("div",{className:ge,children:[(0,W.jsx)("div",{className:ye,children:(0,W.jsx)(V,{label:t("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.index.label.code_from_authenticator_app"),checked:g,onClick:function(){g?Z():(s.setLoading(!0),_(!0))}})}),(0,W.jsx)("div",{className:ve,children:t("pages.profile.accountsecurity.twofactorauthentication.authenticationapp.index.content.use_an_app_to_get_an_authentication_code_to_enter_when_you_l")}),p&&(0,W.jsx)(he,{open:p,onClose:y,onConfirmed:k}),m&&(0,W.jsx)(xe,{open:m,onClose:v,onConfirmed:j})]})})),be=n(92872),ke=n(30450),Ze=n(97301),je="styles_container__IfCnj",Se="styles_backupCode__VfKM4",Ce=function(e){var t=e.open,n=e.onClose,i=(0,te.$G)().t,s=(0,c.oR)(),u=s.accountStore,d=s.loadingStore,p=(0,r.useState)(""),f=(0,b.Z)(p,2),h=f[0],m=f[1],x=(0,r.useState)(!1),g=(0,b.Z)(x,2),y=g[0],v=g[1];(0,r.useEffect)((function(){k()}),[]);var w=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(){return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.navigator.clipboard||!window.isSecureContext){e.next=11;break}return e.prev=1,e.next=4,window.navigator.clipboard.writeText(h);case 4:return v(!0),l.Am.success(i("pages.profile.accountsecurity.twofactorauthentication.backup.backupcodemodal.index.messages.code_has_been_copied")),e.abrupt("return");case 9:e.prev=9,e.t0=e.catch(1);case 11:return e.prev=11,e.next=14,(0,be.pP)(h);case 14:v(!0),l.Am.success(i("pages.profile.accountsecurity.twofactorauthentication.backup.backupcodemodal.index.messages.code_has_been_copied")),e.next=21;break;case 18:e.prev=18,e.t1=e.catch(11),l.Am.error(i("pages.profile.accountsecurity.twofactorauthentication.backup.backupcodemodal.index.messages.failed_to_copy"));case 21:case"end":return e.stop()}}),e,null,[[1,9],[11,18]])})));return function(){return e.apply(this,arguments)}}(),k=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(){var t;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d.setLoading(!0),v(!1),e.next=5,u.getBackupCode();case 5:t=e.sent,m(t),l.Am.success(i("pages.profile.accountsecurity.twofactorauthentication.backup.backupcodemodal.index.messages.new_code_has_been_generated")),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),l.Am.warning(i("pages.profile.accountsecurity.twofactorauthentication.backup.backupcodemodal.index.messages.error_while_getting_backup_code"));case 13:return e.prev=13,d.setLoading(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[0,10,13,16]])})));return function(){return e.apply(this,arguments)}}();return(0,W.jsx)(J.u,{open:t,onClose:function(){y?n():l.Am.warning(i("pages.profile.accountsecurity.twofactorauthentication.backup.backupcodemodal.index.messages.please_copy_your_backup_code_before_you_close_the_window"))},closeButton:!0,disableOutsideClick:!0,scroll:"paper",title:i("pages.profile.accountsecurity.twofactorauthentication.backup.backupcodemodal.index.title.single-use_account_verification_code"),subTitle:(0,W.jsxs)(W.Fragment,{children:[i("pages.profile.accountsecurity.twofactorauthentication.backup.backupcodemodal.index.content.if_you_ever_lose_access_to_your_2fa_mobile_device_you"),(0,W.jsx)("br",{}),(0,W.jsx)("br",{}),i("pages.profile.accountsecurity.twofactorauthentication.backup.backupcodemodal.index.content.write_it_down_or_take_a_screenshot_and_keep_it_some")]}),subTitleSX:{maxWidth:"440px","&&":{display:"block"}},children:(0,W.jsxs)("div",{className:je,children:[(0,W.jsxs)("div",{className:Se,onClick:w,children:[h,(0,W.jsx)("img",{loading:"lazy",decoding:"async",src:y?ke.Z:Ze.Z,alt:i("pages.profile.accountsecurity.twofactorauthentication.backup.backupcodemodal.index.content.copy")})]}),(0,W.jsx)(_.O,{styleType:"blue_4",type:"button",onClick:k,sx:{"&&":{fontSize:"1rem"}},children:i("pages.profile.accountsecurity.twofactorauthentication.backup.backupcodemodal.index.content.generate_a_new_code")})]})})},Ne="styles_container__bYdsn",Ae="styles_headerRow__AdJTW",Te="styles_title__pFLcy",Fe="styles_buttonWrapper__UviP2",Re="styles_description__kIrQT",Me=function(){var e=(0,te.$G)().t,t=(0,c.oR)().loadingStore,n=(0,r.useState)(!1),o=(0,b.Z)(n,2),a=o[0],i=o[1];return(0,W.jsxs)("div",{className:Ne,children:[(0,W.jsxs)("div",{className:Ae,children:[(0,W.jsx)("div",{className:Te,children:e("pages.profile.accountsecurity.twofactorauthentication.backup.index.content.single-use_account_verification_backup_code")}),(0,W.jsx)("div",{className:Fe,children:(0,W.jsx)(_.O,{styleType:"green_4",onClick:function(){t.setLoading(!0),i(!0)},sx:{padding:"6px 32px !important",height:"32px !important",fontSize:"14px !important",whiteSpace:"nowrap",width:"auto",minWidth:"unset",alignSelf:"center"},children:e("pages.profile.accountsecurity.twofactorauthentication.backup.index.content.generate_code")})})]}),(0,W.jsxs)("div",{className:Re,children:[e("pages.profile.accountsecurity.twofactorauthentication.backup.index.content.if_you_ever_lose_access_to_your_2fa_mobile_device_you"),(0,W.jsx)("br",{}),e("pages.profile.accountsecurity.twofactorauthentication.backup.index.content.write_it_down_or_take_a_screenshot_and_keep_it_some")]}),a&&(0,W.jsx)(Ce,{open:a,onClose:function(){i(!1)}})]})},Pe=function(){var e=(0,te.$G)().t;return(0,W.jsxs)("div",{className:y,children:[(0,W.jsx)(h.Z,{title:e("pages.profile.accountsecurity.twofactorauthentication.index.title.two-factor_authentication_2fa"),subTitle:(0,W.jsxs)(W.Fragment,{children:[e("pages.profile.accountsecurity.twofactorauthentication.index.content.enhance_your_account_security_by_enabling_two-factor_auth"),(0,W.jsx)("br",{}),e("pages.profile.accountsecurity.twofactorauthentication.index.content.youll_need_to_enter_this_code_each_time_you_log_in_to_s")]})}),(0,W.jsxs)("div",{className:v,children:[(0,W.jsx)(de,{}),(0,W.jsx)(we,{})]}),(0,W.jsx)("div",{className:v,children:(0,W.jsx)(Me,{})})]})},Le="styles_titleBlock__tWHIY",ze="styles_title__GabL9",Ie="styles_subTitle__yUbb5",Be=function(e){var t=e.title,n=e.subTitle,o=void 0===n?"":n;return(0,W.jsxs)("div",{className:Le,children:[(0,W.jsx)("div",{className:ze,children:t}),(0,W.jsx)("div",{className:Ie,children:o})]})},qe="styles_twoFactorBlock__j+lwn",We="styles_methodsBlock__CnWcC",Oe="styles_warningText__lZgnL",Ge="styles_form__CN-7v",Ee="styles_actions__Ii57g",De=(0,i.Pi)((function(e){var t=e.open,n=e.onClose,i=(0,te.$G)().t,f=(0,c.oR)(),h=f.accountStore,m=f.userStore,x=f.loadingStore,g=(0,r.useMemo)((function(){return s.Ry().shape({code:s.Z_().required(i("pages.profile.accountsecurity.accountdeletion.delete.deleteaccountmodal.index.validation.confirmation_code_is_required"))})}),[i]),y=(0,d.cI)({resolver:(0,u.X)(g),mode:"onSubmit",reValidateMode:"onSubmit",defaultValues:{code:""}}),v=y.control,w=y.handleSubmit,b=y.formState.errors,k=y.reset,Z=y.setFocus;(0,r.useEffect)((function(){if(t){setTimeout((function(){return Z("code")}),0);var e=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(){var t;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,x.setLoading(!0),e.next=4,h.requestDeleteAccount();case 4:l.Am.success(i("pages.profile.accountsecurity.accountdeletion.delete.deleteaccountmodal.index.messages.we_sent_you_a_confirmation_code_to_your_email")),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),l.Am.error(null!==(t=null===e.t0||void 0===e.t0?void 0:e.t0.message)&&void 0!==t?t:i("pages.profile.accountsecurity.accountdeletion.delete.deleteaccountmodal.index.messages.failed_to_start_deletion_please_try_again"));case 10:return e.prev=10,x.setLoading(!1),e.finish(10);case 13:case"end":return e.stop()}}),e,null,[[0,7,10,13]])})));return function(){return e.apply(this,arguments)}}();e()}}),[t,h,x,Z,i]);var j=function(){var e=(0,a.Z)((0,o.Z)().mark((function e(t){var n;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,x.setLoading(!0),e.next=4,h.confirmDeleteAccount(String(t.code||"").trim());case 4:l.Am.success(i("pages.profile.accountsecurity.accountdeletion.delete.deleteaccountmodal.index.messages.account_deleti
1on_confirmed")),k(),m.setBlankUserInfo(),h.setAccount(null),window.location.href="/",l.Am.success(i("pages.profile.accountsecurity.accountdeletion.delete.deleteaccountmodal.index.messages.you_have_successfully_logged_off")),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),l.Am.error(null!==(n=null===e.t0||void 0===e.t0?void 0:e.t0.message)&&void 0!==n?n:i("pages.profile.accountsecurity.accountdeletion.delete.deleteaccountmodal.index.messages.invalid_code_or_failed_to_confirm_deletion"));case 12:return e.prev=12,x.setLoading(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,9,12,15]])})));return function(t){return e.apply(this,arguments)}}();return(0,W.jsx)(J.u,{open:t,onClose:function(){k(),n()},closeButton:!0,disableOutsideClick:!0,scroll:"paper",title:i("pages.profile.accountsecurity.accountdeletion.delete.deleteaccountmodal.index.title.delete_account"),subTitle:(0,W.jsxs)(W.Fragment,{children:[i("pages.profile.accountsecurity.accountdeletion.delete.deleteaccountmodal.index.content.are_you_sure_you_want_to_delete_your_account_you_will_be"),(0,W.jsx)("br",{}),(0,W.jsx)("br",{}),i("pages.profile.accountsecurity.accountdeletion.delete.deleteaccountmodal.index.content.enter_the_code_we_sent_to_your_email_to_confirm_deletio")]}),subTitleSX:{maxWidth:"520px","&&":{display:"block"}},children:(0,W.jsxs)("form",{onSubmit:w(j),className:Ge,children:[(0,W.jsx)(p.U,{name:"code",placeholder:i("pages.profile.accountsecurity.accountdeletion.delete.deleteaccountmodal.index.placeholder.confirmation_code"),control:v,errors:b,iconType:"edit",withErrorMessage:!0}),(0,W.jsxs)("div",{className:Ee,children:[(0,W.jsx)(_.O,{styleType:"red",type:"submit",sx:{"&&":{fontSize:"1rem"}},children:i("pages.profile.accountsecurity.accountdeletion.delete.deleteaccountmodal.index.content.confirm_deletion")}),(0,W.jsx)(_.O,{styleType:"blue_4",type:"button",onClick:function(){k(),n()},sx:{"&&":{fontSize:"1rem"}},children:i("pages.profile.accountsecurity.accountdeletion.delete.deleteaccountmodal.index.content.cancel")})]})]})})})),Xe="styles_container__WnANZ",$e="styles_content__ZN3JP",Ue="styles_title__CUeZp",Ve="styles_description__+r7KY",Ke="styles_buttonWrapper__VLkhh",Je="styles_warningText__4YnPe",Ye=function(){var e=(0,te.$G)().t,t=(0,c.oR)().loadingStore,n=(0,r.useState)(!1),o=(0,b.Z)(n,2),a=o[0],i=o[1];return(0,W.jsxs)("div",{className:Xe,children:[(0,W.jsxs)("div",{className:$e,children:[(0,W.jsx)("div",{className:Ue,children:e("pages.profile.accountsecurity.accountdeletion.delete.index.content.delete_your_somnium_space_account")}),(0,W.jsxs)("div",{className:Ve,children:[e("pages.profile.accountsecurity.accountdeletion.delete.index.content.after_clicking_this_button_you_will_be_logged_out_immedi"),(0,W.jsx)("br",{}),e("pages.profile.accountsecurity.accountdeletion.delete.index.content.your_account_will_enter_a_30-day_recovery_period"),(0,W.jsx)("br",{}),(0,W.jsx)("span",{className:Je,children:e("pages.profile.accountsecurity.accountdeletion.delete.index.content.if_you_do_not_restore_it_within_that_time_it_will_be_permane")})]})]}),(0,W.jsx)("div",{className:Ke,children:(0,W.jsx)(_.O,{styleType:"red",onClick:function(){t.setLoading(!0),i(!0)},sx:{padding:"6px 24px !important",height:"36px !important",fontSize:"14px !important",border:"2px solid transparent !important",whiteSpace:"nowrap",width:"auto",minWidth:"unset",alignSelf:"center"},children:e("pages.profile.accountsecurity.accountdeletion.delete.index.content.delete_somnium_account")})}),a&&(0,W.jsx)(De,{open:a,onClose:function(){i(!1)}})]})},He=function(){var e=(0,te.$G)().t;return(0,W.jsxs)("div",{className:qe,children:[(0,W.jsx)(Be,{title:e("pages.profile.accountsecurity.accountdeletion.index.title.account_deletion"),subTitle:(0,W.jsxs)(W.Fragment,{children:[e("pages.profile.accountsecurity.accountdeletion.index.content.removing_your_account_will_permanently_erase_your_profile")," ",(0,W.jsx)("span",{className:Oe,children:e("pages.profile.accountsecurity.accountdeletion.index.content.once_your_account_is_deleted_you_will_no_longer_be_able_to_l")})]})}),(0,W.jsx)("div",{className:We,children:(0,W.jsx)(Ye,{})})]})},Qe=(0,i.Pi)((function(){var e=(0,te.$G)().t,t=(0,c.oR)(),n=t.accountStore,r=t.loadingStore,i=s.Ry().shape({oldPassword:s.Z_().min(8,e("pages.profile.accountsecurity.index.validation.password_must_be_at_least_8_characters_long")).matches(/[0-9]/,e("pages.profile.accountsecurity.index.validation.password_must_contain_at_least_one_digit")).matches(/[A-Z]/,e("pages.profile.accountsecurity.index.validation.password_must_contain_at_least_one_uppercase_letter")).test("unique-chars",e("pages.profile.accountsecurity.index.validation.password_must_have_a_minimum_of_5_unique_characters"),(function(e){return!e||new Set(e).size>=5})).required(e("pages.profile.accountsecurity.index.validation.old_password_is_required")),newPassword:s.Z_().min(8,e("pages.profile.accountsecurity.index.validation.password_must_be_at_least_8_characters_long")).matches(/[0-9]/,e("pages.profile.accountsecurity.index.validation.password_must_contain_at_least_one_digit")).matches(/[A-Z]/,e("pages.profile.accountsecurity.index.validation.password_must_contain_at_least_one_uppercase_letter")).test("unique-chars",e("pages.profile.accountsecurity.index.validation.password_must_have_a_minimum_of_5_unique_characters"),(function(e){return!e||new Set(e).size>=5})).required(e("pages.profile.accountsecurity.index.validation.new_password_is_required")),confirmPassword:s.Z_().oneOf([s.iH("newPassword"),""],e("pages.profile.accountsecurity.index.validation.the_confirmation_password_must_match_the_new_password")).required(e("pages.profile.accountsecurity.index.validation.confirm_password_is_required"))}),y=(0,d.cI)({resolver:(0,u.X)(i)}),v=y.control,w=y.handleSubmit,b=y.formState.errors,k=y.reset,Z=function(){var t=(0,a.Z)((0,o.Z)().mark((function t(a){var c;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r.setLoading(!0),t.next=4,n.changePassword(a);case 4:l.Am.success(e("pages.profile.accountsecurity.index.messages.changes_saved_successfully")),j(),t.next=12;break;case 8:t.prev=8,t.t0=t.catch(0),console.log("error",t.t0),l.Am.error(null!==(c=t.t0.message)&&void 0!==c?c:e("pages.profile.accountsecurity.index.messages.something_went_wrong_please_try_again"));case 12:return t.prev=12,r.setLoading(!1),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[0,8,12,15]])})));return function(e){return t.apply(this,arguments)}}(),j=function(){k()};return(0,W.jsxs)("div",{className:m,children:[(0,W.jsx)(f.E,{title:e("pages.profile.accountsecurity.index.title.account_security"),subTitle:e("pages.profile.accountsecurity.index.content.manage_your_account_data")}),(0,W.jsx)(h.Z,{title:e("pages.profile.accountsecurity.index.title.personal_account_password"),subTitle:e("pages.profile.accountsecurity.index.content.for_your_security_we_highly_recommend_that_you_choose_a_uni")}),(0,W.jsxs)("form",{onSubmit:w(Z),className:x,id:"changePasswordForm",children:[(0,W.jsx)(p.U,{name:"oldPassword",label:e("pages.profile.accountsecurity.index.label.old_password"),type:"password",placeholder:e("pages.profile.accountsecurity.index.placeholder.dash"),iconType:"edit",control:v,errors:b,withErrorMessage:!0}),(0,W.jsxs)("div",{className:g,children:[(0,W.jsx)(p.U,{name:"newPassword",label:e("pages.profile.accountsecurity.index.label.new_password"),type:"password",placeholder:e("pages.profile.accountsecurity.index.placeholder.dash"),iconType:"edit",control:v,errors:b,withErrorMessage:!0}),(0,W.jsx)(p.U,{name:"confirmPassword",label:e("pages.profile.accountsecurity.index.label.confirm_new_password"),type:"password",placeholder:e("pages.profile.accountsecurity.index.placeholder.dash"),iconType:"edit",control:v,errors:b,withErrorMessage:!0})]})]}),(0,W.jsx)(_.O,{styleType:"green_4",type:"submit",form:"changePasswordForm",sx:{maxWidth:"400px",marginTop:"30px"},children:e("pages.profile.accountsecurity.index.content.save_changes")}
1),n.account?(0,W.jsx)(Pe,{}):null,n.account?(0,W.jsx)(He,{}):null]})})),et=Qe},16429:function(e,t,n){n.d(t,{Z:function(){return g}});var o=n(63366),a=n(87462),r=n(47313),c=n(94146),i=n(67256),s=n(17592),u=n(77342),l=n(43849),d=n(42268);function p(e){return(0,d.Z)("MuiFormGroup",e)}(0,l.Z)("MuiFormGroup",["root","row","error"]);var _=n(99008),f=n(80300),h=n(46417),m=["className","row"],x=(0,s.ZP)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.row&&t.row]}})((function(e){var t=e.ownerState;return(0,a.Z)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),g=r.forwardRef((function(e,t){var n=(0,u.Z)({props:e,name:"MuiFormGroup"}),r=n.className,s=n.row,l=void 0!==s&&s,d=(0,o.Z)(n,m),g=(0,_.Z)(),y=(0,f.Z)({props:n,muiFormControl:g,states:["error"]}),v=(0,a.Z)({},n,{row:l,error:y.error}),w=function(e){var t=e.classes,n={root:["root",e.row&&"row",e.error&&"error"]};return(0,i.Z)(n,p,t)}(v);return(0,h.jsx)(x,(0,a.Z)({className:(0,c.Z)(w.root,r),ownerState:v,ref:t},d))}))}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.