1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];if(null!=s)for(var r in s)s.hasOwnProperty(r)&&(e[r]=s[r])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:opencollective-frontend":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="16fe1834-38dd-41a1-a630-e1ec5bc54444",e._sentryDebugIdIdentifier="sentry-dbid-16fe1834-38dd-41a1-a630-e1ec5bc54444")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1568],{5424:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/services/transferwise/oauth/callback",function(){return s(74426)}])},37293:(e,t,s)=>{"use strict";s.d(t,{Fc:()=>o,TN:()=>c,XL:()=>d});var r=s(37876),n=s(14232),a=s(65971),i=s(20322);let l=(0,a.F)("relative w-full rounded-lg border p-4 [&>svg]:absolute [&>svg]:top-4 [&>svg]:left-4 [&>svg]:text-foreground [&>svg+div]:translate-y-[-3px] [&>svg~*]:pl-7",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive",info:"border-blue-200 bg-blue-50"}},defaultVariants:{variant:"default"}}),o=n.forwardRef(({className:e,variant:t,...s},n)=>(0,r.jsx)("div",{ref:n,role:"alert",className:(0,i.cn)(l({variant:t}),e),...s}));o.displayName="Alert";let d=n.forwardRef(({className:e,children:t,...s},n)=>(0,r.jsx)("h5",{ref:n,className:(0,i.cn)("mb-1 leading-none font-medium tracking-tight",e),...s,children:t}));d.displayName="AlertTitle";let c=n.forwardRef(({className:e,...t},s)=>(0,r.jsx)("div",{ref:s,className:(0,i.cn)("text-sm [&_p]:leading-relaxed",e),...t}));c.displayName="AlertDescription"},61732:(e,t,s)=>{"use strict";s.d(t,{A:()=>x});var r=s(37876),n=s(14232),a=s(95062),i=s.n(a),l=s(62449),o=s(56593),d=s(99202),c=s(98064),u=s(98263),f=s(4281),p=s(266),g=s(69020);class h extends n.Component{static{this.propTypes={children:i().oneOfType([i().func,i().node]),disableSignup:i().bool,rootOnly:i().bool,loadingLoggedInUser:i().bool,LoggedInUser:i().object}}renderContent(e,t){return t?this.props.rootOnly&&!t.isRoot?(0,r.jsx)(d.so,{flexDirection:"column",alignItems:"center",children:(0,r.jsx)(u.A,{type:"warning",my:[5,6,7],maxWidth:400,withIcon:!0,children:(0,r.jsx)(l.sA,{id:"AuthenticatedPage.RootOnly",defaultMessage:"This page is limited to site administrators"})})}):"function"==typeof this.props.children?this.props.children(t):this.props.children:(0,r.jsx)(o.A,{display:"flex",justifyContent:"center",py:[5,null,6],px:2,children:e?(0,r.jsx)(c.A,{}):(0,r.jsxs)(d.so,{flexDirection:"column",alignItems:"center",children:[(0,r.jsx)(u.A,{type:"warning",mb:4,maxWidth:400,withIcon:!0,children:(0,r.jsx)(l.sA,{id:"authorization.loginRequired",defaultMessage:"You need to be logged in to continue."})}),(0,r.jsx)(p.A,{defaultForm:"signin",disableSignup:this.props.disableSignup})]})})}render(){let{LoggedInUser:e,loadingLoggedInUser:t,...s}=this.props;return(0,r.jsx)(f.A,{noRobots:!0,...s,children:this.renderContent(t,e)})}}let x=(0,g.Cb)(h)},72240:(e,t,s)=>{"use strict";s.d(t,{p:()=>n});var r=s(18122);let n=(e=1e4,t={})=>{let s=Date.now()+e,n=(e,t)=>Math.random()*(t-e)+e,a={disableForReducedMotion:!0,startVelocity:30,spread:360,ticks:60,zIndex:0,...t},i=setInterval(()=>{let t=s-Date.now();if(t<=0)return clearInterval(i);{let s=t/e*50;(0,r.A)({...a,particleCount:s,origin:{x:n(0,.3),y:Math.random()-.2}}),(0,r.A)({...a,particleCount:s,origin:{x:n(.7,1),y:Math.random()-.2}})}},250)}},74426:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>A});var r,n=s(37876),a=s(14232),i=s(88490),l=s(64177),o=s(18847),d=s.n(o),c=s(55851),u=s(98394),f=s(97552),p=s(89099),g=s(62449),h=s(72240),x=s(2948),y=s(20322),m=s(61732),v=s(37293),b=s(32901);let j=d()(()=>Promise.all([s.e(9923),s.e(3845)]).then(s.t.bind(s,33845,23)),{loadableGenerated:{webpack:()=>[33845]},ssr:!1}),w=(0,i.J1)` 2 mutation ConnectTransferwiseAccount($code: NonEmptyString!, $profileId: NonEmptyString!, $state: NonEmptyString!) { 3 connectTransferwiseAccount(code: $code, profileId: $profileId, state: $state) { 4 connectedAccount { 5 id 6 } 7 redirectUrl 8 } 9 } 10`,A=()=>
10{let e=(0,g.tz)(),t=(0,p.useRouter)(),[i,o]=a.useState(null),[d,A]=a.useState(!1),[N,_]=a.useState(!1),M=t.query.code,I=t.query.profileId,k=t.query.state,R=t.query.error,[T]=(0,l.n)(w),C=!!(M&&I&&k)&&!R;return a.useEffect(()=>{if(!t.isReady||!C)return;let s=!0;return(async()=>{try{A(!0);let e=await T({variables:{code:M,profileId:I,state:k}});if(!s)return;_(!0),(0,h.p)(3e3);let r=e.data?.connectTransferwiseAccount?.redirectUrl;t.push(r||"/dashboard")}catch(t){s&&(A(!1),o((0,x.Rp)(e,t)))}})(),()=>{s=!1}},[t.isReady]),(0,n.jsx)(m.A,{noRobots:!0,title:e.formatMessage({defaultMessage:"Wise connection",id:"mv1Ym6"}),children:!t.isReady||N||d||C&&!i?(0,n.jsxs)("div",{className:"my-8 flex h-full flex-col items-center justify-center gap-3 p-2 sm:my-32",children:[(0,n.jsx)(j,{animationData:r||(r=s.t(b,2)),loop:!0,autoPlay:!0,className:"max-w-[600px]"}),(0,n.jsx)("div",{children:(0,n.jsx)(v.Fc,{className:(0,y.cn)("min-w-[275px] text-center shadow transition-all",N&&"[&>svg]:text-green-500"),children:N?(0,n.jsxs)(a.Fragment,{children:[(0,n.jsx)(f.A,{size:18,className:"mr-2 inline"}),(0,n.jsx)(v.XL,{children:(0,n.jsx)(g.sA,{defaultMessage:"Successfully connected {service} account",id:"p63wXt",values:{service:"Wise"}})}),(0,n.jsx)(v.TN,{className:"animate-pulse",children:(0,n.jsx)(g.sA,{defaultMessage:"You'll be redirected shortly.",id:"j0+O6x"})})]}):(0,n.jsxs)(a.Fragment,{children:[(0,n.jsx)(u.A,{size:18,className:"animate-spin"}),(0,n.jsx)(v.XL,{className:"animate-pulse",children:(0,n.jsx)(g.sA,{defaultMessage:"Connecting your {service} account...",id:"5yLP1a",values:{service:"Wise"}})})]})})})]}):(0,n.jsx)("div",{className:"my-8 flex h-full flex-col items-center justify-center gap-3 p-2 sm:my-32",children:(0,n.jsx)("div",{children:(0,n.jsxs)(v.Fc,{variant:"destructive",children:[(0,n.jsx)(c.A,{size:16}),(0,n.jsx)(v.XL,{children:(0,n.jsx)(g.sA,{defaultMessage:"Wise connection failed",id:"0ZiG0o"})}),(0,n.jsx)(v.TN,{children:i||R||(0,n.jsx)(g.sA,{defaultMessage:"An error occurred while connecting your Wise account. Please try again.",id:"4ea2HC"})})]})})})})}},78027:(e,t,s)=>{"use strict";s.d(t,{A:()=>l});var r=s(21651),n=s(5646),a=s(23968),i=s(56611);let l=n.I4.hr.withConfig({shouldForwardProp:(e,t)=>(0,i.x)(e,t)}).withConfig({componentId:"sc-d0d050d8-0"})(["border:0;border-top:1px solid ",";margin:0;height:1px;"," "," "," "," "," ",""],(0,r.y)("colors.black.400"),a.xe,a.Uu,a.Zp,a.r7,a.PQ,a.Vy)}},e=>{e.O(0,[1507,924,2024,297,1321,533,8122,4978,7147,9918,341,8545,8610,266,2029,8407,636,6593,8792],()=>e(e.s=5424)),_N_E=e.O()}]); 11//# sourceMappingURL=callback-66ad93b9a2ff02cf.js.map
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.