@redneckz/wildless-cms-uni-blocks 0.5.7 → 0.5.8
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/Select/Select.js +1 -1
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/Select/Select.js +1 -1
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +1 -1
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +1 -1
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +0 -4
- package/mobile/src/ui-kit/Select/Select.tsx +1 -1
- package/package.json +3 -2
- package/src/components/__snapshots__/Blocks.spec.tsx.snap +0 -4
- package/src/ui-kit/Select/Select.tsx +1 -1
- package/tailwind.config.cjs +253 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -2707,7 +2707,7 @@
|
|
|
2707
2707
|
};
|
|
2708
2708
|
|
|
2709
2709
|
const selectStyle = {
|
|
2710
|
-
background: `url('/icons/ArrowDownIcon.svg')
|
|
2710
|
+
background: `url('/icons/ArrowDownIcon.svg') right 16px top 50% / 21px no-repeat`,
|
|
2711
2711
|
};
|
|
2712
2712
|
const Select = JSX(({ className = '', id, name, children, value, onChange }) => {
|
|
2713
2713
|
return (jsx("select", { className: `appearance-none pl-0.5 ${className}`, style: selectStyle, id: id, name: name || id, value: value, onChange: (e) => onChange(e.target.value), placeholder: "", children: children }));
|
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";let t;const n=e=>(...n)=>t[e](...n),a=n("useState"),l=n("useEffect"),r=n("useCallback"),i=n("useMemo"),s=n("useRef");function o(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}}}}const c=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 ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:a}=await e.json();return a||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:a}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:a},body:JSON.stringify({node_id:t,user_name:a})}),{likes:l}=await e.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:a}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:a},body:JSON.stringify({node_id:t,user_name:a})}),{likes:l}=await e.json();return l||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:p(e)),t._tmpl},p=e=>{function t(t,n){const{children:a,...l}=t||{},r=n?.slots?.default,i=a||r&&r();return e(Object.assign(l,i&&{children:i}),n)}return t.inheritAttrs=!1,t};class g{static inst=new g;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const b=e=>{if(!e.length)return;const[t]=e;t.isIntersecting},f=x((({anchor:e,className:t,context:n,children:r,tag:i="section",labels:s})=>{const o=i,{IntersectionObserverTag:c}=n,[d,m]=a(!0);return l((()=>g.inst.subscribe("tab",(e=>{var t;"group"===e.type?m(!s?.length||!e.label||s.includes(e.label)):(m(!0),t=e.label,setTimeout((()=>globalThis.document.getElementById(`#${t}`)?.scrollIntoView({behavior:"smooth"}))))}))),[s]),d?e?h(c,{tag:i,className:t,observerCallback:b,observerOptions:{threshold:1},anchor:e,children:r}):h(o,{className:t,children:r}):null}));const v={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},N=x((e=>{const{className:t="",headingType:n="h3",title:a,as:l="h3"}=e;return h(l,{className:`font-sans m-0 ${v[n]} ${t}`,children:a})}));var y,w;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AirPlaneIcon="AirPlaneIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BuildingIcon="BuildingIcon",e.BurgerIcon="BurgerIcon",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.Car2Icon="Car2Icon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.CarIcon="CarIcon",e.ChartSquareIcon="ChartSquareIcon",e.CinemaIcon="CinemaIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocDownloadIcon="DocDownloadIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocsIcon="DocsIcon",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.DoneIcon="DoneIcon",e.DoneSimpleIcon="DoneSimpleIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LogoIcon="LogoIcon",e.LoupeIcon="LoupeIcon",e.MapMarkerClusterIcon="MapMarkerClusterIcon",e.MapMarkerSingleIcon="MapMarkerSingleIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MoneysIcon="MoneysIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PackA4Icon="PackA4Icon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.PowerIcon="PowerIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.PumpkinIcon="PumpkinIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.SoundIcon="SoundIcon",e.StrongBoxIcon="StrongBoxIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserSquareIcon="UserSquareIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon",e.WateringCanIcon="WateringCanIcon"}(y||(y={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlaneIcon="Самолёт",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowUpIcon="Стрелка вверх",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BuildingIcon="Здание с деревом",e.BurgerIcon="Бургер",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.Car2Icon="Машина2",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.CarIcon="Машина",e.ChartSquareIcon="Деньги внутри кошелька",e.CinemaIcon="Кинотеатр",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocDownloadIcon="Скачать документ",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocsIcon="Документы",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.DoneIcon="Зелёная 'галочка' в круге",e.DoneSimpleIcon="Зелёная 'галочка'",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LogoIcon="Logo",e.LoupeIcon="Лупа",e.MapMarkerClusterIcon="Маркер карты",e.MapMarkerSingleIcon="Маркер карты РСХБ",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MoneysIcon="MoneysIcon",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PackA4Icon="Пачка бумаги А4",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.PowerIcon="Щит",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.PumpkinIcon="Тыква",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.SoundIcon="Звук",e.StrongBoxIcon="Ящик с замочной скважиной",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserSquareIcon="Пользователь в рамке",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCanIcon="Добавить продукт"}(w||(w={}));const I={normal:"text-primary-main",black:"text-black",white:"text-black invert"},C=x((({className:e="",imageClassName:t="",name:n="",alt:a=`Иконка ${w[n]||n}`,title:l=a,iconVersion:r="normal",asSVG:i,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return i?u("svg",{className:e,...s,"aria-hidden":"true",children:[l?h("title",{children:l}):null,a?h("desc",{children:a}):null,h("use",{className:`${I[r]} ${t}`,href:`${o}#icon`,xlinkHref:`${o}#icon`})]}):h("img",{className:e,src:o,alt:a,title:l,...s,"aria-hidden":"true"})}));function k(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const S=(e,t)=>e.media&&t.media?e.media-t.media:0,$=x((({className:e="",image:t,imageClassName:n="",isMobile:a=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${a?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(S).map((({src:e,format:n,media:a},l)=>h("source",{srcSet:e,type:B(n),media:a?`(max-width: ${a}px)`:"",...t.size},`${l}_${e}`))):null,T(t,n,a)]})})),T=(e,t="",n=!1)=>{const a={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},l=e.title||"",r=e.alt||e.title,i=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${i} ${t}`,alt:r,title:l,style:a,...e.size})};function B(e){return e?`image/${String(e)}`:void 0}const D=x((({className:e="",image:t,imageClassName:n="",isMobile:a,...l})=>{if(!t)return null;const r="string"==typeof t?t:t.icon;return r||""===r?r.length?h(C,{className:e,imageClassName:n,iconVersion:k(t),name:r,...l}):null:h($,{className:e,imageClassName:n,image:t,isMobile:a})})),R=x((({className:e="",imageClassName:t,image:n,...a})=>h(D,{className:e,imageClassName:t,image:n,...a})));function M(e){return e?e.filter(Boolean).join(" "):""}const A={left:"text-left",center:"text-center",right:"text-right"},V={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"}},L={XXL:{descriptionFont:"text-h5",gap:"gap-[18px]",headingType:"h0",as:"h1"},XL:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h1",as:"h1"},L:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h2",as:"h2"},M:{descriptionFont:"text-xl-light",gap:"gap-3",headingType:"h3",as:"h3"},S:{descriptionFont:"text-xl-light",gap:"gap-2",headingType:"h4",as:"h4"}},P=x((e=>{const{className:t="",description:n}=e;return h("div",{className:`${t}`,children:n})})),_=x((({bgColorHeadline:e="transparent",align:t="center",className:n="",title:a,description:l,headlineVersion:r="XL",as:i,...s})=>{const o=V[e],c=L[r];return u(f,{className:`font-sans flex flex-col p-[50px] ${c.gap} ${o.background} ${n}`,...s,children:[a?h(N,{headingType:c?.headingType,as:i||c?.as,className:`whitespace-pre-wrap ${o.text} ${A[t]}`,title:a}):null,l?h(P,{className:`${c.descriptionFont} ${o.text} ${A[t]}`,description:l}):null]})})),j=x((({className:e,iconClassName:t,textClassName:n,suffixClassName:a,doc:l,icon:r})=>{const{text:i,fileSize:s,...o}=l;return u("a",{className:e,role:"link",...o,children:[r?h(R,{className:t,image:r,width:"24px",height:"24px",asSVG:!0}):null,i?u("span",{className:n,children:[i,h("span",{className:a,children:o?.href&&E(O(o.href),s)})]}):null]})})),E=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),O=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},U=x((({className:e="",doc:t,icon:n})=>h(j,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:n}))),G=x((({className:e,documents:t,columnsMode:n="double",icon:a})=>t?.length?h("div",{className:e,role:"list",children:t.map(((e,t)=>h("div",{className:"double"===n?"basis-[calc(50%-20px)]":"",role:"listitem",children:h(U,{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)),z={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},F=x((({context:e,className:t="",title:n,description:a,align:l="center",documents:r,icon:i={icon:"DocIcon"},columnsMode:s="double",...o})=>u(f,{className:`font-sans text-primary-text p-[50px] bg-white ${t}`,context:e,...o,children:[h(_,{className:"!p-0",title:n,description:a,context:e,align:l,headlineVersion:"M",as:"h2"}),h(G,{className:`mt-8 ${z[s]}`,columnsMode:s,documents:r,icon:i})]}))),W={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},H={primary:"text-primary-text",secondary:"text-white"},X={primary:"text-secondary-text",secondary:"text-white"},J=x((e=>{const{className:t="",icon:n,label:a,description:l,version:r="primary",benefitsVersion:i="normal"}=e,s="white"===i||"secondary"===r;return u("div",{className:`flex gap-5 ${l?"items-start":"items-center"} ${t}`,children:[n?h("div",{className:q(r,i),children:h(R,{className:"w-6 h-6",image:{...n,iconVersion:s?"white":"normal"},asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[a?h("div",{className:`text-h6 ${H[r]}`,children:a}):null,l?h("div",{className:`text-m-light ${X[r]}`,children:l}):null]})]})}));function q(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const K=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),Y=x((({className:e="",context:t,title:n,description:a,image:l,benefits:r,version:i="primary",sum:s,monthLimit:o,directionRight:c=!1,...d})=>u(f,{className:`relative font-sans py-12 px-24 ${W[i]} ${e}`,context:t,...d,children:[h(_,{context:t,className:"!p-0",title:n,description:a,headlineVersion:"M",bgColorHeadline:i,align:"center"}),u("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[l?.src?h(R,{className:c?"order-2":"",image:l}):null,u("div",{className:"w-[558px] m-auto",children:[r?.length?h("div",{className:"flex flex-col gap-4",children:r.map(Z(i))}):null,Q(s,o)]})]})]}))),Z=e=>(t,n)=>h(J,{icon:t.icon,label:t.label,description:t.description,version:e},String(n));function Q(e,t){return e||t?u("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number.isFinite(e)?ee("Страховая сумма:",e,Boolean(t)):null,Number.isFinite(t)?ee("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function ee(e,t=0,n=!1){return u("div",{className:`flex justify-between items-center gap-2 w-full ${n?"w-fit":"w-full"}`,children:[h("span",{className:"text-secondary-text text-l-light",children:e}),u("span",{className:"text-primary-main text-h6",children:[K(t)," ₽"]})]})}const te=e=>e?.includes("//"),ne=e=>(e||"").replace(/\/?\?.*/,""),ae=e=>{if(!e||!te(e))return;const t=e,n=t.indexOf("//"),a=t.indexOf("/",n+"//".length);return-1!==a?t.substring(0,a):t};var le=Object.freeze({__proto__:null,isURL:te,withoutQuery:ne,getOrigin:ae,getHash:e=>{if(!e||!te(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const re="/mobile",ie=(e,t)=>{if(!e)return e;const n=ae(t?.href);return n?e.replace(n,"")||"/":e},se=e=>e;function oe({router:e,handlerDecorator:t=se},n){const a=((e,t)=>{if(!e)return e;const n=ie(e,t)||"",a=t?.pathname.startsWith(re);return a&&!te(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:a,"aria-label":n.text,onClick:t((t=>{const l=a&&!te(a),r=!n.target||"_self"===n.target;l&&r&&(t?.preventDefault(),e.push(a))}),n)}}const ce=x((({text:e,href:t,target:n,onClick:a,className:l="",children:r})=>t?h("a",{className:`no-underline ${l}`,href:t,target:n,onClick:a,children:h("span",{className:l,children:e||r})}):h("span",{className:l,children:e||r})));function de(e){return t=>t.reduce(((t,n,a)=>t.length?t.concat({...e,key:a},n):[n]),[])}const me=x((e=>{const{text:t,aboveText:n,appendLeft:a,appendRight:l}=e;return u("div",{className:he(e),children:[a||null,ue(e)?u("div",{children:[h("div",{className:"text-xs-light text-left",children:n}),h("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,l||null]})})),he=e=>{const{className:t="",version:n,aboveText:a,rounded:l}=e;if("link"===n)return"";const r="gap-2 "+(a?"py-2.5 px-7":"py-4 px-9");return["group flex items-center justify-center",ue(e)?r:"h-12 w-12",l?"rounded-full":"",t].join(" ")},ue=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),xe={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white",link:""},pe="bg-main-divider text-main-disabled",ge={primary:pe,secondary:pe,white:pe,link:""},be="text-center font-sans select-none",fe=({className:e,rounded:t,version:n})=>[be,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",n?xe[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ve=({className:e,rounded:t,version:n})=>["inline-block",be,n?ge[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Ne=x((e=>{const{text:t,aboveText:n,appendLeft:a,appendRight:l,children:r,disabled:i,rounded:s,...o}=e,{asSVG:c,iconRight:d,icon:m,...u}=o,x=r??h(me,{text:t,aboveText:n,appendLeft:a,appendRight:l,rounded:s});return h(i?we:ye,{rounded:s,...u,children:x})})),ye=x((({className:e="",ariaLabel:t,version:n,rounded:a,href:l,target:r,children:i,onClick:s,...o})=>h("a",{className:fe({className:e,version:n,rounded:a}),href:l,target:r,onClick:s,"aria-label":t,role:l?"link":"button",...o,children:i}))),we=x((({className:e,children:t,ariaLabel:n,version:a,rounded:l})=>h("div",{role:"button","aria-disabled":"true","aria-label":n,tabIndex:-1,className:ve({className:e,rounded:l,version:a}),children:t}))),Ie=x((({context:e,className:t="",buttons:n})=>{const{handlerDecorator:a}=e,l=e.useRouter();return n&&n?.length?h("div",{className:t,children:n.map(((e,t)=>function({icon:e,iconRight:t,version:n="primary",...a},l){if(!a?.text)return null;const r="primary"===n?"group-hover:text-black":"group-hover:text-white",i="secondary"===n?"normal":"white";return h(Ne,e?{appendLeft:h(R,{imageClassName:r,image:{...e,iconVersion:i},width:"24",height:"24",asSVG:!0}),appendRight:h(R,{imageClassName:r,image:{...t,iconVersion:i},width:"24",height:"24",asSVG:!0}),version:n,...a}:{version:n,...a},String(l))}(oe({router:l,handlerDecorator:a},e),t)))}):null}));const Ce={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 mt-3","tile-white":"rounded-full inline-block mr-4 mt-3"},ke={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},Se=x((({className:e="",isDotted:t=!0,children:n,version:a="primary"})=>u("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?h("div",{className:$e(a)}):null,h("span",{children:n})]}))),$e=e=>`${Ce[e]} ${ke[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]}`,Te={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},Be={M:"text-xl-light",L:"text-h5-light"},De=x((e=>{const{className:t="",itemClassName:n,isDotted:a,items:l,listItemSize:r="M",version:i="primary"}=e;return h("section",{className:`${Te[i]} ${Be[r]} ${t}`,role:"list",children:l?.length?l.map(((e,t)=>h(Se,{className:n,isDotted:a,version:i,children:e},String(t)))):null})})),Re=x((({className:e="",title:t="",children:n,buttons:a,image:l})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:n}),a?h("div",{className:"mt-auto pt-8",children:a}):null]}),l]})]}))),Me=(e="primary",t="normal")=>({icon:n,label:a,description:l},r)=>h(J,{icon:n,label:a,description:l,version:e,benefitsVersion:t},String(r)),Ae=x((({className:e="",context:t,title:n,headlineVersion:a="L",description:l,benefits:r,benefitsVersion:i="normal",buttons:s,image:o,items:c,version:d="primary",isDotted:m=!0,textBlockClassName:x=""})=>u("div",{className:`flex grow justify-between items-stretch h-full ${e}`,children:[u("div",{className:`flex flex-col ${x}`,children:[h(_,{context:t,title:n,description:l,className:"!p-0 max-w-[600px]",bgColorHeadline:d,headlineVersion:a,align:"left"}),u(Re,{context:t,buttons:Ve(t,s),children:[r?.filter((e=>e.label))?.length?h("div",{className:"flex gap-6 mt-6",children:r.map(Me(d,i))}):null,c?.length?h(De,{className:"mt-5 text-h6",items:c,itemClassName:"mb-[7px]",version:d,isDotted:m}):null]})]}),o?.src&&h(R,{className:"mt-[-50px]",image:o})]}))),Ve=(e,t)=>t?.length?h(Ie,{context:e,buttons:t,className:"flex gap-4"}):null;function Le(e,t,n){const{text:a,href:l,target:r,onClick:i}=e,s="primary"===t?"white":"black";return u("div",{className:`flex items-center cursor-pointer ${n}`,onClick:i,children:[h(Ne,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:a,href:l,target:r,children:h(R,{className:"w-4 h-4",image:{...e?.icon||{icon:"ArrowLeftIcon"},iconVersion:s},asSVG:!0})}),a?h("span",{className:"text-m",children:a}):null]})}const Pe={primary:"text-secondary-text",secondary:"text-white/80"},_e=x((e=>{const{context:t,className:n="",breadcrumbs:a,backwardButton:l,version:r="primary",...i}=e,s=t.useRouter(),{handlerDecorator:o}=t;return u(f,{context:t,className:`font-sans overflow-hidden p-[50px] flex flex-col box-border min-h-[454px] ${W[r]} ${n}`,...i,children:[l?.text?Le(oe({router:s,handlerDecorator:o},l),r,"mb-10 -mt-2.5"):null,a?.length?h("div",{className:"text-xs-light mb-6",children:de(h("span",{className:`mx-2 ${Pe[r]}`,children:"/"}))(a.map(((e,t)=>h(ce,{...oe({router:s,handlerDecorator:o},{className:Pe[r],...e})},String(t)))))}):null,h(Ae,{context:t,version:r,...i})]})})),je={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"}},Ee=x((({title:e,description:t,blockVersion:n="primary",iconVersion:a,image:l,className:r,...i})=>{const s=je[n];return u(f,{className:`font-sans px-9 py-4 flex ${s.background} ${r||""}`,...i,children:["small"===a?Oe(s.icon):null,"big"===a?Ue(l):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${s.title}`,children:e}):null,t?h("div",{className:`text-s ${s.description}`,children:t}):null]})]})}));function Oe(e){return h("div",{className:"pt-1.5 pl-1 pr-4",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Ue(e){return e?.src?h(R,{className:"pt-0.5 pr-3",image:e}):null}const Ge=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function ze(e=""){const t=Ge(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Fe(e=""){const t=Ge(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const We=x((e=>{const{context:t,title:n,headingType:a="h3",description:l,items:r,children:i,buttons:s,image:o,isDotted:c=!0,listItemSize:d="M",className:m="",version:x="primary",...p}=e,g="primary"===x?"text-primary-text":"";return h(f,{context:t,className:`overflow-hidden font-sans p-9 pr-3 box-border ${m} ${W[x]} ${Fe(m)} ${ze(m)} `,...p,children:u(Re,{context:t,title:n?h(N,{headingType:a,as:"h2",title:n,className:`whitespace-pre-wrap max-w-[600px] ${g}`}):null,buttons:s?.length?h(Ie,{context:t,buttons:s.map((e=>({...e,className:"w-[158px]"}))),className:"flex mt-8 gap-3"}):null,image:o?.src?h(R,{className:"mt-auto ml-7",image:o}):null,children:[l?h(P,{className:"max-w-[600px] text-xl-light mt-2",description:l}):null,i,He(r,{version:x,isDotted:c,listItemSize:d})]})})}));function He(e,{version:t,isDotted:n,listItemSize:a}){const l="primary"===t?"tile":"tile-white";return e?.length?h(De,{items:e,isDotted:n,className:"mt-3",listItemSize:a,itemClassName:"mb-1.5",version:l}):null}const Xe=x((({context:e,className:t="",title:n,headlineVersion:a="S",description:l,additionalDescription:r,benefits:i=[],buttons:s,image:o,version:c="primary",...d})=>u(f,{context:e,className:`overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]\n ${t} ${W[c]} ${Fe(t)}`,...d,children:[h(_,{context:e,className:"!p-0 !bg-transparent z-10 "+(n||l?"mb-3.5":""),as:"h2",title:n,description:l,headlineVersion:a,bgColorHeadline:c,align:"left"}),Je(i,c,o),r?Ke(r,o,c):null,s?.length?h(Ie,{context:e,buttons:s,className:"flex self-end mt-5 gap-4 z-10 text-l"}):null,o?.src?h(R,{className:"absolute right-0 bottom-0",image:o}):null]})));function Je(e,t,n){return h("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline \n ${n?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(qe(t)):null})}function qe(e="primary"){const t={primary:"text-secondary-text",secondary:"text-white"};return function(n,a){const{label:l="",description:r=""}=n;return[h("div",{className:"text-h6",children:l},`label-${a}`),h("div",{className:`text-m-light ${t[e]}`,children:r},`desc-${a}`)]}}function Ke(e,t,n="primary"){return h("div",{className:`text-m-light mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"} ${{primary:"text-secondary-text",secondary:"text-white"}[n]}`,children:e})}const Ye=x((({className:e,disabled:t,...n})=>h(Ne,{rounded:!0,className:`group shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...n,children:h(R,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"16",height:"16",asSVG:!0})})));function Ze({handler:e,isShown:t,btnClass:n,className:a="",isDisabled:l=!1}){return u("div",{children:[t[0]||l?h(Ye,{className:`absolute z-10 ${n[0]} ${a}`,onClick:e[0],ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!t[0]}):null,t[1]||l?h(Ye,{className:`absolute z-10 rotate-180 ${n[1]} ${a}`,onClick:e[1],ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!t[1]}):null]})}const Qe={normal:3,mini:4},et={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},tt={normal:380,mini:276},nt=x((({title:e,description:t,image:n,items:a,button:l,version:r,isDotted:i=!0})=>{const s=function(e){return`text-xl-light m-0\n ${"secondary"!==e?"text-primary-text":""}\n `}(r);return u("div",{className:"h-full flex flex-col justify-between text-center",children:[u("div",{children:[n?.src?h("div",{className:"flex justify-center",children:h(R,{className:"mb-6",image:n})}):null,e?lt(e,s):null,t?h("div",{className:"text-m"+(e?"mt-2":""),children:t}):null,a?.length?rt(a,i,r):null]}),l?.text?at(l):null]})}));function at(e){return h(Ne,{className:"mt-6 w-full",appendLeft:e.icon&&h(R,{image:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function lt(e,t){return h("div",{className:`text-xl-light m-0 ${t}`,children:e})}function rt(e,t,n="primary"){return h(De,{className:"max-w-[308px] mt-2 text-s "+("primary"===n?"!text-secondary-text":""),itemClassName:"mt-1 text-left first:mt-0",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:n})}const it=x((({context:e,title:t,description:n,cards:a=[],version:l="normal",activeCardIndex:r})=>u("div",{children:[h("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),h(_,{context:e,className:"!p-0",title:t,description:n,headlineVersion:"L",align:"center"}),h("div",{className:`flex mt-8 ${a?.length<=Qe[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${r*tt[l]}px)`},role:"list",children:a?.map(((t,n)=>function({card:e,version:t},n){return h("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${et[t]} ${W[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:h(nt,{...e})},String(n))}({card:t,version:l,context:e},n)))})]})));const st=x((({context:e,cards:t=[],className:n="",version:l="normal",...r})=>{const[i,s]=a(0),o=t?.length>Qe[l],c=o&&t?.length-i>Qe[l],d=o&&i>0;return u(f,{context:e,className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${n}`,...r,children:[h(it,{context:e,cards:t,version:l,activeCardIndex:i,...r}),Ze({handler:[()=>s(i-1),()=>s(i+1)],isShown:[d,c],btnClass:["left-8","right-8"],className:"top-1/2"}),h("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),h("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]})})),ot=x((e=>h(st,{...e,version:"normal"}))),ct=x((e=>h(st,{...e,version:"mini"}))),dt=x((({className:e="",documents:t,...n})=>h(f,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?mt(t):null})}))),mt=e=>e.map(((e,t)=>{const{text:n,...a}=e;return h("li",{className:"mb-4 list-none",children:h("a",{className:"hover:text-primary-main",role:"link",...a,children:n||null})},`list_item_${String(t)}`)})),ht={Headline:_,LinkDocs:F,TextBlock:Ee,PictureText:Y,ProductBlock:_e,Tile:We,ProductTile:Xe,Gallery:ot,MiniGallery:ct,LinkList:dt},ut=({blocks:e,context:t,className:n=""})=>e?.length?e.map(xt({context:t,className:n})):null,xt=({context:e,className:t})=>(n,a)=>{if(!n)return null;const{style:l,blockListType:r,...i}=n;if(!r||!(r in ht))return null;const s=M(l);return h(ht[r],{className:`${t} ${s}`,context:e,...i},`block_${a}`)},pt=x((({blocks:e,context:t})=>h("div",{className:"grid grid-cols-12 transition-all duration-300 max-h-0 overflow-hidden",children:ut({context:t,blocks:e,className:"!p-0 mb-3.5"})}))),gt=x((({label:e,isExpanded:t,blocks:n,context:l})=>{const{isActive:r,hasContent:i,icon:s,handleToggle:o}=(({blocks:e,initialState:t=!1})=>{const[n,l]=a(t),r=e?.length;return{isActive:n,hasContent:r,icon:n?"MinusIcon":"PlusIcon",handleToggle:e=>{const t=e.currentTarget;if(!t)return;l(!n);const a=t.nextSibling;a.style.maxHeight=a.style.maxHeight?"":`${a.scrollHeight}px`}}})({blocks:n,initialState:t});return u("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[u("button",{className:`border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full\n font-sans text-h6 ${i?"group cursor-pointer":""}\n `,onClick:o,children:[h("span",{className:"text-xl font-medium pr-2.5",children:e}),i?h(R,{image:s,className:"text-primary-main flex-shrink-0",width:"24",height:"24",asSVG:!0}):null]}),i?h(pt,{isExpanded:r,blocks:n,context:l}):null]})})),bt={left:"text-left",center:"text-center",right:"text-right"},ft=x((({title:e,description:t,accordionItems:n,context:a,className:l="",accordionAlignTitle:r="center",...i})=>u(f,{context:a,className:`p-[50px] mb-1 last:mb-0 font-sans bg-white text-primary-text ${l}`,...i,children:[e?h(N,{headingType:"h3",as:"h2",className:`mb-2.5 ${bt[r]}`,title:e}):null,t?h("div",{className:"mb-2.5 text-l",children:t}):null,n?.length?h("ul",{className:"list-none m-0 p-0",children:n.map(((e,t)=>h(gt,{...e,context:a},`AccordionItem${t}`)))}):null]}))),vt={primary:"bg-white",secondary:"bg-primary-main"},Nt={primary:"",secondary:"text-white"},yt={primary:"text-secondary-text",secondary:"text-white opacity-80"},wt={primary:"bg-main-divider text-primary-main",secondary:"bg-white/30 text-black"},It=x((({className:e="",title:t,benefitList:n,benefitsBlockVersion:a="primary",...l})=>u(f,{className:`font-sans text-primary-text p-12 flex flex-col items-center ${e} ${vt[a]}`,...l,children:[t?h(N,{headingType:"h3",as:"h2",className:`max-w-[47rem] text-center ${Nt[a]}`,title:t}):null,n?.length?Ct(n,a):null]}))),Ct=(e,t)=>h("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:e.map(St(t))}),kt=(e,t)=>e.icon?(e.iconVersion="secondary"===t?"white":"normal",e):e,St=e=>(t,n)=>{const a=t?.description||void 0;return u("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[t?.icon?.icon?h(R,{className:`w-[50px] h-[50px] min-w-[50px] p-3 rounded-full ${wt[e]}`,image:kt(t.icon,e),asSVG:!0}):null,t?.icon?.src?h(R,{image:t.icon}):null,u("div",{className:"ml-5",children:[t?.label?h("h3",{className:`text-h6 m-0 ${Nt[e]}`,children:t.label}):null,$t(a,e)]})]},String(n))},$t=(e,t)=>{const n=e?e?.benefitType:null;return n&&e?h("div",{className:`text-l-light mt-2 ${yt[t]}`,children:"list"===n?Bt(e):Tt(e)}):null},Tt=e=>e?e.name:null,Bt=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?h("ul",{className:t,children:e.items.map(((e,t)=>h("li",{children:e},`benefitListItem-${t}`)))}):null},Dt=x((e=>{const{context:t,className:n="",title:a,description:l,bonusItems:r,...i}=e;return h(f,{className:`font-sans bg-white p-[50px] pb-9 ${n}`,context:t,...i,children:u("div",{className:"container",children:[h(_,{context:t,className:"!p-0",title:a,description:l,headlineVersion:"M",align:"center"}),h("div",{className:"flex flex-wrap w-full mt-9",children:r?r.map(((e,t)=>h("div",{className:"flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-[14px] mx-[7px] even:mr-0 odd:ml-0 last:odd:mx-0",children:u("div",{className:"flex justify-between w-full",children:[u("div",{className:"mr-4",children:[h("div",{className:"text-h4",children:e.title}),h("div",{className:"text-xl-light mt-[14px] max-w-[488px]",children:e.description})]}),e.bonusCount?u("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[h("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}),h("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName})]}):null]})},String(t)))):null})]})})}));function Rt(e=""){const t=Ge(e);return t<=6?"grid-cols-2":t<=8?"grid-cols-3":"grid-cols-4"}const Mt=x((({context:e,className:t="",title:n,subtitle:a,bonusBenefits:l,...r})=>u(f,{className:`font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${t}`,context:e,...r,children:[h(_,{context:e,className:"!p-0",title:n,description:a,headlineVersion:"M",align:"center"}),l?.length?h("div",{className:`grid gap-1 mt-8 ${Rt(t)}`,children:l.map(At)}):null]}))),At=(e,t)=>u("div",{className:"flex flex-col items-center max-w-[292px]",children:[e?.icon?h(R,{className:"h-[160px] w-[180px] min-w-[180px] min-h-[160px]",image:e.icon,width:"180",height:"160"}):null,h("div",{children:e?.label?h("span",{className:"text-h6 m-0",children:e.label}):null})]},String(t)),Vt=x((({title:e,value:t,postfix:n="",prefix:a,className:l=""})=>u("div",{className:`mb-7 ${l}`,children:[e?h("div",{className:"text-l-light text-secondary-text",children:e}):null,t?u("div",{className:"text-h3",children:[a," ",K(Math.round(t))," ",n]}):null]}))),Lt=6e4,Pt=2e6,_t=97e4,jt=Math.round(23.5),Et={minSum:Lt,maxSum:Pt,minMonths:13,maxMonths:60,rateBottomRange:10,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},Ot={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Ut=x((({rate:e,title:t="Ставка",unit:n,rateBlockClassName:a})=>u("div",{children:[h("div",{className:"text-l-light text-secondary-text",children:t}),u("div",{className:"flex justify-start",children:[h("span",{className:`block gradient-color-text font-mohave text-title-huge pr-6 -mt-4 ${a}`,children:String(e).replace(".",",")}),n?h("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:n}):""]})]})));function Gt(e,t){return t?.length?h(Ie,{context:e,buttons:t,className:"flex flex-col mt-7 gap-2"}):null}const zt=(e,t,n)=>Math.max(t,Math.min(e,n)),Ft=x((({className:e,title:t,items:n=[],min:a=1,max:l=100,step:r=1,value:i=a,disabled:s=!1,onChange:o})=>{const c=e=>{var t;o&&o(zt((t=e.target.value,Number(t.replace(/\D/g,""))),a,l))},d={backgroundSize:`${(100*(i-a)/(l-a)).toFixed(2)}% 100%`};return u("div",{className:e,children:[u("label",{className:"block relative",children:[t?h("span",{className:"text-m-light",children:t}):null,h("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-focus disabled:border-main-stroke disabled:bg-main-divider",value:K(i),disabled:s,onChange:c,onBlur:c}),h("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:h("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:a,max:l,step:r,value:i,disabled:s,onChange:c,style:d})})]}),Wt(n)]})}));function Wt(e){return h("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>h("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const Ht=1e3;function Xt(e,t,n){const{moneyValue:a,minSum:l,maxSum:r,step:i=Ht,isShowItems:s=!0}=t,o=[`От ${K(l)} ₽`,`До ${K(r)} ₽`];return h(Ft,{title:e,items:s?o:[],min:l,max:r,step:i,value:zt(a,l,r),onChange:n})}const Jt=new Map;function qt(e){return e?Array.isArray(e)?e:e instanceof Function?qt(e()):[e]:[e]}let Kt=function(e,t,{fallback:n}={}){const r=i((()=>qt(e)),[e]),[s,o]=a(),[c,d]=a(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};l((()=>{if(!r.every((e=>null===e)))try{const e=t(...r);"then"in e?(e=>{e.then((e=>Jt.get(r)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...r]);const u=r[0],x=n&&"string"==typeof u&&n[u];return{data:s||c||!x?s:x,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}};const Yt=(...e)=>Kt(...e);async function Zt(e,t){try{return await Qt(e,t)}catch(e){console.error(e)}return null}async function Qt(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function en(e){const{data:t}=Yt(`/wcms-resources/${e}.json`,Qt);return t}const tn=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:a}=e,l=en(t||"bonus-calculator-data")||Ot,[r,i]=((e,t,n)=>{const{minSumTravel:a,minSumOther:l,maxBonus:r,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===a&&n===l)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*n),r);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*n),r)*(12-i)]})(l,n,a);return{...l,...e,monthBonus:r,yearBonus:i}},nn=e=>e?h("p",{className:"text-s-light text-secondary-text mt-7",children:e}):null,an=x((({context:e,className:t="",sourceBookDir:n="",buttons:l,footnote:r})=>{const[i,s]=a(6e3),[o,c]=a(6e3),d={travelExpenseValue:i,restExpenseValue:o},{minSumTravel:m,maxSumTravel:x,minSumOther:p,maxSumOther:g,monthBonus:b,yearBonus:f}=tn(d,n);return u("section",{className:t,children:[u("div",{className:"w-[468px]",children:[Xt("Сумма покупок в категории путешествия, ₽",{minSum:m,maxSum:x,moneyValue:i,step:500,isShowItems:!1},s),Xt("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:p,maxSum:g,moneyValue:o,step:500,isShowItems:!1},c)]}),h("div",{children:b>=0?h(Ut,{title:"Баллов за месяц",rate:b,rateBlockClassName:"tracking-[-14px]"}):null}),u("div",{className:"w-full max-w-[350px]",children:[f>=0?h(Vt,{title:"Баллов за год",value:f}):null,Gt(e,l),nn(r)]})]})})),ln=x((({className:e,viewBox:t,fill:n="none",width:a,height:l,paths:r,...i})=>h("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:a,height:l,children:r.map((({d:e,fill:t,...n},a)=>h("path",{d:e,fill:t||"currentColor",...i,...n},a)))}))),rn=[{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"}],sn=x((({className:e,text:t,checked:n,isRadio:a,onChange:l})=>h("div",{className:e,children:u("label",{className:"flex items-center relative cursor-pointer group",children:[h("input",{className:`peer appearance-none w-5 h-5 border-solid cursor-pointer group-hover:border-checkbox-hover\n ${a?"rounded-full border-2":"rounded checked:bg-primary-main border"}\n ${n?"border-black":"border-main-stroke"}\n checked:border-primary-main m-0`,type:"checkbox",onChange:e=>{l(e.target.checked)},checked:n}),a?h("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):h(ln,{paths:rn,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?h("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})})));function on(e,t,n){const{minMonths:a,maxMonths:l,monthsValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return h(Ft,{className:"mt-7",title:e,items:[`От ${i(a)}`,`До ${i(l)}`],min:a,max:l,step:1,value:zt(r,a,l),onChange:n})}const cn=x((({items:e,checkedItem:t,onChangeCheckedItem:n})=>h("div",{className:"flex flex-col gap-3",children:e?.map((({id:e,text:a})=>h(sn,{isRadio:!0,text:a,checked:t===e,onChange:()=>n(e)},e)))})));function dn(e,{items:t,checkedItem:n,onChange:a}){return h(cn,{context:e,items:t,checkedItem:n,onChangeCheckedItem:a})}const mn=(e,t)=>{const{isInsurance:n,isSalaryClient:a,isStateEmployee:l,moneyValue:r}=e,i=en(t||"credit-calculator-data")?.rows?.find((e=>n===e.isInsurance&&a===e.isSalaryClient&&l===e.isStateEmployee))||Et,{rateBottomRange:s,rateTopRange:o,sumBorder:c}=i,d=r<=c?s:o,m=((e,t)=>{const{isAnnuity:n,moneyValue:a,monthsValue:l}=t;if(n){const t=e/1200;return a*(t+t/(Math.pow(1+t,l)-1))}return Math.round(a/l)+a*(e/1200)})(d,e);return{...i,...e,finalRate:d,monthlyPayment:m}},hn="annuity",un="differential",xn=[{id:hn,text:"Аннуитетный"},{id:un,text:"Дифференцированный"}],pn=x((({context:e,className:t="",sourceBookDir:n,buttons:l,footnote:r})=>{const[i,s]=a(!1),[o,c]=a(!0),[d,m]=a(!1),[x,p]=a(!1),[g,b]=a(_t),[f,v]=a(jt),N=mn({isAnnuity:i,isInsurance:o,isSalaryClient:d,isStateEmployee:x,moneyValue:g,monthsValue:f},n);return u("section",{className:t,children:[u("div",{className:"w-[468px]",children:[Xt("Сумма кредита, ₽",{...N,step:500},b),on("Срок кредита, месяцев",N,v),u("div",{className:"mt-7",children:[h(sn,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:d,onChange:m}),h(sn,{className:"mt-3",text:"Работаю в бюджетной организации",checked:x,onChange:p}),h(sn,{className:"mt-3",text:"Комплексная страховая защита",checked:o,onChange:c})]})]}),h(Ut,{title:"Ставка",rate:N.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Vt,{title:i?"Ежемесячный платеж":"Платёж в первый месяц",value:N.monthlyPayment,postfix:"₽"}),dn(e,{items:xn,checkedItem:i?hn:un,onChange:e=>s(e===hn)}),Gt(e,l),nn(r)]})]})})),gn="everyMonth",bn="atEndTerm",fn=[{id:gn,text:"Ежемесячно"},{id:bn,text:"В конце срока"}],vn={CreditCalculatorForm:pn,DepositCalculatorForm:x((({context:e,className:t="",rate:n,buttons:l,footnote:r})=>{const[i,s]=a(_t),[o,c]=a(jt),[d,m]=a(!1);return u("section",{className:t,children:[u("div",{className:"w-[468px]",children:[Xt("Сумма вклада, ₽",{moneyValue:i,minSum:Lt,maxSum:Pt},s),on("Срок вклада, месяцев",{minMonths:13,maxMonths:60,monthsValue:o},c)]}),h(Ut,{rate:n||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Vt,{title:"Доход по вкладу",value:948841,postfix:"₽",prefix:"+"}),h(Vt,{title:"Сумма в конце срока",value:1218841,postfix:"₽"}),dn(e,{items:fn,checkedItem:d?gn:bn,onChange:e=>m(e===gn)}),Gt(e,l),nn(r)]})]})})),BonusCalculatorForm:an},Nn=({context:e,className:t})=>(n,a)=>{const l=n?.calcType;if(!l||!(l in vn))return null;const r=vn[l];return h("section",{className:`box-border relative bg-white flex shrink-0 self-start basis-full ${t}`,role:"listitem",children:u("div",{className:"box-border p-9 w-full",children:[n?.title?h(N,{className:"text-center mb-6",title:n.title}):null,h(r,{context:e,...n,className:"flex justify-between"})]})},String(a))},yn=x((({className:e="",context:t,calculatorTabs:n=[],...l})=>{const r=n.map((e=>e.nav||{})),i=n.map((({calculatorBlock:e})=>e||{})),[s,o]=a(0),[c,d]=a(0),m=n?.length>3&&n?.length>c+3,x=c>0;return u(f,{context:t,className:`box-border overflow-hidden relative font-sans w-100 text-primary-text bg-white ${e}`,...l,children:[u("div",{className:"bg-white",children:[r.length>1?wn({tabsShift:c,tabsNav:r,activeSlideIndex:s,setActiveSlideIndex:o}):null,Ze({handler:[()=>d(c-1),()=>d(c+1)],isShown:[x,m],btnClass:["left-3","right-3"],className:"top-8"})]}),h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(Nn({context:t,className:e})):null})]})}));function wn({tabsShift:e,tabsNav:t,activeSlideIndex:n,setActiveSlideIndex:a}){return u("div",{children:[h("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:h("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,activeSlideIndex:n,onClick:a}){const l=t===n,r=l?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",i=l?"text-xl mb-1.5":"text-l mb-[3px]",s=l?"text-l-light text-white":"text-m-light text-secondary-text",o=l?"":"text-primary-main";return u("button",{type:"button",onClick:a,"aria-label":e?.title,className:`box-border relative border border-main-stroke cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${r}`,children:[h(R,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${o}`,image:{...e?.icon,iconVersion:l?"white":"normal"},width:"24",height:"24",asSVG:!0}),u("div",{className:"border-0",children:[h("div",{className:`${i}`,children:e?.title}),h("div",{className:`${s}`,children:e.description})]})]},String(t))}({tab:e,i:t,activeSlideIndex:n,onClick:()=>a(t)})))})}),h("div",{className:"w-full h-2 bg-primary-main"})]})}const In=x((({className:e="",label:t,onChange:n,value:a="",minValue:l=0,maxValue:r=3e5,...i})=>u("div",{className:e,children:[t?h("label",{className:"block text-m-light mb-2",children:t}):null,u("div",{className:"h-[56px] relative flex items-center",children:[h("input",{type:"number",className:"text-l pl-4 pr-8 w-full h-full rounded-md border border-solid border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text",onChange:e=>{if(!n)return;const t=""===e.target.value?"":String(zt(e.target.value,l,r));n(t)},value:a,min:l,max:r,...i}),h("span",{className:"text-xl-light absolute right-4",children:"₽"})]})]}))),Cn={version:"primary",className:"w-full h-[56px] px-9 mt-6"},kn=x((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",placeholder:l="1500",buttonText:r="Далее",...i})=>{const[s,o]=a(""),c=!Number(s);return u(f,{className:`p-[50px] flex flex-col items-center font-sans bg-white ${e}`,...i,children:[t?h(N,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,u("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[h(In,{name:"amount",value:s,onChange:o,placeholder:l,label:n}),h("button",{type:"submit",className:c?ve(Cn):fe(Cn),disabled:c,children:r})]})]})})),Sn={default:"normal",primary:"white",secondary:"black"},$n={black:"bg-black",white:"bg-white"},Tn=x((({className:e="",title:t,description:n,image:a,price:l,button:r,colors:i})=>u("section",{className:`border border-solid box-border p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[a?.src?h(R,{className:"mb-5 flex justify-center",image:a}):null,t?h(N,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,n?h("div",{className:"text-m-light text-left mb-4",children:n}):null,i?.length?u("div",{className:"flex mb-4 text-m-light text-secondary-text",children:[h("div",{className:"mr-1.5",children:"Доступные цвета: "}),i.map(Bn)]}):null,l?u("div",{className:"text-h3 text-left",children:[l," ₽"]}):null,r?Dn(r):null]}))),Bn=(e,t)=>h("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${$n[e]}`},String(t)),Dn=e=>{const{icon:t,iconRight:n,...a}=e;if(!e?.text)return null;const l=Sn[e?.version||"default"],r=Rn({...t,iconVersion:l}),i=Rn({...n,iconVersion:l});return h(Ne,{className:"mt-5 w-full",appendLeft:r,appendRight:i,...a})},Rn=e=>{if(!e||!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(R,{image:e,width:t,height:"24",asSVG:!0})},Mn="absolute top-0 bottom-0 w-[84px]",An=x((({context:e,cards:t=[],className:n="",title:l,description:r,...i})=>{const[s,o]=a(0);return u(f,{context:e,className:`bg-white relative font-sans p-12 overflow-hidden text-center ${n}`,...i,children:[h(_,{context:e,className:"!p-0",title:l,description:r,headlineVersion:"M",align:"center"}),h("div",{className:"flex duration-1000 gap-3.5 mt-8",style:{transform:`translateX(-${430*s}px)`},role:"list",children:t?.length?t.map(Vn(e)):null}),Ln({cardsCount:t.length,activeCardIndex:s,setActiveCardIndex:o}),h("div",{className:`${Mn} left-0 bg-opacity-from-white`}),h("div",{className:`${Mn} right-0 bg-opacity-to-white`})]})})),Vn=e=>(t,n)=>h(Tn,{context:e,...t},String(n)),Ln=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:n})=>{const a=e>3;return Ze({handler:[()=>n(t-1),()=>n(t+1)],isShown:[a&&t>0,a&&e-t>3],btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"})},Pn=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:n,setActiveCardIndex:a})=>{const l=e>t;return{handleNextClick:()=>a(n+1),handlePrevClick:()=>a(n-1),isScrollAvailable:l,showNextButton:l&&e-n>t,showPrevButton:Boolean(l&&n>0)}},_n="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",jn="border-main-stroke border-solid border",En="border-main-divider border border-t-0 border-x-0",On="w-[200px] mr-6",Un=x((({icon:e,image:t,title:n,link:a})=>u("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${jn} ${_n}`,role:"columnheader",children:[e&&!t?.src&&h(R,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&h(R,{className:"mb-[18px]",image:t}),n?h(N,{headingType:"h4",as:"h3",className:"text-center text-white",title:n}):null,a?.text&&h("div",{className:"mt-auto w-full",children:h(Ne,{href:a.href,target:a.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:h("div",{className:"text-xs-light font-medium py-[11px]",children:a.text})})})]}))),Gn={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},zn=x((({children:e,activeCardIndex:t,columnWidth:n,version:a="comparison"})=>h("div",{className:"flex flex-1 overflow-hidden",children:h("div",{className:Gn[a],style:{transform:`translateX(-${t*n}px)`},children:e})}))),Fn=x((({children:e})=>h("div",{className:"self-start flex flex-col",role:"row",children:h("div",{className:"flex",children:e})}))),Wn=x((({colHeaders:e,activeCardIndex:t,router:n,handlerDecorator:a})=>u(Fn,{children:[h("div",{className:On,role:"columnheader"}),h(zn,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>h(Un,{...e,link:e.link&&oe({router:n,handlerDecorator:a},e.link)},String(t))))})]}))),Hn=x((({isScrollAvailable:e,handleNextClick:t,handlePrevClick:n,showNextButton:a,showPrevButton:l})=>e?h("div",{children:Ze({handler:[n,t],isShown:[l,a],btnClass:["top-[108px]","top-11"],className:"right-7",isDisabled:!0})}):null)),Xn=x((({cell:e,isFirstRow:t,isLastRow:n,isFillGradient:a})=>h("div",{className:`w-80 box-border flex flex-col ${jn} ${n?"border-t-0 rounded-b-md":"border-y-0"} ${a?_n:""}`,role:"cell",children:h("div",{className:`mx-7 h-full ${En} ${a&&t?"border-t":""} ${n?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>Kn(e,t,a)))})}))),Jn=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),qn=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),Kn=({label:e,description:t},n,a)=>u("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?h("h4",{className:Jn(a),children:e}):null,t?h("div",{className:qn(a),children:t}):null]},String(n)),Yn=(e=!1)=>`text-s py-7 ${En} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,Zn=x((({row:{header:e,data:t},activeCardIndex:n,isColoredFirstColumn:a,isFirstRow:l,isLastRow:r})=>u(Fn,{children:[e?.title?h("div",{className:Yn(r),children:e.title}):null,t?.length?h(zn,{activeCardIndex:n,columnWidth:336,children:t.map(((e,t)=>h(Xn,{cell:e,isFirstRow:l,isLastRow:r,isFillGradient:a&&0===t},String(t))))}):null]}))),Qn=x((({rowData:e,activeCardIndex:t,isColoredFirstColumn:n,...a})=>u("div",{className:"relative",children:[e.map(((e,a,{length:l})=>h(Zn,{row:e,isFirstRow:0===a,isLastRow:a+1===l,activeCardIndex:t,isColoredFirstColumn:n},String(a)))),h(Hn,{...a})]}))),ea=x((({context:e,columns:t,rowHeaders:n,isShowAllRow:l,visibleRowLength:r,isColoredFirstColumn:i})=>{const s=e.useRouter(),{handlerDecorator:o}=e,c=t?.map((({header:e})=>e||{})),d=t?.map((({data:e})=>e))||[],m=n?.map(((e,t)=>({header:e,data:d.map((e=>e?.[t]||[{}]))}))).slice(0,l?n.length:r),[x,p]=a(0),g=Pn({columnsLength:d.length,colsLengthForScroll:2,activeCardIndex:x,setActiveCardIndex:p}),{isScrollAvailable:b}=g;return u("div",{children:[u("div",{role:"table",children:[c?.length?h(Wn,{colHeaders:c,activeCardIndex:x,router:s,handlerDecorator:o}):null,m?.length?h(Qn,{rowData:m,activeCardIndex:x,isColoredFirstColumn:i,...g}):null]}),b?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),ta=x((({className:e="",context:t,title:n,rowHeaders:l,columns:r,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=a(!i);return u(f,{context:t,className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e}`,...o,children:[h(N,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:n}),h(ea,{context:t,columns:r,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?na({isShowAllRow:c,onClick:()=>d(!c)}):null]})})),na=({isShowAllRow:e,onClick:t})=>h("div",{className:"pr-[50px]",children:u("div",{className:"flex w-full",children:[h("div",{className:On}),h("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:h("div",{className:"font-sans text-xs-light font-medium py-[11px]",children:e?"Скрыть":"Показать все параметры"})})]})}),aa=e=>"Image"===e?.errorContentType&&e?.image?h(R,{image:e.image}):"Code"===e?.errorContentType&&e.code?h("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,la=x((({context:e,className:t="",title:n,subtitle:a,error:l,button:r})=>{const{useRouter:i,handlerDecorator:s}=e,o=i();return u("section",{className:`flex flex-col justify-center items-center mt-12 ${t}`,role:"listitem",children:[h("div",{className:"flex justify-center py-20",children:aa(l)}),n?h(N,{headingType:"h1",className:"text-left mb-4",title:n}):null,a?h("div",{className:"font-sans text-xl-light text-left mb-7 max-w-[613px] text-center",children:a}):null,r?.text?h(Ne,{className:"py-4 px-9",version:r?.version,...oe({router:o,handlerDecorator:s},r),children:r.text}):null]})})),ra=(e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n};function ia(){return Zt(sa,{method:"POST",body:JSON.stringify(oa)})}const sa="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",oa={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},ca=e=>e.reduce(((e,t)=>{const n=t.currency_first?.code;return e.some((e=>e.code===n))||e.push({code:n,buy:ra(Number(t.rate_buy),3),sell:ra(Number(t.rate_sell),3)}),e}),[]);var da;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(da||(da={}));const ma=new Intl.NumberFormat("ru",{style:"currency",currency:da.RUB}),ha=e=>e?ma.format(e):"",ua="text-left text-m-light text-secondary-text",xa={USD:"DollarIcon",EUR:"EuroIcon"},pa=x((({className:e,exchangeCurrencyItems:t})=>u("table",{className:`h-fit w-fit ${e}`,children:[h("thead",{children:u("tr",{children:[h("th",{className:ua,children:"Валюта"}),h("th",{className:`${ua} pl-11`,children:"Купить"}),h("th",{className:`${ua} pl-11`,children:"Продать"})]})}),h("tbody",{children:t.map((e=>ga(e)))})]}))),ga=e=>{const t=e?.code;return u("tr",{className:"pb-1 text-h6",children:[h("td",{className:"pt-4",children:u("div",{className:"flex items-center",children:[t?h(R,{image:{icon:xa[t]},width:"24",height:"24"}):null,h("span",{className:"ml-2",children:t})]})}),h("td",{className:"pt-4 pl-11",children:ha(e?.sell)}),h("td",{className:"pt-4 pl-11",children:ha(e?.buy)})]},t)},ba=x((({className:e="",address:t,distance:n})=>u("div",{className:`flex ${e}`,children:[h(R,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),u("div",{className:"ml-3",children:[t?h("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,n?u("p",{className:"text-secondary-text m-0 text-m",children:["Курс указан для ближайшего офиса - ",n]}):null]})]}))),fa=(e,t,n)=>{const a=Number(va(e))*Math.pow(t,n?-1:1);return Number.isInteger(a)?a:ra(a)},va=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Na=e=>{return(t=[[e=>e.value!==da.RUB&&e.oppositeValue!==da.RUB,()=>e.handleConvert(e.value,da.RUB)],[e=>e.value===da.RUB&&e.oppositeValue===da.RUB,()=>e.handleConvert(e.value,da.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t},ya=x((({className:e="",id:t,name:n,type:a="text",placeholder:l,pattern:r,value:i,onChange:s})=>h("input",{className:`border rounded-md border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text text-primary-text outline-none ${e}`,id:t,name:n||t,type:a,pattern:r,placeholder:l,value:i,onChange:e=>{const t=e.target.validity.valid?e.target.value:i;s(t)}}))),wa=x((({className:e="",isBorder:t=!0,label:n,options:r=[],value:i,onChange:s})=>{const[o,c]=a(r[0]||{key:"",text:""}),[d,m]=a(!1);return l((()=>{c(i||{key:"",text:""})}),[i]),u("div",{className:`${d?"z-10":""} ${e}`,children:[n?h("span",{className:"mb-2",children:n}):null,u("div",{className:"relative w-fit",children:[u("div",{className:`text-m-light flex justify-between items-center min-h-[56px] mb-0.5 p-4 pr-8 text-primary-text cursor-pointer\n ${Ca(t)}`,onClick:()=>m(!d),children:[o.text,h(C,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(d?"":"rotate-180")})]}),r.length>0?h("div",{className:"h-0 "+(d?"":"overflow-hidden"),children:h("div",{className:"bg-white text-l rounded-md",children:r.map(Ia((e=>{c(e),m(!1),s(e)}),d,(e=>Boolean(e.key===o.key))))})}):null]})]})})),Ia=(e,t,n)=>(a,l)=>u("div",{onClick:()=>{e(a)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11",children:[h("span",{children:a.text}),h(C,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",n(a)&&t?"":"hidden"].join(" ")})]},String(l));function Ca(e){return e?"border border-main-stroke rounded-md hover:border-primary-hover":""}function ka(e){const{placeholder:t,rates:n,selected:a,value:l,setValue:r,setSelected:i}=e,s=n.map((e=>({key:e.code??"",text:e.code??""}))),o={key:a,text:a};return u("div",{className:"relative flex",children:[h(ya,{className:"shrink-0 h-14 pl-4 pt-4 pb-4 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:l,onChange:r}),s.length?h(wa,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const Sa=x((({context:e,className:t="",currencyRatesBuy:n,currencyRatesSell:l,button:r})=>{const{useRouter:i,handlerDecorator:s}=e,o=i(),[c,d]=a({inputSell:"",inputBuy:"",selectSell:n?.[0]?.code||da.RUB,selectBuy:l?.[0]?.code||da.USD}),m=e=>{d((t=>({...t,...e})))};return u("div",{className:`grid gap-[18px] pt-2 ${t}`,children:[ka({placeholder:"Хочу продать",rates:l,selected:c.selectSell,setSelected:$a(c,m,l),value:c.inputSell,setValue:e=>Ba(m,l)(e,c.selectSell,c.selectBuy)}),ka({placeholder:"Получу",rates:n,selected:c.selectBuy,setSelected:Ta(c,m,n),value:c.inputBuy,setValue:e=>Da(m,n)(e,c.selectBuy,c.selectSell)}),r?.text?h(Ne,{className:"py-4 mr-1",version:r?.version,...oe({router:o,handlerDecorator:s},r),children:r.text}):null]})})),$a=(e,t,n)=>a=>{t({selectSell:a}),Na({value:a,oppositeValue:e.selectBuy,handleConvert:(a=e.selectSell,l=e.selectBuy)=>{Ba(t,n)(e.inputSell,a,l)}})},Ta=(e,t,n)=>a=>{t({selectBuy:a}),Na({value:a,oppositeValue:e.selectSell,handleConvert:(a=e.selectBuy,l=e.selectSell)=>Da(t,n)(e.inputBuy,a,l)})},Ba=(e,t)=>(n,a,l)=>{e({inputSell:va(n),selectBuy:l});const r=t.find((e=>e.code===l))?.buy||t.find((e=>e.code===a))?.sell;r&&e({inputBuy:String(fa(n,r,a===da.RUB)||"")})},Da=(e,t)=>(n,a,l)=>{e({inputBuy:va(n),selectSell:l});const r=t.find((e=>e.code===l))?.sell||t.find((e=>e.code===a))?.buy;r&&e({inputSell:String(fa(n,r,a===da.RUB)||"")})},Ra={address:"Москва, ул.Ленина д.28",distance:"6км"},Ma=x((({className:e="",context:t,title:n="Курсы обмена валют",button:a,...l})=>{const r=function(){const{data:e}=Yt(sa,ia),t=e?.hits?.hits?.map((e=>e._source))||[];return t.length?ca(t):t}(),i=r.filter((e=>e.buy));i.unshift({code:da.RUB});const s=r.filter((e=>e.sell));return s.push({code:da.RUB}),h(f,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,...l,children:h(Re,{context:t,title:h(N,{headingType:"h4",title:n,className:"whitespace-pre-wrap text-h4"}),children:u("div",{className:"flex",children:[u("div",{className:"mr-14 pt-4",children:[r?h(pa,{className:"mb-[30px]",exchangeCurrencyItems:r}):null,h(ba,{...Ra})]}),r.length&&i.length&&s.length?h(Sa,{className:"grow",context:t,currencyRatesBuy:i,currencyRatesSell:s,button:a}):null]})})})})),Aa={"bg-white":"normal",transparent:"white"},Va={"bg-white":"text-primary-main",transparent:"text-white"},La={"bg-white":"text-primary-text",transparent:"text-white"},Pa=x((({className:e="",href:t,logo:n,children:a=n?.title,targetBlank:l,bgColor:r="bg-white",hideTitle:i})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:l?"_blank":"_self","aria-label":n?.title||"Россельхозбанк",children:[h(R,n?.image?.src?{image:n.image,className:Va[r],width:"40",height:"45",asSVG:!0}:{image:{icon:"LogoIcon",iconVersion:Aa[r]},className:`${Va[r]} w-10`,width:"40",height:"45",asSVG:!0}),i?null:_a(a,r,n?.title)]}))),_a=(e,t,n)=>h("span",{className:`${La[t]} font-medium ml-2.5`,children:e||n||"Россельхозбанк"}),ja=x((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:l}=(()=>{const[e,t]=a("");return{term:e,setTerm:e=>t(e)}})(),r=t?"text-s":"text-l-light",i=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(R,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${r}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${i}`,value:n,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("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(),l("")},children:h(R,{image:"CloseIcon",width:"24",height:"24"})}):h(Ne,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Ea=x((({className:e=""})=>h(ja,{className:e}))),Oa=x((({className:e="",items:t,hasButton:n,context:a})=>{const l=a.useRouter(),{handlerDecorator:r}=a;return u("div",{className:e,children:[t?.length?t.map(Ua):null,n?h(Ne,{version:"primary",className:"mb-6 w-full",...oe({router:l,handlerDecorator:r},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Ua=(e,t)=>{const{type:n,text:a,description:l}=e;return u("div",{className:"mb-4",children:[h("div",{children:Ga(n,a)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:l})]},String(t))},Ga=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${za(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},za=e=>e.replaceAll(/\D/g,""),Fa=x((({className:e="",index:t,text:n,href:a,target:l,onClick:r})=>h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:l,onClick:r,children:n||`Документ ${t}`}))),Wa=x((({links:e,className:t="",context:n})=>{const a=n.useRouter(),{handlerDecorator:l}=n;return h("div",{className:t,children:e?.length?h("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)=>h(Fa,{index:t,className:"text-l-light max-w-[292px]",...oe({router:a,handlerDecorator:l},e)},String(t))))}):null})})),Ha=e=>t=>e?.href===t?.href,Xa=(e,t)=>{return(a=e,l=t,(a||[]).map((e=>l?.find(Ha(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Ha(e))))));var n,a,l};function Ja(e={}){const{data:t}=Yt(`/wcms-resources/${c.SITEMAP||"sitemap"}.json`,Qt,{fallback:e});return t||{}}const qa=x((({className:e="",items:t,fallback:n,context:a})=>{const l=Ja(n),r=Xa(l.topItems,t),i={router:a.useRouter(),handlerDecorator:a.handlerDecorator};return h("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:r?.map(((e,t)=>Ka(e,t,i)))})})),Ka=(e,t,{router:n,handlerDecorator:a})=>{const{text:l,href:r,items:i,target:s}=e;return u("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[h("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:r,target:s||"_self",children:l||`Раздел ${t}`}),i?.map(((e,t)=>h(Ya,{...oe({router:n,handlerDecorator:a},e),index:t},String(t))))]},String(t))},Ya=x((({text:e,href:t,target:n,index:a})=>h("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:t,target:n||"_self",children:e||`Раздел ${a}`}))),Za=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],Qa=x((({href:e,version:t="primary"})=>{const{icon:n,label:a}=Za.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!n)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-secondary-light hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===t?"hover:text-black":""}`,href:e,"aria-label":a,target:"_blank",rel:"noopener noreferrer",children:n?h(R,{image:n,imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),el=x((({className:e="",media:t,version:n,context:a,children:l})=>{const r=a.useRouter(),{handlerDecorator:i}=a;return u("div",{className:"font-sans",children:[h("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>h(Qa,{version:n,...oe({router:r,handlerDecorator:i},e)},String(t))))}),h("span",{className:"text-s-light text-secondary-text",children:l})]})})),tl=x((({className:e="",index:t,text:n,href:a,target:l,onClick:r})=>h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:l,onClick:r,children:n||`Документ ${t}`}))),nl=x((({className:e,links:t,context:n})=>{const a=n.useRouter(),{handlerDecorator:l}=n;return u("div",{className:`${e||""}`,children:[h("div",{className:"pt-5",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>h(tl,{index:t,...oe({router:a,handlerDecorator:l},e)},String(t))))}):null]})})),al="w-[204px]",ll=x((({className:e,documents:t,relatedEnterprises:n,contacts:a,socialMedia:l,mobileApps:r,topItems:i,context:s,page:o,...c})=>{const d=o?.fallback;return u(f,{tag:"footer",context:s,className:`p-9 bg-white font-sans ${e||""}`,...c,children:[u("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[h(Pa,{className:al}),h(Ea,{context:s,className:"grow"})]}),u("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[u("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[h(Oa,{items:a,context:s,hasButton:!0}),h(el,{media:l,context:s,children:"Соцсети"}),h(el,{className:"mt-6",media:r,context:s,children:"Мобильное приложение"})]}),h(qa,{className:"pt-[3px]",context:s,items:i,fallback:d})]}),h(Wa,{className:"mt-[98px]",links:n,context:s}),h(nl,{links:t,context:s})]})})),rl=x((({context:e,className:t="",title:n,description:a,calendar:l,...r})=>u(f,{className:`font-sans bg-white p-[50px] ${t}`,context:e,...r,children:[h(_,{context:e,className:"!p-0",title:n,description:a,headlineVersion:"M",align:"center"}),l?il(l):null]}))),il=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),n=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:e.month.length*t+"%"})));return u("div",{className:"w-full flex flex-col justify-center mt-[54px]",children:[h("div",{className:"flex w-full mb-3 text-h6 text-center",children:n.map((e=>sl(e,t)))}),h("div",{className:"flex w-full",children:n.map(((e,t)=>u("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[h("div",{className:"flex",children:ol(e)}),u("div",{className:"text-s-light text-primary-text mt-3",children:[h("span",{children:e.text})," ",h("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},sl=(e,t)=>e.month.map(((e,n)=>h("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${n}`))),ol=e=>e.month.map((e=>e.image?.src?h("div",{className:"h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:h(R,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),cl=(e,t,n=((e,t)=>t.startsWith(e)))=>n(ne(e),(e=>(e||"").replace(re,""))(ne(te(e)?t.href:t.pathname))),dl=e=>t=>cl(t.href,e),ml=e=>t=>t.items?.some(dl(e))||cl(t.href,e)||((e,t)=>ae(e)===ae(t.href))(t.href,e),hl="font-sans text-s-light",ul=x((({className:e="",text:t,href:n,target:a,active:l,flat:r,onClick:i,children:s,ariaLabel:o,bgColor:c="bg-white"})=>h("a",{className:`${xl(c,l,r)} ${e}`,href:n,target:a,onClick:i,rel:"noopener noreferrer","aria-label":o,children:h("span",{className:pl(c,l,r),children:t||s})}))),xl=(e,t=!1,n=!1)=>{let a="border-transparent";return t&&(a="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${a} inline-block border border-solid bg-transparent text-center no-underline ${n?"":"px-4 py-2"}`},pl=(e,t=!1,n=!1)=>{if("transparent"===e)return`text-white hover:text-primary-hover ${hl}`;return`${t?"text-primary-main":(n?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${hl}`},gl=o("https://10.80.4.9");const bl=x((({className:e="",children:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":n,children:t}))),fl={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},vl={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},Nl={"bg-white":"black",transparent:"white"},yl=x((({className:e,defaultLocation:t="",bgColor:n="bg-white"})=>{const[i,s]=function(e){const[t,n]=a(e);return l((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,r((()=>{gl.getFetcherAddress().then((t=>{const a=t||e;globalThis?.localStorage.setItem("location",a),n(a)}))}),[e])]}(t);return u("div",{className:`flex items-center ${e||""}`,children:[h(ul,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:n}),h(ul,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:n}),h(bl,{className:`mr-5 group ${fl[n]}`,ariaLabel:"Поиск по сайту",children:h(R,{image:{icon:"LoupeIcon",iconVersion:Nl[n]},className:"h-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0 pointer-events-none",asSVG:!0})}),h(bl,{className:`${vl[n]} group min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:h(R,{image:{icon:"GridIcon",iconVersion:Nl[n]},className:"h-full bg-main-divider/20 rounded-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0",asSVG:!0})})]})})),wl="absolute left-0 -bottom-3 w-full h-[2px]",Il=x((({className:e="",text:t,href:n,target:a,active:l,onClick:r,children:i,bgColor:s="bg-white",dataItemName:o})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:a,onClick:r,"data-item-name":o,children:[h("span",{className:Cl(s,l),children:t||i}),l?h("div",{className:kl(s,l)}):null]}))),Cl=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${n} font-sans text-l-light`},kl=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${wl}`:wl,Sl={"bg-white":"bg-primary-text",transparent:"bg-white"},$l=x((e=>{const{menuVisible:t,toggleMenu:n,menuItems:a,bgColor:l,context:r,activeSubItem:i}=e,{useRouter:s,handlerDecorator:o}=r,c=s();return u("div",{className:"absolute w-52 -top-4 right-0 pt-4 z-40 "+(t?"bg-white rounded-md shadow-blue-gray/24":""),children:[h("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6",onClick:n,"aria-label":""+(t?"Скрыть другие разделы":"Показать другие разделы"),children:Array(3).fill(l).map(Bl)}),h("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(t?"":"hidden"),"aria-hidden":!t,children:Tl({menuItems:a,router:c,handlerDecorator:o,activeSubItem:i})})]})})),Tl=({menuItems:e,router:t,handlerDecorator:n,activeSubItem:a})=>e?.map((e=>{return h("a",{...oe({router:t,handlerDecorator:n},e),className:"text-l-light pb-4 hover:text-primary-main "+(l=e,l===a?"text-primary-main":""),children:e.text},e.href);var l})),Bl=(e,t)=>h("div",{className:`w-[3px] h-[3px] rounded mr-1 ${Sl[e]}`},String(t)),Dl=x((({context:e,subItems:t=[],bgColor:n})=>{const[l,r]=a(!1),i=e.useRouter(),{handlerDecorator:s,IntersectionObserverTag:o}=e,[c,d]=a(t.length),m=t.slice(c),x=(e=>(t=[])=>{const n=t?.filter(dl(e));return n?.length?(a=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>a(e)>a(t)?e:t)))(n):void 0;var a})(i)(t);return u("nav",{className:"relative mt-6",children:[h("div",{className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:t.map(((e,t)=>{return h(o,{tag:"span",observerCallback:(a=t,e=>{e.length&&(e[0].intersectionRatio<1?d((e=>Math.min(e,a))):d((e=>Math.max(e,a+1))))}),observerOptions:{threshold:1},children:h(Il,{className:"mr-8 "+(c-1<t?"invisible":""),active:e===x,...oe({router:i,handlerDecorator:s},e),bgColor:n})},String(t));var a}))}),m.length?h($l,{context:e,activeSubItem:x,menuVisible:l,toggleMenu:()=>r(!l),menuItems:m,bgColor:n}):null]})})),Rl={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Ml=x((({className:e="",defaultLocation:t="Москва",showSubMenu:n=!0,bgColor:a="bg-white",context:l,topItems:r,logo:i,page:s,...o})=>{const c=l.useRouter(),d=s?.fallback,m=Ja(d),{handlerDecorator:x}=l,p=Xa(m.topItems,r),[g]=p,b=n?p.find(ml(c))||g:null,v=p.map(((e,t)=>h(ul,{active:e===b,...oe({router:c,handlerDecorator:x},e),"aria-label":e.text,bgColor:a},String(t))));return h(f,{tag:"header",context:l,className:`pt-6 px-20 ${a} ${e} ${n&&b?.items?.length?"pb-4":"pb-5"}`,...o,children:u("div",{className:"container",children:[u("div",{className:"flex items-center",children:[h(Pa,{className:"mr-8",bgColor:a,logo:i}),v,h(yl,{className:"ml-auto",defaultLocation:t,bgColor:a})]}),h("div",{className:`mt-6 h-[1px] ${Rl[a]}`}),n&&b?.items?.length?h(Dl,{context:l,subItems:b.items,bgColor:a}):null]})})})),Al=x((({className:e="",cards:t=[],button:n})=>{const[l,r]=a(0),[i,s]=a(0),o=t?.length??0,c=t?.length>2&&o>i+2,d=o===i+2,m=i>0,x=t[l]?.href;return u("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[u("div",{className:"relative overflow-hidden",children:[o?Vl({tabsShift:i,cards:t,activeSlideIndex:l,isLastShift:d,setActiveSlideIndex:r}):null,Ze({handler:[()=>s(i-1),()=>s(i+1)],isShown:[m,c],btnClass:["left-[50px]","right-[50px]"],className:"top-[62px]"}),m?h("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,c?h("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),h(Ne,{className:"w-[240px] text-center",version:"primary",...n,href:x})]})}));function Vl({tabsShift:e,cards:t,activeSlideIndex:n,isLastShift:a,setActiveSlideIndex:l}){const r=a?460*e-240:460*e,i=t.length>2?"justify-start":"justify-center";return h("div",{style:{transform:`translateX(-${r}px)`},className:"duration-1000 px-[50px]",children:h("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${i}`,children:t.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:n,onClick:a}){const l=t===n;return u("button",{type:"button",onClick:a,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue/42 border-primary-main":"ease-in duration-300 border-main-stroke"),children:[e?.icon?h(R,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,u("div",{className:"flex gap-3.5",children:[e?.sum?Ll("страховая сумма",e.sum):null,e?.fee?Ll("страховой взнос",e.fee):null]}),Pl(l)]},String(t))}({slide:e,i:t,activeSlideIndex:n,onClick:()=>l(t)})))})})}function Ll(e,t){return u("div",{className:"flex flex-col text-left whitespace-pre",children:[u("span",{className:"text-h6",children:[K(t)," ₽"]}),h("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Pl(e){return e?h(R,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:"DoneIcon",width:"24",height:"24"}):null}const _l=x((({className:e="",context:t,title:n,insuranceTabs:l=[],button:r,...i})=>{const[s,o]=a(0);return u(f,{context:t,className:`box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${e}`,...i,children:[n?h(N,{className:"text-center mb-8",title:n,headingType:"h3"}):null,l?.length>1?h("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,activeSlideIndex:n,onClick:a}){return h("button",{type:"button",onClick:a,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(t===n?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,activeSlideIndex:s,onClick:()=>o(t)})))}):null,h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:jl({context:t,className:e,insuranceTabs:l,button:r})})]})})),jl=({insuranceTabs:e,button:t,context:n,className:a=""})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>h(Al,{context:n,className:a,button:t,cards:e},String(l)))):null};const El=x((({className:e="",context:t,title:n="Мобильное приложение",qr:a,buttons:l,version:r="primary",items:i,image:s,headingType:o="h4",...c})=>{const d="primary"===r?"text-primary-text":"",m="secondary"===r?"p-3.5 min-w-[120px]":"min-w-[92px]",x=l?.map((e=>({...e,className:"min-w-[168px]"})));return u(f,{context:t,className:`flex justify-between font-sans p-9 box-border relative min-h-[320px]\n ${ze(e)}\n ${W[r]}\n ${e}`,...c,children:[h(Re,{context:t,className:"z-[1]",title:n?h(N,{headingType:o,as:"h3",title:n,className:`whitespace-pre-wrap max-w-[509px] mb-6\n ${d}`}):null,buttons:l?.length?h(Ie,{context:t,buttons:x,className:"flex gap-4"}):null,children:u("div",{className:"flex flex-1 items-center",children:[a?.src?h("div",{className:`flex justify-center mr-5 bg-white rounded-md ${m}`,children:h(R,{className:"w-fit",image:a})}):null,Ol(r,i)]})}),s?.src?h("div",{className:"absolute right-0 bottom-0",children:h(R,{image:s})}):null]})})),Ol=(e,t)=>t?.length?h(De,{items:t,itemClassName:"text-l-light mb-2 last:mb-0",version:"primary"===e?"tile":"tile-white"}):h("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Ul=x((({className:e="",context:t,title:n,servicesList:a,anchor:l="",...r})=>u(f,{context:t,id:l,className:`font-sans bg-white p-8 flex flex-col ${e}`,...r,children:[n?h(N,{headingType:"h5",className:"mb-5",title:n}):null,a?.length?a.map(Gl):null]}))),Gl=(e,t)=>u("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?h(R,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:e.icon}):null,e.label?h("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),zl="transition-all duration-300 max-h-0 overflow-hidden",Fl=x((({blocks:e=[],hiddenBlocksNum:t=0,foldButtonClasses:n,foldButtonLabel:l,foldButtonDataTheme:r,isUnfolded:i,containerClasses:s,render:o=(e=>e)})=>{const c=zt(t,0,e.length),{icon:d,handleToggle:m,isActive:x}=(({initialState:e=!1})=>{const[t,n]=a(e);return{icon:t?"ArrowUpIcon":"ArrowDownIcon",handleToggle:e=>{const a=e.currentTarget;if(!a)return;n(!t);const l=a.previousSibling.getElementsByClassName(zl)[0];l.style.maxHeight=l.style.maxHeight?"":`${l.scrollHeight}px`},isActive:t}})({initialState:i}),p=n||"border-none bg-primary-main hover:bg-primary-hover focus:bg-primary-main active:bg-primary-active px-0 py-5 mb-[1px] w-full font-sans text-white text-h4 flex justify-center cursor-pointer",g=x?"Скрыть":l;return e?u("div",{children:[Wl(e,o,{blocksToHide:c,isActive:x,containerClasses:s}),t?u("button",{className:p,"data-theme":r,onClick:m,children:[h("span",{className:"pr-3",children:g}),d?h(C,{className:"my-auto",name:d,iconVersion:"white",width:"20",height:"20",asSVG:!0}):null]}):null]}):null})),Wl=(e,t,{blocksToHide:n,isActive:a,containerClasses:l=""})=>{const r=e.slice(0,e.length-n),i=n>0?e.slice(-n):[];return t(u("div",{children:[r,h("div",{className:`${zl} ${l}`,children:i})]}),a)},Hl=x((({label:e,blocks:t,context:n,dataTheme:a,isUnfolded:l})=>{const r=ut({context:n,blocks:t});return h("div",{className:"border-0 border-b border-solid border-main-divider",children:t?.length?h(Fl,{foldButtonDataTheme:a,hiddenBlocksNum:t?.length,blocks:r,isUnfolded:l,context:n,foldButtonLabel:e,containerClasses:"grid grid-cols-12 gap-1 border-box",render:e=>h(Xl,{children:e})}):null})})),Xl=x((({children:e})=>h("div",{className:"box-border",children:e}))),Jl=x((({blockItems:e,colorPalette:t,context:n,className:a="",...l})=>h(f,{context:n,className:`font-sans text-primary-text ${a}`,...l,children:e?.length?h("div",{className:"box-border1",children:e.map(((e,a)=>h(Hl,{...e,dataTheme:t,context:n},`BlockItem${a}`)))}):null})));function ql(e=""){const t=Ge(e);return t<=4?"S":t<=8?"M":"L"}const Kl=x((({className:e,context:t,title:n,description:a="Блок в разработке...",...l})=>u(f,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Fe(e)} ${ze(e)} `,...l,children:[h(_,{context:t,className:"!p-0 max-w-[600px]",title:n,description:a,headlineVersion:ql(e)}),h("figure",{className:"m-0 min-w-[80%]",children:Yl()})]}))),Yl=(e=3)=>Ql(100,e).map((e=>Math.floor(e))).map(Zl),Zl=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Ql=(e,t)=>[e].concat(t>0?Ql(e/1.618,t-1):[]),er={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},tr=x((({className:e="",context:t,slides:n=[],version:l="primary",...r})=>{const i=n.map((e=>e.nav)),s=n.map((e=>e.productBlock)),[o,c]=a(0);return u(f,{context:t,className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 ${e}\n ${W[l]}`,...r,children:[h("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${o}00%)`},role:"list",children:s.map(((e,n)=>function(e,t,n){const{version:a}=e,l=a?er[a].title:"";return h("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:h("div",{className:"flex grow",children:h(Ae,{className:`pl-[50px] z-10 ${l}`,context:n,textBlockClassName:"mb-[154px]",...e,headlineVersion:"XXL"})})},String(t))}({...e,version:l},n,t)))}),h("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:i.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:n,onClick:a,version:l}){const r=t===n,i=r?"bg-white shadow-dark-blue/42 w-[354px] min-w-[354px] border-none":`min-w-[277px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10\n ${W[l]}`,s=r?"text-primary-text text-h6":`text-l ${er[l].title}`,o=r?"text-secondary-text text-m-title-xs mt-2.5":`text-m mt-1.5 ${er[l].text}`,c="secondary"===l?"border-white/50":"border-black/50";return h("button",{type:"button",onClick:a,"aria-label":e?.title,className:`box-border font-sans relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0 pt-5 pb-[23px]\n ${i} ${c}\n `,children:u("div",{className:"border-0 px-6",children:[h("div",{className:`font-medium ${s}`,children:e?.title}),h("div",{className:`text-secondary-text ${o}`,children:e.description})]})},String(t))}({slide:e,i:t,activeSlideIndex:o,onClick:()=>c(t),version:l})))})]})}));const nr=x((({className:e="",context:t,title:n="Акции и спецпредложения",date:a,description:l,buttons:r=[],version:i="primary",...s})=>h(f,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${W[i]} ${Fe(e)} ${ze(e)} `,...s,children:h(Re,{context:t,title:n?h(_,{context:t,title:n,className:"!p-0 max-w-[600px]",headlineVersion:ql(e),bgColorHeadline:i,align:"left",as:"h2"}):null,buttons:r?.length?h(Ie,{context:t,buttons:r,className:"flex gap-3"}):null,children:u("div",{className:"mt-1.5",children:[a?h("div",{className:"text-s mb-2",children:ar(a)}):null,h("div",{className:"text-l",children:l})]})})})));function ar(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const lr=x((({context:e,className:t="",title:n,description:a,items:l,image:r,version:i,socialMedia:s})=>{const o=n?h(N,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:n}):null,c=r?.src?h(R,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return h("section",{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${t}`,role:"listitem",children:h(Re,{context:e,className:"flex justify-between",title:o,image:c,children:u("div",{className:"h-full flex flex-col justify-between",children:[a?h(P,{className:"mb-2",description:a}):null,l?.length?h(De,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:l,version:i}):null,s?h(el,{className:"pt-10 pb-0",media:s,version:i,context:e}):null]})})})})),rr="absolute top-0 bottom-0 w-[84px]",ir=x((({context:e,recommendations:t=[],className:n="",title:l,version:r,...i})=>{const[s,o]=a(0),c="secondary"===r?"border-white/50":"border-main-stroke";return u(f,{context:e,className:`relative font-sans p-9 overflow-hidden text-center ${"secondary"===r?"bg-primary-main text-white":"bg-white text-primary-text"} ${n}`,...i,children:[l?h(N,{headingType:"h3",className:"mb-6",title:l}):null,u("div",{children:[h("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*s}px)`},role:"list",children:t?.length?t.map(sr({context:e,version:r,className:c})):null}),or({cardsCount:t.length,activeCardIndex:s,setActiveCardIndex:o})]}),h("div",{className:`${rr} left-0 ${"secondary"===r?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${rr} right-0 ${"secondary"===r?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),sr=({context:e,version:t,className:n})=>(a,l)=>h(lr,{context:e,...a,version:t,className:n},String(l)),or=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:n})=>{const a=e>2;return h("div",{children:Ze({handler:[()=>n(t-1),()=>n(t+1)],isShown:[a&&t>0,a&&e-t>2],btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})})};const cr=e=>e?Zt(e,{method:"GET"}):{},dr={background:"url('/icons/ArrowDownIcon.svg') no-repeat right 16px top 50%"},mr=x((({className:e="",id:t,name:n,children:a,value:l,onChange:r})=>h("select",{className:`appearance-none pl-0.5 ${e}`,style:dr,id:t,name:n||t,value:l,onChange:e=>r(e.target.value),placeholder:"",children:a}))),hr=x((({className:e="",value:t,selected:n,disabled:a=!1,children:l})=>h("option",{className:e,value:`${t}`,selected:n,disabled:a,children:l}))),ur=x((({data:e,fieldLabel:t,fieldValue:n,selected:a,placeholder:l,setSelected:r,label:i})=>u("div",{children:[h("span",{className:"block text-m-light mb-2",children:i}),u(mr,{className:"h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer "+(a?"":"text-secondary-text"),value:a,onChange:e=>r(e),children:[l?h(hr,{value:"",children:l}):null,e.map(((e,a)=>h(hr,{value:e?.[n||t],children:e?.[t]},String(a))))]})]}))),xr=x((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:a=[],selectedBranch:l,onSelectedBranch:r})=>u("div",{className:"flex justify-between mb-6",children:[h("div",{className:"w-full mr-4",children:h(ur,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Город"})}),h("div",{className:"w-full",children:h(ur,{data:a,fieldValue:"branchCode",fieldLabel:"address",selected:l,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),pr=x((({name:e,text:t,value:n,checked:a,onChange:l,className:r})=>h("div",{className:r,children:u("label",{className:"flex items-center relative cursor-pointer",children:[h("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border-2 border-primary-main\n rounded-full cursor-pointer after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main",type:"radio",value:n,name:e,checked:a,onChange:l}),t?h("span",{className:"font-sans ml-3 cursor-pointer",children:t}):null]})}))),gr=x((()=>{const[e,t]=a("option2"),n=e=>t(e.target.value);return u("div",{children:[h(pr,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:n}),h(pr,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:n})]})})),br=["От 1 дня","До 365 дней"],fr=x((({days:e,setDays:t})=>u("div",{className:"mb-6",children:[h("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),h(Ft,{min:1,max:365,value:e,items:br,onChange:t})]}))),vr=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:a=[],selectedBoxSize:l,onSelectedBoxSize:r})=>u("div",{className:"flex justify-between mb-6",children:[h("div",{className:"mr-4 w-full",children:h(ur,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),h("div",{className:"w-full",children:h(ur,{data:a,fieldLabel:"safeBoxCasesSize",selected:l,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Nr=e=>Array.isArray(e)?e.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):e?.gpsLatitude&&e?.gpsLongitude?[[e.gpsLatitude,e.gpsLongitude]]:[],yr=(e,t)=>e.find((e=>e.branchCode===t)),wr=x((({regions:e,selectedRegion:t,branches:n,selectedBranch:a,days:l,selectedCaseVolume:r,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,setPoints:c,onChange:d,toggleShowMap:m})=>u("div",{className:"flex-1 mr-9",children:[h(xr,{regions:e,selectedRegion:t,onSelectedRegion:e=>d({selectedRegion:e}),branches:n,selectedBranch:a,onSelectedBranch:Ir(d,c,n)}),h(fr,{days:l,setDays:e=>d({days:e})}),h(vr,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:Cr(d),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>d({selectedBoxSize:e})}),h("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),u("div",{className:"flex justify-between items-center mt-5",children:[h(gr,{}),h(Ne,{text:"Офисы на карте",version:"primary",onClick:m})]})]}))),Ir=(e,t,n)=>a=>{e({selectedBranch:a,selectedCaseVolume:"",selectedBoxSize:""}),t(Nr(a?yr(n,a):n))},Cr=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},kr=x((({days:e,tariffs:t=[]})=>{const n=$r(e,t);return u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex",children:[Sr("Аренда за",e,"mr-11"),Sr("Цена",n+" ₽")]}),u("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[h(R,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),u("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",h("br",{})," листов формата А4"]})]})]})})),Sr=(e,t,n="")=>u("div",{className:n,children:[h("span",{className:"block text-m-light mb-1",children:e}),h("span",{className:"text-h3",children:t})]}),$r=(e,t)=>{const n=Tr(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},Tr=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},Br=x((e=>{const[t,n]=a({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26,branches:[]}),r=function(e){const{data:t}=Yt(e?`/api/v1/safeboxes?regionCode=${e}`:null,cr);return t||[]}(t.selectedRegion),i=e=>n((t=>({...t,...e})));l((()=>i({selectedRegion:Dr(e.regions)})),[e.regions]),l((()=>{Array.isArray(r)&&r.length&&(i({branches:r}),e.setPoints(Nr(r)))}),[r]),l((()=>{i({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[t.selectedRegion]);const s=yr(t.branches,t.selectedBranch),o=Rr(s?.safeBoxCaseVolumes),c=Mr(s?.safeBoxCaseVolumes,t.selectedCaseVolume)?.safeBoxCases,d=Ar(c,t.selectedBoxSize);return u("div",{className:"flex justify-between align-top mb-6",children:[h(wr,{...t,...e,caseVolumes:o,safeBoxCases:c,onChange:i}),h(kr,{days:t.days,tariffs:d})]})})),Dr=e=>e?.length&&e[0]?.code?e[0].code:"",Rr=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Mr=(e,t)=>e?.find((e=>e.volume===t)),Ar=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs;function Vr(e,t,n){t.geoObjects.removeAll();const a=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),l=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:a,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),r=n.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));l.add(r),t.geoObjects.add(l),t.setBounds(e.util.bounds.fromPoints(n)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Lr=e=>globalThis[e];const Pr=()=>{const e=function(e,t){const[n,i]=a(),s=r((()=>i(Lr(e))),[e]);return l((()=>{const n=document.getElementById(t);if(!n){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!Lr(e))return n.addEventListener("load",s),()=>{n.removeEventListener("load",s)};s()}),[e,t]),n}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY}&lang=ru_RU`);return e},_r=x((({points:e})=>{const t=s(null),n=Pr();return l((()=>{n?.ready((()=>{t.current=new n.Map("map",{center:e[0],zoom:10}),Vr(n,t.current,e)}))}),[n]),l((()=>{t.current&&e&&n&&Vr(n,t.current,e)}),[t,e,n]),n?u("div",{className:"pt-12 mt-1 bg-white",children:[h(N,{title:"Офисы на карте",headingType:"h3",className:"mb-8 text-center"}),h("div",{id:"map",className:"h-[640px]"})]}):null})),jr=x((({title:e,footnote:t,context:n,className:l="",...r})=>{const[i,s]=a([]),[o,c]=a(!1),d=function(){const{data:e}=Yt("/api/v1/regions",Qt);return e||[]}();return u(f,{context:n,className:l,...r,children:[u("div",{className:"bg-white px-8 py-12",children:[e?h(N,{title:e,headingType:"h3",as:"h2",className:"mb-2.5 text-center"}):null,h(Br,{regions:d,setPoints:s,toggleShowMap:()=>{c(!o)}}),t?h("p",{className:"text-s-light text-secondary-text",children:t}):null]}),i.length&&o?h(_r,{points:i}):null]})})),Er=e=>Boolean(e?.icon||e?.src),Or={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white"}},Ur=x((({className:e="",showLines:t=!0,steps:n=[],button:a,version:l="primary",context:r,...i})=>{const s=r.useRouter(),{handlerDecorator:o}=r,{title:c}=i,d=Or[l],m=n.length>3,x=(e=>e?"":"opacity-0")(t),p=c?"mt-9":"";return u(f,{className:["box-border font-sans text-primary-text bg-white",m?"px-20":"px-[70px]","py-[50px] flex flex-col items-center",d.background,d.title,e].join(" "),context:r,...i,children:[c?h(N,{headingType:"h2",className:"max-w-[752px] text-center",title:c}):null,n?.length?u("div",{className:`box-border ${p}`,children:[h("div",{className:"flex items-center px-[88px]",children:de(h("div",{className:`h-0.5 w-full bg-secondary-light ${x}`}))(n.map(Gr(d)))}),h("div",{className:"flex justify-between "+(m?"gap-x-3":"gap-x-[101px]"),children:n.map(zr({styleMap:d,isMainButton:Boolean(a?.text),version:l,router:s,handlerDecorator:o}))})]}):null,a?.text?h(Ne,{className:"mt-8 w-full max-w-[240px]",version:"primary",...oe({router:s,handlerDecorator:o},a)}):null]})})),Gr=e=>({icon:t},n)=>h("div",{className:"flex flex-col items-center text-center",children:h("div",{className:`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center\n ${e.iconBackground} ${e.title}`,children:Er(t)?h(R,{image:t,width:"48",height:"48",asSVG:!0}):h("span",{className:`text-h4 ${e.iconText}`,children:n+1})})},String(n)),zr=({styleMap:e,isMainButton:t,version:n,router:a,handlerDecorator:l})=>(r,i)=>{const s=r?.label?"mt-2":"mt-4";return u("div",{className:"flex flex-col items-center justify-between text-center relative w-[276px]\n whitespace-pre-line overflow-hidden",children:[r?.label?h("div",{className:"text-xl m-0 mt-4",children:r.label}):null,r?.description?h("div",{className:`text-l-light ${e.description} ${s}`,children:r.description}):null,r.button?.text&&!t?h(Ne,{className:"box-border mt-8 py-3 h-12 w-full max-w-[240px]",...oe({router:a,handlerDecorator:l},r.button),version:n,children:r.button.text}):null]},String(i))};const Fr="h-12 flex-1 flex items-center justify-center cursor-pointer",Wr="group bg-white",Hr="font-sans text-m",Xr="text-secondary-text group-hover:text-primary-main",Jr=(e,t)=>h("h3",{className:`${Hr} ${t?"text-white":Xr}`,children:e}),qr=(e,t)=>h("div",{className:"min-w-[22px] w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(t?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover:text-primary-main"),children:e}),Kr=({onClick:e,currentTab:t,showCounter:n,page:a,context:l})=>(r,i)=>{const{useRouter:s,handlerDecorator:o}=l,c=s(),d=r.type;if("group"!==d&&"link"!==d)return null;switch(d){case"group":return(({onClick:e,currentTab:t,showCounter:n,page:a})=>(l,r)=>{const i=t===l,s=l.ref?a?.blocks?.filter((e=>e?.labels?.includes(l.ref))).length:a?.blocks?.length;return h("div",{className:`${Fr} ${i?"bg-primary-main":Wr}`,role:"tab","aria-selected":i,onClick:()=>e(l),children:u("div",{className:"flex flex-1 items-center justify-center",children:[l?.title?Jr(l.title,i):null,n&&s?qr(s,i):null]})},String(r))})({onClick:e,currentTab:t,showCounter:n,page:a,context:l})(r,i);case"link":return(({text:e,onClick:t,href:n,target:a="_self",i:l})=>h("a",{className:`${Fr} group bg-white`,target:a,href:n,onClick:t,children:h("span",{className:`${Hr} ${Xr}`,children:e})},String(l)))({...oe({router:c,handlerDecorator:o},r),i:i});default:!function(e){throw new Error(e)}(d)}},Yr=x((e=>{const{context:t,className:n,tabs:r,page:i,showCounter:s}=e,[o,c]=a(r?r[0]:void 0);l((()=>{if("group"===o?.type)return g.inst.subject("tab",{label:o.ref})}),[o]);return h(f,{context:t,className:`mb-2 box-border flex gap-x-1 ${n}`,role:"tablist",children:r?.map(Kr({onClick:e=>{"group"===e?.type&&(g.inst.fire("tab",{type:e.type,label:e.ref}),c(e))},currentTab:o,page:i,showCounter:s,context:t}))})})),Zr=x((({isOpen:e,dataUrl:t,pdfUrl:n,rowIdx:a,cellIdx:l,fieldIdx:r})=>u(Ne,{version:"primary",onClick:()=>{g.inst.fire("tariffInnerTable",{dataUrl:t,pdfUrl:n,rowIdx:a,cellIdx:l,fieldIdx:r})},className:"w-full flex items-center justify-center rounded-none py-5 ",children:[h("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),h(C,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),Qr=e=>e?.alt||e?.title||w[e?.icon?e.icon:""],ei={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({icon:e,rounded:t,...n},a)=>h(Ne,{className:(a>0&&t?"ml-3":"")+" w-12 h-12",ariaLabel:Qr(e),rounded:t,appendLeft:e?.src||e?.icon?h(R,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...n},String(a))))}):null,Img:({image:e})=>e?.src?h(R,{image:e}):null,List:({isDotted:e,...t})=>h(De,{className:"flex flex-col justify-between items-start text-sm",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-h6 font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-s text-secondary-text",children:t}):null]}),Table:x((e=>{const[t,n]=a(!0);console.log(e);const r=t=>{const a=["rowIdx","cellIdx","fieldIdx"].every((n=>e[n]===t[n]));n(!a)};return l((()=>g.inst.subscribe("tariffInnerTable",r)),[]),t?h(Zr,{...e}):null}))},ti=x((({context:e,cells:t,isLastRow:n,rowIdx:a,cellIdx:l})=>h("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 "+(n?"border-t-0 rounded-b-md":""),role:"cell",children:t.map(ni(a,e,l))}))),ni=(e,t,n)=>(a,l)=>u("div",{className:"Table"===a?.tableCellType?"mx-0.5":"first:pt-5 last:pb-5 pl-10",children:[l>0?h("div",{className:"h-5"}):null,ai(a,t,{rowIdx:e,cellIdx:n,fieldIdx:l})]},String(l)),ai=(e,t,n)=>{if(!e)return null;const{tableCellType:a,...l}=e;if(!a||!(a in ei))return null;return h(ei[a],{context:t,...l,...n})};async function li(e){const t=await fetch(e);return await t.json()}const ri=x((({rows:e})=>{const[t,n]=a(0),l=e?.[0]?.length??0,r=l>3&&l>t+4,i=t>0;return u("div",{children:[e?.map(ii(t)),Ze({handler:[()=>n(t-1),()=>n(t+1)],isShown:[i,r],btnClass:["right-3 top-24","right-3 top-2"],className:""})]})})),ii=e=>(t,n)=>{if(!t?.length)return null;const[a,...l]=t,r=[...Array(e).keys()].reduce(((e,t)=>140*(l?.[t]?.cols?.length??1)+e),0);return u("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[h("div",{className:"text-xl-light min-w-[214px] w-[214px] pt-6 pb-5",children:a.data}),h("div",{className:"flex flex-grow overflow-hidden",children:h("div",{className:"flex duration-1000 text-center",style:{transform:`translateX(-${r}px)`},children:l?.map(((t,n)=>u("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?h("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?si(t.cols,e):null]},`row${n}`)))})})]},String(n))},si=(e,t)=>e?h("div",{className:"flex text-xl-light "+(0===t?"text-secondary-text":""),children:e.map(((e,t)=>h("div",{className:"w-[76px] mx-8",children:e},String(t))))}):null,oi=x((({context:e,activeTabIndex:t,items:n})=>{const[l,r]=a({});return h("div",{children:n.map(((n,a)=>{const i=`activeTabIdx:${t}-tableIdx:${a}`;return u("div",{className:"w-full",children:[u("div",{className:"flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>(e=>{r((t=>({...t,[e]:!t[e]})))})(i),children:[n.title,h(R,{image:l[i]?"PlusIcon":"MinusIcon",className:"absolute right-[22px]",width:"24",height:"24"})]}),h("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[i]?"h-0":"h-[243px]"),children:h("div",{className:"relative",children:h(ri,{context:e,rows:n.rowsData})})})]},i)}))})})),ci=x((({currencies:e,linkToPDF:t,activeTabIndex:n,setActiveTabIndex:a})=>u("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?h("div",{className:"flex bg-secondary-light p-1 rounded-md",children:e.map(((e,t)=>h("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===n?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>a(t),children:e||t+1},e)))}):null,t?u(Ne,{href:t,version:"secondary",className:"flex justify-center items-center text-l-light text-primary-main px-8",children:[h(R,{image:"DocDownloadIcon",className:"mr-[10px]",width:"24",height:"24",asSVG:!0}),h("span",{children:"Скачать в PDF"})]}):null]}))),di=x((({context:e,dataUrl:t,pdfUrl:n})=>{const{tableData:l}=function(e){const{data:t}=Yt(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),li);return t||{}}(t),[r,i]=a(0),s=l?.[r]?.items??[],o=l?.map((e=>e.currency??""));return l?u("div",{className:"bg-white z-10",children:[h(ci,{currencies:o,activeTabIndex:r,setActiveTabIndex:i,linkToPDF:n}),h(oi,{context:e,activeTabIndex:r,items:s}),h(Zr,{context:e,isOpen:!0})]}):null})),mi=x((({context:e,children:t,rowIdx:n})=>{const[r,i]=a(void 0);return l((()=>g.inst.subscribe("tariffInnerTable",(e=>{i(n===e.rowIdx?{dataUrl:e.dataUrl,pdfUrl:e.pdfUrl}:void 0)}))),[n]),u("div",{className:"self-start flex flex-col",role:"row",children:[h("div",{className:"flex",children:t}),r?h("div",{className:"origin-top animate-expansion",children:h(di,{context:e,...r})}):null]})})),hi=x((({row:{header:e,data:t},activeCardIndex:n,isLastRow:a,context:l,rowIdx:r})=>u(mi,{context:l,rowIdx:r,children:[h("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(a?"":"border-solid"),children:u("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?h(R,{className:"mr-[14px] max-w-6 max-h-6",image:e.icon,width:"24px",height:"24px",asSVG:!0}):null,e?.title?h(N,{headingType:e?.headingType||"h6",as:"h6",title:e?.title}):null]})}),t?.length?h(zn,{activeCardIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>h(ti,{cells:e,isLastRow:a,rowIdx:r,cellIdx:t,context:l},String(t))))}):null]}))),ui=x((({className:e="",context:t,title:n,description:l,rowHeaders:r,tariffsColumns:i,hiddenRowsNum:s=0,...o})=>{const[c,d]=a(0),m=i?.map((({data:e})=>e))||[],x=r?.map(((e,t)=>({header:e,data:m.map((e=>e?.[t]||[]))}))),p=m.length,g=Pn({columnsLength:p,colsLengthForScroll:2,activeCardIndex:c,setActiveCardIndex:d}),b=x?.map(((e,n,{length:a})=>h(hi,{context:t,row:e,isLastRow:n+1===a,activeCardIndex:c,rowIdx:n},String(n))));return u(f,{className:`bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${p>1?"pr-0":""} ${e}`,context:t,...o,children:[n?h(N,{headingType:"h2",className:"text-center "+(l?"mb-2.5":"mb-9"),title:n}):null,l?h("div",{className:"mb-9 text-center text-l",children:l}):null,x?.length?h(Fl,{blocks:b,hiddenBlocksNum:s,context:t,render:e=>h(xi,{tableArrowScrollControlProps:g,children:e}),foldButtonLabel:"Развернуть"}):null]})})),xi=x((({children:e,tableArrowScrollControlProps:t})=>{const{isScrollAvailable:n}=t;return u("div",{role:"table",children:[u("div",{className:"relative",children:[e,h(Hn,{...t})]}),n?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),pi={Accordion:ft,BenefitsBlock:It,Bonus:Dt,CardTransfer:kn,ComparisonTable:ta,Calculator:yn,Catalog:An,ExchangeRateTile:Ma,Footer:ll,Gallery:ot,GracePeriod:rl,Header:Ml,Headline:_,InsuranceAmountBlock:_l,LinkDocs:F,MiniGallery:ct,MobileAppTile:El,PictureText:Y,ProductBlock:_e,ProductGallery:tr,ProductTile:Xe,PromoTile:nr,OtherProducts:Jl,Recommendation:ir,StepsBlock:Ur,TariffsTable:ui,TextBlock:Ee,Tile:We,Placeholder:Kl,BonusBenefitsBlock:Mt,SafeDepositRental:jr,Tabs:Yr,ErrorBlock:la,OfficeServicesBlock:Ul},gi=m();const bi=x((({className:e,onClick:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:fi()}))),fi=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("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"}),h("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"})]})},vi=x((({className:e,context:t,...n})=>{const{useRouter:i,handlerDecorator:s=se}=t,o=function(e){const[t,n]=a(0);return l((()=>{(async()=>{const[t]=await gi.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{n(await gi.like(e))}),[e]),dislike:r((async()=>{n(await gi.dislike(e))}),[e])}}(i().pathname);return u(f,{tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...n,children:[h(bi,{onClick:s(o.like),ariaLabel:"Поставить отметку «лайк»"}),h(bi,{onClick:s(o.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:o.likeCount})]})})),Ni=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),yi=x((({className:e="",context:t,blocksRegistry:n,data:a={},blockDecorator:l=Ni})=>{const{style:r,blocks:i,slots:s={},likeControl:o,colorPalette:c="pc"}=a,{header:d}=s;return u("section",{className:`relative ${M(r)} ${e}`,"data-theme":c,children:[d?.blocks?.length?h("div",{className:`${M(d?.style)}`,children:d.blocks.map(((e,r)=>wi({block:e,page:a,blockDecorator:l,blocksRegistry:n,context:t},r)))}):null,i?.length?h("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,r)=>wi({block:e,blockDecorator:l,blocksRegistry:n,context:t,page:a},r)))}):null,o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(vi,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function wi({block:e,blockDecorator:t,blocksRegistry:n,context:a,page:l},r){const{type:i}=e;i&&i in n||console.warn(`No block with "${i}" is registered`);const s=n[i||"Placeholder"]||Kl;return t({blockClassName:`scroll-mt-12 ${M(e.style)}`,block:e,render:e=>{const{version:t,content:n,anchor:o,labels:c}=e.block;return h(s,{className:e.blockClassName,version:t,context:a,page:l,anchor:o,labels:c,...n},`${i}-${r}`)}},`block-${r}`)}e.Blocks=pi,e.ContentPage=yi,e.DaDataAPI=o,e.LikeAPI=m,e.joinList=de,e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=le,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";let t;const n=e=>(...n)=>t[e](...n),a=n("useState"),l=n("useEffect"),r=n("useCallback"),i=n("useMemo"),s=n("useRef");function o(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}}}}const c=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 ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:a}=await e.json();return a||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:a}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:a},body:JSON.stringify({node_id:t,user_name:a})}),{likes:l}=await e.json();return l||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:a}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:a},body:JSON.stringify({node_id:t,user_name:a})}),{likes:l}=await e.json();return l||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:p(e)),t._tmpl},p=e=>{function t(t,n){const{children:a,...l}=t||{},r=n?.slots?.default,i=a||r&&r();return e(Object.assign(l,i&&{children:i}),n)}return t.inheritAttrs=!1,t};class g{static inst=new g;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){this.subjectsStateMap[e]=t,this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const b=e=>{if(!e.length)return;const[t]=e;t.isIntersecting},f=x((({anchor:e,className:t,context:n,children:r,tag:i="section",labels:s})=>{const o=i,{IntersectionObserverTag:c}=n,[d,m]=a(!0);return l((()=>g.inst.subscribe("tab",(e=>{var t;"group"===e.type?m(!s?.length||!e.label||s.includes(e.label)):(m(!0),t=e.label,setTimeout((()=>globalThis.document.getElementById(`#${t}`)?.scrollIntoView({behavior:"smooth"}))))}))),[s]),d?e?h(c,{tag:i,className:t,observerCallback:b,observerOptions:{threshold:1},anchor:e,children:r}):h(o,{className:t,children:r}):null}));const v={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},N=x((e=>{const{className:t="",headingType:n="h3",title:a,as:l="h3"}=e;return h(l,{className:`font-sans m-0 ${v[n]} ${t}`,children:a})}));var y,w;!function(e){e.ActualBalanceIcon="ActualBalanceIcon",e.AirPlaneIcon="AirPlaneIcon",e.AppleIcon="AppleIcon",e.ArrowDownIcon="ArrowDownIcon",e.ArrowLeftIcon="ArrowLeftIcon",e.ArrowUpIcon="ArrowUpIcon",e.AtmIcon="AtmIcon",e.BankIcon="BankIcon",e.BuildingIcon="BuildingIcon",e.BurgerIcon="BurgerIcon",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",e.Car2Icon="Car2Icon",e.CardIcon="CardIcon",e.CardPosIcon="CardPosIcon",e.CardTickIcon="CardTickIcon",e.CardWithGemIcon="CardWithGemIcon",e.CarIcon="CarIcon",e.ChartSquareIcon="ChartSquareIcon",e.CinemaIcon="CinemaIcon",e.ClockIcon="ClockIcon",e.CloseIcon="CloseIcon",e.ComfortableCompIcon="ComfortableCompIcon",e.CreditCardsIcon="CreditCardsIcon",e.DiscountShapeIcon="DiscountShapeIcon",e.DocDownloadIcon="DocDownloadIcon",e.DocIcon="DocIcon",e.DocIconMonoColor="DocIconMonoColor",e.DocsIcon="DocsIcon",e.DocumentTextIcon="DocumentTextIcon",e.DollarIcon="DollarIcon",e.DoneIcon="DoneIcon",e.DoneSimpleIcon="DoneSimpleIcon",e.EarthIcon="EarthIcon",e.EmptyWalletChangeIcon="EmptyWalletChangeIcon",e.EmptyWalletIcon="EmptyWalletIcon",e.EuroIcon="EuroIcon",e.GeolocationIcon="GeolocationIcon",e.GlassIcon="GlassIcon",e.GlobalIcon="GlobalIcon",e.GpsIcon="GpsIcon",e.GridIcon="GridIcon",e.InterestGrowthIcon="InterestGrowthIcon",e.InterestIcon="InterestIcon",e.JCBIcon="JCBIcon",e.LogoIcon="LogoIcon",e.LoupeIcon="LoupeIcon",e.MapMarkerClusterIcon="MapMarkerClusterIcon",e.MapMarkerSingleIcon="MapMarkerSingleIcon",e.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MoneysIcon="MoneysIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.PackA4Icon="PackA4Icon",e.PassSendIcon="PassSendIcon",e.PercentageRoundIcon="PercentageRoundIcon",e.PercentageSquareIcon="PercentageSquareIcon",e.PersonalCardIcon="PersonalCardIcon",e.PlayMarketIcon="PlayMarketIcon",e.PlusIcon="PlusIcon",e.PowerIcon="PowerIcon",e.Profile2UserIcon="Profile2UserIcon",e.ProfileIcon="ProfileIcon",e.PumpkinIcon="PumpkinIcon",e.RoundRubleIcon="RoundRubleIcon",e.SafeIcon="SafeIcon",e.ShieldTickIcon="ShieldTickIcon",e.SignDocsIcon="SignDocsIcon",e.SmallClockIcon="SmallClockIcon",e.SoundIcon="SoundIcon",e.StrongBoxIcon="StrongBoxIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserSquareIcon="UserSquareIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon",e.WateringCanIcon="WateringCanIcon"}(y||(y={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlaneIcon="Самолёт",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowUpIcon="Стрелка вверх",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BuildingIcon="Здание с деревом",e.BurgerIcon="Бургер",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",e.Car2Icon="Машина2",e.CardIcon="Кред. карта",e.CardPosIcon="Кред. карта под наклоном",e.CardTickIcon="Кред. карта с галочкой",e.CardWithGemIcon="Карта с драгоценностями",e.CarIcon="Машина",e.ChartSquareIcon="Деньги внутри кошелька",e.CinemaIcon="Кинотеатр",e.ClockIcon="Часы",e.CloseIcon="Крестик",e.ComfortableCompIcon="Кресло",e.CreditCardsIcon="Кредитные карты",e.DiscountShapeIcon="Скидка",e.DocDownloadIcon="Скачать документ",e.DocIcon="Документ",e.DocIconMonoColor="Документ (одноцветный)",e.DocsIcon="Документы",e.DocumentTextIcon="Документ с текстом",e.DollarIcon="Доллар",e.DoneIcon="Зелёная 'галочка' в круге",e.DoneSimpleIcon="Зелёная 'галочка'",e.EarthIcon="Земля",e.EmptyWalletChangeIcon="Пустой кошелёк с возвратом",e.EmptyWalletIcon="Пустой кошелёк",e.EuroIcon="Евро",e.GeolocationIcon="Геолокация",e.GlassIcon="Зеркало",e.GlobalIcon="Глобус",e.GpsIcon="Gps",e.GridIcon="Сетка (белая)",e.InterestGrowthIcon="Диаграмма роста",e.InterestIcon="Скидка",e.JCBIcon="JCB",e.LogoIcon="Logo",e.LoupeIcon="Лупа",e.MapMarkerClusterIcon="Маркер карты",e.MapMarkerSingleIcon="Маркер карты РСХБ",e.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MoneysIcon="MoneysIcon",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PackA4Icon="Пачка бумаги А4",e.PassSendIcon="Бизнес",e.PercentageRoundIcon="Проценты (круг.)",e.PercentageSquareIcon="Проценты",e.PersonalCardIcon="Персональная карта",e.PlayMarketIcon="Лого «PlayMarket»",e.PlusIcon="Плюс",e.PowerIcon="Щит",e.Profile2UserIcon="Профиль, 2 персоны",e.ProfileIcon="Профиль",e.PumpkinIcon="Тыква",e.RoundRubleIcon="Рубль (круг.)",e.SafeIcon="Сейф",e.ShieldTickIcon="Безопасность",e.SignDocsIcon="Подписанные документы",e.SmallClockIcon="Маленькие часы",e.SoundIcon="Звук",e.StrongBoxIcon="Ящик с замочной скважиной",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserSquareIcon="Пользователь в рамке",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCanIcon="Добавить продукт"}(w||(w={}));const I={normal:"text-primary-main",black:"text-black",white:"text-black invert"},C=x((({className:e="",imageClassName:t="",name:n="",alt:a=`Иконка ${w[n]||n}`,title:l=a,iconVersion:r="normal",asSVG:i,...s})=>{const o=`${c.CDN||""}icons/${n}.svg`;return i?u("svg",{className:e,...s,"aria-hidden":"true",children:[l?h("title",{children:l}):null,a?h("desc",{children:a}):null,h("use",{className:`${I[r]} ${t}`,href:`${o}#icon`,xlinkHref:`${o}#icon`})]}):h("img",{className:e,src:o,alt:a,title:l,...s,"aria-hidden":"true"})}));function k(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const S=(e,t)=>e.media&&t.media?e.media-t.media:0,$=x((({className:e="",image:t,imageClassName:n="",isMobile:a=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${a?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(S).map((({src:e,format:n,media:a},l)=>h("source",{srcSet:e,type:B(n),media:a?`(max-width: ${a}px)`:"",...t.size},`${l}_${e}`))):null,T(t,n,a)]})})),T=(e,t="",n=!1)=>{const a={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},l=e.title||"",r=e.alt||e.title,i=n?"m-auto":"m-0";return h("img",{src:e.src,className:`${i} ${t}`,alt:r,title:l,style:a,...e.size})};function B(e){return e?`image/${String(e)}`:void 0}const D=x((({className:e="",image:t,imageClassName:n="",isMobile:a,...l})=>{if(!t)return null;const r="string"==typeof t?t:t.icon;return r||""===r?r.length?h(C,{className:e,imageClassName:n,iconVersion:k(t),name:r,...l}):null:h($,{className:e,imageClassName:n,image:t,isMobile:a})})),R=x((({className:e="",imageClassName:t,image:n,...a})=>h(D,{className:e,imageClassName:t,image:n,...a})));function M(e){return e?e.filter(Boolean).join(" "):""}const A={left:"text-left",center:"text-center",right:"text-right"},V={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"}},L={XXL:{descriptionFont:"text-h5",gap:"gap-[18px]",headingType:"h0",as:"h1"},XL:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h1",as:"h1"},L:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h2",as:"h2"},M:{descriptionFont:"text-xl-light",gap:"gap-3",headingType:"h3",as:"h3"},S:{descriptionFont:"text-xl-light",gap:"gap-2",headingType:"h4",as:"h4"}},P=x((e=>{const{className:t="",description:n}=e;return h("div",{className:`${t}`,children:n})})),_=x((({bgColorHeadline:e="transparent",align:t="center",className:n="",title:a,description:l,headlineVersion:r="XL",as:i,...s})=>{const o=V[e],c=L[r];return u(f,{className:`font-sans flex flex-col p-[50px] ${c.gap} ${o.background} ${n}`,...s,children:[a?h(N,{headingType:c?.headingType,as:i||c?.as,className:`whitespace-pre-wrap ${o.text} ${A[t]}`,title:a}):null,l?h(P,{className:`${c.descriptionFont} ${o.text} ${A[t]}`,description:l}):null]})})),j=x((({className:e,iconClassName:t,textClassName:n,suffixClassName:a,doc:l,icon:r})=>{const{text:i,fileSize:s,...o}=l;return u("a",{className:e,role:"link",...o,children:[r?h(R,{className:t,image:r,width:"24px",height:"24px",asSVG:!0}):null,i?u("span",{className:n,children:[i,h("span",{className:a,children:o?.href&&E(O(o.href),s)})]}):null]})})),E=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),O=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},U=x((({className:e="",doc:t,icon:n})=>h(j,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:n}))),G=x((({className:e,documents:t,columnsMode:n="double",icon:a})=>t?.length?h("div",{className:e,role:"list",children:t.map(((e,t)=>h("div",{className:"double"===n?"basis-[calc(50%-20px)]":"",role:"listitem",children:h(U,{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)),z={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},F=x((({context:e,className:t="",title:n,description:a,align:l="center",documents:r,icon:i={icon:"DocIcon"},columnsMode:s="double",...o})=>u(f,{className:`font-sans text-primary-text p-[50px] bg-white ${t}`,context:e,...o,children:[h(_,{className:"!p-0",title:n,description:a,context:e,align:l,headlineVersion:"M",as:"h2"}),h(G,{className:`mt-8 ${z[s]}`,columnsMode:s,documents:r,icon:i})]}))),W={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},H={primary:"text-primary-text",secondary:"text-white"},X={primary:"text-secondary-text",secondary:"text-white"},J=x((e=>{const{className:t="",icon:n,label:a,description:l,version:r="primary",benefitsVersion:i="normal"}=e,s="white"===i||"secondary"===r;return u("div",{className:`flex gap-5 ${l?"items-start":"items-center"} ${t}`,children:[n?h("div",{className:q(r,i),children:h(R,{className:"w-6 h-6",image:{...n,iconVersion:s?"white":"normal"},asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[a?h("div",{className:`text-h6 ${H[r]}`,children:a}):null,l?h("div",{className:`text-m-light ${X[r]}`,children:l}):null]})]})}));function q(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const K=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),Y=x((({className:e="",context:t,title:n,description:a,image:l,benefits:r,version:i="primary",sum:s,monthLimit:o,directionRight:c=!1,...d})=>u(f,{className:`relative font-sans py-12 px-24 ${W[i]} ${e}`,context:t,...d,children:[h(_,{context:t,className:"!p-0",title:n,description:a,headlineVersion:"M",bgColorHeadline:i,align:"center"}),u("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[l?.src?h(R,{className:c?"order-2":"",image:l}):null,u("div",{className:"w-[558px] m-auto",children:[r?.length?h("div",{className:"flex flex-col gap-4",children:r.map(Z(i))}):null,Q(s,o)]})]})]}))),Z=e=>(t,n)=>h(J,{icon:t.icon,label:t.label,description:t.description,version:e},String(n));function Q(e,t){return e||t?u("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number.isFinite(e)?ee("Страховая сумма:",e,Boolean(t)):null,Number.isFinite(t)?ee("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function ee(e,t=0,n=!1){return u("div",{className:`flex justify-between items-center gap-2 w-full ${n?"w-fit":"w-full"}`,children:[h("span",{className:"text-secondary-text text-l-light",children:e}),u("span",{className:"text-primary-main text-h6",children:[K(t)," ₽"]})]})}const te=e=>e?.includes("//"),ne=e=>(e||"").replace(/\/?\?.*/,""),ae=e=>{if(!e||!te(e))return;const t=e,n=t.indexOf("//"),a=t.indexOf("/",n+"//".length);return-1!==a?t.substring(0,a):t};var le=Object.freeze({__proto__:null,isURL:te,withoutQuery:ne,getOrigin:ae,getHash:e=>{if(!e||!te(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const re="/mobile",ie=(e,t)=>{if(!e)return e;const n=ae(t?.href);return n?e.replace(n,"")||"/":e},se=e=>e;function oe({router:e,handlerDecorator:t=se},n){const a=((e,t)=>{if(!e)return e;const n=ie(e,t)||"",a=t?.pathname.startsWith(re);return a&&!te(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:a,"aria-label":n.text,onClick:t((t=>{const l=a&&!te(a),r=!n.target||"_self"===n.target;l&&r&&(t?.preventDefault(),e.push(a))}),n)}}const ce=x((({text:e,href:t,target:n,onClick:a,className:l="",children:r})=>t?h("a",{className:`no-underline ${l}`,href:t,target:n,onClick:a,children:h("span",{className:l,children:e||r})}):h("span",{className:l,children:e||r})));function de(e){return t=>t.reduce(((t,n,a)=>t.length?t.concat({...e,key:a},n):[n]),[])}const me=x((e=>{const{text:t,aboveText:n,appendLeft:a,appendRight:l}=e;return u("div",{className:he(e),children:[a||null,ue(e)?u("div",{children:[h("div",{className:"text-xs-light text-left",children:n}),h("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,l||null]})})),he=e=>{const{className:t="",version:n,aboveText:a,rounded:l}=e;if("link"===n)return"";const r="gap-2 "+(a?"py-2.5 px-7":"py-4 px-9");return["group flex items-center justify-center",ue(e)?r:"h-12 w-12",l?"rounded-full":"",t].join(" ")},ue=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),xe={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white",link:""},pe="bg-main-divider text-main-disabled",ge={primary:pe,secondary:pe,white:pe,link:""},be="text-center font-sans select-none",fe=({className:e,rounded:t,version:n})=>[be,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",n?xe[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ve=({className:e,rounded:t,version:n})=>["inline-block",be,n?ge[n]:"",t?"rounded-full":"rounded-md",e].join(" "),Ne=x((e=>{const{text:t,aboveText:n,appendLeft:a,appendRight:l,children:r,disabled:i,rounded:s,...o}=e,{asSVG:c,iconRight:d,icon:m,...u}=o,x=r??h(me,{text:t,aboveText:n,appendLeft:a,appendRight:l,rounded:s});return h(i?we:ye,{rounded:s,...u,children:x})})),ye=x((({className:e="",ariaLabel:t,version:n,rounded:a,href:l,target:r,children:i,onClick:s,...o})=>h("a",{className:fe({className:e,version:n,rounded:a}),href:l,target:r,onClick:s,"aria-label":t,role:l?"link":"button",...o,children:i}))),we=x((({className:e,children:t,ariaLabel:n,version:a,rounded:l})=>h("div",{role:"button","aria-disabled":"true","aria-label":n,tabIndex:-1,className:ve({className:e,rounded:l,version:a}),children:t}))),Ie=x((({context:e,className:t="",buttons:n})=>{const{handlerDecorator:a}=e,l=e.useRouter();return n&&n?.length?h("div",{className:t,children:n.map(((e,t)=>function({icon:e,iconRight:t,version:n="primary",...a},l){if(!a?.text)return null;const r="primary"===n?"group-hover:text-black":"group-hover:text-white",i="secondary"===n?"normal":"white";return h(Ne,e?{appendLeft:h(R,{imageClassName:r,image:{...e,iconVersion:i},width:"24",height:"24",asSVG:!0}),appendRight:h(R,{imageClassName:r,image:{...t,iconVersion:i},width:"24",height:"24",asSVG:!0}),version:n,...a}:{version:n,...a},String(l))}(oe({router:l,handlerDecorator:a},e),t)))}):null}));const Ce={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 mt-3","tile-white":"rounded-full inline-block mr-4 mt-3"},ke={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},Se=x((({className:e="",isDotted:t=!0,children:n,version:a="primary"})=>u("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?h("div",{className:$e(a)}):null,h("span",{children:n})]}))),$e=e=>`${Ce[e]} ${ke[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]}`,Te={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},Be={M:"text-xl-light",L:"text-h5-light"},De=x((e=>{const{className:t="",itemClassName:n,isDotted:a,items:l,listItemSize:r="M",version:i="primary"}=e;return h("section",{className:`${Te[i]} ${Be[r]} ${t}`,role:"list",children:l?.length?l.map(((e,t)=>h(Se,{className:n,isDotted:a,version:i,children:e},String(t)))):null})})),Re=x((({className:e="",title:t="",children:n,buttons:a,image:l})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:n}),a?h("div",{className:"mt-auto pt-8",children:a}):null]}),l]})]}))),Me=(e="primary",t="normal")=>({icon:n,label:a,description:l},r)=>h(J,{icon:n,label:a,description:l,version:e,benefitsVersion:t},String(r)),Ae=x((({className:e="",context:t,title:n,headlineVersion:a="L",description:l,benefits:r,benefitsVersion:i="normal",buttons:s,image:o,items:c,version:d="primary",isDotted:m=!0,textBlockClassName:x=""})=>u("div",{className:`flex grow justify-between items-stretch h-full ${e}`,children:[u("div",{className:`flex flex-col ${x}`,children:[h(_,{context:t,title:n,description:l,className:"!p-0 max-w-[600px]",bgColorHeadline:d,headlineVersion:a,align:"left"}),u(Re,{context:t,buttons:Ve(t,s),children:[r?.filter((e=>e.label))?.length?h("div",{className:"flex gap-6 mt-6",children:r.map(Me(d,i))}):null,c?.length?h(De,{className:"mt-5 text-h6",items:c,itemClassName:"mb-[7px]",version:d,isDotted:m}):null]})]}),o?.src&&h(R,{className:"mt-[-50px]",image:o})]}))),Ve=(e,t)=>t?.length?h(Ie,{context:e,buttons:t,className:"flex gap-4"}):null;function Le(e,t,n){const{text:a,href:l,target:r,onClick:i}=e,s="primary"===t?"white":"black";return u("div",{className:`flex items-center cursor-pointer ${n}`,onClick:i,children:[h(Ne,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:a,href:l,target:r,children:h(R,{className:"w-4 h-4",image:{...e?.icon||{icon:"ArrowLeftIcon"},iconVersion:s},asSVG:!0})}),a?h("span",{className:"text-m",children:a}):null]})}const Pe={primary:"text-secondary-text",secondary:"text-white/80"},_e=x((e=>{const{context:t,className:n="",breadcrumbs:a,backwardButton:l,version:r="primary",...i}=e,s=t.useRouter(),{handlerDecorator:o}=t;return u(f,{context:t,className:`font-sans overflow-hidden p-[50px] flex flex-col box-border min-h-[454px] ${W[r]} ${n}`,...i,children:[l?.text?Le(oe({router:s,handlerDecorator:o},l),r,"mb-10 -mt-2.5"):null,a?.length?h("div",{className:"text-xs-light mb-6",children:de(h("span",{className:`mx-2 ${Pe[r]}`,children:"/"}))(a.map(((e,t)=>h(ce,{...oe({router:s,handlerDecorator:o},{className:Pe[r],...e})},String(t)))))}):null,h(Ae,{context:t,version:r,...i})]})})),je={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"}},Ee=x((({title:e,description:t,blockVersion:n="primary",iconVersion:a,image:l,className:r,...i})=>{const s=je[n];return u(f,{className:`font-sans px-9 py-4 flex ${s.background} ${r||""}`,...i,children:["small"===a?Oe(s.icon):null,"big"===a?Ue(l):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${s.title}`,children:e}):null,t?h("div",{className:`text-s ${s.description}`,children:t}):null]})]})}));function Oe(e){return h("div",{className:"pt-1.5 pl-1 pr-4",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Ue(e){return e?.src?h(R,{className:"pt-0.5 pr-3",image:e}):null}const Ge=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function ze(e=""){const t=Ge(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Fe(e=""){const t=Ge(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const We=x((e=>{const{context:t,title:n,headingType:a="h3",description:l,items:r,children:i,buttons:s,image:o,isDotted:c=!0,listItemSize:d="M",className:m="",version:x="primary",...p}=e,g="primary"===x?"text-primary-text":"";return h(f,{context:t,className:`overflow-hidden font-sans p-9 pr-3 box-border ${m} ${W[x]} ${Fe(m)} ${ze(m)} `,...p,children:u(Re,{context:t,title:n?h(N,{headingType:a,as:"h2",title:n,className:`whitespace-pre-wrap max-w-[600px] ${g}`}):null,buttons:s?.length?h(Ie,{context:t,buttons:s.map((e=>({...e,className:"w-[158px]"}))),className:"flex mt-8 gap-3"}):null,image:o?.src?h(R,{className:"mt-auto ml-7",image:o}):null,children:[l?h(P,{className:"max-w-[600px] text-xl-light mt-2",description:l}):null,i,He(r,{version:x,isDotted:c,listItemSize:d})]})})}));function He(e,{version:t,isDotted:n,listItemSize:a}){const l="primary"===t?"tile":"tile-white";return e?.length?h(De,{items:e,isDotted:n,className:"mt-3",listItemSize:a,itemClassName:"mb-1.5",version:l}):null}const Xe=x((({context:e,className:t="",title:n,headlineVersion:a="S",description:l,additionalDescription:r,benefits:i=[],buttons:s,image:o,version:c="primary",...d})=>u(f,{context:e,className:`overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]\n ${t} ${W[c]} ${Fe(t)}`,...d,children:[h(_,{context:e,className:"!p-0 !bg-transparent z-10 "+(n||l?"mb-3.5":""),as:"h2",title:n,description:l,headlineVersion:a,bgColorHeadline:c,align:"left"}),Je(i,c,o),r?Ke(r,o,c):null,s?.length?h(Ie,{context:e,buttons:s,className:"flex self-end mt-5 gap-4 z-10 text-l"}):null,o?.src?h(R,{className:"absolute right-0 bottom-0",image:o}):null]})));function Je(e,t,n){return h("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline \n ${n?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(qe(t)):null})}function qe(e="primary"){const t={primary:"text-secondary-text",secondary:"text-white"};return function(n,a){const{label:l="",description:r=""}=n;return[h("div",{className:"text-h6",children:l},`label-${a}`),h("div",{className:`text-m-light ${t[e]}`,children:r},`desc-${a}`)]}}function Ke(e,t,n="primary"){return h("div",{className:`text-m-light mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"} ${{primary:"text-secondary-text",secondary:"text-white"}[n]}`,children:e})}const Ye=x((({className:e,disabled:t,...n})=>h(Ne,{rounded:!0,className:`group shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...n,children:h(R,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"16",height:"16",asSVG:!0})})));function Ze({handler:e,isShown:t,btnClass:n,className:a="",isDisabled:l=!1}){return u("div",{children:[t[0]||l?h(Ye,{className:`absolute z-10 ${n[0]} ${a}`,onClick:e[0],ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!t[0]}):null,t[1]||l?h(Ye,{className:`absolute z-10 rotate-180 ${n[1]} ${a}`,onClick:e[1],ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!t[1]}):null]})}const Qe={normal:3,mini:4},et={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},tt={normal:380,mini:276},nt=x((({title:e,description:t,image:n,items:a,button:l,version:r,isDotted:i=!0})=>{const s=function(e){return`text-xl-light m-0\n ${"secondary"!==e?"text-primary-text":""}\n `}(r);return u("div",{className:"h-full flex flex-col justify-between text-center",children:[u("div",{children:[n?.src?h("div",{className:"flex justify-center",children:h(R,{className:"mb-6",image:n})}):null,e?lt(e,s):null,t?h("div",{className:"text-m"+(e?"mt-2":""),children:t}):null,a?.length?rt(a,i,r):null]}),l?.text?at(l):null]})}));function at(e){return h(Ne,{className:"mt-6 w-full",appendLeft:e.icon&&h(R,{image:e.icon,width:"24px",height:"24px",asSVG:!0}),...e})}function lt(e,t){return h("div",{className:`text-xl-light m-0 ${t}`,children:e})}function rt(e,t,n="primary"){return h(De,{className:"max-w-[308px] mt-2 text-s "+("primary"===n?"!text-secondary-text":""),itemClassName:"mt-1 text-left first:mt-0",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:n})}const it=x((({context:e,title:t,description:n,cards:a=[],version:l="normal",activeCardIndex:r})=>u("div",{children:[h("div",{className:"absolute top-0 left-0 bottom-0 w-[84px] bg-gradient-to-r from-white to-transparent"}),h(_,{context:e,className:"!p-0",title:t,description:n,headlineVersion:"L",align:"center"}),h("div",{className:`flex mt-8 ${a?.length<=Qe[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${r*tt[l]}px)`},role:"list",children:a?.map(((t,n)=>function({card:e,version:t},n){return h("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${et[t]} ${W[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:h(nt,{...e})},String(n))}({card:t,version:l,context:e},n)))})]})));const st=x((({context:e,cards:t=[],className:n="",version:l="normal",...r})=>{const[i,s]=a(0),o=t?.length>Qe[l],c=o&&t?.length-i>Qe[l],d=o&&i>0;return u(f,{context:e,className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden ${n}`,...r,children:[h(it,{context:e,cards:t,version:l,activeCardIndex:i,...r}),Ze({handler:[()=>s(i-1),()=>s(i+1)],isShown:[d,c],btnClass:["left-8","right-8"],className:"top-1/2"}),h("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),h("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]})})),ot=x((e=>h(st,{...e,version:"normal"}))),ct=x((e=>h(st,{...e,version:"mini"}))),dt=x((({className:e="",documents:t,...n})=>h(f,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:h("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?mt(t):null})}))),mt=e=>e.map(((e,t)=>{const{text:n,...a}=e;return h("li",{className:"mb-4 list-none",children:h("a",{className:"hover:text-primary-main",role:"link",...a,children:n||null})},`list_item_${String(t)}`)})),ht={Headline:_,LinkDocs:F,TextBlock:Ee,PictureText:Y,ProductBlock:_e,Tile:We,ProductTile:Xe,Gallery:ot,MiniGallery:ct,LinkList:dt},ut=({blocks:e,context:t,className:n=""})=>e?.length?e.map(xt({context:t,className:n})):null,xt=({context:e,className:t})=>(n,a)=>{if(!n)return null;const{style:l,blockListType:r,...i}=n;if(!r||!(r in ht))return null;const s=M(l);return h(ht[r],{className:`${t} ${s}`,context:e,...i},`block_${a}`)},pt=x((({blocks:e,context:t})=>h("div",{className:"grid grid-cols-12 transition-all duration-300 max-h-0 overflow-hidden",children:ut({context:t,blocks:e,className:"!p-0 mb-3.5"})}))),gt=x((({label:e,isExpanded:t,blocks:n,context:l})=>{const{isActive:r,hasContent:i,icon:s,handleToggle:o}=(({blocks:e,initialState:t=!1})=>{const[n,l]=a(t),r=e?.length;return{isActive:n,hasContent:r,icon:n?"MinusIcon":"PlusIcon",handleToggle:e=>{const t=e.currentTarget;if(!t)return;l(!n);const a=t.nextSibling;a.style.maxHeight=a.style.maxHeight?"":`${a.scrollHeight}px`}}})({blocks:n,initialState:t});return u("li",{className:"border-0 border-b border-solid border-main-divider last:border-b-0",children:[u("button",{className:`border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full\n font-sans text-h6 ${i?"group cursor-pointer":""}\n `,onClick:o,children:[h("span",{className:"text-xl font-medium pr-2.5",children:e}),i?h(R,{image:s,className:"text-primary-main flex-shrink-0",width:"24",height:"24",asSVG:!0}):null]}),i?h(pt,{isExpanded:r,blocks:n,context:l}):null]})})),bt={left:"text-left",center:"text-center",right:"text-right"},ft=x((({title:e,description:t,accordionItems:n,context:a,className:l="",accordionAlignTitle:r="center",...i})=>u(f,{context:a,className:`p-[50px] mb-1 last:mb-0 font-sans bg-white text-primary-text ${l}`,...i,children:[e?h(N,{headingType:"h3",as:"h2",className:`mb-2.5 ${bt[r]}`,title:e}):null,t?h("div",{className:"mb-2.5 text-l",children:t}):null,n?.length?h("ul",{className:"list-none m-0 p-0",children:n.map(((e,t)=>h(gt,{...e,context:a},`AccordionItem${t}`)))}):null]}))),vt={primary:"bg-white",secondary:"bg-primary-main"},Nt={primary:"",secondary:"text-white"},yt={primary:"text-secondary-text",secondary:"text-white opacity-80"},wt={primary:"bg-main-divider text-primary-main",secondary:"bg-white/30 text-black"},It=x((({className:e="",title:t,benefitList:n,benefitsBlockVersion:a="primary",...l})=>u(f,{className:`font-sans text-primary-text p-12 flex flex-col items-center ${e} ${vt[a]}`,...l,children:[t?h(N,{headingType:"h3",as:"h2",className:`max-w-[47rem] text-center ${Nt[a]}`,title:t}):null,n?.length?Ct(n,a):null]}))),Ct=(e,t)=>h("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:e.map(St(t))}),kt=(e,t)=>e.icon?(e.iconVersion="secondary"===t?"white":"normal",e):e,St=e=>(t,n)=>{const a=t?.description||void 0;return u("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[t?.icon?.icon?h(R,{className:`w-[50px] h-[50px] min-w-[50px] p-3 rounded-full ${wt[e]}`,image:kt(t.icon,e),asSVG:!0}):null,t?.icon?.src?h(R,{image:t.icon}):null,u("div",{className:"ml-5",children:[t?.label?h("h3",{className:`text-h6 m-0 ${Nt[e]}`,children:t.label}):null,$t(a,e)]})]},String(n))},$t=(e,t)=>{const n=e?e?.benefitType:null;return n&&e?h("div",{className:`text-l-light mt-2 ${yt[t]}`,children:"list"===n?Bt(e):Tt(e)}):null},Tt=e=>e?e.name:null,Bt=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?h("ul",{className:t,children:e.items.map(((e,t)=>h("li",{children:e},`benefitListItem-${t}`)))}):null},Dt=x((e=>{const{context:t,className:n="",title:a,description:l,bonusItems:r,...i}=e;return h(f,{className:`font-sans bg-white p-[50px] pb-9 ${n}`,context:t,...i,children:u("div",{className:"container",children:[h(_,{context:t,className:"!p-0",title:a,description:l,headlineVersion:"M",align:"center"}),h("div",{className:"flex flex-wrap w-full mt-9",children:r?r.map(((e,t)=>h("div",{className:"flex-grow w-[49%] border border-gray pl-9 pt-9 pr-6 pb-6 mb-[14px] mx-[7px] even:mr-0 odd:ml-0 last:odd:mx-0",children:u("div",{className:"flex justify-between w-full",children:[u("div",{className:"mr-4",children:[h("div",{className:"text-h4",children:e.title}),h("div",{className:"text-xl-light mt-[14px] max-w-[488px]",children:e.description})]}),e.bonusCount?u("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[h("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}),h("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName})]}):null]})},String(t)))):null})]})})}));function Rt(e=""){const t=Ge(e);return t<=6?"grid-cols-2":t<=8?"grid-cols-3":"grid-cols-4"}const Mt=x((({context:e,className:t="",title:n,subtitle:a,bonusBenefits:l,...r})=>u(f,{className:`font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${t}`,context:e,...r,children:[h(_,{context:e,className:"!p-0",title:n,description:a,headlineVersion:"M",align:"center"}),l?.length?h("div",{className:`grid gap-1 mt-8 ${Rt(t)}`,children:l.map(At)}):null]}))),At=(e,t)=>u("div",{className:"flex flex-col items-center max-w-[292px]",children:[e?.icon?h(R,{className:"h-[160px] w-[180px] min-w-[180px] min-h-[160px]",image:e.icon,width:"180",height:"160"}):null,h("div",{children:e?.label?h("span",{className:"text-h6 m-0",children:e.label}):null})]},String(t)),Vt=x((({title:e,value:t,postfix:n="",prefix:a,className:l=""})=>u("div",{className:`mb-7 ${l}`,children:[e?h("div",{className:"text-l-light text-secondary-text",children:e}):null,t?u("div",{className:"text-h3",children:[a," ",K(Math.round(t))," ",n]}):null]}))),Lt=6e4,Pt=2e6,_t=97e4,jt=Math.round(23.5),Et={minSum:Lt,maxSum:Pt,minMonths:13,maxMonths:60,rateBottomRange:10,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},Ot={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Ut=x((({rate:e,title:t="Ставка",unit:n,rateBlockClassName:a})=>u("div",{children:[h("div",{className:"text-l-light text-secondary-text",children:t}),u("div",{className:"flex justify-start",children:[h("span",{className:`block gradient-color-text font-mohave text-title-huge pr-6 -mt-4 ${a}`,children:String(e).replace(".",",")}),n?h("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:n}):""]})]})));function Gt(e,t){return t?.length?h(Ie,{context:e,buttons:t,className:"flex flex-col mt-7 gap-2"}):null}const zt=(e,t,n)=>Math.max(t,Math.min(e,n)),Ft=x((({className:e,title:t,items:n=[],min:a=1,max:l=100,step:r=1,value:i=a,disabled:s=!1,onChange:o})=>{const c=e=>{var t;o&&o(zt((t=e.target.value,Number(t.replace(/\D/g,""))),a,l))},d={backgroundSize:`${(100*(i-a)/(l-a)).toFixed(2)}% 100%`};return u("div",{className:e,children:[u("label",{className:"block relative",children:[t?h("span",{className:"text-m-light",children:t}):null,h("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-focus disabled:border-main-stroke disabled:bg-main-divider",value:K(i),disabled:s,onChange:c,onBlur:c}),h("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:h("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:a,max:l,step:r,value:i,disabled:s,onChange:c,style:d})})]}),Wt(n)]})}));function Wt(e){return h("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>h("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const Ht=1e3;function Xt(e,t,n){const{moneyValue:a,minSum:l,maxSum:r,step:i=Ht,isShowItems:s=!0}=t,o=[`От ${K(l)} ₽`,`До ${K(r)} ₽`];return h(Ft,{title:e,items:s?o:[],min:l,max:r,step:i,value:zt(a,l,r),onChange:n})}const Jt=new Map;function qt(e){return e?Array.isArray(e)?e:e instanceof Function?qt(e()):[e]:[e]}let Kt=function(e,t,{fallback:n}={}){const r=i((()=>qt(e)),[e]),[s,o]=a(),[c,d]=a(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};l((()=>{if(!r.every((e=>null===e)))try{const e=t(...r);"then"in e?(e=>{e.then((e=>Jt.get(r)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...r]);const u=r[0],x=n&&"string"==typeof u&&n[u];return{data:s||c||!x?s:x,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}};const Yt=(...e)=>Kt(...e);async function Zt(e,t){try{return await Qt(e,t)}catch(e){console.error(e)}return null}async function Qt(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function en(e){const{data:t}=Yt(`/wcms-resources/${e}.json`,Qt);return t}const tn=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:a}=e,l=en(t||"bonus-calculator-data")||Ot,[r,i]=((e,t,n)=>{const{minSumTravel:a,minSumOther:l,maxBonus:r,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===a&&n===l)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*n),r);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*n),r)*(12-i)]})(l,n,a);return{...l,...e,monthBonus:r,yearBonus:i}},nn=e=>e?h("p",{className:"text-s-light text-secondary-text mt-7",children:e}):null,an=x((({context:e,className:t="",sourceBookDir:n="",buttons:l,footnote:r})=>{const[i,s]=a(6e3),[o,c]=a(6e3),d={travelExpenseValue:i,restExpenseValue:o},{minSumTravel:m,maxSumTravel:x,minSumOther:p,maxSumOther:g,monthBonus:b,yearBonus:f}=tn(d,n);return u("section",{className:t,children:[u("div",{className:"w-[468px]",children:[Xt("Сумма покупок в категории путешествия, ₽",{minSum:m,maxSum:x,moneyValue:i,step:500,isShowItems:!1},s),Xt("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:p,maxSum:g,moneyValue:o,step:500,isShowItems:!1},c)]}),h("div",{children:b>=0?h(Ut,{title:"Баллов за месяц",rate:b,rateBlockClassName:"tracking-[-14px]"}):null}),u("div",{className:"w-full max-w-[350px]",children:[f>=0?h(Vt,{title:"Баллов за год",value:f}):null,Gt(e,l),nn(r)]})]})})),ln=x((({className:e,viewBox:t,fill:n="none",width:a,height:l,paths:r,...i})=>h("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:a,height:l,children:r.map((({d:e,fill:t,...n},a)=>h("path",{d:e,fill:t||"currentColor",...i,...n},a)))}))),rn=[{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"}],sn=x((({className:e,text:t,checked:n,isRadio:a,onChange:l})=>h("div",{className:e,children:u("label",{className:"flex items-center relative cursor-pointer group",children:[h("input",{className:`peer appearance-none w-5 h-5 border-solid cursor-pointer group-hover:border-checkbox-hover\n ${a?"rounded-full border-2":"rounded checked:bg-primary-main border"}\n ${n?"border-black":"border-main-stroke"}\n checked:border-primary-main m-0`,type:"checkbox",onChange:e=>{l(e.target.checked)},checked:n}),a?h("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):h(ln,{paths:rn,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?h("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})})));function on(e,t,n){const{minMonths:a,maxMonths:l,monthsValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return h(Ft,{className:"mt-7",title:e,items:[`От ${i(a)}`,`До ${i(l)}`],min:a,max:l,step:1,value:zt(r,a,l),onChange:n})}const cn=x((({items:e,checkedItem:t,onChangeCheckedItem:n})=>h("div",{className:"flex flex-col gap-3",children:e?.map((({id:e,text:a})=>h(sn,{isRadio:!0,text:a,checked:t===e,onChange:()=>n(e)},e)))})));function dn(e,{items:t,checkedItem:n,onChange:a}){return h(cn,{context:e,items:t,checkedItem:n,onChangeCheckedItem:a})}const mn=(e,t)=>{const{isInsurance:n,isSalaryClient:a,isStateEmployee:l,moneyValue:r}=e,i=en(t||"credit-calculator-data")?.rows?.find((e=>n===e.isInsurance&&a===e.isSalaryClient&&l===e.isStateEmployee))||Et,{rateBottomRange:s,rateTopRange:o,sumBorder:c}=i,d=r<=c?s:o,m=((e,t)=>{const{isAnnuity:n,moneyValue:a,monthsValue:l}=t;if(n){const t=e/1200;return a*(t+t/(Math.pow(1+t,l)-1))}return Math.round(a/l)+a*(e/1200)})(d,e);return{...i,...e,finalRate:d,monthlyPayment:m}},hn="annuity",un="differential",xn=[{id:hn,text:"Аннуитетный"},{id:un,text:"Дифференцированный"}],pn=x((({context:e,className:t="",sourceBookDir:n,buttons:l,footnote:r})=>{const[i,s]=a(!1),[o,c]=a(!0),[d,m]=a(!1),[x,p]=a(!1),[g,b]=a(_t),[f,v]=a(jt),N=mn({isAnnuity:i,isInsurance:o,isSalaryClient:d,isStateEmployee:x,moneyValue:g,monthsValue:f},n);return u("section",{className:t,children:[u("div",{className:"w-[468px]",children:[Xt("Сумма кредита, ₽",{...N,step:500},b),on("Срок кредита, месяцев",N,v),u("div",{className:"mt-7",children:[h(sn,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:d,onChange:m}),h(sn,{className:"mt-3",text:"Работаю в бюджетной организации",checked:x,onChange:p}),h(sn,{className:"mt-3",text:"Комплексная страховая защита",checked:o,onChange:c})]})]}),h(Ut,{title:"Ставка",rate:N.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Vt,{title:i?"Ежемесячный платеж":"Платёж в первый месяц",value:N.monthlyPayment,postfix:"₽"}),dn(e,{items:xn,checkedItem:i?hn:un,onChange:e=>s(e===hn)}),Gt(e,l),nn(r)]})]})})),gn="everyMonth",bn="atEndTerm",fn=[{id:gn,text:"Ежемесячно"},{id:bn,text:"В конце срока"}],vn={CreditCalculatorForm:pn,DepositCalculatorForm:x((({context:e,className:t="",rate:n,buttons:l,footnote:r})=>{const[i,s]=a(_t),[o,c]=a(jt),[d,m]=a(!1);return u("section",{className:t,children:[u("div",{className:"w-[468px]",children:[Xt("Сумма вклада, ₽",{moneyValue:i,minSum:Lt,maxSum:Pt},s),on("Срок вклада, месяцев",{minMonths:13,maxMonths:60,monthsValue:o},c)]}),h(Ut,{rate:n||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Vt,{title:"Доход по вкладу",value:948841,postfix:"₽",prefix:"+"}),h(Vt,{title:"Сумма в конце срока",value:1218841,postfix:"₽"}),dn(e,{items:fn,checkedItem:d?gn:bn,onChange:e=>m(e===gn)}),Gt(e,l),nn(r)]})]})})),BonusCalculatorForm:an},Nn=({context:e,className:t})=>(n,a)=>{const l=n?.calcType;if(!l||!(l in vn))return null;const r=vn[l];return h("section",{className:`box-border relative bg-white flex shrink-0 self-start basis-full ${t}`,role:"listitem",children:u("div",{className:"box-border p-9 w-full",children:[n?.title?h(N,{className:"text-center mb-6",title:n.title}):null,h(r,{context:e,...n,className:"flex justify-between"})]})},String(a))},yn=x((({className:e="",context:t,calculatorTabs:n=[],...l})=>{const r=n.map((e=>e.nav||{})),i=n.map((({calculatorBlock:e})=>e||{})),[s,o]=a(0),[c,d]=a(0),m=n?.length>3&&n?.length>c+3,x=c>0;return u(f,{context:t,className:`box-border overflow-hidden relative font-sans w-100 text-primary-text bg-white ${e}`,...l,children:[u("div",{className:"bg-white",children:[r.length>1?wn({tabsShift:c,tabsNav:r,activeSlideIndex:s,setActiveSlideIndex:o}):null,Ze({handler:[()=>d(c-1),()=>d(c+1)],isShown:[x,m],btnClass:["left-3","right-3"],className:"top-8"})]}),h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(Nn({context:t,className:e})):null})]})}));function wn({tabsShift:e,tabsNav:t,activeSlideIndex:n,setActiveSlideIndex:a}){return u("div",{children:[h("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:h("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,activeSlideIndex:n,onClick:a}){const l=t===n,r=l?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",i=l?"text-xl mb-1.5":"text-l mb-[3px]",s=l?"text-l-light text-white":"text-m-light text-secondary-text",o=l?"":"text-primary-main";return u("button",{type:"button",onClick:a,"aria-label":e?.title,className:`box-border relative border border-main-stroke cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${r}`,children:[h(R,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${o}`,image:{...e?.icon,iconVersion:l?"white":"normal"},width:"24",height:"24",asSVG:!0}),u("div",{className:"border-0",children:[h("div",{className:`${i}`,children:e?.title}),h("div",{className:`${s}`,children:e.description})]})]},String(t))}({tab:e,i:t,activeSlideIndex:n,onClick:()=>a(t)})))})}),h("div",{className:"w-full h-2 bg-primary-main"})]})}const In=x((({className:e="",label:t,onChange:n,value:a="",minValue:l=0,maxValue:r=3e5,...i})=>u("div",{className:e,children:[t?h("label",{className:"block text-m-light mb-2",children:t}):null,u("div",{className:"h-[56px] relative flex items-center",children:[h("input",{type:"number",className:"text-l pl-4 pr-8 w-full h-full rounded-md border border-solid border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text",onChange:e=>{if(!n)return;const t=""===e.target.value?"":String(zt(e.target.value,l,r));n(t)},value:a,min:l,max:r,...i}),h("span",{className:"text-xl-light absolute right-4",children:"₽"})]})]}))),Cn={version:"primary",className:"w-full h-[56px] px-9 mt-6"},kn=x((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",placeholder:l="1500",buttonText:r="Далее",...i})=>{const[s,o]=a(""),c=!Number(s);return u(f,{className:`p-[50px] flex flex-col items-center font-sans bg-white ${e}`,...i,children:[t?h(N,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,u("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[h(In,{name:"amount",value:s,onChange:o,placeholder:l,label:n}),h("button",{type:"submit",className:c?ve(Cn):fe(Cn),disabled:c,children:r})]})]})})),Sn={default:"normal",primary:"white",secondary:"black"},$n={black:"bg-black",white:"bg-white"},Tn=x((({className:e="",title:t,description:n,image:a,price:l,button:r,colors:i})=>u("section",{className:`border border-solid box-border p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[a?.src?h(R,{className:"mb-5 flex justify-center",image:a}):null,t?h(N,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,n?h("div",{className:"text-m-light text-left mb-4",children:n}):null,i?.length?u("div",{className:"flex mb-4 text-m-light text-secondary-text",children:[h("div",{className:"mr-1.5",children:"Доступные цвета: "}),i.map(Bn)]}):null,l?u("div",{className:"text-h3 text-left",children:[l," ₽"]}):null,r?Dn(r):null]}))),Bn=(e,t)=>h("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${$n[e]}`},String(t)),Dn=e=>{const{icon:t,iconRight:n,...a}=e;if(!e?.text)return null;const l=Sn[e?.version||"default"],r=Rn({...t,iconVersion:l}),i=Rn({...n,iconVersion:l});return h(Ne,{className:"mt-5 w-full",appendLeft:r,appendRight:i,...a})},Rn=e=>{if(!e||!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(R,{image:e,width:t,height:"24",asSVG:!0})},Mn="absolute top-0 bottom-0 w-[84px]",An=x((({context:e,cards:t=[],className:n="",title:l,description:r,...i})=>{const[s,o]=a(0);return u(f,{context:e,className:`bg-white relative font-sans p-12 overflow-hidden text-center ${n}`,...i,children:[h(_,{context:e,className:"!p-0",title:l,description:r,headlineVersion:"M",align:"center"}),h("div",{className:"flex duration-1000 gap-3.5 mt-8",style:{transform:`translateX(-${430*s}px)`},role:"list",children:t?.length?t.map(Vn(e)):null}),Ln({cardsCount:t.length,activeCardIndex:s,setActiveCardIndex:o}),h("div",{className:`${Mn} left-0 bg-opacity-from-white`}),h("div",{className:`${Mn} right-0 bg-opacity-to-white`})]})})),Vn=e=>(t,n)=>h(Tn,{context:e,...t},String(n)),Ln=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:n})=>{const a=e>3;return Ze({handler:[()=>n(t-1),()=>n(t+1)],isShown:[a&&t>0,a&&e-t>3],btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"})},Pn=({columnsLength:e,colsLengthForScroll:t,activeCardIndex:n,setActiveCardIndex:a})=>{const l=e>t;return{handleNextClick:()=>a(n+1),handlePrevClick:()=>a(n-1),isScrollAvailable:l,showNextButton:l&&e-n>t,showPrevButton:Boolean(l&&n>0)}},_n="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",jn="border-main-stroke border-solid border",En="border-main-divider border border-t-0 border-x-0",On="w-[200px] mr-6",Un=x((({icon:e,image:t,title:n,link:a})=>u("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${jn} ${_n}`,role:"columnheader",children:[e&&!t?.src&&h(R,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&h(R,{className:"mb-[18px]",image:t}),n?h(N,{headingType:"h4",as:"h3",className:"text-center text-white",title:n}):null,a?.text&&h("div",{className:"mt-auto w-full",children:h(Ne,{href:a.href,target:a.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:h("div",{className:"text-xs-light font-medium py-[11px]",children:a.text})})})]}))),Gn={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},zn=x((({children:e,activeCardIndex:t,columnWidth:n,version:a="comparison"})=>h("div",{className:"flex flex-1 overflow-hidden",children:h("div",{className:Gn[a],style:{transform:`translateX(-${t*n}px)`},children:e})}))),Fn=x((({children:e})=>h("div",{className:"self-start flex flex-col",role:"row",children:h("div",{className:"flex",children:e})}))),Wn=x((({colHeaders:e,activeCardIndex:t,router:n,handlerDecorator:a})=>u(Fn,{children:[h("div",{className:On,role:"columnheader"}),h(zn,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>h(Un,{...e,link:e.link&&oe({router:n,handlerDecorator:a},e.link)},String(t))))})]}))),Hn=x((({isScrollAvailable:e,handleNextClick:t,handlePrevClick:n,showNextButton:a,showPrevButton:l})=>e?h("div",{children:Ze({handler:[n,t],isShown:[l,a],btnClass:["top-[108px]","top-11"],className:"right-7",isDisabled:!0})}):null)),Xn=x((({cell:e,isFirstRow:t,isLastRow:n,isFillGradient:a})=>h("div",{className:`w-80 box-border flex flex-col ${jn} ${n?"border-t-0 rounded-b-md":"border-y-0"} ${a?_n:""}`,role:"cell",children:h("div",{className:`mx-7 h-full ${En} ${a&&t?"border-t":""} ${n?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>Kn(e,t,a)))})}))),Jn=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),qn=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),Kn=({label:e,description:t},n,a)=>u("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?h("h4",{className:Jn(a),children:e}):null,t?h("div",{className:qn(a),children:t}):null]},String(n)),Yn=(e=!1)=>`text-s py-7 ${En} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,Zn=x((({row:{header:e,data:t},activeCardIndex:n,isColoredFirstColumn:a,isFirstRow:l,isLastRow:r})=>u(Fn,{children:[e?.title?h("div",{className:Yn(r),children:e.title}):null,t?.length?h(zn,{activeCardIndex:n,columnWidth:336,children:t.map(((e,t)=>h(Xn,{cell:e,isFirstRow:l,isLastRow:r,isFillGradient:a&&0===t},String(t))))}):null]}))),Qn=x((({rowData:e,activeCardIndex:t,isColoredFirstColumn:n,...a})=>u("div",{className:"relative",children:[e.map(((e,a,{length:l})=>h(Zn,{row:e,isFirstRow:0===a,isLastRow:a+1===l,activeCardIndex:t,isColoredFirstColumn:n},String(a)))),h(Hn,{...a})]}))),ea=x((({context:e,columns:t,rowHeaders:n,isShowAllRow:l,visibleRowLength:r,isColoredFirstColumn:i})=>{const s=e.useRouter(),{handlerDecorator:o}=e,c=t?.map((({header:e})=>e||{})),d=t?.map((({data:e})=>e))||[],m=n?.map(((e,t)=>({header:e,data:d.map((e=>e?.[t]||[{}]))}))).slice(0,l?n.length:r),[x,p]=a(0),g=Pn({columnsLength:d.length,colsLengthForScroll:2,activeCardIndex:x,setActiveCardIndex:p}),{isScrollAvailable:b}=g;return u("div",{children:[u("div",{role:"table",children:[c?.length?h(Wn,{colHeaders:c,activeCardIndex:x,router:s,handlerDecorator:o}):null,m?.length?h(Qn,{rowData:m,activeCardIndex:x,isColoredFirstColumn:i,...g}):null]}),b?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),ta=x((({className:e="",context:t,title:n,rowHeaders:l,columns:r,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=a(!i);return u(f,{context:t,className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e}`,...o,children:[h(N,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:n}),h(ea,{context:t,columns:r,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?na({isShowAllRow:c,onClick:()=>d(!c)}):null]})})),na=({isShowAllRow:e,onClick:t})=>h("div",{className:"pr-[50px]",children:u("div",{className:"flex w-full",children:[h("div",{className:On}),h("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:h("div",{className:"font-sans text-xs-light font-medium py-[11px]",children:e?"Скрыть":"Показать все параметры"})})]})}),aa=e=>"Image"===e?.errorContentType&&e?.image?h(R,{image:e.image}):"Code"===e?.errorContentType&&e.code?h("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,la=x((({context:e,className:t="",title:n,subtitle:a,error:l,button:r})=>{const{useRouter:i,handlerDecorator:s}=e,o=i();return u("section",{className:`flex flex-col justify-center items-center mt-12 ${t}`,role:"listitem",children:[h("div",{className:"flex justify-center py-20",children:aa(l)}),n?h(N,{headingType:"h1",className:"text-left mb-4",title:n}):null,a?h("div",{className:"font-sans text-xl-light text-left mb-7 max-w-[613px] text-center",children:a}):null,r?.text?h(Ne,{className:"py-4 px-9",version:r?.version,...oe({router:o,handlerDecorator:s},r),children:r.text}):null]})})),ra=(e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n};function ia(){return Zt(sa,{method:"POST",body:JSON.stringify(oa)})}const sa="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",oa={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},ca=e=>e.reduce(((e,t)=>{const n=t.currency_first?.code;return e.some((e=>e.code===n))||e.push({code:n,buy:ra(Number(t.rate_buy),3),sell:ra(Number(t.rate_sell),3)}),e}),[]);var da;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(da||(da={}));const ma=new Intl.NumberFormat("ru",{style:"currency",currency:da.RUB}),ha=e=>e?ma.format(e):"",ua="text-left text-m-light text-secondary-text",xa={USD:"DollarIcon",EUR:"EuroIcon"},pa=x((({className:e,exchangeCurrencyItems:t})=>u("table",{className:`h-fit w-fit ${e}`,children:[h("thead",{children:u("tr",{children:[h("th",{className:ua,children:"Валюта"}),h("th",{className:`${ua} pl-11`,children:"Купить"}),h("th",{className:`${ua} pl-11`,children:"Продать"})]})}),h("tbody",{children:t.map((e=>ga(e)))})]}))),ga=e=>{const t=e?.code;return u("tr",{className:"pb-1 text-h6",children:[h("td",{className:"pt-4",children:u("div",{className:"flex items-center",children:[t?h(R,{image:{icon:xa[t]},width:"24",height:"24"}):null,h("span",{className:"ml-2",children:t})]})}),h("td",{className:"pt-4 pl-11",children:ha(e?.sell)}),h("td",{className:"pt-4 pl-11",children:ha(e?.buy)})]},t)},ba=x((({className:e="",address:t,distance:n})=>u("div",{className:`flex ${e}`,children:[h(R,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),u("div",{className:"ml-3",children:[t?h("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,n?u("p",{className:"text-secondary-text m-0 text-m",children:["Курс указан для ближайшего офиса - ",n]}):null]})]}))),fa=(e,t,n)=>{const a=Number(va(e))*Math.pow(t,n?-1:1);return Number.isInteger(a)?a:ra(a)},va=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Na=e=>{return(t=[[e=>e.value!==da.RUB&&e.oppositeValue!==da.RUB,()=>e.handleConvert(e.value,da.RUB)],[e=>e.value===da.RUB&&e.oppositeValue===da.RUB,()=>e.handleConvert(e.value,da.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t},ya=x((({className:e="",id:t,name:n,type:a="text",placeholder:l,pattern:r,value:i,onChange:s})=>h("input",{className:`border rounded-md border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text text-primary-text outline-none ${e}`,id:t,name:n||t,type:a,pattern:r,placeholder:l,value:i,onChange:e=>{const t=e.target.validity.valid?e.target.value:i;s(t)}}))),wa=x((({className:e="",isBorder:t=!0,label:n,options:r=[],value:i,onChange:s})=>{const[o,c]=a(r[0]||{key:"",text:""}),[d,m]=a(!1);return l((()=>{c(i||{key:"",text:""})}),[i]),u("div",{className:`${d?"z-10":""} ${e}`,children:[n?h("span",{className:"mb-2",children:n}):null,u("div",{className:"relative w-fit",children:[u("div",{className:`text-m-light flex justify-between items-center min-h-[56px] mb-0.5 p-4 pr-8 text-primary-text cursor-pointer\n ${Ca(t)}`,onClick:()=>m(!d),children:[o.text,h(C,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(d?"":"rotate-180")})]}),r.length>0?h("div",{className:"h-0 "+(d?"":"overflow-hidden"),children:h("div",{className:"bg-white text-l rounded-md",children:r.map(Ia((e=>{c(e),m(!1),s(e)}),d,(e=>Boolean(e.key===o.key))))})}):null]})]})})),Ia=(e,t,n)=>(a,l)=>u("div",{onClick:()=>{e(a)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11",children:[h("span",{children:a.text}),h(C,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",n(a)&&t?"":"hidden"].join(" ")})]},String(l));function Ca(e){return e?"border border-main-stroke rounded-md hover:border-primary-hover":""}function ka(e){const{placeholder:t,rates:n,selected:a,value:l,setValue:r,setSelected:i}=e,s=n.map((e=>({key:e.code??"",text:e.code??""}))),o={key:a,text:a};return u("div",{className:"relative flex",children:[h(ya,{className:"shrink-0 h-14 pl-4 pt-4 pb-4 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:l,onChange:r}),s.length?h(wa,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const Sa=x((({context:e,className:t="",currencyRatesBuy:n,currencyRatesSell:l,button:r})=>{const{useRouter:i,handlerDecorator:s}=e,o=i(),[c,d]=a({inputSell:"",inputBuy:"",selectSell:n?.[0]?.code||da.RUB,selectBuy:l?.[0]?.code||da.USD}),m=e=>{d((t=>({...t,...e})))};return u("div",{className:`grid gap-[18px] pt-2 ${t}`,children:[ka({placeholder:"Хочу продать",rates:l,selected:c.selectSell,setSelected:$a(c,m,l),value:c.inputSell,setValue:e=>Ba(m,l)(e,c.selectSell,c.selectBuy)}),ka({placeholder:"Получу",rates:n,selected:c.selectBuy,setSelected:Ta(c,m,n),value:c.inputBuy,setValue:e=>Da(m,n)(e,c.selectBuy,c.selectSell)}),r?.text?h(Ne,{className:"py-4 mr-1",version:r?.version,...oe({router:o,handlerDecorator:s},r),children:r.text}):null]})})),$a=(e,t,n)=>a=>{t({selectSell:a}),Na({value:a,oppositeValue:e.selectBuy,handleConvert:(a=e.selectSell,l=e.selectBuy)=>{Ba(t,n)(e.inputSell,a,l)}})},Ta=(e,t,n)=>a=>{t({selectBuy:a}),Na({value:a,oppositeValue:e.selectSell,handleConvert:(a=e.selectBuy,l=e.selectSell)=>Da(t,n)(e.inputBuy,a,l)})},Ba=(e,t)=>(n,a,l)=>{e({inputSell:va(n),selectBuy:l});const r=t.find((e=>e.code===l))?.buy||t.find((e=>e.code===a))?.sell;r&&e({inputBuy:String(fa(n,r,a===da.RUB)||"")})},Da=(e,t)=>(n,a,l)=>{e({inputBuy:va(n),selectSell:l});const r=t.find((e=>e.code===l))?.sell||t.find((e=>e.code===a))?.buy;r&&e({inputSell:String(fa(n,r,a===da.RUB)||"")})},Ra={address:"Москва, ул.Ленина д.28",distance:"6км"},Ma=x((({className:e="",context:t,title:n="Курсы обмена валют",button:a,...l})=>{const r=function(){const{data:e}=Yt(sa,ia),t=e?.hits?.hits?.map((e=>e._source))||[];return t.length?ca(t):t}(),i=r.filter((e=>e.buy));i.unshift({code:da.RUB});const s=r.filter((e=>e.sell));return s.push({code:da.RUB}),h(f,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,...l,children:h(Re,{context:t,title:h(N,{headingType:"h4",title:n,className:"whitespace-pre-wrap text-h4"}),children:u("div",{className:"flex",children:[u("div",{className:"mr-14 pt-4",children:[r?h(pa,{className:"mb-[30px]",exchangeCurrencyItems:r}):null,h(ba,{...Ra})]}),r.length&&i.length&&s.length?h(Sa,{className:"grow",context:t,currencyRatesBuy:i,currencyRatesSell:s,button:a}):null]})})})})),Aa={"bg-white":"normal",transparent:"white"},Va={"bg-white":"text-primary-main",transparent:"text-white"},La={"bg-white":"text-primary-text",transparent:"text-white"},Pa=x((({className:e="",href:t,logo:n,children:a=n?.title,targetBlank:l,bgColor:r="bg-white",hideTitle:i})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:l?"_blank":"_self","aria-label":n?.title||"Россельхозбанк",children:[h(R,n?.image?.src?{image:n.image,className:Va[r],width:"40",height:"45",asSVG:!0}:{image:{icon:"LogoIcon",iconVersion:Aa[r]},className:`${Va[r]} w-10`,width:"40",height:"45",asSVG:!0}),i?null:_a(a,r,n?.title)]}))),_a=(e,t,n)=>h("span",{className:`${La[t]} font-medium ml-2.5`,children:e||n||"Россельхозбанк"}),ja=x((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:l}=(()=>{const[e,t]=a("");return{term:e,setTerm:e=>t(e)}})(),r=t?"text-s":"text-l-light",i=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(R,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${r}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${i}`,value:n,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("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(),l("")},children:h(R,{image:"CloseIcon",width:"24",height:"24"})}):h(Ne,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),Ea=x((({className:e=""})=>h(ja,{className:e}))),Oa=x((({className:e="",items:t,hasButton:n,context:a})=>{const l=a.useRouter(),{handlerDecorator:r}=a;return u("div",{className:e,children:[t?.length?t.map(Ua):null,n?h(Ne,{version:"primary",className:"mb-6 w-full",...oe({router:l,handlerDecorator:r},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Ua=(e,t)=>{const{type:n,text:a,description:l}=e;return u("div",{className:"mb-4",children:[h("div",{children:Ga(n,a)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:l})]},String(t))},Ga=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${za(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},za=e=>e.replaceAll(/\D/g,""),Fa=x((({className:e="",index:t,text:n,href:a,target:l,onClick:r})=>h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:l,onClick:r,children:n||`Документ ${t}`}))),Wa=x((({links:e,className:t="",context:n})=>{const a=n.useRouter(),{handlerDecorator:l}=n;return h("div",{className:t,children:e?.length?h("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)=>h(Fa,{index:t,className:"text-l-light max-w-[292px]",...oe({router:a,handlerDecorator:l},e)},String(t))))}):null})})),Ha=e=>t=>e?.href===t?.href,Xa=(e,t)=>{return(a=e,l=t,(a||[]).map((e=>l?.find(Ha(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(Ha(e))))));var n,a,l};function Ja(e={}){const{data:t}=Yt(`/wcms-resources/${c.SITEMAP||"sitemap"}.json`,Qt,{fallback:e});return t||{}}const qa=x((({className:e="",items:t,fallback:n,context:a})=>{const l=Ja(n),r=Xa(l.topItems,t),i={router:a.useRouter(),handlerDecorator:a.handlerDecorator};return h("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:r?.map(((e,t)=>Ka(e,t,i)))})})),Ka=(e,t,{router:n,handlerDecorator:a})=>{const{text:l,href:r,items:i,target:s}=e;return u("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[h("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:r,target:s||"_self",children:l||`Раздел ${t}`}),i?.map(((e,t)=>h(Ya,{...oe({router:n,handlerDecorator:a},e),index:t},String(t))))]},String(t))},Ya=x((({text:e,href:t,target:n,index:a})=>h("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:t,target:n||"_self",children:e||`Раздел ${a}`}))),Za=[{origins:["t.me","telegram.org"],icon:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],icon:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],icon:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],icon:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],icon:{icon:"PlayMarketIcon"},label:"Google Play"}],Qa=x((({href:e,version:t="primary"})=>{const{icon:n,label:a}=Za.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!n)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===t?"bg-secondary-light hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===t?"hover:text-black":""}`,href:e,"aria-label":a,target:"_blank",rel:"noopener noreferrer",children:n?h(R,{image:n,imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),el=x((({className:e="",media:t,version:n,context:a,children:l})=>{const r=a.useRouter(),{handlerDecorator:i}=a;return u("div",{className:"font-sans",children:[h("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>h(Qa,{version:n,...oe({router:r,handlerDecorator:i},e)},String(t))))}),h("span",{className:"text-s-light text-secondary-text",children:l})]})})),tl=x((({className:e="",index:t,text:n,href:a,target:l,onClick:r})=>h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:l,onClick:r,children:n||`Документ ${t}`}))),nl=x((({className:e,links:t,context:n})=>{const a=n.useRouter(),{handlerDecorator:l}=n;return u("div",{className:`${e||""}`,children:[h("div",{className:"pt-5",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>h(tl,{index:t,...oe({router:a,handlerDecorator:l},e)},String(t))))}):null]})})),al="w-[204px]",ll=x((({className:e,documents:t,relatedEnterprises:n,contacts:a,socialMedia:l,mobileApps:r,topItems:i,context:s,page:o,...c})=>{const d=o?.fallback;return u(f,{tag:"footer",context:s,className:`p-9 bg-white font-sans ${e||""}`,...c,children:[u("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[h(Pa,{className:al}),h(Ea,{context:s,className:"grow"})]}),u("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[u("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[h(Oa,{items:a,context:s,hasButton:!0}),h(el,{media:l,context:s,children:"Соцсети"}),h(el,{className:"mt-6",media:r,context:s,children:"Мобильное приложение"})]}),h(qa,{className:"pt-[3px]",context:s,items:i,fallback:d})]}),h(Wa,{className:"mt-[98px]",links:n,context:s}),h(nl,{links:t,context:s})]})})),rl=x((({context:e,className:t="",title:n,description:a,calendar:l,...r})=>u(f,{className:`font-sans bg-white p-[50px] ${t}`,context:e,...r,children:[h(_,{context:e,className:"!p-0",title:n,description:a,headlineVersion:"M",align:"center"}),l?il(l):null]}))),il=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),n=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:e.month.length*t+"%"})));return u("div",{className:"w-full flex flex-col justify-center mt-[54px]",children:[h("div",{className:"flex w-full mb-3 text-h6 text-center",children:n.map((e=>sl(e,t)))}),h("div",{className:"flex w-full",children:n.map(((e,t)=>u("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[h("div",{className:"flex",children:ol(e)}),u("div",{className:"text-s-light text-primary-text mt-3",children:[h("span",{children:e.text})," ",h("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},sl=(e,t)=>e.month.map(((e,n)=>h("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${n}`))),ol=e=>e.month.map((e=>e.image?.src?h("div",{className:"h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:h(R,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),cl=(e,t,n=((e,t)=>t.startsWith(e)))=>n(ne(e),(e=>(e||"").replace(re,""))(ne(te(e)?t.href:t.pathname))),dl=e=>t=>cl(t.href,e),ml=e=>t=>t.items?.some(dl(e))||cl(t.href,e)||((e,t)=>ae(e)===ae(t.href))(t.href,e),hl="font-sans text-s-light",ul=x((({className:e="",text:t,href:n,target:a,active:l,flat:r,onClick:i,children:s,ariaLabel:o,bgColor:c="bg-white"})=>h("a",{className:`${xl(c,l,r)} ${e}`,href:n,target:a,onClick:i,rel:"noopener noreferrer","aria-label":o,children:h("span",{className:pl(c,l,r),children:t||s})}))),xl=(e,t=!1,n=!1)=>{let a="border-transparent";return t&&(a="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${a} inline-block border border-solid bg-transparent text-center no-underline ${n?"":"px-4 py-2"}`},pl=(e,t=!1,n=!1)=>{if("transparent"===e)return`text-white hover:text-primary-hover ${hl}`;return`${t?"text-primary-main":(n?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${hl}`},gl=o("https://10.80.4.9");const bl=x((({className:e="",children:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":n,children:t}))),fl={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},vl={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},Nl={"bg-white":"black",transparent:"white"},yl=x((({className:e,defaultLocation:t="",bgColor:n="bg-white"})=>{const[i,s]=function(e){const[t,n]=a(e);return l((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,r((()=>{gl.getFetcherAddress().then((t=>{const a=t||e;globalThis?.localStorage.setItem("location",a),n(a)}))}),[e])]}(t);return u("div",{className:`flex items-center ${e||""}`,children:[h(ul,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:n}),h(ul,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:n}),h(bl,{className:`mr-5 group ${fl[n]}`,ariaLabel:"Поиск по сайту",children:h(R,{image:{icon:"LoupeIcon",iconVersion:Nl[n]},className:"h-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0 pointer-events-none",asSVG:!0})}),h(bl,{className:`${vl[n]} group min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:h(R,{image:{icon:"GridIcon",iconVersion:Nl[n]},className:"h-full bg-main-divider/20 rounded-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0",asSVG:!0})})]})})),wl="absolute left-0 -bottom-3 w-full h-[2px]",Il=x((({className:e="",text:t,href:n,target:a,active:l,onClick:r,children:i,bgColor:s="bg-white",dataItemName:o})=>u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:a,onClick:r,"data-item-name":o,children:[h("span",{className:Cl(s,l),children:t||i}),l?h("div",{className:kl(s,l)}):null]}))),Cl=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${n} font-sans text-l-light`},kl=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${wl}`:wl,Sl={"bg-white":"bg-primary-text",transparent:"bg-white"},$l=x((e=>{const{menuVisible:t,toggleMenu:n,menuItems:a,bgColor:l,context:r,activeSubItem:i}=e,{useRouter:s,handlerDecorator:o}=r,c=s();return u("div",{className:"absolute w-52 -top-4 right-0 pt-4 z-40 "+(t?"bg-white rounded-md shadow-blue-gray/24":""),children:[h("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6",onClick:n,"aria-label":""+(t?"Скрыть другие разделы":"Показать другие разделы"),children:Array(3).fill(l).map(Bl)}),h("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(t?"":"hidden"),"aria-hidden":!t,children:Tl({menuItems:a,router:c,handlerDecorator:o,activeSubItem:i})})]})})),Tl=({menuItems:e,router:t,handlerDecorator:n,activeSubItem:a})=>e?.map((e=>{return h("a",{...oe({router:t,handlerDecorator:n},e),className:"text-l-light pb-4 hover:text-primary-main "+(l=e,l===a?"text-primary-main":""),children:e.text},e.href);var l})),Bl=(e,t)=>h("div",{className:`w-[3px] h-[3px] rounded mr-1 ${Sl[e]}`},String(t)),Dl=x((({context:e,subItems:t=[],bgColor:n})=>{const[l,r]=a(!1),i=e.useRouter(),{handlerDecorator:s,IntersectionObserverTag:o}=e,[c,d]=a(t.length),m=t.slice(c),x=(e=>(t=[])=>{const n=t?.filter(dl(e));return n?.length?(a=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>a(e)>a(t)?e:t)))(n):void 0;var a})(i)(t);return u("nav",{className:"relative mt-6",children:[h("div",{className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:t.map(((e,t)=>{return h(o,{tag:"span",observerCallback:(a=t,e=>{e.length&&(e[0].intersectionRatio<1?d((e=>Math.min(e,a))):d((e=>Math.max(e,a+1))))}),observerOptions:{threshold:1},children:h(Il,{className:"mr-8 "+(c-1<t?"invisible":""),active:e===x,...oe({router:i,handlerDecorator:s},e),bgColor:n})},String(t));var a}))}),m.length?h($l,{context:e,activeSubItem:x,menuVisible:l,toggleMenu:()=>r(!l),menuItems:m,bgColor:n}):null]})})),Rl={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},Ml=x((({className:e="",defaultLocation:t="Москва",showSubMenu:n=!0,bgColor:a="bg-white",context:l,topItems:r,logo:i,page:s,...o})=>{const c=l.useRouter(),d=s?.fallback,m=Ja(d),{handlerDecorator:x}=l,p=Xa(m.topItems,r),[g]=p,b=n?p.find(ml(c))||g:null,v=p.map(((e,t)=>h(ul,{active:e===b,...oe({router:c,handlerDecorator:x},e),"aria-label":e.text,bgColor:a},String(t))));return h(f,{tag:"header",context:l,className:`pt-6 px-20 ${a} ${e} ${n&&b?.items?.length?"pb-4":"pb-5"}`,...o,children:u("div",{className:"container",children:[u("div",{className:"flex items-center",children:[h(Pa,{className:"mr-8",bgColor:a,logo:i}),v,h(yl,{className:"ml-auto",defaultLocation:t,bgColor:a})]}),h("div",{className:`mt-6 h-[1px] ${Rl[a]}`}),n&&b?.items?.length?h(Dl,{context:l,subItems:b.items,bgColor:a}):null]})})})),Al=x((({className:e="",cards:t=[],button:n})=>{const[l,r]=a(0),[i,s]=a(0),o=t?.length??0,c=t?.length>2&&o>i+2,d=o===i+2,m=i>0,x=t[l]?.href;return u("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[u("div",{className:"relative overflow-hidden",children:[o?Vl({tabsShift:i,cards:t,activeSlideIndex:l,isLastShift:d,setActiveSlideIndex:r}):null,Ze({handler:[()=>s(i-1),()=>s(i+1)],isShown:[m,c],btnClass:["left-[50px]","right-[50px]"],className:"top-[62px]"}),m?h("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,c?h("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),h(Ne,{className:"w-[240px] text-center",version:"primary",...n,href:x})]})}));function Vl({tabsShift:e,cards:t,activeSlideIndex:n,isLastShift:a,setActiveSlideIndex:l}){const r=a?460*e-240:460*e,i=t.length>2?"justify-start":"justify-center";return h("div",{style:{transform:`translateX(-${r}px)`},className:"duration-1000 px-[50px]",children:h("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${i}`,children:t.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:n,onClick:a}){const l=t===n;return u("button",{type:"button",onClick:a,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue/42 border-primary-main":"ease-in duration-300 border-main-stroke"),children:[e?.icon?h(R,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,u("div",{className:"flex gap-3.5",children:[e?.sum?Ll("страховая сумма",e.sum):null,e?.fee?Ll("страховой взнос",e.fee):null]}),Pl(l)]},String(t))}({slide:e,i:t,activeSlideIndex:n,onClick:()=>l(t)})))})})}function Ll(e,t){return u("div",{className:"flex flex-col text-left whitespace-pre",children:[u("span",{className:"text-h6",children:[K(t)," ₽"]}),h("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Pl(e){return e?h(R,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:"DoneIcon",width:"24",height:"24"}):null}const _l=x((({className:e="",context:t,title:n,insuranceTabs:l=[],button:r,...i})=>{const[s,o]=a(0);return u(f,{context:t,className:`box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${e}`,...i,children:[n?h(N,{className:"text-center mb-8",title:n,headingType:"h3"}):null,l?.length>1?h("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,activeSlideIndex:n,onClick:a}){return h("button",{type:"button",onClick:a,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(t===n?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,activeSlideIndex:s,onClick:()=>o(t)})))}):null,h("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:jl({context:t,className:e,insuranceTabs:l,button:r})})]})})),jl=({insuranceTabs:e,button:t,context:n,className:a=""})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>h(Al,{context:n,className:a,button:t,cards:e},String(l)))):null};const El=x((({className:e="",context:t,title:n="Мобильное приложение",qr:a,buttons:l,version:r="primary",items:i,image:s,headingType:o="h4",...c})=>{const d="primary"===r?"text-primary-text":"",m="secondary"===r?"p-3.5 min-w-[120px]":"min-w-[92px]",x=l?.map((e=>({...e,className:"min-w-[168px]"})));return u(f,{context:t,className:`flex justify-between font-sans p-9 box-border relative min-h-[320px]\n ${ze(e)}\n ${W[r]}\n ${e}`,...c,children:[h(Re,{context:t,className:"z-[1]",title:n?h(N,{headingType:o,as:"h3",title:n,className:`whitespace-pre-wrap max-w-[509px] mb-6\n ${d}`}):null,buttons:l?.length?h(Ie,{context:t,buttons:x,className:"flex gap-4"}):null,children:u("div",{className:"flex flex-1 items-center",children:[a?.src?h("div",{className:`flex justify-center mr-5 bg-white rounded-md ${m}`,children:h(R,{className:"w-fit",image:a})}):null,Ol(r,i)]})}),s?.src?h("div",{className:"absolute right-0 bottom-0",children:h(R,{image:s})}):null]})})),Ol=(e,t)=>t?.length?h(De,{items:t,itemClassName:"text-l-light mb-2 last:mb-0",version:"primary"===e?"tile":"tile-white"}):h("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Ul=x((({className:e="",context:t,title:n,servicesList:a,anchor:l="",...r})=>u(f,{context:t,id:l,className:`font-sans bg-white p-8 flex flex-col ${e}`,...r,children:[n?h(N,{headingType:"h5",className:"mb-5",title:n}):null,a?.length?a.map(Gl):null]}))),Gl=(e,t)=>u("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?h(R,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:e.icon}):null,e.label?h("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),zl="transition-all duration-300 max-h-0 overflow-hidden",Fl=x((({blocks:e=[],hiddenBlocksNum:t=0,foldButtonClasses:n,foldButtonLabel:l,foldButtonDataTheme:r,isUnfolded:i,containerClasses:s,render:o=(e=>e)})=>{const c=zt(t,0,e.length),{icon:d,handleToggle:m,isActive:x}=(({initialState:e=!1})=>{const[t,n]=a(e);return{icon:t?"ArrowUpIcon":"ArrowDownIcon",handleToggle:e=>{const a=e.currentTarget;if(!a)return;n(!t);const l=a.previousSibling.getElementsByClassName(zl)[0];l.style.maxHeight=l.style.maxHeight?"":`${l.scrollHeight}px`},isActive:t}})({initialState:i}),p=n||"border-none bg-primary-main hover:bg-primary-hover focus:bg-primary-main active:bg-primary-active px-0 py-5 mb-[1px] w-full font-sans text-white text-h4 flex justify-center cursor-pointer",g=x?"Скрыть":l;return e?u("div",{children:[Wl(e,o,{blocksToHide:c,isActive:x,containerClasses:s}),t?u("button",{className:p,"data-theme":r,onClick:m,children:[h("span",{className:"pr-3",children:g}),d?h(C,{className:"my-auto",name:d,iconVersion:"white",width:"20",height:"20",asSVG:!0}):null]}):null]}):null})),Wl=(e,t,{blocksToHide:n,isActive:a,containerClasses:l=""})=>{const r=e.slice(0,e.length-n),i=n>0?e.slice(-n):[];return t(u("div",{children:[r,h("div",{className:`${zl} ${l}`,children:i})]}),a)},Hl=x((({label:e,blocks:t,context:n,dataTheme:a,isUnfolded:l})=>{const r=ut({context:n,blocks:t});return h("div",{className:"border-0 border-b border-solid border-main-divider",children:t?.length?h(Fl,{foldButtonDataTheme:a,hiddenBlocksNum:t?.length,blocks:r,isUnfolded:l,context:n,foldButtonLabel:e,containerClasses:"grid grid-cols-12 gap-1 border-box",render:e=>h(Xl,{children:e})}):null})})),Xl=x((({children:e})=>h("div",{className:"box-border",children:e}))),Jl=x((({blockItems:e,colorPalette:t,context:n,className:a="",...l})=>h(f,{context:n,className:`font-sans text-primary-text ${a}`,...l,children:e?.length?h("div",{className:"box-border1",children:e.map(((e,a)=>h(Hl,{...e,dataTheme:t,context:n},`BlockItem${a}`)))}):null})));function ql(e=""){const t=Ge(e);return t<=4?"S":t<=8?"M":"L"}const Kl=x((({className:e,context:t,title:n,description:a="Блок в разработке...",...l})=>u(f,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Fe(e)} ${ze(e)} `,...l,children:[h(_,{context:t,className:"!p-0 max-w-[600px]",title:n,description:a,headlineVersion:ql(e)}),h("figure",{className:"m-0 min-w-[80%]",children:Yl()})]}))),Yl=(e=3)=>Ql(100,e).map((e=>Math.floor(e))).map(Zl),Zl=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Ql=(e,t)=>[e].concat(t>0?Ql(e/1.618,t-1):[]),er={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},tr=x((({className:e="",context:t,slides:n=[],version:l="primary",...r})=>{const i=n.map((e=>e.nav)),s=n.map((e=>e.productBlock)),[o,c]=a(0);return u(f,{context:t,className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 ${e}\n ${W[l]}`,...r,children:[h("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${o}00%)`},role:"list",children:s.map(((e,n)=>function(e,t,n){const{version:a}=e,l=a?er[a].title:"";return h("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:h("div",{className:"flex grow",children:h(Ae,{className:`pl-[50px] z-10 ${l}`,context:n,textBlockClassName:"mb-[154px]",...e,headlineVersion:"XXL"})})},String(t))}({...e,version:l},n,t)))}),h("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:i.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:n,onClick:a,version:l}){const r=t===n,i=r?"bg-white shadow-dark-blue/42 w-[354px] min-w-[354px] border-none":`min-w-[277px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10\n ${W[l]}`,s=r?"text-primary-text text-h6":`text-l ${er[l].title}`,o=r?"text-secondary-text text-m-title-xs mt-2.5":`text-m mt-1.5 ${er[l].text}`,c="secondary"===l?"border-white/50":"border-black/50";return h("button",{type:"button",onClick:a,"aria-label":e?.title,className:`box-border font-sans relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0 pt-5 pb-[23px]\n ${i} ${c}\n `,children:u("div",{className:"border-0 px-6",children:[h("div",{className:`font-medium ${s}`,children:e?.title}),h("div",{className:`text-secondary-text ${o}`,children:e.description})]})},String(t))}({slide:e,i:t,activeSlideIndex:o,onClick:()=>c(t),version:l})))})]})}));const nr=x((({className:e="",context:t,title:n="Акции и спецпредложения",date:a,description:l,buttons:r=[],version:i="primary",...s})=>h(f,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${W[i]} ${Fe(e)} ${ze(e)} `,...s,children:h(Re,{context:t,title:n?h(_,{context:t,title:n,className:"!p-0 max-w-[600px]",headlineVersion:ql(e),bgColorHeadline:i,align:"left",as:"h2"}):null,buttons:r?.length?h(Ie,{context:t,buttons:r,className:"flex gap-3"}):null,children:u("div",{className:"mt-1.5",children:[a?h("div",{className:"text-s mb-2",children:ar(a)}):null,h("div",{className:"text-l",children:l})]})})})));function ar(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const lr=x((({context:e,className:t="",title:n,description:a,items:l,image:r,version:i,socialMedia:s})=>{const o=n?h(N,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:n}):null,c=r?.src?h(R,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return h("section",{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${t}`,role:"listitem",children:h(Re,{context:e,className:"flex justify-between",title:o,image:c,children:u("div",{className:"h-full flex flex-col justify-between",children:[a?h(P,{className:"mb-2",description:a}):null,l?.length?h(De,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:l,version:i}):null,s?h(el,{className:"pt-10 pb-0",media:s,version:i,context:e}):null]})})})})),rr="absolute top-0 bottom-0 w-[84px]",ir=x((({context:e,recommendations:t=[],className:n="",title:l,version:r,...i})=>{const[s,o]=a(0),c="secondary"===r?"border-white/50":"border-main-stroke";return u(f,{context:e,className:`relative font-sans p-9 overflow-hidden text-center ${"secondary"===r?"bg-primary-main text-white":"bg-white text-primary-text"} ${n}`,...i,children:[l?h(N,{headingType:"h3",className:"mb-6",title:l}):null,u("div",{children:[h("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*s}px)`},role:"list",children:t?.length?t.map(sr({context:e,version:r,className:c})):null}),or({cardsCount:t.length,activeCardIndex:s,setActiveCardIndex:o})]}),h("div",{className:`${rr} left-0 ${"secondary"===r?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${rr} right-0 ${"secondary"===r?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),sr=({context:e,version:t,className:n})=>(a,l)=>h(lr,{context:e,...a,version:t,className:n},String(l)),or=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:n})=>{const a=e>2;return h("div",{children:Ze({handler:[()=>n(t-1),()=>n(t+1)],isShown:[a&&t>0,a&&e-t>2],btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})})};const cr=e=>e?Zt(e,{method:"GET"}):{},dr={background:"url('/icons/ArrowDownIcon.svg') right 16px top 50% / 21px no-repeat"},mr=x((({className:e="",id:t,name:n,children:a,value:l,onChange:r})=>h("select",{className:`appearance-none pl-0.5 ${e}`,style:dr,id:t,name:n||t,value:l,onChange:e=>r(e.target.value),placeholder:"",children:a}))),hr=x((({className:e="",value:t,selected:n,disabled:a=!1,children:l})=>h("option",{className:e,value:`${t}`,selected:n,disabled:a,children:l}))),ur=x((({data:e,fieldLabel:t,fieldValue:n,selected:a,placeholder:l,setSelected:r,label:i})=>u("div",{children:[h("span",{className:"block text-m-light mb-2",children:i}),u(mr,{className:"h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer "+(a?"":"text-secondary-text"),value:a,onChange:e=>r(e),children:[l?h(hr,{value:"",children:l}):null,e.map(((e,a)=>h(hr,{value:e?.[n||t],children:e?.[t]},String(a))))]})]}))),xr=x((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:a=[],selectedBranch:l,onSelectedBranch:r})=>u("div",{className:"flex justify-between mb-6",children:[h("div",{className:"w-full mr-4",children:h(ur,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Город"})}),h("div",{className:"w-full",children:h(ur,{data:a,fieldValue:"branchCode",fieldLabel:"address",selected:l,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),pr=x((({name:e,text:t,value:n,checked:a,onChange:l,className:r})=>h("div",{className:r,children:u("label",{className:"flex items-center relative cursor-pointer",children:[h("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border-2 border-primary-main\n rounded-full cursor-pointer after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main",type:"radio",value:n,name:e,checked:a,onChange:l}),t?h("span",{className:"font-sans ml-3 cursor-pointer",children:t}):null]})}))),gr=x((()=>{const[e,t]=a("option2"),n=e=>t(e.target.value);return u("div",{children:[h(pr,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:n}),h(pr,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:n})]})})),br=["От 1 дня","До 365 дней"],fr=x((({days:e,setDays:t})=>u("div",{className:"mb-6",children:[h("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),h(Ft,{min:1,max:365,value:e,items:br,onChange:t})]}))),vr=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:a=[],selectedBoxSize:l,onSelectedBoxSize:r})=>u("div",{className:"flex justify-between mb-6",children:[h("div",{className:"mr-4 w-full",children:h(ur,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),h("div",{className:"w-full",children:h(ur,{data:a,fieldLabel:"safeBoxCasesSize",selected:l,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Nr=e=>Array.isArray(e)?e.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):e?.gpsLatitude&&e?.gpsLongitude?[[e.gpsLatitude,e.gpsLongitude]]:[],yr=(e,t)=>e.find((e=>e.branchCode===t)),wr=x((({regions:e,selectedRegion:t,branches:n,selectedBranch:a,days:l,selectedCaseVolume:r,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,setPoints:c,onChange:d,toggleShowMap:m})=>u("div",{className:"flex-1 mr-9",children:[h(xr,{regions:e,selectedRegion:t,onSelectedRegion:e=>d({selectedRegion:e}),branches:n,selectedBranch:a,onSelectedBranch:Ir(d,c,n)}),h(fr,{days:l,setDays:e=>d({days:e})}),h(vr,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:Cr(d),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>d({selectedBoxSize:e})}),h("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),u("div",{className:"flex justify-between items-center mt-5",children:[h(gr,{}),h(Ne,{text:"Офисы на карте",version:"primary",onClick:m})]})]}))),Ir=(e,t,n)=>a=>{e({selectedBranch:a,selectedCaseVolume:"",selectedBoxSize:""}),t(Nr(a?yr(n,a):n))},Cr=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},kr=x((({days:e,tariffs:t=[]})=>{const n=$r(e,t);return u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex",children:[Sr("Аренда за",e,"mr-11"),Sr("Цена",n+" ₽")]}),u("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[h(R,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),u("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",h("br",{})," листов формата А4"]})]})]})})),Sr=(e,t,n="")=>u("div",{className:n,children:[h("span",{className:"block text-m-light mb-1",children:e}),h("span",{className:"text-h3",children:t})]}),$r=(e,t)=>{const n=Tr(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},Tr=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},Br=x((e=>{const[t,n]=a({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26,branches:[]}),r=function(e){const{data:t}=Yt(e?`/api/v1/safeboxes?regionCode=${e}`:null,cr);return t||[]}(t.selectedRegion),i=e=>n((t=>({...t,...e})));l((()=>i({selectedRegion:Dr(e.regions)})),[e.regions]),l((()=>{Array.isArray(r)&&r.length&&(i({branches:r}),e.setPoints(Nr(r)))}),[r]),l((()=>{i({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[t.selectedRegion]);const s=yr(t.branches,t.selectedBranch),o=Rr(s?.safeBoxCaseVolumes),c=Mr(s?.safeBoxCaseVolumes,t.selectedCaseVolume)?.safeBoxCases,d=Ar(c,t.selectedBoxSize);return u("div",{className:"flex justify-between align-top mb-6",children:[h(wr,{...t,...e,caseVolumes:o,safeBoxCases:c,onChange:i}),h(kr,{days:t.days,tariffs:d})]})})),Dr=e=>e?.length&&e[0]?.code?e[0].code:"",Rr=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Mr=(e,t)=>e?.find((e=>e.volume===t)),Ar=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs;function Vr(e,t,n){t.geoObjects.removeAll();const a=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),l=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:a,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),r=n.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));l.add(r),t.geoObjects.add(l),t.setBounds(e.util.bounds.fromPoints(n)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Lr=e=>globalThis[e];const Pr=()=>{const e=function(e,t){const[n,i]=a(),s=r((()=>i(Lr(e))),[e]);return l((()=>{const n=document.getElementById(t);if(!n){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!Lr(e))return n.addEventListener("load",s),()=>{n.removeEventListener("load",s)};s()}),[e,t]),n}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY}&lang=ru_RU`);return e},_r=x((({points:e})=>{const t=s(null),n=Pr();return l((()=>{n?.ready((()=>{t.current=new n.Map("map",{center:e[0],zoom:10}),Vr(n,t.current,e)}))}),[n]),l((()=>{t.current&&e&&n&&Vr(n,t.current,e)}),[t,e,n]),n?u("div",{className:"pt-12 mt-1 bg-white",children:[h(N,{title:"Офисы на карте",headingType:"h3",className:"mb-8 text-center"}),h("div",{id:"map",className:"h-[640px]"})]}):null})),jr=x((({title:e,footnote:t,context:n,className:l="",...r})=>{const[i,s]=a([]),[o,c]=a(!1),d=function(){const{data:e}=Yt("/api/v1/regions",Qt);return e||[]}();return u(f,{context:n,className:l,...r,children:[u("div",{className:"bg-white px-8 py-12",children:[e?h(N,{title:e,headingType:"h3",as:"h2",className:"mb-2.5 text-center"}):null,h(Br,{regions:d,setPoints:s,toggleShowMap:()=>{c(!o)}}),t?h("p",{className:"text-s-light text-secondary-text",children:t}):null]}),i.length&&o?h(_r,{points:i}):null]})})),Er=e=>Boolean(e?.icon||e?.src),Or={primary:{background:"bg-white",title:"text-primary-text",description:"text-secondary-text",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light"},secondary:{background:"bg-primary-main",title:"text-white",description:"text-white/80",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white"}},Ur=x((({className:e="",showLines:t=!0,steps:n=[],button:a,version:l="primary",context:r,...i})=>{const s=r.useRouter(),{handlerDecorator:o}=r,{title:c}=i,d=Or[l],m=n.length>3,x=(e=>e?"":"opacity-0")(t),p=c?"mt-9":"";return u(f,{className:["box-border font-sans text-primary-text bg-white",m?"px-20":"px-[70px]","py-[50px] flex flex-col items-center",d.background,d.title,e].join(" "),context:r,...i,children:[c?h(N,{headingType:"h2",className:"max-w-[752px] text-center",title:c}):null,n?.length?u("div",{className:`box-border ${p}`,children:[h("div",{className:"flex items-center px-[88px]",children:de(h("div",{className:`h-0.5 w-full bg-secondary-light ${x}`}))(n.map(Gr(d)))}),h("div",{className:"flex justify-between "+(m?"gap-x-3":"gap-x-[101px]"),children:n.map(zr({styleMap:d,isMainButton:Boolean(a?.text),version:l,router:s,handlerDecorator:o}))})]}):null,a?.text?h(Ne,{className:"mt-8 w-full max-w-[240px]",version:"primary",...oe({router:s,handlerDecorator:o},a)}):null]})})),Gr=e=>({icon:t},n)=>h("div",{className:"flex flex-col items-center text-center",children:h("div",{className:`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center\n ${e.iconBackground} ${e.title}`,children:Er(t)?h(R,{image:t,width:"48",height:"48",asSVG:!0}):h("span",{className:`text-h4 ${e.iconText}`,children:n+1})})},String(n)),zr=({styleMap:e,isMainButton:t,version:n,router:a,handlerDecorator:l})=>(r,i)=>{const s=r?.label?"mt-2":"mt-4";return u("div",{className:"flex flex-col items-center justify-between text-center relative w-[276px]\n whitespace-pre-line overflow-hidden",children:[r?.label?h("div",{className:"text-xl m-0 mt-4",children:r.label}):null,r?.description?h("div",{className:`text-l-light ${e.description} ${s}`,children:r.description}):null,r.button?.text&&!t?h(Ne,{className:"box-border mt-8 py-3 h-12 w-full max-w-[240px]",...oe({router:a,handlerDecorator:l},r.button),version:n,children:r.button.text}):null]},String(i))};const Fr="h-12 flex-1 flex items-center justify-center cursor-pointer",Wr="group bg-white",Hr="font-sans text-m",Xr="text-secondary-text group-hover:text-primary-main",Jr=(e,t)=>h("h3",{className:`${Hr} ${t?"text-white":Xr}`,children:e}),qr=(e,t)=>h("div",{className:"min-w-[22px] w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(t?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover:text-primary-main"),children:e}),Kr=({onClick:e,currentTab:t,showCounter:n,page:a,context:l})=>(r,i)=>{const{useRouter:s,handlerDecorator:o}=l,c=s(),d=r.type;if("group"!==d&&"link"!==d)return null;switch(d){case"group":return(({onClick:e,currentTab:t,showCounter:n,page:a})=>(l,r)=>{const i=t===l,s=l.ref?a?.blocks?.filter((e=>e?.labels?.includes(l.ref))).length:a?.blocks?.length;return h("div",{className:`${Fr} ${i?"bg-primary-main":Wr}`,role:"tab","aria-selected":i,onClick:()=>e(l),children:u("div",{className:"flex flex-1 items-center justify-center",children:[l?.title?Jr(l.title,i):null,n&&s?qr(s,i):null]})},String(r))})({onClick:e,currentTab:t,showCounter:n,page:a,context:l})(r,i);case"link":return(({text:e,onClick:t,href:n,target:a="_self",i:l})=>h("a",{className:`${Fr} group bg-white`,target:a,href:n,onClick:t,children:h("span",{className:`${Hr} ${Xr}`,children:e})},String(l)))({...oe({router:c,handlerDecorator:o},r),i:i});default:!function(e){throw new Error(e)}(d)}},Yr=x((e=>{const{context:t,className:n,tabs:r,page:i,showCounter:s}=e,[o,c]=a(r?r[0]:void 0);l((()=>{if("group"===o?.type)return g.inst.subject("tab",{label:o.ref})}),[o]);return h(f,{context:t,className:`mb-2 box-border flex gap-x-1 ${n}`,role:"tablist",children:r?.map(Kr({onClick:e=>{"group"===e?.type&&(g.inst.fire("tab",{type:e.type,label:e.ref}),c(e))},currentTab:o,page:i,showCounter:s,context:t}))})})),Zr=x((({isOpen:e,dataUrl:t,pdfUrl:n,rowIdx:a,cellIdx:l,fieldIdx:r})=>u(Ne,{version:"primary",onClick:()=>{g.inst.fire("tariffInnerTable",{dataUrl:t,pdfUrl:n,rowIdx:a,cellIdx:l,fieldIdx:r})},className:"w-full flex items-center justify-center rounded-none py-5 ",children:[h("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),h(C,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),Qr=e=>e?.alt||e?.title||w[e?.icon?e.icon:""],ei={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({icon:e,rounded:t,...n},a)=>h(Ne,{className:(a>0&&t?"ml-3":"")+" w-12 h-12",ariaLabel:Qr(e),rounded:t,appendLeft:e?.src||e?.icon?h(R,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...n},String(a))))}):null,Img:({image:e})=>e?.src?h(R,{image:e}):null,List:({isDotted:e,...t})=>h(De,{className:"flex flex-col justify-between items-start text-sm",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-h6 font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-s text-secondary-text",children:t}):null]}),Table:x((e=>{const[t,n]=a(!0);console.log(e);const r=t=>{const a=["rowIdx","cellIdx","fieldIdx"].every((n=>e[n]===t[n]));n(!a)};return l((()=>g.inst.subscribe("tariffInnerTable",r)),[]),t?h(Zr,{...e}):null}))},ti=x((({context:e,cells:t,isLastRow:n,rowIdx:a,cellIdx:l})=>h("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0 "+(n?"border-t-0 rounded-b-md":""),role:"cell",children:t.map(ni(a,e,l))}))),ni=(e,t,n)=>(a,l)=>u("div",{className:"Table"===a?.tableCellType?"mx-0.5":"first:pt-5 last:pb-5 pl-10",children:[l>0?h("div",{className:"h-5"}):null,ai(a,t,{rowIdx:e,cellIdx:n,fieldIdx:l})]},String(l)),ai=(e,t,n)=>{if(!e)return null;const{tableCellType:a,...l}=e;if(!a||!(a in ei))return null;return h(ei[a],{context:t,...l,...n})};async function li(e){const t=await fetch(e);return await t.json()}const ri=x((({rows:e})=>{const[t,n]=a(0),l=e?.[0]?.length??0,r=l>3&&l>t+4,i=t>0;return u("div",{children:[e?.map(ii(t)),Ze({handler:[()=>n(t-1),()=>n(t+1)],isShown:[i,r],btnClass:["right-3 top-24","right-3 top-2"],className:""})]})})),ii=e=>(t,n)=>{if(!t?.length)return null;const[a,...l]=t,r=[...Array(e).keys()].reduce(((e,t)=>140*(l?.[t]?.cols?.length??1)+e),0);return u("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[h("div",{className:"text-xl-light min-w-[214px] w-[214px] pt-6 pb-5",children:a.data}),h("div",{className:"flex flex-grow overflow-hidden",children:h("div",{className:"flex duration-1000 text-center",style:{transform:`translateX(-${r}px)`},children:l?.map(((t,n)=>u("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?h("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?si(t.cols,e):null]},`row${n}`)))})})]},String(n))},si=(e,t)=>e?h("div",{className:"flex text-xl-light "+(0===t?"text-secondary-text":""),children:e.map(((e,t)=>h("div",{className:"w-[76px] mx-8",children:e},String(t))))}):null,oi=x((({context:e,activeTabIndex:t,items:n})=>{const[l,r]=a({});return h("div",{children:n.map(((n,a)=>{const i=`activeTabIdx:${t}-tableIdx:${a}`;return u("div",{className:"w-full",children:[u("div",{className:"flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>(e=>{r((t=>({...t,[e]:!t[e]})))})(i),children:[n.title,h(R,{image:l[i]?"PlusIcon":"MinusIcon",className:"absolute right-[22px]",width:"24",height:"24"})]}),h("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[i]?"h-0":"h-[243px]"),children:h("div",{className:"relative",children:h(ri,{context:e,rows:n.rowsData})})})]},i)}))})})),ci=x((({currencies:e,linkToPDF:t,activeTabIndex:n,setActiveTabIndex:a})=>u("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?h("div",{className:"flex bg-secondary-light p-1 rounded-md",children:e.map(((e,t)=>h("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===n?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>a(t),children:e||t+1},e)))}):null,t?u(Ne,{href:t,version:"secondary",className:"flex justify-center items-center text-l-light text-primary-main px-8",children:[h(R,{image:"DocDownloadIcon",className:"mr-[10px]",width:"24",height:"24",asSVG:!0}),h("span",{children:"Скачать в PDF"})]}):null]}))),di=x((({context:e,dataUrl:t,pdfUrl:n})=>{const{tableData:l}=function(e){const{data:t}=Yt(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),li);return t||{}}(t),[r,i]=a(0),s=l?.[r]?.items??[],o=l?.map((e=>e.currency??""));return l?u("div",{className:"bg-white z-10",children:[h(ci,{currencies:o,activeTabIndex:r,setActiveTabIndex:i,linkToPDF:n}),h(oi,{context:e,activeTabIndex:r,items:s}),h(Zr,{context:e,isOpen:!0})]}):null})),mi=x((({context:e,children:t,rowIdx:n})=>{const[r,i]=a(void 0);return l((()=>g.inst.subscribe("tariffInnerTable",(e=>{i(n===e.rowIdx?{dataUrl:e.dataUrl,pdfUrl:e.pdfUrl}:void 0)}))),[n]),u("div",{className:"self-start flex flex-col",role:"row",children:[h("div",{className:"flex",children:t}),r?h("div",{className:"origin-top animate-expansion",children:h(di,{context:e,...r})}):null]})})),hi=x((({row:{header:e,data:t},activeCardIndex:n,isLastRow:a,context:l,rowIdx:r})=>u(mi,{context:l,rowIdx:r,children:[h("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0 "+(a?"":"border-solid"),children:u("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?h(R,{className:"mr-[14px] max-w-6 max-h-6",image:e.icon,width:"24px",height:"24px",asSVG:!0}):null,e?.title?h(N,{headingType:e?.headingType||"h6",as:"h6",title:e?.title}):null]})}),t?.length?h(zn,{activeCardIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>h(ti,{cells:e,isLastRow:a,rowIdx:r,cellIdx:t,context:l},String(t))))}):null]}))),ui=x((({className:e="",context:t,title:n,description:l,rowHeaders:r,tariffsColumns:i,hiddenRowsNum:s=0,...o})=>{const[c,d]=a(0),m=i?.map((({data:e})=>e))||[],x=r?.map(((e,t)=>({header:e,data:m.map((e=>e?.[t]||[]))}))),p=m.length,g=Pn({columnsLength:p,colsLengthForScroll:2,activeCardIndex:c,setActiveCardIndex:d}),b=x?.map(((e,n,{length:a})=>h(hi,{context:t,row:e,isLastRow:n+1===a,activeCardIndex:c,rowIdx:n},String(n))));return u(f,{className:`bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${p>1?"pr-0":""} ${e}`,context:t,...o,children:[n?h(N,{headingType:"h2",className:"text-center "+(l?"mb-2.5":"mb-9"),title:n}):null,l?h("div",{className:"mb-9 text-center text-l",children:l}):null,x?.length?h(Fl,{blocks:b,hiddenBlocksNum:s,context:t,render:e=>h(xi,{tableArrowScrollControlProps:g,children:e}),foldButtonLabel:"Развернуть"}):null]})})),xi=x((({children:e,tableArrowScrollControlProps:t})=>{const{isScrollAvailable:n}=t;return u("div",{role:"table",children:[u("div",{className:"relative",children:[e,h(Hn,{...t})]}),n?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),pi={Accordion:ft,BenefitsBlock:It,Bonus:Dt,CardTransfer:kn,ComparisonTable:ta,Calculator:yn,Catalog:An,ExchangeRateTile:Ma,Footer:ll,Gallery:ot,GracePeriod:rl,Header:Ml,Headline:_,InsuranceAmountBlock:_l,LinkDocs:F,MiniGallery:ct,MobileAppTile:El,PictureText:Y,ProductBlock:_e,ProductGallery:tr,ProductTile:Xe,PromoTile:nr,OtherProducts:Jl,Recommendation:ir,StepsBlock:Ur,TariffsTable:ui,TextBlock:Ee,Tile:We,Placeholder:Kl,BonusBenefitsBlock:Mt,SafeDepositRental:jr,Tabs:Yr,ErrorBlock:la,OfficeServicesBlock:Ul},gi=m();const bi=x((({className:e,onClick:t,ariaLabel:n})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:fi()}))),fi=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("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"}),h("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"})]})},vi=x((({className:e,context:t,...n})=>{const{useRouter:i,handlerDecorator:s=se}=t,o=function(e){const[t,n]=a(0);return l((()=>{(async()=>{const[t]=await gi.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{n(await gi.like(e))}),[e]),dislike:r((async()=>{n(await gi.dislike(e))}),[e])}}(i().pathname);return u(f,{tag:"div",context:t,className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e||""}`,...n,children:[h(bi,{onClick:s(o.like),ariaLabel:"Поставить отметку «лайк»"}),h(bi,{onClick:s(o.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:o.likeCount})]})})),Ni=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),yi=x((({className:e="",context:t,blocksRegistry:n,data:a={},blockDecorator:l=Ni})=>{const{style:r,blocks:i,slots:s={},likeControl:o,colorPalette:c="pc"}=a,{header:d}=s;return u("section",{className:`relative ${M(r)} ${e}`,"data-theme":c,children:[d?.blocks?.length?h("div",{className:`${M(d?.style)}`,children:d.blocks.map(((e,r)=>wi({block:e,page:a,blockDecorator:l,blocksRegistry:n,context:t},r)))}):null,i?.length?h("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,r)=>wi({block:e,blockDecorator:l,blocksRegistry:n,context:t,page:a},r)))}):null,o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(vi,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function wi({block:e,blockDecorator:t,blocksRegistry:n,context:a,page:l},r){const{type:i}=e;i&&i in n||console.warn(`No block with "${i}" is registered`);const s=n[i||"Placeholder"]||Kl;return t({blockClassName:`scroll-mt-12 ${M(e.style)}`,block:e,render:e=>{const{version:t,content:n,anchor:o,labels:c}=e.block;return h(s,{className:e.blockClassName,version:t,context:a,page:l,anchor:o,labels:c,...n},`${i}-${r}`)}},`block-${r}`)}e.Blocks=pi,e.ContentPage=yi,e.DaDataAPI=o,e.LikeAPI=m,e.joinList=de,e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=le,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
@@ -3,7 +3,7 @@ exports.Select = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const selectStyle = {
|
|
6
|
-
background: `url('/icons/ArrowDownIcon.svg')
|
|
6
|
+
background: `url('/icons/ArrowDownIcon.svg') right 16px top 50% / 21px no-repeat`,
|
|
7
7
|
};
|
|
8
8
|
exports.Select = (0, uni_jsx_1.JSX)(({ className = '', id, name, children, value, onChange }) => {
|
|
9
9
|
return ((0, jsx_runtime_1.jsx)("select", { className: `appearance-none pl-0.5 ${className}`, style: selectStyle, id: id, name: name || id, value: value, onChange: (e) => onChange(e.target.value), placeholder: "", children: children }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAUxC,MAAM,WAAW,GAAG;IAClB,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAUxC,MAAM,WAAW,GAAG;IAClB,UAAU,EAAE,qEAAqE;CAClF,CAAC;AAEW,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1D,OAAO,CACL,mCACE,SAAS,EAAE,0BAA0B,SAAS,EAAE,EAChD,KAAK,EAAE,WAAW,EAClB,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAe,CAAC,EACnD,WAAW,EAAC,EAAE,YAEb,QAAQ,GACF,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
const selectStyle = {
|
|
4
|
-
background: `url('/icons/ArrowDownIcon.svg')
|
|
4
|
+
background: `url('/icons/ArrowDownIcon.svg') right 16px top 50% / 21px no-repeat`,
|
|
5
5
|
};
|
|
6
6
|
export const Select = JSX(({ className = '', id, name, children, value, onChange }) => {
|
|
7
7
|
return (_jsx("select", { className: `appearance-none pl-0.5 ${className}`, style: selectStyle, id: id, name: name || id, value: value, onChange: (e) => onChange(e.target.value), placeholder: "", children: children }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAUxC,MAAM,WAAW,GAAG;IAClB,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAUxC,MAAM,WAAW,GAAG;IAClB,UAAU,EAAE,qEAAqE;CAClF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1D,OAAO,CACL,iBACE,SAAS,EAAE,0BAA0B,SAAS,EAAE,EAChD,KAAK,EAAE,WAAW,EAClB,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAe,CAAC,EACnD,WAAW,EAAC,EAAE,YAEb,QAAQ,GACF,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -3,7 +3,7 @@ exports.Select = void 0;
|
|
|
3
3
|
const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
|
|
4
4
|
const uni_jsx_1 = require("@redneckz/uni-jsx");
|
|
5
5
|
const selectStyle = {
|
|
6
|
-
background: `url('/icons/ArrowDownIcon.svg')
|
|
6
|
+
background: `url('/icons/ArrowDownIcon.svg') right 16px top 50% / 21px no-repeat`,
|
|
7
7
|
};
|
|
8
8
|
exports.Select = (0, uni_jsx_1.JSX)(({ className = '', id, name, children, value, onChange }) => {
|
|
9
9
|
return ((0, jsx_runtime_1.jsx)("select", { className: `appearance-none pl-0.5 ${className}`, style: selectStyle, id: id, name: name || id, value: value, onChange: (e) => onChange(e.target.value), placeholder: "", children: children }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAUxC,MAAM,WAAW,GAAG;IAClB,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAUxC,MAAM,WAAW,GAAG;IAClB,UAAU,EAAE,qEAAqE;CAClF,CAAC;AAEW,QAAA,MAAM,GAAG,IAAA,aAAG,EACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1D,OAAO,CACL,mCACE,SAAS,EAAE,0BAA0B,SAAS,EAAE,EAChD,KAAK,EAAE,WAAW,EAClB,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAe,CAAC,EACnD,WAAW,EAAC,EAAE,YAEb,QAAQ,GACF,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
2
|
import { JSX } from '@redneckz/uni-jsx';
|
|
3
3
|
const selectStyle = {
|
|
4
|
-
background: `url('/icons/ArrowDownIcon.svg')
|
|
4
|
+
background: `url('/icons/ArrowDownIcon.svg') right 16px top 50% / 21px no-repeat`,
|
|
5
5
|
};
|
|
6
6
|
export const Select = JSX(({ className = '', id, name, children, value, onChange }) => {
|
|
7
7
|
return (_jsx("select", { className: `appearance-none pl-0.5 ${className}`, style: selectStyle, id: id, name: name || id, value: value, onChange: (e) => onChange(e.target.value), placeholder: "", children: children }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAUxC,MAAM,WAAW,GAAG;IAClB,UAAU,EAAE,
|
|
1
|
+
{"version":3,"file":"Select.js","sourceRoot":"","sources":["../../../src/ui-kit/Select/Select.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAUxC,MAAM,WAAW,GAAG;IAClB,UAAU,EAAE,qEAAqE;CAClF,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CACvB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC1D,OAAO,CACL,iBACE,SAAS,EAAE,0BAA0B,SAAS,EAAE,EAChD,KAAK,EAAE,WAAW,EAClB,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,KAAe,CAAC,EACnD,WAAW,EAAC,EAAE,YAEb,QAAQ,GACF,CACV,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -891,7 +891,6 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
891
891
|
<select
|
|
892
892
|
class="appearance-none pl-0.5 h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
893
893
|
placeholder=""
|
|
894
|
-
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
895
894
|
/>
|
|
896
895
|
</div>
|
|
897
896
|
</div>
|
|
@@ -907,7 +906,6 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
907
906
|
<select
|
|
908
907
|
class="appearance-none pl-0.5 h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
909
908
|
placeholder=""
|
|
910
|
-
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
911
909
|
>
|
|
912
910
|
<option
|
|
913
911
|
class=""
|
|
@@ -981,7 +979,6 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
981
979
|
<select
|
|
982
980
|
class="appearance-none pl-0.5 h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
983
981
|
placeholder=""
|
|
984
|
-
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
985
982
|
>
|
|
986
983
|
<option
|
|
987
984
|
class=""
|
|
@@ -1004,7 +1001,6 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
1004
1001
|
<select
|
|
1005
1002
|
class="appearance-none pl-0.5 h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
1006
1003
|
placeholder=""
|
|
1007
|
-
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
1008
1004
|
>
|
|
1009
1005
|
<option
|
|
1010
1006
|
class=""
|
|
@@ -9,7 +9,7 @@ export interface SelectProps {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
const selectStyle = {
|
|
12
|
-
background: `url('/icons/ArrowDownIcon.svg')
|
|
12
|
+
background: `url('/icons/ArrowDownIcon.svg') right 16px top 50% / 21px no-repeat`,
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export const Select = JSX<SelectProps>(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redneckz/wildless-cms-uni-blocks",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ЦК",
|
|
@@ -65,7 +65,8 @@
|
|
|
65
65
|
"fonts",
|
|
66
66
|
"mobile/src",
|
|
67
67
|
"src",
|
|
68
|
-
"cosmos-static/icons"
|
|
68
|
+
"cosmos-static/icons",
|
|
69
|
+
"tailwind.config.cjs"
|
|
69
70
|
],
|
|
70
71
|
"repository": {
|
|
71
72
|
"url": "https://github.com/redneckz/wildless-cms-uni-blocks.git"
|
|
@@ -891,7 +891,6 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
891
891
|
<select
|
|
892
892
|
class="appearance-none pl-0.5 h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
893
893
|
placeholder=""
|
|
894
|
-
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
895
894
|
/>
|
|
896
895
|
</div>
|
|
897
896
|
</div>
|
|
@@ -907,7 +906,6 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
907
906
|
<select
|
|
908
907
|
class="appearance-none pl-0.5 h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
909
908
|
placeholder=""
|
|
910
|
-
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
911
909
|
>
|
|
912
910
|
<option
|
|
913
911
|
class=""
|
|
@@ -981,7 +979,6 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
981
979
|
<select
|
|
982
980
|
class="appearance-none pl-0.5 h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
983
981
|
placeholder=""
|
|
984
|
-
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
985
982
|
>
|
|
986
983
|
<option
|
|
987
984
|
class=""
|
|
@@ -1004,7 +1001,6 @@ exports[`Blocks SafeDepositRental should render block "SafeDepositRental" withou
|
|
|
1004
1001
|
<select
|
|
1005
1002
|
class="appearance-none pl-0.5 h-14 border border-gray p-4 rounded-md text-s w-full cursor-pointer text-secondary-text"
|
|
1006
1003
|
placeholder=""
|
|
1007
|
-
style="background: url(/icons/ArrowDownIcon.svg) no-repeat 50%;"
|
|
1008
1004
|
>
|
|
1009
1005
|
<option
|
|
1010
1006
|
class=""
|
|
@@ -9,7 +9,7 @@ export interface SelectProps {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
const selectStyle = {
|
|
12
|
-
background: `url('/icons/ArrowDownIcon.svg')
|
|
12
|
+
background: `url('/icons/ArrowDownIcon.svg') right 16px top 50% / 21px no-repeat`,
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
export const Select = JSX<SelectProps>(
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
/* eslint-disable no-undef */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
3
|
+
|
|
4
|
+
const defaultTheme = require('tailwindcss/defaultTheme');
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
content: ['./src/**/*.{js,jsx,ts,tsx,json}'],
|
|
8
|
+
corePlugins: {
|
|
9
|
+
filter: true,
|
|
10
|
+
},
|
|
11
|
+
theme: {
|
|
12
|
+
screens: {
|
|
13
|
+
sm: { min: '640px', max: '767px' },
|
|
14
|
+
// => @media (min-width: 640px and max-width: 767px) { ... }
|
|
15
|
+
|
|
16
|
+
md: { min: '768px', max: '1023px' },
|
|
17
|
+
// => @media (min-width: 768px and max-width: 1023px) { ... }
|
|
18
|
+
|
|
19
|
+
lg: { min: '1024px', max: '1279px' },
|
|
20
|
+
// => @media (min-width: 1024px and max-width: 1279px) { ... }
|
|
21
|
+
|
|
22
|
+
xl: { min: '1280px', max: '1535px' },
|
|
23
|
+
// => @media (min-width: 1280px and max-width: 1535px) { ... }
|
|
24
|
+
},
|
|
25
|
+
container: {
|
|
26
|
+
center: true,
|
|
27
|
+
},
|
|
28
|
+
extend: {
|
|
29
|
+
transitionProperty: {
|
|
30
|
+
height: 'height',
|
|
31
|
+
},
|
|
32
|
+
backgroundColor: {
|
|
33
|
+
'white/10': 'rgba(255,255,255,0.1);',
|
|
34
|
+
},
|
|
35
|
+
backgroundImage: {
|
|
36
|
+
'opacity-to-white':
|
|
37
|
+
'linear-gradient(270deg, #FFFFFF 34.89%, rgba(255, 255, 255, 0) 92.52%);',
|
|
38
|
+
'opacity-from-white':
|
|
39
|
+
'linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.7) 25%, rgba(255,255,255,0) 80%);',
|
|
40
|
+
'opacity-to-main':
|
|
41
|
+
'linear-gradient(270deg, rgba(var(--color-primary-main), 1) 34.89%, rgba(var(--color-primary-main), 0) 92.52%);',
|
|
42
|
+
'opacity-from-main':
|
|
43
|
+
'linear-gradient(90deg, rgba(var(--color-primary-main), 1) 0%, rgba(var(--color-primary-main), 0) 80%);',
|
|
44
|
+
'green-to-yellow': 'linear-gradient(180deg, #42AB44 0%, #F6DB7D 100%)',
|
|
45
|
+
},
|
|
46
|
+
fontFamily: {
|
|
47
|
+
sans: ['Ubuntu', ...defaultTheme.fontFamily.sans],
|
|
48
|
+
mohave: ['Mohave', ...defaultTheme.fontFamily.sans],
|
|
49
|
+
},
|
|
50
|
+
fontSize: {
|
|
51
|
+
'm-title': ['1.375rem', '1.8125rem'], // 22px 29px // Временно оставлен до готовности нового мобильного дизайна
|
|
52
|
+
'm-title-xs': ['1.0625rem', '1.375rem'], // 17px 22px // Временно оставлен до готовности нового мобильного дизайна
|
|
53
|
+
|
|
54
|
+
'title-extra': ['15.625rem', '14.687rem'], // 250px 235px
|
|
55
|
+
'title-huge': ['12.5rem', '15.625rem'], // 200px 250px
|
|
56
|
+
'title-error': ['76.75rem', '107rem'], // 307px 428px
|
|
57
|
+
h0: [
|
|
58
|
+
'3.5rem',
|
|
59
|
+
{
|
|
60
|
+
// 56px 56px
|
|
61
|
+
lineHeight: '3.5rem',
|
|
62
|
+
fontWeight: '400',
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
h1: [
|
|
66
|
+
'3.125rem',
|
|
67
|
+
{
|
|
68
|
+
// 50px 52px
|
|
69
|
+
lineHeight: '3.25rem',
|
|
70
|
+
fontWeight: '400',
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
h2: [
|
|
74
|
+
'2.5rem',
|
|
75
|
+
{
|
|
76
|
+
// 40px 48px
|
|
77
|
+
lineHeight: '3rem',
|
|
78
|
+
fontWeight: '400',
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
h3: [
|
|
82
|
+
'2rem',
|
|
83
|
+
{
|
|
84
|
+
// 32px 40px
|
|
85
|
+
lineHeight: '2.5rem',
|
|
86
|
+
fontWeight: '400',
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
h4: [
|
|
90
|
+
'1.75rem',
|
|
91
|
+
{
|
|
92
|
+
// 28px 36px
|
|
93
|
+
lineHeight: '2.25rem',
|
|
94
|
+
fontWeight: '400',
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
h5: [
|
|
98
|
+
'1.5rem',
|
|
99
|
+
{
|
|
100
|
+
// 24px 30px
|
|
101
|
+
lineHeight: '1.875rem',
|
|
102
|
+
fontWeight: '400',
|
|
103
|
+
},
|
|
104
|
+
],
|
|
105
|
+
'h5-light': [
|
|
106
|
+
'1.5rem',
|
|
107
|
+
{
|
|
108
|
+
// 24px 30px
|
|
109
|
+
lineHeight: '1.875rem',
|
|
110
|
+
fontWeight: '300',
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
h6: [
|
|
114
|
+
'1.25rem',
|
|
115
|
+
{
|
|
116
|
+
// 20px 28px
|
|
117
|
+
lineHeight: '1.75rem',
|
|
118
|
+
fontWeight: '400',
|
|
119
|
+
},
|
|
120
|
+
],
|
|
121
|
+
xl: [
|
|
122
|
+
'1.125rem',
|
|
123
|
+
{
|
|
124
|
+
// 18px 24px
|
|
125
|
+
lineHeight: '1.5rem',
|
|
126
|
+
fontWeight: '400',
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
'xl-light': [
|
|
130
|
+
'1.125rem',
|
|
131
|
+
{
|
|
132
|
+
// 18px 24px
|
|
133
|
+
lineHeight: '1.5rem',
|
|
134
|
+
fontWeight: '300',
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
l: [
|
|
138
|
+
'1rem',
|
|
139
|
+
{
|
|
140
|
+
// 16px 24px
|
|
141
|
+
lineHeight: '1.5rem',
|
|
142
|
+
fontWeight: '400',
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
'l-light': [
|
|
146
|
+
'1rem',
|
|
147
|
+
{
|
|
148
|
+
// 16px 24px
|
|
149
|
+
lineHeight: '1.5rem',
|
|
150
|
+
fontWeight: '300',
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
m: [
|
|
154
|
+
'0.9375rem',
|
|
155
|
+
{
|
|
156
|
+
// 15px 20px
|
|
157
|
+
lineHeight: '1.25rem',
|
|
158
|
+
fontWeight: '400',
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
'm-light': [
|
|
162
|
+
'0.9375rem',
|
|
163
|
+
{
|
|
164
|
+
// 15px 20px
|
|
165
|
+
lineHeight: '1.25rem',
|
|
166
|
+
fontWeight: '300',
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
s: [
|
|
170
|
+
'0.875rem',
|
|
171
|
+
{
|
|
172
|
+
// 14px 20px
|
|
173
|
+
lineHeight: '1.25rem',
|
|
174
|
+
fontWeight: '400',
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
's-light': [
|
|
178
|
+
'0.875rem',
|
|
179
|
+
{
|
|
180
|
+
// 14px 20px
|
|
181
|
+
lineHeight: '1.25rem',
|
|
182
|
+
fontWeight: '300',
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
'xs-light': [
|
|
186
|
+
'0.75rem',
|
|
187
|
+
{
|
|
188
|
+
// 12px 18px
|
|
189
|
+
lineHeight: '1.125rem',
|
|
190
|
+
fontWeight: '300',
|
|
191
|
+
},
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
colors: {
|
|
195
|
+
main: {
|
|
196
|
+
DEFAULT: 'rgba(240, 244, 240, <alpha-value>)',
|
|
197
|
+
divider: 'rgba(235, 237, 240, <alpha-value>)',
|
|
198
|
+
gradient: {
|
|
199
|
+
start: 'rgba(var(--color-gradient-from), <alpha-value>)',
|
|
200
|
+
end: 'rgba(var(--color-gradient-to), <alpha-value>)',
|
|
201
|
+
},
|
|
202
|
+
stroke: 'rgba(201, 202, 204, <alpha-value>)',
|
|
203
|
+
disabled: 'rgba(187, 187, 187, <alpha-value>)',
|
|
204
|
+
},
|
|
205
|
+
primary: {
|
|
206
|
+
main: 'rgba(var(--color-primary-main), <alpha-value>)',
|
|
207
|
+
hover: 'rgba(var(--color-primary-hover), <alpha-value>)',
|
|
208
|
+
active: 'rgba(var(--color-primary-active), <alpha-value>)',
|
|
209
|
+
// Text
|
|
210
|
+
text: 'rgba(28, 28, 28, <alpha-value>)',
|
|
211
|
+
},
|
|
212
|
+
secondary: {
|
|
213
|
+
hover: 'rgba(var(--color-secondary-hover), <alpha-value>)',
|
|
214
|
+
active: 'rgba(var(--color-secondary-active), <alpha-value>)',
|
|
215
|
+
// Gray
|
|
216
|
+
light: 'rgba(245, 247, 249, <alpha-value>)',
|
|
217
|
+
dark: 'rgba(226, 228, 229, <alpha-value>)',
|
|
218
|
+
// Text
|
|
219
|
+
text: 'rgba(125, 126, 127, <alpha-value>)',
|
|
220
|
+
},
|
|
221
|
+
gray: 'rgba(201, 202, 204, <alpha-value>)',
|
|
222
|
+
},
|
|
223
|
+
minHeight: (theme) => ({
|
|
224
|
+
...theme('spacing'),
|
|
225
|
+
}),
|
|
226
|
+
minWidth: (theme) => ({
|
|
227
|
+
...theme('spacing'),
|
|
228
|
+
}),
|
|
229
|
+
animation: {
|
|
230
|
+
expansion: 'expansion 0.3s ease-out',
|
|
231
|
+
},
|
|
232
|
+
keyframes: {
|
|
233
|
+
expansion: {
|
|
234
|
+
from: { transform: 'scaleY(0)' },
|
|
235
|
+
to: { transform: 'scaleY(1)' },
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
boxShadow: {
|
|
239
|
+
'dark-blue/42': '0 18px 36px -4px rgba(24, 39, 75, 0.42);',
|
|
240
|
+
'blue-gray/24': '0 14px 36px -4px rgba(21, 40, 90, 0.24);',
|
|
241
|
+
},
|
|
242
|
+
borderColor: {
|
|
243
|
+
'white/50': 'rgba(255,255,255,.5);',
|
|
244
|
+
'gray/100': 'rgba(235, 237, 240, 1);',
|
|
245
|
+
'primary-hover': 'rgba(134, 134, 134, 1);',
|
|
246
|
+
'primary-focus': 'rgba(28, 28, 28, 1);',
|
|
247
|
+
'checkbox-hover': 'rgba(134, 134, 134, 1);',
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
plugins: [],
|
|
252
|
+
safelist: [],
|
|
253
|
+
};
|