@redneckz/wildless-cms-uni-blocks 0.11.0 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +84 -53
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/bundle/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/bundle/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/bundle/components/Calculator/rangeHelpers.d.ts +2 -2
- package/bundle/components/Header/Header.mobile.d.ts +2 -2
- package/bundle/components/Header/HeaderContent.d.ts +13 -1
- package/bundle/components/Header/HeaderTop.d.ts +6 -2
- package/bundle/components/ProductGallery/ProductGallery.mobile.d.ts +5 -0
- package/bundle/icons/IconName.d.ts +4 -2
- package/bundle/ui-kit/Heading/headingTag.d.ts +2 -0
- package/bundle/ui-kit/Heading/headingTag.mobile.d.ts +2 -0
- package/cosmos-static/icons/ChevronLeft.svg +1 -0
- package/dist/components/BaseTile/BaseTile.js +2 -1
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/Blocks.mobile.js +4 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js +28 -0
- package/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
- package/dist/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/dist/components/Calculator/getCreditCalculatorLimitParams.js +10 -0
- package/dist/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
- package/dist/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/dist/components/Calculator/getCreditCalculatorRateParams.js +14 -0
- package/dist/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
- package/dist/components/Calculator/rangeHelpers.d.ts +2 -2
- package/dist/components/Calculator/rangeHelpers.js +2 -2
- package/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/dist/components/Calculator/useCreditCalculatorParams.js +26 -38
- package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/dist/components/Footer/TextInformation.js +1 -1
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/Header/Header.mobile.d.ts +2 -2
- package/dist/components/Header/Header.mobile.js +3 -17
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +13 -1
- package/dist/components/Header/HeaderTop.d.ts +6 -2
- package/dist/components/Header/HeaderTop.js +15 -2
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/Headline/headlineVersionStyles.js +6 -6
- package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.d.ts +5 -0
- package/dist/components/ProductGallery/ProductGallery.mobile.js +13 -0
- package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -0
- package/dist/content-page-repository/transformImg.js +1 -1
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/icons/IconName.d.ts +4 -2
- package/dist/icons/IconName.js +3 -1
- package/dist/icons/IconName.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.js +5 -1
- package/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/dist/ui-kit/Heading/headingTag.d.ts +2 -0
- package/dist/ui-kit/Heading/headingTag.js +5 -0
- package/dist/ui-kit/Heading/headingTag.js.map +1 -0
- package/dist/ui-kit/Heading/headingTag.mobile.d.ts +2 -0
- package/dist/ui-kit/Heading/headingTag.mobile.js +13 -0
- package/dist/ui-kit/Heading/headingTag.mobile.js.map +1 -0
- package/dist/ui-kit/Img/ImgAsPicture.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BaseTile/BaseTile.js +2 -1
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/Blocks.mobile.js +4 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js +25 -0
- package/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
- package/lib/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/lib/components/Calculator/getCreditCalculatorLimitParams.js +7 -0
- package/lib/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
- package/lib/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/lib/components/Calculator/getCreditCalculatorRateParams.js +11 -0
- package/lib/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
- package/lib/components/Calculator/rangeHelpers.d.ts +2 -2
- package/lib/components/Calculator/rangeHelpers.js +4 -4
- package/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/lib/components/Calculator/useCreditCalculatorParams.js +27 -39
- package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/lib/components/Footer/TextInformation.js +1 -1
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/Header/Header.fixture.mobile.d.ts +2 -0
- package/lib/components/Header/Header.mobile.d.ts +2 -2
- package/lib/components/Header/Header.mobile.js +4 -18
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +13 -1
- package/lib/components/Header/HeaderTop.d.ts +6 -2
- package/lib/components/Header/HeaderTop.js +15 -2
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/Headline/headlineVersionStyles.js +6 -6
- package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.fixture.mobile.d.ts +7 -0
- package/lib/components/ProductGallery/ProductGallery.mobile.d.ts +5 -0
- package/lib/components/ProductGallery/ProductGallery.mobile.js +11 -0
- package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -0
- package/lib/content-page-repository/transformImg.js +1 -1
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/icons/IconName.d.ts +4 -2
- package/lib/icons/IconName.js +3 -1
- package/lib/icons/IconName.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.js +5 -1
- package/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/lib/ui-kit/Heading/headingTag.d.ts +2 -0
- package/lib/ui-kit/Heading/headingTag.js +2 -0
- package/lib/ui-kit/Heading/headingTag.js.map +1 -0
- package/lib/ui-kit/Heading/headingTag.mobile.d.ts +2 -0
- package/lib/ui-kit/Heading/headingTag.mobile.js +10 -0
- package/lib/ui-kit/Heading/headingTag.mobile.js.map +1 -0
- package/lib/ui-kit/Img/ImgAsPicture.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +123 -410
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/mobile/bundle/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/mobile/bundle/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/mobile/bundle/components/Calculator/rangeHelpers.d.ts +2 -2
- package/mobile/bundle/components/Header/Header.d.ts +2 -2
- package/mobile/bundle/components/Header/HeaderContent.d.ts +13 -1
- package/mobile/bundle/components/Header/HeaderTop.d.ts +6 -2
- package/mobile/bundle/icons/IconName.d.ts +4 -2
- package/mobile/bundle/ui-kit/Heading/headingTag.d.ts +2 -0
- package/mobile/dist/components/BaseTile/BaseTile.js +2 -1
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/Blocks.js +4 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/mobile/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js +28 -0
- package/mobile/dist/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorLimitParams.js +10 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.js +14 -0
- package/mobile/dist/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
- package/mobile/dist/components/Calculator/rangeHelpers.d.ts +2 -2
- package/mobile/dist/components/Calculator/rangeHelpers.js +2 -2
- package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +26 -38
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +1 -1
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/Header/Header.d.ts +2 -2
- package/mobile/dist/components/Header/Header.js +3 -17
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +13 -1
- package/mobile/dist/components/Header/HeaderTop.d.ts +6 -2
- package/mobile/dist/components/Header/HeaderTop.js +15 -2
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/Headline/headlineVersionStyles.js +6 -6
- package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +4 -17
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/content-page-repository/transformImg.js +1 -1
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/icons/IconName.d.ts +4 -2
- package/mobile/dist/icons/IconName.js +3 -1
- package/mobile/dist/icons/IconName.js.map +1 -1
- package/mobile/dist/ui-kit/Heading/Heading.js +12 -11
- package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/dist/ui-kit/Heading/headingTag.d.ts +2 -0
- package/mobile/dist/ui-kit/Heading/headingTag.js +13 -0
- package/mobile/dist/ui-kit/Heading/headingTag.js.map +1 -0
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.js +2 -1
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/Blocks.js +4 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Calculator/checkCreditSourceBookRowCommonParams.d.ts +9 -0
- package/mobile/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js +25 -0
- package/mobile/lib/components/Calculator/checkCreditSourceBookRowCommonParams.js.map +1 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorLimitParams.d.ts +9 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorLimitParams.js +7 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorLimitParams.js.map +1 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.d.ts +11 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.js +11 -0
- package/mobile/lib/components/Calculator/getCreditCalculatorRateParams.js.map +1 -0
- package/mobile/lib/components/Calculator/rangeHelpers.d.ts +2 -2
- package/mobile/lib/components/Calculator/rangeHelpers.js +4 -4
- package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +27 -39
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +1 -1
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/Header/Header.d.ts +2 -2
- package/mobile/lib/components/Header/Header.js +4 -18
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +13 -1
- package/mobile/lib/components/Header/HeaderTop.d.ts +6 -2
- package/mobile/lib/components/Header/HeaderTop.js +15 -2
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/Headline/headlineVersionStyles.js +6 -6
- package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +5 -18
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/content-page-repository/transformImg.js +1 -1
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/icons/IconName.d.ts +4 -2
- package/mobile/lib/icons/IconName.js +3 -1
- package/mobile/lib/icons/IconName.js.map +1 -1
- package/mobile/lib/ui-kit/Heading/Heading.js +12 -11
- package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/lib/ui-kit/Heading/headingTag.d.ts +2 -0
- package/mobile/lib/ui-kit/Heading/headingTag.js +10 -0
- package/mobile/lib/ui-kit/Heading/headingTag.js.map +1 -0
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/src/components/BaseTile/BaseTile.tsx +6 -3
- package/mobile/src/components/Blocks.ts +4 -0
- package/mobile/src/components/Calculator/checkCreditSourceBookRowCommonParams.ts +47 -0
- package/mobile/src/components/Calculator/getCreditCalculatorLimitParams.ts +24 -0
- package/mobile/src/components/Calculator/getCreditCalculatorRateParams.ts +33 -0
- package/mobile/src/components/Calculator/rangeHelpers.ts +4 -4
- package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +38 -73
- package/mobile/src/components/Footer/TextInformation.tsx +2 -2
- package/mobile/src/components/Header/Header.tsx +19 -50
- package/mobile/src/components/Header/HeaderContent.ts +15 -1
- package/mobile/src/components/Header/HeaderTop.tsx +62 -25
- package/mobile/src/components/Headline/headlineVersionStyles.ts +6 -6
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +18 -59
- package/mobile/src/content-page-repository/transformImg.ts +1 -1
- package/mobile/src/icons/ChevronLeft.svg +3 -0
- package/mobile/src/icons/IconName.ts +5 -5
- package/mobile/src/ui-kit/Heading/Heading.tsx +17 -16
- package/mobile/src/ui-kit/Heading/headingTag.ts +12 -0
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/package.json +1 -1
- package/src/components/BaseTile/BaseTile.tsx +6 -3
- package/src/components/Blocks.mobile.ts +4 -0
- package/src/components/Calculator/checkCreditSourceBookRowCommonParams.ts +47 -0
- package/src/components/Calculator/getCreditCalculatorLimitParams.ts +24 -0
- package/src/components/Calculator/getCreditCalculatorRateParams.ts +33 -0
- package/src/components/Calculator/rangeHelpers.ts +4 -4
- package/src/components/Calculator/useCreditCalculatorParams.ts +38 -73
- package/src/components/Footer/TextInformation.tsx +2 -2
- package/src/components/Header/Header.fixture.mobile.tsx +4 -0
- package/src/components/Header/Header.mobile.tsx +19 -50
- package/src/components/Header/HeaderContent.ts +15 -1
- package/src/components/Header/HeaderTop.tsx +62 -25
- package/src/components/Headline/headlineVersionStyles.ts +6 -6
- package/src/components/ProductBlock/ProductBlockInner.tsx +1 -1
- package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +142 -0
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +34 -0
- package/src/content-page-repository/transformImg.ts +1 -1
- package/src/icons/ChevronLeft.svg +3 -0
- package/src/icons/IconName.ts +5 -1
- package/src/ui-kit/Heading/Heading.fixture.mobile.tsx +6 -6
- package/src/ui-kit/Heading/Heading.fixture.tsx +6 -6
- package/src/ui-kit/Heading/Heading.tsx +8 -3
- package/src/ui-kit/Heading/headingTag.mobile.ts +12 -0
- package/src/ui-kit/Heading/headingTag.ts +3 -0
- package/src/ui-kit/Img/ImgAsPicture.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/tailwind.config.cjs +10 -19
- package/bundle/ui-kit/Heading/Heading.mobile.d.ts +0 -2
- package/dist/ui-kit/Heading/Heading.mobile.d.ts +0 -2
- package/dist/ui-kit/Heading/Heading.mobile.js +0 -18
- package/dist/ui-kit/Heading/Heading.mobile.js.map +0 -1
- package/lib/ui-kit/Heading/Heading.mobile.d.ts +0 -2
- package/lib/ui-kit/Heading/Heading.mobile.js +0 -16
- package/lib/ui-kit/Heading/Heading.mobile.js.map +0 -1
- package/src/ui-kit/Heading/Heading.mobile.tsx +0 -22
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),r=n("useEffect"),l=n("useCallback"),a=n("useMemo"),s=n("useRef");const o=e=>e&&!e.endsWith("/")?`${e}/`:e,c={PROD_BRANCH:"master"},d=new class{_=c;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||c.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return o(this._.CDN)}get BASE_PATH(){return o(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:i}=await e.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:i},body:JSON.stringify({node_id:t,user_name:i})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),g=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:b(e)),t._tmpl},b=e=>{function t(t,n){const{children:i,...r}=t||{},l=n?.slots?.default,a=i||l&&l();return e(Object.assign(r,a&&{children:a}),n)}return t.inheritAttrs=!1,t},f=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),x=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),y=[];function v(e,t,{className:n,...i}={}){const{key:r,blockDecorator:l=x,blocksRegistry:a={},ancestors:s=y}=t,{type:o}=e;o&&o in a||console.warn(`No block with "${o}" is registered`);const c=o&&a[o];return l({blockClassName:f("scroll-mt-12",n,e.style||"col-span-12"),block:e,ancestors:s,render:({block:n,blockClassName:l})=>{const{content:a}=n;return c?u(c,{className:l,block:e,options:t,...a,...i},r):null}},r)}const N=[],w=(e,{key:t,ancestors:n=N,slotName:i=null,renderProps:r=v,...l})=>(e||[]).map(((e,a)=>r(e,{...l,key:`${t||e.type}-${a}`,ancestors:l.parent?[...n||N,[l.parent,i]]:n})));function k({children:e,block:t,options:n,renderProps:i}){return e||(t&&n?w(t.blocks,{...n,parent:t,renderProps:i}):null)}class C{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const T=new C;function S(e,{sensitivity:t,rootRef:n}={}){const i=s(null),l=a((()=>({threshold:_(t),root:n?.current})),[t,n?.current]);return r((()=>{if(!i.current)return;const t=new IntersectionObserver(e,l);return t.observe(i.current),()=>{t.disconnect()}}),[e,l]),i}function _(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const I=new C;const R={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},A=g((({className:e,version:t="primary",isTheme:n=!0,block:a,tag:s="section",role:o,children:c})=>{const d=s,m=function(e){return S(l((t=>{if(!e||!t?.length)return;const n=t[t.length-1];I.fire("intersection",{block:e,intersection:n})}),[e]),{sensitivity:1})}(a),[h,p]=i(!1);return r((()=>T.subscribe("tab",(e=>{p(Boolean(e.label&&a?.labels?.length&&!a.labels.includes(e.label)))}))),[a]),u(d,{className:f($(Boolean(t&&n)),R[t],h?"hidden":"",e),...t&&n?{"data-ver":t}:{},...a?.anchor?{id:a.anchor,ref:m}:{},role:o,children:c})})),$=e=>e?"group":"",P=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),M=g((({className:e="",style:t,idx:n,activeIndex:i,observerOptions:r,children:a,onIntersection:s})=>{const o=S(l((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),r);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(n===i),ref:o,children:a})})),j=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],L=g((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:i=0,gap:r=0,padding:a=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const g={sensitivity:1,rootRef:t},b=s([]),x=l(((e,t)=>{const n=[...b.current||[]];n[e]=t,b.current=n,h&&h(n),p&&p(O(n))}),[h,p]),y=i>0?r*Number(i)-1:0,v="vertical-list"===o,N="horizontal-list"===o,w={...N?B(a,y):{},...v?P(d):{},gap:`${r}px`};return u("div",{className:f("box-border overflow-auto no-scrollbar",o,e),style:w,ref:t,children:(k=(e,t)=>u(M,{className:f(c,i?j[i-1]:"",v?"h-full":""),style:N?B(a/4):{},activeIndex:n,idx:t,observerOptions:g,onIntersection:x,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(k):k(e,0))(m)});var k})),B=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),O=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),z={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},D={"horizontal-list":"w-6","vertical-list":"h-6"},V=g((({containerRef:e,activeIndex:t,dotCount:n=0,listType:i="horizontal-list",version:r})=>n?u("div",{className:f("flex gap-2",z[i],r?"group":""),...r?{"data-ver":r}:{},children:new Array(n).fill(null).map(((n,r)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${r===t?D[i]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(r)},String(r))))}):null)),E=e=>e,H=(e=E)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),F=H(),U=(e=E)=>H((t=>-e(t))),J=e=>t=>e.scrollWidth/t,X=e=>(t,n)=>{e.scrollBy({left:n*J(e)(t),behavior:"smooth"})},W=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const r=s(null),[a,o]=i([]),c=l((e=>{o((t=>{return(n=t)===(i=e)||Boolean(n&&i&&n?.length===i?.length&&n.every(((e,t)=>e===i[t])))?t:e;var n,i})),n&&n(e)}),[e]),[d,m]=a.length?[U()(a),H()(a)]:[-1,-1],h=d>0,u=m<e-1,p=l((()=>{var n;r.current&&(t&&!h?(n=r.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):X(r.current)(e,-1))}),[t,e,h]),g=l((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):X(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:g,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]};function G(){return G._impl()}G._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),G.setup=e=>{G._impl=e};const Y=e=>Boolean(e?.includes(":")),K=(e,t)=>Boolean(e&&!Y(e)&&(!t||"_self"===t)),Q=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),q=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var Z=Object.freeze({__proto__:null,isURL:Y,isLocalURL:K,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:Q,joinPath:q});const ee=e=>(t,n=d.BASE_PATH)=>{if(!t||Y(t)||te(t,d.CDN))return t;const i=t.startsWith("/");return q(te(t,n)?"":n,i?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},te=(e,t)=>t&&e&&e.startsWith(t),ne={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},ie=g((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:r=i,iconVersion:l="color",...a})=>{const s=G(),o=ee(s)(q(d.CDN,"/icons",`${n}.svg`));return"normal"!==l?u(le,{className:e,children:p("svg",{className:f(re(a.width),ne[l],"white"===l?"invert":"",t),...a,"aria-hidden":"true",children:[r?u("title",{children:r}):null,i?u("desc",{children:i}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(a.style={height:`${a.height}px`}),u("img",{className:e,src:o,alt:i,title:r,"aria-hidden":"true",...a}))})),re=e=>e?"":"w-full h-full",le=g((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),ae=(e,t)=>e?.media&&t?.media?e.media-t.media:0,se=g((({className:e="",image:t,imageClassName:n="",isMobile:i=!1,pathPrefix:r})=>{const l=G();return p("picture",{className:`${i?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(ae).map((({src:e,format:n,media:i},a)=>u("source",{srcSet:ce(l,r)(e),type:de(n),media:i?`(max-width: ${i}px)`:"",...t.size},`${a}_${e}`))):null,t?.src?oe({...t,src:ce(l,r)(t.src)},n,i):null]})})),oe=(e,t="",n=!1)=>{const i={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",l=e.alt||e.title,a=n?"m-auto":"m-0";return u("img",{src:e.src,className:`${a} ${t}`,alt:l,title:r,style:i,...e.size})},ce=(e,t)=>n=>n&&!Y(n)?ee(e)(q(t,n)):n,de=e=>e?`image/${String(e)}`:void 0,me=g((({className:e="",image:t,imageClassName:n="",isMobile:i,pathPrefix:r,...l})=>t?.src||t?.icon?t.icon?u(ie,{className:e,imageClassName:n,iconVersion:t?.iconVersion,name:t.icon,...l}):u(se,{className:e,imageClassName:n,image:t,isMobile:i,pathPrefix:r}):null)),he=g((e=>u(me,{...e,isMobile:!0}))),ue=(e="")=>({open:t=>T.fire("dialog",{type:"open",id:e,message:t}),close:()=>T.fire("dialog",{type:"close"})}),pe=(e,t)=>pe._impl(e,t);function ge(e={}){const{isRemote:t,basePath:n}=e,i=G(),{close:r}=ue();return e=>({...e,href:t&&!n?e.href:ee(i)(e.href,n),"aria-label":e.text,onClick:pe(l(e),e)});function l({href:e,target:n,onClick:l}){return a=>{l&&l(a),e&&!t&&K(e,n)&&(r(),a?.preventDefault(),i.push(e))}}}pe._impl=e=>e,pe.setup=e=>{pe._impl=e};const be={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},fe="bg-main-divider text-main-disabled",xe={primary:fe,secondary:fe,white:fe,link:"",transparent:"",gray:fe,"":""},ye="text-center font-sans select-none",ve={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},Ne=g((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:r,version:l="primary"}=e;return p("div",{className:f(we(e),"flex gap-2"),children:[i?u("div",{className:ve[l],children:i}):null,ke(e)?p("div",{children:[n?u("div",{className:"text-xs-light text-left",children:n}):null,u("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?u("div",{className:ve[l],children:r}):null]})})),we=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const r=""+(n?"py-2.5 px-7":"py-4 px-4");return["group/btn items-center justify-center",ke(e)?r:"h-12 w-12",i?"rounded-full":""].join(" ")},ke=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Ce=({className:e,rounded:t,version:n})=>["inline-block",ye,n?xe[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Te=({className:e,rounded:t,version:n})=>[ye,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?be[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Se=g((({disabled:e,children:t,...n})=>{const i=ge()(n),r=t??u(Ne,{...i});return u(e?Ie:_e,{...i,children:r})})),_e=g((({className:e="",href:t,rel:n,target:i,ariaLabel:r,version:l,rounded:a,onClick:s,children:o})=>u("a",{className:Te({className:e,version:l,rounded:a}),href:t,rel:n,target:i,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Ie=g((({className:e,ariaLabel:t,version:n,rounded:i,children:r})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Ce({className:e,rounded:i,version:n}),children:r}))),Re=g((({className:e,disabled:t,...n})=>u(Se,{rounded:!0,className:`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...n,children:u(he,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16"})}))),Ae=g((e=>u(Re,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),$e=g((e=>u(Re,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}))),Pe="absolute top-[calc(50%-24px)] z-40",Me="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",je=g((({scroll:e,arrowsPadded:t,isBlur:n,onScrollLeft:i,onScrollRight:r,hasEdgeBlocks:a,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,g=a?s>0:c,b=a?s<o-1:d,x=l((()=>{a?(c&&s!==o-1&&m(),i()):m()}),[m,i,a,c,s,o]),y=l((()=>{a?(d&&0!==s&&h(),r()):h()}),[h,r,a,c,s,o]);return p("div",{children:[Le(n,e),g?u(Ae,{className:f(Pe,t?"left-8":"left-0"),onClick:x}):null,b?u($e,{className:f(Pe,t?"right-8":"right-0"),onClick:y}):null]})})),Le=(e,t)=>e?p("div",{children:[t.canScrollLeft?u("div",{className:f(Me,"left-0 bg-opacity-from-white")}):null,t.canScrollRight?u("div",{className:f(Me,"right-0 bg-opacity-to-white")}):null]}):null,Be=g((({className:e="",itemCount:t,visibleItemCount:n,isBlur:r=!0,isCyclic:a=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,...m})=>{const{blocks:h=[]}=m.block||{},g=t||h?.length,[b,x]=i(Math.floor((n||0)/2)),y=l((()=>x((e=>e+1))),[]),N=l((()=>x((e=>e-1))),[]),[w,C]=W({itemCount:g,isCyclic:a}),[T]=C.visibleIndicesRange,S=h&&"CarouselBankHistoryCard"===h[0]?.type;return u(A,{className:f(Oe(o),"group-data-secondary:bg-primary-main group-data-secondary:text-white",e),...m,children:p("div",{className:f(ze(d),"relative max-w-full"),children:[u(L,{containerRef:w,visibleItemCount:n,snapAlign:"snap-start",gap:16,onVisibleIndicesChange:C.handleVisibleIndicesChange,children:k({...m,renderProps:S?(e,t)=>v(e,t,{blocksLength:h?.length,activeIndex:b}):v})}),u(je,{scroll:C,isBlur:r,arrowsPadded:s,onScrollLeft:N,onScrollRight:y,hasEdgeBlocks:S,activeIndex:b,itemCount:g}),c?De(w,T,g):null]})})}));Be.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const Oe=e=>e?"p-default":"",ze=e=>e?"flex justify-center":"",De=(e,t,n)=>u(V,{containerRef:e,activeIndex:t,dotCount:n,listType:"horizontal-list"}),Ve=g((({className:e="",href:t,target:n,isRemote:i=!1,children:r})=>{const l=ge({isRemote:i})({href:t,target:n});return u(t?"a":"div",{className:f("block",e),...t?l:{},children:r})})),Ee={L:"w-1.5 h-1.5 mr-4",M:"w-1.5 h-1.5 mr-3",S:"w-1 h-1 mr-2"},He=g((({className:e,isDotted:t=!0,children:n,size:i="M"})=>p("div",{className:f("font-sans flex",e),role:"listitem",children:[t?u("div",{className:"shrink-0",children:u("div",{className:f("align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white",Ee[i])})}):null,u("span",{children:n})]}))),Fe={S:"text-l-light",M:"text-h6",L:"text-h5"},Ue={S:"ml-2",M:"ml-3",L:"ml-4"},Je=g((({className:e,hasIndent:t,isDotted:n,items:i,listItemSize:r="M"})=>i?.length?u("section",{className:f("flex flex-col gap-2 text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text",Fe[r],t?Ue[r]:"",e),role:"list",children:i.map(((e,t)=>u(He,{isDotted:n,size:r,children:e},String(t))))}):null)),Xe={default:"w-24 h-14",small:"w-12 h-12"},We=(e,t)=>e?"":f("group/media flex items-center justify-center box-border",Xe[t]),Ge=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],Ye=g((({buttonSize:e="default",rounded:t=!1,icon:n,...i})=>{const{href:r,version:l,text:a=""}=i,{iconMapped:s,label:o}=Ge.find((({origins:e})=>e.some((e=>r?.includes(e)))))||{},c=Ke(n)??s;return u(Se,{className:f(t?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",We(a,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:a,version:l,...i,children:c&&!a?u(he,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),Ke=e=>e?.src||e?.icon?e:void 0,Qe=g((({className:e="",media:t})=>u("div",{className:`flex gap-2 items-start justify-start ${e}`,children:t?.map(((e,t)=>u(Ye,{...e},String(t))))}))),qe={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},Ze=g((e=>{const{className:t,headingType:n="h3",title:i,as:r="h3"}=e;return u(r,{className:`font-sans font-medium m-0 ${qe[n]} ${t||""}`,children:i})})),et=g((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),tt={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionStyle:"mt-5"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light",descriptionStyle:"mt-4"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light",descriptionStyle:"mt-4"},M:{title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light",descriptionStyle:"mt-3"},S:{title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light",descriptionStyle:"mt-2"},XS:{title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light",descriptionStyle:"mt-2"}},nt=g((({className:e,title:t,description:n,headlineVersion:i="XL",align:r="text-center",as:l,isPadding:a=!0,isTheme:s=!1,version:o="",...c})=>{const d=tt[i],m=a?"p-default":"",h={marginTop:d.descriptionStyle};return p(A,{className:f(m,e),version:o,isTheme:s,...c,children:[t?u(Ze,{className:f("whitespace-pre-wrap",r),...d?.title,as:l||d?.title.as,title:t}):null,n?u(et,{size:d.descriptionSize,align:r,...h,children:n}):null]})})),it=g((({className:e="",description:t,href:n,icon:i,items:r=[],socialMedia:l=[],target:a,title:s,align:o="text-left",...c})=>u(A,{className:f("relative box-border p-default group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),...c,children:p(Ve,{href:n,target:a,children:[u(nt,{className:"mb-2",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),r.length?u(Je,{className:"flex flex-col gap-2",items:r,listItemSize:"S"}):null,rt(i),l.length?u(Qe,{className:"mt-5",media:l}):null]})}))),rt=e=>e?.src||e?.icon?u("div",{children:u(he,{image:e})}):null,lt=g((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:n=!1,renderFoldableSection:r,renderFoldButton:a})=>{const[s,o]=i(n),c=l((()=>{o((e=>!e))}),[]),d=r({isUnfolded:s,onToggle:c}),m=a?a({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),at=g((({className:e="",isUnfolded:t,children:n})=>{const i=s(null);return r((()=>{i.current&&(i.current.style.maxHeight=t?`${i.current.scrollHeight}px`:"")}),[t,n?.length]),u("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden ${i.current||!t?"max-h-0":""} ${e}`,children:n})})),st=(e=!1)=>e?"p-default mt-6":"mt-6 p-default",ot=(e,{className:t="",buttonClassName:n,isVertical:i}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:f("flex",i?"flex-col gap-2":"flex-wrap gap-4",t),children:e.map(ct(n))}):null,ct=(e="")=>(t,n)=>{const{text:i,icon:r,iconRight:l,version:a,...s}=t||{},o="secondary"===a?"color":"white",c=r?.iconVersion?r?.iconVersion:o;return i||r?.icon?u(Se,{className:e,appendLeft:dt({...r,iconVersion:c}),appendRight:dt({...l,iconVersion:c}),version:a,text:i,...s},n?String(n):""):null},dt=e=>e?.icon||e?.src?u(he,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,mt=g((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),ht=(e,t)=>{const{title:n,description:i,buttons:r}=e;return p("div",{className:"py-5 border-b border-main-divider",children:[n?u("div",{className:"opacity-80",children:u(mt,{size:"text-m",color:"text-secondary-text",children:n})}):null,i?u("div",{className:"mt-1",children:u(mt,{size:"text-l",color:"text-primary-text",children:i})}):null,r?.length?u("div",{className:"text-primary-main",children:ot(r)}):null]},String(t))},ut=g((({className:e="",title:t,icon:n,isHighlighting:i=!1,button:r,cardCells:l=[],...a})=>{const s=l.map(ht),o=s.slice(0,1),c=s.slice(1);return p(A,{className:f("relative border border-gray flex flex-col",st(i),e),...a,children:[i?bt():null,pt(n),t?u(Ze,{className:"text-center pt-2",headingType:"h5",title:t}):null,r?u(Se,{className:"w-full mt-4",...r}):null,l.length?u(lt,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[o,u(at,{isUnfolded:e,children:c})]}),renderFoldButton:l.length>1?gt:null}):null]})})),pt=e=>u("div",{className:"w-[267px] min-w-[267px] self-center",children:e?.src||e?.icon?u(he,{image:e}):null}),gt=({isUnfolded:e,onToggle:t})=>p("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(ie,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),bt=()=>p("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(ie,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(et,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),ft=g((({className:e="",gap:t=14,padding:n=16,showDots:i=!0,minHeight:r,children:l,onVisibleIndicesChange:a,listType:s="horizontal-list",version:o})=>{const c=Array.isArray(l)?l.length:0,[d,m]=W({itemCount:c,onVisibleIndicesChange:a}),[h]=m.visibleIndicesRange;return p("div",{className:f(e,"vertical-list"===s?"relative h-full":""),children:[u(L,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:s,minHeight:r,children:l}),i?u(V,{containerRef:d,activeIndex:h,dotCount:c,listType:s,version:o}):null]})})),xt=(e=!1)=>e?"text-white":"",yt=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),vt=g((({icon:e,image:t,title:n,subtitle:i,isFillGradient:r})=>p("div",{role:"columnheader",children:[e?u(he,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&u("div",{className:"mb-3.5",children:u(he,{image:t})}),n?u(Ze,{headingType:"h4",className:xt(r),title:n}):null,i?u("div",{className:yt(r),children:i}):null]}))),Nt=g((({cell:e,rowHeader:t,isFillGradient:n=!1})=>u("div",{className:"box-border flex flex-col",role:"cell",children:u("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(wt(n,t))})}))),wt=(e,t)=>({label:n,description:i},r)=>p("div",{className:"flex justify-between text-s py-3.5",children:[u("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),p("div",{className:"basis-1/2",children:[n?u("div",{className:"text-right "+(e?"text-white":""),children:n}):null,i?u("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i}):null]})]},String(r)),kt=g((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:i,showRow:r,onToggleColumn:l})=>{const a=t?.slice(0,r?t.length:n),s=i?"secondary":"primary";return p("div",{className:`border border-gray rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[u(vt,{...e,isFillGradient:i}),a?.length?a.map((({rowHeader:e,cell:t},n)=>u(Nt,{cell:t,rowHeader:e,isFillGradient:i},String(n)))):null,r&&e?.link?u(Se,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Ct({onToggleColumn:l,isFillGradient:i,showRow:r})]})})),Ct=({onToggleColumn:e,isFillGradient:t,showRow:n})=>u("div",{className:"mt-5",role:"cell",children:u("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),Tt=g((e=>{const{className:t,title:n}=e;return p("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[n?u(Ze,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,u("div",{role:"table",children:u(St,{...e})})]})})),St=g((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:r,orientation:a,...s})=>{const[o,c]=i(new Array(e.length).fill(!r)),d=l((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),h=e?.map((({data:e,header:i},l)=>{return u(kt,{visibleRowLength:r,showRow:o[l],header:i,columnData:(a=e,a?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===l&&n,onToggleColumn:()=>d(l),...s},String(l));var a}));return"horizontal"===a?u(ft,{onVisibleIndicesChange:m,children:h}):h})),_t=e=>null!=e,It=new Map;function Rt(e,t,{fallback:n,cache:l}={}){const s=a((()=>At(e)),[e]),[o]=(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)?s:[],[c,d]=i(void 0),[m,h]=i(void 0);r((()=>{!s.some(_t)||(async()=>{try{const e=await(o?((e,t=It)=>n=>{const i=t.get(n);if(_t(i))return i;const r=e(n);return _t(r)?t.set(n,Promise.resolve(r)):t.delete(n),r})(t,l)(o):t(...s));d(e),h(void 0)}catch(e){d(void 0),h(e)}})()}),[t,l,s]);const u=n&&o&&n[o];return{data:!c&&u?u:c,error:m,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function At(e){return Array.isArray(e)?e:e instanceof Function?At(e()):[e]}async function $t(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}const Pt={};function Mt(e,t={}){const{data:n}=Rt(`/wcms-resources/${e}.json`,$t,{fallback:t});return n||Pt}const jt=g((({className:e="",items:t})=>t?.length?u("ul",{className:f("flex flex-col p-0","",e),children:t.map(Lt)}):null)),Lt=(e,t)=>{const{text:n,...i}=e;return u("li",{className:"list-none mb-4 sm:mb-6 sm:last:mb-0",children:u("a",{className:"hover:text-primary-main sm:font-light",role:"link",...i,children:n||null})},`list_item_${String(t)}`)},Bt=g((({className:e="",label:t,icon:n,dataTheme:i="",disabled:r=!1,onClick:l})=>p("button",{className:f("flex justify-center w-full px-0 py-4 border border-transparent outline-none focus:border-primary-text",r?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:l,disabled:r,"data-theme":i,children:[u("span",{className:"text-h4 pr-3",children:t}),n?u(he,{image:{icon:n,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),Ot={primary:"bg-main-divider",secondary:"bg-white/30","secondary-light":"bg-secondary-light"},zt=g((({iconBgVersion:e="primary",...t})=>u("div",{className:f("rounded-icon p-2.5 mr-3",Ot[e]),children:u(ie,{...t})}))),Dt=e=>e?"ArrowUpSolidIcon":"ArrowDownSolidIcon",Vt=g((({className:e="",label:t="Развернуть",labelIcon:n,isExpanded:i,isFoldButtonOnTop:r=!0,version:l="primary",...a})=>u(A,{className:f("w-full","",e),tag:"div",version:"transparent",...a,children:u(lt,{isFoldButtonOnTop:r,unfoldedByDefault:i,renderFoldableSection:({isUnfolded:e})=>u(at,{className:f("gap-5 [&>*]:p-0","flex flex-wrap group-last:last:pb-0"),isUnfolded:e,children:k(a)}),renderFoldButton:({isUnfolded:e,onToggle:i})=>Et({version:l,label:t,labelIcon:n,isUnfolded:e,onToggle:i})})})));Vt.childrenTypes={exclude:["RollupItem"]};const Et=({version:e,label:t,labelIcon:n,isUnfolded:i,onToggle:r})=>{const l=t||(i?"Скрыть":"Развернуть");return"primary"===e?Ht({label:l,labelIcon:n,icon:Dt(i),onToggle:r}):u(Bt,{label:l,icon:i?"ArrowUpIcon":"ArrowDownIcon",onClick:r})},Ht=({label:e,icon:t,onToggle:n,labelIcon:i})=>{const r=String(i?.size?.width||24),l=String(i?.size?.height||24),a=i?.icon;return p("button",{className:f("border-none bg-transparent px-0 flex justify-between items-center w-full cursor-pointer group/button",a?"py-2":"py-5"),onClick:n,children:[p("div",{className:"flex items-center group-hover/button:text-primary-main",children:[a?u(zt,{name:a,width:r,height:l,iconVersion:i?.iconVersion}):null,e?u(mt,{size:"text-l",font:"font-normal",children:e}):null]}),t?u(ie,{name:t,iconVersion:"normal",width:"24",height:"24"}):null]})},Ft=g((({className:e="",items:t,hasButton:n})=>p("div",{className:e,children:[t?.length?t.map(Ut):null,n?u(Se,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Ut=(e,t)=>{const{type:n,text:i,description:r}=e;return p("div",{className:"mb-4",children:[u("div",{children:Jt(n,i)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},Jt=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Xt(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},Xt=e=>e.replaceAll(/\D/g,""),Wt=g((({className:e="",index:t,text:n,...i})=>{const r=ge(),{href:l,target:a,onClick:s}=r(i);return u("a",{className:f("",e),href:l,target:a,onClick:s,children:n||`Документ ${t}`})})),Gt=g((({title:e,links:t,className:n=""})=>p("div",{className:n,children:[u(mt,{size:"text-h6",children:e}),t?.length?u("div",{className:"flex flex-col gap-6 mt-7",children:t.map(((e,t)=>u(Wt,{index:t,...e},String(t))))}):null]}))),Yt=g((({className:e="",index:t,...n})=>{const i=ge({isRemote:!0}),{href:r,target:l,text:a,onClick:s}=i(n);return u("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:s,children:a||`Документ ${t}`})})),Kt=g((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-5 sm:py-4",children:u(mt,{size:"text-s",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>u(Yt,{index:t,...e},String(t))))}):null]}))),Qt=g((({className:e="",...t})=>{const n=t.options?.page?.fallback,i=Mt(d.SITEMAP||"sitemap",n),{documents:r,relatedEnterprises:l,contacts:a,socialMedia:s,horizontalNavigationTitle:o}=Mt(d.FOOTER||"footer",n);return p(A,{tag:"footer",className:f("px-4 py-6",e),...t,children:[u("div",{className:"mb-4 pb-5 border-b border-main-divider",children:i.topItems?.map(((e,t)=>u(Vt,{label:e?.text,labelIcon:e?.icon,children:u(jt,{items:e.items,className:"my-3"})},String(t))))}),u(Ft,{className:"overflow-hidden",items:a}),u(Qe,{className:"mb-4",media:s}),u(Se,{className:"w-full mb-4",text:"Google Play",version:"secondary",href:"/",target:"_blank"}),u(Gt,{className:"pt-4 pb-7 border-y border-main-divider",title:o,links:l}),u(Kt,{})]})})),qt=e=>({href:t})=>Q(Y(t)?e.href:e.pathname).startsWith(Q(t)),Zt=g((({className:e="",active:t,dataItemName:n,children:i,...r})=>{const l=ge(),{href:a,target:s,text:o,onClick:c}=l(r);return p("a",{className:f("relative inline-block bg-transparent text-center no-underline",e),href:a,target:s,"data-item-name":n,onClick:c,children:[u("span",{className:en(t),children:o||i}),t?u("div",{className:"absolute left-0 -bottom-3 w-full h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),en=(e=!1)=>f("font-sans text-s",e?"text-primary-main":"text-secondary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),tn=864e5;function nn(e,t,n=globalThis?.localStorage){const i=l((async(...i)=>{const r=`async:${e}`,l=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<tn?t:void 0}(n.getItem(r));if(l)return l;const a=await t(...i);return n.setItem(r,JSON.stringify({data:a,timestamp:Date.now()})),a}),[e,t]);return Rt(e,i)}const rn=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},ln=g((({className:e,onClick:t})=>u("button",{className:f("flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(he,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function an(e){throw new Error(e)}function sn({onOpen:e,onClose:t}={}){r((()=>T.subscribe("dialog",(n=>{switch(n.type){case"open":e&&e(n);break;case"close":t&&t();break;default:an(n)}}))),[e,t])}function on(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const cn=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:n,s1Matches:i,s2Matches:r}=function(e,t){const n=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),i=new Array(e.length),r=new Array(t.length);let l=0;for(let a=0;a<e.length;a++){const s=Math.max(0,a-n),o=Math.min(a+n,t.length-1);for(let n=s;n<=o;n++)i[a]||r[n]||e[a]!==t[n]||(l++,i[a]=!0,r[n]=!0)}return{m:l,s1Matches:i,s2Matches:r}}(e,t);if(0===n)return 0;const l=function(e,t,{s1Matches:n,s2Matches:i}){let r=0;for(let l=0,a=0;l<e.length;l++){if(!n[l])continue;let s=a;for(;s<t.length;s++)if(i[s]){a=s+1;break}e[l]!==t[s]&&r++}return r}(e,t,{s1Matches:i,s2Matches:r}),a=(n/e.length+n/t.length+(n-l/2)/n)/3,s=a>.7?.1*function(e,t){let n=0;for(;e[n]===t[n]&&n<4;)n++;return n}(e,t):0;return a+s*(1-a)};const dn=(e,t)=>(n,i)=>{for(const[r,l]of i)n.set(r,e(n.get(r)||t,l));return n},mn=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),hn=e=>t=>e.map((([e,n])=>[cn(t)(e),n])).filter((([e])=>e>=.8)).map((([e,t])=>pn(t,e))).reduce(dn(Math.max,0),new Map),un=e=>t=>{return on(t,t.map((({title:e})=>e)).map((e=>t=>{const n=mn(t||"");return n.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e.map((e=>F(n.map(cn(e)))))):0})(e))).sort((i=([,e])=>e,n=(e,t)=>i(e)-i(t),(e,t)=>-n(e,t))).map((([e])=>e));var n,i},pn=(e,t)=>new Map(e.map((e=>[e,t]))),gn=["/"],bn=({basePathList:e=gn,initialQuery:t="",wasOpened:n})=>{const[l,s]=i(t||"");r((()=>{null!=t&&s(t)}),[t]);const o=a((()=>e.map((e=>n?e:null))),[n,e]),{data:c}=Rt(o,fn),[d,m]=i(null);return((e,t,n=300)=>{r((()=>{const t=setTimeout(e,n);return()=>{clearTimeout(t)}}),t)})((()=>{c&&m(c.map((e=>t=>{const{corpus:n,dictionary:i}=t||{};if(!(e&&n?.length&&i&&Object.keys(i).length))return[];const r=mn(e);if(!r.length)return[];const l=Object.entries(i),a=[...r.map(hn(l)).reduce(dn(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*r.length)).map((([e])=>n[e]));return un(r)(a)})(l)))}),[c,l]),[d,{value:l,onChange:s}]},fn=async(...e)=>(await Promise.allSettled(e.map((e=>async function(e,t){try{return e?await $t(e,t):null}catch(e){console.error(e)}return null}(q(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),xn=g((({className:e,isOpened:t,head:n,children:i,onClose:l})=>(r((()=>{const e=({key:e})=>{"Escape"===e&&l&&l()};return globalThis.document?.addEventListener("keydown",e),()=>{globalThis.document?.removeEventListener("keydown",e)}}),[l]),t?u("div",{className:f("fixed inset-0 bg-white text-l-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar",e),role:"dialog",children:p("div",{className:"relative container pb-12 min-h-full",children:[p("div",{className:"sticky bg-white pt-6 top-0",children:[u(ln,{className:"absolute top-10 -right-12",onClick:l}),n]}),i]})}):null)));function yn(e=!1){const[t,n]=i(e),r=l((()=>n(!0)),[]),a=l((()=>n(!1)),[]),s=l((()=>n((e=>!e))),[]);return[t,{setValue:n,setTrue:r,setFalse:a,toggle:s}]}function vn(e,t=!1){const[n,{setTrue:r,setFalse:a}]=yn(t),[o,c]=i({id:e}),d=s(n);d.current||=n;sn({onOpen:l((t=>{t.id===e?(c(t),r()):a()}),[e]),onClose:a});const m=l((()=>{a(),T.fire("dialog",{type:"close"})}),[]);return{...o,isOpened:n,wasOpened:d.current,onClose:m}}const Nn=g((({className:e,topItems:t})=>{const n=ge({isRemote:!0});return u("div",{className:f("flex items-start justify-between",e),children:t?.map(n).map(wn)})})),wn=(e,t)=>{const{text:n,items:i,href:r,target:l,onClick:a}=e;return p("div",{className:"flex flex-col gap-3.5 w-1/4",children:[u("a",{className:"leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:r,target:l||"_self",onClick:a,children:n||`Раздел ${t}`}),i?.map(((e,t)=>u(kn,{...e,basePath:o(r),index:t},String(t))))]},String(t))},kn=g((({text:e,index:t,basePath:n,...i})=>{const r=ge({isRemote:!(!d.BASE_PATH||!n)&&!d.BASE_PATH.startsWith(n),basePath:n}),{href:l,target:a,onClick:s}=r(i);return u("a",{className:f("text-l-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:l,target:a||"_self",onClick:s,children:e||`Раздел ${t}`})})),Cn=g((({className:e,value:t,autoFocus:n,onChange:i,onFocus:r})=>{const a=l((e=>{i&&i(e.target?.value||"")}),[i]);return p("div",{className:f("font-sans relative",e),role:"form",children:[u("div",{className:"absolute h-full flex items-center pl-4 pointer-events-none",children:u(he,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),u("input",{className:f("h-12 pl-12 w-full text-l text-black outline-none box-border","border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text"),value:t,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:n,onChange:a,onFocus:r})]})})),Tn="search";g((({topItems:e})=>{const t=vn(Tn),n=a((()=>e?.map((e=>e.href||"/"))),[e]),[i,l]=bn({basePathList:n,initialQuery:t.message,wasOpened:t.wasOpened}),s=a((()=>Sn(e)(i)),[e,i]);return r((()=>function(e){for(const t of e.filter((({items:e})=>e?.length)))console.group(t.text),console.table(t.items,["text","href"]),console.groupEnd()}(s)),[s]),u(xn,{...t,head:u(Cn,{className:"my-5",autoFocus:!0,...l}),children:u(Nn,{topItems:s})})}));const Sn=e=>t=>e?.length&&t?.length?on(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:q("/",t)})))}))):[];const _n=g((({className:e})=>{const[t,n]=i(""),r=l((()=>n("")),[]);sn({onClose:r});const{open:a}=ue(Tn),s=l((e=>{n(e),In(e)&&a(e)}),[]);return p("div",{className:e,children:[u(Cn,{value:t,onChange:s}),u(ln,{className:"absolute top-2 right-3 sm:hidden",onClick:r})]})})),In=e=>e&&e.length>=3,Rn=g((({burgerSubMenu:e,onClick:t,defaultLocation:n="",children:a})=>{const[s]=function(e="Москва"){const t=rn(),[n,a]=i(t?.region??{name:e}),{data:s}=nn("/api/v1/region",$t);return r((()=>{a(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,l((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),a(e)}),[])]}(n);return p("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[u("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:t,children:u(he,{image:{icon:"CloseIcon"},width:"24",height:"24"})}),p("button",{className:"flex items-center text-s p-0 mb-4 bg-transparent cursor-pointer",children:[u(he,{image:{icon:"GeolocationIcon"},width:"20",height:"20",className:"text-primary-main box-border mr-2"}),u(mt,{color:"text-secondary-text",children:s.name})]}),a,u("div",{className:"mb-7",children:e?.map(An)}),u(_n,{className:"grow"})]})})),An=(e,t)=>{const{icon:n,href:i,text:r}=e;return p("a",{href:i,className:"flex text-s mb-4 hover:text-primary-main",children:[n?u(he,{className:"text-primary-main pr-1",image:n,width:"24",height:"24"}):null,u("span",{className:"font-medium pl-0.5",children:r})]},`headerSubMenu-${t}`)},$n={"bg-white":"color",transparent:"white"},Pn={"bg-white":"text-primary-main",transparent:"text-white"},Mn=(e,t,n)=>u(he,t?.src?{image:t,className:Pn[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:$n[e]},className:Pn[e],width:n?.width,height:n?.height}),jn={"bg-white":"text-primary-text",transparent:"text-white"},Ln=(e,t,n)=>u("span",{className:`${jn[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),Bn=g((({bgColor:e="bg-white",children:t,className:n="",href:i,logo:r,showTitle:l=!0,targetBlank:a})=>p("a",{className:`inline-flex items-center font-sans no-underline ${n}`,href:i||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":r?.title||"Россельхозбанк",children:[Mn(e,r?.image,{width:"34",height:"34"}),l?Ln(t||r?.title,e,"text-s"):null]}))),On=g((({onClick:e,bgColor:t,logo:n})=>p("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-12",children:[p("div",{className:"flex items-center",children:[u("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:u(he,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24"})}),u(Bn,{className:"mr-8",bgColor:t,logo:n})]}),u("button",{className:"text-primary-main group-data-transparent:text-white group-data-transparent:hover:text-primary-hover text-s border-0 bg-transparent",children:"Войти"})]}))),zn={"bg-white":"primary",transparent:"transparent"},Dn=g((({bgColor:e="bg-white",version:t=zn[e],...n})=>{const r=G(),a=n.options?.page?.fallback,{topItems:s,dispositions:o,defaultLocation:c,logo:m}=Mt(d.SITEMAP||"sitemap",a),h=s?.find((e=>qt(d.BASE_PATH?{pathname:d.BASE_PATH}:e))(r)),g=h?.items,b=(e=>(t=[])=>{const n=t?.filter(qt(e));return n?.length?H((e=>e.href?.length||0))(n):void 0})(r)(g),[f,x]=i(!1),y=l((()=>x((e=>!e))),[]);return p(A,{tag:"header",version:t,...n,children:[p("div",{className:"container px-4 py-0 box-border",children:[u(On,{onClick:y,bgColor:e,logo:m}),u("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-12",children:u("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:g?.map(((e,t)=>u(Zt,{className:"mr-8 whitespace-nowrap text-s",active:e===b,...e},String(t))))})})]}),f?u(Rn,{onClick:y,burgerSubMenu:o,defaultLocation:c,children:u("div",{className:"list-none m-0 p-0",children:s?.map(((e,t)=>u(Vt,{label:e.text,children:u(jt,{className:"mt-2.5",items:e.items})},String(t))))})}):null]})})),Vn=g((e=>{const{className:t,image:n,...i}=e;return u(A,{className:t,...i,children:u(he,{image:n})})})),En=g((({doc:e,icon:t})=>{const{text:n,fileSize:i,...r}=e;return p("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...r,children:[t,n?p(mt,{size:"text-l",font:"font-light",children:[n,u(mt,{color:"text-secondary-text",children:r?.href&&Hn(Fn(r.href),i)})]}):null]})})),Hn=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Fn=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Un=g((({className:e="",title:t,description:n,icon:i={icon:"DocDownloadIcon",iconVersion:"black"},documents:r,align:l,...a})=>p(A,{className:f("p-default",e),...a,children:[u(nt,{isPadding:!1,title:t,description:n,align:l,headlineVersion:"M",as:"h2"}),r?.length?u("div",{className:"mt-5 flex flex-col gap-6",role:"list",children:r.map(((e,t)=>u("div",{role:"listitem",children:u(En,{doc:e,icon:i?u(he,{className:"min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md",image:i,width:"24",height:"24"}):null})},String(t))))}):null]}))),Jn=g((({className:e="",title:t="Мобильное приложение",description:n,href:i="#"})=>u("div",{className:f("col-span-12 rounded-md cursor-pointer p-4 bg-secondary-light font-sans",e),children:i?p("div",{className:"flex",children:[u("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-12 h-12",children:u(Bn,{className:"w-8",bgColor:"transparent",showTitle:!0})}),p("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3",children:[u("div",{className:"text-s font-medium mb-[3px]",children:t}),u("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),Xn=e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Wn(e=""){const t=Xn(e);return t<=4?"S":t<=8?"M":"L"}function Gn(e=""){const t=Xn(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Yn(e=""){const t=Xn(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Kn=g((({className:e,title:t,description:n="Блок в разработке...",...i})=>p(A,{className:f("p-9 box-border",e,Yn(e),Gn(e)),...i,children:[u(nt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Wn(e)}),u("figure",{className:"m-0 min-w-[80%]",children:Qn()})]}))),Qn=(e=3)=>Zn(100,e).map((e=>Math.floor(e))).map(qn),qn=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Zn=(e,t)=>[e].concat(t>0?Zn(e/1.618,t-1):[]),ei=g((e=>{const{__html:t="",richVersion:n=""}=e;return u("div",{className:f(n,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),ti=g((({className:e,title:t="",insetTitle:n="",buttons:i,leftImage:r,rightImage:l,backImage:a,children:s})=>p("div",{className:f("relative flex flex-col font-sans",e),children:[a?u("div",{className:"absolute bottom-0 right-0 z-0",children:a}):null,t,p("div",{className:"grow relative flex flex-wrap justify-between items-stretch gap-8",children:[r,p("div",{className:f("flex flex-col gap-8",r?"":"grow"),children:[n,u("div",{className:"grow",children:s}),i]}),l?u("div",{className:"sm:-order-1 md:-order-1",children:l}):null]})]}))),ni=g((({className:e,icon:t,label:n,description:i,version:r="primary",benefitsVersion:l="normal"})=>p("div",{className:f("flex gap-5",i?"items-start":"items-center",e),children:[t?u("div",{className:ii(r,l),children:u(he,{className:"w-6 h-6",image:{...t,iconVersion:t.iconVersion||l}})}):null,p("div",{children:[n?u(mt,{size:"text-h6",color:"text-primary-text group-data-secondary:text-white",children:n}):null,i?u(et,{size:"text-m-light",color:"text-secondary-text group-data-secondary:text-white",children:i}):null]})]})));function ii(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const ri=(e="primary",t="normal")=>(n,i)=>u(ni,{version:e,benefitsVersion:t,...n},String(i)),li=g((({className:e,version:t="primary",headlineVersion:n="L",title:i,description:r,benefits:l,benefitsVersion:a,items:s,isDotted:o=!0,__html:c,buttons:d,image:m,directionRight:h=!0})=>{const g=l?.filter((e=>e.label)),b=m?.src?u(he,{className:"mt-[-50px]",image:m}):null;return p(ti,{className:e,insetTitle:u(nt,{className:"max-w-[600px] xl:max-w-[800px]",title:i,description:r,headlineVersion:n,align:"text-left",isPadding:!1}),...h?{rightImage:b}:{leftImage:b},buttons:ot(d),children:[g?.length?u("div",{className:"flex flex-wrap gap-6",children:g.map(ri(t,a))}):null,c?u("div",{className:"mt-5",children:u(ei,{__html:c})}):null,s?.length?u(Je,{className:"mt-5",items:s,isDotted:o}):null]})}));function ai({text:e,href:t,target:n,icon:i},r){const l="primary"===r?"white":"black",a={text:e,href:t,target:n,ariaLabel:e};return p("div",{className:"flex items-center gap-3",children:[u(Se,{className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",version:r,rounded:!0,...a,children:u(he,{className:"w-4 h-4",image:{...i,icon:i?.icon||"ArrowLeftIcon",iconVersion:i?.iconVersion||l}})}),u(Se,{version:"link",...a})]})}const si=g((({className:e,backwardButton:t,...n})=>p(A,{className:f("overflow-hidden p-default flex flex-col gap-10 box-border",e),...n,children:[t?.text?ai(t,n.version&&"primary"!==n.version?"white":"primary"):null,u(li,{className:"grow",...n})]}))),oi=g((e=>{const{__html:t,richVersion:n,...i}=e;return u(A,{...i,children:u(ei,{__html:t,richVersion:n})})})),ci={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},di={normal:"min-h-[70px]",small:"min-h-12"},mi={description:"text-white/80 text-l-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},hi=g((({className:e="",title:t,description:n,showLines:i=!0,steps:r,size:l="normal",version:a="primary",...s})=>p(A,{className:`box-border px-4 py-6 flex flex-col ${e}`,version:a,...s,children:[t?u(Ze,{headingType:"h3",className:"text-center",title:t}):null,n?u("p",{className:`text-m-light text-center ${mi.description} ${t?"mt-2":""}`,children:n}):null,r?.length?u("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:u("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map(ui(l,a,i))})}):null]}))),ui=(e,t,n)=>(i,r,l)=>{const{type:a}=i;if("default"!==a&&"rte"!==a)return null;switch(a){case"default":return pi(e,t,n)(i,r,l);case"rte":return u(ei,{__html:i.__html});default:an(i)}},pi=(e,t,n)=>(i,r,l)=>{const a=l.length-1===r,s="normal"===e?"ml-[34px]":"ml-6";return u("div",{children:p("div",{className:"flex flex-row text-center relative",children:[p("div",{className:"overflow-hidden flex-shrink-0",children:[gi(e,t)(i,r),a?null:u("div",{className:`min-h-8 h-full w-0.5 ${n?mi.iconConnector:""} ${s}`})]}),p("div",{className:`flex flex-col justify-center h-fit ${di[e]}`,children:[i.label?u("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:i.label}):null,i.description?u("div",{className:`text-s ${mi.description} text-left`,children:i.description}):null]})]})},String(r))},gi=(e,t)=>(n,i)=>{const r="normal"===e?"38":"27",l="secondary"===t?"white":"color";return u("div",{className:`${ci[e]} ${mi.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:u("span",{className:`font-medium flex self-center ${"normal"===e?"text-m-title":"text-m-title-xs"}`,children:(a=n?.icon,Boolean(a?.icon||a?.src)?u(he,{image:{...n.icon,iconVersion:n.icon?.iconVersion||l},width:r,height:r}):u("span",{children:i+1}))})});var a},bi={Buttons:({buttons:e})=>ot(e,{className:"mt-3",buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?u(he,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>u(Je,{className:"flex flex-col justify-between items-start text-m",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-s text-secondary-text",children:t}):null]})},fi=g((({title:e,icon:t})=>p("div",{className:"flex gap-2.5 mb-2",children:[e?u(Ze,{headingType:"h3",className:"font-medium",title:e}):null,t?u(he,{className:"ml-auto min-w-6",image:t,width:"24",height:"24"}):null]}))),xi=g((({tile:e,...t})=>p("div",{className:"rounded-md border-gray h-full box-border border p-4",children:[u(fi,{...e?.header}),e?.data?.length?e.data.map(((e,n)=>p("div",{children:[n>0?u("div",{className:"h-5"}):null,yi(e,t)]},String(n)))):null]})));function yi(e,t){if(!e||!e.tableCellType||!(e.tableCellType in bi))return null;const n=bi[e.tableCellType];return u(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const vi=g((({tiles:e,...t})=>e?.length?u(ft,{...t,children:e.map(((e,n)=>u(xi,{tile:e,...t},String(n))))}):null)),Ni=g((({tiles:e,...t})=>e?.length?u("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>u(xi,{tile:e,...t},String(n))))}):null)),wi=g((({className:e,title:t,description:n,tariffsColumns:i,rowHeaders:r,orientation:l="vertical",...a})=>{const s=ki(i),o=Ci(r,s);return p("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?u(Ze,{headingType:"h2",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?u("div",{className:"mb-5 text-center text-m",children:n}):null,u("vertical"===l?Ni:vi,{tiles:o,...a})]})})),ki=e=>e?.[0]?.data?e[0].data:[],Ci=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Ti=g((({className:e="",title:t,description:n,iconVersion:i,image:r,__html:l,items:a=[],...s})=>p(A,{className:f("px-9 py-4 flex gap-3 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===i?u("div",{className:"mt-1",children:Si()}):null,"big"===i?_i(r):null,p("div",{className:"flex flex-col w-fit gap-3",children:[t?u(mt,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:t}):null,n?Ii(n):null,a?.length?Ri(a,!0):null,l?u(ei,{__html:l}):null]})]}))),Si=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),_i=e=>e?.src?u(he,{className:"h-fit",image:e}):null,Ii=e=>u(et,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),Ri=(e,t)=>u("ul",{className:f("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-6":""),children:e.map(((e,t)=>u("li",{children:u(mt,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),Ai={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},$i={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},Pi=g((({className:e="",gap:t="",align:n="stretch",isPadding:i=!1,isInnerPadding:r=!0,version:l="transparent",isTheme:a=!1,...s})=>{const o=r?"":"!p-0";return u(A,{className:f("relative","flex flex-col [&>*]:max-w-full",i?"p-default":"",Ai[t],n&&$i[n],e),version:l,isTheme:a,...s,children:k({...s,renderProps:(e,t)=>v(e,t,{className:o})})})}));Pi.childrenTypes=[];const Mi={Carousel:Be,CarouselTariffsCard:ut,ComparisonTable:Tt,Footer:Qt,Header:Dn,Headline:nt,ImgBlock:Vn,LinkDocs:Un,MobileAppTile:Jn,Placeholder:Kn,ProductBlock:si,StepsBlock:hi,TariffsTable:wi,TextBlock:Ti,RichTextBlock:oi,RollupItem:Vt,VerticalLayout:Pi,CarouselRecommendationCard:it};const ji=["Header","Footer"],Li=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Bi(e=globalThis){const t=s(new Map);r((()=>I.subscribe("intersection",(({block:e,intersection:n})=>{t.current&&t.current.set(e,n)}))),[]),r((()=>{const n=((e,t=600)=>{let n;const i=(...r)=>{i.dispose(),n=setTimeout((()=>{e(...r)}),t)};return i.dispose=()=>{n&&clearTimeout(n)},i})((()=>{!function(e){const t=`#${n=e?.anchor,n?.replace("#","")||""}`;var n;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!ji.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?U(Li)(t):[];return n}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",n),()=>{n.dispose(),e.removeEventListener("scroll",n)}}),[e])}const Oi="cookieClose",zi=g((({termLink:e,personalDataPolicyLink:t})=>{const{isOpened:n,onClose:i}=vn("cookie",!globalThis.localStorage?.getItem(Oi)),r=l((()=>{globalThis.localStorage?.setItem(Oi,"true"),i&&i()}),[i]);return n?u("div",{className:"container z-40 fixed bottom-0 left-0 right-0 pointer-events-none",children:p("div",{className:"bg-white m-6 p-6 rounded-md flex items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"flex-1",children:p(et,{size:"text-s-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(Ve,{isRemote:!0,className:f(Di(e?.href)),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(Ve,{isRemote:!0,className:f(Di(t?.href)),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"w-24 flex justify-end",children:u(ln,{className:"bg-main-gray rounded-md",onClick:r})})]})}):null})),Di=e=>["inline mx-1",e?"text-green-dark":""],Vi=h();const Ei=g((({className:e,onClick:t,ariaLabel:n})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Hi()}))),Hi=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Fi=g((({className:e=""})=>{const t=function(e){const[t,n]=i(0);return r((()=>{(async()=>{const[t]=await Vi.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{n(await Vi.like(e))}),[e]),dislike:l((async()=>{n(await Vi.dislike(e))}),[e])}}(G().pathname);return p("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(Ei,{onClick:pe(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(Ei,{onClick:pe(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),Ui=g((e=>{const{className:t="",blocksRegistry:n,blockDecorator:i,data:r={}}=e,{style:l,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:n,blockDecorator:i,parent:r};Bi();const[m,{setTrue:h,setFalse:g}]=yn();return sn({onOpen:h,onClose:g}),p("section",{className:f("relative",l,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:w(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[w(a,d),s?.footer?w(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(Fi,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null,u(zi,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}})]})}));Ui.childrenTypes=[],Ui.slots=()=>["header","footer"];e.Blocks=Mi,e.ContentPage=Ui,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=pe,e.joinList=e=>t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:`sep-${i}`},n):[n]),[]),e.packageVersion="0.11.0",e.projectSettings=d,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=Z,e.useRouter=G,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const i=e=>(...i)=>t[e](...i),n=i("useState"),r=i("useEffect"),l=i("useCallback"),a=i("useMemo"),s=i("useRef");const o=e=>e&&!e.endsWith("/")?`${e}/`:e,c={PROD_BRANCH:"master"},d=new class{_=c;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||c.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return o(this._.CDN)}get BASE_PATH(){return o(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},h="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(h)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:i}=await e.json();return globalThis.localStorage?.setItem(h,JSON.stringify({token:t,name:i})),{token:t,name:i}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:i}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i},body:JSON.stringify({node_ids:t})}),{likes:n}=await e.json();return n||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:i,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:i,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:i,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),g=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:b(e)),t._tmpl},b=e=>{function t(t,i){const{children:n,...r}=t||{},l=i?.slots?.default,a=n||l&&l();return e(Object.assign(r,a&&{children:a}),i)}return t.inheritAttrs=!1,t},x=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),f=({blockClassName:e,block:t,render:i})=>i({blockClassName:e,block:t}),y=[];function v(e,t,{className:i,...n}={}){const{key:r,blockDecorator:l=f,blocksRegistry:a={},ancestors:s=y}=t,{type:o}=e;o&&o in a||console.warn(`No block with "${o}" is registered`);const c=o&&a[o];return l({blockClassName:x("scroll-mt-12",i,e.style||"col-span-12"),block:e,ancestors:s,render:({block:i,blockClassName:l})=>{const{content:a}=i;return c?u(c,{className:l,block:e,options:t,...a,...n},r):null}},r)}const N=[],w=(e,{key:t,ancestors:i=N,slotName:n=null,renderProps:r=v,...l})=>(e||[]).map(((e,a)=>r(e,{...l,key:`${t||e.type}-${a}`,ancestors:l.parent?[...i||N,[l.parent,n]]:i})));function k({children:e,block:t,options:i,renderProps:n}){return e||(t&&i?w(t.blocks,{...i,parent:t,renderProps:n}):null)}class C{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const i=this.subjectsStateMap[e];return i&&t(i),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const T=new C;function _(e,{sensitivity:t,rootRef:i}={}){const n=s(null),l=a((()=>({threshold:S(t),root:i?.current})),[t,i?.current]);return r((()=>{if(!n.current)return;const t=new IntersectionObserver(e,l);return t.observe(n.current),()=>{t.disconnect()}}),[e,l]),n}function S(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,i)=>Math.min(i/t)),1).concat(1)}const I=new C;const R={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},$=g((({className:e,version:t="primary",isTheme:i=!0,block:a,tag:s="section",role:o,children:c})=>{const d=s,h=function(e){return _(l((t=>{if(!e||!t?.length)return;const i=t[t.length-1];I.fire("intersection",{block:e,intersection:i})}),[e]),{sensitivity:1})}(a),[m,p]=n(!1);return r((()=>T.subscribe("tab",(e=>{p(Boolean(e.label&&a?.labels?.length&&!a.labels.includes(e.label)))}))),[a]),u(d,{className:x(A(Boolean(t&&i)),R[t],m?"hidden":"",e),...t&&i?{"data-ver":t}:{},...a?.anchor?{id:a.anchor,ref:h}:{},role:o,children:c})})),A=e=>e?"group":"",j=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),P=g((({className:e="",style:t,idx:i,activeIndex:n,observerOptions:r,children:a,onIntersection:s})=>{const o=_(l((e=>{e.length&&s&&s(i||0,e[e.length-1])}),[s,i]),r);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(i===n),ref:o,children:a})})),L=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],B=g((({className:e="",containerRef:t,activeIndex:i,visibleItemCount:n=0,gap:r=0,padding:a=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:h,onVisibleItemsChange:m,onVisibleIndicesChange:p})=>{const g={sensitivity:1,rootRef:t},b=s([]),f=l(((e,t)=>{const i=[...b.current||[]];i[e]=t,b.current=i,m&&m(i),p&&p(z(i))}),[m,p]),y=n>0?r*Number(n)-1:0,v="vertical-list"===o,N="horizontal-list"===o,w={...N?D(a,y):{},...v?j(d):{},gap:`${r}px`};return u("div",{className:x("box-border overflow-auto no-scrollbar",o,e),style:w,ref:t,children:(k=(e,t)=>u(P,{className:x(c,n?L[n-1]:"",v?"h-full":""),style:N?D(a/4):{},activeIndex:i,idx:t,observerOptions:g,onIntersection:f,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(k):k(e,0))(h)});var k})),D=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),z=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),V={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},M={"horizontal-list":"w-6","vertical-list":"h-6"},O=g((({containerRef:e,activeIndex:t,dotCount:i=0,listType:n="horizontal-list",version:r})=>i?u("div",{className:x("flex gap-2",V[n],r?"group":""),...r?{"data-ver":r}:{},children:new Array(i).fill(null).map(((i,r)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${r===t?M[n]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(i=>{i!==t&&e?.current&&e.current.children[i]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(r)},String(r))))}):null)),H=e=>e,E=(e=H)=>t=>t.reduceRight(((t,i)=>e(t)>e(i)?t:i)),F=(e=H)=>E((t=>-e(t))),U=e=>t=>e.scrollWidth/t,X=e=>(t,i)=>{e.scrollBy({left:i*U(e)(t),behavior:"smooth"})},J=({itemCount:e,isCyclic:t,onVisibleIndicesChange:i})=>{const r=s(null),[a,o]=n([]),c=l((e=>{o((t=>{return(i=t)===(n=e)||Boolean(i&&n&&i?.length===n?.length&&i.every(((e,t)=>e===n[t])))?t:e;var i,n})),i&&i(e)}),[e]),[d,h]=a.length?[F()(a),E()(a)]:[-1,-1],m=d>0,u=h<e-1,p=l((()=>{var i;r.current&&(t&&!m?(i=r.current).scrollTo({left:i.scrollWidth,behavior:"smooth"}):X(r.current)(e,-1))}),[t,e,m]),g=l((()=>{r.current&&(t&&!u?r.current.scrollTo({left:0,behavior:"smooth"}):X(r.current)(e,1))}),[e,t,u]);return[r,{scrollLeft:p,scrollRight:g,canScrollLeft:t||m,canScrollRight:t||u,visibleIndicesRange:[d,h],handleVisibleIndicesChange:c}]};function G(){return G._impl()}G._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),G.setup=e=>{G._impl=e};const W=e=>Boolean(e?.includes(":")),Y=(e,t)=>Boolean(e&&!W(e)&&(!t||"_self"===t)),K=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var q=Object.freeze({__proto__:null,isURL:W,isLocalURL:Y,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),joinPath:K});const Q=e=>(t,i=d.BASE_PATH)=>{if(!t||W(t)||Z(t,d.CDN))return t;const n=t.startsWith("/");return K(Z(t,i)?"":i,n?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},Z=(e,t)=>t&&e&&e.startsWith(t),ee={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},te=g((({className:e="",imageClassName:t="",name:i="",alt:n=`Иконка ${i}`,title:r=n,iconVersion:l="color",...a})=>{const s=G(),o=Q(s)(K(d.CDN,"/icons",`${i}.svg`));return"normal"!==l?u(ne,{className:e,children:p("svg",{className:x(ie(a.width),ee[l],"white"===l?"invert":"",t),...a,"aria-hidden":"true",children:[r?u("title",{children:r}):null,n?u("desc",{children:n}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(a.style={height:`${a.height}px`}),u("img",{className:e,src:o,alt:n,title:r,"aria-hidden":"true",...a}))})),ie=e=>e?"":"w-full h-full",ne=g((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),re=(e,t)=>e?.media&&t?.media?e.media-t.media:0,le=g((({className:e="",image:t,imageClassName:i="",isMobile:n=!1,pathPrefix:r})=>{const l=G();return p("picture",{className:`${n?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(re).map((({src:e,format:i,media:n},a)=>u("source",{srcSet:se(l,r)(e),type:oe(i),media:n?`(max-width: ${n}px)`:"",...t.size},`${a}_${e}`))):null,t?.src?ae({...t,src:se(l,r)(t.src)},i,n):null]})})),ae=(e,t="",i=!1)=>{const n={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"auto"},r=e.title||"",l=e.alt||e.title,a=i?"m-auto":"m-0";return u("img",{src:e.src,className:`${a} ${t}`,alt:l,title:r,style:n,...e.size})},se=(e,t)=>i=>i&&!W(i)?Q(e)(K(t,i)):i,oe=e=>e?`image/${String(e)}`:void 0,ce=g((({className:e="",image:t,imageClassName:i="",isMobile:n,pathPrefix:r,...l})=>t?.src||t?.icon?t.icon?u(te,{className:e,imageClassName:i,iconVersion:t?.iconVersion,name:t.icon,...l}):u(le,{className:e,imageClassName:i,image:t,isMobile:n,pathPrefix:r}):null)),de=g((e=>u(ce,{...e,isMobile:!0}))),he=(e,t)=>he._impl(e,t);function me(e={}){const{isRemote:t,basePath:i}=e,n=G(),{close:r}=((e="")=>({open:t=>T.fire("dialog",{type:"open",id:e,message:t}),close:()=>T.fire("dialog",{type:"close"})}))();return e=>({...e,href:t&&!i?e.href:Q(n)(e.href,i),"aria-label":e.text,onClick:he(l(e),e)});function l({href:e,target:i,onClick:l}){return a=>{l&&l(a),e&&!t&&Y(e,i)&&(r(),a?.preventDefault(),n.push(e))}}}he._impl=e=>e,he.setup=e=>{he._impl=e};const ue={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},pe="bg-main-divider text-main-disabled",ge={primary:pe,secondary:pe,white:pe,link:"",transparent:"",gray:pe,"":""},be="text-center font-sans select-none",xe={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},fe=g((e=>{const{text:t,aboveText:i,appendLeft:n,appendRight:r,version:l="primary"}=e;return p("div",{className:x(ye(e),"flex gap-2"),children:[n?u("div",{className:xe[l],children:n}):null,ve(e)?p("div",{children:[i?u("div",{className:"text-xs-light text-left",children:i}):null,u("div",{className:"text-left "+(i?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?u("div",{className:xe[l],children:r}):null]})})),ye=e=>{const{version:t,aboveText:i,rounded:n}=e;if("link"===t)return"";const r=""+(i?"py-2.5 px-7":"py-4 px-4");return["group/btn items-center justify-center",ve(e)?r:"h-12 w-12",n?"rounded-full":""].join(" ")},ve=({text:e,aboveText:t,appendLeft:i})=>Boolean(e||t||!i),Ne=({className:e,rounded:t,version:i})=>["inline-block",be,i?ge[i]:"",t?"rounded-full":"rounded-md",e].join(" "),we=({className:e,rounded:t,version:i})=>[be,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",i?ue[i]:"",t?"rounded-full":"rounded-md",e].join(" "),ke=g((({disabled:e,children:t,...i})=>{const n=me()(i),r=t??u(fe,{...n});return u(e?Te:Ce,{...n,children:r})})),Ce=g((({className:e="",href:t,rel:i,target:n,ariaLabel:r,version:l,rounded:a,onClick:s,children:o})=>u("a",{className:we({className:e,version:l,rounded:a}),href:t,rel:i,target:n,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),Te=g((({className:e,ariaLabel:t,version:i,rounded:n,children:r})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Ne({className:e,rounded:n,version:i}),children:r}))),_e=g((({className:e,disabled:t,...i})=>u(ke,{rounded:!0,className:`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...i,children:u(de,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16"})}))),Se=g((e=>u(_e,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Ie=g((e=>u(_e,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}))),Re="absolute top-[calc(50%-24px)] z-40",$e="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",Ae=g((({scroll:e,arrowsPadded:t,isBlur:i,onScrollLeft:n,onScrollRight:r,hasEdgeBlocks:a,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:h,scrollRight:m}=e,g=a?s>0:c,b=a?s<o-1:d,f=l((()=>{a?(c&&s!==o-1&&h(),n()):h()}),[h,n,a,c,s,o]),y=l((()=>{a?(d&&0!==s&&m(),r()):m()}),[m,r,a,c,s,o]);return p("div",{children:[je(i,e),g?u(Se,{className:x(Re,t?"left-8":"left-0"),onClick:f}):null,b?u(Ie,{className:x(Re,t?"right-8":"right-0"),onClick:y}):null]})})),je=(e,t)=>e?p("div",{children:[t.canScrollLeft?u("div",{className:x($e,"left-0 bg-opacity-from-white")}):null,t.canScrollRight?u("div",{className:x($e,"right-0 bg-opacity-to-white")}):null]}):null,Pe=g((({className:e="",itemCount:t,visibleItemCount:i,isBlur:r=!0,isCyclic:a=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,...h})=>{const{blocks:m=[]}=h.block||{},g=t||m?.length,[b,f]=n(Math.floor((i||0)/2)),y=l((()=>f((e=>e+1))),[]),N=l((()=>f((e=>e-1))),[]),[w,C]=J({itemCount:g,isCyclic:a}),[T]=C.visibleIndicesRange,_=m&&"CarouselBankHistoryCard"===m[0]?.type;return u($,{className:x(Le(o),"group-data-secondary:bg-primary-main group-data-secondary:text-white",e),...h,children:p("div",{className:x(Be(d),"relative max-w-full"),children:[u(B,{containerRef:w,visibleItemCount:i,snapAlign:"snap-start",gap:16,onVisibleIndicesChange:C.handleVisibleIndicesChange,children:k({...h,renderProps:_?(e,t)=>v(e,t,{blocksLength:m?.length,activeIndex:b}):v})}),u(Ae,{scroll:C,isBlur:r,arrowsPadded:s,onScrollLeft:N,onScrollRight:y,hasEdgeBlocks:_,activeIndex:b,itemCount:g}),c?De(w,T,g):null]})})}));Pe.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const Le=e=>e?"p-default":"",Be=e=>e?"flex justify-center":"",De=(e,t,i)=>u(O,{containerRef:e,activeIndex:t,dotCount:i,listType:"horizontal-list"}),ze={h1:"h1",h2:"h1",h3:"h2",h4:"h2",h5:"h3",h6:"h3"},Ve={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},Me=g((({className:e="",headingType:t="h3",as:i="h3",title:n,children:r})=>{const l=ze[i]||"h3";return u(l,{className:`font-sans m-0 ${Ve[t]} ${e}`,children:n||r})})),Oe=g((({className:e="",href:t,target:i,isRemote:n=!1,children:r})=>{const l=me({isRemote:n})({href:t,target:i});return u(t?"a":"div",{className:x("block",e),...t?l:{},children:r})})),He=g((({className:e="",title:t,icon:i,list:n=[],href:r,target:l,...a})=>u($,{className:x("border border-gray",e),...a,children:p(Oe,{className:"flex",href:r,target:l,children:[p("div",{className:"w-[200px] min-w-[200px] self-center",children:[i?.icon?u(de,{image:i}):null,i?.src?u(de,{image:i}):null]}),p("div",{className:"p-8 pl-3 w-full",children:[t?u(Me,{className:"mb-3.5",headingType:"h5",title:t}):null,n.length?u("div",{className:"flex flex-col gap-3",children:n?.map(Ee)}):null]})]})}))),Ee=(e,t)=>p("div",{className:"break-words",children:[e.title?u("div",{className:"text-h6",children:e.title}):null,e.description?u("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),Fe={L:"w-1.5 h-1.5 mr-4",M:"w-1.5 h-1.5 mr-3",S:"w-1 h-1 mr-2"},Ue=g((({className:e,isDotted:t=!0,children:i,size:n="M"})=>p("div",{className:x("font-sans flex",e),role:"listitem",children:[t?u("div",{className:"shrink-0",children:u("div",{className:x("align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white",Fe[n])})}):null,u("span",{children:i})]}))),Xe={S:"text-l-light",M:"text-h6",L:"text-h5"},Je={S:"ml-2",M:"ml-3",L:"ml-4"},Ge=g((({className:e,hasIndent:t,isDotted:i,items:n,listItemSize:r="M"})=>n?.length?u("section",{className:x("flex flex-col gap-2 text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text",Xe[r],t?Je[r]:"",e),role:"list",children:n.map(((e,t)=>u(Ue,{isDotted:i,size:r,children:e},String(t))))}):null)),We={default:"w-24 h-14",small:"w-12 h-12"},Ye=(e,t)=>e?"":x("group/media flex items-center justify-center box-border",We[t]),Ke=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],qe=g((({buttonSize:e="default",rounded:t=!1,icon:i,...n})=>{const{href:r,version:l,text:a=""}=n,{iconMapped:s,label:o}=Ke.find((({origins:e})=>e.some((e=>r?.includes(e)))))||{},c=Qe(i)??s;return u(ke,{className:x(t?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",Ye(a,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:a,version:l,...n,children:c&&!a?u(de,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),Qe=e=>e?.src||e?.icon?e:void 0,Ze=g((({className:e="",media:t})=>u("div",{className:`flex gap-2 items-start justify-start ${e}`,children:t?.map(((e,t)=>u(qe,{...e},String(t))))}))),et=g((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),tt={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionStyle:"mt-headline-xxl"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light",descriptionStyle:"mt-headline-l"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light",descriptionStyle:"mt-headline-l"},M:{title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light",descriptionStyle:"mt-headline-m"},S:{title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light",descriptionStyle:"mt-headline-s"},XS:{title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light",descriptionStyle:"mt-headline-s"}},it=g((({className:e,title:t,description:i,headlineVersion:n="XL",align:r="text-center",as:l,isPadding:a=!0,isTheme:s=!1,version:o="",...c})=>{const d=tt[n],h=a?"p-default":"",m={marginTop:d.descriptionStyle};return p($,{className:x(h,e),version:o,isTheme:s,...c,children:[t?u(Me,{className:x("whitespace-pre-wrap",r),...d?.title,as:l||d?.title.as,title:t}):null,i?u(et,{size:d.descriptionSize,align:r,...m,children:i}):null]})})),nt=g((({className:e="",description:t,href:i,icon:n,items:r=[],socialMedia:l=[],target:a,title:s,align:o="text-left",...c})=>u($,{className:x("relative box-border p-default group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),...c,children:p(Oe,{href:i,target:a,children:[u(it,{className:"mb-2",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),r.length?u(Ge,{className:"flex flex-col gap-2",items:r,listItemSize:"S"}):null,rt(n),l.length?u(Ze,{className:"mt-5",media:l}):null]})}))),rt=e=>e?.src||e?.icon?u("div",{children:u(de,{image:e})}):null,lt=g((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:i=!1,renderFoldableSection:r,renderFoldButton:a})=>{const[s,o]=n(i),c=l((()=>{o((e=>!e))}),[]),d=r({isUnfolded:s,onToggle:c}),h=a?a({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[h,d]}:{className:e,children:[d,h]})})),at=g((({className:e="",isUnfolded:t,children:i})=>{const n=s(null);return r((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,i?.length]),u("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} ${e}`,children:i})})),st=(e=!1)=>e?"p-default mt-6":"mt-6 p-default",ot=(e,{className:t="",buttonClassName:i,isVertical:n}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:x("flex",n?"flex-col gap-2":"flex-wrap gap-4",t),children:e.map(ct(i))}):null,ct=(e="")=>(t,i)=>{const{text:n,icon:r,iconRight:l,version:a,...s}=t||{},o="secondary"===a?"color":"white",c=r?.iconVersion?r?.iconVersion:o;return n||r?.icon?u(ke,{className:e,appendLeft:dt({...r,iconVersion:c}),appendRight:dt({...l,iconVersion:c}),version:a,text:n,...s},i?String(i):""):null},dt=e=>e?.icon||e?.src?u(de,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,ht=g((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),mt=(e,t)=>{const{title:i,description:n,buttons:r}=e;return p("div",{className:"py-5 border-b border-main-divider",children:[i?u("div",{className:"opacity-80",children:u(ht,{size:"text-m",color:"text-secondary-text",children:i})}):null,n?u("div",{className:"mt-1",children:u(ht,{size:"text-l",color:"text-primary-text",children:n})}):null,r?.length?u("div",{className:"text-primary-main",children:ot(r)}):null]},String(t))},ut=g((({className:e="",title:t,icon:i,isHighlighting:n=!1,button:r,cardCells:l=[],...a})=>{const s=l.map(mt),o=s.slice(0,1),c=s.slice(1);return p($,{className:x("relative border border-gray flex flex-col",st(n),e),...a,children:[n?bt():null,pt(i),t?u(Me,{className:"text-center pt-2",headingType:"h5",title:t}):null,r?u(ke,{className:"w-full mt-4",...r}):null,l.length?u(lt,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[o,u(at,{isUnfolded:e,children:c})]}),renderFoldButton:l.length>1?gt:null}):null]})})),pt=e=>u("div",{className:"w-[267px] min-w-[267px] self-center",children:e?.src||e?.icon?u(de,{image:e}):null}),gt=({isUnfolded:e,onToggle:t})=>p("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(te,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),bt=()=>p("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(te,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(et,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),xt=g((({className:e="",gap:t=14,padding:i=16,showDots:n=!0,minHeight:r,children:l,onVisibleIndicesChange:a,listType:s="horizontal-list",version:o})=>{const c=Array.isArray(l)?l.length:0,[d,h]=J({itemCount:c,onVisibleIndicesChange:a}),[m]=h.visibleIndicesRange;return p("div",{className:x(e,"vertical-list"===s?"relative h-full":""),children:[u(B,{containerRef:d,activeIndex:m,visibleItemCount:1,gap:t,padding:i,onVisibleIndicesChange:h.handleVisibleIndicesChange,listType:s,minHeight:r,children:l}),n?u(O,{containerRef:d,activeIndex:m,dotCount:c,listType:s,version:o}):null]})})),ft=(e=!1)=>e?"text-white":"",yt=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),vt=g((({icon:e,image:t,title:i,subtitle:n,isFillGradient:r})=>p("div",{role:"columnheader",children:[e?u(de,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&u("div",{className:"mb-3.5",children:u(de,{image:t})}),i?u(Me,{headingType:"h4",className:ft(r),title:i}):null,n?u("div",{className:yt(r),children:n}):null]}))),Nt=g((({cell:e,rowHeader:t,isFillGradient:i=!1})=>u("div",{className:"box-border flex flex-col",role:"cell",children:u("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(wt(i,t))})}))),wt=(e,t)=>({label:i,description:n},r)=>p("div",{className:"flex justify-between text-s py-3.5",children:[u("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),p("div",{className:"basis-1/2",children:[i?u("div",{className:"text-right "+(e?"text-white":""),children:i}):null,n?u("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:n}):null]})]},String(r)),kt=g((({header:e,columnData:t,visibleRowLength:i=0,isFillGradient:n,showRow:r,onToggleColumn:l})=>{const a=t?.slice(0,r?t.length:i),s=n?"secondary":"primary";return p("div",{className:`border border-gray rounded-md p-4 mb-3.5 ${n?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[u(vt,{...e,isFillGradient:n}),a?.length?a.map((({rowHeader:e,cell:t},i)=>u(Nt,{cell:t,rowHeader:e,isFillGradient:n},String(i)))):null,r&&e?.link?u(ke,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}):null,Ct({onToggleColumn:l,isFillGradient:n,showRow:r})]})})),Ct=({onToggleColumn:e,isFillGradient:t,showRow:i})=>u("div",{className:"mt-5",role:"cell",children:u("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:i?"Скрыть":"Показать описание"})}),Tt=g((e=>{const{className:t,title:i}=e;return p("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${t||""}`,children:[i?u(Me,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:i}):null,u("div",{role:"table",children:u(_t,{...e})})]})})),_t=g((({columns:e=[],rowHeaders:t,isColoredFirstColumn:i,visibleRowLength:r,orientation:a,...s})=>{const[o,c]=n(new Array(e.length).fill(!r)),d=l((e=>{const t=(t,i)=>i===e?!t:t;c((e=>e.map(t)))}),[]),h=l((()=>c((e=>new Array(e.length).fill(!1)))),[]),m=e?.map((({data:e,header:n},l)=>{return u(kt,{visibleRowLength:r,showRow:o[l],header:n,columnData:(a=e,a?.map(((e,i)=>({cell:e,rowHeader:t?.[i]?.title})))),isFillGradient:0===l&&i,onToggleColumn:()=>d(l),...s},String(l));var a}));return"horizontal"===a?u(xt,{onVisibleIndicesChange:h,children:m}):m})),St=e=>null!=e,It=new Map;function Rt(e,t,{fallback:i,cache:l}={}){const s=a((()=>$t(e)),[e]),[o]=(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)?s:[],[c,d]=n(void 0),[h,m]=n(void 0);r((()=>{!s.some(St)||(async()=>{try{const e=await(o?((e,t=It)=>i=>{const n=t.get(i);if(St(n))return n;const r=e(i);return St(r)?t.set(i,Promise.resolve(r)):t.delete(i),r})(t,l)(o):t(...s));d(e),m(void 0)}catch(e){d(void 0),m(e)}})()}),[t,l,s]);const u=i&&o&&i[o];return{data:!c&&u?u:c,error:h,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function $t(e){return Array.isArray(e)?e:e instanceof Function?$t(e()):[e]}async function At(e,t){const i=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await i.json()}const jt={};function Pt(e,t={}){const{data:i}=Rt(`/wcms-resources/${e}.json`,At,{fallback:t});return i||jt}const Lt=g((({className:e="",items:t})=>t?.length?u("ul",{className:x("flex flex-col p-0","",e),children:t.map(Bt)}):null)),Bt=(e,t)=>{const{text:i,...n}=e;return u("li",{className:"list-none mb-4 sm:mb-6 sm:last:mb-0",children:u("a",{className:"hover:text-primary-main sm:font-light",role:"link",...n,children:i||null})},`list_item_${String(t)}`)},Dt=g((({className:e="",label:t,icon:i,dataTheme:n="",disabled:r=!1,onClick:l})=>p("button",{className:x("flex justify-center w-full px-0 py-4 border border-transparent outline-none focus:border-primary-text",r?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:l,disabled:r,"data-theme":n,children:[u("span",{className:"text-h4 pr-3",children:t}),i?u(de,{image:{icon:i,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),zt={primary:"bg-main-divider",secondary:"bg-white/30","secondary-light":"bg-secondary-light"},Vt=g((({iconBgVersion:e="primary",...t})=>u("div",{className:x("rounded-icon p-2.5 mr-3",zt[e]),children:u(te,{...t})}))),Mt=e=>e?"ArrowUpSolidIcon":"ArrowDownSolidIcon",Ot=g((({className:e="",label:t="Развернуть",labelIcon:i,isExpanded:n,isFoldButtonOnTop:r=!0,version:l="primary",...a})=>u($,{className:x("w-full","",e),tag:"div",version:"transparent",...a,children:u(lt,{isFoldButtonOnTop:r,unfoldedByDefault:n,renderFoldableSection:({isUnfolded:e})=>u(at,{className:x("gap-5 [&>*]:p-0","flex flex-wrap group-last:last:pb-0"),isUnfolded:e,children:k(a)}),renderFoldButton:({isUnfolded:e,onToggle:n})=>Ht({version:l,label:t,labelIcon:i,isUnfolded:e,onToggle:n})})})));Ot.childrenTypes={exclude:["RollupItem"]};const Ht=({version:e,label:t,labelIcon:i,isUnfolded:n,onToggle:r})=>{const l=t||(n?"Скрыть":"Развернуть");return"primary"===e?Et({label:l,labelIcon:i,icon:Mt(n),onToggle:r}):u(Dt,{label:l,icon:n?"ArrowUpIcon":"ArrowDownIcon",onClick:r})},Et=({label:e,icon:t,onToggle:i,labelIcon:n})=>{const r=String(n?.size?.width||24),l=String(n?.size?.height||24),a=n?.icon;return p("button",{className:x("border-none bg-transparent px-0 flex justify-between items-center w-full cursor-pointer group/button",a?"py-2":"py-5"),onClick:i,children:[p("div",{className:"flex items-center group-hover/button:text-primary-main",children:[a?u(Vt,{name:a,width:r,height:l,iconVersion:n?.iconVersion}):null,e?u(ht,{size:"text-l",font:"font-normal",children:e}):null]}),t?u(te,{name:t,iconVersion:"normal",width:"24",height:"24"}):null]})},Ft=g((({className:e="",items:t,hasButton:i})=>p("div",{className:e,children:[t?.length?t.map(Ut):null,i?u(ke,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Ut=(e,t)=>{const{type:i,text:n,description:r}=e;return p("div",{className:"mb-4",children:[u("div",{children:Xt(i,n)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},Xt=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Jt(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},Jt=e=>e.replaceAll(/\D/g,""),Gt=g((({className:e="",index:t,text:i,...n})=>{const r=me(),{href:l,target:a,onClick:s}=r(n);return u("a",{className:x("",e),href:l,target:a,onClick:s,children:i||`Документ ${t}`})})),Wt=g((({title:e,links:t,className:i=""})=>p("div",{className:i,children:[u(ht,{size:"text-h6",children:e}),t?.length?u("div",{className:"flex flex-col gap-6 mt-7",children:t.map(((e,t)=>u(Gt,{index:t,...e},String(t))))}):null]}))),Yt=g((({className:e="",index:t,...i})=>{const n=me({isRemote:!0}),{href:r,target:l,text:a,onClick:s}=n(i);return u("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:s,children:a||`Документ ${t}`})})),Kt=g((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-4 xl:pt-5",children:u(ht,{size:"text-s",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-4",children:t.map(((e,t)=>u(Yt,{index:t,...e},String(t))))}):null]}))),qt=g((({className:e="",...t})=>{const i=t.options?.page?.fallback,n=Pt(d.SITEMAP||"sitemap",i),{documents:r,relatedEnterprises:l,contacts:a,socialMedia:s,horizontalNavigationTitle:o}=Pt(d.FOOTER||"footer",i);return p($,{tag:"footer",className:x("px-4 py-6",e),...t,children:[u("div",{className:"mb-4 pb-5 border-b border-main-divider",children:n.topItems?.map(((e,t)=>u(Ot,{label:e?.text,labelIcon:e?.icon,children:u(Lt,{items:e.items,className:"my-3"})},String(t))))}),u(Ft,{className:"overflow-hidden",items:a}),u(Ze,{className:"mb-4",media:s}),u(ke,{className:"w-full mb-4",text:"Google Play",version:"secondary",href:"/",target:"_blank"}),u(Wt,{className:"pt-4 pb-7 border-y border-main-divider",title:o,links:l}),u(Kt,{})]})})),Qt={"bg-white":"color",transparent:"white"},Zt={"bg-white":"text-primary-main",transparent:"text-white"},ei=(e,t,i)=>u(de,t?.src?{image:t,className:Zt[e],width:i?.width,height:i?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:Qt[e]},className:Zt[e],width:i?.width,height:i?.height}),ti={"bg-white":"text-primary-text",transparent:"text-white"},ii=(e,t,i)=>u("span",{className:`${ti[t]} ml-2.5 font-medium ${i||""}`,children:e||"Россельхозбанк"}),ni=g((({bgColor:e="bg-white",children:t,className:i="",href:n,logo:r,showTitle:l=!0,targetBlank:a})=>p("a",{className:`inline-flex items-center font-sans no-underline ${i}`,href:n||"https://rshb.ru/",target:a?"_blank":"_self","aria-label":r?.title||"Россельхозбанк",children:[ei(e,r?.image,{width:"34",height:"34"}),l?ii(t||r?.title,e,"text-s"):null]}))),ri={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},li=g((({bgColor:e,logo:t,internetBankUrl:i,version:n,mobileHeaderType:r,mobileTitle:l,mobileBackwardButtonTitle:a})=>{const s="none"===r,o="withTitle"===r;return p("div",{className:"flex items-center justify-between w-full",children:[s||o?u(ni,{bgColor:e,logo:t,showTitle:s}):null,o?l:null,"backwardButton"===r?p(ke,{className:"flex items-center text-l",children:[u(de,{className:"w-6 h-6",image:{icon:"ChevronLeft",iconVersion:"black"}}),a]}):null,i?u(ke,{href:i,ariaLabel:"Войти",target:"_blank",className:x("p-3 my-1 text-s whitespace-nowrap text-primary-main hover:text-primary-hover",ri["transparent"===n?"transparent":"default"]),children:"Войти"}):null]})})),ai={"bg-white":"primary",transparent:"transparent"},si=g((({bgColor:e="bg-white",version:t=ai[e],mobileHeaderType:i="none",...n})=>{const r=n.options?.page?.fallback,{logo:l,internetBankUrl:a}=Pt(d.SITEMAP||"sitemap",r);return u($,{tag:"header",version:t,...n,children:u("div",{className:"container px-4 py-1 box-border",children:u(li,{bgColor:e,logo:l,internetBankUrl:a,version:t,mobileHeaderType:i,...n})})})})),oi=g((e=>{const{className:t,image:i,...n}=e;return u($,{className:t,...n,children:u(de,{image:i})})})),ci=g((({doc:e,icon:t})=>{const{text:i,fileSize:n,...r}=e;return p("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...r,children:[t,i?p(ht,{size:"text-l",font:"font-light",children:[i,u(ht,{color:"text-secondary-text",children:r?.href&&di(hi(r.href),n)})]}):null]})})),di=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),hi=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},mi=g((({className:e="",title:t,description:i,icon:n={icon:"DocDownloadIcon",iconVersion:"black"},documents:r,align:l,...a})=>p($,{className:x("p-default",e),...a,children:[u(it,{isPadding:!1,title:t,description:i,align:l,headlineVersion:"M",as:"h2"}),r?.length?u("div",{className:"mt-5 flex flex-col gap-6",role:"list",children:r.map(((e,t)=>u("div",{role:"listitem",children:u(ci,{doc:e,icon:n?u(de,{className:"min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md",image:n,width:"24",height:"24"}):null})},String(t))))}):null]}))),ui=g((({className:e="",title:t="Мобильное приложение",description:i,href:n="#"})=>u("div",{className:x("col-span-12 rounded-md cursor-pointer p-4 bg-secondary-light font-sans",e),children:n?p("div",{className:"flex",children:[u("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-12 h-12",children:u(ni,{className:"w-8",bgColor:"transparent",showTitle:!0})}),p("a",{href:n,target:"_blank",className:"flex flex-col justify-center pl-3",children:[u("div",{className:"text-s font-medium mb-[3px]",children:t}),u("div",{className:"text-s text-secondary-text",children:i})]})]}):null}))),pi=e=>{const t="col-span-",i=e?.split(/\s+/).find((e=>e.startsWith(t)));return i?parseInt(i.substring(t.length),10):12};function gi(e=""){const t=pi(e);return t<=4?"S":t<=8?"M":"L"}function bi(e=""){const t=pi(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function xi(e=""){const t=pi(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const fi=g((({className:e,title:t,description:i="Блок в разработке...",...n})=>p($,{className:x("p-9 box-border",e,xi(e),bi(e)),...n,children:[u(it,{className:"!p-0 max-w-[600px]",title:t,description:i,headlineVersion:gi(e)}),u("figure",{className:"m-0 min-w-[80%]",children:yi()})]}))),yi=(e=3)=>Ni(100,e).map((e=>Math.floor(e))).map(vi),vi=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Ni=(e,t)=>[e].concat(t>0?Ni(e/1.618,t-1):[]),wi=g((e=>{const{__html:t="",richVersion:i=""}=e;return u("div",{className:x(i,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),ki=g((({className:e,title:t="",insetTitle:i="",buttons:n,leftImage:r,rightImage:l,backImage:a,children:s})=>p("div",{className:x("relative flex flex-col font-sans",e),children:[a?u("div",{className:"absolute bottom-0 right-0 z-0",children:a}):null,t,p("div",{className:"grow relative flex flex-wrap sm:flex-nowrap justify-between items-stretch gap-8",children:[Ci(r),p("div",{className:x("flex flex-col gap-8",r?"":"grow"),children:[i,u("div",{className:"grow",children:s}),n]}),Ci(l,{className:"-order-1 sm:order-1"})]})]}))),Ci=(e,{className:t}={})=>e?u("div",{className:x("flex-none",t),children:e}):null,Ti=g((({className:e,icon:t,label:i,description:n,version:r="primary",benefitsVersion:l="normal"})=>p("div",{className:x("flex gap-5",n?"items-start":"items-center",e),children:[t?u("div",{className:_i(r,l),children:u(de,{className:"w-6 h-6",image:{...t,iconVersion:t.iconVersion||l}})}):null,p("div",{children:[i?u(ht,{size:"text-h6",color:"text-primary-text group-data-secondary:text-white",children:i}):null,n?u(et,{size:"text-m-light",color:"text-secondary-text group-data-secondary:text-white",children:n}):null]})]})));function _i(e,t){let i="bg-primary-main text-black";return"secondary"===e?i="bg-white/30 text-black":"normal"===t&&(i="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${i}`}const Si=(e="primary",t="normal")=>(i,n)=>u(Ti,{version:e,benefitsVersion:t,...i},String(n)),Ii=g((({className:e,version:t="primary",headlineVersion:i="L",title:n,description:r,benefits:l,benefitsVersion:a,items:s,isDotted:o=!0,__html:c,buttons:d,image:h,directionRight:m=!0})=>{const g=l?.filter((e=>e.label)),b=h?.src?u(de,{className:"mt-[-50px]",image:h}):null;return p(ki,{className:e,insetTitle:u(it,{className:"max-w-[600px] xl:max-w-[728px]",title:n,description:r,headlineVersion:i,align:"text-left",isPadding:!1}),...m?{rightImage:b}:{leftImage:b},buttons:ot(d),children:[g?.length?u("div",{className:"flex flex-wrap gap-6",children:g.map(Si(t,a))}):null,c?u("div",{className:"mt-5",children:u(wi,{__html:c})}):null,s?.length?u(Ge,{className:"mt-5",items:s,isDotted:o}):null]})}));function Ri({text:e,href:t,target:i,icon:n},r){const l="primary"===r?"white":"black",a={text:e,href:t,target:i,ariaLabel:e};return p("div",{className:"flex items-center gap-3",children:[u(ke,{className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",version:r,rounded:!0,...a,children:u(de,{className:"w-4 h-4",image:{...n,icon:n?.icon||"ArrowLeftIcon",iconVersion:n?.iconVersion||l}})}),u(ke,{version:"link",...a})]})}const $i=g((({className:e,backwardButton:t,...i})=>p($,{className:x("overflow-hidden p-default flex flex-col gap-10 box-border",e),...i,children:[t?.text?Ri(t,i.version&&"primary"!==i.version?"white":"primary"):null,u(Ii,{className:"grow",...i})]}))),Ai=g((({className:e="",slides:t=[],...i})=>{const n=t.map((e=>e.productBlock));return u($,{className:`box-border py-6 overflow-hidden relative w-100 mb-6 ${e}`,...i,children:u(xt,{gap:0,padding:0,children:n.map(((e,t)=>ji({...e,...i},t)))})})})),ji=(e,t)=>u(Ii,{className:"z-10 px-5 group-data-secondary:text-white",...e},String(t)),Pi=g((e=>{const{__html:t,richVersion:i,...n}=e;return u($,{...n,children:u(wi,{__html:t,richVersion:i})})}));function Li(e){throw new Error(e)}const Bi={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-12 w-12 min-w-12 min-h-12"},Di={normal:"min-h-[70px]",small:"min-h-12"},zi={description:"text-white/80 text-l-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},Vi=g((({className:e="",title:t,description:i,showLines:n=!0,steps:r,size:l="normal",version:a="primary",...s})=>p($,{className:`box-border px-4 py-6 flex flex-col ${e}`,version:a,...s,children:[t?u(Me,{headingType:"h3",className:"text-center",title:t}):null,i?u("p",{className:`text-m-light text-center ${zi.description} ${t?"mt-2":""}`,children:i}):null,r?.length?u("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:u("div",{className:"flex flex-col justify-between gap-x-[101px]",children:r.map(Mi(l,a,n))})}):null]}))),Mi=(e,t,i)=>(n,r,l)=>{const{type:a}=n;if("default"!==a&&"rte"!==a)return null;switch(a){case"default":return Oi(e,t,i)(n,r,l);case"rte":return u(wi,{__html:n.__html});default:Li(n)}},Oi=(e,t,i)=>(n,r,l)=>{const a=l.length-1===r,s="normal"===e?"ml-[34px]":"ml-6";return u("div",{children:p("div",{className:"flex flex-row text-center relative",children:[p("div",{className:"overflow-hidden flex-shrink-0",children:[Hi(e,t)(n,r),a?null:u("div",{className:`min-h-8 h-full w-0.5 ${i?zi.iconConnector:""} ${s}`})]}),p("div",{className:`flex flex-col justify-center h-fit ${Di[e]}`,children:[n.label?u("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:n.label}):null,n.description?u("div",{className:`text-s ${zi.description} text-left`,children:n.description}):null]})]})},String(r))},Hi=(e,t)=>(i,n)=>{const r="normal"===e?"38":"27",l="secondary"===t?"white":"color";return u("div",{className:`${Bi[e]} ${zi.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:u("span",{className:`font-medium flex self-center ${"normal"===e?"text-m-title":"text-m-title-xs"}`,children:(a=i?.icon,Boolean(a?.icon||a?.src)?u(de,{image:{...i.icon,iconVersion:i.icon?.iconVersion||l},width:r,height:r}):u("span",{children:n+1}))})});var a},Ei={Buttons:({buttons:e})=>ot(e,{className:"mt-3",buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?u(de,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>u(Ge,{className:"flex flex-col justify-between items-start text-m",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-s text-secondary-text",children:t}):null]})},Fi=g((({title:e,icon:t})=>p("div",{className:"flex gap-2.5 mb-2",children:[e?u(Me,{headingType:"h3",className:"font-medium",title:e}):null,t?u(de,{className:"ml-auto min-w-6",image:t,width:"24",height:"24"}):null]}))),Ui=g((({tile:e,...t})=>p("div",{className:"rounded-md border-gray h-full box-border border p-4",children:[u(Fi,{...e?.header}),e?.data?.length?e.data.map(((e,i)=>p("div",{children:[i>0?u("div",{className:"h-5"}):null,Xi(e,t)]},String(i)))):null]})));function Xi(e,t){if(!e||!e.tableCellType||!(e.tableCellType in Ei))return null;const i=Ei[e.tableCellType];return u(i,{displayTable:()=>null,isVisible:!0,...e,...t})}const Ji=g((({tiles:e,...t})=>e?.length?u(xt,{...t,children:e.map(((e,i)=>u(Ui,{tile:e,...t},String(i))))}):null)),Gi=g((({tiles:e,...t})=>e?.length?u("div",{className:"flex flex-col gap-3.5",children:e.map(((e,i)=>u(Ui,{tile:e,...t},String(i))))}):null)),Wi=g((({className:e,title:t,description:i,tariffsColumns:n,rowHeaders:r,orientation:l="vertical",...a})=>{const s=Yi(n),o=Ki(r,s);return p("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[t?u(Me,{headingType:"h2",className:`text-center ${i?"mb-2":"mb-5"}`,title:t}):null,i?u("div",{className:"mb-5 text-center text-m",children:i}):null,u("vertical"===l?Gi:Ji,{tiles:o,...a})]})})),Yi=e=>e?.[0]?.data?e[0].data:[],Ki=(e,t)=>e?.map(((e,i)=>({header:e,data:t?.[i]||[{}]}))),qi=g((({className:e="",title:t,description:i,iconVersion:n,image:r,__html:l,items:a=[],...s})=>p($,{className:x("px-9 py-4 flex gap-3 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===n?u("div",{className:"mt-1",children:Qi()}):null,"big"===n?Zi(r):null,p("div",{className:"flex flex-col w-fit gap-3",children:[t?u(ht,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:t}):null,i?en(i):null,a?.length?tn(a,!0):null,l?u(wi,{__html:l}):null]})]}))),Qi=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),Zi=e=>e?.src?u(de,{className:"h-fit",image:e}):null,en=e=>u(et,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),tn=(e,t)=>u("ul",{className:x("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-6":""),children:e.map(((e,t)=>u("li",{children:u(ht,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),nn={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},rn={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},ln=g((({className:e="",gap:t="",align:i="stretch",isPadding:n=!1,isInnerPadding:r=!0,version:l="transparent",isTheme:a=!1,...s})=>{const o=r?"":"!p-0";return u($,{className:x("relative","flex flex-col [&>*]:max-w-full",n?"p-default":"",nn[t],i&&rn[i],e),version:l,isTheme:a,...s,children:k({...s,renderProps:(e,t)=>v(e,t,{className:o})})})}));ln.childrenTypes=[];const an={Carousel:Pe,CarouselTariffsCard:ut,ComparisonTable:Tt,Footer:qt,Header:si,Headline:it,ImgBlock:oi,LinkDocs:mi,MobileAppTile:ui,Placeholder:fi,ProductBlock:$i,StepsBlock:Vi,TariffsTable:Wi,TextBlock:qi,RichTextBlock:Pi,RollupItem:Ot,VerticalLayout:ln,CarouselRecommendationCard:nt,CarouselProgramsCard:He,ProductGallery:Ai};function sn(e=!1){const[t,i]=n(e),r=l((()=>i(!0)),[]),a=l((()=>i(!1)),[]),s=l((()=>i((e=>!e))),[]);return[t,{setValue:i,setTrue:r,setFalse:a,toggle:s}]}const on=["Header","Footer"],cn=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function dn(e=globalThis){const t=s(new Map);r((()=>I.subscribe("intersection",(({block:e,intersection:i})=>{t.current&&t.current.set(e,i)}))),[]),r((()=>{const i=((e,t=600)=>{let i;const n=(...r)=>{n.dispose(),i=setTimeout((()=>{e(...r)}),t)};return n.dispose=()=>{i&&clearTimeout(i)},n})((()=>{!function(e){const t=`#${i=e?.anchor,i?.replace("#","")||""}`;var i;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!on.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[i]=t.length>0?F(cn)(t):[];return i}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",i),()=>{i.dispose(),e.removeEventListener("scroll",i)}}),[e])}const hn=g((({className:e,onClick:t})=>u("button",{className:x("flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(de,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function mn({onOpen:e,onClose:t}={}){r((()=>T.subscribe("dialog",(i=>{switch(i.type){case"open":e&&e(i);break;case"close":t&&t();break;default:Li(i)}}))),[e,t])}const un="cookieClose",pn=g((({termLink:e,personalDataPolicyLink:t})=>{const{isOpened:i,onClose:r}=function(e,t=!1){const[i,{setTrue:r,setFalse:a}]=sn(t),[o,c]=n({id:e}),d=s(i);d.current||=i,mn({onOpen:l((t=>{t.id===e?(c(t),r()):a()}),[e]),onClose:a});const h=l((()=>{a(),T.fire("dialog",{type:"close"})}),[]);return{...o,isOpened:i,wasOpened:d.current,onClose:h}}("cookie",!globalThis.localStorage?.getItem(un)),a=l((()=>{globalThis.localStorage?.setItem(un,"true"),r&&r()}),[r]);return i?u("div",{className:"container z-40 fixed bottom-0 left-0 right-0 pointer-events-none",children:p("div",{className:"bg-white m-6 p-6 rounded-md flex items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"flex-1",children:p(et,{size:"text-s-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(Oe,{isRemote:!0,className:x(gn(e?.href)),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(Oe,{isRemote:!0,className:x(gn(t?.href)),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"w-24 flex justify-end",children:u(hn,{className:"bg-main-gray rounded-md",onClick:a})})]})}):null})),gn=e=>["inline mx-1",e?"text-green-dark":""],bn=m();const xn=g((({className:e,onClick:t,ariaLabel:i})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":i,children:fn()}))),fn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},yn=g((({className:e=""})=>{const t=function(e){const[t,i]=n(0);return r((()=>{(async()=>{const[t]=await bn.getLikeCount(e);i(t?.value||0)})()}),[e]),{likeCount:t,like:l((async()=>{i(await bn.like(e))}),[e]),dislike:l((async()=>{i(await bn.dislike(e))}),[e])}}(G().pathname);return p("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(xn,{onClick:he(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(xn,{onClick:he(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),vn=g((e=>{const{className:t="",blocksRegistry:i,blockDecorator:n,data:r={}}=e,{style:l,blocks:a,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",page:r,blocksRegistry:i,blockDecorator:n,parent:r};dn();const[h,{setTrue:m,setFalse:g}]=sn();return mn({onOpen:m,onClose:g}),p("section",{className:x("relative",l,t,h?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:w(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[w(a,d),s?.footer?w(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(yn,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null,u(pn,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}})]})}));vn.childrenTypes=[],vn.slots=()=>["header","footer"];e.Blocks=an,e.ContentPage=vn,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),i=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await i.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=m,e.handlerDecorator=he,e.joinList=e=>t=>t.reduce(((t,i,n)=>t.length?t.concat({...e,key:`sep-${n}`},i):[i]),[]),e.packageVersion="0.11.2",e.projectSettings=d,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=q,e.useRouter=G,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreditCalculatorParamsViewSettings } from './CalculatorContent';
|
|
2
|
+
import { CommonCreditParams, CreditCalculatorUserInputParams } from './useCreditCalculatorParams';
|
|
3
|
+
interface CheckSourceBookRowProps {
|
|
4
|
+
row: CommonCreditParams;
|
|
5
|
+
userInputParams: CreditCalculatorUserInputParams;
|
|
6
|
+
paramsViewSettings?: CreditCalculatorParamsViewSettings;
|
|
7
|
+
}
|
|
8
|
+
export declare const checkCreditSourceBookRowCommonParams: (props: CheckSourceBookRowProps) => boolean;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreditCalculatorParamsViewSettings } from './CalculatorContent';
|
|
2
|
+
import { CreditCalculatorSourceBookLimitParams, CreditCalculatorUserInputParams } from './useCreditCalculatorParams';
|
|
3
|
+
interface GetCreditCalculatorLimitParamsProps {
|
|
4
|
+
limitRows: CreditCalculatorSourceBookLimitParams[];
|
|
5
|
+
userInputParams: CreditCalculatorUserInputParams;
|
|
6
|
+
paramsViewSettings?: CreditCalculatorParamsViewSettings;
|
|
7
|
+
}
|
|
8
|
+
export declare const getCreditCalculatorLimitParams: ({ limitRows, userInputParams, paramsViewSettings, }: GetCreditCalculatorLimitParamsProps) => CreditCalculatorSourceBookLimitParams | undefined;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CreditCalculatorParamsViewSettings } from './CalculatorContent';
|
|
2
|
+
import { CreditCalculatorSourceBookRateParams, CreditCalculatorUserInputParams } from './useCreditCalculatorParams';
|
|
3
|
+
interface GetCreditCalculatorRateParamsProps {
|
|
4
|
+
rateRows: CreditCalculatorSourceBookRateParams[];
|
|
5
|
+
userInputParams: CreditCalculatorUserInputParams;
|
|
6
|
+
paramsViewSettings?: CreditCalculatorParamsViewSettings;
|
|
7
|
+
moneyValue: number;
|
|
8
|
+
monthsValue: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const getCreditCalculatorRateParams: ({ rateRows, userInputParams, paramsViewSettings, moneyValue, monthsValue, }: GetCreditCalculatorRateParamsProps) => CreditCalculatorSourceBookRateParams;
|
|
11
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const getLimitRangeByKeys: <MinKey extends string, MaxKey extends string, T extends Record<MinKey | MaxKey, number>>([minKey, maxKey]: [MinKey, MaxKey], limitParams?: T | undefined, rateRows?: T[]) => {
|
|
2
|
-
[x: string]:
|
|
2
|
+
[x: string]: number;
|
|
3
3
|
};
|
|
4
4
|
export declare const getRangeByKeys: <MinKey extends string, MaxKey extends string, T extends Record<MinKey | MaxKey, number>>([minKey, maxKey]: [MinKey, MaxKey], rows?: T[]) => {
|
|
5
|
-
[x: string]:
|
|
5
|
+
[x: string]: number;
|
|
6
6
|
};
|
|
7
7
|
export declare const getMergeRangesByKeys: <MinKey extends string, MaxKey extends string, T extends Record<MinKey | MaxKey, number>>([minKey, maxKey]: [MinKey, MaxKey], rows?: T[]) => number[][];
|
|
8
8
|
export declare const checkRangeByKeys: <MinKey extends string, MaxKey extends string, T extends Record<MinKey | MaxKey, number>>(value: number, [minKey, maxKey]: [MinKey, MaxKey], sourceBookRow: T) => boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UniBlockProps } from '../../model/JSXBlock';
|
|
2
2
|
import type { HeaderContent } from './HeaderContent';
|
|
3
|
-
export interface
|
|
3
|
+
export interface HeaderMobileProps extends HeaderContent, UniBlockProps {
|
|
4
4
|
}
|
|
5
|
-
export declare const Header: import("@redneckz/uni-jsx").UNIComponent<
|
|
5
|
+
export declare const Header: import("@redneckz/uni-jsx").UNIComponent<HeaderMobileProps, any, any>;
|
|
@@ -21,10 +21,22 @@ export declare type Logo = ImageContent & {
|
|
|
21
21
|
/** @title Текст логотипа */
|
|
22
22
|
title?: string;
|
|
23
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* @title Мобильный тип шапки
|
|
26
|
+
* @enumNames ["Не выбрано", "Название", "Кнопка возврата"]
|
|
27
|
+
*/
|
|
28
|
+
export declare type MobileHeaderType = 'none' | 'withTitle' | 'backwardButton';
|
|
29
|
+
export interface MobileHeaderProps {
|
|
30
|
+
mobileHeaderType?: MobileHeaderType;
|
|
31
|
+
/** @title Название (мобильная версия) */
|
|
32
|
+
mobileTitle?: string;
|
|
33
|
+
/** @title Кнопка возврата (мобильная версия) */
|
|
34
|
+
mobileBackwardButtonTitle?: string;
|
|
35
|
+
}
|
|
24
36
|
/**
|
|
25
37
|
* @title Шапка (для мобильных горизонтальная прокрутка shift+mouseScroll)
|
|
26
38
|
*/
|
|
27
|
-
export interface HeaderContent {
|
|
39
|
+
export interface HeaderContent extends MobileHeaderProps {
|
|
28
40
|
/** @hidden */
|
|
29
41
|
showSubMenu?: boolean;
|
|
30
42
|
/** @hidden */
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { BgColorVersion } from '../../model/BgColorVersion';
|
|
2
2
|
import type { LogoType } from '../../model/LogoType';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import type { BlockVersion } from '../../model/BlockVersion';
|
|
4
|
+
import type { MobileHeaderProps, MobileHeaderType } from './HeaderContent';
|
|
5
|
+
export interface HeaderTopProps extends MobileHeaderProps {
|
|
5
6
|
bgColor?: BgColorVersion;
|
|
6
7
|
logo?: LogoType;
|
|
8
|
+
internetBankUrl?: string;
|
|
9
|
+
version?: BlockVersion;
|
|
10
|
+
mobileHeaderType?: MobileHeaderType;
|
|
7
11
|
}
|
|
8
12
|
export declare const HeaderTop: import("@redneckz/uni-jsx").UNIComponent<HeaderTopProps, any, any>;
|
|
@@ -27,6 +27,7 @@ export declare enum IconMap {
|
|
|
27
27
|
CardWithGemIcon = "CardWithGemIcon",
|
|
28
28
|
CarIcon = "CarIcon",
|
|
29
29
|
ChartSquareIcon = "ChartSquareIcon",
|
|
30
|
+
ChevronLeft = "ChevronLeft",
|
|
30
31
|
CinemaIcon = "CinemaIcon",
|
|
31
32
|
ClientIcon = "ClientIcon",
|
|
32
33
|
ClockIcon = "ClockIcon",
|
|
@@ -139,6 +140,7 @@ export declare enum IconTitleMap {
|
|
|
139
140
|
CardWithGemIcon = "\u041A\u0430\u0440\u0442\u0430 \u0441 \u0434\u0440\u0430\u0433\u043E\u0446\u0435\u043D\u043D\u043E\u0441\u0442\u044F\u043C\u0438",
|
|
140
141
|
CarIcon = "\u041C\u0430\u0448\u0438\u043D\u0430",
|
|
141
142
|
ChartSquareIcon = "\u0414\u0435\u043D\u044C\u0433\u0438 \u0432\u043D\u0443\u0442\u0440\u0438 \u043A\u043E\u0448\u0435\u043B\u044C\u043A\u0430",
|
|
143
|
+
ChevronLeft = "\u0421\u0442\u0440\u0435\u043B\u043A\u0430 '\u0412\u043F\u0440\u0430\u0432\u043E'",
|
|
142
144
|
CinemaIcon = "\u041A\u0438\u043D\u043E\u0442\u0435\u0430\u0442\u0440",
|
|
143
145
|
ClientIcon = "\u041A\u043B\u0438\u0435\u043D\u0442",
|
|
144
146
|
ClockIcon = "\u0427\u0430\u0441\u044B",
|
|
@@ -228,7 +230,7 @@ export declare enum IconTitleMap {
|
|
|
228
230
|
* @title Иконка
|
|
229
231
|
* @enumNames [
|
|
230
232
|
* "",
|
|
231
|
-
* 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Сумка', 'Банк', 'BriefcaseIcon', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Кинотеатр', 'Клиент', 'Часы', 'Крестик', 'Кресло', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'PercentIcon', 'Персональная карта', 'Телефон', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт', 'Лого «Youtube»'
|
|
233
|
+
* 'Деньги', 'Самолёт', 'Лого «Apple»', 'Стрелка \'Вниз\'', 'Стрелка сплошная \'Вниз\'', 'Стрелка \'Влево\'', 'Стрелка \'Вправо\'', 'Стрелка \'Вверх-право\'', 'Стрелка \'Вверх\'', 'Стрелка сплошная \'Вверх\'', 'Банкомат', 'Сумка', 'Банк', 'BriefcaseIcon', 'Здание с деревом', 'Бургер', 'Календарь 2', 'Скруглённый календарь', 'Календарь', 'Календарь с галочкой', 'Машина2', 'Кред. карта', 'Кред. карта под наклоном', 'Кред. карта с галочкой', 'Карта с драгоценностями', 'Машина', 'Деньги внутри кошелька', 'Стрелка \'Вправо\'', 'Кинотеатр', 'Клиент', 'Часы', 'Крестик', 'Кресло', 'Кредитные карты', 'Скидка', 'Скачать документ', 'Документ', 'Документ (одноцветный)', 'Документы', 'Документы-2', 'Документ с текстом', 'Доллар', 'Зелёная \'галочка\' в круге', 'Зелёная \'галочка\'', 'Земля', 'Пустой кошелёк с возвратом', 'Пустой кошелёк', 'Евро', 'FullScreenIcon', 'Геолокация', 'Зеркало', 'Глобус', 'Gps', 'Сетка (белая)', 'HeadphonesIcon', 'Сердце', 'Лого «Huawei»', 'Диаграмма роста', 'Скидка', 'JCB', 'Logo', 'Лупа', 'E-mail', 'Маркер карты', 'Маркер карты РСХБ', 'MasterCard', 'Лого Метро', 'Минус', 'МИР', 'Деньги', 'Денежное страхование', 'Купюры', 'Монитор и мобильный', 'Новый документ', 'Офис', 'Лого «Одноклассники»', 'Пачка бумаги А4', 'Бизнес', 'Проценты (круг.)', 'Проценты', 'PercentIcon', 'Персональная карта', 'Телефон', 'Лого «PlayMarket»', 'Плюс', 'Щит', 'Профиль, 2 персоны', 'Профиль', 'Тыква', 'Ошибка', 'Ок', 'Рубль (круг.)', 'Сейф', 'Безопасность', 'Подписанные документы', 'Маленькие часы', 'Звук', 'Ящик с замочной скважиной', 'Лого «Telegram»', 'UnionPay', 'UserGeoLocationIcon', 'Пользователь в рамке', 'Пользователь', 'Visa', 'Лого «VK»', 'Пополнение карты', 'Кошелёк с плюсом', 'Кошелёк', 'Кошелёк с деньгами', 'Добавить продукт', 'Лого «Youtube»'
|
|
232
234
|
* ]
|
|
233
235
|
*/
|
|
234
|
-
export declare type IconName = '' | 'ActualBalanceIcon' | 'AirPlaneIcon' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowDownSolidIcon' | 'ArrowLeftIcon' | 'ArrowRightIcon' | 'ArrowTopRightIcon' | 'ArrowUpIcon' | 'ArrowUpSolidIcon' | 'AtmIcon' | 'BagIcon' | 'BankIcon' | 'BriefcaseIcon' | 'BuildingIcon' | 'BurgerIcon' | 'Calendar2Icon' | 'CalendarCircleIcon' | 'CalendarIcon' | 'CalendarTickIcon' | 'Car2Icon' | 'CardIcon' | 'CardPosIcon' | 'CardTickIcon' | 'CardWithGemIcon' | 'CarIcon' | 'ChartSquareIcon' | 'CinemaIcon' | 'ClientIcon' | 'ClockIcon' | 'CloseIcon' | 'ComfortableCompIcon' | 'CreditCardsIcon' | 'DiscountShapeIcon' | 'DocDownloadIcon' | 'DocIcon' | 'DocIconMonoColor' | 'DocsIcon' | 'DocumentText2Icon' | 'DocumentTextIcon' | 'DollarIcon' | 'DoneIcon' | 'DoneSimpleIcon' | 'EarthIcon' | 'EmptyWalletChangeIcon' | 'EmptyWalletIcon' | 'EuroIcon' | 'FullScreenIcon' | 'GeolocationIcon' | 'GlassIcon' | 'GlobalIcon' | 'GpsIcon' | 'GridIcon' | 'HeadphonesIcon' | 'HeartIcon' | 'HuaweiIcon' | 'InterestGrowthIcon' | 'InterestIcon' | 'JCBIcon' | 'LogoIcon' | 'LoupeIcon' | 'MailIcon' | 'MapMarkerClusterIcon' | 'MapMarkerSingleIcon' | 'MasterCardIcon' | 'MetroIcon' | 'MinusIcon' | 'MirIcon' | 'MoneyIcon' | 'MoneyInsuranceIcon' | 'MoneysIcon' | 'MonitorMobileIcon' | 'NewDocIcon' | 'OfficeIcon' | 'OkIcon' | 'PackA4Icon' | 'PassSendIcon' | 'PercentageRoundIcon' | 'PercentageSquareIcon' | 'PercentIcon' | 'PersonalCardIcon' | 'PhoneIcon' | 'PlayMarketIcon' | 'PlusIcon' | 'PowerIcon' | 'Profile2UserIcon' | 'ProfileIcon' | 'PumpkinIcon' | 'ResponceFailIcon' | 'ResponceOKIcon' | 'RoundRubleIcon' | 'SafeIcon' | 'ShieldTickIcon' | 'SignDocsIcon' | 'SmallClockIcon' | 'SoundIcon' | 'StrongBoxIcon' | 'TelegramIcon' | 'UnionPayIcon' | 'UserGeoLocationIcon' | 'UserSquareIcon' | 'UserTickIcon' | 'VisaIcon' | 'VKIcon' | 'WalletAdd2Icon' | 'WalletAddIcon' | 'WalletIcon' | 'WalletWithMoneyIcon' | 'WateringCanIcon' | 'YoutubeIcon';
|
|
236
|
+
export declare type IconName = '' | 'ActualBalanceIcon' | 'AirPlaneIcon' | 'AppleIcon' | 'ArrowDownIcon' | 'ArrowDownSolidIcon' | 'ArrowLeftIcon' | 'ArrowRightIcon' | 'ArrowTopRightIcon' | 'ArrowUpIcon' | 'ArrowUpSolidIcon' | 'AtmIcon' | 'BagIcon' | 'BankIcon' | 'BriefcaseIcon' | 'BuildingIcon' | 'BurgerIcon' | 'Calendar2Icon' | 'CalendarCircleIcon' | 'CalendarIcon' | 'CalendarTickIcon' | 'Car2Icon' | 'CardIcon' | 'CardPosIcon' | 'CardTickIcon' | 'CardWithGemIcon' | 'CarIcon' | 'ChartSquareIcon' | 'ChevronLeft' | 'CinemaIcon' | 'ClientIcon' | 'ClockIcon' | 'CloseIcon' | 'ComfortableCompIcon' | 'CreditCardsIcon' | 'DiscountShapeIcon' | 'DocDownloadIcon' | 'DocIcon' | 'DocIconMonoColor' | 'DocsIcon' | 'DocumentText2Icon' | 'DocumentTextIcon' | 'DollarIcon' | 'DoneIcon' | 'DoneSimpleIcon' | 'EarthIcon' | 'EmptyWalletChangeIcon' | 'EmptyWalletIcon' | 'EuroIcon' | 'FullScreenIcon' | 'GeolocationIcon' | 'GlassIcon' | 'GlobalIcon' | 'GpsIcon' | 'GridIcon' | 'HeadphonesIcon' | 'HeartIcon' | 'HuaweiIcon' | 'InterestGrowthIcon' | 'InterestIcon' | 'JCBIcon' | 'LogoIcon' | 'LoupeIcon' | 'MailIcon' | 'MapMarkerClusterIcon' | 'MapMarkerSingleIcon' | 'MasterCardIcon' | 'MetroIcon' | 'MinusIcon' | 'MirIcon' | 'MoneyIcon' | 'MoneyInsuranceIcon' | 'MoneysIcon' | 'MonitorMobileIcon' | 'NewDocIcon' | 'OfficeIcon' | 'OkIcon' | 'PackA4Icon' | 'PassSendIcon' | 'PercentageRoundIcon' | 'PercentageSquareIcon' | 'PercentIcon' | 'PersonalCardIcon' | 'PhoneIcon' | 'PlayMarketIcon' | 'PlusIcon' | 'PowerIcon' | 'Profile2UserIcon' | 'ProfileIcon' | 'PumpkinIcon' | 'ResponceFailIcon' | 'ResponceOKIcon' | 'RoundRubleIcon' | 'SafeIcon' | 'ShieldTickIcon' | 'SignDocsIcon' | 'SmallClockIcon' | 'SoundIcon' | 'StrongBoxIcon' | 'TelegramIcon' | 'UnionPayIcon' | 'UserGeoLocationIcon' | 'UserSquareIcon' | 'UserTickIcon' | 'VisaIcon' | 'VKIcon' | 'WalletAdd2Icon' | 'WalletAddIcon' | 'WalletIcon' | 'WalletWithMoneyIcon' | 'WateringCanIcon' | 'YoutubeIcon';
|
|
@@ -3,5 +3,6 @@ exports.BaseTile = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const style_1 = require("../../utils/style");
|
|
6
|
-
exports.BaseTile = (0, uni_jsx_1.JSX)(({ className, title = '', insetTitle = '', buttons, leftImage, rightImage, backImage, children, }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('relative flex flex-col font-sans', className), children: [backImage ? (0, jsx_runtime_1.jsx)("div", { className: "absolute bottom-0 right-0 z-0", children: backImage }) : null, title, (0, jsx_runtime_1.jsxs)("div", { className: "grow relative flex flex-wrap justify-between items-stretch gap-8", children: [leftImage, (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col gap-8', leftImage ? '' : 'grow'), children: [insetTitle, (0, jsx_runtime_1.jsx)("div", { className: "grow", children: children }), buttons] }), rightImage
|
|
6
|
+
exports.BaseTile = (0, uni_jsx_1.JSX)(({ className, title = '', insetTitle = '', buttons, leftImage, rightImage, backImage, children, }) => ((0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('relative flex flex-col font-sans', className), children: [backImage ? (0, jsx_runtime_1.jsx)("div", { className: "absolute bottom-0 right-0 z-0", children: backImage }) : null, title, (0, jsx_runtime_1.jsxs)("div", { className: "grow relative flex flex-wrap sm:flex-nowrap justify-between items-stretch gap-8", children: [renderImageContainer(leftImage), (0, jsx_runtime_1.jsxs)("div", { className: (0, style_1.style)('flex flex-col gap-8', leftImage ? '' : 'grow'), children: [insetTitle, (0, jsx_runtime_1.jsx)("div", { className: "grow", children: children }), buttons] }), renderImageContainer(rightImage, { className: '-order-1 sm:order-1' })] })] })));
|
|
7
|
+
const renderImageContainer = (image, { className } = {}) => image ? (0, jsx_runtime_1.jsx)("div", { className: (0, style_1.style)('flex-none', className), children: image }) : null;
|
|
7
8
|
//# sourceMappingURL=BaseTile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,6CAA0C;AAW7B,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,EACT,KAAK,GAAG,EAAE,EACV,UAAU,GAAG,EAAE,EACf,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,EACT,QAAQ,GACT,EAAE,EAAE,CAAC,CACJ,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,kCAAkC,EAAE,SAAS,CAAC,aACjE,SAAS,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,+BAA+B,YAAE,SAAS,GAAO,CAAC,CAAC,CAAC,IAAI,EACnF,KAAK,EACN,iCAAK,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,6CAA0C;AAW7B,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,SAAS,EACT,KAAK,GAAG,EAAE,EACV,UAAU,GAAG,EAAE,EACf,OAAO,EACP,SAAS,EACT,UAAU,EACV,SAAS,EACT,QAAQ,GACT,EAAE,EAAE,CAAC,CACJ,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,kCAAkC,EAAE,SAAS,CAAC,aACjE,SAAS,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,+BAA+B,YAAE,SAAS,GAAO,CAAC,CAAC,CAAC,IAAI,EACnF,KAAK,EACN,iCAAK,SAAS,EAAC,iFAAiF,aAC7F,oBAAoB,CAAC,SAAS,CAAC,EAChC,iCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,qBAAqB,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,aAClE,UAAU,EACX,gCAAK,SAAS,EAAC,MAAM,YAAE,QAAQ,GAAO,EACrC,OAAO,IACJ,EACL,oBAAoB,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,qBAAqB,EAAE,CAAC,IACnE,IACF,CACP,CACF,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAAC,KAAY,EAAE,EAAE,SAAS,KAA6B,EAAE,EAAE,EAAE,CACxF,KAAK,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAE,IAAA,aAAK,EAAC,WAAW,EAAE,SAAS,CAAC,YAAG,KAAK,GAAO,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
2
|
exports.Blocks = void 0;
|
|
3
3
|
const Carousel_1 = require("./Carousel/Carousel");
|
|
4
|
+
const CarouselProgramsCard_1 = require("./CarouselProgramsCard/CarouselProgramsCard");
|
|
4
5
|
const CarouselRecommendationCard_1 = require("./CarouselRecommendationCard/CarouselRecommendationCard");
|
|
5
6
|
const CarouselTariffsCard_1 = require("./CarouselTariffsCard/CarouselTariffsCard");
|
|
6
7
|
const ComparisonTable_1 = require("./ComparisonTable/ComparisonTable");
|
|
@@ -12,6 +13,7 @@ const LinkDocs_1 = require("./LinkDocs/LinkDocs");
|
|
|
12
13
|
const MobileAppTile_1 = require("./MobileAppTile/MobileAppTile");
|
|
13
14
|
const Placeholder_1 = require("./Placeholder/Placeholder");
|
|
14
15
|
const ProductBlock_1 = require("./ProductBlock/ProductBlock");
|
|
16
|
+
const ProductGallery_1 = require("./ProductGallery/ProductGallery");
|
|
15
17
|
const RichTextBlock_1 = require("./RichTextBlock/RichTextBlock");
|
|
16
18
|
const RollupItem_1 = require("./RollupItem/RollupItem");
|
|
17
19
|
const StepsBlock_1 = require("./StepsBlock/StepsBlock");
|
|
@@ -37,5 +39,7 @@ exports.Blocks = {
|
|
|
37
39
|
RollupItem: RollupItem_1.RollupItem,
|
|
38
40
|
VerticalLayout: VerticalLayout_1.VerticalLayout,
|
|
39
41
|
CarouselRecommendationCard: CarouselRecommendationCard_1.CarouselRecommendationCard,
|
|
42
|
+
CarouselProgramsCard: CarouselProgramsCard_1.CarouselProgramsCard,
|
|
43
|
+
ProductGallery: ProductGallery_1.ProductGallery,
|
|
40
44
|
};
|
|
41
45
|
//# sourceMappingURL=Blocks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AACA,kDAA+C;AAC/C,wGAAqG;AACrG,mFAAgF;AAChF,uEAAoE;AACpE,4CAAyC;AACzC,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,kDAA+C;AAC/C,iEAA8D;AAC9D,2DAAwD;AACxD,8DAA2D;AAC3D,iEAA8D;AAC9D,wDAAqD;AACrD,wDAAqD;AACrD,8DAA2D;AAC3D,qDAAkD;AAClD,oEAAiE;AAEpD,QAAA,MAAM,GAAmB;IACpC,QAAQ,EAAR,mBAAQ;IACR,mBAAmB,EAAnB,yCAAmB;IACnB,eAAe,EAAf,iCAAe;IACf,MAAM,EAAN,eAAM;IACN,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,aAAa,EAAb,6BAAa;IACb,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,UAAU,EAAV,uBAAU;IACV,cAAc,EAAd,+BAAc;IACd,0BAA0B,EAA1B,uDAA0B;
|
|
1
|
+
{"version":3,"file":"Blocks.js","sourceRoot":"","sources":["../../src/components/Blocks.ts"],"names":[],"mappings":";;AACA,kDAA+C;AAC/C,sFAAmF;AACnF,wGAAqG;AACrG,mFAAgF;AAChF,uEAAoE;AACpE,4CAAyC;AACzC,4CAAyC;AACzC,kDAA+C;AAC/C,kDAA+C;AAC/C,kDAA+C;AAC/C,iEAA8D;AAC9D,2DAAwD;AACxD,8DAA2D;AAC3D,oEAAiE;AACjE,iEAA8D;AAC9D,wDAAqD;AACrD,wDAAqD;AACrD,8DAA2D;AAC3D,qDAAkD;AAClD,oEAAiE;AAEpD,QAAA,MAAM,GAAmB;IACpC,QAAQ,EAAR,mBAAQ;IACR,mBAAmB,EAAnB,yCAAmB;IACnB,eAAe,EAAf,iCAAe;IACf,MAAM,EAAN,eAAM;IACN,MAAM,EAAN,eAAM;IACN,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,QAAQ,EAAR,mBAAQ;IACR,aAAa,EAAb,6BAAa;IACb,WAAW,EAAX,yBAAW;IACX,YAAY,EAAZ,2BAAY;IACZ,UAAU,EAAV,uBAAU;IACV,YAAY,EAAZ,2BAAY;IACZ,SAAS,EAAT,qBAAS;IACT,aAAa,EAAb,6BAAa;IACb,UAAU,EAAV,uBAAU;IACV,cAAc,EAAd,+BAAc;IACd,0BAA0B,EAA1B,uDAA0B;IAC1B,oBAAoB,EAApB,2CAAoB;IACpB,cAAc,EAAd,+BAAc;CACf,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreditCalculatorParamsViewSettings } from './CalculatorContent';
|
|
2
|
+
import { CommonCreditParams, CreditCalculatorUserInputParams } from './useCreditCalculatorParams';
|
|
3
|
+
interface CheckSourceBookRowProps {
|
|
4
|
+
row: CommonCreditParams;
|
|
5
|
+
userInputParams: CreditCalculatorUserInputParams;
|
|
6
|
+
paramsViewSettings?: CreditCalculatorParamsViewSettings;
|
|
7
|
+
}
|
|
8
|
+
export declare const checkCreditSourceBookRowCommonParams: (props: CheckSourceBookRowProps) => boolean;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2
|
+
exports.checkCreditSourceBookRowCommonParams = void 0;
|
|
3
|
+
const checkCreditSourceBookRowCommonParams = (props) => checkRowParam({
|
|
4
|
+
...props,
|
|
5
|
+
fieldKey: 'isSalaryClient',
|
|
6
|
+
viewSettingFieldKey: 'isShowSalaryClient',
|
|
7
|
+
}) &&
|
|
8
|
+
checkRowParam({
|
|
9
|
+
...props,
|
|
10
|
+
fieldKey: 'isStateEmployee',
|
|
11
|
+
viewSettingFieldKey: 'isShowStateEmployee',
|
|
12
|
+
}) &&
|
|
13
|
+
checkRowParam({
|
|
14
|
+
...props,
|
|
15
|
+
fieldKey: 'isPensionClient',
|
|
16
|
+
viewSettingFieldKey: 'isShowPensionClient',
|
|
17
|
+
}) &&
|
|
18
|
+
checkRowParam({
|
|
19
|
+
...props,
|
|
20
|
+
fieldKey: 'isInsurance',
|
|
21
|
+
viewSettingFieldKey: 'isShowInsurance',
|
|
22
|
+
});
|
|
23
|
+
exports.checkCreditSourceBookRowCommonParams = checkCreditSourceBookRowCommonParams;
|
|
24
|
+
const checkRowParam = ({ row, userInputParams, paramsViewSettings, fieldKey, viewSettingFieldKey, }) => {
|
|
25
|
+
const isExclude = paramsViewSettings ? !paramsViewSettings[viewSettingFieldKey] : false;
|
|
26
|
+
return isExclude || userInputParams[fieldKey] === row[fieldKey];
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=checkCreditSourceBookRowCommonParams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkCreditSourceBookRowCommonParams.js","sourceRoot":"","sources":["../../../src/components/Calculator/checkCreditSourceBookRowCommonParams.ts"],"names":[],"mappings":";;AAcO,MAAM,oCAAoC,GAAG,CAAC,KAA8B,EAAE,EAAE,CACrF,aAAa,CAAC;IACZ,GAAG,KAAK;IACR,QAAQ,EAAE,gBAAgB;IAC1B,mBAAmB,EAAE,oBAAoB;CAC1C,CAAC;IACF,aAAa,CAAC;QACZ,GAAG,KAAK;QACR,QAAQ,EAAE,iBAAiB;QAC3B,mBAAmB,EAAE,qBAAqB;KAC3C,CAAC;IACF,aAAa,CAAC;QACZ,GAAG,KAAK;QACR,QAAQ,EAAE,iBAAiB;QAC3B,mBAAmB,EAAE,qBAAqB;KAC3C,CAAC;IACF,aAAa,CAAC;QACZ,GAAG,KAAK;QACR,QAAQ,EAAE,aAAa;QACvB,mBAAmB,EAAE,iBAAiB;KACvC,CAAC,CAAC;AApBQ,QAAA,oCAAoC,wCAoB5C;AAEL,MAAM,aAAa,GAAG,CAAC,EACrB,GAAG,EACH,eAAe,EACf,kBAAkB,EAClB,QAAQ,EACR,mBAAmB,GACU,EAAE,EAAE;IACjC,MAAM,SAAS,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IAExF,OAAO,SAAS,IAAI,eAAe,CAAC,QAAQ,CAAC,KAAK,GAAG,CAAC,QAAQ,CAAC,CAAC;AAClE,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CreditCalculatorParamsViewSettings } from './CalculatorContent';
|
|
2
|
+
import { CreditCalculatorSourceBookLimitParams, CreditCalculatorUserInputParams } from './useCreditCalculatorParams';
|
|
3
|
+
interface GetCreditCalculatorLimitParamsProps {
|
|
4
|
+
limitRows: CreditCalculatorSourceBookLimitParams[];
|
|
5
|
+
userInputParams: CreditCalculatorUserInputParams;
|
|
6
|
+
paramsViewSettings?: CreditCalculatorParamsViewSettings;
|
|
7
|
+
}
|
|
8
|
+
export declare const getCreditCalculatorLimitParams: ({ limitRows, userInputParams, paramsViewSettings, }: GetCreditCalculatorLimitParamsProps) => CreditCalculatorSourceBookLimitParams | undefined;
|
|
9
|
+
export {};
|