PageSourceSearch

https://traderepublic.com/_nuxt/DGw8zKvF.js

js traderepublic.com collected 2026-10-01 11:37:19 UTC 28,021 bytes, 2 lines download raw bytes

1import{C as G,aV as we,d as D,B as x,c as b,F as z,e as B,aL as Y,w as y,I as M,u as g,f as _,g as V,t as A,m as k,E as p,o as v,_ as E,p as w,a as C,P as Se,b7 as Be,b as L,b8 as Te,i as q,aR as ke,b9 as Me,ba as xe,G as ue,bb as Ce,aX as De,aq as _e,K as de,ad as He,H as ne,ab as O,bc as Ee,bd as Ie,S as P,be as Ve,bf as Ae,bg as ie,a1 as Le,J as Re,h as $e,L as X,s as Q,n as se,M as Pe,N as U,r as fe,Q as Fe,X as Oe,aZ as ae}from"./75Yd1eEh.js";import{u as ee}from"./B7h6mq4q.js";import{u as ze,C as We,c as re,g as Ne,a as j}from"./BGz53nk1.js";import{s as je}from"./BM5BgtP9.js";import{u as he,B as me}from"./8fMObx6F.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f223437c-c6e1-417a-97ea-b25e94ef5535",e._sentryDebugIdIdentifier="sentry-dbid-f223437c-c6e1-417a-97ea-b25e94ef5535")}catch{}})();const Ge=/^[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?$/;function qe(e){return Ge.test(e)}const Ke={phone:/[^\d+-]/g},oo=G({fields:{},errors:{},errorMessages:{},registerField(e){this.fields[e.name]={...e,isTouched:!1,isFocused:!1},this.updateFieldValidation(e.name)},updateValue(e,t){this.fields[e].value=t,this.updateFieldValidation(e)},onFocus(e,t){!this.fields[e].isTouched&&t&&(this.fields[e].isTouched=!0),this.fields[e].isFocused=t},onInputValidate(e,t){const o=Ke[e];return o?t?.replace(o,""):t},updateFieldValidation(e){const t=we(this.fields[e]);if(t.required&&(t.value===void 0||t.value===null)){this.errors[e]=this.errorMessages.mandatoryValidation;return}const o={phone:i=>/^\+*\(?\d{1,3}\)?[-\s.\\\d]*$/.test(i),email:i=>qe(i)};if(!t.required&&!t.value){delete this.errors[e];return}const n=o[e];if(n&&!n(t.value)){this.errors[e]=this.errorMessages.invalidValidation;return}delete this.errors[e]},isValid(){return Object.keys(this.errors).length===0},reset(){this.fields={},this.errors={}}}),Ue=["data-testid"],Ze=["data-testid"],Ye=D({__name:"TrErrorMessage",props:{message:{default:""},showAfterDelay:{default:0},dataTestId:{default:"input-error-message"},isRed:{type:Boolean,default:!1}},setup(e){const t=e,o=p(!1),n=p(),{isDarkTheme:i}=ee();return x(()=>t.message,a=>{t.showAfterDelay&&(clearTimeout(n.value),o.value=!1,a&&(n.value=setTimeout(()=>{o.value=!0},t.showAfterDelay)))}),(a,l)=>(v(),b(z,null,[B(Y,{name:"errorMessage"},{default:y(()=>[e.message&&!e.showAfterDelay?(v(),b("span",{key:0,class:M(["trErrorMessage",{"trErrorMessage-dark":g(i),red:e.isRed}]),"data-testid":e.dataTestId},[B(g(_),{variant:"assistive-text"},{default:y(()=>[V(A(e.message),1)]),_:1})],10,Ue)):k("",!0)]),_:1}),B(Y,{name:"errorMessage"},{default:y(()=>[e.message&&o.value?(v(),b("span",{key:0,class:M(["trErrorMessage",{"trErrorMessage-dark":g(i),red:e.isRed}]),"data-testid":e.dataTestId},[B(g(_),{variant:"assistive-text"},{default:y(()=>[V(A(e.message),1)]),_:1})],10,Ze)):k("",!0)]),_:1})],64))}}),Xe=E(Ye,[["__scopeId","data-v-ba85d045"]]),Qe=["for"],Je=D({__name:"TrInputLabel",props:{label:{},inputId:{}},setup(e){return(t,o)=>(v(),b("label",{for:e.inputId,class:"trInputLabel"},[B(g(_),{variant:"label"},{default:y(()=>[V(A(e.label),1)]),_:1})],8,Qe))}}),et=E(Je,[["__scopeId","data-v-21535585"]]),tt={class:"trTextInput"},ot=["id","autocomplete","type","inputmode","name","placeholder","required","disabled","maxlength","pattern"],nt=D({__name:"TrTextInput",props:{id:{},name:{},placeholder:{default:void 0},label:{default:void 0},modelValue:{default:void 0},required:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},inputmode:{default:void 0},autocomplete:{default:void 0},maxlength:{default:void 0},pattern:{default:void 0},error:{default:void 0},onInputValidate:{type:Function,default:void 0},onChangeValidate:{type:Function,default:void 0},type:{default:"text"},showErrorAfterDelay:{default:void 0}},emits:["update:modelValue","focus","blur"],setup(e,{expose:t,emit:o}){const n=e,i=o,{isDarkTheme:a}=ee(),l=w({get(){return n.modelValue},set(d){i("update:modelValue",d)}}),s=p();t({inputRef:s});const u=d=>{if(!n.onInputValidate)return;const r=d.target.value,f=n.onInputValidate(r);i("update:modelValue",f)},c=d=>
1{if(!n.onChangeValidate)return;const r=d.target.value,f=n.onChangeValidate(r);i("update:modelValue",f)};return(d,r)=>(v(),b("div",tt,[e.label?(v(),C(g(et),{key:0,"input-id":e.id,label:e.label},null,8,["input-id","label"])):k("",!0),Se(L("input",{id:e.id,ref_key:"inputRef",ref:s,"onUpdate:modelValue":r[0]||(r[0]=f=>l.value=f),class:M(["__input",{"__input-dark":g(a),"__input-disabled":e.disabled}]),autocomplete:e.autocomplete,type:e.type,inputmode:e.inputmode,name:e.name,placeholder:e.placeholder,required:e.required,disabled:e.disabled,maxlength:e.maxlength,pattern:e.pattern,onFocus:r[1]||(r[1]=()=>i("focus")),onBlur:r[2]||(r[2]=()=>i("blur")),onInput:u,onChange:c},null,42,ot),[[Be,l.value]]),B(Xe,{message:e.error,"show-after-delay":e.showErrorAfterDelay},null,8,["message","show-after-delay"])]))}}),no=E(nt,[["__scopeId","data-v-3874d077"]]),it={},st={fill:"none",width:"16",height:"16",viewBox:"0 0 24 24"};function at(e,t){return v(),b("svg",st,[...t[0]||(t[0]=[Te('<g filter="url(#a)"><path fill="currentColor" fill-opacity=".3" fill-rule="evenodd" d="M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Zm2.121-13.706a1 1 0 1 1 1.414 1.414l-2.12 2.12 2.121 2.122a1 1 0 0 1-1.414 1.414L12 13.243l-2.122 2.122a1 1 0 0 1-1.414-1.415l2.122-2.121-2.121-2.121a1 1 0 0 1 1.414-1.415L12 10.414l2.121-2.12Z" clip-rule="evenodd"></path></g><defs><filter id="a" width="72" height="72" x="-24" y="-24" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feGaussianBlur in="BackgroundImageFix" stdDeviation="12"></feGaussianBlur><feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_3818_179656"></feComposite><feBlend in="SourceGraphic" in2="effect1_backgroundBlur_3818_179656" result="shape"></feBlend></filter></defs>',2)])])}const rt=E(it,[["render",at]]);function K(e){return Me()?(xe(e),!0):!1}function lt(e,t){if(typeof Symbol<"u"){const o={...e};return Object.defineProperty(o,Symbol.iterator,{enumerable:!1,value(){let n=0;return{next:()=>({value:t[n++],done:n>t.length})}}}),o}else return Object.assign([...t],e)}function R(e){return typeof e=="function"?e():g(e)}const ve=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ct=e=>e!=null,ut=Object.prototype.toString,dt=e=>ut.call(e)==="[object Object]",W=()=>{};function pe(e,t){function o(...n){return new Promise((i,a)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(i).catch(a)})}return o}function ft(e,t={}){let o,n,i=W;const a=s=>{clearTimeout(s),i(),i=W};return s=>{const u=R(e),c=R(t.maxWait);return o&&a(o),u<=0||c!==void 0&&c<=0?(n&&(a(n),n=null),Promise.resolve(s())):new Promise((d,r)=>{i=t.rejectOnCancel?r:d,c&&!n&&(n=setTimeout(()=>{o&&a(o),n=null,d(s())},c)),o=setTimeout(()=>{n&&a(n),n=null,d(s())},u)})}}function ht(...e){let t=0,o,n=!0,i=W,a,l,s,u,c;!Ce(e[0])&&typeof e[0]=="object"?{delay:l,trailing:s=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[l,s=!0,u=!0,c=!1]=e;const d=()=>{o&&(clearTimeout(o),o=void 0,i(),i=W)};return f=>{const h=R(l),m=Date.now()-t,S=()=>a=f();return d(),h<=0?(t=Date.now(),S()):(m>h&&(u||!n)?(t=Date.now(),S()):s&&(a=new Promise((T,ye)=>{i=c?ye:T,o=setTimeout(()=>{t=Date.now(),n=!0,T(S()),d()},Math.max(0,h-m))})),!u&&!o&&(o=setTimeout(()=>n=!0,h)),n=!1,a)}}const io={mounted:"mounted"};function mt(e){const t=Object.create(null);return o=>t[o]||(t[o]=e(o))}const vt=/-(\w)/g,pt=mt(e=>e.replace(vt,(t,o)=>o?o.toUpperCase():""));function gt(e){return ue()}function bt(e,t=200,o={}){return pe(ft(t,o),e)}function so(e,t=200,o={}){const n=p(e.value),i=bt(()=>{n.value=e.value},t,o);return x(e,()=>i()),n}function ao(e,t=200,o=!1,n=!0,i=!1){return pe(ht(t,o,n,i),e)}function te(e,t=!0,o){gt()?q(e,o):t?e():ke(e)}function yt(e={}){const{inheritAttrs:t=!0}=e,o=_e(),n=D({setup(a,{slots:l}){return()=>{o.value=l.default}}}),i=D({inheritAttrs:t,setup(a,{attrs:l,slots:s}){return()=>{var u;o.value;const c=(u=o.value)==null?void 0:u.call(o,{...wt(l),$slots:s});return t&&c?.length===1?c[0]:c}}});return lt({define:n,reuse:i},[n,i])}function wt(e){const t={};for(const o in e)t[pt(o)]=e[o];return t}function H(e){var t;const o=R(e);return(t=o?.$el)!=null?t:o}const $=ve?window:void 0,St=ve?window.document:void 0;function N(...e){let t,o,n,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([o,n,i]=e,t=$):[t,o,n,i]=e,!t)return W;Array.isArray(o)||(o=[o]),Array.isArray(n)||(n=[n]);const a=[],l=()=>{a.forEach(d=>d()),a.length=0},s=(d,r,f,h)=>(d.addEventListener(r,f,h),()=>d.removeEventListener(r,f,h)),u=x(()=>[H(t),R(i)],([d,r])=>
1{if(l(),!d)return;const f=dt(r)?{...r}:r;a.push(...o.flatMap(h=>n.map(m=>s(d,h,m,f))))},{immediate:!0,flush:"post"}),c=()=>{u(),l()};return K(c),c}function Bt(){const e=p(!1),t=ue();return t&&q(()=>{e.value=!0},t),e}function oe(e){const t=Bt();return w(()=>(t.value,!!e()))}function Tt(e,t,o={}){const{window:n=$,...i}=o;let a;const l=oe(()=>n&&"MutationObserver"in n),s=()=>{a&&(a.disconnect(),a=void 0)},u=w(()=>{const f=R(e),h=(Array.isArray(f)?f:[f]).map(H).filter(ct);return new Set(h)}),c=x(()=>u.value,f=>{s(),l.value&&f.size&&(a=new MutationObserver(t),f.forEach(h=>a.observe(h,i)))},{immediate:!0,flush:"post"}),d=()=>a?.takeRecords(),r=()=>{s(),c()};return K(r),{isSupported:l,stop:r,takeRecords:d}}function kt(e,t={}){const{window:o=$}=t,n=oe(()=>o&&"matchMedia"in o&&typeof o.matchMedia=="function");let i;const a=p(!1),l=c=>{a.value=c.matches},s=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",l):i.removeListener(l))},u=De(()=>{n.value&&(s(),i=o.matchMedia(R(e)),"addEventListener"in i?i.addEventListener("change",l):i.addListener(l),a.value=i.matches)});return K(()=>{u(),s(),i=void 0}),a}function ro(e={}){const{document:t=St}=e;if(!t)return p("visible");const o=p(t.visibilityState);return N(t,"visibilitychange",()=>{o.value=t.visibilityState}),o}function ge(e,t,o={}){const{window:n=$,...i}=o;let a;const l=oe(()=>n&&"ResizeObserver"in n),s=()=>{a&&(a.disconnect(),a=void 0)},u=w(()=>Array.isArray(e)?e.map(r=>H(r)):[H(e)]),c=x(u,r=>{if(s(),l.value&&n){a=new ResizeObserver(t);for(const f of r)f&&a.observe(f,i)}},{immediate:!0,flush:"post"}),d=()=>{s(),c()};return K(d),{isSupported:l,stop:d}}function lo(e,t={}){const{reset:o=!0,windowResize:n=!0,windowScroll:i=!0,immediate:a=!0}=t,l=p(0),s=p(0),u=p(0),c=p(0),d=p(0),r=p(0),f=p(0),h=p(0);function m(){const S=H(e);if(!S){o&&(l.value=0,s.value=0,u.value=0,c.value=0,d.value=0,r.value=0,f.value=0,h.value=0);return}const T=S.getBoundingClientRect();l.value=T.height,s.value=T.bottom,u.value=T.left,c.value=T.right,d.value=T.top,r.value=T.width,f.value=T.x,h.value=T.y}return ge(e,m),x(()=>H(e),S=>!S&&m()),Tt(e,m,{attributeFilter:["style","class"]}),i&&N("scroll",m,{capture:!0,passive:!0}),n&&N("resize",m,{passive:!0}),te(()=>{a&&m()}),{height:l,bottom:s,left:u,right:c,top:d,width:r,x:f,y:h,update:m}}function co(e,t={width:0,height:0},o={}){const{window:n=$,box:i="content-box"}=o,a=w(()=>{var r,f;return(f=(r=H(e))==null?void 0:r.namespaceURI)==null?void 0:f.includes("svg")}),l=p(t.width),s=p(t.height),{stop:u}=ge(e,([r])=>{const f=i==="border-box"?r.borderBoxSize:i==="content-box"?r.contentBoxSize:r.devicePixelContentBoxSize;if(n&&a.value){const h=H(e);if(h){const m=h.getBoundingClientRect();l.value=m.width,s.value=m.height}}else if(f){const h=Array.isArray(f)?f:[f];l.value=h.reduce((m,{inlineSize:S})=>m+S,0),s.value=h.reduce((m,{blockSize:S})=>m+S,0)}else l.value=r.contentRect.width,s.value=r.contentRect.height},o);te(()=>{const r=H(e);r&&(l.value="offsetWidth"in r?r.offsetWidth:t.width,s.value="offsetHeight"in r?r.offsetHeight:t.height)});const c=x(()=>H(e),r=>{l.value=r?t.width:0,s.value=r?t.height:0});function d(){u(),c()}return{width:l,height:s,stop:d}}function uo(e={}){const{window:t=$,behavior:o="auto"}=e;if(!t)return{x:p(0),y:p(0)};const n=p(t.scrollX),i=p(t.scrollY),a=w({get(){return n.value},set(s){scrollTo({left:s,behavior:o})}}),l=w({get(){return i.value},set(s){scrollTo({top:s,behavior:o})}});return N(t,"scroll",()=>{n.value=t.scrollX,i.value=t.scrollY},{capture:!1,passive:!0}),{x:a,y:l}}function Mt(e={}){const{window:t=$,initialWidth:o=Number.POSITIVE_INFINITY,initialHeight:n=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:a=!0}=e,l=p(o),s=p(n),u=()=>{t&&(a?(l.value=t.innerWidth,s.value=t.innerHeight):(l.value=t.document.documentElement.clientWidth,s.value=t.document.documentElement.clientHeight))};if(u(),te(u),N("resize",u,{passive:!0}),i){const c=kt("(orientation: portrait)");x(c,()=>u())}return{width:l,height:s}}const F=G({openedModals:0,registerModal(){this.openedModals++},deleteModal(){this.openedModals=Math.max(0,this.openedModals-1)}}),xt=(e,t)=>
1{const o=p(!1);let n=0;const i=s=>{if(t.value&&t.value.contains(s.target)){const u=t.value.scrollHeight-t.value.scrollTop===t.value.clientHeight,c=s.touches?.[0]?.clientY,d=c<=n;n=c,u&&d?s.preventDefault():t.value.scrollHeight>t.value.clientHeight?s.stopPropagation():s.preventDefault()}else s.preventDefault()};return{isScrollLocked:o,disableScroll:()=>{e.value?.addEventListener("touchmove",i,{passive:!1}),o.value=!0},enableScroll:()=>{e.value?.removeEventListener("touchmove",i),o.value=!1}}},be=()=>"virtualKeyboard"in window.navigator,fo=()=>{be()&&(window.navigator.virtualKeyboard.overlaysContent=!0)};function Ct(){const e=p(0),t=p(0);function o(n){requestAnimationFrame(()=>{const i=n.target;e.value=i.height,t.value=window.innerHeight-e.value})}return q(()=>{if(be())return;const n=window.visualViewport?.height;e.value=n,window.visualViewport?.addEventListener("resize",o)}),de(()=>window.visualViewport?.removeEventListener("resize",o)),{viewportHeight:e,keyboardHeight:t}}const Dt=20,_t=()=>{const{viewportHeight:e,keyboardHeight:t}=Ct(),o=he(me.MaxModalWidth-1);return{heightWithoutKeyboard:w(()=>t.value&&o?e.value-Dt:void 0),keyboardHeight:t}},Ht=D({__name:"TrModal",props:{open:{type:Boolean},title:{default:""},overlay:{type:Boolean,default:!0},isFullHeight:{type:Boolean},contentHeight:{default:void 0},hasCustomAnimation:{type:Boolean},height:{default:void 0},titleSpaceMode:{default:"normal"},wide:{type:Boolean,default:!1},disableClose:{type:Boolean,default:!1},isBelowCookies:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const o=e,n=t,i=p(),a=p(),l=he(me.MaxModalWidth-1),{disableScroll:s,enableScroll:u}=xt(i,a),{keyboardHeight:c}=_t(),{isDarkTheme:d}=ee(),r=h=>{h.key==="Escape"&&n("close")},f=()=>{document.body.style.overflow=F.openedModals?"hidden":""};return q(()=>{o.disableClose||document.addEventListener("keydown",r),o.open&&(F.registerModal(),f())}),de(()=>{o.disableClose||document.removeEventListener("keydown",r),o.open&&(F.deleteModal(),f())}),x(()=>o.open,()=>{o.open?F.registerModal():F.deleteModal(),f()}),x(()=>c.value,()=>{c.value?s():u()}),(h,m)=>(v(),C(He,{to:"body"},[B(Y,{name:"trModal","data-lenis-prevent":""},{default:y(()=>[e.open?(v(),b("div",{key:0,ref_key:"modalRef",ref:i,class:M({trModal:!0,"trModal-custom-animation":e.hasCustomAnimation,"trModal__below-cookies":e.isBelowCookies})},[e.overlay?(v(),b("div",{key:0,class:"__overlay","data-testid":"modal-overlay",onClick:m[0]||(m[0]=S=>!e.disableClose&&h.$emit("close"))})):k("",!0),L("div",{class:M(["__modal",{"__modal-dark":g(d),"__modal-wide":e.wide}]),style:ne(e.height&&!g(l)?{height:`${e.height}px`}:{})},[e.disableClose?k("",!0):(v(),b("button",{key:0,class:"__closeButton",type:"button","data-testid":"modal-close-button",onClick:m[1]||(m[1]=S=>h.$emit("close"))},[B(g(rt))])),L("div",{ref_key:"contentRef",ref:a,class:M(["__content",{"__content-full-height":e.isFullHeight}]),style:ne(e.contentHeight?{height:`${e.contentHeight}px`}:{})},[e.title?(v(),b("div",{key:0,class:M(`__header __header-${e.titleSpaceMode}`)},[O(h.$slots,"title",{},()=>[B(g(_),{variant:"h2"},{default:y(()=>[V(A(e.title),1)]),_:1})],!0)],2)):k("",!0),O(h.$slots,"default",{},void 0,!0)],6),O(h.$slots,"footer",{},void 0,!0)],6)],2)):k("",!0)]),_:3})]))}}),Et=E(Ht,[["__scopeId","data-v-2fb7d8eb"]]),It=D({__name:"TrButton",props:{variant:{},icon:{},isProportionalScaling:{type:Boolean},loading:{type:Boolean},disableShadow:{type:Boolean}},setup(e){return(t,o)=>(v(),C(Ee,{variant:e.variant,component:"button",icon:e.icon,"is-proportional-scaling":e.isProportionalScaling,"data-testid":t.$attrs.dataTestid,loading:e.loading,"disable-shadow":e.disableShadow},{default:y(()=>[O(t.$slots,"default")]),_:3},8,["variant","icon","is-proportional-scaling","data-testid","loading","disable-shadow"]))}}),Vt=(e,t)=>e===ie.Always?!0:e===ie.Forced?t:!1,Z=e=>document.querySelector(`section[data-index="${e}"]`)??null,le=G({height:0,colorMode:"initial",initialColorMode:"initial",bottomButtonColorMode:"initial",hash:"",prevSection:0,currentSection:-1,nextSection:0,currentSectionBottomButton:0,nextSectionBottomButton:0,isWaitingForSameSection:{bottom:!1,header:!1},isBlurHeader:!1,bottomButtonMargin:0,hasHeaderDisclaimer:!1,disclaimerButtonHeight:0,dynamicPromoButtonWidth:0,dynamicPromoButtonHeight:0,setHeaderHeight(e){this.height!==e&&(this.height=e)},setInitialColorMode(e){this.initialColorMode=e},setHasHeaderDisclaimer(e){this.hasHeaderDisclaimer=e},setDisclaimerButtonHeight(e){this.disclaimerButtonHeight=e},setDynamicPromoButtonWidth(e){this.dynamicPromoButtonWidth=e},setDynamicPromoButtonHeight(e){this.dynamicPromoButtonHeight=e},setBottomButtonMargin(e,t){const o=e??0;if(t){this.bottomButtonMargin=o===0?0:Math.max(o-16,16);return}this.bottomButtonMargin=o===0?0:o+16},setBySectionTheme(e,t=!1){if(Ae(e)){this.updateColorModeInternal({mode:P.White});return}this.updateColorModeInternal({mode:P.Black,shouldBlurHeader:t})},updateSections(e){const t=e/2;if(this.hasHeaderDisclaimer&&this.disclaimerButtonHeight>0){this.prevSection=I(t,this.disclaimerButtonHeight);const o=this.height-this.disclaimerButtonHeight,n=this.disclaimerButtonHeight+o/2;this.currentSection=I(t,n),this.nextSection=I(t,this.height)}else this.prevSection=I(t,0),this.currentSection=I(t,this.height/2),this.nextSection=I(t,this.height);this.updateHash(),this.updateColorMode()},updateSectionsBottomButton(e,t){const o=e/2;this.isWaitingForSameSection.bottom=this.currentSectionBottomButton!==this.nextSectionBottomButton,this.currentSectionBottomButton=I(o,t-56-32+56/2-this.bottomButtonMargin),this.nextSectionBottomButton=At(o,t-32),this.updateBottomButtonColorMode()},updateHash(){const e=Z(this.currentSection);this.hash=e?.id??""},updateBottomButtonColorMode(){if(this.currentSectionBottomButton===0){this.bottomButtonColorMode=this.initialColorMode;return}if(this.currentSectionBottomButton===this.nextSectionBottomButton&&this.isWaitingForSameSection.bottom){this.bottomButtonColorMode=this.bottomButtonColorMode===P.Black?P.White:P.Black,this.isWaitingForSameSection.bottom=!1;return}const e=Z(this.currentSectionBottomButton);if(!e){this.bottomButtonColorMode="initial";return}for(const t of Ve){const o=e.querySelector(t.selector);if(o){this.bottomButtonColorMode=t.getMode(o);return}}this.bottomButtonColorMode="initial"},updateColorModeInternal({mode:e,shouldBlurHeader:t=!1}){this.colorMode=e,this.isBlurHeader=t},updateColorMode(){if(this.currentSection===0){this.updateColorModeInternal({mode:this.initialColorMode});return}const e=Z(this.currentSection);if(!e){this.updateColorModeInternal({mode:"initial"});return}const t=this.prevSection===this.nextSection;for(const o of Ie){const n=e.querySelector(o.selector);if(!n)continue;const i=Vt(o.blur,t);if(o.type==="section-theme"){this.setBySectionTheme(n,i);return}this.updateColorModeInternal({mode:o.mode,shouldBlurHeader:i});return}this.updateColorModeInternal({mode:"initial"})}}),I=(e,t)=>{const n=document.elementsFromPoint(e,t).find(a=>a.classList.contains("__section"));if(!n)return 0;const i=n.dataset?.index;return i?+i:0},At=(e,t)=>document.elementsFromPoint(e,t).find(n=>n.classList.contains(Le))?999:I(e,t),Lt=(e,t)=>
1{const o=t?btoa(JSON.stringify(t)):"";return ze(`/api/contentful/get-entry/${e}`,{key:`get-entry-${e}-${o}`,query:t},"$zz7xZpBp9j")},Rt=({fields:e})=>{let t="",o;"externalLink"in e?t=e.externalLink??"":"header"in e?t="":"value"in e&&(t=e.value??""),"richTextValues"in e&&e.richTextValues&&(o=e.richTextValues.map(u=>({header:u.fields.header,body:u.fields.body})));const n="header"in e;let i="";n?i=e.header:"label"in e&&(i=e.label);const a="subValue"in e&&e.subValue||"",l="body"in e&&e.body||"",s="internalAnalyticsName"in e&&e.internalAnalyticsName||void 0;return{label:i,value:t,body:l,subValue:a,isSubheader:n,internalAnalyticsName:s,richTextValues:o}},ho=async e=>{const t=Re(),{data:o}=await Lt(e??"",{locale:t.value.isoCode,include:2,content_type:We.SectionModal}),n=w(()=>o.value?.fields.content||[]),i=w(()=>o.value),a=w(()=>i.value?.fields.title??""),l=w(()=>i.value?.fields.body??""),s=w(()=>n.value.map(Rt)||[]);return{content:n,section:i,title:a,parsedRows:s,body:l}},mo=()=>{const{height:e,width:t}=Mt();return{updateHeaderStoreSections:()=>{le.updateSections(t.value),le.updateSectionsBottomButton(t.value,e.value)}}},vo=()=>{const e=$e(),t=X.modalStepsType===re.RafBonusForm,o=X.modalStepsType===re.PromocodeForm,n=e.path.includes("/whathappensat1000000000");return{code:Ne(e,"code"),isReferralPage:t,isAffiliatePage:o,isRafBonusPage:t||o,isRafPromocodePage:o,is1bPromocodePage:n}},$t={class:"disclaimerButtons"},Pt=D({__name:"DisclaimerButtons",props:{buttons:{}},emits:["close"],setup(e,{emit:t}
1){const o=t,n=s=>{s.internalLink?.fields.slug?(je(s.internalLink.fields.slug),se(s.internalLink.fields.slug,{external:!0})):o("close")},i=s=>{s.internalLink?.fields.slug&&se(s.internalLink.fields.slug,{external:!0})},a={[j.acceptDisclaimer]:"checkmark",[j.rejectDisclaimer]:"cross"},l=s=>{switch(s.actionType){case j.acceptDisclaimer:n(s);break;case j.rejectDisclaimer:i(s);break}};return(s,u)=>(v(),b("div",$t,[(v(!0),b(z,null,Q(e.buttons,c=>(v(),C(g(It),{key:c.internalName,variant:c.variant??"primary",icon:a[c.actionType||""],onClick:d=>l(c)},{default:y(()=>[V(A(c.label),1)]),_:2},1032,["variant","icon","onClick"]))),128))]))}}),Ft=E(Pt,[["__scopeId","data-v-ce27ddbf"]]);var J=(e=>(e.Section="section",e.Items="items",e))(J||{});const ce=G({objects:{section:{},items:{}},gtmTracker:void 0,init(e){this.gtmTracker=e,this.registerUnloadHandler()},startSession(e,t){if(e==="section"){const o=Object.keys(this.objects.section)[0];this.endSession("section",o)}this.objects[e][t]={start:performance.now()}},sendGtmEvent(e,t){const o=this.objects[e][t]?.timespent;o&&this.gtmTracker?.sendEvent(Pe.ProductTimeSpent,{[U.Name]:t,[U.TimeSpent]:o,[U.CurrentSection]:X.visibleSectionAnalyticsName})},endSession(e,t){const o=this.objects[e][t]?.start;o&&(this.objects[e][t].timespent=performance.now()-o,this.sendGtmEvent(e,t),delete this.objects[e][t])},registerUnloadHandler(){this.gtmTracker&&window.addEventListener("beforeunload",()=>{Object.keys(this.objects.section).forEach(e=>{this.endSession("section",e)}),Object.keys(this.objects.items).forEach(e=>{this.endSession("items",e)})})}}),Ot={key:1,class:"offerDetailsPopup__richTextValues"},zt=["innerHTML"],Wt={key:0,class:"offerDetailsPopup__footer"},Nt=["innerHTML"],jt=D({__name:"OfferDetailsPopup",props:{open:{type:Boolean},title:{},content:{},footer:{},buttons:{},requireDisclaimerAcceptance:{type:Boolean}},emits:["close"],setup(e,{emit:t}){const o=e,n=t,{$marked:i}=fe(),a=p(null),l=p(!0),s=w(()=>o.content?.some(c=>c.richTextValues&&c.richTextValues.length>1)??!1);x(()=>o.open,()=>{const c="offer-details-modal";o.open?ce.startSession(J.Items,c):ce.endSession(J.Items,c)});const u=c=>{const d=c.scrollTop+c.clientHeight>=c.scrollHeight-1;l.value=!d};return x([()=>a.value,()=>o.requireDisclaimerAcceptance,()=>o.buttons?.length],([c,d,r],f,h)=>{if(!c||!d||!r){l.value=!1;return}const m=c.parentElement??null;if(!m){l.value=!1;return}const S=()=>u(m),T=()=>u(m);m.addEventListener("scroll",S),window.addEventListener("resize",T),u(m),h(()=>{m.removeEventListener("scroll",S),window.removeEventListener("resize",T)})},{flush:"post"}),(c,d)=>(v(),C(g(Et),{open:e.open,title:e.title,wide:s.value,"disable-close":e.requireDisclaimerAcceptance,"is-below-cookies":e.requireDisclaimerAcceptance,onClose:d[1]||(d[1]=r=>n("close"))},{title:y(()=>[B(g(_),{variant:"h2",class:"offerDetailsPopup__title"},{default:y(()=>[V(A(e.title),1)]),_:1})]),default:y(()=>[L("div",{ref_key:"contentRef",ref:a,class:M(["offerDetailsPopup__content",{offerDetailsPopup__hasButtons:e.buttons?.length&&e.requireDisclaimerAcceptance}])},[(v(!0),b(z,null,Q(e.content,(r,f)=>(v(),b("div",{key:f,class:M(["offerDetailsPopup__item",{__wide:s.value}])},[r.label?(v(),C(g(_),{key:0,variant:"paragraph",class:"offerDetailsPopup__label",bold:""},{default:y(()=>[V(A(r.label),1)]),_:2},1024)):k("",!0),r.richTextValues&&r.richTextValues.length>0?(v(),b("div",Ot,[(v(!0),b(z,null,Q(r.richTextValues,(h,m)=>(v(),b("div",{key:m,class:"offerDetailsPopup__richTextValue"},[B(g(_),{variant:"paragraph"},{default:y(()=>[L("span",{innerHTML:g(i)(h.body||"")},null,8,zt)]),_:2},1024)]))),128))])):(v(),C(g(_),{key:2,variant:"paragraph"},{default:y(()=>[V(A(r.value),1)]),_:2},1024))],2))),128)),e.footer?(v(),b("div",Wt,[B(g(_),{variant:"paragraph"},{default:y(()=>[L("span",{innerHTML:g(i)(e.footer)},null,8,Nt)]),_:1})])):k("",!0),e.requireDisclaimerAcceptance&&e.buttons?.length?(v(),b("div",{key:1,class:M(["offerDetailsPopup__buttons",{"__has-shadow":l.value}])},[B(Ft,{buttons:e.buttons,onClose:d[0]||(d[0]=r=>n("close"))},null,8,["buttons"])],2)):k("",!0)],2)]),_:1},8,["open","title","wide","disable-close","is-below-cookies"]))}}),po=E(jt,[["__scopeId","data-v-a449d403"]]),Gt={class:"__content"},qt=D({__name:"TrLink",props:{size:{},component:{},href:{},isExternal:{type:Boolean},id:{},isDarkTheme:{type:Boolean}},setup(e){const t=e,o=w(()=>t.isDarkTheme),n=w(()=>({[`__${t.size}`]:!0,"-dark":o.value})),i=t.size==="large";return(a,l)=>(v(),C(Fe(t.component),{id:e.id,class:M(["trLink",n.value]),"data-theme":o.value,href:t.href,target:t.isExternal?"_blank":"_self",rel:"noopener noreferrer"},{default:y(()=>[L("span",Gt,[O(a.$slots,"default",{},void 0,!0)]),i?(v(),C(g(Oe),{key:0,class:"__icon"})):k("",!0)]),_:3},8,["id","class","data-theme","href","target"]))}}),Kt=E(qt,[["__scopeId","data-v-c470310f"]]),Ut=["innerHTML"],Zt=["innerHTML"],Yt=D({__name:"TextWithHighlight",props:{highlight:{},content:{},color:{},isProportionalScaling:{type:Boolean},mode:{},size:{}},emits:["item-click"],setup(e){const t=e,[o,n]=yt(),{$marked:i}=fe(),a=w(()=>t.size==="small"?ae.paragraph:ae.subheader),l=w(()=>({"-black":t.color==="black"}));return(s,u)=>(v(),b(z,null,[B(g(o),null,{default:y(()=>[B(g(_),{variant:a.value,"is-proportional-scaling":e.isProportionalScaling,bold:"",class:"__item"},{default:y(()=>[e.highlight?(v(),b("span",{key:0,class:"__highlight",innerHTML:g(i)(e.highlight)},null,8,Ut)):k("",!0),e.content?(v(),b("span",{key:1,class:"__secondaryText",innerHTML:g(i)(e.content.trim())},null,8,Zt)):k("",!0)]),_:1},8,["variant","is-proportional-scaling"])]),_:1}),L("div",{class:M(["textWithHighlight",l.value])},[e.mode==="button"?(v(),C(g(Kt),{key:0,size:"large",component:"span",class:"__link",onClick:u[0]||(u[0]=c=>s.$emit("item-click"))},{default:y(()=>[B(g(n))]),_:1})):(v(),C(g(n),{key:1}))],2)],64))}}),go=E(Yt,[["__scopeId","data-v-16f81ea3"]]);
1export{co as A,uo as B,_t as C,Xe as D,ro as E,ho as F,lo as G,qe as H,et as I,rt as J,xt as K,so as L,J as O,Et as T,It as _,ao as a,R as b,K as c,io as d,bt as e,dt as f,ct as g,go as h,ve as i,kt as j,mo as k,Mt as l,le as m,W as n,fo as o,po as p,F as q,yt as r,ce as s,te as t,Lt as u,Rt as v,Kt as w,oo as x,no as y,vo as z};
2//# sourceMappingURL=DGw8zKvF.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.