diff --git a/assets/guide1-CbF3yBA4.png b/assets/guide1-CbF3yBA4.png new file mode 100644 index 0000000..c71b1e5 Binary files /dev/null and b/assets/guide1-CbF3yBA4.png differ diff --git a/assets/guide2-eC1QJ6PE.png b/assets/guide2-eC1QJ6PE.png new file mode 100644 index 0000000..3eaaef0 Binary files /dev/null and b/assets/guide2-eC1QJ6PE.png differ diff --git a/assets/index-rCSRAzjD.js b/assets/index-BtCTkSie.js similarity index 99% rename from assets/index-rCSRAzjD.js rename to assets/index-BtCTkSie.js index 45fb79c..3f02fc3 100644 --- a/assets/index-rCSRAzjD.js +++ b/assets/index-BtCTkSie.js @@ -248,13 +248,13 @@ padding-bottom: 28px; &:active { color: var(--navy-blue-1); } -`;function p6(){return b.jsxs(s6,{children:[b.jsxs(l6,{children:[b.jsx(a6,{children:"Наш сервис умеет"}),b.jsxs(u6,{children:[b.jsx("li",{children:b.jsx(fa,{card:{name:"Хранить подписки в одном месте",icon:t6}})}),b.jsx("li",{children:b.jsx(fa,{card:{name:"Получать кэшбэк за каждую оплату",icon:n6}})}),b.jsx("li",{children:b.jsx(fa,{card:{name:"Управлять подписками в одном экране",icon:r6}})})]}),b.jsxs(c6,{children:[b.jsx(Ev,{children:b.jsx("img",{src:o6,alt:""})}),b.jsx(Ev,{children:b.jsx("img",{src:i6,alt:""})})]})]}),b.jsxs(d6,{children:[b.jsx(Ys,{component:Et,to:"/guide",variant:"contained",children:"Подробнее"}),b.jsx(f6,{to:"/",children:"Перейти на главный экран"})]})]})}function h6(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(o=>{if(!n[o]&&n.auto===!0){let i=Hn(e.el,`.${r[o]}`)[0];i||(i=Xa("div",r[o]),i.className=r[o],e.el.append(i)),n[o]=i,t[o]=i}}),n}function es(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function m6(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const i="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:f=>f,formatFractionTotal:f=>f,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),t.pagination={el:null,bullets:[]};let s,l=0;function a(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function u(f,h){const{bulletActiveClass:m}=t.params.pagination;f&&(f=f[`${h==="prev"?"previous":"next"}ElementSibling`],f&&(f.classList.add(`${m}-${h}`),f=f[`${h==="prev"?"previous":"next"}ElementSibling`],f&&f.classList.add(`${m}-${h}-${h}`)))}function c(f){const h=f.target.closest(es(t.params.pagination.bulletClass));if(!h)return;f.preventDefault();const m=Qa(h)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===m)return;t.slideToLoop(m)}else t.slideTo(m)}function d(){const f=t.rtl,h=t.params.pagination;if(a())return;let m=t.pagination.el;m=Zn(m);let x,C;const E=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,k=t.params.loop?Math.ceil(E/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(C=t.previousRealIndex||0,x=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(x=t.snapIndex,C=t.previousSnapIndex):(C=t.previousIndex||0,x=t.activeIndex||0),h.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const T=t.pagination.bullets;let $,R,M;if(h.dynamicBullets&&(s=jf(T[0],t.isHorizontal()?"width":"height",!0),m.forEach(O=>{O.style[t.isHorizontal()?"width":"height"]=`${s*(h.dynamicMainBullets+4)}px`}),h.dynamicMainBullets>1&&C!==void 0&&(l+=x-(C||0),l>h.dynamicMainBullets-1?l=h.dynamicMainBullets-1:l<0&&(l=0)),$=Math.max(x-l,0),R=$+(Math.min(T.length,h.dynamicMainBullets)-1),M=(R+$)/2),T.forEach(O=>{const I=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(N=>`${h.bulletActiveClass}${N}`)].map(N=>typeof N=="string"&&N.includes(" ")?N.split(" "):N).flat();O.classList.remove(...I)}),m.length>1)T.forEach(O=>{const I=Qa(O);I===x?O.classList.add(...h.bulletActiveClass.split(" ")):t.isElement&&O.setAttribute("part","bullet"),h.dynamicBullets&&(I>=$&&I<=R&&O.classList.add(...`${h.bulletActiveClass}-main`.split(" ")),I===$&&u(O,"prev"),I===R&&u(O,"next"))});else{const O=T[x];if(O&&O.classList.add(...h.bulletActiveClass.split(" ")),t.isElement&&T.forEach((I,N)=>{I.setAttribute("part",N===x?"bullet-active":"bullet")}),h.dynamicBullets){const I=T[$],N=T[R];for(let j=$;j<=R;j+=1)T[j]&&T[j].classList.add(...`${h.bulletActiveClass}-main`.split(" "));u(I,"prev"),u(N,"next")}}if(h.dynamicBullets){const O=Math.min(T.length,h.dynamicMainBullets+4),I=(s*O-s)/2-M*s,N=f?"right":"left";T.forEach(j=>{j.style[t.isHorizontal()?N:"top"]=`${I}px`})}}m.forEach((T,$)=>{if(h.type==="fraction"&&(T.querySelectorAll(es(h.currentClass)).forEach(R=>{R.textContent=h.formatFractionCurrent(x+1)}),T.querySelectorAll(es(h.totalClass)).forEach(R=>{R.textContent=h.formatFractionTotal(k)})),h.type==="progressbar"){let R;h.progressbarOpposite?R=t.isHorizontal()?"vertical":"horizontal":R=t.isHorizontal()?"horizontal":"vertical";const M=(x+1)/k;let O=1,I=1;R==="horizontal"?O=M:I=M,T.querySelectorAll(es(h.progressbarFillClass)).forEach(N=>{N.style.transform=`translate3d(0,0,0) scaleX(${O}) scaleY(${I})`,N.style.transitionDuration=`${t.params.speed}ms`})}h.type==="custom"&&h.renderCustom?(T.innerHTML=h.renderCustom(t,x+1,k),$===0&&o("paginationRender",T)):($===0&&o("paginationRender",T),o("paginationUpdate",T)),t.params.watchOverflow&&t.enabled&&T.classList[t.isLocked?"add":"remove"](h.lockClass)})}function p(){const f=t.params.pagination;if(a())return;const h=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let m=t.pagination.el;m=Zn(m);let x="";if(f.type==="bullets"){let C=t.params.loop?Math.ceil(h/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&C>h&&(C=h);for(let E=0;E`}f.type==="fraction"&&(f.renderFraction?x=f.renderFraction.call(t,f.currentClass,f.totalClass):x=` / `),f.type==="progressbar"&&(f.renderProgressbar?x=f.renderProgressbar.call(t,f.progressbarFillClass):x=``),t.pagination.bullets=[],m.forEach(C=>{f.type!=="custom"&&(C.innerHTML=x||""),f.type==="bullets"&&t.pagination.bullets.push(...C.querySelectorAll(es(f.bulletClass)))}),f.type!=="custom"&&o("paginationRender",m[0])}function v(){t.params.pagination=h6(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const f=t.params.pagination;if(!f.el)return;let h;typeof f.el=="string"&&t.isElement&&(h=t.el.querySelector(f.el)),!h&&typeof f.el=="string"&&(h=[...document.querySelectorAll(f.el)]),h||(h=f.el),!(!h||h.length===0)&&(t.params.uniqueNavElements&&typeof f.el=="string"&&Array.isArray(h)&&h.length>1&&(h=[...t.el.querySelectorAll(f.el)],h.length>1&&(h=h.filter(m=>l2(m,".swiper")[0]===t.el)[0])),Array.isArray(h)&&h.length===1&&(h=h[0]),Object.assign(t.pagination,{el:h}),h=Zn(h),h.forEach(m=>{f.type==="bullets"&&f.clickable&&m.classList.add(...(f.clickableClass||"").split(" ")),m.classList.add(f.modifierClass+f.type),m.classList.add(t.isHorizontal()?f.horizontalClass:f.verticalClass),f.type==="bullets"&&f.dynamicBullets&&(m.classList.add(`${f.modifierClass}${f.type}-dynamic`),l=0,f.dynamicMainBullets<1&&(f.dynamicMainBullets=1)),f.type==="progressbar"&&f.progressbarOpposite&&m.classList.add(f.progressbarOppositeClass),f.clickable&&m.addEventListener("click",c),t.enabled||m.classList.add(f.lockClass)}))}function g(){const f=t.params.pagination;if(a())return;let h=t.pagination.el;h&&(h=Zn(h),h.forEach(m=>{m.classList.remove(f.hiddenClass),m.classList.remove(f.modifierClass+f.type),m.classList.remove(t.isHorizontal()?f.horizontalClass:f.verticalClass),f.clickable&&(m.classList.remove(...(f.clickableClass||"").split(" ")),m.removeEventListener("click",c))})),t.pagination.bullets&&t.pagination.bullets.forEach(m=>m.classList.remove(...f.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const f=t.params.pagination;let{el:h}=t.pagination;h=Zn(h),h.forEach(m=>{m.classList.remove(f.horizontalClass,f.verticalClass),m.classList.add(t.isHorizontal()?f.horizontalClass:f.verticalClass)})}),r("init",()=>{t.params.pagination.enabled===!1?S():(v(),p(),d())}),r("activeIndexChange",()=>{typeof t.snapIndex>"u"&&d()}),r("snapIndexChange",()=>{d()}),r("snapGridLengthChange",()=>{p(),d()}),r("destroy",()=>{g()}),r("enable disable",()=>{let{el:f}=t.pagination;f&&(f=Zn(f),f.forEach(h=>h.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),r("lock unlock",()=>{d()}),r("click",(f,h)=>{const m=h.target,x=Zn(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&x&&x.length>0&&!m.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&m===t.navigation.nextEl||t.navigation.prevEl&&m===t.navigation.prevEl))return;const C=x[0].classList.contains(t.params.pagination.hiddenClass);o(C===!0?"paginationShow":"paginationHide"),x.forEach(E=>E.classList.toggle(t.params.pagination.hiddenClass))}});const y=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:f}=t.pagination;f&&(f=Zn(f),f.forEach(h=>h.classList.remove(t.params.pagination.paginationDisabledClass))),v(),p(),d()},S=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:f}=t.pagination;f&&(f=Zn(f),f.forEach(h=>h.classList.add(t.params.pagination.paginationDisabledClass))),g()};Object.assign(t.pagination,{enable:y,disable:S,render:p,update:d,init:v,destroy:g})}const g6=ut.section` +`;function p6(){return b.jsxs(s6,{children:[b.jsxs(l6,{children:[b.jsx(a6,{children:"Наш сервис умеет"}),b.jsxs(u6,{children:[b.jsx("li",{children:b.jsx(fa,{card:{name:"Хранить подписки в одном месте",icon:t6}})}),b.jsx("li",{children:b.jsx(fa,{card:{name:"Получать кэшбэк за каждую оплату",icon:n6}})}),b.jsx("li",{children:b.jsx(fa,{card:{name:"Управлять подписками в одном экране",icon:r6}})})]}),b.jsxs(c6,{children:[b.jsx(Ev,{children:b.jsx("img",{src:o6,alt:""})}),b.jsx(Ev,{children:b.jsx("img",{src:i6,alt:""})})]})]}),b.jsxs(d6,{children:[b.jsx(Ys,{component:Et,to:"/guide",variant:"contained",children:"Подробнее"}),b.jsx(f6,{to:"/",children:"Перейти на главный экран"})]})]})}function h6(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(o=>{if(!n[o]&&n.auto===!0){let i=Hn(e.el,`.${r[o]}`)[0];i||(i=Xa("div",r[o]),i.className=r[o],e.el.append(i)),n[o]=i,t[o]=i}}),n}function es(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function m6(e){let{swiper:t,extendParams:n,on:r,emit:o}=e;const i="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:f=>f,formatFractionTotal:f=>f,bulletClass:`${i}-bullet`,bulletActiveClass:`${i}-bullet-active`,modifierClass:`${i}-`,currentClass:`${i}-current`,totalClass:`${i}-total`,hiddenClass:`${i}-hidden`,progressbarFillClass:`${i}-progressbar-fill`,progressbarOppositeClass:`${i}-progressbar-opposite`,clickableClass:`${i}-clickable`,lockClass:`${i}-lock`,horizontalClass:`${i}-horizontal`,verticalClass:`${i}-vertical`,paginationDisabledClass:`${i}-disabled`}}),t.pagination={el:null,bullets:[]};let s,l=0;function a(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&t.pagination.el.length===0}function u(f,h){const{bulletActiveClass:m}=t.params.pagination;f&&(f=f[`${h==="prev"?"previous":"next"}ElementSibling`],f&&(f.classList.add(`${m}-${h}`),f=f[`${h==="prev"?"previous":"next"}ElementSibling`],f&&f.classList.add(`${m}-${h}-${h}`)))}function c(f){const h=f.target.closest(es(t.params.pagination.bulletClass));if(!h)return;f.preventDefault();const m=Qa(h)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===m)return;t.slideToLoop(m)}else t.slideTo(m)}function d(){const f=t.rtl,h=t.params.pagination;if(a())return;let m=t.pagination.el;m=Zn(m);let x,C;const E=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,k=t.params.loop?Math.ceil(E/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(C=t.previousRealIndex||0,x=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):typeof t.snapIndex<"u"?(x=t.snapIndex,C=t.previousSnapIndex):(C=t.previousIndex||0,x=t.activeIndex||0),h.type==="bullets"&&t.pagination.bullets&&t.pagination.bullets.length>0){const T=t.pagination.bullets;let $,R,M;if(h.dynamicBullets&&(s=jf(T[0],t.isHorizontal()?"width":"height",!0),m.forEach(O=>{O.style[t.isHorizontal()?"width":"height"]=`${s*(h.dynamicMainBullets+4)}px`}),h.dynamicMainBullets>1&&C!==void 0&&(l+=x-(C||0),l>h.dynamicMainBullets-1?l=h.dynamicMainBullets-1:l<0&&(l=0)),$=Math.max(x-l,0),R=$+(Math.min(T.length,h.dynamicMainBullets)-1),M=(R+$)/2),T.forEach(O=>{const I=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(N=>`${h.bulletActiveClass}${N}`)].map(N=>typeof N=="string"&&N.includes(" ")?N.split(" "):N).flat();O.classList.remove(...I)}),m.length>1)T.forEach(O=>{const I=Qa(O);I===x?O.classList.add(...h.bulletActiveClass.split(" ")):t.isElement&&O.setAttribute("part","bullet"),h.dynamicBullets&&(I>=$&&I<=R&&O.classList.add(...`${h.bulletActiveClass}-main`.split(" ")),I===$&&u(O,"prev"),I===R&&u(O,"next"))});else{const O=T[x];if(O&&O.classList.add(...h.bulletActiveClass.split(" ")),t.isElement&&T.forEach((I,N)=>{I.setAttribute("part",N===x?"bullet-active":"bullet")}),h.dynamicBullets){const I=T[$],N=T[R];for(let j=$;j<=R;j+=1)T[j]&&T[j].classList.add(...`${h.bulletActiveClass}-main`.split(" "));u(I,"prev"),u(N,"next")}}if(h.dynamicBullets){const O=Math.min(T.length,h.dynamicMainBullets+4),I=(s*O-s)/2-M*s,N=f?"right":"left";T.forEach(j=>{j.style[t.isHorizontal()?N:"top"]=`${I}px`})}}m.forEach((T,$)=>{if(h.type==="fraction"&&(T.querySelectorAll(es(h.currentClass)).forEach(R=>{R.textContent=h.formatFractionCurrent(x+1)}),T.querySelectorAll(es(h.totalClass)).forEach(R=>{R.textContent=h.formatFractionTotal(k)})),h.type==="progressbar"){let R;h.progressbarOpposite?R=t.isHorizontal()?"vertical":"horizontal":R=t.isHorizontal()?"horizontal":"vertical";const M=(x+1)/k;let O=1,I=1;R==="horizontal"?O=M:I=M,T.querySelectorAll(es(h.progressbarFillClass)).forEach(N=>{N.style.transform=`translate3d(0,0,0) scaleX(${O}) scaleY(${I})`,N.style.transitionDuration=`${t.params.speed}ms`})}h.type==="custom"&&h.renderCustom?(T.innerHTML=h.renderCustom(t,x+1,k),$===0&&o("paginationRender",T)):($===0&&o("paginationRender",T),o("paginationUpdate",T)),t.params.watchOverflow&&t.enabled&&T.classList[t.isLocked?"add":"remove"](h.lockClass)})}function p(){const f=t.params.pagination;if(a())return;const h=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let m=t.pagination.el;m=Zn(m);let x="";if(f.type==="bullets"){let C=t.params.loop?Math.ceil(h/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&C>h&&(C=h);for(let E=0;E`}f.type==="fraction"&&(f.renderFraction?x=f.renderFraction.call(t,f.currentClass,f.totalClass):x=` / `),f.type==="progressbar"&&(f.renderProgressbar?x=f.renderProgressbar.call(t,f.progressbarFillClass):x=``),t.pagination.bullets=[],m.forEach(C=>{f.type!=="custom"&&(C.innerHTML=x||""),f.type==="bullets"&&t.pagination.bullets.push(...C.querySelectorAll(es(f.bulletClass)))}),f.type!=="custom"&&o("paginationRender",m[0])}function v(){t.params.pagination=h6(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const f=t.params.pagination;if(!f.el)return;let h;typeof f.el=="string"&&t.isElement&&(h=t.el.querySelector(f.el)),!h&&typeof f.el=="string"&&(h=[...document.querySelectorAll(f.el)]),h||(h=f.el),!(!h||h.length===0)&&(t.params.uniqueNavElements&&typeof f.el=="string"&&Array.isArray(h)&&h.length>1&&(h=[...t.el.querySelectorAll(f.el)],h.length>1&&(h=h.filter(m=>l2(m,".swiper")[0]===t.el)[0])),Array.isArray(h)&&h.length===1&&(h=h[0]),Object.assign(t.pagination,{el:h}),h=Zn(h),h.forEach(m=>{f.type==="bullets"&&f.clickable&&m.classList.add(...(f.clickableClass||"").split(" ")),m.classList.add(f.modifierClass+f.type),m.classList.add(t.isHorizontal()?f.horizontalClass:f.verticalClass),f.type==="bullets"&&f.dynamicBullets&&(m.classList.add(`${f.modifierClass}${f.type}-dynamic`),l=0,f.dynamicMainBullets<1&&(f.dynamicMainBullets=1)),f.type==="progressbar"&&f.progressbarOpposite&&m.classList.add(f.progressbarOppositeClass),f.clickable&&m.addEventListener("click",c),t.enabled||m.classList.add(f.lockClass)}))}function g(){const f=t.params.pagination;if(a())return;let h=t.pagination.el;h&&(h=Zn(h),h.forEach(m=>{m.classList.remove(f.hiddenClass),m.classList.remove(f.modifierClass+f.type),m.classList.remove(t.isHorizontal()?f.horizontalClass:f.verticalClass),f.clickable&&(m.classList.remove(...(f.clickableClass||"").split(" ")),m.removeEventListener("click",c))})),t.pagination.bullets&&t.pagination.bullets.forEach(m=>m.classList.remove(...f.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const f=t.params.pagination;let{el:h}=t.pagination;h=Zn(h),h.forEach(m=>{m.classList.remove(f.horizontalClass,f.verticalClass),m.classList.add(t.isHorizontal()?f.horizontalClass:f.verticalClass)})}),r("init",()=>{t.params.pagination.enabled===!1?S():(v(),p(),d())}),r("activeIndexChange",()=>{typeof t.snapIndex>"u"&&d()}),r("snapIndexChange",()=>{d()}),r("snapGridLengthChange",()=>{p(),d()}),r("destroy",()=>{g()}),r("enable disable",()=>{let{el:f}=t.pagination;f&&(f=Zn(f),f.forEach(h=>h.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass)))}),r("lock unlock",()=>{d()}),r("click",(f,h)=>{const m=h.target,x=Zn(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&x&&x.length>0&&!m.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&m===t.navigation.nextEl||t.navigation.prevEl&&m===t.navigation.prevEl))return;const C=x[0].classList.contains(t.params.pagination.hiddenClass);o(C===!0?"paginationShow":"paginationHide"),x.forEach(E=>E.classList.toggle(t.params.pagination.hiddenClass))}});const y=()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:f}=t.pagination;f&&(f=Zn(f),f.forEach(h=>h.classList.remove(t.params.pagination.paginationDisabledClass))),v(),p(),d()},S=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:f}=t.pagination;f&&(f=Zn(f),f.forEach(h=>h.classList.add(t.params.pagination.paginationDisabledClass))),g()};Object.assign(t.pagination,{enable:y,disable:S,render:p,update:d,init:v,destroy:g})}const g6="/pay2u_hackathon_frontend/assets/guide1-CbF3yBA4.png",v6="/pay2u_hackathon_frontend/assets/guide2-eC1QJ6PE.png",y6=ut.section` display: flex; flex-direction: column; align-items: center; padding-bottom: 28px; height: calc(100svh - 72px); -`,v6=ut.div` +`,x6=ut.div` flex: 1 0 auto; width: 100%; max-width: 100%; @@ -265,18 +265,18 @@ padding-bottom: 28px; & img { width: 100%; } -`,y6=ut.h1` +`,w6=ut.h1` text-align: left; -`,x6=ut.p` +`,S6=ut.p` text-align: left; color: var(--grey-1); -`,w6=ut.div` +`,b6=ut.div` display: flex; flex-direction: column; align-items: center; width: 100%; align-self: flex-end; -`,S6=ut(Et)` +`,C6=ut(Et)` display: block; margin-top: 20px; width: max-content; @@ -286,4 +286,4 @@ padding-bottom: 28px; &:active { color: var(--navy-blue-1); } -`;function b6(){const[e,t]=w.useState(0),[n,r]=w.useState();return b.jsxs(g6,{children:[b.jsxs(v6,{children:[b.jsxs(wh,{onSwiper:o=>r(o),onRealIndexChange:o=>t(o.activeIndex),pagination:{dynamicBullets:!0},modules:[m6],className:"mySwiper",children:[b.jsx(kv,{children:b.jsx("img",{src:"src\\images\\other_images\\guide1.png",alt:""})}),b.jsx(kv,{children:b.jsx("img",{src:"src\\images\\other_images\\guide2.png",alt:""})})]}),b.jsx(y6,{children:e===0?"Управляйте подписками":"Все в одном месте"}),b.jsx(x6,{children:e===0?"Представлены все ваши подписки, которыми можно управлять":"Можно развернуть меню с календарем, вашими подписками, платежами и FAQ"})]}),b.jsxs(w6,{children:[e===0?b.jsx(Ys,{onClick:()=>n==null?void 0:n.slideNext(),variant:"contained",children:"Далее"}):b.jsx(Ys,{component:Et,to:"/",variant:"contained",children:"Здорово"}),b.jsx(S6,{$visibility:e===0,to:"/",children:"Перейти на главный экран"})]})]})}function C6(){const e=nk(),t=qy();return w.useEffect(()=>{e(RL(V2)),e(XA(eT)),e(ZA(ZP))},[e]),w.useEffect(()=>{localStorage.getItem("isVisited")||(t("/onboarding"),localStorage.setItem("isVisited","true"))},[]),b.jsxs(SE,{children:[b.jsxs(Dt,{path:"/",element:b.jsx(KP,{}),children:[b.jsx(Dt,{index:!0,element:b.jsx(jP,{})}),b.jsx(Dt,{path:"/services/all",element:b.jsx(tT,{})}),b.jsx(Dt,{path:"/services/my-services",element:b.jsx(qA,{})}),b.jsx(Dt,{path:"/services/category/popular",element:b.jsx(Cv,{})}),b.jsx(Dt,{path:"/services/category/:category",element:b.jsx(Cv,{})}),b.jsx(Dt,{path:"/services/:id",element:b.jsx(bN,{})}),b.jsx(Dt,{path:"/purchase",element:b.jsx(EN,{})}),b.jsx(Dt,{path:"/successful-purchase",element:b.jsx(kN,{})}),b.jsx(Dt,{path:"/onboarding",element:b.jsx(p6,{})}),b.jsx(Dt,{path:"/guide",element:b.jsx(b6,{})})]}),b.jsx(Dt,{path:"*",element:b.jsx(qP,{})})]})}const E6=aL({reducer:{availableSubscriptionsReducer:$L,subscriptionsCategoriesReducer:QA,currentUserReducer:e6},middleware:e=>e(),enhancers:e=>e()}),k6=Vx({typography:{fontFamily:"InterVariable, sans-serif"},palette:{primary:{main:"#1D4ED8"}},components:{MuiButton:{defaultProps:{disableRipple:!0},styleOverrides:{root:()=>({paddingBlock:"12px",width:"100%",borderRadius:"8px",boxShadow:"none",fontSize:"16px",fontWeight:400,textTransform:"none","&:active":{boxShadow:"none",backgroundColor:"#1E40AF"},"&:hover":{boxShadow:"none",backgroundColor:"none"}})}},MuiTab:{defaultProps:{disableRipple:!0},styleOverrides:{root:{textTransform:"none",color:"#333333"}}},MuiTabs:{styleOverrides:{flexContainer:{containertype:"inline-size","& button":{width:"33%"},"@media (max-width: 374px)":{"& button":{fontSize:"4.0cqw"}}}}}}});Fd.createRoot(document.getElementById("root")).render(b.jsx(oe.StrictMode,{children:b.jsx(JE,{store:E6,children:b.jsx(TI,{children:b.jsx(w4,{theme:k6,children:b.jsx(RE,{basename:"/pay2u_hackathon_frontend",children:b.jsx(C6,{})})})})})})); +`;function E6(){const[e,t]=w.useState(0),[n,r]=w.useState();return b.jsxs(y6,{children:[b.jsxs(x6,{children:[b.jsxs(wh,{onSwiper:o=>r(o),onRealIndexChange:o=>t(o.activeIndex),pagination:{dynamicBullets:!0},modules:[m6],className:"mySwiper",children:[b.jsx(kv,{children:b.jsx("img",{src:g6,alt:""})}),b.jsx(kv,{children:b.jsx("img",{src:v6,alt:""})})]}),b.jsx(w6,{children:e===0?"Управляйте подписками":"Все в одном месте"}),b.jsx(S6,{children:e===0?"Представлены все ваши подписки, которыми можно управлять":"Можно развернуть меню с календарем, вашими подписками, платежами и FAQ"})]}),b.jsxs(b6,{children:[e===0?b.jsx(Ys,{onClick:()=>n==null?void 0:n.slideNext(),variant:"contained",children:"Далее"}):b.jsx(Ys,{component:Et,to:"/",variant:"contained",children:"Здорово"}),b.jsx(C6,{$visibility:e===0,to:"/",children:"Перейти на главный экран"})]})]})}function k6(){const e=nk(),t=qy();return w.useEffect(()=>{e(RL(V2)),e(XA(eT)),e(ZA(ZP))},[e]),w.useEffect(()=>{localStorage.getItem("isVisited")||(t("/onboarding"),localStorage.setItem("isVisited","true"))},[]),b.jsxs(SE,{children:[b.jsxs(Dt,{path:"/",element:b.jsx(KP,{}),children:[b.jsx(Dt,{index:!0,element:b.jsx(jP,{})}),b.jsx(Dt,{path:"/services/all",element:b.jsx(tT,{})}),b.jsx(Dt,{path:"/services/my-services",element:b.jsx(qA,{})}),b.jsx(Dt,{path:"/services/category/popular",element:b.jsx(Cv,{})}),b.jsx(Dt,{path:"/services/category/:category",element:b.jsx(Cv,{})}),b.jsx(Dt,{path:"/services/:id",element:b.jsx(bN,{})}),b.jsx(Dt,{path:"/purchase",element:b.jsx(EN,{})}),b.jsx(Dt,{path:"/successful-purchase",element:b.jsx(kN,{})}),b.jsx(Dt,{path:"/onboarding",element:b.jsx(p6,{})}),b.jsx(Dt,{path:"/guide",element:b.jsx(E6,{})})]}),b.jsx(Dt,{path:"*",element:b.jsx(qP,{})})]})}const P6=aL({reducer:{availableSubscriptionsReducer:$L,subscriptionsCategoriesReducer:QA,currentUserReducer:e6},middleware:e=>e(),enhancers:e=>e()}),T6=Vx({typography:{fontFamily:"InterVariable, sans-serif"},palette:{primary:{main:"#1D4ED8"}},components:{MuiButton:{defaultProps:{disableRipple:!0},styleOverrides:{root:()=>({paddingBlock:"12px",width:"100%",borderRadius:"8px",boxShadow:"none",fontSize:"16px",fontWeight:400,textTransform:"none","&:active":{boxShadow:"none",backgroundColor:"#1E40AF"},"&:hover":{boxShadow:"none",backgroundColor:"none"}})}},MuiTab:{defaultProps:{disableRipple:!0},styleOverrides:{root:{textTransform:"none",color:"#333333"}}},MuiTabs:{styleOverrides:{flexContainer:{containertype:"inline-size","& button":{width:"33%"},"@media (max-width: 374px)":{"& button":{fontSize:"4.0cqw"}}}}}}});Fd.createRoot(document.getElementById("root")).render(b.jsx(oe.StrictMode,{children:b.jsx(JE,{store:P6,children:b.jsx(TI,{children:b.jsx(w4,{theme:T6,children:b.jsx(RE,{basename:"/pay2u_hackathon_frontend",children:b.jsx(k6,{})})})})})})); diff --git a/index.html b/index.html index b59d357..986424e 100644 --- a/index.html +++ b/index.html @@ -29,7 +29,7 @@ PAY2U - +