PageSourceSearch

https://connect.aacr25.org/_next/static/chunks/5974.f7caed8bbf3d6afc.js

js aacr25.org collected 2026-10-07 20:50:02 UTC 6,512 bytes, 1 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="c56cfac3-0467-488a-8c0c-09c57777961a",e._sentryDebugIdIdentifier="sentry-dbid-c56cfac3-0467-488a-8c0c-09c57777961a")}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5974],{35974:function(e,r,s){s.r(r),s.d(r,{default:function(){return P}});var n=s(52322),t=s(2784),i=s(12866),a=s(55028),d=s(96866),o=s(88662),l=s(75388),c=s(56312),h=s(21467),p=s(16997),u=s(67862),f=s(81548),g=s(33379),w=s(82778);function m(){let e=(0,u._)(["\n  mutation DefinePassword($newPassword: String!, $withUserConsents: Boolean!) {\n    Auth_setPassword(newPassword: $newPassword)\n    Core_setUserTermsAgreementV2(input: { hasAgreed: true })\n      @include(if: $withUserConsents) {\n      user {\n        id\n        termsAgreedOn\n      }\n    }\n  }\n"]);return m=function(){return e},e}let _=(0,f.Ps)(m());var x=function(e){let{onCompleted:r}=e,s=(0,w.h)(),[n,{loading:t}]=(0,g.D)(_,{onError:s,onCompleted:r});return{definePassword:n,updating:t}};let b=i.ZP.form.withConfig({displayName:"define-password__Form",componentId:"sc-db0bf1f-0"})(["@media screen and (min-width:","px){min-width:500px;}"],e=>{let{theme:r}=e;return r.breakPoints.sm}),j=i.ZP.div.withConfig({displayName:"define-password__UserConsents",componentId:"sc-db0bf1f-1"})(["margin-top:",";"],e=>{let{theme:r}=e;return r.spacing[6]}),y=i.ZP.div.withConfig({displayName:"define-password__InputWrapper",componentId:"sc-db0bf1f-2"})(["position:relative;display:grid;gap:",";"],e=>{let{theme:r}=e;return r.spacing[1]});function v(e){let{withUserConsents:r,closable:s}=e,{t:i}=(0,c.$G)(),[o,u]=(0,t.useState)(!0),[f,g]=(0,t.useState)(!1),[w,m]=(0,t.useState)(!1),{hint:_,input:v}=(0,l.dE)(),{definePassword:P,updating:C}=x({onCompleted:()=>{u(!1),(0,p.L)({category:"Login",action:"Reset password completed"})}}),Z=v.dirty&&v.valid&&(!r||w&&f),N=async e=>{e.preventDefault(),Z&&await P({variables:{newPassword:v.value,withUserConsents:!!r}})};return o?(0,n.jsxs)(d.ZP,{onClose:s?()=>{u(!1)}:void 0,noMobileFullscreen:!0,children:[(0,n.jsx)(d.fK,{children:(0,n.jsx)(d.$N,{children:i("define_password.title")})}),(0,n.jsxs)(b,{onSubmit:N,children:[(0,n.jsxs)(d.cZ,{children:[(0,n.jsx)(d.Be,{children:i("define_password.information")}),(0,n.jsxs)(y,{children:[(0,n.jsx)(a.Z,{required:!0,htmlFor:"password",children:i("password")}),(0,n.jsx)(l.CM,{...v,"aria-label":i("password"),placeholder:i("define_password.placeholder"),disabled:C,id:"password"}),(0,n.jsx)(l.ZP,{..._})]}),r&&(0,n.jsx)(j,{children:(0,n.jsx)(h.Z,{termsOfUse:f,onTermsOfUseChange:e=>{g(e)},privacyPolicy:w,onPrivacyPolicyChange:e=>{m(e)}})})]}),(0,n.jsx)(d.cN,{children:(0,n.jsx)(d.Qd,{disabled:!Z,type:"submit",loading:C,children:i("access_the_app")})})]})]}):null}var P=function(e){let{withUserConsents:r,closable:s}=e,{t}=(0,c.$G)();return(0,n.jsx)(o.ZP,{value:{getMessageFromGraphQLError:e=>{let{code:r}=e;switch(r){case"INVALID_PASSWORD":return t("settings_password_code_err_invalid");case"WEAK_PASSWORD":return t("error_weak_password");default:return t("error_generic_toast_message")}}},children:(0,n.jsx)(v,{withUserConsents:r,closable:s})})}},21467:function(e,r,s){s.d(r,{Z:function(){return o}});var n=s(52322),t=s(3957),i=s(76773),a=s(46448),d=s(56312);function o(e){let{termsOfUse:r,privacyPolicy:s,onTermsOfUseChange:o,onPrivacyPolicyChange:l}=e;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(i.Z,{"aria-label":"Terms of use",required:!0,checked:r,onChange:e=>{let{target:{checked:r}}=e;return o(r)},children:(0,n.jsx)("span",{children:(0,n.jsxs)(d.cC,{i18nKey:"accept_terms_of_use",children:["I accept the",(0,n.jsx)(a.ZP,{as:"a",target:"_blank",variant:"LINK_NO_UNDERLINE",href:"https://www.swapcard.com/terms-of-use",children:"Terms of use"})]})})}),(0,n.jsx)(t.Z,{of:12}),(0,n.jsx)(i.Z,{"aria-label":"Privacy Policy",checked:s,required:!0,onChange:e=>{let{target:{checked:r}}=e;return l(r)},children:(0,n.jsx)("span",{children:(0,n.jsxs)(d.cC,{i18nKey:"accept_privacy_policy",children:["I accept the",(0,n.jsx)(a.ZP,{as:"a",target:"_blank",variant:"LINK_NO_UNDERLINE",href:"https://www.swapcard.com/privacy-policy",children:"Privacy Policy"})]})})})]})}},75388:function(e,r,s){s.d(r,{CM:function(){return a.Z},dE:function(){return h}});var n=s(52322),t=s(12866),i=s(5045),a=s(35935),d=s(13920);let o=t.ZP.div.withConfig({displayName:"input-password-hint__Wrapper",componentId:"sc-96a45fe4-0"})(["display:grid;grid-template-columns:1fr;@media screen and (min-width:","px){grid-template-columns:max-content max-content;grid-gap:0px 64px;}"],e=>{let{theme:r}=e;return r.breakPoints.xs}),l=(0,t.ZP)(i.Z).withConfig({displayName:"input-password-hint__Label",componentId:"sc-96a45fe4-1"})(["margin-bottom:",";color:",";"],e=>{let{theme:r}=e;return r.spacing[2]},e=>{let{theme:r}=e;return r.colors.text.base}),c=(0,t.ZP)(i.Z).withConfig({displayName:"input-password-hint__Hint",componentId:"sc-96a45fe4-2"})(["color:",";",' &:before{content:"•";margin:0 6px;}'],e=>{let{self:r,highlightErrors:s,valid:n,theme:{colors:t}}=e;return n?t.success.base:s?t.danger.base:r?t.text.base:t.surface.on},e=>{let{self:r}=e;return!r&&"font-size: 10px;"});function h(){let e=(0,a.J)(),r=e.value.trim().length>=10,s=/\d/.test(e.value),n=/[A-Z]/.test(e.value),t=/[a-z]/.test(e.value);return{input:{...e,valid:r&&s&&n&&t||!e.dirty},hint:{highlightErrors:!e.focused&&e.dirty,longEnough:r,hasNumber:s,hasUppercase:n,hasLowercase:t}}}r.ZP=function(e){let{self:r=!1,highlightErrors:s,longEnough:t,hasNumber:i,hasUppercase:a,hasLowercase:h}=e,p=(0,d.T_)();return r?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(l,{children:p.passwordHintLabel}),(0,n.jsxs)(o,{children:[(0,n.jsx)(c,{self:!0,highlightErrors:s,valid:t,children:p.passwordHintLengthLight(10)}),(0,n.jsx)(c,{self:!0,highlightErrors:s,valid:h,children:p.passwordHintLowercaseLight}),(0,n.jsx)(c,{self:!0,highlightErrors:s,valid:i,children:p.passwordHintNumberLight}),(0,n.jsx)(c,{self:!0,highlightErrors:s,valid:a,children:p.passwordHintUppercaseLight})]})]}):(0,n.jsxs)(o,{children:[(0,n.jsx)(c,{highlightErrors:s,valid:t,children:p.passwordHintLength(10)}),(0,n.jsx)(c,{highlightErrors:s,valid:h,children:p.passwordHintLowercase}),(0,n.jsx)(c,{highlightErrors:s,valid:i,children:p.passwordHintNumber}),(0,n.jsx)(c,{highlightErrors:s,valid:a,children:p.passwordHintUppercase})]})}}}]);

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.