@redneckz/wildless-cms-uni-blocks 0.3.42 → 0.3.43
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/bundle.umd.js +1 -1
- package/bundle/bundle.umd.min.js +1 -1
- package/dist/ui-kit/List/List.js +1 -1
- package/dist/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/List.js +2 -2
- package/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +1 -1
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/dist/ui-kit/List/List.js +1 -1
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/List.js +2 -2
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/src/ui-kit/List/List.tsx +1 -1
- package/package.json +1 -1
- package/src/ui-kit/List/List.tsx +1 -1
package/bundle/bundle.umd.js
CHANGED
|
@@ -688,7 +688,7 @@
|
|
|
688
688
|
const List = JSX((props) => {
|
|
689
689
|
const { className = '', itemClassName, isDotted, items, version = 'primary' } = props;
|
|
690
690
|
return (jsx("section", { className: `${TEXT_STYLE_MAP[version]} ${className}`, role: "list", children: items?.length
|
|
691
|
-
? items.map((_, i) => (
|
|
691
|
+
? items.map((_, i) => (jsx(ListItem, { className: itemClassName, isDotted: isDotted, version: version, children: _ }, String(i))))
|
|
692
692
|
: null }));
|
|
693
693
|
});
|
|
694
694
|
|
package/bundle/bundle.umd.min.js
CHANGED
|
@@ -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).UniBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...a}={})=>{const l=Object.assign({},a,r?{innerHTML:r.__html}:{});return e(t,l,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...a}=t||{},l=n?.slots?.default,i=r||l&&l();return e(Object.assign(a,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const i={h1:"text-title-xl tracking-[-0.3px]",h2:"text-title",h3:"text-title-sm",h4:"text-title-xs",h5:"text-title-2xs tracking-[0.2px]",h6:"text-title-2xs tracking-[0.2px]"},s=a((e=>{const{className:t="",headingType:r,title:a,as:l}=e;if(!r)return;return n(l||r,{className:`font-sans m-0 ${i[r]} ${t}`,children:a})})),o={left:"text-left",center:"text-center",right:"text-right"},c={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},d=a((({bgColorHeadline:e="transparent",align:t="left",className:a="",title:l,description:i,anchor:d=null})=>{const m=c[e];return r("section",{className:`p-[50px] ${m.background} ${a}`,id:d,children:[l&&n(s,{headingType:"h2",className:`text-primary-text ${m.text} ${o[t]}`,title:l}),i&&n("p",{className:`font-normal text-base mt-4 ${m.text} ${o[t]}`,children:i})]})}));var m,h;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.BurgerIconWhite="BurgerIconWhite",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CalendarWhiteIcon="CalendarWhiteIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.ChartSquareIcon="ChartSquareIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EmptyWalletWhiteIcon="EmptyWalletWhiteIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.GridIconWhite="GridIconWhite",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PercentageSquareWhiteIcon="PercentageSquareWhiteIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon"}(m||(m={})),function(e){e.ActualBalanceIcon="Деньги",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка 'Влево'",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.BurgerIconWhite="Бургер (белый)",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CalendarWhiteIcon="Календарь белый",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.ChartSquareIcon="Деньги внутри кошелька",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EmptyWalletWhiteIcon="Пустой кошелёк (белый)",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка",e.GridIconWhite="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PercentageSquareWhiteIcon="Проценты белые",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами"}(h||(h={}));const x=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};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}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},u=a((({className:e="",name:t="",alt:a=`Иконка ${h[t]||t}`,title:l=a,asSVG:i,...s})=>{const o=`${x.CDN||""}icons/${t}.svg`;return i?r("svg",{className:e,...s,"aria-hidden":"true",children:[l?n("title",{children:l}):null,a?n("desc",{children:a}):null,n("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]}):n("img",{className:e,src:o,alt:a,title:l,...s,"aria-hidden":"true"})})),p=a((({className:e="",image:t,imageClassName:r="",...a})=>{if(!t)return null;const l="string"==typeof t?t:t.icon;return l||""===l?l.length?n(u,{className:e,name:l,...a}):null:n(b,{className:e,imageClassName:r,image:t})})),b=a((({className:e="",image:t,imageClassName:a=""})=>t?r("picture",{className:`flex-none ${e}`,children:[t?.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:f(t)},`${r}_${e}`))):null,g(t,a)]}):null)),g=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",l=e.alt||e.title;return n("img",{src:e.src,className:t,alt:l,title:a,style:r,...e.size})};function f(e){return e?`image/${String(e)}`:void 0}const N=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:l,doc:i,icon:s})=>{const{text:o,fileSize:c,...d}=i;return r("a",{className:e,role:"link",...d,children:[s?n(p,{className:t,image:s,width:"24px",height:"24px",asSVG:!0}):null,o?r("span",{className:a,children:[o,n("span",{className:l,children:d?.href&&v(y(d.href),c)})]}):null]})})),v=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),y=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},w=a((({className:e="",doc:t,icon:r})=>n(N,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3.5 min-w-6 min-h-6 text-primary-text",textClassName:"self-center font-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:r}))),I=a((({className:e,documents:t,columnsMode:r="double",icon:a})=>t?.length?n("div",{className:e,role:"list",children:t.map(((e,t)=>n("div",{className:"double"===r?"basis-[calc(50%-20px)]":"",role:"listitem",children:n(w,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:a})},String(t))))}):null)),k={left:"text-left",center:"text-center",right:"text-right"},C={double:"mb-8",single:"mb-[26px]"},$={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},S=a((({className:e="",title:t,subtitle:a,align:l,documents:i,icon:o={icon:"DocIcon"},columnsMode:c="double",anchor:d=null})=>r("section",{className:`font-sans text-primary-text p-12 bg-white ${e}`,id:d,children:[t?n(s,{headingType:"h2",className:`${a?"mb-2.5":C[c]} ${k[l??"center"]}`,title:t}):null,a?n("h3",{className:`text-base mt-0 font-normal ${C[c]} ${k[l??"center"]}`,children:a}):null,n(I,{className:$[c],columnsMode:c,documents:i,icon:o})]}))),T={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},D=a((({className:e="",title:t,image:a,benefits:l,version:i="primary",directionRight:o=!1,anchor:c=null})=>r("section",{className:`relative font-sans p-14 ${T[i]} ${e}`,id:c,children:[n(s,{headingType:"h2",className:"text-center",title:t}),r("div",{className:"flex justify-center mt-9",children:[a?.src&&n(p,{className:o?"order-2 ml-6":"mr-6",image:a}),l?.length?n("div",{className:"flex flex-col",children:l.map(((e,t)=>function(e,t,a){return r("div",{className:"flex flex-row mb-8",children:[e.icon?n(p,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",image:e.icon,width:"48",height:"48",asSVG:!0}):null,r("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-xl m-0 "+("primary"===a?"text-primary-text":""),children:e.label}),e.description&&n("div",{className:"font-normal text-sm "+("primary"===a?"text-secondary-text":""),children:e.description})]})]},String(t))}(e,t,i)))}):null]})]})));const A=e=>e?.includes("//"),R=e=>(e||"").replace(/\/?\?.*/,""),M=e=>{if(!e||!A(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t},L=e=>{if(!e||!A(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0};var P=Object.freeze({__proto__:null,isURL:A,withoutQuery:R,getOrigin:M,getHash:L});const j="/mobile",B=(e,t)=>{if(!e)return e;const n=M(t?.href);return n?e.replace(n,"")||"/":e},_=e=>e;function W({router:e,handlerDecorator:t=_},n){const r=((e,t)=>{if(!e)return e;const n=B(e,t)||"",r=t?.pathname.startsWith(j);return r&&!A(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const a=r&&!A(r),l=!n.target||"_self"===n.target;a&&l&&(t.preventDefault(),e.push(r))}),n)}}const G=a((({text:e,href:t,target:r,onClick:a,className:l="",children:i})=>t?n("a",{className:`no-underline ${l}`,href:t,target:r,onClick:a,children:n("span",{className:l,children:e||i})}):n("span",{className:l,children:e||i})));function V(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])}const E=a((e=>{const{text:t,aboveText:a,appendLeft:l}=e;return r("div",{className:O(e),children:[l||null,F(e)?r("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:a}),n("div",{className:"text-button text-left",children:t})]}):null]})})),O=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const a="px-8 gap-2 "+(n?"py-2":"py-[18px]");return["flex items-center justify-center",F(e)?a:"h-12 w-12",r?"rounded-full":""].join(" ")},F=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),H={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:""},U={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},Z="text-center font-sans select-none",z=a((e=>{const{text:t,aboveText:r,appendLeft:a,children:l,disabled:i,rounded:s}=e,o=l??n(E,{text:t,aboveText:r,appendLeft:a,rounded:s});return n(i?J:q,{...e,children:o})})),q=a((({className:e,ariaLabel:t,version:r="none",rounded:a,href:l,target:i,children:s,onClick:o,...c})=>{const{aboveText:d,appendLeft:m,...h}=c;return n("a",{className:`${Z} inline-block cursor-pointer no-underline ${H[r]||""} ${a?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:i,onClick:o,"aria-label":t,role:l?"link":"button",...h,children:s})})),J=a((({className:e,children:t,ariaLabel:r,version:a="none",rounded:l})=>n("div",{role:"button","aria-disabled":"true","aria-label":r,tabIndex:"-1",className:`inline-block ${Z} ${U[a]||""} ${l?"rounded-full":"rounded-md"} ${e||""}`,children:t}))),K=a((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:a}=e,l=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(z,e?{appendLeft:n(p,{image:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(W({router:l,handlerDecorator:a},e),t)))}):null}));const X=a((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),Q={primary:"rounded-full inline-block mr-3 mt-2",secondary:"rounded-full inline-block mr-3 mt-2",gray:"rounded-full inline-block mr-3 mt-2",tile:"rounded-full inline-block mr-4","tile-white":"rounded-full inline-block mr-4"},Y={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},ee=a((({className:e="",isDotted:t=!0,children:a,version:l="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:te(l)}),n("span",{children:a})]}))),te=e=>`${Q[e]} ${Y[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,ne={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},re=a((e=>{const{className:t="",itemClassName:a,isDotted:l,items:i,version:s="primary"}=e;return n("section",{className:`${ne[s]} ${t}`,role:"list",children:i?.length?i.map(((e,t)=>r(ee,{className:a,isDotted:l,version:s,children:[e,"12"]},String(t)))):null})})),ae=a((({className:e="",title:t,children:a,buttons:l,image:i,anchor:s=null})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,id:s,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:a}),l?n("div",{children:l}):null]}),i]})]}))),le={primary:"bg-primary-main",secondary:"bg-white/30"},ie={primary:"text-primary-text",secondary:"text-white"},se={primary:"text-secondary-text",secondary:"text-white"};const oe=a((({className:e="",context:t,title:a,headingType:l="h2",description:i,benefits:s,buttons:o,image:c,items:d,version:m="primary",isDotted:h=!0,textBlockClassName:x=""})=>{const u="secondary"===m?"text-white":"text-primary-text";return r("div",{className:`flex grow justify-between items-stretch ${e}`,children:[n("div",{className:`flex flex-col ${x}`,children:r(ae,{context:t,title:ce(a,l),buttons:de(t,o),children:[i&&n(X,{className:`mt-4 max-w-[600px] text-md font-light ${u}`,description:i}),s?.filter((e=>e.label))?.length?n("div",{className:"flex gap-6 mt-6",children:s.map(((e,t)=>function(e,t,a){return r("div",{className:"flex gap-4 items-center",children:[e.icon?n(p,{className:`w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border text-white ${le[a]}`,image:e.icon,width:"24",height:"24",asSVG:!0}):null,r("div",{className:"flex gap-0.5 flex-col h-full max-w-[149px]",children:[n("div",{className:`font-medium text-xl m-0 ${ie[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-md ${se[a]}`,children:e.description})]})]},String(t))}(e,t,m)))}):null,d?.length?n(re,{className:"mt-5 text-title-2xs font-light",items:d,itemClassName:"mb-[7px]",version:m,isDotted:h}):null]})}),c?.src&&n(p,{className:"mt-auto",image:c})]})})),ce=(e,t)=>e&&n(s,{headingType:t,title:e,className:"whitespace-pre-wrap max-w-[600px]"}),de=(e,t)=>t?.length?n(K,{context:e,buttons:t,className:"flex mt-9 gap-4"}):null,me={primary:"bg-primary-main",secondary:"bg-white"},he={primary:"text-white",secondary:"text-primary-text"};function xe(e,t,a){return r("div",{className:`flex items-center ${a}`,children:[n(z,{rounded:!0,className:`w-12 h-12 min-h-12 max-h-12 flex items-center justify-center mr-3 ${me[t]}`,ariaLabel:e,children:n(p,{className:`w-4 h-4 min-w-4 min-h-4 rounded-full box-border ${he[t]}`,image:{icon:"ArrowLeftIcon"},width:"24",height:"24",asSVG:!0})}),e?n("span",{className:"text-m-md",children:e}):null]})}const ue={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},pe={primary:"text-secondary-text",secondary:"text-white/80"},be=a((e=>{const{context:t,className:a="",breadcrumbs:l,version:i="primary",anchor:s=null,...o}=e,c=t.useRouter(),{handlerDecorator:d}=t;return r("section",{className:`font-sans pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${ue[i]} ${a}`,id:s,children:[xe("Все дебетовые карты",i,"mb-10"),l?.length?n("div",{className:"text-xs mb-6",children:V(n("span",{className:`mx-2 ${pe[i]}`,children:"/"}))(l.map(((e,t)=>n(G,{...W({router:c,handlerDecorator:d},{className:pe[i],...e})},String(t)))))}):null,n(oe,{context:t,version:i,...o})]})})),ge={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},fe=a((({title:e,description:t,blockVersion:a="primary",iconVersion:l,image:i,className:s,anchor:o=null})=>{const c=ge[a];return r("section",{className:`font-sans px-9 py-4 flex ${c.background} ${s||""}`,id:o,children:["small"===l?Ne(c.icon):null,"big"===l?ve(i):null,r("div",{className:"py-0.5",children:[e&&n("div",{className:`font-medium text-base mb-1 ${c.title}`,children:e}),t&&n("div",{className:`text-sm ${c.description}`,children:t})]})]})}));function Ne(e){return n("div",{className:"pt-1.5 pl-1 pr-4",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function ve(e){return e?.src?n(p,{className:"pt-0.5 pr-3",image:e}):null}const ye=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function we(e=""){const t=ye(e);return t<=4?"h4":t<=8?"h3":"h2"}function Ie(e=""){const t=ye(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function ke(e=""){const t=ye(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Ce={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},$e=a((e=>{const{context:t,title:a,description:l,items:i,children:o,buttons:c,image:d,className:m="",version:h="primary",role:x,anchor:u=null}=e;return n("section",{className:`overflow-hidden font-sans p-9 pr-3 box-border ${m} ${Ce[h]} ${ke(m)} ${Ie(m)} `,role:x,id:u,children:r(ae,{context:t,title:a&&n(s,{headingType:we(m),as:"h3",title:a,className:`whitespace-pre-wrap max-w-[600px] ${a?"mb-3":""}\n ${"primary"===h?"text-primary-text":""}`}),buttons:c?.length?n(K,{context:t,buttons:c,className:"flex mt-9 gap-3"}):null,image:d?.src&&n(p,{className:"mt-auto ml-7",image:d}),children:[l&&n(X,{className:"mt-4 max-w-[600px] text-title-new-sm font-light",description:l}),o,Se(i,h)]})})}));function Se(e,t){return e?.length?n(re,{items:e,itemClassName:"text-title-new-sm font-light mt-2.5 first:mt-0",version:"primary"===t?"tile":"tile-white"}):null}const Te={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},De=a((({context:e,className:t="",title:a,description:l,benefits:i,buttons:o,image:c,version:d="primary",anchor:m=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${t} ${Te[d]} ${ke(t)} ${Ie(t)} `,id:m,children:r(ae,{context:e,title:a&&n(s,{headingType:we(t),title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:o?.length?n(K,{context:e,buttons:o,className:"flex mt-9 gap-3"}):null,image:c?.src&&n(p,{className:"mt-auto ml-7",image:c}),children:[l&&n(X,{className:"mt-4 max-w-[600px]",description:l}),r("div",{className:"flex mt-5 mb-1",children:[i?.length?n("div",{className:"mr-8",children:i.map(Ae)}):null,i?.length?n("div",{className:"pt-1",children:i.map(((e,t)=>function(e,t,r="primary"){return n("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[r]}`,children:e.description},String(t))}(e,t,d)))}):null]})]})})));function Ae(e,t){return n("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}const Re=a((({className:e,viewBox:t,fill:r="none",width:a,height:l,paths:i,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:a,height:l,children:i.map((({d:e,fill:t,...r},a)=>n("path",{d:e,fill:t||"currentColor",...s,...r},a)))}))),Me=[{d:"m9 12 4-4-4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"},{d:"M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z"}],Le=a((({className:e,disabled:t,...r})=>n(z,{rounded:!0,className:`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,...r,children:n(Re,{paths:Me,viewBox:"0 0 16 16",fill:"none",width:"16",height:"16"})}))),Pe={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},je={normal:3,mini:4},Be={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},_e={normal:380,mini:276},We=a((({title:e,description:t,image:a,items:l,button:i,version:s})=>{const o=function(e){return`text-xl m-0\n ${"secondary"!==e?"text-primary-text":""}\n `}(s);return r("div",{className:"h-full flex flex-col justify-between text-center",children:[r("div",{children:[a?.src?n("div",{className:"flex justify-center",children:n(p,{className:"mb-6",image:a})}):null,e?Ve(e,o):null,t?n("div",{className:"font-light text-m-md-new "+(e?"mt-2":""),children:t}):null,l?.length?Ee(l,s):null]}),i?.text?Ge(i):null]})}));function Ge(e){return n(z,{className:"mt-6 w-full",appendLeft:e.icon&&n(p,{image:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function Ve(e,t){return n("div",{className:`text-xl m-0 ${t}`,children:e})}function Ee(e,t="primary"){return n(re,{className:"max-w-[308px] mt-2 text-sm "+("primary"===t?"!text-secondary-text":""),itemClassName:"mt-1 first:mt-0",items:e.filter((e=>e?.text)).map((e=>e.text)),version:t})}const Oe=a((({context:e,title:t,description:a,cards:l=[],version:i="normal",activeCardIndex:o})=>r("div",{children:[n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),r("div",{className:"flex flex-col items-center mb-8",children:[t?n(s,{headingType:"h2",className:"text-center",title:t}):null,a?n("div",{className:"font-light text-md max-w-[600px] mt-2.5",children:a}):null]}),n("div",{className:`flex ${l?.length<=je[i]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${o*_e[i]}px)`},role:"list",children:l?.map(((t,r)=>function({card:e,version:t},r){return n("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${Be[t]} ${Pe[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(We,{...e})},String(r))}({card:t,version:i,context:e},r)))})]})));const Fe=a((({context:e,cards:t=[],className:a="",version:l="normal",anchor:i=null,...s})=>{const[o,c]=e.useState(0),d=t?.length>je[l],m=d&&t?.length-o>je[l],h=d&&o>0;return r("section",{className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${a}`,id:i,children:[n(Oe,{context:e,cards:t,version:l,activeCardIndex:o,...s}),h&&n(Le,{className:"absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]",onClick:()=>c(o-1),ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}),m&&n(Le,{className:"absolute top-1/2 right-8 z-10 mt-[25px]",onClick:()=>c(o+1),ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}),n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white"}),n("div",{className:"absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white"})]})})),He=a((e=>n(Fe,{...e,version:"normal"}))),Ue=a((e=>n(Fe,{...e,version:"mini"}))),Ze=a((({className:e="",documents:t,anchor:r=null})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,id:r,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?ze(t):null})}))),ze=e=>e.map(((e,t)=>{const{text:r,...a}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...a,children:r||null})},`list_item_${String(t)}`)})),qe={Headline:d,LinkDocs:S,TextBlock:fe,PictureText:D,ProductBlock:be,Tile:$e,ProductTile:De,Gallery:He,MiniGallery:Ue,LinkList:Ze},Je=({blocks:e,context:t,className:n,columns:r})=>e?.length?e.map(Ke({context:t,className:n,columns:r})):null,Ke=({context:e,columns:t,className:r})=>(a,l)=>{const i=a?.blockListType;if(!i||!(i in qe))return null;return n("div",{className:`${r} ${2===t?"w-1/2":""}`,children:n(qe[i],{context:e,...a,className:"!p-0"})},`block_${l}`)},Xe=a((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden",children:Je({context:t,className:"mb-5 last:mb-0 pb-5",blocks:e})}))),Qe=a((({label:e,isExpanded:t,blocks:a,context:l})=>{const{isActive:i,hasContent:s,icon:o,handleToggle:c}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,a]=e.useState(n),l=t?.length;return{isActive:r,hasContent:l,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!l)return;a(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:l,blocks:a,initialState:t});return r("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[r("button",{className:`border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans\n ${s?"group cursor-pointer":""}\n `,onClick:c,children:[n("span",{className:"text-xl pr-2.5 font-medium",children:e}),s?n(p,{image:o,width:"24",height:"24",asSVG:!0}):null]}),s?n(Xe,{isExpanded:i,blocks:a,context:l}):null]})})),Ye=a((({title:e,description:t,accordionItems:a,context:l,className:i="",anchor:o=null})=>r("section",{className:`p-[50px] font-sans bg-white text-primary-text ${i}`,id:o,children:[e?n(s,{headingType:"h4",className:"mb-2.5",title:e}):null,t?n("div",{className:"mb-2.5 text-base",children:t}):null,a?.length?n("ul",{className:"list-none m-0 p-0",children:a.map(((e,t)=>n(Qe,{...e,context:l},`AccordionItem${t}`)))}):null]}))),et=a((({className:e,title:t,benefits:a,anchor:l=null})=>r("section",{className:`font-sans text-primary-text bg-white p-12 flex flex-col items-center ${e||""}`,id:l,children:[t?n(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}):null,a?.length?n("div",{className:"grid grid-cols-2 gap-8 mt-9",children:a.map(tt)}):null]}))),tt=(e,t)=>r("div",{className:"flex items-center gap-5 max-w-[500px]",children:[e.icon?n(p,{className:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",image:e.icon,width:"70",height:"70"}):null,r("div",{children:[n("h3",{className:"font-medium text-xl m-0",children:e.label}),e.description&&n("div",{className:"font-normal text-sm mt-2",children:e.description})]})]},String(t)),nt=a((e=>{const{className:t="",title:a,description:l,bonusItems:i,anchor:o=null}=e;return n("section",{className:`bg-white p-12 ${t}`,id:o,children:r("div",{className:"container",children:[a?n(s,{headingType:"h2",className:"text-center",title:a}):null,l?n("div",{className:"text-md font-light text-center mt-2",children:l}):null,n("div",{className:"flex flex-wrap w-full mt-9",children:i?i.map(((e,t)=>n("div",{className:"flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-4 mx-2 even:mr-0 odd:ml-0 last:odd:w-full last:odd:mx-0",children:r("div",{className:"flex justify-between w-full",children:[r("div",{className:"mr-4",children:[n("div",{className:"text-title-sm",children:e.name}),n("div",{className:"text-md font-light mt-3 max-w-[488px]",children:e.description})]}),e.bonusCount?r("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[n("span",{className:"font-serif -tracking-wider text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}),n("span",{className:"text-[44px] bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName})]}):null]})},String(t)))):null})]})})})),rt=a((({children:e})=>n("div",{className:"self-start flex flex-col",role:"row",children:n("div",{className:"flex",children:e})}))),at="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",lt="border-main-stroke border-solid border",it="border-main-divider border border-t-0 border-x-0",st="w-[200px] mr-6",ot={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},ct=a((({children:e,activeCardIndex:t,columnWidth:r,version:a="comparison"})=>n("div",{className:"flex flex-1 overflow-hidden",children:n("div",{className:ot[a],style:{transform:`translateX(-${t*r}px)`},children:e})}))),dt=a((({icon:e,image:t,title:a,link:l})=>r("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${lt} ${at}`,role:"columnheader",scope:"col",children:[e&&!t?.src&&n(p,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&n(p,{className:"mb-[18px]",image:t}),a&&n(s,{headingType:"h4",as:"h3",className:"text-center text-white",title:a}),l?.text&&n("div",{className:"mt-auto w-full",children:n(z,{href:l.href,target:l.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:n("div",{className:"font-medium text-xs py-[11px]",children:l.text})})})]}))),mt=a((({colHeaders:e,activeCardIndex:t,router:a,handlerDecorator:l})=>r(rt,{children:[n("div",{className:st,role:"columnheader",scope:"col"}),n(ct,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>n(dt,{...e,link:e.link&&W({router:a,handlerDecorator:l},e.link)},String(t))))})]}))),ht=a((({cell:e,isFirstRow:t,isLastRow:r,isFillGradient:a})=>n("div",{className:`w-80 box-border flex flex-col ${lt} ${r?"border-t-0 rounded-b-md":"border-y-0"} ${a?at:""}`,role:"cell",children:n("div",{className:`mx-7 h-full ${it} ${a&&t?"border-t":""} ${r?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>xt(e,t,a)))})}))),xt=({label:e,description:t},a,l)=>r("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e&&n("h4",{className:"text-xl font-medium m-0 "+(l?"text-white":""),children:e}),t&&n("div",{className:"text-sm opacity-80 "+(l?"text-white":"text-secondary-text"),children:t})]},String(a)),ut=a((({row:{header:e,data:t},activeCardIndex:a,isColoredFirstColumn:l,isFirstRow:i,isLastRow:s})=>r(rt,{children:[e?.title?n("div",{className:`text-sm py-7 ${it} w-[200px] mr-6 ${s?"border-b-0":"border-solid"}`,children:e.title}):null,t?.length?n(ct,{activeCardIndex:a,columnWidth:336,children:t.map(((e,t)=>n(ht,{cell:e,isFirstRow:i,isLastRow:s,isFillGradient:l&&0===t},String(t))))}):null]}))),pt=a((({isScrollAvailable:e,onNextClick:t,onPrevClick:a,showNextButton:l,showPrevButton:i})=>e?n("div",{children:r("div",{className:"absolute top-7 right-7 z-10",children:[n(Le,{onClick:t,disabled:!l,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}),n(Le,{className:"mt-4 rotate-180",onClick:a,disabled:!i,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"})]})}):null)),bt=a((({rowData:e,activeCardIndex:t,isColoredFirstColumn:a,...l})=>r("div",{className:"relative",children:[e.map(((e,r,{length:l})=>n(ut,{row:e,isFirstRow:0===r,isLastRow:r+1===l,activeCardIndex:t,isColoredFirstColumn:a},String(r)))),n(pt,{...l})]}))),gt=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:n,setActiveCardIndex:r})=>{const a=e>t;return{onNextClick:()=>r(n+1),onPrevClick:()=>r(n-1),isScrollAvailable:a,showNextButton:a&&e-n>t,showPrevButton:Boolean(a&&n>0)}},ft=a((({context:e,columns:t,rowHeaders:a,isShowAllRow:l,visibleRowLength:i,isColoredFirstColumn:s})=>{const o=e.useRouter(),{handlerDecorator:c}=e,d=t?.map((({header:e})=>e||{})),m=t?.map((({data:e})=>e))||[],h=a?.map(((e,t)=>({header:e,data:m.map((e=>e?.[t]||[{}]))}))).slice(0,l?a.length:i),[x,u]=e.useState(0),p=gt({columnsLength:m.length,colsLengthForScroll:2,activeCardIndex:x,setActiveCardIndex:u}),{isScrollAvailable:b}=p;return r("div",{children:[r("div",{role:"table",children:[d?.length?n(mt,{colHeaders:d,activeCardIndex:x,router:o,handlerDecorator:c}):null,h?.length?n(bt,{rowData:h,activeCardIndex:x,isColoredFirstColumn:s,...p}):null]}),b?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Nt=a((({className:e,context:t,title:a,rowHeaders:l,columns:i,visibleRowLength:o=0,isColoredFirstColumn:c=!1,anchor:d=null})=>{const[m,h]=t.useState(!o);return r("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,id:d,children:[n(s,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:a}),n(ft,{context:t,columns:i,rowHeaders:l,isShowAllRow:m,isColoredFirstColumn:c,visibleRowLength:o}),o?vt({isShowAllRow:m,onClick:()=>h(!m)}):null]})})),vt=({isShowAllRow:e,onClick:t})=>n("div",{className:"pr-[50px]",children:r("div",{className:"flex w-full",children:[n("div",{className:st}),n("button",{onClick:t,className:"mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:n("div",{className:"font-sans font-medium text-xs py-[11px]",children:e?"Скрыть":"Показать все параметры"})})]})}),yt=a((({tabs:e,currentTabIndex:t,onTabClick:r})=>n("div",{className:"flex items-end border-b border-main-stroke",role:"tablist",children:e?.map(wt(t,r))}))),wt=(e,t)=>(a,l)=>{const i=e===l;return r("div",{className:"flex h-full flex-1 cursor-pointer mr-2 last:mr-0 box-content "+(i?"px-2 h-16 pt-4 pb-2 text-white bg-primary-main":"px-2 h-14 pb-2 pt-3 border border-b-0 border-main-stroke"),role:"tab",onClick:()=>t(l),"aria-selected":String(i),children:[a?.icon?It(a,i):null,r("div",{children:[a?.title?n("h3",{className:"font-medium m-0 text-base",children:a?.title}):null,a?.description?n("span",{className:"font-light text-xs "+(i?"":"text-secondary-text"),children:a?.description}):null]})]},String(l))},It=(e,t)=>n("div",{className:"h-full mt-1",children:n(p,{className:"w-5 h-5 mr-3 "+(t?"invert-full":""),image:e?.icon||"CardIcon",asSVG:!t})});async function kt(e){const t=await fetch(e);return await t.json()}const Ct=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],$t=a((({text:e,checked:t,onChange:a,className:l})=>n("div",{className:l,children:r("label",{className:"flex items-center cursor-pointer relative",children:[n("input",{className:`peer appearance-none w-5 h-5 border-solid border ${t?"border-black":"border-main-stroke"} rounded checked:bg-primary-main checked:border-primary-main m-0`,type:"checkbox",onChange:e=>{a(e.target.checked)},checked:t}),n(Re,{paths:Ct,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),e?n("span",{className:"font-sans ml-3 text-sm leading-5 cursor-pointer",children:e}):null]})}))),St=(e,t,n)=>Math.max(t,Math.min(e,n)),Tt=3e4,Dt=3e6,At=Math.round(41.5),Rt=(Mt=[[e=>1===e,"год"],[e=>e<=4,"года"],[()=>!0,"лет"]],e=>{const[,t]=Mt.find((([t])=>t(e)))||[];return t});var Mt;const Lt=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),Pt=a((({className:e,title:t,items:a=[],min:l=1,max:i=100,step:s=1,value:o=l,onChange:c})=>{const d=e=>{if(!c)return;const t=Number(e.replace(/\D/g,""));c(t)},m={backgroundSize:`${(100*(o-l)/(i-l)).toFixed(2)}% 100%`};return r("div",{className:e,children:[r("label",{className:"block relative",children:[t?n("span",{className:"absolute text-xs text-secondary-text top-1 mt-0.5 pl-4 ml-0.5",children:t}):null,n("input",{className:"m-0 font-sans text-sm w-full h-12 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 m-0 box-border text-primary-text "+(t?"pt-4":""),value:Lt(o),onChange:e=>d(e.target.value),onBlur:()=>{c&&(o<l&&c(l),o>i&&c(i))}}),n("div",{className:"absolute inset-x-0 top-[35px] px-4 leading-[18px]",children:n("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:l,max:i,step:s,value:o,onChange:e=>d(e.target.value),style:m})})]}),n("div",{className:"flex justify-between my-3",children:a.map(((e,t)=>r("span",{className:"text-xs leading-[14px] text-secondary-text pl-4",children:[" ",e," "]},String(t))))})]})}));function jt(e){const{minMonths:t,maxMonths:r,monthsValue:a,defaultMonths:l,setMonthsValue:i}=e;return n(Pt,{className:"mt-[23px]",title:"Срок кредита, месяцев",items:["Или выберите из предложенных вариантов ниже"],min:t,max:r,step:1,value:a||l,onChange:i})}function Bt(e,t){return r("div",{className:"box-border h-fit p-9 bg-primary-main rounded-md text-white",children:[n("div",{className:"text-base mb-[18px]",children:"Наше предложение"}),n("div",{className:"text-sm opacity-60",children:"Ежемесячный платёж"}),r("div",{className:"text-lg mb-3",children:[Lt(Math.round(e))," ₽"]}),n("div",{className:"text-sm opacity-60",children:"Ставка"}),r("div",{className:"text-lg",children:[t," %"]})]})}function _t(e){const{calculatorParams:t,moneyValue:r,defaultSum:a,setMoneyValue:l}=e,i=t?.minSum||Tt,s=t?.maxSum||Dt;return n(Pt,{title:"Желаемая сумма кредита, ₽",items:[`От ${Lt(i)} рублей`,`До ${Lt(s)} рублей`],min:i,max:s,step:1e3,value:r||a,onChange:l})}const Wt=a((({context:e,directoryName:t})=>{const[a,l]=e.useState(void 0),[i,s]=e.useState(void 0),[o,c]=e.useState(!0),[d,m]=e.useState(!0),h=function(e,t){const{data:n}=e(function(e){return`/wcms-resources/${e||"credit-calculator-data"}.json`}(t),kt);return n||{}}(e.useAsyncData,t).rows,x=(e=>{const{tableRows:t,isAnnuity:n=!1}=e;return t&&t.find((e=>e.isAnnuity===n))||{}})({tableRows:h,isAnnuity:o}),u=(e=>e.maxSum&&e.minSum?(e.maxSum-e.minSum)/2:1485e3)(x),p=(e=>e.maxMonths&&e.minMonths?Math.round((e.maxMonths-e.minMonths)/2):At)(x),b=x?.minMonths||1,g=x?.maxMonths||84,f=(e=>{const{calculatorParams:t,isInsurance:n}=e;return t?n?t?.rateWithInsurance||5:t?.rateWithoutInsurance||5:5})({calculatorParams:x,isInsurance:d}),N=(e=>{const{calculatorParams:t,paymentType:n,rate:r,sum:a,months:l}=e;if(!t)return 0;const i=St(a,t.minSum||Tt,t.maxSum||Dt);if("annuity"===n){const e=Number(r)/1200;return i*(e+e/(Math.pow(1+e,l)-1))}return i/l+i*(Number(r)/12)})({calculatorParams:x,paymentType:"annuity",rate:f,sum:a||u,months:i||p}),v=((e,t)=>{const n=Math.ceil((t-e)/12),r=Math.floor(e/12)+1,a=new Array(Math.min(n-1,5)).fill(0).map(((e,t)=>r+t)),l=n+r-1;return a.concat(l)})(b,g);function y(e){s(St(12*e,b,g))}return n("section",{className:"mt-7",children:r("div",{className:"box-border p-[49px] pr-[56px] mx-auto w-max border-solid border-[3px] border-primary-main rounded-md",children:[r("div",{className:"flex justify-between",children:[r("div",{className:"mr-[42px]",children:[_t({calculatorParams:x,moneyValue:a,defaultSum:u,setMoneyValue:l}),jt({minMonths:b,maxMonths:g,monthsValue:i,defaultMonths:p,setMonthsValue:s}),n("div",{className:"flex mb-7",children:v.map(((e,t)=>function(e,t,a){const l=Rt(e);return n("button",{className:"bg-secondary-light rounded-3xl h-10 w-[75px] box-border mr-2 flex items-center justify-center cursor-pointer border-none",onClick:()=>a(e),children:r("span",{className:"font-semibold text-sm",children:[e," ",l]})},String(t))}(e,t,y)))}),n($t,{text:"Получаю пенсию на карту Россельхозбанка",checked:o,onChange:c}),n($t,{className:"mt-3 mb-7",text:"Комплексная страховая защита",checked:d,onChange:m})]}),Bt(N,f)]}),r("div",{className:"flex items-center",children:[n(z,{className:"mr-3",text:"Отправить заявку",version:"primary",href:"#"}),n("div",{className:"w-80 text-2xs leading-4 text-secondary-text","aria-label":"Соглашение на обработку персональных данных",children:"Отправляя заявку, вы соглашаетесь на обработку персональных данных соответственно требованиям ФЗ «О персональных данных»"})]})]})})})),Gt=[{title:"Кредит",description:"Ставка от 6% до 7 лет",directoryName:"credit-calculator-data",icon:{icon:"CardIcon"}},{title:"Кредит",description:"Ставка от 4% до 7 лет",directoryName:"credit-calculator-data1",icon:{icon:"ChartSquareIcon"}},{title:"Кредит",description:"Ставка от 3% до 6 лет",directoryName:"credit-calculator-data2",icon:{icon:"DiscountShapeIcon"}}],Vt=a((({className:e="",context:t,tabs:a=Gt,anchor:l=null})=>{const[i,o]=t.useState(0);return r("section",{className:`font-sans text-primary-text py-10 bg-white ${e}`,id:l,children:[n(s,{className:"w-full text-center mb-8",headingType:we(e),title:"Калькулятор"}),n(yt,{tabs:a,currentTabIndex:i,onTabClick:o}),n(Wt,{context:t,directoryName:a[i]?.directoryName})]})}));async function Et(){try{const e=await fetch(Ot);return await e.json()}catch(e){console.error(e)}}const Ot="/api/v1/exchangerates.json",Ft=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),Ht=e=>e?Ft.format(e):"",Ut="font-light text-left font-normal text-sm text-secondary-text",Zt={USD:"DollarIcon",EUR:"EuroIcon"},zt=a((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:Ut,children:"Валюта"}),n("th",{className:`${Ut} pl-11`,children:"Купить"}),n("th",{className:`${Ut} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>qt(e)))})]}))),qt=e=>{const t=e?.currency?.currency;return r("tr",{className:"pb-1",children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(p,{image:{icon:Zt[t]},width:"24",height:"24"}):null,n("span",{className:"text-m-title-md ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:Ht(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:Ht(e.saleExchangeRate)})]},t)},Jt=a((({className:e="",address:t,distance:a})=>r("div",{className:`flex text-sm ${e}`,children:[n(p,{className:"min-w-fit",image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,a?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",a]}):null]})]}))),Kt=a((({className:e="",id:t,name:r,type:a="text",placeholder:l})=>n("input",{className:e,id:t,name:r||t,type:a,placeholder:l}))),Xt=a((({className:e="",id:t,name:r,children:a})=>n("select",{className:e,id:t,name:r||t,children:a}))),Qt=a((({className:e="",value:t,children:r})=>n("option",{className:e,value:`${t}`,children:r}))),Yt=a((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[en("Хочу продать",e),en("Получу",e),n(z,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function en(e,t){return r("div",{className:"relative flex items-center",children:[n(Kt,{className:"h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12",type:"number",placeholder:`${e}`}),t.length?n(Xt,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(Qt,{value:e,children:e},String(t))))}):null]})}const tn=["USD","EUR"],nn=["RUB","USD","EUR"],rn=[{buyExchangeRate:90.6,saleExchangeRate:92.8,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:73.75,saleExchangeRate:75.95,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],an={address:"Москва, ул.Ленина д.28",distance:"6км"},ln=a((({className:e="",context:t,title:a="Курсы обмена валют",anchor:l=null})=>{const i=function(e){const{data:t}=e(Ot,Et);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==tn.indexOf(e?.currency?.currency||"")))||rn;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:l,children:n(ae,{context:t,title:n(s,{headingType:we(e),title:a,className:"whitespace-pre-wrap"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-[43px] pt-4",children:[i?n(zt,{className:"mb-[31px]",exchangeCurrencyItems:i}):null,n(Jt,{...an})]}),i?.length?n(Yt,{className:"grow",exchangeCurrencyItems:i,codes:nn}):null]})})})})),sn=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],on={"bg-white":"text-primary-main",transparent:"text-white"},cn={"bg-white":"text-black",transparent:"text-white"},dn=a((({className:e,href:t,children:a,targetBlank:l,bgColor:i="bg-white",hideTitle:s})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e||""}`,href:t||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(Re,{className:`${on[i]} w-10`,viewBox:"0 0 40 45",paths:sn.map((e=>({d:e})))}),!s&&n("span",{className:`${cn[i]} font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),mn=a((({className:e,context:t})=>{const{term:a,setTerm:l}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[24px] h-[24px]",children:n(p,{image:"LoupeIcon",width:"24",height:"24"})}),!a&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-light text-base text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer font-sans font-light text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:a,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input"}),n(z,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),hn=a((({className:e="",items:t,hasButton:a,context:l})=>{const i=l.useRouter(),{handlerDecorator:s}=l;return r("div",{className:e,children:[t?.length?t.map(xn):null,a?n(z,{version:"primary",className:"mb-6 w-full",...W({router:i,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),xn=(e,t)=>{const{type:a,text:l,description:i}=e;return r("div",{className:"mb-4",children:[n("div",{children:un(a,l)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:i})]},String(t))},un=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${pn(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},pn=e=>e.replaceAll(/\D/g,""),bn=a((({links:e,className:t="",context:r})=>{const a=r.useRouter(),{handlerDecorator:l}=r;return n("div",{className:t,children:e?.length?n("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:e.map(((e,t)=>n(gn,{index:t,...W({router:a,handlerDecorator:l},e)},String(t))))}):null})})),gn=a((({className:e="",index:t,text:r,href:a,target:l,onClick:i})=>n("a",{className:`font-sans font-light text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:l,onClick:i,children:r||`Документ ${t}`}))),fn=e=>t=>e?.href===t?.href,Nn=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(fn(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(fn(e))))));var n,r,a};function vn(e){const{data:t}=e(wn(),yn);return t||{}}async function yn(){const e=await fetch(wn());return await e.json()}function wn(){return`/wcms-resources/${x.SITEMAP||"sitemap"}.json`}const In=a((({className:e="",items:t,context:r})=>{const a=vn(r.useAsyncData),l=Nn(a.topItems,t),i={router:r.useRouter(),handlerDecorator:r.handlerDecorator};return n("div",{className:`flex items-start justify-between gap-11 xl:gap-5 ${e}`,children:l?.map(((e,t)=>kn(e,t,i)))})})),kn=(e,t,{router:a,handlerDecorator:l})=>{const{text:i,href:s,items:o,target:c}=e;return r("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-[14px]",children:[n("a",{className:"block font-sans leading-5 text-base text-primary-text no-underline",href:s,target:c||"_self",children:i||`Раздел ${t}`}),o?.map(((e,t)=>n(Cn,{...W({router:a,handlerDecorator:l},e),index:t},String(t))))]},String(t))},Cn=a((({text:e,href:t,target:r,index:a})=>n("a",{className:"block font-sans font-light text-base text-secondary-text hover:text-primary-main no-underline",href:t,target:r||"_self",children:e||`Раздел ${a}`}))),$n=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники",width:"12px",height:"20px"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store",width:"20px",height:"22px"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play",width:"21px",height:"21px"}],Sn=a((({href:e,version:t})=>{const{icon:r,width:a,height:l,label:i}=$n.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!r)return null;return n("a",{className:` flex items-center justify-center border border-solid rounded-md border-main-divider no-underline outline-none w-14 h-14 box-border ${"secondary"===t?"text-white hover:text-primary-main hover:bg-white":"text-primary-main hover:text-white hover:bg-primary-main hover:border-primary-main"}`,href:e,"aria-label":i,target:"_blank",rel:"noopener noreferrer",children:r?n(p,{image:r,width:a,height:l,asSVG:!0,className:"block"}):null})})),Tn=a((({className:e="",media:t,version:a,context:l,children:i})=>{const s=l.useRouter(),{handlerDecorator:o}=l;return r("div",{children:[n("div",{className:`flex gap-2.5 mb-1.5 ${e}`,children:t?.map(((e,t)=>n(Sn,{version:a,...W({router:s,handlerDecorator:o},e)},String(t))))}),n("span",{className:"font-light text-sm text-secondary-text",children:i})]})})),Dn=a((({className:e,links:t,context:a})=>{const l=a.useRouter(),{handlerDecorator:i}=a;return r("div",{className:`${e||""}`,children:[n("div",{className:"pt-5 pb-[5px]",children:n("span",{className:"font-sans font-light text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>n(An,{index:t,...W({router:l,handlerDecorator:i},e)},String(t))))}):null]})})),An=a((({className:e,index:t,text:r,href:a,target:l,onClick:i})=>n("a",{className:`font-sans font-light text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:l,onClick:i,children:r||`Документ ${t}`}))),Rn="w-[204px]",Mn=a((({className:e,documents:t,relatedEnterprises:a,contacts:l,socialMedia:i,mobileApps:s,topItems:o,context:c,anchor:d=null})=>r("footer",{className:`px-9 pt-9 pb-8 bg-white ${e||""}`,id:d,children:[r("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[n(dn,{className:Rn}),n(mn,{context:c,className:"grow"})]}),r("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[r("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[n(hn,{items:l,context:c,hasButton:!0}),n(Tn,{media:i,context:c,children:"Соцсети"}),n(Tn,{className:"mt-6",media:s,context:c,children:"Мобильное приложение"})]}),n(In,{className:"pt-[3px]",context:c,items:o})]}),n(bn,{className:"mt-24",links:a,context:c}),n(Dn,{links:t,context:c})]}))),Ln=a((({className:e="",title:t,description:a,calendar:l,anchor:i=null})=>r("section",{className:`bg-white p-16 pt-12 ${e}`,id:i,children:[n(s,{headingType:"h2",className:"text-center",title:t}),n("div",{className:"font-light text-base-md text-center mt-3",children:a}),l?Pn(l):null]}))),Pn=e=>{const t=100/(e.reduce(((e,t)=>e+t.month.length),0)||1),a=e.map((e=>({...e,flexBasis:e.month.length*t+"%"})));return r("div",{className:"w-full flex flex-col justify-center mt-14",children:[n("div",{className:"flex w-full mb-3 font-light text-m-title-md mb-3 text-center",children:a.map((e=>jn(e,t)))}),n("div",{className:"flex w-full",children:a.map(((e,t)=>r("div",{className:"pr-3 mr-3 border-r border-r-gray/100 last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[n("div",{className:"flex",children:Bn(e)}),r("div",{className:"font-light text-sm text-primary-text mt-3",children:[n("span",{children:e.blackText})," ",n("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},jn=(e,t)=>e.month.map((e=>n("div",{style:{flexBasis:`${t}%`},children:e.name},`monthName-${e.name}`))),Bn=e=>e.month.map((e=>e.image?.src?n("div",{className:"max-h-[207px] border-r-[1px] pr-3 mr-3 border-r-gray/100 last:border-r-0 last:pr-0 last:mr-0",children:n(p,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),_n=(e,t,n=((e,t)=>t.startsWith(e)))=>n(R(e),(e=>(e||"").replace(j,""))(R(A(e)?t.href:t.pathname))),Wn=e=>t=>_n(t.href,e),Gn=e=>t=>t.items?.some(Wn(e))||_n(t.href,e)||((e,t)=>M(e)===M(t.href))(t.href,e),Vn=a((({className:e="",text:t,href:r,target:a,active:l,flat:i,onClick:s,children:o,ariaLabel:c,bgColor:d="bg-white"})=>n("a",{className:`${En(d,l,i)} ${e}`,href:r,target:a,onClick:s,rel:"noopener noreferrer","aria-label":c,children:n("span",{className:On(d,l,i),children:t||o})}))),En=(e,t,n)=>{let r="border-transparent";return t&&(r="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${r} inline-block border border-solid bg-transparent text-center no-underline ${n?"":"px-4 py-2"}`},On=(e,t,n)=>{let r="text-white";return"bg-white"===e&&(r=t?"text-primary-main":(n?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"),`${r} font-sans font-light text-sm`},Fn=a((({className:e="",children:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":r,children:t}))),Hn={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},Un={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},Zn={"bg-white":"GridIcon",transparent:"GridIconWhite"},zn=a((({context:e,className:t,defaultLocation:a="",bgColor:l="bg-white"})=>{const[i,s]=e.useGeolocation(a);return r("div",{className:`flex items-center ${t||""}`,children:[n(Vn,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:l}),n(Vn,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:l}),n(Fn,{className:`mr-5 ${Hn[l]}`,ariaLabel:"Поиск по сайту",children:n(p,{image:"LoupeIcon",className:"h-full",asSVG:!0})}),n(Fn,{className:`${Un[l]} min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:n(p,{image:Zn[l],className:"h-full",asSVG:!0})})]})})),qn=e=>(t=[])=>{const n=t?.filter(Wn(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null},Jn="absolute left-0 -bottom-3 w-full h-[2px]",Kn=a((({className:e="",text:t,href:a,target:l,active:i,onClick:s,children:o,bgColor:c="bg-white",dataItemName:d})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:a,target:l,onClick:s,"data-item-name":d,children:[n("span",{className:Xn(c,i),children:t||o}),i?n("div",{className:Qn(c,i)}):null]}))),Xn=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${n} font-sans font-light text-base`},Qn=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Jn}`:Jn,Yn=()=>!("undefined"!=typeof window&&window.document&&window.document.createElement),er=!Yn()?new IntersectionObserver((e=>{const t=window.document.querySelector("[data-header-submenu-visible=toggled]"),[n,r]=["[data-item-name=header-submenu]","[data-item-name=dots-header-submenu]"].map((e=>Array.from(window.document.querySelectorAll(e))));const a={};e.forEach((e=>{a[e.target.toString()]=e.isIntersecting}));const l=tr(a,r,"hidden");tr(a,n,"invisible"),t&&(l?t.classList.remove("hidden"):t.classList.add("hidden"))}),{root:window.document,threshold:1}):void 0,tr=(e,t,n)=>{const r="hidden"!==n;return t.some((t=>{const a=t.toString(),l=r?!e[a]:e[a];return a in e&&t.classList.toggle(n,l),r?t.classList.contains("hidden"):!t.classList.contains("hidden")}))},nr=a((({context:e,subItems:t,bgColor:a})=>{const[l,i]=e.useState(!1),s=e.useRouter(),{handlerDecorator:o}=e;setTimeout((()=>{if(Yn())return;globalThis.document.querySelectorAll("[data-item-name=header-submenu]").forEach((e=>{er?.observe(e)}))}),200);const c=qn(s)(t),d=t?.map((e=>n(Kn,{className:"mr-8",active:e===c,...W({router:s,handlerDecorator:o},e),dataItemName:"header-submenu",bgColor:a},e.href)));return r("nav",{className:"relative mt-5",children:[n("div",{className:"overflow-hidden whitespace-nowrap mr-52",children:d}),rr({subMenuIsShow:l,toggleSubMenu:()=>i(!l),subItems:t,router:s,handlerDecorator:o})]})})),rr=({subMenuIsShow:e,toggleSubMenu:t,subItems:a,router:l,handlerDecorator:i})=>r("div",{className:"absolute w-52 -top-4 right-0 pt-4 z-40 "+(e?"bg-white rounded-md shadow-blue-gray/24":""),"data-header-submenu-visible":"toggled",children:[n("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6",onClick:t,"aria-label":""+(e?"Скрыть другие разделы":"Показать другие разделы"),children:Array(3).fill(0).map(((e,t)=>lr(t)))}),n("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(e?"":"hidden"),"aria-hidden":!e,children:ar(a,l,i)})]}),ar=(e,t,r)=>e?.map((e=>n("a",{...W({router:t,handlerDecorator:r},e),"data-item-name":"dots-header-submenu",className:"text-base font-light pb-4 hover:text-primary-main",children:e.text},e.href))),lr=e=>n("div",{className:"w-[3px] h-[3px] rounded bg-black mr-1"},String(e)),ir={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},sr=a((({className:e="",defaultLocation:t="Москва",bgColor:a="bg-white",context:l,topItems:i,anchor:s=null})=>{const o=l.useRouter(),c=vn(l.useAsyncData),{handlerDecorator:d}=l,m=Nn(c.topItems,i),h=m.find(Gn(o)),x=m.map(((e,t)=>n(Vn,{active:e===h,...W({router:o,handlerDecorator:d},e),"aria-label":e.text,bgColor:a},String(t))));return n("header",{className:`pt-6 pb-8 px-20 ${a} ${e}`,id:s,children:r("div",{className:"container",children:[r("div",{className:"flex items-center",children:[n(dn,{className:"mr-8",bgColor:a}),x,n(zn,{context:l,className:"ml-auto",defaultLocation:t,bgColor:a})]}),n("div",{className:`mt-6 h-[1px] ${ir[a]}`}),n(nr,{context:l,subItems:h?.items,bgColor:a})]})})})),or=a((({className:e="",context:t,title:a="Мобильное приложение",qr:l,buttons:i=[],anchor:o=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${ke(e)} ${Ie(e)} `,id:o,children:n(ae,{context:t,title:a&&n(s,{headingType:"h3",title:a,className:"whitespace-pre-wrap max-w-[600px] mb-[30px]"}),buttons:i?.length?n(K,{context:t,buttons:i,className:"flex mt-[30px] gap-4"}):null,children:r("div",{className:"flex items-center",children:[l?.src&&l?.href&&n("a",{href:l.href,target:"_blank","aria-label":a,children:n("img",{src:l.src,alt:a,title:a,width:"164",height:"164",className:"w-[92px] h-[92px] min-w-[92px] min-h-[92px] bg-secondary-light"})}),n("span",{className:"font-light text-secondary-text ml-4",children:"Наведите камеру телефона на QR-код и скачайте приложение"})]})})}))),cr=a((({className:e,text:t,onClick:r,href:a,target:l,isActive:i})=>n("a",{className:`bg-inherit no-underline px-4 py-2.5 cursor-pointer rounded text-sm border border-solid hover:text-primary-main ${e||""} ${i?"border-primary-main text-primary-main":"border-white text-secondary-text"}`,onClick:r,href:a,target:l,children:t}))),dr=a((({className:e,context:t,title:a,buttons:l,anchor:i=null})=>{const s=t.useRouter(),{handlerDecorator:o}=t,c=qn(s)(l);return r("section",{className:`font-sans text-primary-text rounded-[40px] flex items-center justify-between ${e||""}`,id:i,children:[n("h2",{className:"font-medium text-xl m-0",children:a}),l?.length?n("div",{className:"flex rounded-md overflow-hidden bg-white",children:l.filter((({text:e})=>e)).map(((e,t)=>n(cr,{className:"first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md",isActive:e===c,...W({router:s,handlerDecorator:o},e)},String(t))))}):null]})})),mr=a((({className:e="",label:t,active:r,children:a,onClick:l,href:i,target:s="_self"})=>n("a",{className:hr(e,r),target:s,href:i,onClick:l,children:n("span",{className:xr(r),children:t||a})}))),hr=(e,t)=>`${t?"bg-primary-main":"group bg-white"} flex-1 flex items-center justify-center cursor-pointer ${e}`,xr=e=>`${e?"text-white":"text-secondary-text group-hover:text-primary-main "} font-sans font-normal text-sm`,ur=a((({className:e="",navigatorTabs:t,context:r,anchor:a=null})=>{const l=r.useRouter(),i=globalThis.location?.href;return n("section",{className:`sticky top-0 z-20 box-border flex gap-x-1 h-12 ${e}`,id:a,children:t?t.map(pr(i,l)):null})})),pr=(e,t)=>(r,a)=>{const l=L(e),i=l?r.href===l:0===a;return n(mr,{active:i,onClick:()=>br(t,r.href),...r},r.href)},br=(e,t)=>{A(t)||e?.replace(t||"")},gr=a((({blocks:e,columns:t=1,context:r})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden",children:n("div",{className:"box-border w-full p-9 "+(t>1?"flex flex-wrap":""),children:Je({context:r,className:"box-border p-5",columns:t,blocks:e})})}))),fr=a((({label:e,isExpanded:t,blocks:a,columns:l,context:i})=>{const{hasContent:s,icon:o,handleToggle:c,isActive:d}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,a]=e.useState(n),l=t?.length;return{isActive:r,hasContent:l,icon:r?"ArrowUpIcon":"ArrowDownIcon",handleToggle:e=>{if(!l)return;a(!r);const t=(({currentTarget:e})=>e.previousSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:i,blocks:a,initialState:t});return r("div",{className:"border-0 border-b border-solid border-main-divider",children:[s?n(gr,{isExpanded:d,columns:l,blocks:a,context:i}):null,r("button",{className:"border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer",onClick:c,children:[n("span",{className:"pr-3",children:d?"Скрыть":e}),s?n(u,{name:o,width:"20",height:"20",asSVG:!0}):null]})]})})),Nr=a((({blockItems:e,context:t,className:r})=>n("section",{className:`font-sans bg-white text-primary-text ${r||""}`,children:e?.length?n("div",{className:"list-none m-0 p-0",children:e.map(((e,r)=>n(fr,{...e,context:t},`BlockItem${r}`)))}):null}))),vr=a((({className:e,context:t,title:a,description:l="Блок в разработке...",anchor:i=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${ke(e)} ${Ie(e)} `,id:i,children:r(ae,{context:t,title:a?n(s,{headingType:we(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[l?n(X,{className:"mt-4 max-w-[600px]",description:l}):null,n("figure",{className:"m-0 min-w-[600px]",children:yr()})]})}))),yr=(e=3)=>Ir(100,e).map((e=>Math.floor(e))).map(wr),wr=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Ir=(e,t)=>[e].concat(t>0?Ir(e/1.618,t-1):[]),kr={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Cr=a((({block:e,headingType:t,context:r,className:a=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full ${kr[e?.version??"primary"]} ${a}`,role:"listitem",children:n("div",{className:"p-10 flex grow",children:n(oe,{className:"pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem]",context:r,headingType:t||"h2",...e})})}))),$r=a((({className:e,context:t,duration:a=0,slides:l=[],anchor:i=null})=>{const s=l.map((e=>e.nav)),o=l.map((e=>e.productBlock)),[c,d]=t.useState(0);return r("section",{className:`font-sans bg-white overflow-hidden w-100 ${e||""}`,id:i,children:[n("div",{className:"flex duration-1000",style:{transform:`translateX(-${c}00%)`},role:"list",children:o.map(((e,r)=>n(Cr,{context:t,block:e},String(r))))}),n("div",{className:"flex",children:s.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:a,onClick:l,duration:i}){const s=t===a,o=s?"animate-slide":"",c=s?"text-primary-text":"text-secondary-text";return r("button",{type:"button",onClick:l,"aria-label":e?.title,className:"font-sans group relative overflow-hidden border-0 bg-inherit cursor-pointer text-left px-0 pt-4 pb-[23px] grow basis-0",children:[r("div",{className:"border-0 border-r border-solid border-main-divider px-6",children:[n("div",{className:`text-sm font-medium pb-[3px] group-hover:text-primary-text ${c}`,children:e?.title}),n("div",{className:"text-xs text-secondary-text",children:e.desc})]}),n("div",{className:`absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${o}`,style:{animationDuration:`${i}s`,animationFillMode:"forwards"}})]},String(t))}({slide:e,i:t,activeSlideIndex:c,onClick:()=>d(t),duration:a})))})]})}));const Sr={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Tr={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},Dr={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ar=a((({className:e="",context:t,slides:a=[],version:l="primary",duration:i=0,anchor:s=null})=>{const o=a.map((e=>e.nav)),c=a.map((e=>e.productBlock)),[d,m]=t.useState(0);return r("section",{id:s,className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 ${e}\n ${Sr[l]}`,children:[n("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${d}00%)`},role:"list",children:c.map(((e,r)=>function(e,t,r){const{version:a}=e,l=a?Tr[a].title:"";return n("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:n("div",{className:"flex grow",children:n(oe,{className:`pl-[50px] pr-2 z-[1] ${l}`,context:r,textBlockClassName:"mb-[154px]",...e})})},String(t))}({...e,version:l},r,t)))}),n("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border",children:o.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:a,onClick:l,version:i,duration:s}){const o=t===a,c=o?"bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] max-w-[354px] p-0 border-none":`min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300\n ${Dr[i]}`,d=o?"text-primary-text text-title-2xs":`text-base ${Tr[i].title}`,m=o?"text-secondary-text text-m-title-xs mt-2.5":`text-m-md mt-1.5 ${Tr[i].text}`,h="secondary"===i?"border-white/50":"",x=o?"animate-slide":"";return r("button",{type:"button",onClick:l,"aria-label":e?.title,className:`box-border font-sans group relative overflow-hidden border-[1px] cursor-pointer text-left mx-1 grow basis-0 backdrop-blur-sm\n ${c} ${h}\n `,children:[r("div",{className:"border-0 px-6",children:[n("div",{className:`font-medium ${d}`,children:e?.title}),n("div",{className:`text-secondary-text ${m}`,children:e.description})]}),n("div",{className:`absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${x}`,style:{animationDuration:`${s}s`,animationFillMode:"forwards"}})]},String(t))}({slide:e,i:t,activeSlideIndex:d,onClick:()=>m(t),version:l,duration:i})))})]})}));const Rr={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Mr=a((({className:e="",context:t,title:a="Акции и спецпредложения",date:l,description:i,buttons:o=[],version:c="primary",anchor:d=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Rr[c]} ${ke(e)} ${Ie(e)} `,id:d,children:n(ae,{context:t,title:a?n(s,{headingType:we(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:o?.length?n(K,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,children:r("div",{className:"mt-1.5",children:[l?n("div",{className:"text-sm mb-2",children:Lr(l)}):null,n("div",{className:"text-base",children:i})]})})})));function Lr(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Pr=a((({context:e,className:t="",title:a,description:l,items:i,image:o,version:c,socialMedia:d})=>n("section",{className:`border border-solid box-border py-[30px] px-9 min-w-[515px] max-w-[515px] ${t}`,role:"listitem",children:r(ae,{context:e,className:"flex justify-between",title:a?n(s,{headingType:"h4",as:"h3",className:"font-normal mb-3.5",title:a}):null,image:o?.src&&n(p,{className:"mt-auto ml-7",image:o}),children:[l?n(X,{className:"text-left",description:l}):null,i?.length?n(re,{className:"text-md font-light flex flex-col gap-2",items:i,version:c}):null,n(Tn,{className:"pt-[42px] pb-0",media:d,version:c,context:e})]})}))),jr="absolute top-0 bottom-0 w-[84px]",Br=a((({context:e,recommendations:t=[],className:a="",title:l,version:i,anchor:o=null})=>{const[c,d]=e.useState(0),m="secondary"===i?"border-white/50":"border-main-stroke";return r("section",{className:`relative font-sans p-9 overflow-hidden text-center ${"secondary"===i?"bg-primary-main text-white":"bg-white text-primary-text"} ${a}`,id:o,children:[l?n(s,{headingType:"h2",className:"mb-6",title:l}):null,n("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*c}px)`},role:"list",children:t?.length?t.map(_r({context:e,version:i,className:m})):null}),Wr({cardsCount:t.length,activeCardIndex:c,setActiveCardIndex:d}),n("div",{className:`${jr} left-0 ${"secondary"===i?"bg-opacity-from-main":"bg-opacity-from-white"}`}),n("div",{className:`${jr} right-0 ${"secondary"===i?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),_r=({context:e,version:t,className:r})=>(a,l)=>n(Pr,{context:e,...a,version:t,className:r},String(l)),Wr=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:a})=>{const l=e>2,i=l&&e-t>2;return r("div",{children:[l&&t>0&&n(Le,{className:"absolute top-1/2 left-8 rotate-180 z-10 mt-6",onClick:()=>a(t-1),ariaLabel:"Пролистать влево"}),i&&n(Le,{className:"absolute top-1/2 right-8 z-10 mt-6",onClick:()=>a(t+1),ariaLabel:"Пролистать вправо"})]})},Gr=a((({className:e="",title:t,showLines:a=!0,steps:l=[],button:i,anchor:o=null})=>{const c=l.length>3;return r("section",{className:["box-border font-sans text-primary-text bg-white",c?"px-20":"px-[70px]","py-[50px] flex flex-col items-center",e].join(" "),id:o,children:[n(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}),l?.length?r("div",{className:"box-border py-0.5 mb-0.5 "+(t?"mt-9":""),children:[n("div",{className:"flex items-center px-[88px]",children:V(n("div",{className:"h-0.5 w-full bg-secondary-light "+(a?"":"opacity-0")}))(l.map(Vr))}),n("div",{className:"flex justify-between "+(c?"gap-x-3":"gap-x-[101px]"),children:l.map(((e,t)=>Er(e,t,Boolean(i?.text))))})]}):null,i?.text?n(z,{className:"box-border mt-[43px] py-3 h-12 w-full max-w-[240px]",version:"primary",href:"#",children:i.text}):null]})})),Vr=(e,t)=>n("div",{className:"flex flex-col items-center text-center relative",children:n("div",{className:"h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10",children:e.icon?.icon&&n(p,{image:e.icon,width:"48",height:"48"})||n("span",{className:"font-normal text-title-sm text-secondary-text",children:t+1})})},String(t)),Er=(e,t,a)=>r("div",{className:"flex flex-col items-center justify-between text-center relative w-[276px] whitespace-pre-line overflow-hidden",children:[r("div",{children:[e.label&&n("div",{className:"font-normal text-xl m-0 mt-4",children:e.label}),e.description&&n("div",{className:"font-light text-base text-secondary-text "+(e.label?"mt-2":"mt-4"),children:e.description})]}),e?.button?.text&&!a?n(z,{className:"box-border mt-[38px] py-3 h-12 w-full max-w-[240px]",version:"primary",href:"#",children:e.button.text}):null]},String(t)),Or=e=>e?.alt||e?.title||h[e?.icon?e.icon:""],Fr=a((({cell:e,isLastRow:t})=>n("div",{className:"first:pl-0 pl-10 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 "+(t?"border-t-0 rounded-b-md":""),role:"cell",children:n("div",{children:e.map(Hr)})}))),Hr=({label:e,description:t,list:a,image:l,buttons:i},s)=>r("div",{className:"first:pt-5 last:pb-5",children:[s>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-4"}),e?n("div",{className:"text-xl font-medium m-0",children:e}):null,t?n("div",{className:"text-sm text-secondary-text",children:t}):null,a?.items?.length?Ur(a):null,l&&n(p,{image:l}),i?.length?Zr(i):null]},String(s)),Ur=e=>n(re,{className:"flex flex-col justify-between items-start text-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),Zr=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},a)=>n(z,{className:(a>0&&t?"ml-3":"")+" w-12 h-12",ariaLabel:Or(e),rounded:t,appendLeft:e?n(p,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r},String(a))))}),zr=a((({row:{header:e,data:t},activeCardIndex:a,isLastRow:l})=>r(rt,{children:[n("div",{className:"text-sm py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(l?"":"border-solid"),children:r("div",{className:"flex items-center text-primary-text",children:[e?.icon?n(p,{className:"mr-[14px] max-w-6 max-h-6",image:e.icon,width:"24px",height:"24px",asSVG:!0}):null,e?.title]})}),t?.length?n(ct,{activeCardIndex:a,columnWidth:360,version:"tariff",children:t.map(((e,t)=>n(Fr,{cell:e,isLastRow:l},String(t))))}):null]}))),qr=a((({className:e,context:t,title:a,description:l,rowHeaders:i,columns:o,anchor:c=null})=>{const[d,m]=t.useState(0),h=Jr(o),x=Kr(i,h),u=gt({columnsLength:h.length,colsLengthForScroll:2,activeCardIndex:d,setActiveCardIndex:m}),{isScrollAvailable:p}=u;return r("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,id:c,children:[a?n(s,{headingType:"h2",className:"text-center "+(l?"mb-2.5":"mb-9"),title:a}):null,l?n("div",{className:"mb-9 text-center text-m-base",children:l}):null,x?.length?r("div",{role:"table",children:[r("div",{className:"relative",children:[x.map(((e,t,{length:r})=>n(zr,{row:e,isLastRow:t+1===r,activeCardIndex:d},String(t)))),n(pt,{...u})]}),p?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]}):null]})})),Jr=e=>e?.map((({data:e})=>e))||[],Kr=(e,t)=>e?.map(((e,n)=>({header:e,data:t.map((e=>e?.[n]||[{}]))}))),Xr={Accordion:Ye,BenefitsBlock:et,Bonus:nt,ComparisonTable:Nt,CreditCalculator:Vt,ExchangeRateTile:ln,Footer:Mn,Gallery:He,GracePeriod:Ln,Header:sr,Headline:d,LinkDocs:S,MiniGallery:Ue,MobileAppTile:or,NavigatorTabs:ur,PictureText:D,ProductBlock:be,ProductGallery:$r,ProductGalleryGreen:Ar,ProductTile:De,PromoTile:Mr,OtherProducts:Nr,Recommendation:Br,StepsBlock:Gr,TariffsTable:qr,TextBlock:fe,Tile:$e,Navigation:dr,Placeholder:vr},Qr=a((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:Yr()}))),Yr=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("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"}),n("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"})]})},ea=a((({className:e,context:t,anchor:a=null})=>{const l=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,id:a,children:[n(Qr,{onClick:l.like,ariaLabel:"Поставить отметку «лайк»"}),n(Qr,{onClick:l.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:l.likeCount})]})})),ta=!Yn(),na=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),ra=a((({className:e="",context:t,blocksRegistry:a,data:{style:l,blocks:i,slots:s={},likeControl:o,colorPalette:c="pc"},blockDecorator:d=na})=>{const{header:m}=s,h=t.useRouter();return ta&&globalThis.addEventListener("load",(()=>{const e=globalThis.document.querySelectorAll("section[id]");globalThis.document.addEventListener("scroll",(()=>((e,t)=>{t?.forEach((t=>{const n=globalThis.location?.hash;if(n===`#${t?.id}`)return;const r=t?.getBoundingClientRect();r&&r.top>0&&r.top<150&&e.replace(`#${t?.id}`)}))})(h,e)))})),r("section",{className:`relative ${la(l)} ${e}`,"data-theme":c,children:[m?.blocks?.length?n("div",{className:`${la(m?.style)}`,children:m.blocks.map(((e,n)=>aa({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,i?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,n)=>aa({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,o&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(ea,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")})]})}));function aa({block:e,blockDecorator:t,blocksRegistry:r,context:a},l){const{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const s=r[i||"Placeholder"]||vr;return t({blockClassName:`scroll-mt-12 ${la(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:o}=e.block;return n(s,{className:e.blockClassName,version:t,context:a,anchor:o,...r},`${i}-${l}`)}},`block-${l}`)}function la(e){return e?e.join(" "):""}const ia=a((({HeadComponent:e,data:t,children:a})=>{const{title:l,main:i,og:s,twitter:o,jsonLd:c}=t,{description:d,keywords:m,canonical:h,robots:x}=i||{};return r(e,{children:[n("title",{children:l}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),d&&n("meta",{name:"description",content:d}),m&&n("meta",{name:"keywords",content:m.join(",")}),x&&n("meta",{name:"robots",content:x.join(",")}),sa(s),oa(o),h&&n("link",{rel:"canonical",href:h}),c&&n("script",{type:"application/ld+json",children:c}),a]})}));function sa(e){return e?Object.entries(e).map((([e,t])=>n("meta",{property:`og:${e}`,content:t},e))):null}function oa(e){return e?Object.entries(e).map((([e,t])=>n("meta",{name:`twitter:${e}`,content:t},e))):null}function ca(e){const{mobile:t,...n}=e;return n}function da(e){return e?.filter((e=>{return t=e?.type,(t||"")in Xr;var t})).map(ca)}e.Blocks=Xr,e.ContentPage=ra,e.ContentPageHead=ia,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.Header=sr,e.Icon=u,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(l)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(l,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a},body:JSON.stringify({node_ids:r})}),{likes:l}=await n.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:a,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:a,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}}}},e.joinList=V,e.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:da(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:da(n[t].blocks)}})),{})}},e.projectSettings=x,e.setup=t,e.url=P,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).UniBlocks={})}(this,(function(e){"use strict";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...a}={})=>{const l=Object.assign({},a,r?{innerHTML:r.__html}:{});return e(t,l,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...a}=t||{},l=n?.slots?.default,i=r||l&&l();return e(Object.assign(a,i&&{children:i}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const l="likesToken";const i={h1:"text-title-xl tracking-[-0.3px]",h2:"text-title",h3:"text-title-sm",h4:"text-title-xs",h5:"text-title-2xs tracking-[0.2px]",h6:"text-title-2xs tracking-[0.2px]"},s=a((e=>{const{className:t="",headingType:r,title:a,as:l}=e;if(!r)return;return n(l||r,{className:`font-sans m-0 ${i[r]} ${t}`,children:a})})),o={left:"text-left",center:"text-center",right:"text-right"},c={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},d=a((({bgColorHeadline:e="transparent",align:t="left",className:a="",title:l,description:i,anchor:d=null})=>{const m=c[e];return r("section",{className:`p-[50px] ${m.background} ${a}`,id:d,children:[l&&n(s,{headingType:"h2",className:`text-primary-text ${m.text} ${o[t]}`,title:l}),i&&n("p",{className:`font-normal text-base mt-4 ${m.text} ${o[t]}`,children:i})]})}));var m,h;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.BurgerIconWhite="BurgerIconWhite",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CalendarWhiteIcon="CalendarWhiteIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.ChartSquareIcon="ChartSquareIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EmptyWalletWhiteIcon="EmptyWalletWhiteIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.GridIconWhite="GridIconWhite",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PercentageSquareWhiteIcon="PercentageSquareWhiteIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon"}(m||(m={})),function(e){e.ActualBalanceIcon="Деньги",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка 'Влево'",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.BurgerIconWhite="Бургер (белый)",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CalendarWhiteIcon="Календарь белый",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.ChartSquareIcon="Деньги внутри кошелька",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EmptyWalletWhiteIcon="Пустой кошелёк (белый)",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка",e.GridIconWhite="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PercentageSquareWhiteIcon="Проценты белые",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами"}(h||(h={}));const x=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};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}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},u=a((({className:e="",name:t="",alt:a=`Иконка ${h[t]||t}`,title:l=a,asSVG:i,...s})=>{const o=`${x.CDN||""}icons/${t}.svg`;return i?r("svg",{className:e,...s,"aria-hidden":"true",children:[l?n("title",{children:l}):null,a?n("desc",{children:a}):null,n("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]}):n("img",{className:e,src:o,alt:a,title:l,...s,"aria-hidden":"true"})})),p=a((({className:e="",image:t,imageClassName:r="",...a})=>{if(!t)return null;const l="string"==typeof t?t:t.icon;return l||""===l?l.length?n(u,{className:e,name:l,...a}):null:n(b,{className:e,imageClassName:r,image:t})})),b=a((({className:e="",image:t,imageClassName:a=""})=>t?r("picture",{className:`flex-none ${e}`,children:[t?.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:f(t)},`${r}_${e}`))):null,g(t,a)]}):null)),g=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",l=e.alt||e.title;return n("img",{src:e.src,className:t,alt:l,title:a,style:r,...e.size})};function f(e){return e?`image/${String(e)}`:void 0}const N=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:l,doc:i,icon:s})=>{const{text:o,fileSize:c,...d}=i;return r("a",{className:e,role:"link",...d,children:[s?n(p,{className:t,image:s,width:"24px",height:"24px",asSVG:!0}):null,o?r("span",{className:a,children:[o,n("span",{className:l,children:d?.href&&v(y(d.href),c)})]}):null]})})),v=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),y=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},w=a((({className:e="",doc:t,icon:r})=>n(N,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3.5 min-w-6 min-h-6 text-primary-text",textClassName:"self-center font-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:r}))),I=a((({className:e,documents:t,columnsMode:r="double",icon:a})=>t?.length?n("div",{className:e,role:"list",children:t.map(((e,t)=>n("div",{className:"double"===r?"basis-[calc(50%-20px)]":"",role:"listitem",children:n(w,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:a})},String(t))))}):null)),k={left:"text-left",center:"text-center",right:"text-right"},C={double:"mb-8",single:"mb-[26px]"},$={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},S=a((({className:e="",title:t,subtitle:a,align:l,documents:i,icon:o={icon:"DocIcon"},columnsMode:c="double",anchor:d=null})=>r("section",{className:`font-sans text-primary-text p-12 bg-white ${e}`,id:d,children:[t?n(s,{headingType:"h2",className:`${a?"mb-2.5":C[c]} ${k[l??"center"]}`,title:t}):null,a?n("h3",{className:`text-base mt-0 font-normal ${C[c]} ${k[l??"center"]}`,children:a}):null,n(I,{className:$[c],columnsMode:c,documents:i,icon:o})]}))),T={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},D=a((({className:e="",title:t,image:a,benefits:l,version:i="primary",directionRight:o=!1,anchor:c=null})=>r("section",{className:`relative font-sans p-14 ${T[i]} ${e}`,id:c,children:[n(s,{headingType:"h2",className:"text-center",title:t}),r("div",{className:"flex justify-center mt-9",children:[a?.src&&n(p,{className:o?"order-2 ml-6":"mr-6",image:a}),l?.length?n("div",{className:"flex flex-col",children:l.map(((e,t)=>function(e,t,a){return r("div",{className:"flex flex-row mb-8",children:[e.icon?n(p,{className:"w-[48px] h-[48px] bg-main rounded-full box-border p-[12px]",image:e.icon,width:"48",height:"48",asSVG:!0}):null,r("div",{className:"flex gap-1 flex-col h-full ml-5 max-w-[490px]",children:[e.label&&n("div",{className:"font-medium text-xl m-0 "+("primary"===a?"text-primary-text":""),children:e.label}),e.description&&n("div",{className:"font-normal text-sm "+("primary"===a?"text-secondary-text":""),children:e.description})]})]},String(t))}(e,t,i)))}):null]})]})));const A=e=>e?.includes("//"),R=e=>(e||"").replace(/\/?\?.*/,""),M=e=>{if(!e||!A(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t},L=e=>{if(!e||!A(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0};var P=Object.freeze({__proto__:null,isURL:A,withoutQuery:R,getOrigin:M,getHash:L});const j="/mobile",B=(e,t)=>{if(!e)return e;const n=M(t?.href);return n?e.replace(n,"")||"/":e},_=e=>e;function W({router:e,handlerDecorator:t=_},n){const r=((e,t)=>{if(!e)return e;const n=B(e,t)||"",r=t?.pathname.startsWith(j);return r&&!A(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const a=r&&!A(r),l=!n.target||"_self"===n.target;a&&l&&(t.preventDefault(),e.push(r))}),n)}}const G=a((({text:e,href:t,target:r,onClick:a,className:l="",children:i})=>t?n("a",{className:`no-underline ${l}`,href:t,target:r,onClick:a,children:n("span",{className:l,children:e||i})}):n("span",{className:l,children:e||i})));function V(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])}const E=a((e=>{const{text:t,aboveText:a,appendLeft:l}=e;return r("div",{className:O(e),children:[l||null,F(e)?r("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:a}),n("div",{className:"text-button text-left",children:t})]}):null]})})),O=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const a="px-8 gap-2 "+(n?"py-2":"py-[18px]");return["flex items-center justify-center",F(e)?a:"h-12 w-12",r?"rounded-full":""].join(" ")},F=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),H={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:""},U={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},Z="text-center font-sans select-none",z=a((e=>{const{text:t,aboveText:r,appendLeft:a,children:l,disabled:i,rounded:s}=e,o=l??n(E,{text:t,aboveText:r,appendLeft:a,rounded:s});return n(i?J:q,{...e,children:o})})),q=a((({className:e,ariaLabel:t,version:r="none",rounded:a,href:l,target:i,children:s,onClick:o,...c})=>{const{aboveText:d,appendLeft:m,...h}=c;return n("a",{className:`${Z} inline-block cursor-pointer no-underline ${H[r]||""} ${a?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:i,onClick:o,"aria-label":t,role:l?"link":"button",...h,children:s})})),J=a((({className:e,children:t,ariaLabel:r,version:a="none",rounded:l})=>n("div",{role:"button","aria-disabled":"true","aria-label":r,tabIndex:"-1",className:`inline-block ${Z} ${U[a]||""} ${l?"rounded-full":"rounded-md"} ${e||""}`,children:t}))),K=a((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:a}=e,l=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(z,e?{appendLeft:n(p,{image:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(W({router:l,handlerDecorator:a},e),t)))}):null}));const X=a((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),Q={primary:"rounded-full inline-block mr-3 mt-2",secondary:"rounded-full inline-block mr-3 mt-2",gray:"rounded-full inline-block mr-3 mt-2",tile:"rounded-full inline-block mr-4","tile-white":"rounded-full inline-block mr-4"},Y={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},ee=a((({className:e="",isDotted:t=!0,children:a,version:l="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:te(l)}),n("span",{children:a})]}))),te=e=>`${Q[e]} ${Y[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,ne={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},re=a((e=>{const{className:t="",itemClassName:r,isDotted:a,items:l,version:i="primary"}=e;return n("section",{className:`${ne[i]} ${t}`,role:"list",children:l?.length?l.map(((e,t)=>n(ee,{className:r,isDotted:a,version:i,children:e},String(t)))):null})})),ae=a((({className:e="",title:t,children:a,buttons:l,image:i,anchor:s=null})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,id:s,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:a}),l?n("div",{children:l}):null]}),i]})]}))),le={primary:"bg-primary-main",secondary:"bg-white/30"},ie={primary:"text-primary-text",secondary:"text-white"},se={primary:"text-secondary-text",secondary:"text-white"};const oe=a((({className:e="",context:t,title:a,headingType:l="h2",description:i,benefits:s,buttons:o,image:c,items:d,version:m="primary",isDotted:h=!0,textBlockClassName:x=""})=>{const u="secondary"===m?"text-white":"text-primary-text";return r("div",{className:`flex grow justify-between items-stretch ${e}`,children:[n("div",{className:`flex flex-col ${x}`,children:r(ae,{context:t,title:ce(a,l),buttons:de(t,o),children:[i&&n(X,{className:`mt-4 max-w-[600px] text-md font-light ${u}`,description:i}),s?.filter((e=>e.label))?.length?n("div",{className:"flex gap-6 mt-6",children:s.map(((e,t)=>function(e,t,a){return r("div",{className:"flex gap-4 items-center",children:[e.icon?n(p,{className:`w-[50px] h-[50px] min-w-[50px] min-h-[50px] rounded-full p-[10px] box-border text-white ${le[a]}`,image:e.icon,width:"24",height:"24",asSVG:!0}):null,r("div",{className:"flex gap-0.5 flex-col h-full max-w-[149px]",children:[n("div",{className:`font-medium text-xl m-0 ${ie[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-md ${se[a]}`,children:e.description})]})]},String(t))}(e,t,m)))}):null,d?.length?n(re,{className:"mt-5 text-title-2xs font-light",items:d,itemClassName:"mb-[7px]",version:m,isDotted:h}):null]})}),c?.src&&n(p,{className:"mt-auto",image:c})]})})),ce=(e,t)=>e&&n(s,{headingType:t,title:e,className:"whitespace-pre-wrap max-w-[600px]"}),de=(e,t)=>t?.length?n(K,{context:e,buttons:t,className:"flex mt-9 gap-4"}):null,me={primary:"bg-primary-main",secondary:"bg-white"},he={primary:"text-white",secondary:"text-primary-text"};function xe(e,t,a){return r("div",{className:`flex items-center ${a}`,children:[n(z,{rounded:!0,className:`w-12 h-12 min-h-12 max-h-12 flex items-center justify-center mr-3 ${me[t]}`,ariaLabel:e,children:n(p,{className:`w-4 h-4 min-w-4 min-h-4 rounded-full box-border ${he[t]}`,image:{icon:"ArrowLeftIcon"},width:"24",height:"24",asSVG:!0})}),e?n("span",{className:"text-m-md",children:e}):null]})}const ue={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},pe={primary:"text-secondary-text",secondary:"text-white/80"},be=a((e=>{const{context:t,className:a="",breadcrumbs:l,version:i="primary",anchor:s=null,...o}=e,c=t.useRouter(),{handlerDecorator:d}=t;return r("section",{className:`font-sans pt-10 pl-[50px] pb-[50px] pr-[7.5rem] box-border min-h-[420px] ${ue[i]} ${a}`,id:s,children:[xe("Все дебетовые карты",i,"mb-10"),l?.length?n("div",{className:"text-xs mb-6",children:V(n("span",{className:`mx-2 ${pe[i]}`,children:"/"}))(l.map(((e,t)=>n(G,{...W({router:c,handlerDecorator:d},{className:pe[i],...e})},String(t)))))}):null,n(oe,{context:t,version:i,...o})]})})),ge={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},fe=a((({title:e,description:t,blockVersion:a="primary",iconVersion:l,image:i,className:s,anchor:o=null})=>{const c=ge[a];return r("section",{className:`font-sans px-9 py-4 flex ${c.background} ${s||""}`,id:o,children:["small"===l?Ne(c.icon):null,"big"===l?ve(i):null,r("div",{className:"py-0.5",children:[e&&n("div",{className:`font-medium text-base mb-1 ${c.title}`,children:e}),t&&n("div",{className:`text-sm ${c.description}`,children:t})]})]})}));function Ne(e){return n("div",{className:"pt-1.5 pl-1 pr-4",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function ve(e){return e?.src?n(p,{className:"pt-0.5 pr-3",image:e}):null}const ye=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function we(e=""){const t=ye(e);return t<=4?"h4":t<=8?"h3":"h2"}function Ie(e=""){const t=ye(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function ke(e=""){const t=ye(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Ce={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},$e=a((e=>{const{context:t,title:a,description:l,items:i,children:o,buttons:c,image:d,className:m="",version:h="primary",role:x,anchor:u=null}=e;return n("section",{className:`overflow-hidden font-sans p-9 pr-3 box-border ${m} ${Ce[h]} ${ke(m)} ${Ie(m)} `,role:x,id:u,children:r(ae,{context:t,title:a&&n(s,{headingType:we(m),as:"h3",title:a,className:`whitespace-pre-wrap max-w-[600px] ${a?"mb-3":""}\n ${"primary"===h?"text-primary-text":""}`}),buttons:c?.length?n(K,{context:t,buttons:c,className:"flex mt-9 gap-3"}):null,image:d?.src&&n(p,{className:"mt-auto ml-7",image:d}),children:[l&&n(X,{className:"mt-4 max-w-[600px] text-title-new-sm font-light",description:l}),o,Se(i,h)]})})}));function Se(e,t){return e?.length?n(re,{items:e,itemClassName:"text-title-new-sm font-light mt-2.5 first:mt-0",version:"primary"===t?"tile":"tile-white"}):null}const Te={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},De=a((({context:e,className:t="",title:a,description:l,benefits:i,buttons:o,image:c,version:d="primary",anchor:m=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${t} ${Te[d]} ${ke(t)} ${Ie(t)} `,id:m,children:r(ae,{context:e,title:a&&n(s,{headingType:we(t),title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:o?.length?n(K,{context:e,buttons:o,className:"flex mt-9 gap-3"}):null,image:c?.src&&n(p,{className:"mt-auto ml-7",image:c}),children:[l&&n(X,{className:"mt-4 max-w-[600px]",description:l}),r("div",{className:"flex mt-5 mb-1",children:[i?.length?n("div",{className:"mr-8",children:i.map(Ae)}):null,i?.length?n("div",{className:"pt-1",children:i.map(((e,t)=>function(e,t,r="primary"){return n("div",{className:`text-sm ${t?"mt-4":""} ${{primary:"text-secondary-text",secondary:"text-white"}[r]}`,children:e.description},String(t))}(e,t,d)))}):null]})]})})));function Ae(e,t){return n("div",{className:"text-xl font-medium "+(t?"mt-2.5":""),children:e.label},String(t))}const Re=a((({className:e,viewBox:t,fill:r="none",width:a,height:l,paths:i,...s})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:a,height:l,children:i.map((({d:e,fill:t,...r},a)=>n("path",{d:e,fill:t||"currentColor",...s,...r},a)))}))),Me=[{d:"m9 12 4-4-4-4",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",fill:"none"},{d:"M2 9a1 1 0 0 1 0-2v2Zm6-2a1 1 0 0 1 0 2V7ZM2 7h6v2H2V7Z"}],Le=a((({className:e,disabled:t,...r})=>n(z,{rounded:!0,className:`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,...r,children:n(Re,{paths:Me,viewBox:"0 0 16 16",fill:"none",width:"16",height:"16"})}))),Pe={primary:"bg-white text-secondary-text",secondary:"bg-primary-main text-white"},je={normal:3,mini:4},Be={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},_e={normal:380,mini:276},We=a((({title:e,description:t,image:a,items:l,button:i,version:s})=>{const o=function(e){return`text-xl m-0\n ${"secondary"!==e?"text-primary-text":""}\n `}(s);return r("div",{className:"h-full flex flex-col justify-between text-center",children:[r("div",{children:[a?.src?n("div",{className:"flex justify-center",children:n(p,{className:"mb-6",image:a})}):null,e?Ve(e,o):null,t?n("div",{className:"font-light text-m-md-new "+(e?"mt-2":""),children:t}):null,l?.length?Ee(l,s):null]}),i?.text?Ge(i):null]})}));function Ge(e){return n(z,{className:"mt-6 w-full",appendLeft:e.icon&&n(p,{image:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function Ve(e,t){return n("div",{className:`text-xl m-0 ${t}`,children:e})}function Ee(e,t="primary"){return n(re,{className:"max-w-[308px] mt-2 text-sm "+("primary"===t?"!text-secondary-text":""),itemClassName:"mt-1 first:mt-0",items:e.filter((e=>e?.text)).map((e=>e.text)),version:t})}const Oe=a((({context:e,title:t,description:a,cards:l=[],version:i="normal",activeCardIndex:o})=>r("div",{children:[n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),r("div",{className:"flex flex-col items-center mb-8",children:[t?n(s,{headingType:"h2",className:"text-center",title:t}):null,a?n("div",{className:"font-light text-md max-w-[600px] mt-2.5",children:a}):null]}),n("div",{className:`flex ${l?.length<=je[i]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${o*_e[i]}px)`},role:"list",children:l?.map(((t,r)=>function({card:e,version:t},r){return n("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${Be[t]} ${Pe[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:n(We,{...e})},String(r))}({card:t,version:i,context:e},r)))})]})));const Fe=a((({context:e,cards:t=[],className:a="",version:l="normal",anchor:i=null,...s})=>{const[o,c]=e.useState(0),d=t?.length>je[l],m=d&&t?.length-o>je[l],h=d&&o>0;return r("section",{className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${a}`,id:i,children:[n(Oe,{context:e,cards:t,version:l,activeCardIndex:o,...s}),h&&n(Le,{className:"absolute top-1/2 left-8 rotate-180 z-10 mt-[25px]",onClick:()=>c(o-1),ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}),m&&n(Le,{className:"absolute top-1/2 right-8 z-10 mt-[25px]",onClick:()=>c(o+1),ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}),n("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-opacity-from-white"}),n("div",{className:"absolute top-0 right-0 bottom-0 w-[100px] bg-opacity-to-white"})]})})),He=a((e=>n(Fe,{...e,version:"normal"}))),Ue=a((e=>n(Fe,{...e,version:"mini"}))),Ze=a((({className:e="",documents:t,anchor:r=null})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,id:r,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?ze(t):null})}))),ze=e=>e.map(((e,t)=>{const{text:r,...a}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...a,children:r||null})},`list_item_${String(t)}`)})),qe={Headline:d,LinkDocs:S,TextBlock:fe,PictureText:D,ProductBlock:be,Tile:$e,ProductTile:De,Gallery:He,MiniGallery:Ue,LinkList:Ze},Je=({blocks:e,context:t,className:n,columns:r})=>e?.length?e.map(Ke({context:t,className:n,columns:r})):null,Ke=({context:e,columns:t,className:r})=>(a,l)=>{const i=a?.blockListType;if(!i||!(i in qe))return null;return n("div",{className:`${r} ${2===t?"w-1/2":""}`,children:n(qe[i],{context:e,...a,className:"!p-0"})},`block_${l}`)},Xe=a((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden",children:Je({context:t,className:"mb-5 last:mb-0 pb-5",blocks:e})}))),Qe=a((({label:e,isExpanded:t,blocks:a,context:l})=>{const{isActive:i,hasContent:s,icon:o,handleToggle:c}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,a]=e.useState(n),l=t?.length;return{isActive:r,hasContent:l,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!l)return;a(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:l,blocks:a,initialState:t});return r("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[r("button",{className:`border-none bg-transparent px-0 py-5 flex justify-between text-left w-full font-sans\n ${s?"group cursor-pointer":""}\n `,onClick:c,children:[n("span",{className:"text-xl pr-2.5 font-medium",children:e}),s?n(p,{image:o,width:"24",height:"24",asSVG:!0}):null]}),s?n(Xe,{isExpanded:i,blocks:a,context:l}):null]})})),Ye=a((({title:e,description:t,accordionItems:a,context:l,className:i="",anchor:o=null})=>r("section",{className:`p-[50px] font-sans bg-white text-primary-text ${i}`,id:o,children:[e?n(s,{headingType:"h4",className:"mb-2.5",title:e}):null,t?n("div",{className:"mb-2.5 text-base",children:t}):null,a?.length?n("ul",{className:"list-none m-0 p-0",children:a.map(((e,t)=>n(Qe,{...e,context:l},`AccordionItem${t}`)))}):null]}))),et=a((({className:e,title:t,benefits:a,anchor:l=null})=>r("section",{className:`font-sans text-primary-text bg-white p-12 flex flex-col items-center ${e||""}`,id:l,children:[t?n(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}):null,a?.length?n("div",{className:"grid grid-cols-2 gap-8 mt-9",children:a.map(tt)}):null]}))),tt=(e,t)=>r("div",{className:"flex items-center gap-5 max-w-[500px]",children:[e.icon?n(p,{className:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",image:e.icon,width:"70",height:"70"}):null,r("div",{children:[n("h3",{className:"font-medium text-xl m-0",children:e.label}),e.description&&n("div",{className:"font-normal text-sm mt-2",children:e.description})]})]},String(t)),nt=a((e=>{const{className:t="",title:a,description:l,bonusItems:i,anchor:o=null}=e;return n("section",{className:`bg-white p-12 ${t}`,id:o,children:r("div",{className:"container",children:[a?n(s,{headingType:"h2",className:"text-center",title:a}):null,l?n("div",{className:"text-md font-light text-center mt-2",children:l}):null,n("div",{className:"flex flex-wrap w-full mt-9",children:i?i.map(((e,t)=>n("div",{className:"flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-4 mx-2 even:mr-0 odd:ml-0 last:odd:w-full last:odd:mx-0",children:r("div",{className:"flex justify-between w-full",children:[r("div",{className:"mr-4",children:[n("div",{className:"text-title-sm",children:e.name}),n("div",{className:"text-md font-light mt-3 max-w-[488px]",children:e.description})]}),e.bonusCount?r("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[n("span",{className:"font-serif -tracking-wider text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}),n("span",{className:"text-[44px] bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName})]}):null]})},String(t)))):null})]})})})),rt=a((({children:e})=>n("div",{className:"self-start flex flex-col",role:"row",children:n("div",{className:"flex",children:e})}))),at="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",lt="border-main-stroke border-solid border",it="border-main-divider border border-t-0 border-x-0",st="w-[200px] mr-6",ot={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},ct=a((({children:e,activeCardIndex:t,columnWidth:r,version:a="comparison"})=>n("div",{className:"flex flex-1 overflow-hidden",children:n("div",{className:ot[a],style:{transform:`translateX(-${t*r}px)`},children:e})}))),dt=a((({icon:e,image:t,title:a,link:l})=>r("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${lt} ${at}`,role:"columnheader",scope:"col",children:[e&&!t?.src&&n(p,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&n(p,{className:"mb-[18px]",image:t}),a&&n(s,{headingType:"h4",as:"h3",className:"text-center text-white",title:a}),l?.text&&n("div",{className:"mt-auto w-full",children:n(z,{href:l.href,target:l.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:n("div",{className:"font-medium text-xs py-[11px]",children:l.text})})})]}))),mt=a((({colHeaders:e,activeCardIndex:t,router:a,handlerDecorator:l})=>r(rt,{children:[n("div",{className:st,role:"columnheader",scope:"col"}),n(ct,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>n(dt,{...e,link:e.link&&W({router:a,handlerDecorator:l},e.link)},String(t))))})]}))),ht=a((({cell:e,isFirstRow:t,isLastRow:r,isFillGradient:a})=>n("div",{className:`w-80 box-border flex flex-col ${lt} ${r?"border-t-0 rounded-b-md":"border-y-0"} ${a?at:""}`,role:"cell",children:n("div",{className:`mx-7 h-full ${it} ${a&&t?"border-t":""} ${r?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>xt(e,t,a)))})}))),xt=({label:e,description:t},a,l)=>r("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e&&n("h4",{className:"text-xl font-medium m-0 "+(l?"text-white":""),children:e}),t&&n("div",{className:"text-sm opacity-80 "+(l?"text-white":"text-secondary-text"),children:t})]},String(a)),ut=a((({row:{header:e,data:t},activeCardIndex:a,isColoredFirstColumn:l,isFirstRow:i,isLastRow:s})=>r(rt,{children:[e?.title?n("div",{className:`text-sm py-7 ${it} w-[200px] mr-6 ${s?"border-b-0":"border-solid"}`,children:e.title}):null,t?.length?n(ct,{activeCardIndex:a,columnWidth:336,children:t.map(((e,t)=>n(ht,{cell:e,isFirstRow:i,isLastRow:s,isFillGradient:l&&0===t},String(t))))}):null]}))),pt=a((({isScrollAvailable:e,onNextClick:t,onPrevClick:a,showNextButton:l,showPrevButton:i})=>e?n("div",{children:r("div",{className:"absolute top-7 right-7 z-10",children:[n(Le,{onClick:t,disabled:!l,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}),n(Le,{className:"mt-4 rotate-180",onClick:a,disabled:!i,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"})]})}):null)),bt=a((({rowData:e,activeCardIndex:t,isColoredFirstColumn:a,...l})=>r("div",{className:"relative",children:[e.map(((e,r,{length:l})=>n(ut,{row:e,isFirstRow:0===r,isLastRow:r+1===l,activeCardIndex:t,isColoredFirstColumn:a},String(r)))),n(pt,{...l})]}))),gt=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:n,setActiveCardIndex:r})=>{const a=e>t;return{onNextClick:()=>r(n+1),onPrevClick:()=>r(n-1),isScrollAvailable:a,showNextButton:a&&e-n>t,showPrevButton:Boolean(a&&n>0)}},ft=a((({context:e,columns:t,rowHeaders:a,isShowAllRow:l,visibleRowLength:i,isColoredFirstColumn:s})=>{const o=e.useRouter(),{handlerDecorator:c}=e,d=t?.map((({header:e})=>e||{})),m=t?.map((({data:e})=>e))||[],h=a?.map(((e,t)=>({header:e,data:m.map((e=>e?.[t]||[{}]))}))).slice(0,l?a.length:i),[x,u]=e.useState(0),p=gt({columnsLength:m.length,colsLengthForScroll:2,activeCardIndex:x,setActiveCardIndex:u}),{isScrollAvailable:b}=p;return r("div",{children:[r("div",{role:"table",children:[d?.length?n(mt,{colHeaders:d,activeCardIndex:x,router:o,handlerDecorator:c}):null,h?.length?n(bt,{rowData:h,activeCardIndex:x,isColoredFirstColumn:s,...p}):null]}),b?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Nt=a((({className:e,context:t,title:a,rowHeaders:l,columns:i,visibleRowLength:o=0,isColoredFirstColumn:c=!1,anchor:d=null})=>{const[m,h]=t.useState(!o);return r("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,id:d,children:[n(s,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:a}),n(ft,{context:t,columns:i,rowHeaders:l,isShowAllRow:m,isColoredFirstColumn:c,visibleRowLength:o}),o?vt({isShowAllRow:m,onClick:()=>h(!m)}):null]})})),vt=({isShowAllRow:e,onClick:t})=>n("div",{className:"pr-[50px]",children:r("div",{className:"flex w-full",children:[n("div",{className:st}),n("button",{onClick:t,className:"mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:n("div",{className:"font-sans font-medium text-xs py-[11px]",children:e?"Скрыть":"Показать все параметры"})})]})}),yt=a((({tabs:e,currentTabIndex:t,onTabClick:r})=>n("div",{className:"flex items-end border-b border-main-stroke",role:"tablist",children:e?.map(wt(t,r))}))),wt=(e,t)=>(a,l)=>{const i=e===l;return r("div",{className:"flex h-full flex-1 cursor-pointer mr-2 last:mr-0 box-content "+(i?"px-2 h-16 pt-4 pb-2 text-white bg-primary-main":"px-2 h-14 pb-2 pt-3 border border-b-0 border-main-stroke"),role:"tab",onClick:()=>t(l),"aria-selected":String(i),children:[a?.icon?It(a,i):null,r("div",{children:[a?.title?n("h3",{className:"font-medium m-0 text-base",children:a?.title}):null,a?.description?n("span",{className:"font-light text-xs "+(i?"":"text-secondary-text"),children:a?.description}):null]})]},String(l))},It=(e,t)=>n("div",{className:"h-full mt-1",children:n(p,{className:"w-5 h-5 mr-3 "+(t?"invert-full":""),image:e?.icon||"CardIcon",asSVG:!t})});async function kt(e){const t=await fetch(e);return await t.json()}const Ct=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],$t=a((({text:e,checked:t,onChange:a,className:l})=>n("div",{className:l,children:r("label",{className:"flex items-center cursor-pointer relative",children:[n("input",{className:`peer appearance-none w-5 h-5 border-solid border ${t?"border-black":"border-main-stroke"} rounded checked:bg-primary-main checked:border-primary-main m-0`,type:"checkbox",onChange:e=>{a(e.target.checked)},checked:t}),n(Re,{paths:Ct,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),e?n("span",{className:"font-sans ml-3 text-sm leading-5 cursor-pointer",children:e}):null]})}))),St=(e,t,n)=>Math.max(t,Math.min(e,n)),Tt=3e4,Dt=3e6,At=Math.round(41.5),Rt=(Mt=[[e=>1===e,"год"],[e=>e<=4,"года"],[()=>!0,"лет"]],e=>{const[,t]=Mt.find((([t])=>t(e)))||[];return t});var Mt;const Lt=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),Pt=a((({className:e,title:t,items:a=[],min:l=1,max:i=100,step:s=1,value:o=l,onChange:c})=>{const d=e=>{if(!c)return;const t=Number(e.replace(/\D/g,""));c(t)},m={backgroundSize:`${(100*(o-l)/(i-l)).toFixed(2)}% 100%`};return r("div",{className:e,children:[r("label",{className:"block relative",children:[t?n("span",{className:"absolute text-xs text-secondary-text top-1 mt-0.5 pl-4 ml-0.5",children:t}):null,n("input",{className:"m-0 font-sans text-sm w-full h-12 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 m-0 box-border text-primary-text "+(t?"pt-4":""),value:Lt(o),onChange:e=>d(e.target.value),onBlur:()=>{c&&(o<l&&c(l),o>i&&c(i))}}),n("div",{className:"absolute inset-x-0 top-[35px] px-4 leading-[18px]",children:n("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:l,max:i,step:s,value:o,onChange:e=>d(e.target.value),style:m})})]}),n("div",{className:"flex justify-between my-3",children:a.map(((e,t)=>r("span",{className:"text-xs leading-[14px] text-secondary-text pl-4",children:[" ",e," "]},String(t))))})]})}));function jt(e){const{minMonths:t,maxMonths:r,monthsValue:a,defaultMonths:l,setMonthsValue:i}=e;return n(Pt,{className:"mt-[23px]",title:"Срок кредита, месяцев",items:["Или выберите из предложенных вариантов ниже"],min:t,max:r,step:1,value:a||l,onChange:i})}function Bt(e,t){return r("div",{className:"box-border h-fit p-9 bg-primary-main rounded-md text-white",children:[n("div",{className:"text-base mb-[18px]",children:"Наше предложение"}),n("div",{className:"text-sm opacity-60",children:"Ежемесячный платёж"}),r("div",{className:"text-lg mb-3",children:[Lt(Math.round(e))," ₽"]}),n("div",{className:"text-sm opacity-60",children:"Ставка"}),r("div",{className:"text-lg",children:[t," %"]})]})}function _t(e){const{calculatorParams:t,moneyValue:r,defaultSum:a,setMoneyValue:l}=e,i=t?.minSum||Tt,s=t?.maxSum||Dt;return n(Pt,{title:"Желаемая сумма кредита, ₽",items:[`От ${Lt(i)} рублей`,`До ${Lt(s)} рублей`],min:i,max:s,step:1e3,value:r||a,onChange:l})}const Wt=a((({context:e,directoryName:t})=>{const[a,l]=e.useState(void 0),[i,s]=e.useState(void 0),[o,c]=e.useState(!0),[d,m]=e.useState(!0),h=function(e,t){const{data:n}=e(function(e){return`/wcms-resources/${e||"credit-calculator-data"}.json`}(t),kt);return n||{}}(e.useAsyncData,t).rows,x=(e=>{const{tableRows:t,isAnnuity:n=!1}=e;return t&&t.find((e=>e.isAnnuity===n))||{}})({tableRows:h,isAnnuity:o}),u=(e=>e.maxSum&&e.minSum?(e.maxSum-e.minSum)/2:1485e3)(x),p=(e=>e.maxMonths&&e.minMonths?Math.round((e.maxMonths-e.minMonths)/2):At)(x),b=x?.minMonths||1,g=x?.maxMonths||84,f=(e=>{const{calculatorParams:t,isInsurance:n}=e;return t?n?t?.rateWithInsurance||5:t?.rateWithoutInsurance||5:5})({calculatorParams:x,isInsurance:d}),N=(e=>{const{calculatorParams:t,paymentType:n,rate:r,sum:a,months:l}=e;if(!t)return 0;const i=St(a,t.minSum||Tt,t.maxSum||Dt);if("annuity"===n){const e=Number(r)/1200;return i*(e+e/(Math.pow(1+e,l)-1))}return i/l+i*(Number(r)/12)})({calculatorParams:x,paymentType:"annuity",rate:f,sum:a||u,months:i||p}),v=((e,t)=>{const n=Math.ceil((t-e)/12),r=Math.floor(e/12)+1,a=new Array(Math.min(n-1,5)).fill(0).map(((e,t)=>r+t)),l=n+r-1;return a.concat(l)})(b,g);function y(e){s(St(12*e,b,g))}return n("section",{className:"mt-7",children:r("div",{className:"box-border p-[49px] pr-[56px] mx-auto w-max border-solid border-[3px] border-primary-main rounded-md",children:[r("div",{className:"flex justify-between",children:[r("div",{className:"mr-[42px]",children:[_t({calculatorParams:x,moneyValue:a,defaultSum:u,setMoneyValue:l}),jt({minMonths:b,maxMonths:g,monthsValue:i,defaultMonths:p,setMonthsValue:s}),n("div",{className:"flex mb-7",children:v.map(((e,t)=>function(e,t,a){const l=Rt(e);return n("button",{className:"bg-secondary-light rounded-3xl h-10 w-[75px] box-border mr-2 flex items-center justify-center cursor-pointer border-none",onClick:()=>a(e),children:r("span",{className:"font-semibold text-sm",children:[e," ",l]})},String(t))}(e,t,y)))}),n($t,{text:"Получаю пенсию на карту Россельхозбанка",checked:o,onChange:c}),n($t,{className:"mt-3 mb-7",text:"Комплексная страховая защита",checked:d,onChange:m})]}),Bt(N,f)]}),r("div",{className:"flex items-center",children:[n(z,{className:"mr-3",text:"Отправить заявку",version:"primary",href:"#"}),n("div",{className:"w-80 text-2xs leading-4 text-secondary-text","aria-label":"Соглашение на обработку персональных данных",children:"Отправляя заявку, вы соглашаетесь на обработку персональных данных соответственно требованиям ФЗ «О персональных данных»"})]})]})})})),Gt=[{title:"Кредит",description:"Ставка от 6% до 7 лет",directoryName:"credit-calculator-data",icon:{icon:"CardIcon"}},{title:"Кредит",description:"Ставка от 4% до 7 лет",directoryName:"credit-calculator-data1",icon:{icon:"ChartSquareIcon"}},{title:"Кредит",description:"Ставка от 3% до 6 лет",directoryName:"credit-calculator-data2",icon:{icon:"DiscountShapeIcon"}}],Vt=a((({className:e="",context:t,tabs:a=Gt,anchor:l=null})=>{const[i,o]=t.useState(0);return r("section",{className:`font-sans text-primary-text py-10 bg-white ${e}`,id:l,children:[n(s,{className:"w-full text-center mb-8",headingType:we(e),title:"Калькулятор"}),n(yt,{tabs:a,currentTabIndex:i,onTabClick:o}),n(Wt,{context:t,directoryName:a[i]?.directoryName})]})}));async function Et(){try{const e=await fetch(Ot);return await e.json()}catch(e){console.error(e)}}const Ot="/api/v1/exchangerates.json",Ft=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),Ht=e=>e?Ft.format(e):"",Ut="font-light text-left font-normal text-sm text-secondary-text",Zt={USD:"DollarIcon",EUR:"EuroIcon"},zt=a((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:Ut,children:"Валюта"}),n("th",{className:`${Ut} pl-11`,children:"Купить"}),n("th",{className:`${Ut} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>qt(e)))})]}))),qt=e=>{const t=e?.currency?.currency;return r("tr",{className:"pb-1",children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(p,{image:{icon:Zt[t]},width:"24",height:"24"}):null,n("span",{className:"text-m-title-md ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:Ht(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:Ht(e.saleExchangeRate)})]},t)},Jt=a((({className:e="",address:t,distance:a})=>r("div",{className:`flex text-sm ${e}`,children:[n(p,{className:"min-w-fit",image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,a?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",a]}):null]})]}))),Kt=a((({className:e="",id:t,name:r,type:a="text",placeholder:l})=>n("input",{className:e,id:t,name:r||t,type:a,placeholder:l}))),Xt=a((({className:e="",id:t,name:r,children:a})=>n("select",{className:e,id:t,name:r||t,children:a}))),Qt=a((({className:e="",value:t,children:r})=>n("option",{className:e,value:`${t}`,children:r}))),Yt=a((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[en("Хочу продать",e),en("Получу",e),n(z,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function en(e,t){return r("div",{className:"relative flex items-center",children:[n(Kt,{className:"h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12",type:"number",placeholder:`${e}`}),t.length?n(Xt,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(Qt,{value:e,children:e},String(t))))}):null]})}const tn=["USD","EUR"],nn=["RUB","USD","EUR"],rn=[{buyExchangeRate:90.6,saleExchangeRate:92.8,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:73.75,saleExchangeRate:75.95,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],an={address:"Москва, ул.Ленина д.28",distance:"6км"},ln=a((({className:e="",context:t,title:a="Курсы обмена валют",anchor:l=null})=>{const i=function(e){const{data:t}=e(Ot,Et);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==tn.indexOf(e?.currency?.currency||"")))||rn;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:l,children:n(ae,{context:t,title:n(s,{headingType:we(e),title:a,className:"whitespace-pre-wrap"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-[43px] pt-4",children:[i?n(zt,{className:"mb-[31px]",exchangeCurrencyItems:i}):null,n(Jt,{...an})]}),i?.length?n(Yt,{className:"grow",exchangeCurrencyItems:i,codes:nn}):null]})})})})),sn=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],on={"bg-white":"text-primary-main",transparent:"text-white"},cn={"bg-white":"text-black",transparent:"text-white"},dn=a((({className:e,href:t,children:a,targetBlank:l,bgColor:i="bg-white",hideTitle:s})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e||""}`,href:t||"https://rshb.ru/",target:l?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(Re,{className:`${on[i]} w-10`,viewBox:"0 0 40 45",paths:sn.map((e=>({d:e})))}),!s&&n("span",{className:`${cn[i]} font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),mn=a((({className:e,context:t})=>{const{term:a,setTerm:l}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[24px] h-[24px]",children:n(p,{image:"LoupeIcon",width:"24",height:"24"})}),!a&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-light text-base text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer font-sans font-light text-base text-black border border-solid rounded h-full box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:a,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input"}),n(z,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e.preventDefault(),console.log("click")},children:n("div",{className:"font-normal text-sm px-9 py-[9px]",children:"Найти"})})]})})),hn=a((({className:e="",items:t,hasButton:a,context:l})=>{const i=l.useRouter(),{handlerDecorator:s}=l;return r("div",{className:e,children:[t?.length?t.map(xn):null,a?n(z,{version:"primary",className:"mb-6 w-full",...W({router:i,handlerDecorator:s},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),xn=(e,t)=>{const{type:a,text:l,description:i}=e;return r("div",{className:"mb-4",children:[n("div",{children:un(a,l)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:i})]},String(t))},un=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${pn(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},pn=e=>e.replaceAll(/\D/g,""),bn=a((({links:e,className:t="",context:r})=>{const a=r.useRouter(),{handlerDecorator:l}=r;return n("div",{className:t,children:e?.length?n("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:e.map(((e,t)=>n(gn,{index:t,...W({router:a,handlerDecorator:l},e)},String(t))))}):null})})),gn=a((({className:e="",index:t,text:r,href:a,target:l,onClick:i})=>n("a",{className:`font-sans font-light text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:l,onClick:i,children:r||`Документ ${t}`}))),fn=e=>t=>e?.href===t?.href,Nn=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(fn(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(fn(e))))));var n,r,a};function vn(e){const{data:t}=e(wn(),yn);return t||{}}async function yn(){const e=await fetch(wn());return await e.json()}function wn(){return`/wcms-resources/${x.SITEMAP||"sitemap"}.json`}const In=a((({className:e="",items:t,context:r})=>{const a=vn(r.useAsyncData),l=Nn(a.topItems,t),i={router:r.useRouter(),handlerDecorator:r.handlerDecorator};return n("div",{className:`flex items-start justify-between gap-11 xl:gap-5 ${e}`,children:l?.map(((e,t)=>kn(e,t,i)))})})),kn=(e,t,{router:a,handlerDecorator:l})=>{const{text:i,href:s,items:o,target:c}=e;return r("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-[14px]",children:[n("a",{className:"block font-sans leading-5 text-base text-primary-text no-underline",href:s,target:c||"_self",children:i||`Раздел ${t}`}),o?.map(((e,t)=>n(Cn,{...W({router:a,handlerDecorator:l},e),index:t},String(t))))]},String(t))},Cn=a((({text:e,href:t,target:r,index:a})=>n("a",{className:"block font-sans font-light text-base text-secondary-text hover:text-primary-main no-underline",href:t,target:r||"_self",children:e||`Раздел ${a}`}))),$n=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники",width:"12px",height:"20px"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store",width:"20px",height:"22px"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play",width:"21px",height:"21px"}],Sn=a((({href:e,version:t})=>{const{icon:r,width:a,height:l,label:i}=$n.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!r)return null;return n("a",{className:` flex items-center justify-center border border-solid rounded-md border-main-divider no-underline outline-none w-14 h-14 box-border ${"secondary"===t?"text-white hover:text-primary-main hover:bg-white":"text-primary-main hover:text-white hover:bg-primary-main hover:border-primary-main"}`,href:e,"aria-label":i,target:"_blank",rel:"noopener noreferrer",children:r?n(p,{image:r,width:a,height:l,asSVG:!0,className:"block"}):null})})),Tn=a((({className:e="",media:t,version:a,context:l,children:i})=>{const s=l.useRouter(),{handlerDecorator:o}=l;return r("div",{children:[n("div",{className:`flex gap-2.5 mb-1.5 ${e}`,children:t?.map(((e,t)=>n(Sn,{version:a,...W({router:s,handlerDecorator:o},e)},String(t))))}),n("span",{className:"font-light text-sm text-secondary-text",children:i})]})})),Dn=a((({className:e,links:t,context:a})=>{const l=a.useRouter(),{handlerDecorator:i}=a;return r("div",{className:`${e||""}`,children:[n("div",{className:"pt-5 pb-[5px]",children:n("span",{className:"font-sans font-light text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex justify-start items-start gap-5 pt-[5px]",children:t.map(((e,t)=>n(An,{index:t,...W({router:l,handlerDecorator:i},e)},String(t))))}):null]})})),An=a((({className:e,index:t,text:r,href:a,target:l,onClick:i})=>n("a",{className:`font-sans font-light text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:l,onClick:i,children:r||`Документ ${t}`}))),Rn="w-[204px]",Mn=a((({className:e,documents:t,relatedEnterprises:a,contacts:l,socialMedia:i,mobileApps:s,topItems:o,context:c,anchor:d=null})=>r("footer",{className:`px-9 pt-9 pb-8 bg-white ${e||""}`,id:d,children:[r("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[n(dn,{className:Rn}),n(mn,{context:c,className:"grow"})]}),r("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[r("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[n(hn,{items:l,context:c,hasButton:!0}),n(Tn,{media:i,context:c,children:"Соцсети"}),n(Tn,{className:"mt-6",media:s,context:c,children:"Мобильное приложение"})]}),n(In,{className:"pt-[3px]",context:c,items:o})]}),n(bn,{className:"mt-24",links:a,context:c}),n(Dn,{links:t,context:c})]}))),Ln=a((({className:e="",title:t,description:a,calendar:l,anchor:i=null})=>r("section",{className:`bg-white p-16 pt-12 ${e}`,id:i,children:[n(s,{headingType:"h2",className:"text-center",title:t}),n("div",{className:"font-light text-base-md text-center mt-3",children:a}),l?Pn(l):null]}))),Pn=e=>{const t=100/(e.reduce(((e,t)=>e+t.month.length),0)||1),a=e.map((e=>({...e,flexBasis:e.month.length*t+"%"})));return r("div",{className:"w-full flex flex-col justify-center mt-14",children:[n("div",{className:"flex w-full mb-3 font-light text-m-title-md mb-3 text-center",children:a.map((e=>jn(e,t)))}),n("div",{className:"flex w-full",children:a.map(((e,t)=>r("div",{className:"pr-3 mr-3 border-r border-r-gray/100 last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[n("div",{className:"flex",children:Bn(e)}),r("div",{className:"font-light text-sm text-primary-text mt-3",children:[n("span",{children:e.blackText})," ",n("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},jn=(e,t)=>e.month.map((e=>n("div",{style:{flexBasis:`${t}%`},children:e.name},`monthName-${e.name}`))),Bn=e=>e.month.map((e=>e.image?.src?n("div",{className:"max-h-[207px] border-r-[1px] pr-3 mr-3 border-r-gray/100 last:border-r-0 last:pr-0 last:mr-0",children:n(p,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),_n=(e,t,n=((e,t)=>t.startsWith(e)))=>n(R(e),(e=>(e||"").replace(j,""))(R(A(e)?t.href:t.pathname))),Wn=e=>t=>_n(t.href,e),Gn=e=>t=>t.items?.some(Wn(e))||_n(t.href,e)||((e,t)=>M(e)===M(t.href))(t.href,e),Vn=a((({className:e="",text:t,href:r,target:a,active:l,flat:i,onClick:s,children:o,ariaLabel:c,bgColor:d="bg-white"})=>n("a",{className:`${En(d,l,i)} ${e}`,href:r,target:a,onClick:s,rel:"noopener noreferrer","aria-label":c,children:n("span",{className:On(d,l,i),children:t||o})}))),En=(e,t,n)=>{let r="border-transparent";return t&&(r="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${r} inline-block border border-solid bg-transparent text-center no-underline ${n?"":"px-4 py-2"}`},On=(e,t,n)=>{let r="text-white";return"bg-white"===e&&(r=t?"text-primary-main":(n?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"),`${r} font-sans font-light text-sm`},Fn=a((({className:e="",children:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":r,children:t}))),Hn={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},Un={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},Zn={"bg-white":"GridIcon",transparent:"GridIconWhite"},zn=a((({context:e,className:t,defaultLocation:a="",bgColor:l="bg-white"})=>{const[i,s]=e.useGeolocation(a);return r("div",{className:`flex items-center ${t||""}`,children:[n(Vn,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:l}),n(Vn,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:l}),n(Fn,{className:`mr-5 ${Hn[l]}`,ariaLabel:"Поиск по сайту",children:n(p,{image:"LoupeIcon",className:"h-full",asSVG:!0})}),n(Fn,{className:`${Un[l]} min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:n(p,{image:Zn[l],className:"h-full",asSVG:!0})})]})})),qn=e=>(t=[])=>{const n=t?.filter(Wn(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null},Jn="absolute left-0 -bottom-3 w-full h-[2px]",Kn=a((({className:e="",text:t,href:a,target:l,active:i,onClick:s,children:o,bgColor:c="bg-white",dataItemName:d})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:a,target:l,onClick:s,"data-item-name":d,children:[n("span",{className:Xn(c,i),children:t||o}),i?n("div",{className:Qn(c,i)}):null]}))),Xn=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${n} font-sans font-light text-base`},Qn=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${Jn}`:Jn,Yn=()=>!("undefined"!=typeof window&&window.document&&window.document.createElement),er=!Yn()?new IntersectionObserver((e=>{const t=window.document.querySelector("[data-header-submenu-visible=toggled]"),[n,r]=["[data-item-name=header-submenu]","[data-item-name=dots-header-submenu]"].map((e=>Array.from(window.document.querySelectorAll(e))));const a={};e.forEach((e=>{a[e.target.toString()]=e.isIntersecting}));const l=tr(a,r,"hidden");tr(a,n,"invisible"),t&&(l?t.classList.remove("hidden"):t.classList.add("hidden"))}),{root:window.document,threshold:1}):void 0,tr=(e,t,n)=>{const r="hidden"!==n;return t.some((t=>{const a=t.toString(),l=r?!e[a]:e[a];return a in e&&t.classList.toggle(n,l),r?t.classList.contains("hidden"):!t.classList.contains("hidden")}))},nr=a((({context:e,subItems:t,bgColor:a})=>{const[l,i]=e.useState(!1),s=e.useRouter(),{handlerDecorator:o}=e;setTimeout((()=>{if(Yn())return;globalThis.document.querySelectorAll("[data-item-name=header-submenu]").forEach((e=>{er?.observe(e)}))}),200);const c=qn(s)(t),d=t?.map((e=>n(Kn,{className:"mr-8",active:e===c,...W({router:s,handlerDecorator:o},e),dataItemName:"header-submenu",bgColor:a},e.href)));return r("nav",{className:"relative mt-5",children:[n("div",{className:"overflow-hidden whitespace-nowrap mr-52",children:d}),rr({subMenuIsShow:l,toggleSubMenu:()=>i(!l),subItems:t,router:s,handlerDecorator:o})]})})),rr=({subMenuIsShow:e,toggleSubMenu:t,subItems:a,router:l,handlerDecorator:i})=>r("div",{className:"absolute w-52 -top-4 right-0 pt-4 z-40 "+(e?"bg-white rounded-md shadow-blue-gray/24":""),"data-header-submenu-visible":"toggled",children:[n("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6",onClick:t,"aria-label":""+(e?"Скрыть другие разделы":"Показать другие разделы"),children:Array(3).fill(0).map(((e,t)=>lr(t)))}),n("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(e?"":"hidden"),"aria-hidden":!e,children:ar(a,l,i)})]}),ar=(e,t,r)=>e?.map((e=>n("a",{...W({router:t,handlerDecorator:r},e),"data-item-name":"dots-header-submenu",className:"text-base font-light pb-4 hover:text-primary-main",children:e.text},e.href))),lr=e=>n("div",{className:"w-[3px] h-[3px] rounded bg-black mr-1"},String(e)),ir={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},sr=a((({className:e="",defaultLocation:t="Москва",bgColor:a="bg-white",context:l,topItems:i,anchor:s=null})=>{const o=l.useRouter(),c=vn(l.useAsyncData),{handlerDecorator:d}=l,m=Nn(c.topItems,i),h=m.find(Gn(o)),x=m.map(((e,t)=>n(Vn,{active:e===h,...W({router:o,handlerDecorator:d},e),"aria-label":e.text,bgColor:a},String(t))));return n("header",{className:`pt-6 pb-8 px-20 ${a} ${e}`,id:s,children:r("div",{className:"container",children:[r("div",{className:"flex items-center",children:[n(dn,{className:"mr-8",bgColor:a}),x,n(zn,{context:l,className:"ml-auto",defaultLocation:t,bgColor:a})]}),n("div",{className:`mt-6 h-[1px] ${ir[a]}`}),n(nr,{context:l,subItems:h?.items,bgColor:a})]})})})),or=a((({className:e="",context:t,title:a="Мобильное приложение",qr:l,buttons:i=[],anchor:o=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${ke(e)} ${Ie(e)} `,id:o,children:n(ae,{context:t,title:a&&n(s,{headingType:"h3",title:a,className:"whitespace-pre-wrap max-w-[600px] mb-[30px]"}),buttons:i?.length?n(K,{context:t,buttons:i,className:"flex mt-[30px] gap-4"}):null,children:r("div",{className:"flex items-center",children:[l?.src&&l?.href&&n("a",{href:l.href,target:"_blank","aria-label":a,children:n("img",{src:l.src,alt:a,title:a,width:"164",height:"164",className:"w-[92px] h-[92px] min-w-[92px] min-h-[92px] bg-secondary-light"})}),n("span",{className:"font-light text-secondary-text ml-4",children:"Наведите камеру телефона на QR-код и скачайте приложение"})]})})}))),cr=a((({className:e,text:t,onClick:r,href:a,target:l,isActive:i})=>n("a",{className:`bg-inherit no-underline px-4 py-2.5 cursor-pointer rounded text-sm border border-solid hover:text-primary-main ${e||""} ${i?"border-primary-main text-primary-main":"border-white text-secondary-text"}`,onClick:r,href:a,target:l,children:t}))),dr=a((({className:e,context:t,title:a,buttons:l,anchor:i=null})=>{const s=t.useRouter(),{handlerDecorator:o}=t,c=qn(s)(l);return r("section",{className:`font-sans text-primary-text rounded-[40px] flex items-center justify-between ${e||""}`,id:i,children:[n("h2",{className:"font-medium text-xl m-0",children:a}),l?.length?n("div",{className:"flex rounded-md overflow-hidden bg-white",children:l.filter((({text:e})=>e)).map(((e,t)=>n(cr,{className:"first:rounded-tl-md first:rounded-bl-md last:rounded-tr-md last:rounded-br-md",isActive:e===c,...W({router:s,handlerDecorator:o},e)},String(t))))}):null]})})),mr=a((({className:e="",label:t,active:r,children:a,onClick:l,href:i,target:s="_self"})=>n("a",{className:hr(e,r),target:s,href:i,onClick:l,children:n("span",{className:xr(r),children:t||a})}))),hr=(e,t)=>`${t?"bg-primary-main":"group bg-white"} flex-1 flex items-center justify-center cursor-pointer ${e}`,xr=e=>`${e?"text-white":"text-secondary-text group-hover:text-primary-main "} font-sans font-normal text-sm`,ur=a((({className:e="",navigatorTabs:t,context:r,anchor:a=null})=>{const l=r.useRouter(),i=globalThis.location?.href;return n("section",{className:`sticky top-0 z-20 box-border flex gap-x-1 h-12 ${e}`,id:a,children:t?t.map(pr(i,l)):null})})),pr=(e,t)=>(r,a)=>{const l=L(e),i=l?r.href===l:0===a;return n(mr,{active:i,onClick:()=>br(t,r.href),...r},r.href)},br=(e,t)=>{A(t)||e?.replace(t||"")},gr=a((({blocks:e,columns:t=1,context:r})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden",children:n("div",{className:"box-border w-full p-9 "+(t>1?"flex flex-wrap":""),children:Je({context:r,className:"box-border p-5",columns:t,blocks:e})})}))),fr=a((({label:e,isExpanded:t,blocks:a,columns:l,context:i})=>{const{hasContent:s,icon:o,handleToggle:c,isActive:d}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,a]=e.useState(n),l=t?.length;return{isActive:r,hasContent:l,icon:r?"ArrowUpIcon":"ArrowDownIcon",handleToggle:e=>{if(!l)return;a(!r);const t=(({currentTarget:e})=>e.previousSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:i,blocks:a,initialState:t});return r("div",{className:"border-0 border-b border-solid border-main-divider",children:[s?n(gr,{isExpanded:d,columns:l,blocks:a,context:i}):null,r("button",{className:"border-none bg-primary-main px-0 py-[26px] mb-[1px] w-full font-sans text-white text-base flex justify-center cursor-pointer",onClick:c,children:[n("span",{className:"pr-3",children:d?"Скрыть":e}),s?n(u,{name:o,width:"20",height:"20",asSVG:!0}):null]})]})})),Nr=a((({blockItems:e,context:t,className:r})=>n("section",{className:`font-sans bg-white text-primary-text ${r||""}`,children:e?.length?n("div",{className:"list-none m-0 p-0",children:e.map(((e,r)=>n(fr,{...e,context:t},`BlockItem${r}`)))}):null}))),vr=a((({className:e,context:t,title:a,description:l="Блок в разработке...",anchor:i=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${ke(e)} ${Ie(e)} `,id:i,children:r(ae,{context:t,title:a?n(s,{headingType:we(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[l?n(X,{className:"mt-4 max-w-[600px]",description:l}):null,n("figure",{className:"m-0 min-w-[600px]",children:yr()})]})}))),yr=(e=3)=>Ir(100,e).map((e=>Math.floor(e))).map(wr),wr=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Ir=(e,t)=>[e].concat(t>0?Ir(e/1.618,t-1):[]),kr={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Cr=a((({block:e,headingType:t,context:r,className:a=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full ${kr[e?.version??"primary"]} ${a}`,role:"listitem",children:n("div",{className:"p-10 flex grow",children:n(oe,{className:"pl-2.5 pt-2.5 pb-1.5 pr-[6.25rem]",context:r,headingType:t||"h2",...e})})}))),$r=a((({className:e,context:t,duration:a=0,slides:l=[],anchor:i=null})=>{const s=l.map((e=>e.nav)),o=l.map((e=>e.productBlock)),[c,d]=t.useState(0);return r("section",{className:`font-sans bg-white overflow-hidden w-100 ${e||""}`,id:i,children:[n("div",{className:"flex duration-1000",style:{transform:`translateX(-${c}00%)`},role:"list",children:o.map(((e,r)=>n(Cr,{context:t,block:e},String(r))))}),n("div",{className:"flex",children:s.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:a,onClick:l,duration:i}){const s=t===a,o=s?"animate-slide":"",c=s?"text-primary-text":"text-secondary-text";return r("button",{type:"button",onClick:l,"aria-label":e?.title,className:"font-sans group relative overflow-hidden border-0 bg-inherit cursor-pointer text-left px-0 pt-4 pb-[23px] grow basis-0",children:[r("div",{className:"border-0 border-r border-solid border-main-divider px-6",children:[n("div",{className:`text-sm font-medium pb-[3px] group-hover:text-primary-text ${c}`,children:e?.title}),n("div",{className:"text-xs text-secondary-text",children:e.desc})]}),n("div",{className:`absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${o}`,style:{animationDuration:`${i}s`,animationFillMode:"forwards"}})]},String(t))}({slide:e,i:t,activeSlideIndex:c,onClick:()=>d(t),duration:a})))})]})}));const Sr={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Tr={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},Dr={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ar=a((({className:e="",context:t,slides:a=[],version:l="primary",duration:i=0,anchor:s=null})=>{const o=a.map((e=>e.nav)),c=a.map((e=>e.productBlock)),[d,m]=t.useState(0);return r("section",{id:s,className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 ${e}\n ${Sr[l]}`,children:[n("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${d}00%)`},role:"list",children:c.map(((e,r)=>function(e,t,r){const{version:a}=e,l=a?Tr[a].title:"";return n("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:n("div",{className:"flex grow",children:n(oe,{className:`pl-[50px] pr-2 z-[1] ${l}`,context:r,textBlockClassName:"mb-[154px]",...e})})},String(t))}({...e,version:l},r,t)))}),n("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border",children:o.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:a,onClick:l,version:i,duration:s}){const o=t===a,c=o?"bg-white shadow-dark-blue/42 h-[102px] w-[354px] min-w-[354px] max-w-[354px] p-0 border-none":`min-w-[277px] px-0 pt-4 pb-[23px] hover:py-[26px] hover:py-[26px] ease-in duration-300\n ${Dr[i]}`,d=o?"text-primary-text text-title-2xs":`text-base ${Tr[i].title}`,m=o?"text-secondary-text text-m-title-xs mt-2.5":`text-m-md mt-1.5 ${Tr[i].text}`,h="secondary"===i?"border-white/50":"",x=o?"animate-slide":"";return r("button",{type:"button",onClick:l,"aria-label":e?.title,className:`box-border font-sans group relative overflow-hidden border-[1px] cursor-pointer text-left mx-1 grow basis-0 backdrop-blur-sm\n ${c} ${h}\n `,children:[r("div",{className:"border-0 px-6",children:[n("div",{className:`font-medium ${d}`,children:e?.title}),n("div",{className:`text-secondary-text ${m}`,children:e.description})]}),n("div",{className:`absolute bottom-0 left-0 w-full h-[3px] bg-primary-main -translate-x-full ${x}`,style:{animationDuration:`${s}s`,animationFillMode:"forwards"}})]},String(t))}({slide:e,i:t,activeSlideIndex:d,onClick:()=>m(t),version:l,duration:i})))})]})}));const Rr={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Mr=a((({className:e="",context:t,title:a="Акции и спецпредложения",date:l,description:i,buttons:o=[],version:c="primary",anchor:d=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Rr[c]} ${ke(e)} ${Ie(e)} `,id:d,children:n(ae,{context:t,title:a?n(s,{headingType:we(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:o?.length?n(K,{context:t,buttons:o,className:"flex mt-9 gap-3"}):null,children:r("div",{className:"mt-1.5",children:[l?n("div",{className:"text-sm mb-2",children:Lr(l)}):null,n("div",{className:"text-base",children:i})]})})})));function Lr(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Pr=a((({context:e,className:t="",title:a,description:l,items:i,image:o,version:c,socialMedia:d})=>n("section",{className:`border border-solid box-border py-[30px] px-9 min-w-[515px] max-w-[515px] ${t}`,role:"listitem",children:r(ae,{context:e,className:"flex justify-between",title:a?n(s,{headingType:"h4",as:"h3",className:"font-normal mb-3.5",title:a}):null,image:o?.src&&n(p,{className:"mt-auto ml-7",image:o}),children:[l?n(X,{className:"text-left",description:l}):null,i?.length?n(re,{className:"text-md font-light flex flex-col gap-2",items:i,version:c}):null,n(Tn,{className:"pt-[42px] pb-0",media:d,version:c,context:e})]})}))),jr="absolute top-0 bottom-0 w-[84px]",Br=a((({context:e,recommendations:t=[],className:a="",title:l,version:i,anchor:o=null})=>{const[c,d]=e.useState(0),m="secondary"===i?"border-white/50":"border-main-stroke";return r("section",{className:`relative font-sans p-9 overflow-hidden text-center ${"secondary"===i?"bg-primary-main text-white":"bg-white text-primary-text"} ${a}`,id:o,children:[l?n(s,{headingType:"h2",className:"mb-6",title:l}):null,n("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*c}px)`},role:"list",children:t?.length?t.map(_r({context:e,version:i,className:m})):null}),Wr({cardsCount:t.length,activeCardIndex:c,setActiveCardIndex:d}),n("div",{className:`${jr} left-0 ${"secondary"===i?"bg-opacity-from-main":"bg-opacity-from-white"}`}),n("div",{className:`${jr} right-0 ${"secondary"===i?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),_r=({context:e,version:t,className:r})=>(a,l)=>n(Pr,{context:e,...a,version:t,className:r},String(l)),Wr=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:a})=>{const l=e>2,i=l&&e-t>2;return r("div",{children:[l&&t>0&&n(Le,{className:"absolute top-1/2 left-8 rotate-180 z-10 mt-6",onClick:()=>a(t-1),ariaLabel:"Пролистать влево"}),i&&n(Le,{className:"absolute top-1/2 right-8 z-10 mt-6",onClick:()=>a(t+1),ariaLabel:"Пролистать вправо"})]})},Gr=a((({className:e="",title:t,showLines:a=!0,steps:l=[],button:i,anchor:o=null})=>{const c=l.length>3;return r("section",{className:["box-border font-sans text-primary-text bg-white",c?"px-20":"px-[70px]","py-[50px] flex flex-col items-center",e].join(" "),id:o,children:[n(s,{headingType:"h2",className:"max-w-[47rem] text-center",title:t}),l?.length?r("div",{className:"box-border py-0.5 mb-0.5 "+(t?"mt-9":""),children:[n("div",{className:"flex items-center px-[88px]",children:V(n("div",{className:"h-0.5 w-full bg-secondary-light "+(a?"":"opacity-0")}))(l.map(Vr))}),n("div",{className:"flex justify-between "+(c?"gap-x-3":"gap-x-[101px]"),children:l.map(((e,t)=>Er(e,t,Boolean(i?.text))))})]}):null,i?.text?n(z,{className:"box-border mt-[43px] py-3 h-12 w-full max-w-[240px]",version:"primary",href:"#",children:i.text}):null]})})),Vr=(e,t)=>n("div",{className:"flex flex-col items-center text-center relative",children:n("div",{className:"h-[100px] w-[100px] min-w-[100px] min-h-[100px] bg-secondary-light rounded-full p-[26px] box-border z-10",children:e.icon?.icon&&n(p,{image:e.icon,width:"48",height:"48"})||n("span",{className:"font-normal text-title-sm text-secondary-text",children:t+1})})},String(t)),Er=(e,t,a)=>r("div",{className:"flex flex-col items-center justify-between text-center relative w-[276px] whitespace-pre-line overflow-hidden",children:[r("div",{children:[e.label&&n("div",{className:"font-normal text-xl m-0 mt-4",children:e.label}),e.description&&n("div",{className:"font-light text-base text-secondary-text "+(e.label?"mt-2":"mt-4"),children:e.description})]}),e?.button?.text&&!a?n(z,{className:"box-border mt-[38px] py-3 h-12 w-full max-w-[240px]",version:"primary",href:"#",children:e.button.text}):null]},String(t)),Or=e=>e?.alt||e?.title||h[e?.icon?e.icon:""],Fr=a((({cell:e,isLastRow:t})=>n("div",{className:"first:pl-0 pl-10 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 "+(t?"border-t-0 rounded-b-md":""),role:"cell",children:n("div",{children:e.map(Hr)})}))),Hr=({label:e,description:t,list:a,image:l,buttons:i},s)=>r("div",{className:"first:pt-5 last:pb-5",children:[s>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-4"}),e?n("div",{className:"text-xl font-medium m-0",children:e}):null,t?n("div",{className:"text-sm text-secondary-text",children:t}):null,a?.items?.length?Ur(a):null,l&&n(p,{image:l}),i?.length?Zr(i):null]},String(s)),Ur=e=>n(re,{className:"flex flex-col justify-between items-start text-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),Zr=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},a)=>n(z,{className:(a>0&&t?"ml-3":"")+" w-12 h-12",ariaLabel:Or(e),rounded:t,appendLeft:e?n(p,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r},String(a))))}),zr=a((({row:{header:e,data:t},activeCardIndex:a,isLastRow:l})=>r(rt,{children:[n("div",{className:"text-sm py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(l?"":"border-solid"),children:r("div",{className:"flex items-center text-primary-text",children:[e?.icon?n(p,{className:"mr-[14px] max-w-6 max-h-6",image:e.icon,width:"24px",height:"24px",asSVG:!0}):null,e?.title]})}),t?.length?n(ct,{activeCardIndex:a,columnWidth:360,version:"tariff",children:t.map(((e,t)=>n(Fr,{cell:e,isLastRow:l},String(t))))}):null]}))),qr=a((({className:e,context:t,title:a,description:l,rowHeaders:i,columns:o,anchor:c=null})=>{const[d,m]=t.useState(0),h=Jr(o),x=Kr(i,h),u=gt({columnsLength:h.length,colsLengthForScroll:2,activeCardIndex:d,setActiveCardIndex:m}),{isScrollAvailable:p}=u;return r("section",{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e||""}`,id:c,children:[a?n(s,{headingType:"h2",className:"text-center "+(l?"mb-2.5":"mb-9"),title:a}):null,l?n("div",{className:"mb-9 text-center text-m-base",children:l}):null,x?.length?r("div",{role:"table",children:[r("div",{className:"relative",children:[x.map(((e,t,{length:r})=>n(zr,{row:e,isLastRow:t+1===r,activeCardIndex:d},String(t)))),n(pt,{...u})]}),p?n("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]}):null]})})),Jr=e=>e?.map((({data:e})=>e))||[],Kr=(e,t)=>e?.map(((e,n)=>({header:e,data:t.map((e=>e?.[n]||[{}]))}))),Xr={Accordion:Ye,BenefitsBlock:et,Bonus:nt,ComparisonTable:Nt,CreditCalculator:Vt,ExchangeRateTile:ln,Footer:Mn,Gallery:He,GracePeriod:Ln,Header:sr,Headline:d,LinkDocs:S,MiniGallery:Ue,MobileAppTile:or,NavigatorTabs:ur,PictureText:D,ProductBlock:be,ProductGallery:$r,ProductGalleryGreen:Ar,ProductTile:De,PromoTile:Mr,OtherProducts:Nr,Recommendation:Br,StepsBlock:Gr,TariffsTable:qr,TextBlock:fe,Tile:$e,Navigation:dr,Placeholder:vr},Qr=a((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:Yr()}))),Yr=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("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"}),n("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"})]})},ea=a((({className:e,context:t,anchor:a=null})=>{const l=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,id:a,children:[n(Qr,{onClick:l.like,ariaLabel:"Поставить отметку «лайк»"}),n(Qr,{onClick:l.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:l.likeCount})]})})),ta=!Yn(),na=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),ra=a((({className:e="",context:t,blocksRegistry:a,data:{style:l,blocks:i,slots:s={},likeControl:o,colorPalette:c="pc"},blockDecorator:d=na})=>{const{header:m}=s,h=t.useRouter();return ta&&globalThis.addEventListener("load",(()=>{const e=globalThis.document.querySelectorAll("section[id]");globalThis.document.addEventListener("scroll",(()=>((e,t)=>{t?.forEach((t=>{const n=globalThis.location?.hash;if(n===`#${t?.id}`)return;const r=t?.getBoundingClientRect();r&&r.top>0&&r.top<150&&e.replace(`#${t?.id}`)}))})(h,e)))})),r("section",{className:`relative ${la(l)} ${e}`,"data-theme":c,children:[m?.blocks?.length?n("div",{className:`${la(m?.style)}`,children:m.blocks.map(((e,n)=>aa({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,i?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,n)=>aa({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,o&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(ea,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")})]})}));function aa({block:e,blockDecorator:t,blocksRegistry:r,context:a},l){const{type:i}=e;i&&i in r||console.warn(`No block with "${i}" is registered`);const s=r[i||"Placeholder"]||vr;return t({blockClassName:`scroll-mt-12 ${la(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:o}=e.block;return n(s,{className:e.blockClassName,version:t,context:a,anchor:o,...r},`${i}-${l}`)}},`block-${l}`)}function la(e){return e?e.join(" "):""}const ia=a((({HeadComponent:e,data:t,children:a})=>{const{title:l,main:i,og:s,twitter:o,jsonLd:c}=t,{description:d,keywords:m,canonical:h,robots:x}=i||{};return r(e,{children:[n("title",{children:l}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),d&&n("meta",{name:"description",content:d}),m&&n("meta",{name:"keywords",content:m.join(",")}),x&&n("meta",{name:"robots",content:x.join(",")}),sa(s),oa(o),h&&n("link",{rel:"canonical",href:h}),c&&n("script",{type:"application/ld+json",children:c}),a]})}));function sa(e){return e?Object.entries(e).map((([e,t])=>n("meta",{property:`og:${e}`,content:t},e))):null}function oa(e){return e?Object.entries(e).map((([e,t])=>n("meta",{name:`twitter:${e}`,content:t},e))):null}function ca(e){const{mobile:t,...n}=e;return n}function da(e){return e?.filter((e=>{return t=e?.type,(t||"")in Xr;var t})).map(ca)}e.Blocks=Xr,e.ContentPage=ra,e.ContentPageHead=ia,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.Header=sr,e.Icon=u,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(l)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(l,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a},body:JSON.stringify({node_ids:r})}),{likes:l}=await n.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:a,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:a,name:l}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:l},body:JSON.stringify({node_id:r,user_name:l})}),{likes:i}=await n.json();return i||0}catch(e){return console.error(e),0}}}},e.joinList=V,e.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:da(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:da(n[t].blocks)}})),{})}},e.projectSettings=x,e.setup=t,e.url=P,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/dist/ui-kit/List/List.js
CHANGED
|
@@ -13,7 +13,7 @@ const TEXT_STYLE_MAP = {
|
|
|
13
13
|
exports.List = (0, uni_jsx_1.JSX)((props) => {
|
|
14
14
|
const { className = '', itemClassName, isDotted, items, version = 'primary' } = props;
|
|
15
15
|
return ((0, jsx_runtime_1.jsx)("section", { className: `${TEXT_STYLE_MAP[version]} ${className}`, role: "list", children: items?.length
|
|
16
|
-
? items.map((_, i) => ((0, jsx_runtime_1.
|
|
16
|
+
? items.map((_, i) => ((0, jsx_runtime_1.jsx)(ListItem_1.ListItem, { className: itemClassName, isDotted: isDotted, version: version, children: _ }, String(i))))
|
|
17
17
|
: null }));
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=List.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../src/ui-kit/List/List.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yCAAsC;AAGtC,MAAM,cAAc,GAAoC;IACtD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,YAAY;CAC3B,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,aAAG,EAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtF,OAAO,CACL,oCAAS,SAAS,EAAE,GAAG,cAAc,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,EAAE,IAAI,EAAC,MAAM,YACvE,KAAK,EAAE,MAAM;YACZ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAClB,
|
|
1
|
+
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../src/ui-kit/List/List.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yCAAsC;AAGtC,MAAM,cAAc,GAAoC;IACtD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,YAAY;CAC3B,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,aAAG,EAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtF,OAAO,CACL,oCAAS,SAAS,EAAE,GAAG,cAAc,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,EAAE,IAAI,EAAC,MAAM,YACvE,KAAK,EAAE,MAAM;YACZ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAClB,uBAAC,mBAAQ,IAEP,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,YAEf,CAAC,IALG,MAAM,CAAC,CAAC,CAAC,CAML,CACZ,CAAC;YACJ,CAAC,CAAC,IAAI,GACA,CACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/lib/ui-kit/List/List.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { ListItem } from './ListItem.js';
|
|
4
4
|
const TEXT_STYLE_MAP = {
|
|
@@ -11,7 +11,7 @@ const TEXT_STYLE_MAP = {
|
|
|
11
11
|
export const List = JSX((props) => {
|
|
12
12
|
const { className = '', itemClassName, isDotted, items, version = 'primary' } = props;
|
|
13
13
|
return (_jsx("section", { className: `${TEXT_STYLE_MAP[version]} ${className}`, role: "list", children: items?.length
|
|
14
|
-
? items.map((_, i) => (
|
|
14
|
+
? items.map((_, i) => (_jsx(ListItem, { className: itemClassName, isDotted: isDotted, version: version, children: _ }, String(i))))
|
|
15
15
|
: null }));
|
|
16
16
|
});
|
|
17
17
|
//# sourceMappingURL=List.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../src/ui-kit/List/List.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,cAAc,GAAoC;IACtD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,YAAY;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtF,OAAO,CACL,kBAAS,SAAS,EAAE,GAAG,cAAc,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,EAAE,IAAI,EAAC,MAAM,YACvE,KAAK,EAAE,MAAM;YACZ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAClB,
|
|
1
|
+
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../src/ui-kit/List/List.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,cAAc,GAAoC;IACtD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,YAAY;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtF,OAAO,CACL,kBAAS,SAAS,EAAE,GAAG,cAAc,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,EAAE,IAAI,EAAC,MAAM,YACvE,KAAK,EAAE,MAAM;YACZ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAClB,KAAC,QAAQ,IAEP,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,YAEf,CAAC,IALG,MAAM,CAAC,CAAC,CAAC,CAML,CACZ,CAAC;YACJ,CAAC,CAAC,IAAI,GACA,CACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -788,7 +788,7 @@
|
|
|
788
788
|
const List = JSX((props) => {
|
|
789
789
|
const { className = '', itemClassName, isDotted, items, version = 'primary' } = props;
|
|
790
790
|
return (jsx("section", { className: `${TEXT_STYLE_MAP[version]} ${className}`, role: "list", children: items?.length
|
|
791
|
-
? items.map((_, i) => (
|
|
791
|
+
? items.map((_, i) => (jsx(ListItem, { className: itemClassName, isDotted: isDotted, version: version, children: _ }, String(i))))
|
|
792
792
|
: null }));
|
|
793
793
|
});
|
|
794
794
|
|
|
@@ -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";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...a}={})=>{const i=Object.assign({},a,r?{innerHTML:r.__html}:{});return e(t,i,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...a}=t||{},i=n?.slots?.default,l=r||i&&i();return e(Object.assign(a,l&&{children:l}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const i="likesToken";const l={h1:"text-m-title",h2:"text-m-title",h3:"text-m-title-md",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},o=a((e=>{const{className:t,headingType:r,title:a,as:i}=e;if(!r)return;return n(i||r,{className:`font-sans font-medium m-0 ${l[r]} ${t||""}`,children:a})}));var c,s;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.BurgerIconWhite="BurgerIconWhite",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CalendarWhiteIcon="CalendarWhiteIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.ChartSquareIcon="ChartSquareIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EmptyWalletWhiteIcon="EmptyWalletWhiteIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.GridIconWhite="GridIconWhite",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PercentageSquareWhiteIcon="PercentageSquareWhiteIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon"}(c||(c={})),function(e){e.ActualBalanceIcon="Деньги",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка 'Влево'",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.BurgerIconWhite="Бургер (белый)",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CalendarWhiteIcon="Календарь белый",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.ChartSquareIcon="Деньги внутри кошелька",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EmptyWalletWhiteIcon="Пустой кошелёк (белый)",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка",e.GridIconWhite="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PercentageSquareWhiteIcon="Проценты белые",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами"}(s||(s={}));const d=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};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}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},m=a((({className:e="",name:t="",alt:a=`Иконка ${s[t]||t}`,title:i=a,asSVG:l,...o})=>{const c=`${d.CDN||""}icons/${t}.svg`;return l?r("svg",{className:e,...o,"aria-hidden":"true",children:[i?n("title",{children:i}):null,a?n("desc",{children:a}):null,n("use",{href:`${c}#icon`,xlinkHref:`${c}#icon`})]}):n("img",{className:e,src:c,alt:a,title:i,...o,"aria-hidden":"true"})})),h=a((({className:e="",image:t,imageClassName:r="",...a})=>{const i="string"==typeof t?t:t?.icon;return i||""===i?n(m,{className:e,name:i,...a}):n(u,{className:e,imageClassName:r,image:t})})),u=a((({className:e="",image:t,imageClassName:a=""})=>t?r("picture",{className:e,children:[t?.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:x(t)},`${r}_${e}`))):null,p(t,a)]}):null)),p=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",i=e.alt||e.title;return n("img",{src:e.src,className:`m-auto ${t}`,alt:i,title:a,style:r,...e.size})};function x(e){return e?`image/${String(e)}`:void 0}const g={left:"text-left",center:"text-center",right:"text-right"},b={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},f=a((({bgColorHeadline:e="transparent",className:t="",title:a,description:i,image:l,align:c="left"})=>{const s=b[e];return r("section",{className:`px-4 py-6 ${s.background} ${t}`,children:[a&&n(o,{headingType:"h2",className:`${s.text} ${g[c]}`,title:a}),i&&n("p",{className:`font-normal text-m-md ${s.description} ${g[c]} ${a?"mt-2.5":""}`,children:i}),l?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(h,{image:l})})]})})),y=a((({children:e,activeIndex:t,indexFraction:r,showDots:a})=>{const i=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return a&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,a)=>n("div",{onClick:i(a),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:N(a,t,r),"aria-hidden":!0},String(a))))}):null})),N=(e,t,n)=>{if(e<t||e>t+1)return null;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},v=a((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),w=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),I=a((({className:e="",children:t,activeIndex:r,onScroll:a,gap:i=14,padding:l=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...w(l),gap:`${i}px`},role:"list",onScroll:a,children:t?.length?t?.map(((e,t)=>n(v,{style:w(l/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(v,{children:t})}))),k=a((({className:e,context:t,children:a,gap:i=14,padding:l=16,showDots:o=!0,onSlideChange:c})=>{const[s,d]=t.useState(0),[m,h]=t.useState(0),u={activeIndex:s,indexFraction:m,showDots:o,children:a};return r("div",{className:e,children:[n(I,{gap:i,padding:l,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:a,children:o}=e.currentTarget,m=o[0].offsetWidth-l/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:a,itemWidth:i})=>{const l=r-n;if(2===a)return[[0,l],[l,r]];const o=i+e,c=n-e-t,s=a-2,d=new Array(a).fill(0).map(((e,t)=>0===t||t===s?[t>0?l-c:0,t>0?l:c]:[(t-1)*o+c,t*o+c]));return d[a-1]=[l,r],d})({gap:i,padding:l,clientWidth:n,scrollWidth:a,childElementCount:r,itemWidth:m}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,a]=t[n];return{index:n,fraction:(e-r)/(a-r)}})(t,u);p!==s&&c&&c(),d(p),h(x)},children:a}),n(y,{...u})]})})),C=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:i,doc:l,icon:o})=>{const{text:c,fileSize:s,...d}=l;return r("a",{className:e,role:"link",...d,children:[o?n(h,{className:t,image:o,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:a,children:[c,n("span",{className:i,children:d?.href&&$(S(d.href),s)})]}):null]})})),$=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),S=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},T=a((({className:e="",doc:t,icon:r})=>n(C,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),D=a((({context:e,hasBorder:t=!0,documents:r,icon:a})=>n(k,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(T,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:a},String(r)))):null}))),R=a((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-m-sm text-primary-main flex flex-col "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,a)=>n("div",{role:"listitem",children:n(T,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(a)))):null}))),A=a((({className:e="",context:t,title:a,subtitle:i,icon:l={icon:"DocIconMonoColor"},documents:c,orientation:s="vertical",hasBorder:d=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[a?n(o,{headingType:"h2",className:"text-center "+(i?"mb-2":"mb-5"),title:a}):null,i?n("h3",{className:"mt-0 font-normal mb-5 text-center text-m-md",children:i}):null,"vertical"===s?n(R,{hasBorder:d,documents:c,icon:l}):n(D,{context:t,hasBorder:d,documents:c,icon:l})]}))),L=e=>e?.includes("//"),P=e=>(e||"").replace(/\/?\?.*/,""),W=e=>{if(!e||!L(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var M=Object.freeze({__proto__:null,isURL:L,withoutQuery:P,getOrigin:W,getHash:e=>{if(!e||!L(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0}});const j="/mobile",B=(e,t)=>{if(!e)return e;const n=W(t?.href);return n?e.replace(n,"")||"/":e},G=e=>e;function V({router:e,handlerDecorator:t=G},n){const r=((e,t)=>{if(!e)return e;const n=B(e,t)||"",r=t?.pathname.startsWith(j);return r&&!L(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const a=r&&!L(r),i=!n.target||"_self"===n.target;a&&i&&(t.preventDefault(),e.push(r))}),n)}}const _=a((e=>{const{text:t,aboveText:a,appendLeft:i}=e;return r("div",{className:E(e),children:[i||null,O(e)?r("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:a}),n("div",{className:"text-button text-left",children:t})]}):null]})})),E=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const a="px-8 gap-2 "+(n?"py-2":"py-[18px]");return["flex items-center justify-center",O(e)?a:"h-12 w-12",r?"rounded-full":""].join(" ")},O=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),F={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:"text-primary-main"},H={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},U="w-full text-center font-sans select-none",z=a((({className:e,text:t,aboveText:r,appendLeft:a,href:i,target:l,onClick:o,children:c,disabled:s,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const p=c??n(_,{text:t,aboveText:r,appendLeft:a,rounded:d,version:m});return s?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${U} ${H[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${U} inline-block cursor-pointer no-underline ${F[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:o,"aria-label":h,role:i?"link":"button",...u,children:p})})),Z=a((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:a}=e,i=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(z,e?{appendLeft:n(h,{image:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(V({router:i,handlerDecorator:a},e),t)))}):null}));const J=a((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),q={primary:"rounded-full inline-block mr-3 mt-2",secondary:"rounded-full inline-block mr-3 mt-2",gray:"rounded-full inline-block mr-3 mt-2",tile:"rounded-full inline-block mr-4","tile-white":"rounded-full inline-block mr-4"},K={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},Q=a((({className:e="",isDotted:t=!0,children:a,version:i="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:Y(i)}),n("span",{children:a})]}))),Y=e=>`${q[e]} ${K[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,X={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},ee=a((e=>{const{className:t="",itemClassName:a,isDotted:i,items:l,version:o="primary"}=e;return n("section",{className:`${X[o]} ${t}`,role:"list",children:l?.length?l.map(((e,t)=>r(Q,{className:a,isDotted:i,version:o,children:[e,"12"]},String(t)))):null})})),te=a((({className:e="",title:t,children:a,buttons:i,image:l,anchor:o=null})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,id:o,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:a}),i?n("div",{children:i}):null]}),l]})]}))),ne={primary:"text-primary-text",secondary:"text-white"},re={primary:"text-secondary-text",secondary:"text-white"};const ae=a((({className:e="",context:t,title:a,headingType:i="h2",description:l,benefits:c,buttons:s,image:d,items:m,version:u="primary",isDotted:p=!0,label:x})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[x?oe(x,u):null,r(te,{context:t,title:a&&n(o,{headingType:i,title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:s?.length?n(Z,{context:t,buttons:s,className:"flex flex-col mt-5 gap-2.5"}):null,children:[l?n(J,{className:"mt-3 text-m-md",description:l}):null,c?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:c.map(((e,t)=>function(e,t,a){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon?n(h,{className:"w-6 h-6 rounded-full box-border",image:e.icon,width:"24",height:"24",asSVG:!0}):null,n("div",{className:`font-medium text-m-title-xs m-0 ${ne[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${re[a]}`,children:e.description})]},String(t))}(e,t,u)))}):null,m?.length?n(ee,{className:"mt-3 text-m-md",items:m,version:u,isDotted:p}):null]})]}),ie(d)]})));function ie(e){return e?.src?n(h,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const le={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},oe=(e,t)=>n("div",{className:`m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${le[t]}`,children:e}),ce={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},se=a((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${ce[r]} ${t}`,children:n(ae,{...e})})})),de={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},me=a((({title:e,description:t,blockVersion:a="primary",iconVersion:i,image:l,className:o="",items:c,isDotted:s=!0})=>{const d=de[a];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${o}`,children:["small"===i?he(d.icon):null,"big"===i?ue(l):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${d.title}`,children:e}):null,t?n("div",{className:`text-sm ${d.description}`,children:t}):null,c?.length?n(ee,{className:"mt-1 text-m-md",items:c,isDotted:s,version:"secondary"===a?"secondary":"gray"}):null]})]})}));function he(e){return n("div",{className:"mb-3",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function ue(e){return e?.src?n(h,{className:"pb-3 mr-auto",image:e}):null}const pe={primary:"bg-white",secondary:"bg-primary-main text-white"},xe=a((({context:e,title:t,description:a,cards:i=[],className:l,orientation:c="horizontal"})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${l}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[t?n(o,{headingType:"h3",className:"text-center "+(a?"mb-2":"mb-5"),title:t}):null,a?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:a}):null]}),ge(c,i,e)]})));function ge(e,t,r){return"horizontal"===e?n(k,{context:r,children:t?.map(be)}):n("div",{className:"grid gap-[14px]",children:t?.map(be)})}function be(e,t){return r("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${pe[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(h,{className:"mb-3.5",image:e.image})}):null,e.title?n("h3",{className:"font-medium text-m-title-xs m-0",children:e.title}):null,e.description?fe(e):null,e.items?.length?ye(e.items,e.version):null]}),e?.button?.text?(a=e.button,n(z,{className:"mt-3",appendLeft:a?.icon&&n(h,{image:a?.icon,width:"24px",height:"24px",asSVG:!0}),...a})):null]},t);var a}function fe(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function ye(e,t="primary"){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm pl-2 "+("primary"===t?"text-secondary-text":""),children:e.text})]},String(a))))})}const Ne=a((({className:e="",documents:t,anchor:r=null})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,id:r,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?ve(t):null})}))),ve=e=>e.map(((e,t)=>{const{text:r,...a}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...a,children:r||null})},`list_item_${String(t)}`)})),we={Headline:f,LinkDocs:A,TextBlock:me,ProductBlock:se,Gallery:xe,LinkList:Ne},Ie=({blocks:e,context:t,className:n,columns:r})=>e?.length?e.map(ke({context:t,className:n,columns:r})):null,ke=({context:e,columns:t,className:r})=>(a,i)=>{const l=a?.blockListType;if(!l||!(l in we))return null;return n("div",{className:`${r} ${2===t?"w-1/2":""}`,children:n(we[l],{context:e,...a,className:"!p-0"})},`block_${i}`)},Ce=a((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:Ie({context:t,className:"mb-5 last:mb-0 first:mt-2",blocks:e})}))),$e=a((({label:e,labelIcon:t,blocks:a,bordered:i,context:l})=>{const{hasContent:o,icon:c,handleToggle:s}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,a]=e.useState(n),i=t?.length;return{isActive:r,hasContent:i,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!i)return;a(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:l,blocks:a});return r("li",{className:`${Se(i)} border-solid border-main-divider`,children:[r("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${i?"":"py-[14px] px-0"}\n ${o?"group cursor-pointer":""}`,onClick:s,children:[r("span",{className:"text-m-title-xs pr-2.5 font-medium flex "+(o?"group-hover:text-primary-main":""),children:[t?n(h,{image:t,width:"24",height:"24",asSVG:!0,className:"mr-3"}):null,e]}),o?n(h,{image:c,width:"24",height:"24",asSVG:!0}):null]}),o?n(Ce,{blocks:a,context:l}):null]})}));function Se(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const Te=a((({title:e,description:t,accordionItems:a,context:i,className:l="",bordered:c})=>r("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${l}`,children:[e?n(o,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,a?.length?n("ul",{className:"list-none m-0 p-0",children:a.map(((e,t)=>n($e,{...e,context:i,bordered:c},`AccordionItem${t}`)))}):null]}))),De=a((({icon:e,image:t,title:a,subtitle:i,isFillGradient:l})=>r("div",{role:"columnheader",scope:"col",children:[e?n(h,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&n("div",{className:"mb-3.5",children:n(h,{image:t})}),a&&n(o,{headingType:"h4",className:""+(l?"text-white":""),title:a}),i&&n("div",{className:"text-m-sm mb-3.5 "+(l?"text-white":"text-secondary-text/80"),children:i})]}))),Re=a((({cell:e,rowHeader:t,isFillGradient:r=!1})=>n("div",{className:"box-border flex flex-col",role:"cell",children:n("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Ae(r,t))})}))),Ae=(e,t)=>({label:a,description:i},l)=>r("div",{className:"flex justify-between text-m-sm py-3.5",children:[n("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),r("div",{className:"basis-1/2",children:[a&&n("div",{className:"text-right "+(e?"text-white":""),children:a}),i&&n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i})]})]},String(l)),Le=a((({header:e,columnData:t,visibleRowLength:a=0,isFillGradient:i,showRow:l,onToggleColumn:o})=>{const c=t?.slice(0,l?t.length:a),s=i?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(De,{...e,isFillGradient:i}),c?.length?c.map((({rowHeader:e,cell:t},r)=>n(Re,{cell:t,rowHeader:e,isFillGradient:i},String(r)))):null,l&&Pe({header:e,buttonVersion:s}),We({onToggleColumn:o,isFillGradient:i,showRow:l})]})})),Pe=({header:e,buttonVersion:t})=>n(z,{href:e.link.href,target:e.link.target,version:t,className:"font-medium text-m-sm mt-4 py-[11px]",children:e.link.text}),We=({onToggleColumn:e,isFillGradient:t,showRow:r})=>n("div",{className:"mt-5",role:"cell",children:n("a",{role:"link",onClick:e,className:"font-medium text-m-sm cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:r?"Скрыть":"Показать описание"})}),Me=a((({className:e,context:t,title:a,rowHeaders:i,columns:l,visibleRowLength:c=0,isColoredFirstColumn:s=!1,orientation:d="vertical"})=>{const m=l?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:i?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(l?.length).fill(!c));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[a&&n(o,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:a}),je({tableData:m,context:t,visibleRowLength:c,isColoredFirstColumn:s,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},orientation:d,setColumnsViewState:u})]})})),je=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:a,columnsViewState:i,handleToggleColumn:l,orientation:o="horizontal",setColumnsViewState:c})=>n("div",{role:"table",children:t?.length?Be({orientation:o,context:e,columnsViewState:i,setColumnsViewState:c,tableData:t,visibleRowLength:r,isColoredFirstColumn:a,handleToggleColumn:l}):null}),Be=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:a,tableData:i,visibleRowLength:l,isColoredFirstColumn:o,handleToggleColumn:c})=>"horizontal"===e?n(k,{context:t,onSlideChange:Ve(r,a),children:i.map(Ge({context:t,visibleRowLength:l,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c}))}):i.map(Ge({context:t,visibleRowLength:l,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c})),Ge=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:a,handleToggleColumn:i})=>(l,o)=>n(Le,{context:e,visibleRowLength:t,showRow:a[o],header:l.header,columnData:l.column,isFillGradient:0===o&&r,onToggleColumn:()=>i(o)},String(o)),Ve=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function _e(){try{const e=await fetch(Ee);return await e.json()}catch(e){console.error(e)}}const Ee="/api/v1/exchangerates.json",Oe=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Fe(e=""){const t=Oe(e);return t<=4?"h4":t<=8?"h3":"h2"}const He=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),Ue=e=>e?He.format(e):"",ze="font-light text-left font-normal text-sm text-secondary-text",Ze={USD:"DollarIcon",EUR:"EuroIcon"},Je=a((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:ze,children:"Валюта"}),n("th",{className:`${ze} pl-11`,children:"Купить"}),n("th",{className:`${ze} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>qe(e)))})]}))),qe=e=>{const t=e?.currency?.currency;return r("tr",{className:"pb-1",children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(h,{image:{icon:Ze[t]},width:"24",height:"24"}):null,n("span",{className:"text-m-title-md ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:Ue(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:Ue(e.saleExchangeRate)})]},t)},Ke=a((({className:e="",address:t,distance:a})=>r("div",{className:`flex text-sm ${e}`,children:[n(h,{className:"min-w-fit",image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,a?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",a]}):null]})]}))),Qe=a((({className:e="",id:t,name:r,type:a="text",placeholder:i})=>n("input",{className:e,id:t,name:r||t,type:a,placeholder:i}))),Ye=a((({className:e="",id:t,name:r,children:a})=>n("select",{className:e,id:t,name:r||t,children:a}))),Xe=a((({className:e="",value:t,children:r})=>n("option",{className:e,value:`${t}`,children:r}))),et=a((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[tt("Хочу продать",e),tt("Получу",e),n(z,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function tt(e,t){return r("div",{className:"relative flex items-center",children:[n(Qe,{className:"h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12",type:"number",placeholder:`${e}`}),t.length?n(Ye,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(Xe,{value:e,children:e},String(t))))}):null]})}const nt=["USD","EUR"],rt=["RUB","USD","EUR"],at=[{buyExchangeRate:90.6,saleExchangeRate:92.8,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:73.75,saleExchangeRate:75.95,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],it={address:"Москва, ул.Ленина д.28",distance:"6км"},lt=a((({className:e="",context:t,title:a="Курсы обмена валют",anchor:i=null})=>{const l=function(e){const{data:t}=e(Ee,_e);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==nt.indexOf(e?.currency?.currency||"")))||at;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:i,children:n(te,{context:t,title:n(o,{headingType:Fe(e),title:a,className:"whitespace-pre-wrap"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-[43px] pt-4",children:[l?n(Je,{className:"mb-[31px]",exchangeCurrencyItems:l}):null,n(Ke,{...it})]}),l?.length?n(et,{className:"grow",exchangeCurrencyItems:l,codes:rt}):null]})})})})),ot=a((({className:e,viewBox:t,fill:r="none",width:a,height:i,paths:l,...o})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:a,height:i,children:l.map((({d:e,fill:t,...r},a)=>n("path",{d:e,fill:t||"currentColor",...o,...r},a)))}))),ct=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],st={"bg-white":"text-primary-main",transparent:"text-white"},dt={"bg-white":"text-black",transparent:"text-white"},mt=a((({className:e="",href:t,children:a,targetBlank:i,bgColor:l="bg-white",hideTitle:o})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(ot,{className:`${st[l]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:ct.map((e=>({d:e})))}),!o&&n("span",{className:`${dt[l]} text-sm font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),ht=a((({className:e,title:t="Мобильное приложение",description:a,href:i="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:i?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(mt,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3 font-sans",children:[n("div",{className:"text-m-button font-medium mb-[3px]",children:t}),n("div",{className:"text-m-button text-secondary-text",children:a})]})]}):null}))),ut=a((({className:e="",items:t,hasButton:a,context:i})=>{const l=i.useRouter(),{handlerDecorator:o}=i;return r("div",{className:e,children:[t?.length?t.map(pt):null,a?n(z,{version:"primary",className:"mb-6 w-full",...V({router:l,handlerDecorator:o},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),pt=(e,t)=>{const{type:a,text:i,description:l}=e;return r("div",{className:"mb-4",children:[n("div",{children:xt(a,i)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:l})]},String(t))},xt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${gt(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},gt=e=>e.replaceAll(/\D/g,""),bt=a((({title:e,links:t,className:a="",context:i})=>{const l=i.useRouter(),{handlerDecorator:o}=i;return r("div",{className:a,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>n(ft,{index:t,...V({router:l,handlerDecorator:o},e)},String(t))))}):null]})})),ft=a((({className:e="",index:t,text:r,href:a,target:i,onClick:l})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:i,onClick:l,children:r||`Документ ${t}`}))),yt=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники",width:"12px",height:"20px"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store",width:"20px",height:"22px"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play",width:"21px",height:"21px"}],Nt=a((({href:e,version:t})=>{const{icon:r,width:a,height:i,label:l}=yt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!r)return null;return n("a",{className:` flex items-center justify-center border border-solid rounded-md border-main-divider no-underline outline-none w-14 h-14 box-border ${"secondary"===t?"text-white hover:text-primary-main hover:bg-white":"text-primary-main hover:text-white hover:bg-primary-main hover:border-primary-main"}`,href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:r?n(h,{image:r,width:a,height:i,asSVG:!0,className:"block"}):null})})),vt=a((({className:e,media:t,version:r,context:a})=>{const i=a.useRouter(),{handlerDecorator:l}=a;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(Nt,{version:r,...V({router:i,handlerDecorator:l},e)},String(t))))})})),wt=a((({className:e,links:t,context:a})=>{const i=a.useRouter(),{handlerDecorator:l}=a;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>n(It,{index:t,...V({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),It=a((({className:e,index:t,text:r,href:a,target:i,onClick:l})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:i,onClick:l,children:r||`Документ ${t}`})));function kt(e){const{data:t}=e($t(),Ct);return t||{}}async function Ct(){const e=await fetch($t());return await e.json()}function $t(){return`/wcms-resources/${d.SITEMAP||"sitemap"}.json`}const St=a((({className:e,context:t})=>{const{term:a,setTerm:i}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(h,{image:"LoupeIcon",width:"24",height:"24"})}),!a&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:a,onChange:e=>i(e.target.value),type:"text",name:"search-bar-input",placeholder:"some search"}),n("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),i("")},children:n(h,{image:"CloseIcon",width:"24",height:"24"})})]})})),Tt=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Dt=a((({className:e="",documents:t,relatedEnterprises:a,contacts:i,socialMedia:l,context:o,horizontalNavigationTitle:c})=>{const s=kt(o.useAsyncData),d=s?.dispositions;return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(ut,{className:"overflow-hidden",items:i,context:o,hasButton:!0}),n(Te,{context:o,className:"!p-0 mb-4",accordionItems:Tt(s.topItems)}),n("div",{children:d?.map(Rt)}),n(ht,{context:o,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(St,{context:o,className:"grow"}),n(vt,{className:"pb-4",media:l,context:o}),n(bt,{title:c,links:a,context:o}),n(wt,{links:t,context:o})]})})),Rt=(e,t)=>{const{icon:a,href:i,text:l}=e;return r(z,{version:"link",href:i,className:"flex text-sm mb-4",children:[a?n(h,{className:"pr-1",image:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:l})]},`footer-${t}`)},At=(e,t,n=((e,t)=>t.startsWith(e)))=>n(P(e),(e=>(e||"").replace(j,""))(P(L(e)?t.href:t.pathname))),Lt=e=>t=>At(t.href,e),Pt=e=>t=>t.items?.some(Lt(e))||At(t.href,e)||((e,t)=>W(e)===W(t.href))(t.href,e),Wt=e=>t=>e?.href===t?.href,Mt=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(Wt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Wt(e))))));var n,r,a},jt="absolute left-0 -bottom-3 w-full h-[2px]",Bt=a((({className:e,text:t,href:a,target:i,active:l,onClick:o,children:c,bgColor:s="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:i,onClick:o,children:[n("span",{className:Gt(s,l),children:t||c}),l?n("div",{className:Vt(s,l)}):null]}))),Gt=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},Vt=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${jt}`:jt,_t=a((({context:e,burgerSubMenu:t,onClick:a,defaultLocation:i="",children:l})=>{const[o,c]=e.useGeolocation(i);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:a,children:n(h,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r("button",{onClick:c,className:"flex items-center text-sm text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[n(h,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),o]}),l,n("div",{className:"mb-7",children:t?.map(Et)}),n(St,{context:e,className:"grow"})]})})),Et=(e,t)=>{const{icon:a,href:i,text:l}=e;return r("a",{href:i,className:"flex text-sm mb-4 hover:text-primary-main",children:[a?n(h,{className:"text-primary-main pr-1",image:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:l})]},`headerSubMenu-${t}`)},Ot=a((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:n(h,{image:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",className:"text-primary-text",width:"24",height:"24",asSVG:!0})}),n(mt,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Ft=a((({className:e="",defaultLocation:t,bgColor:a="bg-white",context:i,topItems:l})=>{const o=i.useRouter(),c=kt(i.useAsyncData),s=c?.dispositions,{handlerDecorator:d}=i,m=Mt(c.topItems,l).find(Pt(o))?.items,h=(e=>(t=[])=>{const n=t?.filter(Lt(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(o)(m),[u,p]=i.useState(!1),x=()=>p(!u);return r("header",{className:`${a} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(Ot,{onClick:x,bgColor:a}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>Ht({...V({router:o,handlerDecorator:d},e),active:e===h,bgColor:a},t)))})})]}),u?n(_t,{context:i,onClick:x,burgerSubMenu:s,defaultLocation:t,children:n(Te,{context:i,accordionItems:Tt(c.topItems),className:"!p-0 mb-4"})}):null]})})),Ht=(e,t)=>n(Bt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t));function Ut(e=""){const t=Oe(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function zt(e=""){const t=Oe(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Zt=a((({className:e,context:t,title:a,description:i="Блок в разработке...",anchor:l=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${zt(e)} ${Ut(e)} `,id:l,children:r(te,{context:t,title:a?n(o,{headingType:Fe(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[i?n(J,{className:"mt-4 max-w-[600px]",description:i}):null,n("figure",{className:"m-0 min-w-[600px]",children:Jt()})]})}))),Jt=(e=3)=>Kt(100,e).map((e=>Math.floor(e))).map(qt),qt=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Kt=(e,t)=>[e].concat(t>0?Kt(e/1.618,t-1):[]),Qt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Yt=a((({block:e,headingType:t,context:r,className:a=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${Qt[e?.version??"primary"]} ${a}`,children:n("div",{className:"flex grow",children:n(ae,{context:r,headingType:t||"h2",...e})})}))),Xt=a((({className:e,context:t,slides:r=[]})=>{const a=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(k,{context:t,children:a.map(((e,r)=>n(Yt,{block:e,context:t},String(r))))})})})),en={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},tn={normal:"min-h-[70px]",small:"min-h-[50px]"},nn={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconBackground:"bg-secondary-light",iconConnector:"bg-secondary-light"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconBackground:"bg-white/30",iconConnector:"bg-white"}},rn=e=>nn[e],an=a((({className:e,title:t,description:a,steps:i,size:l="normal",version:c="primary"})=>{const s=rn(c);return r("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t&&n(o,{headingType:"h3",className:`text-center ${s.title}`,title:t}),a&&n("p",{className:`text-m-md text-center ${s.description} ${t&&"mt-2"}`,children:a}),i?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:i.map(((e,t)=>ln({step:e,size:l,i:t,length:i.length,version:c})))})}):null]})})),ln=e=>{const{step:t,size:a,i:i,length:l,version:o}=e,c=l-1===i,s="normal"===a?"ml-[34px]":"ml-[24px]",d=rn(o);return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[on(e),!c&&n("div",{className:`min-h-8 h-full w-[2px] ${d.iconConnector} ${s}`})]}),r("div",{className:`flex flex-col justify-center h-fit ${tn[a]}`,children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:`font-normal text-sm ${d.description} text-left ${t.label?"mt-1":""}`,children:t.description})]})]},String(i))},String(i))},on=e=>{const{step:t,size:r,i:a,version:i}=e,l=rn(i),o="normal"===r?"38":"27",c="normal"===r?"text-m-title":"text-m-title-xs";return n("div",{className:`${en[r]} ${l.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${l.title} ${c}`,children:t.icon?.icon&&n(h,{image:t.icon,width:o,height:o,asSVG:!0})||a+1})})},cn=a((({title:e,icon:t})=>r("div",{className:"flex gap-2.5 mb-2",children:[e?n(o,{headingType:"h3",className:"font-medium",title:e}):null,t?n(h,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),sn=e=>e?.alt||e?.title||s[e?.icon?e.icon:""],dn=a((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(cn,{...e}),t?.length?t.map(mn):null]}))),mn=({label:e,description:t,list:a,image:i,buttons:l},o)=>r("div",{children:[o>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-2"}),e?n("div",{className:"text-m-sm m-0",children:e}):null,t?n("div",{className:"text-m-sm text-secondary-text mt-[3px]",children:t}):null,a?.items?.length?hn(a):null,i&&n(h,{image:{...i,className:"m-0"}}),l?.length?un(l):null]},String(o)),hn=e=>n(ee,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),un=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},a)=>n(z,{className:`mt-3 ${a>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:sn(e),rounded:t,appendLeft:e?n(h,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r,"aria-label":e},String(a))))}),pn=a((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(dn,{...e},String(t))))}))),xn=a((({tiles:e,context:t})=>n(k,{context:t,children:e.map(((e,t)=>n(dn,{...e},String(t))))}))),gn=a((({className:e,context:t,title:a,description:i,columns:l,rowHeaders:c,orientation:s="vertical"})=>{const d=fn(l),m=yn(c,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[a?n(o,{headingType:"h2",className:"text-center "+(i?"mb-2":"mb-5"),title:a}):null,i?n("div",{className:"mb-5 text-center text-m-md",children:i}):null,m?.length?bn(s,m,t):null]})}));function bn(e,t,r){return"vertical"===e?n(pn,{tiles:t}):n(xn,{context:r,tiles:t})}const fn=e=>e?.[0].data?e[0].data:[],yn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Nn={Accordion:Te,ComparisonTable:Me,ExchangeRateTile:lt,Footer:Dt,Gallery:xe,Header:Ft,Headline:f,LinkDocs:A,LinkList:Ne,MobileAppTile:ht,ProductBlock:se,ProductGallery:Xt,StepsBlock:an,TariffsTable:gn,TextBlock:me,Placeholder:Zt},vn=a((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:wn()}))),wn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("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"}),n("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"})]})},In=a((({className:e,context:t,anchor:a=null})=>{const i=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,id:a,children:[n(vn,{onClick:i.like,ariaLabel:"Поставить отметку «лайк»"}),n(vn,{onClick:i.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:i.likeCount})]})})),kn=!("undefined"==typeof window||!window.document||!window.document.createElement),Cn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),$n=a((({className:e="",context:t,blocksRegistry:a,data:{style:i,blocks:l,slots:o={},likeControl:c,colorPalette:s="pc"},blockDecorator:d=Cn})=>{const{header:m}=o,h=t.useRouter();return kn&&globalThis.addEventListener("load",(()=>{const e=globalThis.document.querySelectorAll("section[id]");globalThis.document.addEventListener("scroll",(()=>((e,t)=>{t?.forEach((t=>{const n=globalThis.location?.hash;if(n===`#${t?.id}`)return;const r=t?.getBoundingClientRect();r&&r.top>0&&r.top<150&&e.replace(`#${t?.id}`)}))})(h,e)))})),r("section",{className:`relative ${Tn(i)} ${e}`,"data-theme":s,children:[m?.blocks?.length?n("div",{className:`${Tn(m?.style)}`,children:m.blocks.map(((e,n)=>Sn({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,l?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:l.map(((e,n)=>Sn({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(In,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")})]})}));function Sn({block:e,blockDecorator:t,blocksRegistry:r,context:a},i){const{type:l}=e;l&&l in r||console.warn(`No block with "${l}" is registered`);const o=r[l||"Placeholder"]||Zt;return t({blockClassName:`scroll-mt-12 ${Tn(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:c}=e.block;return n(o,{className:e.blockClassName,version:t,context:a,anchor:c,...r},`${l}-${i}`)}},`block-${i}`)}function Tn(e){return e?e.join(" "):""}const Dn=a((({HeadComponent:e,data:t,children:a})=>{const{title:i,main:l,og:o,twitter:c,jsonLd:s}=t,{description:d,keywords:m,canonical:h,robots:u}=l||{};return r(e,{children:[n("title",{children:i}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),d&&n("meta",{name:"description",content:d}),m&&n("meta",{name:"keywords",content:m.join(",")}),u&&n("meta",{name:"robots",content:u.join(",")}),Rn(o),An(c),h&&n("link",{rel:"canonical",href:h}),s&&n("script",{type:"application/ld+json",children:s}),a]})}));function Rn(e){return e?Object.entries(e).map((([e,t])=>n("meta",{property:`og:${e}`,content:t},e))):null}function An(e){return e?Object.entries(e).map((([e,t])=>n("meta",{name:`twitter:${e}`,content:t},e))):null}function Ln(e){const{mobile:t,...n}=e;return t?{...n,...t,content:{...n.content,...t.content}}:e}function Pn(e){return e?.filter((e=>(e?.type||e?.mobile?.type||"")in Nn&&!e.mobile?.hidden)).map(Ln)}e.Blocks=Nn,e.ContentPage=$n,e.ContentPageHead=Dn,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.Header=Ft,e.Icon=m,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(i)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(i,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a},body:JSON.stringify({node_ids:r})}),{likes:i}=await n.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:a,name:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:r,user_name:i})}),{likes:l}=await n.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:a,name:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:r,user_name:i})}),{likes:l}=await n.json();return l||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:Pn(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:Pn(n[t].blocks)}})),{})}},e.projectSettings=d,e.setup=t,e.url=M,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";const t=(e,n)=>{t._jsx=e,t._jsxs=n||e};t.vue=e=>{t(((t,{children:n,dangerouslySetInnerHTML:r,...a}={})=>{const i=Object.assign({},a,r?{innerHTML:r.__html}:{});return e(t,i,"string"!=typeof t?()=>n:n)}))};const n=(...e)=>t._jsx(...e),r=(...e)=>t._jsxs(...e),a=e=>(e._tmpl||(e._tmpl=function(t,n){const{children:r,...a}=t||{},i=n?.slots?.default,l=r||i&&i();return e(Object.assign(a,l&&{children:l}),n)},e._tmpl.inheritAttrs=!1),e._tmpl);const i="likesToken";const l={h1:"text-m-title",h2:"text-m-title",h3:"text-m-title-md",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},o=a((e=>{const{className:t,headingType:r,title:a,as:i}=e;if(!r)return;return n(i||r,{className:`font-sans font-medium m-0 ${l[r]} ${t||""}`,children:a})}));var c,s;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BurgerIcon="BurgerIcon",e.BurgerIconWhite="BurgerIconWhite",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.CalendarWhiteIcon="CalendarWhiteIcon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.ChartSquareIcon="ChartSquareIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EmptyWalletWhiteIcon="EmptyWalletWhiteIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.GridIconWhite="GridIconWhite",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LoupeIcon="LoupeIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PercentageSquareWhiteIcon="PercentageSquareWhiteIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon"}(c||(c={})),function(e){e.ActualBalanceIcon="Деньги",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка 'Влево'",e.ArrowsRewindRight="ArrowsRewindRight",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.BurgerIconWhite="Бургер (белый)",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.CalendarWhiteIcon="Календарь белый",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.ChartSquareIcon="Деньги внутри кошелька",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EmptyWalletWhiteIcon="Пустой кошелёк (белый)",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка",e.GridIconWhite="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LoupeIcon="Лупа",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PercentageSquareWhiteIcon="Проценты белые",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами"}(s||(s={}));const d=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};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}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ENABLE_ASSIST(){return this._.ENABLE_ASSIST}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}},m=a((({className:e="",name:t="",alt:a=`Иконка ${s[t]||t}`,title:i=a,asSVG:l,...o})=>{const c=`${d.CDN||""}icons/${t}.svg`;return l?r("svg",{className:e,...o,"aria-hidden":"true",children:[i?n("title",{children:i}):null,a?n("desc",{children:a}):null,n("use",{href:`${c}#icon`,xlinkHref:`${c}#icon`})]}):n("img",{className:e,src:c,alt:a,title:i,...o,"aria-hidden":"true"})})),h=a((({className:e="",image:t,imageClassName:r="",...a})=>{const i="string"==typeof t?t:t?.icon;return i||""===i?n(m,{className:e,name:i,...a}):n(u,{className:e,imageClassName:r,image:t})})),u=a((({className:e="",image:t,imageClassName:a=""})=>t?r("picture",{className:e,children:[t?.sources?.length?t.sources.map((({src:e,format:t},r)=>n("source",{srcSet:e,type:x(t)},`${r}_${e}`))):null,p(t,a)]}):null)),p=(e,t="")=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",i=e.alt||e.title;return n("img",{src:e.src,className:`m-auto ${t}`,alt:i,title:a,style:r,...e.size})};function x(e){return e?`image/${String(e)}`:void 0}const g={left:"text-left",center:"text-center",right:"text-right"},b={transparent:{background:"bg-transparent",text:"text-primary-text",description:"text-primary-text"},primary:{background:"bg-white",text:"text-primary-text",description:"text-primary-text"},secondary:{background:"bg-primary-main",text:"text-white",description:"text-white/80"}},f=a((({bgColorHeadline:e="transparent",className:t="",title:a,description:i,image:l,align:c="left"})=>{const s=b[e];return r("section",{className:`px-4 py-6 ${s.background} ${t}`,children:[a&&n(o,{headingType:"h2",className:`${s.text} ${g[c]}`,title:a}),i&&n("p",{className:`font-normal text-m-md ${s.description} ${g[c]} ${a?"mt-2.5":""}`,children:i}),l?.src&&n("div",{className:"mt-5 mx-auto flex justify-center",children:n(h,{image:l})})]})})),y=a((({children:e,activeIndex:t,indexFraction:r,showDots:a})=>{const i=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return a&&e?.length?n("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,a)=>n("div",{onClick:i(a),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:N(a,t,r),"aria-hidden":!0},String(a))))}):null})),N=(e,t,n)=>{if(e<t||e>t+1)return null;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},v=a((({className:e="",children:t,...r})=>n("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...r,children:t}))),w=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),I=a((({className:e="",children:t,activeIndex:r,onScroll:a,gap:i=14,padding:l=16})=>n("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...w(l),gap:`${i}px`},role:"list",onScroll:a,children:t?.length?t?.map(((e,t)=>n(v,{style:w(l/4),"aria-current":Boolean(r===t),children:e},String(t)))):n(v,{children:t})}))),k=a((({className:e,context:t,children:a,gap:i=14,padding:l=16,showDots:o=!0,onSlideChange:c})=>{const[s,d]=t.useState(0),[m,h]=t.useState(0),u={activeIndex:s,indexFraction:m,showDots:o,children:a};return r("div",{className:e,children:[n(I,{gap:i,padding:l,activeIndex:s,onScroll:e=>{const{scrollLeft:t,clientWidth:n,childElementCount:r,scrollWidth:a,children:o}=e.currentTarget,m=o[0].offsetWidth-l/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:a,itemWidth:i})=>{const l=r-n;if(2===a)return[[0,l],[l,r]];const o=i+e,c=n-e-t,s=a-2,d=new Array(a).fill(0).map(((e,t)=>0===t||t===s?[t>0?l-c:0,t>0?l:c]:[(t-1)*o+c,t*o+c]));return d[a-1]=[l,r],d})({gap:i,padding:l,clientWidth:n,scrollWidth:a,childElementCount:r,itemWidth:m}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,a]=t[n];return{index:n,fraction:(e-r)/(a-r)}})(t,u);p!==s&&c&&c(),d(p),h(x)},children:a}),n(y,{...u})]})})),C=a((({className:e,iconClassName:t,textClassName:a,suffixClassName:i,doc:l,icon:o})=>{const{text:c,fileSize:s,...d}=l;return r("a",{className:e,role:"link",...d,children:[o?n(h,{className:t,image:o,width:"24px",height:"24px",asSVG:!0}):null,c?r("span",{className:a,children:[c,n("span",{className:i,children:d?.href&&$(S(d.href),s)})]}):null]})})),$=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),S=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},T=a((({className:e="",doc:t,icon:r})=>n(C,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:r}))),D=a((({context:e,hasBorder:t=!0,documents:r,icon:a})=>n(k,{context:e,className:"text-m-sm text-primary-main",children:r?.length?r.map(((e,r)=>n(T,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:a},String(r)))):null}))),R=a((({hasBorder:e=!0,documents:t,icon:r})=>n("div",{className:"text-m-sm text-primary-main flex flex-col "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,a)=>n("div",{role:"listitem",children:n(T,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:r})},String(a)))):null}))),A=a((({className:e="",context:t,title:a,subtitle:i,icon:l={icon:"DocIconMonoColor"},documents:c,orientation:s="vertical",hasBorder:d=!0})=>r("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[a?n(o,{headingType:"h2",className:"text-center "+(i?"mb-2":"mb-5"),title:a}):null,i?n("h3",{className:"mt-0 font-normal mb-5 text-center text-m-md",children:i}):null,"vertical"===s?n(R,{hasBorder:d,documents:c,icon:l}):n(D,{context:t,hasBorder:d,documents:c,icon:l})]}))),L=e=>e?.includes("//"),P=e=>(e||"").replace(/\/?\?.*/,""),W=e=>{if(!e||!L(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var M=Object.freeze({__proto__:null,isURL:L,withoutQuery:P,getOrigin:W,getHash:e=>{if(!e||!L(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0}});const j="/mobile",B=(e,t)=>{if(!e)return e;const n=W(t?.href);return n?e.replace(n,"")||"/":e},G=e=>e;function V({router:e,handlerDecorator:t=G},n){const r=((e,t)=>{if(!e)return e;const n=B(e,t)||"",r=t?.pathname.startsWith(j);return r&&!L(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const a=r&&!L(r),i=!n.target||"_self"===n.target;a&&i&&(t.preventDefault(),e.push(r))}),n)}}const _=a((e=>{const{text:t,aboveText:a,appendLeft:i}=e;return r("div",{className:E(e),children:[i||null,O(e)?r("div",{children:[n("div",{className:"text-m-2xs font-light text-left",children:a}),n("div",{className:"text-button text-left",children:t})]}):null]})})),E=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const a="px-8 gap-2 "+(n?"py-2":"py-[18px]");return["flex items-center justify-center",O(e)?a:"h-12 w-12",r?"rounded-full":""].join(" ")},O=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),F={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-secondary-light hover:bg-secondary-hover active:bg-secondary-active",link:"text-primary-main"},H={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},U="w-full text-center font-sans select-none",z=a((({className:e,text:t,aboveText:r,appendLeft:a,href:i,target:l,onClick:o,children:c,disabled:s,rounded:d,version:m="primary",ariaLabel:h,...u})=>{const p=c??n(_,{text:t,aboveText:r,appendLeft:a,rounded:d,version:m});return s?n("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:"-1",className:`inline-block ${U} ${H[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,children:p}):n("a",{className:`${U} inline-block cursor-pointer no-underline ${F[m]||""} ${d?"rounded-full":"rounded-md"} ${e||""}`,href:i,target:l,onClick:o,"aria-label":h,role:i?"link":"button",...u,children:p})})),Z=a((({context:e,className:t="",buttons:r})=>{const{handlerDecorator:a}=e,i=e.useRouter();return r?.length?n("div",{className:`${t}`,children:r.map(((e,t)=>function({icon:e,...t},r){if(!t?.text)return;return n(z,e?{appendLeft:n(h,{image:e,width:"24",height:"24",asSVG:!0}),...t}:{...t},String(r))}(V({router:i,handlerDecorator:a},e),t)))}):null}));const J=a((e=>{const{className:t="",description:r}=e;return n("div",{className:`font-normal text-base ${t}`,children:r})})),q={primary:"rounded-full inline-block mr-3 mt-2",secondary:"rounded-full inline-block mr-3 mt-2",gray:"rounded-full inline-block mr-3 mt-2",tile:"rounded-full inline-block mr-4","tile-white":"rounded-full inline-block mr-4"},K={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},Q=a((({className:e="",isDotted:t=!0,children:a,version:i="primary"})=>r("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t&&n("div",{className:Y(i)}),n("span",{children:a})]}))),Y=e=>`${q[e]} ${K[e]} ${{primary:"w-2 h-2 min-w-2 min-h-2",secondary:"w-2 h-2 min-w-2 min-h-2",gray:"w-1.5 h-1.5 min-w-1.5 min-h-1.5",tile:"w-[7px] h-[7px] min-w-[7px] min-h-[7px]","tile-white":"w-[7px] h-[7px] min-w-[7px] min-h-[7px]"}[e]}`,X={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},ee=a((e=>{const{className:t="",itemClassName:r,isDotted:a,items:i,version:l="primary"}=e;return n("section",{className:`${X[l]} ${t}`,role:"list",children:i?.length?i.map(((e,t)=>n(Q,{className:r,isDotted:a,version:l,children:e},String(t)))):null})})),te=a((({className:e="",title:t,children:a,buttons:i,image:l,anchor:o=null})=>r("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,id:o,children:[t,r("div",{className:"flex grow w-full justify-between",children:[r("div",{className:"flex flex-col justify-between w-full",children:[n("div",{children:a}),i?n("div",{children:i}):null]}),l]})]}))),ne={primary:"text-primary-text",secondary:"text-white"},re={primary:"text-secondary-text",secondary:"text-white"};const ae=a((({className:e="",context:t,title:a,headingType:i="h2",description:l,benefits:c,buttons:s,image:d,items:m,version:u="primary",isDotted:p=!0,label:x})=>r("div",{className:`w-full ${e}`,children:[r("div",{children:[x?oe(x,u):null,r(te,{context:t,title:a&&n(o,{headingType:i,title:a,className:"whitespace-pre-wrap max-w-[600px]"}),buttons:s?.length?n(Z,{context:t,buttons:s,className:"flex flex-col mt-5 gap-2.5"}):null,children:[l?n(J,{className:"mt-3 text-m-md",description:l}):null,c?.filter((e=>e.label))?.length?n("div",{className:"mt-3",children:c.map(((e,t)=>function(e,t,a){return r("div",{className:"flex gap-3 items-center mb-2.5 last:mb-0",children:[e.icon?n(h,{className:"w-6 h-6 rounded-full box-border",image:e.icon,width:"24",height:"24",asSVG:!0}):null,n("div",{className:`font-medium text-m-title-xs m-0 ${ne[a]}`,children:e.label}),e.description&&n("div",{className:`font-normal text-m-sm ${re[a]}`,children:e.description})]},String(t))}(e,t,u)))}):null,m?.length?n(ee,{className:"mt-3 text-m-md",items:m,version:u,isDotted:p}):null]})]}),ie(d)]})));function ie(e){return e?.src?n(h,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const le={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},oe=(e,t)=>n("div",{className:`m-xs px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${le[t]}`,children:e}),ce={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},se=a((e=>{const{className:t="",version:r="primary"}=e;return n("section",{className:`font-sans bg-white px-4 py-6 ${ce[r]} ${t}`,children:n(ae,{...e})})})),de={primary:{background:"bg-white",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"},secondary:{background:"bg-primary-main",icon:"bg-white text-primary-main",title:"text-white",description:"text-white"},"secondary-light":{background:"bg-primary-main/10",icon:"bg-primary-main text-white",title:"text-primary-text",description:"text-secondary-text"}},me=a((({title:e,description:t,blockVersion:a="primary",iconVersion:i,image:l,className:o="",items:c,isDotted:s=!0})=>{const d=de[a];return r("section",{className:`font-sans px-4 py-[18px] flex flex-col ${d.background} ${o}`,children:["small"===i?he(d.icon):null,"big"===i?ue(l):null,r("div",{className:"py-0.5",children:[e?n("div",{className:`font-medium text-base mb-1 ${d.title}`,children:e}):null,t?n("div",{className:`text-sm ${d.description}`,children:t}):null,c?.length?n(ee,{className:"mt-1 text-m-md",items:c,isDotted:s,version:"secondary"===a?"secondary":"gray"}):null]})]})}));function he(e){return n("div",{className:"mb-3",children:n("div",{className:`rounded-full h-4 w-4 text-center text-xs ${e}`,children:"i"})})}function ue(e){return e?.src?n(h,{className:"pb-3 mr-auto",image:e}):null}const pe={primary:"bg-white",secondary:"bg-primary-main text-white"},xe=a((({context:e,title:t,description:a,cards:i=[],className:l,orientation:c="horizontal"})=>r("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${l}`,children:[r("div",{className:"flex flex-col items-center mb-5",children:[t?n(o,{headingType:"h3",className:"text-center "+(a?"mb-2":"mb-5"),title:t}):null,a?n("div",{className:"font-normal text-m-md max-w-[600px] text-center mb-5",children:a}):null]}),ge(c,i,e)]})));function ge(e,t,r){return"horizontal"===e?n(k,{context:r,children:t?.map(be)}):n("div",{className:"grid gap-[14px]",children:t?.map(be)})}function be(e,t){return r("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${pe[e.version??"primary"]}`,children:[r("div",{children:[e.image?.src?n("div",{className:"flex justify-center",children:n(h,{className:"mb-3.5",image:e.image})}):null,e.title?n("h3",{className:"font-medium text-m-title-xs m-0",children:e.title}):null,e.description?fe(e):null,e.items?.length?ye(e.items,e.version):null]}),e?.button?.text?(a=e.button,n(z,{className:"mt-3",appendLeft:a?.icon&&n(h,{image:a?.icon,width:"24px",height:"24px",asSVG:!0}),...a})):null]},t);var a}function fe(e){return n("div",{className:"text-secondary-text mt-1 text-m-sm "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function ye(e,t="primary"){return n("section",{className:"mt-3",children:e.map(((e,a)=>r("div",{children:[n("span",{className:"text-m-md font-medium",children:e.title}),n("span",{className:"text-m-sm pl-2 "+("primary"===t?"text-secondary-text":""),children:e.text})]},String(a))))})}const Ne=a((({className:e="",documents:t,anchor:r=null})=>n("section",{className:`font-sans bg-white mt-[10px] ${e}`,id:r,children:n("ul",{className:"flex flex-col text-sm text-secondary-text p-0",children:t?.length?ve(t):null})}))),ve=e=>e.map(((e,t)=>{const{text:r,...a}=e;return n("li",{className:"mb-4 list-none",children:n("a",{className:"hover:text-primary-main",role:"link",...a,children:r||null})},`list_item_${String(t)}`)})),we={Headline:f,LinkDocs:A,TextBlock:me,ProductBlock:se,Gallery:xe,LinkList:Ne},Ie=({blocks:e,context:t,className:n,columns:r})=>e?.length?e.map(ke({context:t,className:n,columns:r})):null,ke=({context:e,columns:t,className:r})=>(a,i)=>{const l=a?.blockListType;if(!l||!(l in we))return null;return n("div",{className:`${r} ${2===t?"w-1/2":""}`,children:n(we[l],{context:e,...a,className:"!p-0"})},`block_${i}`)},Ce=a((({blocks:e,context:t})=>n("div",{className:"transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:Ie({context:t,className:"mb-5 last:mb-0 first:mt-2",blocks:e})}))),$e=a((({label:e,labelIcon:t,blocks:a,bordered:i,context:l})=>{const{hasContent:o,icon:c,handleToggle:s}=(({context:e,blocks:t,initialState:n=!1})=>{const[r,a]=e.useState(n),i=t?.length;return{isActive:r,hasContent:i,icon:r?"MinusIcon":"PlusIcon",handleToggle:e=>{if(!i)return;a(!r);const t=(({currentTarget:e})=>e.nextSibling)(e);t.style.maxHeight=t.style.maxHeight?null:`${t.scrollHeight}px`}}})({context:l,blocks:a});return r("li",{className:`${Se(i)} border-solid border-main-divider`,children:[r("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${i?"":"py-[14px] px-0"}\n ${o?"group cursor-pointer":""}`,onClick:s,children:[r("span",{className:"text-m-title-xs pr-2.5 font-medium flex "+(o?"group-hover:text-primary-main":""),children:[t?n(h,{image:t,width:"24",height:"24",asSVG:!0,className:"mr-3"}):null,e]}),o?n(h,{image:c,width:"24",height:"24",asSVG:!0}):null]}),o?n(Ce,{blocks:a,context:l}):null]})}));function Se(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const Te=a((({title:e,description:t,accordionItems:a,context:i,className:l="",bordered:c})=>r("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${l}`,children:[e?n(o,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?n("div",{className:"mb-5 text-m-md text-center",children:t}):null,a?.length?n("ul",{className:"list-none m-0 p-0",children:a.map(((e,t)=>n($e,{...e,context:i,bordered:c},`AccordionItem${t}`)))}):null]}))),De=a((({icon:e,image:t,title:a,subtitle:i,isFillGradient:l})=>r("div",{role:"columnheader",scope:"col",children:[e?n(h,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&n("div",{className:"mb-3.5",children:n(h,{image:t})}),a&&n(o,{headingType:"h4",className:""+(l?"text-white":""),title:a}),i&&n("div",{className:"text-m-sm mb-3.5 "+(l?"text-white":"text-secondary-text/80"),children:i})]}))),Re=a((({cell:e,rowHeader:t,isFillGradient:r=!1})=>n("div",{className:"box-border flex flex-col",role:"cell",children:n("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Ae(r,t))})}))),Ae=(e,t)=>({label:a,description:i},l)=>r("div",{className:"flex justify-between text-m-sm py-3.5",children:[n("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),r("div",{className:"basis-1/2",children:[a&&n("div",{className:"text-right "+(e?"text-white":""),children:a}),i&&n("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:i})]})]},String(l)),Le=a((({header:e,columnData:t,visibleRowLength:a=0,isFillGradient:i,showRow:l,onToggleColumn:o})=>{const c=t?.slice(0,l?t.length:a),s=i?"secondary":"primary";return r("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${i?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[n(De,{...e,isFillGradient:i}),c?.length?c.map((({rowHeader:e,cell:t},r)=>n(Re,{cell:t,rowHeader:e,isFillGradient:i},String(r)))):null,l&&Pe({header:e,buttonVersion:s}),We({onToggleColumn:o,isFillGradient:i,showRow:l})]})})),Pe=({header:e,buttonVersion:t})=>n(z,{href:e.link.href,target:e.link.target,version:t,className:"font-medium text-m-sm mt-4 py-[11px]",children:e.link.text}),We=({onToggleColumn:e,isFillGradient:t,showRow:r})=>n("div",{className:"mt-5",role:"cell",children:n("a",{role:"link",onClick:e,className:"font-medium text-m-sm cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:r?"Скрыть":"Показать описание"})}),Me=a((({className:e,context:t,title:a,rowHeaders:i,columns:l,visibleRowLength:c=0,isColoredFirstColumn:s=!1,orientation:d="vertical"})=>{const m=l?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:i?.[t]?.title})))})))||[],[h,u]=t.useState(new Array(l?.length).fill(!c));return r("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[a&&n(o,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:a}),je({tableData:m,context:t,visibleRowLength:c,isColoredFirstColumn:s,columnsViewState:h,handleToggleColumn:e=>{h[e]=!h[e],u([...h])},orientation:d,setColumnsViewState:u})]})})),je=({context:e,tableData:t,visibleRowLength:r,isColoredFirstColumn:a,columnsViewState:i,handleToggleColumn:l,orientation:o="horizontal",setColumnsViewState:c})=>n("div",{role:"table",children:t?.length?Be({orientation:o,context:e,columnsViewState:i,setColumnsViewState:c,tableData:t,visibleRowLength:r,isColoredFirstColumn:a,handleToggleColumn:l}):null}),Be=({orientation:e,context:t,columnsViewState:r,setColumnsViewState:a,tableData:i,visibleRowLength:l,isColoredFirstColumn:o,handleToggleColumn:c})=>"horizontal"===e?n(k,{context:t,onSlideChange:Ve(r,a),children:i.map(Ge({context:t,visibleRowLength:l,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c}))}):i.map(Ge({context:t,visibleRowLength:l,isColoredFirstColumn:o,columnsViewState:r,handleToggleColumn:c})),Ge=({context:e,visibleRowLength:t,isColoredFirstColumn:r,columnsViewState:a,handleToggleColumn:i})=>(l,o)=>n(Le,{context:e,visibleRowLength:t,showRow:a[o],header:l.header,columnData:l.column,isFillGradient:0===o&&r,onToggleColumn:()=>i(o)},String(o)),Ve=(e,t)=>()=>{t(new Array(e.length).fill(!1))};async function _e(){try{const e=await fetch(Ee);return await e.json()}catch(e){console.error(e)}}const Ee="/api/v1/exchangerates.json",Oe=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Fe(e=""){const t=Oe(e);return t<=4?"h4":t<=8?"h3":"h2"}const He=new Intl.NumberFormat("ru",{style:"currency",currency:"RUB"}),Ue=e=>e?He.format(e):"",ze="font-light text-left font-normal text-sm text-secondary-text",Ze={USD:"DollarIcon",EUR:"EuroIcon"},Je=a((({className:e,exchangeCurrencyItems:t})=>r("table",{className:`h-fit w-fit ${e}`,children:[n("thead",{children:r("tr",{children:[n("th",{className:ze,children:"Валюта"}),n("th",{className:`${ze} pl-11`,children:"Купить"}),n("th",{className:`${ze} pl-11`,children:"Продать"})]})}),n("tbody",{children:t.map((e=>qe(e)))})]}))),qe=e=>{const t=e?.currency?.currency;return r("tr",{className:"pb-1",children:[n("td",{className:"pt-4",children:r("div",{className:"flex items-center",children:[t?n(h,{image:{icon:Ze[t]},width:"24",height:"24"}):null,n("span",{className:"text-m-title-md ml-2",children:t})]})}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:Ue(e.buyExchangeRate)}),n("td",{className:"pt-4 pl-11 m-title-md font-light",children:Ue(e.saleExchangeRate)})]},t)},Ke=a((({className:e="",address:t,distance:a})=>r("div",{className:`flex text-sm ${e}`,children:[n(h,{className:"min-w-fit",image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),r("div",{className:"ml-3 font-light",children:[t?n("p",{className:"m-0 mb-[3px]",children:t}):null,a?r("p",{className:"text-secondary-text m-0",children:["Курс указан для ближайшего офиса - ",a]}):null]})]}))),Qe=a((({className:e="",id:t,name:r,type:a="text",placeholder:i})=>n("input",{className:e,id:t,name:r||t,type:a,placeholder:i}))),Ye=a((({className:e="",id:t,name:r,children:a})=>n("select",{className:e,id:t,name:r||t,children:a}))),Xe=a((({className:e="",value:t,children:r})=>n("option",{className:e,value:`${t}`,children:r}))),et=a((({codes:e,className:t=""})=>r("div",{className:`grid gap-3.5 ${t}`,children:[tt("Хочу продать",e),tt("Получу",e),n(z,{className:"box-border mt-3.5 py-3 h-12 w-full",version:"primary",href:"#",children:"Купить валюту"})]})));function tt(e,t){return r("div",{className:"relative flex items-center",children:[n(Qe,{className:"h-10 border pl-4 pt-[7px] pb-[7px] rounded-md text-m-sm w-full appearance-none -mr-12",type:"number",placeholder:`${e}`}),t.length?n(Ye,{className:"h-9 -translate-x-4",children:t.map(((e,t)=>n(Xe,{value:e,children:e},String(t))))}):null]})}const nt=["USD","EUR"],rt=["RUB","USD","EUR"],at=[{buyExchangeRate:90.6,saleExchangeRate:92.8,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:73.75,saleExchangeRate:75.95,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],it={address:"Москва, ул.Ленина д.28",distance:"6км"},lt=a((({className:e="",context:t,title:a="Курсы обмена валют",anchor:i=null})=>{const l=function(e){const{data:t}=e(Ee,_e);return t||{}}(t.useAsyncData)?.exchangeRate?.currencies?.filter((e=>-1!==nt.indexOf(e?.currency?.currency||"")))||at;return n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,id:i,children:n(te,{context:t,title:n(o,{headingType:Fe(e),title:a,className:"whitespace-pre-wrap"}),children:r("div",{className:"flex",children:[r("div",{className:"mr-[43px] pt-4",children:[l?n(Je,{className:"mb-[31px]",exchangeCurrencyItems:l}):null,n(Ke,{...it})]}),l?.length?n(et,{className:"grow",exchangeCurrencyItems:l,codes:rt}):null]})})})})),ot=a((({className:e,viewBox:t,fill:r="none",width:a,height:i,paths:l,...o})=>n("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:r,width:a,height:i,children:l.map((({d:e,fill:t,...r},a)=>n("path",{d:e,fill:t||"currentColor",...o,...r},a)))}))),ct=["m13.72 25.51 4.42-4.33v-2.95l-4.42 4.32v2.96Zm0-10.98 4.42-4.35V7.41l-4.42 4.31v2.8Zm0 3.63 4.42-4.33v-2.78l-4.42 4.32v2.8ZM12.46 7.44l-.6-.56V0h-.66v6.22l-.58-.57V0h-.67v5l-.59-.58V0H8.7v6.56l4.44 4.33V0h-.67v7.44Zm1.26 14.35 4.42-4.33v-2.78L13.72 19v2.8Zm-5.03-.61 4.44 4.33v-2.96l-4.44-4.32v2.95Zm8.79-16.76-.59.58V0h-.66v5.66l-.6.56V0h-.66v6.87l-.58.57V0h-.67v10.9l4.42-4.34V0h-.66v4.42Zm-8.79 5.76 4.44 4.35v-2.8L8.69 7.4v2.77Zm0 3.65 4.44 4.33v-2.8l-4.44-4.3v2.77Zm0 3.63 4.44 4.33V19l-4.44-4.31v2.78Zm26.37 2.29H24.3a2.25 2.25 0 0 0 .36-1.22 2.32 2.32 0 0 0-2.33-2.31 2.32 2.32 0 0 0-2.31 2.31c0 .5.16.96.43 1.34a.74.74 0 0 0-.33.61c0 .26.14.49.33.62a2.32 2.32 0 0 0-.43 1.34 2.31 2.31 0 0 0 2.31 2.31 2.32 2.32 0 0 0 2.33-2.31c0-.45-.13-.87-.36-1.22h8.01v.49h-.8v.68h.8v.7h-.8v1.3h.8v-.58h1.17v.58h.79v-1.3h-.79v-.7h.79v-.68h-.79v-.5h1.58a.56.56 0 0 0 .56-.56v-.34a.57.57 0 0 0-.56-.56Zm-11.53 2.7a1.2 1.2 0 0 1-2.4 0c0-.24.08-.47.2-.66l.34-.56a.97.97 0 0 1-.34-.75c0-.3.13-.56.33-.74l-.32-.56a1.13 1.13 0 0 1-.2-.66 1.2 1.2 0 0 1 2.4 0c0 .49-.56 1.65-.56 1.65v.62c-.01.01.55 1.17.55 1.66ZM4.67 18.34v2.89c0 2.75 1.2 4.53 1.9 5.21l4.58 4.5c1.28 1.25 1.5 1.66 1.79 2.37v-3.2c0-2.84-1.44-3.94-2.19-4.67-1.73-1.68-2.89-2.8-3.82-3.73a8.98 8.98 0 0 1-2.26-3.37Zm6.08 14.24c-1.73-1.7-2.89-2.8-3.82-3.73a10 10 0 0 1-2.25-2.98v2.49a7.87 7.87 0 0 0 1.89 5.24l4.58 4.47c1.28 1.25 1.5 1.85 1.79 2.55v-3.37c0-2.85-1.45-3.95-2.19-4.67Z","M19.88 5.34c-.32 0-.64 0-.96.02V6.7a18.5 18.5 0 1 1 .95 36.94A18.5 18.5 0 0 1 1.35 25.17c0-5.67 2.55-10.73 6.58-14.13V9.32A19.78 19.78 0 0 0 0 25.17C0 36.12 8.9 45 19.88 45a19.85 19.85 0 0 0 19.86-19.83c0-10.95-8.9-19.83-19.87-19.83Z","M33.93 35.53c.3-.41.6-.85.87-1.3v-2.66h-.87v3.96Zm2.54-4.92c.12-.4.24-.78.34-1.16h-2.88v.7h.43c.77-.02 1.63-.03 2.11.46Zm-19.19-1.27h-.78v7.91h.78v-7.9Z","M14.7 27.83h2.58c.67 0 1.14.14 1.4.4.27.25.4.72.4 1.38v7.4c0 .66-.12 1.12-.4 1.38-.4.41-1.16.41-1.78.41l-.4-.01v3.5l.78.14v-2.88c1.2 0 1.97-.4 2.34-1.22v4.29h.26l.5-.01V29.74c0-.68.13-1.16.4-1.43.25-.27.72-.4 1.37-.4.67 0 1.65-.1 2.16.4.26.27.38.76.38 1.43v3.8h-1.77v-4.06h-.77v12.99c.26-.03.5-.07.77-.12V34.3h1.77v7.64c.36-.1.72-.21 1.08-.34v-7c0-.8.19-1.4 1-1.67l-.9-4.87h1.8l.3 5.31h.22l.3-5.31h1.88l-1.01 4.87c.84.3 1.01.81 1.01 1.66v4.53a16.63 16.63 0 0 0 1.5-1.27v-9.83h5.25l.1-.72H24.93l.17.89c-.38-.72-1.12-1.08-2.2-1.08h-.77c-1.3 0-2.1.52-2.4 1.55-.27-1.08-1.1-1.62-2.46-1.62h-3.36v14.52c.26.09.52.18.78.25V27.84Zm16.29 5.58-.85-.8.85-4.37v5.17Z","M27.66 40.79c.27-.14.55-.28.8-.43v-5.98h-.8v6.4Z"],st={"bg-white":"text-primary-main",transparent:"text-white"},dt={"bg-white":"text-black",transparent:"text-white"},mt=a((({className:e="",href:t,children:a,targetBlank:i,bgColor:l="bg-white",hideTitle:o})=>r("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":"Россельхозбанк",children:[n(ot,{className:`${st[l]} w-10 h-[38px]`,viewBox:"0 0 40 45",paths:ct.map((e=>({d:e})))}),!o&&n("span",{className:`${dt[l]} text-sm font-medium ml-2.5`,children:a||"Россельхозбанк"})]}))),ht=a((({className:e,title:t="Мобильное приложение",description:a,href:i="#"})=>n("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light ${e||""}`,children:i?r("div",{className:"flex",children:[n("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:n(mt,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),r("a",{href:i,target:"_blank",className:"flex flex-col justify-center pl-3 font-sans",children:[n("div",{className:"text-m-button font-medium mb-[3px]",children:t}),n("div",{className:"text-m-button text-secondary-text",children:a})]})]}):null}))),ut=a((({className:e="",items:t,hasButton:a,context:i})=>{const l=i.useRouter(),{handlerDecorator:o}=i;return r("div",{className:e,children:[t?.length?t.map(pt):null,a?n(z,{version:"primary",className:"mb-6 w-full",...V({router:l,handlerDecorator:o},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),pt=(e,t)=>{const{type:a,text:i,description:l}=e;return r("div",{className:"mb-4",children:[n("div",{children:xt(a,i)}),n("div",{className:"mt-1 font-sans font-light text-sm text-secondary-text",children:l})]},String(t))},xt=(e,t="")=>{switch(e){case"tel":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`tel:${gt(t)}`,children:t});case"email":return n("a",{className:"font-sans text-xl text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return n("span",{children:t})}},gt=e=>e.replaceAll(/\D/g,""),bt=a((({title:e,links:t,className:a="",context:i})=>{const l=i.useRouter(),{handlerDecorator:o}=i;return r("div",{className:a,children:[n("span",{className:"text-primary-text font-sans font-medium text-sm",children:e}),t?.length?n("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>n(ft,{index:t,...V({router:l,handlerDecorator:o},e)},String(t))))}):null]})})),ft=a((({className:e="",index:t,text:r,href:a,target:i,onClick:l})=>n("a",{className:`font-sans font-normal text-sm text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:i,onClick:l,children:r||`Документ ${t}`}))),yt=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм",width:"20px",height:"16px"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте",width:"24px",height:"12px"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники",width:"12px",height:"20px"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store",width:"20px",height:"22px"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play",width:"21px",height:"21px"}],Nt=a((({href:e,version:t})=>{const{icon:r,width:a,height:i,label:l}=yt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!r)return null;return n("a",{className:` flex items-center justify-center border border-solid rounded-md border-main-divider no-underline outline-none w-14 h-14 box-border ${"secondary"===t?"text-white hover:text-primary-main hover:bg-white":"text-primary-main hover:text-white hover:bg-primary-main hover:border-primary-main"}`,href:e,"aria-label":l,target:"_blank",rel:"noopener noreferrer",children:r?n(h,{image:r,width:a,height:i,asSVG:!0,className:"block"}):null})})),vt=a((({className:e,media:t,version:r,context:a})=>{const i=a.useRouter(),{handlerDecorator:l}=a;return n("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>n(Nt,{version:r,...V({router:i,handlerDecorator:l},e)},String(t))))})})),wt=a((({className:e,links:t,context:a})=>{const i=a.useRouter(),{handlerDecorator:l}=a;return r("div",{className:`${e||""}`,children:[n("div",{className:"py-6",children:n("span",{className:"font-sans font-normal text-xs text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?n("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>n(It,{index:t,...V({router:i,handlerDecorator:l},e)},String(t))))}):null]})})),It=a((({className:e,index:t,text:r,href:a,target:i,onClick:l})=>n("a",{className:`font-sans font-normal text-xs text-secondary-text visited:text-secondary-text hover:text-primary-text inline-block no-underline max-w-[292px] ${e||""}`,href:a,target:i,onClick:l,children:r||`Документ ${t}`})));function kt(e){const{data:t}=e($t(),Ct);return t||{}}async function Ct(){const e=await fetch($t());return await e.json()}function $t(){return`/wcms-resources/${d.SITEMAP||"sitemap"}.json`}const St=a((({className:e,context:t})=>{const{term:a,setTerm:i}=t.useSearch();return r("form",{className:`relative ${e||""}`,children:[r("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[n("div",{className:"w-[20px] h-[20px]",children:n(h,{image:"LoupeIcon",width:"24",height:"24"})}),!a&&n("label",{htmlFor:"search-bar-input",className:"font-sans font-normal text-sm text-secondary-text",children:"Поиск по сайту"})]}),n("input",{id:"search-bar-input",className:"h-12 pl-12 w-full peer placeholder-transparent font-sans font-normal text-base text-black border border-solid rounded box-border outline-none pr-[6%] border-main-divider focus:border-primary-text",value:a,onChange:e=>i(e.target.value),type:"text",name:"search-bar-input",placeholder:"some search"}),n("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),i("")},children:n(h,{image:"CloseIcon",width:"24",height:"24"})})]})})),Tt=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),Dt=a((({className:e="",documents:t,relatedEnterprises:a,contacts:i,socialMedia:l,context:o,horizontalNavigationTitle:c})=>{const s=kt(o.useAsyncData),d=s?.dispositions;return r("footer",{className:`px-4 py-[26px] bg-white ${e}`,children:[n(ut,{className:"overflow-hidden",items:i,context:o,hasButton:!0}),n(Te,{context:o,className:"!p-0 mb-4",accordionItems:Tt(s.topItems)}),n("div",{children:d?.map(Rt)}),n(ht,{context:o,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),n(St,{context:o,className:"grow"}),n(vt,{className:"pb-4",media:l,context:o}),n(bt,{title:c,links:a,context:o}),n(wt,{links:t,context:o})]})})),Rt=(e,t)=>{const{icon:a,href:i,text:l}=e;return r(z,{version:"link",href:i,className:"flex text-sm mb-4",children:[a?n(h,{className:"pr-1",image:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-2.5 font-medium text-primary-text",children:l})]},`footer-${t}`)},At=(e,t,n=((e,t)=>t.startsWith(e)))=>n(P(e),(e=>(e||"").replace(j,""))(P(L(e)?t.href:t.pathname))),Lt=e=>t=>At(t.href,e),Pt=e=>t=>t.items?.some(Lt(e))||At(t.href,e)||((e,t)=>W(e)===W(t.href))(t.href,e),Wt=e=>t=>e?.href===t?.href,Mt=(e,t)=>{return(r=e,a=t,(r||[]).map((e=>a?.find(Wt(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Wt(e))))));var n,r,a},jt="absolute left-0 -bottom-3 w-full h-[2px]",Bt=a((({className:e,text:t,href:a,target:i,active:l,onClick:o,children:c,bgColor:s="bg-white"})=>r("a",{className:`relative inline-block bg-transparent text-center no-underline ${e||""}`,href:a,target:i,onClick:o,children:[n("span",{className:Gt(s,l),children:t||c}),l?n("div",{className:Vt(s,l)}):null]}))),Gt=(e,t)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans font-normal text-sm`},Vt=(e,t)=>t?`${"bg-white"===e?"bg-primary-main":e} ${jt}`:jt,_t=a((({context:e,burgerSubMenu:t,onClick:a,defaultLocation:i="",children:l})=>{const[o,c]=e.useGeolocation(i);return r("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[n("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:a,children:n(h,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),r("button",{onClick:c,className:"flex items-center text-sm text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[n(h,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),o]}),l,n("div",{className:"mb-7",children:t?.map(Et)}),n(St,{context:e,className:"grow"})]})})),Et=(e,t)=>{const{icon:a,href:i,text:l}=e;return r("a",{href:i,className:"flex text-sm mb-4 hover:text-primary-main",children:[a?n(h,{className:"text-primary-main pr-1",image:a,width:"24",height:"24",asSVG:!0}):null,n("span",{className:"pl-0.5 font-medium",children:l})]},`headerSubMenu-${t}`)},Ot=a((({onClick:e,bgColor:t})=>r("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[r("div",{className:"flex items-center",children:[n("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:n(h,{image:"bg-white"===t?"BurgerIcon":"BurgerIconWhite",className:"text-primary-text",width:"24",height:"24",asSVG:!0})}),n(mt,{bgColor:t})]}),n("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-sm border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Ft=a((({className:e="",defaultLocation:t,bgColor:a="bg-white",context:i,topItems:l})=>{const o=i.useRouter(),c=kt(i.useAsyncData),s=c?.dispositions,{handlerDecorator:d}=i,m=Mt(c.topItems,l).find(Pt(o))?.items,h=(e=>(t=[])=>{const n=t?.filter(Lt(e));var r;return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):null})(o)(m),[u,p]=i.useState(!1),x=()=>p(!u);return r("header",{className:`${a} ${e}`,children:[r("div",{className:"container px-4 py-0 box-border",children:[n(Ot,{onClick:x,bgColor:a}),n("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:n("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:m?.map(((e,t)=>Ht({...V({router:o,handlerDecorator:d},e),active:e===h,bgColor:a},t)))})})]}),u?n(_t,{context:i,onClick:x,burgerSubMenu:s,defaultLocation:t,children:n(Te,{context:i,accordionItems:Tt(c.topItems),className:"!p-0 mb-4"})}):null]})})),Ht=(e,t)=>n(Bt,{className:"mr-8 whitespace-nowrap text-sm",...e},String(t));function Ut(e=""){const t=Oe(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function zt(e=""){const t=Oe(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Zt=a((({className:e,context:t,title:a,description:i="Блок в разработке...",anchor:l=null})=>n("section",{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${zt(e)} ${Ut(e)} `,id:l,children:r(te,{context:t,title:a?n(o,{headingType:Fe(e),title:a,className:"whitespace-pre-wrap max-w-[600px]"}):null,children:[i?n(J,{className:"mt-4 max-w-[600px]",description:i}):null,n("figure",{className:"m-0 min-w-[600px]",children:Jt()})]})}))),Jt=(e=3)=>Kt(100,e).map((e=>Math.floor(e))).map(qt),qt=(e=100,t)=>n("div",{style:{width:`${e}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Kt=(e,t)=>[e].concat(t>0?Kt(e/1.618,t-1):[]),Qt={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Yt=a((({block:e,headingType:t,context:r,className:a=""})=>n("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${Qt[e?.version??"primary"]} ${a}`,children:n("div",{className:"flex grow",children:n(ae,{context:r,headingType:t||"h2",...e})})}))),Xt=a((({className:e,context:t,slides:r=[]})=>{const a=r.map((e=>e.productBlock));return n("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:n(k,{context:t,children:a.map(((e,r)=>n(Yt,{block:e,context:t},String(r))))})})})),en={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},tn={normal:"min-h-[70px]",small:"min-h-[50px]"},nn={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconBackground:"bg-secondary-light",iconConnector:"bg-secondary-light"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconBackground:"bg-white/30",iconConnector:"bg-white"}},rn=e=>nn[e],an=a((({className:e,title:t,description:a,steps:i,size:l="normal",version:c="primary"})=>{const s=rn(c);return r("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${s.background} ${s.title} ${e||""}`,children:[t&&n(o,{headingType:"h3",className:`text-center ${s.title}`,title:t}),a&&n("p",{className:`text-m-md text-center ${s.description} ${t&&"mt-2"}`,children:a}),i?.length?n("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:n("div",{className:"flex flex-col justify-between gap-x-[101px]",children:i.map(((e,t)=>ln({step:e,size:l,i:t,length:i.length,version:c})))})}):null]})})),ln=e=>{const{step:t,size:a,i:i,length:l,version:o}=e,c=l-1===i,s="normal"===a?"ml-[34px]":"ml-[24px]",d=rn(o);return n("div",{children:r("div",{className:"flex flex-row text-center relative",children:[r("div",{className:"overflow-hidden",children:[on(e),!c&&n("div",{className:`min-h-8 h-full w-[2px] ${d.iconConnector} ${s}`})]}),r("div",{className:`flex flex-col justify-center h-fit ${tn[a]}`,children:[t.label&&n("div",{className:"font-medium text-m-title-xs m-0 text-left",children:t.label}),t.description&&n("div",{className:`font-normal text-sm ${d.description} text-left ${t.label?"mt-1":""}`,children:t.description})]})]},String(i))},String(i))},on=e=>{const{step:t,size:r,i:a,version:i}=e,l=rn(i),o="normal"===r?"38":"27",c="normal"===r?"text-m-title":"text-m-title-xs";return n("div",{className:`${en[r]} ${l.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:n("span",{className:`font-medium flex self-center ${l.title} ${c}`,children:t.icon?.icon&&n(h,{image:t.icon,width:o,height:o,asSVG:!0})||a+1})})},cn=a((({title:e,icon:t})=>r("div",{className:"flex gap-2.5 mb-2",children:[e?n(o,{headingType:"h3",className:"font-medium",title:e}):null,t?n(h,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),sn=e=>e?.alt||e?.title||s[e?.icon?e.icon:""],dn=a((({header:e,data:t})=>r("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[n(cn,{...e}),t?.length?t.map(mn):null]}))),mn=({label:e,description:t,list:a,image:i,buttons:l},o)=>r("div",{children:[o>0&&n("div",{className:"border-main-divider border border-solid border-t-0 border-x-0 my-2"}),e?n("div",{className:"text-m-sm m-0",children:e}):null,t?n("div",{className:"text-m-sm text-secondary-text mt-[3px]",children:t}):null,a?.items?.length?hn(a):null,i&&n(h,{image:{...i,className:"m-0"}}),l?.length?un(l):null]},String(o)),hn=e=>n(ee,{className:"flex flex-col justify-between items-start text-m-sm",version:"gray",items:e.items,isDotted:e.isDotted??!0}),un=e=>n("div",{children:e.map((({icon:e,rounded:t,...r},a)=>n(z,{className:`mt-3 ${a>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:sn(e),rounded:t,appendLeft:e?n(h,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...r,"aria-label":e},String(a))))}),pn=a((({tiles:e})=>n("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>n(dn,{...e},String(t))))}))),xn=a((({tiles:e,context:t})=>n(k,{context:t,children:e.map(((e,t)=>n(dn,{...e},String(t))))}))),gn=a((({className:e,context:t,title:a,description:i,columns:l,rowHeaders:c,orientation:s="vertical"})=>{const d=fn(l),m=yn(c,d);return r("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[a?n(o,{headingType:"h2",className:"text-center "+(i?"mb-2":"mb-5"),title:a}):null,i?n("div",{className:"mb-5 text-center text-m-md",children:i}):null,m?.length?bn(s,m,t):null]})}));function bn(e,t,r){return"vertical"===e?n(pn,{tiles:t}):n(xn,{context:r,tiles:t})}const fn=e=>e?.[0].data?e[0].data:[],yn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Nn={Accordion:Te,ComparisonTable:Me,ExchangeRateTile:lt,Footer:Dt,Gallery:xe,Header:Ft,Headline:f,LinkDocs:A,LinkList:Ne,MobileAppTile:ht,ProductBlock:se,ProductGallery:Xt,StepsBlock:an,TariffsTable:gn,TextBlock:me,Placeholder:Zt},vn=a((({className:e,onClick:t,ariaLabel:r})=>n("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":r,children:wn()}))),wn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[n("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"}),n("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"})]})},In=a((({className:e,context:t,anchor:a=null})=>{const i=t.useLikeService();return r("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,id:a,children:[n(vn,{onClick:i.like,ariaLabel:"Поставить отметку «лайк»"}),n(vn,{onClick:i.dislike,className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),n("span",{className:"select-none",children:i.likeCount})]})})),kn=!("undefined"==typeof window||!window.document||!window.document.createElement),Cn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),$n=a((({className:e="",context:t,blocksRegistry:a,data:{style:i,blocks:l,slots:o={},likeControl:c,colorPalette:s="pc"},blockDecorator:d=Cn})=>{const{header:m}=o,h=t.useRouter();return kn&&globalThis.addEventListener("load",(()=>{const e=globalThis.document.querySelectorAll("section[id]");globalThis.document.addEventListener("scroll",(()=>((e,t)=>{t?.forEach((t=>{const n=globalThis.location?.hash;if(n===`#${t?.id}`)return;const r=t?.getBoundingClientRect();r&&r.top>0&&r.top<150&&e.replace(`#${t?.id}`)}))})(h,e)))})),r("section",{className:`relative ${Tn(i)} ${e}`,"data-theme":s,children:[m?.blocks?.length?n("div",{className:`${Tn(m?.style)}`,children:m.blocks.map(((e,n)=>Sn({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,l?.length?n("div",{className:"container grid grid-cols-12 gap-1",children:l.map(((e,n)=>Sn({block:e,blockDecorator:d,blocksRegistry:a,context:t},n)))}):null,c&&n("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:n(In,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")})]})}));function Sn({block:e,blockDecorator:t,blocksRegistry:r,context:a},i){const{type:l}=e;l&&l in r||console.warn(`No block with "${l}" is registered`);const o=r[l||"Placeholder"]||Zt;return t({blockClassName:`scroll-mt-12 ${Tn(e.style)}`,block:e,render:e=>{const{version:t,content:r,anchor:c}=e.block;return n(o,{className:e.blockClassName,version:t,context:a,anchor:c,...r},`${l}-${i}`)}},`block-${i}`)}function Tn(e){return e?e.join(" "):""}const Dn=a((({HeadComponent:e,data:t,children:a})=>{const{title:i,main:l,og:o,twitter:c,jsonLd:s}=t,{description:d,keywords:m,canonical:h,robots:u}=l||{};return r(e,{children:[n("title",{children:i}),n("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),d&&n("meta",{name:"description",content:d}),m&&n("meta",{name:"keywords",content:m.join(",")}),u&&n("meta",{name:"robots",content:u.join(",")}),Rn(o),An(c),h&&n("link",{rel:"canonical",href:h}),s&&n("script",{type:"application/ld+json",children:s}),a]})}));function Rn(e){return e?Object.entries(e).map((([e,t])=>n("meta",{property:`og:${e}`,content:t},e))):null}function An(e){return e?Object.entries(e).map((([e,t])=>n("meta",{name:`twitter:${e}`,content:t},e))):null}function Ln(e){const{mobile:t,...n}=e;return t?{...n,...t,content:{...n.content,...t.content}}:e}function Pn(e){return e?.filter((e=>(e?.type||e?.mobile?.type||"")in Nn&&!e.mobile?.hidden)).map(Ln)}e.Blocks=Nn,e.ContentPage=$n,e.ContentPageHead=Dn,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.Header=Ft,e.Icon=m,e.LikeAPI=function(e,t=""){async function n(){try{const e=JSON.parse(globalThis.localStorage.getItem(i)||"");if(e?.token)return e}catch(e){}try{const e=await fetch(`${t}/assist/v1/public/auth`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:n,name:r}=await e.json();return globalThis.localStorage.setItem(i,JSON.stringify({token:n,name:r})),{token:n,name:r}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...r){if(!r.length)return[];const{token:a}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a},body:JSON.stringify({node_ids:r})}),{likes:i}=await n.json();return i||[]}catch(e){return console.error(e),[]}},like:async function(r){if(!r)return 0;const{token:a,name:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:r,user_name:i})}),{likes:l}=await n.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(r){if(!r)return 0;const{token:a,name:i}=await n();try{const n=await fetch(`${t}/assist/v1/public/projects/${e}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:a,UserID:i},body:JSON.stringify({node_id:r,user_name:i})}),{likes:l}=await n.json();return l||0}catch(e){return console.error(e),0}}}},e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.normalizePage=function(e){if(!e)return;const{blocks:t,slots:n}=e;return{...e,blocks:Pn(t),slots:n&&Object.keys(n).reduce(((e,t)=>({...e,[t]:{...n[t],blocks:Pn(n[t].blocks)}})),{})}},e.projectSettings=d,e.setup=t,e.url=M,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -13,7 +13,7 @@ const TEXT_STYLE_MAP = {
|
|
|
13
13
|
exports.List = (0, uni_jsx_1.JSX)((props) => {
|
|
14
14
|
const { className = '', itemClassName, isDotted, items, version = 'primary' } = props;
|
|
15
15
|
return ((0, jsx_runtime_1.jsx)("section", { className: `${TEXT_STYLE_MAP[version]} ${className}`, role: "list", children: items?.length
|
|
16
|
-
? items.map((_, i) => ((0, jsx_runtime_1.
|
|
16
|
+
? items.map((_, i) => ((0, jsx_runtime_1.jsx)(ListItem_1.ListItem, { className: itemClassName, isDotted: isDotted, version: version, children: _ }, String(i))))
|
|
17
17
|
: null }));
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=List.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../src/ui-kit/List/List.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yCAAsC;AAGtC,MAAM,cAAc,GAAoC;IACtD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,YAAY;CAC3B,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,aAAG,EAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtF,OAAO,CACL,oCAAS,SAAS,EAAE,GAAG,cAAc,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,EAAE,IAAI,EAAC,MAAM,YACvE,KAAK,EAAE,MAAM;YACZ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAClB,
|
|
1
|
+
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../src/ui-kit/List/List.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,yCAAsC;AAGtC,MAAM,cAAc,GAAoC;IACtD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,YAAY;CAC3B,CAAC;AAEW,QAAA,IAAI,GAAG,IAAA,aAAG,EAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtF,OAAO,CACL,oCAAS,SAAS,EAAE,GAAG,cAAc,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,EAAE,IAAI,EAAC,MAAM,YACvE,KAAK,EAAE,MAAM;YACZ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAClB,uBAAC,mBAAQ,IAEP,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,YAEf,CAAC,IALG,MAAM,CAAC,CAAC,CAAC,CAML,CACZ,CAAC;YACJ,CAAC,CAAC,IAAI,GACA,CACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
import { ListItem } from './ListItem.js';
|
|
4
4
|
const TEXT_STYLE_MAP = {
|
|
@@ -11,7 +11,7 @@ const TEXT_STYLE_MAP = {
|
|
|
11
11
|
export const List = JSX((props) => {
|
|
12
12
|
const { className = '', itemClassName, isDotted, items, version = 'primary' } = props;
|
|
13
13
|
return (_jsx("section", { className: `${TEXT_STYLE_MAP[version]} ${className}`, role: "list", children: items?.length
|
|
14
|
-
? items.map((_, i) => (
|
|
14
|
+
? items.map((_, i) => (_jsx(ListItem, { className: itemClassName, isDotted: isDotted, version: version, children: _ }, String(i))))
|
|
15
15
|
: null }));
|
|
16
16
|
});
|
|
17
17
|
//# sourceMappingURL=List.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../src/ui-kit/List/List.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,cAAc,GAAoC;IACtD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,YAAY;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtF,OAAO,CACL,kBAAS,SAAS,EAAE,GAAG,cAAc,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,EAAE,IAAI,EAAC,MAAM,YACvE,KAAK,EAAE,MAAM;YACZ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAClB,
|
|
1
|
+
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../src/ui-kit/List/List.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,cAAc,GAAoC;IACtD,OAAO,EAAE,mBAAmB;IAC5B,SAAS,EAAE,YAAY;IACvB,IAAI,EAAE,qBAAqB;IAC3B,IAAI,EAAE,mBAAmB;IACzB,YAAY,EAAE,YAAY;CAC3B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAY,CAAC,KAAK,EAAE,EAAE;IAC3C,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtF,OAAO,CACL,kBAAS,SAAS,EAAE,GAAG,cAAc,CAAC,OAAO,CAAC,IAAI,SAAS,EAAE,EAAE,IAAI,EAAC,MAAM,YACvE,KAAK,EAAE,MAAM;YACZ,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAClB,KAAC,QAAQ,IAEP,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,YAEf,CAAC,IALG,MAAM,CAAC,CAAC,CAAC,CAML,CACZ,CAAC;YACJ,CAAC,CAAC,IAAI,GACA,CACX,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED