@redneckz/wildless-cms-uni-blocks 0.4.7 → 0.4.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.
Files changed (153) hide show
  1. package/bundle/blocks.schema.json +1 -1
  2. package/bundle/bundle.umd.js +14 -14
  3. package/bundle/bundle.umd.min.js +1 -1
  4. package/dist/components/BaseTile/BaseTile.js +1 -1
  5. package/dist/components/BaseTile/BaseTile.js.map +1 -1
  6. package/dist/components/Calculator/Calculator.js +1 -1
  7. package/dist/components/Calculator/Calculator.js.map +1 -1
  8. package/dist/components/ContentPage/isBlockInRegistry.d.ts +2 -1
  9. package/dist/components/ContentPage/isBlockInRegistry.js.map +1 -1
  10. package/dist/components/ContentPage/normalizePage.d.ts +2 -1
  11. package/dist/components/ContentPage/normalizePage.js +8 -7
  12. package/dist/components/ContentPage/normalizePage.js.map +1 -1
  13. package/dist/components/ContentPage/normalizePage.mobile.d.ts +2 -1
  14. package/dist/components/ContentPage/normalizePage.mobile.js +7 -7
  15. package/dist/components/ContentPage/normalizePage.mobile.js.map +1 -1
  16. package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  17. package/dist/components/Footer/HorizontalNavigation.js +1 -1
  18. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -2
  19. package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  20. package/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +2 -2
  21. package/dist/components/Recommendation/RecommendationCard.js +1 -1
  22. package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  23. package/dist/ui-kit/CurrencyInput/CurrencyInput.js +1 -1
  24. package/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  25. package/dist/ui-kit/Foldable/Foldable.js +2 -2
  26. package/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  27. package/dist/ui-kit/Input/Input.js +1 -1
  28. package/dist/ui-kit/Input/Input.js.map +1 -1
  29. package/dist/ui-kit/Logo/Logo.js +2 -2
  30. package/dist/ui-kit/Logo/Logo.js.map +1 -1
  31. package/dist/ui-kit/SearchBar/SearchBarInner.js +1 -1
  32. package/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
  33. package/dist/ui-kit/Select/Select.js +1 -1
  34. package/dist/ui-kit/Select/Select.js.map +1 -1
  35. package/lib/common.css +1 -1
  36. package/lib/components/BaseTile/BaseTile.js +1 -1
  37. package/lib/components/BaseTile/BaseTile.js.map +1 -1
  38. package/lib/components/Calculator/Calculator.js +1 -1
  39. package/lib/components/Calculator/Calculator.js.map +1 -1
  40. package/lib/components/ContentPage/isBlockInRegistry.d.ts +2 -1
  41. package/lib/components/ContentPage/isBlockInRegistry.js.map +1 -1
  42. package/lib/components/ContentPage/normalizePage.d.ts +2 -1
  43. package/lib/components/ContentPage/normalizePage.js +8 -7
  44. package/lib/components/ContentPage/normalizePage.js.map +1 -1
  45. package/lib/components/ContentPage/normalizePage.mobile.d.ts +2 -1
  46. package/lib/components/ContentPage/normalizePage.mobile.js +7 -7
  47. package/lib/components/ContentPage/normalizePage.mobile.js.map +1 -1
  48. package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  49. package/lib/components/Footer/HorizontalNavigation.js +1 -1
  50. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -2
  51. package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  52. package/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +2 -2
  53. package/lib/components/Recommendation/RecommendationCard.js +1 -1
  54. package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  55. package/lib/ui-kit/CurrencyInput/CurrencyInput.js +1 -1
  56. package/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  57. package/lib/ui-kit/Foldable/Foldable.js +2 -2
  58. package/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  59. package/lib/ui-kit/Input/Input.js +1 -1
  60. package/lib/ui-kit/Input/Input.js.map +1 -1
  61. package/lib/ui-kit/Logo/Logo.js +2 -2
  62. package/lib/ui-kit/Logo/Logo.js.map +1 -1
  63. package/lib/ui-kit/SearchBar/SearchBarInner.js +1 -1
  64. package/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
  65. package/lib/ui-kit/Select/Select.js +1 -1
  66. package/lib/ui-kit/Select/Select.js.map +1 -1
  67. package/mobile/bundle/bundle.umd.js +4 -4
  68. package/mobile/bundle/bundle.umd.min.js +1 -1
  69. package/mobile/dist/components/BaseTile/BaseTile.js +1 -1
  70. package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
  71. package/mobile/dist/components/Calculator/Calculator.js +1 -1
  72. package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
  73. package/mobile/dist/components/ContentPage/isBlockInRegistry.d.ts +2 -1
  74. package/mobile/dist/components/ContentPage/isBlockInRegistry.js.map +1 -1
  75. package/mobile/dist/components/ContentPage/normalizePage.d.ts +2 -1
  76. package/mobile/dist/components/ContentPage/normalizePage.js +7 -7
  77. package/mobile/dist/components/ContentPage/normalizePage.js.map +1 -1
  78. package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  79. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -2
  80. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  81. package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +2 -2
  82. package/mobile/dist/components/Recommendation/RecommendationCard.js +1 -1
  83. package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
  84. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js +1 -1
  85. package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  86. package/mobile/dist/ui-kit/Foldable/Foldable.js +2 -2
  87. package/mobile/dist/ui-kit/Foldable/Foldable.js.map +1 -1
  88. package/mobile/dist/ui-kit/Input/Input.js +1 -1
  89. package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
  90. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js +1 -1
  91. package/mobile/dist/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
  92. package/mobile/dist/ui-kit/Select/Select.js +1 -1
  93. package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
  94. package/mobile/lib/components/BaseTile/BaseTile.js +1 -1
  95. package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
  96. package/mobile/lib/components/Calculator/Calculator.js +1 -1
  97. package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
  98. package/mobile/lib/components/ContentPage/isBlockInRegistry.d.ts +2 -1
  99. package/mobile/lib/components/ContentPage/isBlockInRegistry.js.map +1 -1
  100. package/mobile/lib/components/ContentPage/normalizePage.d.ts +2 -1
  101. package/mobile/lib/components/ContentPage/normalizePage.js +7 -7
  102. package/mobile/lib/components/ContentPage/normalizePage.js.map +1 -1
  103. package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +2 -2
  104. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -2
  105. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
  106. package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlockContent.d.ts +2 -2
  107. package/mobile/lib/components/Recommendation/RecommendationCard.js +1 -1
  108. package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
  109. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js +1 -1
  110. package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
  111. package/mobile/lib/ui-kit/Foldable/Foldable.js +2 -2
  112. package/mobile/lib/ui-kit/Foldable/Foldable.js.map +1 -1
  113. package/mobile/lib/ui-kit/Input/Input.js +1 -1
  114. package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
  115. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js +1 -1
  116. package/mobile/lib/ui-kit/SearchBar/SearchBarInner.js.map +1 -1
  117. package/mobile/lib/ui-kit/Select/Select.js +1 -1
  118. package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
  119. package/mobile/src/components/BaseTile/BaseTile.tsx +2 -2
  120. package/mobile/src/components/Calculator/Calculator.tsx +1 -1
  121. package/mobile/src/components/ContentPage/isBlockInRegistry.ts +3 -1
  122. package/mobile/src/components/ContentPage/normalizePage.ts +8 -6
  123. package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +2 -2
  124. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +2 -2
  125. package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +2 -2
  126. package/mobile/src/components/Recommendation/RecommendationCard.tsx +18 -16
  127. package/mobile/src/components/__snapshots__/Blocks.spec.tsx.snap +24 -14
  128. package/mobile/src/ui-kit/CurrencyInput/CurrencyInput.tsx +1 -1
  129. package/mobile/src/ui-kit/Foldable/Foldable.tsx +11 -2
  130. package/mobile/src/ui-kit/Input/Input.tsx +1 -1
  131. package/mobile/src/ui-kit/SearchBar/SearchBarInner.tsx +1 -1
  132. package/mobile/src/ui-kit/Select/Select.tsx +1 -1
  133. package/package.json +1 -1
  134. package/src/components/BaseTile/BaseTile.tsx +2 -2
  135. package/src/components/Calculator/Calculator.tsx +1 -1
  136. package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +1 -1
  137. package/src/components/ContentPage/ContentPage.fixture.tsx +2 -2
  138. package/src/components/ContentPage/isBlockInRegistry.ts +3 -1
  139. package/src/components/ContentPage/normalizePage.mobile.ts +8 -6
  140. package/src/components/ContentPage/normalizePage.ts +9 -6
  141. package/src/components/ErrorBlock/ErrorBlockContent.ts +2 -2
  142. package/src/components/Footer/HorizontalNavigation.tsx +1 -1
  143. package/src/components/OfficeServicesBlock/OfficeServicesBlock.fixture.tsx +1 -1
  144. package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +2 -2
  145. package/src/components/OfficeServicesBlock/OfficeServicesBlockContent.ts +2 -2
  146. package/src/components/Recommendation/RecommendationCard.tsx +18 -16
  147. package/src/components/__snapshots__/Blocks.spec.tsx.snap +24 -14
  148. package/src/ui-kit/CurrencyInput/CurrencyInput.tsx +1 -1
  149. package/src/ui-kit/Foldable/Foldable.tsx +11 -2
  150. package/src/ui-kit/Input/Input.tsx +1 -1
  151. package/src/ui-kit/Logo/Logo.tsx +2 -2
  152. package/src/ui-kit/SearchBar/SearchBarInner.tsx +1 -1
  153. package/src/ui-kit/Select/Select.tsx +1 -1
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),r=n("useState"),l=n("useEffect"),a=n("useCallback"),i=n("useMemo");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 s=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}},c="likesToken";function d(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(c)||"");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(c,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/${s.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:r}=await e.json();return r||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${s.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{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:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${s.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{likes:l}=await e.json();return l||0}catch(e){return console.error(e),0}}}}const m=(...e)=>globalThis._uni._jsx(...e),h=(...e)=>globalThis._uni._jsxs(...e),u=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:r,...l}=t||{},a=n?.slots?.default,i=r||a&&a();return e(Object.assign(l,i&&{children:i}),n)}return t.inheritAttrs=!1,t},x={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},g=u((e=>{const{className:t,headingType:n="h3",title:r,as:l="h3"}=e;return m(l,{className:`font-sans font-medium m-0 ${x[n]} ${t||""}`,children:r})}));var b,f;!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.BurgerIcon="BurgerIcon",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",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.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.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.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.StateMortgageIcon="StateMortgageIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon",e.WateringCanIcon="WateringCanIcon"}(b||(b={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlaneIcon="Самолет",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowUpIcon="Стрелка вверх",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",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.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.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PackA4Icon="PackA4Icon",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.StateMortgageIcon="StateMortgageIcon",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCanIcon="Добавить продукт"}(f||(f={}));const y={normal:"text-primary-main",black:"text-black",white:"text-black invert"},N=u((({className:e="",imageClassName:t="",name:n="",alt:r=`Иконка ${f[n]||n}`,title:l=r,iconVersion:a="normal",asSVG:i,...o})=>{const c=`${s.CDN||""}icons/${n}.svg`;return i?h("svg",{className:e,...o,"aria-hidden":"true",children:[l?m("title",{children:l}):null,r?m("desc",{children:r}):null,m("use",{className:`${y[a]} ${t}`,href:`${c}#icon`,xlinkHref:`${c}#icon`})]}):m("img",{className:e,src:c,alt:r,title:l,...o,"aria-hidden":"true"})}));function I(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const v=(e,t)=>e.media&&t.media?e.media-t.media:0,w=u((({className:e="",image:t,imageClassName:n="",isMobile:r=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return h("picture",{className:`${r?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(v).map((({src:e,format:n,media:r},l)=>m("source",{srcSet:e,type:C(n),media:r?`(max-width: ${r}px)`:"",...t.size},`${l}_${e}`))):null,k(t,n,r)]})})),k=(e,t="",n=!1)=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},l=e.title||"",a=e.alt||e.title,i=n?"m-auto":"m-0";return m("img",{src:e.src,className:`${i} ${t}`,alt:a,title:l,style:r,...e.size})};function C(e){return e?`image/${String(e)}`:void 0}const S=u((({className:e="",image:t,imageClassName:n="",isMobile:r,...l})=>{if(!t)return null;const a="string"==typeof t?t:t.icon;return a||""===a?a.length?m(N,{className:e,imageClassName:n,iconVersion:I(t),name:a,...l}):null:m(w,{className:e,imageClassName:n,image:t,isMobile:r})})),$=u((({className:e="",image:t,imageClassName:n,...r})=>m(S,{className:e,image:t,imageClassName:n,...r,isMobile:!0})));function D(e){return e?e.filter(Boolean).join(" "):""}const T={left:"text-left",center:"text-center",right:"text-right"},R={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"}},_=u((({bgColorHeadline:e="transparent",className:t="",title:n,description:r,image:l,align:a="left"})=>{const i=R[e];return h("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${i.background} ${t}`,children:[n?m(g,{headingType:"h2",className:`${i.text} ${T[a]}`,title:n}):null,r?m("p",{className:`text-m ${i.description} ${T[a]}`,children:r}):null,l?.src&&m("div",{className:"mt-2.5 mx-auto flex justify-center",children:m($,{image:l})})]})})),B=u((({children:e,activeIndex:t,indexFraction:n,showDots:r})=>{const l=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return r&&e?.length?m("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,r)=>m("div",{onClick:l(r),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:P(r,t,n),"aria-hidden":!0},String(r))))}):null})),P=(e,t,n)=>{if(e<t||e>t+1)return;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},A=u((({className:e="",children:t,...n})=>m("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...n,children:t}))),M=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),L=u((({className:e="",children:t,activeIndex:n,onScroll:r,gap:l=14,padding:a=16})=>m("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...M(a),gap:`${l}px`},role:"list",onScroll:r,children:t?.length?t?.map(((e,t)=>m(A,{style:M(a/4),"aria-current":Boolean(n===t),children:e},String(t)))):m(A,{children:t})}))),V=u((({className:e,children:t,gap:n=14,padding:l=16,showDots:a=!0,onSlideChange:i})=>{const[o,s]=r(0),[c,d]=r(0),u={activeIndex:o,indexFraction:c,showDots:a,children:t};return h("div",{className:e,children:[m(L,{gap:n,padding:l,activeIndex:o,onScroll:e=>{const{scrollLeft:t,clientWidth:r,childElementCount:a,scrollWidth:c,children:m}=e?.currentTarget,h=m[0].offsetWidth-l/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:l,itemWidth:a})=>{const i=r-n;if(2===l)return[[0,i],[i,r]];const o=a+e,s=n-e-t,c=l-2,d=new Array(l).fill(0).map(((e,t)=>0===t||t===c?[t>0?i-s:0,t>0?i:s]:[(t-1)*o+s,t*o+s]));return d[l-1]=[i,r],d})({gap:n,padding:l,clientWidth:r,scrollWidth:c,childElementCount:a,itemWidth:h}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,l]=t[n];return{index:n,fraction:(e-r)/(l-r)}})(t,u);p!==o&&i&&i(),s(p),d(x)},children:t}),m(B,{...u})]})})),j=u((({className:e,iconClassName:t,textClassName:n,suffixClassName:r,doc:l,icon:a})=>{const{text:i,fileSize:o,...s}=l;return h("a",{className:e,role:"link",...s,children:[a?m($,{className:t,image:a,width:"24px",height:"24px",asSVG:!0}):null,i?h("span",{className:n,children:[i,m("span",{className:r,children:s?.href&&G(O(s.href),o)})]}):null]})})),G=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),O=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},W=u((({className:e="",doc:t,icon:n})=>m(j,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),U=u((({context:e,hasBorder:t=!0,documents:n,icon:r})=>m(V,{context:e,className:"text-s text-primary-main mt-5",children:n?.length?n.map(((e,n)=>m(W,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:r},String(n)))):null}))),E=u((({hasBorder:e=!0,documents:t,icon:n})=>m("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,r)=>m("div",{role:"listitem",children:m(W,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(r)))):null}))),F=u((({className:e="",context:t,title:n,description:r,icon:l={icon:"DocIconMonoColor"},documents:a,orientation:i="vertical",hasBorder:o=!0})=>h("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[m(_,{className:"!p-0 "+(r?"gap-2":"gap-5"),title:n,description:r,context:t,align:"center"}),"vertical"===i?m(E,{hasBorder:o,documents:a,icon:l}):m(U,{context:t,hasBorder:o,documents:a,icon:l})]}))),H=e=>e?.includes("//"),z=e=>(e||"").replace(/\/?\?.*/,""),J=e=>{if(!e||!H(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var q=Object.freeze({__proto__:null,isURL:H,withoutQuery:z,getOrigin:J,getHash:e=>{if(!e||!H(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const K="/mobile",Q=(e,t)=>{if(!e)return e;const n=J(t?.href);return n?e.replace(n,"")||"/":e},Y=e=>e;function Z({router:e,handlerDecorator:t=Y},n){const r=((e,t)=>{if(!e)return e;const n=Q(e,t)||"",r=t?.pathname.startsWith(K);return r&&!H(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const l=r&&!H(r),a=!n.target||"_self"===n.target;l&&a&&(t?.preventDefault(),e.push(r))}),n)}}const X=u((e=>{const{text:t,aboveText:n,appendLeft:r,appendRight:l}=e;return h("div",{className:ee(e),children:[r||null,te(e)?h("div",{children:[m("div",{className:"text-xs-light text-left",children:n}),m("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,l||null]})})),ee=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const l="gap-2 "+(n?"py-2.5 px-7":"py-4 px-9");return["flex items-center justify-center",te(e)?l:"h-12 w-12",r?"rounded-full":""].join(" ")},te=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ne={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",link:"text-primary-main"},re={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},le="w-full text-center font-sans select-none",ae=u((({className:e,text:t,aboveText:n,appendLeft:r,href:l,target:a,onClick:i,children:o,disabled:s,rounded:c,version:d="primary",ariaLabel:h,...u})=>{const p=o??m(X,{text:t,aboveText:n,appendLeft:r,rounded:c,version:d});return s?m("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:-1,className:`inline-block ${le} ${re[d]||""} ${c?"rounded-full":"rounded-md"} ${e||""}`,children:p}):m("a",{className:`${le} inline-block cursor-pointer no-underline focus:border focus:border-primary-focus ${ne[d]||""} ${c?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:a,onClick:i,"aria-label":h,role:l?"link":"button",...u,children:p})})),ie=u((({context:e,className:t="",buttons:n})=>{const{handlerDecorator:r}=e,l=e.useRouter();return n&&n?.length?m("div",{className:t,children:n.map(((e,t)=>function({icon:e,iconRight:t,...n},r){if(!n?.text)return null;return m(ae,e?{appendLeft:m($,{image:e,width:"24",height:"24",asSVG:!0}),appendRight:m($,{image:t,width:"24",height:"24",asSVG:!0}),...n}:{...n},String(r))}(Z({router:l,handlerDecorator:r},e),t)))}):null}));const oe={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"},se={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},ce=u((({className:e="",isDotted:t=!0,children:n,version:r="primary"})=>h("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?m("div",{className:de(r)}):null,m("span",{children:n})]}))),de=e=>`${oe[e]} ${se[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]}`,me={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},he={M:"text-xl-light",L:"text-h5-light"},ue=u((e=>{const{className:t="",itemClassName:n,isDotted:r,items:l,listItemSize:a="M",version:i="primary"}=e;return m("section",{className:`${me[i]} ${he[a]} ${t}`,role:"list",children:l?.length?l.map(((e,t)=>m(ce,{className:n,isDotted:r,version:i,children:e},String(t)))):null})})),pe=u((({className:e="",title:t="",children:n,buttons:r,image:l})=>h("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,h("div",{className:"flex grow w-full justify-between",children:[h("div",{className:"flex flex-col justify-between w-full",children:[m("div",{children:n}),r?m("div",{className:"mt-auto",children:r}):null]}),l]})]}))),xe={primary:"text-primary-text",secondary:"text-white"},ge={primary:"text-secondary-text",secondary:"text-white"},be=u((e=>{const{className:t="",icon:n,label:r,description:l,version:a="primary",benefitsVersion:i="normal"}=e,o="white"===i||"secondary"===a;return h("div",{className:`flex gap-5 ${l?"items-start":"items-center"} ${t}`,children:[n?m("div",{className:fe(a,i),children:m($,{className:"w-[24px] h-[24px]",image:{...n,iconVersion:o?"white":"normal"},asSVG:!0})}):null,h("div",{className:"gap-0.5",children:[r?m("div",{className:`text-h6 ${xe[a]}`,children:r}):null,l?m("div",{className:`text-m-light ${ge[a]}`,children:l}):null]})]})}));function fe(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-[10px] box-border flex items-center justify-center ${n}`}const ye=(e="primary",t="normal")=>({icon:n,label:r,description:l},a)=>m(be,{icon:n,label:r,description:l,version:e,benefitsVersion:t},String(a)),Ne=u((({className:e="",context:t,title:n,headlineVersion:r="L",description:l,benefits:a,benefitsVersion:i="normal",buttons:o,image:s,items:c,version:d="primary",isDotted:u=!0,label:p})=>h("div",{className:`w-full ${e}`,children:[h("div",{children:[p?we(p,d):null,m(_,{context:t,className:"!p-0 max-w-[600px]",title:n,description:l,bgColorHeadline:d,headlineVersion:r}),h(pe,{context:t,buttons:o?.length?m(ie,{context:t,buttons:o,className:"flex flex-col mt-5 gap-2.5"}):null,children:[a?.filter((e=>e.label))?.length?m("div",{className:"mt-3",children:a.map(ye(d,i))}):null,c?.length?m(ue,{className:"mt-3 text-m",items:c,version:d,isDotted:u}):null]})]}),Ie(s)]})));function Ie(e){return e?.src?m($,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const ve={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},we=(e,t)=>m("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${ve[t]}`,children:e}),ke={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ce=u((e=>{const{className:t="",version:n="primary"}=e;return m("section",{className:`font-sans bg-white px-4 py-6 ${ke[n]} ${t}`,children:m(Ne,{...e})})})),Se={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"}},$e=u((({title:e,description:t,blockVersion:n="primary",iconVersion:r,image:l,className:a="",items:i,isDotted:o=!0})=>{const s=Se[n],c="secondary"===n?"secondary":"gray";return h("section",{className:`font-sans px-4 py-[18px] flex flex-col ${s.background} ${a}`,children:["small"===r?De(s.icon):null,"big"===r?Te(l):null,h("div",{className:"py-0.5",children:[e?m("div",{className:`text-l font-medium mb-1 ${s.title}`,children:e}):null,t?m("div",{className:`text-s ${s.description}`,children:t}):null,i?.length?m(ue,{className:"mt-1 text-m",items:i,isDotted:o,version:c}):null]})]})}));function De(e){return m("div",{className:"mb-3",children:m("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Te(e){return e?.src?m($,{className:"pb-3 mr-auto",image:e}):null}const Re=u((({context:e,title:t,description:n,cards:r=[],className:l,orientation:a="horizontal"})=>h("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${l}`,children:[h("div",{className:"flex flex-col items-center mb-5",children:[t?m(g,{headingType:"h3",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?m("div",{className:"text-m max-w-[600px] text-center mb-5",children:n}):null]}),_e(a,r,e)]})));function _e(e,t,n){return"horizontal"===e?m(V,{context:n,children:t?.map(Be)}):m("div",{className:"grid gap-[14px]",children:t?.map(Be)})}function Be(e,t){return h("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${ke[e.version??"primary"]}`,children:[h("div",{children:[e.image?.src?m("div",{className:"flex justify-center",children:m($,{className:"mb-3.5",image:e.image})}):null,e.title?m("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?Pe(e):null,e.items?.length?Ae(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,m(ae,{className:"mt-3",appendLeft:n?.icon&&m($,{image:n?.icon,width:"24px",height:"24px",asSVG:!0}),...n})):null]},t);var n}function Pe(e){return m("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function Ae(e,t,n="primary"){return m("section",{className:"mt-3",children:e.map(((e,r)=>h("div",{children:[t?m("div",{className:de(n)}):null,m("span",{className:"text-m font-medium",children:e.title}),m("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(r))))})}class Me{static inst=new Me;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 Le=e=>{if(!e.length)return;const[t]=e;t.isIntersecting},Ve=u((({anchor:e,className:t,context:n,children:a,tag:i="section",labels:o})=>{const s=i,{IntersectionObserverTag:c}=n,[d,h]=r(!0);return l((()=>Me.inst.subscribe("tab",(e=>{var t;"group"===e.type?h(!o?.length||!e.label||o.includes(e.label)):(h(!0),t=e.label,setTimeout((()=>globalThis.document.getElementById(`#${t}`)?.scrollIntoView({behavior:"smooth"}))))}))),[o]),d?e?m(c,{tag:i,className:t,observerCallback:Le,observerOptions:{threshold:1},anchor:e,children:a}):m(s,{className:t,children:a}):null}));const je=u((({className:e="",documents:t,...n})=>m(Ve,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:m("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?Ge(t):null})}))),Ge=e=>e.map(((e,t)=>{const{text:n,...r}=e;return m("li",{className:"mb-4 list-none",children:m("a",{className:"hover:text-primary-main",role:"link",...r,children:n||null})},`list_item_${String(t)}`)})),Oe={Headline:_,LinkDocs:F,TextBlock:$e,ProductBlock:Ce,Gallery:Re,LinkList:je},We=({blocks:e,context:t,className:n=""})=>e?.length?e.map(Ue({context:t,className:n})):null,Ue=({context:e,className:t})=>(n,r)=>{if(!n)return null;const{style:l,blockListType:a,...i}=n;if(!a||!(a in Oe))return null;const o=D(l);return m(Oe[a],{className:`${t} ${o}`,context:e,...i},`block_${r}`)},Ee=u((({blocks:e,context:t})=>m("div",{className:"flex flex-wrap transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:We({context:t,blocks:e,className:"!px-0"})}))),Fe=u((({label:e,labelIcon:t,blocks:n,bordered:l,context:a})=>{const{hasContent:i,icon:o,handleToggle:s}=(({blocks:e,initialState:t=!1})=>{const[n,l]=r(t),a=e?.length;return{isActive:n,hasContent:a,icon:n?"MinusIcon":"PlusIcon",handleToggle:e=>{const t=e.currentTarget;if(!t)return;l(!n);const r=t.nextSibling;r.style.maxHeight=r.style.maxHeight?"":`${r.scrollHeight}px`}}})({blocks:n});return h("li",{className:`${He(l)} border-solid border-main-divider`,children:[h("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${l?"":"py-[14px] px-0"}\n ${i?"group cursor-pointer":""}`,onClick:s,children:[h("span",{className:"text-m-title-xs font-medium pr-2.5 flex "+(i?"group-hover:text-primary-main":""),children:[t?m($,{image:t,className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,e]}),i?m($,{className:"flex-shrink-0",image:o,width:"24",height:"24",asSVG:!0}):null]}),i?m(Ee,{blocks:n,context:a}):null]})}));function He(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const ze=u((({title:e,description:t,accordionItems:n,context:r,className:l="",bordered:a})=>h("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${l}`,children:[e?m(g,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?m("div",{className:"mb-5 text-m-light text-center",children:t}):null,n?.length?m("ul",{className:"list-none m-0 p-0",children:n.map(((e,t)=>m(Fe,{...e,context:r,bordered:a},`AccordionItem_${t}`)))}):null]}))),Je=(e=!1)=>e?"text-white":"",qe=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Ke=u((({icon:e,image:t,title:n,subtitle:r,isFillGradient:l})=>h("div",{role:"columnheader",children:[e?m($,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&m("div",{className:"mb-3.5",children:m($,{image:t})}),n?m(g,{headingType:"h4",className:Je(l),title:n}):null,r?m("div",{className:qe(l),children:r}):null]}))),Qe=u((({cell:e,rowHeader:t,isFillGradient:n=!1})=>m("div",{className:"box-border flex flex-col",role:"cell",children:m("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Ye(n,t))})}))),Ye=(e,t)=>({label:n,description:r},l)=>h("div",{className:"flex justify-between text-s py-3.5",children:[m("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),h("div",{className:"basis-1/2",children:[n?m("div",{className:"text-right "+(e?"text-white":""),children:n}):null,r?m("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:r}):null]})]},String(l)),Ze=u((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:r,showRow:l,onToggleColumn:a})=>{const i=t?.slice(0,l?t.length:n),o=r?"secondary":"primary";return h("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${r?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[m(Ke,{...e,isFillGradient:r}),i?.length?i.map((({rowHeader:e,cell:t},n)=>m(Qe,{cell:t,rowHeader:e,isFillGradient:r},String(n)))):null,l&&Xe({header:e,buttonVersion:o}),et({onToggleColumn:a,isFillGradient:r,showRow:l})]})})),Xe=({header:e,buttonVersion:t})=>m(ae,{href:e.link.href,target:e.link.target,version:t,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}),et=({onToggleColumn:e,isFillGradient:t,showRow:n})=>m("div",{className:"mt-5",role:"cell",children:m("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),tt=u((({className:e,context:t,title:n,rowHeaders:l,columns:a,visibleRowLength:i=0,isColoredFirstColumn:o=!1,orientation:s="vertical"})=>{const c=a?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:l?.[t]?.title})))})))||[],[d,u]=r(new Array(a?.length||0).fill(!i));return h("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[n?m(g,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,nt({tableData:c,context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:d,handleToggleColumn:e=>{d[e]=!d[e],u([...d])},orientation:s,setColumnsViewState:u})]})})),nt=({context:e,tableData:t,visibleRowLength:n,isColoredFirstColumn:r,columnsViewState:l,handleToggleColumn:a,orientation:i="horizontal",setColumnsViewState:o})=>m("div",{role:"table",children:t?.length?rt({orientation:i,context:e,columnsViewState:l,setColumnsViewState:o,tableData:t,visibleRowLength:n,isColoredFirstColumn:r,handleToggleColumn:a}):null}),rt=({orientation:e,context:t,columnsViewState:n,setColumnsViewState:r,tableData:l,visibleRowLength:a,isColoredFirstColumn:i,handleToggleColumn:o})=>"horizontal"===e?m(V,{context:t,onSlideChange:at(n,r),children:l.map(lt({context:t,visibleRowLength:a,isColoredFirstColumn:i,columnsViewState:n,handleToggleColumn:o}))}):l.map(lt({context:t,visibleRowLength:a,isColoredFirstColumn:i,columnsViewState:n,handleToggleColumn:o})),lt=({context:e,visibleRowLength:t,isColoredFirstColumn:n,columnsViewState:r,handleToggleColumn:l})=>(a,i)=>m(Ze,{context:e,visibleRowLength:t,showRow:r[i],header:a.header,columnData:a.column,isFillGradient:0===i&&n,onToggleColumn:()=>l(i)},String(i)),at=(e,t)=>()=>{t(new Array(e.length).fill(!1))},it=new Map;function ot(e){return e?Array.isArray(e)?e:e instanceof Function?ot(e()):[e]:[e]}let st=function(e,t){const n=i((()=>ot(e)),[e]),[a,o]=r(),[s,c]=r();return l((()=>{if(!n.every((e=>null===e)))try{const e=t(...n);"then"in e?(e=>{e.then((e=>it.get(n)||e)).then(o).catch(c)})(e):o(e)}catch(e){c(e)}}),[t,...n]),{data:a,error:s,mutate:()=>Promise.resolve(void 0),isValidating:!1}};const ct=(e,t)=>st(e,t);async function dt(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}const mt=(e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n};function ht(){return async function(e,t){try{return await dt(e,t)}catch(e){console.error(e)}return null}(ut,{method:"POST",body:JSON.stringify(pt)})}const ut="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",pt={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},xt=e=>e.reduce(((e,t)=>{const n=t.currency_first?.code;return e.some((e=>e.code===n))||e.push({code:n,buy:mt(Number(t.rate_buy),3),sell:mt(Number(t.rate_sell),3)}),e}),[]);var gt;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(gt||(gt={}));const bt=new Intl.NumberFormat("ru",{style:"currency",currency:gt.RUB}),ft=e=>e?bt.format(e):"",yt="text-left text-m-light text-secondary-text",Nt={USD:"DollarIcon",EUR:"EuroIcon"},It=u((({className:e,exchangeCurrencyItems:t})=>h("table",{className:`h-fit w-fit ${e}`,children:[m("thead",{children:h("tr",{children:[m("th",{className:yt,children:"Валюта"}),m("th",{className:`${yt} pl-11`,children:"Купить"}),m("th",{className:`${yt} pl-11`,children:"Продать"})]})}),m("tbody",{children:t.map((e=>vt(e)))})]}))),vt=e=>{const t=e?.code;return h("tr",{className:"pb-1 text-h6",children:[m("td",{className:"pt-4",children:h("div",{className:"flex items-center",children:[t?m($,{image:{icon:Nt[t]},width:"24",height:"24"}):null,m("span",{className:"ml-2",children:t})]})}),m("td",{className:"pt-4 pl-11",children:ft(e?.sell)}),m("td",{className:"pt-4 pl-11",children:ft(e?.buy)})]},t)},wt=u((({className:e="",address:t,distance:n})=>h("div",{className:`flex ${e}`,children:[m($,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),h("div",{className:"ml-3",children:[t?m("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,n?h("p",{className:"text-secondary-text m-0 text-m",children:["Курс указан для ближайшего офиса - ",n]}):null]})]}))),kt=(e,t,n)=>{const r=Number(Ct(e))*Math.pow(t,n?-1:1);return Number.isInteger(r)?r:mt(r)},Ct=e=>e.replace(/[^\d.,]/g,"").replace(",","."),St=e=>{return(t=[[e=>e.value!==gt.RUB&&e.oppositeValue!==gt.RUB,()=>e.handleConvert(e.value,gt.RUB)],[e=>e.value===gt.RUB&&e.oppositeValue===gt.RUB,()=>e.handleConvert(e.value,gt.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t},$t=u((({className:e="",id:t,name:n,type:r="text",placeholder:l,pattern:a,value:i,onChange:o})=>m("input",{className:e,id:t,name:n||t,type:r,pattern:a,placeholder:l,value:i,onChange:e=>{const t=e.target.validity.valid?e.target.value:i;o(t)}}))),Dt={background:"url('/icons/ArrowDownIcon.svg') no-repeat right 16px top 50%"},Tt=u((({className:e="",id:t,name:n,children:r,value:l,onChange:a})=>m("select",{className:`appearance-none ${e}`,style:Dt,id:t,name:n||t,value:l,onChange:e=>a(e.target.value),placeholder:"12321321312",children:r}))),Rt=u((({className:e="",value:t,selected:n,disabled:r=!1,children:l})=>m("option",{className:e,value:`${t}`,selected:n,disabled:r,children:l})));function _t(e){const{placeholder:t,rates:n,selected:r,value:l,setValue:a,setSelected:i}=e;return h("div",{className:"relative flex items-center",children:[m($t,{className:"shrink-0 h-13 border pl-4 pt-4 pb-4 rounded-md text-l w-full appearance-none -mr-12",placeholder:t,type:"text",value:l,onChange:a}),n.length?m(Tt,{className:"shrink-0 w-20 h-9 -translate-x-8 bg-transparent",value:r,onChange:e=>i(e),children:n.map(((e,t)=>m(Rt,{value:e.code,children:e.code},String(t))))}):null]})}const Bt=u((({context:e,className:t="",currencyRatesBuy:n,currencyRatesSell:l,button:a})=>{const{useRouter:i,handlerDecorator:o}=e,s=i(),[c,d]=r({inputSell:"",inputBuy:"",selectSell:n?.[0]?.code||gt.RUB,selectBuy:l?.[0]?.code||gt.USD}),u=e=>{d((t=>({...t,...e})))};return h("div",{className:`grid gap-[18px] pt-2 ${t}`,children:[_t({placeholder:"Хочу продать",rates:l,selected:c.selectSell,setSelected:Pt(c,u,l),value:c.inputSell,setValue:e=>Mt(u,l)(e,c.selectSell,c.selectBuy)}),_t({placeholder:"Получу",rates:n,selected:c.selectBuy,setSelected:At(c,u,n),value:c.inputBuy,setValue:e=>Lt(u,n)(e,c.selectBuy,c.selectSell)}),a?.text?m(ae,{className:"py-4 mr-1",version:a?.version,...Z({router:s,handlerDecorator:o},a),children:a.text}):null]})})),Pt=(e,t,n)=>r=>{t({selectSell:r}),St({value:r,oppositeValue:e.selectBuy,handleConvert:(r=e.selectSell,l=e.selectBuy)=>{Mt(t,n)(e.inputSell,r,l)}})},At=(e,t,n)=>r=>{t({selectBuy:r}),St({value:r,oppositeValue:e.selectSell,handleConvert:(r=e.selectBuy,l=e.selectSell)=>Lt(t,n)(e.inputBuy,r,l)})},Mt=(e,t)=>(n,r,l)=>{e({inputSell:Ct(n),selectBuy:l});const a=t.find((e=>e.code===l))?.buy||t.find((e=>e.code===r))?.sell;a&&e({inputBuy:String(kt(n,a,r===gt.RUB)||"")})},Lt=(e,t)=>(n,r,l)=>{e({inputBuy:Ct(n),selectSell:l});const a=t.find((e=>e.code===l))?.sell||t.find((e=>e.code===r))?.buy;a&&e({inputSell:String(kt(n,a,r===gt.RUB)||"")})},Vt={address:"Москва, ул.Ленина д.28",distance:"6км"},jt=u((({className:e="",context:t,title:n="Курсы обмена валют",button:r,...l})=>{const a=function(){const{data:e}=ct(ut,ht),t=e?.hits?.hits?.map((e=>e._source))||[];return t.length?xt(t):t}(),i=a.filter((e=>e.buy));i.unshift({code:gt.RUB});const o=a.filter((e=>e.sell));return o.push({code:gt.RUB}),m(Ve,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,...l,children:m(pe,{context:t,title:m(g,{headingType:"h4",title:n,className:"whitespace-pre-wrap text-h4"}),children:h("div",{className:"flex",children:[h("div",{className:"mr-14 pt-4",children:[a?m(It,{className:"mb-[30px]",exchangeCurrencyItems:a}):null,m(wt,{...Vt})]}),a.length&&i.length&&o.length?m(Bt,{className:"grow",context:t,currencyRatesBuy:i,currencyRatesSell:o,button:r}):null]})})})})),Gt={"bg-white":"text-primary-main",transparent:"text-white"},Ot={"bg-white":"text-black",transparent:"text-white"},Wt=u((({className:e="",href:t,children:n,targetBlank:r,bgColor:l="bg-white",hideTitle:a})=>h("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:r?"_blank":"_self","aria-label":"Россельхозбанк",children:[m($,{image:{icon:"LogoIcon"},className:`${Gt[l]} w-10 h-[38px]`,asSVG:!0}),a?null:m("span",{className:`${Ot[l]} text-s font-medium ml-2.5`,children:n||"Россельхозбанк"})]}))),Ut=u((({className:e="",title:t="Мобильное приложение",description:n,href:r="#"})=>m("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:r?h("div",{className:"flex",children:[m("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:m(Wt,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),h("a",{href:r,target:"_blank",className:"flex flex-col justify-center pl-3",children:[m("div",{className:"text-s font-medium mb-[3px]",children:t}),m("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),Et=u((({className:e="",items:t,hasButton:n,context:r})=>{const l=r.useRouter(),{handlerDecorator:a}=r;return h("div",{className:e,children:[t?.length?t.map(Ft):null,n?m(ae,{version:"primary",className:"mb-6 w-full",...Z({router:l,handlerDecorator:a},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Ft=(e,t)=>{const{type:n,text:r,description:l}=e;return h("div",{className:"mb-4",children:[m("div",{children:Ht(n,r)}),m("div",{className:"mt-1 text-s-light text-secondary-text",children:l})]},String(t))},Ht=(e,t="")=>{switch(e){case"tel":return m("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${zt(t)}`,children:t});case"email":return m("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return m("span",{children:t})}},zt=e=>e.replaceAll(/\D/g,""),Jt=u((({className:e="",index:t,text:n,href:r,target:l,onClick:a})=>m("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:l,onClick:a,children:n||`Документ ${t}`}))),qt=u((({title:e,links:t,className:n="",context:r})=>{const l=r.useRouter(),{handlerDecorator:a}=r;return h("div",{className:n,children:[m("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?m("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>m(Jt,{index:t,className:"text-s",...Z({router:l,handlerDecorator:a},e)},String(t))))}):null]})})),Kt=[{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"}],Qt=u((({href:e,version:t="primary"})=>{const{icon:n,label:r}=Kt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!n)return null;return m("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":r,target:"_blank",rel:"noopener noreferrer",children:n?m($,{image:n,imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Yt=u((({className:e,media:t,version:n,context:r})=>{const l=r.useRouter(),{handlerDecorator:a}=r;return m("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>m(Qt,{version:n,...Z({router:l,handlerDecorator:a},e)},String(t))))})})),Zt=u((({className:e="",index:t,text:n,href:r,target:l,onClick:a})=>m("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:a,children:n||`Документ ${t}`}))),Xt=u((({className:e,links:t,context:n})=>{const r=n.useRouter(),{handlerDecorator:l}=n;return h("div",{className:`${e||""}`,children:[m("div",{className:"py-6",children:m("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?m("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>m(Zt,{index:t,className:"",...Z({router:r,handlerDecorator:l},e)},String(t))))}):null]})}));function en(){const{data:e}=ct(`/wcms-resources/${s.SITEMAP||"sitemap"}.json`,dt);return e||{}}const tn=u((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:l}=(()=>{const[e,t]=r("");return{term:e,setTerm:e=>t(e)}})(),a=t?"text-s":"text-l-light",i=t?" placeholder-transparent":"h-full",o=t?"some search":void 0;return h("form",{className:`font-sans relative ${e}`,children:[h("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[m("div",{className:t?"w-[20px] h-[20px]":"w-[24px] h-[24px]",children:m($,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:m("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${a}`,children:"Поиск по сайту"})]}),m("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-divider focus:border-primary-text ${i}`,value:n,onChange:e=>l(e.target.value),type:"text",name:"search-bar-input",placeholder:o}),t?m("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:m($,{image:"CloseIcon",width:"24",height:"24"})}):m(ae,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:m("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),nn=u((({className:e=""})=>m(tn,{className:e,isMobile:!0}))),rn=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),ln=u((({className:e="",documents:t,relatedEnterprises:n,contacts:r,socialMedia:l,context:a,horizontalNavigationTitle:i})=>{const o=en(),s=o?.dispositions;return h("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[m(Et,{className:"overflow-hidden",items:r,context:a,hasButton:!0}),m(ze,{context:a,className:"!p-0 mb-4",accordionItems:rn(o.topItems)}),m("div",{children:s?.map(an)}),m(Ut,{context:a,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),m(nn,{context:a,className:"grow"}),m(Yt,{className:"pb-4",media:l,context:a}),m(qt,{title:i,links:n,context:a}),m(Xt,{links:t,context:a})]})})),an=(e,t)=>{const{icon:n,href:r,text:l}=e;return h(ae,{version:"link",href:r,className:"flex text-s mb-4 w-6",children:[n?m($,{className:"pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,m("span",{className:"pl-2.5 font-medium text-primary-text",children:l})]},`footer-${t}`)},on=(e,t,n=((e,t)=>t.startsWith(e)))=>n(z(e),(e=>(e||"").replace(K,""))(z(H(e)?t.href:t.pathname))),sn=e=>t=>on(t.href,e),cn=e=>t=>t.items?.some(sn(e))||on(t.href,e)||((e,t)=>J(e)===J(t.href))(t.href,e),dn=e=>t=>e?.href===t?.href,mn=(e,t)=>{return(r=e,l=t,(r||[]).map((e=>l?.find(dn(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(dn(e))))));var n,r,l},hn="absolute left-0 -bottom-3 w-full h-[2px]",un=u((({className:e="",text:t,href:n,target:r,active:l,onClick:a,children:i,bgColor:o="bg-white"})=>h("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:r,onClick:a,children:[m("span",{className:pn(o,l),children:t||i}),l?m("div",{className:xn(o,l)}):null]}))),pn=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},xn=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${hn}`:hn,gn=o("https://10.80.4.9");const bn=u((({context:e,burgerSubMenu:t,onClick:n,defaultLocation:i="",children:o})=>{const[s,c]=function(e){const[t,n]=r(e);return l((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,a((()=>{gn.getFetcherAddress().then((t=>{const r=t||e;globalThis?.localStorage.setItem("location",r),n(r)}))}),[e])]}(i);return h("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[m("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:n,children:m($,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),h("button",{onClick:c,className:"flex items-center text-s text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[m($,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),s]}),o,m("div",{className:"mb-7",children:t?.map(fn)}),m(nn,{context:e,className:"grow"})]})})),fn=(e,t)=>{const{icon:n,href:r,text:l}=e;return h("a",{href:r,className:"flex text-s mb-4 hover:text-primary-main",children:[n?m($,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,m("span",{className:"font-medium pl-0.5",children:l})]},`headerSubMenu-${t}`)},yn=u((({onClick:e,bgColor:t})=>h("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[h("div",{className:"flex items-center",children:[m("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:m($,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),m(Wt,{className:"mr-8",bgColor:t})]}),m("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Nn=u((({className:e="",defaultLocation:t,bgColor:n="bg-white",context:l,topItems:a})=>{const i=l.useRouter(),o=en(),s=o?.dispositions,{handlerDecorator:c}=l,d=mn(o.topItems,a).find(cn(i))?.items,u=(e=>(t=[])=>{const n=t?.filter(sn(e));return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):void 0;var r})(i)(d),[p,x]=r(!1),g=()=>x(!p);return h("header",{className:`${n} ${e}`,children:[h("div",{className:"container px-4 py-0 box-border",children:[m(yn,{onClick:g,bgColor:n}),m("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:m("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:d?.map(((e,t)=>In({...Z({router:i,handlerDecorator:c},e),active:e===u,bgColor:n},t)))})})]}),p?m(bn,{context:l,onClick:g,burgerSubMenu:s,defaultLocation:t,children:m(ze,{context:l,accordionItems:rn(o.topItems),className:"!p-0 mb-4"})}):null]})})),In=(e,t)=>m(un,{className:"mr-8 whitespace-nowrap text-s",...e},String(t)),vn=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function wn(e=""){const t=vn(e);return t<=4?"S":t<=8?"M":"L"}function kn(e=""){const t=vn(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Cn(e=""){const t=vn(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Sn=u((({className:e,context:t,title:n,description:r="Блок в разработке...",...l})=>h(Ve,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Cn(e)} ${kn(e)} `,...l,children:[m(_,{context:t,className:"!p-0 max-w-[600px]",title:n,description:r,headlineVersion:wn(e)}),m("figure",{className:"m-0 min-w-[80%]",children:$n()})]}))),$n=(e=3)=>Tn(100,e).map((e=>Math.floor(e))).map(Dn),Dn=(e,t)=>m("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Tn=(e,t)=>[e].concat(t>0?Tn(e/1.618,t-1):[]),Rn=u((({block:e,context:t,className:n=""})=>m("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${ke[e?.version??"primary"]} ${n}`,role:"listitem",children:m("div",{className:"flex grow",children:m(Ne,{context:t,...e})})}))),_n=u((({className:e,context:t,slides:n=[]})=>{const r=n.map((e=>e.productBlock));return m("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:m(V,{context:t,children:r.map(((e,n)=>m(Rn,{block:e,context:t},String(n))))})})})),Bn={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"}},Pn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},An={normal:"min-h-[70px]",small:"min-h-[50px]"},Mn=u((({className:e,title:t,description:n,showLines:r=!0,steps:l,size:a="normal",version:i="primary"})=>{const o=Bn[i];return h("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${o.background} ${o.title} ${e||""}`,children:[t?m(g,{headingType:"h3",className:`text-center ${o.title}`,title:t}):null,n?m("p",{className:`text-m-light text-center ${o.description} ${t?"mt-2":""}`,children:n}):null,l?.length?m("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:m("div",{className:"flex flex-col justify-between gap-x-[101px]",children:l.map(Ln(a,i,r))})}):null]})})),Ln=(e,t,n)=>(r,l,a)=>{const i=a.length-1===l,o="normal"===e?"ml-[34px]":"ml-6",s=Bn[t];return m("div",{children:h("div",{className:"flex flex-row text-center relative",children:[h("div",{className:"overflow-hidden flex-shrink-0",children:[Vn(e,t)(r,l),i?null:m("div",{className:`min-h-8 h-full w-[2px] ${n?s.iconConnector:""} ${o}`})]}),h("div",{className:`flex flex-col justify-center h-fit ${An[e]}`,children:[r.label?m("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:r.label}):null,r.description?m("div",{className:`text-s ${s.description} text-left`,children:r.description}):null]})]})},String(l))},Vn=(e,t)=>(n,r)=>{const l=Bn[t],a="normal"===e?"38":"27",i="normal"===e?"text-m-title":"text-m-title-xs";return m("div",{className:`${Pn[e]} ${l.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:m("span",{className:`font-medium flex self-center ${l.title} ${i}`,children:(o=n?.icon,Boolean(o?.icon||o?.src)?m($,{image:n.icon,width:a,height:a,asSVG:!0}):m("span",{children:r+1}))})});var o},jn=e=>e?.alt||e?.title||f[e?.icon?e.icon:""],Gn={Buttons:({buttons:e})=>e&&e?.length?m("div",{children:e.map((({icon:e,rounded:t,...n},r)=>m(ae,{className:`mt-3 ${r>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:jn(e),rounded:t,appendLeft:e?.src||e?.icon?m($,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...n,"aria-label":e},String(r))))}):null,Img:({image:e})=>e?.src?m($,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>m(ue,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>h("div",{children:[e?m("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?m("div",{className:"text-s text-secondary-text",children:t}):null]})},On=u((({title:e,icon:t})=>h("div",{className:"flex gap-2.5 mb-2",children:[e?m(g,{headingType:"h3",className:"font-medium",title:e}):null,t?m($,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Wn=u((({context:e,header:t,data:n})=>h("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[m(On,{...t}),n?.length?n.map(Un(e)):null]}))),Un=e=>(t,n)=>h("div",{children:[n>0?m("div",{className:"h-5"}):null,En(t,e)]},String(n)),En=(e,t)=>{if(!e)return null;const{tableCellType:n,...r}=e;if(!n||!(n in Gn))return null;return m(Gn[n],{context:t,...r})},Fn=u((({tiles:e,context:t})=>m(V,{context:t,children:e.map(((e,t)=>m(Wn,{...e},String(t))))}))),Hn=u((({tiles:e})=>m("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>m(Wn,{...e},String(t))))}))),zn=u((({className:e,context:t,title:n,description:r,tariffsColumns:l,rowHeaders:a,orientation:i="vertical"})=>{const o=qn(l),s=Kn(a,o);return h("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[n?m(g,{headingType:"h2",className:`text-center ${r?"mb-2":"mb-5"}`,title:n}):null,r?m("div",{className:"mb-5 text-center text-m",children:r}):null,s?.length?Jn(i,s,t):null]})}));function Jn(e,t,n){return m("vertical"===e?Hn:Fn,{context:n,tiles:t})}const qn=e=>e?.[0].data?e[0].data:[],Kn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Qn={Accordion:ze,ComparisonTable:tt,ExchangeRateTile:jt,Footer:ln,Gallery:Re,Header:Nn,Headline:_,LinkDocs:F,LinkList:je,MobileAppTile:Ut,ProductBlock:Ce,ProductGallery:_n,StepsBlock:Mn,TariffsTable:zn,TextBlock:$e,Placeholder:Sn},Yn=d();const Zn=u((({className:e,onClick:t,ariaLabel:n})=>m("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Xn()}))),Xn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[m("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"}),m("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"})]})},er=u((({className:e,context:t,...n})=>{const{useRouter:i,handlerDecorator:o=Y}=t,s=function(e){const[t,n]=r(0);return l((()=>{(async()=>{const[t]=await Yn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{n(await Yn.like(e))}),[e]),dislike:a((async()=>{n(await Yn.dislike(e))}),[e])}}(i().pathname);return h(Ve,{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:[m(Zn,{onClick:o(s.like),ariaLabel:"Поставить отметку «лайк»"}),m(Zn,{onClick:o(s.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),m("span",{className:"select-none",children:s.likeCount})]})})),tr=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),nr=u((({className:e="",context:t,blocksRegistry:n,data:r={},blockDecorator:l=tr})=>{const{style:a,blocks:i,slots:o={},likeControl:s,colorPalette:c="pc"}=r,{header:d}=o;return h("section",{className:`relative ${D(a)} ${e}`,"data-theme":c,children:[d?.blocks?.length?m("div",{className:`${D(d?.style)}`,children:d.blocks.map(((e,a)=>rr({block:e,page:r,blockDecorator:l,blocksRegistry:n,context:t},a)))}):null,i?.length?m("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,a)=>rr({block:e,blockDecorator:l,blocksRegistry:n,context:t,page:r},a)))}):null,s?m("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:m(er,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function rr({block:e,blockDecorator:t,blocksRegistry:n,context:r,page:l},a){const{type:i}=e;i&&i in n||console.warn(`No block with "${i}" is registered`);const o=n[i||"Placeholder"]||Sn;return t({blockClassName:`scroll-mt-12 ${D(e.style)}`,block:e,render:e=>{const{version:t,content:n,anchor:s,labels:c}=e.block;return m(o,{className:e.blockClassName,version:t,context:r,page:l,anchor:s,labels:c,...n},`${i}-${a}`)}},`block-${a}`)}e.Blocks=Qn,e.ContentPage=nr,e.DaDataAPI=o,e.LikeAPI=d,e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.projectSettings=s,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=q,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),r=n("useState"),l=n("useEffect"),a=n("useCallback"),i=n("useMemo");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 s=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}},c="likesToken";function d(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(c)||"");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(c,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/${s.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:r}=await e.json();return r||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${s.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{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:r}=await e();try{const e=await fetch(`/assist/v1/public/projects/${s.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:r},body:JSON.stringify({node_id:t,user_name:r})}),{likes:l}=await e.json();return l||0}catch(e){return console.error(e),0}}}}const m=(...e)=>globalThis._uni._jsx(...e),h=(...e)=>globalThis._uni._jsxs(...e),u=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:r,...l}=t||{},a=n?.slots?.default,i=r||a&&a();return e(Object.assign(l,i&&{children:i}),n)}return t.inheritAttrs=!1,t},x={h0:"text-m-title",h1:"text-m-title",h2:"text-m-title",h3:"text-h6",h4:"text-m-title-xs",h5:"text-m-title-xs",h6:"text-m-title-xs"},g=u((e=>{const{className:t,headingType:n="h3",title:r,as:l="h3"}=e;return m(l,{className:`font-sans font-medium m-0 ${x[n]} ${t||""}`,children:r})}));var b,f;!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.BurgerIcon="BurgerIcon",e.Calendar2Icon="Calendar2Icon",e.CalendarCircleIcon="CalendarCircleIcon",e.CalendarIcon="CalendarIcon",e.CalendarTickIcon="CalendarTickIcon",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.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.MasterCardIcon="MasterCardIcon",e.MinusIcon="MinusIcon",e.MirIcon="MirIcon",e.MoneyIcon="MoneyIcon",e.MoneyInsuranceIcon="MoneyInsuranceIcon",e.MonitorMobileIcon="MonitorMobileIcon",e.NewDocIcon="NewDocIcon",e.OfficeIcon="OfficeIcon",e.OkIcon="OkIcon",e.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.StateMortgageIcon="StateMortgageIcon",e.TelegramIcon="TelegramIcon",e.UnionPayIcon="UnionPayIcon",e.UserTickIcon="UserTickIcon",e.VisaIcon="VisaIcon",e.VKIcon="VKIcon",e.WalletAdd2Icon="WalletAdd2Icon",e.WalletAddIcon="WalletAddIcon",e.WalletIcon="WalletIcon",e.WalletWithMoneyIcon="WalletWithMoneyIcon",e.WateringCanIcon="WateringCanIcon"}(b||(b={})),function(e){e.ActualBalanceIcon="Деньги",e.AirPlaneIcon="Самолет",e.AppleIcon="Лого «Apple»",e.ArrowDownIcon="Стрелка 'Вниз'",e.ArrowLeftIcon="Стрелка",e.ArrowUpIcon="Стрелка вверх",e.AtmIcon="Банкомат",e.BankIcon="Банк",e.BurgerIcon="Бургер",e.Calendar2Icon="Календарь 2",e.CalendarCircleIcon="Скруглённый календарь",e.CalendarIcon="Календарь",e.CalendarTickIcon="Календарь с галочкой",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.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.MasterCardIcon="MasterCard",e.MinusIcon="Минус",e.MirIcon="МИР",e.MoneyIcon="Деньги",e.MoneyInsuranceIcon="Денежное страхование",e.MonitorMobileIcon="Монитор и мобильный",e.NewDocIcon="Новый документ",e.OfficeIcon="Офис",e.OkIcon="Лого «Одноклассники»",e.PackA4Icon="PackA4Icon",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.StateMortgageIcon="StateMortgageIcon",e.TelegramIcon="Лого «Telegram»",e.UnionPayIcon="UnionPay",e.UserTickIcon="Пользователь",e.VisaIcon="Visa",e.VKIcon="Лого «VK»",e.WalletAdd2Icon="Пополнение карты",e.WalletAddIcon="Кошелёк с плюсом",e.WalletIcon="Кошелёк",e.WalletWithMoneyIcon="Кошелёк с деньгами",e.WateringCanIcon="Добавить продукт"}(f||(f={}));const y={normal:"text-primary-main",black:"text-black",white:"text-black invert"},N=u((({className:e="",imageClassName:t="",name:n="",alt:r=`Иконка ${f[n]||n}`,title:l=r,iconVersion:a="normal",asSVG:i,...o})=>{const c=`${s.CDN||""}icons/${n}.svg`;return i?h("svg",{className:e,...o,"aria-hidden":"true",children:[l?m("title",{children:l}):null,r?m("desc",{children:r}):null,m("use",{className:`${y[a]} ${t}`,href:`${c}#icon`,xlinkHref:`${c}#icon`})]}):m("img",{className:e,src:c,alt:r,title:l,...o,"aria-hidden":"true"})}));function I(e){return"string"==typeof e?"normal":e.iconVersion||"normal"}const v=(e,t)=>e.media&&t.media?e.media-t.media:0,w=u((({className:e="",image:t,imageClassName:n="",isMobile:r=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return h("picture",{className:`${r?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(v).map((({src:e,format:n,media:r},l)=>m("source",{srcSet:e,type:C(n),media:r?`(max-width: ${r}px)`:"",...t.size},`${l}_${e}`))):null,k(t,n,r)]})})),k=(e,t="",n=!1)=>{const r={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},l=e.title||"",a=e.alt||e.title,i=n?"m-auto":"m-0";return m("img",{src:e.src,className:`${i} ${t}`,alt:a,title:l,style:r,...e.size})};function C(e){return e?`image/${String(e)}`:void 0}const S=u((({className:e="",image:t,imageClassName:n="",isMobile:r,...l})=>{if(!t)return null;const a="string"==typeof t?t:t.icon;return a||""===a?a.length?m(N,{className:e,imageClassName:n,iconVersion:I(t),name:a,...l}):null:m(w,{className:e,imageClassName:n,image:t,isMobile:r})})),$=u((({className:e="",image:t,imageClassName:n,...r})=>m(S,{className:e,image:t,imageClassName:n,...r,isMobile:!0})));function D(e){return e?e.filter(Boolean).join(" "):""}const T={left:"text-left",center:"text-center",right:"text-right"},R={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"}},_=u((({bgColorHeadline:e="transparent",className:t="",title:n,description:r,image:l,align:a="left"})=>{const i=R[e];return h("section",{className:`px-4 py-6 flex flex-col gap-2.5 ${i.background} ${t}`,children:[n?m(g,{headingType:"h2",className:`${i.text} ${T[a]}`,title:n}):null,r?m("p",{className:`text-m ${i.description} ${T[a]}`,children:r}):null,l?.src&&m("div",{className:"mt-2.5 mx-auto flex justify-center",children:m($,{image:l})})]})})),B=u((({children:e,activeIndex:t,indexFraction:n,showDots:r})=>{const l=e=>n=>{if(e===t)return;const r=n.currentTarget.parentElement?.previousElementSibling;r?.children[e]?.scrollIntoView({behavior:"smooth",block:"nearest"})};return r&&e?.length?m("div",{className:"flex gap-2 mx-auto mt-5 w-fit",children:e?.map(((e,r)=>m("div",{onClick:l(r),className:"bg-primary-main opacity-30 w-1.5 h-1.5 min-w-1.5 min-h-1.5 rounded-full",style:P(r,t,n),"aria-hidden":!0},String(r))))}):null})),P=(e,t,n)=>{if(e<t||e>t+1)return;const r=1-n;return e===t?{opacity:""+(.3+.7*r),width:6+16*r+"px"}:{opacity:""+(.3+.7*n),width:6+16*n+"px"}},A=u((({className:e="",children:t,...n})=>m("div",{className:`snap-center snap-always min-w-full box-border ${e}`,role:"listitem",...n,children:t}))),M=e=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e}px`}),L=u((({className:e="",children:t,activeIndex:n,onScroll:r,gap:l=14,padding:a=16})=>m("div",{className:`overflow-auto flex horizontal-list no-scrollbar ${e}`,style:{...M(a),gap:`${l}px`},role:"list",onScroll:r,children:t?.length?t?.map(((e,t)=>m(A,{style:M(a/4),"aria-current":Boolean(n===t),children:e},String(t)))):m(A,{children:t})}))),V=u((({className:e,children:t,gap:n=14,padding:l=16,showDots:a=!0,onSlideChange:i})=>{const[o,s]=r(0),[c,d]=r(0),u={activeIndex:o,indexFraction:c,showDots:a,children:t};return h("div",{className:e,children:[m(L,{gap:n,padding:l,activeIndex:o,onScroll:e=>{const{scrollLeft:t,clientWidth:r,childElementCount:a,scrollWidth:c,children:m}=e?.currentTarget,h=m[0].offsetWidth-l/2,u=(({gap:e,padding:t,clientWidth:n,scrollWidth:r,childElementCount:l,itemWidth:a})=>{const i=r-n;if(2===l)return[[0,i],[i,r]];const o=a+e,s=n-e-t,c=l-2,d=new Array(l).fill(0).map(((e,t)=>0===t||t===c?[t>0?i-s:0,t>0?i:s]:[(t-1)*o+s,t*o+s]));return d[l-1]=[i,r],d})({gap:n,padding:l,clientWidth:r,scrollWidth:c,childElementCount:a,itemWidth:h}),{index:p,fraction:x}=((e,t)=>{const n=t.findIndex((([t,n])=>t<=e&&e<n));if(n<0)return{index:n,fraction:0};const[r,l]=t[n];return{index:n,fraction:(e-r)/(l-r)}})(t,u);p!==o&&i&&i(),s(p),d(x)},children:t}),m(B,{...u})]})})),j=u((({className:e,iconClassName:t,textClassName:n,suffixClassName:r,doc:l,icon:a})=>{const{text:i,fileSize:o,...s}=l;return h("a",{className:e,role:"link",...s,children:[a?m($,{className:t,image:a,width:"24px",height:"24px",asSVG:!0}):null,i?h("span",{className:n,children:[i,m("span",{className:r,children:s?.href&&G(O(s.href),o)})]}):null]})})),G=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),O=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},W=u((({className:e="",doc:t,icon:n})=>m(j,{className:`flex h-full box-border ${e}`,iconClassName:"mr-3 min-w-6 min-h-6",doc:t,icon:n}))),U=u((({context:e,hasBorder:t=!0,documents:n,icon:r})=>m(V,{context:e,className:"text-s text-primary-main mt-5",children:n?.length?n.map(((e,n)=>m(W,{className:t?"rounded-md border-main-stroke border border-solid p-4":"",doc:e,icon:r},String(n)))):null}))),E=u((({hasBorder:e=!0,documents:t,icon:n})=>m("div",{className:"text-s text-primary-main flex flex-col mt-5 "+(e?"gap-3.5":"gap-2"),role:"list",children:t?.length?t.map(((t,r)=>m("div",{role:"listitem",children:m(W,{className:e?"rounded-md border-main-stroke border border-solid p-4":"",doc:t,icon:n})},String(r)))):null}))),F=u((({className:e="",context:t,title:n,description:r,icon:l={icon:"DocIconMonoColor"},documents:a,orientation:i="vertical",hasBorder:o=!0})=>h("section",{className:`font-sans text-primary-text py-6 px-4 bg-white overflow-x-hidden ${e}`,children:[m(_,{className:"!p-0 "+(r?"gap-2":"gap-5"),title:n,description:r,context:t,align:"center"}),"vertical"===i?m(E,{hasBorder:o,documents:a,icon:l}):m(U,{context:t,hasBorder:o,documents:a,icon:l})]}))),H=e=>e?.includes("//"),z=e=>(e||"").replace(/\/?\?.*/,""),J=e=>{if(!e||!H(e))return;const t=e,n=t.indexOf("//"),r=t.indexOf("/",n+"//".length);return-1!==r?t.substring(0,r):t};var q=Object.freeze({__proto__:null,isURL:H,withoutQuery:z,getOrigin:J,getHash:e=>{if(!e||!H(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const K="/mobile",Q=(e,t)=>{if(!e)return e;const n=J(t?.href);return n?e.replace(n,"")||"/":e},Y=e=>e;function Z({router:e,handlerDecorator:t=Y},n){const r=((e,t)=>{if(!e)return e;const n=Q(e,t)||"",r=t?.pathname.startsWith(K);return r&&!H(n)?`/mobile${n}`:n})(n.href,e);return{...n,href:r,"aria-label":n.text,onClick:t((t=>{const l=r&&!H(r),a=!n.target||"_self"===n.target;l&&a&&(t?.preventDefault(),e.push(r))}),n)}}const X=u((e=>{const{text:t,aboveText:n,appendLeft:r,appendRight:l}=e;return h("div",{className:ee(e),children:[r||null,te(e)?h("div",{children:[m("div",{className:"text-xs-light text-left",children:n}),m("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,l||null]})})),ee=e=>{const{version:t,aboveText:n,rounded:r}=e;if("link"===t)return"";const l="gap-2 "+(n?"py-2.5 px-7":"py-4 px-9");return["flex items-center justify-center",te(e)?l:"h-12 w-12",r?"rounded-full":""].join(" ")},te=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ne={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",link:"text-primary-main"},re={primary:"bg-secondary-dark text-secondary-text",secondary:"bg-secondary-light text-secondary-text",link:""},le="w-full text-center font-sans select-none",ae=u((({className:e,text:t,aboveText:n,appendLeft:r,href:l,target:a,onClick:i,children:o,disabled:s,rounded:c,version:d="primary",ariaLabel:h,...u})=>{const p=o??m(X,{text:t,aboveText:n,appendLeft:r,rounded:c,version:d});return s?m("div",{role:"button","aria-disabled":"true","aria-label":h,tabIndex:-1,className:`inline-block ${le} ${re[d]||""} ${c?"rounded-full":"rounded-md"} ${e||""}`,children:p}):m("a",{className:`${le} inline-block cursor-pointer no-underline focus:border focus:border-primary-focus ${ne[d]||""} ${c?"rounded-full":"rounded-md"} ${e||""}`,href:l,target:a,onClick:i,"aria-label":h,role:l?"link":"button",...u,children:p})})),ie=u((({context:e,className:t="",buttons:n})=>{const{handlerDecorator:r}=e,l=e.useRouter();return n&&n?.length?m("div",{className:t,children:n.map(((e,t)=>function({icon:e,iconRight:t,...n},r){if(!n?.text)return null;return m(ae,e?{appendLeft:m($,{image:e,width:"24",height:"24",asSVG:!0}),appendRight:m($,{image:t,width:"24",height:"24",asSVG:!0}),...n}:{...n},String(r))}(Z({router:l,handlerDecorator:r},e),t)))}):null}));const oe={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"},se={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text",tile:"bg-black","tile-white":"bg-white"},ce=u((({className:e="",isDotted:t=!0,children:n,version:r="primary"})=>h("div",{className:`font-sans flex items-start ${e}`,role:"listitem",children:[t?m("div",{className:de(r)}):null,m("span",{children:n})]}))),de=e=>`${oe[e]} ${se[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]}`,me={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text",tile:"text-primary-text","tile-white":"text-white"},he={M:"text-xl-light",L:"text-h5-light"},ue=u((e=>{const{className:t="",itemClassName:n,isDotted:r,items:l,listItemSize:a="M",version:i="primary"}=e;return m("section",{className:`${me[i]} ${he[a]} ${t}`,role:"list",children:l?.length?l.map(((e,t)=>m(ce,{className:n,isDotted:r,version:i,children:e},String(t)))):null})})),pe=u((({className:e="",title:t="",children:n,buttons:r,image:l})=>h("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,h("div",{className:"flex grow w-full justify-between",children:[h("div",{className:"flex flex-col justify-between w-full",children:[m("div",{className:"h-full",children:n}),r?m("div",{className:"mt-auto pt-8",children:r}):null]}),l]})]}))),xe={primary:"text-primary-text",secondary:"text-white"},ge={primary:"text-secondary-text",secondary:"text-white"},be=u((e=>{const{className:t="",icon:n,label:r,description:l,version:a="primary",benefitsVersion:i="normal"}=e,o="white"===i||"secondary"===a;return h("div",{className:`flex gap-5 ${l?"items-start":"items-center"} ${t}`,children:[n?m("div",{className:fe(a,i),children:m($,{className:"w-[24px] h-[24px]",image:{...n,iconVersion:o?"white":"normal"},asSVG:!0})}):null,h("div",{className:"gap-0.5",children:[r?m("div",{className:`text-h6 ${xe[a]}`,children:r}):null,l?m("div",{className:`text-m-light ${ge[a]}`,children:l}):null]})]})}));function fe(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-[10px] box-border flex items-center justify-center ${n}`}const ye=(e="primary",t="normal")=>({icon:n,label:r,description:l},a)=>m(be,{icon:n,label:r,description:l,version:e,benefitsVersion:t},String(a)),Ne=u((({className:e="",context:t,title:n,headlineVersion:r="L",description:l,benefits:a,benefitsVersion:i="normal",buttons:o,image:s,items:c,version:d="primary",isDotted:u=!0,label:p})=>h("div",{className:`w-full ${e}`,children:[h("div",{children:[p?we(p,d):null,m(_,{context:t,className:"!p-0 max-w-[600px]",title:n,description:l,bgColorHeadline:d,headlineVersion:r}),h(pe,{context:t,buttons:o?.length?m(ie,{context:t,buttons:o,className:"flex flex-col mt-5 gap-2.5"}):null,children:[a?.filter((e=>e.label))?.length?m("div",{className:"mt-3",children:a.map(ye(d,i))}):null,c?.length?m(ue,{className:"mt-3 text-m",items:c,version:d,isDotted:u}):null]})]}),Ie(s)]})));function Ie(e){return e?.src?m($,{imageClassName:"mt-5 mx-auto block",image:{className:"block",...e}}):null}const ve={primary:"text-primary-main border-secondary-hover",secondary:"text-white/80"},we=(e,t)=>m("div",{className:`px-2.5 py-1.5 mb-5 rounded-md border-2 border-solid w-fit ${ve[t]}`,children:e}),ke={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},Ce=u((e=>{const{className:t="",version:n="primary"}=e;return m("section",{className:`font-sans bg-white px-4 py-6 ${ke[n]} ${t}`,children:m(Ne,{...e})})})),Se={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"}},$e=u((({title:e,description:t,blockVersion:n="primary",iconVersion:r,image:l,className:a="",items:i,isDotted:o=!0})=>{const s=Se[n],c="secondary"===n?"secondary":"gray";return h("section",{className:`font-sans px-4 py-[18px] flex flex-col ${s.background} ${a}`,children:["small"===r?De(s.icon):null,"big"===r?Te(l):null,h("div",{className:"py-0.5",children:[e?m("div",{className:`text-l font-medium mb-1 ${s.title}`,children:e}):null,t?m("div",{className:`text-s ${s.description}`,children:t}):null,i?.length?m(ue,{className:"mt-1 text-m",items:i,isDotted:o,version:c}):null]})]})}));function De(e){return m("div",{className:"mb-3",children:m("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Te(e){return e?.src?m($,{className:"pb-3 mr-auto",image:e}):null}const Re=u((({context:e,title:t,description:n,cards:r=[],className:l,orientation:a="horizontal"})=>h("section",{className:`relative font-sans text-primary-text bg-white px-4 py-6 overflow-hidden ${l}`,children:[h("div",{className:"flex flex-col items-center mb-5",children:[t?m(g,{headingType:"h3",className:`text-center ${n?"mb-2":"mb-5"}`,title:t}):null,n?m("div",{className:"text-m max-w-[600px] text-center mb-5",children:n}):null]}),_e(a,r,e)]})));function _e(e,t,n){return"horizontal"===e?m(V,{context:n,children:t?.map(Be)}):m("div",{className:"grid gap-[14px]",children:t?.map(Be)})}function Be(e,t){return h("div",{className:`h-full justify-between box-border horizontal-list-item border-solid border rounded-md border-main-stroke p-4 flex flex-col\n ${ke[e.version??"primary"]}`,children:[h("div",{children:[e.image?.src?m("div",{className:"flex justify-center",children:m($,{className:"mb-3.5",image:e.image})}):null,e.title?m("h3",{className:"text-m-title-xs font-medium m-0",children:e.title}):null,e.description?Pe(e):null,e.items?.length?Ae(e.items,e.isDotted,e.version):null]}),e?.button?.text?(n=e.button,m(ae,{className:"mt-3",appendLeft:n?.icon&&m($,{image:n?.icon,width:"24px",height:"24px",asSVG:!0}),...n})):null]},t);var n}function Pe(e){return m("div",{className:"text-secondary-text mt-1 text-s "+("secondary"===e.version?"text-white opacity-80":""),children:e.description})}function Ae(e,t,n="primary"){return m("section",{className:"mt-3",children:e.map(((e,r)=>h("div",{children:[t?m("div",{className:de(n)}):null,m("span",{className:"text-m font-medium",children:e.title}),m("span",{className:"text-s pl-2 "+("primary"===n?"text-secondary-text":""),children:e.text})]},String(r))))})}class Me{static inst=new Me;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 Le=e=>{if(!e.length)return;const[t]=e;t.isIntersecting},Ve=u((({anchor:e,className:t,context:n,children:a,tag:i="section",labels:o})=>{const s=i,{IntersectionObserverTag:c}=n,[d,h]=r(!0);return l((()=>Me.inst.subscribe("tab",(e=>{var t;"group"===e.type?h(!o?.length||!e.label||o.includes(e.label)):(h(!0),t=e.label,setTimeout((()=>globalThis.document.getElementById(`#${t}`)?.scrollIntoView({behavior:"smooth"}))))}))),[o]),d?e?m(c,{tag:i,className:t,observerCallback:Le,observerOptions:{threshold:1},anchor:e,children:a}):m(s,{className:t,children:a}):null}));const je=u((({className:e="",documents:t,...n})=>m(Ve,{className:`font-sans bg-white mt-[10px] ${e}`,...n,children:m("ul",{className:"flex flex-col text-s text-secondary-text p-0",children:t?.length?Ge(t):null})}))),Ge=e=>e.map(((e,t)=>{const{text:n,...r}=e;return m("li",{className:"mb-4 list-none",children:m("a",{className:"hover:text-primary-main",role:"link",...r,children:n||null})},`list_item_${String(t)}`)})),Oe={Headline:_,LinkDocs:F,TextBlock:$e,ProductBlock:Ce,Gallery:Re,LinkList:je},We=({blocks:e,context:t,className:n=""})=>e?.length?e.map(Ue({context:t,className:n})):null,Ue=({context:e,className:t})=>(n,r)=>{if(!n)return null;const{style:l,blockListType:a,...i}=n;if(!a||!(a in Oe))return null;const o=D(l);return m(Oe[a],{className:`${t} ${o}`,context:e,...i},`block_${r}`)},Ee=u((({blocks:e,context:t})=>m("div",{className:"flex flex-wrap transition-all duration-300 max-h-0 overflow-hidden group-last:last:pb-0",children:We({context:t,blocks:e,className:"!px-0"})}))),Fe=u((({label:e,labelIcon:t,blocks:n,bordered:l,context:a})=>{const{hasContent:i,icon:o,handleToggle:s}=(({blocks:e,initialState:t=!1})=>{const[n,l]=r(t),a=e?.length;return{isActive:n,hasContent:a,icon:n?"MinusIcon":"PlusIcon",handleToggle:e=>{const t=e.currentTarget;if(!t)return;l(!n);const r=t.nextSibling;r.style.maxHeight=r.style.maxHeight?"":`${r.scrollHeight}px`}}})({blocks:n});return h("li",{className:`${He(l)} border-solid border-main-divider`,children:[h("button",{className:`border-none bg-transparent flex justify-between text-left w-full font-sans text-primary-text\n ${l?"":"py-[14px] px-0"}\n ${i?"group cursor-pointer":""}`,onClick:s,children:[h("span",{className:"text-m-title-xs font-medium pr-2.5 flex "+(i?"group-hover:text-primary-main":""),children:[t?m($,{image:t,className:"mr-3 flex-shrink-0",width:"24",height:"24",asSVG:!0}):null,e]}),i?m($,{className:"flex-shrink-0",image:o,width:"24",height:"24",asSVG:!0}):null]}),i?m(Ee,{blocks:n,context:a}):null]})}));function He(e){return e?"border p-4 rounded mb-4":"border-0 border-b last:border-b-0"}const ze=u((({title:e,description:t,accordionItems:n,context:r,className:l="",bordered:a})=>h("section",{className:`py-6 px-4 font-sans bg-white text-primary-text ${l}`,children:[e?m(g,{headingType:"h3",className:"mb-2 text-center",title:e}):null,t?m("div",{className:"mb-5 text-m-light text-center",children:t}):null,n?.length?m("ul",{className:"list-none m-0 p-0",children:n.map(((e,t)=>m(Fe,{...e,context:r,bordered:a},`AccordionItem_${t}`)))}):null]}))),Je=(e=!1)=>e?"text-white":"",qe=(e=!1)=>"text-s mb-3.5 "+(e?"text-white":"text-secondary-text/80"),Ke=u((({icon:e,image:t,title:n,subtitle:r,isFillGradient:l})=>h("div",{role:"columnheader",children:[e?m($,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}):null,t?.src&&m("div",{className:"mb-3.5",children:m($,{image:t})}),n?m(g,{headingType:"h4",className:Je(l),title:n}):null,r?m("div",{className:qe(l),children:r}):null]}))),Qe=u((({cell:e,rowHeader:t,isFillGradient:n=!1})=>m("div",{className:"box-border flex flex-col",role:"cell",children:m("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Ye(n,t))})}))),Ye=(e,t)=>({label:n,description:r},l)=>h("div",{className:"flex justify-between text-s py-3.5",children:[m("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),h("div",{className:"basis-1/2",children:[n?m("div",{className:"text-right "+(e?"text-white":""),children:n}):null,r?m("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:r}):null]})]},String(l)),Ze=u((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:r,showRow:l,onToggleColumn:a})=>{const i=t?.slice(0,l?t.length:n),o=r?"secondary":"primary";return h("div",{className:`border border-main-stroke rounded-md p-4 mb-3.5 ${r?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[m(Ke,{...e,isFillGradient:r}),i?.length?i.map((({rowHeader:e,cell:t},n)=>m(Qe,{cell:t,rowHeader:e,isFillGradient:r},String(n)))):null,l&&Xe({header:e,buttonVersion:o}),et({onToggleColumn:a,isFillGradient:r,showRow:l})]})})),Xe=({header:e,buttonVersion:t})=>m(ae,{href:e.link.href,target:e.link.target,version:t,className:"text-s font-medium mt-4 py-[11px]",children:e.link.text}),et=({onToggleColumn:e,isFillGradient:t,showRow:n})=>m("div",{className:"mt-5",role:"cell",children:m("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),tt=u((({className:e,context:t,title:n,rowHeaders:l,columns:a,visibleRowLength:i=0,isColoredFirstColumn:o=!1,orientation:s="vertical"})=>{const c=a?.map((({data:e,header:t})=>({header:t,column:e?.map(((e,t)=>({cell:e,rowHeader:l?.[t]?.title})))})))||[],[d,u]=r(new Array(a?.length||0).fill(!i));return h("section",{className:`bg-white font-sans px-4 py-6 overflow-hidden text-primary-text relative ${e||""}`,children:[n?m(g,{headingType:"h3",className:"font-medium text-center m-0 mb-5",title:n}):null,nt({tableData:c,context:t,visibleRowLength:i,isColoredFirstColumn:o,columnsViewState:d,handleToggleColumn:e=>{d[e]=!d[e],u([...d])},orientation:s,setColumnsViewState:u})]})})),nt=({context:e,tableData:t,visibleRowLength:n,isColoredFirstColumn:r,columnsViewState:l,handleToggleColumn:a,orientation:i="horizontal",setColumnsViewState:o})=>m("div",{role:"table",children:t?.length?rt({orientation:i,context:e,columnsViewState:l,setColumnsViewState:o,tableData:t,visibleRowLength:n,isColoredFirstColumn:r,handleToggleColumn:a}):null}),rt=({orientation:e,context:t,columnsViewState:n,setColumnsViewState:r,tableData:l,visibleRowLength:a,isColoredFirstColumn:i,handleToggleColumn:o})=>"horizontal"===e?m(V,{context:t,onSlideChange:at(n,r),children:l.map(lt({context:t,visibleRowLength:a,isColoredFirstColumn:i,columnsViewState:n,handleToggleColumn:o}))}):l.map(lt({context:t,visibleRowLength:a,isColoredFirstColumn:i,columnsViewState:n,handleToggleColumn:o})),lt=({context:e,visibleRowLength:t,isColoredFirstColumn:n,columnsViewState:r,handleToggleColumn:l})=>(a,i)=>m(Ze,{context:e,visibleRowLength:t,showRow:r[i],header:a.header,columnData:a.column,isFillGradient:0===i&&n,onToggleColumn:()=>l(i)},String(i)),at=(e,t)=>()=>{t(new Array(e.length).fill(!1))},it=new Map;function ot(e){return e?Array.isArray(e)?e:e instanceof Function?ot(e()):[e]:[e]}let st=function(e,t){const n=i((()=>ot(e)),[e]),[a,o]=r(),[s,c]=r();return l((()=>{if(!n.every((e=>null===e)))try{const e=t(...n);"then"in e?(e=>{e.then((e=>it.get(n)||e)).then(o).catch(c)})(e):o(e)}catch(e){c(e)}}),[t,...n]),{data:a,error:s,mutate:()=>Promise.resolve(void 0),isValidating:!1}};const ct=(e,t)=>st(e,t);async function dt(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}const mt=(e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n};function ht(){return async function(e,t){try{return await dt(e,t)}catch(e){console.error(e)}return null}(ut,{method:"POST",body:JSON.stringify(pt)})}const ut="https://coins.rshb.ru/api/catalog/vue_storefront_magento_1_currency_rates_average/currency_rates_average/_search?size=10000",pt={query:{bool:{must:[{term:{russian_region_code:"77"}},{term:{from_volume:"0"}},{terms:{currency_pair:["USD/RUB","EUR/RUB"]}}]}}},xt=e=>e.reduce(((e,t)=>{const n=t.currency_first?.code;return e.some((e=>e.code===n))||e.push({code:n,buy:mt(Number(t.rate_buy),3),sell:mt(Number(t.rate_sell),3)}),e}),[]);var gt;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(gt||(gt={}));const bt=new Intl.NumberFormat("ru",{style:"currency",currency:gt.RUB}),ft=e=>e?bt.format(e):"",yt="text-left text-m-light text-secondary-text",Nt={USD:"DollarIcon",EUR:"EuroIcon"},It=u((({className:e,exchangeCurrencyItems:t})=>h("table",{className:`h-fit w-fit ${e}`,children:[m("thead",{children:h("tr",{children:[m("th",{className:yt,children:"Валюта"}),m("th",{className:`${yt} pl-11`,children:"Купить"}),m("th",{className:`${yt} pl-11`,children:"Продать"})]})}),m("tbody",{children:t.map((e=>vt(e)))})]}))),vt=e=>{const t=e?.code;return h("tr",{className:"pb-1 text-h6",children:[m("td",{className:"pt-4",children:h("div",{className:"flex items-center",children:[t?m($,{image:{icon:Nt[t]},width:"24",height:"24"}):null,m("span",{className:"ml-2",children:t})]})}),m("td",{className:"pt-4 pl-11",children:ft(e?.sell)}),m("td",{className:"pt-4 pl-11",children:ft(e?.buy)})]},t)},wt=u((({className:e="",address:t,distance:n})=>h("div",{className:`flex ${e}`,children:[m($,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),h("div",{className:"ml-3",children:[t?m("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,n?h("p",{className:"text-secondary-text m-0 text-m",children:["Курс указан для ближайшего офиса - ",n]}):null]})]}))),kt=(e,t,n)=>{const r=Number(Ct(e))*Math.pow(t,n?-1:1);return Number.isInteger(r)?r:mt(r)},Ct=e=>e.replace(/[^\d.,]/g,"").replace(",","."),St=e=>{return(t=[[e=>e.value!==gt.RUB&&e.oppositeValue!==gt.RUB,()=>e.handleConvert(e.value,gt.RUB)],[e=>e.value===gt.RUB&&e.oppositeValue===gt.RUB,()=>e.handleConvert(e.value,gt.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t},$t=u((({className:e="",id:t,name:n,type:r="text",placeholder:l,pattern:a,value:i,onChange:o})=>m("input",{className:`border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${e}`,id:t,name:n||t,type:r,pattern:a,placeholder:l,value:i,onChange:e=>{const t=e.target.validity.valid?e.target.value:i;o(t)}}))),Dt={background:"url('/icons/ArrowDownIcon.svg') no-repeat right 16px top 50%"},Tt=u((({className:e="",id:t,name:n,children:r,value:l,onChange:a})=>m("select",{className:`appearance-none ${e}`,style:Dt,id:t,name:n||t,value:l,onChange:e=>a(e.target.value),placeholder:"",children:r}))),Rt=u((({className:e="",value:t,selected:n,disabled:r=!1,children:l})=>m("option",{className:e,value:`${t}`,selected:n,disabled:r,children:l})));function _t(e){const{placeholder:t,rates:n,selected:r,value:l,setValue:a,setSelected:i}=e;return h("div",{className:"relative flex items-center",children:[m($t,{className:"shrink-0 h-13 border pl-4 pt-4 pb-4 rounded-md text-l w-full appearance-none -mr-12",placeholder:t,type:"text",value:l,onChange:a}),n.length?m(Tt,{className:"shrink-0 w-20 h-9 -translate-x-8 bg-transparent",value:r,onChange:e=>i(e),children:n.map(((e,t)=>m(Rt,{value:e.code,children:e.code},String(t))))}):null]})}const Bt=u((({context:e,className:t="",currencyRatesBuy:n,currencyRatesSell:l,button:a})=>{const{useRouter:i,handlerDecorator:o}=e,s=i(),[c,d]=r({inputSell:"",inputBuy:"",selectSell:n?.[0]?.code||gt.RUB,selectBuy:l?.[0]?.code||gt.USD}),u=e=>{d((t=>({...t,...e})))};return h("div",{className:`grid gap-[18px] pt-2 ${t}`,children:[_t({placeholder:"Хочу продать",rates:l,selected:c.selectSell,setSelected:Pt(c,u,l),value:c.inputSell,setValue:e=>Mt(u,l)(e,c.selectSell,c.selectBuy)}),_t({placeholder:"Получу",rates:n,selected:c.selectBuy,setSelected:At(c,u,n),value:c.inputBuy,setValue:e=>Lt(u,n)(e,c.selectBuy,c.selectSell)}),a?.text?m(ae,{className:"py-4 mr-1",version:a?.version,...Z({router:s,handlerDecorator:o},a),children:a.text}):null]})})),Pt=(e,t,n)=>r=>{t({selectSell:r}),St({value:r,oppositeValue:e.selectBuy,handleConvert:(r=e.selectSell,l=e.selectBuy)=>{Mt(t,n)(e.inputSell,r,l)}})},At=(e,t,n)=>r=>{t({selectBuy:r}),St({value:r,oppositeValue:e.selectSell,handleConvert:(r=e.selectBuy,l=e.selectSell)=>Lt(t,n)(e.inputBuy,r,l)})},Mt=(e,t)=>(n,r,l)=>{e({inputSell:Ct(n),selectBuy:l});const a=t.find((e=>e.code===l))?.buy||t.find((e=>e.code===r))?.sell;a&&e({inputBuy:String(kt(n,a,r===gt.RUB)||"")})},Lt=(e,t)=>(n,r,l)=>{e({inputBuy:Ct(n),selectSell:l});const a=t.find((e=>e.code===l))?.sell||t.find((e=>e.code===r))?.buy;a&&e({inputSell:String(kt(n,a,r===gt.RUB)||"")})},Vt={address:"Москва, ул.Ленина д.28",distance:"6км"},jt=u((({className:e="",context:t,title:n="Курсы обмена валют",button:r,...l})=>{const a=function(){const{data:e}=ct(ut,ht),t=e?.hits?.hits?.map((e=>e._source))||[];return t.length?xt(t):t}(),i=a.filter((e=>e.buy));i.unshift({code:gt.RUB});const o=a.filter((e=>e.sell));return o.push({code:gt.RUB}),m(Ve,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e}`,...l,children:m(pe,{context:t,title:m(g,{headingType:"h4",title:n,className:"whitespace-pre-wrap text-h4"}),children:h("div",{className:"flex",children:[h("div",{className:"mr-14 pt-4",children:[a?m(It,{className:"mb-[30px]",exchangeCurrencyItems:a}):null,m(wt,{...Vt})]}),a.length&&i.length&&o.length?m(Bt,{className:"grow",context:t,currencyRatesBuy:i,currencyRatesSell:o,button:r}):null]})})})})),Gt={"bg-white":"text-primary-main",transparent:"text-white"},Ot={"bg-white":"text-black",transparent:"text-white"},Wt=u((({className:e="",href:t,children:n,targetBlank:r,bgColor:l="bg-white",hideTitle:a})=>h("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"https://rshb.ru/",target:r?"_blank":"_self","aria-label":"Россельхозбанк",children:[m($,{image:{icon:"LogoIcon"},className:`${Gt[l]} w-10 h-[38px]`,asSVG:!0}),a?null:m("span",{className:`${Ot[l]} text-s font-medium ml-2.5`,children:n||"Россельхозбанк"})]}))),Ut=u((({className:e="",title:t="Мобильное приложение",description:n,href:r="#"})=>m("div",{className:`col-span-12 rounded-md cursor-pointer p-4 mt-6 mb-6 bg-secondary-light font-sans ${e}`,children:r?h("div",{className:"flex",children:[m("div",{className:"flex justify-center align-middle rounded-md bg-primary-main w-[50px] h-[50px]",children:m(Wt,{className:"w-[33px]",bgColor:"transparent",hideTitle:!0})}),h("a",{href:r,target:"_blank",className:"flex flex-col justify-center pl-3",children:[m("div",{className:"text-s font-medium mb-[3px]",children:t}),m("div",{className:"text-s text-secondary-text",children:n})]})]}):null}))),Et=u((({className:e="",items:t,hasButton:n,context:r})=>{const l=r.useRouter(),{handlerDecorator:a}=r;return h("div",{className:e,children:[t?.length?t.map(Ft):null,n?m(ae,{version:"primary",className:"mb-6 w-full",...Z({router:l,handlerDecorator:a},{text:"Обратная связь",href:"/",target:"_blank"})}):null]})})),Ft=(e,t)=>{const{type:n,text:r,description:l}=e;return h("div",{className:"mb-4",children:[m("div",{children:Ht(n,r)}),m("div",{className:"mt-1 text-s-light text-secondary-text",children:l})]},String(t))},Ht=(e,t="")=>{switch(e){case"tel":return m("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${zt(t)}`,children:t});case"email":return m("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return m("span",{children:t})}},zt=e=>e.replaceAll(/\D/g,""),Jt=u((({className:e="",index:t,text:n,href:r,target:l,onClick:a})=>m("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:l,onClick:a,children:n||`Документ ${t}`}))),qt=u((({title:e,links:t,className:n="",context:r})=>{const l=r.useRouter(),{handlerDecorator:a}=r;return h("div",{className:n,children:[m("span",{className:"text-primary-text text-s font-medium",children:e}),t?.length?m("div",{className:"flex flex-col gap-2 pt-3",children:t.map(((e,t)=>m(Jt,{index:t,className:"text-s",...Z({router:l,handlerDecorator:a},e)},String(t))))}):null]})})),Kt=[{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"}],Qt=u((({href:e,version:t="primary"})=>{const{icon:n,label:r}=Kt.find((({origins:t})=>t.some((t=>e?.includes(t)))))||{};if(!n)return null;return m("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":r,target:"_blank",rel:"noopener noreferrer",children:n?m($,{image:n,imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Yt=u((({className:e,media:t,version:n,context:r})=>{const l=r.useRouter(),{handlerDecorator:a}=r;return m("div",{className:`flex gap-2 items-start justify-start pt-6 pb-6 ${e||""}`,children:t?.map(((e,t)=>m(Qt,{version:n,...Z({router:l,handlerDecorator:a},e)},String(t))))})})),Zt=u((({className:e="",index:t,text:n,href:r,target:l,onClick:a})=>m("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:l,onClick:a,children:n||`Документ ${t}`}))),Xt=u((({className:e,links:t,context:n})=>{const r=n.useRouter(),{handlerDecorator:l}=n;return h("div",{className:`${e||""}`,children:[m("div",{className:"py-6",children:m("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?m("div",{className:"flex flex-col justify-start items-start gap-2",children:t.map(((e,t)=>m(Zt,{index:t,className:"",...Z({router:r,handlerDecorator:l},e)},String(t))))}):null]})}));function en(){const{data:e}=ct(`/wcms-resources/${s.SITEMAP||"sitemap"}.json`,dt);return e||{}}const tn=u((({className:e,isMobile:t=!1})=>{const{term:n,setTerm:l}=(()=>{const[e,t]=r("");return{term:e,setTerm:e=>t(e)}})(),a=t?"text-s":"text-l-light",i=t?" placeholder-transparent":"h-full",o=t?"some search":void 0;return h("form",{className:`font-sans relative ${e}`,children:[h("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[m("div",{className:t?"w-[20px] h-[20px]":"w-[24px] h-[24px]",children:m($,{image:"LoupeIcon",width:"24",height:"24"})}),n?null:m("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${a}`,children:"Поиск по сайту"})]}),m("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:o}),t?m("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:m($,{image:"CloseIcon",width:"24",height:"24"})}):m(ae,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-1 right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:m("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),nn=u((({className:e=""})=>m(tn,{className:e,isMobile:!0}))),rn=e=>e?.map((e=>({label:e.text||"",blocks:[{accordionBlockType:"LinkList",documents:e.items||[]}]}))),ln=u((({className:e="",documents:t,relatedEnterprises:n,contacts:r,socialMedia:l,context:a,horizontalNavigationTitle:i})=>{const o=en(),s=o?.dispositions;return h("footer",{className:`font-sans px-4 py-[26px] bg-white ${e}`,children:[m(Et,{className:"overflow-hidden",items:r,context:a,hasButton:!0}),m(ze,{context:a,className:"!p-0 mb-4",accordionItems:rn(o.topItems)}),m("div",{children:s?.map(an)}),m(Ut,{context:a,title:"Мобильное приложение",description:"Загрузить для IOS и Android"}),m(nn,{context:a,className:"grow"}),m(Yt,{className:"pb-4",media:l,context:a}),m(qt,{title:i,links:n,context:a}),m(Xt,{links:t,context:a})]})})),an=(e,t)=>{const{icon:n,href:r,text:l}=e;return h(ae,{version:"link",href:r,className:"flex text-s mb-4 w-6",children:[n?m($,{className:"pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,m("span",{className:"pl-2.5 font-medium text-primary-text",children:l})]},`footer-${t}`)},on=(e,t,n=((e,t)=>t.startsWith(e)))=>n(z(e),(e=>(e||"").replace(K,""))(z(H(e)?t.href:t.pathname))),sn=e=>t=>on(t.href,e),cn=e=>t=>t.items?.some(sn(e))||on(t.href,e)||((e,t)=>J(e)===J(t.href))(t.href,e),dn=e=>t=>e?.href===t?.href,mn=(e,t)=>{return(r=e,l=t,(r||[]).map((e=>l?.find(dn(e))||e))).concat((n=e,(t||[]).filter((e=>!n?.find(dn(e))))));var n,r,l},hn="absolute left-0 -bottom-3 w-full h-[2px]",un=u((({className:e="",text:t,href:n,target:r,active:l,onClick:a,children:i,bgColor:o="bg-white"})=>h("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:n,target:r,onClick:a,children:[m("span",{className:pn(o,l),children:t||i}),l?m("div",{className:xn(o,l)}):null]}))),pn=(e,t=!1)=>{let n="text-white";return"bg-white"===e&&(n=t?"text-primary-main":"text-secondary-text hover:text-primary-main"),`${n} font-sans text-s`},xn=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${hn}`:hn,gn=o("https://10.80.4.9");const bn=u((({context:e,burgerSubMenu:t,onClick:n,defaultLocation:i="",children:o})=>{const[s,c]=function(e){const[t,n]=r(e);return l((()=>{n(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,a((()=>{gn.getFetcherAddress().then((t=>{const r=t||e;globalThis?.localStorage.setItem("location",r),n(r)}))}),[e])]}(i);return h("div",{className:"absolute top-0 left-0 w-full h-full bg-white p-4 box-border z-20",children:[m("button",{className:"absolute top-4 right-4 border-none bg-transparent cursor-pointer",onClick:n,children:m($,{image:"CloseIcon",width:"24",height:"24",asSVG:!0})}),h("button",{onClick:c,className:"flex items-center text-s text-secondary-text p-0 mb-4 bg-transparent cursor-pointer",children:[m($,{image:"GeolocationIcon",width:"20",height:"20",className:"text-primary-main box-border mr-2",asSVG:!0}),s]}),o,m("div",{className:"mb-7",children:t?.map(fn)}),m(nn,{context:e,className:"grow"})]})})),fn=(e,t)=>{const{icon:n,href:r,text:l}=e;return h("a",{href:r,className:"flex text-s mb-4 hover:text-primary-main",children:[n?m($,{className:"text-primary-main pr-1",image:n,width:"24",height:"24",asSVG:!0}):null,m("span",{className:"font-medium pl-0.5",children:l})]},`headerSubMenu-${t}`)},yn=u((({onClick:e,bgColor:t})=>h("div",{className:"flex items-center justify-between border-0 border-b border-main-divider h-[50px]",children:[h("div",{className:"flex items-center",children:[m("button",{className:"pl-0 pr-4 border-0 bg-transparent cursor-pointer",onClick:e,"aria-label":"Открыть меню",children:m($,{image:{icon:"BurgerIcon",iconVersion:"bg-white"===t?"black":"white"},className:"text-primary-text w-6 h-6",width:"24",height:"24",asSVG:!0})}),m(Wt,{className:"mr-8",bgColor:t})]}),m("button",{className:("bg-white"===t?"text-primary-main":"text-white")+" text-s border-0 bg-transparent cursor-pointer",children:"Войти"})]}))),Nn=u((({className:e="",defaultLocation:t,bgColor:n="bg-white",context:l,topItems:a})=>{const i=l.useRouter(),o=en(),s=o?.dispositions,{handlerDecorator:c}=l,d=mn(o.topItems,a).find(cn(i))?.items,u=(e=>(t=[])=>{const n=t?.filter(sn(e));return n?.length?(r=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>r(e)>r(t)?e:t)))(n):void 0;var r})(i)(d),[p,x]=r(!1),g=()=>x(!p);return h("header",{className:`${n} ${e}`,children:[h("div",{className:"container px-4 py-0 box-border",children:[m(yn,{onClick:g,bgColor:n}),m("nav",{className:"flex items-center m-0 p-0 overflow-y-hidden w-full h-[50px]",children:m("div",{className:"flex no-scrollbar horizontal-list h-full items-center",children:d?.map(((e,t)=>In({...Z({router:i,handlerDecorator:c},e),active:e===u,bgColor:n},t)))})})]}),p?m(bn,{context:l,onClick:g,burgerSubMenu:s,defaultLocation:t,children:m(ze,{context:l,accordionItems:rn(o.topItems),className:"!p-0 mb-4"})}):null]})})),In=(e,t)=>m(un,{className:"mr-8 whitespace-nowrap text-s",...e},String(t)),vn=e=>{const t="col-span-",n=e.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function wn(e=""){const t=vn(e);return t<=4?"S":t<=8?"M":"L"}function kn(e=""){const t=vn(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}function Cn(e=""){const t=vn(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Sn=u((({className:e,context:t,title:n,description:r="Блок в разработке...",...l})=>h(Ve,{context:t,className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Cn(e)} ${kn(e)} `,...l,children:[m(_,{context:t,className:"!p-0 max-w-[600px]",title:n,description:r,headlineVersion:wn(e)}),m("figure",{className:"m-0 min-w-[80%]",children:$n()})]}))),$n=(e=3)=>Tn(100,e).map((e=>Math.floor(e))).map(Dn),Dn=(e,t)=>m("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Tn=(e,t)=>[e].concat(t>0?Tn(e/1.618,t-1):[]),Rn=u((({block:e,context:t,className:n=""})=>m("section",{className:`flex grow-0 shrink-0 basis-full px-4 pt-6 ${ke[e?.version??"primary"]} ${n}`,role:"listitem",children:m("div",{className:"flex grow",children:m(Ne,{context:t,...e})})}))),_n=u((({className:e,context:t,slides:n=[]})=>{const r=n.map((e=>e.productBlock));return m("section",{className:`font-sans bg-white overflow-hidden w-100 pb-6 ${e||""}`,children:m(V,{context:t,children:r.map(((e,n)=>m(Rn,{block:e,context:t},String(n))))})})})),Bn={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"}},Pn={normal:"h-[70px] w-[70px] min-w-[70px] min-h-[70px]",small:"h-[50px] w-[50px] min-w-[50px] min-h-[50px]"},An={normal:"min-h-[70px]",small:"min-h-[50px]"},Mn=u((({className:e,title:t,description:n,showLines:r=!0,steps:l,size:a="normal",version:i="primary"})=>{const o=Bn[i];return h("section",{className:`box-border font-sans bg-white px-4 py-6 flex flex-col\n ${o.background} ${o.title} ${e||""}`,children:[t?m(g,{headingType:"h3",className:`text-center ${o.title}`,title:t}):null,n?m("p",{className:`text-m-light text-center ${o.description} ${t?"mt-2":""}`,children:n}):null,l?.length?m("div",{className:"box-border py-0.5 mb-0.5 mt-5",children:m("div",{className:"flex flex-col justify-between gap-x-[101px]",children:l.map(Ln(a,i,r))})}):null]})})),Ln=(e,t,n)=>(r,l,a)=>{const i=a.length-1===l,o="normal"===e?"ml-[34px]":"ml-6",s=Bn[t];return m("div",{children:h("div",{className:"flex flex-row text-center relative",children:[h("div",{className:"overflow-hidden flex-shrink-0",children:[Vn(e,t)(r,l),i?null:m("div",{className:`min-h-8 h-full w-[2px] ${n?s.iconConnector:""} ${o}`})]}),h("div",{className:`flex flex-col justify-center h-fit ${An[e]}`,children:[r.label?m("div",{className:"text-m-title-xs font-medium m-0 text-left mb-1",children:r.label}):null,r.description?m("div",{className:`text-s ${s.description} text-left`,children:r.description}):null]})]})},String(l))},Vn=(e,t)=>(n,r)=>{const l=Bn[t],a="normal"===e?"38":"27",i="normal"===e?"text-m-title":"text-m-title-xs";return m("div",{className:`${Pn[e]} ${l.iconBackground} rounded-full z-10 mr-3 flex justify-center content-center`,children:m("span",{className:`font-medium flex self-center ${l.title} ${i}`,children:(o=n?.icon,Boolean(o?.icon||o?.src)?m($,{image:n.icon,width:a,height:a,asSVG:!0}):m("span",{children:r+1}))})});var o},jn=e=>e?.alt||e?.title||f[e?.icon?e.icon:""],Gn={Buttons:({buttons:e})=>e&&e?.length?m("div",{children:e.map((({icon:e,rounded:t,...n},r)=>m(ae,{className:`mt-3 ${r>0&&t?"ml-2.5":""} ${e?"w-12 h-12":""}`,ariaLabel:jn(e),rounded:t,appendLeft:e?.src||e?.icon?m($,{image:e,width:"24px",height:"24px",asSVG:!0}):null,...n,"aria-label":e},String(r))))}):null,Img:({image:e})=>e?.src?m($,{image:{...e,className:"m-0"}}):null,List:({isDotted:e,...t})=>m(ue,{className:"flex flex-col justify-between items-start text-m",version:"gray",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>h("div",{children:[e?m("div",{className:"text-xl font-medium m-0 "+(t?"mb-1":""),children:e}):null,t?m("div",{className:"text-s text-secondary-text",children:t}):null]})},On=u((({title:e,icon:t})=>h("div",{className:"flex gap-2.5 mb-2",children:[e?m(g,{headingType:"h3",className:"font-medium",title:e}):null,t?m($,{className:"ml-auto max-w-6 max-h-6",image:t,width:"24px",height:"24px"}):null]}))),Wn=u((({context:e,header:t,data:n})=>h("div",{className:"rounded-md border-main-stroke h-full box-border border p-4",children:[m(On,{...t}),n?.length?n.map(Un(e)):null]}))),Un=e=>(t,n)=>h("div",{children:[n>0?m("div",{className:"h-5"}):null,En(t,e)]},String(n)),En=(e,t)=>{if(!e)return null;const{tableCellType:n,...r}=e;if(!n||!(n in Gn))return null;return m(Gn[n],{context:t,...r})},Fn=u((({tiles:e,context:t})=>m(V,{context:t,children:e.map(((e,t)=>m(Wn,{...e},String(t))))}))),Hn=u((({tiles:e})=>m("div",{className:"flex flex-col gap-3.5",children:e.map(((e,t)=>m(Wn,{...e},String(t))))}))),zn=u((({className:e,context:t,title:n,description:r,tariffsColumns:l,rowHeaders:a,orientation:i="vertical"})=>{const o=qn(l),s=Kn(a,o);return h("section",{className:`px-4 py-6 bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[n?m(g,{headingType:"h2",className:`text-center ${r?"mb-2":"mb-5"}`,title:n}):null,r?m("div",{className:"mb-5 text-center text-m",children:r}):null,s?.length?Jn(i,s,t):null]})}));function Jn(e,t,n){return m("vertical"===e?Hn:Fn,{context:n,tiles:t})}const qn=e=>e?.[0].data?e[0].data:[],Kn=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Qn={Accordion:ze,ComparisonTable:tt,ExchangeRateTile:jt,Footer:ln,Gallery:Re,Header:Nn,Headline:_,LinkDocs:F,LinkList:je,MobileAppTile:Ut,ProductBlock:Ce,ProductGallery:_n,StepsBlock:Mn,TariffsTable:zn,TextBlock:$e,Placeholder:Sn},Yn=d();const Zn=u((({className:e,onClick:t,ariaLabel:n})=>m("button",{type:"button",className:`border-0 w-[36px] bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Xn()}))),Xn=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return h("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[m("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"}),m("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"})]})},er=u((({className:e,context:t,...n})=>{const{useRouter:i,handlerDecorator:o=Y}=t,s=function(e){const[t,n]=r(0);return l((()=>{(async()=>{const[t]=await Yn.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{n(await Yn.like(e))}),[e]),dislike:a((async()=>{n(await Yn.dislike(e))}),[e])}}(i().pathname);return h(Ve,{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:[m(Zn,{onClick:o(s.like),ariaLabel:"Поставить отметку «лайк»"}),m(Zn,{onClick:o(s.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),m("span",{className:"select-none",children:s.likeCount})]})})),tr=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),nr=u((({className:e="",context:t,blocksRegistry:n,data:r={},blockDecorator:l=tr})=>{const{style:a,blocks:i,slots:o={},likeControl:s,colorPalette:c="pc"}=r,{header:d}=o;return h("section",{className:`relative ${D(a)} ${e}`,"data-theme":c,children:[d?.blocks?.length?m("div",{className:`${D(d?.style)}`,children:d.blocks.map(((e,a)=>rr({block:e,page:r,blockDecorator:l,blocksRegistry:n,context:t},a)))}):null,i?.length?m("div",{className:"container grid grid-cols-12 gap-1",children:i.map(((e,a)=>rr({block:e,blockDecorator:l,blocksRegistry:n,context:t,page:r},a)))}):null,s?m("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:m(er,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto",context:t},"LikeControl")}):null]})}));function rr({block:e,blockDecorator:t,blocksRegistry:n,context:r,page:l},a){const{type:i}=e;i&&i in n||console.warn(`No block with "${i}" is registered`);const o=n[i||"Placeholder"]||Sn;return t({blockClassName:`scroll-mt-12 ${D(e.style)}`,block:e,render:e=>{const{version:t,content:n,anchor:s,labels:c}=e.block;return m(o,{className:e.blockClassName,version:t,context:r,page:l,anchor:s,labels:c,...n},`${i}-${a}`)}},`block-${a}`)}e.Blocks=Qn,e.ContentPage=nr,e.DaDataAPI=o,e.LikeAPI=d,e.joinList=function(e){return t=>t.reduce(((t,n,r)=>t.length?t.concat({...e,key:r},n):[n]),[])},e.projectSettings=s,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=q,Object.defineProperty(e,"__esModule",{value:!0})}));
@@ -3,6 +3,6 @@ exports.BaseTile = void 0;
3
3
  const jsx_runtime_1 = require("@redneckz/uni-jsx/jsx-runtime");
4
4
  const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  exports.BaseTile = (0, uni_jsx_1.JSX)(({ className = '', title = '', children, buttons, image }) => {
6
- return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, (0, jsx_runtime_1.jsxs)("div", { className: "flex grow w-full justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-between w-full", children: [(0, jsx_runtime_1.jsx)("div", { children: children }), buttons ? (0, jsx_runtime_1.jsx)("div", { className: "mt-auto", children: buttons }) : null] }), image] })] }));
6
+ return ((0, jsx_runtime_1.jsxs)("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, (0, jsx_runtime_1.jsxs)("div", { className: "flex grow w-full justify-between", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-between w-full", children: [(0, jsx_runtime_1.jsx)("div", { className: "h-full", children: children }), buttons ? (0, jsx_runtime_1.jsx)("div", { className: "mt-auto pt-8", children: buttons }) : null] }), image] })] }));
7
7
  });
