const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/LandingLastSection-vUnT9unE.js","assets/index-BYGNgc5Y.js","assets/vendor-animations-CsoOZIH8.js","assets/index-Dmjhwmwn.css","assets/TextButton-CSBuPWYl.js","assets/TextButton-Bm92TddQ.css","assets/LandingLastSection-BEhq_ja4.css","assets/CommissionSection-DWBNepe8.js","assets/ArticleWrapper-CMqdsDjQ.js","assets/ArticleWrapper-DNp5ipkv.css","assets/CommissionSection-BHwISnab.css","assets/WidgetsSection-WOpY4oOl.js","assets/SectionText-s253Pkan.js","assets/SectionText-QnK1W8_D.css","assets/WidgetsSection-z0zw9lYV.css","assets/SuperDonatesSection-C6QKa9vC.js","assets/SuperDonatesSection-DW4nAKEO.css","assets/ChatActivityAndWonderWidgetSection-ByfSVO7G.js","assets/ChatActivityAndWonderWidgetSection-CieGY3t9.css","assets/WallSection-DyiqRcDb.js","assets/WallSection-BMBMPZ84.css","assets/ImportSettingsSection-CX1oRpdz.js","assets/ImportSettingsSection-B4gdKn03.css","assets/PartnerSection-B2VW2kUQ.js","assets/PartnerSection-AH42DqrJ.css","assets/Streamers-CaZ52IMl.js","assets/Streamers-B3vzH4ZZ.css","assets/Founders-BMb3nYYM.js","assets/Founders-H391mhkh.css"])))=>i.map(i=>d[i]);
import{j as e,M as v,B as u,L as j,S as L,T as l,F as N,c as g,w as A,A as o,_ as r,H as y,a as f,o as b,b as $,N as p}from"./index-BYGNgc5Y.js";import{r as c,a as i}from"./vendor-animations-CsoOZIH8.js";import{T as m}from"./TextButton-CSBuPWYl.js";const a="sidebar";class C extends c.Component{render(){const{t}=this.props;return this.props.locale,e.jsx(v,{open:this.props.isOpen,onClose:this.props.onClose,classNames:{modal:a,overlay:`${a}__overlay`,modalAnimationIn:"customSidebarAnimationIn",modalAnimationOut:"customSidebarAnimationOut"},children:e.jsxs("aside",{className:`${a}__content`,children:[e.jsx(u,{size:"s",theme:"secondary",icon:"close",onClick:this.props.onClose}),e.jsx(j,{isAnimated:!0}),e.jsx("div",{className:`${a}__nav`,children:this.props.children}),e.jsx("div",{className:`${a}__setting`,children:e.jsx(m,{icon:"login",title:t("landing:nav:login"),navLink:"auth",iconColor:"white"})}),e.jsxs("div",{className:`${a}__footer`,children:[e.jsx(L,{}),e.jsxs(l,{size:"m",color:"secondary",children:["© 2023 — ",new Date().getFullYear()," ihaqdonate.com"]}),e.jsx(N,{})]})]})})}}const E="section-title",w=`${E}_type_`,x=s=>{const t=w+(s.type??"h3");return e.jsxs("div",{className:g(E,t),children:[c.createElement(s.type??"h3",{},s.children),s.variant==="outlined"&&c.createElement("span",{},s.children)]})},D="section-wrapper",O=s=>{const t=g(D,{[`${s.className}`]:s.className});return e.jsx("section",{className:t,children:s.children?s.children:null})},S="landing-start-section",T=s=>e.jsxs(O,{className:S,children:[e.jsx(x,{type:"h1",variant:"outlined",children:s.t("landing:startSection:title")}),e.jsx(l,{size:"l",color:"white",isMarginDisabled:!0,className:`${S}__info`,children:s.t("landing:startSection:text")}),e.jsx(o,{type:"lightningWhiteDraw"}),e.jsx(o,{type:"speakerDraw"}),e.jsx(o,{type:"likeDraw"}),e.jsx(o,{type:"streamerImage"})]}),P=A()(T),M=i.lazy(()=>r(()=>import("./LandingLastSection-vUnT9unE.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),z=i.lazy(()=>r(()=>import("./CommissionSection-DWBNepe8.js"),__vite__mapDeps([7,1,2,3,8,9,4,5,10]))),R=i.lazy(()=>r(()=>import("./WidgetsSection-WOpY4oOl.js"),__vite__mapDeps([11,1,2,3,12,13,8,9,4,5,14]))),I=i.lazy(()=>r(()=>import("./SuperDonatesSection-C6QKa9vC.js"),__vite__mapDeps([15,1,2,3,12,13,8,9,4,5,16]))),V=i.lazy(()=>r(()=>import("./ChatActivityAndWonderWidgetSection-ByfSVO7G.js"),__vite__mapDeps([17,1,2,3,12,13,8,9,4,5,18]))),H=i.lazy(()=>r(()=>import("./WallSection-DyiqRcDb.js"),__vite__mapDeps([19,1,2,3,4,5,20]))),B=i.lazy(()=>r(()=>import("./ImportSettingsSection-CX1oRpdz.js"),__vite__mapDeps([21,1,2,3,8,9,4,5,22]))),F=i.lazy(()=>r(()=>import("./PartnerSection-B2VW2kUQ.js"),__vite__mapDeps([23,1,2,3,4,5,24]))),k=i.lazy(()=>r(()=>import("./Streamers-CaZ52IMl.js"),__vite__mapDeps([25,1,2,3,26]))),W=i.lazy(()=>r(()=>import("./Founders-BMb3nYYM.js"),__vite__mapDeps([27,1,2,3,28]))),n="landing",Y=`${n}__content`,q=`${n}_animation_header-in`,Q=`${n}_animation_header-out`,h=`${n}__wrapper`,U=50;class G extends c.Component{constructor(){super(...arguments),this.state={currentLocale:"ru",isSidebarVisible:!1,scrollY:0,headerAnimation:""},this.handleScroll=()=>{this.setState(t=>{const d=window.scrollY||window.pageYOffset;let _=t.headerAnimation;return d>U&&d>t.scrollY&&(_=Q),d<t.scrollY&&(_=q),{scrollY:d,headerAnimation:_}})},this.onLocaleChange=t=>{this.setState({currentLocale:t}),this.onSidebarClose()},this.onSidebarOpen=()=>{this.setState({isSidebarVisible:!0})},this.onSidebarClose=()=>{this.setState({isSidebarVisible:!1})}}componentDidMount(){window.addEventListener("scroll",this.handleScroll)}componentWillUnmount(){window.removeEventListener("scroll",this.handleScroll)}render(){return e.jsxs("div",{className:n,children:[e.jsxs(y,{children:[e.jsx("title",{children:"iHAQDonate — Платформа Ð´Ð»Ñ Ð¿Ñ€Ð¸ÐµÐ¼Ð° донатов и Ñупер-донатов на Ñтримах"}),e.jsx("meta",{name:"description",content:"Ð˜Ð½Ð½Ð¾Ð²Ð°Ñ†Ð¸Ð¾Ð½Ð½Ð°Ñ Ð¿Ð»Ð°Ñ‚Ñ„Ð¾Ñ€Ð¼Ð° Ð´Ð»Ñ Ñтримеров. Подключай виджеты, получай донаты и уникальные Ñупер-донаты от зрителей Ñ Ð²Ñ‹Ð²Ð¾Ð´Ð¾Ð¼ ÑредÑтв. Удобный оверлей Ð´Ð»Ñ OBS."}),e.jsx("meta",{property:"og:title",content:"iHAQDonate — Платформа Ð´Ð»Ñ Ð¿Ñ€Ð¸ÐµÐ¼Ð° донатов и Ñупер-донатов"}),e.jsx("meta",{property:"og:description",content:"Ð˜Ð½Ð½Ð¾Ð²Ð°Ñ†Ð¸Ð¾Ð½Ð½Ð°Ñ Ð¿Ð»Ð°Ñ‚Ñ„Ð¾Ñ€Ð¼Ð° Ð´Ð»Ñ Ñтримеров. Подключай виджеты, получай донаты и уникальные Ñупер-донаты от зрителей Ñ Ð²Ñ‹Ð²Ð¾Ð´Ð¾Ð¼ ÑредÑтв. Удобный оверлей Ð´Ð»Ñ OBS."}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{property:"og:image",content:"https://ihaqdonate.com/design/landing/arts/mainArt.webp"}),e.jsx("meta",{property:"og:url",content:"https://ihaqdonate.com/"})]}),this.renderHeader(),e.jsxs("main",{className:Y,children:[e.jsx(P,{}),e.jsxs(i.Suspense,{fallback:null,children:[this.renderStreamersSection(),e.jsx(z,{}),e.jsx(R,{}),e.jsx(I,{}),e.jsx(V,{}),e.jsx(H,{}),e.jsx(B,{}),e.jsx(F,{}),e.jsx(M,{})]})]}),this.renderFooter(),e.jsx(C,{t:this.props.t,locale:this.state.currentLocale,isOpen:this.state.isSidebarVisible,onClose:this.onSidebarClose,onLocaleChange:this.onLocaleChange})]})}renderHeader(){const{t}=this.props;return e.jsx("header",{className:`${n}__header ${this.state.headerAnimation}`,children:e.jsxs("div",{className:h,children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"32px"},children:[e.jsx(j,{isAnimated:!0}),e.jsx(u,{size:"s",theme:"outline",text:"Стена",href:"/walls"})]}),e.jsxs("div",{className:`${n}__nav`,children:[e.jsx(m,{className:`${n}__login-link`,icon:"login",title:t("landing:nav:login"),navLink:"auth"}),e.jsx(m,{icon:"menu",title:t("landing:nav:menu"),onClick:this.onSidebarOpen})]})]})})}renderStreamersSection(){const{t}=this.props;return e.jsxs("section",{className:`${n}__streamers-section`,children:[e.jsxs("div",{className:`${n}__streamers-section-content ${h}`,children:[e.jsx(x,{type:"h2",variant:"outlined",children:t("landing:streamersSection:title")}),e.jsxs("div",{className:`${n}__streamers-info`,children:[e.jsx(l,{size:"l",color:"white",isMarginDisabled:!0,children:t("landing:streamersSection:info")}),e.jsx(o,{type:"liveDraw"})]})]}),e.jsx(k,{})]})}renderFoundersSection(){const{t}=this.props;return e.jsxs(e.Fragment,{children:[e.jsxs("section",{id:"founders",className:`${n}__founders-section ${h}`,children:[e.jsx(x,{type:"h2",variant:"outlined",children:t("landing:foundersSection:title")}),e.jsxs("div",{className:`${n}__founders-info`,children:[e.jsx(l,{size:"l",color:"white",isMarginDisabled:!0,children:t("landing:foundersSection:info1")}),e.jsx(l,{size:"l",color:"white",isMarginDisabled:!0,children:t("landing:foundersSection:info2")})]}),e.jsx(o,{type:"phraseDraw"}),e.jsx(o,{type:"rebelEarsPers"})]}),e.jsx(W,{t})]})}renderFooter(){return e.jsx(f,{className:`${n}__footer`})}}const J=A()(G),K=b(()=>{const{store:s}=c.useContext($),t=s.isAuth&&s.profile.id;return s.profile.isLoading&&!s.profile.id?e.jsx(e.Fragment,{}):t&&s.profile.isStreamer?e.jsx(p,{to:"/streamer-dashboard",replace:!0}):t&&!s.profile.isStreamer?e.jsx(p,{to:"/viewer-dashboard",replace:!0}):e.jsx(J,{})}),te=Object.freeze(Object.defineProperty({__proto__:null,HomePage:K},Symbol.toStringTag,{value:"Module"}));export{te as H,O as S,x as a};