PageSourceSearch

https://my.amdax.com/_next/static/chunks/7133-95b7554abd097f67.js

js amdax.com collected 2026-10-02 15:17:57 UTC 13,664 bytes, 36 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7133],{39724:(e,t,i)=>{i.d(t,{y:()=>S});var n,a,s=i(37876),o=i(71017),r=i(14232),l=i(60199),c=i(40862),d=i(1092);function g(){return(g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}var f=(0,r.forwardRef)(function(e,t){return r.createElement("svg",g({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),n||(n=r.createElement("g",{id:"mfa-authenticator_svg__UI Icons"},r.createElement("path",{id:"mfa-authenticator_svg__Vector",fillRule:"evenodd",clipRule:"evenodd",d:"M17.6 21C17.8209 21 18 20.8209 18 20.6V3.4C18 3.17909 17.8209 3 17.6 3H6.4C6.17909 3 6 3.17909 6 3.4V20.6C6 20.8209 6.17909 21 6.4 21H17.6Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),r.createElement("path",{id:"mfa-authenticator_svg__Vector_2",d:"M9.87695 5.5H14.123C14.1262 5.5 14.1493 5.50034 14.1826 5.54004C14.2171 5.58135 14.25 5.65417 14.25 5.75C14.25 5.84583 14.2171 5.91865 14.1826 5.95996C14.1493 5.99966 14.1262 6 14.123 6H9.87695C9.87382 6 9.85069 5.99968 9.81738 5.95996C9.78283 5.91864 9.75 5.8458 9.75 5.75C9.75 5.6542 9.78283 5.58136 9.81738 5.54004C9.85069 5.50031 9.87382 5.5 9.87695 5.5Z",fill:"currentColor",stroke:"currentColor"}))))});function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)({}).hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(null,arguments)}var m=(0,r.forwardRef)(function(e,t){return r.createElement("svg",h({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t},e),a||(a=r.createElement("g",{id:"mfa-sms_svg__UI Icons"},r.createElement("path",{id:"mfa-sms_svg__Vector",d:"M20.9287 4.28906V16.2324H11.5166L11.3213 16.3721L6.7002 19.6787V16.2324H3.07031V4.28906H20.9287Z",stroke:"currentColor",strokeWidth:1.5}),r.createElement("path",{id:"mfa-sms_svg__Rectangle 41827",d:"M6.97656 8.00625C6.97656 7.67488 7.24519 7.40625 7.57656 7.40625H13.3813C13.7127 7.40625 13.9813 7.67488 13.9813 8.00625V8.30649C13.9813 8.63786 13.7127 8.90649 13.3813 8.90649H7.57656C7.24519 8.90649 6.97656 8.63786 6.97656 8.30649V8.00625Z",fill:"currentColor"}),r.createElement("path",{id:"mfa-sms_svg__Rectangle 41828",d:"M6.97656 11.85C6.97656 11.5186 7.24519 11.25 7.57656 11.25H16.323C16.6543 11.25 16.923 11.5186 16.923 11.85V12.1502C16.923 12.4816 16.6543 12.7502 16.323 12.7502H7.57656C7.24519 12.7502 6.97656 12.4816 6.97656 12.1502V11.85Z",fill:"currentColor"}))))}),p=i(45686),u=i(40758),x=i(5646);let _=(0,x.i7)(["0%{background-position:-600px 0;}100%{background-position:600px 0;}"]),w=(0,x.AH)(["background:",";background-size:1200px 100%;animation:"," 1.4s infinite linear;flex-shrink:0;@media (prefers-reduced-motion:reduce){animation:none;}"],({theme:e})=>`linear-gradient(90deg, ${e.colors.white.off} 25%, ${e.colors.gray.disabled} 50%, ${e.colors.white.off} 75%)`,_),b=x.Ay.div.withConfig({componentId:"sc-56e5c060-0"})(["width:24px;height:24px;flex-shrink:0;color:",";svg{display:block;width:24px;height:24px;}"],({theme:e})=>e.colors.primary.bright),y=x.Ay.span.withConfig({componentId:"sc-56e5c060-1"})(["display:inline-flex;align-items:center;padding:",";border-radius:6px;background:",";color:",";font-family:",";font-size:",";line-height:",";font-weight:",";white-space:nowrap;"],({theme:e})=>`${e.ui.spacing.extraSmall} ${e.ui.spacing.smallPlus}`,({theme:e})=>e.colors.primary.tint,({theme:e})=>e.colors.primary.bright,({theme:e})=>e.fonts.primary,({theme:e})=>e.fonts.size.small,({theme:e})=>e.fonts.lineHeight.smallPlus,({theme:e})=>e.fonts.weight.semiBold),v=x.Ay.div.withConfig({componentId:"sc-56e5c060-2"})(["width:24px;height:24px;border-radius:",";",""],({theme:e})=>e.ui.rounded.default,w),j=x.Ay.div.withConfig({componentId:"sc-56e5c060-3"})(["width:",";height:",";border-radius:",";",""],({$width:e})=>e,({$height:e})=>e,({theme:e})=>e.ui.rounded.default,w),C=x.Ay.div.withConfig({componentId:"sc-56e5c060-4"})(["display:flex;flex-direction:column;justify-content:center;gap:",";height:43px;"],({theme:e})=>e.ui.spacing.small),A=[o.iU.Authenticator,o.iU.SMS],I={viewBox:"0 0 24 24","aria-hidden":!0},k={[o.iU.Authenticator]:{label:"settings_manage_mfa_method_authenticator_label",description:"settings_manage_mfa_method_authenticator_help_text",icon:(0,s.jsx)(f,{...I}),isMostSecure:!0},[o.iU.SMS]:{label:"settings_manage_mfa_method_sms_label",description:"settings_manage_mfa_method_sms_help_text",icon:(0,s.jsx)(m,{...I})}},M=({method:e})=>{let{t}=(0,l.Bd)(),i=k[e];return(0,s.jsxs)(u.CZ,{"data-testid":`manageMfaMethod-${e}`,children:[(0,s.jsx)(b,{children:i.icon}),(0,s.jsxs)(u.H0,{children:[(0,s.jsx)(u.Yt,{as:"h3",children:t(i.label)}),(0,s.jsx)(u.Xd,{children:t(i.description)})]}),i.isMostSecure&&(0,s.jsx)(u.Mq,{children:(0,s.jsx)(y,{"data-testid":`manageMfaSecureBadge-${e}`,children:t("settings_manage_mfa_method_authenticator_security_label")})})]})},$=({"data-testid":e})=>(0,s.jsxs)(u.CZ,{"data-testid":e,children:[(0,s.jsx)(v,{}),(0,s.jsxs)(C,{children:[(0,s.jsx)(j,{$width:"120px",$height:"16px"}),(0,s.jsx)(j,{$width:"200px",$height:"13px"})]})]}),H=({labelKey:e,testId:t,children:i})=>{let{t:n}=(0,l.Bd)();return(0,s.jsxs)("div",{"data-testid":t,children:[(0,s.jsx)(u.TX,{children:n(e)}),(0,s.jsx)(u.ct,{children:i})]})},S=({enrollments:e,isLoading:t=!1,isError:i=!1,onRetry:n})=>{let{t:a}=(0,l.Bd)(),{openModal:g}=(0,d.n)(),f=r.useMemo(()=>{let t=t=>e.some(e=>e.type===t),i=[];return t(o.Qm.TOTP)&&i.push(o.iU.Authenticator),t(o.Qm.PHONE)&&i.push(o.iU.SMS),i},[e]),h=r.useMemo(()=>A.filter(e=>!f.includes(e)),[f]),m=f.length>0,x=h.length>0;return(0,s.jsxs)(u.KT,{"data-testid":"manageMfaContainer",children:[(0,s.jsxs)(u.$q,{children:[(0,s.jsxs)(u.IL,{children:[(0,s.jsx)(u.eA,{as:"h2",children:a("settings_manage_mfa_title")}),(0,s.jsx)(u.g7,{dangerouslySetInnerHTML:{__html:(0,c.w_)(a("settings_manage_mfa_de
1scription"))}})]}),(0,s.jsx)(u.JE,{children:(0,s.jsx)(p.$n,{variant:"primary",size:"auto",onClick:()=>g({modalId:o.q3.ResetMfa}),children:a("settings_manage_mfa_reset_button")})})]}),(0,s.jsx)(u.jO,{$gapTop:"32px"}),i?(0,s.jsxs)(u.$f,{children:[(0,s.jsx)(u.bU,{"data-testid":"manageMfaError",children:a("general_error_title_short")}),n&&(0,s.jsx)(p.$n,{variant:"secondary",size:"small","data-testid":"manageMfaErrorRetry",onClick:n,children:a("button_try_again")})]}):t?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(H,{labelKey:"settings_manage_mfa_active_title",testId:"manageMfaActiveMethods",children:(0,s.jsx)($,{"data-testid":"manageMfaActiveLoading"})}),(0,s.jsx)(u.jO,{}),(0,s.jsx)(H,{labelKey:"settings_manage_mfa_available_title",testId:"manageMfaAvailableMethods",children:(0,s.jsx)($,{"data-testid":"manageMfaAvailableLoading"})})]}):(0,s.jsxs)(s.Fragment,{children:[m&&(0,s.jsx)(H,{labelKey:"settings_manage_mfa_active_title",testId:"manageMfaActiveMethods",children:f.map(e=>(0,s.jsx)(M,{method:e},e))}),m&&x&&(0,s.jsx)(u.jO,{}),x&&(0,s.jsx)(H,{labelKey:"settings_manage_mfa_available_title",testId:"manageMfaAvailableMethods",children:h.map(e=>(0,s.jsx)(M,{method:e},e))})]})]})}},40758:(e,t,i)=>{i.d(t,{KT:()=>o,g7:()=>d,jO:()=>f,$f:()=>y,bU:()=>b,$q:()=>r,JE:()=>g,IL:()=>l,CZ:()=>p,H0:()=>u,Xd:()=>_,Yt:()=>x,Mq:()=>w,TX:()=>h,ct:()=>m,eA:()=>c});var n=i(5646),a=i(63909),s=i(28546);let o=n.Ay.div.withConfig({componentId:"sc-5f25fb0c-0"})(["padding:",";border-radius:",";background:",";box-shadow:",";"],({theme:e})=>e.ui.spacing.large,({theme:e})=>e.ui.rounded.large,({theme:e})=>e.colors.white.base,({theme:e})=>e.ui.shadows.cardSoft),r=n.Ay.div.withConfig({componentId:"sc-5f25fb0c-1"})(["display:flex;flex-direction:column;align-items:flex-start;gap:",";",""],({theme:e})=>e.ui.spacing.default,a.$_.tablet`
2    flex-direction: row;
3    align-items: flex-start;
4    gap: 0;
5  `),l=n.Ay.div.withConfig({componentId:"sc-5f25fb0c-2"})(["min-width:0;"]),c=(0,n.Ay)(s.D).withConfig({componentId:"sc-5f25fb0c-3"})(["font-size:",";line-height:",";letter-spacing:",";font-weight:",";color:",";margin:0;"],({theme:e})=>e.fonts.size.semiLarge,({theme:e})=>e.fonts.lineHeight.semiMedium,({theme:e})=>e.fonts.letterSpacing.lightTight,({theme:e})=>e.fonts.weight.semiBold,({theme:e})=>e.colors.primary.surface),d=(0,n.Ay)(s.f).withConfig({componentId:"sc-5f25fb0c-4"})(["font-size:",";line-height:",";color:",";margin:",";"],({theme:e})=>e.fonts.size.small,({theme:e})=>e.fonts.lineHeight.semiSmall,({theme:e})=>e.colors.primary.surface,({theme:e})=>`${e.ui.spacing.small} 0 0`),g=n.Ay.div.withConfig({componentId:"sc-5f25fb0c-5"})(["flex-shrink:0;button,a{min-width:160px;}",""],a.$_.tablet`
6    margin-left: auto;
7  `),f=n.Ay.hr.withConfig({componentId:"sc-5f25fb0c-6"})(["border:0;border-top:1px solid ",";margin:",";"],({theme:e})=>e.colors.divider,({$gapTop:e="24px",$gapBottom:t="24px"})=>`${e} 0 ${t}`),h=n.Ay.p.withConfig({componentId:"sc-5f25fb0c-7"})(["font-family:",";font-size:",";line-height:",";font-weight:",";color:",";margin:0;"],({theme:e})=>e.fonts.primary,({theme:e})=>e.fonts.size.small,({theme:e})=>e.fonts.lineHeight.smallPlus,({theme:e})=>e.fonts.weight.semiBold,({theme:e})=>e.colors.surface),m=n.Ay.div.withConfig({componentId:"sc-5f25fb0c-8"})(["margin-top:",";"],({theme:e})=>e.ui.spacing.default),p=n.Ay.div.withConfig({componentId:"sc-5f25fb0c-9"})(["display:flex;align-items:flex-start;flex-wrap:wrap;gap:",";row-gap:",";",""],({theme:e})=>e.ui.spacing.medium,({theme:e})=>e.ui.spacing.smallPlus,a.$_.tablet`
8    align-items: center;
9    flex-wrap: nowrap;
10  `),u=n.Ay.div.withConfig({componentId:"sc-5f25fb0c-10"})(["flex:1 1 0;min-width:0;"]),x=(0,n.Ay)(s.D).withConfig({componentId:"sc-5f25fb0c-11"})(["font-size:",";line-height:",";letter-spacing:",";font-weight:",";color:",";margin:0;overflow-wrap:anywhere;"],({theme:e})=>e.fonts.size.default,({theme:e})=>e.fonts.lineHeight.semiSmallPlus,({theme:e})=>e.fonts.letterSpacing.slightlyTightPlus,({theme:e})=>e.fonts.weight.semiBold,({theme:e})=>e.colors.primary.surface),_=n.Ay.p.withConfig({componentId:"sc-5f25fb0c-12"})(["font-family:",";font-size:",";line-height:",";color:",";margin:0;"],({theme:e})=>e.fonts.primary,({theme:e})=>e.fonts.size.small,({theme:e})=>e.fonts.lineHeight.semiSmall,({theme:e})=>e.colors.primary.surface),w=n.Ay.div.withConfig({componentId:"sc-5f25fb0c-13"})(["flex:1 0 100%;display:flex;align-items:center;padding-left:",";",""],({theme:e})=>e.ui.spacing.ultraLarge,a.$_.tablet`
11    flex: 0 0 auto;
12    margin-left: auto;
13    padding-left: 0;
14  `),b=(0,n.Ay)(_).withConfig({componentId:"sc-5f25fb0c-14"})(["color:",";"],({theme:e})=>e.colors.primary.surface),y=n.Ay.div.withConfig({componentId:"sc-5f25fb0c-15"})(["display:flex;flex-direction:column;align-items:flex-start;gap:",";"],({theme:e})=>e.ui.spacing.smallPlus)},97133:(e,t,i)=>{i.d(t,{Wi:()=>b,mm:()=>v});var n=i(37876),a=i(71017);i(14232);var s=i(60199),o=i(57839),r=i(75489),l=i(1092),c=i(96705),d=i(22639),g=i(32247),f=i(5646),h=i(63909),m=i(36456);let p=f.Ay.div.withConfig({componentId:"sc-370fe5a6-0"})(["display:flex;flex-direction:column;margin-bottom:24px;padding:24px;background-color:",";box-shadow:",";border-radius:",";&:last-child{margin-bottom:0;}",""],({theme:e})=>e.colors.white.base,({theme:e})=>e.ui.shadows.default,({theme:e})=>
14e.ui.rounded.default,h.$_.desktop`
15    flex-direction: row;
16    flex-wrap: wrap;
17    align-items: center;
18  `),u=f.Ay.div.withConfig({componentId:"sc-370fe5a6-1"})(["display:flex;align-items:center;width:100%;margin-bottom:24px;&:last-child{margin-bottom:0;}","{flex:2;","}",";"],m.fr,h.$_.desktop`
19      flex: 1;
20    `,({asLink:e})=>e&&(0,f.AH)(["cursor:pointer;",""],h.$_.desktop`
21      transition: color .2s ease-in;
22
23      svg {
24        transition: fill .2s ease-in;
25      }
26
27      &:hover {
28        color: ${({theme:e})=>e.colors.primary.light};
29
30        svg {
31          fill: ${({theme:e})=>e.colors.primary.light};
32        }
33      }
34    `)),x=f.Ay.span.withConfig({componentId:"sc-370fe5a6-2"})(["font-size:20px;line-height:30px;margin-right:16px;flex:1;",""],h.$_.desktop`
35    flex: 2;
36  `),_=f.Ay.span.withConfig({componentId:"sc-370fe5a6-3"})(["display:block;font-size:14px;line-height:21px;margin:6px 16px 0 0;color:",";"],({theme:e})=>e.colors.gray.dark),w=f.Ay.div.withConfig({componentId:"sc-370fe5a6-4"})(["margin-bottom:auto;margin-left:auto;"]),b=()=>{let{t:e}=(0,s.Bd)(),{openModal:t}=(0,l.n)(),i=(0,r.Qi)(),{mutateAsync:f,isPending:h}=(0,o.B)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(p,{children:(0,n.jsxs)(u,{"data-testid":"languageSelect",children:[(0,n.jsx)(x,{children:e("settings_change_language")}),(0,n.jsx)(g.pZ,{})]})}),(0,n.jsx)(p,{children:(0,n.jsxs)(u,{children:[(0,n.jsxs)(x,{children:[e("settings_hide_small_balances_title"),(0,n.jsx)(_,{children:e("settings_hide_small_balances_description")})]}),(0,n.jsx)(w,{children:(0,n.jsx)(c.dO,{"data-testid":"smallBalancesSwitch",name:"small_balances_switch",value:i,onChange:()=>{h||f({hide_small_balance:!i}).catch(()=>{d.Eg.error({message:e("settings_preferences_error_save"),id:"settings_preferences_error_save"})})}})})]})}),(0,n.jsx)(p,{children:(0,n.jsx)(u,{"data-testid":"deleteAccount",asLink:!0,onClick:()=>t({modalId:a.q3.DeleteAccount}),children:(0,n.jsx)(x,{children:e("settings_delete_account_title")})})})]})};var y=i(45686);let v=()=>{let{t:e}=(0,s.Bd)();return(0,n.jsx)(y.tU,{type:a.n7.AsLink,tabs:[{id:"settings_general",link:"/dashboard/settings",title:e("settings_general")},{id:"settings_mfa",link:"/dashboard/settings/mfa",title:e("settings_security")}]})};i(39724)}}]);

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.