8
8
  //# sourceMappingURL=BaseTile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAM3B,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;IAC3D,OAAO,CACL,iCAAK,SAAS,EAAE,mDAAmD,SAAS,EAAE,aAC3E,KAAK,EACN,iCAAK,SAAS,EAAC,kCAAkC,aAC/C,iCAAK,SAAS,EAAC,sCAAsC,aACnD,0CAAM,QAAQ,GAAO,EACpB,OAAO,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,SAAS,YAAE,OAAO,GAAO,CAAC,CAAC,CAAC,IAAI,IACtD,EACL,KAAK,IACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"BaseTile.js","sourceRoot":"","sources":["../../../src/components/BaseTile/BaseTile.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAM3B,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;IAC3D,OAAO,CACL,iCAAK,SAAS,EAAE,mDAAmD,SAAS,EAAE,aAC3E,KAAK,EACN,iCAAK,SAAS,EAAC,kCAAkC,aAC/C,iCAAK,SAAS,EAAC,sCAAsC,aACnD,gCAAK,SAAS,EAAC,QAAQ,YAAE,QAAQ,GAAO,EACvC,OAAO,CAAC,CAAC,CAAC,gCAAK,SAAS,EAAC,cAAc,YAAE,OAAO,GAAO,CAAC,CAAC,CAAC,IAAI,IAC3D,EACL,KAAK,IACF,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -17,7 +17,7 @@ exports.Calculator = (0, uni_jsx_1.JSX)(({ className = '', context, calculatorTa
