1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"v17.105.0"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:partner-pa":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b28b169e-aa5f-4e5e-8c06-0a9a702a49de",e._sentryDebugIdIdentifier="sentry-dbid-b28b169e-aa5f-4e5e-8c06-0a9a702a49de")}catch(e){}}(),function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"v17.105.0"},e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var i in n)n.hasOwnProperty(i)&&(e[i]=n[i])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:partner-pa":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b28b169e-aa5f-4e5e-8c06-0a9a702a49de",e._sentryDebugIdIdentifier="sentry-dbid-b28b169e-aa5f-4e5e-8c06-0a9a702a49de")}catch(e){}}(),(self.webpackChunk=self.webpackChunk||[]).push([[6968],{40896:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var i=n(19561),a=n(77719);const r=(0,i.Ay)(a.A,{shouldForwardProp:e=>"isOpen"!==e,target:"e14500od0"})(({isOpen:e})=>({width:"16px",height:"16px",transformOrigin:"center center",transition:"transform 0.3s ease",...e?{transform:"rotate(-180deg)"}:{}}),"")},53970:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>li});var i=n(24590),a=n.n(i),r=n(41337),l=n.n(r),o=n(53254),s=n.n(o),m=n(13651),c=n(53757),d=n(17052),p=n(46902),g=n(1622),u=n(24354),x=n(42638),A=n(4392),h=n(78907),f=n(32980),y=n(32158),v=n(19126),b=n(44864),w=n(16449),E=n.n(w),C=n(86261),z=n.n(C),M=n(30025),k=n(73614),B=n(44188);const D=e=>e?`${M.TF}${e}`:M.TM,I={name:"",image:"",big_image:"",ptype:M.YX,description:"",options:[],items:[]},S=(e,t,n)=>(e.length?e:[I]).map(e=>({...e,[M.R0]:D(e[M.R0]),[M.pY]:t,[M.aA]:e[M.aA]||M.YX,...n?{status:n}:{}})),L=(e,t)=>{const n=t[M.Kp],i=e[M.Kp],a=(Math.floor(1e6*i)-Math.floor(1e6*n))/1e6;return{conditionKey:M.Kp,toTargetValue:{number:a,unit:"mln"},targetValue:{number:.001*i,unit:""},partnerValue:{number:n,unit:"mln"},isFulfiled:n>=i}},T=(e,t)=>{const n=t[M.Q7],i=t[M.qN],a=t[M.Kp],r=e[M.Q7],l=a*r/100,o=(Math.floor(1e6*l)-Math.floor(1e6*i))/1e6;return{conditionKey:M.Q7,toTargetValue:{number:o,unit:"mln"},targetValue:{number:r,unit:""},partnerValue:{number:i,unit:"mln"},isFulfiled:n>=r}},P=(e,t)=>{const n=t[M.AO],i=e[M.AO],a=i-n;return{conditionKey:M.AO,toTargetValue:{number:a,unit:"activeClientsToYourTarget"},targetValue:{number:i,unit:""},partnerValue:{number:n,unit:"clients"},isFulfiled:a<=0}},j=(e,t)=>[L(e,t),T(e,t),P(e,t)],$=(e,t)=>{if(!t)return"";const n=k.D[t];return n?e.formatMessage(n):(B.s.withScope(n=>{n.setTags({locale:e.locale}),B.s.captureMessage(`LP: cant find translation for key ${t}`)}),"")};var _=n(41897),U=n(39888),N=n(32520),O=n(56718),F=n(71790),Y=n(50021),q=n(76609),R=n(40896),V=n(79684),W=n(85553),K=n(75788),H=n(36375),X=n(19561),J=n(99854),Q=n(82238),G=n(64728),Z=n(87166),ee=n(92171),te=n(79054),ne=n.n(te);const ie=({className:e,image:t,text:n})=>{const[i,a]=o.useState(t);return o.createElement(ae,{className:e,src:i,alt:n,onError:()=>a(M.TM)})},ae=(0,X.Ay)("img",{target:"exlmx130"})({name:"4zleql",styles:"display:block"}),re=e=>{const t=(0,m.A)(),{items:n,text:i}=e,a=n.map(e=>({image:e.image,title:$(t,e.key)})),r=a.length%2==0;return o.createElement("div",null,o.createElement(se,{variant:"uIUI3Regular",component:"div"},t.formatMessage(k.D.choosePrize)),r&&o.createElement(me,{component:"div",variant:"uIUI3Bold"},i),o.createElement(ce,null,!r&&o.createElement(me,{component:"div",variant:"uIUI3Bold"},i),a.map(e=>o.createElement(le,{key:e.title},o.createElement(oe,{image:D(e.image),text:i}),o.createElement(x.A,{variant:"uIUI3Regular"},e.title)))))},le=(0,X.Ay)("div",{target:"e1f7d1754"})({name:"1x0wy98",styles:"min-width:116px;max-width:116px"}),oe=(0,X.Ay)(ie,{target:"e1f7d1753"})({name:"uvaozh",styles:"display:block;width:100%;height:62px;border-radius:0%;object-fit:contain"}),se=(0,X.Ay)(x.A,{target:"e1f7d1752"})({name:"18uqayh",styles:"margin-bottom:16px"}),me=(0,X.Ay)(x.A,{target:"e1f7d1751"})({name:"18uqayh",styles:"margin-bottom:16px"}),ce=(0,X.Ay)("div",{target:"e1f7d1750"})({name:"1bs8tiv",styles:"display:grid;grid-template-columns:116px 116px;grid-row-gap:12px;grid-column-gap:24px"}),de=e=>{const{text:t,options:n,description:i}=e,a=(0,m.A)(),r=$(a,i),l=n.map(e=>$(a,e.key)),o=!(!r&&!l.length);return s().createElement("div",null,o&&s().createElement("div",null,s().createElement(me,{component:"div",variant:"uIUI3Bold"},t)),s().createElement(pe,{component:"div",variant:"uIUI3Regular"},o?s().createElement("div",null,r&&s().createElement("div",null,r),l.length?s().createElement(ge,null,l.map(e=>s().createElement("li",{key:e},e))):null):s().createElement(me,{component:"div",variant:"uIUI3Bold"},t)))},pe=(0,X.Ay)(x.A,{target:"epzyoi21"})({name:"ho1qnd",styles:"display:flex;flex-direction:row"}),ge=(0,X.Ay)("ul",{target:"epzyoi20"})({name:"1o91cwc",styles:"margin-top:16px;padding-inline-start:16px"}),ue=e=>{const t=e.items.length?re:de;return o.createElement(xe,null,o.createElement(t,e))},xe=(0,X.Ay)("div",{target:"e42cjrh0"})({name:"1khn195",styles:"box-sizing:border-box"});var Ae=n(90306),he=n(48802),fe=n(94492),ye=n(19093);const ve={PENDING:{color:"info",description:k.D.prizeStatusPendingDescription,icon:fe.A,size:16,title:k.D.prizeStatusPendingTitle},ISSUED:{color:"success",description:k.D.prizeStatusIssuedDescription,icon:Q.A,size:16,title:k.D.prizeStatusIssuedTitle},CANCELLED:{color:"error",description:k.D.prizeStatusCancelledDescription,icon:J.A,size:16,title:k.D.prizeStatusCancelledTitle},NONE:{color:"loyalty",description:k.D.prizeStatusNextPrizeDescription,icon:ye.A,size:20,title:k.D.prizeStatusNextPrizeTitle},UNKNOWN:{color:"success",description:k.D.prizeStatusIssuedDescription,icon:Q.A,size:16,title:k.D.prizeStatusIssuedTitle}},be=({status:e,onTooltipOpen:t})=>{const n=(0,m.A)(),i=ve[e];if(!i)return null;const a=i.icon,r={title:n.formatMessage(i.title),body:n.formatMessage(i.description)},l=e=>{e.stopPropagation(),t?.()};return s().createElement(we,{onFocus:l,onMouseOver:l},s().createElement(he.nY,{content:r,placement:"top",PopperProps:{sx:{zIndex:e
1=>e.zIndex.tooltip+1}}},s().createElement(Ee,{$color:i.color,$size:i.size,"aria-label":r.title,"data-testid":`loyalty-prize-status-${e?.toLowerCase()}`,tabIndex:0},s().createElement(a,null))))},we=(0,X.Ay)("span",{target:"e1uq08ok1"})({name:"7whesh",styles:"position:absolute;width:24px;height:24px;right:4px;top:4px;z-index:2"}),Ee=(0,X.Ay)("span",{target:"e1uq08ok0"})("width:24px;height:24px;border-radius:50%;box-shadow:0 3px 2.5px 0 rgba(184, 186, 187, 0.3);background-color:",({theme:e})=>e.palette.common.white,";border:1px solid ",({theme:e})=>e.palette.exness.pda.ultralight,";display:flex;align-items:center;justify-content:center;box-sizing:border-box;color:",({$color:e,theme:t})=>"error"===e?t.palette.error.main:"info"===e?t.palette.info.main:"success"===e?t.palette.success.main:t.palette.exness.pda.light,";& svg{width:",({$size:e})=>e,"px;height:",({$size:e})=>e,"px;}"),Ce=e=>{const{ptype:t,className:n,image:i,text:a,state:r,status:l,description:s,options:m,items:d}=e,p=l??(r===M._k?"NONE":"QUALIFIED"),g=Boolean(a||s||m.length||d.length),u=o.useRef(null),x=(0,c.wA)();return o.createElement(he.nY,{ref:u,onOpen:()=>{r!==M.Cn&&x((0,U.$)(v.$0.Dashboard,v.oA.Dashboard.LoyaltyPrizePopover,{prize:a}))},title:g&&t!==M.ET&&r!==M.Cn?o.createElement(ue,e):null},o.createElement(ze,{className:ne()(n)},o.createElement(Me,null,o.createElement(be,{status:p,onTooltipOpen:()=>u.current?.close()}),o.createElement(ie,{image:i,className:ne()(ke,r===M.ng&&De,t===M.ET&&Be,t===M.ET&&r===M.ng&&Ie)})),o.createElement(Se,{variant:"captionC1Regular"},o.createElement(Ae.e,{condition:t!==M.ET&&r!==M.Cn,wrap:e=>o.createElement(ee.N,{component:"span",anchor:!0,underline:"always"},e)},a))))},ze=(0,X.Ay)("div",{target:"ezi371l2"})({name:"1d4ohpv",styles:"display:flex;justify-content:flex-start;align-items:center;height:64px"}),Me=(0,X.Ay)("div",{target:"ezi371l1"})("position:relative;display:flex;justify-content:center;align-items:center;min-width:64px;width:64px;height:64px;margin-right:12px;border-radius:50%;",G.L.media.M,"{margin-right:10px;}"),ke=(0,Z.AH)({name:"19yqr6l",styles:"background-image:radial-gradient(circle at 50% 50%, #fff, #cccbcf);background-size:56px 56px;width:56px;height:56px;position:relative;border-radius:50%;z-index:1;object-fit:cover"}),Be=(0,Z.AH)({name:"1mfoynz",styles:"&&&{width:40px;height:40px;background-size:40px 40px;}"}),De=(0,Z.AH)({name:"8kyiy8",styles:"&&&{background-image:url(/images/loyalty/prize-achived-bckg.png);border:4px solid white;}"}),Ie=(0,Z.AH)({name:"y2c7fz",styles:"&&&{background-image:url(/images/loyalty/prize-achieved-intermediate-bckg.png);}"}),Se=(0,X.Ay)(x.A,{target:"ezi371l0"})({name:"179t5g5",styles:"position:relative;z-index:1"});var Le=n(70282);const Te=(0,X.Ay)(J.A,{target:"esr6xvg10"})("color:",({theme:e})=>e.palette.error.main,";"),Pe=(0,X.Ay)(Q.A,{target:"esr6xvg9"})("color:",({theme:e})=>e.palette.success.main,";"),je=({isFulfiled:e,className:t})=>e?o.createElement(Pe,{size:20,className:t}):o.createElement(Te,{size:20,className:t}),$e=()=>{const e=(0,m.A)(),{currentPrizeList:t,currentConditions:n}=o.useContext(Le.uv),i=o.useMemo(()=>n?.reduce((e,t)=>e+Number(t.isFulfiled),0)??0,[n]),[a,r]=t??[null,null],l=!!a;return o.createElement(o.Fragment,null,o.createElement(_e,{xs:12,xxl:3},o.createElement(x.A,{variant:"headingsSubheader","data-auto":"collapsed_loyalty_widget_description"},e.formatMessage(k.D.description))),l&&o.createElement(Ue,{xs:12,xxl:9},o.createElement(Ne,null,o.createElement(Fe,(0,H.A)({key:"loyalty_first_prize"},a,{text:$(e,a.name),progress:0}
1)),r&&[o.createElement(Oe,{variant:"captionC1Regular",key:"loyalty_prizes_separator"},e.formatMessage(k.D.betweenPrizes)),o.createElement(Fe,(0,H.A)({key:"loyalty_last_prize"},r,{text:$(e,r.name),progress:0}))]),o.createElement(Ye,null,o.createElement(Re,null,n&&n.map(({conditionKey:e,isFulfiled:t})=>o.createElement(qe,{key:e,isFulfiled:t}))),o.createElement(Ve,{variant:"bodyB1Regular"},e.formatMessage(k.D.conditionsCount,{fullfilled:i})))))},_e=(0,X.Ay)(W.fv,{target:"esr6xvg8"})("display:flex;flex-direction:column;",G.L.media.minL,"{display:flex;flex-direction:column;}"),Ue=(0,X.Ay)(W.fv,{target:"esr6xvg7"})("display:flex;flex-direction:column;",G.L.media.minS,"{flex-direction:row;align-items:flex-start;}",G.L.media.minM,"{align-items:center;}",G.L.media.minL,"{padding-top:24px;}",G.L.media.minXXL,"{padding-top:0;}"),Ne=(0,X.Ay)("div",{target:"esr6xvg6"})("padding:16px 0 16px 8px;",G.L.media.minS,"{padding-left:0;padding-bottom:8px;}",G.L.media.minM,"{display:flex;flex-direction:row;align-items:center;padding-bottom:16px;}",G.L.media.minL,"{padding-top:0;padding-bottom:0;}"),Oe=(0,X.Ay)(x.A,{target:"esr6xvg5"})("padding-left:72px;",G.L.media.minM,"{padding:0 20px;}"),Fe=(0,X.Ay)(Ce,{target:"esr6xvg4"})(G.L.media.minS,"{max-width:256px;}",G.L.media.minM,"{max-width:200px;}",G.L.media.minL,"{max-width:260px;}"),Ye=(0,X.Ay)("div",{target:"esr6xvg3"})("display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;align-content:center;",G.L.media.minS,"{padding-top:16px;padding-left:40px;margin-right:auto;height:56px;}",G.L.media.minM,"{margin-left:0;padding-top:0;height:auto;}",G.L.media.minL,"{padding-top:0;}"),qe=(0,X.Ay)(je,{target:"esr6xvg2"})({name:"sefcnw",styles:"margin-right:8px;&:last-of-type{margin-right:0;}"}),Re=(0,X.Ay)("div",{target:"esr6xvg1"})("display:flex;align-items:center;height:20px;margin-right:16px;",G.L.media.minS,"{margin-bottom:2px;}",G.L.media.minM,"{margin-top:2px;}"),Ve=(0,X.Ay)(x.A,{target:"esr6xvg0"})(G.L.media.minS,"{display:block;margin-left:0;margin-bottom:2px;}",G.L.media.minM,"{margin-top:2px;}");var We=n(25571),Ke=n(17796),He=n(12786),Xe=n(88729),Je=n(42648);const Qe=({className:e})=>{const t=(0,m.A)(),n=(0,Xe.l)("Dashboard"),i=(()=>{const e=(0,c.d4)(Ke.Jk).find(e=>e.url===We.dq.url),t=(0,Je.i)(He.e9);return e?e.url:t})();return s().createElement(u.A,{className:e,href:i,target:"_blank",rel:"noopener noreferrer",onClick:()=>n("Loyalty Program: Learn more button clicked")},t.formatMessage(k.D.more))},Ge=(0,X.Ay)(Qe,{target:"em82fac0"})("margin:",({theme:e})=>e.spacing(3,0),";");var Ze=n(19336),et=n(69002),tt=n(26003),nt=n.n(tt),it=n(13681),at=n.n(it);const rt=nt()(at())(({className:e,isFulfilled:t,withShadow:n,onEnter:i,onLeave:a,size:r})=>{const l=t?Q.A:J.A;return s().createElement(l,{className:ne()(at().root,e,{[at().fulfilled]:t,[at().small]:"small"===r,[at().middle]:"middle"===r,[at().large]:"large"===r,[at().withShadow]:n}),onMouseEnter:i,onMouseLeave:a,onTouchStart:i,onTouchEnd:a})}),lt=({toTargetValue:e,partnerValue:t,isFulfiled:n,className:i,selected:a,hoverCondition:r,resetHover:l,conditionKey:d,conditionIndex:p,targetValue:g})=>{const u=(0,m.A)(),x=(0,Xe.l)("Dashboard"),A=(0,o.useContext)(Le.Jf),h=(0,c.d4)(F.IS),{conditionTitleCaption:f,conditionFulfiled:y,currentResultCaption:v,conditionCaption:b}=(0,o.useMemo)(()=>({conditionTitleCaption:u.formatMessage(k.D.condition,{number:p+1}),conditionFulfiled:u.formatMessage(k.D.condition_fulfiled),currentResultCaption:u.formatMessage(k.D.current_result),conditionCaption:u.formatMessage(k.D[d],{[d]:g.number})}),[u,p,d,g]),w=(0,o.useMemo)(()=>({[M.Kp]:u.formatMessage(k.D.tvDescription),[M.Q7]:u.formatMessage(k.D.tvDescription),[M.AO]:u.formatMessage(k.D.activeClientsCountDescription)}),[u]),E=(0,o.useMemo)(()=>{let e="small";return h||(e=a?"large":"middle"),e},[a,h]);return s().createElement(st,{className:i},w[d]&&s().createElement(mt,null,s().createElement(he.nY,{title:w[d],onOpen:()=>x("Loyalty Program: Target info tooltip showed",{variant:d})},s().createElement(ct,null,s().createElement(et.A,{className:"icon"})))),s().createElement(dt,{variant:"captionC1Regular"},f),s().createElement(ut,{variant:"bodyB1Bold"},b),s().createElement(xt,null,s().createElement(At,null,s().createElement(rt,{isFulfilled:n,size:E,onEnter:r,onLeave:l,withShadow:!0}
1)),n?s().createElement(pt,{component:"div",variant:"headingsH3"},y):s().createElement(gt,{component:"div",variant:"headingsH3"},"activeClientsToYourTarget"===e.unit?u.formatMessage(k.D.activeClientsToYourTarget,{value:ot(e,A)}):u.formatMessage(k.D.toYourTarget,{value:ot(e,A)}))),s().createElement(ht,{component:"div",variant:"bodyB1Regular"},v,s().createElement(ft,null,ot(t,A))))},ot=(e,t)=>{if("activeClientsToYourTarget"===e.unit)return`${String(e.number)}`;if("clients"===e.unit)return`${String(e.number)} ${t.intl.formatMessage(k.D.clients)}`;const n="mln"===e.unit?e.number:1e-6*e.number;return t.selectedUnitItem.unit!==Le.d9.BLNUSD?`${t.conventTVToSelectedUnit(n)} ${t.intl.formatMessage(t.selectedUnitItem.caption)}`:n<1?`${t.intl.formatNumber(Math.floor(1e6*n))} USD`:n>=1e3?`${t.intl.formatNumber(Math.floor(.1*n)/100,{maximumFractionDigits:2})} ${t.intl.formatMessage(k.D.bln_usd)}`:`${t.intl.formatNumber(Math.floor(100*n)/100,{maximumFractionDigits:2})} ${t.intl.formatMessage(k.D.mln_usd)}`},st=(0,X.Ay)("div",{target:"eguucm610"})(({theme:e})=>({display:"flex",flexDirection:"column",justifyContent:"space-between",position:"relative",padding:"32px 32px 30px",boxSizing:"border-box",borderRadius:e.spacing(1),border:`dashed 1px ${e.palette.pda.main}`,margin:"0 -2px 0 6px",[e.media.maxS]:{padding:"24px 20px 24px",margin:"0 4px 0 6px"}}),""),mt=(0,X.Ay)("div",{target:"eguucm69"})({name:"yf1cpj",styles:"position:absolute;top:-18px;right:-18px"}),ct=(0,X.Ay)(Ze.A,{target:"eguucm68"})(({theme:e})=>({background:e.palette.common.white,height:"34px",width:"34px",boxShadow:"0 3px 5px rgba(0, 0, 0, 0.1)","& .icon":{width:"20px",height:"20px",color:e.palette.exness.exness.link}}),""),dt=(0,X.Ay)(x.A,{target:"eguucm67"})(({theme:e})=>({display:"flex",alignItems:"center",paddingLeft:"4px",paddingRight:"4px",position:"absolute",top:`calc(-1px - ${e.spacing(1)})`,left:"28px",color:e.palette.pda.main,backgroundColor:e.palette.exness.grey[200],".popover > div":{display:"inline-block",margin:`0 ${e.spacing(1)}`,color:e.palette.exness.grey[900]},[e.media.maxS]:{backgroundColor:e.palette.common.white,left:e.spacing(2)}}),""),pt=(0,X.Ay)(x.A,{target:"eguucm66"})(({theme:e})=>({margin:"8px 0",[e.media.maxS]:{fontSize:"18px",lineHeight:"24px",fontWeight:600}}),""),gt=(0,X.Ay)(x.A,{target:"eguucm65"})(({theme:e})=>({margin:"8px 0",[e.media.maxS]:{fontSize:"18px",lineHeight:"24px",fontWeight:600}}),""),ut=(0,X.Ay)(x.A,{target:"eguucm64"})(({theme:e})=>({[e.media.maxS]:{fontSize:"12px",lineHeight:"16px",fontWeight:600}}),""),xt=(0,X.Ay)("div",{target:"eguucm63"})({name:"viq9fl",styles:"position:relative;padding:7px 0 5px"}),At=(0,X.Ay)("div",{target:"eguucm62"})(({theme:e})=>({position:"absolute",left:`calc(0px - ${e.spacing(4)} - ${e.spacing(2)})`,top:"13px",width:e.spacing(4),height:e.spacing(4),display:"flex",justifyContent:"center",alignItems:"center",[e.media.maxS]:{left:"-32px",width:"24px",height:"24px",backgroundColor:e.palette.common.white}}),""),ht=(0,X.Ay)(x.A,{target:"eguucm61"})(({theme:e})=>({[e.media.maxS]:{fontSize:"12px",lineHeight:"16px"}}),""),ft=(0,X.Ay)("span",{target:"eguucm60"})({name:"1fc7208",styles:"font-weight:600;&::before{content:' ';display:inline-block;white-space:pre;}"}),yt=({hoverIcons:e,className:t})=>{const{currentConditions:n}=o.useContext(Le.uv),[i,a]=o.useContext(Le.M7),r=()=>{e&&a(null)};return o.createElement("div",{className:t},n&&n.map((t,n)=>{return o.createElement(vt,{key:t.conditionKey},o.createElement(W.fv,null,o.createElement(lt,(0,H.A)({},t,{conditionIndex:n,selected:i===t.conditionKey,hoverCondition:(l=t.conditionKey,()=>{e&&a(l)}),resetHover:r}))));var l}))},vt=(0,X.Ay)(W.fI,{target:"er8bh8t0"})("padding:20px 20px 20px 0;",G.L.media.maxL,"{padding-right:16px;}",G.L.media.maxS,"{padding:10px 16px 10px 0;}");var bt=n(5630);const wt=(0,X.Ay)(W.mc,{target:"e1uxnlmm5"})(({theme:e})=>`\n margin-top: ${e.spacing(1)};\n margin-bottom: ${e.spacing(1)};\n\n ${e.media.minM} {\n margin-top: ${e.spacing(2)};\n margin-bottom: ${e.spacing(2)};\n }\n`,""),Et=(0,X.Ay)(W.fv,{target:"e1uxnlmm4"})(({theme:e})=>`\n position: relative;\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n\n ${e.media.maxS}
1 {\n align-items: flex-end;\n flex-direction: column-reverse;\n }\n`,""),Ct=(0,X.Ay)(W.fv,{target:"e1uxnlmm3"})(({theme:e})=>`\n padding-left: ${e.spacing(2)};\n`,""),zt=(0,X.Ay)(W.fv,{target:"e1uxnlmm2"})(({theme:e})=>`\n padding-left: ${e.spacing(2)};\n`,""),Mt=Et,kt=(0,X.Ay)(bt.A,{target:"e1uxnlmm1"})(({theme:e})=>`\n flex-wrap: wrap;\n row-gap: 0;\n min-height: 40px;\n line-height: 40px;\n align-items: center;\n\n ${e.media.maxS} {\n justify-content: space-between;\n }\n`,""),Bt=(0,X.Ay)(x.A,{target:"e1uxnlmm0"})(({theme:e})=>`\n margin-top: 12px;\n margin-bottom: ${e.spacing(2)};\n align-self: flex-start;\n\n ${e.media.maxS} {\n margin-top: 0;\n width: 100%;\n }\n`,""),Dt=()=>{const e=(0,m.A)();return s().createElement(wt,null,s().createElement(Bt,{variant:"headingsH3",component:"div"},s().createElement(kt,{direction:"row",gap:1,alignItems:"center"},e.formatMessage(k.D.programTitle),s().createElement(g.A,{icon:s().createElement(A.A,{size:16}),color:"neutral",label:e.formatMessage(V.A.dataUpdateFrequency,{hours:4}),size:"small",variant:"outlined",sx:{gap:.5}}))),s().createElement(d.A,{variant:"standard",severity:"warning",color:"warning"},s().createElement(p.A,null,e.formatMessage(k.D.restrictedTitle)),e.formatMessage(k.D.restrictedDescription)))};var It=n(73689),St=n.n(It);const Lt=({conditions:e,horizontalView:t,className:n})=>{const[i,a]=o.useContext(Le.M7),r=(e=>e.length>=3)(e),l=e=>()=>{a(e)},s=()=>{a(null)};return o.createElement(Tt,{className:ne()(n,{[jt]:t})},r&&e.map(({isFulfiled:e,conditionKey:t})=>o.createElement(Pt,{key:t},o.createElement(rt,{isFulfilled:e,onEnter:l?l(t):()=>{},onLeave:s,size:i===t?"middle":"small"}))))},Tt=(0,X.Ay)("div",{target:"e7w7oi21"})({name:"1n0venn",styles:"display:flex;flex-direction:column;justify-content:space-between;align-items:center;width:24px;height:72px;position:relative"}),Pt=(0,X.Ay)("div",{target:"e7w7oi20"})({name:"1tdl91i",styles:"width:24px;height:24px;display:flex;justify-content:center;align-items:center"}),jt=(0,Z.AH)({name:"ho1qnd",styles:"display:flex;flex-direction:row"});var $t=n(94304),_t=n(27019),Ut=n.n(_t);const Nt=({prizeList:e,progress:t,className:n,showConnection:i=!0,horizontal:a=!1,children:r})=>{(0,$t.A)(Ut());const l=(0,m.A)(),[o,c]=e,d=Boolean(c);if(!o)return null;const p=d&&i;return s().createElement("div",{className:ne()(Ut().container,{[Ut().horizontalView]:a},n)},i&&s().createElement("div",{className:ne()(Ut().conditionBlock,{[Ut().doublePrize]:p,[Ut().horizontalView]:a})},r),s().createElement("div",{className:ne()(Ut().prizeWrapper,{[Ut().horizontalView]:a})},s().createElement(Ce,(0,H.A)({},o,{progress:t,className:Ut().prize,text:$(l,o.name)})),c&&s().createElement(s().Fragment,null,s().createElement(x.A,{component:"div",variant:"captionC1Regular",className:ne()(Ut().betweenPrizes,{[Ut().horizontalView]:a})},l.formatMessage(k.D.betweenPrizes)),s().createElement(Ce,(0,H.A)({},c,{progress:t,className:Ut().prize,text:$(l,c.name)})))))};var Ot=n(78059);const Ft=e=>e>0&&e<100,Yt=e=>e>=100,qt=({progress:e,children:t})=>s().createElement(Vt,null,s().createElement(Gt,{className:ne()(Yt(e)&&nn)},s().createElement(Zt,{style:{height:+e+"%"}}),s().createElement(en,{className:ne()(Ft(e)&&tn),style:{top:`calc(${+e}% - 8px)`}})),t),Rt=({volumeMln:e,progress:t,prizeList:n,conditions:i,isLastReached:a})=>{const r=s().useContext(Le.Jf),l=s().useContext(Le.uv).partnerState.prize_was_received,o=(0,m.A)(),c={goalAchieved:o.formatMessage(k.D.goalAchived),getPrize:o.formatMessage(k.D.getPrize),getPrizePopoverText:o.formatMessage(k.D.getPrizeText2)};return s().createElement(Wt,null,a&&!l&&s().createElement(Jt,{variant:"captionC1Bold"},s().createElement("div",null,c.goalAchieved),s().createElement(he.nY,{title:c.getPrizePopoverText},s().createElement(an,null,c.getPrize))),s().createElement(Kt,null,s().createElement(Ht,{component:"div",variant:"uIUI1Bold"},s().createElement(Xt,null,s().createElement("div",null,r.conventTVToSelectedUnit(e)),s().createElement("div",null,o.formatMessage(r.selectedUnitItem.captionShort)))),s().createElement(Qt,{prizeList:n,progress:t},s().createElement(Lt,{conditions:i}))))},Vt=(0,X.Ay)("div",{target:"e1xogxq210"})({name:"1pfo6s0",styles:"width:100%;display:flex;flex-direction:row;align-items:stretch;position:relative"}),Wt=(0,X.Ay)("div",{target:"e1xogxq29"})(({theme:e})=>`\n position: relative;\n width: 100%;\n margin-left: 18px;\n border-bottom: 1px dashed ${e.palette.pda.main};\n`,""),Kt=(0,X.Ay)("div",{target:"e1xogxq28"})({name:"tpmmfp",styles:"position:relative;display:flex;justify-content:flex-start;align-items:flex-start"}),Ht=(0,X.Ay)(x.A,{target:"e1xogxq27"})({name:"wfz368",styles:"min-width:80px;width:80px"}),Xt=(0,X.Ay)("div",{target:"e1xogxq26"})({name:"1ldxip1",styles:"position:absolute;bottom:9px;max-width:60px"}),Jt=(0,X.Ay)(x.A,{target:"e1xogxq25"})({name:"he3qye",styles:"margin-top:12px;display:flex;justify-content:space-between"}),Qt=(0,X.Ay)(Nt,{target:"e1xogxq24"})({name:"3b5mcf",styles:"margin:7px 0 8px"}),Gt=(0,X.Ay)("div",{target:"e1xogxq23"})(({theme:e})=>`\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n width: 6px;\n min-width: 6px;\n background-color: ${e.palette.neutral.main};\n position: relative;\n\n &::before {\n content: '';\n position: absolute;\n width: 16px;\n height: 1px;\n bottom: -1px;\n border-top: 1px solid ${e.palette.neutral.main};\n }\n`,""),Zt=(0,X.Ay)("div",{target:"e1xogxq22"})(({theme:e})=>`\n width: 100%;\n background-color: ${e.palette.success.main};\n position: relative;\n`,""),en=(0,X.Ay)("div",{target:"e1xogxq21"})({name:"662hew",styles:"content:url(/images/loyalty/icon-progress-arrow.svg);width:16px;height:16px;top:-9px;left:-5px;position:absolute;display:none;transform:rotate(-180deg);z-index:2"}),tn=(0,Z.AH)({name:"hzbwfv",styles:"&&&{display:block;}"}),nn=(0,Z.AH)("&&&{&::before{border-top:1px solid ",G.L.palette.success.main,";}}",""),an=(0,X.Ay)(Ot.k,{target:"e1xogxq20"})({name:"1bmnxg7",styles:"white-space:nowrap"}),rn=({tierId:e,volumeMln:t,progress:n,prizeList:i,conditions:a,isLastReached:r})=>{const l=(0,m.A)(),o=s().useContext(Le.Jf),c=s().useContext(Le.uv).partner
1State.prize_was_received,d=Ft(n),p=Yt(n),g={goalAchieved:l.formatMessage(k.D.goalAchived),getPrize:l.formatMessage(k.D.getPrize),getPrizePopoverText:l.formatMessage(k.D.getPrizeText2)};return s().createElement(ln,{key:e},s().createElement(on,{className:ne()(p&&mn)},s().createElement(sn,{className:ne()(d&&cn),style:{height:`${n}%`}})),s().createElement(dn,null,s().createElement(pn,null,s().createElement(gn,null,s().createElement(x.A,{variant:"uIUI1Bold",component:"span"},`${o.conventTVToSelectedUnit(t)} ${l.formatMessage(o.selectedUnitItem.captionShort)}`)),s().createElement(hn,{prizeList:i,progress:n},s().createElement(Lt,{conditions:a}))),r&&!c&&s().createElement(un,null,s().createElement(xn,null,g.goalAchieved),s().createElement(he.nY,{title:g.getPrizePopoverText},s().createElement(An,null,g.getPrize)))))},ln=(0,X.Ay)("div",{target:"e1fv5aix9"})({name:"114f7i",styles:"width:100%;display:flex;flex-direction:row;align-items:stretch"}),on=(0,X.Ay)("div",{target:"e1fv5aix8"})(({theme:e})=>`\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n width: 6px;\n min-width: 6px;\n background-color: ${e.palette.neutral.main};\n position: relative;\n\n &::before {\n content: '';\n position: absolute;\n width: 16px;\n height: 1px;\n top: 0;\n border-top: 1px solid ${e.palette.neutral.main};\n }\n`,""),sn=(0,X.Ay)("div",{target:"e1fv5aix7"})(({theme:e})=>`\n width: 100%;\n background-color: ${e.palette.success.main};\n position: relative;\n\n &::after {\n content: url(/images/loyalty/icon-progress-arrow.svg);\n width: 16px;\n height: 16px;\n top: -9px;\n left: -5px;\n position: absolute;\n display: none;\n z-index: 1;\n }\n`,""),mn=(0,Z.AH)("&&&{&::before{border-top:1px solid ",G.L.palette.success.main,";}}",""),cn=(0,Z.AH)({name:"17ccht9",styles:"&&&{&::after{display:block;}}"}),dn=(0,X.Ay)("div",{target:"e1fv5aix6"})(({theme:e})=>`\n flex-grow: 1;\n margin-left: 18px;\n border-top: 1px dashed ${e.palette.pda.main};\n`,""),pn=(0,X.Ay)("div",{target:"e1fv5aix5"})({name:"1ozhjyl",styles:"display:flex;justify-content:flex-start;align-items:flex-start"}),gn=(0,X.Ay)("div",{target:"e1fv5aix4"})("position:absolute;z-index:1;width:120px;min-width:94px;display:flex;flex-direction:column;justify-content:space-between;padding:9px 0;",G.L.media.M,"{width:20px;min-width:20px;white-space:pre-line;font-size:16px;line-height:20px;}:global([lang='es']){&{width:20px;min-width:20px;white-space:pre-line;font-size:16px;line-height:20px;}}"),un=(0,X.Ay)("div",{target:"e1fv5aix3"})({name:"1bvonbz",styles:"display:flex;justify-content:flex-start;align-items:flex-start;position:relative;font-weight:500;top:-8px;margin:4px 0 4px"}),xn=(0,X.Ay)("div",{target:"e1fv5aix2"})("width:200px;",G.L.media.M,"{width:178px;}"),An=(0,X.Ay)(Ot.k,{target:"e1fv5aix1"})({name:"1bmnxg7",styles:"white-space:nowrap"}),hn=(0,X.Ay)(Nt,{target:"e1fv5aix0"})("margin:7px 0 8px 92px;",G.L.media.M,"{margin-left:72px;}"),fn=()=>{const e=(0,m.A)(),{tiers:t,partnerState:{is_whitelist:n}}=s().useContext(Le.uv),i=s().useMemo(()=>(a()(t)?.progress??0)>=100,[t]);return s().createElement(yn,null,s().createElement(vn,null),i&&s().createElement(wn,null),s().createElement(bn,{variant:"bodyB1Bold"},n?e.formatMessage(k.D.lastTierAdditional):e.formatMessage(k.D.lastTierEncourage)))},yn=(0,X.Ay)("div",{target:"eobjbjt3"})({name:"1u033ya",styles:"display:flex;flex-direction:row;position:relative;min-height:56px"}),vn=(0,X.Ay)("div",{target:"eobjbjt2"})("width:6px;min-width:6px;background-color:",({theme:e})=>e.palette.neutral.main,";"),bn=(0,X.Ay)(x.A,{target:"eobjbjt1"})("padding:0 0 12px 18px;box-sizing:border-box;",G.L.media.maxS,"{padding:20px 0 20px 18px;min-height:0;}"),wn=(0,X.Ay)("div",{target:"eobjbjt0"})("content:url(/images/loyalty/icon-progress-arrow.svg);width:16px;height:16px;left:-5px;position:absolute;z-index:2;bottom:-8px;",G.L.media.maxS,"{transform:rotate(-180deg);top:-8px;}"),En=()=>{const e=(0,m.A)(),t=o.useContext(Le.uv).tiers,n=o.useContext(Le.Jf).selectedUnitItem,i=o.useMemo(()=>[...t].reverse(),[t]);return o.createElement(Cn,null,o.createElement(zn,{variant:"captionC1Regular"},e.formatMessage(k.D.progressTitle2,{units:e.formatMessage(n.caption)})),o.createElement(Mn,null,o.createElement(fn,null),i.map(e=>o.createElement(rn,(0,H.A)({key:e.tierId},e)))))},Cn=(0,X.Ay)("div",{target:"eozh47j2"})({name:"1bku8dt",styles:"position:relative;margin-bottom:28px"}),zn=(0,X.Ay)(x.A,{target:"eozh47j1"})(({theme:e})=>`\n color: ${e.palette.text.secondary};\n position: absolute;\n bottom: -16px;\n\n ${e.media.minM}
1 {\n top: 0;\n bottom: auto;\n transform: rotate(-90deg) translate(-100%);\n transform-origin: 0 0;\n\n [dir='rtl'] & {\n transform: rotate(-90deg) translate(0, 0);\n transform-origin: 100% 0;\n }\n }\n`,""),Mn=(0,X.Ay)("div",{target:"eozh47j0"})({name:"tunf42",styles:"margin-left:24px"}),kn=()=>{const e=(0,m.A)(),t=o.useContext(Le.Jf),n=(0,c.d4)(F.IS),{partnerState:i,tiers:a}=o.useContext(Le.uv),r=i.is_whitelist||n,l=o.useMemo(()=>r?St()(2,a):a,[a,r]),s=n?qt:rn;return o.createElement(Bn,null,r&&o.createElement(Dn,null),!n&&o.createElement(zn,{component:"div",variant:"captionC1Regular"},e.formatMessage(k.D.progressTitle2,{units:e.formatMessage(t.selectedUnitItem.caption)})),o.createElement(In,null,o.createElement(Ln,null,o.createElement(jn,null,o.createElement($n,null),o.createElement(Tn,null,o.createElement(_n,null))),o.createElement(Pn,null,o.createElement(Un,{variant:"uIUI1Bold"},o.createElement("span",null,t.conventTVToSelectedUnit(i.tv))," ",o.createElement("span",null,t.intl.formatMessage(t.selectedUnitItem.captionShort))),!i.is_whitelist&&o.createElement(x.A,{variant:"bodyB1Bold"},e.formatMessage(k.D.lastTierEncourage)))),o.createElement(Sn,{"data-key":"real-tiers"},l.map(e=>o.createElement(s,(0,H.A)({key:e.tierId},e,{progress:100,conditions:[]}),o.createElement(Rt,e))))),n&&o.createElement(zn,{component:"div",sx:{position:"static",mt:2}},e.formatMessage(k.D.progressTitle2,{units:e.formatMessage(t.selectedUnitItem.caption)})))},Bn=(0,X.Ay)("div",{target:"eu775vf10"})(({theme:e})=>`\n position: relative;\n\n ${e.media.minM} {\n min-height: 20px;\n }\n`,""),Dn=(0,X.Ay)("div",{target:"eu775vf9"})(({theme:e})=>`\n height: 80px;\n width: 100%;\n background-image: ${e.gradients.defaultToZero("to bottom")};\n position: absolute;\n z-index: 2;\n\n ${e.media.minM} {\n background-image: ${e.gradients.defaultToZero("to top")};\n bottom: 0;\n }\n`,""),In=(0,X.Ay)("div",{target:"eu775vf8"})("display:flex;flex-direction:column-reverse;",G.L.media.minM,"{margin-left:24px;flex-direction:column;}"),Sn=(0,X.Ay)("div",{target:"eu775vf7"})("display:flex;flex-direction:column;",G.L.media.minM,"{flex-direction:column-reverse;}"),Ln=(0,X.Ay)("div",{target:"eu775vf6"})("display:grid;grid-template-columns:max-content 1fr;min-height:90px;height:100%;",G.L.media.maxS,"{align-items:flex-start;}",G.L.media.minM,"{min-height:60px;}"),Tn=(0,X.Ay)("div",{target:"eu775vf5"})({name:"bjn8wh",styles:"position:relative"}),Pn=(0,X.Ay)("div",{target:"eu775vf4"})("display:flex;flex-direction:column;gap:",({theme:e})=>e.spacing(1),";position:relative;padding-left:18px;width:100%;height:100%;",({theme:e})=>e.breakpoints.down("sm"),"{flex-direction:column-reverse;}"),jn=(0,X.Ay)("div",{target:"eu775vf3"})("display:flex;flex-direction:column;width:6px;min-width:6px;background-color:",({theme:e})=>e.palette.neutral.main,";height:100%;",G.L.media.minM,"{min-height:42px;flex-direction:column-reverse;}",G.L.media.minL,"{min-height:34px;}"),$n=(0,X.Ay)("div",{target:"eu775vf2"})("width:100%;height:100%;background-color:",({theme:e})=>e.palette.success.main,";position:relative;"),_n=(0,X.Ay)("div",{target:"eu775vf1"})("content:url(/images/loyalty/icon-progress-arrow.svg);width:16px;height:16px;left:-5px;top:-5px;position:absolute;z-index:2;transform:rotate(-180deg);",G.L.media.minM,"{transform:none;bottom:-5px;}"),Un=(0,X.Ay)(x.A,{target:"eu775vf0"})("min-width:50px;width:50px;line-height:normal;",G.L.media.minM,"{}",G.L.media.minL,"{min-width:initial;width:initial;}"),Nn=()=>{const e=(0,m.A)(),t=(0,c.d4)(F.IS),{partnerState:{is_whitelist:n}}=o.useContext(Le.uv);return o.createElement(o.Fragment,null,o.createElement(W.fv,{xs:12,m:6,xxl:4},n?o.createElement(On,{component:"div"},e.formatMessage(k.D.lastTierAdditional)):o.createElement(yt,{hoverIcons:!0}),!t&&o.createElement(Fn,null)),o.createElement(W.fv,{xs:12,m:6,xxl:4},o.createElement(kn,null),t&&o.createElement(Fn,null)))},On=(0,X.Ay)(x.A,{target:"edwj5j11"})("margin-bottom:24px;",G.L.media.minM,"{margin:0;}"),Fn=(0,X.Ay)(Ge,{target:"edwj5j10"})("box-sizing:border-box;",G.L.media.minM,"{width:initial;}",G.L.media.maxXS,"{width:100%;text-align:center;}",G.L.media.minXL,"{width:initial;}");var Yn=n(20863);const qn=({volumeMln:e,progress:t,prizeList:n})=>{const i=(0,m.A)(),a=s().useContext(Le.Jf);return s().createElement(Kn,null,s().createElement(Wn,null),s().createElement(Vn,null),s().createElement(x.A,{variant:"bodyB1Regular"},i.formatMessage(k.D.description)),s().createElement(Hn,null),s().createElement(Kt,null,s().createElement(Ht,{component:"div",variant:"uIUI1Bold"},s().createElement(Xt,null,s().createElement("div",null,a.conventTVToSelectedUnit(e)),s().createElement("div",null,i.formatMessage(
1a.selectedUnitItem.captionShort)))),s().createElement(Qt,{prizeList:n,progress:t})),s().createElement(Xn,{hoverIcons:!0}))},Rn=(0,X.Ay)("div",{target:"eb70a1i5"})(({theme:e})=>`\n top: 0px;\n width: 120px;\n height: 100%;\n background-color: ${e.palette.background.paper};\n position: absolute;\n overflow: hidden;\n`,""),Vn=(0,X.Ay)(Rn,{target:"eb70a1i4"})("right:-",120,"px;"),Wn=(0,X.Ay)(Rn,{target:"eb70a1i3"})("left:calc(-",120,"px - 6px);"),Kn=(0,X.Ay)("div",{target:"eb70a1i2"})({name:"ii1kgj",styles:"background-color:white;padding:24px 0 14px 20px;position:relative"}),Hn=(0,X.Ay)("div",{target:"eb70a1i1"})({name:"16qeji9",styles:"content:url(/images/loyalty/icon-arrow-down.svg);width:16px;height:16px;display:block;margin-top:10px"}),Xn=(0,X.Ay)(yt,{target:"eb70a1i0"})({name:"bwfjbh",styles:"margin-top:22px"}),Jn=()=>{const e=(0,m.A)(),t=o.useContext(Le.uv).tiers,n=o.useContext(Le.Jf);return o.createElement(W.fv,null,o.createElement(bt.A,null,n.selectedUnitItem.unit!==Le.d9.BLNUSD&&o.createElement(d.A,{sx:{mb:2},severity:"warning",color:"warning"},e.formatMessage(k.D.lotsWarning)),t.map((t,i)=>o.createElement(qt,{key:t.tierId,progress:t.progress},o.createElement(Ae.e,{condition:0===i,wrap:t=>o.createElement(Yn.A,{display:"flex",flexDirection:"column"},o.createElement(Qn,{component:"div",variant:"captionC1Regular"},e.formatMessage(k.D.progressTitle2,{units:e.formatMessage(n.selectedUnitItem.caption)})),t)},t.conditions.length?o.createElement(qn,t):o.createElement(Rt,t)))),o.createElement(fn,null)),o.createElement(Gn,null,o.createElement(Zn,null)))},Qn=(0,X.Ay)(x.A,{target:"evhfcxx2"})(({theme:e})=>`\n color: ${e.palette.text.secondary};\n min-height: 40px;\n padding-left: 18px;\n `,""),Gn=(0,X.Ay)("div",{target:"evhfcxx1"})("display:flex;flex-direction:column;",G.L.media.minS,"{flex-direction:row;align-items:flex-end;}"),Zn=(0,X.Ay)(Ge,{target:"evhfcxx0"})("margin-left:0!important;text-align:center;",G.L.media.maxXS,"{margin-bottom:28px!important;}",G.L.media.minS,"{width:auto;margin-bottom:0;}");var ei=n(32370),ti=n(4874),ni=n(30873),ii=n(50401);const ai=e=>{const t=(0,m.A)(),n=(0,Xe.l)("Dashboard"),i=(0,ei.A)(),[a,r]=(0,o.useState)(!1),l=(0,o.useRef)(null);return s().createElement(s().Fragment,null,s().createElement(ti.x,{onClickAway:()=>{r(!1)}},s().createElement("span",null,s().createElement(u.A,{size:"small",color:"neutral",variant:"text",ref:l,onClick:()=>{r(!a)},endIcon:s().createElement(R.l,{isOpen:a})},s().createElement(x.A,{color:i.palette.exness.exness.link,variant:"headingsH3"},t.formatMessage(e.selectedUnitItem.caption))),s().createElement(ni.A,{sx:{zIndex:2},open:a,anchorEl:l.current,placement:"bottom-start"},s().createElement(ii.C,(0,H.A)({},e,{selectUnit:t=>{r(!1),e.selectUnit(t),n(v.oA.Dashboard.LoyaltyCurrencySelect,{currency:t})}}))))))},ri=(0,N.JM)(O.Z.LoyaltyProgram),li=()=>(0,c.d4)(Y.AO)?o.createElement(oi,null):o.createElement(Dt,null),oi=()=>{const e=(0,m.A)(),{data:t=[]}=(0,f.IO)(),n=o.useMemo(()=>[Le.oA,...t],[t]),i=(0,Le.OC)(n),r=(0,c.wA)(),s=(0,b.x)(),w=(0,c.d4)(q.Ug),C=(0,c.d4)(q.V7),B=(0,c.d4)(ri),D=(0,_.vN)(y.get(M.iO)),[I,L]=(0,o.useState)(B.collapsed||D),[T,P]=(0,o.useState)(null),$=(0,c.d4)(F.IS);(0,o.useEffect)(()=>{void 0!==y.get(M.iO)&&(D!==B.collapsed&&r((0,N.SJ)(O.Z.LoyaltyProgram,{collapsed:D})),y.remove(M.iO))},[r,D,B.collapsed]);const{data:Y}=(0,h.U)({queryKey:["LoyaltyData",w,C],queryFn:()=>Promise.all([s.sendGet(M.DS.tiers,{country:C}),s.sendGet(M.DS.partnerState)]).then(([e,t])=>{const n={is_whitelist:t.final_tier_received,...t},i=((e,t)=>{const n=t.tv,i=z()(E()("id",t.last_reached_tier))(e);return e.map((a,r,l)=>{const o=l[r-1],s=o?.tv??0,m=Math.floor((n-s)/(a.tv-s)*100),c=r<=i?M.ng:M._k,d=r===i+1,p=r===e.length-1,g=i===e.length-1,u=p&&g&&!t.is_whitelist,x=d||u;return{tierId:a.id,volumeMln:a.tv,progress:m,prizeList:S(a.prizes,c,a.status),conditions:x?j(a,t):[],isLastReached:a.id===t[M.Mb]}})})(e.data,n),a=l()(e=>Boolean(e.conditions.length),i),r=a&&a.conditions?a.conditions:[],o=a?a.prizeList.map(e=>({...e,state:M.Cn})):[];return{tiers:i,partnerState:n,currentTier:a,currentPrizeList:o,currentConditions:r}})}),H=()=>{I?(r((0,U.$)(v.$0.Dashboard,v.oA.Dashboard.LoyaltyDetailsOpen)),L(!1),r((0,N.SJ)(O.Z.LoyaltyProgram,{collapsed:!1}))):(r((0,U.$)(v.$0.Dashboard,v.oA.Dashboard.LoyaltyDetailsClose)),L(!0),r((0,N.SJ)(O.Z.LoyaltyProgram,{collapsed:!0})))},X={title:e.formatMessage(k.D.programTitle),description:e.formatMessage(k.D.description),hideDetailsTitle:e.formatMessage(K.A.captionHideDetails),showDetail
1sTitle:e.formatMessage(K.A.captionShowDetails)};if(!Y)return null;if(Y.partnerState.final_prize_received&&!Y.partnerState.is_whitelist)return o.createElement(wt,null,o.createElement(Bt,{variant:"headingsH3",component:"div"},X.title),o.createElement(d.A,{color:"success"},o.createElement(p.A,null,e.formatMessage(k.D.lastTierAlertTitle)),e.formatMessage(k.D.lastTierAlertDescription)));const J=a()(Y.tiers)?.isLastReached??!1;return o.createElement(Le.Jf.Provider,{value:i},o.createElement(Le.M7.Provider,{value:[T,P]},o.createElement(Le.uv.Provider,{value:Y},o.createElement(wt,null,o.createElement(W.fI,null,o.createElement(Et,{xs:12},o.createElement(Bt,{variant:"headingsH3",component:"div"},o.createElement(kt,{direction:"row",gap:1,alignItems:"center"},X.title,!I&&o.createElement(ai,i),o.createElement(g.A,{icon:o.createElement(A.A,{size:16}),color:"neutral",label:e.formatMessage(V.A.dataUpdateFrequency,{hours:4}),size:"small",variant:"outlined",sx:{gap:.5}}))),!J&&o.createElement(u.A,{size:"small",variant:"text",color:"neutral",onClick:H,endIcon:o.createElement(R.l,{isOpen:!I})},I?X.showDetailsTitle:X.hideDetailsTitle))),o.createElement(W.fI,null,J?o.createElement(Nn,null):I?o.createElement($e,null):$?o.createElement(Jn,null):o.createElement(o.Fragment,null,o.createElement(Ct,{xl:6,xxl:4},i.selectedUnitItem.unit!==Le.d9.BLNUSD&&o.createElement(d.A,{sx:{mb:2},severity:"warning",color:"warning"},e.formatMessage(k.D.lotsWarning)),o.createElement(x.A,{variant:"headingsSubheader"},X.description),o.createElement(yt,{hoverIcons:!0}),o.createElement(Ge,null)),o.createElement(zt,{xl:6,xxl:4},o.createElement(En,null)))),!I&&!J&&o.createElement(W.fI,null,o.createElement(Mt,{xs:12},o.createElement("span",null),o.createElement(u.A,{size:"small",variant:"text",color:"neutral",onClick:H,endIcon:o.createElement(R.l,{isOpen:!0})},I?X.showDetailsTitle:X.hideDetailsTitle)))))))}},17796:(e,t,n)=>{"use strict";n.d(t,{G5:()=>h,Jk:()=>y,KG:()=>u,iI:()=>f,qO:()=>x,v_:()=>A});var i=n(39838),a=n(79e3),r=n(25571),l=n(74291),o=n(12786),s=n(14075),m=n(67136),c=n(88826),d=n(2001),p=n(45088),g=n(76609);const u=(0,i.Mz)([s.Sx,p.Lg,d.Nn,g.ES,g.V7],(e,t,n,i,r)=>{const l=t,o=i,s=r;let m=e.main;const c=e[l];if(c){const e=c.main;e&&(m=(0,a.V6)(m,e));const t=c.overrides;t&&t.forEach(e=>{Object.entries(e).forEach(([e,t])=>{if("location"===e){const e=t[n];e&&(m=(0,a.V6)(m,e))}if("country"===e){const e=t,n=e[s]??e.XX;n&&(m=(0,a.V6)(m,n))}if("entity"===e){const e=t[o];e&&(m=(0,a.V6)(m,e))}})})}return m}),x=(0,i.Mz)(u,e=>e.contactEmail),A=((0,i.Mz)(u,e=>e.copyrightNoteMessage),(0,i.Mz)(u,e=>e.disclaimerMessage)),h=(0,i.Mz)([d.TG,(0,m.I)(o.hT),c.kk,g.V7],(e,t,n,i)=>(0,a.ho)(e,n,i,t)),f=(e,t,n)=>{let i=e.links;return t&&(i=i.filter(e=>!(0,l.hY)(e)||e.label!==r.BX.label)),i.map(n).filter(Boolean)},y=(0,i.Mz)([u,h],(e,t)=>f(e,!1,t))},69771:(e,t,n)=>{var i=n(57292),a=n(20791)(i);a.push([e.id,".xgK9r{display:flex;justify-content:center;align-items:center;color:var(--c-error-main)}[dir] .xgK9r{border-radius:50%;box-shadow:0 3px 5px 0 transparent;background-color:var(--c-grey-200)}.xgK9r.tgxam{width:16px;height:16px}.xgK9r.tnR9s{width:24px;height:24px}.xgK9r.m8wEF{width:32px;height:32px}@media (max-width:767px){.xgK9r.tnR9s{width:16px!important;height:16px!important}[dir] .cgYK7{box-shadow:0 3px 5px 0 transparent,0 0 0 5px var(--c-common-white)!important}}.OGZt7{color:var(--c-success-main)}.cgYK7{width:24px;height:24px}[dir] .cgYK7{box-shadow:0 3px 5px 0 transparent,0 0 0 5px var(--c-grey-200);border-radius:50%}","",{version:3,sources:["webpack://./components/Icons/IconLoyaltyCondition/IconLoyaltyCondition.css"],names:[],mappings:"AAAA,OAAM,YAAY,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,yBAAyB,CAAC,aAAY,iBAAiB,CAAC,kCAAkC,CAAC,kCAAkC,CAAC,aAAY,UAAU,CAAC,WAAW,CAAC,aAAa,UAAU,CAAC,WAAW,CAAC,aAAY,UAAU,CAAC,WAAW,CAAC,yBAAyB,aAAa,oBAAoB,CAAC,qBAAqB,CAAC,aAAkB,4EAA4E,CAAC,CAAC,OAAW,2BAA2B,CAAC,OAAY,UAAU,CAAC,WAAW,CAAC,aAAkB,8DAA8D,CAAC,iBAAiB",sourcesContent:[".root{display:flex;justify-content:center;align-items:center;color:var(--c-error-main)}[dir] .root{border-radius:50%;box-shadow:0 3px 5px 0 transparent;background-color:var(--c-grey-200)}.root.small{width:16px;height:16px}.root.middle{width:24px;height:24px}.root.large{width:32px;height:32px}@media (max-width:767px){.root.middle{width:16px!important;height:16px!important}[dir] .withShadow{box-shadow:0 3px 5px 0 transparent,0 0 0 5px var(--c-common-white)!important}}.fulfilled{color:var(--c-success-main)}.withShadow{width:24px;height:24px}[dir] .withShadow{box-shadow:0 3px 5px 0 transparent,0 0 0 5px var(--c-grey-200);border-radius:50%}"],sourceRoot:""}]),a.locals={root:"xgK9r",small:"tgxam",middle:"tnR9s",large:"m8wEF",withShadow:"cgYK7",fulfilled:"OGZt7"},e.exports=a},29125:(e,t,n)=>{var i=n(57292),a=n(20791)(i);
1a.push([e.id,'.spfgQ{align-items:center}.spfgQ,.Ile-h{display:flex;justify-content:center}.Ile-h{flex-direction:column;align-items:flex-start}.Ile-h.qIm91{flex-direction:row;justify-content:space-between}.YajFA{display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;width:100%;z-index:1}[dir=ltr] .YajFA{padding-left:76px}[dir=rtl] .YajFA{padding-right:76px}.YajFA.qIm91{flex:0.5 1;justify-content:center}[dir] .YajFA.qIm91{padding:0;margin:auto}.iCqmr{flex:1 1}.BQ6cj{min-width:28px;height:1px;z-index:1;display:flex;align-items:center;position:relative;justify-content:flex-end}.XzaPI{height:82px;position:relative}.XzaPI:before{position:absolute;content:" ";width:100%;height:100%;-webkit-mask:url(/images/loyalty/twin-prize-combiner.svg) 0 0 no-repeat;mask:url(/images/loyalty/twin-prize-combiner.svg) 0 0 no-repeat}[dir] .XzaPI:before{background-color:var(--c-pda-main)}[dir=rtl] .XzaPI:before{-webkit-mask:url(/images/loyalty/twin-prize-combiner.svg) 0 0 no-repeat!important;mask:url(/images/loyalty/twin-prize-combiner.svg) 0 0 no-repeat!important;transform:scaleX(-1)}@media (max-width:767px){.BQ6cj{width:10px;min-width:10px}[dir=ltr] .YajFA{padding-left:74px}[dir=rtl] .YajFA{padding-right:74px}[dir=ltr] .XzaPI{left:0}[dir=rtl] .XzaPI{right:0}}@media (min-width:768px) and (max-width:959px){[dir=ltr] .YajFA{padding-left:74px}[dir=rtl] .YajFA{padding-right:74px}}',"",{version:3,sources:["webpack://./components/LoyaltyProgram/PrizeWrapper/PrizeWrapper.css"],names:[],mappings:"AAAA,OAAW,kBAAkB,CAAC,cAAyB,YAAY,CAAC,sBAAsB,CAAC,OAAc,qBAAqB,CAAC,sBAAsB,CAAC,aAA6B,kBAAkB,CAAC,6BAA6B,CAAC,OAAe,YAAY,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,qBAAqB,CAAC,UAAU,CAAC,SAAS,CAAC,iBAAyB,iBAAiB,CAAC,iBAAyB,kBAAkB,CAAC,aAA8B,UAAU,CAAC,sBAAsB,CAAC,mBAAoC,SAAS,CAAC,WAAW,CAAC,OAAO,QAAQ,CAAC,OAAgB,cAAc,CAAC,UAAU,CAAC,SAAS,CAAC,YAAY,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,OAAa,WAAW,CAAC,iBAAiB,CAAC,cAAoB,iBAAiB,CAAC,WAAW,CAAC,UAAU,CAAC,WAAW,CAAC,uEAAuE,CAAC,+DAA+D,CAAC,oBAA0B,kCAAkC,CAAC,wBAA8B,iFAAiF,CAAC,yEAAyE,CAAC,oBAAoB,CAAC,yBAAyB,OAAgB,UAAU,CAAC,cAAc,CAAC,iBAAyB,iBAAiB,CAAC,iBAAyB,kBAAkB,CAAC,iBAAuB,MAAM,CAAC,iBAAuB,OAAO,CAAC,CAAC,+CAA+C,iBAAyB,iBAAiB,CAAC,iBAAyB,kBAAkB,CAAC",sourcesContent:['.container{align-items:center}.container,.prizeWrapper{display:flex;justify-content:center}.prizeWrapper{flex-direction:column;align-items:flex-start}.prizeWrapper.horizontalView{flex-direction:row;justify-content:space-between}.betweenPrizes{display:flex;justify-content:flex-start;align-items:center;box-sizing:border-box;width:100%;z-index:1}[dir=ltr] .betweenPrizes{padding-left:76px}[dir=rtl] .betweenPrizes{padding-right:76px}.betweenPrizes.horizontalView{flex:0.5 1;justify-content:center}[dir] .betweenPrizes.horizontalView{padding:0;margin:auto}.prize{flex:1 1}.conditionBlock{min-width:28px;height:1px;z-index:1;display:flex;align-items:center;position:relative;justify-content:flex-end}.doublePrize{height:82px;position:relative}.doublePrize:before{position:absolute;content:" ";width:100%;height:100%;-webkit-mask:url(/images/loyalty/twin-prize-combiner.svg) 0 0 no-repeat;mask:url(/images/loyalty/twin-prize-combiner.svg) 0 0 no-repeat}[dir] .doublePrize:before{background-color:var(--c-pda-main)}[dir=rtl] .doublePrize:before{-webkit-mask:url(/images/loyalty/twin-prize-combiner.svg) 0 0 no-repeat!important;mask:url(/images/loyalty/twin-prize-combiner.svg) 0 0 no-repeat!important;transform:scaleX(-1)}@media (max-width:767px){.conditionBlock{width:10px;min-width:10px}[dir=ltr] .betweenPrizes{padding-left:74px}[dir=rtl] .betweenPrizes{padding-right:74px}[dir=ltr] .doublePrize{left:0}[dir=rtl] .doublePrize{right:0}}@media (min-width:768px) and (max-width:959px){[dir=ltr] .betweenPrizes{padding-left:74px}[dir=rtl] .betweenPrizes{padding-right:74px}}'],sourceRoot:""}]),a.locals={container:"spfgQ",prizeWrapper:"Ile-h",horizontalView:"qIm91",betweenPrizes:"YajFA",prize:"iCqmr",conditionBlock:"BQ6cj",doublePrize:"XzaPI"},e.exports=a},13681:(e,t,n)=>{var i=n(69771),a=n(67717),r="string"==typeof i?[[e.id,i,""]]:i;(t=e.exports=i.locals||{})._getContent=function(){return r},t._getCss=function(){return""+i},t._insertCss=function(e){return a(r,e)}},27019:(e,t,n)=>{var i=n(29125),a=n(67717),r="string"==typeof i?[[e.id,i,""]]:i;(t=e.exports=i.locals||{})._getContent=function(){return r},t._getCss=function(){return""+i},t._insertCss=function(e){return a(r,e)}}}]); 2//# sourceMappingURL=loyalty-widget.d4d1e0f0.chunk.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.