@redneckz/wildless-cms-uni-blocks 0.6.31 → 0.6.32

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 (155) hide show
  1. package/bin/migration-scripts/0.6.32.js +26 -0
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +137 -102
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  6. package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  7. package/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  8. package/bundle/components/StepsBlock/renderStepContent.d.ts +1 -1
  9. package/bundle/icons/IconName.d.ts +6 -4
  10. package/bundle/model/HeadlineType.d.ts +2 -2
  11. package/bundle/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  12. package/bundle/utils/sliceArray.d.ts +1 -0
  13. package/cosmos-static/icons/ArrowRightIcon.svg +1 -0
  14. package/dist/components/Blocks.js +2 -0
  15. package/dist/components/Blocks.js.map +1 -1
  16. package/dist/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  17. package/dist/components/CarouselLinks/CarouselLinks.js +20 -0
  18. package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -0
  19. package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  20. package/dist/components/CarouselLinks/CarouselLinksContent.js +2 -0
  21. package/dist/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
  22. package/dist/components/ContactsBlock/ContactsBlock.js +5 -9
  23. package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  24. package/dist/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  25. package/dist/components/Headline/constants.js +6 -0
  26. package/dist/components/Headline/constants.js.map +1 -1
  27. package/dist/components/StepsBlock/renderStepContent.d.ts +1 -1
  28. package/dist/icons/IconName.d.ts +6 -4
  29. package/dist/icons/IconName.js +4 -2
  30. package/dist/icons/IconName.js.map +1 -1
  31. package/dist/model/HeadlineType.d.ts +2 -2
  32. package/dist/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  33. package/dist/ui-kit/LinkButton/LinkButton.js +16 -0
  34. package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -0
  35. package/dist/utils/sliceArray.d.ts +1 -0
  36. package/dist/utils/sliceArray.js +15 -0
  37. package/dist/utils/sliceArray.js.map +1 -0
  38. package/lib/common.css +1 -1
  39. package/lib/components/Blocks.js +2 -0
  40. package/lib/components/Blocks.js.map +1 -1
  41. package/lib/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  42. package/lib/components/CarouselLinks/CarouselLinks.fixture.d.ts +5 -0
  43. package/lib/components/CarouselLinks/CarouselLinks.js +18 -0
  44. package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -0
  45. package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  46. package/lib/components/CarouselLinks/CarouselLinksContent.js +2 -0
  47. package/lib/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
  48. package/lib/components/ContactsBlock/ContactsBlock.js +5 -9
  49. package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  50. package/lib/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  51. package/lib/components/Headline/constants.js +6 -0
  52. package/lib/components/Headline/constants.js.map +1 -1
  53. package/lib/components/StepsBlock/renderStepContent.d.ts +1 -1
  54. package/lib/icons/IconName.d.ts +6 -4
  55. package/lib/icons/IconName.js +4 -2
  56. package/lib/icons/IconName.js.map +1 -1
  57. package/lib/model/HeadlineType.d.ts +2 -2
  58. package/lib/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  59. package/lib/ui-kit/LinkButton/LinkButton.fixture.d.ts +5 -0
  60. package/lib/ui-kit/LinkButton/LinkButton.js +14 -0
  61. package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -0
  62. package/lib/utils/sliceArray.d.ts +1 -0
  63. package/lib/utils/sliceArray.js +12 -0
  64. package/lib/utils/sliceArray.js.map +1 -0
  65. package/mobile/bundle/bundle.umd.js +1 -1
  66. package/mobile/bundle/bundle.umd.min.js +1 -1
  67. package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  68. package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  69. package/mobile/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  70. package/mobile/bundle/components/StepsBlock/renderStepContent.d.ts +1 -1
  71. package/mobile/bundle/icons/IconName.d.ts +6 -4
  72. package/mobile/bundle/model/HeadlineType.d.ts +2 -2
  73. package/mobile/bundle/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  74. package/mobile/bundle/utils/sliceArray.d.ts +1 -0
  75. package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  76. package/mobile/dist/components/CarouselLinks/CarouselLinks.js +20 -0
  77. package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -0
  78. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  79. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js +2 -0
  80. package/mobile/dist/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
  81. package/mobile/dist/components/ContactsBlock/ContactsBlock.js +5 -9
  82. package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
  83. package/mobile/dist/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  84. package/mobile/dist/components/Headline/constants.js +6 -0
  85. package/mobile/dist/components/Headline/constants.js.map +1 -1
  86. package/mobile/dist/components/StepsBlock/renderStepContent.d.ts +1 -1
  87. package/mobile/dist/icons/IconName.d.ts +6 -4
  88. package/mobile/dist/icons/IconName.js +4 -2
  89. package/mobile/dist/icons/IconName.js.map +1 -1
  90. package/mobile/dist/model/HeadlineType.d.ts +2 -2
  91. package/mobile/dist/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  92. package/mobile/dist/ui-kit/LinkButton/LinkButton.js +16 -0
  93. package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -0
  94. package/mobile/dist/utils/sliceArray.d.ts +1 -0
  95. package/mobile/dist/utils/sliceArray.js +15 -0
  96. package/mobile/dist/utils/sliceArray.js.map +1 -0
  97. package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +5 -0
  98. package/mobile/lib/components/CarouselLinks/CarouselLinks.js +18 -0
  99. package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -0
  100. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +9 -0
  101. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js +2 -0
  102. package/mobile/lib/components/CarouselLinks/CarouselLinksContent.js.map +1 -0
  103. package/mobile/lib/components/ContactsBlock/ContactsBlock.js +5 -9
  104. package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
  105. package/mobile/lib/components/ContactsBlock/ContactsBlockContent.d.ts +11 -20
  106. package/mobile/lib/components/Headline/constants.js +6 -0
  107. package/mobile/lib/components/Headline/constants.js.map +1 -1
  108. package/mobile/lib/components/StepsBlock/renderStepContent.d.ts +1 -1
  109. package/mobile/lib/icons/IconName.d.ts +6 -4
  110. package/mobile/lib/icons/IconName.js +4 -2
  111. package/mobile/lib/icons/IconName.js.map +1 -1
  112. package/mobile/lib/model/HeadlineType.d.ts +2 -2
  113. package/mobile/lib/ui-kit/LinkButton/LinkButton.d.ts +5 -0
  114. package/mobile/lib/ui-kit/LinkButton/LinkButton.js +14 -0
  115. package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -0
  116. package/mobile/lib/utils/sliceArray.d.ts +1 -0
  117. package/mobile/lib/utils/sliceArray.js +12 -0
  118. package/mobile/lib/utils/sliceArray.js.map +1 -0
  119. package/mobile/src/components/CarouselLinks/CarouselLinks.example.json +55 -0
  120. package/mobile/src/components/CarouselLinks/CarouselLinks.json +8 -0
  121. package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +61 -0
  122. package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +10 -0
  123. package/mobile/src/components/ContactsBlock/ContactsBlock.example.json +22 -18
  124. package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +25 -35
  125. package/mobile/src/components/ContactsBlock/ContactsBlockContent.ts +12 -22
  126. package/mobile/src/components/Headline/constants.ts +6 -0
  127. package/mobile/src/components/StepsBlock/renderStepContent.tsx +1 -1
  128. package/mobile/src/icons/ArrowLeftIcon.svg +1 -1
  129. package/mobile/src/icons/ArrowRightIcon.svg +1 -0
  130. package/mobile/src/icons/ArrowUpIcon.svg +1 -1
  131. package/mobile/src/icons/IconName.ts +4 -4
  132. package/mobile/src/model/HeadlineType.ts +2 -2
  133. package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +42 -0
  134. package/mobile/src/utils/sliceArray.ts +15 -0
  135. package/package.json +2 -2
  136. package/src/components/Blocks.ts +2 -0
  137. package/src/components/CarouselLinks/CarouselLinks.example.json +55 -0
  138. package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +28 -0
  139. package/src/components/CarouselLinks/CarouselLinks.json +8 -0
  140. package/src/components/CarouselLinks/CarouselLinks.tsx +61 -0
  141. package/src/components/CarouselLinks/CarouselLinksContent.ts +10 -0
  142. package/src/components/ContactsBlock/ContactsBlock.example.json +22 -18
  143. package/src/components/ContactsBlock/ContactsBlock.fixture.tsx +21 -15
  144. package/src/components/ContactsBlock/ContactsBlock.tsx +25 -35
  145. package/src/components/ContactsBlock/ContactsBlockContent.ts +12 -22
  146. package/src/components/Headline/constants.ts +6 -0
  147. package/src/components/StepsBlock/renderStepContent.tsx +1 -1
  148. package/src/icons/ArrowLeftIcon.svg +1 -1
  149. package/src/icons/ArrowRightIcon.svg +1 -0
  150. package/src/icons/ArrowUpIcon.svg +1 -1
  151. package/src/icons/IconName.ts +6 -327
  152. package/src/model/HeadlineType.ts +2 -2
  153. package/src/ui-kit/LinkButton/LinkButton.fixture.tsx +9 -0
  154. package/src/ui-kit/LinkButton/LinkButton.tsx +42 -0
  155. package/src/utils/sliceArray.ts +15 -0
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const l=e=>(...l)=>t[e](...l),n=l("useState"),r=l("useEffect"),a=l("useCallback"),i=l("useMemo"),s=l("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),l=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await l.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:l}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:l})),{token:t,name:l}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:t})}),{likes:n}=await e.json();return n||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,l){const{children:n,...r}=t||{},a=l?.slots?.default,i=n||a&&a();return e(Object.assign(r,i&&{children:i}),l)}return t.inheritAttrs=!1,t},b={left:"text-left",center:"text-center",right:"text-right"};class g{static inst=new g;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const l=this.subjectsStateMap[e];return l&&t(l),()=>{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}}function f(e,t){const l=s(null);return r((()=>{if(!l.current)return;const n=new IntersectionObserver(e,t);return n.observe(l.current),()=>{n.disconnect()}}),[e,t]),l}const v=100,N={threshold:new Array(18).fill(0).map((function(e,t){const l=(t+1)/v+.82;return Math.round(l*v)/v}))},y=p((({className:e,block:t,tag:l="section",role:a,children:o})=>{const c=l,{anchor:d,labels:m}=t||{},[u,p]=n(!0),x=s({}),b=i((()=>(({anchor:e,anchorClickRef:t})=>l=>{if(!l?.length)return;const[n]=l;!n.isIntersecting||n.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?(g.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),g.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||g.inst.fire("tab",{type:"link",label:e}))})({anchor:d,anchorClickRef:x})),[d]),v=f(b,N);return r((()=>g.inst.subscribe("anchorClick",(e=>{p(!0),x.current=e}))),[]),r((()=>g.inst.subscribe("tab",(e=>{if("group"===e.type){const l=m?.length||t?.anchor;p(!e.label||(!l||Boolean(m?.includes(e.label))))}else(l=e.label)&&(globalThis.document.location.hash=l),p(!0);var l}))),[]),u?h(c,{className:e,role:a,...d?{id:d,ref:v}:{},children:o}):null}));const w={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},k=p((e=>{const{className:t="",headingType:l="h3",title:n,as:r="h3"}=e;return h(r,{className:`font-sans m-0 ${w[l]} ${t}`,children:n})})),C=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),$=p((({className:e="",title:t,accordionAlignTitle:l="center",description:n,children:r,...a})=>u(y,{className:`p-[50px] mb-1 last:mb-0 font-sans bg-white text-primary-text ${e}`,...a,children:[t?h(k,{headingType:"h3",as:"h2",className:`mb-2.5 ${b[l]}`,title:t}):null,n?h("div",{className:"mb-2.5 text-l",children:n}):null,h(C,{children:r})]})));$.childrenTypes=["AccordionItem"];const S=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:l,renderFoldButton:r})=>{const[i,s]=n(t),o=a((()=>{s((e=>!e))}),[]),c=l({isUnfolded:i,onToggle:o}),d=r?r({isUnfolded:i,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),I=p((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return r((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),h("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden max-h-0 ${e}`,children:l})})),T={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},B=p((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:r=n,iconVersion:a="color",asSVG:i,...s})=>{const o=`${c.CDN||""}icons/${l}.svg`;return i&&"normal"!==a?h(V,{className:e,children:u("svg",{className:[R(e,s.width),T[a],t,j(a)].join(" "),...s,"aria-hidden":"true",children:[r?h("title",{children:r}):null,n?h("desc",{children:n}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:n,title:r,...s,"aria-hidden":"true"})})),j=e=>"white"===e?"invert":"",R=(e,t)=>t?`width: ${t}px `:"w-full h-full",V=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function _(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const M=(e,t)=>e.media&&t.media?e.media-t.media:0,D=p((({className:e="",image:t,imageClassName:l="",isMobile:n=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${n?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(M).map((({src:e,format:l,media:n},r)=>h("source",{srcSet:e,type:A(l),media:n?`(max-width: ${n}px)`:"",...t.size},`${r}_${e}`))):null,L(t,l,n)]})})),L=(e,t="",l=!1)=>{const n={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",a=e.alt||e.title,i=l?"m-auto":"m-0";return h("img",{src:e.src,className:`${i} ${t}`,alt:a,title:r,style:n,...e.size})};function A(e){return e?`image/${String(e)}`:void 0}const O=p((({className:e="",image:t,imageClassName:l="",isMobile:n,...r})=>{if(!t)return null;const a="string"==typeof t?t:t.icon;return a||""===a?a.length?h(B,{className:e,imageClassName:l,iconVersion:_(t),name:a,...r}):null:h(D,{className:e,imageClassName:l,image:t,isMobile:n})})),F=["PlusIcon","MinusIcon"],E=p((({className:e="",label:t="",isExpanded:l,children:n})=>h("li",{className:`border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,children:h(S,{isFoldButtonOnTop:!0,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h(I,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:n}),renderFoldButton:({isUnfolded:e,onToggle:l})=>h(U,{label:t,icon:F[Number(e)],onClick:l})})})));E.childrenTypes=[];const U=p((({label:e,icon:t,onClick:l})=>u("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer",onClick:l,children:[h("span",{className:"text-xl font-medium pr-2.5",children:e}),h(O,{image:t,className:"text-primary-main flex-shrink-0",width:"24",height:"24",asSVG:!0})]}))),z={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},P=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),X={primary:"",secondary:"text-white"},G={primary:"text-secondary-text",secondary:"text-white opacity-80"},H={primary:"bg-main-divider text-primary-main",secondary:"bg-white/30 text-black"},W=p((({className:e="",title:t,benefitList:l,version:n="primary",...r})=>u(y,{className:`font-sans text-primary-text p-12 flex flex-col items-center ${e} ${z[n]}`,...r,children:[t?h(k,{headingType:"h3",as:"h2",className:`max-w-[47rem] text-center ${X[n]}`,title:t}):null,l?.length?h("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:l.map(J(n))}):null]}))),J=e=>(t,l)=>{const n=t.description;return u("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[t?.icon?.icon?h(O,{className:`w-[50px] h-[50px] min-w-[50px] p-3 rounded-full ${H[e]}`,image:P(t.icon,e),asSVG:!0}):null,t?.icon?.src?h(O,{image:t.icon}):null,u("div",{className:"ml-5",children:[t?.label?h("h3",{className:`text-h6 m-0 ${X[e]}`,children:t.label}):null,Y(n,e)]})]},String(l))},Y=(e,t)=>{const l=e?.benefitType||null;return e&&l?h("div",{className:`text-l-light mt-2 ${G[t]}`,children:"list"===l?K(e):Z(e)}):null},Z=e=>e?.name||null,K=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?h("ul",{className:t,children:e.items.map(((e,t)=>h("li",{children:e},`benefitListItem-${t}`)))}):null},q=e=>e?.includes("//"),Q=e=>(e||"").replace(/\/?\?.*/,""),ee=e=>{if(!e||!q(e))return;const t=e,l=t.indexOf("//"),n=t.indexOf("/",l+"//".length);return-1!==n?t.substring(0,n):t};var te=Object.freeze({__proto__:null,isURL:q,withoutQuery:Q,getOrigin:ee,getHash:e=>{if(!e||!q(e))return;const t=e.indexOf("#");return-1!==t?e.substring(t,e.length):void 0},isHash:e=>e?.startsWith("#")});const le=(e,t)=>le._impl(e,t);function ne(){return ne._impl()}function re(){const e=ne();return t=>{const l=((e,t)=>{if(!e)return e;const l=ee(t?.href);return l?e.replace(l,"")||"/":e})(t.href,e);return{...t,href:l,"aria-label":t.text,onClick:le((n=>{t.onClick&&t.onClick(n);const r=l&&!q(l),a=!t.target||"_self"===t.target;r&&a&&(n?.preventDefault(),e.push(l))}),t)}}}le._impl=e=>e,le.setup=e=>{le._impl=e},ne._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),ne.setup=e=>{ne._impl=e};const ae={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:""},ie="bg-main-divider text-main-disabled",se={primary:ie,secondary:ie,white:ie,link:""},oe="text-center font-sans select-none",ce={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},de=p((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:r,version:a="primary"}=e;return u("div",{className:me(e),children:[n?h("div",{className:ce[a],children:n}):null,he(e)?u("div",{children:[l?h("div",{className:"text-xs-light text-left",children:l}):null,h("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?h("div",{className:ce[a],children:r}):null]})})),me=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const r="gap-2 "+(l?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",he(e)?r:"h-12 w-12",n?"rounded-full":""].join(" ")},he=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),ue=({className:e,rounded:t,version:l})=>["inline-block",oe,l?se[l]:"",t?"rounded-full":"rounded-md",e].join(" "),pe=({className:e,rounded:t,version:l})=>[oe,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",l?ae[l]:"",t?"rounded-full":"rounded-md",e].join(" "),xe=p((({disabled:e,children:t,...l})=>{const n=re()(l),r=t??h(de,{...n});return h(e?ge:be,{...n,children:r})})),be=p((({className:e="",href:t,rel:l,target:n,ariaLabel:r,version:a,rounded:i,onClick:s,children:o})=>h("a",{className:pe({className:e,version:a,rounded:i}),href:t,rel:l,target:n,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),ge=p((({className:e,ariaLabel:t,version:l,rounded:n,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ue({className:e,rounded:n,version:l}),children:r}))),fe=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>ve({button:e,index:t})))}):null));function ve({button:e,buttonClassName:t,index:l}){const{icon:n,iconRight:r,version:a,...i}=e,s="secondary"===a?"color":"white",o=Ne({...n,iconVersion:s}),c=Ne({...r,iconVersion:s});return h(xe,{className:t,appendLeft:o,appendRight:c,version:a,...i},l?String(l):"")}const Ne=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(O,{image:{...e},width:t,height:"24",asSVG:!0})},ye=p((e=>{const{className:t="",description:l}=e;return h("div",{className:`${t}`,children:l})})),we={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"}},ke={XXL:{descriptionFont:"text-h5",gap:"gap-[18px]",headingType:"h0",as:"h1"},XL:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h1",as:"h1"},L:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h2",as:"h2"},M:{descriptionFont:"text-xl-light",gap:"gap-3",headingType:"h3",as:"h3"},S:{descriptionFont:"text-xl-light",gap:"gap-2",headingType:"h4",as:"h4"}},Ce={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},$e=p((({className:e="",bgColorHeadline:t="transparent",align:l="center",title:n,description:r,headlineVersion:a="XL",as:i,...s})=>{const o=we[t],c=ke[a];return u(y,{className:`font-sans flex flex-col p-[50px] ${c.gap} ${o.background} ${e}`,...s,children:[n?h(k,{headingType:c?.headingType,as:i||c?.as,className:`whitespace-pre-wrap ${o.text} ${b[l]}`,title:n}):null,r?h(ye,{className:`${c.descriptionFont} ${o.text} ${b[l]}`,description:r}):null]})})),Se=p((e=>{const{className:t="",title:l,description:n,bonusItems:r,...a}=e;return h(y,{className:`font-sans bg-white p-[50px] pb-9 ${t}`,...a,children:u("div",{className:"container",children:[h($e,{className:"!p-0",title:l,description:n,headlineVersion:"M",align:"center",...a}),h("div",{className:"flex flex-wrap w-full mt-9",children:r?.length?r.map(((e,t)=>h("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:u("div",{className:"flex justify-between w-full",children:[u("div",{className:"flex flex-col justify-between mr-4",children:[u("div",{children:[h("div",{className:"text-h4",children:e.title}),h("div",{className:"text-xl-light mt-2 max-w-[488px]",children:e.description})]}),e?.buttons?.length?h(fe,{buttons:e?.buttons}):null]}),e.bonusItemContent?.bonusType?Ie(e.bonusItemContent):null]})},String(t)))):null})]})})})),Ie=e=>h("div",{children:"count"===e.bonusType?Te(e):Be(e)}),Te=e=>u("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?h("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?h("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),Be=e=>e.image?h(O,{className:"w-[50px] h-[50px] min-w-[50px] p-3 rounded-full",image:e.image}):null,je=p((({className:e="",title:t,subtitle:l,bonusBenefits:n,columnsCount:r="4",...a})=>u(y,{className:`font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${e}`,...a,children:[h($e,{className:"!p-0",title:t,description:l,headlineVersion:"M",align:"center",...a}),n?.length?h("div",{className:`grid gap-1 mt-8 ${Ve(r)}`,children:n.map(Re)}):null]}))),Re=(e,t)=>u("div",{className:"flex flex-col items-center max-w-[292px]",children:[e?.icon?h(O,{className:"h-[160px] w-[180px] min-w-[180px] min-h-[160px]",image:e.icon,width:"180",height:"160"}):null,h("div",{children:e?.label?h("span",{className:"text-h6 m-0",children:e.label}):null})]},String(t)),Ve=e=>"4"===e?"grid-cols-4":"grid-cols-5",_e=p((e=>{const{title:t,image:l,cardItems:n,button:r}=e;return u("div",{className:"border-color-stroke border p-9 w-1/2",children:[l?u("div",{className:"flex justify-center",children:[l?.src?h(O,{className:"mb-5",image:l}):null,l?.icon?h(O,{image:l,asSVG:!0}):null]}):null,t?h(k,{headingType:"h4",title:t,className:"mb-6"}):null,n?.length?h("ul",{children:n.map(((e,t)=>Me(e,String(t))))}):null,r?.text?ve({button:r,buttonClassName:"mt-6"}):null]})})),Me=(e,t)=>{const{icon:l,text:n}=e;return u("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?h(O,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",image:l.icon,asSVG:!0}):null,l?.src?h(O,{image:l.icon}):null,h("span",{className:"text-xl-light",children:n})]},t)},De=p((({className:e="",title:t,cards:l,...n})=>u(y,{className:`font-sans bg-white p-[50px] pb-9 ${e}`,...n,children:[h(k,{headingType:"h3",title:t,className:"text-center mb-8"}),h("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>h(_e,{...e},String(t)))):null})]}))),Le=p((({className:e,disabled:t,...l})=>h(xe,{rounded:!0,className:`group shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...l,children:h(O,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"16",height:"16",asSVG:!0})})));function Ae({handler:e,isShown:t,btnClass:l,className:n="",isDisabled:r=!1}){return u("div",{children:[t[0]||r?h(Le,{className:`absolute z-10 ${l[0]} ${n}`,onClick:e[0],ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!t[0]}):null,t[1]||r?h(Le,{className:`absolute z-10 rotate-180 ${l[1]} ${n}`,onClick:e[1],ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!t[1]}):null]})}const Oe=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),Fe=p((({title:e,value:t,postfix:l="",prefix:n,className:r=""})=>u("div",{className:`mb-7 ${r}`,children:[e?h("div",{className:"text-l-light text-secondary-text",children:e}):null,t?u("div",{className:"text-h3",children:[n," ",Oe(Math.round(t))," ",l]}):null]}))),Ee=6e4,Ue=2e6,ze=97e4,Pe=Math.round(23.5),Xe={minSum:Ee,maxSum:Ue,minMonths:13,maxMonths:60,rateBottomRange:10,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},Ge={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},He=p((({rate:e,title:t="Ставка",unit:l,rateBlockClassName:n})=>u("div",{children:[h("div",{className:"text-l-light text-secondary-text",children:t}),u("div",{className:"flex justify-start",children:[h("span",{className:`block gradient-color-text font-mohave text-title-huge pr-6 -mt-4 ${n}`,children:String(e).replace(".",",")}),l?h("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:l}):""]})]})));function We(e){return e?.length?h(fe,{buttons:e,className:"flex flex-col mt-7 gap-2"}):null}const Je=e=>e?h("p",{className:"text-s-light text-secondary-text mt-7",children:e}):null,Ye=(e,t,l)=>Math.max(t,Math.min(e,l)),Ze=e=>e.split(/\s+/).join(""),Ke=p((({className:e,title:t,items:l=[],min:n=1,max:r=100,step:a=1,value:i=n,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(Ye(Number(Ze(e.target.value)),n,r))},d={backgroundSize:`${(100*(i-n)/(r-n)).toFixed(2)}% 100%`};return u("div",{className:e,children:[u("label",{className:"block relative",children:[t?h("span",{className:"text-m-light text-primary-text",children:t}):null,h("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-focus disabled:border-main-stroke disabled:bg-main-divider",value:Oe(i),disabled:s,onChange:c,onBlur:c}),h("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:h("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:n,max:r,step:a,value:i,disabled:s,onChange:c,style:d})})]}),qe(l)]})}));function qe(e){return h("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>h("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const Qe=1e3;function et(e,t,l){const{moneyValue:n,minSum:r,maxSum:a,step:i=Qe,isShowItems:s=!0}=t,o=[`От ${Oe(r)} ₽`,`До ${Oe(a)} ₽`];return h(Ke,{title:e,items:s?o:[],min:r,max:a,step:i,value:Ye(n,r,a),onChange:l})}const tt=new Map;function lt(e,t,{fallback:l}={}){const a=i((()=>nt(e)),[e]),[s,o]=n(),[c,d]=n(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!a.every((e=>null===e)))try{const e=t(...a);"then"in e?(e=>{e.then((e=>tt.get(a)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...a]);const u=a[0],p=l&&"string"==typeof u&&l[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function nt(e){return e?Array.isArray(e)?e:e instanceof Function?nt(e()):[e]:[e]}async function rt(e,t){try{return await at(e,t)}catch(e){console.error(e)}return null}async function at(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}function it(e){const{data:t}=lt(`/wcms-resources/${e}.json`,at);return t}const st=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,r=it(t||"bonus-calculator-data")||Ge,[a,i]=((e,t,l)=>{const{minSumTravel:n,minSumOther:r,maxBonus:a,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===r)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),a);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*l),a)*(12-i)]})(r,l,n);return{...r,...e,monthBonus:a,yearBonus:i}},ot=p((({className:e="",sourceBookDir:t="",buttons:l,footnote:r})=>{const[a,i]=n(6e3),[s,o]=n(6e3),c={travelExpenseValue:a,restExpenseValue:s},{minSumTravel:d,maxSumTravel:m,minSumOther:p,maxSumOther:x,monthBonus:b,yearBonus:g}=st(c,t);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[et("Сумма покупок в категории путешествия, ₽",{minSum:d,maxSum:m,moneyValue:a,step:500,isShowItems:!1},i),et("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:p,maxSum:x,moneyValue:s,step:500,isShowItems:!1},o)]}),h("div",{children:b>=0?h(He,{title:"Баллов за месяц",rate:b,rateBlockClassName:"tracking-[-14px]"}):null}),u("div",{className:"w-full max-w-[350px]",children:[g>=0?h(Fe,{title:"Баллов за год",value:g}):null,We(l),Je(r)]})]})})),ct=p((({className:e,viewBox:t,fill:l="none",width:n,height:r,paths:a,...i})=>h("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:r,children:a.map((({d:e,fill:t,...l},n)=>h("path",{d:e,fill:t||"currentColor",...i,...l},n)))}))),dt=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],mt=p((({className:e,text:t,checked:l,isRadio:n,onChange:r})=>h("div",{className:e,children:u("label",{className:"flex items-center relative cursor-pointer group",children:[h("input",{className:`peer appearance-none w-5 h-5 border-solid cursor-pointer group-hover:border-checkbox-hover\n ${n?"rounded-full border-2":"rounded checked:bg-primary-main border"}\n ${l?"border-black":"border-main-stroke"}\n checked:border-primary-main m-0`,type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:l}),n?h("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):h(ct,{paths:dt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?h("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})}))),ht=p((({items:e,checkedItem:t,onChange:l})=>h("div",{className:"flex flex-col gap-3",children:e?.map((({id:e,text:n})=>h(mt,{isRadio:!0,text:n,checked:t===e,onChange:()=>l&&l(e)},String(e))))})));function ut(e,t,l){const{minMonths:n,maxMonths:r,monthsValue:a}=t,i=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return h(Ke,{className:"mt-7",title:e,items:[`От ${i(n)}`,`До ${i(r)}`],min:n,max:r,step:1,value:Ye(a,n,r),onChange:l})}const pt=(e,t)=>{const{isInsurance:l,isSalaryClient:n,isStateEmployee:r,moneyValue:a}=e,i=it(t||"credit-calculator-data")?.rows?.find((e=>l===e.isInsurance&&n===e.isSalaryClient&&r===e.isStateEmployee))||Xe,{rateBottomRange:s,rateTopRange:o,sumBorder:c}=i,d=a<=c?s:o,m=((e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:r}=t;if(l){const t=e/1200;return n*(t+t/(Math.pow(1+t,r)-1))}return Math.round(n/r)+n*(e/1200)})(d,e);return{...i,...e,finalRate:d,monthlyPayment:m}},xt="annuity",bt="differential",gt=[{id:xt,text:"Аннуитетный"},{id:bt,text:"Дифференцированный"}],ft=p((({className:e="",sourceBookDir:t,buttons:l,footnote:r})=>{const[a,i]=n(!1),[s,o]=n(!0),[c,d]=n(!1),[m,p]=n(!1),[x,b]=n(ze),[g,f]=n(Pe),v=pt({isAnnuity:a,isInsurance:s,isSalaryClient:c,isStateEmployee:m,moneyValue:x,monthsValue:g},t);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[et("Сумма кредита, ₽",{...v,step:500},b),ut("Срок кредита, месяцев",v,f),u("div",{className:"mt-7",children:[h(mt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:c,onChange:d}),h(mt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:m,onChange:p}),h(mt,{className:"mt-3",text:"Комплексная страховая защита",checked:s,onChange:o})]})]}),h(He,{title:"Ставка",rate:v.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Fe,{title:a?"Ежемесячный платеж":"Платёж в первый месяц",value:v.monthlyPayment,postfix:"₽"}),h(ht,{items:gt,checkedItem:a?xt:bt,onChange:e=>i(e===xt)}),We(l),Je(r)]})]})})),vt="everyMonth",Nt="atEndTerm",yt=[{id:vt,text:"Ежемесячно"},{id:Nt,text:"В конце срока"}],wt={CreditCalculatorForm:ft,DepositCalculatorForm:p((({className:e="",rate:t,buttons:l,footnote:r})=>{const[a,i]=n(ze),[s,o]=n(Pe),[c,d]=n(!1);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[et("Сумма вклада, ₽",{moneyValue:a,minSum:Ee,maxSum:Ue},i),ut("Срок вклада, месяцев",{minMonths:13,maxMonths:60,monthsValue:s},o)]}),h(He,{rate:t||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(Fe,{title:"Доход по вкладу",value:948841,postfix:"₽",prefix:"+"}),h(Fe,{title:"Сумма в конце срока",value:1218841,postfix:"₽"}),h(ht,{items:yt,checkedItem:c?vt:Nt,onChange:e=>d(e===vt)}),We(l),Je(r)]})]})})),BonusCalculatorForm:ot},kt=(e,t)=>{const l=e?.calcType;if(!l||!(l in wt))return null;const n=wt[l];return h("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:u("div",{className:"box-border p-9 w-full",children:[e?.title?h(k,{className:"text-center mb-6",title:e.title}):null,h(n,{...e,className:"flex justify-between"})]})},String(t))},Ct=p((({className:e="",calculatorTabs:t=[],...l})=>{const r=t.map((e=>e.nav||{})),a=t.map((({calculatorBlock:e})=>e||{})),[i,s]=n(0),[o,c]=n(0),d=t?.length>3&&t?.length>o+3,m=o>0;return u(y,{className:`box-border overflow-hidden relative font-sans w-100 text-primary-text bg-white ${e}`,...l,children:[u("div",{className:"bg-white",children:[r.length>1?$t({tabsShift:o,tabsNav:r,activeSlideIndex:i,setActiveSlideIndex:s}):null,Ae({handler:[()=>c(o-1),()=>c(o+1)],isShown:[m,d],btnClass:["left-3","right-3"],className:"top-8"})]}),h("div",{className:"flex",style:{transform:`translateX(-${i}00%)`},role:"list",children:a?.length?a.map(kt):null})]})}));function $t({tabsShift:e,tabsNav:t,activeSlideIndex:l,setActiveSlideIndex:n}){return u("div",{children:[h("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:h("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,activeSlideIndex:l,onClick:n}){const r=t===l,a=r?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",i=r?"text-xl mb-1.5":"text-l mb-[3px]",s=r?"text-l-light text-white":"text-m-light text-secondary-text",o=r?"":"text-primary-main",c=e?.icon?.iconVersion,d=r?"white":"normal";return u("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative border border-main-stroke cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${a}`,children:[h(O,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${o}`,image:{...e?.icon,iconVersion:c??d},width:"24",height:"24",asSVG:!0}),u("div",{className:"border-0",children:[h("div",{className:`${i}`,children:e?.title}),h("div",{className:`${s}`,children:e.description})]})]},String(t))}({tab:e,i:t,activeSlideIndex:l,onClick:()=>n(t)})))})}),h("div",{className:"w-full h-2 bg-primary-main"})]})}const St=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,It=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},Tt=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),Bt=p((({className:e="",inputClassName:t="",id:l,name:n,type:r="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:m,...p})=>{const x=a((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),b=a((e=>{if(!m)return;const t=e.target.validity.valid?e.target.value:s;m(t)}),[m]),g=c?"pr-8":"",f=o?"border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return u("div",{className:`relative ${e}`,children:[i?h("label",{className:"block text-m-light mb-2",children:i}):null,h("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${g} ${f} ${t}`,id:l,name:n||l,type:r,value:s,onChange:x,onBlur:b,...p}),c]})})),jt=p((({className:e="",onChange:t,minValue:l=0,maxValue:n=3e5,...r})=>{const i=a((e=>{if(!t)return;const r=St(It(Tt(Ze(e))));const a=Rt(r,Ye(Number(r),l,n));t(String(a))}),[t]),s=a((e=>{var l;t&&t((l=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(Ze(l))).replace(",",".")))}),[t]);return h(Bt,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...r,children:h("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),Rt=(e,t)=>Number(e)===t?e:String(t),Vt=p((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:r="1500",button:a,...i})=>{const[s,o]=n(""),c=!Number(Ze(s)),d=c?ue({version:a?.version}):pe({className:"text-white",version:a?.version}),m=re();return u(y,{className:`p-[50px] flex flex-col items-center font-sans bg-white ${e}`,...i,children:[t?h(k,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,u("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[h(jt,{name:"amount",value:s,onChange:o,valid:""===s||!c,placeholder:r,label:l}),a?.text?h("button",{type:"submit",className:`w-full p-4 mt-6 ${d} `,disabled:c,...m(a),children:a.text}):null]})]})})),_t=({itemsCount:e,visibleItemCount:t=e,isCyclic:l})=>{const[r,i]=n(0),s=a((()=>i((t=>l?(t+1)%e:Math.min(t+1,e-1)))),[l,e]),o=a((()=>i((t=>l?(e+t-1)%e:Math.max(t-1,0)))),[l,e]),c=e>t,d=l&&c;return[r,{inc:s,dec:o,canInc:d||c&&e-r>t,canDec:d||Boolean(c&&r>0)}]},Mt=p((({children:e,activeItem:t,cardFullViewCount:l,cardWidth:n})=>{const r=1===l?`translateX(-${t}00%)`:`translateX(-${t*Number(n)}px)`;return h("div",{className:"w-auto flex flex-1 duration-1000",style:{transform:`${r}`},role:"list",children:e})})),Dt=p((({cardFullViewCount:e=1,children:t,cardWidth:l="1007",className:n="",isBlur:r=!0,isCyclic:a=!1,block:i,...s})=>{const o=r?"absolute top-0 bottom-0 w-[84px]":"",{blocks:c}=i||{},d=void 0!==c?c.length:0,m=d>e,[p,x]=_t({itemsCount:d,visibleItemCount:e,isCyclic:a}),{inc:b,dec:g,canDec:f,canInc:v}=x;return u(y,{className:`box-border h-full relative font-sans flex flex-col justify-center overflow-hidden ${n}`,...s,children:[h(Mt,{activeItem:p,cardFullViewCount:e,cardWidth:l,children:t}),m?h("div",{children:Ae({handler:[g,b],isShown:[f,v],btnClass:["left-8","right-8"],className:"top-1/2 z-10"})}):null,m?u("div",{children:[h("div",{className:`${o} left-0 bg-opacity-from-white`}),h("div",{className:`${o} right-0 bg-opacity-to-white`})]}):null]})}));Dt.childrenTypes=["CarouselCard","CarouselTariffsCard"];const Lt="absolute border border-solid border-main-stroke w-[100%] h-[100%]",At={normal:"min-w-[100%] justify-center items-center my-7 col-span-12",mini:"justify-center items-center mx-4 my-9 col-span-4"},Ot={normal:"w-[1007px]",mini:"w-[350px]"},Ft=p((({button:e,className:t="",description:l,title:n,version:r="normal"})=>h("section",{className:`flex ${At[r]}`,children:u("div",{className:`relative ${Ot[r]}`,children:[u("div",{className:`relative bg-white py-6 px-10 z-10\n border border-solid border-green-light ${t}`,children:[h($e,{className:"!p-0",title:n,description:l,headlineVersion:"M",align:"center"}),e?ve({button:e,buttonClassName:"mt-6 w-[158px]"}):null]}),h("div",{className:`top-9 right-12 bg-green-dark ${Lt}`}),h("div",{className:`top-6 right-8 bg-green ${Lt}`}),h("div",{className:`top-3 right-4 bg-green-light ${Lt}`})]})}))),Et=p((({className:e="",title:t,icon:l,isHighlighting:n,button:r,rows:a=[],...i})=>{const s=Ut(Boolean(n)),o=a.map(Pt),[c,d]=[o.slice(0,1),o.slice(1)];return u(y,{className:`font-sans bg-white p-[50px] p-8 border border-main-stroke relative w-[322px] min-w-[322px] -ml-[1px] ${s} ${e}`,...i,children:[n?Xt():null,l?.src?h(O,{className:"flex justify-center",image:l}):null,t?h(k,{className:"text-primary-text text-center pt-2",headingType:"h5",title:t}):null,r?h(xe,{className:"w-full mt-4",...r}):null,a?.length?h(S,{renderFoldableSection:({isUnfolded:e})=>u("div",{children:[c,h(I,{isUnfolded:e,children:d})]}),renderFoldButton:a.length>1?zt:null}):null]})})),Ut=e=>e?"mt-9 pt-[71px]":"mt-[70px] pt-9",zt=({isUnfolded:e,onToggle:t})=>u("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[h("div",{children:e?"Скрыть":"Подробнее о тарифе"}),h(B,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16",asSVG:!0})]}),Pt=e=>u("div",{className:"py-5 border-b border-main-divider flex flex-col gap-1",children:[e?.title?h("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,e?.description?h("div",{className:"text-primary-text text-h6",children:e.description}):null]}),Xt=()=>u("div",{className:"h-[60px] w-[60px] bg-white flex flex-col items-center justify-center shadow-[0_4px_25px_rgba(0,0,0,0.07)] absolute -top-7 -right-4",children:[h(B,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22",asSVG:!0}),h("div",{className:"text-center",children:"Хит"})]}),Gt={black:"bg-black",white:"bg-white"},Ht=p((({className:e="",title:t,description:l,image:n,price:r,button:a,colors:i})=>u("section",{className:`border border-solid box-border border-main-stroke p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[n?.src?h(O,{className:"mb-5 flex justify-center",image:n}):null,t?h(k,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?h("div",{className:"text-m-light text-left mb-4",children:l}):null,i?.length?u("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[h("div",{className:"mr-1.5",children:"Доступные цвета: "}),i.map(Wt)]}):null,r?u("div",{className:"text-h3 text-left",children:[r," ₽"]}):null,a?ve({button:a,buttonClassName:"mt-5 w-full"}):null]}))),Wt=(e,t)=>h("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${Gt[e]}`},String(t)),Jt="absolute top-0 bottom-0 w-[84px]",Yt=p((({cards:e=[],className:t="",title:l,description:r,...i})=>{const[s,o]=n(0),c=a((()=>o((e=>e+1))),[]),d=a((()=>o((e=>e-1))),[]),m=e.length>3,p=m&&e.length-s>3,x=m&&s>0;return u(y,{className:`bg-white relative font-sans p-[50px] overflow-hidden text-center ${t}`,...i,children:[h($e,{className:"!p-0",title:l,description:r,headlineVersion:"M",align:"center",...i}),h("div",{className:"flex duration-1000 gap-3.5 mt-8",style:{transform:`translateX(-${430*s}px)`},role:"list",children:e?.length?e.map(((e,t)=>h(Ht,{...e},String(t)))):null}),Ae({handler:[d,c],isShown:[x,p],btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"}),h("div",{className:`${Jt} left-0 bg-opacity-from-white`}),h("div",{className:`${Jt} right-0 bg-opacity-to-white`})]})})),Zt="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Kt="border-main-stroke border-solid border",qt="border-main-divider border border-t-0 border-x-0",Qt="w-[200px] mr-6",el=p((({icon:e,image:t,title:l,link:n})=>u("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${Kt} ${Zt}`,role:"columnheader",children:[e&&!t?.src&&h(O,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:P(e),width:"63",height:"63",asSVG:!0}),t?.src&&h(O,{className:"mb-[18px]",image:t}),l?h(k,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&h("div",{className:"mt-auto w-full",children:h(xe,{href:n.href,target:n.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:h("div",{className:"text-xs-light font-medium py-[11px]",children:n.text})})})]}))),tl={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},ll=p((({children:e,activeCardIndex:t,columnWidth:l,version:n="comparison"})=>h("div",{className:"flex flex-1 overflow-hidden",children:h("div",{className:tl[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),nl=p((({children:e})=>h("div",{className:"self-start flex flex-col",role:"row",children:h("div",{className:"flex",children:e})}))),rl=p((({colHeaders:e,activeCardIndex:t})=>u(nl,{children:[h("div",{className:Qt,role:"columnheader"}),h(ll,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>h(el,{...e},String(t))))})]}))),al=p((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>h("div",{className:`w-80 box-border flex flex-col ${Kt} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?Zt:""}`,role:"cell",children:h("div",{className:`mx-7 h-full ${qt} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>ol(e,t,n)))})}))),il=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),sl=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),ol=({label:e,description:t},l,n)=>u("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?h("h4",{className:il(n),children:e}):null,t?h("div",{className:sl(n),children:t}):null]},String(l)),cl=(e=!1)=>`text-s py-7 ${qt} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,dl=p((({row:{header:e,data:t},activeCardIndex:l,isColoredFirstColumn:n,isFirstRow:r,isLastRow:a})=>u(nl,{children:[e?.title?h("div",{className:cl(a),children:e.title}):null,t?.length?h(ll,{activeCardIndex:l,columnWidth:336,children:t.map(((e,t)=>h(al,{cell:e,isFirstRow:r,isLastRow:a,isFillGradient:n&&0===t},String(t))))}):null]}))),ml=p((({rowData:e,isColoredFirstColumn:t,activeCardIndex:l,controls:n,isScrollAvailable:r})=>{const{inc:a,dec:i,canDec:s,canInc:o}=n;return u("div",{className:"relative",children:[e.map(((e,n,{length:r})=>h(dl,{row:e,isFirstRow:0===n,isLastRow:n+1===r,activeCardIndex:l,isColoredFirstColumn:t},String(n)))),r?h("div",{children:Ae({handler:[a,i],isShown:[s,o],btnClass:["top-[108px]","top-11"],className:"right-7",isDisabled:!0})}):null]})})),hl=p((({columns:e,rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:r})=>{const a=e?.map((({header:e})=>e||{})),i=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:i.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),o=i.length>2,[c,d]=_t({itemsCount:i.length,visibleItemCount:2});return u("div",{children:[u("div",{role:"table",children:[a?.length?h(rl,{colHeaders:a,activeCardIndex:c}):null,s?.length?h(ml,{rowData:s,isColoredFirstColumn:r,activeCardIndex:c,controls:d,isScrollAvailable:o}):null]}),o?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),ul=p((({className:e="",title:t,rowHeaders:l,columns:r,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!i),m=a((()=>d((e=>!e))),[]);return u(y,{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e}`,...o,children:[h(k,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),h(hl,{columns:r,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?pl({isShowAllRow:c,onClick:m}):null]})})),pl=({isShowAllRow:e,onClick:t})=>h("div",{className:"pr-[50px]",children:u("div",{className:"flex w-full",children:[h("div",{className:Qt}),h("button",{onClick:t,className:"mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:h("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),xl={primary:"bg-white",secondary:"bg-primary-main text-white"},bl=p((({className:e="",contacts:t,info:l,version:n="secondary",...r})=>u(y,{className:`${xl[n]} flex p-12 ${e}`,...r,children:[l?gl(l):null,t?fl(t):null]}))),gl=e=>h("div",{className:"flex grow basis-0 pr-11",children:e.map((({title:e,description:t,button:l},n)=>u("div",{className:"grow basis-0 pr-11 last:pr-0",children:[h(k,{as:"h5",headingType:"h5",title:e,className:"pb-2.5"}),h(ye,{className:"text-l-light pb-6",description:t}),l?h(xe,{...l}):null]},String(n))))}),fl=e=>h("div",{className:"flex grow basis-0",children:e.map(((e,t)=>vl({contactsColumn:e,index:t})))}),vl=({contactsColumn:e,index:t})=>e?h("div",{className:"flex flex-col grow basis-0 pr-11",children:e.map((({title:e,description:t,additionalDescription:l},n)=>u("div",{className:"pr-11 last:pr-0 last:mt-5",children:[h(k,{as:"h5",headingType:"h5",title:e}),h(ye,{className:"text-l-light mt-2.5",description:t}),l?h(ye,{className:"text-m-light mt-1.5 opacity-80",description:l}):null]},String(n))))},String(t)):null,Nl=e=>"Image"===e?.errorContentType&&e?.image?h(O,{image:e.image}):"Code"===e?.errorContentType&&e.code?h("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,yl=p((({className:e="",title:t,subtitle:l,error:n,button:r})=>u("section",{className:`flex flex-col justify-center items-center mt-12 ${e}`,children:[h("div",{className:"flex justify-center py-20",children:Nl(n)}),t?h(k,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?h("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,r?.text?h(xe,{className:"py-4 px-9",version:r?.version,...r,children:r.text}):null]}))),wl=p((({className:e="",title:t="",buttons:l,image:n,children:r})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:r}),l?h("div",{className:"mt-auto pt-8",children:l}):null]}),n]})]})));var kl;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(kl||(kl={}));const Cl=new Intl.NumberFormat("ru",{style:"currency",currency:kl.RUB}),$l=e=>e?Cl.format(e):"",Sl="text-left text-m-light text-secondary-text",Il={USD:"DollarIcon",EUR:"EuroIcon"},Tl=p((({className:e,exchangeCurrencyItems:t})=>u("table",{className:`h-fit w-fit ${e}`,children:[h("thead",{children:u("tr",{children:[h("th",{className:Sl,children:"Валюта"}),h("th",{className:`${Sl} pl-11`,children:"Купить"}),h("th",{className:`${Sl} pl-11`,children:"Продать"})]})}),h("tbody",{children:t.map((e=>Bl(e)))})]}))),Bl=e=>{const t=e?.currency?.currency;return u("tr",{className:"pb-1 text-h6",children:[h("td",{className:"pt-4",children:u("div",{className:"flex items-center",children:[t?h(O,{image:{icon:Il[t]},width:"24",height:"24"}):null,h("span",{className:"ml-2",children:t})]})}),h("td",{className:"pt-4 pl-11",children:$l(e?.saleExchangeRate)}),h("td",{className:"pt-4 pl-11",children:$l(e?.buyExchangeRate)})]},t)},jl=p((({className:e="",address:t})=>u("div",{className:`flex ${e}`,children:[h(O,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),u("div",{className:"ml-3",children:[t?h("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,h("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),Rl=(e,t,l)=>{const n=Number(Vl(e))*Math.pow(t,l?-1:1);return Number.isInteger(n)?n:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(n)},Vl=e=>e.replace(/[^\d.,]/g,"").replace(",","."),_l=e=>{return(t=[[e=>e.value!==kl.RUB&&e.oppositeValue!==kl.RUB,()=>e.handleConvert(e.value,kl.RUB)],[e=>e.value===kl.RUB&&e.oppositeValue===kl.RUB,()=>e.handleConvert(e.value,kl.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function Ml(e){const t=s(null);return r((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const Dl=p((({className:e="",isBorder:t=!0,label:l,options:i=[],value:s,onChange:o,placeholder:c=""})=>{const[d,m]=n(i[0]||{key:"",text:""}),[p,x]=n(!1),b=Ml(a((()=>x(!1)),[]));return r((()=>{m(s||{key:"",text:""})}),[s]),u("div",{className:`${e}`,ref:b,children:[l?h("span",{className:"mb-2 flex text-primary-text",children:l}):null,u("div",{className:"relative "+(p?"z-20":"z-10"),children:[u("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${Ol(t)}`,onClick:()=>x(!p),children:[h("p",{className:"p-4 pr-8 h-[56px] overflow-hidden text-ellipsis whitespace-nowrap",children:d?.text||c}),h(B,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(p?"":"rotate-180")})]}),i?.length?h("div",{className:`h-0 ${Ll(p)}`,children:h("div",{className:"bg-white text-l max-h-[256px] overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:i.map(Al((e=>{m(e),x(!1),o(e)}),p,(e=>Boolean(e.key===d.key))))})}):null]})]})})),Ll=e=>e?"":"overflow-hidden",Al=(e,t,l)=>(n,r)=>u("div",{onClick:()=>{e(n)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[h("span",{className:"min-h-6",children:n.text}),h(B,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",l(n)&&t?"":"hidden"].join(" ")})]},String(r)),Ol=e=>e?"border border-main-stroke rounded-md hover:border-primary-hover":"";function Fl(e){const{placeholder:t,rates:l,selected:n,value:r,setValue:a,setSelected:i}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};return u("div",{className:"relative flex",children:[h(Bt,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:r,onChange:a}),s.length?h(Dl,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const El=p((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:r})=>{const[a,i]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||kl.RUB,selectBuy:l?.[0]?.currency?.currency||kl.USD}),s=e=>{i((t=>({...t,...e})))};return u("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[Fl({placeholder:"Хочу продать",rates:l,selected:a.selectSell,setSelected:Ul(a,s,l),value:a.inputSell,setValue:e=>Pl(s,l)(e,a.selectSell,a.selectBuy)}),Fl({placeholder:"Получу",rates:t,selected:a.selectBuy,setSelected:zl(a,s,t),value:a.inputBuy,setValue:e=>Xl(s,t)(e,a.selectBuy,a.selectSell)}),r?.text?h(xe,{className:"py-4 mr-1",version:r?.version,...r,children:r.text}):null]})})),Ul=(e,t,l)=>n=>{t({selectSell:n}),_l({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,r=e.selectBuy)=>{Pl(t,l)(e.inputSell,n,r)}})},zl=(e,t,l)=>n=>{t({selectBuy:n}),_l({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,r=e.selectSell)=>Xl(t,l)(e.inputBuy,n,r)})},Pl=(e,t)=>(l,n,r)=>{e({inputSell:Vl(l),selectBuy:r});const a=t.find((e=>e.currency?.currency===r))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;a&&e({inputBuy:String(Rl(l,a,n===kl.RUB)||"")})},Xl=(e,t)=>(l,n,r)=>{e({inputBuy:Vl(l),selectSell:r});const a=t.find((e=>e.currency?.currency===r))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;a&&e({inputSell:String(Rl(l,a,n===kl.RUB)||"")})};const Gl=async e=>{const t=await Hl(),l=t?.code||"000";return{region:t,exchangeRates:await Wl(e,l)}},Hl=async()=>{try{return await at("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},Wl=async(e,t)=>{try{return await at(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},Jl=p((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:r}=function(){const{data:e}=lt("/api/v1/exchangerates",Gl);return e||{}}(),a=Yl(r?.exchangeRate?.currencies),i=a.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:kl.RUB}});const s=a.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:kl.RUB}}),h(y,{className:`bg-white text-primary-text font-sans p-9 box-border min-h-[320px] ${e}`,...n,children:h(wl,{title:h(k,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:u("div",{className:"flex",children:[u("div",{className:"mr-14 pt-4",children:[a?h(Tl,{className:"mb-[30px]",exchangeCurrencyItems:a}):null,h(jl,{address:r?.address})]}),a.length&&i.length&&s.length?h(El,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),Yl=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[];function Zl(e,t={}){const{data:l}=lt(`/wcms-resources/${e}.json`,at,{fallback:t});return l||{}}const Kl={"bg-white":"color",transparent:"white"},ql={"bg-white":"text-primary-main",transparent:"text-white"},Ql={"bg-white":"text-primary-text",transparent:"text-white"},en=p((({className:e="",href:t,logo:l,children:n=l?.title,targetBlank:r,bgColor:a="bg-white",showTitle:i=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:r?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[h(O,l?.image?.src?{image:l.image,className:ql[a],width:"40",height:"45",asSVG:!0}:{image:{icon:l?.image?.icon||"LogoIcon",iconVersion:Kl[a]},className:`${ql[a]} w-10`,width:"40",height:"45",asSVG:!0}),i?tn(n,a,l?.title):null]}))),tn=(e,t,l)=>h("span",{className:`${Ql[t]} font-medium ml-2.5`,children:e||l||"Россельхозбанк"}),ln=p((({className:e,isMobile:t=!1})=>{const{term:l,setTerm:r}=(()=>{const[e,t]=n("");return{term:e,setTerm:e=>t(e)}})(),a=t?"text-s":"text-l-light",i=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(O,{image:"LoupeIcon",width:"24",height:"24"})}),l?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${a}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${i}`,value:l,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),r("")},children:h(O,{image:"CloseIcon",width:"24",height:"24"})}):h(xe,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),nn=p((e=>h(ln,{...e}))),rn=p((({className:e="",items:t,hasButton:l})=>u("div",{className:e,children:[t?.length?t.map(an):null,l?h(xe,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),an=(e,t)=>{const{type:l,text:n,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:sn(l,n)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},sn=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${on(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},on=e=>e.replaceAll(/\D/g,""),cn=p((({className:e="",index:t,text:l,...n})=>{const r=re(),{href:a,target:i,onClick:s}=r(n);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:i,onClick:s,children:l||`Документ ${t}`})})),dn=p((({className:e="",links:t})=>h("div",{className:e,children:t?.length?h("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>h(cn,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),mn=e=>t=>e?.href===t?.href,hn=(e,t)=>{return(n=e,r=t,(n||[]).map((e=>r?.find(mn(e))||e))).concat((l=e,(t||[]).filter((e=>!l?.find(mn(e))))));var l,n,r},un=p((({className:e="",items:t,fallback:l})=>{const n=re(),r=Zl(c.SITEMAP||"sitemap",l),a=hn(r.topItems,t);return h("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:a?.map(((e,t)=>pn(n(e),t)))})})),pn=(e,t)=>{const{text:l,items:n,href:r,target:a,onClick:i}=e;return u("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[h("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:r,target:a||"_self",onClick:i,children:l||`Раздел ${t}`}),n?.map(((e,t)=>h(xn,{...e,index:t},String(t))))]},String(t))},xn=p((({text:e,index:t,...l})=>{const n=re(),{href:r,target:a,onClick:i}=n(l);return h("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:r,target:a||"_self",onClick:i,children:e||`Раздел ${t}`})})),bn=[{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"}],gn=p((({version:e="primary",...t})=>{const l=re(),{href:n,onClick:r}=l(t),{icon:a,label:i}=bn.find((({origins:e})=>e.some((e=>n?.includes(e)))))||{};if(!a)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===e?"hover:text-black":""}`,href:n,"aria-label":i,target:"_blank",rel:"noopener noreferrer",onClick:r,children:a?h(O,{image:P(a),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),fn=p((({className:e="",media:t,version:l,children:n})=>u("div",{className:"font-sans",children:[h("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>h(gn,{version:l,...e},String(t))))}),h("span",{className:"text-s-light text-secondary-text",children:n})]}))),vn=p((({className:e="",index:t,...l})=>{const n=re(),{href:r,target:a,text:i,onClick:s}=n(l);return h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:a,onClick:s,children:i||`Документ ${t}`})})),Nn=p((({className:e="",links:t})=>u("div",{className:e,children:[h("div",{className:"pt-5",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>h(vn,{index:t,...e},String(t))))}):null]}))),yn="w-[204px]",wn=p((({className:e,...t})=>{const l=t.page?.fallback,{documents:n,relatedEnterprises:r,contacts:a,socialMedia:i,mobileApps:s,topItems:o}=Zl(c.FOOTER||"footer",l);return u(y,{tag:"footer",className:`p-9 bg-white font-sans ${e||""}`,...t,children:[u("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[h(en,{className:yn}),h(nn,{className:"grow"})]}),u("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[u("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[h(rn,{items:a,hasButton:!0}),h(fn,{media:i,children:"Соцсети"}),h(fn,{className:"mt-6",media:s,children:"Мобильное приложение"})]}),h(un,{className:"pt-[3px]",items:o,fallback:l})]}),h(dn,{className:"mt-[98px]",links:r}),h(Nn,{links:n})]})})),kn={normal:3,mini:4},Cn={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},$n={normal:380,mini:276},Sn={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},In={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},Tn=p((({className:e="",isDotted:t=!0,children:l,version:n="primary",size:r="M"})=>u("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?h("div",{children:h("div",{className:`rounded-full align-middle inline-block ${Sn[n]} ${In[r]}`})}):null,h("span",{children:l})]}))),Bn={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},jn={S:"text-l-light",M:"text-h6",L:"text-h5"},Rn={S:"ml-2",M:"ml-3",L:"ml-4"},Vn=p((e=>{const{className:t="",hasIndent:l,isDotted:n,itemClassName:r="",items:a,listItemSize:i="M",version:s="primary"}=e;return a?.length?h("section",{className:`${Bn[s]} ${jn[i]} ${t} ${l?Rn[i]:""}`,role:"list",children:a.map(((e,t)=>h(Tn,{className:`${r} mb-1.5`,isDotted:n,version:s,size:i,children:e},String(t))))}):null})),_n=p((({title:e,headlineSmallVersion:t="H6",description:l,additionalDescription:n,icon:r,items:a,button:i,version:s,isDotted:o=!0,align:c="center"})=>u("div",{className:`h-full flex flex-col justify-between ${b[c]}`,children:[u("div",{className:"flex flex-col h-full",children:[Mn(r,s),Dn(t,e),Ln(l,e),a?.length?On(a,o,s):null,An(n)]}),i?.text?ve({button:i,buttonClassName:"mt-6"}):null]}))),Mn=(e,t)=>u("div",{className:"flex justify-center",children:[e?.src?h(O,{className:"mb-5",image:e}):null,e?.icon?h(O,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:P(e,t),asSVG:!0}):null]}),Dn=(e,t)=>t?h("div",{className:Ce[e],children:t}):null,Ln=(e,t)=>e?h("div",{className:"text-l "+(t?"mt-2":""),children:e}):null,An=e=>e?h("div",{className:"text-m-light text-secondary-text mt-auto",children:e}):null,On=(e,t,l="primary")=>h(Vn,{className:"max-w-[308px] mt-2 text-s "+("primary"===l?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:l}),Fn=p((({headlineVersion:e="M",cards:t=[],version:l="normal",activeCardIndex:n,...r})=>u("div",{children:[h($e,{...r,className:"!p-0",headlineVersion:e,align:"center"}),h("div",{className:`flex mt-8 ${t?.length<=kn[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${n*$n[l]}px)`},role:"list",children:t?.map(((e,t)=>function({card:e,version:t},l){return h("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${Cn[t]} ${z[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:h(_n,{...e})},String(l))}({card:e,version:l},t)))})]})));const En=p((({cards:e=[],className:t="",version:l="normal",button:r,...a})=>{const[i,s]=n(0),o=e?.length>kn[l],c=o&&e?.length-i>kn[l],d=o&&i>0;return u(y,{className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden flex flex-col ${t}`,...a,children:[h(Fn,{cards:e,version:l,activeCardIndex:i,...a}),Ae({handler:[()=>s(i-1),()=>s(i+1)],isShown:[d,c],btnClass:["left-8","right-8"],className:"top-1/2"}),o?u("div",{children:[h("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),h("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]}):null,r?ve({button:r,buttonClassName:"mt-8 mx-auto"}):null]})})),Un=p((e=>h(En,{...e,version:"normal"}))),zn=p((({className:e="",title:t,description:l,calendar:n,...r})=>u(y,{className:`font-sans bg-white p-[50px] ${e}`,...r,children:[h($e,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M",align:"center",...r}),n?Pn(n):null]}))),Pn=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),l=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return u("div",{className:"w-full flex flex-col justify-center mt-13",children:[h("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>Xn(e,t)))}),h("div",{className:"flex w-full",children:l.map(((e,t)=>u("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[h("div",{className:"flex",children:Gn(e)}),u("div",{className:"text-s-light text-primary-text mt-3",children:[h("span",{children:e.text})," ",h("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Xn=(e,t)=>e.month?.map(((e,l)=>h("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),Gn=e=>e.month?.map((e=>e.image?.src?h("div",{className:"h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:h(O,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Hn=(e,t,l=((e,t)=>t.startsWith(e)))=>l(Q(e),Q(q(e)?t.href:t.pathname)),Wn=e=>t=>Hn(t.href,e),Jn=e=>t=>t.items?.some(Wn(e))||Hn(t.href,e)||((e,t)=>ee(e)===ee(t.href))(t.href,e),Yn="font-sans text-s-light",Zn=p((({className:e="",active:t,flat:l,ariaLabel:n,bgColor:r="bg-white",children:a,...i})=>{const s=re(),{href:o,target:c,text:d,onClick:m}=s(i);return h("a",{className:`${Kn(r,t,l)} ${e}`,href:o,target:c,onClick:m,rel:"noopener noreferrer","aria-label":n,children:h("span",{className:qn(r,t,l),children:d||a})})})),Kn=(e,t=!1,l=!1)=>{let n="border-transparent";return t&&(n="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${n} inline-block border border-solid bg-transparent text-center no-underline ${l?"":"px-4 py-2"}`},qn=(e,t=!1,l=!1)=>{if("transparent"===e)return`text-white hover:text-primary-hover ${Yn}`;return`${t?"text-primary-main":(l?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${Yn}`},Qn=o("https://10.80.4.9");const er=p((({className:e="",children:t,ariaLabel:l})=>h("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":l,children:t}))),tr={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},lr={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},nr={"bg-white":"black",transparent:"white"},rr=p((({className:e,defaultLocation:t="Москва",bgColor:l="bg-white"})=>{const[i,s]=function(e){const[t,l]=n(e);return r((()=>{l(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,a((()=>{Qn.getFetcherAddress().then((t=>{const n=t||e;globalThis?.localStorage.setItem("location",n),l(n)}))}),[e])]}(t);return u("div",{className:`flex items-center ${e||""}`,children:[h(Zn,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:l}),h(Zn,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:l}),h(er,{className:`mr-5 group ${tr[l]}`,ariaLabel:"Поиск по сайту",children:h(O,{image:{icon:"LoupeIcon",iconVersion:nr[l]},className:"h-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0 pointer-events-none",asSVG:!0})}),h(er,{className:`${lr[l]} group min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:h(O,{image:{icon:"GridIcon",iconVersion:nr[l]},className:"h-full bg-main-divider/20 rounded-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0",asSVG:!0})})]})})),ar={"bg-white":"bg-primary-text",transparent:"bg-white"},ir=p((({className:e,items:t,activeItem:l,bgColor:r})=>{const i=re(),[s,o]=n(!1),c=a((()=>o((e=>!e))),[]),d=Ml(a((()=>o(!1)),[]));return u("div",{className:`${s?"bg-white rounded-md shadow-blue-gray/24":""} ${e||""}`,ref:d,children:[h("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6","aria-label":""+(s?"Скрыть другие разделы":"Показать другие разделы"),onClick:c,children:Array(3).fill(r).map(sr)}),h("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(s?"":"hidden"),"aria-hidden":!s,children:t?.map(((e,t)=>h("a",{className:"text-l-light pb-4 hover:text-primary-main "+(e===l?"text-primary-main":""),...i(e),children:e.text},e.href||String(t))))})]})})),sr=(e,t)=>h("div",{className:`w-[3px] h-[3px] rounded mr-1 ${ar[e]}`},String(t)),or="absolute left-0 -bottom-3 w-full h-[2px]",cr=p((({className:e="",active:t,bgColor:l="bg-white",dataItemName:n,children:r,...a})=>{const i=re(),{href:s,target:o,text:c,onClick:d}=i(a);return u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:s,target:o,"data-item-name":n,onClick:d,children:[h("span",{className:dr(l,t),children:c||r}),t?h("div",{className:mr(l,t)}):null]})})),dr=(e,t=!1)=>{let l="text-white";return"bg-white"===e&&(l=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${l} font-sans text-l-light`},mr=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${or}`:or,hr=p((({className:e,active:t,bgColor:l,observerOptions:n,onVisibilityChange:r,children:i,...s})=>{const o=f(a((e=>{if(!e.length||!r)return;const t=e[e.length-1];r(t.isIntersecting)}),[r]),n);return h("span",{ref:o,children:h(cr,{className:e,active:t,bgColor:l,...s,children:i})})})),ur=p((({subItems:e=[],bgColor:t})=>{const l=(e=>(t=[])=>{const l=t?.filter(Wn(e));return l?.length?(n=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>n(e)>n(t)?e:t)))(l):void 0;var n})(ne())(e),[r,a]=n(e.length),o=e.slice(r),c=s(null),d=i((()=>({threshold:1,root:c.current})),[c.current]),m=i((()=>e.map(((e,t)=>e=>{a(e?pr(t):xr(t))}))),[e]);return u("nav",{className:"relative mt-6",children:[h("div",{ref:c,className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:e.map(((e,n)=>h(hr,{className:"mr-8 "+(r-1<n?"invisible":""),active:e===l,bgColor:t,observerOptions:d,onVisibilityChange:m[n],...e},String(n))))}),o.length?h(ir,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:o,activeItem:l,bgColor:t}):null]})})),pr=e=>t=>Math.max(t,e+1),xr=e=>t=>Math.min(t,e),br={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},gr=p((({bgColor:e="bg-white",className:t="",showSubMenu:l=!0,...n})=>{const r=ne(),{topItems:a,logo:i,defaultLocation:s}=Zl(c.SITEMAP||"sitemap",n.page?.fallback),o=l?fr(a,r):null,d=a?.map(((t,l)=>h(Zn,{active:t===o,"aria-label":t.text,bgColor:e,...t},String(l))));return h(y,{tag:"header",className:`pt-6 px-20 ${e} ${t} ${l&&o?.items?.length?"pb-4":"pb-5"}`,...n,children:u("div",{className:"container",children:[u("div",{className:"flex items-center",children:[h(en,{className:"mr-8",bgColor:e,logo:i}),d,h(rr,{className:"ml-auto",defaultLocation:s,bgColor:e})]}),h("div",{className:`mt-6 h-[1px] ${br[e]}`}),l&&o?.items?.length?h(ur,{subItems:o.items,bgColor:e}):null]})})})),fr=(e,t)=>{const[l]=e||[];return e?.find(Jn(t))||l},vr=p((({className:e="",cards:t=[],button:l})=>{const[r,a]=n(0),[i,s]=n(0),o=t?.length??0,c=t?.length>2&&o>i+2,d=o===i+2,m=i>0,p=t[r]?.href;return u("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[u("div",{className:"relative overflow-hidden",children:[o?Nr({tabsShift:i,cards:t,activeSlideIndex:r,isLastShift:d,setActiveSlideIndex:a}):null,Ae({handler:[()=>s(i-1),()=>s(i+1)],isShown:[m,c],btnClass:["left-[50px]","right-[50px]"],className:"top-[62px]"}),m?h("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,c?h("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),h(xe,{className:"w-[240px] text-center",version:"primary",...l,href:p})]})}));function Nr({tabsShift:e,cards:t,activeSlideIndex:l,isLastShift:n,setActiveSlideIndex:r}){const a=n?460*e-240:460*e,i=t.length>2?"justify-start":"justify-center";return h("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-[50px]",children:h("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${i}`,children:t.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:l,onClick:n}){const r=t===l;return u("button",{type:"button",onClick:n,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(r?"shadow-dark-blue/42 border-primary-main":"ease-in duration-300 border-main-stroke"),children:[e?.icon?h(O,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,u("div",{className:"flex gap-3.5",children:[e?.sum?yr("страховая сумма",e.sum):null,e?.fee?yr("страховой взнос",e.fee):null]}),wr(r)]},String(t))}({slide:e,i:t,activeSlideIndex:l,onClick:()=>r(t)})))})})}function yr(e,t){return u("div",{className:"flex flex-col text-left whitespace-pre",children:[u("span",{className:"text-h6",children:[Oe(t)," ₽"]}),h("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function wr(e){return e?h(O,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:"DoneIcon",width:"24",height:"24"}):null}const kr=p((({className:e="",title:t,insuranceTabs:l=[],button:r,...a})=>{const[i,s]=n(0);return u(y,{className:`box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${e}`,...a,children:[t?h(k,{className:"text-center mb-8",title:t,headingType:"h3"}):null,l?.length>1?h("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,activeSlideIndex:l,onClick:n}){return h("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(t===l?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,activeSlideIndex:i,onClick:()=>s(t)})))}):null,h("div",{className:"flex",style:{transform:`translateX(-${i}00%)`},role:"list",children:Cr({insuranceTabs:l,button:r})})]})})),Cr=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>h(vr,{button:t,cards:e},String(l)))):null};const $r={primary:"border-main-stroke",secondary:"border-white/50"},Sr={double:"flex gap-y-2 gap-x-10 flex-wrap",single:"flex gap-y-2 flex-col"},Ir=p((({className:e="",columnsMode:t="double",description:l,additionalDescription:n,image:r,cardList:a,title:i,version:s="primary"})=>{const o=i?h(k,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=r?.src?h(O,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return h("section",{className:`relative overflow-hidden text-left border border-solid box-border\n p-9 min-w-[697px] min-h-[319px]\n ${$r[s]}\n ${e}`,role:"listitem",children:h(wl,{className:"flex justify-between",title:o,image:c,children:u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex itens-center justify-between mb-4",children:[l?h(ye,{className:"text-h6",description:l}):null,n?u("div",{className:"text-m-light text-secondary-text",children:[" ",n," "]}):null]}),a?.length?h("div",{className:`${Sr[t]}`,role:"list",children:Tr(a,t)}):null]})})})})),Tr=(e,t)=>e.map(((e,l)=>{return u("div",{className:"double"===t?"basis-[calc(50%-20px)]":"",role:"listitem",children:[e?.parameter?h("span",{className:"pr-2.5 "+(n=t,"single"===n?"text-h6":"text-l"),children:e.parameter}):null,e?.parameterDesccription?h("span",{className:"text-m-light text-secondary-text",children:e.parameterDesccription}):null]},String(l));var n})),Br="absolute top-0 bottom-0 w-[84px]",jr=p((({cards:e=[],className:t="",title:l,version:r="primary",...a})=>{const[i,s]=n(0);return u(y,{className:`relative font-sans p-9 overflow-hidden text-center ${z[r]} ${t}`,...a,children:[l?h(k,{headingType:"h3",className:"mb-9",title:l}):null,u("div",{children:[h("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*i}px)`},role:"list",children:e?.length?e.map(Rr(t,r)):null}),Vr({cardsCount:e.length,activeCardIndex:i,setActiveCardIndex:s})]}),h("div",{className:`${Br} left-0 ${"secondary"===r?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${Br} right-0 ${"secondary"===r?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),Rr=(e,t)=>(l,n)=>h(Ir,{className:e,version:t,...l},String(n)),Vr=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:l})=>{const n=e>1;return h("div",{children:Ae({handler:[()=>l(t-1),()=>l(t+1)],isShown:[n&&t>0,n&&e-t>1],btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})})};function _r(e){return t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:n},l):[l]),[])}const Mr={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},Dr={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},Lr=p((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:r,investmentColumns:a,...i}=e,s=a?[...a]:[];return r&&s.unshift(r),h(y,{className:`font-sans bg-white px-9 py-12 ${t}`,...i,children:u("div",{className:"container text-m-light",children:[s?.length?u("div",{children:[u("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[_r(h("div",{className:"w-px h-4 bg-main-stroke"}))(s.map(Ar)),h("div",{className:"absolute right-[30px] w-px h-4 bg-main-stroke"})]}),h("div",{className:"border-t border-main-stroke -mt-2 ml-9 mr-8"}),h("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(Er)})]}):null,l?.length?h(Vn,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:n}):null]})})})),Ar=(e,t,l)=>{const n=1===t,r=t===l.length-1;return h("div",{className:`${Or(n,r,e.cells)}`,children:e.cells?.length?h("div",{className:"w-full "+(r?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(Fr)}):null},`column_${t}`)},Or=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-2.5",l.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),Fr=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?h("div",{className:`flex-1 flex items-center justify-center relative py-2 ${Dr[l]} ${Mr[n]} ${"XS"===l?"px-3":"px-11"}`,children:h("div",{className:"text-center",children:e.text})},`cell_${t}`):null},Er=(e,t,l)=>{const n=0===t,r=t===l.length-1;return h("div",{className:`flex-1 max-w-[180px] text-center px-2 ${n?"pl-9":""} ${r?"mr-3.5":" "}`,children:e.title},`title_${t}`)},Ur=p((({className:e,iconClassName:t,textClassName:l,suffixClassName:n,doc:r,icon:a})=>{const{text:i,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[a?h(O,{className:t,image:P(a),width:"24px",height:"24px",asSVG:!0}):null,i?u("span",{className:l,children:[i,h("span",{className:n,children:o?.href&&zr(Pr(o.href),s)})]}):null]})})),zr=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Pr=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Xr=p((({className:e="",doc:t,icon:l})=>h(Ur,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:l}))),Gr=p((({className:e,documents:t,columnsMode:l="double",icon:n})=>t?.length?h("div",{className:e,role:"list",children:t.map(((e,t)=>h("div",{className:"double"===l?"basis-[calc(50%-20px)]":"",role:"listitem",children:h(Xr,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:n})},String(t))))}):null)),Hr={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},Wr=p((({className:e="",title:t,description:l,align:n="center",documents:r,icon:a={icon:"DocIcon"},columnsMode:i="double",...s})=>u(y,{className:`font-sans text-primary-text p-[50px] bg-white ${e}`,...s,children:[h($e,{className:"!p-0",title:t,description:l,align:n,headlineVersion:"M",as:"h2",...s}),h(Gr,{className:`mt-8 ${Hr[i]}`,columnsMode:i,documents:r,icon:a})]}))),Jr=p((e=>h(En,{...e,version:"mini"}))),Yr=e=>{const t="col-span-",l=e.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function Zr(e=""){const t=Yr(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Kr=p((({className:e="",title:t="Мобильное приложение",qr:l,buttons:n,version:r="primary",items:a,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="primary"===r?"text-primary-text":"",p="secondary"===r?"p-3.5 min-w-[120px]":"min-w-[92px]",x=n?.map((e=>({...e,className:"min-w-[168px]"})));return u(y,{className:`flex justify-between font-sans p-9 box-border relative min-h-[320px]\n ${Zr(e)}\n ${z[r]}\n ${e}`,...d,children:[u(wl,{className:"z-10",title:t?h(k,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-6 w-full\n ${m} ${b[o]}`}):null,buttons:n?.length?h(fe,{buttons:x,className:"flex gap-4",...d}):null,children:[Qr(c),u("div",{className:"flex flex-1 items-center",children:[l?.src?h("div",{className:`flex justify-center mr-5 bg-white rounded-md ${p}`,children:h(O,{className:"w-fit",image:l})}):null,qr(r,a)]})]}),i?.src?h("div",{className:"absolute right-0 bottom-0",children:h(O,{image:i})}):null]})})),qr=(e,t)=>t?.length?h(Vn,{items:t,itemClassName:"text-l-light mb-2 last:mb-0",version:e}):h("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Qr=e=>e?h("p",{className:"text-xl-light mb-5",children:e}):null;function ea(e,t,l){t.geoObjects.removeAll();const n=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),r=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),a=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));r.add(a),t.geoObjects.add(r),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const ta={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"flex items-center justify-center",font:"text-center font-sans"},la=e=>h("a",{className:`select-none cursor-pointer px-9 h-12 bg-white bg-primary-main text-white ${Object.values(ta).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),na={border:"border border-transparent rounded-md",position:"relative flex items-center",font:"text-center font-sans",shadow:"shadow-[0_4px_25px_rgba(0,0,0,0.07)]"},ra=(e,t,l)=>u("div",{className:`${Object.values(na).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[h(B,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",asSVG:!0,className:"absolute left-4"}),h("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const n=t.target?.value?t.target?.value.toLowerCase():"";if(n){const t=e.filter((e=>e.text.toLowerCase().indexOf(n)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),aa={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center",font:"text-center font-sans"},ia=(e,t,l)=>h("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(aa).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:h(B,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),sa=e=>globalThis[e];const oa=()=>function(e,t){const[l,i]=n(),s=a((()=>i(sa(e))),[e]);return r((()=>{const l=document.getElementById(t);if(!l){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!sa(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY}&lang=ru_RU`),ca={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center",font:"text-center font-sans text-l"},da=p((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return h("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(ca).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:h(B,{name:l,width:"20",height:"16"})})})),ma=[{coords:[55.77,37.46],text:"Трактир"},{coords:[55.66,37.48],text:"Трактор"},{coords:[55.65,37.42],text:"Ресторан"},{coords:[55.64,37.54],text:"Музей"},{coords:[55.54,37.52],text:"Библиотека"},{coords:[55.53,37.56],text:"Школа"},{coords:[55.61,37.61],text:"Аптека"},{coords:[55.8,37.58],text:"Бар"},{coords:[55.71,37.35],text:"Институт"},{coords:[55.74,37.57],text:"Университет"},{coords:[55.58,37.69],text:"Больница"},{coords:[55.57,37.7],text:"Цирк"},{coords:[55.55,37.64],text:"Магазин"},{coords:[55.5,37.75],text:"Булочная"},{coords:[55.81,37.73],text:"Полиция"},{coords:[55.73,37.68],text:"Салон красоты"},{coords:[55.86,37.76],text:"Баня"},{coords:[55.38,37.69],text:"Гараж"},{coords:[55.91,37.5],text:"Дом"},{coords:[55.62,37.32],text:"Прачечная"},{coords:[55.85,37.41],text:"Стадион"},{coords:[55.67,37.24],text:"Вокзал"},{coords:[55.79,37.41],text:"Кафе"}],ha={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-focus focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},ua=p((({points:e,className:t="",zoom:l=5,showSearchField:a=!1})=>{const i=s(null),o=oa(),[c,d]=n(),[m,p]=n(ga(ma)),x=pa(e);if(r((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:x,zoom:l,controls:[],suppressMapOpenBlock:!0}),ea(o,i.current,m)}))}),[o,i,m]),r((()=>{if(i.current&&m&&o){const e=m.length<1?ga(ma):m;ea(o,i.current,e)}}),[i,m,o]),!o)return null;const b=c?"z-[100000]":"z-10";return u("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[h("div",{className:`absolute flex left-2 top-4 w-[50%] ${b}`,children:a?ra(ma,0,(e=>{if(e){const t=ga(e);p(t)}})):la(x)}),h("div",{className:`${Object.values(ha).join(" ")} ${b} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;c?e.exitFullscreen():e.enterFullscreen(),d(e.isFullscreen())},children:h(B,{name:"FullScreenIcon",width:"16",height:"16"})}),u("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${b}`,children:[h(da,{yandexMaps:i}),h(da,{yandexMaps:i,direction:"out"})]}),ia(i.current,o,`right-2 top-80 ${b}`)]})})),pa=e=>[ba(xa(e,0)),ba(xa(e,1))],xa=(e,t)=>e.map((e=>e[t])),ba=e=>e.reduce(((e,t)=>e+t))/e.length,ga=e=>e?e.map((e=>e.coords)):null,fa=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],va=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?u("div",{className:"flex",children:[h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:l||null}),h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-golden border-golden",children:e?n:null})]}):h("div",{className:"flex",children:h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},Na=({icon:e,title:t,distance:l,time:n},r)=>u("div",{className:"flex mr-4",children:[h(B,{name:e,width:"16",height:"16",asSVG:!0,className:"mr-1"}),t?u("span",{className:"text-m",children:[t," "]}):null,u("span",{className:"text-m-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${r}`),ya=({title:e,status:t,workTime:l,lunchHour:n,description:r},a)=>u("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[u("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[h("div",{children:e}),t?null:h("div",{className:"text-m-light text-error",children:"Выходной"}),t&&l?h("div",{children:l}):null]}),t&&n?wa(n):null,r?h("div",{className:"pb-1 text-s-light text-secondary-text",children:r}):null]},`day${a}`),wa=e=>/\d+/gi.test(e)?u("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[h("div",{children:"Перерыв"}),h("div",{children:e})]}):h("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:h("div",{children:e})}),ka={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null};const Ca=e=>e?rt(e,{method:"GET"}):{},$a=p((({className:e=""})=>{const t=function(e){const{data:t}=lt(e?`/api/v1/branches?regionCode=${e}`:void 0,Ca);return console.warn("WARNING!!! Hook useOfficeMap RETURN MOCK object for testing!"),console.log("Hook useOfficeMap get this data:",t),ka}("000"),{name:l,address:n,gpsLatitude:r,gpsLongitude:a,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:p,workingSunday:x}=i,{workTime:b,lunchHour:g,workTimeSaturday:f,lunchHourSaturday:v}=i,N=r&&a?[r,a]:null,y=[{title:"Понедельник",status:s,workTime:b,lunchHour:g},{title:"Вторник",status:o,workTime:b,lunchHour:g},{title:"Среда",status:c,workTime:b,lunchHour:g},{title:"Четверг",status:d,workTime:b,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:b,lunchHour:g},{title:"Суббота",status:p,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),k=w>0?y[w-1]:y[6];return u("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[u("div",{className:"flex flex-col px-12 pt-12",children:[u("div",{className:"flex justify-between",children:[h("div",{className:"text-h2",children:l}),va(k)]}),u("div",{className:"flex text-l-light pt-4",children:[h(B,{name:"GeolocationIcon",width:"24",height:"24",asSVG:!0,className:"pr-1"}),n]}),h("div",{className:"flex pt-4",children:fa.map(Na)})]}),u("div",{className:"flex justify-between pt-8",children:[h("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?h(ua,{points:[N],className:"h-full"}):null}),h("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(ya)})]})]})})),Sa=p((({className:e="",title:t,servicesList:l,...n})=>u(y,{className:`font-sans bg-white p-8 flex flex-col ${e}`,...n,children:[t?h(k,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?h("ul",{className:"list-none m-0 p-0",children:l.map(Ia)}):null]}))),Ia=(e,t)=>u("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?h(O,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:P(e.icon)}):null,e.label?h("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),Ta=p((({className:e="",children:t,...l})=>h(y,{className:`font-sans text-primary-text ${e}`,...l,children:t})));Ta.childrenTypes=["OtherProductsItem"];const Ba=p((({className:e="",label:t,icon:l,dataTheme:n="",onClick:r})=>u("button",{className:["border border-transparent bg-primary-main font-sans text-white cursor-pointer","hover:bg-primary-hover focus:border-primary-text active:bg-primary-active outline-none","flex justify-center w-full px-0 py-5",e].join(" "),"data-theme":n,onClick:r,children:[h("span",{className:"text-h4 pr-3",children:t}),l?h(O,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),ja=({isUnfolded:e,onToggle:t})=>h(Ba,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Ra=["ArrowDownIcon","ArrowUpIcon"],Va=p((({className:e,page:t,ancestors:l,label:n="",isUnfolded:r,children:a})=>{const{colorPalette:i}=function(e,t){const{content:l}=function(e,t){const[l]=(e||[]).map((e=>e)).reverse().find((([e])=>e&&"type"in e&&(!t||t===e.type)))||[];return l||{}}(e);return l||t}(l,{});return h("div",{className:`border-0 border-b border-solid border-main-divider ${e}`,children:h(S,{unfoldedByDefault:r,renderFoldableSection:({isUnfolded:e})=>h("div",{className:"box-border",children:h(I,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:a})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>h(Ba,{label:n,icon:Ra[Number(e)],dataTheme:t?.colorPalette||i,onClick:l})})})}));Va.childrenTypes=[];const _a={primary:"text-primary-text",secondary:"text-white"},Ma={primary:"text-secondary-text",secondary:"text-white"},Da=p((e=>{const{className:t="",icon:l,label:n,description:r,version:a="primary",benefitsVersion:i="normal"}=e,s="white"===i?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[l?h("div",{className:La(a,i),children:h(O,{className:"w-6 h-6",image:P(l,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[n?h("div",{className:`text-h6 ${_a[a]}`,children:n}):null,r?h("div",{className:`text-m-light ${Ma[a]}`,children:r}):null]})]})}));function La(e,t){let l="bg-primary-main text-black";return"secondary"===e?l="bg-white/30 text-black":"normal"===t&&(l="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${l}`}const Aa=p((({className:e="",title:t,description:l,image:n,benefits:r,version:a="primary",sum:i,monthLimit:s,directionRight:o=!1,...c})=>u(y,{className:`relative font-sans py-12 px-24 ${z[a]} ${e}`,...c,children:[h($e,{className:"!p-0",title:t,description:l,headlineVersion:"M",bgColorHeadline:a,align:"center",...c}),u("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[n?.src?h(O,{className:o?"order-2":"",image:n}):null,u("div",{className:"w-[558px] m-auto",children:[r?.length?h("div",{className:"flex flex-col gap-4",children:r.map(Oa(a))}):null,Fa(Number(i),Number(s))]})]})]}))),Oa=e=>(t,l)=>h(Da,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));function Fa(e,t){return e||t?u("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?Ea("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?Ea("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function Ea(e,t=0,l=!1){return u("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${l?"w-fit":"w-full"}`,children:[h("span",{className:"text-secondary-text text-l-light",children:e}),u("span",{className:"text-primary-main text-h6",children:[Oe(t)," ₽"]})]})}function Ua(e=""){const t=Yr(e);return t<=4?"S":t<=8?"M":"L"}function za(e=""){const t=Yr(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Pa=p((({className:e,title:t,description:l="Блок в разработке...",...n})=>u(y,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${za(e)} ${Zr(e)} `,...n,children:[h($e,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:Ua(e),...n}),h("figure",{className:"m-0 min-w-[80%]",children:Xa()})]}))),Xa=(e=3)=>Ha(100,e).map((e=>Math.floor(e))).map(Ga),Ga=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Ha=(e,t)=>[e].concat(t>0?Ha(e/1.618,t-1):[]),Wa=p((({className:e="",children:t,...l})=>{const n=re(),{text:r,href:a,target:i,onClick:s}=n(l);return a?h("a",{className:`no-underline ${e}`,href:a,target:i,onClick:s,children:h("span",{className:e,children:r||t})}):h("span",{className:e,children:r||t})})),Ja=(e="primary",t="normal")=>({icon:l,label:n,description:r},a)=>h(Da,{icon:l,label:n,description:r,version:e,benefitsVersion:t},String(a)),Ya=p((({className:e="",title:t,headlineVersion:l="L",description:n,benefitsCountOfRow:r=3,benefits:a,benefitsVersion:i,buttons:s,image:o,items:c,version:d="primary",isDotted:m=!0,textBlockClassName:p="",...x})=>{const b=a?.filter((e=>e.label))?.length,g=Za(r);return u("div",{className:`flex grow justify-between items-stretch h-full ${e}`,children:[u("div",{className:`flex flex-col ${p}`,children:[h($e,{title:t,description:n,className:"!p-0 max-w-[600px]",bgColorHeadline:d,headlineVersion:l,align:"left",...x}),u(wl,{buttons:s?.length?h(fe,{buttons:s,className:"flex gap-4",...x}):null,children:[b?h("div",{className:g,children:a.map(Ja(d,i))}):null,c?.length?h(Vn,{className:"mt-5 text-h6",items:c,itemClassName:"mb-[7px]",version:d,isDotted:m}):null]})]}),o?.src&&h(O,{className:"mt-[-50px]",image:o})]})})),Za=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function Ka(e,t,l){const{text:n,href:r,target:a,onClick:i}=e,s="primary"===t?"white":"black",o=e?.icon||{icon:"ArrowLeftIcon"};return u("div",{className:`flex items-center cursor-pointer ${l}`,onClick:i,children:[h(xe,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:n,href:r,target:a,children:h(O,{className:"w-4 h-4",image:{...o,iconVersion:o.iconVersion||s},asSVG:!0})}),n?h("span",{className:"text-m",children:n}):null]})}const qa={primary:"text-secondary-text",secondary:"text-white/80"},Qa=p((e=>{const{className:t="",breadcrumbs:l,backwardButton:n,version:r="primary",...a}=e,i="primary"===r?r:"white";return u(y,{className:`font-sans overflow-hidden p-[50px] flex flex-col box-border min-h-[454px] ${z[r]} ${t}`,...a,children:[n?.text?Ka(n,i,"mb-10 -mt-2.5"):null,l?.length?h("div",{className:"text-xs-light mb-6",children:_r(h("span",{className:`mx-2 ${qa[r]}`,children:"/"}))(l.map(((e,t)=>h(Wa,{className:qa[r],...e},String(t)))))}):null,h(Ya,{version:r,...a})]})})),ei={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},ti=p((({className:e="",slides:t=[],version:l="primary",...r})=>{const a=t.map((e=>e.nav)),i=t.map((e=>e.productBlock)),[s,o]=n(0);return u(y,{className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 mb-6 ${e}\n ${z[l]}`,...r,children:[h("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${s}00%)`},role:"list",children:i.map(((e,t)=>function(e,t){const{version:l}=e,n=l?ei[l].title:"";return h("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:h("div",{className:"flex grow",children:h(Ya,{className:`pl-[50px] z-10 ${n}`,textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...r,version:l},t)))}),h("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:a.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:l,onClick:n,version:r}){const a=t===l,i=a?"bg-white shadow-dark-blue/42 min-w-[350px] border-none p-6":`min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur\n ${z[r]}`,s=a?"text-primary-text !text-h6 p-2":`text-l pb-1 ${ei[r].title}`,o=a?"text-secondary-text text-l-light":`text-m-light ${ei[r].text}`;return h("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0\n ${i} ${$r[r]}\n `,children:u("div",{className:"border-0 px-6",children:[h("div",{className:`last:pb-0 ${s}`,children:e?.title}),h("div",{className:`text-secondary-text ${o}`,children:e?.description})]})},String(t))}({slide:e,i:t,activeSlideIndex:s,onClick:()=>o(t),version:l})))})]})}));const li=p((({className:e="",title:t,headlineVersion:l="S",description:n,additionalDescription:r,benefits:a=[],buttons:i,image:s,version:o="primary",...c})=>u(y,{className:`overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]\n ${e} ${z[o]} ${za(e)}`,...c,children:[h($e,{className:"!p-0 !bg-transparent z-10 "+(t||n?"mb-3.5":""),as:"h2",title:t,description:n,headlineVersion:l,bgColorHeadline:o,align:"left",...c}),ni(a,o,s),r?ai(r,s,o):null,i?.length?h(fe,{buttons:i,className:"flex self-end mt-5 gap-4 z-10 text-l"}):null,s?.src?h(O,{className:"absolute right-0 bottom-0",image:s}):null]})));function ni(e,t,l){return h("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline\n ${l?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(ri(t)):null})}function ri(e="primary"){const t={primary:"text-secondary-text",secondary:"text-white"};return function(l,n){const{label:r="",description:a=""}=l;return[h("div",{className:"text-h6",children:r},`label-${n}`),h("div",{className:`text-m-light ${t[e]}`,children:a},`desc-${n}`)]}}function ai(e,t,l="primary"){return h("div",{className:`text-m-light mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"} ${{primary:"text-secondary-text",secondary:"text-white"}[l]}`,children:e})}const ii=p((({className:e="",title:t="Акции и спецпредложения",date:l,description:n,buttons:r=[],version:a="primary",...i})=>h(y,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${z[a]} ${za(e)} ${Zr(e)} `,...i,children:h(wl,{title:t?h($e,{title:t,className:"!p-0 max-w-[600px]",headlineVersion:Ua(e),bgColorHeadline:a,align:"left",as:"h2",...i}):null,buttons:r?.length?h(fe,{buttons:r,className:"flex gap-3"}):null,children:u("div",{className:"mt-1.5",children:[l?h("div",{className:"text-s mb-2",children:si(l)}):null,h("div",{className:"text-l",children:n})]})})})));function si(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const oi=p((({className:e="",title:t,description:l,items:n,image:r,version:a,socialMedia:i,button:s})=>{const o=t?h(k,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:t}):null,c=r?.src?h(O,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return h("section",{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${e}`,role:"listitem",children:h(wl,{className:"flex justify-between",title:o,image:c,children:u("div",{className:"h-full flex flex-col justify-between",children:[l?h(ye,{className:"mb-2",description:l}):null,n?.length?h(Vn,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:n,version:a}):null,i?h(fn,{className:"pt-10 pb-0",media:i,version:a}):null,s?.text?h("div",{className:"pt-2",children:ve({button:s,buttonClassName:"mt-16"})}):null]})})})})),ci="absolute top-0 bottom-0 w-[84px]",di=p((({recommendations:e=[],className:t="",title:l,version:r="primary",...a})=>{const[i,s]=n(0);return u(y,{className:`relative font-sans p-9 overflow-hidden text-center ${z[r]} ${t}`,...a,children:[l?h(k,{headingType:"h3",className:"mb-6",title:l}):null,u("div",{children:[h("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*i}px)`},role:"list",children:e?.length?e.map(((e,t)=>h(oi,{version:r,className:$r[r],...e},String(t)))):null}),mi({cardsCount:e.length,activeCardIndex:i,setActiveCardIndex:s})]}),h("div",{className:`${ci} left-0 ${"secondary"===r?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${ci} right-0 ${"secondary"===r?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),mi=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:l})=>{const n=e>2;return h("div",{children:Ae({handler:[()=>l(t-1),()=>l(t+1)],isShown:[n&&t>0,n&&e-t>2],btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})})},hi=p((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:n=!0,version:r="primary",children:a})=>h("div",{className:`border-b border-solid border-main-divider w-full ${e}`,children:h(S,{isFoldButtonOnTop:n,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h("div",{className:"box-border",children:h(I,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:a})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>ui({isUnfolded:e,onToggle:l,label:t,version:r})})})));hi.childrenTypes=[];const ui=({isUnfolded:e,onToggle:t,label:l,version:n})=>{const r=["PlusIcon","MinusIcon"],a=l?[l,l]:["Развернуть","Скрыть"];return h("primary"===n?pi:Ba,{icon:r[Number(e)],label:a[Number(e)],onClick:t})},pi=p((({label:e,icon:t,onClick:l})=>u("button",{className:"border-none bg-transparent px-9 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer",onClick:l,children:[h("span",{className:"text-xl font-medium pr-2.5",children:e}),t?h(O,{image:P({icon:t}),width:"24",height:"24",asSVG:!0}):null]}))),xi=[];const bi=async e=>await rt(e,{method:"GET"})||xi,gi=p((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:r="",setSelected:a,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return h(Dl,{options:s,label:i,placeholder:r||n,onChange:e=>a(e.key),value:o})})),fi=p((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:r,onSelectedBranch:a})=>u("div",{className:"flex justify-between gap-4 mb-6",children:[h("div",{className:"max-w-[396px] w-1/2",children:h(gi,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),h("div",{className:"max-w-[396px] w-1/2",children:h(gi,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:r,setSelected:a,label:"Отделение",placeholder:"Выберите отделение"})})]}))),vi=p((({name:e,text:t,value:l,checked:n,onChange:r,className:a})=>h("div",{className:a,children:u("label",{className:"font-sans flex items-center relative cursor-pointer",children:[h("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-checkbox-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:l,name:e,checked:n,onChange:r}),t?h("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),Ni=p((()=>{const[e,t]=n("option2"),l=e=>t(e.target.value);return u("div",{children:[h(vi,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),h(vi,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),yi=["От 1 дня","До 365 дней"],wi=p((({days:e,setDays:t})=>u("div",{className:"mb-6",children:[h("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),h(Ke,{min:1,max:365,value:e,items:yi,onChange:t})]}))),ki=p((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:r,onSelectedBoxSize:a})=>u("div",{className:"flex justify-between mb-6",children:[h("div",{className:"mr-4 w-full",children:h(gi,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),h("div",{className:"w-full",children:h(gi,{data:n,fieldLabel:"safeBoxCasesSize",selected:r,setSelected:a,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Ci=p((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:r,selectedCaseVolume:a,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onShowMapToggle:d})=>u("div",{className:"flex-1 mr-9",children:[h(fi,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:$i(c)}),h(wi,{days:r,setDays:e=>c({days:e})}),h(ki,{caseVolumes:o,selectedCaseVolume:a,onSelectedCaseVolume:Si(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),h("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),u("div",{className:"flex justify-between items-center mt-5",children:[h(Ni,{}),h(xe,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),$i=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Si=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Ii=p((({days:e,tariffs:t=[]})=>{const l=Bi(e,t);return u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex",children:[Ti("Аренда за",e,"mr-11"),Ti("Цена",l+" ₽")]}),u("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[h(O,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),u("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",h("br",{})," листов формата А4"]})]})]})})),Ti=(e,t,l="")=>u("div",{className:l,children:[h("div",{className:"text-m-light text-secondary-text mb-1",children:e}),h("span",{className:"text-h3 text-primary-text",children:t})]}),Bi=(e,t)=>{const l=ji(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},ji=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},Ri=(e,t)=>e.find((e=>e.branchCode===t)),Vi=p((e=>{const{regions:t,data:l,branches:n,onChange:a,onShowMapToggle:i}=e;r((()=>{a({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,a]);const s=Ri(n,l.selectedBranch),o=_i(s?.safeBoxCaseVolumes),c=Mi(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=Di(c,l.selectedBoxSize);return u("div",{className:"flex justify-between align-top mb-6",children:[h(Ci,{...l,regions:t,onShowMapToggle:i,branches:n,caseVolumes:o,safeBoxCases:c,onChange:a}),h(Ii,{days:l.days,tariffs:d})]})})),_i=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Mi=(e,t)=>e?.find((e=>e.volume===t)),Di=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs;const Li=p((({title:e,footnote:t,className:l="",...r})=>{const[i,s]=n(!1),[o,c]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),d=function(){const{data:e}=lt("/api/v1/regions",at);return e||[]}(),m=Ai(o.selectedRegion,d),p=function(e){const{data:t}=lt(e?`/api/v1/safeboxes?regionCode=${e}`:null,bi);return t||xi}(m),x=a((e=>c((t=>({...t,...e})))),[c]),b=(g=Ri(p,o.selectedBranch)||p,Array.isArray(g)?g.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):g?.gpsLatitude&&g?.gpsLongitude?[[g.gpsLatitude,g.gpsLongitude]]:[]);var g;return u(y,{className:l,...r,children:[u("div",{className:"font-sans bg-white px-8 py-12",children:[e?h(k,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,h(Vi,{regions:d,branches:p,data:{...o,selectedRegion:m},onShowMapToggle:()=>{s(!i)},onChange:x}),t?h("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?h(ua,{points:b,className:"h-[640px]"}):null]})})),Ai=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Oi=e=>Boolean(e?.icon||e?.src),Fi=({items:e,isDotted:t=!0,version:l="primary",className:n=""})=>e?h(Vn,{className:n,version:l,items:e,listItemSize:"M",isDotted:t}):null,Ei=({styleMap:e,isMainButton:t,version:l})=>(n,r,{length:a})=>{const{label:i,description:s,button:o,items:c,isDotted:d}=n,m=i&&(s||c)?"mt-2":"";return u("div",{className:`relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden ${Xi(a)}`,children:[u("div",{className:(o?.text?"mb-8":"")+" text-center",children:[Ui(i),u("div",{className:`${m} flex flex-col items-center`,children:[zi({description:s,className:e.description}),Fi({items:c,isDotted:d,version:l,className:Pi({className:"text-left",description:s,styleMap:e})})]})]}),o?.text&&!t?h(xe,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(r))},Ui=e=>e?h("div",{className:"text-h6",children:e}):null,zi=({description:e,className:t=""})=>e?h("div",{className:t,children:e}):null,Pi=({className:e,description:t,styleMap:l})=>[t?l.description:"text-h6",t?"mt-0.5":"",e].join(" "),Xi=e=>e<5?"w-[276px]":"w-[210px]",Gi={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},Hi=p((({className:e="",showLines:t=!0,steps:l=[],button:n,version:r="primary",...a})=>{const{title:i}=a,s=Gi[r],o=l.length>3,c=(e=>e?"":"opacity-0")(t),d=i?"mt-9":"",m=(e=>e<5?"px-[88px]":"px-[55px]")(l.length);return u(y,{className:["box-border py-[50px] font-sans",o?"px-20":"px-[70px]","flex flex-col items-center",s.background,s.title,e].join(" "),...a,children:[i?h(k,{headingType:"h3",className:"max-w-[752px] text-center",title:i}):null,l?.length?u("div",{className:`box-border ${d}`,children:[h("div",{className:`flex items-center ${m}`,children:_r(h("div",{className:`h-0.5 w-full bg-secondary-light ${c}`}))(l.map(Wi(s,r)))}),h("div",{className:"flex justify-between mt-4 "+(o?"gap-x-3":"gap-x-[101px]"),children:l.map(Ei({styleMap:s,isMainButton:Boolean(n?.text),version:r}))})]}):null,n?.text?h(xe,{className:"mt-8 min-w-[240px]",version:"primary",...n}):null]})})),Wi=(e,t)=>({icon:l},n)=>h("div",{className:"flex flex-col items-center text-center",children:h("div",{className:`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center\n ${e.iconBackground} ${e.title}`,children:Oi(l)?h(O,{image:P(l||{},t),width:"48",height:"48",asSVG:!0}):h("span",{className:`text-h4 ${e.iconText}`,children:n+1})})},String(n));const Ji="h-12 flex-1 flex items-center justify-center cursor-pointer",Yi="bg-primary-main",Zi="group bg-white",Ki="font-sans text-m",qi="text-white",Qi="text-secondary-text group-hover:text-primary-main",es=p((e=>{const{tab:t,currentTab:l,onClick:n}=e,r="link"===l?.type&&l.href===t.href,i=a((()=>{n&&n(t),g.inst.fire("anchorClick",{isScrolling:!0,label:t.href})}),[t,n]),s=re()({...t,onClick:i});return h("a",{role:"tab",className:`${Ji} ${r?Yi:Zi}`,target:t.target,href:s.href,onClick:s.onClick,children:h("span",{className:`${Ki} ${r?qi:Qi}`,children:t.text})})})),ts=(e,t)=>h("h3",{className:`${Ki} ${t?qi:Qi}`,children:e}),ls=(e,t)=>h("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(t?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover:text-primary-main"),children:e}),ns=({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,a)=>{const i=r.type;if("group"!==i&&"link"!==i)return null;switch(i){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,a)=>{const i=t===r,s=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return h("div",{className:`${Ji} ${i?Yi:Zi}`,role:"tab","aria-selected":i,onClick:()=>n(r),children:u("div",{className:"flex flex-1 items-center justify-center",children:[r?.title?ts(r.title,i):null,l&&s?ls(s,i):null]})},String(a))})({page:e,currentTab:t,showCounter:l,onClick:n})(r,a);case"link":return h(es,{tab:r,currentTab:t},String(a));default:!function(e){throw new Error(e)}(i)}},rs=p((e=>{const{className:t="",tabs:l,showCounter:a,isSticky:i,...s}=e,[o,c]=n(l?l[0]:void 0);r((()=>g.inst.subscribe("tab",(e=>{if(!l)return;const t=l.find(as(e));"link"===e.type&&t&&c(t)}))),[l]),r((()=>{if("group"===o?.type)return g.inst.subject("tab",{label:o.ref})}),[o]);return h(y,{className:`${i?"sticky top-1 z-20 ":""}box-border flex gap-x-1 ${t}`,role:"tablist",...s,children:l?.map(ns({onClick:e=>{"group"===e?.type&&g.inst.fire("tab",{type:e.type,label:e.ref}),c(e)},currentTab:o,showCounter:a,...s}))})})),as=e=>t=>"link"===t.type&&t.href===`#${e.label}`,is=p((({isOpen:e,onClick:t})=>u(xe,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[h("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),h(B,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),ss={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,...t},l)=>ve({button:{rounded:e,...t},buttonClassName:(l>0&&e?"ml-3":"")+" w-12 h-12"})))}):null,Img:({image:e})=>e?.src?h(O,{image:e}):null,List:({isDotted:e,...t})=>h(Vn,{className:"flex flex-col justify-between items-start text-h6",version:"primary",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:p((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:r})=>e?h(is,{isOpen:r,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},os=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=n(!0);r((()=>{t===i&&a||m(!0)}),[a,i]);return u("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?h("div",{className:"h-5"}):null,cs({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},cs=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in ss))return null;return h(ss[l],{...t,...n})},ds=p((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})=>h("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(os({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})):null})));async function ms(e){const t=await fetch(e);return await t.json()}const hs=p((({rows:e})=>{const[t,l]=n(0),r=e?.[0]?.length??0,a=r>3&&r>t+4,i=t>0;return u("div",{children:[e?.map(us(t)),Ae({handler:[()=>l(t-1),()=>l(t+1)],isShown:[i,a],btnClass:["right-3 top-24","right-3 top-2"],className:""})]})})),us=e=>(t,l)=>{if(!t?.length)return null;const[n,...r]=t,a=[...Array(e).keys()].reduce(((e,t)=>140*(r?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return u("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?h("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:n.data}):null,h("div",{className:"flex flex-grow overflow-hidden",children:h("div",{className:i,style:{transform:`translateX(-${a}px)`},children:r?.map(((t,l)=>u("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?h("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?ps(t.cols,e):null]},`row${l}`)))})})]},String(l))},ps=(e,t)=>e?.length>0?h("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>h("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,xs=p((({activeTabIndex:e,items:t})=>{const[l,r]=n({});return h("div",{children:t.map(((t,n)=>{const a=`activeTabIdx:${e}-tableIdx:${n}`;return u("div",{className:"w-full",children:[u("div",{className:"flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>(e=>{r((t=>({...t,[e]:!t[e]})))})(a),children:[t.title,h(O,{image:l[a]?"PlusIcon":"MinusIcon",className:"absolute right-[22px]",width:"24",height:"24"})]}),h("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[a]?"h-0":""),children:h("div",{className:"relative",children:h(hs,{rows:t.rowsData})})})]},a)}))})})),bs=p((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>u("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?h("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>h("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?h(xe,{href:t,version:"secondary",target:"_blank",appendLeft:h(B,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20",asSVG:!0}),text:"Скачать в PDF"}):null]}))),gs=p((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:r}=function(e){const{data:t}=lt(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),ms);return t||{}}(e),[a,i]=n(0),s=r?.[a]?.items??[],o=r?.map((e=>e.currency??""));return u("div",r?{className:"bg-white z-10",children:[h(bs,{currencies:o,activeTabIndex:a,setActiveTabIndex:i,linkToPDF:t}),h(xs,{activeTabIndex:a,items:s}),h(is,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[h("p",{children:"Данных нет"}),h(is,{onClick:l,isOpen:!0})]})})),fs=p((({children:e,tableInner:t,onHideContentClick:l})=>u("div",{className:"self-start flex flex-col",role:"row",children:[h("div",{className:"flex",children:e}),t?h("div",{className:"origin-top animate-expansion",children:h(gs,{...t,onClick:l})}):null]}))),vs=p((({row:{header:e,data:t},activeCardIndex:l,rowIdx:r,...a})=>{const[i,s]=n(void 0),[o,c]=n(void 0);return u(fs,{onHideContentClick:()=>s(void 0),tableInner:i,...a,children:[h("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:u("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?h(O,{className:"mr-[14px] max-w-6 max-h-6",image:P(e.icon),width:"24px",height:"24px",asSVG:!0}):null,e?.title?h("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?h(ll,{activeCardIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>h(ds,{cells:e,rowIdx:r,cellIdx:t,setTableInner:s,tableInner:i,openTableInnerIdx:o,setOpenTableInnerIdx:c,...a},String(t))))}):null]})})),Ns=p((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:r,hiddenRowsNum:a=0,...i})=>{const s=r?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=_t({itemsCount:s.length,visibleItemCount:2}),p=s.length>2,x=(o||[]).map(((e,t)=>h(vs,{row:e,activeCardIndex:d,rowIdx:t,...i},String(t)))),[b,g]=a>0?[x.slice(0,-a),x.slice(-a)]:[x,[]];return u(y,{className:`bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${c>1?"pr-0":""} ${e}`,...i,children:[ys({title:t,description:l}),ws(l),a>0?h(S,{renderFoldableSection:({isUnfolded:e})=>u(ks,{controls:m,isScrollAvailable:p,children:[b,h(I,{isUnfolded:e,children:g})]}),renderFoldButton:ja}):h(ks,{controls:m,isScrollAvailable:p,children:x})]})}));function ys({title:e,description:t}){return e?h(k,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function ws(e){return e?h("div",{className:"mb-9 text-center text-l",children:e}):null}const ks=p((({children:e,controls:t,isScrollAvailable:l})=>{const{inc:n,dec:r,canDec:a,canInc:i}=t;return u("div",{role:"table",children:[u("div",{className:"relative",children:[e,l?h("div",{children:Ae({handler:[n,r],isShown:[a,i],btnClass:["top-[108px]","top-11"],className:"right-7"})}):null]}),l?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Cs={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"}},$s=p((({title:e,description:t,blockVersion:l="primary",iconVersion:n,image:r,className:a,...i})=>{const s=Cs[l];return u(y,{className:`font-sans px-9 py-4 flex ${s.background} ${a||""}`,...i,children:["small"===n?Ss(s.icon):null,"big"===n?Is(r):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${s.title}`,children:e}):null,t?h("div",{className:`text-s ${s.description}`,children:t}):null]})]})}));function Ss(e){return h("div",{className:"pt-1.5 pl-1 pr-4",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Is(e){return e?.src?h(O,{className:"pt-0.5 pr-3",image:e}):null}const Ts=p((e=>{const{tags:t,className:l=""}=e;return t?.length?h("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(Bs)}):null})),Bs=(e,t)=>h("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-color-stroke",children:e},String(t)),js=p((e=>{const{title:t,headingType:l="h3",description:n,items:r,buttons:a,image:i,isDotted:s=!0,listItemSize:o="M",className:c="",version:d="primary",tags:m,children:p,...x}=e,b="primary"===d?"text-primary-text":"";return h(y,{className:`overflow-hidden font-sans p-9 pr-3 box-border ${c} ${z[d]} ${za(c)} ${Zr(c)} `,...x,children:u(wl,{title:t?h(k,{headingType:l,as:"h2",title:t,className:`whitespace-pre-wrap max-w-[600px] ${b}`}):null,buttons:a?.length?h(fe,{buttons:a.map((e=>({...e,className:"min-w-[158px]"}))),className:"flex mt-8 gap-3",...x}):null,image:i?.src?h(O,{className:"mt-auto ml-7",image:i}):null,children:[n?h(ye,{className:"max-w-[600px] text-xl-light mt-2.5",description:n}):null,p,Rs({version:d,isDotted:s,listItemSize:o},r),m?.length?h(Ts,{tags:m,className:"mt-5"}):null]})})}));function Rs({version:e,isDotted:t,listItemSize:l},n){return n?.length?h(Vn,{items:n,isDotted:t,className:"mt-2.5",listItemSize:l,itemClassName:"mb-1.5",version:e}):null}const Vs={left:"items-start",center:"items-center",right:"items-end"},_s={XXL:"gap-10",XL:"gap-8",L:"gap-4",M:"gap-3",S:"gap-2",XS:"gap-1","":""},Ms={transparent:"",primary:"bg-white",secondary:"bg-primary-main"},Ds=p((({className:e="",children:t,gap:l="",align:n="left",version:r="transparent",...a})=>h(y,{className:["flex flex-col",_s[l],Vs[n],Ms[r],e].join(" "),...a,children:t})));Ds.childrenTypes={exclude:["VerticalLayout"]};const Ls={Accordion:$,AccordionItem:E,BenefitsBlock:W,BusinessBlock:De,Bonus:Se,BonusBenefitsBlock:je,CardTransfer:Vt,Calculator:Ct,Carousel:Dt,CarouselCard:Ft,CarouselTariffsCard:Et,Catalog:Yt,ContactsBlock:bl,ComparisonTable:ul,ErrorBlock:yl,ExchangeRateTile:Jl,Footer:wn,Gallery:Un,GracePeriod:zn,Header:gr,Headline:$e,InsuranceAmountBlock:kr,InvestmentInfo:Lr,InvestmentGallery:jr,LinkDocs:Wr,MiniGallery:Jr,MobileAppTile:Kr,PictureText:Aa,Placeholder:Pa,ProductBlock:Qa,ProductGallery:ti,ProductTile:li,PromoTile:ii,OfficeMap:$a,OfficeServicesBlock:Sa,OtherProducts:Ta,OtherProductsItem:Va,Recommendation:di,RollupItem:hi,SafeDepositRental:Li,StepsBlock:Hi,Tabs:rs,TariffsTable:Ns,TextBlock:$s,Tile:js,VerticalLayout:Ds};function As(e){return e?e.filter(Boolean).join(" "):""}const Os=m();const Fs=p((({className:e,onClick:t,ariaLabel:l})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:Es()}))),Es=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),h("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Us=p((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return r((()=>{(async()=>{const[t]=await Os.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{l(await Os.like(e))}),[e]),dislike:a((async()=>{l(await Os.dislike(e))}),[e])}}(ne().pathname);return u("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[h(Fs,{onClick:le(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(Fs,{onClick:le(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),zs=({slots:e,parent:t,options:l,ancestors:n=[]})=>Object.entries(e||{}).reduce(((e,[r,a])=>({...e,[r]:Ps({blocks:a,parent:t,slotName:r,options:l,ancestors:n})})),{});const Ps=({blocks:e,parent:t,slotName:l=null,options:n,ancestors:r=[]})=>(e||[]).map(((e,a)=>function({block:e={},options:t,ancestors:l=[]}){const{key:n,page:r,blockDecorator:a,blocksRegistry:i={}}=t,{type:s,slots:o,blocks:c}=e;s&&s in i||console.warn(`No block with "${s}" is registered`);const d=s&&i[s],m={parent:e,options:t,ancestors:l},u=Ps({...m,blocks:c}),p=o?zs({...m,slots:o}):{};return a({blockClassName:`scroll-mt-12 ${As(e.style)}`,block:e,ancestors:l,render:({block:e,blockClassName:t})=>{const{content:a}=e;return d?h(d,{page:r,block:e,className:t,ancestors:l,slots:p,...a,children:u},n):null}},n)}({block:e,options:{...n,key:`${n.key?n.key:e.type}-${a}`},ancestors:[...r,[t,l]]}))),Xs=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),Gs=p((e=>{const{className:t="",blocksRegistry:l,blockDecorator:n,data:r={}}=e,{style:a,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",blocksRegistry:l,page:r,blockDecorator:n||Xs},m=zs({slots:s,parent:r,options:d});return u("section",{className:`relative ${As(a)} ${t}`,"data-theme":c,children:[m?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:m.header}):null,i?.length?u("div",{className:"container grid grid-cols-12 gap-1",children:[Ps({blocks:i,parent:r,options:d}),m?.footer?m.footer:null]}):null,o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Us,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Gs.childrenTypes=[],Gs.slots=()=>["header","footer"];e.Blocks=Ls,e.ContentPage=Gs,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=le,e.joinList=_r,e.packageVersion="0.6.31",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=te,e.useRouter=ne,Object.defineProperty(e,"__esModule",{value:!0})}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const l=e=>(...l)=>t[e](...l),n=l("useState"),r=l("useEffect"),a=l("useCallback"),i=l("useMemo"),s=l("useRef");function o(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),l=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await l.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}}const c=new class{_={PROD_BRANCH:"master",FORCED_DRAFT_FLOW:!1};setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CDN(){return this._.CDN}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d="likesToken";function m(){async function e(){try{const e=JSON.parse(globalThis.localStorage.getItem(d)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:l}=await e.json();return globalThis.localStorage.setItem(d,JSON.stringify({token:t,name:l})),{token:t,name:l}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:t})}),{likes:n}=await e.json();return n||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:r}=await e.json();return r||0}catch(e){return console.error(e),0}}}}const h=(...e)=>globalThis._uni._jsx(...e),u=(...e)=>globalThis._uni._jsxs(...e),p=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:x(e)),t._tmpl},x=e=>{function t(t,l){const{children:n,...r}=t||{},a=l?.slots?.default,i=n||a&&a();return e(Object.assign(r,i&&{children:i}),l)}return t.inheritAttrs=!1,t},b={left:"text-left",center:"text-center",right:"text-right"};class g{static inst=new g;subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]||=[],this.subscribers[e]?.push(t);const l=this.subjectsStateMap[e];return l&&t(l),()=>{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}}function f(e,t){const l=s(null);return r((()=>{if(!l.current)return;const n=new IntersectionObserver(e,t);return n.observe(l.current),()=>{n.disconnect()}}),[e,t]),l}const v=100,N={threshold:new Array(18).fill(0).map((function(e,t){const l=(t+1)/v+.82;return Math.round(l*v)/v}))},y=p((({className:e,block:t,tag:l="section",role:a,children:o})=>{const c=l,{anchor:d,labels:m}=t||{},[u,p]=n(!0),x=s({}),b=i((()=>(({anchor:e,anchorClickRef:t})=>l=>{if(!l?.length)return;const[n]=l;!n.isIntersecting||n.boundingClientRect.top>150||(t?.current?.isScrolling&&t.current.label===`#${e}`?(g.inst.fire("anchorClick",{isScrolling:!1,label:void 0}),g.inst.fire("tab",{type:"link",label:e})):t?.current?.isScrolling||g.inst.fire("tab",{type:"link",label:e}))})({anchor:d,anchorClickRef:x})),[d]),v=f(b,N);return r((()=>g.inst.subscribe("anchorClick",(e=>{p(!0),x.current=e}))),[]),r((()=>g.inst.subscribe("tab",(e=>{if("group"===e.type){const l=m?.length||t?.anchor;p(!e.label||(!l||Boolean(m?.includes(e.label))))}else(l=e.label)&&(globalThis.document.location.hash=l),p(!0);var l}))),[]),u?h(c,{className:e,role:a,...d?{id:d,ref:v}:{},children:o}):null}));const w={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},k=p((e=>{const{className:t="",headingType:l="h3",title:n,as:r="h3"}=e;return h(r,{className:`font-sans m-0 ${w[l]} ${t}`,children:n})})),C=p((({children:e})=>h("ul",{className:"list-none m-0 p-0",children:e}))),$=p((({className:e="",title:t,accordionAlignTitle:l="center",description:n,children:r,...a})=>u(y,{className:`p-[50px] mb-1 last:mb-0 font-sans bg-white text-primary-text ${e}`,...a,children:[t?h(k,{headingType:"h3",as:"h2",className:`mb-2.5 ${b[l]}`,title:t}):null,n?h("div",{className:"mb-2.5 text-l",children:n}):null,h(C,{children:r})]})));$.childrenTypes=["AccordionItem"];const S=p((({isFoldButtonOnTop:e=!1,unfoldedByDefault:t=!1,renderFoldableSection:l,renderFoldButton:r})=>{const[i,s]=n(t),o=a((()=>{s((e=>!e))}),[]),c=l({isUnfolded:i,onToggle:o}),d=r?r({isUnfolded:i,onToggle:o}):null;return u("div",e?{children:[d,c]}:{children:[c,d]})})),I=p((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return r((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),h("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden max-h-0 ${e}`,children:l})})),T={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},B=p((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:r=n,iconVersion:a="color",asSVG:i,...s})=>{const o=`${c.CDN||""}icons/${l}.svg`;return i&&"normal"!==a?h(V,{className:e,children:u("svg",{className:[R(e,s.width),T[a],t,j(a)].join(" "),...s,"aria-hidden":"true",children:[r?h("title",{children:r}):null,n?h("desc",{children:n}):null,h("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):h("img",{className:e,src:o,alt:n,title:r,...s,"aria-hidden":"true"})})),j=e=>"white"===e?"invert":"",R=(e,t)=>t?`width: ${t}px `:"w-full h-full",V=p((({className:e,children:t})=>e?h("div",{className:e,children:t}):t));function _(e){return"string"==typeof e?"normal":e?.iconVersion||"normal"}const M=(e,t)=>e.media&&t.media?e.media-t.media:0,D=p((({className:e="",image:t,imageClassName:l="",isMobile:n=!1})=>{if(!t||!t?.sources&&!t?.src)return null;return u("picture",{className:`${n?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.sort(M).map((({src:e,format:l,media:n},r)=>h("source",{srcSet:e,type:A(l),media:n?`(max-width: ${n}px)`:"",...t.size},`${r}_${e}`))):null,L(t,l,n)]})})),L=(e,t="",l=!1)=>{const n={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},r=e.title||"",a=e.alt||e.title,i=l?"m-auto":"m-0";return h("img",{src:e.src,className:`${i} ${t}`,alt:a,title:r,style:n,...e.size})};function A(e){return e?`image/${String(e)}`:void 0}const O=p((({className:e="",image:t,imageClassName:l="",isMobile:n,...r})=>{if(!t)return null;const a="string"==typeof t?t:t.icon;return a||""===a?a.length?h(B,{className:e,imageClassName:l,iconVersion:_(t),name:a,...r}):null:h(D,{className:e,imageClassName:l,image:t,isMobile:n})})),F=["PlusIcon","MinusIcon"],E=p((({className:e="",label:t="",isExpanded:l,children:n})=>h("li",{className:`border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,children:h(S,{isFoldButtonOnTop:!0,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h(I,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:n}),renderFoldButton:({isUnfolded:e,onToggle:l})=>h(U,{label:t,icon:F[Number(e)],onClick:l})})})));E.childrenTypes=[];const U=p((({label:e,icon:t,onClick:l})=>u("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer",onClick:l,children:[h("span",{className:"text-xl font-medium pr-2.5",children:e}),h(O,{image:t,className:"text-primary-main flex-shrink-0",width:"24",height:"24",asSVG:!0})]}))),z=p((e=>{const{className:t="",description:l}=e;return h("div",{className:`${t}`,children:l})})),P="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",X=p((({text:e,href:t="",target:l="",className:n=""})=>e?u("div",{className:`relative group cursor-pointer w-[328px] h-[82px] ${n}`,children:[u("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover:text-primary-main z-10",role:"link",href:t,target:l,children:[h("div",{className:"p-0.5",children:e}),h("div",{className:"w-6 h-6",children:h(O,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"24",height:"24",asSVG:!0})})]}),h("div",{className:`${P} mx-1.5 mt-1.5`}),h("div",{className:`${P} mt-3 mr-3`})]}):null)),G=({itemsCount:e,visibleItemCount:t=e,isCyclic:l})=>{const[r,i]=n(0),s=a((()=>i((t=>l?(t+1)%e:Math.min(t+1,e-1)))),[l,e]),o=a((()=>i((t=>l?(e+t-1)%e:Math.max(t-1,0)))),[l,e]),c=e>t,d=l&&c;return[r,{inc:s,dec:o,canInc:d||c&&e-r>t,canDec:d||Boolean(c&&r>0)}]},H=e=>e?.includes("//"),W=e=>(e||"").replace(/\/?\?.*/,""),J=e=>{if(!e||!H(e))return;const t=e,l=t.indexOf("//"),n=t.indexOf("/",l+"//".length);return-1!==n?t.substring(0,n):t};var Y=Object.freeze({__proto__:null,isURL:H,withoutQuery:W,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 Z=(e,t)=>Z._impl(e,t);function K(){return K._impl()}function q(){const e=K();return t=>{const l=((e,t)=>{if(!e)return e;const l=J(t?.href);return l?e.replace(l,"")||"/":e})(t.href,e);return{...t,href:l,"aria-label":t.text,onClick:Z((n=>{t.onClick&&t.onClick(n);const r=l&&!H(l),a=!t.target||"_self"===t.target;r&&a&&(n?.preventDefault(),e.push(l))}),t)}}}Z._impl=e=>e,Z.setup=e=>{Z._impl=e},K._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),K.setup=e=>{K._impl=e};const Q={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:""},ee="bg-main-divider text-main-disabled",te={primary:ee,secondary:ee,white:ee,link:""},le="text-center font-sans select-none",ne={primary:"group-hover:brightness-0 group-hover:invert",secondary:"group-hover:brightness-0 group-hover:invert",white:"group-hover:brightness-0 group-hover:invert",link:""},re=p((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:r,version:a="primary"}=e;return u("div",{className:ae(e),children:[n?h("div",{className:ne[a],children:n}):null,ie(e)?u("div",{children:[l?h("div",{className:"text-xs-light text-left",children:l}):null,h("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,r?h("div",{className:ne[a],children:r}):null]})})),ae=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const r="gap-2 "+(l?"py-2.5 px-7":"py-4 px-4");return["group flex items-center justify-center",ie(e)?r:"h-12 w-12",n?"rounded-full":""].join(" ")},ie=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),se=({className:e,rounded:t,version:l})=>["inline-block",le,l?te[l]:"",t?"rounded-full":"rounded-md",e].join(" "),oe=({className:e,rounded:t,version:l})=>[le,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-focus focus:border",l?Q[l]:"",t?"rounded-full":"rounded-md",e].join(" "),ce=p((({disabled:e,children:t,...l})=>{const n=q()(l),r=t??h(re,{...n});return h(e?me:de,{...n,children:r})})),de=p((({className:e="",href:t,rel:l,target:n,ariaLabel:r,version:a,rounded:i,onClick:s,children:o})=>h("a",{className:oe({className:e,version:a,rounded:i}),href:t,rel:l,target:n,"aria-label":r,role:t?"link":"button",onClick:s,children:o}))),me=p((({className:e,ariaLabel:t,version:l,rounded:n,children:r})=>h("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:se({className:e,rounded:n,version:l}),children:r}))),he=p((({className:e,disabled:t,...l})=>h(ce,{rounded:!0,className:`group shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...l,children:h(O,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover:text-primary-main",width:"16",height:"16",asSVG:!0})})));function ue({handler:e,isShown:t,btnClass:l,className:n="",isDisabled:r=!1}){return u("div",{children:[t[0]||r?h(he,{className:`absolute z-10 ${l[0]} ${n}`,onClick:e[0],ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!t[0]}):null,t[1]||r?h(he,{className:`absolute z-10 rotate-180 ${l[1]} ${n}`,onClick:e[1],ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!t[1]}):null]})}const pe=p((({children:e,activeItem:t,cardFullViewCount:l,cardWidth:n})=>{const r=1===l?`translateX(-${t}00%)`:`translateX(-${t*Number(n)}px)`;return h("div",{className:"w-auto flex flex-1 duration-1000",style:{transform:`${r}`},role:"list",children:e})})),xe=p((({cardFullViewCount:e=1,children:t,cardWidth:l="1007",className:n="",isBlur:r=!0,isCyclic:a=!1,block:i,...s})=>{const o=r?"absolute top-0 bottom-0 w-[84px]":"",{blocks:c}=i||{},d=void 0!==c?c.length:0,m=d>e,[p,x]=G({itemsCount:d,visibleItemCount:e,isCyclic:a}),{inc:b,dec:g,canDec:f,canInc:v}=x;return u(y,{className:`box-border h-full relative font-sans flex flex-col justify-center overflow-hidden ${n}`,...s,children:[h(pe,{activeItem:p,cardFullViewCount:e,cardWidth:l,children:t}),m?h("div",{children:ue({handler:[g,b],isShown:[f,v],btnClass:["left-8","right-8"],className:"top-1/2 z-10"})}):null,m?u("div",{children:[h("div",{className:`${o} left-0 bg-opacity-from-white`}),h("div",{className:`${o} right-0 bg-opacity-to-white`})]}):null]})}));xe.childrenTypes=["CarouselCard","CarouselTariffsCard"];const be=p((({additionalDescription:e,block:t,description:l,links:n,title:r,className:a="",...i})=>u(y,{className:`bg-primary-main flex w-full p-10 overflow-hidden justify-between font-sans ${a}`,...i,children:[u("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[r?h(k,{title:r,as:"h1",headingType:"h0",className:"pb-0.5"}):null,l?h(z,{description:l,className:"text-xl-light pt-5"}):null,e?h(z,{description:e,className:"pt-6"}):null]}),n?.length?ge(n):null]}))),ge=(e,t)=>{var l;const n=(l=12,e.reduce(((e,t,n)=>{const r=Math.floor(n/(l-1));return e[r]||(e[r]=[t]),e[r].push(t),e}),[])).map((e=>h("div",{className:"w-[672px] min-w-[672px] ml-20 mr-20 flex flex-wrap self-start",children:e.map(((e,t)=>h(X,{className:"m-1",...e},String(t))))})));return h(xe,{className:"min-w-[832px] w-[832px]",isBlur:!1,cardFullViewCount:1,cardWidth:"832",isCyclic:!0,block:{type:"Carousel",blocks:n},children:n})},fe={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white"},ve=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),Ne={primary:"",secondary:"text-white"},ye={primary:"text-secondary-text",secondary:"text-white opacity-80"},we={primary:"bg-main-divider text-primary-main",secondary:"bg-white/30 text-black"},ke=p((({className:e="",title:t,benefitList:l,version:n="primary",...r})=>u(y,{className:`font-sans text-primary-text p-12 flex flex-col items-center ${e} ${fe[n]}`,...r,children:[t?h(k,{headingType:"h3",as:"h2",className:`max-w-[47rem] text-center ${Ne[n]}`,title:t}):null,l?.length?h("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:l.map(Ce(n))}):null]}))),Ce=e=>(t,l)=>{const n=t.description;return u("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[t?.icon?.icon?h(O,{className:`w-[50px] h-[50px] min-w-[50px] p-3 rounded-full ${we[e]}`,image:ve(t.icon,e),asSVG:!0}):null,t?.icon?.src?h(O,{image:t.icon}):null,u("div",{className:"ml-5",children:[t?.label?h("h3",{className:`text-h6 m-0 ${Ne[e]}`,children:t.label}):null,$e(n,e)]})]},String(l))},$e=(e,t)=>{const l=e?.benefitType||null;return e&&l?h("div",{className:`text-l-light mt-2 ${ye[t]}`,children:"list"===l?Ie(e):Se(e)}):null},Se=e=>e?.name||null,Ie=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?h("ul",{className:t,children:e.items.map(((e,t)=>h("li",{children:e},`benefitListItem-${t}`)))}):null},Te=p((({className:e="",buttons:t})=>t&&t?.length?h("div",{className:e,children:t.map(((e,t)=>Be({button:e,index:t})))}):null));function Be({button:e,buttonClassName:t,index:l}){const{icon:n,iconRight:r,version:a,...i}=e,s="secondary"===a?"color":"white",o=je({...n,iconVersion:s}),c=je({...r,iconVersion:s});return h(ce,{className:t,appendLeft:o,appendRight:c,version:a,...i},l?String(l):"")}const je=e=>{if(!e?.icon&&!e?.src)return null;const t=e?.size?.width?`${e.size.width}`:"24";return h(O,{image:{...e},width:t,height:"24",asSVG:!0})},Re={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"}},Ve={XXL:{descriptionFont:"text-h5",gap:"gap-[18px]",headingType:"h0",as:"h1"},XL:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h1",as:"h1"},L:{descriptionFont:"text-xl-light",gap:"gap-4",headingType:"h2",as:"h2"},M:{descriptionFont:"text-xl-light",gap:"gap-3",headingType:"h3",as:"h3"},S:{descriptionFont:"text-xl-light",gap:"gap-2",headingType:"h4",as:"h4"},XS:{descriptionFont:"text-l-light",gap:"gap-2",headingType:"h5",as:"h5"}},_e={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},Me=p((({className:e="",bgColorHeadline:t="transparent",align:l="center",title:n,description:r,headlineVersion:a="XL",as:i,...s})=>{const o=Re[t],c=Ve[a];return u(y,{className:`font-sans flex flex-col p-[50px] ${c.gap} ${o.background} ${e}`,...s,children:[n?h(k,{headingType:c?.headingType,as:i||c?.as,className:`whitespace-pre-wrap ${o.text} ${b[l]}`,title:n}):null,r?h(z,{className:`${c.descriptionFont} ${o.text} ${b[l]}`,description:r}):null]})})),De=p((e=>{const{className:t="",title:l,description:n,bonusItems:r,...a}=e;return h(y,{className:`font-sans bg-white p-[50px] pb-9 ${t}`,...a,children:u("div",{className:"container",children:[h(Me,{className:"!p-0",title:l,description:n,headlineVersion:"M",align:"center",...a}),h("div",{className:"flex flex-wrap w-full mt-9",children:r?.length?r.map(((e,t)=>h("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:u("div",{className:"flex justify-between w-full",children:[u("div",{className:"flex flex-col justify-between mr-4",children:[u("div",{children:[h("div",{className:"text-h4",children:e.title}),h("div",{className:"text-xl-light mt-2 max-w-[488px]",children:e.description})]}),e?.buttons?.length?h(Te,{buttons:e?.buttons}):null]}),e.bonusItemContent?.bonusType?Le(e.bonusItemContent):null]})},String(t)))):null})]})})})),Le=e=>h("div",{children:"count"===e.bonusType?Ae(e):Oe(e)}),Ae=e=>u("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?h("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?h("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),Oe=e=>e.image?h(O,{className:"w-[50px] h-[50px] min-w-[50px] p-3 rounded-full",image:e.image}):null,Fe=p((({className:e="",title:t,subtitle:l,bonusBenefits:n,columnsCount:r="4",...a})=>u(y,{className:`font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${e}`,...a,children:[h(Me,{className:"!p-0",title:t,description:l,headlineVersion:"M",align:"center",...a}),n?.length?h("div",{className:`grid gap-1 mt-8 ${Ue(r)}`,children:n.map(Ee)}):null]}))),Ee=(e,t)=>u("div",{className:"flex flex-col items-center max-w-[292px]",children:[e?.icon?h(O,{className:"h-[160px] w-[180px] min-w-[180px] min-h-[160px]",image:e.icon,width:"180",height:"160"}):null,h("div",{children:e?.label?h("span",{className:"text-h6 m-0",children:e.label}):null})]},String(t)),Ue=e=>"4"===e?"grid-cols-4":"grid-cols-5",ze=p((e=>{const{title:t,image:l,cardItems:n,button:r}=e;return u("div",{className:"border-color-stroke border p-9 w-1/2",children:[l?u("div",{className:"flex justify-center",children:[l?.src?h(O,{className:"mb-5",image:l}):null,l?.icon?h(O,{image:l,asSVG:!0}):null]}):null,t?h(k,{headingType:"h4",title:t,className:"mb-6"}):null,n?.length?h("ul",{children:n.map(((e,t)=>Pe(e,String(t))))}):null,r?.text?Be({button:r,buttonClassName:"mt-6"}):null]})})),Pe=(e,t)=>{const{icon:l,text:n}=e;return u("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?h(O,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",image:l.icon,asSVG:!0}):null,l?.src?h(O,{image:l.icon}):null,h("span",{className:"text-xl-light",children:n})]},t)},Xe=p((({className:e="",title:t,cards:l,...n})=>u(y,{className:`font-sans bg-white p-[50px] pb-9 ${e}`,...n,children:[h(k,{headingType:"h3",title:t,className:"text-center mb-8"}),h("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>h(ze,{...e},String(t)))):null})]}))),Ge=e=>new Intl.NumberFormat("ru-RU",{maximumSignificantDigits:3}).format(e),He=p((({title:e,value:t,postfix:l="",prefix:n,className:r=""})=>u("div",{className:`mb-7 ${r}`,children:[e?h("div",{className:"text-l-light text-secondary-text",children:e}):null,t?u("div",{className:"text-h3",children:[n," ",Ge(Math.round(t))," ",l]}):null]}))),We=6e4,Je=2e6,Ye=97e4,Ze=Math.round(23.5),Ke={minSum:We,maxSum:Je,minMonths:13,maxMonths:60,rateBottomRange:10,rateTopRange:7,isSalaryClient:!0,isStateEmployee:!0,isInsurance:!0,sumBorder:999999},qe={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Qe=p((({rate:e,title:t="Ставка",unit:l,rateBlockClassName:n})=>u("div",{children:[h("div",{className:"text-l-light text-secondary-text",children:t}),u("div",{className:"flex justify-start",children:[h("span",{className:`block gradient-color-text font-mohave text-title-huge pr-6 -mt-4 ${n}`,children:String(e).replace(".",",")}),l?h("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:l}):""]})]})));function et(e){return e?.length?h(Te,{buttons:e,className:"flex flex-col mt-7 gap-2"}):null}const tt=e=>e?h("p",{className:"text-s-light text-secondary-text mt-7",children:e}):null,lt=(e,t,l)=>Math.max(t,Math.min(e,l)),nt=e=>e.split(/\s+/).join(""),rt=p((({className:e,title:t,items:l=[],min:n=1,max:r=100,step:a=1,value:i=n,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(lt(Number(nt(e.target.value)),n,r))},d={backgroundSize:`${(100*(i-n)/(r-n)).toFixed(2)}% 100%`};return u("div",{className:e,children:[u("label",{className:"block relative",children:[t?h("span",{className:"text-m-light text-primary-text",children:t}):null,h("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-main-stroke rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-focus disabled:border-main-stroke disabled:bg-main-divider",value:Ge(i),disabled:s,onChange:c,onBlur:c}),h("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:h("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:n,max:r,step:a,value:i,disabled:s,onChange:c,style:d})})]}),at(l)]})}));function at(e){return h("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>h("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const it=1e3;function st(e,t,l){const{moneyValue:n,minSum:r,maxSum:a,step:i=it,isShowItems:s=!0}=t,o=[`От ${Ge(r)} ₽`,`До ${Ge(a)} ₽`];return h(rt,{title:e,items:s?o:[],min:r,max:a,step:i,value:lt(n,r,a),onChange:l})}const ot=new Map;function ct(e,t,{fallback:l}={}){const a=i((()=>dt(e)),[e]),[s,o]=n(),[c,d]=n(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};r((()=>{if(!a.every((e=>null===e)))try{const e=t(...a);"then"in e?(e=>{e.then((e=>ot.get(a)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...a]);const u=a[0],p=l&&"string"==typeof u&&l[u];return{data:s||c||!p?s:p,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function dt(e){return e?Array.isArray(e)?e:e instanceof Function?dt(e()):[e]:[e]}async function mt(e,t){try{return await ht(e,t)}catch(e){console.error(e)}return null}async function ht(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}function ut(e){const{data:t}=ct(`/wcms-resources/${e}.json`,ht);return t}const pt=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,r=ut(t||"bonus-calculator-data")||qe,[a,i]=((e,t,l)=>{const{minSumTravel:n,minSumOther:r,maxBonus:a,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===r)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),a);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*l),a)*(12-i)]})(r,l,n);return{...r,...e,monthBonus:a,yearBonus:i}},xt=p((({className:e="",sourceBookDir:t="",buttons:l,footnote:r})=>{const[a,i]=n(6e3),[s,o]=n(6e3),c={travelExpenseValue:a,restExpenseValue:s},{minSumTravel:d,maxSumTravel:m,minSumOther:p,maxSumOther:x,monthBonus:b,yearBonus:g}=pt(c,t);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[st("Сумма покупок в категории путешествия, ₽",{minSum:d,maxSum:m,moneyValue:a,step:500,isShowItems:!1},i),st("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:p,maxSum:x,moneyValue:s,step:500,isShowItems:!1},o)]}),h("div",{children:b>=0?h(Qe,{title:"Баллов за месяц",rate:b,rateBlockClassName:"tracking-[-14px]"}):null}),u("div",{className:"w-full max-w-[350px]",children:[g>=0?h(He,{title:"Баллов за год",value:g}):null,et(l),tt(r)]})]})})),bt=p((({className:e,viewBox:t,fill:l="none",width:n,height:r,paths:a,...i})=>h("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:r,children:a.map((({d:e,fill:t,...l},n)=>h("path",{d:e,fill:t||"currentColor",...i,...l},n)))}))),gt=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],ft=p((({className:e,text:t,checked:l,isRadio:n,onChange:r})=>h("div",{className:e,children:u("label",{className:"flex items-center relative cursor-pointer group",children:[h("input",{className:`peer appearance-none w-5 h-5 border-solid cursor-pointer group-hover:border-checkbox-hover\n ${n?"rounded-full border-2":"rounded checked:bg-primary-main border"}\n ${l?"border-black":"border-main-stroke"}\n checked:border-primary-main m-0`,type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:l}),n?h("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):h(bt,{paths:gt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?h("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})}))),vt=p((({items:e,checkedItem:t,onChange:l})=>h("div",{className:"flex flex-col gap-3",children:e?.map((({id:e,text:n})=>h(ft,{isRadio:!0,text:n,checked:t===e,onChange:()=>l&&l(e)},String(e))))})));function Nt(e,t,l){const{minMonths:n,maxMonths:r,monthsValue:a}=t,i=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return h(rt,{className:"mt-7",title:e,items:[`От ${i(n)}`,`До ${i(r)}`],min:n,max:r,step:1,value:lt(a,n,r),onChange:l})}const yt=(e,t)=>{const{isInsurance:l,isSalaryClient:n,isStateEmployee:r,moneyValue:a}=e,i=ut(t||"credit-calculator-data")?.rows?.find((e=>l===e.isInsurance&&n===e.isSalaryClient&&r===e.isStateEmployee))||Ke,{rateBottomRange:s,rateTopRange:o,sumBorder:c}=i,d=a<=c?s:o,m=((e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:r}=t;if(l){const t=e/1200;return n*(t+t/(Math.pow(1+t,r)-1))}return Math.round(n/r)+n*(e/1200)})(d,e);return{...i,...e,finalRate:d,monthlyPayment:m}},wt="annuity",kt="differential",Ct=[{id:wt,text:"Аннуитетный"},{id:kt,text:"Дифференцированный"}],$t=p((({className:e="",sourceBookDir:t,buttons:l,footnote:r})=>{const[a,i]=n(!1),[s,o]=n(!0),[c,d]=n(!1),[m,p]=n(!1),[x,b]=n(Ye),[g,f]=n(Ze),v=yt({isAnnuity:a,isInsurance:s,isSalaryClient:c,isStateEmployee:m,moneyValue:x,monthsValue:g},t);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[st("Сумма кредита, ₽",{...v,step:500},b),Nt("Срок кредита, месяцев",v,f),u("div",{className:"mt-7",children:[h(ft,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:c,onChange:d}),h(ft,{className:"mt-3",text:"Работаю в бюджетной организации",checked:m,onChange:p}),h(ft,{className:"mt-3",text:"Комплексная страховая защита",checked:s,onChange:o})]})]}),h(Qe,{title:"Ставка",rate:v.finalRate,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(He,{title:a?"Ежемесячный платеж":"Платёж в первый месяц",value:v.monthlyPayment,postfix:"₽"}),h(vt,{items:Ct,checkedItem:a?wt:kt,onChange:e=>i(e===wt)}),et(l),tt(r)]})]})})),St="everyMonth",It="atEndTerm",Tt=[{id:St,text:"Ежемесячно"},{id:It,text:"В конце срока"}],Bt={CreditCalculatorForm:$t,DepositCalculatorForm:p((({className:e="",rate:t,buttons:l,footnote:r})=>{const[a,i]=n(Ye),[s,o]=n(Ze),[c,d]=n(!1);return u("section",{className:e,children:[u("div",{className:"w-[468px]",children:[st("Сумма вклада, ₽",{moneyValue:a,minSum:We,maxSum:Je},i),Nt("Срок вклада, месяцев",{minMonths:13,maxMonths:60,monthsValue:s},o)]}),h(Qe,{rate:t||1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),u("div",{className:"w-full max-w-[350px]",children:[h(He,{title:"Доход по вкладу",value:948841,postfix:"₽",prefix:"+"}),h(He,{title:"Сумма в конце срока",value:1218841,postfix:"₽"}),h(vt,{items:Tt,checkedItem:c?St:It,onChange:e=>d(e===St)}),et(l),tt(r)]})]})})),BonusCalculatorForm:xt},jt=(e,t)=>{const l=e?.calcType;if(!l||!(l in Bt))return null;const n=Bt[l];return h("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:u("div",{className:"box-border p-9 w-full",children:[e?.title?h(k,{className:"text-center mb-6",title:e.title}):null,h(n,{...e,className:"flex justify-between"})]})},String(t))},Rt=p((({className:e="",calculatorTabs:t=[],...l})=>{const r=t.map((e=>e.nav||{})),a=t.map((({calculatorBlock:e})=>e||{})),[i,s]=n(0),[o,c]=n(0),d=t?.length>3&&t?.length>o+3,m=o>0;return u(y,{className:`box-border overflow-hidden relative font-sans w-100 text-primary-text bg-white ${e}`,...l,children:[u("div",{className:"bg-white",children:[r.length>1?Vt({tabsShift:o,tabsNav:r,activeSlideIndex:i,setActiveSlideIndex:s}):null,ue({handler:[()=>c(o-1),()=>c(o+1)],isShown:[m,d],btnClass:["left-3","right-3"],className:"top-8"})]}),h("div",{className:"flex",style:{transform:`translateX(-${i}00%)`},role:"list",children:a?.length?a.map(jt):null})]})}));function Vt({tabsShift:e,tabsNav:t,activeSlideIndex:l,setActiveSlideIndex:n}){return u("div",{children:[h("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:h("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,activeSlideIndex:l,onClick:n}){const r=t===l,a=r?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",i=r?"text-xl mb-1.5":"text-l mb-[3px]",s=r?"text-l-light text-white":"text-m-light text-secondary-text",o=r?"":"text-primary-main",c=e?.icon?.iconVersion,d=r?"white":"normal";return u("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative border border-main-stroke cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${a}`,children:[h(O,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${o}`,image:{...e?.icon,iconVersion:c??d},width:"24",height:"24",asSVG:!0}),u("div",{className:"border-0",children:[h("div",{className:`${i}`,children:e?.title}),h("div",{className:`${s}`,children:e.description})]})]},String(t))}({tab:e,i:t,activeSlideIndex:l,onClick:()=>n(t)})))})}),h("div",{className:"w-full h-2 bg-primary-main"})]})}const _t=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,Mt=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},Dt=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),Lt=p((({className:e="",inputClassName:t="",id:l,name:n,type:r="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:m,...p})=>{const x=a((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),b=a((e=>{if(!m)return;const t=e.target.validity.valid?e.target.value:s;m(t)}),[m]),g=c?"pr-8":"",f=o?"border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return u("div",{className:`relative ${e}`,children:[i?h("label",{className:"block text-m-light mb-2",children:i}):null,h("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${g} ${f} ${t}`,id:l,name:n||l,type:r,value:s,onChange:x,onBlur:b,...p}),c]})})),At=p((({className:e="",onChange:t,minValue:l=0,maxValue:n=3e5,...r})=>{const i=a((e=>{if(!t)return;const r=_t(Mt(Dt(nt(e))));const a=Ot(r,lt(Number(r),l,n));t(String(a))}),[t]),s=a((e=>{var l;t&&t((l=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(nt(l))).replace(",",".")))}),[t]);return h(Lt,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...r,children:h("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),Ot=(e,t)=>Number(e)===t?e:String(t),Ft=p((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:r="1500",button:a,...i})=>{const[s,o]=n(""),c=!Number(nt(s)),d=c?se({version:a?.version}):oe({className:"text-white",version:a?.version}),m=q();return u(y,{className:`p-[50px] flex flex-col items-center font-sans bg-white ${e}`,...i,children:[t?h(k,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,u("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[h(At,{name:"amount",value:s,onChange:o,valid:""===s||!c,placeholder:r,label:l}),a?.text?h("button",{type:"submit",className:`w-full p-4 mt-6 ${d} `,disabled:c,...m(a),children:a.text}):null]})]})})),Et="absolute border border-solid border-main-stroke w-[100%] h-[100%]",Ut={normal:"min-w-[100%] justify-center items-center my-7 col-span-12",mini:"justify-center items-center mx-4 my-9 col-span-4"},zt={normal:"w-[1007px]",mini:"w-[350px]"},Pt=p((({button:e,className:t="",description:l,title:n,version:r="normal"})=>h("section",{className:`flex ${Ut[r]}`,children:u("div",{className:`relative ${zt[r]}`,children:[u("div",{className:`relative bg-white py-6 px-10 z-10\n border border-solid border-green-light ${t}`,children:[h(Me,{className:"!p-0",title:n,description:l,headlineVersion:"M",align:"center"}),e?Be({button:e,buttonClassName:"mt-6 w-[158px]"}):null]}),h("div",{className:`top-9 right-12 bg-green-dark ${Et}`}),h("div",{className:`top-6 right-8 bg-green ${Et}`}),h("div",{className:`top-3 right-4 bg-green-light ${Et}`})]})}))),Xt=p((({className:e="",title:t,icon:l,isHighlighting:n,button:r,rows:a=[],...i})=>{const s=Gt(Boolean(n)),o=a.map(Wt),[c,d]=[o.slice(0,1),o.slice(1)];return u(y,{className:`font-sans bg-white p-[50px] p-8 border border-main-stroke relative w-[322px] min-w-[322px] -ml-[1px] ${s} ${e}`,...i,children:[n?Jt():null,l?.src?h(O,{className:"flex justify-center",image:l}):null,t?h(k,{className:"text-primary-text text-center pt-2",headingType:"h5",title:t}):null,r?h(ce,{className:"w-full mt-4",...r}):null,a?.length?h(S,{renderFoldableSection:({isUnfolded:e})=>u("div",{children:[c,h(I,{isUnfolded:e,children:d})]}),renderFoldButton:a.length>1?Ht:null}):null]})})),Gt=e=>e?"mt-9 pt-[71px]":"mt-[70px] pt-9",Ht=({isUnfolded:e,onToggle:t})=>u("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[h("div",{children:e?"Скрыть":"Подробнее о тарифе"}),h(B,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16",asSVG:!0})]}),Wt=e=>u("div",{className:"py-5 border-b border-main-divider flex flex-col gap-1",children:[e?.title?h("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,e?.description?h("div",{className:"text-primary-text text-h6",children:e.description}):null]}),Jt=()=>u("div",{className:"h-[60px] w-[60px] bg-white flex flex-col items-center justify-center shadow-[0_4px_25px_rgba(0,0,0,0.07)] absolute -top-7 -right-4",children:[h(B,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22",asSVG:!0}),h("div",{className:"text-center",children:"Хит"})]}),Yt={black:"bg-black",white:"bg-white"},Zt=p((({className:e="",title:t,description:l,image:n,price:r,button:a,colors:i})=>u("section",{className:`border border-solid box-border border-main-stroke p-[30px] min-w-[402px] flex flex-col justify-left ${e}`,role:"listitem",children:[n?.src?h(O,{className:"mb-5 flex justify-center",image:n}):null,t?h(k,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?h("div",{className:"text-m-light text-left mb-4",children:l}):null,i?.length?u("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[h("div",{className:"mr-1.5",children:"Доступные цвета: "}),i.map(Kt)]}):null,r?u("div",{className:"text-h3 text-left",children:[r," ₽"]}):null,a?Be({button:a,buttonClassName:"mt-5 w-full"}):null]}))),Kt=(e,t)=>h("span",{className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${Yt[e]}`},String(t)),qt="absolute top-0 bottom-0 w-[84px]",Qt=p((({cards:e=[],className:t="",title:l,description:r,...i})=>{const[s,o]=n(0),c=a((()=>o((e=>e+1))),[]),d=a((()=>o((e=>e-1))),[]),m=e.length>3,p=m&&e.length-s>3,x=m&&s>0;return u(y,{className:`bg-white relative font-sans p-[50px] overflow-hidden text-center ${t}`,...i,children:[h(Me,{className:"!p-0",title:l,description:r,headlineVersion:"M",align:"center",...i}),h("div",{className:"flex duration-1000 gap-3.5 mt-8",style:{transform:`translateX(-${430*s}px)`},role:"list",children:e?.length?e.map(((e,t)=>h(Zt,{...e},String(t)))):null}),ue({handler:[d,c],isShown:[x,p],btnClass:["left-8","right-8"],className:"top-1/2 z-10 mt-6"}),h("div",{className:`${qt} left-0 bg-opacity-from-white`}),h("div",{className:`${qt} right-0 bg-opacity-to-white`})]})})),el="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",tl="border-main-stroke border-solid border",ll="border-main-divider border border-t-0 border-x-0",nl="w-[200px] mr-6",rl=p((({icon:e,image:t,title:l,link:n})=>u("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${tl} ${el}`,role:"columnheader",children:[e&&!t?.src&&h(O,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:ve(e),width:"63",height:"63",asSVG:!0}),t?.src&&h(O,{className:"mb-[18px]",image:t}),l?h(k,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&h("div",{className:"mt-auto w-full",children:h(ce,{href:n.href,target:n.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:h("div",{className:"text-xs-light font-medium py-[11px]",children:n.text})})})]}))),al={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},il=p((({children:e,activeCardIndex:t,columnWidth:l,version:n="comparison"})=>h("div",{className:"flex flex-1 overflow-hidden",children:h("div",{className:al[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),sl=p((({children:e})=>h("div",{className:"self-start flex flex-col",role:"row",children:h("div",{className:"flex",children:e})}))),ol=p((({colHeaders:e,activeCardIndex:t})=>u(sl,{children:[h("div",{className:nl,role:"columnheader"}),h(il,{activeCardIndex:t,columnWidth:336,children:e.map(((e,t)=>h(rl,{...e},String(t))))})]}))),cl=p((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>h("div",{className:`w-80 box-border flex flex-col ${tl} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?el:""}`,role:"cell",children:h("div",{className:`mx-7 h-full ${ll} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>hl(e,t,n)))})}))),dl=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),ml=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),hl=({label:e,description:t},l,n)=>u("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?h("h4",{className:dl(n),children:e}):null,t?h("div",{className:ml(n),children:t}):null]},String(l)),ul=(e=!1)=>`text-s py-7 ${ll} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,pl=p((({row:{header:e,data:t},activeCardIndex:l,isColoredFirstColumn:n,isFirstRow:r,isLastRow:a})=>u(sl,{children:[e?.title?h("div",{className:ul(a),children:e.title}):null,t?.length?h(il,{activeCardIndex:l,columnWidth:336,children:t.map(((e,t)=>h(cl,{cell:e,isFirstRow:r,isLastRow:a,isFillGradient:n&&0===t},String(t))))}):null]}))),xl=p((({rowData:e,isColoredFirstColumn:t,activeCardIndex:l,controls:n,isScrollAvailable:r})=>{const{inc:a,dec:i,canDec:s,canInc:o}=n;return u("div",{className:"relative",children:[e.map(((e,n,{length:r})=>h(pl,{row:e,isFirstRow:0===n,isLastRow:n+1===r,activeCardIndex:l,isColoredFirstColumn:t},String(n)))),r?h("div",{children:ue({handler:[a,i],isShown:[s,o],btnClass:["top-[108px]","top-11"],className:"right-7",isDisabled:!0})}):null]})})),bl=p((({columns:e,rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:r})=>{const a=e?.map((({header:e})=>e||{})),i=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:i.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),o=i.length>2,[c,d]=G({itemsCount:i.length,visibleItemCount:2});return u("div",{children:[u("div",{role:"table",children:[a?.length?h(ol,{colHeaders:a,activeCardIndex:c}):null,s?.length?h(xl,{rowData:s,isColoredFirstColumn:r,activeCardIndex:c,controls:d,isScrollAvailable:o}):null]}),o?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),gl=p((({className:e="",title:t,rowHeaders:l,columns:r,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!i),m=a((()=>d((e=>!e))),[]);return u(y,{className:`bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${e}`,...o,children:[h(k,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),h(bl,{columns:r,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?fl({isShowAllRow:c,onClick:m}):null]})})),fl=({isShowAllRow:e,onClick:t})=>h("div",{className:"pr-[50px]",children:u("div",{className:"flex w-full",children:[h("div",{className:nl}),h("button",{onClick:t,className:"mt-5 flex-1 border-main-stroke border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:h("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),vl=p((({className:e="",contacts:t,info:l,version:n="secondary",...r})=>u(y,{className:`${fe[n]} flex p-[50px] ${e}`,...r,children:[l?.length?Nl(l,n):null,t?.length?Nl(t,n):null]}))),Nl=(e,t)=>h("div",{className:"flex grow basis-0",children:e.map(((e,l)=>yl({column:e,index:l,version:t})))}),yl=({column:e,index:t,version:l})=>e?h("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:n,button:r},a)=>u("div",{className:"mt-6 first:mt-0",children:[h(Me,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"left",bgColorHeadline:l}),n?h(z,{className:"text-m-light mt-1.5 opacity-80",description:n}):null,r?h(ce,{className:"mt-6",...r}):null]},String(a))))},`col-${String(t)}`):null,wl=e=>"Image"===e?.errorContentType&&e?.image?h(O,{image:e.image}):"Code"===e?.errorContentType&&e.code?h("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,kl=p((({className:e="",title:t,subtitle:l,error:n,button:r})=>u("section",{className:`flex flex-col justify-center items-center mt-12 ${e}`,children:[h("div",{className:"flex justify-center py-20",children:wl(n)}),t?h(k,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?h("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,r?.text?h(ce,{className:"py-4 px-9",version:r?.version,...r,children:r.text}):null]}))),Cl=p((({className:e="",title:t="",buttons:l,image:n,children:r})=>u("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,u("div",{className:"flex grow w-full justify-between",children:[u("div",{className:"flex flex-col justify-between w-full",children:[h("div",{className:"h-full",children:r}),l?h("div",{className:"mt-auto pt-8",children:l}):null]}),n]})]})));var $l;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}($l||($l={}));const Sl=new Intl.NumberFormat("ru",{style:"currency",currency:$l.RUB}),Il=e=>e?Sl.format(e):"",Tl="text-left text-m-light text-secondary-text",Bl={USD:"DollarIcon",EUR:"EuroIcon"},jl=p((({className:e,exchangeCurrencyItems:t})=>u("table",{className:`h-fit w-fit ${e}`,children:[h("thead",{children:u("tr",{children:[h("th",{className:Tl,children:"Валюта"}),h("th",{className:`${Tl} pl-11`,children:"Купить"}),h("th",{className:`${Tl} pl-11`,children:"Продать"})]})}),h("tbody",{children:t.map((e=>Rl(e)))})]}))),Rl=e=>{const t=e?.currency?.currency;return u("tr",{className:"pb-1 text-h6",children:[h("td",{className:"pt-4",children:u("div",{className:"flex items-center",children:[t?h(O,{image:{icon:Bl[t]},width:"24",height:"24"}):null,h("span",{className:"ml-2",children:t})]})}),h("td",{className:"pt-4 pl-11",children:Il(e?.saleExchangeRate)}),h("td",{className:"pt-4 pl-11",children:Il(e?.buyExchangeRate)})]},t)},Vl=p((({className:e="",address:t})=>u("div",{className:`flex ${e}`,children:[h(O,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),u("div",{className:"ml-3",children:[t?h("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,h("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),_l=(e,t,l)=>{const n=Number(Ml(e))*Math.pow(t,l?-1:1);return Number.isInteger(n)?n:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(n)},Ml=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Dl=e=>{return(t=[[e=>e.value!==$l.RUB&&e.oppositeValue!==$l.RUB,()=>e.handleConvert(e.value,$l.RUB)],[e=>e.value===$l.RUB&&e.oppositeValue===$l.RUB,()=>e.handleConvert(e.value,$l.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function Ll(e){const t=s(null);return r((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const Al=p((({className:e="",isBorder:t=!0,label:l,options:i=[],value:s,onChange:o,placeholder:c=""})=>{const[d,m]=n(i[0]||{key:"",text:""}),[p,x]=n(!1),b=Ll(a((()=>x(!1)),[]));return r((()=>{m(s||{key:"",text:""})}),[s]),u("div",{className:`${e}`,ref:b,children:[l?h("span",{className:"mb-2 flex text-primary-text",children:l}):null,u("div",{className:"relative "+(p?"z-20":"z-10"),children:[u("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${El(t)}`,onClick:()=>x(!p),children:[h("p",{className:"p-4 pr-8 h-[56px] overflow-hidden text-ellipsis whitespace-nowrap",children:d?.text||c}),h(B,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(p?"":"rotate-180")})]}),i?.length?h("div",{className:`h-0 ${Ol(p)}`,children:h("div",{className:"bg-white text-l max-h-[256px] overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:i.map(Fl((e=>{m(e),x(!1),o(e)}),p,(e=>Boolean(e.key===d.key))))})}):null]})]})})),Ol=e=>e?"":"overflow-hidden",Fl=(e,t,l)=>(n,r)=>u("div",{onClick:()=>{e(n)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[h("span",{className:"min-h-6",children:n.text}),h(B,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",l(n)&&t?"":"hidden"].join(" ")})]},String(r)),El=e=>e?"border border-main-stroke rounded-md hover:border-primary-hover":"";function Ul(e){const{placeholder:t,rates:l,selected:n,value:r,setValue:a,setSelected:i}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};return u("div",{className:"relative flex",children:[h(Lt,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:r,onChange:a}),s.length?h(Al,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const zl=p((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:r})=>{const[a,i]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||$l.RUB,selectBuy:l?.[0]?.currency?.currency||$l.USD}),s=e=>{i((t=>({...t,...e})))};return u("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[Ul({placeholder:"Хочу продать",rates:l,selected:a.selectSell,setSelected:Pl(a,s,l),value:a.inputSell,setValue:e=>Gl(s,l)(e,a.selectSell,a.selectBuy)}),Ul({placeholder:"Получу",rates:t,selected:a.selectBuy,setSelected:Xl(a,s,t),value:a.inputBuy,setValue:e=>Hl(s,t)(e,a.selectBuy,a.selectSell)}),r?.text?h(ce,{className:"py-4 mr-1",version:r?.version,...r,children:r.text}):null]})})),Pl=(e,t,l)=>n=>{t({selectSell:n}),Dl({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,r=e.selectBuy)=>{Gl(t,l)(e.inputSell,n,r)}})},Xl=(e,t,l)=>n=>{t({selectBuy:n}),Dl({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,r=e.selectSell)=>Hl(t,l)(e.inputBuy,n,r)})},Gl=(e,t)=>(l,n,r)=>{e({inputSell:Ml(l),selectBuy:r});const a=t.find((e=>e.currency?.currency===r))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;a&&e({inputBuy:String(_l(l,a,n===$l.RUB)||"")})},Hl=(e,t)=>(l,n,r)=>{e({inputBuy:Ml(l),selectSell:r});const a=t.find((e=>e.currency?.currency===r))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;a&&e({inputSell:String(_l(l,a,n===$l.RUB)||"")})};const Wl=async e=>{const t=await Jl(),l=t?.code||"000";return{region:t,exchangeRates:await Yl(e,l)}},Jl=async()=>{try{return await ht("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},Yl=async(e,t)=>{try{return await ht(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},Zl=p((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:r}=function(){const{data:e}=ct("/api/v1/exchangerates",Wl);return e||{}}(),a=Kl(r?.exchangeRate?.currencies),i=a.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:$l.RUB}});const s=a.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:$l.RUB}}),h(y,{className:`bg-white text-primary-text font-sans p-9 box-border min-h-[320px] ${e}`,...n,children:h(Cl,{title:h(k,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:u("div",{className:"flex",children:[u("div",{className:"mr-14 pt-4",children:[a?h(jl,{className:"mb-[30px]",exchangeCurrencyItems:a}):null,h(Vl,{address:r?.address})]}),a.length&&i.length&&s.length?h(zl,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),Kl=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[];function ql(e,t={}){const{data:l}=ct(`/wcms-resources/${e}.json`,ht,{fallback:t});return l||{}}const Ql={"bg-white":"color",transparent:"white"},en={"bg-white":"text-primary-main",transparent:"text-white"},tn={"bg-white":"text-primary-text",transparent:"text-white"},ln=p((({className:e="",href:t,logo:l,children:n=l?.title,targetBlank:r,bgColor:a="bg-white",showTitle:i=!0})=>u("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:r?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[h(O,l?.image?.src?{image:l.image,className:en[a],width:"40",height:"45",asSVG:!0}:{image:{icon:l?.image?.icon||"LogoIcon",iconVersion:Ql[a]},className:`${en[a]} w-10`,width:"40",height:"45",asSVG:!0}),i?nn(n,a,l?.title):null]}))),nn=(e,t,l)=>h("span",{className:`${tn[t]} font-medium ml-2.5`,children:e||l||"Россельхозбанк"}),rn=p((({className:e,isMobile:t=!1})=>{const{term:l,setTerm:r}=(()=>{const[e,t]=n("");return{term:e,setTerm:e=>t(e)}})(),a=t?"text-s":"text-l-light",i=t?" placeholder-transparent":"h-full",s=t?"some search":void 0;return u("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:[h("div",{className:t?"w-5 h-5":"w-6 h-6",children:h(O,{image:"LoupeIcon",width:"24",height:"24"})}),l?null:h("label",{htmlFor:"search-bar-input",className:`text-secondary-text ${a}`,children:"Поиск по сайту"})]}),h("input",{id:"search-bar-input",className:`h-12 pl-12 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none pr-[6%] border-main-stroke hover:border-primary-hover active:border-primary-text focus:border-primary-text ${i}`,value:l,onChange:e=>r(e.target.value),type:"text",name:"search-bar-input",placeholder:s}),t?h("button",{className:"visible peer-placeholder-shown:invisible absolute top-2 right-3 w-6 h-6 p-1 bg-transparent cursor-pointer border-none",onClick:e=>{e.preventDefault(),r("")},children:h(O,{image:"CloseIcon",width:"24",height:"24"})}):h(ce,{version:"primary",text:"Найти",className:"invisible peer-focus:visible absolute top-[3px] right-1",onClick:e=>{e?.preventDefault(),console.log("click")},children:h("div",{className:"text-s px-9 py-2.5",children:"Найти"})})]})})),an=p((e=>h(rn,{...e}))),sn=p((({className:e="",items:t,hasButton:l})=>u("div",{className:e,children:[t?.length?t.map(on):null,l?h(ce,{version:"primary",className:"mb-6 w-full",href:"/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),on=(e,t)=>{const{type:l,text:n,description:r}=e;return u("div",{className:"mb-4",children:[h("div",{children:cn(l,n)}),h("div",{className:"mt-1 text-s-light text-secondary-text",children:r})]},String(t))},cn=(e,t="")=>{switch(e){case"tel":return h("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${dn(t)}`,children:t});case"email":return h("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return h("span",{children:t})}},dn=e=>e.replaceAll(/\D/g,""),mn=p((({className:e="",index:t,text:l,...n})=>{const r=q(),{href:a,target:i,onClick:s}=r(n);return h("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:a,target:i,onClick:s,children:l||`Документ ${t}`})})),hn=p((({className:e="",links:t})=>h("div",{className:e,children:t?.length?h("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>h(mn,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),un=e=>t=>e?.href===t?.href,pn=(e,t)=>{return(n=e,r=t,(n||[]).map((e=>r?.find(un(e))||e))).concat((l=e,(t||[]).filter((e=>!l?.find(un(e))))));var l,n,r},xn=p((({className:e="",items:t,fallback:l})=>{const n=q(),r=ql(c.SITEMAP||"sitemap",l),a=pn(r.topItems,t);return h("div",{className:`flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${e}`,children:a?.map(((e,t)=>bn(n(e),t)))})})),bn=(e,t)=>{const{text:l,items:n,href:r,target:a,onClick:i}=e;return u("div",{className:"flex flex-col w-1/5 last:w-1/4 gap-3.5",children:[h("a",{className:"block leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:r,target:a||"_self",onClick:i,children:l||`Раздел ${t}`}),n?.map(((e,t)=>h(gn,{...e,index:t},String(t))))]},String(t))},gn=p((({text:e,index:t,...l})=>{const n=q(),{href:r,target:a,onClick:i}=n(l);return h("a",{className:"block text-l-light text-secondary-text hover:text-primary-main no-underline",href:r,target:a||"_self",onClick:i,children:e||`Раздел ${t}`})})),fn=[{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"}],vn=p((({version:e="primary",...t})=>{const l=q(),{href:n,onClick:r}=l(t),{icon:a,label:i}=fn.find((({origins:e})=>e.some((e=>n?.includes(e)))))||{};if(!a)return null;return h("a",{className:`flex items-center justify-center rounded-md w-14 h-14 group box-border ${"secondary"===e?"bg-white hover:bg-secondary-hover":"border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main"} ${"primary"===e?"hover:text-black":""}`,href:n,"aria-label":i,target:"_blank",rel:"noopener noreferrer",onClick:r,children:a?h(O,{image:ve(a),imageClassName:"group-hover:text-white",width:"24",height:"24",asSVG:!0}):null})})),Nn=p((({className:e="",media:t,version:l,children:n})=>u("div",{className:"font-sans",children:[h("div",{className:`flex gap-2.5 ${e}`,children:t?.map(((e,t)=>h(vn,{version:l,...e},String(t))))}),h("span",{className:"text-s-light text-secondary-text",children:n})]}))),yn=p((({className:e="",index:t,...l})=>{const n=q(),{href:r,target:a,text:i,onClick:s}=n(l);return h("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:r,target:a,onClick:s,children:i||`Документ ${t}`})})),wn=p((({className:e="",links:t})=>u("div",{className:e,children:[h("div",{className:"pt-5",children:h("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?h("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>h(yn,{index:t,...e},String(t))))}):null]}))),kn="w-[204px]",Cn=p((({className:e,...t})=>{const l=t.page?.fallback,{documents:n,relatedEnterprises:r,contacts:a,socialMedia:i,mobileApps:s,topItems:o}=ql(c.FOOTER||"footer",l);return u(y,{tag:"footer",className:`p-9 bg-white font-sans ${e||""}`,...t,children:[u("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[h(ln,{className:kn}),h(an,{className:"grow"})]}),u("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[u("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[h(sn,{items:a,hasButton:!0}),h(Nn,{media:i,children:"Соцсети"}),h(Nn,{className:"mt-6",media:s,children:"Мобильное приложение"})]}),h(xn,{className:"pt-[3px]",items:o,fallback:l})]}),h(hn,{className:"mt-[98px]",links:r}),h(wn,{links:n})]})})),$n={normal:3,mini:4},Sn={normal:"min-w-[364px] w-[364px]",mini:"min-w-[260px] w-[260px]"},In={normal:380,mini:276},Tn={primary:"bg-primary-text",secondary:"bg-white",gray:"bg-secondary-text"},Bn={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},jn=p((({className:e="",isDotted:t=!0,children:l,version:n="primary",size:r="M"})=>u("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?h("div",{children:h("div",{className:`rounded-full align-middle inline-block ${Tn[n]} ${Bn[r]}`})}):null,h("span",{children:l})]}))),Rn={primary:"text-primary-text",secondary:"text-white",gray:"text-secondary-text"},Vn={S:"text-l-light",M:"text-h6",L:"text-h5"},_n={S:"ml-2",M:"ml-3",L:"ml-4"},Mn=p((e=>{const{className:t="",hasIndent:l,isDotted:n,itemClassName:r="",items:a,listItemSize:i="M",version:s="primary"}=e;return a?.length?h("section",{className:`${Rn[s]} ${Vn[i]} ${t} ${l?_n[i]:""}`,role:"list",children:a.map(((e,t)=>h(jn,{className:`${r} mb-1.5`,isDotted:n,version:s,size:i,children:e},String(t))))}):null})),Dn=p((({title:e,headlineSmallVersion:t="H6",description:l,additionalDescription:n,icon:r,items:a,button:i,version:s,isDotted:o=!0,align:c="center"})=>u("div",{className:`h-full flex flex-col justify-between ${b[c]}`,children:[u("div",{className:"flex flex-col h-full",children:[Ln(r,s),An(t,e),On(l,e),a?.length?En(a,o,s):null,Fn(n)]}),i?.text?Be({button:i,buttonClassName:"mt-6"}):null]}))),Ln=(e,t)=>u("div",{className:"flex justify-center",children:[e?.src?h(O,{className:"mb-5",image:e}):null,e?.icon?h(O,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:ve(e,t),asSVG:!0}):null]}),An=(e,t)=>t?h("div",{className:_e[e],children:t}):null,On=(e,t)=>e?h("div",{className:"text-l "+(t?"mt-2":""),children:e}):null,Fn=e=>e?h("div",{className:"text-m-light text-secondary-text mt-auto",children:e}):null,En=(e,t,l="primary")=>h(Mn,{className:"max-w-[308px] mt-2 text-s "+("primary"===l?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,version:l}),Un=p((({headlineVersion:e="M",cards:t=[],version:l="normal",activeCardIndex:n,...r})=>u("div",{children:[h(Me,{...r,className:"!p-0",headlineVersion:e,align:"center"}),h("div",{className:`flex mt-8 ${t?.length<=$n[l]?"justify-center":""} duration-1000`,style:{transform:`translateX(-${n*In[l]}px)`},role:"list",children:t?.map(((e,t)=>function({card:e,version:t},l){return h("section",{className:`box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between\n items-stretch ${Sn[t]} ${fe[e.version??"primary"]} w-full col-span-4`,role:"listitem",children:h(Dn,{...e})},String(l))}({card:e,version:l},t)))})]})));const zn=p((({cards:e=[],className:t="",version:l="normal",button:r,...a})=>{const[i,s]=n(0),o=e?.length>$n[l],c=o&&e?.length-i>$n[l],d=o&&i>0;return u(y,{className:`relative font-sans text-primary-text bg-white p-[42px] overflow-hidden flex flex-col ${t}`,...a,children:[h(Un,{cards:e,version:l,activeCardIndex:i,...a}),ue({handler:[()=>s(i-1),()=>s(i+1)],isShown:[d,c],btnClass:["left-8","right-8"],className:"top-1/2"}),o?u("div",{children:[h("div",{className:"absolute top-0 left-0 bottom-0 w-[82px] bg-opacity-from-white"}),h("div",{className:"absolute top-0 right-0 bottom-0 w-[82px] bg-opacity-to-white"})]}):null,r?Be({button:r,buttonClassName:"mt-8 mx-auto"}):null]})})),Pn=p((e=>h(zn,{...e,version:"normal"}))),Xn=p((({className:e="",title:t,description:l,calendar:n,...r})=>u(y,{className:`font-sans bg-white p-[50px] ${e}`,...r,children:[h(Me,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M",align:"center",...r}),n?Gn(n):null]}))),Gn=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),l=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return u("div",{className:"w-full flex flex-col justify-center mt-13",children:[h("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>Hn(e,t)))}),h("div",{className:"flex w-full",children:l.map(((e,t)=>u("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[h("div",{className:"flex",children:Wn(e)}),u("div",{className:"text-s-light text-primary-text mt-3",children:[h("span",{children:e.text})," ",h("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Hn=(e,t)=>e.month?.map(((e,l)=>h("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),Wn=e=>e.month?.map((e=>e.image?.src?h("div",{className:"h-[207px] border-r-[1px] pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:h(O,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Jn=(e,t,l=((e,t)=>t.startsWith(e)))=>l(W(e),W(H(e)?t.href:t.pathname)),Yn=e=>t=>Jn(t.href,e),Zn=e=>t=>t.items?.some(Yn(e))||Jn(t.href,e)||((e,t)=>J(e)===J(t.href))(t.href,e),Kn="font-sans text-s-light",qn=p((({className:e="",active:t,flat:l,ariaLabel:n,bgColor:r="bg-white",children:a,...i})=>{const s=q(),{href:o,target:c,text:d,onClick:m}=s(i);return h("a",{className:`${Qn(r,t,l)} ${e}`,href:o,target:c,onClick:m,rel:"noopener noreferrer","aria-label":n,children:h("span",{className:er(r,t,l),children:d||a})})})),Qn=(e,t=!1,l=!1)=>{let n="border-transparent";return t&&(n="rounded-md "+("bg-white"===e?"border-primary-main":"border-white")),`${n} inline-block border border-solid bg-transparent text-center no-underline ${l?"":"px-4 py-2"}`},er=(e,t=!1,l=!1)=>{if("transparent"===e)return`text-white hover:text-primary-hover ${Kn}`;return`${t?"text-primary-main":(l?"text-primary-text":"text-secondary-text")+" hover:text-primary-main"} ${Kn}`},tr=o("https://10.80.4.9");const lr=p((({className:e="",children:t,ariaLabel:l})=>h("button",{type:"button",className:`border-0 p-0 w-[24px] h-[24px] flex items-center bg-inherit cursor-pointer ${e}`,disabled:!0,"aria-label":l,children:t}))),nr={"bg-white":"text-primary-text hover:text-primary-main",transparent:"text-white"},rr={"bg-white":"text-secondary-light hover:text-secondary-hover",transparent:"text-white"},ar={"bg-white":"black",transparent:"white"},ir=p((({className:e,defaultLocation:t="Москва",bgColor:l="bg-white"})=>{const[i,s]=function(e){const[t,l]=n(e);return r((()=>{l(globalThis?.localStorage.getItem("location")||e)}),[e]),[t,a((()=>{tr.getFetcherAddress().then((t=>{const n=t||e;globalThis?.localStorage.setItem("location",n),l(n)}))}),[e])]}(t);return u("div",{className:`flex items-center ${e||""}`,children:[h(qn,{className:"mr-5",flat:!0,href:"#",text:i,ariaLabel:"Местоположение",onClick:s,bgColor:l}),h(qn,{className:"mr-7",flat:!0,href:"#",text:"Офисы и банкоматы",ariaLabel:"Список всех доступных офисов и банкоматов",bgColor:l}),h(lr,{className:`mr-5 group ${nr[l]}`,ariaLabel:"Поиск по сайту",children:h(O,{image:{icon:"LoupeIcon",iconVersion:ar[l]},className:"h-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0 pointer-events-none",asSVG:!0})}),h(lr,{className:`${rr[l]} group min-w-[32px] min-h-[32px]`,ariaLabel:"Дополнительные ссылки",children:h(O,{image:{icon:"GridIcon",iconVersion:ar[l]},className:"h-full bg-main-divider/20 rounded-full pointer-events-none",imageClassName:"group-hover:text-primary-hover group-hover:invert-0",asSVG:!0})})]})})),sr={"bg-white":"bg-primary-text",transparent:"bg-white"},or=p((({className:e,items:t,activeItem:l,bgColor:r})=>{const i=q(),[s,o]=n(!1),c=a((()=>o((e=>!e))),[]),d=Ll(a((()=>o(!1)),[]));return u("div",{className:`${s?"bg-white rounded-md shadow-blue-gray/24":""} ${e||""}`,ref:d,children:[h("button",{className:"flex justify-between items-center cursor-pointer h-6 ml-6","aria-label":""+(s?"Скрыть другие разделы":"Показать другие разделы"),onClick:c,children:Array(3).fill(r).map(cr)}),h("div",{className:"flex flex-col rounded-md bg-white p-6 pb-2 "+(s?"":"hidden"),"aria-hidden":!s,children:t?.map(((e,t)=>h("a",{className:"text-l-light pb-4 hover:text-primary-main "+(e===l?"text-primary-main":""),...i(e),children:e.text},e.href||String(t))))})]})})),cr=(e,t)=>h("div",{className:`w-[3px] h-[3px] rounded mr-1 ${sr[e]}`},String(t)),dr="absolute left-0 -bottom-3 w-full h-[2px]",mr=p((({className:e="",active:t,bgColor:l="bg-white",dataItemName:n,children:r,...a})=>{const i=q(),{href:s,target:o,text:c,onClick:d}=i(a);return u("a",{className:`relative inline-block bg-transparent text-center no-underline ${e}`,href:s,target:o,"data-item-name":n,onClick:d,children:[h("span",{className:hr(l,t),children:c||r}),t?h("div",{className:ur(l,t)}):null]})})),hr=(e,t=!1)=>{let l="text-white";return"bg-white"===e&&(l=t?"text-primary-main":"text-primary-text hover:text-primary-main"),`${l} font-sans text-l-light`},ur=(e,t=!1)=>t?`${"bg-white"===e?"bg-primary-main":e} ${dr}`:dr,pr=p((({className:e,active:t,bgColor:l,observerOptions:n,onVisibilityChange:r,children:i,...s})=>{const o=f(a((e=>{if(!e.length||!r)return;const t=e[e.length-1];r(t.isIntersecting)}),[r]),n);return h("span",{ref:o,children:h(mr,{className:e,active:t,bgColor:l,...s,children:i})})})),xr=p((({subItems:e=[],bgColor:t})=>{const l=(e=>(t=[])=>{const l=t?.filter(Yn(e));return l?.length?(n=e=>e.href?.length||0,e=>e.reduceRight(((e,t)=>n(e)>n(t)?e:t)))(l):void 0;var n})(K())(e),[r,a]=n(e.length),o=e.slice(r),c=s(null),d=i((()=>({threshold:1,root:c.current})),[c.current]),m=i((()=>e.map(((e,t)=>e=>{a(e?br(t):gr(t))}))),[e]);return u("nav",{className:"relative mt-6",children:[h("div",{ref:c,className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:e.map(((e,n)=>h(pr,{className:"mr-8 "+(r-1<n?"invisible":""),active:e===l,bgColor:t,observerOptions:d,onVisibilityChange:m[n],...e},String(n))))}),o.length?h(or,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:o,activeItem:l,bgColor:t}):null]})})),br=e=>t=>Math.max(t,e+1),gr=e=>t=>Math.min(t,e),fr={"bg-white":"bg-main-divider",transparent:"bg-main-divider opacity-30"},vr=p((({bgColor:e="bg-white",className:t="",showSubMenu:l=!0,...n})=>{const r=K(),{topItems:a,logo:i,defaultLocation:s}=ql(c.SITEMAP||"sitemap",n.page?.fallback),o=l?Nr(a,r):null,d=a?.map(((t,l)=>h(qn,{active:t===o,"aria-label":t.text,bgColor:e,...t},String(l))));return h(y,{tag:"header",className:`pt-6 px-20 ${e} ${t} ${l&&o?.items?.length?"pb-4":"pb-5"}`,...n,children:u("div",{className:"container",children:[u("div",{className:"flex items-center",children:[h(ln,{className:"mr-8",bgColor:e,logo:i}),d,h(ir,{className:"ml-auto",defaultLocation:s,bgColor:e})]}),h("div",{className:`mt-6 h-[1px] ${fr[e]}`}),l&&o?.items?.length?h(xr,{subItems:o.items,bgColor:e}):null]})})})),Nr=(e,t)=>{const[l]=e||[];return e?.find(Zn(t))||l},yr=p((({className:e="",cards:t=[],button:l})=>{const[r,a]=n(0),[i,s]=n(0),o=t?.length??0,c=t?.length>2&&o>i+2,d=o===i+2,m=i>0,p=t[r]?.href;return u("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[u("div",{className:"relative overflow-hidden",children:[o?wr({tabsShift:i,cards:t,activeSlideIndex:r,isLastShift:d,setActiveSlideIndex:a}):null,ue({handler:[()=>s(i-1),()=>s(i+1)],isShown:[m,c],btnClass:["left-[50px]","right-[50px]"],className:"top-[62px]"}),m?h("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,c?h("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),h(ce,{className:"w-[240px] text-center",version:"primary",...l,href:p})]})}));function wr({tabsShift:e,cards:t,activeSlideIndex:l,isLastShift:n,setActiveSlideIndex:r}){const a=n?460*e-240:460*e,i=t.length>2?"justify-start":"justify-center";return h("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-[50px]",children:h("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${i}`,children:t.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:l,onClick:n}){const r=t===l;return u("button",{type:"button",onClick:n,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(r?"shadow-dark-blue/42 border-primary-main":"ease-in duration-300 border-main-stroke"),children:[e?.icon?h(O,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,u("div",{className:"flex gap-3.5",children:[e?.sum?kr("страховая сумма",e.sum):null,e?.fee?kr("страховой взнос",e.fee):null]}),Cr(r)]},String(t))}({slide:e,i:t,activeSlideIndex:l,onClick:()=>r(t)})))})})}function kr(e,t){return u("div",{className:"flex flex-col text-left whitespace-pre",children:[u("span",{className:"text-h6",children:[Ge(t)," ₽"]}),h("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Cr(e){return e?h(O,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:"DoneIcon",width:"24",height:"24"}):null}const $r=p((({className:e="",title:t,insuranceTabs:l=[],button:r,...a})=>{const[i,s]=n(0);return u(y,{className:`box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${e}`,...a,children:[t?h(k,{className:"text-center mb-8",title:t,headingType:"h3"}):null,l?.length>1?h("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,activeSlideIndex:l,onClick:n}){return h("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(t===l?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,activeSlideIndex:i,onClick:()=>s(t)})))}):null,h("div",{className:"flex",style:{transform:`translateX(-${i}00%)`},role:"list",children:Sr({insuranceTabs:l,button:r})})]})})),Sr=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>h(yr,{button:t,cards:e},String(l)))):null};const Ir={primary:"border-main-stroke",secondary:"border-white/50"},Tr={double:"flex gap-y-2 gap-x-10 flex-wrap",single:"flex gap-y-2 flex-col"},Br=p((({className:e="",columnsMode:t="double",description:l,additionalDescription:n,image:r,cardList:a,title:i,version:s="primary"})=>{const o=i?h(k,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=r?.src?h(O,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return h("section",{className:`relative overflow-hidden text-left border border-solid box-border\n p-9 min-w-[697px] min-h-[319px]\n ${Ir[s]}\n ${e}`,role:"listitem",children:h(Cl,{className:"flex justify-between",title:o,image:c,children:u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex itens-center justify-between mb-4",children:[l?h(z,{className:"text-h6",description:l}):null,n?u("div",{className:"text-m-light text-secondary-text",children:[" ",n," "]}):null]}),a?.length?h("div",{className:`${Tr[t]}`,role:"list",children:jr(a,t)}):null]})})})})),jr=(e,t)=>e.map(((e,l)=>{return u("div",{className:"double"===t?"basis-[calc(50%-20px)]":"",role:"listitem",children:[e?.parameter?h("span",{className:"pr-2.5 "+(n=t,"single"===n?"text-h6":"text-l"),children:e.parameter}):null,e?.parameterDesccription?h("span",{className:"text-m-light text-secondary-text",children:e.parameterDesccription}):null]},String(l));var n})),Rr="absolute top-0 bottom-0 w-[84px]",Vr=p((({cards:e=[],className:t="",title:l,version:r="primary",...a})=>{const[i,s]=n(0);return u(y,{className:`relative font-sans p-9 overflow-hidden text-center ${fe[r]} ${t}`,...a,children:[l?h(k,{headingType:"h3",className:"mb-9",title:l}):null,u("div",{children:[h("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*i}px)`},role:"list",children:e?.length?e.map(_r(t,r)):null}),Mr({cardsCount:e.length,activeCardIndex:i,setActiveCardIndex:s})]}),h("div",{className:`${Rr} left-0 ${"secondary"===r?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${Rr} right-0 ${"secondary"===r?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),_r=(e,t)=>(l,n)=>h(Br,{className:e,version:t,...l},String(n)),Mr=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:l})=>{const n=e>1;return h("div",{children:ue({handler:[()=>l(t-1),()=>l(t+1)],isShown:[n&&t>0,n&&e-t>1],btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})})};function Dr(e){return t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:n},l):[l]),[])}const Lr={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},Ar={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},Or=p((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:r,investmentColumns:a,...i}=e,s=a?[...a]:[];return r&&s.unshift(r),h(y,{className:`font-sans bg-white px-9 py-12 ${t}`,...i,children:u("div",{className:"container text-m-light",children:[s?.length?u("div",{children:[u("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[Dr(h("div",{className:"w-px h-4 bg-main-stroke"}))(s.map(Fr)),h("div",{className:"absolute right-[30px] w-px h-4 bg-main-stroke"})]}),h("div",{className:"border-t border-main-stroke -mt-2 ml-9 mr-8"}),h("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(zr)})]}):null,l?.length?h(Mn,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:n}):null]})})})),Fr=(e,t,l)=>{const n=1===t,r=t===l.length-1;return h("div",{className:`${Er(n,r,e.cells)}`,children:e.cells?.length?h("div",{className:"w-full "+(r?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(Ur)}):null},`column_${t}`)},Er=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-2.5",l.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),Ur=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?h("div",{className:`flex-1 flex items-center justify-center relative py-2 ${Ar[l]} ${Lr[n]} ${"XS"===l?"px-3":"px-11"}`,children:h("div",{className:"text-center",children:e.text})},`cell_${t}`):null},zr=(e,t,l)=>{const n=0===t,r=t===l.length-1;return h("div",{className:`flex-1 max-w-[180px] text-center px-2 ${n?"pl-9":""} ${r?"mr-3.5":" "}`,children:e.title},`title_${t}`)},Pr=p((({className:e,iconClassName:t,textClassName:l,suffixClassName:n,doc:r,icon:a})=>{const{text:i,fileSize:s,...o}=r;return u("a",{className:e,role:"link",...o,children:[a?h(O,{className:t,image:ve(a),width:"24px",height:"24px",asSVG:!0}):null,i?u("span",{className:l,children:[i,h("span",{className:n,children:o?.href&&Xr(Gr(o.href),s)})]}):null]})})),Xr=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Gr=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Hr=p((({className:e="",doc:t,icon:l})=>h(Pr,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover:text-primary-main",doc:t,icon:l}))),Wr=p((({className:e,documents:t,columnsMode:l="double",icon:n})=>t?.length?h("div",{className:e,role:"list",children:t.map(((e,t)=>h("div",{className:"double"===l?"basis-[calc(50%-20px)]":"",role:"listitem",children:h(Hr,{className:"group flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:n})},String(t))))}):null)),Jr={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},Yr=p((({className:e="",title:t,description:l,align:n="center",documents:r,icon:a={icon:"DocIcon"},columnsMode:i="double",...s})=>u(y,{className:`font-sans text-primary-text p-[50px] bg-white ${e}`,...s,children:[h(Me,{className:"!p-0",title:t,description:l,align:n,headlineVersion:"M",as:"h2",...s}),h(Wr,{className:`mt-8 ${Jr[i]}`,columnsMode:i,documents:r,icon:a})]}))),Zr=p((e=>h(zn,{...e,version:"mini"}))),Kr=e=>{const t="col-span-",l=e.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function qr(e=""){const t=Kr(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Qr=p((({className:e="",title:t="Мобильное приложение",qr:l,buttons:n,version:r="primary",items:a,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="primary"===r?"text-primary-text":"",p="secondary"===r?"p-3.5 min-w-[120px]":"min-w-[92px]",x=n?.map((e=>({...e,className:"min-w-[168px]"})));return u(y,{className:`flex justify-between font-sans p-9 box-border relative min-h-[320px]\n ${qr(e)}\n ${fe[r]}\n ${e}`,...d,children:[u(Cl,{className:"z-10",title:t?h(k,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-6 w-full\n ${m} ${b[o]}`}):null,buttons:n?.length?h(Te,{buttons:x,className:"flex gap-4",...d}):null,children:[ta(c),u("div",{className:"flex flex-1 items-center",children:[l?.src?h("div",{className:`flex justify-center mr-5 bg-white rounded-md ${p}`,children:h(O,{className:"w-fit",image:l})}):null,ea(r,a)]})]}),i?.src?h("div",{className:"absolute right-0 bottom-0",children:h(O,{image:i})}):null]})})),ea=(e,t)=>t?.length?h(Mn,{items:t,itemClassName:"text-l-light mb-2 last:mb-0",version:e}):h("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),ta=e=>e?h("p",{className:"text-xl-light mb-5",children:e}):null;function la(e,t,l){t.geoObjects.removeAll();const n=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),r=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),a=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));r.add(a),t.geoObjects.add(r),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const na={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"flex items-center justify-center",font:"text-center font-sans"},ra=e=>h("a",{className:`select-none cursor-pointer px-9 h-12 bg-white bg-primary-main text-white ${Object.values(na).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),aa={border:"border border-transparent rounded-md",position:"relative flex items-center",font:"text-center font-sans",shadow:"shadow-[0_4px_25px_rgba(0,0,0,0.07)]"},ia=(e,t,l)=>u("div",{className:`${Object.values(aa).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[h(B,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",asSVG:!0,className:"absolute left-4"}),h("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const n=t.target?.value?t.target?.value.toLowerCase():"";if(n){const t=e.filter((e=>e.text.toLowerCase().indexOf(n)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),sa={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center",font:"text-center font-sans"},oa=(e,t,l)=>h("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(sa).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:h(B,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),ca=e=>globalThis[e];const da=()=>function(e,t){const[l,i]=n(),s=a((()=>i(ca(e))),[e]);return r((()=>{const l=document.getElementById(t);if(!l){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!ca(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY}&lang=ru_RU`),ma={focus:"focus:border-primary-focus focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center",font:"text-center font-sans text-l"},ha=p((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return h("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(ma).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:h(B,{name:l,width:"20",height:"16"})})})),ua=[{coords:[55.77,37.46],text:"Трактир"},{coords:[55.66,37.48],text:"Трактор"},{coords:[55.65,37.42],text:"Ресторан"},{coords:[55.64,37.54],text:"Музей"},{coords:[55.54,37.52],text:"Библиотека"},{coords:[55.53,37.56],text:"Школа"},{coords:[55.61,37.61],text:"Аптека"},{coords:[55.8,37.58],text:"Бар"},{coords:[55.71,37.35],text:"Институт"},{coords:[55.74,37.57],text:"Университет"},{coords:[55.58,37.69],text:"Больница"},{coords:[55.57,37.7],text:"Цирк"},{coords:[55.55,37.64],text:"Магазин"},{coords:[55.5,37.75],text:"Булочная"},{coords:[55.81,37.73],text:"Полиция"},{coords:[55.73,37.68],text:"Салон красоты"},{coords:[55.86,37.76],text:"Баня"},{coords:[55.38,37.69],text:"Гараж"},{coords:[55.91,37.5],text:"Дом"},{coords:[55.62,37.32],text:"Прачечная"},{coords:[55.85,37.41],text:"Стадион"},{coords:[55.67,37.24],text:"Вокзал"},{coords:[55.79,37.41],text:"Кафе"}],pa={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-focus focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},xa=p((({points:e,className:t="",zoom:l=5,showSearchField:a=!1})=>{const i=s(null),o=da(),[c,d]=n(),[m,p]=n(va(ua)),x=ba(e);if(r((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:x,zoom:l,controls:[],suppressMapOpenBlock:!0}),la(o,i.current,m)}))}),[o,i,m]),r((()=>{if(i.current&&m&&o){const e=m.length<1?va(ua):m;la(o,i.current,e)}}),[i,m,o]),!o)return null;const b=c?"z-[100000]":"z-10";return u("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[h("div",{className:`absolute flex left-2 top-4 w-[50%] ${b}`,children:a?ia(ua,0,(e=>{if(e){const t=va(e);p(t)}})):ra(x)}),h("div",{className:`${Object.values(pa).join(" ")} ${b} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;c?e.exitFullscreen():e.enterFullscreen(),d(e.isFullscreen())},children:h(B,{name:"FullScreenIcon",width:"16",height:"16"})}),u("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${b}`,children:[h(ha,{yandexMaps:i}),h(ha,{yandexMaps:i,direction:"out"})]}),oa(i.current,o,`right-2 top-80 ${b}`)]})})),ba=e=>[fa(ga(e,0)),fa(ga(e,1))],ga=(e,t)=>e.map((e=>e[t])),fa=e=>e.reduce(((e,t)=>e+t))/e.length,va=e=>e?e.map((e=>e.coords)):null,Na=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],ya=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?u("div",{className:"flex",children:[h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:l||null}),h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-golden border-golden",children:e?n:null})]}):h("div",{className:"flex",children:h("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},wa=({icon:e,title:t,distance:l,time:n},r)=>u("div",{className:"flex mr-4",children:[h(B,{name:e,width:"16",height:"16",asSVG:!0,className:"mr-1"}),t?u("span",{className:"text-m",children:[t," "]}):null,u("span",{className:"text-m-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${r}`),ka=({title:e,status:t,workTime:l,lunchHour:n,description:r},a)=>u("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[u("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[h("div",{children:e}),t?null:h("div",{className:"text-m-light text-error",children:"Выходной"}),t&&l?h("div",{children:l}):null]}),t&&n?Ca(n):null,r?h("div",{className:"pb-1 text-s-light text-secondary-text",children:r}):null]},`day${a}`),Ca=e=>/\d+/gi.test(e)?u("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[h("div",{children:"Перерыв"}),h("div",{children:e})]}):h("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:h("div",{children:e})}),$a={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null};const Sa=e=>e?mt(e,{method:"GET"}):{},Ia=p((({className:e=""})=>{const t=function(e){const{data:t}=ct(e?`/api/v1/branches?regionCode=${e}`:void 0,Sa);return console.warn("WARNING!!! Hook useOfficeMap RETURN MOCK object for testing!"),console.log("Hook useOfficeMap get this data:",t),$a}("000"),{name:l,address:n,gpsLatitude:r,gpsLongitude:a,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:p,workingSunday:x}=i,{workTime:b,lunchHour:g,workTimeSaturday:f,lunchHourSaturday:v}=i,N=r&&a?[r,a]:null,y=[{title:"Понедельник",status:s,workTime:b,lunchHour:g},{title:"Вторник",status:o,workTime:b,lunchHour:g},{title:"Среда",status:c,workTime:b,lunchHour:g},{title:"Четверг",status:d,workTime:b,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:b,lunchHour:g},{title:"Суббота",status:p,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),k=w>0?y[w-1]:y[6];return u("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[u("div",{className:"flex flex-col px-12 pt-12",children:[u("div",{className:"flex justify-between",children:[h("div",{className:"text-h2",children:l}),ya(k)]}),u("div",{className:"flex text-l-light pt-4",children:[h(B,{name:"GeolocationIcon",width:"24",height:"24",asSVG:!0,className:"pr-1"}),n]}),h("div",{className:"flex pt-4",children:Na.map(wa)})]}),u("div",{className:"flex justify-between pt-8",children:[h("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?h(xa,{points:[N],className:"h-full"}):null}),h("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(ka)})]})]})})),Ta=p((({className:e="",title:t,servicesList:l,...n})=>u(y,{className:`font-sans bg-white p-8 flex flex-col ${e}`,...n,children:[t?h(k,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?h("ul",{className:"list-none m-0 p-0",children:l.map(Ba)}):null]}))),Ba=(e,t)=>u("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?h(O,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:ve(e.icon)}):null,e.label?h("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),ja=p((({className:e="",children:t,...l})=>h(y,{className:`font-sans text-primary-text ${e}`,...l,children:t})));ja.childrenTypes=["OtherProductsItem"];const Ra=p((({className:e="",label:t,icon:l,dataTheme:n="",onClick:r})=>u("button",{className:["border border-transparent bg-primary-main font-sans text-white cursor-pointer","hover:bg-primary-hover focus:border-primary-text active:bg-primary-active outline-none","flex justify-center w-full px-0 py-5",e].join(" "),"data-theme":n,onClick:r,children:[h("span",{className:"text-h4 pr-3",children:t}),l?h(O,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),Va=({isUnfolded:e,onToggle:t})=>h(Ra,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),_a=["ArrowDownIcon","ArrowUpIcon"],Ma=p((({className:e,page:t,ancestors:l,label:n="",isUnfolded:r,children:a})=>{const{colorPalette:i}=function(e,t){const{content:l}=function(e,t){const[l]=(e||[]).map((e=>e)).reverse().find((([e])=>e&&"type"in e&&(!t||t===e.type)))||[];return l||{}}(e);return l||t}(l,{});return h("div",{className:`border-0 border-b border-solid border-main-divider ${e}`,children:h(S,{unfoldedByDefault:r,renderFoldableSection:({isUnfolded:e})=>h("div",{className:"box-border",children:h(I,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:a})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>h(Ra,{label:n,icon:_a[Number(e)],dataTheme:t?.colorPalette||i,onClick:l})})})}));Ma.childrenTypes=[];const Da={primary:"text-primary-text",secondary:"text-white"},La={primary:"text-secondary-text",secondary:"text-white"},Aa=p((e=>{const{className:t="",icon:l,label:n,description:r,version:a="primary",benefitsVersion:i="normal"}=e,s="white"===i?"secondary":"primary";return u("div",{className:`flex gap-5 ${r?"items-start":"items-center"} ${t}`,children:[l?h("div",{className:Oa(a,i),children:h(O,{className:"w-6 h-6",image:ve(l,s),asSVG:!0})}):null,u("div",{className:"gap-0.5",children:[n?h("div",{className:`text-h6 ${Da[a]}`,children:n}):null,r?h("div",{className:`text-m-light ${La[a]}`,children:r}):null]})]})}));function Oa(e,t){let l="bg-primary-main text-black";return"secondary"===e?l="bg-white/30 text-black":"normal"===t&&(l="bg-secondary-light text-primary-main"),`w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${l}`}const Fa=p((({className:e="",title:t,description:l,image:n,benefits:r,version:a="primary",sum:i,monthLimit:s,directionRight:o=!1,...c})=>u(y,{className:`relative font-sans py-12 px-24 ${fe[a]} ${e}`,...c,children:[h(Me,{className:"!p-0",title:t,description:l,headlineVersion:"M",bgColorHeadline:a,align:"center",...c}),u("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[n?.src?h(O,{className:o?"order-2":"",image:n}):null,u("div",{className:"w-[558px] m-auto",children:[r?.length?h("div",{className:"flex flex-col gap-4",children:r.map(Ea(a))}):null,Ua(Number(i),Number(s))]})]})]}))),Ea=e=>(t,l)=>h(Aa,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));function Ua(e,t){return e||t?u("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?za("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?za("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function za(e,t=0,l=!1){return u("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${l?"w-fit":"w-full"}`,children:[h("span",{className:"text-secondary-text text-l-light",children:e}),u("span",{className:"text-primary-main text-h6",children:[Ge(t)," ₽"]})]})}function Pa(e=""){const t=Kr(e);return t<=4?"S":t<=8?"M":"L"}function Xa(e=""){const t=Kr(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Ga=p((({className:e,title:t,description:l="Блок в разработке...",...n})=>u(y,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${Xa(e)} ${qr(e)} `,...n,children:[h(Me,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:Pa(e),...n}),h("figure",{className:"m-0 min-w-[80%]",children:Ha()})]}))),Ha=(e=3)=>Ja(100,e).map((e=>Math.floor(e))).map(Wa),Wa=(e,t)=>h("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Ja=(e,t)=>[e].concat(t>0?Ja(e/1.618,t-1):[]),Ya=p((({className:e="",children:t,...l})=>{const n=q(),{text:r,href:a,target:i,onClick:s}=n(l);return a?h("a",{className:`no-underline ${e}`,href:a,target:i,onClick:s,children:h("span",{className:e,children:r||t})}):h("span",{className:e,children:r||t})})),Za=(e="primary",t="normal")=>({icon:l,label:n,description:r},a)=>h(Aa,{icon:l,label:n,description:r,version:e,benefitsVersion:t},String(a)),Ka=p((({className:e="",title:t,headlineVersion:l="L",description:n,benefitsCountOfRow:r=3,benefits:a,benefitsVersion:i,buttons:s,image:o,items:c,version:d="primary",isDotted:m=!0,textBlockClassName:p="",...x})=>{const b=a?.filter((e=>e.label))?.length,g=qa(r);return u("div",{className:`flex grow justify-between items-stretch h-full ${e}`,children:[u("div",{className:`flex flex-col ${p}`,children:[h(Me,{title:t,description:n,className:"!p-0 max-w-[600px]",bgColorHeadline:d,headlineVersion:l,align:"left",...x}),u(Cl,{buttons:s?.length?h(Te,{buttons:s,className:"flex gap-4",...x}):null,children:[b?h("div",{className:g,children:a.map(Za(d,i))}):null,c?.length?h(Mn,{className:"mt-5 text-h6",items:c,itemClassName:"mb-[7px]",version:d,isDotted:m}):null]})]}),o?.src&&h(O,{className:"mt-[-50px]",image:o})]})})),qa=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function Qa(e,t,l){const{text:n,href:r,target:a,onClick:i}=e,s="primary"===t?"white":"black",o=e?.icon||{icon:"ArrowLeftIcon"};return u("div",{className:`flex items-center cursor-pointer ${l}`,onClick:i,children:[h(ce,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:n,href:r,target:a,children:h(O,{className:"w-4 h-4",image:{...o,iconVersion:o.iconVersion||s},asSVG:!0})}),n?h("span",{className:"text-m",children:n}):null]})}const ei={primary:"text-secondary-text",secondary:"text-white/80"},ti=p((e=>{const{className:t="",breadcrumbs:l,backwardButton:n,version:r="primary",...a}=e,i="primary"===r?r:"white";return u(y,{className:`font-sans overflow-hidden p-[50px] flex flex-col box-border min-h-[454px] ${fe[r]} ${t}`,...a,children:[n?.text?Qa(n,i,"mb-10 -mt-2.5"):null,l?.length?h("div",{className:"text-xs-light mb-6",children:Dr(h("span",{className:`mx-2 ${ei[r]}`,children:"/"}))(l.map(((e,t)=>h(Ya,{className:ei[r],...e},String(t)))))}):null,h(Ka,{version:r,...a})]})})),li={primary:{title:"text-secondary-text",text:"text-secondary-text"},secondary:{title:"text-white",text:"text-white/80"}},ni=p((({className:e="",slides:t=[],version:l="primary",...r})=>{const a=t.map((e=>e.nav)),i=t.map((e=>e.productBlock)),[s,o]=n(0);return u(y,{className:`box-border pt-[50px] overflow-hidden relative font-sans w-100 mb-6 ${e}\n ${fe[l]}`,...r,children:[h("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${s}00%)`},role:"list",children:i.map(((e,t)=>function(e,t){const{version:l}=e,n=l?li[l].title:"";return h("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:h("div",{className:"flex grow",children:h(Ka,{className:`pl-[50px] z-10 ${n}`,textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...r,version:l},t)))}),h("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:a.map(((e,t)=>function({slide:e,i:t,activeSlideIndex:l,onClick:n,version:r}){const a=t===l,i=a?"bg-white shadow-dark-blue/42 min-w-[350px] border-none p-6":`min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur\n ${fe[r]}`,s=a?"text-primary-text !text-h6 p-2":`text-l pb-1 ${li[r].title}`,o=a?"text-secondary-text text-l-light":`text-m-light ${li[r].text}`;return h("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative overflow-hidden border border-white/50 cursor-pointer text-left mx-1 grow basis-0\n ${i} ${Ir[r]}\n `,children:u("div",{className:"border-0 px-6",children:[h("div",{className:`last:pb-0 ${s}`,children:e?.title}),h("div",{className:`text-secondary-text ${o}`,children:e?.description})]})},String(t))}({slide:e,i:t,activeSlideIndex:s,onClick:()=>o(t),version:l})))})]})}));const ri=p((({className:e="",title:t,headlineVersion:l="S",description:n,additionalDescription:r,benefits:a=[],buttons:i,image:s,version:o="primary",...c})=>u(y,{className:`overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]\n ${e} ${fe[o]} ${Xa(e)}`,...c,children:[h(Me,{className:"!p-0 !bg-transparent z-10 "+(t||n?"mb-3.5":""),as:"h2",title:t,description:n,headlineVersion:l,bgColorHeadline:o,align:"left",...c}),ai(a,o,s),r?si(r,s,o):null,i?.length?h(Te,{buttons:i,className:"flex self-end mt-5 gap-4 z-10 text-l"}):null,s?.src?h(O,{className:"absolute right-0 bottom-0",image:s}):null]})));function ai(e,t,l){return h("div",{className:`z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline\n ${l?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:e.length?e.map(ii(t)):null})}function ii(e="primary"){const t={primary:"text-secondary-text",secondary:"text-white"};return function(l,n){const{label:r="",description:a=""}=l;return[h("div",{className:"text-h6",children:r},`label-${n}`),h("div",{className:`text-m-light ${t[e]}`,children:a},`desc-${n}`)]}}function si(e,t,l="primary"){return h("div",{className:`text-m-light mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"} ${{primary:"text-secondary-text",secondary:"text-white"}[l]}`,children:e})}const oi=p((({className:e="",title:t="Акции и спецпредложения",date:l,description:n,buttons:r=[],version:a="primary",...i})=>h(y,{className:`bg-white text-primary-text font-sans p-9 box-border ${e} ${fe[a]} ${Xa(e)} ${qr(e)} `,...i,children:h(Cl,{title:t?h(Me,{title:t,className:"!p-0 max-w-[600px]",headlineVersion:Pa(e),bgColorHeadline:a,align:"left",as:"h2",...i}):null,buttons:r?.length?h(Te,{buttons:r,className:"flex gap-3"}):null,children:u("div",{className:"mt-1.5",children:[l?h("div",{className:"text-s mb-2",children:ci(l)}):null,h("div",{className:"text-l",children:n})]})})})));function ci(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const di=p((({className:e="",title:t,description:l,items:n,image:r,version:a,socialMedia:i,button:s})=>{const o=t?h(k,{headingType:"h5",as:"h3",className:"mb-3.5 z-10",title:t}):null,c=r?.src?h(O,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return h("section",{className:`relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${e}`,role:"listitem",children:h(Cl,{className:"flex justify-between",title:o,image:c,children:u("div",{className:"h-full flex flex-col justify-between",children:[l?h(z,{className:"mb-2",description:l}):null,n?.length?h(Mn,{className:"text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]",items:n,version:a}):null,i?h(Nn,{className:"pt-10 pb-0",media:i,version:a}):null,s?.text?h("div",{className:"pt-2",children:Be({button:s,buttonClassName:"mt-16"})}):null]})})})})),mi="absolute top-0 bottom-0 w-[84px]",hi=p((({recommendations:e=[],className:t="",title:l,version:r="primary",...a})=>{const[i,s]=n(0);return u(y,{className:`relative font-sans p-9 overflow-hidden text-center ${fe[r]} ${t}`,...a,children:[l?h(k,{headingType:"h3",className:"mb-6",title:l}):null,u("div",{children:[h("div",{className:"flex duration-1000 gap-3.5",style:{transform:`translateX(-${525*i}px)`},role:"list",children:e?.length?e.map(((e,t)=>h(di,{version:r,className:Ir[r],...e},String(t)))):null}),ui({cardsCount:e.length,activeCardIndex:i,setActiveCardIndex:s})]}),h("div",{className:`${mi} left-0 ${"secondary"===r?"bg-opacity-from-main":"bg-opacity-from-white"}`}),h("div",{className:`${mi} right-0 ${"secondary"===r?"bg-opacity-to-main":"bg-opacity-to-white"}`})]})})),ui=({cardsCount:e,activeCardIndex:t,setActiveCardIndex:l})=>{const n=e>2;return h("div",{children:ue({handler:[()=>l(t-1),()=>l(t+1)],isShown:[n&&t>0,n&&e-t>2],btnClass:["left-8","right-8"],className:"top-1/2 mt-3"})})},pi=p((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:n=!0,version:r="primary",children:a})=>h("div",{className:`border-b border-solid border-main-divider w-full ${e}`,children:h(S,{isFoldButtonOnTop:n,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>h("div",{className:"box-border",children:h(I,{className:"grid grid-cols-12 gap-1 border-box",isUnfolded:e,children:a})}),renderFoldButton:({isUnfolded:e,onToggle:l})=>xi({isUnfolded:e,onToggle:l,label:t,version:r})})})));pi.childrenTypes=[];const xi=({isUnfolded:e,onToggle:t,label:l,version:n})=>{const r=["PlusIcon","MinusIcon"],a=l?[l,l]:["Развернуть","Скрыть"];return h("primary"===n?bi:Ra,{icon:r[Number(e)],label:a[Number(e)],onClick:t})},bi=p((({label:e,icon:t,onClick:l})=>u("button",{className:"border-none bg-transparent px-9 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 group cursor-pointer",onClick:l,children:[h("span",{className:"text-xl font-medium pr-2.5",children:e}),t?h(O,{image:ve({icon:t}),width:"24",height:"24",asSVG:!0}):null]}))),gi=[];const fi=async e=>await mt(e,{method:"GET"})||gi,vi=p((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:r="",setSelected:a,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return h(Al,{options:s,label:i,placeholder:r||n,onChange:e=>a(e.key),value:o})})),Ni=p((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:r,onSelectedBranch:a})=>u("div",{className:"flex justify-between gap-4 mb-6",children:[h("div",{className:"max-w-[396px] w-1/2",children:h(vi,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),h("div",{className:"max-w-[396px] w-1/2",children:h(vi,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:r,setSelected:a,label:"Отделение",placeholder:"Выберите отделение"})})]}))),yi=p((({name:e,text:t,value:l,checked:n,onChange:r,className:a})=>h("div",{className:a,children:u("label",{className:"font-sans flex items-center relative cursor-pointer",children:[h("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-checkbox-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:l,name:e,checked:n,onChange:r}),t?h("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),wi=p((()=>{const[e,t]=n("option2"),l=e=>t(e.target.value);return u("div",{children:[h(yi,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),h(yi,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),ki=["От 1 дня","До 365 дней"],Ci=p((({days:e,setDays:t})=>u("div",{className:"mb-6",children:[h("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),h(rt,{min:1,max:365,value:e,items:ki,onChange:t})]}))),$i=p((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:r,onSelectedBoxSize:a})=>u("div",{className:"flex justify-between mb-6",children:[h("div",{className:"mr-4 w-full",children:h(vi,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),h("div",{className:"w-full",children:h(vi,{data:n,fieldLabel:"safeBoxCasesSize",selected:r,setSelected:a,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Si=p((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:r,selectedCaseVolume:a,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onShowMapToggle:d})=>u("div",{className:"flex-1 mr-9",children:[h(Ni,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:Ii(c)}),h(Ci,{days:r,setDays:e=>c({days:e})}),h($i,{caseVolumes:o,selectedCaseVolume:a,onSelectedCaseVolume:Ti(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),h("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),u("div",{className:"flex justify-between items-center mt-5",children:[h(wi,{}),h(ce,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Ii=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Ti=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Bi=p((({days:e,tariffs:t=[]})=>{const l=Ri(e,t);return u("div",{className:"flex flex-col justify-between",children:[u("div",{className:"flex",children:[ji("Аренда за",e,"mr-11"),ji("Цена",l+" ₽")]}),u("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[h(O,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),u("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",h("br",{})," листов формата А4"]})]})]})})),ji=(e,t,l="")=>u("div",{className:l,children:[h("div",{className:"text-m-light text-secondary-text mb-1",children:e}),h("span",{className:"text-h3 text-primary-text",children:t})]}),Ri=(e,t)=>{const l=Vi(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},Vi=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},_i=(e,t)=>e.find((e=>e.branchCode===t)),Mi=p((e=>{const{regions:t,data:l,branches:n,onChange:a,onShowMapToggle:i}=e;r((()=>{a({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,a]);const s=_i(n,l.selectedBranch),o=Di(s?.safeBoxCaseVolumes),c=Li(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=Ai(c,l.selectedBoxSize);return u("div",{className:"flex justify-between align-top mb-6",children:[h(Si,{...l,regions:t,onShowMapToggle:i,branches:n,caseVolumes:o,safeBoxCases:c,onChange:a}),h(Bi,{days:l.days,tariffs:d})]})})),Di=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Li=(e,t)=>e?.find((e=>e.volume===t)),Ai=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs;const Oi=p((({title:e,footnote:t,className:l="",...r})=>{const[i,s]=n(!1),[o,c]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),d=function(){const{data:e}=ct("/api/v1/regions",ht);return e||[]}(),m=Fi(o.selectedRegion,d),p=function(e){const{data:t}=ct(e?`/api/v1/safeboxes?regionCode=${e}`:null,fi);return t||gi}(m),x=a((e=>c((t=>({...t,...e})))),[c]),b=(g=_i(p,o.selectedBranch)||p,Array.isArray(g)?g.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):g?.gpsLatitude&&g?.gpsLongitude?[[g.gpsLatitude,g.gpsLongitude]]:[]);var g;return u(y,{className:l,...r,children:[u("div",{className:"font-sans bg-white px-8 py-12",children:[e?h(k,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,h(Mi,{regions:d,branches:p,data:{...o,selectedRegion:m},onShowMapToggle:()=>{s(!i)},onChange:x}),t?h("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?h(xa,{points:b,className:"h-[640px]"}):null]})})),Fi=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Ei=e=>Boolean(e?.icon||e?.src),Ui=({items:e,isDotted:t=!0,version:l="primary",className:n=""})=>e?h(Mn,{className:n,version:l,items:e,listItemSize:"M",isDotted:t}):null,zi=({styleMap:e,isMainButton:t,version:l})=>(n,r,{length:a})=>{const{label:i,description:s,button:o,items:c,isDotted:d}=n,m=i&&(s||c)?"mt-2":"";return u("div",{className:`relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden ${Hi(a)}`,children:[u("div",{className:(o?.text?"mb-8":"")+" text-center",children:[Pi(i),u("div",{className:`${m} flex flex-col items-center`,children:[Xi({description:s,className:e.description}),Ui({items:c,isDotted:d,version:l,className:Gi({className:"text-left",description:s,styleMap:e})})]})]}),o?.text&&!t?h(ce,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(r))},Pi=e=>e?h("div",{className:"text-h6",children:e}):null,Xi=({description:e,className:t=""})=>e?h("div",{className:t,children:e}):null,Gi=({className:e,description:t,styleMap:l})=>[t?l.description:"text-h6",t?"mt-0.5":"",e].join(" "),Hi=e=>e<5?"w-[276px]":"w-[210px]",Wi={primary:{background:"bg-white",title:"text-primary-text",description:"!text-secondary-text text-l-light",iconText:"text-secondary-text",iconBackground:"bg-main-divider",iconConnector:"bg-secondary-light",dot:"bg-secondary-text"},secondary:{background:"bg-primary-main",title:"text-white",description:"!text-white/80 text-l-light",iconText:"text-white",iconBackground:"bg-white/30",iconConnector:"bg-white",dot:"bg-white/80"}},Ji=p((({className:e="",showLines:t=!0,steps:l=[],button:n,version:r="primary",...a})=>{const{title:i}=a,s=Wi[r],o=l.length>3,c=(e=>e?"":"opacity-0")(t),d=i?"mt-9":"",m=(e=>e<5?"px-[88px]":"px-[55px]")(l.length);return u(y,{className:["box-border py-[50px] font-sans",o?"px-20":"px-[70px]","flex flex-col items-center",s.background,s.title,e].join(" "),...a,children:[i?h(k,{headingType:"h3",className:"max-w-[752px] text-center",title:i}):null,l?.length?u("div",{className:`box-border ${d}`,children:[h("div",{className:`flex items-center ${m}`,children:Dr(h("div",{className:`h-0.5 w-full bg-secondary-light ${c}`}))(l.map(Yi(s,r)))}),h("div",{className:"flex justify-between mt-4 "+(o?"gap-x-3":"gap-x-[101px]"),children:l.map(zi({styleMap:s,isMainButton:Boolean(n?.text),version:r}))})]}):null,n?.text?h(ce,{className:"mt-8 min-w-[240px]",version:"primary",...n}):null]})})),Yi=(e,t)=>({icon:l},n)=>h("div",{className:"flex flex-col items-center text-center",children:h("div",{className:`h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center\n ${e.iconBackground} ${e.title}`,children:Ei(l)?h(O,{image:ve(l||{},t),width:"48",height:"48",asSVG:!0}):h("span",{className:`text-h4 ${e.iconText}`,children:n+1})})},String(n));const Zi="h-12 flex-1 flex items-center justify-center cursor-pointer",Ki="bg-primary-main",qi="group bg-white",Qi="font-sans text-m",es="text-white",ts="text-secondary-text group-hover:text-primary-main",ls=p((e=>{const{tab:t,currentTab:l,onClick:n}=e,r="link"===l?.type&&l.href===t.href,i=a((()=>{n&&n(t),g.inst.fire("anchorClick",{isScrolling:!0,label:t.href})}),[t,n]),s=q()({...t,onClick:i});return h("a",{role:"tab",className:`${Zi} ${r?Ki:qi}`,target:t.target,href:s.href,onClick:s.onClick,children:h("span",{className:`${Qi} ${r?es:ts}`,children:t.text})})})),ns=(e,t)=>h("h3",{className:`${Qi} ${t?es:ts}`,children:e}),rs=(e,t)=>h("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(t?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover:text-primary-main"),children:e}),as=({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,a)=>{const i=r.type;if("group"!==i&&"link"!==i)return null;switch(i){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:n})=>(r,a)=>{const i=t===r,s=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return h("div",{className:`${Zi} ${i?Ki:qi}`,role:"tab","aria-selected":i,onClick:()=>n(r),children:u("div",{className:"flex flex-1 items-center justify-center",children:[r?.title?ns(r.title,i):null,l&&s?rs(s,i):null]})},String(a))})({page:e,currentTab:t,showCounter:l,onClick:n})(r,a);case"link":return h(ls,{tab:r,currentTab:t},String(a));default:!function(e){throw new Error(e)}(i)}},is=p((e=>{const{className:t="",tabs:l,showCounter:a,isSticky:i,...s}=e,[o,c]=n(l?l[0]:void 0);r((()=>g.inst.subscribe("tab",(e=>{if(!l)return;const t=l.find(ss(e));"link"===e.type&&t&&c(t)}))),[l]),r((()=>{if("group"===o?.type)return g.inst.subject("tab",{label:o.ref})}),[o]);return h(y,{className:`${i?"sticky top-1 z-20 ":""}box-border flex gap-x-1 ${t}`,role:"tablist",...s,children:l?.map(as({onClick:e=>{"group"===e?.type&&g.inst.fire("tab",{type:e.type,label:e.ref}),c(e)},currentTab:o,showCounter:a,...s}))})})),ss=e=>t=>"link"===t.type&&t.href===`#${e.label}`,os=p((({isOpen:e,onClick:t})=>u(ce,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[h("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),h(B,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),cs={Buttons:({buttons:e})=>e&&e?.length?h("div",{children:e.map((({rounded:e,...t},l)=>Be({button:{rounded:e,...t},buttonClassName:(l>0&&e?"ml-3":"")+" w-12 h-12"})))}):null,Img:({image:e})=>e?.src?h(O,{image:e}):null,List:({isDotted:e,...t})=>h(Mn,{className:"flex flex-col justify-between items-start text-h6",version:"primary",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>u("div",{children:[e?h("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?h("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:p((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:r})=>e?h(os,{isOpen:r,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},ds=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=n(!0);r((()=>{t===i&&a||m(!0)}),[a,i]);return u("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?h("div",{className:"h-5"}):null,ms({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},ms=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in cs))return null;return h(cs[l],{...t,...n})},hs=p((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})=>h("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(ds({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:r,openTableInnerIdx:a,setOpenTableInnerIdx:i})):null})));async function us(e){const t=await fetch(e);return await t.json()}const ps=p((({rows:e})=>{const[t,l]=n(0),r=e?.[0]?.length??0,a=r>3&&r>t+4,i=t>0;return u("div",{children:[e?.map(xs(t)),ue({handler:[()=>l(t-1),()=>l(t+1)],isShown:[i,a],btnClass:["right-3 top-24","right-3 top-2"],className:""})]})})),xs=e=>(t,l)=>{if(!t?.length)return null;const[n,...r]=t,a=[...Array(e).keys()].reduce(((e,t)=>140*(r?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return u("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?h("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:n.data}):null,h("div",{className:"flex flex-grow overflow-hidden",children:h("div",{className:i,style:{transform:`translateX(-${a}px)`},children:r?.map(((t,l)=>u("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?h("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?bs(t.cols,e):null]},`row${l}`)))})})]},String(l))},bs=(e,t)=>e?.length>0?h("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>h("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,gs=p((({activeTabIndex:e,items:t})=>{const[l,r]=n({});return h("div",{children:t.map(((t,n)=>{const a=`activeTabIdx:${e}-tableIdx:${n}`;return u("div",{className:"w-full",children:[u("div",{className:"flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>(e=>{r((t=>({...t,[e]:!t[e]})))})(a),children:[t.title,h(O,{image:l[a]?"PlusIcon":"MinusIcon",className:"absolute right-[22px]",width:"24",height:"24"})]}),h("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[a]?"h-0":""),children:h("div",{className:"relative",children:h(ps,{rows:t.rowsData})})})]},a)}))})})),fs=p((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>u("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?h("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>h("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?h(ce,{href:t,version:"secondary",target:"_blank",appendLeft:h(B,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20",asSVG:!0}),text:"Скачать в PDF"}):null]}))),vs=p((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:r}=function(e){const{data:t}=ct(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),us);return t||{}}(e),[a,i]=n(0),s=r?.[a]?.items??[],o=r?.map((e=>e.currency??""));return u("div",r?{className:"bg-white z-10",children:[h(fs,{currencies:o,activeTabIndex:a,setActiveTabIndex:i,linkToPDF:t}),h(gs,{activeTabIndex:a,items:s}),h(os,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[h("p",{children:"Данных нет"}),h(os,{onClick:l,isOpen:!0})]})})),Ns=p((({children:e,tableInner:t,onHideContentClick:l})=>u("div",{className:"self-start flex flex-col",role:"row",children:[h("div",{className:"flex",children:e}),t?h("div",{className:"origin-top animate-expansion",children:h(vs,{...t,onClick:l})}):null]}))),ys=p((({row:{header:e,data:t},activeCardIndex:l,rowIdx:r,...a})=>{const[i,s]=n(void 0),[o,c]=n(void 0);return u(Ns,{onHideContentClick:()=>s(void 0),tableInner:i,...a,children:[h("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:u("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?h(O,{className:"mr-[14px] max-w-6 max-h-6",image:ve(e.icon),width:"24px",height:"24px",asSVG:!0}):null,e?.title?h("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?h(il,{activeCardIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>h(hs,{cells:e,rowIdx:r,cellIdx:t,setTableInner:s,tableInner:i,openTableInnerIdx:o,setOpenTableInnerIdx:c,...a},String(t))))}):null]})})),ws=p((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:r,hiddenRowsNum:a=0,...i})=>{const s=r?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=G({itemsCount:s.length,visibleItemCount:2}),p=s.length>2,x=(o||[]).map(((e,t)=>h(ys,{row:e,activeCardIndex:d,rowIdx:t,...i},String(t)))),[b,g]=a>0?[x.slice(0,-a),x.slice(-a)]:[x,[]];return u(y,{className:`bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${c>1?"pr-0":""} ${e}`,...i,children:[ks({title:t,description:l}),Cs(l),a>0?h(S,{renderFoldableSection:({isUnfolded:e})=>u($s,{controls:m,isScrollAvailable:p,children:[b,h(I,{isUnfolded:e,children:g})]}),renderFoldButton:Va}):h($s,{controls:m,isScrollAvailable:p,children:x})]})}));function ks({title:e,description:t}){return e?h(k,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function Cs(e){return e?h("div",{className:"mb-9 text-center text-l",children:e}):null}const $s=p((({children:e,controls:t,isScrollAvailable:l})=>{const{inc:n,dec:r,canDec:a,canInc:i}=t;return u("div",{role:"table",children:[u("div",{className:"relative",children:[e,l?h("div",{children:ue({handler:[n,r],isShown:[a,i],btnClass:["top-[108px]","top-11"],className:"right-7"})}):null]}),l?h("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Ss={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"}},Is=p((({title:e,description:t,blockVersion:l="primary",iconVersion:n,image:r,className:a,...i})=>{const s=Ss[l];return u(y,{className:`font-sans px-9 py-4 flex ${s.background} ${a||""}`,...i,children:["small"===n?Ts(s.icon):null,"big"===n?Bs(r):null,u("div",{className:"py-0.5",children:[e?h("div",{className:`text-l font-medium mb-1 ${s.title}`,children:e}):null,t?h("div",{className:`text-s ${s.description}`,children:t}):null]})]})}));function Ts(e){return h("div",{className:"pt-1.5 pl-1 pr-4",children:h("div",{className:`rounded-full h-4 w-4 text-center text-xs-light ${e}`,children:"i"})})}function Bs(e){return e?.src?h(O,{className:"pt-0.5 pr-3",image:e}):null}const js=p((e=>{const{tags:t,className:l=""}=e;return t?.length?h("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(Rs)}):null})),Rs=(e,t)=>h("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-color-stroke",children:e},String(t)),Vs=p((e=>{const{title:t,headingType:l="h3",description:n,items:r,buttons:a,image:i,isDotted:s=!0,listItemSize:o="M",className:c="",version:d="primary",tags:m,children:p,...x}=e,b="primary"===d?"text-primary-text":"";return h(y,{className:`overflow-hidden font-sans p-9 pr-3 box-border ${c} ${fe[d]} ${Xa(c)} ${qr(c)} `,...x,children:u(Cl,{title:t?h(k,{headingType:l,as:"h2",title:t,className:`whitespace-pre-wrap max-w-[600px] ${b}`}):null,buttons:a?.length?h(Te,{buttons:a.map((e=>({...e,className:"min-w-[158px]"}))),className:"flex mt-8 gap-3",...x}):null,image:i?.src?h(O,{className:"mt-auto ml-7",image:i}):null,children:[n?h(z,{className:"max-w-[600px] text-xl-light mt-2.5",description:n}):null,p,_s({version:d,isDotted:s,listItemSize:o},r),m?.length?h(js,{tags:m,className:"mt-5"}):null]})})}));function _s({version:e,isDotted:t,listItemSize:l},n){return n?.length?h(Mn,{items:n,isDotted:t,className:"mt-2.5",listItemSize:l,itemClassName:"mb-1.5",version:e}):null}const Ms={left:"items-start",center:"items-center",right:"items-end"},Ds={XXL:"gap-10",XL:"gap-8",L:"gap-4",M:"gap-3",S:"gap-2",XS:"gap-1","":""},Ls={transparent:"",primary:"bg-white",secondary:"bg-primary-main"},As=p((({className:e="",children:t,gap:l="",align:n="left",version:r="transparent",...a})=>h(y,{className:["flex flex-col",Ds[l],Ms[n],Ls[r],e].join(" "),...a,children:t})));As.childrenTypes={exclude:["VerticalLayout"]};const Os={Accordion:$,AccordionItem:E,CarouselLinks:be,BenefitsBlock:ke,BusinessBlock:Xe,Bonus:De,BonusBenefitsBlock:Fe,CardTransfer:Ft,Calculator:Rt,Carousel:xe,CarouselCard:Pt,CarouselTariffsCard:Xt,Catalog:Qt,ContactsBlock:vl,ComparisonTable:gl,ErrorBlock:kl,ExchangeRateTile:Zl,Footer:Cn,Gallery:Pn,GracePeriod:Xn,Header:vr,Headline:Me,InsuranceAmountBlock:$r,InvestmentInfo:Or,InvestmentGallery:Vr,LinkDocs:Yr,MiniGallery:Zr,MobileAppTile:Qr,PictureText:Fa,Placeholder:Ga,ProductBlock:ti,ProductGallery:ni,ProductTile:ri,PromoTile:oi,OfficeMap:Ia,OfficeServicesBlock:Ta,OtherProducts:ja,OtherProductsItem:Ma,Recommendation:hi,RollupItem:pi,SafeDepositRental:Oi,StepsBlock:Ji,Tabs:is,TariffsTable:ws,TextBlock:Is,Tile:Vs,VerticalLayout:As};function Fs(e){return e?e.filter(Boolean).join(" "):""}const Es=m();const Us=p((({className:e,onClick:t,ariaLabel:l})=>h("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:zs()}))),zs=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return u("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[h("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),h("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Ps=p((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return r((()=>{(async()=>{const[t]=await Es.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:a((async()=>{l(await Es.like(e))}),[e]),dislike:a((async()=>{l(await Es.dislike(e))}),[e])}}(K().pathname);return u("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[h(Us,{onClick:Z(t.like),ariaLabel:"Поставить отметку «лайк»"}),h(Us,{onClick:Z(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),h("span",{className:"select-none",children:t.likeCount})]})})),Xs=({slots:e,parent:t,options:l,ancestors:n=[]})=>Object.entries(e||{}).reduce(((e,[r,a])=>({...e,[r]:Gs({blocks:a,parent:t,slotName:r,options:l,ancestors:n})})),{});const Gs=({blocks:e,parent:t,slotName:l=null,options:n,ancestors:r=[]})=>(e||[]).map(((e,a)=>function({block:e={},options:t,ancestors:l=[]}){const{key:n,page:r,blockDecorator:a,blocksRegistry:i={}}=t,{type:s,slots:o,blocks:c}=e;s&&s in i||console.warn(`No block with "${s}" is registered`);const d=s&&i[s],m={parent:e,options:t,ancestors:l},u=Gs({...m,blocks:c}),p=o?Xs({...m,slots:o}):{};return a({blockClassName:`scroll-mt-12 ${Fs(e.style)}`,block:e,ancestors:l,render:({block:e,blockClassName:t})=>{const{content:a}=e;return d?h(d,{page:r,block:e,className:t,ancestors:l,slots:p,...a,children:u},n):null}},n)}({block:e,options:{...n,key:`${n.key?n.key:e.type}-${a}`},ancestors:[...r,[t,l]]}))),Hs=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),Ws=p((e=>{const{className:t="",blocksRegistry:l,blockDecorator:n,data:r={}}=e,{style:a,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=r,d={key:"",blocksRegistry:l,page:r,blockDecorator:n||Hs},m=Xs({slots:s,parent:r,options:d});return u("section",{className:`relative ${Fs(a)} ${t}`,"data-theme":c,children:[m?.header?h("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:m.header}):null,i?.length?u("div",{className:"container grid grid-cols-12 gap-1",children:[Gs({blocks:i,parent:r,options:d}),m?.footer?m.footer:null]}):null,o?h("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:h(Ps,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Ws.childrenTypes=[],Ws.slots=()=>["header","footer"];e.Blocks=Os,e.ContentPage=Ws,e.DaDataAPI=o,e.LikeAPI=m,e.handlerDecorator=Z,e.joinList=Dr,e.packageVersion="0.6.32",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=Y,e.useRouter=K,Object.defineProperty(e,"__esModule",{value:!0})}));