17
17
  const isGalleryScrollAvailable = calculatorTabs?.length > 3;
18
18
  const showNextButton = isGalleryScrollAvailable && calculatorTabs?.length > tabsShift + 3;
19
19
  const showPrevButton = tabsShift > 0;
20
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: `box-border overflow-hidden relative font-sans w-100 text-primary-text ${className}`, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "bg-white", children: [tabsNav.length > 1
20
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, className: `box-border overflow-hidden relative font-sans w-100 text-primary-text bg-white ${className}`, ...rest, children: [(0, jsx_runtime_1.jsxs)("div", { className: "bg-white", children: [tabsNav.length > 1
21
21
  ? renderTabs({ tabsShift, tabsNav, activeSlideIndex, setActiveSlideIndex })
22
22
  : null, (0, renderArrows_1.renderArrows)({
23
23
  handler: [handlePrevClick, handleNextClick],
@@ -1 +1 @@
1
- {"version":3,"file":"Calculator.js","sourceRoot":"","sources":["../../../src/components/Calculator/Calculator.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,uDAAuD;AAEvD,4DAAyD;AACzD,mEAAgE;AAChE,8CAA2C;AAE3C,mEAAgE;AAkBnD,QAAA,UAAU,GAAG,IAAA,aAAG,EAC3B,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,cAAc,GAAG,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;IAC5D,MAAM,OAAO,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,E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CAAK,SAAS,EAAE,GAAG,gBAAgB,EAAE,YAAG,GAAG,CAAC,WAAW,GAAO,IAC1D,KAhBD,MAAM,CAAC,CAAC,CAAC,CAiBP,CACV,CAAC;AACJ,CAAC;AAED,SAAS,UAAU,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAa;IAC1F,OAAO,CACL,4CACE,gCACE,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,SAAS,GAAG,GAAG,KAAK,EAAE,EACzD,SAAS,EAAC,gFAAgF,YAE1F,gCAAK,SAAS,EAAC,yCAAyC,YACrD,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CACtB,eAAe,CAAC;wBACd,GAAG;wBACH,CAAC;wBACD,gBAAgB;wBAChB,OAAO,EAAE,GAAG,EAAE,CAAC,mBAAmB,CAAC,CAAC,CAAC;qBACtC,CAAC,CACH,GACG,GACF,EACN,gCAAK,SAAS,EAAC,4BAA4B,GAAG,IAC1C,CACP,CAAC;AACJ,CAAC"}
@@ -1 +1,2 @@
1
- export declare function isBlockInRegistry<T>(blockType: string | undefined, registry: Record<string, T>): boolean;
1
+ import { BlocksRegistry } from './ContentPage';
2
+ export declare function isBlockInRegistry(blockType: string | undefined, registry: BlocksRegistry): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"isBlockInRegistry.js","sourceRoot":"","sources":["../../../src/components/ContentPage/isBlockInRegistry.ts"],"names":[],"mappings":";;AAAA,SAAgB,iBAAiB,CAAI,SAA6B,EAAE,QAA2B;IAC7F,OAAO,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,QAAQ,CAAC;AACvC,CAAC;AAFD,8CAEC"}
1
+ {"version":3,"file":"isBlockInRegistry.js","sourceRoot":"","sources":["../../../src/components/ContentPage/isBlockInRegistry.ts"],"names":[],"mappings":";;AAEA,SAAgB,iBAAiB,CAAC,SAA6B,EAAE,QAAwB;IACvF,OAAO,CAAC,SAAS,IAAI,EAAE,CAAC,IAAI,QAAQ,CAAC;AACvC,CAAC;AAFD,8CAEC"}
@@ -1,2 +1,3 @@
1
1
  import type { ContentPageDef } from '../../types';
2
- export declare function normalizePage(contentPage: ContentPageDef | undefined | null): ContentPageDef | undefined;
2
+ import { BlocksRegistry } from './ContentPage';
3
+ export declare function normalizePage(contentPage: ContentPageDef | undefined | null, blocksRegistry: BlocksRegistry): ContentPageDef | undefined;
@@ -1,30 +1,30 @@
1
1
  Object.defineProperty(exports, "__esModule", { value: true });
2
2
  exports.normalizePage = void 0;
3
- const Blocks_1 = require("../Blocks");
4
3
  const isBlockInRegistry_1 = require("./isBlockInRegistry");
5
4
  const normalizeBlock_1 = require("./normalizeBlock");
6
- function normalizePage(contentPage) {
5
+ function normalizePage(contentPage, blocksRegistry) {
7
6
  if (!contentPage) {
8
7
  return undefined;
9
8
  }
10
- const { blocks, slots } = contentPage;
9
+ const { blocks = [], slots } = contentPage;
11
10
  return {
12
11
  ...contentPage,
13
- blocks: getMobileBlocks(blocks),
12
+ blocks: getMobileBlocks(blocks, blocksRegistry),
14
13
  slots: slots &&
15
14
  Object.keys(slots).reduce((res, key) => ({
16
15
  ...res,
17
16
  [key]: {
18
17
  ...slots[key],
19
- blocks: getMobileBlocks(slots[key].blocks),
18
+ blocks: getMobileBlocks(slots[key].blocks || [], blocksRegistry),
20
19
  },
21
20
  }), {}),
22
21
  };
23
22
  }
24
23
  exports.normalizePage = normalizePage;
25
- function getMobileBlocks(blocks) {
24
+ function getMobileBlocks(blocks, blocksRegistry) {
26
25
  return blocks
27
- ?.filter((block) => (0, isBlockInRegistry_1.isBlockInRegistry)(block?.type || block?.mobile?.type, Blocks_1.Blocks) && !block.mobile?.hidden)
26
+ ?.filter((block) => (0, isBlockInRegistry_1.isBlockInRegistry)(block?.type || block?.mobile?.type, blocksRegistry) &&
27
+ !block.mobile?.hidden)
28
28
  .map(normalizeBlock_1.normalizeBlock);
29
29
  }
30
30
  //# sourceMappingURL=normalizePage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":";;AACA,sCAAmC;AACnC,2DAAwD;AACxD,qDAAkD;AAElD,SAAgB,aAAa,CAC3B,WAA8C;IAE9C,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;IAEtC,OAAO;QACL,GAAG,WAAW;QACd,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC;QAC/B,KAAK,EACH,KAAK;YACL,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CACvB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;gBACb,GAAG,GAAG;gBACN,CAAC,GAAG,CAAC,EAAE;oBACL,GAAG,KAAK,CAAC,GAAG,CAAC;oBACb,MAAM,EAAE,eAAe,CAAE,KAAK,CAAC,GAAG,CAAU,CAAC,MAAM,CAAC;iBACrD;aACF,CAAC,EACF,EAAE,CACH;KACJ,CAAC;AACJ,CAAC;AAzBD,sCAyBC;AAED,SAAS,eAAe,CAAC,MAAmB;IAC1C,OAAO,MAAM;QACX,EAAE,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CACR,IAAA,qCAAiB,EAAC,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,eAAM,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CACzF;SACA,GAAG,CAAC,+BAAc,CAAC,CAAC;AACzB,CAAC"}
1
+ {"version":3,"file":"normalizePage.js","sourceRoot":"","sources":["../../../src/components/ContentPage/normalizePage.ts"],"names":[],"mappings":";;AAEA,2DAAwD;AACxD,qDAAkD;AAElD,SAAgB,aAAa,CAC3B,WAA8C,EAC9C,cAA8B;IAE9B,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,SAAS,CAAC;KAClB;IAED,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC;IAE3C,OAAO;QACL,GAAG,WAAW;QACd,MAAM,EAAE,eAAe,CAAC,MAAM,EAAE,cAAc,CAAC;QAC/C,KAAK,EACH,KAAK;YACL,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CACvB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;gBACb,GAAG,GAAG;gBACN,CAAC,GAAG,CAAC,EAAE;oBACL,GAAG,KAAK,CAAC,GAAG,CAAC;oBACb,MAAM,EAAE,eAAe,CAAE,KAAK,CAAC,GAAG,CAAU,CAAC,MAAM,IAAI,EAAE,EAAE,cAAc,CAAC;iBAC3E;aACF,CAAC,EACF,EAAE,CACH;KACJ,CAAC;AACJ,CAAC;AA1BD,sCA0BC;AAED,SAAS,eAAe,CAAC,MAAkB,EAAE,cAA8B;IACzE,OAAO,MAAM;QACX,EAAE,MAAM,CACN,CAAC,KAAK,EAAE,EAAE,CACR,IAAA,qCAAiB,EAAC,KAAK,EAAE,IAAI,IAAI,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,CAAC;QACrE,CAAC,KAAK,CAAC,MAAM,EAAE,MAAM,CACxB;SACA,GAAG,CAAC,+BAAc,CAAC,CAAC;AACzB,CAAC"}
@@ -1,6 +1,6 @@
1
+ import type { EmptyOption } from '../../model/EmptyOptionType';
1
2
  import type { Picture } from '../../model/Picture';
2
3
  import type { ButtonProps } from '../../ui-kit/Button/ButtonProps';
3
- import type { EmptyOption } from '../../model/EmptyOptionType';
4
4
  /**
5
5
  * @title Изображение
6
6
  */
@@ -21,7 +21,7 @@ export declare type ErrorCodeDef = {
21
21
  };
22
22
  export declare type ErrorContentDef = EmptyOption | ErrorImageDef | ErrorCodeDef;
23
23
  /**
24
- * @title Блок Ошибка
24
+ * @title Блок ошибки
25
25
  */
26
26
  export interface ErrorBlockContent {
27
27
  /** @title Заголовок */
@@ -5,8 +5,8 @@ const uni_jsx_1 = require("@redneckz/uni-jsx");
5
5
  const BlockWrapper_1 = require("../../ui-kit/BlockWrapper");
6
6
  const Heading_1 = require("../../ui-kit/Heading/Heading");
7
7
  const Img_1 = require("../../ui-kit/Img/Img");
8
- exports.OfficeServicesBlock = (0, uni_jsx_1.JSX)(({ className = '', context, title, officesList, anchor = '' }) => {
9
- return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, id: anchor, className: `font-sans bg-white p-12 flex flex-col ${className}`, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h5", className: "mb-2.5", title: title }) : null, officesList?.length ? officesList.map(renderListItems) : null] }));
8
+ exports.OfficeServicesBlock = (0, uni_jsx_1.JSX)(({ className = '', context, title, servicesList, anchor = '' }) => {
9
+ return ((0, jsx_runtime_1.jsxs)(BlockWrapper_1.BlockWrapper, { context: context, id: anchor, className: `font-sans bg-white p-12 flex flex-col ${className}`, children: [title ? (0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h5", className: "mb-2.5", title: title }) : null, servicesList?.length ? servicesList.map(renderListItems) : null] }));
10
10
  });
11
11
  const renderListItems = (itemList, i) => ((0, jsx_runtime_1.jsxs)("li", { className: "flex mb-2.5 list-none", children: [itemList.icon ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "mr-[14px] max-w-6 max-h-6", width: "24px", height: "24px", asSVG: true, image: itemList.icon })) : null, itemList.text ? (0, jsx_runtime_1.jsx)("span", { className: "text-l-light", children: itemList.text }) : null] }, `list_item_${String(i)}`));
12
12
  //# sourceMappingURL=OfficeServicesBlock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OfficeServicesBlock.js","sourceRoot":"","sources":["../../../src/components/OfficeServicesBlock/OfficeServicesBlock.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAExC,4DAAyD;AACzD,0DAAuD;AACvD,8CAA2C;AAQ9B,QAAA,mBAA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AAmB,GAAG,IAAA,aAAG,EACpC,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,GAAG,EAAE,EAAE,EAAE,EAAE;IAChE,OAAO,CACL,wBAAC,2BAAY,IACX,OAAO,EAAE,OAAO,EAChB,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,yCAAyC,SAAS,EAAE,aAE9D,KAAK,CAAC,CAAC,CAAC,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,SAAS,EAAC,QAAQ,EAAC,KAAK,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,EAC5E,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,IAAI,IACnD,CAChB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,QAAiC,EAAE,CAAC,EAAE,EAAE,CAAC,CAChE,gCAAmC,SAAS,EAAC,uBAAuB,aACjE,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CACf,uBAAC,SAAG,IACF,SAAS,EAAC,2BAA2B,EACrC,KAAK,EAAC,MAAM,EACZ,MAAM,EAAC,MAAM,EACb,KAAK,QACL,KAAK,EAAE,QAAQ,CAAC,IAAI,GACpB,CACH,CAAC,CAAC,CAAC,IAAI,EACP,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,iCAAM,SAAS,EAAC,cAAc,YAAE,QAAQ,CAAC,IAAI,GAAQ,CAAC,CAAC,CAAC,IAAI,KAVtE,aAAa,MAAM,CAAC,CAAC,CAAC,EAAE,CAW5B,CACN,CAAC"}
@@ -19,6 +19,6 @@ export interface OfficeServicesBlockList {
19
19
  export interface OfficeServicesBlockContent {
20
20
  /** @title Заголовок */
21
21
  title?: string;
22
- /** @title Список */
23
- officesList?: OfficeServicesBlockList[];
22
+ /** @title Список услуг */
23
+ servicesList?: OfficeServicesBlockList[];
24
24
  }
@@ -11,6 +11,6 @@ const SocialMedia_1 = require("../Footer/SocialMedia");
11
11
  exports.RecommendationCard = (0, uni_jsx_1.JSX)(({ context, className = '', title, description, items, image, version, socialMedia }) => {
12
12
  const tileTitle = title ? ((0, jsx_runtime_1.jsx)(Heading_1.Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
13
13
  const tileImage = image?.src ? ((0, jsx_runtime_1.jsx)(Img_1.Img, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
14
- return ((0, jsx_runtime_1.jsx)("section", { className: `relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${className}`, role: "listitem", children: (0, jsx_runtime_1.jsxs)(BaseTile_1.BaseTile, { context: context, className: "flex justify-between", title: tileTitle, image: tileImage, children: [description ? (0, jsx_runtime_1.jsx)(Description_1.Description, { className: "mb-2", description: description }) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items, version: version })) : null, socialMedia ? ((0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "pt-[42px] pb-0", media: socialMedia, version: version, context: context })) : null] }) }));
14
+ return ((0, jsx_runtime_1.jsx)("section", { className: `relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${className}`, role: "listitem", children: (0, jsx_runtime_1.jsx)(BaseTile_1.BaseTile, { context: context, className: "flex justify-between", title: tileTitle, image: tileImage, children: (0, jsx_runtime_1.jsxs)("div", { className: "h-full flex flex-col justify-between", children: [description ? (0, jsx_runtime_1.jsx)(Description_1.Description, { className: "mb-2", description: description }) : null, items?.length ? ((0, jsx_runtime_1.jsx)(List_1.List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items, version: version })) : null, socialMedia ? ((0, jsx_runtime_1.jsx)(SocialMedia_1.SocialMedia, { className: "pt-10 pb-0", media: socialMedia, version: version, context: context })) : null] }) }) }));
15
15
  });
16
16
  //# sourceMappingURL=RecommendationCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RecommendationCard.js","sourceRoot":"","sources":["../../../src/components/Recommendation/RecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,mDAAgD;AAChD,uDAAoD;AAOvC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EACnC,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE;IACtF,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CACxB,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,CAC3E,CAAC,CAAC,CAAC,IAAI,CAAC;IACT,MAAM,SAAS,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAC7B,uBAAC,SAAG,IAAC,SAAS,EAAC,+BAA+B,EAAC,KAAK,EAAE,KAAK,GAAI,CAChE,CAAC,CAAC,CAAC,IAAI,CAAC;IAET,OAAO,CACL,oCACE,SAAS,EAAE,qGAAqG,SAAS,EAAE,EAC3H,IAAI,EAAC,UAAU,YAEf,wBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,sBAAsB,EAChC,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,SAAS,aAEf,WAAW,CAAC,CAAC,CAAC,uBAAC,yBAAW,IAAC,SAAS,EAAC,MAAM,EAAC,WAAW,EAAE,WAAW,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/E,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,uBAAC,WAAI,IACH,SAAS,EAAC,wDAAwD,EAClE,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,yBAAW,IACV,SAAS,EAAC,gBAAgB,EAC1B,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,IACC,GACH,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
1
+ {"version":3,"file":"RecommendationCard.js","sourceRoot":"","sources":["../../../src/components/Recommendation/RecommendationCard.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAGxC,sEAAmE;AACnE,0DAAuD;AACvD,8CAA2C;AAC3C,iDAA8C;AAC9C,mDAAgD;AAChD,uDAAoD;AAOvC,QAAA,kBAAkB,GAAG,IAAA,aAAG,EACnC,CAAC,EAAE,OAAO,EAAE,SAAS,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE;IACtF,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CACxB,uBAAC,iBAAO,IAAC,WAAW,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,SAAS,EAAC,aAAa,EAAC,KAAK,EAAE,KAAK,GAAI,CAC3E,CAAC,CAAC,CAAC,IAAI,CAAC;IACT,MAAM,SAAS,GAAG,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAC7B,uBAAC,SAAG,IAAC,SAAS,EAAC,+BAA+B,EAAC,KAAK,EAAE,KAAK,GAAI,CAChE,CAAC,CAAC,CAAC,IAAI,CAAC;IAET,OAAO,CACL,oCACE,SAAS,EAAE,qGAAqG,SAAS,EAAE,EAC3H,IAAI,EAAC,UAAU,YAEf,uBAAC,mBAAQ,IACP,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,sBAAsB,EAChC,KAAK,EAAE,SAAS,EAChB,KAAK,EAAE,SAAS,YAEhB,iCAAK,SAAS,EAAC,sCAAsC,aAClD,WAAW,CAAC,CAAC,CAAC,uBAAC,yBAAW,IAAC,SAAS,EAAC,MAAM,EAAC,WAAW,EAAE,WAAW,GAAI,CAAC,CAAC,CAAC,IAAI,EAC/E,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,CACf,uBAAC,WAAI,IACH,SAAS,EAAC,wDAAwD,EAClE,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,EACP,WAAW,CAAC,CAAC,CAAC,CACb,uBAAC,yBAAW,IACV,SAAS,EAAC,YAAY,EACtB,KAAK,EAAE,WAAW,EAClB,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC,CAAC,CAAC,IAAI,IACJ,GACG,GACH,CACX,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -16,6 +16,6 @@ exports.CurrencyInput = (0, uni_jsx_1.JSX)(({ className = '', label, currency =
16
16
  const newValue = e.target.value === '' ? '' : String((0, clamp_1.clamp)(e.target.value, minValue, maxValue));
17
17
  onChange(newValue);
18
18
  };
19
- return ((0, jsx_runtime_1.jsxs)("div", { className: className, children: [label ? (0, jsx_runtime_1.jsx)("label", { className: "block text-m-light mb-2", children: label }) : null, (0, jsx_runtime_1.jsxs)("div", { className: "h-[56px] relative flex items-center", children: [(0, jsx_runtime_1.jsx)("input", { type: "number", className: "text-l pl-4 pr-8 w-full h-full rounded-md border border-solid border-main-stroke", onChange: handleChange, value: value, min: minValue, max: maxValue, ...inputProps }), (0, jsx_runtime_1.jsx)("span", { className: "text-xl-light absolute right-4", children: CurrencyMap[currency] })] })] }));
19
+ return ((0, jsx_runtime_1.jsxs)("div", { className: className, children: [label ? (0, jsx_runtime_1.jsx)("label", { className: "block text-m-light mb-2", children: label }) : null, (0, jsx_runtime_1.jsxs)("div", { className: "h-[56px] relative flex items-center", children: [(0, jsx_runtime_1.jsx)("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: handleChange, value: value, min: minValue, max: maxValue, ...inputProps }), (0, jsx_runtime_1.jsx)("span", { className: "text-xl-light absolute right-4", children: CurrencyMap[currency] })] })] }));
20
20
  });
21
21
  //# sourceMappingURL=CurrencyInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CurrencyInput.js","sourceRoot":"","sources":["../../../src/ui-kit/CurrencyInput/CurrencyInput.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AACxC,6CAA0C;AAU1C,MAAM,WAAW,GAA6B;IAC5C,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;IACR,GAAG,EAAE,GAAG;CACT,CAAC;AAcW,QAAA,aAAa,GAAG,IAAA,aAAG,EAC9B,CAAC,EACC,SAAS,GAAG,EAAE,EACd,KAAK,EACL,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,KAAK,GAAG,EAAE,EACV,QAAQ,GAAG,CAAC,EACZ,QAAQ,GAAG,MAAM,EACjB,GAAG,UAAU,EACd,EAAE,EAAE;IACH,MAAM,YAAY,GAAG,CAAC,CAAM,EAAE,EAAE;QAC9B,IAAI,CAAC,QAAQ,EAAE;YACb,OAAO;SACR;QAED,MAAM,QAAQ,GACZ,CAAC,CAAC,MAAM,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,MAAM,CAAC,KAAe,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;QAE3F,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,OAAO,CACL,iCAAK,SAAS,EAAE,SAAS,aACtB,KAAK,CAAC,CAAC,CAAC,kCAAO,SAAS,EAAC,yBAAyB,YAAE,KAAK,GAAS,CAAC,CAAC,CAAC,IAAI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AO,SAAS,EAAC,yBAAyB,YAAE,KAAK,GAAS,CAAC,CAAC,CAAC,IAAI,EAC1E,iCAAK,SAAS,EAAC,qCAAqC,aAClD,kCACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,kKAAkK,EAC5K,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,QAAQ,EACb,GAAG,EAAE,QAAQ,KACT,UAAU,GACd,EACF,iCAAM,SAAS,EAAC,gCAAgC,YAAE,WAAW,CAAC,QAAQ,CAAC,GAAQ,IAC3E,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -11,9 +11,9 @@ exports.Foldable = (0, uni_jsx_1.JSX)(({ blocks = [], hiddenBlocksNum = 0, foldB
11
11
  initialState: isUnfolded,
12
12
  });
13
13
  const buttonClassName = foldButtonClasses ||
14
- 'border-none bg-primary-main hover:bg-primary-hover px-0 py-[26px] mb-[1px] w-full font-sans text-white text-h4 flex justify-center cursor-pointer';
14
+ 'border-none bg-primary-main hover:bg-primary-hover px-0 py-5 mb-[1px] w-full font-sans text-white text-h4 flex justify-center cursor-pointer';
15
15
  const getFoldButtonLabel = isActive ? 'Скрыть' : foldButtonLabel;
16
- return blocks ? ((0, jsx_runtime_1.jsxs)("div", { children: [renderBlocks(blocks, render, { blocksToHide, isActive, containerClasses }), hiddenBlocksNum ? ((0, jsx_runtime_1.jsxs)("button", { className: buttonClassName, "data-theme": foldButtonDataTheme, onClick: handleToggle, children: [(0, jsx_runtime_1.jsx)("span", { className: "pr-3", children: getFoldButtonLabel }), icon ? (0, jsx_runtime_1.jsx)(Icon_1.Icon, { name: icon, iconVersion: "white", width: "20", height: "20", asSVG: true }) : null] })) : null] })) : null;
16
+ return blocks ? ((0, jsx_runtime_1.jsxs)("div", { children: [renderBlocks(blocks, render, { blocksToHide, isActive, containerClasses }), hiddenBlocksNum ? ((0, jsx_runtime_1.jsxs)("button", { className: buttonClassName, "data-theme": foldButtonDataTheme, onClick: handleToggle, children: [(0, jsx_runtime_1.jsx)("span", { className: "pr-3", children: getFoldButtonLabel }), icon ? ((0, jsx_runtime_1.jsx)(Icon_1.Icon, { className: "my-auto", name: icon, iconVersion: "white", width: "20", height: "20", asSVG: true })) : null] })) : null] })) : null;
17
17
  });
18
18
  const renderBlocks = (blocks, render, { blocksToHide, isActive, containerClasses = '' }) => {
19
19
  const visibleBlocks = blocks.slice(0, blocks.length - blocksToHide);
@@ -1 +1 @@
1
- {"version":3,"file":"Foldable.js","sourceRoot":"","sources":["../../../src/ui-kit/Foldable/Foldable.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAIxC,6CAA0C;AAC1C,uCAAoC;AACpC,yDAA+E;AAuBlE,QAAA,QAAQ,GAAG,IAAA,aAAG,EACzB,CAAC,EACC,MAAM,GAAG,EAAE,EACX,eAAe,GAAG,CAAC,EACnB,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,UAAU,EACV,gBAAgB,EAChB,MAAM,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAClB,EAAE,EAAE;IACH,MAAM,YAAY,GAAG,IAAA,aAAK,EAAC,eAAe,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9D,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,IAAA,mCAAgB,EAAC;QACxD,YAAY,EAAE,UAAU;KACzB,CAAC,CAAC;IAEH,MAAM,eAAe,GACnB,iBAAiB;QACjB,mJAAmJ,CAAC;IACtJ,MAAM,kBAAkB,GAAG,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC;IAEjE,OAAO,MAAM,CAAC,CAAC,CAAC,CACd,4CACG,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,YAAY,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC,EAC1E,eAAe,CAAC,CAAC,CAAC,CACjB,oCACE,SAAS,EAAE,eAAe,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pE,MAAM,YAAY,GAAG,YAAY,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEzE,OAAO,MAAM,CACX,4CACG,aAAa,EACd,gCAAK,SAAS,EAAE,GAAG,0CAAuB,IAAI,gBAAgB,EAAE,YAAG,YAAY,GAAO,IAClF,EACN,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC"}
@@ -7,6 +7,6 @@ exports.Input = (0, uni_jsx_1.JSX)(({ className = '', id, name, type = 'text', p
7
7
  const validInputValue = e.target.validity.valid ? e.target.value : value;
8
8
  onChange(validInputValue);
9
9
  };
10
- return ((0, jsx_runtime_1.jsx)("input", { className: className, id: id, name: name || id, type: type, pattern: pattern, placeholder: placeholder, value: value, onChange: handleChange }));
10
+ return ((0, jsx_runtime_1.jsx)("input", { className: `border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${className}`, id: id, name: name || id, type: type, pattern: pattern, placeholder: placeholder, value: value, onChange: handleChange }));
11
11
  });
12
12
  //# sourceMappingURL=Input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/ui-kit/Input/Input.tsx"],"names":[],"mappings":";;;AAAA,+CAAwC;AAG3B,QAAA,KAAK,GAAG,IAAA,aAAG,EACtB,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,GAAG,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IACrF,MAAM,YAAY,GAAG,CAAC,CAAC,EAAE,EAAE;QACzB,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAE,CAAC,CAAC,MAAM,CAAC,KAAgB,CAAC,CAAC,CAAC,KAAK,CAAC;QACrF,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC5B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