(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,17203,e=>{e.v({conditionsInfo:"wQF6Mq_conditionsInfo",conditionsList:"wQF6Mq_conditionsList",conditionsRulesLinkDesktop:"wQF6Mq_conditionsRulesLinkDesktop",conditionsRulesLinkMobile:"wQF6Mq_conditionsRulesLinkMobile",conditionsTitle:"wQF6Mq_conditionsTitle",contentCard:"wQF6Mq_contentCard",left:"wQF6Mq_left",promoActions:"wQF6Mq_promoActions",promoActionsDesktop:"wQF6Mq_promoActionsDesktop",promoActionsMobile:"wQF6Mq_promoActionsMobile",right:"wQF6Mq_right",stepsList:"wQF6Mq_stepsList",title:"wQF6Mq_title",wrapper:"wQF6Mq_wrapper"})},59454,e=>{e.v({bullet:"_3YDUMq_bullet",caption:"_3YDUMq_caption",content:"_3YDUMq_content",title:"_3YDUMq_title",wrapper:"_3YDUMq_wrapper"})},23087,e=>{e.v({ctaButton:"eqooqW_ctaButton",promoCodeButton:"eqooqW_promoCodeButton",promoCodeIcon:"eqooqW_promoCodeIcon",promoCodeIconCheck:"eqooqW_promoCodeIconCheck",promoCodeIconCheckReveal:"eqooqW_promoCodeIconCheckReveal",promoCodeIconCopy:"eqooqW_promoCodeIconCopy"})},4307,e=>{e.v({caption:"_1yWOHG_caption",content:"_1yWOHG_content",step:"_1yWOHG_step",title:"_1yWOHG_title",wrapper:"_1yWOHG_wrapper"})},54506,e=>{e.v({actions:"cinuqW_actions",badge:"cinuqW_badge",badges:"cinuqW_badges",button:"cinuqW_button",content:"cinuqW_content",disclaimer:"cinuqW_disclaimer",heroImage:"cinuqW_heroImage",title:"cinuqW_title",topContent:"cinuqW_topContent",wrapper:"cinuqW_wrapper"})},8765,e=>{e.v({answer:"USqVoW_answer",answerGrid:"USqVoW_answerGrid",answerGridOpen:"USqVoW_answerGridOpen",answerInner:"USqVoW_answerInner",card:"USqVoW_card",icon:"USqVoW_icon",iconOpen:"USqVoW_iconOpen",title:"USqVoW_title",toggle:"USqVoW_toggle"})},39722,e=>{e.v({list:"OzxJfG_list",title:"OzxJfG_title",wrapper:"OzxJfG_wrapper"})},54661,e=>{e.v({wrapper:"OsiXTa_wrapper"})},841,e=>{"use strict";var t=e.i(43476),o=e.i(71645),s=e.i(48148),n=e.i(19233),a=e.i(76334),i=e.i(83410);e.i(29059);var r=e.i(40797),c=e.i(51966),l=e.i(35314),d=e.i(12716),p=e.i(7670),u=e.i(43732),m=e.i(59454);function f({title:e,caption:o}){return(0,t.jsxs)("div",{className:m.default.wrapper,children:[(0,t.jsx)("span",{className:m.default.bullet}),(0,t.jsxs)("div",{className:m.default.content,children:[(0,t.jsx)(l.f,{className:m.default.title,as:"h3",children:e}),(0,t.jsx)(l.f,{className:m.default.caption,as:"p",children:o})]})]})}var x=e.i(62965),h=e.i(23087);function y({promoCode:e,isPromoCodeCopied:o,animationNonce:s,ctaLabel:n,buttonAdditionalProps:a,onCopyPromoCodeClick:i,onCtaClick:r}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",className:h.default.promoCodeButton,"data-copied":o,onClick:i,children:[(0,t.jsx)("span",{children:e}),(0,t.jsxs)("span",{className:h.default.promoCodeIcon,children:[(0,t.jsx)(x.o,{className:h.default.promoCodeIconCopy,size:22}),(0,t.jsx)(x.F,{className:h.default.promoCodeIconCheck,size:22},s)]})]}),(0,t.jsx)(d.K,{className:h.default.ctaButton,label:n,size:"xs-s l-m",stretch:!0,...a,onClick:r})]})}var g=e.i(4307);function w({title:e,caption:o,step:s}){return(0,t.jsxs)(c.N,{className:g.default.wrapper,variant:"secondary",children:[(0,t.jsx)("div",{className:g.default.step,children:s}),(0,t.jsxs)("div",{className:g.default.content,children:[(0,t.jsx)(l.f,{className:g.default.title,as:"h3",children:e}),(0,t.jsx)(l.f,{className:g.default.caption,as:"p",children:o})]})]})}var b=e.i(17203);function j({ctaHref:e,ctaLabel:n,promoCode:a,eventCategory:i,isEsiaEntryPointEnabled:r,onCtaButtonClick:m}){let x=(0,s.f)(),[h,g]=(0,o.useState)(!1),[_,v]=(0,o.useState)(0),q=(0,o.useRef)(null),N=x("sc-moneybox.landings.howtoearn.conditions.rules.text"),C=x("sc-moneybox.landings.howtoearn.conditions.rules.href"),k=r?{}:{as:"a",href:e,target:"_blank"},S=[{title:x("sc-moneybox.landings.howtoearn.conditions.items.0.title"),caption:x("sc-moneybox.landings.howtoearn.conditions.items.0.caption")},{title:x("sc-moneybox.landings.howtoearn.conditions.items.1.title"),caption:x("sc-moneybox.landings.howtoearn.conditions.items.1.caption")},{title:x("sc-moneybox.landings.howtoearn.conditions.items.2.title"),caption:x("sc-moneybox.landings.howtoearn.conditions.items.2.caption")}],T=[{title:x("sc-moneybox.landings.howtoearn.steps.items.0.title"),caption:x("sc-moneybox.landings.howtoearn.steps.items.0.caption")},{title:x("sc-moneybox.landings.howtoearn.steps.items.1.title"),caption:x("sc-moneybox.landings.howtoearn.steps.items.1.caption")},{title:x("sc-moneybox.landings.howtoearn.steps.items.2.title"),caption:x("sc-moneybox.landings.howtoearn.steps.items.2.caption")}],$=(0,o.useCallback)(()=>{null!==q.current&&(window.clearTimeout(q.current),q.current=null)},[]);async function L(){try{await navigator.clipboard.writeText(a),$(),v(e=>e+1),g(!0),q.current=window.setTimeout(()=>{g(!1),q.current=null},5e3),(0,u.f)(i,"skopirovat_promo_kod",{eventLabel:a})}catch{(0,u.f)(i,"skopirovat_promo_kod_error")}}function E(){m(),(0,u.f)(i,"click_otkryt_finpodushku")}return(0,o.useEffect)(()=>$,[$]),(0,t.jsx)("section",{children:(0,t.jsx)(c.t,{children:(0,t.jsxs)("div",{className:b.default.wrapper,children:[(0,t.jsx)(l.f,{className:b.default.title,as:"h2",children:x("sc-moneybox.landings.howtoearn.conditions.title")}),(0,t.jsxs)(c.N,{className:b.default.contentCard,children:[(0,t.jsxs)("div",{className:b.default.left,children:[(0,t.jsxs)("div",{className:b.default.conditionsInfo,children:[(0,t.jsx)(l.f,{className:b.default.conditionsTitle,as:"h3",children:x("sc-moneybox.landings.howtoearn.conditions.card-title")}),(0,t.jsx)("div",{className:b.default.conditionsList,children:S.map(e=>(0,t.jsx)(f,{...e},e.title))}),(0,t.jsx)(d.L,{className:b.default.conditionsRulesLinkDesktop,href:C,target:"_blank",children:N})]}),(0,t.jsx)("div",{className:(0,p.f)(b.default.promoActions,b.default.promoActionsDesktop),children:(0,t.jsx)(y,{ctaLabel:n,promoCode:a,isPromoCodeCopied:h,animationNonce:_,buttonAdditionalProps:k,onCopyPromoCodeClick:L,onCtaClick:E})})]}),(0,t.jsx)("div",{className:b.default.right,children:(0,t.jsx)("div",{className:b.default.stepsList,children:T.map((e,o)=>(0,t.jsx)(w,{step:o+1,...e},e.title))})}),(0,t.jsx)(d.L,{className:b.default.conditionsRulesLinkMobile,href:C,target:"_blank",children:N}),(0,t.jsx)("div",{className:(0,p.f)(b.default.promoActions,b.default.promoActionsMobile),children:(0,t.jsx)(y,{ctaLabel:n,promoCode:a,isPromoCodeCopied:h,animationNonce:_,buttonAdditionalProps:k,onCopyPromoCodeClick:L,onCtaClick:E})})]})]})})})}var _=e.i(42950),v=e.i(54506);function q({ctaHref:e,ctaLabel:o,promoCode:n,eventCategory:a,isEsiaEntryPointEnabled:i,onCtaButtonClick:r}){let p=(0,s.f)(),m=`${_.f}/howtoearn/hero`;return(0,t.jsx)("section",{children:(0,t.jsx)(c.t,{children:(0,t.jsxs)("article",{className:v.default.wrapper,children:[(0,t.jsxs)("picture",{children:[(0,t.jsx)("source",{media:"(min-width: 1024px)",type:"image/avif",srcSet:`${m}/l-1x.avif 1x, ${m}/l-2x.avif 2x`}),(0,t.jsx)("source",{media:"(min-width: 1024px)",type:"image/webp",srcSet:`${m}/l-1x.webp 1x, ${m}/l-2x.webp 2x`}),(0,t.jsx)("source",{media:"(min-width: 1024px)",srcSet:`${m}/l-1x.jpg 1x, ${m}/l-2x.jpg 2x`}),(0,t.jsx)("source",{media:"(min-width: 768px)",type:"image/avif",srcSet:`${m}/m-1x.avif 1x, ${m}/m-2x.avif 2x`}),(0,t.jsx)("source",{media:"(min-width: 768px)",type:"image/webp",srcSet:`${m}/m-1x.webp 1x, ${m}/m-2x.webp 2x`}),(0,t.jsx)("source",{media:"(min-width: 768px)",srcSet:`${m}/m-1x.jpg 1x, ${m}/m-2x.jpg 2x`}),(0,t.jsx)("source",{media:"(min-width: 600px)",type:"image/avif",srcSet:`${m}/s-1x.avif 1x, ${m}/s-2x.avif 2x`}),(0,t.jsx)("source",{media:"(min-width: 600px)",type:"image/webp",srcSet:`${m}/s-1x.webp 1x, ${m}/s-2x.webp 2x`}),(0,t.jsx)("source",{media:"(min-width: 600px)",srcSet:`${m}/s-1x.jpg 1x, ${m}/s-2x.jpg 2x`}),(0,t.jsx)("source",{media:"(min-width: 376px)",type:"image/avif",srcSet:`${m}/xs-1x.avif 1x, ${m}/xs-2x.avif 2x`}),(0,t.jsx)("source",{media:"(min-width: 376px)",type:"image/webp",srcSet:`${m}/xs-1x.webp 1x, ${m}/xs-2x.webp 2x`}),(0,t.jsx)("source",{media:"(min-width: 376px)",srcSet:`${m}/xs-1x.jpg 1x, ${m}/xs-2x.jpg 2x`}),(0,t.jsx)("source",{type:"image/avif",srcSet:`${m}/xxs-1x.avif 1x, ${m}/xxs-2x.avif 2x`}),(0,t.jsx)("source",{type:"image/webp",srcSet:`${m}/xxs-1x.webp 1x, ${m}/xxs-2x.webp 2x`}),(0,t.jsx)("img",{className:v.default.heroImage,src:`${m}/xxs-1x.jpg`,srcSet:`${m}/xxs-1x.jpg 1x, ${m}/xxs-2x.jpg 2x`,alt:""})]}),(0,t.jsxs)("div",{className:v.default.content,children:[(0,t.jsxs)("div",{className:v.default.topContent,children:[(0,t.jsx)(l.f,{className:v.default.title,as:"h1",children:p("sc-moneybox.landings.howtoearn.hero.title",{promoCode:n})}),(0,t.jsxs)("div",{className:v.default.badges,children:[(0,t.jsx)("span",{className:v.default.badge,children:p("sc-moneybox.landings.howtoearn.hero.badge.yield")}),(0,t.jsx)("span",{className:v.default.badge,children:p("sc-moneybox.landings.howtoearn.hero.badge.bonus")})]})]}),(0,t.jsxs)("div",{className:v.default.actions,children:[(0,t.jsx)(d.K,{className:v.default.button,label:o,size:"xs-s l-m",stretch:!0,...i?{}:{as:"a",href:e,target:"_blank"},onClick:function(){r(),(0,u.f)(a,"click_banner_otkryt_finpodushku")}}),(0,t.jsx)(l.f,{className:v.default.disclaimer,as:"p",children:p("sc-moneybox.landings.howtoearn.hero.disclaimer")})]})]})]})})})}var N=e.i(8765);function C({answer:e,index:o,isOpen:s,question:n,onToggle:a}){let i=`how-to-earn-faq-answer-${o}`;return(0,t.jsxs)(c.N,{className:N.default.card,children:[(0,t.jsxs)("button",{type:"button",className:N.default.toggle,"aria-expanded":s,"aria-controls":i,onClick:()=>a(o),children:[(0,t.jsx)("span",{className:N.default.title,children:n}),(0,t.jsx)("span",{className:(0,p.f)(N.default.icon,{[N.default.iconOpen]:s}),children:(0,t.jsx)(x.u,{})})]}),(0,t.jsx)("div",{id:i,className:(0,p.f)(N.default.answerGrid,{[N.default.answerGridOpen]:s}),"aria-hidden":!s,children:(0,t.jsx)("div",{className:N.default.answerInner,children:(0,t.jsx)(l.f,{className:N.default.answer,as:"p",children:e})})})]})}var k=e.i(39722);function S({faq:e}){let[s,n]=(0,o.useState)(0),a=e?.value?.blocks?.[0]??null;function i(e){n(t=>t===e?null:e)}return(0,t.jsx)("section",{children:(0,t.jsx)(c.t,{children:(0,t.jsxs)("div",{className:k.default.wrapper,children:[(0,t.jsx)(l.f,{className:k.default.title,as:"h2",children:a?.title??""}),(0,t.jsx)("div",{className:k.default.list,children:a?.faqs.map((e,o)=>(0,t.jsx)(C,{index:o,isOpen:o===s,onToggle:i,...e},e.question))})]})})})}var T=e.i(51922);e.i(55824);var $=e.i(95837),L=e.i(46073);function E({eventCategory:e}){let n=(0,s.f)(),a=(0,r.f)("NEXT_PUBLIC_S3_ASSETS"),i=n("sc-moneybox.landings.howtoearn.income.disclaimer.link.disclosure"),p=n("sc-moneybox.landings.howtoearn.income.disclaimer.link.rusfar"),m=(0,o.useCallback)(e=>(0,t.jsx)(d.L,{className:L.default.disclaimerLink,href:i,target:"_blank",children:e}),[i]),f=(0,o.useCallback)(e=>(0,t.jsx)(d.L,{className:L.default.disclaimerLink,href:p,target:"_blank",children:e}),[p]),h=[{icon:(0,t.jsx)(x.K,{}),title:n("sc-moneybox.landings.howtoearn.income.items.0.title"),caption:n("sc-moneybox.landings.howtoearn.income.items.0.caption")},{icon:(0,t.jsx)(x.f,{}),title:n("sc-moneybox.landings.howtoearn.income.items.1.title"),caption:n("sc-moneybox.landings.howtoearn.income.items.1.caption")},{icon:(0,t.jsx)(x.s,{}),title:n("sc-moneybox.landings.howtoearn.income.items.2.title"),caption:n("sc-moneybox.landings.howtoearn.income.items.2.caption")}];return(0,t.jsx)("section",{children:(0,t.jsx)(c.t,{children:(0,t.jsxs)("div",{className:L.default.wrapper,children:[(0,t.jsx)(l.f,{className:L.default.title,as:"h2",children:n("sc-moneybox.landings.howtoearn.income.title")}),(0,t.jsxs)("div",{className:L.default.content,children:[(0,t.jsxs)("div",{className:L.default.cards,children:[(0,t.jsxs)(c.N,{className:L.default.companyCard,children:[(0,t.jsxs)("div",{className:L.default.companyHeader,children:[(0,t.jsx)($.f,{className:L.default.logo,src:`${a}/images/logo-brandmark-bank-DOHOD.svg`,size:40,alt:"Логотип УК Доход"}),(0,t.jsxs)("div",{children:[(0,t.jsx)(l.f,{className:L.default.companyName,as:"h3",children:n("sc-moneybox.landings.howtoearn.income.company.name")}),(0,t.jsx)(l.f,{className:L.default.companyDescription,as:"p",children:n("sc-moneybox.landings.howtoearn.income.company.description")})]})]}),(0,t.jsxs)("div",{className:L.default.links,children:[(0,t.jsx)(d.L,{className:L.default.link,href:n("sc-moneybox.landings.howtoearn.income.company.rules.href"),target:"_blank",onClick:()=>(0,u.f)(e,"click_pravila-fonda"),children:n("sc-moneybox.landings.howtoearn.income.company.rules.text")}),(0,t.jsx)(d.L,{className:L.default.link,href:n("sc-moneybox.landings.howtoearn.income.company.kid.href"),target:"_blank",onClick:()=>(0,u.f)(e,"click_kid"),children:n("sc-moneybox.landings.howtoearn.income.company.kid.text")})]})]}),h.map(e=>(0,t.jsxs)(c.N,{className:L.default.featureCard,children:[(0,t.jsx)("div",{className:L.default.icon,children:e.icon}),(0,t.jsxs)("div",{className:L.default.featureContent,children:[(0,t.jsx)(l.f,{className:L.default.featureTitle,as:"h3",children:e.title}),(0,t.jsx)(l.f,{className:L.default.featureCaption,as:"p",children:e.caption})]})]},e.title))]}),(0,t.jsxs)("div",{className:L.default.disclaimer,children:[(0,t.jsx)(T.f,{className:L.default.disclaimerText,size:"s",children:n.rich("sc-moneybox.landings.howtoearn.income.disclaimer.text.main",{disclosure:m,rusfar:f})}),(0,t.jsx)(T.f,{className:L.default.disclaimerText,size:"s",children:n("sc-moneybox.landings.howtoearn.income.disclaimer.text.risks")})]})]})]})})})}let P=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,A=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,O=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function R(e,t){var o;return"__proto__"===e||"constructor"===e&&t&&"object"==typeof t&&"prototype"in t?void(o=e,console.warn(`[destr] Dropping "${o}" key to prevent prototype pollution.`)):t}function W(e,t={}){if("string"!=typeof e)return e;if('"'===e[0]&&'"'===e[e.length-1]&&-1===e.indexOf("\\"))return e.slice(1,-1);let o=e.trim();if(o.length<=9)switch(o.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return 0/0;case"infinity":return 1/0;case"-infinity":return -1/0}if(!O.test(e)){if(t.strict)throw SyntaxError("[destr] Invalid JSON");return e}try{if(P.test(e)||A.test(e)){if(t.strict)throw Error("[destr] Possible prototype pollution");return JSON.parse(e,R)}return JSON.parse(e)}catch(o){if(t.strict)throw o;return e}}let I=/#/g,U=/&/g,M=/\//g,D=/=/g,F=/\+/g,G=/%5e/gi,H=/%60/gi,B=/%7c/gi,Q=/%20/gi;function z(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(B,"|").replace(F,"%2B").replace(Q,"+").replace(I,"%23").replace(U,"%26").replace(H,"`").replace(G,"^").replace(M,"%2F")}function J(e){return z(e).replace(D,"%3D")}function V(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let K=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Y=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,X=/^([/\\]\s*){2,}[^/\\]/,Z=/\/$|\/\?|\/#/,ee=/^\.?\//;function et(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?K.test(e):Y.test(e)||!!t.acceptRelative&&X.test(e)}let eo=Symbol.for("ufo:protocolRelative");function es(e=""){let[t="",o="",s=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:o,hash:s}}class en extends Error{constructor(e,t){super(e,t),this.name="FetchError",t?.cause&&!this.cause&&(this.cause=t.cause)}}let ea=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function ei(e="GET"){return ea.has(e.toUpperCase())}let er=new Set(["image/svg","application/xml","application/xhtml","application/html"]),ec=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;async function el(e,t){if(t)if(Array.isArray(t))for(let o of t)await o(e);else await t(e)}let ed=new Set([408,409,425,429,500,502,503,504]),ep=new Set([101,204,205,304]),eu="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:e.g;(function e(t={}){let{fetch:o=globalThis.fetch,Headers:s=globalThis.Headers,AbortController:n=globalThis.AbortController}=t;async function a(e){let t=e.error&&"AbortError"===e.error.name&&!e.options.timeout||!1;if(!1!==e.options.retry&&!t){let t;t="number"==typeof e.options.retry?e.options.retry:+!ei(e.options.method);let o=e.response&&e.response.status||500;if(t>0&&(Array.isArray(e.options.retryStatusCodes)?e.options.retryStatusCodes.includes(o):ed.has(o))){let o="function"==typeof e.options.retryDelay?e.options.retryDelay(e):e.options.retryDelay||0;return o>0&&await new Promise(e=>setTimeout(e,o)),i(e.request,{...e.options,retry:t-1})}}let o=function(e){let t=e.error?.message||e.error?.toString()||"",o=e.request?.method||e.options?.method||"GET",s=e.request?.url||String(e.request)||"/",n=`[${o}] ${JSON.stringify(s)}`,a=e.response?`${e.response.status} ${e.response.statusText}`:"<no response>",i=new en(`${n}: ${a}${t?` ${t}`:""}`,e.error?{cause:e.error}:void 0);for(let t of["request","options","response"])Object.defineProperty(i,t,{get:()=>e[t]});for(let[t,o]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(i,t,{get:()=>e.response&&e.response[o]});return i}(e);throw Error.captureStackTrace&&Error.captureStackTrace(o,i),o}let i=async function(e,i={}){var r,c,l,d;let p,u,m,f={request:e,options:(r=t.defaults,m=function(e,t,o){if(!t)return new o(e);let s=new o(t);if(e)for(let[t,n]of Symbol.iterator in e||Array.isArray(e)?e:new o(e))s.set(t,n);return s}(i?.headers??e?.headers,r?.headers,s),(r?.query||r?.params||i?.params||i?.query)&&(u={...r?.params,...r?.query,...i?.params,...i?.query}),{...r,...i,query:u,params:u,headers:m}),response:void 0,error:void 0};if(f.options.method&&(f.options.method=f.options.method.toUpperCase()),f.options.onRequest&&(await el(f,f.options.onRequest),f.options.headers instanceof s||(f.options.headers=new s(f.options.headers||{}))),"string"==typeof f.request){if(f.options.baseURL&&(f.request=function(e,t){var o;if(!(o=t)||"/"===o||et(e))return e;let s=function(e=""){return(!function(e=""){return e.endsWith("/")}(e)?e:e.slice(0,-1))||"/"}(t);if(e.startsWith(s)){let t=e[s.length];if(!t||"/"===t||"?"===t)return e}return function(e,...t){let o=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(o){let t=e.replace(ee,"");o=function(e=""){return e.endsWith("/")?e:e+"/"}(o)+t}else o=e;return o}(s,e)}(f.request,f.options.baseURL)),f.options.query){let e,t,o,s,n,a,i;c=f.request,l=f.options.query,t={...function(e=""){let t=Object.create(null);for(let o of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=o.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let s=V(e[1].replace(F," "));if("__proto__"===s||"constructor"===s)continue;let n=V((e[2]||"").replace(F," "));void 0===t[s]?t[s]=n:Array.isArray(t[s])?t[s].push(n):t[s]=[t[s],n]}return t}((e=function e(t="",o){let s=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(s){let[,e,t=""]=s;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!et(t,{acceptRelative:!0}))return o?e(o+t):es(t);let[,n="",a,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,r="",c=""]=i.match(/([^#/?]*)(.*)?/)||[];"file:"===n&&(c=c.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:l,search:d,hash:p}=es(c);return{protocol:n.toLowerCase(),auth:a?a.slice(0,Math.max(0,a.length-1)):"",host:r,pathname:l,search:d,hash:p,[eo]:!n}}(c)).search),...l},e.search=Object.keys(t).filter(e=>void 0!==t[e]).map(e=>{var o;return(("number"==typeof(o=t[e])||"boolean"==typeof o)&&(o=String(o)),o)?Array.isArray(o)?o.map(t=>`${J(e)}=${z(t)}`).join("&"):`${J(e)}=${z(o)}`:J(e)}).filter(Boolean).join("&"),o=(d=e).pathname||"",s=d.search?(d.search.startsWith("?")?"":"?")+d.search:"",n=d.hash||"",a=d.auth?d.auth+"@":"",i=d.host||"",f.request=(d.protocol||d[eo]?(d.protocol||"")+"//":"")+a+i+o+s+n,delete f.options.query}"query"in f.options&&delete f.options.query,"params"in f.options&&delete f.options.params}if(f.options.body&&ei(f.options.method))if(function(e){if(void 0===e)return!1;let t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===t||"object"===t&&(!!Array.isArray(e)||!(e.buffer||e instanceof FormData||e instanceof URLSearchParams)&&(e.constructor&&"Object"===e.constructor.name||"function"==typeof e.toJSON))}(f.options.body)){let e=f.options.headers.get("content-type");"string"!=typeof f.options.body&&(f.options.body="application/x-www-form-urlencoded"===e?new URLSearchParams(f.options.body).toString():JSON.stringify(f.options.body)),e||f.options.headers.set("content-type","application/json"),f.options.headers.has("accept")||f.options.headers.set("accept","application/json")}else("pipeTo"in f.options.body&&"function"==typeof f.options.body.pipeTo||"function"==typeof f.options.body.pipe)&&!("duplex"in f.options)&&(f.options.duplex="half");if(!f.options.signal&&f.options.timeout){let e=new n;p=setTimeout(()=>{let t=Error("[TimeoutError]: The operation was aborted due to timeout");t.name="TimeoutError",t.code=23,e.abort(t)},f.options.timeout),f.options.signal=e.signal}try{f.response=await o(f.request,f.options)}catch(e){return f.error=e,f.options.onRequestError&&await el(f,f.options.onRequestError),await a(f)}finally{p&&clearTimeout(p)}if((f.response.body||f.response._bodyInit)&&!ep.has(f.response.status)&&"HEAD"!==f.options.method){let e=(f.options.parseResponse?"json":f.options.responseType)||function(e=""){if(!e)return"json";let t=e.split(";").shift()||"";return ec.test(t)?"json":"text/event-stream"===t?"stream":er.has(t)||t.startsWith("text/")?"text":"blob"}(f.response.headers.get("content-type")||"");switch(e){case"json":{let e=await f.response.text(),t=f.options.parseResponse||W;f.response._data=t(e);break}case"stream":f.response._data=f.response.body||f.response._bodyInit;break;default:f.response._data=await f.response[e]()}}return(f.options.onResponse&&await el(f,f.options.onResponse),!f.options.ignoreResponseError&&f.response.status>=400&&f.response.status<600)?(f.options.onResponseError&&await el(f,f.options.onResponseError),await a(f)):f.response},r=async function(e,t){return(await i(e,t))._data};return r.raw=i,r.native=(...e)=>o(...e),r.create=(o={},s={})=>e({...t,...s,defaults:{...t.defaults,...s.defaults,...o}}),r})({fetch:eu.fetch?(...e)=>eu.fetch(...e):()=>Promise.reject(Error("[ofetch] global.fetch is not supported!")),Headers:eu.Headers,AbortController:eu.AbortController}).create({onRequest({options:e}){e.baseURL??=(0,r.f)("NEXT_PUBLIC_MP_SC_INVESTMENT_API_URL")},next:{revalidate:300}});let em="lend_finpodushka";var ef=e.i(54661);e.s(["HowToEarnLanding",0,function({faq:e,promoCode:c,landingSlug:l,aggregatorIds:d}){let p,u=(0,s.f)(),[m,f]=(0,o.useState)(!1),x=u("sc-moneybox.landings.howtoearn.cta.href"),h=u("sc-moneybox.landings.howtoearn.cta.label"),y=(p=l?.trim().toLowerCase())?`${em}_${p}`:em,g="true"===(0,r.f)("NEXT_PUBLIC_FEATURE_TOGGLE_LOGIN_WIDGET_ENABLED");function w(){g&&f(!0)}return(0,i.f)(d),(0,t.jsxs)("div",{className:ef.default.wrapper,children:[(0,t.jsx)(a.f,{}),(0,t.jsx)(q,{ctaHref:x,ctaLabel:h,promoCode:c,eventCategory:y,isEsiaEntryPointEnabled:g,onCtaButtonClick:w}),(0,t.jsx)(j,{ctaHref:x,ctaLabel:h,promoCode:c,eventCategory:y,isEsiaEntryPointEnabled:g,onCtaButtonClick:w}),(0,t.jsx)(E,{eventCategory:y}),(0,t.jsx)(S,{faq:e}),(0,t.jsx)(n.f,{open:m,onClose:()=>f(!1)})]})}],841)},46073,e=>{e.v({cards:"p5Pgtq_cards",companyCard:"p5Pgtq_companyCard",companyDescription:"p5Pgtq_companyDescription",companyHeader:"p5Pgtq_companyHeader",companyName:"p5Pgtq_companyName",content:"p5Pgtq_content",disclaimer:"p5Pgtq_disclaimer",disclaimerLink:"p5Pgtq_disclaimerLink",disclaimerText:"p5Pgtq_disclaimerText",featureCaption:"p5Pgtq_featureCaption",featureCard:"p5Pgtq_featureCard",featureContent:"p5Pgtq_featureContent",featureTitle:"p5Pgtq_featureTitle",icon:"p5Pgtq_icon",link:"p5Pgtq_link",links:"p5Pgtq_links",logo:"p5Pgtq_logo",title:"p5Pgtq_title",wrapper:"p5Pgtq_wrapper"})}]);