PageSourceSearch

https://ctrader.com/_next/static/chunks/pages/[branch]/[deviceType…/account/referrals-db7ed3e85b3d673e.js

js ctrader.com collected 2026-09-24 10:10:37 UTC 46,131 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="92fd8917-1c10-40bb-be52-5650008d2a6c",e._sentryDebugIdIdentifier="sentry-dbid-92fd8917-1c10-40bb-be52-5650008d2a6c")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7897],{41463:function(e,t,r){"use strict";var n,o=r(2784);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=function(e){return o.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),n||(n=o.createElement("path",{fill:"currentColor",d:"M9 8h2l3 4-3 4H9l3-4z"})))}},85120:function(e,t,r){"use strict";var n,o=r(2784);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=function(e){return o.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),n||(n=o.createElement("path",{fill:"currentColor",d:"M11.846 7.692a1.846 1.846 0 1 0 0-3.692 1.846 1.846 0 0 0 0 3.692m0 6.154a1.846 1.846 0 1 0 0-3.692 1.846 1.846 0 0 0 0 3.692m0 6.154a1.846 1.846 0 1 0 0-3.692 1.846 1.846 0 0 0 0 3.692"})))}},58510:function(e,t,r){"use strict";var n,o=r(2784);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=function(e){return o.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),n||(n=o.createElement("path",{fill:"currentColor",d:"M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20m-.98 14.357v2.261h2.26v-2.26zM12.02 6q-1.85 0-2.992 1.005-1.135 1.006-1.222 2.446l2.076.257q.217-1.005.796-1.496.58-.49 1.44-.49.893 0 1.415.474.531.468.531 1.126 0 .476-.298.869-.192.247-1.182 1.053c-.66.537-1.1.019-1.32 1.447q-.33.644-.33 1.642 0 .097.008.539h2.051q-.016-.933.153-1.294.177-.363.893-.958 1.384-1.15 1.802-1.817.427-.668.427-1.416.001-1.353-1.15-2.365C14.661 6.341 13.554 6 12.02 6"})))}},59799:function(e,t,r){"use strict";var n,o=r(2784);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=function(e){return o.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),n||(n=o.createElement("path",{fill:"currentColor",d:"M21 10a1 1 0 0 0-1-1H10a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1zm-6-6c0-.548-.452-1-1-1H4c-.548 0-1 .452-1 1v10c0 .548.452 1 1 1a1 1 0 1 1 0 2c-1.652 0-3-1.348-3-3V4c0-1.652 1.348-3 3-3h10c1.652 0 3 1.348 3 3a1 1 0 1 1-2 0m8 16a3 3 0 0 1-3 3H10a3 3 0 0 1-3-3V10a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3z"})))}},63862:function(e,t,r){"use strict";var n,o=r(2784);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}t.Z=function(e){return o.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 22"},e),n||(n=o.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M7.332 2.332C7.097 2.567 7 2.825 7 3v1h6V3c0-.175-.098-.433-.332-.668S12.175 2 12 2H8c-.175 0-.433.097-.668.332M15 4V3c0-.825-.402-1.567-.918-2.082C13.567.403 12.825 0 12 0H8c-.825 0-1.567.403-2.082.918S5 2.175 5 3v1H1a1 1 0 0 0 0 2h1l1 13c0 .825.403 1.567.918 2.082S5.175 22 6 22h8c.825 0 1.567-.402 2.082-.918.515-.515.918-1.257.918-2.082l1-13h1a1 1 0 1 0 0-2zM4 6l1 13c0 .175.097.433.332.668S5.825 20 6 20h8c.175 0 .433-.098.668-.332S15 19.175 15 19l1-13zm4 3a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1m4 0a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1",clipRule:"evenodd"})))}},5186:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[branch]/[deviceType]/[theme]/account/referrals",function(){return r(69354)}])},69354:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSG:function(){return tU},default:function(){return tz}});var n,o,l,i,a,s=r(52322),c=r(2784),u=r(97729),d=r.n(u),h=r(45909),m=r(48869),f=r(62825),p=r(47592),x=r(24616),g=r(88274);let b=(0,c.memo)(()=>{let e=(0,x.I)();return(0,c.useEffect)(()=>{e(g.g.loadUserProfile())},[e]),null});(n=o||(o={}))[n.Welcome=0]="Welcome",n[n.Impact=1]="Impact",n[n.Link=2]="Link";var v=r(76475),j=r(50630),k=r(36250),C=r(72576),y=r(27949);let w=e=>{let{progress:t}=e,{backgroundColor:r}=e.theme.palette.semantic;return{root:{...(0,j.E)(2*k.q0)},content:{flexGrow:0,flexShrink:1,flexBasis:"60%",...(0,C.o)(5*k.W0),...(0,y.O)({color:r.primary}),mobile:{...(0,C.o)(3*k.W0,2*k.W0),flexBasis:"100%"}},image:{flexGrow:0,flexShrink:1,flexBasis:"40%",...(0,y.O)({color:r.secondaryHover}),mobile:{display:"none"}},backButton:{width:28,height:28,display:"flex",alignItems:"center",justifyContent:"center"},progressContainer:{marginBottom:10*k.W0,tablet:{marginBottom:4*k.W0}},progressBar:{width:"100%",height:10,...(0,y.O)({color:r.accent}),...(0,j.E)(4*k.q0),overflow:"hidden"},progressFill:{height:"100%",width:"".concat(t,"%"),...(0,y.O)({image:"linear-gradient(270deg, #009345 -63.1%, #22C03D 100%)"}),...(0,j.E)(4*k.q0),transition:"width 0.3s ease"}}};var _=r(6776),I=r(87946),S=r(96577),W=r.n(S),E=r(4499),O=r(87649),X=r(67361),B=r(66619);function N(){return(N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
1).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var L=function(e){return c.createElement("svg",N({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),l||(l=c.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4.472 4.862c.26.26.26.683 0 .943L2.943 7.334h11.724a.667.667 0 1 1 0 1.333H2.943l1.529 1.529a.667.667 0 1 1-.943.942L.862 8.472a.667.667 0 0 1 0-.943L3.53 4.862c.26-.26.682-.26.943 0Z",clipRule:"evenodd"})))};let P=(0,c.memo)(e=>{let{children:t,currentStep:r,totalSteps:n,onBackClick:o}=e,{getThemedAsset:l}=(0,E.G)(),i=(0,c.useMemo)(()=>r/n*100,[r,n]),{css:a,rules:u}=(0,v.X)(w,{progress:i});return(0,s.jsxs)(_.X,{flexGrow:1,extend:{root:u.root},children:[(0,s.jsxs)(I.s,{extend:{root:u.content},children:[(0,s.jsxs)(_.X,{alignItems:"center",gap:k.W0,extend:{root:u.progressContainer},children:[(0,s.jsx)(O.z,{onClick:o,extend:{root:u.backButton},children:(0,s.jsx)(X.J,{color:B.E.Primary,width:18,height:18,children:(0,s.jsx)(L,{})})}),(0,s.jsx)("div",{className:a.progressBar(),children:(0,s.jsx)("div",{className:a.progressFill()})})]}),(0,s.jsx)(_.X,{flexGrow:1,children:t})]}),(0,s.jsx)(I.s,{justifyContent:"center",alignItems:"center",extend:{root:u.image},children:(0,s.jsx)(W(),{src:l("account/referral_coins.png"),alt:"referral coins",width:320,height:320})})]})}),M=e=>{let{body:t}=e.theme.font.semantic;return{button:{height:"auto",maxHeight:"unset",width:340,...(0,C.o)(2*k.W0),mobile:{width:"100%",maxWidth:340}},subheader:{mobile:{...t.primary}}}};var H=r(64764),F=r(29335),$=r(50195),R=r(38606),D=r(12490),T=r(38833),q=r(21764),A=r(49),U=r(8616),z=r(17054),Z=r(81122);let G=(0,A.Bu)([(0,U.$F)(Z.V).blogUrl()],e=>({blogUrl:e}))({...z.j,keySelector:U.Rs});var V=r(36987);let J=(0,c.memo)(e=>{let{onNext:t}=e,{t:r}=(0,h.$)(),{getThemedAsset:n}=(0,E.G)(),{blogUrl:o}=(0,U.v9)(G),{rules:l}=(0,v.X)(M,{});return(0,s.jsxs)(I.s,{alignItems:"center",children:[(0,s.jsx)(H.T,{bold:!0,align:"center",isMultiline:!0,children:r("referral_programme")}),(0,s.jsx)(D.I,{height:1.5*k.W0}),(0,s.jsx)(_.X,{flexShrink:1,maxWidth:450,children:(0,s.jsx)(F.Q,{align:"center",isMultiline:!0,extend:{root:l.subheader},children:r("referral_programme_subtitle")})}),(0,s.jsx)(W(),{src:n("account/referral_coins.png"),alt:"referral coins",width:320,height:320}),(0,s.jsx)(_.X,{justifyContent:"center",children:(0,s.jsxs)(I.s,{gap:k.W0,children:[(0,s.jsx)(T.C,{onClick:t,wide:!1,extend:{root:l.button},children:(0,s.jsx)($.G,{color:R.a.Inherit,children:r("become_a_partner_button")})}),(0,s.jsx)(q.F,{href:(0,V.D)(o,p.A0.JoinAffiliateProgram),target:"_blank",extend:{root:l.button},children:(0,s.jsx)($.G,{color:R.a.Primary,children:r("affiliate_learn_about_benefits")})})]})})]})});var Q=r(3808),K=r(46009),Y=r(43990),ee=r(67343),et=r(58510);let er=()=>({inputPostfix:{cursor:"pointer"}}),en=e=>e.referralProgram;var eo=r(92682);let el=(0,A.Bu)([(0,U.$F)(en).linkNetworkStatus()],e=>({isLoading:e===eo.I.Started,isFailed:e===eo.I.Failed}))({keySelector:U.Rs}),ei=(0,c.memo)(()=>{let{t:e}=(0,h.$)(),{isLoading:t,isFailed:r}=(0,U.v9)(el),n=(0,x.I)(),[o,l]=(0,c.useState)(""),i=(0,c.useCallback)(()=>{n(g.g.submitImpactLink({link:o}))},[o,n]),{rules:a}=(0,v.X)(er,{}),u=(0,c.useMemo)(()=>r?e("validation_error_youtube_video"):void 0,[r,e]),d=(0,c.useMemo)(()=>(0,s.jsx)(ee.M,{placement:"bottom",source:et.Z,color:B.E.Tertiary,size:B.J.Small,maxWidthElement:220,children:(0,s.jsx)(Q.H,{isMultiline:!0,children:e("impact_link_tooltip")})}),[e]);return(0,s.jsxs)(I.s,{justifyContent:"space-between",children:[(0,s.jsx)(_.X,{children:(0,s.jsxs)(I.s,{gap:2*k.W0,children:[(0,s.jsx)($.G,{isMultiline:!0,bold:!0,children:e("impact_link")}),(0,s.jsx)(Y.U,{value:o,placeholder:e("insert_link"),onChange:l,errorText:u,postfix:d,extend:{postfix:a.inputPostfix}})]})}),(0,s.jsx)(_.X,{gap:2*k.W0,children:(0,s.jsx)(T.C,{wide:!0,onClick:i,disabled:t||!o,children:(0,s.jsx)(K.H,{isMultiline:!0,color:R.a.Inherit,children:e("next_button")})})})]})});var ea=r(78892);let es=()=>({actionsContainer:{mobile:{flexDirection:"column"}}});var ec=r(12650),eu=r(72599),ed=r(29957),eh=r(16467),em=r(28367),ef=r(91501),ep=r(42531);let ex=(0,A.Bu)([(0,U.$F)(Z.V).blogUrl()],e=>({blogUrl:e}))({...z.j,keySelector:U.Rs}),eg=(0,c.memo)(e=>{let{onNextClick:t}=e,{blogUrl:r}=(0,U.v9)(ex),{t:n}=(0,h.$)(),{rules:o}=(0,v.X)(es,{}),l=(0,c.useCallback)(()=>window.open(eh.k8,"_blank"),[]);return(0,s.jsxs)(I.s,{justifyContent:"space-between",children:[(0,s.jsx)(_.X,{children:(0,s.jsxs)(I.s,{gap:2*k.W0,children:[(0,s.jsx)(eu.a,{isMultiline:!0,bold:!0,children:n("impact_partnership")}),(0,s.jsx)($.G,{isMultiline:!0,children:(0,s.jsx)(em.F,{text:n("impact_partnership_subtitle"),components:[(0,s.jsx)("b",{},"bold")]})}),(0,s.jsx)($.G,{isMultiline:!0,children:(0,s.jsx)(ef.h,{href:(0,V.D)(r,p.A0.Aff
1iliateProgramGuide),target:"_blank",color:ep.M.PrimaryDisabled,bold:!0,children:n("affiliate_promotion_tips")},"guide-link")})]})}),(0,s.jsxs)(_.X,{gap:2*k.W0,extend:{root:o.actionsContainer},children:[(0,s.jsx)(ec.b,{flexGrow:1,flexShrink:1,flexBasis:"50%",children:(0,s.jsx)(ed.Z,{wide:!0,onClick:l,children:(0,s.jsx)(K.H,{isMultiline:!0,color:R.a.Inherit,children:n("partner_with_us_on_impact_button")})})}),(0,s.jsx)(ec.b,{flexGrow:1,flexShrink:1,flexBasis:"50%",children:(0,s.jsx)(T.C,{wide:!0,onClick:t,children:(0,s.jsx)(K.H,{isMultiline:!0,color:R.a.Inherit,children:n("already_have_link_button")})})})]})]})});var eb=r(93205);let ev=e=>Object.values(o).some(t=>t===e);var ej=r(12318);let ek=()=>{let e=(0,ea.Bq)(ej.U);if((0,eb.$)(e)){let t=parseInt(e,10);if(ev(t))return t}return o.Welcome},eC=(0,c.memo)(()=>{let[e,t]=(0,c.useState)(ek());(0,c.useEffect)(()=>{(0,ea.sA)(ej.U,e.toString())},[e]);let r=(0,c.useCallback)(()=>{e+1<3&&t(e+1)},[e]),n=(0,c.useCallback)(()=>{e-1>=0&&t(e-1)},[e]),l=(0,c.useCallback)(()=>{switch(e){case o.Welcome:return(0,s.jsx)(J,{onNext:r});case o.Impact:return(0,s.jsx)(eg,{onNextClick:r});case o.Link:return(0,s.jsx)(ei,{});default:return(0,s.jsx)(J,{onNext:r})}},[e,r]);return e===o.Welcome?l():(0,s.jsx)(P,{currentStep:e,totalSteps:3,onBackClick:n,children:l()})}),ey=(0,A.Bu)([(0,U.$F)(en).profile.capabilities.promoteProducts(),(0,U.$F)(en).profile.capabilities.promoteOwnBrokerLinks(),(0,U.$F)(en).profileNetworkStatus()],(e,t,r)=>({isLoading:r===eo.I.None||r===eo.I.Started,canPromote:e&&t}))({keySelector:U.Rs});var ew=r(53372);let e_=(0,A.Bu)([(0,U.$F)(en).profile.capabilities.promoteOwnBrokerLinks()],e=>({canPromoteBrokerLinks:e}))({keySelector:U.Rs});var eI=r(86709);function eS(){return(eS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var eW=function(e){return c.createElement("svg",eS({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),i||(i=c.createElement("path",{fill:"currentColor",d:"M9.167 10.834H3.333a.833.833 0 1 1 0-1.667h5.834V3.334a.833.833 0 0 1 1.667 0v5.833h5.833a.833.833 0 0 1 0 1.667h-5.834v5.833a.833.833 0 0 1-1.666 0z"})))},eE=r(8276);let eO=(0,A.Bu)([(0,U.$F)(eE.e).networkStatus(),(0,U.$F)(eE.e).data()],(e,t)=>({isLoading:e===eo.I.None||e===eo.I.Started,brokerLinks:t}))({keySelector:U.Rs});var eX=r(73151),eB=r(75982),eN=r(59659),eL=r(64838),eP=r(19034);function eM(){return(eM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var eH=function(e){return c.createElement("svg",eM({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),a||(a=c.createElement("path",{fill:"currentColor",d:"M19.172 6a1 1 0 0 0-.227-.634l-.066-.073-.172-.172a1 1 0 0 0-.609-.288L18 4.828a1 1 0 0 0-.634.227l-.073.066-.88.879L18 7.586l.879-.879.066-.073A1 1 0 0 0 19.172 6M21 19l.102.005a1 1 0 0 1 0 1.99L21 21h-8a1 1 0 0 1 0-2zM5.902 16.512l-.53 2.113 2.117-.53L16.586 9 15 7.414zM21.172 6a3 3 0 0 1-.68 1.9l-.2.221L8.708 19.707a1 1 0 0 1-.465.263l-4 1a1 1 0 0 1-1.212-1.213l1-4 .04-.13a1 1 0 0 1 .223-.334L15.879 3.707l.22-.2a3 3 0 0 1 1.9-.679l.298.015a3 3 0 0 1 1.824.863l.172.173.199.22A3 3 0 0 1 21.172 6"})))},eF=r(63862);let e$=()=>({button:{width:44,height:44}});var eR=r(82332),eD=r(44485);let eT=(0,c.memo)(e=>{let{brokerName:t,link:r}=e,{rules:n}=(0,v.X)(e$,{}),o=(0,x.I)(),l=(0,c.useCallback)(()=>{o(eR.z.open({brokerName:t,referralLink:r}))},[o,r,t]),i=(0,c.useCallback)(()=>{o(eD.U.open({brokerName:t}))},[o,t]);return(0,s.jsxs)(_.X,{gap:k.W0,justifyContent:"center",children:[(0,s.jsx)(ec.b,{flexGrow:0,children:(0,s.jsx)(eP.h,{icon:eH,transparent:!0,color:B.E.PrimaryDisabled,onClick:l,extend:{root:n.button}})}),(0,s.jsx)(ec.b,{flexGrow:0,children:(0,s.jsx)(eP.h,{icon:eF.Z,transparent:!0,color:B.E.PrimaryDisabled,onClick:i,extend:{root:n.button}})})]})});var eq=r(62261),eA=r(71443),eU=r(25608);let ez=(0,c.memo)(e=>{let{brokerName:t,link:r}=e,{t:n}=(0,h.$)(),o=(0,x.I)(),l=(0,c.useCallback)(()=>{o(eR.z.open({brokerName:t,referralLink:r}))},[o,r,t]),i=(0,c.useCallback)(()=>{o(eD.U.open({brokerName:t}))},[o,t]),a=(0,c.useCallback)(e=>{let{hide:t}=e;return(0,s.jsxs)(eq.m,{children:[(0,s.jsx)(eA.s,{icon:eH,onClick:l,onHide:t,children:n("edit_button")}),(0,s.jsx)(eA.s,{icon:eF.Z,onClick:i,onHide:t,children:n("delete_button")})]})},[n,l,i]);return(0,s.jsx)(eU.a,{minWidth:120,activeIconColor:B.E.Primary,children:a})}),eZ=(0,c.memo)(e=>{let{brokerName:t,link:r}=e;return(0,s.jsx)(eL.J,{mobile:ez,tablet:ez,desktop:eT,args:{brokerName:t,link:r}})}),eG=()=>({logo:{width:32,height:32,...(0,j.E)("50%")}}),eV=(0,c.memo)(e=>{let{title:t,logoUrl:r}=e,{css:n}=(0,v.X)(eG,{});return(0,s.jsxs)(_.X,{gap:k.W0,paddingTop:2*k.W0,paddingBottom:2*k.W0,alignItems:"center",children:[(0,s.jsx)("img",{src:r,alt:t,className:n.logo()}),(0,s.jsx)(Q.H,{children:t})]})}),eJ=e=>
1{let{buttonBackgroundColor:t}=e.theme.palette.semantic;return{root:{flexGrow:1,display:"flex",alignItems:"center",gap:k.W0,cursor:"pointer",overflow:"hidden",height:44},popper:{...(0,y.O)({color:t.tertiaryDefault})},iconButton:{width:44,height:44}}};var eQ=r(59799),eK=r(66515),eY=r(32749);let e0=(0,c.memo)(e=>{let{link:t}=e,{css:r,rules:n}=(0,v.X)(eJ,{}),{isMobile:o}=(0,eN.N)(),{t:l}=(0,h.$)(),[i,a]=(0,c.useState)(!1),u=(0,c.useCallback)(()=>{a(!0)},[]),d=(0,c.useCallback)(()=>{a(!1)},[]);return(0,s.jsx)(eK.T,{text:t,children:(e,a)=>(0,s.jsxs)(eY.u,{open:e,placement:"top",arrow:!1,maxWidthElement:240,offsetY:0,extend:{popper:n.popper},children:[(0,s.jsxs)("div",{onClick:a,onMouseEnter:u,onMouseLeave:d,className:r.root(),children:[(0,s.jsx)(ec.b,{flexGrow:0,flexShrink:1,children:(0,s.jsx)(K.H,{children:t})}),!o&&i&&(0,s.jsx)(eP.h,{icon:eQ.Z,transparent:!0,color:B.E.PrimaryDisabled,onClick:a,extend:{root:n.iconButton}})]}),(0,s.jsx)(Q.H,{color:R.a.Eversion,isMultiline:!0,children:l("copied_button_text")})]})})}),e1=()=>{let{t:e}=(0,h.$)(),{isMobile:t}=(0,eN.N)();return(0,c.useMemo)(()=>[{id:"brokerName",header:()=>e("broker").toUpperCase(),accessor:e=>e.title,cell:(e,t)=>(0,s.jsx)(eV,{title:t.title,logoUrl:t.logoUrl}),basis:"35%"},{id:"link",header:()=>e("referral_link").toUpperCase(),accessor:e=>e.ibLink,cell:e=>(0,s.jsx)(e0,{link:e}),basis:"auto"},{id:"actions",header:()=>t?"":e("actions_column").toUpperCase(),accessor:e=>e.brokerName,cell:(e,t)=>(0,s.jsx)(eZ,{brokerName:e,link:t.ibLink}),basis:t?52:112}],[e,t])};var e2=r(30544),e3=r(82702),e6=r(61266);let e4=e=>{let{backgroundColor:t,foregroundColor:r}=e.theme.palette.semantic,n=(0,e2.p)("overflowTooltip");return{tableRoot:{...(0,C.o)(0,k.W0)},tableRow:{nested:{"&:hover":{backgroundColor:r.surfaceHover}}},tableHead:{backgroundColor:t.primary,color:r.primary,fontSize:12,...(0,e3.C)(1,t.divider,e6.K.Bottom),...(0,e3.C)(0,"transparent",e6.K.Right),nested:{"&:last-child":{["& .".concat(n)]:{justifyContent:"center",alignItems:"center"}}}},tableCell:{height:72,nested:{mobile:{":last-child":{paddingLeft:0}}}}}},e7=(0,c.memo)(()=>{let{brokerLinks:e,isLoading:t}=(0,U.v9)(eO),{t:r}=(0,h.$)(),n=(0,x.I)(),{rules:o}=(0,v.X)(e4,{}),l=e1(),i=(0,c.useCallback)(e=>e.brokerName,[]),a=(0,c.useCallback)(()=>{n(eR.z.open({}))},[n]);return(0,s.jsxs)(I.s,{children:[(0,s.jsx)(eB.i,{data:e,columns:l,keyAccessor:i,extend:{root:o.tableRoot,row:o.tableRow,head:o.tableHead,cell:o.tableCell}}),t&&(0,s.jsx)(ec.b,{minHeight:200,alignItems:"center",justifyContent:"center",children:(0,s.jsx)(ew.a,{display:eX.l1.Block})}),!t&&0===e.length&&(0,s.jsx)(_.X,{flexGrow:1,flexShrink:1,marginTop:4*k.W0,alignItems:"center",justifyContent:"center",children:(0,s.jsxs)(I.s,{alignItems:"center",justifyContent:"center",gap:2*k.W0,children:[(0,s.jsx)(_.X,{children:(0,s.jsx)(Q.H,{color:R.a.Secondary,children:r("nothing_here_yet")})}),(0,s.jsx)(_.X,{children:(0,s.jsx)(T.C,{onClick:a,children:(0,s.jsxs)(_.X,{gap:k.W0,alignItems:"center",children:[(0,s.jsx)(X.J,{width:20,height:20,color:B.E.Inherit,children:(0,s.jsx)(eW,{})}),(0,s.jsx)(Q.H,{isMultiline:!0,color:R.a.Inherit,children:r("add_referral_link")})]})})})]})})]})}),e5=()=>({root:{...(0,C.o)(0)}}),e8=(0,A.Bu)([(0,U.$F)(eE.e).networkStatus(),(0,U.$F)(eE.e).data(),(0,U.$F)(eE.e).totalPages()],(e,t,r)=>({showAddButton:(e===eo.I.Failed||e===eo.I.Done)&&0!==t.length,totalPages:r}))({keySelector:U.Rs}),e9=(0,A.Bu)([(0,U.$F)(eE.e).query.page(),(0,U.$F)(eE.e).totalPages()],(e,t)=>({currentPage:e,totalPages:t}))({keySelector:U.Rs});var te=r(95907),tt=r(37578);let tr=(0,c.memo)(()=>{let{currentPage:e,totalPages:t}=(0,U.v9)(e9),{isMobile:r}=(0,eN.N)(),n=(0,x.I)(),o=(0,c.useCallback)(e=>{n(tt.s.updateQuery({query:{page:e}}))},[n]);return(0,s.jsx)(te.v,{currentPage:e,totalPages:t,onPageChange:o,isMobile:r,testId:"referral-broker-links-pagination"})}),tn=(0,c.memo)(()=>{let{showAddButton:e,totalPages:t}=(0,U.v9)(e8),{t:r}=(0,h.$)(),{isMobile:n}=(0,eN.N)(),o=(0,x.I)(),{rules:l}=(0,v.X)(e5,{}),i=(0,c.useCallback)(()=>{o(eR.z.open({}))},[o]);return(0,s.jsx)(eI.z,{extend:{root:l.root},children:(0,s.jsxs)(I.s,{paddingTop:2*k.W0,paddingBottom:2*k.W0,children:[(0,s.jsxs)(_.X,{paddingLeft:2*k.W0,paddingRight:2*k.W0,gap:k.W0,marginBottom:k.W0,justifyContent:"space-between",alignItems:"center",children:[(0,s.jsx)(F.Q,{bold:!0,isMultiline:!0,children:r("broker_referral_links")}),e&&(0,s.jsx)(ed.Z,{wide:!1,onClick:i,children:(0,s.jsxs)(_.X,{gap:k.W0,alignItems:"center",flexShrink:1,children:[(0,s.jsx)(X.J,{width:20,height:20,color:B.E.Inherit,children:(0,s.jsx)(eW,{})}),r(n?"add_link_button":"add_referral_link")]})})]}),(0,s.jsx)(_.X,{flexShrink:1,children:(0,s.jsx)(e7,{})}),t>1&&(0,s.jsx)(_.X,{paddingLeft:2*k.W0,paddingRight:2*k.W0,children:(0,s.jsx)(tr,{})})]})})}),to=(0,c.memo)(()=>{let e=(0,x.I)();return(0,c.useEffect)(()=>(e(tt.s.load()),()=>{e(tt.s.destroy())}),[e]),null});var tl=r(51907);let ti=(0,c.memo)(()=>{let e=(0,x.I)();return(0,c.useEffect)(()=>{e(tl.v.load())},[e]),(0,c.useEffect)(()=>()=>{e(tl.v.destroy())},[e]),null}),ta=(0,c.memo)(()=>{let{canPromoteBrokerLinks:e}=(0,U.v9)(e_);return(0,s.jsx)(I.s,{gap:2*k.W0,children:e&&(0,s.jsxs)(_.X,{flexShrink:1,children:[(0,s.jsx)(ti,{}),(0,s.jsx)(to,{}),(0,s.jsx)(tn,{})]})})}),ts=(0,c.memo)(()=>{let{canPromote:e,isLoading:t}=(0,U.v9)(ey);return t?(0,s.jsx)(ew.a,{}):e?(0,s.jsx)(ta,{}):(0,s.jsx)(eC,{})});var tc=r(14243),tu=r(2024);let td=()=>
1({footer:{marginTop:2*k.W0,desktop:{display:"none"}}});var th=r(60592),tm=r(71183);let tf=(0,A.Bu)([(0,U.$F)(tm.J).data(),(0,U.$F)(tm.J).networkStatus()],(e,t)=>({brokerList:e,isBrokerListLoading:t===eo.I.None||t===eo.I.Started}))({keySelector:U.Rs});var tp=r(994),tx=r(73832);let tg=e=>{let{foregroundColor:t,backgroundColor:r}=e.theme.palette.semantic;return{root:{...(0,C.o)(3*k.W0,4*k.W0,4*k.W0)},closeButton:{width:32,height:32,minHeight:32,...(0,j.E)("50%"),color:t.primary},contentContainer:{flexGrow:1,...(0,C.o)(4*k.W0,0),tablet:{...(0,C.o)(2*k.W0,0)}},content:{gap:6*k.W0,tablet:{gap:4*k.W0}},inputRoot:{...(0,C.o)(0,k.W0)},input:{"::placeholder":{color:t.primaryDisabled,opacity:1},"::-webkit-input-placeholder":{color:t.primaryDisabled},"::-moz-placeholder":{color:t.primaryDisabled,opacity:1},":-ms-input-placeholder":{color:t.primaryDisabled}},popper:{...(0,y.O)({color:r.primary})}}};var tb=r(63955),tv=r(59558),tj=r(79748),tk=r(2312);let tC=e=>{let{hasError:t,disabled:r}=e,{backgroundColor:n,foregroundColor:o}=e.theme.palette.semantic;return{root:{...r&&{opacity:.5},...!r&&t&&{...(0,e3.C)(1,o.error),nested:{":hover":{...(0,e3.C)(1,o.error)}}}},popper:{...(0,y.O)({color:n.primary})}}},ty=(0,c.memo)(e=>{let{selectedBrokerName:t,onChange:r,brokerOptionList:n,errorText:o,disabled:l}=e,{t:i}=(0,h.$)(),{rules:a}=(0,v.X)(tC,{hasError:!!o,disabled:l});return(0,s.jsxs)(tv.Q,{label:i("broker"),disabled:l,children:[(0,s.jsx)(tk.U,{brokerOptionList:n,selectedBrokerName:t,onChange:r,extend:{popper:a.popper}}),o&&(0,s.jsx)(tj.p,{error:!0,children:o})]})}),tw=(0,c.memo)(()=>{let{brokerList:e,isBrokerListLoading:t}=(0,U.v9)(tf),{t:r}=(0,h.$)(),n=(0,x.I)(),{control:o,handleSubmit:l,formState:i,setValue:a}=(0,tb.Gc)(),{isValid:u}=i,{rules:d}=(0,v.X)(tg,{}),m=(0,c.useCallback)(()=>{n(eR.z.close())},[n]),f=(0,c.useCallback)(e=>{n(tt.s.putLink({brokerName:e.brokerName,link:e.link}))},[n]),p=(0,c.useCallback)((t,r)=>{var n;r(t);let o=e.find(e=>e.brokerName===t);a("link",null!==(n=null==o?void 0:o.createLiveAccountUrl)&&void 0!==n?n:"")},[a,e]),g=(0,c.useMemo)(()=>e.map(e=>{let{logoUrl:t,brokerName:r,title:n}=e;return{brokerName:r,title:n,logoUrl:t}}),[e]);return(0,s.jsxs)(I.s,{extend:{root:d.root},children:[(0,s.jsxs)(_.X,{justifyContent:"space-between",alignItems:"center",paddingBottom:2*k.W0,children:[(0,s.jsx)(F.Q,{isMultiline:!0,bold:!0,color:R.a.Primary,children:r("add_referral_link")}),(0,s.jsx)(tp.E,{onClick:m,extend:{root:d.closeButton},children:(0,s.jsx)(X.J,{children:(0,s.jsx)(tx.Z,{})})})]}),(0,s.jsx)(_.X,{extend:{root:d.contentContainer},children:(0,s.jsxs)(I.s,{extend:{root:d.content},children:[(0,s.jsx)(_.X,{children:(0,s.jsx)(tb.Qr,{name:"brokerName",control:o,render:e=>{let{field:{onChange:r,value:n},fieldState:{error:o}}=e;return(0,s.jsx)(ty,{brokerOptionList:g,selectedBrokerName:n,onChange:e=>p(e,r),errorText:null==o?void 0:o.message,disabled:t})}})}),(0,s.jsx)(_.X,{children:(0,s.jsx)(tb.Qr,{name:"link",control:o,render:e=>{let{field:{onChange:n,value:o},fieldState:{error:l}}=e;return(0,s.jsx)(Y.U,{value:o,onChange:n,errorText:null==l?void 0:l.message,placeholder:r("insert_link"),label:r("referral_link"),disabled:t,extend:{root:d.inputRoot,input:d.input}})}})})]})}),(0,s.jsx)(_.X,{paddingTop:2*k.W0,children:(0,s.jsx)(T.C,{onClick:l(f),wide:!0,disabled:!u,children:(0,s.jsx)(K.H,{color:R.a.Inherit,children:r("add_button")})})})]})}),t_=e=>e.brokerReferralDialog,tI=(0,A.Bu)([(0,U.$F)(t_).isShown()],e=>({isShown:e}))({keySelector:U.Rs});var tS=r(48601);let tW=()=>{let{t:e}=(0,h.$)();return(0,c.useMemo)(()=>(0,tS.Ry)().shape({brokerName:(0,tS.Z_)().required(e("field_must_not_be_empty")),link:(0,tS.Z_)().url(e("validation_error_youtube_video")).required(e("field_must_not_be_empty"))}),[e])},tE=(0,A.Bu)([(0,U.$F)(eE.e).linkOperationNetworkStatus()],e=>({linkOperationNetworkStatus:e}))({keySelector:U.Rs}),tO=e=>{let{setError:t}=e,{t:r}=(0,h.$)(),{linkOperationNetworkStatus:n}=(0,U.v9)(tE);(0,c.useEffect)(()=>{n===eo.I.Failed&&t("link",{type:"server",message:r("validation_error_youtube_video")})},[n,t,r])};var tX=r(6812);let tB=(0,A.Bu)([(0,U.$F)(t_).brokerName(),(0,U.$F)(t_).referralLink()],(e,t)=>({brokerName:e,link:t}))({keySelector:U.Rs}),tN=(0,c.memo)(e=>{let{children:t}=e,{brokerName:r,link:n}=(0,U.v9)(tB),o=tW(),l=(0,tb.cI)({mode:"all",defaultValues:{brokerName:r,link:n},resolver:(0,tX.X)(o)}),{setError:i}=l;return tO({setError:i}),(0,s.jsx)(tb.RV,{...l,children:t})}),tL=(0,c.memo)(()=>{let{isShown:e}=(0,U.v9)(tI),t=(0,x.I)(),r=(0,c.useCallback)(()=>{t(eR.z.close())},[t]);return(0,s.jsxs)(s.Fragment,{children:[e&&(0,s.jsx)(ti,{}),(0,s.jsx)(th.n,{onClose:r,isShown:e,testId:"broker-referral-dialog",children:(0,s.jsx)(tN,{children:(0,s.jsx)(tw,{})})})]})}),tP=e=>e.brokerReferralDeleteConfirmationDialog,tM=(0,A.Bu)([(0,U.$F)(tP).brokerName()],e=>({brokerName:e}))({keySelector:U.Rs}),tH=(0,c.memo)(()=>{let{brokerName:e}=(0,U.v9)(tM),{t}=(0,h.$)(),r=(0,x.I)(),n=(0,c.useCallback)(()=>{r(eD.U.close())},[r]),o=(0,c.useCallback)(()=>{r(tt.s.deleteLink({brokerName:e}))},[r,e]);return(0,s.jsxs)(I.s,{children:[(0,s.jsx)(_.X,{children:(0,s.jsx)(K.H,{isMultiline:!0,color:R.a.Primary,children:t("delete_referral_link_text")})}),(0,s.jsxs)(_.X,{marginTop:4*k.W0,gap:1.5*k.W0,justifyContent:"flex-end",children:[(0,s.jsx)(ed.Z,{onClick:n,wide:!1,children:(0,s.jsx)(K.H,{color:R.a.Inherit,children:t("cancel_button")})}),(0,s.jsx)(T.C,{onClick:o,wide:!1,children:(0,s.jsx)(K.H,{color:R.a.Inherit,children:t("confirm_button")})})]})]})}),tF=(0,A.Bu)([(0,U.$F)(tP).isShown()],e=>({isShown:e}))({keySelector:U.Rs});var t$=r(57990);let tR=(0,c.memo)(()=>{let{isShown:e}=(0,U.v9)(tF),{t}=(0,h.$)(),r=(0,x.I)(),n=(0,c.useCallback)(()=>{r(eD.U.close())},[r]);
1return(0,s.jsx)(t$.V,{title:t("delete_referral_link"),isShown:e,onClose:n,minWidth:320,maxWidth:320,testId:"broker-referral-delete-confirmation-dialog",children:(0,s.jsx)(tH,{})})}),tD=(0,c.memo)(()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(tL,{}),(0,s.jsx)(tR,{})]})),tT=(0,c.memo)(()=>{let{t:e}=(0,h.$)(),{rules:t}=(0,v.X)(td,{});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d(),{children:(0,s.jsx)("title",{children:e("referrals_tab_title")})}),(0,s.jsx)(m.$,{route:(0,f.I)(p.Pd.Referrals)}),(0,s.jsx)(b,{}),(0,s.jsx)(tD,{}),(0,s.jsxs)(tc.X,{children:[(0,s.jsx)(ts,{}),(0,s.jsx)(_.X,{extend:{root:t.footer},children:(0,s.jsx)(tu.s,{})})]})]})});var tq=r(23212);let tA=()=>(0,s.jsx)(tT,{});tA.getLayout=e=>(0,s.jsx)(tq.p,{children:e});var tU=!0,tz=tA},48869:function(e,t,r){"use strict";r.d(t,{$:function(){return d}});var n=r(52322),o=r(2784),l=r(4615),i=r(97729),a=r.n(i),s=r(788),c=r(62396);let u=(e,t)=>e?"".concat("https://ctrader.com","/").concat(e).concat(t):"".concat("https://ctrader.com").concat(t),d=(0,o.memo)(e=>{let{route:t}=e;return(0,n.jsxs)(a(),{children:[(0,n.jsx)("link",{rel:"canonical",href:(0,l.A)(t)}),(0,n.jsx)("link",{rel:"alternate",hrefLang:s.S.En,href:u(null,t)}),c.dH.map(e=>(0,n.jsx)("link",{rel:"alternate",hrefLang:e,href:u(e,t)},e)),(0,n.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:u(null,t)})]})})},4615:function(e,t,r){"use strict";r.d(t,{A:function(){return n}});let n=e=>"".concat("https://ctrader.com").concat(e)},2312:function(e,t,r){"use strict";r.d(t,{U:function(){return I}});var n=r(52322),o=r(2784),l=r(3808),i=r(38606),a=r(67592),s=r(31827),c=r(45909),u=r(6776),d=r(36250),h=r(46009),m=r(76475),f=r(50630);let p=()=>({logo:{width:20,height:20,...(0,f.E)("50%")}}),x=(0,o.memo)(e=>{let{logoUrl:t,title:r}=e,{css:o}=(0,m.X)(p,{});return(0,n.jsxs)(u.X,{gap:d.W0,alignItems:"center",children:[t&&(0,n.jsx)("img",{src:t,alt:r,className:o.logo()}),(0,n.jsx)(h.H,{children:r})]})});var g=r(87946),b=r(16175),v=r(3762),j=r(82702);let k=e=>{let{backgroundColor:t}=e.theme.palette.semantic;return{root:{...(0,j.C)(1,t.stroke)},popper:{}}};var C=r(6634),y=r(54733),w=r(26458),_=r(14243);let I=(0,o.memo)(e=>{let{brokerOptionList:t,selectedBrokerName:r,onChange:h}=e,{t:f}=(0,c.$)(),[p,j]=(0,o.useState)(""),[I,S]=(0,y.u)({defaultValue:!1}),W=(0,o.useCallback)(()=>{S(!0)},[S]),E=(0,o.useCallback)(()=>{S(!1)},[S]),{rules:O}=(0,m.X)(k,{}),X=(0,o.useMemo)(()=>p?t.filter(e=>{let t=null==p?void 0:p.toLowerCase().trim();return e.title.toLowerCase().includes(t)}):t,[t,p]),B=(0,o.useCallback)(e=>{null==h||h(e),E()},[h,E]),N=(0,o.useMemo)(()=>{let e=r===w.W.None?void 0:t.find(e=>e.brokerName===r);return e?(0,n.jsx)(x,{logoUrl:e.logoUrl,title:e.title}):(0,n.jsx)(l.H,{color:i.a.PrimaryDisabled,children:f("select_from_list")})},[t,f,r]),L=(0,o.useCallback)(()=>(0,n.jsxs)(g.s,{children:[(0,n.jsx)(u.X,{marginBottom:d.W0,children:(0,n.jsx)(b.V,{background:v.u.Primary,value:p,placeholder:f("search_field"),onChange:j})}),(0,n.jsx)(_.X,{maxHeight:300,children:X.map((e,t)=>{let{brokerName:r,title:o,logoUrl:l}=e;return(0,n.jsx)(a.$,{value:r,onClick:B,optionColor:C.K.Secondary,children:(0,n.jsx)(x,{logoUrl:l,title:o})},t)})})]}),[X,B,p,f]);return(0,n.jsxs)(s.L,{open:I,onOpen:W,onClose:E,extend:{root:O.root,popper:O.popper},children:[N,L]})})},994:function(e,t,r){"use strict";r.d(t,{E:function(){return c}});var n=r(52322),o=r(2784),l=r(76475),i=r(87649),a=r(71906);let s=e=>{let{backgroundColor:t,foregroundColor:r}=e.theme.palette.semantic;return{root:(0,a.n)({foregroundColor:r.accentPositiveLight,backgroundColorNormal:t.accent,backgroundColorHover:t.accent,backgroundColorActive:t.accent,height:e.height}),tooltip:{}}},c=(0,o.memo)(e=>{let{extend:t,testId:r="accent-button",height:o,...a}=e,{rules:c}=(0,l.X)(s,{extend:t,height:o});return(0,n.jsx)(i.z,{...a,height:o,testId:r,extend:{root:c.root}})})},29957:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(52322),o=r(2784),l=r(76475),i=r(87649),a=r(71906);let s=e=>{let{backgroundColor:t,foregroundColor:r}=e.theme.palette.semantic;return{root:(0,a.n)({foregroundColor:r.primary,backgroundColorNormal:"transparent",backgroundColorHover:t.secondaryHover,backgroundColorActive:t.secondaryPressed,height:e.height,border:{borderColor:r.primary,borderStyle:"solid",borderWidth:1,borderColorDisabled:t.stroke}}),tooltip:{}}
1},c=(0,o.memo)(e=>{let{extend:t,testId:r="secondary-outlined-button",height:o,...a}=e,{rules:c}=(0,l.X)(s,{extend:t,height:o});return(0,n.jsx)(i.z,{...a,height:o,testId:r,extend:{root:c.root}})})},21764:function(e,t,r){"use strict";r.d(t,{F:function(){return c}});var n=r(52322),o=r(2784),l=r(76475),i=r(87649),a=r(71906);let s=e=>{let{buttonBackgroundColor:t,foregroundColor:r}=e.theme.palette.semantic,{color:n}=e;return{root:(0,a.n)({foregroundColor:n||r.accentPositive,backgroundColorNormal:t.secondaryNormal,backgroundColorHover:t.secondaryHover,backgroundColorActive:t.secondaryActive,height:e.height}),tooltip:{}}},c=(0,o.memo)(e=>{let{extend:t,testId:r="transparent-button",color:o,height:a,...c}=e,{rules:u}=(0,l.X)(s,{extend:t,color:o,height:a});return(0,n.jsx)(i.z,{...c,testId:r,extend:{root:u.root,tooltip:null==u?void 0:u.tooltip}})})},66515:function(e,t,r){"use strict";r.d(t,{T:function(){return i}});var n=r(52322),o=r(2784),l=r(18558);let i=(0,o.memo)(e=>{let{text:t,children:r,timer:i=l.qk}=e,[a,s]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let e=null;return a&&(e=setTimeout(()=>{s(!1)},i)),()=>{e&&clearTimeout(e)}},[a,i]);let c=(0,o.useCallback)(()=>{s(!0)},[]),u=(0,o.useCallback)(()=>{(function(e){let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-1000px",t.style.top="-1000px";let{activeElement:r}=document;null==r||r.appendChild(t),t.select(),document.execCommand("copy"),null==r||r.removeChild(t)})(t),c()},[c,t]);return(0,n.jsx)(n.Fragment,{children:r(a,u,c)})})},10300:function(e,t,r){"use strict";var n,o;r.d(t,{q:function(){return n}}),(o=n||(n={})).Left="Left",o.Right="Right",o.Bottom="bottom"},60592:function(e,t,r){"use strict";r.d(t,{n:function(){return v}});var n=r(52322),o=r(2784),l=r(10300),i=r(37149),a=r.n(i),s=r(72576),c=r(27949),u=r(50630);let d=e=>{let{dialogSide:t}=e,{backgroundColor:r}=e.theme.palette.semantic,n="translateX(100%)";t===l.q.Left&&(n="translateX(-100%)"),t===l.q.Bottom&&(n="translateY(100%)");let o={[l.q.Left]:{top:0,right:"auto",bottom:0,left:0},[l.q.Right]:{top:0,right:0,bottom:0,left:"auto"},[l.q.Bottom]:{top:0,right:0,bottom:0,left:0}};return{root:{height:t===l.q.Bottom?"auto":"100%",width:"100%",...(0,s.o)(0),...(0,c.O)({color:"transparent"}),display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",outline:"none",boxShadow:"0px 4px 16px 0px ".concat(r.shadow)},overlay:{display:t===l.q.Bottom?"flex":"block",alignItems:t===l.q.Bottom?"flex-end":"normal",position:"fixed",width:t===l.q.Bottom?"100%":360,transform:n,transitionProperty:"transform",transitionDuration:"300ms",transitionTimingFunction:"ease-in-out",...o[t],...(0,c.O)({color:"transparent"}),zIndex:99999999,mobile:{left:0,width:"100%"}},inner:{...(0,s.o)(0),display:"flex",flexDirection:"column",...(0,c.O)({color:r.primary}),width:"100%",height:"100%",overflow:"hidden",...(0,u.E)(0)},afterOpen:{transform:"translateX(0) !important"},beforeClose:{transform:"translateX(100%)"}}};var h=r(76475),m=r(16943),f=r(71018),p=r(24160),x=r(21624),g=r(48349),b=r(13262);let v=(0,o.memo)(e=>{let{isShown:t,children:r,extend:i,testId:s="dialog-mobile",dialogSide:c=l.q.Right,shouldCloseOnOverlayClick:u=!1,shouldCloseOnContentClick:v=!1,shouldCloseOnEsc:j=!1,shouldCloseOnScroll:k=!1,onClose:C}=e,{appName:y}=(0,b.Z)(),{css:w}=(0,h.X)(d,{extend:i,dialogSide:c}),{lock:_,unlock:I}=(0,m.P)({autoLock:!1,lockTarget:"body"}),S=(0,o.useCallback)(()=>{I()},[I]),W=(0,o.useCallback)(()=>{_()},[_]),E=(0,o.useMemo)(()=>t?(0,p.F)():void 0,[t]),O=(0,o.useCallback)(()=>{null==C||C()},[C]),X=(0,o.useCallback)(()=>{v&&O()},[v,O]),B=(0,o.useCallback)(()=>{O()},[O]);return(0,f.j)({popperElement:void 0,onScrollOutside:B,active:!!(t&&k)}),(0,n.jsxs)(n.Fragment,{children:[y!==g.l.Crm&&(0,n.jsx)(x.Q,{handleNavigateAway:O}),(0,n.jsx)(a(),{isOpen:t,onAfterOpen:W,onAfterClose:S,className:w.root(),overlayClassName:{base:w.overlay(),afterOpen:w.afterOpen(),beforeClose:w.beforeClose()},shouldCloseOnOverlayClick:u,onRequestClose:O,shouldCloseOnEsc:j,style:{overlay:{zIndex:E}},testId:s,children:(0,n.jsx)("div",{className:w.inner(),onClick:X,children:r})})]})})},43990:function(e,t,r){"use strict";r.d(t,{U:function(){return x}});var n=r(52322),o=r(2784),l=r(76475),i=r(79748),a=r(59558),s=r(50630),c=r(36250),u=r(27949),d=r(72576),h=r(82702);let m=e=>{let{disabled:t,hasError:r}=e,{backgroundColor:n,foregroundColor:o}=e.theme.palette.semantic,{body:l}=e.theme.font.semantic;return{root:{borderWidth:1,borderColor:r?o.error:n.stroke,borderStyle:"solid",...(0,s.E)(c.q0),...(0,u.O)({color:n.primary}),...(0,d.o)(0,2*c.W0),...l.primary,...t&&{opacity:.5},...r&&{nested:{":hover":{...(0,h.C)(1,o.error)},":focus-within":{...(0,h.C)(1,o.error)}}}},input:{height:40},prefix:{},postfix:{}}};var f=r(51227);let p=(0,o.forwardRef)((e,t)=>{let{id:r,label:o,infoText:s,disabled:c,required:u,errorText:d,wide:h,extend:p,testId:x="input-field",type:g,...b}=e,{rules:v}=(0,l.X)(m,{disabled:c,wide:h,hasError:!!d,extend:p});return(0,n.jsxs)(a.Q,{id:r,label:o,infoText:s,disabled:c,required:u,testId:x,children:[(0,n.jsx)(f.I,{...b,ref:t,id:r,disabled:c,extend:v,type:g}),(0,n.jsx)(i.p,{error:!0,children:d})]})});p.displayName="InputField";let x=(0,o.memo)(p)},94971:function(e,t,r){"use strict";r.d(t,{v:function(){return d}});var n=r(52322),o=r(2784),l=r(89705),i=r(54733),a=r(76475),s=r(96415),c=r(77976);let u=e=>{let{wide:t,minWidth:r}=e;return{root:{display:"flex",flexDirection:"row",flexGrow:t?1:0,flexShrink:t?1:0,overflow:"hidden"},popper:{minWidth:r,...(0,c.v)(e.theme)}}},d=(0,o.memo)(e=>{let{children:t,open:r,onOpen:c,onClose:d,disabled:h,placement:m,autoWidthElement:f,wide:p,minWidth:x,offsetX:g,offsetY:b,extend:v,testId:j="click-menu"}=e,[k,C]=(0,i.u)({value:r,defaultValue:!1}),{rules:y}=(0,a.X)(u,{wide:p,minWidth:x,extend:v}),w=(0,o.useCallback)(()=>{C(!0),null==c||c()},[C,c]),_=(0,o.useCallback)(()=>{C(!1),null==d||d()},[C,d]),I=(0,o.useCallback)(()=>{C(!1),null==d||d()},[C,d]),[S,W]=t;return(0,n.jsxs)(l.D,{type:s.U.LeftClick,open:k,onOpen:w,onClose:_,disabled:h,placement:m,autoWidthElement:f,offset:[g,b],extend:{root:y.root,popper:y.popper},testId:j,children:[S,W({hide:I})]})})},73783:function(e,t,r){"use strict";r.d(t,{w:function(){return n}});let n=40},71443:function(e,t,r){"use strict";r.d(t,{s:function(){return x}});var n=r(52322),o=r(2784),l=r(87649),i=r(67361),a=r(66619),s=r(74628),c=r(36250),u=r(76475),d=r(72576),h=r(73783);let m=e=>
1{let{buttonBackgroundColor:t,foregroundColor:r}=e.theme.palette.semantic;return{root:{justifyContent:"flex-start",minHeight:h.w,height:h.w,...(0,d.o)(0,c.W0),color:r.primary,backgroundColor:"transparent",nested:{"&:hover":{backgroundColor:t.positiveHover,color:r.primaryOnAccent},"&:active":{backgroundColor:t.positiveActive,color:r.primaryOnAccent}}}}};var f=r(46009),p=r(38606);let x=(0,o.memo)(e=>{let{icon:t,href:r,target:d,onClick:h,onHide:x,children:g}=e,{rules:b}=(0,u.X)(m,{}),v=(0,o.useCallback)(()=>{null==h||h(),null==x||x()},[h,x]);return(0,n.jsxs)(l.z,{href:r,target:d,onClick:v,bold:!1,extend:{root:b.root},children:[t&&(0,n.jsx)(i.J,{color:a.E.Inherit,children:(0,n.jsx)(t,{})}),(0,n.jsx)(s.q,{width:c.W0}),(0,n.jsx)(f.H,{color:p.a.Inherit,children:g})]})})},67592:function(e,t,r){"use strict";r.d(t,{$:function(){return p}});var n=r(52322),o=r(2784),l=r(76475),i=r(42512),a=r(38606),s=r(72576),c=r(36250),u=r(50630),d=r(27949),h=r(6634);let m=(e,t)=>{let{backgroundColor:r}=e.palette.semantic;switch(t){case h.K.Primary:return{hover:r.primaryHover,active:r.primaryPressed};case h.K.Secondary:return{hover:r.secondaryHover,active:r.secondaryPressed};default:return{hover:r.primaryHover,active:r.primaryPressed}}},f=e=>{let{selected:t,disabled:r,readonly:n,optionColor:o=h.K.Primary}=e,l=m(e.theme,o);return{root:{minHeight:40,display:"flex",alignItems:"center",...(0,s.o)(c.W0,c.W0),cursor:r||n?"unset":"pointer",...(0,u.E)(6),...(0,d.O)({color:t?l.active:"transparent"}),...r&&{opacity:.5},nested:{":hover":{...!r&&(0,d.O)({color:t?l.active:l.hover})}}}}},p=(0,o.memo)(e=>{let{value:t,selected:r,disabled:s,readonly:c,isMultiline:u,optionColor:d=h.K.Primary,children:m,scrollRef:p,onClick:x,extend:g}=e,b=(0,o.useRef)(null),{css:v}=(0,l.X)(f,{selected:r,disabled:s,readonly:c,optionColor:d,extend:g});(0,o.useEffect)(()=>{if(r&&(null==b?void 0:b.current)&&(null==p?void 0:p.current)){let{top:e,bottom:t}=b.current.getBoundingClientRect(),{top:r,bottom:n}=p.current.getBoundingClientRect();(e<r||t>n)&&(p.current.scrollTop=b.current.offsetTop-p.current.offsetTop)}},[r,b,p]);let j=(0,o.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),s||c||null==x||x(t)},[t,s,c,x]);return(0,n.jsx)("div",{className:v.root(),ref:b,onMouseDown:j,children:(0,n.jsx)(i.Z,{isMultiline:u,truncateOverflow:u,color:r?a.a.PrimaryOnAccent:a.a.Primary,children:m})})})},6634:function(e,t,r){"use strict";var n,o;r.d(t,{K:function(){return n}}),(o=n||(n={})).Primary="Primary",o.Secondary="Secondary"},12490:function(e,t,r){"use strict";r.d(t,{I:function(){return s}});var n=r(52322),o=r(2784),l=r(76475),i=r(36250);let a=e=>{let{height:t}=e;return{root:{flexShrink:0,height:null!=t?t:i.W0}}},s=(0,o.memo)(e=>{let{height:t}=e,{css:r}=(0,l.X)(a,{height:t});return(0,n.jsx)("div",{className:r.root()})})},25608:function(e,t,r){"use strict";r.d(t,{a:function(){return u}});var n=r(52322),o=r(2784),l=r(6776),i=r(19034),a=r(66619),s=r(85120),c=r(94971);let u=(0,o.memo)(e=>{let{minWidth:t=224,activeIconColor:r=a.E.AccentPositive,children:u}=e,[d,h]=(0,o.useState)(a.E.Secondary),m=(0,o.useCallback)(()=>{h(r)},[r]),f=(0,o.useCallback)(()=>{h(a.E.Secondary)},[]);return(0,n.jsx)(l.X,{justifyContent:"flex-end",children:(0,n.jsxs)(c.v,{placement:"bottom-end",minWidth:t,onClose:f,onOpen:m,children:[(0,n.jsx)(i.h,{icon:s.Z,color:d,transparent:!0}),u]})})})},42811:function(e,t,r){"use strict";r.d(t,{aN:function(){return l},de:function(){return o},r3:function(){return n}});let n=/<(\d+|b|i|s|u)>(.*?)<\/\1>/g,o=/\n|<br\s*?\/?>/g,l=/<\/?(?:\d+|b|i|s|u)>/g},28367:function(e,t,r){"use strict";r.d(t,{F:function(){return u}});var n=r(52322),o=r(2784),l=r(42811),i=r(15892);let a=(e,t)=>{switch(e){case"b":return(0,n.jsx)("span",{style:{fontWeight:i.U.Bold}});case"i":return(0,n.jsx)("span",{style:{fontStyle:"italic"}});case"s":return(0,n.jsx)("span",{style:{textDecoration:"line-through"}});case"u":return(0,n.jsx)("span",{style:{textDecoration:"underline"}});default:return t[parseInt(e,10)]}},s=(e,t,r)=>{let n=[],i=0;for(let s of e.matchAll(l.r3)){let l=a(s[1],t);if(void 0!==l){let t=s.index,a=s.index+s[0].length,c=s[2];n.push(e.substring(i,t)),n.push((0,o.cloneElement)(l,{key:"".concat(r,"-").concat(t)},c)),i=a}}return n.push(e.substring(i)),n},c=(e,t)=>{let r=[];return e.split(l.de).forEach((e,n)=>{0!==n&&r.push((0,o.createElement)("br",{key:"break-".concat(n)})),e.trim().length>0&&r.push(...s(e,t,n))}),r},u=(0,o.memo)(e=>{let{text:t,components:r=[]}=e;return(0,n.jsx)(n.Fragment,{children:c(t,r)})})},68533:function(e,t,r){"use strict";r.d(t,{O:function(){return m}});var n=r(52322),o=r(2784),l=r(32749),i=r(76475),a=r(67342),s=r(30544),c=r(36250);let u=()=>{let e=(0,s.p)("overflowTooltip"),t=(0,s.p)("overflowTooltipContent");return{root:(0,a.Z)(e,()=>({justifyContent:"inherit"})),content:(0,a.Z)(t,()=>({...c.aF}))}};var d=r(54090);let h=(e,t)=>{let[r,n]=(0,o.useState)();(0,d.L)(()=>{n(new MutationObserver(t))},[n,t]),(0,d.L)(()=>(null==r||r.observe(e,{characterData:!0,subtree:!0}),()=>{null==r||r.disconnect()}),[r,e])},m=(0,o.memo)(e=>{let{wide:t,placement:r,testId:a="overflow-info-tooltip",children:s,maxWidthElement:c,extend:m}=e,{css:f,rules:p}=(0,i.X)(u,{extend:m}),[x,g]=(0,o.useState)(!1),b=(0,o.useRef)(null),v=(0,o.useCallback)(()=>{b.current&&g(b.current.scrollWidth>b.current.offsetWidth);let e=window.setTimeout(()=>{v()},1e3);return()=>{window.clearTimeout(e)}},[b,g]);return(0,d.L)(()=>{v()},[v]),h(b.current,v),(0,n.jsxs)(l.u,{arrow:!1,wide:t,placement:r,testId:a,maxWidthElement:c,extend:{root:p.root},children:[(0,n.jsx)("div",{className:f.content(),ref:b,children:s}),x&&s]})})},64764:function(e,t,r){"use strict";r.d(t,{T:function(){return s}});var n=r(52322),o=r(2784),l=r(76475);let i=e=>{let{secondary:t,secondaryMobile:r}=e.theme.font.semantic.header;return{root:{...t,mobile:{...r}}}};var a=r(42512);let s=(0,o.memo)(e=>{let{tag:t,color:r,align:o,children:s,isMultiline:c,truncateOverflow:u,bold:d=!0,testId:h="header-secondary",extend:m}=e,{rules:f}=(0,l.X)(i,{extend:m});return(0,n.jsx)(a.Z,{tag:t,bold:d,truncateOverflow:u,isMultiline:c,color:r,align:o,testId:h,extend:{root:f.root},children:s})})},72599:function(e,t,r){"use strict";r.d(t,{a:function(){return s}});var n=r(52322),o=r(2784),l=r(76475);let i=e=>{let{tertiary:t,tertiaryMobile:r}=e.theme.font.semantic.header;return{root:{...t,tablet:r}}};var a=r(42512);let s=(0,o.memo)(e=>{let{tag:t,color:r,align:o,children:s,isMultiline:c,truncateOverflow:u,bold:d=!0,lineClamp:h,extend:m,testId:f="header-tertiary"}=e,{rules:p}=(0,l.X)(i,{extend:m});return(0,n.jsx)(a.Z,{tag:t,bold:d,truncateOverflow:u,isMultiline:c,lineClamp:h,color:r,align:o,testId:f,extend:{root:p.root},children:s})})},29335:function(e,t,r){"use strict";r.d(t,{Q:function(){return s}});var n=r(52322),o=r(2784),l=r(42512),i=r(76475);let a=e=>{let{subhead:t}=e.theme.font.semantic;return{root:{...t.primary}}},s=(0,o.memo)(e=>{let{tag:t,color:r,align:o,strike:s,truncateOverflow:c,isMultiline:u,bold:d,children:h,lineClamp:m,extend:f,testId:p="subhead-primary"}=e,{rules:x}=(0,i.X)(a,{extend:f});return(0,n.jsx)(l.Z,{tag:t,bold:d,truncateOverflow:c,isMultiline:u,lineClamp:m,color:r,strike:s,align:o,testId:p,extend:{root:x.root},children:h})})},32829:function(e,t,r){"use strict";r.d(t,{p:function(){return l}});
1var n=r(8762),o=r(37332);let l=e=>{let t=e.startsWith("/")?e.slice(1):e;return n.x.fromEnv()===o.M.Spa?t:"/".concat(t)}},4499:function(e,t,r){"use strict";r.d(t,{G:function(){return i}});var n=r(2784),o=r(1273),l=r(32829);let i=()=>{let{theme:e}=(0,o.F)();return{getBaseAsset:(0,n.useCallback)(e=>(0,l.p)(e),[]),getThemedAsset:(0,n.useCallback)(t=>{let r=(null==t?void 0:t.startsWith("/"))?t.slice(1):t;return(0,l.p)("images/".concat(e.palette.name.toLowerCase(),"/").concat(r))},[e.palette.name])}}},96852:function(e,t,r){"use strict";r.d(t,{E:function(){return n}});let n=r(2784).memo},64838:function(e,t,r){"use strict";r.d(t,{J:function(){return h}});var n=r(52322),o=r(96852),l=r(85929),i=r(99015),a=r(61266),s=r(2784),c=r(566),u=r(59659);let d=e=>{let{mobile:t,tablet:r,desktop:n}=e,o=(0,c.O)(),{isDesktop:d}=(0,u.N)(),h=(0,l.a)((0,i.tm)(a.U.Mobile)),m=(0,l.a)((0,i.tm)(a.U.Tablet)),[f,p]=(0,s.useState)(n);return((0,s.useEffect)(()=>{h?p(t):m&&r?p(r):p(n)},[h,m,t,r,n]),o)?f:d?n:t},h=(0,o.E)(function(e){let{args:t}=e,r=d(e);return(0,n.jsx)(r,{...t})})}},function(e){e.O(0,[6577,1566,5412,138,9476,9992,1933,680,9994,6217,5282,6680,2888,9774,179],function(){return e(e.s=5186)}),_N_E=e.O()}]);

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.