1import{K as ye,x as ve,T as Q,d as _,y as $,u as e,A as G,k as W,M as ee,c as $e}from"./IconBase.es-DfHELWlA.js";import{r as je,o as we,e as ne,a as Ie,b as De,c as Le,d as Ee,f as Te,g as Pe,h as Ae,i as Re,j as Me,k as ze,l as Be,m as Ue,n as Oe,p as He,q as Fe}from"./TrendUp.es-DmxmTb9X.js";import{a as Ke,o as Ze}from"./SealCheck.es-CGJxk3k4.js";import{M as Ve}from"./react-tooltip.min-DAE9Gj_s.js";import{M as se}from"./index-JdPHHji9.js";import{e as We}from"./X.es-4Y2LgBeL.js";import"./_commonjsHelpers-gnU0ypJ3.js";const qe={price:"0",discounted_price:"0",discounted_price_tooltip_text:"",price_tooltip:"",average_reward:void 0,popular:!1,popular_badge_label:"",discounted:!1,discounted_price_badge_image:""};function te(t,i,d){var n;return((n=t[i===1?"step_1":"step_2"])==null?void 0:n[d])??qe}const Ne=ye(void 0),I=()=>{const t=ve(Ne);if(!t)throw new Error("usePricing must be inside <PricingProvider>");return t},Ge=({children:t,special:i=!1,lang:d="en",challengeDiscount100k:r=!1,onlyUsdCurrency:n=!1,defaultStep:a=2})=>{const c=Q(()=>{if(typeof window>"u")return{step:a,showPhases:!1,hasHash:!1};const o=window.location.hash,g=o.split("&")[0],C=g==="#pricing-1-step"||g==="#pricing-2-step";return{step:C?g==="#pricing-1-step"?1:2:a,showPhases:o.includes("&phases"),hasHash:C}},[a]),[s,l]=_([]),[m,h]=_({step_1:[],step_2:[]}),[p,u]=_({}),[x,v]=_({}),[k,f]=_([]),[w,b]=_(!0),[y,D]=_(null),[P,A]=_("USD"),[L,R]=_(!1),[S,E]=_(c.showPhases),[U,O]=_(()=>typeof window<"u"&&window.innerWidth<768?4:0),[j,M]=_(c.step),[H,F]=_({}),[K,J]=_(n),[Z,T]=_(c.hasHash);$(()=>{if(typeof window<"u"){const o=window.location.hash;if(o.startsWith("#pricing")||o.startsWith("#pricing-1-step")||o.startsWith("#pricing-2-step")){const g=o.split("&")[0];if(!g)return;const C=document.querySelector(g);C&&C.scrollIntoView({behavior:"smooth"})}}},[]),$(()=>{const o=()=>{const g=window.location.hash,C=g.split("&")[0];C==="#pricing-1-step"?M(1):C==="#pricing-2-step"&&M(2),g.includes("&phases")?E(!0):!g.includes("&phases")&&g.startsWith("#pricing")&&E(!1)};if(typeof window<"u")return window.addEventListener("hashchange",o),()=>window.removeEventListener("hashchange",o)},[]),$(()=>{if(typeof window<"u"&&Z){const o=window.location.hash,g=o.includes("&phases"),C=`#pricing-${j}-step${g?"&phases":""}`;o!==C&&window.history.replaceState(null,"",C)}},[j,Z]),$(()=>{if(typeof window<"u"&&Z){const o=window.location.hash,g=o.split("&")[0]||`#pricing-${j}-step`,C=S?`${g}&phases`:g;o!==C&&window.history.replaceState(null,"",C)}},[S,j,Z]),$(()=>{var g;const o=(g=window.ftmoPricingTable)==null?void 0:g.data;o&&o.items&&o.items.length>0?(l(o.items),o.prices&&h(o.prices),u(o.objectives),o.objectives_step_1&&v(o.objectives_step_1),f(o.perks),J(o.only_usd_currency||!1),b(!1),F({start_now_url:o.start_now_url||"",start_now_url_step_2:o.start_now_url_step_2||"",discounted_price_tooltip:o.discounted_price_tooltip||"",best_value_tooltip:o.best_value_tooltip||"",average_reward_tooltip:o.average_reward_tooltip||"",label_show_numbers:o.label_show_numbers||"",label_more:o.label_more||"",label_overview:o.label_overview||"",label_show_steps:o.label_show_steps||"",label_hide_steps:o.label_hide_steps||"",label_trading_objectives:o.label_trading_objectives||"",label_step:o.label_step||"",label_ftmo_challenge:o.label_ftmo_challenge||"",label_verification:o.label_verification||"",label_ftmo_account:o.label_ftmo_account||"",label_yes:o.label_yes||"",label_up_to:o.label_up_to||"",label_of_the_profit:o.label_of_the_profit||"",label_price:o.label_price||"",label_start_now:o.label_start_now||"",label_you_will_also_get_access_to:o.label_you_will_also_get_access_to||"",label_best_value:o.label_best_value||"",label_avg_reward:o.label_avg_reward||"",label_account:o.label_account||"",label_all_prices_are_one_time_payments:o.label_all_prices_are_one_time_payments||"",label_one_time_fee:o.label_one_time_fee||"",label_same_for_every_account_size:o.label_same_for_every_account_size||"",label_show_more:o.label_show_more||"",label_read_more:o.label_read_more||"",selector_2_step_title:o.selector_2_step_title||"",selector_2_step_description:o.selector_2_step_description||"",selector_1_step_title:o.selector_1_step_title||"",selector_1_step_description:o.selector_1_step_description||"",selector_1_tag_text:o.selector_1_tag_text||"",selector_1_tag_color:o.selector_1_tag_color||""})):(console.error("[Pricing Table] No inline data found"),D("Pricing data not available"),b(!1))},[]);const z=Q(()=>j===1&&x&&Object.keys(x).length>0?x:p,[j,p,x]),q=o=>{T(!0),M(o)},X=o=>{T(!0),E(o)};return e(Ne.Provider,{value:{items:s,prices:m,objectives:z,perks:k,loading:w,error:y,selectedCurrency:P,setSelectedCurrency:A,showNumbers:L,setShowNumbers:R,showSteps:S,setShowSteps:X,balanceIndex:U,setBalanceIndex:O,step:j,setStep:q,extra:H,special:i,challengeDiscount100k:r,onlyUsdCurrency:K},children:t})},ke=ye(void 0),ce=()=>{const t=ve(ke);if(!t)throw new Error("useModal must be used within a ModalProvider");return t},Je=({children:t})=>{const[i,d]=_(new Set),r=c=>{d(s=>new Set(s).add(c))},n=c=>{d(s=>{const l=new Set(s);return l.delete(c),l})},a=c=>i.has(c);return e(ke.Provider,{value:{openModal:r,closeModal:n,isModalOpen:a,openModals:i},children:t})};function le(){const{showNumbers:t,setShowNumbers:i,extra:d}=I();return e("div",{className:"flex justify-start gap-2 items-center shrink-0",children:[e("button",{type:"button",className:`relative inline-flex h-6 w-11 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out ${t?"bg-filter-primary-active":"bg-filter-base"}`,role:"switch","aria-checked":"false",onClick:()=>i(!t),children:[e("span",{className:"sr-only",children:"Use setting"}),e("span",{"aria-hidden":"true",className:`pointer-events-none inline-block size-5 translate-x-0 transform rounded-full bg-white shadow-sm ring-0 transition duration-200 ease-in-out ${t?"translate-x-5":"translate-x-0"}`})]}
1),e("div",{className:"body-sm text-content-primary cursor-pointer",onClick:()=>i(!t),children:d.label_show_numbers})]})}function Xe(){const{items:t,selectedCurrency:i,setSelectedCurrency:d,showSteps:r,setShowSteps:n,extra:a,step:c,onlyUsdCurrency:s}=I(),[l,m]=_(!1),[h,p]=_(!1),u=G(null),x=G(null),v=l?t:t.slice(0,3),k=t.length>3;$(()=>{const b=y=>{u.current&&!u.current.contains(y.target)&&p(!1)};return document.addEventListener("mousedown",b),()=>document.removeEventListener("mousedown",b)},[]);const f=t.find(b=>b.currency===i),w=b=>{d(b),p(!1)};return e("div",{className:"md:w-full md:max-w-[1440px] md:m-auto md:px-4 sm:md:px-7 md:md:px-10 lg:md:px-20 xl:md:px-[108px]",children:e("div",{className:"flex flex-col gap-4",children:e("div",{className:"w-full flex flex-row md:flex-row gap-4 md:gap-4 justify-between items-center py-3 px-4 md:p-0 md:bg-none border-t-2 md:border-t-0 border-white/25",style:{background:"linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.00) 100%)"},children:[!s&&e(W,{children:[e("div",{className:"md:hidden relative",ref:u,children:[e("button",{onClick:()=>p(!h),className:"flex items-center rounded-lg pl-3 pr-3 py-2 duration-200",children:[f&&e(W,{children:[e("img",{src:`/app/themes/ftmo-com/public/icons/flags/currencies/${f.currency}.svg`,alt:`${f.currency} flag`,className:"size-5 rounded-full object-cover flex-shrink-0"}),e("span",{className:"text-sm font-semibold ml-[10px] flex-shrink-0",children:f.currency})]}),e("svg",{className:"ml-[6px] size-5 flex-shrink-0",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[e("rect",{width:"256",height:"256",fill:"none"}),e("polyline",{points:"208 96 128 176 48 96",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"})]})]}),h&&e("ul",{className:"absolute left-0 top-full mt-1 z-50 rounded-lg border border-border-primary bg-white p-2 shadow-lg min-w-full w-max",children:t.map(b=>{const y=b.currency===i;return e("li",{children:e("button",{onClick:()=>w(b.currency),className:`flex w-full items-center justify-between rounded-lg py-3 transition-colors duration-200 gap-2.5 px-2.5 ${y?"bg-zinc-100":"hover:bg-zinc-100"}`,children:[e("div",{className:"flex items-center gap-2.5",children:[e("img",{src:`/app/themes/ftmo-com/public/icons/flags/currencies/${b.currency}.svg`,alt:`${b.currency} flag`,className:"size-5 rounded-full object-cover"}),e("span",{className:"text-sm font-semibold text-zinc-950",children:b.currency})]}),y&&e("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M18.1637 6.28913L8.16374 16.2891C8.07664 16.3765 7.97315 16.4459 7.85919 16.4932C7.74524 16.5405 7.62306 16.5649 7.49967 16.5649C7.37628 16.5649 7.25411 16.5405 7.14016 16.4932C7.0262 16.4459 6.92271 16.3765 6.83561 16.2891L2.46061 11.9141C2.3734 11.8269 2.30423 11.7234 2.25703 11.6095C2.20984 11.4955 2.18555 11.3734 2.18555 11.2501C2.18555 11.1267 2.20984 11.0046 2.25703 10.8907C2.30423 10.7767 2.3734 10.6732 2.46061 10.586C2.54782 10.4988 2.65134 10.4296 2.76528 10.3824C2.87922 10.3352 3.00135 10.3109 3.12467 10.3109C3.248 10.3109 3.37012 10.3352 3.48406 10.3824C3.598 10.4296 3.70153 10.4988 3.78874 10.586L7.50045 14.2977L16.8372 4.96256C17.0133 4.78644 17.2522 4.6875 17.5012 4.6875C17.7503 4.6875 17.9892 4.78644 18.1653 4.96256C18.3414 5.13868 18.4404 5.37755 18.4404 5.62663C18.4404 5.8757 18.3414 6.11457 18.1653 6.29069L18.1637 6.28913Z",fill:"#09090B"})})]})},b.currency)})})]}),e("div",{className:"hidden md:flex gap-2 flex-nowrap overflow-x-auto w-full md:w-auto md:flex-wrap",children:[v.map(b=>{const y=b.currency===i;return e("button",{onClick:()=>d(b.currency),className:`tab-item secondary flex-shrink-0 ${y?"active":""}`,children:[e("img",{src:`/app/themes/ftmo-com/public/icons/flags/currencies/${b.currency}.svg`,alt:`${b.currency} flag`,className:"w-6 h-6 rounded-full"}),e("span",{className:"text-sm font-semibold",children:b.currency})]},b.currency)}),k&&!l&&e("button",{className:"tab-item secondary flex-shrink-0",onClick:()=>m(!l),children:[e(je,{weight:"fill",className:"size-6 fill-content-secondary"}),e("span",{className:"text-sm font-semibold",children:a.label_more})]})]})]}),s&&e(W,{children:[e("div",{className:"bg-filter-base p-1 rounded-xl flex gap-2 w-full md:w-auto h-11",children:[e("button",{className:`tab-item w-full md:w-auto secondary body-sm ${r?"bg-transparent hover:bg-filter-base":"active"}`,onClick:()=>n(!1),children:a.label_overview}),e("button",{className:`tab-item w-full md:w-auto secondary body-sm ${r?"active":"bg-transparent hover:bg-filter-base"}`,onClick:()=>n(!0),children:a.label_show_steps})]}),e("div",{className:"gap-2 flex-wrap hidden md:flex",children:e(le,{})})]}),!s&&e("div",{className:"flex items-center gap-4 shrink-0",children:[e("div",{className:"gap-2 flex-wrap hidden md:flex",children:e(le,{})}),e("div",{className:"w-px h-[25px] bg-white/12 hidden md:block shrink-0"}),e("button",{ref:x,className:`shrink-0 flex gap-2 rounded-lg py-2 px-4 font-semibold body-sm ${r?"bg-white/16 shadow-sm":"bg-transparent"}`,onClick:()=>n(!r),children:[e("svg",{className:"size-5 flex-shrink-0",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[e("rect",{width:"256",height:"256",fill:"none"}),e("path",{d:"M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"24"}),e("circle",{cx:"128",cy:"128",r:"32",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"24"})]}),e("div",{children:r?a.label_hide_steps:a.label_show_steps})]})]})]})})})}
1function Ye(){window.LUX&&window.LUX.addData("click_cta_button_start_now",1)}function Qe({title:t,href:i,className:d}){return e("a",{href:i,onClick:Ye,className:`h-12 px-4 text-sm flex items-center justify-center text-center rounded-lg no-underline font-family-primary font-semibold transition-colors gap-2 duration-200 ease-in-out bg-button-primary-base hover:bg-button-primary-hover focus:bg-button-primary-pressed text-content-white inset-shadow-sm inset-shadow-white/32 focus:inset-shadow-none text-content-white fill-content-white ${d||""}`,children:t})}const oe=ee(Qe);function et(){return e("div",{className:"relative h-px w-full",children:[e("div",{className:"h-px w-full bg-gradient-to-r from-gradients-opacity-primary-0 via-gradients-opacity-primary-16 to-gradients-opacity-primary-0"}),e("div",{className:"overflow-hidden",children:e("div",{className:"relative -top-10 h-20 w-full bg-radial-[35.21%_100%_at_50%_0%] from-gradients-opacity-primary-04 to-gradients-opacity-primary-0"})})]})}const Y={BEST_VALUE:"rt-best-value",DISCOUNTED_PRICE:"rt-discounted-price",DISCOUNTED_PRICE_MOBILE:"rt-discounted-price-mobile",AVERAGE_REWARD:"rt-average-reward"};function B(t){return`rt-${t}`}function Ce(t){return`rt-perk-${t.toLowerCase().replace(/\s+/g,"-")}`}const N=(t,i)=>{switch(t){case"USD":return Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(i);case"GBP":return Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP",maximumFractionDigits:0}).format(i);case"EUR":return Intl.NumberFormat("en-US",{style:"currency",currency:"EUR",maximumFractionDigits:0}).format(i).replace(/,/g," ");case"CZK":return Intl.NumberFormat("cs-CZ",{style:"currency",currency:"CZK",maximumFractionDigits:0}).format(i).slice(0,-3).replace(/,/g," ")+" CZK";case"CAD":return Intl.NumberFormat("en-CA",{style:"currency",currency:"CAD",maximumFractionDigits:0}).format(i);case"AUD":return Intl.NumberFormat("en-AU",{style:"currency",currency:"AUD",maximumFractionDigits:0}).format(i);case"CHF":return Intl.NumberFormat("fr-CH",{style:"currency",currency:"CHF",maximumFractionDigits:0}).format(i);default:return"en-US"}};function tt(t,i,d,r,n){const{onlyUsdCurrency:a,step:c,prices:s}=I();return Q(()=>{var u,x,v,k,f,w,b,y,D,P,A,L,R,S,E,U,O,j,M,H,F,K;const l=Number(i.balance),m=te(s,c,d),h=Number(m.price),p=m.discounted&&m.discounted_price?Number(m.discounted_price):null;return{balance:l,price:h,discountedPrice:p||void 0,formattedBalance:N(t,l),formattedPrice:N(a?"USD":"EUR",h),formattedDiscountedPrice:p?N(a?"USD":"EUR",p):null,formattedAverageReward:m.average_reward?N(a?"USD":"EUR",Number(m.average_reward)):null,profitTarget:{step1:r?N(t,Number((x=(u=n.profit_target)==null?void 0:u.steps)==null?void 0:x.step_1)/100*l):`${(k=(v=n.profit_target)==null?void 0:v.steps)==null?void 0:k.step_1}%`,step2:r?N(t,Number((w=(f=n.profit_target)==null?void 0:f.steps)==null?void 0:w.step_2)/100*l):`${(y=(b=n.profit_target)==null?void 0:b.steps)==null?void 0:y.step_2}%`},maxDailyLoss:{step1:r?N(t,Number((P=(D=n.max_daily_loss)==null?void 0:D.steps)==null?void 0:P.step_1)/100*l):`${(L=(A=n.max_daily_loss)==null?void 0:A.steps)==null?void 0:L.step_1}%`},maxLoss:{step1:r?N(t,Number((S=(R=n.max_loss)==null?void 0:R.steps)==null?void 0:S.step_1)/100*l):`${(U=(E=n.max_loss)==null?void 0:E.steps)==null?void 0:U.step_1}%`},minTradingDays:{step1:(j=(O=n.min_trading_days)==null?void 0:O.steps)==null?void 0:j.step_1}
1,tradingPeriod:{step1:(H=(M=n.trading_period)==null?void 0:M.steps)==null?void 0:H.step_1},bestDay:{step1:(K=(F=n.best_day)==null?void 0:F.steps)==null?void 0:K.step_1}}},[t,i,d,r,n,a,c,s])}function xe({price:t,discounted:i,discounted_price:d,discounted_price_tooltip_text:r,price_tooltip:n,size:a}){const{special:c,onlyUsdCurrency:s,step:l}=I(),[m,h]=_(!1);$(()=>{const x=()=>{h(window.innerWidth<768)};return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]);const p=typeof d=="string"?d===""||d==="0"?void 0:Number(d):d;return e("div",{className:"flex gap-1 items-center justify-center",children:[i===!0&&p!==void 0&&p!==0?e(W,{children:[e(we,{weight:"fill",className:"size-4 fill-badge-warning-full"}),e("div",{className:`${a==="sm"?"h7":"h5"} text-badge-warning-full border-b border-dashed ${m?"cursor-pointer":"cursor-help"} border-badge-warning z-1`,"data-tooltip-id":"global-tooltip","data-tooltip-content":r,onClick:m?x=>{x.stopPropagation()}:void 0,children:N(s?"USD":"EUR",p)}),e("div",{className:"line-through body-sm text-content-secondary",children:N(s?"USD":"EUR",t)})]}):e("div",{className:`${a==="sm"?"h7":"h4"} text-content-primary`,children:N(s?"USD":"EUR",t)}),n&&e("div",{"data-tooltip-id":"global-tooltip","data-tooltip-content":n,children:e(ne,{weight:"bold",className:"size-4 fill-content-primary/50"})})]})}function rt({warning:t=!1,label:i}){const{special:d,extra:r,challengeDiscount100k:n,step:a}=I();return e("div",{className:`w-max flex gap-1 items-center absolute body-sm rounded-b-sm top-0 md:-top-4 left-1/2 -translate-x-1/2 py-0.5 px-2 md:rounded-full z-1 ${t||d&&n&&a===2?"bg-badge-warning-full":"bg-content-active"}`,children:e("span",{className:"font-semibold",children:i||r.label_best_value})})}const _e=ee(function({currency:i,challenge:d,challengeIndex:r}){var v,k,f,w,b,y,D,P,A;const{objectives:n,showNumbers:a,special:c,extra:s,challengeDiscount100k:l,step:m,prices:h}=I(),p=tt(i,d,r,a,n),u=te(h,m,r),x=(((v=u.popular_badge_label)==null?void 0:v.length)??0)>=13;return $(()=>{const L=document.querySelectorAll("[data-avg-reward-mobile]");if(L.length===0)return;L.forEach(S=>S.classList.remove("flex-col")),document.body.offsetHeight;let R=!1;L.forEach(S=>{if(S.children.length>=2){const E=S.children[0].offsetTop;S.children[1].offsetTop>E&&(R=!0)}}),R&&L.forEach(S=>{S.classList.add("flex-col")})},[p.formattedAverageReward]),e("div",{className:"flex h-full flex-col gap-4 flex-1 min-w-[255px] md:min-w-[180px]",children:[e("div",{className:"h-full border border-border-primary rounded-xl p-4 pt-6 md:p-6 bg-background-primary relative flex flex-col",children:[u.popular&&e(W,{children:[e(rt,{warning:u.discounted,label:u.popular_badge_label}),u.discounted&&u.discounted_price_badge_image&&e("img",{src:u.discounted_price_badge_image,alt:"",className:`block absolute top-[-40px] ${x?"right-[-57px]":"right-[-43px]"} w-[110px] h-auto rounded-xl pointer-events-none rotate-20 z-1`}),e("div",{className:`absolute top-0 left-0 h-25 rounded-xl w-full bg-gradient-to-b ${u.discounted?"from-orange-500/25 to-orange-500/0 ":"from-blue-500/25 to-sky-500/0 "} pointer-events-none`}),e("div",{className:`absolute bottom-0 left-0 h-25 rounded-xl w-full bg-gradient-to-t ${u.discounted?"":"from-blue-500/25 to-sky-500/0"} pointer-events-none`})]}),e("div",{className:"flex flex-col items-center justify-center pb-3 md:pb-4",children:[e("div",{className:"text-content-secondary body-xs",children:s.label_account}),e("div",{className:`${i!="CZK"&&i!="CHF"?"text-3xl md:text-2xl":"text-2xl md:text-base xl:text-lg"} font-semibold text-balance truncate max-w-full h-8 flex items-center`,children:p.formattedBalance})]}),e("div",{className:"hidden md:block",children:e(et,{})}),e("div",{className:"md:hidden rounded-lg bg-background-secondary",children:[e(
1oe,{title:s.label_start_now,href:m===2&&s.start_now_url_step_2||s.start_now_url}),e("div",{className:"py-3 px-4",children:[e("div",{className:"body-xs text-content-secondary opacity-70 text-center",children:m===1?s.label_one_time_fee:s.label_all_prices_are_one_time_payments}),e("div",{className:"mt-1",children:e(xe,{price:p.price,discounted:u.discounted,discounted_price:p.discountedPrice||void 0,size:"sm",discounted_price_tooltip_text:u.discounted_price_tooltip_text,price_tooltip:u.price_tooltip})})]})]}),e("div",{className:"text-content-secondary body-sm flex flex-col gap-4 py-6 flex-1",children:[((k=n.profit_target)==null?void 0:k.show)&&(m===1?e("div",{className:"flex justify-between items-center gap-2 whitespace-nowrap",children:[e("div",{className:"md:hidden text-content-primary font-medium cursor-help pb-1 border-b border-dashed border-content-tertiary","data-tooltip-id":"global-tooltip","data-tooltip-content":B("profit_target"),children:n.profit_target.title}),e("span",{children:p.profitTarget.step1})]}):e("div",{className:"flex justify-between items-start gap-2 whitespace-nowrap",children:[e("div",{className:"md:hidden text-content-primary font-medium cursor-help pb-1 border-b border-dashed border-content-tertiary","data-tooltip-id":"global-tooltip","data-tooltip-content":B("profit_target"),children:n.profit_target.title}),e("div",{className:"flex gap-3 items-start justify-start",children:[e("div",{className:"flex flex-col items-start justify-end",children:[e("div",{className:"body-xs font-semibold text-content-tertiary uppercase py-px text-center",children:[s.label_step," 1"]}),e("div",{className:"body-xs font-semibold text-content-tertiary uppercase py-px text-center",children:[s.label_step," 2"]})]}),e("div",{className:"flex flex-col items-start justify-end",children:[e("div",{className:"body-xs font-semibold text-content-secondary uppercase py-px text-center",children:p.profitTarget.step1}),e("div",{className:"body-xs font-semibold text-content-secondary uppercase py-px text-center",children:p.profitTarget.step2})]})]})]})),((f=n.max_daily_loss)==null?void 0:f.show)&&e("div",{className:"flex justify-between items-center gap-2 whitespace-nowrap",children:[e("div",{className:"md:hidden text-content-primary font-medium cursor-help pb-1 border-b border-dashed border-content-tertiary","data-tooltip-id":"global-tooltip","data-tooltip-content":B("max_daily_loss"),children:n.max_daily_loss.title}),e("span",{children:p.maxDailyLoss.step1})]}),((w=n.max_loss)==null?void 0:w.show)&&e("div",{className:"flex justify-between items-center gap-2 whitespace-nowrap",children:[e("div",{className:"md:hidden text-content-primary font-medium cursor-help pb-1 border-b border-dashed border-content-tertiary","data-tooltip-id":"global-tooltip","data-tooltip-content":B("max_loss"),children:n.max_loss.title}),e("span",{children:p.maxLoss.step1})]}),((b=n.min_trading_days)==null?void 0:b.show)&&e("div",{className:"flex justify-between items-center gap-2 whitespace-nowrap",children:[e("div",{className:"md:hidden text-content-primary font-medium cursor-help pb-1 border-b border-dashed border-content-tertiary","data-tooltip-id":"global-tooltip","data-tooltip-content":B("min_trading_days"),children:n.min_trading_days.title}),e("span",{children:p.minTradingDays.step1})]}),((y=n.trading_period)==null?void 0:y.show)&&e("div",{className:"flex justify-between items-center gap-2 whitespace-nowrap",children:[e("div",{className:"md:hidden text-content-primary font-medium cursor-help pb-1 border-b border-dashed border-content-tertiary","data-tooltip-id":"global-tooltip","data-tooltip-content":B("trading_period"),children:n.trading_period.title}
1),e("span",{children:p.tradingPeriod.step1})]}),((D=n.best_day)==null?void 0:D.show)&&e("div",{className:"flex justify-between items-center gap-2 whitespace-nowrap",children:[e("div",{className:"md:hidden text-content-primary font-medium cursor-help pb-1 border-b border-dashed border-content-tertiary","data-tooltip-id":"global-tooltip","data-tooltip-content":B("best_day"),children:n.best_day.title}),e("span",{children:p.bestDay.step1})]}),((P=n.refund)==null?void 0:P.show)&&e("div",{className:"flex justify-between items-center gap-2 whitespace-nowrap",children:[e("div",{className:"md:hidden text-content-primary font-medium cursor-help pb-1 border-b border-dashed border-content-tertiary","data-tooltip-id":"global-tooltip","data-tooltip-content":B("refund"),children:n.refund.title}),e("div",{className:"flex gap-1",children:[e("div",{children:s.label_yes}),e("div",{className:"body-xs font-semibold px-2 rounded-md flex items-center justify-center bg-badge-success-opacity text-badge-success-full",children:"100%"})]})]}),((A=n.rewards)==null?void 0:A.show)&&e("div",{className:"flex justify-between items-center gap-2 whitespace-nowrap",children:[e("div",{className:"md:hidden text-content-primary font-medium cursor-help pb-1 border-b border-dashed border-content-tertiary","data-tooltip-id":"global-tooltip","data-tooltip-content":B("rewards"),children:n.rewards.title}),e("div",{className:"flex gap-1",children:[m===1&&e("div",{className:"body-xs font-semibold px-2 rounded-md flex items-center justify-center bg-badge-success-opacity text-badge-success-full",children:n.rewards.steps_overview}),m===2&&e("div",{children:n.rewards.steps_overview})]})]})]}),p.formattedAverageReward!==null&&typeof p.formattedAverageReward<"u"&&e("div",{"data-avg-reward-mobile":!0,className:"flex md:hidden gap-2 justify-center items-center rounded-lg p-1 bg-background-primary body-sm flex-wrap",children:[e("div",{className:"text-content-primary font-semibold",children:p.formattedAverageReward}),e("div",{className:"flex gap-1 items-center justify-center",children:[e("div",{className:"text-content-secondary font-medium text-center",children:s.label_avg_reward}),e("div",{className:"cursor-help","data-tooltip-id":"global-tooltip","data-tooltip-content":Y.AVERAGE_REWARD,children:e(ne,{className:"size-4 text-content-secondary"})})]})]}),e("div",{className:"hidden md:block",children:[e("div",{className:"h-px border-b border-separators-primary"}),e("div",{className:"flex flex-col pt-4 gap-3",children:[e(xe,{price:p.price,discounted:u.discounted,discounted_price:p.discountedPrice||void 0,size:"sm",discounted_price_tooltip_text:u.discounted_price_tooltip_text,price_tooltip:u.price_tooltip}),e(oe,{title:s.label_start_now,href:m===2&&s.start_now_url_step_2||s.start_now_url})]})]})]}),p.formattedAverageReward!==null&&typeof p.formattedAverageReward<"u"&&e("div",{className:"hidden md:flex border border-border-primary flex-col justify-center items-center rounded-xl p-3 bg-background-primary body-sm bg-gradient-to-b from-white/0 to-white/8",children:[e("div",{className:"w-auto text-content-primary font-semibold px-2 rounded-md flex items-center justify-center bg-background-secondary",children:p.formattedAverageReward}),e("div",{className:"flex gap-1 items-center justify-center pt-1",children:[e("div",{className:"text-content-secondary font-medium text-center",children:s.label_avg_reward}),e("div",{className:"cursor-help","data-tooltip-id":"global-tooltip","data-tooltip-content":Y.AVERAGE_REWARD,children:e(ne,{className:"size-4 text-content-secondary"})})]})]})]})}),ae={CrosshairSimpleIcon:He,ArrowDownIcon:Oe,ArrowLineDownIcon:Ue,TimerIcon:Be,CalendarBlankIcon:ze,CurrencyDollarSimpleIcon:Me,StudentIcon:Re,ChartLineIcon:Ae,TrendUpIcon:Pe,BrainIcon:Te,CalendarCheckIcon:Ke,LineSegmentsIcon:Ee,MoneyWavyIcon:Le,GaugeIcon:De,default:Ie};function st({objective:t,objectiveKey:i}){const d=ae[t.icon]??ae.default;return e("div",{className:"body-sm font-semibold flex gap-2 items-center cursor-help hover:opacity-75 transition-all w-max h-5","data-tooltip-id":"global-tooltip","data-tooltip-content":B(i),children:[e(d,{weight:"fill",className:"size-6 text-content-secondary fill-content-secondary"}),e("div",{className:"pb-1 border-b border-dashed border-content-tertiary max-w-[125px] truncate xl:max-w-[180px]",children:t.title})]})}const V=ee(st),de=()=>{const{items:t,selectedCurrency:i}=I();return Q(()=>{const r=t.filter(a=>a.currency===i),n=r.flatMap(a=>a.challenges.map((c,s)=>({...c,currency:a.currency,index:s,key:`${a.currency}-${s}`})));return{items:r,challenges:n,hasData:r.length>0}},[t,i])};function nt(){const{objectives:t,showNumbers:i,special:d,extra:r,step:n,balanceIndex:a}=I(),{challenges:c}=de(),s=G(null);return $(()=>{if(s.current&&c.length>0){const l=setTimeout(()=>{const m=s.current;if(!m)return;const h=m.querySelector(`[data-challenge-index="${a}"]`);if(h){const p=m.getBoundingClientRect(),u=h.getBoundingClientRect(),x=h.offsetLeft-p.width/2+u.width/2;m.scrollTo({left:Math.max(0,x),behavior:"smooth"})}},100);return()=>clearTimeout(l)}},[a,c]),e(W,{children:[e("div",{className:"hidden md:block w-full max-w-[1440px] m-auto pl-4 sm:pl-7 md:pl-10 lg:px-20 xl:px-[108px] border-border-secondary",children:e("div",{className:"flex gap-8 text-content-primary",children:[e("div",{className:"pt-[142px] pb-4 flex flex-col w-2/12",children:[e("div",{className:"flex flex-col gap-4",children:Object.entries(t).filter(([l,m])=>m.show!==!1&&m.show!==void 0).map(([l,m],h)=>h===0&&n===2?e("div",{className:"py-2.5",children:e(V,{objective:m,objectiveKey:l})},h):e(V,{objective:m,objectiveKey:l},h))}),e("div",{className:"mt-10 body-sm text-content-secondary",children:n===1?r.label_one_time_fee:r.label_all_prices_are_one_time_payments})]}),e("div",{className:"flex gap-3 flex-1 overflow-x-auto pricing-scrollbar py-7",children:c.map(l=>e(_e,{currency:l.currency,challenge:l,challengeIndex:l.index},l.key))})]})}),e("div",{className:"md:hidden w-full",children:e("div",{className:"flex gap-3 overflow-x-auto p-4 pt-7 sm:px-7",ref:s,children:c.slice().reverse().map(l=>e("div",{"data-challenge-index":l.index,children:e(_e,{currency:l.currency,challenge:l,challengeIndex:l.index})},l.key))})})]})}function at({perk:t}
1){const i=ae[t.icon]??ae.default,d=Ce(t.name),{openModal:r}=ce(),[n,a]=_(!1);return $(()=>{const s=()=>{a(window.innerWidth<768)};return s(),window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),e("div",{className:`flex gap-1.5 items-center min-w-fit px-3 py-2 rounded-xl border border-border-secondary mb-4 ${n?"cursor-pointer":"cursor-help"}`,"data-tooltip-id":n?void 0:"global-tooltip","data-tooltip-content":n?void 0:d,onClick:()=>{n&&r(`perk-${t.name}`)},children:[e(i,{weight:"fill",className:"size-4 text-content-secondary fill-content-secondary relative top-[-3px]"}),e("div",{className:"body-sm text-content-secondary pb-0.5 border-b border-dashed border-content-tertiary",children:t.name})]})}function it(t,i,d,r,n){const{onlyUsdCurrency:a,step:c,prices:s}=I();return Q(()=>{var f,w,b,y,D,P,A,L,R,S,E,U,O,j,M,H,F,K,J,Z,T,z,q,X,o,g,C,ie,pe,me,ue,he,fe,be;const l=t.find(Se=>Se.currency===i);if(!l)return null;const m=l.challenges[d],h=Number(m.balance),p=te(s,c,d),u=Number(p.price),x=p.discounted&&p.discounted_price?Number(p.discounted_price):null,v=p.discounted?p.discounted_price_tooltip_text:"",k=p.price_tooltip;return{balance:h,price:u,discountedPrice:x,discountedPriceTooltip:v,priceTooltip:k,formattedPrice:N(a?"USD":"EUR",u),formattedDiscountedPrice:x?N(a?"USD":"EUR",x):null,formattedRefundPrice:N(a?"USD":"EUR",u),profitTarget:{step1:r?N(i,Number((w=(f=n.profit_target)==null?void 0:f.steps)==null?void 0:w.step_1)/100*h):`${(y=(b=n.profit_target)==null?void 0:b.steps)==null?void 0:y.step_1}%`,step2:r?N(i,Number((P=(D=n.profit_target)==null?void 0:D.steps)==null?void 0:P.step_2)/100*h):`${(L=(A=n.profit_target)==null?void 0:A.steps)==null?void 0:L.step_2}%`,step3:(S=(R=n.profit_target)==null?void 0:R.steps)==null?void 0:S.step_3},maxDailyLoss:{step1:r?N(i,Number((U=(E=n.max_daily_loss)==null?void 0:E.steps)==null?void 0:U.step_1)/100*h):`${(j=(O=n.max_daily_loss)==null?void 0:O.steps)==null?void 0:j.step_1}%`,step2:r?N(i,Number((H=(M=n.max_daily_loss)==null?void 0:M.steps)==null?void 0:H.step_2)/100*h):`${(K=(F=n.max_daily_loss)==null?void 0:F.steps)==null?void 0:K.step_2}%`,step3:r?N(i,Number((Z=(J=n.max_daily_loss)==null?void 0:J.steps)==null?void 0:Z.step_3)/100*h):`${(z=(T=n.max_daily_loss)==null?void 0:T.steps)==null?void 0:z.step_3}%`},maxLoss:{step1:r?N(i,Number((X=(q=n.max_loss)==null?void 0:q.steps)==null?void 0:X.step_1)/100*h):`${(g=(o=n.max_loss)==null?void 0:o.steps)==null?void 0:g.step_1}%`,step2:r?N(i,Number((ie=(C=n.max_loss)==null?void 0:C.steps)==null?void 0:ie.step_2)/100*h):`${(me=(pe=n.max_loss)==null?void 0:pe.steps)==null?void 0:me.step_2}%`,step3:r?N(i,Number((he=(ue=n.max_loss)==null?void 0:ue.steps)==null?void 0:he.step_3)/100*h):`${(be=(fe=n.max_loss)==null?void 0:fe.steps)==null?void 0:be.step_3}%`}}},[t,i,d,r,n,a,c,s])}function lt(){var f,w,b,y,D,P,A,L,R,S,E,U,O,j,M,H,F,K,J,Z;const{items:t,selectedCurrency:i,balanceIndex:d,objectives:r,showNumbers:n,extra:a,special:c,step:s}=I(),l=it(t,i,d,n,r),m=G(null),h=G(null),[p,u]=_(!1),[x,v]=_(!1);if($(()=>{const T=()=>{if(!m.current||!h.current)return;const z=m.current.getBoundingClientRect(),q=h.current.getBoundingClientRect(),X=z.top<window.innerHeight&&z.bottom>0,o=q.top<=window.innerHeight,g=X&&!o;u(g),v(o);const C=document.querySelector(".circleRollButton");C&&(window.innerWidth<768&&g?C.style.display="none":C.style.display="")};return T(),window.addEventListener("scroll",T),window.addEventListener("resize",T),()=>{window.removeEventListener("scroll",T),window.removeEventListener("resize",T);const z=document.querySelector(".circleRollButton");z&&(z.style.display="")}},[]),!l)return null;const k=({isSticky:T=!1})=>{const z=l.discountedPrice&&(l.discountedPrice===499&&c===!0||l.discountedPrice!==499);return e("div",{className:`${T?"px-4 py-4":"px-6 py-4"} relative overflow-hidden`,children:[e("div",{className:`absolute bg-blue-500 blur-[62px] filter opacity-20 pointer-events-none 2 h-[100px] w-[296px] right-[91px] bottom-[-97px] 3 md:h-[152px] md:w-[406px] md:right-[-20px] md:top-[-27px]`}),e("div",{className:"flex items-end md:items-center justify-between gap-3 md:gap-6 relative z-10",children:[e("div",{className:"hidden md:flex flex-col",children:[e("div",{className:"text-content-secondary body-sm font-semibold",children:a.label_ftmo_account}),e("div",{className:"text-content-primary h5",children:N(i,l.balance)})]}),e("div",{className:"flex items-end md:items-center gap-3 md:gap-6 w-full md:w-auto justify-between md:justify-end",children:[e("div",{className:"flex flex-col items-start md:items-end md:h-14 md:justify-center",children:[e("div",{className:"text-content-secondary body-sm font-semibold relative z-10",children:a.label_price}),e("div",{className:"flex items-center gap-2 flex-row-reverse md:flex-row",children:[l.priceTooltip&&e("div",{"data-tooltip-id":"global-tooltip","data-tooltip-content":l.priceTooltip,children:e(ne,{weight:"bold",className:"size-4 fill-content-primary/50"})}),z?e("div",{className:"flex gap-1 md:gap-2 items-end relative z-10",children:[e("div",{className:"flex items-center justify-center py-1 order-2 md:order-1",children:e("div",{className:"line-through text-content-secondary body-sm",children:l.formattedPrice})}),e("div",{className:"flex gap-1 items-center order-1 md:order-2",children:[e(we,{weight:"fill",className:"size-5 fill-badge-warning-full"}),e("div",{className:"flex flex-col gap-0.5 items-start justify-center",children:[e("div",{className:"text-badge-warning-full h4 cursor-pointer md:cursor-help","data-tooltip-id":"global-tooltip","data-tooltip-content":l.discountedPriceTooltip,onClick:q=>{q.stopPropagation()},children:l.formattedDiscountedPrice}),e("div",{className:"h-0 w-full relative",children:e("div",{className:"absolute bottom-0 left-0 right-0 top-[-2px] border-b border-dotted border-badge-warning-full"})})]})]})]}):e("div",{className:"text-content-primary h4 relative z-10",children:l.formattedPrice})]})]}),e(oe,{className:"h-12 px-5 md:w-[180px] flex-shrink-0",title:a.label_start_now,href:s===2&&a.start_now_url_step_2||a.start_now_url})]})]},`price-${i}-${d}-${T?"sticky":"static"}`)]})};return e(W,{children:[p&&e("div",{className:"fixed bottom-0 left-0 right-0 z-20 md:hidden bg-background-surface border-t border-border-secondary shadow-[0px_-4px_24px_-1px_rgba(19,19,21,0.75)]",children:e(k,{isSticky:!0})}),e("div",{className:"w-full max-w-[1440px] m-auto px-0 md:px-10 lg:px-20 xl:px-[108px]",children:e("div",{ref:m,className:"relative w-full bg-background-primary mt-7 md:mt-0 md:rounded-xl border-t border-b md:border-l md:border-r border-border-primary overflow-hidden",children:[e("img",{src:"/app/themes/ftmo-com/public/images/pricing/corner-gradient.svg",alt:"",className:"hidden md:block absolute -z-1 top-0 right-0 pointer-events-none select-none"}),e("div",{className:"md:hidden w-11/12 m-auto border-b border-separators-primary py-5",children:e(le,{})}),e("div",{className:"p-6 flex-col text-content-primary overflow-x-auto",children:e("div",{className:"min-w-[720px]",children:[e("div",{className:"grid grid-cols-4 w-full pb-4 border-b border-separators-primary",children:[e("div",{className:"uppercase text-content-tertiary font-semibold body-sm",children:a.label_trading_objectives}),e("div",{className:"flex flex-col items-start justify-center",children:[e("div",{className:"flex gap-1 items-center justify-center pb-px",children:[e(Fe,{weight:"fill",className:"size-5 fill-content-tertiary"}),e("div",{className:"uppercase body-sm text-content-tertiary font-semibold",children:[a.label_step," 1"]}
3)]}),e("div",{className:"body-sm font-semibold",children:a.label_ftmo_challenge})]}),s===2&&e("div",{className:"flex flex-col items-start justify-center",children:[e("div",{className:"flex gap-1 items-center justify-center pb-px",children:[e(Ze,{weight:"fill",className:"size-5 fill-content-tertiary"}),e("div",{className:"uppercase body-sm text-content-tertiary font-semibold",children:[a.label_step," 2"]})]}),e("div",{className:"body-sm font-semibold",children:a.label_verification})]}),e("div",{className:"flex flex-col items-start justify-center",children:[e("div",{className:"flex gap-1 items-center justify-center pb-px",children:[e("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M11.3806 6.43913L3.82275 14.4696L1.5 12.0016L11.3806 1.5V6.43913Z",fill:"white"}),e("path",{d:"M11.3802 15.6589V22.4965L8.16412 19.0793L11.3802 15.6589Z",fill:"white"}),e("path",{d:"M11.3807 8.51794L4.80258 15.5074L7.18191 18.0355L11.3807 13.5741V8.51794Z",fill:"white"}),e("path",{d:"M12.6194 6.43913V1.5L22.5 11.9984L12.6194 22.5V17.5609L17.8515 11.9984L12.6194 6.43913Z",fill:"white"})]}),e("div",{className:"uppercase body-sm text-content-tertiary font-semibold",children:a.label_account})]}),e("div",{className:"body-sm font-semibold",children:a.label_ftmo_account})]})]}),e("div",{children:[((f=r.profit_target)==null?void 0:f.show)&&e("div",{className:"grid grid-cols-4 w-full py-4 border-b border-separators-primary",children:[e(V,{objective:r.profit_target,objectiveKey:"profit_target"}),e("div",{className:"body-sm text-content-secondary",children:e("span",{children:l.profitTarget.step1})}),s===2&&e("div",{className:"body-sm text-content-secondary",children:e("span",{className:"font-semibold",children:l.profitTarget.step2})}),e("div",{className:"body-sm text-content-secondary",children:e("span",{className:"font-semibold",children:l.profitTarget.step3})})]}),((w=r.max_daily_loss)==null?void 0:w.show)&&e("div",{className:"grid grid-cols-4 w-full py-4 border-b border-separators-primary",children:[e(V,{objective:r.max_daily_loss,objectiveKey:"max_daily_loss"}),e("div",{className:"body-sm text-content-secondary",children:e("span",{children:l.maxDailyLoss.step1})}),s===2&&e("div",{className:"body-sm text-content-secondary",children:e("span",{children:l.maxDailyLoss.step2})}),e("div",{className:"body-sm text-content-secondary",children:e("span",{children:l.maxDailyLoss.step3})})]}),((b=r.max_loss)==null?void 0:b.show)&&e("div",{className:"grid grid-cols-4 w-full py-4 border-b border-separators-primary",children:[e(V,{objective:r.max_loss,objectiveKey:"max_loss"}),e("div",{className:"body-sm text-content-secondary",children:e("span",{children:l.maxLoss.step1})}),s===2&&e("div",{className:"body-sm text-content-secondary",children:e("span",{children:l.maxLoss.step2})}),e("div",{className:"body-sm text-content-secondary",children:e("span",{children:l.maxLoss.step3})})]}),((y=r.min_trading_days)==null?void 0:y.show)&&e("div",{className:"grid grid-cols-4 w-full py-4 border-b border-separators-primary",children:[e(V,{objective:r.min_trading_days,objectiveKey:"min_trading_days"}),e("div",{className:"body-sm text-content-secondary",children:(D=r.min_trading_days.steps)==null?void 0:D.step_1}),s===2&&e("div",{className:"body-sm text-content-secondary",children:(P=r.min_trading_days.steps)==null?void 0:P.step_2}),e("div",{className:"body-sm text-content-secondary",children:e("span",{className:"font-semibold",children:(A=r.min_trading_days.steps)==null?void 0:A.step_3})})]}),((L=r.trading_period)==null?void 0:L.show)&&e("div",{className:"grid grid-cols-4 w-full py-4 border-b border-separators-primary",children:[e(V,{objective:r.trading_period,objectiveKey:"trading_period"}),e("div",{className:"body-sm text-content-secondary",children:(R=r.trading_period.steps)==null?void 0:R.step_1}),s===2&&e("div",{className:"body-sm text-content-secondary",children:(S=r.trading_period.steps)==null?void 0:S.step_2}),e("div",{className:"body-sm text-content-secondary",children:(E=r.trading_period.steps)==null?void 0:E.step_3})]}),((U=r.refund)==null?void 0:U.show)&&e("div",{className:"grid grid-cols-4 w-full py-4 border-b border-separators-primary",children:[e(V,{objective:r.refund,objectiveKey:"refund"}),e("div",{className:"body-sm text-content-secondary",children:"-"}),s===2&&e("div",{className:"body-sm text-content-secondary",children:"-"}),e("div",{className:"body-sm text-content-secondary",children:e("div",{className:"flex gap-1",children:[e("div",{children:a.label_yes}),e("div",{className:"body-xs font-semibold px-2 rounded-md flex items-center justify-center bg-badge-success-opacity text-badge-success-full",children:"100%"})]})})]}),((O=r.best_day)==null?void 0:O.show)&&e("div",{className:"grid grid-cols-4 w-full py-4 border-b border-separators-primary",children:[e(V,{objective:r.best_day,objectiveKey:"best_day"}),e("div",{className:"body-sm text-content-secondary",children:(j=r.best_day.steps)==null?void 0:j.step_1}),s===2&&e("div",{className:"body-sm text-content-secondary",children:(M=r.best_day.steps)==null?void 0:M.step_2}),e("div",{className:"body-sm text-content-secondary",children:(H=r.best_day.steps)==null?void 0:H.step_3})]}),((F=r.rewards)==null?void 0:F.show)&&e("div",{className:"grid grid-cols-4 w-full py-4",children:[e(V,{objective:r.rewards,objectiveKey:"rewards"}),e("div",{className:"body-sm text-content-secondary",children:(K=r.rewards.steps)==null?void 0:K.step_1}),s===2&&e("div",{className:"body-sm text-content-secondary",children:(J=r.rewards.steps)==null?void 0:J.step_2}),e("div",{className:"body-sm text-content-secondary flex flex-col md:flex-row",children:[e("div",{className:"flex gap-1",children:[s===2&&e("div",{children:a.label_up_to}),e("div",{className:"body-xs font-semibold px-2 rounded-md flex items-center justify-center bg-badge-success-opacity text-badge-success-full",children:(Z=r.rewards.steps)==null?void 0:Z.step_3})]}),e("div",{className:"md:ml-1",children:a.label_of_the_profit})]})]})]},`${i}-${d}`)]})}),e("div",{ref:h,className:"w-full",children:e("div",{className:"border-t border-border-secondary",children:e(k,{isSticky:!1})})})]})})]})}const ot=ee(lt),ct=t=>t>=1e6?`${t/1e6}M`:`${t/1e3}K`;function dt(){const{balanceIndex:t,setBalanceIndex:i,special:d,step:r,prices:n}=I(),{challenges:a}=de();return e("div",{className:"w-full hidden md:flex",children:e("div",{className:"flex gap-2 items-center justify-between md:justify-start w-full",children:a.map(c=>{const s=te(n,r,c.index),l=s.discounted&&s.discounted_price!=="";return e("button",{className:`relative w-full md:w-auto flex h-10 items-center justify-center px-3.5 py-2 rounded-xl font-semibold text-sm text-center transition-colors duration-200 ${t===c.index?"bg-filter-secondary-active text-content-primary border border-border-tertiary":"bg-filter-base text-content-primary hover:bg-filter-hover"}`,onClick:()=>i(c.index),children:[ct(Number(c.balance)),l&&e("div",{className:"absolute bg-functional-warning right-[-2px] rounded-full size-2 top-[-2px]",children:e("div",{className:"absolute border-4 border-solid border-background-surface inset-[-4px] pointer-events-none rounded-full"})})]},c.key)})})})}const pt=t=>t>=1e6?`${t/1e6}M`:`${t/1e3}K`;function mt(){const{balanceIndex:t,setBalanceIndex:i,special:d,step:r,prices:n}=I(),{challenges:a}=de();return e(W,{children:[e("div",{className:"w-full h-px bg-white/12 mb-3.5 md:hidden"}),e("div",{className:"flex md:hidden w-full",children:e("div",{className:"flex gap-2 items-center justify-between md:justify-start w-full pt-0.5",children:a.slice().reverse().map(c=>{const s=te(n,r,c.index),l=s.discounted&&s.discounted_price!=="";return e("button",{className:`relative w-full md:w-auto flex h-10 items-center justify-center px-1 py-2 rounded-xl font-semibold text-sm text-center transition-colors duration-200 ${t===c.index?"bg-filter-secondary-active text-content-primary border border-border-tertiary":"bg-filter-base text-content-primary hover:bg-filter-hover"}`,onClick:()=>i(c.index),children:[pt(Number(c.balance)),l&&e("div",{className:"absolute bg-functional-warning right-[-2px] rounded-full size-2 top-[-2px]",children:e("div",{className:"absolute border-4 border-solid border-background-surface inset-[-4px] pointer-events-none rounded-full"})})]},c.key)})})})]})}function re(t){window.dataLayer=window.dataLayer||[],window.dataLayer.push(t)}function ut(t,i){re({event:"button_click",button:{id:t,text:i,location:"pricing_table",action:"tooltip_interaction"}})}function ht(t){re({event:"tooltip_impression",interaction:{type:"impression"}
3,tooltip:{name:t}})}function ft(t){re({event:"tooltip_interaction",interaction:{type:"click"},tooltip:{name:t}})}function bt(t){re({event:"modal_impression",interaction:{type:"impression"},modal:{name:t}})}function xt(t){re({event:"modal_interaction",interaction:{type:"click"},modal:{name:t}})}function _t(){const{extra:t,objectives:i,perks:d}=I(),{openModal:r,openModals:n}=ce(),[a,c]=_(!1),[s,l]=_(!1),[m,h]=_(null),p=G(null);return $(()=>{const u=()=>{const x="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;c(x)};return u(),window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[]),$(()=>{s||(p.current=null)},[s]),$(()=>{n.size>0&&l(!1)},[n.size]),$(()=>{if(!a)return;const u=x=>{const v=x.target,k=v.closest('[data-tooltip-id="global-tooltip"]');if(v.closest('[role="tooltip"]')){l(!1);return}if(k){const w=k.getAttribute("data-tooltip-content");if(w){const b=Object.entries(i).find(([y])=>B(y)===w);if(b){const[y,D]=b;ut(y,D.title)}}if(s&&k===m){x.preventDefault(),x.stopPropagation(),l(!1);return}s||h(k);return}s&&l(!1)};return document.addEventListener("click",u,!0),()=>{document.removeEventListener("click",u,!0)}},[a,s,m]),e(W,{children:e(Ve,{id:"global-tooltip",clickable:!0,openOnClick:a,isOpen:s,setIsOpen:l,render:({content:u,activeAnchor:x})=>{const v=x==null?void 0:x.getAttribute("data-tooltip-content");if(!v||!x)return null;switch(v){case Y.BEST_VALUE:return e("span",{className:"body-xs",children:t.best_value_tooltip});case Y.DISCOUNTED_PRICE:case Y.DISCOUNTED_PRICE_MOBILE:return e("span",{className:"body-xs",children:t.discounted_price_tooltip});case Y.AVERAGE_REWARD:return e("span",{className:"body-xs",children:t.average_reward_tooltip});default:if(!v.startsWith("rt-"))return e("span",{className:"body-xs",children:v})}const k=Object.entries(i).find(([f,w])=>B(f)===v);if(k){const[f,w]=k;return s&&p.current!==f&&(p.current=f,ht(f)),e("div",{className:"body-sm",children:[e("div",{dangerouslySetInnerHTML:{__html:w.short_description}}),e("button",{className:"text-content-active mt-1",onClick:()=>{ft(f),l(!1),r(`objective-${f}`)},children:t.label_show_more})]})}if(!a){const f=d.find(w=>Ce(w.name)===v);if(f)return e("div",{children:[f.image&&typeof f.image=="string"&&e("img",{src:f.image,className:"w-full rounded-xl mb-4 mt-2",alt:f.title}),e("div",{className:"font-semibold pb-2",children:f.title}),e("div",{className:"pb-2 text-zinc-600 leading-5",dangerouslySetInnerHTML:{__html:f.content}}),f.link&&e("a",{href:f.link.url,target:f.link.target,className:"text-content-active mt-1",children:t.label_show_more})]})}return null}})})}function gt({className:t="",onClick:i,href:d="#",children:r,disabled:n=!1,loading:a=!1}){return e("a",{href:d,onClick:m=>{if(n||a){m.preventDefault();return}i&&i(m)},className:`inline-flex items-center justify-center size-8 rounded-lg bg-transparent transition-all duration-200 relative ${n?"opacity-40 cursor-not-allowed":a?"cursor-wait":"hover:bg-white/8 active:bg-white/12"} ${t}`,"aria-disabled":n||a,children:a?e(W,{children:[e("span",{className:"opacity-0",children:r}),e("span",{className:"absolute inset-0 flex items-center justify-center",children:e("svg",{className:"size-4 animate-spin text-white",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",fill:"currentColor",children:e("path",{d:"M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"})})})]}):r})}const yt=ee(gt);typeof window<"u"&&document.querySelector("#pricing")&&se.setAppElement("#pricing");function ge({isOpen:t,onRequestClose:i,children:d,title:r}){const[n,a]=_(!1),[c,s]=_(!1),l=G(0);$(()=>{const h=document.querySelector("#pricing");return a(!!h),h&&!se.defaultStyles.overlay&&se.setAppElement("#pricing"),t&&!c?(l.current=window.pageYOffset,document.body.style.overflow="hidden"):t||(document.body.style.overflow="",l.current&&window.scrollTo(0,l.current),c&&s(!1)),()=>{document.body.style.overflow=""}},[t,c]);const m=()=>{c||(s(!0),setTimeout(i,200))};return!n||!t&&!c?null:e(se,{isOpen:t&&!c,onRequestClose:m,className:`dark p-6 max-md:pb-20 w-full max-w-full mx-0 mb-0 mt-auto md:w-[600px] md:max-w-none md:mx-auto md:my-auto md:mt-auto bg-[#161618] rounded-t-2xl md:rounded-2xl shadow-2xl border border-border-primary text-content-primary max-h-[90vh] overflow-y-auto ${c?"modal
3-slide-exit-active":"modal-slide-enter-active"}`,overlayClassName:`fixed inset-0 z-[100] bg-black/60 flex flex-col justify-end md:justify-center md:items-center pb-0 md:p-4 ${c?"modal-overlay-exit-active":"modal-overlay-enter-active"}`,shouldCloseOnOverlayClick:!c,shouldCloseOnEsc:!c,children:[e("div",{className:"flex justify-between items-center pb-4",children:[e("h6",{className:"h7",children:r}),e(yt,{onClick:h=>{h.preventDefault(),m()},children:e(We,{className:"size-4"})})]}),d]})}function vt(){const{objectives:t,perks:i,extra:d}=I(),{isModalOpen:r,closeModal:n}=ce(),a=Q(()=>{for(const[s,l]of Object.entries(t)){const m=`objective-${s}`;if(r(m))return{modalId:m,type:"objective",data:l}}for(const s of i){const l=`perk-${s.name}`;if(r(l))return{modalId:l,type:"perk",data:s}}return null},[t,i,r]),c=G(null);if($(()=>{if((a==null?void 0:a.type)==="objective"){const s=a.modalId.replace("objective-","");c.current!==s&&(c.current=s,bt(s))}else c.current=null},[a]),!a)return null;if(a.type==="objective"){const s=a.data,l=a.modalId.replace("objective-","");return e(ge,{isOpen:!0,onRequestClose:()=>n(a.modalId),title:s.name,children:e("div",{className:"flex flex-col gap-2",children:[s.youtube_id?e("div",{className:"aspect-video w-full rounded-lg overflow-hidden mb-2",children:e("iframe",{src:`https://www.youtube.com/embed/${s.youtube_id}`,title:s.title,className:"w-full h-full",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}):s.image&&e("div",{className:"aspect-video w-full rounded-lg overflow-hidden mb-2 border border-border-primary",children:e("img",{src:s.image,alt:s.title,className:"w-full h-full object-cover"})}),e("div",{className:"body-base text-content-secondary [&_strong]:font-semibold [&_a]:text-white [&_a]:font-semibold [&_a]:underline [&_ul]:list-disc [&_ul]:pl-5",dangerouslySetInnerHTML:{__html:s.description}}),s.link_read_more&&e("div",{children:e("a",{href:s.link_read_more,target:"_blank",className:"body-base text-content-primary",onClick:()=>{xt(l)},children:d.label_read_more})})]})})}if(a.type==="perk"){const s=a.data;return e(ge,{isOpen:!0,onRequestClose:()=>n(a.modalId),title:s.title,children:e("div",{className:"flex flex-col gap-2",children:[s.image&&typeof s.image=="string"&&e("div",{className:"w-full rounded-lg overflow-hidden mb-2",children:e("img",{src:s.image,className:"w-full rounded-xl",alt:s.title})}),e("div",{className:"body-base text-content-secondary",dangerouslySetInnerHTML:{__html:s.content}}),s.link&&e("a",{href:s.link.url,target:s.link.target,className:"text-content-active mt-2 inline-block",children:s.link.title})]})})}return null}function wt(){const{step:t,setStep:i,setShowSteps:d,extra:r}=I(),n=r.selector_1_tag_color==="orange"?"bg-[#FF6900]":"bg-[#0781FE]",a=c=>{i(c)};return e("div",{className:"flex flex-col items-center gap-4 md:mb-8",children:[e("div",{className:"hidden md:flex rounded-2xl bg-white/[0.18] p-1.5 gap-1.5 w-full max-w-[538px]",children:[e("button",{className:`relative flex flex-1 items-center gap-3 transition-all p-2 px-3 pr-7 rounded-xl border border-transparent ${t===2?"border-white/[0.24] bg-white text-[#09090B]":""}`,onClick:()=>a(2),children:[r.selector_1_tag_text&&e("div",{className:`absolute right-[5px] top-[5px] rounded-full px-2 py-0.5 text-sm font-semibold text-white ${n}`,children:r.selector_1_tag_text}),e("div",{className:"flex-shrink-0",children:e("svg",{className:"fill-current size-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[e("rect",{width:"256",height:"256",fill:"none"}),e("path",{d:"M131.79,69.65l-43.63,96A4,4,0,0,1,84.52,168H28.23a8.2,8.2,0,0,1-6.58-3.13,8,8,0,0,1,.43-10.25L57.19,116,22.08,77.38a8,8,0,0,1-.43-10.26A8.22,8.22,0,0,1,28.23,64h99.92A4,4,0,0,1,131.79,69.65ZM237.56,42.24A8.3,8.3,0,0,0,231.77,40H168a8,8,0,0,0-7.28,4.69l-42.57,93.65a4,4,0,0,0,3.64,5.66h57.79l-34.86,76.69a8,8,0,1,0,14.56,6.62l80-176A8,8,0,0,0,237.56,42.24Z"})]})}),e("div",{className:"flex flex-col items-start text-left",children:[e("div",{className:"font-semibold",children:r.selector_2_step_title}),e("div",{className:"text-xs opacity-75",children:r.selector_2_step_description})]})]}),e("button",{className:`relative flex flex-1 items-center gap-3 transition-all p-2 px-3 pr-7 rounded-xl border border-transparent ${t===1?"border-white/[0.24] bg-white text-[#09090B]":""}`,onClick:()=>a(1),children:[r.selector_1_tag_text&&e("div",{className:`absolute right-[5px] top-[5px] rounded-full px-2 py-0.5 text-sm font-semibold text-white ${n}`,children:r.selector_1_tag_text}),e("div",{className:"flex-shrink-0",children:e("svg",{className:"fill-current size-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[e("rect",{width:"256",height:"256",fill:"none"}),e("path",{d:"M101.85,191.14C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Zm122-144a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.4,27.07h0L88,108.7A8,8,0,0,1,76.67,97.39l26.56-26.57A4,4,0,0,0,100.41,64H74.35A15.9,15.9,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A16,16,0,0,0,192,181.65V155.59a4,4,0,0,0-6.83-2.82l-26.57,26.56a8,8,0,0,1-11.71-.42,8.2,8.2,0,0,1,.6-11.1l49.27-49.27h0C223.45,91.86,224.6,59.71,223.85,47.12Z"})]})}),e("div",{className:"flex flex-col items-start text-left",children:[e("div",{className:"font-semibold",children:r.selector_1_step_title}),e("div",{className:"text-xs opacity-75",children:r.selector_1_step_description})]})]})]}),e("div",{className:"flex md:hidden w-full",children:[e("button",{className:`relative flex flex-col items-start gap-2 p-4 flex-1 transition-all rounded-t-xl border-t-2 border-r-2 border-l-2 border-white/15 border-b-2 mb-[-2px] pb-[18px] ${t===2?"border-white/[0.24] bg-gradient-to-b from-white/20 to-white/[0.05] border-b-[#18181c] relative z-10":"border-b-transparent"}`,onClick:()=>a(2),children:[r.selector_1_tag_text&&e("div",{className:`absolute right-[11px] top-[13px] rounded-full px-2 py-0.5 text-sm font-semibold text-white ${n}`,children:r.selector_1_tag_text}),e("div",{className:"flex-shrink-0",children:e("svg",{className:"fill-current size-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[e("rect",{width:"256",height:"256",fill:"none"}),e("path",{d:"M131.79,69.65l-43.63,96A4,4,0,0,1,84.52,168H28.23a8.2,8.2,0,0,1-6.58-3.13,8,8,0,0,1,.43-10.25L57.19,116,22.08,77.38a8,8,0,0,1-.43-10.26A8.22,8.22,0,0,1,28.23,64h99.92A4,4,0,0,1,131.79,69.65ZM237.56,42.24A8.3,8.3,0,0,0,231.7
37,40H168a8,8,0,0,0-7.28,4.69l-42.57,93.65a4,4,0,0,0,3.64,5.66h57.79l-34.86,76.69a8,8,0,1,0,14.56,6.62l80-176A8,8,0,0,0,237.56,42.24Z"})]})}),e("div",{children:[e("div",{className:"font-semibold text-left",children:r.selector_2_step_title}),e("div",{className:"text-xs opacity-75 text-left",children:r.selector_2_step_description})]})]}),e("button",{className:`relative flex flex-col items-start gap-2 p-4 flex-1 transition-all rounded-t-xl border-t-2 border-r-2 border-l-2 border-white/15 ml-[-2px] border-b-2 mb-[-2px] pb-[18px] ${t===1?"border-white/[0.24] bg-gradient-to-b from-white/20 to-white/[0.05] border-b-[#18181c] z-10":"border-b-transparent"}`,onClick:()=>a(1),children:[r.selector_1_tag_text&&e("div",{className:`absolute right-[11px] top-[13px] rounded-full px-2 py-0.5 text-sm font-semibold text-white ${n}`,children:r.selector_1_tag_text}),e("div",{className:"flex-shrink-0",children:e("svg",{className:"fill-current size-6",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 256",children:[e("rect",{width:"256",height:"256",fill:"none"}),e("path",{d:"M101.85,191.14C97.34,201,82.29,224,40,224a8,8,0,0,1-8-8c0-42.29,23-57.34,32.86-61.85a8,8,0,0,1,6.64,14.56c-6.43,2.93-20.62,12.36-23.12,38.91,26.55-2.5,36-16.69,38.91-23.12a8,8,0,1,1,14.56,6.64Zm122-144a16,16,0,0,0-15-15c-12.58-.75-44.73.4-71.4,27.07h0L88,108.7A8,8,0,0,1,76.67,97.39l26.56-26.57A4,4,0,0,0,100.41,64H74.35A15.9,15.9,0,0,0,63,68.68L28.7,103a16,16,0,0,0,9.07,27.16l38.47,5.37,44.21,44.21,5.37,38.49a15.94,15.94,0,0,0,10.78,12.92,16.11,16.11,0,0,0,5.1.83A15.91,15.91,0,0,0,153,227.3L187.32,193A16,16,0,0,0,192,181.65V155.59a4,4,0,0,0-6.83-2.82l-26.57,26.56a8,8,0,0,1-11.71-.42,8.2,8.2,0,0,1,.6-11.1l49.27-49.27h0C223.45,91.86,224.6,59.71,223.85,47.12Z"})]})}),e("div",{children:[e("div",{className:"font-semibold text-left",children:r.selector_1_step_title}),e("div",{className:"text-xs opacity-75 text-left",children:r.selector_1_step_description})]})]})]})]})}function Nt(){const{perks:t,showSteps:i,extra:d}=I();return e("div",{className:"text-content-primary bg-transparent",children:[e("div",{className:"container",children:[e(wt,{}),e("div",{className:"h-px w-full mb-4 hidden md:block bg-transparent md:bg-separators-primary"})]}),e(Xe,{}),e("div",{className:"container",children:[e("div",{className:"h-px w-full mt-4 hidden md:block bg-transparent md:bg-separators-primary"}),e(mt,{}),i&&e("div",{className:"w-full pt-4 pb-5 hidden md:flex",children:e("div",{className:"w-full flex justify-between h-10 items-center",children:i&&e(dt,{})})})]}),i?e(ot,{}):e(nt,{}),e("div",{className:"container",children:e("div",{className:"mt-8",children:[e("div",{className:"body-sm text-content-secondary pb-2",children:[d.label_you_will_also_get_access_to,":"]}),e("div",{className:"flex gap-2 overflow-x-auto pricing-scrollbar",children:t.map((r,n)=>e(at,{perk:r},n))})]})}),e(_t,{}),e(vt,{})]})}document.querySelectorAll("[data-pricing-table-v2]").forEach(t=>{const i=$e(t),d=(()=>{try{return JSON.parse(t.dataset.special??"false")}catch{return!1}})(),r=(()=>{try{return JSON.parse(t.dataset.challengediscount??"false")}catch{return!1}})(),n=(()=>{try{return JSON.parse(t.dataset.lang??"en")}catch{return"en"}})(),a=(()=>{try{return parseInt(t.dataset.defaultStep??"2")===1?1:2}catch{return 2}})();i.render(e(Ge,{special:d,lang:n,challengeDiscount100k:r,defaultStep:a,children:e(Je,{children:e(Nt,{})})}))});
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.